@dcl/shop 1.13.1-35585926635.commit-02c8d2e → 1.13.1-35586925336.commit-233cb74
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/_assets/{Activity-DoatD7MW.js → Activity-DVxqB4-w.js} +6 -6
- package/_assets/{AnimatedBackground-dVEk0PGp.js → AnimatedBackground-BAU1eaiK.js} +2 -2
- package/_assets/Assets-CahpwOSk.js +990 -0
- package/_assets/Cart-Bu1gA1LF.js +748 -0
- package/_assets/{Collection-CPZhq7CU.js → Collection-DxIegvZy.js} +10 -10
- package/_assets/CollectionCarousel-LKRLbXj2.js +322 -0
- package/_assets/{Confetti-Bd901H1c.js → Confetti-CWbRGatZ.js} +4 -4
- package/_assets/{ConstantsUtil-Bk0e9ERj.js → ConstantsUtil-DlwAB-hw.js} +2 -2
- package/_assets/{ContentClient-CWtagBtE.js → ContentClient-IJMk6mG2.js} +2 -2
- package/_assets/{Creator-pBuqm0Cj.js → Creator-D1SDrih3.js} +16 -16
- package/_assets/{CreditPackPicker-COb2KClL.js → CreditPackPicker-DaeRrtlY.js} +67 -67
- package/_assets/{DeploymentBuilder-Dg-EXfAY.js → DeploymentBuilder-DYXWwzjB.js} +2 -2
- package/_assets/{EmotePlaybackBar-DyYs6qdM.js → EmotePlaybackBar-D-ONNk1C.js} +19 -19
- package/_assets/{ErrorNotice-Cm0KaFyV.js → ErrorNotice-BkbFM8dT.js} +2 -2
- package/_assets/Event-Dip8xJQm.js +72 -0
- package/_assets/{ExchangeController-BzBrR3ZT.js → ExchangeController-CY2Mkdv_.js} +2 -2
- package/_assets/{Faq-D2noxWN_.js → Faq-CG1zpRo3.js} +2 -2
- package/_assets/{Filters-Dw8HD8Ma.js → Filters-CLt9wRFa.js} +9 -9
- package/_assets/{GetCredits-BmFWdIGx.js → GetCredits-Ltt32bvt.js} +2 -2
- package/_assets/{Grow-BiGjBqEo.js → Grow-B2O8rLT0.js} +2 -2
- package/_assets/{HelpersUtil-DQga4Ywl.js → HelpersUtil-DhziSA6e.js} +2 -2
- package/_assets/ItemDetail-C2f1Vg-F.js +3411 -0
- package/_assets/{LoadMore-i7_riiE5.js → LoadMore-DAb4YgwL.js} +2 -2
- package/_assets/{ManaPricingBanner.styles-Dyx_YmBW.js → ManaPricingBanner.styles-Dbv27Wt0.js} +2 -2
- package/_assets/{MyAssets-Bs1a3OD9.js → MyAssets-7R4b2x-k.js} +8 -8
- package/_assets/{MyFavorites-C03JcdtN.js → MyFavorites-B5yVWMXr.js} +3 -3
- package/_assets/{MyStore-ryCuwvDl.js → MyStore-B6rTuULM.js} +7 -7
- package/_assets/{NetworkUtil-BbMBxyRo.js → NetworkUtil-BqrmZA43.js} +2 -2
- package/_assets/{NotFound-DOO8Ql2w.js → NotFound-CMFpOJuv.js} +2 -2
- package/_assets/{NotificationsBell-VR9lnc9P.js → NotificationsBell-HnLhk_AZ.js} +13 -13
- package/_assets/{OutfitDetail-Co1A4WCO.js → OutfitDetail-B2q4LZzo.js} +2 -2
- package/_assets/OutfitPreview-C6pQxlWV.js +7 -0
- package/_assets/{OutfitStudio-DGibRraW.js → OutfitStudio-DrFPqmU2.js} +10 -10
- package/_assets/PaymentMethodStep-DUz3lI2L.js +370 -0
- package/_assets/{SaleCountdown-NdYuBnTu.js → SaleCountdown-DL2l2eox.js} +2 -2
- package/_assets/{Spinner-B5rI43ql.js → Spinner-p5xyOyv6.js} +2 -2
- package/_assets/{StoreSettings-C2dwtV13.js → StoreSettings-DlH-LWgC.js} +9 -9
- package/_assets/{Success-B6gpri2D.js → Success-COZnRHOB.js} +2 -2
- package/_assets/{SwapController-Di8HGSG3.js → SwapController-DbHaJ33O.js} +2 -2
- package/_assets/{Tooltip-Bj-rfWuS.js → Tooltip-BdEQabCf.js} +2 -2
- package/_assets/{TradeService-D2dJeuos.js → TradeService-D9VfnmSM.js} +2 -2
- package/_assets/{W3MFrameProviderSingleton-DwbyBYX9.js → W3MFrameProviderSingleton-B54cFMgI.js} +4 -4
- package/_assets/{WebCryptoP256-CZzgSMZW.js → WebCryptoP256-CSjbPn36.js} +2 -2
- package/_assets/{basic-C0ccxPdk.js → basic-Dr30zMiU.js} +2 -2
- package/_assets/{biconomy-DGsEEV8A.js → biconomy-w807G5l6.js} +2 -2
- package/_assets/{browseLayout.styles-Dg021Y7v.js → browseLayout.styles-N7eMFwtu.js} +2 -2
- package/_assets/{browser-D3mkrR6N.js → browser-Brru-P-a.js} +2 -2
- package/_assets/{browser-DfAY1k2K.js → browser-CBnBoWU2.js} +2 -2
- package/_assets/{browser-ponyfill-C5RB02M7.js → browser-ponyfill-DKIVrYKb.js} +2 -2
- package/_assets/{buy-Da1E8jgj.js → buy-JkmVuuuT.js} +2 -2
- package/_assets/{buy-gasless-CaUM9sxG.js → buy-gasless-wjbNv7iT.js} +2 -2
- package/_assets/cart-checkout-OIIxJ8qp.js +2 -0
- package/_assets/{categories-DeCaTWZU.js → categories-DLTQlZ7m.js} +2 -2
- package/_assets/{ccip-CIPTk6YK.js → ccip-C03Ik4um.js} +2 -2
- package/_assets/{ccip-CIKPg0_h.js → ccip-CXLmm-JE.js} +2 -2
- package/_assets/{chains-CWGwszpJ.js → chains-CWyHmudW.js} +2 -2
- package/_assets/collectionPage.styles-Ch4x5hNg.js +41 -0
- package/_assets/{common-DamPx7zD.js → common-BaczUG05.js} +2 -2
- package/_assets/{controller-J7h5zgkf.js → controller-C5zIKFqD.js} +3 -3
- package/_assets/{core-BILweyMC.js → core-Bduse_Og.js} +5 -5
- package/_assets/{createSvgIcon-BOJMqAuj.js → createSvgIcon-Cbj-qvcu.js} +4 -4
- package/_assets/{crumbs.styles-6TXvIB5e.js → crumbs.styles-pyPMgoz0.js} +2 -2
- package/_assets/{custom-CtbaVsvz.js → custom-BlNHH79K.js} +2 -2
- package/_assets/{data-capture-D_Yc-lFk.js → data-capture-DPzsO2lN.js} +5 -5
- package/_assets/{dcl-schemas-Do6ePE9M.js → dcl-schemas-Cfq6CqWT.js} +2 -2
- package/_assets/{decimals-fY1-YeOV.js → decimals-Ck3jG3D_.js} +2 -2
- package/_assets/{decimals-CPcEXrkP.js → decimals-Dlp-ovfV.js} +2 -2
- package/_assets/{detectExtension-BzGhSQVN.js → detectExtension-DKrCOSsK.js} +2 -2
- package/_assets/{disposePreview-BhRqNFqz.js → disposePreview-Bsl7l0mM.js} +2 -2
- package/_assets/{email-CDJff6Le.js → email-BZxUVc1N.js} +7 -7
- package/_assets/{embedded-wallet-OlJuY5Lb.js → embedded-wallet-Ca8pu8Kj.js} +2 -2
- package/_assets/{emotion-styled.browser.esm-dqXx08M6.js → emotion-styled.browser.esm-K6pLNO6r.js} +2 -2
- package/_assets/{engine-Cqgf8_-e.js → engine-yYaOSMR6.js} +2 -2
- package/_assets/{errors-COVZQXFS.js → errors-bGFSPwV2.js} +2 -2
- package/_assets/{estimate-l1-fee-cwAe5Vqz.js → estimate-l1-fee-DSUse9Ic.js} +2 -2
- package/_assets/{eth_estimateGas-Bi2jA3d6.js → eth_estimateGas-BjjPr2og.js} +2 -2
- package/_assets/{eth_getStorageAt-Drv0-oaq.js → eth_getStorageAt-rgnCAOoG.js} +2 -2
- package/_assets/{eth_getTransactionCount-u8vibbIm.js → eth_getTransactionCount-BI8aKEHu.js} +2 -2
- package/_assets/{ethereum-Mtg8xwT8.js → ethereum-24wJcQBh.js} +2 -2
- package/_assets/{ethers-DVrorjJ1.js → ethers-DP-FFkj0.js} +2 -2
- package/_assets/{events-CcYNTdVN.js → events-CVUM8JW6.js} +2 -2
- package/_assets/{execute-CoAxXj0W.js → execute-BRc4sJMG.js} +3 -3
- package/_assets/{extractIPFS-DlbP2Osb.js → extractIPFS-hqlXANBo.js} +2 -2
- package/_assets/{features-DNE6dOZ4.js → features-CTj0mVUZ.js} +2 -2
- package/_assets/{fetchTokenMetadata-CiNffAhl.js → fetchTokenMetadata-DHBaXmEz.js} +3 -3
- package/_assets/{field.styles-Dsz8I5YB.js → field.styles-D7vfwNck.js} +2 -2
- package/_assets/{fortmatic-B2QacKOL.js → fortmatic-DLlO1tvy.js} +2 -2
- package/_assets/{get-bytecode-DCxZ_TJS.js → get-bytecode-BUP6yxh-.js} +2 -2
- package/_assets/{get-ecosystem-wallet-info-Dpf1xtjk.js → get-ecosystem-wallet-info-CTwzTA-p.js} +2 -2
- package/_assets/{getBalance-DacQHsEf.js → getBalance-B4AvRMJH.js} +3 -3
- package/_assets/{getInstalledModules-_KOhu2kj.js → getInstalledModules-BZteepyF.js} +2 -2
- package/_assets/{getNFT-DLLMJ-N8.js → getNFT-AHa26JAd.js} +2 -2
- package/_assets/{getNFT-TgQU4sPn.js → getNFT-BDSIClLK.js} +3 -3
- package/_assets/{grid.styles-zbj0YrVx.js → grid.styles-D-dW0hBU.js} +2 -2
- package/_assets/{hashTypedData-CxzAx589.js → hashTypedData-Ciseup4v.js} +2 -2
- package/_assets/{hashTypedData-C4V4k80v.js → hashTypedData-CoaE5lsX.js} +2 -2
- package/_assets/{import-p1kr6qLz.js → import-D9w8U2BF.js} +2 -2
- package/_assets/{in-app-niBzraeI.js → in-app-BKqPia8J.js} +2 -2
- package/_assets/{in-app-wallet-calls-Dyorin4y.js → in-app-wallet-calls-CVA-lTS0.js} +2 -2
- package/_assets/{index-y9tZLe7Z.js → index-0sHpGDt1.js} +14 -14
- package/_assets/{index-_AZXosO6.js → index-1GVnNxjY.js} +2 -2
- package/_assets/{index-CEVRFChv.js → index-6MmHeSoo.js} +2 -2
- package/_assets/{index-CZEd2SGy.js → index-B7j4g1xG.js} +3 -3
- package/_assets/{index-DzWgqsYH.js → index-BBnMk2y3.js} +2 -2
- package/_assets/{index-C9RSadCu.js → index-BBsgLbaB.js} +2 -2
- package/_assets/{index-CEbyUU5H.js → index-BJdScqCd.js} +2 -2
- package/_assets/{index-BC9VPSaU.js → index-BXZ_O95T.js} +2 -2
- package/_assets/{index-CpfmSBK0.js → index-B_Zf3K5d.js} +2 -2
- package/_assets/{index-DjQWTjO5.js → index-BfiOP8wf.js} +2 -2
- package/_assets/{index-CwA52DzI.js → index-BgQZ06By.js} +2 -2
- package/_assets/{index-C-cdcYSu.js → index-BomTuEwH.js} +5 -5
- package/_assets/{index-B6iPDUS8.js → index-Bslb-pmi.js} +2 -2
- package/_assets/{index-DrGWXFkr.js → index-BzahFDSU.js} +2 -2
- package/_assets/{index-CWE_Bdvd.js → index-C3DPIo72.js} +2 -2
- package/_assets/{index-BhPBG2XL.js → index-C4FzBLKs.js} +9 -9
- package/_assets/{index-B1DNuJsS.js → index-C6PzN-IJ.js} +2 -2
- package/_assets/{index-CD44EXbq.js → index-C8c5f89M.js} +2 -2
- package/_assets/{index-CfGsvFRR.js → index-C9-SXSSy.js} +2 -2
- package/_assets/{index-BW2_mJUZ.js → index-C9w1MuYu.js} +3 -3
- package/_assets/{index-CWc56QrX.js → index-CE3xNB2T.js} +2 -2
- package/_assets/{index-BzKWq7pb.js → index-CHDmkeVX.js} +2 -2
- package/_assets/{index-DXmPq_Kc.js → index-COLhyY_b.js} +2 -2
- package/_assets/{index-B39be1Q8.js → index-CSMf1h-z.js} +2 -2
- package/_assets/{index-B1-eV0Yy.js → index-CSf5OLfb.js} +2 -2
- package/_assets/{index-D05bb_h6.js → index-CSpUVyNm.js} +2 -2
- package/_assets/{index-PmcUrVFZ.js → index-CTOOqCnR.js} +2 -2
- package/_assets/{index-Cq-Etsdf.js → index-CVz_T2rD.js} +2 -2
- package/_assets/{index-pibLOLKX.js → index-CXRXb_af.js} +2 -2
- package/_assets/{index-CZmSHbVE.js → index-CXuLC8Ln.js} +2 -2
- package/_assets/{index-BaeSw32D.js → index-CbUUOTSf.js} +3 -3
- package/_assets/{index-U6lik-J8.js → index-Cc0hwgD4.js} +2 -2
- package/_assets/{index-CxOzFLm7.js → index-CdT7EpAF.js} +2 -2
- package/_assets/{index-BrTe5eTC.js → index-ChYxci7d.js} +2 -2
- package/_assets/{index-Ccey0v_W.js → index-Co-sQ6r9.js} +2 -2
- package/_assets/{index-MqPRfHS_.js → index-CuRWWFnK.js} +4 -4
- package/_assets/{index-Bpbs2w1c.js → index-Cxpz9dB-.js} +2 -2
- package/_assets/{index-BhSgZf6d.css → index-Cym62eey.css} +1 -1
- package/_assets/{index-BdhRH7ae.js → index-D7vNRL5k.js} +2 -2
- package/_assets/{index-Csp5LciJ.js → index-D7xfhr1h.js} +2 -2
- package/_assets/{index-CwoMLrsB.js → index-DAsBgsXI.js} +2 -2
- package/_assets/{index-CcTOkZrG.js → index-DE3Boza_.js} +2 -2
- package/_assets/{index-CRlpbq5e.js → index-DGKmMN3B.js} +2 -2
- package/_assets/{index-sTnDYGsF.js → index-DIsvxr-Z.js} +2 -2
- package/_assets/{index-CxNh07aM.js → index-DRDH2z8Q.js} +3 -3
- package/_assets/{index-D_SCQhiC.js → index-DSCeNZpG.js} +2 -2
- package/_assets/{index-DUaZ1t6t.js → index-DSimdEWJ.js} +2 -2
- package/_assets/{index-CWJFyp1v.js → index-DVbC13OC.js} +2 -2
- package/_assets/{index-Dpu-M2gs.js → index-DViUClBI.js} +2 -2
- package/_assets/{index-D8olnnil.js → index-DVixZLDd.js} +2 -2
- package/_assets/{index-gg05iP5j.js → index-DZFoNaD3.js} +4 -4
- package/_assets/{index-DpJ4zJ7r.js → index-DgFTUe-g.js} +2 -2
- package/_assets/{index-WiX7N7NB.js → index-DhRJVemB.js} +2 -2
- package/_assets/{index-Dyy6WQp0.js → index-Dl1rtJ0f.js} +5 -5
- package/_assets/{index-BEbVm5wA.js → index-DmHNU9G6.js} +2 -2
- package/_assets/{index-rsyTCpy-.js → index-DnHUEsB9.js} +2 -2
- package/_assets/{index-BdTU9iVQ.js → index-DpELxfQm.js} +4 -4
- package/_assets/{index-CKb-Chs7.js → index-E7SYJRe7.js} +2 -2
- package/_assets/{index-DeaVX3Ga.js → index-HvP4pq2l.js} +2 -2
- package/_assets/{index-DLcPHJzx.js → index-XXheXTNl.js} +2 -2
- package/_assets/{index-iRDDuzQN.js → index-YiuuAnui.js} +2 -2
- package/_assets/{index-Cn-ULh1k.js → index-cNNMEAh7.js} +2 -2
- package/_assets/{index-I_W87dfE.js → index-jWUAysyE.js} +2 -2
- package/_assets/{index-D8M-5R_3.js → index-tBgzCW--.js} +2 -2
- package/_assets/{index-Ddqdlsoi.js → index-tQNvbqYL.js} +2 -2
- package/_assets/{index-DDb_ETfE.js → index-uGYuq54d.js} +2 -2
- package/_assets/{index-BgrkbkKX.js → index-w45Rn437.js} +3 -3
- package/_assets/{index-ChhJ84F9.js → index-wRIdLZTx.js} +2 -2
- package/_assets/{index.es-p9GOzpcM.js → index.es-DJTa2qsL.js} +5 -5
- package/_assets/{index.es-CWkiohwA.js → index.es-DL3z7Gn1.js} +2 -2
- package/_assets/{index.es-CPftFMVM.js → index.es-DL9fLQDi.js} +2 -2
- package/_assets/{index.es-BZZFX7UO.js → index.es-DhdoSy_i.js} +2 -2
- package/_assets/{items-empty-D3SdcrUb.js → items-empty-xbmQ53J-.js} +2 -2
- package/_assets/{jump-BLEV_WoY.js → jump-CstL_PNR.js} +2 -2
- package/_assets/{linkAccount-DAFP48le.js → linkAccount-CZKzHb_O.js} +2 -2
- package/_assets/{localBatchGatewayRequest-dB8Wq4kD.js → localBatchGatewayRequest-CSm96h1f.js} +2 -2
- package/_assets/{modal.styles-C5SxmNLg.js → modal.styles-BnyaAuqp.js} +2 -2
- package/_assets/{native-CBQhq49N.js → native-Dla2MVLh.js} +2 -2
- package/_assets/{networks-8H1PRpMW.js → networks-DUEy9f8c.js} +2 -2
- package/_assets/{onramp-J5H4ebWV.js → onramp-CVWo4Y_P.js} +2 -2
- package/_assets/{openzeppelin-D4p4dWkw.js → openzeppelin-Y4Q6Lben.js} +2 -2
- package/_assets/{ownerOf-6NPphff8.js → ownerOf-Ddg3DAJm.js} +2 -2
- package/_assets/{parseNft-CNeONFsP.js → parseNft-DtvecMPZ.js} +3 -3
- package/_assets/{parseSignature-RdZmR6vg.js → parseSignature-C6tQcIwK.js} +4 -4
- package/_assets/{parseSignature-CRChMV-U.js → parseSignature-DgDdGDI3.js} +2 -2
- package/_assets/{passkeys-asZ3JuTk.js → passkeys-pBY7ApMY.js} +2 -2
- package/_assets/{pay-with-exchange-Cv_5xsJB.js → pay-with-exchange-BuUAkpop.js} +2 -2
- package/_assets/{prepare-contract-call-Bgba2npe.js → prepare-contract-call-D6z_r1Pg.js} +2 -2
- package/_assets/{qr-overlay-DkizM6BP.js → qr-overlay-C9_6EJEC.js} +4 -4
- package/_assets/{react-ZT2P9-hV.js → react-JcMZcmnF.js} +2 -2
- package/_assets/{receive-CawQ-n3T.js → receive-rZlgeSPB.js} +2 -2
- package/_assets/{resolveImplementation-BVnQ0KdI.js → resolveImplementation-CnYymjGs.js} +2 -2
- package/_assets/{resume-buy-VqFhR9e8.js → resume-buy-CuppYS1m.js} +2 -2
- package/_assets/{resume-name-CTz059A2.js → resume-name-y8rQZRdD.js} +2 -2
- package/_assets/{rpc-BJ7rd6au.js → rpc-mvgFppBG.js} +2 -2
- package/_assets/{sales-empty-l9JLZ5D0.js → sales-empty-CdGFCohq.js} +2 -2
- package/_assets/{search-empty-CkXuQVln.js → search-empty-B_4a6gQT.js} +2 -2
- package/_assets/{secp256k1-Bu5sn1ZV.js → secp256k1-Cy9xn3wp.js} +2 -2
- package/_assets/{secp256k1-BGQ_Uqpo.js → secp256k1-DDCcwdhU.js} +2 -2
- package/_assets/{secp256k1-BaU6Nn5x.js → secp256k1-Dg9JG9l9.js} +2 -2
- package/_assets/{send-DONjIfwF.js → send-CC5Bluei.js} +2 -2
- package/_assets/{send-batch-transaction-C_JYVBkw.js → send-batch-transaction-C33v6LlY.js} +2 -2
- package/_assets/{send-eip712-transaction-Clelg5Q-.js → send-eip712-transaction-K5fxd0tj.js} +3 -3
- package/_assets/{send-gasless-transaction-DNc4O0S0.js → send-gasless-transaction-Du-l4dlU.js} +3 -3
- package/_assets/send-transaction-CEZPlNIq.js +3 -0
- package/_assets/sendMetaTransaction-CWnYhaMC.js +2 -0
- package/_assets/{sendRawTransaction-BM57FQWh.js → sendRawTransaction-DyMaZh0r.js} +4 -4
- package/_assets/{sentry-qVQnooqM.js → sentry-D1js75-6.js} +3 -3
- package/_assets/{serializeTransaction-FdLqYQ-w.js → serializeTransaction-CPK6Ju6d.js} +2 -2
- package/_assets/{session-proposal-CAm5TVJB.js → session-proposal-CD8QJ4yk.js} +2 -2
- package/_assets/{session-request-C8xtyN3L.js → session-request-DgzY2KTJ.js} +3 -3
- package/_assets/{sha256-CcM85_-b.js → sha256-kA5UGKmr.js} +2 -2
- package/_assets/sha3-CBacSK_w.js +2 -0
- package/_assets/signin-empty-DLmtvjDP.js +2 -0
- package/_assets/{signing-FPVJ2eSa.js → signing-BepqILxJ.js} +4 -4
- package/_assets/{skeleton.styles-DTLcQB9A.js → skeleton.styles-BwABaM9c.js} +2 -2
- package/_assets/{socials-BHL-s99I.js → socials-BkxZ6L__.js} +2 -2
- package/_assets/{styled-BOKv7XKm.js → styled-DLQS4N_3.js} +3 -3
- package/_assets/{swaps-DDuyuFV1.js → swaps-BuHaQFK-.js} +2 -2
- package/_assets/{thirdweb-N4oYmhTQ.js → thirdweb-B6bdJ15h.js} +4 -4
- package/_assets/{to-serializable-transaction-DZXV0RS9.js → to-serializable-transaction-zMUmHjvx.js} +3 -3
- package/_assets/{totalSupply-DnoXRYZk.js → totalSupply-n7_Dfg_F.js} +2 -2
- package/_assets/{trade-encoding-JnGsRcov.js → trade-encoding-CTonKWPZ.js} +2 -2
- package/_assets/{transaction-D82LqpKn.js → transaction-DL-AU6Tc.js} +2 -2
- package/_assets/{transactionReceipt-DEqK-l-5.js → transactionReceipt-CaEvlKH3.js} +2 -2
- package/_assets/{transactions-1TYNoevC.js → transactions-IsooRXXE.js} +2 -2
- package/_assets/{useCreatorSales-oruupPPN.js → useCreatorSales-Dful9rbz.js} +2 -2
- package/_assets/useInfiniteGrid-Dt8P8lu1.js +2 -0
- package/_assets/{useStore-CGFjD1j7.js → useStore-DND8t71t.js} +3 -3
- package/_assets/{useTheme-J18Pg7gw.js → useTheme-CWYYWD1w.js} +2 -2
- package/_assets/{utils-BE7z1_FY.js → utils-CZ8Ii6WF.js} +2 -2
- package/_assets/{verifyHash-Buuby46g.js → verifyHash-DJXHoGAV.js} +2 -2
- package/_assets/{w3m-modal-DhWirtG8.js → w3m-modal-ChCxLknc.js} +2 -2
- package/_assets/{w3m-modal-BU-cBw0Z.js → w3m-modal-Hgaz-7a6.js} +2 -2
- package/_assets/{wait-for-tx-receipt-CG08f_bj.js → wait-for-tx-receipt-C-aGsuPj.js} +2 -2
- package/_assets/{wallets-CMB2i32E.js → wallets-CCSAxj4o.js} +6 -6
- package/_assets/{web-connector-BPh_N46m.js → web-connector-BaH0Wnkg.js} +4 -4
- package/_assets/{writeContract-BcpztdZJ.js → writeContract-BgWV-gY0.js} +2 -2
- package/_assets/{zora-sepolia-arxykf8i.js → zora-sepolia-DYV_V-rH.js} +2 -2
- package/_assets/{zoraTestnet-DL2ClkoW.js → zoraTestnet-YPbFYCTr.js} +2 -2
- package/index.html +11 -11
- package/package.json +2 -2
- package/_assets/Assets-CN1LU5Xt.js +0 -980
- package/_assets/Cart-Bwf6I0xV.js +0 -748
- package/_assets/CollectionCarousel-CrMGuIJ3.js +0 -322
- package/_assets/Event-C9d1J0Kb.js +0 -72
- package/_assets/ItemDetail-BSwm3WSx.js +0 -3779
- package/_assets/OutfitPreview-Ceha9IWa.js +0 -7
- package/_assets/cart-checkout-uu8usx3x.js +0 -2
- package/_assets/collectionPage.styles-DOzyhn9M.js +0 -41
- package/_assets/send-transaction-pFbo31gg.js +0 -3
- package/_assets/sendMetaTransaction-BcKatlZr.js +0 -2
- package/_assets/sha3-FAYNGyBi.js +0 -2
- package/_assets/signin-empty-UN_rVDWL.js +0 -2
- package/_assets/useInfiniteGrid-56c_34kP.js +0 -2
|
@@ -1,980 +0,0 @@
|
|
|
1
|
-
import{r as p,b as We,j as e,a as ut,u as ft}from"./react-ZT2P9-hV.js";import{c as J,r as mt,b as xt,bE as gt,bA as bt,aE as yt,aC as wt,w as jt,cW as vt,cX as Ct,s as i,a as t,x as nt,bk as $t,aK as kt,F as st,t as s,D as St,I as M,z as q,cY as Se,E as ce,bj as Et,bi as Rt,l as Tt,O as Ce,bu as Ge,bD as _t,bC as It,B as it,W as ot,m as rt,bS as Nt,y as Lt,at as Mt,Y as At,$ as qe,a0 as de,aI as zt,bO as Pt}from"./index-y9tZLe7Z.js";import{u as Wt,s as Ft}from"./search-empty-CkXuQVln.js";import{C as Bt,u as Ut,n as Ot,S as Ht,R as Dt,F as Gt,a as qt}from"./Filters-Dw8HD8Ma.js";import{L as Kt}from"./LoadMore-i7_riiE5.js";import{u as Vt}from"./useInfiniteGrid-56c_34kP.js";import{S as Zt}from"./categories-DeCaTWZU.js";import{E as Qt}from"./ErrorNotice-Cm0KaFyV.js";import{d as Yt}from"./dcl-schemas-Do6ePE9M.js";import{s as Xt,G as Jt,w as en,S as tn}from"./buy-gasless-CaUM9sxG.js";import{s as nn}from"./buy-Da1E8jgj.js";import{C as sn}from"./trade-encoding-JnGsRcov.js";import{f as on}from"./errors-COVZQXFS.js";import{J as rn,C as an,B as Ae}from"./ethers-DVrorjJ1.js";import{w as ln,x as cn,W as dn,m as hn,n as pn,o as un,v as fn,j as Ke}from"./CreditPackPicker-COb2KClL.js";import{u as mn,M as xn,o as gn,R as bn,c as yn}from"./cart-checkout-uu8usx3x.js";import{R as Ve}from"./resume-name-CTz059A2.js";import{R as wn}from"./resume-buy-VqFhR9e8.js";import{n as jn}from"./name-glyph-aUugT8vq.js";import{c as vn}from"./crumbs.styles-6TXvIB5e.js";import{n as Cn}from"./Tooltip-Bj-rfWuS.js";import{G as $n}from"./grid.styles-zbj0YrVx.js";import{R as kn,S as Sn,a as En,D as Rn,b as Tn,C as _n,c as In,d as Nn,e as Ln,M as Mn}from"./browseLayout.styles-Dg021Y7v.js";import"./sentry-qVQnooqM.js";import"./intl-AKLEHPeO.js";import"./skeleton.styles-DTLcQB9A.js";import"./sendMetaTransaction-BcKatlZr.js";(function(){try{var n=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},o=new n.Error().stack;o&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[o]="c1288000-bc6a-427e-9496-5cb2ec15d17d",n._sentryDebugIdIdentifier="sentry-dbid-c1288000-bc6a-427e-9496-5cb2ec15d17d")}catch{}})();function he(n){const o=n.source??"item",a=n.tradeId||`${n.contractAddress}-${n.tokenId??n.itemId??""}`;return`${o}:${a}`}const ne="100000000000000000000",at=2,$e=15,An=/^[a-zA-Z0-9]+$/;function Ze(n){const o=n.trim();return o.length===0?{ok:!1,reason:"empty"}:An.test(o)?o.length<at?{ok:!1,reason:"too-short"}:o.length>$e?{ok:!1,reason:"too-long"}:{ok:!0}:{ok:!1,reason:"invalid-chars"}}function zn(n){return n.replace(/[^a-zA-Z0-9]/g,"").slice(0,$e)}const Pn=["function available(string _subdomain) view returns (bool)"],Qe={mainnet:{rpc:"https://rpc.decentraland.org/mainnet",address:"0x2a187453064356c898cae034eaed119e1663acb8"},sepolia:{rpc:"https://rpc.decentraland.org/sepolia",address:"0x7518456ae93eb98f3e64571b689c626616bb7f30"}};function Wn(){return J.chainId===Number(Yt.ChainId.MATIC_MAINNET)?Qe.mainnet:Qe.sepolia}async function Fn(n,o={}){var x;const{rpc:a,address:c}=Wn(),f=new rn(a),j=new an(c,Pn,f);console.info(`[names] availability check → DCLRegistrar(${c}).available("${n}") on ${a}`);const d=await j.available(n);if((x=o.signal)!=null&&x.aborted)throw new DOMException("Aborted","AbortError");return console.info(`[names] "${n}" available=${d}`),d?"available":"taken"}const Bn="https://app.across.to/api";class Fe extends Error{constructor(){super("Name registration is temporarily unavailable due to high network costs"),this.name="NameRouteCostTooHighError"}}class ze extends Error{constructor(){super("The name could not be registered on Ethereum; your funds were recovered."),this.name="NameNotRegisteredError"}}class Pe extends Error{constructor(){super("We couldn't confirm whether the purchase went through."),this.name="NameSettlementUnknownError"}}function Un(n){return yt(ne,n)}async function On(n,o,a={}){var x;const c=a.chainId??J.chainId,f=a.provider??"across",j=`${J.creditsServerUrl}/credits-name-route?name=${encodeURIComponent(o)}&chainId=${c}&provider=${f}`,d=await wt(j,{method:"GET",identity:n,metadata:{}});if(!d.ok){let l;try{l=(x=await d.json())==null?void 0:x.code}catch{}throw l==="ROUTE_COST_TOO_HIGH"?new Fe:new Error(`fetchNameCreditRoute ${d.status}`)}return d.json()}function Hn(n,o){const a=Ae.from(n.availableAmount),f=Ae.from(ne).sub(a);return{credits:[{value:n.amount,expiresAt:Number(n.expiresAt),salt:sn(n.id)}],creditsSignatures:[n.signature],externalCall:{target:o.externalCall.target,selector:o.externalCall.selector,data:o.externalCall.data,expiresAt:o.externalCall.expiresAt,salt:o.externalCall.salt},customExternalCallSignature:o.customExternalCallSignature,maxUncreditedValue:f.isNegative()?"0":f.toString(),maxCreditedValue:ne}}async function Dn(n,o={}){const a=Bn,c=o.intervalMs??1e4,f=o.maxAttempts??60;let j={status:"pending",destinationTxHash:null,actionsSucceeded:null};for(let d=0;d<f;d++){try{const x=await fetch(`${a}/deposit/status?originChainId=137&depositTxHash=${n}`);if(x.ok){const l=await x.json(),y=(l.status??"pending").toLowerCase(),g=l.fillTx??l.fillTxnRef??null,C=typeof l.actionsSucceeded=="boolean"?l.actionsSucceeded:null;if(y==="filled")return{status:"filled",destinationTxHash:g,actionsSucceeded:C};if(y==="refunded"||y==="expired")return{status:y,destinationTxHash:null,actionsSucceeded:!1};j={status:"pending",destinationTxHash:g,actionsSucceeded:C}}}catch{}d<f-1&&await new Promise(x=>setTimeout(x,c))}return j}async function Gn(n){const{name:o,identity:a,signer:c}=n,f=g=>{var C;try{(C=n.onProgress)==null||C.call(n,g)}catch{}},j=n.chainId??J.chainId,d=n.provider??"across",x=(n.beneficiary??await c.getAddress()).toLowerCase();let l=null,y="unconfirmed";console.info("[names] register start",{name:o,buyer:x,chainId:j,provider:d}),f("preparing");try{const g=await mt(xt(J.chainId).address),C=Un(g);console.info("[names] step 1/6 sized reservation",{usdCents:C,manaRate:g});const h=await On(a,o,{chainId:j,provider:d});console.info("[names] step 2/6 route fetched",{target:h.externalCall.target,selector:h.externalCall.selector,provider:h.provider,quoteId:h.quoteId});const w=await gt(a,C,void 0,void 0,o);if(l=w.credit.id,console.info("[names] step 3/6 credit authorized",{creditId:w.credit.id,maxCreditedValue:w.maxCreditedValue}),Ae.from(w.maxCreditedValue).lt(ne))throw new Error("Credit under-sized for the name price");f("awaiting-confirmation");const b=Hn(w.credit,h);let u;try{u=await Xt({chainId:j,buyer:x,signer:c,args:b})}catch(v){if(!(v instanceof Jt))throw v;if(v.reason==="relayer-unreachable"){y="unobservable";const S=new Pe;throw S.cause=v,S}u=await nn(j,b,c)}if(console.info("[names] step 4/6 useCredits submitted (Polygon origin tx)",{originTxHash:u}),f("confirming"),await en(u),y="confirmed",console.info("[names] step 5/6 origin tx confirmed",{originTxHash:u}),d==="across"){f("registering");const v=await Dn(u,n.acrossPoll);if(console.info("[names] step 6/6 across status",v),v.status==="pending")return{status:"pending",originTxHash:u};if(v.status==="filled"&&v.actionsSucceeded===null)return console.warn("[names] across filled without reporting actionsSucceeded — reporting pending",{originTxHash:u}),{status:"pending",originTxHash:u};if(v.status!=="filled"||v.actionsSucceeded!==!0)throw new ze;return{status:"registered",originTxHash:u,destinationTxHash:v.destinationTxHash}}return{status:"pending",originTxHash:u}}catch(g){if(console.error("[names] register failed — raw error:",g,{name:o,buyer:x,originState:y}),g instanceof tn)return{status:"pending",originTxHash:g.txHash};if(l&&y==="unconfirmed"&&await bt(a,[l]).catch(()=>{}),g instanceof Fe||g instanceof ze||g instanceof Pe)throw g;const C=new Error(on(g,"Couldn't register the name. Please try again.",{sale:!0}));throw C.cause=g,C}}function qn(){const{data:n}=jt({queryKey:["feature-flag","shop-names"],queryFn:()=>vt(Ct.SHOP_NAMES),staleTime:6e4,refetchOnWindowFocus:!0,retry:1});return n===!0}const Kn=60,Vn=700,Zn=25;function Qn(n){if(!n)return[];const o=[];for(let a=1;a<=n.length;a++)o.push({text:n.slice(0,a),delay:Kn});o[o.length-1]={text:n,delay:Vn};for(let a=n.length-1;a>=1;a--)o.push({text:n.slice(0,a),delay:Zn});return o}function Yn(n){return n.flatMap(Qn)}function Xn(n,o){const a=p.useMemo(()=>Yn(n),[n]),[c,f]=p.useState(0);return p.useEffect(()=>{if(!o||a.length===0)return;const j=setTimeout(()=>f(d=>(d+1)%a.length),a[c%a.length].delay);return()=>clearTimeout(j)},[c,o,a]),!o||a.length===0?"":a[c%a.length].text}const Jn="https://cdn.decentraland.org/@dcl/shop/1.13.1-35585926635.commit-02c8d2e/_assets/name-verified-oGwQ3ntb.svg",es="#34fee6",ts=i.div`
|
|
2
|
-
position: fixed;
|
|
3
|
-
inset: 0;
|
|
4
|
-
z-index: 10000;
|
|
5
|
-
display: flex;
|
|
6
|
-
align-items: center;
|
|
7
|
-
justify-content: center;
|
|
8
|
-
padding: 16px;
|
|
9
|
-
background: rgba(22, 21, 24, 0.55);
|
|
10
|
-
`,ns=i.div`
|
|
11
|
-
width: 560px;
|
|
12
|
-
max-width: 100%;
|
|
13
|
-
max-height: 92vh;
|
|
14
|
-
overflow-y: auto;
|
|
15
|
-
background: ${t.colors.white};
|
|
16
|
-
border-radius: 16px;
|
|
17
|
-
padding: 20px 24px 24px;
|
|
18
|
-
box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
|
|
19
|
-
|
|
20
|
-
${t.media.maxWidth("mobile")} {
|
|
21
|
-
padding: 16px;
|
|
22
|
-
}
|
|
23
|
-
`,Ee=i.div`
|
|
24
|
-
display: flex;
|
|
25
|
-
align-items: flex-start;
|
|
26
|
-
justify-content: space-between;
|
|
27
|
-
gap: 12px;
|
|
28
|
-
`,Re=i.h2`
|
|
29
|
-
margin: 0;
|
|
30
|
-
font-family: ${t.font.sans};
|
|
31
|
-
font-weight: 700;
|
|
32
|
-
font-size: 20px;
|
|
33
|
-
line-height: 1.6;
|
|
34
|
-
color: ${t.colors.text};
|
|
35
|
-
`,Te=i.button`
|
|
36
|
-
flex: none;
|
|
37
|
-
display: grid;
|
|
38
|
-
place-items: center;
|
|
39
|
-
width: 28px;
|
|
40
|
-
height: 28px;
|
|
41
|
-
border: 0;
|
|
42
|
-
background: none;
|
|
43
|
-
cursor: pointer;
|
|
44
|
-
color: ${t.colors.text};
|
|
45
|
-
|
|
46
|
-
.ico {
|
|
47
|
-
width: 18px;
|
|
48
|
-
height: 18px;
|
|
49
|
-
}
|
|
50
|
-
&:disabled {
|
|
51
|
-
opacity: 0.4;
|
|
52
|
-
cursor: default;
|
|
53
|
-
}
|
|
54
|
-
&:focus-visible {
|
|
55
|
-
outline: 2px solid ${t.colors.accent};
|
|
56
|
-
outline-offset: 2px;
|
|
57
|
-
}
|
|
58
|
-
`,_e=i.div`
|
|
59
|
-
display: flex;
|
|
60
|
-
align-items: center;
|
|
61
|
-
gap: 6px;
|
|
62
|
-
margin-top: 4px;
|
|
63
|
-
font-family: ${t.font.sans};
|
|
64
|
-
font-size: 14px;
|
|
65
|
-
color: ${t.colors.text2};
|
|
66
|
-
|
|
67
|
-
.ico {
|
|
68
|
-
width: 16px;
|
|
69
|
-
height: 16px;
|
|
70
|
-
color: ${t.colors.text};
|
|
71
|
-
}
|
|
72
|
-
`,Ie=i.hr`
|
|
73
|
-
border: 0;
|
|
74
|
-
border-top: 1px solid ${t.colors.line};
|
|
75
|
-
margin: 16px 0;
|
|
76
|
-
`,pe=i.div`
|
|
77
|
-
display: flex;
|
|
78
|
-
align-items: center;
|
|
79
|
-
gap: 16px;
|
|
80
|
-
`,ss=i.div`
|
|
81
|
-
flex: none;
|
|
82
|
-
display: flex;
|
|
83
|
-
flex-direction: column;
|
|
84
|
-
align-items: center;
|
|
85
|
-
justify-content: center;
|
|
86
|
-
gap: 12px;
|
|
87
|
-
width: 137px;
|
|
88
|
-
height: 137px;
|
|
89
|
-
padding: 20px 0;
|
|
90
|
-
border-radius: 12px;
|
|
91
|
-
overflow: hidden;
|
|
92
|
-
background: ${t.gradients.amethyst};
|
|
93
|
-
`,is=i.img`
|
|
94
|
-
display: block;
|
|
95
|
-
width: 47px;
|
|
96
|
-
height: 47px;
|
|
97
|
-
`,os=i.span`
|
|
98
|
-
display: inline-flex;
|
|
99
|
-
align-items: center;
|
|
100
|
-
gap: 2px;
|
|
101
|
-
max-width: 100%;
|
|
102
|
-
padding: 0 8px;
|
|
103
|
-
font-family: ${t.font.sans};
|
|
104
|
-
font-size: 18px;
|
|
105
|
-
font-weight: 600;
|
|
106
|
-
/* The design's cyan — it has to read against the purple, which the body text colour would not. */
|
|
107
|
-
color: ${es};
|
|
108
|
-
white-space: nowrap;
|
|
109
|
-
overflow: hidden;
|
|
110
|
-
|
|
111
|
-
/* Truncation belongs on the flex item, not this box: text-overflow is inert on a flex container, and
|
|
112
|
-
the zero min-width is what lets the name shrink instead of pushing the tick out. */
|
|
113
|
-
> span {
|
|
114
|
-
min-width: 0;
|
|
115
|
-
overflow: hidden;
|
|
116
|
-
text-overflow: ellipsis;
|
|
117
|
-
}
|
|
118
|
-
`,rs=i.img`
|
|
119
|
-
flex: none;
|
|
120
|
-
display: block;
|
|
121
|
-
width: 14px;
|
|
122
|
-
height: 14px;
|
|
123
|
-
`,Ne=i.div`
|
|
124
|
-
flex: none;
|
|
125
|
-
display: grid;
|
|
126
|
-
place-items: center;
|
|
127
|
-
width: 56px;
|
|
128
|
-
height: 56px;
|
|
129
|
-
border-radius: 10px;
|
|
130
|
-
background: ${t.gradients.amethyst};
|
|
131
|
-
color: ${t.colors.white};
|
|
132
|
-
|
|
133
|
-
.ico {
|
|
134
|
-
width: 30px;
|
|
135
|
-
height: 30px;
|
|
136
|
-
}
|
|
137
|
-
`,ue=i.div`
|
|
138
|
-
flex: 1;
|
|
139
|
-
min-width: 0;
|
|
140
|
-
`,fe=i.div`
|
|
141
|
-
font-family: ${t.font.sans};
|
|
142
|
-
font-weight: 700;
|
|
143
|
-
font-size: 20px;
|
|
144
|
-
line-height: 1.3;
|
|
145
|
-
color: ${t.colors.text};
|
|
146
|
-
overflow: hidden;
|
|
147
|
-
text-overflow: ellipsis;
|
|
148
|
-
white-space: nowrap;
|
|
149
|
-
|
|
150
|
-
span {
|
|
151
|
-
font-weight: 400;
|
|
152
|
-
color: ${t.colors.muted2};
|
|
153
|
-
}
|
|
154
|
-
`,me=i.div`
|
|
155
|
-
font-family: ${t.font.sans};
|
|
156
|
-
font-size: 14px;
|
|
157
|
-
color: ${t.colors.muted2};
|
|
158
|
-
`,xe=i.div`
|
|
159
|
-
flex: none;
|
|
160
|
-
display: flex;
|
|
161
|
-
align-items: center;
|
|
162
|
-
gap: 6px;
|
|
163
|
-
font-family: ${t.font.sans};
|
|
164
|
-
font-weight: 600;
|
|
165
|
-
font-size: 24px;
|
|
166
|
-
color: ${t.colors.text};
|
|
167
|
-
|
|
168
|
-
.ico {
|
|
169
|
-
width: 22px;
|
|
170
|
-
height: 22px;
|
|
171
|
-
color: ${t.colors.text};
|
|
172
|
-
}
|
|
173
|
-
`,as=i.div`
|
|
174
|
-
margin-top: 16px;
|
|
175
|
-
padding: 16px;
|
|
176
|
-
border-radius: 12px;
|
|
177
|
-
background: ${t.colors.promptLilac};
|
|
178
|
-
`,ls=i.div`
|
|
179
|
-
font-family: ${t.font.sans};
|
|
180
|
-
font-weight: 700;
|
|
181
|
-
font-size: 16px;
|
|
182
|
-
color: ${t.colors.text};
|
|
183
|
-
`,cs=i.p`
|
|
184
|
-
margin: 8px 0 16px;
|
|
185
|
-
font-family: ${t.font.sans};
|
|
186
|
-
font-size: 14px;
|
|
187
|
-
line-height: 1.5;
|
|
188
|
-
color: ${t.colors.text2};
|
|
189
|
-
|
|
190
|
-
/* The chosen NAME is filled with the gradient the design runs through it (1356:335140), not a flat
|
|
191
|
-
violet — background-clip is the only way to paint a text run with one. */
|
|
192
|
-
b {
|
|
193
|
-
font-weight: 700;
|
|
194
|
-
background: linear-gradient(180deg, ${t.colors.dclRed}, ${t.colors.magenta});
|
|
195
|
-
background-clip: text;
|
|
196
|
-
-webkit-background-clip: text;
|
|
197
|
-
color: transparent;
|
|
198
|
-
}
|
|
199
|
-
`,ds=i.label`
|
|
200
|
-
display: flex;
|
|
201
|
-
align-items: center;
|
|
202
|
-
gap: 8px;
|
|
203
|
-
padding: 12px 14px;
|
|
204
|
-
background: ${t.colors.softWhite};
|
|
205
|
-
/* A hairline in Gray 2, not a full pixel of soft-black: this field sits INSIDE the lilac panel and
|
|
206
|
-
the heavier edge made it read as the modal's primary control (Figma 1356:335172). */
|
|
207
|
-
border: 0.5px solid ${t.colors.muted};
|
|
208
|
-
border-radius: 8px;
|
|
209
|
-
cursor: text;
|
|
210
|
-
|
|
211
|
-
&:focus-within {
|
|
212
|
-
border-color: ${t.colors.magenta};
|
|
213
|
-
}
|
|
214
|
-
`,hs=i.span`
|
|
215
|
-
flex: none;
|
|
216
|
-
font-family: ${t.font.sans};
|
|
217
|
-
font-size: 18px;
|
|
218
|
-
color: ${t.colors.muted2};
|
|
219
|
-
`,ps=i.input`
|
|
220
|
-
flex: 0 1 auto;
|
|
221
|
-
min-width: 0;
|
|
222
|
-
border: 0;
|
|
223
|
-
outline: none;
|
|
224
|
-
background: transparent;
|
|
225
|
-
font-family: ${t.font.sans};
|
|
226
|
-
font-size: 16px;
|
|
227
|
-
font-weight: 600;
|
|
228
|
-
color: ${t.colors.text};
|
|
229
|
-
|
|
230
|
-
&::placeholder {
|
|
231
|
-
color: ${t.colors.muted2};
|
|
232
|
-
font-weight: 400;
|
|
233
|
-
}
|
|
234
|
-
`,us=i.span`
|
|
235
|
-
flex: none;
|
|
236
|
-
font-family: ${t.font.sans};
|
|
237
|
-
font-size: 16px;
|
|
238
|
-
color: ${t.colors.muted2};
|
|
239
|
-
`,Le=i.button`
|
|
240
|
-
margin-top: 16px;
|
|
241
|
-
width: 100%;
|
|
242
|
-
height: 46px;
|
|
243
|
-
border: 0;
|
|
244
|
-
border-radius: 12px;
|
|
245
|
-
cursor: pointer;
|
|
246
|
-
background: ${t.gradients.buyBtn};
|
|
247
|
-
color: ${t.colors.softWhite};
|
|
248
|
-
font-family: ${t.font.sans};
|
|
249
|
-
font-weight: 600;
|
|
250
|
-
font-size: 15px;
|
|
251
|
-
letter-spacing: 0.46px;
|
|
252
|
-
text-transform: uppercase;
|
|
253
|
-
transition: background-image 0.15s ease;
|
|
254
|
-
|
|
255
|
-
/* Both ends stay on background-IMAGE: a gradient cannot interpolate to a plain colour, so swapping
|
|
256
|
-
the shorthand instead blanks the button for the length of the transition. */
|
|
257
|
-
&:hover:not(:disabled),
|
|
258
|
-
&:active:not(:disabled) {
|
|
259
|
-
background-image: linear-gradient(${t.colors.dclRed}, ${t.colors.dclRed});
|
|
260
|
-
}
|
|
261
|
-
&:focus-visible {
|
|
262
|
-
outline: 2px solid ${t.colors.accent};
|
|
263
|
-
outline-offset: 2px;
|
|
264
|
-
}
|
|
265
|
-
&:disabled {
|
|
266
|
-
cursor: not-allowed;
|
|
267
|
-
opacity: 0.5;
|
|
268
|
-
}
|
|
269
|
-
`,fs=i.div`
|
|
270
|
-
display: flex;
|
|
271
|
-
flex: 1;
|
|
272
|
-
flex-direction: column;
|
|
273
|
-
align-items: center;
|
|
274
|
-
justify-content: center;
|
|
275
|
-
gap: 32px;
|
|
276
|
-
padding: 32px 0 8px;
|
|
277
|
-
`,ms=i.img`
|
|
278
|
-
width: 61px;
|
|
279
|
-
height: 61px;
|
|
280
|
-
`,xs=i.div`
|
|
281
|
-
display: flex;
|
|
282
|
-
flex-direction: column;
|
|
283
|
-
align-items: center;
|
|
284
|
-
gap: 8px;
|
|
285
|
-
width: 100%;
|
|
286
|
-
`,gs=i.div`
|
|
287
|
-
font-family: ${t.font.sans};
|
|
288
|
-
font-weight: 700;
|
|
289
|
-
font-size: 20px;
|
|
290
|
-
line-height: 1.6;
|
|
291
|
-
color: ${t.colors.text2};
|
|
292
|
-
text-align: center;
|
|
293
|
-
`,bs=i.p`
|
|
294
|
-
max-width: 400px;
|
|
295
|
-
font-family: ${t.font.sans};
|
|
296
|
-
font-size: 14px;
|
|
297
|
-
line-height: 1.57;
|
|
298
|
-
color: ${t.colors.muted};
|
|
299
|
-
text-align: center;
|
|
300
|
-
`,ys=i.div`
|
|
301
|
-
display: flex;
|
|
302
|
-
align-items: center;
|
|
303
|
-
justify-content: center;
|
|
304
|
-
gap: 8px;
|
|
305
|
-
width: 100%;
|
|
306
|
-
`,ws=i.div`
|
|
307
|
-
flex: 1;
|
|
308
|
-
max-width: 400px;
|
|
309
|
-
height: 10px;
|
|
310
|
-
border-radius: 100px;
|
|
311
|
-
background: rgba(0, 0, 0, 0.1);
|
|
312
|
-
overflow: hidden;
|
|
313
|
-
|
|
314
|
-
span {
|
|
315
|
-
display: block;
|
|
316
|
-
height: 100%;
|
|
317
|
-
width: 33%;
|
|
318
|
-
border-radius: 100px;
|
|
319
|
-
background: ${t.gradients.buyBtn};
|
|
320
|
-
animation: nameProgress 1.1s ease-in-out infinite;
|
|
321
|
-
}
|
|
322
|
-
|
|
323
|
-
@keyframes nameProgress {
|
|
324
|
-
0% {
|
|
325
|
-
transform: translateX(-100%);
|
|
326
|
-
}
|
|
327
|
-
100% {
|
|
328
|
-
transform: translateX(320%);
|
|
329
|
-
}
|
|
330
|
-
}
|
|
331
|
-
|
|
332
|
-
@media (prefers-reduced-motion: reduce) {
|
|
333
|
-
span {
|
|
334
|
-
width: 33%;
|
|
335
|
-
animation: none;
|
|
336
|
-
}
|
|
337
|
-
}
|
|
338
|
-
`,js=i.span`
|
|
339
|
-
flex: none;
|
|
340
|
-
font-family: ${t.font.sans};
|
|
341
|
-
font-size: 16px;
|
|
342
|
-
line-height: 22px;
|
|
343
|
-
color: ${t.colors.text2};
|
|
344
|
-
`,vs=i.div`
|
|
345
|
-
display: flex;
|
|
346
|
-
flex-direction: column;
|
|
347
|
-
align-items: center;
|
|
348
|
-
gap: 16px;
|
|
349
|
-
padding: 24px;
|
|
350
|
-
border-radius: 12px;
|
|
351
|
-
background: #e2f5ea;
|
|
352
|
-
text-align: center;
|
|
353
|
-
`,Cs=i.div`
|
|
354
|
-
display: grid;
|
|
355
|
-
place-items: center;
|
|
356
|
-
width: 56px;
|
|
357
|
-
height: 56px;
|
|
358
|
-
border-radius: 50%;
|
|
359
|
-
background: ${t.colors.ok};
|
|
360
|
-
color: ${t.colors.white};
|
|
361
|
-
|
|
362
|
-
.ico {
|
|
363
|
-
width: 30px;
|
|
364
|
-
height: 30px;
|
|
365
|
-
}
|
|
366
|
-
`,$s=i.p`
|
|
367
|
-
margin: 0;
|
|
368
|
-
font-family: ${t.font.sans};
|
|
369
|
-
font-size: 16px;
|
|
370
|
-
line-height: 1.4;
|
|
371
|
-
color: ${t.colors.text};
|
|
372
|
-
|
|
373
|
-
b {
|
|
374
|
-
font-weight: 700;
|
|
375
|
-
}
|
|
376
|
-
`,Ye=i.div`
|
|
377
|
-
display: flex;
|
|
378
|
-
gap: 16px;
|
|
379
|
-
margin-top: 20px;
|
|
380
|
-
|
|
381
|
-
${t.media.maxWidth("mobile")} {
|
|
382
|
-
flex-direction: column;
|
|
383
|
-
}
|
|
384
|
-
`,Xe=i.button`
|
|
385
|
-
flex: 1;
|
|
386
|
-
height: 48px;
|
|
387
|
-
border: 1px solid ${t.colors.accent};
|
|
388
|
-
border-radius: 8px;
|
|
389
|
-
background: ${t.colors.white};
|
|
390
|
-
color: ${t.colors.accent};
|
|
391
|
-
cursor: pointer;
|
|
392
|
-
font-family: ${t.font.sans};
|
|
393
|
-
font-weight: 600;
|
|
394
|
-
font-size: 13px;
|
|
395
|
-
letter-spacing: 0.46px;
|
|
396
|
-
text-transform: uppercase;
|
|
397
|
-
|
|
398
|
-
&:hover {
|
|
399
|
-
background: rgba(105, 31, 169, 0.06);
|
|
400
|
-
}
|
|
401
|
-
&:focus-visible {
|
|
402
|
-
outline: 2px solid ${t.colors.accent};
|
|
403
|
-
outline-offset: 2px;
|
|
404
|
-
}
|
|
405
|
-
`,ks=i.a`
|
|
406
|
-
flex: 1;
|
|
407
|
-
display: inline-flex;
|
|
408
|
-
align-items: center;
|
|
409
|
-
justify-content: center;
|
|
410
|
-
height: 48px;
|
|
411
|
-
border-radius: 8px;
|
|
412
|
-
background: ${t.colors.dclRed};
|
|
413
|
-
color: ${t.colors.softWhite};
|
|
414
|
-
cursor: pointer;
|
|
415
|
-
text-decoration: none;
|
|
416
|
-
font-family: ${t.font.sans};
|
|
417
|
-
font-weight: 600;
|
|
418
|
-
font-size: 13px;
|
|
419
|
-
letter-spacing: 0.46px;
|
|
420
|
-
text-transform: uppercase;
|
|
421
|
-
|
|
422
|
-
&:hover {
|
|
423
|
-
filter: brightness(1.05);
|
|
424
|
-
}
|
|
425
|
-
&:focus-visible {
|
|
426
|
-
outline: 2px solid ${t.colors.accent};
|
|
427
|
-
outline-offset: 2px;
|
|
428
|
-
}
|
|
429
|
-
`,Me=i.div`
|
|
430
|
-
display: flex;
|
|
431
|
-
align-items: flex-start;
|
|
432
|
-
gap: 12px;
|
|
433
|
-
padding: 16px;
|
|
434
|
-
margin-top: 8px;
|
|
435
|
-
border-radius: 12px;
|
|
436
|
-
background: rgba(255, 45, 85, 0.1);
|
|
437
|
-
font-family: ${t.font.sans};
|
|
438
|
-
font-size: 14px;
|
|
439
|
-
line-height: 1.5;
|
|
440
|
-
color: ${t.colors.text};
|
|
441
|
-
|
|
442
|
-
.ico {
|
|
443
|
-
width: 22px;
|
|
444
|
-
height: 22px;
|
|
445
|
-
flex: none;
|
|
446
|
-
color: ${t.colors.dclRed};
|
|
447
|
-
}
|
|
448
|
-
|
|
449
|
-
/**
|
|
450
|
-
* Informational, not a failure. Used for "your payment went through, the NAME is on its way" and for the
|
|
451
|
-
* reason a purchase is not available yet (no price, not enough credits) — none of which is an error, and
|
|
452
|
-
* all of which would contradict themselves rendered in the red error treatment.
|
|
453
|
-
*/
|
|
454
|
-
&[data-tone='info'] {
|
|
455
|
-
background: ${t.colors.panel};
|
|
456
|
-
|
|
457
|
-
.ico {
|
|
458
|
-
color: ${t.colors.accent};
|
|
459
|
-
}
|
|
460
|
-
}
|
|
461
|
-
`,Ss=i.div`
|
|
462
|
-
display: flex;
|
|
463
|
-
flex-direction: column;
|
|
464
|
-
gap: 24px;
|
|
465
|
-
margin-top: 16px;
|
|
466
|
-
`;i(ln)`
|
|
467
|
-
display: grid;
|
|
468
|
-
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
469
|
-
gap: 28px 12px;
|
|
470
|
-
|
|
471
|
-
${t.media.maxWidth("mobile")} {
|
|
472
|
-
gap: 24px 12px;
|
|
473
|
-
}
|
|
474
|
-
`;i(cn)`
|
|
475
|
-
position: relative;
|
|
476
|
-
`;i.span`
|
|
477
|
-
position: absolute;
|
|
478
|
-
top: -12px;
|
|
479
|
-
left: 50%;
|
|
480
|
-
transform: translateX(-50%);
|
|
481
|
-
z-index: 2;
|
|
482
|
-
display: inline-flex;
|
|
483
|
-
align-items: center;
|
|
484
|
-
gap: 4px;
|
|
485
|
-
padding: 4px 12px 4px 8px;
|
|
486
|
-
border-radius: ${t.radius.pill};
|
|
487
|
-
background: ${t.gradients.flare};
|
|
488
|
-
font-family: ${t.font.sans};
|
|
489
|
-
font-size: 12px;
|
|
490
|
-
font-weight: 500;
|
|
491
|
-
line-height: 18px;
|
|
492
|
-
color: ${t.colors.white};
|
|
493
|
-
white-space: nowrap;
|
|
494
|
-
|
|
495
|
-
.ico {
|
|
496
|
-
width: 16px;
|
|
497
|
-
height: 16px;
|
|
498
|
-
}
|
|
499
|
-
`;const Es=i.div`
|
|
500
|
-
display: flex;
|
|
501
|
-
gap: 12px;
|
|
502
|
-
`;function Rs({name:n,priceCredits:o,onClose:a}){const{session:c}=nt(),{data:f,isError:j}=$t(c),d=kt(),x=We(),[l,y]=p.useState("confirm"),[g,C]=p.useState(""),[h,w]=p.useState(""),[b,u]=p.useState(!1),[v,S]=p.useState(null),[_,A]=p.useState(!1),[O,ee]=p.useState("preparing"),$=p.useRef(!1),R=g.trim().toLowerCase()===n.toLowerCase(),I=l==="completing"||b,z=o!=null?st(o):"—",V=o==null,P=f==null?void 0:f.credits,N=o!=null&&P!=null?o-P:0,W=N>0,Z=V?s("names.priceUnavailable"):null,D=mn().packs.slice(0,xn),{packs:B,recommended:U,closesGap:Q}=gn(D,N),F=B.find(m=>m.id===h)??U;p.useEffect(()=>{const m=Y=>{Y.key==="Escape"&&!I&&a()};return document.addEventListener("keydown",m),()=>document.removeEventListener("keydown",m)},[I,a]);async function H(){if(!(!c||!R||V||W||$.current)){$.current=!0,y("completing"),S(null),ee("preparing");try{const m=await Gn({name:n,identity:c.identity,signer:c.signer,onProgress:ee});Ce("Shop Completed Purchase",{items:[{item_id:null,contract_address:null,token_id:null,price_usd:Ge(o??0),category:"name",is_smart:!1}],purchase_type:"name",is_primary:!0,payment_type:"credits",value_credits:o??null,value_usd:Ge(o??0),transaction_hash:m.originTxHash??null,settlement:m.status}),d.invalidateQueries({queryKey:["usd-balance"]}),d.invalidateQueries({queryKey:["my-assets"]}),y(m.status==="registered"?"success":"pending")}catch(m){Ce(It(m)?"Shop Purchase Cancelled":"Shop Purchase Failed",{step:"submit",error_code:_t(m),purchase_type:"name"});const Y=m instanceof ze,re=m instanceof Pe;S(m instanceof Fe?s("names.errorRouteCost"):Y?s("names.errorNotRegistered"):re?s("names.errorSettlementUnknown"):(m==null?void 0:m.message)||s("names.errorGeneric")),A(Y||re),y("error")}finally{$.current=!1}}}async function k(){if(!(!c||!F||b)){u(!0);try{sessionStorage.removeItem(bn),sessionStorage.removeItem(wn),sessionStorage.setItem(Ve,n)}catch{}try{const m=await yn(F.id,{address:c.address,identity:c.identity});if(m.url){window.location.href=m.url;return}if(!m.orderId)throw new Error("Checkout returned neither a redirect url nor an order id");x(`/credits?order=${encodeURIComponent(m.orderId)}`)}catch(m){Tt(m,{flow:"name_buy_credits"});try{sessionStorage.removeItem(Ve)}catch{}S(s("buyModal.error.creditsCheckout")),A(!1),y("error"),u(!1)}}}const E=l!=="success"&&l!=="pending",T=St(c==null?void 0:c.providerType),L=T?2:1,se=T&&(O==="preparing"||O==="awaiting-confirmation"),ie=se?1:L,ke=se?s("names.confirming"):s("names.completing"),oe=O==="registering"?s("names.processingRegistering"):null,G=l==="confirm"&&W,te=l==="error"?s("names.errorTitle"):G?s("names.buyCreditsTitle"):s("names.buyTitle");return e.jsx(ts,{onClick:I?void 0:a,role:"presentation",children:e.jsxs(ns,{role:"dialog","aria-modal":"true","aria-label":te,onClick:m=>m.stopPropagation(),children:[E&&e.jsxs(e.Fragment,{children:[e.jsxs(Ee,{children:[e.jsx(Re,{children:te}),e.jsx(Te,{onClick:a,disabled:I,"aria-label":s("buyModal.close"),children:e.jsx(M,{name:"close"})})]}),e.jsxs(_e,{children:[s("names.myCreditsBalance")," ",e.jsx(q,{})," ",Se(f,j)]}),e.jsx(Ie,{})]}),G&&e.jsxs(Ss,{children:[e.jsxs(dn,{children:[e.jsx(hn,{}),e.jsxs(pn,{children:[e.jsx("b",{children:s("buyModal.insufficientFunds")})," ",s("buyModal.warningNeedToBuy")," ",e.jsx("b",{children:s("buyModal.warningCreditsAmount",{count:N})})," ",s("names.warningToPurchase"),ce()?null:e.jsxs(e.Fragment,{children:[" ",e.jsx(un,{href:Et("/credits"),target:"_blank",rel:"noopener noreferrer",children:s("buyModal.warningLearnMore")})]})]})]}),ce()?e.jsxs(pe,{"data-testid":"name-row-iap",children:[e.jsx(Ne,{"aria-hidden":!0,children:"@"}),e.jsxs(ue,{children:[e.jsxs(fe,{children:[n,e.jsx("span",{children:".dcl.eth"})]}),e.jsx(me,{children:s("names.subtitle")})]}),e.jsxs(xe,{children:[e.jsx(q,{}),z]})]}):null,ce()?null:e.jsx(e.Fragment,{children:e.jsx(fn,{packs:B,selectedId:F==null?void 0:F.id,onSelect:w,recommendedId:Q?U==null?void 0:U.id:void 0})}),e.jsxs(Es,{children:[e.jsx(Ke,{"data-variant":"outline",onClick:a,disabled:I,"data-testid":"name-topup-cancel",children:s("buyModal.cancel")}),ce()?null:e.jsx(Ke,{"data-variant":"gradient","data-testid":"name-buy-credits",disabled:!c||!F||b,onClick:()=>void k(),children:s("buyModal.buy")})]})]}),(l==="confirm"||l==="error")&&!G&&e.jsxs(e.Fragment,{children:[e.jsxs(pe,{children:[e.jsx(Ne,{"aria-hidden":!0,children:"@"}),e.jsxs(ue,{children:[e.jsxs(fe,{children:[n,e.jsx("span",{children:".dcl.eth"})]}),e.jsx(me,{children:s("names.subtitle")})]}),e.jsxs(xe,{children:[e.jsx(q,{}),z]})]}),l==="error"?e.jsxs(e.Fragment,{children:[e.jsxs(Me,{children:[e.jsx(M,{name:"info","aria-hidden":!0}),e.jsx("span",{children:v})]}),_?e.jsx(Le,{onClick:a,children:s("names.errorSpentDismiss")}):e.jsx(Le,{onClick:()=>y("confirm"),children:s("names.tryAgain")})]}):e.jsxs(e.Fragment,{children:[e.jsxs(as,{children:[e.jsx(ls,{children:s("names.confirmTitle")}),e.jsx(cs,{dangerouslySetInnerHTML:{__html:s("names.confirmBody",{name:`<b>@${Ts(n)}</b>`})}}),e.jsxs(ds,{children:[e.jsx(hs,{"aria-hidden":!0,children:"@"}),e.jsx(ps,{value:g,onChange:m=>C(m.target.value.replace(/[^a-zA-Z0-9]/g,"")),placeholder:"yourname","aria-label":s("names.reenterAria"),autoComplete:"off",spellCheck:!1,style:{width:`${Math.max(g.length,8)}ch`}}),e.jsx(us,{children:".dcl.eth"})]})]}),Z?e.jsxs(Me,{"data-tone":"info","data-testid":"name-blocked-reason",children:[e.jsx(M,{name:"info","aria-hidden":!0}),e.jsx("span",{children:Z})]}):null,e.jsx(Le,{onClick:()=>void H(),disabled:!R||!c||V||W,children:s("names.buyCta")})]})]}),l==="completing"&&e.jsxs(fs,{children:[e.jsx(ms,{src:Rt,alt:"",width:61,height:61}),e.jsxs(xs,{children:[e.jsx(gs,{children:ke}),e.jsxs(ys,{children:[e.jsx(ws,{"aria-hidden":!0,children:e.jsx("span",{})}),e.jsx(js,{"data-testid":"name-progress-count",children:`${ie}/${L}`})]}),oe?e.jsx(bs,{children:oe}):null]})]}),l==="pending"&&e.jsxs(e.Fragment,{children:[e.jsxs(Ee,{children:[e.jsx(Re,{children:s("names.pendingHeaderTitle")}),e.jsx(Te,{onClick:a,"aria-label":s("buyModal.close"),children:e.jsx(M,{name:"close"})})]}),e.jsxs(_e,{children:[s("names.myCreditsBalance")," ",e.jsx(q,{})," ",Se(f,j)]}),e.jsx(Ie,{}),e.jsxs(Me,{"data-tone":"info",children:[e.jsx(M,{name:"info","aria-hidden":!0}),e.jsxs("span",{children:[e.jsx("b",{children:s("names.pendingBannerBold")})," ",s("names.pendingBannerRest")]})]}),e.jsxs(pe,{style:{marginTop:20},children:[e.jsx(Ne,{"aria-hidden":!0,children:"@"}),e.jsxs(ue,{children:[e.jsxs(fe,{children:[n,e.jsx("span",{children:".dcl.eth"})]}),e.jsx(me,{children:s("names.subtitle")})]}),e.jsxs(xe,{children:[e.jsx(q,{}),z]})]}),e.jsx(Ye,{children:e.jsx(Xe,{onClick:()=>{a(),x("/my-items")},children:s("names.myItems")})})]}),l==="success"&&e.jsxs(e.Fragment,{children:[e.jsxs(Ee,{children:[e.jsx(Re,{children:s("names.successHeaderTitle")}),e.jsx(Te,{onClick:a,"aria-label":s("buyModal.close"),children:e.jsx(M,{name:"close"})})]}),e.jsxs(_e,{children:[s("names.myCreditsBalance")," ",e.jsx(q,{})," ",Se(f,j)]}),e.jsx(Ie,{}),e.jsxs(vs,{children:[e.jsx(Cs,{"aria-hidden":!0,children:e.jsx(M,{name:"check"})}),e.jsxs($s,{children:[e.jsx("b",{children:s("names.successBannerBold")})," ",s("names.successBannerRest")]})]}),e.jsxs(pe,{style:{marginTop:20},children:[e.jsxs(ss,{"data-testid":"name-success-tile",children:[e.jsx(is,{src:jn,alt:"","aria-hidden":!0,width:47,height:47}),e.jsxs(os,{children:[e.jsx("span",{"aria-hidden":!0,children:n}),e.jsx(rs,{src:Jn,alt:"","aria-hidden":!0,width:14,height:14})]})]}),e.jsxs(ue,{children:[e.jsxs(fe,{children:[n,e.jsx("span",{children:".dcl.eth"})]}),e.jsx(me,{children:s("names.subtitle")})]}),e.jsxs(xe,{children:[e.jsx(q,{}),z]})]}),e.jsxs(Ye,{children:[e.jsx(Xe,{onClick:()=>{a(),x("/my-items")},children:s("names.myItems")}),e.jsx(ks,{href:J.profileUrl,target:"_blank",rel:"noopener noreferrer",children:s("names.assignToAvatar")})]})]})]})})}function Ts(n){return n.replace(/[&<>"']/g,o=>({"&":"&","<":"<",">":">",'"':""","'":"'"})[o])}const _s="https://cdn.decentraland.org/@dcl/shop/1.13.1-35585926635.commit-02c8d2e/_assets/identity-icon-C8yAW_Gq.svg",Is="https://cdn.decentraland.org/@dcl/shop/1.13.1-35585926635.commit-02c8d2e/_assets/world-icon-6xQ-PmmW.svg",Ns="https://cdn.decentraland.org/@dcl/shop/1.13.1-35585926635.commit-02c8d2e/_assets/invite-icon-Bz6lCTuB.svg",Ls="data:image/svg+xml,%3csvg%20width='55.6797'%20height='63.6174'%20viewBox='0%200%2055.6797%2063.6174'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Vote'%3e%3cpath%20id='Vector'%20d='M0.055012%2039.1045C1.61191%2039.4989%202.83757%2039.3938%204.4307%2039.392L8.27108%2039.3878L20.7762%2039.3883L42.8819%2039.3904L50.0954%2039.3907C51.793%2039.3907%2054.0562%2039.5509%2055.6466%2039.0843C55.5909%2040.7931%2055.647%2042.8581%2055.6469%2044.5864L55.6479%2055.616L55.6559%2059.5618C55.6583%2060.6219%2055.8213%2061.9838%2055.261%2062.8837C55.2205%2062.9265%2055.1794%2062.9688%2055.1377%2063.0104C54.7986%2063.3482%2054.3791%2063.5594%2053.9021%2063.5761C52.0714%2063.642%2050.1544%2063.6097%2048.3241%2063.6078L37.4452%2063.6066L2.97352%2063.6103C2.2022%2063.6084%201.15943%2063.6718%200.589171%2063.0576C-0.204857%2062.2037%200.0327979%2060.3244%200.0349529%2059.1687L0.0414734%2054.3929C0.0413119%2049.3191%20-0.00749456%2044.1727%200.055012%2039.1045Z'%20fill='white'%20fill-opacity='0.8'/%3e%3cpath%20id='Subtract'%20d='M37.1168%200.00495927C38.1773%200.00461149%2039.2888%20-0.0284991%2040.3433%200.0811311C41.0714%200.15695%2041.7266%200.914583%2041.7857%201.63484C41.853%202.45491%2041.8268%203.31926%2041.8258%204.15144L41.8189%208.70418L41.8199%2023.9639L40.1099%2023.9659L13.8726%2023.963L13.8678%209.0909L13.8648%204.29793C13.8644%202.52652%2013.3942%200.34203%2015.6754%200.0342561C15.8907%200.016712%2016.237%200.0120998%2016.4557%200.0117952C21.6059%200.00480262%2026.761%200.0117634%2031.9107%200.00788896L37.1168%200.00495927ZM33.3834%206.17293C32.439%206.55612%2031.0531%208.12922%2030.3014%208.88191L25.8297%2013.3634C25.3537%2012.824%2023.3455%2010.7605%2022.8209%2010.4239C22.5581%2010.2549%2022.2566%2010.1546%2021.9449%2010.1329C21.4563%2010.1008%2020.9754%2010.2879%2020.6139%2010.6134C20.2442%2010.9428%2020.0227%2011.4077%2020.0006%2011.9024C19.9561%2013.0748%2021.3406%2014.1198%2022.1256%2014.8868C22.9429%2015.714%2024.1669%2017.1028%2025.1168%2017.67C26.1632%2018.2949%2027.3471%2017.2145%2027.9723%2016.4942C30.25%2014.2025%2032.5393%2011.9456%2034.8101%209.64949C35.2937%209.16062%2035.7138%208.69126%2035.6851%207.96199C35.6419%206.86558%2034.7821%206.09682%2033.6959%206.14656C33.5914%206.15085%2033.4872%206.16001%2033.3834%206.17293Z'%20fill='%23FF7439'/%3e%3cpath%20id='Vector_2'%20d='M45.5498%2015.976C46.6399%2015.986%2049.9504%2015.7705%2050.7361%2016.241C51.0104%2016.4053%2051.2831%2016.6446%2051.4181%2016.9397C51.892%2017.9763%2052.1015%2019.357%2052.3802%2020.4819L54.0582%2027.2308C54.5046%2028.9073%2054.9023%2030.6043%2055.3338%2032.2824C55.6029%2033.329%2055.9417%2034.4293%2054.9705%2035.2255C54.8158%2035.359%2054.4427%2035.5934%2054.2329%2035.6091C52.7731%2035.7184%2051.1693%2035.6701%2049.7108%2035.6679L39.4635%2035.6649L14.5239%2035.6632C10.471%2035.6631%206.41808%2035.6665%202.36531%2035.6698C1.79359%2035.6657%201.33794%2035.6604%200.844568%2035.337C-0.57365%2034.4073%200.381076%2032.2112%200.72189%2030.8501L1.93462%2025.9936L3.28579%2020.566C3.53371%2019.5688%203.77194%2018.5694%204.04289%2017.5781C4.30559%2016.6172%204.74298%2016.1492%205.73966%2015.9892C7.15095%2015.9419%208.72017%2015.9778%2010.1434%2015.9809L10.1451%2023.9585C7.37011%2024.097%207.74242%2027.5535%209.84963%2027.6469C11.6268%2027.7258%2013.6164%2027.6909%2015.4098%2027.691L26.229%2027.6915L39.1339%2027.691L43.273%2027.6909C44.748%2027.6909%2047.2174%2028.0848%2047.3773%2025.9908C47.4212%2025.4807%2047.2565%2024.9745%2046.9209%2024.5879C46.5265%2024.141%2046.1143%2024.0046%2045.5418%2023.9673L45.5498%2015.976Z'%20fill='white'/%3e%3c/g%3e%3c/svg%3e",Ms=i.div`
|
|
503
|
-
width: 100%;
|
|
504
|
-
min-width: 0;
|
|
505
|
-
`,As=i.nav`
|
|
506
|
-
display: flex;
|
|
507
|
-
align-items: center;
|
|
508
|
-
gap: 6px;
|
|
509
|
-
margin: 4px 0 16px;
|
|
510
|
-
font-family: ${t.font.sans};
|
|
511
|
-
font-size: 12px;
|
|
512
|
-
line-height: 1;
|
|
513
|
-
color: ${t.colors.gray4};
|
|
514
|
-
${vn};
|
|
515
|
-
`,zs=i.button`
|
|
516
|
-
border: 0;
|
|
517
|
-
background: none;
|
|
518
|
-
padding: 0;
|
|
519
|
-
cursor: pointer;
|
|
520
|
-
font: inherit;
|
|
521
|
-
color: ${t.colors.gray4};
|
|
522
|
-
|
|
523
|
-
&:hover {
|
|
524
|
-
color: ${t.colors.white};
|
|
525
|
-
text-decoration: underline;
|
|
526
|
-
}
|
|
527
|
-
&:focus-visible {
|
|
528
|
-
outline: 2px solid ${t.colors.white};
|
|
529
|
-
outline-offset: 2px;
|
|
530
|
-
}
|
|
531
|
-
`,Ps=i.span`
|
|
532
|
-
font-weight: 700;
|
|
533
|
-
color: ${t.colors.softWhite};
|
|
534
|
-
`,Ws=i.div`
|
|
535
|
-
display: flex;
|
|
536
|
-
flex-direction: column;
|
|
537
|
-
gap: 48px;
|
|
538
|
-
padding-bottom: 48px;
|
|
539
|
-
|
|
540
|
-
${t.media.maxWidth("mobile")} {
|
|
541
|
-
gap: 32px;
|
|
542
|
-
padding-bottom: 32px;
|
|
543
|
-
}
|
|
544
|
-
`,Fs=i.div`
|
|
545
|
-
position: relative;
|
|
546
|
-
border: 1px solid ${t.colors.magenta};
|
|
547
|
-
border-radius: 24px;
|
|
548
|
-
overflow: hidden;
|
|
549
|
-
padding: 88px 48px;
|
|
550
|
-
display: flex;
|
|
551
|
-
flex-direction: column;
|
|
552
|
-
align-items: center;
|
|
553
|
-
gap: 48px;
|
|
554
|
-
text-align: center;
|
|
555
|
-
background: ${t.colors.overlay};
|
|
556
|
-
|
|
557
|
-
${t.media.maxWidth("mobile")} {
|
|
558
|
-
padding: 40px 20px;
|
|
559
|
-
gap: 28px;
|
|
560
|
-
}
|
|
561
|
-
`,Bs=i.div`
|
|
562
|
-
display: flex;
|
|
563
|
-
flex-direction: column;
|
|
564
|
-
align-items: center;
|
|
565
|
-
gap: 12px;
|
|
566
|
-
`,Us=i.h1`
|
|
567
|
-
margin: 0;
|
|
568
|
-
font-family: ${t.font.sans};
|
|
569
|
-
font-weight: 600;
|
|
570
|
-
font-size: 40px;
|
|
571
|
-
line-height: 1.167;
|
|
572
|
-
color: ${t.colors.white};
|
|
573
|
-
|
|
574
|
-
${t.media.maxWidth("mobile")} {
|
|
575
|
-
font-size: 26px;
|
|
576
|
-
}
|
|
577
|
-
`,Os=i.p`
|
|
578
|
-
margin: 0;
|
|
579
|
-
max-width: 760px;
|
|
580
|
-
font-family: ${t.font.sans};
|
|
581
|
-
font-weight: 500;
|
|
582
|
-
font-size: 24px;
|
|
583
|
-
line-height: 1.334;
|
|
584
|
-
color: #ecebed;
|
|
585
|
-
|
|
586
|
-
${t.media.maxWidth("mobile")} {
|
|
587
|
-
font-size: 16px;
|
|
588
|
-
}
|
|
589
|
-
`,Hs=i.div`
|
|
590
|
-
width: min(785px, 100%);
|
|
591
|
-
display: flex;
|
|
592
|
-
flex-direction: column;
|
|
593
|
-
gap: 12px;
|
|
594
|
-
`,Ds=i.div`
|
|
595
|
-
position: relative;
|
|
596
|
-
`,Gs=i("div",Cn("invalid"))`
|
|
597
|
-
display: flex;
|
|
598
|
-
align-items: center;
|
|
599
|
-
gap: 8px;
|
|
600
|
-
padding: 8px 8px 8px 16px;
|
|
601
|
-
background: ${t.colors.softWhite};
|
|
602
|
-
/* Figma 1368:349148 gives the field a 3px Orange edge — it is the page's one input, and the design
|
|
603
|
-
leans on that weight to carry it. Red only when what has been typed cannot be claimed. */
|
|
604
|
-
border: 3px solid ${({invalid:n})=>n?t.colors.dclRed:t.colors.orange};
|
|
605
|
-
border-radius: 20px;
|
|
606
|
-
|
|
607
|
-
&:focus-within {
|
|
608
|
-
border-color: ${({invalid:n})=>n?t.colors.dclRed:t.colors.magenta};
|
|
609
|
-
}
|
|
610
|
-
|
|
611
|
-
${t.media.maxWidth("mobile")} {
|
|
612
|
-
border-radius: 16px;
|
|
613
|
-
}
|
|
614
|
-
`,qs=i.span`
|
|
615
|
-
position: absolute;
|
|
616
|
-
left: -9999px;
|
|
617
|
-
top: 0;
|
|
618
|
-
visibility: hidden;
|
|
619
|
-
pointer-events: none;
|
|
620
|
-
white-space: pre;
|
|
621
|
-
font-family: ${t.font.sans};
|
|
622
|
-
font-size: 20px;
|
|
623
|
-
font-weight: 600;
|
|
624
|
-
line-height: 1.6;
|
|
625
|
-
|
|
626
|
-
/* An empty field paints the PLACEHOLDER, which is lighter than a typed value — so the mirror has to
|
|
627
|
-
be lighter too. Measuring the placeholder at the value's weight made the box a few pixels wider
|
|
628
|
-
than the text in it, and ".dcl.eth" sat that far off the end of the word. */
|
|
629
|
-
&[data-placeholder] {
|
|
630
|
-
font-weight: 400;
|
|
631
|
-
}
|
|
632
|
-
|
|
633
|
-
${t.media.maxWidth("mobile")} {
|
|
634
|
-
font-size: 16px;
|
|
635
|
-
}
|
|
636
|
-
`,Ks=i.div`
|
|
637
|
-
position: absolute;
|
|
638
|
-
top: calc(100% + 8px);
|
|
639
|
-
left: 0;
|
|
640
|
-
right: 0;
|
|
641
|
-
z-index: 2;
|
|
642
|
-
display: flex;
|
|
643
|
-
align-items: center;
|
|
644
|
-
gap: 8px;
|
|
645
|
-
padding: 8px 12px;
|
|
646
|
-
border-radius: 8px;
|
|
647
|
-
background: #ffcdd4;
|
|
648
|
-
color: #ec303a;
|
|
649
|
-
font-family: ${t.font.sans};
|
|
650
|
-
font-size: 14px;
|
|
651
|
-
font-weight: 500;
|
|
652
|
-
line-height: 1.2;
|
|
653
|
-
text-align: left;
|
|
654
|
-
|
|
655
|
-
${t.media.maxWidth("mobile")} {
|
|
656
|
-
position: static;
|
|
657
|
-
margin-top: 8px;
|
|
658
|
-
align-items: flex-start;
|
|
659
|
-
flex-wrap: wrap;
|
|
660
|
-
}
|
|
661
|
-
`,lt=i.a`
|
|
662
|
-
display: inline-flex;
|
|
663
|
-
align-items: center;
|
|
664
|
-
gap: 2px;
|
|
665
|
-
margin-left: auto;
|
|
666
|
-
font-weight: 600;
|
|
667
|
-
text-decoration: underline;
|
|
668
|
-
text-transform: uppercase;
|
|
669
|
-
white-space: nowrap;
|
|
670
|
-
|
|
671
|
-
${t.media.maxWidth("mobile")} {
|
|
672
|
-
margin-left: 0;
|
|
673
|
-
}
|
|
674
|
-
`,Vs=i(lt)`
|
|
675
|
-
color: #ec303a;
|
|
676
|
-
`,Zs=i.label`
|
|
677
|
-
flex: 1;
|
|
678
|
-
min-width: 0;
|
|
679
|
-
display: flex;
|
|
680
|
-
align-items: center;
|
|
681
|
-
gap: 0;
|
|
682
|
-
cursor: text;
|
|
683
|
-
overflow: hidden;
|
|
684
|
-
`,Qs=i.span`
|
|
685
|
-
flex: none;
|
|
686
|
-
margin-right: 8px;
|
|
687
|
-
font-family: ${t.font.sans};
|
|
688
|
-
font-size: 26px;
|
|
689
|
-
font-weight: 500;
|
|
690
|
-
line-height: 1;
|
|
691
|
-
color: ${t.colors.muted2};
|
|
692
|
-
|
|
693
|
-
${t.media.maxWidth("mobile")} {
|
|
694
|
-
font-size: 20px;
|
|
695
|
-
}
|
|
696
|
-
`,Ys=i.input`
|
|
697
|
-
flex: 0 1 auto;
|
|
698
|
-
min-width: 0;
|
|
699
|
-
max-width: 100%;
|
|
700
|
-
border: 0;
|
|
701
|
-
outline: none;
|
|
702
|
-
background: transparent;
|
|
703
|
-
font-family: ${t.font.sans};
|
|
704
|
-
font-size: 20px;
|
|
705
|
-
font-weight: 600;
|
|
706
|
-
line-height: 1.6;
|
|
707
|
-
color: ${t.colors.text};
|
|
708
|
-
padding: 0;
|
|
709
|
-
|
|
710
|
-
&::placeholder {
|
|
711
|
-
color: ${t.colors.muted1};
|
|
712
|
-
font-weight: 400;
|
|
713
|
-
}
|
|
714
|
-
|
|
715
|
-
${t.media.maxWidth("mobile")} {
|
|
716
|
-
font-size: 16px;
|
|
717
|
-
}
|
|
718
|
-
`,Xs=i.span`
|
|
719
|
-
flex: none;
|
|
720
|
-
/* Flush against the name: "yourname.dcl.eth" has to read as one address, and at 20px even a couple of
|
|
721
|
-
pixels here look like a space someone typed by mistake. */
|
|
722
|
-
margin-left: 0;
|
|
723
|
-
/* Not selectable: it is the fixed part of the address, not something the reader typed. */
|
|
724
|
-
user-select: none;
|
|
725
|
-
-webkit-user-select: none;
|
|
726
|
-
font-family: ${t.font.sans};
|
|
727
|
-
font-size: 20px;
|
|
728
|
-
font-weight: 400;
|
|
729
|
-
line-height: 1.6;
|
|
730
|
-
color: ${t.colors.muted1};
|
|
731
|
-
|
|
732
|
-
${t.media.maxWidth("mobile")} {
|
|
733
|
-
font-size: 16px;
|
|
734
|
-
}
|
|
735
|
-
`,Js=i.span`
|
|
736
|
-
flex: none;
|
|
737
|
-
font-family: ${t.font.sans};
|
|
738
|
-
font-size: 14px;
|
|
739
|
-
line-height: 1.43;
|
|
740
|
-
color: ${t.colors.muted2};
|
|
741
|
-
white-space: nowrap;
|
|
742
|
-
`,ct=i.button`
|
|
743
|
-
flex: none;
|
|
744
|
-
display: inline-flex;
|
|
745
|
-
align-items: center;
|
|
746
|
-
justify-content: center;
|
|
747
|
-
gap: 8px;
|
|
748
|
-
height: 52px;
|
|
749
|
-
padding: 0 24px;
|
|
750
|
-
border: 0;
|
|
751
|
-
border-radius: 12px;
|
|
752
|
-
cursor: pointer;
|
|
753
|
-
background: ${t.gradients.buyBtn};
|
|
754
|
-
color: ${t.colors.softWhite};
|
|
755
|
-
font-family: ${t.font.sans};
|
|
756
|
-
font-weight: 600;
|
|
757
|
-
font-size: 15px;
|
|
758
|
-
letter-spacing: 0.46px;
|
|
759
|
-
line-height: 24px;
|
|
760
|
-
text-transform: uppercase;
|
|
761
|
-
transition: background-image 0.15s ease;
|
|
762
|
-
|
|
763
|
-
/* Both ends stay on background-IMAGE: a gradient cannot interpolate to a plain colour, so swapping
|
|
764
|
-
the background shorthand instead blanks the button for the length of the transition. */
|
|
765
|
-
&:hover:not(:disabled),
|
|
766
|
-
&:active:not(:disabled) {
|
|
767
|
-
background-image: linear-gradient(${t.colors.dclRed}, ${t.colors.dclRed});
|
|
768
|
-
}
|
|
769
|
-
&:focus-visible {
|
|
770
|
-
outline: 2px solid ${t.colors.white};
|
|
771
|
-
outline-offset: 2px;
|
|
772
|
-
}
|
|
773
|
-
&:disabled {
|
|
774
|
-
cursor: not-allowed;
|
|
775
|
-
opacity: 0.5;
|
|
776
|
-
}
|
|
777
|
-
|
|
778
|
-
${t.media.maxWidth("mobile")} {
|
|
779
|
-
display: none;
|
|
780
|
-
}
|
|
781
|
-
`,ei=i(ct)`
|
|
782
|
-
display: none;
|
|
783
|
-
|
|
784
|
-
${t.media.maxWidth("mobile")} {
|
|
785
|
-
display: inline-flex;
|
|
786
|
-
width: 100%;
|
|
787
|
-
height: 48px;
|
|
788
|
-
border-radius: 12px;
|
|
789
|
-
}
|
|
790
|
-
`,ti=i.span`
|
|
791
|
-
display: inline-flex;
|
|
792
|
-
align-items: center;
|
|
793
|
-
gap: 4px;
|
|
794
|
-
font-size: 18px;
|
|
795
|
-
font-weight: 600;
|
|
796
|
-
|
|
797
|
-
.ico {
|
|
798
|
-
width: 13.26px;
|
|
799
|
-
height: 14px;
|
|
800
|
-
}
|
|
801
|
-
`,ni=i.div`
|
|
802
|
-
display: flex;
|
|
803
|
-
align-items: center;
|
|
804
|
-
gap: 8px;
|
|
805
|
-
padding: 8px 14px;
|
|
806
|
-
border-radius: 8px;
|
|
807
|
-
font-family: ${t.font.sans};
|
|
808
|
-
font-size: 13px;
|
|
809
|
-
font-weight: 500;
|
|
810
|
-
text-align: left;
|
|
811
|
-
|
|
812
|
-
background: ${({tone:n})=>n==="error"?"rgba(255, 45, 85, 0.12)":n==="ok"?"rgba(30, 166, 114, 0.14)":"rgba(255,255,255,0.14)"};
|
|
813
|
-
color: ${({tone:n})=>n==="error"?t.colors.dclRed:n==="ok"?"#0f7a4f":"#ecebed"};
|
|
814
|
-
|
|
815
|
-
.ico {
|
|
816
|
-
width: 16px;
|
|
817
|
-
height: 16px;
|
|
818
|
-
flex: none;
|
|
819
|
-
}
|
|
820
|
-
`,ge=i(ni)`
|
|
821
|
-
position: absolute;
|
|
822
|
-
top: calc(100% + 8px);
|
|
823
|
-
left: 0;
|
|
824
|
-
right: 0;
|
|
825
|
-
z-index: 2;
|
|
826
|
-
|
|
827
|
-
/* Static on mobile, as TakenBanner is: the claim button sits below InputWrap there, so anything
|
|
828
|
-
floating out of the input lands on top of it. */
|
|
829
|
-
${t.media.maxWidth("mobile")} {
|
|
830
|
-
position: static;
|
|
831
|
-
margin-top: 8px;
|
|
832
|
-
}
|
|
833
|
-
`,si=i(lt)`
|
|
834
|
-
color: inherit;
|
|
835
|
-
`,ii=i.section`
|
|
836
|
-
display: flex;
|
|
837
|
-
flex-direction: column;
|
|
838
|
-
gap: 48px;
|
|
839
|
-
padding: 0 48px;
|
|
840
|
-
|
|
841
|
-
${t.media.maxWidth("mobile")} {
|
|
842
|
-
gap: 32px;
|
|
843
|
-
padding: 0 20px;
|
|
844
|
-
}
|
|
845
|
-
`,oi=i.div`
|
|
846
|
-
display: flex;
|
|
847
|
-
flex-direction: column;
|
|
848
|
-
align-items: center;
|
|
849
|
-
gap: 24px;
|
|
850
|
-
`,ri=i.h2`
|
|
851
|
-
margin: 0;
|
|
852
|
-
text-align: center;
|
|
853
|
-
font-family: ${t.font.sans};
|
|
854
|
-
font-weight: 600;
|
|
855
|
-
font-size: 32px;
|
|
856
|
-
line-height: 1.167;
|
|
857
|
-
color: ${t.colors.white};
|
|
858
|
-
|
|
859
|
-
${t.media.maxWidth("mobile")} {
|
|
860
|
-
font-size: 22px;
|
|
861
|
-
}
|
|
862
|
-
`,ai=i.p`
|
|
863
|
-
margin: 0;
|
|
864
|
-
max-width: 907px;
|
|
865
|
-
text-align: center;
|
|
866
|
-
font-family: ${t.font.sans};
|
|
867
|
-
font-weight: 400;
|
|
868
|
-
font-size: 20px;
|
|
869
|
-
line-height: 1.57;
|
|
870
|
-
color: ${t.colors.gray4};
|
|
871
|
-
|
|
872
|
-
${t.media.maxWidth("mobile")} {
|
|
873
|
-
font-size: 16px;
|
|
874
|
-
}
|
|
875
|
-
`,li=i.div`
|
|
876
|
-
display: grid;
|
|
877
|
-
grid-template-columns: repeat(4, 1fr);
|
|
878
|
-
gap: 24px;
|
|
879
|
-
align-items: stretch;
|
|
880
|
-
|
|
881
|
-
${t.media.maxWidth("lg")} {
|
|
882
|
-
grid-template-columns: repeat(2, 1fr);
|
|
883
|
-
}
|
|
884
|
-
${t.media.maxWidth("mobile")} {
|
|
885
|
-
grid-template-columns: 1fr;
|
|
886
|
-
}
|
|
887
|
-
`,be=i.article`
|
|
888
|
-
min-width: 0;
|
|
889
|
-
display: flex;
|
|
890
|
-
flex-direction: column;
|
|
891
|
-
gap: 32px;
|
|
892
|
-
padding: 24px;
|
|
893
|
-
background: ${t.colors.overlay};
|
|
894
|
-
border-radius: 24px;
|
|
895
|
-
|
|
896
|
-
@media (forced-colors: active) {
|
|
897
|
-
outline: 1px solid CanvasText;
|
|
898
|
-
}
|
|
899
|
-
|
|
900
|
-
${t.media.maxWidth("mobile")} {
|
|
901
|
-
gap: 20px;
|
|
902
|
-
padding: 20px;
|
|
903
|
-
}
|
|
904
|
-
`,ye=i.img`
|
|
905
|
-
display: block;
|
|
906
|
-
align-self: flex-start;
|
|
907
|
-
height: 55px;
|
|
908
|
-
width: auto;
|
|
909
|
-
`,we=i.div`
|
|
910
|
-
flex: 1;
|
|
911
|
-
display: flex;
|
|
912
|
-
flex-direction: column;
|
|
913
|
-
gap: 12px;
|
|
914
|
-
`,je=i.h3`
|
|
915
|
-
margin: 0;
|
|
916
|
-
font-family: ${t.font.sans};
|
|
917
|
-
font-weight: 700;
|
|
918
|
-
font-size: 20px;
|
|
919
|
-
line-height: 1.57;
|
|
920
|
-
text-transform: uppercase;
|
|
921
|
-
color: ${t.colors.white};
|
|
922
|
-
`,ve=i.p`
|
|
923
|
-
margin: 0;
|
|
924
|
-
font-family: ${t.font.sans};
|
|
925
|
-
font-weight: 400;
|
|
926
|
-
font-size: 14px;
|
|
927
|
-
line-height: 1.57;
|
|
928
|
-
color: ${t.colors.media};
|
|
929
|
-
`,ci=i.span`
|
|
930
|
-
font-weight: 700;
|
|
931
|
-
color: ${t.colors.white};
|
|
932
|
-
`,Je=i.a`
|
|
933
|
-
display: inline-flex;
|
|
934
|
-
align-items: center;
|
|
935
|
-
gap: 2px;
|
|
936
|
-
margin-top: auto;
|
|
937
|
-
font-family: ${t.font.sans};
|
|
938
|
-
font-weight: 500;
|
|
939
|
-
font-size: 14px;
|
|
940
|
-
line-height: 30px;
|
|
941
|
-
color: ${t.colors.softWhite};
|
|
942
|
-
text-decoration: underline;
|
|
943
|
-
|
|
944
|
-
&:focus-visible {
|
|
945
|
-
outline: 2px solid ${t.colors.softWhite};
|
|
946
|
-
outline-offset: 2px;
|
|
947
|
-
}
|
|
948
|
-
|
|
949
|
-
.ico {
|
|
950
|
-
width: 13px;
|
|
951
|
-
height: 13px;
|
|
952
|
-
}
|
|
953
|
-
`,di=i.span`
|
|
954
|
-
position: absolute;
|
|
955
|
-
width: 1px;
|
|
956
|
-
height: 1px;
|
|
957
|
-
padding: 0;
|
|
958
|
-
margin: -1px;
|
|
959
|
-
overflow: hidden;
|
|
960
|
-
clip: rect(0, 0, 0, 0);
|
|
961
|
-
white-space: nowrap;
|
|
962
|
-
border: 0;
|
|
963
|
-
`,hi="https://docs.decentraland.org/creator/worlds/about/",pi="https://governance.decentraland.org";function et(n){const o=typeof window<"u"?window.location.hostname:"";return`${o.endsWith("decentraland.org")?"https://decentraland.org":o.endsWith("decentraland.today")?"https://decentraland.today":"https://decentraland.zone"}/marketplace/names/browse?search=${encodeURIComponent(n)}`}function ui({onBack:n}){it({title:s("seo.names.title"),description:s("seo.names.description")});const{session:o,signIn:a}=nt(),c=We(),f=ut(),{pathname:j,search:d}=f,x=f.state,l=typeof(x==null?void 0:x.resumeName)=="string"?x:void 0,y=qn(),{data:g}=ot(),C=g?rt(ne,g):null,[h,w]=p.useState((l==null?void 0:l.resumeName)??""),[b,u]=p.useState("idle"),[v,S]=p.useState(!1),[_,A]=p.useState((l==null?void 0:l.resumeName)??""),[O,ee]=p.useState(!!(l!=null&&l.resumeName)),[$,R]=p.useState(()=>{var k;return typeof window<"u"&&!!((k=window.matchMedia)!=null&&k.call(window,"(prefers-reduced-motion: reduce)").matches)});p.useEffect(()=>{var T;const k=(T=window.matchMedia)==null?void 0:T.call(window,"(prefers-reduced-motion: reduce)");if(!k)return;const E=L=>R(L.matches);return k.addEventListener("change",E),()=>k.removeEventListener("change",E)},[]);const I=s("names.placeholderExamples"),z=p.useMemo(()=>I.split(",").map(k=>k.trim()).filter(Boolean),[I]),P=Xn(z,!O&&!h&&!$)||s("names.inputPlaceholder"),N=p.useRef(null),[W,Z]=p.useState(void 0);p.useLayoutEffect(()=>{N.current&&Z(N.current.getBoundingClientRect().width)},[h,P]),p.useEffect(()=>{if(!Ze(h).ok){u(h.length===0?"idle":"invalid");return}u("checking");const E=new AbortController,T=setTimeout(()=>{(async()=>{try{const L=await Fn(h,{signal:E.signal});u(L)}catch(L){if((L==null?void 0:L.name)==="AbortError")return;u("error")}})()},400);return()=>{clearTimeout(T),E.abort()}},[h]);const D=Ze(h),B=D.ok&&(b==="available"||b==="error"),U=y&&B,Q=!y&&B;function F(){if(U){if(!o){a();return}S(!0)}}p.useEffect(()=>{l!=null&&l.resumeName&&c(`${j}${d}`,{replace:!0,state:null})},[l==null?void 0:l.resumeName,c,j,d]),p.useEffect(()=>{if(_){if(h.toLowerCase()!==_.toLowerCase()){A("");return}if(!(b==="idle"||b==="checking")){if(!B){A("");return}!y||!o||(A(""),S(!0))}}},[_,h,b,B,y,o]);const H=e.jsxs(e.Fragment,{children:[s("names.claim"),C!=null?e.jsxs(ti,{children:[e.jsx(q,{}),st(C)]}):null]});return e.jsxs(Ms,{"data-testid":"names-page",children:[e.jsxs(As,{"aria-label":s("names.breadcrumbAria"),children:[e.jsx(zs,{onClick:n,children:s("names.breadcrumbCollectibles")}),e.jsx("span",{"aria-hidden":!0,children:">"}),e.jsx(Ps,{children:s("names.breadcrumbCurrent")})]}),e.jsxs(Ws,{children:[e.jsxs(Fs,{children:[e.jsxs(Bs,{children:[e.jsx(Us,{children:s("names.heroTitle")}),e.jsx(Os,{children:s("names.heroSubtitle")})]}),e.jsxs(Hs,{children:[e.jsxs(Ds,{"data-testid":"names-input-wrap",children:[e.jsxs(Gs,{invalid:b==="taken",children:[e.jsxs(Zs,{children:[e.jsx(Qs,{"aria-hidden":!0,children:"@"}),e.jsx(Ys,{value:h,onChange:k=>w(zn(k.target.value)),placeholder:P,"aria-label":s("names.inputAria"),autoComplete:"off",spellCheck:!1,maxLength:$e,onFocus:()=>ee(!0),style:{width:W!=null?`${W}px`:void 0}}),e.jsx(qs,{ref:N,"aria-hidden":!0,"data-placeholder":!h||void 0,children:h||P}),e.jsx(Xs,{children:s("names.suffix")})]}),h.length>0?e.jsxs(Js,{"aria-hidden":!0,children:[h.length,"/",$e]}):null,e.jsx(ct,{onClick:F,disabled:!U,"data-testid":"names-claim",children:H})]}),b==="taken"?e.jsxs(Ks,{role:"status","data-testid":"names-taken",children:[e.jsx(M,{name:"info",size:16,"aria-hidden":!0}),e.jsx("span",{children:s("names.taken")}),e.jsxs(Vs,{href:et(h),target:"_blank",rel:"noopener noreferrer",children:[s("names.takenMakeOffer"),e.jsx(M,{name:"external-link",size:13,"aria-hidden":!0})]})]}):null,b==="checking"?e.jsx(ge,{tone:"muted",role:"status","data-testid":"names-checking",children:s("names.checking")}):Q?e.jsxs(ge,{tone:"muted",role:"status","data-testid":"names-disabled",children:[e.jsx(M,{name:"info",size:16,"aria-hidden":!0}),e.jsx("span",{children:s("names.registrationDisabled")}),e.jsxs(si,{href:et(h),target:"_blank",rel:"noopener noreferrer",children:[s("names.registrationDisabledLink"),e.jsx(M,{name:"external-link",size:13,"aria-hidden":!0})]})]}):b==="error"?e.jsx(ge,{tone:"muted",role:"status",children:s("names.checkError")}):b==="invalid"&&!D.ok&&D.reason==="too-short"?e.jsx(ge,{tone:"muted",role:"status",children:s("names.tooShort",{min:at})}):null]}),e.jsx(ei,{onClick:F,disabled:!U,children:H}),e.jsx(di,{role:"status","aria-live":"polite",children:b==="available"?s("names.available",{name:h}):""})]})]}),e.jsxs(ii,{children:[e.jsxs(oi,{children:[e.jsx(ri,{children:s("names.whyTitle")}),e.jsx(ai,{children:s("names.whyIntro")})]}),e.jsxs(li,{children:[e.jsxs(be,{children:[e.jsx(ye,{src:_s,alt:""}),e.jsxs(we,{children:[e.jsx(je,{children:s("names.why1Title")}),e.jsx(ve,{children:s("names.why1")})]})]}),e.jsxs(be,{children:[e.jsx(ye,{src:Is,alt:""}),e.jsxs(we,{children:[e.jsx(je,{children:s("names.why2Title")}),e.jsxs(ve,{children:[s("names.why2")," ",e.jsx(ci,{children:s("names.why2Address")})]}),e.jsxs(Je,{href:hi,target:"_blank",rel:"noopener noreferrer",children:[s("names.learnMore"),e.jsx(M,{name:"external-link","aria-hidden":!0})]})]})]}),e.jsxs(be,{children:[e.jsx(ye,{src:Ns,alt:""}),e.jsxs(we,{children:[e.jsx(je,{children:s("names.why3Title")}),e.jsx(ve,{children:s("names.why3")})]})]}),e.jsxs(be,{children:[e.jsx(ye,{src:Ls,alt:""}),e.jsxs(we,{children:[e.jsx(je,{children:s("names.why4Title")}),e.jsx(ve,{children:s("names.why4")}),e.jsxs(Je,{href:pi,target:"_blank",rel:"noopener noreferrer",children:[s("names.learnMore"),e.jsx(M,{name:"external-link","aria-hidden":!0})]})]})]})]})]})]}),v?e.jsx(Rs,{name:h,priceCredits:C,onClose:()=>S(!1)}):null]})}const fi=i.p`
|
|
964
|
-
display: flex;
|
|
965
|
-
align-items: center;
|
|
966
|
-
gap: 10px;
|
|
967
|
-
background: ${t.colors.rarityBg};
|
|
968
|
-
color: ${t.colors.accent};
|
|
969
|
-
border-radius: 12px;
|
|
970
|
-
padding: 12px 16px;
|
|
971
|
-
margin-bottom: 14px;
|
|
972
|
-
font-weight: 600;
|
|
973
|
-
font-size: 14px;
|
|
974
|
-
|
|
975
|
-
&[data-variant='warn'] {
|
|
976
|
-
background: rgba(211, 51, 51, 0.1);
|
|
977
|
-
color: ${t.colors.err};
|
|
978
|
-
}
|
|
979
|
-
`,tt=48,mi=["all","on_sale","not_for_sale"],xi=n=>n?"all":"on_sale";function Di({contracts:n,hideNames:o=!1,seo:a,lockStatus:c}={}){const[f]=ft(),j=We(),d=(f.get("q")??"").trim().toLowerCase(),x=(f.get("q")??"").trim();it(a??{title:x?s("seo.collectibles.searchTitle",{query:x}):s("seo.collectibles.title"),description:s("seo.collectibles.description")});const l=xi(!!d),y=Nt(),g=y&&f.get("deals")==="true",C=p.useMemo(()=>({category:"all",status:l,subCategory:null,rarities:[],priceMin:"",priceMax:"",smart:!1,deals:!1,sort:g?"discount":"newest"}),[l,g]),[h,w]=Wt(C),{subCategory:b,rarities:u,priceMin:v,priceMax:S,smart:_,sort:A}=h,O=y&&h.deals,$=Bt.map(r=>r.key).filter(r=>!(o&&r==="names")).includes(h.category)?h.category:"all",R=c??(mi.includes(h.status)?h.status:l);Ut(`${$}:${b??""}`);const[I,z]=p.useState(!1);p.useEffect(()=>{if(!I)return;const r=le=>{le.key==="Escape"&&z(!1)};document.addEventListener("keydown",r);const K=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.removeEventListener("keydown",r),document.body.style.overflow=K}},[I]);const V=n!==void 0&&n.length===0,P=R==="on_sale",N=v&&!Number.isNaN(Number(v))?Number(v):void 0,W=S&&!Number.isNaN(Number(S))?Number(S):void 0,Z=Lt(),D=b?Zt[b]:void 0,B=O?Ot:Ht,U=(B.find(r=>r.key===A)??B[0]).server,Q={category:$,rarities:u.length?u:void 0,wearableCategories:D,minPriceCredits:N,maxPriceCredits:W,search:d||void 0,sortBy:U,isSmart:_||void 0,onSale:!0,discounted:O||void 0,listingType:Z?void 0:"primary",contractAddresses:n!=null&&n.length?n:void 0},F={category:$,rarities:u.length?u:void 0,wearableCategories:D,search:d||void 0,sortBy:U,isWearableSmart:_||void 0,isOnSale:R==="not_for_sale"?!1:void 0,contractAddresses:n!=null&&n.length?n:void 0},{items:H,total:k,isLoading:E,isPlaceholderData:T,error:L,hasNextPage:se,isFetchingNextPage:ie,isFetchNextPageError:ke,fetchNextPage:oe}=Vt(P?["shop-items",Q]:["catalog-items",F],r=>P?zt({...Q,first:tt,skip:r}):Pt({...F,first:tt,skip:r}),{enabled:$!=="names"&&!V}),G=k,{data:te,isError:m,isPending:Y}=ot(),re=r=>te&&r.manaWei?rt(r.manaWei,te):null,dt=P&&Y&&H.some(r=>r.source==="legacy"),Be=E||T||dt,ht=E?15:Math.max(H.length,1),Ue=p.useRef(null);p.useEffect(()=>{E||T||!d||Ue.current===d||(Ue.current=d,Ce("Shop Searched",{query:d,result_count:G}))},[d,E,T,G]);const ae=p.useRef("__init__");p.useEffect(()=>{if(E||T)return;const r=JSON.stringify({category:$,subCategory:b,rarities:u,min:N,max:W,sort:A,status:R,smart:_});if(ae.current==="__init__"||ae.current===r){ae.current=r;return}ae.current=r,Ce("Shop Applied Filter",{filters:{category:$,sub_category:b,rarities:u,min_price_credits:N??null,max_price_credits:W??null,status:R,smart:_,sort:A},result_count:G})},[$,b,u,N,W,A,R,_,E,T,G]);function Oe(r){w({category:r,subCategory:null})}function He(r){w({status:r})}function De(r){w({rarities:u.includes(r)?u.filter(K=>K!==r):[...u,r]})}function pt(){w(C)}const X=[];(N!=null||W!=null)&&X.push({key:"price",label:s("filter.price"),onRemove:()=>{w({priceMin:"",priceMax:""})}});for(const r of Dt)u.includes(r)&&X.push({key:`rarity-${r}`,label:Mt(r),onRemove:()=>De(r)});return _&&X.push({key:"smart",label:s("filter.smart"),onRemove:()=>w({smart:!1})}),O&&X.push({key:"deals",label:s("filter.deals"),onRemove:()=>w({deals:!1,sort:"newest"})}),R!==l&&X.push({key:"status",label:R==="all"?s("filter.statusAll"):R==="on_sale"?s("filter.onSale"):s("filter.notForSale"),onRemove:()=>He(l)}),e.jsxs(kn,{"data-testid":"browse",children:[$!=="names"&&e.jsxs(e.Fragment,{children:[I?e.jsx(Sn,{onClick:()=>z(!1),"aria-hidden":!0}):null,e.jsxs(En,{"data-open":I||void 0,"data-testid":"browse-sidebar",children:[e.jsxs(Rn,{children:[e.jsx(Tn,{children:s("assets.filters")}),e.jsx(_n,{onClick:()=>z(!1),"aria-label":s("assets.closeFilters"),children:"✕"})]}),e.jsx(In,{children:e.jsx(Gt,{category:$,subCategory:b,onCategory:Oe,onSub:r=>w({subCategory:r}),priceMin:v,priceMax:S,onPriceMin:r=>w({priceMin:r}),onPriceMax:r=>w({priceMax:r}),rarities:u,onToggleRarity:De,status:R,onStatus:He,hideNames:o,smart:_,onSmart:r=>w({smart:r}),deals:O,onDeals:y?r=>w(r?{deals:!0,sort:"discount"}:{deals:!1,sort:"newest"}):void 0})}),e.jsx(Nn,{children:e.jsx(Ln,{type:"button",onClick:()=>z(!1),children:s("assets.showItems")})})]})]}),e.jsx(Mn,{children:$==="names"?e.jsx(ui,{onBack:()=>Oe("all")}):e.jsxs(e.Fragment,{children:[e.jsx(qt,{sort:A,sortOptions:B,onSort:r=>w({sort:r}),total:k,loading:E||T,query:d,onOpenFilters:()=>z(!0),chips:X,onClearChips:pt}),m&&P&&H.some(r=>r.source==="legacy")?e.jsx(fi,{"data-variant":"warn",children:s("assets.marketUnavailable")}):null,L?e.jsx(Qt,{message:s("assets.loadError"),testId:"browse-error"}):null,!Be&&H.length===0&&!L?e.jsx(At,{testId:"browse-empty",icon:Ft,title:s("assets.empty.title"),body:x?e.jsxs(e.Fragment,{children:[s("assets.empty.searchBefore"),e.jsx("b",{children:x}),s("assets.empty.searchAfter")]}):s("assets.empty.filters"),cta:{label:s("assets.empty.cta"),onClick:()=>j("/overview")}}):e.jsxs(e.Fragment,{children:[e.jsx($n,{"data-testid":"grid",children:Be?e.jsx(qe,{count:ht}):e.jsxs(e.Fragment,{children:[H.map(r=>{if(!P)return e.jsx(de,{item:r,mode:"view"},he(r));const K=r;if(K.source!=="legacy")return e.jsx(de,{item:r},he(r));const le=re(K);return le==null?e.jsx(de,{item:r,mode:"view"},he(r)):e.jsx(de,{item:{...K,priceCredits:le}},he(r))}),ie?e.jsx(qe,{count:6}):null]})}),e.jsx(Kt,{hasNextPage:se,isFetching:ie,isError:ke,onLoadMore:()=>void oe()})]})]})})]})}export{Di as Assets};
|
|
980
|
-
//# sourceMappingURL=Assets-CN1LU5Xt.js.map
|