@dcl/shop 1.3.1-31265310354.commit-956da0c → 1.4.1-31266238394.commit-a0e60bc
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-hzsPL_Gp.js +378 -0
- package/_assets/{AnimatedBackground-DSouTqku.js → AnimatedBackground-DiBuVRpc.js} +1 -1
- package/_assets/{Assets-D4bMZJ4g.js → Assets-DKlagQb5.js} +5 -5
- package/_assets/{Assets.styles-DPP31Gz2.js → Assets.styles-DXG35ABs.js} +1 -1
- package/_assets/{Authorizations-BK-sLGu3.js → Authorizations-C_JqtyO9.js} +1 -1
- package/_assets/{Cart-BCuPzY24.js → Cart-EeQpLcXN.js} +1 -1
- package/_assets/{CircularProgress-COAk6IS8.js → CircularProgress-x4jjsxdi.js} +1 -1
- package/_assets/{Collection-BQ_XrXNT.js → Collection-v48YXIOR.js} +1 -1
- package/_assets/{CollectionCarousel-C5pKy34p.js → CollectionCarousel-DuRUEGV6.js} +2 -2
- package/_assets/{Confetti-BwN0BPtl.js → Confetti-D7MIojs6.js} +1 -1
- package/_assets/{Creator-Bs8gMMB5.js → Creator-99Nne2D0.js} +1 -1
- package/_assets/{ErrorNotice-DYg_Qafk.js → ErrorNotice-D5R68bme.js} +1 -1
- package/_assets/{ExchangeController-BXjoH84D.js → ExchangeController-DFp6Xwpv.js} +1 -1
- package/_assets/{Faq-C9CUiEnq.js → Faq-Bd-xf5Wh.js} +1 -1
- package/_assets/{GetCredits-SfZjQiQI.js → GetCredits-BHTYxxo0.js} +1 -1
- package/_assets/{Grow-ozdBmb65.js → Grow-CXpl2gPy.js} +1 -1
- package/_assets/{HelpersUtil-BTU-5DLe.js → HelpersUtil-msI7Xr7G.js} +1 -1
- package/_assets/{ItemDetail-Cz0OKtgh.js → ItemDetail-CiUqGMTc.js} +1 -1
- package/_assets/LazyEmoteControls-CNZRykYG.js +2 -0
- package/_assets/{LoadMore-BvalOV8u.js → LoadMore-D1idMOBk.js} +1 -1
- package/_assets/{ManaPricingBanner.styles-R99YPaPz.js → ManaPricingBanner.styles-Cwy3S4Or.js} +1 -1
- package/_assets/{MyAssets-D9ZDIEZS.js → MyAssets-D_cDzSi0.js} +2 -2
- package/_assets/{MyFavorites-DnOJbnBV.js → MyFavorites-DfCSJlso.js} +1 -1
- package/_assets/{NotFound-B98cm97V.js → NotFound-CV8woBzC.js} +1 -1
- package/_assets/{NotificationsBell-C2BtBEpi.js → NotificationsBell-C1iZDzMn.js} +1 -1
- package/_assets/{OutfitDetail-D1eyJ4Gq.js → OutfitDetail-8JN0ikyE.js} +1 -1
- package/_assets/{OutfitPreview-w7zWwG_X.js → OutfitPreview-BPfU23Cm.js} +1 -1
- package/_assets/{OutfitStudio-KL81BeVV.js → OutfitStudio-CPOPrVc_.js} +1 -1
- package/_assets/{StoreSettings-_pYHdxul.js → StoreSettings-CBkQCaIc.js} +1 -1
- package/_assets/{Success-BeWEtiVf.js → Success-n3P0qegU.js} +1 -1
- package/_assets/{SwapController-3RD_Qz37.js → SwapController-Dq75HcDF.js} +1 -1
- package/_assets/{Tooltip-n2pVzrup.js → Tooltip-bmfkohhV.js} +1 -1
- package/_assets/{TradeService-DxoW1Eoz.js → TradeService-BsKtOOt6.js} +1 -1
- package/_assets/{W3MFrameProviderSingleton-BUp-m7tD.js → W3MFrameProviderSingleton-B6RSiZOW.js} +3 -3
- package/_assets/{WebCryptoP256-szWTg3SF.js → WebCryptoP256-Df1u2RSg.js} +1 -1
- package/_assets/{authorizations-ePFuW43o.js → authorizations-DJB6HUQg.js} +1 -1
- package/_assets/{basic-BLrSiegf.js → basic-DXGeR3DD.js} +1 -1
- package/_assets/{biconomy-CNNyNzpU.js → biconomy-CyWQJ-RD.js} +1 -1
- package/_assets/{builder-DlEhW4Me.js → builder-DIDAeNmr.js} +1 -1
- package/_assets/{buy-CpdPpI4K.js → buy-DtexNEYU.js} +1 -1
- package/_assets/{buy-gasless-BhY0LcKS.js → buy-gasless-BDwLdwrc.js} +1 -1
- package/_assets/{categories-DflNwXTI.js → categories-Ba8H7cGL.js} +1 -1
- package/_assets/{ccip-CaUm3WlZ.js → ccip-CH-gIi6s.js} +1 -1
- package/_assets/{ccip-DdgJRTaS.js → ccip-De0Lesmf.js} +1 -1
- package/_assets/{collectionPage.styles-DKzbYKLa.js → collectionPage.styles-siWSB4Eb.js} +4 -4
- package/_assets/{controller-BRNlf2V9.js → controller-DmSgM-23.js} +2 -2
- package/_assets/{core-bpT8TLuc.js → core-B5sMsLiQ.js} +4 -4
- package/_assets/{createSvgIcon-ConaAgJH.js → createSvgIcon-D5pgqkga.js} +1 -1
- package/_assets/{custom-BVWaPkfI.js → custom-DEGyPM7Y.js} +1 -1
- package/_assets/{data-capture-f4avhsnb.js → data-capture-CyXQy1BW.js} +1 -1
- package/_assets/{email-CJZxRgG7.js → email-WDixGqg1.js} +1 -1
- package/_assets/{embedded-wallet-BAW_1hxO.js → embedded-wallet-BQ_ikpNu.js} +1 -1
- package/_assets/{emotion-styled.browser.esm-CE8VcmPz.js → emotion-styled.browser.esm-BHiMXo5h.js} +1 -1
- package/_assets/{engine-A6uFTRvp.js → engine-DtB0u7WQ.js} +1 -1
- package/_assets/{errors-Bd7_T7hu.js → errors-YAaH0TO4.js} +1 -1
- package/_assets/{estimate-l1-fee-DJsU4isU.js → estimate-l1-fee-B90iKmNC.js} +1 -1
- package/_assets/{execute-iCBrUbuD.js → execute-C--8tFJ5.js} +2 -2
- package/_assets/{features-BGFOh_C8.js → features-CpSDqsjo.js} +1 -1
- package/_assets/{fetchTokenMetadata-CmaILqSG.js → fetchTokenMetadata-C2yCOZuu.js} +2 -2
- package/_assets/{field.styles-sgNH23Vj.js → field.styles-CAt9lAq7.js} +1 -1
- package/_assets/{get-ecosystem-wallet-info-D99b6NAl.js → get-ecosystem-wallet-info-Db5HPTDO.js} +1 -1
- package/_assets/{getBalance-Baj92Zp6.js → getBalance-CcCU-oKT.js} +1 -1
- package/_assets/{getNFT-88F9JHdJ.js → getNFT-BARFVx5_.js} +1 -1
- package/_assets/{getNFT-obP0aa7R.js → getNFT-CyZcLdxf.js} +1 -1
- package/_assets/{grid.styles-BnZCPy0a.js → grid.styles-DXfTE6hs.js} +1 -1
- package/_assets/{hashTypedData-DXbFmOLq.js → hashTypedData-D4VYdw86.js} +1 -1
- package/_assets/{hashTypedData-MdO8A5kl.js → hashTypedData-DuClW93N.js} +1 -1
- package/_assets/{in-app-q3qbAPRX.js → in-app-D-wUGjl5.js} +1 -1
- package/_assets/{in-app-wallet-calls-CVKYfp12.js → in-app-wallet-calls-DI1rYLxE.js} +1 -1
- package/_assets/{index-7mH5fq7h.js → index--ZsbgnF5.js} +2 -2
- package/_assets/{index-lpsBywfF.js → index-0lCD8CR4.js} +1 -1
- package/_assets/{index-BKzIINhv.js → index-4IatMA-E.js} +1 -1
- package/_assets/{index-Bgf1Utvp.js → index-6PMwi4Jh.js} +2 -2
- package/_assets/{index-Bng0_sEJ.js → index-7Dj_ELw-.js} +1 -1
- package/_assets/{index-BO1ZfqKC.js → index-B0jfBDuy.js} +2 -2
- package/_assets/{index-JR1rMQrf.js → index-BAnnfhZ9.js} +1 -1
- package/_assets/{index-BfBKaxKM.js → index-BBzfQlWN.js} +1 -1
- package/_assets/{index-XmYde0Bn.js → index-BSVUrTnS.js} +1 -1
- package/_assets/{index-_PDBJq65.js → index-BhubgwTW.js} +11 -11
- package/_assets/{index-BzFhYt9R.js → index-BlyY-Z76.js} +1 -1
- package/_assets/{index-CRcoTLiD.js → index-BuPj7rqq.js} +1 -1
- package/_assets/{index-DQrqc2g2.js → index-BuTNJrSO.js} +1 -1
- package/_assets/{index-CWwJpE4i.js → index-C6Ro0k-R.js} +1 -1
- package/_assets/{index-ZBfkhu95.js → index-C7kblF-_.js} +1 -1
- package/_assets/{index-BCwopMhY.js → index-CFVLT6Th.js} +1 -1
- package/_assets/{index-CouO1fhB.js → index-CTNEepP9.js} +1 -1
- package/_assets/{index-DFXlCRsX.js → index-CW-L1pHM.js} +1 -1
- package/_assets/{index-CM6Exvl1.js → index-CedQwggc.js} +1 -1
- package/_assets/{index-BTa_EnqN.js → index-Cky1xzrA.js} +1 -1
- package/_assets/{index-Ck3lQAUW.js → index-CswTcsF7.js} +1 -1
- package/_assets/{index-l84ilHKq.js → index-CuPeGdzb.js} +1 -1
- package/_assets/{index-PopQw7qE.js → index-D-CIfICM.js} +1 -1
- package/_assets/{index-BwiE22-S.js → index-D47QY770.js} +3 -3
- package/_assets/{index-D_bmolaM.js → index-D4KsNtyO.js} +1 -1
- package/_assets/{index-uZF3rQ8M.js → index-D7fX5eto.js} +1 -1
- package/_assets/{index-fturSYym.js → index-D9LYTUVm.js} +1 -1
- package/_assets/{index-DIO2PsKY.js → index-DAbXOY_m.js} +1 -1
- package/_assets/{index-DqAGWK3O.js → index-DLktMp0x.js} +1 -1
- package/_assets/{index-CjL5IZVg.js → index-DVVrjX4D.js} +1 -1
- package/_assets/{index-Cm0LAbZ0.js → index-DXJ6tqor.js} +1 -1
- package/_assets/{index-MxA8f9Bw.js → index-DXw1lEzK.js} +1 -1
- package/_assets/{index-CwG7icYu.js → index-DZje5HG_.js} +1 -1
- package/_assets/{index-wHex4wTv.js → index-DfJnqOGD.js} +1 -1
- package/_assets/{index-C0pX2NcJ.js → index-DiIW2gbp.js} +1 -1
- package/_assets/{index-E8g0tX9F.js → index-DihqQVT9.js} +1 -1
- package/_assets/{index-BlptMAjd.js → index-DkIKmWvv.js} +1 -1
- package/_assets/{index-CEjFo4Qh.js → index-DlsG3U7x.js} +1 -1
- package/_assets/{index-BZPQgSTy.js → index-Drce6qkC.js} +1 -1
- package/_assets/{index-ClKj7Y1E.js → index-Dz4qdcIX.js} +1 -1
- package/_assets/{index-EwTZLBI-.js → index-Jix0g6H5.js} +1 -1
- package/_assets/{index-J2svmBYf.js → index-KDyCYGMs.js} +1 -1
- package/_assets/{index-CgTDC-E-.js → index-PsA-bzFu.js} +1 -1
- package/_assets/{index-Cm3hA5Zd.js → index-QQM41zeb.js} +1 -1
- package/_assets/{index-Bu84Aqm6.js → index-UMAKgako.js} +3 -3
- package/_assets/{index-Bj6EoIPO.js → index-V_p5N-mg.js} +1 -1
- package/_assets/{index-DwlccAkU.js → index-bjc9bzvp.js} +1 -1
- package/_assets/{index-D0tiF6zD.js → index-ee0kfGsB.js} +3 -3
- package/_assets/{index-DpeajFiE.js → index-je1g2W_L.js} +1 -1
- package/_assets/{index-BQhnaAuj.js → index-oS_nJt-Z.js} +1 -1
- package/_assets/{index-nd6HIGWA.js → index-ojVyjnRL.js} +1 -1
- package/_assets/{index-B36exZWN.js → index-wDAkA5je.js} +1 -1
- package/_assets/{index.es-CVENUfKP.js → index.es-C0X2dKUD.js} +4 -4
- package/_assets/{index.es-CYzKaQrb.js → index.es-KsJGBBtb.js} +1 -1
- package/_assets/{index.es-CvDFSbM-.js → index.es-g9vamF8y.js} +1 -1
- package/_assets/{localBatchGatewayRequest-BsISEHs5.js → localBatchGatewayRequest-C_ASM4ud.js} +1 -1
- package/_assets/{networks-BfnLnuzN.js → networks-CVdFqo9x.js} +1 -1
- package/_assets/{onramp-DaAE8Y3X.js → onramp-DsyhgtRd.js} +1 -1
- package/_assets/{openzeppelin-DaEnywVt.js → openzeppelin-DsVkHUxr.js} +1 -1
- package/_assets/{parseNft-C3PA6Ey6.js → parseNft-BkpRCC2A.js} +2 -2
- package/_assets/{parseSignature-CAMGIQ0y.js → parseSignature-Dyf-UsvN.js} +1 -1
- package/_assets/{parseSignature-Cx4O45x-.js → parseSignature-z0H81XFE.js} +3 -3
- package/_assets/{passkeys-BOKL47nn.js → passkeys-LYxC-eSn.js} +1 -1
- package/_assets/{pay-with-exchange-BPDo6wL3.js → pay-with-exchange-ZfDfCdzk.js} +1 -1
- package/_assets/{qr-overlay-w9N5SDnx.js → qr-overlay-CJr4Pd7U.js} +1 -1
- package/_assets/{receive-TG8uUZ5o.js → receive-BrnOcp8V.js} +1 -1
- package/_assets/{resolveImplementation-BH2aZvHA.js → resolveImplementation-ZpoEOB7P.js} +1 -1
- package/_assets/{rpc-BjmyffdU.js → rpc-Bl2zkec-.js} +1 -1
- package/_assets/{secp256k1-DBEi9moT.js → secp256k1-BHc6rmAD.js} +1 -1
- package/_assets/{secp256k1-CZPc9K-U.js → secp256k1-C_2J87hg.js} +1 -1
- package/_assets/{secp256k1-Cz5_7ver.js → secp256k1-DcFE7cDn.js} +1 -1
- package/_assets/{send-DQYg1DOq.js → send-C1Lcir9Y.js} +1 -1
- package/_assets/{send-batch-transaction-Ddvhwhfc.js → send-batch-transaction-BSIvVxP8.js} +1 -1
- package/_assets/{send-eip712-transaction-B-XI2C9G.js → send-eip712-transaction-DeWOkFpF.js} +2 -2
- package/_assets/{send-gasless-transaction-RwP5eC-5.js → send-gasless-transaction-CyxH01Wg.js} +2 -2
- package/_assets/{send-transaction-DRzLCyPI.js → send-transaction-D1ksL04O.js} +2 -2
- package/_assets/{sendMetaTransaction-BAvU9UWc.js → sendMetaTransaction-BCKOLqk-.js} +1 -1
- package/_assets/{sendRawTransaction-CXcBVkFg.js → sendRawTransaction-DwSdCxte.js} +3 -3
- package/_assets/{serializeTransaction-CgwlrBJW.js → serializeTransaction-BXZlHRuN.js} +1 -1
- package/_assets/{session-proposal-BgOA82d2.js → session-proposal-o5iMqfr2.js} +1 -1
- package/_assets/{session-request-C48PejX_.js → session-request-CB3s0FlH.js} +2 -2
- package/_assets/{signing-BPxVjbYU.js → signing-CQxgyea2.js} +3 -3
- package/_assets/{skeleton.styles-BJ-uucnw.js → skeleton.styles-Dx9whYpy.js} +1 -1
- package/_assets/{socials-KKll6Pgo.js → socials-DaOJUZjJ.js} +1 -1
- package/_assets/{styled-COr5xbAX.js → styled-BQM4cEM7.js} +1 -1
- package/_assets/{swaps-CS93Ofka.js → swaps-XznOSe_8.js} +1 -1
- package/_assets/{thirdweb-NnpJV7mN.js → thirdweb-BZU_FPD7.js} +3 -3
- package/_assets/{to-serializable-transaction-DZKagbx2.js → to-serializable-transaction-B7-nYbbD.js} +2 -2
- package/_assets/{transactionReceipt-xY8cyMOu.js → transactionReceipt-jKXXS2yo.js} +1 -1
- package/_assets/{transactions-jgPdfgaF.js → transactions-CuzADK7K.js} +1 -1
- package/_assets/{useCreditPacks-Da3Rrx1K.js → useCreditPacks-CZG5Fb9r.js} +1 -1
- package/_assets/{useImportable-ybPECUIy.js → useImportable-b3fcsMNW.js} +1 -1
- package/_assets/{useInfiniteGrid-BqLVJzZa.js → useInfiniteGrid-DB_NunMi.js} +1 -1
- package/_assets/{useStore-CZPBkjq3.js → useStore-B7FM5w2i.js} +1 -1
- package/_assets/{useTheme-B39CldvB.js → useTheme-HWr4rXj4.js} +1 -1
- package/_assets/{verifyHash-BOtK4wc-.js → verifyHash-COxBEuAR.js} +1 -1
- package/_assets/{w3m-modal-5X1Mt3iQ.js → w3m-modal-DatsPqDZ.js} +1 -1
- package/_assets/{w3m-modal-DIwqIq0y.js → w3m-modal-qy8F83rD.js} +1 -1
- package/_assets/{wait-for-tx-receipt-BNfkxR0d.js → wait-for-tx-receipt-COenxAsi.js} +1 -1
- package/_assets/{wallets-BVmac-5n.js → wallets-C-ZXsxu3.js} +5 -5
- package/_assets/{web-connector-BlU316JZ.js → web-connector-BNuEBarY.js} +3 -3
- package/_assets/{writeContract-BnkwxkTt.js → writeContract-By-_a0Le.js} +1 -1
- package/_assets/{zoraTestnet-DhhMEXFh.js → zoraTestnet-D-zvpU3L.js} +1 -1
- package/index.html +11 -11
- package/package.json +2 -2
- package/_assets/Activity-S5IIx7Ca.js +0 -378
- package/_assets/LazyEmoteControls-Cp04_rlq.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/1.
|
|
20
|
-
<link rel="apple-touch-icon" sizes="180x180" href="https://cdn.decentraland.org/@dcl/shop/1.
|
|
19
|
+
<link rel="icon" type="image/x-icon" href="https://cdn.decentraland.org/@dcl/shop/1.4.1-31266238394.commit-a0e60bc/favicon.ico" sizes="16x16 32x32 48x48" />
|
|
20
|
+
<link rel="apple-touch-icon" sizes="180x180" href="https://cdn.decentraland.org/@dcl/shop/1.4.1-31266238394.commit-a0e60bc/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/1.
|
|
22
|
+
<link rel="manifest" href="https://cdn.decentraland.org/@dcl/shop/1.4.1-31266238394.commit-a0e60bc/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/1.
|
|
61
|
+
<link rel="sitemap" type="application/xml" title="Sitemap" href="https://cdn.decentraland.org/@dcl/shop/1.4.1-31266238394.commit-a0e60bc/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/1.
|
|
74
|
-
<link rel="modulepreload" crossorigin href="https://cdn.decentraland.org/@dcl/shop/1.
|
|
75
|
-
<link rel="modulepreload" crossorigin href="https://cdn.decentraland.org/@dcl/shop/1.
|
|
76
|
-
<link rel="modulepreload" crossorigin href="https://cdn.decentraland.org/@dcl/shop/1.
|
|
77
|
-
<link rel="modulepreload" crossorigin href="https://cdn.decentraland.org/@dcl/shop/1.
|
|
78
|
-
<link rel="modulepreload" crossorigin href="https://cdn.decentraland.org/@dcl/shop/1.
|
|
79
|
-
<link rel="stylesheet" crossorigin href="https://cdn.decentraland.org/@dcl/shop/1.
|
|
73
|
+
<script type="module" crossorigin src="https://cdn.decentraland.org/@dcl/shop/1.4.1-31266238394.commit-a0e60bc/_assets/index-BhubgwTW.js"></script>
|
|
74
|
+
<link rel="modulepreload" crossorigin href="https://cdn.decentraland.org/@dcl/shop/1.4.1-31266238394.commit-a0e60bc/_assets/react-BYHuwl8r.js">
|
|
75
|
+
<link rel="modulepreload" crossorigin href="https://cdn.decentraland.org/@dcl/shop/1.4.1-31266238394.commit-a0e60bc/_assets/dcl-schemas-CmtP3U6y.js">
|
|
76
|
+
<link rel="modulepreload" crossorigin href="https://cdn.decentraland.org/@dcl/shop/1.4.1-31266238394.commit-a0e60bc/_assets/sentry-Dx-KuLV3.js">
|
|
77
|
+
<link rel="modulepreload" crossorigin href="https://cdn.decentraland.org/@dcl/shop/1.4.1-31266238394.commit-a0e60bc/_assets/ethers-BDpbhgX6.js">
|
|
78
|
+
<link rel="modulepreload" crossorigin href="https://cdn.decentraland.org/@dcl/shop/1.4.1-31266238394.commit-a0e60bc/_assets/intl-CBcMB1D2.js">
|
|
79
|
+
<link rel="stylesheet" crossorigin href="https://cdn.decentraland.org/@dcl/shop/1.4.1-31266238394.commit-a0e60bc/_assets/index-l2QjlKjX.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": "1.
|
|
3
|
+
"version": "1.4.1-31266238394.commit-a0e60bc",
|
|
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": "a0e60bc87686640d95008e9294917eacf005019a"
|
|
12
12
|
}
|
|
@@ -1,378 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["_assets/index-DpeajFiE.js","_assets/react-BYHuwl8r.js","_assets/index-_PDBJq65.js","_assets/dcl-schemas-CmtP3U6y.js","_assets/sentry-Dx-KuLV3.js","_assets/ethers-BDpbhgX6.js","_assets/intl-CBcMB1D2.js","_assets/index-l2QjlKjX.css","_assets/useImportable-ybPECUIy.js","_assets/buy-CpdPpI4K.js","_assets/authorizations-ePFuW43o.js","_assets/sendMetaTransaction-BAvU9UWc.js","_assets/ManaPricingBanner.styles-R99YPaPz.js","_assets/Faq-C9CUiEnq.js","_assets/field.styles-sgNH23Vj.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{q as At,bF as Et,v as O,l as A,bG as $t,t as n,s as l,x as Lt,B as Pt,y as Nt,b as r,an as Tt,I as E,bH as it,bI as st,bJ as St,_ as Ft,A as N,bK as Ct,D as Dt,aF as W,L as Mt,bL as Ht,F as $,bM as qt,bN as _}from"./index-_PDBJq65.js";import{r as g,u as zt,j as e,L as ot,e as Rt}from"./react-BYHuwl8r.js";import{u as Ot}from"./useImportable-ybPECUIy.js";import{L as Wt}from"./LoadMore-BvalOV8u.js";import{u as L}from"./useInfiniteGrid-BqLVJzZa.js";import{m as dt}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-CpdPpI4K.js";import"./authorizations-ePFuW43o.js";import"./sendMetaTransaction-BAvU9UWc.js";const _t=15e3;function Gt(t,s){return t.txHash&&s.txHash?t.txHash===s.txHash:t.txHash||s.txHash?!1:t.status===s.status&&Math.abs(t.createdAt-s.createdAt)<=_t}function Ut(t){const s=[...t].sort((i,d)=>d.createdAt-i.createdAt),a=[];for(const i of s){const d=a[a.length-1];d&&Gt(d[d.length-1],i)?d.push(i):a.push([i])}return a.map(i=>{var d;return{id:((d=i.find(o=>o.txHash))==null?void 0:d.txHash)??i[i.length-1].id,createdAt:Math.max(...i.map(o=>o.createdAt)),status:Bt(i),totalCredits:i.reduce((o,h)=>o+h.credits,0),lines:i}})}function Bt(t){return t.some(s=>s.status==="PENDING")?"PENDING":t.some(s=>s.status==="SETTLED")?"SETTLED":"EXPIRED"}function Kt(t){return t==="SETTLED"?"SETTLED":t==="EXPIRED"?"FAILED":"PENDING"}function Qt(t){return t.tradeId?`trade:${t.tradeId}`:t.contractAddress&&t.itemId?`item:${t.contractAddress.toLowerCase()}:${t.itemId}`:null}function Xt(t){const s=[],a=new Map;for(const i of t){const d=Qt(i);if(!d){s.push({key:i.id,tradeId:null,contractAddress:i.contractAddress??null,itemId:i.itemId??null,quantity:1,credits:i.credits});continue}const o=a.get(d);if(o){o.quantity+=1,o.credits+=i.credits;continue}const h={key:d,tradeId:i.tradeId,contractAddress:i.contractAddress??null,itemId:i.itemId??null,quantity:1,credits:i.credits};a.set(d,h),s.push(h)}return s}function Vt(t,s){return{id:t.id,contractAddress:t.contractAddress,tokenId:t.tokenId,itemId:t.itemId,counterparty:t.buyer,credits:s?At(t.manaWei,s):null,manaWei:t.manaWei,createdAt:t.createdAt,txHash:t.txHash}}function Yt(t){return t.status!=="EXPIRED"||!!t.submittedTxHash}function Jt(t){const a=Ut(t.purchases.filter(Yt)).map(c=>({kind:"purchase",id:`purchase:${c.id}`,createdAt:c.createdAt,order:c})),i=t.sales.map(c=>{const m=Vt(c,t.rate);return{kind:"sale",id:`sale:${m.id}`,createdAt:m.createdAt,sale:m}}),d=(t.creditOrders??[]).filter(c=>c.status!=="failed"&&c.status!=="abandoned").map(c=>({kind:"credit",id:`credit:${c.id}`,createdAt:c.createdAt,order:c})),o=new Set(t.purchases.filter(c=>c.txHash).map(c=>c.txHash.toLowerCase())),h=(t.manaPurchases??[]).filter(c=>!o.has(c.txHash.toLowerCase())).map(c=>({kind:"mana-purchase",id:`mana-purchase:${c.id}`,createdAt:c.createdAt,sale:c}));return[...a,...i,...d,...h].sort((c,m)=>m.createdAt-c.createdAt||(c.id<m.id?-1:1))}function Zt(t,s){return s==="all"?t:s==="sales"?t.filter(a=>a.kind==="sale"):t.filter(a=>a.kind==="purchase"||a.kind==="credit"||a.kind==="mana-purchase")}const ct=t=>t.trim().toLowerCase();function te(t){const s=new Map;for(const a of t??[]){const i=ct(a.txHash??"");if(!i)continue;const d=s.get(i);d?d.push(a):s.set(i,[a])}return s}function ee(t,s,a=Date.now()){const i=s.txHash?t.get(ct(s.txHash)):void 0;if(!i||i.length===0)return{kind:"direct"};const d=i.length===1?ie(i[0].netCents):null,o=i.filter(c=>!c.available&&c.availableAt>a);if(o.length===0)return{kind:"credited",credits:d};const h=o.reduce((c,m)=>Math.max(c,m.availableAt),0);return{kind:"pending",credits:d,availableAt:h}}function ie(t){return Et(t)}function se(){const t=O(i=>{var d;return(d=i.session)==null?void 0:d.address}),{data:s,isLoading:a}=A({queryKey:["listing-count",t],queryFn:()=>$t({creator:t,onSale:!0,first:1}),enabled:!!t,staleTime:5*6e4});return{count:s==null?void 0:s.total,isLoading:a}}const ne="https://cdn.decentraland.org/@dcl/shop/1.3.1-31265310354.commit-956da0c/_assets/credits-product-vs4Q6u6l.svg",G=Lt`
|
|
3
|
-
0% { background-position: 200% 0; }
|
|
4
|
-
100% { background-position: -200% 0; }
|
|
5
|
-
`,ae=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
|
-
`,re=l.div`
|
|
19
|
-
display: flex;
|
|
20
|
-
align-items: baseline;
|
|
21
|
-
gap: 12px;
|
|
22
|
-
margin-bottom: 20px;
|
|
23
|
-
`,oe=l.h1`
|
|
24
|
-
font-family: ${n.font.sans};
|
|
25
|
-
margin: 0;
|
|
26
|
-
color: ${n.colors.softWhite};
|
|
27
|
-
`;l.span`
|
|
28
|
-
color: ${n.colors.gray4};
|
|
29
|
-
font-size: 14px;
|
|
30
|
-
`;const de=l.div`
|
|
31
|
-
display: flex;
|
|
32
|
-
gap: 8px;
|
|
33
|
-
margin-bottom: 20px;
|
|
34
|
-
flex-wrap: wrap;
|
|
35
|
-
`,lt=l.button`
|
|
36
|
-
appearance: none;
|
|
37
|
-
/* Figma 2275:294685 / 294707: a translucent white pill that fills SOFT-WHITE when it is the one you
|
|
38
|
-
are on, with no border in either state — the outline this used to carry made the selected chip read
|
|
39
|
-
as a control with a stuck focus ring on it. */
|
|
40
|
-
border: 0;
|
|
41
|
-
background: ${n.colors.glass};
|
|
42
|
-
color: ${n.colors.white};
|
|
43
|
-
font-family: ${n.font.sans};
|
|
44
|
-
font-size: 13px;
|
|
45
|
-
font-weight: 600;
|
|
46
|
-
line-height: 24px;
|
|
47
|
-
letter-spacing: 0.46px;
|
|
48
|
-
/* The design gives the pill a flat 40px and no vertical padding, centring the 24px line box inside
|
|
49
|
-
it — so the height is the 40 it draws rather than the sum of a line box, padding and a border. */
|
|
50
|
-
display: inline-flex;
|
|
51
|
-
align-items: center;
|
|
52
|
-
justify-content: center;
|
|
53
|
-
padding: 0 16px;
|
|
54
|
-
min-height: 40px;
|
|
55
|
-
border-radius: ${n.radius.pill};
|
|
56
|
-
cursor: pointer;
|
|
57
|
-
transition:
|
|
58
|
-
background 0.15s,
|
|
59
|
-
color 0.15s;
|
|
60
|
-
|
|
61
|
-
&:hover {
|
|
62
|
-
background: ${n.colors.glassHover};
|
|
63
|
-
}
|
|
64
|
-
/* Inset, so a keyboard ring never reads as part of the pill's own shape the way an offset one did. */
|
|
65
|
-
&:focus-visible {
|
|
66
|
-
outline: 2px solid ${n.colors.white};
|
|
67
|
-
outline-offset: -2px;
|
|
68
|
-
}
|
|
69
|
-
&[data-active='true'] {
|
|
70
|
-
background: ${n.colors.softWhite};
|
|
71
|
-
color: ${n.colors.text};
|
|
72
|
-
}
|
|
73
|
-
&[data-active='true']:hover {
|
|
74
|
-
background: ${n.colors.white};
|
|
75
|
-
}
|
|
76
|
-
&[data-active='true']:focus-visible {
|
|
77
|
-
outline-color: ${n.colors.text};
|
|
78
|
-
}
|
|
79
|
-
`,ce=l(lt)`
|
|
80
|
-
position: relative;
|
|
81
|
-
`,le=l.span`
|
|
82
|
-
position: absolute;
|
|
83
|
-
/* The 5.5 / 2.5 the design measures from the pill's outer edge. The chip has no border now, so its
|
|
84
|
-
padding box IS that edge and the offsets no longer carry a hairline's worth on top. */
|
|
85
|
-
top: -5.5px;
|
|
86
|
-
right: -2.5px;
|
|
87
|
-
display: grid;
|
|
88
|
-
place-items: center;
|
|
89
|
-
/* The chip's tracking would otherwise widen the disc off its 20px. */
|
|
90
|
-
letter-spacing: normal;
|
|
91
|
-
/* Figma only ever draws a single digit, as a fixed 20px disc. The padding is what lets a two- or
|
|
92
|
-
three-figure count grow leftwards out of the corner instead of spilling out of the circle. */
|
|
93
|
-
min-width: 20px;
|
|
94
|
-
height: 20px;
|
|
95
|
-
padding: 0 6px;
|
|
96
|
-
border-radius: ${n.radius.pill};
|
|
97
|
-
background: ${n.colors.dclRed};
|
|
98
|
-
/* No ring: the red separates itself from both surfaces the disc straddles (the chip and the page), and
|
|
99
|
-
the design draws the circle bare. */
|
|
100
|
-
font-weight: 600;
|
|
101
|
-
font-size: 12px;
|
|
102
|
-
line-height: 1.6;
|
|
103
|
-
color: ${n.colors.white};
|
|
104
|
-
`,ue=l.div`
|
|
105
|
-
min-height: 60vh;
|
|
106
|
-
`,nt=l.div`
|
|
107
|
-
display: flex;
|
|
108
|
-
flex-direction: column;
|
|
109
|
-
gap: 16px;
|
|
110
|
-
`,T=l.div`
|
|
111
|
-
background: ${n.colors.white};
|
|
112
|
-
border: 1px solid ${n.colors.line};
|
|
113
|
-
border-radius: 16px;
|
|
114
|
-
overflow: hidden;
|
|
115
|
-
`,S=l.div`
|
|
116
|
-
display: flex;
|
|
117
|
-
align-items: center;
|
|
118
|
-
justify-content: space-between;
|
|
119
|
-
gap: 12px;
|
|
120
|
-
padding: 14px 18px;
|
|
121
|
-
background: ${n.colors.softWhite};
|
|
122
|
-
border-bottom: 1px solid ${n.colors.line};
|
|
123
|
-
|
|
124
|
-
${n.media.maxWidth("mobile")} {
|
|
125
|
-
flex-wrap: wrap;
|
|
126
|
-
}
|
|
127
|
-
`,F=l.div`
|
|
128
|
-
display: flex;
|
|
129
|
-
flex-direction: column;
|
|
130
|
-
gap: 2px;
|
|
131
|
-
min-width: 0;
|
|
132
|
-
`,C=l.span`
|
|
133
|
-
font-weight: 700;
|
|
134
|
-
color: ${n.colors.text};
|
|
135
|
-
`,D=l.span`
|
|
136
|
-
font-size: 13px;
|
|
137
|
-
color: ${n.colors.muted};
|
|
138
|
-
`,M=l.div`
|
|
139
|
-
display: flex;
|
|
140
|
-
align-items: center;
|
|
141
|
-
gap: 14px;
|
|
142
|
-
/* Pin to the right regardless of how many elements sit on the left (the credit-purchase card adds a
|
|
143
|
-
leading thumbnail, giving the head three children instead of two). */
|
|
144
|
-
margin-left: auto;
|
|
145
|
-
`,he=l.div`
|
|
146
|
-
flex: 0 0 auto;
|
|
147
|
-
width: 52px;
|
|
148
|
-
height: 52px;
|
|
149
|
-
border-radius: 10px;
|
|
150
|
-
background: ${n.colors.media};
|
|
151
|
-
display: flex;
|
|
152
|
-
align-items: center;
|
|
153
|
-
justify-content: center;
|
|
154
|
-
|
|
155
|
-
img {
|
|
156
|
-
width: 30px;
|
|
157
|
-
height: 30px;
|
|
158
|
-
display: block;
|
|
159
|
-
}
|
|
160
|
-
`,H=l.span`
|
|
161
|
-
font-size: 11px;
|
|
162
|
-
font-weight: 700;
|
|
163
|
-
text-transform: uppercase;
|
|
164
|
-
letter-spacing: 0.03em;
|
|
165
|
-
padding: 4px 10px;
|
|
166
|
-
border-radius: ${n.radius.pill};
|
|
167
|
-
white-space: nowrap;
|
|
168
|
-
|
|
169
|
-
&[data-status='SETTLED'] {
|
|
170
|
-
background: rgba(30, 166, 114, 0.14);
|
|
171
|
-
color: ${n.colors.okStrong};
|
|
172
|
-
}
|
|
173
|
-
&[data-status='PENDING'] {
|
|
174
|
-
background: rgba(245, 166, 35, 0.16);
|
|
175
|
-
color: #b5790a;
|
|
176
|
-
}
|
|
177
|
-
&[data-status='SOLD'] {
|
|
178
|
-
background: rgba(103, 58, 183, 0.14);
|
|
179
|
-
color: ${n.colors.accent};
|
|
180
|
-
}
|
|
181
|
-
&[data-status='FAILED'] {
|
|
182
|
-
background: rgba(214, 61, 61, 0.14);
|
|
183
|
-
color: #b02a2a;
|
|
184
|
-
}
|
|
185
|
-
/* Nobody paid and nobody is owed anything — deliberately the quietest of the four. Reusing PENDING's
|
|
186
|
-
amber here is what made an abandoned checkout look like money on its way. */
|
|
187
|
-
&[data-status='UNFINISHED'] {
|
|
188
|
-
background: ${n.colors.line};
|
|
189
|
-
color: ${n.colors.muted};
|
|
190
|
-
}
|
|
191
|
-
`,pe=l.button`
|
|
192
|
-
font-size: 11px;
|
|
193
|
-
font-weight: 700;
|
|
194
|
-
text-transform: uppercase;
|
|
195
|
-
letter-spacing: 0.03em;
|
|
196
|
-
padding: 4px 10px;
|
|
197
|
-
border-radius: ${n.radius.pill};
|
|
198
|
-
white-space: nowrap;
|
|
199
|
-
border: 1px solid ${n.colors.accent};
|
|
200
|
-
background: transparent;
|
|
201
|
-
color: ${n.colors.accent};
|
|
202
|
-
cursor: pointer;
|
|
203
|
-
transition: background 0.15s ease;
|
|
204
|
-
|
|
205
|
-
&:hover:not(:disabled) {
|
|
206
|
-
background: rgba(103, 58, 183, 0.08);
|
|
207
|
-
}
|
|
208
|
-
&:disabled {
|
|
209
|
-
opacity: 0.6;
|
|
210
|
-
cursor: default;
|
|
211
|
-
}
|
|
212
|
-
`,w=l.div`
|
|
213
|
-
display: flex;
|
|
214
|
-
align-items: center;
|
|
215
|
-
gap: 5px;
|
|
216
|
-
font-weight: 800;
|
|
217
|
-
color: ${n.colors.text};
|
|
218
|
-
white-space: nowrap;
|
|
219
|
-
|
|
220
|
-
.ccy-mark {
|
|
221
|
-
width: 16px;
|
|
222
|
-
height: 16px;
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
// Money received (a sale) reads as income in the shop's success green.
|
|
226
|
-
&[data-kind='income'] {
|
|
227
|
-
color: ${n.colors.okStrong};
|
|
228
|
-
}
|
|
229
|
-
`,ut=l.img`
|
|
230
|
-
width: 16px;
|
|
231
|
-
height: 16px;
|
|
232
|
-
vertical-align: -0.15em;
|
|
233
|
-
`,me=l.span`
|
|
234
|
-
display: inline-flex;
|
|
235
|
-
align-items: center;
|
|
236
|
-
cursor: pointer;
|
|
237
|
-
`,xe=l.span`
|
|
238
|
-
position: fixed;
|
|
239
|
-
transform: translateX(-50%);
|
|
240
|
-
padding: 6px 8px;
|
|
241
|
-
border-radius: 6px;
|
|
242
|
-
background: #16141a;
|
|
243
|
-
color: ${n.colors.white};
|
|
244
|
-
font-size: 12px;
|
|
245
|
-
font-weight: 600;
|
|
246
|
-
line-height: 1;
|
|
247
|
-
white-space: nowrap;
|
|
248
|
-
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
|
|
249
|
-
pointer-events: none;
|
|
250
|
-
z-index: 9999;
|
|
251
|
-
`,ge=l.p`
|
|
252
|
-
margin: 0;
|
|
253
|
-
/* 18px sides to sit on the same rail as CardHead and Line; no bottom, since Line brings its own 12px. */
|
|
254
|
-
padding: 12px 18px 0;
|
|
255
|
-
font-size: 13px;
|
|
256
|
-
line-height: 1.45;
|
|
257
|
-
color: ${n.colors.muted};
|
|
258
|
-
`,U=l.div`
|
|
259
|
-
display: flex;
|
|
260
|
-
flex-direction: column;
|
|
261
|
-
`,q=l.div`
|
|
262
|
-
display: grid;
|
|
263
|
-
grid-template-columns: 52px 1fr auto;
|
|
264
|
-
align-items: center;
|
|
265
|
-
gap: 14px;
|
|
266
|
-
padding: 12px 18px;
|
|
267
|
-
text-decoration: none;
|
|
268
|
-
color: inherit;
|
|
269
|
-
|
|
270
|
-
& + & {
|
|
271
|
-
border-top: 1px solid ${n.colors.line};
|
|
272
|
-
}
|
|
273
|
-
|
|
274
|
-
&[data-link='true'] {
|
|
275
|
-
transition: background 0.15s;
|
|
276
|
-
}
|
|
277
|
-
&[data-link='true']:hover {
|
|
278
|
-
background: ${n.colors.media};
|
|
279
|
-
}
|
|
280
|
-
&[data-link='true']:focus-visible {
|
|
281
|
-
outline: 2px solid ${n.colors.accent};
|
|
282
|
-
outline-offset: -2px;
|
|
283
|
-
}
|
|
284
|
-
`,B=l.div`
|
|
285
|
-
width: 52px;
|
|
286
|
-
height: 52px;
|
|
287
|
-
border-radius: 10px;
|
|
288
|
-
background: ${n.colors.media};
|
|
289
|
-
overflow: hidden;
|
|
290
|
-
display: flex;
|
|
291
|
-
align-items: center;
|
|
292
|
-
justify-content: center;
|
|
293
|
-
color: ${n.colors.muted2};
|
|
294
|
-
|
|
295
|
-
img {
|
|
296
|
-
width: 100%;
|
|
297
|
-
height: 100%;
|
|
298
|
-
object-fit: contain;
|
|
299
|
-
}
|
|
300
|
-
`,K=l.div`
|
|
301
|
-
width: 52px;
|
|
302
|
-
height: 52px;
|
|
303
|
-
border-radius: 10px;
|
|
304
|
-
background: linear-gradient(100deg, ${n.colors.media} 30%, ${n.colors.panel} 50%, ${n.colors.media} 70%);
|
|
305
|
-
background-size: 200% 100%;
|
|
306
|
-
animation: ${G} 1.3s infinite linear;
|
|
307
|
-
|
|
308
|
-
@media (prefers-reduced-motion: reduce) {
|
|
309
|
-
animation: none;
|
|
310
|
-
}
|
|
311
|
-
`,Q=l.div`
|
|
312
|
-
min-width: 0;
|
|
313
|
-
display: flex;
|
|
314
|
-
flex-direction: column;
|
|
315
|
-
gap: 2px;
|
|
316
|
-
`,X=l.span`
|
|
317
|
-
font-weight: 700;
|
|
318
|
-
white-space: nowrap;
|
|
319
|
-
overflow: hidden;
|
|
320
|
-
text-overflow: ellipsis;
|
|
321
|
-
`,V=l.span`
|
|
322
|
-
display: inline-block;
|
|
323
|
-
width: 140px;
|
|
324
|
-
max-width: 60%;
|
|
325
|
-
height: 12px;
|
|
326
|
-
border-radius: 6px;
|
|
327
|
-
background: linear-gradient(100deg, ${n.colors.media} 30%, ${n.colors.panel} 50%, ${n.colors.media} 70%);
|
|
328
|
-
background-size: 200% 100%;
|
|
329
|
-
animation: ${G} 1.3s infinite linear;
|
|
330
|
-
|
|
331
|
-
@media (prefers-reduced-motion: reduce) {
|
|
332
|
-
animation: none;
|
|
333
|
-
}
|
|
334
|
-
`,Y=l.span`
|
|
335
|
-
font-size: 13px;
|
|
336
|
-
color: ${n.colors.muted};
|
|
337
|
-
`,fe=l.div`
|
|
338
|
-
display: flex;
|
|
339
|
-
align-items: center;
|
|
340
|
-
gap: 4px;
|
|
341
|
-
font-weight: 700;
|
|
342
|
-
color: ${n.colors.text};
|
|
343
|
-
white-space: nowrap;
|
|
344
|
-
|
|
345
|
-
.ccy-mark {
|
|
346
|
-
width: 14px;
|
|
347
|
-
height: 14px;
|
|
348
|
-
}
|
|
349
|
-
`,at=l.div`
|
|
350
|
-
height: 132px;
|
|
351
|
-
border-radius: 16px;
|
|
352
|
-
border: 1px solid transparent;
|
|
353
|
-
background: linear-gradient(100deg, ${n.colors.media} 30%, ${n.colors.panel} 50%, ${n.colors.media} 70%);
|
|
354
|
-
background-size: 200% 100%;
|
|
355
|
-
animation: ${G} 1.3s infinite linear;
|
|
356
|
-
|
|
357
|
-
@media (prefers-reduced-motion: reduce) {
|
|
358
|
-
animation: none;
|
|
359
|
-
}
|
|
360
|
-
`,ht=l.div`
|
|
361
|
-
display: flex;
|
|
362
|
-
flex-direction: column;
|
|
363
|
-
align-items: center;
|
|
364
|
-
gap: 8px;
|
|
365
|
-
text-align: center;
|
|
366
|
-
padding: 90px 20px;
|
|
367
|
-
min-height: 50vh;
|
|
368
|
-
color: ${n.colors.softWhite};
|
|
369
|
-
`,pt=l.p`
|
|
370
|
-
font-size: 22px;
|
|
371
|
-
font-weight: 700;
|
|
372
|
-
margin: 6px 0 0;
|
|
373
|
-
`,mt=l.p`
|
|
374
|
-
margin: 0;
|
|
375
|
-
color: ${n.colors.softWhite};
|
|
376
|
-
`,ye=l(Pt)`
|
|
377
|
-
margin-top: 12px;
|
|
378
|
-
`,J=q.withComponent(ot),be=g.lazy(()=>Ft(()=>import("./index-DpeajFiE.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14])).then(t=>({default:t.ImportListings}))),P=24,ve=["all","purchases","sales"],z="section",rt="listings",R="view",je="migrate";function I(t){try{return new Date(t).toLocaleDateString(void 0,{year:"numeric",month:"short",day:"numeric"})}catch{return""}}function xt(t){return t.length>10?`${t.slice(0,6)}…${t.slice(-4)}`:t}function gt(t){const s=Number(t)/1e18;return Number.isFinite(s)?s.toLocaleString("en",{maximumFractionDigits:2}):"0"}function ft({children:t}){const s=g.useRef(null),[a,i]=g.useState(null),d=()=>{var h;const o=(h=s.current)==null?void 0:h.getBoundingClientRect();o&&i({top:o.bottom+8,left:o.left+o.width/2})};return e.jsxs(me,{ref:s,tabIndex:0,onMouseEnter:d,onMouseLeave:()=>i(null),onFocus:d,onBlur:()=>i(null),children:[t,a?Rt.createPortal(e.jsx(xe,{style:{top:a.top,left:a.left},role:"tooltip",children:r("activity.polygonMana")}),document.body):null]})}function we({item:t}){const s=!!t.contractAddress&&!!t.itemId,a=!!t.tradeId||s,{data:i,isLoading:d}=A({queryKey:["order-line-display",t.tradeId,t.contractAddress,t.itemId],queryFn:()=>t.tradeId?qt(t.tradeId):_(t.contractAddress,{itemId:t.itemId}),enabled:a,staleTime:5*6e4}),o=a&&d,h=(i==null?void 0:i.name)??r("activity.itemFallback"),c=(i==null?void 0:i.thumbnail)??"",m=W({contractAddress:i==null?void 0:i.contractAddress,tokenId:i==null?void 0:i.tokenId,itemId:i==null?void 0:i.itemId})??void 0,f=e.jsxs(e.Fragment,{children:[o?e.jsx(K,{}):e.jsx(B,{children:c?e.jsx("img",{src:c,alt:h}):e.jsx(E,{name:"cart",size:20})}),e.jsxs(Q,{children:[o?e.jsx(V,{}):e.jsx(X,{title:h,children:h}),t.quantity>1?e.jsx(Y,{children:r("activity.quantity",{count:t.quantity})}):null]}),e.jsxs(fe,{children:[e.jsx(N,{className:"ccy-mark"})," ",t.credits]})]});return m?e.jsx(J,{to:m,"data-link":"true",children:f}):e.jsx(q,{children:f})}function ke({order:t}){const s=Xt(t.lines),a=s.reduce((o,h)=>o+h.quantity,0),i=Kt(t.status),d=i==="SETTLED"?r("activity.completed"):i==="FAILED"?r("activity.failed"):r("activity.processing");return e.jsxs(T,{"data-testid":"purchase-order",children:[e.jsxs(S,{children:[e.jsxs(F,{children:[e.jsx(C,{children:I(t.createdAt)}),e.jsxs(D,{children:[r("activity.purchaseLabel")," · ",r("activity.itemCount",{count:a})]})]}),e.jsxs(M,{children:[e.jsx(H,{"data-status":i,children:d}),e.jsxs(w,{children:[e.jsx(N,{className:"ccy-mark"})," ",t.totalCredits]})]})]}),i==="FAILED"?e.jsx(ge,{children:r("activity.purchaseFailedNote")}):null,e.jsx(U,{children:s.map(o=>e.jsx(we,{item:o},o.key))})]})}function Ie({sale:t}){const{data:s,isLoading:a}=A({queryKey:["asset-display",t.contractAddress,t.tokenId,t.itemId],queryFn:()=>_(t.contractAddress,{tokenId:t.tokenId,itemId:t.itemId}),enabled:!!t.contractAddress,staleTime:3e5}),i=(s==null?void 0:s.name)??r("activity.itemFallback"),d=(s==null?void 0:s.thumbnail)??"",o=W({contractAddress:t.contractAddress,tokenId:t.tokenId,itemId:t.itemId})??void 0,h=e.jsxs(e.Fragment,{children:[a?e.jsx(K,{}):e.jsx(B,{children:d?e.jsx("img",{src:d,alt:i}):e.jsx(E,{name:"offer",size:20})}),e.jsxs(Q,{children:[a?e.jsx(V,{}):e.jsx(X,{title:i,children:i}),e.jsx(Y,{children:r("activity.boughtFrom",{account:xt(t.seller)})})]})]});return e.jsxs(T,{"data-testid":"activity-mana-purchase",children:[e.jsxs(S,{children:[e.jsxs(F,{children:[e.jsx(C,{children:I(t.createdAt)}),e.jsx(D,{children:r("activity.paidWithMana")})]}),e.jsxs(M,{children:[e.jsx(H,{"data-status":"SETTLED",children:r("activity.completed")}),e.jsxs(w,{children:[gt(t.manaWei)," ",e.jsx(ft,{children:e.jsx(ut,{src:dt,alt:"MANA"})})]})]})]}),e.jsx(U,{children:o?e.jsx(J,{to:o,"data-link":"true",children:h}):e.jsx(q,{children:h})})]})}function Ae({sale:t,payout:s}){const{data:a,isLoading:i}=A({queryKey:["asset-display",t.contractAddress,t.tokenId,t.itemId],queryFn:()=>_(t.contractAddress,{tokenId:t.tokenId,itemId:t.itemId}),enabled:!!t.contractAddress,staleTime:3e5}),d=(a==null?void 0:a.name)??r("activity.itemFallback"),o=(a==null?void 0:a.thumbnail)??"",h=W({contractAddress:t.contractAddress,tokenId:t.tokenId,itemId:t.itemId})??void 0,c=e.jsxs(e.Fragment,{children:[i?e.jsx(K,{}):e.jsx(B,{children:o?e.jsx("img",{src:o,alt:d}):e.jsx(E,{name:"offer",size:20})}),e.jsxs(Q,{children:[i?e.jsx(V,{}):e.jsx(X,{title:d,children:d}),e.jsxs(Y,{children:[r("activity.soldTo",{account:xt(t.counterparty)}),s.kind==="pending"?` · ${r("activity.payoutPendingOn",{date:I(s.availableAt)})}`:""]})]})]});return e.jsxs(T,{"data-testid":"activity-sale",children:[e.jsxs(S,{children:[e.jsxs(F,{children:[e.jsx(C,{children:I(t.createdAt)}),e.jsx(D,{children:r("activity.saleLabel")})]}),e.jsxs(M,{children:[e.jsx(H,{"data-status":s.kind==="pending"?"PENDING":"SOLD",children:s.kind==="pending"?r("activity.payoutPending"):r("activity.sold")}),s.kind==="direct"?e.jsxs(w,{"data-kind":"income",children:["+",gt(t.manaWei)," ",e.jsx(ft,{children:e.jsx(ut,{src:dt,alt:"MANA"})})]}):s.credits!==null?e.jsxs(w,{"data-kind":"income",children:[e.jsx(N,{className:"ccy-mark"})," +",Mt(s.credits)]}):e.jsx(w,{"data-kind":"income",children:r("activity.payoutCredited")})]})]}),e.jsx(U,{children:h?e.jsx(J,{to:h,"data-link":"true",children:c}):e.jsx(q,{children:c})})]})}function Ee({order:t}){const s=`$${(t.usdCents/100).toFixed(2)}`,a=Ct(t.status),i=a==="SETTLED"?r("activity.completed"):a==="FAILED"?r("activity.failed"):a==="UNFINISHED"?r("activity.unfinished"):r("activity.processing"),d=O(p=>p.session),o=Dt(),[h,c]=g.useState(!1),m=t.status==="initiated"&&!!d;g.useEffect(()=>{const p=()=>c(!1);return window.addEventListener("pageshow",p),()=>window.removeEventListener("pageshow",p)},[]);async function f(){if(!(!d||h)){c(!0);try{const p=await Ht(t.id,d.identity);if(p.kind==="url"){if(/^https:\/\/([a-z0-9-]+\.)*stripe\.com\//i.test(p.url)){window.location.href=p.url;return}$.error(r("activity.resumeUnavailable"))}else p.kind==="expired"?($.info(r("activity.resumeExpired")),o.invalidateQueries({queryKey:["credit-orders"]})):p.kind==="paid"?($.success(r("activity.resumePaid")),o.invalidateQueries({queryKey:["credit-orders"]})):$.error(r("activity.resumeUnavailable"));c(!1)}catch{c(!1)}}}return e.jsx(T,{"data-testid":"credit-order",children:e.jsxs(S,{children:[e.jsx(he,{children:e.jsx("img",{src:ne,alt:"","aria-hidden":!0})}),e.jsxs(F,{children:[e.jsx(C,{children:I(t.createdAt)}),e.jsxs(D,{children:[r("activity.creditPurchaseLabel")," · ",r("activity.creditPaid",{usd:s})]})]}),e.jsxs(M,{children:[m?e.jsx(pe,{type:"button",onClick:()=>void f(),disabled:h,"data-testid":"resume-order",children:h?r("activity.resuming"):r("activity.resume")}):null,e.jsx(H,{"data-status":a,children:i}),e.jsxs(w,{"data-kind":a==="UNFINISHED"?void 0:"income",children:[a==="UNFINISHED"?"":"+",e.jsx(N,{className:"ccy-mark"})," ",t.credits]})]})]})})}function $e({filter:t}){const s={all:{icon:"clock",title:r("activity.emptyAllTitle"),body:r("activity.emptyAllBody")},purchases:{icon:"cart",title:r("activity.emptyPurchasesTitle"),body:r("activity.emptyPurchasesBody")},sales:{icon:"offer",title:r("activity.emptySalesTitle"),body:r("activity.emptySalesBody")}}[t];return e.jsxs(ht,{children:[e.jsx(E,{name:s.icon,size:40,color:n.colors.muted2}),e.jsx(pt,{children:s.title}),e.jsx(mt,{children:s.body}),t!=="sales"?e.jsx(ye,{as:ot,to:"/items",variant:"white",children:r("notFound.cta")}):null]})}function Oe(){const{session:t}=O(),[s,a]=g.useState("all"),[i,d]=zt(),o=i.get(z)===rt||i.get(R)===je;Nt({title:o?r("seo.import.title"):r("nav.activity"),noindex:!0});const{count:h}=Ot(),{count:c}=se(),f=h!==void 0&&c!==void 0&&(h>0||c>0||o),p=!!t&&!o&&s!=="sales",x=!!t&&!o&&s!=="purchases",y=L(["purchases",t==null?void 0:t.address],u=>St(t.address,t.identity,{first:P,skip:u}),{enabled:p}),b=L(["sales",t==null?void 0:t.address],u=>it(t.address,{role:"seller",first:P,skip:u}),{enabled:x}),v=L(["credit-orders",t==null?void 0:t.address],u=>st(t.address,t.identity,{first:P,skip:u}),{enabled:p}),j=L(["mana-purchases",t==null?void 0:t.address],u=>it(t.address,{role:"buyer",first:P,skip:u}),{enabled:p}),{data:Z}=A({queryKey:["sale-payouts",t==null?void 0:t.address],queryFn:()=>st(t.address,t.identity,{first:200}).then(u=>u.payouts),enabled:x,staleTime:6e4}),yt=g.useMemo(()=>te(Z),[Z]),{data:bt}=Tt(x);if(!t)return e.jsxs(ht,{children:[e.jsx(E,{name:"clock",size:40,color:n.colors.muted2}),e.jsx(pt,{children:r("activity.signInTitle")}),e.jsx(mt,{children:r("activity.signInBody")})]});const tt=Zt(Jt({purchases:p?y.items:[],sales:x?b.items:[],creditOrders:p?v.items:[],manaPurchases:p?j.items:[],rate:bt}),s),vt=p&&(y.isLoading||v.isLoading||j.isLoading)||x&&b.isLoading,et=p&&(y.isFetchingNextPage||v.isFetchingNextPage||j.isFetchingNextPage)||x&&b.isFetchingNextPage,jt=p&&(y.hasNextPage||v.hasNextPage||j.hasNextPage)||x&&b.hasNextPage;function wt(){p&&y.hasNextPage&&y.fetchNextPage(),p&&v.hasNextPage&&v.fetchNextPage(),p&&j.hasNextPage&&j.fetchNextPage(),x&&b.hasNextPage&&b.fetchNextPage()}function kt(u){if(a(u),!o)return;const k=new URLSearchParams(i);k.delete(z),k.delete(R),d(k,{replace:!0})}function It(){const u=new URLSearchParams(i);u.set(z,rt),u.delete(R),d(u,{replace:!0})}return e.jsxs(ae,{children:[e.jsx(re,{children:e.jsx(oe,{children:r("nav.activity")})}),e.jsxs(de,{role:"tablist","aria-label":r("nav.activity"),children:[ve.map(u=>e.jsx(lt,{type:"button",role:"tab","aria-selected":!o&&s===u,"data-active":!o&&s===u,"data-testid":`activity-filter-${u}`,onClick:()=>kt(u),children:r(`activity.filter.${u}`)},u)),f?e.jsxs(ce,{type:"button",role:"tab","aria-selected":o,"data-active":o,"data-testid":"activity-filter-migrate","aria-label":h?r("activity.migrate.chipAria",{count:h}):void 0,onClick:It,children:[r("activity.migrate.chip"),h?e.jsx(le,{"data-testid":"activity-migrate-count","aria-hidden":!0,children:h}):null]}):null]}),o?e.jsx(g.Suspense,{fallback:e.jsx(ue,{"aria-busy":"true"}),children:e.jsx(be,{})}):vt?e.jsx(nt,{children:Array.from({length:5}).map((u,k)=>e.jsx(at,{},k))}):tt.length===0?e.jsx($e,{filter:s}):e.jsxs(e.Fragment,{children:[e.jsxs(nt,{children:[tt.map(u=>u.kind==="purchase"?e.jsx(ke,{order:u.order},u.id):u.kind==="credit"?e.jsx(Ee,{order:u.order},u.id):u.kind==="mana-purchase"?e.jsx(Ie,{sale:u.sale},u.id):e.jsx(Ae,{sale:u.sale,payout:ee(yt,u.sale)},u.id)),et?e.jsx(at,{}):null]}),e.jsx(Wt,{hasNextPage:jt,isFetching:et,onLoadMore:wt})]})]})}export{Oe as Activity};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["_assets/index-MxA8f9Bw.js","_assets/react-BYHuwl8r.js","_assets/dcl-schemas-CmtP3U6y.js","_assets/index-_PDBJq65.js","_assets/sentry-Dx-KuLV3.js","_assets/ethers-BDpbhgX6.js","_assets/intl-CBcMB1D2.js","_assets/index-l2QjlKjX.css","_assets/createSvgIcon-ConaAgJH.js","_assets/clsx-WwvpwSg0.js","_assets/styled-COr5xbAX.js","_assets/emotion-styled.browser.esm-CE8VcmPz.js","_assets/CircularProgress-COAk6IS8.js","_assets/index-EwTZLBI-.js","_assets/useTheme-B39CldvB.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{_ as e}from"./index-_PDBJq65.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-MxA8f9Bw.js").then(r=>r.i),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12])),e(()=>import("./index-EwTZLBI-.js"),__vite__mapDeps([13,3,1,2,4,5,6,7,14,10])),e(()=>import("./index-_PDBJq65.js").then(r=>r.d6),__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};
|