@dcl/shop 1.17.2-36416043832.commit-4089d5e → 1.17.2-36417112568.commit-e2afc81

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 (245) hide show
  1. package/_assets/{Activity-D2jmtwsW.js → Activity-ahc1cGJr.js} +6 -6
  2. package/_assets/{AnimatedBackground-CyVXNYJv.js → AnimatedBackground-umIp23wl.js} +3 -3
  3. package/_assets/{Assets-DEOBSoh8.js → Assets-DwelGvtu.js} +3 -3
  4. package/_assets/{Cart-BSksnt0Q.js → Cart-nnTbuXqE.js} +2 -2
  5. package/_assets/{Collection-DO9HR41Y.js → Collection-OO-CXfeg.js} +2 -2
  6. package/_assets/{CollectionCarousel-DdFcTb7z.js → CollectionCarousel-Dg2NBx67.js} +5 -5
  7. package/_assets/{Confetti-X0aTW69R.js → Confetti-DF67ec9x.js} +4 -4
  8. package/_assets/{ConstantsUtil-CrUStMSy.js → ConstantsUtil-C4MAR3n5.js} +2 -2
  9. package/_assets/{ContentClient-BxaoIUGr.js → ContentClient-CeSQQmZ0.js} +2 -2
  10. package/_assets/{Creator-CbBX7kJx.js → Creator-BgQvXwOl.js} +2 -2
  11. package/_assets/{CreditPackPicker-BALe7jq2.js → CreditPackPicker-Cksr3kzu.js} +2 -2
  12. package/_assets/{CreditRate-Dgl8uo5R.js → CreditRate-CRu68bxJ.js} +2 -2
  13. package/_assets/{DeploymentBuilder-CIr18K2s.js → DeploymentBuilder-7eFv_frV.js} +2 -2
  14. package/_assets/{EmotePlaybackBar-Dqg6QoF7.js → EmotePlaybackBar-CdhQyQNk.js} +3 -3
  15. package/_assets/{ErrorNotice-CgXteyOw.js → ErrorNotice-YylntVIF.js} +2 -2
  16. package/_assets/{Event-Bu6MjDZe.js → Event-jynjm47j.js} +2 -2
  17. package/_assets/{ExchangeController-BDER0L5X.js → ExchangeController-BPmmrC-n.js} +2 -2
  18. package/_assets/{Faq-CCtG3Rr9.js → Faq-DuTr6ePB.js} +2 -2
  19. package/_assets/{Filters-DXQU2YoP.js → Filters-CXCCoPfU.js} +2 -2
  20. package/_assets/{GetCredits-Cu3nigEF.js → GetCredits-CFErpq-L.js} +2 -2
  21. package/_assets/{Grow-D-UUprye.js → Grow-C46NVYT_.js} +2 -2
  22. package/_assets/{HelpersUtil-BUPeqAJq.js → HelpersUtil-CvEYQ_bN.js} +2 -2
  23. package/_assets/{IssueModal-By9a682X.js → IssueModal-CdyJ5U3J.js} +2 -2
  24. package/_assets/{ItemDetail-qx_k1gKc.js → ItemDetail-D9tzUCK_.js} +2 -2
  25. package/_assets/{LoadMore-CUMtmZ4i.js → LoadMore-1l5kVCpI.js} +2 -2
  26. package/_assets/{ManaPricingBanner-D6sLeIKP.js → ManaPricingBanner-Bpt7PE5u.js} +2 -2
  27. package/_assets/{ManaPricingBanner.styles-BPXSeSwH.js → ManaPricingBanner.styles-DsEi0tgF.js} +2 -2
  28. package/_assets/{MyAssets-Dx9CFsGZ.js → MyAssets-BUo6c0_2.js} +2 -2
  29. package/_assets/{MyFavorites-Dk6jc13z.js → MyFavorites-C6mXW5Jl.js} +2 -2
  30. package/_assets/MyStore-D3H6JCYZ.js +2008 -0
  31. package/_assets/{NetworkUtil-BZR5q4yD.js → NetworkUtil-C4JZB8Ae.js} +2 -2
  32. package/_assets/{NotFound-BibpgVDq.js → NotFound-D1YOGdVu.js} +2 -2
  33. package/_assets/{NotificationsBell-CFpA7baU.js → NotificationsBell-BOYDhVk6.js} +2 -2
  34. package/_assets/{OutfitDetail-Dv__EioU.js → OutfitDetail-BGIocC8Y.js} +2 -2
  35. package/_assets/{OutfitPreview-CmnGW78C.js → OutfitPreview-tuw000fG.js} +2 -2
  36. package/_assets/{OutfitStudio-VPWg-ruj.js → OutfitStudio-Cyr31rH6.js} +2 -2
  37. package/_assets/{PaymentMethodStep-1idNWCrZ.js → PaymentMethodStep-hPpJP-Wl.js} +5 -5
  38. package/_assets/{SaleCountdown-Cd-0KaVZ.js → SaleCountdown-D75asuMy.js} +2 -2
  39. package/_assets/{Spinner-DPxiNxFf.js → Spinner-BvrhyD7L.js} +2 -2
  40. package/_assets/{StoreSettings-OqE6YfkE.js → StoreSettings-24Sax-kk.js} +2 -2
  41. package/_assets/{Success-BNlDSaP4.js → Success-BPEXgiYa.js} +2 -2
  42. package/_assets/{SwapController-De2TQUy-.js → SwapController-DLrZ30eq.js} +2 -2
  43. package/_assets/{Tooltip-DoHbcrYg.js → Tooltip-2to0FtD5.js} +2 -2
  44. package/_assets/{TradeService-ByDZQglZ.js → TradeService-BroAtYDK.js} +2 -2
  45. package/_assets/{W3MFrameProviderSingleton-Be7CMAhr.js → W3MFrameProviderSingleton-DtsX-WLb.js} +4 -4
  46. package/_assets/{WebCryptoP256-CKWB_r1E.js → WebCryptoP256-CA91XWV0.js} +2 -2
  47. package/_assets/{basic-Do26-Vqu.js → basic-BRxJpd6n.js} +2 -2
  48. package/_assets/{biconomy-CMTWn4Q4.js → biconomy-C8WZJfrn.js} +2 -2
  49. package/_assets/{browseLayout.styles-BvcKB1tB.js → browseLayout.styles-DySdp3ol.js} +2 -2
  50. package/_assets/{browser-Cife5Xfc.js → browser-Bsk1yKVj.js} +2 -2
  51. package/_assets/{browser-B-ANoDXe.js → browser-gnLUFKwX.js} +2 -2
  52. package/_assets/{browser-ponyfill-vRYXBue4.js → browser-ponyfill-1RGXVE2_.js} +2 -2
  53. package/_assets/{buy-BMZZrTA1.js → buy-DY-mMt7w.js} +2 -2
  54. package/_assets/{buy-gasless-lVOYjhRS.js → buy-gasless-BLW3WNLa.js} +2 -2
  55. package/_assets/{ccip-BKS-j5xv.js → ccip-CdHrlR0T.js} +2 -2
  56. package/_assets/{ccip-Cvqcd4ZR.js → ccip-Dhy3aii9.js} +2 -2
  57. package/_assets/{chains-DfIzFf1h.js → chains-w-LqjG8V.js} +2 -2
  58. package/_assets/collectionPage.styles-DTKFRnJt.js +41 -0
  59. package/_assets/{common-CHgnpu7g.js → common-ClyopIw2.js} +2 -2
  60. package/_assets/{controller-CRQd0tg4.js → controller-BLFxGiru.js} +3 -3
  61. package/_assets/{core-BwctNYgH.js → core-Cgo171jk.js} +5 -5
  62. package/_assets/{createSvgIcon-ykh7lo_E.js → createSvgIcon-DFZIXrO2.js} +2 -2
  63. package/_assets/{crumbs.styles-CXii36cN.js → crumbs.styles-DNbofwyV.js} +2 -2
  64. package/_assets/{custom-Dke-UC3h.js → custom-CzL3ZDy6.js} +2 -2
  65. package/_assets/{data-capture-BSERz3xn.js → data-capture-oFjjsPXO.js} +2 -2
  66. package/_assets/{dcl-schemas-CWaHH-ed.js → dcl-schemas-CIgtuOoU.js} +2 -2
  67. package/_assets/{decimals-CTlRSm2y.js → decimals-BEHcGzvL.js} +2 -2
  68. package/_assets/{decimals-CU-xpoLM.js → decimals-DAXns5g7.js} +2 -2
  69. package/_assets/{detectExtension-B1ikZpZB.js → detectExtension-5E6hSqod.js} +2 -2
  70. package/_assets/{disposePreview-WoKkUUQK.js → disposePreview-DmN3QW2F.js} +2 -2
  71. package/_assets/{email-D7eYakyt.js → email-Pd0tOznC.js} +2 -2
  72. package/_assets/{embedded-wallet-DaorIptX.js → embedded-wallet-C-nyyiA9.js} +2 -2
  73. package/_assets/{emotion-styled.browser.esm-CtAj_Bzj.js → emotion-styled.browser.esm-C-347kjK.js} +2 -2
  74. package/_assets/{engine-DVKQpKux.js → engine-DgLHXCvQ.js} +2 -2
  75. package/_assets/{errors-ont-HITy.js → errors-CGpVjZew.js} +2 -2
  76. package/_assets/{estimate-l1-fee-D5MpCTg7.js → estimate-l1-fee-DMNF6VY5.js} +2 -2
  77. package/_assets/{eth_estimateGas-wOtkyGtY.js → eth_estimateGas-DU3yHXo0.js} +2 -2
  78. package/_assets/{eth_getStorageAt-BRGeMj7x.js → eth_getStorageAt-CZXlYseH.js} +2 -2
  79. package/_assets/{eth_getTransactionCount-CsWuvcRz.js → eth_getTransactionCount-BPBkSCUe.js} +2 -2
  80. package/_assets/{ethereum-BwXM5mdW.js → ethereum-BcnV2ali.js} +2 -2
  81. package/_assets/{ethers-xBnicGGT.js → ethers-B_gMX7bu.js} +2 -2
  82. package/_assets/{events-DcwFFZPv.js → events-Dn3_sDeB.js} +2 -2
  83. package/_assets/{execute-_7dD_VNa.js → execute-67mwCNiO.js} +3 -3
  84. package/_assets/{extractIPFS-BWzKoZad.js → extractIPFS--4ktQwdZ.js} +2 -2
  85. package/_assets/{features-Du2LNKLc.js → features-xb712O6d.js} +2 -2
  86. package/_assets/{fetchTokenMetadata-DwZKOWAU.js → fetchTokenMetadata-CROm5iEy.js} +3 -3
  87. package/_assets/{field.styles-C60upe5f.js → field.styles-B7GpVroz.js} +2 -2
  88. package/_assets/{fortmatic-8a2vw26K.js → fortmatic-DxnTmpwf.js} +2 -2
  89. package/_assets/{get-bytecode-e2_Kn8Mo.js → get-bytecode-Cn7VPjuQ.js} +2 -2
  90. package/_assets/{get-ecosystem-wallet-info-DNfhM-EJ.js → get-ecosystem-wallet-info-CziI2Mp5.js} +2 -2
  91. package/_assets/{getBalance-ruTqGWj2.js → getBalance-CXpOqiRi.js} +3 -3
  92. package/_assets/{getInstalledModules-CwyhzLIg.js → getInstalledModules-C97rQKkl.js} +2 -2
  93. package/_assets/{getNFT-DsArQnIc.js → getNFT-BEDez5yk.js} +2 -2
  94. package/_assets/{getNFT-C9rBe7DY.js → getNFT-CMUK9Jkt.js} +3 -3
  95. package/_assets/{grid.styles-r8VX_-Hx.js → grid.styles-CTCw781a.js} +2 -2
  96. package/_assets/{hashTypedData-gmjxPsfy.js → hashTypedData-CkWSwa_M.js} +2 -2
  97. package/_assets/{hashTypedData-BumM0k5l.js → hashTypedData-DrTnE0Uo.js} +2 -2
  98. package/_assets/{import-4kws6rCP.js → import-C7TsYQy9.js} +2 -2
  99. package/_assets/{in-app-Cx_Nj8q7.js → in-app-XCTtPdXb.js} +2 -2
  100. package/_assets/{in-app-wallet-calls-DDLwZe9X.js → in-app-wallet-calls-Bf-KUvJ0.js} +2 -2
  101. package/_assets/{index-BDB9exbO.js → index-3z3h-sWT.js} +2 -2
  102. package/_assets/{index-Bdxrgxmn.js → index-Ao40Rh7v.js} +2 -2
  103. package/_assets/{index-9ZMsFQ6f.js → index-B0icZDm6.js} +2 -2
  104. package/_assets/{index-BarU4A52.js → index-B1mdfGb_.js} +2 -2
  105. package/_assets/{index-BE5Y0isb.js → index-B3d1HVPO.js} +3 -3
  106. package/_assets/{index-75UOmaNa.js → index-B47x5iYD.js} +4 -4
  107. package/_assets/{index-CwaEKfu0.js → index-B5aKYuFu.js} +2 -2
  108. package/_assets/{index-DRJYQL9y.js → index-BFiJHg3T.js} +2 -2
  109. package/_assets/{index-D_jLRyxs.js → index-BJQicl8s.js} +13 -13
  110. package/_assets/{index-D_nCxTyd.js → index-BKceaYFO.js} +2 -2
  111. package/_assets/{index-Bhf4PcaM.js → index-BLs6tbd1.js} +2 -2
  112. package/_assets/{index-DPx2Ho9m.js → index-BNBdrKN8.js} +2 -2
  113. package/_assets/{index-DS66RmK4.js → index-BS1m5BmZ.js} +2 -2
  114. package/_assets/{index-D4MXrDfg.js → index-Baur_xj6.js} +2 -2
  115. package/_assets/{index-Cmm4Q8wh.js → index-BiZ6sDat.js} +2 -2
  116. package/_assets/{index-Cfe-K44R.js → index-BmEcJIFr.js} +2 -2
  117. package/_assets/{index-DATnLB9X.js → index-Bx2Yr0I1.js} +3 -3
  118. package/_assets/{index-astNn3oS.js → index-BxZY3R6O.js} +3 -3
  119. package/_assets/{index-CmvzNK9L.js → index-Bx_cH1nn.js} +2 -2
  120. package/_assets/{index-D4bTcewY.js → index-ByfsdepO.js} +2 -2
  121. package/_assets/{index-B3hhASQ2.js → index-Bz5aUY4R.js} +2 -2
  122. package/_assets/{index-BwgdsrWa.js → index-C6iF-SQS.js} +2 -2
  123. package/_assets/{index-DEeb7iRk.js → index-C6lsb53t.js} +2 -2
  124. package/_assets/{index-DBkXw96p.js → index-C8Spvg7F.js} +2 -2
  125. package/_assets/{index-DA7THmYT.css → index-CBA4W5FG.css} +1 -1
  126. package/_assets/{index-BfG9mwyv.js → index-CF8SkK1g.js} +2 -2
  127. package/_assets/{index-nK2g2Vsv.js → index-CGXb1e0C.js} +2 -2
  128. package/_assets/{index-BgLJFLhQ.js → index-CUbbKhDQ.js} +2 -2
  129. package/_assets/{index-FJbB1PZb.js → index-CYZGTT5Q.js} +2 -2
  130. package/_assets/{index-Dcp_E5z1.js → index-CfRRbY4r.js} +4 -4
  131. package/_assets/{index-Bt58rNEN.js → index-Cg5J3PHn.js} +2 -2
  132. package/_assets/{index-Dvb8RfHC.js → index-Cx-907QR.js} +2 -2
  133. package/_assets/{index-BKCO2ehs.js → index-D0XUi2BW.js} +2 -2
  134. package/_assets/{index-vRDF6KuL.js → index-D0bdYV1m.js} +2 -2
  135. package/_assets/{index-CVMOv7um.js → index-D6RUnASW.js} +2 -2
  136. package/_assets/{index-i1hoKcZq.js → index-D6bgolKH.js} +2 -2
  137. package/_assets/{index-DJGK297W.js → index-DBhKJzP1.js} +2 -2
  138. package/_assets/{index-D6wgh7LX.js → index-DEhC8LgS.js} +2 -2
  139. package/_assets/{index-C_ZlNmIV.js → index-DIMycRNk.js} +2 -2
  140. package/_assets/{index-D_vUvsz6.js → index-DJFLeIP8.js} +2 -2
  141. package/_assets/{index-LUJrA09I.js → index-DVNQ3djO.js} +2 -2
  142. package/_assets/{index--QZmWmnq.js → index-DYNUrlyd.js} +2 -2
  143. package/_assets/{index-D7XyFvXx.js → index-D_LWbA_T.js} +2 -2
  144. package/_assets/{index-CbXbmUBf.js → index-D_YK6f10.js} +2 -2
  145. package/_assets/{index-qIchLmAr.js → index-Da0OIpMQ.js} +2 -2
  146. package/_assets/{index-CNxv2KyX.js → index-DcQgVGCL.js} +2 -2
  147. package/_assets/{index-DxhUNC6t.js → index-Dd-2Y9li.js} +2 -2
  148. package/_assets/{index-C3WZBISb.js → index-DglMTc6w.js} +2 -2
  149. package/_assets/{index-DtH1-bkp.js → index-DlYwkoh9.js} +2 -2
  150. package/_assets/{index-BKEPJpub.js → index-Dm73DTNL.js} +2 -2
  151. package/_assets/{index-BnlssS6_.js → index-DwfqzD3B.js} +2 -2
  152. package/_assets/{index-DfFUxog2.js → index-Dyai1waz.js} +2 -2
  153. package/_assets/{index-zrKCT9Vt.js → index-IS7z8bF7.js} +2 -2
  154. package/_assets/{index-BWECOJLV.js → index-KcQBXzUD.js} +2 -2
  155. package/_assets/{index-KyKJiOaG.js → index-KtwMZa_D.js} +2 -2
  156. package/_assets/{index-502bLdut.js → index-OvP5xDwc.js} +2 -2
  157. package/_assets/{index-B2jV-Y4K.js → index-R_74jjrw.js} +2 -2
  158. package/_assets/{index-i1IgoU7J.js → index-SnM__nMN.js} +2 -2
  159. package/_assets/{index-nPQOM6ie.js → index-VGJY4m72.js} +3 -3
  160. package/_assets/{index-CYKsZC-R.js → index-ZWBqYIeK.js} +2 -2
  161. package/_assets/{index-DBQ0zCO1.js → index-hLobvkDU.js} +4 -4
  162. package/_assets/{index-B4ROt7bC.js → index-lBF5zNbH.js} +2 -2
  163. package/_assets/{index-CvZ99tCA.js → index-nAuGEnGp.js} +2 -2
  164. package/_assets/{index-DdGX8KW4.js → index-o1o23ELd.js} +2 -2
  165. package/_assets/{index-CpxCT_0c.js → index-pzFHM3no.js} +2 -2
  166. package/_assets/{index-DK5m4CPc.js → index-rlHJmfTq.js} +2 -2
  167. package/_assets/{index-T2p5paMv.js → index-srwTpss-.js} +2 -2
  168. package/_assets/{index-BbvDvuMh.js → index-ummDM-YW.js} +2 -2
  169. package/_assets/{index.es-BjTNr0NB.js → index.es-BgDLSDRr.js} +5 -5
  170. package/_assets/{index.es-GiYTR66D.js → index.es-D5A8qSvl.js} +2 -2
  171. package/_assets/{index.es-BMRFPFQv.js → index.es-DUGjvY5V.js} +2 -2
  172. package/_assets/{index.es-COzAFhEJ.js → index.es-mH1f8Pbn.js} +2 -2
  173. package/_assets/{items-empty-DQqomtZi.js → items-empty-C2mQWlpa.js} +2 -2
  174. package/_assets/{jump-COLmr7Zc.js → jump-BKgEW1Uq.js} +2 -2
  175. package/_assets/{linkAccount-CC7SKFAU.js → linkAccount-7AfjwEWc.js} +2 -2
  176. package/_assets/{loader-logo-Bxbmp8cS.js → loader-logo-B2Di-_Ze.js} +2 -2
  177. package/_assets/{localBatchGatewayRequest-D1MnWtvu.js → localBatchGatewayRequest-Ku83V8tQ.js} +2 -2
  178. package/_assets/{modal.styles-DhYlu50I.js → modal.styles-DKyrrEDx.js} +2 -2
  179. package/_assets/{native-BLd6iYd3.js → native-CUblzjFD.js} +2 -2
  180. package/_assets/{networks-B4GPT2ji.js → networks-CslgB8gK.js} +2 -2
  181. package/_assets/{onramp-BhiYriJo.js → onramp-CBYpF4D5.js} +2 -2
  182. package/_assets/{openzeppelin-DRXcatT-.js → openzeppelin-V9W06b6g.js} +2 -2
  183. package/_assets/{ownerOf-BXMDbjk4.js → ownerOf-CaM3U2UN.js} +2 -2
  184. package/_assets/{parseNft-D93XiymC.js → parseNft-CQ5MCToI.js} +3 -3
  185. package/_assets/{parseSignature-iJ3NBtuj.js → parseSignature-B-1Tq6oP.js} +4 -4
  186. package/_assets/{parseSignature-C_VKzJdL.js → parseSignature-Bq-XGU-C.js} +2 -2
  187. package/_assets/{passkeys-ywfy6rRC.js → passkeys-BQJISQgw.js} +2 -2
  188. package/_assets/{pay-with-exchange-CmeXaxVs.js → pay-with-exchange-7MLwJdJf.js} +2 -2
  189. package/_assets/{prepare-contract-call-DXBU5ZM7.js → prepare-contract-call-C2cYOhbO.js} +2 -2
  190. package/_assets/{qr-overlay-BBXequRC.js → qr-overlay-BLml90bO.js} +4 -4
  191. package/_assets/{react-61J1DhOg.js → react-4P5sGbEq.js} +2 -2
  192. package/_assets/{receive-CXmUmT57.js → receive-D2DHGMs6.js} +2 -2
  193. package/_assets/{resolveImplementation-Cg_Q0YTT.js → resolveImplementation-LR6nB9QW.js} +2 -2
  194. package/_assets/{resume-buy-DPAJJ3BD.js → resume-buy-PRghislR.js} +2 -2
  195. package/_assets/{resume-name-BT1cJKkg.js → resume-name-bHNOaad3.js} +2 -2
  196. package/_assets/{rpc-DdBJkfcw.js → rpc-Cm-DpE6F.js} +2 -2
  197. package/_assets/{sales-empty-DSXqKTr_.js → sales-empty-CkxAX5qQ.js} +2 -2
  198. package/_assets/{search-empty-zXBwgimZ.js → search-empty-CaBq2HkU.js} +2 -2
  199. package/_assets/{secp256k1-CBlBmu4w.js → secp256k1-CKzcFiXH.js} +2 -2
  200. package/_assets/{secp256k1-CCqvF_RO.js → secp256k1-Cp0CohWk.js} +2 -2
  201. package/_assets/{secp256k1-qAuNuFms.js → secp256k1-sqPtvBok.js} +2 -2
  202. package/_assets/{send-CSCC0uPt.js → send-DCOMlceB.js} +2 -2
  203. package/_assets/{send-batch-transaction-BRgu8Uxq.js → send-batch-transaction-BsZh8Uk5.js} +2 -2
  204. package/_assets/{send-eip712-transaction-88OJZW1K.js → send-eip712-transaction-CzOZcgLd.js} +3 -3
  205. package/_assets/{send-gasless-transaction-D3xf0STL.js → send-gasless-transaction-B6XUAmSL.js} +3 -3
  206. package/_assets/{send-transaction-BZlpKeec.js → send-transaction-D-XocUou.js} +3 -3
  207. package/_assets/{sendMetaTransaction-DaB-26gT.js → sendMetaTransaction-B2oQ5eKD.js} +2 -2
  208. package/_assets/{sendRawTransaction-DUtIbZKW.js → sendRawTransaction-gnCQ4l70.js} +4 -4
  209. package/_assets/{sentry-QPJ31WyA.js → sentry-BhkK6fEK.js} +3 -3
  210. package/_assets/{serializeTransaction-DQAEm0yE.js → serializeTransaction-BaK3bRi1.js} +2 -2
  211. package/_assets/{session-proposal-Phd1wXbC.js → session-proposal-Dm-Nvcz-.js} +2 -2
  212. package/_assets/{session-request-8VMRPqjl.js → session-request-CrQTuuP7.js} +3 -3
  213. package/_assets/{sha256-DCWwKEKb.js → sha256-DBJDpCHg.js} +2 -2
  214. package/_assets/{sha3-D0i8WAru.js → sha3-70hRWHxs.js} +2 -2
  215. package/_assets/signin-empty-DoMTaEfj.js +2 -0
  216. package/_assets/{signing-CsbhWLXl.js → signing-DCOM6x8H.js} +4 -4
  217. package/_assets/{skeleton.styles-Drz3FBfh.js → skeleton.styles-B8FT4bpt.js} +2 -2
  218. package/_assets/{socials-DJzAJ3_p.js → socials-BPNH7uMf.js} +2 -2
  219. package/_assets/{styled-CPZkviys.js → styled-CdX_hwL4.js} +2 -2
  220. package/_assets/{swaps-DXiwhILN.js → swaps-DRg-0_cj.js} +2 -2
  221. package/_assets/{thirdweb-5QAl9mKe.js → thirdweb-DhUWHu_Q.js} +4 -4
  222. package/_assets/{to-serializable-transaction-qnBlso0-.js → to-serializable-transaction-C68Txae9.js} +3 -3
  223. package/_assets/{totalSupply-CB3-3pkx.js → totalSupply-DGM7d1I-.js} +2 -2
  224. package/_assets/{trade-encoding-ComPweJZ.js → trade-encoding-DcVwVU4D.js} +2 -2
  225. package/_assets/{transaction-DDU6rKhC.js → transaction-DShAG0ei.js} +2 -2
  226. package/_assets/{transactionReceipt-DLKoI1d2.js → transactionReceipt-C7KPa1TY.js} +2 -2
  227. package/_assets/{transactions-c_FO9gby.js → transactions-DMCLNnvd.js} +2 -2
  228. package/_assets/{useInfiniteGrid-Dad0Y9fx.js → useInfiniteGrid-DS-eHJl3.js} +2 -2
  229. package/_assets/{useStore-Bof_I4Xu.js → useStore-D4vtf_uM.js} +3 -3
  230. package/_assets/{useTheme-DEf47FWl.js → useTheme-DdgO2k0Y.js} +2 -2
  231. package/_assets/{utils-DQ5sDZqs.js → utils-Bhk-dfOy.js} +2 -2
  232. package/_assets/{verifyHash-BRKDc10J.js → verifyHash-COTUPfs3.js} +2 -2
  233. package/_assets/{w3m-modal-D7rXk28g.js → w3m-modal-CO33DEWa.js} +2 -2
  234. package/_assets/{w3m-modal-BBxaxEiI.js → w3m-modal-DI7gA3rB.js} +2 -2
  235. package/_assets/{wait-for-tx-receipt-CV2SWf_L.js → wait-for-tx-receipt-8S4DlVRa.js} +2 -2
  236. package/_assets/{wallets-C7P9MRTb.js → wallets-n81pe2QQ.js} +6 -6
  237. package/_assets/{web-connector-CqF6IaVN.js → web-connector-Cu8MU84-.js} +4 -4
  238. package/_assets/{writeContract-BStxqfVR.js → writeContract-LG21efqR.js} +2 -2
  239. package/_assets/{zora-sepolia-BXPZwhNs.js → zora-sepolia-h86d5KkK.js} +2 -2
  240. package/_assets/{zoraTestnet-Dyu5OT5Q.js → zoraTestnet-V0TYbfom.js} +2 -2
  241. package/index.html +12 -12
  242. package/package.json +2 -2
  243. package/_assets/MyStore-Dn05R_CU.js +0 -1989
  244. package/_assets/collectionPage.styles-CPLOrSxB.js +0 -41
  245. package/_assets/signin-empty-DwpZ5LQf.js +0 -2
