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