@dcl/shop 0.7.3-30998099552.commit-f7fa6e3 → 0.7.3-31002809274.commit-68e2004
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-DRU10G0s.js +381 -0
- package/_assets/{AnimatedBackground-xf-j6J30.js → AnimatedBackground-BPNjZnHs.js} +1 -1
- package/_assets/{Assets-B9oJjG4n.js → Assets-B9gu6JnA.js} +13 -13
- package/_assets/{Assets.styles-BYFeJKPe.js → Assets.styles-DiCnesUC.js} +1 -1
- package/_assets/{Authorizations-D5dl-34t.js → Authorizations-BQzDrrA_.js} +1 -1
- package/_assets/{Cart-BU0E1kp3.js → Cart-BHkq2PkV.js} +2 -2
- package/_assets/{CircularProgress-ogI8F2v0.js → CircularProgress-CQb8cfhx.js} +1 -1
- package/_assets/{Collection--mvsoerx.js → Collection-DvApaJVE.js} +1 -1
- package/_assets/{CollectionCarousel-DVB8xJEb.js → CollectionCarousel-3Ff7fmHM.js} +6 -6
- package/_assets/{Creator-BuMUJ_0H.js → Creator-phXYNMmi.js} +6 -6
- package/_assets/{ErrorNotice-CmE8Bw2a.js → ErrorNotice-Biw7jacR.js} +1 -1
- package/_assets/{ExchangeController-ptA9AGiC.js → ExchangeController-j0EaU5ur.js} +1 -1
- package/_assets/{Faq-mPkwptjW.js → Faq-CYehw8Xd.js} +1 -1
- package/_assets/{GetCredits-kPP7odsJ.js → GetCredits-B5t5SiEY.js} +15 -15
- package/_assets/{Grow-2tBlbsbN.js → Grow-BbO3nPWz.js} +1 -1
- package/_assets/{HelpersUtil-BhMvvX5p.js → HelpersUtil-Bm2I2riv.js} +1 -1
- package/_assets/{ItemDetail-BBfILay8.js → ItemDetail-D-C6pe19.js} +333 -333
- package/_assets/LazyEmoteControls-BxXOD9g-.js +2 -0
- package/_assets/{LoadMore-CPMkfBBp.js → LoadMore-DMhOO7Nq.js} +1 -1
- package/_assets/{ManaPricingBanner.styles-C9hjNdio.js → ManaPricingBanner.styles-D0ksfubq.js} +1 -1
- package/_assets/{MyAssets-CkicCdty.js → MyAssets-pppiT6fl.js} +1 -1
- package/_assets/{MyFavorites-CRs6BUTO.js → MyFavorites-B8NF0NVk.js} +1 -1
- package/_assets/{NotFound-DbXDxLPP.js → NotFound-ySn_lkJ7.js} +1 -1
- package/_assets/{NotificationsBell-CeytqPp_.js → NotificationsBell-Mz-RqcfB.js} +1 -1
- package/_assets/{OutfitDetail-DhAPMkez.js → OutfitDetail-dru3bX0e.js} +1 -1
- package/_assets/{OutfitPreview-C08Jf7mn.js → OutfitPreview-RhS9kvYc.js} +1 -1
- package/_assets/{OutfitStudio-Bpg_2rBv.js → OutfitStudio-B-MkV2Nw.js} +1 -1
- package/_assets/{StoreSettings-CkHNFMS9.js → StoreSettings-DMlPpaxq.js} +1 -1
- package/_assets/{Success-CXkJDsIM.js → Success-DGiWm-dB.js} +1 -1
- package/_assets/{SwapController-CNP2nUqB.js → SwapController-DC-RT5b2.js} +1 -1
- package/_assets/{Tooltip-Ca1xi18J.js → Tooltip-DIS1AoSo.js} +1 -1
- package/_assets/{TradeService-pK5iIjeI.js → TradeService-CW14jFoK.js} +1 -1
- package/_assets/{W3MFrameProviderSingleton-FyX1W-1Y.js → W3MFrameProviderSingleton-Bn14TsAB.js} +3 -3
- package/_assets/{WebCryptoP256-lGIWaHSV.js → WebCryptoP256-DN6bPKJH.js} +1 -1
- package/_assets/{authorizations-C776tgTp.js → authorizations-BJlchz9P.js} +1 -1
- package/_assets/{basic-B5CZMUy4.js → basic-Db4hGFC-.js} +1 -1
- package/_assets/{biconomy-BcosBJNp.js → biconomy-yx9AAdUi.js} +1 -1
- package/_assets/{builder-CsxZ_GQ8.js → builder-Db8kqGSp.js} +1 -1
- package/_assets/{buy-BZ3zKYDO.js → buy-DHqPe2Je.js} +1 -1
- package/_assets/{buy-gasless-eYZufj8D.js → buy-gasless-CvTXQoUY.js} +1 -1
- package/_assets/{categories-Bhx5AiD0.js → categories-BMCKe30t.js} +1 -1
- package/_assets/{ccip-DmdM_5D9.js → ccip-DSJk995u.js} +1 -1
- package/_assets/{ccip-DrUklMi-.js → ccip-kyphTkC8.js} +1 -1
- package/_assets/{collectionPage.styles-CJq9b5Dn.js → collectionPage.styles-Dmgr28GG.js} +1 -1
- package/_assets/{controller-C-sKqF34.js → controller-BxSHfLz5.js} +2 -2
- package/_assets/{core-CriR9cGd.js → core-FJbXZcd9.js} +4 -4
- package/_assets/{createSvgIcon-BntPICgm.js → createSvgIcon-BVj0atRc.js} +1 -1
- package/_assets/{custom-FzLs4-KY.js → custom-8lpWNVH1.js} +1 -1
- package/_assets/{data-capture-Du1PLWpA.js → data-capture-ZsoqccWO.js} +1 -1
- package/_assets/{email-C0nzy1sI.js → email-TmqKH5rK.js} +1 -1
- package/_assets/{embedded-wallet-CVZ_vFlC.js → embedded-wallet-D8AjSmuZ.js} +1 -1
- package/_assets/{emotion-styled.browser.esm-CJtlF7Gn.js → emotion-styled.browser.esm-B1CecDgm.js} +1 -1
- package/_assets/{engine-Cn3nxRwN.js → engine-CTKRqGmj.js} +1 -1
- package/_assets/{errors-C-i7myPZ.js → errors-CCUK8cBW.js} +1 -1
- package/_assets/{estimate-l1-fee-Dpb0Bl0S.js → estimate-l1-fee-DpS-XaOF.js} +1 -1
- package/_assets/{execute-wHrMFCta.js → execute-Bz7pyjbp.js} +2 -2
- package/_assets/{features-5HsC8l6J.js → features-W9H6sjcF.js} +1 -1
- package/_assets/{fetchTokenMetadata-MnlAMPaL.js → fetchTokenMetadata-COd7SGVt.js} +2 -2
- package/_assets/{field.styles-BIjk7dlh.js → field.styles-CdYHVXFs.js} +1 -1
- package/_assets/{get-ecosystem-wallet-info-BtHiGyT4.js → get-ecosystem-wallet-info-CMuxAyIB.js} +1 -1
- package/_assets/{getBalance-BFjfr7yO.js → getBalance-DQubrLKJ.js} +1 -1
- package/_assets/{getNFT-T59O6JYG.js → getNFT-BNY2enZa.js} +1 -1
- package/_assets/{getNFT-zUEFFArE.js → getNFT-CSRtW3h-.js} +1 -1
- package/_assets/{grid.styles-CKmGs0rK.js → grid.styles-DH_ZretM.js} +1 -1
- package/_assets/{hashTypedData-EoQ_H9e4.js → hashTypedData-BA0RWbmG.js} +1 -1
- package/_assets/{hashTypedData-CCw0LbC7.js → hashTypedData-Dqqcre1R.js} +1 -1
- package/_assets/{in-app-BpY0Ul44.js → in-app-BvYCjHKb.js} +1 -1
- package/_assets/{in-app-wallet-calls-_O1gpzp1.js → in-app-wallet-calls-CxpZt-vc.js} +1 -1
- package/_assets/{index-CzGc0rp2.js → index-4grC8vnQ.js} +16 -16
- package/_assets/{index-CS3o6W8g.js → index-B91rfq1c.js} +1 -1
- package/_assets/{index-CQi6H5fT.js → index-BDuns4Lg.js} +1 -1
- package/_assets/{index-BF0Lz5Vl.js → index-BGOWhyHo.js} +3 -3
- package/_assets/{index-DlhjzwF5.js → index-BJNlk-SI.js} +1 -1
- package/_assets/{index-DGpSfYbI.js → index-BfAg05xe.js} +1 -1
- package/_assets/{index-BCeaifQW.js → index-BiAcVSuI.js} +1 -1
- package/_assets/{index-BB2qMLiD.js → index-BjtZr1Rk.js} +1 -1
- package/_assets/{index-B64uIzbz.js → index-Bl9hxKO2.js} +1 -1
- package/_assets/{index-Cc8-wJI-.js → index-BmtMCuH8.js} +1 -1
- package/_assets/{index-DM4Lw-b2.js → index-BogeqjBp.js} +1 -1
- package/_assets/{index-CrkAzP5M.js → index-BpsXe6IR.js} +1 -1
- package/_assets/{index-D9BXwvii.js → index-Bqt5iJBo.js} +1 -1
- package/_assets/{index-kGUEZDex.js → index-BsEcuD0O.js} +2 -2
- package/_assets/{index-C2wq-XJv.js → index-Bw6vREOp.js} +2 -2
- package/_assets/{index-vw2DCGCa.js → index-C-IYvYAw.js} +1 -1
- package/_assets/{index-0HOZkX4v.js → index-C0jkYp6u.js} +1 -1
- package/_assets/{index-GFGo0kL7.js → index-CN8Fwkg_.js} +2 -2
- package/_assets/{index-DlNMwZA0.js → index-CNDHrB-N.js} +1 -1
- package/_assets/{index-DqNNmcTE.js → index-CRKbJ2OP.js} +1 -1
- package/_assets/{index-DUGnqqvn.js → index-CTvMZ0av.js} +1 -1
- package/_assets/{index-51jxmcXj.js → index-CefOdSuo.js} +1 -1
- package/_assets/{index-DQOXE4dt.js → index-Cfy91mWw.js} +1 -1
- package/_assets/{index-CME7Vo6o.js → index-Ch2NaYC8.js} +1 -1
- package/_assets/{index-D_vtI9c4.js → index-Cj_FIJ6O.js} +1 -1
- package/_assets/{index-DYmEn4kI.js → index-CkZ39O4D.js} +1 -1
- package/_assets/{index-DnlGx8cM.js → index-Cr_vaK1b.js} +1 -1
- package/_assets/{index-BRr_EKCC.js → index-CtwVaZjN.js} +1 -1
- package/_assets/{index-D7izat5n.js → index-CuJbAAma.js} +1 -1
- package/_assets/index-CxlN6NCL.js +519 -0
- package/_assets/{index-Dg35ZiF4.js → index-DAPvhTCu.js} +1 -1
- package/_assets/{index-B9oBk5HA.js → index-DBGfpyip.js} +1 -1
- package/_assets/{index-DZMkGxa1.js → index-DBkJBt2j.js} +2 -2
- package/_assets/{index-CoGa5SSH.js → index-DBwuf2dy.js} +1 -1
- package/_assets/{index-Dv_iHgrg.js → index-DDe_P04W.js} +1 -1
- package/_assets/{index-sTbvrDBI.js → index-DFAt726n.js} +1 -1
- package/_assets/{index-B5t_uF6K.js → index-DFCfS17C.js} +1 -1
- package/_assets/{index-jOzdgfRR.js → index-DIYqluqo.js} +3 -3
- package/_assets/{index-Ca53lSVK.js → index-DLrjz4Tx.js} +1 -1
- package/_assets/{index-BmNvCSoW.js → index-DOPim6Hs.js} +1 -1
- package/_assets/{index-DPS0nlZt.js → index-DYoWqsAK.js} +1 -1
- package/_assets/{index-BuJNwdV6.js → index-DZOsxVd8.js} +1 -1
- package/_assets/{index-GWS5y9G8.js → index-DhygeoM5.js} +3 -3
- package/_assets/{index-ClfJzt8j.js → index-DsSWYz9j.js} +1 -1
- package/_assets/{index-JQtE4iI3.js → index-DtS2WMUT.js} +1 -1
- package/_assets/{index-DV8-2bkd.js → index-Lb7odxFK.js} +1 -1
- package/_assets/{index-CsqetYWp.js → index-Vcg4k-hF.js} +1 -1
- package/_assets/{index-CdmR3BSr.js → index-WguW8tuP.js} +1 -1
- package/_assets/{index-i1mgkVNo.js → index-Wj_hpWlf.js} +1 -1
- package/_assets/{index-C7-Ojv7c.js → index-jjnXqv_1.js} +1 -1
- package/_assets/{index-yDlokE4U.js → index-o5wXH6k1.js} +1 -1
- package/_assets/{index-CfiGBXge.js → index-vZmAzias.js} +1 -1
- package/_assets/{index.es-B7FTFVs9.js → index.es-DRPff5jo.js} +1 -1
- package/_assets/{index.es-D3zyWO6O.js → index.es-Db0bppXh.js} +4 -4
- package/_assets/{index.es-Wz_yp4qN.js → index.es-vm3av0ZU.js} +1 -1
- package/_assets/{localBatchGatewayRequest-IY4oys4m.js → localBatchGatewayRequest-BT4bgYX3.js} +1 -1
- package/_assets/{networks-BebUw28a.js → networks-BjCyq87b.js} +1 -1
- package/_assets/{onramp-D2PuULiP.js → onramp-MxLeUwo5.js} +1 -1
- package/_assets/{openzeppelin-BtInW1Ne.js → openzeppelin-NiqHvD0o.js} +1 -1
- package/_assets/{parseNft-BbiDwhFE.js → parseNft-DXKUZt78.js} +2 -2
- package/_assets/{parseSignature-VUChb_Hq.js → parseSignature-CHSFJk_c.js} +1 -1
- package/_assets/{parseSignature-CZ5Ggg8p.js → parseSignature-JjWPQjiQ.js} +3 -3
- package/_assets/{passkeys-CrgnuTyv.js → passkeys-Dp5NPgWw.js} +1 -1
- package/_assets/{pay-with-exchange-DUrkH5ym.js → pay-with-exchange-CxuzzGwq.js} +1 -1
- package/_assets/{qr-overlay-ijYN5Vs4.js → qr-overlay-C29AmkL1.js} +1 -1
- package/_assets/{receive-Df4kzGm0.js → receive-BSxHY6Lk.js} +1 -1
- package/_assets/{resolveImplementation-DoFz-4vS.js → resolveImplementation-DBwFo6J8.js} +1 -1
- package/_assets/{rpc-BiHC0M3Z.js → rpc-B7hkwqRp.js} +1 -1
- package/_assets/{secp256k1-Ba1R5SHp.js → secp256k1-80kUQxfu.js} +1 -1
- package/_assets/{secp256k1-Hu9Q-jih.js → secp256k1-BmlNWGtD.js} +1 -1
- package/_assets/{secp256k1-CqT0-B8H.js → secp256k1-dBN4ORWU.js} +1 -1
- package/_assets/{send-Ca_D-CGF.js → send-C63T079L.js} +1 -1
- package/_assets/{send-batch-transaction-D5lSDwIa.js → send-batch-transaction-BkwLmlea.js} +1 -1
- package/_assets/{send-eip712-transaction-BsmSzzO5.js → send-eip712-transaction-6nm-uQAt.js} +2 -2
- package/_assets/{send-gasless-transaction-DzCl7yj5.js → send-gasless-transaction-ASekpRez.js} +2 -2
- package/_assets/{send-transaction-D_KZubhG.js → send-transaction-Bzhp2g8b.js} +2 -2
- package/_assets/{sendMetaTransaction-DcJMER59.js → sendMetaTransaction-BATUzHIf.js} +1 -1
- package/_assets/{sendRawTransaction-5I-l2w6Z.js → sendRawTransaction-_Kv849f3.js} +3 -3
- package/_assets/{serializeTransaction-a4pMp0ix.js → serializeTransaction-ZzhlS1TB.js} +1 -1
- package/_assets/{session-proposal-CjeffhTm.js → session-proposal-DzR3pRyS.js} +1 -1
- package/_assets/{session-request-KYwaaBai.js → session-request-VXo9pQwV.js} +2 -2
- package/_assets/{signing-BPM_yuD2.js → signing-CGrYz3PN.js} +3 -3
- package/_assets/{socials-CyoLEAYb.js → socials-B-JrWB2l.js} +1 -1
- package/_assets/styled-gTPQAN-Y.js +9 -0
- package/_assets/{swaps-CHWvOItb.js → swaps-CyAk4mTe.js} +1 -1
- package/_assets/{thirdweb-B3GtfZBZ.js → thirdweb-8szcRqMp.js} +3 -3
- package/_assets/{to-serializable-transaction-BCzBTrGx.js → to-serializable-transaction-CF8YxIRs.js} +2 -2
- package/_assets/{trade-encoding-Dg6aX8Te.js → trade-encoding-dpFoczNW.js} +1 -1
- package/_assets/{transactionReceipt-9LyDGJEz.js → transactionReceipt-CGVPV54W.js} +1 -1
- package/_assets/{transactions-YKwAIvIG.js → transactions-BIRi6SwZ.js} +1 -1
- package/_assets/{useCreditPacks-DsT6A2e-.js → useCreditPacks-B-X7zfCn.js} +1 -1
- package/_assets/{useImportable-CvtcuX0v.js → useImportable-C11MUaBr.js} +1 -1
- package/_assets/{useInfiniteGrid-BiMca1S0.js → useInfiniteGrid-6IGMMT5_.js} +1 -1
- package/_assets/{useTheme-BI7R38Jr.js → useTheme-BwoD3vEY.js} +1 -1
- package/_assets/{verifyHash-BsfyvwnN.js → verifyHash-C5CdkBh3.js} +1 -1
- package/_assets/{w3m-modal-OMDv8WwL.js → w3m-modal-B3F6Mnna.js} +1 -1
- package/_assets/{w3m-modal-Dv-jrE6G.js → w3m-modal-B3GHykWz.js} +1 -1
- package/_assets/{wait-for-tx-receipt-D5ZFHFzh.js → wait-for-tx-receipt-C_FjDUYj.js} +1 -1
- package/_assets/{wallets-NAyG3Q1E.js → wallets-DzQ1vri5.js} +5 -5
- package/_assets/{web-connector-5UlEROZA.js → web-connector-B4iFaMmt.js} +3 -3
- package/_assets/{writeContract-BOezSMv9.js → writeContract-DaZaDo8I.js} +1 -1
- package/_assets/{zoraTestnet-CsqEhrXT.js → zoraTestnet-W4T_ajaY.js} +1 -1
- package/index.html +11 -11
- package/package.json +2 -2
- package/_assets/Activity-CcCu8Od6.js +0 -384
- package/_assets/LazyEmoteControls-8b5UZhSs.js +0 -2
- package/_assets/index-BqhVw7jY.js +0 -476
- package/_assets/styled-DxV2l543.js +0 -9
|
@@ -1,476 +0,0 @@
|
|
|
1
|
-
import{j as e,d as J,r as x,L as X}from"./react-DehiWSvs.js";import{t as q,s as i,o as Z,v as ee,d as n,e as Q,B as $,w as U,S as te,b4 as N,A as B,K as ie,k as ne,x as se,ag as ae,I as F,a4 as re,a7 as oe,a8 as de,bH as le,z as ce}from"./index-CzGc0rp2.js";import{c as pe,i as he,R as ge,u as xe}from"./useImportable-CvtcuX0v.js";import{S as me,C as ue,b as fe}from"./ManaPricingBanner.styles-C9hjNdio.js";import{F as we}from"./Faq-mPkwptjW.js";import{C as _}from"./field.styles-BIjk7dlh.js";import"./sentry-973sfbO9.js";import"./dcl-schemas-Dr9BTjb7.js";import"./ethers-CtNGBird.js";import"./intl-CBcMB1D2.js";import"./buy-BZ3zKYDO.js";import"./authorizations-C776tgTp.js";import"./sendMetaTransaction-DcJMER59.js";import"./trade-encoding-Dg6aX8Te.js";function W({size:s=12,...l}){return e.jsx("svg",{viewBox:"0 0 20 20",width:s,height:s,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:ye,z:be}=q,ve=Z`
|
|
2
|
-
0% {
|
|
3
|
-
transform: scale(0);
|
|
4
|
-
opacity: 0;
|
|
5
|
-
}
|
|
6
|
-
100% {
|
|
7
|
-
transform: scale(1);
|
|
8
|
-
opacity: 1;
|
|
9
|
-
}
|
|
10
|
-
`,D=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: ${be.overlay};
|
|
19
|
-
`,V=i.div`
|
|
20
|
-
background: ${C.white};
|
|
21
|
-
border-radius: ${ye.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=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 je=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
|
-
`,ke=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: ${ve} 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:$e,radius:Ce}=q,Se=i(V)`
|
|
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
|
-
`,Le=i.div`
|
|
90
|
-
height: 100%;
|
|
91
|
-
width: 0;
|
|
92
|
-
background: ${$e.amethyst};
|
|
93
|
-
border-radius: 999px;
|
|
94
|
-
transition: width 0.45s ease;
|
|
95
|
-
`,Te=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
|
-
`,ze=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
|
-
`,Ae=i.span`
|
|
128
|
-
width: 34px;
|
|
129
|
-
height: 34px;
|
|
130
|
-
border-radius: ${Ce.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
|
-
`,Pe=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
|
-
`,Ee=i.span`
|
|
161
|
-
color: ${u.muted2};
|
|
162
|
-
font-weight: 600;
|
|
163
|
-
`,E=i.span`
|
|
164
|
-
color: ${u.muted};
|
|
165
|
-
font-weight: 600;
|
|
166
|
-
`,Qe=i.span`
|
|
167
|
-
width: 14px;
|
|
168
|
-
height: 14px;
|
|
169
|
-
margin: 0;
|
|
170
|
-
border-width: 2px;
|
|
171
|
-
`,Ne=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
|
-
`,qe=i.p`
|
|
181
|
-
margin: 12px 0 0;
|
|
182
|
-
`;function Be(s,l){switch(s==null?void 0:s.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:s.attempt,of:s.of});default:return l?n("migrate.statusConfirm"):n("migrate.statusAdding")}}function Fe({queue:s,session:l,onClose:g,onDone:v}){const S=J(),w=ee(l.providerType),[M,I]=x.useState(()=>s.map(()=>null)),[j,L]=x.useState(null),[c,f]=x.useState(()=>s.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(s.map(t=>t.item),l.address).then(t=>{!r&&t&&L({approvals:t.approvals,total:t.total})}).catch(()=>{}),(async()=>{for(let t=0;t<s.length;t++){if(r)return;f(a=>a.map((o,h)=>h===t?"active":o));try{await he(s[t].item,s[t].priceCredits,l,{onPhase:a=>{r||I(o=>o.map((h,b)=>b===t?a:h))}}),te("Shop Migrated Listing",{item_id:s[t].item.itemId??s[t].item.oldTradeId??null,contract_address:s[t].item.contractAddress,new_price_credits:s[t].priceCredits,new_price_usd:N(s[t].priceCredits)}),r||f(a=>a.map((o,h)=>h===t?"done":o))}catch(a){if(a instanceof ge)B(a,{flow:"import_listing",step:"relist",itemId:s[t].item.itemId??s[t].item.oldTradeId}),r||f(o=>o.map((h,b)=>b===t?"unlisted":h));else{const o=a,h=o.code===4001||/reject|denied|cancel/i.test(o.message??"");h||B(a,{flow:"import_listing",itemId:s[t].item.itemId??s[t].item.oldTradeId}),r||f(b=>b.map((Y,G)=>G===t?h?"skipped":"failed":Y))}}}r||T("finished")})(),()=>{r=!0}},[]);const y=c.filter(r=>r==="done").length,z=c.findIndex(r=>r==="active"),P=Math.round(c.filter(r=>r!=="pending"&&r!=="active").length/s.length*100);function R(){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(D,{role:"presentation",children:e.jsxs(V,{"data-success":!0,role:"dialog","aria-modal":"true",children:[e.jsx(ke,{"aria-hidden":!0,children:e.jsx(W,{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:Q.name}):n("migrate.noneListed"),r>0?" "+n("migrate.skippedSummary",{count:r}):"",p>0?" "+n("migrate.unlistedSummary",{count:p}):""]}),e.jsxs(je,{"data-actions":!0,children:[e.jsx($,{variant:"ghost",onClick:R,children:n("getCredits.done")}),p>0?e.jsx($,{variant:"purple",onClick:()=>{v(),g(),S("/my-items")},children:n("migrate.goToMyAssets")}):y>0?e.jsx($,{variant:"purple",onClick:()=>{v(),g(),S("/items")},children:n("migrate.viewInShop")}):null]})]})})}return e.jsx(D,{role:"presentation",children:e.jsxs(Se,{"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:[w?n("migrate.subConfirm"):n("migrate.subManaged")," ",z>=0?n("migrate.progressCount",{current:z+1,total:s.length}):""]}),e.jsx(Ie,{children:e.jsx(Le,{style:{width:`${P}%`}})}),e.jsx(Te,{children:s.map((r,p)=>e.jsxs(ze,{"data-status":c[p],children:[e.jsx(Ae,{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(Pe,{children:[e.jsx(U,{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(Qe,{className:"spinner","aria-hidden":!0})," ",Be(M[p],w)]}):c[p]==="done"?e.jsx(Ne,{children:e.jsx(W,{})}):c[p]==="skipped"?e.jsx(E,{children:n("migrate.statusSkipped")}):c[p]==="failed"?e.jsx(E,{children:n("migrate.statusFailed")}):c[p]==="unlisted"?e.jsx(E,{title:n("migrate.unlistedTooltip"),children:n("migrate.statusUnlisted")}):e.jsx(Ee,{children:n("migrate.statusWaiting")})})]},r.item.oldTradeId))}),e.jsx(qe,{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:_e,media:We,radius:A}=q,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: ${_e.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
|
-
`,et=i.div`
|
|
254
|
-
display: flex;
|
|
255
|
-
flex-direction: column;
|
|
256
|
-
gap: 8px;
|
|
257
|
-
padding: 8px 12px 0;
|
|
258
|
-
`,tt=i(me)`
|
|
259
|
-
font-size: 14px;
|
|
260
|
-
line-height: 1.334;
|
|
261
|
-
color: ${d.text2};
|
|
262
|
-
`,it=i.span`
|
|
263
|
-
flex: none;
|
|
264
|
-
display: grid;
|
|
265
|
-
place-items: center;
|
|
266
|
-
width: 20px;
|
|
267
|
-
height: 20px;
|
|
268
|
-
border-radius: ${A.pill};
|
|
269
|
-
background: ${d.brandViolet};
|
|
270
|
-
font-weight: 600;
|
|
271
|
-
font-size: 12px;
|
|
272
|
-
line-height: 1.6;
|
|
273
|
-
color: ${d.white};
|
|
274
|
-
`,nt=i.div`
|
|
275
|
-
display: flex;
|
|
276
|
-
flex-direction: column;
|
|
277
|
-
gap: 4px;
|
|
278
|
-
`,st=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
|
-
`,O=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
|
-
`,rt=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: ${A.card};
|
|
305
|
-
background: ${d.white};
|
|
306
|
-
overflow: hidden;
|
|
307
|
-
transition: opacity 0.25s ease;
|
|
308
|
-
|
|
309
|
-
&[data-off] {
|
|
310
|
-
opacity: 0.5;
|
|
311
|
-
}
|
|
312
|
-
`,ot=i.div`
|
|
313
|
-
flex: none;
|
|
314
|
-
display: flex;
|
|
315
|
-
align-items: center;
|
|
316
|
-
`,dt=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
|
-
`,lt=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
|
-
`,ct=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
|
-
`,pt=i.div`
|
|
351
|
-
display: flex;
|
|
352
|
-
align-items: flex-end;
|
|
353
|
-
gap: 4px;
|
|
354
|
-
`,H=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
|
-
`,ht=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
|
-
`,gt=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: ${A.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
|
-
`,xt=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
|
-
`,mt=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
|
-
`,ut=i.span`
|
|
428
|
-
font-weight: 300;
|
|
429
|
-
font-size: 10px;
|
|
430
|
-
color: ${d.muted};
|
|
431
|
-
`,ft=i.div`
|
|
432
|
-
height: 101px;
|
|
433
|
-
border: 1px solid transparent;
|
|
434
|
-
border-radius: ${A.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
|
-
`,wt=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
|
-
`,yt=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
|
-
`,bt=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
|
-
`,vt=i.div`
|
|
467
|
-
font-size: 13px;
|
|
468
|
-
color: ${d.muted};
|
|
469
|
-
`,jt=i.span`
|
|
470
|
-
flex: 1 1 auto;
|
|
471
|
-
`,kt=i($)`
|
|
472
|
-
flex: none;
|
|
473
|
-
padding: 13px 24px;
|
|
474
|
-
`,$t=i.div`
|
|
475
|
-
padding: 16px 12px 0;
|
|
476
|
-
`,Ct=[{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"}],St="https://docs.decentraland.org";function It(s){try{return le(BigInt(s))}catch{return null}}function Wt(){const{session:s}=ne(),l=se(),{items:g,isLoading:v}=xe(),[S,w]=x.useState({}),[M,I]=x.useState(new Set),[j,L]=x.useState(null);x.useEffect(()=>{g.length&&w(t=>{const a={...t};for(const o of g)a[o.oldTradeId]==null&&(a[o.oldTradeId]=o.suggestedCredits);return a})},[g]);const c=t=>!M.has(t),f=t=>S[t.oldTradeId]??t.suggestedCredits,m=g.filter(t=>c(t.oldTradeId)),T=m.reduce((t,a)=>t+f(a),0),k=g.length>0&&m.length===g.length,y=m.length>0&&!k;function z(t,a){const o=a.replace(/[^\d]/g,"");w(h=>({...h,[t]:o===""?0:parseInt(o,10)}))}function P(t){I(a=>{const o=new Set(a);return o.has(t)?o.delete(t):o.add(t),o})}function R(){I(k?new Set(g.map(t=>t.oldTradeId)):new Set)}function r(t){return t.map(a=>({item:a,priceCredits:Math.max(1,f(a))}))}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:X,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:ae(Q.name)})}),e.jsxs(Xe,{href:St,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(et,{children:[e.jsxs(tt,{"data-testid":"import-progress",children:[e.jsx(it,{"data-testid":"import-count",children:g.length}),n("importListings.updatePricing")]}),e.jsxs(nt,{children:[e.jsxs(st,{children:[e.jsx(O,{children:e.jsx(_,{type:"checkbox",checked:k,ref:t=>{t&&(t.indeterminate=y)},"data-indeterminate":y,onChange:R,"data-testid":"import-select-all","aria-label":n("importListings.selectAllAria")})}),n("importListings.selectAll")]}),e.jsx(at,{children:v?Array.from({length:4}).map((t,a)=>e.jsx(ft,{},a)):g.map(t=>{const a=f(t),o=re({...t,wearableCategory:t.wearableCategory??void 0}),h=It(t.manaWei);return e.jsxs(rt,{"data-off":c(t.oldTradeId)?void 0:!0,children:[e.jsxs(ot,{children:[e.jsx(O,{children:e.jsx(_,{type:"checkbox",checked:c(t.oldTradeId),onChange:()=>P(t.oldTradeId),"data-testid":"import-row-check","aria-label":n("importListings.includeItem",{name:t.name})})}),e.jsx(dt,{children:t.thumbnail?e.jsx("img",{src:t.thumbnail,alt:""}):null})]}),e.jsxs(lt,{children:[e.jsx(ct,{title:t.name,children:t.name||n("importListings.itemFallback")}),e.jsxs(pt,{children:[e.jsx(H,{"data-variant":"rarity",style:{background:de(t.rarity),color:oe(t.rarity)},children:t.rarity}),o?e.jsx(H,{"data-variant":"icon",children:e.jsx(F,{name:o,"aria-hidden":!0})}):null]})]}),e.jsxs(ht,{children:[e.jsxs(gt,{children:[e.jsx(U,{}),e.jsx(xt,{"data-testid":"imp-price-input",inputMode:"numeric",value:a.toLocaleString(),onChange:b=>z(t.oldTradeId,b.target.value),"aria-label":n("importListings.priceAria",{currency:Q.name,name:t.name})})]}),e.jsxs(mt,{children:[e.jsxs("span",{children:["$",N(a).toFixed(2)]}),h?e.jsx(ut,{children:n("importListings.wasMana",{amount:h})}):null]})]})]},t.oldTradeId)})})]})]}),e.jsx($t,{children:e.jsx(we,{title:"faq.title",entries:Ct})}),e.jsx(wt,{children:e.jsxs(yt,{children:[e.jsxs("div",{children:[e.jsxs(bt,{children:[e.jsx(fe,{})," ",T.toLocaleString()]}),e.jsx(vt,{children:n("importListings.selectedSummary",{count:m.length,usd:N(T).toFixed(2)})})]}),e.jsx(jt,{}),e.jsx(kt,{variant:"purple",disabled:m.length===0,onClick:()=>L(r(m)),children:n("importListings.listAll",{count:m.length})})]})}),j&&s?e.jsx(Fe,{queue:j,session:s,onClose:()=>L(null),onDone:p}):null]})}export{Wt 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-CzGc0rp2.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};
|