@dcl/shop 1.17.0 → 1.17.1
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-BDAitxSe.js → Activity-BNjXw97e.js} +4 -4
- package/_assets/{AnimatedBackground-BPT-R1_3.js → AnimatedBackground-kFDegzCM.js} +2 -2
- package/_assets/{Assets-YB3gqw7Z.js → Assets-D_dCmUv0.js} +3 -3
- package/_assets/{Cart-BZ9KDQEQ.js → Cart-BPv_4JHc.js} +2 -2
- package/_assets/{Collection-BEzvnJiR.js → Collection-2qp7F46n.js} +2 -2
- package/_assets/{CollectionCarousel-1U62GlSR.js → CollectionCarousel-CXiZiW-S.js} +3 -3
- package/_assets/{Confetti-B6oSR8ow.js → Confetti-Bsu2ytMi.js} +4 -4
- package/_assets/{ConstantsUtil-02Z98pPd.js → ConstantsUtil-czCTnHYO.js} +2 -2
- package/_assets/{ContentClient-DRKnlFG4.js → ContentClient-CIV5rrAt.js} +2 -2
- package/_assets/{Creator-CjraeJsu.js → Creator-CIH3WU3e.js} +2 -2
- package/_assets/{CreditPackPicker-BZziSdp5.js → CreditPackPicker-Cf2WXrfD.js} +2 -2
- package/_assets/{CreditRate-avuRK-jH.js → CreditRate-DjCL9hVD.js} +2 -2
- package/_assets/{DeploymentBuilder-DrZ43REI.js → DeploymentBuilder-C3NqEfXH.js} +2 -2
- package/_assets/{EmotePlaybackBar-OvE8csVB.js → EmotePlaybackBar-Bq7TckV0.js} +3 -3
- package/_assets/{ErrorNotice-DcMO5bfW.js → ErrorNotice-DSZ4YOzl.js} +2 -2
- package/_assets/{Event-C-SU8wO0.js → Event-D__OUwpc.js} +2 -2
- package/_assets/{ExchangeController-BsAWvF-z.js → ExchangeController-BlkQV8ix.js} +2 -2
- package/_assets/{Faq-CnwUusBM.js → Faq-Daw98w_f.js} +2 -2
- package/_assets/{Filters-C0GaEoyc.js → Filters-COsCKlQM.js} +2 -2
- package/_assets/{GetCredits-BMu5ywjd.js → GetCredits-uaIm_-xy.js} +2 -2
- package/_assets/{Grow-BoAIZnmF.js → Grow-nApzPG32.js} +2 -2
- package/_assets/{HelpersUtil-7BUMaLLj.js → HelpersUtil-Dhc8srsx.js} +2 -2
- package/_assets/{ItemDetail-B2CA6Efg.js → ItemDetail-big_cmBY.js} +2 -2
- package/_assets/{LoadMore-B-3r-ZWY.js → LoadMore-D8gtSgyc.js} +2 -2
- package/_assets/{ManaPricingBanner-Bo3hRH0s.js → ManaPricingBanner-CiV8R5vd.js} +2 -2
- package/_assets/{ManaPricingBanner.styles-Cjs8YkyN.js → ManaPricingBanner.styles-BNQ_wLgO.js} +2 -2
- package/_assets/{MyAssets-nSoOwFbT.js → MyAssets-XbkBS3DE.js} +2 -2
- package/_assets/{MyFavorites-B0ZXgMrd.js → MyFavorites-lktPT4tc.js} +2 -2
- package/_assets/MyStore-SSChApNZ.js +1630 -0
- package/_assets/{NetworkUtil-8miI5YS1.js → NetworkUtil-BwvINT8v.js} +2 -2
- package/_assets/{NotFound-DS4UWKxV.js → NotFound-CIueRHHs.js} +2 -2
- package/_assets/{NotificationsBell-Bud0OzHB.js → NotificationsBell-BiwzCIb4.js} +13 -13
- package/_assets/{OutfitDetail-Cc6AzXUC.js → OutfitDetail-MDYbLLf8.js} +2 -2
- package/_assets/{OutfitPreview-B9kLHbqF.js → OutfitPreview-C52GjMv6.js} +2 -2
- package/_assets/{OutfitStudio-iccmKn9G.js → OutfitStudio-uomtfIa1.js} +2 -2
- package/_assets/{PaymentMethodStep-Crc70JXF.js → PaymentMethodStep-aQUg-E9d.js} +5 -5
- package/_assets/{SaleCountdown-tgg5rYZS.js → SaleCountdown-BC6cklIs.js} +2 -2
- package/_assets/{Spinner-BI2pnHnk.js → Spinner-NI6IZA5A.js} +2 -2
- package/_assets/{StoreSettings-CFMs82es.js → StoreSettings-BrdRpaVU.js} +2 -2
- package/_assets/{Success-BPaW4wD6.js → Success-Bsg9-DNo.js} +2 -2
- package/_assets/{SwapController-58ZQJ_1X.js → SwapController-DVbKfkaS.js} +2 -2
- package/_assets/{Tooltip-BIo3HKuG.js → Tooltip-DIRWGOxl.js} +2 -2
- package/_assets/{TradeService-Dsc1mpaP.js → TradeService-CK7xu_Fq.js} +2 -2
- package/_assets/{W3MFrameProviderSingleton-BFY4-xeW.js → W3MFrameProviderSingleton-BWvDpNTL.js} +4 -4
- package/_assets/{WebCryptoP256-CB99ORDR.js → WebCryptoP256-pa_zJ5z4.js} +2 -2
- package/_assets/{basic-CdYc4Tr0.js → basic-Mlwb1YPe.js} +2 -2
- package/_assets/{biconomy-Def1lOEm.js → biconomy-CIvkhhfY.js} +2 -2
- package/_assets/{browseLayout.styles-BXGCQFcT.js → browseLayout.styles-D3u_lxUV.js} +2 -2
- package/_assets/{browser-BX0XBm_z.js → browser-BnRQXFFw.js} +2 -2
- package/_assets/{browser-DEQDOIuL.js → browser-lYIugjhZ.js} +2 -2
- package/_assets/{browser-ponyfill-BcpGyTE-.js → browser-ponyfill-Dmn_2mUU.js} +2 -2
- package/_assets/{buy-cQMcQfO4.js → buy-MeE-N2le.js} +2 -2
- package/_assets/{buy-gasless-Csh9DBkB.js → buy-gasless-ZiYiDzb-.js} +2 -2
- package/_assets/{ccip-Zdwx5muQ.js → ccip-D2v4Tmss.js} +2 -2
- package/_assets/{ccip-BfASjPus.js → ccip-D9Kr5HJY.js} +2 -2
- package/_assets/{chains-D-cdgFrA.js → chains-CfHTI0IT.js} +2 -2
- package/_assets/collectionPage.styles-Drt5ivqQ.js +41 -0
- package/_assets/{common-BbV8rrew.js → common-BkGfzbjV.js} +2 -2
- package/_assets/{controller-BkR3R9Mg.js → controller-B1XkQ-8T.js} +3 -3
- package/_assets/{core-CBBVOAuR.js → core-8MNjsO3A.js} +5 -5
- package/_assets/{createSvgIcon-Cth-hh7l.js → createSvgIcon-BKu0ThNd.js} +3 -3
- package/_assets/{crumbs.styles-CjY4UM0w.js → crumbs.styles-IWrGqGTW.js} +2 -2
- package/_assets/{custom-BGLNayOO.js → custom-RQn4QL1O.js} +2 -2
- package/_assets/{data-capture-DhZ_XJZp.js → data-capture-BCz6ZuJe.js} +2 -2
- package/_assets/{dcl-schemas-Y9IX8NxW.js → dcl-schemas-BgQanFex.js} +2 -2
- package/_assets/{decimals-DP9STkLa.js → decimals-DQ6egFLl.js} +2 -2
- package/_assets/{decimals-DBDuI7ZW.js → decimals-Yu9nfiap.js} +2 -2
- package/_assets/{detectExtension-BmgUuh4c.js → detectExtension-mxrpMjPD.js} +2 -2
- package/_assets/{disposePreview-WF3Ir9YY.js → disposePreview-DPlzBDEC.js} +2 -2
- package/_assets/{email-s2w1RHpz.js → email-C9hzZFfn.js} +2 -2
- package/_assets/{embedded-wallet-DYdeVLuP.js → embedded-wallet-sNZ139r3.js} +2 -2
- package/_assets/{emotion-styled.browser.esm-BtfIhtDT.js → emotion-styled.browser.esm-CFDaRZFq.js} +2 -2
- package/_assets/{engine-QJZE6lVD.js → engine-t2WwPyT-.js} +2 -2
- package/_assets/{errors-DlpQMGvm.js → errors-TvhLJhmP.js} +2 -2
- package/_assets/{estimate-l1-fee-BNoY_h3C.js → estimate-l1-fee-V6V7FI1H.js} +2 -2
- package/_assets/{eth_estimateGas-Db_JUyHC.js → eth_estimateGas-vmn477Rl.js} +2 -2
- package/_assets/{eth_getStorageAt-B2Rd3N7V.js → eth_getStorageAt-BJsh0E1g.js} +2 -2
- package/_assets/{eth_getTransactionCount-DwtFzPso.js → eth_getTransactionCount-DjYi-3h-.js} +2 -2
- package/_assets/{ethereum-BZvolZh7.js → ethereum-CtosgwHU.js} +2 -2
- package/_assets/{ethers-ONPQNu2c.js → ethers-RdXTApYJ.js} +2 -2
- package/_assets/{events-Cnxc3MZM.js → events-DcSLjVuU.js} +2 -2
- package/_assets/{execute-CwECTiFh.js → execute-Da7DgAmR.js} +3 -3
- package/_assets/{extractIPFS-RToz4ucY.js → extractIPFS-Cczu9meN.js} +2 -2
- package/_assets/{features-BrF65X9Z.js → features-C_bdmaJE.js} +2 -2
- package/_assets/{fetchTokenMetadata-Cu8uhPp4.js → fetchTokenMetadata-7Kgsjbv4.js} +3 -3
- package/_assets/{field.styles-UoeOVVP4.js → field.styles-DDXjryam.js} +2 -2
- package/_assets/{fortmatic-DBQqmc33.js → fortmatic-BPBqqvfl.js} +2 -2
- package/_assets/{get-bytecode-B20_NVYR.js → get-bytecode-Bbw_Evod.js} +2 -2
- package/_assets/{get-ecosystem-wallet-info-DvpaDCXi.js → get-ecosystem-wallet-info-81lpLPU_.js} +2 -2
- package/_assets/{getBalance-BguIrnfm.js → getBalance-BgqMuvIf.js} +3 -3
- package/_assets/{getInstalledModules-CMJOAhYg.js → getInstalledModules-W4RDd7ik.js} +2 -2
- package/_assets/{getNFT-CRKHqATA.js → getNFT-BDhkq7kr.js} +3 -3
- package/_assets/{getNFT-ZEWnX77c.js → getNFT-anMIImQh.js} +2 -2
- package/_assets/{grid.styles-DRazCZQg.js → grid.styles-D--qOwVq.js} +2 -2
- package/_assets/{hashTypedData-DDHunTFS.js → hashTypedData-CUDRpwju.js} +2 -2
- package/_assets/{hashTypedData-CClBb_wd.js → hashTypedData-CiWRFQn6.js} +2 -2
- package/_assets/{import-Bkwnueek.js → import-CIZWEISk.js} +2 -2
- package/_assets/{in-app-xzDTDYAB.js → in-app-BbIysh8c.js} +2 -2
- package/_assets/{in-app-wallet-calls-BHr5SLHB.js → in-app-wallet-calls-BgxC18Ff.js} +2 -2
- package/_assets/{index-nl-8F_9V.js → index--yUfiOex.js} +2 -2
- package/_assets/{index-DC_HuNwa.js → index-8wQks0w8.js} +2 -2
- package/_assets/{index-CEjaVDS2.js → index-962zUKU_.js} +2 -2
- package/_assets/{index-Dn_v-4rQ.js → index-B-gdbRSW.js} +2 -2
- package/_assets/{index-CNNwz-Ox.js → index-B1OJuolS.js} +2 -2
- package/_assets/{index-z-rJW2w2.js → index-B49OLLy1.js} +2 -2
- package/_assets/{index-f4XVR9Vu.js → index-B6895neV.js} +2 -2
- package/_assets/{index-cMdIwdPB.js → index-BDdcoEFU.js} +4 -4
- package/_assets/{index-Cf-K62h6.js → index-BGZlLdrL.js} +2 -2
- package/_assets/{index-BGie1ELm.js → index-BIAEBlSw.js} +2 -2
- package/_assets/{index-BPl_k_Km.js → index-BJvtfv1M.js} +2 -2
- package/_assets/{index-DYJorIz7.js → index-BKGo_9wu.js} +2 -2
- package/_assets/{index-CzcXqzFr.js → index-BMjX5Tw6.js} +2 -2
- package/_assets/{index-CF2NCCCk.js → index-BNn-tbAt.js} +2 -2
- package/_assets/{index-BRXP99SA.js → index-BRWjazWI.js} +2 -2
- package/_assets/{index-PWMb6ZOe.js → index-Bc7EMqAf.js} +2 -2
- package/_assets/{index-D-MsTKOF.js → index-BeH18kmv.js} +2 -2
- package/_assets/{index-DZCebOSV.js → index-BhGdGiCs.js} +3 -3
- package/_assets/{index-ZFip7Qm5.js → index-BhhO1oEp.js} +2 -2
- package/_assets/{index-iFqEqotN.js → index-BlG9tYXl.js} +2 -2
- package/_assets/{index-C_6_qdE8.js → index-BmsamR4M.js} +2 -2
- package/_assets/{index-xUBXenIa.js → index-Bs_f3yhf.js} +2 -2
- package/_assets/{index-Dd4SOtlb.js → index-Bsw53nId.js} +2 -2
- package/_assets/{index-B8vpG_ve.js → index-BwKvHJ-v.js} +2 -2
- package/_assets/{index-B_9tW51r.js → index-C0EB4Nb3.js} +13 -13
- package/_assets/{index-BAVmy8GP.js → index-C5s2ci0r.js} +2 -2
- package/_assets/{index-CAxBC1Uk.js → index-CFBOIeXE.js} +2 -2
- package/_assets/{index-vqD571_k.js → index-CM4FAtZl.js} +2 -2
- package/_assets/{index-C2ljwN3_.js → index-CSZAw8dC.js} +2 -2
- package/_assets/{index-CvYhbyB3.js → index-CZEYeX3l.js} +2 -2
- package/_assets/{index-D0TO84Sb.js → index-CeM8omfX.js} +2 -2
- package/_assets/{index-CiAs8gu-.js → index-Cf6ERmsZ.js} +2 -2
- package/_assets/{index-ClZwHZ-1.js → index-CjuTKXut.js} +2 -2
- package/_assets/{index-DcsfuUaQ.js → index-ClIQf3ng.js} +2 -2
- package/_assets/{index-CDDb8L2e.js → index-Cq62ZdRW.js} +3 -3
- package/_assets/{index-C9Pokjg9.js → index-CtSgRzsY.js} +2 -2
- package/_assets/{index-D7hI7QCB.js → index-CvR8He0C.js} +2 -2
- package/_assets/{index-etSO6k1-.js → index-CwCEh7Ea.js} +2 -2
- package/_assets/{index-DWq9lH-h.js → index-Cw_s9pOw.js} +2 -2
- package/_assets/{index-CvCN2utU.js → index-D1S8t2fe.js} +2 -2
- package/_assets/{index-C38zM6xC.js → index-D22FRuvW.js} +2 -2
- package/_assets/{index-BVNHdowJ.js → index-DAysx568.js} +2 -2
- package/_assets/{index-Cq3MUpHI.js → index-DCdW2yi4.js} +4 -4
- package/_assets/{index-D0rhkQNM.js → index-DFQS58XE.js} +3 -3
- package/_assets/{index-r7YKLeOf.js → index-DO6ydGXX.js} +2 -2
- package/_assets/{index-BNCZbOa3.js → index-DOn0iodU.js} +2 -2
- package/_assets/{index-DSdsqACJ.js → index-DQS3Dydb.js} +2 -2
- package/_assets/{index-RQBaPhZZ.js → index-DTVY5scD.js} +2 -2
- package/_assets/{index-MYKbwgBa.js → index-DTWx6T1S.js} +2 -2
- package/_assets/{index-CZH9YSNz.js → index-DU6vOlyL.js} +2 -2
- package/_assets/{index-CCAaQhfo.js → index-DZEeeDQr.js} +2 -2
- package/_assets/{index-CPY0doEH.js → index-DfOPi5vf.js} +4 -4
- package/_assets/{index-DbEF7rCT.js → index-Dkohypnm.js} +4 -4
- package/_assets/{index-BR5nZSJU.css → index-DoXX6TgS.css} +1 -1
- package/_assets/{index-ClZTLO9x.js → index-Dxfnkqq4.js} +2 -2
- package/_assets/{index-C6vFwLXO.js → index-Dz8UCy0P.js} +2 -2
- package/_assets/{index-B2_RriIz.js → index-DzyghasH.js} +2 -2
- package/_assets/{index-BroiUjH-.js → index-FfTM_1mz.js} +2 -2
- package/_assets/{index-D-4tfRXD.js → index-GCKJ9yxg.js} +3 -3
- package/_assets/{index-CerWtNQP.js → index-M4vJyniz.js} +2 -2
- package/_assets/{index-BwlQgcnw.js → index-OhRAcbHT.js} +3 -3
- package/_assets/{index-qMZBZipv.js → index-Zum9uUGy.js} +2 -2
- package/_assets/{index-Ycu1Efd5.js → index-_bcedLK5.js} +2 -2
- package/_assets/{index-DoUCGGIP.js → index-cGB6nHYf.js} +2 -2
- package/_assets/{index-CpCYnuUf.js → index-hLoLHUKV.js} +2 -2
- package/_assets/{index-6tB-8D8d.js → index-lQ2m7yUy.js} +2 -2
- package/_assets/{index-W9y3B94r.js → index-qrz6WiaK.js} +2 -2
- package/_assets/{index-lppz8g54.js → index-wOPFghKT.js} +2 -2
- package/_assets/{index.es-D45aSNIr.js → index.es-BirWIv1k.js} +2 -2
- package/_assets/{index.es-CYA-RWHm.js → index.es-C1YwoJJN.js} +2 -2
- package/_assets/{index.es-BmLJs4Sf.js → index.es-O8xfjyk3.js} +5 -5
- package/_assets/{index.es-Dm5j7t68.js → index.es-YMSgumSf.js} +2 -2
- package/_assets/{items-empty-C-EnJrLW.js → items-empty-BciJH2B_.js} +2 -2
- package/_assets/{jump-Br9Dsy87.js → jump-DddgnPSC.js} +2 -2
- package/_assets/{linkAccount-cYB7T4Tv.js → linkAccount-CHDe6wUT.js} +2 -2
- package/_assets/{loader-logo-D6wRaebi.js → loader-logo-ChNoWI1Z.js} +2 -2
- package/_assets/{localBatchGatewayRequest-COaaXHV3.js → localBatchGatewayRequest-tSt38JDm.js} +2 -2
- package/_assets/{modal.styles-CLWgiYOt.js → modal.styles-BPDABQCr.js} +2 -2
- package/_assets/{native-D0UXnlN2.js → native-Cxh3QIKd.js} +2 -2
- package/_assets/{networks-DOfb9fnb.js → networks-rNqzEIu1.js} +2 -2
- package/_assets/{onramp-DuzeTgkJ.js → onramp-Cjb0y_EX.js} +2 -2
- package/_assets/{openzeppelin-BYeG61g_.js → openzeppelin-Dbgk07uO.js} +2 -2
- package/_assets/{ownerOf-iXYBoNOp.js → ownerOf-ifwSx1wQ.js} +2 -2
- package/_assets/{parseNft-CFjAUYrS.js → parseNft-BgX116P8.js} +3 -3
- package/_assets/{parseSignature-Bz44eKqN.js → parseSignature-B3jn_FVR.js} +4 -4
- package/_assets/{parseSignature-DhzqF-CI.js → parseSignature-Cjx-94kV.js} +2 -2
- package/_assets/{passkeys-DmPYPC4_.js → passkeys-C14r7a1U.js} +2 -2
- package/_assets/{pay-with-exchange-DgE3ADUi.js → pay-with-exchange-BoqePTss.js} +2 -2
- package/_assets/{prepare-contract-call-UX6BV4kX.js → prepare-contract-call-CVD1LMqZ.js} +2 -2
- package/_assets/{qr-overlay-BK6W2N1n.js → qr-overlay-BaF8O6L7.js} +4 -4
- package/_assets/{react-C7jFYDiK.js → react-57wE9FMW.js} +2 -2
- package/_assets/{receive-BPZlHFZz.js → receive-_KdL5WbJ.js} +2 -2
- package/_assets/{resolveImplementation-CBX9bsBq.js → resolveImplementation-BIVOA86N.js} +2 -2
- package/_assets/{resume-buy-CF_A677G.js → resume-buy-RWKNCH2I.js} +2 -2
- package/_assets/{resume-name-DRIQjZDI.js → resume-name-CVkpKZkm.js} +2 -2
- package/_assets/{rpc-CjoJTeFs.js → rpc-BuxGvW8N.js} +2 -2
- package/_assets/{sales-empty-CCIeKhF8.js → sales-empty-BrdJIpZF.js} +2 -2
- package/_assets/{search-empty-Cv-A-bGM.js → search-empty-B9EfPE1P.js} +2 -2
- package/_assets/{secp256k1-3HnIIFaB.js → secp256k1-C3mpZkpr.js} +2 -2
- package/_assets/{secp256k1-H9BOWccb.js → secp256k1-D98PKoK-.js} +2 -2
- package/_assets/{secp256k1-BC23J6L7.js → secp256k1-DtCcUzXl.js} +2 -2
- package/_assets/{send-BvvSZGqL.js → send-CPee34BT.js} +2 -2
- package/_assets/{send-batch-transaction-DWd-4a-P.js → send-batch-transaction-CRYeO2Ew.js} +2 -2
- package/_assets/{send-eip712-transaction-CV3wA8Tg.js → send-eip712-transaction-DmUbX1xf.js} +3 -3
- package/_assets/{send-gasless-transaction-CL7pL7R6.js → send-gasless-transaction-Cl9L9F1A.js} +3 -3
- package/_assets/{send-transaction-BCsU6ARj.js → send-transaction-CydyNIuj.js} +3 -3
- package/_assets/{sendMetaTransaction-BYS3mpcN.js → sendMetaTransaction-B7N-qRfh.js} +2 -2
- package/_assets/{sendRawTransaction-Ddvz0FY1.js → sendRawTransaction-DAT5LyNo.js} +4 -4
- package/_assets/{sentry-D0Tn9ys9.js → sentry-C6Mao8WI.js} +3 -3
- package/_assets/{serializeTransaction-D8NuHg0X.js → serializeTransaction-CjRJ0psk.js} +2 -2
- package/_assets/{session-proposal-BqkEkhl4.js → session-proposal-ueoRTwfB.js} +2 -2
- package/_assets/{session-request-CGDqRcgz.js → session-request-BD9TXTaA.js} +3 -3
- package/_assets/{sha256-eeK7AQj_.js → sha256-DbvztKVh.js} +2 -2
- package/_assets/{sha3-xnrXfD_X.js → sha3-5JMjwcQn.js} +2 -2
- package/_assets/signin-empty-Duq453f-.js +2 -0
- package/_assets/{signing-COt_6P6-.js → signing-D8djUTSU.js} +4 -4
- package/_assets/{skeleton.styles-BIRzF96I.js → skeleton.styles-Bvaum8jS.js} +2 -2
- package/_assets/{socials-FBZ8ufY2.js → socials-NQn6q4he.js} +2 -2
- package/_assets/{styled-D5armwdx.js → styled-CCNK0K71.js} +3 -3
- package/_assets/{swaps-BUkp_a-D.js → swaps-CgWjr3x_.js} +2 -2
- package/_assets/{thirdweb-Gp2Qqqv-.js → thirdweb-C1alV0QS.js} +4 -4
- package/_assets/{to-serializable-transaction-Dqzq4pvb.js → to-serializable-transaction-BKQS5d49.js} +3 -3
- package/_assets/{totalSupply-CuUUGFEf.js → totalSupply-CF5FI8lQ.js} +2 -2
- package/_assets/{trade-encoding-BULjvT7g.js → trade-encoding-BV1_7YxJ.js} +2 -2
- package/_assets/{transaction-BO1gVZ_X.js → transaction-BVLpkah4.js} +2 -2
- package/_assets/{transactionReceipt-BB3i5pIg.js → transactionReceipt-DwjBLtBg.js} +2 -2
- package/_assets/{transactions-C_RN2bX3.js → transactions-DW_nxFG-.js} +2 -2
- package/_assets/{useInfiniteGrid-DvFwlZIH.js → useInfiniteGrid-CbPWAhDP.js} +2 -2
- package/_assets/{useStore-pA_MeHwI.js → useStore-CJ2zzclt.js} +3 -3
- package/_assets/{useTheme-B3x14PSR.js → useTheme-D3lC36b8.js} +2 -2
- package/_assets/{utils-D_pHR6O7.js → utils-DyoF2n1_.js} +2 -2
- package/_assets/{verifyHash-BQhqA-8D.js → verifyHash-D_k8MOkd.js} +2 -2
- package/_assets/{w3m-modal-8HO4zh7L.js → w3m-modal-BwPY12eH.js} +2 -2
- package/_assets/{w3m-modal-CL7Ujenr.js → w3m-modal-CIfTlIpr.js} +2 -2
- package/_assets/{wait-for-tx-receipt-CPO1Z8xR.js → wait-for-tx-receipt-BQf97Yv5.js} +2 -2
- package/_assets/{wallets-Da574xT5.js → wallets-Cor67NYq.js} +6 -6
- package/_assets/{web-connector-Cwgma0GW.js → web-connector-AUtPfxac.js} +4 -4
- package/_assets/{writeContract-Dv21cURn.js → writeContract-_6z0Fw9c.js} +2 -2
- package/_assets/{zora-sepolia-9LItxCQr.js → zora-sepolia-DFxo1Oif.js} +2 -2
- package/_assets/{zoraTestnet-J8T9VM84.js → zoraTestnet-B4Lgrc00.js} +2 -2
- package/index.html +12 -12
- package/package.json +2 -2
- package/_assets/MyStore-DfX_q7UW.js +0 -1630
- package/_assets/collectionPage.styles-DEV__sk3.js +0 -41
- package/_assets/signin-empty-BhQynyYC.js +0 -2
|
@@ -0,0 +1,1630 @@
|
|
|
1
|
+
import{r as $,j as e,L as ie,u as Jt,f as Zt,N as Xt}from"./react-57wE9FMW.js";import{c as V,bU as es,w as O,l as ts,cu as ss,cv as ns,s as r,t as i,z as os,a as s,I as z,ca as as,H as At,B as is,x as rs,cc as ls,cw as ds,a3 as cs,aE as It,aH as hs,$ as ps,cx as Fe,cy as Mt,O as us,c9 as ms,av as xs,aw as fs,ax as gs,as as ys,bO as bs,cz as ws}from"./index-C0EB4Nb3.js";import{f as js,S as Ss}from"./SaleCountdown-BC6cklIs.js";import{d as ks}from"./dcl-schemas-BgQanFex.js";import{t as $s,u as vs,C as Cs,M as As,i as Is}from"./ManaPricingBanner-CiV8R5vd.js";import{T as me}from"./Tooltip-DIRWGOxl.js";import{m as Ms}from"./mana-matic-CEqvSwrJ.js";import{E as nt}from"./ErrorNotice-DSZ4YOzl.js";import{u as Ws,L as Ls}from"./useStore-CJ2zzclt.js";import{s as Ts}from"./signin-empty-Duq453f-.js";import{g as Ps,R as zs,M as _s}from"./browseLayout.styles-D3u_lxUV.js";import"./sentry-C6Mao8WI.js";import"./ethers-RdXTApYJ.js";import"./intl-AKLEHPeO.js";import"./errors-TvhLJhmP.js";import"./sha3-5JMjwcQn.js";import"./browser-BnRQXFFw.js";import"./trade-encoding-BV1_7YxJ.js";import"./sendMetaTransaction-B7N-qRfh.js";import"./ManaPricingBanner.styles-BNQ_wLgO.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new t.Error().stack;n&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[n]="70d84ac7-2948-4eb2-a4af-4e8543a1fce4",t._sentryDebugIdIdentifier="sentry-dbid-70d84ac7-2948-4eb2-a4af-4e8543a1fce4")}catch{}})();function _(t){try{return BigInt(t||"0")}catch{return 0n}}async function ot(t){var a;const n=new URLSearchParams({seller:t.seller});t.from!=null&&n.set("from",String(t.from)),t.to!=null&&n.set("to",String(t.to));const o=await fetch(`${V.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 Fs(t){const n=new URLSearchParams;return t.seller&&n.set("seller",t.seller),t.contractAddress&&n.set("contractAddress",t.contractAddress),t.itemId!=null&&n.set("itemId",t.itemId),t.type&&n.set("type",t.type),t.from!=null&&n.set("from",String(t.from)),t.to!=null&&n.set("to",String(t.to)),n.set("first",String(t.first??100)),t.skip&&n.set("skip",String(t.skip)),n.set("sortBy","recently_sold"),n}async function Ne(t){var l;const n=await fetch(`${V.marketplaceServerUrl}/v1/sales?${Fs(t).toString()}`);if(!n.ok)throw await((l=n.body)==null?void 0:l.cancel()),new Error(`fetchSales ${n.status}`);const o=await n.json();return{data:o.data??[],total:o.total??0}}async function Es(t){const{total:n}=await Ne({...t,first:1});return n}async function Ns(t,{first:n,skip:o}){const{data:l,total:a}=await Ne({...t,first:n,skip:o});return{rows:l,total:a}}async function Os(t,{cap:n=5e3}={}){const l=[];let a=0;for(let p=0;p<n;p+=1e3){const x=Math.min(1e3,n-p),h=await Ne({...t,first:x,skip:p});if(a=h.total,l.push(...h.data),h.data.length<x||l.length>=a)break}return{rows:l,total:a,truncated:a>l.length}}const Ds=864e5;function at(t,n){return{current:t,previous:n,pct:n===0?null:(t-n)/n*100}}function Bs(t,n){const o=n===0n?null:Number((t-n)*10000n/n)/100;return{current:Number(t),previous:Number(n),pct:o}}function Rs(t,n=3){var x;const o=t.filter(Wt),l=new Map;for(const h of o){const b=h.buyer.toLowerCase();l.set(b,(l.get(b)??0)+1)}const a=[...l.entries()].sort((h,b)=>b[1]-h[1]||h[0].localeCompare(b[0])),p=a.filter(([,h])=>h>1).length;return{total:a.length,repeat:p,repeatPct:a.length===0?0:p/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(([h,b])=>({address:h,bought:b}))}}function Wt(t){return t.type==="mint"&&t.itemId!=null}function Hs(t,n){const o=t.filter(Wt),l=new Map;for(const a of o){const p=a.buyer.toLowerCase(),x=a.contractAddress.toLowerCase(),h=l.get(p)??{bought:0,items:new Set,collections:new Set,spentWei:0n,lastAt:0};h.bought+=1,h.items.add(`${x}-${a.itemId}`),h.collections.add(x),h.spentWei+=_(a.price),a.timestamp>h.lastAt&&(h.lastAt=a.timestamp),l.set(p,h)}return[...l.entries()].map(([a,p])=>({address:a,bought:p.bought,items:p.items.size,collections:p.collections.size,spentWei:p.spentWei,lastAt:p.lastAt})).sort((a,p)=>p.spentWei>a.spentWei?1:p.spentWei<a.spentWei?-1:p.bought-a.bought).slice(0,n)}function qs(t,n){if(t.length===0)return null;const o=t.reduce((l,a)=>a.timestamp>l?a.timestamp:l,0);return Math.max(0,Math.floor((n-o)/Ds))}function Us(t,n=5){return t.flatMap(o=>o.items.filter(l=>l.sold>0).map(l=>({key:l.key,contractAddress:o.contractAddress,itemId:l.itemId,name:l.name,thumbnail:l.thumbnail,rarity:l.rarity,collectionName:o.name,sold:l.sold,earnedWei:l.earnedWei}))).sort((o,l)=>l.sold-o.sold||(l.earnedWei>o.earnedWei?1:l.earnedWei<o.earnedWei?-1:0)||o.name.localeCompare(l.name)).slice(0,n)}const xe=100;async function Ks(t){const[{collections:n},o]=await Promise.all([es(t,{first:xe}),Ys(t)]),l=new Map(n.map(a=>[a.contractAddress.toLowerCase(),a.name]));return o.map(a=>{const p=a.contractAddress.toLowerCase(),x=(a.rarity??"common").toLowerCase(),h=Gs(x),b=Number(a.available??0);return{id:a.id,collectionId:"",collectionName:l.get(p)??a.name,contractAddress:p,blockchainItemId:String(a.itemId??""),name:a.name,category:a.category,rarity:x,thumbnail:a.thumbnail??"",type:a.category==="emote"?"emote":"wearable",isPublished:!0,isApproved:!0,totalSupply:Math.max(0,h-b),maxSupply:h,remainingSupply:b,createdAt:a.createdAt?a.createdAt*1e3:void 0,minters:[]}})}function Vs(t,n){const o=new Set(t.map(l=>l.contractAddress.toLowerCase()));return[...t,...n.filter(l=>!o.has(l.contractAddress.toLowerCase()))]}function Gs(t){try{return ks.Rarity.getMaxSupply(t)}catch{return 0}}async function Ys(t){var o;const n=[];for(let l=0;;l+=xe){const a=new URLSearchParams({creator:t,first:String(xe),skip:String(l),includeSocialEmotes:"false"}),p=await fetch(`${V.marketplaceServerUrl}/v3/catalog/items?${a.toString()}`);if(!p.ok)throw await((o=p.body)==null?void 0:o.cancel()),new Error(`fetchPublicCatalogue ${p.status}`);const{data:x}=await p.json(),h=x??[];if(n.push(...h),h.length<xe)return n}}const Ee=864e5,fe=14;function Qs(t,n,o){const l=new Array(fe).fill(0),a=o-n*Ee,p=n*Ee/fe;for(const x of t)x.timestamp<a||x.timestamp>o||(l[Math.min(fe-1,Math.floor((x.timestamp-a)/p))]+=1);return l}function Js({rows:t,total:n,truncated:o,mints:l,summary:a,catalogue:p,saleState:x,unreadable:h,days:b,now:L}){const u=new Map,P=new Map,I=new Map;for(const c of t){if(c.type!=="mint"||c.itemId==null)continue;const f=c.contractAddress.toLowerCase(),g=`${f}-${c.itemId}`;u.set(g,(u.get(g)??0)+1),P.set(g,(P.get(g)??0n)+_(c.price));const j=I.get(f)??[];j.push(c),I.set(f,j)}const F=t.reduce((c,f)=>f.timestamp<c?f.timestamp:c,L),T=Math.max(1,Math.ceil((L-F)/Ee)),E=b!=null&&!o?b:Math.max(b==null?fe:1,T),B=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])),N=new Map;let G=0,q=0,Y=0,w=0,v=0;for(const c of p){const f=c.contractAddress.toLowerCase(),g=x[`${c.contractAddress}-${c.blockchainItemId}`],j=c.remainingSupply<=0?"soldout":h!=null&&h.has(f)?"unknown":g!=null&&g.isOnSale?g.manaWei?"classic":"discounted":"unlisted";j==="soldout"?w+=1:j==="unlisted"?v+=1:j==="classic"?Y+=1:j==="discounted"&&(q+=1);const k=N.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=u.get(`${f}-${c.blockchainItemId}`)??0;k.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:P.get(`${f}-${c.blockchainItemId}`)??0n,lifetimeSold:B.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}),k.sold+=M,k.claimed+=c.totalSupply,k.runTotal+=c.totalSupply+c.remainingSupply,G+=M,c.createdAt&&(k.createdAt==null||c.createdAt>k.createdAt)&&(k.createdAt=c.createdAt),j==="soldout"?k.soldOut+=1:j==="classic"?k.classic+=1:j==="discounted"&&(k.listed+=1),N.set(f,k)}for(const[c,f]of N){const g=I.get(c)??[],j=ne.get(c);f.earningsWei=j?_(j.earnedWei):g.reduce((k,M)=>k+_(M.price),0n),j&&(f.sold=j.sold),f.trend=Qs(g,E,L),f.exhausted=f.items.length>0&&f.soldOut===f.items.length,f.items.sort((k,M)=>M.sold-k.sold||k.name.localeCompare(M.name))}const W=[...N.values()].reduce((c,f)=>c+f.sold,0);return{collections:[...N.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?_(a.earnedWei):t.reduce((c,f)=>c+_(f.price),0n),partial:a?!1:o,breakdownPartial:o,fetched:t.length,unattributed:a?a.total-W:t.length-G,trendDays:E,unknownCollections:[...N.keys()].filter(c=>h==null?void 0:h.has(c)).length,royalties:a?{resales:a.royalties.resales,volumeWei:_(a.royalties.volumeWei)}:null,listed:q,neverListed:v,classic:Y,soldOut:w}}const Zs=new Map,J=864e5,Xs=6e3,en={"7d":7,"30d":30,all:null};function tn(t,n){const o=t==null?void 0:t.address,l=en[n],a=$.useMemo(()=>Math.floor(Date.now()/J)*J+J-1,[]),p=l?a-l*J:void 0,x=O({queryKey:["store-sales",o,n],enabled:!!o,queryFn:()=>Os({seller:o,from:p})}),h=O({queryKey:["store-summary",o,n],enabled:!!o,queryFn:()=>ot({seller:o,from:p})}),b=l!=null?a-2*l*J:void 0,L=l!=null?a-l*J:void 0,u=O({queryKey:["store-summary-previous",o,n],enabled:!!o&&b!==void 0,queryFn:()=>ot({seller:o,from:b,to:L})}),P=O({queryKey:["store-mints",o,n],enabled:!!o,queryFn:()=>Es({seller:o,from:p,type:"mint"})}),I=O({queryKey:["store-catalogue",o],enabled:!!o&&!!t,queryFn:()=>js(o,t.identity,{includeSoldOut:!0})}),F=O({queryKey:["store-public-catalogue",o],enabled:!!o&&!!t,queryFn:()=>Promise.race([Ks(o),new Promise((w,v)=>setTimeout(()=>v(new Error("public catalogue timed out")),Xs))]).catch(w=>(ts(w,{flow:"my_store",step:"public_catalogue"}),[]))}),T=$.useMemo(()=>I.data?F.isPending?{data:void 0}:{data:Vs(I.data,F.data??[])}:{data:void 0},[I.data,F.isPending,F.data]),E=$.useMemo(()=>[...new Set((T.data??[]).map(w=>w.contractAddress))],[T.data]),B=O({queryKey:["store-sale-state",o,E],enabled:E.length>0,queryFn:async()=>{const w=await Promise.allSettled(E.map(c=>ss(c))),v={},W=new Set;return w.forEach((c,f)=>{const g=E[f];if(c.status==="rejected"){W.add(g.toLowerCase());return}for(const[j,k]of Object.entries(c.value))v[`${g}-${j}`]=k}),{states:v,unreadable:W}}}),ne=O({queryKey:["store-saves",E,(T.data??[]).length],enabled:(T.data??[]).length>0,queryFn:async()=>{const w=(T.data??[]).map(c=>`${c.contractAddress.toLowerCase()}-${c.blockchainItemId}`),v=await Promise.allSettled(w.map(async c=>[c,(await ns(c)).count])),W=new Map;for(const c of v)c.status==="fulfilled"&&W.set(c.value[0],c.value[1]);return W}}),N=$.useMemo(()=>{var w,v,W,c,f;return T.data?Js({rows:((w=x.data)==null?void 0:w.rows)??[],total:((v=x.data)==null?void 0:v.total)??0,truncated:!!((W=x.data)!=null&&W.truncated),mints:P.data??0,summary:h.data??null,catalogue:T.data,saleState:((c=B.data)==null?void 0:c.states)??{},unreadable:(f=B.data)==null?void 0:f.unreadable,days:l,now:a}):null},[T.data,x.data,P.data,h.data,B.data,l,a]),G=$.useMemo(()=>{var w;return $s(I.data??[],(w=B.data)==null?void 0:w.states)},[I.data,B.data]),q=$.useMemo(()=>{var f,g,j;const w=Rs(((f=x.data)==null?void 0:f.rows)??[]),v=Hs(((g=x.data)==null?void 0:g.rows)??[]),W=qs(((j=x.data)==null?void 0:j.rows)??[],a),c=u.data;return{collectors:w,buyers:v,quietDays:W,sold:c&&h.data?at(h.data.total,c.total):null,earnings:c&&h.data?Bs(_(h.data.earnedWei),_(c.earnedWei)):null,royalties:c&&h.data?at(h.data.royalties.resales,c.royalties.resales):null}},[x.data,h.data,u.data,a]),Y=ne.data??Zs;return{stats:N,trend:q,savesByKey:Y,saleable:G,isLoading:I.isLoading||F.isLoading||x.isLoading||h.isLoading,error:I.error??x.error??null}}const sn=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 D({kind:t,className:n}){const o=t==="mana"?i("currency.polygonMana"):i("currency.credits");return e.jsx(me,{content:o,children:e.jsx(sn,{className:n,"aria-label":o,role:"img","data-kind":t,children:t==="mana"?e.jsx("img",{src:Ms,alt:"","aria-hidden":!0}):e.jsx(os,{className:"ccy-mark"})})})}const ae=864e5,H=Date.now(),nn=(t,n,o,l,a)=>({key:`0xmock${t}-${t}`,itemId:String(t),name:n,thumbnail:"",rarity:["epic","legendary","rare","mythic","unique"][t%5],left:l-o,minted:o,sold:Math.round(o/6),earnedWei:BigInt(Math.round(o/6)*(3+t%5))*10n**18n,lifetimeSold:o,priceCredits:a==="classic"?null:20+t*5,manaWei:a==="classic"?"5000000000000000000":null,createdAt:H-t*11*ae,state:a}),on=[[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]],an=[{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 rn(t,n){const o=t.items.map(([a,p,x,h],b)=>nn(n*10+b,a,p,x,h)),l=o.reduce((a,p)=>a+p.minted,0);return{contractAddress:`0xmock${n.toString().padStart(36,"0")}`,collectionId:`mock-${n}`,name:t.name,items:o,listed:o.filter(a=>a.state==="discounted").length,classic:o.filter(a=>a.state==="classic").length,soldOut:o.filter(a=>a.state==="soldout").length,sold:t.sold,earningsWei:BigInt(t.earnings)*10n**18n,createdAt:H-n*30*ae,trend:on[t.trend],claimed:l,runTotal:o.reduce((a,p)=>a+p.minted+p.left,0),exhausted:o.length>0&&o.every(a=>a.state==="soldout")}}const Oe=(()=>{const t=an.map(rn);return{collections:t,sold:211,mints:198,resales:13,earningsWei:3070n*10n**18n,partial:!1,breakdownPartial:!1,fetched:211,unattributed:6,trendDays:30,unknownCollections:1,royalties:{resales:41,volumeWei:2140n*10n**18n},listed:t.reduce((n,o)=>n+o.listed,0),neverListed:t.reduce((n,o)=>n+o.items.filter(l=>l.state==="unlisted").length,0),classic:t.reduce((n,o)=>n+o.classic,0),soldOut:t.reduce((n,o)=>n+o.soldOut,0)}})(),ln={total:74,repeat:29,repeatPct:39.19,topSharePct:21.3},dn=Array.from({length:12},(t,n)=>({address:`0x${(n+1).toString(16).repeat(40).slice(0,40)}`,bought:12-n,items:Math.max(1,8-n),collections:Math.max(1,5-Math.floor(n/2)),spentWei:BigInt(900-n*62)*10n**18n,lastAt:H-(n+1)*9*36e5})),it=(t,n,o,l,a,p)=>({id:`mock-coupon-${t}`,signer:"0xmockcreator0000000000000000000000000001",chainId:137,network:"MATIC",checks:{uses:50,expiration:H+a,effective:H-l,salt:`0x${t.toString().repeat(64).slice(0,64)}`,contractSignatureIndex:0,signerSignatureIndex:0,allowedRoot:"0x",externalChecks:[],allowedProof:[]},couponManager:"0x6c956587d9fe70032781edcdc626310648575382",couponAddress:"0x4ee8f6b87f4917a3bbc7c8bb3a06db8555f83db9",discountType:1,discount:o*1e4,root:`0x${"44".repeat(32)}`,collections:[n],signature:`0x${"cd".repeat(65)}`,proof:[],createdAt:H-l,state:{uses:p,cancelled:!1,revoked:!1,checkedAt:H},status:"active"}),cn=[it(1,`0xmock${"0".repeat(36)}`,25,3*ae,3*ae,18),it(2,`0xmock${"1".padStart(36,"0")}`,15,12*36e5,9*ae,0)],hn=new Map(Oe.collections.flatMap(t=>t.items.map((n,o)=>[n.key,[41,3,128,0,17,6,92,1][o%8]]))),pn=Oe.collections.flatMap(t=>t.items.map(n=>[t.contractAddress,n])),un=pn.slice(0,5).map(([t,n],o)=>({id:`mock-sale-${o}`,itemId:o===3?null:n.itemId,contractAddress:t,buyer:`0x${(o+3).toString(16).repeat(40).slice(0,40)}`,seller:"0xmockcreator0000000000000000000000000001",price:String(BigInt(40+o*17)*10n**18n),timestamp:H-(o===0?8*6e4:o*19*36e5),type:o===3?"order":"mint",network:"MATIC",tokenId:o===3?"1042":null})),mn=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: ${s.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
|
+
`,xn=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
|
+
`,fn=r.div`
|
|
40
|
+
display: flex;
|
|
41
|
+
align-items: center;
|
|
42
|
+
gap: 12px;
|
|
43
|
+
min-width: 0;
|
|
44
|
+
`,gn=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
|
+
`,yn=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
|
+
${s.media.maxWidth("mobile")} {
|
|
64
|
+
width: 56px;
|
|
65
|
+
height: 56px;
|
|
66
|
+
}
|
|
67
|
+
`,bn=r.p`
|
|
68
|
+
margin: 0;
|
|
69
|
+
font-family: ${s.font.sans};
|
|
70
|
+
font-size: 14px;
|
|
71
|
+
font-weight: 600;
|
|
72
|
+
line-height: 1.6;
|
|
73
|
+
color: ${s.colors.softWhite};
|
|
74
|
+
overflow: hidden;
|
|
75
|
+
text-overflow: ellipsis;
|
|
76
|
+
white-space: nowrap;
|
|
77
|
+
max-width: 100%;
|
|
78
|
+
`,wn=r.h1`
|
|
79
|
+
margin: 0;
|
|
80
|
+
font-family: ${s.font.sans};
|
|
81
|
+
font-size: 32px;
|
|
82
|
+
font-weight: 700;
|
|
83
|
+
line-height: 1.2;
|
|
84
|
+
letter-spacing: 0.46px;
|
|
85
|
+
color: ${s.colors.white};
|
|
86
|
+
|
|
87
|
+
${s.media.maxWidth("mobile")} {
|
|
88
|
+
font-size: 26px;
|
|
89
|
+
}
|
|
90
|
+
`,jn=r.div`
|
|
91
|
+
display: flex;
|
|
92
|
+
flex-direction: column;
|
|
93
|
+
align-items: flex-start;
|
|
94
|
+
gap: 8px;
|
|
95
|
+
min-width: 0;
|
|
96
|
+
`,rt=r.p`
|
|
97
|
+
margin: 0;
|
|
98
|
+
display: flex;
|
|
99
|
+
align-items: center;
|
|
100
|
+
gap: 12px;
|
|
101
|
+
font-family: ${s.font.sans};
|
|
102
|
+
font-size: 12px;
|
|
103
|
+
line-height: 1;
|
|
104
|
+
color: ${s.colors.softWhite};
|
|
105
|
+
`,Sn=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
|
+
${s.media.maxWidth("mobile")} {
|
|
116
|
+
justify-content: flex-start;
|
|
117
|
+
width: 100%;
|
|
118
|
+
}
|
|
119
|
+
`,kn=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: ${s.radius.card};
|
|
127
|
+
color: ${s.colors.white};
|
|
128
|
+
font-family: ${s.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: ${s.colors.navViolet};
|
|
139
|
+
}
|
|
140
|
+
.ico {
|
|
141
|
+
width: 22px;
|
|
142
|
+
height: 22px;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
${s.media.maxWidth("mobile")} {
|
|
146
|
+
padding: 0 8px;
|
|
147
|
+
}
|
|
148
|
+
`,$n=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: ${s.radius.card};
|
|
156
|
+
background: ${s.colors.overlay};
|
|
157
|
+
color: ${s.colors.white};
|
|
158
|
+
font-family: ${s.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: ${s.colors.overlayHover};
|
|
170
|
+
}
|
|
171
|
+
&:focus-visible {
|
|
172
|
+
outline: 2px solid ${s.colors.softWhite};
|
|
173
|
+
outline-offset: 2px;
|
|
174
|
+
}
|
|
175
|
+
.ico {
|
|
176
|
+
width: 20px;
|
|
177
|
+
height: 20px;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
${s.media.maxWidth("mobile")} {
|
|
181
|
+
padding: 0 16px;
|
|
182
|
+
}
|
|
183
|
+
`,vn=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
|
+
`,Cn=r.a`
|
|
191
|
+
display: inline-flex;
|
|
192
|
+
align-items: center;
|
|
193
|
+
justify-content: center;
|
|
194
|
+
color: ${s.colors.softWhite};
|
|
195
|
+
transition: color 0.15s ease;
|
|
196
|
+
|
|
197
|
+
&:hover {
|
|
198
|
+
color: ${s.colors.navViolet};
|
|
199
|
+
}
|
|
200
|
+
.ico {
|
|
201
|
+
width: 15px;
|
|
202
|
+
height: 15px;
|
|
203
|
+
}
|
|
204
|
+
`,An=r.div`
|
|
205
|
+
display: flex;
|
|
206
|
+
align-items: center;
|
|
207
|
+
justify-content: space-between;
|
|
208
|
+
gap: 16px;
|
|
209
|
+
flex-wrap: wrap;
|
|
210
|
+
`,In=r.h2`
|
|
211
|
+
margin: 0;
|
|
212
|
+
font-family: ${s.font.sans};
|
|
213
|
+
font-size: 24px;
|
|
214
|
+
font-weight: 700;
|
|
215
|
+
line-height: 1.2;
|
|
216
|
+
color: ${s.colors.white};
|
|
217
|
+
`,Mn=r.div`
|
|
218
|
+
display: flex;
|
|
219
|
+
gap: 4px;
|
|
220
|
+
padding: 4px;
|
|
221
|
+
border-radius: ${s.radius.pill};
|
|
222
|
+
background: rgba(0, 0, 0, 0.22);
|
|
223
|
+
`,Wn=r.button`
|
|
224
|
+
border: 0;
|
|
225
|
+
cursor: pointer;
|
|
226
|
+
font-family: ${s.font.sans};
|
|
227
|
+
padding: 7px 15px;
|
|
228
|
+
border-radius: ${s.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: ${s.colors.softWhite};
|
|
239
|
+
}
|
|
240
|
+
&[aria-pressed='true'] {
|
|
241
|
+
background: ${s.colors.softWhite};
|
|
242
|
+
color: ${s.colors.text};
|
|
243
|
+
}
|
|
244
|
+
&:focus-visible {
|
|
245
|
+
outline: 2px solid ${s.colors.softWhite};
|
|
246
|
+
outline-offset: 2px;
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
@media (prefers-reduced-motion: reduce) {
|
|
250
|
+
transition: none;
|
|
251
|
+
}
|
|
252
|
+
`,Lt=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
|
+
${s.media.maxWidth("lg")} {
|
|
260
|
+
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
261
|
+
}
|
|
262
|
+
${s.media.maxWidth("mobile")} {
|
|
263
|
+
grid-template-columns: minmax(0, 1fr);
|
|
264
|
+
}
|
|
265
|
+
`,U=r.div`
|
|
266
|
+
background: ${s.colors.overlay};
|
|
267
|
+
color: ${s.colors.softWhite};
|
|
268
|
+
border-radius: ${s.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: ${s.colors.softWhite};
|
|
279
|
+
}
|
|
280
|
+
`,Z=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: ${s.font.sans};
|
|
289
|
+
font-size: 12px;
|
|
290
|
+
font-weight: 400;
|
|
291
|
+
line-height: 1;
|
|
292
|
+
letter-spacing: 1px;
|
|
293
|
+
text-transform: uppercase;
|
|
294
|
+
color: ${s.colors.gray4};
|
|
295
|
+
`,X=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
|
+
`,ee=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: ${s.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
|
+
`,Ln=r.span`
|
|
326
|
+
font-size: 20px;
|
|
327
|
+
font-weight: 600;
|
|
328
|
+
color: ${s.colors.gray4};
|
|
329
|
+
margin-right: -2px;
|
|
330
|
+
`,lt=r.span`
|
|
331
|
+
font-size: 15px;
|
|
332
|
+
font-weight: 600;
|
|
333
|
+
letter-spacing: 0;
|
|
334
|
+
color: ${s.colors.gray4};
|
|
335
|
+
`,te=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: ${s.font.sans};
|
|
343
|
+
font-size: 12px;
|
|
344
|
+
line-height: 1.35;
|
|
345
|
+
color: ${s.colors.gray4};
|
|
346
|
+
`,dt=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: ${s.colors.gray4};
|
|
355
|
+
border: 1px dashed ${s.colors.cardLine};
|
|
356
|
+
border-radius: ${s.radius.chip};
|
|
357
|
+
padding: 1px 5px;
|
|
358
|
+
`,K=r.section`
|
|
359
|
+
display: flex;
|
|
360
|
+
flex-direction: column;
|
|
361
|
+
gap: 12px;
|
|
362
|
+
padding: 16px;
|
|
363
|
+
background: ${s.colors.overlayLight};
|
|
364
|
+
color: ${s.colors.softWhite};
|
|
365
|
+
border-radius: ${s.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: ${s.colors.softWhite};
|
|
372
|
+
}
|
|
373
|
+
`,ge=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: ${s.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 Tn=r(Ps)`
|
|
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 ${s.colors.white};
|
|
397
|
+
border-radius: ${s.radius.btn};
|
|
398
|
+
color: ${s.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: ${s.colors.softWhite};
|
|
406
|
+
background: ${s.colors.glassFaint};
|
|
407
|
+
color: ${s.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: ${s.colors.softWhite} !important;
|
|
413
|
+
}
|
|
414
|
+
`,Pn=r.span`
|
|
415
|
+
font-family: ${s.font.sans};
|
|
416
|
+
font-size: 12px;
|
|
417
|
+
color: ${s.colors.gray4};
|
|
418
|
+
`,Tt="24px 56px minmax(170px, 1fr) minmax(236px, 1.34fr) minmax(140px, 1fr) minmax(140px, 1fr) minmax(150px, 1fr) 158px",Pt=r.div`
|
|
419
|
+
display: grid;
|
|
420
|
+
grid-template-columns: ${Tt};
|
|
421
|
+
align-items: center;
|
|
422
|
+
gap: 12px;
|
|
423
|
+
padding: 12px 24px 12px 12px;
|
|
424
|
+
min-width: min-content;
|
|
425
|
+
background: ${s.colors.overlayStrong};
|
|
426
|
+
border-radius: ${s.radius.card} ${s.radius.card} 0 0;
|
|
427
|
+
font-family: ${s.font.sans};
|
|
428
|
+
font-size: 14px;
|
|
429
|
+
color: ${s.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
|
+
${s.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 ${s.radius.card} ${s.radius.card};
|
|
464
|
+
}
|
|
465
|
+
`,_t=r.div`
|
|
466
|
+
display: grid;
|
|
467
|
+
grid-template-columns: ${Tt};
|
|
468
|
+
align-items: center;
|
|
469
|
+
gap: 12px;
|
|
470
|
+
padding: 12px 24px 12px 12px;
|
|
471
|
+
min-width: min-content;
|
|
472
|
+
background: ${s.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: ${s.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
|
+
${s.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
|
+
`,zn=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: ${s.radius.btn};
|
|
555
|
+
background: none;
|
|
556
|
+
cursor: pointer;
|
|
557
|
+
color: ${s.colors.gray4};
|
|
558
|
+
|
|
559
|
+
&:hover {
|
|
560
|
+
background: ${s.colors.glassFaint};
|
|
561
|
+
color: ${s.colors.softWhite};
|
|
562
|
+
}
|
|
563
|
+
&:focus-visible {
|
|
564
|
+
outline: 2px solid ${s.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
|
+
`,_n=r.span`
|
|
590
|
+
width: 56px;
|
|
591
|
+
height: 56px;
|
|
592
|
+
border-radius: ${s.radius.btn};
|
|
593
|
+
overflow: hidden;
|
|
594
|
+
background: ${s.colors.overlayLight};
|
|
595
|
+
`,Fn=r.span`
|
|
596
|
+
flex: none;
|
|
597
|
+
display: inline-flex;
|
|
598
|
+
align-items: center;
|
|
599
|
+
font-family: ${s.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: ${s.radius.pill};
|
|
606
|
+
color: ${s.colors.gray4};
|
|
607
|
+
background: ${s.colors.glassFaint};
|
|
608
|
+
`,En=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
|
+
`,Nn=r.span`
|
|
627
|
+
min-width: 0;
|
|
628
|
+
|
|
629
|
+
a {
|
|
630
|
+
display: block;
|
|
631
|
+
color: inherit;
|
|
632
|
+
text-decoration: none;
|
|
633
|
+
font-family: ${s.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
|
+
`,On=r.span`
|
|
645
|
+
display: block;
|
|
646
|
+
font-family: ${s.font.sans};
|
|
647
|
+
font-size: 12px;
|
|
648
|
+
color: ${s.colors.gray4};
|
|
649
|
+
overflow: hidden;
|
|
650
|
+
text-overflow: ellipsis;
|
|
651
|
+
white-space: nowrap;
|
|
652
|
+
`;r.span`
|
|
653
|
+
font-family: ${s.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: ${s.colors.gray4};
|
|
664
|
+
text-transform: uppercase;
|
|
665
|
+
letter-spacing: 0.04em;
|
|
666
|
+
}
|
|
667
|
+
|
|
668
|
+
${s.media.maxWidth("mobile")} {
|
|
669
|
+
display: none;
|
|
670
|
+
}
|
|
671
|
+
`;const Dn=r.span`
|
|
672
|
+
min-width: 0;
|
|
673
|
+
|
|
674
|
+
${s.media.maxWidth("mobile")} {
|
|
675
|
+
display: none;
|
|
676
|
+
}
|
|
677
|
+
`,ct=r.svg`
|
|
678
|
+
display: block;
|
|
679
|
+
width: 100%;
|
|
680
|
+
height: 34px;
|
|
681
|
+
`,Bn=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: ${s.colors.overlayStrong};
|
|
685
|
+
padding: 4px 24px 10px 48px;
|
|
686
|
+
|
|
687
|
+
${s.media.maxWidth("mobile")} {
|
|
688
|
+
padding-left: 32px;
|
|
689
|
+
}
|
|
690
|
+
`,Rn=r.div`
|
|
691
|
+
display: flex;
|
|
692
|
+
flex-wrap: wrap;
|
|
693
|
+
gap: 8px 26px;
|
|
694
|
+
padding: 12px 0 13px;
|
|
695
|
+
border-bottom: 1px solid ${s.colors.cardLine};
|
|
696
|
+
|
|
697
|
+
span {
|
|
698
|
+
display: flex;
|
|
699
|
+
align-items: baseline;
|
|
700
|
+
gap: 6px;
|
|
701
|
+
font-family: ${s.font.sans};
|
|
702
|
+
font-size: 11px;
|
|
703
|
+
font-weight: 600;
|
|
704
|
+
letter-spacing: 0.04em;
|
|
705
|
+
text-transform: uppercase;
|
|
706
|
+
color: ${s.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: ${s.colors.softWhite};
|
|
720
|
+
font-variant-numeric: tabular-nums;
|
|
721
|
+
}
|
|
722
|
+
`,Hn=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 ${s.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
|
+
${s.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
|
+
`,qn=r.span`
|
|
762
|
+
display: block;
|
|
763
|
+
width: 40px;
|
|
764
|
+
height: 40px;
|
|
765
|
+
border-radius: ${s.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: ${s.colors.white};
|
|
770
|
+
|
|
771
|
+
img {
|
|
772
|
+
width: 100%;
|
|
773
|
+
height: 100%;
|
|
774
|
+
object-fit: contain;
|
|
775
|
+
}
|
|
776
|
+
`,Un=r.span`
|
|
777
|
+
min-width: 0;
|
|
778
|
+
display: flex;
|
|
779
|
+
flex-direction: column;
|
|
780
|
+
gap: 2px;
|
|
781
|
+
`,Kn=r.span`
|
|
782
|
+
display: flex;
|
|
783
|
+
align-items: center;
|
|
784
|
+
gap: 6px;
|
|
785
|
+
min-width: 0;
|
|
786
|
+
`,Vn=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: ${s.font.sans};
|
|
794
|
+
font-size: 9px;
|
|
795
|
+
font-weight: 700;
|
|
796
|
+
letter-spacing: 0.02em;
|
|
797
|
+
text-transform: uppercase;
|
|
798
|
+
color: ${s.colors.softWhite};
|
|
799
|
+
`,Gn=r(ie)`
|
|
800
|
+
font-family: ${s.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
|
+
`,Yn=r.span`
|
|
813
|
+
font-family: ${s.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: ${s.colors.softWhite};
|
|
820
|
+
|
|
821
|
+
small {
|
|
822
|
+
color: ${s.colors.gray4};
|
|
823
|
+
font-weight: 500;
|
|
824
|
+
}
|
|
825
|
+
|
|
826
|
+
${s.media.maxWidth("mobile")} {
|
|
827
|
+
text-align: left;
|
|
828
|
+
}
|
|
829
|
+
`,Qn=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: ${s.colors.navViolet};
|
|
847
|
+
}
|
|
848
|
+
|
|
849
|
+
${s.media.maxWidth("mobile")} {
|
|
850
|
+
display: none;
|
|
851
|
+
}
|
|
852
|
+
`,Jn=r.span`
|
|
853
|
+
font-family: ${s.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: ${s.colors.gray4};
|
|
860
|
+
|
|
861
|
+
&[data-state='soldout'] {
|
|
862
|
+
color: ${s.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: ${s.colors.softWhite};
|
|
874
|
+
}
|
|
875
|
+
`,Zn=r.span`
|
|
876
|
+
display: flex;
|
|
877
|
+
flex-direction: column;
|
|
878
|
+
align-items: flex-end;
|
|
879
|
+
gap: 4px;
|
|
880
|
+
line-height: 1.25;
|
|
881
|
+
`,Xn=r.span`
|
|
882
|
+
font-size: 10px;
|
|
883
|
+
font-weight: 600;
|
|
884
|
+
letter-spacing: 0.04em;
|
|
885
|
+
text-transform: uppercase;
|
|
886
|
+
color: ${s.colors.gray4};
|
|
887
|
+
margin-right: 4px;
|
|
888
|
+
`,eo=r.span`
|
|
889
|
+
font-family: ${s.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: ${s.colors.gray4};
|
|
897
|
+
`,to=r.span`
|
|
898
|
+
font-family: ${s.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: ${s.colors.gray4};
|
|
906
|
+
font-variant-numeric: tabular-nums;
|
|
907
|
+
|
|
908
|
+
b {
|
|
909
|
+
color: ${s.colors.softWhite};
|
|
910
|
+
font-weight: 700;
|
|
911
|
+
}
|
|
912
|
+
&[data-out='true'] {
|
|
913
|
+
color: ${s.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 ${s.colors.cardLine};
|
|
922
|
+
`;r.span`
|
|
923
|
+
align-self: stretch;
|
|
924
|
+
border-radius: 2px;
|
|
925
|
+
background: ${s.colors.cardLine};
|
|
926
|
+
|
|
927
|
+
&[data-sev='act'] {
|
|
928
|
+
background: ${s.colors.dclRed};
|
|
929
|
+
}
|
|
930
|
+
&[data-sev='soon'] {
|
|
931
|
+
background: ${s.colors.flareAmber};
|
|
932
|
+
}
|
|
933
|
+
`;const ht=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: ${s.colors.gray4};
|
|
944
|
+
|
|
945
|
+
&:hover,
|
|
946
|
+
&:focus-visible {
|
|
947
|
+
color: ${s.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: ${s.font.sans};
|
|
958
|
+
font-size: 13px;
|
|
959
|
+
font-weight: 600;
|
|
960
|
+
}
|
|
961
|
+
span {
|
|
962
|
+
display: block;
|
|
963
|
+
margin-top: 2px;
|
|
964
|
+
font-family: ${s.font.sans};
|
|
965
|
+
font-size: 12px;
|
|
966
|
+
color: ${s.colors.gray4};
|
|
967
|
+
}
|
|
968
|
+
`;r(ie)`
|
|
969
|
+
display: inline-block;
|
|
970
|
+
margin-top: 4px;
|
|
971
|
+
font-family: ${s.font.sans};
|
|
972
|
+
font-size: 12px;
|
|
973
|
+
font-weight: 600;
|
|
974
|
+
color: ${s.colors.navViolet};
|
|
975
|
+
text-decoration: none;
|
|
976
|
+
|
|
977
|
+
&:hover,
|
|
978
|
+
&:focus-visible {
|
|
979
|
+
text-decoration: underline;
|
|
980
|
+
}
|
|
981
|
+
`;r.span`
|
|
982
|
+
font-family: ${s.font.sans};
|
|
983
|
+
font-size: 18px;
|
|
984
|
+
font-weight: 700;
|
|
985
|
+
font-variant-numeric: tabular-nums;
|
|
986
|
+
`;const Me=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: ${s.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: ${s.colors.overlayStrong};
|
|
1027
|
+
font-size: 14px;
|
|
1028
|
+
font-weight: 400;
|
|
1029
|
+
color: ${s.colors.softWhite};
|
|
1030
|
+
white-space: nowrap;
|
|
1031
|
+
}
|
|
1032
|
+
thead th:first-of-type {
|
|
1033
|
+
border-radius: ${s.radius.card} 0 0 0;
|
|
1034
|
+
}
|
|
1035
|
+
thead th:last-of-type {
|
|
1036
|
+
border-radius: 0 ${s.radius.card} 0 0;
|
|
1037
|
+
}
|
|
1038
|
+
tbody td {
|
|
1039
|
+
padding: 12px 18px;
|
|
1040
|
+
background: ${s.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 ${s.radius.card};
|
|
1047
|
+
}
|
|
1048
|
+
tbody tr:last-of-type td:last-of-type {
|
|
1049
|
+
border-radius: 0 0 ${s.radius.card} 0;
|
|
1050
|
+
}
|
|
1051
|
+
tbody tr:hover td {
|
|
1052
|
+
background: ${s.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: ${s.colors.gray4};
|
|
1062
|
+
font-variant-numeric: tabular-nums;
|
|
1063
|
+
white-space: nowrap;
|
|
1064
|
+
}
|
|
1065
|
+
`,pt=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
|
+
`,ut=r.span`
|
|
1083
|
+
flex: none;
|
|
1084
|
+
display: block;
|
|
1085
|
+
width: 32px;
|
|
1086
|
+
height: 32px;
|
|
1087
|
+
border-radius: ${s.radius.chip};
|
|
1088
|
+
overflow: hidden;
|
|
1089
|
+
/* Same rarity wash, same reason it needs a white base under it — see ItemThumb. */
|
|
1090
|
+
background-color: ${s.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
|
+
`,so=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
|
+
`,xt=r.span`
|
|
1130
|
+
flex: none;
|
|
1131
|
+
display: block;
|
|
1132
|
+
width: 24px;
|
|
1133
|
+
height: 24px;
|
|
1134
|
+
border-radius: 50%;
|
|
1135
|
+
background-color: ${s.colors.overlayLight};
|
|
1136
|
+
background-size: cover;
|
|
1137
|
+
background-position: center top;
|
|
1138
|
+
`,no=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
|
+
`,Ft=`
|
|
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: ${s.radius.btn};
|
|
1154
|
+
background: transparent;
|
|
1155
|
+
font-family: ${s.font.sans};
|
|
1156
|
+
font-size: 13px;
|
|
1157
|
+
font-weight: 600;
|
|
1158
|
+
letter-spacing: 0.46px;
|
|
1159
|
+
color: ${s.colors.softWhite};
|
|
1160
|
+
cursor: pointer;
|
|
1161
|
+
|
|
1162
|
+
&:hover:not(:disabled) {
|
|
1163
|
+
border-color: ${s.colors.softWhite};
|
|
1164
|
+
background: ${s.colors.glassFaint};
|
|
1165
|
+
}
|
|
1166
|
+
&:focus-visible {
|
|
1167
|
+
outline: 2px solid ${s.colors.softWhite};
|
|
1168
|
+
outline-offset: 2px;
|
|
1169
|
+
}
|
|
1170
|
+
&:disabled {
|
|
1171
|
+
opacity: 0.35;
|
|
1172
|
+
cursor: default;
|
|
1173
|
+
}
|
|
1174
|
+
`,ft=r.button`
|
|
1175
|
+
${Ft}
|
|
1176
|
+
`,oo=r.button`
|
|
1177
|
+
${Ft}
|
|
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: ${s.colors.softWhite};
|
|
1182
|
+
border-color: ${s.colors.softWhite};
|
|
1183
|
+
color: ${s.colors.text};
|
|
1184
|
+
cursor: default;
|
|
1185
|
+
}
|
|
1186
|
+
&[aria-current='page']:hover {
|
|
1187
|
+
background: ${s.colors.softWhite};
|
|
1188
|
+
color: ${s.colors.text};
|
|
1189
|
+
}
|
|
1190
|
+
`,ao=r.span`
|
|
1191
|
+
padding: 0 2px;
|
|
1192
|
+
font-family: ${s.font.sans};
|
|
1193
|
+
font-size: 12px;
|
|
1194
|
+
color: ${s.colors.gray4};
|
|
1195
|
+
`;r.span`
|
|
1196
|
+
display: inline-flex;
|
|
1197
|
+
align-items: center;
|
|
1198
|
+
gap: 2px;
|
|
1199
|
+
`;const io=r.span`
|
|
1200
|
+
font-size: 11px;
|
|
1201
|
+
font-weight: 700;
|
|
1202
|
+
letter-spacing: 0.04em;
|
|
1203
|
+
text-transform: uppercase;
|
|
1204
|
+
border-radius: ${s.radius.chip};
|
|
1205
|
+
padding: 2px 7px;
|
|
1206
|
+
white-space: nowrap;
|
|
1207
|
+
color: ${s.colors.gray4};
|
|
1208
|
+
background: ${s.colors.overlayLight};
|
|
1209
|
+
|
|
1210
|
+
&[data-kind='mint'] {
|
|
1211
|
+
color: ${s.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 ro=r.button`
|
|
1220
|
+
display: block;
|
|
1221
|
+
width: 100%;
|
|
1222
|
+
padding: 13px 18px;
|
|
1223
|
+
border: 0;
|
|
1224
|
+
border-top: 1px solid ${s.colors.cardLine};
|
|
1225
|
+
background: none;
|
|
1226
|
+
cursor: pointer;
|
|
1227
|
+
font-family: ${s.font.sans};
|
|
1228
|
+
font-size: 13px;
|
|
1229
|
+
font-weight: 600;
|
|
1230
|
+
color: ${s.colors.navViolet};
|
|
1231
|
+
|
|
1232
|
+
&:hover {
|
|
1233
|
+
background: ${s.colors.glassFaint};
|
|
1234
|
+
}
|
|
1235
|
+
&:focus-visible {
|
|
1236
|
+
outline: 2px solid ${s.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 ${s.colors.cardLine};
|
|
1245
|
+
`;r.p`
|
|
1246
|
+
margin: 0;
|
|
1247
|
+
font-family: ${s.font.sans};
|
|
1248
|
+
font-size: 11px;
|
|
1249
|
+
line-height: 1.45;
|
|
1250
|
+
color: ${s.colors.muted2};
|
|
1251
|
+
`;const Et=`
|
|
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
|
+
`,y=r.span`
|
|
1260
|
+
display: block;
|
|
1261
|
+
height: 12px;
|
|
1262
|
+
border-radius: 100px;
|
|
1263
|
+
${Et}
|
|
1264
|
+
`,lo=r.span`
|
|
1265
|
+
display: block;
|
|
1266
|
+
width: 40px;
|
|
1267
|
+
height: 40px;
|
|
1268
|
+
border-radius: ${s.radius.btn};
|
|
1269
|
+
${Et}
|
|
1270
|
+
`,gt=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: ${s.colors.overlayStrong};
|
|
1281
|
+
border-radius: ${s.radius.card} ${s.radius.card} 0 0;
|
|
1282
|
+
`,yt=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: ${s.colors.overlay};
|
|
1290
|
+
border-top: 2px solid transparent;
|
|
1291
|
+
background-clip: padding-box;
|
|
1292
|
+
|
|
1293
|
+
> *:last-child {
|
|
1294
|
+
justify-self: end;
|
|
1295
|
+
}
|
|
1296
|
+
`,ue=r.p`
|
|
1297
|
+
margin: 0;
|
|
1298
|
+
font-family: ${s.font.sans};
|
|
1299
|
+
font-size: 13px;
|
|
1300
|
+
color: ${s.colors.gray4};
|
|
1301
|
+
`,co=r(z)`
|
|
1302
|
+
width: 16px;
|
|
1303
|
+
height: 16px;
|
|
1304
|
+
`,We=r.span`
|
|
1305
|
+
display: inline-flex;
|
|
1306
|
+
align-items: center;
|
|
1307
|
+
gap: 4px;
|
|
1308
|
+
font-family: ${s.font.sans};
|
|
1309
|
+
font-size: 12px;
|
|
1310
|
+
font-weight: 600;
|
|
1311
|
+
line-height: 1.3;
|
|
1312
|
+
flex-wrap: wrap;
|
|
1313
|
+
color: ${s.colors.gray4};
|
|
1314
|
+
|
|
1315
|
+
&[data-dir='up'] {
|
|
1316
|
+
color: ${s.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: ${s.colors.gray4};
|
|
1327
|
+
}
|
|
1328
|
+
.delta__arrow {
|
|
1329
|
+
font-size: 10px;
|
|
1330
|
+
line-height: 1;
|
|
1331
|
+
}
|
|
1332
|
+
`,ho=r.div`
|
|
1333
|
+
margin: 10px 0 -4px;
|
|
1334
|
+
`,po=r.h2`
|
|
1335
|
+
margin: 0;
|
|
1336
|
+
font-family: ${s.font.sans};
|
|
1337
|
+
font-size: 19px;
|
|
1338
|
+
font-weight: 700;
|
|
1339
|
+
letter-spacing: -0.01em;
|
|
1340
|
+
color: ${s.colors.softWhite};
|
|
1341
|
+
`,uo=r.p`
|
|
1342
|
+
margin: 4px 0 0;
|
|
1343
|
+
font-family: ${s.font.sans};
|
|
1344
|
+
font-size: 13px;
|
|
1345
|
+
color: rgba(252, 252, 252, 0.62);
|
|
1346
|
+
`,mo=r.div`
|
|
1347
|
+
display: grid;
|
|
1348
|
+
grid-template-columns: repeat(auto-fit, minmax(210px, 300px));
|
|
1349
|
+
gap: 14px;
|
|
1350
|
+
align-items: start;
|
|
1351
|
+
|
|
1352
|
+
${s.media.maxWidth("mobile")} {
|
|
1353
|
+
grid-template-columns: minmax(0, 1fr);
|
|
1354
|
+
}
|
|
1355
|
+
`,xo=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
|
+
${s.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 Le=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
|
+
`,fo=r.span`
|
|
1394
|
+
font-family: ${s.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
|
+
`,go=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: ${s.font.sans};
|
|
1415
|
+
font-size: 12px;
|
|
1416
|
+
color: ${s.colors.gray4};
|
|
1417
|
+
text-align: center;
|
|
1418
|
+
`,yo=r.span`
|
|
1419
|
+
display: inline-flex;
|
|
1420
|
+
flex-wrap: wrap;
|
|
1421
|
+
justify-content: center;
|
|
1422
|
+
gap: 8px;
|
|
1423
|
+
`,bo=r(as)`
|
|
1424
|
+
align-self: center;
|
|
1425
|
+
gap: 4px;
|
|
1426
|
+
padding: 2px 4px;
|
|
1427
|
+
border: 0;
|
|
1428
|
+
border-radius: 6px;
|
|
1429
|
+
background: ${s.colors.saleTag};
|
|
1430
|
+
line-height: 20px;
|
|
1431
|
+
|
|
1432
|
+
b,
|
|
1433
|
+
span {
|
|
1434
|
+
font-size: 14px;
|
|
1435
|
+
line-height: 20px;
|
|
1436
|
+
}
|
|
1437
|
+
`,wo=r(Ss)`
|
|
1438
|
+
align-self: center;
|
|
1439
|
+
gap: 4px;
|
|
1440
|
+
padding: 4px 8px;
|
|
1441
|
+
border-radius: 6px;
|
|
1442
|
+
background: ${s.colors.glass};
|
|
1443
|
+
color: ${s.colors.white};
|
|
1444
|
+
|
|
1445
|
+
b {
|
|
1446
|
+
color: ${s.colors.white};
|
|
1447
|
+
font-size: 12px;
|
|
1448
|
+
line-height: 16px;
|
|
1449
|
+
}
|
|
1450
|
+
`,jo=r.span`
|
|
1451
|
+
color: ${s.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
|
+
`,Te=r.div`
|
|
1464
|
+
display: flex;
|
|
1465
|
+
align-items: center;
|
|
1466
|
+
justify-content: space-between;
|
|
1467
|
+
gap: 12px;
|
|
1468
|
+
font-family: ${s.font.sans};
|
|
1469
|
+
font-size: 13px;
|
|
1470
|
+
color: ${s.colors.gray4};
|
|
1471
|
+
|
|
1472
|
+
${s.media.maxWidth("mobile")} {
|
|
1473
|
+
flex-direction: column;
|
|
1474
|
+
align-items: stretch;
|
|
1475
|
+
}
|
|
1476
|
+
`,So=r.div`
|
|
1477
|
+
display: flex;
|
|
1478
|
+
align-items: center;
|
|
1479
|
+
justify-content: space-between;
|
|
1480
|
+
gap: 12px;
|
|
1481
|
+
|
|
1482
|
+
${s.media.maxWidth("mobile")} {
|
|
1483
|
+
flex-wrap: wrap;
|
|
1484
|
+
}
|
|
1485
|
+
`,ko=r.div`
|
|
1486
|
+
display: flex;
|
|
1487
|
+
align-items: center;
|
|
1488
|
+
gap: 10px;
|
|
1489
|
+
min-width: 0;
|
|
1490
|
+
`,$o=r(At)`
|
|
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 ${s.colors.white};
|
|
1498
|
+
border-radius: 12px;
|
|
1499
|
+
background: transparent;
|
|
1500
|
+
color: ${s.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: ${s.colors.glassFaint};
|
|
1508
|
+
color: ${s.colors.softWhite};
|
|
1509
|
+
}
|
|
1510
|
+
`,vo=r.span`
|
|
1511
|
+
display: inline-flex;
|
|
1512
|
+
align-items: center;
|
|
1513
|
+
justify-content: center;
|
|
1514
|
+
gap: 6px;
|
|
1515
|
+
font-family: ${s.font.sans};
|
|
1516
|
+
font-size: 14px;
|
|
1517
|
+
font-weight: 600;
|
|
1518
|
+
font-variant-numeric: tabular-nums;
|
|
1519
|
+
white-space: nowrap;
|
|
1520
|
+
`,Co=r.span`
|
|
1521
|
+
display: inline-flex;
|
|
1522
|
+
align-items: center;
|
|
1523
|
+
justify-content: flex-end;
|
|
1524
|
+
gap: 5px;
|
|
1525
|
+
font-family: ${s.font.sans};
|
|
1526
|
+
font-size: 13px;
|
|
1527
|
+
font-variant-numeric: tabular-nums;
|
|
1528
|
+
color: ${s.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
|
+
${s.media.maxWidth("lg")} {
|
|
1544
|
+
grid-template-columns: minmax(0, 1fr);
|
|
1545
|
+
}
|
|
1546
|
+
`,bt=r.p`
|
|
1547
|
+
margin: 2px 0 0;
|
|
1548
|
+
font-family: ${s.font.sans};
|
|
1549
|
+
font-size: 13px;
|
|
1550
|
+
color: ${s.colors.gray4};
|
|
1551
|
+
`,wt=r.div`
|
|
1552
|
+
display: flex;
|
|
1553
|
+
align-items: flex-start;
|
|
1554
|
+
justify-content: space-between;
|
|
1555
|
+
gap: 12px;
|
|
1556
|
+
`,Ao=r(ie)`
|
|
1557
|
+
display: inline-flex;
|
|
1558
|
+
align-items: center;
|
|
1559
|
+
gap: 6px;
|
|
1560
|
+
flex: none;
|
|
1561
|
+
color: ${s.colors.white};
|
|
1562
|
+
font-family: ${s.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: ${s.colors.navViolet};
|
|
1571
|
+
}
|
|
1572
|
+
`,jt=r.span`
|
|
1573
|
+
display: inline-block;
|
|
1574
|
+
min-width: 12px;
|
|
1575
|
+
font-weight: 700;
|
|
1576
|
+
font-variant-numeric: tabular-nums;
|
|
1577
|
+
color: ${s.colors.gray4};
|
|
1578
|
+
`,St=r.span`
|
|
1579
|
+
display: flex;
|
|
1580
|
+
align-items: center;
|
|
1581
|
+
gap: 12px;
|
|
1582
|
+
min-width: 0;
|
|
1583
|
+
`,Ot=`
|
|
1584
|
+
thead th,
|
|
1585
|
+
tbody td {
|
|
1586
|
+
padding-left: 12px;
|
|
1587
|
+
padding-right: 12px;
|
|
1588
|
+
}
|
|
1589
|
+
`,Io=r(De)`
|
|
1590
|
+
min-width: 500px;
|
|
1591
|
+
${Ot}
|
|
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
|
+
`,Mo=r(De)`
|
|
1606
|
+
min-width: 580px;
|
|
1607
|
+
${Ot}
|
|
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
|
+
`,Wo=r.span`
|
|
1625
|
+
display: flex;
|
|
1626
|
+
flex-direction: column;
|
|
1627
|
+
gap: 3px;
|
|
1628
|
+
min-width: 0;
|
|
1629
|
+
`,Lo=["7d","30d","all"],ye=8,be=5,Dt="shop.my-store.sort",To=["sold","selling","newest","name"];function Po(){try{const t=localStorage.getItem(Dt);return To.includes(t)?t:"sold"}catch{return"sold"}}function zo(t){try{localStorage.setItem(Dt,t)}catch{}}function _o(t,n){const o=[...t];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 kt(t,n,o){return se(`/item/${t}/${n}`,o)}function se(t,n){return n?`${t}${t.includes("?")?"&":"?"}env=${n}`:t}function Fo(t,n){if(n==null)return null;const o=t.minted-n;return o>0?o:null}const Eo={website:"website",twitter:"x-twitter",discord:"discord",facebook:"facebook"},we=5;function No(t,n){if(n<=5)return Array.from({length:n},(a,p)=>p);const o=[t-1,t,t+1].filter(a=>a>0&&a<n-1),l=[0];return o[0]>1&&l.push("gap"),l.push(...o),o[o.length-1]<n-2&&l.push("gap"),l.push(n-1),l}function Pe({page:t,pages:n,onChange:o,name:l}){return n<=1?null:e.jsxs(no,{"aria-label":i("myStore.pagination"),children:[e.jsx(ft,{type:"button",onClick:()=>o(Math.max(0,t-1)),disabled:t===0,"aria-label":i("myStore.prev"),"data-testid":`store-${l}-prev`,children:e.jsx(z,{name:"chevron-down",size:16,"aria-hidden":!0,style:{transform:"rotate(90deg)"}})}),No(t,n).map((a,p)=>a==="gap"?e.jsx(ao,{children:"…"},`gap-${p}`):e.jsx(oo,{type:"button","aria-current":a===t?"page":void 0,onClick:()=>o(a),"data-testid":`store-${l}-page-${a+1}`,children:(a+1).toLocaleString()},a)),e.jsx(ft,{type:"button",onClick:()=>o(Math.min(n-1,t+1)),disabled:t>=n-1,"aria-label":i("myStore.next"),"data-testid":`store-${l}-next`,children:e.jsx(z,{name:"chevron-down",size:16,"aria-hidden":!0,style:{transform:"rotate(-90deg)"}})})]})}function Oo(t,n,o){var b,L;const l={"7d":7,"30d":30,all:null}[n],a=$.useMemo(()=>Math.floor(Date.now()/864e5)*864e5+864e5-1,[]),p=l?a-l*864e5:void 0,x=O({queryKey:["store-sales-page",t,n,o],enabled:!!t,placeholderData:u=>u,queryFn:()=>Ns({seller:t,from:p},{first:we,skip:o*we})}),h=((b=x.data)==null?void 0:b.total)??0;return{rows:((L=x.data)==null?void 0:L.rows)??[],total:h,pages:Math.ceil(h/we)}}function $t(t){return O({queryKey:["store-buyers",t],enabled:t.length>0,staleTime:5*6e4,queryFn:()=>ws(t)})}function vt(t,n){var l;const o=(l=n==null?void 0:n.get(t.toLowerCase()))==null?void 0:l.name;return o?It(o):bs(t)}function Do(t){return V.previewHost&&t==="1"}const Bo=25000n;function Ro(t){return t*Bo/1000000n}function R(t){const n=Number(t/10n**14n)/1e4;return n>=10?Math.round(n).toLocaleString():n.toFixed(2)}function Ct(t){const n=Math.max(1,Math.round((Date.now()-t)/6e4));if(n<60)return i("myStore.agoMinutes",{n});const o=Math.round(n/60);return o<24?i("myStore.agoHours",{n:o}):i("myStore.agoDays",{n:Math.round(o/24)})}function Ho({series:t}){const n=$.useId(),o=Math.max(...t,0),l=t.length>1?92/(t.length-1):0,a=h=>o===0?27:27-h/o*22,x=t.map((h,b)=>`${(2+b*l).toFixed(1)} ${a(h).toFixed(1)}`).join(" L ");return o===0?e.jsx(ct,{viewBox:"0 0 96 30",role:"img","aria-label":i("myStore.trendNone"),children:e.jsx("path",{d:"M2 27 L94 27",fill:"none",stroke:s.colors.cardLine,strokeWidth:"2",strokeLinecap:"round"})}):e.jsxs(ct,{viewBox:"0 0 96 30",role:"img","aria-label":i("myStore.trendAria",{n:o}),children:[e.jsxs("defs",{children:[e.jsxs("linearGradient",{id:n,gradientUnits:"userSpaceOnUse",x1:"78.9",y1:"-19.5",x2:"35.3",y2:"40.4",children:[e.jsx("stop",{stopColor:s.colors.dclRed}),e.jsx("stop",{offset:"1",stopColor:s.colors.flareAmber})]}),e.jsxs("linearGradient",{id:`${n}-fill`,x1:"0",y1:"0",x2:"0",y2:"1",children:[e.jsx("stop",{offset:"0",stopColor:s.colors.dclRed,stopOpacity:"0.26"}),e.jsx("stop",{offset:"1",stopColor:s.colors.dclRed,stopOpacity:"0"})]})]}),e.jsx("path",{d:`M ${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 qo({collection:t,discount:n,savesByKey:o,open:l,onToggle:a,onManage:p,env:x}){var b,L;const h=`store-items-${t.contractAddress}`;return e.jsxs(e.Fragment,{children:[e.jsxs(_t,{"data-testid":"store-collection","data-exhausted":t.exhausted||void 0,children:[e.jsx(zn,{type:"button","aria-expanded":l,"aria-controls":h,"aria-label":i(l?"myStore.collapse":"myStore.expand",{name:t.name}),onClick:a,"data-testid":"store-collection-toggle",children:e.jsx(co,{name:"chevron-down",className:"ico","aria-hidden":!0})}),e.jsx(_n,{"data-testid":"store-collection-thumb",children:e.jsx(ms,{contractAddress:t.contractAddress})}),e.jsxs(Nn,{children:[e.jsxs(En,{children:[e.jsx(ie,{to:se(`/collection/${t.contractAddress}`,x),"data-testid":"store-collection-name",children:t.name}),t.exhausted?e.jsx(Fn,{"data-testid":"store-collection-soldout",children:i("myStore.collExhausted")}):null]}),e.jsxs(On,{children:[i("myStore.itemsCount",{count:t.items.length}),t.listed>0?` · ${i("myStore.listedCount",{count:t.listed})}`:"",!t.exhausted&&t.soldOut>0?` · ${i("myStore.soldOutCount",{count:t.soldOut})}`:""]})]}),e.jsx(go,{"data-testid":"store-collection-discount",children:n?e.jsxs(e.Fragment,{children:[e.jsxs(yo,{children:[e.jsx(bo,{pct:n.discount/1e4}),e.jsx(wo,{until:n.checks.expiration})]}),e.jsx(jo,{children:Is(n)?i("myStore.discountUsed",{used:((b=n.state)==null?void 0:b.uses)??0,total:n.checks.uses}):i("myStore.discountUsedUncapped",{used:((L=n.state)==null?void 0:L.uses)??0})})]}):i("myStore.noDiscountShort")}),e.jsxs(fo,{"data-testid":"store-collection-claimed",children:[t.claimed.toLocaleString(),e.jsxs("small",{children:["/",t.runTotal.toLocaleString()]})]}),e.jsxs(vo,{"data-testid":"store-collection-earned",children:[e.jsx(D,{kind:"mana"}),R(t.earningsWei)]}),e.jsx(Dn,{children:e.jsx(Ho,{series:t.trend})}),e.jsxs($o,{as:"a",href:`${V.builderUrl}/collections${t.collectionId?`/${t.collectionId}`:""}`,target:"_blank",rel:"noopener noreferrer",onClick:p,"data-testid":"store-manage",children:[i("myStore.manage"),e.jsx(z,{name:"external-link",size:14,"aria-hidden":!0})]})]}),l?e.jsxs(Bn,{id:h,"data-testid":"store-items",children:[e.jsxs(Rn,{"data-testid":"store-collection-stats",children:[e.jsxs("span",{children:[e.jsxs("b",{children:[e.jsx(D,{kind:"mana"}),R(t.earningsWei)]}),i("myStore.collEarned")]}),e.jsxs("span",{children:[e.jsx("b",{children:t.sold.toLocaleString()}),i("myStore.collSold")]}),e.jsxs("span",{children:[e.jsx("b",{children:t.items.length}),i("myStore.collItems",{count:t.items.length})]}),e.jsxs("span",{children:[e.jsx("b",{children:t.listed+t.classic}),i("myStore.collListed")]})]}),t.items.map(u=>{const P=Fo(u,u.lifetimeSold);return e.jsxs(Hn,{"data-testid":"store-item",children:[e.jsx(qn,{style:{backgroundImage:Fe(u.rarity)},children:u.thumbnail?e.jsx("img",{src:u.thumbnail,alt:"",loading:"lazy"}):null}),e.jsxs(Un,{children:[e.jsx(Gn,{to:se(`/item/${t.contractAddress}/${u.itemId}`,x),title:u.name,children:u.name}),e.jsxs(Kn,{children:[e.jsx(Vn,{style:{background:gs(u.rarity)},title:fs(u.rarity),children:xs(u.rarity)}),e.jsx(Jn,{"data-state":u.state,children:u.state==="soldout"?null:u.state==="unlisted"?i("myStore.stateUnlisted"):u.state==="unknown"?i("myStore.stateUnknown"):e.jsxs(e.Fragment,{children:[e.jsx(Xn,{children:i("myStore.onSaleFor")}),u.manaWei?e.jsxs(e.Fragment,{children:[e.jsx(D,{kind:"mana"}),R(_(u.manaWei))]}):e.jsxs(e.Fragment,{children:[e.jsx(D,{kind:"credits"}),e.jsx(ys,{credits:u.priceCredits??0})]})]})})]})]}),e.jsxs(Yn,{children:[u.sold.toLocaleString(),e.jsxs("small",{children:[" ",i("myStore.sold")]})]}),e.jsxs(Co,{"data-testid":"store-item-saves",title:i("myStore.savesHint",{count:o.get(u.key)??0}),children:[e.jsx(z,{name:"heart",className:"ico","aria-hidden":!0}),(o.get(u.key)??0).toLocaleString()]}),e.jsx(Qn,{role:"progressbar","aria-valuemin":0,"aria-valuemax":u.minted+u.left,"aria-valuenow":u.minted,"aria-label":i("myStore.runAria",{minted:u.minted,total:u.minted+u.left}),children:e.jsx("i",{style:{width:`${Math.round(u.minted/Math.max(1,u.minted+u.left)*100)}%`}})}),e.jsxs(Zn,{title:u.lifetimeSold==null?void 0:i("myStore.runBreakdown",{total:u.minted+u.left,sold:u.lifetimeSold,sent:u.minted-u.lifetimeSold,left:u.left}),children:[e.jsx(to,{"data-out":u.left===0,"data-testid":"store-item-stock",children:Mt(u.left===0?"myStore.stockNone":"myStore.stockLeft",{b:I=>e.jsx("b",{children:I}),left:u.left.toLocaleString(),total:(u.minted+u.left).toLocaleString()})}),P?e.jsx(eo,{"data-testid":"store-item-issued",children:i("myStore.sentDirectly",{count:P.toLocaleString()})}):null]})]},u.key)})]}):null]})}function ze(t){return!!t&&!(t.current===0&&t.previous===0)}function _e({delta:t,period:n}){if(!t||t.current===0&&t.previous===0)return null;const o=n==="all"?"":i(`myStore.vs${n}`);if(t.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(t.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 Uo(){return e.jsxs("div",{"data-testid":"store-skeleton","aria-hidden":!0,children:[e.jsx(Lt,{children:[0,1,2,3].map(t=>e.jsxs(U,{children:[e.jsx(y,{style:{width:"46%"}}),e.jsx(y,{style:{width:"32%",height:38}}),e.jsx(y,{style:{width:"64%",height:15}})]},t))}),e.jsxs(K,{style:{marginTop:22},children:[e.jsxs(ge,{children:[e.jsx(y,{style:{width:96,height:14}}),e.jsx(y,{style:{width:120}})]}),e.jsxs(zt,{children:[e.jsxs(Pt,{"aria-hidden":!0,children:[e.jsx("span",{}),e.jsx("span",{}),e.jsx(y,{style:{width:84,height:12}}),e.jsx(y,{style:{width:74,height:12}}),e.jsx(y,{style:{width:62,height:12}}),e.jsx(y,{style:{width:68,height:12}}),e.jsx(y,{style:{width:82,height:12}}),e.jsx(y,{style:{width:60,height:12}})]}),Array.from({length:ye},(t,n)=>e.jsxs(_t,{children:[e.jsx("span",{}),e.jsx(lo,{}),e.jsx(y,{style:{width:"82%",height:14}}),e.jsx(y,{style:{width:"70%",height:20}}),e.jsx(y,{style:{width:72}}),e.jsx(y,{style:{width:76}}),e.jsx(y,{style:{height:20}}),e.jsx(y,{style:{width:96,height:32,borderRadius:8}})]},n))]}),e.jsx(ro,{as:"div",children:e.jsx(y,{style:{width:150,height:13,margin:"0 auto"}})})]}),e.jsx(Nt,{style:{marginTop:22},children:[0,1].map(t=>e.jsxs(K,{children:[e.jsxs(ge,{children:[e.jsx(y,{style:{width:110,height:14}}),e.jsx(y,{style:{width:80}})]}),e.jsx(gt,{children:[0,1,2,3].map(n=>e.jsx(y,{style:{width:46,height:9}},n))}),Array.from({length:we},(n,o)=>e.jsxs(yt,{children:[e.jsx(y,{style:{width:"38%"}}),e.jsx(y,{style:{width:"24%"}}),e.jsx(y,{style:{width:56}}),e.jsx(y,{style:{width:64}})]},o))]},t))}),e.jsxs(K,{style:{marginTop:22},children:[e.jsxs(ge,{children:[e.jsx(y,{style:{width:104,height:14}}),e.jsx(y,{style:{width:90}})]}),e.jsx(gt,{children:[0,1,2,3,4].map(t=>e.jsx(y,{style:{width:46,height:9}},t))}),Array.from({length:be},(t,n)=>e.jsxs(yt,{children:[e.jsx(y,{style:{width:"30%"}}),e.jsx(y,{style:{width:"18%"}}),e.jsx(y,{style:{width:72,height:18}}),e.jsx(y,{style:{width:"14%"}}),e.jsx(y,{style:{width:54}})]},n))]})]})}function pa(){var Xe,et;is({title:i("myStore.title"),noindex:!0});const{session:t,error:n,signIn:o}=rs(),[l]=Jt(),[a,p]=$.useState("30d"),[x,h]=$.useState(()=>new Set),[b,L]=$.useState(0),[u,P]=$.useState(0),[I,F]=$.useState(!1),[T,E]=$.useState(Po),[B,ne]=$.useState(0),[N,G]=$.useState(!1),q=ls(),Y=ds(),w=Do(l.get("mock")),v=l.get("env"),W=Zt("/").replace(/\/$/,""),c=d=>`${W}${d}`,f=w;function g(d,S={}){f||us(d,S)}const{data:j}=cs(t==null?void 0:t.address),k=t==null?void 0:t.address,{data:M}=Ws(k),Be=Ls.filter(d=>M==null?void 0:M.links[d]),Re=(et=(Xe=j==null?void 0:j.avatar)==null?void 0:Xe.snapshots)==null?void 0:et.face256,He=j!=null&&j.name?It(j.name):null,{stats:Bt,trend:qe,savesByKey:Rt,saleable:Ue,isLoading:Ht,error:qt}=tn(t,a),m=w?Oe:Bt,A=w?{...qe,collectors:ln,buyers:dn}:qe,Ut=w?!1:Ht,Kt=w?hn:Rt,je=Oo(t==null?void 0:t.address,a,u),re=w?un:je.rows,Vt=$.useMemo(()=>[...new Set(re.map(d=>d.buyer.toLowerCase()))].sort(),[re]),{data:le,isLoading:Gt}=$t(Vt),Se=Math.max(1,Math.ceil(A.buyers.length/be)),de=Math.min(B,Se-1),ke=$.useMemo(()=>A.buyers.slice(de*be,(de+1)*be),[A.buyers,de]),Yt=$.useMemo(()=>ke.map(d=>d.address).sort(),[ke]),{data:ce}=$t(Yt),{data:Qt}=vs(t==null?void 0:t.address,q&&!!t),Ke=((m==null?void 0:m.collections)??[]).some(d=>d.exhausted),$e=T==="selling"&&!Ke?"sold":T,Ve=Math.max(1,Math.ceil(((m==null?void 0:m.collections.length)??0)/ye)),Ge=$.useMemo(()=>_o((m==null?void 0:m.collections)??[],$e),[m,$e]),ve=$.useMemo(()=>Us((m==null?void 0:m.collections)??[]),[m]),he=Math.min(b,Ve-1),Ye=$.useMemo(()=>Ge.slice(he*ye,(he+1)*ye),[Ge,he]);if(Y==="off")return e.jsx(Xt,{to:"/",replace:!0});if(!t&&!w)return e.jsxs(hs,{children:[e.jsx(ps,{testId:"my-store-signin",icon:Ts,title:i("myStore.signInTitle"),body:i("myStore.signInBody"),cta:{label:i("storeSettings.signIn"),onClick:()=>o()},ctaVariant:"solid",fill:!0}),e.jsx(nt,{message:n})]});const Qe=w?cn:Qt,Ce=new Map;for(const d of Qe??[])if(!(d.status!=="active"&&d.status!=="scheduled"))for(const S of d.collections)Ce.set(S.toLowerCase(),d);const Je=(Qe??[]).filter(d=>d.status==="active"||d.status==="scheduled"),Ze=a==="7d"?7:a==="30d"?30:null,Ae=((m==null?void 0:m.collections)??[]).reduce((d,S)=>d+S.items.length,0);return e.jsx(zs,{children:e.jsx(_s,{children:e.jsxs(mn,{"data-testid":"my-store",children:[I&&t?e.jsx(Cs,{session:t,collections:Ue,onClose:()=>F(!1),source:"my_store",silent:f}):null,e.jsxs(xn,{children:[e.jsxs(fn,{children:[e.jsx(yn,{style:Re?{backgroundImage:`url(${Re})`}:void 0,"data-testid":"store-avatar","aria-hidden":!0}),e.jsxs(gn,{children:[He?e.jsx(bn,{children:He}):null,e.jsxs(jn,{children:[e.jsx(wn,{children:i("myStore.title")}),m?e.jsxs(rt,{children:[i("myStore.summary",{collections:m.collections.length,items:Ae}),Be.length>0?e.jsx(vn,{"data-testid":"store-socials",children:Be.map(d=>e.jsx(Cn,{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(z,{name:Eo[d],className:"ico","aria-hidden":!0})},d))}):null]}):e.jsx(rt,{children:e.jsx(y,{style:{width:170,background:"rgba(252, 252, 252, 0.18)",animation:"none"}})})]})]})]}),e.jsxs(Sn,{children:[k?e.jsxs(kn,{href:c(se(`/items/creator/${k}`,v)),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(z,{name:"external-link",className:"ico","aria-hidden":!0})]}):null,e.jsxs($n,{to:se("/store-settings",v),state:{from:"/my-store"},onClick:()=>g("Shop Clicked Store Action",{action:"edit_store"}),"data-testid":"store-edit",children:[e.jsx(z,{name:"pen",className:"ico","aria-hidden":!0}),i("myStore.editStore")]})]})]}),e.jsxs(An,{children:[e.jsx(In,{children:i("myStore.performance")}),e.jsx(Mn,{role:"group","aria-label":i("myStore.period"),children:Lo.map(d=>e.jsx(Wn,{type:"button","aria-pressed":a===d,onClick:()=>{d!==a&&g("Shop Changed Store Period",{period:d,previous_period:a}),p(d),P(0)},"data-testid":`store-period-${d}`,children:i(`myStore.period${d}`)},d))})]}),e.jsx(nt,{message:qt?i("myStore.error"):null,testId:"my-store-error"}),Ut||!m?e.jsx(Uo,{}):e.jsxs(e.Fragment,{children:[e.jsxs(Lt,{"aria-label":i("myStore.summaryAria"),children:[e.jsxs(U,{children:[e.jsxs(Z,{children:[i("myStore.tileSold"),e.jsx(X,{"aria-hidden":!0,children:"🛍️"})]}),e.jsx(ee,{children:e.jsx("span",{"data-testid":"store-sold",children:m.sold.toLocaleString()})}),e.jsxs(te,{children:[e.jsx(_e,{delta:A.sold,period:a}),!ze(A.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(U,{children:[e.jsxs(Z,{children:[i("myStore.tileEarnings"),e.jsx(X,{"aria-hidden":!0,children:"💰"})]}),e.jsxs(ee,{children:[e.jsx(D,{kind:"mana"}),R(m.earningsWei),e.jsx(lt,{children:i("myStore.manaUnit")})]}),e.jsxs(te,{children:[e.jsx(_e,{delta:A.earnings,period:a}),m.partial?e.jsxs(e.Fragment,{children:[e.jsx(dt,{children:i("myStore.estimate")})," ",i("myStore.tileEarningsPartial")]}):ze(A.earnings)?null:i("myStore.tileEarningsFoot")]})]}),e.jsxs(U,{children:[e.jsxs(Z,{children:[i("myStore.tileListed"),e.jsx(X,{"aria-hidden":!0,children:"🏷️"})]}),e.jsxs(ee,{children:[m.listed+m.classic,e.jsx(lt,{children:i("myStore.ofTotal",{n:Ae})})]}),e.jsx(te,{children:Ae===0?i("myStore.tileListedNone"):i("myStore.tileListedFoot",{count:m.neverListed})})]}),e.jsxs(U,{children:[e.jsxs(Z,{children:[i("myStore.tileDiscounts"),e.jsx(X,{"aria-hidden":!0,children:"🔥"})]}),e.jsx(ee,{"data-testid":"store-discounts",children:Je.length}),e.jsx(te,{children:Je.length>0?i("myStore.tileDiscountsFoot"):i("myStore.tileDiscountsNone")})]})]}),m.classic>0&&!N?e.jsx(As,{count:m.classic,reason:"discounts",to:se("/activity?section=listings",v),onDismiss:()=>{g("Shop Clicked Store Action",{action:"dismiss_pricing_banner",classic_items:m.classic}),G(!0)},onCta:()=>g("Shop Clicked Store Action",{action:"update_prices",classic_items:m.classic})}):null,e.jsxs(K,{"aria-labelledby":"store-coll-h",children:[e.jsxs(So,{children:[e.jsx(pe,{id:"store-coll-h",children:i("myStore.collectionsCount",{count:m.collections.length})}),e.jsxs(ko,{children:[m.collections.length>1?e.jsx(Tn,{options:[{value:"sold",label:i("myStore.sortSold")},...Ke?[{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:$e,onChange:d=>{g("Shop Sorted Store Collections",{sort:d}),E(d),zo(d)},align:"right",ariaLabel:i("myStore.sortBy"),className:"store-sort"}):null,w||q&&t&&Ue.length>0?e.jsxs(At,{variant:"red",size:"sm",onClick:()=>F(!0),"data-testid":"store-new-discount",children:[e.jsx("span",{"aria-hidden":!0,children:"🔥"}),i("myStore.newDiscount")]}):null]})]}),m.collections.length===0?e.jsx(ue,{children:i("myStore.noCollections")}):e.jsx(e.Fragment,{children:e.jsxs(zt,{children:[e.jsxs(Pt,{"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:Ze?i("myStore.colTrend",{days:Ze}):i("myStore.colTrendAll")}),e.jsx("span",{children:i("myStore.colActions")})]}),Ye.map(d=>e.jsx(qo,{collection:d,discount:Ce.get(d.contractAddress)??null,savesByKey:Kt,env:v,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:Ce.has(d.contractAddress)}),h(S=>{const C=new Set(S);return C.delete(d.contractAddress)||C.add(d.contractAddress),C})},onManage:()=>g("Shop Clicked Store Action",{action:"manage_collection",contract_address:d.contractAddress})},d.contractAddress))]})}),m.collections.length>0?e.jsxs(Te,{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(Pe,{page:he,pages:Ve,onChange:d=>{g("Shop Paged Store Table",{table:"collections",page:d+1}),L(d)},name:"collections"})]}):null]}),e.jsxs(Nt,{children:[e.jsxs(K,{"aria-labelledby":"store-best-h",children:[e.jsx(wt,{children:e.jsxs("div",{children:[e.jsx(pe,{id:"store-best-h",children:i("myStore.bestSellers")}),e.jsxs(bt,{children:[i("myStore.bestSellersSub",{n:ve.length}),m.breakdownPartial?e.jsxs(e.Fragment,{children:[" · ",i("myStore.soldPartial",{n:m.fetched.toLocaleString()})]}):null]})]})}),ve.length===0?e.jsx(ue,{children:i("myStore.noBestSellers")}):e.jsx(Me,{children:e.jsxs(Io,{children:[e.jsx("thead",{children:e.jsxs("tr",{children:[e.jsx("th",{scope:"col",children:e.jsxs(St,{children:[e.jsx(jt,{"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:ve.map((d,S)=>e.jsxs("tr",{"data-testid":"store-best",children:[e.jsx("td",{children:e.jsxs(St,{children:[e.jsx(jt,{children:S+1}),e.jsxs(pt,{as:"a",href:c(kt(d.contractAddress,d.itemId,v)),target:"_blank",rel:"noopener noreferrer",onClick:()=>g("Shop Clicked Store Action",{action:"open_item",table:"best_sellers",rank:S+1}),"data-testid":"store-best-item",children:[e.jsx(ut,{style:{backgroundImage:Fe(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(Le,{children:[e.jsx(D,{kind:"mana"}),R(d.earnedWei)]})})]},d.key))})]})})]}),e.jsxs(K,{"aria-labelledby":"store-feed-h",children:[e.jsxs(wt,{children:[e.jsxs("div",{children:[e.jsx(pe,{id:"store-feed-h",children:i("myStore.recentSales")}),e.jsx(bt,{children:i("myStore.recentSalesSub")})]}),e.jsxs(Ao,{to:"/activity",onClick:()=>g("Shop Clicked Store Action",{action:"view_all_sales"}),children:[i("myStore.viewAll"),e.jsx(z,{name:"arrow-up-right",size:14,"aria-hidden":!0})]})]}),re.length===0?e.jsx(ue,{children:i("myStore.noSales")}):e.jsx(Me,{children:e.jsxs(Mo,{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 tt,st;const S=m.collections.find(Ie=>Ie.contractAddress===d.contractAddress.toLowerCase()),C=S==null?void 0:S.items.find(Ie=>Ie.itemId===d.itemId),Q=le==null?void 0:le.get(d.buyer.toLowerCase()),oe=(st=(tt=Q==null?void 0:Q.avatar)==null?void 0:tt.snapshots)==null?void 0:st.face256;return e.jsxs("tr",{"data-testid":"store-sale",children:[e.jsx("td",{children:e.jsxs(pt,{as:d.itemId?"a":"span",...d.itemId?{href:c(kt(d.contractAddress,d.itemId,v)),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(ut,{style:{backgroundImage:Fe(C==null?void 0:C.rarity)},children:C!=null&&C.thumbnail?e.jsx("img",{src:C.thumbnail,alt:"",loading:"lazy"}):null}),e.jsxs(Wo,{children:[e.jsx("span",{children:(C==null?void 0:C.name)??(S==null?void 0:S.name)??d.itemId??i("myStore.unknownItem")}),e.jsx(me,{content:i("myStore.kindHint"),children:e.jsx(io,{"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:(S==null?void 0:S.name)??"—"}),e.jsx("td",{"data-money":!0,children:e.jsxs(Le,{children:[e.jsx(D,{kind:"mana"}),R(_(d.price))]})}),e.jsx("td",{children:Gt?e.jsxs(so,{"aria-hidden":!0,children:[e.jsx("i",{}),e.jsx("b",{})]}):e.jsxs(mt,{href:`${V.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(xt,{style:oe?{backgroundImage:`url(${oe})`}:void 0,"aria-hidden":!0}),vt(d.buyer,le)]})}),e.jsx("td",{"data-dim":!0,children:Ct(d.timestamp)})]},d.id)})})]})}),je.pages>1?e.jsxs(Te,{children:[e.jsx("span",{}),e.jsx(Pe,{page:u,pages:je.pages,onChange:d=>{g("Shop Paged Store Table",{table:"recent_sales",page:d+1}),P(d)},name:"sales"})]}):null]})]}),e.jsxs(ho,{children:[e.jsx(po,{id:"store-audience-h",children:i("myStore.audience")}),e.jsx(uo,{children:i("myStore.audienceSub")})]}),e.jsxs(mo,{children:[e.jsxs(U,{children:[e.jsxs(Z,{children:[e.jsxs("span",{children:[i("myStore.tileCollectors"),e.jsx(me,{content:i("myStore.collectorsHint"),children:e.jsx(ht,{type:"button","aria-label":i("myStore.tileCollectors"),"data-testid":"store-collectors-hint",children:e.jsx(z,{name:"info",className:"ico","aria-hidden":!0})})})]}),e.jsx(X,{"aria-hidden":!0,children:"👥"})]}),e.jsx(ee,{"data-testid":"store-collectors",children:A.collectors.total.toLocaleString()}),e.jsx(te,{children:A.collectors.total===0?i("myStore.tileCollectorsNone"):e.jsxs(e.Fragment,{children:[m.breakdownPartial?e.jsxs(e.Fragment,{children:[e.jsx(dt,{children:i("myStore.estimate")})," "]}):null,A.collectors.topSharePct>=50?i("myStore.tileCollectorsConcentrated",{pct:Math.floor(A.collectors.topSharePct)}):i("myStore.tileCollectorsFoot",{repeat:A.collectors.repeat,pct:Math.round(A.collectors.repeatPct)})]})})]}),m.royalties?e.jsxs(U,{children:[e.jsxs(Z,{children:[e.jsxs("span",{children:[i("myStore.tileRoyalties"),e.jsx(me,{content:i("myStore.royaltiesHint"),children:e.jsx(ht,{type:"button","aria-label":i("myStore.tileRoyalties"),"data-testid":"store-royalties-hint",children:e.jsx(z,{name:"info",className:"ico","aria-hidden":!0})})})]}),e.jsx(X,{"aria-hidden":!0,children:"🔁"})]}),e.jsxs(ee,{"data-testid":"store-royalties",children:[e.jsx(Ln,{children:"≈"}),e.jsx(D,{kind:"mana"}),R(Ro(m.royalties.volumeWei))]}),e.jsxs(te,{children:[e.jsx(_e,{delta:A.royalties,period:a}),ze(A.royalties)?null:e.jsx("span",{children:Mt("myStore.tileRoyaltiesFoot",{m:d=>e.jsxs(e.Fragment,{children:[e.jsx(D,{kind:"mana"}),d]}),count:m.royalties.resales,volume:R(m.royalties.volumeWei)})})]})]}):null]}),e.jsxs(K,{"aria-labelledby":"store-buyers-h",children:[e.jsxs(ge,{children:[e.jsx(pe,{id:"store-buyers-h",children:i("myStore.buyers")}),e.jsx(Pn,{children:i("myStore.buyersHint")})]}),A.buyers.length===0?e.jsx(ue,{"data-testid":"store-buyers-none",children:i("myStore.noBuyers")}):e.jsx(Me,{children:e.jsxs(xo,{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:ke.map(d=>{var C,Q,oe;const S=(oe=(Q=(C=ce==null?void 0:ce.get(d.address))==null?void 0:C.avatar)==null?void 0:Q.snapshots)==null?void 0:oe.face256;return e.jsxs("tr",{"data-testid":"store-buyer",children:[e.jsx("td",{children:e.jsxs(mt,{href:`${V.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(xt,{style:S?{backgroundImage:`url(${S})`}:void 0,"aria-hidden":!0}),vt(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:Ct(d.lastAt)}),e.jsx("td",{"data-money":!0,children:e.jsxs(Le,{children:[e.jsx(D,{kind:"mana"}),R(d.spentWei)]})})]},d.address)})})]})}),Se>1?e.jsxs(Te,{children:[e.jsx("span",{}),e.jsx(Pe,{page:de,pages:Se,onChange:d=>{g("Shop Paged Store Table",{table:"buyers",page:d+1}),ne(d)},name:"buyers"})]}):null]})]})]})})})}export{pa as MyStore,pa as default};
|
|
1630
|
+
//# sourceMappingURL=MyStore-SSChApNZ.js.map
|