@dcl/shop 1.17.2-36417112568.commit-e2afc81 → 1.17.2-36418293890.commit-220d68e

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