@dcl/shop 0.7.0 → 0.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/_assets/{Activity-Bfm7kRfv.js → Activity-Cnn-lMD9.js} +3 -3
- package/_assets/{AnimatedBackground-C-bhqVsp.js → AnimatedBackground-D9QjeeBa.js} +1 -1
- package/_assets/{Assets-B55dtQQJ.js → Assets-CRJDmBDB.js} +12 -12
- package/_assets/{Assets.styles-NQkvfYq_.js → Assets.styles-BjdmDuEG.js} +1 -1
- package/_assets/{Authorizations-CiQtw5K-.js → Authorizations-C-EUi_Ea.js} +1 -1
- package/_assets/{Cart-D7wbUiTa.js → Cart-B8YOGJmI.js} +9 -9
- package/_assets/{CircularProgress-ZsDKUKD2.js → CircularProgress-Db8orehr.js} +3 -3
- package/_assets/{Collection-DwFpgZbC.js → Collection-C2FumsGf.js} +6 -6
- package/_assets/{CollectionCarousel-DENDQYmz.js → CollectionCarousel-DL857EZk.js} +6 -6
- package/_assets/Creator-WSL6qgqX.js +306 -0
- package/_assets/{ErrorNotice-BEc3g8r8.js → ErrorNotice-MWF7JXST.js} +1 -1
- package/_assets/{ExchangeController-BCP2fWjj.js → ExchangeController-D0BUEGgM.js} +1 -1
- package/_assets/{GetCredits-Vnk46xfQ.js → GetCredits-VgVSObKH.js} +56 -40
- package/_assets/{Grow-DuBI26R-.js → Grow-DaJKbNKH.js} +1 -1
- package/_assets/{HelpersUtil-ClfhYE3l.js → HelpersUtil-Des1BKsb.js} +1 -1
- package/_assets/ItemDetail-DpbhFiHl.js +3497 -0
- package/_assets/LazyEmoteControls-COW8eJUD.js +2 -0
- package/_assets/{LoadMore-CC_UzQ34.js → LoadMore-CIWThu0V.js} +1 -1
- package/_assets/{ManaPricingBanner.styles-BokPI2D_.js → ManaPricingBanner.styles-D7yh-OMv.js} +3 -3
- package/_assets/{MyAssets-Bo37jIwn.js → MyAssets-MBEHe0qY.js} +1 -1
- package/_assets/{MyFavorites-B2TJaZUB.js → MyFavorites-Cer-5MAy.js} +1 -1
- package/_assets/{NotFound-DLx8jzvN.js → NotFound-CuiJHtW_.js} +1 -1
- package/_assets/{NotificationsBell-BtCXxoM8.js → NotificationsBell-BneUIyzO.js} +1 -1
- package/_assets/OutfitDetail-B1WI3yDq.js +334 -0
- package/_assets/{OutfitPreview-D5_qH5Ln.js → OutfitPreview-C2-ueSaA.js} +2 -2
- package/_assets/{OutfitStudio-qONuf5K7.js → OutfitStudio-DYdoL9fR.js} +7 -7
- package/_assets/{StoreSettings-vN3UO986.js → StoreSettings-DuuOxmdV.js} +9 -9
- package/_assets/{Success-f5eJlnKx.js → Success-CEH1MUQt.js} +1 -1
- package/_assets/{SwapController-B9sRrkAK.js → SwapController-CIXsGZBK.js} +1 -1
- package/_assets/{Tooltip-D1ZBIqYA.js → Tooltip-jfo7edQn.js} +1 -1
- package/_assets/{TradeService-DvFVQpxx.js → TradeService-DiOUxFwj.js} +1 -1
- package/_assets/{W3MFrameProviderSingleton-mcKRqTfP.js → W3MFrameProviderSingleton-D_hwynnp.js} +3 -3
- package/_assets/{WebCryptoP256-B7MhXWuH.js → WebCryptoP256-DFE3V2WS.js} +1 -1
- package/_assets/{authorizations-D_1liO7d.js → authorizations-CboNrOcr.js} +1 -1
- package/_assets/{basic-CqEh5duU.js → basic-DvU1J3w8.js} +1 -1
- package/_assets/{biconomy-D_Y6_R5H.js → biconomy-DTTg16ds.js} +1 -1
- package/_assets/builder-C3uRVotE.js +1 -0
- package/_assets/{buy-D5A2EHRt.js → buy-BYu3r4d1.js} +1 -1
- package/_assets/{buy-gasless-DOjyxrOK.js → buy-gasless-BpGXC11T.js} +1 -1
- package/_assets/{categories-2VrlGaC_.js → categories-B-ttqFdP.js} +1 -1
- package/_assets/{ccip-BOQWcrsE.js → ccip-B5qgpEOa.js} +1 -1
- package/_assets/{ccip-Bmb04-XK.js → ccip-Chjvzuo3.js} +1 -1
- package/_assets/{collectionPage.styles-DaKP3DX-.js → collectionPage.styles-Cqc0qEsV.js} +4 -4
- package/_assets/{controller-BQ-e2rGO.js → controller-D65h4JHM.js} +2 -2
- package/_assets/{core-CTr2fRUy.js → core-DQrWR_KU.js} +4 -4
- package/_assets/{createSvgIcon-BhCc-35g.js → createSvgIcon-CIAc53Uf.js} +3 -3
- package/_assets/{custom-DG1qkiJE.js → custom-CXFEHrtn.js} +1 -1
- package/_assets/{data-capture-Ba2U2y5O.js → data-capture-CyNw1tR6.js} +1 -1
- package/_assets/disposePreview-8oEf57G7.js +1 -0
- package/_assets/{email-Wxqgx6Lj.js → email-BSFpn-mK.js} +1 -1
- package/_assets/{embedded-wallet-DR6Si6kV.js → embedded-wallet-DUt0q64F.js} +1 -1
- package/_assets/{emotion-styled.browser.esm-Ce_kaTO_.js → emotion-styled.browser.esm-MB_ZnWA0.js} +1 -1
- package/_assets/{engine-CT5J10tT.js → engine-CWoVWkrK.js} +1 -1
- package/_assets/{errors-BQ78iy4c.js → errors-CspB8iK7.js} +1 -1
- package/_assets/{estimate-l1-fee-BWX6n2wW.js → estimate-l1-fee-CctWCWaJ.js} +1 -1
- package/_assets/{execute-C6tBpvgs.js → execute-CqdEBDWF.js} +2 -2
- package/_assets/{features-BmPELMhg.js → features-1-FLWkh7.js} +1 -1
- package/_assets/{fetchTokenMetadata-Mg3wjHG6.js → fetchTokenMetadata-BaQpNTHG.js} +2 -2
- package/_assets/{field.styles-5z9eWAwV.js → field.styles-O-FhYRsZ.js} +1 -1
- package/_assets/{get-ecosystem-wallet-info-Blc_71v0.js → get-ecosystem-wallet-info-efBvwCgh.js} +1 -1
- package/_assets/{getBalance-mM7D97ev.js → getBalance-B6jNJqou.js} +1 -1
- package/_assets/{getNFT-zt_0lqjp.js → getNFT-BLha6TEN.js} +1 -1
- package/_assets/{getNFT-CbZgRluJ.js → getNFT-CEFWuq38.js} +1 -1
- package/_assets/{grid.styles-B1gNJ9t8.js → grid.styles-9axjWKOh.js} +1 -1
- package/_assets/{hashTypedData-BmTdbBr7.js → hashTypedData-DRoLgz93.js} +1 -1
- package/_assets/{hashTypedData-xC0RrFzF.js → hashTypedData-DU5frjBz.js} +1 -1
- package/_assets/{in-app-D6xPBmdK.js → in-app-B7r-w8-I.js} +1 -1
- package/_assets/{in-app-wallet-calls-DRD1x_CO.js → in-app-wallet-calls-DikRiAsm.js} +1 -1
- package/_assets/{index-B9ZWePj8.js → index--d9L6VlZ.js} +3 -3
- package/_assets/{index-p6LU--BY.js → index-B7llCCrg.js} +3 -3
- package/_assets/{index-Dtczzkr-.js → index-BLcuFifQ.js} +1 -1
- package/_assets/{index-Cu7cZeif.js → index-BMoopm2-.js} +1 -1
- package/_assets/{index-C1UOaaoO.js → index-BReAWJ34.js} +1 -1
- package/_assets/{index-D-lT6ZHp.js → index-BTadlrEf.js} +1 -1
- package/_assets/{index-GiJ7q8m3.js → index-BVyKLj9g.js} +1 -1
- package/_assets/{index-8jpO9R0L.js → index-BWwETmQE.js} +1 -1
- package/_assets/{index-BnRijaO7.js → index-Bfbnmm19.js} +2 -2
- package/_assets/{index-dwg60Gnv.js → index-BgabQb2i.js} +1 -1
- package/_assets/{index-pNEW50qZ.js → index-Bggu5dcK.js} +1 -1
- package/_assets/{index-CFCPlMvn.js → index-BkzAB4dC.js} +1 -1
- package/_assets/{index-CrA-gT12.js → index-BlFmY0PY.js} +2 -2
- package/_assets/{index-Cx2Xs8TS.js → index-BvC5hvQr.js} +1 -1
- package/_assets/{index-CVRID3Zs.js → index-Bw8RegM3.js} +1 -1
- package/_assets/{index-DmJ1WEe8.js → index-ByXn6qsZ.js} +1 -1
- package/_assets/{index-BQt-UtVW.js → index-C2dqHPFe.js} +1 -1
- package/_assets/{index-Cqx_iE06.js → index-C2gCqG5-.js} +1 -1
- package/_assets/{index-CakvWn8X.js → index-C5Q9tbiE.js} +2 -2
- package/_assets/{index-BG_zxl6p.js → index-C7mQXKdO.js} +1 -1
- package/_assets/{index-Ds0nhWl1.js → index-CIuQobaT.js} +1 -1
- package/_assets/{index-DzF05fXw.js → index-CKY-zq6_.js} +1 -1
- package/_assets/{index-AUd3llLa.js → index-CMFFdWaD.js} +3 -3
- package/_assets/{index-B47z7qMq.js → index-COXs6Mhj.js} +1 -1
- package/_assets/{index-Qgfkcf-Z.js → index-CSMohmqH.js} +1 -1
- package/_assets/{index-D6orrgpK.js → index-CaO4BbgL.js} +1 -1
- package/_assets/{index-CxFaiS6B.js → index-Cgl5oOLN.js} +1 -1
- package/_assets/{index-CYAsq_LJ.js → index-D4Z2JmNT.js} +1 -1
- package/_assets/{index-HfSTYCId.js → index-DDKTVZmj.js} +1 -1
- package/_assets/{index-Cpx6YfS5.js → index-DLLktYWt.js} +1 -1
- package/_assets/{index-Db5yIiwQ.js → index-DPQIOv9u.js} +1 -1
- package/_assets/{index-By7h7Ees.js → index-DR68c_Xf.js} +1 -1
- package/_assets/{index-DUxAD7Ds.js → index-DZlNnXl_.js} +2 -2
- package/_assets/{index-B3IuheKM.js → index-D_FVnuvd.js} +1 -1
- package/_assets/{index-CXdifgIh.js → index-Dcv3uBNj.js} +1 -1
- package/_assets/{index-SH2zEbyV.js → index-DkxuiR0U.js} +1 -1
- package/_assets/{index-CdIpnfG_.js → index-DrK9O1Pz.js} +1 -1
- package/_assets/index-DvGpQtXK.js +3378 -0
- package/_assets/{index-D56APiYW.js → index-Iv9CW07E.js} +1 -1
- package/_assets/{index-4odeU1-q.js → index-KGamvf3R.js} +8 -8
- package/_assets/{index-C2GswxH6.js → index-KzbPGO4w.js} +1 -1
- package/_assets/{index-DqLl5DCg.js → index-LuVJpw9c.js} +1 -1
- package/_assets/{index-CRwuFsYT.js → index-XPa69X9v.js} +1 -1
- package/_assets/{index-GeaRFVYH.js → index-Y3M9UhW1.js} +3 -3
- package/_assets/{index-xhul-9iX.js → index-Zvh0r5Lt.js} +1 -1
- package/_assets/{index-nBe_oU0G.js → index-cPbHgYyr.js} +1 -1
- package/_assets/{index-CgAxepZC.js → index-fUWjTMSy.js} +1 -1
- package/_assets/{index--2hu34yL.js → index-kngovSRn.js} +1 -1
- package/_assets/{index-Dmg93p28.js → index-rSQnRqcs.js} +1 -1
- package/_assets/{index-Bmjy2mpL.js → index-uRRgUqn2.js} +1 -1
- package/_assets/{index-MmMSnATW.js → index-xqlURRt6.js} +1 -1
- package/_assets/{index-eU7Hyz9Z.js → index-z_VEn6An.js} +1 -1
- package/_assets/{index.es-DHidcgy5.js → index.es-ClGX6azd.js} +1 -1
- package/_assets/{index.es-Cn1zNa1z.js → index.es-DEd0yiWT.js} +4 -4
- package/_assets/{index.es-GVwle0q7.js → index.es-DUY_zrrQ.js} +1 -1
- package/_assets/{localBatchGatewayRequest-VWgW7Rrx.js → localBatchGatewayRequest-DN2xsMJ_.js} +1 -1
- package/_assets/{networks-CDvdXnK2.js → networks-CDFMzeLC.js} +1 -1
- package/_assets/{onramp-DLXpeqxV.js → onramp-BW3vCZnx.js} +1 -1
- package/_assets/{openzeppelin-F7uG1PQF.js → openzeppelin-CUcdj_sx.js} +1 -1
- package/_assets/{parseNft-D-HVZytL.js → parseNft-G6_xBphx.js} +2 -2
- package/_assets/{parseSignature-Ck0-hAYX.js → parseSignature-CIXTBJVX.js} +1 -1
- package/_assets/{parseSignature-Bajk-MJ2.js → parseSignature-DRZnwzny.js} +3 -3
- package/_assets/{passkeys-DTp9eXzY.js → passkeys-Kq30ZnPW.js} +1 -1
- package/_assets/{pay-with-exchange-B7T027Na.js → pay-with-exchange-wv1lVt88.js} +1 -1
- package/_assets/{qr-overlay-D24Rmf2y.js → qr-overlay-BNvjvuvd.js} +1 -1
- package/_assets/{receive-Dpi-pR18.js → receive-BU-20CjU.js} +1 -1
- package/_assets/{resolveImplementation-zRiJR6hj.js → resolveImplementation-C-p0Txrw.js} +1 -1
- package/_assets/{rpc-DBs1enVe.js → rpc-D0gBTa6Z.js} +1 -1
- package/_assets/{secp256k1-DlBFD_9l.js → secp256k1-B3k0VS5Y.js} +1 -1
- package/_assets/{secp256k1-CFlVBTcQ.js → secp256k1-C_-lAZcz.js} +1 -1
- package/_assets/{secp256k1-D988VQxR.js → secp256k1-YCpzKzUb.js} +1 -1
- package/_assets/{send-C--S0H3a.js → send-BRaIAbAO.js} +1 -1
- package/_assets/{send-batch-transaction-BsTouWWn.js → send-batch-transaction-Bab8Fd2d.js} +1 -1
- package/_assets/{send-eip712-transaction-CVPyso6U.js → send-eip712-transaction-CKAs5XET.js} +2 -2
- package/_assets/{send-gasless-transaction-B_ncM11b.js → send-gasless-transaction-CiFZmQQQ.js} +2 -2
- package/_assets/{send-transaction-CQNEiR4D.js → send-transaction-DOvrVTQH.js} +2 -2
- package/_assets/{sendMetaTransaction-BkMNQLKq.js → sendMetaTransaction-D69U0yOu.js} +1 -1
- package/_assets/{sendRawTransaction-eF-4-IOR.js → sendRawTransaction-Cnl8KhyZ.js} +3 -3
- package/_assets/{serializeTransaction-E8IX_hjf.js → serializeTransaction--73AW1zM.js} +1 -1
- package/_assets/{session-proposal-B5Vbxh9X.js → session-proposal-DYdwdKre.js} +1 -1
- package/_assets/{session-request-YtoGiiaC.js → session-request-Dme0ul41.js} +2 -2
- package/_assets/{signing-ChPpUSja.js → signing-Bd3rbnSj.js} +3 -3
- package/_assets/{socials-OPF-4Wmw.js → socials-VohiP86p.js} +1 -1
- package/_assets/{styled-CI0T6-yj.js → styled-CvsbVgfF.js} +2 -2
- package/_assets/{swaps-D9XgTxrT.js → swaps-DKu-ROps.js} +1 -1
- package/_assets/{thirdweb-CJavbJGB.js → thirdweb-BMXspv9l.js} +3 -3
- package/_assets/{to-serializable-transaction-Capw1hGa.js → to-serializable-transaction-CX8P98IC.js} +2 -2
- package/_assets/{trade-encoding-CS-l5HWK.js → trade-encoding-BD8tpz7m.js} +1 -1
- package/_assets/{transactionReceipt-DoRy-YCC.js → transactionReceipt-C3xmpECX.js} +1 -1
- package/_assets/{transactions-DlPEEm5e.js → transactions-8lwN2rpf.js} +1 -1
- package/_assets/{useCreditPacks-_PiP2Q_K.js → useCreditPacks-B-QtC7sA.js} +1 -1
- package/_assets/{useImportable-Dur9WNgJ.js → useImportable-zF3kPKFU.js} +1 -1
- package/_assets/{useInfiniteGrid-OWa5mJdJ.js → useInfiniteGrid-Drc6luef.js} +1 -1
- package/_assets/{useTheme-DpoJyopi.js → useTheme-BXrN5D9V.js} +1 -1
- package/_assets/{verifyHash-BZZQrCdK.js → verifyHash-B5Ov596i.js} +1 -1
- package/_assets/{w3m-modal-BurrNe_2.js → w3m-modal-BfUiYkFq.js} +1 -1
- package/_assets/{w3m-modal-DVcmDyvT.js → w3m-modal-BiPLqXgA.js} +1 -1
- package/_assets/{wait-for-tx-receipt-DABDEQLt.js → wait-for-tx-receipt-DZxMxn7p.js} +1 -1
- package/_assets/{wallets-DsQIZNUu.js → wallets-ZPwMzIt3.js} +5 -5
- package/_assets/{web-connector-CBr7K2EN.js → web-connector-Dsb7R1Dr.js} +3 -3
- package/_assets/{writeContract-Clw7zVob.js → writeContract-BLACgB36.js} +1 -1
- package/_assets/{zoraTestnet-Dofh77OY.js → zoraTestnet-BCAU7V7m.js} +1 -1
- package/index.html +22 -12
- package/package.json +2 -2
- package/sitemap.xml +7 -6
- package/_assets/Creator-CVJd5TOb.js +0 -306
- package/_assets/ItemDetail-CacEb2nn.js +0 -3392
- package/_assets/LazyEmoteControls-DOn7IxHq.js +0 -2
- package/_assets/OutfitDetail-CSx4d1E1.js +0 -334
- package/_assets/builder-dRN2Kgse.js +0 -1
- package/_assets/disposePreview-DIA1G1eQ.js +0 -1
- package/_assets/index-CpUnpBQ7.js +0 -3378
package/index.html
CHANGED
|
@@ -16,12 +16,22 @@
|
|
|
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.7.
|
|
20
|
-
<link rel="apple-touch-icon" sizes="180x180" href="https://cdn.decentraland.org/@dcl/shop/0.7.
|
|
19
|
+
<link rel="icon" type="image/x-icon" href="https://cdn.decentraland.org/@dcl/shop/0.7.1/favicon.ico" sizes="16x16 32x32 48x48" />
|
|
20
|
+
<link rel="apple-touch-icon" sizes="180x180" href="https://cdn.decentraland.org/@dcl/shop/0.7.1/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.7.
|
|
22
|
+
<link rel="manifest" href="https://cdn.decentraland.org/@dcl/shop/0.7.1/site.webmanifest" />
|
|
23
23
|
|
|
24
|
-
<!-- Open Graph
|
|
24
|
+
<!-- Open Graph.
|
|
25
|
+
|
|
26
|
+
These are not just the home page's tags — they are the tags EVERY shared shop link gets. The
|
|
27
|
+
classic social crawlers (Twitterbot, facebookexternalhit, Discordbot, Slackbot, WhatsApp,
|
|
28
|
+
LinkedInBot) do not execute JavaScript, and the CDN serves this same file for every route, so a
|
|
29
|
+
shared item / collection / creator URL is previewed from the block below and never from the
|
|
30
|
+
per-page tags src/hooks/useSeo.ts writes after mount. Keep this card generic and accurate for
|
|
31
|
+
that reason: it has to stand in for the whole site.
|
|
32
|
+
|
|
33
|
+
Making a shared item link carry the ITEM's own image needs the tags injected server-side, before
|
|
34
|
+
the HTML is sent — see the note at the top of src/hooks/useSeo.ts. -->
|
|
25
35
|
<meta property="og:type" content="website" />
|
|
26
36
|
<meta property="og:site_name" content="Decentraland Shop" />
|
|
27
37
|
<meta property="og:title" content="Decentraland Shop | Wearables & Emotes for Your Avatar" />
|
|
@@ -48,7 +58,7 @@
|
|
|
48
58
|
<meta name="twitter:image:alt" content="Decentraland Shop — wearables and emotes for your avatar" />
|
|
49
59
|
|
|
50
60
|
<!-- Sitemap -->
|
|
51
|
-
<link rel="sitemap" type="application/xml" title="Sitemap" href="https://cdn.decentraland.org/@dcl/shop/0.7.
|
|
61
|
+
<link rel="sitemap" type="application/xml" title="Sitemap" href="https://cdn.decentraland.org/@dcl/shop/0.7.1/sitemap.xml" />
|
|
52
62
|
|
|
53
63
|
<!-- Warm the 3D preview / fonts -->
|
|
54
64
|
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
|
@@ -60,13 +70,13 @@
|
|
|
60
70
|
<link rel="preconnect" href="https://wearable-preview.decentraland.org" />
|
|
61
71
|
<link rel="preconnect" href="https://peer.decentraland.zone" crossorigin />
|
|
62
72
|
<link rel="preconnect" href="https://peer.decentraland.org" crossorigin />
|
|
63
|
-
<script type="module" crossorigin src="https://cdn.decentraland.org/@dcl/shop/0.7.
|
|
64
|
-
<link rel="modulepreload" crossorigin href="https://cdn.decentraland.org/@dcl/shop/0.7.
|
|
65
|
-
<link rel="modulepreload" crossorigin href="https://cdn.decentraland.org/@dcl/shop/0.7.
|
|
66
|
-
<link rel="modulepreload" crossorigin href="https://cdn.decentraland.org/@dcl/shop/0.7.
|
|
67
|
-
<link rel="modulepreload" crossorigin href="https://cdn.decentraland.org/@dcl/shop/0.7.
|
|
68
|
-
<link rel="modulepreload" crossorigin href="https://cdn.decentraland.org/@dcl/shop/0.7.
|
|
69
|
-
<link rel="stylesheet" crossorigin href="https://cdn.decentraland.org/@dcl/shop/0.7.
|
|
73
|
+
<script type="module" crossorigin src="https://cdn.decentraland.org/@dcl/shop/0.7.1/_assets/index-DvGpQtXK.js"></script>
|
|
74
|
+
<link rel="modulepreload" crossorigin href="https://cdn.decentraland.org/@dcl/shop/0.7.1/_assets/react-DehiWSvs.js">
|
|
75
|
+
<link rel="modulepreload" crossorigin href="https://cdn.decentraland.org/@dcl/shop/0.7.1/_assets/sentry-973sfbO9.js">
|
|
76
|
+
<link rel="modulepreload" crossorigin href="https://cdn.decentraland.org/@dcl/shop/0.7.1/_assets/dcl-schemas-Dr9BTjb7.js">
|
|
77
|
+
<link rel="modulepreload" crossorigin href="https://cdn.decentraland.org/@dcl/shop/0.7.1/_assets/ethers-CtNGBird.js">
|
|
78
|
+
<link rel="modulepreload" crossorigin href="https://cdn.decentraland.org/@dcl/shop/0.7.1/_assets/intl-CBcMB1D2.js">
|
|
79
|
+
<link rel="stylesheet" crossorigin href="https://cdn.decentraland.org/@dcl/shop/0.7.1/_assets/index-D-NhBWWr.css">
|
|
70
80
|
</head>
|
|
71
81
|
<body>
|
|
72
82
|
<div id="root"></div>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dcl/shop",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.1",
|
|
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": "e1a9b446696ed93576eaeab2eea50af42ea17671"
|
|
12
12
|
}
|
package/sitemap.xml
CHANGED
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
2
|
<!-- Hosts must match the canonical origin index.html declares (https://decentraland.org/shop/): the Shop
|
|
3
3
|
is served BY PATH under /shop, and shop.decentraland.zone does not resolve at all. A sitemap of dead,
|
|
4
|
-
non-canonical URLs is worse than no sitemap.
|
|
4
|
+
non-canonical URLs is worse than no sitemap.
|
|
5
|
+
|
|
6
|
+
Only INDEXABLE routes belong here. A URL whose page sets robots=noindex must not be listed: Search
|
|
7
|
+
Console reports that combination as an error ("Submitted URL marked noindex") and it cannot ever
|
|
8
|
+
produce an indexed result, so listing it only spends crawl budget on a guaranteed rejection. That
|
|
9
|
+
rules out /credits, /cart, /activity, /my-items, /my-favorites, /authorizations, /store-settings,
|
|
10
|
+
/outfits/* and /success — every one of them calls useSeo({ noindex: true }). -->
|
|
5
11
|
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
|
|
6
12
|
<url>
|
|
7
13
|
<loc>https://decentraland.org/shop/</loc>
|
|
@@ -18,9 +24,4 @@
|
|
|
18
24
|
<changefreq>daily</changefreq>
|
|
19
25
|
<priority>0.9</priority>
|
|
20
26
|
</url>
|
|
21
|
-
<url>
|
|
22
|
-
<loc>https://decentraland.org/shop/credits</loc>
|
|
23
|
-
<changefreq>weekly</changefreq>
|
|
24
|
-
<priority>0.7</priority>
|
|
25
|
-
</url>
|
|
26
27
|
</urlset>
|
|
@@ -1,306 +0,0 @@
|
|
|
1
|
-
import{d as de,j as e,L as Ee,u as Fe,e as Le,r as f}from"./react-DehiWSvs.js";import{t as he,G as Ae,J as Z,H as X,s,bG as Ie,aw as Re,bH as ze,d as o,bI as Be,bJ as ee,B as Me,ad as me,W as xe,bk as _e,k as Te,y as ue,br as We,bl as Ge,bm as De,I as te,c as Oe,q as Ke,n as He,ae as Ue,ai as A,aj as oe,bK as re,bL as qe}from"./index-CpUnpBQ7.js";import{d as Ve,P as Je,C as Qe,a as Ye,b as Ze,A as Xe,c as et,e as tt}from"./collectionPage.styles-DaKP3DX-.js";import{g as ot,h as rt,i as it,j as st,k as at,C as nt,l as lt,o as ct,m as dt,n as ht,M as mt,E as xt,p as ut,q as pt,r as gt,s as ft,t as bt}from"./Assets.styles-NQkvfYq_.js";import{S as ie,R as wt,F as jt,e as vt}from"./categories-2VrlGaC_.js";import{L as se}from"./LoadMore-CC_UzQ34.js";import{u as ae}from"./useInfiniteGrid-OWa5mJdJ.js";import{E as W}from"./ErrorNotice-BEc3g8r8.js";import{G as ne}from"./grid.styles-B1gNJ9t8.js";import"./sentry-973sfbO9.js";import"./dcl-schemas-Dr9BTjb7.js";import"./ethers-CtNGBird.js";import"./intl-CBcMB1D2.js";import"./Tooltip-D1ZBIqYA.js";function yt(r){const{gridLoading:i,gridError:a,gridCount:n,baselinePending:h,baselineError:l,baselineCount:m}=r;return i?"skeletons":a?"error":n>0?"items":h?"skeletons":l?"error":m===0?"no-creations":"filters"}const{colors:b,radius:pe,media:Ct}=he,kt=s.article`
|
|
2
|
-
height: 300px;
|
|
3
|
-
background: ${b.bg};
|
|
4
|
-
border-radius: ${pe.card};
|
|
5
|
-
overflow: hidden;
|
|
6
|
-
position: relative;
|
|
7
|
-
isolation: isolate;
|
|
8
|
-
display: flex;
|
|
9
|
-
flex-direction: column;
|
|
10
|
-
cursor: pointer;
|
|
11
|
-
transition: box-shadow 0.15s ease;
|
|
12
|
-
|
|
13
|
-
&::after {
|
|
14
|
-
${Ae};
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
&:focus-visible {
|
|
18
|
-
${Z};
|
|
19
|
-
}
|
|
20
|
-
&:focus-visible::after {
|
|
21
|
-
${X};
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
// The swap is a pointer affordance only: keyboard focus must not hide the creator row, whose profile
|
|
25
|
-
// link is focusable (visibility: hidden would drop it from the tab order). Enter/Space on the card
|
|
26
|
-
// already opens the collection.
|
|
27
|
-
@media (hover: hover) {
|
|
28
|
-
&:hover {
|
|
29
|
-
${Z};
|
|
30
|
-
}
|
|
31
|
-
&:hover::after {
|
|
32
|
-
${X};
|
|
33
|
-
}
|
|
34
|
-
&:hover [data-view] {
|
|
35
|
-
visibility: visible;
|
|
36
|
-
}
|
|
37
|
-
&:hover [data-meta] {
|
|
38
|
-
visibility: hidden;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
`,$t=s.div`
|
|
42
|
-
position: relative;
|
|
43
|
-
flex: 1;
|
|
44
|
-
min-height: 0;
|
|
45
|
-
background: ${b.media};
|
|
46
|
-
overflow: hidden;
|
|
47
|
-
`,St=s.img`
|
|
48
|
-
width: 100%;
|
|
49
|
-
height: 100%;
|
|
50
|
-
object-fit: cover;
|
|
51
|
-
display: block;
|
|
52
|
-
`,Nt=s(Ie)`
|
|
53
|
-
& [data-testid='coll-thumb-cell'] img {
|
|
54
|
-
object-fit: contain;
|
|
55
|
-
padding: 10px;
|
|
56
|
-
}
|
|
57
|
-
`,Pt=s.div`
|
|
58
|
-
flex: 0 0 102px;
|
|
59
|
-
height: 102px;
|
|
60
|
-
padding: 12px 14px;
|
|
61
|
-
display: flex;
|
|
62
|
-
flex-direction: column;
|
|
63
|
-
gap: 8px;
|
|
64
|
-
`,Et=s.h3`
|
|
65
|
-
margin: 0;
|
|
66
|
-
font-weight: 700;
|
|
67
|
-
font-size: 18px;
|
|
68
|
-
line-height: 1.3;
|
|
69
|
-
color: ${b.text};
|
|
70
|
-
white-space: nowrap;
|
|
71
|
-
overflow: hidden;
|
|
72
|
-
text-overflow: ellipsis;
|
|
73
|
-
|
|
74
|
-
${Ct.maxWidth("mobile")} {
|
|
75
|
-
font-size: 16px;
|
|
76
|
-
}
|
|
77
|
-
`,Ft=s.div`
|
|
78
|
-
flex: 1;
|
|
79
|
-
min-height: 0;
|
|
80
|
-
display: grid;
|
|
81
|
-
grid-template-areas: 'stack';
|
|
82
|
-
align-items: center;
|
|
83
|
-
|
|
84
|
-
& > * {
|
|
85
|
-
grid-area: stack;
|
|
86
|
-
}
|
|
87
|
-
`,Lt=s.div`
|
|
88
|
-
display: flex;
|
|
89
|
-
align-items: center;
|
|
90
|
-
justify-content: space-between;
|
|
91
|
-
gap: 10px;
|
|
92
|
-
`,At=s(Re)`
|
|
93
|
-
min-width: 0;
|
|
94
|
-
color: ${b.muted};
|
|
95
|
-
|
|
96
|
-
& [data-avatar] {
|
|
97
|
-
width: 24px;
|
|
98
|
-
height: 24px;
|
|
99
|
-
}
|
|
100
|
-
& [data-testid='creator-name'] {
|
|
101
|
-
font-size: 14px;
|
|
102
|
-
}
|
|
103
|
-
& [data-testid='creator-display'] {
|
|
104
|
-
color: ${b.dclRed};
|
|
105
|
-
font-weight: 700;
|
|
106
|
-
}
|
|
107
|
-
`,It=s.span`
|
|
108
|
-
min-width: 0;
|
|
109
|
-
`,Rt=s.span`
|
|
110
|
-
flex: none;
|
|
111
|
-
color: ${b.text};
|
|
112
|
-
font-weight: 600;
|
|
113
|
-
font-size: 14px;
|
|
114
|
-
white-space: nowrap;
|
|
115
|
-
`,zt=s.button`
|
|
116
|
-
visibility: hidden;
|
|
117
|
-
width: 100%;
|
|
118
|
-
height: 44px;
|
|
119
|
-
display: flex;
|
|
120
|
-
align-items: center;
|
|
121
|
-
justify-content: center;
|
|
122
|
-
background: ${b.accent};
|
|
123
|
-
color: ${b.softWhite};
|
|
124
|
-
border: 0;
|
|
125
|
-
border-radius: ${pe.btn};
|
|
126
|
-
font-weight: 700;
|
|
127
|
-
font-size: 13px;
|
|
128
|
-
text-transform: uppercase;
|
|
129
|
-
letter-spacing: 0.046em;
|
|
130
|
-
transition: background 0.15s ease;
|
|
131
|
-
|
|
132
|
-
&:hover {
|
|
133
|
-
background: ${b.accentHover};
|
|
134
|
-
}
|
|
135
|
-
&:active {
|
|
136
|
-
background: ${b.accentActive};
|
|
137
|
-
}
|
|
138
|
-
`;function Bt({collection:r,cover:i,itemCount:a}){const n=de(),{contractAddress:h,name:l,creator:m}=r,C=i==null||a==null,{data:x}=ze(h,C),j=i==null?(x==null?void 0:x.items)??[]:[],g=a??(x==null?void 0:x.total);function w(){n(`/collection/${h}`)}return e.jsxs(kt,{"data-testid":"coll-card",role:"link",tabIndex:0,onClick:w,onKeyDown:u=>{(u.key==="Enter"||u.key===" ")&&(u.preventDefault(),w())},children:[e.jsx($t,{children:i?e.jsx(St,{"data-testid":"coll-card-img",src:i,alt:"",loading:"lazy"}):j.length>0?e.jsx(Nt,{items:j,tinted:!1}):null}),e.jsxs(Pt,{children:[e.jsx(Et,{title:l,children:l}),e.jsxs(Ft,{children:[e.jsxs(Lt,{"data-meta":!0,"data-testid":"coll-card-meta",children:[m?e.jsx(At,{address:m,linkToProfile:!0}):e.jsx(It,{children:" "}),e.jsx(Rt,{children:g==null?"…":o("collectionCard.itemCount",{count:g})})]}),e.jsx(zt,{"data-view":!0,"data-testid":"coll-card-view",onClick:u=>{u.stopPropagation(),w()},tabIndex:-1,children:o("collectionCard.viewCollection")})]})]})]})}function Mt({address:r,className:i=""}){const a=Be(),n=ee(l=>l.followed.includes(r.toLowerCase())),h=ee(l=>l.toggle);return!a||!r?null:e.jsx(Me,{type:"button",size:"sm",variant:n?"ghost":"outline",className:i||void 0,"data-testid":"follow-button","aria-pressed":n,title:n?o("creator.unfollowTitle"):o("creator.followTitle"),onClick:()=>h(r),children:n?o("creator.following"):o("creator.follow")})}const{colors:y,radius:ge,media:v}=he,fe=me`
|
|
139
|
-
display: inline-flex;
|
|
140
|
-
align-items: center;
|
|
141
|
-
justify-content: center;
|
|
142
|
-
height: 44px;
|
|
143
|
-
padding: 0 28px;
|
|
144
|
-
border: 2px solid ${y.white};
|
|
145
|
-
border-radius: ${ge.btn};
|
|
146
|
-
background: transparent;
|
|
147
|
-
color: ${y.white};
|
|
148
|
-
font-weight: 600;
|
|
149
|
-
font-size: 13px;
|
|
150
|
-
text-transform: uppercase;
|
|
151
|
-
letter-spacing: 0.046em;
|
|
152
|
-
text-decoration: none;
|
|
153
|
-
`,_t=s.section`
|
|
154
|
-
position: relative;
|
|
155
|
-
border-radius: ${ge.card};
|
|
156
|
-
overflow: hidden;
|
|
157
|
-
margin-bottom: 24px;
|
|
158
|
-
min-height: 360px;
|
|
159
|
-
display: flex;
|
|
160
|
-
align-items: center;
|
|
161
|
-
justify-content: center;
|
|
162
|
-
|
|
163
|
-
&& .creator-hero__follow {
|
|
164
|
-
${fe};
|
|
165
|
-
}
|
|
166
|
-
&& .creator-hero__follow:hover:not(:disabled) {
|
|
167
|
-
background: rgba(255, 255, 255, 0.14);
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
${v.maxWidth("mobile")} {
|
|
171
|
-
min-height: 260px;
|
|
172
|
-
}
|
|
173
|
-
`,Tt=s.div`
|
|
174
|
-
position: absolute;
|
|
175
|
-
inset: 0;
|
|
176
|
-
z-index: 0;
|
|
177
|
-
`,Wt=s.img`
|
|
178
|
-
width: 100%;
|
|
179
|
-
height: 100%;
|
|
180
|
-
object-fit: cover;
|
|
181
|
-
display: block;
|
|
182
|
-
`,Gt=s.div`
|
|
183
|
-
position: absolute;
|
|
184
|
-
inset: 0;
|
|
185
|
-
background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.55) 100%);
|
|
186
|
-
`,Dt=s.div`
|
|
187
|
-
position: absolute;
|
|
188
|
-
top: 16px;
|
|
189
|
-
right: 16px;
|
|
190
|
-
z-index: 2;
|
|
191
|
-
display: flex;
|
|
192
|
-
align-items: center;
|
|
193
|
-
gap: 8px;
|
|
194
|
-
|
|
195
|
-
${v.maxWidth("mobile")} {
|
|
196
|
-
top: 12px;
|
|
197
|
-
right: 12px;
|
|
198
|
-
gap: 6px;
|
|
199
|
-
}
|
|
200
|
-
`,be=me`
|
|
201
|
-
display: flex;
|
|
202
|
-
align-items: center;
|
|
203
|
-
justify-content: center;
|
|
204
|
-
color: ${y.white};
|
|
205
|
-
transition: opacity 0.15s linear;
|
|
206
|
-
|
|
207
|
-
&:hover {
|
|
208
|
-
opacity: 0.8;
|
|
209
|
-
}
|
|
210
|
-
& .ico {
|
|
211
|
-
width: 36px;
|
|
212
|
-
height: 36px;
|
|
213
|
-
}
|
|
214
|
-
${v.maxWidth("mobile")} {
|
|
215
|
-
& .ico {
|
|
216
|
-
width: 30px;
|
|
217
|
-
height: 30px;
|
|
218
|
-
}
|
|
219
|
-
}
|
|
220
|
-
`,Ot=s.a`
|
|
221
|
-
${be};
|
|
222
|
-
`,Kt=s(Ee)`
|
|
223
|
-
${be};
|
|
224
|
-
width: 32px;
|
|
225
|
-
height: 32px;
|
|
226
|
-
border-radius: 50%;
|
|
227
|
-
border: 2px solid ${y.white};
|
|
228
|
-
transition: background-color 0.15s linear;
|
|
229
|
-
|
|
230
|
-
&:hover {
|
|
231
|
-
opacity: 1;
|
|
232
|
-
background: rgba(255, 255, 255, 0.24);
|
|
233
|
-
}
|
|
234
|
-
& .ico {
|
|
235
|
-
width: 16px;
|
|
236
|
-
height: 16px;
|
|
237
|
-
}
|
|
238
|
-
${v.maxWidth("mobile")} {
|
|
239
|
-
width: 28px;
|
|
240
|
-
height: 28px;
|
|
241
|
-
& .ico {
|
|
242
|
-
width: 14px;
|
|
243
|
-
height: 14px;
|
|
244
|
-
}
|
|
245
|
-
}
|
|
246
|
-
`,Ht=s.div`
|
|
247
|
-
position: relative;
|
|
248
|
-
z-index: 1;
|
|
249
|
-
display: flex;
|
|
250
|
-
flex-direction: column;
|
|
251
|
-
align-items: center;
|
|
252
|
-
text-align: center;
|
|
253
|
-
gap: 24px;
|
|
254
|
-
padding: 32px 20px;
|
|
255
|
-
|
|
256
|
-
${v.maxWidth("mobile")} {
|
|
257
|
-
padding: 56px 16px 24px;
|
|
258
|
-
}
|
|
259
|
-
`,le=s.img`
|
|
260
|
-
display: block;
|
|
261
|
-
width: 112px;
|
|
262
|
-
height: 112px;
|
|
263
|
-
border-radius: 50%;
|
|
264
|
-
object-fit: cover;
|
|
265
|
-
border: 4px solid ${y.white};
|
|
266
|
-
box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
|
|
267
|
-
background: #ff4bed;
|
|
268
|
-
|
|
269
|
-
${v.maxWidth("mobile")} {
|
|
270
|
-
width: 88px;
|
|
271
|
-
height: 88px;
|
|
272
|
-
}
|
|
273
|
-
`,Ut=s.h2`
|
|
274
|
-
margin: 0;
|
|
275
|
-
font-size: 18px;
|
|
276
|
-
font-weight: 700;
|
|
277
|
-
color: ${y.white};
|
|
278
|
-
line-height: 1.6;
|
|
279
|
-
|
|
280
|
-
${v.maxWidth("mobile")} {
|
|
281
|
-
font-size: 16px;
|
|
282
|
-
}
|
|
283
|
-
`,qt=s.p`
|
|
284
|
-
margin: 0;
|
|
285
|
-
font-size: 15px;
|
|
286
|
-
color: ${y.white};
|
|
287
|
-
line-height: 1.6;
|
|
288
|
-
max-width: 520px;
|
|
289
|
-
|
|
290
|
-
${v.maxWidth("mobile")} {
|
|
291
|
-
font-size: 14px;
|
|
292
|
-
}
|
|
293
|
-
`,Vt=s.div`
|
|
294
|
-
display: flex;
|
|
295
|
-
align-items: center;
|
|
296
|
-
gap: 12px;
|
|
297
|
-
flex-wrap: wrap;
|
|
298
|
-
justify-content: center;
|
|
299
|
-
`,Jt=s.a`
|
|
300
|
-
${fe};
|
|
301
|
-
transition: background 0.15s ease;
|
|
302
|
-
|
|
303
|
-
&:hover {
|
|
304
|
-
background: rgba(255, 255, 255, 0.14);
|
|
305
|
-
}
|
|
306
|
-
`,Qt={website:"website",twitter:"twitter",discord:"discord",facebook:"facebook"};function Yt({address:r}){var u,k;const{data:i}=xe(r),{data:a}=_e(r),n=Te(c=>{var $;return($=c.session)==null?void 0:$.address}),h=!!n&&n.toLowerCase()===r.toLowerCase(),l=(i==null?void 0:i.name)||ue(r),m=(k=(u=i==null?void 0:i.avatar)==null?void 0:u.snapshots)==null?void 0:k.face256,C=(a==null?void 0:a.cover)||Ve,x=a==null?void 0:a.description,j=`${Oe.profileUrl}/${r}`,g=We.filter(c=>a==null?void 0:a.links[c]),w=Ge(De({name:i==null?void 0:i.name,hasClaimedName:i==null?void 0:i.hasClaimedName,ethAddress:(i==null?void 0:i.ethAddress)??r}));return e.jsxs(_t,{"aria-label":`${l} storefront`,children:[e.jsxs(Tt,{children:[e.jsx(Wt,{src:C,alt:"",loading:"eager"}),e.jsx(Gt,{"aria-hidden":!0})]}),(g.length>0||h)&&e.jsxs(Dt,{children:[g.map(c=>e.jsx(Ot,{"data-testid":"creator-hero-link",href:(a==null?void 0:a.links[c])??"",target:"_blank",rel:"noopener noreferrer",title:o(`creator.link.${c}`),"aria-label":o(`creator.link.${c}`),children:e.jsx(te,{name:Qt[c]})},c)),h&&e.jsx(Kt,{to:"/store-settings",title:o("creator.editStore"),"aria-label":o("creator.editStore"),children:e.jsx(te,{name:"pen"})})]}),e.jsxs(Ht,{children:[m?e.jsx(le,{src:m,alt:"",loading:"eager",style:{backgroundColor:w}}):e.jsx(le,{as:"span","aria-hidden":!0,style:{backgroundColor:w}}),e.jsxs("div",{children:[e.jsx(Ut,{children:l}),x?e.jsx(qt,{children:x}):null]}),e.jsxs(Vt,{children:[e.jsx(Jt,{"data-testid":"creator-hero-view",href:j,target:"_blank",rel:"noopener noreferrer",children:o("creator.viewProfile")}),e.jsx(Mt,{address:r,className:"creator-hero__follow"})]})]})]})}const ce=48;function xo(){const{address:r}=Fe(),i=de(),[a]=Le(),n=a.has("collections"),{data:h}=xe(r),l=(h==null?void 0:h.name)||(r?ue(r):o("creator.fallbackName"));Ke({title:l,description:o("seo.creator.description",{name:l})});const[m,C]=f.useState("all"),[x,j]=f.useState(null),[g,w]=f.useState([]),[u,k]=f.useState(""),[c,$]=f.useState(""),[N,I]=f.useState("all"),[R,z]=f.useState(!1),[G,we]=f.useState("newest"),[E,P]=f.useState(!1);f.useEffect(()=>{if(!E)return;const t=T=>{T.key==="Escape"&&P(!1)};document.addEventListener("keydown",t);const d=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.removeEventListener("keydown",t),document.body.style.overflow=d}},[E]);const D=u&&!Number.isNaN(Number(u))?Number(u):void 0,O=c&&!Number.isNaN(Number(c))?Number(c):void 0,je=x?vt[x]:void 0,ve=(ie.find(t=>t.key===G)??ie[0]).server,K={creator:r,category:m,rarities:g.length?g:void 0,wearableCategories:je,minPriceCredits:D,maxPriceCredits:O,isWearableSmart:R||void 0,isOnSale:N==="all"?void 0:N==="on_sale",sortBy:ve},{items:B,total:ye,isLoading:Ce,isPlaceholderData:ke,error:H,hasNextPage:$e,isFetchingNextPage:U,isFetchNextPageError:Se,fetchNextPage:Ne}=ae(["creator-items",K],t=>re({...K,first:ce,skip:t}),{enabled:!!r&&!n}),F=He({queryKey:["creator-item-count",r],queryFn:()=>re({creator:r,first:1}).then(t=>t.total),enabled:!!r}),p=ae(["creator-collections",r],t=>qe(r,{first:ce,skip:t}).then(d=>({items:d.collections,total:d.total})),{enabled:!!r&&n});function q(t){C(t),j(null),n&&V()}function V(){const t=new URLSearchParams(a);t.delete("collections");const d=t.toString();i({search:d?`?${d}`:""},{replace:!0})}function Pe(){if(n){V();return}const t=new URLSearchParams(a);t.delete("collections");const d=t.toString();i({search:d?`?${d}&collections`:"?collections"},{replace:!0})}function J(t){w(d=>d.includes(t)?d.filter(T=>T!==t):[...d,t])}function Q(){C("all"),j(null),w([]),k(""),$(""),I("all"),z(!1)}const S=[];(m==="wearable"||m==="emote")&&S.push({key:"category",label:o(m==="emote"?"categories.emotes":"categories.wearables"),onRemove:()=>q("all")}),(D!=null||O!=null)&&S.push({key:"price",label:o("filter.price"),onRemove:()=>{k(""),$("")}});for(const t of wt)g.includes(t)&&S.push({key:`rarity-${t}`,label:Ue(t),onRemove:()=>J(t)});R&&S.push({key:"smart",label:o("filter.smart"),onRemove:()=>z(!1)}),N!=="all"&&S.push({key:"status",label:N==="on_sale"?o("filter.onSale"):o("filter.notForSale"),onRemove:()=>I("all")});const L=yt({gridLoading:Ce||ke,gridError:!!H,gridCount:B.length,baselinePending:F.isPending,baselineError:F.isError,baselineCount:F.data}),M=L==="skeletons",Y=B.filter(t=>t.priceCredits>0),_=L==="items"||L==="skeletons"?null:L;return e.jsxs(Je,{children:[e.jsxs(Qe,{"aria-label":o("creator.breadcrumbAria"),children:[e.jsx(Ye,{onClick:()=>i("/items"),children:o("creator.breadcrumb")}),e.jsx("span",{children:"/"}),e.jsx(Ze,{children:l})]}),r?e.jsx(Yt,{address:r}):null,!n&&!M&&Y.length>0?e.jsx(Xe,{items:Y,source:"creator"}):null,e.jsxs(ot,{children:[E?e.jsx(rt,{onClick:()=>P(!1),"aria-hidden":!0}):null,e.jsxs(it,{"data-open":E||void 0,"data-testid":"creator-sidebar",children:[e.jsxs(st,{children:[e.jsx(at,{children:o("assets.filters")}),e.jsx(nt,{onClick:()=>P(!1),"aria-label":o("assets.closeFilters"),children:"✕"})]}),e.jsx(lt,{children:e.jsx(ct,{category:m,subCategory:x,onCategory:q,onSub:j,priceMin:u,priceMax:c,onPriceMin:k,onPriceMax:$,rarities:g,onToggleRarity:J,status:N,onStatus:I,smart:R,onSmart:z,hideNames:!0,collections:n,onCollections:Pe})}),e.jsx(dt,{children:e.jsx(ht,{type:"button",onClick:()=>P(!1),children:o("assets.showItems")})})]}),e.jsx(mt,{children:n?e.jsxs(e.Fragment,{children:[e.jsx(et,{children:e.jsx(tt,{children:p.isLoading?"…":o("creator.collectionsCount",{count:p.total})})}),p.error?e.jsx(W,{message:o("creator.error")}):null,e.jsx(ne,{"data-variant":"collections",children:p.isLoading?e.jsx(A,{count:9}):e.jsxs(e.Fragment,{children:[p.items.map(t=>e.jsx(Bt,{collection:t,itemCount:t.itemCount},t.contractAddress)),p.isFetchingNextPage?e.jsx(A,{count:6}):null]})}),e.jsx(se,{hasNextPage:p.hasNextPage,isFetching:p.isFetchingNextPage,isError:p.isFetchNextPageError,onLoadMore:()=>void p.fetchNextPage()}),!p.isLoading&&!p.error&&p.items.length===0?e.jsx("p",{className:"muted",children:o("creator.collectionsEmpty")}):null]}):e.jsxs(e.Fragment,{children:[e.jsx(jt,{sort:G,onSort:we,total:ye,loading:M,onOpenFilters:()=>P(!0),chips:S,onClearChips:Q}),H?e.jsx(W,{message:o("creator.error"),testId:"creator-error"}):null,e.jsx(ne,{"data-testid":"creator-grid",children:M?e.jsx(A,{count:15}):e.jsxs(e.Fragment,{children:[B.map(t=>t.priceCredits>0?e.jsx(oe,{item:t},t.id):e.jsx(oe,{item:t,mode:"view"},t.id)),U?e.jsx(A,{count:6}):null]})}),e.jsx(se,{hasNextPage:$e,isFetching:U,isError:Se,onLoadMore:()=>void Ne()}),_==="error"?e.jsx(W,{message:o("creator.error"),testId:"creator-empty-error"}):_==="no-creations"?e.jsx("p",{className:"muted","data-testid":"creator-empty-none",children:o("creator.emptyNoCreations")}):_==="filters"?e.jsxs(xt,{"data-testid":"creator-empty-filters",children:[e.jsxs(ut,{children:[e.jsx(pt,{children:o("creator.emptyFilters.title")}),e.jsx(gt,{children:o("creator.emptyFilters.body",{count:F.data??0})})]}),e.jsx(ft,{children:e.jsx(bt,{type:"button",onClick:Q,children:o("filterBar.clearAll")})})]}):null]})})]})]})}export{xo as Creator,xo as default};
|