@dcl/shop 0.5.1-30936490891.commit-42e2634 → 0.5.1-30937489674.commit-7b5f7ec
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-CIJJTSUp.js → Activity-CKACY7GY.js} +3 -3
- package/_assets/{AnimatedBackground-Bv2erZC5.js → AnimatedBackground-Bjoz5yE_.js} +1 -1
- package/_assets/{Assets-BoR-QJY6.js → Assets-BxK2PTe5.js} +2 -2
- package/_assets/{Assets.styles-BePHQ_QA.js → Assets.styles-VFZDtV-L.js} +1 -1
- package/_assets/{Authorizations-BCA1IImf.js → Authorizations-Dk24wf9N.js} +1 -1
- package/_assets/{Cart-DTe7zox3.js → Cart-t8K6Hez2.js} +2 -2
- package/_assets/{CircularProgress-DzeFXlov.js → CircularProgress-ocqiOFwz.js} +1 -1
- package/_assets/{Collection-DHHXSeak.js → Collection-CqxTIiTW.js} +1 -1
- package/_assets/{CollectionCarousel-Orp4rJm9.js → CollectionCarousel-DK1GQlTQ.js} +1 -1
- package/_assets/{Creator-AMjYkiKe.js → Creator-MrzjHPNF.js} +1 -1
- package/_assets/{ErrorNotice-I9zAvGEr.js → ErrorNotice-uoSUw6uz.js} +1 -1
- package/_assets/{ExchangeController-B-TJWUiW.js → ExchangeController-xP28M4re.js} +1 -1
- package/_assets/{GetCredits-BNkvpwnR.js → GetCredits-B0xA7J-B.js} +1 -1
- package/_assets/{HelpersUtil-ylN16m8a.js → HelpersUtil-3gFlrCTY.js} +1 -1
- package/_assets/{ItemDetail-k2BANQ0W.js → ItemDetail-AFjL4E8F.js} +3 -3
- package/_assets/{LoadMore-DPVuoR5W.js → LoadMore-C0MsRFAE.js} +1 -1
- package/_assets/{ManaPricingBanner.styles-nRVCJe8Y.js → ManaPricingBanner.styles-DAzIc42S.js} +1 -1
- package/_assets/{MenuList-yS83NC0F.js → MenuList-CbV8jiXv.js} +1 -1
- package/_assets/{MyAssets-Ds0TK1z5.js → MyAssets-CcOi2fL-.js} +1 -1
- package/_assets/{MyFavorites-CDmtpdZP.js → MyFavorites-22WPJMqY.js} +1 -1
- package/_assets/{NotFound-CVe0kC-t.js → NotFound-D9cWw9u4.js} +1 -1
- package/_assets/{NotificationsBell-Fprokx0Q.js → NotificationsBell-DBQ0fDk3.js} +1 -1
- package/_assets/{OutfitDetail-CdEsz8A4.js → OutfitDetail-BJ3owKrx.js} +1 -1
- package/_assets/{OutfitPreview-Y1WhUQaY.js → OutfitPreview-fzgtTYGf.js} +1 -1
- package/_assets/{OutfitStudio-B9G6xI3H.js → OutfitStudio-Alyfoac0.js} +1 -1
- package/_assets/{StoreSettings-RMqF_ccU.js → StoreSettings-VMrIBOxF.js} +1 -1
- package/_assets/{Success-rJNIKLQ6.js → Success-B7QER1pk.js} +1 -1
- package/_assets/{SwapController-CgtlXeu5.js → SwapController-Dljt42lz.js} +1 -1
- package/_assets/{Tooltip-D1Bg11IA.js → Tooltip-CmakEXxx.js} +1 -1
- package/_assets/{TradeService-BhQmC5tm.js → TradeService-Bwt0lbfd.js} +1 -1
- package/_assets/{W3MFrameProviderSingleton-D-orryVV.js → W3MFrameProviderSingleton-C8-47Rcd.js} +3 -3
- package/_assets/{WebCryptoP256-Ckj1TqYw.js → WebCryptoP256-DmUARNki.js} +1 -1
- package/_assets/{authorizations-vn6dbOqY.js → authorizations-DiCizdf8.js} +1 -1
- package/_assets/{basic-D2f8I1xA.js → basic-CA1aEmBR.js} +1 -1
- package/_assets/{biconomy-BZAxWDGN.js → biconomy-SwZIbMwk.js} +1 -1
- package/_assets/{browseLayout.styles-BYrLBkl5.js → browseLayout.styles-HpCz3gHu.js} +1 -1
- package/_assets/{builder-DT_IucDZ.js → builder-6kwRAptb.js} +1 -1
- package/_assets/{buy-k-76F4x2.js → buy-CAtkwGsU.js} +1 -1
- package/_assets/{buy-gasless-DP35z8wI.js → buy-gasless-CwGKDSKP.js} +1 -1
- package/_assets/{categories-_gS0pssw.js → categories-CLN28P36.js} +1 -1
- package/_assets/{ccip-skuYIwjJ.js → ccip-C72ffo0Q.js} +1 -1
- package/_assets/{ccip-B4KLf1_A.js → ccip-CprmDCNP.js} +1 -1
- package/_assets/{clsx-BtU7gPvo.js → clsx-DMh9fL43.js} +1 -1
- package/_assets/{controller-BkNCBo5Z.js → controller-DHU-FUxQ.js} +2 -2
- package/_assets/{core-NV0Q-IPg.js → core-FzD1qHVC.js} +4 -4
- package/_assets/{createSvgIcon-ONkmiYB6.js → createSvgIcon-C8hW4bVO.js} +1 -1
- package/_assets/{custom-B2TqKkEi.js → custom-DSLGRsLr.js} +1 -1
- package/_assets/{data-capture-ubD-gh1z.js → data-capture-DZbiDCwX.js} +1 -1
- package/_assets/{email-yk5CxwkK.js → email-B6b7Pihn.js} +1 -1
- package/_assets/{embedded-wallet-Sdgu7IIM.js → embedded-wallet-B0umeTds.js} +1 -1
- package/_assets/{emotion-styled.browser.esm-Bi-gHJrz.js → emotion-styled.browser.esm-mh182qus.js} +1 -1
- package/_assets/{engine-tdlero6P.js → engine-BVwkhnlH.js} +1 -1
- package/_assets/{errors-WsZgWksO.js → errors-DDxkr-df.js} +1 -1
- package/_assets/{estimate-l1-fee-CyMpT0rk.js → estimate-l1-fee-DkXKfMMP.js} +1 -1
- package/_assets/{execute-C4cl9W-o.js → execute-CQY30MRS.js} +2 -2
- package/_assets/{features-CZqcLmC4.js → features-aABiY83f.js} +1 -1
- package/_assets/{fetchTokenMetadata-CS5UBL6x.js → fetchTokenMetadata-B-ittUXv.js} +2 -2
- package/_assets/{field.styles-CJlWBLbF.js → field.styles-AnVl2SkN.js} +1 -1
- package/_assets/{get-ecosystem-wallet-info-07JzLM0i.js → get-ecosystem-wallet-info-DYzdNY3r.js} +1 -1
- package/_assets/{getBalance-DL9ADD0u.js → getBalance-B25lcD9r.js} +1 -1
- package/_assets/{getNFT-D17z9oKn.js → getNFT-3gQ0u_Ad.js} +1 -1
- package/_assets/{getNFT-DoaFm4AC.js → getNFT-BPKHDI15.js} +1 -1
- package/_assets/{getThemeProps-Cl72yIFf.js → getThemeProps-BtZT8-J5.js} +1 -1
- package/_assets/{grid.styles-BZnnDTVu.js → grid.styles-CEjkD1f9.js} +1 -1
- package/_assets/{hashTypedData-wJwJpwvj.js → hashTypedData-B6Ns7uwn.js} +1 -1
- package/_assets/{hashTypedData-CrsUYWGu.js → hashTypedData-C90fm0lo.js} +1 -1
- package/_assets/{in-app-Btz7IDiL.js → in-app-pXzv7C_J.js} +1 -1
- package/_assets/{in-app-wallet-calls-DP3IphiJ.js → in-app-wallet-calls-DCv6deqZ.js} +1 -1
- package/_assets/{index-EECYRahm.js → index-7Hk55boV.js} +1 -1
- package/_assets/{index-Dlg6tqPP.js → index-A4O9UD-C.js} +1 -1
- package/_assets/{index-grgWjFlo.js → index-B5JBd4fr.js} +1 -1
- package/_assets/{index-BYbz0Puw.js → index-B8pZZJz-.js} +1 -1
- package/_assets/{index-8SWxdM-1.js → index-B9tSckDx.js} +1 -1
- package/_assets/{index-IsmxguMZ.js → index-BAnEsc71.js} +1 -1
- package/_assets/{index-C1Z_9GsV.js → index-BClXql-a.js} +1 -1
- package/_assets/{index-CBXYUzDZ.js → index-BFBb0rfQ.js} +2 -2
- package/_assets/{index-O4FksRMn.js → index-BIBwoiYY.js} +1 -1
- package/_assets/{index-Dy5Vw1H0.js → index-BR6IEMrM.js} +258 -258
- package/_assets/{index-BeQhSahz.js → index-BRLHYe51.js} +1 -1
- package/_assets/{index-CZF0PGAb.js → index-BVqb5Xn1.js} +1 -1
- package/_assets/{index-DpOehH6H.js → index-BZs9emRd.js} +3 -3
- package/_assets/{index-BQimjtyT.js → index-BeXckPt5.js} +3 -3
- package/_assets/{index-B59Gh8B7.js → index-BesOjXiK.js} +1 -1
- package/_assets/{index-m00Y2hq4.js → index-BxFAMFrH.js} +1 -1
- package/_assets/{index-BE-fLnWc.js → index-BxLAJ5x3.js} +1 -1
- package/_assets/{index-C7KsfPUz.js → index-ByYcwLlF.js} +1 -1
- package/_assets/{index-7BMeGSgL.js → index-C-PYa491.js} +1 -1
- package/_assets/index-CCZG6i6u.js +472 -0
- package/_assets/{index-C0xJOFUc.js → index-CH298nNs.js} +1 -1
- package/_assets/{index-nNKO8ftl.js → index-CIksKUax.js} +2 -2
- package/_assets/{index-DcebaGnX.js → index-CKjylYSE.js} +1 -1
- package/_assets/{index-CtASwK4E.js → index-CMuJ-UZF.js} +1 -1
- package/_assets/{index-DJ-CxX91.js → index-CNx03geY.js} +1 -1
- package/_assets/{index-BtwYGrhd.js → index-Cap8a-RE.js} +1 -1
- package/_assets/{index-CFksIzM4.js → index-CcgIVLBV.js} +1 -1
- package/_assets/{index-Bi_Apm6j.js → index-Ceayuq0S.js} +1 -1
- package/_assets/{index-CMFliAhY.js → index-Chom5dJx.js} +1 -1
- package/_assets/{index-ClHp2_nl.js → index-Co-gW5Hp.js} +1 -1
- package/_assets/{index-CzghBU6C.js → index-CrM8tpME.js} +1 -1
- package/_assets/{index-CtaCRDRI.js → index-Cy4PNM6A.js} +1 -1
- package/_assets/{index-CrWSaqPI.js → index-D7cHIqYc.js} +1 -1
- package/_assets/{index-Cxty1u3d.js → index-DC4Kv9-V.js} +1 -1
- package/_assets/{index-BVdlPUJG.js → index-DFbrx-dL.js} +1 -1
- package/_assets/{index-DKnXZSeg.js → index-DRc8upCX.js} +1 -1
- package/_assets/{index-D4hVVIWp.js → index-DUGGEaWM.js} +1 -1
- package/_assets/{index-CPdKHNCF.js → index-DUkz3Hx0.js} +1 -1
- package/_assets/{index-C45bHTUp.js → index-DY1F0LWT.js} +1 -1
- package/_assets/{index-CQQrdcNQ.js → index-Dm6iw_dl.js} +1 -1
- package/_assets/{index-CL530K8Y.js → index-DoqNeaqf.js} +1 -1
- package/_assets/{index-Ci8PIdRp.js → index-DosEHc_-.js} +1 -1
- package/_assets/{index-DjltGmXq.js → index-Dq8QHFiA.js} +1 -1
- package/_assets/{index-B5UKanqd.js → index-DykCPSFI.js} +1 -1
- package/_assets/{index-BlQcf37-.js → index-JK8hABNP.js} +1 -1
- package/_assets/{index-BbQMVOsy.js → index-JTqfub3n.js} +3 -3
- package/_assets/{index-CbHNXAwv.js → index-N1xuzaCt.js} +2 -2
- package/_assets/{index-BM3ki5xD.js → index-OAxN4fc3.js} +1 -1
- package/_assets/{index-BxzWlq1h.js → index-VGBz5J8e.js} +1 -1
- package/_assets/{index-DimCwX0M.js → index-YfEt1Rml.js} +1 -1
- package/_assets/{index-639jix5x.js → index-k4tf1CLH.js} +1 -1
- package/_assets/{index-DQM4pVOP.js → index-oHxf4tR1.js} +1 -1
- package/_assets/{index.es-KzvQwqfO.js → index.es-C8eU1wA8.js} +1 -1
- package/_assets/{index.es-BzqwGWTI.js → index.es-CK_ga1Is.js} +4 -4
- package/_assets/{index.es-StMi_Ya4.js → index.es-DZzFd5-b.js} +1 -1
- package/_assets/{localBatchGatewayRequest-DQGGi_PU.js → localBatchGatewayRequest-DTVgXIFF.js} +1 -1
- package/_assets/{mana-convert-D_y2vjtn.js → mana-convert-gocBeMiL.js} +1 -1
- package/_assets/{networks-DDcMYhGU.js → networks-NA0vFG8W.js} +1 -1
- package/_assets/{onramp-CBdambV_.js → onramp-piEEcDx9.js} +1 -1
- package/_assets/{openzeppelin-DSxwqs4i.js → openzeppelin-DqdNqCan.js} +1 -1
- package/_assets/{parseNft-DHPQc0OX.js → parseNft-BUAibBaN.js} +2 -2
- package/_assets/{parseSignature-DJF5siOG.js → parseSignature-BD7TDX9C.js} +3 -3
- package/_assets/{parseSignature-CGumShnk.js → parseSignature-CLxsZU9k.js} +1 -1
- package/_assets/{passkeys-C9h38bzo.js → passkeys-eWclvb1O.js} +1 -1
- package/_assets/{pay-with-exchange-CdWIlkYG.js → pay-with-exchange-C8DalAYE.js} +1 -1
- package/_assets/{qr-overlay-DfYnP7zW.js → qr-overlay-BMuU__O0.js} +1 -1
- package/_assets/{receive-BDPZr_50.js → receive-38k_LlRS.js} +1 -1
- package/_assets/{resolveImplementation-1IibNw8J.js → resolveImplementation-SB0AO_yR.js} +1 -1
- package/_assets/{rpc-Be4cuLO-.js → rpc-DEZlb2Y-.js} +1 -1
- package/_assets/{secp256k1-C2A9iNFQ.js → secp256k1-B-O8Geq4.js} +1 -1
- package/_assets/{secp256k1-CBaRftLy.js → secp256k1-Boxg6ZAq.js} +1 -1
- package/_assets/{secp256k1-CfSstl_L.js → secp256k1-DOOppOlV.js} +1 -1
- package/_assets/{send-DpFdmYN7.js → send-YrDd7FYi.js} +1 -1
- package/_assets/{send-batch-transaction-Bfap8p0Z.js → send-batch-transaction-Dyy9Uesb.js} +1 -1
- package/_assets/{send-eip712-transaction-Ca7s6qzX.js → send-eip712-transaction-3GcoolNv.js} +2 -2
- package/_assets/{send-gasless-transaction-DPOigmTX.js → send-gasless-transaction-QtEZzpC5.js} +2 -2
- package/_assets/{send-transaction-D2BNOa_n.js → send-transaction-DSdOj9eC.js} +2 -2
- package/_assets/{sendMetaTransaction-feJSI2TG.js → sendMetaTransaction-D3FwHHTn.js} +1 -1
- package/_assets/{sendRawTransaction-B-XApuqY.js → sendRawTransaction-CjOHZO88.js} +3 -3
- package/_assets/{serializeTransaction-I8okodGI.js → serializeTransaction-D_Dc_9Gp.js} +1 -1
- package/_assets/{session-proposal-DvL8lvR_.js → session-proposal-Ba1SoCtq.js} +1 -1
- package/_assets/{session-request-BXYdMjrw.js → session-request-CDBg7zst.js} +2 -2
- package/_assets/{signing-DT63E54M.js → signing-BSzxbe16.js} +3 -3
- package/_assets/{socials-ClcK9a8P.js → socials-CCZXYTfQ.js} +1 -1
- package/_assets/{swaps-C0ufdoJC.js → swaps-UHy-bRsG.js} +1 -1
- package/_assets/{thirdweb-B50LsjvD.js → thirdweb-k1S3G2Wc.js} +3 -3
- package/_assets/{to-serializable-transaction-D0wz5egz.js → to-serializable-transaction-BUvEWstJ.js} +2 -2
- package/_assets/{trade-encoding-SVWWPYXU.js → trade-encoding-DhmJ3YE9.js} +1 -1
- package/_assets/{transactionReceipt-BW33bMK1.js → transactionReceipt-DFrpXDGO.js} +1 -1
- package/_assets/{transactions-Dydjvljn.js → transactions-B4l-FEOR.js} +1 -1
- package/_assets/{useCreditPacks-BFQph8eD.js → useCreditPacks-m_96quiO.js} +1 -1
- package/_assets/useImportable-Ck2Tt8Ei.js +1 -0
- package/_assets/{useInfiniteGrid-Dz6b_PHh.js → useInfiniteGrid-XWDqyvpD.js} +1 -1
- package/_assets/useManaRate-sGau1wQV.js +1 -0
- package/_assets/{useStore-ff9cCCX6.js → useStore-DUJBpXit.js} +1 -1
- package/_assets/{useTheme-BzWpoSXD.js → useTheme-ViRtXA8G.js} +1 -1
- package/_assets/{verifyHash-6ZvXkv0_.js → verifyHash-Drn9Way6.js} +1 -1
- package/_assets/{w3m-modal-BI6MOh7J.js → w3m-modal-B0M073Ob.js} +1 -1
- package/_assets/{w3m-modal-B5LvO_YQ.js → w3m-modal-B7mGVnE3.js} +1 -1
- package/_assets/{wait-for-tx-receipt-B6htZpEq.js → wait-for-tx-receipt-BW8Z_n83.js} +1 -1
- package/_assets/{wallets-cwZJIsw-.js → wallets-DZ2SYb3M.js} +5 -5
- package/_assets/{web-connector-BMBh8mIE.js → web-connector-Yp5dVaCI.js} +3 -3
- package/_assets/{writeContract-C3lGbTIC.js → writeContract-BL3rIi0q.js} +1 -1
- package/_assets/{zoraTestnet-Dvb_L0a4.js → zoraTestnet-Cmcli8zw.js} +1 -1
- package/index.html +11 -11
- package/package.json +2 -2
- package/_assets/index-EheyvR55.js +0 -472
- package/_assets/useImportable-BP4DqZ-f.js +0 -1
- package/_assets/useManaRate-CfhYfW7C.js +0 -1
package/index.html
CHANGED
|
@@ -16,10 +16,10 @@
|
|
|
16
16
|
<link rel="canonical" href="https://decentraland.org/shop/" />
|
|
17
17
|
|
|
18
18
|
<!-- Favicon: the Decentraland mark (same as the marketplace). -->
|
|
19
|
-
<link rel="icon" type="image/x-icon" href="https://cdn.decentraland.org/@dcl/shop/0.5.1-
|
|
20
|
-
<link rel="apple-touch-icon" sizes="180x180" href="https://cdn.decentraland.org/@dcl/shop/0.5.1-
|
|
19
|
+
<link rel="icon" type="image/x-icon" href="https://cdn.decentraland.org/@dcl/shop/0.5.1-30937489674.commit-7b5f7ec/favicon.ico" sizes="16x16 32x32 48x48" />
|
|
20
|
+
<link rel="apple-touch-icon" sizes="180x180" href="https://cdn.decentraland.org/@dcl/shop/0.5.1-30937489674.commit-7b5f7ec/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.5.1-
|
|
22
|
+
<link rel="manifest" href="https://cdn.decentraland.org/@dcl/shop/0.5.1-30937489674.commit-7b5f7ec/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.5.1-
|
|
51
|
+
<link rel="sitemap" type="application/xml" title="Sitemap" href="https://cdn.decentraland.org/@dcl/shop/0.5.1-30937489674.commit-7b5f7ec/sitemap.xml" />
|
|
52
52
|
|
|
53
53
|
<!-- Warm the 3D preview / fonts -->
|
|
54
54
|
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
|
@@ -60,13 +60,13 @@
|
|
|
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.5.1-
|
|
64
|
-
<link rel="modulepreload" crossorigin href="https://cdn.decentraland.org/@dcl/shop/0.5.1-
|
|
65
|
-
<link rel="modulepreload" crossorigin href="https://cdn.decentraland.org/@dcl/shop/0.5.1-
|
|
66
|
-
<link rel="modulepreload" crossorigin href="https://cdn.decentraland.org/@dcl/shop/0.5.1-
|
|
67
|
-
<link rel="modulepreload" crossorigin href="https://cdn.decentraland.org/@dcl/shop/0.5.1-
|
|
68
|
-
<link rel="modulepreload" crossorigin href="https://cdn.decentraland.org/@dcl/shop/0.5.1-
|
|
69
|
-
<link rel="stylesheet" crossorigin href="https://cdn.decentraland.org/@dcl/shop/0.5.1-
|
|
63
|
+
<script type="module" crossorigin src="https://cdn.decentraland.org/@dcl/shop/0.5.1-30937489674.commit-7b5f7ec/_assets/index-BR6IEMrM.js"></script>
|
|
64
|
+
<link rel="modulepreload" crossorigin href="https://cdn.decentraland.org/@dcl/shop/0.5.1-30937489674.commit-7b5f7ec/_assets/react-DehiWSvs.js">
|
|
65
|
+
<link rel="modulepreload" crossorigin href="https://cdn.decentraland.org/@dcl/shop/0.5.1-30937489674.commit-7b5f7ec/_assets/sentry-973sfbO9.js">
|
|
66
|
+
<link rel="modulepreload" crossorigin href="https://cdn.decentraland.org/@dcl/shop/0.5.1-30937489674.commit-7b5f7ec/_assets/dcl-schemas-Dr9BTjb7.js">
|
|
67
|
+
<link rel="modulepreload" crossorigin href="https://cdn.decentraland.org/@dcl/shop/0.5.1-30937489674.commit-7b5f7ec/_assets/ethers-CtNGBird.js">
|
|
68
|
+
<link rel="modulepreload" crossorigin href="https://cdn.decentraland.org/@dcl/shop/0.5.1-30937489674.commit-7b5f7ec/_assets/intl-CBcMB1D2.js">
|
|
69
|
+
<link rel="stylesheet" crossorigin href="https://cdn.decentraland.org/@dcl/shop/0.5.1-30937489674.commit-7b5f7ec/_assets/index-D-NhBWWr.css">
|
|
70
70
|
</head>
|
|
71
71
|
<body>
|
|
72
72
|
<div id="root"></div>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dcl/shop",
|
|
3
|
-
"version": "0.5.1-
|
|
3
|
+
"version": "0.5.1-30937489674.commit-7b5f7ec",
|
|
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": "7b5f7ec7af9d98e1d7ebda74f21f9cd632594c40"
|
|
12
12
|
}
|
|
@@ -1,472 +0,0 @@
|
|
|
1
|
-
import{j as e,d as X,r as b,L as Y}from"./react-DehiWSvs.js";import{t as P,s as t,o as G,v as Z,b as n,C as N,B as I,w as H,R as q,aX as B,j as _,J as ee,n as te,x as ie,ad as ne,I as Q,a1 as se,a4 as ae,a5 as re,bu as oe,z as de}from"./index-Dy5Vw1H0.js";import{i as le,R as ce,u as pe}from"./useImportable-BP4DqZ-f.js";import{S as xe,C as he,b as ge}from"./ManaPricingBanner.styles-nRVCJe8Y.js";import{C as F}from"./field.styles-CJlWBLbF.js";import"./sentry-973sfbO9.js";import"./dcl-schemas-Dr9BTjb7.js";import"./ethers-CtNGBird.js";import"./intl-CBcMB1D2.js";import"./buy-k-76F4x2.js";import"./mana-convert-D_y2vjtn.js";import"./authorizations-vn6dbOqY.js";import"./sendMetaTransaction-feJSI2TG.js";import"./trade-encoding-SVWWPYXU.js";function D({size:a=12,...h}){return e.jsx("svg",{viewBox:"0 0 20 20",width:a,height:a,fill:"none","aria-hidden":!0,focusable:"false",...h,children:e.jsx("path",{d:"M5 10.5l3 3 7-7.5",stroke:"#fff",strokeWidth:"2.4",strokeLinecap:"round",strokeLinejoin:"round"})})}const{colors:L,radius:me,z:ue}=P,fe=G`
|
|
2
|
-
0% {
|
|
3
|
-
transform: scale(0);
|
|
4
|
-
opacity: 0;
|
|
5
|
-
}
|
|
6
|
-
100% {
|
|
7
|
-
transform: scale(1);
|
|
8
|
-
opacity: 1;
|
|
9
|
-
}
|
|
10
|
-
`,W=t.div`
|
|
11
|
-
position: fixed;
|
|
12
|
-
inset: 0;
|
|
13
|
-
background: rgba(0, 0, 0, 0.5);
|
|
14
|
-
display: flex;
|
|
15
|
-
overflow-y: auto;
|
|
16
|
-
padding: 20px;
|
|
17
|
-
// Above the global DCL navbar so the backdrop dims the full viewport (navbar included).
|
|
18
|
-
z-index: ${ue.overlay};
|
|
19
|
-
`,J=t.div`
|
|
20
|
-
background: ${L.white};
|
|
21
|
-
border-radius: ${me.card};
|
|
22
|
-
padding: 24px;
|
|
23
|
-
width: min(420px, 92vw);
|
|
24
|
-
margin: auto;
|
|
25
|
-
/* Never taller than the (padded) viewport, and scroll inside if the content still does not fit — on a
|
|
26
|
-
short screen the actions used to sit off the bottom edge with no way to reach them. */
|
|
27
|
-
max-height: 100%;
|
|
28
|
-
overflow-y: auto;
|
|
29
|
-
display: flex;
|
|
30
|
-
flex-direction: column;
|
|
31
|
-
gap: 12px;
|
|
32
|
-
|
|
33
|
-
&[data-success] {
|
|
34
|
-
text-align: center;
|
|
35
|
-
align-items: center;
|
|
36
|
-
}
|
|
37
|
-
&[data-success] [data-actions] {
|
|
38
|
-
justify-content: center;
|
|
39
|
-
width: 100%;
|
|
40
|
-
}
|
|
41
|
-
`,K=t.h2`
|
|
42
|
-
font-size: 20px;
|
|
43
|
-
`;t.img`
|
|
44
|
-
width: 140px;
|
|
45
|
-
height: 140px;
|
|
46
|
-
object-fit: contain;
|
|
47
|
-
align-self: center;
|
|
48
|
-
background: ${L.media};
|
|
49
|
-
border-radius: 10px;
|
|
50
|
-
`;const we=t.div`
|
|
51
|
-
position: sticky;
|
|
52
|
-
bottom: 0;
|
|
53
|
-
display: flex;
|
|
54
|
-
justify-content: flex-end;
|
|
55
|
-
gap: 10px;
|
|
56
|
-
margin-top: 6px;
|
|
57
|
-
padding-top: 8px;
|
|
58
|
-
background: ${L.white};
|
|
59
|
-
`,ye=t.div`
|
|
60
|
-
width: 56px;
|
|
61
|
-
height: 56px;
|
|
62
|
-
border-radius: 50%;
|
|
63
|
-
background: ${L.okStrong};
|
|
64
|
-
color: ${L.white};
|
|
65
|
-
font-size: 30px;
|
|
66
|
-
font-weight: 800;
|
|
67
|
-
display: grid;
|
|
68
|
-
place-items: center;
|
|
69
|
-
margin: 4px auto 2px;
|
|
70
|
-
animation: ${fe} 0.32s cubic-bezier(0.2, 0.9, 0.3, 1.4);
|
|
71
|
-
|
|
72
|
-
@media (prefers-reduced-motion: reduce) {
|
|
73
|
-
animation: none;
|
|
74
|
-
}
|
|
75
|
-
`;t.p`
|
|
76
|
-
font-weight: 700;
|
|
77
|
-
font-size: 16px;
|
|
78
|
-
margin: 2px 0 0;
|
|
79
|
-
`;const{colors:w,gradients:be,radius:je}=P,ve=t(J)`
|
|
80
|
-
width: min(460px, 94vw);
|
|
81
|
-
text-align: left;
|
|
82
|
-
align-items: stretch;
|
|
83
|
-
`,ke=t.div`
|
|
84
|
-
height: 6px;
|
|
85
|
-
border-radius: 999px;
|
|
86
|
-
background: ${w.line};
|
|
87
|
-
overflow: hidden;
|
|
88
|
-
margin: 6px 0 14px;
|
|
89
|
-
`,$e=t.div`
|
|
90
|
-
height: 100%;
|
|
91
|
-
width: 0;
|
|
92
|
-
background: ${be.amethyst};
|
|
93
|
-
border-radius: 999px;
|
|
94
|
-
transition: width 0.45s ease;
|
|
95
|
-
`,Ce=t.ul`
|
|
96
|
-
list-style: none;
|
|
97
|
-
margin: 0;
|
|
98
|
-
padding: 0;
|
|
99
|
-
display: flex;
|
|
100
|
-
flex-direction: column;
|
|
101
|
-
gap: 8px;
|
|
102
|
-
/* The elastic part of a viewport-capped modal: it gives up height before anything else. The floor is
|
|
103
|
-
explicit because a scroll container's automatic minimum size is zero — it would otherwise collapse
|
|
104
|
-
to nothing on a short screen instead of just showing fewer rows. */
|
|
105
|
-
min-height: 96px;
|
|
106
|
-
max-height: 320px;
|
|
107
|
-
overflow-y: auto;
|
|
108
|
-
`,Ie=t.li`
|
|
109
|
-
display: grid;
|
|
110
|
-
grid-template-columns: 34px 1fr auto auto;
|
|
111
|
-
align-items: center;
|
|
112
|
-
gap: 10px;
|
|
113
|
-
padding: 8px;
|
|
114
|
-
border-radius: 10px;
|
|
115
|
-
transition: background 0.2s;
|
|
116
|
-
|
|
117
|
-
&[data-status='active'] {
|
|
118
|
-
background: ${w.rarityBg};
|
|
119
|
-
}
|
|
120
|
-
&[data-status='done'] {
|
|
121
|
-
opacity: 0.75;
|
|
122
|
-
}
|
|
123
|
-
&[data-status='skipped'],
|
|
124
|
-
&[data-status='failed'] {
|
|
125
|
-
opacity: 0.6;
|
|
126
|
-
}
|
|
127
|
-
`,Le=t.span`
|
|
128
|
-
width: 34px;
|
|
129
|
-
height: 34px;
|
|
130
|
-
border-radius: ${je.btn};
|
|
131
|
-
overflow: hidden;
|
|
132
|
-
background: ${w.media};
|
|
133
|
-
display: grid;
|
|
134
|
-
place-items: center;
|
|
135
|
-
|
|
136
|
-
& img {
|
|
137
|
-
width: 100%;
|
|
138
|
-
height: 100%;
|
|
139
|
-
object-fit: contain;
|
|
140
|
-
}
|
|
141
|
-
`,Se=t.span`
|
|
142
|
-
font-weight: 600;
|
|
143
|
-
font-size: 14px;
|
|
144
|
-
white-space: nowrap;
|
|
145
|
-
overflow: hidden;
|
|
146
|
-
text-overflow: ellipsis;
|
|
147
|
-
`,Te=t.span`
|
|
148
|
-
font-weight: 700;
|
|
149
|
-
font-size: 13px;
|
|
150
|
-
color: ${w.text2};
|
|
151
|
-
`,ze=t.span`
|
|
152
|
-
font-size: 12px;
|
|
153
|
-
font-weight: 700;
|
|
154
|
-
color: ${w.accent};
|
|
155
|
-
display: inline-flex;
|
|
156
|
-
align-items: center;
|
|
157
|
-
gap: 6px;
|
|
158
|
-
justify-content: flex-end;
|
|
159
|
-
min-width: 74px;
|
|
160
|
-
`,Me=t.span`
|
|
161
|
-
color: ${w.muted2};
|
|
162
|
-
font-weight: 600;
|
|
163
|
-
`,E=t.span`
|
|
164
|
-
color: ${w.muted};
|
|
165
|
-
font-weight: 600;
|
|
166
|
-
`,Re=t.span`
|
|
167
|
-
width: 14px;
|
|
168
|
-
height: 14px;
|
|
169
|
-
margin: 0;
|
|
170
|
-
border-width: 2px;
|
|
171
|
-
`,Ae=t.span`
|
|
172
|
-
width: 20px;
|
|
173
|
-
height: 20px;
|
|
174
|
-
border-radius: 50%;
|
|
175
|
-
background: ${w.ok};
|
|
176
|
-
color: ${w.white};
|
|
177
|
-
display: grid;
|
|
178
|
-
place-items: center;
|
|
179
|
-
font-size: 12px;
|
|
180
|
-
`,Ee=t.p`
|
|
181
|
-
margin: 12px 0 0;
|
|
182
|
-
`;function Ne({queue:a,session:h,onClose:c,onDone:v}){const S=X(),k=Z(h.providerType),[p,j]=b.useState(()=>a.map(()=>"pending")),[T,z]=b.useState("running"),$=b.useRef(!1);b.useEffect(()=>{if($.current)return;$.current=!0;let s=!1;return(async()=>{for(let r=0;r<a.length;r++){if(s)return;j(m=>m.map((u,f)=>f===r?"active":u));try{await le(a[r].item,a[r].priceCredits,h),q("Shop Migrated Listing",{item_id:a[r].item.itemId??a[r].item.oldTradeId??null,contract_address:a[r].item.contractAddress,new_price_credits:a[r].priceCredits,new_price_usd:B(a[r].priceCredits)}),s||j(m=>m.map((u,f)=>f===r?"done":u))}catch(m){if(m instanceof ce)_(m,{flow:"import_listing",step:"relist",itemId:a[r].item.itemId??a[r].item.oldTradeId}),s||j(u=>u.map((f,i)=>i===r?"unlisted":f));else{const u=m,f=u.code===4001||/reject|denied|cancel/i.test(u.message??"");f||_(m,{flow:"import_listing",itemId:a[r].item.itemId??a[r].item.oldTradeId}),s||j(i=>i.map((d,l)=>l===r?f?"skipped":"failed":d))}}}s||z("finished")})(),()=>{s=!0}},[]);const y=p.filter(s=>s==="done").length,g=p.findIndex(s=>s==="active"),M=Math.round(p.filter(s=>s!=="pending"&&s!=="active").length/a.length*100);function C(){v(),c()}if(T==="finished"){const s=p.filter(r=>r==="skipped"||r==="failed").length,x=p.filter(r=>r==="unlisted").length;return e.jsx(W,{role:"presentation",children:e.jsxs(J,{"data-success":!0,role:"dialog","aria-modal":"true",children:[e.jsx(ye,{"aria-hidden":!0,children:e.jsx(D,{size:30})}),e.jsx(K,{children:y>0?n("migrate.successTitle"):n("migrate.nothingTitle")}),e.jsxs("p",{className:"muted",style:{margin:0},children:[y>0?n("migrate.listedSummary",{count:y,currency:N.name}):n("migrate.noneListed"),s>0?" "+n("migrate.skippedSummary",{count:s}):"",x>0?" "+n("migrate.unlistedSummary",{count:x}):""]}),e.jsxs(we,{"data-actions":!0,children:[e.jsx(I,{variant:"ghost",onClick:C,children:n("getCredits.done")}),x>0?e.jsx(I,{variant:"purple",onClick:()=>{v(),c(),S("/my-items")},children:n("migrate.goToMyAssets")}):y>0?e.jsx(I,{variant:"purple",onClick:()=>{v(),c(),S("/items")},children:n("migrate.viewInShop")}):null]})]})})}return e.jsx(W,{role:"presentation",children:e.jsxs(ve,{"data-testid":"modal",role:"dialog","aria-modal":"true","aria-live":"polite",children:[e.jsx(K,{children:n("migrate.listingTitle")}),e.jsxs("p",{className:"muted small",style:{margin:"0 0 4px"},children:[k?n("migrate.subConfirm"):n("migrate.subManaged")," ",g>=0?n("migrate.progressCount",{current:g+1,total:a.length}):""]}),e.jsx(ke,{children:e.jsx($e,{style:{width:`${M}%`}})}),e.jsx(Ce,{children:a.map((s,x)=>e.jsxs(Ie,{"data-status":p[x],children:[e.jsx(Le,{children:s.item.thumbnail?e.jsx("img",{src:s.item.thumbnail,alt:""}):null}),e.jsx(Se,{title:s.item.name,children:s.item.name||n("migrate.itemFallback")}),e.jsxs(Te,{children:[e.jsx(H,{className:"ccy-mark"})," ",s.priceCredits.toLocaleString()]}),e.jsx(ze,{children:p[x]==="active"?e.jsxs(e.Fragment,{children:[e.jsx(Re,{className:"spinner","aria-hidden":!0})," ",k?n("migrate.statusConfirm"):n("migrate.statusAdding")]}):p[x]==="done"?e.jsx(Ae,{children:e.jsx(D,{})}):p[x]==="skipped"?e.jsx(E,{children:n("migrate.statusSkipped")}):p[x]==="failed"?e.jsx(E,{children:n("migrate.statusFailed")}):p[x]==="unlisted"?e.jsx(E,{title:n("migrate.unlistedTooltip"),children:n("migrate.statusUnlisted")}):e.jsx(Me,{children:n("migrate.statusWaiting")})})]},s.item.oldTradeId))}),e.jsx(Ee,{className:"muted small",children:k?n("migrate.hintConfirm"):n("migrate.hintManaged")})]})})}const{colors:o,font:Be,media:Pe,radius:A}=P,_e=t.div`
|
|
183
|
-
max-width: 520px;
|
|
184
|
-
margin: 0 auto;
|
|
185
|
-
text-align: center;
|
|
186
|
-
padding: 80px 20px;
|
|
187
|
-
display: flex;
|
|
188
|
-
flex-direction: column;
|
|
189
|
-
align-items: center;
|
|
190
|
-
gap: 10px;
|
|
191
|
-
`,Qe=t.span`
|
|
192
|
-
font-size: 44px;
|
|
193
|
-
`,Fe=t.h2`
|
|
194
|
-
font-size: 26px;
|
|
195
|
-
font-weight: 800;
|
|
196
|
-
margin: 4px 0 0;
|
|
197
|
-
`,De=t(I)`
|
|
198
|
-
margin-top: 10px;
|
|
199
|
-
`,We=t.div`
|
|
200
|
-
max-width: 1003px;
|
|
201
|
-
margin: 0 auto;
|
|
202
|
-
padding-bottom: 120px;
|
|
203
|
-
display: flex;
|
|
204
|
-
flex-direction: column;
|
|
205
|
-
gap: 12px;
|
|
206
|
-
font-family: ${Be.sans};
|
|
207
|
-
`,Ke=t.header`
|
|
208
|
-
display: flex;
|
|
209
|
-
flex-direction: column;
|
|
210
|
-
gap: 16px;
|
|
211
|
-
padding: 10px 12px;
|
|
212
|
-
`,Oe=t.div`
|
|
213
|
-
display: flex;
|
|
214
|
-
flex-direction: column;
|
|
215
|
-
gap: 8px;
|
|
216
|
-
`,Ue=t.h2`
|
|
217
|
-
margin: 0;
|
|
218
|
-
font-weight: 600;
|
|
219
|
-
font-size: 20px;
|
|
220
|
-
line-height: 24px;
|
|
221
|
-
letter-spacing: 0.46px;
|
|
222
|
-
color: ${o.text};
|
|
223
|
-
`,He=t.p`
|
|
224
|
-
margin: 0;
|
|
225
|
-
font-weight: 500;
|
|
226
|
-
font-size: 14px;
|
|
227
|
-
line-height: 1.334;
|
|
228
|
-
color: ${o.muted1};
|
|
229
|
-
`,Je=t.a`
|
|
230
|
-
display: inline-flex;
|
|
231
|
-
align-items: center;
|
|
232
|
-
gap: 2px;
|
|
233
|
-
font-weight: 600;
|
|
234
|
-
font-size: 14px;
|
|
235
|
-
line-height: 30px;
|
|
236
|
-
text-decoration: underline;
|
|
237
|
-
color: ${o.accent};
|
|
238
|
-
|
|
239
|
-
.ico {
|
|
240
|
-
width: 13px;
|
|
241
|
-
height: 13px;
|
|
242
|
-
}
|
|
243
|
-
&:focus-visible {
|
|
244
|
-
outline: 2px solid ${o.accent};
|
|
245
|
-
outline-offset: 2px;
|
|
246
|
-
}
|
|
247
|
-
`,Ve=t.hr`
|
|
248
|
-
width: 100%;
|
|
249
|
-
height: 0;
|
|
250
|
-
margin: 0;
|
|
251
|
-
border: 0;
|
|
252
|
-
border-top: 1px solid ${o.line};
|
|
253
|
-
`,Xe=t.div`
|
|
254
|
-
display: flex;
|
|
255
|
-
flex-direction: column;
|
|
256
|
-
gap: 8px;
|
|
257
|
-
padding: 8px 12px 0;
|
|
258
|
-
`,Ye=t(xe)`
|
|
259
|
-
font-size: 14px;
|
|
260
|
-
line-height: 1.334;
|
|
261
|
-
color: ${o.text2};
|
|
262
|
-
`,Ge=t.span`
|
|
263
|
-
flex: none;
|
|
264
|
-
display: grid;
|
|
265
|
-
place-items: center;
|
|
266
|
-
width: 20px;
|
|
267
|
-
height: 20px;
|
|
268
|
-
border-radius: ${A.pill};
|
|
269
|
-
background: ${o.brandViolet};
|
|
270
|
-
font-weight: 600;
|
|
271
|
-
font-size: 12px;
|
|
272
|
-
line-height: 1.6;
|
|
273
|
-
color: ${o.white};
|
|
274
|
-
`,Ze=t.div`
|
|
275
|
-
display: flex;
|
|
276
|
-
flex-direction: column;
|
|
277
|
-
gap: 4px;
|
|
278
|
-
`,qe=t.label`
|
|
279
|
-
display: flex;
|
|
280
|
-
align-items: center;
|
|
281
|
-
align-self: flex-start;
|
|
282
|
-
font-size: 14px;
|
|
283
|
-
line-height: 1.2;
|
|
284
|
-
color: ${o.text};
|
|
285
|
-
cursor: pointer;
|
|
286
|
-
`,O=t.span`
|
|
287
|
-
flex: none;
|
|
288
|
-
display: grid;
|
|
289
|
-
place-items: center;
|
|
290
|
-
width: 40px;
|
|
291
|
-
height: 40px;
|
|
292
|
-
`,et=t.div`
|
|
293
|
-
display: flex;
|
|
294
|
-
flex-direction: column;
|
|
295
|
-
gap: 12px;
|
|
296
|
-
`,tt=t.article`
|
|
297
|
-
display: flex;
|
|
298
|
-
align-items: center;
|
|
299
|
-
flex-wrap: wrap;
|
|
300
|
-
gap: 12px;
|
|
301
|
-
row-gap: 8px;
|
|
302
|
-
padding: 12px 24px 12px 0;
|
|
303
|
-
border: 1px solid ${o.gray4};
|
|
304
|
-
border-radius: ${A.card};
|
|
305
|
-
background: ${o.white};
|
|
306
|
-
overflow: hidden;
|
|
307
|
-
transition: opacity 0.25s ease;
|
|
308
|
-
|
|
309
|
-
&[data-off] {
|
|
310
|
-
opacity: 0.5;
|
|
311
|
-
}
|
|
312
|
-
`,it=t.div`
|
|
313
|
-
flex: none;
|
|
314
|
-
display: flex;
|
|
315
|
-
align-items: center;
|
|
316
|
-
`,nt=t.div`
|
|
317
|
-
flex: none;
|
|
318
|
-
display: grid;
|
|
319
|
-
place-items: center;
|
|
320
|
-
width: 74.289px;
|
|
321
|
-
height: 74px;
|
|
322
|
-
border-radius: 6.482px;
|
|
323
|
-
background: ${o.media};
|
|
324
|
-
overflow: hidden;
|
|
325
|
-
|
|
326
|
-
& img {
|
|
327
|
-
width: 61.57px;
|
|
328
|
-
height: 61.281px;
|
|
329
|
-
object-fit: contain;
|
|
330
|
-
filter: drop-shadow(0.303px 1.212px 1.516px rgba(0, 0, 0, 0.1));
|
|
331
|
-
}
|
|
332
|
-
`,st=t.div`
|
|
333
|
-
/* Basis (not min-width) is what makes the price column wrap to its own line on a phone; min-width: 0
|
|
334
|
-
then lets the name ellipsize once it is on a line of its own. */
|
|
335
|
-
flex: 1 1 150px;
|
|
336
|
-
min-width: 0;
|
|
337
|
-
display: flex;
|
|
338
|
-
flex-direction: column;
|
|
339
|
-
justify-content: center;
|
|
340
|
-
gap: 8px;
|
|
341
|
-
padding: 16px 8px;
|
|
342
|
-
`,at=t.div`
|
|
343
|
-
font-weight: 600;
|
|
344
|
-
font-size: 16px;
|
|
345
|
-
line-height: 1.2;
|
|
346
|
-
color: ${o.text};
|
|
347
|
-
white-space: nowrap;
|
|
348
|
-
overflow: hidden;
|
|
349
|
-
text-overflow: ellipsis;
|
|
350
|
-
`,rt=t.div`
|
|
351
|
-
display: flex;
|
|
352
|
-
align-items: flex-end;
|
|
353
|
-
gap: 4px;
|
|
354
|
-
`,U=t(ee)`
|
|
355
|
-
padding: 1.623px 6.491px;
|
|
356
|
-
font-weight: 600;
|
|
357
|
-
font-size: 8.56px;
|
|
358
|
-
line-height: 11.851px;
|
|
359
|
-
|
|
360
|
-
&[data-variant='icon'] {
|
|
361
|
-
padding: 1.623px 3.246px;
|
|
362
|
-
}
|
|
363
|
-
&[data-variant='icon'] .ico {
|
|
364
|
-
width: 14.605px;
|
|
365
|
-
height: 14.605px;
|
|
366
|
-
}
|
|
367
|
-
`,ot=t.div`
|
|
368
|
-
flex: none;
|
|
369
|
-
/* Right-aligns the block on the desktop row AND on the line it wraps to on narrow screens. */
|
|
370
|
-
margin-left: auto;
|
|
371
|
-
display: flex;
|
|
372
|
-
flex-direction: column;
|
|
373
|
-
align-items: flex-end;
|
|
374
|
-
justify-content: center;
|
|
375
|
-
gap: 4px;
|
|
376
|
-
`,dt=t.div`
|
|
377
|
-
display: flex;
|
|
378
|
-
align-items: center;
|
|
379
|
-
justify-content: space-between;
|
|
380
|
-
gap: 8px;
|
|
381
|
-
width: 144px;
|
|
382
|
-
height: 42px;
|
|
383
|
-
padding: 8px;
|
|
384
|
-
border: 0.5px solid ${o.muted2};
|
|
385
|
-
border-radius: ${A.btn};
|
|
386
|
-
background: ${o.panel};
|
|
387
|
-
|
|
388
|
-
/* The MONOCHROME credit glyph, in the text colour and matched to the amount beside it — this field used
|
|
389
|
-
the filled gradient mark, which at 17px next to a 16px figure read as a small warm smudge rather than a
|
|
390
|
-
unit. The mark is right for a price you are being shown; this is a price you are typing, so it belongs
|
|
391
|
-
to the input's own type. */
|
|
392
|
-
& .ico {
|
|
393
|
-
flex: 0 0 auto;
|
|
394
|
-
width: 22px;
|
|
395
|
-
height: 22px;
|
|
396
|
-
color: ${o.text};
|
|
397
|
-
}
|
|
398
|
-
transition:
|
|
399
|
-
border-color 0.15s,
|
|
400
|
-
box-shadow 0.15s;
|
|
401
|
-
|
|
402
|
-
&:focus-within {
|
|
403
|
-
border-color: ${o.accent};
|
|
404
|
-
box-shadow: 0 0 0 3px ${o.rarityBg};
|
|
405
|
-
}
|
|
406
|
-
`,lt=t.input`
|
|
407
|
-
flex: 1 1 auto;
|
|
408
|
-
min-width: 0;
|
|
409
|
-
border: 0;
|
|
410
|
-
outline: 0;
|
|
411
|
-
background: transparent;
|
|
412
|
-
font: inherit;
|
|
413
|
-
font-weight: 600;
|
|
414
|
-
font-size: 16px;
|
|
415
|
-
color: ${o.text};
|
|
416
|
-
text-align: right;
|
|
417
|
-
font-variant-numeric: tabular-nums;
|
|
418
|
-
`,ct=t.div`
|
|
419
|
-
display: flex;
|
|
420
|
-
align-items: baseline;
|
|
421
|
-
gap: 4px;
|
|
422
|
-
font-weight: 500;
|
|
423
|
-
font-size: 12px;
|
|
424
|
-
color: ${o.gray0};
|
|
425
|
-
`,pt=t.span`
|
|
426
|
-
font-weight: 300;
|
|
427
|
-
font-size: 10px;
|
|
428
|
-
color: ${o.muted};
|
|
429
|
-
`,xt=t.div`
|
|
430
|
-
height: 101px;
|
|
431
|
-
border: 1px solid transparent;
|
|
432
|
-
border-radius: ${A.card};
|
|
433
|
-
background: linear-gradient(100deg, #ededed 30%, #f7f7f7 50%, #ededed 70%);
|
|
434
|
-
background-size: 200% 100%;
|
|
435
|
-
animation: shimmer 1.3s infinite linear;
|
|
436
|
-
`,ht=t.div`
|
|
437
|
-
position: fixed;
|
|
438
|
-
left: 0;
|
|
439
|
-
right: 0;
|
|
440
|
-
bottom: 0;
|
|
441
|
-
z-index: 30;
|
|
442
|
-
background: rgba(255, 255, 255, 0.9);
|
|
443
|
-
backdrop-filter: blur(12px);
|
|
444
|
-
border-top: 1px solid ${o.line};
|
|
445
|
-
`,gt=t.div`
|
|
446
|
-
max-width: 1003px;
|
|
447
|
-
margin: 0 auto;
|
|
448
|
-
padding: 15px 20px;
|
|
449
|
-
display: flex;
|
|
450
|
-
align-items: center;
|
|
451
|
-
gap: 16px;
|
|
452
|
-
|
|
453
|
-
${Pe.maxWidth("mobile")} {
|
|
454
|
-
padding: 12px 16px;
|
|
455
|
-
gap: 12px;
|
|
456
|
-
}
|
|
457
|
-
`,mt=t.div`
|
|
458
|
-
display: flex;
|
|
459
|
-
align-items: center;
|
|
460
|
-
gap: 6px;
|
|
461
|
-
font-weight: 600;
|
|
462
|
-
font-size: 16px;
|
|
463
|
-
color: ${o.text};
|
|
464
|
-
`,ut=t.div`
|
|
465
|
-
font-size: 13px;
|
|
466
|
-
color: ${o.muted};
|
|
467
|
-
`,ft=t.span`
|
|
468
|
-
flex: 1 1 auto;
|
|
469
|
-
`,wt=t(I)`
|
|
470
|
-
flex: none;
|
|
471
|
-
padding: 13px 24px;
|
|
472
|
-
`,yt="https://docs.decentraland.org";function bt(a){try{return oe(BigInt(a))}catch{return null}}function Nt(){const{session:a}=te(),h=ie(),{items:c,isLoading:v}=pe(),[S,k]=b.useState({}),[p,j]=b.useState(new Set),[T,z]=b.useState(null);b.useEffect(()=>{c.length&&k(i=>{const d={...i};for(const l of c)d[l.oldTradeId]==null&&(d[l.oldTradeId]=l.suggestedCredits);return d})},[c]);const $=i=>!p.has(i),y=i=>S[i.oldTradeId]??i.suggestedCredits,g=c.filter(i=>$(i.oldTradeId)),M=g.reduce((i,d)=>i+y(d),0),C=c.length>0&&g.length===c.length,s=g.length>0&&!C;function x(i,d){const l=d.replace(/[^\d]/g,"");k(R=>({...R,[i]:l===""?0:parseInt(l,10)}))}function r(i){j(d=>{const l=new Set(d);return l.has(i)?l.delete(i):l.add(i),l})}function m(){j(C?new Set(c.map(i=>i.oldTradeId)):new Set)}function u(i){return i.map(d=>({item:d,priceCredits:Math.max(1,y(d))}))}function f(){h.invalidateQueries({queryKey:["importable"]}),h.invalidateQueries({queryKey:["shop-items"]}),h.invalidateQueries({queryKey:["catalog-items"]}),h.invalidateQueries({queryKey:["overview-listings"]}),h.invalidateQueries({queryKey:["upsell-listings"]}),h.invalidateQueries({queryKey:["my-assets"]}),h.invalidateQueries({queryKey:["collection-sale-state"]}),de.success(n("importListings.toastUpdated"))}return!v&&c.length===0?e.jsxs(_e,{children:[e.jsx(Qe,{"aria-hidden":!0,children:"✨"}),e.jsx(Fe,{children:n("importListings.emptyTitle")}),e.jsx("p",{className:"muted",children:n("importListings.emptyBody")}),e.jsx(De,{as:Y,to:"/my-items",variant:"purple",children:n("importListings.goToMyAssets")})]}):e.jsxs(We,{children:[e.jsxs(Ke,{children:[e.jsxs(Oe,{children:[e.jsx(Ue,{children:n("importListings.title")}),e.jsxs("div",{children:[e.jsx(He,{children:n("importListings.lede",{currency:ne(N.name)})}),e.jsxs(Je,{href:yt,target:"_blank",rel:"noopener noreferrer",children:[n("importListings.learnMore"),e.jsx(Q,{name:"external-link",className:"ico","aria-hidden":!0})]})]})]}),e.jsx(he,{})]}),e.jsx(Ve,{}),e.jsxs(Xe,{children:[e.jsxs(Ye,{"data-testid":"import-progress",children:[e.jsx(Ge,{"data-testid":"import-count",children:c.length}),n("importListings.updatePricing")]}),e.jsxs(Ze,{children:[e.jsxs(qe,{children:[e.jsx(O,{children:e.jsx(F,{type:"checkbox",checked:C,ref:i=>{i&&(i.indeterminate=s)},"data-indeterminate":s,onChange:m,"data-testid":"import-select-all","aria-label":n("importListings.selectAllAria")})}),n("importListings.selectAll")]}),e.jsx(et,{children:v?Array.from({length:4}).map((i,d)=>e.jsx(xt,{},d)):c.map(i=>{const d=y(i),l=se({...i,wearableCategory:i.wearableCategory??void 0}),R=bt(i.manaWei);return e.jsxs(tt,{"data-off":$(i.oldTradeId)?void 0:!0,children:[e.jsxs(it,{children:[e.jsx(O,{children:e.jsx(F,{type:"checkbox",checked:$(i.oldTradeId),onChange:()=>r(i.oldTradeId),"data-testid":"import-row-check","aria-label":n("importListings.includeItem",{name:i.name})})}),e.jsx(nt,{children:i.thumbnail?e.jsx("img",{src:i.thumbnail,alt:""}):null})]}),e.jsxs(st,{children:[e.jsx(at,{title:i.name,children:i.name||n("importListings.itemFallback")}),e.jsxs(rt,{children:[e.jsx(U,{"data-variant":"rarity",style:{background:re(i.rarity),color:ae(i.rarity)},children:i.rarity}),l?e.jsx(U,{"data-variant":"icon",children:e.jsx(Q,{name:l,"aria-hidden":!0})}):null]})]}),e.jsxs(ot,{children:[e.jsxs(dt,{children:[e.jsx(H,{}),e.jsx(lt,{"data-testid":"imp-price-input",inputMode:"numeric",value:d.toLocaleString(),onChange:V=>x(i.oldTradeId,V.target.value),"aria-label":n("importListings.priceAria",{currency:N.name,name:i.name})})]}),e.jsxs(ct,{children:[e.jsxs("span",{children:["$",B(d).toFixed(2)]}),R?e.jsx(pt,{children:n("importListings.wasMana",{amount:R})}):null]})]})]},i.oldTradeId)})})]})]}),e.jsx(ht,{children:e.jsxs(gt,{children:[e.jsxs("div",{children:[e.jsxs(mt,{children:[e.jsx(ge,{})," ",M.toLocaleString()]}),e.jsx(ut,{children:n("importListings.selectedSummary",{count:g.length,usd:B(M).toFixed(2)})})]}),e.jsx(ft,{}),e.jsx(wt,{variant:"purple",disabled:g.length===0,onClick:()=>z(u(g)),children:n("importListings.listAll",{count:g.length})})]})}),T&&a?e.jsx(Ne,{queue:T,session:a,onClose:()=>z(null),onDone:f}):null]})}export{Nt as ImportListings};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var w=Object.defineProperty;var m=(t,r,e)=>r in t?w(t,r,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[r]=e;var l=(t,r,e)=>m(t,typeof r!="symbol"?r+"":r,e);import{r as h}from"./react-DehiWSvs.js";import{k as y,l as I,m as S,p as A,c as g,n as T,u as E}from"./index-Dy5Vw1H0.js";import{c as b,r as L,u as M}from"./buy-k-76F4x2.js";import{e as R,c as k,a as v,d as x}from"./trade-encoding-SVWWPYXU.js";import{m as O}from"./mana-convert-D_y2vjtn.js";const u=1e3*60*60*24*182;async function P(t){const r=await fetch(`${g.marketplaceServerUrl}/v3/catalog/importable?seller=${t.toLowerCase()}`);if(!r.ok)throw new Error(`fetchImportable ${r.status}`);const{data:e}=await r.json(),a=e??[];if(a.length===0)return{creations:[],owned:[]};const o=a[0].chainId||g.chainId,s=await L(o),c=a.map(n=>({...n,suggestedCredits:O(n.manaWei,s)??1}));return{creations:c.filter(n=>n.listingType==="primary"),owned:c.filter(n=>n.listingType==="secondary")}}const f=[3e3,3e3,4e3,5e3,6e3,8e3,8e3];async function p(t,r){for(let e=0;;e++)try{await A(t,r);return}catch(a){if(!/already an open order/i.test((a==null?void 0:a.message)??"")||e>=f.length)throw a;await new Promise(s=>setTimeout(s,f[e]))}}class _ extends Error{constructor(e){super("Your old listing was removed, but re-listing in the Shop failed — re-list it from My Assets.");l(this,"original");this.name="RelistFailedError",this.original=e}}async function $(t,r,e,a={}){const o=r/10,s=t.chainId,c=t.network;if(t.listingType==="secondary"&&!await y())throw new Error("The Shop does not offer secondary sales; this listing cannot be migrated.");let n=!1;if(a.cancelOld!==!1){const i=await I(t.oldTradeId).catch(d=>{if(d instanceof S)return null;throw d});i&&(await b({trade:i,signer:e.signer}),n=!0)}try{if(t.listingType==="primary"){await R({signer:e.signer,contractAddress:t.contractAddress,chainId:s});const i=await k({signer:e.signer,item:{contractAddress:t.contractAddress,itemId:t.itemId??"",network:c,chainId:s},usdPrice:o,uses:t.available,expiresAtMs:Date.now()+u});await p(i,e.identity)}else{await v({signer:e.signer,contractAddress:t.contractAddress,chainId:s});const i=await x({signer:e.signer,nft:{contractAddress:t.contractAddress,tokenId:t.tokenId??"",network:c,chainId:s},usdPrice:o,expiresAtMs:Date.now()+u});await p(i,e.identity)}}catch(i){throw n?new _(i):i}}function q(){const t=T(s=>{var c;return(c=s.session)==null?void 0:c.address}),r=M(),{data:e,isLoading:a}=E({queryKey:["importable",t],queryFn:()=>P(t),enabled:!!t,staleTime:5*6e4}),o=h.useMemo(()=>[...(e==null?void 0:e.creations)??[],...r?(e==null?void 0:e.owned)??[]:[]],[e,r]);return{items:o,count:e?o.length:void 0,isLoading:a}}export{_ as R,$ as i,q as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{u as r,c as e}from"./index-Dy5Vw1H0.js";import{r as t}from"./buy-k-76F4x2.js";function s(a=!0){return r({queryKey:["mana-rate",e.chainId],queryFn:()=>t(e.chainId),enabled:a,staleTime:6e4,refetchInterval:6e4,retry:1})}export{s as u};
|