@dcl/shop 1.16.0 → 1.16.1-36009595531.commit-94584a5
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-DnfPbi6I.js +400 -0
- package/_assets/{AnimatedBackground-CCv_8WvR.js → AnimatedBackground-DMoJIXm4.js} +2 -2
- package/_assets/{Assets-G4zKJq-g.js → Assets-CeTv3PQS.js} +3 -3
- package/_assets/{Cart-DsQMnYFW.js → Cart-XTP_NTRb.js} +2 -2
- package/_assets/{Collection-C4njSIXs.js → Collection-Kg9-iA_F.js} +7 -7
- package/_assets/{CollectionCarousel-Dg8w-Ze2.js → CollectionCarousel-KDiNS7Z2.js} +5 -5
- package/_assets/{Confetti-DcqbQMk-.js → Confetti-CCN1Rj6u.js} +4 -4
- package/_assets/{ConstantsUtil-CEwS_5e4.js → ConstantsUtil-DTRWtii2.js} +2 -2
- package/_assets/{ContentClient-BW1JgVbg.js → ContentClient-DTdXtBSl.js} +2 -2
- package/_assets/Creator-tRdc-i6W.js +312 -0
- package/_assets/{CreditPackPicker-D6M8C5at.js → CreditPackPicker-DC2Uhrv6.js} +2 -2
- package/_assets/CreditRate-Dzg044Lg.js +35 -0
- package/_assets/{DeploymentBuilder-Yv8ck1p_.js → DeploymentBuilder-DFQ5QdOZ.js} +3 -3
- package/_assets/{EmotePlaybackBar-DamRJKE8.js → EmotePlaybackBar-CDv0UlNn.js} +3 -3
- package/_assets/{ErrorNotice-5cQusmGK.js → ErrorNotice-BndI9TcU.js} +2 -2
- package/_assets/{Event-DNSKDhvo.js → Event-kW78ULJG.js} +5 -5
- package/_assets/{ExchangeController-DnyR_njB.js → ExchangeController-DjXLLKM5.js} +2 -2
- package/_assets/{Faq-DB62IPDv.js → Faq-CcOpCC4Z.js} +2 -2
- package/_assets/{Filters-DZJTBasv.js → Filters-D_wo8nf7.js} +2 -2
- package/_assets/{GetCredits-CQDD4Y7M.js → GetCredits-C9KlxvdS.js} +5 -5
- package/_assets/{Grow-Dqkd-8TJ.js → Grow-CJJkPu7p.js} +2 -2
- package/_assets/{HelpersUtil-CefOE7SN.js → HelpersUtil-S-ipA7d_.js} +4 -4
- package/_assets/{ItemDetail-BhOAzg_H.js → ItemDetail-DxChv0Az.js} +32 -32
- package/_assets/{LoadMore-yxZw85kf.js → LoadMore-CCDkdfxt.js} +2 -2
- package/_assets/ManaPricingBanner-C5SbV_Cy.js +684 -0
- package/_assets/ManaPricingBanner.styles-Bys2rCoo.js +96 -0
- package/_assets/MyAssets-C0wGKI5K.js +497 -0
- package/_assets/{MyFavorites-C8PXtYWt.js → MyFavorites-Cwv-npnC.js} +4 -4
- package/_assets/MyStore-BF6s2HmL.js +1630 -0
- package/_assets/{NetworkUtil-DB3XDe5L.js → NetworkUtil-Dn6I5ZVR.js} +2 -2
- package/_assets/{NotFound-Bvz1-F-x.js → NotFound-D2HuPI4c.js} +2 -2
- package/_assets/{NotificationsBell-CkfnfOhR.js → NotificationsBell-C8ye5ghN.js} +13 -13
- package/_assets/{OutfitDetail-Bnstzwcb.js → OutfitDetail-CDfyVMhI.js} +2 -2
- package/_assets/OutfitPreview-C7YIhS7h.js +7 -0
- package/_assets/{OutfitStudio-CDJQlhEd.js → OutfitStudio-CDLiO2FU.js} +11 -11
- package/_assets/{PaymentMethodStep-Dmy4hMV3.js → PaymentMethodStep-DvFcy0mk.js} +3 -3
- package/_assets/{PhArrowCircleDown-oZRgIV6I.js → PhArrowCircleDown-BgP2jbf5.js} +3 -3
- package/_assets/{PhArrowClockwise-D6H6uB8s.js → PhArrowClockwise-CuNU0iSl.js} +2 -2
- package/_assets/{PhArrowDown-CRBvhObC.js → PhArrowDown-BrLks3Uz.js} +4 -4
- package/_assets/{PhArrowLeft-iC7ALVz_.js → PhArrowLeft-BbZGSN_s.js} +5 -5
- package/_assets/{PhArrowRight-BMhSphsR.js → PhArrowRight-DqLi6_uj.js} +4 -4
- package/_assets/{PhArrowSquareOut-BGOFtcYV.js → PhArrowSquareOut-CX0ZRgNC.js} +4 -4
- package/_assets/{PhArrowUp-DaOakyLF.js → PhArrowUp-D9ugstgK.js} +3 -3
- package/_assets/{PhArrowUpRight-Dv-X4w2R.js → PhArrowUpRight-Bpfn12eW.js} +4 -4
- package/_assets/{PhArrowsClockwise-DnI7mFlV.js → PhArrowsClockwise-CRZyQVpN.js} +4 -4
- package/_assets/{PhArrowsDownUp-BT1rp80C.js → PhArrowsDownUp-CV1NqVLb.js} +4 -4
- package/_assets/{PhArrowsLeftRight-3JEyJt0N.js → PhArrowsLeftRight-DvGI6Nto.js} +5 -5
- package/_assets/{PhBank-DlTySila.js → PhBank-BRxdKSKq.js} +5 -5
- package/_assets/{PhBrowser-CxUZLRbi.js → PhBrowser-C_wNKcTe.js} +5 -5
- package/_assets/PhCaretDown-DBNFm85V.js +15 -0
- package/_assets/{PhCaretLeft-ScH02zvv.js → PhCaretLeft-Cad__LUx.js} +3 -3
- package/_assets/{PhCaretRight-CG-ZCjvT.js → PhCaretRight-CuRYBcM2.js} +3 -3
- package/_assets/PhCaretUp-DE2FiuTS.js +15 -0
- package/_assets/{PhCheck-DETGkRRi.js → PhCheck-y4MOxgof.js} +5 -5
- package/_assets/{PhCircleHalf-BN36Nweh.js → PhCircleHalf-xlPKmtS7.js} +4 -4
- package/_assets/{PhClock-DPd3K2DL.js → PhClock-BBNMhMKw.js} +4 -4
- package/_assets/{PhCompass-F0g-SfuH.js → PhCompass-DpAl_LfZ.js} +5 -5
- package/_assets/{PhCopy-CzpD7rrG.js → PhCopy-D4HwCqa2.js} +5 -5
- package/_assets/{PhCreditCard-NnI7YcNP.js → PhCreditCard-CD12JEEL.js} +3 -3
- package/_assets/{PhCurrencyDollar-Bst29vzW.js → PhCurrencyDollar-DPFX6nyR.js} +2 -2
- package/_assets/{PhDesktop-CFSSNEkS.js → PhDesktop-CNhh70Hf.js} +3 -3
- package/_assets/{PhDeviceMobile-Dd2ijltg.js → PhDeviceMobile-DQgHhtB0.js} +5 -5
- package/_assets/{PhDotsThree-CI5y9TIg.js → PhDotsThree-B1gOaArE.js} +4 -4
- package/_assets/{PhEnvelope-DrQ5vbHf.js → PhEnvelope-CGnM9AiA.js} +4 -4
- package/_assets/{PhFunnelSimple-CI4FOzkp.js → PhFunnelSimple-D8YZwX53.js} +4 -4
- package/_assets/{PhGlobe-DR2SpSWA.js → PhGlobe-CXtg_GcB.js} +4 -4
- package/_assets/{PhIdentificationCard-5YfSRHO7.js → PhIdentificationCard-oMtubY4C.js} +3 -3
- package/_assets/{PhImage-D7dVXxCI.js → PhImage-DKp6-EHn.js} +2 -2
- package/_assets/{PhInfo-DNTh1xhU.js → PhInfo-CPd-HNhu.js} +5 -5
- package/_assets/{PhLightbulb-BfCndXXI.js → PhLightbulb-C47afrxR.js} +5 -5
- package/_assets/{PhMagnifyingGlass-DB41rFTM.js → PhMagnifyingGlass-DBaqb5ff.js} +2 -2
- package/_assets/{PhPaperPlaneRight-D6oxeO8G.js → PhPaperPlaneRight-FQGhQUrW.js} +4 -4
- package/_assets/{PhPlus-B90Q_jSC.js → PhPlus-B_CxFvZS.js} +4 -4
- package/_assets/{PhPower-B3OeVFPP.js → PhPower-DRTSLLeY.js} +4 -4
- package/_assets/{PhPuzzlePiece-DMvneE8o.js → PhPuzzlePiece-zlHiPdqx.js} +4 -4
- package/_assets/{PhQrCode-B1ogONq9.js → PhQrCode-riEgpq80.js} +4 -4
- package/_assets/{PhQuestion-BGPtjzO3.js → PhQuestion-DHYK7o0G.js} +3 -3
- package/_assets/{PhQuestionMark-Bx5KlE6e.js → PhQuestionMark-ZgOsaVvK.js} +4 -4
- package/_assets/{PhSealCheck-kDiKrn8v.js → PhSealCheck-B5VE_9Jt.js} +3 -3
- package/_assets/{PhSignOut-C40w8abk.js → PhSignOut-DKQOfDHS.js} +4 -4
- package/_assets/{PhSpinner-BnCR7oBU.js → PhSpinner-B3k7aAJt.js} +4 -4
- package/_assets/{PhTrash-Dx6EnoNj.js → PhTrash-CD2fhMLB.js} +3 -3
- package/_assets/{PhUser-BMrVwUFx.js → PhUser-BeKUoVY6.js} +2 -2
- package/_assets/{PhVault-CJhJgRMl.js → PhVault-DC9QjU0-.js} +5 -5
- package/_assets/{PhWallet-DUAwnObx.js → PhWallet-djswo-CG.js} +3 -3
- package/_assets/{PhWarning-DQNslokT.js → PhWarning-B4g8NvcF.js} +4 -4
- package/_assets/{PhWarningCircle-p1EFi5p4.js → PhWarningCircle-xLZ7sbu0.js} +5 -5
- package/_assets/{PhX-cY2Ff_Gl.js → PhX-BVzMqBjL.js} +5 -5
- package/_assets/{SaleCountdown-C7e8fbLx.js → SaleCountdown-OciTJP0u.js} +3 -3
- package/_assets/{Spinner-B2OgiWjC.js → Spinner-PtrEnSHG.js} +2 -2
- package/_assets/StoreSettings-DijP-YCx.js +197 -0
- package/_assets/{Success-CZuQ607L.js → Success-ClDhCP8V.js} +5 -5
- package/_assets/{SwapController-5k9aONbx.js → SwapController-ZZrBzp1z.js} +2 -2
- package/_assets/{Tooltip-S7k1SpAV.js → Tooltip-u81Sv8t-.js} +2 -2
- package/_assets/{TradeService-B8-mao6x.js → TradeService-5RwgV0Xg.js} +2 -2
- package/_assets/{W3MFrameProviderSingleton-BMplcCEo.js → W3MFrameProviderSingleton-B4cXTRps.js} +4 -4
- package/_assets/{WebCryptoP256-O7lzGJiD.js → WebCryptoP256-CzBMVHqY.js} +2 -2
- package/_assets/{add-WhTS4Lmx.js → add-C46RTTNX.js} +3 -3
- package/_assets/{all-wallets-BjG4VftA.js → all-wallets-byTNDEq1.js} +2 -2
- package/_assets/{app-store-BU7T42Cx.js → app-store-CaKIhI-8.js} +2 -2
- package/_assets/{apple-CawmhmSa.js → apple-DAMB_3Lk.js} +3 -3
- package/_assets/{arrow-bottom-CnNmrvB7.js → arrow-bottom-Cx66u8_t.js} +2 -2
- package/_assets/{arrow-bottom-circle-4Fk8ZSin.js → arrow-bottom-circle-Bv2eZVEF.js} +2 -2
- package/_assets/{arrow-left-CfMYQlcz.js → arrow-left-D0I0JXz4.js} +3 -3
- package/_assets/arrow-right-BHc70exa.js +9 -0
- package/_assets/{arrow-top-B19eH9mc.js → arrow-top-uM_hNW8Z.js} +3 -3
- package/_assets/{async-directive-BTrBVINo.js → async-directive-CeCQAQEH.js} +4 -4
- package/_assets/{bank-CvCwnNxT.js → bank-CQUOEuRq.js} +2 -2
- package/_assets/{basic-Ccax6-qK.js → basic-CzPdzQZ1.js} +2 -2
- package/_assets/{biconomy-DvdEbc7G.js → biconomy-CmUC9Vgz.js} +2 -2
- package/_assets/{browseLayout.styles-D4_s76IT.js → browseLayout.styles-BJ83PjpA.js} +2 -2
- package/_assets/{browser-D_6XKzYg.js → browser-Bh67F6hL.js} +3 -3
- package/_assets/{browser-BZ3BqlqY.js → browser-Bnnu-876.js} +2 -2
- package/_assets/{browser-5Iquaht5.js → browser-DkgNbGy6.js} +2 -2
- package/_assets/{browser-ponyfill-cZkQn4gz.js → browser-ponyfill-DjCvoPa9.js} +2 -2
- package/_assets/{buy-Bz6BQ053.js → buy-DjjL35rl.js} +2 -2
- package/_assets/{buy-gasless-C_qSC2r9.js → buy-gasless-D72pqxFQ.js} +2 -2
- package/_assets/{card-Bs7vF3ws.js → card-DcQ1wkCr.js} +2 -2
- package/_assets/{ccip-DmZQ8H34.js → ccip-CHs8su-n.js} +2 -2
- package/_assets/{ccip-4dYwjzuR.js → ccip-Di9g1yps.js} +2 -2
- package/_assets/{chains-C05Ihug0.js → chains-C0P4vetK.js} +2 -2
- package/_assets/{checkmark-e3BzxNSm.js → checkmark-GDL9YfL4.js} +2 -2
- package/_assets/{checkmark-bold-CwL3zpGi.js → checkmark-bold-B-Sg0XJy.js} +3 -3
- package/_assets/chevron-bottom-CLuKI9LQ.js +9 -0
- package/_assets/chevron-left-B_RU4s1F.js +9 -0
- package/_assets/chevron-right-C6ckznAo.js +9 -0
- package/_assets/chevron-top-CJOmtrv2.js +9 -0
- package/_assets/{chrome-store-B9E5S_r1.js → chrome-store-s39Q_LJM.js} +3 -3
- package/_assets/{class-map-BaReYv7k.js → class-map-BxMzgOIb.js} +5 -5
- package/_assets/{clock-98t-BkG5.js → clock-DmJj-grN.js} +2 -2
- package/_assets/close-D4d1U5NV.js +9 -0
- package/_assets/{coinPlaceholder-rH-MsidA.js → coinPlaceholder-VDdmV3rm.js} +2 -2
- package/_assets/collectionPage.styles-BdifnJ7n.js +41 -0
- package/_assets/common-CoVAsSlp.js +2 -0
- package/_assets/{compass-C4iPyfoB.js → compass-O2jaVbub.js} +3 -3
- package/_assets/{controller-Dxu_LD2b.js → controller-8vZuqKx5.js} +3 -3
- package/_assets/{copy-Db_EXK-k.js → copy-D2eE3KCY.js} +3 -3
- package/_assets/{core-Ckvw2yS0.js → core-BAbJlgdS.js} +5 -5
- package/_assets/{createSvgIcon-Coc0eUXe.js → createSvgIcon-D7ErdKmf.js} +2 -2
- package/_assets/{crumbs.styles-CQ8x8Q1s.js → crumbs.styles-Do82Lh7D.js} +2 -2
- package/_assets/{cursor-BLyA32Y6.js → cursor-DSrN7SuI.js} +3 -3
- package/_assets/{cursor-transparent-is8_6H5o.js → cursor-transparent-DxuBEx9O.js} +2 -2
- package/_assets/{custom-BobhwJvM.js → custom-CA56e9mw.js} +2 -2
- package/_assets/{data-capture-B1l9YeOa.js → data-capture-B2LJxsgg.js} +2 -2
- package/_assets/{dcl-schemas-B-Ph0Ls4.js → dcl-schemas-D-5rZ83i.js} +2 -2
- package/_assets/decimals-BfgT5uZb.js +2 -0
- package/_assets/decimals-CMVt6Fnf.js +2 -0
- package/_assets/{desktop-w7YXG_JM.js → desktop-DwZtv9fm.js} +2 -2
- package/_assets/detectExtension-D7EH5FOC.js +2 -0
- package/_assets/{disconnect-BoVeWInH.js → disconnect-BbwiqFJ2.js} +3 -3
- package/_assets/{discord-CmXuPXeB.js → discord-qWAUKbRO.js} +3 -3
- package/_assets/{disposePreview-BWK9pW9i.js → disposePreview-Dn-nV7da.js} +2 -2
- package/_assets/{email-CR6_v_7o.js → email-R9Eh56FQ.js} +4 -4
- package/_assets/{embedded-wallet-CMslqrer.js → embedded-wallet-DKyKgqt3.js} +2 -2
- package/_assets/{emotion-styled.browser.esm-B49fbxGZ.js → emotion-styled.browser.esm-D-s-EeXK.js} +2 -2
- package/_assets/{engine-Da2W6flo.js → engine-DODLqszn.js} +2 -2
- package/_assets/{errors-wUAVqc_c.js → errors-g7TfMjmz.js} +2 -2
- package/_assets/estimate-l1-fee-DngUQ5JF.js +2 -0
- package/_assets/eth_estimateGas-CZaRMpws.js +2 -0
- package/_assets/eth_getStorageAt-CzulrMRy.js +2 -0
- package/_assets/eth_getTransactionCount-58y45L6E.js +2 -0
- package/_assets/ethereum-mrT0UM5G.js +2 -0
- package/_assets/{ethers-bR7FzlYq.js → ethers-CopgDOSY.js} +2 -2
- package/_assets/{etherscan-C6oDVSRT.js → etherscan-TUQ32gbU.js} +2 -2
- package/_assets/{events-CSMTNmJ4.js → events-Ws3Yj1Vh.js} +2 -2
- package/_assets/{exclamation-triangle-DeoEkpAd.js → exclamation-triangle-ETkxexlo.js} +2 -2
- package/_assets/{execute-DRuAik5I.js → execute-CbNEb0_w.js} +3 -3
- package/_assets/{extension-BC4u9PFt.js → extension-DoOVmXmT.js} +3 -3
- package/_assets/external-link-BEPN-Y2j.js +9 -0
- package/_assets/{extractIPFS-Do1_pPys.js → extractIPFS-BFJ52Qik.js} +2 -2
- package/_assets/{facebook-BfvFcXpk.js → facebook-BmPLPVaB.js} +3 -3
- package/_assets/{farcaster-DBSK9Oxt.js → farcaster-BLIAglQl.js} +2 -2
- package/_assets/{features-DnUPrb3F.js → features-9s_Hez8h.js} +2 -2
- package/_assets/{fetchTokenMetadata-0uUCrtuX.js → fetchTokenMetadata-BIKmk-Qg.js} +3 -3
- package/_assets/{field.styles-RDJk3ZFi.js → field.styles-DgktWQSW.js} +2 -2
- package/_assets/{filters-Bx7yqePJ.js → filters-DWaFeZ95.js} +3 -3
- package/_assets/{fortmatic-CzflUuB3.js → fortmatic-I6j8s8Pp.js} +2 -2
- package/_assets/{get-bytecode-CuUypJRS.js → get-bytecode-Hn-ME_dR.js} +2 -2
- package/_assets/get-ecosystem-wallet-info-i7hQ8Um2.js +2 -0
- package/_assets/{getBalance-CXMj_dSJ.js → getBalance-DbupekTB.js} +3 -3
- package/_assets/{getInstalledModules-DwjgJmXZ.js → getInstalledModules-DgeolJcX.js} +2 -2
- package/_assets/{getNFT-DAE6KSzC.js → getNFT-CF7JQE0L.js} +3 -3
- package/_assets/getNFT-CScO-Xmp.js +2 -0
- package/_assets/{github-Bir9JlcK.js → github-BiA5cQMJ.js} +3 -3
- package/_assets/{google-BlkSyDA4.js → google-CsF9xgle.js} +3 -3
- package/_assets/{grid.styles-CCv5GYbY.js → grid.styles-D-jF6MZw.js} +2 -2
- package/_assets/{hashTypedData-uKFMbdty.js → hashTypedData-Cx9nB98K.js} +2 -2
- package/_assets/{hashTypedData-DMajHdTK.js → hashTypedData-LiCSkSgg.js} +2 -2
- package/_assets/{help-circle-DA-n1pkO.js → help-circle-Bwgxn3Vn.js} +3 -3
- package/_assets/{id-UrGKP3rm.js → id-O5raZ1NS.js} +2 -2
- package/_assets/{image-D3PTNca-.js → image-CbhOQpP5.js} +2 -2
- package/_assets/{import-CeVyQRnj.js → import-CcqIyt2r.js} +2 -2
- package/_assets/{in-app-Macl9ih4.js → in-app-Bbr1VWOo.js} +2 -2
- package/_assets/{in-app-wallet-calls-D4aUvnS_.js → in-app-wallet-calls-ML9-rfvZ.js} +2 -2
- package/_assets/{index-CbaYXysJ.js → index-0zcbOnOy.js} +2 -2
- package/_assets/{index-CjDu2TSA.js → index-1fOWwGDY.js} +4 -4
- package/_assets/{index-DF3A7nt0.js → index-4svJAA0r.js} +2 -2
- package/_assets/{index-CYFe0Jna.js → index-6XNUf3SO.js} +3 -3
- package/_assets/{index-C7BuumTt.js → index-9847KGFU.js} +2 -2
- package/_assets/{index-D02KSSv9.js → index-B0jKErn5.js} +3 -3
- package/_assets/{index-zU2vwYZs.js → index-BBGQ2fEH.js} +2 -2
- package/_assets/{index-B2a3z3ZJ.js → index-BGXJtQVe.js} +2 -2
- package/_assets/{index-CI7ggdTq.js → index-BJncx6-7.js} +3 -3
- package/_assets/index-BJzeHzwn.js +2 -0
- package/_assets/{index-D08tUgRe.js → index-BKoVRwNl.js} +6 -6
- package/_assets/{index-CeTfbZRA.js → index-BLLo6gmS.js} +6 -6
- package/_assets/{index-rBUdQsaK.js → index-BMNT4Vj8.js} +2 -2
- package/_assets/{index-C975TN26.js → index-BQqlUoCn.js} +4 -4
- package/_assets/{index-BE9Mcus4.js → index-BRT6TqeK.js} +2 -2
- package/_assets/{index-BGgan3dP.js → index-BYR5agWV.js} +2 -2
- package/_assets/{index-DddATSzO.js → index-BcwUv4WI.js} +2 -2
- package/_assets/{index-Cx07-hgn.js → index-Be5CQ9Ek.js} +2 -2
- package/_assets/{index-D1vrdbBh.js → index-BhQyMuiB.js} +4 -4
- package/_assets/{index-CBygHfb6.js → index-BjVmqSlb.js} +2 -2
- package/_assets/{index-a25ffY_L.js → index-BotucDu0.js} +2 -2
- package/_assets/index-BpUtXe3X.js +2 -0
- package/_assets/{index-Di89BRQr.js → index-C-DYXMyc.js} +3 -3
- package/_assets/{index-C6uMO8F3.js → index-C0Nwpyec.js} +4 -4
- package/_assets/{index-GUobIWjX.js → index-C6gyBlSG.js} +2 -2
- package/_assets/{index-BVbWCh70.js → index-CBKmaKUs.js} +3 -3
- package/_assets/{index-B54oU8gi.js → index-CCJPLKej.js} +2 -2
- package/_assets/{index-9AH47OiK.js → index-CEosqueA.js} +3 -3
- package/_assets/{index-CQRmPqX6.js → index-CJX-36Qo.js} +3 -3
- package/_assets/{index-Bj9lpeYa.js → index-CMSu9Fi8.js} +5 -5
- package/_assets/{index-BlJwQFxj.js → index-CN6kBFKz.js} +2 -2
- package/_assets/{index-CUi-ykiz.js → index-CPc9SG5b.js} +2 -2
- package/_assets/{index-Cyu7VCzw.js → index-CS-Fo7Dd.js} +2 -2
- package/_assets/{index-CO_NYi5I.js → index-CTBXMXHE.js} +3 -3
- package/_assets/{index-BD5IY2ZK.js → index-CThQspM5.js} +3 -3
- package/_assets/{index-afs4W15f.js → index-CV2DmEzD.js} +2 -2
- package/_assets/{index-B5zTgTXf.js → index-CVvFzoi-.js} +7 -7
- package/_assets/{index-CvTuaMxq.js → index-CdlPsyOh.js} +2 -2
- package/_assets/{index-bswiu2fP.js → index-Ce2pZB5r.js} +2 -2
- package/_assets/{index-BvY2KEZR.js → index-Cgrg3nln.js} +3 -3
- package/_assets/{index-Cl9akTA1.js → index-CiMgUHWr.js} +2 -2
- package/_assets/{index-D4oNA6LG.js → index-CjUcdG9l.js} +4 -4
- package/_assets/{index-4Wt1itZR.js → index-Co7rAvqY.js} +4 -4
- package/_assets/{index-CCH3GG8S.js → index-CqQb43_w.js} +4 -4
- package/_assets/{index-6Ea7HxB0.js → index-Cw3ZjlHu.js} +4 -4
- package/_assets/{index-DhErzm2X.js → index-D4F1pTlw.js} +3 -3
- package/_assets/index-D8mGQF7W.css +1 -0
- package/_assets/{index-BFj-hzu9.js → index-DH16m9NQ.js} +2 -2
- package/_assets/{index-Wf_dU8kj.js → index-DPrbmi0P.js} +2 -2
- package/_assets/{index-CCtrpRL3.js → index-DSPPGbih.js} +7 -7
- package/_assets/{index-D_UH7dG5.js → index-DTQvJkIk.js} +2 -2
- package/_assets/{index-DJk0y4Pb.js → index-DVU_sbVS.js} +4 -4
- package/_assets/{index-tWaiezoT.js → index-DesfxtJB.js} +2 -2
- package/_assets/{index-15wtEeEb.js → index-DhL9UDpx.js} +2 -2
- package/_assets/{index-BGPtWppq.js → index-Dt0hkf0E.js} +4 -4
- package/_assets/{index-BX0anDQH.js → index-DvMKbX71.js} +2 -2
- package/_assets/{index-BotYB9Ug.js → index-DwSlWQJc.js} +4 -4
- package/_assets/{index-BzfaUuJy.js → index-DyBYKhuJ.js} +4 -4
- package/_assets/{index-C9cxIatH.js → index-LyvfKRJn.js} +2 -2
- package/_assets/{index-CCbd3W2s.js → index-MH4VZj7X.js} +2 -2
- package/_assets/{index-DWZpjai1.js → index-O-gEYpGp.js} +2 -2
- package/_assets/{index-CoEQwfR-.js → index-VqSwDYu3.js} +2 -2
- package/_assets/{index-DsNJL-1_.js → index-axCSMzU7.js} +2 -2
- package/_assets/{index-C4OMOTuz.js → index-cEVfGif7.js} +2 -2
- package/_assets/{index-B3VjL_uo.js → index-iLEI2Hze.js} +3 -3
- package/_assets/{index-CM8il_cs.js → index-ljbyRJDV.js} +2 -2
- package/_assets/{index-DVSIxGm9.js → index-oiiBJT0I.js} +4 -4
- package/_assets/index-x3_oOTlT.js +4331 -0
- package/_assets/{index.es-_TtdXlOp.js → index.es-CATzJKgL.js} +5 -5
- package/_assets/{index.es-DLcWAUrd.js → index.es-CcpqAHBO.js} +2 -2
- package/_assets/{index.es-Dq25h1l9.js → index.es-DTIR3PFi.js} +2 -2
- package/_assets/{index.es-kX0u41uY.js → index.es-DvYgO4WC.js} +2 -2
- package/_assets/{info-Dsmi8VWW.js → info-B91xCNqh.js} +3 -3
- package/_assets/info-circle-DtEY-DDD.js +13 -0
- package/_assets/items-empty-Cr9cPS1Z.js +2 -0
- package/_assets/jsxRuntime.module-BUzu5v1_.js +2 -0
- package/_assets/{jump-Xu9XuIAg.js → jump-Bl1mTmWC.js} +2 -2
- package/_assets/{lightbulb-B2s8QgKQ.js → lightbulb-ByedgZqO.js} +3 -3
- package/_assets/{linkAccount-CPkzkJuG.js → linkAccount-D6iv170c.js} +2 -2
- package/_assets/{loader-logo-DnFrESbi.js → loader-logo-VsDgHWNm.js} +2 -2
- package/_assets/{localBatchGatewayRequest-xmkiXjrL.js → localBatchGatewayRequest-BfGg370Q.js} +2 -2
- package/_assets/{mail-CZ9ghbH-.js → mail-B2wBPliw.js} +2 -2
- package/_assets/{mobile-D7KL87qI.js → mobile-COGIkuHo.js} +2 -2
- package/_assets/{modal.styles-Do478QcD.js → modal.styles-LVyI-Nms.js} +2 -2
- package/_assets/{more-C1vsI2Vu.js → more-zcriamqw.js} +2 -2
- package/_assets/{native-DfSWgaR4.js → native-l5Om0Rwv.js} +2 -2
- package/_assets/{network-placeholder-C6sglFRh.js → network-placeholder-Cm-6akxX.js} +2 -2
- package/_assets/{networks-Cfa5rIsc.js → networks-CF4HnplJ.js} +2 -2
- package/_assets/{nftPlaceholder-ByX0V9oA.js → nftPlaceholder-vZdYCYRL.js} +2 -2
- package/_assets/off-CLF8R11w.js +9 -0
- package/_assets/{onramp-BnohX24l.js → onramp-Df-XZyQ-.js} +2 -2
- package/_assets/openzeppelin-CtFkrbTC.js +2 -0
- package/_assets/ownerOf-Dd-hBmVt.js +2 -0
- package/_assets/parseNft-DlnuLVoy.js +3 -0
- package/_assets/{parseSignature-J-955_t1.js → parseSignature-B1mzw2r7.js} +2 -2
- package/_assets/{parseSignature-CoNohiB0.js → parseSignature-C060flwU.js} +4 -4
- package/_assets/{passkeys-NXOIdrEd.js → passkeys-CbeyIyCT.js} +2 -2
- package/_assets/{pay-with-exchange-DAZa8ZY1.js → pay-with-exchange-zZqzHc1N.js} +2 -2
- package/_assets/{play-store-BBusJ15a.js → play-store-CAbJYmXD.js} +2 -2
- package/_assets/{plus-QdPNUgRE.js → plus-DWQF9t2p.js} +3 -3
- package/_assets/{prepare-contract-call-CJg2QHZX.js → prepare-contract-call-Cd3rzK4m.js} +2 -2
- package/_assets/{qr-code-SdYLFk2z.js → qr-code-Br4VphwV.js} +2 -2
- package/_assets/{qr-overlay-Dv6gg5Q5.js → qr-overlay-C0sLtyHu.js} +6 -6
- package/_assets/{react-COwX0Zlk.js → react-xTOg_zXI.js} +3 -3
- package/_assets/{receive-D0kNMOsa.js → receive-B32yzPpP.js} +2 -2
- package/_assets/{recycle-horizontal-SCXYOpJq.js → recycle-horizontal-DdAImjTL.js} +3 -3
- package/_assets/{ref-DRxYb1N1.js → ref-D90CCjlU.js} +2 -2
- package/_assets/{refresh-eticwJ3S.js → refresh-S-H2nzPq.js} +2 -2
- package/_assets/{reown-logo-C2dHPSrm.js → reown-logo-D5L2QY4i.js} +3 -3
- package/_assets/{resolveImplementation-C71So4sE.js → resolveImplementation-CUvrhOz5.js} +2 -2
- package/_assets/{resume-buy-DG0KaJKe.js → resume-buy-CadxFuJD.js} +2 -2
- package/_assets/{resume-name-DGCFrQWT.js → resume-name-DCcU5Jmo.js} +2 -2
- package/_assets/{rpc-6is72ePA.js → rpc-D7LJ7NvJ.js} +2 -2
- package/_assets/{sales-empty-BCWN_I8i.js → sales-empty-C0kdamh4.js} +2 -2
- package/_assets/{search-empty-DlvFh8OP.js → search-empty-eYhzQ9FT.js} +2 -2
- package/_assets/{search-CeQ1H1CU.js → search-f6j421fJ.js} +3 -3
- package/_assets/{secp256k1-By_oEGjh.js → secp256k1-B41_WO6S.js} +2 -2
- package/_assets/{secp256k1-l4zSwoMY.js → secp256k1-CW_LtzZ8.js} +2 -2
- package/_assets/{secp256k1-BHyRMwqk.js → secp256k1-GkgG1V04.js} +2 -2
- package/_assets/{send-Bo03Ql2I.js → send-BAUrBF6z.js} +3 -3
- package/_assets/{send-BxPbGMh3.js → send-C-GM4PE7.js} +2 -2
- package/_assets/send-batch-transaction-DT9GnwuT.js +2 -0
- package/_assets/{send-eip712-transaction-Cd2xhI0p.js → send-eip712-transaction-SnaEyRTO.js} +3 -3
- package/_assets/send-gasless-transaction-CznNnhM4.js +3 -0
- package/_assets/send-transaction-Bf6g32F5.js +3 -0
- package/_assets/{sendMetaTransaction-Cpk-JkUY.js → sendMetaTransaction-BVZGqOEK.js} +2 -2
- package/_assets/{sendRawTransaction-CmggkI48.js → sendRawTransaction-CkffR3oO.js} +4 -4
- package/_assets/{sentry-D9BarSwm.js → sentry-B0Y62cGL.js} +3 -3
- package/_assets/{serializeTransaction-DDF3EQOU.js → serializeTransaction-CMJTyk8U.js} +2 -2
- package/_assets/{session-proposal-CHYRi6z3.js → session-proposal-DC94r99f.js} +2 -2
- package/_assets/{session-request-r5jbMTp-.js → session-request-DgLUUnOE.js} +3 -3
- package/_assets/{sha256-DBqizRIu.js → sha256-CED-jKYK.js} +2 -2
- package/_assets/{sha3-B0gscz6j.js → sha3-CD2fzV95.js} +2 -2
- package/_assets/signin-empty-Djiz9wqy.js +2 -0
- package/_assets/{signing-Dv0wmdMO.js → signing-lMjAMQBI.js} +4 -4
- package/_assets/{skeleton.styles-BEkEh9Xo.js → skeleton.styles-OHtRJI1m.js} +2 -2
- package/_assets/{socials-9e49sRbo.js → socials-XRxoPbeV.js} +2 -2
- package/_assets/{styled-byzvgoEW.js → styled-2Gc9bEJf.js} +3 -3
- package/_assets/{swapHorizontal-C6GakaRf.js → swapHorizontal-BXjIGAcZ.js} +2 -2
- package/_assets/{swapHorizontalBold-oeP-_O-R.js → swapHorizontalBold-BzueHopN.js} +2 -2
- package/_assets/{swapHorizontalMedium-C64EXSWD.js → swapHorizontalMedium-DLFo4hRx.js} +2 -2
- package/_assets/{swapHorizontalRoundedBold-CHgP6XK-.js → swapHorizontalRoundedBold-BddBy7OL.js} +2 -2
- package/_assets/{swapVertical-8SLU7RpO.js → swapVertical-DYkySTmy.js} +3 -3
- package/_assets/{swaps-CMMXFVlc.js → swaps-1NO4w9-f.js} +8 -8
- package/_assets/{telegram-CF91ES6s.js → telegram-D8ymSABf.js} +2 -2
- package/_assets/{thirdweb-CilSVdOh.js → thirdweb-BJ3MsX6E.js} +4 -4
- package/_assets/{three-dots-BsCoLPC9.js → three-dots-CiS9iH0H.js} +2 -2
- package/_assets/{to-serializable-transaction-BtKRmZ5q.js → to-serializable-transaction-BUXwOt0l.js} +3 -3
- package/_assets/totalSupply-BbOY-Ah8.js +2 -0
- package/_assets/{trade-encoding-DqOFT-xH.js → trade-encoding-BeeCLIbm.js} +2 -2
- package/_assets/{transaction-Crt3oKUU.js → transaction-f7fSDSEv.js} +2 -2
- package/_assets/transactionReceipt-BNvHMRIb.js +2 -0
- package/_assets/transactions-swTuiqzl.js +17 -0
- package/_assets/{twitch-BranWKeM.js → twitch-BJQCmiGz.js} +2 -2
- package/_assets/{twitterIcon-BfIWT5DS.js → twitterIcon-B78o99Zv.js} +2 -2
- package/_assets/{useInfiniteGrid-CoFLGUq5.js → useInfiniteGrid-BEX_xsnJ.js} +2 -2
- package/_assets/useStore-B7dt3ckg.js +3 -0
- package/_assets/{useTheme-BtQzSd_x.js → useTheme-CCKeGB3A.js} +2 -2
- package/_assets/{utils-Di6UMxpb.js → utils-DA456_1A.js} +2 -2
- package/_assets/{verify-DcO5QuX7.js → verify-CrYE2kna.js} +3 -3
- package/_assets/{verify-filled-CKp8XQqI.js → verify-filled-CwwnY5h6.js} +3 -3
- package/_assets/{verifyHash-CyVD3HFU.js → verifyHash-BvlEdLQe.js} +2 -2
- package/_assets/{w3m-modal-DY_5HDWk.js → w3m-modal-BYjCcYG7.js} +2 -2
- package/_assets/{w3m-modal-VycpFrGV.js → w3m-modal-dqg0Bbo6.js} +2 -2
- package/_assets/wait-for-tx-receipt-mAbrkotI.js +2 -0
- package/_assets/{wallet-BHCiGpYx.js → wallet-EosqBoq7.js} +3 -3
- package/_assets/{wallet-placeholder-BVguMNEt.js → wallet-placeholder-DL8kIY2O.js} +3 -3
- package/_assets/{walletconnect-9t1WJh4k.js → walletconnect-CauX9cVK.js} +4 -4
- package/_assets/{wallets-CF_BBG99.js → wallets-BPfs-4HQ.js} +6 -6
- package/_assets/{warning-circle-II7Vcaxs.js → warning-circle-BrcBx24p.js} +3 -3
- package/_assets/{web-connector-DQro6gxL.js → web-connector-B7BkqcWh.js} +4 -4
- package/_assets/{writeContract-DhM9t6Ig.js → writeContract-BXbZZHUF.js} +2 -2
- package/_assets/x-CwtQDczS.js +13 -0
- package/_assets/{zora-sepolia-CVzG0Xwo.js → zora-sepolia-CTxGeA6f.js} +2 -2
- package/_assets/{zoraTestnet-D_-LBRSS.js → zoraTestnet-5ljqJp2x.js} +2 -2
- package/index.html +12 -12
- package/package.json +2 -2
- package/_assets/Activity-Zur2krvm.js +0 -400
- package/_assets/Creator-CnhYdhYL.js +0 -312
- package/_assets/ManaPricingBanner.styles-C-mAX-6w.js +0 -129
- package/_assets/MyAssets-5gpOzD_e.js +0 -410
- package/_assets/MyStore-C64oleTN.js +0 -1062
- package/_assets/OutfitPreview-BoRA9kOx.js +0 -7
- package/_assets/PhCaretDown-Co8viBJv.js +0 -15
- package/_assets/PhCaretUp-SXVNZaJo.js +0 -15
- package/_assets/StoreSettings-Boa-EyyK.js +0 -181
- package/_assets/arrow-right-QKHuTr9a.js +0 -9
- package/_assets/chevron-bottom-DVpGPQvJ.js +0 -9
- package/_assets/chevron-left-CSISn9Tl.js +0 -9
- package/_assets/chevron-right-D0n7Onzs.js +0 -9
- package/_assets/chevron-top-BSRcfV5m.js +0 -9
- package/_assets/close-BnCucYZG.js +0 -9
- package/_assets/collectionPage.styles-SF1IDwaV.js +0 -41
- package/_assets/common-z_d14HNn.js +0 -2
- package/_assets/decimals-DMW-nilF.js +0 -2
- package/_assets/decimals-DWYtWgBS.js +0 -2
- package/_assets/detectExtension-TTfkcmVw.js +0 -2
- package/_assets/estimate-l1-fee-CYcm0S5M.js +0 -2
- package/_assets/eth_estimateGas-BF6-2JVJ.js +0 -2
- package/_assets/eth_getStorageAt-CPTGlZUx.js +0 -2
- package/_assets/eth_getTransactionCount-izvwkQul.js +0 -2
- package/_assets/ethereum-BxDg7UsP.js +0 -2
- package/_assets/external-link-D1_8iC7n.js +0 -9
- package/_assets/get-ecosystem-wallet-info-CmJgYBeZ.js +0 -2
- package/_assets/getNFT-D7lfpr7H.js +0 -2
- package/_assets/index-BRNshUaV.js +0 -4310
- package/_assets/index-BmTyuiQs.css +0 -1
- package/_assets/index-DYa3ZRHr.js +0 -2
- package/_assets/index-PR_0BnK6.js +0 -2
- package/_assets/info-circle-CppZa7vK.js +0 -13
- package/_assets/items-empty-CFX8gNeF.js +0 -2
- package/_assets/jsxRuntime.module-Q9HBaTr-.js +0 -2
- package/_assets/off-B5vm0egN.js +0 -9
- package/_assets/openzeppelin-DpMlfPE2.js +0 -2
- package/_assets/ownerOf-qUf4d1F7.js +0 -2
- package/_assets/parseNft-DWZbRJRG.js +0 -3
- package/_assets/send-batch-transaction-BizQRWSH.js +0 -2
- package/_assets/send-gasless-transaction-DXUxg38U.js +0 -3
- package/_assets/send-transaction-D0szv-rw.js +0 -3
- package/_assets/signin-empty-C2-U4-eJ.js +0 -2
- package/_assets/totalSupply-gIi83gXe.js +0 -2
- package/_assets/transactionReceipt-yftDQJCI.js +0 -2
- package/_assets/transactions-BFd4sGt3.js +0 -17
- package/_assets/useCreatorSales-D2bq-mjs.js +0 -784
- package/_assets/useStore-DCfwTeT_.js +0 -3
- package/_assets/wait-for-tx-receipt-BnSiwjNZ.js +0 -2
- package/_assets/x-D0s8LW19.js +0 -13
|
@@ -0,0 +1,1630 @@
|
|
|
1
|
+
import{r as $,j as e,L as ie,u as Qt,f as Jt,N as Zt}from"./react-xTOg_zXI.js";import{c as te,w as B,ci as Xt,cj as es,s as r,t as i,z as ts,a as t,I as _,ca as ss,H as Ct,B as ns,x as os,cc as as,ck as is,a3 as rs,aE as At,aH as ls,$ as ds,cl as _e,cm as It,O as cs,c9 as hs,av as ps,aw as ms,ax as us,as as xs,bO as fs,cn as gs}from"./index-x3_oOTlT.js";import{f as ys,S as bs}from"./SaleCountdown-OciTJP0u.js";import{t as ws,u as js,C as Ss,M as ks,i as $s}from"./ManaPricingBanner-C5SbV_Cy.js";import{T as ue}from"./Tooltip-u81Sv8t-.js";import{m as vs}from"./mana-matic-CEqvSwrJ.js";import{E as st}from"./ErrorNotice-BndI9TcU.js";import{u as Cs,L as As}from"./useStore-B7dt3ckg.js";import{s as Is}from"./signin-empty-Djiz9wqy.js";import{g as Ws,R as Ms,M as Ls}from"./browseLayout.styles-BJ83PjpA.js";import"./dcl-schemas-D-5rZ83i.js";import"./sentry-B0Y62cGL.js";import"./ethers-CopgDOSY.js";import"./intl-AKLEHPeO.js";import"./errors-g7TfMjmz.js";import"./sha3-CD2fzV95.js";import"./browser-DkgNbGy6.js";import"./trade-encoding-BeeCLIbm.js";import"./sendMetaTransaction-BVZGqOEK.js";import"./ManaPricingBanner.styles-Bys2rCoo.js";(function(){try{var s=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new s.Error().stack;n&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[n]="fcf474fe-d2d1-4009-b6ec-079db6376c43",s._sentryDebugIdIdentifier="sentry-dbid-fcf474fe-d2d1-4009-b6ec-079db6376c43")}catch{}})();function F(s){try{return BigInt(s||"0")}catch{return 0n}}async function nt(s){var a;const n=new URLSearchParams({seller:s.seller});s.from!=null&&n.set("from",String(s.from)),s.to!=null&&n.set("to",String(s.to));const o=await fetch(`${te.marketplaceServerUrl}/v1/sales/summary?${n.toString()}`);if(!o.ok)throw await((a=o.body)==null?void 0:a.cancel()),new Error(`fetchSalesSummary ${o.status}`);const{data:l}=await o.json();return l}function Ts(s){const n=new URLSearchParams;return s.seller&&n.set("seller",s.seller),s.contractAddress&&n.set("contractAddress",s.contractAddress),s.itemId!=null&&n.set("itemId",s.itemId),s.type&&n.set("type",s.type),s.from!=null&&n.set("from",String(s.from)),s.to!=null&&n.set("to",String(s.to)),n.set("first",String(s.first??100)),s.skip&&n.set("skip",String(s.skip)),n.set("sortBy","recently_sold"),n}async function Ne(s){var l;const n=await fetch(`${te.marketplaceServerUrl}/v1/sales?${Ts(s).toString()}`);if(!n.ok)throw await((l=n.body)==null?void 0:l.cancel()),new Error(`fetchSales ${n.status}`);const o=await n.json();return{data:o.data??[],total:o.total??0}}async function zs(s){const{total:n}=await Ne({...s,first:1});return n}async function Ps(s,{first:n,skip:o}){const{data:l,total:a}=await Ne({...s,first:n,skip:o});return{rows:l,total:a}}async function _s(s,{cap:n=5e3}={}){const l=[];let a=0;for(let u=0;u<n;u+=1e3){const x=Math.min(1e3,n-u),p=await Ne({...s,first:x,skip:u});if(a=p.total,l.push(...p.data),p.data.length<x||l.length>=a)break}return{rows:l,total:a,truncated:a>l.length}}const Fs=864e5;function ot(s,n){return{current:s,previous:n,pct:n===0?null:(s-n)/n*100}}function Ns(s,n){const o=n===0n?null:Number((s-n)*10000n/n)/100;return{current:Number(s),previous:Number(n),pct:o}}function Es(s,n=3){var x;const o=s.filter(Wt),l=new Map;for(const p of o){const w=p.buyer.toLowerCase();l.set(w,(l.get(w)??0)+1)}const a=[...l.entries()].sort((p,w)=>w[1]-p[1]||p[0].localeCompare(w[0])),u=a.filter(([,p])=>p>1).length;return{total:a.length,repeat:u,repeatPct:a.length===0?0:u/a.length*100,topSharePct:o.length===0?0:(((x=a[0])==null?void 0:x[1])??0)/o.length*100,top:a.slice(0,n).map(([p,w])=>({address:p,bought:w}))}}function Wt(s){return s.type==="mint"&&s.itemId!=null}function Ds(s,n){const o=s.filter(Wt),l=new Map;for(const a of o){const u=a.buyer.toLowerCase(),x=a.contractAddress.toLowerCase(),p=l.get(u)??{bought:0,items:new Set,collections:new Set,spentWei:0n,lastAt:0};p.bought+=1,p.items.add(`${x}-${a.itemId}`),p.collections.add(x),p.spentWei+=F(a.price),a.timestamp>p.lastAt&&(p.lastAt=a.timestamp),l.set(u,p)}return[...l.entries()].map(([a,u])=>({address:a,bought:u.bought,items:u.items.size,collections:u.collections.size,spentWei:u.spentWei,lastAt:u.lastAt})).sort((a,u)=>u.spentWei>a.spentWei?1:u.spentWei<a.spentWei?-1:u.bought-a.bought).slice(0,n)}function Os(s,n){if(s.length===0)return null;const o=s.reduce((l,a)=>a.timestamp>l?a.timestamp:l,0);return Math.max(0,Math.floor((n-o)/Fs))}function Bs(s,n=5){return s.flatMap(o=>o.items.filter(l=>l.sold>0).map(l=>({key:l.key,contractAddress:o.contractAddress,itemId:l.itemId,name:l.name,thumbnail:l.thumbnail,rarity:l.rarity,collectionName:o.name,sold:l.sold,earnedWei:l.earnedWei}))).sort((o,l)=>l.sold-o.sold||(l.earnedWei>o.earnedWei?1:l.earnedWei<o.earnedWei?-1:0)||o.name.localeCompare(l.name)).slice(0,n)}const Fe=864e5,xe=14;function Rs(s,n,o){const l=new Array(xe).fill(0),a=o-n*Fe,u=n*Fe/xe;for(const x of s)x.timestamp<a||x.timestamp>o||(l[Math.min(xe-1,Math.floor((x.timestamp-a)/u))]+=1);return l}function Hs({rows:s,total:n,truncated:o,mints:l,summary:a,catalogue:u,saleState:x,unreadable:p,days:w,now:T}){const h=new Map,z=new Map,v=new Map;for(const c of s){if(c.type!=="mint"||c.itemId==null)continue;const f=c.contractAddress.toLowerCase(),g=`${f}-${c.itemId}`;h.set(g,(h.get(g)??0)+1),z.set(g,(z.get(g)??0n)+F(c.price));const j=v.get(f)??[];j.push(c),v.set(f,j)}const N=s.reduce((c,f)=>f.timestamp<c?f.timestamp:c,T),E=Math.max(1,Math.ceil((T-N)/Fe)),K=w!=null&&!o?w:Math.max(w==null?xe:1,E),se=new Map(((a==null?void 0:a.byItem)??[]).map(c=>[`${c.contractAddress.toLowerCase()}-${c.itemId}`,c.soldLifetime])),ne=new Map(((a==null?void 0:a.byCollection)??[]).map(c=>[c.contractAddress.toLowerCase(),c])),D=new Map;let V=0,A=0,L=0,S=0,y=0;for(const c of u){const f=c.contractAddress.toLowerCase(),g=x[`${c.contractAddress}-${c.blockchainItemId}`],j=c.remainingSupply<=0?"soldout":p!=null&&p.has(f)?"unknown":g!=null&&g.isOnSale?g.manaWei?"classic":"discounted":"unlisted";j==="soldout"?S+=1:j==="unlisted"?y+=1:j==="classic"?L+=1:j==="discounted"&&(A+=1);const C=D.get(f)??{contractAddress:f,collectionId:c.collectionId,name:c.collectionName,items:[],listed:0,classic:0,soldOut:0,sold:0,earningsWei:0n,createdAt:null,trend:[],claimed:0,runTotal:0,exhausted:!1},M=h.get(`${f}-${c.blockchainItemId}`)??0;C.items.push({key:`${f}-${c.blockchainItemId}`,itemId:c.blockchainItemId,name:c.name,thumbnail:c.thumbnail,rarity:c.rarity,left:c.remainingSupply,minted:c.totalSupply,sold:M,earnedWei:z.get(`${f}-${c.blockchainItemId}`)??0n,lifetimeSold:se.get(`${f}-${c.blockchainItemId}`)??null,priceCredits:(g==null?void 0:g.priceCredits)??null,manaWei:(g==null?void 0:g.manaWei)??null,createdAt:c.createdAt??null,state:j}),C.sold+=M,C.claimed+=c.totalSupply,C.runTotal+=c.totalSupply+c.remainingSupply,V+=M,c.createdAt&&(C.createdAt==null||c.createdAt>C.createdAt)&&(C.createdAt=c.createdAt),j==="soldout"?C.soldOut+=1:j==="classic"?C.classic+=1:j==="discounted"&&(C.listed+=1),D.set(f,C)}for(const[c,f]of D){const g=v.get(c)??[],j=ne.get(c);f.earningsWei=j?F(j.earnedWei):g.reduce((C,M)=>C+F(M.price),0n),j&&(f.sold=j.sold),f.trend=Rs(g,K,T),f.exhausted=f.items.length>0&&f.soldOut===f.items.length,f.items.sort((C,M)=>M.sold-C.sold||C.name.localeCompare(M.name))}const P=[...D.values()].reduce((c,f)=>c+f.sold,0);return{collections:[...D.values()].sort((c,f)=>f.sold-c.sold||c.name.localeCompare(f.name)),sold:(a==null?void 0:a.total)??n,mints:(a==null?void 0:a.mints)??l,resales:a?a.resales:n-l,earningsWei:a?F(a.earnedWei):s.reduce((c,f)=>c+F(f.price),0n),partial:a?!1:o,breakdownPartial:o,fetched:s.length,unattributed:a?a.total-P:s.length-V,trendDays:K,unknownCollections:[...D.keys()].filter(c=>p==null?void 0:p.has(c)).length,royalties:a?{resales:a.royalties.resales,volumeWei:F(a.royalties.volumeWei)}:null,listed:A,neverListed:y,classic:L,soldOut:S}}const qs=new Map,G=864e5,Us={"7d":7,"30d":30,all:null};function Ks(s,n){const o=s==null?void 0:s.address,l=Us[n],a=$.useMemo(()=>Math.floor(Date.now()/G)*G+G-1,[]),u=l?a-l*G:void 0,x=B({queryKey:["store-sales",o,n],enabled:!!o,queryFn:()=>_s({seller:o,from:u})}),p=B({queryKey:["store-summary",o,n],enabled:!!o,queryFn:()=>nt({seller:o,from:u})}),w=l!=null?a-2*l*G:void 0,T=l!=null?a-l*G:void 0,h=B({queryKey:["store-summary-previous",o,n],enabled:!!o&&w!==void 0,queryFn:()=>nt({seller:o,from:w,to:T})}),z=B({queryKey:["store-mints",o,n],enabled:!!o,queryFn:()=>zs({seller:o,from:u,type:"mint"})}),v=B({queryKey:["store-catalogue",o],enabled:!!o&&!!s,queryFn:()=>ys(o,s.identity,{includeSoldOut:!0})}),N=$.useMemo(()=>[...new Set((v.data??[]).map(A=>A.contractAddress))],[v.data]),E=B({queryKey:["store-sale-state",o,N],enabled:N.length>0,queryFn:async()=>{const A=await Promise.allSettled(N.map(y=>Xt(y))),L={},S=new Set;return A.forEach((y,P)=>{const c=N[P];if(y.status==="rejected"){S.add(c.toLowerCase());return}for(const[f,g]of Object.entries(y.value))L[`${c}-${f}`]=g}),{states:L,unreadable:S}}}),K=B({queryKey:["store-saves",N,(v.data??[]).length],enabled:(v.data??[]).length>0,queryFn:async()=>{const A=(v.data??[]).map(y=>`${y.contractAddress.toLowerCase()}-${y.blockchainItemId}`),L=await Promise.allSettled(A.map(async y=>[y,(await es(y)).count])),S=new Map;for(const y of L)y.status==="fulfilled"&&S.set(y.value[0],y.value[1]);return S}}),se=$.useMemo(()=>{var A,L,S,y,P;return v.data?Hs({rows:((A=x.data)==null?void 0:A.rows)??[],total:((L=x.data)==null?void 0:L.total)??0,truncated:!!((S=x.data)!=null&&S.truncated),mints:z.data??0,summary:p.data??null,catalogue:v.data,saleState:((y=E.data)==null?void 0:y.states)??{},unreadable:(P=E.data)==null?void 0:P.unreadable,days:l,now:a}):null},[v.data,x.data,z.data,p.data,E.data,l,a]),ne=$.useMemo(()=>{var A;return ws(v.data??[],(A=E.data)==null?void 0:A.states)},[v.data,E.data]),D=$.useMemo(()=>{var P,c,f;const A=Es(((P=x.data)==null?void 0:P.rows)??[]),L=Ds(((c=x.data)==null?void 0:c.rows)??[]),S=Os(((f=x.data)==null?void 0:f.rows)??[],a),y=h.data;return{collectors:A,buyers:L,quietDays:S,sold:y&&p.data?ot(p.data.total,y.total):null,earnings:y&&p.data?Ns(F(p.data.earnedWei),F(y.earnedWei)):null,royalties:y&&p.data?ot(p.data.royalties.resales,y.royalties.resales):null}},[x.data,p.data,h.data,a]),V=K.data??qs;return{stats:se,trend:D,savesByKey:V,saleable:ne,isLoading:v.isLoading||x.isLoading||p.isLoading,error:v.error??x.error??null}}const Vs=r.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 O({kind:s,className:n}){const o=s==="mana"?i("currency.polygonMana"):i("currency.credits");return e.jsx(ue,{content:o,children:e.jsx(Vs,{className:n,"aria-label":o,role:"img","data-kind":s,children:s==="mana"?e.jsx("img",{src:vs,alt:"","aria-hidden":!0}):e.jsx(ts,{className:"ccy-mark"})})})}const ae=864e5,H=Date.now(),Ys=(s,n,o,l,a)=>({key:`0xmock${s}-${s}`,itemId:String(s),name:n,thumbnail:"",rarity:["epic","legendary","rare","mythic","unique"][s%5],left:l-o,minted:o,sold:Math.round(o/6),earnedWei:BigInt(Math.round(o/6)*(3+s%5))*10n**18n,lifetimeSold:o,priceCredits:a==="classic"?null:20+s*5,manaWei:a==="classic"?"5000000000000000000":null,createdAt:H-s*11*ae,state:a}),Gs=[[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]],Qs=[{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 Js(s,n){const o=s.items.map(([a,u,x,p],w)=>Ys(n*10+w,a,u,x,p)),l=o.reduce((a,u)=>a+u.minted,0);return{contractAddress:`0xmock${n.toString().padStart(36,"0")}`,collectionId:`mock-${n}`,name:s.name,items:o,listed:o.filter(a=>a.state==="discounted").length,classic:o.filter(a=>a.state==="classic").length,soldOut:o.filter(a=>a.state==="soldout").length,sold:s.sold,earningsWei:BigInt(s.earnings)*10n**18n,createdAt:H-n*30*ae,trend:Gs[s.trend],claimed:l,runTotal:o.reduce((a,u)=>a+u.minted+u.left,0),exhausted:o.length>0&&o.every(a=>a.state==="soldout")}}const Ee=(()=>{const s=Qs.map(Js);return{collections:s,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:s.reduce((n,o)=>n+o.listed,0),neverListed:s.reduce((n,o)=>n+o.items.filter(l=>l.state==="unlisted").length,0),classic:s.reduce((n,o)=>n+o.classic,0),soldOut:s.reduce((n,o)=>n+o.soldOut,0)}})(),Zs={total:74,repeat:29,repeatPct:39.19,topSharePct:21.3},Xs=Array.from({length:12},(s,n)=>({address:`0x${(n+1).toString(16).repeat(40).slice(0,40)}`,bought:12-n,items:Math.max(1,8-n),collections:Math.max(1,5-Math.floor(n/2)),spentWei:BigInt(900-n*62)*10n**18n,lastAt:H-(n+1)*9*36e5})),at=(s,n,o,l,a,u)=>({id:`mock-coupon-${s}`,signer:"0xmockcreator0000000000000000000000000001",chainId:137,network:"MATIC",checks:{uses:50,expiration:H+a,effective:H-l,salt:`0x${s.toString().repeat(64).slice(0,64)}`,contractSignatureIndex:0,signerSignatureIndex:0,allowedRoot:"0x",externalChecks:[],allowedProof:[]},couponManager:"0x6c956587d9fe70032781edcdc626310648575382",couponAddress:"0x4ee8f6b87f4917a3bbc7c8bb3a06db8555f83db9",discountType:1,discount:o*1e4,root:`0x${"44".repeat(32)}`,collections:[n],signature:`0x${"cd".repeat(65)}`,proof:[],createdAt:H-l,state:{uses:u,cancelled:!1,revoked:!1,checkedAt:H},status:"active"}),en=[at(1,`0xmock${"0".repeat(36)}`,25,3*ae,3*ae,18),at(2,`0xmock${"1".padStart(36,"0")}`,15,12*36e5,9*ae,0)],tn=new Map(Ee.collections.flatMap(s=>s.items.map((n,o)=>[n.key,[41,3,128,0,17,6,92,1][o%8]]))),sn=Ee.collections.flatMap(s=>s.items.map(n=>[s.contractAddress,n])),nn=sn.slice(0,5).map(([s,n],o)=>({id:`mock-sale-${o}`,itemId:o===3?null:n.itemId,contractAddress:s,buyer:`0x${(o+3).toString(16).repeat(40).slice(0,40)}`,seller:"0xmockcreator0000000000000000000000000001",price:String(BigInt(40+o*17)*10n**18n),timestamp:H-(o===0?8*6e4:o*19*36e5),type:o===3?"order":"mint",network:"MATIC",tokenId:o===3?"1042":null})),on=r.div`
|
|
14
|
+
display: flex;
|
|
15
|
+
flex-direction: column;
|
|
16
|
+
gap: 22px;
|
|
17
|
+
|
|
18
|
+
/* The credits mark is pinned near-black globally (Icon.css) so a coloured total never tints it. Every
|
|
19
|
+
surface on this page is dark, so the whole page opts out once rather than each panel in turn. */
|
|
20
|
+
.ccy-mark,
|
|
21
|
+
.ccy {
|
|
22
|
+
color: ${t.colors.softWhite};
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
/* MANA's mark is an image, not a masked glyph, so no colour reaches it: the token's own artwork is dark
|
|
26
|
+
and vanished into every panel on this page. Driven to white instead. */
|
|
27
|
+
[data-kind='mana'] img {
|
|
28
|
+
filter: brightness(0) invert(1);
|
|
29
|
+
}
|
|
30
|
+
`,an=r.header`
|
|
31
|
+
display: flex;
|
|
32
|
+
align-items: flex-start;
|
|
33
|
+
justify-content: space-between;
|
|
34
|
+
gap: 20px;
|
|
35
|
+
flex-wrap: wrap;
|
|
36
|
+
/* The rule that closes the identity block off from the figures under it. */
|
|
37
|
+
padding-bottom: 24px;
|
|
38
|
+
border-bottom: 0.5px solid rgba(255, 255, 255, 0.3);
|
|
39
|
+
`,rn=r.div`
|
|
40
|
+
display: flex;
|
|
41
|
+
align-items: center;
|
|
42
|
+
gap: 12px;
|
|
43
|
+
min-width: 0;
|
|
44
|
+
`,ln=r.div`
|
|
45
|
+
display: flex;
|
|
46
|
+
flex-direction: column;
|
|
47
|
+
align-items: flex-start;
|
|
48
|
+
justify-content: center;
|
|
49
|
+
gap: 4px;
|
|
50
|
+
padding-bottom: 8px;
|
|
51
|
+
min-width: 0;
|
|
52
|
+
`,dn=r.span`
|
|
53
|
+
flex: none;
|
|
54
|
+
display: block;
|
|
55
|
+
width: 84px;
|
|
56
|
+
height: 84px;
|
|
57
|
+
border-radius: 50%;
|
|
58
|
+
background-color: rgba(0, 0, 0, 0.22);
|
|
59
|
+
background-size: cover;
|
|
60
|
+
background-position: center top;
|
|
61
|
+
border: 2px solid rgba(252, 252, 252, 0.22);
|
|
62
|
+
|
|
63
|
+
${t.media.maxWidth("mobile")} {
|
|
64
|
+
width: 56px;
|
|
65
|
+
height: 56px;
|
|
66
|
+
}
|
|
67
|
+
`,cn=r.p`
|
|
68
|
+
margin: 0;
|
|
69
|
+
font-family: ${t.font.sans};
|
|
70
|
+
font-size: 14px;
|
|
71
|
+
font-weight: 600;
|
|
72
|
+
line-height: 1.6;
|
|
73
|
+
color: ${t.colors.softWhite};
|
|
74
|
+
overflow: hidden;
|
|
75
|
+
text-overflow: ellipsis;
|
|
76
|
+
white-space: nowrap;
|
|
77
|
+
max-width: 100%;
|
|
78
|
+
`,hn=r.h1`
|
|
79
|
+
margin: 0;
|
|
80
|
+
font-family: ${t.font.sans};
|
|
81
|
+
font-size: 32px;
|
|
82
|
+
font-weight: 700;
|
|
83
|
+
line-height: 1.2;
|
|
84
|
+
letter-spacing: 0.46px;
|
|
85
|
+
color: ${t.colors.white};
|
|
86
|
+
|
|
87
|
+
${t.media.maxWidth("mobile")} {
|
|
88
|
+
font-size: 26px;
|
|
89
|
+
}
|
|
90
|
+
`,pn=r.div`
|
|
91
|
+
display: flex;
|
|
92
|
+
flex-direction: column;
|
|
93
|
+
align-items: flex-start;
|
|
94
|
+
gap: 8px;
|
|
95
|
+
min-width: 0;
|
|
96
|
+
`,it=r.p`
|
|
97
|
+
margin: 0;
|
|
98
|
+
display: flex;
|
|
99
|
+
align-items: center;
|
|
100
|
+
gap: 12px;
|
|
101
|
+
font-family: ${t.font.sans};
|
|
102
|
+
font-size: 12px;
|
|
103
|
+
line-height: 1;
|
|
104
|
+
color: ${t.colors.softWhite};
|
|
105
|
+
`,mn=r.div`
|
|
106
|
+
display: flex;
|
|
107
|
+
align-items: center;
|
|
108
|
+
justify-content: flex-end;
|
|
109
|
+
flex-wrap: wrap;
|
|
110
|
+
gap: 12px;
|
|
111
|
+
|
|
112
|
+
/* Two uppercase buttons that cannot shrink below their labels. On a phone they fit side by side in
|
|
113
|
+
Inter with a few pixels to spare, and in any wider fallback font they did not: the second one ran
|
|
114
|
+
15px off a 390px screen. Wrapping puts it on its own line instead. */
|
|
115
|
+
${t.media.maxWidth("mobile")} {
|
|
116
|
+
justify-content: flex-start;
|
|
117
|
+
width: 100%;
|
|
118
|
+
}
|
|
119
|
+
`,un=r.a`
|
|
120
|
+
display: inline-flex;
|
|
121
|
+
align-items: center;
|
|
122
|
+
justify-content: center;
|
|
123
|
+
gap: 8px;
|
|
124
|
+
height: 46px;
|
|
125
|
+
padding: 0 12px;
|
|
126
|
+
border-radius: ${t.radius.card};
|
|
127
|
+
color: ${t.colors.white};
|
|
128
|
+
font-family: ${t.font.sans};
|
|
129
|
+
font-size: 13px;
|
|
130
|
+
font-weight: 600;
|
|
131
|
+
line-height: 24px;
|
|
132
|
+
letter-spacing: 0.46px;
|
|
133
|
+
text-transform: uppercase;
|
|
134
|
+
text-decoration: underline;
|
|
135
|
+
white-space: nowrap;
|
|
136
|
+
|
|
137
|
+
&:hover {
|
|
138
|
+
color: ${t.colors.navViolet};
|
|
139
|
+
}
|
|
140
|
+
.ico {
|
|
141
|
+
width: 22px;
|
|
142
|
+
height: 22px;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
${t.media.maxWidth("mobile")} {
|
|
146
|
+
padding: 0 8px;
|
|
147
|
+
}
|
|
148
|
+
`,xn=r(ie)`
|
|
149
|
+
display: inline-flex;
|
|
150
|
+
align-items: center;
|
|
151
|
+
justify-content: center;
|
|
152
|
+
gap: 8px;
|
|
153
|
+
height: 46px;
|
|
154
|
+
padding: 0 24px;
|
|
155
|
+
border-radius: ${t.radius.card};
|
|
156
|
+
background: ${t.colors.overlay};
|
|
157
|
+
color: ${t.colors.white};
|
|
158
|
+
font-family: ${t.font.sans};
|
|
159
|
+
font-size: 13px;
|
|
160
|
+
font-weight: 600;
|
|
161
|
+
line-height: 24px;
|
|
162
|
+
letter-spacing: 0.46px;
|
|
163
|
+
text-transform: uppercase;
|
|
164
|
+
text-decoration: none;
|
|
165
|
+
white-space: nowrap;
|
|
166
|
+
transition: background 0.15s ease;
|
|
167
|
+
|
|
168
|
+
&:hover {
|
|
169
|
+
background: ${t.colors.overlayHover};
|
|
170
|
+
}
|
|
171
|
+
&:focus-visible {
|
|
172
|
+
outline: 2px solid ${t.colors.softWhite};
|
|
173
|
+
outline-offset: 2px;
|
|
174
|
+
}
|
|
175
|
+
.ico {
|
|
176
|
+
width: 20px;
|
|
177
|
+
height: 20px;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
${t.media.maxWidth("mobile")} {
|
|
181
|
+
padding: 0 16px;
|
|
182
|
+
}
|
|
183
|
+
`,fn=r.span`
|
|
184
|
+
display: inline-flex;
|
|
185
|
+
align-items: center;
|
|
186
|
+
gap: 8px;
|
|
187
|
+
margin-left: 12px;
|
|
188
|
+
padding-left: 12px;
|
|
189
|
+
border-left: 1px solid rgba(255, 255, 255, 0.3);
|
|
190
|
+
`,gn=r.a`
|
|
191
|
+
display: inline-flex;
|
|
192
|
+
align-items: center;
|
|
193
|
+
justify-content: center;
|
|
194
|
+
color: ${t.colors.softWhite};
|
|
195
|
+
transition: color 0.15s ease;
|
|
196
|
+
|
|
197
|
+
&:hover {
|
|
198
|
+
color: ${t.colors.navViolet};
|
|
199
|
+
}
|
|
200
|
+
.ico {
|
|
201
|
+
width: 15px;
|
|
202
|
+
height: 15px;
|
|
203
|
+
}
|
|
204
|
+
`,yn=r.div`
|
|
205
|
+
display: flex;
|
|
206
|
+
align-items: center;
|
|
207
|
+
justify-content: space-between;
|
|
208
|
+
gap: 16px;
|
|
209
|
+
flex-wrap: wrap;
|
|
210
|
+
`,bn=r.h2`
|
|
211
|
+
margin: 0;
|
|
212
|
+
font-family: ${t.font.sans};
|
|
213
|
+
font-size: 24px;
|
|
214
|
+
font-weight: 700;
|
|
215
|
+
line-height: 1.2;
|
|
216
|
+
color: ${t.colors.white};
|
|
217
|
+
`,wn=r.div`
|
|
218
|
+
display: flex;
|
|
219
|
+
gap: 4px;
|
|
220
|
+
padding: 4px;
|
|
221
|
+
border-radius: ${t.radius.pill};
|
|
222
|
+
background: rgba(0, 0, 0, 0.22);
|
|
223
|
+
`,jn=r.button`
|
|
224
|
+
border: 0;
|
|
225
|
+
cursor: pointer;
|
|
226
|
+
font-family: ${t.font.sans};
|
|
227
|
+
padding: 7px 15px;
|
|
228
|
+
border-radius: ${t.radius.pill};
|
|
229
|
+
font-size: 13px;
|
|
230
|
+
font-weight: 600;
|
|
231
|
+
color: rgba(252, 252, 252, 0.62);
|
|
232
|
+
background: transparent;
|
|
233
|
+
transition:
|
|
234
|
+
color 0.15s ease,
|
|
235
|
+
background 0.15s ease;
|
|
236
|
+
|
|
237
|
+
&:hover {
|
|
238
|
+
color: ${t.colors.softWhite};
|
|
239
|
+
}
|
|
240
|
+
&[aria-pressed='true'] {
|
|
241
|
+
background: ${t.colors.softWhite};
|
|
242
|
+
color: ${t.colors.text};
|
|
243
|
+
}
|
|
244
|
+
&:focus-visible {
|
|
245
|
+
outline: 2px solid ${t.colors.softWhite};
|
|
246
|
+
outline-offset: 2px;
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
@media (prefers-reduced-motion: reduce) {
|
|
250
|
+
transition: none;
|
|
251
|
+
}
|
|
252
|
+
`,Mt=r.section`
|
|
253
|
+
display: grid;
|
|
254
|
+
/* Five tiles when the store has resales to report, four when it does not — auto-fit rather than a fixed
|
|
255
|
+
count so neither case leaves a hole. */
|
|
256
|
+
grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
|
|
257
|
+
gap: 14px;
|
|
258
|
+
|
|
259
|
+
${t.media.maxWidth("lg")} {
|
|
260
|
+
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
261
|
+
}
|
|
262
|
+
${t.media.maxWidth("mobile")} {
|
|
263
|
+
grid-template-columns: minmax(0, 1fr);
|
|
264
|
+
}
|
|
265
|
+
`,q=r.div`
|
|
266
|
+
background: ${t.colors.overlay};
|
|
267
|
+
color: ${t.colors.softWhite};
|
|
268
|
+
border-radius: ${t.radius.modal};
|
|
269
|
+
padding: 12px 24px;
|
|
270
|
+
display: flex;
|
|
271
|
+
flex-direction: column;
|
|
272
|
+
gap: 12px;
|
|
273
|
+
min-width: 0;
|
|
274
|
+
/* The credits mark is pinned near-black globally (Icon.css) so a coloured total never tints it. That
|
|
275
|
+
was chosen for a white card and disappears into this one. */
|
|
276
|
+
.ccy-mark,
|
|
277
|
+
.ccy {
|
|
278
|
+
color: ${t.colors.softWhite};
|
|
279
|
+
}
|
|
280
|
+
`,Q=r.span`
|
|
281
|
+
display: flex;
|
|
282
|
+
align-items: center;
|
|
283
|
+
justify-content: flex-start;
|
|
284
|
+
gap: 8px;
|
|
285
|
+
/* The tiles carrying a tooltip button stand 3px taller than the rest, and in a grid that is 3px of dead
|
|
286
|
+
space under every other card. Held to the taller of the two. */
|
|
287
|
+
min-height: 18px;
|
|
288
|
+
font-family: ${t.font.sans};
|
|
289
|
+
font-size: 12px;
|
|
290
|
+
font-weight: 400;
|
|
291
|
+
line-height: 1;
|
|
292
|
+
letter-spacing: 1px;
|
|
293
|
+
text-transform: uppercase;
|
|
294
|
+
color: ${t.colors.gray4};
|
|
295
|
+
`,J=r.span`
|
|
296
|
+
/* Ahead of the label, as the design has it. Ordered rather than moved in the markup, because the mark is
|
|
297
|
+
the last child in every tile and reordering five sets of markup would buy nothing. */
|
|
298
|
+
order: -1;
|
|
299
|
+
font-size: 16px;
|
|
300
|
+
line-height: 1;
|
|
301
|
+
filter: saturate(0.9);
|
|
302
|
+
`,Z=r.span`
|
|
303
|
+
display: flex;
|
|
304
|
+
align-items: baseline;
|
|
305
|
+
gap: 8px;
|
|
306
|
+
|
|
307
|
+
/* The currency mark is a box, not a glyph with a baseline: sized to the digits' cap height and centred
|
|
308
|
+
against them, rather than left to sit on the line's bottom edge. */
|
|
309
|
+
[data-kind] {
|
|
310
|
+
align-self: center;
|
|
311
|
+
margin-right: 6px;
|
|
312
|
+
}
|
|
313
|
+
[data-kind] img,
|
|
314
|
+
[data-kind] .ico {
|
|
315
|
+
width: 0.74em;
|
|
316
|
+
height: 0.74em;
|
|
317
|
+
vertical-align: baseline;
|
|
318
|
+
}
|
|
319
|
+
font-family: ${t.font.sans};
|
|
320
|
+
font-size: 32px;
|
|
321
|
+
font-weight: 600;
|
|
322
|
+
line-height: 1.235;
|
|
323
|
+
letter-spacing: -0.02em;
|
|
324
|
+
font-variant-numeric: tabular-nums;
|
|
325
|
+
`,Sn=r.span`
|
|
326
|
+
font-size: 20px;
|
|
327
|
+
font-weight: 600;
|
|
328
|
+
color: ${t.colors.gray4};
|
|
329
|
+
margin-right: -2px;
|
|
330
|
+
`,rt=r.span`
|
|
331
|
+
font-size: 15px;
|
|
332
|
+
font-weight: 600;
|
|
333
|
+
letter-spacing: 0;
|
|
334
|
+
color: ${t.colors.gray4};
|
|
335
|
+
`,X=r.span`
|
|
336
|
+
display: flex;
|
|
337
|
+
align-items: center;
|
|
338
|
+
flex-wrap: wrap;
|
|
339
|
+
gap: 4px 6px;
|
|
340
|
+
min-width: 0;
|
|
341
|
+
min-height: 16px;
|
|
342
|
+
font-family: ${t.font.sans};
|
|
343
|
+
font-size: 12px;
|
|
344
|
+
line-height: 1.35;
|
|
345
|
+
color: ${t.colors.gray4};
|
|
346
|
+
`,lt=r.span`
|
|
347
|
+
display: inline-flex;
|
|
348
|
+
align-items: center;
|
|
349
|
+
gap: 4px;
|
|
350
|
+
font-size: 11px;
|
|
351
|
+
font-weight: 600;
|
|
352
|
+
text-transform: uppercase;
|
|
353
|
+
letter-spacing: 0.04em;
|
|
354
|
+
color: ${t.colors.gray4};
|
|
355
|
+
border: 1px dashed ${t.colors.cardLine};
|
|
356
|
+
border-radius: ${t.radius.chip};
|
|
357
|
+
padding: 1px 5px;
|
|
358
|
+
`,U=r.section`
|
|
359
|
+
display: flex;
|
|
360
|
+
flex-direction: column;
|
|
361
|
+
gap: 12px;
|
|
362
|
+
padding: 16px;
|
|
363
|
+
background: ${t.colors.overlayLight};
|
|
364
|
+
color: ${t.colors.softWhite};
|
|
365
|
+
border-radius: ${t.radius.banner};
|
|
366
|
+
min-width: 0;
|
|
367
|
+
/* The credits mark is pinned near-black globally (Icon.css) so a coloured total never tints it. That
|
|
368
|
+
was chosen for a white card and disappears into this one. */
|
|
369
|
+
.ccy-mark,
|
|
370
|
+
.ccy {
|
|
371
|
+
color: ${t.colors.softWhite};
|
|
372
|
+
}
|
|
373
|
+
`,fe=r.div`
|
|
374
|
+
display: flex;
|
|
375
|
+
align-items: baseline;
|
|
376
|
+
justify-content: space-between;
|
|
377
|
+
gap: 12px;
|
|
378
|
+
`,pe=r.h2`
|
|
379
|
+
margin: 0;
|
|
380
|
+
font-family: ${t.font.sans};
|
|
381
|
+
font-size: 15px;
|
|
382
|
+
font-weight: 700;
|
|
383
|
+
letter-spacing: -0.01em;
|
|
384
|
+
`;r.div`
|
|
385
|
+
display: flex;
|
|
386
|
+
align-items: center;
|
|
387
|
+
gap: 12px;
|
|
388
|
+
`;const kn=r(Ws)`
|
|
389
|
+
/* Direct child only: the menu's options are buttons as well, and a descendant rule turned them white
|
|
390
|
+
on the white menu, which is a menu you cannot read. */
|
|
391
|
+
> button {
|
|
392
|
+
gap: 24px;
|
|
393
|
+
height: 40px;
|
|
394
|
+
padding: 4px 4px 4px 12px;
|
|
395
|
+
background: transparent;
|
|
396
|
+
border: 0.5px solid ${t.colors.white};
|
|
397
|
+
border-radius: ${t.radius.btn};
|
|
398
|
+
color: ${t.colors.white};
|
|
399
|
+
font-size: 12px;
|
|
400
|
+
font-weight: 500;
|
|
401
|
+
text-transform: uppercase;
|
|
402
|
+
letter-spacing: 0;
|
|
403
|
+
}
|
|
404
|
+
> button:hover {
|
|
405
|
+
border-color: ${t.colors.softWhite};
|
|
406
|
+
background: ${t.colors.glassFaint};
|
|
407
|
+
color: ${t.colors.softWhite};
|
|
408
|
+
}
|
|
409
|
+
/* The chevron's colour is an inline style on the shared component, so a class cannot reach it — this
|
|
410
|
+
is the one place that has to shout. */
|
|
411
|
+
> button .ico {
|
|
412
|
+
color: ${t.colors.softWhite} !important;
|
|
413
|
+
}
|
|
414
|
+
`,$n=r.span`
|
|
415
|
+
font-family: ${t.font.sans};
|
|
416
|
+
font-size: 12px;
|
|
417
|
+
color: ${t.colors.gray4};
|
|
418
|
+
`,Lt="24px 56px minmax(170px, 1fr) minmax(236px, 1.34fr) minmax(140px, 1fr) minmax(140px, 1fr) minmax(150px, 1fr) 158px",Tt=r.div`
|
|
419
|
+
display: grid;
|
|
420
|
+
grid-template-columns: ${Lt};
|
|
421
|
+
align-items: center;
|
|
422
|
+
gap: 12px;
|
|
423
|
+
padding: 12px 24px 12px 12px;
|
|
424
|
+
min-width: min-content;
|
|
425
|
+
background: ${t.colors.overlayStrong};
|
|
426
|
+
border-radius: ${t.radius.card} ${t.radius.card} 0 0;
|
|
427
|
+
font-family: ${t.font.sans};
|
|
428
|
+
font-size: 14px;
|
|
429
|
+
color: ${t.colors.softWhite};
|
|
430
|
+
|
|
431
|
+
/* Each label sits the way its column's content sits, so a header never points at the wrong figure. */
|
|
432
|
+
> *:nth-child(4),
|
|
433
|
+
> *:nth-child(5),
|
|
434
|
+
> *:nth-child(6),
|
|
435
|
+
> *:nth-child(7) {
|
|
436
|
+
text-align: center;
|
|
437
|
+
}
|
|
438
|
+
/* The label sits over the middle of the action, not over its right edge: in the design both occupy the
|
|
439
|
+
same box, so the header stretches across the track and centres inside it. */
|
|
440
|
+
> *:last-child {
|
|
441
|
+
justify-self: stretch;
|
|
442
|
+
text-align: center;
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
${t.media.maxWidth("mobile")} {
|
|
446
|
+
display: none;
|
|
447
|
+
}
|
|
448
|
+
`,zt=r.div`
|
|
449
|
+
display: flex;
|
|
450
|
+
flex-direction: column;
|
|
451
|
+
gap: 2px;
|
|
452
|
+
min-width: 0;
|
|
453
|
+
/*
|
|
454
|
+
* The run scrolls sideways rather than crushing its own columns.
|
|
455
|
+
*
|
|
456
|
+
* The tracks need 1158px before the grid starts taking room from them, and the panel used to clip what
|
|
457
|
+
* did not fit. It does not any more, and a clipped row is worse than a scrolling one: the action is the
|
|
458
|
+
* last column, so on a 1024px tablet "Manage" simply left the screen with no way to reach it.
|
|
459
|
+
*/
|
|
460
|
+
overflow-x: auto;
|
|
461
|
+
|
|
462
|
+
> *:last-child {
|
|
463
|
+
border-radius: 0 0 ${t.radius.card} ${t.radius.card};
|
|
464
|
+
}
|
|
465
|
+
`,Pt=r.div`
|
|
466
|
+
display: grid;
|
|
467
|
+
grid-template-columns: ${Lt};
|
|
468
|
+
align-items: center;
|
|
469
|
+
gap: 12px;
|
|
470
|
+
padding: 12px 24px 12px 12px;
|
|
471
|
+
min-width: min-content;
|
|
472
|
+
background: ${t.colors.overlay};
|
|
473
|
+
|
|
474
|
+
/* A fixed track keeps every row's action in the same place, centred under its column's label. */
|
|
475
|
+
> *:last-child {
|
|
476
|
+
justify-self: center;
|
|
477
|
+
}
|
|
478
|
+
|
|
479
|
+
/**
|
|
480
|
+
* A collection with no copies left, set back from the ones that still have something to sell.
|
|
481
|
+
*
|
|
482
|
+
* Muted rather than faded: opacity would take the row's one action down with it, and a creator who wants
|
|
483
|
+
* to look at a finished run should not have to fight the styling to click into it. The thumbnail loses
|
|
484
|
+
* its colour, the figures lose their weight, and the row still reads.
|
|
485
|
+
*/
|
|
486
|
+
&[data-exhausted] {
|
|
487
|
+
background: rgba(0, 0, 0, 0.55);
|
|
488
|
+
color: ${t.colors.gray4};
|
|
489
|
+
|
|
490
|
+
[data-testid='store-collection-thumb'] img {
|
|
491
|
+
filter: grayscale(0.75);
|
|
492
|
+
opacity: 0.72;
|
|
493
|
+
}
|
|
494
|
+
/* The collection's own name follows the row; the action at the end keeps its colour, because a
|
|
495
|
+
finished run is still one a creator opens, and a button that reads disabled invites nobody. */
|
|
496
|
+
[data-testid='store-collection-name'] {
|
|
497
|
+
color: inherit;
|
|
498
|
+
}
|
|
499
|
+
}
|
|
500
|
+
|
|
501
|
+
/**
|
|
502
|
+
* On a phone the seven columns become two rows: identity and figure on the first, the discount and the
|
|
503
|
+
* action on the second. Placed explicitly rather than left to auto-flow, which dropped both of them
|
|
504
|
+
* into the first two narrow tracks on top of each other.
|
|
505
|
+
*/
|
|
506
|
+
/*
|
|
507
|
+
* Three lines on a phone: who it is and what to do about it, then the two figures, then the discount.
|
|
508
|
+
*
|
|
509
|
+
* Every cell is placed explicitly rather than left to auto-flow, because the columns changed order once
|
|
510
|
+
* already and an auto-placed grid answers that by putting a sparkline where a button used to be.
|
|
511
|
+
*/
|
|
512
|
+
${t.media.maxWidth("mobile")} {
|
|
513
|
+
grid-template-columns: 24px 56px minmax(0, 1fr) auto;
|
|
514
|
+
row-gap: 12px;
|
|
515
|
+
|
|
516
|
+
> *:nth-child(1) {
|
|
517
|
+
grid-area: 1 / 1;
|
|
518
|
+
}
|
|
519
|
+
> *:nth-child(2) {
|
|
520
|
+
grid-area: 1 / 2;
|
|
521
|
+
}
|
|
522
|
+
/* The name takes the whole of its line. Sharing it with the action left "Founders Edition" as an
|
|
523
|
+
ellipsis and a chip, which is the one cell on the row that has to be readable. */
|
|
524
|
+
> *:nth-child(3) {
|
|
525
|
+
grid-area: 1 / 3 / 1 / 5;
|
|
526
|
+
}
|
|
527
|
+
> *:nth-child(5) {
|
|
528
|
+
grid-area: 2 / 1 / 2 / 3;
|
|
529
|
+
justify-self: start;
|
|
530
|
+
}
|
|
531
|
+
> *:nth-child(6) {
|
|
532
|
+
grid-area: 2 / 3;
|
|
533
|
+
justify-self: start;
|
|
534
|
+
}
|
|
535
|
+
> *:nth-child(8) {
|
|
536
|
+
grid-area: 2 / 4;
|
|
537
|
+
justify-self: end;
|
|
538
|
+
}
|
|
539
|
+
> *:nth-child(4) {
|
|
540
|
+
grid-area: 3 / 1 / 3 / 5;
|
|
541
|
+
justify-self: start;
|
|
542
|
+
align-items: flex-start;
|
|
543
|
+
text-align: left;
|
|
544
|
+
}
|
|
545
|
+
}
|
|
546
|
+
`,vn=r.button`
|
|
547
|
+
position: relative;
|
|
548
|
+
display: grid;
|
|
549
|
+
place-items: center;
|
|
550
|
+
width: 24px;
|
|
551
|
+
height: 24px;
|
|
552
|
+
padding: 0;
|
|
553
|
+
border: 0;
|
|
554
|
+
border-radius: ${t.radius.btn};
|
|
555
|
+
background: none;
|
|
556
|
+
cursor: pointer;
|
|
557
|
+
color: ${t.colors.gray4};
|
|
558
|
+
|
|
559
|
+
&:hover {
|
|
560
|
+
background: ${t.colors.glassFaint};
|
|
561
|
+
color: ${t.colors.softWhite};
|
|
562
|
+
}
|
|
563
|
+
&:focus-visible {
|
|
564
|
+
outline: 2px solid ${t.colors.navViolet};
|
|
565
|
+
outline-offset: 2px;
|
|
566
|
+
}
|
|
567
|
+
|
|
568
|
+
/* A finger needs more than the 24px the glyph occupies, and the row has that much clear space around it. */
|
|
569
|
+
&::after {
|
|
570
|
+
content: '';
|
|
571
|
+
position: absolute;
|
|
572
|
+
inset: -10px;
|
|
573
|
+
}
|
|
574
|
+
|
|
575
|
+
.ico {
|
|
576
|
+
width: 16px;
|
|
577
|
+
height: 16px;
|
|
578
|
+
transition: transform 0.18s ease;
|
|
579
|
+
}
|
|
580
|
+
&[aria-expanded='true'] .ico {
|
|
581
|
+
transform: rotate(180deg);
|
|
582
|
+
}
|
|
583
|
+
|
|
584
|
+
@media (prefers-reduced-motion: reduce) {
|
|
585
|
+
.ico {
|
|
586
|
+
transition: none;
|
|
587
|
+
}
|
|
588
|
+
}
|
|
589
|
+
`,Cn=r.span`
|
|
590
|
+
width: 56px;
|
|
591
|
+
height: 56px;
|
|
592
|
+
border-radius: ${t.radius.btn};
|
|
593
|
+
overflow: hidden;
|
|
594
|
+
background: ${t.colors.overlayLight};
|
|
595
|
+
`,An=r.span`
|
|
596
|
+
flex: none;
|
|
597
|
+
display: inline-flex;
|
|
598
|
+
align-items: center;
|
|
599
|
+
font-family: ${t.font.sans};
|
|
600
|
+
font-size: 10px;
|
|
601
|
+
font-weight: 700;
|
|
602
|
+
letter-spacing: 0.06em;
|
|
603
|
+
text-transform: uppercase;
|
|
604
|
+
padding: 3px 7px;
|
|
605
|
+
border-radius: ${t.radius.pill};
|
|
606
|
+
color: ${t.colors.gray4};
|
|
607
|
+
background: ${t.colors.glassFaint};
|
|
608
|
+
`,In=r.span`
|
|
609
|
+
display: flex;
|
|
610
|
+
align-items: center;
|
|
611
|
+
flex-wrap: wrap;
|
|
612
|
+
gap: 4px 8px;
|
|
613
|
+
min-width: 0;
|
|
614
|
+
|
|
615
|
+
/*
|
|
616
|
+
* The chip yields before the name does, which is the opposite of what it used to do.
|
|
617
|
+
*
|
|
618
|
+
* With a wide name column the name could ellipsise and keep "sold out" beside it. The columns are even
|
|
619
|
+
* now, so that column is 176px, and yielding the name first left "Founders Ed…" next to a chip: the row
|
|
620
|
+
* lost the one thing it has to say to save the one thing that repeats on every sold-out row.
|
|
621
|
+
*/
|
|
622
|
+
a {
|
|
623
|
+
min-width: 0;
|
|
624
|
+
flex: 0 1 auto;
|
|
625
|
+
}
|
|
626
|
+
`,Wn=r.span`
|
|
627
|
+
min-width: 0;
|
|
628
|
+
|
|
629
|
+
a {
|
|
630
|
+
display: block;
|
|
631
|
+
color: inherit;
|
|
632
|
+
text-decoration: none;
|
|
633
|
+
font-family: ${t.font.sans};
|
|
634
|
+
font-size: 14px;
|
|
635
|
+
font-weight: 600;
|
|
636
|
+
overflow: hidden;
|
|
637
|
+
text-overflow: ellipsis;
|
|
638
|
+
white-space: nowrap;
|
|
639
|
+
}
|
|
640
|
+
a:hover,
|
|
641
|
+
a:focus-visible {
|
|
642
|
+
text-decoration: underline;
|
|
643
|
+
}
|
|
644
|
+
`,Mn=r.span`
|
|
645
|
+
display: block;
|
|
646
|
+
font-family: ${t.font.sans};
|
|
647
|
+
font-size: 12px;
|
|
648
|
+
color: ${t.colors.gray4};
|
|
649
|
+
overflow: hidden;
|
|
650
|
+
text-overflow: ellipsis;
|
|
651
|
+
white-space: nowrap;
|
|
652
|
+
`;r.span`
|
|
653
|
+
font-family: ${t.font.sans};
|
|
654
|
+
font-size: 15px;
|
|
655
|
+
font-weight: 700;
|
|
656
|
+
font-variant-numeric: tabular-nums;
|
|
657
|
+
text-align: right;
|
|
658
|
+
|
|
659
|
+
small {
|
|
660
|
+
display: block;
|
|
661
|
+
font-size: 11px;
|
|
662
|
+
font-weight: 500;
|
|
663
|
+
color: ${t.colors.gray4};
|
|
664
|
+
text-transform: uppercase;
|
|
665
|
+
letter-spacing: 0.04em;
|
|
666
|
+
}
|
|
667
|
+
|
|
668
|
+
${t.media.maxWidth("mobile")} {
|
|
669
|
+
display: none;
|
|
670
|
+
}
|
|
671
|
+
`;const Ln=r.span`
|
|
672
|
+
min-width: 0;
|
|
673
|
+
|
|
674
|
+
${t.media.maxWidth("mobile")} {
|
|
675
|
+
display: none;
|
|
676
|
+
}
|
|
677
|
+
`,dt=r.svg`
|
|
678
|
+
display: block;
|
|
679
|
+
width: 100%;
|
|
680
|
+
height: 34px;
|
|
681
|
+
`,Tn=r.div`
|
|
682
|
+
/* A shade deeper than the row it belongs to, not lighter. The rows carry their own dark fill now, and a
|
|
683
|
+
translucent white panel between them read as a different surface breaking the run in half. */
|
|
684
|
+
background: ${t.colors.overlayStrong};
|
|
685
|
+
padding: 4px 24px 10px 48px;
|
|
686
|
+
|
|
687
|
+
${t.media.maxWidth("mobile")} {
|
|
688
|
+
padding-left: 32px;
|
|
689
|
+
}
|
|
690
|
+
`,zn=r.div`
|
|
691
|
+
display: flex;
|
|
692
|
+
flex-wrap: wrap;
|
|
693
|
+
gap: 8px 26px;
|
|
694
|
+
padding: 12px 0 13px;
|
|
695
|
+
border-bottom: 1px solid ${t.colors.cardLine};
|
|
696
|
+
|
|
697
|
+
span {
|
|
698
|
+
display: flex;
|
|
699
|
+
align-items: baseline;
|
|
700
|
+
gap: 6px;
|
|
701
|
+
font-family: ${t.font.sans};
|
|
702
|
+
font-size: 11px;
|
|
703
|
+
font-weight: 600;
|
|
704
|
+
letter-spacing: 0.04em;
|
|
705
|
+
text-transform: uppercase;
|
|
706
|
+
color: ${t.colors.gray4};
|
|
707
|
+
}
|
|
708
|
+
b {
|
|
709
|
+
/* The currency mark is its own inline-flex element, so the figure needs a row of its own or the two
|
|
710
|
+
break onto separate lines. */
|
|
711
|
+
display: inline-flex;
|
|
712
|
+
align-items: center;
|
|
713
|
+
gap: 3px;
|
|
714
|
+
white-space: nowrap;
|
|
715
|
+
font-size: 15px;
|
|
716
|
+
font-weight: 700;
|
|
717
|
+
letter-spacing: 0;
|
|
718
|
+
text-transform: none;
|
|
719
|
+
color: ${t.colors.softWhite};
|
|
720
|
+
font-variant-numeric: tabular-nums;
|
|
721
|
+
}
|
|
722
|
+
`,Pn=r.div`
|
|
723
|
+
display: grid;
|
|
724
|
+
/* The stock track is fixed rather than max-content: each row is its own grid, so a content-sized last
|
|
725
|
+
track let every row measure itself and none of them lined up. 124px clears the widest figure the page
|
|
726
|
+
renders (105px) with room to spare, without leaving a hand's width between the bar and the number. */
|
|
727
|
+
grid-template-columns: 40px minmax(0, 1fr) 72px 64px 152px 124px;
|
|
728
|
+
align-items: center;
|
|
729
|
+
gap: 22px;
|
|
730
|
+
padding: 13px 0;
|
|
731
|
+
|
|
732
|
+
> *:last-child {
|
|
733
|
+
justify-self: end;
|
|
734
|
+
}
|
|
735
|
+
|
|
736
|
+
& + & {
|
|
737
|
+
border-top: 1px solid ${t.colors.cardLine};
|
|
738
|
+
}
|
|
739
|
+
|
|
740
|
+
/*
|
|
741
|
+
* Two lines on a phone: the item, then its figures under the name.
|
|
742
|
+
*
|
|
743
|
+
* Placed explicitly. With three tracks and six cells the browser auto-flowed the stock figure into the
|
|
744
|
+
* 40px thumbnail track on the second row, where justify-self: end right-aligned 105px of text inside
|
|
745
|
+
* 40px of column and pushed its left edge a pixel off the card.
|
|
746
|
+
*/
|
|
747
|
+
${t.media.maxWidth("mobile")} {
|
|
748
|
+
grid-template-columns: 40px minmax(0, 1fr) auto;
|
|
749
|
+
column-gap: 12px;
|
|
750
|
+
row-gap: 8px;
|
|
751
|
+
|
|
752
|
+
> *:nth-child(3) {
|
|
753
|
+
grid-area: 2 / 2;
|
|
754
|
+
justify-self: start;
|
|
755
|
+
}
|
|
756
|
+
> *:last-child {
|
|
757
|
+
grid-area: 2 / 3;
|
|
758
|
+
justify-self: end;
|
|
759
|
+
}
|
|
760
|
+
}
|
|
761
|
+
`,_n=r.span`
|
|
762
|
+
display: block;
|
|
763
|
+
width: 40px;
|
|
764
|
+
height: 40px;
|
|
765
|
+
border-radius: ${t.radius.btn};
|
|
766
|
+
overflow: hidden;
|
|
767
|
+
/* The rarity wash is a gradient of ALPHAS, drawn for a white card. Composited over a dark panel instead
|
|
768
|
+
it turns muddy, so the base it was measured against is put back under it. */
|
|
769
|
+
background-color: ${t.colors.white};
|
|
770
|
+
|
|
771
|
+
img {
|
|
772
|
+
width: 100%;
|
|
773
|
+
height: 100%;
|
|
774
|
+
object-fit: contain;
|
|
775
|
+
}
|
|
776
|
+
`,Fn=r.span`
|
|
777
|
+
min-width: 0;
|
|
778
|
+
display: flex;
|
|
779
|
+
flex-direction: column;
|
|
780
|
+
gap: 2px;
|
|
781
|
+
`,Nn=r.span`
|
|
782
|
+
display: flex;
|
|
783
|
+
align-items: center;
|
|
784
|
+
gap: 6px;
|
|
785
|
+
min-width: 0;
|
|
786
|
+
`,En=r.span`
|
|
787
|
+
flex: none;
|
|
788
|
+
display: inline-flex;
|
|
789
|
+
align-items: center;
|
|
790
|
+
height: 15px;
|
|
791
|
+
padding: 0 6px;
|
|
792
|
+
border-radius: 5px;
|
|
793
|
+
font-family: ${t.font.sans};
|
|
794
|
+
font-size: 9px;
|
|
795
|
+
font-weight: 700;
|
|
796
|
+
letter-spacing: 0.02em;
|
|
797
|
+
text-transform: uppercase;
|
|
798
|
+
color: ${t.colors.softWhite};
|
|
799
|
+
`,Dn=r(ie)`
|
|
800
|
+
font-family: ${t.font.sans};
|
|
801
|
+
font-size: 13px;
|
|
802
|
+
color: inherit;
|
|
803
|
+
text-decoration: none;
|
|
804
|
+
overflow: hidden;
|
|
805
|
+
text-overflow: ellipsis;
|
|
806
|
+
white-space: nowrap;
|
|
807
|
+
|
|
808
|
+
&:hover,
|
|
809
|
+
&:focus-visible {
|
|
810
|
+
text-decoration: underline;
|
|
811
|
+
}
|
|
812
|
+
`,On=r.span`
|
|
813
|
+
font-family: ${t.font.sans};
|
|
814
|
+
font-size: 13px;
|
|
815
|
+
white-space: nowrap;
|
|
816
|
+
font-weight: 600;
|
|
817
|
+
font-variant-numeric: tabular-nums;
|
|
818
|
+
text-align: right;
|
|
819
|
+
color: ${t.colors.softWhite};
|
|
820
|
+
|
|
821
|
+
small {
|
|
822
|
+
color: ${t.colors.gray4};
|
|
823
|
+
font-weight: 500;
|
|
824
|
+
}
|
|
825
|
+
|
|
826
|
+
${t.media.maxWidth("mobile")} {
|
|
827
|
+
text-align: left;
|
|
828
|
+
}
|
|
829
|
+
`,Bn=r.span`
|
|
830
|
+
display: block;
|
|
831
|
+
width: 96px;
|
|
832
|
+
height: 6px;
|
|
833
|
+
border-radius: 100px;
|
|
834
|
+
/* White, not the near-black this started as: the track was a 10% dark fill chosen for a white card, and
|
|
835
|
+
on the row's own dark surface it was the same colour as the row. */
|
|
836
|
+
background: rgba(255, 255, 255, 0.1);
|
|
837
|
+
overflow: hidden;
|
|
838
|
+
/* Pushed to the end of its track, so it sits with the stock figure it measures rather than crowding the
|
|
839
|
+
saves count next to it. */
|
|
840
|
+
margin-left: auto;
|
|
841
|
+
|
|
842
|
+
i {
|
|
843
|
+
display: block;
|
|
844
|
+
height: 6px;
|
|
845
|
+
border-radius: 100px;
|
|
846
|
+
background: ${t.colors.navViolet};
|
|
847
|
+
}
|
|
848
|
+
|
|
849
|
+
${t.media.maxWidth("mobile")} {
|
|
850
|
+
display: none;
|
|
851
|
+
}
|
|
852
|
+
`,Rn=r.span`
|
|
853
|
+
font-family: ${t.font.sans};
|
|
854
|
+
font-size: 11px;
|
|
855
|
+
font-weight: 600;
|
|
856
|
+
letter-spacing: 0.04em;
|
|
857
|
+
text-transform: uppercase;
|
|
858
|
+
white-space: nowrap;
|
|
859
|
+
color: ${t.colors.gray4};
|
|
860
|
+
|
|
861
|
+
&[data-state='soldout'] {
|
|
862
|
+
color: ${t.colors.navViolet};
|
|
863
|
+
}
|
|
864
|
+
/* A listed item shows its price rather than a label, so it takes the ink prices take. */
|
|
865
|
+
&[data-state='classic'],
|
|
866
|
+
&[data-state='discounted'] {
|
|
867
|
+
display: inline-flex;
|
|
868
|
+
align-items: center;
|
|
869
|
+
gap: 2px;
|
|
870
|
+
font-size: 12px;
|
|
871
|
+
letter-spacing: 0;
|
|
872
|
+
text-transform: none;
|
|
873
|
+
color: ${t.colors.softWhite};
|
|
874
|
+
}
|
|
875
|
+
`,Hn=r.span`
|
|
876
|
+
display: flex;
|
|
877
|
+
flex-direction: column;
|
|
878
|
+
align-items: flex-end;
|
|
879
|
+
gap: 4px;
|
|
880
|
+
line-height: 1.25;
|
|
881
|
+
`,qn=r.span`
|
|
882
|
+
font-size: 10px;
|
|
883
|
+
font-weight: 600;
|
|
884
|
+
letter-spacing: 0.04em;
|
|
885
|
+
text-transform: uppercase;
|
|
886
|
+
color: ${t.colors.gray4};
|
|
887
|
+
margin-right: 4px;
|
|
888
|
+
`,Un=r.span`
|
|
889
|
+
font-family: ${t.font.sans};
|
|
890
|
+
font-size: 10px;
|
|
891
|
+
opacity: 0.85;
|
|
892
|
+
font-weight: 600;
|
|
893
|
+
letter-spacing: 0.03em;
|
|
894
|
+
text-transform: uppercase;
|
|
895
|
+
white-space: nowrap;
|
|
896
|
+
color: ${t.colors.gray4};
|
|
897
|
+
`,Kn=r.span`
|
|
898
|
+
font-family: ${t.font.sans};
|
|
899
|
+
font-size: 11px;
|
|
900
|
+
font-weight: 600;
|
|
901
|
+
letter-spacing: 0.04em;
|
|
902
|
+
text-transform: uppercase;
|
|
903
|
+
white-space: nowrap;
|
|
904
|
+
text-align: right;
|
|
905
|
+
color: ${t.colors.gray4};
|
|
906
|
+
font-variant-numeric: tabular-nums;
|
|
907
|
+
|
|
908
|
+
b {
|
|
909
|
+
color: ${t.colors.softWhite};
|
|
910
|
+
font-weight: 700;
|
|
911
|
+
}
|
|
912
|
+
&[data-out='true'] {
|
|
913
|
+
color: ${t.colors.navViolet};
|
|
914
|
+
}
|
|
915
|
+
`;r.div`
|
|
916
|
+
display: grid;
|
|
917
|
+
grid-template-columns: 3px minmax(0, 1fr) auto;
|
|
918
|
+
gap: 12px;
|
|
919
|
+
align-items: center;
|
|
920
|
+
padding: 13px 18px;
|
|
921
|
+
border-top: 1px solid ${t.colors.cardLine};
|
|
922
|
+
`;r.span`
|
|
923
|
+
align-self: stretch;
|
|
924
|
+
border-radius: 2px;
|
|
925
|
+
background: ${t.colors.cardLine};
|
|
926
|
+
|
|
927
|
+
&[data-sev='act'] {
|
|
928
|
+
background: ${t.colors.dclRed};
|
|
929
|
+
}
|
|
930
|
+
&[data-sev='soon'] {
|
|
931
|
+
background: ${t.colors.flareAmber};
|
|
932
|
+
}
|
|
933
|
+
`;const ct=r.button`
|
|
934
|
+
display: inline-grid;
|
|
935
|
+
place-items: center;
|
|
936
|
+
width: 16px;
|
|
937
|
+
height: 16px;
|
|
938
|
+
margin-left: 5px;
|
|
939
|
+
padding: 0;
|
|
940
|
+
border: 0;
|
|
941
|
+
background: none;
|
|
942
|
+
cursor: help;
|
|
943
|
+
color: ${t.colors.gray4};
|
|
944
|
+
|
|
945
|
+
&:hover,
|
|
946
|
+
&:focus-visible {
|
|
947
|
+
color: ${t.colors.softWhite};
|
|
948
|
+
}
|
|
949
|
+
.ico {
|
|
950
|
+
width: 14px;
|
|
951
|
+
height: 14px;
|
|
952
|
+
}
|
|
953
|
+
`;r.span`
|
|
954
|
+
b {
|
|
955
|
+
display: flex;
|
|
956
|
+
align-items: center;
|
|
957
|
+
font-family: ${t.font.sans};
|
|
958
|
+
font-size: 13px;
|
|
959
|
+
font-weight: 600;
|
|
960
|
+
}
|
|
961
|
+
span {
|
|
962
|
+
display: block;
|
|
963
|
+
margin-top: 2px;
|
|
964
|
+
font-family: ${t.font.sans};
|
|
965
|
+
font-size: 12px;
|
|
966
|
+
color: ${t.colors.gray4};
|
|
967
|
+
}
|
|
968
|
+
`;r(ie)`
|
|
969
|
+
display: inline-block;
|
|
970
|
+
margin-top: 4px;
|
|
971
|
+
font-family: ${t.font.sans};
|
|
972
|
+
font-size: 12px;
|
|
973
|
+
font-weight: 600;
|
|
974
|
+
color: ${t.colors.navViolet};
|
|
975
|
+
text-decoration: none;
|
|
976
|
+
|
|
977
|
+
&:hover,
|
|
978
|
+
&:focus-visible {
|
|
979
|
+
text-decoration: underline;
|
|
980
|
+
}
|
|
981
|
+
`;r.span`
|
|
982
|
+
font-family: ${t.font.sans};
|
|
983
|
+
font-size: 18px;
|
|
984
|
+
font-weight: 700;
|
|
985
|
+
font-variant-numeric: tabular-nums;
|
|
986
|
+
`;const Ie=r.div`
|
|
987
|
+
overflow-x: auto;
|
|
988
|
+
`,De=r.table`
|
|
989
|
+
width: 100%;
|
|
990
|
+
/* Fixed, so a page of short names and one of long ones lay their columns out identically — the widths
|
|
991
|
+
come from the header row rather than from whatever this page happens to hold. */
|
|
992
|
+
table-layout: fixed;
|
|
993
|
+
|
|
994
|
+
thead th:nth-of-type(1) {
|
|
995
|
+
width: 36%;
|
|
996
|
+
}
|
|
997
|
+
thead th:nth-of-type(2) {
|
|
998
|
+
width: 24%;
|
|
999
|
+
}
|
|
1000
|
+
thead th:nth-of-type(3) {
|
|
1001
|
+
width: 120px;
|
|
1002
|
+
}
|
|
1003
|
+
thead th:nth-of-type(4) {
|
|
1004
|
+
width: 14%;
|
|
1005
|
+
}
|
|
1006
|
+
thead th:nth-of-type(5) {
|
|
1007
|
+
width: 110px;
|
|
1008
|
+
}
|
|
1009
|
+
tbody td {
|
|
1010
|
+
overflow: hidden;
|
|
1011
|
+
text-overflow: ellipsis;
|
|
1012
|
+
}
|
|
1013
|
+
font-family: ${t.font.sans};
|
|
1014
|
+
font-size: 13px;
|
|
1015
|
+
min-width: 520px;
|
|
1016
|
+
|
|
1017
|
+
/* The same band and the same separated rows the collections table wears, so the three tables on this
|
|
1018
|
+
page read as siblings rather than as one design and two others. The 2px gap is a transparent border
|
|
1019
|
+
over a clipped background, which is how a table draws the design's gaps without losing its columns. */
|
|
1020
|
+
border-collapse: separate;
|
|
1021
|
+
border-spacing: 0;
|
|
1022
|
+
|
|
1023
|
+
thead th {
|
|
1024
|
+
text-align: left;
|
|
1025
|
+
padding: 12px 18px;
|
|
1026
|
+
background: ${t.colors.overlayStrong};
|
|
1027
|
+
font-size: 14px;
|
|
1028
|
+
font-weight: 400;
|
|
1029
|
+
color: ${t.colors.softWhite};
|
|
1030
|
+
white-space: nowrap;
|
|
1031
|
+
}
|
|
1032
|
+
thead th:first-of-type {
|
|
1033
|
+
border-radius: ${t.radius.card} 0 0 0;
|
|
1034
|
+
}
|
|
1035
|
+
thead th:last-of-type {
|
|
1036
|
+
border-radius: 0 ${t.radius.card} 0 0;
|
|
1037
|
+
}
|
|
1038
|
+
tbody td {
|
|
1039
|
+
padding: 12px 18px;
|
|
1040
|
+
background: ${t.colors.overlay};
|
|
1041
|
+
border-top: 2px solid transparent;
|
|
1042
|
+
background-clip: padding-box;
|
|
1043
|
+
vertical-align: middle;
|
|
1044
|
+
}
|
|
1045
|
+
tbody tr:last-of-type td:first-of-type {
|
|
1046
|
+
border-radius: 0 0 0 ${t.radius.card};
|
|
1047
|
+
}
|
|
1048
|
+
tbody tr:last-of-type td:last-of-type {
|
|
1049
|
+
border-radius: 0 0 ${t.radius.card} 0;
|
|
1050
|
+
}
|
|
1051
|
+
tbody tr:hover td {
|
|
1052
|
+
background: ${t.colors.overlayHover};
|
|
1053
|
+
}
|
|
1054
|
+
td[data-money] {
|
|
1055
|
+
text-align: right;
|
|
1056
|
+
font-weight: 700;
|
|
1057
|
+
font-variant-numeric: tabular-nums;
|
|
1058
|
+
white-space: nowrap;
|
|
1059
|
+
}
|
|
1060
|
+
td[data-dim] {
|
|
1061
|
+
color: ${t.colors.gray4};
|
|
1062
|
+
font-variant-numeric: tabular-nums;
|
|
1063
|
+
white-space: nowrap;
|
|
1064
|
+
}
|
|
1065
|
+
`,ht=r.span`
|
|
1066
|
+
display: flex;
|
|
1067
|
+
align-items: center;
|
|
1068
|
+
gap: 10px;
|
|
1069
|
+
min-width: 0;
|
|
1070
|
+
color: inherit;
|
|
1071
|
+
text-decoration: none;
|
|
1072
|
+
|
|
1073
|
+
span {
|
|
1074
|
+
overflow: hidden;
|
|
1075
|
+
text-overflow: ellipsis;
|
|
1076
|
+
white-space: nowrap;
|
|
1077
|
+
}
|
|
1078
|
+
&:hover span,
|
|
1079
|
+
&:focus-visible span {
|
|
1080
|
+
text-decoration: underline;
|
|
1081
|
+
}
|
|
1082
|
+
`,pt=r.span`
|
|
1083
|
+
flex: none;
|
|
1084
|
+
display: block;
|
|
1085
|
+
width: 32px;
|
|
1086
|
+
height: 32px;
|
|
1087
|
+
border-radius: ${t.radius.chip};
|
|
1088
|
+
overflow: hidden;
|
|
1089
|
+
/* Same rarity wash, same reason it needs a white base under it — see ItemThumb. */
|
|
1090
|
+
background-color: ${t.colors.white};
|
|
1091
|
+
|
|
1092
|
+
img {
|
|
1093
|
+
width: 100%;
|
|
1094
|
+
height: 100%;
|
|
1095
|
+
object-fit: contain;
|
|
1096
|
+
}
|
|
1097
|
+
`,mt=r.a`
|
|
1098
|
+
max-width: 100%;
|
|
1099
|
+
white-space: nowrap;
|
|
1100
|
+
display: inline-flex;
|
|
1101
|
+
align-items: center;
|
|
1102
|
+
gap: 8px;
|
|
1103
|
+
color: inherit;
|
|
1104
|
+
text-decoration: none;
|
|
1105
|
+
|
|
1106
|
+
&:hover,
|
|
1107
|
+
&:focus-visible {
|
|
1108
|
+
text-decoration: underline;
|
|
1109
|
+
}
|
|
1110
|
+
`,Vn=r.span`
|
|
1111
|
+
display: inline-flex;
|
|
1112
|
+
align-items: center;
|
|
1113
|
+
gap: 8px;
|
|
1114
|
+
|
|
1115
|
+
i {
|
|
1116
|
+
display: block;
|
|
1117
|
+
width: 24px;
|
|
1118
|
+
height: 24px;
|
|
1119
|
+
border-radius: 50%;
|
|
1120
|
+
background: #ededed;
|
|
1121
|
+
}
|
|
1122
|
+
b {
|
|
1123
|
+
display: block;
|
|
1124
|
+
width: 84px;
|
|
1125
|
+
height: 10px;
|
|
1126
|
+
border-radius: 100px;
|
|
1127
|
+
background: #ededed;
|
|
1128
|
+
}
|
|
1129
|
+
`,ut=r.span`
|
|
1130
|
+
flex: none;
|
|
1131
|
+
display: block;
|
|
1132
|
+
width: 24px;
|
|
1133
|
+
height: 24px;
|
|
1134
|
+
border-radius: 50%;
|
|
1135
|
+
background-color: ${t.colors.overlayLight};
|
|
1136
|
+
background-size: cover;
|
|
1137
|
+
background-position: center top;
|
|
1138
|
+
`,Yn=r.nav`
|
|
1139
|
+
display: flex;
|
|
1140
|
+
flex-wrap: wrap;
|
|
1141
|
+
align-items: center;
|
|
1142
|
+
justify-content: flex-end;
|
|
1143
|
+
gap: 12px;
|
|
1144
|
+
font-variant-numeric: tabular-nums;
|
|
1145
|
+
`,_t=`
|
|
1146
|
+
display: inline-flex;
|
|
1147
|
+
align-items: center;
|
|
1148
|
+
justify-content: center;
|
|
1149
|
+
width: 32px;
|
|
1150
|
+
height: 32px;
|
|
1151
|
+
padding: 0;
|
|
1152
|
+
border: 0.5px solid rgba(255, 255, 255, 0.5);
|
|
1153
|
+
border-radius: ${t.radius.btn};
|
|
1154
|
+
background: transparent;
|
|
1155
|
+
font-family: ${t.font.sans};
|
|
1156
|
+
font-size: 13px;
|
|
1157
|
+
font-weight: 600;
|
|
1158
|
+
letter-spacing: 0.46px;
|
|
1159
|
+
color: ${t.colors.softWhite};
|
|
1160
|
+
cursor: pointer;
|
|
1161
|
+
|
|
1162
|
+
&:hover:not(:disabled) {
|
|
1163
|
+
border-color: ${t.colors.softWhite};
|
|
1164
|
+
background: ${t.colors.glassFaint};
|
|
1165
|
+
}
|
|
1166
|
+
&:focus-visible {
|
|
1167
|
+
outline: 2px solid ${t.colors.softWhite};
|
|
1168
|
+
outline-offset: 2px;
|
|
1169
|
+
}
|
|
1170
|
+
&:disabled {
|
|
1171
|
+
opacity: 0.35;
|
|
1172
|
+
cursor: default;
|
|
1173
|
+
}
|
|
1174
|
+
`,xt=r.button`
|
|
1175
|
+
${_t}
|
|
1176
|
+
`,Gn=r.button`
|
|
1177
|
+
${_t}
|
|
1178
|
+
|
|
1179
|
+
/* The page you are on is the one solid control in the row, which is how the design marks it. */
|
|
1180
|
+
&[aria-current='page'] {
|
|
1181
|
+
background: ${t.colors.softWhite};
|
|
1182
|
+
border-color: ${t.colors.softWhite};
|
|
1183
|
+
color: ${t.colors.text};
|
|
1184
|
+
cursor: default;
|
|
1185
|
+
}
|
|
1186
|
+
&[aria-current='page']:hover {
|
|
1187
|
+
background: ${t.colors.softWhite};
|
|
1188
|
+
color: ${t.colors.text};
|
|
1189
|
+
}
|
|
1190
|
+
`,Qn=r.span`
|
|
1191
|
+
padding: 0 2px;
|
|
1192
|
+
font-family: ${t.font.sans};
|
|
1193
|
+
font-size: 12px;
|
|
1194
|
+
color: ${t.colors.gray4};
|
|
1195
|
+
`;r.span`
|
|
1196
|
+
display: inline-flex;
|
|
1197
|
+
align-items: center;
|
|
1198
|
+
gap: 2px;
|
|
1199
|
+
`;const Jn=r.span`
|
|
1200
|
+
font-size: 11px;
|
|
1201
|
+
font-weight: 700;
|
|
1202
|
+
letter-spacing: 0.04em;
|
|
1203
|
+
text-transform: uppercase;
|
|
1204
|
+
border-radius: ${t.radius.chip};
|
|
1205
|
+
padding: 2px 7px;
|
|
1206
|
+
white-space: nowrap;
|
|
1207
|
+
color: ${t.colors.gray4};
|
|
1208
|
+
background: ${t.colors.overlayLight};
|
|
1209
|
+
|
|
1210
|
+
&[data-kind='mint'] {
|
|
1211
|
+
color: ${t.colors.navViolet};
|
|
1212
|
+
background: rgba(105, 31, 169, 0.1);
|
|
1213
|
+
}
|
|
1214
|
+
`;r.img`
|
|
1215
|
+
width: 1em;
|
|
1216
|
+
height: 1em;
|
|
1217
|
+
vertical-align: -0.125em;
|
|
1218
|
+
margin-right: 3px;
|
|
1219
|
+
`;const Zn=r.button`
|
|
1220
|
+
display: block;
|
|
1221
|
+
width: 100%;
|
|
1222
|
+
padding: 13px 18px;
|
|
1223
|
+
border: 0;
|
|
1224
|
+
border-top: 1px solid ${t.colors.cardLine};
|
|
1225
|
+
background: none;
|
|
1226
|
+
cursor: pointer;
|
|
1227
|
+
font-family: ${t.font.sans};
|
|
1228
|
+
font-size: 13px;
|
|
1229
|
+
font-weight: 600;
|
|
1230
|
+
color: ${t.colors.navViolet};
|
|
1231
|
+
|
|
1232
|
+
&:hover {
|
|
1233
|
+
background: ${t.colors.glassFaint};
|
|
1234
|
+
}
|
|
1235
|
+
&:focus-visible {
|
|
1236
|
+
outline: 2px solid ${t.colors.navViolet};
|
|
1237
|
+
outline-offset: -2px;
|
|
1238
|
+
}
|
|
1239
|
+
`;r.div`
|
|
1240
|
+
display: flex;
|
|
1241
|
+
flex-direction: column;
|
|
1242
|
+
gap: 4px;
|
|
1243
|
+
padding: 10px 18px 14px;
|
|
1244
|
+
border-top: 1px solid ${t.colors.cardLine};
|
|
1245
|
+
`;r.p`
|
|
1246
|
+
margin: 0;
|
|
1247
|
+
font-family: ${t.font.sans};
|
|
1248
|
+
font-size: 11px;
|
|
1249
|
+
line-height: 1.45;
|
|
1250
|
+
color: ${t.colors.muted2};
|
|
1251
|
+
`;const Ft=`
|
|
1252
|
+
background: linear-gradient(100deg, var(--skeleton-lo) 30%, var(--skeleton-hi) 50%, var(--skeleton-lo) 70%);
|
|
1253
|
+
background-size: 200% 100%;
|
|
1254
|
+
animation: shimmer 1.3s infinite linear;
|
|
1255
|
+
|
|
1256
|
+
@media (prefers-reduced-motion: reduce) {
|
|
1257
|
+
animation: none;
|
|
1258
|
+
}
|
|
1259
|
+
`,b=r.span`
|
|
1260
|
+
display: block;
|
|
1261
|
+
height: 12px;
|
|
1262
|
+
border-radius: 100px;
|
|
1263
|
+
${Ft}
|
|
1264
|
+
`,Xn=r.span`
|
|
1265
|
+
display: block;
|
|
1266
|
+
width: 40px;
|
|
1267
|
+
height: 40px;
|
|
1268
|
+
border-radius: ${t.radius.btn};
|
|
1269
|
+
${Ft}
|
|
1270
|
+
`,ft=r.div`
|
|
1271
|
+
display: grid;
|
|
1272
|
+
grid-template-columns: minmax(0, 1fr) minmax(0, 0.7fr) 100px minmax(0, 0.5fr) 70px;
|
|
1273
|
+
align-items: center;
|
|
1274
|
+
gap: 12px;
|
|
1275
|
+
padding: 0 18px 10px;
|
|
1276
|
+
|
|
1277
|
+
> *:last-child {
|
|
1278
|
+
justify-self: end;
|
|
1279
|
+
}
|
|
1280
|
+
background: ${t.colors.overlayStrong};
|
|
1281
|
+
border-radius: ${t.radius.card} ${t.radius.card} 0 0;
|
|
1282
|
+
`,gt=r.div`
|
|
1283
|
+
display: grid;
|
|
1284
|
+
grid-template-columns: minmax(0, 1fr) minmax(0, 0.7fr) 100px minmax(0, 0.5fr) 70px;
|
|
1285
|
+
align-items: center;
|
|
1286
|
+
gap: 12px;
|
|
1287
|
+
height: 57px;
|
|
1288
|
+
padding: 0 18px;
|
|
1289
|
+
background: ${t.colors.overlay};
|
|
1290
|
+
border-top: 2px solid transparent;
|
|
1291
|
+
background-clip: padding-box;
|
|
1292
|
+
|
|
1293
|
+
> *:last-child {
|
|
1294
|
+
justify-self: end;
|
|
1295
|
+
}
|
|
1296
|
+
`,me=r.p`
|
|
1297
|
+
margin: 0;
|
|
1298
|
+
font-family: ${t.font.sans};
|
|
1299
|
+
font-size: 13px;
|
|
1300
|
+
color: ${t.colors.gray4};
|
|
1301
|
+
`,eo=r(_)`
|
|
1302
|
+
width: 16px;
|
|
1303
|
+
height: 16px;
|
|
1304
|
+
`,We=r.span`
|
|
1305
|
+
display: inline-flex;
|
|
1306
|
+
align-items: center;
|
|
1307
|
+
gap: 4px;
|
|
1308
|
+
font-family: ${t.font.sans};
|
|
1309
|
+
font-size: 12px;
|
|
1310
|
+
font-weight: 600;
|
|
1311
|
+
line-height: 1.3;
|
|
1312
|
+
flex-wrap: wrap;
|
|
1313
|
+
color: ${t.colors.gray4};
|
|
1314
|
+
|
|
1315
|
+
&[data-dir='up'] {
|
|
1316
|
+
color: ${t.colors.successBorder};
|
|
1317
|
+
}
|
|
1318
|
+
&[data-dir='down'] {
|
|
1319
|
+
color: #ff6b6b;
|
|
1320
|
+
}
|
|
1321
|
+
|
|
1322
|
+
/* Grey whichever way the figure went: it is the label, not the reading. */
|
|
1323
|
+
.delta__against {
|
|
1324
|
+
font-size: 10px;
|
|
1325
|
+
font-weight: 400;
|
|
1326
|
+
color: ${t.colors.gray4};
|
|
1327
|
+
}
|
|
1328
|
+
.delta__arrow {
|
|
1329
|
+
font-size: 10px;
|
|
1330
|
+
line-height: 1;
|
|
1331
|
+
}
|
|
1332
|
+
`,to=r.div`
|
|
1333
|
+
margin: 10px 0 -4px;
|
|
1334
|
+
`,so=r.h2`
|
|
1335
|
+
margin: 0;
|
|
1336
|
+
font-family: ${t.font.sans};
|
|
1337
|
+
font-size: 19px;
|
|
1338
|
+
font-weight: 700;
|
|
1339
|
+
letter-spacing: -0.01em;
|
|
1340
|
+
color: ${t.colors.softWhite};
|
|
1341
|
+
`,no=r.p`
|
|
1342
|
+
margin: 4px 0 0;
|
|
1343
|
+
font-family: ${t.font.sans};
|
|
1344
|
+
font-size: 13px;
|
|
1345
|
+
color: rgba(252, 252, 252, 0.62);
|
|
1346
|
+
`,oo=r.div`
|
|
1347
|
+
display: grid;
|
|
1348
|
+
grid-template-columns: repeat(auto-fit, minmax(210px, 300px));
|
|
1349
|
+
gap: 14px;
|
|
1350
|
+
align-items: start;
|
|
1351
|
+
|
|
1352
|
+
${t.media.maxWidth("mobile")} {
|
|
1353
|
+
grid-template-columns: minmax(0, 1fr);
|
|
1354
|
+
}
|
|
1355
|
+
`,ao=r(De)`
|
|
1356
|
+
thead th:nth-of-type(1) {
|
|
1357
|
+
width: 40%;
|
|
1358
|
+
}
|
|
1359
|
+
thead th:nth-of-type(2) {
|
|
1360
|
+
width: 16%;
|
|
1361
|
+
}
|
|
1362
|
+
thead th:nth-of-type(3) {
|
|
1363
|
+
width: 20%;
|
|
1364
|
+
}
|
|
1365
|
+
thead th:nth-of-type(4) {
|
|
1366
|
+
width: 12%;
|
|
1367
|
+
}
|
|
1368
|
+
thead th:nth-of-type(5) {
|
|
1369
|
+
width: 12%;
|
|
1370
|
+
}
|
|
1371
|
+
`;r.div`
|
|
1372
|
+
display: grid;
|
|
1373
|
+
grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
|
|
1374
|
+
gap: 14px;
|
|
1375
|
+
align-items: start;
|
|
1376
|
+
|
|
1377
|
+
${t.media.maxWidth("lg")} {
|
|
1378
|
+
grid-template-columns: minmax(0, 1fr);
|
|
1379
|
+
}
|
|
1380
|
+
`;r.div`
|
|
1381
|
+
display: flex;
|
|
1382
|
+
flex-direction: column;
|
|
1383
|
+
gap: 14px;
|
|
1384
|
+
`;const Me=r.span`
|
|
1385
|
+
display: inline-flex;
|
|
1386
|
+
align-items: center;
|
|
1387
|
+
justify-content: flex-end;
|
|
1388
|
+
|
|
1389
|
+
[data-kind] img,
|
|
1390
|
+
[data-kind] .ico {
|
|
1391
|
+
vertical-align: baseline;
|
|
1392
|
+
}
|
|
1393
|
+
`,io=r.span`
|
|
1394
|
+
font-family: ${t.font.sans};
|
|
1395
|
+
font-size: 14px;
|
|
1396
|
+
font-weight: 600;
|
|
1397
|
+
font-variant-numeric: tabular-nums;
|
|
1398
|
+
white-space: nowrap;
|
|
1399
|
+
text-align: center;
|
|
1400
|
+
|
|
1401
|
+
/* One weight and one colour, as the design draws it: the pair is a single reading ("80 of 250"), and
|
|
1402
|
+
dimming the denominator made the two halves look like different figures. */
|
|
1403
|
+
small {
|
|
1404
|
+
font-size: inherit;
|
|
1405
|
+
font-weight: inherit;
|
|
1406
|
+
}
|
|
1407
|
+
`,ro=r.span`
|
|
1408
|
+
display: flex;
|
|
1409
|
+
flex-direction: column;
|
|
1410
|
+
align-items: center;
|
|
1411
|
+
justify-content: center;
|
|
1412
|
+
gap: 4px;
|
|
1413
|
+
min-width: 0;
|
|
1414
|
+
font-family: ${t.font.sans};
|
|
1415
|
+
font-size: 12px;
|
|
1416
|
+
color: ${t.colors.gray4};
|
|
1417
|
+
text-align: center;
|
|
1418
|
+
`,lo=r.span`
|
|
1419
|
+
display: inline-flex;
|
|
1420
|
+
flex-wrap: wrap;
|
|
1421
|
+
justify-content: center;
|
|
1422
|
+
gap: 8px;
|
|
1423
|
+
`,co=r(ss)`
|
|
1424
|
+
align-self: center;
|
|
1425
|
+
gap: 4px;
|
|
1426
|
+
padding: 2px 4px;
|
|
1427
|
+
border: 0;
|
|
1428
|
+
border-radius: 6px;
|
|
1429
|
+
background: ${t.colors.saleTag};
|
|
1430
|
+
line-height: 20px;
|
|
1431
|
+
|
|
1432
|
+
b,
|
|
1433
|
+
span {
|
|
1434
|
+
font-size: 14px;
|
|
1435
|
+
line-height: 20px;
|
|
1436
|
+
}
|
|
1437
|
+
`,ho=r(bs)`
|
|
1438
|
+
align-self: center;
|
|
1439
|
+
gap: 4px;
|
|
1440
|
+
padding: 4px 8px;
|
|
1441
|
+
border-radius: 6px;
|
|
1442
|
+
background: ${t.colors.glass};
|
|
1443
|
+
color: ${t.colors.white};
|
|
1444
|
+
|
|
1445
|
+
b {
|
|
1446
|
+
color: ${t.colors.white};
|
|
1447
|
+
font-size: 12px;
|
|
1448
|
+
line-height: 16px;
|
|
1449
|
+
}
|
|
1450
|
+
`,po=r.span`
|
|
1451
|
+
color: ${t.colors.muted2};
|
|
1452
|
+
|
|
1453
|
+
b {
|
|
1454
|
+
font-weight: 600;
|
|
1455
|
+
}
|
|
1456
|
+
/* Whether it is selling faster carries the only colour in the cell, since it is the only judgement. */
|
|
1457
|
+
&[data-dir='up'] b {
|
|
1458
|
+
color: #2ecc71;
|
|
1459
|
+
}
|
|
1460
|
+
&[data-dir='down'] b {
|
|
1461
|
+
color: #ff6b6b;
|
|
1462
|
+
}
|
|
1463
|
+
`,Le=r.div`
|
|
1464
|
+
display: flex;
|
|
1465
|
+
align-items: center;
|
|
1466
|
+
justify-content: space-between;
|
|
1467
|
+
gap: 12px;
|
|
1468
|
+
font-family: ${t.font.sans};
|
|
1469
|
+
font-size: 13px;
|
|
1470
|
+
color: ${t.colors.gray4};
|
|
1471
|
+
|
|
1472
|
+
${t.media.maxWidth("mobile")} {
|
|
1473
|
+
flex-direction: column;
|
|
1474
|
+
align-items: stretch;
|
|
1475
|
+
}
|
|
1476
|
+
`,mo=r.div`
|
|
1477
|
+
display: flex;
|
|
1478
|
+
align-items: center;
|
|
1479
|
+
justify-content: space-between;
|
|
1480
|
+
gap: 12px;
|
|
1481
|
+
|
|
1482
|
+
${t.media.maxWidth("mobile")} {
|
|
1483
|
+
flex-wrap: wrap;
|
|
1484
|
+
}
|
|
1485
|
+
`,uo=r.div`
|
|
1486
|
+
display: flex;
|
|
1487
|
+
align-items: center;
|
|
1488
|
+
gap: 10px;
|
|
1489
|
+
min-width: 0;
|
|
1490
|
+
`,xo=r(Ct)`
|
|
1491
|
+
display: inline-flex;
|
|
1492
|
+
align-items: center;
|
|
1493
|
+
justify-content: center;
|
|
1494
|
+
gap: 8px;
|
|
1495
|
+
height: 36px;
|
|
1496
|
+
padding: 0 12px;
|
|
1497
|
+
border: 0.5px solid ${t.colors.white};
|
|
1498
|
+
border-radius: 12px;
|
|
1499
|
+
background: transparent;
|
|
1500
|
+
color: ${t.colors.softWhite};
|
|
1501
|
+
font-size: 13px;
|
|
1502
|
+
font-weight: 600;
|
|
1503
|
+
letter-spacing: 0.46px;
|
|
1504
|
+
text-transform: uppercase;
|
|
1505
|
+
|
|
1506
|
+
&:hover:not(:disabled) {
|
|
1507
|
+
background: ${t.colors.glassFaint};
|
|
1508
|
+
color: ${t.colors.softWhite};
|
|
1509
|
+
}
|
|
1510
|
+
`,fo=r.span`
|
|
1511
|
+
display: inline-flex;
|
|
1512
|
+
align-items: center;
|
|
1513
|
+
justify-content: center;
|
|
1514
|
+
gap: 6px;
|
|
1515
|
+
font-family: ${t.font.sans};
|
|
1516
|
+
font-size: 14px;
|
|
1517
|
+
font-weight: 600;
|
|
1518
|
+
font-variant-numeric: tabular-nums;
|
|
1519
|
+
white-space: nowrap;
|
|
1520
|
+
`,go=r.span`
|
|
1521
|
+
display: inline-flex;
|
|
1522
|
+
align-items: center;
|
|
1523
|
+
justify-content: flex-end;
|
|
1524
|
+
gap: 5px;
|
|
1525
|
+
font-family: ${t.font.sans};
|
|
1526
|
+
font-size: 13px;
|
|
1527
|
+
font-variant-numeric: tabular-nums;
|
|
1528
|
+
color: ${t.colors.gray4};
|
|
1529
|
+
white-space: nowrap;
|
|
1530
|
+
|
|
1531
|
+
.ico {
|
|
1532
|
+
width: 14px;
|
|
1533
|
+
height: 14px;
|
|
1534
|
+
}
|
|
1535
|
+
`,Nt=r.div`
|
|
1536
|
+
display: grid;
|
|
1537
|
+
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
1538
|
+
gap: 14px;
|
|
1539
|
+
/* Stretched rather than start-aligned: the sales rows carry a second line and the best sellers do not,
|
|
1540
|
+
so the two will never end together on their own, and two cards of different heights side by side read
|
|
1541
|
+
as one of them having failed to load. */
|
|
1542
|
+
|
|
1543
|
+
${t.media.maxWidth("lg")} {
|
|
1544
|
+
grid-template-columns: minmax(0, 1fr);
|
|
1545
|
+
}
|
|
1546
|
+
`,yt=r.p`
|
|
1547
|
+
margin: 2px 0 0;
|
|
1548
|
+
font-family: ${t.font.sans};
|
|
1549
|
+
font-size: 13px;
|
|
1550
|
+
color: ${t.colors.gray4};
|
|
1551
|
+
`,bt=r.div`
|
|
1552
|
+
display: flex;
|
|
1553
|
+
align-items: flex-start;
|
|
1554
|
+
justify-content: space-between;
|
|
1555
|
+
gap: 12px;
|
|
1556
|
+
`,yo=r(ie)`
|
|
1557
|
+
display: inline-flex;
|
|
1558
|
+
align-items: center;
|
|
1559
|
+
gap: 6px;
|
|
1560
|
+
flex: none;
|
|
1561
|
+
color: ${t.colors.white};
|
|
1562
|
+
font-family: ${t.font.sans};
|
|
1563
|
+
font-size: 12px;
|
|
1564
|
+
font-weight: 600;
|
|
1565
|
+
letter-spacing: 0.04em;
|
|
1566
|
+
text-transform: uppercase;
|
|
1567
|
+
text-decoration: underline;
|
|
1568
|
+
|
|
1569
|
+
&:hover {
|
|
1570
|
+
color: ${t.colors.navViolet};
|
|
1571
|
+
}
|
|
1572
|
+
`,wt=r.span`
|
|
1573
|
+
display: inline-block;
|
|
1574
|
+
min-width: 12px;
|
|
1575
|
+
font-weight: 700;
|
|
1576
|
+
font-variant-numeric: tabular-nums;
|
|
1577
|
+
color: ${t.colors.gray4};
|
|
1578
|
+
`,jt=r.span`
|
|
1579
|
+
display: flex;
|
|
1580
|
+
align-items: center;
|
|
1581
|
+
gap: 12px;
|
|
1582
|
+
min-width: 0;
|
|
1583
|
+
`,Et=`
|
|
1584
|
+
thead th,
|
|
1585
|
+
tbody td {
|
|
1586
|
+
padding-left: 12px;
|
|
1587
|
+
padding-right: 12px;
|
|
1588
|
+
}
|
|
1589
|
+
`,bo=r(De)`
|
|
1590
|
+
min-width: 500px;
|
|
1591
|
+
${Et}
|
|
1592
|
+
|
|
1593
|
+
thead th:nth-of-type(1) {
|
|
1594
|
+
width: 46%;
|
|
1595
|
+
}
|
|
1596
|
+
thead th:nth-of-type(2) {
|
|
1597
|
+
width: 26%;
|
|
1598
|
+
}
|
|
1599
|
+
thead th:nth-of-type(3) {
|
|
1600
|
+
width: 72px;
|
|
1601
|
+
}
|
|
1602
|
+
thead th:nth-of-type(4) {
|
|
1603
|
+
width: 96px;
|
|
1604
|
+
}
|
|
1605
|
+
`,wo=r(De)`
|
|
1606
|
+
min-width: 580px;
|
|
1607
|
+
${Et}
|
|
1608
|
+
|
|
1609
|
+
thead th:nth-of-type(1) {
|
|
1610
|
+
width: 34%;
|
|
1611
|
+
}
|
|
1612
|
+
thead th:nth-of-type(2) {
|
|
1613
|
+
width: 22%;
|
|
1614
|
+
}
|
|
1615
|
+
thead th:nth-of-type(3) {
|
|
1616
|
+
width: 70px;
|
|
1617
|
+
}
|
|
1618
|
+
thead th:nth-of-type(4) {
|
|
1619
|
+
width: 140px;
|
|
1620
|
+
}
|
|
1621
|
+
thead th:nth-of-type(5) {
|
|
1622
|
+
width: 76px;
|
|
1623
|
+
}
|
|
1624
|
+
`,jo=r.span`
|
|
1625
|
+
display: flex;
|
|
1626
|
+
flex-direction: column;
|
|
1627
|
+
gap: 3px;
|
|
1628
|
+
min-width: 0;
|
|
1629
|
+
`,So=["7d","30d","all"],ge=8,ye=5,Dt="shop.my-store.sort",ko=["sold","selling","newest","name"];function $o(){try{const s=localStorage.getItem(Dt);return ko.includes(s)?s:"sold"}catch{return"sold"}}function vo(s){try{localStorage.setItem(Dt,s)}catch{}}function Co(s,n){const o=[...s];return n==="name"?o.sort((l,a)=>l.name.localeCompare(a.name)):n==="newest"?o.sort((l,a)=>(a.createdAt??0)-(l.createdAt??0)):n==="selling"?o.sort((l,a)=>Number(l.exhausted)-Number(a.exhausted)||a.sold-l.sold||l.name.localeCompare(a.name)):o.sort((l,a)=>a.sold-l.sold||l.name.localeCompare(a.name))}function St(s,n,o){return ee(`/item/${s}/${n}`,o)}function ee(s,n){return n?`${s}${s.includes("?")?"&":"?"}env=${n}`:s}function Ao(s,n){if(n==null)return null;const o=s.minted-n;return o>0?o:null}const Io={website:"website",twitter:"x-twitter",discord:"discord",facebook:"facebook"},be=5;function Wo(s,n){if(n<=5)return Array.from({length:n},(a,u)=>u);const o=[s-1,s,s+1].filter(a=>a>0&&a<n-1),l=[0];return o[0]>1&&l.push("gap"),l.push(...o),o[o.length-1]<n-2&&l.push("gap"),l.push(n-1),l}function Te({page:s,pages:n,onChange:o,name:l}){return n<=1?null:e.jsxs(Yn,{"aria-label":i("myStore.pagination"),children:[e.jsx(xt,{type:"button",onClick:()=>o(Math.max(0,s-1)),disabled:s===0,"aria-label":i("myStore.prev"),"data-testid":`store-${l}-prev`,children:e.jsx(_,{name:"chevron-down",size:16,"aria-hidden":!0,style:{transform:"rotate(90deg)"}})}),Wo(s,n).map((a,u)=>a==="gap"?e.jsx(Qn,{children:"…"},`gap-${u}`):e.jsx(Gn,{type:"button","aria-current":a===s?"page":void 0,onClick:()=>o(a),"data-testid":`store-${l}-page-${a+1}`,children:(a+1).toLocaleString()},a)),e.jsx(xt,{type:"button",onClick:()=>o(Math.min(n-1,s+1)),disabled:s>=n-1,"aria-label":i("myStore.next"),"data-testid":`store-${l}-next`,children:e.jsx(_,{name:"chevron-down",size:16,"aria-hidden":!0,style:{transform:"rotate(-90deg)"}})})]})}function Mo(s,n,o){var w,T;const l={"7d":7,"30d":30,all:null}[n],a=$.useMemo(()=>Math.floor(Date.now()/864e5)*864e5+864e5-1,[]),u=l?a-l*864e5:void 0,x=B({queryKey:["store-sales-page",s,n,o],enabled:!!s,placeholderData:h=>h,queryFn:()=>Ps({seller:s,from:u},{first:be,skip:o*be})}),p=((w=x.data)==null?void 0:w.total)??0;return{rows:((T=x.data)==null?void 0:T.rows)??[],total:p,pages:Math.ceil(p/be)}}function kt(s){return B({queryKey:["store-buyers",s],enabled:s.length>0,staleTime:5*6e4,queryFn:()=>gs(s)})}function $t(s,n){var l;const o=(l=n==null?void 0:n.get(s.toLowerCase()))==null?void 0:l.name;return o?At(o):fs(s)}function Lo(s){return te.previewHost&&s==="1"}const To=25000n;function zo(s){return s*To/1000000n}function R(s){const n=Number(s/10n**14n)/1e4;return n>=10?Math.round(n).toLocaleString():n.toFixed(2)}function vt(s){const n=Math.max(1,Math.round((Date.now()-s)/6e4));if(n<60)return i("myStore.agoMinutes",{n});const o=Math.round(n/60);return o<24?i("myStore.agoHours",{n:o}):i("myStore.agoDays",{n:Math.round(o/24)})}function Po({series:s}){const n=$.useId(),o=Math.max(...s,0),l=s.length>1?92/(s.length-1):0,a=p=>o===0?27:27-p/o*22,x=s.map((p,w)=>`${(2+w*l).toFixed(1)} ${a(p).toFixed(1)}`).join(" L ");return o===0?e.jsx(dt,{viewBox:"0 0 96 30",role:"img","aria-label":i("myStore.trendNone"),children:e.jsx("path",{d:"M2 27 L94 27",fill:"none",stroke:t.colors.cardLine,strokeWidth:"2",strokeLinecap:"round"})}):e.jsxs(dt,{viewBox:"0 0 96 30",role:"img","aria-label":i("myStore.trendAria",{n:o}),children:[e.jsxs("defs",{children:[e.jsxs("linearGradient",{id:n,gradientUnits:"userSpaceOnUse",x1:"78.9",y1:"-19.5",x2:"35.3",y2:"40.4",children:[e.jsx("stop",{stopColor:t.colors.dclRed}),e.jsx("stop",{offset:"1",stopColor:t.colors.flareAmber})]}),e.jsxs("linearGradient",{id:`${n}-fill`,x1:"0",y1:"0",x2:"0",y2:"1",children:[e.jsx("stop",{offset:"0",stopColor:t.colors.dclRed,stopOpacity:"0.26"}),e.jsx("stop",{offset:"1",stopColor:t.colors.dclRed,stopOpacity:"0"})]})]}),e.jsx("path",{d:`M ${x} L 94 29 L 2 29 Z`,fill:`url(#${n}-fill)`}),e.jsx("path",{d:`M ${x}`,fill:"none",stroke:`url(#${n})`,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}function _o({collection:s,discount:n,savesByKey:o,open:l,onToggle:a,onManage:u,env:x}){var w,T;const p=`store-items-${s.contractAddress}`;return e.jsxs(e.Fragment,{children:[e.jsxs(Pt,{"data-testid":"store-collection","data-exhausted":s.exhausted||void 0,children:[e.jsx(vn,{type:"button","aria-expanded":l,"aria-controls":p,"aria-label":i(l?"myStore.collapse":"myStore.expand",{name:s.name}),onClick:a,"data-testid":"store-collection-toggle",children:e.jsx(eo,{name:"chevron-down",className:"ico","aria-hidden":!0})}),e.jsx(Cn,{"data-testid":"store-collection-thumb",children:e.jsx(hs,{contractAddress:s.contractAddress})}),e.jsxs(Wn,{children:[e.jsxs(In,{children:[e.jsx(ie,{to:ee(`/collection/${s.contractAddress}`,x),"data-testid":"store-collection-name",children:s.name}),s.exhausted?e.jsx(An,{"data-testid":"store-collection-soldout",children:i("myStore.collExhausted")}):null]}),e.jsxs(Mn,{children:[i("myStore.itemsCount",{count:s.items.length}),s.listed>0?` · ${i("myStore.listedCount",{count:s.listed})}`:"",!s.exhausted&&s.soldOut>0?` · ${i("myStore.soldOutCount",{count:s.soldOut})}`:""]})]}),e.jsx(ro,{"data-testid":"store-collection-discount",children:n?e.jsxs(e.Fragment,{children:[e.jsxs(lo,{children:[e.jsx(co,{pct:n.discount/1e4}),e.jsx(ho,{until:n.checks.expiration})]}),e.jsx(po,{children:$s(n)?i("myStore.discountUsed",{used:((w=n.state)==null?void 0:w.uses)??0,total:n.checks.uses}):i("myStore.discountUsedUncapped",{used:((T=n.state)==null?void 0:T.uses)??0})})]}):i("myStore.noDiscountShort")}),e.jsxs(io,{"data-testid":"store-collection-claimed",children:[s.claimed.toLocaleString(),e.jsxs("small",{children:["/",s.runTotal.toLocaleString()]})]}),e.jsxs(fo,{"data-testid":"store-collection-earned",children:[e.jsx(O,{kind:"mana"}),R(s.earningsWei)]}),e.jsx(Ln,{children:e.jsx(Po,{series:s.trend})}),e.jsxs(xo,{as:"a",href:`${te.builderUrl}/collections/${s.collectionId}`,target:"_blank",rel:"noopener noreferrer",onClick:u,"data-testid":"store-manage",children:[i("myStore.manage"),e.jsx(_,{name:"external-link",size:14,"aria-hidden":!0})]})]}),l?e.jsxs(Tn,{id:p,"data-testid":"store-items",children:[e.jsxs(zn,{"data-testid":"store-collection-stats",children:[e.jsxs("span",{children:[e.jsxs("b",{children:[e.jsx(O,{kind:"mana"}),R(s.earningsWei)]}),i("myStore.collEarned")]}),e.jsxs("span",{children:[e.jsx("b",{children:s.sold.toLocaleString()}),i("myStore.collSold")]}),e.jsxs("span",{children:[e.jsx("b",{children:s.items.length}),i("myStore.collItems",{count:s.items.length})]}),e.jsxs("span",{children:[e.jsx("b",{children:s.listed+s.classic}),i("myStore.collListed")]})]}),s.items.map(h=>{const z=Ao(h,h.lifetimeSold);return e.jsxs(Pn,{"data-testid":"store-item",children:[e.jsx(_n,{style:{backgroundImage:_e(h.rarity)},children:h.thumbnail?e.jsx("img",{src:h.thumbnail,alt:"",loading:"lazy"}):null}),e.jsxs(Fn,{children:[e.jsx(Dn,{to:ee(`/item/${s.contractAddress}/${h.itemId}`,x),title:h.name,children:h.name}),e.jsxs(Nn,{children:[e.jsx(En,{style:{background:us(h.rarity)},title:ms(h.rarity),children:ps(h.rarity)}),e.jsx(Rn,{"data-state":h.state,children:h.state==="soldout"?null:h.state==="unlisted"?i("myStore.stateUnlisted"):h.state==="unknown"?i("myStore.stateUnknown"):e.jsxs(e.Fragment,{children:[e.jsx(qn,{children:i("myStore.onSaleFor")}),h.manaWei?e.jsxs(e.Fragment,{children:[e.jsx(O,{kind:"mana"}),R(F(h.manaWei))]}):e.jsxs(e.Fragment,{children:[e.jsx(O,{kind:"credits"}),e.jsx(xs,{credits:h.priceCredits??0})]})]})})]})]}),e.jsxs(On,{children:[h.sold.toLocaleString(),e.jsxs("small",{children:[" ",i("myStore.sold")]})]}),e.jsxs(go,{"data-testid":"store-item-saves",title:i("myStore.savesHint",{count:o.get(h.key)??0}),children:[e.jsx(_,{name:"heart",className:"ico","aria-hidden":!0}),(o.get(h.key)??0).toLocaleString()]}),e.jsx(Bn,{role:"progressbar","aria-valuemin":0,"aria-valuemax":h.minted+h.left,"aria-valuenow":h.minted,"aria-label":i("myStore.runAria",{minted:h.minted,total:h.minted+h.left}),children:e.jsx("i",{style:{width:`${Math.round(h.minted/Math.max(1,h.minted+h.left)*100)}%`}})}),e.jsxs(Hn,{title:h.lifetimeSold==null?void 0:i("myStore.runBreakdown",{total:h.minted+h.left,sold:h.lifetimeSold,sent:h.minted-h.lifetimeSold,left:h.left}),children:[e.jsx(Kn,{"data-out":h.left===0,"data-testid":"store-item-stock",children:It(h.left===0?"myStore.stockNone":"myStore.stockLeft",{b:v=>e.jsx("b",{children:v}),left:h.left.toLocaleString(),total:(h.minted+h.left).toLocaleString()})}),z?e.jsx(Un,{"data-testid":"store-item-issued",children:i("myStore.sentDirectly",{count:z.toLocaleString()})}):null]})]},h.key)})]}):null]})}function ze(s){return!!s&&!(s.current===0&&s.previous===0)}function Pe({delta:s,period:n}){if(!s||s.current===0&&s.previous===0)return null;const o=n==="all"?"":i(`myStore.vs${n}`);if(s.pct===null)return e.jsxs(We,{"data-dir":"new","data-testid":"store-delta",children:[i("myStore.deltaNew"),o?e.jsx("span",{className:"delta__against",children:o}):null]});const l=Math.round(s.pct);if(l===0)return e.jsxs(We,{"data-dir":"flat","data-testid":"store-delta",children:[i("myStore.deltaFlat"),o?e.jsx("span",{className:"delta__against",children:o}):null]});const a=l>0,x=l>=1e3?i("myStore.deltaTimes",{times:Math.round(l/100+1).toLocaleString()}):`${Math.abs(l)}%`;return e.jsxs(We,{"data-dir":a?"up":"down","data-testid":"store-delta","aria-label":i(a?"myStore.deltaUpAria":"myStore.deltaDownAria",{pct:x,against:o}),children:[e.jsx("span",{className:"delta__arrow","aria-hidden":!0,children:a?"▲":"▼"}),x,o?e.jsx("span",{className:"delta__against",children:o}):null]})}function Fo(){return e.jsxs("div",{"data-testid":"store-skeleton","aria-hidden":!0,children:[e.jsx(Mt,{children:[0,1,2,3].map(s=>e.jsxs(q,{children:[e.jsx(b,{style:{width:"46%"}}),e.jsx(b,{style:{width:"32%",height:38}}),e.jsx(b,{style:{width:"64%",height:15}})]},s))}),e.jsxs(U,{style:{marginTop:22},children:[e.jsxs(fe,{children:[e.jsx(b,{style:{width:96,height:14}}),e.jsx(b,{style:{width:120}})]}),e.jsxs(zt,{children:[e.jsxs(Tt,{"aria-hidden":!0,children:[e.jsx("span",{}),e.jsx("span",{}),e.jsx(b,{style:{width:84,height:12}}),e.jsx(b,{style:{width:74,height:12}}),e.jsx(b,{style:{width:62,height:12}}),e.jsx(b,{style:{width:68,height:12}}),e.jsx(b,{style:{width:82,height:12}}),e.jsx(b,{style:{width:60,height:12}})]}),Array.from({length:ge},(s,n)=>e.jsxs(Pt,{children:[e.jsx("span",{}),e.jsx(Xn,{}),e.jsx(b,{style:{width:"82%",height:14}}),e.jsx(b,{style:{width:"70%",height:20}}),e.jsx(b,{style:{width:72}}),e.jsx(b,{style:{width:76}}),e.jsx(b,{style:{height:20}}),e.jsx(b,{style:{width:96,height:32,borderRadius:8}})]},n))]}),e.jsx(Zn,{as:"div",children:e.jsx(b,{style:{width:150,height:13,margin:"0 auto"}})})]}),e.jsx(Nt,{style:{marginTop:22},children:[0,1].map(s=>e.jsxs(U,{children:[e.jsxs(fe,{children:[e.jsx(b,{style:{width:110,height:14}}),e.jsx(b,{style:{width:80}})]}),e.jsx(ft,{children:[0,1,2,3].map(n=>e.jsx(b,{style:{width:46,height:9}},n))}),Array.from({length:be},(n,o)=>e.jsxs(gt,{children:[e.jsx(b,{style:{width:"38%"}}),e.jsx(b,{style:{width:"24%"}}),e.jsx(b,{style:{width:56}}),e.jsx(b,{style:{width:64}})]},o))]},s))}),e.jsxs(U,{style:{marginTop:22},children:[e.jsxs(fe,{children:[e.jsx(b,{style:{width:104,height:14}}),e.jsx(b,{style:{width:90}})]}),e.jsx(ft,{children:[0,1,2,3,4].map(s=>e.jsx(b,{style:{width:46,height:9}},s))}),Array.from({length:ye},(s,n)=>e.jsxs(gt,{children:[e.jsx(b,{style:{width:"30%"}}),e.jsx(b,{style:{width:"18%"}}),e.jsx(b,{style:{width:72,height:18}}),e.jsx(b,{style:{width:"14%"}}),e.jsx(b,{style:{width:54}})]},n))]})]})}function na(){var Ze,Xe;ns({title:i("myStore.title"),noindex:!0});const{session:s,error:n,signIn:o}=os(),[l]=Qt(),[a,u]=$.useState("30d"),[x,p]=$.useState(()=>new Set),[w,T]=$.useState(0),[h,z]=$.useState(0),[v,N]=$.useState(!1),[E,K]=$.useState($o),[se,ne]=$.useState(0),[D,V]=$.useState(!1),A=as(),L=is(),S=Lo(l.get("mock")),y=l.get("env"),P=Jt("/").replace(/\/$/,""),c=d=>`${P}${d}`,f=S;function g(d,k={}){f||cs(d,k)}const{data:j}=rs(s==null?void 0:s.address),C=s==null?void 0:s.address,{data:M}=Cs(C),Oe=As.filter(d=>M==null?void 0:M.links[d]),Be=(Xe=(Ze=j==null?void 0:j.avatar)==null?void 0:Ze.snapshots)==null?void 0:Xe.face256,Re=j!=null&&j.name?At(j.name):null,{stats:Ot,trend:He,savesByKey:Bt,saleable:qe,isLoading:Rt,error:Ht}=Ks(s,a),m=S?Ee:Ot,W=S?{...He,collectors:Zs,buyers:Xs}:He,qt=S?!1:Rt,Ut=S?tn:Bt,we=Mo(s==null?void 0:s.address,a,h),re=S?nn:we.rows,Kt=$.useMemo(()=>[...new Set(re.map(d=>d.buyer.toLowerCase()))].sort(),[re]),{data:le,isLoading:Vt}=kt(Kt),je=Math.max(1,Math.ceil(W.buyers.length/ye)),de=Math.min(se,je-1),Se=$.useMemo(()=>W.buyers.slice(de*ye,(de+1)*ye),[W.buyers,de]),Yt=$.useMemo(()=>Se.map(d=>d.address).sort(),[Se]),{data:ce}=kt(Yt),{data:Gt}=js(s==null?void 0:s.address,A&&!!s),Ue=((m==null?void 0:m.collections)??[]).some(d=>d.exhausted),ke=E==="selling"&&!Ue?"sold":E,Ke=Math.max(1,Math.ceil(((m==null?void 0:m.collections.length)??0)/ge)),Ve=$.useMemo(()=>Co((m==null?void 0:m.collections)??[],ke),[m,ke]),$e=$.useMemo(()=>Bs((m==null?void 0:m.collections)??[]),[m]),he=Math.min(w,Ke-1),Ye=$.useMemo(()=>Ve.slice(he*ge,(he+1)*ge),[Ve,he]);if(L==="off")return e.jsx(Zt,{to:"/",replace:!0});if(!s&&!S)return e.jsxs(ls,{children:[e.jsx(ds,{testId:"my-store-signin",icon:Is,title:i("myStore.signInTitle"),body:i("myStore.signInBody"),cta:{label:i("storeSettings.signIn"),onClick:()=>o()},ctaVariant:"solid",fill:!0}),e.jsx(st,{message:n})]});const Ge=S?en:Gt,ve=new Map;for(const d of Ge??[])if(!(d.status!=="active"&&d.status!=="scheduled"))for(const k of d.collections)ve.set(k.toLowerCase(),d);const Qe=(Ge??[]).filter(d=>d.status==="active"||d.status==="scheduled"),Je=a==="7d"?7:a==="30d"?30:null,Ce=((m==null?void 0:m.collections)??[]).reduce((d,k)=>d+k.items.length,0);return e.jsx(Ms,{children:e.jsx(Ls,{children:e.jsxs(on,{"data-testid":"my-store",children:[v&&s?e.jsx(Ss,{session:s,collections:qe,onClose:()=>N(!1),source:"my_store",silent:f}):null,e.jsxs(an,{children:[e.jsxs(rn,{children:[e.jsx(dn,{style:Be?{backgroundImage:`url(${Be})`}:void 0,"data-testid":"store-avatar","aria-hidden":!0}),e.jsxs(ln,{children:[Re?e.jsx(cn,{children:Re}):null,e.jsxs(pn,{children:[e.jsx(hn,{children:i("myStore.title")}),m?e.jsxs(it,{children:[i("myStore.summary",{collections:m.collections.length,items:Ce}),Oe.length>0?e.jsx(fn,{"data-testid":"store-socials",children:Oe.map(d=>e.jsx(gn,{href:(M==null?void 0:M.links[d])??"",target:"_blank",rel:"noopener noreferrer",onClick:()=>g("Shop Clicked Store Action",{action:"social_link",link_type:d}),title:i(`creator.link.${d}`),"aria-label":i(`creator.link.${d}`),children:e.jsx(_,{name:Io[d],className:"ico","aria-hidden":!0})},d))}):null]}):e.jsx(it,{children:e.jsx(b,{style:{width:170,background:"rgba(252, 252, 252, 0.18)",animation:"none"}})})]})]})]}),e.jsxs(mn,{children:[C?e.jsxs(un,{href:c(ee(`/items/creator/${C}`,y)),target:"_blank",rel:"noopener noreferrer",onClick:()=>g("Shop Clicked Store Action",{action:"view_public_store"}),"data-testid":"store-view-public",children:[i("myStore.viewPublicStore"),e.jsx(_,{name:"external-link",className:"ico","aria-hidden":!0})]}):null,e.jsxs(xn,{to:ee("/store-settings",y),state:{from:"/my-store"},onClick:()=>g("Shop Clicked Store Action",{action:"edit_store"}),"data-testid":"store-edit",children:[e.jsx(_,{name:"pen",className:"ico","aria-hidden":!0}),i("myStore.editStore")]})]})]}),e.jsxs(yn,{children:[e.jsx(bn,{children:i("myStore.performance")}),e.jsx(wn,{role:"group","aria-label":i("myStore.period"),children:So.map(d=>e.jsx(jn,{type:"button","aria-pressed":a===d,onClick:()=>{d!==a&&g("Shop Changed Store Period",{period:d,previous_period:a}),u(d),z(0)},"data-testid":`store-period-${d}`,children:i(`myStore.period${d}`)},d))})]}),e.jsx(st,{message:Ht?i("myStore.error"):null,testId:"my-store-error"}),qt||!m?e.jsx(Fo,{}):e.jsxs(e.Fragment,{children:[e.jsxs(Mt,{"aria-label":i("myStore.summaryAria"),children:[e.jsxs(q,{children:[e.jsxs(Q,{children:[i("myStore.tileSold"),e.jsx(J,{"aria-hidden":!0,children:"🛍️"})]}),e.jsx(Z,{children:e.jsx("span",{"data-testid":"store-sold",children:m.sold.toLocaleString()})}),e.jsxs(X,{children:[e.jsx(Pe,{delta:W.sold,period:a}),!ze(W.sold)&&(m.sold===0?i("myStore.tileSoldNone"):m.resales===0?i("myStore.tileSoldFootMintsOnly",{mints:m.mints}):i("myStore.tileSoldFoot",{mints:m.mints,resales:m.resales}))]})]}),e.jsxs(q,{children:[e.jsxs(Q,{children:[i("myStore.tileEarnings"),e.jsx(J,{"aria-hidden":!0,children:"💰"})]}),e.jsxs(Z,{children:[e.jsx(O,{kind:"mana"}),R(m.earningsWei),e.jsx(rt,{children:i("myStore.manaUnit")})]}),e.jsxs(X,{children:[e.jsx(Pe,{delta:W.earnings,period:a}),m.partial?e.jsxs(e.Fragment,{children:[e.jsx(lt,{children:i("myStore.estimate")})," ",i("myStore.tileEarningsPartial")]}):ze(W.earnings)?null:i("myStore.tileEarningsFoot")]})]}),e.jsxs(q,{children:[e.jsxs(Q,{children:[i("myStore.tileListed"),e.jsx(J,{"aria-hidden":!0,children:"🏷️"})]}),e.jsxs(Z,{children:[m.listed+m.classic,e.jsx(rt,{children:i("myStore.ofTotal",{n:Ce})})]}),e.jsx(X,{children:Ce===0?i("myStore.tileListedNone"):i("myStore.tileListedFoot",{count:m.neverListed})})]}),e.jsxs(q,{children:[e.jsxs(Q,{children:[i("myStore.tileDiscounts"),e.jsx(J,{"aria-hidden":!0,children:"🔥"})]}),e.jsx(Z,{"data-testid":"store-discounts",children:Qe.length}),e.jsx(X,{children:Qe.length>0?i("myStore.tileDiscountsFoot"):i("myStore.tileDiscountsNone")})]})]}),m.classic>0&&!D?e.jsx(ks,{count:m.classic,reason:"discounts",to:ee("/activity?section=listings",y),onDismiss:()=>{g("Shop Clicked Store Action",{action:"dismiss_pricing_banner",classic_items:m.classic}),V(!0)},onCta:()=>g("Shop Clicked Store Action",{action:"update_prices",classic_items:m.classic})}):null,e.jsxs(U,{"aria-labelledby":"store-coll-h",children:[e.jsxs(mo,{children:[e.jsx(pe,{id:"store-coll-h",children:i("myStore.collectionsCount",{count:m.collections.length})}),e.jsxs(uo,{children:[m.collections.length>1?e.jsx(kn,{options:[{value:"sold",label:i("myStore.sortSold")},...Ue?[{value:"selling",label:i("myStore.sortSelling")}]:[],...m.collections.some(d=>d.createdAt)?[{value:"newest",label:i("myStore.sortNewest")}]:[],{value:"name",label:i("myStore.sortName")}],value:ke,onChange:d=>{g("Shop Sorted Store Collections",{sort:d}),K(d),vo(d)},align:"right",ariaLabel:i("myStore.sortBy"),className:"store-sort"}):null,S||A&&s&&qe.length>0?e.jsxs(Ct,{variant:"red",size:"sm",onClick:()=>N(!0),"data-testid":"store-new-discount",children:[e.jsx("span",{"aria-hidden":!0,children:"🔥"}),i("myStore.newDiscount")]}):null]})]}),m.collections.length===0?e.jsx(me,{children:i("myStore.noCollections")}):e.jsx(e.Fragment,{children:e.jsxs(zt,{children:[e.jsxs(Tt,{"aria-hidden":!0,children:[e.jsx("span",{}),e.jsx("span",{}),e.jsx("span",{children:i("myStore.colCollection")}),e.jsx("span",{children:i("myStore.colDiscounts")}),e.jsx("span",{children:i("myStore.colClaimed")}),e.jsx("span",{children:i("myStore.colEarnings")}),e.jsx("span",{children:Je?i("myStore.colTrend",{days:Je}):i("myStore.colTrendAll")}),e.jsx("span",{children:i("myStore.colActions")})]}),Ye.map(d=>e.jsx(_o,{collection:d,discount:ve.get(d.contractAddress)??null,savesByKey:Ut,env:y,open:x.has(d.contractAddress),onToggle:()=>{x.has(d.contractAddress)||g("Shop Expanded Store Collection",{contract_address:d.contractAddress,items:d.items.length,exhausted:d.exhausted,has_discount:ve.has(d.contractAddress)}),p(k=>{const I=new Set(k);return I.delete(d.contractAddress)||I.add(d.contractAddress),I})},onManage:()=>g("Shop Clicked Store Action",{action:"manage_collection",contract_address:d.contractAddress})},d.contractAddress))]})}),m.collections.length>0?e.jsxs(Le,{children:[e.jsxs("span",{"data-testid":"store-showing",children:[i("myStore.showingOf",{shown:Ye.length.toLocaleString(),total:m.collections.length.toLocaleString()}),m.breakdownPartial?e.jsxs(e.Fragment,{children:[" · ",i("myStore.soldPartial",{n:m.fetched.toLocaleString()})]}):null]}),e.jsx(Te,{page:he,pages:Ke,onChange:d=>{g("Shop Paged Store Table",{table:"collections",page:d+1}),T(d)},name:"collections"})]}):null]}),e.jsxs(Nt,{children:[e.jsxs(U,{"aria-labelledby":"store-best-h",children:[e.jsx(bt,{children:e.jsxs("div",{children:[e.jsx(pe,{id:"store-best-h",children:i("myStore.bestSellers")}),e.jsxs(yt,{children:[i("myStore.bestSellersSub",{n:$e.length}),m.breakdownPartial?e.jsxs(e.Fragment,{children:[" · ",i("myStore.soldPartial",{n:m.fetched.toLocaleString()})]}):null]})]})}),$e.length===0?e.jsx(me,{children:i("myStore.noBestSellers")}):e.jsx(Ie,{children:e.jsxs(bo,{children:[e.jsx("thead",{children:e.jsxs("tr",{children:[e.jsx("th",{scope:"col",children:e.jsxs(jt,{children:[e.jsx(wt,{"aria-hidden":!0,children:"#"}),i("myStore.colItem")]})}),e.jsx("th",{scope:"col",children:i("myStore.colCollection")}),e.jsx("th",{scope:"col",style:{textAlign:"center"},children:i("myStore.colSold")}),e.jsx("th",{scope:"col",style:{textAlign:"right"},children:i("myStore.colEarnings")})]})}),e.jsx("tbody",{children:$e.map((d,k)=>e.jsxs("tr",{"data-testid":"store-best",children:[e.jsx("td",{children:e.jsxs(jt,{children:[e.jsx(wt,{children:k+1}),e.jsxs(ht,{as:"a",href:c(St(d.contractAddress,d.itemId,y)),target:"_blank",rel:"noopener noreferrer",onClick:()=>g("Shop Clicked Store Action",{action:"open_item",table:"best_sellers",rank:k+1}),"data-testid":"store-best-item",children:[e.jsx(pt,{style:{backgroundImage:_e(d.rarity)},children:d.thumbnail?e.jsx("img",{src:d.thumbnail,alt:"",loading:"lazy"}):null}),e.jsx("span",{children:d.name})]})]})}),e.jsx("td",{"data-dim":!0,children:d.collectionName}),e.jsx("td",{style:{textAlign:"center",fontWeight:600},"data-testid":"store-best-sold",children:d.sold.toLocaleString()}),e.jsx("td",{"data-money":!0,children:e.jsxs(Me,{children:[e.jsx(O,{kind:"mana"}),R(d.earnedWei)]})})]},d.key))})]})})]}),e.jsxs(U,{"aria-labelledby":"store-feed-h",children:[e.jsxs(bt,{children:[e.jsxs("div",{children:[e.jsx(pe,{id:"store-feed-h",children:i("myStore.recentSales")}),e.jsx(yt,{children:i("myStore.recentSalesSub")})]}),e.jsxs(yo,{to:"/activity",onClick:()=>g("Shop Clicked Store Action",{action:"view_all_sales"}),children:[i("myStore.viewAll"),e.jsx(_,{name:"arrow-up-right",size:14,"aria-hidden":!0})]})]}),re.length===0?e.jsx(me,{children:i("myStore.noSales")}):e.jsx(Ie,{children:e.jsxs(wo,{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:re.map(d=>{var et,tt;const k=m.collections.find(Ae=>Ae.contractAddress===d.contractAddress.toLowerCase()),I=k==null?void 0:k.items.find(Ae=>Ae.itemId===d.itemId),Y=le==null?void 0:le.get(d.buyer.toLowerCase()),oe=(tt=(et=Y==null?void 0:Y.avatar)==null?void 0:et.snapshots)==null?void 0:tt.face256;return e.jsxs("tr",{"data-testid":"store-sale",children:[e.jsx("td",{children:e.jsxs(ht,{as:d.itemId?"a":"span",...d.itemId?{href:c(St(d.contractAddress,d.itemId,y)),target:"_blank",rel:"noopener noreferrer",onClick:()=>g("Shop Clicked Store Action",{action:"open_item",table:"recent_sales"}),"data-testid":"store-sale-item"}:{},children:[e.jsx(pt,{style:{backgroundImage:_e(I==null?void 0:I.rarity)},children:I!=null&&I.thumbnail?e.jsx("img",{src:I.thumbnail,alt:"",loading:"lazy"}):null}),e.jsxs(jo,{children:[e.jsx("span",{children:(I==null?void 0:I.name)??(k==null?void 0:k.name)??d.itemId??i("myStore.unknownItem")}),e.jsx(ue,{content:i("myStore.kindHint"),children:e.jsx(Jn,{"data-kind":d.type,"data-testid":"store-kind-hint",children:d.type==="mint"?i("myStore.kindMint"):i("myStore.kindResale")})})]})]})}),e.jsx("td",{"data-dim":!0,children:(k==null?void 0:k.name)??"—"}),e.jsx("td",{"data-money":!0,children:e.jsxs(Me,{children:[e.jsx(O,{kind:"mana"}),R(F(d.price))]})}),e.jsx("td",{children:Vt?e.jsxs(Vn,{"aria-hidden":!0,children:[e.jsx("i",{}),e.jsx("b",{})]}):e.jsxs(mt,{href:`${te.profileUrl}/${d.buyer}`,target:"_blank",rel:"noopener noreferrer",onClick:()=>g("Shop Clicked Store Action",{action:"open_buyer",table:"recent_sales"}),"data-testid":"store-sale-buyer",children:[e.jsx(ut,{style:oe?{backgroundImage:`url(${oe})`}:void 0,"aria-hidden":!0}),$t(d.buyer,le)]})}),e.jsx("td",{"data-dim":!0,children:vt(d.timestamp)})]},d.id)})})]})}),we.pages>1?e.jsxs(Le,{children:[e.jsx("span",{}),e.jsx(Te,{page:h,pages:we.pages,onChange:d=>{g("Shop Paged Store Table",{table:"recent_sales",page:d+1}),z(d)},name:"sales"})]}):null]})]}),e.jsxs(to,{children:[e.jsx(so,{id:"store-audience-h",children:i("myStore.audience")}),e.jsx(no,{children:i("myStore.audienceSub")})]}),e.jsxs(oo,{children:[e.jsxs(q,{children:[e.jsxs(Q,{children:[e.jsxs("span",{children:[i("myStore.tileCollectors"),e.jsx(ue,{content:i("myStore.collectorsHint"),children:e.jsx(ct,{type:"button","aria-label":i("myStore.tileCollectors"),"data-testid":"store-collectors-hint",children:e.jsx(_,{name:"info",className:"ico","aria-hidden":!0})})})]}),e.jsx(J,{"aria-hidden":!0,children:"👥"})]}),e.jsx(Z,{"data-testid":"store-collectors",children:W.collectors.total.toLocaleString()}),e.jsx(X,{children:W.collectors.total===0?i("myStore.tileCollectorsNone"):e.jsxs(e.Fragment,{children:[m.breakdownPartial?e.jsxs(e.Fragment,{children:[e.jsx(lt,{children:i("myStore.estimate")})," "]}):null,W.collectors.topSharePct>=50?i("myStore.tileCollectorsConcentrated",{pct:Math.floor(W.collectors.topSharePct)}):i("myStore.tileCollectorsFoot",{repeat:W.collectors.repeat,pct:Math.round(W.collectors.repeatPct)})]})})]}),m.royalties?e.jsxs(q,{children:[e.jsxs(Q,{children:[e.jsxs("span",{children:[i("myStore.tileRoyalties"),e.jsx(ue,{content:i("myStore.royaltiesHint"),children:e.jsx(ct,{type:"button","aria-label":i("myStore.tileRoyalties"),"data-testid":"store-royalties-hint",children:e.jsx(_,{name:"info",className:"ico","aria-hidden":!0})})})]}),e.jsx(J,{"aria-hidden":!0,children:"🔁"})]}),e.jsxs(Z,{"data-testid":"store-royalties",children:[e.jsx(Sn,{children:"≈"}),e.jsx(O,{kind:"mana"}),R(zo(m.royalties.volumeWei))]}),e.jsxs(X,{children:[e.jsx(Pe,{delta:W.royalties,period:a}),ze(W.royalties)?null:e.jsx("span",{children:It("myStore.tileRoyaltiesFoot",{m:d=>e.jsxs(e.Fragment,{children:[e.jsx(O,{kind:"mana"}),d]}),count:m.royalties.resales,volume:R(m.royalties.volumeWei)})})]})]}):null]}),e.jsxs(U,{"aria-labelledby":"store-buyers-h",children:[e.jsxs(fe,{children:[e.jsx(pe,{id:"store-buyers-h",children:i("myStore.buyers")}),e.jsx($n,{children:i("myStore.buyersHint")})]}),W.buyers.length===0?e.jsx(me,{"data-testid":"store-buyers-none",children:i("myStore.noBuyers")}):e.jsx(Ie,{children:e.jsxs(ao,{children:[e.jsx("thead",{children:e.jsxs("tr",{children:[e.jsx("th",{scope:"col",children:i("myStore.colBuyer")}),e.jsx("th",{scope:"col",children:i("myStore.colItems")}),e.jsx("th",{scope:"col",children:i("myStore.colCollections")}),e.jsx("th",{scope:"col",children:i("myStore.colLast")}),e.jsx("th",{scope:"col",style:{textAlign:"right"},children:i("myStore.colSpent")})]})}),e.jsx("tbody",{children:Se.map(d=>{var I,Y,oe;const k=(oe=(Y=(I=ce==null?void 0:ce.get(d.address))==null?void 0:I.avatar)==null?void 0:Y.snapshots)==null?void 0:oe.face256;return e.jsxs("tr",{"data-testid":"store-buyer",children:[e.jsx("td",{children:e.jsxs(mt,{href:`${te.profileUrl}/${d.address}`,target:"_blank",rel:"noopener noreferrer",onClick:()=>g("Shop Clicked Store Action",{action:"open_buyer",table:"buyers"}),"data-testid":"store-buyer-name",children:[e.jsx(ut,{style:k?{backgroundImage:`url(${k})`}:void 0,"aria-hidden":!0}),$t(d.address,ce)]})}),e.jsx("td",{"data-dim":!0,children:i("myStore.buyerItems",{count:d.items})}),e.jsx("td",{"data-dim":!0,children:i("myStore.buyerCollections",{count:d.collections})}),e.jsx("td",{"data-dim":!0,children:vt(d.lastAt)}),e.jsx("td",{"data-money":!0,children:e.jsxs(Me,{children:[e.jsx(O,{kind:"mana"}),R(d.spentWei)]})})]},d.address)})})]})}),je>1?e.jsxs(Le,{children:[e.jsx("span",{}),e.jsx(Te,{page:de,pages:je,onChange:d=>{g("Shop Paged Store Table",{table:"buyers",page:d+1}),ne(d)},name:"buyers"})]}):null]})]})]})})})}export{na as MyStore,na as default};
|
|
1630
|
+
//# sourceMappingURL=MyStore-BF6s2HmL.js.map
|