@dcl/shop 1.15.0 → 1.16.0
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-BBgqwdRc.js → Activity-Zur2krvm.js} +4 -4
- package/_assets/{AnimatedBackground-CAe8erqx.js → AnimatedBackground-CCv_8WvR.js} +2 -2
- package/_assets/{Assets-BVr6Ienp.js → Assets-G4zKJq-g.js} +7 -7
- package/_assets/{Cart-uMh-LLkS.js → Cart-DsQMnYFW.js} +5 -5
- package/_assets/{Collection-C6wH7PGc.js → Collection-C4njSIXs.js} +9 -9
- package/_assets/{CollectionCarousel-DLu1yG2d.js → CollectionCarousel-Dg8w-Ze2.js} +6 -6
- package/_assets/{Confetti-CUYY8WKL.js → Confetti-DcqbQMk-.js} +4 -4
- package/_assets/{ConstantsUtil-Du7Rw-I9.js → ConstantsUtil-CEwS_5e4.js} +2 -2
- package/_assets/{ContentClient-CQ0rZRJX.js → ContentClient-BW1JgVbg.js} +2 -2
- package/_assets/{Creator-DiqRz4sK.js → Creator-CnhYdhYL.js} +9 -9
- package/_assets/{CreditPackPicker-CZe0q7lQ.js → CreditPackPicker-D6M8C5at.js} +7 -7
- package/_assets/{DeploymentBuilder-B8n1ixz5.js → DeploymentBuilder-Yv8ck1p_.js} +2 -2
- package/_assets/{EmotePlaybackBar-Dh9mWTmr.js → EmotePlaybackBar-DamRJKE8.js} +5 -5
- package/_assets/{ErrorNotice-BZweT4nq.js → ErrorNotice-5cQusmGK.js} +2 -2
- package/_assets/{Event-BhrUy_li.js → Event-DNSKDhvo.js} +2 -2
- package/_assets/{ExchangeController-B8eGX00R.js → ExchangeController-DnyR_njB.js} +2 -2
- package/_assets/{Faq-BRUGz0o1.js → Faq-DB62IPDv.js} +2 -2
- package/_assets/{Filters-CWaA5jz_.js → Filters-DZJTBasv.js} +9 -9
- package/_assets/{GetCredits-91FKPj2S.js → GetCredits-CQDD4Y7M.js} +2 -2
- package/_assets/{Grow-BtoTVtjh.js → Grow-Dqkd-8TJ.js} +2 -2
- package/_assets/{HelpersUtil-DtSGcn50.js → HelpersUtil-CefOE7SN.js} +2 -2
- package/_assets/{ItemDetail-CPUr9pIj.js → ItemDetail-BhOAzg_H.js} +219 -219
- package/_assets/{LoadMore-VpUeZFim.js → LoadMore-yxZw85kf.js} +2 -2
- package/_assets/{ManaPricingBanner.styles-CAt88qh9.js → ManaPricingBanner.styles-C-mAX-6w.js} +2 -2
- package/_assets/{MyAssets-BUFp0lDY.js → MyAssets-5gpOzD_e.js} +4 -4
- package/_assets/{MyFavorites-BJRUv9oZ.js → MyFavorites-C8PXtYWt.js} +2 -2
- package/_assets/{MyStore-CEJ3my3_.js → MyStore-C64oleTN.js} +7 -7
- package/_assets/{NetworkUtil-Ciq8Tbsc.js → NetworkUtil-DB3XDe5L.js} +2 -2
- package/_assets/{NotFound-DmCwRSbf.js → NotFound-Bvz1-F-x.js} +2 -2
- package/_assets/{NotificationsBell-DbHW9KbV.js → NotificationsBell-CkfnfOhR.js} +2 -2
- package/_assets/{OutfitDetail-BdCmpPcB.js → OutfitDetail-Bnstzwcb.js} +2 -2
- package/_assets/{OutfitPreview-ziiAIMxw.js → OutfitPreview-BoRA9kOx.js} +2 -2
- package/_assets/{OutfitStudio-i641piGk.js → OutfitStudio-CDJQlhEd.js} +2 -2
- package/_assets/{PaymentMethodStep-DLWg_1Mg.js → PaymentMethodStep-Dmy4hMV3.js} +3 -3
- package/_assets/{SaleCountdown-D_0C1G0b.js → SaleCountdown-C7e8fbLx.js} +2 -2
- package/_assets/{Spinner-k8dLtOrJ.js → Spinner-B2OgiWjC.js} +2 -2
- package/_assets/{StoreSettings-DiqvHUbK.js → StoreSettings-Boa-EyyK.js} +2 -2
- package/_assets/{Success-yvCjE3be.js → Success-CZuQ607L.js} +2 -2
- package/_assets/{SwapController-L-o_4Zfy.js → SwapController-5k9aONbx.js} +2 -2
- package/_assets/{Tooltip-BEJkU8QC.js → Tooltip-S7k1SpAV.js} +2 -2
- package/_assets/TradeService-B8-mao6x.js +2 -0
- package/_assets/{W3MFrameProviderSingleton-BxpE6Qai.js → W3MFrameProviderSingleton-BMplcCEo.js} +4 -4
- package/_assets/{WebCryptoP256-DKkCHgRo.js → WebCryptoP256-O7lzGJiD.js} +2 -2
- package/_assets/{basic-DHFzByJo.js → basic-Ccax6-qK.js} +2 -2
- package/_assets/{biconomy-DCsUE-Aa.js → biconomy-DvdEbc7G.js} +2 -2
- package/_assets/{browseLayout.styles-fXEIBUq8.js → browseLayout.styles-D4_s76IT.js} +2 -2
- package/_assets/{browser-gYEIuxiW.js → browser-5Iquaht5.js} +2 -2
- package/_assets/{browser-zYx7iqzr.js → browser-BZ3BqlqY.js} +2 -2
- package/_assets/{browser-ponyfill-5UyluzqP.js → browser-ponyfill-cZkQn4gz.js} +2 -2
- package/_assets/{buy-zKbAn0Jr.js → buy-Bz6BQ053.js} +2 -2
- package/_assets/{buy-gasless-BheWI81y.js → buy-gasless-C_qSC2r9.js} +2 -2
- package/_assets/{ccip-DAEHnzsX.js → ccip-4dYwjzuR.js} +2 -2
- package/_assets/{ccip-DvIRUO6I.js → ccip-DmZQ8H34.js} +2 -2
- package/_assets/{chains-lku0nIXt.js → chains-C05Ihug0.js} +2 -2
- package/_assets/collectionPage.styles-SF1IDwaV.js +41 -0
- package/_assets/{common-C03gEIWz.js → common-z_d14HNn.js} +2 -2
- package/_assets/{controller-CoiO-8ak.js → controller-Dxu_LD2b.js} +3 -3
- package/_assets/{core-BOjd_Eve.js → core-Ckvw2yS0.js} +5 -5
- package/_assets/{createSvgIcon-BiXHCpBo.js → createSvgIcon-Coc0eUXe.js} +6 -6
- package/_assets/{crumbs.styles-Bq-08Eo1.js → crumbs.styles-CQ8x8Q1s.js} +2 -2
- package/_assets/{custom-D9bjz_2p.js → custom-BobhwJvM.js} +2 -2
- package/_assets/{data-capture-CGASy8JJ.js → data-capture-B1l9YeOa.js} +2 -2
- package/_assets/{dcl-schemas-COntwfiV.js → dcl-schemas-B-Ph0Ls4.js} +2 -2
- package/_assets/{decimals-C39Js9A5.js → decimals-DMW-nilF.js} +2 -2
- package/_assets/{decimals-BpivF8HU.js → decimals-DWYtWgBS.js} +2 -2
- package/_assets/{detectExtension-CYK2hYlo.js → detectExtension-TTfkcmVw.js} +2 -2
- package/_assets/{disposePreview-C9RvsbNf.js → disposePreview-BWK9pW9i.js} +2 -2
- package/_assets/{email-B7Hqc3Al.js → email-CR6_v_7o.js} +2 -2
- package/_assets/{embedded-wallet-DQ3g7rbj.js → embedded-wallet-CMslqrer.js} +2 -2
- package/_assets/{emotion-styled.browser.esm-orHSWwQS.js → emotion-styled.browser.esm-B49fbxGZ.js} +2 -2
- package/_assets/{engine-BVrA-eDe.js → engine-Da2W6flo.js} +2 -2
- package/_assets/{errors-DxKvZXrL.js → errors-wUAVqc_c.js} +2 -2
- package/_assets/{estimate-l1-fee-CI9CaMqP.js → estimate-l1-fee-CYcm0S5M.js} +2 -2
- package/_assets/{eth_estimateGas-grjD8ZC6.js → eth_estimateGas-BF6-2JVJ.js} +2 -2
- package/_assets/{eth_getStorageAt-Di8D3-FZ.js → eth_getStorageAt-CPTGlZUx.js} +2 -2
- package/_assets/{eth_getTransactionCount-dmwPv1uL.js → eth_getTransactionCount-izvwkQul.js} +2 -2
- package/_assets/{ethereum-BXBXB0WJ.js → ethereum-BxDg7UsP.js} +2 -2
- package/_assets/{ethers-BIoA35Pn.js → ethers-bR7FzlYq.js} +2 -2
- package/_assets/{events-DNWUGNd7.js → events-CSMTNmJ4.js} +2 -2
- package/_assets/{execute-BRAlOglu.js → execute-DRuAik5I.js} +3 -3
- package/_assets/{extractIPFS-B6dS8Wbs.js → extractIPFS-Do1_pPys.js} +2 -2
- package/_assets/{features-YldM2Blt.js → features-DnUPrb3F.js} +2 -2
- package/_assets/{fetchTokenMetadata-BTPEU-3q.js → fetchTokenMetadata-0uUCrtuX.js} +3 -3
- package/_assets/{field.styles-7aAfESFo.js → field.styles-RDJk3ZFi.js} +2 -2
- package/_assets/{fortmatic-Du20O965.js → fortmatic-CzflUuB3.js} +2 -2
- package/_assets/{get-bytecode-Dmk-6Mk4.js → get-bytecode-CuUypJRS.js} +2 -2
- package/_assets/{get-ecosystem-wallet-info-IK9mOCLo.js → get-ecosystem-wallet-info-CmJgYBeZ.js} +2 -2
- package/_assets/{getBalance-ktnD9Moc.js → getBalance-CXMj_dSJ.js} +3 -3
- package/_assets/{getInstalledModules-jTPTLnb8.js → getInstalledModules-DwjgJmXZ.js} +2 -2
- package/_assets/{getNFT-CwzF6z_7.js → getNFT-D7lfpr7H.js} +2 -2
- package/_assets/{getNFT-DbXgJ4kx.js → getNFT-DAE6KSzC.js} +3 -3
- package/_assets/{grid.styles-Reh_Sfmk.js → grid.styles-CCv5GYbY.js} +2 -2
- package/_assets/{hashTypedData-B72YO7bf.js → hashTypedData-DMajHdTK.js} +2 -2
- package/_assets/{hashTypedData-B5WTbVYh.js → hashTypedData-uKFMbdty.js} +2 -2
- package/_assets/{import-CJWafgcM.js → import-CeVyQRnj.js} +2 -2
- package/_assets/{in-app-reC7MW7U.js → in-app-Macl9ih4.js} +2 -2
- package/_assets/{in-app-wallet-calls-YVgiy_Z_.js → in-app-wallet-calls-D4aUvnS_.js} +2 -2
- package/_assets/{index-DAh-ftDy.js → index-15wtEeEb.js} +2 -2
- package/_assets/{index-D4EeOyaA.js → index-4Wt1itZR.js} +2 -2
- package/_assets/{index-Cd_cQb_5.js → index-6Ea7HxB0.js} +4 -4
- package/_assets/{index-DcTChipn.js → index-9AH47OiK.js} +3 -3
- package/_assets/{index-B3PqY8NV.js → index-B2a3z3ZJ.js} +2 -2
- package/_assets/{index-CZiKz5pK.js → index-B3VjL_uo.js} +2 -2
- package/_assets/{index-uYTIcGSZ.js → index-B54oU8gi.js} +2 -2
- package/_assets/{index-YHzCYJkG.js → index-B5zTgTXf.js} +2 -2
- package/_assets/{index-DtTYXgF3.js → index-BD5IY2ZK.js} +2 -2
- package/_assets/{index-2QUWziXM.js → index-BE9Mcus4.js} +2 -2
- package/_assets/{index-CnZUnVbC.js → index-BFj-hzu9.js} +2 -2
- package/_assets/{index-1tydFwH5.js → index-BGPtWppq.js} +4 -4
- package/_assets/{index-D48CxYHB.js → index-BGgan3dP.js} +2 -2
- package/_assets/{index-COio6Ejd.js → index-BRNshUaV.js} +434 -434
- package/_assets/{index-B0NLjhmz.js → index-BVbWCh70.js} +2 -2
- package/_assets/{index-BQBSlmH-.js → index-BX0anDQH.js} +2 -2
- package/_assets/{index-D2gmXgfJ.js → index-Bj9lpeYa.js} +2 -2
- package/_assets/{index-BXCm1lR6.js → index-BlJwQFxj.js} +2 -2
- package/_assets/{index-DVuzXPDM.css → index-BmTyuiQs.css} +1 -1
- package/_assets/{index-CLFGNSZ-.js → index-BotYB9Ug.js} +2 -2
- package/_assets/{index-CnNEDEKF.js → index-BvY2KEZR.js} +2 -2
- package/_assets/{index-BYiScitc.js → index-BzfaUuJy.js} +2 -2
- package/_assets/{index-CBv79d7E.js → index-C4OMOTuz.js} +2 -2
- package/_assets/{index-D71yoQwh.js → index-C6uMO8F3.js} +4 -4
- package/_assets/{index-CyJXEo_c.js → index-C7BuumTt.js} +2 -2
- package/_assets/{index-DcpPAZS7.js → index-C975TN26.js} +2 -2
- package/_assets/{index-Butijfje.js → index-C9cxIatH.js} +2 -2
- package/_assets/{index-DDjkaD8J.js → index-CBygHfb6.js} +2 -2
- package/_assets/{index-B-cCk8d1.js → index-CCH3GG8S.js} +2 -2
- package/_assets/{index-B7A8C7MY.js → index-CCbd3W2s.js} +2 -2
- package/_assets/{index-BVGDgDVf.js → index-CCtrpRL3.js} +2 -2
- package/_assets/{index-CA7DDOOl.js → index-CI7ggdTq.js} +3 -3
- package/_assets/{index-B18ZHjoG.js → index-CM8il_cs.js} +2 -2
- package/_assets/{index-ClePbRUv.js → index-CO_NYi5I.js} +3 -3
- package/_assets/{index-C_gzza3J.js → index-CQRmPqX6.js} +2 -2
- package/_assets/{index-DW-Melj-.js → index-CUi-ykiz.js} +2 -2
- package/_assets/{index-DAFOiLHS.js → index-CYFe0Jna.js} +3 -3
- package/_assets/{index-D1h1jMQm.js → index-CbaYXysJ.js} +2 -2
- package/_assets/{index-C-w85US7.js → index-CeTfbZRA.js} +2 -2
- package/_assets/{index-DJIQTk8q.js → index-CjDu2TSA.js} +2 -2
- package/_assets/{index-Cvfa-O4J.js → index-Cl9akTA1.js} +2 -2
- package/_assets/{index-GQaePZB9.js → index-CoEQwfR-.js} +2 -2
- package/_assets/{index-DrLA_VU_.js → index-CvTuaMxq.js} +2 -2
- package/_assets/{index-B5Il9w_t.js → index-Cx07-hgn.js} +2 -2
- package/_assets/{index-BWz0ngpy.js → index-Cyu7VCzw.js} +2 -2
- package/_assets/{index-Ba4Qb-tQ.js → index-D02KSSv9.js} +2 -2
- package/_assets/{index-B7Z8xaGK.js → index-D08tUgRe.js} +2 -2
- package/_assets/{index-DSwXuC0D.js → index-D1vrdbBh.js} +2 -2
- package/_assets/{index-CJ1iqO8A.js → index-D4oNA6LG.js} +2 -2
- package/_assets/{index-Csltect9.js → index-DF3A7nt0.js} +2 -2
- package/_assets/{index-7WKP3ObD.js → index-DJk0y4Pb.js} +2 -2
- package/_assets/{index-DKiO6CtY.js → index-DVSIxGm9.js} +2 -2
- package/_assets/{index-jyj9sHwU.js → index-DWZpjai1.js} +2 -2
- package/_assets/{index-DkEEbiDR.js → index-DYa3ZRHr.js} +2 -2
- package/_assets/{index-Ys04Xign.js → index-D_UH7dG5.js} +2 -2
- package/_assets/{index-CYwEY6Wy.js → index-DddATSzO.js} +2 -2
- package/_assets/{index-CcdPYHZS.js → index-DhErzm2X.js} +3 -3
- package/_assets/{index-DHvU-KWh.js → index-Di89BRQr.js} +2 -2
- package/_assets/{index-COT5Frck.js → index-DsNJL-1_.js} +2 -2
- package/_assets/{index-B610oYVJ.js → index-GUobIWjX.js} +2 -2
- package/_assets/{index-D8OXtAip.js → index-PR_0BnK6.js} +2 -2
- package/_assets/{index-D-gigTjB.js → index-Wf_dU8kj.js} +2 -2
- package/_assets/{index-nBFm5kuI.js → index-a25ffY_L.js} +2 -2
- package/_assets/{index-BZcBt3X8.js → index-afs4W15f.js} +2 -2
- package/_assets/{index-CQ_hwt2w.js → index-bswiu2fP.js} +2 -2
- package/_assets/{index-DdpXntwz.js → index-rBUdQsaK.js} +2 -2
- package/_assets/{index-DURI-gf8.js → index-tWaiezoT.js} +4 -4
- package/_assets/{index-DA4F0G5P.js → index-zU2vwYZs.js} +2 -2
- package/_assets/{index.es-BXEjCl7y.js → index.es-DLcWAUrd.js} +2 -2
- package/_assets/{index.es-CU-vsJdv.js → index.es-Dq25h1l9.js} +2 -2
- package/_assets/{index.es-BZK_Cifn.js → index.es-_TtdXlOp.js} +5 -5
- package/_assets/{index.es-Bn4oTPjZ.js → index.es-kX0u41uY.js} +2 -2
- package/_assets/{items-empty-DGRxHTWy.js → items-empty-CFX8gNeF.js} +2 -2
- package/_assets/{jump-DWbTrGpm.js → jump-Xu9XuIAg.js} +2 -2
- package/_assets/{linkAccount-CMtMM4t3.js → linkAccount-CPkzkJuG.js} +2 -2
- package/_assets/loader-logo-DnFrESbi.js +2 -0
- package/_assets/{localBatchGatewayRequest-8oF0MPC1.js → localBatchGatewayRequest-xmkiXjrL.js} +2 -2
- package/_assets/{modal.styles-hpuefgX4.js → modal.styles-Do478QcD.js} +2 -2
- package/_assets/{native-CPeL4rJZ.js → native-DfSWgaR4.js} +2 -2
- package/_assets/{networks-BhouyyPS.js → networks-Cfa5rIsc.js} +2 -2
- package/_assets/{onramp-BvIHLQAv.js → onramp-BnohX24l.js} +2 -2
- package/_assets/{openzeppelin-OZNoWqYj.js → openzeppelin-DpMlfPE2.js} +2 -2
- package/_assets/{ownerOf-bCzxqzq0.js → ownerOf-qUf4d1F7.js} +2 -2
- package/_assets/{parseNft-pxEjnpjF.js → parseNft-DWZbRJRG.js} +3 -3
- package/_assets/{parseSignature-BAJHdtSB.js → parseSignature-CoNohiB0.js} +4 -4
- package/_assets/{parseSignature-CpDiAFfJ.js → parseSignature-J-955_t1.js} +2 -2
- package/_assets/{passkeys-iblxlDv1.js → passkeys-NXOIdrEd.js} +2 -2
- package/_assets/{pay-with-exchange-CLgZOiU6.js → pay-with-exchange-DAZa8ZY1.js} +2 -2
- package/_assets/{prepare-contract-call-CoHsXlvg.js → prepare-contract-call-CJg2QHZX.js} +2 -2
- package/_assets/{qr-overlay-B_NIDLKC.js → qr-overlay-Dv6gg5Q5.js} +4 -4
- package/_assets/{react-BmPeg6sG.js → react-COwX0Zlk.js} +2 -2
- package/_assets/{receive-DszbAWAn.js → receive-D0kNMOsa.js} +2 -2
- package/_assets/{resolveImplementation-32KPFc_U.js → resolveImplementation-C71So4sE.js} +2 -2
- package/_assets/{resume-buy-D2TWyIFl.js → resume-buy-DG0KaJKe.js} +2 -2
- package/_assets/{resume-name-B-MASXQk.js → resume-name-DGCFrQWT.js} +2 -2
- package/_assets/{rpc-CHnWH0rF.js → rpc-6is72ePA.js} +2 -2
- package/_assets/{sales-empty-UircscXh.js → sales-empty-BCWN_I8i.js} +2 -2
- package/_assets/{search-empty-CPirv6rw.js → search-empty-DlvFh8OP.js} +2 -2
- package/_assets/{secp256k1-Bb0zIfEz.js → secp256k1-BHyRMwqk.js} +2 -2
- package/_assets/{secp256k1-BUEs1rcj.js → secp256k1-By_oEGjh.js} +2 -2
- package/_assets/{secp256k1-D1DTa_mW.js → secp256k1-l4zSwoMY.js} +2 -2
- package/_assets/{send-C8TzZsHF.js → send-BxPbGMh3.js} +2 -2
- package/_assets/{send-batch-transaction-CcXPrdOH.js → send-batch-transaction-BizQRWSH.js} +2 -2
- package/_assets/{send-eip712-transaction-ouILrTb6.js → send-eip712-transaction-Cd2xhI0p.js} +3 -3
- package/_assets/{send-gasless-transaction-rKjG34Kj.js → send-gasless-transaction-DXUxg38U.js} +3 -3
- package/_assets/{send-transaction-BbLs2Ynf.js → send-transaction-D0szv-rw.js} +3 -3
- package/_assets/{sendMetaTransaction-Dy6lp92T.js → sendMetaTransaction-Cpk-JkUY.js} +2 -2
- package/_assets/{sendRawTransaction-BY7CWiPp.js → sendRawTransaction-CmggkI48.js} +4 -4
- package/_assets/{sentry-CfKEockx.js → sentry-D9BarSwm.js} +3 -3
- package/_assets/{serializeTransaction-DOIuoefa.js → serializeTransaction-DDF3EQOU.js} +2 -2
- package/_assets/{session-proposal-BR55dEaA.js → session-proposal-CHYRi6z3.js} +2 -2
- package/_assets/{session-request-C_hO74mD.js → session-request-r5jbMTp-.js} +3 -3
- package/_assets/{sha256-BJjUSCTX.js → sha256-DBqizRIu.js} +2 -2
- package/_assets/{sha3-B3El3U9k.js → sha3-B0gscz6j.js} +2 -2
- package/_assets/signin-empty-C2-U4-eJ.js +2 -0
- package/_assets/{signing-D66RpSSx.js → signing-Dv0wmdMO.js} +4 -4
- package/_assets/{skeleton.styles-B3BxeSy_.js → skeleton.styles-BEkEh9Xo.js} +2 -2
- package/_assets/{socials-fdANcU4O.js → socials-9e49sRbo.js} +2 -2
- package/_assets/{styled-ihfZhc5C.js → styled-byzvgoEW.js} +3 -3
- package/_assets/{swaps-DZV3-WZp.js → swaps-CMMXFVlc.js} +2 -2
- package/_assets/{thirdweb-dhrmjSPt.js → thirdweb-CilSVdOh.js} +4 -4
- package/_assets/{to-serializable-transaction-BxxEhlQY.js → to-serializable-transaction-BtKRmZ5q.js} +3 -3
- package/_assets/{totalSupply-B2nCZvgY.js → totalSupply-gIi83gXe.js} +2 -2
- package/_assets/{trade-encoding-D0iBabuM.js → trade-encoding-DqOFT-xH.js} +2 -2
- package/_assets/{transaction-CJXWN8an.js → transaction-Crt3oKUU.js} +2 -2
- package/_assets/{transactionReceipt-CpzMTSMZ.js → transactionReceipt-yftDQJCI.js} +2 -2
- package/_assets/{transactions-CKkVNjQ4.js → transactions-BFd4sGt3.js} +2 -2
- package/_assets/{useCreatorSales-Ze3V5ohC.js → useCreatorSales-D2bq-mjs.js} +77 -77
- package/_assets/{useInfiniteGrid-D8vhQEzx.js → useInfiniteGrid-CoFLGUq5.js} +2 -2
- package/_assets/{useStore-DdvCUhO-.js → useStore-DCfwTeT_.js} +3 -3
- package/_assets/{useTheme-QKnvhO7_.js → useTheme-BtQzSd_x.js} +2 -2
- package/_assets/{utils-5qk7WI4m.js → utils-Di6UMxpb.js} +2 -2
- package/_assets/{verifyHash-Dm5TFWpr.js → verifyHash-CyVD3HFU.js} +2 -2
- package/_assets/{w3m-modal-CEqDQIHN.js → w3m-modal-DY_5HDWk.js} +2 -2
- package/_assets/{w3m-modal-B5R3n_ak.js → w3m-modal-VycpFrGV.js} +2 -2
- package/_assets/{wait-for-tx-receipt-CUblm3Uy.js → wait-for-tx-receipt-BnSiwjNZ.js} +2 -2
- package/_assets/{wallets-BT0Osdwo.js → wallets-CF_BBG99.js} +6 -6
- package/_assets/{web-connector-BzJlWUBl.js → web-connector-DQro6gxL.js} +4 -4
- package/_assets/{writeContract-CH8f16EO.js → writeContract-DhM9t6Ig.js} +2 -2
- package/_assets/{zora-sepolia-BfgSfWmM.js → zora-sepolia-CVzG0Xwo.js} +2 -2
- package/_assets/{zoraTestnet-CiGZFo3e.js → zoraTestnet-D_-LBRSS.js} +2 -2
- package/index.html +12 -12
- package/package.json +2 -2
- package/_assets/TradeService-DVeKA0A9.js +0 -2
- package/_assets/collectionPage.styles-B8UMV0wt.js +0 -41
- package/_assets/loader-logo-CeNjVZuG.js +0 -2
- package/_assets/signin-empty-XsT9jLzt.js +0 -2
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import{r as d,j as c}from"./react-
|
|
1
|
+
import{r as d,j as c}from"./react-COwX0Zlk.js";import{s as p,H as y,t as o}from"./index-BRNshUaV.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},r=new e.Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="aeb45bad-8136-4639-a6d3-fde882d0a750",e._sentryDebugIdIdentifier="sentry-dbid-aeb45bad-8136-4639-a6d3-fde882d0a750")}catch{}})();const x=p.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
justify-content: center;
|
|
4
4
|
padding: 28px 0 8px;
|
|
5
5
|
`,g=p(y)`
|
|
6
6
|
min-width: 160px;
|
|
7
7
|
`;function m({hasNextPage:e,isFetching:r,isError:t=!1,onLoadMore:n,auto:s=!0}){const i=d.useRef(null),a=d.useRef(n);return a.current=n,d.useEffect(()=>{const f=i.current;if(!f||!e||r||t||!s)return;const l=new IntersectionObserver(b=>{var u;(u=b[0])!=null&&u.isIntersecting&&a.current()},{rootMargin:"600px 0px"});return l.observe(f),()=>l.disconnect()},[e,r,t,s]),e?c.jsx(x,{ref:i,children:c.jsx(g,{variant:"ghost",onClick:n,disabled:r,children:r?o("loadMore.loading"):t?o("loadMore.retry"):o("loadMore.loadMore")})}):null}export{m as L};
|
|
8
|
-
//# sourceMappingURL=LoadMore-
|
|
8
|
+
//# sourceMappingURL=LoadMore-yxZw85kf.js.map
|
package/_assets/{ManaPricingBanner.styles-CAt88qh9.js → ManaPricingBanner.styles-C-mAX-6w.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as u,j as e,L as b}from"./react-
|
|
1
|
+
import{r as u,j as e,L as b}from"./react-COwX0Zlk.js";import{a,s as t,b6 as m,C as w,b7 as C,t as r}from"./index-BRNshUaV.js";(function(){try{var n=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},s=new n.Error().stack;s&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[s]="e2d23d0c-4c6c-488c-88dd-6e46d0ab6f44",n._sentryDebugIdIdentifier="sentry-dbid-e2d23d0c-4c6c-488c-88dd-6e46d0ab6f44")}catch{}})();function y({size:n=17,...s}){const o=`credit-mark-${u.useId()}`;return e.jsxs("svg",{viewBox:"0 0 16.9985 16.9985",width:n,height:n,fill:"none","aria-hidden":!0,focusable:"false",...s,children:[e.jsx("defs",{children:e.jsxs("linearGradient",{id:o,x1:"-0.513692",y1:"8.51179",x2:"29.4301",y2:"5.69069",gradientUnits:"userSpaceOnUse",children:[e.jsx("stop",{stopColor:a.colors.dclRed}),e.jsx("stop",{offset:"1",stopColor:a.colors.flareAmber})]})}),e.jsx("path",{d:"M11.866 0.605075L16.4734 5.29355L16.4148 11.8658L11.7253 16.4742L5.15405 16.4156L0.545653 11.7271L0.604247 5.1539L5.29175 0.546481L11.866 0.605075Z",fill:`url(#${o})`,stroke:`url(#${o})`,strokeWidth:"1.04738"}),e.jsx("path",{d:"M9.14405 10.9365C9.51965 10.9365 9.87384 10.8794 10.2067 10.7653C10.5395 10.6512 10.7938 10.5371 10.9697 10.423L11.4975 11.4749L12.0252 12.5268C11.8017 12.717 11.4166 12.9095 10.8699 13.1045C10.3279 13.2994 9.68605 13.3969 8.94437 13.3969C8.25023 13.3969 7.59651 13.2756 6.98319 13.0332C6.36988 12.7907 5.82551 12.4507 5.35007 12.0133C4.87939 11.5759 4.51093 11.0625 4.24468 10.4729C3.97844 9.87864 3.84532 9.23205 3.84532 8.53316C3.84532 7.83427 3.97844 7.18767 4.24468 6.59338C4.51093 5.99433 4.87939 5.4761 5.35007 5.0387C5.82075 4.59655 6.36275 4.25423 6.97606 4.01176C7.59413 3.76453 8.25023 3.64092 8.94437 3.64092C9.68605 3.64092 10.3279 3.73838 10.8699 3.93331C11.4166 4.12824 11.8017 4.32079 12.0252 4.51097L10.9697 6.61477C10.7938 6.50067 10.5395 6.38656 10.2067 6.27246C9.87384 6.15835 9.51965 6.1013 9.14405 6.1013C8.67812 6.1013 8.27876 6.17024 7.94595 6.30812C7.6179 6.44599 7.34928 6.63141 7.14009 6.86438C6.9309 7.09734 6.77638 7.35645 6.67654 7.64171C6.58145 7.92698 6.53391 8.21699 6.53391 8.51176C6.53391 8.81129 6.58145 9.10606 6.67654 9.39607C6.77638 9.68133 6.9309 9.94045 7.14009 10.1734C7.34928 10.4064 7.6179 10.5918 7.94595 10.7297C8.27876 10.8675 8.67812 10.9365 9.14405 10.9365Z",fill:a.colors.white})]})}const{colors:d,font:$}=a,j=t.p`
|
|
2
2
|
display: flex;
|
|
3
3
|
align-items: center;
|
|
4
4
|
gap: 4px;
|
|
@@ -126,4 +126,4 @@ import{r as u,j as e,L as b}from"./react-BmPeg6sG.js";import{a,s as t,b6 as m,C
|
|
|
126
126
|
outline-offset: 2px;
|
|
127
127
|
}
|
|
128
128
|
`;export{S as A,M as B,D as C,z as D,T as M,A as R,v as S,E as T,U as a,_ as b};
|
|
129
|
-
//# sourceMappingURL=ManaPricingBanner.styles-
|
|
129
|
+
//# sourceMappingURL=ManaPricingBanner.styles-C-mAX-6w.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as
|
|
1
|
+
import{r as l,j as t,b as Ft,u as _t}from"./react-COwX0Zlk.js";import{a,s as i,t as o,I,bV as Bt,H as Lt,B as Nt,x as zt,bW as Wt,bR as oe,b6 as Ee,w as ae,Y as Dt,bX as Kt,aF as Gt,$ as re,bY as Ht,a1 as ie,bZ as Yt,b_ as qt,a2 as ce,b$ as Ut,Z as Jt,z as Zt,c as ze,bT as Pe,c0 as Vt,c1 as Qt}from"./index-BRNshUaV.js";import{f as Xt}from"./SaleCountdown-C7e8fbLx.js";import{u as es,t as ts,C as ss,a as ns}from"./useCreatorSales-D2bq-mjs.js";import{L as os}from"./LoadMore-yxZw85kf.js";import{u as as,R as rs,C as is,D as le,b as de,c as cs,d as ls,e as ds,f as us,g as ps,h as Oe,i as Te,j as Re,a as ms,k as fs}from"./Filters-DZJTBasv.js";import{u as hs}from"./useInfiniteGrid-CoFLGUq5.js";import{u as gs,s as xs}from"./sales-empty-BCWN_I8i.js";import{E as Me}from"./ErrorNotice-5cQusmGK.js";import{C as ys,R as bs,B as ws,T as Ss,M as js,A as Cs,a as $s,b as ks,D as vs}from"./ManaPricingBanner.styles-C-mAX-6w.js";import{C as As}from"./field.styles-RDJk3ZFi.js";import{c as Is,i as Es}from"./items-empty-CFX8gNeF.js";import{s as Ps}from"./signin-empty-C2-U4-eJ.js";import{R as Os,S as Ts,a as Rs,D as Ms,b as Fs,C as _s,c as Bs,d as Ls,e as Ns,M as zs}from"./browseLayout.styles-D4_s76IT.js";import{m as Ws}from"./mana-matic-CEqvSwrJ.js";import{n as We}from"./Tooltip-S7k1SpAV.js";import{m as Ds}from"./mana-matic-light-Bl5duieC.js";import"./dcl-schemas-B-Ph0Ls4.js";import"./sentry-D9BarSwm.js";import"./ethers-bR7FzlYq.js";import"./intl-AKLEHPeO.js";import"./errors-wUAVqc_c.js";import"./sha3-B0gscz6j.js";import"./browser-5Iquaht5.js";import"./trade-encoding-DqOFT-xH.js";import"./sendMetaTransaction-Cpk-JkUY.js";import"./skeleton.styles-BEkEh9Xo.js";import"./import-CeVyQRnj.js";import"./buy-Bz6BQ053.js";(function(){try{var s=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},r=new s.Error().stack;r&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[r]="d1f899c1-a1de-47d5-9c78-ffb69931049c",s._sentryDebugIdIdentifier="sentry-dbid-d1f899c1-a1de-47d5-9c78-ffb69931049c")}catch{}})();const De="shop:creations-hint:v1";function Ke(){try{const s=localStorage.getItem(De);if(!s)return{};const r=JSON.parse(s);return r&&typeof r=="object"&&!Array.isArray(r)?r:{}}catch{return{}}}function Ks(s){if(!s)return null;const r=Ke()[s.toLowerCase()];return r&&Number.isFinite(r.count)&&r.count>0?{count:r.count}:null}function Gs(s,r){try{const d=Ke(),u=s.toLowerCase();r>0?d[u]={count:r}:delete d[u],localStorage.setItem(De,JSON.stringify(d))}catch{}}const{colors:f,font:Ge,radius:fe,z:Hs}=a,Ys=i.div`
|
|
2
2
|
position: fixed;
|
|
3
3
|
inset: 0;
|
|
4
4
|
z-index: ${Hs.overlay};
|
|
@@ -157,7 +157,7 @@ import{r as c,j as t,b as Ft,u as _t}from"./react-BmPeg6sG.js";import{a,s as i,t
|
|
|
157
157
|
& input {
|
|
158
158
|
--box: 13.714px;
|
|
159
159
|
}
|
|
160
|
-
`;function rn({onClose:s,onConfirm:r}){const[d,u]=
|
|
160
|
+
`;function rn({onClose:s,onConfirm:r}){const[d,u]=l.useState(!1),w=l.useRef(null),F=l.useRef(d);return F.current=d,l.useEffect(()=>{var E;(E=w.current)==null||E.focus();function j(P){P.key==="Escape"&&s(F.current)}return window.addEventListener("keydown",j),()=>window.removeEventListener("keydown",j)},[s]),t.jsx(Ys,{role:"presentation",onClick:()=>s(d),children:t.jsxs(qs,{ref:w,tabIndex:-1,role:"dialog","aria-modal":"true","aria-label":o("newPricing.title"),"data-testid":"new-pricing-modal",onClick:j=>j.stopPropagation(),children:[t.jsxs(Us,{children:[t.jsx(Js,{children:o("newPricing.title")}),t.jsx(Zs,{onClick:()=>s(d),"aria-label":o("newPricing.close"),children:t.jsx(I,{name:"close",className:"ico"})})]}),t.jsxs(Vs,{children:[t.jsx(Qs,{children:o("newPricing.infoTitle")}),t.jsx(Xs,{children:o("newPricing.infoBody")})]}),t.jsx(ys,{align:"center"}),t.jsxs(en,{children:[t.jsxs(tn,{children:[t.jsx(sn,{onClick:()=>s(d),"data-testid":"new-pricing-later",children:o("newPricing.later")}),t.jsx(nn,{onClick:()=>r(d),"data-testid":"new-pricing-confirm",children:o("newPricing.confirm")})]}),t.jsxs(on,{children:[t.jsx(an,{children:t.jsx(As,{type:"checkbox",checked:d,onChange:j=>u(j.target.checked),"data-testid":"new-pricing-opt-out"})}),o("newPricing.optOut")]})]})]})})}const Ye="shop:dismissed-prompts",Fe="mana-pricing";function qe(){try{const s=localStorage.getItem(Ye);if(!s)return{};const r=JSON.parse(s);return!r||typeof r!="object"||Array.isArray(r)?{}:r}catch{return{}}}function cn(s){try{localStorage.setItem(Ye,JSON.stringify(s))}catch{}}function Ue(s){return s?s.toLowerCase():null}function ln(s,r){const d=Ue(r);if(!d)return!1;const u=qe()[d];return Array.isArray(u)&&u.includes(s)}function dn(s,r){const d=Ue(r);if(!d)return;const u=qe(),w=Array.isArray(u[d])?u[d]:[];w.includes(s)||cn({...u,[d]:[...w,s]})}function un({count:s,to:r="/import",onDismiss:d,className:u}){return t.jsxs(bs,{className:u,"data-testid":"mana-pricing-banner",children:[t.jsxs(ws,{children:[t.jsx(I,{name:"refresh",size:24}),t.jsxs(Ss,{children:[Bt("manaPricingBanner.lead",{count:s,mana:w=>t.jsxs(t.Fragment,{children:[t.jsx(js,{src:Ws,alt:"","aria-hidden":!0})," ",w]})})," ",t.jsx(Cs,{children:o("manaPricingBanner.accent")})," ",o("manaPricingBanner.trail")]})]}),t.jsxs($s,{children:[t.jsx(ks,{to:r,"data-testid":"mana-pricing-banner-cta",children:o("manaPricingBanner.cta")}),d?t.jsx(vs,{type:"button",onClick:d,"aria-label":o("manaPricingBanner.dismiss"),"data-testid":"mana-pricing-banner-dismiss",children:t.jsx(I,{name:"close",size:16})}):null]})]})}i.div`
|
|
161
161
|
display: flex;
|
|
162
162
|
flex-direction: column;
|
|
163
163
|
gap: 4px;
|
|
@@ -406,5 +406,5 @@ import{r as c,j as t,b as Ft,u as _t}from"./react-BmPeg6sG.js";import{a,s as i,t
|
|
|
406
406
|
font-weight: 600;
|
|
407
407
|
font-size: 16px;
|
|
408
408
|
color: ${a.colors.text};
|
|
409
|
-
`,In=48,_e=[{key:"wearables",labelKey:"myAssets.sectionWearables",category:"wearable"},{key:"emotes",labelKey:"myAssets.sectionEmotes",category:"emote"},{key:"names",labelKey:"myAssets.sectionNames",category:"ens"},{key:"creations",labelKey:"myAssets.sectionCreations"}],En=["all","credits","mana"],pe={all:"filter.priceAll",credits:"filter.priceCredits",mana:"filter.priceMana"};function Pn(s){return s==="credits"?t.jsx(Zt,{size:14}):s==="mana"?t.jsx(fs,{src:Ds,alt:"","aria-hidden":!0}):null}const me=[{key:"newest",label:"filterBar.sortNewest",server:"newest"},{key:"name",label:"filterBar.sortName",server:"name"},{key:"cheapest",label:"filterBar.sortCheapest",server:"cheapest"}];function Be(s){return s==="wearables"||s==="emotes"}const Le={wearables:"wearable",emotes:"emote",names:"names",creations:""},On={wearable:"wearables",emote:"emotes",names:"names"};function Tn(s){return`${ze.builderUrl}/names/${encodeURIComponent(s)}`}function Ne(s,r){return{id:s.id,name:s.name,creator:"",contractAddress:s.contractAddress,itemId:s.itemId,category:s.category,rarity:s.rarity??"common",network:s.network,chainId:s.chainId,thumbnail:s.image,priceCredits:(r==null?void 0:r.priceCredits)??s.listingPrice??0,gender:null,isSmart:!1,tokenId:s.tokenId,issuedId:s.issuedId,tradeId:(r==null?void 0:r.tradeId)??s.tradeId}}function Rn(s,r,d,u){return{id:`${s.contractAddress}-${s.blockchainItemId}`,name:s.name,creator:d,contractAddress:s.contractAddress,itemId:s.blockchainItemId,category:s.category,rarity:s.rarity,network:"MATIC",chainId:ze.chainId,thumbnail:s.thumbnail,priceCredits:r,available:s.remainingSupply,...(u==null?void 0:u.compareAtCredits)!=null?{compareAtCredits:u.compareAtCredits}:{},...(u==null?void 0:u.saleEndsAt)!=null?{saleEndsAt:u.saleEndsAt}:{},gender:null,isSmart:!1}}function co(){var Ae,Ie;Nt({title:o("nav.myAssets"),noindex:!0});const{session:s,error:r,signIn:d,restore:u}=zt(),w=Ft(),[F,j]=_t(),E=F.get("section"),P=Wt(),he=_e.some(e=>e.key===E)?E:"wearables",p=P&&he==="creations"?"wearables":he,[g,H]=c.useState("all"),[C,_]=c.useState("all"),[k,Y]=c.useState([]),[b,B]=c.useState(null);as(`${p}:${b??""}`);const[O,Je]=c.useState("newest"),[L,ge]=c.useState(""),[v,Ze]=c.useState(""),[N,A]=c.useState(!1),[Ve,Qe]=c.useState(!0),[Xe,et]=c.useState(!0),[tt,st]=c.useState(!1),[nt,ot]=c.useState(!1),[q,xe]=c.useState("idle");c.useEffect(()=>{u()},[u]),c.useEffect(()=>{const e=setTimeout(()=>Ze(L.trim()),300);return()=>clearTimeout(e)},[L]),c.useEffect(()=>{if(!N)return;const e=l=>{l.key==="Escape"&&A(!1)};document.addEventListener("keydown",e);const n=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.removeEventListener("keydown",e),document.body.style.overflow=n}},[N]);const h=s==null?void 0:s.address,at=_e.find(e=>e.key===p),z=Be(p),ye=(me.find(e=>e.key===O)??me[0]).server,rt=g==="on_sale"?o("filter.onSale"):g==="not_for_sale"?o("filter.notForSale"):"",it=C==="all"?"":o(pe[C]),lt=oe.filter(e=>k.includes(e)).map(Ee).join(", ");function be(e){j(n=>{const l=new URLSearchParams(n);return l.set("section",e),l},{replace:!0}),B(null),Be(e)||Y([]),e!=="creations"&&_("all"),A(!1)}function we(e){Y(n=>n.includes(e)?n.filter(l=>l!==e):[...n,e])}function ct(e){const n=On[e];n&&be(n)}const{items:T,total:dt,isLoading:U,isPlaceholderData:J,error:ut,hasNextPage:pt,isFetchingNextPage:Se,isFetchNextPageError:mt,fetchNextPage:ft}=hs(["my-assets",h,p,g,k,b,v,ye],e=>Ut(h,{category:at.category,first:In,skip:e,search:v||void 0,rarities:z&&k.length?k:void 0,wearableCategories:p==="wearables"&&b?Pe[b]:void 0,emoteCategories:p==="emotes"&&b?Pe[b]:void 0,onlyOnSale:g==="on_sale"||void 0,sortBy:ye}).then(n=>({items:n.assets,total:n.total})),{enabled:!!h&&p!=="creations"}),Z=c.useMemo(()=>p==="wearables"||p==="emotes"?[...new Set(T.map(e=>e.contractAddress))]:[],[T,p]),{data:W}=ae({queryKey:["secondary-sale-state",Z],enabled:Z.length>0,queryFn:async()=>{const e=await Promise.all(Z.map(async l=>[l,await Vt(l)])),n={};for(const[l,m]of e)for(const[S,Mt]of Object.entries(m))n[`${l}-${S}`]=Mt;return n}}),je=e=>W==null?void 0:W[`${e.contractAddress}-${e.tokenId}`],ht=e=>!!je(e)||e.isOnSale,V=c.useMemo(()=>g==="not_for_sale"?T.filter(e=>!ht(e)):T,[T,g,W]),D=c.useMemo(()=>Ks(h),[h]),Q=!!s&&(p==="creations"||D!==null),{data:x,isLoading:gt,isError:xt}=ae({queryKey:["publishable-items",h],queryFn:()=>Xt(h,s.identity,{includeSoldOut:!0}),enabled:Q,staleTime:5*6e4,retry:!1});c.useEffect(()=>{h&&x&&Gs(h,x.length)},[h,x]);const{data:y,isPending:yt,isError:bt}=ae({queryKey:["collection-sale-state",h],queryFn:()=>Qt(h),enabled:Q,staleTime:6e4}),$=e=>y==null?void 0:y[`${e.contractAddress}-${e.blockchainItemId}`],wt=Q&&yt&&!bt&&((x==null?void 0:x.length)??0)>0,X=gt||wt,St=Math.min(12,Math.max(4,(D==null?void 0:D.count)??12)),jt=c.useMemo(()=>Object.values(y??{}).some(e=>!!e.manaWei),[y]),{data:ee}=Dt(jt),te=e=>e?!e.manaWei||!ee?e.priceCredits:Jt({manaWei:e.manaWei,priceCredits:e.priceCredits},ee):0,se=Kt(),{data:R}=es(h,se&&p==="creations"),[Ct,Ce]=c.useState(!1),[$t,kt]=c.useState(void 0),ne=c.useMemo(()=>ts(x??[],y),[x,y]),{count:vt}=gs(),K=vt??0,G=c.useMemo(()=>{let e=x??[];if(g==="on_sale"?e=e.filter(l=>{var m;return(m=$(l))==null?void 0:m.isOnSale}):g==="not_for_sale"&&(e=e.filter(l=>{var m;return!((m=$(l))!=null&&m.isOnSale)})),C==="credits"?e=e.filter(l=>{var m,S;return!!((m=$(l))!=null&&m.isOnSale)&&!((S=$(l))!=null&&S.manaWei)}):C==="mana"&&(e=e.filter(l=>{var m;return!!((m=$(l))!=null&&m.manaWei)})),v){const l=v.toLowerCase();e=e.filter(m=>m.name.toLowerCase().includes(l))}const n=[...e];return O==="name"?n.sort((l,m)=>l.name.localeCompare(m.name)):O==="cheapest"&&n.sort((l,m)=>te($(l))-te($(m))),n},[x,y,g,C,v,O,ee]),At=c.useMemo(()=>{var n;const e=new Map;for(const l of G){const m=l.contractAddress.toLowerCase(),S=e.get(m)??{contractAddress:m,name:l.collectionName,listed:0,soldOut:0,items:[]};S.items.push(l),(n=y==null?void 0:y[`${l.contractAddress}-${l.blockchainItemId}`])!=null&&n.isOnSale&&(S.listed+=1),l.remainingSupply<=0&&(S.soldOut+=1),e.set(m,S)}return[...e.values()]},[G,y]),It=c.useMemo(()=>{const e={};for(const n of x??[])e[n.contractAddress.toLowerCase()]=n.collectionName;return e},[x]),$e=c.useMemo(()=>{const e=new Map;for(const n of R??[]){if(n.status!=="active"&&n.status!=="scheduled")continue;const l=n.discount/1e4;for(const m of n.collections)e.set(m.toLowerCase(),{status:n.status,pct:l})}return e},[R]),Et=c.useMemo(()=>new Set(ne.map(e=>e.contractAddress.toLowerCase())),[ne]),ke=ne.find(e=>e.contractAddress===$t);c.useEffect(()=>{q!=="idle"||K===0||cn(Fe,h)||xe("open")},[q,K,h]);function ve(e){e&&dn(Fe,h),xe("closed")}if(!s)return t.jsxs(Gt,{children:[t.jsx(re,{testId:"my-items-signin",icon:Ps,title:o("myAssets.signInTitle"),body:o("myAssets.signInBody"),cta:{label:o("storeSettings.signIn"),onClick:()=>d()},ctaVariant:"solid",fill:!0}),t.jsx(Me,{message:r})]});const Pt=p==="creations"?X:U||J,Ot=p==="creations"?G.length:g==="not_for_sale"?V.length:dt,M=[];if(g!=="all"&&M.push({key:"status",label:g==="on_sale"?o("filter.onSale"):o("filter.notForSale"),onRemove:()=>H("all")}),p==="creations"&&C!=="all"&&M.push({key:"price",label:o(pe[C]),onRemove:()=>_("all")}),z)for(const e of oe)k.includes(e)&&M.push({key:`rarity-${e}`,label:Ee(e),onRemove:()=>we(e)});if(z&&b){const e=(Ie=(Ae=Ht.find(n=>n.key===Le[p]))==null?void 0:Ae.subs)==null?void 0:Ie.find(n=>n.key===b);M.push({key:"sub",label:e?o(e.labelKey):b,onRemove:()=>B(null)})}function Tt(){H("all"),_("all"),Y([]),B(null)}const Rt=t.jsxs(rs,{children:[t.jsx(is,{title:o("myAssets.assetsHeading"),category:Le[p],subCategory:b,onCategory:ct,onSub:B,onCollections:P?void 0:()=>be("creations"),collections:!P&&p==="creations",extraLabelKey:"myAssets.sectionCreations",hideAll:!0}),z?t.jsxs(t.Fragment,{children:[t.jsx(ce,{}),t.jsx(de,{title:o("assets.rarity"),open:tt,onToggle:()=>st(e=>!e),summary:lt,headerTestId:"sidebar-section-toggle",children:t.jsx(ls,{"data-testid":"rarity-filter",children:oe.map(e=>{const n=k.includes(e);return t.jsxs(cs,{type:"button",selected:n,"aria-pressed":n,onClick:()=>we(e),"data-testid":"rarity-filter-check",children:[t.jsx(ds,{color:a.rarities[e],children:n?t.jsx(us,{name:"check","aria-hidden":!0}):null}),t.jsx(ps,{selected:n,children:e})]},e)})})})]}):null,t.jsx(ce,{}),t.jsx(de,{title:o("filter.status"),open:Ve,onToggle:()=>Qe(e=>!e),summary:rt,children:[["all",o("filter.statusAll")],["on_sale",o("filter.onSale")],["not_for_sale",o("filter.notForSale")]].map(([e,n])=>t.jsxs(Oe,{children:[t.jsx(Te,{type:"radio",name:"myassets-status",checked:g===e,onChange:()=>H(e)}),t.jsx(Re,{children:n})]},e))}),p==="creations"?t.jsxs(t.Fragment,{children:[t.jsx(ce,{}),t.jsx(de,{title:o("filter.salePrice"),open:Xe,onToggle:()=>et(e=>!e),summary:it,children:En.map(e=>t.jsxs(Oe,{children:[t.jsx(Te,{type:"radio",name:"myassets-price",checked:C===e,onChange:()=>_(e),"data-testid":`price-filter-${e}`}),t.jsxs(Re,{children:[Pn(e),o(pe[e])]})]},e))})]}):null]});return t.jsxs(Os,{"data-testid":"my-assets",children:[N?t.jsx(Ts,{onClick:()=>A(!1),"aria-hidden":!0}):null,t.jsxs(Rs,{"data-open":N||void 0,"data-testid":"my-assets-sidebar",children:[t.jsxs(Ms,{children:[t.jsx(Fs,{children:o("assets.filters")}),t.jsx(_s,{onClick:()=>A(!1),"aria-label":o("assets.closeFilters"),children:"✕"})]}),t.jsx(Bs,{children:Rt}),t.jsx(Ls,{children:t.jsx(Ns,{type:"button",onClick:()=>A(!1),children:o("assets.showItems")})})]}),t.jsxs(zs,{children:[K>0&&!nt?t.jsx(xn,{count:K,onDismiss:()=>ot(!0)}):null,t.jsx(ms,{sort:O,onSort:Je,sortOptions:me,total:Ot,loading:Pt,query:v,onOpenFilters:()=>A(!0),chips:M,onClearChips:Tt,search:t.jsxs(pn,{children:[t.jsx(mn,{name:"search","aria-hidden":!0}),t.jsx(fn,{type:"search",value:L,placeholder:o("myAssets.searchPlaceholder"),"aria-label":o("myAssets.searchPlaceholder"),onChange:e=>ge(e.target.value)}),L?t.jsx(hn,{type:"button","aria-label":o("myAssets.clearSearch"),onClick:()=>ge(""),children:t.jsx(gn,{name:"close","aria-hidden":!0})}):null]})}),(p==="creations"?xt:ut)?t.jsx(Me,{message:o("myAssets.ownedError"),testId:"my-assets-error"}):null,p==="creations"?t.jsxs(t.Fragment,{children:[se&&s&&R&&R.length>0?t.jsxs(vn,{"data-testid":"creator-sales-panel",children:[t.jsx(An,{children:o("creatorSale.salesTitle")}),t.jsx(ss,{sales:R,session:s,names:It})]}):null,Ct&&s&&ke?t.jsx(ns,{session:s,collection:ke,onClose:()=>Ce(!1)}):null,X?t.jsx(ue,{"data-testid":"grid",children:t.jsx(ie,{count:St})}):At.map(e=>t.jsxs(yn,{"data-testid":"creation-group",children:[t.jsxs(bn,{children:[t.jsx(jn,{children:t.jsx(Yt,{contractAddress:e.contractAddress})}),t.jsxs(Cn,{children:[t.jsx($n,{"data-testid":"creation-group-name",children:e.name}),t.jsxs(kn,{"data-testid":"creation-group-count",children:[o("myAssets.itemsCount",{count:e.items.length}),e.listed>0?` · ${o("myAssets.groupOnSale",{count:e.listed})}`:"",e.soldOut>0?` · ${o("myAssets.groupSoldOut",{count:e.soldOut})}`:""]})]}),se&&s&&Et.has(e.contractAddress)?$e.has(e.contractAddress)?(()=>{const n=$e.get(e.contractAddress);return t.jsx(wn,{"data-heat":qt(n.pct),"data-testid":"creation-group-sale-state",children:o(n.status==="scheduled"?"creatorSale.groupScheduled":"creatorSale.groupActive",{pct:n.pct})})})():t.jsx(Sn,{variant:"purple",size:"sm","data-testid":"creation-group-sale",onClick:()=>{kt(e.contractAddress),Ce(!0)},children:o("creatorSale.putOnSale")}):null]}),t.jsx(ue,{"data-testid":"grid",children:e.items.map(n=>{const l=$(n);return t.jsx(le,{item:Rn(n,te(l),h??"",l),mode:"manage-link"},`${n.contractAddress}-${n.blockchainItemId}`)})})]},e.contractAddress)),!X&&G.length===0?t.jsx(re,{testId:"creations-empty",icon:Is,title:o("myAssets.emptyCreationsTitle"),body:o("myAssets.nothingToPublish")}):null]}):t.jsxs(t.Fragment,{children:[t.jsxs(ue,{"data-testid":"grid",children:[U||J?t.jsx(ie,{count:12}):V.map(e=>p==="names"?t.jsx(le,{item:{...Ne(e),category:"ens"},mode:"manage-link",manageHref:Tn(e.name)},e.id):t.jsx(le,{item:Ne(e,je(e)),mode:"manage-link"},e.id)),Se?t.jsx(ie,{count:6}):null]}),g!=="not_for_sale"?t.jsx(os,{hasNextPage:pt,isFetching:Se,isError:mt,onLoadMore:()=>void ft()}):null,!U&&!J&&V.length===0?t.jsx(re,{testId:"owned-empty",icon:g==="on_sale"?xs:Es,title:p==="names"?o("myAssets.emptyNamesTitle"):o("myAssets.emptyOwnedTitle"),body:p==="names"?o("myAssets.namesEmpty"):o("myAssets.ownedEmpty"),cta:p!=="names"?{label:o("myAssets.emptyBrowse"),to:"/items"}:void 0}):null]})]}),q==="open"?t.jsx(rn,{onClose:ve,onConfirm:e=>{ve(e),w("/import")}}):null]})}export{co as MyAssets};
|
|
410
|
-
//# sourceMappingURL=MyAssets-
|
|
409
|
+
`,In=48,_e=[{key:"wearables",labelKey:"myAssets.sectionWearables",category:"wearable"},{key:"emotes",labelKey:"myAssets.sectionEmotes",category:"emote"},{key:"names",labelKey:"myAssets.sectionNames",category:"ens"},{key:"creations",labelKey:"myAssets.sectionCreations"}],En=["all","credits","mana"],pe={all:"filter.priceAll",credits:"filter.priceCredits",mana:"filter.priceMana"};function Pn(s){return s==="credits"?t.jsx(Zt,{size:14}):s==="mana"?t.jsx(fs,{src:Ds,alt:"","aria-hidden":!0}):null}const me=[{key:"newest",label:"filterBar.sortNewest",server:"newest"},{key:"name",label:"filterBar.sortName",server:"name"},{key:"cheapest",label:"filterBar.sortCheapest",server:"cheapest"}];function Be(s){return s==="wearables"||s==="emotes"}const Le={wearables:"wearable",emotes:"emote",names:"names",creations:""},On={wearable:"wearables",emote:"emotes",names:"names"};function Tn(s){return`${ze.builderUrl}/names/${encodeURIComponent(s)}`}function Ne(s,r){return{id:s.id,name:s.name,creator:"",contractAddress:s.contractAddress,itemId:s.itemId,category:s.category,rarity:s.rarity??"common",network:s.network,chainId:s.chainId,thumbnail:s.image,priceCredits:(r==null?void 0:r.priceCredits)??s.listingPrice??0,gender:null,isSmart:!1,tokenId:s.tokenId,issuedId:s.issuedId,tradeId:(r==null?void 0:r.tradeId)??s.tradeId}}function Rn(s,r,d,u){return{id:`${s.contractAddress}-${s.blockchainItemId}`,name:s.name,creator:d,contractAddress:s.contractAddress,itemId:s.blockchainItemId,category:s.category,rarity:s.rarity,network:"MATIC",chainId:ze.chainId,thumbnail:s.thumbnail,priceCredits:r,available:s.remainingSupply,...(u==null?void 0:u.compareAtCredits)!=null?{compareAtCredits:u.compareAtCredits}:{},...(u==null?void 0:u.saleEndsAt)!=null?{saleEndsAt:u.saleEndsAt}:{},gender:null,isSmart:!1}}function lo(){var Ae,Ie;Nt({title:o("nav.myAssets"),noindex:!0});const{session:s,error:r,signIn:d,restore:u}=zt(),w=Ft(),[F,j]=_t(),E=F.get("section"),P=Wt(),he=_e.some(e=>e.key===E)?E:"wearables",p=P&&he==="creations"?"wearables":he,[g,H]=l.useState("all"),[C,_]=l.useState("all"),[k,Y]=l.useState([]),[b,B]=l.useState(null);as(`${p}:${b??""}`);const[O,Je]=l.useState("newest"),[L,ge]=l.useState(""),[v,Ze]=l.useState(""),[N,A]=l.useState(!1),[Ve,Qe]=l.useState(!0),[Xe,et]=l.useState(!0),[tt,st]=l.useState(!1),[nt,ot]=l.useState(!1),[q,xe]=l.useState("idle");l.useEffect(()=>{u()},[u]),l.useEffect(()=>{const e=setTimeout(()=>Ze(L.trim()),300);return()=>clearTimeout(e)},[L]),l.useEffect(()=>{if(!N)return;const e=c=>{c.key==="Escape"&&A(!1)};document.addEventListener("keydown",e);const n=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.removeEventListener("keydown",e),document.body.style.overflow=n}},[N]);const h=s==null?void 0:s.address,at=_e.find(e=>e.key===p),z=Be(p),ye=(me.find(e=>e.key===O)??me[0]).server,rt=g==="on_sale"?o("filter.onSale"):g==="not_for_sale"?o("filter.notForSale"):"",it=C==="all"?"":o(pe[C]),ct=oe.filter(e=>k.includes(e)).map(Ee).join(", ");function be(e){j(n=>{const c=new URLSearchParams(n);return c.set("section",e),c},{replace:!0}),B(null),Be(e)||Y([]),e!=="creations"&&_("all"),A(!1)}function we(e){Y(n=>n.includes(e)?n.filter(c=>c!==e):[...n,e])}function lt(e){const n=On[e];n&&be(n)}const{items:T,total:dt,isLoading:U,isPlaceholderData:J,error:ut,hasNextPage:pt,isFetchingNextPage:Se,isFetchNextPageError:mt,fetchNextPage:ft}=hs(["my-assets",h,p,g,k,b,v,ye],e=>Ut(h,{category:at.category,first:In,skip:e,search:v||void 0,rarities:z&&k.length?k:void 0,wearableCategories:p==="wearables"&&b?Pe[b]:void 0,emoteCategories:p==="emotes"&&b?Pe[b]:void 0,onlyOnSale:g==="on_sale"||void 0,sortBy:ye}).then(n=>({items:n.assets,total:n.total})),{enabled:!!h&&p!=="creations"}),Z=l.useMemo(()=>p==="wearables"||p==="emotes"?[...new Set(T.map(e=>e.contractAddress))]:[],[T,p]),{data:W}=ae({queryKey:["secondary-sale-state",Z],enabled:Z.length>0,queryFn:async()=>{const e=await Promise.all(Z.map(async c=>[c,await Vt(c)])),n={};for(const[c,m]of e)for(const[S,Mt]of Object.entries(m))n[`${c}-${S}`]=Mt;return n}}),je=e=>W==null?void 0:W[`${e.contractAddress}-${e.tokenId}`],ht=e=>!!je(e)||e.isOnSale,V=l.useMemo(()=>g==="not_for_sale"?T.filter(e=>!ht(e)):T,[T,g,W]),D=l.useMemo(()=>Ks(h),[h]),Q=!!s&&(p==="creations"||D!==null),{data:x,isLoading:gt,isError:xt}=ae({queryKey:["publishable-items",h],queryFn:()=>Xt(h,s.identity,{includeSoldOut:!0}),enabled:Q,staleTime:5*6e4,retry:!1});l.useEffect(()=>{h&&x&&Gs(h,x.length)},[h,x]);const{data:y,isPending:yt,isError:bt}=ae({queryKey:["collection-sale-state",h],queryFn:()=>Qt(h),enabled:Q,staleTime:6e4}),$=e=>y==null?void 0:y[`${e.contractAddress}-${e.blockchainItemId}`],wt=Q&&yt&&!bt&&((x==null?void 0:x.length)??0)>0,X=gt||wt,St=Math.min(12,Math.max(4,(D==null?void 0:D.count)??12)),jt=l.useMemo(()=>Object.values(y??{}).some(e=>!!e.manaWei),[y]),{data:ee}=Dt(jt),te=e=>e?!e.manaWei||!ee?e.priceCredits:Jt({manaWei:e.manaWei,priceCredits:e.priceCredits},ee):0,se=Kt(),{data:R}=es(h,se&&p==="creations"),[Ct,Ce]=l.useState(!1),[$t,kt]=l.useState(void 0),ne=l.useMemo(()=>ts(x??[],y),[x,y]),{count:vt}=gs(),K=vt??0,G=l.useMemo(()=>{let e=x??[];if(g==="on_sale"?e=e.filter(c=>{var m;return(m=$(c))==null?void 0:m.isOnSale}):g==="not_for_sale"&&(e=e.filter(c=>{var m;return!((m=$(c))!=null&&m.isOnSale)})),C==="credits"?e=e.filter(c=>{var m,S;return!!((m=$(c))!=null&&m.isOnSale)&&!((S=$(c))!=null&&S.manaWei)}):C==="mana"&&(e=e.filter(c=>{var m;return!!((m=$(c))!=null&&m.manaWei)})),v){const c=v.toLowerCase();e=e.filter(m=>m.name.toLowerCase().includes(c))}const n=[...e];return O==="name"?n.sort((c,m)=>c.name.localeCompare(m.name)):O==="cheapest"&&n.sort((c,m)=>te($(c))-te($(m))),n},[x,y,g,C,v,O,ee]),At=l.useMemo(()=>{var n;const e=new Map;for(const c of G){const m=c.contractAddress.toLowerCase(),S=e.get(m)??{contractAddress:m,name:c.collectionName,listed:0,soldOut:0,items:[]};S.items.push(c),(n=y==null?void 0:y[`${c.contractAddress}-${c.blockchainItemId}`])!=null&&n.isOnSale&&(S.listed+=1),c.remainingSupply<=0&&(S.soldOut+=1),e.set(m,S)}return[...e.values()]},[G,y]),It=l.useMemo(()=>{const e={};for(const n of x??[])e[n.contractAddress.toLowerCase()]=n.collectionName;return e},[x]),$e=l.useMemo(()=>{const e=new Map;for(const n of R??[]){if(n.status!=="active"&&n.status!=="scheduled")continue;const c=n.discount/1e4;for(const m of n.collections)e.set(m.toLowerCase(),{status:n.status,pct:c})}return e},[R]),Et=l.useMemo(()=>new Set(ne.map(e=>e.contractAddress.toLowerCase())),[ne]),ke=ne.find(e=>e.contractAddress===$t);l.useEffect(()=>{q!=="idle"||K===0||ln(Fe,h)||xe("open")},[q,K,h]);function ve(e){e&&dn(Fe,h),xe("closed")}if(!s)return t.jsxs(Gt,{children:[t.jsx(re,{testId:"my-items-signin",icon:Ps,title:o("myAssets.signInTitle"),body:o("myAssets.signInBody"),cta:{label:o("storeSettings.signIn"),onClick:()=>d()},ctaVariant:"solid",fill:!0}),t.jsx(Me,{message:r})]});const Pt=p==="creations"?X:U||J,Ot=p==="creations"?G.length:g==="not_for_sale"?V.length:dt,M=[];if(g!=="all"&&M.push({key:"status",label:g==="on_sale"?o("filter.onSale"):o("filter.notForSale"),onRemove:()=>H("all")}),p==="creations"&&C!=="all"&&M.push({key:"price",label:o(pe[C]),onRemove:()=>_("all")}),z)for(const e of oe)k.includes(e)&&M.push({key:`rarity-${e}`,label:Ee(e),onRemove:()=>we(e)});if(z&&b){const e=(Ie=(Ae=Ht.find(n=>n.key===Le[p]))==null?void 0:Ae.subs)==null?void 0:Ie.find(n=>n.key===b);M.push({key:"sub",label:e?o(e.labelKey):b,onRemove:()=>B(null)})}function Tt(){H("all"),_("all"),Y([]),B(null)}const Rt=t.jsxs(rs,{children:[t.jsx(is,{title:o("myAssets.assetsHeading"),category:Le[p],subCategory:b,onCategory:lt,onSub:B,onCollections:P?void 0:()=>be("creations"),collections:!P&&p==="creations",extraLabelKey:"myAssets.sectionCreations",hideAll:!0}),z?t.jsxs(t.Fragment,{children:[t.jsx(le,{}),t.jsx(de,{title:o("assets.rarity"),open:tt,onToggle:()=>st(e=>!e),summary:ct,headerTestId:"sidebar-section-toggle",children:t.jsx(cs,{"data-testid":"rarity-filter",children:oe.map(e=>{const n=k.includes(e);return t.jsxs(ls,{type:"button",selected:n,"aria-pressed":n,onClick:()=>we(e),"data-testid":"rarity-filter-check",children:[t.jsx(ds,{color:a.rarities[e],children:n?t.jsx(us,{name:"check","aria-hidden":!0}):null}),t.jsx(ps,{selected:n,children:e})]},e)})})})]}):null,t.jsx(le,{}),t.jsx(de,{title:o("filter.status"),open:Ve,onToggle:()=>Qe(e=>!e),summary:rt,children:[["all",o("filter.statusAll")],["on_sale",o("filter.onSale")],["not_for_sale",o("filter.notForSale")]].map(([e,n])=>t.jsxs(Oe,{children:[t.jsx(Te,{type:"radio",name:"myassets-status",checked:g===e,onChange:()=>H(e)}),t.jsx(Re,{children:n})]},e))}),p==="creations"?t.jsxs(t.Fragment,{children:[t.jsx(le,{}),t.jsx(de,{title:o("filter.salePrice"),open:Xe,onToggle:()=>et(e=>!e),summary:it,children:En.map(e=>t.jsxs(Oe,{children:[t.jsx(Te,{type:"radio",name:"myassets-price",checked:C===e,onChange:()=>_(e),"data-testid":`price-filter-${e}`}),t.jsxs(Re,{children:[Pn(e),o(pe[e])]})]},e))})]}):null]});return t.jsxs(Os,{"data-testid":"my-assets",children:[N?t.jsx(Ts,{onClick:()=>A(!1),"aria-hidden":!0}):null,t.jsxs(Rs,{"data-open":N||void 0,"data-testid":"my-assets-sidebar",children:[t.jsxs(Ms,{children:[t.jsx(Fs,{children:o("assets.filters")}),t.jsx(_s,{onClick:()=>A(!1),"aria-label":o("assets.closeFilters"),children:"✕"})]}),t.jsx(Bs,{children:Rt}),t.jsx(Ls,{children:t.jsx(Ns,{type:"button",onClick:()=>A(!1),children:o("assets.showItems")})})]}),t.jsxs(zs,{children:[K>0&&!nt?t.jsx(xn,{count:K,onDismiss:()=>ot(!0)}):null,t.jsx(ms,{sort:O,onSort:Je,sortOptions:me,total:Ot,loading:Pt,query:v,onOpenFilters:()=>A(!0),chips:M,onClearChips:Tt,search:t.jsxs(pn,{children:[t.jsx(mn,{name:"search","aria-hidden":!0}),t.jsx(fn,{type:"search",value:L,placeholder:o("myAssets.searchPlaceholder"),"aria-label":o("myAssets.searchPlaceholder"),onChange:e=>ge(e.target.value)}),L?t.jsx(hn,{type:"button","aria-label":o("myAssets.clearSearch"),onClick:()=>ge(""),children:t.jsx(gn,{name:"close","aria-hidden":!0})}):null]})}),(p==="creations"?xt:ut)?t.jsx(Me,{message:o("myAssets.ownedError"),testId:"my-assets-error"}):null,p==="creations"?t.jsxs(t.Fragment,{children:[se&&s&&R&&R.length>0?t.jsxs(vn,{"data-testid":"creator-sales-panel",children:[t.jsx(An,{children:o("creatorSale.salesTitle")}),t.jsx(ss,{sales:R,session:s,names:It})]}):null,Ct&&s&&ke?t.jsx(ns,{session:s,collection:ke,onClose:()=>Ce(!1)}):null,X?t.jsx(ue,{"data-testid":"grid",children:t.jsx(ie,{count:St})}):At.map(e=>t.jsxs(yn,{"data-testid":"creation-group",children:[t.jsxs(bn,{children:[t.jsx(jn,{children:t.jsx(Yt,{contractAddress:e.contractAddress})}),t.jsxs(Cn,{children:[t.jsx($n,{"data-testid":"creation-group-name",children:e.name}),t.jsxs(kn,{"data-testid":"creation-group-count",children:[o("myAssets.itemsCount",{count:e.items.length}),e.listed>0?` · ${o("myAssets.groupOnSale",{count:e.listed})}`:"",e.soldOut>0?` · ${o("myAssets.groupSoldOut",{count:e.soldOut})}`:""]})]}),se&&s&&Et.has(e.contractAddress)?$e.has(e.contractAddress)?(()=>{const n=$e.get(e.contractAddress);return t.jsx(wn,{"data-heat":qt(n.pct),"data-testid":"creation-group-sale-state",children:o(n.status==="scheduled"?"creatorSale.groupScheduled":"creatorSale.groupActive",{pct:n.pct})})})():t.jsx(Sn,{variant:"purple",size:"sm","data-testid":"creation-group-sale",onClick:()=>{kt(e.contractAddress),Ce(!0)},children:o("creatorSale.putOnSale")}):null]}),t.jsx(ue,{"data-testid":"grid",children:e.items.map(n=>{const c=$(n);return t.jsx(ce,{item:Rn(n,te(c),h??"",c),mode:"manage-link"},`${n.contractAddress}-${n.blockchainItemId}`)})})]},e.contractAddress)),!X&&G.length===0?t.jsx(re,{testId:"creations-empty",icon:Is,title:o("myAssets.emptyCreationsTitle"),body:o("myAssets.nothingToPublish")}):null]}):t.jsxs(t.Fragment,{children:[t.jsxs(ue,{"data-testid":"grid",children:[U||J?t.jsx(ie,{count:12}):V.map(e=>p==="names"?t.jsx(ce,{item:{...Ne(e),category:"ens"},mode:"manage-link",manageHref:Tn(e.name)},e.id):t.jsx(ce,{item:Ne(e,je(e)),mode:"manage-link"},e.id)),Se?t.jsx(ie,{count:6}):null]}),g!=="not_for_sale"?t.jsx(os,{hasNextPage:pt,isFetching:Se,isError:mt,onLoadMore:()=>void ft()}):null,!U&&!J&&V.length===0?t.jsx(re,{testId:"owned-empty",icon:g==="on_sale"?xs:Es,title:p==="names"?o("myAssets.emptyNamesTitle"):o("myAssets.emptyOwnedTitle"),body:p==="names"?o("myAssets.namesEmpty"):o("myAssets.ownedEmpty"),cta:p!=="names"?{label:o("myAssets.emptyBrowse"),to:"/items"}:void 0}):null]})]}),q==="open"?t.jsx(rn,{onClose:ve,onConfirm:e=>{ve(e),w("/import")}}):null]})}export{lo as MyAssets};
|
|
410
|
+
//# sourceMappingURL=MyAssets-5gpOzD_e.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as l,j as t}from"./react-
|
|
1
|
+
import{r as l,j as t}from"./react-COwX0Zlk.js";import{s as i,a as h,B as F,t as s,X as c,Y as w,Z as E,$ as k,a0 as f,a1 as _,a2 as $}from"./index-BRNshUaV.js";import{L as I}from"./LoadMore-yxZw85kf.js";import{E as M}from"./ErrorNotice-5cQusmGK.js";import{G as S}from"./grid.styles-CCv5GYbY.js";import"./dcl-schemas-B-Ph0Ls4.js";import"./sentry-D9BarSwm.js";import"./ethers-bR7FzlYq.js";import"./intl-AKLEHPeO.js";(function(){try{var r=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},a=new r.Error().stack;a&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[a]="358d8fc6-bb25-4681-afe3-4305f581607b",r._sentryDebugIdIdentifier="sentry-dbid-358d8fc6-bb25-4681-afe3-4305f581607b")}catch{}})();const{colors:o,radius:L}=h,B=i.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
align-items: baseline;
|
|
4
4
|
gap: 12px;
|
|
@@ -59,4 +59,4 @@ import{r as l,j as t}from"./react-BmPeg6sG.js";import{s as i,a as h,B as F,t as
|
|
|
59
59
|
margin-top: 36px;
|
|
60
60
|
}
|
|
61
61
|
`,T="data:image/svg+xml,%3csvg%20width='138'%20height='138'%20viewBox='0%200%20138%20138'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M92.7188%2021.5625V34.5'%20stroke='%23FF7158'%20stroke-width='4.3125'%20stroke-linecap='round'/%3e%3cpath%20d='M86.25%2028.0312H99.1875'%20stroke='%23FF7158'%20stroke-width='4.3125'%20stroke-linecap='round'/%3e%3cpath%20d='M24.7324%2065.5C24.732%2062.8042%2025.2665%2060.1361%2026.3037%2057.6514C27.341%2055.1665%2028.8602%2052.9151%2030.7715%2051.0293C32.6826%2049.1438%2034.9471%2047.6604%2037.4326%2046.666C39.9183%2045.6716%2042.5762%2045.1856%2045.25%2045.2354L45.3008%2045.2363H45.3516C48.581%2045.2192%2051.7779%2045.8923%2054.7305%2047.2109C56.1717%2047.8547%2057.539%2048.6448%2058.8115%2049.5674C60.1459%2050.5348%2061.3766%2051.6478%2062.4795%2052.8887L65.6426%2056.4473L68.8057%2052.8887C69.9086%2051.6478%2071.1392%2050.5348%2072.4736%2049.5674C73.7464%2048.6446%2075.1142%2047.8547%2076.5557%2047.2109C79.5083%2045.8922%2082.705%2045.2191%2085.9346%2045.2363H85.9854L86.0361%2045.2354C88.7097%2045.1856%2091.367%2045.6717%2093.8525%2046.666C96.3383%2047.6604%2098.6034%2049.1436%20100.515%2051.0293C102.426%2052.915%20103.945%2055.1665%20104.982%2057.6514C106.02%2060.1361%20106.554%2062.8043%20106.554%2065.5V65.501C106.554%2074.0645%20102.382%2082.1039%2095.8086%2089.877C89.2296%2097.6565%2080.6704%20104.682%2072.6035%20111.289C71.1421%20112.486%2069.6963%20113.67%2068.2959%20114.832C66.7887%20116.083%2064.5293%20116.081%2063.0176%20114.818C61.4894%20113.542%2059.9072%20112.242%2058.3076%20110.928C50.2836%20104.335%2041.8192%2097.3643%2035.3242%2089.6553C28.8376%2081.9561%2024.7324%2073.9982%2024.7324%2065.501V65.5Z'%20stroke='url(%23paint0_linear_1564_322452)'%20stroke-width='8.46429'/%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_1564_322452'%20x1='17.6552'%20y1='80.505'%20x2='176.469'%20y2='63.4051'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23FF2D55'/%3e%3cstop%20offset='1'%20stop-color='%23FFBC5B'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e",y=24,U=20;function J(){F({title:s("nav.myFavorites"),noindex:!0});const r=c(e=>Object.values(e.items)),a=c(e=>e.status),p=c(e=>e.retry),[m,v]=l.useState(y),{data:u,isPending:b,isError:C}=w(),g=r.some(e=>!!e.manaWei),n=l.useMemo(()=>r.map(e=>({...e,priceCredits:E(e,u)})),[r,u]),j=l.useMemo(()=>n.slice(0,U).map(e=>e.contractAddress&&e.itemId?`${e.contractAddress.toLowerCase()}-${e.itemId}`:null).filter(e=>e!==null),[n]);if(a==="error")return t.jsxs(H,{"data-testid":"favorites-error",children:[t.jsx(M,{message:s("myFavorites.loadError")}),t.jsx(P,{type:"button",onClick:p,children:s("myFavorites.tryAgain")})]});if(a==="ready"&&n.length===0)return t.jsxs(R,{children:[t.jsx(k,{testId:"favorites-empty",icon:T,title:s("myFavorites.emptyTitle"),body:s("myFavorites.emptyBody"),cta:{label:s("myFavorites.emptyCta"),to:"/items"}}),t.jsx(x,{children:t.jsx(f,{title:s("myFavorites.suggestedTitle"),surface:"favorites"})})]});const d=a==="loading"||b&&g;return t.jsxs("section",{children:[t.jsxs(B,{children:[t.jsx(D,{children:s("nav.myFavorites")}),d?null:t.jsx(G,{children:s("myFavorites.itemCount",{count:n.length})})]}),C&&g?t.jsx(A,{children:s("assets.marketUnavailable")}):null,t.jsx(S,{"data-testid":d?"favorites-loading":void 0,children:d?t.jsx(_,{count:8}):n.slice(0,m).map(e=>t.jsx($,{item:e},e.id))}),t.jsx(I,{hasNextPage:!d&&m<n.length,isFetching:!1,onLoadMore:()=>v(e=>e+y)}),d?null:t.jsx(x,{children:t.jsx(f,{title:s("myFavorites.suggestedTitle"),surface:"favorites",exclude:j})})]})}export{J as MyFavorites};
|
|
62
|
-
//# sourceMappingURL=MyFavorites-
|
|
62
|
+
//# sourceMappingURL=MyFavorites-C8PXtYWt.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as v,j as t,L as St,u as xe,N as fe}from"./react-BmPeg6sG.js";import{c as tt,bS as ge,w as O,cg as ye,ch as be,s as c,t as o,z as je,a as n,I as st,B as Se,x as we,bV as $e,ci as ve,a3 as ke,b6 as Yt,aF as Ce,$ as Ae,H as Qt,bT as Vt,cj as Xt,bX as Ie,ck as Me,av as We,aw as Le,ax as ze,as as Pe,bM as Fe,cl as Ne}from"./index-COio6Ejd.js";import{f as Te}from"./SaleCountdown-D_0C1G0b.js";import{d as Ee}from"./dcl-schemas-COntwfiV.js";import{t as Oe,u as De,a as Re,C as Be}from"./useCreatorSales-Ze3V5ohC.js";import{T as at}from"./Tooltip-BEJkU8QC.js";import{m as qe}from"./mana-matic-CEqvSwrJ.js";import{E as zt}from"./ErrorNotice-BZweT4nq.js";import{s as _e}from"./signin-empty-XsT9jLzt.js";import{g as He,R as Ue,M as Ke}from"./browseLayout.styles-fXEIBUq8.js";import"./sentry-CfKEockx.js";import"./ethers-BIoA35Pn.js";import"./intl-AKLEHPeO.js";import"./errors-DxKvZXrL.js";import"./sha3-B3El3U9k.js";import"./browser-gYEIuxiW.js";import"./trade-encoding-D0iBabuM.js";import"./sendMetaTransaction-Dy6lp92T.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},a=new e.Error().stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="00277dff-8371-4b92-b08e-03bef4d64f4a",e._sentryDebugIdIdentifier="sentry-dbid-00277dff-8371-4b92-b08e-03bef4d64f4a")}catch{}})();function N(e){try{return BigInt(e||"0")}catch{return 0n}}async function Pt(e){var s;const a=new URLSearchParams({seller:e.seller});e.from!=null&&a.set("from",String(e.from)),e.to!=null&&a.set("to",String(e.to));const i=await fetch(`${tt.marketplaceServerUrl}/v1/sales/summary?${a.toString()}`);if(!i.ok)throw await((s=i.body)==null?void 0:s.cancel()),new Error(`fetchSalesSummary ${i.status}`);const{data:r}=await i.json();return r}function Ge(e){const a=new URLSearchParams;return e.seller&&a.set("seller",e.seller),e.contractAddress&&a.set("contractAddress",e.contractAddress),e.itemId!=null&&a.set("itemId",e.itemId),e.type&&a.set("type",e.type),e.from!=null&&a.set("from",String(e.from)),e.to!=null&&a.set("to",String(e.to)),a.set("first",String(e.first??100)),e.skip&&a.set("skip",String(e.skip)),a.set("sortBy","recently_sold"),a}async function wt(e){var r;const a=await fetch(`${tt.marketplaceServerUrl}/v1/sales?${Ge(e).toString()}`);if(!a.ok)throw await((r=a.body)==null?void 0:r.cancel()),new Error(`fetchSales ${a.status}`);const i=await a.json();return{data:i.data??[],total:i.total??0}}async function Ye(e){const{total:a}=await wt({...e,first:1});return a}async function Qe(e,{first:a,skip:i}){const{data:r,total:s}=await wt({...e,first:a,skip:i});return{rows:r,total:s}}async function Ve(e,{cap:a=5e3}={}){const r=[];let s=0;for(let x=0;x<a;x+=1e3){const d=Math.min(1e3,a-x),u=await wt({...e,first:d,skip:x});if(s=u.total,r.push(...u.data),u.data.length<d||r.length>=s)break}return{rows:r,total:s,truncated:s>r.length}}const Zt=864e5;function Ft(e,a){return{current:e,previous:a,pct:a===0?null:(e-a)/a*100}}function Xe(e,a){const i=a===0n?null:Number((e-a)*10000n/a)/100;return{current:Number(e),previous:Number(a),pct:i}}function Ze(e,a=3){var x;const i=new Map;for(const d of e){const u=d.buyer.toLowerCase();i.set(u,(i.get(u)??0)+1)}const r=[...i.entries()].sort((d,u)=>u[1]-d[1]||d[0].localeCompare(u[0])),s=r.filter(([,d])=>d>1).length;return{total:r.length,repeat:s,repeatPct:r.length===0?0:s/r.length*100,topSharePct:e.length===0?0:(((x=r[0])==null?void 0:x[1])??0)/e.length*100,top:r.slice(0,a).map(([d,u])=>({address:d,bought:u}))}}function Je(e,a=5){const i=new Map;for(const r of e){const s=r.buyer.toLowerCase(),x=r.contractAddress.toLowerCase(),d=i.get(s)??{bought:0,items:new Set,collections:new Set,spentWei:0n,lastAt:0};d.bought+=1,r.itemId!=null&&d.items.add(`${x}-${r.itemId}`),d.collections.add(x),d.spentWei+=N(r.price),r.timestamp>d.lastAt&&(d.lastAt=r.timestamp),i.set(s,d)}return[...i.entries()].map(([r,s])=>({address:r,bought:s.bought,items:s.items.size,collections:s.collections.size,spentWei:s.spentWei,lastAt:s.lastAt})).sort((r,s)=>s.spentWei>r.spentWei?1:s.spentWei<r.spentWei?-1:s.bought-r.bought).slice(0,a)}function tn(e,a){if(e.length===0)return null;const i=e.reduce((r,s)=>s.timestamp>r?s.timestamp:r,0);return Math.max(0,Math.floor((a-i)/Zt))}function en(e,a,i,r){const s=a.effective,x=Math.min(a.expiration,i);if(x<=s)return null;const d=x-s,u=s-d,y=r??e.reduce(($,z)=>z.timestamp<$?z.timestamp:$,i);if(u<y)return null;const A=e.filter($=>$.timestamp>=s&&$.timestamp<=x).length,I=e.filter($=>$.timestamp>=u&&$.timestamp<s).length,M=d/Zt,T=A/M,w=I/M;return{during:A,duringPerDay:T,before:I,beforePerDay:w,liftPct:w===0?null:(T-w)/w*100,days:M}}function nn(e,a){return e.map(i=>({key:i.key,name:i.name,saves:a.get(i.key)??0,sold:i.sold})).filter(i=>i.saves>0&&i.sold===0).sort((i,r)=>r.saves-i.saves||i.name.localeCompare(r.name))}const xt=100;async function on(e){const[{collections:a},i]=await Promise.all([ge(e,{first:100}),an(e)]),r=new Map(a.map(s=>[s.contractAddress.toLowerCase(),s.name]));return i.map(s=>{const x=(s.rarity??"common").toLowerCase(),d=sn(x),u=Number(s.available??0);return{id:s.id,collectionId:s.contractAddress,collectionName:r.get(s.contractAddress.toLowerCase())??s.contractAddress,contractAddress:s.contractAddress,blockchainItemId:String(s.itemId??""),name:s.name,category:s.category,rarity:x,thumbnail:s.thumbnail??"",type:s.category==="emote"?"emote":"wearable",isPublished:!0,isApproved:!0,totalSupply:Math.max(0,d-u),maxSupply:d,remainingSupply:u,createdAt:s.createdAt?s.createdAt*1e3:void 0,minters:[]}})}function sn(e){try{return Ee.Rarity.getMaxSupply(e)}catch{return 0}}async function an(e){var i;const a=[];for(let r=0;;r+=xt){const s=new URLSearchParams({creator:e,first:String(xt),skip:String(r),includeSocialEmotes:"false"}),x=await fetch(`${tt.marketplaceServerUrl}/v3/catalog/items?${s.toString()}`);if(!x.ok)throw await((i=x.body)==null?void 0:i.cancel()),new Error(`fetchPublicCatalogue ${x.status}`);const{data:d}=await x.json(),u=d??[];if(a.push(...u),u.length<xt)return a}}const bt=864e5,ct=14;function rn(e,a,i){const r=new Array(ct).fill(0),s=i-a*bt,x=a*bt/ct;for(const d of e)d.timestamp<s||d.timestamp>i||(r[Math.min(ct-1,Math.floor((d.timestamp-s)/x))]+=1);return r}function ln({rows:e,total:a,truncated:i,mints:r,summary:s,catalogue:x,saleState:d,unreadable:u,days:y,now:A}){const I=new Map,M=new Map;for(const h of e){if(h.type!=="mint"||h.itemId==null)continue;const m=h.contractAddress.toLowerCase(),g=`${m}-${h.itemId}`;I.set(g,(I.get(g)??0)+1);const f=M.get(m)??[];f.push(h),M.set(m,f)}const T=e.reduce((h,m)=>m.timestamp<h?m.timestamp:h,A),w=Math.max(1,Math.ceil((A-T)/bt)),$=y!=null&&!i?y:Math.max(y==null?ct:1,w),z=new Map(((s==null?void 0:s.byItem)??[]).map(h=>[`${h.contractAddress.toLowerCase()}-${h.itemId}`,h.soldLifetime])),_=new Map(((s==null?void 0:s.byCollection)??[]).map(h=>[h.contractAddress.toLowerCase(),h])),W=new Map;let L=0,E=0,P=0,H=0,b=0;for(const h of x){const m=h.contractAddress.toLowerCase(),g=d[`${h.contractAddress}-${h.blockchainItemId}`],f=h.remainingSupply<=0?"soldout":u!=null&&u.has(m)?"unknown":g!=null&&g.isOnSale?g.manaWei?"classic":"discounted":"unlisted";f==="soldout"?H+=1:f==="unlisted"?b+=1:f==="classic"?P+=1:f==="discounted"&&(E+=1);const j=W.get(m)??{contractAddress:m,collectionId:h.collectionId,name:h.collectionName,items:[],listed:0,classic:0,soldOut:0,sold:0,earningsWei:0n,createdAt:null,trend:[],exhausted:!1},F=I.get(`${m}-${h.blockchainItemId}`)??0;j.items.push({key:`${m}-${h.blockchainItemId}`,itemId:h.blockchainItemId,name:h.name,thumbnail:h.thumbnail,rarity:h.rarity,left:h.remainingSupply,minted:h.totalSupply,sold:F,lifetimeSold:z.get(`${m}-${h.blockchainItemId}`)??null,priceCredits:(g==null?void 0:g.priceCredits)??null,manaWei:(g==null?void 0:g.manaWei)??null,createdAt:h.createdAt??null,state:f}),j.sold+=F,L+=F,h.createdAt&&(j.createdAt==null||h.createdAt>j.createdAt)&&(j.createdAt=h.createdAt),f==="soldout"?j.soldOut+=1:f==="classic"?j.classic+=1:f==="discounted"&&(j.listed+=1),W.set(m,j)}for(const[h,m]of W){const g=M.get(h)??[],f=_.get(h);m.earningsWei=f?N(f.earnedWei):g.reduce((j,F)=>j+N(F.price),0n),f&&(m.sold=f.sold),m.trend=rn(g,$,A),m.exhausted=m.items.length>0&&m.soldOut===m.items.length,m.items.sort((j,F)=>F.sold-j.sold||j.name.localeCompare(F.name))}const p=[...W.values()].reduce((h,m)=>h+m.sold,0);return{collections:[...W.values()].sort((h,m)=>m.sold-h.sold||h.name.localeCompare(m.name)),sold:(s==null?void 0:s.total)??a,mints:(s==null?void 0:s.mints)??r,resales:s?s.resales:a-r,earningsWei:s?N(s.earnedWei):e.reduce((h,m)=>h+N(m.price),0n),partial:s?!1:i,breakdownPartial:i,fetched:e.length,unattributed:s?s.total-p:e.length-L,trendDays:$,unknownCollections:[...W.keys()].filter(h=>u==null?void 0:u.has(h)).length,royalties:s?{resales:s.royalties.resales,volumeWei:N(s.royalties.volumeWei)}:null,listed:E,neverListed:b,classic:P,soldOut:H}}const Q=864e5,dn={"7d":7,"30d":30,all:null};function cn(e,a,i){const r=i??(e==null?void 0:e.address),s=dn[a],x=v.useMemo(()=>Math.floor(Date.now()/Q)*Q+Q-1,[]),d=s?x-s*Q:void 0,u=O({queryKey:["store-sales",r,a],enabled:!!r,queryFn:()=>Ve({seller:r,from:d})}),y=O({queryKey:["store-summary",r,a],enabled:!!r,queryFn:()=>Pt({seller:r,from:d})}),A=s!=null?x-2*s*Q:void 0,I=s!=null?x-s*Q:void 0,M=O({queryKey:["store-summary-previous",r,a],enabled:!!r&&A!==void 0,queryFn:()=>Pt({seller:r,from:A,to:I})}),T=O({queryKey:["store-mints",r,a],enabled:!!r,queryFn:()=>Ye({seller:r,from:d,type:"mint"})}),w=O({queryKey:["store-catalogue",r,!!i],enabled:!!r&&(!!i||!!e),queryFn:()=>i?on(i):Te(r,e.identity,{includeSoldOut:!0})}),$=v.useMemo(()=>[...new Set((w.data??[]).map(b=>b.contractAddress))],[w.data]),z=O({queryKey:["store-sale-state",r,$],enabled:$.length>0,queryFn:async()=>{const b=await Promise.allSettled($.map(m=>ye(m))),p={},h=new Set;return b.forEach((m,g)=>{const f=$[g];if(m.status==="rejected"){h.add(f.toLowerCase());return}for(const[j,F]of Object.entries(m.value))p[`${f}-${j}`]=F}),{states:p,unreadable:h}}}),_=O({queryKey:["store-saves",$,(w.data??[]).length],enabled:(w.data??[]).length>0,queryFn:async()=>{const b=(w.data??[]).map(m=>`${m.contractAddress.toLowerCase()}-${m.blockchainItemId}`),p=await Promise.allSettled(b.map(async m=>[m,(await be(m)).count])),h=new Map;for(const m of p)m.status==="fulfilled"&&h.set(m.value[0],m.value[1]);return h}}),W=v.useMemo(()=>{var b,p,h,m,g;return w.data?ln({rows:((b=u.data)==null?void 0:b.rows)??[],total:((p=u.data)==null?void 0:p.total)??0,truncated:!!((h=u.data)!=null&&h.truncated),mints:T.data??0,summary:y.data??null,catalogue:w.data,saleState:((m=z.data)==null?void 0:m.states)??{},unreadable:(g=z.data)==null?void 0:g.unreadable,days:s,now:x}):null},[w.data,u.data,T.data,y.data,z.data,s,x]),L=v.useMemo(()=>{var b;return Oe(w.data??[],(b=z.data)==null?void 0:b.states)},[w.data,z.data]),E=v.useMemo(()=>{var g,f,j;const b=Ze(((g=u.data)==null?void 0:g.rows)??[]),p=Je(((f=u.data)==null?void 0:f.rows)??[]),h=tn(((j=u.data)==null?void 0:j.rows)??[],x),m=M.data;return{collectors:b,buyers:p,quietDays:h,sold:m&&y.data?Ft(y.data.total,m.total):null,earnings:m&&y.data?Xe(N(y.data.earnedWei),N(m.earnedWei)):null,royalties:m&&y.data?Ft(y.data.royalties.resales,m.royalties.resales):null}},[u.data,y.data,M.data,x]),P=v.useCallback(b=>{var g;const p=((g=u.data)==null?void 0:g.rows)??[],h=new Set(b.collections.map(f=>f.toLowerCase())),m=p.reduce((f,j)=>j.timestamp<f?j.timestamp:f,x);return en(p.filter(f=>h.has(f.contractAddress.toLowerCase())),b.checks,x,m)},[u.data,x]),H=v.useMemo(()=>nn(((W==null?void 0:W.collections)??[]).flatMap(b=>b.items).map(b=>({...b,sold:b.lifetimeSold??b.sold})),_.data??new Map),[W,_.data]);return{stats:W,trend:E,wanted:H,liftFor:P,saleable:L,isLoading:w.isLoading||u.isLoading||y.isLoading,error:w.error??u.error??null}}const hn=c.span`
|
|
1
|
+
import{r as v,j as t,L as St,u as xe,N as fe}from"./react-COwX0Zlk.js";import{c as tt,bU as ge,w as O,ci as ye,cj as be,s as c,t as o,z as je,a as n,I as st,B as Se,x as we,bX as $e,ck as ve,a3 as ke,b6 as Yt,aF as Ce,$ as Ae,H as Qt,bV as Vt,cl as Zt,bZ as Ie,cm as Me,av as We,aw as Le,ax as ze,as as Pe,bO as Fe,cn as Ne}from"./index-BRNshUaV.js";import{f as Te}from"./SaleCountdown-C7e8fbLx.js";import{d as Ee}from"./dcl-schemas-B-Ph0Ls4.js";import{t as Oe,u as De,a as Re,C as Be}from"./useCreatorSales-D2bq-mjs.js";import{T as at}from"./Tooltip-S7k1SpAV.js";import{m as qe}from"./mana-matic-CEqvSwrJ.js";import{E as zt}from"./ErrorNotice-5cQusmGK.js";import{s as _e}from"./signin-empty-C2-U4-eJ.js";import{g as He,R as Ue,M as Ke}from"./browseLayout.styles-D4_s76IT.js";import"./sentry-D9BarSwm.js";import"./ethers-bR7FzlYq.js";import"./intl-AKLEHPeO.js";import"./errors-wUAVqc_c.js";import"./sha3-B0gscz6j.js";import"./browser-5Iquaht5.js";import"./trade-encoding-DqOFT-xH.js";import"./sendMetaTransaction-Cpk-JkUY.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},a=new e.Error().stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="1a04801c-d410-4790-8851-a18c84a16404",e._sentryDebugIdIdentifier="sentry-dbid-1a04801c-d410-4790-8851-a18c84a16404")}catch{}})();function N(e){try{return BigInt(e||"0")}catch{return 0n}}async function Pt(e){var s;const a=new URLSearchParams({seller:e.seller});e.from!=null&&a.set("from",String(e.from)),e.to!=null&&a.set("to",String(e.to));const i=await fetch(`${tt.marketplaceServerUrl}/v1/sales/summary?${a.toString()}`);if(!i.ok)throw await((s=i.body)==null?void 0:s.cancel()),new Error(`fetchSalesSummary ${i.status}`);const{data:r}=await i.json();return r}function Ge(e){const a=new URLSearchParams;return e.seller&&a.set("seller",e.seller),e.contractAddress&&a.set("contractAddress",e.contractAddress),e.itemId!=null&&a.set("itemId",e.itemId),e.type&&a.set("type",e.type),e.from!=null&&a.set("from",String(e.from)),e.to!=null&&a.set("to",String(e.to)),a.set("first",String(e.first??100)),e.skip&&a.set("skip",String(e.skip)),a.set("sortBy","recently_sold"),a}async function wt(e){var r;const a=await fetch(`${tt.marketplaceServerUrl}/v1/sales?${Ge(e).toString()}`);if(!a.ok)throw await((r=a.body)==null?void 0:r.cancel()),new Error(`fetchSales ${a.status}`);const i=await a.json();return{data:i.data??[],total:i.total??0}}async function Ye(e){const{total:a}=await wt({...e,first:1});return a}async function Qe(e,{first:a,skip:i}){const{data:r,total:s}=await wt({...e,first:a,skip:i});return{rows:r,total:s}}async function Ve(e,{cap:a=5e3}={}){const r=[];let s=0;for(let x=0;x<a;x+=1e3){const d=Math.min(1e3,a-x),u=await wt({...e,first:d,skip:x});if(s=u.total,r.push(...u.data),u.data.length<d||r.length>=s)break}return{rows:r,total:s,truncated:s>r.length}}const Xt=864e5;function Ft(e,a){return{current:e,previous:a,pct:a===0?null:(e-a)/a*100}}function Ze(e,a){const i=a===0n?null:Number((e-a)*10000n/a)/100;return{current:Number(e),previous:Number(a),pct:i}}function Xe(e,a=3){var x;const i=new Map;for(const d of e){const u=d.buyer.toLowerCase();i.set(u,(i.get(u)??0)+1)}const r=[...i.entries()].sort((d,u)=>u[1]-d[1]||d[0].localeCompare(u[0])),s=r.filter(([,d])=>d>1).length;return{total:r.length,repeat:s,repeatPct:r.length===0?0:s/r.length*100,topSharePct:e.length===0?0:(((x=r[0])==null?void 0:x[1])??0)/e.length*100,top:r.slice(0,a).map(([d,u])=>({address:d,bought:u}))}}function Je(e,a=5){const i=new Map;for(const r of e){const s=r.buyer.toLowerCase(),x=r.contractAddress.toLowerCase(),d=i.get(s)??{bought:0,items:new Set,collections:new Set,spentWei:0n,lastAt:0};d.bought+=1,r.itemId!=null&&d.items.add(`${x}-${r.itemId}`),d.collections.add(x),d.spentWei+=N(r.price),r.timestamp>d.lastAt&&(d.lastAt=r.timestamp),i.set(s,d)}return[...i.entries()].map(([r,s])=>({address:r,bought:s.bought,items:s.items.size,collections:s.collections.size,spentWei:s.spentWei,lastAt:s.lastAt})).sort((r,s)=>s.spentWei>r.spentWei?1:s.spentWei<r.spentWei?-1:s.bought-r.bought).slice(0,a)}function tn(e,a){if(e.length===0)return null;const i=e.reduce((r,s)=>s.timestamp>r?s.timestamp:r,0);return Math.max(0,Math.floor((a-i)/Xt))}function en(e,a,i,r){const s=a.effective,x=Math.min(a.expiration,i);if(x<=s)return null;const d=x-s,u=s-d,y=r??e.reduce(($,z)=>z.timestamp<$?z.timestamp:$,i);if(u<y)return null;const A=e.filter($=>$.timestamp>=s&&$.timestamp<=x).length,I=e.filter($=>$.timestamp>=u&&$.timestamp<s).length,M=d/Xt,T=A/M,w=I/M;return{during:A,duringPerDay:T,before:I,beforePerDay:w,liftPct:w===0?null:(T-w)/w*100,days:M}}function nn(e,a){return e.map(i=>({key:i.key,name:i.name,saves:a.get(i.key)??0,sold:i.sold})).filter(i=>i.saves>0&&i.sold===0).sort((i,r)=>r.saves-i.saves||i.name.localeCompare(r.name))}const xt=100;async function on(e){const[{collections:a},i]=await Promise.all([ge(e,{first:100}),an(e)]),r=new Map(a.map(s=>[s.contractAddress.toLowerCase(),s.name]));return i.map(s=>{const x=(s.rarity??"common").toLowerCase(),d=sn(x),u=Number(s.available??0);return{id:s.id,collectionId:s.contractAddress,collectionName:r.get(s.contractAddress.toLowerCase())??s.contractAddress,contractAddress:s.contractAddress,blockchainItemId:String(s.itemId??""),name:s.name,category:s.category,rarity:x,thumbnail:s.thumbnail??"",type:s.category==="emote"?"emote":"wearable",isPublished:!0,isApproved:!0,totalSupply:Math.max(0,d-u),maxSupply:d,remainingSupply:u,createdAt:s.createdAt?s.createdAt*1e3:void 0,minters:[]}})}function sn(e){try{return Ee.Rarity.getMaxSupply(e)}catch{return 0}}async function an(e){var i;const a=[];for(let r=0;;r+=xt){const s=new URLSearchParams({creator:e,first:String(xt),skip:String(r),includeSocialEmotes:"false"}),x=await fetch(`${tt.marketplaceServerUrl}/v3/catalog/items?${s.toString()}`);if(!x.ok)throw await((i=x.body)==null?void 0:i.cancel()),new Error(`fetchPublicCatalogue ${x.status}`);const{data:d}=await x.json(),u=d??[];if(a.push(...u),u.length<xt)return a}}const bt=864e5,ct=14;function rn(e,a,i){const r=new Array(ct).fill(0),s=i-a*bt,x=a*bt/ct;for(const d of e)d.timestamp<s||d.timestamp>i||(r[Math.min(ct-1,Math.floor((d.timestamp-s)/x))]+=1);return r}function ln({rows:e,total:a,truncated:i,mints:r,summary:s,catalogue:x,saleState:d,unreadable:u,days:y,now:A}){const I=new Map,M=new Map;for(const h of e){if(h.type!=="mint"||h.itemId==null)continue;const m=h.contractAddress.toLowerCase(),g=`${m}-${h.itemId}`;I.set(g,(I.get(g)??0)+1);const f=M.get(m)??[];f.push(h),M.set(m,f)}const T=e.reduce((h,m)=>m.timestamp<h?m.timestamp:h,A),w=Math.max(1,Math.ceil((A-T)/bt)),$=y!=null&&!i?y:Math.max(y==null?ct:1,w),z=new Map(((s==null?void 0:s.byItem)??[]).map(h=>[`${h.contractAddress.toLowerCase()}-${h.itemId}`,h.soldLifetime])),_=new Map(((s==null?void 0:s.byCollection)??[]).map(h=>[h.contractAddress.toLowerCase(),h])),W=new Map;let L=0,E=0,P=0,H=0,b=0;for(const h of x){const m=h.contractAddress.toLowerCase(),g=d[`${h.contractAddress}-${h.blockchainItemId}`],f=h.remainingSupply<=0?"soldout":u!=null&&u.has(m)?"unknown":g!=null&&g.isOnSale?g.manaWei?"classic":"discounted":"unlisted";f==="soldout"?H+=1:f==="unlisted"?b+=1:f==="classic"?P+=1:f==="discounted"&&(E+=1);const j=W.get(m)??{contractAddress:m,collectionId:h.collectionId,name:h.collectionName,items:[],listed:0,classic:0,soldOut:0,sold:0,earningsWei:0n,createdAt:null,trend:[],exhausted:!1},F=I.get(`${m}-${h.blockchainItemId}`)??0;j.items.push({key:`${m}-${h.blockchainItemId}`,itemId:h.blockchainItemId,name:h.name,thumbnail:h.thumbnail,rarity:h.rarity,left:h.remainingSupply,minted:h.totalSupply,sold:F,lifetimeSold:z.get(`${m}-${h.blockchainItemId}`)??null,priceCredits:(g==null?void 0:g.priceCredits)??null,manaWei:(g==null?void 0:g.manaWei)??null,createdAt:h.createdAt??null,state:f}),j.sold+=F,L+=F,h.createdAt&&(j.createdAt==null||h.createdAt>j.createdAt)&&(j.createdAt=h.createdAt),f==="soldout"?j.soldOut+=1:f==="classic"?j.classic+=1:f==="discounted"&&(j.listed+=1),W.set(m,j)}for(const[h,m]of W){const g=M.get(h)??[],f=_.get(h);m.earningsWei=f?N(f.earnedWei):g.reduce((j,F)=>j+N(F.price),0n),f&&(m.sold=f.sold),m.trend=rn(g,$,A),m.exhausted=m.items.length>0&&m.soldOut===m.items.length,m.items.sort((j,F)=>F.sold-j.sold||j.name.localeCompare(F.name))}const p=[...W.values()].reduce((h,m)=>h+m.sold,0);return{collections:[...W.values()].sort((h,m)=>m.sold-h.sold||h.name.localeCompare(m.name)),sold:(s==null?void 0:s.total)??a,mints:(s==null?void 0:s.mints)??r,resales:s?s.resales:a-r,earningsWei:s?N(s.earnedWei):e.reduce((h,m)=>h+N(m.price),0n),partial:s?!1:i,breakdownPartial:i,fetched:e.length,unattributed:s?s.total-p:e.length-L,trendDays:$,unknownCollections:[...W.keys()].filter(h=>u==null?void 0:u.has(h)).length,royalties:s?{resales:s.royalties.resales,volumeWei:N(s.royalties.volumeWei)}:null,listed:E,neverListed:b,classic:P,soldOut:H}}const Q=864e5,dn={"7d":7,"30d":30,all:null};function cn(e,a,i){const r=i??(e==null?void 0:e.address),s=dn[a],x=v.useMemo(()=>Math.floor(Date.now()/Q)*Q+Q-1,[]),d=s?x-s*Q:void 0,u=O({queryKey:["store-sales",r,a],enabled:!!r,queryFn:()=>Ve({seller:r,from:d})}),y=O({queryKey:["store-summary",r,a],enabled:!!r,queryFn:()=>Pt({seller:r,from:d})}),A=s!=null?x-2*s*Q:void 0,I=s!=null?x-s*Q:void 0,M=O({queryKey:["store-summary-previous",r,a],enabled:!!r&&A!==void 0,queryFn:()=>Pt({seller:r,from:A,to:I})}),T=O({queryKey:["store-mints",r,a],enabled:!!r,queryFn:()=>Ye({seller:r,from:d,type:"mint"})}),w=O({queryKey:["store-catalogue",r,!!i],enabled:!!r&&(!!i||!!e),queryFn:()=>i?on(i):Te(r,e.identity,{includeSoldOut:!0})}),$=v.useMemo(()=>[...new Set((w.data??[]).map(b=>b.contractAddress))],[w.data]),z=O({queryKey:["store-sale-state",r,$],enabled:$.length>0,queryFn:async()=>{const b=await Promise.allSettled($.map(m=>ye(m))),p={},h=new Set;return b.forEach((m,g)=>{const f=$[g];if(m.status==="rejected"){h.add(f.toLowerCase());return}for(const[j,F]of Object.entries(m.value))p[`${f}-${j}`]=F}),{states:p,unreadable:h}}}),_=O({queryKey:["store-saves",$,(w.data??[]).length],enabled:(w.data??[]).length>0,queryFn:async()=>{const b=(w.data??[]).map(m=>`${m.contractAddress.toLowerCase()}-${m.blockchainItemId}`),p=await Promise.allSettled(b.map(async m=>[m,(await be(m)).count])),h=new Map;for(const m of p)m.status==="fulfilled"&&h.set(m.value[0],m.value[1]);return h}}),W=v.useMemo(()=>{var b,p,h,m,g;return w.data?ln({rows:((b=u.data)==null?void 0:b.rows)??[],total:((p=u.data)==null?void 0:p.total)??0,truncated:!!((h=u.data)!=null&&h.truncated),mints:T.data??0,summary:y.data??null,catalogue:w.data,saleState:((m=z.data)==null?void 0:m.states)??{},unreadable:(g=z.data)==null?void 0:g.unreadable,days:s,now:x}):null},[w.data,u.data,T.data,y.data,z.data,s,x]),L=v.useMemo(()=>{var b;return Oe(w.data??[],(b=z.data)==null?void 0:b.states)},[w.data,z.data]),E=v.useMemo(()=>{var g,f,j;const b=Xe(((g=u.data)==null?void 0:g.rows)??[]),p=Je(((f=u.data)==null?void 0:f.rows)??[]),h=tn(((j=u.data)==null?void 0:j.rows)??[],x),m=M.data;return{collectors:b,buyers:p,quietDays:h,sold:m&&y.data?Ft(y.data.total,m.total):null,earnings:m&&y.data?Ze(N(y.data.earnedWei),N(m.earnedWei)):null,royalties:m&&y.data?Ft(y.data.royalties.resales,m.royalties.resales):null}},[u.data,y.data,M.data,x]),P=v.useCallback(b=>{var g;const p=((g=u.data)==null?void 0:g.rows)??[],h=new Set(b.collections.map(f=>f.toLowerCase())),m=p.reduce((f,j)=>j.timestamp<f?j.timestamp:f,x);return en(p.filter(f=>h.has(f.contractAddress.toLowerCase())),b.checks,x,m)},[u.data,x]),H=v.useMemo(()=>nn(((W==null?void 0:W.collections)??[]).flatMap(b=>b.items).map(b=>({...b,sold:b.lifetimeSold??b.sold})),_.data??new Map),[W,_.data]);return{stats:W,trend:E,wanted:H,liftFor:P,saleable:L,isLoading:w.isLoading||u.isLoading||y.isLoading,error:w.error??u.error??null}}const hn=c.span`
|
|
2
2
|
display: inline-flex;
|
|
3
3
|
align-items: center;
|
|
4
4
|
cursor: help;
|
|
@@ -144,11 +144,11 @@ import{r as v,j as t,L as St,u as xe,N as fe}from"./react-BmPeg6sG.js";import{c
|
|
|
144
144
|
letter-spacing: 0.04em;
|
|
145
145
|
text-transform: uppercase;
|
|
146
146
|
color: ${n.colors.muted1};
|
|
147
|
-
`,
|
|
147
|
+
`,Z=c.span`
|
|
148
148
|
font-size: 13px;
|
|
149
149
|
line-height: 1;
|
|
150
150
|
filter: saturate(0.9);
|
|
151
|
-
`,
|
|
151
|
+
`,X=c.span`
|
|
152
152
|
display: flex;
|
|
153
153
|
align-items: baseline;
|
|
154
154
|
gap: 8px;
|
|
@@ -782,7 +782,7 @@ import{r as v,j as t,L as St,u as xe,N as fe}from"./react-BmPeg6sG.js";import{c
|
|
|
782
782
|
&:focus-visible {
|
|
783
783
|
text-decoration: underline;
|
|
784
784
|
}
|
|
785
|
-
`,
|
|
785
|
+
`,Zn=c.span`
|
|
786
786
|
display: inline-flex;
|
|
787
787
|
align-items: center;
|
|
788
788
|
gap: 8px;
|
|
@@ -810,7 +810,7 @@ import{r as v,j as t,L as St,u as xe,N as fe}from"./react-BmPeg6sG.js";import{c
|
|
|
810
810
|
background-color: ${n.colors.media};
|
|
811
811
|
background-size: cover;
|
|
812
812
|
background-position: center top;
|
|
813
|
-
`,
|
|
813
|
+
`,Xn=c.nav`
|
|
814
814
|
display: flex;
|
|
815
815
|
flex-wrap: wrap;
|
|
816
816
|
align-items: center;
|
|
@@ -1058,5 +1058,5 @@ import{r as v,j as t,L as St,u as xe,N as fe}from"./react-BmPeg6sG.js";import{c
|
|
|
1058
1058
|
[data-kind] .ico {
|
|
1059
1059
|
vertical-align: baseline;
|
|
1060
1060
|
}
|
|
1061
|
-
`,xo=["7d","30d","all"],jt=8,de="shop.my-store.sort",fo=["sold","selling","newest","name"];function go(){try{const e=localStorage.getItem(de);return fo.includes(e)?e:"sold"}catch{return"sold"}}function yo(e){try{localStorage.setItem(de,e)}catch{}}function bo(e,a){const i=[...e];return a==="name"?i.sort((r,s)=>r.name.localeCompare(s.name)):a==="newest"?i.sort((r,s)=>(s.createdAt??0)-(r.createdAt??0)):a==="selling"?i.sort((r,s)=>Number(r.exhausted)-Number(s.exhausted)||s.sold-r.sold||r.name.localeCompare(s.name)):i.sort((r,s)=>s.sold-r.sold||r.name.localeCompare(s.name))}function jo(e,a,i){return rt(`/item/${e}/${a}`,i)}function rt(e,a){return a?`${e}${e.includes("?")?"&":"?"}env=${a}`:e}function So(e,a){if(a==null)return null;const i=e.minted-a;return i>0?i:null}const ht=12;function wo(e,a){if(a<=7)return Array.from({length:a},(s,x)=>x);const i=[e-1,e,e+1].filter(s=>s>0&&s<a-1),r=[0];return i[0]>1&&r.push("gap"),r.push(...i),i[i.length-1]<a-2&&r.push("gap"),r.push(a-1),r}function $o(e,a,i){var y,A;const r={"7d":7,"30d":30,all:null}[a],s=v.useMemo(()=>Math.floor(Date.now()/864e5)*864e5+864e5-1,[]),x=r?s-r*864e5:void 0,d=O({queryKey:["store-sales-page",e,a,i],enabled:!!e,placeholderData:I=>I,queryFn:()=>Qe({seller:e,from:x},{first:ht,skip:i*ht})}),u=((y=d.data)==null?void 0:y.total)??0;return{rows:((A=d.data)==null?void 0:A.rows)??[],total:u,pages:Math.ceil(u/ht)}}function Ut(e){return O({queryKey:["store-buyers",e],enabled:e.length>0,staleTime:5*6e4,queryFn:()=>Ne(e)})}function Kt(e,a){var r;const i=(r=a==null?void 0:a.get(e.toLowerCase()))==null?void 0:r.name;return i?Yt(i):Fe(e)}function vo(e){return null}const ko=25000n;function Co(e){return e*ko/1000000n}function K(e){const a=Number(e/10n**14n)/1e4;return a>=10?Math.round(a).toLocaleString():a.toFixed(2)}function Gt(e){const a=Math.max(1,Math.round((Date.now()-e)/6e4));if(a<60)return o("myStore.agoMinutes",{n:a});const i=Math.round(a/60);return i<24?o("myStore.agoHours",{n:i}):o("myStore.agoDays",{n:Math.round(i/24)})}function Ao({series:e}){const a=v.useId(),i=Math.max(...e,0),r=e.length>1?92/(e.length-1):0,s=y=>i===0?27:27-y/i*22,d=e.map((y,A)=>`${(2+A*r).toFixed(1)} ${s(y).toFixed(1)}`).join(" L "),u=e.length?e[e.length-1]:0;return i===0?t.jsx(Ot,{viewBox:"0 0 96 30",role:"img","aria-label":o("myStore.trendNone"),children:t.jsx("path",{d:"M2 27 L94 27",fill:"none",stroke:"#e6e4ea",strokeWidth:"1.6",strokeLinecap:"round"})}):t.jsxs(Ot,{viewBox:"0 0 96 30",role:"img","aria-label":o("myStore.trendAria",{n:i}),children:[t.jsx("defs",{children:t.jsxs("linearGradient",{id:a,x1:"0",y1:"0",x2:"0",y2:"1",children:[t.jsx("stop",{offset:"0",stopColor:"#ff2d55",stopOpacity:"0.32"}),t.jsx("stop",{offset:"1",stopColor:"#ff2d55",stopOpacity:"0"})]})}),t.jsx("path",{d:`M ${d} L 94 29 L 2 29 Z`,fill:`url(#${a})`}),t.jsx("path",{d:`M ${d}`,fill:"none",stroke:"#ff2d55",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("circle",{cx:"94",cy:s(u),r:"2.6",fill:"#ff2d55"})]})}function Io({collection:e,discountPct:a,open:i,onToggle:r,env:s}){const x=`store-items-${e.contractAddress}`;return t.jsxs(t.Fragment,{children:[t.jsxs(te,{"data-testid":"store-collection","data-exhausted":e.exhausted||void 0,children:[t.jsx(kn,{type:"button","aria-expanded":i,"aria-controls":x,"aria-label":o(i?"myStore.collapse":"myStore.expand",{name:e.name}),onClick:r,"data-testid":"store-collection-toggle",children:t.jsx(io,{name:"chevron-down",className:"ico","aria-hidden":!0})}),t.jsx(Cn,{children:t.jsx(Ie,{contractAddress:e.contractAddress})}),t.jsxs(Mn,{children:[t.jsxs(In,{children:[t.jsx(St,{to:rt(`/collection/${e.contractAddress}`,s),"data-testid":"store-collection-name",children:e.name}),a!=null?t.jsx(Me,{pct:a}):null,e.exhausted?t.jsx(An,{"data-testid":"store-collection-soldout",children:o("myStore.collExhausted")}):null]}),t.jsxs("span",{children:[o("myStore.itemsCount",{count:e.items.length}),e.listed>0?` · ${o("myStore.listedCount",{count:e.listed})}`:"",!e.exhausted&&e.soldOut>0?` · ${o("myStore.soldOutCount",{count:e.soldOut})}`:""]})]}),t.jsxs(Wn,{children:[e.sold,t.jsx("small",{children:o("myStore.sold")})]}),t.jsx(Ln,{children:t.jsx(Ao,{series:e.trend})}),t.jsx(Qt,{as:"a",href:`${tt.builderUrl}/collections/${e.collectionId}`,target:"_blank",rel:"noopener noreferrer",variant:"purple",size:"sm","data-testid":"store-manage",children:o("myStore.manage")})]}),i?t.jsxs(zn,{id:x,"data-testid":"store-items",children:[t.jsxs(Pn,{"data-testid":"store-collection-stats",children:[t.jsxs("span",{children:[t.jsxs("b",{children:[t.jsx(R,{kind:"mana"}),K(e.earningsWei)]}),o("myStore.collEarned")]}),t.jsxs("span",{children:[t.jsx("b",{children:e.sold.toLocaleString()}),o("myStore.collSold")]}),t.jsxs("span",{children:[t.jsx("b",{children:e.items.length}),o("myStore.collItems",{count:e.items.length})]}),t.jsxs("span",{children:[t.jsx("b",{children:e.listed+e.classic}),o("myStore.collListed")]})]}),e.items.map(d=>{const u=So(d,d.lifetimeSold);return t.jsxs(Fn,{"data-testid":"store-item",children:[t.jsx(Nn,{style:{backgroundImage:Xt(d.rarity)},children:d.thumbnail?t.jsx("img",{src:d.thumbnail,alt:"",loading:"lazy"}):null}),t.jsxs(Tn,{children:[t.jsx(Dn,{to:rt(`/item/${e.contractAddress}/${d.itemId}`,s),title:d.name,children:d.name}),t.jsxs(En,{children:[t.jsx(On,{style:{background:ze(d.rarity)},title:Le(d.rarity),children:We(d.rarity)}),t.jsx(qn,{"data-state":d.state,children:d.state==="soldout"?null:d.state==="unlisted"?o("myStore.stateUnlisted"):d.state==="unknown"?o("myStore.stateUnknown"):t.jsxs(t.Fragment,{children:[t.jsx(Hn,{children:o("myStore.onSaleFor")}),d.manaWei?t.jsxs(t.Fragment,{children:[t.jsx(R,{kind:"mana"}),K(N(d.manaWei))]}):t.jsxs(t.Fragment,{children:[t.jsx(R,{kind:"credits"}),t.jsx(Pe,{credits:d.priceCredits??0})]})]})})]})]}),t.jsxs(Rn,{children:[d.sold.toLocaleString(),t.jsxs("small",{children:[" ",o("myStore.sold")]})]}),t.jsx(Bn,{role:"progressbar","aria-valuemin":0,"aria-valuemax":d.minted+d.left,"aria-valuenow":d.minted,"aria-label":o("myStore.runAria",{minted:d.minted,total:d.minted+d.left}),children:t.jsx("i",{style:{width:`${Math.round(d.minted/Math.max(1,d.minted+d.left)*100)}%`}})}),t.jsxs(_n,{title:d.lifetimeSold==null?void 0:o("myStore.runBreakdown",{total:d.minted+d.left,sold:d.lifetimeSold,sent:d.minted-d.lifetimeSold,left:d.left}),children:[t.jsx(Kn,{"data-out":d.left===0,"data-testid":"store-item-stock",children:Vt(d.left===0?"myStore.stockNone":"myStore.stockLeft",{b:y=>t.jsx("b",{children:y}),left:d.left.toLocaleString(),total:(d.minted+d.left).toLocaleString()})}),u?t.jsx(Un,{"data-testid":"store-item-issued",children:o("myStore.sentDirectly",{count:u.toLocaleString()})}):null]})]},d.key)})]}):null]})}function yt({delta:e,period:a}){if(!e||e.current===0&&e.previous===0)return null;const i=a==="all"?"":o(`myStore.vs${a}`);if(e.pct===null)return t.jsx(gt,{"data-dir":"new","data-testid":"store-delta",title:i,children:o("myStore.deltaNew")});const r=Math.round(e.pct);if(r===0)return t.jsx(gt,{"data-dir":"flat","data-testid":"store-delta",title:i,children:o("myStore.deltaFlat")});const s=r>0,d=r>=1e3?o("myStore.deltaTimes",{times:Math.round(r/100+1).toLocaleString()}):`${Math.abs(r)}%`;return t.jsxs(gt,{"data-dir":s?"up":"down","data-testid":"store-delta",title:i,"aria-label":o(s?"myStore.deltaUpAria":"myStore.deltaDownAria",{pct:d,against:i}),children:[t.jsx("span",{"aria-hidden":!0,children:s?"▲":"▼"}),d]})}function Mo(){return t.jsxs("div",{"data-testid":"store-skeleton","aria-hidden":!0,children:[t.jsx(Jt,{children:[0,1,2,3].map(e=>t.jsxs(U,{children:[t.jsx(S,{style:{width:"46%"}}),t.jsx(S,{style:{width:"32%",height:38}}),t.jsx(S,{style:{width:"64%",height:15}})]},e))}),t.jsx(le,{style:{marginTop:22},children:t.jsxs(B,{children:[t.jsx(q,{children:t.jsx(S,{style:{width:110,height:14}})}),[0,1,2].map(e=>t.jsxs(ee,{children:[t.jsx(ne,{}),t.jsxs(oe,{children:[t.jsx(S,{style:{width:"44%",height:13}}),t.jsx(S,{style:{width:"70%",marginTop:6}})]}),t.jsx(S,{style:{width:22,height:18}})]},e))]})}),t.jsxs(B,{style:{marginTop:14},children:[t.jsxs(q,{children:[t.jsx(S,{style:{width:96,height:14}}),t.jsx(S,{style:{width:120}})]}),Array.from({length:jt},(e,a)=>t.jsxs(te,{children:[t.jsx("span",{}),t.jsx(so,{}),t.jsx(S,{style:{width:"58%",height:14}}),t.jsx(S,{}),t.jsx(S,{style:{height:20}}),t.jsx(S,{style:{width:96,height:32,borderRadius:8}})]},a)),t.jsx(re,{as:"div",children:t.jsx(S,{style:{width:150,height:13,margin:"0 auto"}})})]}),t.jsxs(B,{style:{marginTop:22},children:[t.jsxs(q,{children:[t.jsx(S,{style:{width:104,height:14}}),t.jsx(S,{style:{width:90}})]}),t.jsx(ao,{children:[0,1,2,3,4].map(e=>t.jsx(S,{style:{width:46,height:9}},e))}),Array.from({length:ht},(e,a)=>t.jsxs(ro,{children:[t.jsx(S,{style:{width:"30%"}}),t.jsx(S,{style:{width:"18%"}}),t.jsx(S,{style:{width:72,height:18}}),t.jsx(S,{style:{width:"14%"}}),t.jsx(S,{style:{width:54}})]},a))]})]})}function Yo(){var It,Mt;Se({title:o("myStore.title"),noindex:!0});const{session:e,error:a,signIn:i}=we(),[r]=xe(),[s,x]=v.useState("30d"),[d,u]=v.useState(()=>new Set),[y,A]=v.useState(!1),[I,M]=v.useState(0),[T,w]=v.useState(!1),[$,z]=v.useState(go),_=$e(),W=ve(),L=vo(r.get("viewAs")),E=r.get("env"),{data:P}=ke(L??(e==null?void 0:e.address)),H=(Mt=(It=P==null?void 0:P.avatar)==null?void 0:It.snapshots)==null?void 0:Mt.face256,b=P!=null&&P.name?Yt(P.name):null,{stats:p,trend:h,wanted:m,liftFor:g,saleable:f,isLoading:j,error:F}=cn(e,s,L),D=$o(L??(e==null?void 0:e.address),s,I),ce=v.useMemo(()=>[...new Set(D.rows.map(l=>l.buyer.toLowerCase()))].sort(),[D.rows]),{data:it,isLoading:he}=Ut(ce),pe=v.useMemo(()=>h.buyers.map(l=>l.address).sort(),[h.buyers]),{data:lt}=Ut(pe),{data:$t}=De(L??(e==null?void 0:e.address),_&&(!!e||!!L)),vt=((p==null?void 0:p.collections)??[]).some(l=>l.exhausted),pt=$==="selling"&&!vt?"sold":$,me=v.useMemo(()=>bo((p==null?void 0:p.collections)??[],pt),[p,pt]);if(W==="off")return t.jsx(fe,{to:"/",replace:!0});if(!e&&!L)return t.jsxs(Ce,{children:[t.jsx(Ae,{testId:"my-store-signin",icon:_e,title:o("myStore.signInTitle"),body:o("myStore.signInBody"),cta:{label:o("storeSettings.signIn"),onClick:()=>i()},ctaVariant:"solid",fill:!0}),t.jsx(zt,{message:a})]});const kt=new Map;for(const l of $t??[])if(!(l.status!=="active"&&l.status!=="scheduled"))for(const k of l.collections)kt.set(k.toLowerCase(),l.discount/1e4);const G=($t??[]).filter(l=>l.status==="active"||l.status==="scheduled"),Ct=s==="7d"?7:s==="30d"?30:null,At=[{id:"classic",sev:"act",n:(p==null?void 0:p.classic)??0,title:o("myStore.attnClassic"),why:o("myStore.attnClassicWhy"),hint:o("myStore.attnClassicHint"),to:rt("/activity?section=listings",E),cta:o("myStore.attnClassicCta")},{id:"soldout",sev:"soon",n:(p==null?void 0:p.soldOut)??0,title:o("myStore.attnSoldOut"),why:o("myStore.attnSoldOutWhy"),hint:void 0,to:void 0,cta:void 0},{id:"wanted",sev:"act",n:m.length,title:o("myStore.attnWanted"),why:o("myStore.attnWantedWhy"),hint:o("myStore.attnWantedHint"),to:void 0,cta:void 0},{id:"quiet",sev:"soon",n:h.quietDays??(p&&p.sold===0&&Ct?Ct:0),title:o("myStore.attnQuiet"),why:h.quietDays===null?o("myStore.attnQuietWhyFloor"):o("myStore.attnQuietWhy"),hint:void 0,to:void 0,cta:void 0},{id:"unlisted",sev:void 0,n:(p==null?void 0:p.neverListed)??0,title:o("myStore.attnUnlisted"),why:o("myStore.attnUnlistedWhy"),hint:o("myStore.attnUnlistedHint"),to:rt("/my-items?section=creations",E),cta:o("myStore.attnUnlistedCta")}].filter(l=>l.n>0&&(l.id!=="quiet"||l.n>=7)),ue=Object.fromEntries(((p==null?void 0:p.collections)??[]).map(l=>[l.contractAddress,l.name])),mt=((p==null?void 0:p.collections)??[]).reduce((l,k)=>l+k.items.length,0);return t.jsx(Ue,{children:t.jsx(Ke,{children:t.jsxs(pn,{"data-testid":"my-store",children:[T&&e?t.jsx(Re,{session:e,collections:f,onClose:()=>w(!1)}):null,t.jsxs(mn,{children:[t.jsxs(un,{children:[t.jsx(xn,{style:H?{backgroundImage:`url(${H})`}:void 0,"data-testid":"store-avatar","aria-hidden":!0}),t.jsxs("div",{children:[t.jsxs(gn,{children:[o("myStore.eyebrow"),b?t.jsx(fn,{children:b}):null]}),t.jsx(yn,{children:o("myStore.title")}),p?t.jsx(Nt,{children:o("myStore.summary",{collections:p.collections.length,items:mt})}):t.jsx(Nt,{children:t.jsx(S,{style:{width:170,background:"rgba(252, 252, 252, 0.18)",animation:"none"}})})]})]}),t.jsx(bn,{role:"group","aria-label":o("myStore.period"),children:xo.map(l=>t.jsx(jn,{type:"button","aria-pressed":s===l,onClick:()=>{x(l),M(0)},"data-testid":`store-period-${l}`,children:o(`myStore.period${l}`)},l))})]}),L?t.jsx(oo,{"data-testid":"store-view-as",children:o("myStore.viewingAs",{address:L})}):null,t.jsx(zt,{message:F?o("myStore.error"):null,testId:"my-store-error"}),j||!p?t.jsx(Mo,{}):t.jsxs(t.Fragment,{children:[t.jsxs(Jt,{"aria-label":o("myStore.summaryAria"),children:[t.jsxs(U,{children:[t.jsxs(V,{children:[o("myStore.tileSold"),t.jsx(yt,{delta:h.sold,period:s}),t.jsx(X,{"aria-hidden":!0,children:"🛍️"})]}),t.jsx(Z,{children:t.jsx("span",{"data-testid":"store-sold",children:p.sold.toLocaleString()})}),t.jsx(J,{children:p.sold===0?o("myStore.tileSoldNone"):p.resales===0?o("myStore.tileSoldFootMintsOnly",{mints:p.mints}):o("myStore.tileSoldFoot",{mints:p.mints,resales:p.resales})})]}),t.jsxs(U,{children:[t.jsxs(V,{children:[o("myStore.tileEarnings"),t.jsx(yt,{delta:h.earnings,period:s}),t.jsx(X,{"aria-hidden":!0,children:"💰"})]}),t.jsxs(Z,{children:[t.jsx(R,{kind:"mana"}),K(p.earningsWei),t.jsx(Tt,{children:o("myStore.manaUnit")})]}),t.jsx(J,{children:p.partial?t.jsxs(t.Fragment,{children:[t.jsx(Et,{children:o("myStore.estimate")})," ",o("myStore.tileEarningsPartial")]}):o("myStore.tileEarningsFoot")})]}),t.jsxs(U,{children:[t.jsxs(V,{children:[o("myStore.tileListed"),t.jsx(X,{"aria-hidden":!0,children:"🏷️"})]}),t.jsxs(Z,{children:[p.listed+p.classic,t.jsx(Tt,{children:o("myStore.ofTotal",{n:mt})})]}),t.jsx(J,{children:mt===0?o("myStore.tileListedNone"):o("myStore.tileListedFoot",{count:p.neverListed})})]}),t.jsxs(U,{children:[t.jsxs(V,{children:[o("myStore.tileDiscounts"),t.jsx(X,{"aria-hidden":!0,children:"🔥"})]}),t.jsx(Z,{"data-testid":"store-discounts",children:G.length}),t.jsx(J,{children:G.length>0?o("myStore.tileDiscountsFoot"):o("myStore.tileDiscountsNone")})]})]}),t.jsxs(le,{children:[t.jsxs(B,{"aria-labelledby":"store-attn-h",children:[t.jsx(q,{children:t.jsx(nt,{id:"store-attn-h",children:o("myStore.attention")})}),At.length===0?t.jsx(ot,{"data-testid":"store-attn-none",children:o("myStore.attnNone")}):At.map(l=>t.jsxs(ee,{children:[t.jsx(ne,{"data-sev":l.sev,"aria-hidden":!0}),t.jsxs(oe,{children:[t.jsxs("b",{children:[l.title,l.hint?t.jsx(at,{content:l.hint,children:t.jsx(dt,{type:"button","aria-label":l.title,"data-testid":`store-attn-${l.id}-hint`,children:t.jsx(st,{name:"info",className:"ico","aria-hidden":!0})})}):null]}),t.jsx("span",{children:l.why}),l.to?t.jsx(Gn,{to:l.to,"data-testid":`store-attn-${l.id}-cta`,children:l.cta}):null]}),t.jsx(Yn,{"data-testid":`store-attn-${l.id}`,children:l.n})]},l.id))]}),_&&!L&&e&&(G.length>0||f.length>0)?t.jsxs(B,{"aria-labelledby":"store-disc-h",children:[t.jsx(q,{children:t.jsx(nt,{id:"store-disc-h",children:o("creatorSale.salesTitle")})}),G.length>0?t.jsx(wn,{children:t.jsx(Be,{sales:G,session:e,names:ue,lift:Object.fromEntries(G.map(l=>[l.id,g(l)]))})}):t.jsx(ot,{children:o("myStore.noDiscounts")}),f.length>0?t.jsx(uo,{children:t.jsxs(Qt,{variant:"purple",onClick:()=>w(!0),"data-testid":"store-new-discount",children:[t.jsx("span",{"aria-hidden":!0,children:"🔥"}),o("myStore.newDiscount")]})}):null]}):null]}),t.jsxs(B,{"aria-labelledby":"store-coll-h",children:[t.jsxs(q,{children:[t.jsx(nt,{id:"store-coll-h",children:o("myStore.collections")}),t.jsxs($n,{children:[t.jsx(ft,{children:p.breakdownPartial?o("myStore.soldPartial",{n:p.fetched.toLocaleString()}):o(`myStore.sold${s}`)}),p.collections.length>1?t.jsx(vn,{options:[{value:"sold",label:o("myStore.sortSold")},...vt?[{value:"selling",label:o("myStore.sortSelling")}]:[],...p.collections.some(l=>l.createdAt)?[{value:"newest",label:o("myStore.sortNewest")}]:[],{value:"name",label:o("myStore.sortName")}],value:pt,onChange:l=>{z(l),yo(l)},align:"right",ariaLabel:o("myStore.sortBy"),className:"store-sort"}):null]})]}),p.collections.length===0?t.jsx(ot,{children:o("myStore.noCollections")}):me.slice(0,y?void 0:jt).map(l=>t.jsx(Io,{collection:l,discountPct:kt.get(l.contractAddress)??null,env:E,open:d.has(l.contractAddress),onToggle:()=>u(k=>{const C=new Set(k);return C.delete(l.contractAddress)||C.add(l.contractAddress),C})},l.contractAddress)),p.collections.length>jt&&!y?t.jsx(re,{type:"button",onClick:()=>A(!0),"data-testid":"store-show-all",children:o("myStore.showAll",{count:p.collections.length})}):null,p.unattributed>0?t.jsx(_t,{"data-testid":"store-unattributed",children:o("myStore.unattributed",{count:p.unattributed})}):null,p.unknownCollections>0?t.jsx(_t,{"data-testid":"store-unknown-state",children:o("myStore.unknownState")}):null]}),t.jsxs(lo,{children:[t.jsx(co,{id:"store-audience-h",children:o("myStore.audience")}),t.jsx(ho,{children:o("myStore.audienceSub")})]}),t.jsxs(po,{children:[t.jsxs(U,{children:[t.jsxs(V,{children:[t.jsxs("span",{children:[o("myStore.tileCollectors"),t.jsx(at,{content:o("myStore.collectorsHint"),children:t.jsx(dt,{type:"button","aria-label":o("myStore.tileCollectors"),"data-testid":"store-collectors-hint",children:t.jsx(st,{name:"info",className:"ico","aria-hidden":!0})})})]}),t.jsx(X,{"aria-hidden":!0,children:"👥"})]}),t.jsx(Z,{"data-testid":"store-collectors",children:h.collectors.total.toLocaleString()}),t.jsx(J,{children:h.collectors.total===0?o("myStore.tileCollectorsNone"):t.jsxs(t.Fragment,{children:[p.breakdownPartial?t.jsxs(t.Fragment,{children:[t.jsx(Et,{children:o("myStore.estimate")})," "]}):null,h.collectors.topSharePct>=50?o("myStore.tileCollectorsConcentrated",{pct:Math.floor(h.collectors.topSharePct)}):o("myStore.tileCollectorsFoot",{repeat:h.collectors.repeat,pct:Math.round(h.collectors.repeatPct)})]})})]}),p.royalties?t.jsxs(U,{children:[t.jsxs(V,{children:[t.jsxs("span",{children:[o("myStore.tileRoyalties"),t.jsx(at,{content:o("myStore.royaltiesHint"),children:t.jsx(dt,{type:"button","aria-label":o("myStore.tileRoyalties"),"data-testid":"store-royalties-hint",children:t.jsx(st,{name:"info",className:"ico","aria-hidden":!0})})})]}),t.jsx(yt,{delta:h.royalties,period:s}),t.jsx(X,{"aria-hidden":!0,children:"🔁"})]}),t.jsxs(Z,{"data-testid":"store-royalties",children:[t.jsx(Sn,{children:"≈"}),t.jsx(R,{kind:"mana"}),K(Co(p.royalties.volumeWei))]}),t.jsx(J,{children:Vt("myStore.tileRoyaltiesFoot",{m:l=>t.jsxs(t.Fragment,{children:[t.jsx(R,{kind:"mana"}),l]}),count:p.royalties.resales,volume:K(p.royalties.volumeWei)})})]}):null]}),t.jsxs(B,{"aria-labelledby":"store-buyers-h",children:[t.jsxs(q,{children:[t.jsx(nt,{id:"store-buyers-h",children:o("myStore.buyers")}),t.jsx(ft,{children:o("myStore.buyersHint")})]}),h.buyers.length===0?t.jsx(ot,{"data-testid":"store-buyers-none",children:o("myStore.noBuyers")}):t.jsx(Dt,{children:t.jsxs(mo,{children:[t.jsx("thead",{children:t.jsxs("tr",{children:[t.jsx("th",{scope:"col",children:o("myStore.colBuyer")}),t.jsx("th",{scope:"col",children:o("myStore.colItems")}),t.jsx("th",{scope:"col",children:o("myStore.colCollections")}),t.jsx("th",{scope:"col",children:o("myStore.colLast")}),t.jsx("th",{scope:"col",style:{textAlign:"right"},children:o("myStore.colSpent")})]})}),t.jsx("tbody",{children:h.buyers.map(l=>{var C,Y,et;const k=(et=(Y=(C=lt==null?void 0:lt.get(l.address))==null?void 0:C.avatar)==null?void 0:Y.snapshots)==null?void 0:et.face256;return t.jsxs("tr",{"data-testid":"store-buyer",children:[t.jsx("td",{children:t.jsxs(Rt,{href:`${tt.profileUrl}/${l.address}`,target:"_blank",rel:"noopener noreferrer","data-testid":"store-buyer-name",children:[t.jsx(Bt,{style:k?{backgroundImage:`url(${k})`}:void 0,"aria-hidden":!0}),Kt(l.address,lt)]})}),t.jsx("td",{"data-dim":!0,children:o("myStore.buyerItems",{count:l.items})}),t.jsx("td",{"data-dim":!0,children:o("myStore.buyerCollections",{count:l.collections})}),t.jsx("td",{"data-dim":!0,children:Gt(l.lastAt)}),t.jsx("td",{"data-money":!0,children:t.jsxs(Ht,{children:[t.jsx(R,{kind:"mana"}),K(l.spentWei)]})})]},l.address)})})]})})]}),t.jsxs(B,{"aria-labelledby":"store-feed-h",children:[t.jsxs(q,{children:[t.jsx(nt,{id:"store-feed-h",children:o("myStore.sales")}),t.jsx(ft,{children:o("myStore.recentHint",{count:p.sold})})]}),D.rows.length===0?t.jsx(ot,{children:o("myStore.noSales")}):t.jsx(Dt,{children:t.jsxs(se,{children:[t.jsx("thead",{children:t.jsxs("tr",{children:[t.jsx("th",{scope:"col",children:o("myStore.colItem")}),t.jsx("th",{scope:"col",children:o("myStore.colBuyer")}),t.jsx("th",{scope:"col",children:t.jsxs(eo,{children:[o("myStore.colKind"),t.jsx(at,{content:o("myStore.kindHint"),children:t.jsx(dt,{type:"button","aria-label":o("myStore.colKind"),"data-testid":"store-kind-hint",children:t.jsx(st,{name:"info",className:"ico","aria-hidden":!0})})})]})}),t.jsx("th",{scope:"col",children:o("myStore.colWhen")}),t.jsx("th",{scope:"col",style:{textAlign:"right"},children:o("myStore.colPaid")})]})}),t.jsx("tbody",{children:D.rows.map(l=>{var Wt,Lt;const k=p.collections.find(ut=>ut.contractAddress===l.contractAddress.toLowerCase()),C=k==null?void 0:k.items.find(ut=>ut.itemId===l.itemId),Y=it==null?void 0:it.get(l.buyer.toLowerCase()),et=(Lt=(Wt=Y==null?void 0:Y.avatar)==null?void 0:Wt.snapshots)==null?void 0:Lt.face256;return t.jsxs("tr",{"data-testid":"store-sale",children:[t.jsx("td",{children:t.jsxs(Qn,{as:l.itemId?"a":"span",...l.itemId?{href:jo(l.contractAddress,l.itemId,E),target:"_blank",rel:"noopener noreferrer","data-testid":"store-sale-item"}:{},children:[t.jsx(Vn,{style:{backgroundImage:Xt(C==null?void 0:C.rarity)},children:C!=null&&C.thumbnail?t.jsx("img",{src:C.thumbnail,alt:"",loading:"lazy"}):null}),t.jsx("span",{children:(C==null?void 0:C.name)??(k==null?void 0:k.name)??l.itemId??o("myStore.unknownItem")})]})}),t.jsx("td",{children:he?t.jsxs(Xn,{"aria-hidden":!0,children:[t.jsx("i",{}),t.jsx("b",{})]}):t.jsxs(Rt,{href:`${tt.profileUrl}/${l.buyer}`,target:"_blank",rel:"noopener noreferrer","data-testid":"store-sale-buyer",children:[t.jsx(Bt,{style:et?{backgroundImage:`url(${et})`}:void 0,"aria-hidden":!0}),Kt(l.buyer,it)]})}),t.jsx("td",{children:t.jsx(no,{"data-kind":l.type,children:l.type==="mint"?o("myStore.kindMint"):o("myStore.kindResale")})}),t.jsx("td",{"data-dim":!0,children:Gt(l.timestamp)}),t.jsx("td",{"data-money":!0,children:t.jsxs(Ht,{children:[t.jsx(R,{kind:"mana"}),K(N(l.price))]})})]},l.id)})})]})}),D.pages>1?t.jsxs(Zn,{"aria-label":o("myStore.pagination"),children:[t.jsx(qt,{type:"button",onClick:()=>M(l=>Math.max(0,l-1)),disabled:I===0,"data-testid":"store-sales-prev",children:o("myStore.prev")}),wo(I,D.pages).map((l,k)=>l==="gap"?t.jsx(to,{children:"…"},`gap-${k}`):t.jsx(Jn,{type:"button","aria-current":l===I?"page":void 0,onClick:()=>M(l),"data-testid":`store-sales-page-${l+1}`,children:(l+1).toLocaleString()},l)),t.jsx(qt,{type:"button",onClick:()=>M(l=>Math.min(D.pages-1,l+1)),disabled:I>=D.pages-1,"data-testid":"store-sales-next",children:o("myStore.next")})]}):null]})]})]})})})}export{Yo as MyStore,Yo as default};
|
|
1062
|
-
//# sourceMappingURL=MyStore-
|
|
1061
|
+
`,xo=["7d","30d","all"],jt=8,de="shop.my-store.sort",fo=["sold","selling","newest","name"];function go(){try{const e=localStorage.getItem(de);return fo.includes(e)?e:"sold"}catch{return"sold"}}function yo(e){try{localStorage.setItem(de,e)}catch{}}function bo(e,a){const i=[...e];return a==="name"?i.sort((r,s)=>r.name.localeCompare(s.name)):a==="newest"?i.sort((r,s)=>(s.createdAt??0)-(r.createdAt??0)):a==="selling"?i.sort((r,s)=>Number(r.exhausted)-Number(s.exhausted)||s.sold-r.sold||r.name.localeCompare(s.name)):i.sort((r,s)=>s.sold-r.sold||r.name.localeCompare(s.name))}function jo(e,a,i){return rt(`/item/${e}/${a}`,i)}function rt(e,a){return a?`${e}${e.includes("?")?"&":"?"}env=${a}`:e}function So(e,a){if(a==null)return null;const i=e.minted-a;return i>0?i:null}const ht=12;function wo(e,a){if(a<=7)return Array.from({length:a},(s,x)=>x);const i=[e-1,e,e+1].filter(s=>s>0&&s<a-1),r=[0];return i[0]>1&&r.push("gap"),r.push(...i),i[i.length-1]<a-2&&r.push("gap"),r.push(a-1),r}function $o(e,a,i){var y,A;const r={"7d":7,"30d":30,all:null}[a],s=v.useMemo(()=>Math.floor(Date.now()/864e5)*864e5+864e5-1,[]),x=r?s-r*864e5:void 0,d=O({queryKey:["store-sales-page",e,a,i],enabled:!!e,placeholderData:I=>I,queryFn:()=>Qe({seller:e,from:x},{first:ht,skip:i*ht})}),u=((y=d.data)==null?void 0:y.total)??0;return{rows:((A=d.data)==null?void 0:A.rows)??[],total:u,pages:Math.ceil(u/ht)}}function Ut(e){return O({queryKey:["store-buyers",e],enabled:e.length>0,staleTime:5*6e4,queryFn:()=>Ne(e)})}function Kt(e,a){var r;const i=(r=a==null?void 0:a.get(e.toLowerCase()))==null?void 0:r.name;return i?Yt(i):Fe(e)}function vo(e){return null}const ko=25000n;function Co(e){return e*ko/1000000n}function K(e){const a=Number(e/10n**14n)/1e4;return a>=10?Math.round(a).toLocaleString():a.toFixed(2)}function Gt(e){const a=Math.max(1,Math.round((Date.now()-e)/6e4));if(a<60)return o("myStore.agoMinutes",{n:a});const i=Math.round(a/60);return i<24?o("myStore.agoHours",{n:i}):o("myStore.agoDays",{n:Math.round(i/24)})}function Ao({series:e}){const a=v.useId(),i=Math.max(...e,0),r=e.length>1?92/(e.length-1):0,s=y=>i===0?27:27-y/i*22,d=e.map((y,A)=>`${(2+A*r).toFixed(1)} ${s(y).toFixed(1)}`).join(" L "),u=e.length?e[e.length-1]:0;return i===0?t.jsx(Ot,{viewBox:"0 0 96 30",role:"img","aria-label":o("myStore.trendNone"),children:t.jsx("path",{d:"M2 27 L94 27",fill:"none",stroke:"#e6e4ea",strokeWidth:"1.6",strokeLinecap:"round"})}):t.jsxs(Ot,{viewBox:"0 0 96 30",role:"img","aria-label":o("myStore.trendAria",{n:i}),children:[t.jsx("defs",{children:t.jsxs("linearGradient",{id:a,x1:"0",y1:"0",x2:"0",y2:"1",children:[t.jsx("stop",{offset:"0",stopColor:"#ff2d55",stopOpacity:"0.32"}),t.jsx("stop",{offset:"1",stopColor:"#ff2d55",stopOpacity:"0"})]})}),t.jsx("path",{d:`M ${d} L 94 29 L 2 29 Z`,fill:`url(#${a})`}),t.jsx("path",{d:`M ${d}`,fill:"none",stroke:"#ff2d55",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("circle",{cx:"94",cy:s(u),r:"2.6",fill:"#ff2d55"})]})}function Io({collection:e,discountPct:a,open:i,onToggle:r,env:s}){const x=`store-items-${e.contractAddress}`;return t.jsxs(t.Fragment,{children:[t.jsxs(te,{"data-testid":"store-collection","data-exhausted":e.exhausted||void 0,children:[t.jsx(kn,{type:"button","aria-expanded":i,"aria-controls":x,"aria-label":o(i?"myStore.collapse":"myStore.expand",{name:e.name}),onClick:r,"data-testid":"store-collection-toggle",children:t.jsx(io,{name:"chevron-down",className:"ico","aria-hidden":!0})}),t.jsx(Cn,{children:t.jsx(Ie,{contractAddress:e.contractAddress})}),t.jsxs(Mn,{children:[t.jsxs(In,{children:[t.jsx(St,{to:rt(`/collection/${e.contractAddress}`,s),"data-testid":"store-collection-name",children:e.name}),a!=null?t.jsx(Me,{pct:a}):null,e.exhausted?t.jsx(An,{"data-testid":"store-collection-soldout",children:o("myStore.collExhausted")}):null]}),t.jsxs("span",{children:[o("myStore.itemsCount",{count:e.items.length}),e.listed>0?` · ${o("myStore.listedCount",{count:e.listed})}`:"",!e.exhausted&&e.soldOut>0?` · ${o("myStore.soldOutCount",{count:e.soldOut})}`:""]})]}),t.jsxs(Wn,{children:[e.sold,t.jsx("small",{children:o("myStore.sold")})]}),t.jsx(Ln,{children:t.jsx(Ao,{series:e.trend})}),t.jsx(Qt,{as:"a",href:`${tt.builderUrl}/collections/${e.collectionId}`,target:"_blank",rel:"noopener noreferrer",variant:"purple",size:"sm","data-testid":"store-manage",children:o("myStore.manage")})]}),i?t.jsxs(zn,{id:x,"data-testid":"store-items",children:[t.jsxs(Pn,{"data-testid":"store-collection-stats",children:[t.jsxs("span",{children:[t.jsxs("b",{children:[t.jsx(R,{kind:"mana"}),K(e.earningsWei)]}),o("myStore.collEarned")]}),t.jsxs("span",{children:[t.jsx("b",{children:e.sold.toLocaleString()}),o("myStore.collSold")]}),t.jsxs("span",{children:[t.jsx("b",{children:e.items.length}),o("myStore.collItems",{count:e.items.length})]}),t.jsxs("span",{children:[t.jsx("b",{children:e.listed+e.classic}),o("myStore.collListed")]})]}),e.items.map(d=>{const u=So(d,d.lifetimeSold);return t.jsxs(Fn,{"data-testid":"store-item",children:[t.jsx(Nn,{style:{backgroundImage:Zt(d.rarity)},children:d.thumbnail?t.jsx("img",{src:d.thumbnail,alt:"",loading:"lazy"}):null}),t.jsxs(Tn,{children:[t.jsx(Dn,{to:rt(`/item/${e.contractAddress}/${d.itemId}`,s),title:d.name,children:d.name}),t.jsxs(En,{children:[t.jsx(On,{style:{background:ze(d.rarity)},title:Le(d.rarity),children:We(d.rarity)}),t.jsx(qn,{"data-state":d.state,children:d.state==="soldout"?null:d.state==="unlisted"?o("myStore.stateUnlisted"):d.state==="unknown"?o("myStore.stateUnknown"):t.jsxs(t.Fragment,{children:[t.jsx(Hn,{children:o("myStore.onSaleFor")}),d.manaWei?t.jsxs(t.Fragment,{children:[t.jsx(R,{kind:"mana"}),K(N(d.manaWei))]}):t.jsxs(t.Fragment,{children:[t.jsx(R,{kind:"credits"}),t.jsx(Pe,{credits:d.priceCredits??0})]})]})})]})]}),t.jsxs(Rn,{children:[d.sold.toLocaleString(),t.jsxs("small",{children:[" ",o("myStore.sold")]})]}),t.jsx(Bn,{role:"progressbar","aria-valuemin":0,"aria-valuemax":d.minted+d.left,"aria-valuenow":d.minted,"aria-label":o("myStore.runAria",{minted:d.minted,total:d.minted+d.left}),children:t.jsx("i",{style:{width:`${Math.round(d.minted/Math.max(1,d.minted+d.left)*100)}%`}})}),t.jsxs(_n,{title:d.lifetimeSold==null?void 0:o("myStore.runBreakdown",{total:d.minted+d.left,sold:d.lifetimeSold,sent:d.minted-d.lifetimeSold,left:d.left}),children:[t.jsx(Kn,{"data-out":d.left===0,"data-testid":"store-item-stock",children:Vt(d.left===0?"myStore.stockNone":"myStore.stockLeft",{b:y=>t.jsx("b",{children:y}),left:d.left.toLocaleString(),total:(d.minted+d.left).toLocaleString()})}),u?t.jsx(Un,{"data-testid":"store-item-issued",children:o("myStore.sentDirectly",{count:u.toLocaleString()})}):null]})]},d.key)})]}):null]})}function yt({delta:e,period:a}){if(!e||e.current===0&&e.previous===0)return null;const i=a==="all"?"":o(`myStore.vs${a}`);if(e.pct===null)return t.jsx(gt,{"data-dir":"new","data-testid":"store-delta",title:i,children:o("myStore.deltaNew")});const r=Math.round(e.pct);if(r===0)return t.jsx(gt,{"data-dir":"flat","data-testid":"store-delta",title:i,children:o("myStore.deltaFlat")});const s=r>0,d=r>=1e3?o("myStore.deltaTimes",{times:Math.round(r/100+1).toLocaleString()}):`${Math.abs(r)}%`;return t.jsxs(gt,{"data-dir":s?"up":"down","data-testid":"store-delta",title:i,"aria-label":o(s?"myStore.deltaUpAria":"myStore.deltaDownAria",{pct:d,against:i}),children:[t.jsx("span",{"aria-hidden":!0,children:s?"▲":"▼"}),d]})}function Mo(){return t.jsxs("div",{"data-testid":"store-skeleton","aria-hidden":!0,children:[t.jsx(Jt,{children:[0,1,2,3].map(e=>t.jsxs(U,{children:[t.jsx(S,{style:{width:"46%"}}),t.jsx(S,{style:{width:"32%",height:38}}),t.jsx(S,{style:{width:"64%",height:15}})]},e))}),t.jsx(le,{style:{marginTop:22},children:t.jsxs(B,{children:[t.jsx(q,{children:t.jsx(S,{style:{width:110,height:14}})}),[0,1,2].map(e=>t.jsxs(ee,{children:[t.jsx(ne,{}),t.jsxs(oe,{children:[t.jsx(S,{style:{width:"44%",height:13}}),t.jsx(S,{style:{width:"70%",marginTop:6}})]}),t.jsx(S,{style:{width:22,height:18}})]},e))]})}),t.jsxs(B,{style:{marginTop:14},children:[t.jsxs(q,{children:[t.jsx(S,{style:{width:96,height:14}}),t.jsx(S,{style:{width:120}})]}),Array.from({length:jt},(e,a)=>t.jsxs(te,{children:[t.jsx("span",{}),t.jsx(so,{}),t.jsx(S,{style:{width:"58%",height:14}}),t.jsx(S,{}),t.jsx(S,{style:{height:20}}),t.jsx(S,{style:{width:96,height:32,borderRadius:8}})]},a)),t.jsx(re,{as:"div",children:t.jsx(S,{style:{width:150,height:13,margin:"0 auto"}})})]}),t.jsxs(B,{style:{marginTop:22},children:[t.jsxs(q,{children:[t.jsx(S,{style:{width:104,height:14}}),t.jsx(S,{style:{width:90}})]}),t.jsx(ao,{children:[0,1,2,3,4].map(e=>t.jsx(S,{style:{width:46,height:9}},e))}),Array.from({length:ht},(e,a)=>t.jsxs(ro,{children:[t.jsx(S,{style:{width:"30%"}}),t.jsx(S,{style:{width:"18%"}}),t.jsx(S,{style:{width:72,height:18}}),t.jsx(S,{style:{width:"14%"}}),t.jsx(S,{style:{width:54}})]},a))]})]})}function Yo(){var It,Mt;Se({title:o("myStore.title"),noindex:!0});const{session:e,error:a,signIn:i}=we(),[r]=xe(),[s,x]=v.useState("30d"),[d,u]=v.useState(()=>new Set),[y,A]=v.useState(!1),[I,M]=v.useState(0),[T,w]=v.useState(!1),[$,z]=v.useState(go),_=$e(),W=ve(),L=vo(r.get("viewAs")),E=r.get("env"),{data:P}=ke(L??(e==null?void 0:e.address)),H=(Mt=(It=P==null?void 0:P.avatar)==null?void 0:It.snapshots)==null?void 0:Mt.face256,b=P!=null&&P.name?Yt(P.name):null,{stats:p,trend:h,wanted:m,liftFor:g,saleable:f,isLoading:j,error:F}=cn(e,s,L),D=$o(L??(e==null?void 0:e.address),s,I),ce=v.useMemo(()=>[...new Set(D.rows.map(l=>l.buyer.toLowerCase()))].sort(),[D.rows]),{data:it,isLoading:he}=Ut(ce),pe=v.useMemo(()=>h.buyers.map(l=>l.address).sort(),[h.buyers]),{data:lt}=Ut(pe),{data:$t}=De(L??(e==null?void 0:e.address),_&&(!!e||!!L)),vt=((p==null?void 0:p.collections)??[]).some(l=>l.exhausted),pt=$==="selling"&&!vt?"sold":$,me=v.useMemo(()=>bo((p==null?void 0:p.collections)??[],pt),[p,pt]);if(W==="off")return t.jsx(fe,{to:"/",replace:!0});if(!e&&!L)return t.jsxs(Ce,{children:[t.jsx(Ae,{testId:"my-store-signin",icon:_e,title:o("myStore.signInTitle"),body:o("myStore.signInBody"),cta:{label:o("storeSettings.signIn"),onClick:()=>i()},ctaVariant:"solid",fill:!0}),t.jsx(zt,{message:a})]});const kt=new Map;for(const l of $t??[])if(!(l.status!=="active"&&l.status!=="scheduled"))for(const k of l.collections)kt.set(k.toLowerCase(),l.discount/1e4);const G=($t??[]).filter(l=>l.status==="active"||l.status==="scheduled"),Ct=s==="7d"?7:s==="30d"?30:null,At=[{id:"classic",sev:"act",n:(p==null?void 0:p.classic)??0,title:o("myStore.attnClassic"),why:o("myStore.attnClassicWhy"),hint:o("myStore.attnClassicHint"),to:rt("/activity?section=listings",E),cta:o("myStore.attnClassicCta")},{id:"soldout",sev:"soon",n:(p==null?void 0:p.soldOut)??0,title:o("myStore.attnSoldOut"),why:o("myStore.attnSoldOutWhy"),hint:void 0,to:void 0,cta:void 0},{id:"wanted",sev:"act",n:m.length,title:o("myStore.attnWanted"),why:o("myStore.attnWantedWhy"),hint:o("myStore.attnWantedHint"),to:void 0,cta:void 0},{id:"quiet",sev:"soon",n:h.quietDays??(p&&p.sold===0&&Ct?Ct:0),title:o("myStore.attnQuiet"),why:h.quietDays===null?o("myStore.attnQuietWhyFloor"):o("myStore.attnQuietWhy"),hint:void 0,to:void 0,cta:void 0},{id:"unlisted",sev:void 0,n:(p==null?void 0:p.neverListed)??0,title:o("myStore.attnUnlisted"),why:o("myStore.attnUnlistedWhy"),hint:o("myStore.attnUnlistedHint"),to:rt("/my-items?section=creations",E),cta:o("myStore.attnUnlistedCta")}].filter(l=>l.n>0&&(l.id!=="quiet"||l.n>=7)),ue=Object.fromEntries(((p==null?void 0:p.collections)??[]).map(l=>[l.contractAddress,l.name])),mt=((p==null?void 0:p.collections)??[]).reduce((l,k)=>l+k.items.length,0);return t.jsx(Ue,{children:t.jsx(Ke,{children:t.jsxs(pn,{"data-testid":"my-store",children:[T&&e?t.jsx(Re,{session:e,collections:f,onClose:()=>w(!1)}):null,t.jsxs(mn,{children:[t.jsxs(un,{children:[t.jsx(xn,{style:H?{backgroundImage:`url(${H})`}:void 0,"data-testid":"store-avatar","aria-hidden":!0}),t.jsxs("div",{children:[t.jsxs(gn,{children:[o("myStore.eyebrow"),b?t.jsx(fn,{children:b}):null]}),t.jsx(yn,{children:o("myStore.title")}),p?t.jsx(Nt,{children:o("myStore.summary",{collections:p.collections.length,items:mt})}):t.jsx(Nt,{children:t.jsx(S,{style:{width:170,background:"rgba(252, 252, 252, 0.18)",animation:"none"}})})]})]}),t.jsx(bn,{role:"group","aria-label":o("myStore.period"),children:xo.map(l=>t.jsx(jn,{type:"button","aria-pressed":s===l,onClick:()=>{x(l),M(0)},"data-testid":`store-period-${l}`,children:o(`myStore.period${l}`)},l))})]}),L?t.jsx(oo,{"data-testid":"store-view-as",children:o("myStore.viewingAs",{address:L})}):null,t.jsx(zt,{message:F?o("myStore.error"):null,testId:"my-store-error"}),j||!p?t.jsx(Mo,{}):t.jsxs(t.Fragment,{children:[t.jsxs(Jt,{"aria-label":o("myStore.summaryAria"),children:[t.jsxs(U,{children:[t.jsxs(V,{children:[o("myStore.tileSold"),t.jsx(yt,{delta:h.sold,period:s}),t.jsx(Z,{"aria-hidden":!0,children:"🛍️"})]}),t.jsx(X,{children:t.jsx("span",{"data-testid":"store-sold",children:p.sold.toLocaleString()})}),t.jsx(J,{children:p.sold===0?o("myStore.tileSoldNone"):p.resales===0?o("myStore.tileSoldFootMintsOnly",{mints:p.mints}):o("myStore.tileSoldFoot",{mints:p.mints,resales:p.resales})})]}),t.jsxs(U,{children:[t.jsxs(V,{children:[o("myStore.tileEarnings"),t.jsx(yt,{delta:h.earnings,period:s}),t.jsx(Z,{"aria-hidden":!0,children:"💰"})]}),t.jsxs(X,{children:[t.jsx(R,{kind:"mana"}),K(p.earningsWei),t.jsx(Tt,{children:o("myStore.manaUnit")})]}),t.jsx(J,{children:p.partial?t.jsxs(t.Fragment,{children:[t.jsx(Et,{children:o("myStore.estimate")})," ",o("myStore.tileEarningsPartial")]}):o("myStore.tileEarningsFoot")})]}),t.jsxs(U,{children:[t.jsxs(V,{children:[o("myStore.tileListed"),t.jsx(Z,{"aria-hidden":!0,children:"🏷️"})]}),t.jsxs(X,{children:[p.listed+p.classic,t.jsx(Tt,{children:o("myStore.ofTotal",{n:mt})})]}),t.jsx(J,{children:mt===0?o("myStore.tileListedNone"):o("myStore.tileListedFoot",{count:p.neverListed})})]}),t.jsxs(U,{children:[t.jsxs(V,{children:[o("myStore.tileDiscounts"),t.jsx(Z,{"aria-hidden":!0,children:"🔥"})]}),t.jsx(X,{"data-testid":"store-discounts",children:G.length}),t.jsx(J,{children:G.length>0?o("myStore.tileDiscountsFoot"):o("myStore.tileDiscountsNone")})]})]}),t.jsxs(le,{children:[t.jsxs(B,{"aria-labelledby":"store-attn-h",children:[t.jsx(q,{children:t.jsx(nt,{id:"store-attn-h",children:o("myStore.attention")})}),At.length===0?t.jsx(ot,{"data-testid":"store-attn-none",children:o("myStore.attnNone")}):At.map(l=>t.jsxs(ee,{children:[t.jsx(ne,{"data-sev":l.sev,"aria-hidden":!0}),t.jsxs(oe,{children:[t.jsxs("b",{children:[l.title,l.hint?t.jsx(at,{content:l.hint,children:t.jsx(dt,{type:"button","aria-label":l.title,"data-testid":`store-attn-${l.id}-hint`,children:t.jsx(st,{name:"info",className:"ico","aria-hidden":!0})})}):null]}),t.jsx("span",{children:l.why}),l.to?t.jsx(Gn,{to:l.to,"data-testid":`store-attn-${l.id}-cta`,children:l.cta}):null]}),t.jsx(Yn,{"data-testid":`store-attn-${l.id}`,children:l.n})]},l.id))]}),_&&!L&&e&&(G.length>0||f.length>0)?t.jsxs(B,{"aria-labelledby":"store-disc-h",children:[t.jsx(q,{children:t.jsx(nt,{id:"store-disc-h",children:o("creatorSale.salesTitle")})}),G.length>0?t.jsx(wn,{children:t.jsx(Be,{sales:G,session:e,names:ue,lift:Object.fromEntries(G.map(l=>[l.id,g(l)]))})}):t.jsx(ot,{children:o("myStore.noDiscounts")}),f.length>0?t.jsx(uo,{children:t.jsxs(Qt,{variant:"purple",onClick:()=>w(!0),"data-testid":"store-new-discount",children:[t.jsx("span",{"aria-hidden":!0,children:"🔥"}),o("myStore.newDiscount")]})}):null]}):null]}),t.jsxs(B,{"aria-labelledby":"store-coll-h",children:[t.jsxs(q,{children:[t.jsx(nt,{id:"store-coll-h",children:o("myStore.collections")}),t.jsxs($n,{children:[t.jsx(ft,{children:p.breakdownPartial?o("myStore.soldPartial",{n:p.fetched.toLocaleString()}):o(`myStore.sold${s}`)}),p.collections.length>1?t.jsx(vn,{options:[{value:"sold",label:o("myStore.sortSold")},...vt?[{value:"selling",label:o("myStore.sortSelling")}]:[],...p.collections.some(l=>l.createdAt)?[{value:"newest",label:o("myStore.sortNewest")}]:[],{value:"name",label:o("myStore.sortName")}],value:pt,onChange:l=>{z(l),yo(l)},align:"right",ariaLabel:o("myStore.sortBy"),className:"store-sort"}):null]})]}),p.collections.length===0?t.jsx(ot,{children:o("myStore.noCollections")}):me.slice(0,y?void 0:jt).map(l=>t.jsx(Io,{collection:l,discountPct:kt.get(l.contractAddress)??null,env:E,open:d.has(l.contractAddress),onToggle:()=>u(k=>{const C=new Set(k);return C.delete(l.contractAddress)||C.add(l.contractAddress),C})},l.contractAddress)),p.collections.length>jt&&!y?t.jsx(re,{type:"button",onClick:()=>A(!0),"data-testid":"store-show-all",children:o("myStore.showAll",{count:p.collections.length})}):null,p.unattributed>0?t.jsx(_t,{"data-testid":"store-unattributed",children:o("myStore.unattributed",{count:p.unattributed})}):null,p.unknownCollections>0?t.jsx(_t,{"data-testid":"store-unknown-state",children:o("myStore.unknownState")}):null]}),t.jsxs(lo,{children:[t.jsx(co,{id:"store-audience-h",children:o("myStore.audience")}),t.jsx(ho,{children:o("myStore.audienceSub")})]}),t.jsxs(po,{children:[t.jsxs(U,{children:[t.jsxs(V,{children:[t.jsxs("span",{children:[o("myStore.tileCollectors"),t.jsx(at,{content:o("myStore.collectorsHint"),children:t.jsx(dt,{type:"button","aria-label":o("myStore.tileCollectors"),"data-testid":"store-collectors-hint",children:t.jsx(st,{name:"info",className:"ico","aria-hidden":!0})})})]}),t.jsx(Z,{"aria-hidden":!0,children:"👥"})]}),t.jsx(X,{"data-testid":"store-collectors",children:h.collectors.total.toLocaleString()}),t.jsx(J,{children:h.collectors.total===0?o("myStore.tileCollectorsNone"):t.jsxs(t.Fragment,{children:[p.breakdownPartial?t.jsxs(t.Fragment,{children:[t.jsx(Et,{children:o("myStore.estimate")})," "]}):null,h.collectors.topSharePct>=50?o("myStore.tileCollectorsConcentrated",{pct:Math.floor(h.collectors.topSharePct)}):o("myStore.tileCollectorsFoot",{repeat:h.collectors.repeat,pct:Math.round(h.collectors.repeatPct)})]})})]}),p.royalties?t.jsxs(U,{children:[t.jsxs(V,{children:[t.jsxs("span",{children:[o("myStore.tileRoyalties"),t.jsx(at,{content:o("myStore.royaltiesHint"),children:t.jsx(dt,{type:"button","aria-label":o("myStore.tileRoyalties"),"data-testid":"store-royalties-hint",children:t.jsx(st,{name:"info",className:"ico","aria-hidden":!0})})})]}),t.jsx(yt,{delta:h.royalties,period:s}),t.jsx(Z,{"aria-hidden":!0,children:"🔁"})]}),t.jsxs(X,{"data-testid":"store-royalties",children:[t.jsx(Sn,{children:"≈"}),t.jsx(R,{kind:"mana"}),K(Co(p.royalties.volumeWei))]}),t.jsx(J,{children:Vt("myStore.tileRoyaltiesFoot",{m:l=>t.jsxs(t.Fragment,{children:[t.jsx(R,{kind:"mana"}),l]}),count:p.royalties.resales,volume:K(p.royalties.volumeWei)})})]}):null]}),t.jsxs(B,{"aria-labelledby":"store-buyers-h",children:[t.jsxs(q,{children:[t.jsx(nt,{id:"store-buyers-h",children:o("myStore.buyers")}),t.jsx(ft,{children:o("myStore.buyersHint")})]}),h.buyers.length===0?t.jsx(ot,{"data-testid":"store-buyers-none",children:o("myStore.noBuyers")}):t.jsx(Dt,{children:t.jsxs(mo,{children:[t.jsx("thead",{children:t.jsxs("tr",{children:[t.jsx("th",{scope:"col",children:o("myStore.colBuyer")}),t.jsx("th",{scope:"col",children:o("myStore.colItems")}),t.jsx("th",{scope:"col",children:o("myStore.colCollections")}),t.jsx("th",{scope:"col",children:o("myStore.colLast")}),t.jsx("th",{scope:"col",style:{textAlign:"right"},children:o("myStore.colSpent")})]})}),t.jsx("tbody",{children:h.buyers.map(l=>{var C,Y,et;const k=(et=(Y=(C=lt==null?void 0:lt.get(l.address))==null?void 0:C.avatar)==null?void 0:Y.snapshots)==null?void 0:et.face256;return t.jsxs("tr",{"data-testid":"store-buyer",children:[t.jsx("td",{children:t.jsxs(Rt,{href:`${tt.profileUrl}/${l.address}`,target:"_blank",rel:"noopener noreferrer","data-testid":"store-buyer-name",children:[t.jsx(Bt,{style:k?{backgroundImage:`url(${k})`}:void 0,"aria-hidden":!0}),Kt(l.address,lt)]})}),t.jsx("td",{"data-dim":!0,children:o("myStore.buyerItems",{count:l.items})}),t.jsx("td",{"data-dim":!0,children:o("myStore.buyerCollections",{count:l.collections})}),t.jsx("td",{"data-dim":!0,children:Gt(l.lastAt)}),t.jsx("td",{"data-money":!0,children:t.jsxs(Ht,{children:[t.jsx(R,{kind:"mana"}),K(l.spentWei)]})})]},l.address)})})]})})]}),t.jsxs(B,{"aria-labelledby":"store-feed-h",children:[t.jsxs(q,{children:[t.jsx(nt,{id:"store-feed-h",children:o("myStore.sales")}),t.jsx(ft,{children:o("myStore.recentHint",{count:p.sold})})]}),D.rows.length===0?t.jsx(ot,{children:o("myStore.noSales")}):t.jsx(Dt,{children:t.jsxs(se,{children:[t.jsx("thead",{children:t.jsxs("tr",{children:[t.jsx("th",{scope:"col",children:o("myStore.colItem")}),t.jsx("th",{scope:"col",children:o("myStore.colBuyer")}),t.jsx("th",{scope:"col",children:t.jsxs(eo,{children:[o("myStore.colKind"),t.jsx(at,{content:o("myStore.kindHint"),children:t.jsx(dt,{type:"button","aria-label":o("myStore.colKind"),"data-testid":"store-kind-hint",children:t.jsx(st,{name:"info",className:"ico","aria-hidden":!0})})})]})}),t.jsx("th",{scope:"col",children:o("myStore.colWhen")}),t.jsx("th",{scope:"col",style:{textAlign:"right"},children:o("myStore.colPaid")})]})}),t.jsx("tbody",{children:D.rows.map(l=>{var Wt,Lt;const k=p.collections.find(ut=>ut.contractAddress===l.contractAddress.toLowerCase()),C=k==null?void 0:k.items.find(ut=>ut.itemId===l.itemId),Y=it==null?void 0:it.get(l.buyer.toLowerCase()),et=(Lt=(Wt=Y==null?void 0:Y.avatar)==null?void 0:Wt.snapshots)==null?void 0:Lt.face256;return t.jsxs("tr",{"data-testid":"store-sale",children:[t.jsx("td",{children:t.jsxs(Qn,{as:l.itemId?"a":"span",...l.itemId?{href:jo(l.contractAddress,l.itemId,E),target:"_blank",rel:"noopener noreferrer","data-testid":"store-sale-item"}:{},children:[t.jsx(Vn,{style:{backgroundImage:Zt(C==null?void 0:C.rarity)},children:C!=null&&C.thumbnail?t.jsx("img",{src:C.thumbnail,alt:"",loading:"lazy"}):null}),t.jsx("span",{children:(C==null?void 0:C.name)??(k==null?void 0:k.name)??l.itemId??o("myStore.unknownItem")})]})}),t.jsx("td",{children:he?t.jsxs(Zn,{"aria-hidden":!0,children:[t.jsx("i",{}),t.jsx("b",{})]}):t.jsxs(Rt,{href:`${tt.profileUrl}/${l.buyer}`,target:"_blank",rel:"noopener noreferrer","data-testid":"store-sale-buyer",children:[t.jsx(Bt,{style:et?{backgroundImage:`url(${et})`}:void 0,"aria-hidden":!0}),Kt(l.buyer,it)]})}),t.jsx("td",{children:t.jsx(no,{"data-kind":l.type,children:l.type==="mint"?o("myStore.kindMint"):o("myStore.kindResale")})}),t.jsx("td",{"data-dim":!0,children:Gt(l.timestamp)}),t.jsx("td",{"data-money":!0,children:t.jsxs(Ht,{children:[t.jsx(R,{kind:"mana"}),K(N(l.price))]})})]},l.id)})})]})}),D.pages>1?t.jsxs(Xn,{"aria-label":o("myStore.pagination"),children:[t.jsx(qt,{type:"button",onClick:()=>M(l=>Math.max(0,l-1)),disabled:I===0,"data-testid":"store-sales-prev",children:o("myStore.prev")}),wo(I,D.pages).map((l,k)=>l==="gap"?t.jsx(to,{children:"…"},`gap-${k}`):t.jsx(Jn,{type:"button","aria-current":l===I?"page":void 0,onClick:()=>M(l),"data-testid":`store-sales-page-${l+1}`,children:(l+1).toLocaleString()},l)),t.jsx(qt,{type:"button",onClick:()=>M(l=>Math.min(D.pages-1,l+1)),disabled:I>=D.pages-1,"data-testid":"store-sales-next",children:o("myStore.next")})]}):null]})]})]})})})}export{Yo as MyStore,Yo as default};
|
|
1062
|
+
//# sourceMappingURL=MyStore-C64oleTN.js.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import{p as ee}from"./sentry-
|
|
1
|
+
import{p as ee}from"./sentry-D9BarSwm.js";(function(){try{var r=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new r.Error().stack;e&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[e]="589f0da2-4586-4190-99e2-6d982240a886",r._sentryDebugIdIdentifier="sentry-dbid-589f0da2-4586-4190-99e2-6d982240a886")}catch{}})();const ae="2.54.1";let T={getDocsUrl:({docsBaseUrl:r,docsPath:e="",docsSlug:t})=>e?`${r??"https://viem.sh"}${e}${t?`#${t}`:""}`:void 0,version:`viem@${ae}`};class o extends Error{constructor(e,t={}){var p;const n=(()=>{var u;return t.cause instanceof o?t.cause.details:(u=t.cause)!=null&&u.message?t.cause.message:t.details})(),a=t.cause instanceof o&&t.cause.docsPath||t.docsPath,s=(p=T.getDocsUrl)==null?void 0:p.call(T,{...t,docsPath:a}),i=[e||"An error occurred.","",...t.metaMessages?[...t.metaMessages,""]:[],...s?[`Docs: ${s}`]:[],...n?[`Details: ${n}`]:[],...T.version?[`Version: ${T.version}`]:[]].join(`
|
|
2
2
|
`);super(i,t.cause?{cause:t.cause}:void 0),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"metaMessages",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"version",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BaseError"}),this.details=n,this.docsPath=a,this.metaMessages=t.metaMessages,this.name=t.name??this.name,this.shortMessage=e,this.version=ae}walk(e){return se(this,e)}}function se(r,e){return e!=null&&e(r)?r:r&&typeof r=="object"&&"cause"in r&&r.cause!==void 0?se(r.cause,e):e?null:r}class oe extends o{constructor({max:e,min:t,signed:n,size:a,value:s}){super(`Number "${s}" is not in safe ${a?`${a*8}-bit ${n?"signed":"unsigned"} `:""}integer range ${e?`(${t} to ${e})`:`(above ${t})`}`,{name:"IntegerOutOfRangeError"})}}class Ke extends o{constructor(e){super(`Bytes value "${e}" is not a valid boolean. The bytes array must contain a single byte of either a 0 or 1 value.`,{name:"InvalidBytesBooleanError"})}}class fe extends o{constructor(e){super(`Hex value "${e}" is not a valid boolean. The hex value must be "0x0" (false) or "0x1" (true).`,{name:"InvalidHexBooleanError"})}}class me extends o{constructor({givenSize:e,maxSize:t}){super(`Size cannot exceed ${t} bytes. Given size: ${e} bytes.`,{name:"SizeOverflowError"})}}function ie(r,{strict:e=!0}={}){return!r||typeof r!="string"?!1:e?/^0x[0-9a-fA-F]*$/.test(r):r.startsWith("0x")}function te(r){return ie(r,{strict:!1})?Math.ceil((r.length-2)/2):r.length}function w(r,{dir:e="left"}={}){let t=typeof r=="string"?r.replace("0x",""):r,n=0;for(let a=0;a<t.length-1&&t[e==="left"?a:t.length-a-1].toString()==="0";a++)n++;return t=e==="left"?t.slice(n):t.slice(0,t.length-n),typeof r=="string"?(t.length===1&&e==="right"&&(t=`${t}0`),`0x${t.length%2===1?`0${t}`:t}`):t}class Ve extends o{constructor({offset:e,position:t,size:n}){super(`Slice ${t==="start"?"starting":"ending"} at offset "${e}" is out-of-bounds (size: ${n}).`,{name:"SliceOffsetOutOfBoundsError"})}}class ue extends o{constructor({size:e,targetSize:t,type:n}){super(`${n.charAt(0).toUpperCase()}${n.slice(1).toLowerCase()} size (${e}) exceeds padding size (${t}).`,{name:"SizeExceedsPaddingSizeError"})}}class Ye extends o{constructor({size:e,targetSize:t,type:n}){super(`${n.charAt(0).toUpperCase()}${n.slice(1).toLowerCase()} is expected to be ${t} ${n} long, but is ${e} ${n} long.`,{name:"InvalidBytesLengthError"})}}function g(r,{dir:e,size:t=32}={}){return typeof r=="string"?ye(r,{dir:e,size:t}):he(r,{dir:e,size:t})}function ye(r,{dir:e,size:t=32}={}){if(t===null)return r;const n=r.replace("0x","");if(n.length>t*2)throw new ue({size:Math.ceil(n.length/2),targetSize:t,type:"hex"});return`0x${n[e==="right"?"padEnd":"padStart"](t*2,"0")}`}function he(r,{dir:e,size:t=32}={}){if(t===null)return r;if(r.length>t)throw new ue({size:r.length,targetSize:t,type:"bytes"});const n=new Uint8Array(t);for(let a=0;a<t;a++){const s=e==="right";n[s?a:t-a-1]=r[s?a:r.length-a-1]}return n}const ge=Array.from({length:256},(r,e)=>e.toString(16).padStart(2,"0"));function Xe(r,e={}){return typeof r=="number"||typeof r=="bigint"?le(r,e):typeof r=="string"?Te(r,e):typeof r=="boolean"?Ee(r,e):ce(r,e)}function Ee(r,e={}){const t=`0x${Number(r)}`;return typeof e.size=="number"?(h(t,{size:e.size}),g(t,{size:e.size})):t}function ce(r,e={}){let t="";for(let a=0;a<r.length;a++)t+=ge[r[a]];const n=`0x${t}`;return typeof e.size=="number"?(h(n,{size:e.size}),g(n,{dir:"right",size:e.size})):n}function le(r,e={}){const{signed:t,size:n}=e,a=BigInt(r);let s;n?t?s=(1n<<BigInt(n)*8n-1n)-1n:s=2n**(BigInt(n)*8n)-1n:typeof r=="number"&&(s=BigInt(Number.MAX_SAFE_INTEGER));const i=typeof s=="bigint"&&t?-s-1n:0;if(s&&a>s||a<i){const u=typeof r=="bigint"?"n":"";throw new oe({max:s?`${s}${u}`:void 0,min:`${i}${u}`,signed:t,size:n,value:`${r}${u}`})}const p=`0x${(t&&a<0?(1n<<BigInt(n*8))+BigInt(a):a).toString(16)}`;return n?g(p,{size:n}):p}const Ne=new TextEncoder;function Te(r,e={}){const t=Ne.encode(r);return ce(t,e)}const we=new TextEncoder;function Je(r,e={}){return typeof r=="number"||typeof r=="bigint"?Oe(r,e):typeof r=="boolean"?ve(r,e):ie(r)?O(r,e):Ae(r,e)}function ve(r,e={}){const t=new Uint8Array(1);return t[0]=Number(r),typeof e.size=="number"?(h(t,{size:e.size}),g(t,{size:e.size})):t}const m={zero:48,nine:57,A:65,F:70,a:97,f:102};function re(r){if(r>=m.zero&&r<=m.nine)return r-m.zero;if(r>=m.A&&r<=m.F)return r-(m.A-10);if(r>=m.a&&r<=m.f)return r-(m.a-10)}function O(r,e={}){let t=r;e.size&&(h(t,{size:e.size}),t=g(t,{dir:"right",size:e.size}));let n=t.slice(2);n.length%2&&(n=`0${n}`);const a=n.length/2,s=new Uint8Array(a);for(let i=0,p=0;i<a;i++){const u=re(n.charCodeAt(p++)),E=re(n.charCodeAt(p++));if(u===void 0||E===void 0)throw new o(`Invalid byte sequence ("${n[p-2]}${n[p-1]}" in "${n}").`);s[i]=u*16+E}return s}function Oe(r,e){const t=le(r,e);return O(t)}function Ae(r,e={}){const t=we.encode(r);return typeof e.size=="number"?(h(t,{size:e.size}),g(t,{dir:"right",size:e.size})):t}function h(r,{size:e}){if(te(r)>e)throw new me({givenSize:te(r),maxSize:e})}function Qe(r,e){const t={to:e},n=t.to;return n==="number"?Me(r,t):n==="bigint"?de(r,t):n==="string"?Ce(r,t):n==="boolean"?xe(r,t):O(r,t)}function de(r,e={}){const{signed:t}=e;e.size&&h(r,{size:e.size});const n=BigInt(r);if(!t)return n;const a=(r.length-2)/2,s=(1n<<BigInt(a)*8n-1n)-1n;return n<=s?n:n-BigInt(`0x${"f".padStart(a*2,"f")}`)-1n}function xe(r,e={}){let t=r;if(e.size&&(h(t,{size:e.size}),t=w(t)),w(t)==="0x00")return!1;if(w(t)==="0x01")return!0;throw new fe(t)}function Me(r,e={}){const t=de(r,e),n=Number(t);if(!Number.isSafeInteger(n))throw new oe({max:`${Number.MAX_SAFE_INTEGER}`,min:`${Number.MIN_SAFE_INTEGER}`,signed:e.signed,size:e.size,value:`${t}n`});return n}function Ce(r,e={}){let t=O(r);return e.size&&(h(t,{size:e.size}),t=w(t,{dir:"right"})),new TextDecoder().decode(t)}const Ze={gwei:9,wei:18},Re={ether:-9,wei:9};function Se(r,e){let t=r.toString();const n=t.startsWith("-");n&&(t=t.slice(1)),t=t.padStart(e,"0");let[a,s]=[t.slice(0,t.length-e),t.slice(t.length-e)];return s=s.replace(/(0+)$/,""),`${n?"-":""}${a||"0"}${s?`.${s}`:""}`}function v(r,e="wei"){return Se(r,Re[e])}class pe extends o{constructor({cause:e,message:t}={}){var a;const n=(a=t==null?void 0:t.replace("execution reverted: ",""))==null?void 0:a.replace("execution reverted","");super(`Execution reverted ${n?`with reason: ${n}`:"for an unknown reason"}.`,{cause:e,name:"ExecutionRevertedError"})}}Object.defineProperty(pe,"code",{enumerable:!0,configurable:!0,writable:!0,value:3});Object.defineProperty(pe,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/execution reverted|gas required exceeds allowance/});class Pe extends o{constructor({cause:e,maxFeePerGas:t}={}){super(`The fee cap (\`maxFeePerGas\`${t?` = ${v(t)} gwei`:""}) cannot be higher than the maximum allowed value (2^256-1).`,{cause:e,name:"FeeCapTooHighError"})}}Object.defineProperty(Pe,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max fee per gas higher than 2\^256-1|fee cap higher than 2\^256-1/});class _e extends o{constructor({cause:e,maxFeePerGas:t}={}){super(`The fee cap (\`maxFeePerGas\`${t?` = ${v(t)}`:""} gwei) cannot be lower than the block base fee.`,{cause:e,name:"FeeCapTooLowError"})}}Object.defineProperty(_e,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max fee per gas less than block base fee|fee cap less than block base fee|transaction is outdated/});class Ie extends o{constructor({cause:e,nonce:t}={}){super(`Nonce provided for the transaction ${t?`(${t}) `:""}is higher than the next one expected.`,{cause:e,name:"NonceTooHighError"})}}Object.defineProperty(Ie,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too high/});class $e extends o{constructor({cause:e,nonce:t}={}){super([`Nonce provided for the transaction ${t?`(${t}) `:""}is lower than the current nonce of the account.`,"Try increasing the nonce or find the latest nonce with `getTransactionCount`."].join(`
|
|
3
3
|
`),{cause:e,name:"NonceTooLowError"})}}Object.defineProperty($e,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too low|transaction already imported|already known/});class De extends o{constructor({cause:e,nonce:t}={}){super(`Nonce provided for the transaction ${t?`(${t}) `:""}exceeds the maximum allowed nonce.`,{cause:e,name:"NonceMaxValueError"})}}Object.defineProperty(De,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce has max value/});class Ue extends o{constructor({cause:e}={}){super(["The total cost (gas * gas fee + value) of executing this transaction exceeds the balance of the account."].join(`
|
|
4
4
|
`),{cause:e,metaMessages:["This error could arise when the account does not have enough funds to:"," - pay for the total gas fee,"," - pay for the value to send."," ","The cost of the transaction is calculated as `gas * gas fee + value`, where:"," - `gas` is the amount of gas needed for transaction to execute,"," - `gas fee` is the gas fee,"," - `value` is the amount of ether to send to the recipient."],name:"InsufficientFundsError"})}}Object.defineProperty(Ue,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/insufficient funds|exceeds transaction sender account balance/});class je extends o{constructor({cause:e,gas:t}={}){super(`The amount of gas ${t?`(${t}) `:""}provided for the transaction exceeds the limit allowed for the block.`,{cause:e,name:"IntrinsicGasTooHighError"})}}Object.defineProperty(je,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too high|gas limit reached/});class Le extends o{constructor({cause:e,gas:t}={}){super(`The amount of gas ${t?`(${t}) `:""}provided for the transaction is too low.`,{cause:e,name:"IntrinsicGasTooLowError"})}}Object.defineProperty(Le,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too low/});class ze extends o{constructor({cause:e}){super("The transaction type is not supported for this chain.",{cause:e,name:"TransactionTypeNotSupportedError"})}}Object.defineProperty(ze,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/transaction type not valid/});class Be extends o{constructor({cause:e,maxPriorityFeePerGas:t,maxFeePerGas:n}={}){super([`The provided tip (\`maxPriorityFeePerGas\`${t?` = ${v(t)} gwei`:""}) cannot be higher than the fee cap (\`maxFeePerGas\`${n?` = ${v(n)} gwei`:""}).`].join(`
|
|
5
5
|
`),{cause:e,name:"TipAboveFeeCapError"})}}Object.defineProperty(Be,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max priority fee per gas higher than max fee per gas|tip higher than fee cap/});class et extends o{constructor({cause:e}){super(`An error occurred while executing: ${e==null?void 0:e.shortMessage}`,{cause:e,name:"UnknownNodeError"})}}class tt extends Map{constructor(e){super(),Object.defineProperty(this,"maxSize",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.maxSize=e}get(e){const t=super.get(e);return super.has(e)&&(super.delete(e),super.set(e,t)),t}set(e,t){if(super.has(e)&&super.delete(e),super.set(e,t),this.maxSize&&this.size>this.maxSize){const n=super.keys().next().value;n!==void 0&&super.delete(n)}return this}}const x=(r,e,t)=>JSON.stringify(r,(n,a)=>typeof a=="bigint"?a.toString():a,t),rt=r=>r;function nt(r){if(r!=null&&r.reason)return r.reason;if(typeof DOMException=="function")return new DOMException("This operation was aborted","AbortError");const e=new Error("This operation was aborted");return e.name="AbortError",e}function at(r){return typeof r=="object"&&r!==null&&"name"in r&&r.name==="AbortError"}const M=r=>{try{const e=new URL(r);return!e.username&&!e.password?r:(e.username="",e.password="",e.toString())}catch{return r}};class st extends o{constructor({body:e,cause:t,details:n,headers:a,status:s,url:i}){super("HTTP request failed.",{cause:t,details:n,metaMessages:[s&&`Status: ${s}`,`URL: ${M(i)}`,e&&`Request body: ${x(e)}`].filter(Boolean),name:"HttpRequestError"}),Object.defineProperty(this,"body",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"headers",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"status",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"url",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.body=e,this.headers=a,this.status=s,this.url=i}}class ot extends o{constructor({maxSize:e,size:t}){super("HTTP response body exceeded the size limit.",{metaMessages:[`Max: ${e} bytes`,`Received: ${t} bytes`],name:"ResponseBodyTooLargeError"}),Object.defineProperty(this,"maxSize",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"size",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.maxSize=e,this.size=t}}class He extends o{constructor({body:e,error:t,url:n}){super("RPC Request failed.",{cause:t,details:t.message,metaMessages:[`URL: ${M(n)}`,`Request body: ${x(e)}`],name:"RpcRequestError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"url",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.code=t.code,this.data=t.data,this.url=n}}class it extends o{constructor({body:e,url:t}){super("The request took too long to respond.",{details:"The request timed out.",metaMessages:[`URL: ${M(t)}`,`Request body: ${x(e)}`],name:"TimeoutError"}),Object.defineProperty(this,"url",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.url=t}}const ke=-1;class c extends o{constructor(e,{code:t,docsPath:n,metaMessages:a,name:s,shortMessage:i}){super(i,{cause:e,docsPath:n,metaMessages:a||(e==null?void 0:e.metaMessages),name:s||"RpcError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.name=s||e.name,this.code=e instanceof He?e.code:t??ke}}class l extends c{constructor(e,t){super(e,t),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=t.data}}class C extends c{constructor(e){super(e,{code:C.code,name:"ParseRpcError",shortMessage:"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text."})}}Object.defineProperty(C,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32700});class R extends c{constructor(e){super(e,{code:R.code,name:"InvalidRequestRpcError",shortMessage:"JSON is not a valid request object."})}}Object.defineProperty(R,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32600});class S extends c{constructor(e,{method:t}={}){super(e,{code:S.code,name:"MethodNotFoundRpcError",shortMessage:`The method${t?` "${t}"`:""} does not exist / is not available.`})}}Object.defineProperty(S,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32601});class P extends c{constructor(e){super(e,{code:P.code,name:"InvalidParamsRpcError",shortMessage:["Invalid parameters were provided to the RPC method.","Double check you have provided the correct parameters."].join(`
|
|
6
6
|
`)})}}Object.defineProperty(P,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32602});class _ extends c{constructor(e){super(e,{code:_.code,name:"InternalRpcError",shortMessage:"An internal error was received."})}}Object.defineProperty(_,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32603});class I extends c{constructor(e){super(e,{code:I.code,name:"InvalidInputRpcError",shortMessage:["Missing or invalid parameters.","Double check you have provided the correct parameters."].join(`
|
|
7
7
|
`)})}}Object.defineProperty(I,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32e3});class $ extends c{constructor(e){super(e,{code:$.code,name:"ResourceNotFoundRpcError",shortMessage:"Requested resource not found."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ResourceNotFoundRpcError"})}}Object.defineProperty($,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32001});class D extends c{constructor(e){super(e,{code:D.code,name:"ResourceUnavailableRpcError",shortMessage:"Requested resource not available."})}}Object.defineProperty(D,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32002});class U extends c{constructor(e){super(e,{code:U.code,name:"TransactionRejectedRpcError",shortMessage:"Transaction creation failed."})}}Object.defineProperty(U,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32003});class j extends c{constructor(e,{method:t}={}){super(e,{code:j.code,name:"MethodNotSupportedRpcError",shortMessage:`Method${t?` "${t}"`:""} is not supported.`})}}Object.defineProperty(j,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32004});class L extends c{constructor(e){super(e,{code:L.code,name:"LimitExceededRpcError",shortMessage:"Request exceeds defined limit."})}}Object.defineProperty(L,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32005});class z extends c{constructor(e){super(e,{code:z.code,name:"JsonRpcVersionUnsupportedError",shortMessage:"Version of JSON-RPC protocol is not supported."})}}Object.defineProperty(z,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32006});class B extends l{constructor(e){super(e,{code:B.code,name:"UserRejectedRequestError",shortMessage:"User rejected the request."})}}Object.defineProperty(B,"code",{enumerable:!0,configurable:!0,writable:!0,value:4001});class H extends l{constructor(e){super(e,{code:H.code,name:"UnauthorizedProviderError",shortMessage:"The requested method and/or account has not been authorized by the user."})}}Object.defineProperty(H,"code",{enumerable:!0,configurable:!0,writable:!0,value:4100});class k extends l{constructor(e,{method:t}={}){super(e,{code:k.code,name:"UnsupportedProviderMethodError",shortMessage:`The Provider does not support the requested method${t?` " ${t}"`:""}.`})}}Object.defineProperty(k,"code",{enumerable:!0,configurable:!0,writable:!0,value:4200});class F extends l{constructor(e){super(e,{code:F.code,name:"ProviderDisconnectedError",shortMessage:"The Provider is disconnected from all chains."})}}Object.defineProperty(F,"code",{enumerable:!0,configurable:!0,writable:!0,value:4900});class W extends l{constructor(e){super(e,{code:W.code,name:"ChainDisconnectedError",shortMessage:"The Provider is not connected to the requested chain."})}}Object.defineProperty(W,"code",{enumerable:!0,configurable:!0,writable:!0,value:4901});class q extends l{constructor(e){super(e,{code:q.code,name:"SwitchChainError",shortMessage:"An error occurred when attempting to switch chain."})}}Object.defineProperty(q,"code",{enumerable:!0,configurable:!0,writable:!0,value:4902});class G extends l{constructor(e){super(e,{code:G.code,name:"UnsupportedNonOptionalCapabilityError",shortMessage:"This Wallet does not support a capability that was not marked as optional."})}}Object.defineProperty(G,"code",{enumerable:!0,configurable:!0,writable:!0,value:5700});class K extends l{constructor(e){super(e,{code:K.code,name:"UnsupportedChainIdError",shortMessage:"This Wallet does not support the requested chain ID."})}}Object.defineProperty(K,"code",{enumerable:!0,configurable:!0,writable:!0,value:5710});class V extends l{constructor(e){super(e,{code:V.code,name:"DuplicateIdError",shortMessage:"There is already a bundle submitted with this ID."})}}Object.defineProperty(V,"code",{enumerable:!0,configurable:!0,writable:!0,value:5720});class Y extends l{constructor(e){super(e,{code:Y.code,name:"UnknownBundleIdError",shortMessage:"This bundle id is unknown / has not been submitted"})}}Object.defineProperty(Y,"code",{enumerable:!0,configurable:!0,writable:!0,value:5730});class X extends l{constructor(e){super(e,{code:X.code,name:"BundleTooLargeError",shortMessage:"The call bundle is too large for the Wallet to process."})}}Object.defineProperty(X,"code",{enumerable:!0,configurable:!0,writable:!0,value:5740});class J extends l{constructor(e){super(e,{code:J.code,name:"AtomicReadyWalletRejectedUpgradeError",shortMessage:"The Wallet can support atomicity after an upgrade, but the user rejected the upgrade."})}}Object.defineProperty(J,"code",{enumerable:!0,configurable:!0,writable:!0,value:5750});class Q extends l{constructor(e){super(e,{code:Q.code,name:"AtomicityNotSupportedError",shortMessage:"The wallet does not support atomic execution but the request requires it."})}}Object.defineProperty(Q,"code",{enumerable:!0,configurable:!0,writable:!0,value:5760});class Z extends l{constructor(e){super(e,{code:Z.code,name:"WalletConnectSessionSettlementError",shortMessage:"WalletConnect session settlement failed."})}}Object.defineProperty(Z,"code",{enumerable:!0,configurable:!0,writable:!0,value:7e3});class ut extends c{constructor(e){super(e,{name:"UnknownRpcError",shortMessage:"An unknown RPC error occurred."})}}const ct=[{inputs:[{components:[{name:"target",type:"address"},{name:"allowFailure",type:"bool"},{name:"callData",type:"bytes"}],name:"calls",type:"tuple[]"}],name:"aggregate3",outputs:[{components:[{name:"success",type:"bool"},{name:"returnData",type:"bytes"}],name:"returnData",type:"tuple[]"}],stateMutability:"view",type:"function"},{inputs:[{name:"addr",type:"address"}],name:"getEthBalance",outputs:[{name:"balance",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"getCurrentBlockTimestamp",outputs:[{internalType:"uint256",name:"timestamp",type:"uint256"}],stateMutability:"view",type:"function"}],lt=[{name:"query",type:"function",stateMutability:"view",inputs:[{type:"tuple[]",name:"queries",components:[{type:"address",name:"sender"},{type:"string[]",name:"urls"},{type:"bytes",name:"data"}]}],outputs:[{type:"bool[]",name:"failures"},{type:"bytes[]",name:"responses"}]},{name:"HttpError",type:"error",inputs:[{type:"uint16",name:"status"},{type:"string",name:"message"}]}],be=[{inputs:[{name:"dns",type:"bytes"}],name:"DNSDecodingFailed",type:"error"},{inputs:[{name:"ens",type:"string"}],name:"DNSEncodingFailed",type:"error"},{inputs:[],name:"EmptyAddress",type:"error"},{inputs:[{name:"status",type:"uint16"},{name:"message",type:"string"}],name:"HttpError",type:"error"},{inputs:[],name:"InvalidBatchGatewayResponse",type:"error"},{inputs:[{name:"errorData",type:"bytes"}],name:"ResolverError",type:"error"},{inputs:[{name:"name",type:"bytes"},{name:"resolver",type:"address"}],name:"ResolverNotContract",type:"error"},{inputs:[{name:"name",type:"bytes"}],name:"ResolverNotFound",type:"error"},{inputs:[{name:"primary",type:"string"},{name:"primaryAddress",type:"bytes"}],name:"ReverseAddressMismatch",type:"error"},{inputs:[{internalType:"bytes4",name:"selector",type:"bytes4"}],name:"UnsupportedResolverProfile",type:"error"}],dt=[...be,{name:"resolveWithGateways",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes"},{name:"data",type:"bytes"},{name:"gateways",type:"string[]"}],outputs:[{name:"",type:"bytes"},{name:"address",type:"address"}]}],pt=[...be,{name:"reverseWithGateways",type:"function",stateMutability:"view",inputs:[{type:"bytes",name:"reverseName"},{type:"uint256",name:"coinType"},{type:"string[]",name:"gateways"}],outputs:[{type:"string",name:"resolvedName"},{type:"address",name:"resolver"},{type:"address",name:"reverseResolver"}]}],bt=[{name:"text",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"},{name:"key",type:"string"}],outputs:[{name:"",type:"string"}]}],ft=[{name:"addr",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"}],outputs:[{name:"",type:"address"}]},{name:"addr",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"},{name:"coinType",type:"uint256"}],outputs:[{name:"",type:"bytes"}]}],mt=[{name:"isValidSignature",type:"function",stateMutability:"view",inputs:[{name:"hash",type:"bytes32"},{name:"signature",type:"bytes"}],outputs:[{name:"",type:"bytes4"}]}],yt=[{inputs:[{name:"_signer",type:"address"},{name:"_hash",type:"bytes32"},{name:"_signature",type:"bytes"}],stateMutability:"nonpayable",type:"constructor"},{inputs:[{name:"_signer",type:"address"},{name:"_hash",type:"bytes32"},{name:"_signature",type:"bytes"}],outputs:[{type:"bool"}],stateMutability:"nonpayable",type:"function",name:"isValidSig"}],ht=[{type:"event",name:"Approval",inputs:[{indexed:!0,name:"owner",type:"address"},{indexed:!0,name:"spender",type:"address"},{indexed:!1,name:"value",type:"uint256"}]},{type:"event",name:"Transfer",inputs:[{indexed:!0,name:"from",type:"address"},{indexed:!0,name:"to",type:"address"},{indexed:!1,name:"value",type:"uint256"}]},{type:"function",name:"allowance",stateMutability:"view",inputs:[{name:"owner",type:"address"},{name:"spender",type:"address"}],outputs:[{type:"uint256"}]},{type:"function",name:"approve",stateMutability:"nonpayable",inputs:[{name:"spender",type:"address"},{name:"amount",type:"uint256"}],outputs:[{type:"bool"}]},{type:"function",name:"balanceOf",stateMutability:"view",inputs:[{name:"account",type:"address"}],outputs:[{type:"uint256"}]},{type:"function",name:"decimals",stateMutability:"view",inputs:[],outputs:[{type:"uint8"}]},{type:"function",name:"name",stateMutability:"view",inputs:[],outputs:[{type:"string"}]},{type:"function",name:"symbol",stateMutability:"view",inputs:[],outputs:[{type:"string"}]},{type:"function",name:"totalSupply",stateMutability:"view",inputs:[],outputs:[{type:"uint256"}]},{type:"function",name:"transfer",stateMutability:"nonpayable",inputs:[{name:"recipient",type:"address"},{name:"amount",type:"uint256"}],outputs:[{type:"bool"}]},{type:"function",name:"transferFrom",stateMutability:"nonpayable",inputs:[{name:"sender",type:"address"},{name:"recipient",type:"address"},{name:"amount",type:"uint256"}],outputs:[{type:"bool"}]}];function Fe(){let r=()=>{},e=()=>{};return{promise:new Promise((n,a)=>{r=n,e=a}),resolve:r,reject:e}}const A=new Map;function gt({fn:r,id:e,shouldSplitBatch:t,wait:n=0,sort:a}){const s=async()=>{const d=u();i();const N=d.map(({args:b})=>b);N.length!==0&&r(N).then(b=>{a&&Array.isArray(b)&&b.sort(a);for(let f=0;f<d.length;f++){const{resolve:y}=d[f];y==null||y([b[f],b])}}).catch(b=>{for(let f=0;f<d.length;f++){const{reject:y}=d[f];y==null||y(b)}})},i=()=>A.delete(e),p=()=>u().map(({args:d})=>d),u=()=>A.get(e)||[],E=d=>A.set(e,[...u(),d]);return{flush:i,async schedule(d){const{promise:N,resolve:b,reject:f}=Fe();return(t==null?void 0:t([...p(),d]))&&s(),u().length>0?(E({args:d,resolve:b,reject:f}),N):(E({args:d,resolve:b,reject:f}),setTimeout(s,n),N)}}}var ne={};const We={WC_NAME_SUFFIX:".reown.id",WC_NAME_SUFFIX_LEGACY:".wcn.id",BLOCKCHAIN_API_RPC_URL:"https://rpc.walletconnect.org",PULSE_API_URL:"https://pulse.walletconnect.org",W3M_API_URL:"https://api.web3modal.org",CONNECTOR_ID:{WALLET_CONNECT:"walletConnect",INJECTED:"injected",WALLET_STANDARD:"announced",COINBASE:"coinbaseWallet",COINBASE_SDK:"coinbaseWalletSDK",BASE_ACCOUNT:"baseAccount",SAFE:"safe",LEDGER:"ledger",OKX:"okx",EIP6963:"eip6963",AUTH:"AUTH"},CONNECTOR_NAMES:{AUTH:"Auth"},AUTH_CONNECTOR_SUPPORTED_CHAINS:["eip155","solana"],LIMITS:{PENDING_TRANSACTIONS:99},CHAIN:{EVM:"eip155",SOLANA:"solana",POLKADOT:"polkadot",BITCOIN:"bip122",TON:"ton",TRON:"tron"},CHAIN_NAME_MAP:{eip155:"EVM Networks",solana:"Solana",polkadot:"Polkadot",bip122:"Bitcoin",cosmos:"Cosmos",sui:"Sui",stacks:"Stacks",ton:"TON",tron:"TRON"},ADAPTER_TYPES:{BITCOIN:"bitcoin",SOLANA:"solana",WAGMI:"wagmi",ETHERS:"ethers",ETHERS5:"ethers5",TON:"ton",TRON:"tron"},USDT_CONTRACT_ADDRESSES:["0xdac17f958d2ee523a2206206994597c13d831ec7","0xc2132d05d31c914a87c6611c10748aeb04b58e8f","0x9702230a8ea53601f5cd2dc00fdbc13d4df4a8c7","0x919C1c267BC06a7039e03fcc2eF738525769109c","0x48065fbBE25f71C9282ddf5e1cD6D6A887483D5e","0x55d398326f99059fF775485246999027B3197955","0xfd086bc7cd5c481dcc9c85ebe478a1c0b69fcbb9"],SOLANA_SPL_TOKEN_ADDRESSES:{SOL:"So11111111111111111111111111111111111111112"},NATIVE_IMAGE_IDS_BY_NAMESPACE:{eip155:"ba0ba0cd-17c6-4806-ad93-f9d174f17900",solana:"3e8119e5-2a6f-4818-c50c-1937011d5900",bip122:"0b4838db-0161-4ffe-022d-532bf03dba00"},TOKEN_SYMBOLS_BY_ADDRESS:{"0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48":"USDC","0x833589fcd6edb6e08f4c7c32d4f71b54bda02913":"USDC","0x0b2c639c533813f4aa9d7837caf62653d097ff85":"USDC","0xaf88d065e77c8cc2239327c5edb3a432268e5831":"USDC","0x3c499c542cef5e3811e1192ce70d8cc03d5c3359":"USDC","0x2791bca1f2de4661ed88a30c99a7a9449aa84174":"USDC",EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v:"USDC","0xdac17f958d2ee523a2206206994597c13d831ec7":"USDT","0x94b008aa00579c1307b0ef2c499ad98a8ce58e58":"USDT","0xfd086bc7cd5c481dcc9c85ebe478a1c0b69fcbb9":"USDT","0xc2132d05d31c914a87c6611c10748aeb04b58e8f":"USDT",Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB:"USDT"},HTTP_STATUS_CODES:{SERVER_ERROR:500,TOO_MANY_REQUESTS:429,SERVICE_UNAVAILABLE:503,FORBIDDEN:403},UNSUPPORTED_NETWORK_NAME:"Unknown Network",SECURE_SITE_SDK_ORIGIN:(typeof ee<"u"&&typeof ne<"u"?ne.NEXT_PUBLIC_SECURE_SITE_ORIGIN:void 0)||"https://secure.walletconnect.org",REMOTE_FEATURES_ALERTS:{MULTI_WALLET_NOT_ENABLED:{DEFAULT:{displayMessage:"Multi-Wallet Not Enabled",debugMessage:"Multi-wallet support is not enabled. Please enable it in your AppKit configuration at cloud.reown.com."},CONNECTIONS_HOOK:{displayMessage:"Multi-Wallet Not Enabled",debugMessage:"Multi-wallet support is not enabled. Please enable it in your AppKit configuration at cloud.reown.com to use the useAppKitConnections hook."},CONNECTION_HOOK:{displayMessage:"Multi-Wallet Not Enabled",debugMessage:"Multi-wallet support is not enabled. Please enable it in your AppKit configuration at cloud.reown.com to use the useAppKitConnection hook."}},HEADLESS_NOT_ENABLED:{DEFAULT:{displayMessage:"",debugMessage:"Headless support is not enabled. Please enable it with the features.headless option in the AppKit configuration and make sure your current plan supports it."}}},IS_DEVELOPMENT:typeof ee<"u"&&!1,DEFAULT_ALLOWED_ANCESTORS:["http://localhost:*","https://localhost:*","http://127.0.0.1:*","https://127.0.0.1:*","https://*.pages.dev","https://*.vercel.app","https://*.ngrok-free.app","https://secure-mobile.walletconnect.com","https://secure-mobile.walletconnect.org"],METMASK_CONNECTOR_NAME:"MetaMask",TRUST_CONNECTOR_NAME:"Trust Wallet",SOLFLARE_CONNECTOR_NAME:"Solflare",PHANTOM_CONNECTOR_NAME:"Phantom",COIN98_CONNECTOR_NAME:"Coin98",MAGIC_EDEN_CONNECTOR_NAME:"Magic Eden",BACKPACK_CONNECTOR_NAME:"Backpack",BITGET_CONNECTOR_NAME:"Bitget Wallet",FRONTIER_CONNECTOR_NAME:"Frontier",XVERSE_CONNECTOR_NAME:"Xverse Wallet",LEATHER_CONNECTOR_NAME:"Leather",OKX_CONNECTOR_NAME:"OKX Wallet",BINANCE_CONNECTOR_NAME:"Binance Wallet",EIP155:"eip155",ADD_CHAIN_METHOD:"wallet_addEthereumChain",EIP6963_ANNOUNCE_EVENT:"eip6963:announceProvider",EIP6963_REQUEST_EVENT:"eip6963:requestProvider",CONNECTOR_RDNS_MAP:{coinbaseWallet:"com.coinbase.wallet",coinbaseWalletSDK:"com.coinbase.wallet"},CONNECTOR_TYPE_EXTERNAL:"EXTERNAL",CONNECTOR_TYPE_WALLET_CONNECT:"WALLET_CONNECT",CONNECTOR_TYPE_INJECTED:"INJECTED",CONNECTOR_TYPE_ANNOUNCED:"ANNOUNCED",CONNECTOR_TYPE_AUTH:"AUTH",CONNECTOR_TYPE_MULTI_CHAIN:"MULTI_CHAIN",CONNECTOR_TYPE_W3M_AUTH:"AUTH"},Et={caipNetworkIdToNumber(r){return r?Number(r.split(":")[1]):void 0},parseEvmChainId(r){return typeof r=="string"?this.caipNetworkIdToNumber(r):r},getNetworksByNamespace(r,e){return(r==null?void 0:r.filter(t=>t.chainNamespace===e))||[]},getFirstNetworkByNamespace(r,e){return this.getNetworksByNamespace(r,e)[0]},getNetworkNameByCaipNetworkId(r,e){var a;if(!e)return;const t=r.find(s=>s.caipNetworkId===e);if(t)return t.name;const[n]=e.split(":");return((a=We.CHAIN_NAME_MAP)==null?void 0:a[n])||void 0}},Nt=["eip155","solana","polkadot","bip122","cosmos","sui","stacks"];export{ce as $,J as A,o as B,W as C,V as D,pe as E,Pe as F,ze as G,st as H,Ue as I,z as J,Y as K,L,S as M,De as N,et as O,C as P,ut as Q,$ as R,ue as S,it as T,H as U,K as V,G as W,k as X,B as Y,ve as Z,Ee as _,Q as a,ht as a0,yt as a1,Ze as a2,v as a3,Se as a4,Qe as a5,Re as a6,de as a7,xe as a8,O as a9,ft as aA,dt as aB,bt as aC,pt as aD,Z as aE,gt as aF,h as aG,rt as aH,Ye as aI,Me as aa,Ce as ab,ie as ac,ct as ad,Oe as ae,le as af,g as ag,he as ah,ye as ai,te as aj,Ae as ak,Te as al,x as am,Je as an,Xe as ao,w as ap,tt as aq,M as ar,nt as as,at,We as au,lt as av,Nt as aw,Fe as ax,mt as ay,Et as az,X as b,_e as c,oe as d,_ as e,je as f,Le as g,Ke as h,fe as i,I as j,P as k,R as l,j as m,Ie as n,$e as o,F as p,l as q,D as r,ot as s,c as t,He as u,me as v,Ve as w,q as x,Be as y,U as z};
|
|
8
|
-
//# sourceMappingURL=NetworkUtil-
|
|
8
|
+
//# sourceMappingURL=NetworkUtil-DB3XDe5L.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as e,L as r}from"./react-
|
|
1
|
+
import{j as e,L as r}from"./react-COwX0Zlk.js";import{a as s,s as n,I as d,B as a,t as o,H as c}from"./index-BRNshUaV.js";import"./dcl-schemas-B-Ph0Ls4.js";import"./sentry-D9BarSwm.js";import"./ethers-bR7FzlYq.js";import"./intl-AKLEHPeO.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},i=new t.Error().stack;i&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[i]="c7e958df-f971-4910-9a6a-f5cbee4e79b2",t._sentryDebugIdIdentifier="sentry-dbid-c7e958df-f971-4910-9a6a-f5cbee4e79b2")}catch{}})();const f=n.div`
|
|
2
2
|
min-height: 52vh;
|
|
3
3
|
display: flex;
|
|
4
4
|
flex-direction: column;
|
|
@@ -15,4 +15,4 @@ import{j as e,L as r}from"./react-BmPeg6sG.js";import{a as s,s as n,I as d,B as
|
|
|
15
15
|
margin: 0;
|
|
16
16
|
color: ${s.colors.gray4};
|
|
17
17
|
`;function I(){return a({title:o("seo.notFound.title"),noindex:!0}),e.jsxs(f,{"data-testid":"notfound",children:[e.jsx(l,{name:"cart",size:44}),e.jsx(u,{children:o("notFound.title")}),e.jsx(p,{children:o("notFound.body")}),e.jsx(c,{as:r,to:"/items",variant:"white",children:o("notFound.cta")})]})}export{I as NotFound,I as default};
|
|
18
|
-
//# sourceMappingURL=NotFound-
|
|
18
|
+
//# sourceMappingURL=NotFound-Bvz1-F-x.js.map
|