@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
|
@@ -0,0 +1,519 @@
|
|
|
1
|
+
import{j as e,d as ee,r as g,L as te}from"./react-DehiWSvs.js";import{t as q,s as t,o as ie,v as ne,d as i,e as Q,B as E,bO as V,w as Y,S as se,b4 as N,A as D,K as ae,k as re,x as oe,ag as de,I as O,a4 as le,a7 as ce,a8 as pe,bP as he,z as ge}from"./index-DyLYzoRb.js";import{c as xe,i as me,R as ue,u as fe}from"./useImportable-DJqmpxB-.js";import{S as we,C as ye,b as be}from"./ManaPricingBanner.styles-CbLNPpYs.js";import{F as ve}from"./Faq-CLALDt_B.js";import{C as U}from"./field.styles-uVKqEgCR.js";import"./sentry-973sfbO9.js";import"./dcl-schemas-Dr9BTjb7.js";import"./ethers-CtNGBird.js";import"./intl-CBcMB1D2.js";import"./buy-ot6NCqZj.js";import"./authorizations-ByBKRXko.js";import"./sendMetaTransaction-BkvxVm7u.js";import"./trade-encoding-DHpwKa1D.js";function je({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:S,radius:ke,z:Ce}=q,$e=ie`
|
|
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: ${Ce.overlay};
|
|
19
|
+
`,J=t.div`
|
|
20
|
+
background: ${S.white};
|
|
21
|
+
border-radius: ${ke.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: ${S.media};
|
|
49
|
+
border-radius: 10px;
|
|
50
|
+
`;const Se=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: ${S.white};
|
|
59
|
+
`;t.div`
|
|
60
|
+
width: 56px;
|
|
61
|
+
height: 56px;
|
|
62
|
+
border-radius: 50%;
|
|
63
|
+
background: ${S.okStrong};
|
|
64
|
+
color: ${S.white};
|
|
65
|
+
font-size: 30px;
|
|
66
|
+
font-weight: 800;
|
|
67
|
+
display: grid;
|
|
68
|
+
place-items: center;
|
|
69
|
+
margin: 4px auto 2px;
|
|
70
|
+
animation: ${$e} 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:f,gradients:Ie,radius:Le}=q,Te=t(J)`
|
|
80
|
+
width: min(460px, 94vw);
|
|
81
|
+
text-align: left;
|
|
82
|
+
align-items: stretch;
|
|
83
|
+
`,ze=t.div`
|
|
84
|
+
height: 6px;
|
|
85
|
+
border-radius: 999px;
|
|
86
|
+
background: ${f.line};
|
|
87
|
+
overflow: hidden;
|
|
88
|
+
margin: 6px 0 14px;
|
|
89
|
+
`,Ae=t.div`
|
|
90
|
+
height: 100%;
|
|
91
|
+
width: 0;
|
|
92
|
+
background: ${Ie.amethyst};
|
|
93
|
+
border-radius: 999px;
|
|
94
|
+
transition: width 0.45s ease;
|
|
95
|
+
`,_e=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
|
+
`,Me=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: ${f.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
|
+
`,Ee=t.span`
|
|
128
|
+
width: 34px;
|
|
129
|
+
height: 34px;
|
|
130
|
+
border-radius: ${Le.btn};
|
|
131
|
+
overflow: hidden;
|
|
132
|
+
background: ${f.media};
|
|
133
|
+
display: grid;
|
|
134
|
+
place-items: center;
|
|
135
|
+
|
|
136
|
+
& img {
|
|
137
|
+
width: 100%;
|
|
138
|
+
height: 100%;
|
|
139
|
+
object-fit: contain;
|
|
140
|
+
}
|
|
141
|
+
`,Re=t.span`
|
|
142
|
+
font-weight: 600;
|
|
143
|
+
font-size: 14px;
|
|
144
|
+
white-space: nowrap;
|
|
145
|
+
overflow: hidden;
|
|
146
|
+
text-overflow: ellipsis;
|
|
147
|
+
`,Fe=t.span`
|
|
148
|
+
font-weight: 700;
|
|
149
|
+
font-size: 13px;
|
|
150
|
+
color: ${f.text2};
|
|
151
|
+
`,Pe=t.span`
|
|
152
|
+
font-size: 12px;
|
|
153
|
+
font-weight: 700;
|
|
154
|
+
color: ${f.accent};
|
|
155
|
+
display: inline-flex;
|
|
156
|
+
align-items: center;
|
|
157
|
+
gap: 6px;
|
|
158
|
+
justify-content: flex-end;
|
|
159
|
+
min-width: 74px;
|
|
160
|
+
`,Be=t.span`
|
|
161
|
+
color: ${f.muted2};
|
|
162
|
+
font-weight: 600;
|
|
163
|
+
`,B=t.span`
|
|
164
|
+
color: ${f.muted};
|
|
165
|
+
font-weight: 600;
|
|
166
|
+
`,Qe=t.span`
|
|
167
|
+
width: 14px;
|
|
168
|
+
height: 14px;
|
|
169
|
+
margin: 0;
|
|
170
|
+
border-width: 2px;
|
|
171
|
+
`,Ne=t.span`
|
|
172
|
+
width: 20px;
|
|
173
|
+
height: 20px;
|
|
174
|
+
border-radius: 50%;
|
|
175
|
+
background: ${f.ok};
|
|
176
|
+
color: ${f.white};
|
|
177
|
+
display: grid;
|
|
178
|
+
place-items: center;
|
|
179
|
+
font-size: 12px;
|
|
180
|
+
`,qe=t.p`
|
|
181
|
+
margin: 12px 0 0;
|
|
182
|
+
`;function De(a,l){switch(a==null?void 0:a.step){case"cancelling":return l?i("migrate.phaseCancelConfirm"):i("migrate.phaseCancel");case"confirming-cancel":return l?i("migrate.phaseConfirmingCancel"):i("migrate.phaseConfirmingCancelManaged");case"authorising":return l?i("migrate.phaseAuthoriseConfirm"):i("migrate.phaseAuthorise");case"signing":return l?i("migrate.phaseSignConfirm"):i("migrate.phaseSign");case"publishing":return i("migrate.phasePublishing");case"indexing":return i("migrate.phaseIndexing",{attempt:a.attempt,of:a.of});default:return l?i("migrate.statusConfirm"):i("migrate.statusAdding")}}function Oe({queue:a,session:l,onClose:p,onDone:k}){const R=ee(),y=ne(l.providerType),[F,L]=g.useState(()=>a.map(()=>null)),[b,T]=g.useState(null),[c,w]=g.useState(()=>a.map(()=>"pending")),[x,z]=g.useState("running"),v=g.useRef(!1);g.useEffect(()=>{if(v.current)return;v.current=!0;let s=!1;return y&&xe(a.map(r=>r.item),l.address).then(r=>{!s&&r&&T({approvals:r.approvals,total:r.total})}).catch(()=>{}),(async()=>{for(let r=0;r<a.length;r++){if(s)return;w(h=>h.map((m,u)=>u===r?"active":m));try{await me(a[r].item,a[r].priceCredits,l,{onPhase:h=>{s||L(m=>m.map((u,$)=>$===r?h:u))}}),se("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:N(a[r].priceCredits)}),s||w(h=>h.map((m,u)=>u===r?"done":m))}catch(h){if(h instanceof ue)D(h,{flow:"import_listing",step:"relist",itemId:a[r].item.itemId??a[r].item.oldTradeId}),s||w(m=>m.map((u,$)=>$===r?"unlisted":u));else{const m=h,u=m.code===4001||/reject|denied|cancel/i.test(m.message??"");u||D(h,{flow:"import_listing",itemId:a[r].item.itemId??a[r].item.oldTradeId}),s||w($=>$.map((X,Z)=>Z===r?u?"skipped":"failed":X))}}}s||z("finished")})(),()=>{s=!0}},[]);const C=c.filter(s=>s==="done").length,A=c.findIndex(s=>s==="active"),P=Math.round(c.filter(s=>s!=="pending"&&s!=="active").length/a.length*100);function _(){k(),p()}const M=c.filter(s=>s==="skipped"||s==="failed").length,j=c.filter(s=>s==="unlisted").length,n=g.useRef(!1);return g.useEffect(()=>{x!=="finished"||j>0||n.current||(n.current=!0,_())},[x,j]),x==="finished"?j===0?null:e.jsx(W,{role:"presentation",children:e.jsxs(J,{"data-success":!0,role:"dialog","aria-modal":"true","data-testid":"migrate-unlisted",children:[e.jsx(K,{children:i("migrate.unlistedTitle")}),e.jsxs("p",{className:"muted",style:{margin:0},children:[i("migrate.unlistedSummary",{count:j}),C>0?" "+i("migrate.listedSummary",{count:C,currency:Q.name}):"",M>0?" "+i("migrate.skippedSummary",{count:M}):""]}),e.jsxs(Se,{"data-actions":!0,children:[e.jsx(E,{variant:"ghost",onClick:_,children:i("getCredits.done")}),e.jsx(E,{variant:"purple",onClick:()=>{k(),p(),R(V)},children:i("migrate.goToMyAssets")})]})]})}):e.jsx(W,{role:"presentation",children:e.jsxs(Te,{"data-testid":"modal",role:"dialog","aria-modal":"true","aria-live":"polite",children:[e.jsx(K,{children:i("migrate.listingTitle")}),e.jsxs("p",{className:"muted small",style:{margin:"0 0 4px"},children:[y?i("migrate.subConfirm"):i("migrate.subManaged")," ",A>=0?i("migrate.progressCount",{current:A+1,total:a.length}):""]}),e.jsx(ze,{children:e.jsx(Ae,{style:{width:`${P}%`}})}),e.jsx(_e,{children:a.map((s,d)=>e.jsxs(Me,{"data-status":c[d],children:[e.jsx(Ee,{children:s.item.thumbnail?e.jsx("img",{src:s.item.thumbnail,alt:""}):null}),e.jsx(Re,{title:s.item.name,children:s.item.name||i("migrate.itemFallback")}),e.jsxs(Fe,{children:[e.jsx(Y,{className:"ccy-mark"})," ",s.priceCredits.toLocaleString()]}),e.jsx(Pe,{"data-testid":c[d]==="active"?"migrate-active-status":void 0,children:c[d]==="active"?e.jsxs(e.Fragment,{children:[e.jsx(Qe,{className:"spinner","aria-hidden":!0})," ",De(F[d],y)]}):c[d]==="done"?e.jsx(Ne,{children:e.jsx(je,{})}):c[d]==="skipped"?e.jsx(B,{children:i("migrate.statusSkipped")}):c[d]==="failed"?e.jsx(B,{children:i("migrate.statusFailed")}):c[d]==="unlisted"?e.jsx(B,{title:i("migrate.unlistedTooltip"),children:i("migrate.statusUnlisted")}):e.jsx(Be,{children:i("migrate.statusWaiting")})})]},s.item.oldTradeId))}),e.jsx(qe,{className:"muted small",children:y?b?i(b.approvals>0?"migrate.hintCountApproval":"migrate.hintCount",{total:b.total}):i("migrate.hintConfirm"):i("migrate.hintManaged")})]})})}const Ue="data:image/svg+xml,%3csvg%20preserveAspectRatio='none'%20overflow='visible'%20style='display:%20block;'%20width='84.837'%20height='84.837'%20viewBox='0%200%2084.837%2084.837'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Group'%3e%3cpath%20id='Vector'%20d='M29.2935%2033.6675L43.5472%2044.36C44.4303%2045.0223%2045.5311%2045.3263%2046.6288%2045.2111C47.7266%2045.0959%2048.7403%2044.5699%2049.4666%2043.7387L77.4185%2011.7925'%20stroke='url(%23paint0_linear_0_74)'%20stroke-width='6.08696'%20stroke-linecap='round'/%3e%3cpath%20id='Vector_2'%20d='M81.7935%2042.4178C81.7936%2050.6451%2079.2167%2058.6658%2074.4245%2065.3533C69.6323%2072.0409%2062.8657%2077.0594%2055.075%2079.7039C47.2843%2082.3485%2038.8609%2082.4862%2030.9879%2080.0978C23.1149%2077.7094%2016.1878%2072.9149%2011.1796%2066.3876C6.17126%2059.8603%203.33339%2051.9282%203.06452%2043.7053C2.79565%2035.4824%205.10927%2027.3818%209.68046%2020.5413C14.2516%2013.7008%2020.8507%208.46394%2028.5509%205.56634C36.251%202.66875%2044.6654%202.25594%2052.6122%204.38589'%20stroke='url(%23paint1_linear_0_74)'%20stroke-width='6.08696'%20stroke-linecap='round'/%3e%3c/g%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_0_74'%20x1='27.7771'%20y1='28.5159'%20x2='111.866'%20y2='17.1154'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23FF2D55'/%3e%3cstop%20offset='1'%20stop-color='%23FFBC5B'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint1_linear_0_74'%20x1='0.562175'%20y1='42.4235'%20x2='139.458'%20y2='29.3377'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23FF2D55'/%3e%3cstop%20offset='1'%20stop-color='%23FFBC5B'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e",{colors:o,font:We,media:Ke,radius:I}=q,Ge=t.div`
|
|
183
|
+
display: flex;
|
|
184
|
+
flex-direction: column;
|
|
185
|
+
align-items: center;
|
|
186
|
+
gap: 24px;
|
|
187
|
+
padding: 24px 20px 80px;
|
|
188
|
+
`,He=t.div`
|
|
189
|
+
/* 615px in the design; capped rather than fixed so it still fits a phone. */
|
|
190
|
+
width: 100%;
|
|
191
|
+
max-width: 615px;
|
|
192
|
+
display: flex;
|
|
193
|
+
flex-direction: column;
|
|
194
|
+
align-items: center;
|
|
195
|
+
justify-content: center;
|
|
196
|
+
gap: 24px;
|
|
197
|
+
padding: 16px;
|
|
198
|
+
border-radius: ${I.modal};
|
|
199
|
+
background: ${o.white};
|
|
200
|
+
text-align: center;
|
|
201
|
+
`,Ve=t.span`
|
|
202
|
+
flex-shrink: 0;
|
|
203
|
+
width: 105px;
|
|
204
|
+
height: 105px;
|
|
205
|
+
display: flex;
|
|
206
|
+
align-items: center;
|
|
207
|
+
justify-content: center;
|
|
208
|
+
overflow: hidden;
|
|
209
|
+
|
|
210
|
+
img {
|
|
211
|
+
width: 84.837px;
|
|
212
|
+
height: 84.837px;
|
|
213
|
+
}
|
|
214
|
+
`,Ye=t.div`
|
|
215
|
+
width: 100%;
|
|
216
|
+
display: flex;
|
|
217
|
+
flex-direction: column;
|
|
218
|
+
align-items: center;
|
|
219
|
+
gap: 12px;
|
|
220
|
+
padding-bottom: 16px;
|
|
221
|
+
line-height: 1.6;
|
|
222
|
+
color: ${o.text};
|
|
223
|
+
`,Je=t.h2`
|
|
224
|
+
margin: 0;
|
|
225
|
+
font-size: 20px;
|
|
226
|
+
font-weight: 700;
|
|
227
|
+
`,Xe=t.p`
|
|
228
|
+
margin: 0;
|
|
229
|
+
font-size: 16px;
|
|
230
|
+
font-weight: 400;
|
|
231
|
+
`,Ze=t.div`
|
|
232
|
+
width: 310px;
|
|
233
|
+
max-width: 100%;
|
|
234
|
+
padding-bottom: 16px;
|
|
235
|
+
`,et=t(E)`
|
|
236
|
+
width: 100%;
|
|
237
|
+
height: 56px;
|
|
238
|
+
border-radius: 12px;
|
|
239
|
+
font-size: 15px;
|
|
240
|
+
/* The variant sets 0.046em, which at 15px is 0.69px; the design asks for 0.46px flat. */
|
|
241
|
+
letter-spacing: 0.46px;
|
|
242
|
+
`,tt=t.div`
|
|
243
|
+
max-width: 1003px;
|
|
244
|
+
margin: 0 auto;
|
|
245
|
+
padding-bottom: 120px;
|
|
246
|
+
display: flex;
|
|
247
|
+
flex-direction: column;
|
|
248
|
+
gap: 12px;
|
|
249
|
+
font-family: ${We.sans};
|
|
250
|
+
`,it=t.header`
|
|
251
|
+
display: flex;
|
|
252
|
+
flex-direction: column;
|
|
253
|
+
gap: 16px;
|
|
254
|
+
padding: 10px 12px;
|
|
255
|
+
`,nt=t.div`
|
|
256
|
+
display: flex;
|
|
257
|
+
flex-direction: column;
|
|
258
|
+
gap: 8px;
|
|
259
|
+
`,st=t.h2`
|
|
260
|
+
margin: 0;
|
|
261
|
+
font-weight: 600;
|
|
262
|
+
font-size: 20px;
|
|
263
|
+
line-height: 24px;
|
|
264
|
+
letter-spacing: 0.46px;
|
|
265
|
+
color: ${o.text};
|
|
266
|
+
`,at=t.p`
|
|
267
|
+
margin: 0;
|
|
268
|
+
font-weight: 500;
|
|
269
|
+
font-size: 14px;
|
|
270
|
+
line-height: 1.334;
|
|
271
|
+
color: ${o.muted1};
|
|
272
|
+
`,rt=t.a`
|
|
273
|
+
display: inline-flex;
|
|
274
|
+
align-items: center;
|
|
275
|
+
gap: 2px;
|
|
276
|
+
font-weight: 600;
|
|
277
|
+
font-size: 14px;
|
|
278
|
+
line-height: 30px;
|
|
279
|
+
text-decoration: underline;
|
|
280
|
+
color: ${o.accent};
|
|
281
|
+
|
|
282
|
+
.ico {
|
|
283
|
+
width: 13px;
|
|
284
|
+
height: 13px;
|
|
285
|
+
}
|
|
286
|
+
&:focus-visible {
|
|
287
|
+
outline: 2px solid ${o.accent};
|
|
288
|
+
outline-offset: 2px;
|
|
289
|
+
}
|
|
290
|
+
`,ot=t.hr`
|
|
291
|
+
width: 100%;
|
|
292
|
+
height: 0;
|
|
293
|
+
margin: 0;
|
|
294
|
+
border: 0;
|
|
295
|
+
border-top: 1px solid ${o.gray4};
|
|
296
|
+
`,dt=t.div`
|
|
297
|
+
display: flex;
|
|
298
|
+
flex-direction: column;
|
|
299
|
+
gap: 8px;
|
|
300
|
+
padding: 8px 12px 0;
|
|
301
|
+
`,lt=t(we)`
|
|
302
|
+
font-size: 14px;
|
|
303
|
+
line-height: 1.334;
|
|
304
|
+
color: ${o.text2};
|
|
305
|
+
`,ct=t.span`
|
|
306
|
+
flex: none;
|
|
307
|
+
display: grid;
|
|
308
|
+
place-items: center;
|
|
309
|
+
width: 20px;
|
|
310
|
+
height: 20px;
|
|
311
|
+
border-radius: ${I.pill};
|
|
312
|
+
background: ${o.brandViolet};
|
|
313
|
+
font-weight: 600;
|
|
314
|
+
font-size: 12px;
|
|
315
|
+
line-height: 1.6;
|
|
316
|
+
color: ${o.white};
|
|
317
|
+
`,pt=t.div`
|
|
318
|
+
display: flex;
|
|
319
|
+
flex-direction: column;
|
|
320
|
+
gap: 4px;
|
|
321
|
+
`,ht=t.label`
|
|
322
|
+
display: flex;
|
|
323
|
+
align-items: center;
|
|
324
|
+
align-self: flex-start;
|
|
325
|
+
font-size: 14px;
|
|
326
|
+
line-height: 1.2;
|
|
327
|
+
color: ${o.text};
|
|
328
|
+
cursor: pointer;
|
|
329
|
+
`,G=t.span`
|
|
330
|
+
flex: none;
|
|
331
|
+
display: grid;
|
|
332
|
+
place-items: center;
|
|
333
|
+
width: 40px;
|
|
334
|
+
height: 40px;
|
|
335
|
+
`,gt=t.div`
|
|
336
|
+
display: flex;
|
|
337
|
+
flex-direction: column;
|
|
338
|
+
gap: 12px;
|
|
339
|
+
`,xt=t.article`
|
|
340
|
+
display: flex;
|
|
341
|
+
align-items: center;
|
|
342
|
+
flex-wrap: wrap;
|
|
343
|
+
gap: 12px;
|
|
344
|
+
row-gap: 8px;
|
|
345
|
+
padding: 12px 24px 12px 0;
|
|
346
|
+
border: 1px solid ${o.gray4};
|
|
347
|
+
border-radius: ${I.card};
|
|
348
|
+
background: ${o.white};
|
|
349
|
+
overflow: hidden;
|
|
350
|
+
transition: opacity 0.25s ease;
|
|
351
|
+
|
|
352
|
+
&[data-off] {
|
|
353
|
+
opacity: 0.5;
|
|
354
|
+
}
|
|
355
|
+
`,mt=t.div`
|
|
356
|
+
flex: none;
|
|
357
|
+
display: flex;
|
|
358
|
+
align-items: center;
|
|
359
|
+
`,ut=t.div`
|
|
360
|
+
flex: none;
|
|
361
|
+
display: grid;
|
|
362
|
+
place-items: center;
|
|
363
|
+
width: 74.289px;
|
|
364
|
+
height: 74px;
|
|
365
|
+
border-radius: 6.482px;
|
|
366
|
+
background: ${o.media};
|
|
367
|
+
overflow: hidden;
|
|
368
|
+
|
|
369
|
+
& img {
|
|
370
|
+
width: 61.57px;
|
|
371
|
+
height: 61.281px;
|
|
372
|
+
object-fit: contain;
|
|
373
|
+
filter: drop-shadow(0.303px 1.212px 1.516px rgba(0, 0, 0, 0.1));
|
|
374
|
+
}
|
|
375
|
+
`,ft=t.div`
|
|
376
|
+
/* Basis (not min-width) is what makes the price column wrap to its own line on a phone; min-width: 0
|
|
377
|
+
then lets the name ellipsize once it is on a line of its own. */
|
|
378
|
+
flex: 1 1 150px;
|
|
379
|
+
min-width: 0;
|
|
380
|
+
display: flex;
|
|
381
|
+
flex-direction: column;
|
|
382
|
+
justify-content: center;
|
|
383
|
+
gap: 8px;
|
|
384
|
+
padding: 16px 8px;
|
|
385
|
+
`,wt=t.div`
|
|
386
|
+
font-weight: 600;
|
|
387
|
+
font-size: 16px;
|
|
388
|
+
line-height: 1.2;
|
|
389
|
+
color: ${o.text};
|
|
390
|
+
white-space: nowrap;
|
|
391
|
+
overflow: hidden;
|
|
392
|
+
text-overflow: ellipsis;
|
|
393
|
+
`,yt=t.div`
|
|
394
|
+
display: flex;
|
|
395
|
+
align-items: flex-end;
|
|
396
|
+
gap: 4px;
|
|
397
|
+
`,H=t(ae)`
|
|
398
|
+
padding: 1.623px 6.491px;
|
|
399
|
+
font-weight: 600;
|
|
400
|
+
font-size: 8.56px;
|
|
401
|
+
line-height: 11.851px;
|
|
402
|
+
|
|
403
|
+
/* Same padding as the rarity chip beside it — the design sets the category chip flush with it, and
|
|
404
|
+
only the narrower gender chip (which this row does not carry) gets the tighter inset. Restated
|
|
405
|
+
rather than inherited because the shared chip's own icon variant is a more specific selector. */
|
|
406
|
+
&[data-variant='icon'] {
|
|
407
|
+
padding: 1.623px 6.491px;
|
|
408
|
+
}
|
|
409
|
+
&[data-variant='icon'] .ico {
|
|
410
|
+
width: 14.605px;
|
|
411
|
+
height: 14.605px;
|
|
412
|
+
}
|
|
413
|
+
`,bt=t.div`
|
|
414
|
+
flex: none;
|
|
415
|
+
/* Right-aligns the block on the desktop row AND on the line it wraps to on narrow screens. */
|
|
416
|
+
margin-left: auto;
|
|
417
|
+
display: flex;
|
|
418
|
+
flex-direction: column;
|
|
419
|
+
align-items: flex-end;
|
|
420
|
+
justify-content: center;
|
|
421
|
+
gap: 4px;
|
|
422
|
+
`,vt=t.div`
|
|
423
|
+
display: flex;
|
|
424
|
+
align-items: center;
|
|
425
|
+
justify-content: space-between;
|
|
426
|
+
gap: 8px;
|
|
427
|
+
width: 144px;
|
|
428
|
+
height: 42px;
|
|
429
|
+
padding: 8px;
|
|
430
|
+
border: 0.5px solid ${o.muted2};
|
|
431
|
+
border-radius: ${I.btn};
|
|
432
|
+
background: ${o.panel};
|
|
433
|
+
|
|
434
|
+
/* The MONOCHROME credit glyph, in the text colour and matched to the amount beside it: the filled
|
|
435
|
+
gradient mark is right for a price you are being SHOWN, and this is a price you are typing, so the
|
|
436
|
+
unit belongs to the input's own type. 17px is the size the design draws the mark at here. */
|
|
437
|
+
& .ico {
|
|
438
|
+
flex: 0 0 auto;
|
|
439
|
+
width: 17px;
|
|
440
|
+
height: 17px;
|
|
441
|
+
color: ${o.text};
|
|
442
|
+
}
|
|
443
|
+
transition:
|
|
444
|
+
border-color 0.15s,
|
|
445
|
+
box-shadow 0.15s;
|
|
446
|
+
|
|
447
|
+
&:focus-within {
|
|
448
|
+
border-color: ${o.accent};
|
|
449
|
+
box-shadow: 0 0 0 3px ${o.rarityBg};
|
|
450
|
+
}
|
|
451
|
+
`,jt=t.input`
|
|
452
|
+
flex: 1 1 auto;
|
|
453
|
+
min-width: 0;
|
|
454
|
+
border: 0;
|
|
455
|
+
outline: 0;
|
|
456
|
+
background: transparent;
|
|
457
|
+
font: inherit;
|
|
458
|
+
font-weight: 600;
|
|
459
|
+
font-size: 16px;
|
|
460
|
+
color: ${o.text};
|
|
461
|
+
text-align: right;
|
|
462
|
+
font-variant-numeric: tabular-nums;
|
|
463
|
+
`,kt=t.div`
|
|
464
|
+
display: flex;
|
|
465
|
+
align-items: baseline;
|
|
466
|
+
gap: 4px;
|
|
467
|
+
font-weight: 500;
|
|
468
|
+
font-size: 12px;
|
|
469
|
+
color: ${o.gray0};
|
|
470
|
+
`,Ct=t.span`
|
|
471
|
+
font-weight: 300;
|
|
472
|
+
font-size: 10px;
|
|
473
|
+
color: ${o.muted};
|
|
474
|
+
`,$t=t.div`
|
|
475
|
+
height: 101px;
|
|
476
|
+
border: 1px solid transparent;
|
|
477
|
+
border-radius: ${I.card};
|
|
478
|
+
background: linear-gradient(100deg, #ededed 30%, #f7f7f7 50%, #ededed 70%);
|
|
479
|
+
background-size: 200% 100%;
|
|
480
|
+
animation: shimmer 1.3s infinite linear;
|
|
481
|
+
`,St=t.div`
|
|
482
|
+
position: fixed;
|
|
483
|
+
left: 0;
|
|
484
|
+
right: 0;
|
|
485
|
+
bottom: 0;
|
|
486
|
+
z-index: 30;
|
|
487
|
+
background: rgba(255, 255, 255, 0.9);
|
|
488
|
+
backdrop-filter: blur(12px);
|
|
489
|
+
border-top: 1px solid ${o.line};
|
|
490
|
+
`,It=t.div`
|
|
491
|
+
max-width: 1003px;
|
|
492
|
+
margin: 0 auto;
|
|
493
|
+
padding: 15px 20px;
|
|
494
|
+
display: flex;
|
|
495
|
+
align-items: center;
|
|
496
|
+
gap: 16px;
|
|
497
|
+
|
|
498
|
+
${Ke.maxWidth("mobile")} {
|
|
499
|
+
padding: 12px 16px;
|
|
500
|
+
gap: 12px;
|
|
501
|
+
}
|
|
502
|
+
`,Lt=t.div`
|
|
503
|
+
display: flex;
|
|
504
|
+
align-items: center;
|
|
505
|
+
gap: 6px;
|
|
506
|
+
font-weight: 600;
|
|
507
|
+
font-size: 16px;
|
|
508
|
+
color: ${o.text};
|
|
509
|
+
`,Tt=t.div`
|
|
510
|
+
font-size: 13px;
|
|
511
|
+
color: ${o.muted};
|
|
512
|
+
`,zt=t.span`
|
|
513
|
+
flex: 1 1 auto;
|
|
514
|
+
`,At=t(E)`
|
|
515
|
+
flex: none;
|
|
516
|
+
padding: 13px 24px;
|
|
517
|
+
`,_t=t.div`
|
|
518
|
+
padding: 16px 12px 0;
|
|
519
|
+
`,Mt=[{question:"faq.sellers.whatAreQ",answer:"faq.sellers.whatAreA"},{question:"faq.sellers.whyCreditsQ",answer:"faq.sellers.whyCreditsA"},{question:"faq.sellers.receiveCreditsQ",answer:"faq.sellers.receiveCreditsA"},{question:"faq.sellers.changePriceQ",answer:"faq.sellers.changePriceA"},{question:"faq.sellers.mustSwitchQ",answer:"faq.sellers.mustSwitchA"},{question:"faq.sellers.suggestedPriceQ",answer:"faq.sellers.suggestedPriceA"}],Et="https://docs.decentraland.org";function Rt(a){try{return he(BigInt(a))}catch{return null}}function Yt(){const{session:a}=re(),l=oe(),{items:p,isLoading:k}=fe(),[R,y]=g.useState({}),[F,L]=g.useState(new Set),[b,T]=g.useState(null);g.useEffect(()=>{p.length&&y(n=>{const s={...n};for(const d of p)s[d.oldTradeId]==null&&(s[d.oldTradeId]=d.suggestedCredits);return s})},[p]);const c=n=>!F.has(n),w=n=>R[n.oldTradeId]??n.suggestedCredits,x=p.filter(n=>c(n.oldTradeId)),z=x.reduce((n,s)=>n+w(s),0),v=p.length>0&&x.length===p.length,C=x.length>0&&!v;function A(n,s){const d=s.replace(/[^\d]/g,"");y(r=>({...r,[n]:d===""?0:parseInt(d,10)}))}function P(n){L(s=>{const d=new Set(s);return d.has(n)?d.delete(n):d.add(n),d})}function _(){L(v?new Set(p.map(n=>n.oldTradeId)):new Set)}function M(n){return n.map(s=>({item:s,priceCredits:Math.max(1,w(s))}))}function j(){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"]}),ge.success(i("importListings.toastUpdated"))}return!k&&p.length===0?e.jsx(Ge,{"data-testid":"import-empty",children:e.jsxs(He,{children:[e.jsx(Ve,{"aria-hidden":!0,children:e.jsx("img",{src:Ue,alt:"",width:85,height:85})}),e.jsxs(Ye,{children:[e.jsx(Je,{children:i("importListings.emptyTitle")}),e.jsx(Xe,{children:i("importListings.emptyBody")})]}),e.jsx(Ze,{children:e.jsx(et,{as:te,to:V,variant:"purple",children:i("importListings.goToMyAssets")})})]})}):e.jsxs(tt,{children:[e.jsxs(it,{children:[e.jsxs(nt,{children:[e.jsx(st,{children:i("importListings.title")}),e.jsxs("div",{children:[e.jsx(at,{children:i("importListings.lede",{currency:de(Q.name)})}),e.jsxs(rt,{href:Et,target:"_blank",rel:"noopener noreferrer",children:[i("importListings.learnMore"),e.jsx(O,{name:"external-link",className:"ico","aria-hidden":!0})]})]})]}),e.jsx(ye,{})]}),e.jsx(ot,{}),e.jsxs(dt,{children:[e.jsxs(lt,{"data-testid":"import-progress",children:[e.jsx(ct,{"data-testid":"import-count",children:p.length}),i("importListings.updatePricing")]}),e.jsxs(pt,{children:[e.jsxs(ht,{children:[e.jsx(G,{children:e.jsx(U,{type:"checkbox",checked:v,ref:n=>{n&&(n.indeterminate=C)},"data-indeterminate":C,onChange:_,"data-testid":"import-select-all","aria-label":i("importListings.selectAllAria")})}),i("importListings.selectAll")]}),e.jsx(gt,{children:k?Array.from({length:4}).map((n,s)=>e.jsx($t,{},s)):p.map(n=>{const s=w(n),d=le({...n,wearableCategory:n.wearableCategory??void 0}),r=Rt(n.manaWei);return e.jsxs(xt,{"data-off":c(n.oldTradeId)?void 0:!0,children:[e.jsxs(mt,{children:[e.jsx(G,{children:e.jsx(U,{type:"checkbox",checked:c(n.oldTradeId),onChange:()=>P(n.oldTradeId),"data-testid":"import-row-check","aria-label":i("importListings.includeItem",{name:n.name})})}),e.jsx(ut,{children:n.thumbnail?e.jsx("img",{src:n.thumbnail,alt:""}):null})]}),e.jsxs(ft,{children:[e.jsx(wt,{title:n.name,children:n.name||i("importListings.itemFallback")}),e.jsxs(yt,{children:[e.jsx(H,{"data-variant":"rarity",style:{background:pe(n.rarity),color:ce(n.rarity)},children:n.rarity}),d?e.jsx(H,{"data-variant":"icon",children:e.jsx(O,{name:d,"aria-hidden":!0})}):null]})]}),e.jsxs(bt,{children:[e.jsxs(vt,{children:[e.jsx(Y,{}),e.jsx(jt,{"data-testid":"imp-price-input",inputMode:"numeric",value:s.toLocaleString(),onChange:h=>A(n.oldTradeId,h.target.value),"aria-label":i("importListings.priceAria",{currency:Q.name,name:n.name})})]}),e.jsxs(kt,{children:[e.jsxs("span",{children:["$",N(s).toFixed(2)]}),r?e.jsx(Ct,{children:i("importListings.wasMana",{amount:r})}):null]})]})]},n.oldTradeId)})})]})]}),e.jsx(_t,{children:e.jsx(ve,{title:"faq.title",entries:Mt})}),e.jsx(St,{children:e.jsxs(It,{children:[e.jsxs("div",{children:[e.jsxs(Lt,{children:[e.jsx(be,{})," ",z.toLocaleString()]}),e.jsx(Tt,{children:i("importListings.selectedSummary",{count:x.length,usd:N(z).toFixed(2)})})]}),e.jsx(zt,{}),e.jsx(At,{variant:"purple",disabled:x.length===0,onClick:()=>T(M(x)),children:i("importListings.listAll",{count:x.length})})]})}),b&&a?e.jsx(Oe,{queue:b,session:a,onClose:()=>T(null),onDone:j}):null]})}export{Yt as ImportListings};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{i as f,b as l,a as ee}from"./lit-element-B3y9oplH.js";import{n as c,o as w,r as u,a as Ii}from"./class-map-CxwNmq0D.js";import{d as v,r as _,e as W}from"./index-
|
|
1
|
+
import{i as f,b as l,a as ee}from"./lit-element-B3y9oplH.js";import{n as c,o as w,r as u,a as Ii}from"./class-map-CxwNmq0D.js";import{d as v,r as _,e as W}from"./index-ICnT6kXr.js";import{c as p,U as F}from"./index-9k1dQZMh.js";import"./index-Dj9eZjMG.js";import"./index-Pa51CfZf.js";import"./index-DI-LAVz5.js";import{O as m,C as d,L as Ee,q as E,b as y,M as P,E as C,t as me,o as b,R as h,d as D,S as A,k as x,l as ze,W as Fe,ak as Xt,aj as he,a3 as J,a1 as qi,z as I,am as tt,A as _i,F as Ki,D as Gi,y as Xi,T as ft,V as Yt,X as Qt,a9 as Yi,ao as Qi,Z as Bt,ap as Ji}from"./W3MFrameProviderSingleton-BzvCvXax.js";import"./index-DkFeq1NQ.js";import{W as zs,a as Fs}from"./index-Byc0pXfs.js";import"./index-B_Lx9HeJ.js";import"./index-DeWbFeXm.js";import"./index-BtR-ASCb.js";import{au as S}from"./NetworkUtil-EoWQDMpU.js";import{H as Jt}from"./HelpersUtil-7Aopq74x.js";import{n as Zi}from"./index-BEtNsXEG.js";import{E as Q}from"./ExchangeController-Dv_sOoYV.js";import"./index-CCVqnHck.js";import"./index-CrnyOt4u.js";import"./index-DY_p3BO1.js";import{M as mt}from"./MathUtil-BGCe3rZ3.js";import"./index-DcFYf1M_.js";import{e as Zt,n as ei}from"./ref-BsAZ42-h.js";import"./index-CHwaoGWX.js";import"./index-Dz98iCbS.js";import"./index-c1Smsb2X.js";import"./index-CYmJEkim.js";import{O as bt}from"./index-Cyw6hStH.js";import{e as en}from"./index-CuQBnNj3.js";import"./index-Bymdy1ge.js";import"./index-BSv-QHZ0.js";import{N as tn}from"./NavigationUtil-DmfK5sOV.js";import"./index-D_VYAhm8.js";import"./index-DyLYzoRb.js";import"./react-DehiWSvs.js";import"./sentry-973sfbO9.js";import"./dcl-schemas-Dr9BTjb7.js";import"./ethers-CtNGBird.js";import"./intl-CBcMB1D2.js";import"./index-DMGubkbp.js";import"./events-DQ172AOg.js";import"./index-jFSqsnQs.js";import"./index-DI-3MKLG.js";import"./index-nibyPLVP.js";import"./index-CU7zlhMP.js";import"./index.es-D9hMCl3e.js";import"./browser-ponyfill-I5CKtKME.js";import"./ConstantsUtil-Di3dRDAF.js";import"./async-directive-BRxn_Py3.js";import"./browser-CqsLPmeb.js";const nn=v`
|
|
2
2
|
:host {
|
|
3
3
|
display: block;
|
|
4
4
|
}
|