@dcl/shop 0.5.0 → 0.5.1-30936450524.commit-699b9ba
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-BNdtDMvf.js +336 -0
- package/_assets/{AnimatedBackground-C4vGO85y.js → AnimatedBackground-DtccR1Yr.js} +2 -2
- package/_assets/{Assets-DUB4VCUr.js → Assets-BPmdORes.js} +11 -11
- package/_assets/{Assets.styles-DIh1hG4_.js → Assets.styles-DGFYQnxw.js} +1 -1
- package/_assets/{Authorizations-gse9z0i5.js → Authorizations-DxyGJ4g6.js} +3 -3
- package/_assets/{Cart-xOvVoYwp.js → Cart-BK5UrFhK.js} +6 -6
- package/_assets/{CircularProgress-BZT_u7sL.js → CircularProgress-DdEjsaZL.js} +1 -1
- package/_assets/{Collection-DkMWDyM9.js → Collection-DqFConie.js} +7 -7
- package/_assets/{CollectionCarousel-D-7TqEHy.js → CollectionCarousel-ChFXFBmM.js} +7 -7
- package/_assets/{Creator-CIj-i2cJ.js → Creator-DrGLyYfy.js} +9 -9
- package/_assets/{ErrorNotice-qXSCgBBe.js → ErrorNotice-BCKaFzga.js} +1 -1
- package/_assets/{ExchangeController-CoWk4iJ_.js → ExchangeController-CvylFMia.js} +1 -1
- package/_assets/{GetCredits-91dR46BQ.js → GetCredits-Dw4w8acm.js} +7 -7
- package/_assets/{HelpersUtil-B_EI8lTR.js → HelpersUtil-_HSkzV2T.js} +1 -1
- package/_assets/{ItemDetail-DneK31a0.js → ItemDetail-Dxa9T_S-.js} +489 -324
- package/_assets/{LoadMore-CPg41rwp.js → LoadMore-D8E5F-8f.js} +1 -1
- package/_assets/ManaPricingBanner.styles-DTnTTvyO.js +74 -0
- package/_assets/{MenuList-D5E4Wrvx.js → MenuList-Jtp545Fi.js} +1 -1
- package/_assets/MyAssets-Db0d2mYm.js +381 -0
- package/_assets/{MyFavorites-CfsWFXpI.js → MyFavorites-B581Hpf-.js} +2 -2
- package/_assets/{NotFound-DVmSPOa9.js → NotFound-B5YyPIK4.js} +1 -1
- package/_assets/{NotificationsBell-C_HZmA4_.js → NotificationsBell-8HxMRP0q.js} +1 -1
- package/_assets/OutfitDetail-cz6cQtz6.js +326 -0
- package/_assets/OutfitPreview-CU2mgvnt.js +6 -0
- package/_assets/{OutfitStudio-D6HxPa0M.js → OutfitStudio-_HyedkEg.js} +50 -50
- package/_assets/{StoreSettings-CmI6OJyt.js → StoreSettings-BGKiUIzy.js} +9 -9
- package/_assets/{Success-CILFVgai.js → Success-RigWZOgD.js} +6 -6
- package/_assets/{SwapController-BtZYC1DC.js → SwapController-BivMb2kn.js} +1 -1
- package/_assets/{Tooltip-D-dOz9cj.js → Tooltip-BFF2_vlu.js} +1 -1
- package/_assets/{TradeService-DFGHQuam.js → TradeService-0TCYki7R.js} +1 -1
- package/_assets/{W3MFrameProviderSingleton-Dd3fipah.js → W3MFrameProviderSingleton-B0Higky5.js} +3 -3
- package/_assets/{WebCryptoP256-83ZQlmY9.js → WebCryptoP256-CGkaFniB.js} +1 -1
- package/_assets/{authorizations-3-Mq1Ehl.js → authorizations-zc6Rq7Wn.js} +1 -1
- package/_assets/{basic-BndfWYou.js → basic-DttMuloT.js} +1 -1
- package/_assets/{biconomy-UoaVnBXL.js → biconomy-D4i00Lfc.js} +1 -1
- package/_assets/{browseLayout.styles-C2XsX59Z.js → browseLayout.styles-BdkLZM96.js} +4 -4
- package/_assets/{builder-BCsqID1m.js → builder-D5fMO9fl.js} +1 -1
- package/_assets/{buy-gasless-Cf6hPQpJ.js → buy-gasless-e__YZBZy.js} +1 -1
- package/_assets/buy-hkJbpiOY.js +1 -0
- package/_assets/{categories-CJDomWri.js → categories-B569rNQU.js} +1 -1
- package/_assets/{ccip-DL1ik4S_.js → ccip-CCidJiYF.js} +1 -1
- package/_assets/{ccip-LyTNGN_g.js → ccip-CJTcr6Ak.js} +1 -1
- package/_assets/{clsx-CbhzNwHc.js → clsx-DSmAtJIx.js} +2 -2
- package/_assets/{controller-DI4T8YXU.js → controller-CMLpEAq8.js} +2 -2
- package/_assets/{core-DLkqCpDz.js → core-BIMKRKLD.js} +4 -4
- package/_assets/{createSvgIcon-BdIjzl8A.js → createSvgIcon-mO6bQXvS.js} +1 -1
- package/_assets/{custom-DjHlYa2L.js → custom-VPCzWEDJ.js} +1 -1
- package/_assets/{data-capture-CCEqsOVC.js → data-capture-NhUWYbV9.js} +1 -1
- package/_assets/{email-MyVfElwc.js → email-Clto1rbh.js} +1 -1
- package/_assets/{embedded-wallet-DGKPNmRz.js → embedded-wallet-t8b4yu9z.js} +1 -1
- package/_assets/{emotion-styled.browser.esm-B-KYMSCc.js → emotion-styled.browser.esm-DnvNBX1u.js} +1 -1
- package/_assets/{engine-P4mrsX3-.js → engine-DLv8fLGx.js} +1 -1
- package/_assets/{errors-B5G852-H.js → errors-CZnCfZdx.js} +1 -1
- package/_assets/{estimate-l1-fee-CZTQo2Yh.js → estimate-l1-fee-CJ4pO8UF.js} +1 -1
- package/_assets/{execute-CqlntYG8.js → execute-DlPcikaV.js} +2 -2
- package/_assets/{features-BstqY0d8.js → features-BxKqKAM5.js} +1 -1
- package/_assets/{fetchTokenMetadata-wr3bODuw.js → fetchTokenMetadata-w38JAtHF.js} +2 -2
- package/_assets/{field.styles-CeFk4Y5o.js → field.styles-CFlKswg7.js} +1 -1
- package/_assets/{get-ecosystem-wallet-info-BmrdD1ZM.js → get-ecosystem-wallet-info-VnVOeJ1z.js} +1 -1
- package/_assets/{getBalance-CGp1VbNi.js → getBalance-on_xo7HU.js} +1 -1
- package/_assets/{getNFT-BATtEfMr.js → getNFT-CRTR8WTI.js} +1 -1
- package/_assets/{getNFT-Bc7mOqON.js → getNFT-CWzo03nA.js} +1 -1
- package/_assets/{getThemeProps-Cj1ePFOP.js → getThemeProps-B8B_-Rbo.js} +1 -1
- package/_assets/{grid.styles-4uR2Oqak.js → grid.styles-BZkFiBLS.js} +1 -1
- package/_assets/{hashTypedData-DmaIP4Ta.js → hashTypedData-BH6OTW-d.js} +1 -1
- package/_assets/{hashTypedData--isNjJrk.js → hashTypedData-DRMGHRZ0.js} +1 -1
- package/_assets/{in-app-DkfGauuN.js → in-app-Vc6OIIzS.js} +1 -1
- package/_assets/{in-app-wallet-calls-_oAp4gRk.js → in-app-wallet-calls-KLGGFOPI.js} +1 -1
- package/_assets/{index-Jw4WyTL7.js → index-0nqA1JJF.js} +1 -1
- package/_assets/{index-hxv9huma.js → index-4zQsq3fd.js} +1 -1
- package/_assets/{index-B4VZ6oCr.js → index-5ACH-P5G.js} +1 -1
- package/_assets/{index-CNLdKmSV.js → index-6yxWjL1L.js} +2 -2
- package/_assets/{index-B0XZJoRs.js → index-8RpSVOTx.js} +3 -3
- package/_assets/{index-UOqdWcGo.js → index-B-wQ0paE.js} +1 -1
- package/_assets/{index-B08mxqyH.js → index-BCJi5oKJ.js} +1 -1
- package/_assets/{index-DwhWwt0R.js → index-BKEDzKNY.js} +1 -1
- package/_assets/{index-TXpJyzEO.js → index-BPaO_ntB.js} +1 -1
- package/_assets/{index-DCcvZO5Y.js → index-BQwGj32K.js} +1 -1
- package/_assets/{index-pUOx764A.js → index-BS6iKClO.js} +1 -1
- package/_assets/{index-Rzy39Nn7.js → index-BhObZWWG.js} +1 -1
- package/_assets/{index-B3qntzSb.js → index-BkDkQWWI.js} +1 -1
- package/_assets/{index-B9aCuD80.js → index-BqF97xZA.js} +1 -1
- package/_assets/{index-CAtB_PCp.js → index-C-amGj-7.js} +2 -2
- package/_assets/{index-BYndrnYs.js → index-C1U7eBbq.js} +1 -1
- package/_assets/{index-DA6dfZrr.js → index-C2GPCavy.js} +1 -1
- package/_assets/{index-BHPckyG6.js → index-C2q4KTdy.js} +1 -1
- package/_assets/{index-DYIatsEA.js → index-C7ek7oob.js} +1 -1
- package/_assets/{index-qOIpyDqw.js → index-CI0UD5dV.js} +3 -3
- package/_assets/{index-DYJqGaxj.js → index-CJLFJ36W.js} +2 -2
- package/_assets/{index-DG2jERXm.js → index-CNboH-3O.js} +1 -1
- package/_assets/{index-g7yoq537.js → index-Cdvi3pNM.js} +2 -2
- package/_assets/{index-DMfeEICj.js → index-Ceegzko5.js} +1 -1
- package/_assets/{index-CwgAx_D_.js → index-CgA-OcG0.js} +1 -1
- package/_assets/{index-DiwV8Pqc.js → index-Ch8J3QK6.js} +1 -1
- package/_assets/{index-CKuDkHtx.js → index-Cmdx7DKx.js} +1 -1
- package/_assets/{index-9uXo0dDW.js → index-CqPO5kHJ.js} +1 -1
- package/_assets/{index-D-cwjSAX.js → index-CuziOquE.js} +3 -3
- package/_assets/{index-6-oWZZKk.js → index-CzmJnQZH.js} +1 -1
- package/_assets/index-D-7WCtxn.js +3482 -0
- package/_assets/{index-GIpFWU31.js → index-D5RD0vxf.js} +1 -1
- package/_assets/{index-COG_bMzA.js → index-DBZVIZHo.js} +1 -1
- package/_assets/{index-BQJhzjgB.js → index-DHBnEMAt.js} +1 -1
- package/_assets/{index-bI7YB81Q.js → index-DOPFlRgN.js} +1 -1
- package/_assets/{index-wLhUVrXT.js → index-DYWfNXUa.js} +1 -1
- package/_assets/{index-BlqD0sjz.js → index-DkuxSwEU.js} +1 -1
- package/_assets/{index-TyIfm5pC.js → index-DmTmwD6t.js} +1 -1
- package/_assets/{index-Df_MtlRn.js → index-DtsO_iTE.js} +1 -1
- package/_assets/{index-DARDndd8.js → index-DxHGh86B.js} +1 -1
- package/_assets/{index-DXe6U5Nd.js → index-GDLtMazN.js} +1 -1
- package/_assets/{index-BQEMTtHk.js → index-Te89Gq1W.js} +1 -1
- package/_assets/{index-Bq3RaeMg.js → index-Umj2Vke8.js} +1 -1
- package/_assets/{index-6TyUCKeH.js → index-WAyEz3yq.js} +1 -1
- package/_assets/{index-BmlqG1wa.js → index-_KNtvZ03.js} +1 -1
- package/_assets/{index-hFWlaYZc.js → index-cz6Rqk8W.js} +1 -1
- package/_assets/{index-DA_UmuJW.js → index-eog29CgL.js} +2 -2
- package/_assets/{index-CVTYXB-H.js → index-irGTnSKf.js} +1 -1
- package/_assets/{index-a7lLIynB.js → index-jHpuKYUW.js} +1 -1
- package/_assets/{index-DI6mFHN_.js → index-oBbODxgD.js} +1 -1
- package/_assets/index-vsp2ePXO.js +472 -0
- package/_assets/{index-BF4F4-es.js → index-xtIMpr9r.js} +1 -1
- package/_assets/{index.es-DSBJgnik.js → index.es-B7JVZeTo.js} +4 -4
- package/_assets/{index.es-CleSpdBe.js → index.es-CGbqEV93.js} +1 -1
- package/_assets/{index.es-DcH5dh4Z.js → index.es-ClM1Q4-S.js} +1 -1
- package/_assets/{localBatchGatewayRequest-BQaanzyf.js → localBatchGatewayRequest-CKHM638r.js} +1 -1
- package/_assets/{mana-convert-gdOzEDdP.js → mana-convert-dJqmfJfM.js} +1 -1
- package/_assets/{networks-DweEIHqd.js → networks-D4B8rcMf.js} +1 -1
- package/_assets/{onramp-CQin_sc0.js → onramp-BAAYO5Xz.js} +1 -1
- package/_assets/{openzeppelin-aL0pLCk3.js → openzeppelin-tyZlnFgc.js} +1 -1
- package/_assets/{parseNft-C3_Nz5T-.js → parseNft-DmVgwo4R.js} +2 -2
- package/_assets/{parseSignature-DbUWX_0J.js → parseSignature-CCUgv0Xf.js} +1 -1
- package/_assets/{parseSignature-CaUNRWNX.js → parseSignature-Cz4DXMg4.js} +3 -3
- package/_assets/{passkeys-ErJmNcK7.js → passkeys-B-SLcTQC.js} +1 -1
- package/_assets/{pay-with-exchange-IR4P3LG2.js → pay-with-exchange-CPF4Xyar.js} +1 -1
- package/_assets/{qr-overlay-CdnDwp_H.js → qr-overlay-CCgl-rQv.js} +1 -1
- package/_assets/{receive-zGMAuzLF.js → receive-CtyJrIps.js} +1 -1
- package/_assets/{resolveImplementation-DBCwfUsj.js → resolveImplementation-BWEbVpHA.js} +1 -1
- package/_assets/{rpc-DcBDiZd9.js → rpc-9WGO6xiN.js} +1 -1
- package/_assets/{secp256k1-Dw0WpBX5.js → secp256k1-2RfA0szs.js} +1 -1
- package/_assets/{secp256k1-Dewsd8iM.js → secp256k1-CFrW1Y2s.js} +1 -1
- package/_assets/{secp256k1-B-E-jiWl.js → secp256k1-pmcASsb-.js} +1 -1
- package/_assets/{send-DDT-5Y8C.js → send-CMNbsrhM.js} +1 -1
- package/_assets/{send-batch-transaction-BurBPeh7.js → send-batch-transaction-D75RDx36.js} +1 -1
- package/_assets/{send-eip712-transaction-D77WUDwd.js → send-eip712-transaction-BQazlaNl.js} +2 -2
- package/_assets/{send-gasless-transaction-CIWAOyRc.js → send-gasless-transaction-DjoFh0d8.js} +2 -2
- package/_assets/{send-transaction-BXhwaD9S.js → send-transaction-CVFVkU0Z.js} +2 -2
- package/_assets/{sendMetaTransaction-CrIt0KCG.js → sendMetaTransaction-BAlAehuy.js} +1 -1
- package/_assets/{sendRawTransaction-DNK5LA13.js → sendRawTransaction-C4U7kCvT.js} +3 -3
- package/_assets/{serializeTransaction-D3WekrgC.js → serializeTransaction-DaaHRnn4.js} +1 -1
- package/_assets/{session-proposal-BlosSPbJ.js → session-proposal-B8JSXkYh.js} +1 -1
- package/_assets/{session-request-C8iYxI6j.js → session-request-CVuIL0x8.js} +2 -2
- package/_assets/{signing-Bx48W7O-.js → signing-CoqvM4v0.js} +3 -3
- package/_assets/{socials-BSmNv258.js → socials-Ci3QFil3.js} +1 -1
- package/_assets/{swaps-DyNopWtM.js → swaps-Bk85njMT.js} +1 -1
- package/_assets/{thirdweb-Bc1voIUm.js → thirdweb-CTwUbVaf.js} +3 -3
- package/_assets/{to-serializable-transaction-BXY289Ul.js → to-serializable-transaction-BHWda6_Z.js} +2 -2
- package/_assets/{trade-encoding-B7y8VfDo.js → trade-encoding-BDt5HS0k.js} +1 -1
- package/_assets/{transactionReceipt-DLzKebEg.js → transactionReceipt-DVIb0l0k.js} +1 -1
- package/_assets/{transactions-BWXAu1Vp.js → transactions-Dk1TKJgv.js} +1 -1
- package/_assets/{useCreditPacks-CYnMKZmp.js → useCreditPacks-BM-De58w.js} +1 -1
- package/_assets/useImportable-Ce98Ar0U.js +1 -0
- package/_assets/{useInfiniteGrid-ottWIC3k.js → useInfiniteGrid-_3YA45kU.js} +1 -1
- package/_assets/useManaRate-Co5_bB5U.js +1 -0
- package/_assets/{useStore-DC77ufHd.js → useStore-DYpF-pdm.js} +1 -1
- package/_assets/{useTheme-BOb3XgSe.js → useTheme-Br5XE3ab.js} +1 -1
- package/_assets/{verifyHash-B6wVUzvm.js → verifyHash-CJn902Qe.js} +1 -1
- package/_assets/{w3m-modal-CYIABu52.js → w3m-modal-Bq4uD3cn.js} +1 -1
- package/_assets/{w3m-modal-D0DQYwij.js → w3m-modal-iwn664AW.js} +1 -1
- package/_assets/{wait-for-tx-receipt-CzEApn7N.js → wait-for-tx-receipt-mVLKSavl.js} +1 -1
- package/_assets/{wallets-CQPQ_gpR.js → wallets-CUhTDJCi.js} +5 -5
- package/_assets/{web-connector-B5U5FrL8.js → web-connector-1E0uyUrr.js} +3 -3
- package/_assets/{writeContract-CGlJd1QG.js → writeContract-DDr9VQLH.js} +1 -1
- package/_assets/{zoraTestnet-pKTbhMUO.js → zoraTestnet-JZ6ZNHig.js} +1 -1
- package/index.html +11 -11
- package/package.json +2 -2
- package/_assets/Activity-GNtRBDkH.js +0 -291
- package/_assets/ImportListings-DrIx4tN-.js +0 -472
- package/_assets/ItemPreview.styles--MP-O7tE.js +0 -166
- package/_assets/ManaPricingBanner.styles-4CDYw79q.js +0 -74
- package/_assets/MyAssets-C29gKaZs.js +0 -381
- package/_assets/OutfitDetail-BCkHFvPX.js +0 -357
- package/_assets/OutfitPreview-XyEsGBYa.js +0 -6
- package/_assets/buy-Bs_G6nfA.js +0 -1
- package/_assets/index-CEec1iYe.js +0 -3476
- package/_assets/mana-rate-DFh9C_O1.js +0 -1
- package/_assets/useManaRate-CPn6JNFj.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,k as re,o as oe,b as n,d as _,B as S,p as q,O as de,aY 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,bt as we,w as ye}from"./index-CEec1iYe.js";import{i as be,b as je,S as ve,C as ke,c as $e,f as Ie}from"./ManaPricingBanner.styles-4CDYw79q.js";import{u as Ce}from"./buy-Bs_G6nfA.js";import{C as W}from"./field.styles-CeFk4Y5o.js";import"./sentry-973sfbO9.js";import"./dcl-schemas-Dr9BTjb7.js";import"./ethers-CtNGBird.js";import"./intl-CBcMB1D2.js";import"./mana-rate-DFh9C_O1.js";import"./mana-convert-gdOzEDdP.js";import"./trade-encoding-B7y8VfDo.js";import"./authorizations-3-Mq1Ehl.js";import"./sendMetaTransaction-CrIt0KCG.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 Ye({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:Ze,radius:N}=Q,Y=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
|
-
`,Z=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
|
-
${Ze.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(Y,{children:[e.jsx(V,{"aria-hidden":!0,children:"✨"}),e.jsx(Z,{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(Ye,{queue:I,session:a,onClose:()=>M(null),onDone:ie}):null]}):e.jsxs(Y,{children:[e.jsx(V,{"aria-hidden":!0,children:"📦"}),e.jsx(Z,{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,166 +0,0 @@
|
|
|
1
|
-
import{s as o,t as r,I as i,k as n}from"./index-CEec1iYe.js";const{colors:t,media:e}=r,a=n`
|
|
2
|
-
to {
|
|
3
|
-
transform: rotate(360deg);
|
|
4
|
-
}
|
|
5
|
-
`,s=o.div``,p=o.span`
|
|
6
|
-
width: 34px;
|
|
7
|
-
height: 34px;
|
|
8
|
-
border-radius: 50%;
|
|
9
|
-
border: 3px solid ${t.line};
|
|
10
|
-
border-top-color: ${t.accent};
|
|
11
|
-
animation: ${a} 0.8s linear infinite;
|
|
12
|
-
|
|
13
|
-
@media (prefers-reduced-motion: reduce) {
|
|
14
|
-
animation-duration: 2.4s;
|
|
15
|
-
}
|
|
16
|
-
`,u=o.p``,c=o.div``,g=o.button`
|
|
17
|
-
border: 0;
|
|
18
|
-
background: none;
|
|
19
|
-
cursor: pointer;
|
|
20
|
-
padding: 6px 16px;
|
|
21
|
-
border-radius: 999px;
|
|
22
|
-
font-weight: 600;
|
|
23
|
-
font-size: 12px;
|
|
24
|
-
text-transform: uppercase;
|
|
25
|
-
letter-spacing: 0.04em;
|
|
26
|
-
color: ${t.muted};
|
|
27
|
-
transition:
|
|
28
|
-
background 0.12s ease,
|
|
29
|
-
color 0.12s ease;
|
|
30
|
-
|
|
31
|
-
&[data-active] {
|
|
32
|
-
background: ${t.text};
|
|
33
|
-
color: ${t.white};
|
|
34
|
-
}
|
|
35
|
-
&:not([data-active]):hover {
|
|
36
|
-
color: ${t.text};
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
${e.maxWidth("lg")} {
|
|
40
|
-
padding: 9px 13px;
|
|
41
|
-
border-radius: 0;
|
|
42
|
-
background: ${t.white};
|
|
43
|
-
color: ${t.text2};
|
|
44
|
-
|
|
45
|
-
&[data-active] {
|
|
46
|
-
background: ${t.text};
|
|
47
|
-
color: ${t.white};
|
|
48
|
-
}
|
|
49
|
-
&:first-of-type {
|
|
50
|
-
border-top-left-radius: 999px;
|
|
51
|
-
border-bottom-left-radius: 999px;
|
|
52
|
-
}
|
|
53
|
-
&:last-of-type {
|
|
54
|
-
border-top-right-radius: 999px;
|
|
55
|
-
border-bottom-right-radius: 999px;
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
`,x=o.span`
|
|
59
|
-
${e.maxWidth("lg")} {
|
|
60
|
-
display: none;
|
|
61
|
-
}
|
|
62
|
-
`,l=o(i)`
|
|
63
|
-
display: none;
|
|
64
|
-
|
|
65
|
-
${e.maxWidth("lg")} {
|
|
66
|
-
display: block;
|
|
67
|
-
}
|
|
68
|
-
`,b=o.div`
|
|
69
|
-
& .MuiBox-root {
|
|
70
|
-
position: static;
|
|
71
|
-
width: 100%;
|
|
72
|
-
margin: 0;
|
|
73
|
-
padding: 0;
|
|
74
|
-
display: flex;
|
|
75
|
-
align-items: center;
|
|
76
|
-
gap: 10px;
|
|
77
|
-
}
|
|
78
|
-
& .MuiButtonBase-root {
|
|
79
|
-
min-width: 0;
|
|
80
|
-
padding: 0;
|
|
81
|
-
margin: 0;
|
|
82
|
-
border-radius: 50%;
|
|
83
|
-
display: inline-flex;
|
|
84
|
-
align-items: center;
|
|
85
|
-
justify-content: center;
|
|
86
|
-
background: none !important;
|
|
87
|
-
box-shadow: none !important;
|
|
88
|
-
color: ${t.muted};
|
|
89
|
-
flex: 0 0 auto;
|
|
90
|
-
transition:
|
|
91
|
-
background 0.12s ease,
|
|
92
|
-
color 0.12s ease;
|
|
93
|
-
}
|
|
94
|
-
& .MuiButtonBase-root .MuiSvgIcon-root {
|
|
95
|
-
font-size: 20px;
|
|
96
|
-
margin: 0;
|
|
97
|
-
}
|
|
98
|
-
& .MuiBox-root > .MuiButtonBase-root:first-child {
|
|
99
|
-
width: 34px;
|
|
100
|
-
height: 34px;
|
|
101
|
-
background: ${t.accent} !important;
|
|
102
|
-
color: ${t.white};
|
|
103
|
-
}
|
|
104
|
-
& .MuiBox-root > .MuiButtonBase-root:first-child:hover {
|
|
105
|
-
background: ${t.text} !important;
|
|
106
|
-
}
|
|
107
|
-
& .MuiBox-root > input + .MuiButtonBase-root {
|
|
108
|
-
width: 30px;
|
|
109
|
-
height: 30px;
|
|
110
|
-
color: ${t.muted};
|
|
111
|
-
}
|
|
112
|
-
& .MuiBox-root > input + .MuiButtonBase-root:hover {
|
|
113
|
-
background: ${t.media} !important;
|
|
114
|
-
color: ${t.text};
|
|
115
|
-
}
|
|
116
|
-
& input[type='range'] {
|
|
117
|
-
flex: 1 1 auto;
|
|
118
|
-
width: auto;
|
|
119
|
-
min-width: 0;
|
|
120
|
-
height: 4px;
|
|
121
|
-
margin: 0;
|
|
122
|
-
padding: 0;
|
|
123
|
-
-webkit-appearance: none;
|
|
124
|
-
appearance: none;
|
|
125
|
-
background: transparent;
|
|
126
|
-
cursor: pointer;
|
|
127
|
-
}
|
|
128
|
-
& input[type='range']::-webkit-slider-runnable-track {
|
|
129
|
-
height: 4px;
|
|
130
|
-
border-radius: 999px;
|
|
131
|
-
background: ${t.lineStrong};
|
|
132
|
-
}
|
|
133
|
-
& input[type='range']::-moz-range-track {
|
|
134
|
-
height: 4px;
|
|
135
|
-
border-radius: 999px;
|
|
136
|
-
background: ${t.lineStrong};
|
|
137
|
-
}
|
|
138
|
-
& input[type='range']::-webkit-slider-thumb {
|
|
139
|
-
-webkit-appearance: none;
|
|
140
|
-
appearance: none;
|
|
141
|
-
width: 13px;
|
|
142
|
-
height: 13px;
|
|
143
|
-
margin-top: -4.5px;
|
|
144
|
-
border-radius: 50%;
|
|
145
|
-
background: ${t.accent};
|
|
146
|
-
border: 2px solid ${t.white};
|
|
147
|
-
box-shadow: 0 1px 3px rgba(22, 21, 24, 0.3);
|
|
148
|
-
cursor: pointer;
|
|
149
|
-
}
|
|
150
|
-
& input[type='range']::-moz-range-thumb {
|
|
151
|
-
width: 13px;
|
|
152
|
-
height: 13px;
|
|
153
|
-
border-radius: 50%;
|
|
154
|
-
background: ${t.accent};
|
|
155
|
-
border: 2px solid ${t.white};
|
|
156
|
-
box-shadow: 0 1px 3px rgba(22, 21, 24, 0.3);
|
|
157
|
-
cursor: pointer;
|
|
158
|
-
}
|
|
159
|
-
& input[type='range']:focus-visible {
|
|
160
|
-
outline: none;
|
|
161
|
-
}
|
|
162
|
-
& input[type='range']:focus-visible::-webkit-slider-thumb {
|
|
163
|
-
outline: 2px solid ${t.accent};
|
|
164
|
-
outline-offset: 2px;
|
|
165
|
-
}
|
|
166
|
-
`;export{b as E,s as L,u as N,p as S,c as T,g as a,l as b,x as c};
|