@dcl/shop 0.1.0-29233106796.commit-1837efd → 0.1.0-29234430899.commit-b128818
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/{AnimatedBackground-C0rqDJfb.js → AnimatedBackground-CKEsT399.js} +3 -3
- package/assets/{Assets-DFF19cjO.js → Assets-Dai5_IuB.js} +1 -1
- package/assets/{Button-uGoMyMeg.js → Button-DpjuPb92.js} +1 -1
- package/assets/{Cart-bVoFfuT2.js → Cart-CLfEm6WN.js} +1 -1
- package/assets/{CircularProgress-Ca679YX-.js → CircularProgress-KdpY3EGB.js} +1 -1
- package/assets/Collection-DgScKUIv.js +1 -0
- package/assets/{Creator-CEshnkfr.js → Creator-5a_oTe-y.js} +1 -1
- package/assets/{ExchangeController-CFvT4C3L.js → ExchangeController-oZNXj7X6.js} +1 -1
- package/assets/{GetCredits-D48kUeN-.js → GetCredits-DWb35m-Q.js} +2 -2
- package/assets/{HelpersUtil-DSOtZH4j.js → HelpersUtil-CTwz2s74.js} +1 -1
- package/assets/{ImportListings-DN6Tu-bh.js → ImportListings-DTFugBMJ.js} +1 -1
- package/assets/ItemDetail-DXw82V2G.js +2 -0
- package/assets/{Market-KfYPcfQF.js → Market-Dfr3LLIV.js} +1 -1
- package/assets/{MenuItem-6nwFKjkW.js → MenuItem-o-20zXXE.js} +1 -1
- package/assets/{MyAssets-BXYso89u.js → MyAssets-DdgXhpMB.js} +1 -1
- package/assets/{MyFavorites-6TD3GhQr.js → MyFavorites-vi451m99.js} +1 -1
- package/assets/{MyPurchases-DPAy76Q8.js → MyPurchases-C7RgW-LB.js} +1 -1
- package/assets/{NotFound-CXoM3h2z.js → NotFound-ZPFfG4jY.js} +1 -1
- package/assets/{RealCheckout-75GM0cgX.js → RealCheckout-DYoDB8IZ.js} +1 -1
- package/assets/{ShopFooterInner-C274TFSL.js → ShopFooterInner-DB_G1DDJ.js} +2 -2
- package/assets/Success-Ia2Frheh.js +1 -0
- package/assets/{SvgIcon-DuD4CLX1.js → SvgIcon-giTpgtZF.js} +1 -1
- package/assets/{SwapController-Bt0cz6Wd.js → SwapController-qYPQahvq.js} +1 -1
- package/assets/{TradeService-DYLc9PvE.js → TradeService-8W5k5_NM.js} +1 -1
- package/assets/{W3MFrameProviderSingleton-BvhNgFgm.js → W3MFrameProviderSingleton-DQr9Losr.js} +3 -3
- package/assets/{WebCryptoP256-CmPjTQJj.js → WebCryptoP256-DBOlzwM3.js} +1 -1
- package/assets/{basic-B0YfIqrx.js → basic-COzjJhP8.js} +1 -1
- package/assets/{biconomy-ge27Lvzm.js → biconomy-CsNH_JzL.js} +1 -1
- package/assets/{buy-CtGOLfNq.js → buy-C5Kfph9-.js} +1 -1
- package/assets/{buy-gasless-RvPPxhUM.js → buy-gasless-DNymKLbe.js} +1 -1
- package/assets/{ccip-I5jvI7YU.js → ccip-B-oTdbWW.js} +1 -1
- package/assets/{ccip-Dj85jtj6.js → ccip-CeNzAVDf.js} +1 -1
- package/assets/{collection-DttFUtCF.js → collection-DXaht5d-.js} +1 -1
- package/assets/{controller-KIszeBL2.js → controller-DkTbmII1.js} +2 -2
- package/assets/{core-ov94tG9b.js → core-cVsnUO7j.js} +4 -4
- package/assets/{custom-5PrshmtG.js → custom-DlDhJj0y.js} +1 -1
- package/assets/{data-capture-lUD162xM.js → data-capture-CuCwNcmh.js} +1 -1
- package/assets/decimals-CJgePkAw.js +1 -0
- package/assets/{decimals-DpraMyBi.js → decimals-Uyusefk9.js} +1 -1
- package/assets/{detectExtension-aE5lnWvs.js → detectExtension-BC-65g5k.js} +1 -1
- package/assets/{email-CthjyMNP.js → email-DA9A8Apl.js} +1 -1
- package/assets/{embedded-wallet-BJY3GXC2.js → embedded-wallet-Chhfuo2h.js} +1 -1
- package/assets/{engine-j-oLBjOz.js → engine-BL0rEhzP.js} +1 -1
- package/assets/{estimate-l1-fee-DjWZekSm.js → estimate-l1-fee-B8pgeJjj.js} +1 -1
- package/assets/{eth_estimateGas-DN3qr8TB.js → eth_estimateGas-DPemo4F8.js} +1 -1
- package/assets/{eth_getStorageAt-DQzkgcMe.js → eth_getStorageAt-DMx6Wb4U.js} +1 -1
- package/assets/{eth_getTransactionCount-DM4ijSWf.js → eth_getTransactionCount-AwTF4JZd.js} +1 -1
- package/assets/{extractIPFS-iOFrfwzj.js → extractIPFS-NpLIVoPf.js} +1 -1
- package/assets/{features-B2Sp0NPq.js → features-Dfv9Vd4c.js} +1 -1
- package/assets/{fetchTokenMetadata-BuZDzhII.js → fetchTokenMetadata-Dj5jyX-h.js} +2 -2
- package/assets/{generateUtilityClasses-EHQxwZec.js → generateUtilityClasses-Z38h1HWn.js} +1 -1
- package/assets/{get-ecosystem-wallet-info-f_luxiNk.js → get-ecosystem-wallet-info-yVlYdO6L.js} +1 -1
- package/assets/{getBalance-DR8safQ4.js → getBalance-D-mZTp3N.js} +1 -1
- package/assets/{getInstalledModules-DYdUHIJC.js → getInstalledModules-D0B9RNA-.js} +1 -1
- package/assets/{getNFT-BRjpGSIo.js → getNFT-C9SV4hw1.js} +2 -2
- package/assets/{getNFT-DRWdoeee.js → getNFT-D4Gi4ReE.js} +1 -1
- package/assets/{hashTypedData-DLv4vmSt.js → hashTypedData-7rFrbXrc.js} +1 -1
- package/assets/{hashTypedData-CfSRA3ti.js → hashTypedData-DqMZpBsd.js} +1 -1
- package/assets/{import-B7IrqJHM.js → import-BJ7isBCH.js} +1 -1
- package/assets/{in-app-wallet-calls-DArzhQxl.js → in-app-wallet-calls-BsMClTBT.js} +1 -1
- package/assets/{index-B-B0JHcE.js → index-Aflzdw-J.js} +1 -1
- package/assets/{index-Catw56Zo.js → index-B9G6bTiG.js} +1 -1
- package/assets/{index-BN--SoPG.js → index-BBAU5PlB.js} +1 -1
- package/assets/{index-QP8xnR1y.js → index-BMjKJ4VE.js} +1 -1
- package/assets/{index-7RiTEasz.js → index-BMsA1xVS.js} +1 -1
- package/assets/{index-D9dKa_F_.js → index-BNFiFGxc.js} +1 -1
- package/assets/{index-D8yull60.js → index-BSsMCEFa.js} +5 -5
- package/assets/{index-hm6YyqJl.js → index-BYM1gS0r.js} +2 -2
- package/assets/{index-mQkXd2DT.js → index-BdE-pQwQ.js} +1 -1
- package/assets/{index-C0naoCgt.js → index-BdzGg5yY.js} +1 -1
- package/assets/{index-CN5d5qP-.js → index-BevPhWwc.js} +3 -3
- package/assets/{index-Co5EcXpK.js → index-BgqNc5ec.js} +1 -1
- package/assets/{index-bhBCwNAI.js → index-BsDn5nsX.js} +1 -1
- package/assets/{index-Dl-2j4dO.js → index-BsWYArQK.js} +1 -1
- package/assets/{index-D2X-VE01.js → index-Btc6SAdz.js} +1 -1
- package/assets/{index-CrfX_nUp.js → index-Bx3zWKtU.js} +1 -1
- package/assets/{index-CRCB75oU.js → index-C1iY9Zdw.js} +1 -1
- package/assets/{index-D4hUhx_k.js → index-C6_Ura8O.js} +2 -2
- package/assets/{index-Dr-5ALhc.js → index-CNcPG7eK.js} +1 -1
- package/assets/{index-Bn5lQZ1w.js → index-CPwIranJ.js} +1 -1
- package/assets/{index-DjLIZOTh.js → index-CRc2eQbN.js} +1 -1
- package/assets/{index-DxiDSDBc.js → index-CV3sPOcN.js} +1 -1
- package/assets/{index-CEMLnpSr.js → index-Cbc-CLUE.js} +1 -1
- package/assets/{index-BVKDtuC0.js → index-CcvYkm8Z.js} +1 -1
- package/assets/{index-DMKKgcdZ.js → index-CfFBBjXz.js} +1 -1
- package/assets/{index-BsihGVe1.js → index-Cm8tbfVg.js} +1 -1
- package/assets/{index-Br04ERn8.js → index-CoXZJqw9.js} +1 -1
- package/assets/{index-DbCLSKdx.js → index-Cqm0_OGP.js} +1 -1
- package/assets/{index-Bq01IzMZ.js → index-CvcmZEKw.js} +1 -1
- package/assets/{index-DRIZge00.js → index-Cwt4lm72.js} +1 -1
- package/assets/{index-BILR6PXd.js → index-D1X2kWsP.js} +1 -1
- package/assets/{index-CyLTth0X.js → index-D1jzkmZd.js} +3 -3
- package/assets/{index-BP-fVzDu.js → index-D7iVarpf.js} +1 -1
- package/assets/{index-FgCfQjOt.js → index-D8XxrxeW.js} +1 -1
- package/assets/{index-DrNzHQM5.js → index-DAglboNg.js} +1 -1
- package/assets/{index-KO5jocfW.js → index-DFTMo0Zw.js} +1 -1
- package/assets/{index-DlKR3Fym.js → index-DQkOtUhZ.js} +1 -1
- package/assets/{index-CXqoUgKu.js → index-DRdzm-Ee.js} +1 -1
- package/assets/{index-CD_ojwcp.js → index-DZMbWeFm.js} +1 -1
- package/assets/{index-D9E3HDnS.js → index-D_32lHmx.js} +1 -1
- package/assets/{index-DtCgIhCZ.js → index-DhBoWrec.js} +1 -1
- package/assets/{index-B3X7tTfx.js → index-DiK4574l.js} +1 -1
- package/assets/{index-COxGjPhG.js → index-DmwocvJ3.js} +1 -1
- package/assets/{index-BJWi_Mde.js → index-DuVSraIr.js} +1 -1
- package/assets/{index-C3Is1Apr.js → index-DyZK0l1X.js} +1 -1
- package/assets/{index-C6V3kfM1.js → index-GV67-Qz2.js} +1 -1
- package/assets/{index-Cg6lHlPj.js → index-I266vGIZ.js} +1 -1
- package/assets/{index-BJpc1lfK.js → index-JtqOHhma.js} +1 -1
- package/assets/{index-BuTY5O7i.js → index-QWiF7rlr.js} +1 -1
- package/assets/{index-BrTElmXN.js → index-bcvgIY_i.js} +1 -1
- package/assets/{index-D5dW41Yp.js → index-idSmtqBY.js} +2 -2
- package/assets/{index-Cb2_Tzeq.js → index-oXQyPaRE.js} +1 -1
- package/assets/{index-D-dOTleV.js → index-xRz6Md3v.js} +1 -1
- package/assets/{index.es-CQ6rFGBE.js → index.es-B2kvHPXO.js} +4 -4
- package/assets/{index.es-DyfpWv1f.js → index.es-C9B9pyi3.js} +1 -1
- package/assets/{index.es-BiEhEc8p.js → index.es-DhaGPx7O.js} +1 -1
- package/assets/{localBatchGatewayRequest-BDrEFVai.js → localBatchGatewayRequest-BOc1SOAF.js} +1 -1
- package/assets/{mana-rate-DrmNLaz-.js → mana-rate-CLOzEA-z.js} +1 -1
- package/assets/network-BODSrjdX.js +1 -0
- package/assets/{networks-bRyDO1Qp.js → networks-BNjFOQPT.js} +1 -1
- package/assets/{onramp-BEQTNzss.js → onramp-CMvA4CrP.js} +1 -1
- package/assets/{openzeppelin-D_XQzmtX.js → openzeppelin-CQIa9Lre.js} +1 -1
- package/assets/{ownerOf-OA2RTQQO.js → ownerOf-NhVZCEnN.js} +1 -1
- package/assets/{parseNft-CXoj0hvM.js → parseNft-Cusxg4Sy.js} +2 -2
- package/assets/{parseSignature-CKZOR4TK.js → parseSignature-BHzSvjwy.js} +3 -3
- package/assets/{parseSignature-BxaAhKeg.js → parseSignature-p_-59c90.js} +1 -1
- package/assets/{pay-with-exchange-aKfCF8UA.js → pay-with-exchange-CE7MLMiV.js} +1 -1
- package/assets/{qr-overlay-D2uIJnFP.js → qr-overlay-BXut-f_c.js} +1 -1
- package/assets/{receive-DA3o78qy.js → receive-uq4U-wAr.js} +1 -1
- package/assets/{resolveImplementation-fVGP_Xas.js → resolveImplementation-Ct4OciNe.js} +1 -1
- package/assets/{rpc-DBEEzhj8.js → rpc-Cb17ce6f.js} +1 -1
- package/assets/{secp256k1-BbaO7vsd.js → secp256k1-5kCtQ0vD.js} +1 -1
- package/assets/{secp256k1-B8n8HBER.js → secp256k1-CGeilrRZ.js} +1 -1
- package/assets/{secp256k1-hn5_kA6G.js → secp256k1-COkLI69o.js} +1 -1
- package/assets/{send-DU8MQ1y8.js → send-BZ3x-ghM.js} +1 -1
- package/assets/{send-batch-transaction-DY_pgHDI.js → send-batch-transaction-DguwK3sO.js} +1 -1
- package/assets/{send-eip712-transaction-BkgoythS.js → send-eip712-transaction-B2G_kvPB.js} +2 -2
- package/assets/{send-gasless-transaction-BVYH1gYX.js → send-gasless-transaction-WGOK4sWw.js} +2 -2
- package/assets/{sendRawTransaction-DbhgEUz6.js → sendRawTransaction-CweYpovs.js} +3 -3
- package/assets/{serializeTransaction-DZrTl33k.js → serializeTransaction-B2G5qTpX.js} +1 -1
- package/assets/{session-proposal-Cl2sjjeM.js → session-proposal-CFDViUIL.js} +1 -1
- package/assets/{session-request-dut4_Z-r.js → session-request-B9okzOtt.js} +2 -2
- package/assets/{sha256-BCXR6ojR.js → sha256-CE3g8zlo.js} +1 -1
- package/assets/{signing-DstZY6Ke.js → signing-DuI-uxCs.js} +4 -4
- package/assets/{socials-DFT4pr6K.js → socials-CCj38AM5.js} +1 -1
- package/assets/{swaps-B6e9-nOS.js → swaps-6RXhpnUy.js} +1 -1
- package/assets/{thirdweb-13r7kkOp.js → thirdweb-DtuC9CVg.js} +3 -3
- package/assets/{totalSupply-CEHgHE1R.js → totalSupply-BhMB-ooQ.js} +1 -1
- package/assets/{transactionReceipt-CJqXaM7n.js → transactionReceipt-11CDo53Q.js} +1 -1
- package/assets/{transactions-Dg8-HdPI.js → transactions-9Qh0k_iI.js} +1 -1
- package/assets/{useInfiniteGrid-_j3sTNFy.js → useInfiniteGrid-DC90GS-R.js} +1 -1
- package/assets/{verifyHash-DDifZCfe.js → verifyHash-CP55t1Yh.js} +1 -1
- package/assets/{w3m-modal-Bz6lLxMo.js → w3m-modal-BXW7TbuV.js} +1 -1
- package/assets/{w3m-modal-wr6gqHHl.js → w3m-modal-BvboAZP4.js} +1 -1
- package/assets/{wait-for-tx-receipt-TO5nTGOg.js → wait-for-tx-receipt-D-sJTgE3.js} +1 -1
- package/assets/{wallet-kind-BSzJpUob.js → wallet-kind-BxxnpW-N.js} +1 -1
- package/assets/{wallets-CrZ_KakB.js → wallets-B797hZnU.js} +6 -6
- package/assets/{web-connector-C-PKMENi.js → web-connector-GMC1p5h1.js} +3 -3
- package/assets/{writeContract-dUugnk5I.js → writeContract-7y_oBIrv.js} +1 -1
- package/assets/{zoraTestnet-z7D1VXMG.js → zoraTestnet-DwtM_BBH.js} +1 -1
- package/index.html +8 -8
- package/package.json +2 -2
- package/assets/Collection-Cbyv2bH1.js +0 -1
- package/assets/ItemDetail-B1lNS7Di.js +0 -2
- package/assets/Success-FCI3WLUn.js +0 -1
- package/assets/decimals-CF3AbQzO.js +0 -1
- package/assets/network-CpS8nVMF.js +0 -1
package/index.html
CHANGED
|
@@ -16,10 +16,10 @@
|
|
|
16
16
|
<link rel="canonical" href="https://shop.decentraland.zone/" />
|
|
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.1.0-
|
|
20
|
-
<link rel="apple-touch-icon" sizes="180x180" href="https://cdn.decentraland.org/@dcl/shop/0.1.0-
|
|
19
|
+
<link rel="icon" type="image/x-icon" href="https://cdn.decentraland.org/@dcl/shop/0.1.0-29234430899.commit-b128818/favicon.ico" sizes="16x16 32x32 48x48" />
|
|
20
|
+
<link rel="apple-touch-icon" sizes="180x180" href="https://cdn.decentraland.org/@dcl/shop/0.1.0-29234430899.commit-b128818/apple-touch-icon.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.1.0-
|
|
22
|
+
<link rel="manifest" href="https://cdn.decentraland.org/@dcl/shop/0.1.0-29234430899.commit-b128818/site.webmanifest" />
|
|
23
23
|
|
|
24
24
|
<!-- Open Graph -->
|
|
25
25
|
<meta property="og:type" content="website" />
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
<meta name="twitter:image:alt" content="Decentraland Shop — wearables and emotes for your avatar" />
|
|
49
49
|
|
|
50
50
|
<!-- Sitemap -->
|
|
51
|
-
<link rel="sitemap" type="application/xml" title="Sitemap" href="https://cdn.decentraland.org/@dcl/shop/0.1.0-
|
|
51
|
+
<link rel="sitemap" type="application/xml" title="Sitemap" href="https://cdn.decentraland.org/@dcl/shop/0.1.0-29234430899.commit-b128818/sitemap.xml" />
|
|
52
52
|
|
|
53
53
|
<!-- Warm the 3D preview / fonts -->
|
|
54
54
|
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
|
@@ -60,10 +60,10 @@
|
|
|
60
60
|
<link rel="preconnect" href="https://wearable-preview.decentraland.org" />
|
|
61
61
|
<link rel="preconnect" href="https://peer.decentraland.zone" crossorigin />
|
|
62
62
|
<link rel="preconnect" href="https://peer.decentraland.org" crossorigin />
|
|
63
|
-
<script type="module" crossorigin src="https://cdn.decentraland.org/@dcl/shop/0.1.0-
|
|
64
|
-
<link rel="modulepreload" crossorigin href="https://cdn.decentraland.org/@dcl/shop/0.1.0-
|
|
65
|
-
<link rel="modulepreload" crossorigin href="https://cdn.decentraland.org/@dcl/shop/0.1.0-
|
|
66
|
-
<link rel="stylesheet" crossorigin href="https://cdn.decentraland.org/@dcl/shop/0.1.0-
|
|
63
|
+
<script type="module" crossorigin src="https://cdn.decentraland.org/@dcl/shop/0.1.0-29234430899.commit-b128818/assets/index-BSsMCEFa.js"></script>
|
|
64
|
+
<link rel="modulepreload" crossorigin href="https://cdn.decentraland.org/@dcl/shop/0.1.0-29234430899.commit-b128818/assets/react-Vu6nbGi5.js">
|
|
65
|
+
<link rel="modulepreload" crossorigin href="https://cdn.decentraland.org/@dcl/shop/0.1.0-29234430899.commit-b128818/assets/ethers-JeCAM1sd.js">
|
|
66
|
+
<link rel="stylesheet" crossorigin href="https://cdn.decentraland.org/@dcl/shop/0.1.0-29234430899.commit-b128818/assets/index-DliU9pat.css">
|
|
67
67
|
</head>
|
|
68
68
|
<body>
|
|
69
69
|
<div id="root"></div>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dcl/shop",
|
|
3
|
-
"version": "0.1.0-
|
|
3
|
+
"version": "0.1.0-29234430899.commit-b128818",
|
|
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": "b128818ef38ce42a21855369ac000faf13d68267"
|
|
12
12
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{u as g,a as h,j as e}from"./react-Vu6nbGi5.js";import{C as x,A as j,f as _}from"./index-D8yull60.js";import{A as N}from"./collection-DttFUtCF.js";import{S as m}from"./SkeletonCards-BysJEVmg.js";import{L as f}from"./LoadMore-BOCtgPLI.js";import{u as C}from"./useInfiniteGrid-_j3sTNFy.js";import"./ethers-JeCAM1sd.js";const b=48;function F(){var i;const{contractAddress:o}=g(),d=h(),{items:s,total:t,isLoading:a,error:c,hasNextPage:u,isFetchingNextPage:n,fetchNextPage:p}=C(["collection-page",o],l=>_(o,{first:b,skip:l}),{enabled:!!o}),r=(i=s[0])==null?void 0:i.creator;return e.jsxs("div",{className:"collection-page",children:[e.jsxs("nav",{className:"collection-page__crumbs","aria-label":"Breadcrumb",children:[e.jsx("button",{className:"collection-page__crumb-link",onClick:()=>d("/assets"),children:"Collectibles"}),e.jsx("span",{className:"collection-page__crumb-sep",children:"/"}),e.jsx("span",{className:"collection-page__crumb-current",children:"Collection"})]}),e.jsxs("header",{className:"collection-page__head",children:[e.jsx("h1",{className:"collection-page__title",children:"Collection"}),r?e.jsx(x,{address:r,className:"collection-page__creator"}):null,e.jsx("span",{className:"muted collection-page__count",children:a?"…":`${t.toLocaleString()} item${t===1?"":"s"}`})]}),!a&&s.length>0?e.jsx(N,{items:s,source:"collection"}):null,c?e.jsx("p",{className:"error",children:c.message}):null,e.jsx("div",{className:"grid",children:a?e.jsx(m,{count:12}):e.jsxs(e.Fragment,{children:[s.map(l=>e.jsx(j,{item:l},l.id)),n?e.jsx(m,{count:6}):null]})}),e.jsx(f,{hasNextPage:u,isFetching:n,onLoadMore:()=>p()}),!a&&!c&&s.length===0?e.jsx("p",{className:"muted",children:"This collection has no items to show."}):null]})}export{F as Collection,F as default};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-7RiTEasz.js","assets/react-Vu6nbGi5.js","assets/index-D8yull60.js","assets/ethers-JeCAM1sd.js","assets/index-DliU9pat.css","assets/generateUtilityClasses-EHQxwZec.js","assets/Button-uGoMyMeg.js","assets/SvgIcon-DuD4CLX1.js","assets/CircularProgress-Ca679YX-.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{j as e,r as c,u as fe,d as ve,a as xe,L as je}from"./react-Vu6nbGi5.js";import{_ as Ne,a as Q,V as be,X as ye,Y as ge,Z as Ie,W as we,i as A,h as X,$ as Ce,o as T,d as L,q as Ae,u as Y,w as ke,c as P,a0 as Ee,j as D,a1 as Se,a2 as Le,a3 as Pe,C as Te,a4 as K,a5 as Fe,g as Re,s as $e,v as Be,D as qe,E as Me,F as H,z as Ve,H as De,y as Oe,G as We,k as Ge,f as Ue,a6 as ze,a7 as Ye,I as Ke}from"./index-D8yull60.js";import{h as Z}from"./buy-CtGOLfNq.js";import{g as He,a as Ze,w as Qe,S as Xe,G as Je}from"./buy-gasless-RvPPxhUM.js";import"./ethers-JeCAM1sd.js";import"./index-BrTElmXN.js";const es=c.lazy(()=>Ne(()=>import("./index-7RiTEasz.js").then(t=>t.i),__vite__mapDeps([0,1,2,3,4,5,6,7,8])).then(t=>({default:t.EmoteControls})));function ss(t){return e.jsx(c.Suspense,{fallback:null,children:e.jsx(es,{...t})})}function as({item:t}){const n=Q(v=>{var y;return(y=v.session)==null?void 0:y.address}),{data:r,isLoading:p}=be(n),I=n&&r?n:"default",m=t.category==="emote",[j,l]=c.useState("avatar"),h=!m&&j==="item",[s,i]=c.useState(!0);c.useEffect(()=>{i(!0)},[t.id,h]);const o=!!n&&!!r,f=o&&ye(t,ge(r)),b=Ie(t)[0],_=o&&!f&&!m;return e.jsxs(e.Fragment,{children:[p?null:e.jsx(we,{id:"shop-item-preview",contractAddress:t.contractAddress,tokenId:t.tokenId??void 0,itemId:t.tokenId?void 0:t.itemId??void 0,profile:h?void 0:f?I:"default",bodyShape:h||f?void 0:b,type:m?void 0:h?A.PreviewType.WEARABLE:A.PreviewType.AVATAR,emote:m||h?void 0:A.PreviewEmote.FASHION,disableBackground:!0,wheelZoom:m?1.5:void 0,wheelStart:m?100:void 0,dev:X.chainId===80002,onLoad:()=>i(!1)},t.id),p||s?e.jsx("div",{className:"item-preview__loading","aria-busy":"true","aria-label":"Loading preview",children:e.jsx("span",{className:"item-preview__spinner","aria-hidden":!0})}):null,_&&!h?e.jsxs("p",{className:"item-preview__note",children:["Shown on a ",Ce(b)," body — this item isn’t made for your avatar’s shape."]}):null,m?e.jsx("div",{className:"item-preview__emote-controls",children:e.jsx(ss,{wearablePreviewId:"shop-item-preview",hideFrameInput:!0})}):e.jsxs("div",{className:"item-preview__toggle",role:"group","aria-label":"Preview mode",children:[e.jsx("button",{type:"button",className:j==="avatar"?"is-active":"","aria-pressed":j==="avatar",onClick:()=>l("avatar"),children:"On avatar"}),e.jsx("button",{type:"button",className:j==="item"?"is-active":"","aria-pressed":j==="item",onClick:()=>l("item"),children:"Item"})]})]})}function ts(t){return t==="male"?"♂":t==="female"?"♀":t==="unisex"?"⚥":""}function is({title:t,items:n,activeId:r,onSelect:p,onViewAll:I}){const m=c.useRef(null),j=T(i=>i.add),l=T(i=>i.items.map(o=>o.id));if(n.length===0)return null;function h(i){j(i,"carousel"),Ae.success(`“${i.name}” added to your cart.`)}function s(i){const o=m.current;o&&o.scrollBy({left:i*Math.round(o.clientWidth*.8),behavior:"smooth"})}return e.jsxs("section",{className:"collection-carousel",children:[e.jsxs("div",{className:"collection-carousel__head",children:[e.jsx("h2",{className:"collection-carousel__title",children:t}),e.jsxs("div",{className:"collection-carousel__head-right",children:[I?e.jsx("button",{className:"collection-carousel__viewall",onClick:I,children:"View all"}):null,e.jsxs("div",{className:"collection-carousel__arrows",children:[e.jsx("button",{className:"collection-carousel__arrow",onClick:()=>s(-1),"aria-label":"Scroll left",children:"‹"}),e.jsx("button",{className:"collection-carousel__arrow",onClick:()=>s(1),"aria-label":"Scroll right",children:"›"})]})]})]}),e.jsx("div",{className:"collection-carousel__track",ref:m,children:n.map(i=>{const o=ts(i.gender),f=i.id===r,b=i.priceCredits>0,_=l.includes(i.id);return e.jsxs("article",{className:`collection-carousel__card${f?" is-active":""}`,onClick:()=>p(i),role:"button",tabIndex:0,"aria-current":f||void 0,onKeyDown:v=>{(v.key==="Enter"||v.key===" ")&&(v.preventDefault(),p(i))},children:[e.jsxs("div",{className:"collection-carousel__media",children:[i.thumbnail?e.jsx("img",{className:"collection-carousel__img",src:i.thumbnail,alt:i.name,loading:"lazy"}):null,b?e.jsx("button",{className:"collection-carousel__add",disabled:_,"aria-label":_?"In cart":`Add ${i.name} to cart`,title:_?"In cart":"Add to cart",onClick:v=>{v.stopPropagation(),_||h(i)},children:e.jsx("span",{className:`ico ${_?"ico-cart-solid":"ico-cart"}`,"aria-hidden":!0})}):null]}),e.jsxs("div",{className:"collection-carousel__body",children:[e.jsx("div",{className:"collection-carousel__name",title:i.name,children:i.name}),e.jsxs("div",{className:"collection-carousel__meta",children:[b?e.jsxs("span",{className:"collection-carousel__price",children:[e.jsx(L,{className:"collection-carousel__diamond"}),i.priceCredits]}):e.jsx("span",{className:"collection-carousel__price collection-carousel__na",children:"Not listed"}),e.jsxs("span",{className:"collection-carousel__chips",children:[e.jsx("span",{className:"chip chip--rarity",children:i.rarity}),o?e.jsx("span",{className:"chip chip--icon",children:o}):null]})]})]})]},i.id)})})]})}function rs(t){return Object.values(A.Rarity).includes(t)}function ns(t){return t==="male"?"Male":t==="female"?"Female":t==="unisex"?"Unisex":null}function cs(t){const n=t,r=(n.message??"").toLowerCase();return n.code===4001||r.includes("reject")||r.includes("denied")||r.includes("cancel")?"You cancelled the request.":r.includes("insufficient")?`You don't have enough ${Ge.name} — get more first.`:r.includes("no active listing")||r.includes("not for sale")?"This item is not for sale right now.":"Couldn't complete checkout — please try again."}function _s(){const{contractAddress:t,tokenId:n}=fe(),{state:r}=ve(),p=xe(),I=T(a=>a.add),m=T(a=>a.items),j=Y(a=>a.toggle),{session:l}=Q(),{data:h}=ke(l),[s,i]=c.useState(()=>r!=null&&r.item?{...r.item,tradeId:r.tradeId??r.item.tradeId}:{id:`${t}-${n}`,name:"",creator:"",contractAddress:t??"",itemId:null,category:"wearable",rarity:"common",network:"MATIC",chainId:X.chainId,thumbnail:"",priceCredits:0,gender:null,tokenId:n??void 0,tradeId:r==null?void 0:r.tradeId}),[o,f]=c.useState(!1),[b,_]=c.useState(null),[v,y]=c.useState(null),{data:w=[],isFetched:J}=P({queryKey:["collection-items",s.contractAddress],enabled:!!s.contractAddress,queryFn:()=>Ue(s.contractAddress,{first:20}).then(a=>a.items)}),{data:F,isLoading:ee}=P({queryKey:["shop-item",s.contractAddress,n],enabled:!(r!=null&&r.item)&&!!s.contractAddress&&!!n,queryFn:()=>ze(s.contractAddress,n)});c.useEffect(()=>{F&&i(a=>a.tradeId?a:{...F})},[F]);const[O,se]=c.useState(!1),{data:R=""}=P({queryKey:["item-desc",s.contractAddress,s.itemId],enabled:!!s.contractAddress&&!!s.itemId,staleTime:5*6e4,queryFn:()=>Ye(s.contractAddress,s.itemId)});c.useEffect(()=>{if(s.name||w.length===0)return;const a=n&&w.find(d=>d.tokenId===n||d.itemId===n)||w.find(d=>d.contractAddress===s.contractAddress);a&&i(d=>({...a,tradeId:d.tradeId??a.tradeId}))},[w]);const ae=c.useMemo(()=>{const a=new Set,d=[];for(const u of w){if(u.id===s.id||s.itemId&&u.itemId===s.itemId||s.tokenId&&u.tokenId===s.tokenId)continue;const S=`${u.contractAddress}-${u.itemId??u.tokenId??u.id}`;a.has(S)||(a.add(S),d.push(u))}return d},[w,s.id,s.itemId,s.tokenId]),{data:te,isLoading:k}=P({queryKey:["detail-trade",s.id,s.tradeId,s.contractAddress,s.itemId],enabled:!!s.contractAddress,queryFn:async()=>{if(s.tradeId)return s.tradeId;if(s.itemId){const a=await Ke(s.contractAddress,s.itemId);return(a==null?void 0:a.id)??null}return null}}),g=s.tradeId??te??void 0,N=!!g,ie=Ee({priceCredits:s.priceCredits,compareAtCredits:s.compareAtCredits,saleEndsAt:s.saleEndsAt}),E=c.useMemo(()=>({...s,tradeId:g,id:g??s.id}),[s,g]),$=m.some(a=>a.id===E.id),B=Y(a=>!!a.items[s.id]);c.useEffect(()=>{_(null),y(null)},[s.id]);const W=c.useRef(null);c.useEffect(()=>{!s.name||k||W.current===s.id||(W.current=s.id,D("Shop Viewed Item",{...Se(s),for_sale:N}),Le(s))},[s.id,s.name,k,N]);function re(a){i(a);const d=a.tokenId??a.itemId;a.contractAddress&&d&&p(`/item/${a.contractAddress}/${d}`,{replace:!0,state:{item:a}}),typeof window<"u"&&window.scrollTo({top:0,behavior:"smooth"})}function ne(){!N||$||U||I(E,"item_detail")}async function ce(){var S;if(!N||!g)return;if(!l){y("Sign in to check out.");return}y(null),f(!0);let a,d="authorize",u=!1;try{_(`Buying ${s.name||"item"}…`);const x=await Re(g);if(!x)throw new Error("not for sale");if($e(x,l.address)){y("You can't buy your own listing."),_(null),f(!1);return}const q=(S=x.received)==null?void 0:S[0],_e=Be(q==null?void 0:q.amount),{credit:z,maxCreditedValue:pe}=await qe(l.identity,_e,g);a=z.id,d="submit";const M={trade:x,buyer:l.address,signer:l.signer,credits:[z],maxCreditedValue:pe};let C;if(He())try{C=await Ze(M),await Qe(C),u=!0}catch(V){if(V instanceof Xe)u=!0;else if(V instanceof Je)C=await Z(M);else throw V}else C=await Z(M);a=void 0,D("Shop Completed Purchase",{...Me([E]),payment_type:"credits",no_crypto_step:u,transaction_hash:C??null}),p("/success",{state:{items:[E],txHash:C}})}catch(x){H(x)||Ve(x,{flow:"buy",step:d,gasless:u}),a&&De(l.identity,[a]).catch(()=>{}),D(H(x)?"Shop Purchase Cancelled":"Shop Purchase Failed",{step:d,error_code:We(x),value_usd:Oe(E.priceCredits)}),y(cs(x)),_(null)}finally{f(!1)}}const le=rs(s.rarity)?s.rarity:A.Rarity.COMMON,[de]=A.Rarity.getGradient(le),G=ns(s.gender),oe=N&&ie,ue="More from this collection",U=Pe(s,l==null?void 0:l.address),me=N?$?"In cart":k?"Checking…":"Add to cart":"Not for sale",he=ee||!!s.contractAddress&&!J;return!s.name&&!he?e.jsxs("div",{className:"item-detail item-detail--notfound",children:[e.jsx("span",{className:"ico ico-cart item-detail__notfound-ico","aria-hidden":!0}),e.jsx("h1",{className:"item-detail__notfound-title",children:"This item isn’t available"}),e.jsx("p",{className:"muted",children:"It may have been delisted or moved. Browse Collectibles for something else."}),e.jsx("button",{className:"btn btn--purple",onClick:()=>p("/assets"),children:"Browse Collectibles"})]}):e.jsxs("div",{className:"item-detail",children:[e.jsxs("nav",{className:"item-detail__crumbs","aria-label":"Breadcrumb",children:[e.jsx("button",{className:"item-detail__crumb-link",onClick:()=>p("/assets"),children:"Collectibles"}),e.jsx("span",{className:"item-detail__crumb-sep",children:"/"}),e.jsx("span",{className:"item-detail__crumb-current",children:s.name||"Item"})]}),e.jsxs("div",{className:"item-detail__main",children:[e.jsx("div",{className:"item-detail__preview",style:{background:`radial-gradient(circle at 50% 38%, ${de}33 0%, var(--media) 68%)`},children:s.name?e.jsx(as,{item:s}):e.jsx("div",{className:"item-preview__loading","aria-busy":"true","aria-label":"Loading preview",children:e.jsx("span",{className:"item-preview__spinner","aria-hidden":!0})})}),e.jsxs("div",{className:"item-detail__info",children:[e.jsxs("div",{className:"item-detail__info-head",children:[e.jsx("h1",{className:"item-detail__title",children:s.name||"Loading…"}),e.jsx("button",{className:`item-detail__fav${B?" is-on":""}`,onClick:()=>j(s),"aria-pressed":B,"aria-label":B?"Remove from favorites":"Add to favorites",children:e.jsx("span",{className:"ico ico-heart","aria-hidden":!0})})]}),s.creator?e.jsx(Te,{address:s.creator,className:"item-detail__creator",linkToProfile:!0}):null,e.jsxs("div",{className:"item-detail__chips",children:[e.jsx("span",{className:"chip chip--rarity",children:s.rarity}),e.jsx("span",{className:"chip",children:s.category==="emote"?"Emote":"Wearable"}),G?e.jsx("span",{className:"chip",children:G}):null]}),R?e.jsxs("div",{className:"item-detail__description",children:[e.jsx("p",{className:`item-detail__desc-text${O?" is-expanded":""}`,children:R}),R.length>140?e.jsx("button",{className:"link item-detail__desc-toggle",onClick:()=>se(a=>!a),children:O?"Show less":"Read more"}):null]}):null,e.jsxs("div",{className:"item-detail__card",children:[e.jsxs("div",{className:"item-detail__price-block",children:[e.jsx("div",{className:"item-detail__price-label",children:"Price"}),N?oe?e.jsxs("div",{className:"item-detail__price item-detail__price--sale",children:[e.jsxs("span",{className:"item-detail__price",children:[e.jsx(L,{className:"item-detail__diamond"}),e.jsx("span",{className:"item-detail__price-value",children:s.priceCredits})]}),e.jsxs("span",{className:"item-detail__price-was",children:[e.jsx(L,{className:"item-detail__diamond item-detail__diamond--was"}),s.compareAtCredits]}),K(s.compareAtCredits,s.priceCredits)>0?e.jsxs("span",{className:"item-detail__sale-badge",children:["SALE -",K(s.compareAtCredits,s.priceCredits),"%"]}):null,e.jsx(Fe,{endsAt:s.saleEndsAt,className:"item-detail__countdown"})]}):e.jsxs("div",{className:"item-detail__price",children:[e.jsx(L,{className:"item-detail__diamond"}),e.jsx("span",{className:"item-detail__price-value",children:s.priceCredits})]}):e.jsx("div",{className:"item-detail__price item-detail__price--none",children:"Not for sale"}),l?e.jsxs("div",{className:"item-detail__balance muted",children:["Your balance: ",e.jsx(L,{className:"ccy-mark"})," ",(h==null?void 0:h.credits)??0]}):null]}),e.jsx("div",{className:"item-detail__ctas",children:U?e.jsxs("p",{className:"item-detail__own-note muted",children:["This is your item — manage it in ",e.jsx(je,{to:"/my-assets",children:"My Assets"}),"."]}):e.jsxs(e.Fragment,{children:[N?e.jsx("button",{className:"btn btn--purple item-detail__cta",onClick:ce,disabled:o||k,children:o?"Buying…":"Buy now"}):null,e.jsxs("button",{className:"item-detail__addcart",onClick:ne,disabled:!N||$||k||o,children:[e.jsx("span",{className:"ico ico-cart-solid item-detail__addcart-ico","aria-hidden":!0}),me]})]})}),b?e.jsx("p",{className:"muted item-detail__status",children:b}):null,v?e.jsx("p",{className:"error item-detail__status",children:v}):null]})]})]}),e.jsx(is,{title:ue,items:ae,activeId:s.id,onSelect:re,onViewAll:s.contractAddress?()=>p(`/collection/${s.contractAddress}`):void 0})]})}export{_s as ItemDetail,_s as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as s,d as _,a as x,N as j}from"./react-Vu6nbGi5.js";import{a as v,J as N,W as h,i,h as t}from"./index-D8yull60.js";import{s as g}from"./wallet-kind-BSzJpUob.js";import"./ethers-JeCAM1sd.js";function k(){return s.jsxs("div",{className:"success-anim",role:"img","aria-label":"Purchase successful",children:[s.jsxs("svg",{className:"success-anim__svg",viewBox:"0 0 120 120",children:[s.jsx("circle",{className:"success-anim__ring",cx:"60",cy:"60",r:"54"}),s.jsx("path",{className:"success-anim__check",d:"M37 61 l16 16 l30 -34"})]}),s.jsx("span",{className:"success-anim__spark success-anim__spark--1","aria-hidden":!0,children:"✦"}),s.jsx("span",{className:"success-anim__spark success-anim__spark--2","aria-hidden":!0,children:"✦"}),s.jsx("span",{className:"success-anim__spark success-anim__spark--3","aria-hidden":!0,children:"◈"}),s.jsx("span",{className:"success-anim__spark success-anim__spark--4","aria-hidden":!0,children:"✦"})]})}const b=t.chainId===80002?"https://decentraland.zone/jump":"https://decentraland.org/jump",f=t.chainId===80002?"https://amoy.polygonscan.com/tx/":"https://polygonscan.com/tx/";function E(){const{state:a}=_(),o=x(),{session:c}=v(),r=(a==null?void 0:a.items)??[];if(r.length===0)return s.jsx(j,{to:"/assets",replace:!0});const e=r[0],d=(c==null?void 0:c.address)??"default",l=e.category==="emote",m=l?[]:r.map(N).filter(n=>!!n),u=a==null?void 0:a.txHash,p=!!u&&g(c==null?void 0:c.providerType);return s.jsxs("div",{className:"success",children:[s.jsx("div",{className:"success__preview",children:m.length>0?s.jsx(h,{profile:d,urns:m,type:i.PreviewType.AVATAR,emote:i.PreviewEmote.FASHION,background:"ecebed",dev:t.chainId===80002},e.id):s.jsx(h,{contractAddress:e.contractAddress,tokenId:e.tokenId??void 0,itemId:e.tokenId?void 0:e.itemId??void 0,profile:d,type:l?void 0:i.PreviewType.AVATAR,emote:l?void 0:i.PreviewEmote.FASHION,background:"ecebed",dev:t.chainId===80002},e.id)}),s.jsxs("div",{className:"success__panel",children:[s.jsx(k,{}),s.jsx("h1",{className:"success__title",children:"It’s yours!"}),r.length===1?s.jsxs("p",{className:"success__sub",children:[s.jsx("strong",{children:e.name})," is now in your wardrobe."]}):s.jsxs(s.Fragment,{children:[s.jsxs("p",{className:"success__sub",children:[r.length," items are now in your wardrobe."]}),s.jsx("ul",{className:"success__list",children:r.map(n=>s.jsx("li",{children:n.name},n.id))})]}),s.jsxs("div",{className:"success__links",children:[s.jsx("button",{className:"success__receipt",onClick:()=>o("/my-purchases"),children:"View order"}),p?s.jsx("a",{className:"success__receipt",href:`${f}${u}`,target:"_blank",rel:"noreferrer",children:"View transaction ↗"}):null]}),s.jsxs("div",{className:"success__actions",children:[s.jsx("a",{className:"btn btn--purple",href:b,target:"_blank",rel:"noreferrer",children:"Use it in-world"}),s.jsx("button",{className:"btn btn--ghost",onClick:()=>o("/assets"),children:"Keep shopping"})]})]})]})}export{E as Success,E as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{w as r}from"./utils-BmX8TqzP.js";import{d as a}from"./decimals-DpraMyBi.js";import"./ethers-JeCAM1sd.js";import"./react-Vu6nbGi5.js";import"./signing-DstZY6Ke.js";import"./index-D8yull60.js";async function s(c){return r(()=>a(c),{cacheKey:`${c.contract.chain.id}:${c.contract.address}:decimals`,cacheTime:Number.POSITIVE_INFINITY})}export{s as decimals};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r}from"./index-D8yull60.js";var e=r();export{e as n};
|