@dcl/shop 0.7.2 → 0.7.3-31000563578.commit-5745007
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-ChYDB8b3.js +381 -0
- package/_assets/{AnimatedBackground-Be3B4ztI.js → AnimatedBackground-DEhy0Hs4.js} +1 -1
- package/_assets/{Assets-DoF0RVFp.js → Assets-CDxxXXrh.js} +13 -13
- package/_assets/{Assets.styles-IIy06Oye.js → Assets.styles-Eymc9hCH.js} +1 -1
- package/_assets/{Authorizations-b9znutOi.js → Authorizations-DC9PQV5B.js} +1 -1
- package/_assets/{Cart-CFsD5IlH.js → Cart-8HndC0ZN.js} +2 -2
- package/_assets/{CircularProgress-wU--wY5P.js → CircularProgress-CptEdBJR.js} +1 -1
- package/_assets/{Collection-CsVwPele.js → Collection-xeabHw_M.js} +1 -1
- package/_assets/{CollectionCarousel-DelfAKnZ.js → CollectionCarousel-D3Qo_rdU.js} +6 -6
- package/_assets/{Creator-CJuvJbZ7.js → Creator-RE0JcIXz.js} +6 -6
- package/_assets/{ErrorNotice-3r5bQgT2.js → ErrorNotice-CNAMbiNs.js} +1 -1
- package/_assets/{ExchangeController-CxfrLhaH.js → ExchangeController-Dv_sOoYV.js} +1 -1
- package/_assets/Faq-CLALDt_B.js +168 -0
- package/_assets/{GetCredits-Dn-IHOnM.js → GetCredits-Cldg30Nc.js} +85 -66
- package/_assets/{Grow-BmECuNyH.js → Grow-CWsjbYSK.js} +1 -1
- package/_assets/{HelpersUtil-Bvk_vk1Y.js → HelpersUtil-7Aopq74x.js} +1 -1
- package/_assets/{ItemDetail-ByHvYOS_.js → ItemDetail-Os4bWzmF.js} +1 -1
- package/_assets/LazyEmoteControls-Djrq3wXI.js +2 -0
- package/_assets/{LoadMore-CymwFW-m.js → LoadMore-DA2Anza2.js} +1 -1
- package/_assets/{ManaPricingBanner.styles-B36mIGF3.js → ManaPricingBanner.styles-CbLNPpYs.js} +1 -1
- package/_assets/{MyAssets-CE5nGbGF.js → MyAssets-CupXdivc.js} +1 -1
- package/_assets/{MyFavorites-Bk3TaFpw.js → MyFavorites-CHgYHTPv.js} +1 -1
- package/_assets/{NotFound-DtwVRkn9.js → NotFound-CvtnPkYR.js} +1 -1
- package/_assets/{NotificationsBell-CayuJgBV.js → NotificationsBell-BvQHk_Q-.js} +1 -1
- package/_assets/{OutfitDetail-CYCbMvMy.js → OutfitDetail-CGoug6Af.js} +1 -1
- package/_assets/{OutfitPreview-4ZQworXq.js → OutfitPreview-Dvzj3PdH.js} +1 -1
- package/_assets/{OutfitStudio-B7JjH_OJ.js → OutfitStudio-CjcxdyQL.js} +1 -1
- package/_assets/{StoreSettings-DZqto59M.js → StoreSettings-DuxrCPSa.js} +1 -1
- package/_assets/{Success-BXd4vOmE.js → Success-DPT_uk5N.js} +1 -1
- package/_assets/{SwapController-D_HE5-4t.js → SwapController-C5h7L4FU.js} +1 -1
- package/_assets/{Tooltip-CH3i2AZ8.js → Tooltip-E9qudNC4.js} +1 -1
- package/_assets/{TradeService-8wrIkkCU.js → TradeService-BFHswSBP.js} +1 -1
- package/_assets/{W3MFrameProviderSingleton-hR4mAmko.js → W3MFrameProviderSingleton-BzvCvXax.js} +3 -3
- package/_assets/{WebCryptoP256-CUVz0sT-.js → WebCryptoP256-c09CYnck.js} +1 -1
- package/_assets/{authorizations-CkEL0cRE.js → authorizations-ByBKRXko.js} +1 -1
- package/_assets/{basic-CjxOIetC.js → basic-5LFbVzlu.js} +1 -1
- package/_assets/{biconomy-8Mii_u_D.js → biconomy-B0JUoK-z.js} +1 -1
- package/_assets/{builder-BoC6pJY-.js → builder-DOXH8ial.js} +1 -1
- package/_assets/{buy-gasless-CtdtD4yw.js → buy-gasless-BcMX7AjG.js} +1 -1
- package/_assets/{buy-C5VKib6d.js → buy-ot6NCqZj.js} +1 -1
- package/_assets/{categories-N60mkQ85.js → categories-C1JdJ-IT.js} +1 -1
- package/_assets/{ccip-BfABfKqd.js → ccip-CSgTbbZy.js} +1 -1
- package/_assets/{ccip-CkHWEn4N.js → ccip-POlm_yFj.js} +1 -1
- package/_assets/{collectionPage.styles-BWGZLOL_.js → collectionPage.styles-JqpbqhpO.js} +1 -1
- package/_assets/{controller-bg1czStV.js → controller-B_xSifoO.js} +2 -2
- package/_assets/{core-CI81_wqW.js → core-DDawgI8S.js} +4 -4
- package/_assets/{createSvgIcon-BG_h01sL.js → createSvgIcon-CLQlGodw.js} +1 -1
- package/_assets/{custom-BNXh19kf.js → custom-BCK3km4M.js} +1 -1
- package/_assets/{data-capture-Gwo_M6sW.js → data-capture-DKrduCxq.js} +1 -1
- package/_assets/{email-Bnr-9hTW.js → email-rJO4D9ZY.js} +1 -1
- package/_assets/{embedded-wallet-D4jo3k6W.js → embedded-wallet-Cf9m2OdT.js} +1 -1
- package/_assets/{emotion-styled.browser.esm-Bd2qjAcz.js → emotion-styled.browser.esm-BNLyCOxT.js} +1 -1
- package/_assets/{engine-C--F6ENC.js → engine-BdpkQPz0.js} +1 -1
- package/_assets/{errors-Du3dWMbd.js → errors-C6KYIkHm.js} +1 -1
- package/_assets/{estimate-l1-fee-DtQQVymm.js → estimate-l1-fee-BPDfynS3.js} +1 -1
- package/_assets/{execute-DbnGyz94.js → execute-DjMuILJW.js} +2 -2
- package/_assets/{features-BkFSf-iq.js → features-BEzDX2Wi.js} +1 -1
- package/_assets/{fetchTokenMetadata-DFggI2iY.js → fetchTokenMetadata-BXcTI6Hp.js} +2 -2
- package/_assets/{field.styles-D3cOLW18.js → field.styles-uVKqEgCR.js} +1 -1
- package/_assets/{get-ecosystem-wallet-info-11sCnJ-7.js → get-ecosystem-wallet-info-BEa08lNL.js} +1 -1
- package/_assets/{getBalance-QGjDk77O.js → getBalance-3QcWDEP1.js} +1 -1
- package/_assets/{getNFT-BJ8yr01Z.js → getNFT-BpmSHnLn.js} +1 -1
- package/_assets/{getNFT-BVVv_-0Y.js → getNFT-Dwtlr3Th.js} +1 -1
- package/_assets/{grid.styles-CFQtLncp.js → grid.styles-BIS84Ueh.js} +1 -1
- package/_assets/{hashTypedData-gN3c95l4.js → hashTypedData-BmbEYwxf.js} +1 -1
- package/_assets/{hashTypedData-BXX-P_dP.js → hashTypedData-CQdGyU5r.js} +1 -1
- package/_assets/{in-app-kBwlyl-f.js → in-app-CQIEGwXf.js} +1 -1
- package/_assets/{in-app-wallet-calls-BN8r6OBs.js → in-app-wallet-calls-CT-zKabR.js} +1 -1
- package/_assets/{index-BwWxHd9J.js → index-1UxDFeoD.js} +1 -1
- package/_assets/{index-Cxw303yv.js → index-9k1dQZMh.js} +1 -1
- package/_assets/{index-CrvRYFHR.js → index-BBhZ0HVP.js} +3 -3
- package/_assets/{index-DvkSTulM.js → index-BEtNsXEG.js} +1 -1
- package/_assets/{index-DoRhx_He.js → index-BKHcUi1P.js} +1 -1
- package/_assets/{index-CMeSxiXG.js → index-BSv-QHZ0.js} +1 -1
- package/_assets/{index-DyxpPyVg.js → index-B_Lx9HeJ.js} +1 -1
- package/_assets/index-BbC_AcLk.js +519 -0
- package/_assets/{index-DjPyQFXF.js → index-BcQW8Gj2.js} +1 -1
- package/_assets/{index-Bakfg_1g.js → index-BcflcbFk.js} +1 -1
- package/_assets/{index-B0ryoW8w.js → index-BtR-ASCb.js} +1 -1
- package/_assets/{index-xPEXNMYS.js → index-Byc0pXfs.js} +1 -1
- package/_assets/{index-CzYiATyr.js → index-Bymdy1ge.js} +1 -1
- package/_assets/{index-B4bQ_g5A.js → index-CCVqnHck.js} +1 -1
- package/_assets/{index-DOlLnnbN.js → index-CENf1OH6.js} +1 -1
- package/_assets/{index-B4M8sJUj.js → index-CHwaoGWX.js} +1 -1
- package/_assets/{index-DN1pJSb7.js → index-COsrlET7.js} +1 -1
- package/_assets/{index-DInQ5jG-.js → index-CU7zlhMP.js} +1 -1
- package/_assets/{index-CKac0RNB.js → index-CYmJEkim.js} +1 -1
- package/_assets/{index-DrqL3wnf.js → index-CZxnK8TQ.js} +1 -1
- package/_assets/{index-EXLD54jH.js → index-CkcOUFYl.js} +2 -2
- package/_assets/{index-DxojTLnQ.js → index-CqWjs3ID.js} +1 -1
- package/_assets/{index-CIyes5rm.js → index-CrnyOt4u.js} +1 -1
- package/_assets/{index-BLrPav1T.js → index-CtjY17-l.js} +1 -1
- package/_assets/{index-CQdN8SI1.js → index-CuQBnNj3.js} +1 -1
- package/_assets/{index-TTZwY716.js → index-CxTerMZo.js} +2 -2
- package/_assets/{index-Bm7j_2aS.js → index-Cyw6hStH.js} +1 -1
- package/_assets/{index-kPR91X9E.js → index-D7kYOOTD.js} +1 -1
- package/_assets/{index-YZKg7WM1.js → index-DAHMNdQp.js} +3 -3
- package/_assets/{index-BUvdjpLN.js → index-DI-LAVz5.js} +1 -1
- package/_assets/{index-BtNS6Sv0.js → index-DLzn22gN.js} +1 -1
- package/_assets/{index-CVQ8oHkh.js → index-DMGubkbp.js} +2 -2
- package/_assets/{index-zQ8cxU2G.js → index-DY_p3BO1.js} +1 -1
- package/_assets/{index-D7zzleDp.js → index-DYdMXhWE.js} +1 -1
- package/_assets/{index-O0VpavwW.js → index-D_VYAhm8.js} +1 -1
- package/_assets/{index-C36oVpEk.js → index-Dbo5n5--.js} +1 -1
- package/_assets/{index-C786VheW.js → index-DcFYf1M_.js} +1 -1
- package/_assets/{index-DLzdQycs.js → index-DeWbFeXm.js} +1 -1
- package/_assets/{index-cvhPRrXA.js → index-DhZP1nf3.js} +1 -1
- package/_assets/{index-CvxViQFA.js → index-Dj9eZjMG.js} +1 -1
- package/_assets/{index-CqVxBPGc.js → index-DkFeq1NQ.js} +1 -1
- package/_assets/index-DyLYzoRb.js +3386 -0
- package/_assets/{index-Dyh7pyxx.js → index-Dz98iCbS.js} +1 -1
- package/_assets/{index-D9xYIYaf.js → index-FD4X2Esu.js} +1 -1
- package/_assets/{index-DDiCv4U4.js → index-ICnT6kXr.js} +3 -3
- package/_assets/{index-Dl0ZUNWk.js → index-Pa51CfZf.js} +1 -1
- package/_assets/{index-tpmZJbVV.js → index-R5Wlc0cr.js} +1 -1
- package/_assets/{index-C4Ua5jGw.js → index-c1Smsb2X.js} +1 -1
- package/_assets/{index-CblEnpzL.js → index-fnqyc3tx.js} +2 -2
- package/_assets/{index-I2lMQseb.js → index-jFSqsnQs.js} +1 -1
- package/_assets/{index-CkItaod2.js → index-n2RJyG-z.js} +1 -1
- package/_assets/{index-B_HYDEtX.js → index-rZPi0_Sz.js} +1 -1
- package/_assets/{index.es-Bl2PbxJr.js → index.es-CKFHGSe7.js} +4 -4
- package/_assets/{index.es-EFLDV9YI.js → index.es-D9hMCl3e.js} +1 -1
- package/_assets/{index.es-5JavRckI.js → index.es-orQLS9Ly.js} +1 -1
- package/_assets/{localBatchGatewayRequest-BWsIaDIE.js → localBatchGatewayRequest-Ca5RqcRB.js} +1 -1
- package/_assets/{networks--rzHY8zY.js → networks-J75QV4BL.js} +1 -1
- package/_assets/{onramp-IBGbKthf.js → onramp-qkvJojyj.js} +1 -1
- package/_assets/{openzeppelin-CteHZYAE.js → openzeppelin-DA9yw4Ac.js} +1 -1
- package/_assets/{parseNft-CjJbs0kN.js → parseNft-dG5pP9hp.js} +2 -2
- package/_assets/{parseSignature-BZS2g2Jp.js → parseSignature-CTHIkvJH.js} +1 -1
- package/_assets/{parseSignature-DgP8I4s-.js → parseSignature-m408d1zh.js} +3 -3
- package/_assets/{passkeys-2GYfrIW-.js → passkeys-CFsll6XV.js} +1 -1
- package/_assets/{pay-with-exchange-CFDPj_Ci.js → pay-with-exchange-DxDbUNGc.js} +1 -1
- package/_assets/{qr-overlay-Ds7Fr0lF.js → qr-overlay-DulceYNG.js} +1 -1
- package/_assets/{receive-DI-hDZuo.js → receive-xfbWCO49.js} +1 -1
- package/_assets/{resolveImplementation-BtX-ARKv.js → resolveImplementation-DxW4TCTM.js} +1 -1
- package/_assets/{rpc-CpuwTu3M.js → rpc-CQv7-Ntx.js} +1 -1
- package/_assets/{secp256k1-BMmzDgZw.js → secp256k1-Ce7nlUsr.js} +1 -1
- package/_assets/{secp256k1-DT8TtWA2.js → secp256k1-Cx50cwV-.js} +1 -1
- package/_assets/{secp256k1-B3lQnF4x.js → secp256k1-DzNTK7K-.js} +1 -1
- package/_assets/{send-batch-transaction-CshATiqB.js → send-batch-transaction-DIubuv-a.js} +1 -1
- package/_assets/{send-eip712-transaction-B_yd_Ph2.js → send-eip712-transaction-DHInvefN.js} +2 -2
- package/_assets/{send-gasless-transaction-Ot1v7swm.js → send-gasless-transaction-I0TAc2h2.js} +2 -2
- package/_assets/{send-lqB2NsIP.js → send-n9rbeOB-.js} +1 -1
- package/_assets/{send-transaction-Bbb8MiYz.js → send-transaction-vZPauM2q.js} +2 -2
- package/_assets/{sendMetaTransaction-B8QarnGW.js → sendMetaTransaction-BkvxVm7u.js} +1 -1
- package/_assets/{sendRawTransaction-CdbKO36d.js → sendRawTransaction-DtFtq1LQ.js} +3 -3
- package/_assets/{serializeTransaction-qj2kvULH.js → serializeTransaction-dTvuM5EZ.js} +1 -1
- package/_assets/{session-proposal-Bjh7TDS3.js → session-proposal-BHTiDxrO.js} +1 -1
- package/_assets/{session-request-BWLuJcL4.js → session-request-C9I3jCiJ.js} +2 -2
- package/_assets/{signing-CssxZ7kf.js → signing-BWYe-S9K.js} +3 -3
- package/_assets/{socials-91-QTc9v.js → socials-gfGHJNQF.js} +1 -1
- package/_assets/styled-BYt4mtoI.js +9 -0
- package/_assets/{swaps-CT9j7o9y.js → swaps-DPHYDz4Z.js} +1 -1
- package/_assets/{thirdweb-6YwgkX44.js → thirdweb-1EkAYNGI.js} +3 -3
- package/_assets/{to-serializable-transaction-Cwp0L3ww.js → to-serializable-transaction-CZajYrNm.js} +2 -2
- package/_assets/{trade-encoding-CxvKGx0_.js → trade-encoding-DHpwKa1D.js} +1 -1
- package/_assets/{transactionReceipt-CYYXW47r.js → transactionReceipt-BBXVz8i8.js} +1 -1
- package/_assets/{transactions-Yy0hGtH3.js → transactions-D_3mPI1t.js} +1 -1
- package/_assets/{useCreditPacks-eXmbKxJO.js → useCreditPacks-BQUqwasL.js} +1 -1
- package/_assets/{useImportable-1wgCIPJI.js → useImportable-DJqmpxB-.js} +1 -1
- package/_assets/{useInfiniteGrid-IXSEUDfN.js → useInfiniteGrid-BLY3pHgI.js} +1 -1
- package/_assets/{useTheme-DDHPP1hV.js → useTheme-C2r5FbDn.js} +1 -1
- package/_assets/{verifyHash-UQQpWRKz.js → verifyHash-B2NKbjyd.js} +1 -1
- package/_assets/{w3m-modal-R-xHgcLx.js → w3m-modal-Bx4rEvvz.js} +1 -1
- package/_assets/{w3m-modal-uZlen5oK.js → w3m-modal-LQPpq0YJ.js} +1 -1
- package/_assets/{wait-for-tx-receipt-Be-DMOgp.js → wait-for-tx-receipt-ChaKOpHZ.js} +1 -1
- package/_assets/{wallets-XOlHe2ld.js → wallets-TZYYtnxp.js} +5 -5
- package/_assets/{web-connector-msoNVD8s.js → web-connector-BILtFc_I.js} +3 -3
- package/_assets/{writeContract-8MHZT7h2.js → writeContract-CsUwt49p.js} +1 -1
- package/_assets/{zoraTestnet-HwyYvSRG.js → zoraTestnet-6_PUQr1Q.js} +1 -1
- package/index.html +11 -11
- package/package.json +2 -2
- package/_assets/Activity-Jc4Ww2Np.js +0 -384
- package/_assets/LazyEmoteControls-DBetyXKO.js +0 -2
- package/_assets/index-B1DCMe50.js +0 -3378
- package/_assets/index-DDc9MCuJ.js +0 -474
- package/_assets/styled-CjUv0U3K.js +0 -9
|
@@ -1,474 +0,0 @@
|
|
|
1
|
-
import{j as e,d as X,r as x,L as Z}from"./react-DehiWSvs.js";import{t as _,s as i,o as q,v as ee,d as n,e as E,B as $,w as V,S as te,b4 as B,A as Q,K as ie,k as ne,x as ae,ag as se,I as F,a4 as re,a7 as oe,a8 as de,bH as le,z as ce}from"./index-B1DCMe50.js";import{c as pe,i as he,R as ge,u as xe}from"./useImportable-1wgCIPJI.js";import{S as me,C as ue,b as fe}from"./ManaPricingBanner.styles-B36mIGF3.js";import{C as W}from"./field.styles-D3cOLW18.js";import"./sentry-973sfbO9.js";import"./dcl-schemas-Dr9BTjb7.js";import"./ethers-CtNGBird.js";import"./intl-CBcMB1D2.js";import"./buy-C5VKib6d.js";import"./authorizations-CkEL0cRE.js";import"./sendMetaTransaction-B8QarnGW.js";import"./trade-encoding-CxvKGx0_.js";function D({size:a=12,...l}){return e.jsx("svg",{viewBox:"0 0 20 20",width:a,height:a,fill:"none","aria-hidden":!0,focusable:"false",...l,children:e.jsx("path",{d:"M5 10.5l3 3 7-7.5",stroke:"#fff",strokeWidth:"2.4",strokeLinecap:"round",strokeLinejoin:"round"})})}const{colors:C,radius:we,z:ye}=_,be=q`
|
|
2
|
-
0% {
|
|
3
|
-
transform: scale(0);
|
|
4
|
-
opacity: 0;
|
|
5
|
-
}
|
|
6
|
-
100% {
|
|
7
|
-
transform: scale(1);
|
|
8
|
-
opacity: 1;
|
|
9
|
-
}
|
|
10
|
-
`,K=i.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: ${ye.overlay};
|
|
19
|
-
`,Y=i.div`
|
|
20
|
-
background: ${C.white};
|
|
21
|
-
border-radius: ${we.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
|
-
`,O=i.h2`
|
|
42
|
-
font-size: 20px;
|
|
43
|
-
`;i.img`
|
|
44
|
-
width: 140px;
|
|
45
|
-
height: 140px;
|
|
46
|
-
object-fit: contain;
|
|
47
|
-
align-self: center;
|
|
48
|
-
background: ${C.media};
|
|
49
|
-
border-radius: 10px;
|
|
50
|
-
`;const ve=i.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: ${C.white};
|
|
59
|
-
`,je=i.div`
|
|
60
|
-
width: 56px;
|
|
61
|
-
height: 56px;
|
|
62
|
-
border-radius: 50%;
|
|
63
|
-
background: ${C.okStrong};
|
|
64
|
-
color: ${C.white};
|
|
65
|
-
font-size: 30px;
|
|
66
|
-
font-weight: 800;
|
|
67
|
-
display: grid;
|
|
68
|
-
place-items: center;
|
|
69
|
-
margin: 4px auto 2px;
|
|
70
|
-
animation: ${be} 0.32s cubic-bezier(0.2, 0.9, 0.3, 1.4);
|
|
71
|
-
|
|
72
|
-
@media (prefers-reduced-motion: reduce) {
|
|
73
|
-
animation: none;
|
|
74
|
-
}
|
|
75
|
-
`;i.p`
|
|
76
|
-
font-weight: 700;
|
|
77
|
-
font-size: 16px;
|
|
78
|
-
margin: 2px 0 0;
|
|
79
|
-
`;const{colors:u,gradients:ke,radius:$e}=_,Ce=i(Y)`
|
|
80
|
-
width: min(460px, 94vw);
|
|
81
|
-
text-align: left;
|
|
82
|
-
align-items: stretch;
|
|
83
|
-
`,Ie=i.div`
|
|
84
|
-
height: 6px;
|
|
85
|
-
border-radius: 999px;
|
|
86
|
-
background: ${u.line};
|
|
87
|
-
overflow: hidden;
|
|
88
|
-
margin: 6px 0 14px;
|
|
89
|
-
`,Se=i.div`
|
|
90
|
-
height: 100%;
|
|
91
|
-
width: 0;
|
|
92
|
-
background: ${ke.amethyst};
|
|
93
|
-
border-radius: 999px;
|
|
94
|
-
transition: width 0.45s ease;
|
|
95
|
-
`,Le=i.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
|
-
`,Te=i.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: ${u.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
|
-
`,ze=i.span`
|
|
128
|
-
width: 34px;
|
|
129
|
-
height: 34px;
|
|
130
|
-
border-radius: ${$e.btn};
|
|
131
|
-
overflow: hidden;
|
|
132
|
-
background: ${u.media};
|
|
133
|
-
display: grid;
|
|
134
|
-
place-items: center;
|
|
135
|
-
|
|
136
|
-
& img {
|
|
137
|
-
width: 100%;
|
|
138
|
-
height: 100%;
|
|
139
|
-
object-fit: contain;
|
|
140
|
-
}
|
|
141
|
-
`,Me=i.span`
|
|
142
|
-
font-weight: 600;
|
|
143
|
-
font-size: 14px;
|
|
144
|
-
white-space: nowrap;
|
|
145
|
-
overflow: hidden;
|
|
146
|
-
text-overflow: ellipsis;
|
|
147
|
-
`,Ae=i.span`
|
|
148
|
-
font-weight: 700;
|
|
149
|
-
font-size: 13px;
|
|
150
|
-
color: ${u.text2};
|
|
151
|
-
`,Re=i.span`
|
|
152
|
-
font-size: 12px;
|
|
153
|
-
font-weight: 700;
|
|
154
|
-
color: ${u.accent};
|
|
155
|
-
display: inline-flex;
|
|
156
|
-
align-items: center;
|
|
157
|
-
gap: 6px;
|
|
158
|
-
justify-content: flex-end;
|
|
159
|
-
min-width: 74px;
|
|
160
|
-
`,Ne=i.span`
|
|
161
|
-
color: ${u.muted2};
|
|
162
|
-
font-weight: 600;
|
|
163
|
-
`,P=i.span`
|
|
164
|
-
color: ${u.muted};
|
|
165
|
-
font-weight: 600;
|
|
166
|
-
`,Pe=i.span`
|
|
167
|
-
width: 14px;
|
|
168
|
-
height: 14px;
|
|
169
|
-
margin: 0;
|
|
170
|
-
border-width: 2px;
|
|
171
|
-
`,Ee=i.span`
|
|
172
|
-
width: 20px;
|
|
173
|
-
height: 20px;
|
|
174
|
-
border-radius: 50%;
|
|
175
|
-
background: ${u.ok};
|
|
176
|
-
color: ${u.white};
|
|
177
|
-
display: grid;
|
|
178
|
-
place-items: center;
|
|
179
|
-
font-size: 12px;
|
|
180
|
-
`,Be=i.p`
|
|
181
|
-
margin: 12px 0 0;
|
|
182
|
-
`;function _e(a,l){switch(a==null?void 0:a.step){case"cancelling":return l?n("migrate.phaseCancelConfirm"):n("migrate.phaseCancel");case"confirming-cancel":return l?n("migrate.phaseConfirmingCancel"):n("migrate.phaseConfirmingCancelManaged");case"authorising":return l?n("migrate.phaseAuthoriseConfirm"):n("migrate.phaseAuthorise");case"signing":return l?n("migrate.phaseSignConfirm"):n("migrate.phaseSign");case"publishing":return n("migrate.phasePublishing");case"indexing":return n("migrate.phaseIndexing",{attempt:a.attempt,of:a.of});default:return l?n("migrate.statusConfirm"):n("migrate.statusAdding")}}function Qe({queue:a,session:l,onClose:g,onDone:v}){const I=X(),w=ee(l.providerType),[A,S]=x.useState(()=>a.map(()=>null)),[j,L]=x.useState(null),[c,f]=x.useState(()=>a.map(()=>"pending")),[m,T]=x.useState("running"),k=x.useRef(!1);x.useEffect(()=>{if(k.current)return;k.current=!0;let r=!1;return w&&pe(a.map(t=>t.item),l.address).then(t=>{!r&&t&&L({approvals:t.approvals,total:t.total})}).catch(()=>{}),(async()=>{for(let t=0;t<a.length;t++){if(r)return;f(s=>s.map((o,h)=>h===t?"active":o));try{await he(a[t].item,a[t].priceCredits,l,{onPhase:s=>{r||S(o=>o.map((h,b)=>b===t?s:h))}}),te("Shop Migrated Listing",{item_id:a[t].item.itemId??a[t].item.oldTradeId??null,contract_address:a[t].item.contractAddress,new_price_credits:a[t].priceCredits,new_price_usd:B(a[t].priceCredits)}),r||f(s=>s.map((o,h)=>h===t?"done":o))}catch(s){if(s instanceof ge)Q(s,{flow:"import_listing",step:"relist",itemId:a[t].item.itemId??a[t].item.oldTradeId}),r||f(o=>o.map((h,b)=>b===t?"unlisted":h));else{const o=s,h=o.code===4001||/reject|denied|cancel/i.test(o.message??"");h||Q(s,{flow:"import_listing",itemId:a[t].item.itemId??a[t].item.oldTradeId}),r||f(b=>b.map((G,J)=>J===t?h?"skipped":"failed":G))}}}r||T("finished")})(),()=>{r=!0}},[]);const y=c.filter(r=>r==="done").length,z=c.findIndex(r=>r==="active"),R=Math.round(c.filter(r=>r!=="pending"&&r!=="active").length/a.length*100);function N(){v(),g()}if(m==="finished"){const r=c.filter(t=>t==="skipped"||t==="failed").length,p=c.filter(t=>t==="unlisted").length;return e.jsx(K,{role:"presentation",children:e.jsxs(Y,{"data-success":!0,role:"dialog","aria-modal":"true",children:[e.jsx(je,{"aria-hidden":!0,children:e.jsx(D,{size:30})}),e.jsx(O,{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:E.name}):n("migrate.noneListed"),r>0?" "+n("migrate.skippedSummary",{count:r}):"",p>0?" "+n("migrate.unlistedSummary",{count:p}):""]}),e.jsxs(ve,{"data-actions":!0,children:[e.jsx($,{variant:"ghost",onClick:N,children:n("getCredits.done")}),p>0?e.jsx($,{variant:"purple",onClick:()=>{v(),g(),I("/my-items")},children:n("migrate.goToMyAssets")}):y>0?e.jsx($,{variant:"purple",onClick:()=>{v(),g(),I("/items")},children:n("migrate.viewInShop")}):null]})]})})}return e.jsx(K,{role:"presentation",children:e.jsxs(Ce,{"data-testid":"modal",role:"dialog","aria-modal":"true","aria-live":"polite",children:[e.jsx(O,{children:n("migrate.listingTitle")}),e.jsxs("p",{className:"muted small",style:{margin:"0 0 4px"},children:[w?n("migrate.subConfirm"):n("migrate.subManaged")," ",z>=0?n("migrate.progressCount",{current:z+1,total:a.length}):""]}),e.jsx(Ie,{children:e.jsx(Se,{style:{width:`${R}%`}})}),e.jsx(Le,{children:a.map((r,p)=>e.jsxs(Te,{"data-status":c[p],children:[e.jsx(ze,{children:r.item.thumbnail?e.jsx("img",{src:r.item.thumbnail,alt:""}):null}),e.jsx(Me,{title:r.item.name,children:r.item.name||n("migrate.itemFallback")}),e.jsxs(Ae,{children:[e.jsx(V,{className:"ccy-mark"})," ",r.priceCredits.toLocaleString()]}),e.jsx(Re,{"data-testid":c[p]==="active"?"migrate-active-status":void 0,children:c[p]==="active"?e.jsxs(e.Fragment,{children:[e.jsx(Pe,{className:"spinner","aria-hidden":!0})," ",_e(A[p],w)]}):c[p]==="done"?e.jsx(Ee,{children:e.jsx(D,{})}):c[p]==="skipped"?e.jsx(P,{children:n("migrate.statusSkipped")}):c[p]==="failed"?e.jsx(P,{children:n("migrate.statusFailed")}):c[p]==="unlisted"?e.jsx(P,{title:n("migrate.unlistedTooltip"),children:n("migrate.statusUnlisted")}):e.jsx(Ne,{children:n("migrate.statusWaiting")})})]},r.item.oldTradeId))}),e.jsx(Be,{className:"muted small",children:w?j?n(j.approvals>0?"migrate.hintCountApproval":"migrate.hintCount",{total:j.total}):n("migrate.hintConfirm"):n("migrate.hintManaged")})]})})}const{colors:d,font:Fe,media:We,radius:M}=_,De=i.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
|
-
`,Ke=i.span`
|
|
192
|
-
font-size: 44px;
|
|
193
|
-
`,Oe=i.h2`
|
|
194
|
-
font-size: 26px;
|
|
195
|
-
font-weight: 800;
|
|
196
|
-
margin: 4px 0 0;
|
|
197
|
-
`,He=i($)`
|
|
198
|
-
margin-top: 10px;
|
|
199
|
-
`,Ue=i.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: ${Fe.sans};
|
|
207
|
-
`,Ve=i.header`
|
|
208
|
-
display: flex;
|
|
209
|
-
flex-direction: column;
|
|
210
|
-
gap: 16px;
|
|
211
|
-
padding: 10px 12px;
|
|
212
|
-
`,Ye=i.div`
|
|
213
|
-
display: flex;
|
|
214
|
-
flex-direction: column;
|
|
215
|
-
gap: 8px;
|
|
216
|
-
`,Ge=i.h2`
|
|
217
|
-
margin: 0;
|
|
218
|
-
font-weight: 600;
|
|
219
|
-
font-size: 20px;
|
|
220
|
-
line-height: 24px;
|
|
221
|
-
letter-spacing: 0.46px;
|
|
222
|
-
color: ${d.text};
|
|
223
|
-
`,Je=i.p`
|
|
224
|
-
margin: 0;
|
|
225
|
-
font-weight: 500;
|
|
226
|
-
font-size: 14px;
|
|
227
|
-
line-height: 1.334;
|
|
228
|
-
color: ${d.muted1};
|
|
229
|
-
`,Xe=i.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: ${d.accent};
|
|
238
|
-
|
|
239
|
-
.ico {
|
|
240
|
-
width: 13px;
|
|
241
|
-
height: 13px;
|
|
242
|
-
}
|
|
243
|
-
&:focus-visible {
|
|
244
|
-
outline: 2px solid ${d.accent};
|
|
245
|
-
outline-offset: 2px;
|
|
246
|
-
}
|
|
247
|
-
`,Ze=i.hr`
|
|
248
|
-
width: 100%;
|
|
249
|
-
height: 0;
|
|
250
|
-
margin: 0;
|
|
251
|
-
border: 0;
|
|
252
|
-
border-top: 1px solid ${d.gray4};
|
|
253
|
-
`,qe=i.div`
|
|
254
|
-
display: flex;
|
|
255
|
-
flex-direction: column;
|
|
256
|
-
gap: 8px;
|
|
257
|
-
padding: 8px 12px 0;
|
|
258
|
-
`,et=i(me)`
|
|
259
|
-
font-size: 14px;
|
|
260
|
-
line-height: 1.334;
|
|
261
|
-
color: ${d.text2};
|
|
262
|
-
`,tt=i.span`
|
|
263
|
-
flex: none;
|
|
264
|
-
display: grid;
|
|
265
|
-
place-items: center;
|
|
266
|
-
width: 20px;
|
|
267
|
-
height: 20px;
|
|
268
|
-
border-radius: ${M.pill};
|
|
269
|
-
background: ${d.brandViolet};
|
|
270
|
-
font-weight: 600;
|
|
271
|
-
font-size: 12px;
|
|
272
|
-
line-height: 1.6;
|
|
273
|
-
color: ${d.white};
|
|
274
|
-
`,it=i.div`
|
|
275
|
-
display: flex;
|
|
276
|
-
flex-direction: column;
|
|
277
|
-
gap: 4px;
|
|
278
|
-
`,nt=i.label`
|
|
279
|
-
display: flex;
|
|
280
|
-
align-items: center;
|
|
281
|
-
align-self: flex-start;
|
|
282
|
-
font-size: 14px;
|
|
283
|
-
line-height: 1.2;
|
|
284
|
-
color: ${d.text};
|
|
285
|
-
cursor: pointer;
|
|
286
|
-
`,H=i.span`
|
|
287
|
-
flex: none;
|
|
288
|
-
display: grid;
|
|
289
|
-
place-items: center;
|
|
290
|
-
width: 40px;
|
|
291
|
-
height: 40px;
|
|
292
|
-
`,at=i.div`
|
|
293
|
-
display: flex;
|
|
294
|
-
flex-direction: column;
|
|
295
|
-
gap: 12px;
|
|
296
|
-
`,st=i.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 ${d.gray4};
|
|
304
|
-
border-radius: ${M.card};
|
|
305
|
-
background: ${d.white};
|
|
306
|
-
overflow: hidden;
|
|
307
|
-
transition: opacity 0.25s ease;
|
|
308
|
-
|
|
309
|
-
&[data-off] {
|
|
310
|
-
opacity: 0.5;
|
|
311
|
-
}
|
|
312
|
-
`,rt=i.div`
|
|
313
|
-
flex: none;
|
|
314
|
-
display: flex;
|
|
315
|
-
align-items: center;
|
|
316
|
-
`,ot=i.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: ${d.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
|
-
`,dt=i.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
|
-
`,lt=i.div`
|
|
343
|
-
font-weight: 600;
|
|
344
|
-
font-size: 16px;
|
|
345
|
-
line-height: 1.2;
|
|
346
|
-
color: ${d.text};
|
|
347
|
-
white-space: nowrap;
|
|
348
|
-
overflow: hidden;
|
|
349
|
-
text-overflow: ellipsis;
|
|
350
|
-
`,ct=i.div`
|
|
351
|
-
display: flex;
|
|
352
|
-
align-items: flex-end;
|
|
353
|
-
gap: 4px;
|
|
354
|
-
`,U=i(ie)`
|
|
355
|
-
padding: 1.623px 6.491px;
|
|
356
|
-
font-weight: 600;
|
|
357
|
-
font-size: 8.56px;
|
|
358
|
-
line-height: 11.851px;
|
|
359
|
-
|
|
360
|
-
/* Same padding as the rarity chip beside it — the design sets the category chip flush with it, and
|
|
361
|
-
only the narrower gender chip (which this row does not carry) gets the tighter inset. Restated
|
|
362
|
-
rather than inherited because the shared chip's own icon variant is a more specific selector. */
|
|
363
|
-
&[data-variant='icon'] {
|
|
364
|
-
padding: 1.623px 6.491px;
|
|
365
|
-
}
|
|
366
|
-
&[data-variant='icon'] .ico {
|
|
367
|
-
width: 14.605px;
|
|
368
|
-
height: 14.605px;
|
|
369
|
-
}
|
|
370
|
-
`,pt=i.div`
|
|
371
|
-
flex: none;
|
|
372
|
-
/* Right-aligns the block on the desktop row AND on the line it wraps to on narrow screens. */
|
|
373
|
-
margin-left: auto;
|
|
374
|
-
display: flex;
|
|
375
|
-
flex-direction: column;
|
|
376
|
-
align-items: flex-end;
|
|
377
|
-
justify-content: center;
|
|
378
|
-
gap: 4px;
|
|
379
|
-
`,ht=i.div`
|
|
380
|
-
display: flex;
|
|
381
|
-
align-items: center;
|
|
382
|
-
justify-content: space-between;
|
|
383
|
-
gap: 8px;
|
|
384
|
-
width: 144px;
|
|
385
|
-
height: 42px;
|
|
386
|
-
padding: 8px;
|
|
387
|
-
border: 0.5px solid ${d.muted2};
|
|
388
|
-
border-radius: ${M.btn};
|
|
389
|
-
background: ${d.panel};
|
|
390
|
-
|
|
391
|
-
/* The MONOCHROME credit glyph, in the text colour and matched to the amount beside it: the filled
|
|
392
|
-
gradient mark is right for a price you are being SHOWN, and this is a price you are typing, so the
|
|
393
|
-
unit belongs to the input's own type. 17px is the size the design draws the mark at here. */
|
|
394
|
-
& .ico {
|
|
395
|
-
flex: 0 0 auto;
|
|
396
|
-
width: 17px;
|
|
397
|
-
height: 17px;
|
|
398
|
-
color: ${d.text};
|
|
399
|
-
}
|
|
400
|
-
transition:
|
|
401
|
-
border-color 0.15s,
|
|
402
|
-
box-shadow 0.15s;
|
|
403
|
-
|
|
404
|
-
&:focus-within {
|
|
405
|
-
border-color: ${d.accent};
|
|
406
|
-
box-shadow: 0 0 0 3px ${d.rarityBg};
|
|
407
|
-
}
|
|
408
|
-
`,gt=i.input`
|
|
409
|
-
flex: 1 1 auto;
|
|
410
|
-
min-width: 0;
|
|
411
|
-
border: 0;
|
|
412
|
-
outline: 0;
|
|
413
|
-
background: transparent;
|
|
414
|
-
font: inherit;
|
|
415
|
-
font-weight: 600;
|
|
416
|
-
font-size: 16px;
|
|
417
|
-
color: ${d.text};
|
|
418
|
-
text-align: right;
|
|
419
|
-
font-variant-numeric: tabular-nums;
|
|
420
|
-
`,xt=i.div`
|
|
421
|
-
display: flex;
|
|
422
|
-
align-items: baseline;
|
|
423
|
-
gap: 4px;
|
|
424
|
-
font-weight: 500;
|
|
425
|
-
font-size: 12px;
|
|
426
|
-
color: ${d.gray0};
|
|
427
|
-
`,mt=i.span`
|
|
428
|
-
font-weight: 300;
|
|
429
|
-
font-size: 10px;
|
|
430
|
-
color: ${d.muted};
|
|
431
|
-
`,ut=i.div`
|
|
432
|
-
height: 101px;
|
|
433
|
-
border: 1px solid transparent;
|
|
434
|
-
border-radius: ${M.card};
|
|
435
|
-
background: linear-gradient(100deg, #ededed 30%, #f7f7f7 50%, #ededed 70%);
|
|
436
|
-
background-size: 200% 100%;
|
|
437
|
-
animation: shimmer 1.3s infinite linear;
|
|
438
|
-
`,ft=i.div`
|
|
439
|
-
position: fixed;
|
|
440
|
-
left: 0;
|
|
441
|
-
right: 0;
|
|
442
|
-
bottom: 0;
|
|
443
|
-
z-index: 30;
|
|
444
|
-
background: rgba(255, 255, 255, 0.9);
|
|
445
|
-
backdrop-filter: blur(12px);
|
|
446
|
-
border-top: 1px solid ${d.line};
|
|
447
|
-
`,wt=i.div`
|
|
448
|
-
max-width: 1003px;
|
|
449
|
-
margin: 0 auto;
|
|
450
|
-
padding: 15px 20px;
|
|
451
|
-
display: flex;
|
|
452
|
-
align-items: center;
|
|
453
|
-
gap: 16px;
|
|
454
|
-
|
|
455
|
-
${We.maxWidth("mobile")} {
|
|
456
|
-
padding: 12px 16px;
|
|
457
|
-
gap: 12px;
|
|
458
|
-
}
|
|
459
|
-
`,yt=i.div`
|
|
460
|
-
display: flex;
|
|
461
|
-
align-items: center;
|
|
462
|
-
gap: 6px;
|
|
463
|
-
font-weight: 600;
|
|
464
|
-
font-size: 16px;
|
|
465
|
-
color: ${d.text};
|
|
466
|
-
`,bt=i.div`
|
|
467
|
-
font-size: 13px;
|
|
468
|
-
color: ${d.muted};
|
|
469
|
-
`,vt=i.span`
|
|
470
|
-
flex: 1 1 auto;
|
|
471
|
-
`,jt=i($)`
|
|
472
|
-
flex: none;
|
|
473
|
-
padding: 13px 24px;
|
|
474
|
-
`,kt="https://docs.decentraland.org";function $t(a){try{return le(BigInt(a))}catch{return null}}function _t(){const{session:a}=ne(),l=ae(),{items:g,isLoading:v}=xe(),[I,w]=x.useState({}),[A,S]=x.useState(new Set),[j,L]=x.useState(null);x.useEffect(()=>{g.length&&w(t=>{const s={...t};for(const o of g)s[o.oldTradeId]==null&&(s[o.oldTradeId]=o.suggestedCredits);return s})},[g]);const c=t=>!A.has(t),f=t=>I[t.oldTradeId]??t.suggestedCredits,m=g.filter(t=>c(t.oldTradeId)),T=m.reduce((t,s)=>t+f(s),0),k=g.length>0&&m.length===g.length,y=m.length>0&&!k;function z(t,s){const o=s.replace(/[^\d]/g,"");w(h=>({...h,[t]:o===""?0:parseInt(o,10)}))}function R(t){S(s=>{const o=new Set(s);return o.has(t)?o.delete(t):o.add(t),o})}function N(){S(k?new Set(g.map(t=>t.oldTradeId)):new Set)}function r(t){return t.map(s=>({item:s,priceCredits:Math.max(1,f(s))}))}function p(){l.invalidateQueries({queryKey:["importable"]}),l.invalidateQueries({queryKey:["shop-items"]}),l.invalidateQueries({queryKey:["catalog-items"]}),l.invalidateQueries({queryKey:["overview-listings"]}),l.invalidateQueries({queryKey:["upsell-listings"]}),l.invalidateQueries({queryKey:["my-assets"]}),l.invalidateQueries({queryKey:["collection-sale-state"]}),ce.success(n("importListings.toastUpdated"))}return!v&&g.length===0?e.jsxs(De,{children:[e.jsx(Ke,{"aria-hidden":!0,children:"✨"}),e.jsx(Oe,{children:n("importListings.emptyTitle")}),e.jsx("p",{className:"muted",children:n("importListings.emptyBody")}),e.jsx(He,{as:Z,to:"/my-items",variant:"purple",children:n("importListings.goToMyAssets")})]}):e.jsxs(Ue,{children:[e.jsxs(Ve,{children:[e.jsxs(Ye,{children:[e.jsx(Ge,{children:n("importListings.title")}),e.jsxs("div",{children:[e.jsx(Je,{children:n("importListings.lede",{currency:se(E.name)})}),e.jsxs(Xe,{href:kt,target:"_blank",rel:"noopener noreferrer",children:[n("importListings.learnMore"),e.jsx(F,{name:"external-link",className:"ico","aria-hidden":!0})]})]})]}),e.jsx(ue,{})]}),e.jsx(Ze,{}),e.jsxs(qe,{children:[e.jsxs(et,{"data-testid":"import-progress",children:[e.jsx(tt,{"data-testid":"import-count",children:g.length}),n("importListings.updatePricing")]}),e.jsxs(it,{children:[e.jsxs(nt,{children:[e.jsx(H,{children:e.jsx(W,{type:"checkbox",checked:k,ref:t=>{t&&(t.indeterminate=y)},"data-indeterminate":y,onChange:N,"data-testid":"import-select-all","aria-label":n("importListings.selectAllAria")})}),n("importListings.selectAll")]}),e.jsx(at,{children:v?Array.from({length:4}).map((t,s)=>e.jsx(ut,{},s)):g.map(t=>{const s=f(t),o=re({...t,wearableCategory:t.wearableCategory??void 0}),h=$t(t.manaWei);return e.jsxs(st,{"data-off":c(t.oldTradeId)?void 0:!0,children:[e.jsxs(rt,{children:[e.jsx(H,{children:e.jsx(W,{type:"checkbox",checked:c(t.oldTradeId),onChange:()=>R(t.oldTradeId),"data-testid":"import-row-check","aria-label":n("importListings.includeItem",{name:t.name})})}),e.jsx(ot,{children:t.thumbnail?e.jsx("img",{src:t.thumbnail,alt:""}):null})]}),e.jsxs(dt,{children:[e.jsx(lt,{title:t.name,children:t.name||n("importListings.itemFallback")}),e.jsxs(ct,{children:[e.jsx(U,{"data-variant":"rarity",style:{background:de(t.rarity),color:oe(t.rarity)},children:t.rarity}),o?e.jsx(U,{"data-variant":"icon",children:e.jsx(F,{name:o,"aria-hidden":!0})}):null]})]}),e.jsxs(pt,{children:[e.jsxs(ht,{children:[e.jsx(V,{}),e.jsx(gt,{"data-testid":"imp-price-input",inputMode:"numeric",value:s.toLocaleString(),onChange:b=>z(t.oldTradeId,b.target.value),"aria-label":n("importListings.priceAria",{currency:E.name,name:t.name})})]}),e.jsxs(xt,{children:[e.jsxs("span",{children:["$",B(s).toFixed(2)]}),h?e.jsx(mt,{children:n("importListings.wasMana",{amount:h})}):null]})]})]},t.oldTradeId)})})]})]}),e.jsx(ft,{children:e.jsxs(wt,{children:[e.jsxs("div",{children:[e.jsxs(yt,{children:[e.jsx(fe,{})," ",T.toLocaleString()]}),e.jsx(bt,{children:n("importListings.selectedSummary",{count:m.length,usd:B(T).toFixed(2)})})]}),e.jsx(vt,{}),e.jsx(jt,{variant:"purple",disabled:m.length===0,onClick:()=>L(r(m)),children:n("importListings.listAll",{count:m.length})})]})}),j&&a?e.jsx(Qe,{queue:j,session:a,onClose:()=>L(null),onDone:p}):null]})}export{_t as ImportListings};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import{f as F,g as xe}from"./react-DehiWSvs.js";import{b_ as Ee,ce as ae,ae as Pe,cf as Te,bY as Re,cg as be,ac as Oe,ad as z,ch as ue,ci as ge,cj as $e,ck as we,cl as Ce,f as Ae,T as Me}from"./index-B1DCMe50.js";const Fe=Object.freeze(Object.defineProperty({__proto__:null,default:Ee,isPlainObject:ae},Symbol.toStringTag,{value:"Module"})),je=Object.freeze(Object.defineProperty({__proto__:null,default:Pe},Symbol.toStringTag,{value:"Module"})),Le=Object.freeze(Object.defineProperty({__proto__:null,default:Te,private_createBreakpoints:Re,unstable_applyStyles:be},Symbol.toStringTag,{value:"Module"})),qe=["sx"],Ie=e=>{var o,u;const s={systemProps:{},otherProps:{}},d=(o=e==null||(u=e.theme)==null?void 0:u.unstable_sxConfig)!=null?o:ue;return Object.keys(e).forEach(a=>{d[a]?s.systemProps[a]=e[a]:s.otherProps[a]=e[a]}),s};function Ne(e){const{sx:o}=e,u=Oe(e,qe),{systemProps:s,otherProps:d}=Ie(u);let a;return Array.isArray(o)?a=[s,...o]:typeof o=="function"?a=(...R)=>{const v=o(...R);return ae(v)?z({},s,v):s}:a=z({},s,o),z({},d,{sx:a})}const We=Object.freeze(Object.defineProperty({__proto__:null,default:ge,extendSxProp:Ne,unstable_createStyleFunctionSx:$e,unstable_defaultSxConfig:ue},Symbol.toStringTag,{value:"Module"}));var U={exports:{}},n={};/**
|
|
2
|
-
* @license React
|
|
3
|
-
* react-is.production.js
|
|
4
|
-
*
|
|
5
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6
|
-
*
|
|
7
|
-
* This source code is licensed under the MIT license found in the
|
|
8
|
-
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var Q;function Ye(){if(Q)return n;Q=1;var e=Symbol.for("react.transitional.element"),o=Symbol.for("react.portal"),u=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),d=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),R=Symbol.for("react.context"),v=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),$=Symbol.for("react.suspense_list"),b=Symbol.for("react.memo"),w=Symbol.for("react.lazy"),Y=Symbol.for("react.view_transition"),k=Symbol.for("react.client.reference");function p(t){if(typeof t=="object"&&t!==null){var j=t.$$typeof;switch(j){case e:switch(t=t.type,t){case u:case d:case s:case g:case $:case Y:return t;default:switch(t=t&&t.$$typeof,t){case R:case v:case w:case b:return t;case a:return t;default:return j}}case o:return j}}}return n.ContextConsumer=a,n.ContextProvider=R,n.Element=e,n.ForwardRef=v,n.Fragment=u,n.Lazy=w,n.Memo=b,n.Portal=o,n.Profiler=d,n.StrictMode=s,n.Suspense=g,n.SuspenseList=$,n.isContextConsumer=function(t){return p(t)===a},n.isContextProvider=function(t){return p(t)===R},n.isElement=function(t){return typeof t=="object"&&t!==null&&t.$$typeof===e},n.isForwardRef=function(t){return p(t)===v},n.isFragment=function(t){return p(t)===u},n.isLazy=function(t){return p(t)===w},n.isMemo=function(t){return p(t)===b},n.isPortal=function(t){return p(t)===o},n.isProfiler=function(t){return p(t)===d},n.isStrictMode=function(t){return p(t)===s},n.isSuspense=function(t){return p(t)===g},n.isSuspenseList=function(t){return p(t)===$},n.isValidElementType=function(t){return typeof t=="string"||typeof t=="function"||t===u||t===d||t===s||t===g||t===$||typeof t=="object"&&t!==null&&(t.$$typeof===w||t.$$typeof===b||t.$$typeof===R||t.$$typeof===a||t.$$typeof===v||t.$$typeof===k||t.getModuleId!==void 0)},n.typeOf=p,n}var ee;function ke(){return ee||(ee=1,U.exports=Ye()),U.exports}var te=ke();const De=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function ie(e){const o=`${e}`.match(De);return o&&o[1]||""}function le(e,o=""){return e.displayName||e.name||ie(e)||o}function re(e,o,u){const s=le(o);return e.displayName||(s!==""?`${u}(${s})`:u)}function Ve(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return le(e,"Component");if(typeof e=="object")switch(e.$$typeof){case te.ForwardRef:return re(e,e.render,"ForwardRef");case te.Memo:return re(e,e.type,"memo");default:return}}}const ze=Object.freeze(Object.defineProperty({__proto__:null,default:Ve,getFunctionName:ie},Symbol.toStringTag,{value:"Module"}));var O={},B={exports:{}},oe;function Ue(){return oe||(oe=1,(function(e){function o(){return e.exports=o=Object.assign?Object.assign.bind():function(u){for(var s=1;s<arguments.length;s++){var d=arguments[s];for(var a in d)({}).hasOwnProperty.call(d,a)&&(u[a]=d[a])}return u},e.exports.__esModule=!0,e.exports.default=e.exports,o.apply(null,arguments)}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports})(B)),B.exports}var G={exports:{}},ne;function Be(){return ne||(ne=1,(function(e){function o(u,s){if(u==null)return{};var d={};for(var a in u)if({}.hasOwnProperty.call(u,a)){if(s.indexOf(a)!==-1)continue;d[a]=u[a]}return d}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports})(G)),G.exports}const Ge=F(we),He=F(Fe),Xe=F(je),Ze=F(ze),Je=F(Le),Ke=F(We);var se;function Qe(){if(se)return O;se=1;var e=Ce();Object.defineProperty(O,"__esModule",{value:!0}),O.default=de,O.shouldForwardProp=p,O.systemDefaultTheme=void 0;var o=e(Ue()),u=e(Be()),s=w(Ge),d=He;e(Xe),e(Ze);var a=e(Je),R=e(Ke);const v=["ownerState"],g=["variants"],$=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function b(r){if(typeof WeakMap!="function")return null;var l=new WeakMap,i=new WeakMap;return(b=function(c){return c?i:l})(r)}function w(r,l){if(r&&r.__esModule)return r;if(r===null||typeof r!="object"&&typeof r!="function")return{default:r};var i=b(l);if(i&&i.has(r))return i.get(r);var c={__proto__:null},x=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in r)if(f!=="default"&&Object.prototype.hasOwnProperty.call(r,f)){var _=x?Object.getOwnPropertyDescriptor(r,f):null;_&&(_.get||_.set)?Object.defineProperty(c,f,_):c[f]=r[f]}return c.default=r,i&&i.set(r,c),c}function Y(r){return Object.keys(r).length===0}function k(r){return typeof r=="string"&&r.charCodeAt(0)>96}function p(r){return r!=="ownerState"&&r!=="theme"&&r!=="sx"&&r!=="as"}function t(r,l){return l&&r&&typeof r=="object"&&r.styles&&!r.styles.startsWith("@layer")&&(r.styles=`@layer ${l}{${String(r.styles)}}`),r}const j=O.systemDefaultTheme=(0,a.default)(),fe=r=>r&&r.charAt(0).toLowerCase()+r.slice(1);function q({defaultTheme:r,theme:l,themeId:i}){return Y(l)?r:l[i]||l}function ce(r){return r?(l,i)=>i[r]:null}function I(r,l,i){let{ownerState:c}=l,x=(0,u.default)(l,v);const f=typeof r=="function"?r((0,o.default)({ownerState:c},x)):r;if(Array.isArray(f))return f.flatMap(_=>I(_,(0,o.default)({ownerState:c},x),i));if(f&&typeof f=="object"&&Array.isArray(f.variants)){const{variants:_=[]}=f;let m=(0,u.default)(f,g);return _.forEach(y=>{let C=!0;if(typeof y.props=="function"?C=y.props((0,o.default)({ownerState:c},x,c)):Object.keys(y.props).forEach(E=>{(c==null?void 0:c[E])!==y.props[E]&&x[E]!==y.props[E]&&(C=!1)}),C){Array.isArray(m)||(m=[m]);const E=typeof y.style=="function"?y.style((0,o.default)({ownerState:c},x,c)):y.style;m.push(i?t((0,s.internal_serializeStyles)(E),i):E)}}),m}return i?t((0,s.internal_serializeStyles)(f),i):f}function de(r={}){const{themeId:l,defaultTheme:i=j,rootShouldForwardProp:c=p,slotShouldForwardProp:x=p}=r,f=_=>(0,R.default)((0,o.default)({},_,{theme:q((0,o.default)({},_,{defaultTheme:i,themeId:l}))}));return f.__mui_systemSx=!0,(_,D={})=>{(0,s.internal_processStyles)(_,S=>S.filter(P=>!(P!=null&&P.__mui_systemSx)));const{name:m,slot:y,skipVariantsResolver:C,skipSx:E,overridesResolver:H=ce(fe(y))}=D,pe=(0,u.default)(D,$),_e=m&&m.startsWith("Mui")||y?"components":"custom",ye=C!==void 0?C:y&&y!=="Root"&&y!=="root"||!1,me=E||!1;let Se,N=p;y==="Root"||y==="root"?N=c:y?N=x:k(_)&&(N=void 0);const V=(0,s.default)(_,(0,o.default)({shouldForwardProp:N,label:Se},pe)),X=S=>typeof S=="function"&&S.__emotion_real!==S||(0,d.isPlainObject)(S)?P=>{const A=q({theme:P.theme,defaultTheme:i,themeId:l});return I(S,(0,o.default)({},P,{theme:A}),A.modularCssLayers?_e:void 0)}:S,Z=(S,...P)=>{let A=X(S);const L=P?P.map(X):[];m&&H&&L.push(T=>{const h=q((0,o.default)({},T,{defaultTheme:i,themeId:l}));if(!h.components||!h.components[m]||!h.components[m].styleOverrides)return null;const M=h.components[m].styleOverrides,W={};return Object.entries(M).forEach(([he,ve])=>{W[he]=I(ve,(0,o.default)({},T,{theme:h}),h.modularCssLayers?"theme":void 0)}),H(T,W)}),m&&!ye&&L.push(T=>{var h;const M=q((0,o.default)({},T,{defaultTheme:i,themeId:l})),W=M==null||(h=M.components)==null||(h=h[m])==null?void 0:h.variants;return I({variants:W},(0,o.default)({},T,{theme:M}),M.modularCssLayers?"theme":void 0)}),me||L.push(f);const J=L.length-P.length;if(Array.isArray(S)&&J>0){const T=new Array(J).fill("");A=[...S,...T],A.raw=[...S.raw,...T]}const K=V(A,...L);return _.muiName&&(K.muiName=_.muiName),K};return V.withConfig&&(Z.withConfig=V.withConfig),Z}}return O}var et=Qe();const tt=xe(et);function rt(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const ot=e=>rt(e)&&e!=="classes",at=tt({themeId:Me,defaultTheme:Ae,rootShouldForwardProp:ot});export{ot as a,rt as b,Ne as e,Ge as r,at as s};
|