@dcl/shop 0.10.1-31040959942.commit-e9e6433 → 0.10.1-31047879016.commit-2c3846e
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-5KZahW4a.js +371 -0
- package/_assets/AnimatedBackground-CtA-lb0z.js +97 -0
- package/_assets/{Assets-UkGI952T.js → Assets-B-cgdG2V.js} +8 -8
- package/_assets/{Assets.styles-D1Vg-U1C.js → Assets.styles-CI8Un36f.js} +140 -132
- package/_assets/{Authorizations-B3yDMR41.js → Authorizations-94ctJx1t.js} +28 -26
- package/_assets/Cart-BNVSJOrw.js +707 -0
- package/_assets/{CircularProgress-CB62Wg9m.js → CircularProgress-CpjqStGb.js} +1 -1
- package/_assets/{Collection-CSv9R6xZ.js → Collection-CZJ9SSN3.js} +19 -19
- package/_assets/CollectionCarousel-DHOvuq0a.js +816 -0
- package/_assets/{Confetti-Blr9NSjA.js → Confetti-BTHehxYh.js} +1 -1
- package/_assets/{Creator-sh_sYH1o.js → Creator-vMhSn3Jg.js} +7 -7
- package/_assets/{ErrorNotice-CXsnDhEh.js → ErrorNotice-CpmhZUmE.js} +1 -1
- package/_assets/{ExchangeController-GIzn0xGk.js → ExchangeController-Bk_zMHVC.js} +1 -1
- package/_assets/{Faq-C0nCohQD.js → Faq-Bbk8h1Qk.js} +20 -14
- package/_assets/{GetCredits-CBLkNO-w.js → GetCredits-Dvf_riJZ.js} +114 -80
- package/_assets/{Grow-Nzyme9Oa.js → Grow-B3DyBqW4.js} +1 -1
- package/_assets/{HelpersUtil-D0wBF1PA.js → HelpersUtil-h6aaGDt3.js} +1 -1
- package/_assets/{ItemDetail-DZ3mEshJ.js → ItemDetail-oFomOkbt.js} +510 -480
- package/_assets/LazyEmoteControls-BdlpjPkr.js +2 -0
- package/_assets/{LoadMore-CKNE48ED.js → LoadMore-C9QaMyBo.js} +1 -1
- package/_assets/ManaPricingBanner.styles-MtBPxNv2.js +93 -0
- package/_assets/{MyAssets-Ble658vU.js → MyAssets-Bx9bW84W.js} +33 -33
- package/_assets/{MyFavorites-Qri7XFuW.js → MyFavorites-jhTRLOWx.js} +12 -11
- package/_assets/{NotFound-BnEiiuoJ.js → NotFound-y9wUvJSt.js} +1 -1
- package/_assets/{NotificationsBell-CXzlEnr9.js → NotificationsBell-BFMX1y3H.js} +1 -1
- package/_assets/{OutfitDetail-CL1Y8ii5.js → OutfitDetail-BfEl8ni7.js} +4 -4
- package/_assets/{OutfitPreview-DRqW1c5F.js → OutfitPreview-foX1l3Ho.js} +2 -2
- package/_assets/{OutfitStudio-DgL1kI47.js → OutfitStudio-CPQbAOhy.js} +1 -1
- package/_assets/{StoreSettings--R4i191j.js → StoreSettings-DxqpR3qG.js} +1 -1
- package/_assets/{Success-DApKfyee.js → Success-DiIlHKjo.js} +1 -1
- package/_assets/{SwapController-0aVdHfMW.js → SwapController-DzdjZRBH.js} +1 -1
- package/_assets/{Tooltip-B2qDq-8v.js → Tooltip-CXWXl43D.js} +1 -1
- package/_assets/{TradeService-COZXjCcV.js → TradeService-CGuEeH2R.js} +1 -1
- package/_assets/{W3MFrameProviderSingleton-BYmipTKt.js → W3MFrameProviderSingleton-DAG-EWFv.js} +3 -3
- package/_assets/{WebCryptoP256-Cid44am7.js → WebCryptoP256-BQdHu6KD.js} +1 -1
- package/_assets/{authorizations-dpp0OnHI.js → authorizations-Bbp82_V2.js} +1 -1
- package/_assets/{basic-An6X8Awg.js → basic-Cf3DJuRG.js} +1 -1
- package/_assets/{biconomy-CeZnHUNK.js → biconomy-D5_2I_rj.js} +1 -1
- package/_assets/{builder-Ce37-lC-.js → builder-CK5n6bEq.js} +1 -1
- package/_assets/{buy-Dgj0sRqb.js → buy-BjEPh7nk.js} +1 -1
- package/_assets/{buy-gasless-CYY_v3bj.js → buy-gasless-Bjj3XUsm.js} +1 -1
- package/_assets/{categories-KFHNUm7E.js → categories-BQHpVYif.js} +54 -54
- package/_assets/{ccip-8Mu0bgFv.js → ccip-B7LQbKA2.js} +1 -1
- package/_assets/{ccip-BsYdmRqX.js → ccip-C_76Sm3L.js} +1 -1
- package/_assets/collectionPage.styles-k2LmVKux.js +49 -0
- package/_assets/{controller-Cam05qfJ.js → controller-CjH--4wE.js} +2 -2
- package/_assets/{core-BdiPiyom.js → core-1ZzLkX5X.js} +4 -4
- package/_assets/{createSvgIcon-cAMuQ1mD.js → createSvgIcon-DcR4892_.js} +4 -4
- package/_assets/{custom-C7A-Vb1Q.js → custom-CW7Ai6OA.js} +1 -1
- package/_assets/{data-capture-COGpG9-r.js → data-capture-DGJOI5ie.js} +1 -1
- package/_assets/disposePreview-5vjiqVZ0.js +1 -0
- package/_assets/{email-WblN0-6I.js → email-BYO9_PSn.js} +1 -1
- package/_assets/{embedded-wallet-BDGaY-OT.js → embedded-wallet-Dc3ay_ju.js} +1 -1
- package/_assets/{emotion-styled.browser.esm-D7YX5KN0.js → emotion-styled.browser.esm-IjZkrRjv.js} +1 -1
- package/_assets/{engine-DjipK7B5.js → engine-eMP7KFCK.js} +1 -1
- package/_assets/{errors-CzBZCztT.js → errors-65NA3HkA.js} +1 -1
- package/_assets/{estimate-l1-fee-Bk8rxjZm.js → estimate-l1-fee-z4Cv9am6.js} +1 -1
- package/_assets/{execute-C4AIZjft.js → execute-Be5majZ7.js} +2 -2
- package/_assets/{features-Dz4wLY98.js → features-DDe58ejV.js} +1 -1
- package/_assets/{fetchTokenMetadata-DjPW-ayp.js → fetchTokenMetadata-BfT_0X0P.js} +2 -2
- package/_assets/{field.styles-BThVZLzX.js → field.styles-5b7RHcOk.js} +1 -1
- package/_assets/{get-ecosystem-wallet-info-DMVrxBpI.js → get-ecosystem-wallet-info-BgyWgmsX.js} +1 -1
- package/_assets/{getBalance-DeFn5Yjk.js → getBalance-EUbWLqWa.js} +1 -1
- package/_assets/{getNFT-iw9a-h4A.js → getNFT-CZQJk04I.js} +1 -1
- package/_assets/{getNFT-CRgzh5wf.js → getNFT-DqZaIP8J.js} +1 -1
- package/_assets/{grid.styles-U_Gpy1wT.js → grid.styles-r1HwM-dl.js} +1 -1
- package/_assets/{hashTypedData-9Zh9SRr-.js → hashTypedData-CdCzwjEg.js} +1 -1
- package/_assets/{hashTypedData-CqewBwVq.js → hashTypedData-DpsVzpmw.js} +1 -1
- package/_assets/hero-credits-mobile-C9Muog4T.webp +0 -0
- package/_assets/{in-app-DNl1emxp.js → in-app-OWTERGos.js} +1 -1
- package/_assets/{in-app-wallet-calls-CBy5UcNA.js → in-app-wallet-calls-x6rZUVft.js} +1 -1
- package/_assets/{index-CcihKRSf.js → index-5qpydkyU.js} +1 -1
- package/_assets/{index-BVDj7GJL.js → index-B-c3ctWE.js} +1 -1
- package/_assets/{index-BdQAMxgJ.js → index-B2Y5KUFQ.js} +2 -2
- package/_assets/{index-Bc0mTSPi.js → index-B4hWF9JI.js} +1 -1
- package/_assets/{index-Dd8eTuKB.js → index-BRs5WQ4y.js} +1 -1
- package/_assets/{index-Cmc0GHkA.js → index-BXmbcLjL.js} +1 -1
- package/_assets/index-BYP7oMPZ.css +1 -0
- package/_assets/{index-CjvMMH2k.js → index-BZbZm3_Z.js} +1 -1
- package/_assets/{index-C6rF-YrH.js → index-Bk5pG7hH.js} +1 -1
- package/_assets/{index-Dax05iV5.js → index-BoMcphCu.js} +1 -1
- package/_assets/{index-BIJiNaiS.js → index-By7bM2FO.js} +1 -1
- package/_assets/{index-xMSSxrHn.js → index-C3ZkN3yx.js} +1 -1
- package/_assets/{index-CHCVsh7P.js → index-C5Zmr-fp.js} +1 -1
- package/_assets/{index-5SMH4VL2.js → index-C5gU7v63.js} +1 -1
- package/_assets/{index-Kq5fobWt.js → index-C6dKNgrS.js} +1 -1
- package/_assets/{index-B7Rm4vXt.js → index-CAdngWZA.js} +1 -1
- package/_assets/{index-h--qqRrb.js → index-CDn28wqX.js} +1 -1
- package/_assets/{index-CJCxe5kr.js → index-CF1R6Wyc.js} +1 -1
- package/_assets/index-CGHLVlhr.js +622 -0
- package/_assets/{index-DT4Zi23l.js → index-CGXSS33-.js} +3 -3
- package/_assets/{index-CqJzKRxe.js → index-CIDeydPG.js} +2 -2
- package/_assets/{index-CU5QiUkb.js → index-CKAGCwTj.js} +1 -1
- package/_assets/{index-y3U1nB0H.js → index-CUHTRIp3.js} +3 -3
- package/_assets/{index-DgPfV4X0.js → index-Cabu_wkc.js} +1 -1
- package/_assets/{index-DM2dLJ-M.js → index-CdE95fkC.js} +1 -1
- package/_assets/{index-xLgJxfJy.js → index-CgbD_7CJ.js} +1 -1
- package/_assets/{index-DwrPmkl2.js → index-CzYkiikw.js} +1 -1
- package/_assets/{index-CpQbv3Zu.js → index-CzjezMlh.js} +1 -1
- package/_assets/{index-DtAsm8Nr.js → index-DB8U79VL.js} +1 -1
- package/_assets/{index-D3iRZfgO.js → index-DFIOoHDj.js} +1 -1
- package/_assets/{index-BwGtaRec.js → index-DIk7fUKo.js} +1 -1
- package/_assets/{index-C_r09vuw.js → index-DJn0-6QO.js} +1 -1
- package/_assets/{index-RHSCZ-t0.js → index-DMQGc1DU.js} +1 -1
- package/_assets/{index-DfIQCR2U.js → index-DN-GBsyH.js} +1 -1
- package/_assets/{index-DXURSM0-.js → index-DVr9P_sW.js} +1 -1
- package/_assets/index-DWnXUohj.js +1 -0
- package/_assets/{index-HQUcvKn4.js → index-Db-p3Vgn.js} +3 -3
- package/_assets/{index-m-SAK4uo.js → index-DcP4Kxjm.js} +1 -1
- package/_assets/{index-B0wdLudq.js → index-DhKtXpNk.js} +1 -1
- package/_assets/{index-ByPjVaiq.js → index-DrNZnytJ.js} +1 -1
- package/_assets/{index-DQ7Kosvv.js → index-DtNI9AcR.js} +3 -3
- package/_assets/{index-DhRx4LkD.js → index-Dvpm24my.js} +1 -1
- package/_assets/{index-Dqdf5xVB.js → index-DzKQAwwD.js} +1 -1
- package/_assets/{index-BC_qLj4b.js → index-DzWVwnl8.js} +1 -1
- package/_assets/{index-DO0NylVf.js → index-Gjpu_VUp.js} +1 -1
- package/_assets/index-HxLvOExR.js +3699 -0
- package/_assets/{index-BsZ1af_A.js → index-JQcdGKbC.js} +1 -1
- package/_assets/{index-D3qXchU2.js → index-OpuK1fx_.js} +1 -1
- package/_assets/{index-1tktbprD.js → index-U_j9NAbS.js} +1 -1
- package/_assets/{index-MPYM0LiN.js → index-WMiYz6IH.js} +1 -1
- package/_assets/{index-D6LfEXYp.js → index-bMtXusxB.js} +1 -1
- package/_assets/{index-BdkbjSWP.js → index-f--Xju7p.js} +1 -1
- package/_assets/{index-B3jctKqs.js → index-tXA64dlA.js} +2 -2
- package/_assets/{index.es-CLldxJUJ.js → index.es-B7e293JB.js} +1 -1
- package/_assets/{index.es-DGQjR0dR.js → index.es-DLwvz1xx.js} +4 -4
- package/_assets/{index.es-DqD9HkXC.js → index.es-DlR-IQtM.js} +1 -1
- package/_assets/{localBatchGatewayRequest-COpd6g60.js → localBatchGatewayRequest-cLQ4UydX.js} +1 -1
- package/_assets/{networks-ChmokwGp.js → networks-C5yX7tyx.js} +1 -1
- package/_assets/{onramp-BmIZ6r8P.js → onramp-CEYvaS9l.js} +1 -1
- package/_assets/{openzeppelin-CzypsJB4.js → openzeppelin-Cc2KhXuv.js} +1 -1
- package/_assets/{parseNft-CydF3Edv.js → parseNft-YbkZLHPa.js} +2 -2
- package/_assets/{parseSignature-BeoYj8uB.js → parseSignature-BHOWaqkR.js} +1 -1
- package/_assets/{parseSignature-u2B-ofRt.js → parseSignature-Dgv2pIVc.js} +3 -3
- package/_assets/{passkeys-CVYlDRWu.js → passkeys-Dg5ldVwX.js} +1 -1
- package/_assets/{pay-with-exchange-DqJU65WS.js → pay-with-exchange-Dx2N2FiO.js} +1 -1
- package/_assets/promo-best-rated-emotes-C6kNvB-a.png +0 -0
- package/_assets/promo-week-selected-outfits-BBmkZYZx.png +0 -0
- package/_assets/{qr-overlay-DNwX_TPq.js → qr-overlay-CJis_Dku.js} +1 -1
- package/_assets/{receive-uVtJpZxa.js → receive-DyR3EUgS.js} +1 -1
- package/_assets/{resolveImplementation-CRaloAyf.js → resolveImplementation-D-Os7pbq.js} +1 -1
- package/_assets/{rpc-CqfSA8g9.js → rpc-gzHaMGM_.js} +1 -1
- package/_assets/{secp256k1-2YskFph9.js → secp256k1-A8695JK3.js} +1 -1
- package/_assets/{secp256k1-Do9ofviG.js → secp256k1-GWIDn9S3.js} +1 -1
- package/_assets/{secp256k1-DvDQYEQd.js → secp256k1-NjVLumzu.js} +1 -1
- package/_assets/{send-IbCZj2la.js → send-CKyxXi5G.js} +1 -1
- package/_assets/{send-batch-transaction-DFD_LTct.js → send-batch-transaction-BD0nxza5.js} +1 -1
- package/_assets/{send-eip712-transaction-DBf5Z4g_.js → send-eip712-transaction-C8HaD4Bl.js} +2 -2
- package/_assets/{send-gasless-transaction-TFSfXMLh.js → send-gasless-transaction-C3LFi8_y.js} +2 -2
- package/_assets/{send-transaction-DGhInFte.js → send-transaction-Cr1KGOfz.js} +2 -2
- package/_assets/{sendMetaTransaction-CzqCMKMd.js → sendMetaTransaction-BuD46hIl.js} +1 -1
- package/_assets/{sendRawTransaction-qf9SJfpX.js → sendRawTransaction-CHV_i5MH.js} +3 -3
- package/_assets/{serializeTransaction-D4cHSu0O.js → serializeTransaction-C6QCh8ng.js} +1 -1
- package/_assets/{session-proposal-5AODiiln.js → session-proposal-AzV-Di6A.js} +1 -1
- package/_assets/{session-request-hpYNptgl.js → session-request-BVptHKRT.js} +2 -2
- package/_assets/{signing-BQUpSEqZ.js → signing-BCnHiNxp.js} +3 -3
- package/_assets/{skeleton.styles-BfEPveSL.js → skeleton.styles-NdJWWZoO.js} +1 -1
- package/_assets/{socials-D6EP9g5a.js → socials-SFpy8Nfx.js} +1 -1
- package/_assets/{styled-FDInU8Rs.js → styled-YNWg-9qZ.js} +1 -1
- package/_assets/{swaps-CqwmfiPX.js → swaps-Bs58cXr0.js} +1 -1
- package/_assets/{thirdweb-Cecbmps_.js → thirdweb-Da9bKgaM.js} +3 -3
- package/_assets/{to-serializable-transaction-u0MhoPX5.js → to-serializable-transaction-BKFRuKok.js} +2 -2
- package/_assets/{transactionReceipt-l4NJYcz9.js → transactionReceipt-BB_HE5DZ.js} +1 -1
- package/_assets/{transactions-CeFT9Jfi.js → transactions-BiiNpaI6.js} +1 -1
- package/_assets/{useCreditPacks-DQE6Gg5O.js → useCreditPacks-kYM5sqXW.js} +1 -1
- package/_assets/{useImportable-Dh1ZOsU2.js → useImportable-CacakRaR.js} +1 -1
- package/_assets/{useInfiniteGrid--LOCzyU9.js → useInfiniteGrid-DmCoyc-5.js} +1 -1
- package/_assets/{useTheme-CpSHkSMG.js → useTheme-CDzzSrjV.js} +1 -1
- package/_assets/{verifyHash-BSS9_MWX.js → verifyHash-Bi8A6_OC.js} +1 -1
- package/_assets/{w3m-modal-BCjN4Uqc.js → w3m-modal-DXZzlpAy.js} +1 -1
- package/_assets/{w3m-modal-ByuBko0g.js → w3m-modal-hvo-cMQo.js} +1 -1
- package/_assets/{wait-for-tx-receipt-CfVB-CU0.js → wait-for-tx-receipt-DtoUQega.js} +1 -1
- package/_assets/{wallets-tUzLLBvA.js → wallets-DOYhTD-q.js} +5 -5
- package/_assets/{web-connector-BfVr5QpB.js → web-connector-L9IYDmGf.js} +3 -3
- package/_assets/{writeContract-B4n8yTsB.js → writeContract-C9Fd0Dqo.js} +1 -1
- package/_assets/{zoraTestnet-CNY7oWT9.js → zoraTestnet-CJh-5IFd.js} +1 -1
- package/index.html +11 -11
- package/package.json +2 -2
- package/_assets/Activity-CUf8ogRR.js +0 -381
- package/_assets/AnimatedBackground-_78VlBdV.js +0 -97
- package/_assets/Cart-CbY3Hhq6.js +0 -695
- package/_assets/CollectionCarousel-Cg2MTF9W.js +0 -804
- package/_assets/LazyEmoteControls-BEt_49wK.js +0 -2
- package/_assets/ManaPricingBanner.styles-CJS5V2Di.js +0 -74
- package/_assets/collectionPage.styles-jwKyDncq.js +0 -48
- package/_assets/disposePreview-C6zVmkpS.js +0 -1
- package/_assets/index-Ba-yhU-2.js +0 -1
- package/_assets/index-D-NhBWWr.css +0 -1
- package/_assets/index-D8LZCVOB.js +0 -519
- package/_assets/index-buu21jrH.js +0 -3390
- package/_assets/packs-backdrop-BcXiUPeP.webp +0 -0
|
@@ -0,0 +1,622 @@
|
|
|
1
|
+
import{j as e,b as le,r as g,L as ce}from"./react-BYHuwl8r.js";import{t as A,s as t,w as pe,y as he,b as n,C as N,B,bY as se,z as D,$ as ge,bb as O,F as U,R as xe,o as me,A as ue,ba as fe,I as K,ab as we,an as be,ae as ye,af as ve,bZ as je,E as G}from"./index-HxLvOExR.js";import{c as ke,i as $e,R as Ce,u as Se}from"./useImportable-CacakRaR.js";import{S as Le,C as Ie}from"./ManaPricingBanner.styles-MtBPxNv2.js";import{F as Y}from"./Faq-Bbk8h1Qk.js";import{C as H}from"./field.styles-5b7RHcOk.js";import"./dcl-schemas-CmtP3U6y.js";import"./sentry-Dx-KuLV3.js";import"./ethers-BDpbhgX6.js";import"./intl-CBcMB1D2.js";import"./buy-BjEPh7nk.js";import"./authorizations-Bbp82_V2.js";import"./sendMetaTransaction-BuD46hIl.js";function Te({size:a=12,...d}){return e.jsx("svg",{viewBox:"0 0 20 20",width:a,height:a,fill:"none","aria-hidden":!0,focusable:"false",...d,children:e.jsx("path",{d:"M5 10.5l3 3 7-7.5",stroke:"#fff",strokeWidth:"2.4",strokeLinecap:"round",strokeLinejoin:"round"})})}function ze({size:a=84.837,...d}){return e.jsxs("svg",{viewBox:"0 0 84.837 84.837",width:a,height:a,fill:"none","aria-hidden":!0,focusable:"false",...d,children:[e.jsxs("g",{stroke:A.colors.errStrong,strokeWidth:"6.08696",strokeLinecap:"round",children:[e.jsx("circle",{cx:"42.4185",cy:"42.4185",r:"39.375"}),e.jsx("path",{d:"M42.4185 22.5V47.5"})]}),e.jsx("circle",{cx:"42.4185",cy:"60.75",r:"3.8",fill:A.colors.errStrong})]})}const{colors:R,radius:Ae,z:Re}=A,Fe=pe`
|
|
2
|
+
0% {
|
|
3
|
+
transform: scale(0);
|
|
4
|
+
opacity: 0;
|
|
5
|
+
}
|
|
6
|
+
100% {
|
|
7
|
+
transform: scale(1);
|
|
8
|
+
opacity: 1;
|
|
9
|
+
}
|
|
10
|
+
`,V=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: ${Re.overlay};
|
|
19
|
+
`,re=t.div`
|
|
20
|
+
background: ${R.white};
|
|
21
|
+
border-radius: ${Ae.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
|
+
&[data-failure] {
|
|
35
|
+
text-align: center;
|
|
36
|
+
align-items: center;
|
|
37
|
+
}
|
|
38
|
+
&[data-success] [data-actions],
|
|
39
|
+
&[data-failure] [data-actions] {
|
|
40
|
+
justify-content: center;
|
|
41
|
+
width: 100%;
|
|
42
|
+
}
|
|
43
|
+
`,Z=t.h2`
|
|
44
|
+
font-size: 20px;
|
|
45
|
+
`;t.img`
|
|
46
|
+
width: 140px;
|
|
47
|
+
height: 140px;
|
|
48
|
+
object-fit: contain;
|
|
49
|
+
align-self: center;
|
|
50
|
+
background: ${R.media};
|
|
51
|
+
border-radius: 10px;
|
|
52
|
+
`;const _e=t.div`
|
|
53
|
+
position: sticky;
|
|
54
|
+
bottom: 0;
|
|
55
|
+
display: flex;
|
|
56
|
+
justify-content: flex-end;
|
|
57
|
+
gap: 10px;
|
|
58
|
+
margin-top: 6px;
|
|
59
|
+
padding-top: 8px;
|
|
60
|
+
background: ${R.white};
|
|
61
|
+
`;t.div`
|
|
62
|
+
width: 56px;
|
|
63
|
+
height: 56px;
|
|
64
|
+
border-radius: 50%;
|
|
65
|
+
background: ${R.okStrong};
|
|
66
|
+
color: ${R.white};
|
|
67
|
+
font-size: 30px;
|
|
68
|
+
font-weight: 800;
|
|
69
|
+
display: grid;
|
|
70
|
+
place-items: center;
|
|
71
|
+
margin: 4px auto 2px;
|
|
72
|
+
animation: ${Fe} 0.32s cubic-bezier(0.2, 0.9, 0.3, 1.4);
|
|
73
|
+
|
|
74
|
+
@media (prefers-reduced-motion: reduce) {
|
|
75
|
+
animation: none;
|
|
76
|
+
}
|
|
77
|
+
`;t.p`
|
|
78
|
+
font-weight: 700;
|
|
79
|
+
font-size: 16px;
|
|
80
|
+
margin: 2px 0 0;
|
|
81
|
+
`;const{colors:b,gradients:Ee,radius:Me}=A,Pe=t(re)`
|
|
82
|
+
width: min(460px, 94vw);
|
|
83
|
+
text-align: left;
|
|
84
|
+
align-items: stretch;
|
|
85
|
+
`,Be=t.div`
|
|
86
|
+
height: 6px;
|
|
87
|
+
border-radius: 999px;
|
|
88
|
+
background: ${b.line};
|
|
89
|
+
overflow: hidden;
|
|
90
|
+
margin: 6px 0 14px;
|
|
91
|
+
`,We=t.div`
|
|
92
|
+
height: 100%;
|
|
93
|
+
width: 0;
|
|
94
|
+
background: ${Ee.amethyst};
|
|
95
|
+
border-radius: 999px;
|
|
96
|
+
transition: width 0.45s ease;
|
|
97
|
+
`,qe=t.ul`
|
|
98
|
+
list-style: none;
|
|
99
|
+
margin: 0;
|
|
100
|
+
padding: 0;
|
|
101
|
+
display: flex;
|
|
102
|
+
flex-direction: column;
|
|
103
|
+
gap: 8px;
|
|
104
|
+
/* The elastic part of a viewport-capped modal: it gives up height before anything else. The floor is
|
|
105
|
+
explicit because a scroll container's automatic minimum size is zero — it would otherwise collapse
|
|
106
|
+
to nothing on a short screen instead of just showing fewer rows. */
|
|
107
|
+
min-height: 96px;
|
|
108
|
+
max-height: 320px;
|
|
109
|
+
overflow-y: auto;
|
|
110
|
+
`,Qe=t.li`
|
|
111
|
+
display: grid;
|
|
112
|
+
grid-template-columns: 34px 1fr auto auto;
|
|
113
|
+
align-items: center;
|
|
114
|
+
gap: 10px;
|
|
115
|
+
padding: 8px;
|
|
116
|
+
border-radius: 10px;
|
|
117
|
+
transition: background 0.2s;
|
|
118
|
+
|
|
119
|
+
&[data-status='active'] {
|
|
120
|
+
background: ${b.rarityBg};
|
|
121
|
+
}
|
|
122
|
+
&[data-status='done'] {
|
|
123
|
+
opacity: 0.75;
|
|
124
|
+
}
|
|
125
|
+
&[data-status='skipped'],
|
|
126
|
+
&[data-status='failed'] {
|
|
127
|
+
opacity: 0.6;
|
|
128
|
+
}
|
|
129
|
+
`,Ne=t.span`
|
|
130
|
+
width: 34px;
|
|
131
|
+
height: 34px;
|
|
132
|
+
border-radius: ${Me.btn};
|
|
133
|
+
overflow: hidden;
|
|
134
|
+
background: ${b.media};
|
|
135
|
+
display: grid;
|
|
136
|
+
place-items: center;
|
|
137
|
+
|
|
138
|
+
& img {
|
|
139
|
+
width: 100%;
|
|
140
|
+
height: 100%;
|
|
141
|
+
object-fit: contain;
|
|
142
|
+
}
|
|
143
|
+
`,De=t.span`
|
|
144
|
+
font-weight: 600;
|
|
145
|
+
font-size: 14px;
|
|
146
|
+
white-space: nowrap;
|
|
147
|
+
overflow: hidden;
|
|
148
|
+
text-overflow: ellipsis;
|
|
149
|
+
`,Oe=t.span`
|
|
150
|
+
font-weight: 700;
|
|
151
|
+
font-size: 13px;
|
|
152
|
+
color: ${b.text2};
|
|
153
|
+
`,Ue=t.span`
|
|
154
|
+
font-size: 12px;
|
|
155
|
+
font-weight: 700;
|
|
156
|
+
color: ${b.accent};
|
|
157
|
+
display: inline-flex;
|
|
158
|
+
align-items: center;
|
|
159
|
+
gap: 6px;
|
|
160
|
+
justify-content: flex-end;
|
|
161
|
+
min-width: 74px;
|
|
162
|
+
`,Ke=t.span`
|
|
163
|
+
color: ${b.muted2};
|
|
164
|
+
font-weight: 600;
|
|
165
|
+
`,Ge=t.span`
|
|
166
|
+
color: ${b.muted};
|
|
167
|
+
font-weight: 600;
|
|
168
|
+
`,J=t.span`
|
|
169
|
+
color: ${b.errStrong};
|
|
170
|
+
font-weight: 600;
|
|
171
|
+
`,Ye=t.span`
|
|
172
|
+
display: flex;
|
|
173
|
+
align-items: center;
|
|
174
|
+
justify-content: center;
|
|
175
|
+
margin-bottom: 4px;
|
|
176
|
+
`,He=t.span`
|
|
177
|
+
width: 14px;
|
|
178
|
+
height: 14px;
|
|
179
|
+
margin: 0;
|
|
180
|
+
border-width: 2px;
|
|
181
|
+
`,Ve=t.span`
|
|
182
|
+
width: 20px;
|
|
183
|
+
height: 20px;
|
|
184
|
+
border-radius: 50%;
|
|
185
|
+
background: ${b.ok};
|
|
186
|
+
color: ${b.white};
|
|
187
|
+
display: grid;
|
|
188
|
+
place-items: center;
|
|
189
|
+
font-size: 12px;
|
|
190
|
+
`,Ze=t.p`
|
|
191
|
+
margin: 12px 0 0;
|
|
192
|
+
`;function Je(a,d){switch(a==null?void 0:a.step){case"cancelling":return d?n("migrate.phaseCancelConfirm"):n("migrate.phaseCancel");case"confirming-cancel":return d?n("migrate.phaseConfirmingCancel"):n("migrate.phaseConfirmingCancelManaged");case"authorising":return d?n("migrate.phaseAuthoriseConfirm"):n("migrate.phaseAuthorise");case"signing":return d?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 d?n("migrate.statusConfirm"):n("migrate.statusAdding")}}function Xe({queue:a,session:d,onClose:h,onDone:I}){const W=le(),k=he(d.providerType),[q,_]=g.useState(()=>a.map(()=>null)),[C,E]=g.useState(null),[c,j]=g.useState(()=>a.map(()=>"pending")),[x,M]=g.useState("running"),S=g.useRef(!1);g.useEffect(()=>{if(S.current)return;S.current=!0;let r=!1;return k&&ke(a.map(o=>o.item),d.address).then(o=>{!r&&o&&E({approvals:o.approvals,total:o.total})}).catch(()=>{}),(async()=>{for(let o=0;o<a.length;o++){if(r)return;j(u=>u.map((f,w)=>w===o?"active":f));try{await $e(a[o].item,a[o].priceCredits,d,{onPhase:u=>{r||_(f=>f.map((w,z)=>z===o?u:w))}}),ge("Shop Migrated Listing",{item_id:a[o].item.itemId??a[o].item.oldTradeId??null,contract_address:a[o].item.contractAddress,new_price_credits:a[o].priceCredits,new_price_usd:O(a[o].priceCredits)}),r||j(u=>u.map((f,w)=>w===o?"done":f))}catch(u){if(u instanceof Ce)U(u,{flow:"import_listing",step:"relist",itemId:a[o].item.itemId??a[o].item.oldTradeId}),r||j(f=>f.map((w,z)=>z===o?"unlisted":w));else{const f=u,w=f.code===4001||/reject|denied|cancel/i.test(f.message??"");w||U(u,{flow:"import_listing",itemId:a[o].item.itemId??a[o].item.oldTradeId}),r||j(z=>z.map((oe,de)=>de===o?w?"skipped":"failed":oe))}}}r||M("finished")})(),()=>{r=!0}},[]);const $=c.filter(r=>r==="done").length,P=c.findIndex(r=>r==="active"),Q=Math.round(c.filter(r=>r!=="pending"&&r!=="active").length/a.length*100),L=c.filter(r=>r==="skipped").length,T=c.filter(r=>r==="failed").length,v=c.filter(r=>r==="unlisted").length,i=T+v;function l(){I({listed:$,failed:i,cancelled:L}),h()}const p=g.useRef(!1);return g.useEffect(()=>{x!=="finished"||i>0||p.current||(p.current=!0,l())},[x,i]),x==="finished"?i===0?null:e.jsx(V,{role:"presentation",children:e.jsxs(re,{"data-failure":!0,role:"dialog","aria-modal":"true","data-testid":v>0?"migrate-unlisted":"migrate-failed",children:[e.jsx(Ye,{"aria-hidden":!0,children:e.jsx(ze,{size:72})}),e.jsx(Z,{children:v>0?n("migrate.unlistedTitle"):n("migrate.failedTitle")}),e.jsxs("p",{className:"muted",style:{margin:0},children:[v>0?n("migrate.unlistedSummary",{count:v}):"",T>0?(v>0?" ":"")+n("migrate.failedSummary",{count:T}):"",$>0?" "+n("migrate.listedSummary",{count:$,currency:N.name}):"",L>0?" "+n("migrate.skippedSummary",{count:L}):""]}),e.jsxs(_e,{"data-actions":!0,children:[e.jsx(B,{variant:"ghost",onClick:l,children:n("getCredits.done")}),v>0?e.jsx(B,{variant:"purple",onClick:()=>{I({listed:$,failed:i,cancelled:L}),h(),W(se)},children:n("migrate.goToMyAssets")}):null]})]})}):e.jsx(V,{role:"presentation",children:e.jsxs(Pe,{"data-testid":"modal",role:"dialog","aria-modal":"true","aria-live":"polite",children:[e.jsx(Z,{children:n("migrate.listingTitle")}),e.jsxs("p",{className:"muted small",style:{margin:"0 0 4px"},children:[k?n("migrate.subConfirm"):n("migrate.subManaged")," ",P>=0?n("migrate.progressCount",{current:P+1,total:a.length}):""]}),e.jsx(Be,{children:e.jsx(We,{style:{width:`${Q}%`}})}),e.jsx(qe,{children:a.map((r,m)=>e.jsxs(Qe,{"data-status":c[m],children:[e.jsx(Ne,{children:r.item.thumbnail?e.jsx("img",{src:r.item.thumbnail,alt:""}):null}),e.jsx(De,{title:r.item.name,children:r.item.name||n("migrate.itemFallback")}),e.jsxs(Oe,{children:[e.jsx(D,{className:"ccy-mark"})," ",r.priceCredits.toLocaleString()]}),e.jsx(Ue,{"data-testid":c[m]==="active"?"migrate-active-status":void 0,children:c[m]==="active"?e.jsxs(e.Fragment,{children:[e.jsx(He,{className:"spinner","aria-hidden":!0})," ",Je(q[m],k)]}):c[m]==="done"?e.jsx(Ve,{children:e.jsx(Te,{})}):c[m]==="skipped"?e.jsx(Ge,{children:n("migrate.statusSkipped")}):c[m]==="failed"?e.jsx(J,{children:n("migrate.statusFailed")}):c[m]==="unlisted"?e.jsx(J,{title:n("migrate.unlistedTooltip"),children:n("migrate.statusUnlisted")}):e.jsx(Ke,{children:n("migrate.statusWaiting")})})]},r.item.oldTradeId))}),e.jsx(Ze,{className:"muted small",children:k?C?n(C.approvals>0?"migrate.hintCountApproval":"migrate.hintCount",{total:C.total}):n("migrate.hintConfirm"):n("migrate.hintManaged")})]})})}const et="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:s,font:tt,media:y,radius:F}=A,it=t.div`
|
|
193
|
+
display: flex;
|
|
194
|
+
flex-direction: column;
|
|
195
|
+
align-items: center;
|
|
196
|
+
gap: 24px;
|
|
197
|
+
padding: 24px 20px 80px;
|
|
198
|
+
`,nt=t.div`
|
|
199
|
+
/* 615px in the design; capped rather than fixed so it still fits a phone. */
|
|
200
|
+
width: 100%;
|
|
201
|
+
max-width: 615px;
|
|
202
|
+
display: flex;
|
|
203
|
+
flex-direction: column;
|
|
204
|
+
align-items: center;
|
|
205
|
+
justify-content: center;
|
|
206
|
+
gap: 24px;
|
|
207
|
+
padding: 16px;
|
|
208
|
+
border-radius: ${F.modal};
|
|
209
|
+
background: ${s.white};
|
|
210
|
+
text-align: center;
|
|
211
|
+
`,at=t.span`
|
|
212
|
+
flex-shrink: 0;
|
|
213
|
+
width: 105px;
|
|
214
|
+
height: 105px;
|
|
215
|
+
display: flex;
|
|
216
|
+
align-items: center;
|
|
217
|
+
justify-content: center;
|
|
218
|
+
overflow: hidden;
|
|
219
|
+
|
|
220
|
+
img {
|
|
221
|
+
width: 84.837px;
|
|
222
|
+
height: 84.837px;
|
|
223
|
+
}
|
|
224
|
+
`,st=t.div`
|
|
225
|
+
width: 100%;
|
|
226
|
+
display: flex;
|
|
227
|
+
flex-direction: column;
|
|
228
|
+
align-items: center;
|
|
229
|
+
gap: 12px;
|
|
230
|
+
padding-bottom: 16px;
|
|
231
|
+
line-height: 1.6;
|
|
232
|
+
color: ${s.text};
|
|
233
|
+
`,rt=t.h2`
|
|
234
|
+
margin: 0;
|
|
235
|
+
font-size: 20px;
|
|
236
|
+
font-weight: 700;
|
|
237
|
+
`,ot=t.p`
|
|
238
|
+
margin: 0;
|
|
239
|
+
font-size: 16px;
|
|
240
|
+
font-weight: 400;
|
|
241
|
+
`,dt=t.div`
|
|
242
|
+
width: 310px;
|
|
243
|
+
max-width: 100%;
|
|
244
|
+
padding-bottom: 16px;
|
|
245
|
+
`,lt=t(B)`
|
|
246
|
+
width: 100%;
|
|
247
|
+
height: 56px;
|
|
248
|
+
border-radius: 12px;
|
|
249
|
+
font-size: 15px;
|
|
250
|
+
/* The variant sets 0.046em, which at 15px is 0.69px; the design asks for 0.46px flat. */
|
|
251
|
+
letter-spacing: 0.46px;
|
|
252
|
+
/* Filled FLAT with the accent here, not with the purple variant's amethyst gradient — so the variant's
|
|
253
|
+
own hover overlay (that same accent) has to step up a shade to still read as a hover. */
|
|
254
|
+
background: ${s.accent};
|
|
255
|
+
|
|
256
|
+
&:hover:not(:disabled)::before,
|
|
257
|
+
&:active:not(:disabled)::before {
|
|
258
|
+
background: ${s.accentHover};
|
|
259
|
+
}
|
|
260
|
+
`,X=t.div`
|
|
261
|
+
max-width: 1003px;
|
|
262
|
+
margin: 0 auto;
|
|
263
|
+
padding-bottom: 120px;
|
|
264
|
+
display: flex;
|
|
265
|
+
flex-direction: column;
|
|
266
|
+
gap: 12px;
|
|
267
|
+
font-family: ${tt.sans};
|
|
268
|
+
`,ct=t.header`
|
|
269
|
+
display: flex;
|
|
270
|
+
flex-direction: column;
|
|
271
|
+
gap: 16px;
|
|
272
|
+
padding: 10px 12px;
|
|
273
|
+
`,pt=t.div`
|
|
274
|
+
display: flex;
|
|
275
|
+
flex-direction: column;
|
|
276
|
+
gap: 8px;
|
|
277
|
+
`,ht=t.h2`
|
|
278
|
+
margin: 0;
|
|
279
|
+
font-weight: 600;
|
|
280
|
+
font-size: 20px;
|
|
281
|
+
line-height: 24px;
|
|
282
|
+
letter-spacing: 0.46px;
|
|
283
|
+
color: ${s.white};
|
|
284
|
+
`,gt=t.p`
|
|
285
|
+
margin: 0;
|
|
286
|
+
font-weight: 500;
|
|
287
|
+
font-size: 14px;
|
|
288
|
+
line-height: 1.334;
|
|
289
|
+
color: ${s.gray4};
|
|
290
|
+
`,xt=t.a`
|
|
291
|
+
display: inline-flex;
|
|
292
|
+
align-items: center;
|
|
293
|
+
gap: 2px;
|
|
294
|
+
font-weight: 600;
|
|
295
|
+
font-size: 14px;
|
|
296
|
+
line-height: 30px;
|
|
297
|
+
text-decoration: underline;
|
|
298
|
+
color: ${s.white};
|
|
299
|
+
|
|
300
|
+
.ico {
|
|
301
|
+
width: 13px;
|
|
302
|
+
height: 13px;
|
|
303
|
+
}
|
|
304
|
+
&:focus-visible {
|
|
305
|
+
outline: 2px solid ${s.white};
|
|
306
|
+
outline-offset: 2px;
|
|
307
|
+
}
|
|
308
|
+
`,ee=t.hr`
|
|
309
|
+
width: 100%;
|
|
310
|
+
height: 0;
|
|
311
|
+
margin: 0;
|
|
312
|
+
border: 0;
|
|
313
|
+
border-top: 1px solid rgba(255, 255, 255, 0.25);
|
|
314
|
+
`,mt=t.div`
|
|
315
|
+
display: flex;
|
|
316
|
+
flex-direction: column;
|
|
317
|
+
gap: 8px;
|
|
318
|
+
padding: 12px;
|
|
319
|
+
`,ut=t(Le)`
|
|
320
|
+
font-size: 14px;
|
|
321
|
+
line-height: 1.334;
|
|
322
|
+
color: ${s.text2};
|
|
323
|
+
`,ft=t.span`
|
|
324
|
+
flex: none;
|
|
325
|
+
display: grid;
|
|
326
|
+
place-items: center;
|
|
327
|
+
width: 20px;
|
|
328
|
+
height: 20px;
|
|
329
|
+
border-radius: ${F.pill};
|
|
330
|
+
background: ${s.dclRed};
|
|
331
|
+
font-weight: 600;
|
|
332
|
+
font-size: 12px;
|
|
333
|
+
line-height: 1.6;
|
|
334
|
+
color: ${s.white};
|
|
335
|
+
`,wt=t.div`
|
|
336
|
+
display: flex;
|
|
337
|
+
flex-direction: column;
|
|
338
|
+
gap: 4px;
|
|
339
|
+
`,bt=t.label`
|
|
340
|
+
display: flex;
|
|
341
|
+
align-items: center;
|
|
342
|
+
align-self: flex-start;
|
|
343
|
+
font-size: 14px;
|
|
344
|
+
line-height: 1.2;
|
|
345
|
+
color: ${s.white};
|
|
346
|
+
cursor: pointer;
|
|
347
|
+
`,te=t.span`
|
|
348
|
+
flex: none;
|
|
349
|
+
display: grid;
|
|
350
|
+
place-items: center;
|
|
351
|
+
width: 40px;
|
|
352
|
+
height: 40px;
|
|
353
|
+
|
|
354
|
+
& input:checked,
|
|
355
|
+
& input[data-indeterminate='true'] {
|
|
356
|
+
background: ${s.dclRed};
|
|
357
|
+
border-color: ${s.dclRed};
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
&[data-tone='on-dark'] input {
|
|
361
|
+
background: transparent;
|
|
362
|
+
border-color: ${s.white};
|
|
363
|
+
}
|
|
364
|
+
&[data-tone='on-dark'] input:checked,
|
|
365
|
+
&[data-tone='on-dark'] input[data-indeterminate='true'] {
|
|
366
|
+
background: ${s.dclRed};
|
|
367
|
+
border-color: ${s.dclRed};
|
|
368
|
+
}
|
|
369
|
+
&[data-tone='on-dark'] input:focus-visible {
|
|
370
|
+
outline-color: ${s.white};
|
|
371
|
+
}
|
|
372
|
+
`,yt=t.div`
|
|
373
|
+
display: flex;
|
|
374
|
+
flex-direction: column;
|
|
375
|
+
gap: 12px;
|
|
376
|
+
`,vt=t.article`
|
|
377
|
+
display: flex;
|
|
378
|
+
align-items: center;
|
|
379
|
+
flex-wrap: wrap;
|
|
380
|
+
gap: 12px;
|
|
381
|
+
row-gap: 8px;
|
|
382
|
+
padding: 12px 24px 12px 0;
|
|
383
|
+
border: 1px solid ${s.gray4};
|
|
384
|
+
border-radius: ${F.card};
|
|
385
|
+
background: ${s.white};
|
|
386
|
+
overflow: hidden;
|
|
387
|
+
transition: opacity 0.25s ease;
|
|
388
|
+
`,jt=t.div`
|
|
389
|
+
flex: none;
|
|
390
|
+
display: flex;
|
|
391
|
+
align-items: center;
|
|
392
|
+
|
|
393
|
+
/* On a phone the design tops the checkbox against the thumbnail instead of centring it — the card is
|
|
394
|
+
three lines tall there, and a centred tick drifts away from the item it belongs to. */
|
|
395
|
+
${y.maxWidth("mobile")} {
|
|
396
|
+
align-items: flex-start;
|
|
397
|
+
}
|
|
398
|
+
`,kt=t.div`
|
|
399
|
+
flex: none;
|
|
400
|
+
display: grid;
|
|
401
|
+
place-items: center;
|
|
402
|
+
width: 74.289px;
|
|
403
|
+
height: 74px;
|
|
404
|
+
border-radius: 6.482px;
|
|
405
|
+
background: ${s.media};
|
|
406
|
+
overflow: hidden;
|
|
407
|
+
|
|
408
|
+
& img {
|
|
409
|
+
width: 61.57px;
|
|
410
|
+
height: 61.281px;
|
|
411
|
+
object-fit: contain;
|
|
412
|
+
filter: drop-shadow(0.303px 1.212px 1.516px rgba(0, 0, 0, 0.1));
|
|
413
|
+
}
|
|
414
|
+
`,$t=t.div`
|
|
415
|
+
/* Basis (not min-width) is what makes the price column wrap to its own line on a phone; min-width: 0
|
|
416
|
+
then lets the name ellipsize once it is on a line of its own. */
|
|
417
|
+
flex: 1 1 150px;
|
|
418
|
+
min-width: 0;
|
|
419
|
+
display: flex;
|
|
420
|
+
flex-direction: column;
|
|
421
|
+
justify-content: center;
|
|
422
|
+
gap: 8px;
|
|
423
|
+
padding: 16px 8px;
|
|
424
|
+
|
|
425
|
+
/* A smaller basis on a phone, where the name and chips have to STAY beside the thumbnail: at 150px the
|
|
426
|
+
pair no longer fits the line on the narrowest handsets and the block dropped below the artwork. */
|
|
427
|
+
${y.maxWidth("mobile")} {
|
|
428
|
+
flex-basis: 100px;
|
|
429
|
+
}
|
|
430
|
+
`,Ct=t.div`
|
|
431
|
+
font-weight: 600;
|
|
432
|
+
font-size: 16px;
|
|
433
|
+
line-height: 1.2;
|
|
434
|
+
color: ${s.text};
|
|
435
|
+
white-space: nowrap;
|
|
436
|
+
overflow: hidden;
|
|
437
|
+
text-overflow: ellipsis;
|
|
438
|
+
`,St=t.div`
|
|
439
|
+
display: flex;
|
|
440
|
+
align-items: flex-end;
|
|
441
|
+
gap: 4px;
|
|
442
|
+
`,ie=t(xe)`
|
|
443
|
+
padding: 1.623px 6.491px;
|
|
444
|
+
font-weight: 600;
|
|
445
|
+
font-size: 8.56px;
|
|
446
|
+
line-height: 11.851px;
|
|
447
|
+
|
|
448
|
+
/* Same padding as the rarity chip beside it — the design sets the category chip flush with it, and
|
|
449
|
+
only the narrower gender chip (which this row does not carry) gets the tighter inset. Restated
|
|
450
|
+
rather than inherited because the shared chip's own icon variant is a more specific selector. */
|
|
451
|
+
&[data-variant='icon'] {
|
|
452
|
+
padding: 1.623px 6.491px;
|
|
453
|
+
}
|
|
454
|
+
&[data-variant='icon'] .ico {
|
|
455
|
+
width: 14.605px;
|
|
456
|
+
height: 14.605px;
|
|
457
|
+
}
|
|
458
|
+
`,Lt=t.div`
|
|
459
|
+
flex: none;
|
|
460
|
+
/* Right-aligns the block on the desktop row. */
|
|
461
|
+
margin-left: auto;
|
|
462
|
+
display: flex;
|
|
463
|
+
flex-direction: column;
|
|
464
|
+
align-items: flex-end;
|
|
465
|
+
justify-content: center;
|
|
466
|
+
gap: 4px;
|
|
467
|
+
|
|
468
|
+
/* The phone card gives the price a line of its own, running the full width of the row — but indented by
|
|
469
|
+
the checkbox slot, so it starts under the thumbnail rather than under the tick. */
|
|
470
|
+
${y.maxWidth("mobile")} {
|
|
471
|
+
flex: 1 1 100%;
|
|
472
|
+
margin-left: 40px;
|
|
473
|
+
align-items: stretch;
|
|
474
|
+
}
|
|
475
|
+
`,It=t.div`
|
|
476
|
+
display: flex;
|
|
477
|
+
align-items: center;
|
|
478
|
+
justify-content: space-between;
|
|
479
|
+
gap: 8px;
|
|
480
|
+
width: 144px;
|
|
481
|
+
height: 42px;
|
|
482
|
+
padding: 8px;
|
|
483
|
+
border: 0.5px solid ${s.muted2};
|
|
484
|
+
border-radius: ${F.btn};
|
|
485
|
+
background: ${s.panel};
|
|
486
|
+
|
|
487
|
+
/* The OUTLINED credit glyph, not the filled gradient mark: the filled one is right for a price you are
|
|
488
|
+
being shown, and this is a price you are typing. The design still draws it in the currency's own red
|
|
489
|
+
rather than in the input's ink, so the unit stays legible as a unit. 17px is the size it draws at. */
|
|
490
|
+
& .ico {
|
|
491
|
+
flex: 0 0 auto;
|
|
492
|
+
width: 17px;
|
|
493
|
+
height: 17px;
|
|
494
|
+
color: ${s.dclRed};
|
|
495
|
+
}
|
|
496
|
+
transition:
|
|
497
|
+
border-color 0.15s,
|
|
498
|
+
box-shadow 0.15s;
|
|
499
|
+
|
|
500
|
+
&:focus-within {
|
|
501
|
+
border-color: ${s.accent};
|
|
502
|
+
box-shadow: 0 0 0 3px ${s.rarityBg};
|
|
503
|
+
}
|
|
504
|
+
|
|
505
|
+
${y.maxWidth("mobile")} {
|
|
506
|
+
width: 100%;
|
|
507
|
+
}
|
|
508
|
+
`,Tt=t.input`
|
|
509
|
+
flex: 1 1 auto;
|
|
510
|
+
min-width: 0;
|
|
511
|
+
border: 0;
|
|
512
|
+
outline: 0;
|
|
513
|
+
background: transparent;
|
|
514
|
+
font: inherit;
|
|
515
|
+
font-weight: 600;
|
|
516
|
+
font-size: 16px;
|
|
517
|
+
color: ${s.text};
|
|
518
|
+
text-align: right;
|
|
519
|
+
font-variant-numeric: tabular-nums;
|
|
520
|
+
`,zt=t.div`
|
|
521
|
+
display: flex;
|
|
522
|
+
align-items: baseline;
|
|
523
|
+
gap: 4px;
|
|
524
|
+
font-weight: 500;
|
|
525
|
+
font-size: 12px;
|
|
526
|
+
color: ${s.gray0};
|
|
527
|
+
|
|
528
|
+
/* Centred under the full-width field it converts, not parked at its right edge. */
|
|
529
|
+
${y.maxWidth("mobile")} {
|
|
530
|
+
justify-content: center;
|
|
531
|
+
}
|
|
532
|
+
`,At=t.span`
|
|
533
|
+
font-weight: 300;
|
|
534
|
+
font-size: 10px;
|
|
535
|
+
color: ${s.muted};
|
|
536
|
+
`,Rt=t.div`
|
|
537
|
+
height: 101px;
|
|
538
|
+
border: 1px solid transparent;
|
|
539
|
+
border-radius: ${F.card};
|
|
540
|
+
background: linear-gradient(100deg, #ededed 30%, #f7f7f7 50%, #ededed 70%);
|
|
541
|
+
background-size: 200% 100%;
|
|
542
|
+
animation: shimmer 1.3s infinite linear;
|
|
543
|
+
`,Ft=t.div`
|
|
544
|
+
position: fixed;
|
|
545
|
+
left: 0;
|
|
546
|
+
right: 0;
|
|
547
|
+
bottom: 0;
|
|
548
|
+
z-index: 30;
|
|
549
|
+
background: ${s.white};
|
|
550
|
+
backdrop-filter: blur(12px);
|
|
551
|
+
border-top: 1px solid ${s.line};
|
|
552
|
+
`,_t=t.div`
|
|
553
|
+
max-width: 1003px;
|
|
554
|
+
margin: 0 auto;
|
|
555
|
+
padding: 15px 20px;
|
|
556
|
+
display: flex;
|
|
557
|
+
align-items: center;
|
|
558
|
+
gap: 16px;
|
|
559
|
+
|
|
560
|
+
/* On a phone the design stacks the bar: the summary line, then the cta across the full width. */
|
|
561
|
+
${y.maxWidth("mobile")} {
|
|
562
|
+
flex-direction: column;
|
|
563
|
+
align-items: stretch;
|
|
564
|
+
padding: 12px 16px;
|
|
565
|
+
gap: 12px;
|
|
566
|
+
}
|
|
567
|
+
`,Et=t.div`
|
|
568
|
+
${y.maxWidth("mobile")} {
|
|
569
|
+
display: flex;
|
|
570
|
+
flex-direction: row-reverse;
|
|
571
|
+
align-items: center;
|
|
572
|
+
justify-content: space-between;
|
|
573
|
+
gap: 12px;
|
|
574
|
+
}
|
|
575
|
+
`,Mt=t.div`
|
|
576
|
+
display: flex;
|
|
577
|
+
align-items: center;
|
|
578
|
+
gap: 6px;
|
|
579
|
+
font-weight: 600;
|
|
580
|
+
font-size: 16px;
|
|
581
|
+
color: ${s.text};
|
|
582
|
+
|
|
583
|
+
& .ico {
|
|
584
|
+
width: 17px;
|
|
585
|
+
height: 17px;
|
|
586
|
+
}
|
|
587
|
+
`,Pt=t.div`
|
|
588
|
+
font-size: 13px;
|
|
589
|
+
color: ${s.muted};
|
|
590
|
+
`,Bt=t.span`
|
|
591
|
+
flex: 1 1 auto;
|
|
592
|
+
|
|
593
|
+
${y.maxWidth("mobile")} {
|
|
594
|
+
display: none;
|
|
595
|
+
}
|
|
596
|
+
`,Wt=t(B)`
|
|
597
|
+
flex: none;
|
|
598
|
+
min-width: 260px;
|
|
599
|
+
padding: 13px 24px;
|
|
600
|
+
|
|
601
|
+
${y.maxWidth("mobile")} {
|
|
602
|
+
min-width: 0;
|
|
603
|
+
}
|
|
604
|
+
`,ne=t.div`
|
|
605
|
+
padding: 16px 12px 0;
|
|
606
|
+
|
|
607
|
+
/* The outlined dark rows, but NOT the credits page's centred 32px heading that ships with them: here
|
|
608
|
+
the section is one more block in the tool's left-aligned column, so the heading keeps the light
|
|
609
|
+
skin's size and alignment. The doubled ampersand is what outranks Faq's own tone selectors, which
|
|
610
|
+
Emotion inserts after this block (the Faq renders inside it). */
|
|
611
|
+
&& [data-tone='on-dark'] {
|
|
612
|
+
align-items: stretch;
|
|
613
|
+
}
|
|
614
|
+
&& [data-testid='faq-title'] {
|
|
615
|
+
font-size: 20px;
|
|
616
|
+
text-align: left;
|
|
617
|
+
|
|
618
|
+
${y.maxWidth("mobile")} {
|
|
619
|
+
font-size: 18px;
|
|
620
|
+
}
|
|
621
|
+
}
|
|
622
|
+
`,ae=[{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"}],qt="https://docs.decentraland.org";function Qt(a){try{return je(BigInt(a))}catch{return null}}function ti(){const{session:a}=me(),d=ue(),{items:h,isLoading:I}=Se(),[W,k]=g.useState({}),[q,_]=g.useState(new Set),[C,E]=g.useState(null);g.useEffect(()=>{h.length&&k(i=>{const l={...i};for(const p of h)l[p.oldTradeId]==null&&(l[p.oldTradeId]=p.suggestedCredits);return l})},[h]);const c=i=>!q.has(i),j=i=>W[i.oldTradeId]??i.suggestedCredits,x=h.filter(i=>c(i.oldTradeId)),M=x.reduce((i,l)=>i+j(l),0),S=h.length>0&&x.length===h.length,$=x.length>0&&!S;function P(i,l){const p=l.replace(/[^\d]/g,"");k(r=>({...r,[i]:p===""?0:parseInt(p,10)}))}function Q(i){_(l=>{const p=new Set(l);return p.has(i)?p.delete(i):p.add(i),p})}function L(){_(S?new Set(h.map(i=>i.oldTradeId)):new Set)}function T(i){return i.map(l=>({item:l,priceCredits:Math.max(1,j(l))}))}function v(i){d.invalidateQueries({queryKey:["importable"]}),d.invalidateQueries({queryKey:["shop-items"]}),d.invalidateQueries({queryKey:["catalog-items"]}),d.invalidateQueries({queryKey:["overview-listings"]}),d.invalidateQueries({queryKey:["upsell-listings"]}),d.invalidateQueries({queryKey:["my-assets"]}),d.invalidateQueries({queryKey:["collection-sale-state"]}),i.failed>0?G.error(n(i.listed>0?"importListings.toastPartial":"importListings.toastFailed")):i.listed>0&&G.success(n("importListings.toastUpdated"))}return!I&&h.length===0?e.jsxs(X,{children:[e.jsx(it,{"data-testid":"import-empty",children:e.jsxs(nt,{children:[e.jsx(at,{"aria-hidden":!0,children:e.jsx("img",{src:et,alt:"",width:85,height:85})}),e.jsxs(st,{children:[e.jsx(rt,{children:n("importListings.emptyTitle")}),e.jsx(ot,{children:n("importListings.emptyBody")})]}),e.jsx(dt,{children:e.jsx(lt,{as:ce,to:se,variant:"purple",children:n("importListings.goToMyAssets")})})]})}),e.jsx(ne,{children:e.jsx(Y,{title:"faq.title",entries:ae})})]}):e.jsxs(X,{children:[e.jsxs(ct,{children:[e.jsxs(pt,{children:[e.jsx(ht,{children:n("importListings.title")}),e.jsxs("div",{children:[e.jsx(gt,{children:n("importListings.lede",{currency:fe(N.name)})}),e.jsxs(xt,{href:qt,target:"_blank",rel:"noopener noreferrer",children:[n("importListings.learnMore"),e.jsx(K,{name:"external-link",className:"ico","aria-hidden":!0})]})]})]}),e.jsx(Ie,{tone:"on-dark"})]}),e.jsx(ee,{}),e.jsxs(mt,{children:[e.jsxs(ut,{"data-testid":"import-progress",children:[e.jsx(ft,{"data-testid":"import-count",children:h.length}),n("importListings.updatePricing")]}),e.jsxs(wt,{children:[e.jsxs(bt,{children:[e.jsx(te,{"data-tone":"on-dark",children:e.jsx(H,{type:"checkbox",checked:S,ref:i=>{i&&(i.indeterminate=$)},"data-indeterminate":$,onChange:L,"data-testid":"import-select-all","aria-label":n("importListings.selectAllAria")})}),n("importListings.selectAll")]}),e.jsx(yt,{children:I?Array.from({length:4}).map((i,l)=>e.jsx(Rt,{},l)):h.map(i=>{const l=j(i),p=we({...i,wearableCategory:i.wearableCategory??void 0}),r=Qt(i.manaWei);return e.jsxs(vt,{"data-off":c(i.oldTradeId)?void 0:!0,children:[e.jsxs(jt,{children:[e.jsx(te,{children:e.jsx(H,{type:"checkbox",checked:c(i.oldTradeId),onChange:()=>Q(i.oldTradeId),"data-testid":"import-row-check","aria-label":n("importListings.includeItem",{name:i.name})})}),e.jsx(kt,{children:i.thumbnail?e.jsx("img",{src:i.thumbnail,alt:""}):null})]}),e.jsxs($t,{children:[e.jsx(Ct,{title:i.name,children:i.name||n("importListings.itemFallback")}),e.jsxs(St,{children:[e.jsx(ie,{"data-variant":"rarity",style:{background:ve(i.rarity),color:ye(i.rarity)},children:be(i.rarity)}),p?e.jsx(ie,{"data-variant":"icon",children:e.jsx(K,{name:p,"aria-hidden":!0})}):null]})]}),e.jsxs(Lt,{children:[e.jsxs(It,{children:[e.jsx(D,{}),e.jsx(Tt,{"data-testid":"imp-price-input",inputMode:"numeric",value:l.toLocaleString(),onChange:m=>P(i.oldTradeId,m.target.value),"aria-label":n("importListings.priceAria",{currency:N.name,name:i.name})})]}),e.jsxs(zt,{children:[e.jsxs("span",{children:["$",O(l).toFixed(2)]}),r?e.jsx(At,{children:n("importListings.wasMana",{amount:r})}):null]})]})]},i.oldTradeId)})})]})]}),e.jsx(ee,{}),e.jsx(ne,{children:e.jsx(Y,{title:"faq.title",entries:ae,tone:"on-dark"})}),e.jsx(Ft,{children:e.jsxs(_t,{children:[e.jsxs(Et,{children:[e.jsxs(Mt,{children:[e.jsx(D,{})," ",M.toLocaleString()]}),e.jsx(Pt,{children:n("importListings.selectedSummary",{count:x.length,usd:O(M).toFixed(2)})})]}),e.jsx(Bt,{}),e.jsx(Wt,{variant:"red","data-testid":"import-list-all",disabled:x.length===0,onClick:()=>E(T(x)),children:n("importListings.listAll",{count:x.length})})]})}),C&&a?e.jsx(Xe,{queue:C,session:a,onClose:()=>E(null),onDone:v}):null]})}export{ti as ImportListings};
|