@dcl/shop 1.17.2-36417112568.commit-e2afc81 → 1.17.2-36419433889.commit-c47371d

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