@dcl/shop 1.18.2-36637388260.commit-7062577 → 1.18.2-36699317496.commit-01b8efb

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-BWPAS4UU.js → Activity-Cv8PEDCM.js} +4 -4
  2. package/_assets/{AnimatedBackground-G4zt6L3g.js → AnimatedBackground-DU8dE9Vn.js} +6 -6
  3. package/_assets/{Assets-Cki36jJt.js → Assets-CXqob4KH.js} +9 -9
  4. package/_assets/{Cart-BHCWXLFp.js → Cart-ERtGuzM7.js} +2 -2
  5. package/_assets/{Collection-Cgj5YU5b.js → Collection-Py2Ivr9p.js} +2 -2
  6. package/_assets/{CollectionCarousel-cU9fE44V.js → CollectionCarousel-88Pkalip.js} +5 -5
  7. package/_assets/{Confetti-CjOanCOj.js → Confetti-eieA8ns-.js} +4 -4
  8. package/_assets/{ConstantsUtil-CxrIRg6c.js → ConstantsUtil-1_1F1v6q.js} +2 -2
  9. package/_assets/{ContentClient-Cv8a5s82.js → ContentClient--aUkwTQk.js} +2 -2
  10. package/_assets/{Creator-CGnnAe6V.js → Creator-BQNKujnt.js} +2 -2
  11. package/_assets/{CreditPackPicker-CYUT6H0R.js → CreditPackPicker-BJh7gVyM.js} +2 -2
  12. package/_assets/{CreditRate-DG--2wgq.js → CreditRate-DhVy8SW0.js} +2 -2
  13. package/_assets/{DeploymentBuilder-DGHxUcBN.js → DeploymentBuilder-CgN_VFxE.js} +2 -2
  14. package/_assets/{EmotePlaybackBar-DCMIz4N3.js → EmotePlaybackBar-KdJuV-TR.js} +3 -3
  15. package/_assets/{ErrorNotice-Bd1f01au.js → ErrorNotice-DtXBOdpx.js} +2 -2
  16. package/_assets/{Event-Bp330Mt4.js → Event-2yLCQeRh.js} +2 -2
  17. package/_assets/{ExchangeController-BXQzZPxc.js → ExchangeController-KJye0wPi.js} +2 -2
  18. package/_assets/{Faq-BFIKjL7K.js → Faq-Didhrv12.js} +2 -2
  19. package/_assets/{Filters-D7X_-lAk.js → Filters-CW5QDWVD.js} +2 -2
  20. package/_assets/{GetCredits-DUKi7f6r.js → GetCredits-D4lcj4Ru.js} +2 -2
  21. package/_assets/{Grow-BNc3OxEI.js → Grow-CvvkHqAX.js} +2 -2
  22. package/_assets/{HelpersUtil-OvAMA6uy.js → HelpersUtil-kIgw5TTS.js} +2 -2
  23. package/_assets/{IssueModal-BDZ6BC8p.js → IssueModal-9eOYi4Sj.js} +2 -2
  24. package/_assets/{ItemDetail-BWDV8eA0.js → ItemDetail-X0NkykeE.js} +2 -2
  25. package/_assets/{LoadMore-DV_d2UwD.js → LoadMore-BSPvXjEq.js} +2 -2
  26. package/_assets/{ManaPricingBanner-DSg-DD_t.js → ManaPricingBanner-DigbTeg8.js} +2 -2
  27. package/_assets/{ManaPricingBanner.styles-BLKFmwn_.js → ManaPricingBanner.styles-Dc3fA-wN.js} +2 -2
  28. package/_assets/{MyAssets-BO_A3alu.js → MyAssets-B4OLB5Ra.js} +2 -2
  29. package/_assets/{MyFavorites-De_aYwxH.js → MyFavorites-DtMQgdd2.js} +2 -2
  30. package/_assets/MyStore-CdTXUo-D.js +2324 -0
  31. package/_assets/{NetworkUtil-BZSm-jkr.js → NetworkUtil-D1pm9LAf.js} +2 -2
  32. package/_assets/{NotFound-Bzlb-Z6G.js → NotFound-CdsGhw3A.js} +2 -2
  33. package/_assets/{NotificationsBell-B0MRoKUM.js → NotificationsBell-BsIxlK--.js} +2 -2
  34. package/_assets/{OutfitDetail-18pt1QUG.js → OutfitDetail-Dplq-yw0.js} +2 -2
  35. package/_assets/{OutfitPreview-Cv3t6kFC.js → OutfitPreview-C8aKVg-G.js} +2 -2
  36. package/_assets/{OutfitStudio-DycSsoI9.js → OutfitStudio-SPKmHfra.js} +2 -2
  37. package/_assets/{PaymentMethodStep-DmPMXhlz.js → PaymentMethodStep-ExP5RaVg.js} +5 -5
  38. package/_assets/{SaleCountdown-CbQFzYoT.js → SaleCountdown-DZs8FLI1.js} +2 -2
  39. package/_assets/{Spinner-BWjwap-G.js → Spinner-G33nBiZc.js} +2 -2
  40. package/_assets/{StoreSettings-muKQ73z3.js → StoreSettings-yRVUj9gn.js} +3 -3
  41. package/_assets/{Success-u2-GF7X_.js → Success-B-akppan.js} +2 -2
  42. package/_assets/{SwapController-BPzYwtAA.js → SwapController-BLUipOVv.js} +2 -2
  43. package/_assets/{Tooltip-BEBGqPkx.js → Tooltip-BLMUNUCw.js} +2 -2
  44. package/_assets/{TradeService-JJ5nNXpS.js → TradeService-B9JX1BzC.js} +2 -2
  45. package/_assets/{W3MFrameProviderSingleton-DXnPGHMS.js → W3MFrameProviderSingleton-CVJxzwXU.js} +4 -4
  46. package/_assets/{WebCryptoP256-uIuxt_Cj.js → WebCryptoP256-CydbHReO.js} +2 -2
  47. package/_assets/{basic-TyhgZv5N.js → basic-C8sbouX1.js} +2 -2
  48. package/_assets/{biconomy-BtFaTu70.js → biconomy-D3_yfqL3.js} +2 -2
  49. package/_assets/{browseLayout.styles-CHHDveY2.js → browseLayout.styles-CyC4WPSY.js} +2 -2
  50. package/_assets/{browser-SzzkL88j.js → browser-27gwVLEC.js} +2 -2
  51. package/_assets/{browser-CE67GlJt.js → browser-DyD2zvSB.js} +2 -2
  52. package/_assets/{browser-ponyfill-B7NhZBc6.js → browser-ponyfill-B_nEXG4k.js} +2 -2
  53. package/_assets/{buy-CcmRcJZ4.js → buy-BvYZcaDE.js} +2 -2
  54. package/_assets/{buy-gasless-YzdaXjQE.js → buy-gasless-CavNsthw.js} +2 -2
  55. package/_assets/{ccip-NOIN_H05.js → ccip-DOltnJAd.js} +2 -2
  56. package/_assets/{ccip-BVKcN7Jr.js → ccip-W2RahrQP.js} +2 -2
  57. package/_assets/{chains-BrEv4QDD.js → chains-2ZkFuyps.js} +2 -2
  58. package/_assets/collectionPage.styles-CpLxZSFb.js +41 -0
  59. package/_assets/{common-B2YErlYG.js → common-MNBB5OG1.js} +2 -2
  60. package/_assets/{controller-C0Rma1a5.js → controller-DtgzPHCQ.js} +3 -3
  61. package/_assets/{core-fw1bUzhk.js → core-CNLia4ok.js} +5 -5
  62. package/_assets/{createSvgIcon-CfDgfB7_.js → createSvgIcon-DDd5PhO1.js} +2 -2
  63. package/_assets/{crumbs.styles-D-A76RyM.js → crumbs.styles-DoKQEwMj.js} +2 -2
  64. package/_assets/{custom-D-voCK6h.js → custom-CZJsO_mx.js} +2 -2
  65. package/_assets/{data-capture-DApNW5q6.js → data-capture-COmMo0De.js} +2 -2
  66. package/_assets/{dcl-schemas-BdKiENaP.js → dcl-schemas-BqHUwNqd.js} +2 -2
  67. package/_assets/{decimals-uN4lHh8H.js → decimals-BRG44LM_.js} +2 -2
  68. package/_assets/{decimals-CYB5hUEj.js → decimals-DrtoVrkw.js} +2 -2
  69. package/_assets/{detectExtension-B67sPubD.js → detectExtension-DZU1ap38.js} +2 -2
  70. package/_assets/{disposePreview-D9QW9FbO.js → disposePreview-BBU3P8er.js} +2 -2
  71. package/_assets/{email-CdY1D1Xt.js → email-vOHWF_-s.js} +2 -2
  72. package/_assets/{embedded-wallet-Dh2L_oOq.js → embedded-wallet-DlBCCX_e.js} +2 -2
  73. package/_assets/{emotion-styled.browser.esm-Bh__b0mj.js → emotion-styled.browser.esm-ChHUrxdv.js} +2 -2
  74. package/_assets/{engine-BpDMdzm1.js → engine-CiqeVLfK.js} +2 -2
  75. package/_assets/{errors-C8z3HbKi.js → errors-s3lXv01b.js} +2 -2
  76. package/_assets/{estimate-l1-fee-BSBc0Gj8.js → estimate-l1-fee-lSQd-x6M.js} +2 -2
  77. package/_assets/{eth_estimateGas-BjQF_Cs_.js → eth_estimateGas-CqaBNuVy.js} +2 -2
  78. package/_assets/{eth_getStorageAt-DiJKBoRf.js → eth_getStorageAt-b0qFnAmB.js} +2 -2
  79. package/_assets/{eth_getTransactionCount-HqayNVHj.js → eth_getTransactionCount-DpDXw0cy.js} +2 -2
  80. package/_assets/{ethereum-TgQ46dss.js → ethereum-DA11u6-H.js} +2 -2
  81. package/_assets/{ethers-kd3kVp8g.js → ethers-FMLh2To0.js} +2 -2
  82. package/_assets/{events-Did78EPF.js → events-xR4CLJ6O.js} +2 -2
  83. package/_assets/{execute-DzsdsEn5.js → execute-BVxFrl50.js} +3 -3
  84. package/_assets/{extractIPFS-Er0Wev2H.js → extractIPFS-D_xvC5ei.js} +2 -2
  85. package/_assets/{features-1UZKGlrt.js → features-BVugtMuy.js} +2 -2
  86. package/_assets/{fetchTokenMetadata-B7VQ8alh.js → fetchTokenMetadata-DmNDVtCc.js} +3 -3
  87. package/_assets/{field.styles-BkJJPv9I.js → field.styles-BjJqCKP8.js} +2 -2
  88. package/_assets/{fortmatic-9A9-ZgbA.js → fortmatic-khHFakQE.js} +2 -2
  89. package/_assets/{get-bytecode-nK6XUd7k.js → get-bytecode-CF5rPNUA.js} +2 -2
  90. package/_assets/{get-ecosystem-wallet-info-C-NnCPjb.js → get-ecosystem-wallet-info-DT7Fgi_0.js} +2 -2
  91. package/_assets/{getBalance-lGrhpvSf.js → getBalance-UV4g55-g.js} +3 -3
  92. package/_assets/{getInstalledModules-CWM6MJvs.js → getInstalledModules-JQ9sgXI7.js} +2 -2
  93. package/_assets/{getNFT-DzC5f1R1.js → getNFT-BEQVQQ6_.js} +2 -2
  94. package/_assets/{getNFT-D0TXlqCz.js → getNFT-CQ4EoTzX.js} +3 -3
  95. package/_assets/{grid.styles-ONzgF6tx.js → grid.styles-C8epOWb6.js} +2 -2
  96. package/_assets/{hashTypedData-CS1OE-zF.js → hashTypedData-BNjpWpj2.js} +2 -2
  97. package/_assets/{hashTypedData-BFSLIP6T.js → hashTypedData-Dzq_vr-Y.js} +2 -2
  98. package/_assets/{import-DeeZqvj1.js → import-C32aUwJ-.js} +2 -2
  99. package/_assets/{in-app-2w1VU0mF.js → in-app-1tdAC6_d.js} +2 -2
  100. package/_assets/{in-app-wallet-calls-BtsG4KLo.js → in-app-wallet-calls-rFyHb7zx.js} +2 -2
  101. package/_assets/{index-BCIOF979.js → index--HKM17KR.js} +2 -2
  102. package/_assets/{index-CY6J_TcT.js → index--m8yqDmI.js} +2 -2
  103. package/_assets/{index-B9ls1Whg.js → index-0thrSFb1.js} +2 -2
  104. package/_assets/{index-BYq79bRo.js → index-1GnqLAI_.js} +2 -2
  105. package/_assets/{index-CRccPpmH.js → index-B27__oz0.js} +2 -2
  106. package/_assets/{index-BvRsZyIm.js → index-B2XvL1Ec.js} +2 -2
  107. package/_assets/{index-DfrTIo6g.js → index-B6JLypyJ.js} +2 -2
  108. package/_assets/{index-C1fnANX5.js → index-B6nOuJQV.js} +2 -2
  109. package/_assets/{index-BjwVryJx.js → index-BKmKxQIC.js} +2 -2
  110. package/_assets/{index-d91IniVU.js → index-BLlk1TdE.js} +2 -2
  111. package/_assets/{index-nwVYg_ZS.js → index-BQyoN2fu.js} +2 -2
  112. package/_assets/{index-D7EQyQF6.js → index-BU5FCydW.js} +279 -279
  113. package/_assets/{index-Dru1VYRp.js → index-BU9L1jph.js} +2 -2
  114. package/_assets/{index-DlIFUVdJ.js → index-BZFDlbpe.js} +2 -2
  115. package/_assets/{index-Bc_GCFNg.js → index-B_nBv8l9.js} +2 -2
  116. package/_assets/{index-BseS0J2l.js → index-BdN3DWUA.js} +2 -2
  117. package/_assets/{index-B394YkDk.js → index-BfJnZxH1.js} +2 -2
  118. package/_assets/{index-BmZ7HK6t.js → index-BiRgI2bT.js} +2 -2
  119. package/_assets/{index-DqAMDuCL.js → index-BimshxFa.js} +3 -3
  120. package/_assets/{index-DcHM4SH7.js → index-BjFb2_7h.js} +2 -2
  121. package/_assets/{index-DGygWgiw.js → index-Bsoaz1KO.js} +2 -2
  122. package/_assets/{index-DsmmUF9b.js → index-C4T5szPC.js} +2 -2
  123. package/_assets/{index-DrLXR1gh.js → index-C6OXQaIJ.js} +2 -2
  124. package/_assets/{index-B6OjSOaU.js → index-C7ToCPZ0.js} +2 -2
  125. package/_assets/{index-DUe1XtDp.js → index-C9JKi6C9.js} +2 -2
  126. package/_assets/{index-BTZV7OCM.js → index-CDwNT0Gi.js} +2 -2
  127. package/_assets/{index-CVT9k4QD.js → index-CEXPD6wn.js} +2 -2
  128. package/_assets/{index-BDxkDIWS.js → index-CLSqZUbP.js} +2 -2
  129. package/_assets/{index-D0LXjl1o.js → index-CM5PSkXg.js} +3 -3
  130. package/_assets/{index-Bj1Rt5tA.js → index-CYO3wfTs.js} +2 -2
  131. package/_assets/{index-B7aSiR4q.js → index-CZ9K15YN.js} +2 -2
  132. package/_assets/{index-SgWiGjuO.js → index-CdlIZMru.js} +2 -2
  133. package/_assets/{index-gKuc3EXx.js → index-Cf_2QCy8.js} +2 -2
  134. package/_assets/{index-CQKMOxqA.js → index-Cjt8y837.js} +2 -2
  135. package/_assets/{index-B1Fk54Xy.js → index-CpN5BttZ.js} +2 -2
  136. package/_assets/{index-CKADy2us.js → index-CtvKNtpi.js} +2 -2
  137. package/_assets/{index-DVVVeN4G.js → index-D-Qq7AFM.js} +2 -2
  138. package/_assets/{index-D_vXhkpQ.js → index-D4y5uZ-J.js} +2 -2
  139. package/_assets/{index-DZYThN4u.js → index-D7IdVQiv.js} +2 -2
  140. package/_assets/{index-C85G3c1J.js → index-D7aMhNYR.js} +2 -2
  141. package/_assets/{index-LPaePMIe.js → index-DALUGT_-.js} +2 -2
  142. package/_assets/{index-Bzys3QM4.js → index-DCj1afij.js} +3 -3
  143. package/_assets/{index-RshDWn_k.js → index-DLAQxPYM.js} +2 -2
  144. package/_assets/{index-CLeFgNsE.js → index-DMU8WwyK.js} +2 -2
  145. package/_assets/{index-DhXJfkpA.js → index-DRpp-9Ax.js} +2 -2
  146. package/_assets/{index-DPV80msS.js → index-DSMfYjcn.js} +2 -2
  147. package/_assets/{index-DW10w3so.js → index-DSVgVGvw.js} +2 -2
  148. package/_assets/{index-qmnyNSm8.js → index-D_qyhQlq.js} +2 -2
  149. package/_assets/{index-sRgWyPhW.js → index-Db0M_X2k.js} +2 -2
  150. package/_assets/{index-AkCwwsxs.js → index-Db3NFX6H.js} +2 -2
  151. package/_assets/{index-JyiQf10a.js → index-DeS2QcS_.js} +3 -3
  152. package/_assets/{index-1EO4YCaM.js → index-Dg7VM7nf.js} +2 -2
  153. package/_assets/{index-DBUKOkYg.js → index-Dx1gD9vs.js} +2 -2
  154. package/_assets/{index-DKEuDdzi.js → index-H7ep9Rq4.js} +2 -2
  155. package/_assets/{index-qLXUVl3K.js → index-HR3pY-sM.js} +2 -2
  156. package/_assets/{index-DVgQ_ieI.js → index-Kh_O1AQU.js} +2 -2
  157. package/_assets/{index-CWrVN1S8.js → index-MAY9er2c.js} +4 -4
  158. package/_assets/{index-CFR26c1x.js → index-NpmhmugW.js} +2 -2
  159. package/_assets/{index-0jhvWSml.js → index-X-5mK4Th.js} +2 -2
  160. package/_assets/{index-PNM5NBdL.js → index-YSJKoltZ.js} +2 -2
  161. package/_assets/{index-BOHq6INj.js → index-ZmSlRnwW.js} +2 -2
  162. package/_assets/{index-Cua0sPPT.js → index-c9Fqa9I4.js} +2 -2
  163. package/_assets/{index-BmGw3adR.js → index-jii8dSH9.js} +4 -4
  164. package/_assets/{index-CoieDRUw.js → index-r0znEyMN.js} +2 -2
  165. package/_assets/{index-BQRWW3V4.js → index-sh1QPtHZ.js} +2 -2
  166. package/_assets/{index-Dj5jt24t.css → index-un_saWbe.css} +1 -1
  167. package/_assets/{index-itiTXs8c.js → index-yT2R0MOZ.js} +4 -4
  168. package/_assets/{index-BTlrmz-0.js → index-zWHwK8LP.js} +2 -2
  169. package/_assets/{index.es-7Nxasp-B.js → index.es-BA44R-Xa.js} +2 -2
  170. package/_assets/{index.es-BVbz3CpZ.js → index.es-CSamVR2I.js} +5 -5
  171. package/_assets/{index.es-DQHYHIFr.js → index.es-QXK-eANc.js} +2 -2
  172. package/_assets/{index.es-ByBCyMc3.js → index.es-dUdsfw4t.js} +2 -2
  173. package/_assets/{items-empty-DYwmDVAn.js → items-empty-rSd_Iik6.js} +2 -2
  174. package/_assets/{jump-KBvVPlD9.js → jump-D2HbRr2q.js} +2 -2
  175. package/_assets/{linkAccount-DxtNq6wu.js → linkAccount-CNxRauTe.js} +2 -2
  176. package/_assets/{loader-logo-Cqmi86kx.js → loader-logo-xHBruJq3.js} +2 -2
  177. package/_assets/{localBatchGatewayRequest-Bb786WwO.js → localBatchGatewayRequest-ClHJb64u.js} +2 -2
  178. package/_assets/{modal.styles-CA2s1L9l.js → modal.styles-BB1k2W3W.js} +2 -2
  179. package/_assets/{native-BTsyT2_I.js → native-BcUvcFQf.js} +2 -2
  180. package/_assets/{networks-BpDKXpw-.js → networks-BP4WLO6B.js} +2 -2
  181. package/_assets/{onramp-5-CzNiMZ.js → onramp-CDRtIxCM.js} +2 -2
  182. package/_assets/{openzeppelin-BbesWuob.js → openzeppelin--odnQm_c.js} +2 -2
  183. package/_assets/{ownerOf-5NjXlqv4.js → ownerOf-CS2S4HKY.js} +2 -2
  184. package/_assets/{parseNft-BmBn9ttJ.js → parseNft-uChPEm1I.js} +3 -3
  185. package/_assets/{parseSignature-I3qWwoHJ.js → parseSignature-BN4JZzva.js} +4 -4
  186. package/_assets/{parseSignature-jhufQK18.js → parseSignature-BuJ1wZqH.js} +2 -2
  187. package/_assets/{passkeys--MhQHHJ6.js → passkeys-DHsT5Nmm.js} +2 -2
  188. package/_assets/{pay-with-exchange-DQsTBU9X.js → pay-with-exchange-DYokda-c.js} +2 -2
  189. package/_assets/{prepare-contract-call-Be9Npsq6.js → prepare-contract-call-rQrMVz6Q.js} +2 -2
  190. package/_assets/{qr-overlay-rYPpUzf9.js → qr-overlay-B0egTFoT.js} +4 -4
  191. package/_assets/{react-BekGWEkZ.js → react-DUeL1qp6.js} +2 -2
  192. package/_assets/{receive-DC2Iu_gK.js → receive-pYQvjqFB.js} +2 -2
  193. package/_assets/{resolveImplementation-BoLPpLwR.js → resolveImplementation-Bm7aHAcg.js} +2 -2
  194. package/_assets/{resume-buy-CGopq0zP.js → resume-buy-BPHZDw7c.js} +2 -2
  195. package/_assets/{resume-name-Ba6MphAx.js → resume-name-BSxtavJ3.js} +2 -2
  196. package/_assets/{rpc-tJTyE1wJ.js → rpc-B-OcEn7S.js} +2 -2
  197. package/_assets/{sales-empty-D19Zxk_n.js → sales-empty-5sV_8BjH.js} +2 -2
  198. package/_assets/{search-empty-BssCUEOX.js → search-empty-H6-ff5sq.js} +2 -2
  199. package/_assets/{secp256k1-hbPx6NWK.js → secp256k1-BLSkGxtg.js} +2 -2
  200. package/_assets/{secp256k1-DGiZZuEZ.js → secp256k1-CgBKAU1K.js} +2 -2
  201. package/_assets/{secp256k1-PRHKCWEh.js → secp256k1-DLm8Os8y.js} +2 -2
  202. package/_assets/{send-Byn4Dmol.js → send-GXeKBaeq.js} +2 -2
  203. package/_assets/{send-batch-transaction-8LtyKPoy.js → send-batch-transaction-DmYSGBzU.js} +2 -2
  204. package/_assets/{send-eip712-transaction-CGzvYUL2.js → send-eip712-transaction-B3g4mZmi.js} +3 -3
  205. package/_assets/{send-gasless-transaction-sDLEqmdj.js → send-gasless-transaction-DooK6oIE.js} +3 -3
  206. package/_assets/{send-transaction-xmRbUuPg.js → send-transaction-C6Wu4coH.js} +3 -3
  207. package/_assets/{sendMetaTransaction-LSOm03u7.js → sendMetaTransaction-B5ZO9jvL.js} +2 -2
  208. package/_assets/{sendRawTransaction-DB13wskp.js → sendRawTransaction-DT2Th3au.js} +4 -4
  209. package/_assets/{sentry-BJsKhDHR.js → sentry-CXljof2R.js} +3 -3
  210. package/_assets/{serializeTransaction-CMbd7j0x.js → serializeTransaction-AM7lBsFk.js} +2 -2
  211. package/_assets/{session-proposal-DxIuVNiz.js → session-proposal-DVtQPrvD.js} +2 -2
  212. package/_assets/{session-request-D6vkJViD.js → session-request-BorxnSb-.js} +3 -3
  213. package/_assets/{sha256-k5IxCoEI.js → sha256-CKDpyd5j.js} +2 -2
  214. package/_assets/{sha3-CV-yBtw0.js → sha3-Ddr1Yh2t.js} +2 -2
  215. package/_assets/signin-empty-BEsGFkKt.js +2 -0
  216. package/_assets/{signing-o3SBNeiE.js → signing-PbT8rOK5.js} +4 -4
  217. package/_assets/{skeleton.styles-BIeK-B7A.js → skeleton.styles-Bg8kRALo.js} +2 -2
  218. package/_assets/{socials-Ddpadsfy.js → socials-Bq-GWj8b.js} +2 -2
  219. package/_assets/{styled-2zmMmkeT.js → styled-CKnuvISQ.js} +2 -2
  220. package/_assets/{swaps-B0l_mSR1.js → swaps-CXoZforC.js} +2 -2
  221. package/_assets/{thirdweb-BfDOkQQ5.js → thirdweb-DuwS2_Z5.js} +4 -4
  222. package/_assets/{to-serializable-transaction-CTl0uSb4.js → to-serializable-transaction-Bifleqz-.js} +3 -3
  223. package/_assets/{totalSupply-CxPjsPCg.js → totalSupply-CVYVSeL1.js} +2 -2
  224. package/_assets/{trade-encoding-BraQNr9h.js → trade-encoding-9VxkSLUE.js} +2 -2
  225. package/_assets/{transaction-CHnIdkAY.js → transaction-2jjZedBE.js} +2 -2
  226. package/_assets/{transactionReceipt-BhyuF6JD.js → transactionReceipt-D-Yy8IeO.js} +2 -2
  227. package/_assets/{transactions-BAduzPMx.js → transactions-BQz7OrAF.js} +2 -2
  228. package/_assets/{useInfiniteGrid-BSt4XoRe.js → useInfiniteGrid-DxgAT_kc.js} +2 -2
  229. package/_assets/{useStore-uJftgkNh.js → useStore-DvWx61co.js} +3 -3
  230. package/_assets/{useTheme-CTdb32ky.js → useTheme-eQmEuyuH.js} +2 -2
  231. package/_assets/{utils-BM5DRvHN.js → utils-C7Ok6jYM.js} +2 -2
  232. package/_assets/{verifyHash-Cc1DNn6z.js → verifyHash-621Z04dc.js} +2 -2
  233. package/_assets/{w3m-modal-BD_H_zDq.js → w3m-modal-B3osBOPJ.js} +2 -2
  234. package/_assets/{w3m-modal-DhUviUTp.js → w3m-modal-CLdcq1yd.js} +2 -2
  235. package/_assets/{wait-for-tx-receipt-BNi9RAot.js → wait-for-tx-receipt-B0jsH53r.js} +2 -2
  236. package/_assets/{wallets-_XClPpcK.js → wallets-CpTLFdBc.js} +6 -6
  237. package/_assets/{web-connector-f86d5HKr.js → web-connector-BWApdRbV.js} +4 -4
  238. package/_assets/{writeContract-CxIdpvKT.js → writeContract-D0ic7xMc.js} +2 -2
  239. package/_assets/{zora-sepolia-BbIJIN7c.js → zora-sepolia-6Qf6jPe0.js} +2 -2
  240. package/_assets/{zoraTestnet-DPqTmGTC.js → zoraTestnet-DE24U8mH.js} +2 -2
  241. package/index.html +12 -12
  242. package/package.json +2 -2
  243. package/_assets/MyStore-CxWNhONl.js +0 -2218
  244. package/_assets/collectionPage.styles-DTD4yMSv.js +0 -41
  245. package/_assets/signin-empty-ma5vZkR6.js +0 -2
