@dcl/shop 0.10.1-31042990976.commit-7edc9b6 → 1.0.0
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-CJO4ONwi.js +371 -0
- package/_assets/AnimatedBackground-CHiOSgJ6.js +97 -0
- package/_assets/{Assets-BzPVRWYe.js → Assets-1KVsmH01.js} +8 -8
- package/_assets/{Assets.styles-D4-S4NWG.js → Assets.styles-BUHnZ7Nb.js} +140 -132
- package/_assets/{Authorizations-gGXOHHeT.js → Authorizations-BGlyC4dr.js} +28 -26
- package/_assets/Cart-afrKtZvj.js +707 -0
- package/_assets/{CircularProgress-DNShuaaC.js → CircularProgress-K7JjSpPZ.js} +1 -1
- package/_assets/{Collection-CI_bqtk6.js → Collection-B0G71rJV.js} +19 -19
- package/_assets/CollectionCarousel-B4hzcKRb.js +816 -0
- package/_assets/{Confetti-DkcOmptO.js → Confetti-BBhDY6Q2.js} +1 -1
- package/_assets/{Creator-CFf63R4B.js → Creator-CYC3eVKx.js} +7 -7
- package/_assets/{ErrorNotice-C_rQ_hZp.js → ErrorNotice-CnPcFEw_.js} +1 -1
- package/_assets/{ExchangeController-BPF_kkCP.js → ExchangeController-BAefeOHy.js} +1 -1
- package/_assets/{Faq--E1fBOzk.js → Faq-D03YByjo.js} +20 -14
- package/_assets/{GetCredits-C2rjzPBY.js → GetCredits-Cyw0rRMV.js} +114 -80
- package/_assets/{Grow-CyHu9l8s.js → Grow-CPwRVF9g.js} +1 -1
- package/_assets/{HelpersUtil-Bh7qiwp_.js → HelpersUtil-DJC0aWJi.js} +1 -1
- package/_assets/{ItemDetail-CtR1YHPh.js → ItemDetail-DSuMCjR9.js} +510 -480
- package/_assets/LazyEmoteControls-D-xqLU4A.js +2 -0
- package/_assets/{LoadMore-BQIcG-2Y.js → LoadMore-CMAFsns3.js} +1 -1
- package/_assets/ManaPricingBanner.styles-Bb7BS6EM.js +93 -0
- package/_assets/{MyAssets-Dk_4queh.js → MyAssets-C5lGRPqP.js} +33 -33
- package/_assets/{MyFavorites-yuyxKJv4.js → MyFavorites-C1t1o6Li.js} +12 -11
- package/_assets/{NotFound-rquTctww.js → NotFound-Bdi_fN5j.js} +1 -1
- package/_assets/{NotificationsBell-CFCmzqHj.js → NotificationsBell-BQk3EV9b.js} +1 -1
- package/_assets/{OutfitDetail-BFc4wS6X.js → OutfitDetail-D3Mwl6KR.js} +4 -4
- package/_assets/{OutfitPreview-C214293j.js → OutfitPreview-BpWwkAro.js} +2 -2
- package/_assets/{OutfitStudio-OOy9Y3VP.js → OutfitStudio-BL7OYD9h.js} +1 -1
- package/_assets/{StoreSettings-BpkjL6md.js → StoreSettings-BNhzJJib.js} +1 -1
- package/_assets/{Success-BXjczKuA.js → Success-Cnu7oCbI.js} +1 -1
- package/_assets/{SwapController-CA7wAH0n.js → SwapController-BD23YCPw.js} +1 -1
- package/_assets/{Tooltip-BoJS18Z3.js → Tooltip-tAvMrdFp.js} +1 -1
- package/_assets/{TradeService-DsmKoPxy.js → TradeService-a2JgoWq2.js} +1 -1
- package/_assets/{W3MFrameProviderSingleton-DKeivVWe.js → W3MFrameProviderSingleton-CPDmjNiA.js} +3 -3
- package/_assets/{WebCryptoP256-CJPdW9Ug.js → WebCryptoP256-DIEJtB0I.js} +1 -1
- package/_assets/{authorizations-2Xd-ft_C.js → authorizations-HgwrWkaa.js} +1 -1
- package/_assets/{basic-CpO7N7NV.js → basic-B3qEjJvY.js} +1 -1
- package/_assets/{biconomy-HF5uwOUc.js → biconomy-CzcDC8vB.js} +1 -1
- package/_assets/{builder-uBBMnbtK.js → builder-TZGldT6a.js} +1 -1
- package/_assets/{buy-CgUGATyG.js → buy-CuFubBZY.js} +1 -1
- package/_assets/{buy-gasless-CVTH5KGZ.js → buy-gasless-DO6cBuJ3.js} +1 -1
- package/_assets/{categories-yTyOCTA2.js → categories-B3DJZe02.js} +54 -54
- package/_assets/{ccip-Bq1h60c1.js → ccip-CB03B_MW.js} +1 -1
- package/_assets/{ccip-BjT8ndU2.js → ccip-VI2-jJnV.js} +1 -1
- package/_assets/collectionPage.styles-DXfFyRiH.js +49 -0
- package/_assets/{controller-CBtSaaQD.js → controller-CEo6ipG_.js} +2 -2
- package/_assets/{core-CIuOeePP.js → core-DmqfUS4f.js} +4 -4
- package/_assets/{createSvgIcon-Dax4uwaL.js → createSvgIcon-WfOAVB94.js} +4 -4
- package/_assets/{custom-CYUokIbm.js → custom-bIxIBqCn.js} +1 -1
- package/_assets/{data-capture-6P55-IaB.js → data-capture-Dtaj6ehs.js} +1 -1
- package/_assets/disposePreview-5vjiqVZ0.js +1 -0
- package/_assets/{email-nYmfz15C.js → email-DBXWS-p0.js} +1 -1
- package/_assets/{embedded-wallet-D_e_UWzV.js → embedded-wallet-DqlpsZRk.js} +1 -1
- package/_assets/{emotion-styled.browser.esm-s1GWUoDX.js → emotion-styled.browser.esm-pOAX0dMa.js} +1 -1
- package/_assets/{engine-CpLQoIqI.js → engine-gP8vp-2g.js} +1 -1
- package/_assets/{errors-hu6Xw0D2.js → errors-WNvNILsF.js} +1 -1
- package/_assets/{estimate-l1-fee-CLRDa6fI.js → estimate-l1-fee-X1cvAsdL.js} +1 -1
- package/_assets/{execute-DqPg9Ksw.js → execute-V2l_cDAW.js} +2 -2
- package/_assets/{features-BtrrmffG.js → features-CFR_-yBt.js} +1 -1
- package/_assets/{fetchTokenMetadata-DFJ36WnI.js → fetchTokenMetadata-Do5GLuIQ.js} +2 -2
- package/_assets/{field.styles-XpeJ0COA.js → field.styles-ciG_OcBi.js} +1 -1
- package/_assets/{get-ecosystem-wallet-info-DlCx83R8.js → get-ecosystem-wallet-info-CyDTxLgQ.js} +1 -1
- package/_assets/{getBalance-B5ocM9g2.js → getBalance-7wKu8RUe.js} +1 -1
- package/_assets/{getNFT-oiyevCuO.js → getNFT-BbpUiMXR.js} +1 -1
- package/_assets/{getNFT-DBaH5cpy.js → getNFT-DecLUThv.js} +1 -1
- package/_assets/{grid.styles-Dpb8Greh.js → grid.styles-Caahz6PS.js} +1 -1
- package/_assets/{hashTypedData-CeLfcFPQ.js → hashTypedData-C9kgxiiE.js} +1 -1
- package/_assets/{hashTypedData-NanWeJ-D.js → hashTypedData-Ca524zaX.js} +1 -1
- package/_assets/hero-credits-mobile-C9Muog4T.webp +0 -0
- package/_assets/{in-app-DfEVZ7ts.js → in-app-B-disnkm.js} +1 -1
- package/_assets/{in-app-wallet-calls-CaankqgP.js → in-app-wallet-calls-3yighozE.js} +1 -1
- package/_assets/{index-De-xiANX.js → index--1pBMb8n.js} +1 -1
- package/_assets/{index-BNnBkkJr.js → index-2-BWsekC.js} +1 -1
- package/_assets/{index-DxUWfPTE.js → index-8xcbpK09.js} +1 -1
- package/_assets/{index-Dyf04oQ8.js → index-B6l73M7K.js} +1 -1
- package/_assets/{index-BJ6fvgAM.js → index-BBX5Tona.js} +1 -1
- package/_assets/{index-_l18b6D8.js → index-BLCTVSaC.js} +1 -1
- package/_assets/{index-CYd-9A8i.js → index-BMFVFrWl.js} +3 -3
- package/_assets/{index-CaH_IfZ9.js → index-BQB7qYN1.js} +1 -1
- package/_assets/index-BYP7oMPZ.css +1 -0
- package/_assets/{index-BMGdvlP9.js → index-Bd7SNoIN.js} +2 -2
- package/_assets/{index-OiVd03k_.js → index-BdQllJHM.js} +1 -1
- package/_assets/{index-Cbb2oZ2Y.js → index-BjEDpwxR.js} +1 -1
- package/_assets/{index-B4WRMX84.js → index-BrU_i04f.js} +1 -1
- package/_assets/{index-BGSoCmOn.js → index-BuImQh6o.js} +1 -1
- package/_assets/{index-COqbI5lZ.js → index-C3MGLBUO.js} +1 -1
- package/_assets/index-C616xNgB.js +3699 -0
- package/_assets/{index-DI0-gUeO.js → index-CAl290ro.js} +1 -1
- package/_assets/{index-BPoXI4qO.js → index-CEDBhmGn.js} +1 -1
- package/_assets/{index-C8Cm7Ukd.js → index-CEnhHz30.js} +1 -1
- package/_assets/{index-BC1n3NBn.js → index-CFziwAGz.js} +1 -1
- package/_assets/{index-DJxot5zE.js → index-CGcb9Mz3.js} +1 -1
- package/_assets/{index-DxD-NQZ2.js → index-CKkE-eRE.js} +1 -1
- package/_assets/{index-cpjoojGa.js → index-CONyzZZC.js} +3 -3
- package/_assets/{index-BHzYL11-.js → index-CO_xP_3N.js} +1 -1
- package/_assets/{index-BqVSjccZ.js → index-CUAEZ5zJ.js} +1 -1
- package/_assets/index-CZBUgvRB.js +1 -0
- package/_assets/{index-BXdpk7Oq.js → index-CdFrv2eV.js} +1 -1
- package/_assets/{index-zPBk9zxn.js → index-CjhGjrdW.js} +1 -1
- package/_assets/{index-w9D58X3R.js → index-CmlH9TBP.js} +1 -1
- package/_assets/{index-enm6a-Yh.js → index-CyITvpDL.js} +1 -1
- package/_assets/{index-UiKz3U--.js → index-D58OkhU1.js} +1 -1
- package/_assets/{index-BKYIrw8q.js → index-D9iAFl4E.js} +1 -1
- package/_assets/{index-CWMeoaW8.js → index-DCAUOF_r.js} +1 -1
- package/_assets/{index-B-kvIPu1.js → index-DCMLwiSR.js} +1 -1
- package/_assets/{index-CPOch-_L.js → index-DEw1jYQT.js} +1 -1
- package/_assets/{index-Bry4nBQ3.js → index-DJOlt1Iv.js} +1 -1
- package/_assets/{index-Bu9Qy6np.js → index-DKghJgJj.js} +1 -1
- package/_assets/{index-CaRe7gid.js → index-DNvcQt0s.js} +3 -3
- package/_assets/{index-jzVm2M_d.js → index-DRI1gQSo.js} +1 -1
- package/_assets/{index-gR7VkXwX.js → index-DUmo7598.js} +3 -3
- package/_assets/{index-BccvdHMd.js → index-Dag4zALf.js} +1 -1
- package/_assets/index-DsH_mBtT.js +622 -0
- package/_assets/{index-BntzHAg5.js → index-DvjyzmjB.js} +1 -1
- package/_assets/{index-T6PQTPj1.js → index-DxB85HDB.js} +1 -1
- package/_assets/{index-ChhX0J8g.js → index-Eip3e8N8.js} +1 -1
- package/_assets/{index-CQMg581G.js → index-Gw3Mauv_.js} +1 -1
- package/_assets/{index-CkvT2_Qp.js → index-JuH5W7YS.js} +2 -2
- package/_assets/{index-D9avTVnT.js → index-N5sgh9IC.js} +1 -1
- package/_assets/{index-CIJje8vF.js → index-o0b8cjRQ.js} +1 -1
- package/_assets/{index-Deo0xkWr.js → index-p0fxtTsZ.js} +2 -2
- package/_assets/{index-FaWeourd.js → index-p4Ph7ugv.js} +1 -1
- package/_assets/{index-B0jVlmk0.js → index-tCYP1O3W.js} +1 -1
- package/_assets/{index-BZQS2qMR.js → index-yiECqJCb.js} +1 -1
- package/_assets/{index.es-DZrZt1nk.js → index.es-C5PJ78RX.js} +1 -1
- package/_assets/{index.es-COh1P5q0.js → index.es-D73EniUm.js} +1 -1
- package/_assets/{index.es-DKfCNVgZ.js → index.es-DF_hlZIu.js} +4 -4
- package/_assets/{localBatchGatewayRequest-BI4PJuWG.js → localBatchGatewayRequest-DvkdRgNo.js} +1 -1
- package/_assets/{networks-Blxn8DDe.js → networks-7b-i0dnd.js} +1 -1
- package/_assets/{onramp-Dy-wl2-G.js → onramp-CoF8bFaS.js} +1 -1
- package/_assets/{openzeppelin-BMYbmCTg.js → openzeppelin-DcsEW8tQ.js} +1 -1
- package/_assets/{parseNft-C3NZ6wub.js → parseNft-CNJ2CwyE.js} +2 -2
- package/_assets/{parseSignature-DYiE9TKW.js → parseSignature-D0-1k6Yx.js} +1 -1
- package/_assets/{parseSignature-C_OIotiZ.js → parseSignature-whU_pkfu.js} +3 -3
- package/_assets/{passkeys-B1XwJZLc.js → passkeys-SqHHDvyI.js} +1 -1
- package/_assets/{pay-with-exchange-CNHEYWhj.js → pay-with-exchange-Cvr7dd94.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-xYKFPsA7.js → qr-overlay-HlBTd234.js} +1 -1
- package/_assets/{receive-CZ46hzUV.js → receive-HPltMi_i.js} +1 -1
- package/_assets/{resolveImplementation-CjcXKJyr.js → resolveImplementation-CM1yFlGf.js} +1 -1
- package/_assets/{rpc-CcyaVsGv.js → rpc-CPS_djFB.js} +1 -1
- package/_assets/{secp256k1-CKJqWWFY.js → secp256k1-CQmdb_AD.js} +1 -1
- package/_assets/{secp256k1-CtAF_8et.js → secp256k1-ChRNiO68.js} +1 -1
- package/_assets/{secp256k1-ZiNVKyYC.js → secp256k1-DUTfCpIK.js} +1 -1
- package/_assets/{send-batch-transaction-BjDzAjfB.js → send-batch-transaction-Vn4JOFM5.js} +1 -1
- package/_assets/{send-eip712-transaction-C_cuPsBN.js → send-eip712-transaction-Qvibiwhe.js} +2 -2
- package/_assets/{send-gasless-transaction-nJMNrEi5.js → send-gasless-transaction-DQLcvFHt.js} +2 -2
- package/_assets/{send-transaction-DlrF4JVI.js → send-transaction-CZ0kapdy.js} +2 -2
- package/_assets/{send-C3JUT-Wt.js → send-zy_Vr6BQ.js} +1 -1
- package/_assets/{sendMetaTransaction-CYTRgQS4.js → sendMetaTransaction-Ba_-1nOk.js} +1 -1
- package/_assets/{sendRawTransaction-CrjHCLLH.js → sendRawTransaction-BUz1EYd8.js} +3 -3
- package/_assets/{serializeTransaction-DCwr_uqm.js → serializeTransaction-B8qCVIIu.js} +1 -1
- package/_assets/{session-proposal-Cr_4TYaU.js → session-proposal-BqO43SKO.js} +1 -1
- package/_assets/{session-request-VECe4LIn.js → session-request-DbQI-hjo.js} +2 -2
- package/_assets/{signing-DsQKDYvj.js → signing-CVGndCRE.js} +3 -3
- package/_assets/{skeleton.styles-B5haYcet.js → skeleton.styles-K9f1Sxf1.js} +1 -1
- package/_assets/{socials-B80b3Xbl.js → socials-CNOGl_eO.js} +1 -1
- package/_assets/{styled-qF6AFIDl.js → styled-CljNQW-J.js} +1 -1
- package/_assets/{swaps-9KfTzTvK.js → swaps-D5haogfk.js} +1 -1
- package/_assets/{thirdweb-C31f21KI.js → thirdweb-CC2bk-Up.js} +3 -3
- package/_assets/{to-serializable-transaction-DRO125BM.js → to-serializable-transaction-BB0M9pw8.js} +2 -2
- package/_assets/{transactionReceipt-D2IEagp9.js → transactionReceipt-puJsrtjz.js} +1 -1
- package/_assets/{transactions-COJcFMl1.js → transactions-BnYHwdat.js} +1 -1
- package/_assets/{useCreditPacks-UUgawD-U.js → useCreditPacks-xyyhS_80.js} +1 -1
- package/_assets/{useImportable-DdzyhNKj.js → useImportable-Bh7jH6e9.js} +1 -1
- package/_assets/{useInfiniteGrid-CWAXtPPS.js → useInfiniteGrid-CV4TXaLn.js} +1 -1
- package/_assets/{useTheme-nSt_zjh9.js → useTheme-Czw2-J4G.js} +1 -1
- package/_assets/{verifyHash-3joPxTRt.js → verifyHash-CAYWYGEG.js} +1 -1
- package/_assets/{w3m-modal-fllBGzZL.js → w3m-modal-DtofW43q.js} +1 -1
- package/_assets/{w3m-modal-BdMUp7-V.js → w3m-modal-Fr29zvJe.js} +1 -1
- package/_assets/{wait-for-tx-receipt-DLk5rirA.js → wait-for-tx-receipt-mfzWqQ40.js} +1 -1
- package/_assets/{wallets-p_5_3A7U.js → wallets-DT2LKaVF.js} +5 -5
- package/_assets/{web-connector-B1ItZy3i.js → web-connector-4TZSYYzx.js} +3 -3
- package/_assets/{writeContract-_6f7I-3C.js → writeContract-CEQ0n4-z.js} +1 -1
- package/_assets/{zoraTestnet-BegtFmVb.js → zoraTestnet-Cd1Th5ww.js} +1 -1
- package/index.html +11 -11
- package/package.json +2 -2
- package/_assets/Activity-Cx-gKp62.js +0 -381
- package/_assets/AnimatedBackground-yDvJglBx.js +0 -97
- package/_assets/Cart-C4zUzYSx.js +0 -669
- package/_assets/CollectionCarousel-BAwS8rTZ.js +0 -804
- package/_assets/LazyEmoteControls-BUp4tFZX.js +0 -2
- package/_assets/ManaPricingBanner.styles-Dj_122X4.js +0 -74
- package/_assets/collectionPage.styles-BOOK4JE1.js +0 -48
- package/_assets/disposePreview-C6zVmkpS.js +0 -1
- package/_assets/index-BL2RPpVH.js +0 -3390
- package/_assets/index-C3zA3tgr.js +0 -519
- package/_assets/index-D-NhBWWr.css +0 -1
- package/_assets/index-sW8OdK66.js +0 -1
- 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-C616xNgB.js";import{c as ke,i as $e,R as Ce,u as Se}from"./useImportable-Bh7jH6e9.js";import{S as Le,C as Ie}from"./ManaPricingBanner.styles-Bb7BS6EM.js";import{F as Y}from"./Faq-D03YByjo.js";import{C as H}from"./field.styles-ciG_OcBi.js";import"./dcl-schemas-CmtP3U6y.js";import"./sentry-Dx-KuLV3.js";import"./ethers-BDpbhgX6.js";import"./intl-CBcMB1D2.js";import"./buy-CuFubBZY.js";import"./authorizations-HgwrWkaa.js";import"./sendMetaTransaction-Ba_-1nOk.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};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{i as b,b as l,a as O}from"./lit-element-B3y9oplH.js";import{n as h,r as d}from"./class-map-CxwNmq0D.js";import{d as C,r as E,e as P}from"./index-
|
|
1
|
+
import{i as b,b as l,a as O}from"./lit-element-B3y9oplH.js";import{n as h,r as d}from"./class-map-CxwNmq0D.js";import{d as C,r as E,e as P}from"./index-DNvcQt0s.js";import{c as v,U as x}from"./index-tCYP1O3W.js";import"./index-CAl290ro.js";import"./index-p4Ph7ugv.js";import{u as g,R as S,o as $,b as R,S as T}from"./W3MFrameProviderSingleton-CPDmjNiA.js";const L=C`
|
|
2
2
|
:host {
|
|
3
3
|
position: relative;
|
|
4
4
|
display: inline-block;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{c1 as j,u as k,c2 as g,c3 as _,
|
|
1
|
+
import{c1 as j,u as k,c2 as g,c3 as _,ak as M,al as h,c4 as F,c5 as I,c6 as R,c7 as V,j as z,T as O,c8 as L}from"./index-C616xNgB.js";import{c9 as Me,ca as Oe,cb as we,K as $e,cc as Ee,cd as Pe,ce as Te,cf as je,cg as ke,w as _e,ch as Fe,ci as Ie,cj as Re,ck as Ve,cl as ze}from"./index-C616xNgB.js";import{u as Ae}from"./useTheme-Czw2-J4G.js";import{s as He,s as Be}from"./styled-CljNQW-J.js";import{j as A}from"./react-BYHuwl8r.js";import"./dcl-schemas-CmtP3U6y.js";import"./sentry-Dx-KuLV3.js";import"./ethers-BDpbhgX6.js";import"./intl-CBcMB1D2.js";function C(e){const{theme:t,name:n,props:s}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?s:j(t.components[n].defaultProps,s)}function H({props:e,name:t,defaultTheme:n,themeId:s}){let r=k(n);return r=r[s]||r,C({theme:r,name:t,props:e})}function $(e,t=0,n=1){return _(e,t,n)}function B(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(s=>s+s)),n?`rgb${n.length===4?"a":""}(${n.map((s,r)=>r<3?parseInt(s,16):Math.round(parseInt(s,16)/255*1e3)/1e3).join(", ")})`:""}function U(e){const t=e.toString(16);return t.length===1?`0${t}`:t}function f(e){if(e.type)return e;if(e.charAt(0)==="#")return f(B(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error(g(9,e));let s=e.substring(t+1,e.length-1),r;if(n==="color"){if(s=s.split(" "),r=s.shift(),s.length===4&&s[3].charAt(0)==="/"&&(s[3]=s[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(r)===-1)throw new Error(g(10,r))}else s=s.split(",");return s=s.map(o=>parseFloat(o)),{type:n,values:s,colorSpace:r}}function S(e){const{type:t,colorSpace:n}=e;let{values:s}=e;return t.indexOf("rgb")!==-1?s=s.map((r,o)=>o<3?parseInt(r,10):r):t.indexOf("hsl")!==-1&&(s[1]=`${s[1]}%`,s[2]=`${s[2]}%`),t.indexOf("color")!==-1?s=`${n} ${s.join(" ")}`:s=`${s.join(", ")}`,`${t}(${s})`}function ie(e){if(e.indexOf("#")===0)return e;const{values:t}=f(e);return`#${t.map((n,s)=>U(s===3?Math.round(255*n):n)).join("")}`}function G(e){e=f(e);const{values:t}=e,n=t[0],s=t[1]/100,r=t[2]/100,o=s*Math.min(r,1-r),p=(c,m=(c+n/30)%12)=>r-o*Math.max(Math.min(m-3,9-m,1),-1);let l="rgb";const i=[Math.round(p(0)*255),Math.round(p(8)*255),Math.round(p(4)*255)];return e.type==="hsla"&&(l+="a",i.push(t[3])),S({type:l,values:i})}function w(e){e=f(e);let t=e.type==="hsl"||e.type==="hsla"?f(G(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function oe(e,t){const n=w(e),s=w(t);return(Math.max(n,s)+.05)/(Math.min(n,s)+.05)}function pe(e,t){return e=f(e),t=$(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,S(e)}function W(e,t){if(e=f(e),t=$(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]*=1-t;return S(e)}function D(e,t){if(e=f(e),t=$(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return S(e)}function ue(e,t=.15){return w(e)>.5?W(e,t):D(e,t)}const K=["defaultProps","mixins","overrides","palette","props","styleOverrides"],N=["type","mode"];function me(e){const{defaultProps:t={},mixins:n={},overrides:s={},palette:r={},props:o={},styleOverrides:p={}}=e,l=M(e,K),i=h({},l,{components:{}});Object.keys(t).forEach(a=>{const u=i.components[a]||{};u.defaultProps=t[a],i.components[a]=u}),Object.keys(o).forEach(a=>{const u=i.components[a]||{};u.defaultProps=o[a],i.components[a]=u}),Object.keys(p).forEach(a=>{const u=i.components[a]||{};u.styleOverrides=p[a],i.components[a]=u}),Object.keys(s).forEach(a=>{const u=i.components[a]||{};u.styleOverrides=s[a],i.components[a]=u}),i.spacing=F(e.spacing);const c=I(e.breakpoints||{}),m=i.spacing;i.mixins=h({gutters:(a={})=>h({paddingLeft:m(2),paddingRight:m(2)},a,{[c.up("sm")]:h({paddingLeft:m(3),paddingRight:m(3)},a[c.up("sm")])})},n);const{type:y,mode:x}=r,v=M(r,N),b=x||y||"light";return i.palette=h({text:{hint:b==="dark"?"rgba(255, 255, 255, 0.5)":"rgba(0, 0, 0, 0.38)"},mode:b,type:b},v),i}function le(e,...t){return R(V({unstable_strictMode:!0},e),...t)}let E=!1;function ce(e){return E||(console.warn(["MUI: createStyles from @mui/material/styles is deprecated.","Please use @mui/styles/createStyles"].join(`
|
|
2
2
|
`)),E=!0),e}function P(e){return String(parseFloat(e)).length===String(e).length}function q(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function d(e){return parseFloat(e)}function J(e){return(t,n)=>{const s=q(t);if(s===n)return t;let r=d(t);s!=="px"&&(s==="em"||s==="rem")&&(r=d(t)*d(e));let o=r;if(n!=="px")if(n==="em")o=r/d(e);else if(n==="rem")o=r/d(e);else return t;return parseFloat(o.toFixed(5))+n}}function Q({size:e,grid:t}){const n=e-e%t,s=n+t;return e-n<s-e?n:s}function X({lineHeight:e,pixels:t,htmlFontSize:n}){return t/(e*n)}function Y({cssProperty:e,min:t,max:n,unit:s="rem",breakpoints:r=[600,900,1200],transform:o=null}){const p={[e]:`${t}${s}`},l=(n-t)/r[r.length-1];return r.forEach(i=>{let c=t+l*i;o!==null&&(c=o(c)),p[`@media (min-width:${i}px)`]={[e]:`${Math.round(c*1e4)/1e4}${s}`}}),p}function he(e,t={}){const{breakpoints:n=["sm","md","lg"],disableAlign:s=!1,factor:r=2,variants:o=["h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","caption","button","overline"]}=t,p=h({},e);p.typography=h({},p.typography);const l=p.typography,i=J(l.htmlFontSize),c=n.map(m=>p.breakpoints.values[m]);return o.forEach(m=>{const y=l[m];if(!y)return;const x=parseFloat(i(y.fontSize,"rem"));if(x<=1)return;const v=x,b=1+(v-1)/r;let{lineHeight:a}=y;if(!P(a)&&!s)throw new Error(g(6));P(a)||(a=parseFloat(i(a,"rem"))/parseFloat(x));let u=null;s||(u=T=>Q({size:T,grid:X({pixels:4,lineHeight:a,htmlFontSize:l.htmlFontSize})})),l[m]=h({},y,Y({cssProperty:"fontSize",min:b,max:v,unit:"rem",breakpoints:c,transform:u}))}),p}function fe({props:e,name:t}){return H({props:e,name:t,defaultTheme:z,themeId:O})}const Z=["theme"];function de(e){let{theme:t}=e,n=M(e,Z);const s=t[O];return A.jsx(L,h({},n,{themeId:s?O:void 0,theme:s||t}))}function ge(){throw new Error(g(14))}function ye(){throw new Error(g(15))}function xe(){throw new Error(g(16))}function be(){throw new Error(g(20))}export{Me as Experimental_CssVarsProvider,Oe as StyledEngineProvider,O as THEME_ID,de as ThemeProvider,me as adaptV4Theme,pe as alpha,we as createMuiTheme,ce as createStyles,R as createTheme,$e as css,W as darken,f as decomposeColor,Ee as duration,Pe as easing,ue as emphasize,He as experimentalStyled,Te as experimental_extendTheme,be as experimental_sx,oe as getContrastRatio,je as getInitColorSchemeScript,w as getLuminance,ke as getOverlayAlpha,B as hexToRgb,G as hslToRgb,_e as keyframes,D as lighten,ge as makeStyles,Fe as private_createMixins,Ie as private_createTypography,Re as private_excludeVariablesFromRoot,S as recomposeColor,he as responsiveFontSizes,ie as rgbToHex,Ve as shouldSkipGeneratingVar,Be as styled,le as unstable_createMuiStrictModeTheme,q as unstable_getUnit,d as unstable_toUnitless,ze as useColorScheme,Ae as useTheme,fe as useThemeProps,ye as withStyles,xe as withTheme};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{w as k,i as W,b as v}from"./lit-element-B3y9oplH.js";import{n as y}from"./class-map-CxwNmq0D.js";import{c as I}from"./index-
|
|
1
|
+
import{w as k,i as W,b as v}from"./lit-element-B3y9oplH.js";import{n as y}from"./class-map-CxwNmq0D.js";import{c as I}from"./index-tCYP1O3W.js";import"./index-CEnhHz30.js";import{Q as M}from"./browser-DxF-qILS.js";import{d as O,r as N}from"./index-DNvcQt0s.js";const Q=.1,_=2.5,$=7;function x(t,a,d){return t===a?!1:(t-a<0?a-t:t-a)<=d+Q}function A(t,a){const d=Array.prototype.slice.call(M.create(t,{errorCorrectionLevel:a}).modules.data,0),l=Math.sqrt(d.length);return d.reduce((h,f,p)=>(p%l===0?h.push([f]):h[h.length-1].push(f))&&h,[])}const q={generate({uri:t,size:a,logoSize:d,padding:l=8,dotColor:h="var(--apkt-colors-black)"}){const p=[],u=A(t,"Q"),n=(a-2*l)/u.length,E=[{x:0,y:0},{x:1,y:0},{x:0,y:1}];E.forEach(({x:i,y:e})=>{const s=(u.length-$)*n*i+l,r=(u.length-$)*n*e+l,c=.45;for(let o=0;o<E.length;o+=1){const m=n*($-o*2);p.push(k`
|
|
2
2
|
<rect
|
|
3
3
|
fill=${o===2?"var(--apkt-colors-black)":"var(--apkt-colors-white)"}
|
|
4
4
|
width=${o===0?m-10:m}
|