@@ -1,1989 +0,0 @@
1
- import{r as w,j as e,L as Ce,u as Jo,f as en,N as tn}from"./react-61J1DhOg.js";import{c as ce,bU as on,w as te,l as nn,cZ as sn,c_ as an,s as l,t as r,z as rn,a as o,c$ as Se,d0 as ln,I as oe,ca as cn,H as jo,B as dn,x as hn,X as pn,cc as un,d1 as mn,a6 as fn,aH as ko,aK as xn,a2 as gn,d2 as mt,d3 as $o,O as yn,c9 as bn,ay as wn,az as Sn,aA as jn,av as kn,bO as $n,d4 as vn}from"./index-D_jLRyxs.js";import{f as Cn,c as Mn,D as An,S as In}from"./SaleCountdown-Cd-0KaVZ.js";import{d as Ln}from"./dcl-schemas-CWaHH-ed.js";import{t as Wn,u as Tn,C as _n,M as Pn,i as Dn}from"./ManaPricingBanner-D6sLeIKP.js";import{T as Ee}from"./Tooltip-DoHbcrYg.js";import{m as zn}from"./mana-matic-CEqvSwrJ.js";import{g as vo,f as En,R as Fn,M as Rn}from"./browseLayout.styles-BvcKB1tB.js";import{E as Ft}from"./ErrorNotice-CgXteyOw.js";import{I as Nn}from"./IssueModal-By9a682X.js";import{u as On,L as Bn}from"./useStore-Bof_I4Xu.js";import{s as qn}from"./signin-empty-DwpZ5LQf.js";import"./sentry-QPJ31WyA.js";import"./ethers-xBnicGGT.js";import"./intl-AKLEHPeO.js";import"./errors-ont-HITy.js";import"./sha3-D0i8WAru.js";import"./browser-B-ANoDXe.js";import"./trade-encoding-ComPweJZ.js";import"./sendMetaTransaction-DaB-26gT.js";import"./ManaPricingBanner.styles-BPXSeSwH.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]="27c495a5-7d9f-4adc-942e-7db29aeb544e",t._sentryDebugIdIdentifier="sentry-dbid-27c495a5-7d9f-4adc-942e-7db29aeb544e")}catch{}})();function Q(t){try{return BigInt(t||"0")}catch{return 0n}}async function Rt(t){var a;const n=new URLSearchParams({seller:t.seller});t.from!=null&&n.set("from",String(t.from)),t.to!=null&&n.set("to",String(t.to));const s=await fetch(`${ce.marketplaceServerUrl}/v1/sales/summary?${n.toString()}`);if(!s.ok)throw await((a=s.body)==null?void 0:a.cancel()),new Error(`fetchSalesSummary ${s.status}`);const{data:i}=await s.json();return i}function Hn(t){const n=new URLSearchParams;return t.seller&&n.set("seller",t.seller),t.contractAddress&&n.set("contractAddress",t.contractAddress),t.itemId!=null&&n.set("itemId",t.itemId),t.type&&n.set("type",t.type),t.from!=null&&n.set("from",String(t.from)),t.to!=null&&n.set("to",String(t.to)),n.set("first",String(t.first??100)),t.skip&&n.set("skip",String(t.skip)),n.set("sortBy","recently_sold"),n}async function gt(t){var i;const n=await fetch(`${ce.marketplaceServerUrl}/v1/sales?${Hn(t).toString()}`);if(!n.ok)throw await((i=n.body)==null?void 0:i.cancel()),new Error(`fetchSales ${n.status}`);const s=await n.json();return{data:s.data??[],total:s.total??0}}async function Kn(t){const{total:n}=await gt({...t,first:1});return n}async function Un(t,{first:n,skip:s}){const{data:i,total:a}=await gt({...t,first:n,skip:s});return{rows:i,total:a}}async function Co(t,{cap:n=5e3}={}){const i=[];let a=0;for(let d=0;d<n;d+=1e3){const u=Math.min(1e3,n-d),h=await gt({...t,first:u,skip:d});if(a=h.total,i.push(...h.data),h.data.length<u||i.length>=a)break}return{rows:i,total:a,truncated:a>i.length}}const Yn=864e5;function Nt(t,n){return{current:t,previous:n,pct:n===0?null:(t-n)/n*100}}function Gn(t,n){const s=n===0n?null:Number((t-n)*10000n/n)/100;return{current:Number(t),previous:Number(n),pct:s}}function Vn(t,n=3){var u;const s=t.filter(Mo),i=new Map;for(const h of s){const f=h.buyer.toLowerCase();i.set(f,(i.get(f)??0)+1)}const a=[...i.entries()].sort((h,f)=>f[1]-h[1]||h[0].localeCompare(f[0])),d=a.filter(([,h])=>h>1).length;return{total:a.length,repeat:d,repeatPct:a.length===0?0:d/a.length*100,topSharePct:s.length===0?0:(((u=a[0])==null?void 0:u[1])??0)/s.length*100,top:a.slice(0,n).map(([h,f])=>({address:h,bought:f}))}}function Mo(t){return t.type==="mint"&&t.itemId!=null}function Qn(t,n){const s=t.filter(Mo),i=new Map;for(const a of s){const d=a.buyer.toLowerCase(),u=a.contractAddress.toLowerCase(),h=i.get(d)??{bought:0,items:new Set,collections:new Set,spentWei:0n,lastAt:0};h.bought+=1,h.items.add(`${u}-${a.itemId}`),h.collections.add(u),h.spentWei+=Q(a.price),a.timestamp>h.lastAt&&(h.lastAt=a.timestamp),i.set(d,h)}return[...i.entries()].map(([a,d])=>({address:a,bought:d.bought,items:d.items.size,collections:d.collections.size,spentWei:d.spentWei,lastAt:d.lastAt})).sort((a,d)=>d.spentWei>a.spentWei?1:d.spentWei<a.spentWei?-1:d.bought-a.bought).slice(0,n)}function Xn(t,n){if(t.length===0)return null;const s=t.reduce((i,a)=>a.timestamp>i?a.timestamp:i,0);return Math.max(0,Math.floor((n-s)/Yn))}function Zn(t,n=5){return t.flatMap(s=>s.items.filter(i=>i.sold>0).map(i=>({key:i.key,contractAddress:s.contractAddress,itemId:i.itemId,name:i.name,thumbnail:i.thumbnail,rarity:i.rarity,collectionName:s.name,sold:i.sold,earnedWei:i.earnedWei}))).sort((s,i)=>i.sold-s.sold||(i.earnedWei>s.earnedWei?1:i.earnedWei<s.earnedWei?-1:0)||s.name.localeCompare(i.name)).slice(0,n)}const Fe=100;async function Jn(t){const[{collections:n},s]=await Promise.all([on(t,{first:Fe}),os(t)]),i=new Map(n.map(a=>[a.contractAddress.toLowerCase(),a.name]));return s.map(a=>{const d=a.contractAddress.toLowerCase(),u=(a.rarity??"common").toLowerCase(),h=ts(u),f=Number(a.available??0);return{id:a.id,collectionId:"",collectionName:i.get(d)??a.name,contractAddress:d,blockchainItemId:String(a.itemId??""),name:a.name,category:a.category,rarity:u,thumbnail:a.thumbnail??"",type:a.category==="emote"?"emote":"wearable",isPublished:!0,isApproved:!0,totalSupply:Math.max(0,h-f),maxSupply:h,remainingSupply:f,createdAt:a.createdAt?a.createdAt*1e3:void 0,minters:[]}})}function es(t,n){const s=new Set(t.map(i=>i.contractAddress.toLowerCase()));return[...t,...n.filter(i=>!s.has(i.contractAddress.toLowerCase()))]}function ts(t){try{return Ln.Rarity.getMaxSupply(t)}catch{return 0}}async function os(t){var s;const n=[];for(let i=0;;i+=Fe){const a=new URLSearchParams({creator:t,first:String(Fe),skip:String(i),includeSocialEmotes:"false"}),d=await fetch(`${ce.marketplaceServerUrl}/v3/catalog/items?${a.toString()}`);if(!d.ok)throw await((s=d.body)==null?void 0:s.cancel()),new Error(`fetchPublicCatalogue ${d.status}`);const{data:u}=await d.json(),h=u??[];if(n.push(...h),h.length<Fe)return n}}const ft=864e5,Re=14;function ns(t,n,s){const i=new Array(Re).fill(0),a=s-n*ft,d=n*ft/Re;for(const u of t)u.timestamp<a||u.timestamp>s||(i[Math.min(Re-1,Math.floor((u.timestamp-a)/d))]+=1);return i}function ss({rows:t,total:n,truncated:s,mints:i,summary:a,catalogue:d,saleState:u,unreadable:h,days:f,now:j}){const W=new Map,m=new Map,N=new Map;for(const p of t){if(p.type!=="mint"||p.itemId==null)continue;const g=p.contractAddress.toLowerCase(),$=`${g}-${p.itemId}`;W.set($,(W.get($)??0)+1),m.set($,(m.get($)??0n)+Q(p.price));const A=N.get(g)??[];A.push(p),N.set(g,A)}const z=t.reduce((p,g)=>g.timestamp<p?g.timestamp:p,j),P=Math.max(1,Math.ceil((j-z)/ft)),k=f!=null&&!s?f:Math.max(f==null?Re:1,P),b=new Map(((a==null?void 0:a.byItem)??[]).map(p=>[`${p.contractAddress.toLowerCase()}-${p.itemId}`,p.soldLifetime])),D=new Map(((a==null?void 0:a.byCollection)??[]).map(p=>[p.contractAddress.toLowerCase(),p])),L=new Map;let q=0,_=0,ne=0,R=0,T=0;for(const p of d){const g=p.contractAddress.toLowerCase(),$=u[`${p.contractAddress}-${p.blockchainItemId}`],A=p.remainingSupply<=0?"soldout":h!=null&&h.has(g)?"unknown":$!=null&&$.isOnSale?$.manaWei?"classic":"discounted":"unlisted";A==="soldout"?R+=1:A==="unlisted"?T+=1:A==="classic"?ne+=1:A==="discounted"&&(_+=1);const y=L.get(g)??{contractAddress:g,collectionId:p.collectionId,name:p.collectionName,items:[],listed:0,classic:0,soldOut:0,sold:0,earningsWei:0n,createdAt:null,trend:[],claimed:0,runTotal:0,exhausted:!1},E=W.get(`${g}-${p.blockchainItemId}`)??0;y.items.push({key:`${g}-${p.blockchainItemId}`,itemId:p.blockchainItemId,name:p.name,thumbnail:p.thumbnail,rarity:p.rarity,left:p.remainingSupply,minted:p.totalSupply,sold:E,earnedWei:m.get(`${g}-${p.blockchainItemId}`)??0n,lifetimeSold:b.get(`${g}-${p.blockchainItemId}`)??null,priceCredits:($==null?void 0:$.priceCredits)??null,manaWei:($==null?void 0:$.manaWei)??null,createdAt:p.createdAt??null,state:A}),y.sold+=E,y.claimed+=p.totalSupply,y.runTotal+=p.totalSupply+p.remainingSupply,q+=E,p.createdAt&&(y.createdAt==null||p.createdAt>y.createdAt)&&(y.createdAt=p.createdAt),A==="soldout"?y.soldOut+=1:A==="classic"?y.classic+=1:A==="discounted"&&(y.listed+=1),L.set(g,y)}for(const[p,g]of L){const $=N.get(p)??[],A=D.get(p);g.earningsWei=A?Q(A.earnedWei):$.reduce((y,E)=>y+Q(E.price),0n),A&&(g.sold=A.sold),g.trend=ns($,k,j),g.exhausted=g.items.length>0&&g.soldOut===g.items.length,g.items.sort((y,E)=>E.sold-y.sold||y.name.localeCompare(E.name))}const H=[...L.values()].reduce((p,g)=>p+g.sold,0);return{collections:[...L.values()].sort((p,g)=>g.sold-p.sold||p.name.localeCompare(g.name)),sold:(a==null?void 0:a.total)??n,mints:(a==null?void 0:a.mints)??i,resales:a?a.resales:n-i,earningsWei:a?Q(a.earnedWei):t.reduce((p,g)=>p+Q(g.price),0n),partial:a?!1:s,breakdownPartial:s,fetched:t.length,unattributed:a?a.total-H:t.length-q,trendDays:k,unknownCollections:[...L.keys()].filter(p=>h==null?void 0:h.has(p)).length,royalties:a?{resales:a.royalties.resales,volumeWei:Q(a.royalties.volumeWei)}:null,listed:_,neverListed:T,classic:ne,soldOut:R}}const yt=864e5,as=["7d","30d","90d","year","all","custom"],rs={"7d":7,"30d":30,"90d":90};function Ne(t){const n=new Date(t);return n.setHours(0,0,0,0),n.getTime()}function is(t){const n=new Date(t);return n.setHours(23,59,59,999),n.getTime()}function ls(t,n){const s=is(t.key==="custom"&&t.to!=null?Math.min(t.to,n):n);if(t.key==="all")return{from:void 0,to:s,days:null};let i;return t.key==="custom"&&t.from!=null?i=Ne(Math.min(t.from,s)):t.key==="year"?i=Ne(new Date(new Date(s).getFullYear(),0,1).getTime()):i=Io(Ne(s),-((rs[t.key]??30)-1)),{from:i,to:s,days:Math.max(1,Math.round((s+1-i)/yt))}}function Ao(t,n){if(t.from==null||n==="none")return null;if(n==="year")return{from:Ot(t.from),to:Ot(t.to)};const s=t.days??Math.max(1,Math.round((t.to+1-t.from)/yt));return{from:Io(t.from,-s),to:t.from-1}}function Io(t,n){const s=new Date(t);return s.setDate(s.getDate()+n),s.getTime()}function Ot(t){const n=new Date(t);return n.getMonth()===1&&n.getDate()===29&&n.setDate(28),n.setFullYear(n.getFullYear()-1),n.getTime()}function cs(t,n){const s=(n-t)/yt;return s<=62?"day":s<=400?"week":"month"}function Bt(t,n,s){const i=[],a=new Date(Ne(t));for(s==="month"&&a.setDate(1);a.getTime()<=n;)i.push(a.getTime()),s==="day"?a.setDate(a.getDate()+1):s==="week"?a.setDate(a.getDate()+7):a.setMonth(a.getMonth()+1);return i}function qt(t,n,s){const i=n.map(a=>({start:a,sales:0,earnedWei:0n}));if(i.length===0)return i;for(const a of t){if(a.timestamp<n[0]||a.timestamp>s)continue;let d=0,u=n.length-1;for(;d<u;){const f=d+u+1>>1;n[f]<=a.timestamp?d=f:u=f-1}const h=d;i[h].sales+=1,i[h].earnedWei+=Q(a.price)}return i}const ds=new Map,hs=[],ps=6e3;function us(t,n){var H,p;const s=t==null?void 0:t.address,{days:i,from:a,to:d}=n,u=[a??null,d],h=te({queryKey:["store-sales",s,...u],enabled:!!s,queryFn:()=>Co({seller:s,from:a,to:d})}),f=te({queryKey:["store-summary",s,...u],enabled:!!s,queryFn:()=>Rt({seller:s,from:a,to:d})}),j=Ao(n,"previous"),W=j==null?void 0:j.from,m=j==null?void 0:j.to,N=te({queryKey:["store-summary-previous",s,...u],enabled:!!s&&W!==void 0,queryFn:()=>Rt({seller:s,from:W,to:m})}),z=te({queryKey:["store-mints",s,...u],enabled:!!s,queryFn:()=>Kn({seller:s,from:a,to:d,type:"mint"})}),P=te({queryKey:["store-catalogue",s],enabled:!!s&&!!t,queryFn:()=>Cn(s,t.identity,{includeSoldOut:!0})}),k=te({queryKey:["store-public-catalogue",s],enabled:!!s&&!!t,queryFn:()=>Promise.race([Jn(s),new Promise((g,$)=>setTimeout(()=>$(new Error("public catalogue timed out")),ps))]).catch(g=>(nn(g,{flow:"my_store",step:"public_catalogue"}),[]))}),b=w.useMemo(()=>P.data?k.isPending?{data:void 0}:{data:es(P.data,k.data??[])}:{data:void 0},[P.data,k.isPending,k.data]),D=w.useMemo(()=>[...new Set((b.data??[]).map(g=>g.contractAddress))],[b.data]),L=te({queryKey:["store-sale-state",s,D],enabled:D.length>0,queryFn:async()=>{const g=await Promise.allSettled(D.map(y=>sn(y))),$={},A=new Set;return g.forEach((y,E)=>{const B=D[E];if(y.status==="rejected"){A.add(B.toLowerCase());return}for(const[Y,Z]of Object.entries(y.value))$[`${B}-${Y}`]=Z}),{states:$,unreadable:A}}}),q=te({queryKey:["store-saves",D,(b.data??[]).length],enabled:(b.data??[]).length>0,queryFn:async()=>{const g=(b.data??[]).map(y=>`${y.contractAddress.toLowerCase()}-${y.blockchainItemId}`),$=await Promise.allSettled(g.map(async y=>[y,(await an(y)).count])),A=new Map;for(const y of $)y.status==="fulfilled"&&A.set(y.value[0],y.value[1]);return A}}),_=w.useMemo(()=>{var g,$,A,y,E;return b.data?ss({rows:((g=h.data)==null?void 0:g.rows)??[],total:(($=h.data)==null?void 0:$.total)??0,truncated:!!((A=h.data)!=null&&A.truncated),mints:z.data??0,summary:f.data??null,catalogue:b.data,saleState:((y=L.data)==null?void 0:y.states)??{},unreadable:(E=L.data)==null?void 0:E.unreadable,days:i,now:d}):null},[b.data,h.data,z.data,f.data,L.data,i,d]),ne=w.useMemo(()=>{var g;return Wn(P.data??[],(g=L.data)==null?void 0:g.states)},[P.data,L.data]),R=w.useMemo(()=>{var E,B,Y;const g=Vn(((E=h.data)==null?void 0:E.rows)??[]),$=Qn(((B=h.data)==null?void 0:B.rows)??[]),A=Xn(((Y=h.data)==null?void 0:Y.rows)??[],d),y=N.data;return{collectors:g,buyers:$,quietDays:A,sold:y&&f.data?Nt(f.data.total,y.total):null,earnings:y&&f.data?Gn(Q(f.data.earnedWei),Q(y.earnedWei)):null,royalties:y&&f.data?Nt(f.data.royalties.resales,y.royalties.resales):null}},[h.data,f.data,N.data,d]),T=q.data??ds;return{stats:_,trend:R,savesByKey:T,saleable:ne,sales:{rows:((H=h.data)==null?void 0:H.rows)??hs,truncated:!!((p=h.data)!=null&&p.truncated),isFetching:h.isFetching},isLoading:P.isLoading||k.isLoading||h.isLoading||f.isLoading,error:P.error??h.error??null}}const ms=l.span`
2
- display: inline-flex;
3
- align-items: center;
4
- cursor: help;
5
- /* The glyph sits tight against its own box, so the figure beside it needs the gap from here. */
6
- margin-right: 3px;
7
-
8
- img {
9
- width: 1em;
10
- height: 1em;
11
- vertical-align: -0.125em;
12
- }
13
- `;function X({kind:t,className:n}){const s=t==="mana"?r("currency.polygonMana"):r("currency.credits");return e.jsx(Ee,{content:s,children:e.jsx(ms,{className:n,"aria-label":s,role:"img","data-kind":t,children:t==="mana"?e.jsx("img",{src:zn,alt:"","aria-hidden":!0}):e.jsx(rn,{className:"ccy-mark"})})})}const fs=l.div`
14
- display: flex;
15
- flex-direction: column;
16
- gap: 12px;
17
- min-width: 0;
18
- `,xs=l.div`
19
- display: flex;
20
- flex-wrap: wrap;
21
- gap: 16px;
22
- font-family: ${o.font.sans};
23
- font-size: 12px;
24
- color: ${o.colors.softWhite};
25
- `,Ht=l.span`
26
- display: inline-flex;
27
- align-items: center;
28
- gap: 8px;
29
- `,Kt=l.span`
30
- width: 16px;
31
- height: 2px;
32
- border-radius: 1px;
33
- `,gs=l.div`
34
- position: relative;
35
- width: 100%;
36
- touch-action: pan-y;
37
- border-radius: 8px;
38
-
39
- &:focus-visible {
40
- outline: 2px solid ${o.colors.softWhite};
41
- outline-offset: 4px;
42
- }
43
-
44
- svg {
45
- display: block;
46
- }
47
-
48
- .tick {
49
- fill: rgba(255, 255, 255, 0.6);
50
- font-family: ${o.font.sans};
51
- font-size: 11px;
52
- font-variant-numeric: tabular-nums;
53
- }
54
-
55
- /* A surface-coloured ring keeps the marker legible where it crosses the other line. */
56
- .dot {
57
- stroke: ${o.colors.blackBtn};
58
- stroke-width: 2;
59
- }
60
- `,ys=l.div`
61
- position: absolute;
62
- top: 0;
63
- transform: translateX(-50%);
64
- display: flex;
65
- flex-direction: column;
66
- gap: 4px;
67
- padding: 8px 10px;
68
- border-radius: 8px;
69
- background: ${o.colors.blackBtn};
70
- box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
71
- color: ${o.colors.softWhite};
72
- font-family: ${o.font.sans};
73
- font-size: 12px;
74
- white-space: nowrap;
75
- pointer-events: none;
76
- `,Ut=l.span`
77
- display: flex;
78
- align-items: center;
79
- gap: 8px;
80
-
81
- b {
82
- font-weight: 700;
83
- font-variant-numeric: tabular-nums;
84
- }
85
-
86
- span {
87
- color: rgba(255, 255, 255, 0.65);
88
- }
89
- `,Yt=l.span`
90
- width: 12px;
91
- height: 2px;
92
- border-radius: 1px;
93
- `,bs=l.div`
94
- position: absolute;
95
- width: 1px;
96
- height: 1px;
97
- overflow: hidden;
98
- clip-path: inset(50%);
99
- white-space: nowrap;
100
- `,tt=240,V={top:12,right:12,bottom:28,left:48};function ws(t,n,s=4){if(t<=0)return[0,1];const i=t/s,a=10**Math.floor(Math.log10(i)),d=[1,2,5,10].map(j=>j*a).find(j=>j>=i)??i,u=n?Math.max(1,d):d,h=Math.ceil(t/u)*u,f=[];for(let j=0;j<=h+u/2;j+=u)f.push(Number(j.toFixed(6)));return f}function Ss({current:t,comparison:n,formatValue:s,formatStart:i,formatTick:a,wholeValues:d,ariaLabel:u,roleDescription:h,dateLabel:f}){const j=w.useRef(null),[W,m]=w.useState(640),[N,z]=w.useState(null),P=w.useId();w.useEffect(()=>{const M=j.current;if(!M||typeof ResizeObserver>"u")return;const O=new ResizeObserver(J=>{var K;const se=Math.round(((K=J[0])==null?void 0:K.contentRect.width)??0);se>0&&m(se)});return O.observe(M),()=>O.disconnect()},[]);const k=t.values.length,b=N!=null&&N<k?N:null,D=Math.max(1,W-V.left-V.right),L=tt-V.top-V.bottom,q=Math.max(0,...t.values,...(n==null?void 0:n.values)??[]),_=w.useMemo(()=>ws(q,!!d),[q,d]),ne=_[_.length-1]||1,R=M=>V.left+(k>1?M/(k-1)*D:D/2),T=M=>V.top+L-M/ne*L,H=M=>M.slice(0,k).map((O,J)=>`${J===0?"M":"L"}${R(J).toFixed(1)} ${T(O).toFixed(1)}`).join(" "),p=H(t.values),g=k>0?`${p} L${R(k-1).toFixed(1)} ${T(0)} L${R(0).toFixed(1)} ${T(0)} Z`:"",$=Math.max(1,Math.ceil(k/Math.max(2,Math.floor(D/110)))),A=[];for(let M=0;M<k;M+=$)A.push(M);k>0&&A[A.length-1]!==k-1&&(A.length>1&&k-1-A[A.length-1]<$*.6&&A.pop(),A.push(k-1));const y=A.map(M=>({i:M,start:t.starts[M]}));function E(M){var se;const O=(se=j.current)==null?void 0:se.getBoundingClientRect();if(!O||k===0)return 0;const J=(M-O.left-V.left)/D;return Math.min(k-1,Math.max(0,Math.round(J*(k-1))))}function B(M){z(E(M.clientX))}function Y(M){if(M.key!=="ArrowLeft"&&M.key!=="ArrowRight")return;M.preventDefault();const O=N??(M.key==="ArrowLeft"?k:-1);z(Math.min(k-1,Math.max(0,O+(M.key==="ArrowRight"?1:-1))))}const Z=b!=null?Math.min(Math.max(R(b),96),W-96):0;return e.jsxs(fs,{children:[e.jsxs(xs,{"aria-hidden":!0,children:[e.jsxs(Ht,{children:[e.jsx(Kt,{style:{background:o.colors.dclRed}}),t.label]}),n?e.jsxs(Ht,{children:[e.jsx(Kt,{style:{background:o.colors.chartCompare}}),n.label]}):null]}),e.jsxs(gs,{ref:j,tabIndex:0,role:"group","aria-roledescription":h,"aria-label":u,onPointerMove:B,onPointerDown:B,onPointerLeave:M=>{M.pointerType==="mouse"&&z(null)},onKeyDown:Y,onBlur:()=>z(null),"data-testid":"store-chart",children:[e.jsxs("svg",{width:W,height:tt,"aria-hidden":!0,children:[e.jsx("defs",{children:e.jsxs("linearGradient",{id:P,x1:"0",y1:"0",x2:"0",y2:"1",children:[e.jsx("stop",{offset:"0",stopColor:o.colors.dclRed,stopOpacity:"0.18"}),e.jsx("stop",{offset:"1",stopColor:o.colors.dclRed,stopOpacity:"0"})]})}),_.map(M=>e.jsxs("g",{children:[e.jsx("line",{x1:V.left,x2:W-V.right,y1:T(M),y2:T(M),stroke:o.colors.cardLine}),e.jsx("text",{x:V.left-8,y:T(M),dy:"0.32em",textAnchor:"end",className:"tick",children:s(M)})]},M)),y.map(({i:M,start:O})=>e.jsx("text",{x:R(M),y:tt-8,textAnchor:M===0?"start":M===k-1?"end":"middle",className:"tick",children:(a??i)(O)},O)),n?e.jsx("path",{d:H(n.values),fill:"none",stroke:o.colors.chartCompare,strokeWidth:"2",strokeLinejoin:"round",strokeLinecap:"round"}):null,e.jsx("path",{d:g,fill:`url(#${P})`}),e.jsx("path",{d:p,fill:"none",stroke:o.colors.dclRed,strokeWidth:"2",strokeLinejoin:"round",strokeLinecap:"round"}),b!=null?e.jsxs("g",{children:[e.jsx("line",{x1:R(b),x2:R(b),y1:V.top,y2:V.top+L,stroke:o.colors.softWhite,strokeOpacity:"0.5"}),n&&n.values[b]!=null?e.jsx("circle",{cx:R(b),cy:T(n.values[b]),r:"4",fill:o.colors.chartCompare,className:"dot"}):null,e.jsx("circle",{cx:R(b),cy:T(t.values[b]??0),r:"4",fill:o.colors.dclRed,className:"dot"})]}):null]}),b!=null?e.jsxs(ys,{style:{left:Z},"data-testid":"store-chart-tip",children:[e.jsxs(Ut,{children:[e.jsx(Yt,{style:{background:o.colors.dclRed}}),e.jsx("b",{children:s(t.values[b]??0)}),e.jsx("span",{children:i(t.starts[b])})]}),n&&n.starts[b]!=null?e.jsxs(Ut,{children:[e.jsx(Yt,{style:{background:o.colors.chartCompare}}),e.jsx("b",{children:s(n.values[b]??0)}),e.jsx("span",{children:i(n.starts[b])})]}):null]}):null]}),e.jsx(bs,{children:e.jsxs("table",{children:[e.jsx("caption",{children:u}),e.jsx("thead",{children:e.jsxs("tr",{children:[e.jsx("th",{scope:"col",children:f}),e.jsx("th",{scope:"col",children:t.label}),n?e.jsx("th",{scope:"col",children:n.label}):null]})}),e.jsx("tbody",{children:t.starts.map((M,O)=>e.jsxs("tr",{children:[e.jsx("th",{scope:"row",children:i(M)}),e.jsx("td",{children:s(t.values[O]??0)}),n?e.jsx("td",{children:s(n.values[O]??0)}):null]},M))})]})})]})}const js=l.div`
101
- display: flex;
102
- flex-wrap: wrap;
103
- align-items: center;
104
- gap: 8px;
105
- `,ks=l.div`
106
- display: flex;
107
- gap: 4px;
108
- padding: 4px;
109
- border-radius: ${o.radius.pill};
110
- background: rgba(0, 0, 0, 0.22);
111
- `,$s=l.button`
112
- border: 0;
113
- cursor: pointer;
114
- min-height: 32px;
115
- padding: 6px 14px;
116
- border-radius: ${o.radius.pill};
117
- font-family: ${o.font.sans};
118
- font-size: 12px;
119
- font-weight: 600;
120
- color: rgba(252, 252, 252, 0.62);
121
- background: transparent;
122
-
123
- &:hover {
124
- color: ${o.colors.softWhite};
125
- }
126
- &[aria-pressed='true'] {
127
- background: ${o.colors.softWhite};
128
- color: ${o.colors.text};
129
- }
130
- &:focus-visible {
131
- outline: 2px solid ${o.colors.softWhite};
132
- outline-offset: 2px;
133
- }
134
- `,ot=l(vo)`
135
- > button {
136
- gap: 16px;
137
- height: 40px;
138
- padding: 4px 4px 4px 12px;
139
- background: transparent;
140
- border: 0.5px solid ${o.colors.white};
141
- border-radius: ${o.radius.btn};
142
- color: ${o.colors.white};
143
- font-size: 12px;
144
- font-weight: 500;
145
- text-transform: uppercase;
146
- letter-spacing: 0;
147
- }
148
- > button:hover {
149
- border-color: ${o.colors.softWhite};
150
- background: ${o.colors.glassFaint};
151
- }
152
- > button .ico {
153
- color: ${o.colors.softWhite} !important;
154
- }
155
- `,vs=l.div`
156
- display: flex;
157
- flex-wrap: wrap;
158
- gap: 24px;
159
- font-family: ${o.font.sans};
160
- `,Gt=l.div`
161
- display: flex;
162
- flex-direction: column;
163
- gap: 2px;
164
-
165
- b {
166
- font-size: 22px;
167
- font-weight: 700;
168
- color: ${o.colors.white};
169
- }
170
- span {
171
- font-size: 12px;
172
- color: ${o.colors.gray4};
173
- }
174
- small {
175
- font-size: 13px;
176
- font-weight: 600;
177
- }
178
- /* The tiles' own delta colours, so a rise reads the same wherever it is shown. */
179
- small[data-dir='up'] {
180
- color: ${o.colors.successBorder};
181
- }
182
- small[data-dir='down'] {
183
- color: #ff6b6b;
184
- }
185
- `,nt=l.p`
186
- margin: 0;
187
- font-family: ${o.font.sans};
188
- font-size: 12px;
189
- color: ${o.colors.gray4};
190
- `,Cs=l.div`
191
- transition: opacity 0.15s ease;
192
-
193
- &[data-fetching] {
194
- opacity: 0.55;
195
- }
196
-
197
- @media (prefers-reduced-motion: reduce) {
198
- transition: none;
199
- }
200
- `,Ms=864e5;function Vt(t){return Number(t/10n**14n)/1e4}function Qt(t,n,s){return t.filter(i=>(n==="all"||i.contractAddress.toLowerCase()===n)&&(s==="all"||i.itemId===s))}function As(t){return t>=10?Math.round(t).toLocaleString(Se()):t.toFixed(2)}const Xt=new Map;function Lo(t){const n=Se(),s=`${n}|${JSON.stringify(t)}`;let i=Xt.get(s);return i||(i=new Intl.DateTimeFormat(n,t),Xt.set(s,i)),i}function Zt(t,n,s){const i=n==="month"?{month:"short",year:"numeric"}:{month:"short",day:"numeric"};return s&&n!=="month"&&(i.year="numeric"),Lo(i).format(t)}function st(t,n){const s=Lo({month:"short",day:"numeric",year:"numeric"});return`${s.format(t)} – ${s.format(n)}`}function Is({address:t,range:n,rows:s,truncated:i,fetching:a,collections:d,onTrack:u,comparisonRows:h}){var K;const[f,j]=w.useState("sales"),[W,m]=w.useState("previous"),[N,z]=w.useState("all"),[P,k]=w.useState("all"),b=N!=="all"?d.find(x=>x.contractAddress.toLowerCase()===N):d.length===1?d[0]:void 0,D=b?b.contractAddress.toLowerCase():"all",L=n.from==null?"none":W,q=w.useMemo(()=>{if(n.from!=null)return n.from;const x=s.reduce((de,ae)=>Math.min(de,ae.timestamp),n.to);return Math.min(x,n.to-29*Ms)},[n,s]),_=Ao(n,L),ne=te({queryKey:["store-sales-compare",t,(_==null?void 0:_.from)??null,(_==null?void 0:_.to)??null],enabled:!!t&&!!_&&!h,placeholderData:x=>x,queryFn:()=>Co({seller:t,from:_.from,to:_.to})}),R=h?{data:{rows:h,truncated:!1},isFetching:!1}:ne,T=cs(q,n.to),H=w.useMemo(()=>{const x=Bt(q,n.to,T);return qt(Qt(s,D,P),x,n.to)},[s,q,n.to,T,D,P]),p=_==null?void 0:_.from,g=_==null?void 0:_.to,$=w.useMemo(()=>{if(p==null||g==null||!R.data)return null;const x=Bt(p,g,T).slice(0,H.length);return qt(Qt(R.data.rows,D,P),x,g)},[p,g,R.data,T,H.length,D,P]),A=x=>f==="sales"?x.sales:Vt(x.earnedWei),y=x=>f==="sales"?x.reduce((de,ae)=>de+ae.sales,0):Vt(x.reduce((de,ae)=>de+ae.earnedWei,0n)),E=x=>f==="sales"?Math.round(x).toLocaleString(Se()):As(x),B=y(H),Y=$?y($):null,Z=Y!=null&&Y>0?Math.round((B-Y)/Y*100):null,M=i||!!((K=R.data)!=null&&K.truncated),O=H.some(x=>x.sales>0)||(($==null?void 0:$.some(x=>x.sales>0))??!1),J=[{value:"previous",label:r("myStore.chart.comparePrevious")},{value:"year",label:r("myStore.chart.compareYear")},{value:"none",label:r("myStore.chart.compareNone")}],se=[{value:"all",label:r("myStore.chart.allCollections")},...d.map(x=>({value:x.contractAddress.toLowerCase(),label:x.name}))];return e.jsxs(e.Fragment,{children:[e.jsxs(js,{children:[e.jsx(ks,{role:"group","aria-label":r("myStore.chart.metric"),children:["sales","earnings"].map(x=>e.jsx($s,{type:"button","aria-pressed":f===x,onClick:()=>{u("Shop Changed Store Chart",{control:"metric",value:x}),j(x)},"data-testid":`store-chart-metric-${x}`,children:r(`myStore.chart.${x}`)},x))}),n.from!=null?e.jsx(ot,{options:J,value:L,onChange:x=>{u("Shop Changed Store Chart",{control:"compare",value:x}),m(x)},ariaLabel:r("myStore.chart.compare"),className:"store-chart-compare"}):null,d.length>1?e.jsx(ot,{options:se,value:N,onChange:x=>{u("Shop Changed Store Chart",{control:"collection",value:x==="all"?"all":"one"}),z(x),k("all")},ariaLabel:r("myStore.chart.collection"),className:"store-chart-collection"}):null,b&&b.items.length>1?e.jsx(ot,{options:[{value:"all",label:r("myStore.chart.allItems")},...b.items.map(x=>({value:x.itemId,label:x.name}))],value:P,onChange:x=>{u("Shop Changed Store Chart",{control:"item",value:x==="all"?"all":"one"}),k(x)},ariaLabel:r("myStore.chart.item"),className:"store-chart-item"}):null]}),e.jsxs(vs,{children:[e.jsxs(Gt,{"data-testid":"store-chart-total",children:[e.jsxs("b",{children:[f==="earnings"?e.jsx(X,{kind:"mana"}):null,E(B)]}),e.jsx("span",{children:st(q,n.to)})]}),$&&_?e.jsxs(Gt,{"data-testid":"store-chart-previous",children:[e.jsxs("b",{children:[f==="earnings"?e.jsx(X,{kind:"mana"}):null,E(Y??0),Z!=null?e.jsxs("small",{"data-dir":Z>=0?"up":"down",children:[" ",r("myStore.chart.change",{pct:`${Z>0?"+":""}${Z}`})]}):null]}),e.jsx("span",{children:st(_.from,_.to)})]}):null]}),e.jsx(Cs,{"data-fetching":a||R.isFetching?"":void 0,children:O?e.jsx(Ss,{current:{label:r("myStore.chart.thisPeriod"),values:H.map(A),starts:H.map(x=>x.start)},comparison:$?{label:L==="year"?r("myStore.chart.lastYear"):r("myStore.chart.previousPeriod"),values:$.map(A),starts:$.map(x=>x.start)}:null,formatValue:E,formatStart:x=>Zt(x,T,L==="year"),formatTick:x=>Zt(x,T,!1),wholeValues:f==="sales",ariaLabel:r(f==="sales"?"myStore.chart.ariaSales":"myStore.chart.ariaEarnings",{span:st(q,n.to)}),dateLabel:r("myStore.chart.date"),roleDescription:r("myStore.chart.roleDescription")}):e.jsx(nt,{"data-testid":"store-chart-empty",children:r("myStore.chart.empty")})}),M?e.jsx(nt,{children:r("myStore.chart.partial")}):null,T!=="day"?e.jsx(nt,{children:r(T==="week"?"myStore.chart.byWeek":"myStore.chart.byMonth")}):null]})}const Ls=l.button`
201
- display: inline-flex;
202
- align-items: center;
203
- gap: 4px;
204
- max-width: 100%;
205
- padding: 0;
206
- white-space: normal;
207
- text-align: inherit;
208
- border: 0;
209
- background: none;
210
- color: inherit;
211
- font: inherit;
212
- letter-spacing: inherit;
213
- text-transform: inherit;
214
- cursor: pointer;
215
-
216
- &[data-align='right'] {
217
- flex-direction: row-reverse;
218
- }
219
-
220
- &:focus-visible {
221
- outline: 2px solid currentColor;
222
- outline-offset: 2px;
223
- border-radius: 4px;
224
- }
225
-
226
- [data-testid='sort-header-chevron'] {
227
- flex: none;
228
- opacity: 0.35;
229
- transition: opacity 0.15s;
230
- }
231
-
232
- &[data-dir] [data-testid='sort-header-chevron'],
233
- &:hover [data-testid='sort-header-chevron'] {
234
- opacity: 1;
235
- }
236
- `;function fe({label:t,dir:n,onSort:s,align:i="left",testId:a}){return e.jsxs(Ls,{type:"button",onClick:s,"data-dir":n,"data-align":i,"data-testid":a,"aria-label":typeof t=="string"?r(n==="asc"?"common.sortedAsc":n==="desc"?"common.sortedDesc":"common.sortColumn",{column:t}):void 0,children:[t,e.jsx(En,{up:n==="asc",size:12,"aria-hidden":!0,"data-testid":"sort-header-chevron"})]})}const Ws=l.div`
237
- position: absolute;
238
- top: calc(100% + 8px);
239
- right: 0;
240
- z-index: 40;
241
- display: flex;
242
- flex-direction: column;
243
- max-width: calc(100vw - 32px);
244
- background: ${o.colors.white};
245
- border-radius: 12px;
246
- box-shadow: 0 12px 32px rgba(22, 21, 24, 0.24);
247
- overflow: hidden;
248
-
249
- ${Mn}
250
-
251
- .react-datepicker {
252
- border: 0;
253
- box-shadow: none;
254
- border-radius: 0;
255
- display: flex;
256
- justify-content: center;
257
- }
258
- .react-datepicker__month-container + .react-datepicker__month-container {
259
- border-left: 1px solid rgba(22, 21, 24, 0.1);
260
- }
261
- .react-datepicker__day {
262
- width: 2rem;
263
- line-height: 2rem;
264
- margin: 0.1rem 0;
265
- border-radius: 0;
266
- }
267
- .react-datepicker__day--in-range,
268
- .react-datepicker__day--in-selecting-range {
269
- background: rgba(105, 31, 169, 0.12);
270
- color: ${o.colors.text};
271
- }
272
- .react-datepicker__day--range-start,
273
- .react-datepicker__day--range-end,
274
- .react-datepicker__day--selecting-range-start,
275
- .react-datepicker__day--selected {
276
- background: ${o.colors.accent};
277
- color: ${o.colors.white};
278
- }
279
- .react-datepicker__day--range-start,
280
- .react-datepicker__day--selecting-range-start {
281
- border-radius: 8px 0 0 8px;
282
- }
283
- .react-datepicker__day--range-end {
284
- border-radius: 0 8px 8px 0;
285
- }
286
- .react-datepicker__day--range-start.react-datepicker__day--range-end {
287
- border-radius: 8px;
288
- }
289
- .react-datepicker__day--outside-month {
290
- visibility: hidden;
291
- }
292
- `,Ts=l.div`
293
- display: flex;
294
- align-items: center;
295
- justify-content: space-between;
296
- gap: 12px;
297
- padding: 10px 12px;
298
- border-top: 1px solid rgba(22, 21, 24, 0.1);
299
- font-family: ${o.font.sans};
300
- font-size: 13px;
301
- color: ${o.colors.text};
302
-
303
- ${o.media.maxWidth("mobile")} {
304
- font-size: 12px;
305
- }
306
- `,_s=l.div`
307
- display: flex;
308
- gap: 8px;
309
- `,Jt=l.button`
310
- min-height: 36px;
311
- padding: 0 14px;
312
- border-radius: ${o.radius.btn};
313
- border: 1px solid rgba(22, 21, 24, 0.16);
314
- background: ${o.colors.white};
315
- color: ${o.colors.text};
316
- font-family: ${o.font.sans};
317
- font-size: 13px;
318
- font-weight: 600;
319
- cursor: pointer;
320
-
321
- &[data-variant='primary'] {
322
- border-color: ${o.colors.accent};
323
- background: ${o.colors.accent};
324
- color: ${o.colors.white};
325
- }
326
- &:disabled {
327
- opacity: 0.45;
328
- cursor: default;
329
- }
330
- &:focus-visible {
331
- outline: 2px solid ${o.colors.accent};
332
- outline-offset: 2px;
333
- }
334
- `,eo=`(min-width: ${ln.sm}px)`,Ps=new Date(2020,0,1);function Ds(){const[t,n]=w.useState(()=>{var s;return typeof window<"u"&&((s=window.matchMedia)==null?void 0:s.call(window,eo).matches)});return w.useEffect(()=>{var a;const s=(a=window.matchMedia)==null?void 0:a.call(window,eo);if(!s)return;const i=()=>n(s.matches);return s.addEventListener("change",i),()=>s.removeEventListener("change",i)},[]),!!t}function zs(t,n){return n?new Date(t.getFullYear(),t.getMonth()-1,1):t}function Es({from:t,to:n,max:s,onApply:i,onClose:a}){const[d,u]=w.useState(t!=null?new Date(t):null),[h,f]=w.useState(n!=null?new Date(n):null),j=w.useRef(null),W=Ds();w.useEffect(()=>{function z(k){var D,L;const b=k.target;(D=j.current)!=null&&D.contains(b)||(L=b.closest)!=null&&L.call(b,"[data-range-trigger]")||a()}function P(k){if(k.key==="Escape"&&a(),k.key!=="Tab"||!j.current)return;const b=[...j.current.querySelectorAll('button:not([disabled]), [tabindex="0"]')];if(b.length===0)return;const D=b[0],L=b[b.length-1];k.shiftKey&&document.activeElement===D?(k.preventDefault(),L.focus()):!k.shiftKey&&document.activeElement===L&&(k.preventDefault(),D.focus())}return document.addEventListener("pointerdown",z),document.addEventListener("keydown",P),()=>{document.removeEventListener("pointerdown",z),document.removeEventListener("keydown",P)}},[a]),w.useEffect(()=>{var k,b;const z=document.activeElement;return(b=((k=j.current)==null?void 0:k.querySelector('.react-datepicker__day[tabindex="0"]'))??j.current)==null||b.focus(),()=>{var L;const D=document.querySelector("[data-range-trigger]");(L=z!=null&&z.isConnected?z:D)==null||L.focus()}},[]);const m=new Intl.DateTimeFormat(Se(),{month:"short",day:"numeric",year:"numeric"}),N=d?h?`${m.format(d)} – ${m.format(h)}`:r("myStore.rangePickEnd",{from:m.format(d)}):r("myStore.rangePickStart");return e.jsxs(Ws,{ref:j,role:"dialog","aria-modal":"true","aria-label":r("myStore.rangeDialog"),tabIndex:-1,"data-testid":"store-range-picker",children:[e.jsx(An,{inline:!0,selectsRange:!0,startDate:d,endDate:h,onChange:([z,P])=>{u(z),f(P)},maxDate:new Date(s),minDate:Ps,monthsShown:W?2:1,openToDate:zs(h??d??new Date(s),W),calendarStartDay:1}),e.jsxs(Ts,{children:[e.jsx("span",{"data-testid":"store-range-summary",children:N}),e.jsxs(_s,{children:[e.jsx(Jt,{type:"button",onClick:a,children:r("myStore.rangeCancel")}),e.jsx(Jt,{type:"button","data-variant":"primary",disabled:!d||!h,onClick:()=>d&&h&&i(d.getTime(),h.getTime()),"data-testid":"store-range-apply",children:r("myStore.rangeApply")})]})]})]})}function at(t,n,s){return(t==null?void 0:t.key)===n?{key:n,dir:t.dir==="asc"?"desc":"asc"}:{key:n,dir:s}}function Oe(t,n,s){const i=s==="asc"?1:-1;return t.map((a,d)=>({row:a,index:d,v:n(a)})).sort((a,d)=>{const u=a.v==null,h=d.v==null;return u||h?u===h?a.index-d.index:u?1:-1:i*Fs(a.v,d.v)||a.index-d.index}).map(a=>a.row)}function Fs(t,n){return typeof t=="string"&&typeof n=="string"?t.localeCompare(n,void 0,{sensitivity:"base"}):t===n?0:t<n?-1:1}const ue=864e5,ie=Date.now(),Rs=(t,n,s,i,a)=>({key:`0xmock${t}-${t}`,itemId:String(t),name:n,thumbnail:"",rarity:["epic","legendary","rare","mythic","unique"][t%5],left:i-s,minted:s,sold:Math.round(s/6),earnedWei:BigInt(Math.round(s/6)*(3+t%5))*10n**18n,lifetimeSold:s,priceCredits:a==="classic"?null:20+t*5,manaWei:a==="classic"?"5000000000000000000":null,createdAt:ie-t*11*ue,state:a}),Ns=[[0,1,1,2,3,3,5,6,8,9,11,13,16,21],[2,9,1,0,7,2,11,1,0,6,14,2,8,3],[18,16,14,11,9,8,6,5,3,2,2,1,1,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0]],Os=[{name:"Neon Runners",items:[["Neon Runner Boots",340,1e3,"discounted"],["Neon Runner Jacket",210,1e3,"discounted"],["Neon Runner Visor",95,1e3,"discounted"]],trend:0,earnings:1840,sold:128},{name:"Founders Edition",items:[["Founders Cloak",1,1,"soldout"],["Founders Crown",1,1,"soldout"]],trend:3,earnings:0,sold:0},{name:"Midnight Capsule",items:[["Midnight Scarf",0,500,"unlisted"],["Midnight Mittens",0,500,"unlisted"],["Midnight Parka",0,500,"unlisted"]],trend:3,earnings:0,sold:0},{name:"Classic Collection",items:[["Classic Tee",60,200,"classic"],["Classic Cap",44,200,"classic"]],trend:2,earnings:310,sold:12},{name:"Summer Drop",items:[["Summer Shades",480,1e3,"discounted"],["Summer Sandals",300,1e3,"discounted"]],trend:1,earnings:920,sold:71},{name:"Studio Basics",items:[["Studio Hoodie",12,100,"unknown"]],trend:3,earnings:0,sold:0}];function Bs(t,n){const s=t.items.map(([a,d,u,h],f)=>Rs(n*10+f,a,d,u,h)),i=s.reduce((a,d)=>a+d.minted,0);return{contractAddress:`0xmock${n.toString().padStart(36,"0")}`,collectionId:`mock-${n}`,name:t.name,items:s,listed:s.filter(a=>a.state==="discounted").length,classic:s.filter(a=>a.state==="classic").length,soldOut:s.filter(a=>a.state==="soldout").length,sold:t.sold,earningsWei:BigInt(t.earnings)*10n**18n,createdAt:ie-n*30*ue,trend:Ns[t.trend],claimed:i,runTotal:s.reduce((a,d)=>a+d.minted+d.left,0),exhausted:s.length>0&&s.every(a=>a.state==="soldout")}}const bt=(()=>{const t=Os.map(Bs);return{collections:t,sold:211,mints:198,resales:13,earningsWei:3070n*10n**18n,partial:!1,breakdownPartial:!1,fetched:211,unattributed:6,trendDays:30,unknownCollections:1,royalties:{resales:41,volumeWei:2140n*10n**18n},listed:t.reduce((n,s)=>n+s.listed,0),neverListed:t.reduce((n,s)=>n+s.items.filter(i=>i.state==="unlisted").length,0),classic:t.reduce((n,s)=>n+s.classic,0),soldOut:t.reduce((n,s)=>n+s.soldOut,0)}})(),qs={total:74,repeat:29,repeatPct:39.19,topSharePct:21.3},Hs=Array.from({length:12},(t,n)=>({address:`0x${(n+1).toString(16).repeat(40).slice(0,40)}`,bought:12-n,items:Math.max(1,8-n),collections:Math.max(1,5-Math.floor(n/2)),spentWei:BigInt(900-n*62)*10n**18n,lastAt:ie-(n+1)*9*36e5})),to=(t,n,s,i,a,d)=>({id:`mock-coupon-${t}`,signer:"0xmockcreator0000000000000000000000000001",chainId:137,network:"MATIC",checks:{uses:50,expiration:ie+a,effective:ie-i,salt:`0x${t.toString().repeat(64).slice(0,64)}`,contractSignatureIndex:0,signerSignatureIndex:0,allowedRoot:"0x",externalChecks:[],allowedProof:[]},couponManager:"0x6c956587d9fe70032781edcdc626310648575382",couponAddress:"0x4ee8f6b87f4917a3bbc7c8bb3a06db8555f83db9",discountType:1,discount:s*1e4,root:`0x${"44".repeat(32)}`,collections:[n],signature:`0x${"cd".repeat(65)}`,proof:[],createdAt:ie-i,state:{uses:d,cancelled:!1,revoked:!1,checkedAt:ie},status:"active"}),Ks=[to(1,`0xmock${"0".repeat(36)}`,25,3*ue,3*ue,18),to(2,`0xmock${"1".padStart(36,"0")}`,15,12*36e5,9*ue,0)],Us=new Map(bt.collections.flatMap(t=>t.items.map((n,s)=>[n.key,[41,3,128,0,17,6,92,1][s%8]]))),xt=bt.collections.flatMap(t=>t.items.map(n=>[t.contractAddress,n])),Ys=xt.slice(0,5).map(([t,n],s)=>({id:`mock-sale-${s}`,itemId:s===3?null:n.itemId,contractAddress:t,buyer:`0x${(s+3).toString(16).repeat(40).slice(0,40)}`,seller:"0xmockcreator0000000000000000000000000001",price:String(BigInt(40+s*17)*10n**18n),timestamp:ie-(s===0?8*6e4:s*19*36e5),type:s===3?"order":"mint",network:"MATIC",tokenId:s===3?"1042":null})),oo=(()=>{const t=[];let n=7;const s=()=>(n=n*16807%2147483647,n/2147483647);for(let i=0;i<730;i++){const a=ie-i*ue,d=new Date(a).getMonth(),u=d>=5&&d<=7?.4:d>=8&&d<=10?1.8:1,h=Math.round(s()*4*u);for(let f=0;f<h;f++){const[j,W]=xt[Math.floor(s()*xt.length)];t.push({id:`mock-chart-${i}-${f}`,itemId:W.itemId,contractAddress:j,buyer:`0x${Math.floor(s()*16777215).toString(16).padStart(40,"0")}`,seller:"0xmockcreator0000000000000000000000000001",price:String(BigInt(5+Math.floor(s()*60))*10n**18n),timestamp:a-Math.floor(s()*ue),type:"mint",network:"MATIC",tokenId:null})}}return t})(),Gs=l.div`
335
- display: flex;
336
- flex-direction: column;
337
- gap: 22px;
338
-
339
- /* The credits mark is pinned near-black globally (Icon.css) so a coloured total never tints it. Every
340
- surface on this page is dark, so the whole page opts out once rather than each panel in turn. */
341
- .ccy-mark,
342
- .ccy {
343
- color: ${o.colors.softWhite};
344
- }
345
-
346
- /* MANA's mark is an image, not a masked glyph, so no colour reaches it: the token's own artwork is dark
347
- and vanished into every panel on this page. Driven to white instead. */
348
- [data-kind='mana'] img {
349
- filter: brightness(0) invert(1);
350
- }
351
- `,Vs=l.header`
352
- display: flex;
353
- align-items: flex-start;
354
- justify-content: space-between;
355
- gap: 20px;
356
- flex-wrap: wrap;
357
- /* The rule that closes the identity block off from the figures under it. */
358
- padding-bottom: 24px;
359
- border-bottom: 0.5px solid rgba(255, 255, 255, 0.3);
360
- `,Qs=l.div`
361
- display: flex;
362
- align-items: center;
363
- gap: 12px;
364
- min-width: 0;
365
- `,Xs=l.div`
366
- display: flex;
367
- flex-direction: column;
368
- align-items: flex-start;
369
- justify-content: center;
370
- gap: 4px;
371
- padding-bottom: 8px;
372
- min-width: 0;
373
- `,Zs=l.span`
374
- flex: none;
375
- display: block;
376
- width: 84px;
377
- height: 84px;
378
- border-radius: 50%;
379
- background-color: rgba(0, 0, 0, 0.22);
380
- background-size: cover;
381
- background-position: center top;
382
- border: 2px solid rgba(252, 252, 252, 0.22);
383
-
384
- ${o.media.maxWidth("mobile")} {
385
- width: 56px;
386
- height: 56px;
387
- }
388
- `,Js=l.p`
389
- margin: 0;
390
- font-family: ${o.font.sans};
391
- font-size: 14px;
392
- font-weight: 600;
393
- line-height: 1.6;
394
- color: ${o.colors.softWhite};
395
- overflow: hidden;
396
- text-overflow: ellipsis;
397
- white-space: nowrap;
398
- max-width: 100%;
399
- `,ea=l.h1`
400
- margin: 0;
401
- font-family: ${o.font.sans};
402
- font-size: 32px;
403
- font-weight: 700;
404
- line-height: 1.2;
405
- letter-spacing: 0.46px;
406
- color: ${o.colors.white};
407
-
408
- ${o.media.maxWidth("mobile")} {
409
- font-size: 26px;
410
- }
411
- `,ta=l.div`
412
- display: flex;
413
- flex-direction: column;
414
- align-items: flex-start;
415
- gap: 8px;
416
- min-width: 0;
417
- `,no=l.p`
418
- margin: 0;
419
- display: flex;
420
- align-items: center;
421
- gap: 12px;
422
- font-family: ${o.font.sans};
423
- font-size: 12px;
424
- line-height: 1;
425
- color: ${o.colors.softWhite};
426
- `,oa=l.div`
427
- display: flex;
428
- align-items: center;
429
- justify-content: flex-end;
430
- flex-wrap: wrap;
431
- gap: 12px;
432
-
433
- /* Two uppercase buttons that cannot shrink below their labels. On a phone they fit side by side in
434
- Inter with a few pixels to spare, and in any wider fallback font they did not: the second one ran
435
- 15px off a 390px screen. Wrapping puts it on its own line instead. */
436
- ${o.media.maxWidth("mobile")} {
437
- justify-content: flex-start;
438
- width: 100%;
439
- }
440
- `,na=l.a`
441
- display: inline-flex;
442
- align-items: center;
443
- justify-content: center;
444
- gap: 8px;
445
- height: 46px;
446
- padding: 0 12px;
447
- border-radius: ${o.radius.card};
448
- color: ${o.colors.white};
449
- font-family: ${o.font.sans};
450
- font-size: 13px;
451
- font-weight: 600;
452
- line-height: 24px;
453
- letter-spacing: 0.46px;
454
- text-transform: uppercase;
455
- text-decoration: underline;
456
- white-space: nowrap;
457
-
458
- &:hover {
459
- color: ${o.colors.navViolet};
460
- }
461
- .ico {
462
- width: 22px;
463
- height: 22px;
464
- }
465
-
466
- ${o.media.maxWidth("mobile")} {
467
- padding: 0 8px;
468
- }
469
- `,sa=l(Ce)`
470
- display: inline-flex;
471
- align-items: center;
472
- justify-content: center;
473
- gap: 8px;
474
- height: 46px;
475
- padding: 0 24px;
476
- border-radius: ${o.radius.card};
477
- background: ${o.colors.overlay};
478
- color: ${o.colors.white};
479
- font-family: ${o.font.sans};
480
- font-size: 13px;
481
- font-weight: 600;
482
- line-height: 24px;
483
- letter-spacing: 0.46px;
484
- text-transform: uppercase;
485
- text-decoration: none;
486
- white-space: nowrap;
487
- transition: background 0.15s ease;
488
-
489
- &:hover {
490
- background: ${o.colors.overlayHover};
491
- }
492
- &:focus-visible {
493
- outline: 2px solid ${o.colors.softWhite};
494
- outline-offset: 2px;
495
- }
496
- .ico {
497
- width: 20px;
498
- height: 20px;
499
- }
500
-
501
- ${o.media.maxWidth("mobile")} {
502
- padding: 0 16px;
503
- }
504
- `,aa=l.span`
505
- display: inline-flex;
506
- align-items: center;
507
- gap: 8px;
508
- margin-left: 12px;
509
- padding-left: 12px;
510
- border-left: 1px solid rgba(255, 255, 255, 0.3);
511
- `,ra=l.a`
512
- display: inline-flex;
513
- align-items: center;
514
- justify-content: center;
515
- color: ${o.colors.softWhite};
516
- transition: color 0.15s ease;
517
-
518
- &:hover {
519
- color: ${o.colors.navViolet};
520
- }
521
- .ico {
522
- width: 15px;
523
- height: 15px;
524
- }
525
- `,ia=l.div`
526
- display: flex;
527
- align-items: center;
528
- justify-content: space-between;
529
- gap: 16px;
530
- flex-wrap: wrap;
531
- `,la=l.h2`
532
- margin: 0;
533
- font-family: ${o.font.sans};
534
- font-size: 24px;
535
- font-weight: 700;
536
- line-height: 1.2;
537
- color: ${o.colors.white};
538
- `,ca=l.div`
539
- display: flex;
540
- gap: 4px;
541
- max-width: 100%;
542
- padding: 4px;
543
- border-radius: ${o.radius.pill};
544
- background: rgba(0, 0, 0, 0.22);
545
- /* Six presets outgrow a phone: the row scrolls rather than wrapping into a second pill. */
546
- overflow-x: auto;
547
- scrollbar-width: none;
548
-
549
- &::-webkit-scrollbar {
550
- display: none;
551
- }
552
- `,da=l.div`
553
- position: relative;
554
- max-width: 100%;
555
- `,ha=l.button`
556
- flex: none;
557
- white-space: nowrap;
558
- border: 0;
559
- cursor: pointer;
560
- font-family: ${o.font.sans};
561
- padding: 7px 15px;
562
- border-radius: ${o.radius.pill};
563
- font-size: 13px;
564
- font-weight: 600;
565
- color: rgba(252, 252, 252, 0.62);
566
- background: transparent;
567
- transition:
568
- color 0.15s ease,
569
- background 0.15s ease;
570
-
571
- &:hover {
572
- color: ${o.colors.softWhite};
573
- }
574
- &[aria-pressed='true'] {
575
- background: ${o.colors.softWhite};
576
- color: ${o.colors.text};
577
- }
578
- &:focus-visible {
579
- outline: 2px solid ${o.colors.softWhite};
580
- outline-offset: 2px;
581
- }
582
-
583
- @media (prefers-reduced-motion: reduce) {
584
- transition: none;
585
- }
586
- `,Wo=l.section`
587
- display: grid;
588
- /* Five tiles when the store has resales to report, four when it does not — auto-fit rather than a fixed
589
- count so neither case leaves a hole. */
590
- grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
591
- gap: 14px;
592
-
593
- ${o.media.maxWidth("lg")} {
594
- grid-template-columns: repeat(2, minmax(0, 1fr));
595
- }
596
- ${o.media.maxWidth("mobile")} {
597
- grid-template-columns: minmax(0, 1fr);
598
- }
599
- `,pe=l.div`
600
- background: ${o.colors.overlay};
601
- color: ${o.colors.softWhite};
602
- border-radius: ${o.radius.modal};
603
- padding: 12px 24px;
604
- display: flex;
605
- flex-direction: column;
606
- gap: 12px;
607
- min-width: 0;
608
- /* The credits mark is pinned near-black globally (Icon.css) so a coloured total never tints it. That
609
- was chosen for a white card and disappears into this one. */
610
- .ccy-mark,
611
- .ccy {
612
- color: ${o.colors.softWhite};
613
- }
614
- `,xe=l.span`
615
- display: flex;
616
- align-items: center;
617
- justify-content: flex-start;
618
- gap: 8px;
619
- /* The tiles carrying a tooltip button stand 3px taller than the rest, and in a grid that is 3px of dead
620
- space under every other card. Held to the taller of the two. */
621
- min-height: 18px;
622
- font-family: ${o.font.sans};
623
- font-size: 12px;
624
- font-weight: 400;
625
- line-height: 1;
626
- letter-spacing: 1px;
627
- text-transform: uppercase;
628
- color: ${o.colors.gray4};
629
- `,ge=l.span`
630
- /* Ahead of the label, as the design has it. Ordered rather than moved in the markup, because the mark is
631
- the last child in every tile and reordering five sets of markup would buy nothing. */
632
- order: -1;
633
- font-size: 16px;
634
- line-height: 1;
635
- filter: saturate(0.9);
636
- `,ye=l.span`
637
- display: flex;
638
- align-items: baseline;
639
- gap: 8px;
640
-
641
- /* The currency mark is a box, not a glyph with a baseline: sized to the digits' cap height and centred
642
- against them, rather than left to sit on the line's bottom edge. */
643
- [data-kind] {
644
- align-self: center;
645
- margin-right: 6px;
646
- }
647
- [data-kind] img,
648
- [data-kind] .ico {
649
- width: 0.74em;
650
- height: 0.74em;
651
- vertical-align: baseline;
652
- }
653
- font-family: ${o.font.sans};
654
- font-size: 32px;
655
- font-weight: 600;
656
- line-height: 1.235;
657
- letter-spacing: -0.02em;
658
- font-variant-numeric: tabular-nums;
659
- `,pa=l.span`
660
- font-size: 20px;
661
- font-weight: 600;
662
- color: ${o.colors.gray4};
663
- margin-right: -2px;
664
- `,so=l.span`
665
- font-size: 15px;
666
- font-weight: 600;
667
- letter-spacing: 0;
668
- color: ${o.colors.gray4};
669
- `,be=l.span`
670
- display: flex;
671
- align-items: center;
672
- flex-wrap: wrap;
673
- gap: 4px 6px;
674
- min-width: 0;
675
- min-height: 16px;
676
- font-family: ${o.font.sans};
677
- font-size: 12px;
678
- line-height: 1.35;
679
- color: ${o.colors.gray4};
680
- `,ao=l.span`
681
- display: inline-flex;
682
- align-items: center;
683
- gap: 4px;
684
- font-size: 11px;
685
- font-weight: 600;
686
- text-transform: uppercase;
687
- letter-spacing: 0.04em;
688
- color: ${o.colors.gray4};
689
- border: 1px dashed ${o.colors.cardLine};
690
- border-radius: ${o.radius.chip};
691
- padding: 1px 5px;
692
- `,le=l.section`
693
- display: flex;
694
- flex-direction: column;
695
- gap: 12px;
696
- padding: 16px;
697
- background: ${o.colors.overlayLight};
698
- color: ${o.colors.softWhite};
699
- border-radius: ${o.radius.banner};
700
- min-width: 0;
701
- /* The credits mark is pinned near-black globally (Icon.css) so a coloured total never tints it. That
702
- was chosen for a white card and disappears into this one. */
703
- .ccy-mark,
704
- .ccy {
705
- color: ${o.colors.softWhite};
706
- }
707
- `,Be=l.div`
708
- display: flex;
709
- align-items: baseline;
710
- justify-content: space-between;
711
- gap: 12px;
712
- `,$e=l.h2`
713
- margin: 0;
714
- font-family: ${o.font.sans};
715
- font-size: 15px;
716
- font-weight: 700;
717
- letter-spacing: -0.01em;
718
- `;l.div`
719
- display: flex;
720
- align-items: center;
721
- gap: 12px;
722
- `;const ua=l(vo)`
723
- /* Direct child only: the menu's options are buttons as well, and a descendant rule turned them white
724
- on the white menu, which is a menu you cannot read. */
725
- > button {
726
- gap: 24px;
727
- height: 40px;
728
- padding: 4px 4px 4px 12px;
729
- background: transparent;
730
- border: 0.5px solid ${o.colors.white};
731
- border-radius: ${o.radius.btn};
732
- color: ${o.colors.white};
733
- font-size: 12px;
734
- font-weight: 500;
735
- text-transform: uppercase;
736
- letter-spacing: 0;
737
- }
738
- > button:hover {
739
- border-color: ${o.colors.softWhite};
740
- background: ${o.colors.glassFaint};
741
- color: ${o.colors.softWhite};
742
- }
743
- /* The chevron's colour is an inline style on the shared component, so a class cannot reach it — this
744
- is the one place that has to shout. */
745
- > button .ico {
746
- color: ${o.colors.softWhite} !important;
747
- }
748
- `,ma=l.span`
749
- font-family: ${o.font.sans};
750
- font-size: 12px;
751
- color: ${o.colors.gray4};
752
- `,To="24px 56px minmax(170px, 1fr) minmax(236px, 1.34fr) minmax(140px, 1fr) minmax(140px, 1fr) minmax(150px, 1fr) 158px",_o=l.div`
753
- display: grid;
754
- grid-template-columns: ${To};
755
- align-items: center;
756
- gap: 12px;
757
- padding: 12px 24px 12px 12px;
758
- min-width: min-content;
759
- background: ${o.colors.overlayStrong};
760
- border-radius: ${o.radius.card} ${o.radius.card} 0 0;
761
- font-family: ${o.font.sans};
762
- font-size: 14px;
763
- color: ${o.colors.softWhite};
764
-
765
- /* Each label sits the way its column's content sits, so a header never points at the wrong figure. */
766
- > *:nth-child(4),
767
- > *:nth-child(5),
768
- > *:nth-child(6),
769
- > *:nth-child(7) {
770
- text-align: center;
771
- }
772
- /* The label sits over the middle of the action, not over its right edge: in the design both occupy the
773
- same box, so the header stretches across the track and centres inside it. */
774
- > *:last-child {
775
- justify-self: stretch;
776
- text-align: center;
777
- }
778
-
779
- ${o.media.maxWidth("mobile")} {
780
- display: none;
781
- }
782
- `,Po=l.div`
783
- display: flex;
784
- flex-direction: column;
785
- gap: 2px;
786
- min-width: 0;
787
- /*
788
- * The run scrolls sideways rather than crushing its own columns.
789
- *
790
- * The tracks need 1158px before the grid starts taking room from them, and the panel used to clip what
791
- * did not fit. It does not any more, and a clipped row is worse than a scrolling one: the action is the
792
- * last column, so on a 1024px tablet "Manage" simply left the screen with no way to reach it.
793
- */
794
- overflow-x: auto;
795
-
796
- > *:last-child {
797
- border-radius: 0 0 ${o.radius.card} ${o.radius.card};
798
- }
799
- `,Do=l.div`
800
- display: grid;
801
- grid-template-columns: ${To};
802
- align-items: center;
803
- gap: 12px;
804
- padding: 12px 24px 12px 12px;
805
- min-width: min-content;
806
- background: ${o.colors.overlay};
807
-
808
- /* A fixed track keeps every row's action in the same place, centred under its column's label. */
809
- > *:last-child {
810
- justify-self: center;
811
- }
812
-
813
- /**
814
- * A collection with no copies left, set back from the ones that still have something to sell.
815
- *
816
- * Muted rather than faded: opacity would take the row's one action down with it, and a creator who wants
817
- * to look at a finished run should not have to fight the styling to click into it. The thumbnail loses
818
- * its colour, the figures lose their weight, and the row still reads.
819
- */
820
- &[data-exhausted] {
821
- background: rgba(0, 0, 0, 0.55);
822
- color: ${o.colors.gray4};
823
-
824
- [data-testid='store-collection-thumb'] img {
825
- filter: grayscale(0.75);
826
- opacity: 0.72;
827
- }
828
- /* The collection's own name follows the row; the action at the end keeps its colour, because a
829
- finished run is still one a creator opens, and a button that reads disabled invites nobody. */
830
- [data-testid='store-collection-name'] {
831
- color: inherit;
832
- }
833
- }
834
-
835
- /**
836
- * On a phone the seven columns become two rows: identity and figure on the first, the discount and the
837
- * action on the second. Placed explicitly rather than left to auto-flow, which dropped both of them
838
- * into the first two narrow tracks on top of each other.
839
- */
840
- /*
841
- * Three lines on a phone: who it is and what to do about it, then the two figures, then the discount.
842
- *
843
- * Every cell is placed explicitly rather than left to auto-flow, because the columns changed order once
844
- * already and an auto-placed grid answers that by putting a sparkline where a button used to be.
845
- */
846
- ${o.media.maxWidth("mobile")} {
847
- grid-template-columns: 24px 56px minmax(0, 1fr) auto;
848
- row-gap: 12px;
849
-
850
- > *:nth-child(1) {
851
- grid-area: 1 / 1;
852
- }
853
- > *:nth-child(2) {
854
- grid-area: 1 / 2;
855
- }
856
- /* The name takes the whole of its line. Sharing it with the action left "Founders Edition" as an
857
- ellipsis and a chip, which is the one cell on the row that has to be readable. */
858
- > *:nth-child(3) {
859
- grid-area: 1 / 3 / 1 / 5;
860
- }
861
- > *:nth-child(5) {
862
- grid-area: 2 / 1 / 2 / 3;
863
- justify-self: start;
864
- }
865
- > *:nth-child(6) {
866
- grid-area: 2 / 3;
867
- justify-self: start;
868
- }
869
- > *:nth-child(8) {
870
- grid-area: 2 / 4;
871
- justify-self: end;
872
- }
873
- > *:nth-child(4) {
874
- grid-area: 3 / 1 / 3 / 5;
875
- justify-self: start;
876
- align-items: flex-start;
877
- text-align: left;
878
- }
879
- }
880
- `,fa=l.button`
881
- position: relative;
882
- display: grid;
883
- place-items: center;
884
- width: 24px;
885
- height: 24px;
886
- padding: 0;
887
- border: 0;
888
- border-radius: ${o.radius.btn};
889
- background: none;
890
- cursor: pointer;
891
- color: ${o.colors.gray4};
892
-
893
- &:hover {
894
- background: ${o.colors.glassFaint};
895
- color: ${o.colors.softWhite};
896
- }
897
- &:focus-visible {
898
- outline: 2px solid ${o.colors.navViolet};
899
- outline-offset: 2px;
900
- }
901
-
902
- /* A finger needs more than the 24px the glyph occupies, and the row has that much clear space around it. */
903
- &::after {
904
- content: '';
905
- position: absolute;
906
- inset: -10px;
907
- }
908
-
909
- .ico {
910
- width: 16px;
911
- height: 16px;
912
- transition: transform 0.18s ease;
913
- }
914
- &[aria-expanded='true'] .ico {
915
- transform: rotate(180deg);
916
- }
917
-
918
- @media (prefers-reduced-motion: reduce) {
919
- .ico {
920
- transition: none;
921
- }
922
- }
923
- `,xa=l.span`
924
- width: 56px;
925
- height: 56px;
926
- border-radius: ${o.radius.btn};
927
- overflow: hidden;
928
- background: ${o.colors.overlayLight};
929
- `,ga=l.span`
930
- flex: none;
931
- display: inline-flex;
932
- align-items: center;
933
- font-family: ${o.font.sans};
934
- font-size: 10px;
935
- font-weight: 700;
936
- letter-spacing: 0.06em;
937
- text-transform: uppercase;
938
- padding: 3px 7px;
939
- border-radius: ${o.radius.pill};
940
- color: ${o.colors.gray4};
941
- background: ${o.colors.glassFaint};
942
- `,ya=l.span`
943
- display: flex;
944
- align-items: center;
945
- flex-wrap: wrap;
946
- gap: 4px 8px;
947
- min-width: 0;
948
-
949
- /*
950
- * The chip yields before the name does, which is the opposite of what it used to do.
951
- *
952
- * With a wide name column the name could ellipsise and keep "sold out" beside it. The columns are even
953
- * now, so that column is 176px, and yielding the name first left "Founders Ed…" next to a chip: the row
954
- * lost the one thing it has to say to save the one thing that repeats on every sold-out row.
955
- */
956
- a {
957
- min-width: 0;
958
- flex: 0 1 auto;
959
- }
960
- `,ba=l.span`
961
- min-width: 0;
962
-
963
- a {
964
- display: block;
965
- color: inherit;
966
- text-decoration: none;
967
- font-family: ${o.font.sans};
968
- font-size: 14px;
969
- font-weight: 600;
970
- overflow: hidden;
971
- text-overflow: ellipsis;
972
- white-space: nowrap;
973
- }
974
- a:hover,
975
- a:focus-visible {
976
- text-decoration: underline;
977
- }
978
- `,wa=l.span`
979
- display: block;
980
- font-family: ${o.font.sans};
981
- font-size: 12px;
982
- color: ${o.colors.gray4};
983
- overflow: hidden;
984
- text-overflow: ellipsis;
985
- white-space: nowrap;
986
- `;l.span`
987
- font-family: ${o.font.sans};
988
- font-size: 15px;
989
- font-weight: 700;
990
- font-variant-numeric: tabular-nums;
991
- text-align: right;
992
-
993
- small {
994
- display: block;
995
- font-size: 11px;
996
- font-weight: 500;
997
- color: ${o.colors.gray4};
998
- text-transform: uppercase;
999
- letter-spacing: 0.04em;
1000
- }
1001
-
1002
- ${o.media.maxWidth("mobile")} {
1003
- display: none;
1004
- }
1005
- `;const Sa=l.span`
1006
- min-width: 0;
1007
-
1008
- ${o.media.maxWidth("mobile")} {
1009
- display: none;
1010
- }
1011
- `,ro=l.svg`
1012
- display: block;
1013
- width: 100%;
1014
- height: 34px;
1015
- `,ja=l.div`
1016
- /* A shade deeper than the row it belongs to, not lighter. The rows carry their own dark fill now, and a
1017
- translucent white panel between them read as a different surface breaking the run in half. */
1018
- background: ${o.colors.overlayStrong};
1019
- padding: 4px 24px 10px 48px;
1020
-
1021
- ${o.media.maxWidth("mobile")} {
1022
- padding-left: 32px;
1023
- }
1024
- `,ka=l.div`
1025
- display: flex;
1026
- flex-wrap: wrap;
1027
- gap: 8px 26px;
1028
- padding: 12px 0 13px;
1029
- border-bottom: 1px solid ${o.colors.cardLine};
1030
-
1031
- span {
1032
- display: flex;
1033
- align-items: baseline;
1034
- gap: 6px;
1035
- font-family: ${o.font.sans};
1036
- font-size: 11px;
1037
- font-weight: 600;
1038
- letter-spacing: 0.04em;
1039
- text-transform: uppercase;
1040
- color: ${o.colors.gray4};
1041
- }
1042
- b {
1043
- /* The currency mark is its own inline-flex element, so the figure needs a row of its own or the two
1044
- break onto separate lines. */
1045
- display: inline-flex;
1046
- align-items: center;
1047
- gap: 3px;
1048
- white-space: nowrap;
1049
- font-size: 15px;
1050
- font-weight: 700;
1051
- letter-spacing: 0;
1052
- text-transform: none;
1053
- color: ${o.colors.softWhite};
1054
- font-variant-numeric: tabular-nums;
1055
- }
1056
- `,$a=l.div`
1057
- display: grid;
1058
- /* The stock track is fixed rather than max-content: each row is its own grid, so a content-sized last
1059
- track let every row measure itself and none of them lined up. 124px clears the widest figure the page
1060
- renders (105px) with room to spare, without leaving a hand's width between the bar and the number. */
1061
- grid-template-columns: 40px minmax(0, 1fr) 72px 64px 152px 124px;
1062
- align-items: center;
1063
- gap: 22px;
1064
- padding: 13px 0;
1065
-
1066
- > *:last-child {
1067
- justify-self: end;
1068
- }
1069
-
1070
- & + & {
1071
- border-top: 1px solid ${o.colors.cardLine};
1072
- }
1073
-
1074
- /*
1075
- * Two lines on a phone: the item, then its figures under the name.
1076
- *
1077
- * Placed explicitly. With three tracks and six cells the browser auto-flowed the stock figure into the
1078
- * 40px thumbnail track on the second row, where justify-self: end right-aligned 105px of text inside
1079
- * 40px of column and pushed its left edge a pixel off the card.
1080
- */
1081
- ${o.media.maxWidth("mobile")} {
1082
- grid-template-columns: 40px minmax(0, 1fr) auto;
1083
- column-gap: 12px;
1084
- row-gap: 8px;
1085
-
1086
- > *:nth-child(3) {
1087
- grid-area: 2 / 2;
1088
- justify-self: start;
1089
- }
1090
- > *:last-child {
1091
- grid-area: 2 / 3;
1092
- justify-self: end;
1093
- }
1094
- }
1095
- `,va=l.span`
1096
- display: block;
1097
- width: 40px;
1098
- height: 40px;
1099
- border-radius: ${o.radius.btn};
1100
- overflow: hidden;
1101
- /* The rarity wash is a gradient of ALPHAS, drawn for a white card. Composited over a dark panel instead
1102
- it turns muddy, so the base it was measured against is put back under it. */
1103
- background-color: ${o.colors.white};
1104
-
1105
- img {
1106
- width: 100%;
1107
- height: 100%;
1108
- object-fit: contain;
1109
- }
1110
- `,Ca=l.span`
1111
- min-width: 0;
1112
- display: flex;
1113
- flex-direction: column;
1114
- gap: 2px;
1115
- `,Ma=l.span`
1116
- display: flex;
1117
- flex-wrap: wrap;
1118
- align-items: center;
1119
- gap: 6px;
1120
- min-width: 0;
1121
- `,Aa=l.button`
1122
- flex: none;
1123
- margin: -8px 0;
1124
- padding: 8px 4px;
1125
- border: 0;
1126
- background: none;
1127
- color: ${o.colors.white};
1128
- font-family: ${o.font.sans};
1129
- font-size: 11px;
1130
- font-weight: 600;
1131
- letter-spacing: 0.04em;
1132
- text-transform: uppercase;
1133
- text-decoration: underline;
1134
- cursor: pointer;
1135
-
1136
- &:hover {
1137
- color: ${o.colors.navViolet};
1138
- }
1139
-
1140
- &:focus-visible {
1141
- outline: 2px solid currentColor;
1142
- outline-offset: -2px;
1143
- border-radius: 4px;
1144
- }
1145
- `,Ia=l.span`
1146
- flex: none;
1147
- display: inline-flex;
1148
- align-items: center;
1149
- height: 15px;
1150
- padding: 0 6px;
1151
- border-radius: 5px;
1152
- font-family: ${o.font.sans};
1153
- font-size: 9px;
1154
- font-weight: 700;
1155
- letter-spacing: 0.02em;
1156
- text-transform: uppercase;
1157
- color: ${o.colors.softWhite};
1158
- `,La=l(Ce)`
1159
- font-family: ${o.font.sans};
1160
- font-size: 13px;
1161
- color: inherit;
1162
- text-decoration: none;
1163
- overflow: hidden;
1164
- text-overflow: ellipsis;
1165
- white-space: nowrap;
1166
-
1167
- &:hover,
1168
- &:focus-visible {
1169
- text-decoration: underline;
1170
- }
1171
- `,Wa=l.span`
1172
- font-family: ${o.font.sans};
1173
- font-size: 13px;
1174
- white-space: nowrap;
1175
- font-weight: 600;
1176
- font-variant-numeric: tabular-nums;
1177
- text-align: right;
1178
- color: ${o.colors.softWhite};
1179
-
1180
- small {
1181
- color: ${o.colors.gray4};
1182
- font-weight: 500;
1183
- }
1184
-
1185
- ${o.media.maxWidth("mobile")} {
1186
- text-align: left;
1187
- }
1188
- `,Ta=l.span`
1189
- display: block;
1190
- width: 96px;
1191
- height: 6px;
1192
- border-radius: 100px;
1193
- /* White, not the near-black this started as: the track was a 10% dark fill chosen for a white card, and
1194
- on the row's own dark surface it was the same colour as the row. */
1195
- background: rgba(255, 255, 255, 0.1);
1196
- overflow: hidden;
1197
- /* Pushed to the end of its track, so it sits with the stock figure it measures rather than crowding the
1198
- saves count next to it. */
1199
- margin-left: auto;
1200
-
1201
- i {
1202
- display: block;
1203
- height: 6px;
1204
- border-radius: 100px;
1205
- background: ${o.colors.navViolet};
1206
- }
1207
-
1208
- ${o.media.maxWidth("mobile")} {
1209
- display: none;
1210
- }
1211
- `,_a=l.span`
1212
- font-family: ${o.font.sans};
1213
- font-size: 11px;
1214
- font-weight: 600;
1215
- letter-spacing: 0.04em;
1216
- text-transform: uppercase;
1217
- white-space: nowrap;
1218
- color: ${o.colors.gray4};
1219
-
1220
- &[data-state='soldout'] {
1221
- color: ${o.colors.navViolet};
1222
- }
1223
- /* A listed item shows its price rather than a label, so it takes the ink prices take. */
1224
- &[data-state='classic'],
1225
- &[data-state='discounted'] {
1226
- display: inline-flex;
1227
- align-items: center;
1228
- gap: 2px;
1229
- font-size: 12px;
1230
- letter-spacing: 0;
1231
- text-transform: none;
1232
- color: ${o.colors.softWhite};
1233
- }
1234
- `,Pa=l.span`
1235
- display: flex;
1236
- flex-direction: column;
1237
- align-items: flex-end;
1238
- gap: 4px;
1239
- line-height: 1.25;
1240
- `,Da=l.span`
1241
- font-size: 10px;
1242
- font-weight: 600;
1243
- letter-spacing: 0.04em;
1244
- text-transform: uppercase;
1245
- color: ${o.colors.gray4};
1246
- margin-right: 4px;
1247
- `,za=l.span`
1248
- font-family: ${o.font.sans};
1249
- font-size: 10px;
1250
- opacity: 0.85;
1251
- font-weight: 600;
1252
- letter-spacing: 0.03em;
1253
- text-transform: uppercase;
1254
- white-space: nowrap;
1255
- color: ${o.colors.gray4};
1256
- `,Ea=l.span`
1257
- font-family: ${o.font.sans};
1258
- font-size: 11px;
1259
- font-weight: 600;
1260
- letter-spacing: 0.04em;
1261
- text-transform: uppercase;
1262
- white-space: nowrap;
1263
- text-align: right;
1264
- color: ${o.colors.gray4};
1265
- font-variant-numeric: tabular-nums;
1266
-
1267
- b {
1268
- color: ${o.colors.softWhite};
1269
- font-weight: 700;
1270
- }
1271
- &[data-out='true'] {
1272
- color: ${o.colors.navViolet};
1273
- }
1274
- `;l.div`
1275
- display: grid;
1276
- grid-template-columns: 3px minmax(0, 1fr) auto;
1277
- gap: 12px;
1278
- align-items: center;
1279
- padding: 13px 18px;
1280
- border-top: 1px solid ${o.colors.cardLine};
1281
- `;l.span`
1282
- align-self: stretch;
1283
- border-radius: 2px;
1284
- background: ${o.colors.cardLine};
1285
-
1286
- &[data-sev='act'] {
1287
- background: ${o.colors.dclRed};
1288
- }
1289
- &[data-sev='soon'] {
1290
- background: ${o.colors.flareAmber};
1291
- }
1292
- `;const io=l.button`
1293
- display: inline-grid;
1294
- place-items: center;
1295
- width: 16px;
1296
- height: 16px;
1297
- margin-left: 5px;
1298
- padding: 0;
1299
- border: 0;
1300
- background: none;
1301
- cursor: help;
1302
- color: ${o.colors.gray4};
1303
-
1304
- &:hover,
1305
- &:focus-visible {
1306
- color: ${o.colors.softWhite};
1307
- }
1308
- .ico {
1309
- width: 14px;
1310
- height: 14px;
1311
- }
1312
- `;l.span`
1313
- b {
1314
- display: flex;
1315
- align-items: center;
1316
- font-family: ${o.font.sans};
1317
- font-size: 13px;
1318
- font-weight: 600;
1319
- }
1320
- span {
1321
- display: block;
1322
- margin-top: 2px;
1323
- font-family: ${o.font.sans};
1324
- font-size: 12px;
1325
- color: ${o.colors.gray4};
1326
- }
1327
- `;l(Ce)`
1328
- display: inline-block;
1329
- margin-top: 4px;
1330
- font-family: ${o.font.sans};
1331
- font-size: 12px;
1332
- font-weight: 600;
1333
- color: ${o.colors.navViolet};
1334
- text-decoration: none;
1335
-
1336
- &:hover,
1337
- &:focus-visible {
1338
- text-decoration: underline;
1339
- }
1340
- `;l.span`
1341
- font-family: ${o.font.sans};
1342
- font-size: 18px;
1343
- font-weight: 700;
1344
- font-variant-numeric: tabular-nums;
1345
- `;const rt=l.div`
1346
- overflow-x: auto;
1347
- `,wt=l.table`
1348
- width: 100%;
1349
- /* Fixed, so a page of short names and one of long ones lay their columns out identically — the widths
1350
- come from the header row rather than from whatever this page happens to hold. */
1351
- table-layout: fixed;
1352
-
1353
- thead th:nth-of-type(1) {
1354
- width: 36%;
1355
- }
1356
- thead th:nth-of-type(2) {
1357
- width: 24%;
1358
- }
1359
- thead th:nth-of-type(3) {
1360
- width: 120px;
1361
- }
1362
- thead th:nth-of-type(4) {
1363
- width: 14%;
1364
- }
1365
- thead th:nth-of-type(5) {
1366
- width: 110px;
1367
- }
1368
- tbody td {
1369
- overflow: hidden;
1370
- text-overflow: ellipsis;
1371
- }
1372
- font-family: ${o.font.sans};
1373
- font-size: 13px;
1374
- min-width: 520px;
1375
-
1376
- /* The same band and the same separated rows the collections table wears, so the three tables on this
1377
- page read as siblings rather than as one design and two others. The 2px gap is a transparent border
1378
- over a clipped background, which is how a table draws the design's gaps without losing its columns. */
1379
- border-collapse: separate;
1380
- border-spacing: 0;
1381
-
1382
- thead th {
1383
- text-align: left;
1384
- padding: 12px 18px;
1385
- background: ${o.colors.overlayStrong};
1386
- font-size: 14px;
1387
- font-weight: 400;
1388
- color: ${o.colors.softWhite};
1389
- white-space: nowrap;
1390
- }
1391
- thead th:first-of-type {
1392
- border-radius: ${o.radius.card} 0 0 0;
1393
- }
1394
- thead th:last-of-type {
1395
- border-radius: 0 ${o.radius.card} 0 0;
1396
- }
1397
- tbody td {
1398
- padding: 12px 18px;
1399
- background: ${o.colors.overlay};
1400
- border-top: 2px solid transparent;
1401
- background-clip: padding-box;
1402
- vertical-align: middle;
1403
- }
1404
- tbody tr:last-of-type td:first-of-type {
1405
- border-radius: 0 0 0 ${o.radius.card};
1406
- }
1407
- tbody tr:last-of-type td:last-of-type {
1408
- border-radius: 0 0 ${o.radius.card} 0;
1409
- }
1410
- tbody tr:hover td {
1411
- background: ${o.colors.overlayHover};
1412
- }
1413
- td[data-money] {
1414
- text-align: right;
1415
- font-weight: 700;
1416
- font-variant-numeric: tabular-nums;
1417
- white-space: nowrap;
1418
- }
1419
- td[data-dim] {
1420
- color: ${o.colors.gray4};
1421
- font-variant-numeric: tabular-nums;
1422
- white-space: nowrap;
1423
- }
1424
- `,lo=l.span`
1425
- display: flex;
1426
- align-items: center;
1427
- gap: 10px;
1428
- min-width: 0;
1429
- color: inherit;
1430
- text-decoration: none;
1431
-
1432
- span {
1433
- overflow: hidden;
1434
- text-overflow: ellipsis;
1435
- white-space: nowrap;
1436
- }
1437
- &:hover span,
1438
- &:focus-visible span {
1439
- text-decoration: underline;
1440
- }
1441
- `,co=l.span`
1442
- flex: none;
1443
- display: block;
1444
- width: 32px;
1445
- height: 32px;
1446
- border-radius: ${o.radius.chip};
1447
- overflow: hidden;
1448
- /* Same rarity wash, same reason it needs a white base under it — see ItemThumb. */
1449
- background-color: ${o.colors.white};
1450
-
1451
- img {
1452
- width: 100%;
1453
- height: 100%;
1454
- object-fit: contain;
1455
- }
1456
- `,ho=l.a`
1457
- max-width: 100%;
1458
- white-space: nowrap;
1459
- display: inline-flex;
1460
- align-items: center;
1461
- gap: 8px;
1462
- color: inherit;
1463
- text-decoration: none;
1464
-
1465
- &:hover,
1466
- &:focus-visible {
1467
- text-decoration: underline;
1468
- }
1469
- `,Fa=l.span`
1470
- display: inline-flex;
1471
- align-items: center;
1472
- gap: 8px;
1473
-
1474
- i {
1475
- display: block;
1476
- width: 24px;
1477
- height: 24px;
1478
- border-radius: 50%;
1479
- background: #ededed;
1480
- }
1481
- b {
1482
- display: block;
1483
- width: 84px;
1484
- height: 10px;
1485
- border-radius: 100px;
1486
- background: #ededed;
1487
- }
1488
- `,po=l.span`
1489
- flex: none;
1490
- display: block;
1491
- width: 24px;
1492
- height: 24px;
1493
- border-radius: 50%;
1494
- background-color: ${o.colors.overlayLight};
1495
- background-size: cover;
1496
- background-position: center top;
1497
- `,Ra=l.nav`
1498
- display: flex;
1499
- flex-wrap: wrap;
1500
- align-items: center;
1501
- justify-content: flex-end;
1502
- gap: 12px;
1503
- font-variant-numeric: tabular-nums;
1504
- `,zo=`
1505
- display: inline-flex;
1506
- align-items: center;
1507
- justify-content: center;
1508
- width: 32px;
1509
- height: 32px;
1510
- padding: 0;
1511
- border: 0.5px solid rgba(255, 255, 255, 0.5);
1512
- border-radius: ${o.radius.btn};
1513
- background: transparent;
1514
- font-family: ${o.font.sans};
1515
- font-size: 13px;
1516
- font-weight: 600;
1517
- letter-spacing: 0.46px;
1518
- color: ${o.colors.softWhite};
1519
- cursor: pointer;
1520
-
1521
- &:hover:not(:disabled) {
1522
- border-color: ${o.colors.softWhite};
1523
- background: ${o.colors.glassFaint};
1524
- }
1525
- &:focus-visible {
1526
- outline: 2px solid ${o.colors.softWhite};
1527
- outline-offset: 2px;
1528
- }
1529
- &:disabled {
1530
- opacity: 0.35;
1531
- cursor: default;
1532
- }
1533
- `,uo=l.button`
1534
- ${zo}
1535
- `,Na=l.button`
1536
- ${zo}
1537
-
1538
- /* The page you are on is the one solid control in the row, which is how the design marks it. */
1539
- &[aria-current='page'] {
1540
- background: ${o.colors.softWhite};
1541
- border-color: ${o.colors.softWhite};
1542
- color: ${o.colors.text};
1543
- cursor: default;
1544
- }
1545
- &[aria-current='page']:hover {
1546
- background: ${o.colors.softWhite};
1547
- color: ${o.colors.text};
1548
- }
1549
- `,Oa=l.span`
1550
- padding: 0 2px;
1551
- font-family: ${o.font.sans};
1552
- font-size: 12px;
1553
- color: ${o.colors.gray4};
1554
- `;l.span`
1555
- display: inline-flex;
1556
- align-items: center;
1557
- gap: 2px;
1558
- `;const Ba=l.span`
1559
- font-size: 11px;
1560
- font-weight: 700;
1561
- letter-spacing: 0.04em;
1562
- text-transform: uppercase;
1563
- border-radius: ${o.radius.chip};
1564
- padding: 2px 7px;
1565
- white-space: nowrap;
1566
- color: ${o.colors.gray4};
1567
- background: ${o.colors.overlayLight};
1568
-
1569
- &[data-kind='mint'] {
1570
- color: ${o.colors.navViolet};
1571
- background: rgba(105, 31, 169, 0.1);
1572
- }
1573
- `;l.img`
1574
- width: 1em;
1575
- height: 1em;
1576
- vertical-align: -0.125em;
1577
- margin-right: 3px;
1578
- `;const qa=l.button`
1579
- display: block;
1580
- width: 100%;
1581
- padding: 13px 18px;
1582
- border: 0;
1583
- border-top: 1px solid ${o.colors.cardLine};
1584
- background: none;
1585
- cursor: pointer;
1586
- font-family: ${o.font.sans};
1587
- font-size: 13px;
1588
- font-weight: 600;
1589
- color: ${o.colors.navViolet};
1590
-
1591
- &:hover {
1592
- background: ${o.colors.glassFaint};
1593
- }
1594
- &:focus-visible {
1595
- outline: 2px solid ${o.colors.navViolet};
1596
- outline-offset: -2px;
1597
- }
1598
- `;l.div`
1599
- display: flex;
1600
- flex-direction: column;
1601
- gap: 4px;
1602
- padding: 10px 18px 14px;
1603
- border-top: 1px solid ${o.colors.cardLine};
1604
- `;l.p`
1605
- margin: 0;
1606
- font-family: ${o.font.sans};
1607
- font-size: 11px;
1608
- line-height: 1.45;
1609
- color: ${o.colors.muted2};
1610
- `;const Eo=`
1611
- background: linear-gradient(100deg, var(--skeleton-lo) 30%, var(--skeleton-hi) 50%, var(--skeleton-lo) 70%);
1612
- background-size: 200% 100%;
1613
- animation: shimmer 1.3s infinite linear;
1614
-
1615
- @media (prefers-reduced-motion: reduce) {
1616
- animation: none;
1617
- }
1618
- `,I=l.span`
1619
- display: block;
1620
- height: 12px;
1621
- border-radius: 100px;
1622
- ${Eo}
1623
- `,Ha=l.span`
1624
- display: block;
1625
- width: 40px;
1626
- height: 40px;
1627
- border-radius: ${o.radius.btn};
1628
- ${Eo}
1629
- `,mo=l.div`
1630
- display: grid;
1631
- grid-template-columns: minmax(0, 1fr) minmax(0, 0.7fr) 100px minmax(0, 0.5fr) 70px;
1632
- align-items: center;
1633
- gap: 12px;
1634
- padding: 0 18px 10px;
1635
-
1636
- > *:last-child {
1637
- justify-self: end;
1638
- }
1639
- background: ${o.colors.overlayStrong};
1640
- border-radius: ${o.radius.card} ${o.radius.card} 0 0;
1641
- `,fo=l.div`
1642
- display: grid;
1643
- grid-template-columns: minmax(0, 1fr) minmax(0, 0.7fr) 100px minmax(0, 0.5fr) 70px;
1644
- align-items: center;
1645
- gap: 12px;
1646
- height: 57px;
1647
- padding: 0 18px;
1648
- background: ${o.colors.overlay};
1649
- border-top: 2px solid transparent;
1650
- background-clip: padding-box;
1651
-
1652
- > *:last-child {
1653
- justify-self: end;
1654
- }
1655
- `,Pe=l.p`
1656
- margin: 0;
1657
- font-family: ${o.font.sans};
1658
- font-size: 13px;
1659
- color: ${o.colors.gray4};
1660
- `,Ka=l(oe)`
1661
- width: 16px;
1662
- height: 16px;
1663
- `,it=l.span`
1664
- display: inline-flex;
1665
- align-items: center;
1666
- gap: 4px;
1667
- font-family: ${o.font.sans};
1668
- font-size: 12px;
1669
- font-weight: 600;
1670
- line-height: 1.3;
1671
- flex-wrap: wrap;
1672
- color: ${o.colors.gray4};
1673
-
1674
- &[data-dir='up'] {
1675
- color: ${o.colors.successBorder};
1676
- }
1677
- &[data-dir='down'] {
1678
- color: #ff6b6b;
1679
- }
1680
-
1681
- /* Grey whichever way the figure went: it is the label, not the reading. */
1682
- .delta__against {
1683
- font-size: 10px;
1684
- font-weight: 400;
1685
- color: ${o.colors.gray4};
1686
- }
1687
- .delta__arrow {
1688
- font-size: 10px;
1689
- line-height: 1;
1690
- }
1691
- `,Ua=l.div`
1692
- margin: 10px 0 -4px;
1693
- `,Ya=l.h2`
1694
- margin: 0;
1695
- font-family: ${o.font.sans};
1696
- font-size: 19px;
1697
- font-weight: 700;
1698
- letter-spacing: -0.01em;
1699
- color: ${o.colors.softWhite};
1700
- `,Ga=l.p`
1701
- margin: 4px 0 0;
1702
- font-family: ${o.font.sans};
1703
- font-size: 13px;
1704
- color: rgba(252, 252, 252, 0.62);
1705
- `,Va=l.div`
1706
- display: grid;
1707
- grid-template-columns: repeat(auto-fit, minmax(210px, 300px));
1708
- gap: 14px;
1709
- align-items: start;
1710
-
1711
- ${o.media.maxWidth("mobile")} {
1712
- grid-template-columns: minmax(0, 1fr);
1713
- }
1714
- `,Qa=l(wt)`
1715
- thead th:nth-of-type(1) {
1716
- width: 40%;
1717
- }
1718
- thead th:nth-of-type(2) {
1719
- width: 16%;
1720
- }
1721
- thead th:nth-of-type(3) {
1722
- width: 20%;
1723
- }
1724
- thead th:nth-of-type(4) {
1725
- width: 12%;
1726
- }
1727
- thead th:nth-of-type(5) {
1728
- width: 12%;
1729
- }
1730
- `;l.div`
1731
- display: grid;
1732
- grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
1733
- gap: 14px;
1734
- align-items: start;
1735
-
1736
- ${o.media.maxWidth("lg")} {
1737
- grid-template-columns: minmax(0, 1fr);
1738
- }
1739
- `;l.div`
1740
- display: flex;
1741
- flex-direction: column;
1742
- gap: 14px;
1743
- `;const lt=l.span`
1744
- display: inline-flex;
1745
- align-items: center;
1746
- justify-content: flex-end;
1747
-
1748
- [data-kind] img,
1749
- [data-kind] .ico {
1750
- vertical-align: baseline;
1751
- }
1752
- `,Xa=l.span`
1753
- font-family: ${o.font.sans};
1754
- font-size: 14px;
1755
- font-weight: 600;
1756
- font-variant-numeric: tabular-nums;
1757
- white-space: nowrap;
1758
- text-align: center;
1759
-
1760
- /* One weight and one colour, as the design draws it: the pair is a single reading ("80 of 250"), and
1761
- dimming the denominator made the two halves look like different figures. */
1762
- small {
1763
- font-size: inherit;
1764
- font-weight: inherit;
1765
- }
1766
- `,Za=l.span`
1767
- display: flex;
1768
- flex-direction: column;
1769
- align-items: center;
1770
- justify-content: center;
1771
- gap: 4px;
1772
- min-width: 0;
1773
- font-family: ${o.font.sans};
1774
- font-size: 12px;
1775
- color: ${o.colors.gray4};
1776
- text-align: center;
1777
- `,Ja=l.span`
1778
- display: inline-flex;
1779
- flex-wrap: wrap;
1780
- justify-content: center;
1781
- gap: 8px;
1782
- `,er=l(cn)`
1783
- align-self: center;
1784
- gap: 4px;
1785
- padding: 2px 4px;
1786
- border: 0;
1787
- border-radius: 6px;
1788
- background: ${o.colors.saleTag};
1789
- line-height: 20px;
1790
-
1791
- b,
1792
- span {
1793
- font-size: 14px;
1794
- line-height: 20px;
1795
- }
1796
- `,tr=l(In)`
1797
- align-self: center;
1798
- gap: 4px;
1799
- padding: 4px 8px;
1800
- border-radius: 6px;
1801
- background: ${o.colors.glass};
1802
- color: ${o.colors.white};
1803
-
1804
- b {
1805
- color: ${o.colors.white};
1806
- font-size: 12px;
1807
- line-height: 16px;
1808
- }
1809
- `,or=l.span`
1810
- color: ${o.colors.muted2};
1811
-
1812
- b {
1813
- font-weight: 600;
1814
- }
1815
- /* Whether it is selling faster carries the only colour in the cell, since it is the only judgement. */
1816
- &[data-dir='up'] b {
1817
- color: #2ecc71;
1818
- }
1819
- &[data-dir='down'] b {
1820
- color: #ff6b6b;
1821
- }
1822
- `,De=l.div`
1823
- display: flex;
1824
- align-items: center;
1825
- justify-content: space-between;
1826
- gap: 12px;
1827
- font-family: ${o.font.sans};
1828
- font-size: 13px;
1829
- color: ${o.colors.gray4};
1830
-
1831
- ${o.media.maxWidth("mobile")} {
1832
- flex-direction: column;
1833
- align-items: stretch;
1834
- }
1835
- `,nr=l.div`
1836
- display: flex;
1837
- align-items: center;
1838
- justify-content: space-between;
1839
- gap: 12px;
1840
-
1841
- ${o.media.maxWidth("mobile")} {
1842
- flex-wrap: wrap;
1843
- }
1844
- `,sr=l.div`
1845
- display: flex;
1846
- align-items: center;
1847
- gap: 10px;
1848
- min-width: 0;
1849
- `,ar=l(jo)`
1850
- display: inline-flex;
1851
- align-items: center;
1852
- justify-content: center;
1853
- gap: 8px;
1854
- height: 36px;
1855
- padding: 0 12px;
1856
- border: 0.5px solid ${o.colors.white};
1857
- border-radius: 12px;
1858
- background: transparent;
1859
- color: ${o.colors.softWhite};
1860
- font-size: 13px;
1861
- font-weight: 600;
1862
- letter-spacing: 0.46px;
1863
- text-transform: uppercase;
1864
-
1865
- &:hover:not(:disabled) {
1866
- background: ${o.colors.glassFaint};
1867
- color: ${o.colors.softWhite};
1868
- }
1869
- `,rr=l.span`
1870
- display: inline-flex;
1871
- align-items: center;
1872
- justify-content: center;
1873
- gap: 6px;
1874
- font-family: ${o.font.sans};
1875
- font-size: 14px;
1876
- font-weight: 600;
1877
- font-variant-numeric: tabular-nums;
1878
- white-space: nowrap;
1879
- `,ir=l.span`
1880
- display: inline-flex;
1881
- align-items: center;
1882
- justify-content: flex-end;
1883
- gap: 5px;
1884
- font-family: ${o.font.sans};
1885
- font-size: 13px;
1886
- font-variant-numeric: tabular-nums;
1887
- color: ${o.colors.gray4};
1888
- white-space: nowrap;
1889
-
1890
- .ico {
1891
- width: 14px;
1892
- height: 14px;
1893
- }
1894
- `,Fo=l.div`
1895
- display: grid;
1896
- grid-template-columns: repeat(2, minmax(0, 1fr));
1897
- gap: 14px;
1898
- /* Stretched rather than start-aligned: the sales rows carry a second line and the best sellers do not,
1899
- so the two will never end together on their own, and two cards of different heights side by side read
1900
- as one of them having failed to load. */
1901
-
1902
- ${o.media.maxWidth("lg")} {
1903
- grid-template-columns: minmax(0, 1fr);
1904
- }
1905
- `,ct=l.p`
1906
- margin: 2px 0 0;
1907
- font-family: ${o.font.sans};
1908
- font-size: 13px;
1909
- color: ${o.colors.gray4};
1910
- `,dt=l.div`
1911
- display: flex;
1912
- align-items: flex-start;
1913
- justify-content: space-between;
1914
- gap: 12px;
1915
- `,lr=l(Ce)`
1916
- display: inline-flex;
1917
- align-items: center;
1918
- gap: 6px;
1919
- flex: none;
1920
- color: ${o.colors.white};
1921
- font-family: ${o.font.sans};
1922
- font-size: 12px;
1923
- font-weight: 600;
1924
- letter-spacing: 0.04em;
1925
- text-transform: uppercase;
1926
- text-decoration: underline;
1927
-
1928
- &:hover {
1929
- color: ${o.colors.navViolet};
1930
- }
1931
- `,xo=l.span`
1932
- display: inline-block;
1933
- min-width: 12px;
1934
- font-weight: 700;
1935
- font-variant-numeric: tabular-nums;
1936
- color: ${o.colors.gray4};
1937
- `,go=l.span`
1938
- display: flex;
1939
- align-items: center;
1940
- gap: 12px;
1941
- min-width: 0;
1942
- `,Ro=`
1943
- thead th,
1944
- tbody td {
1945
- padding-left: 12px;
1946
- padding-right: 12px;
1947
- }
1948
- `,cr=l(wt)`
1949
- min-width: 500px;
1950
- ${Ro}
1951
-
1952
- thead th:nth-of-type(1) {
1953
- width: 46%;
1954
- }
1955
- thead th:nth-of-type(2) {
1956
- width: 26%;
1957
- }
1958
- thead th:nth-of-type(3) {
1959
- width: 72px;
1960
- }
1961
- thead th:nth-of-type(4) {
1962
- width: 96px;
1963
- }
1964
- `,dr=l(wt)`
1965
- min-width: 580px;
1966
- ${Ro}
1967
-
1968
- thead th:nth-of-type(1) {
1969
- width: 34%;
1970
- }
1971
- thead th:nth-of-type(2) {
1972
- width: 22%;
1973
- }
1974
- thead th:nth-of-type(3) {
1975
- width: 70px;
1976
- }
1977
- thead th:nth-of-type(4) {
1978
- width: 140px;
1979
- }
1980
- thead th:nth-of-type(5) {
1981
- width: 76px;
1982
- }
1983
- `,hr=l.span`
1984
- display: flex;
1985
- flex-direction: column;
1986
- gap: 3px;
1987
- min-width: 0;
1988
- `,qe=8,He=5,ht=5,No="shop.my-store.sort",pr=["sold","earned","newest","name"];function ur(){try{const t=localStorage.getItem(No);return pr.includes(t)?t:"sold"}catch{return"sold"}}function mr(t){try{localStorage.setItem(No,t)}catch{}}function fr(t,n){const s=new Date(t).getFullYear()===new Date(n).getFullYear(),i=new Intl.DateTimeFormat(Se(),{month:"short",day:"numeric",...s?{}:{year:"numeric"}}),a=new Intl.DateTimeFormat(Se(),{month:"short",day:"numeric",year:"numeric"});return`${i.format(t)} – ${a.format(n)}`}function ve(t){return t==="asc"?"ascending":t==="desc"?"descending":void 0}function ee(t,n){return(t==null?void 0:t.key)===n?t.dir:void 0}function xr(t,n){const s=[...t];return n==="name"?s.sort((i,a)=>i.name.localeCompare(a.name)):n==="earned"?Oe(s,i=>i.earningsWei,"desc"):n==="newest"?s.sort((i,a)=>(a.createdAt??0)-(i.createdAt??0)):s.sort((i,a)=>a.sold-i.sold||i.name.localeCompare(a.name))}function yo(t,n,s){return we(`/item/${t}/${n}`,s)}function we(t,n){return n?`${t}${t.includes("?")?"&":"?"}env=${n}`:t}function gr(t,n){if(n==null)return null;const s=t.minted-n;return s>0?s:null}const yr={website:"website",twitter:"x-twitter",discord:"discord",facebook:"facebook"},Ke=5;function br(t,n){if(n<=5)return Array.from({length:n},(a,d)=>d);const s=[t-1,t,t+1].filter(a=>a>0&&a<n-1),i=[0];return s[0]>1&&i.push("gap"),i.push(...s),s[s.length-1]<n-2&&i.push("gap"),i.push(n-1),i}function ze({page:t,pages:n,onChange:s,name:i}){return n<=1?null:e.jsxs(Ra,{"aria-label":r("myStore.pagination"),children:[e.jsx(uo,{type:"button",onClick:()=>s(Math.max(0,t-1)),disabled:t===0,"aria-label":r("myStore.prev"),"data-testid":`store-${i}-prev`,children:e.jsx(oe,{name:"chevron-down",size:16,"aria-hidden":!0,style:{transform:"rotate(90deg)"}})}),br(t,n).map((a,d)=>a==="gap"?e.jsx(Oa,{children:"…"},`gap-${d}`):e.jsx(Na,{type:"button","aria-current":a===t?"page":void 0,onClick:()=>s(a),"data-testid":`store-${i}-page-${a+1}`,children:(a+1).toLocaleString()},a)),e.jsx(uo,{type:"button",onClick:()=>s(Math.min(n-1,t+1)),disabled:t>=n-1,"aria-label":r("myStore.next"),"data-testid":`store-${i}-next`,children:e.jsx(oe,{name:"chevron-down",size:16,"aria-hidden":!0,style:{transform:"rotate(-90deg)"}})})]})}function wr(t,n,s){var h,f;const{from:i,to:a}=n,d=te({queryKey:["store-sales-page",t,i??null,a,s],enabled:!!t,placeholderData:j=>j,queryFn:()=>Un({seller:t,from:i,to:a},{first:Ke,skip:s*Ke})}),u=((h=d.data)==null?void 0:h.total)??0;return{rows:((f=d.data)==null?void 0:f.rows)??[],total:u,pages:Math.ceil(u/Ke)}}function bo(t){return te({queryKey:["store-buyers",t],enabled:t.length>0,staleTime:5*6e4,queryFn:()=>vn(t)})}function wo(t,n){var i;const s=(i=n==null?void 0:n.get(t.toLowerCase()))==null?void 0:i.name;return s?ko(s):$n(t)}function Sr(t){return ce.previewHost&&t==="1"}const jr=25000n;function kr(t){return t*jr/1000000n}function re(t){const n=Number(t/10n**14n)/1e4;return n>=10?Math.round(n).toLocaleString():n.toFixed(2)}function So(t){const n=Math.max(1,Math.round((Date.now()-t)/6e4));if(n<60)return r("myStore.agoMinutes",{n});const s=Math.round(n/60);return s<24?r("myStore.agoHours",{n:s}):r("myStore.agoDays",{n:Math.round(s/24)})}function $r({series:t}){const n=w.useId(),s=Math.max(...t,0),i=t.length>1?92/(t.length-1):0,a=h=>s===0?27:27-h/s*22,u=t.map((h,f)=>`${(2+f*i).toFixed(1)} ${a(h).toFixed(1)}`).join(" L ");return s===0?e.jsx(ro,{viewBox:"0 0 96 30",role:"img","aria-label":r("myStore.trendNone"),children:e.jsx("path",{d:"M2 27 L94 27",fill:"none",stroke:o.colors.cardLine,strokeWidth:"2",strokeLinecap:"round"})}):e.jsxs(ro,{viewBox:"0 0 96 30",role:"img","aria-label":r("myStore.trendAria",{n:s}),children:[e.jsxs("defs",{children:[e.jsxs("linearGradient",{id:n,gradientUnits:"userSpaceOnUse",x1:"78.9",y1:"-19.5",x2:"35.3",y2:"40.4",children:[e.jsx("stop",{stopColor:o.colors.dclRed}),e.jsx("stop",{offset:"1",stopColor:o.colors.flareAmber})]}),e.jsxs("linearGradient",{id:`${n}-fill`,x1:"0",y1:"0",x2:"0",y2:"1",children:[e.jsx("stop",{offset:"0",stopColor:o.colors.dclRed,stopOpacity:"0.26"}),e.jsx("stop",{offset:"1",stopColor:o.colors.dclRed,stopOpacity:"0"})]})]}),e.jsx("path",{d:`M ${u} L 94 29 L 2 29 Z`,fill:`url(#${n}-fill)`}),e.jsx("path",{d:`M ${u}`,fill:"none",stroke:`url(#${n})`,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}function vr({collection:t,discount:n,savesByKey:s,open:i,onToggle:a,onManage:d,onIssue:u,env:h}){var j,W;const f=`store-items-${t.contractAddress}`;return e.jsxs(e.Fragment,{children:[e.jsxs(Do,{"data-testid":"store-collection","data-exhausted":t.exhausted||void 0,children:[e.jsx(fa,{type:"button","aria-expanded":i,"aria-controls":f,"aria-label":r(i?"myStore.collapse":"myStore.expand",{name:t.name}),onClick:a,"data-testid":"store-collection-toggle",children:e.jsx(Ka,{name:"chevron-down",className:"ico","aria-hidden":!0})}),e.jsx(xa,{"data-testid":"store-collection-thumb",children:e.jsx(bn,{contractAddress:t.contractAddress})}),e.jsxs(ba,{children:[e.jsxs(ya,{children:[e.jsx(Ce,{to:we(`/collection/${t.contractAddress}`,h),"data-testid":"store-collection-name",children:t.name}),t.exhausted?e.jsx(ga,{"data-testid":"store-collection-soldout",children:r("myStore.collExhausted")}):null]}),e.jsxs(wa,{children:[r("myStore.itemsCount",{count:t.items.length}),t.listed>0?` · ${r("myStore.listedCount",{count:t.listed})}`:"",!t.exhausted&&t.soldOut>0?` · ${r("myStore.soldOutCount",{count:t.soldOut})}`:""]})]}),e.jsx(Za,{"data-testid":"store-collection-discount",children:n?e.jsxs(e.Fragment,{children:[e.jsxs(Ja,{children:[e.jsx(er,{pct:n.discount/1e4}),e.jsx(tr,{until:n.checks.expiration})]}),e.jsx(or,{children:Dn(n)?r("myStore.discountUsed",{used:((j=n.state)==null?void 0:j.uses)??0,total:n.checks.uses}):r("myStore.discountUsedUncapped",{used:((W=n.state)==null?void 0:W.uses)??0})})]}):r("myStore.noDiscountShort")}),e.jsxs(Xa,{"data-testid":"store-collection-claimed",children:[t.claimed.toLocaleString(),e.jsxs("small",{children:["/",t.runTotal.toLocaleString()]})]}),e.jsxs(rr,{"data-testid":"store-collection-earned",children:[e.jsx(X,{kind:"mana"}),re(t.earningsWei)]}),e.jsx(Sa,{children:e.jsx($r,{series:t.trend})}),e.jsxs(ar,{as:"a",href:`${ce.builderUrl}/collections${t.collectionId?`/${t.collectionId}`:""}`,target:"_blank",rel:"noopener noreferrer",onClick:d,"data-testid":"store-manage",children:[r("myStore.manage"),e.jsx(oe,{name:"external-link",size:14,"aria-hidden":!0})]})]}),i?e.jsxs(ja,{id:f,"data-testid":"store-items",children:[e.jsxs(ka,{"data-testid":"store-collection-stats",children:[e.jsxs("span",{children:[e.jsxs("b",{children:[e.jsx(X,{kind:"mana"}),re(t.earningsWei)]}),r("myStore.collEarned")]}),e.jsxs("span",{children:[e.jsx("b",{children:t.sold.toLocaleString()}),r("myStore.collSold")]}),e.jsxs("span",{children:[e.jsx("b",{children:t.items.length}),r("myStore.collItems",{count:t.items.length})]}),e.jsxs("span",{children:[e.jsx("b",{children:t.listed+t.classic}),r("myStore.collListed")]})]}),t.items.map(m=>{const N=gr(m,m.lifetimeSold);return e.jsxs($a,{"data-testid":"store-item",children:[e.jsx(va,{style:{backgroundImage:mt(m.rarity)},children:m.thumbnail?e.jsx("img",{src:m.thumbnail,alt:"",loading:"lazy"}):null}),e.jsxs(Ca,{children:[e.jsx(La,{to:we(`/item/${t.contractAddress}/${m.itemId}`,h),title:m.name,children:m.name}),e.jsxs(Ma,{children:[e.jsx(Ia,{style:{background:jn(m.rarity)},title:Sn(m.rarity),children:wn(m.rarity)}),e.jsx(_a,{"data-state":m.state,children:m.state==="soldout"?null:m.state==="unlisted"?r("myStore.stateUnlisted"):m.state==="unknown"?r("myStore.stateUnknown"):e.jsxs(e.Fragment,{children:[e.jsx(Da,{children:r("myStore.onSaleFor")}),m.manaWei?e.jsxs(e.Fragment,{children:[e.jsx(X,{kind:"mana"}),re(Q(m.manaWei))]}):e.jsxs(e.Fragment,{children:[e.jsx(X,{kind:"credits"}),e.jsx(kn,{credits:m.priceCredits??0})]})]})}),u&&m.left>0?e.jsx(Aa,{type:"button",onClick:()=>u(m),"data-testid":"store-item-issue",children:r("myStore.issueCopies")}):null]})]}),e.jsxs(Wa,{children:[m.sold.toLocaleString(),e.jsxs("small",{children:[" ",r("myStore.sold")]})]}),e.jsxs(ir,{"data-testid":"store-item-saves",title:r("myStore.savesHint",{count:s.get(m.key)??0}),children:[e.jsx(oe,{name:"heart",className:"ico","aria-hidden":!0}),(s.get(m.key)??0).toLocaleString()]}),e.jsx(Ta,{role:"progressbar","aria-valuemin":0,"aria-valuemax":m.minted+m.left,"aria-valuenow":m.minted,"aria-label":r("myStore.runAria",{minted:m.minted,total:m.minted+m.left}),children:e.jsx("i",{style:{width:`${Math.round(m.minted/Math.max(1,m.minted+m.left)*100)}%`}})}),e.jsxs(Pa,{title:m.lifetimeSold==null?void 0:r("myStore.runBreakdown",{total:m.minted+m.left,sold:m.lifetimeSold,sent:m.minted-m.lifetimeSold,left:m.left}),children:[e.jsx(Ea,{"data-out":m.left===0,"data-testid":"store-item-stock",children:$o(m.left===0?"myStore.stockNone":"myStore.stockLeft",{b:z=>e.jsx("b",{children:z}),left:m.left.toLocaleString(),total:(m.minted+m.left).toLocaleString()})}),N?e.jsx(za,{"data-testid":"store-item-issued",children:r("myStore.sentDirectly",{count:N.toLocaleString()})}):null]})]},m.key)})]}):null]})}function pt(t){return!!t&&!(t.current===0&&t.previous===0)}function ut({delta:t,period:n}){if(!t||t.current===0&&t.previous===0)return null;const s=n==="all"?"":n==="7d"||n==="30d"||n==="90d"?r(`myStore.vs${n}`):r("myStore.vsPrevious");if(t.pct===null)return e.jsxs(it,{"data-dir":"new","data-testid":"store-delta",children:[r("myStore.deltaNew"),s?e.jsx("span",{className:"delta__against",children:s}):null]});const i=Math.round(t.pct);if(i===0)return e.jsxs(it,{"data-dir":"flat","data-testid":"store-delta",children:[r("myStore.deltaFlat"),s?e.jsx("span",{className:"delta__against",children:s}):null]});const a=i>0,u=i>=1e3?r("myStore.deltaTimes",{times:Math.round(i/100+1).toLocaleString()}):`${Math.abs(i)}%`;return e.jsxs(it,{"data-dir":a?"up":"down","data-testid":"store-delta","aria-label":r(a?"myStore.deltaUpAria":"myStore.deltaDownAria",{pct:u,against:s}),children:[e.jsx("span",{className:"delta__arrow","aria-hidden":!0,children:a?"▲":"▼"}),u,s?e.jsx("span",{className:"delta__against",children:s}):null]})}function Cr(){return e.jsxs("div",{"data-testid":"store-skeleton","aria-hidden":!0,children:[e.jsx(Wo,{children:[0,1,2,3].map(t=>e.jsxs(pe,{children:[e.jsx(I,{style:{width:"46%"}}),e.jsx(I,{style:{width:"32%",height:38}}),e.jsx(I,{style:{width:"64%",height:15}})]},t))}),e.jsxs(le,{style:{marginTop:22},children:[e.jsxs(Be,{children:[e.jsx(I,{style:{width:96,height:14}}),e.jsx(I,{style:{width:120}})]}),e.jsxs(Po,{children:[e.jsxs(_o,{"aria-hidden":!0,children:[e.jsx("span",{}),e.jsx("span",{}),e.jsx(I,{style:{width:84,height:12}}),e.jsx(I,{style:{width:74,height:12}}),e.jsx(I,{style:{width:62,height:12}}),e.jsx(I,{style:{width:68,height:12}}),e.jsx(I,{style:{width:82,height:12}}),e.jsx(I,{style:{width:60,height:12}})]}),Array.from({length:qe},(t,n)=>e.jsxs(Do,{children:[e.jsx("span",{}),e.jsx(Ha,{}),e.jsx(I,{style:{width:"82%",height:14}}),e.jsx(I,{style:{width:"70%",height:20}}),e.jsx(I,{style:{width:72}}),e.jsx(I,{style:{width:76}}),e.jsx(I,{style:{height:20}}),e.jsx(I,{style:{width:96,height:32,borderRadius:8}})]},n))]}),e.jsx(qa,{as:"div",children:e.jsx(I,{style:{width:150,height:13,margin:"0 auto"}})})]}),e.jsx(Fo,{style:{marginTop:22},children:[0,1].map(t=>e.jsxs(le,{children:[e.jsxs(Be,{children:[e.jsx(I,{style:{width:110,height:14}}),e.jsx(I,{style:{width:80}})]}),e.jsx(mo,{children:[0,1,2,3].map(n=>e.jsx(I,{style:{width:46,height:9}},n))}),Array.from({length:Ke},(n,s)=>e.jsxs(fo,{children:[e.jsx(I,{style:{width:"38%"}}),e.jsx(I,{style:{width:"24%"}}),e.jsx(I,{style:{width:56}}),e.jsx(I,{style:{width:64}})]},s))]},t))}),e.jsxs(le,{style:{marginTop:22},children:[e.jsxs(Be,{children:[e.jsx(I,{style:{width:104,height:14}}),e.jsx(I,{style:{width:90}})]}),e.jsx(mo,{children:[0,1,2,3,4].map(t=>e.jsx(I,{style:{width:46,height:9}},t))}),Array.from({length:He},(t,n)=>e.jsxs(fo,{children:[e.jsx(I,{style:{width:"30%"}}),e.jsx(I,{style:{width:"18%"}}),e.jsx(I,{style:{width:72,height:18}}),e.jsx(I,{style:{width:"14%"}}),e.jsx(I,{style:{width:54}})]},n))]})]})}function Gr(){var Pt,Dt;dn({title:r("myStore.title"),noindex:!0});const{session:t,error:n,signIn:s}=hn(),[i]=Jo(),[a,d]=w.useState({key:"30d"}),[u,h]=w.useState(!1),f=w.useCallback(()=>h(!1),[]),j=a.key,W=w.useMemo(()=>ls(a,Date.now()),[a]),[m,N]=w.useState(()=>new Set),[z,P]=w.useState(0),[k,b]=w.useState(0),[D,L]=w.useState(!1),[q,_]=w.useState(ur),[ne,R]=w.useState(0),[T,H]=w.useState(null),[p,g]=w.useState(null),[$,A]=w.useState(0),[y,E]=w.useState(null),[B,Y]=w.useState(null),Z=pn(),[M,O]=w.useState(!1),J=un(),se=mn(),K=Sr(i.get("mock")),x=i.get("env"),de=en("/").replace(/\/$/,""),ae=c=>`${de}${c}`,St=K;function F(c,v={}){St||yn(c,v)}const{data:he}=fn(t==null?void 0:t.address),Ue=t==null?void 0:t.address,{data:me}=On(Ue),jt=Bn.filter(c=>me==null?void 0:me.links[c]),kt=(Dt=(Pt=he==null?void 0:he.avatar)==null?void 0:Pt.snapshots)==null?void 0:Dt.face256,$t=he!=null&&he.name?ko(he.name):null,{stats:Oo,trend:vt,savesByKey:Bo,saleable:Ct,sales:Ye,isLoading:qo,error:Ho}=us(t,W),S=K?bt:Oo,U=K?{...vt,collectors:qs,buyers:Hs}:vt,Ko=K?!1:qo,Uo=K?Us:Bo,Ge=wr(t==null?void 0:t.address,W,k),Me=K?Ys:Ge.rows,Yo=K?oo:Ye.rows,Go=w.useMemo(()=>[...new Set(Me.map(c=>c.buyer.toLowerCase()))].sort(),[Me]),{data:Ae,isLoading:Vo}=bo(Go),Ve=Math.max(1,Math.ceil(U.buyers.length/He)),Ie=Math.min(ne,Ve-1),Mt=w.useMemo(()=>{if(!y)return U.buyers;const c={items:v=>v.items,collections:v=>v.collections,last:v=>v.lastAt,spent:v=>v.spentWei}[y.key];return Oe(U.buyers,c,y.dir)},[U.buyers,y]),Qe=w.useMemo(()=>Mt.slice(Ie*He,(Ie+1)*He),[Mt,Ie]),Qo=w.useMemo(()=>Qe.map(c=>c.address).sort(),[Qe]),{data:Le}=bo(Qo),{data:Xo}=Tn(t==null?void 0:t.address,J&&!!t),At=Math.max(1,Math.ceil(((S==null?void 0:S.collections.length)??0)/qe)),It=w.useMemo(()=>{const c=(S==null?void 0:S.collections)??[];if(!T)return xr(c,q);const v={name:C=>C.name,claimed:C=>C.claimed,earnings:C=>C.earningsWei,sold:C=>C.sold}[T.key];return Oe(c,v,T.dir)},[S,q,T]),je=w.useMemo(()=>{const c=Zn((S==null?void 0:S.collections)??[],1/0).map((C,G)=>({...C,rank:G+1}));if(!p)return c;const v={name:C=>C.name,collection:C=>C.collectionName,sold:C=>C.sold,earnings:C=>C.earnedWei}[p.key];return Oe(c,v,p.dir)},[S,p]);function We(c,v){const C=at(p,c,v);F("Shop Sorted Store Table",{table:"best_sellers",column:C.key,direction:C.dir}),g(C),A(0)}const Xe=Math.max(1,Math.ceil(je.length/ht)),Te=Math.min($,Xe-1),Zo=w.useMemo(()=>je.slice(Te*ht,(Te+1)*ht),[je,Te]),_e=Math.min(z,At-1),Lt=w.useMemo(()=>It.slice(_e*qe,(_e+1)*qe),[It,_e]);if(se==="off")return e.jsx(tn,{to:"/",replace:!0});if(!t&&!K)return e.jsxs(xn,{children:[e.jsx(gn,{testId:"my-store-signin",icon:qn,title:r("myStore.signInTitle"),body:r("myStore.signInBody"),cta:{label:r("storeSettings.signIn"),onClick:()=>s()},ctaVariant:"solid",fill:!0}),e.jsx(Ft,{message:n})]});const Wt=K?Ks:Xo,Ze=new Map;for(const c of Wt??[])if(!(c.status!=="active"&&c.status!=="scheduled"))for(const v of c.collections)Ze.set(v.toLowerCase(),c);const Tt=(Wt??[]).filter(c=>c.status==="active"||c.status==="scheduled"),_t=W.days,Je=((S==null?void 0:S.collections)??[]).reduce((c,v)=>c+v.items.length,0);return e.jsx(Fn,{children:e.jsx(Rn,{children:e.jsxs(Gs,{"data-testid":"my-store",children:[B&&t?e.jsx(Nn,{item:{contractAddress:B.contractAddress,chainId:ce.chainId,itemId:B.item.itemId,name:B.item.name,thumbnail:B.item.thumbnail,available:B.item.left},session:t,onClose:()=>{Y(null),Z.invalidateQueries({queryKey:["store-catalogue"]}),Z.invalidateQueries({queryKey:["store-public-catalogue"]})}}):null,D&&t?e.jsx(_n,{session:t,collections:Ct,onClose:()=>L(!1),source:"my_store",silent:St}):null,e.jsxs(Vs,{children:[e.jsxs(Qs,{children:[e.jsx(Zs,{style:kt?{backgroundImage:`url(${kt})`}:void 0,"data-testid":"store-avatar","aria-hidden":!0}),e.jsxs(Xs,{children:[$t?e.jsx(Js,{children:$t}):null,e.jsxs(ta,{children:[e.jsx(ea,{children:r("myStore.title")}),S?e.jsxs(no,{children:[r("myStore.summary",{collections:S.collections.length,items:Je}),jt.length>0?e.jsx(aa,{"data-testid":"store-socials",children:jt.map(c=>e.jsx(ra,{href:(me==null?void 0:me.links[c])??"",target:"_blank",rel:"noopener noreferrer",onClick:()=>F("Shop Clicked Store Action",{action:"social_link",link_type:c}),title:r(`creator.link.${c}`),"aria-label":r(`creator.link.${c}`),children:e.jsx(oe,{name:yr[c],className:"ico","aria-hidden":!0})},c))}):null]}):e.jsx(no,{children:e.jsx(I,{style:{width:170,background:"rgba(252, 252, 252, 0.18)",animation:"none"}})})]})]})]}),e.jsxs(oa,{children:[Ue?e.jsxs(na,{href:ae(we(`/items/creator/${Ue}`,x)),target:"_blank",rel:"noopener noreferrer",onClick:()=>F("Shop Clicked Store Action",{action:"view_public_store"}),"data-testid":"store-view-public",children:[r("myStore.viewPublicStore"),e.jsx(oe,{name:"external-link",className:"ico","aria-hidden":!0})]}):null,e.jsxs(sa,{to:we("/store-settings",x),state:{from:"/my-store"},onClick:()=>F("Shop Clicked Store Action",{action:"edit_store"}),"data-testid":"store-edit",children:[e.jsx(oe,{name:"pen",className:"ico","aria-hidden":!0}),r("myStore.editStore")]})]})]}),e.jsxs(ia,{children:[e.jsx(la,{children:r("myStore.performance")}),e.jsxs(da,{children:[e.jsx(ca,{role:"group","aria-label":r("myStore.period"),children:as.map(c=>e.jsx(ha,{type:"button","aria-pressed":j===c,...c==="custom"?{"aria-expanded":u,"aria-haspopup":"dialog","data-range-trigger":""}:{},onClick:()=>{if(c==="custom"){h(v=>!v);return}c!==j&&F("Shop Changed Store Period",{period:c,previous_period:j}),d({key:c}),h(!1),b(0)},"data-testid":`store-period-${c}`,children:c==="custom"&&j==="custom"&&W.from!=null?fr(W.from,W.to):r(`myStore.period${c}`)},c))}),u?e.jsx(Es,{from:W.from??W.to-29*864e5,to:W.to,max:Date.now(),onClose:f,onApply:(c,v)=>{F("Shop Changed Store Period",{period:"custom",previous_period:j,days:Math.round((v-c)/864e5)+1}),d({key:"custom",from:c,to:v}),h(!1),b(0)}}):null]})]}),e.jsx(Ft,{message:Ho?r("myStore.error"):null,testId:"my-store-error"}),Ko||!S?e.jsx(Cr,{}):e.jsxs(e.Fragment,{children:[e.jsxs(Wo,{"aria-label":r("myStore.summaryAria"),children:[e.jsxs(pe,{children:[e.jsxs(xe,{children:[r("myStore.tileSold"),e.jsx(ge,{"aria-hidden":!0,children:"🛍️"})]}),e.jsx(ye,{children:e.jsx("span",{"data-testid":"store-sold",children:S.sold.toLocaleString()})}),e.jsxs(be,{children:[e.jsx(ut,{delta:U.sold,period:j}),!pt(U.sold)&&(S.sold===0?r("myStore.tileSoldNone"):S.resales===0?r("myStore.tileSoldFootMintsOnly",{mints:S.mints}):r("myStore.tileSoldFoot",{mints:S.mints,resales:S.resales}))]})]}),e.jsxs(pe,{children:[e.jsxs(xe,{children:[r("myStore.tileEarnings"),e.jsx(ge,{"aria-hidden":!0,children:"💰"})]}),e.jsxs(ye,{children:[e.jsx(X,{kind:"mana"}),re(S.earningsWei),e.jsx(so,{children:r("myStore.manaUnit")})]}),e.jsxs(be,{children:[e.jsx(ut,{delta:U.earnings,period:j}),S.partial?e.jsxs(e.Fragment,{children:[e.jsx(ao,{children:r("myStore.estimate")})," ",r("myStore.tileEarningsPartial")]}):pt(U.earnings)?null:r("myStore.tileEarningsFoot")]})]}),e.jsxs(pe,{children:[e.jsxs(xe,{children:[r("myStore.tileListed"),e.jsx(ge,{"aria-hidden":!0,children:"🏷️"})]}),e.jsxs(ye,{children:[S.listed+S.classic,e.jsx(so,{children:r("myStore.ofTotal",{n:Je})})]}),e.jsx(be,{children:Je===0?r("myStore.tileListedNone"):r("myStore.tileListedFoot",{count:S.neverListed})})]}),e.jsxs(pe,{children:[e.jsxs(xe,{children:[r("myStore.tileDiscounts"),e.jsx(ge,{"aria-hidden":!0,children:"🔥"})]}),e.jsx(ye,{"data-testid":"store-discounts",children:Tt.length}),e.jsx(be,{children:Tt.length>0?r("myStore.tileDiscountsFoot"):r("myStore.tileDiscountsNone")})]})]}),e.jsxs(le,{"aria-labelledby":"store-chart-h","data-testid":"store-chart-panel",children:[e.jsx(dt,{children:e.jsxs("div",{children:[e.jsx($e,{id:"store-chart-h",children:r("myStore.chart.title")}),e.jsx(ct,{children:r("myStore.chart.sub")})]})}),e.jsx(Is,{address:t==null?void 0:t.address,range:W,rows:Yo,truncated:Ye.truncated,fetching:Ye.isFetching,collections:S.collections,onTrack:F,comparisonRows:K?oo:void 0})]}),S.classic>0&&!M?e.jsx(Pn,{count:S.classic,reason:"discounts",to:we("/activity?section=listings",x),onDismiss:()=>{F("Shop Clicked Store Action",{action:"dismiss_pricing_banner",classic_items:S.classic}),O(!0)},onCta:()=>F("Shop Clicked Store Action",{action:"update_prices",classic_items:S.classic})}):null,e.jsxs(le,{"aria-labelledby":"store-coll-h",children:[e.jsxs(nr,{children:[e.jsx($e,{id:"store-coll-h",children:r("myStore.collectionsCount",{count:S.collections.length})}),e.jsxs(sr,{children:[S.collections.length>1?e.jsx(ua,{options:[{value:"sold",label:r("myStore.sortSold")},{value:"earned",label:r("myStore.sortEarned")},...S.collections.some(c=>c.createdAt)?[{value:"newest",label:r("myStore.sortNewest")}]:[],{value:"name",label:r("myStore.sortName")}],value:T?void 0:q,placeholder:r("myStore.sortCustom"),onChange:c=>{F("Shop Sorted Store Collections",{sort:c}),_(c),H(null),P(0),mr(c)},align:"right",ariaLabel:r("myStore.sortBy"),className:"store-sort"}):null,K||J&&t&&Ct.length>0?e.jsxs(jo,{variant:"red",size:"sm",onClick:()=>L(!0),"data-testid":"store-new-discount",children:[e.jsx("span",{"aria-hidden":!0,children:"🔥"}),r("myStore.newDiscount")]}):null]})]}),S.collections.length===0?e.jsx(Pe,{children:r("myStore.noCollections")}):e.jsx(e.Fragment,{children:e.jsxs(Po,{children:[e.jsxs(_o,{children:[e.jsx("span",{}),e.jsx("span",{}),[["name",r("myStore.colCollection"),"asc"],null,["claimed",r("myStore.colClaimed"),"desc"],["earnings",r("myStore.colEarnings"),"desc"],["sold",_t?r("myStore.colTrend",{days:_t}):r("myStore.colTrendAll"),"desc"]].map((c,v)=>c?e.jsx("span",{children:e.jsx(fe,{label:c[1],dir:ee(T,c[0]),testId:`store-sort-collections-${c[0]}`,onSort:()=>{const C=at(T,c[0],c[2]);F("Shop Sorted Store Table",{table:"collections",column:C.key,direction:C.dir}),H(C),P(0)}})},c[0]):e.jsx("span",{children:r("myStore.colDiscounts")},`plain-${v}`)),e.jsx("span",{children:r("myStore.colActions")})]}),Lt.map(c=>e.jsx(vr,{collection:c,discount:Ze.get(c.contractAddress)??null,savesByKey:Uo,env:x,open:m.has(c.contractAddress),onToggle:()=>{m.has(c.contractAddress)||F("Shop Expanded Store Collection",{contract_address:c.contractAddress,items:c.items.length,exhausted:c.exhausted,has_discount:Ze.has(c.contractAddress)}),N(v=>{const C=new Set(v);return C.delete(c.contractAddress)||C.add(c.contractAddress),C})},onManage:()=>F("Shop Clicked Store Action",{action:"manage_collection",contract_address:c.contractAddress}),onIssue:t?v=>{F("Shop Clicked Store Action",{action:"issue_copies",contract_address:c.contractAddress}),Y({item:v,contractAddress:c.contractAddress})}:void 0},c.contractAddress))]})}),S.collections.length>0?e.jsxs(De,{children:[e.jsxs("span",{"data-testid":"store-showing",children:[r("myStore.showingOf",{shown:Lt.length.toLocaleString(),total:S.collections.length.toLocaleString()}),S.breakdownPartial?e.jsxs(e.Fragment,{children:[" · ",r("myStore.soldPartial",{n:S.fetched.toLocaleString()})]}):null]}),e.jsx(ze,{page:_e,pages:At,onChange:c=>{F("Shop Paged Store Table",{table:"collections",page:c+1}),P(c)},name:"collections"})]}):null]}),e.jsxs(Fo,{children:[e.jsxs(le,{"aria-labelledby":"store-best-h",children:[e.jsx(dt,{children:e.jsxs("div",{children:[e.jsx($e,{id:"store-best-h",children:r("myStore.bestSellers")}),e.jsxs(ct,{children:[r("myStore.bestSellersSub",{n:je.length}),S.breakdownPartial?e.jsxs(e.Fragment,{children:[" · ",r("myStore.soldPartial",{n:S.fetched.toLocaleString()})]}):null]})]})}),je.length===0?e.jsx(Pe,{children:r("myStore.noBestSellers")}):e.jsx(rt,{children:e.jsxs(cr,{children:[e.jsx("thead",{children:e.jsxs("tr",{children:[e.jsx("th",{scope:"col","aria-sort":ve(ee(p,"name")),children:e.jsxs(go,{children:[e.jsx(xo,{"aria-hidden":!0,children:"#"}),e.jsx(fe,{label:r("myStore.colItem"),dir:ee(p,"name"),testId:"store-sort-best-name",onSort:()=>We("name","asc")})]})}),e.jsx("th",{scope:"col","aria-sort":ve(ee(p,"collection")),children:e.jsx(fe,{label:r("myStore.colCollection"),dir:ee(p,"collection"),testId:"store-sort-best-collection",onSort:()=>We("collection","asc")})}),e.jsx("th",{scope:"col",style:{textAlign:"center"},"aria-sort":ve(ee(p,"sold")),children:e.jsx(fe,{label:r("myStore.colSold"),dir:ee(p,"sold"),testId:"store-sort-best-sold",onSort:()=>We("sold","desc")})}),e.jsx("th",{scope:"col",style:{textAlign:"right"},"aria-sort":ve(ee(p,"earnings")),children:e.jsx(fe,{label:r("myStore.colEarnings"),dir:ee(p,"earnings"),align:"right",testId:"store-sort-best-earnings",onSort:()=>We("earnings","desc")})})]})}),e.jsx("tbody",{children:Zo.map(c=>e.jsxs("tr",{"data-testid":"store-best",children:[e.jsx("td",{children:e.jsxs(go,{children:[e.jsx(xo,{children:c.rank}),e.jsxs(lo,{as:"a",href:ae(yo(c.contractAddress,c.itemId,x)),target:"_blank",rel:"noopener noreferrer",onClick:()=>F("Shop Clicked Store Action",{action:"open_item",table:"best_sellers",rank:c.rank}),"data-testid":"store-best-item",children:[e.jsx(co,{style:{backgroundImage:mt(c.rarity)},children:c.thumbnail?e.jsx("img",{src:c.thumbnail,alt:"",loading:"lazy"}):null}),e.jsx("span",{children:c.name})]})]})}),e.jsx("td",{"data-dim":!0,children:c.collectionName}),e.jsx("td",{style:{textAlign:"center",fontWeight:600},"data-testid":"store-best-sold",children:c.sold.toLocaleString()}),e.jsx("td",{"data-money":!0,children:e.jsxs(lt,{children:[e.jsx(X,{kind:"mana"}),re(c.earnedWei)]})})]},c.key))})]})}),Xe>1?e.jsxs(De,{children:[e.jsx("span",{}),e.jsx(ze,{page:Te,pages:Xe,onChange:c=>{F("Shop Paged Store Table",{table:"best_sellers",page:c+1}),A(c)},name:"best"})]}):null]}),e.jsxs(le,{"aria-labelledby":"store-feed-h",children:[e.jsxs(dt,{children:[e.jsxs("div",{children:[e.jsx($e,{id:"store-feed-h",children:r("myStore.recentSales")}),e.jsx(ct,{children:r("myStore.recentSalesSub")})]}),e.jsxs(lr,{to:"/activity",onClick:()=>F("Shop Clicked Store Action",{action:"view_all_sales"}),children:[r("myStore.viewAll"),e.jsx(oe,{name:"arrow-up-right",size:14,"aria-hidden":!0})]})]}),Me.length===0?e.jsx(Pe,{children:r("myStore.noSales")}):e.jsx(rt,{children:e.jsxs(dr,{children:[e.jsx("thead",{children:e.jsxs("tr",{children:[e.jsx("th",{scope:"col",children:r("myStore.colItem")}),e.jsx("th",{scope:"col",children:r("myStore.colCollection")}),e.jsx("th",{scope:"col",style:{textAlign:"right"},children:r("myStore.colPrice")}),e.jsx("th",{scope:"col",children:r("myStore.colBuyer")}),e.jsx("th",{scope:"col",children:r("myStore.colDate")})]})}),e.jsx("tbody",{children:Me.map(c=>{var zt,Et;const v=S.collections.find(et=>et.contractAddress===c.contractAddress.toLowerCase()),C=v==null?void 0:v.items.find(et=>et.itemId===c.itemId),G=Ae==null?void 0:Ae.get(c.buyer.toLowerCase()),ke=(Et=(zt=G==null?void 0:G.avatar)==null?void 0:zt.snapshots)==null?void 0:Et.face256;return e.jsxs("tr",{"data-testid":"store-sale",children:[e.jsx("td",{children:e.jsxs(lo,{as:c.itemId?"a":"span",...c.itemId?{href:ae(yo(c.contractAddress,c.itemId,x)),target:"_blank",rel:"noopener noreferrer",onClick:()=>F("Shop Clicked Store Action",{action:"open_item",table:"recent_sales"}),"data-testid":"store-sale-item"}:{},children:[e.jsx(co,{style:{backgroundImage:mt(C==null?void 0:C.rarity)},children:C!=null&&C.thumbnail?e.jsx("img",{src:C.thumbnail,alt:"",loading:"lazy"}):null}),e.jsxs(hr,{children:[e.jsx("span",{children:(C==null?void 0:C.name)??(v==null?void 0:v.name)??c.itemId??r("myStore.unknownItem")}),e.jsx(Ee,{content:r("myStore.kindHint"),children:e.jsx(Ba,{"data-kind":c.type,"data-testid":"store-kind-hint",children:c.type==="mint"?r("myStore.kindMint"):r("myStore.kindResale")})})]})]})}),e.jsx("td",{"data-dim":!0,children:(v==null?void 0:v.name)??"—"}),e.jsx("td",{"data-money":!0,children:e.jsxs(lt,{children:[e.jsx(X,{kind:"mana"}),re(Q(c.price))]})}),e.jsx("td",{children:Vo?e.jsxs(Fa,{"aria-hidden":!0,children:[e.jsx("i",{}),e.jsx("b",{})]}):e.jsxs(ho,{href:`${ce.profileUrl}/${c.buyer}`,target:"_blank",rel:"noopener noreferrer",onClick:()=>F("Shop Clicked Store Action",{action:"open_buyer",table:"recent_sales"}),"data-testid":"store-sale-buyer",children:[e.jsx(po,{style:ke?{backgroundImage:`url(${ke})`}:void 0,"aria-hidden":!0}),wo(c.buyer,Ae)]})}),e.jsx("td",{"data-dim":!0,children:So(c.timestamp)})]},c.id)})})]})}),Ge.pages>1?e.jsxs(De,{children:[e.jsx("span",{}),e.jsx(ze,{page:k,pages:Ge.pages,onChange:c=>{F("Shop Paged Store Table",{table:"recent_sales",page:c+1}),b(c)},name:"sales"})]}):null]})]}),e.jsxs(Ua,{children:[e.jsx(Ya,{id:"store-audience-h",children:r("myStore.audience")}),e.jsx(Ga,{children:r("myStore.audienceSub")})]}),e.jsxs(Va,{children:[e.jsxs(pe,{children:[e.jsxs(xe,{children:[e.jsxs("span",{children:[r("myStore.tileCollectors"),e.jsx(Ee,{content:r("myStore.collectorsHint"),children:e.jsx(io,{type:"button","aria-label":r("myStore.tileCollectors"),"data-testid":"store-collectors-hint",children:e.jsx(oe,{name:"info",className:"ico","aria-hidden":!0})})})]}),e.jsx(ge,{"aria-hidden":!0,children:"👥"})]}),e.jsx(ye,{"data-testid":"store-collectors",children:U.collectors.total.toLocaleString()}),e.jsx(be,{children:U.collectors.total===0?r("myStore.tileCollectorsNone"):e.jsxs(e.Fragment,{children:[S.breakdownPartial?e.jsxs(e.Fragment,{children:[e.jsx(ao,{children:r("myStore.estimate")})," "]}):null,U.collectors.topSharePct>=50?r("myStore.tileCollectorsConcentrated",{pct:Math.floor(U.collectors.topSharePct)}):r("myStore.tileCollectorsFoot",{repeat:U.collectors.repeat,pct:Math.round(U.collectors.repeatPct)})]})})]}),S.royalties?e.jsxs(pe,{children:[e.jsxs(xe,{children:[e.jsxs("span",{children:[r("myStore.tileRoyalties"),e.jsx(Ee,{content:r("myStore.royaltiesHint"),children:e.jsx(io,{type:"button","aria-label":r("myStore.tileRoyalties"),"data-testid":"store-royalties-hint",children:e.jsx(oe,{name:"info",className:"ico","aria-hidden":!0})})})]}),e.jsx(ge,{"aria-hidden":!0,children:"🔁"})]}),e.jsxs(ye,{"data-testid":"store-royalties",children:[e.jsx(pa,{children:"≈"}),e.jsx(X,{kind:"mana"}),re(kr(S.royalties.volumeWei))]}),e.jsxs(be,{children:[e.jsx(ut,{delta:U.royalties,period:j}),pt(U.royalties)?null:e.jsx("span",{children:$o("myStore.tileRoyaltiesFoot",{m:c=>e.jsxs(e.Fragment,{children:[e.jsx(X,{kind:"mana"}),c]}),count:S.royalties.resales,volume:re(S.royalties.volumeWei)})})]})]}):null]}),e.jsxs(le,{"aria-labelledby":"store-buyers-h",children:[e.jsxs(Be,{children:[e.jsx($e,{id:"store-buyers-h",children:r("myStore.buyers")}),e.jsx(ma,{children:r("myStore.buyersHint")})]}),U.buyers.length===0?e.jsx(Pe,{"data-testid":"store-buyers-none",children:r("myStore.noBuyers")}):e.jsx(rt,{children:e.jsxs(Qa,{children:[e.jsx("thead",{children:e.jsxs("tr",{children:[e.jsx("th",{scope:"col",children:r("myStore.colBuyer")}),[["items",r("myStore.colItems"),"desc"],["collections",r("myStore.colCollections"),"desc"],["last",r("myStore.colLast"),"desc"],["spent",r("myStore.colSpent"),"desc"]].map(([c,v,C])=>e.jsx("th",{scope:"col",style:c==="spent"?{textAlign:"right"}:void 0,"aria-sort":ve(ee(y,c)),children:e.jsx(fe,{label:v,dir:ee(y,c),align:c==="spent"?"right":"left",testId:`store-sort-buyers-${c}`,onSort:()=>{const G=at(y,c,C);F("Shop Sorted Store Table",{table:"buyers",column:G.key,direction:G.dir}),E(G),R(0)}})},c))]})}),e.jsx("tbody",{children:Qe.map(c=>{var C,G,ke;const v=(ke=(G=(C=Le==null?void 0:Le.get(c.address))==null?void 0:C.avatar)==null?void 0:G.snapshots)==null?void 0:ke.face256;return e.jsxs("tr",{"data-testid":"store-buyer",children:[e.jsx("td",{children:e.jsxs(ho,{href:`${ce.profileUrl}/${c.address}`,target:"_blank",rel:"noopener noreferrer",onClick:()=>F("Shop Clicked Store Action",{action:"open_buyer",table:"buyers"}),"data-testid":"store-buyer-name",children:[e.jsx(po,{style:v?{backgroundImage:`url(${v})`}:void 0,"aria-hidden":!0}),wo(c.address,Le)]})}),e.jsx("td",{"data-dim":!0,children:r("myStore.buyerItems",{count:c.items})}),e.jsx("td",{"data-dim":!0,children:r("myStore.buyerCollections",{count:c.collections})}),e.jsx("td",{"data-dim":!0,children:So(c.lastAt)}),e.jsx("td",{"data-money":!0,children:e.jsxs(lt,{children:[e.jsx(X,{kind:"mana"}),re(c.spentWei)]})})]},c.address)})})]})}),Ve>1?e.jsxs(De,{children:[e.jsx("span",{}),e.jsx(ze,{page:Ie,pages:Ve,onChange:c=>{F("Shop Paged Store Table",{table:"buyers",page:c+1}),R(c)},name:"buyers"})]}):null]})]})]})})})}export{Gr as MyStore,Gr as default};
1989
- //# sourceMappingURL=MyStore-Dn05R_CU.js.map