@@ -0,0 +1,2324 @@
1
+ import{r as u,j as e,L as nt,u as ks,f as $s,N as vs}from"./react-DUeL1qp6.js";import{c as me,bV as Cs,w as J,l as Wo,c_ as Ms,c$ as As,s as c,t as i,z as Is,a as o,d0 as ye,I as te,aH as hn,bP as To,d1 as _o,d2 as Ls,cb as Ws,H as an,B as Ts,x as _s,X as Ps,cd as Es,d3 as Rs,a6 as Ds,aK as zs,a2 as Os,d4 as Wt,d5 as Po,O as Fs,ca as Ns,ay as Bs,az as Us,aA as qs,av as Hs}from"./index-BU5FCydW.js";import{a as Ks,c as Ys,D as Gs,S as Vs}from"./SaleCountdown-DZs8FLI1.js";import{d as Qs}from"./dcl-schemas-BqHUwNqd.js";import{t as Xs,u as Zs,C as Js,M as er,i as tr}from"./ManaPricingBanner-DigbTeg8.js";import{T as Tt}from"./Tooltip-BLMUNUCw.js";import{m as nr}from"./mana-matic-CEqvSwrJ.js";import{g as Eo,f as or,R as sr,M as rr}from"./browseLayout.styles-CyC4WPSY.js";import{E as Nn}from"./ErrorNotice-DtXBOdpx.js";import{M as ar,S as ir,C as lr,H as cr,T as dr,a as hr,b as pr,N as Bn,A as ur,O as mr,P as fr,I as xr}from"./IssueModal-9eOYi4Sj.js";import{u as gr,L as yr}from"./useStore-DvWx61co.js";import{s as br}from"./signin-empty-BEsGFkKt.js";import"./sentry-CXljof2R.js";import"./ethers-FMLh2To0.js";import"./intl-AKLEHPeO.js";import"./errors-s3lXv01b.js";import"./sha3-Ddr1Yh2t.js";import"./browser-27gwVLEC.js";import"./trade-encoding-9VxkSLUE.js";import"./sendMetaTransaction-B5ZO9jvL.js";import"./ManaPricingBanner.styles-Dc3fA-wN.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]="16bf2ec0-398b-4fd8-a787-9e785ee06759",t._sentryDebugIdIdentifier="sentry-dbid-16bf2ec0-398b-4fd8-a787-9e785ee06759")}catch{}})();function G(t){try{return BigInt(t||"0")}catch{return 0n}}async function Un(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(`${me.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:l}=await s.json();return l}function wr(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 pn(t){var l;const n=await fetch(`${me.marketplaceServerUrl}/v1/sales?${wr(t).toString()}`);if(!n.ok)throw await((l=n.body)==null?void 0:l.cancel()),new Error(`fetchSales ${n.status}`);const s=await n.json();return{data:s.data??[],total:s.total??0}}async function Sr(t){const{total:n}=await pn({...t,first:1});return n}async function jr(t,{first:n,skip:s}){const{data:l,total:a}=await pn({...t,first:n,skip:s});return{rows:l,total:a}}async function Ro(t,{cap:n=5e3}={}){const l=[];let a=0;for(let d=0;d<n;d+=1e3){const h=Math.min(1e3,n-d),p=await pn({...t,first:h,skip:d});if(a=p.total,l.push(...p.data),p.data.length<h||l.length>=a)break}return{rows:l,total:a,truncated:a>l.length}}async function kr(t){var a;const n=new URLSearchParams({creator:t.creator,first:String(t.first),skip:String(t.skip)});t.from!=null&&n.set("from",String(t.from)),t.to!=null&&n.set("to",String(t.to));const s=await fetch(`${me.marketplaceServerUrl}/v1/sales/royalties?${n.toString()}`);if(!s.ok)throw await((a=s.body)==null?void 0:a.cancel()),new Error(`fetchRoyalties ${s.status}`);const l=await s.json();return{data:l.data??[],total:l.total??0,royaltiesWei:l.royaltiesWei??"0"}}const $r=864e5;function ln(t,n){return{current:t,previous:n,pct:n===0?null:(t-n)/n*100}}function vr(t,n){const s=n===0n?null:Number((t-n)*10000n/n)/100;return{current:Number(t),previous:Number(n),pct:s}}function Cr(t,n=3){var h;const s=t.filter(Do),l=new Map;for(const p of s){const y=p.buyer.toLowerCase();l.set(y,(l.get(y)??0)+1)}const a=[...l.entries()].sort((p,y)=>y[1]-p[1]||p[0].localeCompare(y[0])),d=a.filter(([,p])=>p>1).length;return{total:a.length,repeat:d,repeatPct:a.length===0?0:d/a.length*100,topSharePct:s.length===0?0:(((h=a[0])==null?void 0:h[1])??0)/s.length*100,top:a.slice(0,n).map(([p,y])=>({address:p,bought:y}))}}function Do(t){return t.type==="mint"&&t.itemId!=null}function Mr(t,n){const s=t.filter(Do),l=new Map;for(const a of s){const d=a.buyer.toLowerCase(),h=a.contractAddress.toLowerCase(),p=l.get(d)??{bought:0,items:new Set,collections:new Set,spentWei:0n,lastAt:0};p.bought+=1,p.items.add(`${h}-${a.itemId}`),p.collections.add(h),p.spentWei+=G(a.price),a.timestamp>p.lastAt&&(p.lastAt=a.timestamp),l.set(d,p)}return[...l.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 Ar(t,n){if(t.length===0)return null;const s=t.reduce((l,a)=>a.timestamp>l?a.timestamp:l,0);return Math.max(0,Math.floor((n-s)/$r))}function Ir(t,n=5){return t.flatMap(s=>s.items.filter(l=>l.sold>0).map(l=>({key:l.key,contractAddress:s.contractAddress,itemId:l.itemId,name:l.name,thumbnail:l.thumbnail,rarity:l.rarity,collectionName:s.name,sold:l.sold,earnedWei:l.earnedWei}))).sort((s,l)=>l.sold-s.sold||(l.earnedWei>s.earnedWei?1:l.earnedWei<s.earnedWei?-1:0)||s.name.localeCompare(l.name)).slice(0,n)}const _t=100;async function Lr(t){const[{collections:n},s]=await Promise.all([Cs(t,{first:_t}),_r(t)]),l=new Map(n.map(a=>[a.contractAddress.toLowerCase(),a.name]));return s.map(a=>{const d=a.contractAddress.toLowerCase(),h=(a.rarity??"common").toLowerCase(),p=Tr(h),y=Number(a.available??0);return{id:a.id,collectionId:"",collectionName:l.get(d)??a.name,contractAddress:d,blockchainItemId:String(a.itemId??""),name:a.name,category:a.category,rarity:h,thumbnail:a.thumbnail??"",type:a.category==="emote"?"emote":"wearable",isPublished:!0,isApproved:!0,totalSupply:Math.max(0,p-y),maxSupply:p,remainingSupply:y,createdAt:a.createdAt?a.createdAt*1e3:void 0,minters:[]}})}function Wr(t,n){const s=new Set(t.map(l=>l.contractAddress.toLowerCase()));return[...t,...n.filter(l=>!s.has(l.contractAddress.toLowerCase()))]}function Tr(t){try{return Qs.Rarity.getMaxSupply(t)}catch{return 0}}async function _r(t){var s;const n=[];for(let l=0;;l+=_t){const a=new URLSearchParams({creator:t,first:String(_t),skip:String(l),includeSocialEmotes:"false"}),d=await fetch(`${me.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:h}=await d.json(),p=h??[];if(n.push(...p),p.length<_t)return n}}const cn=864e5,Pt=14;function Pr(t,n,s){const l=new Array(Pt).fill(0),a=s-n*cn,d=n*cn/Pt;for(const h of t)h.timestamp<a||h.timestamp>s||(l[Math.min(Pt-1,Math.floor((h.timestamp-a)/d))]+=1);return l}function Er({rows:t,total:n,truncated:s,mints:l,summary:a,catalogue:d,saleState:h,unreadable:p,days:y,now:x}){const z=new Map,f=new Map,j=new Map;for(const w of t){if(w.type!=="mint"||w.itemId==null)continue;const M=w.contractAddress.toLowerCase(),k=`${M}-${w.itemId}`;z.set(k,(z.get(k)??0)+1),f.set(k,(f.get(k)??0n)+G(w.price));const $=j.get(M)??[];$.push(w),j.set(M,$)}const C=t.reduce((w,M)=>M.timestamp<w?M.timestamp:w,x),U=Math.max(1,Math.ceil((x-C)/cn)),L=y!=null&&!s?y:Math.max(y==null?Pt:1,U),I=new Map(((a==null?void 0:a.byItem)??[]).map(w=>[`${w.contractAddress.toLowerCase()}-${w.itemId}`,w.soldLifetime])),_=new Map(((a==null?void 0:a.byCollection)??[]).map(w=>[w.contractAddress.toLowerCase(),w])),E=new Map;let B=0,g=0,F=0,R=0,W=0;for(const w of d){const M=w.contractAddress.toLowerCase(),k=h[`${w.contractAddress}-${w.blockchainItemId}`],$=w.remainingSupply<=0?"soldout":p!=null&&p.has(M)?"unknown":k!=null&&k.isOnSale?k.manaWei?"classic":"discounted":"unlisted";$==="soldout"?R+=1:$==="unlisted"?W+=1:$==="classic"?F+=1:$==="discounted"&&(g+=1);const P=E.get(M)??{contractAddress:M,collectionId:w.collectionId,name:w.collectionName,items:[],listed:0,classic:0,soldOut:0,sold:0,earningsWei:0n,earningsUsd:null,createdAt:null,trend:[],claimed:0,runTotal:0,exhausted:!1},T=z.get(`${M}-${w.blockchainItemId}`)??0;P.items.push({key:`${M}-${w.blockchainItemId}`,itemId:w.blockchainItemId,name:w.name,thumbnail:w.thumbnail,rarity:w.rarity,left:w.remainingSupply,minted:w.totalSupply,sold:T,earnedWei:f.get(`${M}-${w.blockchainItemId}`)??0n,lifetimeSold:I.get(`${M}-${w.blockchainItemId}`)??null,priceCredits:(k==null?void 0:k.priceCredits)??null,manaWei:(k==null?void 0:k.manaWei)??null,createdAt:w.createdAt??null,state:$}),P.sold+=T,P.claimed+=w.totalSupply,P.runTotal+=w.totalSupply+w.remainingSupply,B+=T,w.createdAt&&(P.createdAt==null||w.createdAt>P.createdAt)&&(P.createdAt=w.createdAt),$==="soldout"?P.soldOut+=1:$==="classic"?P.classic+=1:$==="discounted"&&(P.listed+=1),E.set(M,P)}for(const[w,M]of E){const k=j.get(w)??[],$=_.get(w);M.earningsWei=$?G($.earnedWei):k.reduce((P,T)=>P+G(T.price),0n),$&&(M.sold=$.sold),M.earningsUsd=($==null?void 0:$.earnedUsd)!=null?Number($.earnedUsd):null,M.trend=Pr(k,L,x),M.exhausted=M.items.length>0&&M.soldOut===M.items.length,M.items.sort((P,T)=>T.sold-P.sold||P.name.localeCompare(T.name))}const le=[...E.values()].reduce((w,M)=>w+M.sold,0);return{collections:[...E.values()].sort((w,M)=>M.sold-w.sold||w.name.localeCompare(M.name)),sold:(a==null?void 0:a.total)??n,mints:(a==null?void 0:a.mints)??l,resales:a?a.resales:n-l,earningsWei:a?G(a.earnedWei):t.reduce((w,M)=>w+G(M.price),0n),earningsUsd:(a==null?void 0:a.earnedUsd)!=null?Number(a.earnedUsd):null,unpricedSales:(a==null?void 0:a.unpricedSales)??0,partial:a?!1:s,breakdownPartial:s,fetched:t.length,unattributed:a?a.total-le:t.length-B,trendDays:L,unknownCollections:[...E.keys()].filter(w=>p==null?void 0:p.has(w)).length,royalties:a?{resales:a.royalties.resales,volumeWei:G(a.royalties.volumeWei),paidWei:a.royalties.royaltiesWei!=null?G(a.royalties.royaltiesWei):null}:null,listed:g,neverListed:W,classic:F,soldOut:R}}const zo="shop.my-store.currency";function Rr(t){return new Date(t).toISOString().slice(0,10)}async function Dr(t,n){var d;const s=new URLSearchParams({from:String(Math.max(0,Math.floor(t))),to:String(Math.floor(n))}),l=await fetch(`${me.marketplaceServerUrl}/v1/rates/mana-usd?${s.toString()}`);if(!l.ok)throw await((d=l.body)==null?void 0:d.cancel()),new Error(`fetchManaUsdRates ${l.status}`);const{data:a}=await l.json();return new Map((a??[]).map(h=>[h.day,Number(h.usd)]).filter(([,h])=>Number.isFinite(h)&&h>0))}function dn(t,n){return Number(t/10n**12n)/1e6*n}function et(t,n){const s=n.get(Rr(t.timestamp));return s===void 0?null:dn(G(t.price),s)}function qn(t,n,s){const l=new Map;let a=0;for(const d of t){const h=s(d);if(h===null)continue;const p=et(d,n);if(p===null){a+=1;continue}l.set(h,(l.get(h)??0)+p)}return{totals:l,unpriced:a}}function Oo(t,n){return t>=100?Math.round(t).toLocaleString(n):t.toLocaleString(n,{minimumFractionDigits:2,maximumFractionDigits:2})}function zr(){try{return localStorage.getItem(zo)==="usd"?"usd":"mana"}catch{return"mana"}}function Or(t){try{localStorage.setItem(zo,t)}catch{}}const un=864e5,Fr=["7d","30d","90d","year","all","custom"],Nr={"7d":7,"30d":30,"90d":90};function Et(t){const n=new Date(t);return n.setHours(0,0,0,0),n.getTime()}function Br(t){const n=new Date(t);return n.setHours(23,59,59,999),n.getTime()}function Ur(t,n){const s=Br(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 l;return t.key==="custom"&&t.from!=null?l=Et(Math.min(t.from,s)):t.key==="year"?l=Et(new Date(new Date(s).getFullYear(),0,1).getTime()):l=No(Et(s),-((Nr[t.key]??30)-1)),{from:l,to:s,days:Math.max(1,Math.round((s+1-l)/un))}}function Fo(t,n){if(t.from==null||n==="none")return null;if(n==="year")return{from:Hn(t.from),to:Hn(t.to)};const s=t.days??Math.max(1,Math.round((t.to+1-t.from)/un));return{from:No(t.from,-s),to:t.from-1}}function No(t,n){const s=new Date(t);return s.setDate(s.getDate()+n),s.getTime()}function Hn(t){const n=new Date(t);return n.getMonth()===1&&n.getDate()===29&&n.setDate(28),n.setFullYear(n.getFullYear()-1),n.getTime()}function qr(t,n){const s=(n-t)/un;return s<=62?"day":s<=400?"week":"month"}function Kn(t,n,s){const l=[],a=new Date(Et(t));for(s==="month"&&a.setDate(1);a.getTime()<=n;)l.push(a.getTime()),s==="day"?a.setDate(a.getDate()+1):s==="week"?a.setDate(a.getDate()+7):a.setMonth(a.getMonth()+1);return l}function Yn(t,n,s,l){const a=n.map(d=>({start:d,sales:0,earnedWei:0n,earnedUsd:0,unpriced:0}));if(a.length===0)return a;for(const d of t){if(d.timestamp<n[0]||d.timestamp>s)continue;let h=0,p=n.length-1;for(;h<p;){const x=h+p+1>>1;n[x]<=d.timestamp?h=x:p=x-1}const y=h;if(a[y].sales+=1,a[y].earnedWei+=G(d.price),l){const x=et(d,l);x===null?a[y].unpriced+=1:a[y].earnedUsd+=x}}return a}const Hr=new Map,Kr=[],Yr=6e3;function Gr(t,n){var le,w,M;const s=t==null?void 0:t.address,{days:l,from:a,to:d}=n,h=[a??null,d],p=J({queryKey:["store-sales",s,...h],enabled:!!s,queryFn:()=>Ro({seller:s,from:a,to:d})}),y=J({queryKey:["store-summary",s,...h],enabled:!!s,queryFn:()=>Un({seller:s,from:a,to:d})}),x=Fo(n,"previous"),z=x==null?void 0:x.from,f=x==null?void 0:x.to,j=J({queryKey:["store-summary-previous",s,...h],enabled:!!s&&z!==void 0,queryFn:()=>Un({seller:s,from:z,to:f})}),C=J({queryKey:["store-mints",s,...h],enabled:!!s,queryFn:()=>Sr({seller:s,from:a,to:d,type:"mint"})}),U=J({queryKey:["store-catalogue",s],enabled:!!s&&!!t,queryFn:()=>Ks(s,t.identity,{includeSoldOut:!0})}),L=J({queryKey:["store-public-catalogue",s],enabled:!!s&&!!t,queryFn:()=>Promise.race([Lr(s),new Promise((k,$)=>setTimeout(()=>$(new Error("public catalogue timed out")),Yr))]).catch(k=>(Wo(k,{flow:"my_store",step:"public_catalogue"}),[]))}),I=u.useMemo(()=>U.data?L.isPending?{data:void 0}:{data:Wr(U.data,L.data??[])}:{data:void 0},[U.data,L.isPending,L.data]),_=u.useMemo(()=>[...new Set((I.data??[]).map(k=>k.contractAddress))],[I.data]),E=J({queryKey:["store-sale-state",s,_],enabled:_.length>0,queryFn:async()=>{const k=await Promise.allSettled(_.map(T=>Ms(T))),$={},P=new Set;return k.forEach((T,H)=>{const V=_[H];if(T.status==="rejected"){P.add(V.toLowerCase());return}for(const[Q,v]of Object.entries(T.value))$[`${V}-${Q}`]=v}),{states:$,unreadable:P}}}),B=J({queryKey:["store-saves",_,(I.data??[]).length],enabled:(I.data??[]).length>0,queryFn:async()=>{const k=(I.data??[]).map(T=>`${T.contractAddress.toLowerCase()}-${T.blockchainItemId}`),$=await Promise.allSettled(k.map(async T=>[T,(await As(T)).count])),P=new Map;for(const T of $)T.status==="fulfilled"&&P.set(T.value[0],T.value[1]);return P}}),g=u.useMemo(()=>{var k,$,P,T,H;return I.data?Er({rows:((k=p.data)==null?void 0:k.rows)??[],total:(($=p.data)==null?void 0:$.total)??0,truncated:!!((P=p.data)!=null&&P.truncated),mints:C.data??0,summary:y.data??null,catalogue:I.data,saleState:((T=E.data)==null?void 0:T.states)??{},unreadable:(H=E.data)==null?void 0:H.unreadable,days:l,now:d}):null},[I.data,p.data,C.data,y.data,E.data,l,d]),F=u.useMemo(()=>{var k;return Xs(U.data??[],(k=E.data)==null?void 0:k.states)},[U.data,E.data]),R=u.useMemo(()=>{var H,V,Q;const k=Cr(((H=p.data)==null?void 0:H.rows)??[]),$=Mr(((V=p.data)==null?void 0:V.rows)??[]),P=Ar(((Q=p.data)==null?void 0:Q.rows)??[],d),T=j.data;return{collectors:k,buyers:$,quietDays:P,sold:T&&y.data?ln(y.data.total,T.total):null,earnings:T&&y.data?vr(G(y.data.earnedWei),G(T.earnedWei)):null,royalties:T&&y.data?ln(y.data.royalties.resales,T.royalties.resales):null}},[p.data,y.data,j.data,d]),W=B.data??Hr;return{stats:g,trend:R,savesByKey:W,saleable:F,sales:{rows:((le=p.data)==null?void 0:le.rows)??Kr,truncated:!!((w=p.data)!=null&&w.truncated),isFetching:p.isFetching},previousEarnedUsd:((M=j.data)==null?void 0:M.earnedUsd)!=null?Number(j.data.earnedUsd):null,isLoading:U.isLoading||L.isLoading||p.isLoading||y.isLoading,error:U.error??p.error??null}}const Vr=c.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 he({kind:t,className:n}){const s=t==="mana"?i("currency.polygonMana"):i("currency.credits");return e.jsx(Tt,{content:s,children:e.jsx(Vr,{className:n,"aria-label":s,role:"img","data-kind":t,children:t==="mana"?e.jsx("img",{src:nr,alt:"","aria-hidden":!0}):e.jsx(Is,{className:"ccy-mark"})})})}const Qr=c.div`
14
+ display: flex;
15
+ flex-direction: column;
16
+ gap: 12px;
17
+ min-width: 0;
18
+ `,Xr=c.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
+ `,Gn=c.span`
26
+ display: inline-flex;
27
+ align-items: center;
28
+ gap: 8px;
29
+ `,Vn=c.span`
30
+ width: 16px;
31
+ height: 2px;
32
+ border-radius: 1px;
33
+ `,Zr=c.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
+ `,Jr=c.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
+ `,Qn=c.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
+ `,Xn=c.span`
90
+ width: 12px;
91
+ height: 2px;
92
+ border-radius: 1px;
93
+ `,ea=c.div`
94
+ position: absolute;
95
+ width: 1px;
96
+ height: 1px;
97
+ overflow: hidden;
98
+ clip-path: inset(50%);
99
+ white-space: nowrap;
100
+ `,Gt=240,ae={top:12,right:12,bottom:28,left:48};function ta(t,n,s=4){if(t<=0)return[0,1];const l=t/s,a=10**Math.floor(Math.log10(l)),d=[1,2,5,10].map(x=>x*a).find(x=>x>=l)??l,h=n?Math.max(1,d):d,p=Math.ceil(t/h)*h,y=[];for(let x=0;x<=p+h/2;x+=h)y.push(Number(x.toFixed(6)));return y}function na({current:t,comparison:n,formatValue:s,formatStart:l,formatTick:a,wholeValues:d,ariaLabel:h,roleDescription:p,dateLabel:y}){const x=u.useRef(null),[z,f]=u.useState(640),[j,C]=u.useState(null),U=u.useId();u.useEffect(()=>{const v=x.current;if(!v||typeof ResizeObserver>"u")return;const N=new ResizeObserver(ce=>{var re;const ee=Math.round(((re=ce[0])==null?void 0:re.contentRect.width)??0);ee>0&&f(ee)});return N.observe(v),()=>N.disconnect()},[]);const L=t.values.length,I=j!=null&&j<L?j:null,_=Math.max(1,z-ae.left-ae.right),E=Gt-ae.top-ae.bottom,B=Math.max(0,...t.values,...(n==null?void 0:n.values)??[]),g=u.useMemo(()=>ta(B,!!d),[B,d]),F=g[g.length-1]||1,R=v=>ae.left+(L>1?v/(L-1)*_:_/2),W=v=>ae.top+E-v/F*E,le=v=>v.slice(0,L).map((N,ce)=>`${ce===0?"M":"L"}${R(ce).toFixed(1)} ${W(N).toFixed(1)}`).join(" "),w=le(t.values),M=L>0?`${w} L${R(L-1).toFixed(1)} ${W(0)} L${R(0).toFixed(1)} ${W(0)} Z`:"",k=Math.max(1,Math.ceil(L/Math.max(2,Math.floor(_/110)))),$=[];for(let v=0;v<L;v+=k)$.push(v);L>0&&$[$.length-1]!==L-1&&($.length>1&&L-1-$[$.length-1]<k*.6&&$.pop(),$.push(L-1));const P=$.map(v=>({i:v,start:t.starts[v]}));function T(v){var ee;const N=(ee=x.current)==null?void 0:ee.getBoundingClientRect();if(!N||L===0)return 0;const ce=(v-N.left-ae.left)/_;return Math.min(L-1,Math.max(0,Math.round(ce*(L-1))))}function H(v){C(T(v.clientX))}function V(v){if(v.key!=="ArrowLeft"&&v.key!=="ArrowRight")return;v.preventDefault();const N=j??(v.key==="ArrowLeft"?L:-1);C(Math.min(L-1,Math.max(0,N+(v.key==="ArrowRight"?1:-1))))}const Q=I!=null?Math.min(Math.max(R(I),96),z-96):0;return e.jsxs(Qr,{children:[e.jsxs(Xr,{"aria-hidden":!0,children:[e.jsxs(Gn,{children:[e.jsx(Vn,{style:{background:o.colors.dclRed}}),t.label]}),n?e.jsxs(Gn,{children:[e.jsx(Vn,{style:{background:o.colors.chartCompare}}),n.label]}):null]}),e.jsxs(Zr,{ref:x,tabIndex:0,role:"group","aria-roledescription":p,"aria-label":h,onPointerMove:H,onPointerDown:H,onPointerLeave:v=>{v.pointerType==="mouse"&&C(null)},onKeyDown:V,onBlur:()=>C(null),"data-testid":"store-chart",children:[e.jsxs("svg",{width:z,height:Gt,"aria-hidden":!0,children:[e.jsx("defs",{children:e.jsxs("linearGradient",{id:U,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"})]})}),g.map(v=>e.jsxs("g",{children:[e.jsx("line",{x1:ae.left,x2:z-ae.right,y1:W(v),y2:W(v),stroke:o.colors.cardLine}),e.jsx("text",{x:ae.left-8,y:W(v),dy:"0.32em",textAnchor:"end",className:"tick",children:s(v)})]},v)),P.map(({i:v,start:N})=>e.jsx("text",{x:R(v),y:Gt-8,textAnchor:v===0?"start":v===L-1?"end":"middle",className:"tick",children:(a??l)(N)},N)),n?e.jsx("path",{d:le(n.values),fill:"none",stroke:o.colors.chartCompare,strokeWidth:"2",strokeLinejoin:"round",strokeLinecap:"round"}):null,e.jsx("path",{d:M,fill:`url(#${U})`}),e.jsx("path",{d:w,fill:"none",stroke:o.colors.dclRed,strokeWidth:"2",strokeLinejoin:"round",strokeLinecap:"round"}),I!=null?e.jsxs("g",{children:[e.jsx("line",{x1:R(I),x2:R(I),y1:ae.top,y2:ae.top+E,stroke:o.colors.softWhite,strokeOpacity:"0.5"}),n&&n.values[I]!=null?e.jsx("circle",{cx:R(I),cy:W(n.values[I]),r:"4",fill:o.colors.chartCompare,className:"dot"}):null,e.jsx("circle",{cx:R(I),cy:W(t.values[I]??0),r:"4",fill:o.colors.dclRed,className:"dot"})]}):null]}),I!=null?e.jsxs(Jr,{style:{left:Q},"data-testid":"store-chart-tip",children:[e.jsxs(Qn,{children:[e.jsx(Xn,{style:{background:o.colors.dclRed}}),e.jsx("b",{children:s(t.values[I]??0)}),e.jsx("span",{children:l(t.starts[I])})]}),n&&n.starts[I]!=null?e.jsxs(Qn,{children:[e.jsx(Xn,{style:{background:o.colors.chartCompare}}),e.jsx("b",{children:s(n.values[I]??0)}),e.jsx("span",{children:l(n.starts[I])})]}):null]}):null]}),e.jsx(ea,{children:e.jsxs("table",{children:[e.jsx("caption",{children:h}),e.jsx("thead",{children:e.jsxs("tr",{children:[e.jsx("th",{scope:"col",children:y}),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((v,N)=>e.jsxs("tr",{children:[e.jsx("th",{scope:"row",children:l(v)}),e.jsx("td",{children:s(t.values[N]??0)}),n?e.jsx("td",{children:s(n.values[N]??0)}):null]},v))})]})})]})}const oa=c.div`
101
+ display: flex;
102
+ flex-wrap: wrap;
103
+ align-items: flex-start;
104
+ justify-content: space-between;
105
+ gap: 12px 16px;
106
+ `,sa=c.div`
107
+ display: flex;
108
+ flex-wrap: wrap;
109
+ align-items: center;
110
+ justify-content: flex-end;
111
+ gap: 8px;
112
+
113
+ ${o.media.maxWidth("mobile")} {
114
+ justify-content: flex-start;
115
+ }
116
+ `,ra=c.div`
117
+ display: flex;
118
+ gap: 4px;
119
+ padding: 4px;
120
+ border-radius: ${o.radius.pill};
121
+ background: rgba(0, 0, 0, 0.22);
122
+ `,aa=c.button`
123
+ border: 0;
124
+ cursor: pointer;
125
+ min-height: 32px;
126
+ padding: 6px 14px;
127
+ border-radius: ${o.radius.pill};
128
+ font-family: ${o.font.sans};
129
+ font-size: 12px;
130
+ font-weight: 600;
131
+ color: rgba(252, 252, 252, 0.62);
132
+ background: transparent;
133
+
134
+ &:hover {
135
+ color: ${o.colors.softWhite};
136
+ }
137
+ &[aria-pressed='true'] {
138
+ background: ${o.colors.softWhite};
139
+ color: ${o.colors.text};
140
+ }
141
+ &:focus-visible {
142
+ outline: 2px solid ${o.colors.softWhite};
143
+ outline-offset: 2px;
144
+ }
145
+ `,Vt=c(Eo)`
146
+ > button {
147
+ gap: 16px;
148
+ height: 40px;
149
+ padding: 4px 4px 4px 12px;
150
+ background: transparent;
151
+ border: 0.5px solid ${o.colors.white};
152
+ border-radius: ${o.radius.btn};
153
+ color: ${o.colors.white};
154
+ font-size: 12px;
155
+ font-weight: 500;
156
+ text-transform: uppercase;
157
+ letter-spacing: 0;
158
+ }
159
+ > button:hover {
160
+ border-color: ${o.colors.softWhite};
161
+ background: ${o.colors.glassFaint};
162
+ }
163
+ > button .ico {
164
+ color: ${o.colors.softWhite} !important;
165
+ }
166
+ `,ia=c.div`
167
+ display: flex;
168
+ flex-wrap: wrap;
169
+ gap: 24px;
170
+ font-family: ${o.font.sans};
171
+ `,Zn=c.div`
172
+ display: flex;
173
+ flex-direction: column;
174
+ gap: 2px;
175
+
176
+ b {
177
+ font-size: 22px;
178
+ font-weight: 700;
179
+ color: ${o.colors.white};
180
+ }
181
+ span {
182
+ font-size: 12px;
183
+ color: ${o.colors.gray4};
184
+ }
185
+ small {
186
+ font-size: 13px;
187
+ font-weight: 600;
188
+ }
189
+ /* The tiles' own delta colours, so a rise reads the same wherever it is shown. */
190
+ small[data-dir='up'] {
191
+ color: ${o.colors.successBorder};
192
+ }
193
+ small[data-dir='down'] {
194
+ color: #ff6b6b;
195
+ }
196
+ `,gt=c.p`
197
+ margin: 0;
198
+ font-family: ${o.font.sans};
199
+ font-size: 12px;
200
+ color: ${o.colors.gray4};
201
+ `,la=c.div`
202
+ transition: opacity 0.15s ease;
203
+
204
+ &[data-fetching] {
205
+ opacity: 0.55;
206
+ }
207
+
208
+ @media (prefers-reduced-motion: reduce) {
209
+ transition: none;
210
+ }
211
+ `,ca=864e5;function Jn(t){return Number(t/10n**14n)/1e4}function eo(t,n,s){return t.filter(l=>(n==="all"||l.contractAddress.toLowerCase()===n)&&(s==="all"||l.itemId===s))}function da(t){return t>=10?Math.round(t).toLocaleString(ye()):t.toFixed(2)}const to=new Map;function Bo(t){const n=ye(),s=`${n}|${JSON.stringify(t)}`;let l=to.get(s);return l||(l=new Intl.DateTimeFormat(n,t),to.set(s,l)),l}function no(t,n,s){const l=n==="month"?{month:"short",year:"numeric"}:{month:"short",day:"numeric"};return s&&n!=="month"&&(l.year="numeric"),Bo(l).format(t)}function Qt(t,n){const s=Bo({month:"short",day:"numeric",year:"numeric"});return`${s.format(t)} – ${s.format(n)}`}function ha({address:t,range:n,rows:s,truncated:l,fetching:a,collections:d,onTrack:h,comparisonRows:p,currency:y,rateBook:x,heading:z}){var We;const[f,j]=u.useState("sales"),[C,U]=u.useState("previous"),[L,I]=u.useState("all"),[_,E]=u.useState("all"),B=L!=="all"?d.find(S=>S.contractAddress.toLowerCase()===L):d.length===1?d[0]:void 0,g=B?B.contractAddress.toLowerCase():"all",F=n.from==null?"none":C,R=u.useMemo(()=>{if(n.from!=null)return n.from;const S=s.reduce((ne,pe)=>Math.min(ne,pe.timestamp),n.to);return Math.min(S,n.to-29*ca)},[n,s]),W=Fo(n,F),le=J({queryKey:["store-sales-compare",t,(W==null?void 0:W.from)??null,(W==null?void 0:W.to)??null],enabled:!!t&&!!W&&!p,placeholderData:S=>S,queryFn:()=>Ro({seller:t,from:W.from,to:W.to})}),M=u.useMemo(()=>p?{data:{rows:p,truncated:!1},isFetching:!1}:null,[p])??le,k=qr(R,n.to),$=u.useMemo(()=>{const S=Kn(R,n.to,k);return Yn(eo(s,g,_),S,n.to,x)},[s,R,n.to,k,g,_,x]),P=W==null?void 0:W.from,T=W==null?void 0:W.to,H=u.useMemo(()=>{if(P==null||T==null||!M.data)return null;const S=Kn(P,T,k).slice(0,$.length);return Yn(eo(M.data.rows,g,_),S,T,x)},[P,T,M.data,k,$.length,g,_,x]),V=y==="usd",Q=S=>f==="sales"?S.sales:V?S.earnedUsd:Jn(S.earnedWei),v=S=>f==="sales"?S.reduce((ne,pe)=>ne+pe.sales,0):V?S.reduce((ne,pe)=>ne+pe.earnedUsd,0):Jn(S.reduce((ne,pe)=>ne+pe.earnedWei,0n)),N=S=>f==="sales"?Math.round(S).toLocaleString(ye()):V?`$${Number.isInteger(S)?S.toLocaleString(ye()):Oo(S,ye())}`:da(S),ce=f==="earnings"&&V?[...$,...H??[]].reduce((S,ne)=>S+ne.unpriced,0):0,ee=v($),re=H?v(H):null,de=re!=null&&re>0?Math.round((ee-re)/re*100):null,Ft=l||!!((We=M.data)!=null&&We.truncated),Le=$.some(S=>S.sales>0)||((H==null?void 0:H.some(S=>S.sales>0))??!1),st=[{value:"previous",label:i("myStore.chart.comparePrevious")},{value:"year",label:i("myStore.chart.compareYear")},{value:"none",label:i("myStore.chart.compareNone")}],fe=[{value:"all",label:i("myStore.chart.allCollections")},...d.map(S=>({value:S.contractAddress.toLowerCase(),label:S.name}))];return e.jsxs(e.Fragment,{children:[e.jsxs(oa,{children:[z,e.jsxs(sa,{children:[e.jsx(ra,{role:"group","aria-label":i("myStore.chart.metric"),children:["sales","earnings"].map(S=>e.jsx(aa,{type:"button","aria-pressed":f===S,onClick:()=>{h("Shop Changed Store Chart",{control:"metric",value:S}),j(S)},"data-testid":`store-chart-metric-${S}`,children:i(`myStore.chart.${S}`)},S))}),n.from!=null?e.jsx(Vt,{options:st,value:F,onChange:S=>{h("Shop Changed Store Chart",{control:"compare",value:S}),U(S)},ariaLabel:i("myStore.chart.compare"),className:"store-chart-compare"}):null,d.length>1?e.jsx(Vt,{options:fe,value:L,onChange:S=>{h("Shop Changed Store Chart",{control:"collection",value:S==="all"?"all":"one"}),I(S),E("all")},ariaLabel:i("myStore.chart.collection"),className:"store-chart-collection"}):null,B&&B.items.length>1?e.jsx(Vt,{options:[{value:"all",label:i("myStore.chart.allItems")},...B.items.map(S=>({value:S.itemId,label:S.name}))],value:_,onChange:S=>{h("Shop Changed Store Chart",{control:"item",value:S==="all"?"all":"one"}),E(S)},ariaLabel:i("myStore.chart.item"),className:"store-chart-item"}):null]})]}),e.jsxs(ia,{children:[e.jsxs(Zn,{"data-testid":"store-chart-total",children:[e.jsxs("b",{children:[f==="earnings"&&!V?e.jsx(he,{kind:"mana"}):null,N(ee)]}),e.jsx("span",{children:Qt(R,n.to)})]}),H&&W?e.jsxs(Zn,{"data-testid":"store-chart-previous",children:[e.jsxs("b",{children:[f==="earnings"&&!V?e.jsx(he,{kind:"mana"}):null,N(re??0),de!=null?e.jsxs("small",{"data-dir":de>=0?"up":"down",children:[" ",i("myStore.chart.change",{pct:`${de>0?"+":""}${de}`})]}):null]}),e.jsx("span",{children:Qt(W.from,W.to)})]}):null]}),e.jsx(la,{"data-fetching":a||M.isFetching?"":void 0,children:Le?e.jsx(na,{current:{label:i("myStore.chart.thisPeriod"),values:$.map(Q),starts:$.map(S=>S.start)},comparison:H?{label:F==="year"?i("myStore.chart.lastYear"):i("myStore.chart.previousPeriod"),values:H.map(Q),starts:H.map(S=>S.start)}:null,formatValue:N,formatStart:S=>no(S,k,F==="year"),formatTick:S=>no(S,k,!1),wholeValues:f==="sales",ariaLabel:i(f==="sales"?"myStore.chart.ariaSales":"myStore.chart.ariaEarnings",{span:Qt(R,n.to)}),dateLabel:i("myStore.chart.date"),roleDescription:i("myStore.chart.roleDescription")}):e.jsx(gt,{"data-testid":"store-chart-empty",children:i("myStore.chart.empty")})}),Ft?e.jsx(gt,{children:i("myStore.chart.partial")}):null,ce>0&&!a?e.jsx(gt,{children:i("myStore.chart.unpriced",{count:ce})}):null,k!=="day"?e.jsx(gt,{children:i(k==="week"?"myStore.chart.byWeek":"myStore.chart.byMonth")}):null]})}const pa=c.button`
212
+ display: inline-flex;
213
+ align-items: center;
214
+ gap: 4px;
215
+ max-width: 100%;
216
+ padding: 0;
217
+ white-space: normal;
218
+ text-align: inherit;
219
+ border: 0;
220
+ background: none;
221
+ color: inherit;
222
+ font: inherit;
223
+ letter-spacing: inherit;
224
+ text-transform: inherit;
225
+ cursor: pointer;
226
+
227
+ &[data-align='right'] {
228
+ flex-direction: row-reverse;
229
+ }
230
+
231
+ &:focus-visible {
232
+ outline: 2px solid currentColor;
233
+ outline-offset: 2px;
234
+ border-radius: 4px;
235
+ }
236
+
237
+ [data-testid='sort-header-chevron'] {
238
+ flex: none;
239
+ opacity: 0.35;
240
+ transition: opacity 0.15s;
241
+ }
242
+
243
+ &[data-dir] [data-testid='sort-header-chevron'],
244
+ &:hover [data-testid='sort-header-chevron'] {
245
+ opacity: 1;
246
+ }
247
+ `;function Me({label:t,dir:n,onSort:s,align:l="left",testId:a}){return e.jsxs(pa,{type:"button",onClick:s,"data-dir":n,"data-align":l,"data-testid":a,"aria-label":typeof t=="string"?i(n==="asc"?"common.sortedAsc":n==="desc"?"common.sortedDesc":"common.sortColumn",{column:t}):void 0,children:[t,e.jsx(or,{up:n==="asc",size:12,"aria-hidden":!0,"data-testid":"sort-header-chevron"})]})}const yt=c.div`
248
+ display: flex;
249
+ flex-direction: column;
250
+ gap: 8px;
251
+ `,bt=c.span`
252
+ font-family: ${o.font.sans};
253
+ font-size: 13px;
254
+ font-weight: 600;
255
+ color: ${o.colors.text};
256
+ `,oo=c.div`
257
+ display: flex;
258
+ flex-wrap: wrap;
259
+ gap: 8px;
260
+ `,so=c.button`
261
+ min-height: 40px;
262
+ padding: 0 14px;
263
+ border-radius: ${o.radius.pill};
264
+ border: 1px solid rgba(22, 21, 24, 0.16);
265
+ background: ${o.colors.white};
266
+ color: ${o.colors.text};
267
+ font-family: ${o.font.sans};
268
+ font-size: 13px;
269
+ font-weight: 600;
270
+ cursor: pointer;
271
+
272
+ &[aria-pressed='true'] {
273
+ border-color: ${o.colors.accent};
274
+ background: ${o.colors.accent};
275
+ color: ${o.colors.white};
276
+ }
277
+ &:disabled {
278
+ opacity: 0.45;
279
+ cursor: not-allowed;
280
+ }
281
+ &:focus-visible {
282
+ outline: 2px solid ${o.colors.accent};
283
+ outline-offset: 2px;
284
+ }
285
+ `,ua=c.div`
286
+ display: flex;
287
+ flex-direction: column;
288
+ gap: 6px;
289
+ max-height: 208px;
290
+ overflow-y: auto;
291
+ `,ma=c.button`
292
+ display: flex;
293
+ align-items: center;
294
+ gap: 10px;
295
+ width: 100%;
296
+ min-height: 48px;
297
+ padding: 6px 10px;
298
+ border: 1px solid rgba(22, 21, 24, 0.12);
299
+ border-radius: 10px;
300
+ background: ${o.colors.white};
301
+ text-align: left;
302
+ cursor: pointer;
303
+ font-family: ${o.font.sans};
304
+ color: ${o.colors.text};
305
+
306
+ &[aria-pressed='true'] {
307
+ border-color: ${o.colors.accent};
308
+ box-shadow: inset 0 0 0 1px ${o.colors.accent};
309
+ }
310
+ &:disabled {
311
+ opacity: 0.45;
312
+ cursor: not-allowed;
313
+ }
314
+ &:focus-visible {
315
+ outline: 2px solid ${o.colors.accent};
316
+ outline-offset: 2px;
317
+ }
318
+
319
+ img {
320
+ width: 36px;
321
+ height: 36px;
322
+ border-radius: 6px;
323
+ object-fit: cover;
324
+ flex: none;
325
+ }
326
+ `,fa=c.span`
327
+ display: flex;
328
+ flex-direction: column;
329
+ min-width: 0;
330
+
331
+ b {
332
+ font-size: 13px;
333
+ font-weight: 600;
334
+ overflow: hidden;
335
+ text-overflow: ellipsis;
336
+ white-space: nowrap;
337
+ }
338
+ span {
339
+ font-size: 12px;
340
+ color: ${o.colors.muted};
341
+ }
342
+ `,xa=c.ol`
343
+ margin: 0;
344
+ padding: 0 0 0 20px;
345
+ max-height: 160px;
346
+ overflow-y: auto;
347
+ font-family: ${o.font.sans};
348
+ font-size: 13px;
349
+ color: ${o.colors.text};
350
+
351
+ li {
352
+ padding: 3px 0;
353
+ }
354
+ li span {
355
+ color: ${o.colors.muted};
356
+ }
357
+ /* The dashboard drives the MANA mark white for its dark panels, and this modal opens inside it on white. */
358
+ [data-kind='mana'] img {
359
+ filter: none;
360
+ }
361
+ `;function ga(t){let n;try{n=Number(BigInt(t)/10n**14n)/1e4}catch{return"0"}return n>=10?Math.round(n).toLocaleString():n.toFixed(2)}const ya=[5,10,25,ar],ba=["nfts","spent","recent"];function wa({creator:t,ownerCount:n,items:s,loadOwners:l,onContinue:a,onClose:d,onTrack:h}){const p=[...new Set(ya.map(g=>Math.min(g,n)))],[y,x]=u.useState(()=>Math.min(10,n)),[z,f]=u.useState("nfts"),[j,C]=u.useState(()=>s.find(g=>g.left>=Math.min(10,n))??null),U=u.useRef(null);u.useEffect(()=>{var F;(F=U.current)==null||F.focus();function g(R){R.key==="Escape"&&d()}return window.addEventListener("keydown",g),()=>window.removeEventListener("keydown",g)},[d]);const L=J({queryKey:["reward-recipients",t.toLowerCase(),y,z],queryFn:async()=>(await l(y,z)).filter(g=>g.address.toLowerCase()!==t.toLowerCase()),placeholderData:g=>g}),I=(L.data??[]).map(g=>g.address),_=J({queryKey:["reward-recipient-names",I],enabled:I.length>0,staleTime:5*6e4,queryFn:()=>_o(I)}),E=!!j&&j.left>=I.length,B=!!j&&E&&I.length>0&&!L.isFetching;return e.jsx(ir,{onClick:d,role:"presentation",children:e.jsxs(lr,{ref:U,tabIndex:-1,role:"dialog","aria-modal":"true","aria-label":i("reward.title"),onClick:g=>g.stopPropagation(),"data-testid":"reward-modal",children:[e.jsxs(cr,{children:[e.jsx(dr,{children:i("reward.title")}),e.jsx(hr,{onClick:d,"aria-label":i("sellModal.cancel"),children:e.jsx(te,{name:"close",className:"ico"})})]}),e.jsx(pr,{children:i("reward.subtitle")}),e.jsxs(yt,{children:[e.jsx(bt,{id:"reward-count",children:i("reward.howMany")}),e.jsx(oo,{role:"group","aria-labelledby":"reward-count",children:p.map(g=>e.jsx(so,{type:"button","aria-pressed":y===g,onClick:()=>x(g),"data-testid":`reward-count-${g}`,children:i("reward.topN",{count:g})},g))})]}),e.jsxs(yt,{children:[e.jsx(bt,{id:"reward-ranking",children:i("reward.rankedBy")}),e.jsx(oo,{role:"group","aria-labelledby":"reward-ranking",children:ba.map(g=>e.jsx(so,{type:"button","aria-pressed":z===g,onClick:()=>f(g),"data-testid":`reward-ranking-${g}`,children:i(`reward.ranking.${g}`)},g))})]}),e.jsxs(yt,{children:[e.jsx(bt,{id:"reward-item",children:i("reward.item")}),s.length===0?e.jsx(Bn,{children:i("reward.noItems")}):e.jsx(ua,{role:"group","aria-labelledby":"reward-item",children:s.map(g=>{const F=`${g.contractAddress}-${g.itemId}`;return e.jsxs(ma,{type:"button","aria-pressed":(j==null?void 0:j.contractAddress)===g.contractAddress&&j.itemId===g.itemId,disabled:g.left<y,onClick:()=>C(g),"data-testid":"reward-item",children:[g.thumbnail?e.jsx("img",{src:g.thumbnail,alt:"",loading:"lazy"}):null,e.jsxs(fa,{children:[e.jsx("b",{children:g.name}),e.jsx("span",{children:i("reward.itemLeft",{collection:g.collectionName,left:g.left})})]})]},F)})})]}),e.jsxs(yt,{children:[e.jsx(bt,{children:i("reward.recipients",{count:I.length})}),e.jsx(xa,{"data-testid":"reward-recipients",children:(L.data??[]).map(g=>{var R,W;const F=(W=(R=_.data)==null?void 0:R.get(g.address.toLowerCase()))==null?void 0:W.name;return e.jsxs("li",{children:[F?hn(F):To(g.address)," ",e.jsx("span",{children:z==="spent"?e.jsxs(e.Fragment,{children:["· ",e.jsx(he,{kind:"mana"}),ga(g.spentWei)]}):i("reward.heldLine",{count:g.nfts})})]},g.address)})})]}),j?e.jsx(Bn,{"data-testid":"reward-stock",children:E?i("reward.stock",{count:I.length,name:j.name,left:j.left}):i("reward.notEnough",{name:j.name,left:j.left})}):null,e.jsxs(ur,{children:[e.jsx(mr,{type:"button",onClick:d,children:i("sellModal.cancel")}),e.jsx(fr,{type:"button",disabled:!B,onClick:()=>{j&&(h("Shop Chose Store Reward",{recipients:I.length,ranking:z,contract_address:j.contractAddress}),a({item:j,recipients:I}))},"data-testid":"reward-continue",children:i("reward.continue")})]})]})})}const wt=380,St=220,ro="cubic-bezier(0.32, 0.72, 0, 1)",Sa="cubic-bezier(0.55, 0, 0.75, 0.2)",ao="0 0 0 0 rgba(0, 0, 0, 0)";function io(){return typeof window.matchMedia=="function"&&window.matchMedia("(prefers-reduced-motion: reduce)").matches}function lo(t,n){const s=n.getBoundingClientRect(),l=t.getBoundingClientRect(),a=Math.min(parseFloat(getComputedStyle(n).borderTopLeftRadius)||0,s.height/2);return{transform:`translateY(${s.top-l.top}px)`,clipPath:`inset(0px ${l.right-s.right}px ${l.height-s.height}px ${s.left-l.left}px round ${a}px)`}}function co(t){return{transform:"none",clipPath:`inset(0px round ${getComputedStyle(t).borderTopLeftRadius})`}}function ja(t,n){const s=u.useRef(!1),l=u.useRef([]),a=u.useRef(null);return u.useLayoutEffect(()=>{const d=t.current,h=document.querySelector(n);if(!d||!h||typeof d.animate!="function"||io())return;const p=getComputedStyle(d).boxShadow,y=d.animate([lo(d,h),co(d)],{duration:wt,easing:ro}),x=d.animate([{boxShadow:ao},{boxShadow:p}],{duration:200,delay:wt,easing:"ease-out",fill:"backwards"}),z=[...d.children].map((f,j)=>f.animate([{opacity:0,transform:"translateY(-6px)"},{opacity:1,transform:"none"}],{duration:wt*.6,delay:wt*.18+j*30,easing:ro,fill:"backwards"}));return l.current=[y,x,...z],()=>[y,x,...z].forEach(f=>f.cancel())},[t,n]),u.useLayoutEffect(()=>()=>{const d=a.current;d&&(d.onfinish=null,d.cancel())},[]),u.useCallback(d=>{const h=t.current,p=document.querySelector(n);if(s.current)return;if(!h||!p||typeof h.animate!="function"||io())return d();s.current=!0,h.style.pointerEvents="none";const y=getComputedStyle(h),x={transform:y.transform,clipPath:y.clipPath,boxShadow:y.boxShadow},z=[...h.children].map(j=>{const C=getComputedStyle(j);return{opacity:C.opacity,transform:C.transform}});l.current.forEach(j=>j.cancel()),x.clipPath==="none"&&(x.clipPath=co(h).clipPath),h.animate([{boxShadow:x.boxShadow},{boxShadow:ao}],{duration:St*.4,fill:"forwards"}),[...h.children].forEach((j,C)=>j.animate([z[C],{opacity:0,transform:"translateY(-4px)"}],{duration:St*.45,easing:"ease-in",fill:"forwards"}));const f=h.animate([{transform:x.transform,clipPath:x.clipPath},lo(h,p)],{duration:St,delay:St*.15,easing:Sa,fill:"both"});a.current=f,f.onfinish=d},[t,n])}const ka=c.div`
362
+ position: absolute;
363
+ top: calc(100% + 8px);
364
+ right: 0;
365
+ z-index: 1;
366
+ display: flex;
367
+ flex-direction: column;
368
+ max-width: calc(100vw - 32px);
369
+ background: ${o.colors.white};
370
+ border-radius: 12px;
371
+ box-shadow: 0 12px 32px rgba(22, 21, 24, 0.24);
372
+ overflow: hidden;
373
+
374
+ ${Ys}
375
+
376
+ .react-datepicker {
377
+ border: 0;
378
+ box-shadow: none;
379
+ border-radius: 0;
380
+ display: flex;
381
+ justify-content: center;
382
+ }
383
+ .react-datepicker__month-container + .react-datepicker__month-container {
384
+ border-left: 1px solid rgba(22, 21, 24, 0.1);
385
+ }
386
+ .react-datepicker__day {
387
+ width: 2rem;
388
+ line-height: 2rem;
389
+ margin: 0.1rem 0;
390
+ border-radius: 0;
391
+ }
392
+ .react-datepicker__day--in-range,
393
+ .react-datepicker__day--in-selecting-range {
394
+ background: rgba(105, 31, 169, 0.12);
395
+ color: ${o.colors.text};
396
+ }
397
+ .react-datepicker__day--range-start,
398
+ .react-datepicker__day--range-end,
399
+ .react-datepicker__day--selecting-range-start,
400
+ .react-datepicker__day--selected {
401
+ background: ${o.colors.accent};
402
+ color: ${o.colors.white};
403
+ }
404
+ .react-datepicker__day--range-start,
405
+ .react-datepicker__day--selecting-range-start {
406
+ border-radius: 8px 0 0 8px;
407
+ }
408
+ .react-datepicker__day--range-end {
409
+ border-radius: 0 8px 8px 0;
410
+ }
411
+ .react-datepicker__day--range-start.react-datepicker__day--range-end {
412
+ border-radius: 8px;
413
+ }
414
+ .react-datepicker__day--outside-month {
415
+ visibility: hidden;
416
+ }
417
+ `,$a=c.div`
418
+ display: flex;
419
+
420
+ ${o.media.maxWidth("sm")} {
421
+ flex-direction: column;
422
+ }
423
+ `,va=c.div`
424
+ display: flex;
425
+ flex-direction: column;
426
+ gap: 2px;
427
+ flex: none;
428
+ min-width: 132px;
429
+ padding: 10px 8px;
430
+ border-right: 1px solid rgba(22, 21, 24, 0.1);
431
+
432
+ ${o.media.maxWidth("sm")} {
433
+ flex-direction: row;
434
+ flex-wrap: wrap;
435
+ gap: 6px;
436
+ min-width: 0;
437
+ border-right: 0;
438
+ border-bottom: 1px solid rgba(22, 21, 24, 0.1);
439
+ }
440
+ `,Ca=c.button`
441
+ min-height: 36px;
442
+ padding: 0 12px;
443
+ border: 0;
444
+ border-radius: 8px;
445
+ background: transparent;
446
+ color: ${o.colors.accent};
447
+ font-family: ${o.font.sans};
448
+ font-size: 13px;
449
+ font-weight: 600;
450
+ text-align: left;
451
+ white-space: nowrap;
452
+ cursor: pointer;
453
+
454
+ &:hover {
455
+ background: rgba(105, 31, 169, 0.08);
456
+ }
457
+ &[aria-pressed='true'] {
458
+ background: ${o.colors.accent};
459
+ color: ${o.colors.white};
460
+ }
461
+ &:focus-visible {
462
+ outline: 2px solid ${o.colors.accent};
463
+ outline-offset: 2px;
464
+ }
465
+
466
+ ${o.media.maxWidth("sm")} {
467
+ border: 1px solid rgba(105, 31, 169, 0.24);
468
+ border-radius: ${o.radius.pill};
469
+ }
470
+ `,Ma=c.div`
471
+ display: flex;
472
+ align-items: center;
473
+ justify-content: space-between;
474
+ gap: 12px;
475
+ padding: 10px 12px;
476
+ border-top: 1px solid rgba(22, 21, 24, 0.1);
477
+ font-family: ${o.font.sans};
478
+ font-size: 13px;
479
+ color: ${o.colors.text};
480
+
481
+ ${o.media.maxWidth("mobile")} {
482
+ font-size: 12px;
483
+ }
484
+ `,Aa=c.div`
485
+ display: flex;
486
+ gap: 8px;
487
+ `,ho=c.button`
488
+ min-height: 36px;
489
+ padding: 0 14px;
490
+ border-radius: ${o.radius.btn};
491
+ border: 1px solid rgba(22, 21, 24, 0.16);
492
+ background: ${o.colors.white};
493
+ color: ${o.colors.text};
494
+ font-family: ${o.font.sans};
495
+ font-size: 13px;
496
+ font-weight: 600;
497
+ cursor: pointer;
498
+
499
+ &[data-variant='primary'] {
500
+ border-color: ${o.colors.accent};
501
+ background: ${o.colors.accent};
502
+ color: ${o.colors.white};
503
+ }
504
+ &:disabled {
505
+ opacity: 0.45;
506
+ cursor: default;
507
+ }
508
+ &:focus-visible {
509
+ outline: 2px solid ${o.colors.accent};
510
+ outline-offset: 2px;
511
+ }
512
+ `,po=`(min-width: ${Ls.sm+1}px)`,Ia=new Date(2020,0,1);function La(){const[t,n]=u.useState(()=>{var s;return typeof window<"u"&&((s=window.matchMedia)==null?void 0:s.call(window,po).matches)});return u.useEffect(()=>{var a;const s=(a=window.matchMedia)==null?void 0:a.call(window,po);if(!s)return;const l=()=>n(s.matches);return s.addEventListener("change",l),()=>s.removeEventListener("change",l)},[]),!!t}function Wa(t,n){return n?new Date(t.getFullYear(),t.getMonth()-1,1):t}function Ta({from:t,to:n,max:s,presets:l,handle:a,onApply:d,onClose:h}){const[p,y]=u.useState(t!=null?new Date(t):null),[x,z]=u.useState(n!=null?new Date(n):null),f=u.useRef(null),j=La(),C=ja(f,"[data-range-trigger]"),U=u.useCallback(()=>C(h),[C,h]);u.useImperativeHandle(a,()=>({close:U}),[U]),u.useEffect(()=>{function _(B){var F,R;const g=B.target;(F=f.current)!=null&&F.contains(g)||(R=g.closest)!=null&&R.call(g,"[data-range-trigger]")||U()}function E(B){if(B.key==="Escape"&&U(),B.key!=="Tab"||!f.current)return;const g=[...f.current.querySelectorAll('button:not([disabled]), [tabindex="0"]')];if(g.length===0)return;const F=g[0],R=g[g.length-1];B.shiftKey&&document.activeElement===F?(B.preventDefault(),R.focus()):!B.shiftKey&&document.activeElement===R&&(B.preventDefault(),F.focus())}return document.addEventListener("pointerdown",_),document.addEventListener("keydown",E),()=>{document.removeEventListener("pointerdown",_),document.removeEventListener("keydown",E)}},[U]),u.useEffect(()=>{var g;const _=f.current,E=document.activeElement;return(g=(_==null?void 0:_.querySelector('.react-datepicker__day[tabindex="0"]'))??_)==null||g.focus(),()=>{var W;const F=document.activeElement;if(F&&F!==document.body&&!(_!=null&&_.contains(F)))return;const R=document.querySelector("[data-range-trigger]");(W=E!=null&&E.isConnected&&E.matches("[data-range-trigger]")?E:R)==null||W.focus()}},[]);const L=new Intl.DateTimeFormat(ye(),{month:"short",day:"numeric",year:"numeric"}),I=p?x?`${L.format(p)} – ${L.format(x)}`:i("myStore.rangePickEnd",{from:L.format(p)}):i("myStore.rangePickStart");return e.jsxs(ka,{ref:f,role:"dialog","aria-modal":"true","aria-label":i("myStore.period"),tabIndex:-1,"data-testid":"store-range-picker",children:[e.jsxs($a,{children:[l!=null&&l.length?e.jsx(va,{role:"group","aria-label":i("myStore.period"),children:l.map(_=>e.jsx(Ca,{type:"button","aria-pressed":_.active,onClick:()=>C(_.onPick),"data-testid":`store-period-${_.key}`,children:_.label},_.key))}):null,e.jsx(Gs,{inline:!0,selectsRange:!0,startDate:p,endDate:x,onChange:([_,E])=>{y(_),z(E)},maxDate:new Date(s),minDate:Ia,monthsShown:j?2:1,openToDate:Wa(x??p??new Date(s),j),calendarStartDay:1})]}),e.jsxs(Ma,{children:[e.jsx("span",{"data-testid":"store-range-summary",children:I}),e.jsxs(Aa,{children:[e.jsx(ho,{type:"button",onClick:U,children:i("myStore.rangeCancel")}),e.jsx(ho,{type:"button","data-variant":"primary",disabled:!p||!x,onClick:()=>p&&x&&C(()=>d(p.getTime(),x.getTime())),"data-testid":"store-range-apply",children:i("myStore.rangeApply")})]})]})]})}function jt(t,n,s){return(t==null?void 0:t.key)===n?{key:n,dir:t.dir==="asc"?"desc":"asc"}:{key:n,dir:s}}function Je(t,n,s){const l=s==="asc"?1:-1;return t.map((a,d)=>({row:a,index:d,v:n(a)})).sort((a,d)=>{const h=a.v==null,p=d.v==null;return h||p?h===p?a.index-d.index:h?1:-1:l*_a(a.v,d.v)||a.index-d.index}).map(a=>a.row)}function _a(t,n){return typeof t=="string"&&typeof n=="string"?t.localeCompare(n,void 0,{sensitivity:"base"}):t===n?0:t<n?-1:1}const Pa=7;function Ea(t,n){if(n<=Pa)return Array.from({length:n},(a,d)=>d);const s=n-1,l=Math.min(Math.max(0,t),s);return l<=3?[0,1,2,3,4,"gap",s]:l>=s-3?[0,"gap",s-4,s-3,s-2,s-1,s]:[0,"gap",l-1,l,l+1,"gap",s]}class Rt extends Error{constructor(){super("fetchTopOwners 503"),this.name="TopOwnersUnavailableError"}}class Uo extends Error{constructor(n){super(`fetchTopOwners ${n}`),this.status=n,this.name="TopOwnersReadError"}}async function uo(t,{sortBy:n,orderDirection:s,first:l,skip:a}){var y;const d=new URLSearchParams({creator:t,first:String(l),skip:String(a)});n&&d.set("sortBy",n),s&&d.set("orderDirection",s);const h=await fetch(`${me.marketplaceServerUrl}/v1/owners/top?${d.toString()}`);if(!h.ok)throw await((y=h.body)==null?void 0:y.cancel()),h.status===503?new Rt:new Uo(h.status);const p=await h.json();return{data:p.data??[],total:p.total??0}}const be=864e5,mn=.093,ie=Date.now(),Ra=(t,n,s,l,a)=>({key:`0xmock${t}-${t}`,itemId:String(t),name:n,thumbnail:"",rarity:["epic","legendary","rare","mythic","unique"][t%5],left:l-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*be,state:a}),Da=[[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]],za=[{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 Oa(t,n){const s=t.items.map(([a,d,h,p],y)=>Ra(n*10+y,a,d,h,p)),l=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,earningsUsd:t.earnings*mn,createdAt:ie-n*30*be,trend:Da[t.trend],claimed:l,runTotal:s.reduce((a,d)=>a+d.minted+d.left,0),exhausted:s.length>0&&s.every(a=>a.state==="soldout")}}const fn=(()=>{const t=za.map(Oa);return{collections:t,sold:211,mints:198,resales:13,earningsWei:3070n*10n**18n,earningsUsd:3070*mn,unpricedSales:0,partial:!1,breakdownPartial:!1,fetched:211,unattributed:6,trendDays:30,unknownCollections:1,royalties:{resales:41,volumeWei:2140n*10n**18n,paidWei:5350n*10n**16n},listed:t.reduce((n,s)=>n+s.listed,0),neverListed:t.reduce((n,s)=>n+s.items.filter(l=>l.state==="unlisted").length,0),classic:t.reduce((n,s)=>n+s.classic,0),soldOut:t.reduce((n,s)=>n+s.soldOut,0)}})(),Fa={total:74,repeat:29,repeatPct:39.19,topSharePct:21.3},Na=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})),Ba=Array.from({length:23},(t,n)=>({address:`0x${(n+7).toString(16).padStart(2,"0").repeat(20)}`,nfts:Math.max(1,31-n*2+n%3),items:Math.max(1,12-n),collections:Math.max(1,6-Math.floor(n/3)),lastAcquiredAt:ie-n*7%23*be-n*36e5,spentWei:String(BigInt(n===5?2400:1200-n*45)*10n**18n)}));function mo(t,n,s){const l=h=>t.key==="items"?h.items:t.key==="collections"?h.collections:t.key==="recent"?h.lastAcquiredAt:t.key==="spent"?Number(BigInt(h.spentWei)/10n**18n):h.nfts,a=t.dir==="asc"?1:-1,d=[...Ba].sort((h,p)=>a*(l(h)-l(p))||p.nfts-h.nfts);return{data:d.slice(n*s,(n+1)*s),total:d.length}}const fo=(t,n,s,l,a,d)=>({id:`mock-coupon-${t}`,signer:"0xmockcreator0000000000000000000000000001",chainId:137,network:"MATIC",checks:{uses:50,expiration:ie+a,effective:ie-l,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-l,state:{uses:d,cancelled:!1,revoked:!1,checkedAt:ie},status:"active"}),Ua=[fo(1,`0xmock${"0".repeat(36)}`,25,3*be,3*be,18),fo(2,`0xmock${"1".padStart(36,"0")}`,15,12*36e5,9*be,0)],qa=new Map(fn.collections.flatMap(t=>t.items.map((n,s)=>[n.key,[41,3,128,0,17,6,92,1][s%8]]))),tt=fn.collections.flatMap(t=>t.items.map(n=>[t.contractAddress,n])),Ha=tt.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})),xo=(()=>{const t=[];let n=7;const s=()=>(n=n*16807%2147483647,n/2147483647);for(let l=0;l<730;l++){const a=ie-l*be,d=new Date(a).getMonth(),h=d>=5&&d<=7?.4:d>=8&&d<=10?1.8:1,p=Math.round(s()*4*h);for(let y=0;y<p;y++){const[x,z]=tt[Math.floor(s()*tt.length)];t.push({id:`mock-chart-${l}-${y}`,itemId:z.itemId,contractAddress:x,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()*be),type:"mint",network:"MATIC",tokenId:null})}}return t})(),Ka=(()=>{const t=new Map;for(let n=0;n<740;n++){const s=ie-n*be;t.set(new Date(s).toISOString().slice(0,10),mn*(1+.35*Math.sin(n/60)+n/1500))}return t})();function Ya(t,n){const s=Array.from({length:41},(a,d)=>{const[h,p]=tt[d*3%tt.length],y=BigInt(8+d*37%90)*10n**18n;return{id:`mock-royalty-${d}`,timestamp:ie-d*17*36e5-24e5,contractAddress:h,itemId:p.itemId,tokenId:String(100+d),priceWei:String(y),royaltyWei:String(y*25n/1000n),collector:"0xmockcreator0000000000000000000000000001",buyer:`0x${(d+20).toString(16).padStart(2,"0").repeat(20)}`,seller:`0x${(d+60).toString(16).padStart(2,"0").repeat(20)}`}}),l=s.reduce((a,d)=>a+BigInt(d.royaltyWei),0n);return{data:s.slice(t*n,(t+1)*n),total:s.length,royaltiesWei:String(l)}}const Ga=c.div`
513
+ display: flex;
514
+ flex-direction: column;
515
+ gap: 22px;
516
+
517
+ /* The credits mark is pinned near-black globally (Icon.css) so a coloured total never tints it. Every
518
+ surface on this page is dark, so the whole page opts out once rather than each panel in turn. */
519
+ .ccy-mark,
520
+ .ccy {
521
+ color: ${o.colors.softWhite};
522
+ }
523
+
524
+ /* MANA's mark is an image, not a masked glyph, so no colour reaches it: the token's own artwork is dark
525
+ and vanished into every panel on this page. Driven to white instead. */
526
+ [data-kind='mana'] img {
527
+ filter: brightness(0) invert(1);
528
+ }
529
+ `,Va=c.header`
530
+ display: flex;
531
+ align-items: flex-start;
532
+ justify-content: space-between;
533
+ gap: 20px;
534
+ flex-wrap: wrap;
535
+ /* The rule that closes the identity block off from the figures under it. */
536
+ padding-bottom: 24px;
537
+ border-bottom: 0.5px solid rgba(255, 255, 255, 0.3);
538
+ `,Qa=c.div`
539
+ display: flex;
540
+ align-items: center;
541
+ gap: 12px;
542
+ min-width: 0;
543
+ `,Xa=c.div`
544
+ display: flex;
545
+ flex-direction: column;
546
+ align-items: flex-start;
547
+ justify-content: center;
548
+ gap: 4px;
549
+ padding-bottom: 8px;
550
+ min-width: 0;
551
+ `,Za=c.span`
552
+ flex: none;
553
+ display: block;
554
+ width: 84px;
555
+ height: 84px;
556
+ border-radius: 50%;
557
+ background-color: rgba(0, 0, 0, 0.22);
558
+ background-size: cover;
559
+ background-position: center top;
560
+ border: 2px solid rgba(252, 252, 252, 0.22);
561
+
562
+ ${o.media.maxWidth("mobile")} {
563
+ width: 56px;
564
+ height: 56px;
565
+ }
566
+ `,Ja=c.p`
567
+ margin: 0;
568
+ font-family: ${o.font.sans};
569
+ font-size: 14px;
570
+ font-weight: 600;
571
+ line-height: 1.6;
572
+ color: ${o.colors.softWhite};
573
+ overflow: hidden;
574
+ text-overflow: ellipsis;
575
+ white-space: nowrap;
576
+ max-width: 100%;
577
+ `,ei=c.h1`
578
+ margin: 0;
579
+ font-family: ${o.font.sans};
580
+ font-size: 32px;
581
+ font-weight: 700;
582
+ line-height: 1.2;
583
+ letter-spacing: 0.46px;
584
+ color: ${o.colors.white};
585
+
586
+ ${o.media.maxWidth("mobile")} {
587
+ font-size: 26px;
588
+ }
589
+ `,ti=c.div`
590
+ display: flex;
591
+ flex-direction: column;
592
+ align-items: flex-start;
593
+ gap: 8px;
594
+ min-width: 0;
595
+ `,go=c.p`
596
+ margin: 0;
597
+ display: flex;
598
+ align-items: center;
599
+ gap: 12px;
600
+ font-family: ${o.font.sans};
601
+ font-size: 12px;
602
+ line-height: 1;
603
+ color: ${o.colors.softWhite};
604
+ `,ni=c.div`
605
+ display: flex;
606
+ align-items: center;
607
+ justify-content: flex-end;
608
+ flex-wrap: wrap;
609
+ gap: 12px;
610
+
611
+ /* Two uppercase buttons that cannot shrink below their labels. On a phone they fit side by side in
612
+ Inter with a few pixels to spare, and in any wider fallback font they did not: the second one ran
613
+ 15px off a 390px screen. Wrapping puts it on its own line instead. */
614
+ ${o.media.maxWidth("mobile")} {
615
+ justify-content: flex-start;
616
+ width: 100%;
617
+ }
618
+ `,oi=c.a`
619
+ display: inline-flex;
620
+ align-items: center;
621
+ justify-content: center;
622
+ gap: 8px;
623
+ height: 46px;
624
+ padding: 0 12px;
625
+ border-radius: ${o.radius.card};
626
+ color: ${o.colors.white};
627
+ font-family: ${o.font.sans};
628
+ font-size: 13px;
629
+ font-weight: 600;
630
+ line-height: 24px;
631
+ letter-spacing: 0.46px;
632
+ text-transform: uppercase;
633
+ text-decoration: underline;
634
+ white-space: nowrap;
635
+
636
+ &:hover {
637
+ color: ${o.colors.navViolet};
638
+ }
639
+ .ico {
640
+ width: 22px;
641
+ height: 22px;
642
+ }
643
+
644
+ ${o.media.maxWidth("mobile")} {
645
+ padding: 0 8px;
646
+ }
647
+ `,si=c(nt)`
648
+ display: inline-flex;
649
+ align-items: center;
650
+ justify-content: center;
651
+ gap: 8px;
652
+ height: 46px;
653
+ padding: 0 24px;
654
+ border-radius: ${o.radius.card};
655
+ background: ${o.colors.overlay};
656
+ color: ${o.colors.white};
657
+ font-family: ${o.font.sans};
658
+ font-size: 13px;
659
+ font-weight: 600;
660
+ line-height: 24px;
661
+ letter-spacing: 0.46px;
662
+ text-transform: uppercase;
663
+ text-decoration: none;
664
+ white-space: nowrap;
665
+ transition: background 0.15s ease;
666
+
667
+ &:hover {
668
+ background: ${o.colors.overlayHover};
669
+ }
670
+ &:focus-visible {
671
+ outline: 2px solid ${o.colors.softWhite};
672
+ outline-offset: 2px;
673
+ }
674
+ .ico {
675
+ width: 20px;
676
+ height: 20px;
677
+ }
678
+
679
+ ${o.media.maxWidth("mobile")} {
680
+ padding: 0 16px;
681
+ }
682
+ `,ri=c.span`
683
+ display: inline-flex;
684
+ align-items: center;
685
+ gap: 8px;
686
+ margin-left: 12px;
687
+ padding-left: 12px;
688
+ border-left: 1px solid rgba(255, 255, 255, 0.3);
689
+ `,ai=c.a`
690
+ display: inline-flex;
691
+ align-items: center;
692
+ justify-content: center;
693
+ color: ${o.colors.softWhite};
694
+ transition: color 0.15s ease;
695
+
696
+ &:hover {
697
+ color: ${o.colors.navViolet};
698
+ }
699
+ .ico {
700
+ width: 15px;
701
+ height: 15px;
702
+ }
703
+ `,ii=c.div`
704
+ display: flex;
705
+ align-items: center;
706
+ justify-content: space-between;
707
+ gap: 16px;
708
+ flex-wrap: wrap;
709
+
710
+ ${o.media.maxWidth("sm")} {
711
+ position: relative;
712
+ z-index: 1;
713
+ }
714
+ `,li=c.h2`
715
+ margin: 0;
716
+ font-family: ${o.font.sans};
717
+ font-size: 24px;
718
+ font-weight: 700;
719
+ line-height: 1.2;
720
+ color: ${o.colors.white};
721
+ `,ci=c.div`
722
+ display: flex;
723
+ align-items: center;
724
+ flex-wrap: wrap;
725
+ justify-content: flex-end;
726
+ gap: 8px;
727
+ max-width: 100%;
728
+ `,di=c.div`
729
+ display: flex;
730
+ flex: none;
731
+ gap: 4px;
732
+ padding: 4px;
733
+ border-radius: ${o.radius.pill};
734
+ background: rgba(0, 0, 0, 0.22);
735
+
736
+ button {
737
+ display: inline-flex;
738
+ align-items: center;
739
+ justify-content: center;
740
+ min-width: 40px;
741
+ }
742
+ /* The page drives the MANA mark white for its dark panels; on the selected, white pill it vanished. */
743
+ button[aria-pressed='true'] [data-kind='mana'] img {
744
+ filter: none;
745
+ }
746
+ `,yo=c.p`
747
+ margin: -12px 0 0;
748
+ font-family: ${o.font.sans};
749
+ font-size: 12px;
750
+ color: ${o.colors.gray4};
751
+ text-align: right;
752
+ `,hi=c.span`
753
+ margin-right: 1px;
754
+ opacity: 0.8;
755
+ `,pi=c.div`
756
+ /* Its own layer: the trigger and picker stack inside it, above the page and under the sticky nav. */
757
+ position: relative;
758
+ z-index: 1;
759
+ min-width: 0;
760
+ max-width: 100%;
761
+
762
+ /* On a phone the calendar spans the whole header rather than hanging off the trigger. */
763
+ ${o.media.maxWidth("sm")} {
764
+ position: static;
765
+
766
+ [data-testid='store-range-picker'] {
767
+ left: 0;
768
+ right: 0;
769
+ }
770
+ }
771
+ `,ui=c.button`
772
+ /* Above the picker, which slides out from behind it. */
773
+ position: relative;
774
+ z-index: 2;
775
+ display: inline-flex;
776
+ align-items: center;
777
+ gap: 8px;
778
+ min-height: 40px;
779
+ min-width: 0;
780
+ max-width: 100%;
781
+ padding: 0 14px;
782
+ border: 0;
783
+ border-radius: ${o.radius.pill};
784
+ background: rgba(0, 0, 0, 0.22);
785
+ color: ${o.colors.softWhite};
786
+ font-family: ${o.font.sans};
787
+ font-size: 13px;
788
+ font-weight: 600;
789
+ white-space: nowrap;
790
+ cursor: pointer;
791
+
792
+ span:not(.ico) {
793
+ min-width: 0;
794
+ overflow: hidden;
795
+ text-overflow: ellipsis;
796
+ }
797
+ .ico {
798
+ transition: transform 0.2s ease;
799
+ }
800
+ .ico[data-open] {
801
+ transform: rotate(180deg);
802
+ }
803
+ &:hover {
804
+ background: rgba(0, 0, 0, 0.32);
805
+ }
806
+ /* Opaque while open: the picker slides out from behind it, and a see-through trigger would show it there. */
807
+ &[aria-expanded='true'] {
808
+ background: ${o.colors.softWhite};
809
+ color: ${o.colors.text};
810
+ }
811
+ @media (prefers-reduced-motion: reduce) {
812
+ .ico {
813
+ transition: none;
814
+ }
815
+ }
816
+ &:focus-visible {
817
+ outline: 2px solid ${o.colors.softWhite};
818
+ outline-offset: 2px;
819
+ }
820
+ `,mi=c.button`
821
+ flex: none;
822
+ white-space: nowrap;
823
+ border: 0;
824
+ cursor: pointer;
825
+ font-family: ${o.font.sans};
826
+ padding: 7px 15px;
827
+ border-radius: ${o.radius.pill};
828
+ font-size: 13px;
829
+ font-weight: 600;
830
+ color: rgba(252, 252, 252, 0.62);
831
+ background: transparent;
832
+ transition:
833
+ color 0.15s ease,
834
+ background 0.15s ease;
835
+
836
+ &:hover {
837
+ color: ${o.colors.softWhite};
838
+ }
839
+ &[aria-pressed='true'] {
840
+ background: ${o.colors.softWhite};
841
+ color: ${o.colors.text};
842
+ }
843
+ &:focus-visible {
844
+ outline: 2px solid ${o.colors.softWhite};
845
+ outline-offset: 2px;
846
+ }
847
+
848
+ @media (prefers-reduced-motion: reduce) {
849
+ transition: none;
850
+ }
851
+ `,qo=c.section`
852
+ display: grid;
853
+ /* Five tiles when the store has resales to report, four when it does not — auto-fit rather than a fixed
854
+ count so neither case leaves a hole. */
855
+ grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
856
+ gap: 14px;
857
+
858
+ ${o.media.maxWidth("lg")} {
859
+ grid-template-columns: repeat(2, minmax(0, 1fr));
860
+ }
861
+ ${o.media.maxWidth("mobile")} {
862
+ grid-template-columns: minmax(0, 1fr);
863
+ }
864
+ `,Ie=c.div`
865
+ background: ${o.colors.overlay};
866
+ color: ${o.colors.softWhite};
867
+ border-radius: ${o.radius.modal};
868
+ padding: 12px 24px;
869
+ display: flex;
870
+ flex-direction: column;
871
+ gap: 12px;
872
+ min-width: 0;
873
+ /* The credits mark is pinned near-black globally (Icon.css) so a coloured total never tints it. That
874
+ was chosen for a white card and disappears into this one. */
875
+ .ccy-mark,
876
+ .ccy {
877
+ color: ${o.colors.softWhite};
878
+ }
879
+ `,_e=c.span`
880
+ display: flex;
881
+ align-items: center;
882
+ justify-content: flex-start;
883
+ gap: 8px;
884
+ /* The tiles carrying a tooltip button stand 3px taller than the rest, and in a grid that is 3px of dead
885
+ space under every other card. Held to the taller of the two. */
886
+ min-height: 18px;
887
+ font-family: ${o.font.sans};
888
+ font-size: 12px;
889
+ font-weight: 400;
890
+ line-height: 1;
891
+ letter-spacing: 1px;
892
+ text-transform: uppercase;
893
+ color: ${o.colors.gray4};
894
+ `,Pe=c.span`
895
+ /* Ahead of the label, as the design has it. Ordered rather than moved in the markup, because the mark is
896
+ the last child in every tile and reordering five sets of markup would buy nothing. */
897
+ order: -1;
898
+ font-size: 16px;
899
+ line-height: 1;
900
+ filter: saturate(0.9);
901
+ `,Ee=c.span`
902
+ display: flex;
903
+ align-items: baseline;
904
+ gap: 8px;
905
+
906
+ /* The currency mark is a box, not a glyph with a baseline: sized to the digits' cap height and centred
907
+ against them, rather than left to sit on the line's bottom edge. */
908
+ [data-kind] {
909
+ align-self: center;
910
+ margin-right: 6px;
911
+ }
912
+ [data-kind] img,
913
+ [data-kind] .ico {
914
+ width: 0.74em;
915
+ height: 0.74em;
916
+ vertical-align: baseline;
917
+ }
918
+ font-family: ${o.font.sans};
919
+ font-size: 32px;
920
+ font-weight: 600;
921
+ line-height: 1.235;
922
+ letter-spacing: -0.02em;
923
+ font-variant-numeric: tabular-nums;
924
+ `,fi=c.span`
925
+ font-size: 20px;
926
+ font-weight: 600;
927
+ color: ${o.colors.gray4};
928
+ margin-right: -2px;
929
+ `,bo=c.span`
930
+ font-size: 15px;
931
+ font-weight: 600;
932
+ letter-spacing: 0;
933
+ color: ${o.colors.gray4};
934
+ `,Re=c.span`
935
+ display: flex;
936
+ align-items: center;
937
+ flex-wrap: wrap;
938
+ gap: 4px 6px;
939
+ min-width: 0;
940
+ min-height: 16px;
941
+ font-family: ${o.font.sans};
942
+ font-size: 12px;
943
+ line-height: 1.35;
944
+ color: ${o.colors.gray4};
945
+ `,wo=c.span`
946
+ display: inline-flex;
947
+ align-items: center;
948
+ gap: 4px;
949
+ font-size: 11px;
950
+ font-weight: 600;
951
+ text-transform: uppercase;
952
+ letter-spacing: 0.04em;
953
+ color: ${o.colors.gray4};
954
+ border: 1px dashed ${o.colors.cardLine};
955
+ border-radius: ${o.radius.chip};
956
+ padding: 1px 5px;
957
+ `,ue=c.section`
958
+ display: flex;
959
+ flex-direction: column;
960
+ gap: 12px;
961
+ padding: 16px;
962
+ background: ${o.colors.overlayLight};
963
+ color: ${o.colors.softWhite};
964
+ border-radius: ${o.radius.banner};
965
+ min-width: 0;
966
+ /* The credits mark is pinned near-black globally (Icon.css) so a coloured total never tints it. That
967
+ was chosen for a white card and disappears into this one. */
968
+ .ccy-mark,
969
+ .ccy {
970
+ color: ${o.colors.softWhite};
971
+ }
972
+ `,Ue=c.div`
973
+ display: flex;
974
+ align-items: baseline;
975
+ justify-content: space-between;
976
+ gap: 12px;
977
+ `,Ae=c.h2`
978
+ margin: 0;
979
+ font-family: ${o.font.sans};
980
+ font-size: 15px;
981
+ font-weight: 700;
982
+ letter-spacing: -0.01em;
983
+ `,xi=c.div`
984
+ display: flex;
985
+ align-items: center;
986
+ gap: 12px;
987
+ `,gi=c(Eo)`
988
+ /* Direct child only: the menu's options are buttons as well, and a descendant rule turned them white
989
+ on the white menu, which is a menu you cannot read. */
990
+ > button {
991
+ gap: 24px;
992
+ height: 40px;
993
+ padding: 4px 4px 4px 12px;
994
+ background: transparent;
995
+ border: 0.5px solid ${o.colors.white};
996
+ border-radius: ${o.radius.btn};
997
+ color: ${o.colors.white};
998
+ font-size: 12px;
999
+ font-weight: 500;
1000
+ text-transform: uppercase;
1001
+ letter-spacing: 0;
1002
+ }
1003
+ > button:hover {
1004
+ border-color: ${o.colors.softWhite};
1005
+ background: ${o.colors.glassFaint};
1006
+ color: ${o.colors.softWhite};
1007
+ }
1008
+ /* The chevron's colour is an inline style on the shared component, so a class cannot reach it — this
1009
+ is the one place that has to shout. */
1010
+ > button .ico {
1011
+ color: ${o.colors.softWhite} !important;
1012
+ }
1013
+ `,Xt=c.span`
1014
+ font-family: ${o.font.sans};
1015
+ font-size: 12px;
1016
+ color: ${o.colors.gray4};
1017
+ `,Ho="24px 56px minmax(170px, 1fr) minmax(236px, 1.34fr) minmax(140px, 1fr) minmax(140px, 1fr) minmax(150px, 1fr) 158px",Ko=c.div`
1018
+ display: grid;
1019
+ grid-template-columns: ${Ho};
1020
+ align-items: center;
1021
+ gap: 12px;
1022
+ padding: 12px 24px 12px 12px;
1023
+ min-width: min-content;
1024
+ background: ${o.colors.overlayStrong};
1025
+ border-radius: ${o.radius.card} ${o.radius.card} 0 0;
1026
+ font-family: ${o.font.sans};
1027
+ font-size: 14px;
1028
+ color: ${o.colors.softWhite};
1029
+
1030
+ /* Each label sits the way its column's content sits, so a header never points at the wrong figure. */
1031
+ > *:nth-child(4),
1032
+ > *:nth-child(5),
1033
+ > *:nth-child(6),
1034
+ > *:nth-child(7) {
1035
+ text-align: center;
1036
+ }
1037
+ /* The label sits over the middle of the action, not over its right edge: in the design both occupy the
1038
+ same box, so the header stretches across the track and centres inside it. */
1039
+ > *:last-child {
1040
+ justify-self: stretch;
1041
+ text-align: center;
1042
+ }
1043
+
1044
+ ${o.media.maxWidth("mobile")} {
1045
+ display: none;
1046
+ }
1047
+ `,Yo=c.div`
1048
+ display: flex;
1049
+ flex-direction: column;
1050
+ gap: 2px;
1051
+ min-width: 0;
1052
+ /*
1053
+ * The run scrolls sideways rather than crushing its own columns.
1054
+ *
1055
+ * The tracks need 1158px before the grid starts taking room from them, and the panel used to clip what
1056
+ * did not fit. It does not any more, and a clipped row is worse than a scrolling one: the action is the
1057
+ * last column, so on a 1024px tablet "Manage" simply left the screen with no way to reach it.
1058
+ */
1059
+ overflow-x: auto;
1060
+
1061
+ > *:last-child {
1062
+ border-radius: 0 0 ${o.radius.card} ${o.radius.card};
1063
+ }
1064
+ `,Go=c.div`
1065
+ display: grid;
1066
+ grid-template-columns: ${Ho};
1067
+ align-items: center;
1068
+ gap: 12px;
1069
+ padding: 12px 24px 12px 12px;
1070
+ min-width: min-content;
1071
+ background: ${o.colors.overlay};
1072
+
1073
+ /* A fixed track keeps every row's action in the same place, centred under its column's label. */
1074
+ > *:last-child {
1075
+ justify-self: center;
1076
+ }
1077
+
1078
+ /**
1079
+ * A collection with no copies left, set back from the ones that still have something to sell.
1080
+ *
1081
+ * Muted rather than faded: opacity would take the row's one action down with it, and a creator who wants
1082
+ * to look at a finished run should not have to fight the styling to click into it. The thumbnail loses
1083
+ * its colour, the figures lose their weight, and the row still reads.
1084
+ */
1085
+ &[data-exhausted] {
1086
+ background: rgba(0, 0, 0, 0.55);
1087
+ color: ${o.colors.gray4};
1088
+
1089
+ [data-testid='store-collection-thumb'] img {
1090
+ filter: grayscale(0.75);
1091
+ opacity: 0.72;
1092
+ }
1093
+ /* The collection's own name follows the row; the action at the end keeps its colour, because a
1094
+ finished run is still one a creator opens, and a button that reads disabled invites nobody. */
1095
+ [data-testid='store-collection-name'] {
1096
+ color: inherit;
1097
+ }
1098
+ }
1099
+
1100
+ /**
1101
+ * On a phone the seven columns become two rows: identity and figure on the first, the discount and the
1102
+ * action on the second. Placed explicitly rather than left to auto-flow, which dropped both of them
1103
+ * into the first two narrow tracks on top of each other.
1104
+ */
1105
+ /*
1106
+ * Three lines on a phone: who it is and what to do about it, then the two figures, then the discount.
1107
+ *
1108
+ * Every cell is placed explicitly rather than left to auto-flow, because the columns changed order once
1109
+ * already and an auto-placed grid answers that by putting a sparkline where a button used to be.
1110
+ */
1111
+ ${o.media.maxWidth("mobile")} {
1112
+ grid-template-columns: 24px 56px minmax(0, 1fr) auto;
1113
+ row-gap: 12px;
1114
+
1115
+ > *:nth-child(1) {
1116
+ grid-area: 1 / 1;
1117
+ }
1118
+ > *:nth-child(2) {
1119
+ grid-area: 1 / 2;
1120
+ }
1121
+ /* The name takes the whole of its line. Sharing it with the action left "Founders Edition" as an
1122
+ ellipsis and a chip, which is the one cell on the row that has to be readable. */
1123
+ > *:nth-child(3) {
1124
+ grid-area: 1 / 3 / 1 / 5;
1125
+ }
1126
+ > *:nth-child(5) {
1127
+ grid-area: 2 / 1 / 2 / 3;
1128
+ justify-self: start;
1129
+ }
1130
+ > *:nth-child(6) {
1131
+ grid-area: 2 / 3;
1132
+ justify-self: start;
1133
+ }
1134
+ > *:nth-child(8) {
1135
+ grid-area: 2 / 4;
1136
+ justify-self: end;
1137
+ }
1138
+ > *:nth-child(4) {
1139
+ grid-area: 3 / 1 / 3 / 5;
1140
+ justify-self: start;
1141
+ align-items: flex-start;
1142
+ text-align: left;
1143
+ }
1144
+ }
1145
+ `,yi=c.button`
1146
+ position: relative;
1147
+ display: grid;
1148
+ place-items: center;
1149
+ width: 24px;
1150
+ height: 24px;
1151
+ padding: 0;
1152
+ border: 0;
1153
+ border-radius: ${o.radius.btn};
1154
+ background: none;
1155
+ cursor: pointer;
1156
+ color: ${o.colors.gray4};
1157
+
1158
+ &:hover {
1159
+ background: ${o.colors.glassFaint};
1160
+ color: ${o.colors.softWhite};
1161
+ }
1162
+ &:focus-visible {
1163
+ outline: 2px solid ${o.colors.navViolet};
1164
+ outline-offset: 2px;
1165
+ }
1166
+
1167
+ /* A finger needs more than the 24px the glyph occupies, and the row has that much clear space around it. */
1168
+ &::after {
1169
+ content: '';
1170
+ position: absolute;
1171
+ inset: -10px;
1172
+ }
1173
+
1174
+ .ico {
1175
+ width: 16px;
1176
+ height: 16px;
1177
+ transition: transform 0.18s ease;
1178
+ }
1179
+ &[aria-expanded='true'] .ico {
1180
+ transform: rotate(180deg);
1181
+ }
1182
+
1183
+ @media (prefers-reduced-motion: reduce) {
1184
+ .ico {
1185
+ transition: none;
1186
+ }
1187
+ }
1188
+ `,bi=c.span`
1189
+ width: 56px;
1190
+ height: 56px;
1191
+ border-radius: ${o.radius.btn};
1192
+ overflow: hidden;
1193
+ background: ${o.colors.overlayLight};
1194
+ `,wi=c.span`
1195
+ flex: none;
1196
+ display: inline-flex;
1197
+ align-items: center;
1198
+ font-family: ${o.font.sans};
1199
+ font-size: 10px;
1200
+ font-weight: 700;
1201
+ letter-spacing: 0.06em;
1202
+ text-transform: uppercase;
1203
+ padding: 3px 7px;
1204
+ border-radius: ${o.radius.pill};
1205
+ color: ${o.colors.gray4};
1206
+ background: ${o.colors.glassFaint};
1207
+ `,Si=c.span`
1208
+ display: flex;
1209
+ align-items: center;
1210
+ flex-wrap: wrap;
1211
+ gap: 4px 8px;
1212
+ min-width: 0;
1213
+
1214
+ /*
1215
+ * The chip yields before the name does, which is the opposite of what it used to do.
1216
+ *
1217
+ * With a wide name column the name could ellipsise and keep "sold out" beside it. The columns are even
1218
+ * now, so that column is 176px, and yielding the name first left "Founders Ed…" next to a chip: the row
1219
+ * lost the one thing it has to say to save the one thing that repeats on every sold-out row.
1220
+ */
1221
+ a {
1222
+ min-width: 0;
1223
+ flex: 0 1 auto;
1224
+ }
1225
+ `,ji=c.span`
1226
+ min-width: 0;
1227
+
1228
+ a {
1229
+ display: block;
1230
+ color: inherit;
1231
+ text-decoration: none;
1232
+ font-family: ${o.font.sans};
1233
+ font-size: 14px;
1234
+ font-weight: 600;
1235
+ overflow: hidden;
1236
+ text-overflow: ellipsis;
1237
+ white-space: nowrap;
1238
+ }
1239
+ a:hover,
1240
+ a:focus-visible {
1241
+ text-decoration: underline;
1242
+ }
1243
+ `,ki=c.span`
1244
+ display: block;
1245
+ font-family: ${o.font.sans};
1246
+ font-size: 12px;
1247
+ color: ${o.colors.gray4};
1248
+ overflow: hidden;
1249
+ text-overflow: ellipsis;
1250
+ white-space: nowrap;
1251
+ `;c.span`
1252
+ font-family: ${o.font.sans};
1253
+ font-size: 15px;
1254
+ font-weight: 700;
1255
+ font-variant-numeric: tabular-nums;
1256
+ text-align: right;
1257
+
1258
+ small {
1259
+ display: block;
1260
+ font-size: 11px;
1261
+ font-weight: 500;
1262
+ color: ${o.colors.gray4};
1263
+ text-transform: uppercase;
1264
+ letter-spacing: 0.04em;
1265
+ }
1266
+
1267
+ ${o.media.maxWidth("mobile")} {
1268
+ display: none;
1269
+ }
1270
+ `;const $i=c.span`
1271
+ min-width: 0;
1272
+
1273
+ ${o.media.maxWidth("mobile")} {
1274
+ display: none;
1275
+ }
1276
+ `,So=c.svg`
1277
+ display: block;
1278
+ width: 100%;
1279
+ height: 34px;
1280
+ `,vi=c.div`
1281
+ /* A shade deeper than the row it belongs to, not lighter. The rows carry their own dark fill now, and a
1282
+ translucent white panel between them read as a different surface breaking the run in half. */
1283
+ background: ${o.colors.overlayStrong};
1284
+ padding: 4px 24px 10px 48px;
1285
+
1286
+ ${o.media.maxWidth("mobile")} {
1287
+ padding-left: 32px;
1288
+ }
1289
+ `,Ci=c.div`
1290
+ display: flex;
1291
+ flex-wrap: wrap;
1292
+ gap: 8px 26px;
1293
+ padding: 12px 0 13px;
1294
+ border-bottom: 1px solid ${o.colors.cardLine};
1295
+
1296
+ span {
1297
+ display: flex;
1298
+ align-items: baseline;
1299
+ gap: 6px;
1300
+ font-family: ${o.font.sans};
1301
+ font-size: 11px;
1302
+ font-weight: 600;
1303
+ letter-spacing: 0.04em;
1304
+ text-transform: uppercase;
1305
+ color: ${o.colors.gray4};
1306
+ }
1307
+ b {
1308
+ /* The currency mark is its own inline-flex element, so the figure needs a row of its own or the two
1309
+ break onto separate lines. */
1310
+ display: inline-flex;
1311
+ align-items: center;
1312
+ gap: 3px;
1313
+ white-space: nowrap;
1314
+ font-size: 15px;
1315
+ font-weight: 700;
1316
+ letter-spacing: 0;
1317
+ text-transform: none;
1318
+ color: ${o.colors.softWhite};
1319
+ font-variant-numeric: tabular-nums;
1320
+ }
1321
+ `,Mi=c.div`
1322
+ display: grid;
1323
+ /* The stock track is fixed rather than max-content: each row is its own grid, so a content-sized last
1324
+ track let every row measure itself and none of them lined up. 124px clears the widest figure the page
1325
+ renders (105px) with room to spare, without leaving a hand's width between the bar and the number. */
1326
+ grid-template-columns: 40px minmax(0, 1fr) 72px 64px 152px 124px;
1327
+ align-items: center;
1328
+ gap: 22px;
1329
+ padding: 13px 0;
1330
+
1331
+ > *:last-child {
1332
+ justify-self: end;
1333
+ }
1334
+
1335
+ & + & {
1336
+ border-top: 1px solid ${o.colors.cardLine};
1337
+ }
1338
+
1339
+ /*
1340
+ * Two lines on a phone: the item, then its figures under the name.
1341
+ *
1342
+ * Placed explicitly. With three tracks and six cells the browser auto-flowed the stock figure into the
1343
+ * 40px thumbnail track on the second row, where justify-self: end right-aligned 105px of text inside
1344
+ * 40px of column and pushed its left edge a pixel off the card.
1345
+ */
1346
+ ${o.media.maxWidth("mobile")} {
1347
+ grid-template-columns: 40px minmax(0, 1fr) auto;
1348
+ column-gap: 12px;
1349
+ row-gap: 8px;
1350
+
1351
+ > *:nth-child(3) {
1352
+ grid-area: 2 / 2;
1353
+ justify-self: start;
1354
+ }
1355
+ > *:last-child {
1356
+ grid-area: 2 / 3;
1357
+ justify-self: end;
1358
+ }
1359
+ }
1360
+ `,Ai=c.span`
1361
+ display: block;
1362
+ width: 40px;
1363
+ height: 40px;
1364
+ border-radius: ${o.radius.btn};
1365
+ overflow: hidden;
1366
+ /* The rarity wash is a gradient of ALPHAS, drawn for a white card. Composited over a dark panel instead
1367
+ it turns muddy, so the base it was measured against is put back under it. */
1368
+ background-color: ${o.colors.white};
1369
+
1370
+ img {
1371
+ width: 100%;
1372
+ height: 100%;
1373
+ object-fit: contain;
1374
+ }
1375
+ `,Ii=c.span`
1376
+ min-width: 0;
1377
+ display: flex;
1378
+ flex-direction: column;
1379
+ gap: 2px;
1380
+ `,Li=c.span`
1381
+ display: flex;
1382
+ flex-wrap: wrap;
1383
+ align-items: center;
1384
+ gap: 6px;
1385
+ min-width: 0;
1386
+ `,Wi=c.button`
1387
+ flex: none;
1388
+ margin: -8px 0;
1389
+ padding: 8px 4px;
1390
+ border: 0;
1391
+ background: none;
1392
+ color: ${o.colors.white};
1393
+ font-family: ${o.font.sans};
1394
+ font-size: 11px;
1395
+ font-weight: 600;
1396
+ letter-spacing: 0.04em;
1397
+ text-transform: uppercase;
1398
+ text-decoration: underline;
1399
+ cursor: pointer;
1400
+
1401
+ &:hover {
1402
+ color: ${o.colors.navViolet};
1403
+ }
1404
+
1405
+ &:focus-visible {
1406
+ outline: 2px solid currentColor;
1407
+ outline-offset: -2px;
1408
+ border-radius: 4px;
1409
+ }
1410
+ `,Ti=c.span`
1411
+ flex: none;
1412
+ display: inline-flex;
1413
+ align-items: center;
1414
+ height: 15px;
1415
+ padding: 0 6px;
1416
+ border-radius: 5px;
1417
+ font-family: ${o.font.sans};
1418
+ font-size: 9px;
1419
+ font-weight: 700;
1420
+ letter-spacing: 0.02em;
1421
+ text-transform: uppercase;
1422
+ color: ${o.colors.softWhite};
1423
+ `,_i=c(nt)`
1424
+ font-family: ${o.font.sans};
1425
+ font-size: 13px;
1426
+ color: inherit;
1427
+ text-decoration: none;
1428
+ overflow: hidden;
1429
+ text-overflow: ellipsis;
1430
+ white-space: nowrap;
1431
+
1432
+ &:hover,
1433
+ &:focus-visible {
1434
+ text-decoration: underline;
1435
+ }
1436
+ `,Pi=c.span`
1437
+ font-family: ${o.font.sans};
1438
+ font-size: 13px;
1439
+ white-space: nowrap;
1440
+ font-weight: 600;
1441
+ font-variant-numeric: tabular-nums;
1442
+ text-align: right;
1443
+ color: ${o.colors.softWhite};
1444
+
1445
+ small {
1446
+ color: ${o.colors.gray4};
1447
+ font-weight: 500;
1448
+ }
1449
+
1450
+ ${o.media.maxWidth("mobile")} {
1451
+ text-align: left;
1452
+ }
1453
+ `,Ei=c.span`
1454
+ display: block;
1455
+ width: 96px;
1456
+ height: 6px;
1457
+ border-radius: 100px;
1458
+ /* White, not the near-black this started as: the track was a 10% dark fill chosen for a white card, and
1459
+ on the row's own dark surface it was the same colour as the row. */
1460
+ background: rgba(255, 255, 255, 0.1);
1461
+ overflow: hidden;
1462
+ /* Pushed to the end of its track, so it sits with the stock figure it measures rather than crowding the
1463
+ saves count next to it. */
1464
+ margin-left: auto;
1465
+
1466
+ i {
1467
+ display: block;
1468
+ height: 6px;
1469
+ border-radius: 100px;
1470
+ background: ${o.colors.navViolet};
1471
+ }
1472
+
1473
+ ${o.media.maxWidth("mobile")} {
1474
+ display: none;
1475
+ }
1476
+ `,Ri=c.span`
1477
+ font-family: ${o.font.sans};
1478
+ font-size: 11px;
1479
+ font-weight: 600;
1480
+ letter-spacing: 0.04em;
1481
+ text-transform: uppercase;
1482
+ white-space: nowrap;
1483
+ color: ${o.colors.gray4};
1484
+
1485
+ &[data-state='soldout'] {
1486
+ color: ${o.colors.navViolet};
1487
+ }
1488
+ /* A listed item shows its price rather than a label, so it takes the ink prices take. */
1489
+ &[data-state='classic'],
1490
+ &[data-state='discounted'] {
1491
+ display: inline-flex;
1492
+ align-items: center;
1493
+ gap: 2px;
1494
+ font-size: 12px;
1495
+ letter-spacing: 0;
1496
+ text-transform: none;
1497
+ color: ${o.colors.softWhite};
1498
+ }
1499
+ `,Di=c.span`
1500
+ display: flex;
1501
+ flex-direction: column;
1502
+ align-items: flex-end;
1503
+ gap: 4px;
1504
+ line-height: 1.25;
1505
+ `,zi=c.span`
1506
+ font-size: 10px;
1507
+ font-weight: 600;
1508
+ letter-spacing: 0.04em;
1509
+ text-transform: uppercase;
1510
+ color: ${o.colors.gray4};
1511
+ margin-right: 4px;
1512
+ `,Oi=c.span`
1513
+ font-family: ${o.font.sans};
1514
+ font-size: 10px;
1515
+ opacity: 0.85;
1516
+ font-weight: 600;
1517
+ letter-spacing: 0.03em;
1518
+ text-transform: uppercase;
1519
+ white-space: nowrap;
1520
+ color: ${o.colors.gray4};
1521
+ `,Fi=c.span`
1522
+ font-family: ${o.font.sans};
1523
+ font-size: 11px;
1524
+ font-weight: 600;
1525
+ letter-spacing: 0.04em;
1526
+ text-transform: uppercase;
1527
+ white-space: nowrap;
1528
+ text-align: right;
1529
+ color: ${o.colors.gray4};
1530
+ font-variant-numeric: tabular-nums;
1531
+
1532
+ b {
1533
+ color: ${o.colors.softWhite};
1534
+ font-weight: 700;
1535
+ }
1536
+ &[data-out='true'] {
1537
+ color: ${o.colors.navViolet};
1538
+ }
1539
+ `;c.div`
1540
+ display: grid;
1541
+ grid-template-columns: 3px minmax(0, 1fr) auto;
1542
+ gap: 12px;
1543
+ align-items: center;
1544
+ padding: 13px 18px;
1545
+ border-top: 1px solid ${o.colors.cardLine};
1546
+ `;c.span`
1547
+ align-self: stretch;
1548
+ border-radius: 2px;
1549
+ background: ${o.colors.cardLine};
1550
+
1551
+ &[data-sev='act'] {
1552
+ background: ${o.colors.dclRed};
1553
+ }
1554
+ &[data-sev='soon'] {
1555
+ background: ${o.colors.flareAmber};
1556
+ }
1557
+ `;const jo=c.button`
1558
+ display: inline-grid;
1559
+ place-items: center;
1560
+ width: 16px;
1561
+ height: 16px;
1562
+ margin-left: 5px;
1563
+ padding: 0;
1564
+ border: 0;
1565
+ background: none;
1566
+ cursor: help;
1567
+ color: ${o.colors.gray4};
1568
+
1569
+ &:hover,
1570
+ &:focus-visible {
1571
+ color: ${o.colors.softWhite};
1572
+ }
1573
+ .ico {
1574
+ width: 14px;
1575
+ height: 14px;
1576
+ }
1577
+ `;c.span`
1578
+ b {
1579
+ display: flex;
1580
+ align-items: center;
1581
+ font-family: ${o.font.sans};
1582
+ font-size: 13px;
1583
+ font-weight: 600;
1584
+ }
1585
+ span {
1586
+ display: block;
1587
+ margin-top: 2px;
1588
+ font-family: ${o.font.sans};
1589
+ font-size: 12px;
1590
+ color: ${o.colors.gray4};
1591
+ }
1592
+ `;c(nt)`
1593
+ display: inline-block;
1594
+ margin-top: 4px;
1595
+ font-family: ${o.font.sans};
1596
+ font-size: 12px;
1597
+ font-weight: 600;
1598
+ color: ${o.colors.navViolet};
1599
+ text-decoration: none;
1600
+
1601
+ &:hover,
1602
+ &:focus-visible {
1603
+ text-decoration: underline;
1604
+ }
1605
+ `;c.span`
1606
+ font-family: ${o.font.sans};
1607
+ font-size: 18px;
1608
+ font-weight: 700;
1609
+ font-variant-numeric: tabular-nums;
1610
+ `;const Ze=c.div`
1611
+ overflow-x: auto;
1612
+ `,ot=c.table`
1613
+ width: 100%;
1614
+ /* Fixed, so a page of short names and one of long ones lay their columns out identically — the widths
1615
+ come from the header row rather than from whatever this page happens to hold. */
1616
+ table-layout: fixed;
1617
+
1618
+ thead th:nth-of-type(1) {
1619
+ width: 36%;
1620
+ }
1621
+ thead th:nth-of-type(2) {
1622
+ width: 24%;
1623
+ }
1624
+ thead th:nth-of-type(3) {
1625
+ width: 120px;
1626
+ }
1627
+ thead th:nth-of-type(4) {
1628
+ width: 14%;
1629
+ }
1630
+ thead th:nth-of-type(5) {
1631
+ width: 110px;
1632
+ }
1633
+ tbody td {
1634
+ overflow: hidden;
1635
+ text-overflow: ellipsis;
1636
+ }
1637
+ font-family: ${o.font.sans};
1638
+ font-size: 13px;
1639
+ min-width: 520px;
1640
+
1641
+ /* The same band and the same separated rows the collections table wears, so the three tables on this
1642
+ page read as siblings rather than as one design and two others. The 2px gap is a transparent border
1643
+ over a clipped background, which is how a table draws the design's gaps without losing its columns. */
1644
+ border-collapse: separate;
1645
+ border-spacing: 0;
1646
+
1647
+ thead th {
1648
+ text-align: left;
1649
+ padding: 12px 18px;
1650
+ background: ${o.colors.overlayStrong};
1651
+ font-size: 14px;
1652
+ font-weight: 400;
1653
+ color: ${o.colors.softWhite};
1654
+ white-space: nowrap;
1655
+ }
1656
+ thead th:first-of-type {
1657
+ border-radius: ${o.radius.card} 0 0 0;
1658
+ }
1659
+ thead th:last-of-type {
1660
+ border-radius: 0 ${o.radius.card} 0 0;
1661
+ }
1662
+ tbody td {
1663
+ padding: 12px 18px;
1664
+ background: ${o.colors.overlay};
1665
+ border-top: 2px solid transparent;
1666
+ background-clip: padding-box;
1667
+ vertical-align: middle;
1668
+ }
1669
+ tbody tr:last-of-type td:first-of-type {
1670
+ border-radius: 0 0 0 ${o.radius.card};
1671
+ }
1672
+ tbody tr:last-of-type td:last-of-type {
1673
+ border-radius: 0 0 ${o.radius.card} 0;
1674
+ }
1675
+ tbody tr:hover td {
1676
+ background: ${o.colors.overlayHover};
1677
+ }
1678
+ td[data-money] {
1679
+ text-align: right;
1680
+ font-weight: 700;
1681
+ font-variant-numeric: tabular-nums;
1682
+ white-space: nowrap;
1683
+ }
1684
+ td[data-dim] {
1685
+ color: ${o.colors.gray4};
1686
+ font-variant-numeric: tabular-nums;
1687
+ white-space: nowrap;
1688
+ }
1689
+ `,Zt=c.span`
1690
+ display: flex;
1691
+ align-items: center;
1692
+ gap: 10px;
1693
+ min-width: 0;
1694
+ color: inherit;
1695
+ text-decoration: none;
1696
+
1697
+ span {
1698
+ overflow: hidden;
1699
+ text-overflow: ellipsis;
1700
+ white-space: nowrap;
1701
+ }
1702
+ &:hover span,
1703
+ &:focus-visible span {
1704
+ text-decoration: underline;
1705
+ }
1706
+ `,Jt=c.span`
1707
+ flex: none;
1708
+ display: block;
1709
+ width: 32px;
1710
+ height: 32px;
1711
+ border-radius: ${o.radius.chip};
1712
+ overflow: hidden;
1713
+ /* Same rarity wash, same reason it needs a white base under it — see ItemThumb. */
1714
+ background-color: ${o.colors.white};
1715
+
1716
+ img {
1717
+ width: 100%;
1718
+ height: 100%;
1719
+ object-fit: contain;
1720
+ }
1721
+ `,kt=c.a`
1722
+ max-width: 100%;
1723
+ white-space: nowrap;
1724
+ display: inline-flex;
1725
+ align-items: center;
1726
+ gap: 8px;
1727
+ color: inherit;
1728
+ text-decoration: none;
1729
+
1730
+ &:hover,
1731
+ &:focus-visible {
1732
+ text-decoration: underline;
1733
+ }
1734
+ `,Ni=c.span`
1735
+ display: inline-flex;
1736
+ align-items: center;
1737
+ gap: 8px;
1738
+
1739
+ i {
1740
+ display: block;
1741
+ width: 24px;
1742
+ height: 24px;
1743
+ border-radius: 50%;
1744
+ background: #ededed;
1745
+ }
1746
+ b {
1747
+ display: block;
1748
+ width: 84px;
1749
+ height: 10px;
1750
+ border-radius: 100px;
1751
+ background: #ededed;
1752
+ }
1753
+ `,$t=c.span`
1754
+ flex: none;
1755
+ display: block;
1756
+ width: 24px;
1757
+ height: 24px;
1758
+ border-radius: 50%;
1759
+ background-color: ${o.colors.overlayLight};
1760
+ background-size: cover;
1761
+ background-position: center top;
1762
+ `,Bi=c.nav`
1763
+ display: flex;
1764
+ align-items: center;
1765
+ justify-content: flex-end;
1766
+ gap: 12px;
1767
+ font-variant-numeric: tabular-nums;
1768
+
1769
+ /* Nine controls in a phone's width: tighter, but never wrapping, which would move the arrows too. */
1770
+ ${o.media.maxWidth("mobile")} {
1771
+ gap: 6px;
1772
+ }
1773
+ `,Vo=`
1774
+ flex: none;
1775
+ display: inline-flex;
1776
+ align-items: center;
1777
+ justify-content: center;
1778
+ width: 32px;
1779
+ height: 32px;
1780
+ padding: 0;
1781
+ border: 0.5px solid rgba(255, 255, 255, 0.5);
1782
+ border-radius: ${o.radius.btn};
1783
+ background: transparent;
1784
+ font-family: ${o.font.sans};
1785
+ font-size: 13px;
1786
+ font-weight: 600;
1787
+ letter-spacing: 0.46px;
1788
+ color: ${o.colors.softWhite};
1789
+ cursor: pointer;
1790
+
1791
+ &:hover:not(:disabled) {
1792
+ border-color: ${o.colors.softWhite};
1793
+ background: ${o.colors.glassFaint};
1794
+ }
1795
+ &:focus-visible {
1796
+ outline: 2px solid ${o.colors.softWhite};
1797
+ outline-offset: 2px;
1798
+ }
1799
+ &:disabled {
1800
+ opacity: 0.35;
1801
+ cursor: default;
1802
+ }
1803
+ `,ko=c.button`
1804
+ ${Vo}
1805
+ `,Ui=c.button`
1806
+ ${Vo}
1807
+
1808
+ /* The page you are on is the one solid control in the row, which is how the design marks it. */
1809
+ &[aria-current='page'] {
1810
+ background: ${o.colors.softWhite};
1811
+ border-color: ${o.colors.softWhite};
1812
+ color: ${o.colors.text};
1813
+ cursor: default;
1814
+ }
1815
+ &[aria-current='page']:hover {
1816
+ background: ${o.colors.softWhite};
1817
+ color: ${o.colors.text};
1818
+ }
1819
+ `,qi=c.span`
1820
+ display: inline-flex;
1821
+ align-items: center;
1822
+ justify-content: center;
1823
+ width: 32px;
1824
+ flex: none;
1825
+ font-family: ${o.font.sans};
1826
+ font-size: 12px;
1827
+ color: ${o.colors.gray4};
1828
+ `;c.span`
1829
+ display: inline-flex;
1830
+ align-items: center;
1831
+ gap: 2px;
1832
+ `;const Hi=c.span`
1833
+ font-size: 11px;
1834
+ font-weight: 700;
1835
+ letter-spacing: 0.04em;
1836
+ text-transform: uppercase;
1837
+ border-radius: ${o.radius.chip};
1838
+ padding: 2px 7px;
1839
+ white-space: nowrap;
1840
+ color: ${o.colors.gray4};
1841
+ background: ${o.colors.overlayLight};
1842
+
1843
+ &[data-kind='mint'] {
1844
+ color: ${o.colors.navViolet};
1845
+ background: rgba(105, 31, 169, 0.1);
1846
+ }
1847
+ `;c.img`
1848
+ width: 1em;
1849
+ height: 1em;
1850
+ vertical-align: -0.125em;
1851
+ margin-right: 3px;
1852
+ `;const Ki=c.button`
1853
+ display: block;
1854
+ width: 100%;
1855
+ padding: 13px 18px;
1856
+ border: 0;
1857
+ border-top: 1px solid ${o.colors.cardLine};
1858
+ background: none;
1859
+ cursor: pointer;
1860
+ font-family: ${o.font.sans};
1861
+ font-size: 13px;
1862
+ font-weight: 600;
1863
+ color: ${o.colors.navViolet};
1864
+
1865
+ &:hover {
1866
+ background: ${o.colors.glassFaint};
1867
+ }
1868
+ &:focus-visible {
1869
+ outline: 2px solid ${o.colors.navViolet};
1870
+ outline-offset: -2px;
1871
+ }
1872
+ `;c.div`
1873
+ display: flex;
1874
+ flex-direction: column;
1875
+ gap: 4px;
1876
+ padding: 10px 18px 14px;
1877
+ border-top: 1px solid ${o.colors.cardLine};
1878
+ `;c.p`
1879
+ margin: 0;
1880
+ font-family: ${o.font.sans};
1881
+ font-size: 11px;
1882
+ line-height: 1.45;
1883
+ color: ${o.colors.muted2};
1884
+ `;const Qo=`
1885
+ background: linear-gradient(100deg, var(--skeleton-lo) 30%, var(--skeleton-hi) 50%, var(--skeleton-lo) 70%);
1886
+ background-size: 200% 100%;
1887
+ animation: shimmer 1.3s infinite linear;
1888
+
1889
+ @media (prefers-reduced-motion: reduce) {
1890
+ animation: none;
1891
+ }
1892
+ `,D=c.span`
1893
+ display: block;
1894
+ height: 12px;
1895
+ border-radius: 100px;
1896
+ ${Qo}
1897
+ `,Yi=c.span`
1898
+ display: block;
1899
+ width: 40px;
1900
+ height: 40px;
1901
+ border-radius: ${o.radius.btn};
1902
+ ${Qo}
1903
+ `,$o=c.div`
1904
+ display: grid;
1905
+ grid-template-columns: minmax(0, 1fr) minmax(0, 0.7fr) 100px minmax(0, 0.5fr) 70px;
1906
+ align-items: center;
1907
+ gap: 12px;
1908
+ padding: 0 18px 10px;
1909
+
1910
+ > *:last-child {
1911
+ justify-self: end;
1912
+ }
1913
+ background: ${o.colors.overlayStrong};
1914
+ border-radius: ${o.radius.card} ${o.radius.card} 0 0;
1915
+ `,vo=c.div`
1916
+ display: grid;
1917
+ grid-template-columns: minmax(0, 1fr) minmax(0, 0.7fr) 100px minmax(0, 0.5fr) 70px;
1918
+ align-items: center;
1919
+ gap: 12px;
1920
+ height: 57px;
1921
+ padding: 0 18px;
1922
+ background: ${o.colors.overlay};
1923
+ border-top: 2px solid transparent;
1924
+ background-clip: padding-box;
1925
+
1926
+ > *:last-child {
1927
+ justify-self: end;
1928
+ }
1929
+ `,ge=c.p`
1930
+ margin: 0;
1931
+ font-family: ${o.font.sans};
1932
+ font-size: 13px;
1933
+ color: ${o.colors.gray4};
1934
+ `,Gi=c(te)`
1935
+ width: 16px;
1936
+ height: 16px;
1937
+ `,en=c.span`
1938
+ display: inline-flex;
1939
+ align-items: center;
1940
+ gap: 4px;
1941
+ font-family: ${o.font.sans};
1942
+ font-size: 12px;
1943
+ font-weight: 600;
1944
+ line-height: 1.3;
1945
+ flex-wrap: wrap;
1946
+ color: ${o.colors.gray4};
1947
+
1948
+ &[data-dir='up'] {
1949
+ color: ${o.colors.successBorder};
1950
+ }
1951
+ &[data-dir='down'] {
1952
+ color: #ff6b6b;
1953
+ }
1954
+
1955
+ /* Grey whichever way the figure went: it is the label, not the reading. */
1956
+ .delta__against {
1957
+ font-size: 10px;
1958
+ font-weight: 400;
1959
+ color: ${o.colors.gray4};
1960
+ }
1961
+ .delta__arrow {
1962
+ font-size: 10px;
1963
+ line-height: 1;
1964
+ }
1965
+ `,Vi=c.div`
1966
+ margin: 10px 0 -4px;
1967
+ `,Qi=c.h2`
1968
+ margin: 0;
1969
+ font-family: ${o.font.sans};
1970
+ font-size: 19px;
1971
+ font-weight: 700;
1972
+ letter-spacing: -0.01em;
1973
+ color: ${o.colors.softWhite};
1974
+ `,Xi=c.p`
1975
+ margin: 4px 0 0;
1976
+ font-family: ${o.font.sans};
1977
+ font-size: 13px;
1978
+ color: rgba(252, 252, 252, 0.62);
1979
+ `,Zi=c.div`
1980
+ display: grid;
1981
+ grid-template-columns: repeat(auto-fit, minmax(210px, 300px));
1982
+ gap: 14px;
1983
+ align-items: start;
1984
+
1985
+ ${o.media.maxWidth("mobile")} {
1986
+ grid-template-columns: minmax(0, 1fr);
1987
+ }
1988
+ `,Ji=c(ot)`
1989
+ thead th:nth-of-type(1) {
1990
+ width: 34%;
1991
+ }
1992
+ thead th:nth-of-type(2) {
1993
+ width: 14%;
1994
+ }
1995
+ thead th:nth-of-type(3) {
1996
+ width: 22%;
1997
+ }
1998
+ thead th:nth-of-type(4) {
1999
+ width: 15%;
2000
+ }
2001
+ thead th:nth-of-type(5) {
2002
+ width: 15%;
2003
+ }
2004
+ `,el=c.button`
2005
+ align-self: flex-start;
2006
+ display: inline-flex;
2007
+ align-items: center;
2008
+ gap: 4px;
2009
+ margin: 2px -4px -6px;
2010
+ padding: 6px 4px;
2011
+ border: 0;
2012
+ background: none;
2013
+ color: ${o.colors.softWhite};
2014
+ font-family: ${o.font.sans};
2015
+ font-size: 12px;
2016
+ font-weight: 600;
2017
+ letter-spacing: 0.04em;
2018
+ text-transform: uppercase;
2019
+ text-decoration: underline;
2020
+ cursor: pointer;
2021
+
2022
+ &:hover {
2023
+ color: ${o.colors.navViolet};
2024
+ }
2025
+ &:focus-visible {
2026
+ outline: 2px solid ${o.colors.softWhite};
2027
+ outline-offset: 2px;
2028
+ border-radius: 4px;
2029
+ }
2030
+ `,tl=c(ot)`
2031
+ thead th:nth-of-type(1) {
2032
+ width: 40%;
2033
+ }
2034
+ thead th:nth-of-type(2) {
2035
+ width: 16%;
2036
+ }
2037
+ thead th:nth-of-type(3) {
2038
+ width: 20%;
2039
+ }
2040
+ thead th:nth-of-type(4) {
2041
+ width: 12%;
2042
+ }
2043
+ thead th:nth-of-type(5) {
2044
+ width: 12%;
2045
+ }
2046
+ `,nl=c(ot)`
2047
+ thead th:nth-of-type(1) {
2048
+ width: 30%;
2049
+ }
2050
+ thead th:nth-of-type(2) {
2051
+ width: 10%;
2052
+ }
2053
+ thead th:nth-of-type(3) {
2054
+ width: 14%;
2055
+ }
2056
+ thead th:nth-of-type(4) {
2057
+ width: 16%;
2058
+ }
2059
+ thead th:nth-of-type(5) {
2060
+ width: 14%;
2061
+ }
2062
+ thead th:nth-of-type(6) {
2063
+ width: 16%;
2064
+ }
2065
+ `;c.div`
2066
+ display: grid;
2067
+ grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
2068
+ gap: 14px;
2069
+ align-items: start;
2070
+
2071
+ ${o.media.maxWidth("lg")} {
2072
+ grid-template-columns: minmax(0, 1fr);
2073
+ }
2074
+ `;c.div`
2075
+ display: flex;
2076
+ flex-direction: column;
2077
+ gap: 14px;
2078
+ `;const De=c.span`
2079
+ display: inline-flex;
2080
+ align-items: center;
2081
+ justify-content: flex-end;
2082
+
2083
+ [data-kind] img,
2084
+ [data-kind] .ico {
2085
+ vertical-align: baseline;
2086
+ }
2087
+ `,ol=c.span`
2088
+ font-family: ${o.font.sans};
2089
+ font-size: 14px;
2090
+ font-weight: 600;
2091
+ font-variant-numeric: tabular-nums;
2092
+ white-space: nowrap;
2093
+ text-align: center;
2094
+
2095
+ /* One weight and one colour, as the design draws it: the pair is a single reading ("80 of 250"), and
2096
+ dimming the denominator made the two halves look like different figures. */
2097
+ small {
2098
+ font-size: inherit;
2099
+ font-weight: inherit;
2100
+ }
2101
+ `,sl=c.span`
2102
+ display: flex;
2103
+ flex-direction: column;
2104
+ align-items: center;
2105
+ justify-content: center;
2106
+ gap: 4px;
2107
+ min-width: 0;
2108
+ font-family: ${o.font.sans};
2109
+ font-size: 12px;
2110
+ color: ${o.colors.gray4};
2111
+ text-align: center;
2112
+ `,rl=c.span`
2113
+ display: inline-flex;
2114
+ flex-wrap: wrap;
2115
+ justify-content: center;
2116
+ gap: 8px;
2117
+ `,al=c(Ws)`
2118
+ align-self: center;
2119
+ gap: 4px;
2120
+ padding: 2px 4px;
2121
+ border: 0;
2122
+ border-radius: 6px;
2123
+ background: ${o.colors.saleTag};
2124
+ line-height: 20px;
2125
+
2126
+ b,
2127
+ span {
2128
+ font-size: 14px;
2129
+ line-height: 20px;
2130
+ }
2131
+ `,il=c(Vs)`
2132
+ align-self: center;
2133
+ gap: 4px;
2134
+ padding: 4px 8px;
2135
+ border-radius: 6px;
2136
+ background: ${o.colors.glass};
2137
+ color: ${o.colors.white};
2138
+
2139
+ b {
2140
+ color: ${o.colors.white};
2141
+ font-size: 12px;
2142
+ line-height: 16px;
2143
+ }
2144
+ `,ll=c.span`
2145
+ color: ${o.colors.muted2};
2146
+
2147
+ b {
2148
+ font-weight: 600;
2149
+ }
2150
+ /* Whether it is selling faster carries the only colour in the cell, since it is the only judgement. */
2151
+ &[data-dir='up'] b {
2152
+ color: #2ecc71;
2153
+ }
2154
+ &[data-dir='down'] b {
2155
+ color: #ff6b6b;
2156
+ }
2157
+ `,ze=c.div`
2158
+ display: flex;
2159
+ align-items: center;
2160
+ justify-content: space-between;
2161
+ gap: 12px;
2162
+ font-family: ${o.font.sans};
2163
+ font-size: 13px;
2164
+ color: ${o.colors.gray4};
2165
+
2166
+ ${o.media.maxWidth("mobile")} {
2167
+ flex-direction: column;
2168
+ align-items: stretch;
2169
+ }
2170
+ `,cl=c.div`
2171
+ display: flex;
2172
+ align-items: center;
2173
+ justify-content: space-between;
2174
+ gap: 12px;
2175
+
2176
+ ${o.media.maxWidth("mobile")} {
2177
+ flex-wrap: wrap;
2178
+ }
2179
+ `,dl=c.div`
2180
+ display: flex;
2181
+ align-items: center;
2182
+ gap: 10px;
2183
+ min-width: 0;
2184
+ `,hl=c(an)`
2185
+ display: inline-flex;
2186
+ align-items: center;
2187
+ justify-content: center;
2188
+ gap: 8px;
2189
+ height: 36px;
2190
+ padding: 0 12px;
2191
+ border: 0.5px solid ${o.colors.white};
2192
+ border-radius: 12px;
2193
+ background: transparent;
2194
+ color: ${o.colors.softWhite};
2195
+ font-size: 13px;
2196
+ font-weight: 600;
2197
+ letter-spacing: 0.46px;
2198
+ text-transform: uppercase;
2199
+
2200
+ &:hover:not(:disabled) {
2201
+ background: ${o.colors.glassFaint};
2202
+ color: ${o.colors.softWhite};
2203
+ }
2204
+ `,pl=c.span`
2205
+ display: inline-flex;
2206
+ align-items: center;
2207
+ justify-content: center;
2208
+ gap: 6px;
2209
+ font-family: ${o.font.sans};
2210
+ font-size: 14px;
2211
+ font-weight: 600;
2212
+ font-variant-numeric: tabular-nums;
2213
+ white-space: nowrap;
2214
+ `,ul=c.span`
2215
+ display: inline-flex;
2216
+ align-items: center;
2217
+ justify-content: flex-end;
2218
+ gap: 5px;
2219
+ font-family: ${o.font.sans};
2220
+ font-size: 13px;
2221
+ font-variant-numeric: tabular-nums;
2222
+ color: ${o.colors.gray4};
2223
+ white-space: nowrap;
2224
+
2225
+ .ico {
2226
+ width: 14px;
2227
+ height: 14px;
2228
+ }
2229
+ `,Xo=c.div`
2230
+ display: grid;
2231
+ grid-template-columns: repeat(2, minmax(0, 1fr));
2232
+ gap: 14px;
2233
+ /* Stretched rather than start-aligned: the sales rows carry a second line and the best sellers do not,
2234
+ so the two will never end together on their own, and two cards of different heights side by side read
2235
+ as one of them having failed to load. */
2236
+
2237
+ ${o.media.maxWidth("lg")} {
2238
+ grid-template-columns: minmax(0, 1fr);
2239
+ }
2240
+ `,tn=c.p`
2241
+ margin: 2px 0 0;
2242
+ font-family: ${o.font.sans};
2243
+ font-size: 13px;
2244
+ color: ${o.colors.gray4};
2245
+ `,Co=c.div`
2246
+ display: flex;
2247
+ align-items: flex-start;
2248
+ justify-content: space-between;
2249
+ gap: 12px;
2250
+ `,ml=c(nt)`
2251
+ display: inline-flex;
2252
+ align-items: center;
2253
+ gap: 6px;
2254
+ flex: none;
2255
+ color: ${o.colors.white};
2256
+ font-family: ${o.font.sans};
2257
+ font-size: 12px;
2258
+ font-weight: 600;
2259
+ letter-spacing: 0.04em;
2260
+ text-transform: uppercase;
2261
+ text-decoration: underline;
2262
+
2263
+ &:hover {
2264
+ color: ${o.colors.navViolet};
2265
+ }
2266
+ `,Mo=c.span`
2267
+ display: inline-block;
2268
+ min-width: 12px;
2269
+ font-weight: 700;
2270
+ font-variant-numeric: tabular-nums;
2271
+ color: ${o.colors.gray4};
2272
+ `,Ao=c.span`
2273
+ display: flex;
2274
+ align-items: center;
2275
+ gap: 12px;
2276
+ min-width: 0;
2277
+ `,Zo=`
2278
+ thead th,
2279
+ tbody td {
2280
+ padding-left: 12px;
2281
+ padding-right: 12px;
2282
+ }
2283
+ `,fl=c(ot)`
2284
+ min-width: 500px;
2285
+ ${Zo}
2286
+
2287
+ thead th:nth-of-type(1) {
2288
+ width: 46%;
2289
+ }
2290
+ thead th:nth-of-type(2) {
2291
+ width: 26%;
2292
+ }
2293
+ thead th:nth-of-type(3) {
2294
+ width: 72px;
2295
+ }
2296
+ thead th:nth-of-type(4) {
2297
+ width: 96px;
2298
+ }
2299
+ `,xl=c(ot)`
2300
+ min-width: 580px;
2301
+ ${Zo}
2302
+
2303
+ thead th:nth-of-type(1) {
2304
+ width: 34%;
2305
+ }
2306
+ thead th:nth-of-type(2) {
2307
+ width: 22%;
2308
+ }
2309
+ thead th:nth-of-type(3) {
2310
+ width: 70px;
2311
+ }
2312
+ thead th:nth-of-type(4) {
2313
+ width: 140px;
2314
+ }
2315
+ thead th:nth-of-type(5) {
2316
+ width: 76px;
2317
+ }
2318
+ `,Io=c.span`
2319
+ display: flex;
2320
+ flex-direction: column;
2321
+ gap: 3px;
2322
+ min-width: 0;
2323
+ `,Dt=8,zt=5,nn=5,vt=5,Ct=5,gl=new Map,Lo=.093,yl=[{key:"nfts",label:"myStore.colOwned",first:"desc"},{key:"items",label:"myStore.colItems",first:"desc"},{key:"collections",label:"myStore.colCollections",first:"desc"},{key:"recent",label:"myStore.colAcquired",first:"desc"},{key:"spent",label:"myStore.colSpent",first:"desc"}],Jo="shop.my-store.sort",bl=["sold","earned","newest","name"];function wl(){try{const t=localStorage.getItem(Jo);return bl.includes(t)?t:"sold"}catch{return"sold"}}function Sl(t){try{localStorage.setItem(Jo,t)}catch{}}function jl(t,n){const s=new Date(t).getFullYear()===new Date(n).getFullYear(),l=new Intl.DateTimeFormat(ye(),{month:"short",day:"numeric",...s?{}:{year:"numeric"}}),a=new Intl.DateTimeFormat(ye(),{month:"short",day:"numeric",year:"numeric"});return`${l.format(t)} – ${a.format(n)}`}function Oe(t){return t==="asc"?"ascending":t==="desc"?"descending":void 0}function se(t,n){return(t==null?void 0:t.key)===n?t.dir:void 0}function kl(t,n,s="mana"){const l=[...t];return n==="name"?l.sort((a,d)=>a.name.localeCompare(d.name)):n==="earned"?Je(l,a=>s==="usd"?a.earningsUsd:a.earningsWei,"desc"):n==="newest"?l.sort((a,d)=>(d.createdAt??0)-(a.createdAt??0)):l.sort((a,d)=>d.sold-a.sold||a.name.localeCompare(d.name))}function on(t,n,s){return qe(`/item/${t}/${n}`,s)}function qe(t,n){return n?`${t}${t.includes("?")?"&":"?"}env=${n}`:t}function $l(t,n){if(n==null)return null;const s=t.minted-n;return s>0?s:null}const vl={website:"website",twitter:"x-twitter",discord:"discord",facebook:"facebook"},Ot=5;function Fe({page:t,pages:n,onChange:s,name:l}){return n<=1?null:e.jsxs(Bi,{"aria-label":i("myStore.pagination"),children:[e.jsx(ko,{type:"button",onClick:()=>s(Math.max(0,t-1)),disabled:t===0,"aria-label":i("myStore.prev"),"data-testid":`store-${l}-prev`,children:e.jsx(te,{name:"chevron-down",size:16,"aria-hidden":!0,style:{transform:"rotate(90deg)"}})}),Ea(t,n).map((a,d)=>a==="gap"?e.jsx(qi,{children:"…"},`gap-${d}`):e.jsx(Ui,{type:"button","aria-current":a===t?"page":void 0,onClick:()=>s(a),"data-testid":`store-${l}-page-${a+1}`,children:(a+1).toLocaleString()},a)),e.jsx(ko,{type:"button",onClick:()=>s(Math.min(n-1,t+1)),disabled:t>=n-1,"aria-label":i("myStore.next"),"data-testid":`store-${l}-next`,children:e.jsx(te,{name:"chevron-down",size:16,"aria-hidden":!0,style:{transform:"rotate(-90deg)"}})})]})}function Cl(t,n,s){var p,y;const{from:l,to:a}=n,d=J({queryKey:["store-sales-page",t,l??null,a,s],enabled:!!t,placeholderData:x=>x,queryFn:()=>jr({seller:t,from:l,to:a},{first:Ot,skip:s*Ot})}),h=((p=d.data)==null?void 0:p.total)??0;return{rows:((y=d.data)==null?void 0:y.rows)??[],total:h,pages:Math.ceil(h/Ot)}}function Mt(t){return J({queryKey:["store-buyers",t],enabled:t.length>0,staleTime:5*6e4,queryFn:()=>_o(t)})}function At(t){return`${me.marketplaceUrl}/accounts/${t.toLowerCase()}`}function It(t,n){var l;const s=(l=n==null?void 0:n.get(t.toLowerCase()))==null?void 0:l.name;return s?hn(s):To(t)}function Ml(t){return me.previewHost&&t==="1"}const Al=25000n;function Il(t){return t*Al/1000000n}function Ne(t,n){const s=u.useRef(null),[l,a]=u.useState(0);return u.useEffect(()=>a(0),[n]),u.useLayoutEffect(()=>{if(!t||!s.current)return;const d=s.current.offsetHeight;d>l&&a(d)}),{ref:s,style:t&&l>0?{minHeight:l}:void 0}}const es=u.createContext("mana");function Se({wei:t,usd:n}){return u.useContext(es)==="usd"?n==null?e.jsx("span",{title:i("myStore.noUsd"),children:"—"}):e.jsxs(e.Fragment,{children:[e.jsx(hi,{"aria-hidden":!0,children:"$"}),Oo(n,ye())]}):e.jsxs(e.Fragment,{children:[e.jsx(he,{kind:"mana"}),Be(t)]})}function Be(t){const n=Number(t/10n**14n)/1e4;return n>=10?Math.round(n).toLocaleString():n.toFixed(2)}function Lt(t){const n=Math.max(1,Math.round((Date.now()-t)/6e4));if(n<60)return i("myStore.agoMinutes",{n});const s=Math.round(n/60);return s<24?i("myStore.agoHours",{n:s}):i("myStore.agoDays",{n:Math.round(s/24)})}function Ll({series:t}){const n=u.useId(),s=Math.max(...t,0),l=t.length>1?92/(t.length-1):0,a=p=>s===0?27:27-p/s*22,h=t.map((p,y)=>`${(2+y*l).toFixed(1)} ${a(p).toFixed(1)}`).join(" L ");return s===0?e.jsx(So,{viewBox:"0 0 96 30",role:"img","aria-label":i("myStore.trendNone"),children:e.jsx("path",{d:"M2 27 L94 27",fill:"none",stroke:o.colors.cardLine,strokeWidth:"2",strokeLinecap:"round"})}):e.jsxs(So,{viewBox:"0 0 96 30",role:"img","aria-label":i("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 ${h} L 94 29 L 2 29 Z`,fill:`url(#${n}-fill)`}),e.jsx("path",{d:`M ${h}`,fill:"none",stroke:`url(#${n})`,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}function Wl({collection:t,discount:n,savesByKey:s,open:l,onToggle:a,onManage:d,onIssue:h,env:p}){var x,z;const y=`store-items-${t.contractAddress}`;return e.jsxs(e.Fragment,{children:[e.jsxs(Go,{"data-testid":"store-collection","data-exhausted":t.exhausted||void 0,children:[e.jsx(yi,{type:"button","aria-expanded":l,"aria-controls":y,"aria-label":i(l?"myStore.collapse":"myStore.expand",{name:t.name}),onClick:a,"data-testid":"store-collection-toggle",children:e.jsx(Gi,{name:"chevron-down",className:"ico","aria-hidden":!0})}),e.jsx(bi,{"data-testid":"store-collection-thumb",children:e.jsx(Ns,{contractAddress:t.contractAddress})}),e.jsxs(ji,{children:[e.jsxs(Si,{children:[e.jsx(nt,{to:qe(`/collection/${t.contractAddress}`,p),"data-testid":"store-collection-name",children:t.name}),t.exhausted?e.jsx(wi,{"data-testid":"store-collection-soldout",children:i("myStore.collExhausted")}):null]}),e.jsxs(ki,{children:[i("myStore.itemsCount",{count:t.items.length}),t.listed>0?` · ${i("myStore.listedCount",{count:t.listed})}`:"",!t.exhausted&&t.soldOut>0?` · ${i("myStore.soldOutCount",{count:t.soldOut})}`:""]})]}),e.jsx(sl,{"data-testid":"store-collection-discount",children:n?e.jsxs(e.Fragment,{children:[e.jsxs(rl,{children:[e.jsx(al,{pct:n.discount/1e4}),e.jsx(il,{until:n.checks.expiration})]}),e.jsx(ll,{children:tr(n)?i("myStore.discountUsed",{used:((x=n.state)==null?void 0:x.uses)??0,total:n.checks.uses}):i("myStore.discountUsedUncapped",{used:((z=n.state)==null?void 0:z.uses)??0})})]}):i("myStore.noDiscountShort")}),e.jsxs(ol,{"data-testid":"store-collection-claimed",children:[t.claimed.toLocaleString(),e.jsxs("small",{children:["/",t.runTotal.toLocaleString()]})]}),e.jsx(pl,{"data-testid":"store-collection-earned",children:e.jsx(Se,{wei:t.earningsWei,usd:t.earningsUsd})}),e.jsx($i,{children:e.jsx(Ll,{series:t.trend})}),e.jsxs(hl,{as:"a",href:`${me.builderUrl}/collections${t.collectionId?`/${t.collectionId}`:""}`,target:"_blank",rel:"noopener noreferrer",onClick:d,"data-testid":"store-manage",children:[i("myStore.manage"),e.jsx(te,{name:"external-link",size:14,"aria-hidden":!0})]})]}),l?e.jsxs(vi,{id:y,"data-testid":"store-items",children:[e.jsxs(Ci,{"data-testid":"store-collection-stats",children:[e.jsxs("span",{children:[e.jsx("b",{children:e.jsx(Se,{wei:t.earningsWei,usd:t.earningsUsd})}),i("myStore.collEarned")]}),e.jsxs("span",{children:[e.jsx("b",{children:t.sold.toLocaleString()}),i("myStore.collSold")]}),e.jsxs("span",{children:[e.jsx("b",{children:t.items.length}),i("myStore.collItems",{count:t.items.length})]}),e.jsxs("span",{children:[e.jsx("b",{children:t.listed+t.classic}),i("myStore.collListed")]})]}),t.items.map(f=>{const j=$l(f,f.lifetimeSold);return e.jsxs(Mi,{"data-testid":"store-item",children:[e.jsx(Ai,{style:{backgroundImage:Wt(f.rarity)},children:f.thumbnail?e.jsx("img",{src:f.thumbnail,alt:"",loading:"lazy"}):null}),e.jsxs(Ii,{children:[e.jsx(_i,{to:qe(`/item/${t.contractAddress}/${f.itemId}`,p),title:f.name,children:f.name}),e.jsxs(Li,{children:[e.jsx(Ti,{style:{background:qs(f.rarity)},title:Us(f.rarity),children:Bs(f.rarity)}),e.jsx(Ri,{"data-state":f.state,children:f.state==="soldout"?null:f.state==="unlisted"?i("myStore.stateUnlisted"):f.state==="unknown"?i("myStore.stateUnknown"):e.jsxs(e.Fragment,{children:[e.jsx(zi,{children:i("myStore.onSaleFor")}),f.manaWei?e.jsxs(e.Fragment,{children:[e.jsx(he,{kind:"mana"}),Be(G(f.manaWei))]}):e.jsxs(e.Fragment,{children:[e.jsx(he,{kind:"credits"}),e.jsx(Hs,{credits:f.priceCredits??0})]})]})}),h&&f.left>0?e.jsx(Wi,{type:"button",onClick:()=>h(f),"data-testid":"store-item-issue",children:i("myStore.issueCopies")}):null]})]}),e.jsxs(Pi,{children:[f.sold.toLocaleString(),e.jsxs("small",{children:[" ",i("myStore.sold")]})]}),e.jsxs(ul,{"data-testid":"store-item-saves",title:i("myStore.savesHint",{count:s.get(f.key)??0}),children:[e.jsx(te,{name:"heart",className:"ico","aria-hidden":!0}),(s.get(f.key)??0).toLocaleString()]}),e.jsx(Ei,{role:"progressbar","aria-valuemin":0,"aria-valuemax":f.minted+f.left,"aria-valuenow":f.minted,"aria-label":i("myStore.runAria",{minted:f.minted,total:f.minted+f.left}),children:e.jsx("i",{style:{width:`${Math.round(f.minted/Math.max(1,f.minted+f.left)*100)}%`}})}),e.jsxs(Di,{title:f.lifetimeSold==null?void 0:i("myStore.runBreakdown",{total:f.minted+f.left,sold:f.lifetimeSold,sent:f.minted-f.lifetimeSold,left:f.left}),children:[e.jsx(Fi,{"data-out":f.left===0,"data-testid":"store-item-stock",children:Po(f.left===0?"myStore.stockNone":"myStore.stockLeft",{b:C=>e.jsx("b",{children:C}),left:f.left.toLocaleString(),total:(f.minted+f.left).toLocaleString()})}),j?e.jsx(Oi,{"data-testid":"store-item-issued",children:i("myStore.sentDirectly",{count:j.toLocaleString()})}):null]})]},f.key)})]}):null]})}function sn(t){return!!t&&!(t.current===0&&t.previous===0)}function rn({delta:t,period:n}){if(!t||t.current===0&&t.previous===0)return null;const s=n==="all"?"":n==="7d"||n==="30d"||n==="90d"?i(`myStore.vs${n}`):i("myStore.vsPrevious");if(t.pct===null)return e.jsxs(en,{"data-dir":"new","data-testid":"store-delta",children:[i("myStore.deltaNew"),s?e.jsx("span",{className:"delta__against",children:s}):null]});const l=Math.round(t.pct);if(l===0)return e.jsxs(en,{"data-dir":"flat","data-testid":"store-delta",children:[i("myStore.deltaFlat"),s?e.jsx("span",{className:"delta__against",children:s}):null]});const a=l>0,h=l>=1e3?i("myStore.deltaTimes",{times:Math.round(l/100+1).toLocaleString()}):`${Math.abs(l)}%`;return e.jsxs(en,{"data-dir":a?"up":"down","data-testid":"store-delta","aria-label":i(a?"myStore.deltaUpAria":"myStore.deltaDownAria",{pct:h,against:s}),children:[e.jsx("span",{className:"delta__arrow","aria-hidden":!0,children:a?"▲":"▼"}),h,s?e.jsx("span",{className:"delta__against",children:s}):null]})}function Tl(){return e.jsxs("div",{"data-testid":"store-skeleton","aria-hidden":!0,children:[e.jsx(qo,{children:[0,1,2,3].map(t=>e.jsxs(Ie,{children:[e.jsx(D,{style:{width:"46%"}}),e.jsx(D,{style:{width:"32%",height:38}}),e.jsx(D,{style:{width:"64%",height:15}})]},t))}),e.jsxs(ue,{style:{marginTop:22},children:[e.jsxs(Ue,{children:[e.jsx(D,{style:{width:96,height:14}}),e.jsx(D,{style:{width:120}})]}),e.jsxs(Yo,{children:[e.jsxs(Ko,{"aria-hidden":!0,children:[e.jsx("span",{}),e.jsx("span",{}),e.jsx(D,{style:{width:84,height:12}}),e.jsx(D,{style:{width:74,height:12}}),e.jsx(D,{style:{width:62,height:12}}),e.jsx(D,{style:{width:68,height:12}}),e.jsx(D,{style:{width:82,height:12}}),e.jsx(D,{style:{width:60,height:12}})]}),Array.from({length:Dt},(t,n)=>e.jsxs(Go,{children:[e.jsx("span",{}),e.jsx(Yi,{}),e.jsx(D,{style:{width:"82%",height:14}}),e.jsx(D,{style:{width:"70%",height:20}}),e.jsx(D,{style:{width:72}}),e.jsx(D,{style:{width:76}}),e.jsx(D,{style:{height:20}}),e.jsx(D,{style:{width:96,height:32,borderRadius:8}})]},n))]}),e.jsx(Ki,{as:"div",children:e.jsx(D,{style:{width:150,height:13,margin:"0 auto"}})})]}),e.jsx(Xo,{style:{marginTop:22},children:[0,1].map(t=>e.jsxs(ue,{children:[e.jsxs(Ue,{children:[e.jsx(D,{style:{width:110,height:14}}),e.jsx(D,{style:{width:80}})]}),e.jsx($o,{children:[0,1,2,3].map(n=>e.jsx(D,{style:{width:46,height:9}},n))}),Array.from({length:Ot},(n,s)=>e.jsxs(vo,{children:[e.jsx(D,{style:{width:"38%"}}),e.jsx(D,{style:{width:"24%"}}),e.jsx(D,{style:{width:56}}),e.jsx(D,{style:{width:64}})]},s))]},t))}),e.jsxs(ue,{style:{marginTop:22},children:[e.jsxs(Ue,{children:[e.jsx(D,{style:{width:104,height:14}}),e.jsx(D,{style:{width:90}})]}),e.jsx($o,{children:[0,1,2,3,4].map(t=>e.jsx(D,{style:{width:46,height:9}},t))}),Array.from({length:zt},(t,n)=>e.jsxs(vo,{children:[e.jsx(D,{style:{width:"30%"}}),e.jsx(D,{style:{width:"18%"}}),e.jsx(D,{style:{width:72,height:18}}),e.jsx(D,{style:{width:"14%"}}),e.jsx(D,{style:{width:54}})]},n))]})]})}function ec(){var On,Fn;Ts({title:i("myStore.title"),noindex:!0});const{session:t,error:n,signIn:s}=_s(),[l]=ks(),[a,d]=u.useState({key:"30d"}),[h,p]=u.useState(!1),y=u.useRef(null),[x,z]=u.useState(zr),f=u.useCallback(()=>p(!1),[]),j=a.key,C=u.useMemo(()=>Ur(a,Date.now()),[a]),U=j==="custom"&&C.from!=null?jl(C.from,C.to):i(`myStore.period${j}`),[L,I]=u.useState(()=>new Set),[_,E]=u.useState(0),[B,g]=u.useState(0),[F,R]=u.useState(!1),[W,le]=u.useState(wl),[w,M]=u.useState(0),[k,$]=u.useState(null),[P,T]=u.useState(null),[H,V]=u.useState(0),[Q,v]=u.useState(null),[N,ce]=u.useState({key:"nfts",dir:"desc"}),[ee,re]=u.useState(0),[de,Ft]=u.useState(!1),[Le,st]=u.useState(0),[fe,We]=u.useState(null),[S,ne]=u.useState(!1),pe=Ps(),[ts,ns]=u.useState(!1),xn=Es(),os=Rs(),q=Ml(l.get("mock")),je=l.get("env"),ss=$s("/").replace(/\/$/,""),rt=r=>`${ss}${r}`,gn=q;function O(r,m={}){gn||Fs(r,m)}const{data:ke}=Ds(t==null?void 0:t.address),Nt=t==null?void 0:t.address,{data:Te}=gr(Nt),yn=yr.filter(r=>Te==null?void 0:Te.links[r]),bn=(Fn=(On=ke==null?void 0:ke.avatar)==null?void 0:On.snapshots)==null?void 0:Fn.face256,wn=ke!=null&&ke.name?hn(ke.name):null,{stats:rs,trend:Sn,savesByKey:as,saleable:jn,sales:$e,previousEarnedUsd:kn,isLoading:is,error:ls}=Gr(t,C),b=q?fn:rs,Z=q?{...Sn,collectors:Fa,buyers:Na}:Sn,cs=q?!1:is,ds=q?qa:as,He=Cl(t==null?void 0:t.address,C,B),at=q?Ha:He.rows,hs=q?xo:$e.rows,$n=(C.from??Date.parse("2021-07-08T00:00:00Z"))-Math.max(400,(C.days??0)+31)*864e5,Bt=J({queryKey:["mana-usd-rates",$n,C.to],enabled:x==="usd"&&!q,staleTime:60*6e4,queryFn:()=>Dr($n,C.to)}),we=q?Ka:Bt.data??gl,Ut=u.useMemo(()=>q?new Map(((b==null?void 0:b.collections)??[]).flatMap(r=>r.items.map(m=>[m.key.toLowerCase(),dn(m.earnedWei,Lo)]))):qn($e.rows,we,r=>r.itemId===null||r.type!=="mint"?null:`${r.contractAddress.toLowerCase()}-${r.itemId}`).totals,[q,b,$e.rows,we]),ps=u.useMemo(()=>qn($e.rows,we,r=>r.buyer.toLowerCase()).totals,[$e.rows,we]),vn=x==="usd"?(b==null?void 0:b.earningsUsd)!=null&&kn!=null?ln(b.earningsUsd,kn):null:Z.earnings,us=r=>q?dn(r.spentWei,Lo):ps.get(r.address.toLowerCase())??null,ms=u.useMemo(()=>[...new Set(at.map(r=>r.buyer.toLowerCase()))].sort(),[at]),{data:it,isLoading:fs}=Mt(ms),Ke=Math.max(1,Math.ceil(Z.buyers.length/zt)),lt=Math.min(w,Ke-1),Cn=u.useMemo(()=>{if(!Q)return Z.buyers;const r={items:m=>m.items,collections:m=>m.collections,last:m=>m.lastAt,spent:m=>m.spentWei}[Q.key];return Je(Z.buyers,r,Q.dir)},[Z.buyers,Q]),qt=u.useMemo(()=>Cn.slice(lt*zt,(lt+1)*zt),[Cn,lt]),xs=u.useMemo(()=>qt.map(r=>r.address).sort(),[qt]),{data:ct}=Mt(xs),dt=J({queryKey:["store-top-owners",t==null?void 0:t.address,N.key,N.dir,ee],enabled:!q&&!!t,staleTime:5*6e4,placeholderData:r=>r,retry:(r,m)=>!(m instanceof Rt)&&r<1,queryFn:()=>uo(t.address,{sortBy:N.key,orderDirection:N.dir,first:vt,skip:ee*vt})});u.useEffect(()=>{const r=dt.error;!r||r instanceof Rt||r instanceof Uo&&r.status<500||Wo(r,{flow:"my_store",step:"top_owners"})},[dt.error]);const X=q?mo(N,ee,vt):dt.data,ve=Math.max(1,Math.ceil(((X==null?void 0:X.total)??0)/vt)),Mn=J({queryKey:["store-royalties",t==null?void 0:t.address,C.from??null,C.to,Le],enabled:de&&!q&&!!t,placeholderData:r=>r,queryFn:()=>kr({creator:t.address,from:C.from,to:C.to,first:Ct,skip:Le*Ct})}),oe=q?Ya(Le,Ct):Mn.data,Ye=Math.max(1,Math.ceil(((oe==null?void 0:oe.total)??0)/Ct)),gs=u.useMemo(()=>[...new Set(((oe==null?void 0:oe.data)??[]).map(r=>r.buyer.toLowerCase()))].sort(),[oe]),{data:ht}=Mt(gs),ys=u.useMemo(()=>new Map(((b==null?void 0:b.collections)??[]).flatMap(r=>r.items.map(m=>[`${r.contractAddress.toLowerCase()}-${m.itemId}`,{item:m,collection:r.name}]))),[b]),bs=u.useMemo(()=>((b==null?void 0:b.collections)??[]).flatMap(r=>r.items.filter(m=>m.left>0).map(m=>({contractAddress:r.contractAddress,itemId:m.itemId,name:m.name,thumbnail:m.thumbnail,collectionName:r.name,left:m.left}))).sort((r,m)=>m.left-r.left),[b]);u.useEffect(()=>{ee>ve-1&&re(ve-1)},[ee,ve]);const ws=u.useMemo(()=>((X==null?void 0:X.data)??[]).map(r=>r.address).sort(),[X]),{data:pt}=Mt(ws),{data:Ss}=Zs(t==null?void 0:t.address,xn&&!!t),ut=Math.max(1,Math.ceil(((b==null?void 0:b.collections.length)??0)/Dt)),An=u.useMemo(()=>{const r=(b==null?void 0:b.collections)??[];if(!k)return kl(r,W,x);const m={name:A=>A.name,claimed:A=>A.claimed,earnings:A=>x==="usd"?A.earningsUsd:A.earningsWei,sold:A=>A.sold}[k.key];return Je(r,m,k.dir)},[b,W,k,x]),xe=P??(j==="all"?{key:"earnings",dir:"desc"}:null),Ge=u.useMemo(()=>{const r=Ir((b==null?void 0:b.collections)??[],1/0),m={name:Y=>Y.name,collection:Y=>Y.collectionName,sold:Y=>Y.sold,earnings:Y=>x==="usd"?Ut.get(Y.key.toLowerCase())??null:Y.earnedWei},K=(j==="all"?Je(r,m.earnings,"desc"):r).map((Y,Ce)=>({...Y,rank:Ce+1}));return P?Je(K,m[P.key],P.dir):K},[b,P,x,Ut,j]);function mt(r,m){const A=jt(xe,r,m);O("Shop Sorted Store Table",{table:"best_sellers",column:A.key,direction:A.dir}),T(A),V(0)}const Ve=Math.max(1,Math.ceil(Ge.length/nn)),ft=Math.min(H,Ve-1),js=u.useMemo(()=>Ge.slice(ft*nn,(ft+1)*nn),[Ge,ft]),xt=Math.min(_,ut-1),In=u.useMemo(()=>An.slice(xt*Dt,(xt+1)*Dt),[An,xt]),Qe=`${C.from??"all"}-${C.to}`,Ln=Ne(ut>1,`${Qe}-${ut}`),Wn=Ne(Ve>1,`${Qe}-${Ve}`),Tn=Ne((q?1:He.pages)>1,`${Qe}-${He.pages}`),_n=Ne(Ke>1,`${Qe}-${Ke}`),Pn=Ne(ve>1,`${N.key}-${ve}`),En=Ne(Ye>1,`${Qe}-${Ye}`);if(os==="off")return e.jsx(vs,{to:"/",replace:!0});if(!t&&!q)return e.jsxs(zs,{children:[e.jsx(Os,{testId:"my-store-signin",icon:br,title:i("myStore.signInTitle"),body:i("myStore.signInBody"),cta:{label:i("storeSettings.signIn"),onClick:()=>s()},ctaVariant:"solid",fill:!0}),e.jsx(Nn,{message:n})]});const Rn=q?Ua:Ss,Ht=new Map;for(const r of Rn??[])if(!(r.status!=="active"&&r.status!=="scheduled"))for(const m of r.collections)Ht.set(m.toLowerCase(),r);const Dn=(Rn??[]).filter(r=>r.status==="active"||r.status==="scheduled"),zn=C.days,Kt=((b==null?void 0:b.collections)??[]).reduce((r,m)=>r+m.items.length,0);return e.jsx(sr,{children:e.jsx(rr,{children:e.jsx(es.Provider,{value:x,children:e.jsxs(Ga,{"data-testid":"my-store",children:[S&&X?e.jsx(wa,{creator:(t==null?void 0:t.address)??"mock",ownerCount:X.total,items:bs,loadOwners:async(r,m)=>q?mo({key:m,dir:"desc"},0,r).data:(await uo(t.address,{sortBy:m,orderDirection:"desc",first:r,skip:0})).data,onClose:()=>ne(!1),onTrack:O,onContinue:({item:r,recipients:m})=>{ne(!1),t&&We({item:r,contractAddress:r.contractAddress,recipients:m})}}):null,fe&&t?e.jsx(xr,{item:{contractAddress:fe.contractAddress,chainId:me.chainId,itemId:fe.item.itemId,name:fe.item.name,thumbnail:fe.item.thumbnail,available:fe.item.left},session:t,initialRecipients:fe.recipients,onClose:()=>{We(null),pe.invalidateQueries({queryKey:["store-catalogue"]}),pe.invalidateQueries({queryKey:["store-public-catalogue"]})}}):null,F&&t?e.jsx(Js,{session:t,collections:jn,onClose:()=>R(!1),source:"my_store",silent:gn}):null,e.jsxs(Va,{children:[e.jsxs(Qa,{children:[e.jsx(Za,{style:bn?{backgroundImage:`url(${bn})`}:void 0,"data-testid":"store-avatar","aria-hidden":!0}),e.jsxs(Xa,{children:[wn?e.jsx(Ja,{children:wn}):null,e.jsxs(ti,{children:[e.jsx(ei,{children:i("myStore.title")}),b?e.jsxs(go,{children:[i("myStore.summary",{collections:b.collections.length,items:Kt}),yn.length>0?e.jsx(ri,{"data-testid":"store-socials",children:yn.map(r=>e.jsx(ai,{href:(Te==null?void 0:Te.links[r])??"",target:"_blank",rel:"noopener noreferrer",onClick:()=>O("Shop Clicked Store Action",{action:"social_link",link_type:r}),title:i(`creator.link.${r}`),"aria-label":i(`creator.link.${r}`),children:e.jsx(te,{name:vl[r],className:"ico","aria-hidden":!0})},r))}):null]}):e.jsx(go,{children:e.jsx(D,{style:{width:170,background:"rgba(252, 252, 252, 0.18)",animation:"none"}})})]})]})]}),e.jsxs(ni,{children:[Nt?e.jsxs(oi,{href:rt(qe(`/items/creator/${Nt}`,je)),target:"_blank",rel:"noopener noreferrer",onClick:()=>O("Shop Clicked Store Action",{action:"view_public_store"}),"data-testid":"store-view-public",children:[i("myStore.viewPublicStore"),e.jsx(te,{name:"external-link",className:"ico","aria-hidden":!0})]}):null,e.jsxs(si,{to:qe("/store-settings",je),state:{from:"/my-store"},onClick:()=>O("Shop Clicked Store Action",{action:"edit_store"}),"data-testid":"store-edit",children:[e.jsx(te,{name:"pen",className:"ico","aria-hidden":!0}),i("myStore.editStore")]})]})]}),e.jsxs(ii,{children:[e.jsx(li,{children:i("myStore.performance")}),e.jsxs(ci,{children:[e.jsx(di,{role:"group","aria-label":i("myStore.currency"),children:["mana","usd"].map(r=>e.jsx(mi,{type:"button","aria-pressed":x===r,"aria-label":i(r==="usd"?"myStore.currencyUsd":"myStore.currencyPaid"),title:i(r==="usd"?"myStore.currencyUsd":"myStore.currencyPaid"),onClick:()=>{r!==x&&(O("Shop Changed Store Currency",{currency:r}),z(r),Or(r))},"data-testid":`store-currency-${r}`,children:r==="usd"?"$":e.jsx(he,{kind:"mana"})},r))}),e.jsxs(pi,{children:[e.jsxs(ui,{type:"button","aria-expanded":h,"aria-haspopup":"dialog","data-range-trigger":"","aria-label":`${i("myStore.period")}: ${U}`,onClick:()=>{var r;return h?(r=y.current)==null?void 0:r.close():p(!0)},"data-testid":"store-period-trigger",children:[e.jsx(te,{name:"calendar",size:16,"aria-hidden":!0}),e.jsx("span",{children:U}),e.jsx(te,{name:"chevron-down",size:16,"aria-hidden":!0,"data-open":h?"":void 0})]}),h?e.jsx(Ta,{handle:y,from:C.from??C.to-29*864e5,to:C.to,max:Date.now(),presets:Fr.filter(r=>r!=="custom").map(r=>({key:r,label:i(`myStore.period${r}`),active:j===r,onPick:()=>{r!==j&&O("Shop Changed Store Period",{period:r,previous_period:j}),d({key:r}),p(!1),g(0)}})),onClose:f,onApply:(r,m)=>{O("Shop Changed Store Period",{period:"custom",previous_period:j,days:Math.round((m-r)/864e5)+1}),d({key:"custom",from:r,to:m}),p(!1),g(0)}}):null]})]})]}),x==="usd"&&!q&&Bt.isError?e.jsx(yo,{"data-testid":"store-usd-unavailable",children:i("myStore.usdUnavailable")}):x==="usd"&&b&&b.unpricedSales>0?e.jsx(yo,{"data-testid":"store-usd-unpriced",children:i("myStore.usdUnpriced",{count:b.unpricedSales})}):null,e.jsx(Nn,{message:ls?i("myStore.error"):null,testId:"my-store-error"}),cs||!b?e.jsx(Tl,{}):e.jsxs(e.Fragment,{children:[e.jsxs(qo,{"aria-label":i("myStore.summaryAria"),children:[e.jsxs(Ie,{children:[e.jsxs(_e,{children:[i("myStore.tileSold"),e.jsx(Pe,{"aria-hidden":!0,children:"🛍️"})]}),e.jsx(Ee,{children:e.jsx("span",{"data-testid":"store-sold",children:b.sold.toLocaleString()})}),e.jsxs(Re,{children:[e.jsx(rn,{delta:Z.sold,period:j}),!sn(Z.sold)&&(b.sold===0?i("myStore.tileSoldNone"):b.resales===0?i("myStore.tileSoldFootMintsOnly",{mints:b.mints}):i("myStore.tileSoldFoot",{mints:b.mints,resales:b.resales}))]})]}),e.jsxs(Ie,{children:[e.jsxs(_e,{children:[i("myStore.tileEarnings"),e.jsx(Pe,{"aria-hidden":!0,children:"💰"})]}),e.jsxs(Ee,{"data-testid":"store-earnings",children:[e.jsx(Se,{wei:b.earningsWei,usd:b.earningsUsd}),x==="usd"?null:e.jsx(bo,{children:i("myStore.manaUnit")})]}),e.jsxs(Re,{children:[e.jsx(rn,{delta:vn,period:j}),b.partial?e.jsxs(e.Fragment,{children:[e.jsx(wo,{children:i("myStore.estimate")})," ",i("myStore.tileEarningsPartial")]}):sn(vn)?null:i("myStore.tileEarningsFoot")]})]}),e.jsxs(Ie,{children:[e.jsxs(_e,{children:[i("myStore.tileListed"),e.jsx(Pe,{"aria-hidden":!0,children:"🏷️"})]}),e.jsxs(Ee,{children:[b.listed+b.classic,e.jsx(bo,{children:i("myStore.ofTotal",{n:Kt})})]}),e.jsx(Re,{children:Kt===0?i("myStore.tileListedNone"):i("myStore.tileListedFoot",{count:b.neverListed})})]}),e.jsxs(Ie,{children:[e.jsxs(_e,{children:[i("myStore.tileDiscounts"),e.jsx(Pe,{"aria-hidden":!0,children:"🔥"})]}),e.jsx(Ee,{"data-testid":"store-discounts",children:Dn.length}),e.jsx(Re,{children:Dn.length>0?i("myStore.tileDiscountsFoot"):i("myStore.tileDiscountsNone")})]})]}),e.jsx(ue,{"aria-labelledby":"store-chart-h","data-testid":"store-chart-panel",children:e.jsx(ha,{heading:e.jsxs("div",{children:[e.jsx(Ae,{id:"store-chart-h",children:i("myStore.chart.title")}),e.jsx(tn,{children:i("myStore.chart.sub")})]}),address:t==null?void 0:t.address,range:C,rows:hs,truncated:$e.truncated,fetching:$e.isFetching||x==="usd"&&!q&&Bt.isFetching,collections:b.collections,onTrack:O,comparisonRows:q?xo:void 0,currency:x,rateBook:we})}),b.classic>0&&!ts?e.jsx(er,{count:b.classic,reason:"discounts",to:qe("/activity?section=listings",je),onDismiss:()=>{O("Shop Clicked Store Action",{action:"dismiss_pricing_banner",classic_items:b.classic}),ns(!0)},onCta:()=>O("Shop Clicked Store Action",{action:"update_prices",classic_items:b.classic})}):null,e.jsxs(ue,{"aria-labelledby":"store-coll-h",children:[e.jsxs(cl,{children:[e.jsx(Ae,{id:"store-coll-h",children:i("myStore.collectionsCount",{count:b.collections.length})}),e.jsxs(dl,{children:[b.collections.length>1?e.jsx(gi,{options:[{value:"sold",label:i("myStore.sortSold")},{value:"earned",label:i("myStore.sortEarned")},...b.collections.some(r=>r.createdAt)?[{value:"newest",label:i("myStore.sortNewest")}]:[],{value:"name",label:i("myStore.sortName")}],value:k?void 0:W,placeholder:i("myStore.sortCustom"),onChange:r=>{O("Shop Sorted Store Collections",{sort:r}),le(r),$(null),E(0),Sl(r)},align:"right",ariaLabel:i("myStore.sortBy"),className:"store-sort"}):null,q||xn&&t&&jn.length>0?e.jsxs(an,{variant:"red",size:"sm",onClick:()=>R(!0),"data-testid":"store-new-discount",children:[e.jsx("span",{"aria-hidden":!0,children:"🔥"}),i("myStore.newDiscount")]}):null]})]}),b.collections.length===0?e.jsx(ge,{children:i("myStore.noCollections")}):e.jsx(e.Fragment,{children:e.jsxs(Yo,{ref:Ln.ref,style:Ln.style,children:[e.jsxs(Ko,{children:[e.jsx("span",{}),e.jsx("span",{}),[["name",i("myStore.colCollection"),"asc"],null,["claimed",i("myStore.colClaimed"),"desc"],["earnings",i("myStore.colEarnings"),"desc"],["sold",zn?i("myStore.colTrend",{days:zn}):i("myStore.colTrendAll"),"desc"]].map((r,m)=>r?e.jsx("span",{children:e.jsx(Me,{label:r[1],dir:se(k,r[0]),testId:`store-sort-collections-${r[0]}`,onSort:()=>{const A=jt(k,r[0],r[2]);O("Shop Sorted Store Table",{table:"collections",column:A.key,direction:A.dir}),$(A),E(0)}})},r[0]):e.jsx("span",{children:i("myStore.colDiscounts")},`plain-${m}`)),e.jsx("span",{children:i("myStore.colActions")})]}),In.map(r=>e.jsx(Wl,{collection:r,discount:Ht.get(r.contractAddress)??null,savesByKey:ds,env:je,open:L.has(r.contractAddress),onToggle:()=>{L.has(r.contractAddress)||O("Shop Expanded Store Collection",{contract_address:r.contractAddress,items:r.items.length,exhausted:r.exhausted,has_discount:Ht.has(r.contractAddress)}),I(m=>{const A=new Set(m);return A.delete(r.contractAddress)||A.add(r.contractAddress),A})},onManage:()=>O("Shop Clicked Store Action",{action:"manage_collection",contract_address:r.contractAddress}),onIssue:t?m=>{O("Shop Clicked Store Action",{action:"issue_copies",contract_address:r.contractAddress}),We({item:m,contractAddress:r.contractAddress})}:void 0},r.contractAddress))]})}),b.collections.length>0?e.jsxs(ze,{children:[e.jsxs("span",{"data-testid":"store-showing",children:[i("myStore.showingOf",{shown:In.length.toLocaleString(),total:b.collections.length.toLocaleString()}),b.breakdownPartial?e.jsxs(e.Fragment,{children:[" · ",i("myStore.soldPartial",{n:b.fetched.toLocaleString()})]}):null]}),e.jsx(Fe,{page:xt,pages:ut,onChange:r=>{O("Shop Paged Store Table",{table:"collections",page:r+1}),E(r)},name:"collections"})]}):null]}),e.jsxs(Xo,{children:[e.jsxs(ue,{"aria-labelledby":"store-best-h",children:[e.jsx(Co,{children:e.jsxs("div",{children:[e.jsx(Ae,{id:"store-best-h",children:i("myStore.bestSellers")}),e.jsxs(tn,{children:[i("myStore.bestSellersSub",{n:Ge.length}),b.breakdownPartial?e.jsxs(e.Fragment,{children:[" · ",i("myStore.soldPartial",{n:b.fetched.toLocaleString()})]}):null]})]})}),Ge.length===0?e.jsx(ge,{children:i("myStore.noBestSellers")}):e.jsx(Ze,{ref:Wn.ref,style:Wn.style,children:e.jsxs(fl,{children:[e.jsx("thead",{children:e.jsxs("tr",{children:[e.jsx("th",{scope:"col","aria-sort":Oe(se(xe,"name")),children:e.jsxs(Ao,{children:[e.jsx(Mo,{"aria-hidden":!0,children:"#"}),e.jsx(Me,{label:i("myStore.colItem"),dir:se(xe,"name"),testId:"store-sort-best-name",onSort:()=>mt("name","asc")})]})}),e.jsx("th",{scope:"col","aria-sort":Oe(se(xe,"collection")),children:e.jsx(Me,{label:i("myStore.colCollection"),dir:se(xe,"collection"),testId:"store-sort-best-collection",onSort:()=>mt("collection","asc")})}),e.jsx("th",{scope:"col",style:{textAlign:"center"},"aria-sort":Oe(se(xe,"sold")),children:e.jsx(Me,{label:i("myStore.colSold"),dir:se(xe,"sold"),testId:"store-sort-best-sold",onSort:()=>mt("sold","desc")})}),e.jsx("th",{scope:"col",style:{textAlign:"right"},"aria-sort":Oe(se(xe,"earnings")),children:e.jsx(Me,{label:i("myStore.colEarnings"),dir:se(xe,"earnings"),align:"right",testId:"store-sort-best-earnings",onSort:()=>mt("earnings","desc")})})]})}),e.jsx("tbody",{children:js.map(r=>e.jsxs("tr",{"data-testid":"store-best",children:[e.jsx("td",{children:e.jsxs(Ao,{children:[e.jsx(Mo,{children:r.rank}),e.jsxs(Zt,{as:"a",href:rt(on(r.contractAddress,r.itemId,je)),target:"_blank",rel:"noopener noreferrer",onClick:()=>O("Shop Clicked Store Action",{action:"open_item",table:"best_sellers",rank:r.rank}),"data-testid":"store-best-item",children:[e.jsx(Jt,{style:{backgroundImage:Wt(r.rarity)},children:r.thumbnail?e.jsx("img",{src:r.thumbnail,alt:"",loading:"lazy"}):null}),e.jsx("span",{children:r.name})]})]})}),e.jsx("td",{"data-dim":!0,children:r.collectionName}),e.jsx("td",{style:{textAlign:"center",fontWeight:600},"data-testid":"store-best-sold",children:r.sold.toLocaleString()}),e.jsx("td",{"data-money":!0,children:e.jsx(De,{children:e.jsx(Se,{wei:r.earnedWei,usd:Ut.get(r.key.toLowerCase())??null})})})]},r.key))})]})}),Ve>1?e.jsxs(ze,{children:[e.jsx("span",{}),e.jsx(Fe,{page:ft,pages:Ve,onChange:r=>{O("Shop Paged Store Table",{table:"best_sellers",page:r+1}),V(r)},name:"best"})]}):null]}),e.jsxs(ue,{"aria-labelledby":"store-feed-h",children:[e.jsxs(Co,{children:[e.jsxs("div",{children:[e.jsx(Ae,{id:"store-feed-h",children:i("myStore.recentSales")}),e.jsx(tn,{children:i("myStore.recentSalesSub")})]}),e.jsxs(ml,{to:"/activity",onClick:()=>O("Shop Clicked Store Action",{action:"view_all_sales"}),children:[i("myStore.viewAll"),e.jsx(te,{name:"arrow-up-right",size:14,"aria-hidden":!0})]})]}),at.length===0?e.jsx(ge,{children:i("myStore.noSales")}):e.jsx(Ze,{ref:Tn.ref,style:Tn.style,children:e.jsxs(xl,{children:[e.jsx("thead",{children:e.jsxs("tr",{children:[e.jsx("th",{scope:"col",children:i("myStore.colItem")}),e.jsx("th",{scope:"col",children:i("myStore.colCollection")}),e.jsx("th",{scope:"col",style:{textAlign:"right"},children:i("myStore.colPrice")}),e.jsx("th",{scope:"col",children:i("myStore.colBuyer")}),e.jsx("th",{scope:"col",children:i("myStore.colDate")})]})}),e.jsx("tbody",{children:at.map(r=>{var Ce,Xe;const m=b.collections.find(Yt=>Yt.contractAddress===r.contractAddress.toLowerCase()),A=m==null?void 0:m.items.find(Yt=>Yt.itemId===r.itemId),K=it==null?void 0:it.get(r.buyer.toLowerCase()),Y=(Xe=(Ce=K==null?void 0:K.avatar)==null?void 0:Ce.snapshots)==null?void 0:Xe.face256;return e.jsxs("tr",{"data-testid":"store-sale",children:[e.jsx("td",{children:e.jsxs(Zt,{as:r.itemId?"a":"span",...r.itemId?{href:rt(on(r.contractAddress,r.itemId,je)),target:"_blank",rel:"noopener noreferrer",onClick:()=>O("Shop Clicked Store Action",{action:"open_item",table:"recent_sales"}),"data-testid":"store-sale-item"}:{},children:[e.jsx(Jt,{style:{backgroundImage:Wt(A==null?void 0:A.rarity)},children:A!=null&&A.thumbnail?e.jsx("img",{src:A.thumbnail,alt:"",loading:"lazy"}):null}),e.jsxs(Io,{children:[e.jsx("span",{children:(A==null?void 0:A.name)??(m==null?void 0:m.name)??r.itemId??i("myStore.unknownItem")}),e.jsx(Tt,{content:i("myStore.kindHint"),children:e.jsx(Hi,{"data-kind":r.type,"data-testid":"store-kind-hint",children:r.type==="mint"?i("myStore.kindMint"):i("myStore.kindResale")})})]})]})}),e.jsx("td",{"data-dim":!0,children:(m==null?void 0:m.name)??"—"}),e.jsx("td",{"data-money":!0,children:e.jsx(De,{children:e.jsx(Se,{wei:G(r.price),usd:et(r,we)})})}),e.jsx("td",{children:fs?e.jsxs(Ni,{"aria-hidden":!0,children:[e.jsx("i",{}),e.jsx("b",{})]}):e.jsxs(kt,{href:At(r.buyer),target:"_blank",rel:"noopener noreferrer",onClick:()=>O("Shop Clicked Store Action",{action:"open_buyer",table:"recent_sales"}),"data-testid":"store-sale-buyer",children:[e.jsx($t,{style:Y?{backgroundImage:`url(${Y})`}:void 0,"aria-hidden":!0}),It(r.buyer,it)]})}),e.jsx("td",{"data-dim":!0,children:Lt(r.timestamp)})]},r.id)})})]})}),He.pages>1?e.jsxs(ze,{children:[e.jsx("span",{}),e.jsx(Fe,{page:B,pages:He.pages,onChange:r=>{O("Shop Paged Store Table",{table:"recent_sales",page:r+1}),g(r)},name:"sales"})]}):null]})]}),e.jsxs(Vi,{children:[e.jsx(Qi,{id:"store-audience-h",children:i("myStore.audience")}),e.jsx(Xi,{children:i("myStore.audienceSub")})]}),e.jsxs(Zi,{children:[e.jsxs(Ie,{children:[e.jsxs(_e,{children:[e.jsxs("span",{children:[i("myStore.tileCollectors"),e.jsx(Tt,{content:i("myStore.collectorsHint"),children:e.jsx(jo,{type:"button","aria-label":i("myStore.tileCollectors"),"data-testid":"store-collectors-hint",children:e.jsx(te,{name:"info",className:"ico","aria-hidden":!0})})})]}),e.jsx(Pe,{"aria-hidden":!0,children:"👥"})]}),e.jsx(Ee,{"data-testid":"store-collectors",children:Z.collectors.total.toLocaleString()}),e.jsx(Re,{children:Z.collectors.total===0?i("myStore.tileCollectorsNone"):e.jsxs(e.Fragment,{children:[b.breakdownPartial?e.jsxs(e.Fragment,{children:[e.jsx(wo,{children:i("myStore.estimate")})," "]}):null,Z.collectors.topSharePct>=50?i("myStore.tileCollectorsConcentrated",{pct:Math.floor(Z.collectors.topSharePct)}):i("myStore.tileCollectorsFoot",{repeat:Z.collectors.repeat,pct:Math.round(Z.collectors.repeatPct)})]})})]}),b.royalties?e.jsxs(Ie,{children:[e.jsxs(_e,{children:[e.jsxs("span",{children:[i("myStore.tileRoyalties"),e.jsx(Tt,{content:i("myStore.royaltiesHint"),children:e.jsx(jo,{type:"button","aria-label":i("myStore.tileRoyalties"),"data-testid":"store-royalties-hint",children:e.jsx(te,{name:"info",className:"ico","aria-hidden":!0})})})]}),e.jsx(Pe,{"aria-hidden":!0,children:"🔁"})]}),e.jsxs(Ee,{"data-testid":"store-royalties",children:[b.royalties.paidWei!=null?null:e.jsx(fi,{children:"≈"}),e.jsx(he,{kind:"mana"}),Be(b.royalties.paidWei??Il(b.royalties.volumeWei))]}),e.jsxs(Re,{children:[e.jsx(rn,{delta:Z.royalties,period:j}),sn(Z.royalties)?null:e.jsx("span",{children:Po("myStore.tileRoyaltiesFoot",{m:r=>e.jsxs(e.Fragment,{children:[e.jsx(he,{kind:"mana"}),r]}),count:b.royalties.resales,volume:Be(b.royalties.volumeWei)})})]}),b.royalties.resales>0?e.jsxs(el,{type:"button","aria-expanded":de,"aria-controls":"store-royalties-panel",onClick:()=>{de||O("Shop Clicked Store Action",{action:"open_royalties"}),Ft(r=>!r),st(0)},"data-testid":"store-royalties-open",children:[i(de?"myStore.royaltiesHide":"myStore.royaltiesShow"),e.jsx(te,{name:"chevron-down",size:14,"aria-hidden":!0,style:{transform:de?"rotate(180deg)":void 0}})]}):null]}):null]}),de?e.jsxs(ue,{id:"store-royalties-panel","aria-labelledby":"store-royalties-h","data-testid":"store-royalties-panel",children:[e.jsxs(Ue,{children:[e.jsx(Ae,{id:"store-royalties-h",children:i("myStore.royaltiesTitle")}),e.jsx(Xt,{children:i("myStore.royaltiesSub")})]}),oe?oe.total===0?e.jsx(ge,{"data-testid":"store-royalties-none",children:i("myStore.royaltiesNone")}):e.jsx(Ze,{ref:En.ref,style:En.style,children:e.jsxs(Ji,{children:[e.jsx("thead",{children:e.jsxs("tr",{children:[e.jsx("th",{scope:"col",children:i("myStore.colItem")}),e.jsx("th",{scope:"col",children:i("myStore.colDate")}),e.jsx("th",{scope:"col",children:i("myStore.colBuyer")}),e.jsx("th",{scope:"col",style:{textAlign:"right"},children:i("myStore.colResoldFor")}),e.jsx("th",{scope:"col",style:{textAlign:"right"},children:i("myStore.colRoyalty")})]})}),e.jsx("tbody",{children:oe.data.map(r=>{var Y,Ce,Xe;const m=r.itemId===null?void 0:ys.get(`${r.contractAddress.toLowerCase()}-${r.itemId}`),A=(Xe=(Ce=(Y=ht==null?void 0:ht.get(r.buyer.toLowerCase()))==null?void 0:Y.avatar)==null?void 0:Ce.snapshots)==null?void 0:Xe.face256,K={timestamp:r.timestamp};return e.jsxs("tr",{"data-testid":"store-royalty",children:[e.jsx("td",{children:e.jsxs(Zt,{as:"a",...r.itemId?{href:rt(on(r.contractAddress,r.itemId,je)),target:"_blank",rel:"noopener noreferrer"}:{},children:[e.jsx(Jt,{style:{backgroundImage:Wt(m==null?void 0:m.item.rarity)},children:m!=null&&m.item.thumbnail?e.jsx("img",{src:m.item.thumbnail,alt:"",loading:"lazy"}):null}),e.jsxs(Io,{children:[e.jsx("span",{children:(m==null?void 0:m.item.name)??i("myStore.unknownItem")}),m?e.jsx("small",{children:m.collection}):null]})]})}),e.jsx("td",{"data-dim":!0,children:Lt(r.timestamp)}),e.jsx("td",{children:e.jsxs(kt,{href:At(r.buyer),target:"_blank",rel:"noopener noreferrer",children:[e.jsx($t,{style:A?{backgroundImage:`url(${A})`}:void 0,"aria-hidden":!0}),It(r.buyer,ht)]})}),e.jsx("td",{"data-money":!0,"data-dim":!0,children:e.jsx(De,{children:e.jsx(Se,{wei:G(r.priceWei),usd:et({...K,price:r.priceWei},we)})})}),e.jsx("td",{"data-money":!0,"data-testid":"store-royalty-amount",children:e.jsx(De,{children:e.jsx(Se,{wei:G(r.royaltyWei),usd:et({...K,price:r.royaltyWei},we)})})})]},r.id)})})]})}):Mn.isError?e.jsx(ge,{"data-testid":"store-royalties-error",children:i("myStore.royaltiesError")}):e.jsx(ge,{children:i("myStore.royaltiesLoading")}),oe&&Ye>1?e.jsxs(ze,{children:[e.jsxs("span",{children:[i("myStore.royaltiesCount",{count:oe.total})," · ",e.jsx(he,{kind:"mana"}),Be(G(oe.royaltiesWei))]}),e.jsx(Fe,{page:Math.min(Le,Ye-1),pages:Ye,onChange:r=>{O("Shop Paged Store Table",{table:"royalties",page:r+1}),st(r)},name:"royalties"})]}):null]}):null,e.jsxs(ue,{"aria-labelledby":"store-buyers-h",children:[e.jsxs(Ue,{children:[e.jsx(Ae,{id:"store-buyers-h",children:i("myStore.buyers")}),e.jsx(Xt,{children:i("myStore.buyersHint")})]}),Z.buyers.length===0?e.jsx(ge,{"data-testid":"store-buyers-none",children:i("myStore.noBuyers")}):e.jsx(Ze,{ref:_n.ref,style:_n.style,children:e.jsxs(tl,{children:[e.jsx("thead",{children:e.jsxs("tr",{children:[e.jsx("th",{scope:"col",children:i("myStore.colBuyer")}),[["items",i("myStore.colItems"),"desc"],["collections",i("myStore.colCollections"),"desc"],["last",i("myStore.colLast"),"desc"],["spent",i("myStore.colSpent"),"desc"]].map(([r,m,A])=>e.jsx("th",{scope:"col",style:r==="spent"?{textAlign:"right"}:void 0,"aria-sort":Oe(se(Q,r)),children:e.jsx(Me,{label:m,dir:se(Q,r),align:r==="spent"?"right":"left",testId:`store-sort-buyers-${r}`,onSort:()=>{const K=jt(Q,r,A);O("Shop Sorted Store Table",{table:"buyers",column:K.key,direction:K.dir}),v(K),M(0)}})},r))]})}),e.jsx("tbody",{children:qt.map(r=>{var A,K,Y;const m=(Y=(K=(A=ct==null?void 0:ct.get(r.address))==null?void 0:A.avatar)==null?void 0:K.snapshots)==null?void 0:Y.face256;return e.jsxs("tr",{"data-testid":"store-buyer",children:[e.jsx("td",{children:e.jsxs(kt,{href:At(r.address),target:"_blank",rel:"noopener noreferrer",onClick:()=>O("Shop Clicked Store Action",{action:"open_buyer",table:"buyers"}),"data-testid":"store-buyer-name",children:[e.jsx($t,{style:m?{backgroundImage:`url(${m})`}:void 0,"aria-hidden":!0}),It(r.address,ct)]})}),e.jsx("td",{"data-dim":!0,children:i("myStore.buyerItems",{count:r.items})}),e.jsx("td",{"data-dim":!0,children:i("myStore.buyerCollections",{count:r.collections})}),e.jsx("td",{"data-dim":!0,children:Lt(r.lastAt)}),e.jsx("td",{"data-money":!0,children:e.jsx(De,{children:e.jsx(Se,{wei:r.spentWei,usd:us(r)})})})]},r.address)})})]})}),Ke>1?e.jsxs(ze,{children:[e.jsx("span",{}),e.jsx(Fe,{page:lt,pages:Ke,onChange:r=>{O("Shop Paged Store Table",{table:"buyers",page:r+1}),M(r)},name:"buyers"})]}):null]}),X||dt.error instanceof Rt?e.jsxs(ue,{"aria-labelledby":"store-owners-h","data-testid":"store-owners-panel",children:[e.jsxs(Ue,{children:[e.jsx(Ae,{id:"store-owners-h",children:i("myStore.owners")}),e.jsxs(xi,{children:[e.jsx(Xt,{children:i("myStore.ownersHint")}),(t||q)&&X&&X.total>0?e.jsxs(an,{variant:"red",size:"sm",onClick:()=>{O("Shop Clicked Store Action",{action:"reward_owners"}),ne(!0)},"data-testid":"store-reward-owners",children:[e.jsx("span",{"aria-hidden":!0,children:"🎁"}),i("myStore.rewardOwners")]}):null]})]}),X?X.total===0?e.jsx(ge,{"data-testid":"store-owners-none",children:i("myStore.noOwners")}):e.jsx(Ze,{ref:Pn.ref,style:Pn.style,children:e.jsxs(nl,{children:[e.jsx("thead",{children:e.jsxs("tr",{children:[e.jsx("th",{scope:"col",children:i("myStore.colOwner")}),yl.map(({key:r,label:m,first:A})=>e.jsx("th",{scope:"col",style:r==="spent"?{textAlign:"right"}:void 0,"aria-sort":Oe(se(N,r)),children:e.jsx(Me,{label:i(m),dir:se(N,r),align:r==="spent"?"right":"left",testId:`store-sort-owners-${r}`,onSort:()=>{const K=jt(N,r,A);O("Shop Sorted Store Table",{table:"owners",column:K.key,direction:K.dir}),ce(K),re(0)}})},r))]})}),e.jsx("tbody",{children:X.data.map(r=>{var A,K,Y;const m=(Y=(K=(A=pt==null?void 0:pt.get(r.address))==null?void 0:A.avatar)==null?void 0:K.snapshots)==null?void 0:Y.face256;return e.jsxs("tr",{"data-testid":"store-owner",children:[e.jsx("td",{children:e.jsxs(kt,{href:At(r.address),target:"_blank",rel:"noopener noreferrer",onClick:()=>O("Shop Clicked Store Action",{action:"open_owner",table:"owners"}),"data-testid":"store-owner-name",children:[e.jsx($t,{style:m?{backgroundImage:`url(${m})`}:void 0,"aria-hidden":!0}),It(r.address,pt)]})}),e.jsx("td",{"data-testid":"store-owner-nfts",children:r.nfts.toLocaleString()}),e.jsx("td",{"data-dim":!0,children:i("myStore.buyerItems",{count:r.items})}),e.jsx("td",{"data-dim":!0,children:i("myStore.buyerCollections",{count:r.collections})}),e.jsx("td",{"data-dim":!0,children:Lt(r.lastAcquiredAt)}),e.jsx("td",{"data-money":!0,children:e.jsxs(De,{children:[e.jsx(he,{kind:"mana"}),Be(G(r.spentWei))]})})]},r.address)})})]})}):e.jsx(ge,{"data-testid":"store-owners-unavailable",children:i("myStore.ownersUnavailable")}),X&&ve>1?e.jsxs(ze,{children:[e.jsx("span",{children:i("myStore.ownersCount",{count:X.total})}),e.jsx(Fe,{page:ee,pages:ve,onChange:r=>{O("Shop Paged Store Table",{table:"owners",page:r+1}),re(r)},name:"owners"})]}):null]}):null]})]})})})})}export{ec as MyStore,ec as default};
2324
+ //# sourceMappingURL=MyStore-CdTXUo-D.js.map