@dcl/shop 0.1.0-28945852206.commit-364949f → 0.1.0-29002316303.commit-bd5d006
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/AnimatedBackground-CiurwFBv.css +1 -0
- package/assets/AnimatedBackground-DwJTekmu.js +80 -0
- package/assets/{Assets-CBO-k6RL.js → Assets-CPKwtXeG.js} +1 -1
- package/assets/Button-B97LSmPW.js +74 -0
- package/assets/{Cart-DjeHyHVH.js → Cart-B4-XSYhj.js} +1 -1
- package/assets/{CircularProgress-iejXOpI6.js → CircularProgress-BtAdS3mK.js} +1 -1
- package/assets/{Collection-CM4rdqj5.js → Collection-BITbBunr.js} +1 -1
- package/assets/{ConstantsUtil-DOBrEopM.js → ConstantsUtil-DrWe0yob.js} +1 -1
- package/assets/{Creator-ZF8mQkd8.js → Creator-DpWvb_eV.js} +1 -1
- package/assets/DCL_LogoPattern-BryBPc3d.png +0 -0
- package/assets/{ExchangeController-DboaUneu.js → ExchangeController-CLNl7X0L.js} +1 -1
- package/assets/{FilterBar-CGgARS4S.js → FilterBar-CdU8B66A.js} +1 -1
- package/assets/GetCredits-XZdYVDK_.js +2 -0
- package/assets/{HelpersUtil-Zw_zzRiU.js → HelpersUtil-U7ylXlSU.js} +1 -1
- package/assets/{ImportListings-k9j5J1Zo.js → ImportListings-vVpgd0RJ.js} +1 -1
- package/assets/ItemDetail-C-RZG-7m.css +1 -0
- package/assets/ItemDetail-CagXeXhf.js +2 -0
- package/assets/{LoadMore-Cae84rui.js → LoadMore-BOCtgPLI.js} +1 -1
- package/assets/{Market-aDtWDkNw.js → Market-D9b86TWl.js} +1 -1
- package/assets/MenuItem-BaS9dwAb.js +9 -0
- package/assets/{MyAssets-Bw4serZG.js → MyAssets-LesZayzn.js} +1 -1
- package/assets/{MyFavorites-Dy0hokpG.js → MyFavorites-BFGd3qul.js} +1 -1
- package/assets/{MyPurchases-zeAdPUpL.js → MyPurchases-4O1sYgPa.js} +1 -1
- package/assets/{NetworkUtil-aE1iGnVj.js → NetworkUtil-Ddexw9-U.js} +1 -1
- package/assets/{NotFound-DjhNP5fN.js → NotFound-jVMYZTzX.js} +1 -1
- package/assets/{RealCheckout-DRBUykjl.js → RealCheckout-Emv2rnKJ.js} +1 -1
- package/assets/{ShopFooterInner-C7h1YCHA.js → ShopFooterInner-B7Kra_gV.js} +3 -3
- package/assets/{SkeletonCards-D9qg3FUs.js → SkeletonCards-BysJEVmg.js} +1 -1
- package/assets/{Success-fnmEnGG5.js → Success-CL0-vvGw.js} +1 -1
- package/assets/SvgIcon-Bjkj3_CR.js +1 -0
- package/assets/{SwapController-SlgG4aYU.js → SwapController-3n2vq1CX.js} +1 -1
- package/assets/{TradeService-DcE__a6G.js → TradeService-DlzFKIi0.js} +1 -1
- package/assets/{W3MFrameProviderSingleton-_PrcmI1q.js → W3MFrameProviderSingleton-DFy8mL1o.js} +3 -3
- package/assets/{WebCryptoP256-CHjsiX4E.js → WebCryptoP256-CdfoKLvV.js} +1 -1
- package/assets/{basic-B54y0zeq.js → basic-DF0x-8j0.js} +1 -1
- package/assets/{biconomy-BHmdMe5c.js → biconomy-uNfxxgSz.js} +1 -1
- package/assets/{browser-Ch1J123w.js → browser-DHYOtFa8.js} +1 -1
- package/assets/{browser-ponyfill-Be08WuKC.js → browser-ponyfill-rND5WOqr.js} +1 -1
- package/assets/{buy-DwyjMqAP.js → buy-BmZCwbRH.js} +1 -1
- package/assets/{buy-gasless-op4cwmiR.js → buy-gasless-BMlSkNzH.js} +1 -1
- package/assets/{ccip-BSpZndDt.js → ccip-BN7uV5yj.js} +1 -1
- package/assets/{ccip-BmtH9SqU.js → ccip-DILTAFEl.js} +1 -1
- package/assets/{chains-BQfW7JAQ.js → chains-CMJ6lVMG.js} +1 -1
- package/assets/{collection-Bpot6wpS.js → collection-DjHYkCfI.js} +1 -1
- package/assets/{common-CcOIK3mx.js → common-GsSQn_vD.js} +1 -1
- package/assets/{controller-uIUMKWEt.js → controller-49iaLet1.js} +2 -2
- package/assets/{core-DXdcP5HZ.js → core-yZGJ8DUA.js} +4 -4
- package/assets/{custom-BUnwkQ6N.js → custom-CFJfKM8I.js} +1 -1
- package/assets/{data-capture-U7pMB_F-.js → data-capture-C_3s7u5X.js} +1 -1
- package/assets/{decimals-CoSJIqdK.js → decimals-BOuBNygx.js} +1 -1
- package/assets/decimals-Bw5QzAzB.js +1 -0
- package/assets/{detectExtension-Ro6Acqan.js → detectExtension-By3YFrnI.js} +1 -1
- package/assets/{email-K4smfBfY.js → email-_2DjjRcX.js} +1 -1
- package/assets/{embedded-wallet-Cs_MXcVd.js → embedded-wallet-d37hEAVQ.js} +1 -1
- package/assets/{engine-DmFYY-M_.js → engine-CgBHIO_B.js} +1 -1
- package/assets/{estimate-l1-fee-CKgprc5I.js → estimate-l1-fee-DKPdSv11.js} +1 -1
- package/assets/eth_estimateGas-BNAPD8y1.js +1 -0
- package/assets/{eth_getStorageAt-uqzo0gxD.js → eth_getStorageAt-D4Oc0EWh.js} +1 -1
- package/assets/eth_getTransactionCount-BuGy0oh_.js +1 -0
- package/assets/{ethereum-XjVKsXdf.js → ethereum-CjiWK1L5.js} +1 -1
- package/assets/{ethers-CU3Ctw5k.js → ethers-DHDSyreX.js} +1 -1
- package/assets/{extractIPFS-DKs0_Rn8.js → extractIPFS-Djm4b9om.js} +1 -1
- package/assets/{features-DUP0GPvE.js → features-Nu8ft-DR.js} +1 -1
- package/assets/{fetchTokenMetadata-CM9v3KgQ.js → fetchTokenMetadata-C9gZA1VK.js} +2 -2
- package/assets/{fortmatic-86Dpmkig.js → fortmatic-B9IU5L1m.js} +1 -1
- package/assets/{generateUtilityClasses-DFV3l_aJ.js → generateUtilityClasses-wRCEHwkd.js} +2 -2
- package/assets/get-ecosystem-wallet-info-BKi9d9La.js +1 -0
- package/assets/{getBalance-Cq9qlbkZ.js → getBalance-VU8hTXaX.js} +2 -2
- package/assets/{getInstalledModules-DTAAMaer.js → getInstalledModules-BfvNNyZ9.js} +1 -1
- package/assets/{getNFT-CyrvaTLz.js → getNFT-BX-0ukXu.js} +2 -2
- package/assets/{getNFT-CbGyPAMP.js → getNFT-xdz2YHeO.js} +1 -1
- package/assets/{hashTypedData-DT7LRNGX.js → hashTypedData-Bw8VSnQz.js} +1 -1
- package/assets/{hashTypedData-DqXDddu6.js → hashTypedData-D3ppM4iK.js} +1 -1
- package/assets/{import-C06P5lQP.js → import-DXI6xe8g.js} +1 -1
- package/assets/{in-app-wallet-calls-D39FiW4T.js → in-app-wallet-calls-a76AHLUS.js} +1 -1
- package/assets/{index-B-MtbhtE.js → index-3d5QRDC9.js} +1 -1
- package/assets/{index-BXZD6JAt.js → index-91ey6P2k.js} +1 -1
- package/assets/index-B5srtbdi.js +1 -0
- package/assets/{index-D0hi13Mt.js → index-B9vZwW3s.js} +1 -1
- package/assets/{index-dcqyW0WV.js → index-BBK9Y4XF.js} +1 -1
- package/assets/{index-6zlIHhqj.js → index-BBKLOgxD.js} +3 -3
- package/assets/{index-HY-n-iGV.js → index-BLPu_LFY.js} +1 -1
- package/assets/{index-Cf-JuzPM.js → index-BMs28WEG.js} +1 -1
- package/assets/{index-BeQ4HGyd.js → index-BOA0blvN.js} +1 -1
- package/assets/{index-bJ6HAtiK.js → index-BOwZsNrV.js} +1 -1
- package/assets/{index-BXpN2yVg.js → index-BWvbpA_w.js} +2 -2
- package/assets/{index-D4A2vLZe.js → index-BX5dsPOx.js} +1 -1
- package/assets/{index-DYadknN5.js → index-B_Kzpf8Y.js} +1 -1
- package/assets/{index-NtdsSD1v.js → index-Bdx6iTiN.js} +1 -1
- package/assets/{index-DJNHtfkh.js → index-BhOVY5qU.js} +1 -1
- package/assets/{index-CuQf8IZi.js → index-BjjXbPFz.js} +2 -2
- package/assets/{index-Ctj09Wx6.js → index-BuKyqX4w.js} +1 -1
- package/assets/{index-B2uqMBh5.js → index-BuWxIV02.js} +1 -1
- package/assets/{index-CfzzJJMt.js → index-BwiZgchN.js} +41 -41
- package/assets/{index-B1aJy0sz.js → index-C1uNu9ax.js} +1 -1
- package/assets/{index-KtEbmQ9R.js → index-C5AZvu78.js} +1 -1
- package/assets/{index-DHG_C-Ye.js → index-CENZ1Xjd.js} +1 -1
- package/assets/{index-D3oE2u-n.js → index-CLIR3TTD.js} +1 -1
- package/assets/{index-C96Ea4xU.js → index-CLhk7eut.js} +1 -1
- package/assets/index-CMVEud4W.js +1 -0
- package/assets/index-CQB-2hib.js +1 -0
- package/assets/index-CVHG3ouX.js +4 -0
- package/assets/{index-Bzp10dDD.js → index-CWcJTahC.js} +1 -1
- package/assets/{index-DCL3fwlO.js → index-CWf2wa-0.js} +1 -1
- package/assets/{index-B4UqUY5v.js → index-CXT4WA4W.js} +1 -1
- package/assets/{index-B67hpoq5.js → index-CdfeQ7YK.js} +1 -1
- package/assets/{index-DWdlpiTK.js → index-Ce5-l4iN.js} +1 -1
- package/assets/{index-CpSpQjqZ.js → index-CeNkoKMh.js} +1 -1
- package/assets/{index-FBZIs89O.js → index-CjhsNe2w.js} +1 -1
- package/assets/index-Ck71AH1s.js +1 -0
- package/assets/{index-DrMJP1yU.js → index-Cl7b1h3u.js} +1 -1
- package/assets/{index-dh6reMW-.js → index-ClHveqxo.js} +2 -2
- package/assets/{index-DjnwGukw.js → index-Cxqt8VVu.js} +2 -2
- package/assets/{index-GfCqBMFv.js → index-D0eai65M.js} +1 -1
- package/assets/{index-AZRtL5LY.js → index-D8G2r3X0.js} +1 -1
- package/assets/{index-Pws_ODuR.css → index-DCrqkiFN.css} +1 -1
- package/assets/{index-R2A2Tsb5.js → index-DFiTZkQC.js} +1 -1
- package/assets/{index-wIIslmBs.js → index-DQv23Ja8.js} +1 -1
- package/assets/{index-RGDeneKO.js → index-DVAU0FU0.js} +1 -1
- package/assets/{index-BvQulWAh.js → index-DVS4Kd2_.js} +1 -1
- package/assets/{index-UKUxTJut.js → index-DXx-pvKF.js} +1 -1
- package/assets/{index-D2JbRvDH.js → index-DYJKRlpr.js} +1 -1
- package/assets/{index-B4-zOmOU.js → index-DZvqB6PN.js} +1 -1
- package/assets/{index-KgDMcyiH.js → index-DdnPAJ5X.js} +3 -3
- package/assets/{index-jHvjWNz3.js → index-DgQBo3-C.js} +1 -1
- package/assets/{index-7JsVFE1i.js → index-DmD_WwXV.js} +1 -1
- package/assets/{index-D6ZedYGB.js → index-Dr4xkIv9.js} +1 -1
- package/assets/{index-BezcXh9b.js → index-DstXS_u0.js} +1 -1
- package/assets/{index-As-Txuxb.js → index-DxOJU9tq.js} +1 -1
- package/assets/{index-Bh6YeyyZ.js → index-KJnoTXad.js} +1 -1
- package/assets/{index-BqYDk5ru.js → index-N4GX97C1.js} +1 -1
- package/assets/{index-BLYpV6KR.js → index-PHWeiOni.js} +1 -1
- package/assets/{index-BF1X-WT8.js → index-YHrFkKjE.js} +1 -1
- package/assets/{index-hD37wRqx.js → index-cp9iLCgk.js} +1 -1
- package/assets/{index-Csetv3rX.js → index-fG-RLqf5.js} +1 -1
- package/assets/{index.es-C9d_vRP1.js → index.es-CJd9j6O2.js} +1 -1
- package/assets/{index.es-CEk3CBed.js → index.es-DiOmCt3r.js} +1 -1
- package/assets/{index.es-C10dslGN.js → index.es-DtnPa4kO.js} +4 -4
- package/assets/{localBatchGatewayRequest-CApKBgKG.js → localBatchGatewayRequest-Boe2Uu3X.js} +1 -1
- package/assets/{mana-rate-B_AigQrJ.js → mana-rate-DwCj8Lv7.js} +1 -1
- package/assets/{native-zogUBnfz.js → native-7uSYstXA.js} +1 -1
- package/assets/network-CAHzpPTI.js +1 -0
- package/assets/{networks-WXiQTrmA.js → networks-BXNVDVMe.js} +1 -1
- package/assets/{onramp-DLUqlNox.js → onramp-tCaDlitG.js} +1 -1
- package/assets/{openzeppelin-D_HjTS73.js → openzeppelin-DM-htEyG.js} +1 -1
- package/assets/{ownerOf-Ci3JqZI5.js → ownerOf-DuQIqO9x.js} +1 -1
- package/assets/{parseNft-COofrAtZ.js → parseNft-DmhbhONn.js} +2 -2
- package/assets/{parseSignature-C7yfhyNP.js → parseSignature-B1dR6bl6.js} +1 -1
- package/assets/{parseSignature-C0keamKq.js → parseSignature-DYYcQU1L.js} +3 -3
- package/assets/{pay-with-exchange-BVqcnBHV.js → pay-with-exchange-BVaMyGE7.js} +1 -1
- package/assets/{qr-overlay-DEPZuNZC.js → qr-overlay-CiH5yqmN.js} +3 -3
- package/assets/{react-4iaCnQ6n.js → react-Vu6nbGi5.js} +1 -1
- package/assets/{receive-hhpMkrCL.js → receive-Bavon8LG.js} +1 -1
- package/assets/{resolveImplementation-DB2tcWZT.js → resolveImplementation-DRvgKkHA.js} +1 -1
- package/assets/{rpc-DNO_-y8Q.js → rpc-XOogimcY.js} +1 -1
- package/assets/{secp256k1-BWXD__Q8.js → secp256k1-Ct-bO2J8.js} +1 -1
- package/assets/{secp256k1-usszAGLN.js → secp256k1-DC-J_61z.js} +1 -1
- package/assets/{secp256k1-DZOOdD3Q.js → secp256k1-sRaQf1d2.js} +1 -1
- package/assets/{send-Byn9_n_O.js → send-DnIZiu_D.js} +1 -1
- package/assets/{send-batch-transaction-Bkc9_kF5.js → send-batch-transaction-CPO0kOsY.js} +1 -1
- package/assets/{send-eip712-transaction-BkODwgBt.js → send-eip712-transaction-8M5PxXck.js} +2 -2
- package/assets/{send-gasless-transaction-0f2bzvrP.js → send-gasless-transaction-xI_ZhuLr.js} +2 -2
- package/assets/{sendRawTransaction-Ba02Lf24.js → sendRawTransaction-Ch9UQm_d.js} +3 -3
- package/assets/{serializeTransaction-CThdmJTZ.js → serializeTransaction-BxoemPoM.js} +1 -1
- package/assets/{session-proposal-C83uyR0w.js → session-proposal-jGuqVux9.js} +1 -1
- package/assets/{session-request-CKcNt3Lr.js → session-request-Cz0M4rti.js} +2 -2
- package/assets/{sha256-eKX6fnZH.js → sha256-CXOl0v9Q.js} +1 -1
- package/assets/{signing-D5FLtKXR.js → signing-COLj5Qif.js} +5 -5
- package/assets/{socials-C05TGQGD.js → socials-D55PbtcI.js} +1 -1
- package/assets/{swaps-s_YkxYBU.js → swaps-BlC7Enst.js} +1 -1
- package/assets/{thirdweb-B1YFOwK8.js → thirdweb-BLwDJ3T1.js} +3 -3
- package/assets/{totalSupply-DHVqx3Ji.js → totalSupply-CPrbwtW0.js} +1 -1
- package/assets/{transactionReceipt-CP7NvOEq.js → transactionReceipt-DqVp3Jfu.js} +1 -1
- package/assets/{transactions-Dd6SRcZw.js → transactions-CdBXyHvH.js} +1 -1
- package/assets/{useInfiniteGrid-lpWOvlaw.js → useInfiniteGrid-DQrjB0ET.js} +1 -1
- package/assets/{utils-kxirIM46.js → utils-nbkSUjEy.js} +1 -1
- package/assets/{verifyHash-efCoX5Y3.js → verifyHash-C_IzpMMF.js} +1 -1
- package/assets/{w3m-modal-BQF6p0Ie.js → w3m-modal-Cc-pA8Rt.js} +1 -1
- package/assets/{w3m-modal-Dhnf-2iF.js → w3m-modal-DMA1xH6X.js} +1 -1
- package/assets/{wait-for-tx-receipt-Dw-8-Kbu.js → wait-for-tx-receipt-F3kc-N-x.js} +1 -1
- package/assets/{wallet-kind-CgOBZALj.js → wallet-kind-DKOf0fdN.js} +1 -1
- package/assets/{wallets-BLWl9mlK.js → wallets-BsJncPFm.js} +6 -6
- package/assets/{web-connector-Cal0nABQ.js → web-connector-B9GX2O4t.js} +3 -3
- package/assets/{writeContract-eZ5pUdOF.js → writeContract-CzKKPc3I.js} +1 -1
- package/assets/{zora-sepolia-BMTSsYE9.js → zora-sepolia-BQEmh41Y.js} +1 -1
- package/assets/{zoraTestnet-DXStMuC6.js → zoraTestnet-BPw878mz.js} +1 -1
- package/index.html +8 -8
- package/package.json +2 -2
- package/assets/GetCredits-D08lmol7.js +0 -2
- package/assets/ItemDetail-4CYAKZlG.js +0 -1
- package/assets/ItemDetail-BLC5ggDg.css +0 -1
- package/assets/MenuItem-D_L9-mYI.js +0 -82
- package/assets/SvgIcon-D5EgVDYB.js +0 -1
- package/assets/decimals-DmGKmjRg.js +0 -1
- package/assets/eth_estimateGas-Cndo_DpW.js +0 -1
- package/assets/eth_getTransactionCount-C_xmVKuS.js +0 -1
- package/assets/get-ecosystem-wallet-info-Bs87Pcvd.js +0 -1
- package/assets/index-DEpc43-h.js +0 -1
- package/assets/index-ZxkJeEpU.js +0 -1
- package/assets/index-hJaqTa7S.js +0 -4
- package/assets/network-CNeSRpun.js +0 -1
package/index.html
CHANGED
|
@@ -16,10 +16,10 @@
|
|
|
16
16
|
<link rel="canonical" href="https://shop.decentraland.zone/" />
|
|
17
17
|
|
|
18
18
|
<!-- Favicon: the Decentraland mark (same as the marketplace). -->
|
|
19
|
-
<link rel="icon" type="image/x-icon" href="https://cdn.decentraland.org/@dcl/shop/0.1.0-
|
|
20
|
-
<link rel="apple-touch-icon" sizes="180x180" href="https://cdn.decentraland.org/@dcl/shop/0.1.0-
|
|
19
|
+
<link rel="icon" type="image/x-icon" href="https://cdn.decentraland.org/@dcl/shop/0.1.0-29002316303.commit-bd5d006/favicon.ico" sizes="16x16 32x32 48x48" />
|
|
20
|
+
<link rel="apple-touch-icon" sizes="180x180" href="https://cdn.decentraland.org/@dcl/shop/0.1.0-29002316303.commit-bd5d006/apple-touch-icon.png" />
|
|
21
21
|
<meta name="apple-mobile-web-app-title" content="DCL Shop" />
|
|
22
|
-
<link rel="manifest" href="https://cdn.decentraland.org/@dcl/shop/0.1.0-
|
|
22
|
+
<link rel="manifest" href="https://cdn.decentraland.org/@dcl/shop/0.1.0-29002316303.commit-bd5d006/site.webmanifest" />
|
|
23
23
|
|
|
24
24
|
<!-- Open Graph -->
|
|
25
25
|
<meta property="og:type" content="website" />
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
<meta name="twitter:image:alt" content="Decentraland Shop — wearables and emotes for your avatar" />
|
|
49
49
|
|
|
50
50
|
<!-- Sitemap -->
|
|
51
|
-
<link rel="sitemap" type="application/xml" title="Sitemap" href="https://cdn.decentraland.org/@dcl/shop/0.1.0-
|
|
51
|
+
<link rel="sitemap" type="application/xml" title="Sitemap" href="https://cdn.decentraland.org/@dcl/shop/0.1.0-29002316303.commit-bd5d006/sitemap.xml" />
|
|
52
52
|
|
|
53
53
|
<!-- Warm the 3D preview / fonts -->
|
|
54
54
|
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
|
@@ -60,10 +60,10 @@
|
|
|
60
60
|
<link rel="preconnect" href="https://wearable-preview.decentraland.org" />
|
|
61
61
|
<link rel="preconnect" href="https://peer.decentraland.zone" crossorigin />
|
|
62
62
|
<link rel="preconnect" href="https://peer.decentraland.org" crossorigin />
|
|
63
|
-
<script type="module" crossorigin src="https://cdn.decentraland.org/@dcl/shop/0.1.0-
|
|
64
|
-
<link rel="modulepreload" crossorigin href="https://cdn.decentraland.org/@dcl/shop/0.1.0-
|
|
65
|
-
<link rel="modulepreload" crossorigin href="https://cdn.decentraland.org/@dcl/shop/0.1.0-
|
|
66
|
-
<link rel="stylesheet" crossorigin href="https://cdn.decentraland.org/@dcl/shop/0.1.0-
|
|
63
|
+
<script type="module" crossorigin src="https://cdn.decentraland.org/@dcl/shop/0.1.0-29002316303.commit-bd5d006/assets/index-BwiZgchN.js"></script>
|
|
64
|
+
<link rel="modulepreload" crossorigin href="https://cdn.decentraland.org/@dcl/shop/0.1.0-29002316303.commit-bd5d006/assets/react-Vu6nbGi5.js">
|
|
65
|
+
<link rel="modulepreload" crossorigin href="https://cdn.decentraland.org/@dcl/shop/0.1.0-29002316303.commit-bd5d006/assets/ethers-DHDSyreX.js">
|
|
66
|
+
<link rel="stylesheet" crossorigin href="https://cdn.decentraland.org/@dcl/shop/0.1.0-29002316303.commit-bd5d006/assets/index-DCrqkiFN.css">
|
|
67
67
|
</head>
|
|
68
68
|
<body>
|
|
69
69
|
<div id="root"></div>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dcl/shop",
|
|
3
|
-
"version": "0.1.0-
|
|
3
|
+
"version": "0.1.0-29002316303.commit-bd5d006",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"author": "Decentraland",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -8,5 +8,5 @@
|
|
|
8
8
|
"type": "git",
|
|
9
9
|
"url": "git+https://github.com/decentraland/shop.git"
|
|
10
10
|
},
|
|
11
|
-
"commit": "
|
|
11
|
+
"commit": "bd5d00649d47d8fd4c96bb837a031cbd71f5920b"
|
|
12
12
|
}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/RealCheckout-DRBUykjl.js","assets/react-4iaCnQ6n.js","assets/index-CfzzJJMt.js","assets/ethers-CU3Ctw5k.js","assets/index-Pws_ODuR.css"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{R as P,h as y,S as O,a as V,k as F,m as _,w as v,x as S,l as u,d as N,K as $,_ as K}from"./index-CfzzJJMt.js";import{a as Y,r as l,j as e}from"./react-4iaCnQ6n.js";import{C}from"./CircularProgress-iejXOpI6.js";import"./ethers-CU3Ctw5k.js";import"./generateUtilityClasses-DFV3l_aJ.js";function R(){return y.shopServerUrl||y.creditsServerUrl}async function z(t,s){const r=await P(`${R()}/credits/checkout`,{method:"POST",identity:s,metadata:{},headers:{"Content-Type":"application/json"},body:JSON.stringify({packId:t})});if(!r.ok)throw new Error(`checkout ${r.status}: ${await r.text()}`);const{orderId:a,clientSecret:n}=await r.json();return{orderId:a,clientSecret:n,mock:!1}}async function L(t,s,r={}){const{intervalMs:a=1500,timeoutMs:n=6e4,signal:i}=r,c=Date.now()+n;for(;;){if(i!=null&&i.aborted)throw new DOMException("Aborted","AbortError");const m=await q(t,s,i);if(m.status!=="processing")return m;if(Date.now()>c)return{status:"failed",error:"Timed out waiting for your credits."};await J(a,i)}}async function q(t,s,r){const a=await P(`${R()}/credits/orders/${t}`,{method:"GET",identity:s,metadata:{},signal:r});if(!a.ok)throw new Error(`order status ${a.status}`);return a.json()}function J(t,s){return new Promise((r,a)=>{const n=setTimeout(r,t);s==null||s.addEventListener("abort",()=>{clearTimeout(n),a(new DOMException("Aborted","AbortError"))})})}const Q=.1,G=[{id:"pack_5",usd:5,credits:f(5)},{id:"pack_10",usd:10,credits:f(10)},{id:"pack_25",usd:25,credits:f(25),bestValue:!0},{id:"pack_50",usd:50,credits:f(50)}];function f(t){return Math.round(t/Q)}function T(t){return G.find(s=>s.id===t)}const x="mock_cs_";function M(){return!y.stripePublishableKey||!y.shopServerUrl}async function W(t,s){const r=T(t);if(!r)throw new Error("Unknown pack");if(M())return H(r);if(!(s!=null&&s.identity))throw new Error("Sign in to get credits.");return z(t,s.identity)}async function X(t,s={}){const{intervalMs:r,timeoutMs:a,signal:n,identity:i}=s;if(t.startsWith(x)||M())return Z(t,s);if(!i)throw new Error("Sign in to get credits.");return L(t,i,{intervalMs:r,timeoutMs:a,signal:n})}function H(t){const s=`${x}${t.id}_${Date.now()}`;return D(400).then(()=>({orderId:s,clientSecret:`${x}${t.id}`,mock:!0}))}async function Z(t,s={}){await D(s.intervalMs??900);const r=t.replace(x,"").replace(/_\d+$/,""),a=T(r),n=(a==null?void 0:a.credits)??0;if(s.address&&a)try{const i=await O(s.address,Math.round(a.usd*100));return{status:"credited",creditsGranted:n,newBalance:i.credits}}catch(i){return{status:"failed",error:i.message}}return{status:"credited",creditsGranted:n,newBalance:n}}function D(t,s){return new Promise((r,a)=>{setTimeout(r,t)})}const b=y.shopServerUrl?"stripe":"mock",ee=l.lazy(()=>K(()=>import("./RealCheckout-DRBUykjl.js"),__vite__mapDeps([0,1,2,3,4])));function E(t){const s=t;if((s==null?void 0:s.name)==="AbortError")return"You cancelled the request.";const r=((s==null?void 0:s.message)??"").toLowerCase();return r.includes("sign in")?`Sign in to get ${u.name}.`:r.includes("timed out")?`This is taking longer than usual — your ${u.name} will appear shortly.`:"Couldn't complete your purchase — please try again."}function oe(){const t=Y(),{session:s,signIn:r}=V(),a=F(),[n,i]=l.useState("select"),[c,m]=l.useState(null),[p,k]=l.useState(null),[I,w]=l.useState(null),[A,h]=l.useState(null),j=l.useRef(null);l.useEffect(()=>()=>{var d;return(d=j.current)==null?void 0:d.abort()},[]);const B=l.useCallback(async d=>{if(!s){r();return}h(null),m(d),i("paying"),_("Shop Started Buy Credits",{pack_usd:d.usd,credits:d.credits,provider:b});try{const o=await W(d.id,{address:s.address,identity:s.identity});k(o)}catch(o){v(o,{flow:"get_credits",step:"checkout",provider:b}),_("Shop Buy Credits Failed",{step:"checkout",error_code:S(o),pack_usd:d.usd}),h(E(o)),i("error")}},[s,r]),U=l.useCallback(async()=>{if(!p)return;i("processing");const d=new AbortController;j.current=d;try{const o=await X(p.orderId,{signal:d.signal,address:s==null?void 0:s.address,identity:s==null?void 0:s.identity});o.status==="credited"?(w(o.creditsGranted??(c==null?void 0:c.credits)??0),i("success"),_("Shop Completed Buy Credits",{order_id:p.orderId,pack_usd:(c==null?void 0:c.usd)??null,credits:o.creditsGranted??(c==null?void 0:c.credits)??0,provider:b}),a.invalidateQueries({queryKey:["usd-balance"]})):(_("Shop Buy Credits Failed",{step:"grant",error_code:"grant_failed",pack_usd:(c==null?void 0:c.usd)??null}),h(o.error??`Couldn't add your ${u.name} — please try again.`),i("error"))}catch(o){v(o,{flow:"get_credits",step:"grant",order_id:p.orderId}),_("Shop Buy Credits Failed",{step:"grant",error_code:S(o),pack_usd:(c==null?void 0:c.usd)??null}),h(E(o)),i("error")}},[p,c,s,a]);function g(){var d;(d=j.current)==null||d.abort(),i("select"),m(null),k(null),w(null),h(null)}return e.jsxs("div",{className:"getcredits",children:[e.jsxs("header",{className:"getcredits__head",children:[e.jsxs("h1",{className:"getcredits__title",children:["Get ",u.name]}),e.jsxs("p",{className:"muted",children:["Add ",u.name," to your account to shop. Pay with any card."]})]}),n==="select"&&e.jsx(se,{onSelect:B}),n==="paying"&&c&&e.jsx(te,{pack:c,checkout:p,onPaid:U,onCancel:g}),n==="processing"&&e.jsxs("div",{className:"getcredits__status",role:"status","aria-live":"polite",children:[e.jsx(C,{size:40}),e.jsxs("p",{className:"getcredits__status-title",children:["Adding your ",u.name,"…"]}),e.jsx("p",{className:"muted",children:"Payment received. Just a moment while we top up your balance."})]}),n==="success"&&e.jsxs("div",{className:"getcredits__status getcredits__status--ok",role:"status","aria-live":"polite",children:[e.jsx("div",{className:"getcredits__confetti","aria-hidden":!0,children:"🎉"}),e.jsx("p",{className:"getcredits__status-title",children:"You’re all set!"}),e.jsxs("p",{className:"muted",children:[e.jsxs("strong",{children:[e.jsx(N,{className:"ccy-mark"})," ",I]})," ",u.name," added to your account."]}),e.jsxs("div",{className:"getcredits__status-actions",children:[e.jsx("button",{className:"btn",onClick:()=>t("/cart"),children:"Back to cart"}),e.jsxs("button",{className:"btn btn--ghost",onClick:g,children:["Get more ",u.name]})]})]}),n==="error"&&e.jsxs("div",{className:"getcredits__status getcredits__status--err",role:"alert",children:[e.jsx("p",{className:"getcredits__status-title",children:"Something went wrong"}),e.jsx("p",{className:"error",children:A}),e.jsx("div",{className:"getcredits__status-actions",children:e.jsx("button",{className:"btn",onClick:g,children:"Try again"})})]})]})}function se({onSelect:t}){return e.jsx("div",{className:"packs",children:G.map(s=>e.jsxs("button",{type:"button",className:`pack${s.bestValue?" pack--best":""}`,onClick:()=>t(s),"aria-label":`Get ${$(s.credits)} for $${s.usd}`,children:[s.bestValue&&e.jsx("span",{className:"pack__ribbon",children:"Best value"}),e.jsxs("span",{className:"pack__credits",children:[e.jsx(N,{className:"pack__credits-ico"}),s.credits]}),e.jsx("span",{className:"pack__label",children:u.name}),e.jsxs("span",{className:"pack__price",children:["$",s.usd]}),e.jsxs("span",{className:"pack__cta",children:["Get ",u.name]})]},s.id))})}function te({pack:t,checkout:s,onPaid:r,onCancel:a}){return e.jsxs("div",{className:"pay",children:[e.jsxs("div",{className:"pay__summary",children:[e.jsx("button",{className:"link",onClick:a,children:"← Choose a different pack"}),e.jsxs("div",{className:"pay__summary-row",children:[e.jsx("span",{children:"You’ll get"}),e.jsxs("strong",{children:[e.jsx(N,{className:"ccy-mark"})," ",$(t.credits)]})]}),e.jsxs("div",{className:"pay__summary-row pay__summary-row--total",children:[e.jsx("span",{children:"You pay"}),e.jsxs("strong",{children:["$",t.usd]})]})]}),e.jsx("div",{className:"pay__form",children:s?s.mock?e.jsx(re,{onPaid:r,amountUsd:t.usd}):e.jsx(l.Suspense,{fallback:e.jsxs("div",{className:"getcredits__status",role:"status","aria-live":"polite",children:[e.jsx(C,{size:32}),e.jsx("p",{className:"muted",children:"Getting the payment form ready…"})]}),children:e.jsx(ee,{clientSecret:s.clientSecret,onComplete:r})}):e.jsxs("div",{className:"getcredits__status",role:"status","aria-live":"polite",children:[e.jsx(C,{size:32}),e.jsx("p",{className:"muted",children:"Getting the payment form ready…"})]})})]})}function re({onPaid:t,amountUsd:s}){const[r,a]=l.useState("4242 4242 4242 4242"),[n,i]=l.useState(!1);function c(){i(!0),setTimeout(()=>t(),700)}return e.jsxs("div",{className:"card-form","aria-label":"Payment details",children:[e.jsx("p",{className:"muted small card-form__note",children:"Demo mode — no real charge is made."}),e.jsxs("label",{className:"field",children:[e.jsx("span",{children:"Card number"}),e.jsx("input",{value:r,onChange:m=>a(m.target.value),disabled:n,inputMode:"numeric"})]}),e.jsxs("div",{className:"card-form__row",children:[e.jsxs("label",{className:"field",children:[e.jsx("span",{children:"Expiry"}),e.jsx("input",{defaultValue:"12 / 34",disabled:n})]}),e.jsxs("label",{className:"field",children:[e.jsx("span",{children:"CVC"}),e.jsx("input",{defaultValue:"123",disabled:n,inputMode:"numeric"})]})]}),e.jsx("button",{className:"btn btn--purple card-form__pay",onClick:c,disabled:n,children:n?"Processing…":`Pay $${s}`})]})}export{oe as GetCredits,oe as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as e,r as u,u as me,d as he,a as _e,L as fe}from"./react-4iaCnQ6n.js";import{a as H,T as pe,W as xe,D as T,h as Z,i as L,d as S,I as je,u as Y,j as ve,c as q,m as M,U as Ne,V as ye,X as be,Y as Ie,C as ge,Z as D,$ as Ce,g as we,q as Ae,z as ke,r as Ee,s as Se,v as z,w as Te,y as Le,n as $e,x as Fe,l as Pe,f as Re,a0 as Be,o as qe}from"./index-CfzzJJMt.js";import{h as K}from"./buy-DwyjMqAP.js";import{g as Me,a as Ue,w as Ve,G as We}from"./buy-gasless-op4cwmiR.js";import"./ethers-CU3Ctw5k.js";import"./index-As-Txuxb.js";function Ge({item:i}){const c=H(v=>{var N;return(N=v.session)==null?void 0:N.address}),{data:r}=pe(c),m=c&&r?c:"default",f=i.category==="emote";return e.jsx(xe,{id:"shop-item-preview",contractAddress:i.contractAddress,tokenId:i.tokenId??void 0,itemId:i.tokenId?void 0:i.itemId??void 0,profile:m,type:f?void 0:T.PreviewType.AVATAR,emote:f?void 0:T.PreviewEmote.FASHION,disableBackground:!0,wheelZoom:f?1.5:void 0,wheelStart:f?100:void 0,dev:Z.chainId===80002,disableFadeEffect:!0},i.id)}function Oe(i){return i==="male"?"♂":i==="female"?"♀":i==="unisex"?"⚥":""}function Ye({title:i,items:c,activeId:r,onSelect:m,onViewAll:f}){const v=u.useRef(null),N=L(a=>a.add),l=L(a=>a.items.map(d=>d.id));if(c.length===0)return null;function g(a){N(a,"carousel"),je.success(`“${a.name}” added to your cart.`)}function s(a){const d=v.current;d&&d.scrollBy({left:a*Math.round(d.clientWidth*.8),behavior:"smooth"})}return e.jsxs("section",{className:"collection-carousel",children:[e.jsxs("div",{className:"collection-carousel__head",children:[e.jsx("h2",{className:"collection-carousel__title",children:i}),e.jsxs("div",{className:"collection-carousel__head-right",children:[f?e.jsx("button",{className:"collection-carousel__viewall",onClick:f,children:"View all"}):null,e.jsxs("div",{className:"collection-carousel__arrows",children:[e.jsx("button",{className:"collection-carousel__arrow",onClick:()=>s(-1),"aria-label":"Scroll left",children:"‹"}),e.jsx("button",{className:"collection-carousel__arrow",onClick:()=>s(1),"aria-label":"Scroll right",children:"›"})]})]})]}),e.jsx("div",{className:"collection-carousel__track",ref:v,children:c.map(a=>{const d=Oe(a.gender),y=a.id===r,C=a.priceCredits>0,h=l.includes(a.id);return e.jsxs("article",{className:`collection-carousel__card${y?" is-active":""}`,onClick:()=>m(a),role:"button",tabIndex:0,"aria-current":y||void 0,onKeyDown:x=>{(x.key==="Enter"||x.key===" ")&&(x.preventDefault(),m(a))},children:[e.jsxs("div",{className:"collection-carousel__media",children:[a.thumbnail?e.jsx("img",{className:"collection-carousel__img",src:a.thumbnail,alt:a.name,loading:"lazy"}):null,C?e.jsx("button",{className:"collection-carousel__add",disabled:h,"aria-label":h?"In cart":`Add ${a.name} to cart`,title:h?"In cart":"Add to cart",onClick:x=>{x.stopPropagation(),h||g(a)},children:e.jsx("span",{className:`ico ${h?"ico-cart-solid":"ico-cart"}`,"aria-hidden":!0})}):null]}),e.jsxs("div",{className:"collection-carousel__body",children:[e.jsx("div",{className:"collection-carousel__name",title:a.name,children:a.name}),e.jsxs("div",{className:"collection-carousel__meta",children:[C?e.jsxs("span",{className:"collection-carousel__price",children:[e.jsx(S,{className:"collection-carousel__diamond"}),a.priceCredits]}):e.jsx("span",{className:"collection-carousel__price collection-carousel__na",children:"Not listed"}),e.jsxs("span",{className:"collection-carousel__chips",children:[e.jsx("span",{className:"chip chip--rarity",children:a.rarity}),d?e.jsx("span",{className:"chip chip--icon",children:d}):null]})]})]})]},a.id)})})]})}function De(i){return Object.values(T.Rarity).includes(i)}function ze(i){return i==="male"?"Male":i==="female"?"Female":i==="unisex"?"Unisex":null}function Ke(i){const c=i,r=(c.message??"").toLowerCase();return c.code===4001||r.includes("reject")||r.includes("denied")||r.includes("cancel")?"You cancelled the request.":r.includes("insufficient")?`You don't have enough ${Pe.name} — get more first.`:r.includes("no active listing")||r.includes("not for sale")?"This item is not for sale right now.":"Couldn't complete checkout — please try again."}function ss(){const{contractAddress:i,tokenId:c}=me(),{state:r}=he(),m=_e(),f=L(t=>t.add),v=L(t=>t.items),N=Y(t=>t.toggle),{session:l}=H(),{data:g}=ve(l),[s,a]=u.useState(()=>r!=null&&r.item?{...r.item,tradeId:r.tradeId??r.item.tradeId}:{id:`${i}-${c}`,name:"",creator:"",contractAddress:i??"",itemId:null,category:"wearable",rarity:"common",network:"MATIC",chainId:Z.chainId,thumbnail:"",priceCredits:0,gender:null,tokenId:c??void 0,tradeId:r==null?void 0:r.tradeId}),[d,y]=u.useState(!1),[C,h]=u.useState(null),[x,w]=u.useState(null),{data:b=[],isFetched:Q}=q({queryKey:["collection-items",s.contractAddress],enabled:!!s.contractAddress,queryFn:()=>Re(s.contractAddress,{first:20}).then(t=>t.items)}),{data:$,isLoading:X}=q({queryKey:["shop-item",s.contractAddress,c],enabled:!(r!=null&&r.item)&&!!s.contractAddress&&!!c,queryFn:()=>Be(s.contractAddress,c)});u.useEffect(()=>{$&&a(t=>t.tradeId?t:{...$})},[$]),u.useEffect(()=>{if(s.name||b.length===0)return;const t=c&&b.find(n=>n.tokenId===c||n.itemId===c)||b.find(n=>n.contractAddress===s.contractAddress);t&&a(n=>({...t,tradeId:n.tradeId??t.tradeId}))},[b]);const J=u.useMemo(()=>{const t=new Set,n=[];for(const o of b){if(o.id===s.id||s.itemId&&o.itemId===s.itemId||s.tokenId&&o.tokenId===s.tokenId)continue;const E=`${o.contractAddress}-${o.itemId??o.tokenId??o.id}`;t.has(E)||(t.add(E),n.push(o))}return n},[b,s.id,s.itemId,s.tokenId]),{data:ee,isLoading:A}=q({queryKey:["detail-trade",s.id,s.tradeId,s.contractAddress,s.itemId],enabled:!!s.contractAddress,queryFn:async()=>{if(s.tradeId)return s.tradeId;if(s.itemId){const t=await qe(s.contractAddress,s.itemId);return(t==null?void 0:t.id)??null}return null}}),j=s.tradeId??ee??void 0,p=!!j,k=u.useMemo(()=>({...s,tradeId:j,id:j??s.id}),[s,j]),F=v.some(t=>t.id===k.id),P=Y(t=>!!t.items[s.id]);u.useEffect(()=>{h(null),w(null)},[s.id]);const U=u.useRef(null);u.useEffect(()=>{!s.name||A||U.current===s.id||(U.current=s.id,M("Shop Viewed Item",{...Ne(s),for_sale:p}),ye(s))},[s.id,s.name,A,p]);function se(t){a(t);const n=t.tokenId??t.itemId;t.contractAddress&&n&&m(`/item/${t.contractAddress}/${n}`,{replace:!0,state:{item:t}}),typeof window<"u"&&window.scrollTo({top:0,behavior:"smooth"})}function te(){!p||F||W||f(k,"item_detail")}async function ae(){var E;if(!p||!j)return;if(!l){w("Sign in to check out.");return}w(null),y(!0);let t,n="authorize",o=!1;try{h(`Buying ${s.name||"item"}…`);const _=await we(j);if(!_)throw new Error("not for sale");if(Ae(_,l.address)){w("You can't buy your own listing."),h(null),y(!1);return}const R=(E=_.received)==null?void 0:E[0],oe=ke(R==null?void 0:R.amount),{credit:G,maxCreditedValue:ue}=await Ee(l.identity,oe,j);t=G.id,n="submit";const B={trade:_,buyer:l.address,signer:l.signer,credits:[G],maxCreditedValue:ue};let I;if(Me())try{I=await Ue(B),await Ve(I),o=!0}catch(O){if(!(O instanceof We))throw O;I=await K(B)}else I=await K(B);t=void 0,M("Shop Completed Purchase",{...Se([k]),payment_type:"credits",no_crypto_step:o,transaction_hash:I??null}),m("/success",{state:{items:[k],txHash:I}})}catch(_){z(_)||Te(_,{flow:"buy",step:n,gasless:o}),t&&Le(l.identity,[t]).catch(()=>{}),M(z(_)?"Shop Purchase Cancelled":"Shop Purchase Failed",{step:n,error_code:Fe(_),value_usd:$e(k.priceCredits)}),w(Ke(_)),h(null)}finally{y(!1)}}const ie=De(s.rarity)?s.rarity:T.Rarity.COMMON,[re]=T.Rarity.getGradient(ie),V=ze(s.gender),ce=p&&be({priceCredits:s.priceCredits,compareAtCredits:s.compareAtCredits,saleEndsAt:s.saleEndsAt}),ne="More from this collection",W=Ie(s,l==null?void 0:l.address),le=p?F?"In cart":A?"Checking…":"Add to cart":"Not for sale",de=X||!!s.contractAddress&&!Q;return!s.name&&!de?e.jsxs("div",{className:"item-detail item-detail--notfound",children:[e.jsx("span",{className:"ico ico-cart item-detail__notfound-ico","aria-hidden":!0}),e.jsx("h1",{className:"item-detail__notfound-title",children:"This item isn’t available"}),e.jsx("p",{className:"muted",children:"It may have been delisted or moved. Browse Collectibles for something else."}),e.jsx("button",{className:"btn btn--purple",onClick:()=>m("/assets"),children:"Browse Collectibles"})]}):e.jsxs("div",{className:"item-detail",children:[e.jsxs("nav",{className:"item-detail__crumbs","aria-label":"Breadcrumb",children:[e.jsx("button",{className:"item-detail__crumb-link",onClick:()=>m("/assets"),children:"Collectibles"}),e.jsx("span",{className:"item-detail__crumb-sep",children:"/"}),e.jsx("span",{className:"item-detail__crumb-current",children:s.name||"Item"})]}),e.jsxs("div",{className:"item-detail__main",children:[e.jsx("div",{className:"item-detail__preview",style:{background:`radial-gradient(circle at 50% 38%, ${re}33 0%, var(--media) 68%)`},children:e.jsx(Ge,{item:s})}),e.jsxs("div",{className:"item-detail__info",children:[e.jsxs("div",{className:"item-detail__info-head",children:[e.jsx("h1",{className:"item-detail__title",children:s.name||"Loading…"}),e.jsx("button",{className:`item-detail__fav${P?" is-on":""}`,onClick:()=>N(s),"aria-pressed":P,"aria-label":P?"Remove from favorites":"Add to favorites",children:e.jsx("span",{className:"ico ico-heart","aria-hidden":!0})})]}),s.creator?e.jsx(ge,{address:s.creator,className:"item-detail__creator",linkToProfile:!0}):null,e.jsxs("div",{className:"item-detail__chips",children:[e.jsx("span",{className:"chip chip--rarity",children:s.rarity}),e.jsx("span",{className:"chip",children:s.category==="emote"?"Emote":"Wearable"}),V?e.jsx("span",{className:"chip",children:V}):null]}),e.jsxs("div",{className:"item-detail__card",children:[e.jsxs("div",{className:"item-detail__price-block",children:[e.jsx("div",{className:"item-detail__price-label",children:"Price"}),p?ce?e.jsxs("div",{className:"item-detail__price item-detail__price--sale",children:[e.jsxs("span",{className:"item-detail__price",children:[e.jsx(S,{className:"item-detail__diamond"}),e.jsx("span",{className:"item-detail__price-value",children:s.priceCredits})]}),e.jsxs("span",{className:"item-detail__price-was",children:[e.jsx(S,{className:"item-detail__diamond item-detail__diamond--was"}),s.compareAtCredits]}),D(s.compareAtCredits,s.priceCredits)>0?e.jsxs("span",{className:"item-detail__sale-badge",children:["SALE -",D(s.compareAtCredits,s.priceCredits),"%"]}):null,e.jsx(Ce,{endsAt:s.saleEndsAt,className:"item-detail__countdown"})]}):e.jsxs("div",{className:"item-detail__price",children:[e.jsx(S,{className:"item-detail__diamond"}),e.jsx("span",{className:"item-detail__price-value",children:s.priceCredits})]}):e.jsx("div",{className:"item-detail__price item-detail__price--none",children:"Not for sale"}),l?e.jsxs("div",{className:"item-detail__balance muted",children:["Your balance: ",e.jsx(S,{className:"ccy-mark"})," ",(g==null?void 0:g.credits)??0]}):null]}),e.jsx("div",{className:"item-detail__ctas",children:W?e.jsxs("p",{className:"item-detail__own-note muted",children:["This is your item — manage it in ",e.jsx(fe,{to:"/my-assets",children:"My Assets"}),"."]}):e.jsxs(e.Fragment,{children:[p?e.jsx("button",{className:"btn btn--purple item-detail__cta",onClick:ae,disabled:d||A,children:d?"Buying…":"Buy now"}):null,e.jsxs("button",{className:"item-detail__addcart",onClick:te,disabled:!p||F||A||d,children:[e.jsx("span",{className:"ico ico-cart-solid item-detail__addcart-ico","aria-hidden":!0}),le]})]})}),C?e.jsx("p",{className:"muted item-detail__status",children:C}):null,x?e.jsx("p",{className:"error item-detail__status",children:x}):null]})]})]}),e.jsx(Ye,{title:ne,items:J,activeId:s.id,onSelect:se,onViewAll:s.contractAddress?()=>m(`/collection/${s.contractAddress}`):void 0})]})}export{ss as ItemDetail,ss as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.item-detail{max-width:1721px;margin:0 auto}.item-detail__crumbs{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--muted);margin-bottom:22px}.item-detail__crumb-link{background:none;border:0;padding:0;font:inherit;color:var(--muted)}.item-detail__crumb-link:hover{color:var(--text)}.item-detail__crumb-sep{color:var(--muted-2)}.item-detail__crumb-current{color:var(--text);font-weight:600}.item-detail__main{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(320px,522px);gap:40px;align-items:start}@media(max-width:900px){.item-detail__main{grid-template-columns:1fr}}.item-detail__preview{position:relative;height:min(752px,70vh);border-radius:var(--radius-card);overflow:hidden;background:var(--media)}.item-detail__preview iframe,.item-detail__preview>*{width:100%;height:100%;border:0;display:block}.item-detail__info{display:flex;flex-direction:column;gap:14px}.item-detail__info-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.item-detail__title{font-size:clamp(24px,2.4vw,34px);font-weight:700;line-height:1.15;color:var(--text)}.item-detail__fav{flex:none;width:38px;height:38px;border-radius:50%;border:1px solid var(--line);background:#fff;display:grid;place-items:center;color:var(--text)}.item-detail__fav{cursor:pointer;transition:color .12s ease,border-color .12s ease}.item-detail__fav.is-on{color:var(--dcl-red);border-color:var(--dcl-red)}.item-detail__fav .ico-heart{width:18px;height:18px}.item-detail__creator{color:var(--muted);font-size:14px;margin-top:-6px}.item-detail__chips{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.item-detail__card{margin-top:8px;border:1px solid var(--line);border-radius:var(--radius-card);padding:20px;display:flex;flex-direction:column;gap:16px;background:#fff}.item-detail__price-block{display:flex;flex-direction:column;gap:6px}.item-detail__price-label{font-size:13px;font-weight:600;text-transform:uppercase;letter-spacing:.03em;color:var(--muted)}.item-detail__price{display:flex;align-items:center;gap:10px;font-weight:700;color:var(--text-2)}.item-detail__diamond{width:28px;height:28px;color:var(--text-2)}.item-detail__price-value{font-size:34px;line-height:1}.item-detail__price--none{font-size:18px;color:var(--muted)}.item-detail__price--sale{flex-wrap:wrap;gap:10px 14px}.item-detail__price--sale .item-detail__price,.item-detail__price--sale .item-detail__price-value,.item-detail__price--sale .item-detail__diamond{color:var(--dcl-red)}.item-detail__price-was{display:inline-flex;align-items:center;gap:6px;color:var(--muted);text-decoration:line-through;font-weight:600;font-size:20px}.item-detail__diamond--was{width:18px;height:18px;color:var(--muted)}.item-detail__sale-badge{display:inline-flex;align-items:center;background:var(--dcl-red);color:#fff;font-weight:800;font-size:13px;letter-spacing:.03em;text-transform:uppercase;border-radius:6px;padding:4px 10px}.item-detail__countdown{display:inline-flex;align-items:center;gap:5px;background:var(--rarity-bg);color:var(--accent);font-size:13px;font-weight:700;border-radius:6px;padding:4px 10px;white-space:nowrap}.item-detail__countdown .sale-countdown__ico{width:14px;height:14px}.item-detail__balance{font-size:13px}.item-detail__ctas{display:flex;flex-direction:column;gap:12px}.item-detail__cta{width:100%;height:44px;text-align:center}.item-detail__addcart{width:100%;height:44px;display:flex;align-items:center;justify-content:center;gap:8px;background:var(--black-btn);color:var(--soft-white);border:0;border-radius:var(--radius-btn);font-weight:600;font-size:13px;text-transform:uppercase;letter-spacing:.046em}.item-detail__addcart:disabled{opacity:.55;cursor:default}.item-detail__addcart-ico{width:20px;height:20px}.item-detail__status{margin:0;font-size:13px}.item-detail__own-note{margin:0;font-size:14px}.item-detail__own-note a{color:var(--accent);font-weight:600}.collection-carousel{margin-top:56px}.collection-carousel__head{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}.collection-carousel__title{font-size:20px;font-weight:600;color:var(--text)}.collection-carousel__head-right{display:flex;align-items:center;gap:16px}.collection-carousel__viewall{background:none;border:0;padding:0;color:var(--accent);font-weight:600;font-size:13px;cursor:pointer;white-space:nowrap}.collection-carousel__viewall:hover{text-decoration:underline}.collection-carousel__arrows{display:flex;gap:10px}.collection-carousel__arrow{width:44px;height:44px;border-radius:50%;border:0;background:#fff;color:var(--text);font-size:22px;line-height:1;display:grid;place-items:center;box-shadow:0 6px 16px #16151829;transition:transform .12s ease,box-shadow .12s ease}.collection-carousel__arrow:hover{transform:scale(1.06);box-shadow:0 8px 20px #16151833}@media(prefers-reduced-motion:reduce){.collection-carousel__arrow{transition:none}}.collection-carousel__track{display:flex;gap:16px;overflow-x:auto;padding-bottom:8px;scroll-snap-type:x proximity}.collection-carousel__card{flex:0 0 220px;scroll-snap-align:start;text-align:left;background:#fff;border:1px solid var(--line);border-radius:var(--radius-card);overflow:hidden;padding:0;display:flex;flex-direction:column;transition:box-shadow .15s ease,transform .15s ease}.collection-carousel__card:hover{transform:translateY(-2px);box-shadow:0 0 0 2px var(--brand-violet),0 10px 30px #a524b347}.collection-carousel__card.is-active{box-shadow:0 0 0 2px var(--accent)}.collection-carousel__media{position:relative;aspect-ratio:1 / 1;background:var(--media)}.collection-carousel__img{width:100%;height:100%;object-fit:contain;display:block}.collection-carousel__body{padding:10px 12px 12px;display:flex;flex-direction:column;gap:8px}.collection-carousel__name{font-weight:600;font-size:14px;color:var(--text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.collection-carousel__meta{display:flex;align-items:center;justify-content:space-between;gap:8px}.collection-carousel__price{display:flex;align-items:center;gap:5px;font-weight:600;font-size:15px;color:var(--text-2)}.collection-carousel__diamond{width:14px;height:14px;color:var(--text-2)}.collection-carousel__chips{display:flex;align-items:center;gap:6px}.collection-carousel__na{color:var(--muted);font-weight:600;font-size:13px}.collection-carousel__card{cursor:pointer}.collection-carousel__card:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.collection-carousel__add{position:absolute;bottom:10px;right:10px;z-index:2;width:34px;height:34px;border-radius:50%;border:0;background:var(--accent);color:#fff;display:grid;place-items:center;box-shadow:0 4px 12px #691fa959;transition:transform .12s ease,background .15s ease}.collection-carousel__add:hover{transform:scale(1.08)}.collection-carousel__add:disabled{background:var(--muted-2);cursor:default;box-shadow:none}.collection-carousel__add .ico{width:18px;height:18px}.item-detail--notfound{min-height:46vh;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:14px}.item-detail__notfound-ico{width:44px;height:44px;opacity:.4}.item-detail__notfound-title{font-size:22px}.item-detail--notfound .btn{margin-top:6px}
|
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
import{r as l,h as At,j as T,e as Wt,R as X,i as ve,k as Ht}from"./react-4iaCnQ6n.js";import{b as m,F as ct,d as V,T as Kt,H as Gt,I as qt,x as Xt,A as Yt,_ as B,y as dt,J as Zt,g as se,a as K,u as ae,c as D,e as fe,s as Y,t as H,k as Fe,q as Jt,K as Qt,B as pt}from"./generateUtilityClasses-DFV3l_aJ.js";import{S as We}from"./SvgIcon-D5EgVDYB.js";var Se={};function en(...e){return e.reduce((t,n)=>n==null?t:function(...r){t.apply(this,r),n.apply(this,r)},()=>{})}function tn(e,t=166){let n;function o(...r){const i=()=>{e.apply(this,r)};clearTimeout(n),n=setTimeout(i,t)}return o.clear=()=>{clearTimeout(n)},o}function nn(e,t){return()=>null}function on(e,t){var n,o;return l.isValidElement(e)&&t.indexOf((n=e.type.muiName)!=null?n:(o=e.type)==null||(o=o._payload)==null||(o=o.value)==null?void 0:o.muiName)!==-1}function be(e){return e&&e.ownerDocument||document}function rn(e){return be(e).defaultView||window}function sn(e,t){return()=>null}function xe(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const ie=typeof window<"u"?l.useLayoutEffect:l.useEffect;let He=0;function an(e){const[t,n]=l.useState(e),o=e||t;return l.useEffect(()=>{t==null&&(He+=1,n(`mui-${He}`))},[t]),o}const Ke=At.useId;function ln(e){if(Ke!==void 0){const t=Ke();return e??t}return an(e)}function un(e,t,n,o,r){return null}function cn({controlled:e,default:t,name:n,state:o="value"}){const{current:r}=l.useRef(e!==void 0),[i,s]=l.useState(t),a=r?e:i,u=l.useCallback(d=>{r||s(d)},[]);return[a,u]}function de(e){const t=l.useRef(e);return ie(()=>{t.current=e}),l.useRef((...n)=>(0,t.current)(...n)).current}function J(...e){return l.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{xe(n,t)})},e)}const Ge={};function dn(e,t){const n=l.useRef(Ge);return n.current===Ge&&(n.current=e(t)),n}const pn=[];function fn(e){l.useEffect(e,pn)}class Ee{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new Ee}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}function ft(){const e=dn(Ee.create).current;return fn(e.disposeEffect),e}let Ce=!0,De=!1;const mn=new Ee,hn={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function vn(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&hn[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function gn(e){e.metaKey||e.altKey||e.ctrlKey||(Ce=!0)}function Te(){Ce=!1}function bn(){this.visibilityState==="hidden"&&De&&(Ce=!0)}function xn(e){e.addEventListener("keydown",gn,!0),e.addEventListener("mousedown",Te,!0),e.addEventListener("pointerdown",Te,!0),e.addEventListener("touchstart",Te,!0),e.addEventListener("visibilitychange",bn,!0)}function yn(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return Ce||vn(t)}function mt(){const e=l.useCallback(r=>{r!=null&&xn(r.ownerDocument)},[]),t=l.useRef(!1);function n(){return t.current?(De=!0,mn.start(100,()=>{De=!1}),t.current=!1,!0):!1}function o(r){return yn(r)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:o,onBlur:n,ref:e}}function En(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}function Cn(e,t){function n(o,r){return T.jsx(We,m({"data-testid":`${t}Icon`,ref:r},o,{children:e}))}return n.muiName=We.muiName,l.memo(l.forwardRef(n))}const Rn={configure:e=>{ct.configure(e)}},In=Object.freeze(Object.defineProperty({__proto__:null,capitalize:V,createChainedFunction:en,createSvgIcon:Cn,debounce:tn,deprecatedPropType:nn,isMuiElement:on,ownerDocument:be,ownerWindow:rn,requirePropFactory:sn,setRef:xe,unstable_ClassNameGenerator:Rn,unstable_useEnhancedEffect:ie,unstable_useId:ln,unsupportedProp:un,useControlled:cn,useEventCallback:de,useForkRef:J,useIsFocusVisible:mt},Symbol.toStringTag,{value:"Module"})),Mn=Wt(In);var qe;function Wo(){return qe||(qe=1,(function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=Mn})(Se)),Se}function $n(e){return Object.keys(e).length===0}function Sn(e=null){const t=l.useContext(Kt);return!t||$n(t)?e:t}const Tn=Gt();function ht(e=Tn){return Sn(e)}function vt(e){var t,n,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(n=vt(e[t]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}function Pn(){for(var e,t,n=0,o="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=vt(e))&&(o&&(o+=" "),o+=t);return o}const Nn=["className","component"];function kn(e={}){const{themeId:t,defaultTheme:n,defaultClassName:o="MuiBox-root",generateClassName:r}=e,i=qt("div",{shouldForwardProp:a=>a!=="theme"&&a!=="sx"&&a!=="as"})(Xt);return l.forwardRef(function(u,d){const f=ht(n),v=Yt(u),{className:y,component:E="div"}=v,C=B(v,Nn);return T.jsx(i,m({as:E,ref:d,className:Pn(y,r?r(o):o),theme:t&&f[t]||f},C))})}const Dn=["value"],gt=l.createContext();function Ho(e){let{value:t}=e,n=B(e,Dn);return T.jsx(gt.Provider,m({value:t??!0},n))}const Ko=()=>{const e=l.useContext(gt);return e??!1};function Ln(){const e=ht(Zt);return e[dt]||e}const Xe=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)};var Pe={exports:{}},I={};/**
|
|
2
|
-
* @license React
|
|
3
|
-
* react-is.production.min.js
|
|
4
|
-
*
|
|
5
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
6
|
-
*
|
|
7
|
-
* This source code is licensed under the MIT license found in the
|
|
8
|
-
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var Ye;function zn(){if(Ye)return I;Ye=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),r=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),s=Symbol.for("react.context"),a=Symbol.for("react.server_context"),u=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),v=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),E=Symbol.for("react.offscreen"),C;C=Symbol.for("react.module.reference");function h(c){if(typeof c=="object"&&c!==null){var M=c.$$typeof;switch(M){case e:switch(c=c.type,c){case n:case r:case o:case d:case f:return c;default:switch(c=c&&c.$$typeof,c){case a:case s:case u:case y:case v:case i:return c;default:return M}}case t:return M}}}return I.ContextConsumer=s,I.ContextProvider=i,I.Element=e,I.ForwardRef=u,I.Fragment=n,I.Lazy=y,I.Memo=v,I.Portal=t,I.Profiler=r,I.StrictMode=o,I.Suspense=d,I.SuspenseList=f,I.isAsyncMode=function(){return!1},I.isConcurrentMode=function(){return!1},I.isContextConsumer=function(c){return h(c)===s},I.isContextProvider=function(c){return h(c)===i},I.isElement=function(c){return typeof c=="object"&&c!==null&&c.$$typeof===e},I.isForwardRef=function(c){return h(c)===u},I.isFragment=function(c){return h(c)===n},I.isLazy=function(c){return h(c)===y},I.isMemo=function(c){return h(c)===v},I.isPortal=function(c){return h(c)===t},I.isProfiler=function(c){return h(c)===r},I.isStrictMode=function(c){return h(c)===o},I.isSuspense=function(c){return h(c)===d},I.isSuspenseList=function(c){return h(c)===f},I.isValidElementType=function(c){return typeof c=="string"||typeof c=="function"||c===n||c===r||c===o||c===d||c===f||c===E||typeof c=="object"&&c!==null&&(c.$$typeof===y||c.$$typeof===v||c.$$typeof===i||c.$$typeof===s||c.$$typeof===u||c.$$typeof===C||c.getModuleId!==void 0)},I.typeOf=h,I}var Ze;function On(){return Ze||(Ze=1,Pe.exports=zn()),Pe.exports}On();function Le(e,t){return Le=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,o){return n.__proto__=o,n},Le(e,t)}function bt(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Le(e,t)}const Je={disabled:!1},ye=X.createContext(null);var Bn=function(t){return t.scrollTop},pe="unmounted",ee="exited",te="entering",re="entered",ze="exiting",Z=(function(e){bt(t,e);function t(o,r){var i;i=e.call(this,o,r)||this;var s=r,a=s&&!s.isMounting?o.enter:o.appear,u;return i.appearStatus=null,o.in?a?(u=ee,i.appearStatus=te):u=re:o.unmountOnExit||o.mountOnEnter?u=pe:u=ee,i.state={status:u},i.nextCallback=null,i}t.getDerivedStateFromProps=function(r,i){var s=r.in;return s&&i.status===pe?{status:ee}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(r){var i=null;if(r!==this.props){var s=this.state.status;this.props.in?s!==te&&s!==re&&(i=te):(s===te||s===re)&&(i=ze)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var r=this.props.timeout,i,s,a;return i=s=a=r,r!=null&&typeof r!="number"&&(i=r.exit,s=r.enter,a=r.appear!==void 0?r.appear:s),{exit:i,enter:s,appear:a}},n.updateStatus=function(r,i){if(r===void 0&&(r=!1),i!==null)if(this.cancelNextCallback(),i===te){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:ve.findDOMNode(this);s&&Bn(s)}this.performEnter(r)}else this.performExit();else this.props.unmountOnExit&&this.state.status===ee&&this.setState({status:pe})},n.performEnter=function(r){var i=this,s=this.props.enter,a=this.context?this.context.isMounting:r,u=this.props.nodeRef?[a]:[ve.findDOMNode(this),a],d=u[0],f=u[1],v=this.getTimeouts(),y=a?v.appear:v.enter;if(!r&&!s||Je.disabled){this.safeSetState({status:re},function(){i.props.onEntered(d)});return}this.props.onEnter(d,f),this.safeSetState({status:te},function(){i.props.onEntering(d,f),i.onTransitionEnd(y,function(){i.safeSetState({status:re},function(){i.props.onEntered(d,f)})})})},n.performExit=function(){var r=this,i=this.props.exit,s=this.getTimeouts(),a=this.props.nodeRef?void 0:ve.findDOMNode(this);if(!i||Je.disabled){this.safeSetState({status:ee},function(){r.props.onExited(a)});return}this.props.onExit(a),this.safeSetState({status:ze},function(){r.props.onExiting(a),r.onTransitionEnd(s.exit,function(){r.safeSetState({status:ee},function(){r.props.onExited(a)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(r,i){i=this.setNextCallback(i),this.setState(r,i)},n.setNextCallback=function(r){var i=this,s=!0;return this.nextCallback=function(a){s&&(s=!1,i.nextCallback=null,r(a))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},n.onTransitionEnd=function(r,i){this.setNextCallback(i);var s=this.props.nodeRef?this.props.nodeRef.current:ve.findDOMNode(this),a=r==null&&!this.props.addEndListener;if(!s||a){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var u=this.props.nodeRef?[this.nextCallback]:[s,this.nextCallback],d=u[0],f=u[1];this.props.addEndListener(d,f)}r!=null&&setTimeout(this.nextCallback,r)},n.render=function(){var r=this.state.status;if(r===pe)return null;var i=this.props,s=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var a=B(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return X.createElement(ye.Provider,{value:null},typeof s=="function"?s(r,a):X.cloneElement(X.Children.only(s),a))},t})(X.Component);Z.contextType=ye;Z.propTypes={};function oe(){}Z.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:oe,onEntering:oe,onEntered:oe,onExit:oe,onExiting:oe,onExited:oe};Z.UNMOUNTED=pe;Z.EXITED=ee;Z.ENTERING=te;Z.ENTERED=re;Z.EXITING=ze;function wn(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ve(e,t){var n=function(i){return t&&l.isValidElement(i)?t(i):i},o=Object.create(null);return e&&l.Children.map(e,function(r){return r}).forEach(function(r){o[r.key]=n(r)}),o}function Fn(e,t){e=e||{},t=t||{};function n(f){return f in t?t[f]:e[f]}var o=Object.create(null),r=[];for(var i in e)i in t?r.length&&(o[i]=r,r=[]):r.push(i);var s,a={};for(var u in t){if(o[u])for(s=0;s<o[u].length;s++){var d=o[u][s];a[o[u][s]]=n(d)}a[u]=n(u)}for(s=0;s<r.length;s++)a[r[s]]=n(r[s]);return a}function ne(e,t,n){return n[t]!=null?n[t]:e.props[t]}function Vn(e,t){return Ve(e.children,function(n){return l.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:ne(n,"appear",e),enter:ne(n,"enter",e),exit:ne(n,"exit",e)})})}function _n(e,t,n){var o=Ve(e.children),r=Fn(t,o);return Object.keys(r).forEach(function(i){var s=r[i];if(l.isValidElement(s)){var a=i in t,u=i in o,d=t[i],f=l.isValidElement(d)&&!d.props.in;u&&(!a||f)?r[i]=l.cloneElement(s,{onExited:n.bind(null,s),in:!0,exit:ne(s,"exit",e),enter:ne(s,"enter",e)}):!u&&a&&!f?r[i]=l.cloneElement(s,{in:!1}):u&&a&&l.isValidElement(d)&&(r[i]=l.cloneElement(s,{onExited:n.bind(null,s),in:d.props.in,exit:ne(s,"exit",e),enter:ne(s,"enter",e)}))}}),r}var jn=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},Un={component:"div",childFactory:function(t){return t}},_e=(function(e){bt(t,e);function t(o,r){var i;i=e.call(this,o,r)||this;var s=i.handleExited.bind(wn(i));return i.state={contextValue:{isMounting:!0},handleExited:s,firstRender:!0},i}var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(r,i){var s=i.children,a=i.handleExited,u=i.firstRender;return{children:u?Vn(r,a):_n(r,s,a),firstRender:!1}},n.handleExited=function(r,i){var s=Ve(this.props.children);r.key in s||(r.props.onExited&&r.props.onExited(i),this.mounted&&this.setState(function(a){var u=m({},a.children);return delete u[r.key],{children:u}}))},n.render=function(){var r=this.props,i=r.component,s=r.childFactory,a=B(r,["component","childFactory"]),u=this.state.contextValue,d=jn(this.state.children).map(s);return delete a.appear,delete a.enter,delete a.exit,i===null?X.createElement(ye.Provider,{value:u},d):X.createElement(ye.Provider,{value:u},X.createElement(i,a,d))},t})(X.Component);_e.propTypes={};_e.defaultProps=Un;const An=e=>e.scrollTop;function Qe(e,t){var n,o;const{timeout:r,easing:i,style:s={}}=e;return{duration:(n=s.transitionDuration)!=null?n:typeof r=="number"?r:r[t.mode]||0,easing:(o=s.transitionTimingFunction)!=null?o:typeof i=="object"?i[t.mode]:i,delay:s.transitionDelay}}function Wn(e){return se("MuiPaper",e)}K("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const Hn=["className","component","elevation","square","variant"],Kn=e=>{const{square:t,elevation:n,variant:o,classes:r}=e,i={root:["root",o,!t&&"rounded",o==="elevation"&&`elevation${n}`]};return fe(i,Wn,r)},Gn=Y("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(({theme:e,ownerState:t})=>{var n;return m({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.divider}`},t.variant==="elevation"&&m({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${H.alpha("#fff",Xe(t.elevation))}, ${H.alpha("#fff",Xe(t.elevation))})`},e.vars&&{backgroundImage:(n=e.vars.overlays)==null?void 0:n[t.elevation]}))}),Go=l.forwardRef(function(t,n){const o=ae({props:t,name:"MuiPaper"}),{className:r,component:i="div",elevation:s=1,square:a=!1,variant:u="elevation"}=o,d=B(o,Hn),f=m({},o,{component:i,elevation:s,square:a,variant:u}),v=Kn(f);return T.jsx(Gn,m({as:i,ownerState:f,className:D(v.root,r),ref:n},d))});function qn(e){return typeof e=="string"}function Xn(e,t,n){return e===void 0||qn(e)?t:m({},t,{ownerState:m({},t.ownerState,n)})}function Yn(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(o=>o.match(/^on[A-Z]/)&&typeof e[o]=="function"&&!t.includes(o)).forEach(o=>{n[o]=e[o]}),n}function Zn(e,t,n){return typeof e=="function"?e(t,n):e}function xt(e){var t,n,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(n=xt(e[t]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}function et(){for(var e,t,n=0,o="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=xt(e))&&(o&&(o+=" "),o+=t);return o}function tt(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function Jn(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:o,externalForwardedProps:r,className:i}=e;if(!t){const E=et(n==null?void 0:n.className,i,r==null?void 0:r.className,o==null?void 0:o.className),C=m({},n==null?void 0:n.style,r==null?void 0:r.style,o==null?void 0:o.style),h=m({},n,r,o);return E.length>0&&(h.className=E),Object.keys(C).length>0&&(h.style=C),{props:h,internalRef:void 0}}const s=Yn(m({},r,o)),a=tt(o),u=tt(r),d=t(s),f=et(d==null?void 0:d.className,n==null?void 0:n.className,i,r==null?void 0:r.className,o==null?void 0:o.className),v=m({},d==null?void 0:d.style,n==null?void 0:n.style,r==null?void 0:r.style,o==null?void 0:o.style),y=m({},d,n,u,a);return f.length>0&&(y.className=f),Object.keys(v).length>0&&(y.style=v),{props:y,internalRef:d.ref}}const Qn=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function qo(e){var t;const{elementType:n,externalSlotProps:o,ownerState:r,skipResolvingSlotProps:i=!1}=e,s=B(e,Qn),a=i?{}:Zn(o,r),{props:u,internalRef:d}=Jn(m({},s,{externalSlotProps:a})),f=J(d,a==null?void 0:a.ref,(t=e.additionalProps)==null?void 0:t.ref);return Xn(n,m({},u,{ref:f}),r)}function eo(e){const{className:t,classes:n,pulsate:o=!1,rippleX:r,rippleY:i,rippleSize:s,in:a,onExited:u,timeout:d}=e,[f,v]=l.useState(!1),y=D(t,n.ripple,n.rippleVisible,o&&n.ripplePulsate),E={width:s,height:s,top:-(s/2)+i,left:-(s/2)+r},C=D(n.child,f&&n.childLeaving,o&&n.childPulsate);return!a&&!f&&v(!0),l.useEffect(()=>{if(!a&&u!=null){const h=setTimeout(u,d);return()=>{clearTimeout(h)}}},[u,a,d]),T.jsx("span",{className:y,style:E,children:T.jsx("span",{className:C})})}const F=K("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),to=["center","classes","className"];let Re=e=>e,nt,ot,rt,it;const Oe=550,no=80,oo=Fe(nt||(nt=Re`
|
|
10
|
-
0% {
|
|
11
|
-
transform: scale(0);
|
|
12
|
-
opacity: 0.1;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
100% {
|
|
16
|
-
transform: scale(1);
|
|
17
|
-
opacity: 0.3;
|
|
18
|
-
}
|
|
19
|
-
`)),ro=Fe(ot||(ot=Re`
|
|
20
|
-
0% {
|
|
21
|
-
opacity: 1;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
100% {
|
|
25
|
-
opacity: 0;
|
|
26
|
-
}
|
|
27
|
-
`)),io=Fe(rt||(rt=Re`
|
|
28
|
-
0% {
|
|
29
|
-
transform: scale(1);
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
50% {
|
|
33
|
-
transform: scale(0.92);
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
100% {
|
|
37
|
-
transform: scale(1);
|
|
38
|
-
}
|
|
39
|
-
`)),so=Y("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),ao=Y(eo,{name:"MuiTouchRipple",slot:"Ripple"})(it||(it=Re`
|
|
40
|
-
opacity: 0;
|
|
41
|
-
position: absolute;
|
|
42
|
-
|
|
43
|
-
&.${0} {
|
|
44
|
-
opacity: 0.3;
|
|
45
|
-
transform: scale(1);
|
|
46
|
-
animation-name: ${0};
|
|
47
|
-
animation-duration: ${0}ms;
|
|
48
|
-
animation-timing-function: ${0};
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
&.${0} {
|
|
52
|
-
animation-duration: ${0}ms;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
& .${0} {
|
|
56
|
-
opacity: 1;
|
|
57
|
-
display: block;
|
|
58
|
-
width: 100%;
|
|
59
|
-
height: 100%;
|
|
60
|
-
border-radius: 50%;
|
|
61
|
-
background-color: currentColor;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
& .${0} {
|
|
65
|
-
opacity: 0;
|
|
66
|
-
animation-name: ${0};
|
|
67
|
-
animation-duration: ${0}ms;
|
|
68
|
-
animation-timing-function: ${0};
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
& .${0} {
|
|
72
|
-
position: absolute;
|
|
73
|
-
/* @noflip */
|
|
74
|
-
left: 0px;
|
|
75
|
-
top: 0;
|
|
76
|
-
animation-name: ${0};
|
|
77
|
-
animation-duration: 2500ms;
|
|
78
|
-
animation-timing-function: ${0};
|
|
79
|
-
animation-iteration-count: infinite;
|
|
80
|
-
animation-delay: 200ms;
|
|
81
|
-
}
|
|
82
|
-
`),F.rippleVisible,oo,Oe,({theme:e})=>e.transitions.easing.easeInOut,F.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,F.child,F.childLeaving,ro,Oe,({theme:e})=>e.transitions.easing.easeInOut,F.childPulsate,io,({theme:e})=>e.transitions.easing.easeInOut),lo=l.forwardRef(function(t,n){const o=ae({props:t,name:"MuiTouchRipple"}),{center:r=!1,classes:i={},className:s}=o,a=B(o,to),[u,d]=l.useState([]),f=l.useRef(0),v=l.useRef(null);l.useEffect(()=>{v.current&&(v.current(),v.current=null)},[u]);const y=l.useRef(!1),E=ft(),C=l.useRef(null),h=l.useRef(null),c=l.useCallback(p=>{const{pulsate:R,rippleX:S,rippleY:x,rippleSize:O,cb:w}=p;d(k=>[...k,T.jsx(ao,{classes:{ripple:D(i.ripple,F.ripple),rippleVisible:D(i.rippleVisible,F.rippleVisible),ripplePulsate:D(i.ripplePulsate,F.ripplePulsate),child:D(i.child,F.child),childLeaving:D(i.childLeaving,F.childLeaving),childPulsate:D(i.childPulsate,F.childPulsate)},timeout:Oe,pulsate:R,rippleX:S,rippleY:x,rippleSize:O},f.current)]),f.current+=1,v.current=w},[i]),M=l.useCallback((p={},R={},S=()=>{})=>{const{pulsate:x=!1,center:O=r||R.pulsate,fakeElement:w=!1}=R;if((p==null?void 0:p.type)==="mousedown"&&y.current){y.current=!1;return}(p==null?void 0:p.type)==="touchstart"&&(y.current=!0);const k=w?null:h.current,U=k?k.getBoundingClientRect():{width:0,height:0,left:0,top:0};let _,A,W;if(O||p===void 0||p.clientX===0&&p.clientY===0||!p.clientX&&!p.touches)_=Math.round(U.width/2),A=Math.round(U.height/2);else{const{clientX:$,clientY:P}=p.touches&&p.touches.length>0?p.touches[0]:p;_=Math.round($-U.left),A=Math.round(P-U.top)}if(O)W=Math.sqrt((2*U.width**2+U.height**2)/3),W%2===0&&(W+=1);else{const $=Math.max(Math.abs((k?k.clientWidth:0)-_),_)*2+2,P=Math.max(Math.abs((k?k.clientHeight:0)-A),A)*2+2;W=Math.sqrt($**2+P**2)}p!=null&&p.touches?C.current===null&&(C.current=()=>{c({pulsate:x,rippleX:_,rippleY:A,rippleSize:W,cb:S})},E.start(no,()=>{C.current&&(C.current(),C.current=null)})):c({pulsate:x,rippleX:_,rippleY:A,rippleSize:W,cb:S})},[r,c,E]),N=l.useCallback(()=>{M({},{pulsate:!0})},[M]),b=l.useCallback((p,R)=>{if(E.clear(),(p==null?void 0:p.type)==="touchend"&&C.current){C.current(),C.current=null,E.start(0,()=>{b(p,R)});return}C.current=null,d(S=>S.length>0?S.slice(1):S),v.current=R},[E]);return l.useImperativeHandle(n,()=>({pulsate:N,start:M,stop:b}),[N,M,b]),T.jsx(so,m({className:D(F.root,i.root,s),ref:h},a,{children:T.jsx(_e,{component:null,exit:!0,children:u})}))});function uo(e){return se("MuiButtonBase",e)}const co=K("MuiButtonBase",["root","disabled","focusVisible"]),po=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],fo=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:o,classes:r}=e,s=fe({root:["root",t&&"disabled",n&&"focusVisible"]},uo,r);return n&&o&&(s.root+=` ${o}`),s},mo=Y("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${co.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),yt=l.forwardRef(function(t,n){const o=ae({props:t,name:"MuiButtonBase"}),{action:r,centerRipple:i=!1,children:s,className:a,component:u="button",disabled:d=!1,disableRipple:f=!1,disableTouchRipple:v=!1,focusRipple:y=!1,LinkComponent:E="a",onBlur:C,onClick:h,onContextMenu:c,onDragLeave:M,onFocus:N,onFocusVisible:b,onKeyDown:p,onKeyUp:R,onMouseDown:S,onMouseLeave:x,onMouseUp:O,onTouchEnd:w,onTouchMove:k,onTouchStart:U,tabIndex:_=0,TouchRippleProps:A,touchRippleRef:W,type:$}=o,P=B(o,po),z=l.useRef(null),L=l.useRef(null),j=J(L,W),{isFocusVisibleRef:G,onFocus:Rt,onBlur:It,ref:Mt}=mt(),[Q,me]=l.useState(!1);d&&Q&&me(!1),l.useImperativeHandle(r,()=>({focusVisible:()=>{me(!0),z.current.focus()}}),[]);const[Ie,$t]=l.useState(!1);l.useEffect(()=>{$t(!0)},[]);const St=Ie&&!f&&!d;l.useEffect(()=>{Q&&y&&!f&&Ie&&L.current.pulsate()},[f,y,Q,Ie]);function q(g,Ue,Ut=v){return de(Ae=>(Ue&&Ue(Ae),!Ut&&L.current&&L.current[g](Ae),!0))}const Tt=q("start",S),Pt=q("stop",c),Nt=q("stop",M),kt=q("stop",O),Dt=q("stop",g=>{Q&&g.preventDefault(),x&&x(g)}),Lt=q("start",U),zt=q("stop",w),Ot=q("stop",k),Bt=q("stop",g=>{It(g),G.current===!1&&me(!1),C&&C(g)},!1),wt=de(g=>{z.current||(z.current=g.currentTarget),Rt(g),G.current===!0&&(me(!0),b&&b(g)),N&&N(g)}),Me=()=>{const g=z.current;return u&&u!=="button"&&!(g.tagName==="A"&&g.href)},$e=l.useRef(!1),Ft=de(g=>{y&&!$e.current&&Q&&L.current&&g.key===" "&&($e.current=!0,L.current.stop(g,()=>{L.current.start(g)})),g.target===g.currentTarget&&Me()&&g.key===" "&&g.preventDefault(),p&&p(g),g.target===g.currentTarget&&Me()&&g.key==="Enter"&&!d&&(g.preventDefault(),h&&h(g))}),Vt=de(g=>{y&&g.key===" "&&L.current&&Q&&!g.defaultPrevented&&($e.current=!1,L.current.stop(g,()=>{L.current.pulsate(g)})),R&&R(g),h&&g.target===g.currentTarget&&Me()&&g.key===" "&&!g.defaultPrevented&&h(g)});let he=u;he==="button"&&(P.href||P.to)&&(he=E);const le={};he==="button"?(le.type=$===void 0?"button":$,le.disabled=d):(!P.href&&!P.to&&(le.role="button"),d&&(le["aria-disabled"]=d));const _t=J(n,Mt,z),je=m({},o,{centerRipple:i,component:u,disabled:d,disableRipple:f,disableTouchRipple:v,focusRipple:y,tabIndex:_,focusVisible:Q}),jt=fo(je);return T.jsxs(mo,m({as:he,className:D(jt.root,a),ownerState:je,onBlur:Bt,onClick:h,onContextMenu:Pt,onFocus:wt,onKeyDown:Ft,onKeyUp:Vt,onMouseDown:Tt,onMouseLeave:Dt,onMouseUp:kt,onDragLeave:Nt,onTouchEnd:zt,onTouchMove:Ot,onTouchStart:Lt,ref:_t,tabIndex:d?-1:_,type:$},le,P,{children:[s,St?T.jsx(lo,m({ref:j,center:i},A)):null]}))});function ho(e){return typeof e=="function"?e():e}const Xo=l.forwardRef(function(t,n){const{children:o,container:r,disablePortal:i=!1}=t,[s,a]=l.useState(null),u=J(l.isValidElement(o)?o.ref:null,n);if(ie(()=>{i||a(ho(r)||document.body)},[r,i]),ie(()=>{if(s&&!i)return xe(n,s),()=>{xe(n,null)}},[n,s,i]),i){if(l.isValidElement(o)){const d={ref:u};return l.cloneElement(o,d)}return T.jsx(l.Fragment,{children:o})}return T.jsx(l.Fragment,{children:s&&Ht.createPortal(o,s)})}),vo=K("MuiBox",["root"]),go=Jt(),Yo=kn({themeId:dt,defaultTheme:go,defaultClassName:vo.root,generateClassName:ct.generate});function bo(e){return se("MuiButton",e)}const ge=K("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),xo=l.createContext({}),yo=l.createContext(void 0),Eo=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],Co=e=>{const{color:t,disableElevation:n,fullWidth:o,size:r,variant:i,classes:s}=e,a={root:["root",i,`${i}${V(t)}`,`size${V(r)}`,`${i}Size${V(r)}`,`color${V(t)}`,n&&"disableElevation",o&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${V(r)}`],endIcon:["icon","endIcon",`iconSize${V(r)}`]},u=fe(a,bo,s);return m({},s,u)},Et=e=>m({},e.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},e.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},e.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),Ro=Y(yt,{shouldForwardProp:e=>pt(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${V(n.color)}`],t[`size${V(n.size)}`],t[`${n.variant}Size${V(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var n,o;const r=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],i=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return m({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":m({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:H.alpha(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="text"&&t.color!=="inherit"&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:H.alpha(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="outlined"&&t.color!=="inherit"&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:H.alpha(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="contained"&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:i,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},t.variant==="contained"&&t.color!=="inherit"&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":m({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${ge.focusVisible}`]:m({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${ge.disabled}`]:m({color:(e.vars||e).palette.action.disabled},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},t.variant==="contained"&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},t.variant==="text"&&{padding:"6px 8px"},t.variant==="text"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main},t.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},t.variant==="outlined"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${H.alpha(e.palette[t.color].main,.5)}`},t.variant==="contained"&&{color:e.vars?e.vars.palette.text.primary:(n=(o=e.palette).getContrastText)==null?void 0:n.call(o,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:r,boxShadow:(e.vars||e).shadows[2]},t.variant==="contained"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},t.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},t.size==="small"&&t.variant==="text"&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="text"&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="outlined"&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="outlined"&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="contained"&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="contained"&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${ge.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${ge.disabled}`]:{boxShadow:"none"}}),Io=Y("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${V(n.size)}`]]}})(({ownerState:e})=>m({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},Et(e))),Mo=Y("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${V(n.size)}`]]}})(({ownerState:e})=>m({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},Et(e))),Zo=l.forwardRef(function(t,n){const o=l.useContext(xo),r=l.useContext(yo),i=Qt(o,t),s=ae({props:i,name:"MuiButton"}),{children:a,color:u="primary",component:d="button",className:f,disabled:v=!1,disableElevation:y=!1,disableFocusRipple:E=!1,endIcon:C,focusVisibleClassName:h,fullWidth:c=!1,size:M="medium",startIcon:N,type:b,variant:p="text"}=s,R=B(s,Eo),S=m({},s,{color:u,component:d,disabled:v,disableElevation:y,disableFocusRipple:E,fullWidth:c,size:M,type:b,variant:p}),x=Co(S),O=N&&T.jsx(Io,{className:x.startIcon,ownerState:S,children:N}),w=C&&T.jsx(Mo,{className:x.endIcon,ownerState:S,children:C}),k=r||"";return T.jsxs(Ro,m({ownerState:S,className:D(o.className,x.root,f,k),component:d,disabled:v,focusRipple:!E,focusVisibleClassName:D(x.focusVisible,h),ref:n,type:b},R,{classes:x,children:[O,a,w]}))});function Jo(e){return se("MuiDivider",e)}const st=K("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),$o=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Be(e){return`scale(${e}, ${e**2})`}const So={entering:{opacity:1,transform:Be(1)},entered:{opacity:1,transform:"none"}},Ne=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),To=l.forwardRef(function(t,n){const{addEndListener:o,appear:r=!0,children:i,easing:s,in:a,onEnter:u,onEntered:d,onEntering:f,onExit:v,onExited:y,onExiting:E,style:C,timeout:h="auto",TransitionComponent:c=Z}=t,M=B(t,$o),N=ft(),b=l.useRef(),p=Ln(),R=l.useRef(null),S=J(R,i.ref,n),x=$=>P=>{if($){const z=R.current;P===void 0?$(z):$(z,P)}},O=x(f),w=x(($,P)=>{An($);const{duration:z,delay:L,easing:j}=Qe({style:C,timeout:h,easing:s},{mode:"enter"});let G;h==="auto"?(G=p.transitions.getAutoHeightDuration($.clientHeight),b.current=G):G=z,$.style.transition=[p.transitions.create("opacity",{duration:G,delay:L}),p.transitions.create("transform",{duration:Ne?G:G*.666,delay:L,easing:j})].join(","),u&&u($,P)}),k=x(d),U=x(E),_=x($=>{const{duration:P,delay:z,easing:L}=Qe({style:C,timeout:h,easing:s},{mode:"exit"});let j;h==="auto"?(j=p.transitions.getAutoHeightDuration($.clientHeight),b.current=j):j=P,$.style.transition=[p.transitions.create("opacity",{duration:j,delay:z}),p.transitions.create("transform",{duration:Ne?j:j*.666,delay:Ne?z:z||j*.333,easing:L})].join(","),$.style.opacity=0,$.style.transform=Be(.75),v&&v($)}),A=x(y),W=$=>{h==="auto"&&N.start(b.current||0,$),o&&o(R.current,$)};return T.jsx(c,m({appear:r,in:a,nodeRef:R,onEnter:w,onEntered:k,onEntering:O,onExit:_,onExited:A,onExiting:U,addEndListener:W,timeout:h==="auto"?null:h},M,{children:($,P)=>l.cloneElement(i,m({style:m({opacity:0,transform:Be(.75),visibility:$==="exited"&&!a?"hidden":void 0},So[$],C,i.props.style),ref:S},P))}))});To.muiSupportAuto=!0;const we=l.createContext({});function Po(e){return se("MuiList",e)}K("MuiList",["root","padding","dense","subheader"]);const No=["children","className","component","dense","disablePadding","subheader"],ko=e=>{const{classes:t,disablePadding:n,dense:o,subheader:r}=e;return fe({root:["root",!n&&"padding",o&&"dense",r&&"subheader"]},Po,t)},Do=Y("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})(({ownerState:e})=>m({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),Lo=l.forwardRef(function(t,n){const o=ae({props:t,name:"MuiList"}),{children:r,className:i,component:s="ul",dense:a=!1,disablePadding:u=!1,subheader:d}=o,f=B(o,No),v=l.useMemo(()=>({dense:a}),[a]),y=m({},o,{component:s,dense:a,disablePadding:u}),E=ko(y);return T.jsx(we.Provider,{value:v,children:T.jsxs(Do,m({as:s,className:D(E.root,i),ref:n,ownerState:y},f,{children:[d,r]}))})}),at=K("MuiListItemIcon",["root","alignItemsFlexStart"]),lt=K("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),zo=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function ke(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function ut(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function Ct(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.indexOf(t.keys.join(""))===0}function ue(e,t,n,o,r,i){let s=!1,a=r(e,t,t?n:!1);for(;a;){if(a===e.firstChild){if(s)return!1;s=!0}const u=o?!1:a.disabled||a.getAttribute("aria-disabled")==="true";if(!a.hasAttribute("tabindex")||!Ct(a,i)||u)a=r(e,a,n);else return a.focus(),!0}return!1}const Qo=l.forwardRef(function(t,n){const{actions:o,autoFocus:r=!1,autoFocusItem:i=!1,children:s,className:a,disabledItemsFocusable:u=!1,disableListWrap:d=!1,onKeyDown:f,variant:v="selectedMenu"}=t,y=B(t,zo),E=l.useRef(null),C=l.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});ie(()=>{r&&E.current.focus()},[r]),l.useImperativeHandle(o,()=>({adjustStyleForScrollbar:(b,{direction:p})=>{const R=!E.current.style.width;if(b.clientHeight<E.current.clientHeight&&R){const S=`${En(be(b))}px`;E.current.style[p==="rtl"?"paddingLeft":"paddingRight"]=S,E.current.style.width=`calc(100% + ${S})`}return E.current}}),[]);const h=b=>{const p=E.current,R=b.key,S=be(p).activeElement;if(R==="ArrowDown")b.preventDefault(),ue(p,S,d,u,ke);else if(R==="ArrowUp")b.preventDefault(),ue(p,S,d,u,ut);else if(R==="Home")b.preventDefault(),ue(p,null,d,u,ke);else if(R==="End")b.preventDefault(),ue(p,null,d,u,ut);else if(R.length===1){const x=C.current,O=R.toLowerCase(),w=performance.now();x.keys.length>0&&(w-x.lastTime>500?(x.keys=[],x.repeating=!0,x.previousKeyMatched=!0):x.repeating&&O!==x.keys[0]&&(x.repeating=!1)),x.lastTime=w,x.keys.push(O);const k=S&&!x.repeating&&Ct(S,x);x.previousKeyMatched&&(k||ue(p,S,!1,u,ke,x))?b.preventDefault():x.previousKeyMatched=!1}f&&f(b)},c=J(E,n);let M=-1;l.Children.forEach(s,(b,p)=>{if(!l.isValidElement(b)){M===p&&(M+=1,M>=s.length&&(M=-1));return}b.props.disabled||(v==="selectedMenu"&&b.props.selected||M===-1)&&(M=p),M===p&&(b.props.disabled||b.props.muiSkipListHighlight||b.type.muiSkipListHighlight)&&(M+=1,M>=s.length&&(M=-1))});const N=l.Children.map(s,(b,p)=>{if(p===M){const R={};return i&&(R.autoFocus=!0),b.props.tabIndex===void 0&&v==="selectedMenu"&&(R.tabIndex=0),l.cloneElement(b,R)}return b});return T.jsx(Lo,m({role:"menu",ref:c,className:a,onKeyDown:h,tabIndex:r?0:-1},y,{children:N}))});function Oo(e){return se("MuiMenuItem",e)}const ce=K("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),Bo=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],wo=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},Fo=e=>{const{disabled:t,dense:n,divider:o,disableGutters:r,selected:i,classes:s}=e,u=fe({root:["root",n&&"dense",t&&"disabled",!r&&"gutters",o&&"divider",i&&"selected"]},Oo,s);return m({},s,u)},Vo=Y(yt,{shouldForwardProp:e=>pt(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:wo})(({theme:e,ownerState:t})=>m({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${ce.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:H.alpha(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${ce.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:H.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${ce.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:H.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:H.alpha(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${ce.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${ce.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${st.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${st.inset}`]:{marginLeft:52},[`& .${lt.root}`]:{marginTop:0,marginBottom:0},[`& .${lt.inset}`]:{paddingLeft:36},[`& .${at.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&m({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${at.root} svg`]:{fontSize:"1.25rem"}}))),er=l.forwardRef(function(t,n){const o=ae({props:t,name:"MuiMenuItem"}),{autoFocus:r=!1,component:i="li",dense:s=!1,divider:a=!1,disableGutters:u=!1,focusVisibleClassName:d,role:f="menuitem",tabIndex:v,className:y}=o,E=B(o,Bo),C=l.useContext(we),h=l.useMemo(()=>({dense:s||C.dense||!1,disableGutters:u}),[C.dense,s,u]),c=l.useRef(null);ie(()=>{r&&c.current&&c.current.focus()},[r]);const M=m({},o,{dense:h.dense,divider:a,disableGutters:u}),N=Fo(o),b=J(c,n);let p;return o.disabled||(p=v!==void 0?v:-1),T.jsx(we.Provider,{value:h,children:T.jsx(Vo,m({ref:b,role:f,tabIndex:p,component:i,focusVisibleClassName:D(N.focusVisible,d),className:D(N.root,y)},E,{ownerState:M,classes:N}))})});export{yo as A,Zo as B,Jo as C,To as G,Qo as M,Xo as P,Ho as R,Z as T,Sn as a,ln as b,ie as c,J as d,En as e,rn as f,Xe as g,de as h,en as i,Yn as j,Ln as k,Qe as l,qo as m,Go as n,be as o,tn as p,qn as q,An as r,Ko as s,Wo as t,ht as u,er as v,Yo as w,cn as x,mt as y,xo as z};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a3 as M,a4 as I}from"./index-CfzzJJMt.js";import{b as u,i as V,w as F,T as G,h as z,j as w,r as K,l as Y,m as k,g as x,a as W,u as H,_ as j,c as Q,d as g,e as q,s as J}from"./generateUtilityClasses-DFV3l_aJ.js";import{r as O,j as f}from"./react-4iaCnQ6n.js";const X="https://wearable-preview.decentraland.zone",Z="https://decentraland.zone/account",tt="https://decentraland.zone/profile",et="https://decentraland.zone/marketplace",nt="https://decentraland.zone/builder",ot="https://decentraland.zone/dao",at="https://decentraland.zone/governance",st="https://decentraland.zone/events",rt="https://decentraland.zone/places",ct="https://decentraland.org/create/",dt="https://docs.decentraland.org/player/",_t="https://decentraland.zone/download/creator-hub/",lt="https://decentraland.zone/download/",Rt="https://decentraland.zone/download_success/",Lt="ea2ybdmmn1kv",Et="master",Ut="18g1DzIyBxvu0steSwKyQr",it="https://cms.decentraland.org",pt="https://decentraland.zone/marketplace/names/claim",St="https://decentraland.zone/marketplace/lands",Ot="https://decentraland.zone/marketplace/account",At="https://decentraland.zone/create/",Tt="https://studios.decentraland.zone/",ht="https://decentraland.zone/builder/collections",Nt="https://decentraland.zone/builder/names",Ct="https://decentraland.zone/builder/worlds?tab=dcl",gt="https://decentraland.zone/builder/land",mt="https://decentraland.zone/events/me/",It="https://decentraland.zone/places/favorites/",ut="https://docs.decentraland.org/player/",Dt="https://docs.decentraland.org/creator/",$t="https://decentraland.zone/blog/",Pt="https://docs.decentraland.org/contributor/",ft="https://decentraland.zone/governance/transparency/",vt="https://decentraland.zone/governance/proposals/",yt="https://decentraland.zone/dao/grants/",Bt="https://decentraland.zone/governance/projects/",bt="https://docs.decentraland.org/player/general/dao/overview/what-is-the-dao/",Mt="https://decentraland.zone/marketplace/settings",Vt="https://dcl.gg/discord",Ft="https://reddit.com/r/decentraland",Gt="https://github.com/decentraland",zt="https://x.com/decentraland",wt="https://instagram.com/decentraland_foundation/",Kt="https://youtube.com/@decentraland_foundation",Yt="https://tiktok.com/@decentraland_fdn",kt="https://linkedin.com/company/decentralandorg",xt="https://decentraland.zone/privacy",Wt="https://decentraland.zone/terms",Ht="https://decentraland.zone/content",jt="https://decentraland.zone/ethics",Qt="https://decentraland.org/help",qt="mailto:hello@decentraland.org",Jt="https://docs.decentraland.org/faqs/decentraland-101",Xt="https://docs.decentraland.org",Zt="https://embeds.beehiiv.com/ff89783d-748b-4ba3-8700-4759f6f62831?slim=true",te="https://download-gateway.decentraland.zone",ee="https://decentraland.zone/top-scenes",ne="https://testflight.apple.com/join/KF4r3jlU",oe="https://play.google.com/store/apps/details?id=org.decentraland.godotexplorer",ae={WEARABLE_PREVIEW_URL:X,ACCOUNT_URL:Z,PROFILE_URL:tt,MARKETPLACE_URL:et,BUILDER_URL:nt,DAO_URL:ot,GOVERNANCE_URL:at,EVENTS_URL:st,PLACES_URL:rt,CREATE_URL:ct,LEARN_URL:dt,CREATOR_HUB_URL:_t,DOWNLOAD_URL:lt,DOWNLOAD_SUCCESS_URL:Rt,CONTENTFUL_SPACE_ID:Lt,CONTENTFUL_ENV:Et,CONTENTFUL_NAVBAR_ENTRY_ID:Ut,CONTENTFUL_CONTENTFUL_CDN_URL:it,MARKETPLACE_NAMES_URL:pt,MARKETPLACE_LANDS_URL:St,MARKETPLACE_MY_ASSETS_URL:Ot,LANDING_CREATORS_URL:At,STUDIOS_URL:Tt,BUILDER_WEARABLE_EMOTES_URL:ht,BUILDER_NAMES_URL:Nt,BUILDER_WORLDS_URL:Ct,BUILDER_LAND_URL:gt,EVENTS_MY_EVENTS:mt,PLACES_MY_FAVORITE_URL:It,DOCS_ABOUT_URL:ut,DOCS_CREATORS_URL:Dt,BLOG_URL:$t,DOCS_CONTRIBUTOR_URL:Pt,GOVERNANCE_TRANSPARENCY_URL:ft,GOVERNANCE_PROPOSALS_URL:vt,DAO_GRANTS_URL:yt,GOVERNANCE_PROJECTS_URL:Bt,DOCS_DAO_URL:bt,MARKETPLACE_SETTINGS_URL:Mt,DISCORD_URL:Vt,REDDIT_URL:Ft,GITHUB_URL:Gt,X_URL:zt,INSTAGRAM_URL:wt,YOUTUBE_URL:Kt,TIKTOK_URL:Yt,LINKEDIN_URL:kt,PRIVACY_POLICY_URL:xt,TERMS_OF_USE_URL:Wt,CONTENT_POLICY_URL:Ht,CODE_OF_ETHICS_URL:jt,SUPPORT_URL:Qt,EMAIL_HELLO_URL:qt,FAQ_URL:Jt,DOCS_URL:Xt,BEEHIV_SUBSCRIPTION_URL:Zt,AUTO_SIGNING_BASE_URL:te,TOP_SCENES_URL:ee,IOS_STORE_URL:ne,ANDROID_STORE_URL:oe},se="https://wearable-preview.decentraland.org",re="https://decentraland.org/account",ce="https://decentraland.org/profile",de="https://decentraland.org/marketplace",_e="https://decentraland.org/builder",le="https://decentraland.org/dao",Re="https://decentraland.org/governance",Le="https://decentraland.org/events",Ee="https://decentraland.org/places",Ue="https://decentraland.org/create/",ie="https://docs.decentraland.org/player/",pe="https://decentraland.org/download/creator-hub/",Se="https://decentraland.org/download/",Oe="https://decentraland.org/download_success/",Ae="ea2ybdmmn1kv",Te="master",he="18g1DzIyBxvu0steSwKyQr",Ne="https://cms.decentraland.org",Ce="https://decentraland.org/marketplace/names/claim",ge="https://decentraland.org/marketplace/lands",me="https://decentraland.org/marketplace/account",Ie="https://decentraland.org/create/",ue="https://studios.decentraland.org/",De="https://decentraland.org/builder/collections",$e="https://decentraland.org/builder/names",Pe="https://decentraland.org/builder/worlds?tab=dcl",fe="https://decentraland.org/builder/land",ve="https://decentraland.org/events/me/",ye="https://decentraland.org/places/favorites/",Be="https://docs.decentraland.org/player/",be="https://docs.decentraland.org/creator/",Me="https://decentraland.org/blog/",Ve="https://docs.decentraland.org/contributor/",Fe="https://decentraland.org/governance/transparency/",Ge="https://decentraland.org/governance/proposals/",ze="https://decentraland.org/dao/grants/",we="https://decentraland.org/governance/projects/",Ke="https://docs.decentraland.org/player/general/dao/overview/what-is-the-dao/",Ye="https://decentraland.org/marketplace/settings",ke="https://dcl.gg/discord",xe="https://reddit.com/r/decentraland",We="https://github.com/decentraland",He="https://x.com/decentraland",je="https://instagram.com/decentraland_foundation/",Qe="https://youtube.com/@decentraland_foundation",qe="https://tiktok.com/@decentraland_fdn",Je="https://linkedin.com/company/decentralandorg",Xe="https://decentraland.org/privacy",Ze="https://decentraland.org/terms",tn="https://decentraland.org/content",en="https://decentraland.org/ethics",nn="https://decentraland.org/help",on="mailto:hello@decentraland.org",an="https://docs.decentraland.org/faqs/decentraland-101",sn="https://docs.decentraland.org",rn="https://embeds.beehiiv.com/ff89783d-748b-4ba3-8700-4759f6f62831?slim=true",cn="https://download-gateway.decentraland.org",dn="https://decentraland.org/top-scenes",_n="https://testflight.apple.com/join/KF4r3jlU",ln="https://play.google.com/store/apps/details?id=org.decentraland.godotexplorer",Rn={WEARABLE_PREVIEW_URL:se,ACCOUNT_URL:re,PROFILE_URL:ce,MARKETPLACE_URL:de,BUILDER_URL:_e,DAO_URL:le,GOVERNANCE_URL:Re,EVENTS_URL:Le,PLACES_URL:Ee,CREATE_URL:Ue,LEARN_URL:ie,CREATOR_HUB_URL:pe,DOWNLOAD_URL:Se,DOWNLOAD_SUCCESS_URL:Oe,CONTENTFUL_SPACE_ID:Ae,CONTENTFUL_ENV:Te,CONTENTFUL_NAVBAR_ENTRY_ID:he,CONTENTFUL_CONTENTFUL_CDN_URL:Ne,MARKETPLACE_NAMES_URL:Ce,MARKETPLACE_LANDS_URL:ge,MARKETPLACE_MY_ASSETS_URL:me,LANDING_CREATORS_URL:Ie,STUDIOS_URL:ue,BUILDER_WEARABLE_EMOTES_URL:De,BUILDER_NAMES_URL:$e,BUILDER_WORLDS_URL:Pe,BUILDER_LAND_URL:fe,EVENTS_MY_EVENTS:ve,PLACES_MY_FAVORITE_URL:ye,DOCS_ABOUT_URL:Be,DOCS_CREATORS_URL:be,BLOG_URL:Me,DOCS_CONTRIBUTOR_URL:Ve,GOVERNANCE_TRANSPARENCY_URL:Fe,GOVERNANCE_PROPOSALS_URL:Ge,DAO_GRANTS_URL:ze,GOVERNANCE_PROJECTS_URL:we,DOCS_DAO_URL:Ke,MARKETPLACE_SETTINGS_URL:Ye,DISCORD_URL:ke,REDDIT_URL:xe,GITHUB_URL:We,X_URL:He,INSTAGRAM_URL:je,YOUTUBE_URL:Qe,TIKTOK_URL:qe,LINKEDIN_URL:Je,PRIVACY_POLICY_URL:Xe,TERMS_OF_USE_URL:Ze,CONTENT_POLICY_URL:tn,CODE_OF_ETHICS_URL:en,SUPPORT_URL:nn,EMAIL_HELLO_URL:on,FAQ_URL:an,DOCS_URL:sn,BEEHIV_SUBSCRIPTION_URL:rn,AUTO_SIGNING_BASE_URL:cn,TOP_SCENES_URL:dn,IOS_STORE_URL:_n,ANDROID_STORE_URL:ln},Ln="https://wearable-preview.decentraland.today",En="https://decentraland.today/account",Un="https://decentraland.today/profile",pn="https://decentraland.today/marketplace",Sn="https://decentraland.today/builder",On="https://decentraland.today/dao",An="https://decentraland.today/governance",Tn="https://decentraland.zone/events",hn="https://decentraland.zone/places",Nn="https://decentraland.today/create/",Cn="https://docs.decentraland.org/player/",gn="https://decentraland.today/download/creator-hub/",mn="https://decentraland.today/download/",In="https://decentraland.today/download_success/",un="ea2ybdmmn1kv",Dn="master",$n="18g1DzIyBxvu0steSwKyQr",Pn="https://cms.decentraland.org",fn="https://decentraland.today/marketplace/names/claim",vn="https://decentraland.today/marketplace/lands",yn="https://decentraland.today/marketplace/account",Bn="https://decentraland.today/create/",bn="https://studios.decentraland.today/",Mn="https://decentraland.today/builder/collections",Vn="https://decentraland.today/builder/names",Fn="https://decentraland.today/builder/worlds?tab=dcl",Gn="https://decentraland.today/builder/land",zn="https://decentraland.today/events/me/",wn="https://decentraland.today/places/favorites/",Kn="https://docs.decentraland.org/player/",Yn="https://docs.decentraland.org/creator/",kn="https://decentraland.today/blog/",xn="https://docs.decentraland.org/contributor/",Wn="https://decentraland.today/governance/transparency/",Hn="https://decentraland.today/governance/proposals/",jn="https://decentraland.today/dao/grants/",Qn="https://decentraland.today/governance/projects/",qn="https://docs.decentraland.org/player/general/dao/overview/what-is-the-dao/",Jn="https://decentraland.today/marketplace/settings",Xn="https://dcl.gg/discord",Zn="https://reddit.com/r/decentraland",to="https://github.com/decentraland",eo="https://x.com/decentraland",no="https://instagram.com/decentraland_foundation/",oo="https://youtube.com/@decentraland_foundation",ao="https://tiktok.com/@decentraland_fdn",so="https://linkedin.com/company/decentralandorg",ro="https://decentraland.org/privacy",co="https://decentraland.org/terms",_o="https://decentraland.org/content",lo="https://decentraland.org/ethics",Ro="https://decentraland.org/help",Lo="mailto:hello@decentraland.org",Eo="https://docs.decentraland.org/faqs/decentraland-101",Uo="https://docs.decentraland.org",io="https://embeds.beehiiv.com/ff89783d-748b-4ba3-8700-4759f6f62831?slim=true",po="https://download-gateway.decentraland.zone",So="https://decentraland.zone/top-scenes",Oo="https://testflight.apple.com/join/KF4r3jlU",Ao="https://play.google.com/store/apps/details?id=org.decentraland.godotexplorer",To={WEARABLE_PREVIEW_URL:Ln,ACCOUNT_URL:En,PROFILE_URL:Un,MARKETPLACE_URL:pn,BUILDER_URL:Sn,DAO_URL:On,GOVERNANCE_URL:An,EVENTS_URL:Tn,PLACES_URL:hn,CREATE_URL:Nn,LEARN_URL:Cn,CREATOR_HUB_URL:gn,DOWNLOAD_URL:mn,DOWNLOAD_SUCCESS_URL:In,CONTENTFUL_SPACE_ID:un,CONTENTFUL_ENV:Dn,CONTENTFUL_NAVBAR_ENTRY_ID:$n,CONTENTFUL_CONTENTFUL_CDN_URL:Pn,MARKETPLACE_NAMES_URL:fn,MARKETPLACE_LANDS_URL:vn,MARKETPLACE_MY_ASSETS_URL:yn,LANDING_CREATORS_URL:Bn,STUDIOS_URL:bn,BUILDER_WEARABLE_EMOTES_URL:Mn,BUILDER_NAMES_URL:Vn,BUILDER_WORLDS_URL:Fn,BUILDER_LAND_URL:Gn,EVENTS_MY_EVENTS:zn,PLACES_MY_FAVORITE_URL:wn,DOCS_ABOUT_URL:Kn,DOCS_CREATORS_URL:Yn,BLOG_URL:kn,DOCS_CONTRIBUTOR_URL:xn,GOVERNANCE_TRANSPARENCY_URL:Wn,GOVERNANCE_PROPOSALS_URL:Hn,DAO_GRANTS_URL:jn,GOVERNANCE_PROJECTS_URL:Qn,DOCS_DAO_URL:qn,MARKETPLACE_SETTINGS_URL:Jn,DISCORD_URL:Xn,REDDIT_URL:Zn,GITHUB_URL:to,X_URL:eo,INSTAGRAM_URL:no,YOUTUBE_URL:oo,TIKTOK_URL:ao,LINKEDIN_URL:so,PRIVACY_POLICY_URL:ro,TERMS_OF_USE_URL:co,CONTENT_POLICY_URL:_o,CODE_OF_ETHICS_URL:lo,SUPPORT_URL:Ro,EMAIL_HELLO_URL:Lo,FAQ_URL:Eo,DOCS_URL:Uo,BEEHIV_SUBSCRIPTION_URL:io,AUTO_SIGNING_BASE_URL:po,TOP_SCENES_URL:So,IOS_STORE_URL:Oo,ANDROID_STORE_URL:Ao},Bo=M({[I.DEVELOPMENT]:ae,[I.STAGING]:To,[I.PRODUCTION]:Rn});var ho=V,No=function(t){return t!=="theme"},v=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?ho:No},y=function(t,o,a){var e;if(o){var c=o.shouldForwardProp;e=t.__emotion_forwardProp&&c?function(l){return t.__emotion_forwardProp(l)&&c(l)}:c}return typeof e!="function"&&a&&(e=t.__emotion_forwardProp),e},Co=function(t){var o=t.cache,a=t.serialized,e=t.isStringTag;return K(o,a,e),Y(function(){return k(o,a,e)}),null},go=function n(t,o){var a=t.__emotion_real===t,e=a&&t.__emotion_base||t,c,l;o!==void 0&&(c=o.label,l=o.target);var L=y(t,o,a),S=L||v(e),U=!S("as");return function(){var R=arguments,r=a&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(c!==void 0&&r.push("label:"+c+";"),R[0]==null||R[0].raw===void 0)r.push.apply(r,R);else{var E=R[0];r.push(E[0]);for(var p=R.length,_=1;_<p;_++)r.push(R[_],E[_])}var d=F(function(s,i,T){var m=U&&s.as||e,A="",D=[],h=s;if(s.theme==null){h={};for(var $ in s)h[$]=s[$];h.theme=O.useContext(G)}typeof s.className=="string"?A=z(i.registered,D,s.className):s.className!=null&&(A=s.className+" ");var P=w(r.concat(D),i.registered,h);A+=i.key+"-"+P.name,l!==void 0&&(A+=" "+l);var b=U&&L===void 0?v(m):S,N={};for(var C in s)U&&C==="as"||b(C)&&(N[C]=s[C]);return N.className=A,T&&(N.ref=T),O.createElement(O.Fragment,null,O.createElement(Co,{cache:i,serialized:P,isStringTag:typeof m=="string"}),O.createElement(m,N))});return d.displayName=c!==void 0?c:"Styled("+(typeof e=="string"?e:e.displayName||e.name||"Component")+")",d.defaultProps=t.defaultProps,d.__emotion_real=d,d.__emotion_base=e,d.__emotion_styles=r,d.__emotion_forwardProp=L,Object.defineProperty(d,"toString",{value:function(){return"."+l}}),d.withComponent=function(s,i){var T=n(s,u({},o,i,{shouldForwardProp:y(d,i,!0)}));return T.apply(void 0,r)},d}},mo=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],B=go.bind(null);mo.forEach(function(n){B[n]=B(n)});function Io(n){return x("MuiSvgIcon",n)}W("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const uo=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],Do=n=>{const{color:t,fontSize:o,classes:a}=n,e={root:["root",t!=="inherit"&&`color${g(t)}`,`fontSize${g(o)}`]};return q(e,Io,a)},$o=J("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(n,t)=>{const{ownerState:o}=n;return[t.root,o.color!=="inherit"&&t[`color${g(o.color)}`],t[`fontSize${g(o.fontSize)}`]]}})(({theme:n,ownerState:t})=>{var o,a,e,c,l,L,S,U,R,r,E,p,_;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(o=n.transitions)==null||(a=o.create)==null?void 0:a.call(o,"fill",{duration:(e=n.transitions)==null||(e=e.duration)==null?void 0:e.shorter}),fontSize:{inherit:"inherit",small:((c=n.typography)==null||(l=c.pxToRem)==null?void 0:l.call(c,20))||"1.25rem",medium:((L=n.typography)==null||(S=L.pxToRem)==null?void 0:S.call(L,24))||"1.5rem",large:((U=n.typography)==null||(R=U.pxToRem)==null?void 0:R.call(U,35))||"2.1875rem"}[t.fontSize],color:(r=(E=(n.vars||n).palette)==null||(E=E[t.color])==null?void 0:E.main)!=null?r:{action:(p=(n.vars||n).palette)==null||(p=p.action)==null?void 0:p.active,disabled:(_=(n.vars||n).palette)==null||(_=_.action)==null?void 0:_.disabled,inherit:void 0}[t.color]}}),Po=O.forwardRef(function(t,o){const a=H({props:t,name:"MuiSvgIcon"}),{children:e,className:c,color:l="inherit",component:L="svg",fontSize:S="medium",htmlColor:U,inheritViewBox:R=!1,titleAccess:r,viewBox:E="0 0 24 24"}=a,p=j(a,uo),_=O.isValidElement(e)&&e.type==="svg",d=u({},a,{color:l,component:L,fontSize:S,instanceFontSize:t.fontSize,inheritViewBox:R,viewBox:E,hasSvgAsChild:_}),s={};R||(s.viewBox=E);const i=Do(d);return f.jsxs($o,u({as:L,className:Q(i.root,c),focusable:"false",color:U,"aria-hidden":r?void 0:!0,role:r?"img":void 0,ref:o},s,p,_&&e.props,{ownerState:d,children:[_?e.props.children:e,r?f.jsx("title",{children:r}):null]}))});Po.muiName="SvgIcon";export{Po as S,Bo as c,B as n};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{w as r}from"./utils-kxirIM46.js";import{d as a}from"./decimals-CoSJIqdK.js";import"./ethers-CU3Ctw5k.js";import"./react-4iaCnQ6n.js";import"./signing-D5FLtKXR.js";import"./index-CfzzJJMt.js";async function s(c){return r(()=>a(c),{cacheKey:`${c.contract.chain.id}:${c.contract.address}:decimals`,cacheTime:Number.POSITIVE_INFINITY})}export{s as decimals};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{h as i}from"./signing-D5FLtKXR.js";import"./utils-kxirIM46.js";import"./ethers-CU3Ctw5k.js";import"./react-4iaCnQ6n.js";import"./index-CfzzJJMt.js";async function n(t,e){const a=await t({method:"eth_estimateGas",params:[e]});return i(a)}export{n as eth_estimateGas};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{n as e,a as r}from"./signing-D5FLtKXR.js";import"./utils-kxirIM46.js";import"./ethers-CU3Ctw5k.js";import"./react-4iaCnQ6n.js";import"./index-CfzzJJMt.js";async function b(t,o){const n=await t({method:"eth_getTransactionCount",params:[o.address,o.blockNumber?e(o.blockNumber):o.blockTag||"pending"]});return r(n)}export{b as eth_getTransactionCount};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{g as n}from"./wallets-BLWl9mlK.js";import"./signing-D5FLtKXR.js";import"./utils-kxirIM46.js";import"./ethers-CU3Ctw5k.js";import"./react-4iaCnQ6n.js";import"./index-CfzzJJMt.js";import"./store-CraP4F4Y.js";import"./hashTypedData-DqXDddu6.js";import"./index-dh6reMW-.js";import"./index-HY-n-iGV.js";import"./index-B67hpoq5.js";import"./index-nibyPLVP.js";import"./index-CJdot1dH.js";import"./index-BvQulWAh.js";import"./ethereum-XjVKsXdf.js";async function w(o){const l=await n(o);return{app:{android:null,browser:null,chrome:null,edge:null,firefox:null,ios:null,linux:null,mac:null,opera:null,safari:null,windows:null},desktop:{native:null,universal:null},homepage:l.homepage||"",id:o,image_id:l.imageUrl||"",mobile:{native:null,universal:null},name:l.name,rdns:null}}export{w as getEcosystemWalletInfo};
|
package/assets/index-DEpc43-h.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as i,j as e,R as Se}from"./react-4iaCnQ6n.js";import{n as $}from"./network-CNeSRpun.js";import{c as j,n as t,S as Fe}from"./SvgIcon-D5EgVDYB.js";import{b as C,n as s}from"./colors-LINLm1ux.js";import{k as oe}from"./generateUtilityClasses-DFV3l_aJ.js";import"./index-CfzzJJMt.js";import"./ethers-CU3Ctw5k.js";function A(o){return Math.floor(o).toLocaleString("en-US")}const xe=i.memo(function(n){return e.jsxs("svg",{viewBox:"0 0 90 90",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:[e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M45 89.9999C69.8528 89.9999 89.9999 69.8528 89.9999 45C89.9999 20.1472 69.8528 0 45 0C20.1472 0 0 20.1472 0 45C0 69.8528 20.1472 89.9999 45 89.9999Z",fill:"url(#dcl-nav0)"}),e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18 80.9996C25.515 86.6471 34.875 89.9996 45 89.9996C55.125 89.9996 64.485 86.6471 72 80.9996H18Z",fill:"#FF2D55"}),e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9 71.9996C11.565 75.397 14.603 78.435 18 80.9996H72C75.398 78.435 78.435 75.397 81 71.9996H9Z",fill:"#FFA25A"}),e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M60.368 62.9997H3.758C5.153 66.2172 6.93 69.2322 9 71.9997H60.39V62.9997H60.368Z",fill:"#FFC95B"}),e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M31.883 29.25V63H60.008L31.883 29.25Z",fill:"url(#dcl-nav1)"}),e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.758 63H31.883V29.25L3.758 63Z",fill:"white"}),e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M60.368 47.25V72H81L60.368 47.25Z",fill:"url(#dcl-nav2)"}),e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M39.757 72H60.367V47.25L39.757 72Z",fill:"white"}),e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M60.368 40.5C66.58 40.5 71.618 35.463 71.618 29.25C71.618 23.037 66.58 18 60.368 18C54.154 18 49.118 23.037 49.118 29.25C49.118 35.463 54.154 40.5 60.368 40.5Z",fill:"#FFC95B"}),e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M31.882 22.5C34.989 22.5 37.507 19.981 37.507 16.875C37.507 13.768 34.989 11.25 31.882 11.25C28.776 11.25 26.257 13.768 26.257 16.875C26.257 19.981 28.776 22.5 31.882 22.5Z",fill:"#FFC95B"}),e.jsxs("defs",{children:[e.jsxs("linearGradient",{id:"dcl-nav0",x1:"45",y1:"-18.64",x2:"-18.64",y2:"45",gradientUnits:"userSpaceOnUse",children:[e.jsx("stop",{stopColor:"#FF2D55"}),e.jsx("stop",{offset:"1",stopColor:"#FFBC5B"})]}),e.jsxs("linearGradient",{id:"dcl-nav1",x1:"31.873",y1:"29.25",x2:"31.873",y2:"63",gradientUnits:"userSpaceOnUse",children:[e.jsx("stop",{stopColor:"#A524B3"}),e.jsx("stop",{offset:"1",stopColor:"#FF2D55"})]}),e.jsxs("linearGradient",{id:"dcl-nav2",x1:"60.36",y1:"47.25",x2:"60.36",y2:"72",gradientUnits:"userSpaceOnUse",children:[e.jsx("stop",{stopColor:"#A524B3"}),e.jsx("stop",{offset:"1",stopColor:"#FF2D55"})]})]})]})}),Ae=i.memo(function(n){return e.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:[e.jsx("path",{d:"M3 6H21",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"}),e.jsx("path",{d:"M3 12H21",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"}),e.jsx("path",{d:"M3 18H21",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})]})}),Ee=i.memo(function(n){return e.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:[e.jsx("path",{d:"M6 6L18 18",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"}),e.jsx("path",{d:"M18 6L6 18",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})]})}),ne=i.memo(function(n){return e.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:e.jsx("path",{d:"M5 7.5L10 12.5L15 7.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})}),Re=i.memo(function(n){return e.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:e.jsx("path",{d:"M15 12.5L10 7.5L5 12.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})}),ge=i.memo(function(n){return e.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:[e.jsx("path",{d:"M12 8.66667V12.6667C12 13.0203 11.8595 13.3594 11.6095 13.6095C11.3594 13.8595 11.0203 14 10.6667 14H3.33333C2.97971 14 2.64057 13.8595 2.39052 13.6095C2.14048 13.3594 2 13.0203 2 12.6667V5.33333C2 4.97971 2.14048 4.64057 2.39052 4.39052C2.64057 4.14048 2.97971 4 3.33333 4H7.33333",stroke:"currentColor",strokeWidth:"1.33",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M10 2H14V6",stroke:"currentColor",strokeWidth:"1.33",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M6.66699 9.33333L14.0003 2",stroke:"currentColor",strokeWidth:"1.33",strokeLinecap:"round",strokeLinejoin:"round"})]})}),He=i.memo(function(n){return e.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:[e.jsx("path",{d:"M7.5 17.5H4.16667C3.72464 17.5 3.30072 17.3244 2.98816 17.0118C2.67559 16.6993 2.5 16.2754 2.5 15.8333V4.16667C2.5 3.72464 2.67559 3.30072 2.98816 2.98816C3.30072 2.67559 3.72464 2.5 4.16667 2.5H7.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M13.333 14.1667L17.4997 10.0001L13.333 5.83337",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M17.5 10H7.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})}),ie=i.memo(function(n){return e.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:[e.jsx("rect",{x:"3.5",y:"3.5",width:"7",height:"7",rx:"1.5",stroke:"currentColor",strokeWidth:"1"}),e.jsx("path",{d:"M8.5 3.5V2C8.5 1.17157 7.82843 0.5 7 0.5H2C1.17157 0.5 0.5 1.17157 0.5 2V7C0.5 7.82843 1.17157 8.5 2 8.5H3.5",stroke:"currentColor",strokeWidth:"1"})]})}),We=i.memo(function(n){return e.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:[e.jsx("path",{d:"M10 10C11.3807 10 12.5 8.88071 12.5 7.5C12.5 6.11929 11.3807 5 10 5C8.61929 5 7.5 6.11929 7.5 7.5C7.5 8.88071 8.61929 10 10 10Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M5 16.25C5 14.1789 7.23858 12.5 10 12.5C12.7614 12.5 15 14.1789 15 16.25",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})}),Ue=i.memo(function(n){return e.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:[e.jsx("path",{d:"M15.8333 7.5L13.3333 3.33337H6.66667L4.16667 7.5L2.5 16.6667H17.5L15.8333 7.5Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M6.66667 3.33337L7.5 7.50004L10 9.16671L12.5 7.50004L13.3333 3.33337",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})}),Be=i.memo(function(n){return e.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:[e.jsx("path",{d:"M10 12.5C11.3807 12.5 12.5 11.3807 12.5 10C12.5 8.61929 11.3807 7.5 10 7.5C8.61929 7.5 7.5 8.61929 7.5 10C7.5 11.3807 8.61929 12.5 10 12.5Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M16.1666 10C16.1666 9.58337 16.1249 9.16671 16.0416 8.75004L17.9166 7.27087L16.4166 4.72921L14.1666 5.52087C13.5416 4.97921 12.8124 4.56254 11.9999 4.31254L11.6666 1.66671H8.33325L7.99992 4.31254C7.18742 4.56254 6.45825 4.97921 5.83325 5.52087L3.58325 4.72921L2.08325 7.27087L3.95825 8.75004C3.87492 9.16671 3.83325 9.58337 3.83325 10C3.83325 10.4167 3.87492 10.8334 3.95825 11.25L2.08325 12.7292L3.58325 15.2709L5.83325 14.4792C6.45825 15.0209 7.18742 15.4375 7.99992 15.6875L8.33325 18.3334H11.6666L11.9999 15.6875C12.8124 15.4375 13.5416 15.0209 14.1666 14.4792L16.4166 15.2709L17.9166 12.7292L16.0416 11.25C16.1249 10.8334 16.1666 10.4167 16.1666 10Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})}),_e=i.memo(function(n){return e.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:[e.jsx("path",{d:"M5 1.66663L2.5 4.99996V16.6666C2.5 17.1087 2.67559 17.5326 2.98816 17.8452C3.30072 18.1577 3.72464 18.3333 4.16667 18.3333H15.8333C16.2754 18.3333 16.6993 18.1577 17.0118 17.8452C17.3244 17.5326 17.5 17.1087 17.5 16.6666V4.99996L15 1.66663H5Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M2.5 5H17.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M13.3334 8.33337C13.3334 9.21743 12.9822 10.0653 12.3571 10.6904C11.7319 11.3155 10.8841 11.6667 10.0001 11.6667C9.11603 11.6667 8.26818 11.3155 7.64306 10.6904C7.01794 10.0653 6.66675 9.21743 6.66675 8.33337",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})});i.memo(function(n){return e.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:e.jsx("path",{d:"M12 21.75C13.1 21.75 14 20.85 14 19.75H10C10 20.85 10.89 21.75 12 21.75ZM18 15.75V10.75C18 7.68 16.36 5.11 13.5 4.43V3.75C13.5 2.92 12.83 2.25 12 2.25C11.17 2.25 10.5 2.92 10.5 3.75V4.43C7.63 5.11 6 7.67 6 10.75V15.75L4 17.75V18.75H20V17.75L18 15.75Z",fill:"#FCFCFC"})})});i.memo(function(n){return e.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 256 256",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:[e.jsx("path",{d:"M25.5371 184.328C16.718 180.685 12.5221 170.582 16.1653 161.763L29.8558 128.622L16.1025 95.5076C12.4426 86.6954 16.6194 76.5848 25.4316 72.9248L58.5462 59.1716L72.2367 26.0312C75.8799 17.212 85.9827 13.0162 94.8018 16.6594L127.942 30.3498L161.057 16.5966C169.869 12.9367 179.98 17.1135 183.639 25.9257L197.393 59.0402L230.533 72.7308C239.352 76.374 243.548 86.4767 239.905 95.2958L226.215 128.436L239.968 161.551C243.628 170.363 239.451 180.474 230.639 184.134L197.524 197.887L183.834 231.027C180.19 239.846 170.088 244.042 161.269 240.399L128.128 226.709L95.0135 240.462C86.2013 244.122 76.0907 239.945 72.4307 231.133L58.6775 198.018L25.5371 184.328Z",fill:"url(#credits-nav-g0)"}),e.jsx("path",{d:"M39.4715 176.904C31.9127 173.782 28.3165 165.123 31.439 157.564L43.173 129.16L31.3852 100.777C28.2483 93.2245 31.8282 84.5587 39.3811 81.4219L67.7634 69.634L79.4974 41.2296C82.62 33.6708 91.279 30.0746 98.8377 33.1971L127.242 44.9312L155.624 33.1434C163.177 30.0065 171.843 33.5863 174.98 41.1392L186.768 69.5215L215.172 81.2555C222.731 84.3781 226.327 93.0371 223.205 100.596L211.471 129L223.258 157.383C226.395 164.935 222.815 173.601 215.262 176.738L186.88 188.526L175.146 216.93C172.024 224.489 163.365 228.085 155.806 224.963L127.401 213.229L99.0192 225.017C91.4664 228.153 82.8006 224.574 79.6637 217.021L67.8759 188.638L39.4715 176.904Z",fill:"url(#credits-nav-g1)"}),e.jsx("path",{d:"M54.4478 168.591C48.116 165.975 45.1036 158.722 47.7192 152.39L57.5484 128.596L47.6741 104.822C45.0465 98.4947 48.0452 91.2357 54.372 88.6081L78.147 78.7338L87.9762 54.9403C90.5919 48.6086 97.8452 45.5961 104.177 48.2118L127.97 58.041L151.745 48.1667C158.072 45.539 165.331 48.5378 167.959 54.8646L177.833 78.6395L201.627 88.4687C207.958 91.0844 210.971 98.3377 208.355 104.669L198.526 128.463L208.4 152.238C211.028 158.565 208.029 165.824 201.702 168.451L177.927 178.326L168.098 202.119C165.483 208.451 158.229 211.463 151.897 208.848L128.104 199.018L104.329 208.893C98.0022 211.52 90.7432 208.522 88.1155 202.195L78.2413 178.42L54.4478 168.591Z",fill:"url(#credits-nav-g2)"}),e.jsxs("defs",{children:[e.jsxs("linearGradient",{id:"credits-nav-g0",x1:"211.108",y1:"218.484",x2:"77.4791",y2:"27.1647",gradientUnits:"userSpaceOnUse",children:[e.jsx("stop",{stopColor:"#9BFFFF"}),e.jsx("stop",{offset:"0.5",stopColor:"#B8B9FF"}),e.jsx("stop",{offset:"0.885",stopColor:"#FFCBFF"}),e.jsx("stop",{offset:"1",stopColor:"#FDFCFF"})]}),e.jsxs("linearGradient",{id:"credits-nav-g1",x1:"225.88",y1:"218.975",x2:"71.9492",y2:"33.3822",gradientUnits:"userSpaceOnUse",children:[e.jsx("stop",{stopColor:"#5285BF"}),e.jsx("stop",{offset:"1",stopColor:"#AE66F0"})]}),e.jsxs("linearGradient",{id:"credits-nav-g2",x1:"195.385",y1:"221.054",x2:"91.1662",y2:"16.6319",gradientUnits:"userSpaceOnUse",children:[e.jsx("stop",{stopColor:"#9BFFFF"}),e.jsx("stop",{offset:"0.5",stopColor:"#B8B9FF"}),e.jsx("stop",{offset:"1",stopColor:"#FFCBFF"})]})]})]})});const re=i.memo(function(n){return e.jsxs("svg",{viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:[e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20 40C25.3043 40 30.3914 37.8929 34.1421 34.1421C37.8929 30.3914 40 25.3043 40 20C40 14.6957 37.8929 9.60859 34.1421 5.85786C30.3914 2.10714 25.3043 0 20 0C14.6957 0 9.60859 2.10714 5.85786 5.85786C2.10714 9.60859 0 14.6957 0 20C0 25.3043 2.10714 30.3914 5.85786 34.1421C9.60859 37.8929 14.6957 40 20 40Z",fill:"#25292E"}),e.jsx("path",{d:"M11.7 21.1L20 26.0143L28.2857 21.1L20 32.8L11.7 21.1Z",fill:"white",fillOpacity:"0.8"}),e.jsx("path",{d:"M20 24.1857L11.7 19.2714L20 6.20001L28.3 19.2714L20 24.1857Z",fill:"white"})]})}),De=i.memo(function(n){return e.jsxs("svg",{viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:[e.jsx("rect",{width:"40",height:"40",rx:"20",fill:"white"}),e.jsx("path",{d:"M20 0C9 0 0 9 0 20C0 31 8.85714 40 20 40C31.1429 40 40 31.1429 40 20C40 8.85714 31 0 20 0ZM31.8571 20.1429C31.8571 20.4286 31.7143 20.8571 31.4286 21L25.7143 24.2857C25.4286 24.4286 25 24.4286 24.7143 24.2857L22.5714 23V20L25.1429 21.5714L29.1429 19.2857V14.7143L25.1429 12.4286L21.4286 14.5714V26.2857C21.4286 26.5714 21.2857 27 21 27.1429L15.2857 30.4286C15 30.5714 14.5714 30.5714 14.2857 30.4286L8.57143 27.1429C8.28571 27 8.14286 26.7143 8.14286 26.2857V19.7143C8.14286 19.4286 8.28571 19 8.57143 18.8571L14.2857 15.5714C14.5714 15.4286 15 15.4286 15.2857 15.5714L17.4286 16.8571V20L14.8571 18.4286L10.8571 20.7143V25.2857L14.8571 27.5714L18.8571 25.2857V13.7143C18.8571 13.4286 19 13 19.2857 12.8571L25 9.57143C25.2857 9.42857 25.7143 9.42857 26 9.57143L31.4286 12.8571C31.7143 13 31.8571 13.2857 31.8571 13.7143V20.1429Z",fill:"#8247E5"})]})}),Ne=i.memo(function(n){return e.jsxs("svg",{viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:[e.jsx("path",{d:"M20 1C30.4286 1 39 9.57143 39 20C39 30.4286 30.4286 39 20 39C9.57143 39 1 30.4286 1 20C1 9.57143 9.57143 1 20 1Z",fill:"#2D374B",stroke:"#96BEDC",strokeWidth:"1.4"}),e.jsx("path",{d:"M16.4286 10.7143C14.2857 10.7143 12 11.2857 11 13L2 27L3 29L5 32L19 10.7143H16.4286Z",fill:"white"}),e.jsx("path",{d:"M20.8571 10.7143L7 33.5L9 36L11.5 37L27.4286 10.7143H20.8571Z",fill:"white"}),e.jsx("path",{d:"M20.1428 26.5714L27.5 37.5L32.5 34L23.8571 20.1429L20.1428 26.5714ZM36.8571 28.8571L38 27.5L28.4286 12.5714L25.1428 18.1429L34.5 33L36.4286 29.8571C36.7143 29.5714 36.8571 29.2857 37 28.8571C36.8571 29 36.8571 28.8571 36.8571 28.8571Z",fill:"#28A0F0"}),e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.0731 2.14834C10.1438 2.14834 2.14834 10.1438 2.14834 20.0731C2.14834 29.9915 10.133 37.8517 20.0731 37.8517C29.8616 37.8517 37.8517 29.9969 37.8517 20.0731C37.8517 10.133 29.9915 2.14834 20.0731 2.14834ZM0 20.0731C0 8.95736 8.95736 0 20.0731 0C31.1996 0 40 8.96822 40 20.0731C40 31.1942 31.0372 40 20.0731 40C8.96822 40 0 31.1996 0 20.0731Z",fill:"#96BEDC"})]})}),Oe=i.memo(function(n){return e.jsxs("svg",{viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:[e.jsx("path",{d:"M40 20C40 8.95431 31.0457 0 20 0C8.95431 0 0 8.95431 0 20C0 31.0457 8.95431 40 20 40C31.0457 40 40 31.0457 40 20Z",fill:"#FF3131"}),e.jsx("path",{d:"M13.1714 26.2143C17.0286 26.2143 20.1143 23.0714 20.1143 18.5286C20.1143 15.4 18.0143 13.1 14.4286 13.1C10.5429 13.1 7.5 16.2429 7.5 20.7857C7.5 23.9286 9.64286 26.2143 13.1714 26.2143ZM14.3571 15.7143C15.8714 15.7143 16.8429 16.8714 16.8429 18.7143C16.8429 21.4286 15.2571 23.6 13.2571 23.6C11.7429 23.6 10.7714 22.4286 10.7714 20.6C10.7714 17.9 12.3571 15.7143 14.3429 15.7143H14.3571ZM23.4714 13.3143L20.7857 26H24.0143L24.8 22.2857H26.9C30.3714 22.2857 32.6286 20.3143 32.6286 17.1429C32.6286 14.8429 30.9571 13.3143 28.2 13.3143H23.4857H23.4714ZM26.1857 15.8H27.5286C28.7143 15.8 29.3857 16.3429 29.3857 17.4286C29.3857 18.8571 28.4143 19.8571 26.9 19.8571H25.3143L26.1714 15.8H26.1857Z",fill:"white"})]})}),Ze=i.memo(function(n){return e.jsxs("svg",{viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:[e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20 0C31.0471 0 40 8.95286 40 20C40 31.0471 31.0471 40 20 40C8.95286 40 0 31.0471 0 20C0 8.95286 8.95286 0 20 0Z",fill:"#F0B90B"}),e.jsx("path",{d:"M10.9914 20L11.0057 25.2886L15.5 27.9314V31.0286L8.37714 26.8514V18.4543L10.9914 20ZM10.9914 14.7114V17.7929L8.37428 16.2457V13.1629L10.9914 11.6157L13.6214 13.1629L10.9929 14.7114H10.9914ZM17.3771 13.1629L19.9943 11.6157L22.6229 13.1629L19.9943 14.7114L17.3771 13.1629Z",fill:"white"}),e.jsx("path",{d:"M12.8829 24.1929V21.0957L15.5 22.6443V25.7257L12.8829 24.1929ZM17.3771 29.0414L19.9943 30.59L22.6229 29.0414V32.1229L19.9943 33.6714L17.3771 32.1229V29.0414ZM26.3771 13.1629L28.9943 11.6157L31.6229 13.1629V16.2457L28.9943 17.7929V14.7114L26.3771 13.1629ZM28.9943 25.2886L29.0086 20L31.6243 18.4514V26.85L24.5014 31.0272V27.9314L28.9943 25.2886Z",fill:"white"}),e.jsx("path",{d:"M27.1171 24.1928L24.5 25.7257V22.6443L27.1171 21.0957V24.1928Z",fill:"white"}),e.jsx("path",{d:"M27.1171 15.8072L27.1314 18.9043L22.6243 21.5472V26.85L20.0086 28.3829L17.3914 26.85V21.5486L12.8843 18.9043V15.8072L15.5129 14.26L19.9914 16.9172L24.4986 14.26L27.1271 15.8072H27.1171ZM12.8829 10.5214L19.9929 6.32858L27.1171 10.5214L24.5 12.0686L19.9943 9.41144L15.5 12.0686L12.8829 10.5214Z",fill:"white"})]})}),Ve=i.memo(function(n){return e.jsxs("svg",{viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:[e.jsx("path",{d:"M20 40C31.0457 40 40 31.0457 40 20C40 8.9543 31.0457 0 20 0C8.9543 0 0 8.9543 0 20C0 31.0457 8.9543 40 20 40Z",fill:"#E84142"}),e.jsx("path",{d:"M27.0552 20.5197C27.7484 19.3226 28.8691 19.3226 29.5592 20.5197L33.8738 28.0946C34.567 29.291 34 30.2674 32.612 30.2674H23.9211C22.5513 30.2674 21.9842 29.291 22.6593 28.0946L27.0552 20.5197ZM18.709 5.93692C19.4014 4.74055 20.504 4.74055 21.1972 5.93692L22.1577 7.67194L24.4251 11.6562C24.6972 12.2182 24.8386 12.8346 24.8386 13.459C24.8386 14.0835 24.6972 14.6998 24.4251 15.2618L16.8186 28.4409C16.479 28.9688 16.0198 29.4093 15.4781 29.7267C14.9365 30.044 14.3277 30.2292 13.7011 30.2674H7.38566C6.00001 30.2674 5.43298 29.3068 6.12383 28.0946L18.709 5.93692Z",fill:"white"})]})}),Te=i.memo(function(n){return e.jsxs("svg",{viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:[e.jsx("path",{d:"M20 40C31.0457 40 40 31.0457 40 20C40 8.9543 31.0457 0 20 0C8.9543 0 0 8.9543 0 20C0 31.0457 8.9543 40 20 40Z",fill:"#13B5EC"}),e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21.5 16.125L26 13.5V18.75L21.5 16.125ZM26 27.375L20 30.875L14 27.375V21.25L20 24.75L26 21.25V27.375ZM14 13.5L18.5 16.125L14 18.75V13.5ZM20.75 17.375L25.25 20L20.75 22.625V17.375ZM19.25 22.625L14.75 20L19.25 17.375V22.625ZM25.25 12.25L20 15.25L14.75 12.25L20 9.125L25.25 12.25ZM12.5 11.75V28.125L20 32.375L27.5 28.125V11.75L20 7.5L12.5 11.75Z",fill:"white"})]})}),ze=new Set([1,5,42,4,3,11155111]),$e=new Set([137,80002,80001]),Pe={56:Ze,10:Oe,42161:Ne,250:Te,43114:Ve};function se({chainId:o,...n}){const a=Pe[o];return a?e.jsx(a,{...n}):ze.has(o)?e.jsx(re,{...n}):$e.has(o)?e.jsx(De,{...n}):e.jsx(re,{...n})}const Ce=i.memo(function(n){return e.jsx("svg",{width:"16",height:"16",viewBox:"0 0 13 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:e.jsx("path",{d:"M9.864 6.952C9.864 4.968 8.264 3.32 6.28 3.32C4.296 3.32 2.696 4.968 2.696 6.952C2.696 8.92 4.296 10.52 6.28 10.52C8.264 10.52 9.864 8.92 9.864 6.952ZM9.032 6.952C9.032 8.456 7.688 9.688 6.28 9.688C4.728 9.688 3.528 8.488 3.528 6.952C3.528 5.432 4.728 4.152 6.28 4.152C7.704 4.152 9.032 5.432 9.032 6.952ZM12.248 10.424V3.544L6.28 0.12L0.312 3.544V10.424L6.28 13.848L12.248 10.424ZM11.192 9.832L6.296 12.632L1.368 9.832V4.184L6.28 1.336L11.192 4.184V9.832Z",fill:"#FF2D55"})})}),Le=i.memo(function(n){return e.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 0L24 12L12 24L0 12L12 0ZM12.0002 3.36001L20.6402 12L12.0002 20.64L3.36023 12L12.0002 3.36001ZM12.0009 16.32C14.3868 16.32 16.3209 14.3859 16.3209 12C16.3209 9.61415 14.3868 7.68002 12.0009 7.68002C9.61507 7.68002 7.68094 9.61415 7.68094 12C7.68094 14.3859 9.61507 16.32 12.0009 16.32Z",fill:"#FCFCFC"})})}),Ge={signIn:"SIGN IN",signingIn:"SIGNING IN...",whatsOn:"Explore",shop:"Shop",shopAll:"Shop All",wearables:"Wearables",emotes:"Emotes",names:"Names",land:"Land",merch:"Merch",create:"Create",createInDecentraland:"Create in Decentraland",publishWearablesEmotes:"Publish Wearables & Emotes",publishLand:"Manage Land",learn:"Learn",getStarted:"Get Started",startCreating:"Start Creating",seeWhatsNew:"See What's New",viewProfile:"View Profile",myAssets:"My Assets",accountSettings:"Account Settings",marketplaceAuthorizations:"Marketplace Authorizations",walletAddress:"User ID",addressCopied:"Copied!",logout:"Log Out",creditsExpiringIn:"Expiring in {days} days",creditsValueNote:"(1 Credit = 1 MANA in value)"};function Ke(){const o=j.get("MARKETPLACE_URL"),n=j.get("BUILDER_URL"),a=j.get("EVENTS_URL"),h=j.get("CREATE_URL"),f=j.get("BLOG_URL"),m=j.get("MARKETPLACE_NAMES_URL"),L=j.get("MARKETPLACE_LANDS_URL");return{whatsOn:{label:"whatsOn",url:a},shop:{label:"shop",items:[{label:"shopAll",url:o},{label:"wearables",url:`${o}/browse?assetType=item§ion=wearables&status=on_sale`},{label:"emotes",url:`${o}/browse?assetType=item§ion=emotes&status=on_sale`},{label:"names",url:m},{label:"land",url:L},{label:"merch",url:"https://store.decentraland.org/",isExternal:!0}]},create:{label:"create",items:[{label:"createInDecentraland",url:h},{label:"publishWearablesEmotes",url:`${n}/collections`},{label:"publishLand",url:`${n}/land`}]},learn:{label:"learn",url:f}}}let J=null;function be(){return J||(J=Ke()),J}let Q=null;function Ye(){return Q||(Q=[{label:"viewProfile",url:j.get("PROFILE_URL"),icon:"account"},{label:"myAssets",url:j.get("MARKETPLACE_MY_ASSETS_URL"),icon:"wearable"},{label:"accountSettings",url:j.get("ACCOUNT_URL"),icon:"settings"},{label:"marketplaceAuthorizations",url:j.get("MARKETPLACE_SETTINGS_URL"),icon:"shopping"}]),Q}const me=["shop","create"],we="Inter, Helvetica, Arial, sans-serif",S="@media (max-width: 991px)",x="@media (min-width: 992px)",Xe={navbar:1100},qe="0px 1.333px 24px rgba(0,0,0,0.12), 0px 8px 13.333px rgba(0,0,0,0.14), 0px 4px 6.667px rgba(0,0,0,0.2)",P="rgba(38, 38, 38, 0.8)",ve="0.5px solid #5E5B67",G="0 2px 20px 16px rgba(0, 0, 0, 0.25)",E="blur(12.5px)",je=oe({"0%":{opacity:1},"50%":{opacity:.5},"100%":{opacity:1}}),K=oe({from:{opacity:0},to:{opacity:1}}),Je=oe({"0%, 100%":{transform:"rotate(0deg)"},"25%":{transform:"rotate(8deg)"},"50%":{transform:"rotate(-8deg)"},"75%":{transform:"rotate(4deg)"}}),Qe=t("nav")({position:"fixed",top:0,left:0,right:0,zIndex:Xe.navbar,fontFamily:we,display:"flex",alignItems:"center",justifyContent:"space-between",boxSizing:"border-box","&::before":{content:'""',position:"absolute",top:0,left:0,right:0,bottom:0,zIndex:-1,background:"rgba(22, 21, 24, 0.75)",boxShadow:qe,backdropFilter:"saturate(1.8) blur(20px)",WebkitBackdropFilter:"saturate(1.8) blur(20px)",transition:"background 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease"},[S]:{height:64,padding:"12px 16px"},[x]:{height:92,padding:"16px 54px","&::before":{background:"rgba(22, 21, 24, 0.4)"}}}),e1=t("div")({display:"flex",alignItems:"center",[S]:{gap:12},[x]:{gap:48},"& .mobile-only":{display:"flex",[x]:{display:"none"}},"& .desktop-only":{display:"none",[x]:{display:"flex"}}}),t1=t("div")({display:"flex",alignItems:"center",gap:16,[x]:{gap:48}}),o1=t("div")({display:"flex",alignItems:"center",gap:12,[x]:{gap:24}}),n1=t("a")({display:"flex",alignItems:"center",flexShrink:0,width:40,height:40,"& svg":{width:"100%",height:"100%"}}),i1=t("button")({all:"unset",display:"flex",alignItems:"center",justifyContent:"center",width:40,height:40,backgroundColor:"rgba(255, 255, 255, 0.1)",borderRadius:8,color:s.white,cursor:"pointer",flexShrink:0,transition:"background-color 0.15s ease","&:hover":{backgroundColor:"rgba(255, 255, 255, 0.15)"},"&:active":{backgroundColor:"rgba(255, 255, 255, 0.2)"},"&:focus-visible":{outline:`2px solid ${C.primary}`,outlineOffset:2},[x]:{display:"none"}}),r1=t("button")({all:"unset",boxSizing:"border-box",display:"flex",alignItems:"center",justifyContent:"center",padding:"8px 22px",border:`1px solid ${s.softWhite}`,borderRadius:6,fontFamily:we,fontWeight:600,fontSize:15,lineHeight:"24px",letterSpacing:.46,textTransform:"uppercase",color:s.softWhite,cursor:"pointer",whiteSpace:"nowrap",transition:"background-color 0.15s ease, border-color 0.15s ease","&:hover":{backgroundColor:"rgba(255, 255, 255, 0.08)",borderColor:"rgba(255, 255, 255, 0.7)"},"&:active":{backgroundColor:"rgba(255, 255, 255, 0.12)"},"&:disabled":{opacity:.5,pointerEvents:"none"},"&:focus-visible":{outline:`2px solid ${C.primary}`,outlineOffset:2}}),s1=t("div")(({open:o})=>({position:"fixed",top:64,left:0,right:0,bottom:0,zIndex:1099,pointerEvents:o?"auto":"none",backgroundColor:o?"rgba(0, 0, 0, 0.3)":"transparent",transition:"background-color 0.25s ease",[x]:{display:"none"}})),l1=t("div")(({open:o})=>({position:"fixed",top:64,left:0,right:0,zIndex:1100,maxHeight:o?"calc(100vh - 64px)":0,overflowY:"auto",background:P,backdropFilter:E,WebkitBackdropFilter:E,boxShadow:o?G:"none",padding:o?12:"0 12px",transition:"max-height 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease",[x]:{display:"none"}})),ee=t("div")({borderBottom:"0.5px solid rgba(255, 255, 255, 0.1)"}),le=t("a")({display:"flex",alignItems:"center",padding:"24px 16px",fontFamily:"Inter, Helvetica, Arial, sans-serif",fontWeight:600,fontSize:16,lineHeight:1.75,color:s.white,textDecoration:"none","&:hover":{color:s.gray5},"&:focus-visible":{outline:`2px solid ${C.primary}`,outlineOffset:-2}}),a1=t("button")({all:"unset",display:"flex",alignItems:"center",justifyContent:"space-between",width:"100%",padding:"24px 16px",boxSizing:"border-box",fontFamily:"Inter, Helvetica, Arial, sans-serif",fontWeight:600,fontSize:16,lineHeight:1.75,color:s.white,cursor:"pointer","&:hover":{color:s.gray5},"&:focus-visible":{outline:`2px solid ${C.primary}`,outlineOffset:-2},"& svg":{width:20,height:20,flexShrink:0,transition:"transform 0.2s ease"}}),d1=t("div")(({open:o})=>({maxHeight:o?500:0,overflow:"hidden",transition:"max-height 0.25s ease"})),c1=t("a")({display:"flex",alignItems:"center",justifyContent:"space-between",gap:8,padding:"12px 16px",fontFamily:"Inter, Helvetica, Arial, sans-serif",fontWeight:400,fontSize:16,color:s.gray4,textDecoration:"none","&:hover":{color:s.white},"&:focus-visible":{outline:`2px solid ${C.primary}`,outlineOffset:-2},"& svg":{width:16,height:16,flexShrink:0,opacity:.6}}),ye=i.memo(function({open:n,onClose:a,i18n:h}){const f=be(),[m,L]=i.useState(null),l=i.useCallback(u=>{L(d=>d===u?null:u)},[]);return e.jsxs(e.Fragment,{children:[e.jsx(s1,{open:n,onClick:a}),e.jsxs(l1,{open:n,role:"navigation","aria-label":"Mobile navigation",children:[e.jsx(ee,{children:e.jsx(le,{href:f.whatsOn.url,children:h[f.whatsOn.label]})}),me.map(u=>{var c;const d=f[u],g=m===u;return e.jsxs(ee,{children:[e.jsxs(a1,{onClick:()=>l(u),"aria-expanded":g,children:[h[d.label],g?e.jsx(Re,{}):e.jsx(ne,{})]}),e.jsx(d1,{open:g,children:(c=d.items)==null?void 0:c.map(p=>e.jsxs(c1,{href:p.url,target:p.isExternal?"_blank":void 0,rel:p.isExternal?"noopener noreferrer":void 0,children:[h[p.label],p.isExternal&&e.jsx(ge,{})]},p.label))})]},u)}),e.jsx(ee,{children:e.jsx(le,{href:f.learn.url,children:h[f.learn.label]})})]})]})});ye.displayName="MobileMenu";const p1=t("div")({display:"none",[x]:{display:"flex",alignItems:"center",gap:24}}),h1=t("button")({all:"unset",display:"flex",alignItems:"center",gap:4,padding:"8px 24px",fontFamily:"Inter, Helvetica, Arial, sans-serif",fontWeight:400,fontSize:16,color:s.gray5,cursor:"pointer",borderRadius:8,whiteSpace:"nowrap",transition:"background-color 0.15s ease, color 0.15s ease","&:hover":{color:s.white,backgroundColor:"rgba(255, 255, 255, 0.08)",textShadow:"0 0 0.5px currentColor, 0 0 0.5px currentColor"},"&.active":{color:s.white,textShadow:"0 0 0.5px currentColor, 0 0 0.5px currentColor"},"&:focus-visible":{outline:`2px solid ${C.primary}`,outlineOffset:2},"& svg":{width:20,height:20,transition:"transform 0.2s ease",flexShrink:0}}),ae=t("a")({all:"unset",display:"flex",alignItems:"center",gap:4,padding:"8px 24px",fontFamily:"Inter, Helvetica, Arial, sans-serif",fontWeight:400,fontSize:16,color:s.gray5,cursor:"pointer",borderRadius:8,whiteSpace:"nowrap",transition:"background-color 0.15s ease, color 0.15s ease","&:hover":{color:s.white,backgroundColor:"rgba(255, 255, 255, 0.08)",textShadow:"0 0 0.5px currentColor, 0 0 0.5px currentColor"},"&.active":{color:s.white,textShadow:"0 0 0.5px currentColor, 0 0 0.5px currentColor"},"&:focus-visible":{outline:`2px solid ${C.primary}`,outlineOffset:2}}),u1=t(h1)({paddingRight:16}),f1=t("div")({position:"relative",paddingBottom:8,marginBottom:-8,cursor:"pointer"}),x1=t("div")({position:"absolute",top:"100%",left:0,marginTop:2,minWidth:220,background:P,backdropFilter:E,WebkitBackdropFilter:E,border:ve,borderRadius:12,boxShadow:G,padding:12,animation:`${K} 0.15s ease forwards`}),g1=t("a")({display:"flex",alignItems:"center",justifyContent:"space-between",gap:8,padding:"8px 16px",fontFamily:"Inter, Helvetica, Arial, sans-serif",fontWeight:400,fontSize:16,color:s.gray4,textDecoration:"none",borderRadius:12,whiteSpace:"nowrap",transition:"background-color 0.15s ease, color 0.15s ease","&:hover":{backgroundColor:"rgba(255, 255, 255, 0.06)",color:s.white},"&:focus-visible":{outline:`2px solid ${C.primary}`,outlineOffset:-2},"& svg":{width:16,height:16,flexShrink:0,opacity:.6}}),ke=i.memo(function({desktopDropdown:n,onOpenDropdown:a,onScheduleCloseDropdown:h,activePage:f,i18n:m}){const L=be();return e.jsxs(p1,{children:[e.jsx(ae,{href:L.whatsOn.url,className:f==="whatsOn"?"active":void 0,children:m[L.whatsOn.label]}),me.map(l=>{var u;return e.jsxs(f1,{onMouseEnter:()=>a(l),onMouseLeave:h,children:[e.jsxs(u1,{className:f===l?"active":void 0,"aria-expanded":n===l,"aria-haspopup":"true",onClick:()=>{var g;const d=(g=L[l].items)==null?void 0:g[0];d&&window.open(d.url,"_self")},children:[m[L[l].label],e.jsx(ne,{style:{transform:n===l?"rotate(180deg)":"rotate(0deg)",transition:"transform 0.25s ease"}})]}),n===l&&e.jsx(x1,{children:(u=L[l].items)==null?void 0:u.map(d=>e.jsxs(g1,{href:d.url,target:d.isExternal?"_blank":void 0,rel:d.isExternal?"noopener noreferrer":void 0,children:[m[d.label],d.isExternal&&e.jsx(ge,{})]},d.label))})]},l)}),e.jsx(ae,{href:L.learn.url,className:f==="learn"?"active":void 0,children:m[L.learn.label]})]})});ke.displayName="NavLinks";const C1=t("button")({all:"unset",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",flexShrink:0,borderRadius:100,backgroundColor:"#FF4BED",border:"2px solid rgba(255, 255, 255, 0.5)",overflow:"hidden",[S]:{width:40,height:40},[x]:{width:48,height:48},"&:focus-visible":{outline:`2px solid ${C.primary}`,outlineOffset:2},"&.loading":{animation:`${je} 1.5s ease-in-out infinite`}}),L1=t("img")({borderRadius:100,objectFit:"cover",width:"100%",height:"100%"}),b1=t("div")({position:"relative"}),m1=t("div")({position:"fixed",top:92,right:54,zIndex:1201,background:P,backdropFilter:E,WebkitBackdropFilter:E,border:ve,borderRadius:12,boxShadow:G,display:"none",padding:12,gap:24,animation:`${K} 0.15s ease forwards`,minWidth:484,[x]:{display:"flex"}}),w1=t("div")({width:151,minHeight:240,borderRadius:12,border:"0.5px solid #c640cd",background:"linear-gradient(180deg, rgba(198, 64, 205, 0.2) 0%, rgba(105, 31, 169, 0.2) 100%)",display:"flex",alignItems:"center",justifyContent:"center",overflow:"hidden",flexShrink:0}),v1=t("img")({width:"100%",height:"auto",objectFit:"contain",objectPosition:"center"}),de=t("div")({display:"flex",flexDirection:"column",paddingRight:12,paddingTop:4,paddingBottom:4,flex:1,minWidth:0,[S]:{gap:12}}),j1=t("span")({fontFamily:"Inter, Helvetica, Arial, sans-serif",fontWeight:600,fontSize:20,color:s.softWhite,marginBottom:4,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}),y1=t("span")({fontFamily:"Inter, Helvetica, Arial, sans-serif",fontWeight:400,fontSize:14,color:s.gray4}),k1=t("div")({display:"flex",alignItems:"center",gap:8,fontFamily:"Inter, Helvetica, Arial, sans-serif",fontWeight:400,fontSize:14,color:s.softWhite,lineHeight:1.75}),M1=t("button")({all:"unset",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",color:s.softWhite,opacity:.7,transition:"opacity 0.15s ease","&:hover":{opacity:1}}),I1=t("a")({display:"flex",alignItems:"center",gap:12,padding:"8px 16px",borderRadius:12,fontFamily:"Inter, Helvetica, Arial, sans-serif",fontWeight:400,fontSize:16,lineHeight:1.75,color:s.gray4,textDecoration:"none",whiteSpace:"nowrap",cursor:"pointer",transition:"color 0.15s ease, background-color 0.15s ease","&:hover":{color:s.white,backgroundColor:"rgba(255, 255, 255, 0.05)"},"&:focus-visible":{outline:`2px solid ${C.primary}`,outlineOffset:2},"& svg":{width:20,height:20,flexShrink:0}}),te=t("div")({height:.5,backgroundColor:"rgba(255, 255, 255, 0.1)",margin:"8px 0"}),S1=t("button")({all:"unset",display:"flex",alignItems:"center",gap:12,padding:"12px 16px",borderRadius:12,fontFamily:"Inter, Helvetica, Arial, sans-serif",fontWeight:400,fontSize:16,lineHeight:1.75,color:s.gray4,cursor:"pointer",whiteSpace:"nowrap",transition:"color 0.15s ease","&:hover":{color:C.primary},"&:focus-visible":{outline:`2px solid ${C.primary}`,outlineOffset:2},"& svg":{width:18,height:18}}),F1=t("button")(({selected:o})=>({all:"unset",position:"relative",display:"flex",alignItems:"center",gap:4,width:"100%",boxSizing:"border-box",padding:"4px 16px",paddingLeft:16,borderRadius:4,fontFamily:"Inter, Helvetica, Arial, sans-serif",fontSize:12,fontWeight:400,letterSpacing:.46,textTransform:"uppercase",color:"white",cursor:"pointer",transition:"background-color 0.15s ease, color 0.15s ease",background:o?"rgba(255, 255, 255, 0.2)":"transparent","&:hover":{background:o?"rgba(255, 255, 255, 0.2)":"rgba(255, 255, 255, 0.1)"},"& svg":{width:16,height:16,flexShrink:0},...o?{"&::before":{content:'""',position:"absolute",left:4,top:"50%",transform:"translateY(-50%)",width:8,height:8,borderRadius:4,backgroundColor:"#34CE77"}}:{}})),A1=t("div")({position:"fixed",top:64,left:0,right:0,zIndex:1201,background:P,backdropFilter:E,WebkitBackdropFilter:E,boxShadow:G,padding:"24px 12px",animation:`${K} 0.15s ease forwards`,[x]:{display:"none"}}),E1=t("div")({display:"flex",alignItems:"center",gap:12,paddingBottom:8}),R1=t("div")({width:73,height:73,borderRadius:100,border:"3px solid rgba(255, 255, 255, 0.5)",backgroundColor:"#FF4BED",overflow:"hidden",flexShrink:0,"&.loading":{animation:`${je} 1.5s ease-in-out infinite`}}),H1=t("div")({display:"flex",flexDirection:"column",gap:2,minWidth:0}),W1=t("span")({fontFamily:"Inter, Helvetica, Arial, sans-serif",fontWeight:600,fontSize:20,color:s.softWhite,marginBottom:4,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}),U1=t("span")({fontFamily:"Inter, Helvetica, Arial, sans-serif",fontWeight:400,fontSize:14,color:s.gray4}),B1=t("div")({display:"flex",alignItems:"center",gap:6,fontFamily:"Inter, Helvetica, Arial, sans-serif",fontWeight:400,fontSize:14,color:s.softWhite,lineHeight:1.75}),_1=t("button")({all:"unset",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",color:s.softWhite,transition:"opacity 0.15s ease","&:hover":{opacity:.7},"& svg":{width:20,height:20}}),D1=t("div")({position:"absolute",top:"calc(100% + 4px)",left:0,minWidth:150,display:"flex",flexDirection:"column",gap:2,padding:4,background:s.gray0,backdropFilter:"blur(12.5px)",WebkitBackdropFilter:"blur(12.5px)",border:"0.5px solid #5E5B67",borderRadius:8,boxShadow:"0 2px 20px rgba(0, 0, 0, 0.25)",zIndex:10}),N1=t("div")({display:"flex",alignItems:"center",flexWrap:"wrap",gap:"12px 24px",paddingTop:8,width:"100%"}),O1=t("div")({display:"flex",alignItems:"center",gap:6}),ce=t("div")(({clickable:o})=>({display:"flex",alignItems:"center",gap:2,cursor:o?"pointer":"default",color:"white"})),pe=t("span")({fontFamily:"Inter, sans-serif",fontWeight:600,fontSize:16,letterSpacing:-.8,whiteSpace:"nowrap"}),Z1=t("div")({position:"relative"}),V1=t("div")({display:"flex",alignItems:"center",gap:8,width:150,padding:"4px 4px 4px 8px",backgroundColor:s.gray0,borderRadius:8,cursor:"pointer",whiteSpace:"nowrap",boxSizing:"border-box"}),T1=t("div")({width:16,height:16,display:"flex",flexShrink:0}),z1=t("span")({fontFamily:"Inter, sans-serif",fontWeight:600,fontSize:15,lineHeight:"24px",letterSpacing:.46,textTransform:"uppercase",color:"white",flex:1}),$1={account:We,wearable:Ue,settings:Be,shopping:_e},P1="https://peer.decentraland.org/content/contents/";function he(o){if(o){if(o.startsWith("http://")||o.startsWith("https://")||o.startsWith("data:"))return o;if(/^[a-zA-Z0-9]+$/.test(o))return`${P1}${o}`}}const G1={1:"Ethereum",11155111:"Sepolia",137:"Polygon",80002:"Amoy",56:"BSC",43114:"Avalanche",42161:"Arbitrum",10:"Optimism",250:"Fantom"};function ue(o){return G1[o]??`Chain ${o}`}const Me=i.memo(function({isLoadingProfile:n,address:a,avatar:h,userCardOpen:f,onToggleUserCard:m,onClickSignOut:L,selectedChain:l,chains:u,onSelectChain:d,manaBalances:g,onClickBalance:c,i18n:p}){var T,M,z,I;const v=he((M=(T=h==null?void 0:h.avatar)==null?void 0:T.snapshots)==null?void 0:M.face256),[R,Y]=i.useState(),[X,H]=i.useState(!1);i.useEffect(()=>{H(!1)},[v]);const q=v?R===v:!1,D=he((I=(z=h==null?void 0:h.avatar)==null?void 0:z.snapshots)==null?void 0:I.body),w=(h==null?void 0:h.name)||(a?`${a.slice(0,6)}...${a.slice(-4)}`:""),y=a?`${a.slice(0,6)}...${a.slice(-4)}`:"",[W,N]=i.useState(!1),[k,O]=i.useState(!1),F=i.useCallback(()=>{a&&navigator.clipboard.writeText(a).then(()=>{N(!0),setTimeout(()=>N(!1),2e3)}).catch(()=>{})},[a]),_=i.useCallback(r=>{r!==l&&(d==null||d(r)),O(!1)},[l,d]),U=l!==void 0&&u&&u.length>0||g&&Object.keys(g).length>0,Z=()=>U?e.jsxs(N1,{children:[g&&e.jsxs(O1,{children:[g.ETHEREUM!==void 0&&e.jsxs(ce,{clickable:!!c,onClick:()=>c==null?void 0:c($.Network.ETHEREUM),children:[e.jsx(Ce,{}),e.jsx(pe,{children:A(g.ETHEREUM)})]}),g.MATIC!==void 0&&e.jsxs(ce,{clickable:!!c,onClick:()=>c==null?void 0:c($.Network.MATIC),children:[e.jsx(Le,{}),e.jsx(pe,{children:A(g.MATIC)})]})]}),l!==void 0&&u&&u.length>0&&e.jsxs(Z1,{children:[e.jsxs(V1,{onClick:()=>O(r=>!r),children:[e.jsx(T1,{children:e.jsx(se,{chainId:l})}),e.jsx(z1,{children:ue(l)}),e.jsx(ne,{style:{width:20,height:20,flexShrink:0,color:"white",transform:k?"rotate(180deg)":"rotate(0deg)",transition:"transform 0.25s ease"}})]}),k&&e.jsx(D1,{role:"listbox","aria-label":"Select chain",children:u.map(r=>{const b=r===l;return e.jsxs(F1,{selected:b,role:"option","aria-selected":b,onClick:()=>_(r),children:[e.jsx(se,{chainId:r}),ue(r)]},r)})})]})]}):null,B=()=>!v||X?e.jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",width:"100%",height:"100%",padding:6},children:e.jsx(xe,{style:{width:"100%",height:"100%"}})}):e.jsx(L1,{src:v,alt:"",onLoad:()=>Y(v),onError:()=>H(!0),style:{opacity:q?1:0}}),V=()=>e.jsxs(e.Fragment,{children:[Ye().map(r=>{const b=$1[r.icon];return e.jsxs(I1,{href:r.url,children:[b&&e.jsx(b,{}),p[r.label]]},r.label)}),e.jsx(te,{}),e.jsxs(S1,{onClick:L,children:[e.jsx(He,{}),p.logout]})]});return e.jsxs(e.Fragment,{children:[e.jsxs(b1,{children:[e.jsx(C1,{onClick:m,"aria-label":"User menu","aria-expanded":f,"aria-haspopup":"true",className:n?"loading":void 0,children:!n&&B()}),f&&e.jsxs(m1,{onClick:r=>r.stopPropagation(),children:[e.jsx(w1,{children:D?e.jsx(v1,{src:D,alt:""}):null}),e.jsxs(de,{children:[e.jsxs("div",{style:{paddingLeft:16,paddingBottom:8,display:"flex",flexDirection:"column",gap:4},children:[e.jsx(j1,{title:w,children:w}),e.jsxs("div",{style:{display:"flex",flexDirection:"column"},children:[e.jsx(y1,{children:p.walletAddress}),e.jsxs(k1,{children:[W?p.addressCopied:y,e.jsx(M1,{onClick:F,"aria-label":"Copy address",children:e.jsx(ie,{})})]})]}),Z()]}),e.jsx(te,{}),V()]})]})]}),f&&e.jsxs(A1,{"data-mobile-user-card":!0,onClick:r=>r.stopPropagation(),children:[e.jsxs(E1,{children:[e.jsx(R1,{className:n?"loading":void 0,children:!n&&B()}),e.jsxs(H1,{children:[e.jsx(W1,{title:w,children:w}),e.jsx(U1,{children:p.walletAddress}),e.jsxs(B1,{children:[W?p.addressCopied:y,e.jsx(_1,{onClick:F,"aria-label":"Copy address",children:e.jsx(ie,{})})]}),Z()]})]}),e.jsx(te,{}),e.jsx(de,{children:V()})]})]})});Me.displayName="UserCardPanel";const K1=Se.memo(o=>e.jsx(Fe,{...o,children:e.jsxs("svg",{width:"256",height:"256",viewBox:"0 0 256 256",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("path",{d:"M25.5371 184.328C16.718 180.685 12.5221 170.582 16.1653 161.763L29.8558 128.622L16.1025 95.5076C12.4426 86.6954 16.6194 76.5848 25.4316 72.9248L58.5462 59.1716L72.2367 26.0312C75.8799 17.212 85.9827 13.0162 94.8018 16.6594L127.942 30.3498L161.057 16.5966C169.869 12.9367 179.98 17.1135 183.639 25.9257L197.393 59.0402L230.533 72.7308C239.352 76.374 243.548 86.4767 239.905 95.2958L226.215 128.436L239.968 161.551C243.628 170.363 239.451 180.474 230.639 184.134L197.524 197.887L183.834 231.027C180.19 239.846 170.088 244.042 161.269 240.399L128.128 226.709L95.0135 240.462C86.2013 244.122 76.0907 239.945 72.4307 231.133L58.6775 198.018L25.5371 184.328Z",fill:"url(#paint0_linear_1048_15924)"}),e.jsx("path",{d:"M39.4715 176.904C31.9127 173.782 28.3165 165.123 31.439 157.564L43.173 129.16L31.3852 100.777C28.2483 93.2245 31.8282 84.5587 39.3811 81.4219L67.7634 69.634L79.4974 41.2296C82.62 33.6708 91.279 30.0746 98.8377 33.1971L127.242 44.9312L155.624 33.1434C163.177 30.0065 171.843 33.5863 174.98 41.1392L186.768 69.5215L215.172 81.2555C222.731 84.3781 226.327 93.0371 223.205 100.596L211.471 129L223.258 157.383C226.395 164.935 222.815 173.601 215.262 176.738L186.88 188.526L175.146 216.93C172.024 224.489 163.365 228.085 155.806 224.963L127.401 213.229L99.0192 225.017C91.4664 228.153 82.8006 224.574 79.6637 217.021L67.8759 188.638L39.4715 176.904Z",fill:"url(#paint1_linear_1048_15924)"}),e.jsx("path",{d:"M54.4478 168.591C48.116 165.975 45.1036 158.722 47.7192 152.39L57.5484 128.596L47.6741 104.822C45.0465 98.4947 48.0452 91.2357 54.372 88.6081L78.147 78.7338L87.9762 54.9403C90.5919 48.6086 97.8452 45.5961 104.177 48.2118L127.97 58.041L151.745 48.1667C158.072 45.539 165.331 48.5378 167.959 54.8646L177.833 78.6395L201.627 88.4687C207.958 91.0844 210.971 98.3377 208.355 104.669L198.526 128.463L208.4 152.238C211.028 158.565 208.029 165.824 201.702 168.451L177.927 178.326L168.098 202.119C165.483 208.451 158.229 211.463 151.897 208.848L128.104 199.018L104.329 208.893C98.0022 211.52 90.7432 208.522 88.1155 202.195L78.2413 178.42L54.4478 168.591Z",fill:"url(#paint2_linear_1048_15924)"}),e.jsx("path",{d:"M62.1592 164.392C56.491 162.05 53.7942 155.557 56.1357 149.889L64.9349 128.589L56.0954 107.305C53.7431 101.641 56.4276 95.1432 62.0914 92.7908L83.3749 83.9513L92.1741 62.6512C94.5157 56.983 101.009 54.2862 106.677 56.6278L127.977 65.4269L149.261 56.5874C154.925 54.2351 161.423 56.9196 163.775 62.5834L172.615 83.8669L193.915 92.6661C199.583 95.0077 202.28 101.501 199.938 107.169L191.139 128.469L199.979 149.753C202.331 155.417 199.646 161.915 193.983 164.267L172.699 173.107L163.9 194.407C161.558 200.075 155.065 202.772 149.397 200.43L128.097 191.631L106.813 200.471C101.149 202.823 94.6511 200.138 92.2988 194.475L83.4593 173.191L62.1592 164.392Z",fill:"url(#paint3_linear_1048_15924)"}),e.jsx("path",{d:"M62.1592 164.392C56.491 162.05 53.7942 155.557 56.1357 149.889L64.9349 128.589L56.0954 107.305C53.7431 101.641 56.4276 95.1432 62.0914 92.7908L83.3749 83.9513L92.1741 62.6512C94.5157 56.983 101.009 54.2862 106.677 56.6278L127.977 65.4269L149.261 56.5874C154.925 54.2351 161.423 56.9196 163.775 62.5834L172.615 83.8669L193.915 92.6661C199.583 95.0077 202.28 101.501 199.938 107.169L191.139 128.469L199.979 149.753C202.331 155.417 199.646 161.915 193.983 164.267L172.699 173.107L163.9 194.407C161.558 200.075 155.065 202.772 149.397 200.43L128.097 191.631L106.813 200.471C101.149 202.823 94.6511 200.138 92.2988 194.475L83.4593 173.191L62.1592 164.392Z",fill:"url(#paint4_linear_1048_15924)"}),e.jsx("ellipse",{cx:"71.8039",cy:"43.6779",rx:"4.2556",ry:"4.37564",transform:"rotate(29.3032 71.8039 43.6779)",fill:"white"}),e.jsx("ellipse",{cx:"79.7278",cy:"28.2715",rx:"4.80667",ry:"9.80885",transform:"rotate(29.3032 79.7278 28.2715)",fill:"white"}),e.jsx("path",{opacity:"0.8",fillRule:"evenodd",clipRule:"evenodd",d:"M151.392 93.1941L151.381 92.0695C151.252 79.4163 140.711 69.2321 127.796 69.3636C114.88 69.4951 104.549 79.8919 104.678 92.545L104.689 93.6697L96.1087 93.757C93.0489 93.7882 90.5044 96.0762 90.2087 99.0624L83.3993 167.822C83.0553 171.295 85.8595 174.293 89.4189 174.257L168.873 173.448C172.441 173.411 175.187 170.342 174.757 166.868L166.271 98.265C165.904 95.2956 163.318 93.0727 160.267 93.1037L151.392 93.1941ZM138.208 92.2036C138.152 86.6465 133.53 82.2212 127.927 82.2783C122.324 82.3353 117.794 86.8538 117.85 92.4109L117.862 93.5355L138.22 93.3282L138.208 92.2036ZM151.506 104.348L151.578 111.392C151.614 114.958 148.694 117.879 145.057 117.917C141.419 117.954 138.441 115.093 138.405 111.526L138.333 104.482L117.975 104.689L118.047 111.734C118.083 115.3 115.164 118.221 111.527 118.258C107.889 118.295 104.911 115.434 104.875 111.868L104.803 104.823L101.064 104.861L95.3026 163.042L162.738 162.356L155.557 104.306L151.506 104.348Z",fill:"url(#paint5_linear_1048_15924)"}),e.jsxs("defs",{children:[e.jsxs("linearGradient",{id:"paint0_linear_1048_15924",x1:"211.108",y1:"218.484",x2:"77.4791",y2:"27.1647",gradientUnits:"userSpaceOnUse",children:[e.jsx("stop",{stopColor:"#9BFFFF"}),e.jsx("stop",{offset:"0.5",stopColor:"#B8B9FF"}),e.jsx("stop",{offset:"0.885",stopColor:"#FFCBFF"}),e.jsx("stop",{offset:"1",stopColor:"#FDFCFF"})]}),e.jsxs("linearGradient",{id:"paint1_linear_1048_15924",x1:"225.88",y1:"218.975",x2:"71.9492",y2:"33.3822",gradientUnits:"userSpaceOnUse",children:[e.jsx("stop",{stopColor:"#5285BF"}),e.jsx("stop",{offset:"1",stopColor:"#AE66F0"})]}),e.jsxs("linearGradient",{id:"paint2_linear_1048_15924",x1:"195.385",y1:"221.054",x2:"91.1662",y2:"16.6319",gradientUnits:"userSpaceOnUse",children:[e.jsx("stop",{stopColor:"#9BFFFF"}),e.jsx("stop",{offset:"0.5",stopColor:"#B8B9FF"}),e.jsx("stop",{offset:"1",stopColor:"#FFCBFF"})]}),e.jsxs("linearGradient",{id:"paint3_linear_1048_15924",x1:"103.148",y1:"42.8184",x2:"132.876",y2:"134.167",gradientUnits:"userSpaceOnUse",children:[e.jsx("stop",{stopColor:"white"}),e.jsx("stop",{offset:"1",stopColor:"white",stopOpacity:"0"})]}),e.jsxs("linearGradient",{id:"paint4_linear_1048_15924",x1:"109.14",y1:"55.9116",x2:"124.459",y2:"109.497",gradientUnits:"userSpaceOnUse",children:[e.jsx("stop",{stopColor:"white"}),e.jsx("stop",{offset:"1",stopColor:"white",stopOpacity:"0"})]}),e.jsxs("linearGradient",{id:"paint5_linear_1048_15924",x1:"129.146",y1:"173.852",x2:"128.082",y2:"69.3607",gradientUnits:"userSpaceOnUse",children:[e.jsx("stop",{stopColor:"#6141A6"}),e.jsx("stop",{offset:"1",stopColor:"#6C84FF"})]})]})]})})),Y1=t("button")({all:"unset",position:"relative",display:"flex",alignItems:"center",gap:4,cursor:"pointer",color:"#A0ABFF",fontFamily:"Inter, Helvetica, Arial, sans-serif",fontWeight:600,flexShrink:0,transition:"opacity 0.15s ease","&:hover":{opacity:.8},"&:hover .credits-tooltip":{opacity:1,pointerEvents:"auto"},"&:focus-visible":{outline:`2px solid ${C.primary}`,outlineOffset:2,borderRadius:4},"&& svg":{flexShrink:0},[S]:{fontSize:12,letterSpacing:-.6,"&& svg":{width:14,height:14}},[x]:{fontSize:16,letterSpacing:-.8,"&& svg":{width:20,height:20}}}),X1=t("div")({position:"absolute",top:"calc(100% + 4px)",left:"50%",transform:"translateX(-50%)",background:"#43404A",padding:8,borderRadius:8,boxShadow:"0 2px 8px rgba(0,0,0,0.3)",fontFamily:"Inter, Helvetica, Arial, sans-serif",fontWeight:400,fontSize:12,lineHeight:1.4,color:"#ECEBED",whiteSpace:"normal",textAlign:"center",minWidth:140,opacity:0,pointerEvents:"none",transition:"opacity 0.15s ease",zIndex:10}),q1=t("div")({display:"flex",alignItems:"center",flexShrink:0,[S]:{gap:4},[x]:{gap:12}}),fe=t("button")(({clickable:o})=>({all:"unset",display:"flex",alignItems:"center",cursor:o?"pointer":"default",color:s.softWhite,fontFamily:"Inter, Helvetica, Arial, sans-serif",fontWeight:400,flexShrink:0,transition:"opacity 0.15s ease","&:hover":o?{opacity:.8}:void 0,"&:focus-visible":{outline:`2px solid ${C.primary}`,outlineOffset:2,borderRadius:4},[S]:{gap:2,fontSize:12,letterSpacing:-.6,"& svg":{width:14,height:14,flexShrink:0}},[x]:{gap:4,fontWeight:600,fontSize:16,letterSpacing:-.8,"& svg":{width:20,height:20,flexShrink:0}}})),J1=t("div")({display:"flex",flexShrink:0,[S]:{flexDirection:"column-reverse",alignItems:"flex-end",justifyContent:"center",gap:4},[x]:{flexDirection:"row",alignItems:"center",gap:24}});function Q1(o){const n=o-Date.now();return Math.max(0,Math.ceil(n/(1e3*60*60*24)))}const et=i.memo(function({isSignedIn:n,isSigningIn:a,isLoadingProfile:h=!1,address:f,avatar:m,i18n:L,notificationSlot:l,selectedChain:u,chains:d,onSelectChain:g,manaBalances:c,onClickBalance:p,showManaBalancesInNavbar:v=!1,creditsBalance:R,onClickCredits:Y,activePage:X,onToggleUserCard:H,onClickSignIn:q,onClickSignOut:D}){const w={...Ge,...L},[y,W]=i.useState(!1),[N,k]=i.useState(null),[O,F]=i.useState(!1),_=i.useRef(null),U=i.useRef(null),Z=i.useCallback(()=>{W(r=>(r||(k(null),F(!1)),!r))},[]),B=i.useCallback(()=>{W(!1)},[]),V=i.useCallback(r=>{U.current&&(clearTimeout(U.current),U.current=null),k(r),F(!1)},[]),T=i.useCallback(()=>{U.current=setTimeout(()=>{k(null)},300)},[]),M=i.useCallback(()=>{k(null)},[]),z=i.useCallback(()=>{F(r=>{const b=!r;return b&&(k(null),W(!1)),H==null||H(b),b})},[H]),I=i.useCallback(()=>{F(!1)},[]);return i.useEffect(()=>{function r(b){const Ie=b.target;_.current&&!_.current.contains(Ie)&&(M(),I())}return document.addEventListener("mousedown",r),()=>document.removeEventListener("mousedown",r)},[M,I]),i.useEffect(()=>{const r=()=>{I(),M()};return window.addEventListener("scroll",r,{passive:!0}),()=>window.removeEventListener("scroll",r)},[I,M]),i.useEffect(()=>{function r(b){b.key==="Escape"&&(M(),I(),B())}return document.addEventListener("keydown",r),()=>document.removeEventListener("keydown",r)},[M,I,B]),i.useEffect(()=>(y?document.body.style.overflow="hidden":document.body.style.overflow="",()=>{document.body.style.overflow=""}),[y]),e.jsxs(e.Fragment,{children:[e.jsxs(Qe,{ref:_,children:[e.jsxs(e1,{children:[e.jsx(n1,{href:"https://decentraland.org","aria-label":"Decentraland Home",children:e.jsx(xe,{})}),e.jsx(ke,{desktopDropdown:N,onOpenDropdown:V,onScheduleCloseDropdown:T,activePage:X,i18n:w})]}),e.jsxs(t1,{children:[n&&e.jsxs(o1,{children:[(R||v&&c)&&e.jsxs(J1,{children:[R&&e.jsxs(Y1,{onClick:Y,"aria-label":`${A(R.balance)} credits`,children:[e.jsx(K1,{}),A(R.balance),e.jsxs(X1,{className:"credits-tooltip",children:[w.creditsExpiringIn.replace("{days}",String(Q1(R.expiresAt))),e.jsx("br",{}),w.creditsValueNote]})]}),v&&c&&e.jsxs(q1,{children:[c.ETHEREUM!==void 0&&e.jsxs(fe,{clickable:!!p,onClick:p?()=>p($.Network.ETHEREUM):void 0,"aria-label":`${A(c.ETHEREUM)} MANA on Ethereum`,children:[e.jsx(Ce,{}),A(c.ETHEREUM)]}),c.MATIC!==void 0&&e.jsxs(fe,{clickable:!!p,onClick:p?()=>p($.Network.MATIC):void 0,"aria-label":`${A(c.MATIC)} MANA on Polygon`,children:[e.jsx(Le,{}),A(c.MATIC)]})]})]}),l&&e.jsx("div",{onClick:()=>{F(!1),k(null)},children:l}),e.jsx(Me,{isLoadingProfile:h,address:f,avatar:m,userCardOpen:O,onToggleUserCard:z,onClickSignOut:D,selectedChain:u,chains:d,onSelectChain:g,manaBalances:v?void 0:c,onClickBalance:v?void 0:p,i18n:w})]}),!n&&e.jsx(r1,{onClick:q,disabled:a,children:a?w.signingIn:w.signIn}),e.jsx(i1,{onClick:Z,"aria-label":y?"Close menu":"Open menu","aria-expanded":y,children:y?e.jsx(Ee,{}):e.jsx(Ae,{})})]})]}),e.jsx(ye,{open:y,onClose:B,i18n:w})]})});et.displayName="Navbar";const at=t("button")({all:"unset",position:"relative",display:"flex",alignItems:"center",justifyContent:"center",width:24,height:24,color:s.white,cursor:"pointer",flexShrink:0,borderRadius:4,"&.has-unread":{animation:`${Je} 0.8s`,animationIterationCount:4},"&:focus-visible":{outline:`2px solid ${C.primary}`,outlineOffset:2},"& svg":{width:24,height:24}}),dt=t("span")({position:"absolute",top:-4,right:-6,minWidth:16,height:16,borderRadius:8,backgroundColor:C.primary,color:"#fff",fontSize:10,fontWeight:700,fontFamily:"Inter, Helvetica, Arial, sans-serif",display:"flex",alignItems:"center",justifyContent:"center",padding:"0 4px",lineHeight:1,pointerEvents:"none"}),ct=t("div")({position:"relative"}),pt=t("div")({position:"absolute",top:"100%",right:-12,marginTop:16,width:390,maxHeight:"70vh",zIndex:1102,background:"rgba(38, 38, 38, 0.8)",backdropFilter:"blur(12.5px)",WebkitBackdropFilter:"blur(12.5px)",border:"0.5px solid #5E5B67",borderRadius:12,boxShadow:"0 2px 20px rgba(0, 0, 0, 0.25)",display:"flex",flexDirection:"column",overflow:"hidden",paddingTop:12,paddingBottom:24,animation:`${K} 0.15s ease forwards`,[S]:{position:"fixed",top:64,left:0,right:0,width:"auto",maxHeight:"calc(100vh - 64px)",borderRadius:0}}),ht=t("div")({display:"flex",alignItems:"center",justifyContent:"space-between",padding:"0 12px 12px 24px",borderBottom:"0.5px solid #5E5B67"}),ut=t("span")({fontFamily:"Inter, Helvetica, Arial, sans-serif",fontWeight:600,fontSize:20,color:"#FCFCFC"}),ft=t("div")({display:"flex",flexDirection:"column",overflowY:"auto",flex:1}),xt=t("div")({display:"flex",alignItems:"flex-start",gap:8,padding:"8px 16px",borderRadius:8,cursor:"pointer",transition:"background-color 0.15s ease","&:hover":{backgroundColor:"rgba(255, 255, 255, 0.05)"}}),gt=t("div")({width:56,height:56,borderRadius:"50%",backgroundColor:"rgba(103, 99, 112, 0.4)",flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center",overflow:"hidden","& img, & svg":{width:48,height:48,objectFit:"cover"}}),Ct=t("div")({display:"flex",flexDirection:"column",gap:2,minWidth:0,flex:1}),Lt=t("span")({fontFamily:"Inter, Helvetica, Arial, sans-serif",fontWeight:600,fontSize:16,lineHeight:1.75,color:"#FCFCFC",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}),bt=t("span")({fontFamily:"Inter, Helvetica, Arial, sans-serif",fontWeight:400,fontSize:12,lineHeight:"20px",color:"#ECEBED",maxWidth:280,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}),mt=t("span")({fontFamily:"Inter, Helvetica, Arial, sans-serif",fontWeight:400,fontSize:12,color:"#A09BA8"}),wt=t("div")({width:8,height:8,borderRadius:4,backgroundColor:"#FF2D55",flexShrink:0,alignSelf:"center"}),vt=t("div")({display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",padding:"40px 80px",gap:8,color:s.gray3,fontFamily:"Inter, Helvetica, Arial, sans-serif",fontSize:16,textAlign:"center"});export{at as BellButton,et as Navbar,dt as NotificationBadge,wt as NotificationDot,vt as NotificationEmpty,ht as NotificationHeader,Ct as NotificationItemContent,bt as NotificationItemDescription,gt as NotificationItemImage,mt as NotificationItemTime,Lt as NotificationItemTitle,ft as NotificationList,xt as NotificationListItem,pt as NotificationPanel,ut as NotificationTitle,ct as NotificationWrapper};
|
package/assets/index-ZxkJeEpU.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{g as t}from"./react-4iaCnQ6n.js";import{r}from"./index-COjgItKg.js";var e=r();const i=t(e);export{i as E};
|