@dcl/shop 1.17.2-36152359068.commit-47bab5a → 1.17.2-36157867735.commit-7431f7b
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-B-tcMJAJ.js → Activity-CE6Jeo_T.js} +4 -4
- package/_assets/{AnimatedBackground-DK3QLOJ2.js → AnimatedBackground-D5MFl62Y.js} +6 -6
- package/_assets/{Assets-Dn9STriB.js → Assets-COp5lo1c.js} +3 -3
- package/_assets/{Cart-CII8Xe0D.js → Cart-CXTYKHB4.js} +2 -2
- package/_assets/{Collection-B5VerJez.js → Collection-D6GAA887.js} +2 -2
- package/_assets/{CollectionCarousel-UPeRXz9b.js → CollectionCarousel-C_r2HthR.js} +3 -3
- package/_assets/{Confetti-Cw8f6Wn9.js → Confetti-DPZN6qJi.js} +4 -4
- package/_assets/{ConstantsUtil-BMmlkMBY.js → ConstantsUtil-C6ody29O.js} +2 -2
- package/_assets/{ContentClient-WoaFsbEW.js → ContentClient-C03rRrUz.js} +2 -2
- package/_assets/{Creator-DFNZWETP.js → Creator-Chq_3FKW.js} +2 -2
- package/_assets/{CreditPackPicker-BqGavVgR.js → CreditPackPicker-yPm96IIv.js} +2 -2
- package/_assets/{CreditRate-vLOKKh_P.js → CreditRate-BxqKLfaA.js} +2 -2
- package/_assets/{DeploymentBuilder-CWlRoHld.js → DeploymentBuilder-B2QubYgD.js} +2 -2
- package/_assets/{EmotePlaybackBar-q13HrLFU.js → EmotePlaybackBar-Cp9UGu_L.js} +3 -3
- package/_assets/{ErrorNotice-CbW4Q2ZV.js → ErrorNotice-D_6j8-7f.js} +2 -2
- package/_assets/{Event-X3zYhRwD.js → Event-v8GnBTyC.js} +2 -2
- package/_assets/{ExchangeController-cIXkyf4H.js → ExchangeController-CE3cQOVu.js} +2 -2
- package/_assets/{Faq-iPufE4Ki.js → Faq-Dfduj2eM.js} +2 -2
- package/_assets/{Filters-rmYRG9Xu.js → Filters-CdMOVmbU.js} +2 -2
- package/_assets/{GetCredits-CwEq6zsX.js → GetCredits-BS--XoK-.js} +2 -2
- package/_assets/{Grow-BuqjElXH.js → Grow-CPeuefrF.js} +2 -2
- package/_assets/{HelpersUtil-CS8EBJH9.js → HelpersUtil-B_SruwGa.js} +2 -2
- package/_assets/{IssueModal-C8pY_CjA.js → IssueModal-D_PS_2Xk.js} +2 -2
- package/_assets/{ItemDetail-BcjDWr54.js → ItemDetail-DBAHPIQO.js} +2 -2
- package/_assets/{LoadMore-BOdt5RfM.js → LoadMore-CM5ykem-.js} +2 -2
- package/_assets/{ManaPricingBanner-CaOs1iNT.js → ManaPricingBanner-CZzRxND3.js} +2 -2
- package/_assets/{ManaPricingBanner.styles-DLFrScDr.js → ManaPricingBanner.styles-B10EKkra.js} +2 -2
- package/_assets/{MyAssets-C5JLt3AZ.js → MyAssets-Fhl2lazZ.js} +2 -2
- package/_assets/{MyFavorites-BUNoJkIc.js → MyFavorites-DqyQ-SFM.js} +2 -2
- package/_assets/{MyStore-D-R3YVGj.js → MyStore-B5e7oQJa.js} +116 -116
- package/_assets/{NetworkUtil-r4ZB1Agx.js → NetworkUtil-iL8rkdmy.js} +2 -2
- package/_assets/{NotFound-BlzZI2Ql.js → NotFound-sBVYlhk3.js} +2 -2
- package/_assets/{NotificationsBell-vli38TDJ.js → NotificationsBell-TdDjFO5P.js} +2 -2
- package/_assets/{OutfitDetail-1jGClsB_.js → OutfitDetail-BBsCNaaP.js} +2 -2
- package/_assets/{OutfitPreview-VgWQZ9ov.js → OutfitPreview-BTJ-IIEH.js} +2 -2
- package/_assets/{OutfitStudio-BkgXlCW4.js → OutfitStudio-DXHZfbf9.js} +2 -2
- package/_assets/{PaymentMethodStep-BDIZKceq.js → PaymentMethodStep-Ob8YI_SL.js} +3 -3
- package/_assets/{SaleCountdown-BT87OARJ.js → SaleCountdown-KX9dNqTp.js} +2 -2
- package/_assets/{Spinner-BZ99cc63.js → Spinner-DKskpIEZ.js} +2 -2
- package/_assets/{StoreSettings-Di1kFuez.js → StoreSettings-Bia_W-8Q.js} +2 -2
- package/_assets/{Success-mbqlFMRP.js → Success-2dVHPO-2.js} +2 -2
- package/_assets/{SwapController-Bv1KjKr6.js → SwapController-CbFqSpFg.js} +2 -2
- package/_assets/{Tooltip-BqY8lGhV.js → Tooltip-DFrRznAp.js} +2 -2
- package/_assets/{TradeService-BSb4oEbA.js → TradeService-CDS_PfTn.js} +2 -2
- package/_assets/{W3MFrameProviderSingleton-C3uUAOnI.js → W3MFrameProviderSingleton-C4KtItmg.js} +4 -4
- package/_assets/{WebCryptoP256-ChnBIYNz.js → WebCryptoP256-CbiRbOjq.js} +2 -2
- package/_assets/{basic-Dc-yAZgS.js → basic-BufXGp2F.js} +2 -2
- package/_assets/{biconomy-Ch2E1lll.js → biconomy-BR1CMfhe.js} +2 -2
- package/_assets/{browseLayout.styles-BKTAmYSq.js → browseLayout.styles-DF9DTUfO.js} +2 -2
- package/_assets/{browser-CKALJXh2.js → browser-DqwPlfZs.js} +2 -2
- package/_assets/{browser-ponyfill-CmmcfAMi.js → browser-ponyfill-DqHLL_k5.js} +2 -2
- package/_assets/{browser-tP08e2Rq.js → browser-qc2dUFk5.js} +2 -2
- package/_assets/{buy-RnCuARVP.js → buy-BiTHthT9.js} +2 -2
- package/_assets/{buy-gasless-COdNSlBG.js → buy-gasless-CTp90Dvn.js} +2 -2
- package/_assets/{ccip-D181-o00.js → ccip-DZfLdErH.js} +2 -2
- package/_assets/{ccip-nOGc-ELR.js → ccip-rfpBm5bL.js} +2 -2
- package/_assets/{chains-luYqMGzb.js → chains-BWqZ-nYk.js} +2 -2
- package/_assets/collectionPage.styles-Db2PBFNG.js +41 -0
- package/_assets/{common-lEsyNCa8.js → common-BfXnUVAM.js} +2 -2
- package/_assets/{controller-D3EAwj-f.js → controller-ZXDDsCxP.js} +3 -3
- package/_assets/{core-BU0HPg4r.js → core-DfE8LCjh.js} +5 -5
- package/_assets/{createSvgIcon-DObsJOah.js → createSvgIcon-BUkltLfu.js} +2 -2
- package/_assets/{crumbs.styles-C5oFtMBh.js → crumbs.styles-R8odPxFR.js} +2 -2
- package/_assets/{custom-DIXVsLc6.js → custom-DKOD0xYg.js} +2 -2
- package/_assets/{data-capture-CZGhq5a0.js → data-capture-C3eH7C_s.js} +2 -2
- package/_assets/{dcl-schemas-B4SkwUm_.js → dcl-schemas-BW3BbT5l.js} +2 -2
- package/_assets/{decimals-DnkGmF3V.js → decimals-BI0yoEux.js} +2 -2
- package/_assets/{decimals-U5WJsdzD.js → decimals-DQJMb7J9.js} +2 -2
- package/_assets/{detectExtension-6eiVpI1A.js → detectExtension-C_GbFz5_.js} +2 -2
- package/_assets/{disposePreview-DeEtkKLL.js → disposePreview-5Jddp9do.js} +2 -2
- package/_assets/{email-Bwii9MB_.js → email-D4HLC7wh.js} +2 -2
- package/_assets/{embedded-wallet-COJK5B-H.js → embedded-wallet-CMbzkthX.js} +2 -2
- package/_assets/{emotion-styled.browser.esm-CcSLWrGe.js → emotion-styled.browser.esm-B6eszsio.js} +2 -2
- package/_assets/{engine-B6ScaRDB.js → engine-BA9Hr8Az.js} +2 -2
- package/_assets/{errors-CynPossx.js → errors-DnOSpKoV.js} +2 -2
- package/_assets/{estimate-l1-fee-CDcG2dYD.js → estimate-l1-fee-BZt36dEW.js} +2 -2
- package/_assets/{eth_estimateGas-DcFq4Lf0.js → eth_estimateGas-mNInGC82.js} +2 -2
- package/_assets/{eth_getStorageAt-fF-ctFOy.js → eth_getStorageAt-CW3VLsR7.js} +2 -2
- package/_assets/{eth_getTransactionCount-DMT5yGEb.js → eth_getTransactionCount-DGbTHobL.js} +2 -2
- package/_assets/{ethereum-DHKKDLpc.js → ethereum-Cez4WhJf.js} +2 -2
- package/_assets/{ethers-H2EHHmSo.js → ethers-DGYWmyb1.js} +2 -2
- package/_assets/{events-D1Ro3cjz.js → events-YMZCt1yV.js} +2 -2
- package/_assets/{execute-BWiqZ7j-.js → execute-CVxgGRa9.js} +3 -3
- package/_assets/{extractIPFS-DiV8zmbD.js → extractIPFS-BdalrjY7.js} +2 -2
- package/_assets/{features-wQa_8a20.js → features-BPD34bt1.js} +2 -2
- package/_assets/{fetchTokenMetadata-C73jMrgi.js → fetchTokenMetadata-DOlcjXZI.js} +3 -3
- package/_assets/{field.styles-CTapCSQr.js → field.styles-CIXh24AQ.js} +2 -2
- package/_assets/{fortmatic-d8l6VsHl.js → fortmatic-DGrmZpu1.js} +2 -2
- package/_assets/{get-bytecode-6IPPs1XH.js → get-bytecode-N2OV9nFo.js} +2 -2
- package/_assets/{get-ecosystem-wallet-info-CiagQo6x.js → get-ecosystem-wallet-info-CVK-PjWL.js} +2 -2
- package/_assets/{getBalance-DFlqMK0q.js → getBalance-BEz0Zoiv.js} +3 -3
- package/_assets/{getInstalledModules-DviNZAnD.js → getInstalledModules-AznSDC44.js} +2 -2
- package/_assets/{getNFT-CZsKZDOy.js → getNFT-VxK16uv_.js} +2 -2
- package/_assets/{getNFT-BKd5-jIK.js → getNFT-aR5kSoWa.js} +3 -3
- package/_assets/{grid.styles-Cnszd1mK.js → grid.styles-CVQcD_5t.js} +2 -2
- package/_assets/{hashTypedData-CIOnYjgW.js → hashTypedData-ByCdES4z.js} +2 -2
- package/_assets/{hashTypedData-Cx4RHD4_.js → hashTypedData-ywahqODz.js} +2 -2
- package/_assets/{import-DopjtwQm.js → import-CPlDKdWo.js} +2 -2
- package/_assets/{in-app-BZPTqZxK.js → in-app-D43FjnXM.js} +2 -2
- package/_assets/{in-app-wallet-calls-C-84b8TZ.js → in-app-wallet-calls-DmZ4pxIH.js} +2 -2
- package/_assets/{index-CmsSxMTc.js → index-0FaDHGAZ.js} +2 -2
- package/_assets/{index-CUuXRIl8.js → index-7s_cYB0r.js} +2 -2
- package/_assets/{index-IwTnA1f-.js → index-B67Ropoe.js} +3 -3
- package/_assets/{index-CQQK7Wf_.js → index-B7aqs-FR.js} +2 -2
- package/_assets/{index-D5kcKxQR.js → index-B8kJyL6G.js} +2 -2
- package/_assets/{index-BNj1ZZ--.js → index-BAAoctqn.js} +2 -2
- package/_assets/{index--6KpZcM5.js → index-BBS-v8LD.js} +17 -17
- package/_assets/{index--yhvP7PG.js → index-BFVKoQeh.js} +2 -2
- package/_assets/{index-Dp2nuRFm.js → index-BIDkjxTy.js} +2 -2
- package/_assets/{index-Cu2K-ul5.js → index-BMak5rZb.js} +2 -2
- package/_assets/{index-IxfADe_K.js → index-BOyogbet.js} +2 -2
- package/_assets/{index-D1B0oznd.js → index-BUZUNt7Z.js} +2 -2
- package/_assets/{index-coLYaVXs.js → index-BUnaJjPH.js} +2 -2
- package/_assets/{index-DHNDuiPp.js → index-Bf74R1qS.js} +2 -2
- package/_assets/{index-BpRttMPE.js → index-BfZKaxHs.js} +3 -3
- package/_assets/{index-BHxfAJlD.js → index-Bf_iGaP5.js} +2 -2
- package/_assets/{index-DCAgazge.js → index-BkdjGh-W.js} +2 -2
- package/_assets/{index-UqcTfdvK.js → index-C2S4XG0R.js} +2 -2
- package/_assets/{index-CkM-4uyE.js → index-C7Le7sHG.js} +2 -2
- package/_assets/{index-IGrNlyyE.js → index-CA4CUNiy.js} +2 -2
- package/_assets/{index-C487fNvu.js → index-CHBzdW6M.js} +2 -2
- package/_assets/{index-Bx5DSXb8.js → index-CLpLBvH2.js} +2 -2
- package/_assets/{index-CbyazhYc.js → index-CNjrqKOs.js} +2 -2
- package/_assets/{index-BjzJFAq2.js → index-CSuaHD6u.js} +2 -2
- package/_assets/{index-CkVXAK71.js → index-CT7NzvvO.js} +2 -2
- package/_assets/{index-XJGYkd5x.js → index-CU2OselF.js} +2 -2
- package/_assets/{index-DNdO4V15.js → index-CY4_MrXH.js} +2 -2
- package/_assets/{index-BnzJAKB0.js → index-C_2eXgm7.js} +2 -2
- package/_assets/{index-C6smoo2I.js → index-CeLw5QQ-.js} +2 -2
- package/_assets/{index-DkGljAs5.js → index-CepaElib.js} +2 -2
- package/_assets/{index-C1tknmhO.js → index-CgfbItO2.js} +2 -2
- package/_assets/{index-DIGWYt9H.js → index-ChIjTbh5.js} +2 -2
- package/_assets/{index-CuX2uyRY.js → index-Ci4_h86U.js} +2 -2
- package/_assets/{index-CtwEP07d.js → index-CnfBCYQg.js} +2 -2
- package/_assets/{index-DXYDN3uA.js → index-CtoH5DSl.js} +2 -2
- package/_assets/{index-BCNLwPSG.js → index-Cx1doNkB.js} +2 -2
- package/_assets/{index-ZUZuPwuP.js → index-CxOeCVBB.js} +2 -2
- package/_assets/{index-CDDdRbfE.js → index-CzV7sMdy.js} +4 -4
- package/_assets/{index-C23wZyXv.js → index-DCSutgdw.js} +2 -2
- package/_assets/{index-zDN0L5qZ.js → index-DIYb1IGB.js} +4 -4
- package/_assets/{index-BV3gmkVY.js → index-DR9_Mkt6.js} +2 -2
- package/_assets/{index-CvUNPW6U.js → index-DSwxHrMr.js} +2 -2
- package/_assets/{index-BoqnusFA.js → index-DZ3S9SRN.js} +2 -2
- package/_assets/{index-DaOnNrHB.js → index-DZ53HgoK.js} +2 -2
- package/_assets/{index-C5RpZfZH.js → index-DZaHlbE_.js} +2 -2
- package/_assets/{index-D60SUbcu.js → index-D_2nYoM8.js} +2 -2
- package/_assets/{index-DODo43nM.js → index-DauMTBWE.js} +2 -2
- package/_assets/{index-DlLuroj0.js → index-DhWCbjGh.js} +2 -2
- package/_assets/{index-DrQfAZJ9.js → index-DtS7bQfE.js} +2 -2
- package/_assets/{index-D-n00PMZ.js → index-DyhsaJtc.js} +2 -2
- package/_assets/{index-BCftkVti.js → index-LRrTgDY0.js} +4 -4
- package/_assets/{index-BNch3CfU.js → index-LxRrm7nL.js} +2 -2
- package/_assets/{index-8mQ7T2Cm.js → index-PFt3YITh.js} +2 -2
- package/_assets/{index-D2RG773v.js → index-T6hDl-2V.js} +2 -2
- package/_assets/{index-DcCTZVkB.js → index-Tz82vi2e.js} +2 -2
- package/_assets/{index-CsvrK0LK.js → index-W7W-N49f.js} +2 -2
- package/_assets/{index-B2A1Uxrw.js → index-ZDiu1J1j.js} +2 -2
- package/_assets/{index-DQkrf2tI.js → index-bz3DaQP5.js} +2 -2
- package/_assets/{index-CjSQXOIE.js → index-cCjjJ8Zd.js} +2 -2
- package/_assets/{index-BtqsHqnl.js → index-feJ6CP8x.js} +3 -3
- package/_assets/{index-Ig7GQRBz.js → index-gfZnCNa6.js} +2 -2
- package/_assets/{index-DxSv83QK.js → index-guDRvZQ4.js} +2 -2
- package/_assets/{index--cLbSkQZ.js → index-mzIsCjWs.js} +2 -2
- package/_assets/{index-DJFoGEzf.js → index-ox01jvxx.js} +2 -2
- package/_assets/{index-CzaDIeJ0.css → index-qTkXqLEk.css} +1 -1
- package/_assets/{index-B2AN1fh7.js → index-tske-Qm0.js} +2 -2
- package/_assets/{index-D2f20T2C.js → index-v6-0TPZX.js} +3 -3
- package/_assets/{index-adwnBCwD.js → index-y50hP8_O.js} +2 -2
- package/_assets/{index.es-BQ9Yf2_C.js → index.es-D61fhzOk.js} +2 -2
- package/_assets/{index.es-CqE1KZqr.js → index.es-DUQRyY8V.js} +2 -2
- package/_assets/{index.es-DGiBui8a.js → index.es-DrJv9QY8.js} +2 -2
- package/_assets/{index.es-BoNqoCkO.js → index.es-_SlY0diQ.js} +5 -5
- package/_assets/{items-empty-D0vQ1z0B.js → items-empty-Dtl-YwtZ.js} +2 -2
- package/_assets/{jump-CY3aYSfg.js → jump-JCYO-k8J.js} +2 -2
- package/_assets/{linkAccount-CL_IGmZW.js → linkAccount-D_xpNX67.js} +2 -2
- package/_assets/{loader-logo-DwchSnaT.js → loader-logo-k6aOBN-R.js} +2 -2
- package/_assets/{localBatchGatewayRequest-C3nw9KHu.js → localBatchGatewayRequest-T0sFQZ26.js} +2 -2
- package/_assets/{modal.styles-p865gbX9.js → modal.styles-BAz9vPux.js} +2 -2
- package/_assets/{native-C_fLLHo4.js → native-Fndcg4e5.js} +2 -2
- package/_assets/{networks-BbuCuFCo.js → networks-BkPPSIG9.js} +2 -2
- package/_assets/{onramp-DXI3NZWk.js → onramp-DCjZy1Yr.js} +2 -2
- package/_assets/{openzeppelin-BKn4h6Is.js → openzeppelin-DWeyp33R.js} +2 -2
- package/_assets/{ownerOf-CYEbPuOg.js → ownerOf-D0cjIIIs.js} +2 -2
- package/_assets/{parseNft-XQGPcr5x.js → parseNft-DCt8GvNK.js} +3 -3
- package/_assets/{parseSignature-CKkAUdfE.js → parseSignature-BbjgUCSK.js} +4 -4
- package/_assets/{parseSignature-QQOXClNK.js → parseSignature-CtMzBmLG.js} +2 -2
- package/_assets/{passkeys-By-QTPM-.js → passkeys-DUrjX8Ro.js} +2 -2
- package/_assets/{pay-with-exchange-B7QyDuNm.js → pay-with-exchange-vAQgw-nO.js} +2 -2
- package/_assets/{prepare-contract-call-xvjqspvL.js → prepare-contract-call-BitMGE96.js} +2 -2
- package/_assets/{qr-overlay--8v3aIgN.js → qr-overlay-3Ogvmodj.js} +4 -4
- package/_assets/{react-CIPIqkKp.js → react-Ddn-9d83.js} +2 -2
- package/_assets/{receive-BcaxP6Oo.js → receive-UBqFYKku.js} +2 -2
- package/_assets/{resolveImplementation-BFZodAYW.js → resolveImplementation-CoCWI1LK.js} +2 -2
- package/_assets/{resume-buy-C79TtH21.js → resume-buy-DqlXnoQq.js} +2 -2
- package/_assets/{resume-name-CsOmF5Ph.js → resume-name-B5w3HYnd.js} +2 -2
- package/_assets/{rpc-CeovO04W.js → rpc-C-RDZHVf.js} +2 -2
- package/_assets/{sales-empty-CAD7aHI0.js → sales-empty-DFvbsd1W.js} +2 -2
- package/_assets/{search-empty-Cv5NFb5G.js → search-empty-D1Tausth.js} +2 -2
- package/_assets/{secp256k1-Cme7EMNW.js → secp256k1-By6IQ83k.js} +2 -2
- package/_assets/{secp256k1-CoRZ8Aa8.js → secp256k1-CAqSDg9Y.js} +2 -2
- package/_assets/{secp256k1-gqyuB-DJ.js → secp256k1-CxMxDBug.js} +2 -2
- package/_assets/{send-toFejhMG.js → send-Dg3aA-cT.js} +2 -2
- package/_assets/{send-batch-transaction-NWdGtXxM.js → send-batch-transaction-CcGULLl4.js} +2 -2
- package/_assets/{send-eip712-transaction-FWTan1RG.js → send-eip712-transaction-eRcl-w9x.js} +3 -3
- package/_assets/{send-gasless-transaction-BBtI35U4.js → send-gasless-transaction-BVE00Z8q.js} +3 -3
- package/_assets/{send-transaction-DJjiFn47.js → send-transaction-bNnxjmkm.js} +3 -3
- package/_assets/{sendMetaTransaction-8HXF7dJf.js → sendMetaTransaction-DaTro9ph.js} +2 -2
- package/_assets/{sendRawTransaction-Bf1KTrkg.js → sendRawTransaction-Crv4h2Fe.js} +4 -4
- package/_assets/{sentry-AydgbXDV.js → sentry-D_8KijKQ.js} +3 -3
- package/_assets/{serializeTransaction-CVEcFYFq.js → serializeTransaction-CPg2ul-G.js} +2 -2
- package/_assets/{session-proposal-B4ZiV2qA.js → session-proposal-Di1f8LHY.js} +2 -2
- package/_assets/{session-request-BxJY_bcT.js → session-request-R2yVi8HQ.js} +3 -3
- package/_assets/{sha256-DYvqSbJq.js → sha256-BhCi5WIJ.js} +2 -2
- package/_assets/{sha3-DcfuznSG.js → sha3-CLQFMym7.js} +2 -2
- package/_assets/signin-empty-PXLDIsQk.js +2 -0
- package/_assets/{signing-Dn59-PD3.js → signing-BCODmgNV.js} +4 -4
- package/_assets/{skeleton.styles-D1L_fgt7.js → skeleton.styles-anODpKJf.js} +2 -2
- package/_assets/{socials-CFfwCfjO.js → socials-DShz1WgZ.js} +2 -2
- package/_assets/{styled-kGVW2rf5.js → styled-CbzE9JXd.js} +2 -2
- package/_assets/{swaps-ADlq2hm1.js → swaps-BXF_khPF.js} +2 -2
- package/_assets/{thirdweb-BOGAnjHo.js → thirdweb-Cnc0UXDQ.js} +4 -4
- package/_assets/{to-serializable-transaction-BT9KSpfF.js → to-serializable-transaction-DzZsdRzk.js} +3 -3
- package/_assets/{totalSupply-C9rpV1_Y.js → totalSupply-D4EQMS5T.js} +2 -2
- package/_assets/{trade-encoding-Cv_E0sn5.js → trade-encoding-BdtZmg5A.js} +2 -2
- package/_assets/{transaction-CspsFtgm.js → transaction-Cbet3IZc.js} +2 -2
- package/_assets/{transactionReceipt-PeijM3Xl.js → transactionReceipt-DSeG56jV.js} +2 -2
- package/_assets/{transactions-BW7ABGiD.js → transactions-B5gQmUHm.js} +2 -2
- package/_assets/{useInfiniteGrid-BcjCt1yK.js → useInfiniteGrid-C5wDaoVd.js} +2 -2
- package/_assets/{useStore-CRUsupmX.js → useStore-wU9qkXc9.js} +3 -3
- package/_assets/{useTheme-t2n6dkX3.js → useTheme-y50PSrCO.js} +2 -2
- package/_assets/{utils-DpDbfelx.js → utils-BGzZ7mCg.js} +2 -2
- package/_assets/{verifyHash-CVdgHUqA.js → verifyHash-I86XFFeN.js} +2 -2
- package/_assets/{w3m-modal-DtFKAby2.js → w3m-modal-COSR0Fsr.js} +2 -2
- package/_assets/{w3m-modal-eNc_hJY-.js → w3m-modal-Dz0XFS0k.js} +2 -2
- package/_assets/{wait-for-tx-receipt-svBuZEDO.js → wait-for-tx-receipt-C3zFGaKb.js} +2 -2
- package/_assets/{wallets-BjNKPNM7.js → wallets-BM2FKp9V.js} +6 -6
- package/_assets/{web-connector-DYX5vphE.js → web-connector-DXaUpGnD.js} +4 -4
- package/_assets/{writeContract-abMSghPl.js → writeContract-Bja8jWrS.js} +2 -2
- package/_assets/{zora-sepolia-CZDfay8A.js → zora-sepolia-B6FH_u_V.js} +2 -2
- package/_assets/{zoraTestnet-Nzf8iZon.js → zoraTestnet-CDn6xrjW.js} +2 -2
- package/index.html +12 -12
- package/package.json +2 -2
- package/_assets/collectionPage.styles-D9hflc85.js +0 -41
- package/_assets/signin-empty-DePdilQ4.js +0 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as j,j as e,L as me,u as us,f as ms,N as xs}from"./react-CIPIqkKp.js";import{c as Y,bU as fs,w as q,l as gs,cx as ys,cy as bs,s as l,t as r,z as ws,a as s,I as O,ca as Ss,H as Rt,B as js,x as ks,X as $s,cc as vs,cz as Cs,a6 as As,aH as qt,aK as Is,a2 as Ms,cA as Ye,cB as Ht,O as Ws,c9 as Ls,ay as Ts,az as Ps,aA as zs,av as _s,bO as Fs,cC as Es}from"./index--6KpZcM5.js";import{f as Ns,S as Os}from"./SaleCountdown-BT87OARJ.js";import{d as Bs}from"./dcl-schemas-B4SkwUm_.js";import{t as Ds,u as Rs,C as qs,M as Hs,i as Us}from"./ManaPricingBanner-CaOs1iNT.js";import{T as ke}from"./Tooltip-BqY8lGhV.js";import{m as Ks}from"./mana-matic-CEqvSwrJ.js";import{E as yt}from"./ErrorNotice-CbW4Q2ZV.js";import{I as Vs}from"./IssueModal-C8pY_CjA.js";import{f as Gs,g as Ys,R as Qs,M as Js}from"./browseLayout.styles-BKTAmYSq.js";import{u as Xs,L as Zs}from"./useStore-CRUsupmX.js";import{s as en}from"./signin-empty-DePdilQ4.js";import"./sentry-AydgbXDV.js";import"./ethers-H2EHHmSo.js";import"./intl-AKLEHPeO.js";import"./errors-CynPossx.js";import"./sha3-DcfuznSG.js";import"./browser-CKALJXh2.js";import"./trade-encoding-Cv_E0sn5.js";import"./sendMetaTransaction-8HXF7dJf.js";import"./ManaPricingBanner.styles-DLFrScDr.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]="8bc2f0d7-7053-4b04-ad63-fd566583f527",t._sentryDebugIdIdentifier="sentry-dbid-8bc2f0d7-7053-4b04-ad63-fd566583f527")}catch{}})();function B(t){try{return BigInt(t||"0")}catch{return 0n}}async function bt(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(`${Y.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:d}=await o.json();return d}function tn(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 Je(t){var d;const n=await fetch(`${Y.marketplaceServerUrl}/v1/sales?${tn(t).toString()}`);if(!n.ok)throw await((d=n.body)==null?void 0:d.cancel()),new Error(`fetchSales ${n.status}`);const o=await n.json();return{data:o.data??[],total:o.total??0}}async function sn(t){const{total:n}=await Je({...t,first:1});return n}async function nn(t,{first:n,skip:o}){const{data:d,total:a}=await Je({...t,first:n,skip:o});return{rows:d,total:a}}async function on(t,{cap:n=5e3}={}){const d=[];let a=0;for(let h=0;h<n;h+=1e3){const m=Math.min(1e3,n-h),p=await Je({...t,first:m,skip:h});if(a=p.total,d.push(...p.data),p.data.length<m||d.length>=a)break}return{rows:d,total:a,truncated:a>d.length}}const an=864e5;function wt(t,n){return{current:t,previous:n,pct:n===0?null:(t-n)/n*100}}function rn(t,n){const o=n===0n?null:Number((t-n)*10000n/n)/100;return{current:Number(t),previous:Number(n),pct:o}}function ln(t,n=3){var m;const o=t.filter(Ut),d=new Map;for(const p of o){const w=p.buyer.toLowerCase();d.set(w,(d.get(w)??0)+1)}const a=[...d.entries()].sort((p,w)=>w[1]-p[1]||p[0].localeCompare(w[0])),h=a.filter(([,p])=>p>1).length;return{total:a.length,repeat:h,repeatPct:a.length===0?0:h/a.length*100,topSharePct:o.length===0?0:(((m=a[0])==null?void 0:m[1])??0)/o.length*100,top:a.slice(0,n).map(([p,w])=>({address:p,bought:w}))}}function Ut(t){return t.type==="mint"&&t.itemId!=null}function dn(t,n){const o=t.filter(Ut),d=new Map;for(const a of o){const h=a.buyer.toLowerCase(),m=a.contractAddress.toLowerCase(),p=d.get(h)??{bought:0,items:new Set,collections:new Set,spentWei:0n,lastAt:0};p.bought+=1,p.items.add(`${m}-${a.itemId}`),p.collections.add(m),p.spentWei+=B(a.price),a.timestamp>p.lastAt&&(p.lastAt=a.timestamp),d.set(h,p)}return[...d.entries()].map(([a,h])=>({address:a,bought:h.bought,items:h.items.size,collections:h.collections.size,spentWei:h.spentWei,lastAt:h.lastAt})).sort((a,h)=>h.spentWei>a.spentWei?1:h.spentWei<a.spentWei?-1:h.bought-a.bought).slice(0,n)}function cn(t,n){if(t.length===0)return null;const o=t.reduce((d,a)=>a.timestamp>d?a.timestamp:d,0);return Math.max(0,Math.floor((n-o)/an))}function hn(t,n=5){return t.flatMap(o=>o.items.filter(d=>d.sold>0).map(d=>({key:d.key,contractAddress:o.contractAddress,itemId:d.itemId,name:d.name,thumbnail:d.thumbnail,rarity:d.rarity,collectionName:o.name,sold:d.sold,earnedWei:d.earnedWei}))).sort((o,d)=>d.sold-o.sold||(d.earnedWei>o.earnedWei?1:d.earnedWei<o.earnedWei?-1:0)||o.name.localeCompare(d.name)).slice(0,n)}const $e=100;async function pn(t){const[{collections:n},o]=await Promise.all([fs(t,{first:$e}),xn(t)]),d=new Map(n.map(a=>[a.contractAddress.toLowerCase(),a.name]));return o.map(a=>{const h=a.contractAddress.toLowerCase(),m=(a.rarity??"common").toLowerCase(),p=mn(m),w=Number(a.available??0);return{id:a.id,collectionId:"",collectionName:d.get(h)??a.name,contractAddress:h,blockchainItemId:String(a.itemId??""),name:a.name,category:a.category,rarity:m,thumbnail:a.thumbnail??"",type:a.category==="emote"?"emote":"wearable",isPublished:!0,isApproved:!0,totalSupply:Math.max(0,p-w),maxSupply:p,remainingSupply:w,createdAt:a.createdAt?a.createdAt*1e3:void 0,minters:[]}})}function un(t,n){const o=new Set(t.map(d=>d.contractAddress.toLowerCase()));return[...t,...n.filter(d=>!o.has(d.contractAddress.toLowerCase()))]}function mn(t){try{return Bs.Rarity.getMaxSupply(t)}catch{return 0}}async function xn(t){var o;const n=[];for(let d=0;;d+=$e){const a=new URLSearchParams({creator:t,first:String($e),skip:String(d),includeSocialEmotes:"false"}),h=await fetch(`${Y.marketplaceServerUrl}/v3/catalog/items?${a.toString()}`);if(!h.ok)throw await((o=h.body)==null?void 0:o.cancel()),new Error(`fetchPublicCatalogue ${h.status}`);const{data:m}=await h.json(),p=m??[];if(n.push(...p),p.length<$e)return n}}const Qe=864e5,ve=14;function fn(t,n,o){const d=new Array(ve).fill(0),a=o-n*Qe,h=n*Qe/ve;for(const m of t)m.timestamp<a||m.timestamp>o||(d[Math.min(ve-1,Math.floor((m.timestamp-a)/h))]+=1);return d}function gn({rows:t,total:n,truncated:o,mints:d,summary:a,catalogue:h,saleState:m,unreadable:p,days:w,now:P}){const z=new Map,u=new Map,W=new Map;for(const c of t){if(c.type!=="mint"||c.itemId==null)continue;const g=c.contractAddress.toLowerCase(),k=`${g}-${c.itemId}`;z.set(k,(z.get(k)??0)+1),u.set(k,(u.get(k)??0n)+B(c.price));const $=W.get(g)??[];$.push(c),W.set(g,$)}const F=t.reduce((c,g)=>g.timestamp<c?g.timestamp:c,P),_=Math.max(1,Math.ceil((P-F)/Qe)),D=w!=null&&!o?w:Math.max(w==null?ve:1,_),U=new Map(((a==null?void 0:a.byItem)??[]).map(c=>[`${c.contractAddress.toLowerCase()}-${c.itemId}`,c.soldLifetime])),ee=new Map(((a==null?void 0:a.byCollection)??[]).map(c=>[c.contractAddress.toLowerCase(),c])),L=new Map;let Q=0,I=0,te=0,S=0,T=0;for(const c of h){const g=c.contractAddress.toLowerCase(),k=m[`${c.contractAddress}-${c.blockchainItemId}`],$=c.remainingSupply<=0?"soldout":p!=null&&p.has(g)?"unknown":k!=null&&k.isOnSale?k.manaWei?"classic":"discounted":"unlisted";$==="soldout"?S+=1:$==="unlisted"?T+=1:$==="classic"?te+=1:$==="discounted"&&(I+=1);const v=L.get(g)??{contractAddress:g,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},R=z.get(`${g}-${c.blockchainItemId}`)??0;v.items.push({key:`${g}-${c.blockchainItemId}`,itemId:c.blockchainItemId,name:c.name,thumbnail:c.thumbnail,rarity:c.rarity,left:c.remainingSupply,minted:c.totalSupply,sold:R,earnedWei:u.get(`${g}-${c.blockchainItemId}`)??0n,lifetimeSold:U.get(`${g}-${c.blockchainItemId}`)??null,priceCredits:(k==null?void 0:k.priceCredits)??null,manaWei:(k==null?void 0:k.manaWei)??null,createdAt:c.createdAt??null,state:$}),v.sold+=R,v.claimed+=c.totalSupply,v.runTotal+=c.totalSupply+c.remainingSupply,Q+=R,c.createdAt&&(v.createdAt==null||c.createdAt>v.createdAt)&&(v.createdAt=c.createdAt),$==="soldout"?v.soldOut+=1:$==="classic"?v.classic+=1:$==="discounted"&&(v.listed+=1),L.set(g,v)}for(const[c,g]of L){const k=W.get(c)??[],$=ee.get(c);g.earningsWei=$?B($.earnedWei):k.reduce((v,R)=>v+B(R.price),0n),$&&(g.sold=$.sold),g.trend=fn(k,D,P),g.exhausted=g.items.length>0&&g.soldOut===g.items.length,g.items.sort((v,R)=>R.sold-v.sold||v.name.localeCompare(R.name))}const A=[...L.values()].reduce((c,g)=>c+g.sold,0);return{collections:[...L.values()].sort((c,g)=>g.sold-c.sold||c.name.localeCompare(g.name)),sold:(a==null?void 0:a.total)??n,mints:(a==null?void 0:a.mints)??d,resales:a?a.resales:n-d,earningsWei:a?B(a.earnedWei):t.reduce((c,g)=>c+B(g.price),0n),partial:a?!1:o,breakdownPartial:o,fetched:t.length,unattributed:a?a.total-A:t.length-Q,trendDays:D,unknownCollections:[...L.keys()].filter(c=>p==null?void 0:p.has(c)).length,royalties:a?{resales:a.royalties.resales,volumeWei:B(a.royalties.volumeWei)}:null,listed:I,neverListed:T,classic:te,soldOut:S}}const yn=new Map,oe=864e5,bn=6e3,wn={"7d":7,"30d":30,all:null};function Sn(t,n){const o=t==null?void 0:t.address,d=wn[n],a=j.useMemo(()=>Math.floor(Date.now()/oe)*oe+oe-1,[]),h=d?a-d*oe:void 0,m=q({queryKey:["store-sales",o,n],enabled:!!o,queryFn:()=>on({seller:o,from:h})}),p=q({queryKey:["store-summary",o,n],enabled:!!o,queryFn:()=>bt({seller:o,from:h})}),w=d!=null?a-2*d*oe:void 0,P=d!=null?a-d*oe:void 0,z=q({queryKey:["store-summary-previous",o,n],enabled:!!o&&w!==void 0,queryFn:()=>bt({seller:o,from:w,to:P})}),u=q({queryKey:["store-mints",o,n],enabled:!!o,queryFn:()=>sn({seller:o,from:h,type:"mint"})}),W=q({queryKey:["store-catalogue",o],enabled:!!o&&!!t,queryFn:()=>Ns(o,t.identity,{includeSoldOut:!0})}),F=q({queryKey:["store-public-catalogue",o],enabled:!!o&&!!t,queryFn:()=>Promise.race([pn(o),new Promise((S,T)=>setTimeout(()=>T(new Error("public catalogue timed out")),bn))]).catch(S=>(gs(S,{flow:"my_store",step:"public_catalogue"}),[]))}),_=j.useMemo(()=>W.data?F.isPending?{data:void 0}:{data:un(W.data,F.data??[])}:{data:void 0},[W.data,F.isPending,F.data]),D=j.useMemo(()=>[...new Set((_.data??[]).map(S=>S.contractAddress))],[_.data]),U=q({queryKey:["store-sale-state",o,D],enabled:D.length>0,queryFn:async()=>{const S=await Promise.allSettled(D.map(c=>ys(c))),T={},A=new Set;return S.forEach((c,g)=>{const k=D[g];if(c.status==="rejected"){A.add(k.toLowerCase());return}for(const[$,v]of Object.entries(c.value))T[`${k}-${$}`]=v}),{states:T,unreadable:A}}}),ee=q({queryKey:["store-saves",D,(_.data??[]).length],enabled:(_.data??[]).length>0,queryFn:async()=>{const S=(_.data??[]).map(c=>`${c.contractAddress.toLowerCase()}-${c.blockchainItemId}`),T=await Promise.allSettled(S.map(async c=>[c,(await bs(c)).count])),A=new Map;for(const c of T)c.status==="fulfilled"&&A.set(c.value[0],c.value[1]);return A}}),L=j.useMemo(()=>{var S,T,A,c,g;return _.data?gn({rows:((S=m.data)==null?void 0:S.rows)??[],total:((T=m.data)==null?void 0:T.total)??0,truncated:!!((A=m.data)!=null&&A.truncated),mints:u.data??0,summary:p.data??null,catalogue:_.data,saleState:((c=U.data)==null?void 0:c.states)??{},unreadable:(g=U.data)==null?void 0:g.unreadable,days:d,now:a}):null},[_.data,m.data,u.data,p.data,U.data,d,a]),Q=j.useMemo(()=>{var S;return Ds(W.data??[],(S=U.data)==null?void 0:S.states)},[W.data,U.data]),I=j.useMemo(()=>{var g,k,$;const S=ln(((g=m.data)==null?void 0:g.rows)??[]),T=dn(((k=m.data)==null?void 0:k.rows)??[]),A=cn((($=m.data)==null?void 0:$.rows)??[],a),c=z.data;return{collectors:S,buyers:T,quietDays:A,sold:c&&p.data?wt(p.data.total,c.total):null,earnings:c&&p.data?rn(B(p.data.earnedWei),B(c.earnedWei)):null,royalties:c&&p.data?wt(p.data.royalties.resales,c.royalties.resales):null}},[m.data,p.data,z.data,a]),te=ee.data??yn;return{stats:L,trend:I,savesByKey:te,saleable:Q,isLoading:W.isLoading||F.isLoading||m.isLoading||p.isLoading,error:W.error??m.error??null}}const jn=l.span`
|
|
1
|
+
import{r as S,j as e,L as xe,u as gs,f as ys,N as bs}from"./react-Ddn-9d83.js";import{c as Y,bU as ws,w as q,l as Ss,cx as js,cy as ks,s as l,t as r,z as $s,a as s,I as B,ca as vs,H as Ht,B as Cs,x as As,X as Is,cc as Ms,cz as Ws,a6 as Ls,aH as Ut,aK as Ts,a2 as Ps,cA as Je,cB as Kt,O as _s,c9 as zs,ay as Es,az as Fs,aA as Ns,av as Bs,bO as Os,cC as Ds}from"./index-BBS-v8LD.js";import{f as Rs,S as qs}from"./SaleCountdown-KX9dNqTp.js";import{d as Hs}from"./dcl-schemas-BW3BbT5l.js";import{t as Us,u as Ks,C as Vs,M as Gs,i as Ys}from"./ManaPricingBanner-CZzRxND3.js";import{T as Ae}from"./Tooltip-DFrRznAp.js";import{m as Qs}from"./mana-matic-CEqvSwrJ.js";import{E as wt}from"./ErrorNotice-D_6j8-7f.js";import{I as Js}from"./IssueModal-D_PS_2Xk.js";import{f as Xs,g as Zs,R as en,M as tn}from"./browseLayout.styles-DF9DTUfO.js";import{u as sn,L as nn}from"./useStore-wU9qkXc9.js";import{s as on}from"./signin-empty-PXLDIsQk.js";import"./sentry-D_8KijKQ.js";import"./ethers-DGYWmyb1.js";import"./intl-AKLEHPeO.js";import"./errors-DnOSpKoV.js";import"./sha3-CLQFMym7.js";import"./browser-DqwPlfZs.js";import"./trade-encoding-BdtZmg5A.js";import"./sendMetaTransaction-DaTro9ph.js";import"./ManaPricingBanner.styles-B10EKkra.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]="dd21abd8-1731-46a4-9a8d-1c9d24c3200b",t._sentryDebugIdIdentifier="sentry-dbid-dd21abd8-1731-46a4-9a8d-1c9d24c3200b")}catch{}})();function O(t){try{return BigInt(t||"0")}catch{return 0n}}async function St(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(`${Y.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:d}=await o.json();return d}function an(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 Ze(t){var d;const n=await fetch(`${Y.marketplaceServerUrl}/v1/sales?${an(t).toString()}`);if(!n.ok)throw await((d=n.body)==null?void 0:d.cancel()),new Error(`fetchSales ${n.status}`);const o=await n.json();return{data:o.data??[],total:o.total??0}}async function rn(t){const{total:n}=await Ze({...t,first:1});return n}async function ln(t,{first:n,skip:o}){const{data:d,total:a}=await Ze({...t,first:n,skip:o});return{rows:d,total:a}}async function dn(t,{cap:n=5e3}={}){const d=[];let a=0;for(let h=0;h<n;h+=1e3){const m=Math.min(1e3,n-h),p=await Ze({...t,first:m,skip:h});if(a=p.total,d.push(...p.data),p.data.length<m||d.length>=a)break}return{rows:d,total:a,truncated:a>d.length}}const cn=864e5;function jt(t,n){return{current:t,previous:n,pct:n===0?null:(t-n)/n*100}}function hn(t,n){const o=n===0n?null:Number((t-n)*10000n/n)/100;return{current:Number(t),previous:Number(n),pct:o}}function pn(t,n=3){var m;const o=t.filter(Vt),d=new Map;for(const p of o){const w=p.buyer.toLowerCase();d.set(w,(d.get(w)??0)+1)}const a=[...d.entries()].sort((p,w)=>w[1]-p[1]||p[0].localeCompare(w[0])),h=a.filter(([,p])=>p>1).length;return{total:a.length,repeat:h,repeatPct:a.length===0?0:h/a.length*100,topSharePct:o.length===0?0:(((m=a[0])==null?void 0:m[1])??0)/o.length*100,top:a.slice(0,n).map(([p,w])=>({address:p,bought:w}))}}function Vt(t){return t.type==="mint"&&t.itemId!=null}function un(t,n){const o=t.filter(Vt),d=new Map;for(const a of o){const h=a.buyer.toLowerCase(),m=a.contractAddress.toLowerCase(),p=d.get(h)??{bought:0,items:new Set,collections:new Set,spentWei:0n,lastAt:0};p.bought+=1,p.items.add(`${m}-${a.itemId}`),p.collections.add(m),p.spentWei+=O(a.price),a.timestamp>p.lastAt&&(p.lastAt=a.timestamp),d.set(h,p)}return[...d.entries()].map(([a,h])=>({address:a,bought:h.bought,items:h.items.size,collections:h.collections.size,spentWei:h.spentWei,lastAt:h.lastAt})).sort((a,h)=>h.spentWei>a.spentWei?1:h.spentWei<a.spentWei?-1:h.bought-a.bought).slice(0,n)}function mn(t,n){if(t.length===0)return null;const o=t.reduce((d,a)=>a.timestamp>d?a.timestamp:d,0);return Math.max(0,Math.floor((n-o)/cn))}function xn(t,n=5){return t.flatMap(o=>o.items.filter(d=>d.sold>0).map(d=>({key:d.key,contractAddress:o.contractAddress,itemId:d.itemId,name:d.name,thumbnail:d.thumbnail,rarity:d.rarity,collectionName:o.name,sold:d.sold,earnedWei:d.earnedWei}))).sort((o,d)=>d.sold-o.sold||(d.earnedWei>o.earnedWei?1:d.earnedWei<o.earnedWei?-1:0)||o.name.localeCompare(d.name)).slice(0,n)}const Ie=100;async function fn(t){const[{collections:n},o]=await Promise.all([ws(t,{first:Ie}),bn(t)]),d=new Map(n.map(a=>[a.contractAddress.toLowerCase(),a.name]));return o.map(a=>{const h=a.contractAddress.toLowerCase(),m=(a.rarity??"common").toLowerCase(),p=yn(m),w=Number(a.available??0);return{id:a.id,collectionId:"",collectionName:d.get(h)??a.name,contractAddress:h,blockchainItemId:String(a.itemId??""),name:a.name,category:a.category,rarity:m,thumbnail:a.thumbnail??"",type:a.category==="emote"?"emote":"wearable",isPublished:!0,isApproved:!0,totalSupply:Math.max(0,p-w),maxSupply:p,remainingSupply:w,createdAt:a.createdAt?a.createdAt*1e3:void 0,minters:[]}})}function gn(t,n){const o=new Set(t.map(d=>d.contractAddress.toLowerCase()));return[...t,...n.filter(d=>!o.has(d.contractAddress.toLowerCase()))]}function yn(t){try{return Hs.Rarity.getMaxSupply(t)}catch{return 0}}async function bn(t){var o;const n=[];for(let d=0;;d+=Ie){const a=new URLSearchParams({creator:t,first:String(Ie),skip:String(d),includeSocialEmotes:"false"}),h=await fetch(`${Y.marketplaceServerUrl}/v3/catalog/items?${a.toString()}`);if(!h.ok)throw await((o=h.body)==null?void 0:o.cancel()),new Error(`fetchPublicCatalogue ${h.status}`);const{data:m}=await h.json(),p=m??[];if(n.push(...p),p.length<Ie)return n}}const Xe=864e5,Me=14;function wn(t,n,o){const d=new Array(Me).fill(0),a=o-n*Xe,h=n*Xe/Me;for(const m of t)m.timestamp<a||m.timestamp>o||(d[Math.min(Me-1,Math.floor((m.timestamp-a)/h))]+=1);return d}function Sn({rows:t,total:n,truncated:o,mints:d,summary:a,catalogue:h,saleState:m,unreadable:p,days:w,now:P}){const _=new Map,u=new Map,L=new Map;for(const c of t){if(c.type!=="mint"||c.itemId==null)continue;const f=c.contractAddress.toLowerCase(),j=`${f}-${c.itemId}`;_.set(j,(_.get(j)??0)+1),u.set(j,(u.get(j)??0n)+O(c.price));const k=L.get(f)??[];k.push(c),L.set(f,k)}const E=t.reduce((c,f)=>f.timestamp<c?f.timestamp:c,P),z=Math.max(1,Math.ceil((P-E)/Xe)),D=w!=null&&!o?w:Math.max(w==null?Me:1,z),U=new Map(((a==null?void 0:a.byItem)??[]).map(c=>[`${c.contractAddress.toLowerCase()}-${c.itemId}`,c.soldLifetime])),ee=new Map(((a==null?void 0:a.byCollection)??[]).map(c=>[c.contractAddress.toLowerCase(),c])),T=new Map;let Q=0,I=0,te=0,v=0,M=0;for(const c of h){const f=c.contractAddress.toLowerCase(),j=m[`${c.contractAddress}-${c.blockchainItemId}`],k=c.remainingSupply<=0?"soldout":p!=null&&p.has(f)?"unknown":j!=null&&j.isOnSale?j.manaWei?"classic":"discounted":"unlisted";k==="soldout"?v+=1:k==="unlisted"?M+=1:k==="classic"?te+=1:k==="discounted"&&(I+=1);const A=T.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},R=_.get(`${f}-${c.blockchainItemId}`)??0;A.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:R,earnedWei:u.get(`${f}-${c.blockchainItemId}`)??0n,lifetimeSold:U.get(`${f}-${c.blockchainItemId}`)??null,priceCredits:(j==null?void 0:j.priceCredits)??null,manaWei:(j==null?void 0:j.manaWei)??null,createdAt:c.createdAt??null,state:k}),A.sold+=R,A.claimed+=c.totalSupply,A.runTotal+=c.totalSupply+c.remainingSupply,Q+=R,c.createdAt&&(A.createdAt==null||c.createdAt>A.createdAt)&&(A.createdAt=c.createdAt),k==="soldout"?A.soldOut+=1:k==="classic"?A.classic+=1:k==="discounted"&&(A.listed+=1),T.set(f,A)}for(const[c,f]of T){const j=L.get(c)??[],k=ee.get(c);f.earningsWei=k?O(k.earnedWei):j.reduce((A,R)=>A+O(R.price),0n),k&&(f.sold=k.sold),f.trend=wn(j,D,P),f.exhausted=f.items.length>0&&f.soldOut===f.items.length,f.items.sort((A,R)=>R.sold-A.sold||A.name.localeCompare(R.name))}const C=[...T.values()].reduce((c,f)=>c+f.sold,0);return{collections:[...T.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)??d,resales:a?a.resales:n-d,earningsWei:a?O(a.earnedWei):t.reduce((c,f)=>c+O(f.price),0n),partial:a?!1:o,breakdownPartial:o,fetched:t.length,unattributed:a?a.total-C:t.length-Q,trendDays:D,unknownCollections:[...T.keys()].filter(c=>p==null?void 0:p.has(c)).length,royalties:a?{resales:a.royalties.resales,volumeWei:O(a.royalties.volumeWei)}:null,listed:I,neverListed:M,classic:te,soldOut:v}}const jn=new Map,oe=864e5,kn=6e3,$n={"7d":7,"30d":30,all:null};function vn(t,n){const o=t==null?void 0:t.address,d=$n[n],a=S.useMemo(()=>Math.floor(Date.now()/oe)*oe+oe-1,[]),h=d?a-d*oe:void 0,m=q({queryKey:["store-sales",o,n],enabled:!!o,queryFn:()=>dn({seller:o,from:h})}),p=q({queryKey:["store-summary",o,n],enabled:!!o,queryFn:()=>St({seller:o,from:h})}),w=d!=null?a-2*d*oe:void 0,P=d!=null?a-d*oe:void 0,_=q({queryKey:["store-summary-previous",o,n],enabled:!!o&&w!==void 0,queryFn:()=>St({seller:o,from:w,to:P})}),u=q({queryKey:["store-mints",o,n],enabled:!!o,queryFn:()=>rn({seller:o,from:h,type:"mint"})}),L=q({queryKey:["store-catalogue",o],enabled:!!o&&!!t,queryFn:()=>Rs(o,t.identity,{includeSoldOut:!0})}),E=q({queryKey:["store-public-catalogue",o],enabled:!!o&&!!t,queryFn:()=>Promise.race([fn(o),new Promise((v,M)=>setTimeout(()=>M(new Error("public catalogue timed out")),kn))]).catch(v=>(Ss(v,{flow:"my_store",step:"public_catalogue"}),[]))}),z=S.useMemo(()=>L.data?E.isPending?{data:void 0}:{data:gn(L.data,E.data??[])}:{data:void 0},[L.data,E.isPending,E.data]),D=S.useMemo(()=>[...new Set((z.data??[]).map(v=>v.contractAddress))],[z.data]),U=q({queryKey:["store-sale-state",o,D],enabled:D.length>0,queryFn:async()=>{const v=await Promise.allSettled(D.map(c=>js(c))),M={},C=new Set;return v.forEach((c,f)=>{const j=D[f];if(c.status==="rejected"){C.add(j.toLowerCase());return}for(const[k,A]of Object.entries(c.value))M[`${j}-${k}`]=A}),{states:M,unreadable:C}}}),ee=q({queryKey:["store-saves",D,(z.data??[]).length],enabled:(z.data??[]).length>0,queryFn:async()=>{const v=(z.data??[]).map(c=>`${c.contractAddress.toLowerCase()}-${c.blockchainItemId}`),M=await Promise.allSettled(v.map(async c=>[c,(await ks(c)).count])),C=new Map;for(const c of M)c.status==="fulfilled"&&C.set(c.value[0],c.value[1]);return C}}),T=S.useMemo(()=>{var v,M,C,c,f;return z.data?Sn({rows:((v=m.data)==null?void 0:v.rows)??[],total:((M=m.data)==null?void 0:M.total)??0,truncated:!!((C=m.data)!=null&&C.truncated),mints:u.data??0,summary:p.data??null,catalogue:z.data,saleState:((c=U.data)==null?void 0:c.states)??{},unreadable:(f=U.data)==null?void 0:f.unreadable,days:d,now:a}):null},[z.data,m.data,u.data,p.data,U.data,d,a]),Q=S.useMemo(()=>{var v;return Us(L.data??[],(v=U.data)==null?void 0:v.states)},[L.data,U.data]),I=S.useMemo(()=>{var f,j,k;const v=pn(((f=m.data)==null?void 0:f.rows)??[]),M=un(((j=m.data)==null?void 0:j.rows)??[]),C=mn(((k=m.data)==null?void 0:k.rows)??[],a),c=_.data;return{collectors:v,buyers:M,quietDays:C,sold:c&&p.data?jt(p.data.total,c.total):null,earnings:c&&p.data?hn(O(p.data.earnedWei),O(c.earnedWei)):null,royalties:c&&p.data?jt(p.data.royalties.resales,c.royalties.resales):null}},[m.data,p.data,_.data,a]),te=ee.data??jn;return{stats:T,trend:I,savesByKey:te,saleable:Q,isLoading:L.isLoading||E.isLoading||m.isLoading||p.isLoading,error:L.error??m.error??null}}const Cn=l.span`
|
|
2
2
|
display: inline-flex;
|
|
3
3
|
align-items: center;
|
|
4
4
|
cursor: help;
|
|
@@ -10,7 +10,7 @@ import{r as j,j as e,L as me,u as us,f as ms,N as xs}from"./react-CIPIqkKp.js";i
|
|
|
10
10
|
height: 1em;
|
|
11
11
|
vertical-align: -0.125em;
|
|
12
12
|
}
|
|
13
|
-
`;function H({kind:t,className:n}){const o=t==="mana"?r("currency.polygonMana"):r("currency.credits");return e.jsx(
|
|
13
|
+
`;function H({kind:t,className:n}){const o=t==="mana"?r("currency.polygonMana"):r("currency.credits");return e.jsx(Ae,{content:o,children:e.jsx(Cn,{className:n,"aria-label":o,role:"img","data-kind":t,children:t==="mana"?e.jsx("img",{src:Qs,alt:"","aria-hidden":!0}):e.jsx($s,{className:"ccy-mark"})})})}const An=l.button`
|
|
14
14
|
display: inline-flex;
|
|
15
15
|
align-items: center;
|
|
16
16
|
gap: 4px;
|
|
@@ -46,7 +46,7 @@ import{r as j,j as e,L as me,u as us,f as ms,N as xs}from"./react-CIPIqkKp.js";i
|
|
|
46
46
|
&:hover [data-testid='sort-header-chevron'] {
|
|
47
47
|
opacity: 1;
|
|
48
48
|
}
|
|
49
|
-
`;function ae({label:t,dir:n,onSort:o,align:d="left",testId:a}){return e.jsxs(
|
|
49
|
+
`;function ae({label:t,dir:n,onSort:o,align:d="left",testId:a}){return e.jsxs(An,{type:"button",onClick:o,"data-dir":n,"data-align":d,"data-testid":a,"aria-label":typeof t=="string"?r(n==="asc"?"common.sortedAsc":n==="desc"?"common.sortedDesc":"common.sortColumn",{column:t}):void 0,children:[t,e.jsx(Xs,{up:n==="asc",size:12,"aria-hidden":!0,"data-testid":"sort-header-chevron"})]})}function He(t,n,o){return(t==null?void 0:t.key)===n?{key:n,dir:t.dir==="asc"?"desc":"asc"}:{key:n,dir:o}}function We(t,n,o){const d=o==="asc"?1:-1;return t.map((a,h)=>({row:a,index:h,v:n(a)})).sort((a,h)=>{const m=a.v==null,p=h.v==null;return m||p?m===p?a.index-h.index:m?1:-1:d*In(a.v,h.v)||a.index-h.index}).map(a=>a.row)}function In(t,n){return typeof t=="string"&&typeof n=="string"?t.localeCompare(n,void 0,{sensitivity:"base"}):t===n?0:t<n?-1:1}const me=864e5,G=Date.now(),Mn=(t,n,o,d,a)=>({key:`0xmock${t}-${t}`,itemId:String(t),name:n,thumbnail:"",rarity:["epic","legendary","rare","mythic","unique"][t%5],left:d-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:G-t*11*me,state:a}),Wn=[[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]],Ln=[{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 Tn(t,n){const o=t.items.map(([a,h,m,p],w)=>Mn(n*10+w,a,h,m,p)),d=o.reduce((a,h)=>a+h.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:G-n*30*me,trend:Wn[t.trend],claimed:d,runTotal:o.reduce((a,h)=>a+h.minted+h.left,0),exhausted:o.length>0&&o.every(a=>a.state==="soldout")}}const et=(()=>{const t=Ln.map(Tn);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(d=>d.state==="unlisted").length,0),classic:t.reduce((n,o)=>n+o.classic,0),soldOut:t.reduce((n,o)=>n+o.soldOut,0)}})(),Pn={total:74,repeat:29,repeatPct:39.19,topSharePct:21.3},_n=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:G-(n+1)*9*36e5})),kt=(t,n,o,d,a,h)=>({id:`mock-coupon-${t}`,signer:"0xmockcreator0000000000000000000000000001",chainId:137,network:"MATIC",checks:{uses:50,expiration:G+a,effective:G-d,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:G-d,state:{uses:h,cancelled:!1,revoked:!1,checkedAt:G},status:"active"}),zn=[kt(1,`0xmock${"0".repeat(36)}`,25,3*me,3*me,18),kt(2,`0xmock${"1".padStart(36,"0")}`,15,12*36e5,9*me,0)],En=new Map(et.collections.flatMap(t=>t.items.map((n,o)=>[n.key,[41,3,128,0,17,6,92,1][o%8]]))),Fn=et.collections.flatMap(t=>t.items.map(n=>[t.contractAddress,n])),Nn=Fn.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:G-(o===0?8*6e4:o*19*36e5),type:o===3?"order":"mint",network:"MATIC",tokenId:o===3?"1042":null})),Bn=l.div`
|
|
50
50
|
display: flex;
|
|
51
51
|
flex-direction: column;
|
|
52
52
|
gap: 22px;
|
|
@@ -63,7 +63,7 @@ import{r as j,j as e,L as me,u as us,f as ms,N as xs}from"./react-CIPIqkKp.js";i
|
|
|
63
63
|
[data-kind='mana'] img {
|
|
64
64
|
filter: brightness(0) invert(1);
|
|
65
65
|
}
|
|
66
|
-
`,
|
|
66
|
+
`,On=l.header`
|
|
67
67
|
display: flex;
|
|
68
68
|
align-items: flex-start;
|
|
69
69
|
justify-content: space-between;
|
|
@@ -72,12 +72,12 @@ import{r as j,j as e,L as me,u as us,f as ms,N as xs}from"./react-CIPIqkKp.js";i
|
|
|
72
72
|
/* The rule that closes the identity block off from the figures under it. */
|
|
73
73
|
padding-bottom: 24px;
|
|
74
74
|
border-bottom: 0.5px solid rgba(255, 255, 255, 0.3);
|
|
75
|
-
`,
|
|
75
|
+
`,Dn=l.div`
|
|
76
76
|
display: flex;
|
|
77
77
|
align-items: center;
|
|
78
78
|
gap: 12px;
|
|
79
79
|
min-width: 0;
|
|
80
|
-
`,
|
|
80
|
+
`,Rn=l.div`
|
|
81
81
|
display: flex;
|
|
82
82
|
flex-direction: column;
|
|
83
83
|
align-items: flex-start;
|
|
@@ -85,7 +85,7 @@ import{r as j,j as e,L as me,u as us,f as ms,N as xs}from"./react-CIPIqkKp.js";i
|
|
|
85
85
|
gap: 4px;
|
|
86
86
|
padding-bottom: 8px;
|
|
87
87
|
min-width: 0;
|
|
88
|
-
`,
|
|
88
|
+
`,qn=l.span`
|
|
89
89
|
flex: none;
|
|
90
90
|
display: block;
|
|
91
91
|
width: 84px;
|
|
@@ -100,7 +100,7 @@ import{r as j,j as e,L as me,u as us,f as ms,N as xs}from"./react-CIPIqkKp.js";i
|
|
|
100
100
|
width: 56px;
|
|
101
101
|
height: 56px;
|
|
102
102
|
}
|
|
103
|
-
`,
|
|
103
|
+
`,Hn=l.p`
|
|
104
104
|
margin: 0;
|
|
105
105
|
font-family: ${s.font.sans};
|
|
106
106
|
font-size: 14px;
|
|
@@ -111,7 +111,7 @@ import{r as j,j as e,L as me,u as us,f as ms,N as xs}from"./react-CIPIqkKp.js";i
|
|
|
111
111
|
text-overflow: ellipsis;
|
|
112
112
|
white-space: nowrap;
|
|
113
113
|
max-width: 100%;
|
|
114
|
-
`,
|
|
114
|
+
`,Un=l.h1`
|
|
115
115
|
margin: 0;
|
|
116
116
|
font-family: ${s.font.sans};
|
|
117
117
|
font-size: 32px;
|
|
@@ -123,13 +123,13 @@ import{r as j,j as e,L as me,u as us,f as ms,N as xs}from"./react-CIPIqkKp.js";i
|
|
|
123
123
|
${s.media.maxWidth("mobile")} {
|
|
124
124
|
font-size: 26px;
|
|
125
125
|
}
|
|
126
|
-
`,
|
|
126
|
+
`,Kn=l.div`
|
|
127
127
|
display: flex;
|
|
128
128
|
flex-direction: column;
|
|
129
129
|
align-items: flex-start;
|
|
130
130
|
gap: 8px;
|
|
131
131
|
min-width: 0;
|
|
132
|
-
|
|
132
|
+
`,$t=l.p`
|
|
133
133
|
margin: 0;
|
|
134
134
|
display: flex;
|
|
135
135
|
align-items: center;
|
|
@@ -138,7 +138,7 @@ import{r as j,j as e,L as me,u as us,f as ms,N as xs}from"./react-CIPIqkKp.js";i
|
|
|
138
138
|
font-size: 12px;
|
|
139
139
|
line-height: 1;
|
|
140
140
|
color: ${s.colors.softWhite};
|
|
141
|
-
`,
|
|
141
|
+
`,Vn=l.div`
|
|
142
142
|
display: flex;
|
|
143
143
|
align-items: center;
|
|
144
144
|
justify-content: flex-end;
|
|
@@ -152,7 +152,7 @@ import{r as j,j as e,L as me,u as us,f as ms,N as xs}from"./react-CIPIqkKp.js";i
|
|
|
152
152
|
justify-content: flex-start;
|
|
153
153
|
width: 100%;
|
|
154
154
|
}
|
|
155
|
-
`,
|
|
155
|
+
`,Gn=l.a`
|
|
156
156
|
display: inline-flex;
|
|
157
157
|
align-items: center;
|
|
158
158
|
justify-content: center;
|
|
@@ -181,7 +181,7 @@ import{r as j,j as e,L as me,u as us,f as ms,N as xs}from"./react-CIPIqkKp.js";i
|
|
|
181
181
|
${s.media.maxWidth("mobile")} {
|
|
182
182
|
padding: 0 8px;
|
|
183
183
|
}
|
|
184
|
-
`,
|
|
184
|
+
`,Yn=l(xe)`
|
|
185
185
|
display: inline-flex;
|
|
186
186
|
align-items: center;
|
|
187
187
|
justify-content: center;
|
|
@@ -216,14 +216,14 @@ import{r as j,j as e,L as me,u as us,f as ms,N as xs}from"./react-CIPIqkKp.js";i
|
|
|
216
216
|
${s.media.maxWidth("mobile")} {
|
|
217
217
|
padding: 0 16px;
|
|
218
218
|
}
|
|
219
|
-
`,
|
|
219
|
+
`,Qn=l.span`
|
|
220
220
|
display: inline-flex;
|
|
221
221
|
align-items: center;
|
|
222
222
|
gap: 8px;
|
|
223
223
|
margin-left: 12px;
|
|
224
224
|
padding-left: 12px;
|
|
225
225
|
border-left: 1px solid rgba(255, 255, 255, 0.3);
|
|
226
|
-
`,
|
|
226
|
+
`,Jn=l.a`
|
|
227
227
|
display: inline-flex;
|
|
228
228
|
align-items: center;
|
|
229
229
|
justify-content: center;
|
|
@@ -237,26 +237,26 @@ import{r as j,j as e,L as me,u as us,f as ms,N as xs}from"./react-CIPIqkKp.js";i
|
|
|
237
237
|
width: 15px;
|
|
238
238
|
height: 15px;
|
|
239
239
|
}
|
|
240
|
-
`,
|
|
240
|
+
`,Xn=l.div`
|
|
241
241
|
display: flex;
|
|
242
242
|
align-items: center;
|
|
243
243
|
justify-content: space-between;
|
|
244
244
|
gap: 16px;
|
|
245
245
|
flex-wrap: wrap;
|
|
246
|
-
`,
|
|
246
|
+
`,Zn=l.h2`
|
|
247
247
|
margin: 0;
|
|
248
248
|
font-family: ${s.font.sans};
|
|
249
249
|
font-size: 24px;
|
|
250
250
|
font-weight: 700;
|
|
251
251
|
line-height: 1.2;
|
|
252
252
|
color: ${s.colors.white};
|
|
253
|
-
`,
|
|
253
|
+
`,eo=l.div`
|
|
254
254
|
display: flex;
|
|
255
255
|
gap: 4px;
|
|
256
256
|
padding: 4px;
|
|
257
257
|
border-radius: ${s.radius.pill};
|
|
258
258
|
background: rgba(0, 0, 0, 0.22);
|
|
259
|
-
`,
|
|
259
|
+
`,to=l.button`
|
|
260
260
|
border: 0;
|
|
261
261
|
cursor: pointer;
|
|
262
262
|
font-family: ${s.font.sans};
|
|
@@ -285,7 +285,7 @@ import{r as j,j as e,L as me,u as us,f as ms,N as xs}from"./react-CIPIqkKp.js";i
|
|
|
285
285
|
@media (prefers-reduced-motion: reduce) {
|
|
286
286
|
transition: none;
|
|
287
287
|
}
|
|
288
|
-
`,
|
|
288
|
+
`,Gt=l.section`
|
|
289
289
|
display: grid;
|
|
290
290
|
/* Five tiles when the store has resales to report, four when it does not — auto-fit rather than a fixed
|
|
291
291
|
count so neither case leaves a hole. */
|
|
@@ -358,12 +358,12 @@ import{r as j,j as e,L as me,u as us,f as ms,N as xs}from"./react-CIPIqkKp.js";i
|
|
|
358
358
|
line-height: 1.235;
|
|
359
359
|
letter-spacing: -0.02em;
|
|
360
360
|
font-variant-numeric: tabular-nums;
|
|
361
|
-
`,
|
|
361
|
+
`,so=l.span`
|
|
362
362
|
font-size: 20px;
|
|
363
363
|
font-weight: 600;
|
|
364
364
|
color: ${s.colors.gray4};
|
|
365
365
|
margin-right: -2px;
|
|
366
|
-
`,
|
|
366
|
+
`,vt=l.span`
|
|
367
367
|
font-size: 15px;
|
|
368
368
|
font-weight: 600;
|
|
369
369
|
letter-spacing: 0;
|
|
@@ -379,7 +379,7 @@ import{r as j,j as e,L as me,u as us,f as ms,N as xs}from"./react-CIPIqkKp.js";i
|
|
|
379
379
|
font-size: 12px;
|
|
380
380
|
line-height: 1.35;
|
|
381
381
|
color: ${s.colors.gray4};
|
|
382
|
-
|
|
382
|
+
`,Ct=l.span`
|
|
383
383
|
display: inline-flex;
|
|
384
384
|
align-items: center;
|
|
385
385
|
gap: 4px;
|
|
@@ -406,12 +406,12 @@ import{r as j,j as e,L as me,u as us,f as ms,N as xs}from"./react-CIPIqkKp.js";i
|
|
|
406
406
|
.ccy {
|
|
407
407
|
color: ${s.colors.softWhite};
|
|
408
408
|
}
|
|
409
|
-
`,
|
|
409
|
+
`,Le=l.div`
|
|
410
410
|
display: flex;
|
|
411
411
|
align-items: baseline;
|
|
412
412
|
justify-content: space-between;
|
|
413
413
|
gap: 12px;
|
|
414
|
-
`,
|
|
414
|
+
`,ke=l.h2`
|
|
415
415
|
margin: 0;
|
|
416
416
|
font-family: ${s.font.sans};
|
|
417
417
|
font-size: 15px;
|
|
@@ -421,7 +421,7 @@ import{r as j,j as e,L as me,u as us,f as ms,N as xs}from"./react-CIPIqkKp.js";i
|
|
|
421
421
|
display: flex;
|
|
422
422
|
align-items: center;
|
|
423
423
|
gap: 12px;
|
|
424
|
-
`;const
|
|
424
|
+
`;const no=l(Zs)`
|
|
425
425
|
/* Direct child only: the menu's options are buttons as well, and a descendant rule turned them white
|
|
426
426
|
on the white menu, which is a menu you cannot read. */
|
|
427
427
|
> button {
|
|
@@ -447,13 +447,13 @@ import{r as j,j as e,L as me,u as us,f as ms,N as xs}from"./react-CIPIqkKp.js";i
|
|
|
447
447
|
> button .ico {
|
|
448
448
|
color: ${s.colors.softWhite} !important;
|
|
449
449
|
}
|
|
450
|
-
`,
|
|
450
|
+
`,oo=l.span`
|
|
451
451
|
font-family: ${s.font.sans};
|
|
452
452
|
font-size: 12px;
|
|
453
453
|
color: ${s.colors.gray4};
|
|
454
|
-
`,
|
|
454
|
+
`,Yt="24px 56px minmax(170px, 1fr) minmax(236px, 1.34fr) minmax(140px, 1fr) minmax(140px, 1fr) minmax(150px, 1fr) 158px",Qt=l.div`
|
|
455
455
|
display: grid;
|
|
456
|
-
grid-template-columns: ${
|
|
456
|
+
grid-template-columns: ${Yt};
|
|
457
457
|
align-items: center;
|
|
458
458
|
gap: 12px;
|
|
459
459
|
padding: 12px 24px 12px 12px;
|
|
@@ -481,7 +481,7 @@ import{r as j,j as e,L as me,u as us,f as ms,N as xs}from"./react-CIPIqkKp.js";i
|
|
|
481
481
|
${s.media.maxWidth("mobile")} {
|
|
482
482
|
display: none;
|
|
483
483
|
}
|
|
484
|
-
`,
|
|
484
|
+
`,Jt=l.div`
|
|
485
485
|
display: flex;
|
|
486
486
|
flex-direction: column;
|
|
487
487
|
gap: 2px;
|
|
@@ -498,9 +498,9 @@ import{r as j,j as e,L as me,u as us,f as ms,N as xs}from"./react-CIPIqkKp.js";i
|
|
|
498
498
|
> *:last-child {
|
|
499
499
|
border-radius: 0 0 ${s.radius.card} ${s.radius.card};
|
|
500
500
|
}
|
|
501
|
-
`,
|
|
501
|
+
`,Xt=l.div`
|
|
502
502
|
display: grid;
|
|
503
|
-
grid-template-columns: ${
|
|
503
|
+
grid-template-columns: ${Yt};
|
|
504
504
|
align-items: center;
|
|
505
505
|
gap: 12px;
|
|
506
506
|
padding: 12px 24px 12px 12px;
|
|
@@ -579,7 +579,7 @@ import{r as j,j as e,L as me,u as us,f as ms,N as xs}from"./react-CIPIqkKp.js";i
|
|
|
579
579
|
text-align: left;
|
|
580
580
|
}
|
|
581
581
|
}
|
|
582
|
-
`,
|
|
582
|
+
`,ao=l.button`
|
|
583
583
|
position: relative;
|
|
584
584
|
display: grid;
|
|
585
585
|
place-items: center;
|
|
@@ -622,13 +622,13 @@ import{r as j,j as e,L as me,u as us,f as ms,N as xs}from"./react-CIPIqkKp.js";i
|
|
|
622
622
|
transition: none;
|
|
623
623
|
}
|
|
624
624
|
}
|
|
625
|
-
`,
|
|
625
|
+
`,io=l.span`
|
|
626
626
|
width: 56px;
|
|
627
627
|
height: 56px;
|
|
628
628
|
border-radius: ${s.radius.btn};
|
|
629
629
|
overflow: hidden;
|
|
630
630
|
background: ${s.colors.overlayLight};
|
|
631
|
-
`,
|
|
631
|
+
`,ro=l.span`
|
|
632
632
|
flex: none;
|
|
633
633
|
display: inline-flex;
|
|
634
634
|
align-items: center;
|
|
@@ -641,7 +641,7 @@ import{r as j,j as e,L as me,u as us,f as ms,N as xs}from"./react-CIPIqkKp.js";i
|
|
|
641
641
|
border-radius: ${s.radius.pill};
|
|
642
642
|
color: ${s.colors.gray4};
|
|
643
643
|
background: ${s.colors.glassFaint};
|
|
644
|
-
`,
|
|
644
|
+
`,lo=l.span`
|
|
645
645
|
display: flex;
|
|
646
646
|
align-items: center;
|
|
647
647
|
flex-wrap: wrap;
|
|
@@ -659,7 +659,7 @@ import{r as j,j as e,L as me,u as us,f as ms,N as xs}from"./react-CIPIqkKp.js";i
|
|
|
659
659
|
min-width: 0;
|
|
660
660
|
flex: 0 1 auto;
|
|
661
661
|
}
|
|
662
|
-
`,
|
|
662
|
+
`,co=l.span`
|
|
663
663
|
min-width: 0;
|
|
664
664
|
|
|
665
665
|
a {
|
|
@@ -677,7 +677,7 @@ import{r as j,j as e,L as me,u as us,f as ms,N as xs}from"./react-CIPIqkKp.js";i
|
|
|
677
677
|
a:focus-visible {
|
|
678
678
|
text-decoration: underline;
|
|
679
679
|
}
|
|
680
|
-
`,
|
|
680
|
+
`,ho=l.span`
|
|
681
681
|
display: block;
|
|
682
682
|
font-family: ${s.font.sans};
|
|
683
683
|
font-size: 12px;
|
|
@@ -704,17 +704,17 @@ import{r as j,j as e,L as me,u as us,f as ms,N as xs}from"./react-CIPIqkKp.js";i
|
|
|
704
704
|
${s.media.maxWidth("mobile")} {
|
|
705
705
|
display: none;
|
|
706
706
|
}
|
|
707
|
-
`;const
|
|
707
|
+
`;const po=l.span`
|
|
708
708
|
min-width: 0;
|
|
709
709
|
|
|
710
710
|
${s.media.maxWidth("mobile")} {
|
|
711
711
|
display: none;
|
|
712
712
|
}
|
|
713
|
-
`,
|
|
713
|
+
`,At=l.svg`
|
|
714
714
|
display: block;
|
|
715
715
|
width: 100%;
|
|
716
716
|
height: 34px;
|
|
717
|
-
`,
|
|
717
|
+
`,uo=l.div`
|
|
718
718
|
/* A shade deeper than the row it belongs to, not lighter. The rows carry their own dark fill now, and a
|
|
719
719
|
translucent white panel between them read as a different surface breaking the run in half. */
|
|
720
720
|
background: ${s.colors.overlayStrong};
|
|
@@ -723,7 +723,7 @@ import{r as j,j as e,L as me,u as us,f as ms,N as xs}from"./react-CIPIqkKp.js";i
|
|
|
723
723
|
${s.media.maxWidth("mobile")} {
|
|
724
724
|
padding-left: 32px;
|
|
725
725
|
}
|
|
726
|
-
`,
|
|
726
|
+
`,mo=l.div`
|
|
727
727
|
display: flex;
|
|
728
728
|
flex-wrap: wrap;
|
|
729
729
|
gap: 8px 26px;
|
|
@@ -755,7 +755,7 @@ import{r as j,j as e,L as me,u as us,f as ms,N as xs}from"./react-CIPIqkKp.js";i
|
|
|
755
755
|
color: ${s.colors.softWhite};
|
|
756
756
|
font-variant-numeric: tabular-nums;
|
|
757
757
|
}
|
|
758
|
-
`,
|
|
758
|
+
`,xo=l.div`
|
|
759
759
|
display: grid;
|
|
760
760
|
/* The stock track is fixed rather than max-content: each row is its own grid, so a content-sized last
|
|
761
761
|
track let every row measure itself and none of them lined up. 124px clears the widest figure the page
|
|
@@ -794,7 +794,7 @@ import{r as j,j as e,L as me,u as us,f as ms,N as xs}from"./react-CIPIqkKp.js";i
|
|
|
794
794
|
justify-self: end;
|
|
795
795
|
}
|
|
796
796
|
}
|
|
797
|
-
`,
|
|
797
|
+
`,fo=l.span`
|
|
798
798
|
display: block;
|
|
799
799
|
width: 40px;
|
|
800
800
|
height: 40px;
|
|
@@ -809,18 +809,18 @@ import{r as j,j as e,L as me,u as us,f as ms,N as xs}from"./react-CIPIqkKp.js";i
|
|
|
809
809
|
height: 100%;
|
|
810
810
|
object-fit: contain;
|
|
811
811
|
}
|
|
812
|
-
`,
|
|
812
|
+
`,go=l.span`
|
|
813
813
|
min-width: 0;
|
|
814
814
|
display: flex;
|
|
815
815
|
flex-direction: column;
|
|
816
816
|
gap: 2px;
|
|
817
|
-
`,
|
|
817
|
+
`,yo=l.span`
|
|
818
818
|
display: flex;
|
|
819
819
|
flex-wrap: wrap;
|
|
820
820
|
align-items: center;
|
|
821
821
|
gap: 6px;
|
|
822
822
|
min-width: 0;
|
|
823
|
-
`,
|
|
823
|
+
`,bo=l.button`
|
|
824
824
|
flex: none;
|
|
825
825
|
margin: -8px 0;
|
|
826
826
|
padding: 8px 4px;
|
|
@@ -844,7 +844,7 @@ import{r as j,j as e,L as me,u as us,f as ms,N as xs}from"./react-CIPIqkKp.js";i
|
|
|
844
844
|
outline-offset: -2px;
|
|
845
845
|
border-radius: 4px;
|
|
846
846
|
}
|
|
847
|
-
`,
|
|
847
|
+
`,wo=l.span`
|
|
848
848
|
flex: none;
|
|
849
849
|
display: inline-flex;
|
|
850
850
|
align-items: center;
|
|
@@ -857,7 +857,7 @@ import{r as j,j as e,L as me,u as us,f as ms,N as xs}from"./react-CIPIqkKp.js";i
|
|
|
857
857
|
letter-spacing: 0.02em;
|
|
858
858
|
text-transform: uppercase;
|
|
859
859
|
color: ${s.colors.softWhite};
|
|
860
|
-
`,
|
|
860
|
+
`,So=l(xe)`
|
|
861
861
|
font-family: ${s.font.sans};
|
|
862
862
|
font-size: 13px;
|
|
863
863
|
color: inherit;
|
|
@@ -870,7 +870,7 @@ import{r as j,j as e,L as me,u as us,f as ms,N as xs}from"./react-CIPIqkKp.js";i
|
|
|
870
870
|
&:focus-visible {
|
|
871
871
|
text-decoration: underline;
|
|
872
872
|
}
|
|
873
|
-
`,
|
|
873
|
+
`,jo=l.span`
|
|
874
874
|
font-family: ${s.font.sans};
|
|
875
875
|
font-size: 13px;
|
|
876
876
|
white-space: nowrap;
|
|
@@ -887,7 +887,7 @@ import{r as j,j as e,L as me,u as us,f as ms,N as xs}from"./react-CIPIqkKp.js";i
|
|
|
887
887
|
${s.media.maxWidth("mobile")} {
|
|
888
888
|
text-align: left;
|
|
889
889
|
}
|
|
890
|
-
`,
|
|
890
|
+
`,ko=l.span`
|
|
891
891
|
display: block;
|
|
892
892
|
width: 96px;
|
|
893
893
|
height: 6px;
|
|
@@ -910,7 +910,7 @@ import{r as j,j as e,L as me,u as us,f as ms,N as xs}from"./react-CIPIqkKp.js";i
|
|
|
910
910
|
${s.media.maxWidth("mobile")} {
|
|
911
911
|
display: none;
|
|
912
912
|
}
|
|
913
|
-
|
|
913
|
+
`,$o=l.span`
|
|
914
914
|
font-family: ${s.font.sans};
|
|
915
915
|
font-size: 11px;
|
|
916
916
|
font-weight: 600;
|
|
@@ -933,20 +933,20 @@ import{r as j,j as e,L as me,u as us,f as ms,N as xs}from"./react-CIPIqkKp.js";i
|
|
|
933
933
|
text-transform: none;
|
|
934
934
|
color: ${s.colors.softWhite};
|
|
935
935
|
}
|
|
936
|
-
`,
|
|
936
|
+
`,vo=l.span`
|
|
937
937
|
display: flex;
|
|
938
938
|
flex-direction: column;
|
|
939
939
|
align-items: flex-end;
|
|
940
940
|
gap: 4px;
|
|
941
941
|
line-height: 1.25;
|
|
942
|
-
`,
|
|
942
|
+
`,Co=l.span`
|
|
943
943
|
font-size: 10px;
|
|
944
944
|
font-weight: 600;
|
|
945
945
|
letter-spacing: 0.04em;
|
|
946
946
|
text-transform: uppercase;
|
|
947
947
|
color: ${s.colors.gray4};
|
|
948
948
|
margin-right: 4px;
|
|
949
|
-
`,
|
|
949
|
+
`,Ao=l.span`
|
|
950
950
|
font-family: ${s.font.sans};
|
|
951
951
|
font-size: 10px;
|
|
952
952
|
opacity: 0.85;
|
|
@@ -955,7 +955,7 @@ import{r as j,j as e,L as me,u as us,f as ms,N as xs}from"./react-CIPIqkKp.js";i
|
|
|
955
955
|
text-transform: uppercase;
|
|
956
956
|
white-space: nowrap;
|
|
957
957
|
color: ${s.colors.gray4};
|
|
958
|
-
|
|
958
|
+
`,Io=l.span`
|
|
959
959
|
font-family: ${s.font.sans};
|
|
960
960
|
font-size: 11px;
|
|
961
961
|
font-weight: 600;
|
|
@@ -991,7 +991,7 @@ import{r as j,j as e,L as me,u as us,f as ms,N as xs}from"./react-CIPIqkKp.js";i
|
|
|
991
991
|
&[data-sev='soon'] {
|
|
992
992
|
background: ${s.colors.flareAmber};
|
|
993
993
|
}
|
|
994
|
-
`;const
|
|
994
|
+
`;const It=l.button`
|
|
995
995
|
display: inline-grid;
|
|
996
996
|
place-items: center;
|
|
997
997
|
width: 16px;
|
|
@@ -1026,7 +1026,7 @@ import{r as j,j as e,L as me,u as us,f as ms,N as xs}from"./react-CIPIqkKp.js";i
|
|
|
1026
1026
|
font-size: 12px;
|
|
1027
1027
|
color: ${s.colors.gray4};
|
|
1028
1028
|
}
|
|
1029
|
-
`;l(
|
|
1029
|
+
`;l(xe)`
|
|
1030
1030
|
display: inline-block;
|
|
1031
1031
|
margin-top: 4px;
|
|
1032
1032
|
font-family: ${s.font.sans};
|
|
@@ -1044,9 +1044,9 @@ import{r as j,j as e,L as me,u as us,f as ms,N as xs}from"./react-CIPIqkKp.js";i
|
|
|
1044
1044
|
font-size: 18px;
|
|
1045
1045
|
font-weight: 700;
|
|
1046
1046
|
font-variant-numeric: tabular-nums;
|
|
1047
|
-
`;const
|
|
1047
|
+
`;const Ue=l.div`
|
|
1048
1048
|
overflow-x: auto;
|
|
1049
|
-
`,
|
|
1049
|
+
`,tt=l.table`
|
|
1050
1050
|
width: 100%;
|
|
1051
1051
|
/* Fixed, so a page of short names and one of long ones lay their columns out identically — the widths
|
|
1052
1052
|
come from the header row rather than from whatever this page happens to hold. */
|
|
@@ -1123,7 +1123,7 @@ import{r as j,j as e,L as me,u as us,f as ms,N as xs}from"./react-CIPIqkKp.js";i
|
|
|
1123
1123
|
font-variant-numeric: tabular-nums;
|
|
1124
1124
|
white-space: nowrap;
|
|
1125
1125
|
}
|
|
1126
|
-
`,
|
|
1126
|
+
`,Mt=l.span`
|
|
1127
1127
|
display: flex;
|
|
1128
1128
|
align-items: center;
|
|
1129
1129
|
gap: 10px;
|
|
@@ -1140,7 +1140,7 @@ import{r as j,j as e,L as me,u as us,f as ms,N as xs}from"./react-CIPIqkKp.js";i
|
|
|
1140
1140
|
&:focus-visible span {
|
|
1141
1141
|
text-decoration: underline;
|
|
1142
1142
|
}
|
|
1143
|
-
`,
|
|
1143
|
+
`,Wt=l.span`
|
|
1144
1144
|
flex: none;
|
|
1145
1145
|
display: block;
|
|
1146
1146
|
width: 32px;
|
|
@@ -1155,7 +1155,7 @@ import{r as j,j as e,L as me,u as us,f as ms,N as xs}from"./react-CIPIqkKp.js";i
|
|
|
1155
1155
|
height: 100%;
|
|
1156
1156
|
object-fit: contain;
|
|
1157
1157
|
}
|
|
1158
|
-
`,
|
|
1158
|
+
`,Lt=l.a`
|
|
1159
1159
|
max-width: 100%;
|
|
1160
1160
|
white-space: nowrap;
|
|
1161
1161
|
display: inline-flex;
|
|
@@ -1168,7 +1168,7 @@ import{r as j,j as e,L as me,u as us,f as ms,N as xs}from"./react-CIPIqkKp.js";i
|
|
|
1168
1168
|
&:focus-visible {
|
|
1169
1169
|
text-decoration: underline;
|
|
1170
1170
|
}
|
|
1171
|
-
`,
|
|
1171
|
+
`,Mo=l.span`
|
|
1172
1172
|
display: inline-flex;
|
|
1173
1173
|
align-items: center;
|
|
1174
1174
|
gap: 8px;
|
|
@@ -1187,7 +1187,7 @@ import{r as j,j as e,L as me,u as us,f as ms,N as xs}from"./react-CIPIqkKp.js";i
|
|
|
1187
1187
|
border-radius: 100px;
|
|
1188
1188
|
background: #ededed;
|
|
1189
1189
|
}
|
|
1190
|
-
`,
|
|
1190
|
+
`,Tt=l.span`
|
|
1191
1191
|
flex: none;
|
|
1192
1192
|
display: block;
|
|
1193
1193
|
width: 24px;
|
|
@@ -1196,14 +1196,14 @@ import{r as j,j as e,L as me,u as us,f as ms,N as xs}from"./react-CIPIqkKp.js";i
|
|
|
1196
1196
|
background-color: ${s.colors.overlayLight};
|
|
1197
1197
|
background-size: cover;
|
|
1198
1198
|
background-position: center top;
|
|
1199
|
-
`,
|
|
1199
|
+
`,Wo=l.nav`
|
|
1200
1200
|
display: flex;
|
|
1201
1201
|
flex-wrap: wrap;
|
|
1202
1202
|
align-items: center;
|
|
1203
1203
|
justify-content: flex-end;
|
|
1204
1204
|
gap: 12px;
|
|
1205
1205
|
font-variant-numeric: tabular-nums;
|
|
1206
|
-
`,
|
|
1206
|
+
`,Zt=`
|
|
1207
1207
|
display: inline-flex;
|
|
1208
1208
|
align-items: center;
|
|
1209
1209
|
justify-content: center;
|
|
@@ -1232,10 +1232,10 @@ import{r as j,j as e,L as me,u as us,f as ms,N as xs}from"./react-CIPIqkKp.js";i
|
|
|
1232
1232
|
opacity: 0.35;
|
|
1233
1233
|
cursor: default;
|
|
1234
1234
|
}
|
|
1235
|
-
`,
|
|
1236
|
-
${
|
|
1237
|
-
`,
|
|
1238
|
-
${
|
|
1235
|
+
`,Pt=l.button`
|
|
1236
|
+
${Zt}
|
|
1237
|
+
`,Lo=l.button`
|
|
1238
|
+
${Zt}
|
|
1239
1239
|
|
|
1240
1240
|
/* The page you are on is the one solid control in the row, which is how the design marks it. */
|
|
1241
1241
|
&[aria-current='page'] {
|
|
@@ -1248,7 +1248,7 @@ import{r as j,j as e,L as me,u as us,f as ms,N as xs}from"./react-CIPIqkKp.js";i
|
|
|
1248
1248
|
background: ${s.colors.softWhite};
|
|
1249
1249
|
color: ${s.colors.text};
|
|
1250
1250
|
}
|
|
1251
|
-
`,
|
|
1251
|
+
`,To=l.span`
|
|
1252
1252
|
padding: 0 2px;
|
|
1253
1253
|
font-family: ${s.font.sans};
|
|
1254
1254
|
font-size: 12px;
|
|
@@ -1257,7 +1257,7 @@ import{r as j,j as e,L as me,u as us,f as ms,N as xs}from"./react-CIPIqkKp.js";i
|
|
|
1257
1257
|
display: inline-flex;
|
|
1258
1258
|
align-items: center;
|
|
1259
1259
|
gap: 2px;
|
|
1260
|
-
`;const
|
|
1260
|
+
`;const Po=l.span`
|
|
1261
1261
|
font-size: 11px;
|
|
1262
1262
|
font-weight: 700;
|
|
1263
1263
|
letter-spacing: 0.04em;
|
|
@@ -1277,7 +1277,7 @@ import{r as j,j as e,L as me,u as us,f as ms,N as xs}from"./react-CIPIqkKp.js";i
|
|
|
1277
1277
|
height: 1em;
|
|
1278
1278
|
vertical-align: -0.125em;
|
|
1279
1279
|
margin-right: 3px;
|
|
1280
|
-
`;const
|
|
1280
|
+
`;const _o=l.button`
|
|
1281
1281
|
display: block;
|
|
1282
1282
|
width: 100%;
|
|
1283
1283
|
padding: 13px 18px;
|
|
@@ -1309,7 +1309,7 @@ import{r as j,j as e,L as me,u as us,f as ms,N as xs}from"./react-CIPIqkKp.js";i
|
|
|
1309
1309
|
font-size: 11px;
|
|
1310
1310
|
line-height: 1.45;
|
|
1311
1311
|
color: ${s.colors.muted2};
|
|
1312
|
-
`;const
|
|
1312
|
+
`;const es=`
|
|
1313
1313
|
background: linear-gradient(100deg, var(--skeleton-lo) 30%, var(--skeleton-hi) 50%, var(--skeleton-lo) 70%);
|
|
1314
1314
|
background-size: 200% 100%;
|
|
1315
1315
|
animation: shimmer 1.3s infinite linear;
|
|
@@ -1321,14 +1321,14 @@ import{r as j,j as e,L as me,u as us,f as ms,N as xs}from"./react-CIPIqkKp.js";i
|
|
|
1321
1321
|
display: block;
|
|
1322
1322
|
height: 12px;
|
|
1323
1323
|
border-radius: 100px;
|
|
1324
|
-
${
|
|
1325
|
-
`,
|
|
1324
|
+
${es}
|
|
1325
|
+
`,zo=l.span`
|
|
1326
1326
|
display: block;
|
|
1327
1327
|
width: 40px;
|
|
1328
1328
|
height: 40px;
|
|
1329
1329
|
border-radius: ${s.radius.btn};
|
|
1330
|
-
${
|
|
1331
|
-
`,
|
|
1330
|
+
${es}
|
|
1331
|
+
`,_t=l.div`
|
|
1332
1332
|
display: grid;
|
|
1333
1333
|
grid-template-columns: minmax(0, 1fr) minmax(0, 0.7fr) 100px minmax(0, 0.5fr) 70px;
|
|
1334
1334
|
align-items: center;
|
|
@@ -1340,7 +1340,7 @@ import{r as j,j as e,L as me,u as us,f as ms,N as xs}from"./react-CIPIqkKp.js";i
|
|
|
1340
1340
|
}
|
|
1341
1341
|
background: ${s.colors.overlayStrong};
|
|
1342
1342
|
border-radius: ${s.radius.card} ${s.radius.card} 0 0;
|
|
1343
|
-
`,
|
|
1343
|
+
`,zt=l.div`
|
|
1344
1344
|
display: grid;
|
|
1345
1345
|
grid-template-columns: minmax(0, 1fr) minmax(0, 0.7fr) 100px minmax(0, 0.5fr) 70px;
|
|
1346
1346
|
align-items: center;
|
|
@@ -1354,15 +1354,15 @@ import{r as j,j as e,L as me,u as us,f as ms,N as xs}from"./react-CIPIqkKp.js";i
|
|
|
1354
1354
|
> *:last-child {
|
|
1355
1355
|
justify-self: end;
|
|
1356
1356
|
}
|
|
1357
|
-
|
|
1357
|
+
`,$e=l.p`
|
|
1358
1358
|
margin: 0;
|
|
1359
1359
|
font-family: ${s.font.sans};
|
|
1360
1360
|
font-size: 13px;
|
|
1361
1361
|
color: ${s.colors.gray4};
|
|
1362
|
-
`,
|
|
1362
|
+
`,Eo=l(B)`
|
|
1363
1363
|
width: 16px;
|
|
1364
1364
|
height: 16px;
|
|
1365
|
-
`,
|
|
1365
|
+
`,Ke=l.span`
|
|
1366
1366
|
display: inline-flex;
|
|
1367
1367
|
align-items: center;
|
|
1368
1368
|
gap: 4px;
|
|
@@ -1390,21 +1390,21 @@ import{r as j,j as e,L as me,u as us,f as ms,N as xs}from"./react-CIPIqkKp.js";i
|
|
|
1390
1390
|
font-size: 10px;
|
|
1391
1391
|
line-height: 1;
|
|
1392
1392
|
}
|
|
1393
|
-
`,
|
|
1393
|
+
`,Fo=l.div`
|
|
1394
1394
|
margin: 10px 0 -4px;
|
|
1395
|
-
`,
|
|
1395
|
+
`,No=l.h2`
|
|
1396
1396
|
margin: 0;
|
|
1397
1397
|
font-family: ${s.font.sans};
|
|
1398
1398
|
font-size: 19px;
|
|
1399
1399
|
font-weight: 700;
|
|
1400
1400
|
letter-spacing: -0.01em;
|
|
1401
1401
|
color: ${s.colors.softWhite};
|
|
1402
|
-
`,
|
|
1402
|
+
`,Bo=l.p`
|
|
1403
1403
|
margin: 4px 0 0;
|
|
1404
1404
|
font-family: ${s.font.sans};
|
|
1405
1405
|
font-size: 13px;
|
|
1406
1406
|
color: rgba(252, 252, 252, 0.62);
|
|
1407
|
-
`,
|
|
1407
|
+
`,Oo=l.div`
|
|
1408
1408
|
display: grid;
|
|
1409
1409
|
grid-template-columns: repeat(auto-fit, minmax(210px, 300px));
|
|
1410
1410
|
gap: 14px;
|
|
@@ -1413,7 +1413,7 @@ import{r as j,j as e,L as me,u as us,f as ms,N as xs}from"./react-CIPIqkKp.js";i
|
|
|
1413
1413
|
${s.media.maxWidth("mobile")} {
|
|
1414
1414
|
grid-template-columns: minmax(0, 1fr);
|
|
1415
1415
|
}
|
|
1416
|
-
`,
|
|
1416
|
+
`,Do=l(tt)`
|
|
1417
1417
|
thead th:nth-of-type(1) {
|
|
1418
1418
|
width: 40%;
|
|
1419
1419
|
}
|
|
@@ -1442,7 +1442,7 @@ import{r as j,j as e,L as me,u as us,f as ms,N as xs}from"./react-CIPIqkKp.js";i
|
|
|
1442
1442
|
display: flex;
|
|
1443
1443
|
flex-direction: column;
|
|
1444
1444
|
gap: 14px;
|
|
1445
|
-
`;const
|
|
1445
|
+
`;const Ve=l.span`
|
|
1446
1446
|
display: inline-flex;
|
|
1447
1447
|
align-items: center;
|
|
1448
1448
|
justify-content: flex-end;
|
|
@@ -1451,7 +1451,7 @@ import{r as j,j as e,L as me,u as us,f as ms,N as xs}from"./react-CIPIqkKp.js";i
|
|
|
1451
1451
|
[data-kind] .ico {
|
|
1452
1452
|
vertical-align: baseline;
|
|
1453
1453
|
}
|
|
1454
|
-
`,
|
|
1454
|
+
`,Ro=l.span`
|
|
1455
1455
|
font-family: ${s.font.sans};
|
|
1456
1456
|
font-size: 14px;
|
|
1457
1457
|
font-weight: 600;
|
|
@@ -1465,7 +1465,7 @@ import{r as j,j as e,L as me,u as us,f as ms,N as xs}from"./react-CIPIqkKp.js";i
|
|
|
1465
1465
|
font-size: inherit;
|
|
1466
1466
|
font-weight: inherit;
|
|
1467
1467
|
}
|
|
1468
|
-
`,
|
|
1468
|
+
`,qo=l.span`
|
|
1469
1469
|
display: flex;
|
|
1470
1470
|
flex-direction: column;
|
|
1471
1471
|
align-items: center;
|
|
@@ -1476,12 +1476,12 @@ import{r as j,j as e,L as me,u as us,f as ms,N as xs}from"./react-CIPIqkKp.js";i
|
|
|
1476
1476
|
font-size: 12px;
|
|
1477
1477
|
color: ${s.colors.gray4};
|
|
1478
1478
|
text-align: center;
|
|
1479
|
-
`,
|
|
1479
|
+
`,Ho=l.span`
|
|
1480
1480
|
display: inline-flex;
|
|
1481
1481
|
flex-wrap: wrap;
|
|
1482
1482
|
justify-content: center;
|
|
1483
1483
|
gap: 8px;
|
|
1484
|
-
`,
|
|
1484
|
+
`,Uo=l(vs)`
|
|
1485
1485
|
align-self: center;
|
|
1486
1486
|
gap: 4px;
|
|
1487
1487
|
padding: 2px 4px;
|
|
@@ -1495,7 +1495,7 @@ import{r as j,j as e,L as me,u as us,f as ms,N as xs}from"./react-CIPIqkKp.js";i
|
|
|
1495
1495
|
font-size: 14px;
|
|
1496
1496
|
line-height: 20px;
|
|
1497
1497
|
}
|
|
1498
|
-
`,
|
|
1498
|
+
`,Ko=l(qs)`
|
|
1499
1499
|
align-self: center;
|
|
1500
1500
|
gap: 4px;
|
|
1501
1501
|
padding: 4px 8px;
|
|
@@ -1508,7 +1508,7 @@ import{r as j,j as e,L as me,u as us,f as ms,N as xs}from"./react-CIPIqkKp.js";i
|
|
|
1508
1508
|
font-size: 12px;
|
|
1509
1509
|
line-height: 16px;
|
|
1510
1510
|
}
|
|
1511
|
-
`,
|
|
1511
|
+
`,Vo=l.span`
|
|
1512
1512
|
color: ${s.colors.muted2};
|
|
1513
1513
|
|
|
1514
1514
|
b {
|
|
@@ -1521,7 +1521,7 @@ import{r as j,j as e,L as me,u as us,f as ms,N as xs}from"./react-CIPIqkKp.js";i
|
|
|
1521
1521
|
&[data-dir='down'] b {
|
|
1522
1522
|
color: #ff6b6b;
|
|
1523
1523
|
}
|
|
1524
|
-
`,
|
|
1524
|
+
`,ve=l.div`
|
|
1525
1525
|
display: flex;
|
|
1526
1526
|
align-items: center;
|
|
1527
1527
|
justify-content: space-between;
|
|
@@ -1534,7 +1534,7 @@ import{r as j,j as e,L as me,u as us,f as ms,N as xs}from"./react-CIPIqkKp.js";i
|
|
|
1534
1534
|
flex-direction: column;
|
|
1535
1535
|
align-items: stretch;
|
|
1536
1536
|
}
|
|
1537
|
-
`,
|
|
1537
|
+
`,Go=l.div`
|
|
1538
1538
|
display: flex;
|
|
1539
1539
|
align-items: center;
|
|
1540
1540
|
justify-content: space-between;
|
|
@@ -1543,12 +1543,12 @@ import{r as j,j as e,L as me,u as us,f as ms,N as xs}from"./react-CIPIqkKp.js";i
|
|
|
1543
1543
|
${s.media.maxWidth("mobile")} {
|
|
1544
1544
|
flex-wrap: wrap;
|
|
1545
1545
|
}
|
|
1546
|
-
`,
|
|
1546
|
+
`,Yo=l.div`
|
|
1547
1547
|
display: flex;
|
|
1548
1548
|
align-items: center;
|
|
1549
1549
|
gap: 10px;
|
|
1550
1550
|
min-width: 0;
|
|
1551
|
-
`,
|
|
1551
|
+
`,Qo=l(Ht)`
|
|
1552
1552
|
display: inline-flex;
|
|
1553
1553
|
align-items: center;
|
|
1554
1554
|
justify-content: center;
|
|
@@ -1568,7 +1568,7 @@ import{r as j,j as e,L as me,u as us,f as ms,N as xs}from"./react-CIPIqkKp.js";i
|
|
|
1568
1568
|
background: ${s.colors.glassFaint};
|
|
1569
1569
|
color: ${s.colors.softWhite};
|
|
1570
1570
|
}
|
|
1571
|
-
`,
|
|
1571
|
+
`,Jo=l.span`
|
|
1572
1572
|
display: inline-flex;
|
|
1573
1573
|
align-items: center;
|
|
1574
1574
|
justify-content: center;
|
|
@@ -1578,7 +1578,7 @@ import{r as j,j as e,L as me,u as us,f as ms,N as xs}from"./react-CIPIqkKp.js";i
|
|
|
1578
1578
|
font-weight: 600;
|
|
1579
1579
|
font-variant-numeric: tabular-nums;
|
|
1580
1580
|
white-space: nowrap;
|
|
1581
|
-
`,
|
|
1581
|
+
`,Xo=l.span`
|
|
1582
1582
|
display: inline-flex;
|
|
1583
1583
|
align-items: center;
|
|
1584
1584
|
justify-content: flex-end;
|
|
@@ -1593,7 +1593,7 @@ import{r as j,j as e,L as me,u as us,f as ms,N as xs}from"./react-CIPIqkKp.js";i
|
|
|
1593
1593
|
width: 14px;
|
|
1594
1594
|
height: 14px;
|
|
1595
1595
|
}
|
|
1596
|
-
`,
|
|
1596
|
+
`,ts=l.div`
|
|
1597
1597
|
display: grid;
|
|
1598
1598
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
1599
1599
|
gap: 14px;
|
|
@@ -1604,17 +1604,17 @@ import{r as j,j as e,L as me,u as us,f as ms,N as xs}from"./react-CIPIqkKp.js";i
|
|
|
1604
1604
|
${s.media.maxWidth("lg")} {
|
|
1605
1605
|
grid-template-columns: minmax(0, 1fr);
|
|
1606
1606
|
}
|
|
1607
|
-
`,
|
|
1607
|
+
`,Et=l.p`
|
|
1608
1608
|
margin: 2px 0 0;
|
|
1609
1609
|
font-family: ${s.font.sans};
|
|
1610
1610
|
font-size: 13px;
|
|
1611
1611
|
color: ${s.colors.gray4};
|
|
1612
|
-
`,
|
|
1612
|
+
`,Ft=l.div`
|
|
1613
1613
|
display: flex;
|
|
1614
1614
|
align-items: flex-start;
|
|
1615
1615
|
justify-content: space-between;
|
|
1616
1616
|
gap: 12px;
|
|
1617
|
-
`,
|
|
1617
|
+
`,Zo=l(xe)`
|
|
1618
1618
|
display: inline-flex;
|
|
1619
1619
|
align-items: center;
|
|
1620
1620
|
gap: 6px;
|
|
@@ -1630,26 +1630,26 @@ import{r as j,j as e,L as me,u as us,f as ms,N as xs}from"./react-CIPIqkKp.js";i
|
|
|
1630
1630
|
&:hover {
|
|
1631
1631
|
color: ${s.colors.navViolet};
|
|
1632
1632
|
}
|
|
1633
|
-
`,
|
|
1633
|
+
`,Nt=l.span`
|
|
1634
1634
|
display: inline-block;
|
|
1635
1635
|
min-width: 12px;
|
|
1636
1636
|
font-weight: 700;
|
|
1637
1637
|
font-variant-numeric: tabular-nums;
|
|
1638
1638
|
color: ${s.colors.gray4};
|
|
1639
|
-
`,
|
|
1639
|
+
`,Bt=l.span`
|
|
1640
1640
|
display: flex;
|
|
1641
1641
|
align-items: center;
|
|
1642
1642
|
gap: 12px;
|
|
1643
1643
|
min-width: 0;
|
|
1644
|
-
`,
|
|
1644
|
+
`,ss=`
|
|
1645
1645
|
thead th,
|
|
1646
1646
|
tbody td {
|
|
1647
1647
|
padding-left: 12px;
|
|
1648
1648
|
padding-right: 12px;
|
|
1649
1649
|
}
|
|
1650
|
-
`,
|
|
1650
|
+
`,ea=l(tt)`
|
|
1651
1651
|
min-width: 500px;
|
|
1652
|
-
${
|
|
1652
|
+
${ss}
|
|
1653
1653
|
|
|
1654
1654
|
thead th:nth-of-type(1) {
|
|
1655
1655
|
width: 46%;
|
|
@@ -1663,9 +1663,9 @@ import{r as j,j as e,L as me,u as us,f as ms,N as xs}from"./react-CIPIqkKp.js";i
|
|
|
1663
1663
|
thead th:nth-of-type(4) {
|
|
1664
1664
|
width: 96px;
|
|
1665
1665
|
}
|
|
1666
|
-
`,
|
|
1666
|
+
`,ta=l(tt)`
|
|
1667
1667
|
min-width: 580px;
|
|
1668
|
-
${
|
|
1668
|
+
${ss}
|
|
1669
1669
|
|
|
1670
1670
|
thead th:nth-of-type(1) {
|
|
1671
1671
|
width: 34%;
|
|
@@ -1682,10 +1682,10 @@ import{r as j,j as e,L as me,u as us,f as ms,N as xs}from"./react-CIPIqkKp.js";i
|
|
|
1682
1682
|
thead th:nth-of-type(5) {
|
|
1683
1683
|
width: 76px;
|
|
1684
1684
|
}
|
|
1685
|
-
`,
|
|
1685
|
+
`,sa=l.span`
|
|
1686
1686
|
display: flex;
|
|
1687
1687
|
flex-direction: column;
|
|
1688
1688
|
gap: 3px;
|
|
1689
1689
|
min-width: 0;
|
|
1690
|
-
`,Zo=["7d","30d","all"],Ie=8,Me=5,ts="shop.my-store.sort",ea=["sold","earned","selling","newest","name"];function ta(){try{const t=localStorage.getItem(ts);return ea.includes(t)?t:"sold"}catch{return"sold"}}function sa(t){try{localStorage.setItem(ts,t)}catch{}}function pe(t){return t==="asc"?"ascending":t==="desc"?"descending":void 0}function N(t,n){return(t==null?void 0:t.key)===n?t.dir:void 0}function na(t,n){const o=[...t];return n==="name"?o.sort((d,a)=>d.name.localeCompare(a.name)):n==="earned"?Ce(o,d=>d.earningsWei,"desc"):n==="newest"?o.sort((d,a)=>(a.createdAt??0)-(d.createdAt??0)):n==="selling"?o.sort((d,a)=>Number(d.exhausted)-Number(a.exhausted)||a.sold-d.sold||d.name.localeCompare(a.name)):o.sort((d,a)=>a.sold-d.sold||d.name.localeCompare(a.name))}function Nt(t,n,o){return ce(`/item/${t}/${n}`,o)}function ce(t,n){return n?`${t}${t.includes("?")?"&":"?"}env=${n}`:t}function oa(t,n){if(n==null)return null;const o=t.minted-n;return o>0?o:null}const aa={website:"website",twitter:"x-twitter",discord:"discord",facebook:"facebook"},We=5;function ia(t,n){if(n<=5)return Array.from({length:n},(a,h)=>h);const o=[t-1,t,t+1].filter(a=>a>0&&a<n-1),d=[0];return o[0]>1&&d.push("gap"),d.push(...o),o[o.length-1]<n-2&&d.push("gap"),d.push(n-1),d}function Ke({page:t,pages:n,onChange:o,name:d}){return n<=1?null:e.jsxs(Co,{"aria-label":r("myStore.pagination"),children:[e.jsx(Lt,{type:"button",onClick:()=>o(Math.max(0,t-1)),disabled:t===0,"aria-label":r("myStore.prev"),"data-testid":`store-${d}-prev`,children:e.jsx(O,{name:"chevron-down",size:16,"aria-hidden":!0,style:{transform:"rotate(90deg)"}})}),ia(t,n).map((a,h)=>a==="gap"?e.jsx(Io,{children:"…"},`gap-${h}`):e.jsx(Ao,{type:"button","aria-current":a===t?"page":void 0,onClick:()=>o(a),"data-testid":`store-${d}-page-${a+1}`,children:(a+1).toLocaleString()},a)),e.jsx(Lt,{type:"button",onClick:()=>o(Math.min(n-1,t+1)),disabled:t>=n-1,"aria-label":r("myStore.next"),"data-testid":`store-${d}-next`,children:e.jsx(O,{name:"chevron-down",size:16,"aria-hidden":!0,style:{transform:"rotate(-90deg)"}})})]})}function ra(t,n,o){var w,P;const d={"7d":7,"30d":30,all:null}[n],a=j.useMemo(()=>Math.floor(Date.now()/864e5)*864e5+864e5-1,[]),h=d?a-d*864e5:void 0,m=q({queryKey:["store-sales-page",t,n,o],enabled:!!t,placeholderData:z=>z,queryFn:()=>nn({seller:t,from:h},{first:We,skip:o*We})}),p=((w=m.data)==null?void 0:w.total)??0;return{rows:((P=m.data)==null?void 0:P.rows)??[],total:p,pages:Math.ceil(p/We)}}function Ot(t){return q({queryKey:["store-buyers",t],enabled:t.length>0,staleTime:5*6e4,queryFn:()=>Es(t)})}function Bt(t,n){var d;const o=(d=n==null?void 0:n.get(t.toLowerCase()))==null?void 0:d.name;return o?qt(o):Fs(t)}function la(t){return Y.previewHost&&t==="1"}const da=25000n;function ca(t){return t*da/1000000n}function V(t){const n=Number(t/10n**14n)/1e4;return n>=10?Math.round(n).toLocaleString():n.toFixed(2)}function Dt(t){const n=Math.max(1,Math.round((Date.now()-t)/6e4));if(n<60)return r("myStore.agoMinutes",{n});const o=Math.round(n/60);return o<24?r("myStore.agoHours",{n:o}):r("myStore.agoDays",{n:Math.round(o/24)})}function ha({series:t}){const n=j.useId(),o=Math.max(...t,0),d=t.length>1?92/(t.length-1):0,a=p=>o===0?27:27-p/o*22,m=t.map((p,w)=>`${(2+w*d).toFixed(1)} ${a(p).toFixed(1)}`).join(" L ");return o===0?e.jsx(vt,{viewBox:"0 0 96 30",role:"img","aria-label":r("myStore.trendNone"),children:e.jsx("path",{d:"M2 27 L94 27",fill:"none",stroke:s.colors.cardLine,strokeWidth:"2",strokeLinecap:"round"})}):e.jsxs(vt,{viewBox:"0 0 96 30",role:"img","aria-label":r("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 ${m} L 94 29 L 2 29 Z`,fill:`url(#${n}-fill)`}),e.jsx("path",{d:`M ${m}`,fill:"none",stroke:`url(#${n})`,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}function pa({collection:t,discount:n,savesByKey:o,open:d,onToggle:a,onManage:h,onIssue:m,env:p}){var P,z;const w=`store-items-${t.contractAddress}`;return e.jsxs(e.Fragment,{children:[e.jsxs(Qt,{"data-testid":"store-collection","data-exhausted":t.exhausted||void 0,children:[e.jsx(to,{type:"button","aria-expanded":d,"aria-controls":w,"aria-label":r(d?"myStore.collapse":"myStore.expand",{name:t.name}),onClick:a,"data-testid":"store-collection-toggle",children:e.jsx(To,{name:"chevron-down",className:"ico","aria-hidden":!0})}),e.jsx(so,{"data-testid":"store-collection-thumb",children:e.jsx(Ls,{contractAddress:t.contractAddress})}),e.jsxs(ao,{children:[e.jsxs(oo,{children:[e.jsx(me,{to:ce(`/collection/${t.contractAddress}`,p),"data-testid":"store-collection-name",children:t.name}),t.exhausted?e.jsx(no,{"data-testid":"store-collection-soldout",children:r("myStore.collExhausted")}):null]}),e.jsxs(io,{children:[r("myStore.itemsCount",{count:t.items.length}),t.listed>0?` · ${r("myStore.listedCount",{count:t.listed})}`:"",!t.exhausted&&t.soldOut>0?` · ${r("myStore.soldOutCount",{count:t.soldOut})}`:""]})]}),e.jsx(Oo,{"data-testid":"store-collection-discount",children:n?e.jsxs(e.Fragment,{children:[e.jsxs(Bo,{children:[e.jsx(Do,{pct:n.discount/1e4}),e.jsx(Ro,{until:n.checks.expiration})]}),e.jsx(qo,{children:Us(n)?r("myStore.discountUsed",{used:((P=n.state)==null?void 0:P.uses)??0,total:n.checks.uses}):r("myStore.discountUsedUncapped",{used:((z=n.state)==null?void 0:z.uses)??0})})]}):r("myStore.noDiscountShort")}),e.jsxs(No,{"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(H,{kind:"mana"}),V(t.earningsWei)]}),e.jsx(ro,{children:e.jsx(ha,{series:t.trend})}),e.jsxs(Ko,{as:"a",href:`${Y.builderUrl}/collections${t.collectionId?`/${t.collectionId}`:""}`,target:"_blank",rel:"noopener noreferrer",onClick:h,"data-testid":"store-manage",children:[r("myStore.manage"),e.jsx(O,{name:"external-link",size:14,"aria-hidden":!0})]})]}),d?e.jsxs(lo,{id:w,"data-testid":"store-items",children:[e.jsxs(co,{"data-testid":"store-collection-stats",children:[e.jsxs("span",{children:[e.jsxs("b",{children:[e.jsx(H,{kind:"mana"}),V(t.earningsWei)]}),r("myStore.collEarned")]}),e.jsxs("span",{children:[e.jsx("b",{children:t.sold.toLocaleString()}),r("myStore.collSold")]}),e.jsxs("span",{children:[e.jsx("b",{children:t.items.length}),r("myStore.collItems",{count:t.items.length})]}),e.jsxs("span",{children:[e.jsx("b",{children:t.listed+t.classic}),r("myStore.collListed")]})]}),t.items.map(u=>{const W=oa(u,u.lifetimeSold);return e.jsxs(ho,{"data-testid":"store-item",children:[e.jsx(po,{style:{backgroundImage:Ye(u.rarity)},children:u.thumbnail?e.jsx("img",{src:u.thumbnail,alt:"",loading:"lazy"}):null}),e.jsxs(uo,{children:[e.jsx(go,{to:ce(`/item/${t.contractAddress}/${u.itemId}`,p),title:u.name,children:u.name}),e.jsxs(mo,{children:[e.jsx(fo,{style:{background:zs(u.rarity)},title:Ps(u.rarity),children:Ts(u.rarity)}),e.jsx(wo,{"data-state":u.state,children:u.state==="soldout"?null:u.state==="unlisted"?r("myStore.stateUnlisted"):u.state==="unknown"?r("myStore.stateUnknown"):e.jsxs(e.Fragment,{children:[e.jsx(jo,{children:r("myStore.onSaleFor")}),u.manaWei?e.jsxs(e.Fragment,{children:[e.jsx(H,{kind:"mana"}),V(B(u.manaWei))]}):e.jsxs(e.Fragment,{children:[e.jsx(H,{kind:"credits"}),e.jsx(_s,{credits:u.priceCredits??0})]})]})}),m&&u.left>0?e.jsx(xo,{type:"button",onClick:()=>m(u),"data-testid":"store-item-issue",children:r("myStore.issueCopies")}):null]})]}),e.jsxs(yo,{children:[u.sold.toLocaleString(),e.jsxs("small",{children:[" ",r("myStore.sold")]})]}),e.jsxs(Go,{"data-testid":"store-item-saves",title:r("myStore.savesHint",{count:o.get(u.key)??0}),children:[e.jsx(O,{name:"heart",className:"ico","aria-hidden":!0}),(o.get(u.key)??0).toLocaleString()]}),e.jsx(bo,{role:"progressbar","aria-valuemin":0,"aria-valuemax":u.minted+u.left,"aria-valuenow":u.minted,"aria-label":r("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(So,{title:u.lifetimeSold==null?void 0:r("myStore.runBreakdown",{total:u.minted+u.left,sold:u.lifetimeSold,sent:u.minted-u.lifetimeSold,left:u.left}),children:[e.jsx($o,{"data-out":u.left===0,"data-testid":"store-item-stock",children:Ht(u.left===0?"myStore.stockNone":"myStore.stockLeft",{b:F=>e.jsx("b",{children:F}),left:u.left.toLocaleString(),total:(u.minted+u.left).toLocaleString()})}),W?e.jsx(ko,{"data-testid":"store-item-issued",children:r("myStore.sentDirectly",{count:W.toLocaleString()})}):null]})]},u.key)})]}):null]})}function Ve(t){return!!t&&!(t.current===0&&t.previous===0)}function Ge({delta:t,period:n}){if(!t||t.current===0&&t.previous===0)return null;const o=n==="all"?"":r(`myStore.vs${n}`);if(t.pct===null)return e.jsxs(qe,{"data-dir":"new","data-testid":"store-delta",children:[r("myStore.deltaNew"),o?e.jsx("span",{className:"delta__against",children:o}):null]});const d=Math.round(t.pct);if(d===0)return e.jsxs(qe,{"data-dir":"flat","data-testid":"store-delta",children:[r("myStore.deltaFlat"),o?e.jsx("span",{className:"delta__against",children:o}):null]});const a=d>0,m=d>=1e3?r("myStore.deltaTimes",{times:Math.round(d/100+1).toLocaleString()}):`${Math.abs(d)}%`;return e.jsxs(qe,{"data-dir":a?"up":"down","data-testid":"store-delta","aria-label":r(a?"myStore.deltaUpAria":"myStore.deltaDownAria",{pct:m,against:o}),children:[e.jsx("span",{className:"delta__arrow","aria-hidden":!0,children:a?"▲":"▼"}),m,o?e.jsx("span",{className:"delta__against",children:o}):null]})}function ua(){return e.jsxs("div",{"data-testid":"store-skeleton","aria-hidden":!0,children:[e.jsx(Kt,{children:[0,1,2,3].map(t=>e.jsxs(X,{children:[e.jsx(b,{style:{width:"46%"}}),e.jsx(b,{style:{width:"32%",height:38}}),e.jsx(b,{style:{width:"64%",height:15}})]},t))}),e.jsxs(Z,{style:{marginTop:22},children:[e.jsxs(Ae,{children:[e.jsx(b,{style:{width:96,height:14}}),e.jsx(b,{style:{width:120}})]}),e.jsxs(Yt,{children:[e.jsxs(Gt,{"aria-hidden":!0,children:[e.jsx("span",{}),e.jsx("span",{}),e.jsx(b,{style:{width:84,height:12}}),e.jsx(b,{style:{width:74,height:12}}),e.jsx(b,{style:{width:62,height:12}}),e.jsx(b,{style:{width:68,height:12}}),e.jsx(b,{style:{width:82,height:12}}),e.jsx(b,{style:{width:60,height:12}})]}),Array.from({length:Ie},(t,n)=>e.jsxs(Qt,{children:[e.jsx("span",{}),e.jsx(Lo,{}),e.jsx(b,{style:{width:"82%",height:14}}),e.jsx(b,{style:{width:"70%",height:20}}),e.jsx(b,{style:{width:72}}),e.jsx(b,{style:{width:76}}),e.jsx(b,{style:{height:20}}),e.jsx(b,{style:{width:96,height:32,borderRadius:8}})]},n))]}),e.jsx(Wo,{as:"div",children:e.jsx(b,{style:{width:150,height:13,margin:"0 auto"}})})]}),e.jsx(Zt,{style:{marginTop:22},children:[0,1].map(t=>e.jsxs(Z,{children:[e.jsxs(Ae,{children:[e.jsx(b,{style:{width:110,height:14}}),e.jsx(b,{style:{width:80}})]}),e.jsx(Tt,{children:[0,1,2,3].map(n=>e.jsx(b,{style:{width:46,height:9}},n))}),Array.from({length:We},(n,o)=>e.jsxs(Pt,{children:[e.jsx(b,{style:{width:"38%"}}),e.jsx(b,{style:{width:"24%"}}),e.jsx(b,{style:{width:56}}),e.jsx(b,{style:{width:64}})]},o))]},t))}),e.jsxs(Z,{style:{marginTop:22},children:[e.jsxs(Ae,{children:[e.jsx(b,{style:{width:104,height:14}}),e.jsx(b,{style:{width:90}})]}),e.jsx(Tt,{children:[0,1,2,3,4].map(t=>e.jsx(b,{style:{width:46,height:9}},t))}),Array.from({length:Me},(t,n)=>e.jsxs(Pt,{children:[e.jsx(b,{style:{width:"30%"}}),e.jsx(b,{style:{width:"18%"}}),e.jsx(b,{style:{width:72,height:18}}),e.jsx(b,{style:{width:"14%"}}),e.jsx(b,{style:{width:54}})]},n))]})]})}function _a(){var mt,xt;js({title:r("myStore.title"),noindex:!0});const{session:t,error:n,signIn:o}=ks(),[d]=us(),[a,h]=j.useState("30d"),[m,p]=j.useState(()=>new Set),[w,P]=j.useState(0),[z,u]=j.useState(0),[W,F]=j.useState(!1),[_,D]=j.useState(ta),[U,ee]=j.useState(0),[L,Q]=j.useState(null),[I,te]=j.useState(null),[S,T]=j.useState(null),[A,c]=j.useState(null),g=$s(),[k,$]=j.useState(!1),v=vs(),R=Cs(),K=la(d.get("mock")),se=d.get("env"),ss=ms("/").replace(/\/$/,""),Le=i=>`${ss}${i}`,et=K;function C(i,y={}){et||Ws(i,y)}const{data:J}=As(t==null?void 0:t.address),Te=t==null?void 0:t.address,{data:ne}=Xs(Te),tt=Zs.filter(i=>ne==null?void 0:ne.links[i]),st=(xt=(mt=J==null?void 0:J.avatar)==null?void 0:mt.snapshots)==null?void 0:xt.face256,nt=J!=null&&J.name?qt(J.name):null,{stats:ns,trend:ot,savesByKey:os,saleable:at,isLoading:as,error:is}=Sn(t,a),x=K?Xe:ns,M=K?{...ot,collectors:Mn,buyers:Wn}:ot,rs=K?!1:as,ls=K?Tn:os,Pe=ra(t==null?void 0:t.address,a,z),xe=K?zn:Pe.rows,ds=j.useMemo(()=>[...new Set(xe.map(i=>i.buyer.toLowerCase()))].sort(),[xe]),{data:fe,isLoading:cs}=Ot(ds),ze=Math.max(1,Math.ceil(M.buyers.length/Me)),ge=Math.min(U,ze-1),it=j.useMemo(()=>{if(!S)return M.buyers;const i={items:y=>y.items,collections:y=>y.collections,last:y=>y.lastAt,spent:y=>y.spentWei}[S.key];return Ce(M.buyers,i,S.dir)},[M.buyers,S]),_e=j.useMemo(()=>it.slice(ge*Me,(ge+1)*Me),[it,ge]),hs=j.useMemo(()=>_e.map(i=>i.address).sort(),[_e]),{data:ye}=Ot(hs),{data:ps}=Rs(t==null?void 0:t.address,v&&!!t),rt=((x==null?void 0:x.collections)??[]).some(i=>i.exhausted),Fe=_==="selling"&&!rt?"sold":_,lt=Math.max(1,Math.ceil(((x==null?void 0:x.collections.length)??0)/Ie)),dt=j.useMemo(()=>{const i=(x==null?void 0:x.collections)??[];if(!L)return na(i,Fe);const y={name:f=>f.name,claimed:f=>f.claimed,earnings:f=>f.earningsWei,sold:f=>f.sold}[L.key];return Ce(i,y,L.dir)},[x,Fe,L]),Ee=j.useMemo(()=>{const i=hn((x==null?void 0:x.collections)??[]).map((f,E)=>({...f,rank:E+1}));if(!I)return i;const y={name:f=>f.name,collection:f=>f.collectionName,sold:f=>f.sold,earnings:f=>f.earnedWei}[I.key];return Ce(i,y,I.dir)},[x,I]);function be(i,y){const f=De(I,i,y);C("Shop Sorted Store Table",{table:"best_sellers",column:f.key,direction:f.dir}),te(f)}const we=Math.min(w,lt-1),ct=j.useMemo(()=>dt.slice(we*Ie,(we+1)*Ie),[dt,we]);if(R==="off")return e.jsx(xs,{to:"/",replace:!0});if(!t&&!K)return e.jsxs(Is,{children:[e.jsx(Ms,{testId:"my-store-signin",icon:en,title:r("myStore.signInTitle"),body:r("myStore.signInBody"),cta:{label:r("storeSettings.signIn"),onClick:()=>o()},ctaVariant:"solid",fill:!0}),e.jsx(yt,{message:n})]});const ht=K?Ln:ps,Ne=new Map;for(const i of ht??[])if(!(i.status!=="active"&&i.status!=="scheduled"))for(const y of i.collections)Ne.set(y.toLowerCase(),i);const pt=(ht??[]).filter(i=>i.status==="active"||i.status==="scheduled"),ut=a==="7d"?7:a==="30d"?30:null,Oe=((x==null?void 0:x.collections)??[]).reduce((i,y)=>i+y.items.length,0);return e.jsx(Qs,{children:e.jsx(Js,{children:e.jsxs(_n,{"data-testid":"my-store",children:[A&&t?e.jsx(Vs,{item:{contractAddress:A.contractAddress,chainId:Y.chainId,itemId:A.item.itemId,name:A.item.name,thumbnail:A.item.thumbnail,available:A.item.left},session:t,onClose:()=>{c(null),g.invalidateQueries({queryKey:["store-catalogue"]}),g.invalidateQueries({queryKey:["store-public-catalogue"]})}}):null,W&&t?e.jsx(qs,{session:t,collections:at,onClose:()=>F(!1),source:"my_store",silent:et}):null,e.jsxs(Fn,{children:[e.jsxs(En,{children:[e.jsx(On,{style:st?{backgroundImage:`url(${st})`}:void 0,"data-testid":"store-avatar","aria-hidden":!0}),e.jsxs(Nn,{children:[nt?e.jsx(Bn,{children:nt}):null,e.jsxs(Rn,{children:[e.jsx(Dn,{children:r("myStore.title")}),x?e.jsxs(jt,{children:[r("myStore.summary",{collections:x.collections.length,items:Oe}),tt.length>0?e.jsx(Kn,{"data-testid":"store-socials",children:tt.map(i=>e.jsx(Vn,{href:(ne==null?void 0:ne.links[i])??"",target:"_blank",rel:"noopener noreferrer",onClick:()=>C("Shop Clicked Store Action",{action:"social_link",link_type:i}),title:r(`creator.link.${i}`),"aria-label":r(`creator.link.${i}`),children:e.jsx(O,{name:aa[i],className:"ico","aria-hidden":!0})},i))}):null]}):e.jsx(jt,{children:e.jsx(b,{style:{width:170,background:"rgba(252, 252, 252, 0.18)",animation:"none"}})})]})]})]}),e.jsxs(qn,{children:[Te?e.jsxs(Hn,{href:Le(ce(`/items/creator/${Te}`,se)),target:"_blank",rel:"noopener noreferrer",onClick:()=>C("Shop Clicked Store Action",{action:"view_public_store"}),"data-testid":"store-view-public",children:[r("myStore.viewPublicStore"),e.jsx(O,{name:"external-link",className:"ico","aria-hidden":!0})]}):null,e.jsxs(Un,{to:ce("/store-settings",se),state:{from:"/my-store"},onClick:()=>C("Shop Clicked Store Action",{action:"edit_store"}),"data-testid":"store-edit",children:[e.jsx(O,{name:"pen",className:"ico","aria-hidden":!0}),r("myStore.editStore")]})]})]}),e.jsxs(Gn,{children:[e.jsx(Yn,{children:r("myStore.performance")}),e.jsx(Qn,{role:"group","aria-label":r("myStore.period"),children:Zo.map(i=>e.jsx(Jn,{type:"button","aria-pressed":a===i,onClick:()=>{i!==a&&C("Shop Changed Store Period",{period:i,previous_period:a}),h(i),u(0)},"data-testid":`store-period-${i}`,children:r(`myStore.period${i}`)},i))})]}),e.jsx(yt,{message:is?r("myStore.error"):null,testId:"my-store-error"}),rs||!x?e.jsx(ua,{}):e.jsxs(e.Fragment,{children:[e.jsxs(Kt,{"aria-label":r("myStore.summaryAria"),children:[e.jsxs(X,{children:[e.jsxs(ie,{children:[r("myStore.tileSold"),e.jsx(re,{"aria-hidden":!0,children:"🛍️"})]}),e.jsx(le,{children:e.jsx("span",{"data-testid":"store-sold",children:x.sold.toLocaleString()})}),e.jsxs(de,{children:[e.jsx(Ge,{delta:M.sold,period:a}),!Ve(M.sold)&&(x.sold===0?r("myStore.tileSoldNone"):x.resales===0?r("myStore.tileSoldFootMintsOnly",{mints:x.mints}):r("myStore.tileSoldFoot",{mints:x.mints,resales:x.resales}))]})]}),e.jsxs(X,{children:[e.jsxs(ie,{children:[r("myStore.tileEarnings"),e.jsx(re,{"aria-hidden":!0,children:"💰"})]}),e.jsxs(le,{children:[e.jsx(H,{kind:"mana"}),V(x.earningsWei),e.jsx(kt,{children:r("myStore.manaUnit")})]}),e.jsxs(de,{children:[e.jsx(Ge,{delta:M.earnings,period:a}),x.partial?e.jsxs(e.Fragment,{children:[e.jsx($t,{children:r("myStore.estimate")})," ",r("myStore.tileEarningsPartial")]}):Ve(M.earnings)?null:r("myStore.tileEarningsFoot")]})]}),e.jsxs(X,{children:[e.jsxs(ie,{children:[r("myStore.tileListed"),e.jsx(re,{"aria-hidden":!0,children:"🏷️"})]}),e.jsxs(le,{children:[x.listed+x.classic,e.jsx(kt,{children:r("myStore.ofTotal",{n:Oe})})]}),e.jsx(de,{children:Oe===0?r("myStore.tileListedNone"):r("myStore.tileListedFoot",{count:x.neverListed})})]}),e.jsxs(X,{children:[e.jsxs(ie,{children:[r("myStore.tileDiscounts"),e.jsx(re,{"aria-hidden":!0,children:"🔥"})]}),e.jsx(le,{"data-testid":"store-discounts",children:pt.length}),e.jsx(de,{children:pt.length>0?r("myStore.tileDiscountsFoot"):r("myStore.tileDiscountsNone")})]})]}),x.classic>0&&!k?e.jsx(Hs,{count:x.classic,reason:"discounts",to:ce("/activity?section=listings",se),onDismiss:()=>{C("Shop Clicked Store Action",{action:"dismiss_pricing_banner",classic_items:x.classic}),$(!0)},onCta:()=>C("Shop Clicked Store Action",{action:"update_prices",classic_items:x.classic})}):null,e.jsxs(Z,{"aria-labelledby":"store-coll-h",children:[e.jsxs(Ho,{children:[e.jsx(Se,{id:"store-coll-h",children:r("myStore.collectionsCount",{count:x.collections.length})}),e.jsxs(Uo,{children:[x.collections.length>1?e.jsx(Zn,{options:[{value:"sold",label:r("myStore.sortSold")},{value:"earned",label:r("myStore.sortEarned")},...rt?[{value:"selling",label:r("myStore.sortSelling")}]:[],...x.collections.some(i=>i.createdAt)?[{value:"newest",label:r("myStore.sortNewest")}]:[],{value:"name",label:r("myStore.sortName")}],value:L?void 0:Fe,placeholder:r("myStore.sortCustom"),onChange:i=>{C("Shop Sorted Store Collections",{sort:i}),D(i),Q(null),P(0),sa(i)},align:"right",ariaLabel:r("myStore.sortBy"),className:"store-sort"}):null,K||v&&t&&at.length>0?e.jsxs(Rt,{variant:"red",size:"sm",onClick:()=>F(!0),"data-testid":"store-new-discount",children:[e.jsx("span",{"aria-hidden":!0,children:"🔥"}),r("myStore.newDiscount")]}):null]})]}),x.collections.length===0?e.jsx(je,{children:r("myStore.noCollections")}):e.jsx(e.Fragment,{children:e.jsxs(Yt,{children:[e.jsxs(Gt,{children:[e.jsx("span",{}),e.jsx("span",{}),[["name",r("myStore.colCollection"),"asc"],null,["claimed",r("myStore.colClaimed"),"desc"],["earnings",r("myStore.colEarnings"),"desc"],["sold",ut?r("myStore.colTrend",{days:ut}):r("myStore.colTrendAll"),"desc"]].map((i,y)=>i?e.jsx("span",{children:e.jsx(ae,{label:i[1],dir:N(L,i[0]),testId:`store-sort-collections-${i[0]}`,onSort:()=>{const f=De(L,i[0],i[2]);C("Shop Sorted Store Table",{table:"collections",column:f.key,direction:f.dir}),Q(f),P(0)}})},i[0]):e.jsx("span",{children:r("myStore.colDiscounts")},`plain-${y}`)),e.jsx("span",{children:r("myStore.colActions")})]}),ct.map(i=>e.jsx(pa,{collection:i,discount:Ne.get(i.contractAddress)??null,savesByKey:ls,env:se,open:m.has(i.contractAddress),onToggle:()=>{m.has(i.contractAddress)||C("Shop Expanded Store Collection",{contract_address:i.contractAddress,items:i.items.length,exhausted:i.exhausted,has_discount:Ne.has(i.contractAddress)}),p(y=>{const f=new Set(y);return f.delete(i.contractAddress)||f.add(i.contractAddress),f})},onManage:()=>C("Shop Clicked Store Action",{action:"manage_collection",contract_address:i.contractAddress}),onIssue:t?y=>{C("Shop Clicked Store Action",{action:"issue_copies",contract_address:i.contractAddress}),c({item:y,contractAddress:i.contractAddress})}:void 0},i.contractAddress))]})}),x.collections.length>0?e.jsxs(Ue,{children:[e.jsxs("span",{"data-testid":"store-showing",children:[r("myStore.showingOf",{shown:ct.length.toLocaleString(),total:x.collections.length.toLocaleString()}),x.breakdownPartial?e.jsxs(e.Fragment,{children:[" · ",r("myStore.soldPartial",{n:x.fetched.toLocaleString()})]}):null]}),e.jsx(Ke,{page:we,pages:lt,onChange:i=>{C("Shop Paged Store Table",{table:"collections",page:i+1}),P(i)},name:"collections"})]}):null]}),e.jsxs(Zt,{children:[e.jsxs(Z,{"aria-labelledby":"store-best-h",children:[e.jsx(_t,{children:e.jsxs("div",{children:[e.jsx(Se,{id:"store-best-h",children:r("myStore.bestSellers")}),e.jsxs(zt,{children:[r("myStore.bestSellersSub",{n:Ee.length}),x.breakdownPartial?e.jsxs(e.Fragment,{children:[" · ",r("myStore.soldPartial",{n:x.fetched.toLocaleString()})]}):null]})]})}),Ee.length===0?e.jsx(je,{children:r("myStore.noBestSellers")}):e.jsx(Re,{children:e.jsxs(Qo,{children:[e.jsx("thead",{children:e.jsxs("tr",{children:[e.jsx("th",{scope:"col","aria-sort":pe(N(I,"name")),children:e.jsxs(Et,{children:[e.jsx(Ft,{"aria-hidden":!0,children:"#"}),e.jsx(ae,{label:r("myStore.colItem"),dir:N(I,"name"),testId:"store-sort-best-name",onSort:()=>be("name","asc")})]})}),e.jsx("th",{scope:"col","aria-sort":pe(N(I,"collection")),children:e.jsx(ae,{label:r("myStore.colCollection"),dir:N(I,"collection"),testId:"store-sort-best-collection",onSort:()=>be("collection","asc")})}),e.jsx("th",{scope:"col",style:{textAlign:"center"},"aria-sort":pe(N(I,"sold")),children:e.jsx(ae,{label:r("myStore.colSold"),dir:N(I,"sold"),testId:"store-sort-best-sold",onSort:()=>be("sold","desc")})}),e.jsx("th",{scope:"col",style:{textAlign:"right"},"aria-sort":pe(N(I,"earnings")),children:e.jsx(ae,{label:r("myStore.colEarnings"),dir:N(I,"earnings"),align:"right",testId:"store-sort-best-earnings",onSort:()=>be("earnings","desc")})})]})}),e.jsx("tbody",{children:Ee.map(i=>e.jsxs("tr",{"data-testid":"store-best",children:[e.jsx("td",{children:e.jsxs(Et,{children:[e.jsx(Ft,{children:i.rank}),e.jsxs(At,{as:"a",href:Le(Nt(i.contractAddress,i.itemId,se)),target:"_blank",rel:"noopener noreferrer",onClick:()=>C("Shop Clicked Store Action",{action:"open_item",table:"best_sellers",rank:i.rank}),"data-testid":"store-best-item",children:[e.jsx(It,{style:{backgroundImage:Ye(i.rarity)},children:i.thumbnail?e.jsx("img",{src:i.thumbnail,alt:"",loading:"lazy"}):null}),e.jsx("span",{children:i.name})]})]})}),e.jsx("td",{"data-dim":!0,children:i.collectionName}),e.jsx("td",{style:{textAlign:"center",fontWeight:600},"data-testid":"store-best-sold",children:i.sold.toLocaleString()}),e.jsx("td",{"data-money":!0,children:e.jsxs(He,{children:[e.jsx(H,{kind:"mana"}),V(i.earnedWei)]})})]},i.key))})]})})]}),e.jsxs(Z,{"aria-labelledby":"store-feed-h",children:[e.jsxs(_t,{children:[e.jsxs("div",{children:[e.jsx(Se,{id:"store-feed-h",children:r("myStore.recentSales")}),e.jsx(zt,{children:r("myStore.recentSalesSub")})]}),e.jsxs(Yo,{to:"/activity",onClick:()=>C("Shop Clicked Store Action",{action:"view_all_sales"}),children:[r("myStore.viewAll"),e.jsx(O,{name:"arrow-up-right",size:14,"aria-hidden":!0})]})]}),xe.length===0?e.jsx(je,{children:r("myStore.noSales")}):e.jsx(Re,{children:e.jsxs(Jo,{children:[e.jsx("thead",{children:e.jsxs("tr",{children:[e.jsx("th",{scope:"col",children:r("myStore.colItem")}),e.jsx("th",{scope:"col",children:r("myStore.colCollection")}),e.jsx("th",{scope:"col",style:{textAlign:"right"},children:r("myStore.colPrice")}),e.jsx("th",{scope:"col",children:r("myStore.colBuyer")}),e.jsx("th",{scope:"col",children:r("myStore.colDate")})]})}),e.jsx("tbody",{children:xe.map(i=>{var ft,gt;const y=x.collections.find(Be=>Be.contractAddress===i.contractAddress.toLowerCase()),f=y==null?void 0:y.items.find(Be=>Be.itemId===i.itemId),E=fe==null?void 0:fe.get(i.buyer.toLowerCase()),he=(gt=(ft=E==null?void 0:E.avatar)==null?void 0:ft.snapshots)==null?void 0:gt.face256;return e.jsxs("tr",{"data-testid":"store-sale",children:[e.jsx("td",{children:e.jsxs(At,{as:i.itemId?"a":"span",...i.itemId?{href:Le(Nt(i.contractAddress,i.itemId,se)),target:"_blank",rel:"noopener noreferrer",onClick:()=>C("Shop Clicked Store Action",{action:"open_item",table:"recent_sales"}),"data-testid":"store-sale-item"}:{},children:[e.jsx(It,{style:{backgroundImage:Ye(f==null?void 0:f.rarity)},children:f!=null&&f.thumbnail?e.jsx("img",{src:f.thumbnail,alt:"",loading:"lazy"}):null}),e.jsxs(Xo,{children:[e.jsx("span",{children:(f==null?void 0:f.name)??(y==null?void 0:y.name)??i.itemId??r("myStore.unknownItem")}),e.jsx(ke,{content:r("myStore.kindHint"),children:e.jsx(Mo,{"data-kind":i.type,"data-testid":"store-kind-hint",children:i.type==="mint"?r("myStore.kindMint"):r("myStore.kindResale")})})]})]})}),e.jsx("td",{"data-dim":!0,children:(y==null?void 0:y.name)??"—"}),e.jsx("td",{"data-money":!0,children:e.jsxs(He,{children:[e.jsx(H,{kind:"mana"}),V(B(i.price))]})}),e.jsx("td",{children:cs?e.jsxs(vo,{"aria-hidden":!0,children:[e.jsx("i",{}),e.jsx("b",{})]}):e.jsxs(Mt,{href:`${Y.profileUrl}/${i.buyer}`,target:"_blank",rel:"noopener noreferrer",onClick:()=>C("Shop Clicked Store Action",{action:"open_buyer",table:"recent_sales"}),"data-testid":"store-sale-buyer",children:[e.jsx(Wt,{style:he?{backgroundImage:`url(${he})`}:void 0,"aria-hidden":!0}),Bt(i.buyer,fe)]})}),e.jsx("td",{"data-dim":!0,children:Dt(i.timestamp)})]},i.id)})})]})}),Pe.pages>1?e.jsxs(Ue,{children:[e.jsx("span",{}),e.jsx(Ke,{page:z,pages:Pe.pages,onChange:i=>{C("Shop Paged Store Table",{table:"recent_sales",page:i+1}),u(i)},name:"sales"})]}):null]})]}),e.jsxs(Po,{children:[e.jsx(zo,{id:"store-audience-h",children:r("myStore.audience")}),e.jsx(_o,{children:r("myStore.audienceSub")})]}),e.jsxs(Fo,{children:[e.jsxs(X,{children:[e.jsxs(ie,{children:[e.jsxs("span",{children:[r("myStore.tileCollectors"),e.jsx(ke,{content:r("myStore.collectorsHint"),children:e.jsx(Ct,{type:"button","aria-label":r("myStore.tileCollectors"),"data-testid":"store-collectors-hint",children:e.jsx(O,{name:"info",className:"ico","aria-hidden":!0})})})]}),e.jsx(re,{"aria-hidden":!0,children:"👥"})]}),e.jsx(le,{"data-testid":"store-collectors",children:M.collectors.total.toLocaleString()}),e.jsx(de,{children:M.collectors.total===0?r("myStore.tileCollectorsNone"):e.jsxs(e.Fragment,{children:[x.breakdownPartial?e.jsxs(e.Fragment,{children:[e.jsx($t,{children:r("myStore.estimate")})," "]}):null,M.collectors.topSharePct>=50?r("myStore.tileCollectorsConcentrated",{pct:Math.floor(M.collectors.topSharePct)}):r("myStore.tileCollectorsFoot",{repeat:M.collectors.repeat,pct:Math.round(M.collectors.repeatPct)})]})})]}),x.royalties?e.jsxs(X,{children:[e.jsxs(ie,{children:[e.jsxs("span",{children:[r("myStore.tileRoyalties"),e.jsx(ke,{content:r("myStore.royaltiesHint"),children:e.jsx(Ct,{type:"button","aria-label":r("myStore.tileRoyalties"),"data-testid":"store-royalties-hint",children:e.jsx(O,{name:"info",className:"ico","aria-hidden":!0})})})]}),e.jsx(re,{"aria-hidden":!0,children:"🔁"})]}),e.jsxs(le,{"data-testid":"store-royalties",children:[e.jsx(Xn,{children:"≈"}),e.jsx(H,{kind:"mana"}),V(ca(x.royalties.volumeWei))]}),e.jsxs(de,{children:[e.jsx(Ge,{delta:M.royalties,period:a}),Ve(M.royalties)?null:e.jsx("span",{children:Ht("myStore.tileRoyaltiesFoot",{m:i=>e.jsxs(e.Fragment,{children:[e.jsx(H,{kind:"mana"}),i]}),count:x.royalties.resales,volume:V(x.royalties.volumeWei)})})]})]}):null]}),e.jsxs(Z,{"aria-labelledby":"store-buyers-h",children:[e.jsxs(Ae,{children:[e.jsx(Se,{id:"store-buyers-h",children:r("myStore.buyers")}),e.jsx(eo,{children:r("myStore.buyersHint")})]}),M.buyers.length===0?e.jsx(je,{"data-testid":"store-buyers-none",children:r("myStore.noBuyers")}):e.jsx(Re,{children:e.jsxs(Eo,{children:[e.jsx("thead",{children:e.jsxs("tr",{children:[e.jsx("th",{scope:"col",children:r("myStore.colBuyer")}),[["items",r("myStore.colItems"),"desc"],["collections",r("myStore.colCollections"),"desc"],["last",r("myStore.colLast"),"desc"],["spent",r("myStore.colSpent"),"desc"]].map(([i,y,f])=>e.jsx("th",{scope:"col",style:i==="spent"?{textAlign:"right"}:void 0,"aria-sort":pe(N(S,i)),children:e.jsx(ae,{label:y,dir:N(S,i),align:i==="spent"?"right":"left",testId:`store-sort-buyers-${i}`,onSort:()=>{const E=De(S,i,f);C("Shop Sorted Store Table",{table:"buyers",column:E.key,direction:E.dir}),T(E),ee(0)}})},i))]})}),e.jsx("tbody",{children:_e.map(i=>{var f,E,he;const y=(he=(E=(f=ye==null?void 0:ye.get(i.address))==null?void 0:f.avatar)==null?void 0:E.snapshots)==null?void 0:he.face256;return e.jsxs("tr",{"data-testid":"store-buyer",children:[e.jsx("td",{children:e.jsxs(Mt,{href:`${Y.profileUrl}/${i.address}`,target:"_blank",rel:"noopener noreferrer",onClick:()=>C("Shop Clicked Store Action",{action:"open_buyer",table:"buyers"}),"data-testid":"store-buyer-name",children:[e.jsx(Wt,{style:y?{backgroundImage:`url(${y})`}:void 0,"aria-hidden":!0}),Bt(i.address,ye)]})}),e.jsx("td",{"data-dim":!0,children:r("myStore.buyerItems",{count:i.items})}),e.jsx("td",{"data-dim":!0,children:r("myStore.buyerCollections",{count:i.collections})}),e.jsx("td",{"data-dim":!0,children:Dt(i.lastAt)}),e.jsx("td",{"data-money":!0,children:e.jsxs(He,{children:[e.jsx(H,{kind:"mana"}),V(i.spentWei)]})})]},i.address)})})]})}),ze>1?e.jsxs(Ue,{children:[e.jsx("span",{}),e.jsx(Ke,{page:ge,pages:ze,onChange:i=>{C("Shop Paged Store Table",{table:"buyers",page:i+1}),ee(i)},name:"buyers"})]}):null]})]})]})})})}export{_a as MyStore,_a as default};
|
|
1691
|
-
//# sourceMappingURL=MyStore-
|
|
1690
|
+
`,na=["7d","30d","all"],Te=8,Pe=5,Ge=5,ns="shop.my-store.sort",oa=["sold","earned","newest","name"];function aa(){try{const t=localStorage.getItem(ns);return oa.includes(t)?t:"sold"}catch{return"sold"}}function ia(t){try{localStorage.setItem(ns,t)}catch{}}function ue(t){return t==="asc"?"ascending":t==="desc"?"descending":void 0}function N(t,n){return(t==null?void 0:t.key)===n?t.dir:void 0}function ra(t,n){const o=[...t];return n==="name"?o.sort((d,a)=>d.name.localeCompare(a.name)):n==="earned"?We(o,d=>d.earningsWei,"desc"):n==="newest"?o.sort((d,a)=>(a.createdAt??0)-(d.createdAt??0)):o.sort((d,a)=>a.sold-d.sold||d.name.localeCompare(a.name))}function Ot(t,n,o){return ce(`/item/${t}/${n}`,o)}function ce(t,n){return n?`${t}${t.includes("?")?"&":"?"}env=${n}`:t}function la(t,n){if(n==null)return null;const o=t.minted-n;return o>0?o:null}const da={website:"website",twitter:"x-twitter",discord:"discord",facebook:"facebook"},_e=5;function ca(t,n){if(n<=5)return Array.from({length:n},(a,h)=>h);const o=[t-1,t,t+1].filter(a=>a>0&&a<n-1),d=[0];return o[0]>1&&d.push("gap"),d.push(...o),o[o.length-1]<n-2&&d.push("gap"),d.push(n-1),d}function Ce({page:t,pages:n,onChange:o,name:d}){return n<=1?null:e.jsxs(Wo,{"aria-label":r("myStore.pagination"),children:[e.jsx(Pt,{type:"button",onClick:()=>o(Math.max(0,t-1)),disabled:t===0,"aria-label":r("myStore.prev"),"data-testid":`store-${d}-prev`,children:e.jsx(B,{name:"chevron-down",size:16,"aria-hidden":!0,style:{transform:"rotate(90deg)"}})}),ca(t,n).map((a,h)=>a==="gap"?e.jsx(To,{children:"…"},`gap-${h}`):e.jsx(Lo,{type:"button","aria-current":a===t?"page":void 0,onClick:()=>o(a),"data-testid":`store-${d}-page-${a+1}`,children:(a+1).toLocaleString()},a)),e.jsx(Pt,{type:"button",onClick:()=>o(Math.min(n-1,t+1)),disabled:t>=n-1,"aria-label":r("myStore.next"),"data-testid":`store-${d}-next`,children:e.jsx(B,{name:"chevron-down",size:16,"aria-hidden":!0,style:{transform:"rotate(-90deg)"}})})]})}function ha(t,n,o){var w,P;const d={"7d":7,"30d":30,all:null}[n],a=S.useMemo(()=>Math.floor(Date.now()/864e5)*864e5+864e5-1,[]),h=d?a-d*864e5:void 0,m=q({queryKey:["store-sales-page",t,n,o],enabled:!!t,placeholderData:_=>_,queryFn:()=>ln({seller:t,from:h},{first:_e,skip:o*_e})}),p=((w=m.data)==null?void 0:w.total)??0;return{rows:((P=m.data)==null?void 0:P.rows)??[],total:p,pages:Math.ceil(p/_e)}}function Dt(t){return q({queryKey:["store-buyers",t],enabled:t.length>0,staleTime:5*6e4,queryFn:()=>Ds(t)})}function Rt(t,n){var d;const o=(d=n==null?void 0:n.get(t.toLowerCase()))==null?void 0:d.name;return o?Ut(o):Os(t)}function pa(t){return Y.previewHost&&t==="1"}const ua=25000n;function ma(t){return t*ua/1000000n}function V(t){const n=Number(t/10n**14n)/1e4;return n>=10?Math.round(n).toLocaleString():n.toFixed(2)}function qt(t){const n=Math.max(1,Math.round((Date.now()-t)/6e4));if(n<60)return r("myStore.agoMinutes",{n});const o=Math.round(n/60);return o<24?r("myStore.agoHours",{n:o}):r("myStore.agoDays",{n:Math.round(o/24)})}function xa({series:t}){const n=S.useId(),o=Math.max(...t,0),d=t.length>1?92/(t.length-1):0,a=p=>o===0?27:27-p/o*22,m=t.map((p,w)=>`${(2+w*d).toFixed(1)} ${a(p).toFixed(1)}`).join(" L ");return o===0?e.jsx(At,{viewBox:"0 0 96 30",role:"img","aria-label":r("myStore.trendNone"),children:e.jsx("path",{d:"M2 27 L94 27",fill:"none",stroke:s.colors.cardLine,strokeWidth:"2",strokeLinecap:"round"})}):e.jsxs(At,{viewBox:"0 0 96 30",role:"img","aria-label":r("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 ${m} L 94 29 L 2 29 Z`,fill:`url(#${n}-fill)`}),e.jsx("path",{d:`M ${m}`,fill:"none",stroke:`url(#${n})`,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}function fa({collection:t,discount:n,savesByKey:o,open:d,onToggle:a,onManage:h,onIssue:m,env:p}){var P,_;const w=`store-items-${t.contractAddress}`;return e.jsxs(e.Fragment,{children:[e.jsxs(Xt,{"data-testid":"store-collection","data-exhausted":t.exhausted||void 0,children:[e.jsx(ao,{type:"button","aria-expanded":d,"aria-controls":w,"aria-label":r(d?"myStore.collapse":"myStore.expand",{name:t.name}),onClick:a,"data-testid":"store-collection-toggle",children:e.jsx(Eo,{name:"chevron-down",className:"ico","aria-hidden":!0})}),e.jsx(io,{"data-testid":"store-collection-thumb",children:e.jsx(zs,{contractAddress:t.contractAddress})}),e.jsxs(co,{children:[e.jsxs(lo,{children:[e.jsx(xe,{to:ce(`/collection/${t.contractAddress}`,p),"data-testid":"store-collection-name",children:t.name}),t.exhausted?e.jsx(ro,{"data-testid":"store-collection-soldout",children:r("myStore.collExhausted")}):null]}),e.jsxs(ho,{children:[r("myStore.itemsCount",{count:t.items.length}),t.listed>0?` · ${r("myStore.listedCount",{count:t.listed})}`:"",!t.exhausted&&t.soldOut>0?` · ${r("myStore.soldOutCount",{count:t.soldOut})}`:""]})]}),e.jsx(qo,{"data-testid":"store-collection-discount",children:n?e.jsxs(e.Fragment,{children:[e.jsxs(Ho,{children:[e.jsx(Uo,{pct:n.discount/1e4}),e.jsx(Ko,{until:n.checks.expiration})]}),e.jsx(Vo,{children:Ys(n)?r("myStore.discountUsed",{used:((P=n.state)==null?void 0:P.uses)??0,total:n.checks.uses}):r("myStore.discountUsedUncapped",{used:((_=n.state)==null?void 0:_.uses)??0})})]}):r("myStore.noDiscountShort")}),e.jsxs(Ro,{"data-testid":"store-collection-claimed",children:[t.claimed.toLocaleString(),e.jsxs("small",{children:["/",t.runTotal.toLocaleString()]})]}),e.jsxs(Jo,{"data-testid":"store-collection-earned",children:[e.jsx(H,{kind:"mana"}),V(t.earningsWei)]}),e.jsx(po,{children:e.jsx(xa,{series:t.trend})}),e.jsxs(Qo,{as:"a",href:`${Y.builderUrl}/collections${t.collectionId?`/${t.collectionId}`:""}`,target:"_blank",rel:"noopener noreferrer",onClick:h,"data-testid":"store-manage",children:[r("myStore.manage"),e.jsx(B,{name:"external-link",size:14,"aria-hidden":!0})]})]}),d?e.jsxs(uo,{id:w,"data-testid":"store-items",children:[e.jsxs(mo,{"data-testid":"store-collection-stats",children:[e.jsxs("span",{children:[e.jsxs("b",{children:[e.jsx(H,{kind:"mana"}),V(t.earningsWei)]}),r("myStore.collEarned")]}),e.jsxs("span",{children:[e.jsx("b",{children:t.sold.toLocaleString()}),r("myStore.collSold")]}),e.jsxs("span",{children:[e.jsx("b",{children:t.items.length}),r("myStore.collItems",{count:t.items.length})]}),e.jsxs("span",{children:[e.jsx("b",{children:t.listed+t.classic}),r("myStore.collListed")]})]}),t.items.map(u=>{const L=la(u,u.lifetimeSold);return e.jsxs(xo,{"data-testid":"store-item",children:[e.jsx(fo,{style:{backgroundImage:Je(u.rarity)},children:u.thumbnail?e.jsx("img",{src:u.thumbnail,alt:"",loading:"lazy"}):null}),e.jsxs(go,{children:[e.jsx(So,{to:ce(`/item/${t.contractAddress}/${u.itemId}`,p),title:u.name,children:u.name}),e.jsxs(yo,{children:[e.jsx(wo,{style:{background:Ns(u.rarity)},title:Fs(u.rarity),children:Es(u.rarity)}),e.jsx($o,{"data-state":u.state,children:u.state==="soldout"?null:u.state==="unlisted"?r("myStore.stateUnlisted"):u.state==="unknown"?r("myStore.stateUnknown"):e.jsxs(e.Fragment,{children:[e.jsx(Co,{children:r("myStore.onSaleFor")}),u.manaWei?e.jsxs(e.Fragment,{children:[e.jsx(H,{kind:"mana"}),V(O(u.manaWei))]}):e.jsxs(e.Fragment,{children:[e.jsx(H,{kind:"credits"}),e.jsx(Bs,{credits:u.priceCredits??0})]})]})}),m&&u.left>0?e.jsx(bo,{type:"button",onClick:()=>m(u),"data-testid":"store-item-issue",children:r("myStore.issueCopies")}):null]})]}),e.jsxs(jo,{children:[u.sold.toLocaleString(),e.jsxs("small",{children:[" ",r("myStore.sold")]})]}),e.jsxs(Xo,{"data-testid":"store-item-saves",title:r("myStore.savesHint",{count:o.get(u.key)??0}),children:[e.jsx(B,{name:"heart",className:"ico","aria-hidden":!0}),(o.get(u.key)??0).toLocaleString()]}),e.jsx(ko,{role:"progressbar","aria-valuemin":0,"aria-valuemax":u.minted+u.left,"aria-valuenow":u.minted,"aria-label":r("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(vo,{title:u.lifetimeSold==null?void 0:r("myStore.runBreakdown",{total:u.minted+u.left,sold:u.lifetimeSold,sent:u.minted-u.lifetimeSold,left:u.left}),children:[e.jsx(Io,{"data-out":u.left===0,"data-testid":"store-item-stock",children:Kt(u.left===0?"myStore.stockNone":"myStore.stockLeft",{b:E=>e.jsx("b",{children:E}),left:u.left.toLocaleString(),total:(u.minted+u.left).toLocaleString()})}),L?e.jsx(Ao,{"data-testid":"store-item-issued",children:r("myStore.sentDirectly",{count:L.toLocaleString()})}):null]})]},u.key)})]}):null]})}function Ye(t){return!!t&&!(t.current===0&&t.previous===0)}function Qe({delta:t,period:n}){if(!t||t.current===0&&t.previous===0)return null;const o=n==="all"?"":r(`myStore.vs${n}`);if(t.pct===null)return e.jsxs(Ke,{"data-dir":"new","data-testid":"store-delta",children:[r("myStore.deltaNew"),o?e.jsx("span",{className:"delta__against",children:o}):null]});const d=Math.round(t.pct);if(d===0)return e.jsxs(Ke,{"data-dir":"flat","data-testid":"store-delta",children:[r("myStore.deltaFlat"),o?e.jsx("span",{className:"delta__against",children:o}):null]});const a=d>0,m=d>=1e3?r("myStore.deltaTimes",{times:Math.round(d/100+1).toLocaleString()}):`${Math.abs(d)}%`;return e.jsxs(Ke,{"data-dir":a?"up":"down","data-testid":"store-delta","aria-label":r(a?"myStore.deltaUpAria":"myStore.deltaDownAria",{pct:m,against:o}),children:[e.jsx("span",{className:"delta__arrow","aria-hidden":!0,children:a?"▲":"▼"}),m,o?e.jsx("span",{className:"delta__against",children:o}):null]})}function ga(){return e.jsxs("div",{"data-testid":"store-skeleton","aria-hidden":!0,children:[e.jsx(Gt,{children:[0,1,2,3].map(t=>e.jsxs(X,{children:[e.jsx(b,{style:{width:"46%"}}),e.jsx(b,{style:{width:"32%",height:38}}),e.jsx(b,{style:{width:"64%",height:15}})]},t))}),e.jsxs(Z,{style:{marginTop:22},children:[e.jsxs(Le,{children:[e.jsx(b,{style:{width:96,height:14}}),e.jsx(b,{style:{width:120}})]}),e.jsxs(Jt,{children:[e.jsxs(Qt,{"aria-hidden":!0,children:[e.jsx("span",{}),e.jsx("span",{}),e.jsx(b,{style:{width:84,height:12}}),e.jsx(b,{style:{width:74,height:12}}),e.jsx(b,{style:{width:62,height:12}}),e.jsx(b,{style:{width:68,height:12}}),e.jsx(b,{style:{width:82,height:12}}),e.jsx(b,{style:{width:60,height:12}})]}),Array.from({length:Te},(t,n)=>e.jsxs(Xt,{children:[e.jsx("span",{}),e.jsx(zo,{}),e.jsx(b,{style:{width:"82%",height:14}}),e.jsx(b,{style:{width:"70%",height:20}}),e.jsx(b,{style:{width:72}}),e.jsx(b,{style:{width:76}}),e.jsx(b,{style:{height:20}}),e.jsx(b,{style:{width:96,height:32,borderRadius:8}})]},n))]}),e.jsx(_o,{as:"div",children:e.jsx(b,{style:{width:150,height:13,margin:"0 auto"}})})]}),e.jsx(ts,{style:{marginTop:22},children:[0,1].map(t=>e.jsxs(Z,{children:[e.jsxs(Le,{children:[e.jsx(b,{style:{width:110,height:14}}),e.jsx(b,{style:{width:80}})]}),e.jsx(_t,{children:[0,1,2,3].map(n=>e.jsx(b,{style:{width:46,height:9}},n))}),Array.from({length:_e},(n,o)=>e.jsxs(zt,{children:[e.jsx(b,{style:{width:"38%"}}),e.jsx(b,{style:{width:"24%"}}),e.jsx(b,{style:{width:56}}),e.jsx(b,{style:{width:64}})]},o))]},t))}),e.jsxs(Z,{style:{marginTop:22},children:[e.jsxs(Le,{children:[e.jsx(b,{style:{width:104,height:14}}),e.jsx(b,{style:{width:90}})]}),e.jsx(_t,{children:[0,1,2,3,4].map(t=>e.jsx(b,{style:{width:46,height:9}},t))}),Array.from({length:Pe},(t,n)=>e.jsxs(zt,{children:[e.jsx(b,{style:{width:"30%"}}),e.jsx(b,{style:{width:"18%"}}),e.jsx(b,{style:{width:72,height:18}}),e.jsx(b,{style:{width:"14%"}}),e.jsx(b,{style:{width:54}})]},n))]})]})}function Ba(){var ft,gt;Cs({title:r("myStore.title"),noindex:!0});const{session:t,error:n,signIn:o}=As(),[d]=gs(),[a,h]=S.useState("30d"),[m,p]=S.useState(()=>new Set),[w,P]=S.useState(0),[_,u]=S.useState(0),[L,E]=S.useState(!1),[z,D]=S.useState(aa),[U,ee]=S.useState(0),[T,Q]=S.useState(null),[I,te]=S.useState(null),[v,M]=S.useState(0),[C,c]=S.useState(null),[f,j]=S.useState(null),k=Is(),[A,R]=S.useState(!1),st=Ms(),os=Ws(),K=pa(d.get("mock")),se=d.get("env"),as=ys("/").replace(/\/$/,""),ze=i=>`${as}${i}`,nt=K;function $(i,y={}){nt||_s(i,y)}const{data:J}=Ls(t==null?void 0:t.address),Ee=t==null?void 0:t.address,{data:ne}=sn(Ee),ot=nn.filter(i=>ne==null?void 0:ne.links[i]),at=(gt=(ft=J==null?void 0:J.avatar)==null?void 0:ft.snapshots)==null?void 0:gt.face256,it=J!=null&&J.name?Ut(J.name):null,{stats:is,trend:rt,savesByKey:rs,saleable:lt,isLoading:ls,error:ds}=vn(t,a),x=K?et:is,W=K?{...rt,collectors:Pn,buyers:_n}:rt,cs=K?!1:ls,hs=K?En:rs,Fe=ha(t==null?void 0:t.address,a,_),fe=K?Nn:Fe.rows,ps=S.useMemo(()=>[...new Set(fe.map(i=>i.buyer.toLowerCase()))].sort(),[fe]),{data:ge,isLoading:us}=Dt(ps),Ne=Math.max(1,Math.ceil(W.buyers.length/Pe)),ye=Math.min(U,Ne-1),dt=S.useMemo(()=>{if(!C)return W.buyers;const i={items:y=>y.items,collections:y=>y.collections,last:y=>y.lastAt,spent:y=>y.spentWei}[C.key];return We(W.buyers,i,C.dir)},[W.buyers,C]),Be=S.useMemo(()=>dt.slice(ye*Pe,(ye+1)*Pe),[dt,ye]),ms=S.useMemo(()=>Be.map(i=>i.address).sort(),[Be]),{data:be}=Dt(ms),{data:xs}=Ks(t==null?void 0:t.address,st&&!!t),ct=Math.max(1,Math.ceil(((x==null?void 0:x.collections.length)??0)/Te)),ht=S.useMemo(()=>{const i=(x==null?void 0:x.collections)??[];if(!T)return ra(i,z);const y={name:g=>g.name,claimed:g=>g.claimed,earnings:g=>g.earningsWei,sold:g=>g.sold}[T.key];return We(i,y,T.dir)},[x,z,T]),he=S.useMemo(()=>{const i=xn((x==null?void 0:x.collections)??[],1/0).map((g,F)=>({...g,rank:F+1}));if(!I)return i;const y={name:g=>g.name,collection:g=>g.collectionName,sold:g=>g.sold,earnings:g=>g.earnedWei}[I.key];return We(i,y,I.dir)},[x,I]);function we(i,y){const g=He(I,i,y);$("Shop Sorted Store Table",{table:"best_sellers",column:g.key,direction:g.dir}),te(g),M(0)}const Oe=Math.max(1,Math.ceil(he.length/Ge)),Se=Math.min(v,Oe-1),fs=S.useMemo(()=>he.slice(Se*Ge,(Se+1)*Ge),[he,Se]),je=Math.min(w,ct-1),pt=S.useMemo(()=>ht.slice(je*Te,(je+1)*Te),[ht,je]);if(os==="off")return e.jsx(bs,{to:"/",replace:!0});if(!t&&!K)return e.jsxs(Ts,{children:[e.jsx(Ps,{testId:"my-store-signin",icon:on,title:r("myStore.signInTitle"),body:r("myStore.signInBody"),cta:{label:r("storeSettings.signIn"),onClick:()=>o()},ctaVariant:"solid",fill:!0}),e.jsx(wt,{message:n})]});const ut=K?zn:xs,De=new Map;for(const i of ut??[])if(!(i.status!=="active"&&i.status!=="scheduled"))for(const y of i.collections)De.set(y.toLowerCase(),i);const mt=(ut??[]).filter(i=>i.status==="active"||i.status==="scheduled"),xt=a==="7d"?7:a==="30d"?30:null,Re=((x==null?void 0:x.collections)??[]).reduce((i,y)=>i+y.items.length,0);return e.jsx(en,{children:e.jsx(tn,{children:e.jsxs(Bn,{"data-testid":"my-store",children:[f&&t?e.jsx(Js,{item:{contractAddress:f.contractAddress,chainId:Y.chainId,itemId:f.item.itemId,name:f.item.name,thumbnail:f.item.thumbnail,available:f.item.left},session:t,onClose:()=>{j(null),k.invalidateQueries({queryKey:["store-catalogue"]}),k.invalidateQueries({queryKey:["store-public-catalogue"]})}}):null,L&&t?e.jsx(Vs,{session:t,collections:lt,onClose:()=>E(!1),source:"my_store",silent:nt}):null,e.jsxs(On,{children:[e.jsxs(Dn,{children:[e.jsx(qn,{style:at?{backgroundImage:`url(${at})`}:void 0,"data-testid":"store-avatar","aria-hidden":!0}),e.jsxs(Rn,{children:[it?e.jsx(Hn,{children:it}):null,e.jsxs(Kn,{children:[e.jsx(Un,{children:r("myStore.title")}),x?e.jsxs($t,{children:[r("myStore.summary",{collections:x.collections.length,items:Re}),ot.length>0?e.jsx(Qn,{"data-testid":"store-socials",children:ot.map(i=>e.jsx(Jn,{href:(ne==null?void 0:ne.links[i])??"",target:"_blank",rel:"noopener noreferrer",onClick:()=>$("Shop Clicked Store Action",{action:"social_link",link_type:i}),title:r(`creator.link.${i}`),"aria-label":r(`creator.link.${i}`),children:e.jsx(B,{name:da[i],className:"ico","aria-hidden":!0})},i))}):null]}):e.jsx($t,{children:e.jsx(b,{style:{width:170,background:"rgba(252, 252, 252, 0.18)",animation:"none"}})})]})]})]}),e.jsxs(Vn,{children:[Ee?e.jsxs(Gn,{href:ze(ce(`/items/creator/${Ee}`,se)),target:"_blank",rel:"noopener noreferrer",onClick:()=>$("Shop Clicked Store Action",{action:"view_public_store"}),"data-testid":"store-view-public",children:[r("myStore.viewPublicStore"),e.jsx(B,{name:"external-link",className:"ico","aria-hidden":!0})]}):null,e.jsxs(Yn,{to:ce("/store-settings",se),state:{from:"/my-store"},onClick:()=>$("Shop Clicked Store Action",{action:"edit_store"}),"data-testid":"store-edit",children:[e.jsx(B,{name:"pen",className:"ico","aria-hidden":!0}),r("myStore.editStore")]})]})]}),e.jsxs(Xn,{children:[e.jsx(Zn,{children:r("myStore.performance")}),e.jsx(eo,{role:"group","aria-label":r("myStore.period"),children:na.map(i=>e.jsx(to,{type:"button","aria-pressed":a===i,onClick:()=>{i!==a&&$("Shop Changed Store Period",{period:i,previous_period:a}),h(i),u(0)},"data-testid":`store-period-${i}`,children:r(`myStore.period${i}`)},i))})]}),e.jsx(wt,{message:ds?r("myStore.error"):null,testId:"my-store-error"}),cs||!x?e.jsx(ga,{}):e.jsxs(e.Fragment,{children:[e.jsxs(Gt,{"aria-label":r("myStore.summaryAria"),children:[e.jsxs(X,{children:[e.jsxs(ie,{children:[r("myStore.tileSold"),e.jsx(re,{"aria-hidden":!0,children:"🛍️"})]}),e.jsx(le,{children:e.jsx("span",{"data-testid":"store-sold",children:x.sold.toLocaleString()})}),e.jsxs(de,{children:[e.jsx(Qe,{delta:W.sold,period:a}),!Ye(W.sold)&&(x.sold===0?r("myStore.tileSoldNone"):x.resales===0?r("myStore.tileSoldFootMintsOnly",{mints:x.mints}):r("myStore.tileSoldFoot",{mints:x.mints,resales:x.resales}))]})]}),e.jsxs(X,{children:[e.jsxs(ie,{children:[r("myStore.tileEarnings"),e.jsx(re,{"aria-hidden":!0,children:"💰"})]}),e.jsxs(le,{children:[e.jsx(H,{kind:"mana"}),V(x.earningsWei),e.jsx(vt,{children:r("myStore.manaUnit")})]}),e.jsxs(de,{children:[e.jsx(Qe,{delta:W.earnings,period:a}),x.partial?e.jsxs(e.Fragment,{children:[e.jsx(Ct,{children:r("myStore.estimate")})," ",r("myStore.tileEarningsPartial")]}):Ye(W.earnings)?null:r("myStore.tileEarningsFoot")]})]}),e.jsxs(X,{children:[e.jsxs(ie,{children:[r("myStore.tileListed"),e.jsx(re,{"aria-hidden":!0,children:"🏷️"})]}),e.jsxs(le,{children:[x.listed+x.classic,e.jsx(vt,{children:r("myStore.ofTotal",{n:Re})})]}),e.jsx(de,{children:Re===0?r("myStore.tileListedNone"):r("myStore.tileListedFoot",{count:x.neverListed})})]}),e.jsxs(X,{children:[e.jsxs(ie,{children:[r("myStore.tileDiscounts"),e.jsx(re,{"aria-hidden":!0,children:"🔥"})]}),e.jsx(le,{"data-testid":"store-discounts",children:mt.length}),e.jsx(de,{children:mt.length>0?r("myStore.tileDiscountsFoot"):r("myStore.tileDiscountsNone")})]})]}),x.classic>0&&!A?e.jsx(Gs,{count:x.classic,reason:"discounts",to:ce("/activity?section=listings",se),onDismiss:()=>{$("Shop Clicked Store Action",{action:"dismiss_pricing_banner",classic_items:x.classic}),R(!0)},onCta:()=>$("Shop Clicked Store Action",{action:"update_prices",classic_items:x.classic})}):null,e.jsxs(Z,{"aria-labelledby":"store-coll-h",children:[e.jsxs(Go,{children:[e.jsx(ke,{id:"store-coll-h",children:r("myStore.collectionsCount",{count:x.collections.length})}),e.jsxs(Yo,{children:[x.collections.length>1?e.jsx(no,{options:[{value:"sold",label:r("myStore.sortSold")},{value:"earned",label:r("myStore.sortEarned")},...x.collections.some(i=>i.createdAt)?[{value:"newest",label:r("myStore.sortNewest")}]:[],{value:"name",label:r("myStore.sortName")}],value:T?void 0:z,placeholder:r("myStore.sortCustom"),onChange:i=>{$("Shop Sorted Store Collections",{sort:i}),D(i),Q(null),P(0),ia(i)},align:"right",ariaLabel:r("myStore.sortBy"),className:"store-sort"}):null,K||st&&t&<.length>0?e.jsxs(Ht,{variant:"red",size:"sm",onClick:()=>E(!0),"data-testid":"store-new-discount",children:[e.jsx("span",{"aria-hidden":!0,children:"🔥"}),r("myStore.newDiscount")]}):null]})]}),x.collections.length===0?e.jsx($e,{children:r("myStore.noCollections")}):e.jsx(e.Fragment,{children:e.jsxs(Jt,{children:[e.jsxs(Qt,{children:[e.jsx("span",{}),e.jsx("span",{}),[["name",r("myStore.colCollection"),"asc"],null,["claimed",r("myStore.colClaimed"),"desc"],["earnings",r("myStore.colEarnings"),"desc"],["sold",xt?r("myStore.colTrend",{days:xt}):r("myStore.colTrendAll"),"desc"]].map((i,y)=>i?e.jsx("span",{children:e.jsx(ae,{label:i[1],dir:N(T,i[0]),testId:`store-sort-collections-${i[0]}`,onSort:()=>{const g=He(T,i[0],i[2]);$("Shop Sorted Store Table",{table:"collections",column:g.key,direction:g.dir}),Q(g),P(0)}})},i[0]):e.jsx("span",{children:r("myStore.colDiscounts")},`plain-${y}`)),e.jsx("span",{children:r("myStore.colActions")})]}),pt.map(i=>e.jsx(fa,{collection:i,discount:De.get(i.contractAddress)??null,savesByKey:hs,env:se,open:m.has(i.contractAddress),onToggle:()=>{m.has(i.contractAddress)||$("Shop Expanded Store Collection",{contract_address:i.contractAddress,items:i.items.length,exhausted:i.exhausted,has_discount:De.has(i.contractAddress)}),p(y=>{const g=new Set(y);return g.delete(i.contractAddress)||g.add(i.contractAddress),g})},onManage:()=>$("Shop Clicked Store Action",{action:"manage_collection",contract_address:i.contractAddress}),onIssue:t?y=>{$("Shop Clicked Store Action",{action:"issue_copies",contract_address:i.contractAddress}),j({item:y,contractAddress:i.contractAddress})}:void 0},i.contractAddress))]})}),x.collections.length>0?e.jsxs(ve,{children:[e.jsxs("span",{"data-testid":"store-showing",children:[r("myStore.showingOf",{shown:pt.length.toLocaleString(),total:x.collections.length.toLocaleString()}),x.breakdownPartial?e.jsxs(e.Fragment,{children:[" · ",r("myStore.soldPartial",{n:x.fetched.toLocaleString()})]}):null]}),e.jsx(Ce,{page:je,pages:ct,onChange:i=>{$("Shop Paged Store Table",{table:"collections",page:i+1}),P(i)},name:"collections"})]}):null]}),e.jsxs(ts,{children:[e.jsxs(Z,{"aria-labelledby":"store-best-h",children:[e.jsx(Ft,{children:e.jsxs("div",{children:[e.jsx(ke,{id:"store-best-h",children:r("myStore.bestSellers")}),e.jsxs(Et,{children:[r("myStore.bestSellersSub",{n:he.length}),x.breakdownPartial?e.jsxs(e.Fragment,{children:[" · ",r("myStore.soldPartial",{n:x.fetched.toLocaleString()})]}):null]})]})}),he.length===0?e.jsx($e,{children:r("myStore.noBestSellers")}):e.jsx(Ue,{children:e.jsxs(ea,{children:[e.jsx("thead",{children:e.jsxs("tr",{children:[e.jsx("th",{scope:"col","aria-sort":ue(N(I,"name")),children:e.jsxs(Bt,{children:[e.jsx(Nt,{"aria-hidden":!0,children:"#"}),e.jsx(ae,{label:r("myStore.colItem"),dir:N(I,"name"),testId:"store-sort-best-name",onSort:()=>we("name","asc")})]})}),e.jsx("th",{scope:"col","aria-sort":ue(N(I,"collection")),children:e.jsx(ae,{label:r("myStore.colCollection"),dir:N(I,"collection"),testId:"store-sort-best-collection",onSort:()=>we("collection","asc")})}),e.jsx("th",{scope:"col",style:{textAlign:"center"},"aria-sort":ue(N(I,"sold")),children:e.jsx(ae,{label:r("myStore.colSold"),dir:N(I,"sold"),testId:"store-sort-best-sold",onSort:()=>we("sold","desc")})}),e.jsx("th",{scope:"col",style:{textAlign:"right"},"aria-sort":ue(N(I,"earnings")),children:e.jsx(ae,{label:r("myStore.colEarnings"),dir:N(I,"earnings"),align:"right",testId:"store-sort-best-earnings",onSort:()=>we("earnings","desc")})})]})}),e.jsx("tbody",{children:fs.map(i=>e.jsxs("tr",{"data-testid":"store-best",children:[e.jsx("td",{children:e.jsxs(Bt,{children:[e.jsx(Nt,{children:i.rank}),e.jsxs(Mt,{as:"a",href:ze(Ot(i.contractAddress,i.itemId,se)),target:"_blank",rel:"noopener noreferrer",onClick:()=>$("Shop Clicked Store Action",{action:"open_item",table:"best_sellers",rank:i.rank}),"data-testid":"store-best-item",children:[e.jsx(Wt,{style:{backgroundImage:Je(i.rarity)},children:i.thumbnail?e.jsx("img",{src:i.thumbnail,alt:"",loading:"lazy"}):null}),e.jsx("span",{children:i.name})]})]})}),e.jsx("td",{"data-dim":!0,children:i.collectionName}),e.jsx("td",{style:{textAlign:"center",fontWeight:600},"data-testid":"store-best-sold",children:i.sold.toLocaleString()}),e.jsx("td",{"data-money":!0,children:e.jsxs(Ve,{children:[e.jsx(H,{kind:"mana"}),V(i.earnedWei)]})})]},i.key))})]})}),Oe>1?e.jsxs(ve,{children:[e.jsx("span",{}),e.jsx(Ce,{page:Se,pages:Oe,onChange:i=>{$("Shop Paged Store Table",{table:"best_sellers",page:i+1}),M(i)},name:"best"})]}):null]}),e.jsxs(Z,{"aria-labelledby":"store-feed-h",children:[e.jsxs(Ft,{children:[e.jsxs("div",{children:[e.jsx(ke,{id:"store-feed-h",children:r("myStore.recentSales")}),e.jsx(Et,{children:r("myStore.recentSalesSub")})]}),e.jsxs(Zo,{to:"/activity",onClick:()=>$("Shop Clicked Store Action",{action:"view_all_sales"}),children:[r("myStore.viewAll"),e.jsx(B,{name:"arrow-up-right",size:14,"aria-hidden":!0})]})]}),fe.length===0?e.jsx($e,{children:r("myStore.noSales")}):e.jsx(Ue,{children:e.jsxs(ta,{children:[e.jsx("thead",{children:e.jsxs("tr",{children:[e.jsx("th",{scope:"col",children:r("myStore.colItem")}),e.jsx("th",{scope:"col",children:r("myStore.colCollection")}),e.jsx("th",{scope:"col",style:{textAlign:"right"},children:r("myStore.colPrice")}),e.jsx("th",{scope:"col",children:r("myStore.colBuyer")}),e.jsx("th",{scope:"col",children:r("myStore.colDate")})]})}),e.jsx("tbody",{children:fe.map(i=>{var yt,bt;const y=x.collections.find(qe=>qe.contractAddress===i.contractAddress.toLowerCase()),g=y==null?void 0:y.items.find(qe=>qe.itemId===i.itemId),F=ge==null?void 0:ge.get(i.buyer.toLowerCase()),pe=(bt=(yt=F==null?void 0:F.avatar)==null?void 0:yt.snapshots)==null?void 0:bt.face256;return e.jsxs("tr",{"data-testid":"store-sale",children:[e.jsx("td",{children:e.jsxs(Mt,{as:i.itemId?"a":"span",...i.itemId?{href:ze(Ot(i.contractAddress,i.itemId,se)),target:"_blank",rel:"noopener noreferrer",onClick:()=>$("Shop Clicked Store Action",{action:"open_item",table:"recent_sales"}),"data-testid":"store-sale-item"}:{},children:[e.jsx(Wt,{style:{backgroundImage:Je(g==null?void 0:g.rarity)},children:g!=null&&g.thumbnail?e.jsx("img",{src:g.thumbnail,alt:"",loading:"lazy"}):null}),e.jsxs(sa,{children:[e.jsx("span",{children:(g==null?void 0:g.name)??(y==null?void 0:y.name)??i.itemId??r("myStore.unknownItem")}),e.jsx(Ae,{content:r("myStore.kindHint"),children:e.jsx(Po,{"data-kind":i.type,"data-testid":"store-kind-hint",children:i.type==="mint"?r("myStore.kindMint"):r("myStore.kindResale")})})]})]})}),e.jsx("td",{"data-dim":!0,children:(y==null?void 0:y.name)??"—"}),e.jsx("td",{"data-money":!0,children:e.jsxs(Ve,{children:[e.jsx(H,{kind:"mana"}),V(O(i.price))]})}),e.jsx("td",{children:us?e.jsxs(Mo,{"aria-hidden":!0,children:[e.jsx("i",{}),e.jsx("b",{})]}):e.jsxs(Lt,{href:`${Y.profileUrl}/${i.buyer}`,target:"_blank",rel:"noopener noreferrer",onClick:()=>$("Shop Clicked Store Action",{action:"open_buyer",table:"recent_sales"}),"data-testid":"store-sale-buyer",children:[e.jsx(Tt,{style:pe?{backgroundImage:`url(${pe})`}:void 0,"aria-hidden":!0}),Rt(i.buyer,ge)]})}),e.jsx("td",{"data-dim":!0,children:qt(i.timestamp)})]},i.id)})})]})}),Fe.pages>1?e.jsxs(ve,{children:[e.jsx("span",{}),e.jsx(Ce,{page:_,pages:Fe.pages,onChange:i=>{$("Shop Paged Store Table",{table:"recent_sales",page:i+1}),u(i)},name:"sales"})]}):null]})]}),e.jsxs(Fo,{children:[e.jsx(No,{id:"store-audience-h",children:r("myStore.audience")}),e.jsx(Bo,{children:r("myStore.audienceSub")})]}),e.jsxs(Oo,{children:[e.jsxs(X,{children:[e.jsxs(ie,{children:[e.jsxs("span",{children:[r("myStore.tileCollectors"),e.jsx(Ae,{content:r("myStore.collectorsHint"),children:e.jsx(It,{type:"button","aria-label":r("myStore.tileCollectors"),"data-testid":"store-collectors-hint",children:e.jsx(B,{name:"info",className:"ico","aria-hidden":!0})})})]}),e.jsx(re,{"aria-hidden":!0,children:"👥"})]}),e.jsx(le,{"data-testid":"store-collectors",children:W.collectors.total.toLocaleString()}),e.jsx(de,{children:W.collectors.total===0?r("myStore.tileCollectorsNone"):e.jsxs(e.Fragment,{children:[x.breakdownPartial?e.jsxs(e.Fragment,{children:[e.jsx(Ct,{children:r("myStore.estimate")})," "]}):null,W.collectors.topSharePct>=50?r("myStore.tileCollectorsConcentrated",{pct:Math.floor(W.collectors.topSharePct)}):r("myStore.tileCollectorsFoot",{repeat:W.collectors.repeat,pct:Math.round(W.collectors.repeatPct)})]})})]}),x.royalties?e.jsxs(X,{children:[e.jsxs(ie,{children:[e.jsxs("span",{children:[r("myStore.tileRoyalties"),e.jsx(Ae,{content:r("myStore.royaltiesHint"),children:e.jsx(It,{type:"button","aria-label":r("myStore.tileRoyalties"),"data-testid":"store-royalties-hint",children:e.jsx(B,{name:"info",className:"ico","aria-hidden":!0})})})]}),e.jsx(re,{"aria-hidden":!0,children:"🔁"})]}),e.jsxs(le,{"data-testid":"store-royalties",children:[e.jsx(so,{children:"≈"}),e.jsx(H,{kind:"mana"}),V(ma(x.royalties.volumeWei))]}),e.jsxs(de,{children:[e.jsx(Qe,{delta:W.royalties,period:a}),Ye(W.royalties)?null:e.jsx("span",{children:Kt("myStore.tileRoyaltiesFoot",{m:i=>e.jsxs(e.Fragment,{children:[e.jsx(H,{kind:"mana"}),i]}),count:x.royalties.resales,volume:V(x.royalties.volumeWei)})})]})]}):null]}),e.jsxs(Z,{"aria-labelledby":"store-buyers-h",children:[e.jsxs(Le,{children:[e.jsx(ke,{id:"store-buyers-h",children:r("myStore.buyers")}),e.jsx(oo,{children:r("myStore.buyersHint")})]}),W.buyers.length===0?e.jsx($e,{"data-testid":"store-buyers-none",children:r("myStore.noBuyers")}):e.jsx(Ue,{children:e.jsxs(Do,{children:[e.jsx("thead",{children:e.jsxs("tr",{children:[e.jsx("th",{scope:"col",children:r("myStore.colBuyer")}),[["items",r("myStore.colItems"),"desc"],["collections",r("myStore.colCollections"),"desc"],["last",r("myStore.colLast"),"desc"],["spent",r("myStore.colSpent"),"desc"]].map(([i,y,g])=>e.jsx("th",{scope:"col",style:i==="spent"?{textAlign:"right"}:void 0,"aria-sort":ue(N(C,i)),children:e.jsx(ae,{label:y,dir:N(C,i),align:i==="spent"?"right":"left",testId:`store-sort-buyers-${i}`,onSort:()=>{const F=He(C,i,g);$("Shop Sorted Store Table",{table:"buyers",column:F.key,direction:F.dir}),c(F),ee(0)}})},i))]})}),e.jsx("tbody",{children:Be.map(i=>{var g,F,pe;const y=(pe=(F=(g=be==null?void 0:be.get(i.address))==null?void 0:g.avatar)==null?void 0:F.snapshots)==null?void 0:pe.face256;return e.jsxs("tr",{"data-testid":"store-buyer",children:[e.jsx("td",{children:e.jsxs(Lt,{href:`${Y.profileUrl}/${i.address}`,target:"_blank",rel:"noopener noreferrer",onClick:()=>$("Shop Clicked Store Action",{action:"open_buyer",table:"buyers"}),"data-testid":"store-buyer-name",children:[e.jsx(Tt,{style:y?{backgroundImage:`url(${y})`}:void 0,"aria-hidden":!0}),Rt(i.address,be)]})}),e.jsx("td",{"data-dim":!0,children:r("myStore.buyerItems",{count:i.items})}),e.jsx("td",{"data-dim":!0,children:r("myStore.buyerCollections",{count:i.collections})}),e.jsx("td",{"data-dim":!0,children:qt(i.lastAt)}),e.jsx("td",{"data-money":!0,children:e.jsxs(Ve,{children:[e.jsx(H,{kind:"mana"}),V(i.spentWei)]})})]},i.address)})})]})}),Ne>1?e.jsxs(ve,{children:[e.jsx("span",{}),e.jsx(Ce,{page:ye,pages:Ne,onChange:i=>{$("Shop Paged Store Table",{table:"buyers",page:i+1}),ee(i)},name:"buyers"})]}):null]})]})]})})})}export{Ba as MyStore,Ba as default};
|
|
1691
|
+
//# sourceMappingURL=MyStore-B5e7oQJa.js.map
|