@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,2 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["_assets/index-CZBUgvRB.js","_assets/react-BYHuwl8r.js","_assets/dcl-schemas-CmtP3U6y.js","_assets/index-C616xNgB.js","_assets/sentry-Dx-KuLV3.js","_assets/ethers-BDpbhgX6.js","_assets/intl-CBcMB1D2.js","_assets/index-BYP7oMPZ.css","_assets/createSvgIcon-WfOAVB94.js","_assets/clsx-WwvpwSg0.js","_assets/styled-CljNQW-J.js","_assets/emotion-styled.browser.esm-pOAX0dMa.js","_assets/CircularProgress-K7JjSpPZ.js","_assets/index-DxB85HDB.js","_assets/useTheme-Czw2-J4G.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{_ as e}from"./index-C616xNgB.js";import{j as t,r as s}from"./react-BYHuwl8r.js";const _=s.lazy(async()=>{const[{EmoteControls:o},{Experimental_CssVarsProvider:i},{light:n}]=await Promise.all([e(()=>import("./index-CZBUgvRB.js").then(r=>r.i),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12])),e(()=>import("./index-DxB85HDB.js"),__vite__mapDeps([13,3,1,2,4,5,6,7,14,10])),e(()=>import("./index-C616xNgB.js").then(r=>r.d8),__vite__mapDeps([3,1,2,4,5,6,7]))]);return{default:r=>t.jsx(i,{theme:n,children:t.jsx(o,{...r})})}});function m(o){return t.jsx(s.Suspense,{fallback:null,children:t.jsx(_,{...o})})}export{m as E};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as o,j as f}from"./react-BYHuwl8r.js";import{s as p,B as m,b as s}from"./index-
|
|
1
|
+
import{r as o,j as f}from"./react-BYHuwl8r.js";import{s as p,B as m,b as s}from"./index-C616xNgB.js";const j=p.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
justify-content: center;
|
|
4
4
|
padding: 28px 0 8px;
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import{r as g,j as t,L as u}from"./react-BYHuwl8r.js";import{t as s,s as e,ba as C,C as m,bb as b,b as r}from"./index-C616xNgB.js";function j({size:o=17,...a}){const i=`credit-mark-${g.useId()}`;return t.jsxs("svg",{viewBox:"0 0 16.9985 16.9985",width:o,height:o,fill:"none","aria-hidden":!0,focusable:"false",...a,children:[t.jsx("defs",{children:t.jsxs("linearGradient",{id:i,x1:"-0.513692",y1:"8.51179",x2:"29.4301",y2:"5.69069",gradientUnits:"userSpaceOnUse",children:[t.jsx("stop",{stopColor:s.colors.dclRed}),t.jsx("stop",{offset:"1",stopColor:s.colors.flareAmber})]})}),t.jsx("path",{d:"M11.866 0.605075L16.4734 5.29355L16.4148 11.8658L11.7253 16.4742L5.15405 16.4156L0.545653 11.7271L0.604247 5.1539L5.29175 0.546481L11.866 0.605075Z",fill:`url(#${i})`,stroke:`url(#${i})`,strokeWidth:"1.04738"}),t.jsx("path",{d:"M9.14405 10.9365C9.51965 10.9365 9.87384 10.8794 10.2067 10.7653C10.5395 10.6512 10.7938 10.5371 10.9697 10.423L11.4975 11.4749L12.0252 12.5268C11.8017 12.717 11.4166 12.9095 10.8699 13.1045C10.3279 13.2994 9.68605 13.3969 8.94437 13.3969C8.25023 13.3969 7.59651 13.2756 6.98319 13.0332C6.36988 12.7907 5.82551 12.4507 5.35007 12.0133C4.87939 11.5759 4.51093 11.0625 4.24468 10.4729C3.97844 9.87864 3.84532 9.23205 3.84532 8.53316C3.84532 7.83427 3.97844 7.18767 4.24468 6.59338C4.51093 5.99433 4.87939 5.4761 5.35007 5.0387C5.82075 4.59655 6.36275 4.25423 6.97606 4.01176C7.59413 3.76453 8.25023 3.64092 8.94437 3.64092C9.68605 3.64092 10.3279 3.73838 10.8699 3.93331C11.4166 4.12824 11.8017 4.32079 12.0252 4.51097L10.9697 6.61477C10.7938 6.50067 10.5395 6.38656 10.2067 6.27246C9.87384 6.15835 9.51965 6.1013 9.14405 6.1013C8.67812 6.1013 8.27876 6.17024 7.94595 6.30812C7.6179 6.44599 7.34928 6.63141 7.14009 6.86438C6.9309 7.09734 6.77638 7.35645 6.67654 7.64171C6.58145 7.92698 6.53391 8.21699 6.53391 8.51176C6.53391 8.81129 6.58145 9.10606 6.67654 9.39607C6.77638 9.68133 6.9309 9.94045 7.14009 10.1734C7.34928 10.4064 7.6179 10.5918 7.94595 10.7297C8.27876 10.8675 8.67812 10.9365 9.14405 10.9365Z",fill:s.colors.white})]})}const{colors:l,font:w}=s,$=e.p`
|
|
2
|
+
display: flex;
|
|
3
|
+
align-items: center;
|
|
4
|
+
gap: 4px;
|
|
5
|
+
margin: 0;
|
|
6
|
+
font-family: ${w.sans};
|
|
7
|
+
font-size: 16px;
|
|
8
|
+
line-height: normal;
|
|
9
|
+
color: ${l.text};
|
|
10
|
+
|
|
11
|
+
&[data-align='center'] {
|
|
12
|
+
justify-content: center;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
/* The peg is stated on a white modal AND on the violet migration page, so the line carries the two
|
|
16
|
+
skins the design gives it. On dark the whole line is white — the "=" loses its grey step, which
|
|
17
|
+
would read as struck-through type against the page. */
|
|
18
|
+
&[data-tone='on-dark'] {
|
|
19
|
+
color: ${l.white};
|
|
20
|
+
}
|
|
21
|
+
`,h=e.span`
|
|
22
|
+
font-weight: 600;
|
|
23
|
+
`,p=e.span`
|
|
24
|
+
font-weight: 400;
|
|
25
|
+
`,y=e.span`
|
|
26
|
+
font-size: 14px;
|
|
27
|
+
font-weight: 600;
|
|
28
|
+
line-height: 1.57;
|
|
29
|
+
color: ${l.muted1};
|
|
30
|
+
|
|
31
|
+
[data-tone='on-dark'] & {
|
|
32
|
+
color: inherit;
|
|
33
|
+
}
|
|
34
|
+
`;function S({align:o,tone:a,className:i}){const c=C(m.nameSingular),d=b(1).toFixed(2),f=r("creditRate.usdLabel");return t.jsxs($,{className:i,"data-align":o,"data-tone":a,"data-testid":"credit-rate","aria-label":r("creditRate.aria",{unit:c,usd:d}),children:[t.jsx(j,{}),t.jsxs("span",{children:[t.jsx(h,{children:"1"})," ",t.jsx(p,{children:c})]}),t.jsx(y,{"aria-hidden":!0,children:r("creditRate.equals")}),t.jsxs("span",{children:[t.jsx(p,{children:f})," ",t.jsx(h,{children:d})]})]})}const{colors:n,font:L,media:k,radius:x}=s,R=e.div`
|
|
35
|
+
display: flex;
|
|
36
|
+
align-items: center;
|
|
37
|
+
gap: 8px;
|
|
38
|
+
padding: 12px 8px 12px 16px;
|
|
39
|
+
border-radius: ${x.btn};
|
|
40
|
+
background: ${n.promptLilac};
|
|
41
|
+
font-family: ${L.sans};
|
|
42
|
+
`,T=e(R)`
|
|
43
|
+
justify-content: space-between;
|
|
44
|
+
background: ${n.promptAmber};
|
|
45
|
+
|
|
46
|
+
/* Side by side the sentence and the cta can't both fit a phone, so the cta drops to its own line. */
|
|
47
|
+
${k.maxWidth("mobile")} {
|
|
48
|
+
flex-direction: column;
|
|
49
|
+
align-items: flex-start;
|
|
50
|
+
}
|
|
51
|
+
`,U=e.div`
|
|
52
|
+
display: flex;
|
|
53
|
+
align-items: center;
|
|
54
|
+
gap: 8px;
|
|
55
|
+
|
|
56
|
+
& .ico {
|
|
57
|
+
flex: none;
|
|
58
|
+
color: ${n.text};
|
|
59
|
+
}
|
|
60
|
+
`,z=e.p`
|
|
61
|
+
margin: 0;
|
|
62
|
+
font-size: 14px;
|
|
63
|
+
font-weight: 400;
|
|
64
|
+
line-height: 1.334;
|
|
65
|
+
color: ${n.text2};
|
|
66
|
+
`,E=e.strong`
|
|
67
|
+
font-weight: 700;
|
|
68
|
+
`,B=e(u)`
|
|
69
|
+
flex: none;
|
|
70
|
+
display: inline-flex;
|
|
71
|
+
align-items: center;
|
|
72
|
+
justify-content: center;
|
|
73
|
+
height: 40px;
|
|
74
|
+
padding: 0 12px;
|
|
75
|
+
border-radius: ${x.card};
|
|
76
|
+
font-size: 13px;
|
|
77
|
+
font-weight: 600;
|
|
78
|
+
line-height: 24px;
|
|
79
|
+
letter-spacing: 0.46px;
|
|
80
|
+
text-transform: uppercase;
|
|
81
|
+
text-decoration: underline;
|
|
82
|
+
/* The banner's own ink, not the accent purple: on the amber fill the link is the only thing to the
|
|
83
|
+
right of the sentence, so it reads as the action without a colour of its own. */
|
|
84
|
+
color: ${n.text};
|
|
85
|
+
|
|
86
|
+
&:hover {
|
|
87
|
+
color: ${n.gray0};
|
|
88
|
+
}
|
|
89
|
+
&:focus-visible {
|
|
90
|
+
outline: 2px solid ${n.text};
|
|
91
|
+
outline-offset: 2px;
|
|
92
|
+
}
|
|
93
|
+
`;export{E as A,U as B,S as C,T as R,R as S,z as T,B as a};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import{r as d,j as t,L as st,b as nt,u as ot}from"./react-BYHuwl8r.js";import{t as n,s as i,b as o,I as
|
|
1
|
+
import{r as d,j as t,L as st,b as nt,u as ot}from"./react-BYHuwl8r.js";import{t as n,s as i,b as o,I as w,x as rt,o as it,ba as me,v as Q,B as at,ar as V,as as Z,H as ct,c as Ie,bF as lt,bG as dt}from"./index-C616xNgB.js";import{a as pt}from"./builder-TZGldT6a.js";import{L as mt}from"./LoadMore-CMAFsns3.js";import{u as ut,R as X,C as ft,a as xt,F as ht,e as ue}from"./categories-B3DJZe02.js";import{D as fe,F as xe,R as gt,a as yt,b as bt,c as wt,d as jt,S as $t,e as St,f as kt,g as vt,h as Ct,i as It,j as At,k as Pt,C as Et,l as Rt,m as Tt,n as Ot,M as Ft}from"./Assets.styles-BUHnZ7Nb.js";import{u as _t}from"./useInfiniteGrid-CV4TXaLn.js";import{u as zt}from"./useImportable-Bh7jH6e9.js";import{E as he}from"./ErrorNotice-CnPcFEw_.js";import{C as Bt,R as Nt,B as Lt,T as Mt,A as Kt,a as Gt}from"./ManaPricingBanner.styles-Bb7BS6EM.js";import{C as qt}from"./field.styles-ciG_OcBi.js";import{n as Ae}from"./Tooltip-tAvMrdFp.js";import"./dcl-schemas-CmtP3U6y.js";import"./sentry-Dx-KuLV3.js";import"./ethers-BDpbhgX6.js";import"./intl-CBcMB1D2.js";import"./skeleton.styles-K9f1Sxf1.js";import"./buy-CuFubBZY.js";import"./authorizations-HgwrWkaa.js";import"./sendMetaTransaction-Ba_-1nOk.js";const{colors:m,font:Pe,radius:te,z:Dt}=n,Ht=i.div`
|
|
2
2
|
position: fixed;
|
|
3
3
|
inset: 0;
|
|
4
|
-
z-index: ${
|
|
4
|
+
z-index: ${Dt.overlay};
|
|
5
5
|
display: flex;
|
|
6
6
|
align-items: center;
|
|
7
7
|
justify-content: center;
|
|
@@ -26,20 +26,20 @@ import{r as d,j as t,L as st,b as nt,u as ot}from"./react-BYHuwl8r.js";import{t
|
|
|
26
26
|
&:focus {
|
|
27
27
|
outline: none;
|
|
28
28
|
}
|
|
29
|
-
`,
|
|
29
|
+
`,Ut=i.div`
|
|
30
30
|
display: flex;
|
|
31
31
|
align-items: center;
|
|
32
32
|
justify-content: space-between;
|
|
33
33
|
gap: 8px;
|
|
34
34
|
padding-bottom: 16px;
|
|
35
35
|
border-bottom: 1px solid ${m.gray4};
|
|
36
|
-
`,
|
|
36
|
+
`,Yt=i.h2`
|
|
37
37
|
margin: 0;
|
|
38
38
|
font-weight: 600;
|
|
39
39
|
font-size: 20px;
|
|
40
40
|
line-height: 1.6;
|
|
41
41
|
color: ${m.text};
|
|
42
|
-
`,
|
|
42
|
+
`,Jt=i.button`
|
|
43
43
|
position: relative;
|
|
44
44
|
flex: none;
|
|
45
45
|
display: grid;
|
|
@@ -66,30 +66,30 @@ import{r as d,j as t,L as st,b as nt,u as ot}from"./react-BYHuwl8r.js";import{t
|
|
|
66
66
|
outline: 2px solid ${m.accent};
|
|
67
67
|
outline-offset: 2px;
|
|
68
68
|
}
|
|
69
|
-
`,
|
|
69
|
+
`,Qt=i.div`
|
|
70
70
|
padding: 16px;
|
|
71
71
|
border-radius: ${te.modal};
|
|
72
72
|
background: ${m.infoGreen};
|
|
73
73
|
display: flex;
|
|
74
74
|
flex-direction: column;
|
|
75
75
|
gap: 12px;
|
|
76
|
-
`,
|
|
76
|
+
`,Vt=i.h3`
|
|
77
77
|
margin: 0;
|
|
78
78
|
font-weight: 600;
|
|
79
79
|
font-size: 20px;
|
|
80
80
|
line-height: 1.57;
|
|
81
81
|
color: ${m.text};
|
|
82
|
-
`,
|
|
82
|
+
`,Zt=i.p`
|
|
83
83
|
margin: 0;
|
|
84
84
|
font-weight: 500;
|
|
85
85
|
font-size: 14px;
|
|
86
86
|
line-height: 1.334;
|
|
87
87
|
color: ${m.text2};
|
|
88
|
-
`,
|
|
88
|
+
`,Xt=i.div`
|
|
89
89
|
display: flex;
|
|
90
90
|
flex-direction: column;
|
|
91
91
|
gap: 8px;
|
|
92
|
-
`,
|
|
92
|
+
`,es=i.div`
|
|
93
93
|
display: flex;
|
|
94
94
|
align-items: center;
|
|
95
95
|
gap: 12px;
|
|
@@ -100,7 +100,7 @@ import{r as d,j as t,L as st,b as nt,u as ot}from"./react-BYHuwl8r.js";import{t
|
|
|
100
100
|
align-items: center;
|
|
101
101
|
justify-content: center;
|
|
102
102
|
gap: 8px;
|
|
103
|
-
height:
|
|
103
|
+
height: 46px;
|
|
104
104
|
padding: 0 12px;
|
|
105
105
|
border-radius: ${te.card};
|
|
106
106
|
font-family: ${Pe.sans};
|
|
@@ -118,16 +118,16 @@ import{r as d,j as t,L as st,b as nt,u as ot}from"./react-BYHuwl8r.js";import{t
|
|
|
118
118
|
outline: 2px solid ${m.accent};
|
|
119
119
|
outline-offset: 2px;
|
|
120
120
|
}
|
|
121
|
-
`,
|
|
121
|
+
`,ts=i.button`
|
|
122
122
|
${Ee};
|
|
123
|
-
border:
|
|
123
|
+
border: 0.5px solid ${m.text};
|
|
124
124
|
background: ${m.white};
|
|
125
|
-
color: ${m.
|
|
125
|
+
color: ${m.text2};
|
|
126
126
|
|
|
127
127
|
&:hover {
|
|
128
|
-
background: ${m.
|
|
128
|
+
background: ${m.panel};
|
|
129
129
|
}
|
|
130
|
-
`,
|
|
130
|
+
`,ss=i.button`
|
|
131
131
|
${Ee};
|
|
132
132
|
border: 0;
|
|
133
133
|
background: ${m.accent};
|
|
@@ -139,7 +139,7 @@ import{r as d,j as t,L as st,b as nt,u as ot}from"./react-BYHuwl8r.js";import{t
|
|
|
139
139
|
&:active {
|
|
140
140
|
background: ${m.accentActive};
|
|
141
141
|
}
|
|
142
|
-
`,
|
|
142
|
+
`,ns=i.label`
|
|
143
143
|
display: flex;
|
|
144
144
|
align-items: center;
|
|
145
145
|
justify-content: center;
|
|
@@ -147,7 +147,7 @@ import{r as d,j as t,L as st,b as nt,u as ot}from"./react-BYHuwl8r.js";import{t
|
|
|
147
147
|
line-height: normal;
|
|
148
148
|
color: ${m.text};
|
|
149
149
|
cursor: pointer;
|
|
150
|
-
`,
|
|
150
|
+
`,os=i.span`
|
|
151
151
|
flex: none;
|
|
152
152
|
display: grid;
|
|
153
153
|
place-items: center;
|
|
@@ -157,7 +157,7 @@ import{r as d,j as t,L as st,b as nt,u as ot}from"./react-BYHuwl8r.js";import{t
|
|
|
157
157
|
& input {
|
|
158
158
|
--box: 13.714px;
|
|
159
159
|
}
|
|
160
|
-
`;function
|
|
160
|
+
`;function rs({onClose:s,onConfirm:l}){const[p,x]=d.useState(!1),b=d.useRef(null),E=d.useRef(p);return E.current=p,d.useEffect(()=>{var C;(C=b.current)==null||C.focus();function y(a){a.key==="Escape"&&s(E.current)}return window.addEventListener("keydown",y),()=>window.removeEventListener("keydown",y)},[s]),t.jsx(Ht,{role:"presentation",onClick:()=>s(p),children:t.jsxs(Wt,{ref:b,tabIndex:-1,role:"dialog","aria-modal":"true","aria-label":o("newPricing.title"),"data-testid":"new-pricing-modal",onClick:y=>y.stopPropagation(),children:[t.jsxs(Ut,{children:[t.jsx(Yt,{children:o("newPricing.title")}),t.jsx(Jt,{onClick:()=>s(p),"aria-label":o("newPricing.close"),children:t.jsx(w,{name:"close",className:"ico"})})]}),t.jsxs(Qt,{children:[t.jsx(Vt,{children:o("newPricing.infoTitle")}),t.jsx(Zt,{children:o("newPricing.infoBody")})]}),t.jsx(Bt,{align:"center"}),t.jsxs(Xt,{children:[t.jsxs(es,{children:[t.jsx(ts,{onClick:()=>s(p),"data-testid":"new-pricing-later",children:o("newPricing.later")}),t.jsx(ss,{onClick:()=>l(p),"data-testid":"new-pricing-confirm",children:o("newPricing.confirm")})]}),t.jsxs(ns,{children:[t.jsx(os,{children:t.jsx(qt,{type:"checkbox",checked:p,onChange:y=>x(y.target.checked),"data-testid":"new-pricing-opt-out"})}),o("newPricing.optOut")]})]})]})})}const Re="shop:dismissed-prompts",ge="mana-pricing";function Te(){try{const s=localStorage.getItem(Re);if(!s)return{};const l=JSON.parse(s);return!l||typeof l!="object"||Array.isArray(l)?{}:l}catch{return{}}}function is(s){try{localStorage.setItem(Re,JSON.stringify(s))}catch{}}function Oe(s){return s?s.toLowerCase():null}function as(s,l){const p=Oe(l);if(!p)return!1;const x=Te()[p];return Array.isArray(x)&&x.includes(s)}function cs(s,l){const p=Oe(l);if(!p)return;const x=Te(),b=Array.isArray(x[p])?x[p]:[];b.includes(s)||is({...x,[p]:[...b,s]})}function ls({count:s,to:l="/import",className:p}){return t.jsxs(Nt,{className:p,"data-testid":"mana-pricing-banner",children:[t.jsxs(Lt,{children:[t.jsx(w,{name:"refresh",size:24}),t.jsxs(Mt,{children:[o("manaPricingBanner.lead",{count:s})," ",t.jsx(Kt,{children:o("manaPricingBanner.accent")})," ",o("manaPricingBanner.trail")]})]}),t.jsx(Gt,{to:l,"data-testid":"mana-pricing-banner-cta",children:o("manaPricingBanner.cta")})]})}i.div`
|
|
161
161
|
display: flex;
|
|
162
162
|
flex-direction: column;
|
|
163
163
|
gap: 4px;
|
|
@@ -197,7 +197,7 @@ import{r as d,j as t,L as st,b as nt,u as ot}from"./react-BYHuwl8r.js";import{t
|
|
|
197
197
|
outline: 2px solid ${n.colors.accent};
|
|
198
198
|
outline-offset: 2px;
|
|
199
199
|
}
|
|
200
|
-
`;i(
|
|
200
|
+
`;i(w)`
|
|
201
201
|
width: 18px;
|
|
202
202
|
height: 18px;
|
|
203
203
|
flex: none;
|
|
@@ -240,7 +240,7 @@ import{r as d,j as t,L as st,b as nt,u as ot}from"./react-BYHuwl8r.js";import{t
|
|
|
240
240
|
outline: 2px solid ${n.colors.accent};
|
|
241
241
|
outline-offset: 2px;
|
|
242
242
|
}
|
|
243
|
-
`;const
|
|
243
|
+
`;const ds=i.div`
|
|
244
244
|
display: flex;
|
|
245
245
|
align-items: center;
|
|
246
246
|
gap: 8px;
|
|
@@ -254,12 +254,12 @@ import{r as d,j as t,L as st,b as nt,u as ot}from"./react-BYHuwl8r.js";import{t
|
|
|
254
254
|
&:focus-within {
|
|
255
255
|
border-color: ${n.colors.accent};
|
|
256
256
|
}
|
|
257
|
-
`,
|
|
257
|
+
`,ps=i(w)`
|
|
258
258
|
width: 18px;
|
|
259
259
|
height: 18px;
|
|
260
260
|
flex: none;
|
|
261
261
|
color: ${n.colors.muted};
|
|
262
|
-
`,
|
|
262
|
+
`,ms=i.input`
|
|
263
263
|
flex: 1;
|
|
264
264
|
min-width: 0;
|
|
265
265
|
border: 0;
|
|
@@ -275,7 +275,7 @@ import{r as d,j as t,L as st,b as nt,u as ot}from"./react-BYHuwl8r.js";import{t
|
|
|
275
275
|
&:focus {
|
|
276
276
|
outline: 0;
|
|
277
277
|
}
|
|
278
|
-
`,
|
|
278
|
+
`,us=i.button`
|
|
279
279
|
display: grid;
|
|
280
280
|
place-items: center;
|
|
281
281
|
width: 24px;
|
|
@@ -291,7 +291,7 @@ import{r as d,j as t,L as st,b as nt,u as ot}from"./react-BYHuwl8r.js";import{t
|
|
|
291
291
|
outline: 2px solid ${n.colors.accent};
|
|
292
292
|
outline-offset: 2px;
|
|
293
293
|
}
|
|
294
|
-
`,
|
|
294
|
+
`,fs=i(w)`
|
|
295
295
|
width: 12px;
|
|
296
296
|
height: 12px;
|
|
297
297
|
`,ye=i.div`
|
|
@@ -339,7 +339,7 @@ import{r as d,j as t,L as st,b as nt,u as ot}from"./react-BYHuwl8r.js";import{t
|
|
|
339
339
|
font-size: 14px;
|
|
340
340
|
line-height: 1.5;
|
|
341
341
|
color: ${n.colors.muted};
|
|
342
|
-
`,
|
|
342
|
+
`,xs=i(st)`
|
|
343
343
|
margin-top: 12px;
|
|
344
344
|
display: inline-flex;
|
|
345
345
|
align-items: center;
|
|
@@ -357,7 +357,7 @@ import{r as d,j as t,L as st,b as nt,u as ot}from"./react-BYHuwl8r.js";import{t
|
|
|
357
357
|
&:hover {
|
|
358
358
|
background: ${n.colors.accentHover};
|
|
359
359
|
}
|
|
360
|
-
`,
|
|
360
|
+
`,hs=i.section`
|
|
361
361
|
max-width: 520px;
|
|
362
362
|
margin: 48px auto;
|
|
363
363
|
text-align: center;
|
|
@@ -365,17 +365,17 @@ import{r as d,j as t,L as st,b as nt,u as ot}from"./react-BYHuwl8r.js";import{t
|
|
|
365
365
|
flex-direction: column;
|
|
366
366
|
gap: 16px;
|
|
367
367
|
align-items: center;
|
|
368
|
-
`,
|
|
368
|
+
`,gs=i.h1`
|
|
369
369
|
margin: 0;
|
|
370
370
|
font-family: ${n.font.sans};
|
|
371
371
|
font-weight: 700;
|
|
372
372
|
font-size: 24px;
|
|
373
|
-
color: ${n.colors.
|
|
374
|
-
`,
|
|
373
|
+
color: ${n.colors.softWhite};
|
|
374
|
+
`,ys=i.p`
|
|
375
375
|
margin: 0;
|
|
376
376
|
font-family: ${n.font.sans};
|
|
377
377
|
font-size: 15px;
|
|
378
|
-
color: ${n.colors.
|
|
379
|
-
`,
|
|
378
|
+
color: ${n.colors.gray4};
|
|
379
|
+
`,bs=i(ls)`
|
|
380
380
|
margin-bottom: 16px;
|
|
381
|
-
`,
|
|
381
|
+
`,ws=48,Se=[{key:"wearables",labelKey:"myAssets.sectionWearables",category:"wearable"},{key:"emotes",labelKey:"myAssets.sectionEmotes",category:"emote"},{key:"names",labelKey:"myAssets.sectionNames",category:"ens"},{key:"creations",labelKey:"myAssets.sectionCreations"}],ee=[{key:"newest",label:"filterBar.sortNewest",server:"newest"},{key:"name",label:"filterBar.sortName",server:"name"},{key:"cheapest",label:"filterBar.sortCheapest",server:"cheapest"}];function ke(s){return s==="wearables"||s==="emotes"}const ve={wearables:"wearable",emotes:"emote",names:"names",creations:""},js={wearable:"wearables",emote:"emotes",names:"names"};function $s(s){return`${Ie.builderUrl}/names/${encodeURIComponent(s)}`}function Ce(s,l){return{id:s.id,name:s.name,creator:"",contractAddress:s.contractAddress,itemId:s.itemId,category:s.category,rarity:s.rarity??"common",network:s.network,chainId:s.chainId,thumbnail:s.image,priceCredits:(l==null?void 0:l.priceCredits)??s.listingPrice??0,gender:null,isSmart:!1,tokenId:s.tokenId,issuedId:s.issuedId,tradeId:(l==null?void 0:l.tradeId)??s.tradeId}}function Ss(s,l,p){return{id:`${s.contractAddress}-${s.blockchainItemId}`,name:s.name,creator:p,contractAddress:s.contractAddress,itemId:s.blockchainItemId,category:s.category,rarity:s.rarity,network:"MATIC",chainId:Ie.chainId,thumbnail:s.thumbnail,priceCredits:l,gender:null,isSmart:!1}}function Ds(){var de,pe;rt({title:o("nav.myAssets"),noindex:!0});const{session:s,error:l,signIn:p,restore:x}=it(),b=nt(),[E,y]=ot(),C=E.get("section"),a=Se.some(e=>e.key===C)?C:"wearables",[f,M]=d.useState("all"),[j,K]=d.useState([]),[h,R]=d.useState(null);ut(`${a}:${h??""}`);const[I,Fe]=d.useState("newest"),[T,se]=d.useState(""),[$,_e]=d.useState(""),[O,S]=d.useState(!1),[ze,Be]=d.useState(!0),[Ne,Le]=d.useState(!1),[G,ne]=d.useState("idle");d.useEffect(()=>{x()},[x]),d.useEffect(()=>{const e=setTimeout(()=>_e(T.trim()),300);return()=>clearTimeout(e)},[T]),d.useEffect(()=>{if(!O)return;const e=c=>{c.key==="Escape"&&S(!1)};document.addEventListener("keydown",e);const r=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.removeEventListener("keydown",e),document.body.style.overflow=r}},[O]);const g=s==null?void 0:s.address,Me=Se.find(e=>e.key===a),F=ke(a),oe=(ee.find(e=>e.key===I)??ee[0]).server,Ke=f==="on_sale"?o("filter.onSale"):f==="not_for_sale"?o("filter.notForSale"):"",Ge=X.filter(e=>j.includes(e)).map(me).join(", ");function re(e){y(r=>{const c=new URLSearchParams(r);return c.set("section",e),c},{replace:!0}),R(null),ke(e)||K([]),S(!1)}function ie(e){K(r=>r.includes(e)?r.filter(c=>c!==e):[...r,e])}function qe(e){const r=js[e];r&&re(r)}const{items:A,total:De,isLoading:q,isPlaceholderData:D,error:He,hasNextPage:We,isFetchingNextPage:ae,isFetchNextPageError:Ue,fetchNextPage:Ye}=_t(["my-assets",g,a,f,j,h,$,oe],e=>ct(g,{category:Me.category,first:ws,skip:e,search:$||void 0,rarities:F&&j.length?j:void 0,wearableCategories:a==="wearables"&&h?ue[h]:void 0,emoteCategories:a==="emotes"&&h?ue[h]:void 0,onlyOnSale:f==="on_sale"||void 0,sortBy:oe}).then(r=>({items:r.assets,total:r.total})),{enabled:!!g&&a!=="creations"}),H=d.useMemo(()=>a==="wearables"||a==="emotes"?[...new Set(A.map(e=>e.contractAddress))]:[],[A,a]),{data:_}=Q({queryKey:["secondary-sale-state",H],enabled:H.length>0,queryFn:async()=>{const e=await Promise.all(H.map(async c=>[c,await lt(c)])),r={};for(const[c,u]of e)for(const[k,v]of Object.entries(u))r[`${c}-${k}`]=v;return r}}),ce=e=>_==null?void 0:_[`${e.contractAddress}-${e.tokenId}`],Je=e=>!!ce(e)||e.isOnSale,W=d.useMemo(()=>f==="not_for_sale"?A.filter(e=>!Je(e)):A,[A,f,_]),{data:z,isLoading:U,isError:Qe}=Q({queryKey:["publishable-items",g],queryFn:()=>pt(g,s.identity),enabled:!!s&&a==="creations",retry:!1}),Y=d.useMemo(()=>[...new Set((z??[]).map(e=>e.contractAddress))],[z]),{data:B}=Q({queryKey:["collection-sale-state",g,Y],enabled:Y.length>0,queryFn:async()=>{const e=await Promise.all(Y.map(async c=>[c,await dt(c)])),r={};for(const[c,u]of e)for(const[k,v]of Object.entries(u))r[`${c}-${k}`]=v;return r}}),P=e=>B==null?void 0:B[`${e.contractAddress}-${e.blockchainItemId}`],J=d.useMemo(()=>{let e=z??[];if(f==="on_sale"?e=e.filter(c=>{var u;return(u=P(c))==null?void 0:u.isOnSale}):f==="not_for_sale"&&(e=e.filter(c=>{var u;return!((u=P(c))!=null&&u.isOnSale)})),$){const c=$.toLowerCase();e=e.filter(u=>u.name.toLowerCase().includes(c))}const r=[...e];return I==="name"?r.sort((c,u)=>c.name.localeCompare(u.name)):I==="cheapest"&&r.sort((c,u)=>{var k,v;return(((k=P(c))==null?void 0:k.priceCredits)??0)-(((v=P(u))==null?void 0:v.priceCredits)??0)}),r},[z,B,f,$,I]),{count:Ve}=zt(),N=Ve??0;d.useEffect(()=>{G!=="idle"||N===0||as(ge,g)||ne("open")},[G,N,g]);function le(e){e&&cs(ge,g),ne("closed")}if(!s)return t.jsxs(hs,{children:[t.jsx(gs,{children:o("nav.myAssets")}),t.jsx(ys,{children:o("myAssets.signInPrompt")}),t.jsx(at,{variant:"purple",onClick:()=>p(),children:o("storeSettings.signIn")}),t.jsx(he,{message:l})]});const Ze=a==="creations"?U:q||D,Xe=a==="creations"?J.length:f==="not_for_sale"?W.length:De,L=[];if(f!=="all"&&L.push({key:"status",label:f==="on_sale"?o("filter.onSale"):o("filter.notForSale"),onRemove:()=>M("all")}),F)for(const e of X)j.includes(e)&&L.push({key:`rarity-${e}`,label:me(e),onRemove:()=>ie(e)});if(F&&h){const e=(pe=(de=ft.find(r=>r.key===ve[a]))==null?void 0:de.subs)==null?void 0:pe.find(r=>r.key===h);L.push({key:"sub",label:e?o(e.labelKey):h,onRemove:()=>R(null)})}function et(){M("all"),K([]),R(null)}const tt=t.jsxs(t.Fragment,{children:[t.jsx(xt,{title:o("myAssets.assetsHeading"),category:ve[a],subCategory:h,onCategory:qe,onSub:R,onCollections:()=>re("creations"),collections:a==="creations",extraLabelKey:"myAssets.sectionCreations",hideAll:!0}),F?t.jsxs(t.Fragment,{children:[t.jsx(fe,{}),t.jsx(xe,{title:o("assets.rarity"),open:Ne,onToggle:()=>Le(e=>!e),summary:Ge,headerTestId:"sidebar-section-toggle",children:t.jsx(gt,{"data-testid":"rarity-filter",children:X.map(e=>{const r=j.includes(e);return t.jsxs(yt,{type:"button",selected:r,"aria-pressed":r,onClick:()=>ie(e),"data-testid":"rarity-filter-check",children:[t.jsx(bt,{color:n.rarities[e],children:r?t.jsx(wt,{name:"check","aria-hidden":!0}):null}),t.jsx(jt,{selected:r,children:e})]},e)})})})]}):null,t.jsx(fe,{}),t.jsx(xe,{title:o("filter.status"),open:ze,onToggle:()=>Be(e=>!e),summary:Ke,children:[["all",o("filter.statusAll")],["on_sale",o("filter.onSale")],["not_for_sale",o("filter.notForSale")]].map(([e,r])=>t.jsxs($t,{children:[t.jsx(St,{type:"radio",name:"myassets-status",checked:f===e,onChange:()=>M(e)}),t.jsx(kt,{children:r})]},e))})]});return t.jsxs(vt,{"data-testid":"my-assets",children:[O?t.jsx(Ct,{onClick:()=>S(!1),"aria-hidden":!0}):null,t.jsxs(It,{"data-open":O||void 0,"data-testid":"my-assets-sidebar",children:[t.jsxs(At,{children:[t.jsx(Pt,{children:o("assets.filters")}),t.jsx(Et,{onClick:()=>S(!1),"aria-label":o("assets.closeFilters"),children:"✕"})]}),t.jsx(Rt,{children:tt}),t.jsx(Tt,{children:t.jsx(Ot,{type:"button",onClick:()=>S(!1),children:o("assets.showItems")})})]}),t.jsxs(Ft,{children:[N>0?t.jsx(bs,{count:N}):null,t.jsx(ht,{sort:I,onSort:Fe,sortOptions:ee,total:Xe,loading:Ze,query:$,onOpenFilters:()=>S(!0),chips:L,onClearChips:et,search:t.jsxs(ds,{children:[t.jsx(ps,{name:"search","aria-hidden":!0}),t.jsx(ms,{type:"search",value:T,placeholder:o("myAssets.searchPlaceholder"),"aria-label":o("myAssets.searchPlaceholder"),onChange:e=>se(e.target.value)}),T?t.jsx(us,{type:"button","aria-label":o("myAssets.clearSearch"),onClick:()=>se(""),children:t.jsx(fs,{name:"close","aria-hidden":!0})}):null]})}),(a==="creations"?Qe:He)?t.jsx(he,{message:o("myAssets.ownedError"),testId:"my-assets-error"}):null,a==="creations"?t.jsxs(t.Fragment,{children:[t.jsx(ye,{"data-testid":"grid",children:U?t.jsx(V,{count:12}):J.map(e=>{const r=P(e);return t.jsx(Z,{item:Ss(e,(r==null?void 0:r.priceCredits)??0,g??""),mode:"manage-link"},`${e.contractAddress}-${e.blockchainItemId}`)})}),!U&&J.length===0?t.jsxs(be,{children:[t.jsx(we,{children:t.jsx(w,{name:"pen",size:30,"aria-hidden":!0})}),t.jsx(je,{children:o("myAssets.emptyCreationsTitle")}),t.jsx($e,{children:o("myAssets.nothingToPublish")})]}):null]}):t.jsxs(t.Fragment,{children:[t.jsxs(ye,{"data-testid":"grid",children:[q||D?t.jsx(V,{count:12}):W.map(e=>a==="names"?t.jsx(Z,{item:{...Ce(e),category:"ens"},mode:"manage-link",manageHref:$s(e.name)},e.id):t.jsx(Z,{item:Ce(e,ce(e)),mode:"manage-link"},e.id)),ae?t.jsx(V,{count:6}):null]}),f!=="not_for_sale"?t.jsx(mt,{hasNextPage:We,isFetching:ae,isError:Ue,onLoadMore:()=>void Ye()}):null,!q&&!D&&W.length===0?t.jsxs(be,{children:[t.jsx(we,{children:t.jsx(w,{name:a==="names"?"website":a==="emotes"?"emote-dance":"cat-upper",size:30,"aria-hidden":!0})}),t.jsx(je,{children:a==="names"?o("myAssets.emptyNamesTitle"):o("myAssets.emptyOwnedTitle")}),t.jsx($e,{children:a==="names"?o("myAssets.namesEmpty"):o("myAssets.ownedEmpty")}),a!=="names"?t.jsx(xs,{to:"/items",children:o("myAssets.emptyBrowse")}):null]}):null]})]}),G==="open"?t.jsx(rs,{onClose:le,onConfirm:e=>{le(e),b("/import")}}):null]})}export{Ds as MyAssets};
|
|
@@ -1,12 +1,15 @@
|
|
|
1
|
-
import{L as C,r as m,j as t}from"./react-BYHuwl8r.js";import{s,t as b,x as j,b as o,
|
|
1
|
+
import{L as C,r as m,j as t}from"./react-BYHuwl8r.js";import{s,t as b,x as j,b as o,ao as d,ap as k,aq as w,ar as F,as as E}from"./index-C616xNgB.js";import{L as $}from"./LoadMore-CMAFsns3.js";import{E as L}from"./ErrorNotice-CnPcFEw_.js";import{G as M}from"./grid.styles-Caahz6PS.js";import"./dcl-schemas-CmtP3U6y.js";import"./sentry-Dx-KuLV3.js";import"./ethers-BDpbhgX6.js";import"./intl-CBcMB1D2.js";const{colors:i,radius:h}=b,B=s.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
align-items: baseline;
|
|
4
4
|
gap: 12px;
|
|
5
5
|
margin-bottom: 20px;
|
|
6
|
-
`,_=s.
|
|
7
|
-
|
|
6
|
+
`,_=s.h1`
|
|
7
|
+
margin: 0;
|
|
8
|
+
color: ${i.softWhite};
|
|
9
|
+
`,z=s.span`
|
|
10
|
+
color: ${i.gray4};
|
|
8
11
|
font-size: 14px;
|
|
9
|
-
`,
|
|
12
|
+
`,H=s.p`
|
|
10
13
|
display: flex;
|
|
11
14
|
align-items: center;
|
|
12
15
|
gap: 10px;
|
|
@@ -17,7 +20,7 @@ import{L as C,r as m,j as t}from"./react-BYHuwl8r.js";import{s,t as b,x as j,b a
|
|
|
17
20
|
margin-bottom: 14px;
|
|
18
21
|
font-weight: 600;
|
|
19
22
|
font-size: 14px;
|
|
20
|
-
`,
|
|
23
|
+
`,W=s.div`
|
|
21
24
|
display: flex;
|
|
22
25
|
flex-direction: column;
|
|
23
26
|
align-items: flex-start;
|
|
@@ -52,10 +55,8 @@ import{L as C,r as m,j as t}from"./react-BYHuwl8r.js";import{s,t as b,x as j,b a
|
|
|
52
55
|
gap: 24px;
|
|
53
56
|
min-height: 50vh;
|
|
54
57
|
padding: 48px 16px;
|
|
55
|
-
background: ${i.white};
|
|
56
|
-
border-radius: 16px;
|
|
57
58
|
text-align: center;
|
|
58
|
-
color: ${i.
|
|
59
|
+
color: ${i.softWhite};
|
|
59
60
|
`,I=s.img`
|
|
60
61
|
width: 138px;
|
|
61
62
|
height: 138px;
|
|
@@ -70,13 +71,13 @@ import{L as C,r as m,j as t}from"./react-BYHuwl8r.js";import{s,t as b,x as j,b a
|
|
|
70
71
|
font-size: 20px;
|
|
71
72
|
font-weight: 700;
|
|
72
73
|
line-height: 1.6;
|
|
73
|
-
`,
|
|
74
|
+
`,T=s.p`
|
|
74
75
|
margin: 0;
|
|
75
76
|
max-width: 520px;
|
|
76
77
|
font-size: 16px;
|
|
77
78
|
font-weight: 400;
|
|
78
79
|
line-height: 1.6;
|
|
79
|
-
`,
|
|
80
|
+
`,V=s(C)`
|
|
80
81
|
display: inline-flex;
|
|
81
82
|
align-items: center;
|
|
82
83
|
justify-content: center;
|
|
@@ -102,4 +103,4 @@ import{L as C,r as m,j as t}from"./react-BYHuwl8r.js";import{s,t as b,x as j,b a
|
|
|
102
103
|
outline: 2px solid ${i.accent};
|
|
103
104
|
outline-offset: 2px;
|
|
104
105
|
}
|
|
105
|
-
`,A="data:image/svg+xml,%3csvg%20width='138'%20height='138'%20viewBox='0%200%20138%20138'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M92.7188%2021.5625V34.5'%20stroke='%23FF7158'%20stroke-width='4.3125'%20stroke-linecap='round'/%3e%3cpath%20d='M86.25%2028.0312H99.1875'%20stroke='%23FF7158'%20stroke-width='4.3125'%20stroke-linecap='round'/%3e%3cpath%20d='M24.7324%2065.5C24.732%2062.8042%2025.2665%2060.1361%2026.3037%2057.6514C27.341%2055.1665%2028.8602%2052.9151%2030.7715%2051.0293C32.6826%2049.1438%2034.9471%2047.6604%2037.4326%2046.666C39.9183%2045.6716%2042.5762%2045.1856%2045.25%2045.2354L45.3008%2045.2363H45.3516C48.581%2045.2192%2051.7779%2045.8923%2054.7305%2047.2109C56.1717%2047.8547%2057.539%2048.6448%2058.8115%2049.5674C60.1459%2050.5348%2061.3766%2051.6478%2062.4795%2052.8887L65.6426%2056.4473L68.8057%2052.8887C69.9086%2051.6478%2071.1392%2050.5348%2072.4736%2049.5674C73.7464%2048.6446%2075.1142%2047.8547%2076.5557%2047.2109C79.5083%2045.8922%2082.705%2045.2191%2085.9346%2045.2363H85.9854L86.0361%2045.2354C88.7097%2045.1856%2091.367%2045.6717%2093.8525%2046.666C96.3383%2047.6604%2098.6034%2049.1436%20100.515%2051.0293C102.426%2052.9151%20103.945%2055.1665%20104.982%2057.6514C106.02%2060.1361%20106.554%2062.8043%20106.554%2065.5V65.501C106.554%2074.0645%20102.382%2082.1039%2095.8086%2089.877C89.2296%2097.6565%2080.6704%20104.682%2072.6035%20111.289C71.1421%20112.486%2069.6963%20113.67%2068.2959%20114.832C66.7887%20116.083%2064.5293%20116.081%2063.0176%20114.818C61.4894%20113.542%2059.9072%20112.242%2058.3076%20110.928C50.2836%20104.335%2041.8192%2097.3643%2035.3242%2089.6553C28.8376%2081.9561%2024.7324%2073.9982%2024.7324%2065.501V65.5Z'%20stroke='url(%23paint0_linear_favorites_empty)'%20stroke-width='8.46429'/%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_favorites_empty'%20x1='17.6552'%20y1='80.505'%20x2='176.469'%20y2='63.4051'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23FF2D55'/%3e%3cstop%20offset='1'%20stop-color='%23FFBC5B'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e",g=24;function
|
|
106
|
+
`,A="data:image/svg+xml,%3csvg%20width='138'%20height='138'%20viewBox='0%200%20138%20138'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M92.7188%2021.5625V34.5'%20stroke='%23FF7158'%20stroke-width='4.3125'%20stroke-linecap='round'/%3e%3cpath%20d='M86.25%2028.0312H99.1875'%20stroke='%23FF7158'%20stroke-width='4.3125'%20stroke-linecap='round'/%3e%3cpath%20d='M24.7324%2065.5C24.732%2062.8042%2025.2665%2060.1361%2026.3037%2057.6514C27.341%2055.1665%2028.8602%2052.9151%2030.7715%2051.0293C32.6826%2049.1438%2034.9471%2047.6604%2037.4326%2046.666C39.9183%2045.6716%2042.5762%2045.1856%2045.25%2045.2354L45.3008%2045.2363H45.3516C48.581%2045.2192%2051.7779%2045.8923%2054.7305%2047.2109C56.1717%2047.8547%2057.539%2048.6448%2058.8115%2049.5674C60.1459%2050.5348%2061.3766%2051.6478%2062.4795%2052.8887L65.6426%2056.4473L68.8057%2052.8887C69.9086%2051.6478%2071.1392%2050.5348%2072.4736%2049.5674C73.7464%2048.6446%2075.1142%2047.8547%2076.5557%2047.2109C79.5083%2045.8922%2082.705%2045.2191%2085.9346%2045.2363H85.9854L86.0361%2045.2354C88.7097%2045.1856%2091.367%2045.6717%2093.8525%2046.666C96.3383%2047.6604%2098.6034%2049.1436%20100.515%2051.0293C102.426%2052.9151%20103.945%2055.1665%20104.982%2057.6514C106.02%2060.1361%20106.554%2062.8043%20106.554%2065.5V65.501C106.554%2074.0645%20102.382%2082.1039%2095.8086%2089.877C89.2296%2097.6565%2080.6704%20104.682%2072.6035%20111.289C71.1421%20112.486%2069.6963%20113.67%2068.2959%20114.832C66.7887%20116.083%2064.5293%20116.081%2063.0176%20114.818C61.4894%20113.542%2059.9072%20112.242%2058.3076%20110.928C50.2836%20104.335%2041.8192%2097.3643%2035.3242%2089.6553C28.8376%2081.9561%2024.7324%2073.9982%2024.7324%2065.501V65.5Z'%20stroke='url(%23paint0_linear_favorites_empty)'%20stroke-width='8.46429'/%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_favorites_empty'%20x1='17.6552'%20y1='80.505'%20x2='176.469'%20y2='63.4051'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23FF2D55'/%3e%3cstop%20offset='1'%20stop-color='%23FFBC5B'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e",g=24;function X(){j({title:o("nav.myFavorites"),noindex:!0});const a=d(e=>Object.values(e.items)),c=d(e=>e.status),f=d(e=>e.retry),[l,u]=m.useState(g),{data:p,isPending:y,isError:v}=k(),x=a.some(e=>!!e.manaWei),n=m.useMemo(()=>a.map(e=>({...e,priceCredits:w(e,p)})),[a,p]);if(c==="error")return t.jsxs(W,{"data-testid":"favorites-error",children:[t.jsx(L,{message:o("myFavorites.loadError")}),t.jsx(G,{type:"button",onClick:f,children:o("myFavorites.tryAgain")})]});if(c==="ready"&&n.length===0)return t.jsxs(S,{"data-testid":"favorites-empty",children:[t.jsx(I,{src:A,alt:"",width:138,height:138}),t.jsxs(P,{children:[t.jsx(R,{children:o("myFavorites.emptyTitle")}),t.jsx(T,{children:o("myFavorites.emptyBody")})]}),t.jsx(V,{to:"/items",children:o("myFavorites.emptyCta")})]});const r=c==="loading"||y&&x;return t.jsxs("section",{children:[t.jsxs(B,{children:[t.jsx(_,{children:o("nav.myFavorites")}),r?null:t.jsx(z,{children:o("myFavorites.itemCount",{count:n.length})})]}),v&&x?t.jsx(H,{children:o("assets.marketUnavailable")}):null,t.jsx(M,{"data-testid":r?"favorites-loading":void 0,children:r?t.jsx(F,{count:8}):n.slice(0,l).map(e=>t.jsx(E,{item:e},e.id))}),t.jsx($,{hasNextPage:!r&&l<n.length,isFetching:!1,onLoadMore:()=>u(e=>e+g)})]})}export{X as MyFavorites};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as t,L as e}from"./react-BYHuwl8r.js";import{s as n,I as i,x as s,b as o,B as a}from"./index-
|
|
1
|
+
import{j as t,L as e}from"./react-BYHuwl8r.js";import{s as n,I as i,x as s,b as o,B as a}from"./index-C616xNgB.js";import"./dcl-schemas-CmtP3U6y.js";import"./sentry-Dx-KuLV3.js";import"./ethers-BDpbhgX6.js";import"./intl-CBcMB1D2.js";const r=n.div`
|
|
2
2
|
min-height: 52vh;
|
|
3
3
|
display: flex;
|
|
4
4
|
flex-direction: column;
|