@dcl/shop 0.10.1-31033351584.commit-7c362c4 → 0.10.1-31034473421.commit-bc8c007
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-CC-drZTD.js +381 -0
- package/_assets/{AnimatedBackground-D9zMzxrX.js → AnimatedBackground-C2Ncq3_E.js} +1 -1
- package/_assets/{Assets-CHz_GnGP.js → Assets-DG4ddvEA.js} +2 -2
- package/_assets/{Assets.styles-WLYC9ZCn.js → Assets.styles-BR6LRzsi.js} +1 -1
- package/_assets/{Authorizations-C_ld2hUu.js → Authorizations-BfVJlMW8.js} +1 -1
- package/_assets/{Cart-DBgyj50N.js → Cart-DDHGXB0M.js} +2 -2
- package/_assets/{CircularProgress-Dd_9a3Fi.js → CircularProgress-CsPPGJq-.js} +1 -1
- package/_assets/{Collection-CgY9imoj.js → Collection-IF46ulmh.js} +1 -1
- package/_assets/{CollectionCarousel-BQc0kPjE.js → CollectionCarousel-BKyJ1qJ0.js} +1 -1
- package/_assets/{Confetti-P7-7XzLV.js → Confetti-BvaNvqo_.js} +1 -1
- package/_assets/{Creator-DX_sw5fh.js → Creator-BZ6noM_Z.js} +1 -1
- package/_assets/{ErrorNotice-6mO-dV9R.js → ErrorNotice-DuHUqzrI.js} +1 -1
- package/_assets/{ExchangeController-CuXSsueh.js → ExchangeController-D18bEO7-.js} +1 -1
- package/_assets/{Faq-MPZMyEz7.js → Faq-C46L8GKX.js} +1 -1
- package/_assets/{GetCredits-DclqIV_n.js → GetCredits-GeJS2N53.js} +1 -1
- package/_assets/{Grow-BwZ30IFC.js → Grow-Dh2-4jak.js} +1 -1
- package/_assets/{HelpersUtil-CgkoCMU8.js → HelpersUtil-daecOugO.js} +1 -1
- package/_assets/{ItemDetail-B57bZ-Jc.js → ItemDetail-DMKpiTyj.js} +1 -1
- package/_assets/LazyEmoteControls-CgDq4t3s.js +2 -0
- package/_assets/{LoadMore-DUO3yo-d.js → LoadMore-DSfpb61Y.js} +1 -1
- package/_assets/{ManaPricingBanner.styles-BHHRlgfm.js → ManaPricingBanner.styles-BR2K9M4o.js} +1 -1
- package/_assets/{MyAssets-DrjJhyAF.js → MyAssets-DK-Fl0qf.js} +1 -1
- package/_assets/{MyFavorites-CeLHszJj.js → MyFavorites-CQSlRzjv.js} +1 -1
- package/_assets/{NotFound-DUBbnvP8.js → NotFound-I4xImBrl.js} +1 -1
- package/_assets/{NotificationsBell-BMPn7Zge.js → NotificationsBell-B3CjtPKY.js} +1 -1
- package/_assets/{OutfitDetail-B1T-zX3T.js → OutfitDetail-JHw4Anck.js} +1 -1
- package/_assets/{OutfitPreview-BSQLpTAp.js → OutfitPreview-CD1I4FGA.js} +1 -1
- package/_assets/{OutfitStudio-CT1p1EwA.js → OutfitStudio-BmPDW-4_.js} +1 -1
- package/_assets/{StoreSettings-DW1tYBTa.js → StoreSettings-BaxaylF_.js} +1 -1
- package/_assets/{Success-BnIfzbBg.js → Success-CmsOOzv5.js} +1 -1
- package/_assets/{SwapController-C6lyTdKK.js → SwapController-C3FH350F.js} +1 -1
- package/_assets/{Tooltip-CeBylumq.js → Tooltip-BUoy_yBS.js} +1 -1
- package/_assets/{TradeService-CxCvVbfV.js → TradeService-BfkCpUVP.js} +1 -1
- package/_assets/{W3MFrameProviderSingleton-B9ZlMbe-.js → W3MFrameProviderSingleton-C5e_NZU2.js} +3 -3
- package/_assets/{WebCryptoP256-DqLZ2JeY.js → WebCryptoP256-DThOAe5r.js} +1 -1
- package/_assets/{authorizations-D_b9y1Zd.js → authorizations-C46pWUg_.js} +1 -1
- package/_assets/{basic-6pZpkz1m.js → basic-CFr4oW8e.js} +1 -1
- package/_assets/{biconomy-ZrkAwwyz.js → biconomy-EIHI94HW.js} +1 -1
- package/_assets/{builder-DzG-rWAy.js → builder-BxyqTcR8.js} +1 -1
- package/_assets/{buy-DdP53CVp.js → buy-CrEjBbQr.js} +1 -1
- package/_assets/{buy-gasless-CW77neja.js → buy-gasless-DX2i6M46.js} +1 -1
- package/_assets/{categories-IxSjFqsD.js → categories-Djn1x7W5.js} +1 -1
- package/_assets/{ccip-BOmMoBQj.js → ccip-Cj8VnD6W.js} +1 -1
- package/_assets/{ccip-B3PEEgzH.js → ccip-bf8ZEccw.js} +1 -1
- package/_assets/{collectionPage.styles-Di_BnCwz.js → collectionPage.styles-D2QDYBrf.js} +2 -2
- package/_assets/{controller-2wsshlU9.js → controller-Btwq_67O.js} +2 -2
- package/_assets/{core-uxnhWBlK.js → core-BoZKMv7D.js} +4 -4
- package/_assets/{createSvgIcon-NvyKnNvS.js → createSvgIcon-CFkg424z.js} +1 -1
- package/_assets/{custom-DRMxU13P.js → custom-CnxdXktY.js} +1 -1
- package/_assets/{data-capture-d4fN2Aim.js → data-capture-DE3s9XBD.js} +1 -1
- package/_assets/{email-Emg8tWxu.js → email-CyUtvnHn.js} +1 -1
- package/_assets/{embedded-wallet-Bjr40hue.js → embedded-wallet-CNutXAKp.js} +1 -1
- package/_assets/{emotion-styled.browser.esm-QfXC-KV3.js → emotion-styled.browser.esm-tTp1XoI0.js} +1 -1
- package/_assets/{engine-CicyEMnx.js → engine-DDh_khSi.js} +1 -1
- package/_assets/{errors-B3VCSPGA.js → errors-DB8YoX8H.js} +1 -1
- package/_assets/{estimate-l1-fee-BT6nlWPX.js → estimate-l1-fee-FPPQQb_O.js} +1 -1
- package/_assets/{execute-WaIhUkkd.js → execute-CbtU2HHN.js} +2 -2
- package/_assets/{features-CxpVP8VP.js → features-CTzqOm7l.js} +1 -1
- package/_assets/{fetchTokenMetadata-cnEvxjTn.js → fetchTokenMetadata-DL00Yl1V.js} +2 -2
- package/_assets/{field.styles-C--nSPUE.js → field.styles-VS1Bp3SY.js} +1 -1
- package/_assets/{get-ecosystem-wallet-info-6FW4N0DG.js → get-ecosystem-wallet-info-Ts3YeqO0.js} +1 -1
- package/_assets/{getBalance-BAQITwAU.js → getBalance-Ci8oL4mO.js} +1 -1
- package/_assets/{getNFT-oYnvPuKj.js → getNFT-DDI0kKlm.js} +1 -1
- package/_assets/{getNFT-BpsbO0uo.js → getNFT-Fy7sCZrd.js} +1 -1
- package/_assets/{grid.styles-lAALC631.js → grid.styles-B8-aHr-Z.js} +1 -1
- package/_assets/{hashTypedData-Jrl2VmhK.js → hashTypedData-CgBoKib0.js} +1 -1
- package/_assets/{hashTypedData-CsUSXTk_.js → hashTypedData-DRSL-xFv.js} +1 -1
- package/_assets/{in-app-CmfWNhfE.js → in-app-CZhXNWAN.js} +1 -1
- package/_assets/{in-app-wallet-calls-DtB6x1ba.js → in-app-wallet-calls-BiloEdY1.js} +1 -1
- package/_assets/{index-BD8q0Ac0.js → index-0Vjq0BuP.js} +1 -1
- package/_assets/{index-BzAMjUfs.js → index-3uaNnNo1.js} +1 -1
- package/_assets/{index-Chwj7fux.js → index-8JB2rkjo.js} +1 -1
- package/_assets/{index-CqgBrAa3.js → index-9o15Whth.js} +1 -1
- package/_assets/{index-B0RmgR_d.js → index-9yrtZWWe.js} +12 -12
- package/_assets/{index-BP8QvCSU.js → index-B1qAF-bB.js} +1 -1
- package/_assets/{index-DS0wbCkf.js → index-B44uRV_0.js} +1 -1
- package/_assets/{index-I09RqTLV.js → index-B5Ot6UoK.js} +1 -1
- package/_assets/{index-BX_TKzNw.js → index-BB1Alh6i.js} +1 -1
- package/_assets/{index-C2ZjqrRW.js → index-BFPc-Id9.js} +1 -1
- package/_assets/{index-BXDc0uKc.js → index-BGDJC7BF.js} +3 -3
- package/_assets/{index-DZg6weKS.js → index-BIsmMKyp.js} +1 -1
- package/_assets/{index-ZjJ5_frA.js → index-BNALoEFc.js} +2 -2
- package/_assets/{index-C9B5P4Dg.js → index-BV1tKLO5.js} +1 -1
- package/_assets/{index-Bixh0fkw.js → index-BW_by1p8.js} +1 -1
- package/_assets/{index-uvJyV1hQ.js → index-B_dDd-2o.js} +1 -1
- package/_assets/{index-DGETq3uL.js → index-BaZrYmBG.js} +1 -1
- package/_assets/{index-DMIDDxCt.js → index-BbcqV6dl.js} +1 -1
- package/_assets/{index-CgBr7agx.js → index-BcYeQL6D.js} +1 -1
- package/_assets/{index-BlHE6_qG.js → index-Be3z0ef5.js} +1 -1
- package/_assets/{index-OY9eT885.js → index-Bkq0noih.js} +1 -1
- package/_assets/{index-BVGUt6Gs.js → index-BqiBjV7M.js} +1 -1
- package/_assets/{index-BipKcd4N.js → index-BtW2kxAX.js} +1 -1
- package/_assets/{index-CuJX4PqH.js → index-Bw4kOn5N.js} +3 -3
- package/_assets/{index-D9gu_V-T.js → index-CAAx9kV_.js} +1 -1
- package/_assets/{index-DwlPIy0M.js → index-CAixpuE6.js} +1 -1
- package/_assets/{index-B7HzCYv7.js → index-CMdaU3Fe.js} +1 -1
- package/_assets/{index-DrmR7S6Q.js → index-CMsqXnmJ.js} +2 -2
- package/_assets/{index-CQE18d4g.js → index-CN25d8be.js} +1 -1
- package/_assets/{index-CtNSOsEl.js → index-COM2HkFw.js} +1 -1
- package/_assets/{index-DyR3H03X.js → index-CRLgNgTE.js} +1 -1
- package/_assets/{index-BFBXL8wW.js → index-CVQqdafr.js} +1 -1
- package/_assets/{index-CL8GjkKH.js → index-CWQ_hyD9.js} +2 -2
- package/_assets/{index-CyH1prYm.js → index-Cb-Xyz4U.js} +1 -1
- package/_assets/{index-DVirP4aU.js → index-CcEkPG2d.js} +1 -1
- package/_assets/{index-Cc0dtF8p.js → index-CeFSJ06M.js} +1 -1
- package/_assets/{index-DPaAk7j3.js → index-CeLWKxYJ.js} +3 -3
- package/_assets/{index-DzZYiqRk.js → index-D5xfzJYu.js} +1 -1
- package/_assets/{index-DF1U0cxT.js → index-D695ADYc.js} +1 -1
- package/_assets/{index-CVOmuhfA.js → index-D8gWMfNo.js} +1 -1
- package/_assets/{index-DfDPH-Yr.js → index-DH5xRkV0.js} +1 -1
- package/_assets/{index-C4VwyLUU.js → index-DKkcKHt7.js} +1 -1
- package/_assets/{index-BhLPInDw.js → index-DN1XWQxE.js} +1 -1
- package/_assets/{index-COJmepdC.js → index-Di-G-FMZ.js} +1 -1
- package/_assets/{index-Bjhe9YfT.js → index-Dk6WNfYc.js} +1 -1
- package/_assets/{index-CIUi1P7h.js → index-Dqgl-D8m.js} +1 -1
- package/_assets/{index-BD1dOfiG.js → index-Gq4sV0iH.js} +1 -1
- package/_assets/{index-Jl1-nAXE.js → index-I-YHePeT.js} +1 -1
- package/_assets/{index-ZasgicCU.js → index-RnP4upXv.js} +1 -1
- package/_assets/{index-COtDNaHu.js → index-Yk813Dlf.js} +1 -1
- package/_assets/{index-D8Ax93UI.js → index-i-zDqv41.js} +68 -68
- package/_assets/{index-DaKcX9sX.js → index-ojZHdJoW.js} +1 -1
- package/_assets/{index.es-G5uWqVOg.js → index.es-BPLGTRUs.js} +1 -1
- package/_assets/{index.es-BLEyVYyK.js → index.es-Bb6fWqbI.js} +1 -1
- package/_assets/{index.es-BCk9rT7_.js → index.es-Cw9YevXi.js} +4 -4
- package/_assets/{localBatchGatewayRequest-BqP45lmY.js → localBatchGatewayRequest-DV-Qiqwg.js} +1 -1
- package/_assets/{networks-C7vkOnsA.js → networks-BidiJn0z.js} +1 -1
- package/_assets/{onramp-B5AsANak.js → onramp-CC1FvFBK.js} +1 -1
- package/_assets/{openzeppelin-BDhUFXKd.js → openzeppelin-DxfcoOmD.js} +1 -1
- package/_assets/{parseNft-CS3ce58Q.js → parseNft-D5_2xvn3.js} +2 -2
- package/_assets/{parseSignature-B-p0IAwY.js → parseSignature-DCVnoEud.js} +3 -3
- package/_assets/{parseSignature-DXiot5Vg.js → parseSignature-DGREosgl.js} +1 -1
- package/_assets/{passkeys-DNv3zmOi.js → passkeys-c0mSn9d_.js} +1 -1
- package/_assets/{pay-with-exchange-DXRFRXNY.js → pay-with-exchange-tOzIsJn8.js} +1 -1
- package/_assets/{qr-overlay-Be9ZguAa.js → qr-overlay-C238jsQe.js} +1 -1
- package/_assets/{receive-DTNyaTyB.js → receive-YJVe-YsN.js} +1 -1
- package/_assets/{resolveImplementation-LSubYu3p.js → resolveImplementation-Bup3lN7e.js} +1 -1
- package/_assets/{rpc-DFIKV5lj.js → rpc-DRG5dkgN.js} +1 -1
- package/_assets/{secp256k1-BeAsAc0R.js → secp256k1-BLTf96Dw.js} +1 -1
- package/_assets/{secp256k1-qX4eq3vO.js → secp256k1-DGfmtJOR.js} +1 -1
- package/_assets/{secp256k1-DR1oWUKC.js → secp256k1-DyD-7xzT.js} +1 -1
- package/_assets/{send-DJjB2M1Q.js → send-HB6wuoPf.js} +1 -1
- package/_assets/{send-batch-transaction-BaUdBZlb.js → send-batch-transaction-BLLreTbC.js} +1 -1
- package/_assets/{send-eip712-transaction-lIj5rFgO.js → send-eip712-transaction-1tvGSDlM.js} +2 -2
- package/_assets/{send-gasless-transaction-DVhS9M3V.js → send-gasless-transaction-Ctg5l4BN.js} +2 -2
- package/_assets/{send-transaction-CMZ9JiTN.js → send-transaction-XQn5-Ih2.js} +2 -2
- package/_assets/{sendMetaTransaction-E1EYSLOv.js → sendMetaTransaction-BHIBWrRl.js} +1 -1
- package/_assets/{sendRawTransaction-kegyDwlO.js → sendRawTransaction-DcRJfXtJ.js} +3 -3
- package/_assets/{serializeTransaction-D8wcgC_5.js → serializeTransaction-BovQs4W4.js} +1 -1
- package/_assets/{session-proposal-D0hYEWkU.js → session-proposal-Dh0H2iMq.js} +1 -1
- package/_assets/{session-request-BOvXEvci.js → session-request-PjE6-slV.js} +2 -2
- package/_assets/{signing-BgAqN9_v.js → signing-D_b9YpxC.js} +3 -3
- package/_assets/{skeleton.styles-B1iQljhe.js → skeleton.styles-BkB0ehmF.js} +1 -1
- package/_assets/{socials-BSKX4wYT.js → socials-BdH7MtQ-.js} +1 -1
- package/_assets/{styled-DhdWG9IN.js → styled-DO__i5OQ.js} +1 -1
- package/_assets/{swaps-CA53eWy9.js → swaps-8XaXvjLz.js} +1 -1
- package/_assets/{thirdweb-BgxGEV7u.js → thirdweb-CQkxIvb0.js} +3 -3
- package/_assets/{to-serializable-transaction-DuWuQs-Y.js → to-serializable-transaction-BKduqsBs.js} +2 -2
- package/_assets/{transactionReceipt-CHx9xgPc.js → transactionReceipt-B0NXQ6bs.js} +1 -1
- package/_assets/{transactions-CwoPg7nZ.js → transactions-B8KmPj9n.js} +1 -1
- package/_assets/{useCreditPacks-Dctt6M21.js → useCreditPacks-B2mrQzTg.js} +1 -1
- package/_assets/{useImportable-CFTNXsyw.js → useImportable-B5Yrq7z2.js} +1 -1
- package/_assets/{useInfiniteGrid-ifHQPotm.js → useInfiniteGrid-ByXPg4Cl.js} +1 -1
- package/_assets/{useTheme-Mu9eB-qd.js → useTheme-Dr5b6sGg.js} +1 -1
- package/_assets/{verifyHash-BlAqphQ6.js → verifyHash-kfqTlL2t.js} +1 -1
- package/_assets/{w3m-modal-DRb7QTWO.js → w3m-modal-D8CVGu-q.js} +1 -1
- package/_assets/{w3m-modal-ecJ1_lBE.js → w3m-modal-qsbw4UhH.js} +1 -1
- package/_assets/{wait-for-tx-receipt-D1uFBLQV.js → wait-for-tx-receipt-C6x4RXLY.js} +1 -1
- package/_assets/{wallets-gt4F0nQN.js → wallets-OabXbDr9.js} +5 -5
- package/_assets/{web-connector-H3XVziku.js → web-connector-BIGf2LgP.js} +3 -3
- package/_assets/{writeContract-Dvy_35iC.js → writeContract-C3LPgHro.js} +1 -1
- package/_assets/{zoraTestnet-BW0MPGSm.js → zoraTestnet-EWvUityH.js} +1 -1
- package/index.html +11 -11
- package/package.json +2 -2
- package/_assets/Activity-DIFzGCgA.js +0 -381
- package/_assets/LazyEmoteControls-C8p_nuP6.js +0 -2
package/index.html
CHANGED
|
@@ -16,10 +16,10 @@
|
|
|
16
16
|
<link rel="canonical" href="https://decentraland.org/shop/" />
|
|
17
17
|
|
|
18
18
|
<!-- Favicon: the Decentraland mark (same as the marketplace). -->
|
|
19
|
-
<link rel="icon" type="image/x-icon" href="https://cdn.decentraland.org/@dcl/shop/0.10.1-
|
|
20
|
-
<link rel="apple-touch-icon" sizes="180x180" href="https://cdn.decentraland.org/@dcl/shop/0.10.1-
|
|
19
|
+
<link rel="icon" type="image/x-icon" href="https://cdn.decentraland.org/@dcl/shop/0.10.1-31034473421.commit-bc8c007/favicon.ico" sizes="16x16 32x32 48x48" />
|
|
20
|
+
<link rel="apple-touch-icon" sizes="180x180" href="https://cdn.decentraland.org/@dcl/shop/0.10.1-31034473421.commit-bc8c007/dcl-mark.png" />
|
|
21
21
|
<meta name="apple-mobile-web-app-title" content="DCL Shop" />
|
|
22
|
-
<link rel="manifest" href="https://cdn.decentraland.org/@dcl/shop/0.10.1-
|
|
22
|
+
<link rel="manifest" href="https://cdn.decentraland.org/@dcl/shop/0.10.1-31034473421.commit-bc8c007/site.webmanifest" />
|
|
23
23
|
|
|
24
24
|
<!-- Open Graph.
|
|
25
25
|
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
<meta name="twitter:image:alt" content="Decentraland Shop — wearables and emotes for your avatar" />
|
|
59
59
|
|
|
60
60
|
<!-- Sitemap -->
|
|
61
|
-
<link rel="sitemap" type="application/xml" title="Sitemap" href="https://cdn.decentraland.org/@dcl/shop/0.10.1-
|
|
61
|
+
<link rel="sitemap" type="application/xml" title="Sitemap" href="https://cdn.decentraland.org/@dcl/shop/0.10.1-31034473421.commit-bc8c007/sitemap.xml" />
|
|
62
62
|
|
|
63
63
|
<!-- Warm the 3D preview / fonts -->
|
|
64
64
|
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
|
@@ -70,13 +70,13 @@
|
|
|
70
70
|
<link rel="preconnect" href="https://wearable-preview.decentraland.org" />
|
|
71
71
|
<link rel="preconnect" href="https://peer.decentraland.zone" crossorigin />
|
|
72
72
|
<link rel="preconnect" href="https://peer.decentraland.org" crossorigin />
|
|
73
|
-
<script type="module" crossorigin src="https://cdn.decentraland.org/@dcl/shop/0.10.1-
|
|
74
|
-
<link rel="modulepreload" crossorigin href="https://cdn.decentraland.org/@dcl/shop/0.10.1-
|
|
75
|
-
<link rel="modulepreload" crossorigin href="https://cdn.decentraland.org/@dcl/shop/0.10.1-
|
|
76
|
-
<link rel="modulepreload" crossorigin href="https://cdn.decentraland.org/@dcl/shop/0.10.1-
|
|
77
|
-
<link rel="modulepreload" crossorigin href="https://cdn.decentraland.org/@dcl/shop/0.10.1-
|
|
78
|
-
<link rel="modulepreload" crossorigin href="https://cdn.decentraland.org/@dcl/shop/0.10.1-
|
|
79
|
-
<link rel="stylesheet" crossorigin href="https://cdn.decentraland.org/@dcl/shop/0.10.1-
|
|
73
|
+
<script type="module" crossorigin src="https://cdn.decentraland.org/@dcl/shop/0.10.1-31034473421.commit-bc8c007/_assets/index-9yrtZWWe.js"></script>
|
|
74
|
+
<link rel="modulepreload" crossorigin href="https://cdn.decentraland.org/@dcl/shop/0.10.1-31034473421.commit-bc8c007/_assets/react-BYHuwl8r.js">
|
|
75
|
+
<link rel="modulepreload" crossorigin href="https://cdn.decentraland.org/@dcl/shop/0.10.1-31034473421.commit-bc8c007/_assets/dcl-schemas-CmtP3U6y.js">
|
|
76
|
+
<link rel="modulepreload" crossorigin href="https://cdn.decentraland.org/@dcl/shop/0.10.1-31034473421.commit-bc8c007/_assets/sentry-Dx-KuLV3.js">
|
|
77
|
+
<link rel="modulepreload" crossorigin href="https://cdn.decentraland.org/@dcl/shop/0.10.1-31034473421.commit-bc8c007/_assets/ethers-BDpbhgX6.js">
|
|
78
|
+
<link rel="modulepreload" crossorigin href="https://cdn.decentraland.org/@dcl/shop/0.10.1-31034473421.commit-bc8c007/_assets/intl-CBcMB1D2.js">
|
|
79
|
+
<link rel="stylesheet" crossorigin href="https://cdn.decentraland.org/@dcl/shop/0.10.1-31034473421.commit-bc8c007/_assets/index-D-NhBWWr.css">
|
|
80
80
|
</head>
|
|
81
81
|
<body>
|
|
82
82
|
<div id="root"></div>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dcl/shop",
|
|
3
|
-
"version": "0.10.1-
|
|
3
|
+
"version": "0.10.1-31034473421.commit-bc8c007",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"author": "Decentraland",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -8,5 +8,5 @@
|
|
|
8
8
|
"type": "git",
|
|
9
9
|
"url": "git+https://github.com/decentraland/shop.git"
|
|
10
10
|
},
|
|
11
|
-
"commit": "
|
|
11
|
+
"commit": "bc8c0074260364efd4534b67171243538254d25f"
|
|
12
12
|
}
|
|
@@ -1,381 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["_assets/index-D8Ax93UI.js","_assets/react-BYHuwl8r.js","_assets/index-B0RmgR_d.js","_assets/dcl-schemas-CmtP3U6y.js","_assets/sentry-Dx-KuLV3.js","_assets/ethers-BDpbhgX6.js","_assets/intl-CBcMB1D2.js","_assets/index-D-NhBWWr.css","_assets/useImportable-CFTNXsyw.js","_assets/buy-DdP53CVp.js","_assets/authorizations-D_b9y1Zd.js","_assets/sendMetaTransaction-E1EYSLOv.js","_assets/ManaPricingBanner.styles-BHHRlgfm.js","_assets/Faq-MPZMyEz7.js","_assets/field.styles-C--nSPUE.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{n as we,bM as je,o as q,v as I,bN as ke,s as l,t as s,w as Ie,B as Ae,x as $e,b as d,ao as Pe,I as A,bO as Y,bP as ee,bQ as Le,_ as Ne,z as N,bR as Ee,A as Te,bh as z,L as Ce,bS as Se,E as Fe,bT as De,bU as O}from"./index-B0RmgR_d.js";import{r as g,u as Me,j as t,L as se,e as He}from"./react-BYHuwl8r.js";import{u as qe}from"./useImportable-CFTNXsyw.js";import{L as ze}from"./LoadMore-DUO3yo-d.js";import{u as P}from"./useInfiniteGrid-ifHQPotm.js";import{m as ne}from"./mana-matic-C4e1sNO3.js";import"./dcl-schemas-CmtP3U6y.js";import"./sentry-Dx-KuLV3.js";import"./ethers-BDpbhgX6.js";import"./intl-CBcMB1D2.js";import"./buy-DdP53CVp.js";import"./authorizations-D_b9y1Zd.js";import"./sendMetaTransaction-E1EYSLOv.js";const Oe=15e3;function Re(e,a){return e.txHash&&a.txHash?e.txHash===a.txHash:e.txHash||a.txHash?!1:e.status===a.status&&Math.abs(e.createdAt-a.createdAt)<=Oe}function We(e){const a=[...e].sort((i,r)=>r.createdAt-i.createdAt),n=[];for(const i of a){const r=n[n.length-1];r&&Re(r[r.length-1],i)?r.push(i):n.push([i])}return n.map(i=>{var r;return{id:((r=i.find(c=>c.txHash))==null?void 0:r.txHash)??i[i.length-1].id,createdAt:Math.max(...i.map(c=>c.createdAt)),status:i.some(c=>c.status==="PENDING")?"PENDING":"SETTLED",totalCredits:i.reduce((c,u)=>c+u.credits,0),lines:i}})}function _e(e){return e.tradeId?`trade:${e.tradeId}`:e.contractAddress&&e.itemId?`item:${e.contractAddress.toLowerCase()}:${e.itemId}`:null}function Be(e){const a=[],n=new Map;for(const i of e){const r=_e(i);if(!r){a.push({key:i.id,tradeId:null,contractAddress:i.contractAddress??null,itemId:i.itemId??null,quantity:1,credits:i.credits});continue}const c=n.get(r);if(c){c.quantity+=1,c.credits+=i.credits;continue}const u={key:r,tradeId:i.tradeId,contractAddress:i.contractAddress??null,itemId:i.itemId??null,quantity:1,credits:i.credits};n.set(r,u),a.push(u)}return a}function Ge(e,a){return{id:e.id,contractAddress:e.contractAddress,tokenId:e.tokenId,itemId:e.itemId,counterparty:e.buyer,credits:a?we(e.manaWei,a):null,manaWei:e.manaWei,createdAt:e.createdAt,txHash:e.txHash}}function Ue(e){const n=We(e.purchases.filter(o=>o.status!=="EXPIRED")).map(o=>({kind:"purchase",id:`purchase:${o.id}`,createdAt:o.createdAt,order:o})),i=e.sales.map(o=>{const x=Ge(o,e.rate);return{kind:"sale",id:`sale:${x.id}`,createdAt:x.createdAt,sale:x}}),r=(e.creditOrders??[]).filter(o=>o.status!=="failed"&&o.status!=="abandoned").map(o=>({kind:"credit",id:`credit:${o.id}`,createdAt:o.createdAt,order:o})),c=new Set(e.purchases.filter(o=>o.txHash).map(o=>o.txHash.toLowerCase())),u=(e.manaPurchases??[]).filter(o=>!c.has(o.txHash.toLowerCase())).map(o=>({kind:"mana-purchase",id:`mana-purchase:${o.id}`,createdAt:o.createdAt,sale:o}));return[...n,...i,...r,...u].sort((o,x)=>x.createdAt-o.createdAt||(o.id<x.id?-1:1))}function Ke(e,a){return a==="all"?e:a==="sales"?e.filter(n=>n.kind==="sale"):e.filter(n=>n.kind==="purchase"||n.kind==="credit"||n.kind==="mana-purchase")}const re=e=>e.trim().toLowerCase();function Qe(e){const a=new Map;for(const n of e??[]){const i=re(n.txHash??"");if(!i)continue;const r=a.get(i);r?r.push(n):a.set(i,[n])}return a}function Ve(e,a,n=Date.now()){const i=a.txHash?e.get(re(a.txHash)):void 0;if(!i||i.length===0)return{kind:"direct"};const r=i.length===1?Xe(i[0].netCents):null,c=i.filter(o=>!o.available&&o.availableAt>n);if(c.length===0)return{kind:"credited",credits:r};const u=c.reduce((o,x)=>Math.max(o,x.availableAt),0);return{kind:"pending",credits:r,availableAt:u}}function Xe(e){return je(e)}function Ze(){const e=q(i=>{var r;return(r=i.session)==null?void 0:r.address}),{data:a,isLoading:n}=I({queryKey:["listing-count",e],queryFn:()=>ke({creator:e,onSale:!0,first:1}),enabled:!!e,staleTime:5*6e4});return{count:a==null?void 0:a.total,isLoading:n}}const Je="https://cdn.decentraland.org/@dcl/shop/0.10.1-31033351584.commit-7c362c4/_assets/credits-product-vs4Q6u6l.svg",R=Ie`
|
|
3
|
-
0% { background-position: 200% 0; }
|
|
4
|
-
100% { background-position: -200% 0; }
|
|
5
|
-
`,Ye=l.section`
|
|
6
|
-
width: 100%;
|
|
7
|
-
min-width: 0;
|
|
8
|
-
min-height: 60vh;
|
|
9
|
-
/* Centre the whole column — heading, tabs and cards as ONE block — so the feed isn't parked against
|
|
10
|
-
the left edge of a wide page. Centring only the list would leave the heading orphaned from it.
|
|
11
|
-
|
|
12
|
-
ONE width for every view. The migration tool needs 1003px (its row is a thumbnail, a name and a
|
|
13
|
-
144px price field; narrower, the price field drops to its own line on a desktop), and the feed used
|
|
14
|
-
to sit at 760px — so switching chips resized the heading and the whole column under it, which reads
|
|
15
|
-
as the page reloading rather than as a filter changing. */
|
|
16
|
-
max-width: 1003px;
|
|
17
|
-
margin-inline: auto;
|
|
18
|
-
`,et=l.div`
|
|
19
|
-
display: flex;
|
|
20
|
-
align-items: baseline;
|
|
21
|
-
gap: 12px;
|
|
22
|
-
margin-bottom: 20px;
|
|
23
|
-
`,tt=l.h1`
|
|
24
|
-
font-family: ${s.font.sans};
|
|
25
|
-
margin: 0;
|
|
26
|
-
`;l.span`
|
|
27
|
-
color: ${s.colors.muted};
|
|
28
|
-
font-size: 14px;
|
|
29
|
-
`;const it=l.div`
|
|
30
|
-
display: flex;
|
|
31
|
-
gap: 8px;
|
|
32
|
-
margin-bottom: 20px;
|
|
33
|
-
flex-wrap: wrap;
|
|
34
|
-
`,oe=l.button`
|
|
35
|
-
appearance: none;
|
|
36
|
-
/* Figma draws the row as a 0.5px Gray 4 hairline, a shade darker and half the weight of the card
|
|
37
|
-
border this used, and sets the label a point smaller with the tracking the shop's other 13px
|
|
38
|
-
pills carry. */
|
|
39
|
-
border: 0.5px solid ${s.colors.gray4};
|
|
40
|
-
background: ${s.colors.white};
|
|
41
|
-
color: ${s.colors.text};
|
|
42
|
-
font-family: ${s.font.sans};
|
|
43
|
-
font-size: 13px;
|
|
44
|
-
font-weight: 600;
|
|
45
|
-
line-height: 24px;
|
|
46
|
-
letter-spacing: 0.46px;
|
|
47
|
-
/* The design gives the pill a flat 40px and no vertical padding, centring the 24px line box inside
|
|
48
|
-
it — so the height is the 40 it draws rather than the sum of a line box, padding and a border. */
|
|
49
|
-
display: inline-flex;
|
|
50
|
-
align-items: center;
|
|
51
|
-
justify-content: center;
|
|
52
|
-
padding: 0 16px;
|
|
53
|
-
min-height: 40px;
|
|
54
|
-
border-radius: ${s.radius.pill};
|
|
55
|
-
cursor: pointer;
|
|
56
|
-
transition:
|
|
57
|
-
background 0.15s,
|
|
58
|
-
border-color 0.15s,
|
|
59
|
-
color 0.15s;
|
|
60
|
-
|
|
61
|
-
&:hover {
|
|
62
|
-
background: ${s.colors.media};
|
|
63
|
-
}
|
|
64
|
-
&:focus-visible {
|
|
65
|
-
outline: 2px solid ${s.colors.accent};
|
|
66
|
-
outline-offset: 2px;
|
|
67
|
-
}
|
|
68
|
-
&[data-active='true'] {
|
|
69
|
-
background: ${s.colors.accent};
|
|
70
|
-
border-color: ${s.colors.accent};
|
|
71
|
-
color: ${s.colors.white};
|
|
72
|
-
}
|
|
73
|
-
`,at=l(oe)`
|
|
74
|
-
position: relative;
|
|
75
|
-
|
|
76
|
-
/* Violet-on-violet once the chip fills, so the badge inverts. Reached by test id rather than by
|
|
77
|
-
interpolating the styled def, which throws under vitest (see CLAUDE.md). */
|
|
78
|
-
&[data-active='true'] [data-testid='activity-migrate-count'] {
|
|
79
|
-
background: ${s.colors.white};
|
|
80
|
-
color: ${s.colors.accent};
|
|
81
|
-
/* See MigrateBadge: a white ring would vanish into the page here, since the disc itself is white. */
|
|
82
|
-
box-shadow: 0 0 0 2px ${s.colors.accent};
|
|
83
|
-
}
|
|
84
|
-
`,st=l.span`
|
|
85
|
-
position: absolute;
|
|
86
|
-
/* Offsets run from the chip's PADDING box, so they carry the 1px its hairline occupies in layout on
|
|
87
|
-
top of the 5.5 / 2.5 the design measures from the pill's outer edge. */
|
|
88
|
-
top: -6.5px;
|
|
89
|
-
right: -3.5px;
|
|
90
|
-
display: grid;
|
|
91
|
-
place-items: center;
|
|
92
|
-
/* The chip's tracking would otherwise widen the disc off its 20px. */
|
|
93
|
-
letter-spacing: normal;
|
|
94
|
-
/* Figma only ever draws a single digit, as a fixed 20px disc. The padding is what lets a two- or
|
|
95
|
-
three-figure count grow leftwards out of the corner instead of spilling out of the circle. */
|
|
96
|
-
min-width: 20px;
|
|
97
|
-
height: 20px;
|
|
98
|
-
padding: 0 6px;
|
|
99
|
-
border-radius: ${s.radius.pill};
|
|
100
|
-
background: ${s.colors.brandViolet};
|
|
101
|
-
/**
|
|
102
|
-
* A ring, whose colour has to FOLLOW THE DISC rather than the page.
|
|
103
|
-
*
|
|
104
|
-
* The disc hangs off the corner: part of it sits on the chip, part on the page. Unselected it is violet
|
|
105
|
-
* on white, so it already reads and the white ring only separates it from the chip's grey hairline.
|
|
106
|
-
* Selected, the chip inverts it to white on violet — and a white disc against the white page has no edge
|
|
107
|
-
* at all along the half that overhangs, which is the state where the circle looked unfinished. That case
|
|
108
|
-
* needs the ring in the chip's accent instead (below), so the disc keeps a hard edge on both surfaces.
|
|
109
|
-
*
|
|
110
|
-
* box-shadow rather than a border: a border would grow the 20px disc the design fixes, while a spread
|
|
111
|
-
* shadow draws outside the box.
|
|
112
|
-
*/
|
|
113
|
-
box-shadow: 0 0 0 2px ${s.colors.white};
|
|
114
|
-
font-weight: 600;
|
|
115
|
-
font-size: 12px;
|
|
116
|
-
line-height: 1.6;
|
|
117
|
-
color: ${s.colors.white};
|
|
118
|
-
`,nt=l.div`
|
|
119
|
-
min-height: 60vh;
|
|
120
|
-
`,te=l.div`
|
|
121
|
-
display: flex;
|
|
122
|
-
flex-direction: column;
|
|
123
|
-
gap: 16px;
|
|
124
|
-
`,E=l.div`
|
|
125
|
-
background: ${s.colors.white};
|
|
126
|
-
border: 1px solid ${s.colors.line};
|
|
127
|
-
border-radius: 16px;
|
|
128
|
-
overflow: hidden;
|
|
129
|
-
`,T=l.div`
|
|
130
|
-
display: flex;
|
|
131
|
-
align-items: center;
|
|
132
|
-
justify-content: space-between;
|
|
133
|
-
gap: 12px;
|
|
134
|
-
padding: 14px 18px;
|
|
135
|
-
background: ${s.colors.softWhite};
|
|
136
|
-
border-bottom: 1px solid ${s.colors.line};
|
|
137
|
-
|
|
138
|
-
${s.media.maxWidth("mobile")} {
|
|
139
|
-
flex-wrap: wrap;
|
|
140
|
-
}
|
|
141
|
-
`,C=l.div`
|
|
142
|
-
display: flex;
|
|
143
|
-
flex-direction: column;
|
|
144
|
-
gap: 2px;
|
|
145
|
-
min-width: 0;
|
|
146
|
-
`,S=l.span`
|
|
147
|
-
font-weight: 700;
|
|
148
|
-
color: ${s.colors.text};
|
|
149
|
-
`,F=l.span`
|
|
150
|
-
font-size: 13px;
|
|
151
|
-
color: ${s.colors.muted};
|
|
152
|
-
`,D=l.div`
|
|
153
|
-
display: flex;
|
|
154
|
-
align-items: center;
|
|
155
|
-
gap: 14px;
|
|
156
|
-
/* Pin to the right regardless of how many elements sit on the left (the credit-purchase card adds a
|
|
157
|
-
leading thumbnail, giving the head three children instead of two). */
|
|
158
|
-
margin-left: auto;
|
|
159
|
-
`,rt=l.div`
|
|
160
|
-
flex: 0 0 auto;
|
|
161
|
-
width: 52px;
|
|
162
|
-
height: 52px;
|
|
163
|
-
border-radius: 10px;
|
|
164
|
-
background: ${s.colors.media};
|
|
165
|
-
display: flex;
|
|
166
|
-
align-items: center;
|
|
167
|
-
justify-content: center;
|
|
168
|
-
|
|
169
|
-
img {
|
|
170
|
-
width: 30px;
|
|
171
|
-
height: 30px;
|
|
172
|
-
display: block;
|
|
173
|
-
}
|
|
174
|
-
`,M=l.span`
|
|
175
|
-
font-size: 11px;
|
|
176
|
-
font-weight: 700;
|
|
177
|
-
text-transform: uppercase;
|
|
178
|
-
letter-spacing: 0.03em;
|
|
179
|
-
padding: 4px 10px;
|
|
180
|
-
border-radius: ${s.radius.pill};
|
|
181
|
-
white-space: nowrap;
|
|
182
|
-
|
|
183
|
-
&[data-status='SETTLED'] {
|
|
184
|
-
background: rgba(30, 166, 114, 0.14);
|
|
185
|
-
color: ${s.colors.okStrong};
|
|
186
|
-
}
|
|
187
|
-
&[data-status='PENDING'] {
|
|
188
|
-
background: rgba(245, 166, 35, 0.16);
|
|
189
|
-
color: #b5790a;
|
|
190
|
-
}
|
|
191
|
-
&[data-status='SOLD'] {
|
|
192
|
-
background: rgba(103, 58, 183, 0.14);
|
|
193
|
-
color: ${s.colors.accent};
|
|
194
|
-
}
|
|
195
|
-
&[data-status='FAILED'] {
|
|
196
|
-
background: rgba(214, 61, 61, 0.14);
|
|
197
|
-
color: #b02a2a;
|
|
198
|
-
}
|
|
199
|
-
/* Nobody paid and nobody is owed anything — deliberately the quietest of the four. Reusing PENDING's
|
|
200
|
-
amber here is what made an abandoned checkout look like money on its way. */
|
|
201
|
-
&[data-status='UNFINISHED'] {
|
|
202
|
-
background: ${s.colors.line};
|
|
203
|
-
color: ${s.colors.muted};
|
|
204
|
-
}
|
|
205
|
-
`,ot=l.button`
|
|
206
|
-
font-size: 11px;
|
|
207
|
-
font-weight: 700;
|
|
208
|
-
text-transform: uppercase;
|
|
209
|
-
letter-spacing: 0.03em;
|
|
210
|
-
padding: 4px 10px;
|
|
211
|
-
border-radius: ${s.radius.pill};
|
|
212
|
-
white-space: nowrap;
|
|
213
|
-
border: 1px solid ${s.colors.accent};
|
|
214
|
-
background: transparent;
|
|
215
|
-
color: ${s.colors.accent};
|
|
216
|
-
cursor: pointer;
|
|
217
|
-
transition: background 0.15s ease;
|
|
218
|
-
|
|
219
|
-
&:hover:not(:disabled) {
|
|
220
|
-
background: rgba(103, 58, 183, 0.08);
|
|
221
|
-
}
|
|
222
|
-
&:disabled {
|
|
223
|
-
opacity: 0.6;
|
|
224
|
-
cursor: default;
|
|
225
|
-
}
|
|
226
|
-
`,j=l.div`
|
|
227
|
-
display: flex;
|
|
228
|
-
align-items: center;
|
|
229
|
-
gap: 5px;
|
|
230
|
-
font-weight: 800;
|
|
231
|
-
color: ${s.colors.text};
|
|
232
|
-
white-space: nowrap;
|
|
233
|
-
|
|
234
|
-
.ccy-mark {
|
|
235
|
-
width: 16px;
|
|
236
|
-
height: 16px;
|
|
237
|
-
}
|
|
238
|
-
|
|
239
|
-
// Money received (a sale) reads as income in the shop's success green.
|
|
240
|
-
&[data-kind='income'] {
|
|
241
|
-
color: ${s.colors.okStrong};
|
|
242
|
-
}
|
|
243
|
-
`,ce=l.img`
|
|
244
|
-
width: 16px;
|
|
245
|
-
height: 16px;
|
|
246
|
-
vertical-align: -0.15em;
|
|
247
|
-
`,ct=l.span`
|
|
248
|
-
display: inline-flex;
|
|
249
|
-
align-items: center;
|
|
250
|
-
cursor: pointer;
|
|
251
|
-
`,dt=l.span`
|
|
252
|
-
position: fixed;
|
|
253
|
-
transform: translateX(-50%);
|
|
254
|
-
padding: 6px 8px;
|
|
255
|
-
border-radius: 6px;
|
|
256
|
-
background: #16141a;
|
|
257
|
-
color: ${s.colors.white};
|
|
258
|
-
font-size: 12px;
|
|
259
|
-
font-weight: 600;
|
|
260
|
-
line-height: 1;
|
|
261
|
-
white-space: nowrap;
|
|
262
|
-
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
|
|
263
|
-
pointer-events: none;
|
|
264
|
-
z-index: 9999;
|
|
265
|
-
`,W=l.div`
|
|
266
|
-
display: flex;
|
|
267
|
-
flex-direction: column;
|
|
268
|
-
`,H=l.div`
|
|
269
|
-
display: grid;
|
|
270
|
-
grid-template-columns: 52px 1fr auto;
|
|
271
|
-
align-items: center;
|
|
272
|
-
gap: 14px;
|
|
273
|
-
padding: 12px 18px;
|
|
274
|
-
text-decoration: none;
|
|
275
|
-
color: inherit;
|
|
276
|
-
|
|
277
|
-
& + & {
|
|
278
|
-
border-top: 1px solid ${s.colors.line};
|
|
279
|
-
}
|
|
280
|
-
|
|
281
|
-
&[data-link='true'] {
|
|
282
|
-
transition: background 0.15s;
|
|
283
|
-
}
|
|
284
|
-
&[data-link='true']:hover {
|
|
285
|
-
background: ${s.colors.media};
|
|
286
|
-
}
|
|
287
|
-
&[data-link='true']:focus-visible {
|
|
288
|
-
outline: 2px solid ${s.colors.accent};
|
|
289
|
-
outline-offset: -2px;
|
|
290
|
-
}
|
|
291
|
-
`,_=l.div`
|
|
292
|
-
width: 52px;
|
|
293
|
-
height: 52px;
|
|
294
|
-
border-radius: 10px;
|
|
295
|
-
background: ${s.colors.media};
|
|
296
|
-
overflow: hidden;
|
|
297
|
-
display: flex;
|
|
298
|
-
align-items: center;
|
|
299
|
-
justify-content: center;
|
|
300
|
-
color: ${s.colors.muted2};
|
|
301
|
-
|
|
302
|
-
img {
|
|
303
|
-
width: 100%;
|
|
304
|
-
height: 100%;
|
|
305
|
-
object-fit: contain;
|
|
306
|
-
}
|
|
307
|
-
`,B=l.div`
|
|
308
|
-
width: 52px;
|
|
309
|
-
height: 52px;
|
|
310
|
-
border-radius: 10px;
|
|
311
|
-
background: linear-gradient(100deg, ${s.colors.media} 30%, ${s.colors.panel} 50%, ${s.colors.media} 70%);
|
|
312
|
-
background-size: 200% 100%;
|
|
313
|
-
animation: ${R} 1.3s infinite linear;
|
|
314
|
-
|
|
315
|
-
@media (prefers-reduced-motion: reduce) {
|
|
316
|
-
animation: none;
|
|
317
|
-
}
|
|
318
|
-
`,G=l.div`
|
|
319
|
-
min-width: 0;
|
|
320
|
-
display: flex;
|
|
321
|
-
flex-direction: column;
|
|
322
|
-
gap: 2px;
|
|
323
|
-
`,U=l.span`
|
|
324
|
-
font-weight: 700;
|
|
325
|
-
white-space: nowrap;
|
|
326
|
-
overflow: hidden;
|
|
327
|
-
text-overflow: ellipsis;
|
|
328
|
-
`,K=l.span`
|
|
329
|
-
display: inline-block;
|
|
330
|
-
width: 140px;
|
|
331
|
-
max-width: 60%;
|
|
332
|
-
height: 12px;
|
|
333
|
-
border-radius: 6px;
|
|
334
|
-
background: linear-gradient(100deg, ${s.colors.media} 30%, ${s.colors.panel} 50%, ${s.colors.media} 70%);
|
|
335
|
-
background-size: 200% 100%;
|
|
336
|
-
animation: ${R} 1.3s infinite linear;
|
|
337
|
-
|
|
338
|
-
@media (prefers-reduced-motion: reduce) {
|
|
339
|
-
animation: none;
|
|
340
|
-
}
|
|
341
|
-
`,Q=l.span`
|
|
342
|
-
font-size: 13px;
|
|
343
|
-
color: ${s.colors.muted};
|
|
344
|
-
`,lt=l.div`
|
|
345
|
-
display: flex;
|
|
346
|
-
align-items: center;
|
|
347
|
-
gap: 4px;
|
|
348
|
-
font-weight: 700;
|
|
349
|
-
color: ${s.colors.text};
|
|
350
|
-
white-space: nowrap;
|
|
351
|
-
|
|
352
|
-
.ccy-mark {
|
|
353
|
-
width: 14px;
|
|
354
|
-
height: 14px;
|
|
355
|
-
}
|
|
356
|
-
`,ie=l.div`
|
|
357
|
-
height: 132px;
|
|
358
|
-
border-radius: 16px;
|
|
359
|
-
border: 1px solid transparent;
|
|
360
|
-
background: linear-gradient(100deg, ${s.colors.media} 30%, ${s.colors.panel} 50%, ${s.colors.media} 70%);
|
|
361
|
-
background-size: 200% 100%;
|
|
362
|
-
animation: ${R} 1.3s infinite linear;
|
|
363
|
-
|
|
364
|
-
@media (prefers-reduced-motion: reduce) {
|
|
365
|
-
animation: none;
|
|
366
|
-
}
|
|
367
|
-
`,de=l.div`
|
|
368
|
-
display: flex;
|
|
369
|
-
flex-direction: column;
|
|
370
|
-
align-items: center;
|
|
371
|
-
gap: 8px;
|
|
372
|
-
text-align: center;
|
|
373
|
-
padding: 90px 20px;
|
|
374
|
-
min-height: 50vh;
|
|
375
|
-
`,le=l.p`
|
|
376
|
-
font-size: 22px;
|
|
377
|
-
font-weight: 700;
|
|
378
|
-
margin: 6px 0 0;
|
|
379
|
-
`,ht=l(Ae)`
|
|
380
|
-
margin-top: 12px;
|
|
381
|
-
`,V=H.withComponent(se),ut=g.lazy(()=>Ne(()=>import("./index-D8Ax93UI.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14])).then(e=>({default:e.ImportListings}))),L=24,pt=["all","purchases","sales"],ae="migrate";function k(e){try{return new Date(e).toLocaleDateString(void 0,{year:"numeric",month:"short",day:"numeric"})}catch{return""}}function he(e){return e.length>10?`${e.slice(0,6)}…${e.slice(-4)}`:e}function ue(e){const a=Number(e)/1e18;return Number.isFinite(a)?a.toLocaleString("en",{maximumFractionDigits:2}):"0"}function pe({children:e}){const a=g.useRef(null),[n,i]=g.useState(null),r=()=>{var u;const c=(u=a.current)==null?void 0:u.getBoundingClientRect();c&&i({top:c.bottom+8,left:c.left+c.width/2})};return t.jsxs(ct,{ref:a,tabIndex:0,onMouseEnter:r,onMouseLeave:()=>i(null),onFocus:r,onBlur:()=>i(null),children:[e,n?He.createPortal(t.jsx(dt,{style:{top:n.top,left:n.left},role:"tooltip",children:d("activity.polygonMana")}),document.body):null]})}function xt({item:e}){const a=!!e.contractAddress&&!!e.itemId,n=!!e.tradeId||a,{data:i,isLoading:r}=I({queryKey:["order-line-display",e.tradeId,e.contractAddress,e.itemId],queryFn:()=>e.tradeId?De(e.tradeId):O(e.contractAddress,{itemId:e.itemId}),enabled:n,staleTime:5*6e4}),c=n&&r,u=(i==null?void 0:i.name)??d("activity.itemFallback"),o=(i==null?void 0:i.thumbnail)??"",x=z({contractAddress:i==null?void 0:i.contractAddress,tokenId:i==null?void 0:i.tokenId,itemId:i==null?void 0:i.itemId})??void 0,f=t.jsxs(t.Fragment,{children:[c?t.jsx(B,{}):t.jsx(_,{children:o?t.jsx("img",{src:o,alt:u}):t.jsx(A,{name:"cart",size:20})}),t.jsxs(G,{children:[c?t.jsx(K,{}):t.jsx(U,{title:u,children:u}),e.quantity>1?t.jsx(Q,{children:d("activity.quantity",{count:e.quantity})}):null]}),t.jsxs(lt,{children:[t.jsx(N,{className:"ccy-mark"})," ",e.credits]})]});return x?t.jsx(V,{to:x,"data-link":"true",children:f}):t.jsx(H,{children:f})}function mt({order:e}){const a=Be(e.lines),n=a.reduce((i,r)=>i+r.quantity,0);return t.jsxs(E,{"data-testid":"purchase-order",children:[t.jsxs(T,{children:[t.jsxs(C,{children:[t.jsx(S,{children:k(e.createdAt)}),t.jsxs(F,{children:[d("activity.purchaseLabel")," · ",d("activity.itemCount",{count:n})]})]}),t.jsxs(D,{children:[t.jsx(M,{"data-status":e.status,children:e.status==="PENDING"?d("activity.processing"):d("activity.completed")}),t.jsxs(j,{children:[t.jsx(N,{className:"ccy-mark"})," ",e.totalCredits]})]})]}),t.jsx(W,{children:a.map(i=>t.jsx(xt,{item:i},i.key))})]})}function gt({sale:e}){const{data:a,isLoading:n}=I({queryKey:["asset-display",e.contractAddress,e.tokenId,e.itemId],queryFn:()=>O(e.contractAddress,{tokenId:e.tokenId,itemId:e.itemId}),enabled:!!e.contractAddress,staleTime:3e5}),i=(a==null?void 0:a.name)??d("activity.itemFallback"),r=(a==null?void 0:a.thumbnail)??"",c=z({contractAddress:e.contractAddress,tokenId:e.tokenId,itemId:e.itemId})??void 0,u=t.jsxs(t.Fragment,{children:[n?t.jsx(B,{}):t.jsx(_,{children:r?t.jsx("img",{src:r,alt:i}):t.jsx(A,{name:"offer",size:20})}),t.jsxs(G,{children:[n?t.jsx(K,{}):t.jsx(U,{title:i,children:i}),t.jsx(Q,{children:d("activity.boughtFrom",{account:he(e.seller)})})]})]});return t.jsxs(E,{"data-testid":"activity-mana-purchase",children:[t.jsxs(T,{children:[t.jsxs(C,{children:[t.jsx(S,{children:k(e.createdAt)}),t.jsx(F,{children:d("activity.paidWithMana")})]}),t.jsxs(D,{children:[t.jsx(M,{"data-status":"SETTLED",children:d("activity.completed")}),t.jsxs(j,{children:[ue(e.manaWei)," ",t.jsx(pe,{children:t.jsx(ce,{src:ne,alt:"MANA"})})]})]})]}),t.jsx(W,{children:c?t.jsx(V,{to:c,"data-link":"true",children:u}):t.jsx(H,{children:u})})]})}function ft({sale:e,payout:a}){const{data:n,isLoading:i}=I({queryKey:["asset-display",e.contractAddress,e.tokenId,e.itemId],queryFn:()=>O(e.contractAddress,{tokenId:e.tokenId,itemId:e.itemId}),enabled:!!e.contractAddress,staleTime:3e5}),r=(n==null?void 0:n.name)??d("activity.itemFallback"),c=(n==null?void 0:n.thumbnail)??"",u=z({contractAddress:e.contractAddress,tokenId:e.tokenId,itemId:e.itemId})??void 0,o=t.jsxs(t.Fragment,{children:[i?t.jsx(B,{}):t.jsx(_,{children:c?t.jsx("img",{src:c,alt:r}):t.jsx(A,{name:"offer",size:20})}),t.jsxs(G,{children:[i?t.jsx(K,{}):t.jsx(U,{title:r,children:r}),t.jsxs(Q,{children:[d("activity.soldTo",{account:he(e.counterparty)}),a.kind==="pending"?` · ${d("activity.payoutPendingOn",{date:k(a.availableAt)})}`:""]})]})]});return t.jsxs(E,{"data-testid":"activity-sale",children:[t.jsxs(T,{children:[t.jsxs(C,{children:[t.jsx(S,{children:k(e.createdAt)}),t.jsx(F,{children:d("activity.saleLabel")})]}),t.jsxs(D,{children:[t.jsx(M,{"data-status":a.kind==="pending"?"PENDING":"SOLD",children:a.kind==="pending"?d("activity.payoutPending"):d("activity.sold")}),a.kind==="direct"?t.jsxs(j,{"data-kind":"income",children:["+",ue(e.manaWei)," ",t.jsx(pe,{children:t.jsx(ce,{src:ne,alt:"MANA"})})]}):a.credits!==null?t.jsxs(j,{"data-kind":"income",children:[t.jsx(N,{className:"ccy-mark"})," +",Ce(a.credits)]}):t.jsx(j,{"data-kind":"income",children:d("activity.payoutCredited")})]})]}),t.jsx(W,{children:u?t.jsx(V,{to:u,"data-link":"true",children:o}):t.jsx(H,{children:o})})]})}function bt({order:e}){const a=`$${(e.usdCents/100).toFixed(2)}`,n=Ee(e.status),i=n==="SETTLED"?d("activity.completed"):n==="FAILED"?d("activity.failed"):n==="UNFINISHED"?d("activity.unfinished"):d("activity.processing"),r=q(p=>p.session),c=Te(),[u,o]=g.useState(!1),x=e.status==="initiated"&&!!r;async function f(){if(!(!r||u)){o(!0);try{const p=await Se(e.id,r.identity);if(p){window.location.href=p;return}Fe.info(d("activity.resumeExpired")),c.invalidateQueries({queryKey:["credit-orders"]})}finally{o(!1)}}}return t.jsx(E,{"data-testid":"credit-order",children:t.jsxs(T,{children:[t.jsx(rt,{children:t.jsx("img",{src:Je,alt:"","aria-hidden":!0})}),t.jsxs(C,{children:[t.jsx(S,{children:k(e.createdAt)}),t.jsxs(F,{children:[d("activity.creditPurchaseLabel")," · ",d("activity.creditPaid",{usd:a})]})]}),t.jsxs(D,{children:[x?t.jsx(ot,{type:"button",onClick:()=>void f(),disabled:u,"data-testid":"resume-order",children:u?d("activity.resuming"):d("activity.resume")}):null,t.jsx(M,{"data-status":n,children:i}),t.jsxs(j,{"data-kind":"income",children:["+",t.jsx(N,{className:"ccy-mark"})," ",e.credits]})]})]})})}function yt({filter:e}){const a={all:{icon:"clock",title:d("activity.emptyAllTitle"),body:d("activity.emptyAllBody")},purchases:{icon:"cart",title:d("activity.emptyPurchasesTitle"),body:d("activity.emptyPurchasesBody")},sales:{icon:"offer",title:d("activity.emptySalesTitle"),body:d("activity.emptySalesBody")}}[e];return t.jsxs(de,{children:[t.jsx(A,{name:a.icon,size:40,color:s.colors.muted2}),t.jsx(le,{children:a.title}),t.jsx("p",{className:"muted",children:a.body}),e!=="sales"?t.jsx(ht,{as:se,to:"/items",variant:"purple",children:d("notFound.cta")}):null]})}function St(){const{session:e}=q(),[a,n]=g.useState("all"),[i,r]=Me(),c=i.get("view")===ae;$e({title:c?d("seo.import.title"):d("nav.activity"),noindex:!0});const{count:u}=qe(),{count:o}=Ze(),f=u!==void 0&&o!==void 0&&(u>0||o>0||c),p=!!e&&!c&&a!=="sales",m=!!e&&!c&&a!=="purchases",b=P(["purchases",e==null?void 0:e.address],h=>Le(e.address,e.identity,{first:L,skip:h}),{enabled:p}),y=P(["sales",e==null?void 0:e.address],h=>Y(e.address,{role:"seller",first:L,skip:h}),{enabled:m}),v=P(["credit-orders",e==null?void 0:e.address],h=>ee(e.address,e.identity,{first:L,skip:h}),{enabled:p}),w=P(["mana-purchases",e==null?void 0:e.address],h=>Y(e.address,{role:"buyer",first:L,skip:h}),{enabled:p}),{data:X}=I({queryKey:["sale-payouts",e==null?void 0:e.address],queryFn:()=>ee(e.address,e.identity,{first:200}).then(h=>h.payouts),enabled:m,staleTime:6e4}),xe=g.useMemo(()=>Qe(X),[X]),{data:me}=Pe(m);if(!e)return t.jsxs(de,{children:[t.jsx(A,{name:"clock",size:40,color:s.colors.muted2}),t.jsx(le,{children:d("activity.signInTitle")}),t.jsx("p",{className:"muted",children:d("activity.signInBody")})]});const Z=Ke(Ue({purchases:p?b.items:[],sales:m?y.items:[],creditOrders:p?v.items:[],manaPurchases:p?w.items:[],rate:me}),a),ge=p&&(b.isLoading||v.isLoading||w.isLoading)||m&&y.isLoading,J=p&&(b.isFetchingNextPage||v.isFetchingNextPage||w.isFetchingNextPage)||m&&y.isFetchingNextPage,fe=p&&(b.hasNextPage||v.hasNextPage||w.hasNextPage)||m&&y.hasNextPage;function be(){p&&b.hasNextPage&&b.fetchNextPage(),p&&v.hasNextPage&&v.fetchNextPage(),p&&w.hasNextPage&&w.fetchNextPage(),m&&y.hasNextPage&&y.fetchNextPage()}function ye(h){if(n(h),!c)return;const $=new URLSearchParams(i);$.delete("view"),r($,{replace:!0})}function ve(){const h=new URLSearchParams(i);h.set("view",ae),r(h,{replace:!0})}return t.jsxs(Ye,{children:[t.jsx(et,{children:t.jsx(tt,{children:d("nav.activity")})}),t.jsxs(it,{role:"tablist","aria-label":d("nav.activity"),children:[pt.map(h=>t.jsx(oe,{type:"button",role:"tab","aria-selected":!c&&a===h,"data-active":!c&&a===h,"data-testid":`activity-filter-${h}`,onClick:()=>ye(h),children:d(`activity.filter.${h}`)},h)),f?t.jsxs(at,{type:"button",role:"tab","aria-selected":c,"data-active":c,"data-testid":"activity-filter-migrate","aria-label":u?d("activity.migrate.chipAria",{count:u}):void 0,onClick:ve,children:[d("activity.migrate.chip"),u?t.jsx(st,{"data-testid":"activity-migrate-count","aria-hidden":!0,children:u}):null]}):null]}),c?t.jsx(g.Suspense,{fallback:t.jsx(nt,{"aria-busy":"true"}),children:t.jsx(ut,{})}):ge?t.jsx(te,{children:Array.from({length:5}).map((h,$)=>t.jsx(ie,{},$))}):Z.length===0?t.jsx(yt,{filter:a}):t.jsxs(t.Fragment,{children:[t.jsxs(te,{children:[Z.map(h=>h.kind==="purchase"?t.jsx(mt,{order:h.order},h.id):h.kind==="credit"?t.jsx(bt,{order:h.order},h.id):h.kind==="mana-purchase"?t.jsx(gt,{sale:h.sale},h.id):t.jsx(ft,{sale:h.sale,payout:Ve(xe,h.sale)},h.id)),J?t.jsx(ie,{}):null]}),t.jsx(ze,{hasNextPage:fe,isFetching:J,onLoadMore:be})]})]})}export{St as Activity};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["_assets/index-COtDNaHu.js","_assets/react-BYHuwl8r.js","_assets/dcl-schemas-CmtP3U6y.js","_assets/index-B0RmgR_d.js","_assets/sentry-Dx-KuLV3.js","_assets/ethers-BDpbhgX6.js","_assets/intl-CBcMB1D2.js","_assets/index-D-NhBWWr.css","_assets/createSvgIcon-NvyKnNvS.js","_assets/clsx-WwvpwSg0.js","_assets/styled-DhdWG9IN.js","_assets/emotion-styled.browser.esm-QfXC-KV3.js","_assets/CircularProgress-Dd_9a3Fi.js","_assets/index-CQE18d4g.js","_assets/useTheme-Mu9eB-qd.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{_ as e}from"./index-B0RmgR_d.js";import{j as t,r as s}from"./react-BYHuwl8r.js";const _=s.lazy(async()=>{const[{EmoteControls:o},{Experimental_CssVarsProvider:i},{light:n}]=await Promise.all([e(()=>import("./index-COtDNaHu.js").then(r=>r.i),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12])),e(()=>import("./index-CQE18d4g.js"),__vite__mapDeps([13,3,1,2,4,5,6,7,14,10])),e(()=>import("./index-B0RmgR_d.js").then(r=>r.d4),__vite__mapDeps([3,1,2,4,5,6,7]))]);return{default:r=>t.jsx(i,{theme:n,children:t.jsx(o,{...r})})}});function m(o){return t.jsx(s.Suspense,{fallback:null,children:t.jsx(_,{...o})})}export{m as E};
|