@dcl/shop 0.5.0 → 0.5.1-30936450524.commit-699b9ba
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-BNdtDMvf.js +336 -0
- package/_assets/{AnimatedBackground-C4vGO85y.js → AnimatedBackground-DtccR1Yr.js} +2 -2
- package/_assets/{Assets-DUB4VCUr.js → Assets-BPmdORes.js} +11 -11
- package/_assets/{Assets.styles-DIh1hG4_.js → Assets.styles-DGFYQnxw.js} +1 -1
- package/_assets/{Authorizations-gse9z0i5.js → Authorizations-DxyGJ4g6.js} +3 -3
- package/_assets/{Cart-xOvVoYwp.js → Cart-BK5UrFhK.js} +6 -6
- package/_assets/{CircularProgress-BZT_u7sL.js → CircularProgress-DdEjsaZL.js} +1 -1
- package/_assets/{Collection-DkMWDyM9.js → Collection-DqFConie.js} +7 -7
- package/_assets/{CollectionCarousel-D-7TqEHy.js → CollectionCarousel-ChFXFBmM.js} +7 -7
- package/_assets/{Creator-CIj-i2cJ.js → Creator-DrGLyYfy.js} +9 -9
- package/_assets/{ErrorNotice-qXSCgBBe.js → ErrorNotice-BCKaFzga.js} +1 -1
- package/_assets/{ExchangeController-CoWk4iJ_.js → ExchangeController-CvylFMia.js} +1 -1
- package/_assets/{GetCredits-91dR46BQ.js → GetCredits-Dw4w8acm.js} +7 -7
- package/_assets/{HelpersUtil-B_EI8lTR.js → HelpersUtil-_HSkzV2T.js} +1 -1
- package/_assets/{ItemDetail-DneK31a0.js → ItemDetail-Dxa9T_S-.js} +489 -324
- package/_assets/{LoadMore-CPg41rwp.js → LoadMore-D8E5F-8f.js} +1 -1
- package/_assets/ManaPricingBanner.styles-DTnTTvyO.js +74 -0
- package/_assets/{MenuList-D5E4Wrvx.js → MenuList-Jtp545Fi.js} +1 -1
- package/_assets/MyAssets-Db0d2mYm.js +381 -0
- package/_assets/{MyFavorites-CfsWFXpI.js → MyFavorites-B581Hpf-.js} +2 -2
- package/_assets/{NotFound-DVmSPOa9.js → NotFound-B5YyPIK4.js} +1 -1
- package/_assets/{NotificationsBell-C_HZmA4_.js → NotificationsBell-8HxMRP0q.js} +1 -1
- package/_assets/OutfitDetail-cz6cQtz6.js +326 -0
- package/_assets/OutfitPreview-CU2mgvnt.js +6 -0
- package/_assets/{OutfitStudio-D6HxPa0M.js → OutfitStudio-_HyedkEg.js} +50 -50
- package/_assets/{StoreSettings-CmI6OJyt.js → StoreSettings-BGKiUIzy.js} +9 -9
- package/_assets/{Success-CILFVgai.js → Success-RigWZOgD.js} +6 -6
- package/_assets/{SwapController-BtZYC1DC.js → SwapController-BivMb2kn.js} +1 -1
- package/_assets/{Tooltip-D-dOz9cj.js → Tooltip-BFF2_vlu.js} +1 -1
- package/_assets/{TradeService-DFGHQuam.js → TradeService-0TCYki7R.js} +1 -1
- package/_assets/{W3MFrameProviderSingleton-Dd3fipah.js → W3MFrameProviderSingleton-B0Higky5.js} +3 -3
- package/_assets/{WebCryptoP256-83ZQlmY9.js → WebCryptoP256-CGkaFniB.js} +1 -1
- package/_assets/{authorizations-3-Mq1Ehl.js → authorizations-zc6Rq7Wn.js} +1 -1
- package/_assets/{basic-BndfWYou.js → basic-DttMuloT.js} +1 -1
- package/_assets/{biconomy-UoaVnBXL.js → biconomy-D4i00Lfc.js} +1 -1
- package/_assets/{browseLayout.styles-C2XsX59Z.js → browseLayout.styles-BdkLZM96.js} +4 -4
- package/_assets/{builder-BCsqID1m.js → builder-D5fMO9fl.js} +1 -1
- package/_assets/{buy-gasless-Cf6hPQpJ.js → buy-gasless-e__YZBZy.js} +1 -1
- package/_assets/buy-hkJbpiOY.js +1 -0
- package/_assets/{categories-CJDomWri.js → categories-B569rNQU.js} +1 -1
- package/_assets/{ccip-DL1ik4S_.js → ccip-CCidJiYF.js} +1 -1
- package/_assets/{ccip-LyTNGN_g.js → ccip-CJTcr6Ak.js} +1 -1
- package/_assets/{clsx-CbhzNwHc.js → clsx-DSmAtJIx.js} +2 -2
- package/_assets/{controller-DI4T8YXU.js → controller-CMLpEAq8.js} +2 -2
- package/_assets/{core-DLkqCpDz.js → core-BIMKRKLD.js} +4 -4
- package/_assets/{createSvgIcon-BdIjzl8A.js → createSvgIcon-mO6bQXvS.js} +1 -1
- package/_assets/{custom-DjHlYa2L.js → custom-VPCzWEDJ.js} +1 -1
- package/_assets/{data-capture-CCEqsOVC.js → data-capture-NhUWYbV9.js} +1 -1
- package/_assets/{email-MyVfElwc.js → email-Clto1rbh.js} +1 -1
- package/_assets/{embedded-wallet-DGKPNmRz.js → embedded-wallet-t8b4yu9z.js} +1 -1
- package/_assets/{emotion-styled.browser.esm-B-KYMSCc.js → emotion-styled.browser.esm-DnvNBX1u.js} +1 -1
- package/_assets/{engine-P4mrsX3-.js → engine-DLv8fLGx.js} +1 -1
- package/_assets/{errors-B5G852-H.js → errors-CZnCfZdx.js} +1 -1
- package/_assets/{estimate-l1-fee-CZTQo2Yh.js → estimate-l1-fee-CJ4pO8UF.js} +1 -1
- package/_assets/{execute-CqlntYG8.js → execute-DlPcikaV.js} +2 -2
- package/_assets/{features-BstqY0d8.js → features-BxKqKAM5.js} +1 -1
- package/_assets/{fetchTokenMetadata-wr3bODuw.js → fetchTokenMetadata-w38JAtHF.js} +2 -2
- package/_assets/{field.styles-CeFk4Y5o.js → field.styles-CFlKswg7.js} +1 -1
- package/_assets/{get-ecosystem-wallet-info-BmrdD1ZM.js → get-ecosystem-wallet-info-VnVOeJ1z.js} +1 -1
- package/_assets/{getBalance-CGp1VbNi.js → getBalance-on_xo7HU.js} +1 -1
- package/_assets/{getNFT-BATtEfMr.js → getNFT-CRTR8WTI.js} +1 -1
- package/_assets/{getNFT-Bc7mOqON.js → getNFT-CWzo03nA.js} +1 -1
- package/_assets/{getThemeProps-Cj1ePFOP.js → getThemeProps-B8B_-Rbo.js} +1 -1
- package/_assets/{grid.styles-4uR2Oqak.js → grid.styles-BZkFiBLS.js} +1 -1
- package/_assets/{hashTypedData-DmaIP4Ta.js → hashTypedData-BH6OTW-d.js} +1 -1
- package/_assets/{hashTypedData--isNjJrk.js → hashTypedData-DRMGHRZ0.js} +1 -1
- package/_assets/{in-app-DkfGauuN.js → in-app-Vc6OIIzS.js} +1 -1
- package/_assets/{in-app-wallet-calls-_oAp4gRk.js → in-app-wallet-calls-KLGGFOPI.js} +1 -1
- package/_assets/{index-Jw4WyTL7.js → index-0nqA1JJF.js} +1 -1
- package/_assets/{index-hxv9huma.js → index-4zQsq3fd.js} +1 -1
- package/_assets/{index-B4VZ6oCr.js → index-5ACH-P5G.js} +1 -1
- package/_assets/{index-CNLdKmSV.js → index-6yxWjL1L.js} +2 -2
- package/_assets/{index-B0XZJoRs.js → index-8RpSVOTx.js} +3 -3
- package/_assets/{index-UOqdWcGo.js → index-B-wQ0paE.js} +1 -1
- package/_assets/{index-B08mxqyH.js → index-BCJi5oKJ.js} +1 -1
- package/_assets/{index-DwhWwt0R.js → index-BKEDzKNY.js} +1 -1
- package/_assets/{index-TXpJyzEO.js → index-BPaO_ntB.js} +1 -1
- package/_assets/{index-DCcvZO5Y.js → index-BQwGj32K.js} +1 -1
- package/_assets/{index-pUOx764A.js → index-BS6iKClO.js} +1 -1
- package/_assets/{index-Rzy39Nn7.js → index-BhObZWWG.js} +1 -1
- package/_assets/{index-B3qntzSb.js → index-BkDkQWWI.js} +1 -1
- package/_assets/{index-B9aCuD80.js → index-BqF97xZA.js} +1 -1
- package/_assets/{index-CAtB_PCp.js → index-C-amGj-7.js} +2 -2
- package/_assets/{index-BYndrnYs.js → index-C1U7eBbq.js} +1 -1
- package/_assets/{index-DA6dfZrr.js → index-C2GPCavy.js} +1 -1
- package/_assets/{index-BHPckyG6.js → index-C2q4KTdy.js} +1 -1
- package/_assets/{index-DYIatsEA.js → index-C7ek7oob.js} +1 -1
- package/_assets/{index-qOIpyDqw.js → index-CI0UD5dV.js} +3 -3
- package/_assets/{index-DYJqGaxj.js → index-CJLFJ36W.js} +2 -2
- package/_assets/{index-DG2jERXm.js → index-CNboH-3O.js} +1 -1
- package/_assets/{index-g7yoq537.js → index-Cdvi3pNM.js} +2 -2
- package/_assets/{index-DMfeEICj.js → index-Ceegzko5.js} +1 -1
- package/_assets/{index-CwgAx_D_.js → index-CgA-OcG0.js} +1 -1
- package/_assets/{index-DiwV8Pqc.js → index-Ch8J3QK6.js} +1 -1
- package/_assets/{index-CKuDkHtx.js → index-Cmdx7DKx.js} +1 -1
- package/_assets/{index-9uXo0dDW.js → index-CqPO5kHJ.js} +1 -1
- package/_assets/{index-D-cwjSAX.js → index-CuziOquE.js} +3 -3
- package/_assets/{index-6-oWZZKk.js → index-CzmJnQZH.js} +1 -1
- package/_assets/index-D-7WCtxn.js +3482 -0
- package/_assets/{index-GIpFWU31.js → index-D5RD0vxf.js} +1 -1
- package/_assets/{index-COG_bMzA.js → index-DBZVIZHo.js} +1 -1
- package/_assets/{index-BQJhzjgB.js → index-DHBnEMAt.js} +1 -1
- package/_assets/{index-bI7YB81Q.js → index-DOPFlRgN.js} +1 -1
- package/_assets/{index-wLhUVrXT.js → index-DYWfNXUa.js} +1 -1
- package/_assets/{index-BlqD0sjz.js → index-DkuxSwEU.js} +1 -1
- package/_assets/{index-TyIfm5pC.js → index-DmTmwD6t.js} +1 -1
- package/_assets/{index-Df_MtlRn.js → index-DtsO_iTE.js} +1 -1
- package/_assets/{index-DARDndd8.js → index-DxHGh86B.js} +1 -1
- package/_assets/{index-DXe6U5Nd.js → index-GDLtMazN.js} +1 -1
- package/_assets/{index-BQEMTtHk.js → index-Te89Gq1W.js} +1 -1
- package/_assets/{index-Bq3RaeMg.js → index-Umj2Vke8.js} +1 -1
- package/_assets/{index-6TyUCKeH.js → index-WAyEz3yq.js} +1 -1
- package/_assets/{index-BmlqG1wa.js → index-_KNtvZ03.js} +1 -1
- package/_assets/{index-hFWlaYZc.js → index-cz6Rqk8W.js} +1 -1
- package/_assets/{index-DA_UmuJW.js → index-eog29CgL.js} +2 -2
- package/_assets/{index-CVTYXB-H.js → index-irGTnSKf.js} +1 -1
- package/_assets/{index-a7lLIynB.js → index-jHpuKYUW.js} +1 -1
- package/_assets/{index-DI6mFHN_.js → index-oBbODxgD.js} +1 -1
- package/_assets/index-vsp2ePXO.js +472 -0
- package/_assets/{index-BF4F4-es.js → index-xtIMpr9r.js} +1 -1
- package/_assets/{index.es-DSBJgnik.js → index.es-B7JVZeTo.js} +4 -4
- package/_assets/{index.es-CleSpdBe.js → index.es-CGbqEV93.js} +1 -1
- package/_assets/{index.es-DcH5dh4Z.js → index.es-ClM1Q4-S.js} +1 -1
- package/_assets/{localBatchGatewayRequest-BQaanzyf.js → localBatchGatewayRequest-CKHM638r.js} +1 -1
- package/_assets/{mana-convert-gdOzEDdP.js → mana-convert-dJqmfJfM.js} +1 -1
- package/_assets/{networks-DweEIHqd.js → networks-D4B8rcMf.js} +1 -1
- package/_assets/{onramp-CQin_sc0.js → onramp-BAAYO5Xz.js} +1 -1
- package/_assets/{openzeppelin-aL0pLCk3.js → openzeppelin-tyZlnFgc.js} +1 -1
- package/_assets/{parseNft-C3_Nz5T-.js → parseNft-DmVgwo4R.js} +2 -2
- package/_assets/{parseSignature-DbUWX_0J.js → parseSignature-CCUgv0Xf.js} +1 -1
- package/_assets/{parseSignature-CaUNRWNX.js → parseSignature-Cz4DXMg4.js} +3 -3
- package/_assets/{passkeys-ErJmNcK7.js → passkeys-B-SLcTQC.js} +1 -1
- package/_assets/{pay-with-exchange-IR4P3LG2.js → pay-with-exchange-CPF4Xyar.js} +1 -1
- package/_assets/{qr-overlay-CdnDwp_H.js → qr-overlay-CCgl-rQv.js} +1 -1
- package/_assets/{receive-zGMAuzLF.js → receive-CtyJrIps.js} +1 -1
- package/_assets/{resolveImplementation-DBCwfUsj.js → resolveImplementation-BWEbVpHA.js} +1 -1
- package/_assets/{rpc-DcBDiZd9.js → rpc-9WGO6xiN.js} +1 -1
- package/_assets/{secp256k1-Dw0WpBX5.js → secp256k1-2RfA0szs.js} +1 -1
- package/_assets/{secp256k1-Dewsd8iM.js → secp256k1-CFrW1Y2s.js} +1 -1
- package/_assets/{secp256k1-B-E-jiWl.js → secp256k1-pmcASsb-.js} +1 -1
- package/_assets/{send-DDT-5Y8C.js → send-CMNbsrhM.js} +1 -1
- package/_assets/{send-batch-transaction-BurBPeh7.js → send-batch-transaction-D75RDx36.js} +1 -1
- package/_assets/{send-eip712-transaction-D77WUDwd.js → send-eip712-transaction-BQazlaNl.js} +2 -2
- package/_assets/{send-gasless-transaction-CIWAOyRc.js → send-gasless-transaction-DjoFh0d8.js} +2 -2
- package/_assets/{send-transaction-BXhwaD9S.js → send-transaction-CVFVkU0Z.js} +2 -2
- package/_assets/{sendMetaTransaction-CrIt0KCG.js → sendMetaTransaction-BAlAehuy.js} +1 -1
- package/_assets/{sendRawTransaction-DNK5LA13.js → sendRawTransaction-C4U7kCvT.js} +3 -3
- package/_assets/{serializeTransaction-D3WekrgC.js → serializeTransaction-DaaHRnn4.js} +1 -1
- package/_assets/{session-proposal-BlosSPbJ.js → session-proposal-B8JSXkYh.js} +1 -1
- package/_assets/{session-request-C8iYxI6j.js → session-request-CVuIL0x8.js} +2 -2
- package/_assets/{signing-Bx48W7O-.js → signing-CoqvM4v0.js} +3 -3
- package/_assets/{socials-BSmNv258.js → socials-Ci3QFil3.js} +1 -1
- package/_assets/{swaps-DyNopWtM.js → swaps-Bk85njMT.js} +1 -1
- package/_assets/{thirdweb-Bc1voIUm.js → thirdweb-CTwUbVaf.js} +3 -3
- package/_assets/{to-serializable-transaction-BXY289Ul.js → to-serializable-transaction-BHWda6_Z.js} +2 -2
- package/_assets/{trade-encoding-B7y8VfDo.js → trade-encoding-BDt5HS0k.js} +1 -1
- package/_assets/{transactionReceipt-DLzKebEg.js → transactionReceipt-DVIb0l0k.js} +1 -1
- package/_assets/{transactions-BWXAu1Vp.js → transactions-Dk1TKJgv.js} +1 -1
- package/_assets/{useCreditPacks-CYnMKZmp.js → useCreditPacks-BM-De58w.js} +1 -1
- package/_assets/useImportable-Ce98Ar0U.js +1 -0
- package/_assets/{useInfiniteGrid-ottWIC3k.js → useInfiniteGrid-_3YA45kU.js} +1 -1
- package/_assets/useManaRate-Co5_bB5U.js +1 -0
- package/_assets/{useStore-DC77ufHd.js → useStore-DYpF-pdm.js} +1 -1
- package/_assets/{useTheme-BOb3XgSe.js → useTheme-Br5XE3ab.js} +1 -1
- package/_assets/{verifyHash-B6wVUzvm.js → verifyHash-CJn902Qe.js} +1 -1
- package/_assets/{w3m-modal-CYIABu52.js → w3m-modal-Bq4uD3cn.js} +1 -1
- package/_assets/{w3m-modal-D0DQYwij.js → w3m-modal-iwn664AW.js} +1 -1
- package/_assets/{wait-for-tx-receipt-CzEApn7N.js → wait-for-tx-receipt-mVLKSavl.js} +1 -1
- package/_assets/{wallets-CQPQ_gpR.js → wallets-CUhTDJCi.js} +5 -5
- package/_assets/{web-connector-B5U5FrL8.js → web-connector-1E0uyUrr.js} +3 -3
- package/_assets/{writeContract-CGlJd1QG.js → writeContract-DDr9VQLH.js} +1 -1
- package/_assets/{zoraTestnet-pKTbhMUO.js → zoraTestnet-JZ6ZNHig.js} +1 -1
- package/index.html +11 -11
- package/package.json +2 -2
- package/_assets/Activity-GNtRBDkH.js +0 -291
- package/_assets/ImportListings-DrIx4tN-.js +0 -472
- package/_assets/ItemPreview.styles--MP-O7tE.js +0 -166
- package/_assets/ManaPricingBanner.styles-4CDYw79q.js +0 -74
- package/_assets/MyAssets-C29gKaZs.js +0 -381
- package/_assets/OutfitDetail-BCkHFvPX.js +0 -357
- package/_assets/OutfitPreview-XyEsGBYa.js +0 -6
- package/_assets/buy-Bs_G6nfA.js +0 -1
- package/_assets/index-CEec1iYe.js +0 -3476
- package/_assets/mana-rate-DFh9C_O1.js +0 -1
- package/_assets/useManaRate-CPn6JNFj.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as o,j as f}from"./react-DehiWSvs.js";import{s as p,B as m,b as s}from"./index-
|
|
1
|
+
import{r as o,j as f}from"./react-DehiWSvs.js";import{s as p,B as m,b as s}from"./index-D-7WCtxn.js";const j=p.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
justify-content: center;
|
|
4
4
|
padding: 28px 0 8px;
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import{r as h,j as t,L as u}from"./react-DehiWSvs.js";import{t as n,s as e,ad as g,C,aX as m,b as r}from"./index-D-7WCtxn.js";function j({size:a=17,...o}){const s=`credit-mark-${h.useId()}`;return t.jsxs("svg",{viewBox:"0 0 16.9985 16.9985",width:a,height:a,fill:"none","aria-hidden":!0,focusable:"false",...o,children:[t.jsx("defs",{children:t.jsxs("linearGradient",{id:s,x1:"-0.513692",y1:"8.51179",x2:"29.4301",y2:"5.69069",gradientUnits:"userSpaceOnUse",children:[t.jsx("stop",{stopColor:n.colors.dclRed}),t.jsx("stop",{offset:"1",stopColor:n.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(#${s})`,stroke:`url(#${s})`,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:n.colors.white})]})}const{colors:p,font:$}=n,b=e.p`
|
|
2
|
+
display: flex;
|
|
3
|
+
align-items: center;
|
|
4
|
+
gap: 4px;
|
|
5
|
+
margin: 0;
|
|
6
|
+
font-family: ${$.sans};
|
|
7
|
+
font-size: 16px;
|
|
8
|
+
line-height: normal;
|
|
9
|
+
color: ${p.text};
|
|
10
|
+
|
|
11
|
+
&[data-align='center'] {
|
|
12
|
+
justify-content: center;
|
|
13
|
+
}
|
|
14
|
+
`,c=e.span`
|
|
15
|
+
font-weight: 600;
|
|
16
|
+
`,d=e.span`
|
|
17
|
+
font-weight: 400;
|
|
18
|
+
`,L=e.span`
|
|
19
|
+
font-size: 14px;
|
|
20
|
+
font-weight: 600;
|
|
21
|
+
line-height: 1.57;
|
|
22
|
+
color: ${p.muted1};
|
|
23
|
+
`;function S({align:a,className:o}){const s=g(C.nameSingular),l=m(1).toFixed(2),f=r("creditRate.usdLabel");return t.jsxs(b,{className:o,"data-align":a,"data-testid":"credit-rate","aria-label":r("creditRate.aria",{unit:s,usd:l}),children:[t.jsx(j,{}),t.jsxs("span",{children:[t.jsx(c,{children:"1"})," ",t.jsx(d,{children:s})]}),t.jsx(L,{"aria-hidden":!0,children:r("creditRate.equals")}),t.jsxs("span",{children:[t.jsx(d,{children:f})," ",t.jsx(c,{children:l})]})]})}const{colors:i,font:y,media:w,radius:x}=n,R=e.div`
|
|
24
|
+
display: flex;
|
|
25
|
+
align-items: center;
|
|
26
|
+
gap: 8px;
|
|
27
|
+
padding: 12px 8px 12px 16px;
|
|
28
|
+
border-radius: ${x.btn};
|
|
29
|
+
background: ${i.promptLilac};
|
|
30
|
+
font-family: ${y.sans};
|
|
31
|
+
`,U=e(R)`
|
|
32
|
+
justify-content: space-between;
|
|
33
|
+
|
|
34
|
+
/* Side by side the sentence and the cta can't both fit a phone, so the cta drops to its own line. */
|
|
35
|
+
${w.maxWidth("mobile")} {
|
|
36
|
+
flex-direction: column;
|
|
37
|
+
align-items: flex-start;
|
|
38
|
+
}
|
|
39
|
+
`,z=e.div`
|
|
40
|
+
display: flex;
|
|
41
|
+
align-items: center;
|
|
42
|
+
gap: 8px;
|
|
43
|
+
`,E=e.p`
|
|
44
|
+
margin: 0;
|
|
45
|
+
font-size: 14px;
|
|
46
|
+
font-weight: 400;
|
|
47
|
+
line-height: 1.334;
|
|
48
|
+
color: ${i.text2};
|
|
49
|
+
`,A=e.strong`
|
|
50
|
+
font-weight: 700;
|
|
51
|
+
`,B=e(u)`
|
|
52
|
+
flex: none;
|
|
53
|
+
display: inline-flex;
|
|
54
|
+
align-items: center;
|
|
55
|
+
justify-content: center;
|
|
56
|
+
height: 40px;
|
|
57
|
+
padding: 0 12px;
|
|
58
|
+
border-radius: ${x.card};
|
|
59
|
+
font-size: 13px;
|
|
60
|
+
font-weight: 600;
|
|
61
|
+
line-height: 24px;
|
|
62
|
+
letter-spacing: 0.46px;
|
|
63
|
+
text-transform: uppercase;
|
|
64
|
+
text-decoration: underline;
|
|
65
|
+
color: ${i.accent};
|
|
66
|
+
|
|
67
|
+
&:hover {
|
|
68
|
+
color: ${i.accentHover};
|
|
69
|
+
}
|
|
70
|
+
&:focus-visible {
|
|
71
|
+
outline: 2px solid ${i.accent};
|
|
72
|
+
outline-offset: 2px;
|
|
73
|
+
}
|
|
74
|
+
`;export{A,z as B,S as C,U as R,R as S,E as T,B as a,j as b};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{a9 as Y,a8 as Ke,aa as M,c5 as vt,bM as mt,c3 as we}from"./index-D-7WCtxn.js";import{h as De,R as Me,r as O,j as X,a as nn,i as rn,g as on}from"./react-DehiWSvs.js";import{g as jt,a as Nt,c as Lt,b as Ye,s as Ze,d as an,f as sn}from"./clsx-DSmAtJIx.js";import{_ as ln,T as Wt,u as ue,s as ht,o as je,a as un}from"./createSvgIcon-mO6bQXvS.js";import{u as cn}from"./useTheme-Br5XE3ab.js";function fn(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}var Fe={exports:{}},S={};/**
|
|
2
2
|
* @license React
|
|
3
3
|
* react-is.production.min.js
|
|
4
4
|
*
|
|
@@ -0,0 +1,381 @@
|
|
|
1
|
+
import{r as d,j as t,L as st,d as nt,e as ot}from"./react-DehiWSvs.js";import{t as n,s as i,b as o,I as v,w as rt,q as it,n as at,ad as me,u as Q,B as ct,af as V,ag as Z,D as lt,c as Ie,bl as dt,bm as pt}from"./index-D-7WCtxn.js";import{a as mt}from"./builder-D5fMO9fl.js";import{L as ut}from"./LoadMore-D8E5F-8f.js";import{R as X,a as ft,C as xt,F as ht,e as ue}from"./categories-B569rNQU.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-DGFYQnxw.js";import{u as _t}from"./useInfiniteGrid-_3YA45kU.js";import{u as zt}from"./useImportable-Ce98Ar0U.js";import{E as he}from"./ErrorNotice-BCKaFzga.js";import{C as Bt,R as Nt,B as Lt,T as Mt,A as Kt,a as Gt}from"./ManaPricingBanner.styles-DTnTTvyO.js";import{C as qt}from"./field.styles-CFlKswg7.js";import{n as Ae}from"./Tooltip-BFF2_vlu.js";import"./sentry-973sfbO9.js";import"./dcl-schemas-Dr9BTjb7.js";import"./ethers-CtNGBird.js";import"./intl-CBcMB1D2.js";import"./buy-hkJbpiOY.js";import"./mana-convert-dJqmfJfM.js";import"./authorizations-zc6Rq7Wn.js";import"./sendMetaTransaction-BAlAehuy.js";import"./trade-encoding-BDt5HS0k.js";const{colors:m,font:Pe,radius:te,z:Dt}=n,Ht=i.div`
|
|
2
|
+
position: fixed;
|
|
3
|
+
inset: 0;
|
|
4
|
+
z-index: ${Dt.overlay};
|
|
5
|
+
display: flex;
|
|
6
|
+
align-items: center;
|
|
7
|
+
justify-content: center;
|
|
8
|
+
overflow-y: auto;
|
|
9
|
+
padding: 16px;
|
|
10
|
+
background: rgba(22, 21, 24, 0.55);
|
|
11
|
+
`,Ut=i.div`
|
|
12
|
+
width: 560px;
|
|
13
|
+
max-width: 100%;
|
|
14
|
+
max-height: 100%;
|
|
15
|
+
overflow-y: auto;
|
|
16
|
+
padding: 12px 16px 16px;
|
|
17
|
+
border-radius: ${te.modal};
|
|
18
|
+
background: ${m.white};
|
|
19
|
+
box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
|
|
20
|
+
display: flex;
|
|
21
|
+
flex-direction: column;
|
|
22
|
+
gap: 24px;
|
|
23
|
+
font-family: ${Pe.sans};
|
|
24
|
+
|
|
25
|
+
/* Focused on mount for screen readers; it is not tab-reachable, so it never needs a visible ring. */
|
|
26
|
+
&:focus {
|
|
27
|
+
outline: none;
|
|
28
|
+
}
|
|
29
|
+
`,Wt=i.div`
|
|
30
|
+
display: flex;
|
|
31
|
+
align-items: center;
|
|
32
|
+
justify-content: space-between;
|
|
33
|
+
gap: 8px;
|
|
34
|
+
padding-bottom: 16px;
|
|
35
|
+
border-bottom: 1px solid ${m.gray4};
|
|
36
|
+
`,Yt=i.h2`
|
|
37
|
+
margin: 0;
|
|
38
|
+
font-weight: 600;
|
|
39
|
+
font-size: 20px;
|
|
40
|
+
line-height: 1.6;
|
|
41
|
+
color: ${m.text};
|
|
42
|
+
`,Jt=i.button`
|
|
43
|
+
position: relative;
|
|
44
|
+
flex: none;
|
|
45
|
+
display: grid;
|
|
46
|
+
place-items: center;
|
|
47
|
+
width: 18.535px;
|
|
48
|
+
height: 18.535px;
|
|
49
|
+
padding: 0;
|
|
50
|
+
border: 0;
|
|
51
|
+
background: none;
|
|
52
|
+
cursor: pointer;
|
|
53
|
+
color: ${m.text};
|
|
54
|
+
|
|
55
|
+
.ico {
|
|
56
|
+
width: 100%;
|
|
57
|
+
height: 100%;
|
|
58
|
+
}
|
|
59
|
+
/* Keeps the glyph exactly where the design puts it while giving it a tappable hit area. */
|
|
60
|
+
&::after {
|
|
61
|
+
content: '';
|
|
62
|
+
position: absolute;
|
|
63
|
+
inset: -11px;
|
|
64
|
+
}
|
|
65
|
+
&:focus-visible {
|
|
66
|
+
outline: 2px solid ${m.accent};
|
|
67
|
+
outline-offset: 2px;
|
|
68
|
+
}
|
|
69
|
+
`,Qt=i.div`
|
|
70
|
+
padding: 16px;
|
|
71
|
+
border-radius: ${te.modal};
|
|
72
|
+
background: ${m.infoGreen};
|
|
73
|
+
display: flex;
|
|
74
|
+
flex-direction: column;
|
|
75
|
+
gap: 12px;
|
|
76
|
+
`,Vt=i.h3`
|
|
77
|
+
margin: 0;
|
|
78
|
+
font-weight: 600;
|
|
79
|
+
font-size: 20px;
|
|
80
|
+
line-height: 1.57;
|
|
81
|
+
color: ${m.text};
|
|
82
|
+
`,Zt=i.p`
|
|
83
|
+
margin: 0;
|
|
84
|
+
font-weight: 500;
|
|
85
|
+
font-size: 14px;
|
|
86
|
+
line-height: 1.334;
|
|
87
|
+
color: ${m.text2};
|
|
88
|
+
`,Xt=i.div`
|
|
89
|
+
display: flex;
|
|
90
|
+
flex-direction: column;
|
|
91
|
+
gap: 8px;
|
|
92
|
+
`,es=i.div`
|
|
93
|
+
display: flex;
|
|
94
|
+
align-items: center;
|
|
95
|
+
gap: 12px;
|
|
96
|
+
`,Ee=`
|
|
97
|
+
flex: 1 1 0;
|
|
98
|
+
min-width: 0;
|
|
99
|
+
display: inline-flex;
|
|
100
|
+
align-items: center;
|
|
101
|
+
justify-content: center;
|
|
102
|
+
gap: 8px;
|
|
103
|
+
height: 40px;
|
|
104
|
+
padding: 0 12px;
|
|
105
|
+
border-radius: ${te.card};
|
|
106
|
+
font-family: ${Pe.sans};
|
|
107
|
+
font-weight: 600;
|
|
108
|
+
font-size: 13px;
|
|
109
|
+
line-height: 24px;
|
|
110
|
+
letter-spacing: 0.46px;
|
|
111
|
+
text-transform: uppercase;
|
|
112
|
+
cursor: pointer;
|
|
113
|
+
transition:
|
|
114
|
+
background 0.15s ease,
|
|
115
|
+
color 0.15s ease;
|
|
116
|
+
|
|
117
|
+
&:focus-visible {
|
|
118
|
+
outline: 2px solid ${m.accent};
|
|
119
|
+
outline-offset: 2px;
|
|
120
|
+
}
|
|
121
|
+
`,ts=i.button`
|
|
122
|
+
${Ee};
|
|
123
|
+
border: 2px solid ${m.accent};
|
|
124
|
+
background: ${m.white};
|
|
125
|
+
color: ${m.accent};
|
|
126
|
+
|
|
127
|
+
&:hover {
|
|
128
|
+
background: ${m.rarityBg};
|
|
129
|
+
}
|
|
130
|
+
`,ss=i.button`
|
|
131
|
+
${Ee};
|
|
132
|
+
border: 0;
|
|
133
|
+
background: ${m.accent};
|
|
134
|
+
color: ${m.softWhite};
|
|
135
|
+
|
|
136
|
+
&:hover {
|
|
137
|
+
background: ${m.accentHover};
|
|
138
|
+
}
|
|
139
|
+
&:active {
|
|
140
|
+
background: ${m.accentActive};
|
|
141
|
+
}
|
|
142
|
+
`,ns=i.label`
|
|
143
|
+
display: flex;
|
|
144
|
+
align-items: center;
|
|
145
|
+
justify-content: center;
|
|
146
|
+
font-size: 14.049px;
|
|
147
|
+
line-height: normal;
|
|
148
|
+
color: ${m.text};
|
|
149
|
+
cursor: pointer;
|
|
150
|
+
`,os=i.span`
|
|
151
|
+
flex: none;
|
|
152
|
+
display: grid;
|
|
153
|
+
place-items: center;
|
|
154
|
+
width: 32px;
|
|
155
|
+
height: 32px;
|
|
156
|
+
|
|
157
|
+
& input {
|
|
158
|
+
--box: 13.714px;
|
|
159
|
+
}
|
|
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(c){c.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(Ut,{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(Wt,{children:[t.jsx(Yt,{children:o("newPricing.title")}),t.jsx(Jt,{onClick:()=>s(p),"aria-label":o("newPricing.close"),children:t.jsx(v,{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(rt,{size:20,color:n.colors.accent}),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
|
+
display: flex;
|
|
162
|
+
flex-direction: column;
|
|
163
|
+
gap: 4px;
|
|
164
|
+
width: 100%;
|
|
165
|
+
`;i.h2`
|
|
166
|
+
margin: 0;
|
|
167
|
+
padding: 4px 4px 2px;
|
|
168
|
+
font-family: ${n.font.sans};
|
|
169
|
+
font-weight: 700;
|
|
170
|
+
font-size: 12px;
|
|
171
|
+
letter-spacing: 0.46px;
|
|
172
|
+
text-transform: uppercase;
|
|
173
|
+
color: ${n.colors.muted};
|
|
174
|
+
`;i("button",Ae("selected"))`
|
|
175
|
+
display: flex;
|
|
176
|
+
align-items: center;
|
|
177
|
+
gap: 10px;
|
|
178
|
+
width: 100%;
|
|
179
|
+
height: 40px;
|
|
180
|
+
padding: 4px 12px;
|
|
181
|
+
border: 0;
|
|
182
|
+
border-radius: 8px;
|
|
183
|
+
background: ${({selected:s})=>s?n.colors.media:"transparent"};
|
|
184
|
+
color: ${n.colors.text};
|
|
185
|
+
font-family: ${n.font.sans};
|
|
186
|
+
font-weight: ${({selected:s})=>s?600:400};
|
|
187
|
+
font-size: 14px;
|
|
188
|
+
text-align: left;
|
|
189
|
+
cursor: pointer;
|
|
190
|
+
|
|
191
|
+
@media (hover: hover) {
|
|
192
|
+
&:hover {
|
|
193
|
+
background: ${n.colors.media};
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
&:focus-visible {
|
|
197
|
+
outline: 2px solid ${n.colors.accent};
|
|
198
|
+
outline-offset: 2px;
|
|
199
|
+
}
|
|
200
|
+
`;i(v)`
|
|
201
|
+
width: 18px;
|
|
202
|
+
height: 18px;
|
|
203
|
+
flex: none;
|
|
204
|
+
color: ${n.colors.muted};
|
|
205
|
+
`;i.div`
|
|
206
|
+
display: flex;
|
|
207
|
+
flex-direction: column;
|
|
208
|
+
gap: 8px;
|
|
209
|
+
width: 100%;
|
|
210
|
+
`;i.span`
|
|
211
|
+
font-family: ${n.font.sans};
|
|
212
|
+
font-weight: 600;
|
|
213
|
+
font-size: 14px;
|
|
214
|
+
line-height: 1.43;
|
|
215
|
+
color: ${n.colors.text};
|
|
216
|
+
padding: 0 4px;
|
|
217
|
+
`;i.div`
|
|
218
|
+
display: flex;
|
|
219
|
+
flex-wrap: wrap;
|
|
220
|
+
gap: 8px;
|
|
221
|
+
padding: 4px;
|
|
222
|
+
`;i("button",Ae("selected"))`
|
|
223
|
+
display: inline-flex;
|
|
224
|
+
align-items: center;
|
|
225
|
+
gap: 4px;
|
|
226
|
+
padding: 4px 10px;
|
|
227
|
+
border-radius: 6px;
|
|
228
|
+
background: ${({selected:s})=>s?n.colors.text:n.colors.softWhite};
|
|
229
|
+
border: ${({selected:s})=>s?`1px solid ${n.colors.text}`:`0.5px solid ${n.colors.gray4}`};
|
|
230
|
+
color: ${({selected:s})=>s?n.colors.white:n.colors.gray0};
|
|
231
|
+
font-family: ${n.font.sans};
|
|
232
|
+
font-weight: ${({selected:s})=>s?600:400};
|
|
233
|
+
font-size: 12px;
|
|
234
|
+
cursor: pointer;
|
|
235
|
+
|
|
236
|
+
&:hover {
|
|
237
|
+
border-color: ${n.colors.text};
|
|
238
|
+
}
|
|
239
|
+
&:focus-visible {
|
|
240
|
+
outline: 2px solid ${n.colors.accent};
|
|
241
|
+
outline-offset: 2px;
|
|
242
|
+
}
|
|
243
|
+
`;const ds=i.div`
|
|
244
|
+
display: flex;
|
|
245
|
+
align-items: center;
|
|
246
|
+
gap: 8px;
|
|
247
|
+
width: 100%;
|
|
248
|
+
height: 40px;
|
|
249
|
+
padding: 0 12px;
|
|
250
|
+
border: 1px solid ${n.colors.lineStrong};
|
|
251
|
+
border-radius: ${n.radius.btn};
|
|
252
|
+
background: ${n.colors.white};
|
|
253
|
+
|
|
254
|
+
&:focus-within {
|
|
255
|
+
border-color: ${n.colors.accent};
|
|
256
|
+
}
|
|
257
|
+
`,ps=i(v)`
|
|
258
|
+
width: 18px;
|
|
259
|
+
height: 18px;
|
|
260
|
+
flex: none;
|
|
261
|
+
color: ${n.colors.muted};
|
|
262
|
+
`,ms=i.input`
|
|
263
|
+
flex: 1;
|
|
264
|
+
min-width: 0;
|
|
265
|
+
border: 0;
|
|
266
|
+
background: none;
|
|
267
|
+
padding: 0;
|
|
268
|
+
font-family: ${n.font.sans};
|
|
269
|
+
font-size: 14px;
|
|
270
|
+
color: ${n.colors.text};
|
|
271
|
+
|
|
272
|
+
&::placeholder {
|
|
273
|
+
color: ${n.colors.muted2};
|
|
274
|
+
}
|
|
275
|
+
&:focus {
|
|
276
|
+
outline: 0;
|
|
277
|
+
}
|
|
278
|
+
`,us=i.button`
|
|
279
|
+
display: grid;
|
|
280
|
+
place-items: center;
|
|
281
|
+
width: 24px;
|
|
282
|
+
height: 24px;
|
|
283
|
+
border: 0;
|
|
284
|
+
border-radius: 50%;
|
|
285
|
+
background: ${n.colors.chip};
|
|
286
|
+
color: ${n.colors.text};
|
|
287
|
+
cursor: pointer;
|
|
288
|
+
flex: none;
|
|
289
|
+
|
|
290
|
+
&:focus-visible {
|
|
291
|
+
outline: 2px solid ${n.colors.accent};
|
|
292
|
+
outline-offset: 2px;
|
|
293
|
+
}
|
|
294
|
+
`,fs=i(v)`
|
|
295
|
+
width: 12px;
|
|
296
|
+
height: 12px;
|
|
297
|
+
`,ye=i.div`
|
|
298
|
+
display: grid;
|
|
299
|
+
grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
|
|
300
|
+
gap: 20px;
|
|
301
|
+
|
|
302
|
+
${n.media.maxWidth("sm")} {
|
|
303
|
+
grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
|
|
304
|
+
gap: 12px;
|
|
305
|
+
}
|
|
306
|
+
`;i.p`
|
|
307
|
+
margin: 24px 0;
|
|
308
|
+
font-family: ${n.font.sans};
|
|
309
|
+
font-size: 14px;
|
|
310
|
+
color: ${n.colors.muted};
|
|
311
|
+
`;const be=i.div`
|
|
312
|
+
display: flex;
|
|
313
|
+
flex-direction: column;
|
|
314
|
+
align-items: center;
|
|
315
|
+
justify-content: center;
|
|
316
|
+
gap: 6px;
|
|
317
|
+
padding: 72px 24px;
|
|
318
|
+
text-align: center;
|
|
319
|
+
`,we=i.div`
|
|
320
|
+
display: flex;
|
|
321
|
+
align-items: center;
|
|
322
|
+
justify-content: center;
|
|
323
|
+
width: 72px;
|
|
324
|
+
height: 72px;
|
|
325
|
+
margin-bottom: 10px;
|
|
326
|
+
border-radius: 50%;
|
|
327
|
+
background: ${n.colors.navViolet};
|
|
328
|
+
color: ${n.colors.accent};
|
|
329
|
+
`,je=i.p`
|
|
330
|
+
margin: 0;
|
|
331
|
+
font-family: ${n.font.sans};
|
|
332
|
+
font-size: 18px;
|
|
333
|
+
font-weight: 600;
|
|
334
|
+
color: ${n.colors.text};
|
|
335
|
+
`,$e=i.p`
|
|
336
|
+
margin: 0;
|
|
337
|
+
max-width: 360px;
|
|
338
|
+
font-family: ${n.font.sans};
|
|
339
|
+
font-size: 14px;
|
|
340
|
+
line-height: 1.5;
|
|
341
|
+
color: ${n.colors.muted};
|
|
342
|
+
`,xs=i(st)`
|
|
343
|
+
margin-top: 12px;
|
|
344
|
+
display: inline-flex;
|
|
345
|
+
align-items: center;
|
|
346
|
+
height: 40px;
|
|
347
|
+
padding: 0 20px;
|
|
348
|
+
border-radius: 8px;
|
|
349
|
+
background: ${n.colors.accent};
|
|
350
|
+
color: ${n.colors.white};
|
|
351
|
+
font-family: ${n.font.sans};
|
|
352
|
+
font-size: 14px;
|
|
353
|
+
font-weight: 600;
|
|
354
|
+
text-decoration: none;
|
|
355
|
+
cursor: pointer;
|
|
356
|
+
|
|
357
|
+
&:hover {
|
|
358
|
+
background: ${n.colors.accentHover};
|
|
359
|
+
}
|
|
360
|
+
`,hs=i.section`
|
|
361
|
+
max-width: 520px;
|
|
362
|
+
margin: 48px auto;
|
|
363
|
+
text-align: center;
|
|
364
|
+
display: flex;
|
|
365
|
+
flex-direction: column;
|
|
366
|
+
gap: 16px;
|
|
367
|
+
align-items: center;
|
|
368
|
+
`,gs=i.h1`
|
|
369
|
+
margin: 0;
|
|
370
|
+
font-family: ${n.font.sans};
|
|
371
|
+
font-weight: 700;
|
|
372
|
+
font-size: 24px;
|
|
373
|
+
color: ${n.colors.text};
|
|
374
|
+
`,ys=i.p`
|
|
375
|
+
margin: 0;
|
|
376
|
+
font-family: ${n.font.sans};
|
|
377
|
+
font-size: 15px;
|
|
378
|
+
color: ${n.colors.muted};
|
|
379
|
+
`,bs=i(ls)`
|
|
380
|
+
margin-bottom: 16px;
|
|
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 Hs(){var de,pe;it({title:o("nav.myAssets"),noindex:!0});const{session:s,error:l,signIn:p,restore:x}=at(),b=nt(),[E,y]=ot(),C=E.get("section"),c=Se.some(e=>e.key===C)?C:"wearables",[f,M]=d.useState("all"),[w,K]=d.useState([]),[g,R]=d.useState(null),[I,Fe]=d.useState("newest"),[T,se]=d.useState(""),[j,_e]=d.useState(""),[O,$]=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=a=>{a.key==="Escape"&&$(!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 h=s==null?void 0:s.address,Me=Se.find(e=>e.key===c),F=ke(c),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=>w.includes(e)).map(me).join(", ");function re(e){y(r=>{const a=new URLSearchParams(r);return a.set("section",e),a},{replace:!0}),R(null),ke(e)||K([]),$(!1)}function ie(e){K(r=>r.includes(e)?r.filter(a=>a!==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:Ue,isFetchingNextPage:ae,isFetchNextPageError:We,fetchNextPage:Ye}=_t(["my-assets",h,c,f,w,g,j,oe],e=>lt(h,{category:Me.category,first:ws,skip:e,search:j||void 0,rarities:F&&w.length?w:void 0,wearableCategories:c==="wearables"&&g?ue[g]:void 0,emoteCategories:c==="emotes"&&g?ue[g]:void 0,onlyOnSale:f==="on_sale"||void 0,sortBy:oe}).then(r=>({items:r.assets,total:r.total})),{enabled:!!h&&c!=="creations"}),H=d.useMemo(()=>c==="wearables"||c==="emotes"?[...new Set(A.map(e=>e.contractAddress))]:[],[A,c]),{data:_}=Q({queryKey:["secondary-sale-state",H],enabled:H.length>0,queryFn:async()=>{const e=await Promise.all(H.map(async a=>[a,await dt(a)])),r={};for(const[a,u]of e)for(const[S,k]of Object.entries(u))r[`${a}-${S}`]=k;return r}}),ce=e=>_==null?void 0:_[`${e.contractAddress}-${e.tokenId}`],Je=e=>!!ce(e)||e.isOnSale,U=d.useMemo(()=>f==="not_for_sale"?A.filter(e=>!Je(e)):A,[A,f,_]),{data:z,isLoading:W,isError:Qe}=Q({queryKey:["publishable-items",h],queryFn:()=>mt(h,s.identity),enabled:!!s&&c==="creations",retry:!1}),Y=d.useMemo(()=>[...new Set((z??[]).map(e=>e.contractAddress))],[z]),{data:B}=Q({queryKey:["collection-sale-state",h,Y],enabled:Y.length>0,queryFn:async()=>{const e=await Promise.all(Y.map(async a=>[a,await pt(a)])),r={};for(const[a,u]of e)for(const[S,k]of Object.entries(u))r[`${a}-${S}`]=k;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(a=>{var u;return(u=P(a))==null?void 0:u.isOnSale}):f==="not_for_sale"&&(e=e.filter(a=>{var u;return!((u=P(a))!=null&&u.isOnSale)})),j){const a=j.toLowerCase();e=e.filter(u=>u.name.toLowerCase().includes(a))}const r=[...e];return I==="name"?r.sort((a,u)=>a.name.localeCompare(u.name)):I==="cheapest"&&r.sort((a,u)=>{var S,k;return(((S=P(a))==null?void 0:S.priceCredits)??0)-(((k=P(u))==null?void 0:k.priceCredits)??0)}),r},[z,B,f,j,I]),{count:Ve}=zt(),N=Ve??0;d.useEffect(()=>{G!=="idle"||N===0||as(ge,h)||ne("open")},[G,N,h]);function le(e){e&&cs(ge,h),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(ct,{variant:"purple",onClick:()=>p(),children:o("storeSettings.signIn")}),t.jsx(he,{message:l})]});const Ze=c==="creations"?W:q||D,Xe=c==="creations"?J.length:f==="not_for_sale"?U.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)w.includes(e)&&L.push({key:`rarity-${e}`,label:me(e),onRemove:()=>ie(e)});if(F&&g){const e=(pe=(de=ft.find(r=>r.key===ve[c]))==null?void 0:de.subs)==null?void 0:pe.find(r=>r.key===g);L.push({key:"sub",label:e?o(e.labelKey):g,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[c],subCategory:g,onCategory:qe,onSub:R,onCollections:()=>re("creations"),collections:c==="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=w.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:()=>$(!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:()=>$(!1),"aria-label":o("assets.closeFilters"),children:"✕"})]}),t.jsx(Rt,{children:tt}),t.jsx(Tt,{children:t.jsx(Ot,{type:"button",onClick:()=>$(!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:j,onOpenFilters:()=>$(!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]})}),(c==="creations"?Qe:He)?t.jsx(he,{message:o("myAssets.ownedError"),testId:"my-assets-error"}):null,c==="creations"?t.jsxs(t.Fragment,{children:[t.jsx(ye,{"data-testid":"grid",children:W?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,h??""),mode:"manage-link"},`${e.contractAddress}-${e.blockchainItemId}`)})}),!W&&J.length===0?t.jsxs(be,{children:[t.jsx(we,{children:t.jsx(v,{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}):U.map(e=>c==="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(ut,{hasNextPage:Ue,isFetching:ae,isError:We,onLoadMore:()=>void Ye()}):null,!q&&!D&&U.length===0?t.jsxs(be,{children:[t.jsx(we,{children:t.jsx(v,{name:c==="names"?"website":c==="emotes"?"emote-dance":"cat-upper",size:30,"aria-hidden":!0})}),t.jsx(je,{children:c==="names"?o("myAssets.emptyNamesTitle"):o("myAssets.emptyOwnedTitle")}),t.jsx($e,{children:c==="names"?o("myAssets.namesEmpty"):o("myAssets.ownedEmpty")}),c!=="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{Hs as MyAssets};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{L as h,r as g,j as t}from"./react-DehiWSvs.js";import{s,t as f,
|
|
1
|
+
import{L as h,r as g,j as t}from"./react-DehiWSvs.js";import{s,t as f,q as u,b as o,ae as c,af as y,ag as v}from"./index-D-7WCtxn.js";import{L as C}from"./LoadMore-D8E5F-8f.js";import{E as j}from"./ErrorNotice-BCKaFzga.js";import{G as b}from"./grid.styles-BZkFiBLS.js";import"./sentry-973sfbO9.js";import"./dcl-schemas-Dr9BTjb7.js";import"./ethers-CtNGBird.js";import"./intl-CBcMB1D2.js";const{colors:e,radius:p}=f,w=s.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
align-items: baseline;
|
|
4
4
|
gap: 12px;
|
|
@@ -91,4 +91,4 @@ import{L as h,r as g,j as t}from"./react-DehiWSvs.js";import{s,t as f,m as u,b a
|
|
|
91
91
|
outline: 2px solid ${e.accent};
|
|
92
92
|
outline-offset: 2px;
|
|
93
93
|
}
|
|
94
|
-
`,B="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",l=24;function P(){u({title:o("nav.myFavorites"),noindex:!0});const n=c(i=>Object.values(i.items)),a=c(i=>i.status),x=c(i=>i.retry),[d,m]=g.useState(l);if(a==="error")return t.jsxs(k,{"data-testid":"favorites-error",children:[t.jsx(
|
|
94
|
+
`,B="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",l=24;function P(){u({title:o("nav.myFavorites"),noindex:!0});const n=c(i=>Object.values(i.items)),a=c(i=>i.status),x=c(i=>i.retry),[d,m]=g.useState(l);if(a==="error")return t.jsxs(k,{"data-testid":"favorites-error",children:[t.jsx(j,{message:o("myFavorites.loadError")}),t.jsx(E,{type:"button",onClick:x,children:o("myFavorites.tryAgain")})]});if(a==="ready"&&n.length===0)return t.jsxs($,{"data-testid":"favorites-empty",children:[t.jsx(L,{src:B,alt:"",width:138,height:138}),t.jsxs(_,{children:[t.jsx(H,{children:o("myFavorites.emptyTitle")}),t.jsx(M,{children:o("myFavorites.emptyBody")})]}),t.jsx(z,{to:"/items",children:o("myFavorites.emptyCta")})]});const r=a==="loading";return t.jsxs("section",{children:[t.jsxs(w,{children:[t.jsx("h1",{children:o("nav.myFavorites")}),r?null:t.jsx(F,{children:o("myFavorites.itemCount",{count:n.length})})]}),t.jsx(b,{"data-testid":r?"favorites-loading":void 0,children:r?t.jsx(y,{count:8}):n.slice(0,d).map(i=>t.jsx(v,{item:i},i.id))}),t.jsx(C,{hasNextPage:!r&&d<n.length,isFetching:!1,onLoadMore:()=>m(i=>i+l)})]})}export{P as MyFavorites};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as t,L as e}from"./react-DehiWSvs.js";import{s as n,I as i,
|
|
1
|
+
import{j as t,L as e}from"./react-DehiWSvs.js";import{s as n,I as i,q as s,b as o,B as a}from"./index-D-7WCtxn.js";import"./sentry-973sfbO9.js";import"./dcl-schemas-Dr9BTjb7.js";import"./ethers-CtNGBird.js";import"./intl-CBcMB1D2.js";const r=n.div`
|
|
2
2
|
min-height: 52vh;
|
|
3
3
|
display: flex;
|
|
4
4
|
flex-direction: column;
|