@dcl/shop 0.5.1-30934281711.commit-71d435d → 0.5.1-30936490891.commit-42e2634
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 +336 -0
- package/_assets/{AnimatedBackground-COSG1YHZ.js → AnimatedBackground-Bv2erZC5.js} +1 -1
- package/_assets/{Assets-hxHJCxJp.js → Assets-BoR-QJY6.js} +15 -15
- package/_assets/{Assets.styles-CqHMtvn6.js → Assets.styles-BePHQ_QA.js} +1 -1
- package/_assets/{Authorizations-Z_3XHseF.js → Authorizations-BCA1IImf.js} +3 -3
- package/_assets/{Cart-Csx5bd_E.js → Cart-DTe7zox3.js} +6 -6
- package/_assets/{CircularProgress-CxdmiPfO.js → CircularProgress-DzeFXlov.js} +1 -1
- package/_assets/{Collection-CCy2cdeV.js → Collection-DHHXSeak.js} +6 -6
- package/_assets/{CollectionCarousel-CKFxOqjb.js → CollectionCarousel-Orp4rJm9.js} +7 -7
- package/_assets/{Creator-plYQGi53.js → Creator-AMjYkiKe.js} +9 -9
- package/_assets/{ErrorNotice-C-nXSZqX.js → ErrorNotice-I9zAvGEr.js} +1 -1
- package/_assets/{ExchangeController-DY7abnKb.js → ExchangeController-B-TJWUiW.js} +1 -1
- package/_assets/{GetCredits-TNPm_zAt.js → GetCredits-BNkvpwnR.js} +7 -7
- package/_assets/{HelpersUtil-DxyZBMvo.js → HelpersUtil-ylN16m8a.js} +1 -1
- package/_assets/{ItemDetail-CuLGfIRL.js → ItemDetail-k2BANQ0W.js} +6 -6
- package/_assets/{LoadMore-yAi8vsa6.js → LoadMore-DPVuoR5W.js} +1 -1
- package/_assets/ManaPricingBanner.styles-nRVCJe8Y.js +74 -0
- package/_assets/{MenuList-CtnltPtJ.js → MenuList-yS83NC0F.js} +1 -1
- package/_assets/MyAssets-Ds0TK1z5.js +381 -0
- package/_assets/{MyFavorites-DvP0qwpm.js → MyFavorites-CDmtpdZP.js} +2 -2
- package/_assets/{NotFound-BfV911SO.js → NotFound-CVe0kC-t.js} +1 -1
- package/_assets/{NotificationsBell-LBfk_tmW.js → NotificationsBell-Fprokx0Q.js} +1 -1
- package/_assets/{OutfitDetail-CUGDW7tY.js → OutfitDetail-CdEsz8A4.js} +10 -10
- package/_assets/{OutfitPreview-BbEqr4QU.js → OutfitPreview-Y1WhUQaY.js} +2 -2
- package/_assets/{OutfitStudio-C7sSmIlF.js → OutfitStudio-B9G6xI3H.js} +11 -11
- package/_assets/{StoreSettings-CPNAijT4.js → StoreSettings-RMqF_ccU.js} +9 -9
- package/_assets/{Success-CoreUida.js → Success-rJNIKLQ6.js} +6 -6
- package/_assets/{SwapController-CEnoFZxK.js → SwapController-CgtlXeu5.js} +1 -1
- package/_assets/{Tooltip-D2z-c3xY.js → Tooltip-D1Bg11IA.js} +1 -1
- package/_assets/{TradeService-C0WM0IK5.js → TradeService-BhQmC5tm.js} +1 -1
- package/_assets/{W3MFrameProviderSingleton-DHADoYvF.js → W3MFrameProviderSingleton-D-orryVV.js} +3 -3
- package/_assets/{WebCryptoP256-D3CAJ1hZ.js → WebCryptoP256-Ckj1TqYw.js} +1 -1
- package/_assets/{authorizations-DKmCykqz.js → authorizations-vn6dbOqY.js} +1 -1
- package/_assets/{basic-CEhjKQJL.js → basic-D2f8I1xA.js} +1 -1
- package/_assets/{biconomy-BykCCfMc.js → biconomy-BZAxWDGN.js} +1 -1
- package/_assets/{browseLayout.styles-BrABo9Hf.js → browseLayout.styles-BYrLBkl5.js} +4 -4
- package/_assets/{builder-BkXoi_6e.js → builder-DT_IucDZ.js} +1 -1
- package/_assets/{buy-gasless-CGeqOHtJ.js → buy-gasless-DP35z8wI.js} +1 -1
- package/_assets/buy-k-76F4x2.js +1 -0
- package/_assets/{categories-2xUKydml.js → categories-_gS0pssw.js} +1 -1
- package/_assets/{ccip-BlVvJTli.js → ccip-B4KLf1_A.js} +1 -1
- package/_assets/{ccip-CADVZTOO.js → ccip-skuYIwjJ.js} +1 -1
- package/_assets/{clsx-CqnJSHSW.js → clsx-BtU7gPvo.js} +1 -1
- package/_assets/{controller-BP8z62yr.js → controller-BkNCBo5Z.js} +2 -2
- package/_assets/{core-CI5jAIo9.js → core-NV0Q-IPg.js} +4 -4
- package/_assets/{createSvgIcon-C_0Xv0NV.js → createSvgIcon-ONkmiYB6.js} +1 -1
- package/_assets/{custom-iCYkgXy_.js → custom-B2TqKkEi.js} +1 -1
- package/_assets/{data-capture-Bvpb1Gue.js → data-capture-ubD-gh1z.js} +1 -1
- package/_assets/{email-DGY8FmZr.js → email-yk5CxwkK.js} +1 -1
- package/_assets/{embedded-wallet-DGdykNIW.js → embedded-wallet-Sdgu7IIM.js} +1 -1
- package/_assets/{emotion-styled.browser.esm-BcV8HqIx.js → emotion-styled.browser.esm-Bi-gHJrz.js} +1 -1
- package/_assets/{engine-CG5_hJfk.js → engine-tdlero6P.js} +1 -1
- package/_assets/{errors-N8U87ba-.js → errors-WsZgWksO.js} +1 -1
- package/_assets/{estimate-l1-fee-BOQxb4ii.js → estimate-l1-fee-CyMpT0rk.js} +1 -1
- package/_assets/{execute-fo7nVUhk.js → execute-C4cl9W-o.js} +2 -2
- package/_assets/{features-Dg1ILYcD.js → features-CZqcLmC4.js} +1 -1
- package/_assets/{fetchTokenMetadata-WWZG1mk5.js → fetchTokenMetadata-CS5UBL6x.js} +2 -2
- package/_assets/{field.styles-D-WXHTOH.js → field.styles-CJlWBLbF.js} +1 -1
- package/_assets/{get-ecosystem-wallet-info-CImjdvym.js → get-ecosystem-wallet-info-07JzLM0i.js} +1 -1
- package/_assets/{getBalance-CRQfFcYC.js → getBalance-DL9ADD0u.js} +1 -1
- package/_assets/{getNFT-D3KLRabb.js → getNFT-D17z9oKn.js} +1 -1
- package/_assets/{getNFT-B2PC0-g2.js → getNFT-DoaFm4AC.js} +1 -1
- package/_assets/{getThemeProps-DmYVP8OC.js → getThemeProps-Cl72yIFf.js} +1 -1
- package/_assets/{grid.styles-wzi16hJ0.js → grid.styles-BZnnDTVu.js} +1 -1
- package/_assets/{hashTypedData-BDhBKMw7.js → hashTypedData-CrsUYWGu.js} +1 -1
- package/_assets/{hashTypedData-7f24Qmm1.js → hashTypedData-wJwJpwvj.js} +1 -1
- package/_assets/{in-app-Dw1uWQch.js → in-app-Btz7IDiL.js} +1 -1
- package/_assets/{in-app-wallet-calls-Ced-Hk1u.js → in-app-wallet-calls-DP3IphiJ.js} +1 -1
- package/_assets/{index-miM7OoYW.js → index-639jix5x.js} +1 -1
- package/_assets/{index-Bv6jRoUh.js → index-7BMeGSgL.js} +1 -1
- package/_assets/{index-HcU1BZGi.js → index-8SWxdM-1.js} +1 -1
- package/_assets/{index-BSJOsaoy.js → index-B59Gh8B7.js} +1 -1
- package/_assets/{index-DGhB3WMs.js → index-B5UKanqd.js} +1 -1
- package/_assets/{index-Dh2nN1pf.js → index-BE-fLnWc.js} +1 -1
- package/_assets/{index-C0tjFuh4.js → index-BM3ki5xD.js} +1 -1
- package/_assets/{index-B1-7yuu3.js → index-BQimjtyT.js} +3 -3
- package/_assets/{index-cgof2fbB.js → index-BVdlPUJG.js} +1 -1
- package/_assets/{index-BUZJwPmQ.js → index-BYbz0Puw.js} +1 -1
- package/_assets/{index-Bbu6XUqy.js → index-BbQMVOsy.js} +3 -3
- package/_assets/{index-B1l_Uvp9.js → index-BeQhSahz.js} +1 -1
- package/_assets/{index-Bkg0Qrp6.js → index-Bi_Apm6j.js} +1 -1
- package/_assets/{index-D3jBjpLf.js → index-BlQcf37-.js} +1 -1
- package/_assets/{index-Nu_iUU26.js → index-BtwYGrhd.js} +1 -1
- package/_assets/{index-BQE1lbNd.js → index-BxzWlq1h.js} +1 -1
- package/_assets/{index-DRMZKNFH.js → index-C0xJOFUc.js} +1 -1
- package/_assets/{index-BRAjDYmB.js → index-C1Z_9GsV.js} +1 -1
- package/_assets/{index-Drfl98A2.js → index-C45bHTUp.js} +1 -1
- package/_assets/{index-DyghLCFO.js → index-C7KsfPUz.js} +1 -1
- package/_assets/{index-DfnFAWTr.js → index-CBXYUzDZ.js} +2 -2
- package/_assets/{index-B0rKW0gc.js → index-CFksIzM4.js} +1 -1
- package/_assets/{index-DDu4b2rq.js → index-CL530K8Y.js} +1 -1
- package/_assets/{index-CRdySivd.js → index-CMFliAhY.js} +1 -1
- package/_assets/{index-uh1KT2cw.js → index-CPdKHNCF.js} +1 -1
- package/_assets/{index-CFw8nBxU.js → index-CQQrdcNQ.js} +1 -1
- package/_assets/{index-C53xszMs.js → index-CZF0PGAb.js} +1 -1
- package/_assets/{index-B_dncyHS.js → index-CbHNXAwv.js} +2 -2
- package/_assets/{index-DQsiee3b.js → index-Ci8PIdRp.js} +1 -1
- package/_assets/{index-CBpSiNz5.js → index-ClHp2_nl.js} +1 -1
- package/_assets/{index-DpqAhSTM.js → index-CrWSaqPI.js} +1 -1
- package/_assets/{index-BPGvNzFI.js → index-CtASwK4E.js} +1 -1
- package/_assets/{index-x992Sn-f.js → index-CtaCRDRI.js} +1 -1
- package/_assets/{index-DHYMCRcr.js → index-Cxty1u3d.js} +1 -1
- package/_assets/{index-lG7DN5xF.js → index-CzghBU6C.js} +1 -1
- package/_assets/{index-_SEhAywg.js → index-D4hVVIWp.js} +1 -1
- package/_assets/{index-BCvO08kk.js → index-DJ-CxX91.js} +1 -1
- package/_assets/{index-BD0M18Fj.js → index-DKnXZSeg.js} +1 -1
- package/_assets/{index-CiM8C2LD.js → index-DQM4pVOP.js} +1 -1
- package/_assets/{index-DLdGvRZQ.js → index-DcebaGnX.js} +1 -1
- package/_assets/{index-DFzINjaK.js → index-DimCwX0M.js} +1 -1
- package/_assets/{index-B3Hj28R0.js → index-DjltGmXq.js} +1 -1
- package/_assets/{index-DaLiUn8r.js → index-Dlg6tqPP.js} +1 -1
- package/_assets/{index-BpZz3bw9.js → index-DpOehH6H.js} +3 -3
- package/_assets/{index-Da1IWtza.js → index-Dy5Vw1H0.js} +91 -91
- package/_assets/{index-WEZnjywW.js → index-EECYRahm.js} +1 -1
- package/_assets/index-EheyvR55.js +472 -0
- package/_assets/{index-BiDNavgD.js → index-IsmxguMZ.js} +1 -1
- package/_assets/{index-D0Aqcjc0.js → index-O4FksRMn.js} +1 -1
- package/_assets/{index-BKjuIcZ1.js → index-grgWjFlo.js} +1 -1
- package/_assets/{index-BxR8fKca.js → index-m00Y2hq4.js} +1 -1
- package/_assets/{index-CgIgZ8TZ.js → index-nNKO8ftl.js} +2 -2
- package/_assets/{index.es-4XDsATwL.js → index.es-BzqwGWTI.js} +4 -4
- package/_assets/{index.es-DSpyirS0.js → index.es-KzvQwqfO.js} +1 -1
- package/_assets/{index.es-teXV_ogJ.js → index.es-StMi_Ya4.js} +1 -1
- package/_assets/{localBatchGatewayRequest-DeyVc56J.js → localBatchGatewayRequest-DQGGi_PU.js} +1 -1
- package/_assets/{mana-convert-DnJmYgcw.js → mana-convert-D_y2vjtn.js} +1 -1
- package/_assets/{networks-1b8NsW4Y.js → networks-DDcMYhGU.js} +1 -1
- package/_assets/{onramp-hTLhj5ti.js → onramp-CBdambV_.js} +1 -1
- package/_assets/{openzeppelin-BJlHJFSk.js → openzeppelin-DSxwqs4i.js} +1 -1
- package/_assets/{parseNft-DkIiwdC7.js → parseNft-DHPQc0OX.js} +2 -2
- package/_assets/{parseSignature-DQwihZkm.js → parseSignature-CGumShnk.js} +1 -1
- package/_assets/{parseSignature-CvH9K2oI.js → parseSignature-DJF5siOG.js} +3 -3
- package/_assets/{passkeys-IvY3Iqv-.js → passkeys-C9h38bzo.js} +1 -1
- package/_assets/{pay-with-exchange-BdHjrEQV.js → pay-with-exchange-CdWIlkYG.js} +1 -1
- package/_assets/{qr-overlay-BYsKakQ3.js → qr-overlay-DfYnP7zW.js} +1 -1
- package/_assets/{receive-YK_fd_CU.js → receive-BDPZr_50.js} +1 -1
- package/_assets/{resolveImplementation-DPilssBn.js → resolveImplementation-1IibNw8J.js} +1 -1
- package/_assets/{rpc-Sc56-gmm.js → rpc-Be4cuLO-.js} +1 -1
- package/_assets/{secp256k1-D_5VBkHj.js → secp256k1-C2A9iNFQ.js} +1 -1
- package/_assets/{secp256k1-Cc4QlgFt.js → secp256k1-CBaRftLy.js} +1 -1
- package/_assets/{secp256k1-mkhJYubv.js → secp256k1-CfSstl_L.js} +1 -1
- package/_assets/{send-DeNQyeKY.js → send-DpFdmYN7.js} +1 -1
- package/_assets/{send-batch-transaction-DNMKl7ky.js → send-batch-transaction-Bfap8p0Z.js} +1 -1
- package/_assets/{send-eip712-transaction-CDu2CS-m.js → send-eip712-transaction-Ca7s6qzX.js} +2 -2
- package/_assets/{send-gasless-transaction-BfQQxuNb.js → send-gasless-transaction-DPOigmTX.js} +2 -2
- package/_assets/{send-transaction-egO16iDc.js → send-transaction-D2BNOa_n.js} +2 -2
- package/_assets/{sendMetaTransaction-kBil2Ej7.js → sendMetaTransaction-feJSI2TG.js} +1 -1
- package/_assets/{sendRawTransaction-8z5-lN6F.js → sendRawTransaction-B-XApuqY.js} +3 -3
- package/_assets/{serializeTransaction-D2h63c4_.js → serializeTransaction-I8okodGI.js} +1 -1
- package/_assets/{session-proposal-DW2kA8O7.js → session-proposal-DvL8lvR_.js} +1 -1
- package/_assets/{session-request-CPMpN15W.js → session-request-BXYdMjrw.js} +2 -2
- package/_assets/{signing-DPwEu2UU.js → signing-DT63E54M.js} +3 -3
- package/_assets/{socials-CBKa2AOj.js → socials-ClcK9a8P.js} +1 -1
- package/_assets/{swaps-xpOfH90g.js → swaps-C0ufdoJC.js} +1 -1
- package/_assets/{thirdweb-DzBPyGMD.js → thirdweb-B50LsjvD.js} +3 -3
- package/_assets/{to-serializable-transaction-Cq1PN1aZ.js → to-serializable-transaction-D0wz5egz.js} +2 -2
- package/_assets/{trade-encoding-4xiglK48.js → trade-encoding-SVWWPYXU.js} +1 -1
- package/_assets/{transactionReceipt-Bx1LFZ2X.js → transactionReceipt-BW33bMK1.js} +1 -1
- package/_assets/{transactions-ncGplKHW.js → transactions-Dydjvljn.js} +1 -1
- package/_assets/{useCreditPacks-BElseyte.js → useCreditPacks-BFQph8eD.js} +1 -1
- package/_assets/useImportable-BP4DqZ-f.js +1 -0
- package/_assets/{useInfiniteGrid-RdlgtcqE.js → useInfiniteGrid-Dz6b_PHh.js} +1 -1
- package/_assets/useManaRate-CfhYfW7C.js +1 -0
- package/_assets/{useStore-C66JN0w6.js → useStore-ff9cCCX6.js} +1 -1
- package/_assets/{useTheme-DO99UzMT.js → useTheme-BzWpoSXD.js} +1 -1
- package/_assets/{verifyHash-DdYLeP97.js → verifyHash-6ZvXkv0_.js} +1 -1
- package/_assets/{w3m-modal-CD6HTrJ3.js → w3m-modal-B5LvO_YQ.js} +1 -1
- package/_assets/{w3m-modal-C0b4AnQ3.js → w3m-modal-BI6MOh7J.js} +1 -1
- package/_assets/{wait-for-tx-receipt-CYCUuRY7.js → wait-for-tx-receipt-B6htZpEq.js} +1 -1
- package/_assets/{wallets-B_igN3zv.js → wallets-cwZJIsw-.js} +5 -5
- package/_assets/{web-connector-DtLrUYHU.js → web-connector-BMBh8mIE.js} +3 -3
- package/_assets/{writeContract-CvTh4kpk.js → writeContract-C3lGbTIC.js} +1 -1
- package/_assets/{zoraTestnet-vikR0D9L.js → zoraTestnet-Dvb_L0a4.js} +1 -1
- package/index.html +11 -11
- package/package.json +2 -2
- package/_assets/Activity-DbEcN_ip.js +0 -291
- package/_assets/ImportListings-BJ0q3u26.js +0 -472
- package/_assets/ManaPricingBanner.styles-ByRxQdOU.js +0 -74
- package/_assets/MyAssets-CkgpQXbD.js +0 -381
- package/_assets/buy-DKJg2rHj.js +0 -1
- package/_assets/mana-rate-CC5D3Meh.js +0 -1
- package/_assets/useManaRate-DAwFZ75M.js +0 -1
|
@@ -1,472 +0,0 @@
|
|
|
1
|
-
import{j as e,d as se,r as w,L as ae}from"./react-DehiWSvs.js";import{t as Q,s as t,l as re,o as oe,b as n,d as _,B as S,p as q,O as de,aZ as F,j as D,F as le,m as ce,n as pe,q as xe,u as he,aa as ge,I as K,Z as me,a1 as ue,a2 as fe,bu as we,w as ye}from"./index-Da1IWtza.js";import{i as be,b as je,S as ve,C as ke,c as $e,f as Ie}from"./ManaPricingBanner.styles-ByRxQdOU.js";import{u as Ce}from"./buy-DKJg2rHj.js";import{C as W}from"./field.styles-D-WXHTOH.js";import"./sentry-973sfbO9.js";import"./dcl-schemas-Dr9BTjb7.js";import"./ethers-CtNGBird.js";import"./intl-CBcMB1D2.js";import"./mana-rate-CC5D3Meh.js";import"./mana-convert-DnJmYgcw.js";import"./trade-encoding-4xiglK48.js";import"./authorizations-DKmCykqz.js";import"./sendMetaTransaction-kBil2Ej7.js";function O({size:a=12,...v}){return e.jsx("svg",{viewBox:"0 0 20 20",width:a,height:a,fill:"none","aria-hidden":!0,focusable:"false",...v,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:Se,z:Le}=Q,Te=re`
|
|
2
|
-
0% {
|
|
3
|
-
transform: scale(0);
|
|
4
|
-
opacity: 0;
|
|
5
|
-
}
|
|
6
|
-
100% {
|
|
7
|
-
transform: scale(1);
|
|
8
|
-
opacity: 1;
|
|
9
|
-
}
|
|
10
|
-
`,U=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: ${Le.overlay};
|
|
19
|
-
`,ee=t.div`
|
|
20
|
-
background: ${L.white};
|
|
21
|
-
border-radius: ${Se.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
|
-
`,H=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 ze=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
|
-
`,Me=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: ${Te} 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:y,gradients:Ee,radius:Ne}=Q,Re=t(ee)`
|
|
80
|
-
width: min(460px, 94vw);
|
|
81
|
-
text-align: left;
|
|
82
|
-
align-items: stretch;
|
|
83
|
-
`,Ae=t.div`
|
|
84
|
-
height: 6px;
|
|
85
|
-
border-radius: 999px;
|
|
86
|
-
background: ${y.line};
|
|
87
|
-
overflow: hidden;
|
|
88
|
-
margin: 6px 0 14px;
|
|
89
|
-
`,Be=t.div`
|
|
90
|
-
height: 100%;
|
|
91
|
-
width: 0;
|
|
92
|
-
background: ${Ee.amethyst};
|
|
93
|
-
border-radius: 999px;
|
|
94
|
-
transition: width 0.45s ease;
|
|
95
|
-
`,Pe=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
|
-
`,_e=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: ${y.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
|
-
`,Fe=t.span`
|
|
128
|
-
width: 34px;
|
|
129
|
-
height: 34px;
|
|
130
|
-
border-radius: ${Ne.btn};
|
|
131
|
-
overflow: hidden;
|
|
132
|
-
background: ${y.media};
|
|
133
|
-
display: grid;
|
|
134
|
-
place-items: center;
|
|
135
|
-
|
|
136
|
-
& img {
|
|
137
|
-
width: 100%;
|
|
138
|
-
height: 100%;
|
|
139
|
-
object-fit: contain;
|
|
140
|
-
}
|
|
141
|
-
`,Qe=t.span`
|
|
142
|
-
font-weight: 600;
|
|
143
|
-
font-size: 14px;
|
|
144
|
-
white-space: nowrap;
|
|
145
|
-
overflow: hidden;
|
|
146
|
-
text-overflow: ellipsis;
|
|
147
|
-
`,De=t.span`
|
|
148
|
-
font-weight: 700;
|
|
149
|
-
font-size: 13px;
|
|
150
|
-
color: ${y.text2};
|
|
151
|
-
`,Ke=t.span`
|
|
152
|
-
font-size: 12px;
|
|
153
|
-
font-weight: 700;
|
|
154
|
-
color: ${y.accent};
|
|
155
|
-
display: inline-flex;
|
|
156
|
-
align-items: center;
|
|
157
|
-
gap: 6px;
|
|
158
|
-
justify-content: flex-end;
|
|
159
|
-
min-width: 74px;
|
|
160
|
-
`,We=t.span`
|
|
161
|
-
color: ${y.muted2};
|
|
162
|
-
font-weight: 600;
|
|
163
|
-
`,P=t.span`
|
|
164
|
-
color: ${y.muted};
|
|
165
|
-
font-weight: 600;
|
|
166
|
-
`,Oe=t.span`
|
|
167
|
-
width: 14px;
|
|
168
|
-
height: 14px;
|
|
169
|
-
margin: 0;
|
|
170
|
-
border-width: 2px;
|
|
171
|
-
`,Ue=t.span`
|
|
172
|
-
width: 20px;
|
|
173
|
-
height: 20px;
|
|
174
|
-
border-radius: 50%;
|
|
175
|
-
background: ${y.ok};
|
|
176
|
-
color: ${y.white};
|
|
177
|
-
display: grid;
|
|
178
|
-
place-items: center;
|
|
179
|
-
font-size: 12px;
|
|
180
|
-
`,He=t.p`
|
|
181
|
-
margin: 12px 0 0;
|
|
182
|
-
`;function Ze({queue:a,session:v,onClose:k,onDone:g}){const $=se(),m=oe(v.providerType),[c,b]=w.useState(()=>a.map(()=>"pending")),[R,T]=w.useState("running"),z=w.useRef(!1);w.useEffect(()=>{if(z.current)return;z.current=!0;let r=!1;return(async()=>{for(let s=0;s<a.length;s++){if(r)return;b(u=>u.map((h,f)=>f===s?"active":h));try{await be(a[s].item,a[s].priceCredits,v),de("Shop Migrated Listing",{item_id:a[s].item.itemId??a[s].item.oldTradeId??null,contract_address:a[s].item.contractAddress,new_price_credits:a[s].priceCredits,new_price_usd:F(a[s].priceCredits)}),r||b(u=>u.map((h,f)=>f===s?"done":h))}catch(u){if(u instanceof je)D(u,{flow:"import_listing",step:"relist",itemId:a[s].item.itemId??a[s].item.oldTradeId}),r||b(h=>h.map((f,C)=>C===s?"unlisted":f));else{const h=u,f=h.code===4001||/reject|denied|cancel/i.test(h.message??"");f||D(u,{flow:"import_listing",itemId:a[s].item.itemId??a[s].item.oldTradeId}),r||b(C=>C.map((A,B)=>B===s?f?"skipped":"failed":A))}}}r||T("finished")})(),()=>{r=!0}},[]);const j=c.filter(r=>r==="done").length,I=c.findIndex(r=>r==="active"),M=Math.round(c.filter(r=>r!=="pending"&&r!=="active").length/a.length*100);function x(){g(),k()}if(R==="finished"){const r=c.filter(s=>s==="skipped"||s==="failed").length,l=c.filter(s=>s==="unlisted").length;return e.jsx(U,{role:"presentation",children:e.jsxs(ee,{"data-success":!0,role:"dialog","aria-modal":"true",children:[e.jsx(Me,{"aria-hidden":!0,children:e.jsx(O,{size:30})}),e.jsx(H,{children:j>0?n("migrate.successTitle"):n("migrate.nothingTitle")}),e.jsxs("p",{className:"muted",style:{margin:0},children:[j>0?n("migrate.listedSummary",{count:j,currency:_.name}):n("migrate.noneListed"),r>0?" "+n("migrate.skippedSummary",{count:r}):"",l>0?" "+n("migrate.unlistedSummary",{count:l}):""]}),e.jsxs(ze,{"data-actions":!0,children:[e.jsx(S,{variant:"ghost",onClick:x,children:n("getCredits.done")}),l>0?e.jsx(S,{variant:"purple",onClick:()=>{g(),k(),$("/my-items")},children:n("migrate.goToMyAssets")}):j>0?e.jsx(S,{variant:"purple",onClick:()=>{g(),k(),$("/items")},children:n("migrate.viewInShop")}):null]})]})})}return e.jsx(U,{role:"presentation",children:e.jsxs(Re,{"data-testid":"modal",role:"dialog","aria-modal":"true","aria-live":"polite",children:[e.jsx(H,{children:n("migrate.listingTitle")}),e.jsxs("p",{className:"muted small",style:{margin:"0 0 4px"},children:[m?n("migrate.subConfirm"):n("migrate.subManaged")," ",I>=0?n("migrate.progressCount",{current:I+1,total:a.length}):""]}),e.jsx(Ae,{children:e.jsx(Be,{style:{width:`${M}%`}})}),e.jsx(Pe,{children:a.map((r,l)=>e.jsxs(_e,{"data-status":c[l],children:[e.jsx(Fe,{children:r.item.thumbnail?e.jsx("img",{src:r.item.thumbnail,alt:""}):null}),e.jsx(Qe,{title:r.item.name,children:r.item.name||n("migrate.itemFallback")}),e.jsxs(De,{children:[e.jsx(q,{className:"ccy-mark"})," ",r.priceCredits.toLocaleString()]}),e.jsx(Ke,{children:c[l]==="active"?e.jsxs(e.Fragment,{children:[e.jsx(Oe,{className:"spinner","aria-hidden":!0})," ",m?n("migrate.statusConfirm"):n("migrate.statusAdding")]}):c[l]==="done"?e.jsx(Ue,{children:e.jsx(O,{})}):c[l]==="skipped"?e.jsx(P,{children:n("migrate.statusSkipped")}):c[l]==="failed"?e.jsx(P,{children:n("migrate.statusFailed")}):c[l]==="unlisted"?e.jsx(P,{title:n("migrate.unlistedTooltip"),children:n("migrate.statusUnlisted")}):e.jsx(We,{children:n("migrate.statusWaiting")})})]},r.item.oldTradeId))}),e.jsx(He,{className:"muted small",children:m?n("migrate.hintConfirm"):n("migrate.hintManaged")})]})})}const{colors:o,font:Ve,media:Ye,radius:N}=Q,Z=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
|
-
`,V=t.span`
|
|
192
|
-
font-size: 44px;
|
|
193
|
-
`,Y=t.h1`
|
|
194
|
-
font-size: 26px;
|
|
195
|
-
font-weight: 800;
|
|
196
|
-
margin: 4px 0 0;
|
|
197
|
-
`,G=t(S)`
|
|
198
|
-
margin-top: 10px;
|
|
199
|
-
`,Ge=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: ${Ve.sans};
|
|
207
|
-
`,Je=t.header`
|
|
208
|
-
display: flex;
|
|
209
|
-
flex-direction: column;
|
|
210
|
-
gap: 16px;
|
|
211
|
-
padding: 10px 12px;
|
|
212
|
-
`,Xe=t.div`
|
|
213
|
-
display: flex;
|
|
214
|
-
flex-direction: column;
|
|
215
|
-
gap: 8px;
|
|
216
|
-
`,qe=t.h1`
|
|
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
|
-
`,et=t.p`
|
|
224
|
-
margin: 0;
|
|
225
|
-
font-weight: 500;
|
|
226
|
-
font-size: 14px;
|
|
227
|
-
line-height: 1.334;
|
|
228
|
-
color: ${o.muted1};
|
|
229
|
-
`,tt=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
|
-
`,it=t.hr`
|
|
248
|
-
width: 100%;
|
|
249
|
-
height: 0;
|
|
250
|
-
margin: 0;
|
|
251
|
-
border: 0;
|
|
252
|
-
border-top: 1px solid ${o.line};
|
|
253
|
-
`,nt=t.div`
|
|
254
|
-
display: flex;
|
|
255
|
-
flex-direction: column;
|
|
256
|
-
gap: 8px;
|
|
257
|
-
padding: 8px 12px 0;
|
|
258
|
-
`,st=t(ve)`
|
|
259
|
-
font-size: 14px;
|
|
260
|
-
line-height: 1.334;
|
|
261
|
-
color: ${o.text2};
|
|
262
|
-
`,at=t.span`
|
|
263
|
-
flex: none;
|
|
264
|
-
display: grid;
|
|
265
|
-
place-items: center;
|
|
266
|
-
width: 20px;
|
|
267
|
-
height: 20px;
|
|
268
|
-
border-radius: ${N.pill};
|
|
269
|
-
background: ${o.brandViolet};
|
|
270
|
-
font-weight: 600;
|
|
271
|
-
font-size: 12px;
|
|
272
|
-
line-height: 1.6;
|
|
273
|
-
color: ${o.white};
|
|
274
|
-
`,rt=t.div`
|
|
275
|
-
display: flex;
|
|
276
|
-
flex-direction: column;
|
|
277
|
-
gap: 4px;
|
|
278
|
-
`,ot=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
|
-
`,J=t.span`
|
|
287
|
-
flex: none;
|
|
288
|
-
display: grid;
|
|
289
|
-
place-items: center;
|
|
290
|
-
width: 40px;
|
|
291
|
-
height: 40px;
|
|
292
|
-
`,dt=t.div`
|
|
293
|
-
display: flex;
|
|
294
|
-
flex-direction: column;
|
|
295
|
-
gap: 12px;
|
|
296
|
-
`,lt=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: ${N.card};
|
|
305
|
-
background: ${o.white};
|
|
306
|
-
overflow: hidden;
|
|
307
|
-
transition: opacity 0.25s ease;
|
|
308
|
-
|
|
309
|
-
&[data-off] {
|
|
310
|
-
opacity: 0.5;
|
|
311
|
-
}
|
|
312
|
-
`,ct=t.div`
|
|
313
|
-
flex: none;
|
|
314
|
-
display: flex;
|
|
315
|
-
align-items: center;
|
|
316
|
-
`,pt=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
|
-
`,xt=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
|
-
`,ht=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
|
-
`,gt=t.div`
|
|
351
|
-
display: flex;
|
|
352
|
-
align-items: flex-end;
|
|
353
|
-
gap: 4px;
|
|
354
|
-
`,X=t(le)`
|
|
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
|
-
`,mt=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
|
-
`,ut=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: ${N.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
|
-
`,ft=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
|
-
`,wt=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
|
-
`,yt=t.span`
|
|
426
|
-
font-weight: 300;
|
|
427
|
-
font-size: 10px;
|
|
428
|
-
color: ${o.muted};
|
|
429
|
-
`,bt=t.div`
|
|
430
|
-
height: 101px;
|
|
431
|
-
border: 1px solid transparent;
|
|
432
|
-
border-radius: ${N.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
|
-
`,jt=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
|
-
`,vt=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
|
-
${Ye.maxWidth("mobile")} {
|
|
454
|
-
padding: 12px 16px;
|
|
455
|
-
gap: 12px;
|
|
456
|
-
}
|
|
457
|
-
`,kt=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
|
-
`,$t=t.div`
|
|
465
|
-
font-size: 13px;
|
|
466
|
-
color: ${o.muted};
|
|
467
|
-
`,It=t.span`
|
|
468
|
-
flex: 1 1 auto;
|
|
469
|
-
`,Ct=t(S)`
|
|
470
|
-
flex: none;
|
|
471
|
-
padding: 13px 24px;
|
|
472
|
-
`,St="https://docs.decentraland.org";function Lt(a){try{return we(BigInt(a))}catch{return null}}function Wt(){ce({title:n("seo.import.title"),noindex:!0});const{session:a,signIn:v,restore:k}=pe(),g=xe(),$=a==null?void 0:a.address;w.useEffect(()=>{k()},[k]);const{data:m,isLoading:c}=he({queryKey:["importable",$],queryFn:()=>Ie($),enabled:!!$}),b=Ce(),[R,T]=w.useState({}),[z,j]=w.useState(new Set),[I,M]=w.useState(null),x=w.useMemo(()=>[...(m==null?void 0:m.creations)??[],...b?(m==null?void 0:m.owned)??[]:[]],[m,b]);w.useEffect(()=>{x.length&&T(i=>{const d={...i};for(const p of x)d[p.oldTradeId]==null&&(d[p.oldTradeId]=p.suggestedCredits);return d})},[x]);const r=i=>!z.has(i),l=i=>R[i.oldTradeId]??i.suggestedCredits,s=x.filter(i=>r(i.oldTradeId)),u=s.reduce((i,d)=>i+l(d),0),h=x.length>0&&s.length===x.length,f=s.length>0&&!h;function C(i,d){const p=d.replace(/[^\d]/g,"");T(E=>({...E,[i]:p===""?0:parseInt(p,10)}))}function A(i){j(d=>{const p=new Set(d);return p.has(i)?p.delete(i):p.add(i),p})}function B(){j(h?new Set(x.map(i=>i.oldTradeId)):new Set)}function te(i){return i.map(d=>({item:d,priceCredits:Math.max(1,l(d))}))}function ie(){g.invalidateQueries({queryKey:["importable"]}),g.invalidateQueries({queryKey:["shop-items"]}),g.invalidateQueries({queryKey:["catalog-items"]}),g.invalidateQueries({queryKey:["overview-listings"]}),g.invalidateQueries({queryKey:["upsell-listings"]}),g.invalidateQueries({queryKey:["my-assets"]}),g.invalidateQueries({queryKey:["collection-sale-state"]}),ye.success(n("importListings.toastUpdated"))}return a?!c&&x.length===0?e.jsxs(Z,{children:[e.jsx(V,{"aria-hidden":!0,children:"✨"}),e.jsx(Y,{children:n("importListings.emptyTitle")}),e.jsx("p",{className:"muted",children:n("importListings.emptyBody")}),e.jsx(G,{as:ae,to:"/my-items",variant:"purple",children:n("importListings.goToMyAssets")})]}):e.jsxs(Ge,{children:[e.jsxs(Je,{children:[e.jsxs(Xe,{children:[e.jsx(qe,{children:n("importListings.title")}),e.jsxs("div",{children:[e.jsx(et,{children:n("importListings.lede",{currency:ge(_.name)})}),e.jsxs(tt,{href:St,target:"_blank",rel:"noopener noreferrer",children:[n("importListings.learnMore"),e.jsx(K,{name:"external-link",className:"ico","aria-hidden":!0})]})]})]}),e.jsx(ke,{})]}),e.jsx(it,{}),e.jsxs(nt,{children:[e.jsxs(st,{"data-testid":"import-progress",children:[e.jsx(at,{"data-testid":"import-count",children:x.length}),n("importListings.updatePricing")]}),e.jsxs(rt,{children:[e.jsxs(ot,{children:[e.jsx(J,{children:e.jsx(W,{type:"checkbox",checked:h,ref:i=>{i&&(i.indeterminate=f)},"data-indeterminate":f,onChange:B,"data-testid":"import-select-all"})}),n("importListings.selectAll")]}),e.jsx(dt,{children:c?Array.from({length:4}).map((i,d)=>e.jsx(bt,{},d)):x.map(i=>{const d=l(i),p=me({...i,wearableCategory:i.wearableCategory??void 0}),E=Lt(i.manaWei);return e.jsxs(lt,{"data-off":r(i.oldTradeId)?void 0:!0,children:[e.jsxs(ct,{children:[e.jsx(J,{children:e.jsx(W,{type:"checkbox",checked:r(i.oldTradeId),onChange:()=>A(i.oldTradeId),"aria-label":n("importListings.includeItem",{name:i.name})})}),e.jsx(pt,{children:i.thumbnail?e.jsx("img",{src:i.thumbnail,alt:""}):null})]}),e.jsxs(xt,{children:[e.jsx(ht,{title:i.name,children:i.name||n("importListings.itemFallback")}),e.jsxs(gt,{children:[e.jsx(X,{"data-variant":"rarity",style:{background:fe(i.rarity),color:ue(i.rarity)},children:i.rarity}),p?e.jsx(X,{"data-variant":"icon",children:e.jsx(K,{name:p,"aria-hidden":!0})}):null]})]}),e.jsxs(mt,{children:[e.jsxs(ut,{children:[e.jsx(q,{}),e.jsx(ft,{"data-testid":"imp-price-input",inputMode:"numeric",value:d.toLocaleString(),onChange:ne=>C(i.oldTradeId,ne.target.value),"aria-label":n("importListings.priceAria",{currency:_.name,name:i.name})})]}),e.jsxs(wt,{children:[e.jsxs("span",{children:["$",F(d).toFixed(2)]}),E?e.jsx(yt,{children:n("importListings.wasMana",{amount:E})}):null]})]})]},i.oldTradeId)})})]})]}),e.jsx(jt,{children:e.jsxs(vt,{children:[e.jsxs("div",{children:[e.jsxs(kt,{children:[e.jsx($e,{})," ",u.toLocaleString()]}),e.jsx($t,{children:n("importListings.selectedSummary",{count:s.length,usd:F(u).toFixed(2)})})]}),e.jsx(It,{}),e.jsx(Ct,{variant:"purple",disabled:s.length===0,onClick:()=>M(te(s)),children:n("importListings.listAll",{count:s.length})})]})}),I&&a?e.jsx(Ze,{queue:I,session:a,onClose:()=>M(null),onDone:ie}):null]}):e.jsxs(Z,{children:[e.jsx(V,{"aria-hidden":!0,children:"📦"}),e.jsx(Y,{children:n("importListings.signInTitle")}),e.jsx("p",{className:"muted",children:n("importListings.signInBody")}),e.jsx(G,{variant:"purple",onClick:()=>v(),children:n("storeSettings.signIn")})]})}export{Wt as ImportListings};
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
var $=Object.defineProperty;var R=(t,a,e)=>a in t?$(t,a,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[a]=e;var x=(t,a,e)=>R(t,typeof a!="symbol"?a+"":a,e);import{k as A,aW as I,aX as S,aY as T,c as u,t as p,s as r,aa as E,d as k,aZ as v,b as h}from"./index-Da1IWtza.js";import{c as M}from"./buy-DKJg2rHj.js";import{r as U}from"./mana-rate-CC5D3Meh.js";import{e as O,d as W,f as F,h as P}from"./trade-encoding-4xiglK48.js";import{a as Y}from"./mana-convert-DnJmYgcw.js";import{r as _,j as s,L as z}from"./react-DehiWSvs.js";const m=1e3*60*60*24*182;async function st(t){const a=await fetch(`${u.marketplaceServerUrl}/v3/catalog/importable?seller=${t.toLowerCase()}`);if(!a.ok)throw new Error(`fetchImportable ${a.status}`);const{data:e}=await a.json(),n=e??[];if(n.length===0)return{creations:[],owned:[]};const d=n[0].chainId||u.chainId,c=await U(d),l=n.map(i=>({...i,suggestedCredits:Y(i.manaWei,c)??1}));return{creations:l.filter(i=>i.listingType==="primary"),owned:l.filter(i=>i.listingType==="secondary")}}const w=[3e3,3e3,4e3,5e3,6e3,8e3,8e3];async function C(t,a){for(let e=0;;e++)try{await T(t,a);return}catch(n){if(!/already an open order/i.test((n==null?void 0:n.message)??"")||e>=w.length)throw n;await new Promise(c=>setTimeout(c,w[e]))}}class B extends Error{constructor(e){super("Your old listing was removed, but re-listing in the Shop failed — re-list it from My Assets.");x(this,"original");this.name="RelistFailedError",this.original=e}}async function nt(t,a,e,n={}){const d=a/10,c=t.chainId,l=t.network;if(t.listingType==="secondary"&&!await A())throw new Error("The Shop does not offer secondary sales; this listing cannot be migrated.");let i=!1;if(n.cancelOld!==!1){const o=await I(t.oldTradeId).catch(g=>{if(g instanceof S)return null;throw g});o&&(await M({trade:o,signer:e.signer}),i=!0)}try{if(t.listingType==="primary"){await O({signer:e.signer,contractAddress:t.contractAddress,chainId:c});const o=await W({signer:e.signer,item:{contractAddress:t.contractAddress,itemId:t.itemId??"",network:l,chainId:c},usdPrice:d,uses:t.available,expiresAtMs:Date.now()+m});await C(o,e.identity)}else{await F({signer:e.signer,contractAddress:t.contractAddress,chainId:c});const o=await P({signer:e.signer,nft:{contractAddress:t.contractAddress,tokenId:t.tokenId??"",network:l,chainId:c},usdPrice:d,expiresAtMs:Date.now()+m});await C(o,e.identity)}}catch(o){throw i?new B(o):o}}function D({size:t=17,...a}){const e=`credit-mark-${_.useId()}`;return s.jsxs("svg",{viewBox:"0 0 16.9985 16.9985",width:t,height:t,fill:"none","aria-hidden":!0,focusable:"false",...a,children:[s.jsx("defs",{children:s.jsxs("linearGradient",{id:e,x1:"-0.513692",y1:"8.51179",x2:"29.4301",y2:"5.69069",gradientUnits:"userSpaceOnUse",children:[s.jsx("stop",{stopColor:p.colors.dclRed}),s.jsx("stop",{offset:"1",stopColor:p.colors.flareAmber})]})}),s.jsx("path",{d:"M11.866 0.605075L16.4734 5.29355L16.4148 11.8658L11.7253 16.4742L5.15405 16.4156L0.545653 11.7271L0.604247 5.1539L5.29175 0.546481L11.866 0.605075Z",fill:`url(#${e})`,stroke:`url(#${e})`,strokeWidth:"1.04738"}),s.jsx("path",{d:"M9.14405 10.9365C9.51965 10.9365 9.87384 10.8794 10.2067 10.7653C10.5395 10.6512 10.7938 10.5371 10.9697 10.423L11.4975 11.4749L12.0252 12.5268C11.8017 12.717 11.4166 12.9095 10.8699 13.1045C10.3279 13.2994 9.68605 13.3969 8.94437 13.3969C8.25023 13.3969 7.59651 13.2756 6.98319 13.0332C6.36988 12.7907 5.82551 12.4507 5.35007 12.0133C4.87939 11.5759 4.51093 11.0625 4.24468 10.4729C3.97844 9.87864 3.84532 9.23205 3.84532 8.53316C3.84532 7.83427 3.97844 7.18767 4.24468 6.59338C4.51093 5.99433 4.87939 5.4761 5.35007 5.0387C5.82075 4.59655 6.36275 4.25423 6.97606 4.01176C7.59413 3.76453 8.25023 3.64092 8.94437 3.64092C9.68605 3.64092 10.3279 3.73838 10.8699 3.93331C11.4166 4.12824 11.8017 4.32079 12.0252 4.51097L10.9697 6.61477C10.7938 6.50067 10.5395 6.38656 10.2067 6.27246C9.87384 6.15835 9.51965 6.1013 9.14405 6.1013C8.67812 6.1013 8.27876 6.17024 7.94595 6.30812C7.6179 6.44599 7.34928 6.63141 7.14009 6.86438C6.9309 7.09734 6.77638 7.35645 6.67654 7.64171C6.58145 7.92698 6.53391 8.21699 6.53391 8.51176C6.53391 8.81129 6.58145 9.10606 6.67654 9.39607C6.77638 9.68133 6.9309 9.94045 7.14009 10.1734C7.34928 10.4064 7.6179 10.5918 7.94595 10.7297C8.27876 10.8675 8.67812 10.9365 9.14405 10.9365Z",fill:p.colors.white})]})}const{colors:b,font:N}=p,Z=r.p`
|
|
2
|
-
display: flex;
|
|
3
|
-
align-items: center;
|
|
4
|
-
gap: 4px;
|
|
5
|
-
margin: 0;
|
|
6
|
-
font-family: ${N.sans};
|
|
7
|
-
font-size: 16px;
|
|
8
|
-
line-height: normal;
|
|
9
|
-
color: ${b.text};
|
|
10
|
-
|
|
11
|
-
&[data-align='center'] {
|
|
12
|
-
justify-content: center;
|
|
13
|
-
}
|
|
14
|
-
`,y=r.span`
|
|
15
|
-
font-weight: 600;
|
|
16
|
-
`,L=r.span`
|
|
17
|
-
font-weight: 400;
|
|
18
|
-
`,q=r.span`
|
|
19
|
-
font-size: 14px;
|
|
20
|
-
font-weight: 600;
|
|
21
|
-
line-height: 1.57;
|
|
22
|
-
color: ${b.muted1};
|
|
23
|
-
`;function rt({align:t,className:a}){const e=E(k.nameSingular),n=v(1).toFixed(2),d=h("creditRate.usdLabel");return s.jsxs(Z,{className:a,"data-align":t,"data-testid":"credit-rate","aria-label":h("creditRate.aria",{unit:e,usd:n}),children:[s.jsx(D,{}),s.jsxs("span",{children:[s.jsx(y,{children:"1"})," ",s.jsx(L,{children:e})]}),s.jsx(q,{"aria-hidden":!0,children:h("creditRate.equals")}),s.jsxs("span",{children:[s.jsx(L,{children:d})," ",s.jsx(y,{children:n})]})]})}const{colors:f,font:H,media:X,radius:j}=p,G=r.div`
|
|
24
|
-
display: flex;
|
|
25
|
-
align-items: center;
|
|
26
|
-
gap: 8px;
|
|
27
|
-
padding: 12px 8px 12px 16px;
|
|
28
|
-
border-radius: ${j.btn};
|
|
29
|
-
background: ${f.promptLilac};
|
|
30
|
-
font-family: ${H.sans};
|
|
31
|
-
`,it=r(G)`
|
|
32
|
-
justify-content: space-between;
|
|
33
|
-
|
|
34
|
-
/* Side by side the sentence and the cta can't both fit a phone, so the cta drops to its own line. */
|
|
35
|
-
${X.maxWidth("mobile")} {
|
|
36
|
-
flex-direction: column;
|
|
37
|
-
align-items: flex-start;
|
|
38
|
-
}
|
|
39
|
-
`,ot=r.div`
|
|
40
|
-
display: flex;
|
|
41
|
-
align-items: center;
|
|
42
|
-
gap: 8px;
|
|
43
|
-
`,ct=r.p`
|
|
44
|
-
margin: 0;
|
|
45
|
-
font-size: 14px;
|
|
46
|
-
font-weight: 400;
|
|
47
|
-
line-height: 1.334;
|
|
48
|
-
color: ${f.text2};
|
|
49
|
-
`,dt=r.strong`
|
|
50
|
-
font-weight: 700;
|
|
51
|
-
`,lt=r(z)`
|
|
52
|
-
flex: none;
|
|
53
|
-
display: inline-flex;
|
|
54
|
-
align-items: center;
|
|
55
|
-
justify-content: center;
|
|
56
|
-
height: 40px;
|
|
57
|
-
padding: 0 12px;
|
|
58
|
-
border-radius: ${j.card};
|
|
59
|
-
font-size: 13px;
|
|
60
|
-
font-weight: 600;
|
|
61
|
-
line-height: 24px;
|
|
62
|
-
letter-spacing: 0.46px;
|
|
63
|
-
text-transform: uppercase;
|
|
64
|
-
text-decoration: underline;
|
|
65
|
-
color: ${f.accent};
|
|
66
|
-
|
|
67
|
-
&:hover {
|
|
68
|
-
color: ${f.accentHover};
|
|
69
|
-
}
|
|
70
|
-
&:focus-visible {
|
|
71
|
-
outline: 2px solid ${f.accent};
|
|
72
|
-
outline-offset: 2px;
|
|
73
|
-
}
|
|
74
|
-
`;export{dt as A,ot as B,rt as C,it as R,G as S,ct as T,lt as a,B as b,D as c,st as f,nt as i};
|