@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,4 +1,4 @@
|
|
|
1
|
-
import{i as b,b as c}from"./lit-element-B3y9oplH.js";import{n}from"./class-map-CxwNmq0D.js";import{c as p}from"./index-
|
|
1
|
+
import{i as b,b as c}from"./lit-element-B3y9oplH.js";import{n}from"./class-map-CxwNmq0D.js";import{c as p}from"./index-BPaO_ntB.js";import"./index-DkuxSwEU.js";import{d as g,r as m,e as h}from"./index-CI0UD5dV.js";const v=g`
|
|
2
2
|
:host {
|
|
3
3
|
width: var(--local-width);
|
|
4
4
|
}
|
|
@@ -0,0 +1,472 @@
|
|
|
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-D-7WCtxn.js";import{i as le,R as ce,u as pe}from"./useImportable-Ce98Ar0U.js";import{S as xe,C as he,b as ge}from"./ManaPricingBanner.styles-DTnTTvyO.js";import{C as F}from"./field.styles-CFlKswg7.js";import"./sentry-973sfbO9.js";import"./dcl-schemas-Dr9BTjb7.js";import"./ethers-CtNGBird.js";import"./intl-CBcMB1D2.js";import"./buy-hkJbpiOY.js";import"./mana-convert-dJqmfJfM.js";import"./authorizations-zc6Rq7Wn.js";import"./sendMetaTransaction-BAlAehuy.js";import"./trade-encoding-BDt5HS0k.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};
|