@dcl/shop 0.10.1-31040959942.commit-e9e6433 → 0.10.1-31047879016.commit-2c3846e
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/_assets/Activity-5KZahW4a.js +371 -0
- package/_assets/AnimatedBackground-CtA-lb0z.js +97 -0
- package/_assets/{Assets-UkGI952T.js → Assets-B-cgdG2V.js} +8 -8
- package/_assets/{Assets.styles-D1Vg-U1C.js → Assets.styles-CI8Un36f.js} +140 -132
- package/_assets/{Authorizations-B3yDMR41.js → Authorizations-94ctJx1t.js} +28 -26
- package/_assets/Cart-BNVSJOrw.js +707 -0
- package/_assets/{CircularProgress-CB62Wg9m.js → CircularProgress-CpjqStGb.js} +1 -1
- package/_assets/{Collection-CSv9R6xZ.js → Collection-CZJ9SSN3.js} +19 -19
- package/_assets/CollectionCarousel-DHOvuq0a.js +816 -0
- package/_assets/{Confetti-Blr9NSjA.js → Confetti-BTHehxYh.js} +1 -1
- package/_assets/{Creator-sh_sYH1o.js → Creator-vMhSn3Jg.js} +7 -7
- package/_assets/{ErrorNotice-CXsnDhEh.js → ErrorNotice-CpmhZUmE.js} +1 -1
- package/_assets/{ExchangeController-GIzn0xGk.js → ExchangeController-Bk_zMHVC.js} +1 -1
- package/_assets/{Faq-C0nCohQD.js → Faq-Bbk8h1Qk.js} +20 -14
- package/_assets/{GetCredits-CBLkNO-w.js → GetCredits-Dvf_riJZ.js} +114 -80
- package/_assets/{Grow-Nzyme9Oa.js → Grow-B3DyBqW4.js} +1 -1
- package/_assets/{HelpersUtil-D0wBF1PA.js → HelpersUtil-h6aaGDt3.js} +1 -1
- package/_assets/{ItemDetail-DZ3mEshJ.js → ItemDetail-oFomOkbt.js} +510 -480
- package/_assets/LazyEmoteControls-BdlpjPkr.js +2 -0
- package/_assets/{LoadMore-CKNE48ED.js → LoadMore-C9QaMyBo.js} +1 -1
- package/_assets/ManaPricingBanner.styles-MtBPxNv2.js +93 -0
- package/_assets/{MyAssets-Ble658vU.js → MyAssets-Bx9bW84W.js} +33 -33
- package/_assets/{MyFavorites-Qri7XFuW.js → MyFavorites-jhTRLOWx.js} +12 -11
- package/_assets/{NotFound-BnEiiuoJ.js → NotFound-y9wUvJSt.js} +1 -1
- package/_assets/{NotificationsBell-CXzlEnr9.js → NotificationsBell-BFMX1y3H.js} +1 -1
- package/_assets/{OutfitDetail-CL1Y8ii5.js → OutfitDetail-BfEl8ni7.js} +4 -4
- package/_assets/{OutfitPreview-DRqW1c5F.js → OutfitPreview-foX1l3Ho.js} +2 -2
- package/_assets/{OutfitStudio-DgL1kI47.js → OutfitStudio-CPQbAOhy.js} +1 -1
- package/_assets/{StoreSettings--R4i191j.js → StoreSettings-DxqpR3qG.js} +1 -1
- package/_assets/{Success-DApKfyee.js → Success-DiIlHKjo.js} +1 -1
- package/_assets/{SwapController-0aVdHfMW.js → SwapController-DzdjZRBH.js} +1 -1
- package/_assets/{Tooltip-B2qDq-8v.js → Tooltip-CXWXl43D.js} +1 -1
- package/_assets/{TradeService-COZXjCcV.js → TradeService-CGuEeH2R.js} +1 -1
- package/_assets/{W3MFrameProviderSingleton-BYmipTKt.js → W3MFrameProviderSingleton-DAG-EWFv.js} +3 -3
- package/_assets/{WebCryptoP256-Cid44am7.js → WebCryptoP256-BQdHu6KD.js} +1 -1
- package/_assets/{authorizations-dpp0OnHI.js → authorizations-Bbp82_V2.js} +1 -1
- package/_assets/{basic-An6X8Awg.js → basic-Cf3DJuRG.js} +1 -1
- package/_assets/{biconomy-CeZnHUNK.js → biconomy-D5_2I_rj.js} +1 -1
- package/_assets/{builder-Ce37-lC-.js → builder-CK5n6bEq.js} +1 -1
- package/_assets/{buy-Dgj0sRqb.js → buy-BjEPh7nk.js} +1 -1
- package/_assets/{buy-gasless-CYY_v3bj.js → buy-gasless-Bjj3XUsm.js} +1 -1
- package/_assets/{categories-KFHNUm7E.js → categories-BQHpVYif.js} +54 -54
- package/_assets/{ccip-8Mu0bgFv.js → ccip-B7LQbKA2.js} +1 -1
- package/_assets/{ccip-BsYdmRqX.js → ccip-C_76Sm3L.js} +1 -1
- package/_assets/collectionPage.styles-k2LmVKux.js +49 -0
- package/_assets/{controller-Cam05qfJ.js → controller-CjH--4wE.js} +2 -2
- package/_assets/{core-BdiPiyom.js → core-1ZzLkX5X.js} +4 -4
- package/_assets/{createSvgIcon-cAMuQ1mD.js → createSvgIcon-DcR4892_.js} +4 -4
- package/_assets/{custom-C7A-Vb1Q.js → custom-CW7Ai6OA.js} +1 -1
- package/_assets/{data-capture-COGpG9-r.js → data-capture-DGJOI5ie.js} +1 -1
- package/_assets/disposePreview-5vjiqVZ0.js +1 -0
- package/_assets/{email-WblN0-6I.js → email-BYO9_PSn.js} +1 -1
- package/_assets/{embedded-wallet-BDGaY-OT.js → embedded-wallet-Dc3ay_ju.js} +1 -1
- package/_assets/{emotion-styled.browser.esm-D7YX5KN0.js → emotion-styled.browser.esm-IjZkrRjv.js} +1 -1
- package/_assets/{engine-DjipK7B5.js → engine-eMP7KFCK.js} +1 -1
- package/_assets/{errors-CzBZCztT.js → errors-65NA3HkA.js} +1 -1
- package/_assets/{estimate-l1-fee-Bk8rxjZm.js → estimate-l1-fee-z4Cv9am6.js} +1 -1
- package/_assets/{execute-C4AIZjft.js → execute-Be5majZ7.js} +2 -2
- package/_assets/{features-Dz4wLY98.js → features-DDe58ejV.js} +1 -1
- package/_assets/{fetchTokenMetadata-DjPW-ayp.js → fetchTokenMetadata-BfT_0X0P.js} +2 -2
- package/_assets/{field.styles-BThVZLzX.js → field.styles-5b7RHcOk.js} +1 -1
- package/_assets/{get-ecosystem-wallet-info-DMVrxBpI.js → get-ecosystem-wallet-info-BgyWgmsX.js} +1 -1
- package/_assets/{getBalance-DeFn5Yjk.js → getBalance-EUbWLqWa.js} +1 -1
- package/_assets/{getNFT-iw9a-h4A.js → getNFT-CZQJk04I.js} +1 -1
- package/_assets/{getNFT-CRgzh5wf.js → getNFT-DqZaIP8J.js} +1 -1
- package/_assets/{grid.styles-U_Gpy1wT.js → grid.styles-r1HwM-dl.js} +1 -1
- package/_assets/{hashTypedData-9Zh9SRr-.js → hashTypedData-CdCzwjEg.js} +1 -1
- package/_assets/{hashTypedData-CqewBwVq.js → hashTypedData-DpsVzpmw.js} +1 -1
- package/_assets/hero-credits-mobile-C9Muog4T.webp +0 -0
- package/_assets/{in-app-DNl1emxp.js → in-app-OWTERGos.js} +1 -1
- package/_assets/{in-app-wallet-calls-CBy5UcNA.js → in-app-wallet-calls-x6rZUVft.js} +1 -1
- package/_assets/{index-CcihKRSf.js → index-5qpydkyU.js} +1 -1
- package/_assets/{index-BVDj7GJL.js → index-B-c3ctWE.js} +1 -1
- package/_assets/{index-BdQAMxgJ.js → index-B2Y5KUFQ.js} +2 -2
- package/_assets/{index-Bc0mTSPi.js → index-B4hWF9JI.js} +1 -1
- package/_assets/{index-Dd8eTuKB.js → index-BRs5WQ4y.js} +1 -1
- package/_assets/{index-Cmc0GHkA.js → index-BXmbcLjL.js} +1 -1
- package/_assets/index-BYP7oMPZ.css +1 -0
- package/_assets/{index-CjvMMH2k.js → index-BZbZm3_Z.js} +1 -1
- package/_assets/{index-C6rF-YrH.js → index-Bk5pG7hH.js} +1 -1
- package/_assets/{index-Dax05iV5.js → index-BoMcphCu.js} +1 -1
- package/_assets/{index-BIJiNaiS.js → index-By7bM2FO.js} +1 -1
- package/_assets/{index-xMSSxrHn.js → index-C3ZkN3yx.js} +1 -1
- package/_assets/{index-CHCVsh7P.js → index-C5Zmr-fp.js} +1 -1
- package/_assets/{index-5SMH4VL2.js → index-C5gU7v63.js} +1 -1
- package/_assets/{index-Kq5fobWt.js → index-C6dKNgrS.js} +1 -1
- package/_assets/{index-B7Rm4vXt.js → index-CAdngWZA.js} +1 -1
- package/_assets/{index-h--qqRrb.js → index-CDn28wqX.js} +1 -1
- package/_assets/{index-CJCxe5kr.js → index-CF1R6Wyc.js} +1 -1
- package/_assets/index-CGHLVlhr.js +622 -0
- package/_assets/{index-DT4Zi23l.js → index-CGXSS33-.js} +3 -3
- package/_assets/{index-CqJzKRxe.js → index-CIDeydPG.js} +2 -2
- package/_assets/{index-CU5QiUkb.js → index-CKAGCwTj.js} +1 -1
- package/_assets/{index-y3U1nB0H.js → index-CUHTRIp3.js} +3 -3
- package/_assets/{index-DgPfV4X0.js → index-Cabu_wkc.js} +1 -1
- package/_assets/{index-DM2dLJ-M.js → index-CdE95fkC.js} +1 -1
- package/_assets/{index-xLgJxfJy.js → index-CgbD_7CJ.js} +1 -1
- package/_assets/{index-DwrPmkl2.js → index-CzYkiikw.js} +1 -1
- package/_assets/{index-CpQbv3Zu.js → index-CzjezMlh.js} +1 -1
- package/_assets/{index-DtAsm8Nr.js → index-DB8U79VL.js} +1 -1
- package/_assets/{index-D3iRZfgO.js → index-DFIOoHDj.js} +1 -1
- package/_assets/{index-BwGtaRec.js → index-DIk7fUKo.js} +1 -1
- package/_assets/{index-C_r09vuw.js → index-DJn0-6QO.js} +1 -1
- package/_assets/{index-RHSCZ-t0.js → index-DMQGc1DU.js} +1 -1
- package/_assets/{index-DfIQCR2U.js → index-DN-GBsyH.js} +1 -1
- package/_assets/{index-DXURSM0-.js → index-DVr9P_sW.js} +1 -1
- package/_assets/index-DWnXUohj.js +1 -0
- package/_assets/{index-HQUcvKn4.js → index-Db-p3Vgn.js} +3 -3
- package/_assets/{index-m-SAK4uo.js → index-DcP4Kxjm.js} +1 -1
- package/_assets/{index-B0wdLudq.js → index-DhKtXpNk.js} +1 -1
- package/_assets/{index-ByPjVaiq.js → index-DrNZnytJ.js} +1 -1
- package/_assets/{index-DQ7Kosvv.js → index-DtNI9AcR.js} +3 -3
- package/_assets/{index-DhRx4LkD.js → index-Dvpm24my.js} +1 -1
- package/_assets/{index-Dqdf5xVB.js → index-DzKQAwwD.js} +1 -1
- package/_assets/{index-BC_qLj4b.js → index-DzWVwnl8.js} +1 -1
- package/_assets/{index-DO0NylVf.js → index-Gjpu_VUp.js} +1 -1
- package/_assets/index-HxLvOExR.js +3699 -0
- package/_assets/{index-BsZ1af_A.js → index-JQcdGKbC.js} +1 -1
- package/_assets/{index-D3qXchU2.js → index-OpuK1fx_.js} +1 -1
- package/_assets/{index-1tktbprD.js → index-U_j9NAbS.js} +1 -1
- package/_assets/{index-MPYM0LiN.js → index-WMiYz6IH.js} +1 -1
- package/_assets/{index-D6LfEXYp.js → index-bMtXusxB.js} +1 -1
- package/_assets/{index-BdkbjSWP.js → index-f--Xju7p.js} +1 -1
- package/_assets/{index-B3jctKqs.js → index-tXA64dlA.js} +2 -2
- package/_assets/{index.es-CLldxJUJ.js → index.es-B7e293JB.js} +1 -1
- package/_assets/{index.es-DGQjR0dR.js → index.es-DLwvz1xx.js} +4 -4
- package/_assets/{index.es-DqD9HkXC.js → index.es-DlR-IQtM.js} +1 -1
- package/_assets/{localBatchGatewayRequest-COpd6g60.js → localBatchGatewayRequest-cLQ4UydX.js} +1 -1
- package/_assets/{networks-ChmokwGp.js → networks-C5yX7tyx.js} +1 -1
- package/_assets/{onramp-BmIZ6r8P.js → onramp-CEYvaS9l.js} +1 -1
- package/_assets/{openzeppelin-CzypsJB4.js → openzeppelin-Cc2KhXuv.js} +1 -1
- package/_assets/{parseNft-CydF3Edv.js → parseNft-YbkZLHPa.js} +2 -2
- package/_assets/{parseSignature-BeoYj8uB.js → parseSignature-BHOWaqkR.js} +1 -1
- package/_assets/{parseSignature-u2B-ofRt.js → parseSignature-Dgv2pIVc.js} +3 -3
- package/_assets/{passkeys-CVYlDRWu.js → passkeys-Dg5ldVwX.js} +1 -1
- package/_assets/{pay-with-exchange-DqJU65WS.js → pay-with-exchange-Dx2N2FiO.js} +1 -1
- package/_assets/promo-best-rated-emotes-C6kNvB-a.png +0 -0
- package/_assets/promo-week-selected-outfits-BBmkZYZx.png +0 -0
- package/_assets/{qr-overlay-DNwX_TPq.js → qr-overlay-CJis_Dku.js} +1 -1
- package/_assets/{receive-uVtJpZxa.js → receive-DyR3EUgS.js} +1 -1
- package/_assets/{resolveImplementation-CRaloAyf.js → resolveImplementation-D-Os7pbq.js} +1 -1
- package/_assets/{rpc-CqfSA8g9.js → rpc-gzHaMGM_.js} +1 -1
- package/_assets/{secp256k1-2YskFph9.js → secp256k1-A8695JK3.js} +1 -1
- package/_assets/{secp256k1-Do9ofviG.js → secp256k1-GWIDn9S3.js} +1 -1
- package/_assets/{secp256k1-DvDQYEQd.js → secp256k1-NjVLumzu.js} +1 -1
- package/_assets/{send-IbCZj2la.js → send-CKyxXi5G.js} +1 -1
- package/_assets/{send-batch-transaction-DFD_LTct.js → send-batch-transaction-BD0nxza5.js} +1 -1
- package/_assets/{send-eip712-transaction-DBf5Z4g_.js → send-eip712-transaction-C8HaD4Bl.js} +2 -2
- package/_assets/{send-gasless-transaction-TFSfXMLh.js → send-gasless-transaction-C3LFi8_y.js} +2 -2
- package/_assets/{send-transaction-DGhInFte.js → send-transaction-Cr1KGOfz.js} +2 -2
- package/_assets/{sendMetaTransaction-CzqCMKMd.js → sendMetaTransaction-BuD46hIl.js} +1 -1
- package/_assets/{sendRawTransaction-qf9SJfpX.js → sendRawTransaction-CHV_i5MH.js} +3 -3
- package/_assets/{serializeTransaction-D4cHSu0O.js → serializeTransaction-C6QCh8ng.js} +1 -1
- package/_assets/{session-proposal-5AODiiln.js → session-proposal-AzV-Di6A.js} +1 -1
- package/_assets/{session-request-hpYNptgl.js → session-request-BVptHKRT.js} +2 -2
- package/_assets/{signing-BQUpSEqZ.js → signing-BCnHiNxp.js} +3 -3
- package/_assets/{skeleton.styles-BfEPveSL.js → skeleton.styles-NdJWWZoO.js} +1 -1
- package/_assets/{socials-D6EP9g5a.js → socials-SFpy8Nfx.js} +1 -1
- package/_assets/{styled-FDInU8Rs.js → styled-YNWg-9qZ.js} +1 -1
- package/_assets/{swaps-CqwmfiPX.js → swaps-Bs58cXr0.js} +1 -1
- package/_assets/{thirdweb-Cecbmps_.js → thirdweb-Da9bKgaM.js} +3 -3
- package/_assets/{to-serializable-transaction-u0MhoPX5.js → to-serializable-transaction-BKFRuKok.js} +2 -2
- package/_assets/{transactionReceipt-l4NJYcz9.js → transactionReceipt-BB_HE5DZ.js} +1 -1
- package/_assets/{transactions-CeFT9Jfi.js → transactions-BiiNpaI6.js} +1 -1
- package/_assets/{useCreditPacks-DQE6Gg5O.js → useCreditPacks-kYM5sqXW.js} +1 -1
- package/_assets/{useImportable-Dh1ZOsU2.js → useImportable-CacakRaR.js} +1 -1
- package/_assets/{useInfiniteGrid--LOCzyU9.js → useInfiniteGrid-DmCoyc-5.js} +1 -1
- package/_assets/{useTheme-CpSHkSMG.js → useTheme-CDzzSrjV.js} +1 -1
- package/_assets/{verifyHash-BSS9_MWX.js → verifyHash-Bi8A6_OC.js} +1 -1
- package/_assets/{w3m-modal-BCjN4Uqc.js → w3m-modal-DXZzlpAy.js} +1 -1
- package/_assets/{w3m-modal-ByuBko0g.js → w3m-modal-hvo-cMQo.js} +1 -1
- package/_assets/{wait-for-tx-receipt-CfVB-CU0.js → wait-for-tx-receipt-DtoUQega.js} +1 -1
- package/_assets/{wallets-tUzLLBvA.js → wallets-DOYhTD-q.js} +5 -5
- package/_assets/{web-connector-BfVr5QpB.js → web-connector-L9IYDmGf.js} +3 -3
- package/_assets/{writeContract-B4n8yTsB.js → writeContract-C9Fd0Dqo.js} +1 -1
- package/_assets/{zoraTestnet-CNY7oWT9.js → zoraTestnet-CJh-5IFd.js} +1 -1
- package/index.html +11 -11
- package/package.json +2 -2
- package/_assets/Activity-CUf8ogRR.js +0 -381
- package/_assets/AnimatedBackground-_78VlBdV.js +0 -97
- package/_assets/Cart-CbY3Hhq6.js +0 -695
- package/_assets/CollectionCarousel-Cg2MTF9W.js +0 -804
- package/_assets/LazyEmoteControls-BEt_49wK.js +0 -2
- package/_assets/ManaPricingBanner.styles-CJS5V2Di.js +0 -74
- package/_assets/collectionPage.styles-jwKyDncq.js +0 -48
- package/_assets/disposePreview-C6zVmkpS.js +0 -1
- package/_assets/index-Ba-yhU-2.js +0 -1
- package/_assets/index-D-NhBWWr.css +0 -1
- package/_assets/index-D8LZCVOB.js +0 -519
- package/_assets/index-buu21jrH.js +0 -3390
- package/_assets/packs-backdrop-BcXiUPeP.webp +0 -0
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["_assets/index-DWnXUohj.js","_assets/react-BYHuwl8r.js","_assets/dcl-schemas-CmtP3U6y.js","_assets/index-HxLvOExR.js","_assets/sentry-Dx-KuLV3.js","_assets/ethers-BDpbhgX6.js","_assets/intl-CBcMB1D2.js","_assets/index-BYP7oMPZ.css","_assets/createSvgIcon-DcR4892_.js","_assets/clsx-WwvpwSg0.js","_assets/styled-YNWg-9qZ.js","_assets/emotion-styled.browser.esm-IjZkrRjv.js","_assets/CircularProgress-CpjqStGb.js","_assets/index-BoMcphCu.js","_assets/useTheme-CDzzSrjV.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{_ as e}from"./index-HxLvOExR.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-DWnXUohj.js").then(r=>r.i),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12])),e(()=>import("./index-BoMcphCu.js"),__vite__mapDeps([13,3,1,2,4,5,6,7,14,10])),e(()=>import("./index-HxLvOExR.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-HxLvOExR.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-HxLvOExR.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-HxLvOExR.js";import{a as pt}from"./builder-CK5n6bEq.js";import{L as mt}from"./LoadMore-C9QaMyBo.js";import{u as ut,R as X,C as ft,a as xt,F as ht,e as ue}from"./categories-BQHpVYif.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-CI8Un36f.js";import{u as _t}from"./useInfiniteGrid-DmCoyc-5.js";import{u as zt}from"./useImportable-CacakRaR.js";import{E as he}from"./ErrorNotice-CpmhZUmE.js";import{C as Bt,R as Nt,B as Lt,T as Mt,A as Kt,a as Gt}from"./ManaPricingBanner.styles-MtBPxNv2.js";import{C as qt}from"./field.styles-5b7RHcOk.js";import{n as Ae}from"./Tooltip-CXWXl43D.js";import"./dcl-schemas-CmtP3U6y.js";import"./sentry-Dx-KuLV3.js";import"./ethers-BDpbhgX6.js";import"./intl-CBcMB1D2.js";import"./skeleton.styles-NdJWWZoO.js";import"./buy-BjEPh7nk.js";import"./authorizations-Bbp82_V2.js";import"./sendMetaTransaction-BuD46hIl.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-HxLvOExR.js";import{L as $}from"./LoadMore-C9QaMyBo.js";import{E as L}from"./ErrorNotice-CpmhZUmE.js";import{G as M}from"./grid.styles-r1HwM-dl.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-HxLvOExR.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;
|