@dcl/shop 1.14.1-35717029846.commit-081e19f → 1.14.1-35719028426.commit-788cbae
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-B2SI93EE.js → Activity-BpX9dGWm.js} +4 -4
- package/_assets/{AnimatedBackground-CP9Fu2S0.js → AnimatedBackground-DnqDKaQh.js} +2 -2
- package/_assets/Assets-C46WMY9d.js +990 -0
- package/_assets/{Cart-EKwnMXFZ.js → Cart-CmgC7VM5.js} +2 -2
- package/_assets/{Collection-CNuf965Z.js → Collection-DbL5CU22.js} +2 -2
- package/_assets/{CollectionCarousel-SlhH9WTk.js → CollectionCarousel-CctkKEfb.js} +5 -5
- package/_assets/{Confetti-Ck7aETTa.js → Confetti-BOhRu7AS.js} +4 -4
- package/_assets/{ConstantsUtil-D9gWIb6Y.js → ConstantsUtil-DOBR8Vsk.js} +2 -2
- package/_assets/{ContentClient-DTv0EbWI.js → ContentClient-zmznS1eF.js} +2 -2
- package/_assets/{Creator-jAwBuZRn.js → Creator-C8FJNoTI.js} +2 -2
- package/_assets/{CreditPackPicker-Dg5yXKT1.js → CreditPackPicker-Ci5Mlm9_.js} +2 -2
- package/_assets/{DeploymentBuilder-B3WfHq10.js → DeploymentBuilder-CSyKbttK.js} +2 -2
- package/_assets/{EmotePlaybackBar-NAb5My4l.js → EmotePlaybackBar-DAV-3bSn.js} +3 -3
- package/_assets/{ErrorNotice-D7pIVrgz.js → ErrorNotice-D5wtHMoD.js} +2 -2
- package/_assets/{Event-Duu5NjqU.js → Event-DxBFYDFS.js} +2 -2
- package/_assets/{ExchangeController-BFHQVGfP.js → ExchangeController-CXX0sK6W.js} +2 -2
- package/_assets/{Faq-CDtoKNMs.js → Faq-DW6XztFr.js} +2 -2
- package/_assets/{Filters-DlxmTAJg.js → Filters-Bj8msVc8.js} +35 -35
- package/_assets/{GetCredits-Cr0MIsCQ.js → GetCredits-DOIO0fBV.js} +2 -2
- package/_assets/{Grow-CsE3PxpH.js → Grow-BQqVTbgw.js} +2 -2
- package/_assets/{HelpersUtil-DaS3Zwlg.js → HelpersUtil-D-kkzJS4.js} +2 -2
- package/_assets/{ItemDetail-C4NupK37.js → ItemDetail-C-_Y9QEh.js} +2 -2
- package/_assets/{LoadMore-B0ISZU5w.js → LoadMore-BoD1T1M_.js} +2 -2
- package/_assets/{ManaPricingBanner.styles-BreC7I8Y.js → ManaPricingBanner.styles-maEvFsWD.js} +2 -2
- package/_assets/{MyAssets-CBtU_aVL.js → MyAssets-CsQB3BRq.js} +2 -2
- package/_assets/{MyFavorites-lKsdcIdC.js → MyFavorites-bvhILMLM.js} +2 -2
- package/_assets/{MyStore-BS3Sh9pU.js → MyStore-DNyVpX1H.js} +2 -2
- package/_assets/{NetworkUtil-C2wSFZRa.js → NetworkUtil-DppbATSq.js} +2 -2
- package/_assets/{NotFound-BNBxKfHU.js → NotFound-CcvzZxtU.js} +2 -2
- package/_assets/{NotificationsBell-BexOw4QS.js → NotificationsBell-DriXOuFz.js} +2 -2
- package/_assets/{OutfitDetail-Bi3C5NXa.js → OutfitDetail-igLM7qxp.js} +2 -2
- package/_assets/{OutfitPreview-BXwrbtRh.js → OutfitPreview-B8a1U6f7.js} +2 -2
- package/_assets/{OutfitStudio-DYMvORUh.js → OutfitStudio-rrYI9gXU.js} +2 -2
- package/_assets/{PaymentMethodStep-Ci7YjLKm.js → PaymentMethodStep-BNy4uFJN.js} +5 -5
- package/_assets/{SaleCountdown-B4sC2O0e.js → SaleCountdown-De6tyEqD.js} +2 -2
- package/_assets/{Spinner-D8nWRCy3.js → Spinner-D1V4BYKU.js} +2 -2
- package/_assets/{StoreSettings-CQj948x9.js → StoreSettings-o4CGMQ_c.js} +2 -2
- package/_assets/{Success-BcoK_9Jv.js → Success-ha1NaJuw.js} +2 -2
- package/_assets/{SwapController-D6Idkk4b.js → SwapController-CHTlB4ca.js} +2 -2
- package/_assets/{Tooltip-DffNOxV8.js → Tooltip-CK2XVxpk.js} +2 -2
- package/_assets/{TradeService-CwzXKmen.js → TradeService-CYoA-0sX.js} +2 -2
- package/_assets/{W3MFrameProviderSingleton-QzyPSTxu.js → W3MFrameProviderSingleton-DnVf9oP7.js} +4 -4
- package/_assets/{WebCryptoP256-E2y4s0g2.js → WebCryptoP256-DGudfRFV.js} +2 -2
- package/_assets/{basic-BycEvxgy.js → basic-DfmbnRGO.js} +2 -2
- package/_assets/{biconomy-Bkl_cAqJ.js → biconomy-BtQeFx4Z.js} +2 -2
- package/_assets/{browseLayout.styles-B5WVpBNF.js → browseLayout.styles-BADskMsy.js} +2 -2
- package/_assets/{browser-BYHlYSHI.js → browser-BAm0Shd6.js} +2 -2
- package/_assets/{browser-DYSRffPj.js → browser-YUUBuWRC.js} +2 -2
- package/_assets/{browser-ponyfill-DDl4ZwYn.js → browser-ponyfill-BQs2tAcb.js} +2 -2
- package/_assets/{buy-mXjk4WI2.js → buy-CmjBI7r0.js} +2 -2
- package/_assets/{buy-gasless-cbBdaLWy.js → buy-gasless-CeGObjtc.js} +2 -2
- package/_assets/{cart-checkout-tz6LBdP5.js → cart-checkout-BB5EpqsQ.js} +2 -2
- package/_assets/{categories-Iv__3hxj.js → categories-C6DcAku8.js} +2 -2
- package/_assets/{ccip-CiKUY4bL.js → ccip-CwSnLVr-.js} +2 -2
- package/_assets/{ccip-Dl3JR17Z.js → ccip-DShByFbv.js} +2 -2
- package/_assets/{chains-DfRC9hQa.js → chains-BwtDf6HP.js} +2 -2
- package/_assets/collectionPage.styles-B1ljDCRq.js +41 -0
- package/_assets/{common-BTyhI5VP.js → common-CpqUaQ-B.js} +2 -2
- package/_assets/{controller-D4xeSVa8.js → controller-9ErhSX1R.js} +3 -3
- package/_assets/{core-CGHTebrg.js → core-C3KunlFU.js} +5 -5
- package/_assets/{createSvgIcon-muwT4G-f.js → createSvgIcon-DvuLU9-j.js} +2 -2
- package/_assets/{crumbs.styles-D57Tm2je.js → crumbs.styles-q0RtqBNO.js} +2 -2
- package/_assets/{custom-D4S_R1DE.js → custom-AhSzU_hd.js} +2 -2
- package/_assets/{data-capture-DO_y99rr.js → data-capture-DNnqPNOl.js} +2 -2
- package/_assets/{dcl-schemas-B1ZAR9xS.js → dcl-schemas-CD5cNQ8m.js} +2 -2
- package/_assets/{decimals-CqFbvoaJ.js → decimals-BnWYsRCO.js} +2 -2
- package/_assets/{decimals-D2hV7Es5.js → decimals-D0JpPXjS.js} +2 -2
- package/_assets/{detectExtension-DleUr8EP.js → detectExtension-Aw8C19g8.js} +2 -2
- package/_assets/{disposePreview-C0JkUHrP.js → disposePreview-ikbGs1If.js} +2 -2
- package/_assets/{email-7f08ELNb.js → email-CZHK0vXY.js} +2 -2
- package/_assets/{embedded-wallet-Ctd32qRB.js → embedded-wallet-8F_Acxld.js} +2 -2
- package/_assets/{emotion-styled.browser.esm-BZtqiG9F.js → emotion-styled.browser.esm-tajIbHys.js} +2 -2
- package/_assets/{engine-C8FnCdSk.js → engine-R_SrRhuR.js} +2 -2
- package/_assets/{errors-BzF0Lvtf.js → errors-PLCwxC51.js} +2 -2
- package/_assets/{estimate-l1-fee-BEdWPMA9.js → estimate-l1-fee-BBVLQ1rf.js} +2 -2
- package/_assets/{eth_estimateGas-HDX4PZM1.js → eth_estimateGas-D3OwTUpV.js} +2 -2
- package/_assets/{eth_getStorageAt-BT9A1R-c.js → eth_getStorageAt-CVPieOST.js} +2 -2
- package/_assets/{eth_getTransactionCount-DenZRbIC.js → eth_getTransactionCount-BxH1EDlT.js} +2 -2
- package/_assets/{ethereum-B2JEfhqH.js → ethereum-DIBCKB6q.js} +2 -2
- package/_assets/{ethers-CYPe82-i.js → ethers-BDpH2PgN.js} +2 -2
- package/_assets/{events-7axiPuWA.js → events-BuoOWK1v.js} +2 -2
- package/_assets/{execute-BnAV_1Fd.js → execute-B0H8K20m.js} +3 -3
- package/_assets/{extractIPFS-CVCpiFya.js → extractIPFS-CLOKIAiM.js} +2 -2
- package/_assets/{features-CtjsSO2_.js → features-CvXt0H0-.js} +2 -2
- package/_assets/{fetchTokenMetadata-C1q4_ZKP.js → fetchTokenMetadata-PXJxT8ib.js} +3 -3
- package/_assets/{field.styles-wMfYVws6.js → field.styles-Cggq6Wik.js} +2 -2
- package/_assets/{fortmatic-6x45RwZX.js → fortmatic-CO49Qx8z.js} +2 -2
- package/_assets/{get-bytecode-C9gjSWd3.js → get-bytecode-B10dLHqV.js} +2 -2
- package/_assets/{get-ecosystem-wallet-info-C88X1jYy.js → get-ecosystem-wallet-info-DBB-9XsD.js} +2 -2
- package/_assets/{getBalance-BrtqAmxQ.js → getBalance-5TsHxc0-.js} +3 -3
- package/_assets/{getInstalledModules-BJVx5LYq.js → getInstalledModules-QVb_hGAT.js} +2 -2
- package/_assets/{getNFT-BM_GmOuL.js → getNFT-BH8Q3FaG.js} +2 -2
- package/_assets/{getNFT-B1arqOXd.js → getNFT-D2IcC5j3.js} +3 -3
- package/_assets/{grid.styles-BLEMBNDw.js → grid.styles-CkAU0auR.js} +2 -2
- package/_assets/{hashTypedData-B3ogY2Kc.js → hashTypedData-C1NmIJHG.js} +2 -2
- package/_assets/{hashTypedData-DezgQ2Vh.js → hashTypedData-JkaWDc1P.js} +2 -2
- package/_assets/{import-BDlqp2rx.js → import-BDpJaH17.js} +2 -2
- package/_assets/{in-app-BbAtJMuA.js → in-app-DSAJhYoU.js} +2 -2
- package/_assets/{in-app-wallet-calls-C470GpFo.js → in-app-wallet-calls-C1HEVjQe.js} +2 -2
- package/_assets/{index-BVKdLmKw.js → index-03IUSFwe.js} +3 -3
- package/_assets/{index-DEFcrA_x.js → index-B0oer6Qw.js} +2 -2
- package/_assets/{index-DdN8DiqQ.js → index-B68tB4p7.js} +2 -2
- package/_assets/{index-CY5uuWkq.js → index-B9WiLLpE.js} +2 -2
- package/_assets/{index-BoKkNxL7.js → index-BBh2FvPD.js} +2 -2
- package/_assets/{index-DsfqwSo4.js → index-BH5Jo8FC.js} +4 -4
- package/_assets/{index-BxD-5PPV.js → index-BKX2HU5-.js} +2 -2
- package/_assets/{index-53hFVStc.js → index-BN5uV5zg.js} +2 -2
- package/_assets/{index-B5m5DdsO.js → index-BSd24ZVG.js} +3 -3
- package/_assets/{index-BI_gr0SE.js → index-BYx_DXLf.js} +4 -4
- package/_assets/{index-D4NqCXr_.js → index-B_01Grj7.js} +4 -4
- package/_assets/{index-BROlgonb.js → index-BfqF1L4t.js} +2 -2
- package/_assets/{index-DZf2-XdX.js → index-BiH-PTM_.js} +2 -2
- package/_assets/{index-B8wznWjj.js → index-BkAaiwhZ.js} +2 -2
- package/_assets/{index-ClEH0Eg4.js → index-BkirkVZI.js} +2 -2
- package/_assets/{index-SzxcW9Zk.css → index-BkwDN0AW.css} +1 -1
- package/_assets/{index-BeiASkZy.js → index-Bmmjywt5.js} +121 -121
- package/_assets/{index-KM1dHPRB.js → index-Bnb2uJhq.js} +2 -2
- package/_assets/{index-vxkSIQW0.js → index-Bt_66AMF.js} +2 -2
- package/_assets/{index-DrtXqy9I.js → index-BuehnHuA.js} +2 -2
- package/_assets/{index-DlJrzMTL.js → index-BwtaysDn.js} +2 -2
- package/_assets/{index-CH3dqC0b.js → index-By9pFZxy.js} +2 -2
- package/_assets/{index-C_WXMleu.js → index-BzuFMYwR.js} +2 -2
- package/_assets/{index-ChkYwVPF.js → index-C7PFTdsa.js} +2 -2
- package/_assets/{index-DaWsF3KE.js → index-C8SgRhWi.js} +2 -2
- package/_assets/{index-BKnV2Z_o.js → index-C9lbkHYt.js} +2 -2
- package/_assets/{index-BYdES59T.js → index-CBRhRHnT.js} +2 -2
- package/_assets/{index-DgCWcOv0.js → index-CCWpUSDN.js} +2 -2
- package/_assets/{index-DWX8bCf4.js → index-CEBfZzLH.js} +2 -2
- package/_assets/{index-D3vuC0T7.js → index-CEXhnokq.js} +2 -2
- package/_assets/{index-CkPxU5dG.js → index-CEo97Zxi.js} +2 -2
- package/_assets/{index-DD8p2s0N.js → index-CLSQPu3w.js} +2 -2
- package/_assets/{index-FuRS9tVR.js → index-CMSUYLVn.js} +2 -2
- package/_assets/{index-CmqUXsFp.js → index-CP49IXN6.js} +2 -2
- package/_assets/{index-BvpP-fLZ.js → index-CetZxpTs.js} +2 -2
- package/_assets/{index-BmEUzRT3.js → index-Cl_3ax-s.js} +2 -2
- package/_assets/{index-D0GETye4.js → index-CtKtLuEH.js} +2 -2
- package/_assets/{index-D5S-lycM.js → index-CtRRuSWC.js} +2 -2
- package/_assets/{index-CWtnfG_d.js → index-D8VrFbWS.js} +2 -2
- package/_assets/{index-D6e3_BTC.js → index-DBsATBZK.js} +2 -2
- package/_assets/{index-CKCUc2E7.js → index-DBsQAEwj.js} +2 -2
- package/_assets/{index-Bf_coLez.js → index-DCQogtmR.js} +2 -2
- package/_assets/{index-B_HUUfzk.js → index-DHnwkGWV.js} +2 -2
- package/_assets/{index-BfmfQ1WN.js → index-DN8QJ1JD.js} +2 -2
- package/_assets/{index-D2-zplq0.js → index-DORP309u.js} +3 -3
- package/_assets/{index-BX-0jA0k.js → index-DQDnMLb-.js} +2 -2
- package/_assets/{index-BSB4eI22.js → index-DQu6Jq-P.js} +3 -3
- package/_assets/{index-BrE7YGT5.js → index-DS6BtyAN.js} +2 -2
- package/_assets/{index-XEwOM0Sj.js → index-DU6d-mIc.js} +2 -2
- package/_assets/{index-CcjWUhPA.js → index-DfYZqh1F.js} +2 -2
- package/_assets/{index-DF0zgD1N.js → index-Dm8XRkOQ.js} +2 -2
- package/_assets/{index-CG2yRzFW.js → index-DwraOl5Z.js} +2 -2
- package/_assets/{index-C5G2b_tT.js → index-DxfpNcTc.js} +2 -2
- package/_assets/{index-YBAq4pyE.js → index-DzSaphbp.js} +2 -2
- package/_assets/{index-0X6EYQ5_.js → index-LfAh99M4.js} +2 -2
- package/_assets/{index-AVwlO6wd.js → index-O14Pm4Vm.js} +2 -2
- package/_assets/{index-D27ydD10.js → index-TosEWvyg.js} +2 -2
- package/_assets/{index-UQKa4sV0.js → index-ZpHxWAMe.js} +2 -2
- package/_assets/{index-Ccyrmxei.js → index-boseCEFc.js} +2 -2
- package/_assets/{index-DDId6dCv.js → index-eiWzV0in.js} +2 -2
- package/_assets/{index-C8L3d8mc.js → index-gaQwy1co.js} +2 -2
- package/_assets/{index-DxKDgGBk.js → index-mOoRIjAX.js} +2 -2
- package/_assets/{index-CR2Mw3fL.js → index-r7fDYYGF.js} +2 -2
- package/_assets/{index-Cpiw0oxn.js → index-vjDTZ2Fu.js} +2 -2
- package/_assets/{index-BfUmfJrn.js → index-wfHvqm3o.js} +2 -2
- package/_assets/{index-X21Okw5N.js → index-xMPoPnk2.js} +2 -2
- package/_assets/{index-Bp5Ym9TA.js → index-z4wAEgt0.js} +2 -2
- package/_assets/{index-CtjNTKDu.js → index-zabk72U-.js} +2 -2
- package/_assets/{index.es-BW1POn52.js → index.es-C7Dv5zPY.js} +5 -5
- package/_assets/{index.es-BiN1y5Si.js → index.es-CbQC8IaR.js} +2 -2
- package/_assets/{index.es-Dwqr95pF.js → index.es-D0LSJmCv.js} +2 -2
- package/_assets/{index.es-UddKGHGY.js → index.es-D3BvdKWL.js} +2 -2
- package/_assets/{items-empty-CNaLuGS0.js → items-empty-Bey5xaMz.js} +2 -2
- package/_assets/{jump-B3-0_MfX.js → jump-C9-PUsEN.js} +2 -2
- package/_assets/{linkAccount-DtQglTDD.js → linkAccount-BqVzFvhl.js} +2 -2
- package/_assets/{localBatchGatewayRequest-D0bUCkM5.js → localBatchGatewayRequest-GHOUeZNh.js} +2 -2
- package/_assets/{modal.styles-CvBM3Ic6.js → modal.styles-CwCMe226.js} +2 -2
- package/_assets/{native-6ybIHDnf.js → native-letZ2idz.js} +2 -2
- package/_assets/{networks-CsHEBjl9.js → networks-BxPE4g90.js} +2 -2
- package/_assets/{onramp-DAJQqr9t.js → onramp-CAe3tTyc.js} +2 -2
- package/_assets/{openzeppelin-C3YkKRml.js → openzeppelin-9utmmOt4.js} +2 -2
- package/_assets/{ownerOf-cKu10J6S.js → ownerOf-DUhdbuZp.js} +2 -2
- package/_assets/{parseNft-Rw932vgW.js → parseNft-BN_odngq.js} +3 -3
- package/_assets/{parseSignature-hxIXnxi8.js → parseSignature-CCMuAmaf.js} +4 -4
- package/_assets/{parseSignature-Bf1u2rRK.js → parseSignature-DjT_CM7W.js} +2 -2
- package/_assets/{passkeys-Xafxnfve.js → passkeys-5bHsXKj5.js} +2 -2
- package/_assets/{pay-with-exchange-UoATjIjo.js → pay-with-exchange-CLxkNxWU.js} +2 -2
- package/_assets/{prepare-contract-call-Ngikp3Fr.js → prepare-contract-call-DeOGUl_B.js} +2 -2
- package/_assets/{qr-overlay-CHLYrRNL.js → qr-overlay-C9ttaAGX.js} +4 -4
- package/_assets/{react-D7tXswnG.js → react-Up-gi9Mm.js} +2 -2
- package/_assets/{receive-BIvdqF1Z.js → receive-IKTyR-2o.js} +2 -2
- package/_assets/{resolveImplementation-BsNCOpqm.js → resolveImplementation-DmtCLn3R.js} +2 -2
- package/_assets/{resume-buy-MO-Zr8o8.js → resume-buy-DGwc7Ynl.js} +2 -2
- package/_assets/{resume-name-uECxhbwl.js → resume-name-InQ5d1_G.js} +2 -2
- package/_assets/{rpc-C-idz8LW.js → rpc-DY8iUaNU.js} +2 -2
- package/_assets/{sales-empty-Bp9fZDlf.js → sales-empty-CteDkieg.js} +2 -2
- package/_assets/{search-empty--MIAKElx.js → search-empty-03EkKL5Z.js} +2 -2
- package/_assets/{secp256k1-BHQXbvGr.js → secp256k1-6ifHWzIN.js} +2 -2
- package/_assets/{secp256k1-BGO0HoiJ.js → secp256k1-BaCDkGxB.js} +2 -2
- package/_assets/{secp256k1-ClSRMI6Q.js → secp256k1-Bk_6muS3.js} +2 -2
- package/_assets/{send-DULB3GlT.js → send-DYcPprZ8.js} +2 -2
- package/_assets/{send-batch-transaction-D00hngtV.js → send-batch-transaction-DQYUn4Y0.js} +2 -2
- package/_assets/{send-eip712-transaction-DuPL-1c9.js → send-eip712-transaction-CIj6gl7C.js} +3 -3
- package/_assets/{send-gasless-transaction-BKkEeRy8.js → send-gasless-transaction-CS1zz7I2.js} +3 -3
- package/_assets/{send-transaction-CmRhPCIt.js → send-transaction-IudqeD-u.js} +3 -3
- package/_assets/{sendMetaTransaction-B6zKQKN7.js → sendMetaTransaction-CjNKiqIE.js} +2 -2
- package/_assets/{sendRawTransaction-CLs9lD48.js → sendRawTransaction-DasGyf4y.js} +4 -4
- package/_assets/{sentry-CQripdY4.js → sentry-C1mUzhYW.js} +3 -3
- package/_assets/{serializeTransaction-7-2QNm7o.js → serializeTransaction-CCr1XoEZ.js} +2 -2
- package/_assets/{session-proposal-BzvxPABg.js → session-proposal-BCCyKOsh.js} +2 -2
- package/_assets/{session-request-B3kio1DY.js → session-request-DVX0oh8d.js} +3 -3
- package/_assets/{sha256-D4-vNCm0.js → sha256-CgEfCtV4.js} +2 -2
- package/_assets/{sha3-Dqn_ZKT3.js → sha3-1THRNrN3.js} +2 -2
- package/_assets/signin-empty-AIjHyAfB.js +2 -0
- package/_assets/{signing-DQ3IhTKX.js → signing-D3XDPMfA.js} +4 -4
- package/_assets/{skeleton.styles-Df0pDLrt.js → skeleton.styles-F_uy_7R1.js} +2 -2
- package/_assets/{socials-CBGw_of5.js → socials-BLIsj7kN.js} +2 -2
- package/_assets/{styled-DcHF-7QY.js → styled-WyX2RREJ.js} +2 -2
- package/_assets/{swaps-DYhPSnO4.js → swaps-CW4dLS_u.js} +2 -2
- package/_assets/{thirdweb-muof53Z3.js → thirdweb-HCXwbjtb.js} +4 -4
- package/_assets/{to-serializable-transaction--1bEEzuo.js → to-serializable-transaction-kcWJuf8-.js} +3 -3
- package/_assets/{totalSupply-wMdE5ZZN.js → totalSupply-D01jzo_4.js} +2 -2
- package/_assets/{trade-encoding-CF-I5lc1.js → trade-encoding-D6CmZtwy.js} +2 -2
- package/_assets/{transaction-B6KhNG5B.js → transaction-RJOXy1jo.js} +2 -2
- package/_assets/{transactionReceipt-Bga_3Kdz.js → transactionReceipt-D1yX5cKj.js} +2 -2
- package/_assets/{transactions-BudYdZJW.js → transactions-3oLB9l38.js} +2 -2
- package/_assets/{useCreatorSales-BOCng3th.js → useCreatorSales-BOJzW5gZ.js} +2 -2
- package/_assets/{useInfiniteGrid-BEggXlos.js → useInfiniteGrid-D27uCS9o.js} +2 -2
- package/_assets/{useStore-CZHuKN5d.js → useStore-C7yUaPLJ.js} +3 -3
- package/_assets/{useTheme-CBg7wcNp.js → useTheme-DNDchSUH.js} +2 -2
- package/_assets/{utils-CpRS7y5X.js → utils-ByfQ6uMK.js} +2 -2
- package/_assets/{verifyHash-BY0fqswT.js → verifyHash-yAEQreSe.js} +2 -2
- package/_assets/{w3m-modal-CVMHDqoY.js → w3m-modal-BRIZhy9e.js} +2 -2
- package/_assets/{w3m-modal-6tQuNHFa.js → w3m-modal-BvsEMBMX.js} +2 -2
- package/_assets/{wait-for-tx-receipt-CEvEjX95.js → wait-for-tx-receipt-DajCHFAw.js} +2 -2
- package/_assets/{wallets-B_pcUmUT.js → wallets-CvlmQxng.js} +6 -6
- package/_assets/{web-connector-CtoTTCO_.js → web-connector-Dg7ycS4I.js} +4 -4
- package/_assets/{writeContract-CSKQCc5J.js → writeContract-BZCwV6bP.js} +2 -2
- package/_assets/{zora-sepolia-B5Sl-R36.js → zora-sepolia-BNVciHXB.js} +2 -2
- package/_assets/{zoraTestnet-Bd_0Ehh8.js → zoraTestnet-Bg-Y18Mr.js} +2 -2
- package/index.html +11 -11
- package/package.json +2 -2
- package/_assets/Assets-Bo3E1kcH.js +0 -990
- package/_assets/collectionPage.styles-nEe8CNDf.js +0 -41
- package/_assets/signin-empty-D0XzYDid.js +0 -2
|
@@ -1,990 +0,0 @@
|
|
|
1
|
-
import{r as h,b as Ke,j as e,a as xt,u as gt}from"./react-D7tXswnG.js";import{c as ne,r as bt,b as yt,bE as wt,h as Ze,j as Qe,bA as jt,aG as vt,aE as Ct,w as $t,cX as kt,cY as St,s as i,a as t,x as lt,bk as Et,aL as Rt,F as ct,t as s,cZ as Tt,bH as Le,D as _t,I as W,z as Q,c_ as We,E as fe,bj as Mt,bi as It,l as At,O as Te,bu as Ye,bD as Nt,bC as Lt,B as dt,Y as ht,m as pt,bU as Wt,y as zt,av as Pt,$ as Bt,a1 as Xe,a2 as xe,aJ as Ft,bQ as Ut}from"./index-BeiASkZy.js";import{u as Ot,s as Ht}from"./search-empty--MIAKElx.js";import{C as Dt,u as Gt,n as qt,S as Kt,R as Vt,F as Zt,a as Qt}from"./Filters-DlxmTAJg.js";import{L as Yt}from"./LoadMore-B0ISZU5w.js";import{u as Xt}from"./useInfiniteGrid-BEggXlos.js";import{S as Jt}from"./categories-Iv__3hxj.js";import{E as en}from"./ErrorNotice-D7pIVrgz.js";import{d as tn}from"./dcl-schemas-B1ZAR9xS.js";import{s as nn,G as sn,w as an,S as on}from"./buy-gasless-cbBdaLWy.js";import{s as rn}from"./buy-mXjk4WI2.js";import{u as ln,A as cn,C as dn}from"./trade-encoding-CF-I5lc1.js";import{f as hn}from"./errors-BzF0Lvtf.js";import{J as pn,C as un,B as _e}from"./ethers-CYPe82-i.js";import{z as mn,D as fn,w as xn,W as gn,m as bn,n as yn,o as wn,v as jn,j as Je}from"./CreditPackPicker-Dg5yXKT1.js";import{u as vn,M as Cn,o as $n,R as kn,c as Sn}from"./cart-checkout-tz6LBdP5.js";import{P as En}from"./PaymentMethodStep-Ci7YjLKm.js";import{R as et}from"./resume-name-uECxhbwl.js";import{R as Rn}from"./resume-buy-MO-Zr8o8.js";import{n as Tn}from"./name-glyph-aUugT8vq.js";import{c as _n}from"./crumbs.styles-D57Tm2je.js";import{n as Mn}from"./Tooltip-DffNOxV8.js";import{G as In}from"./grid.styles-BLEMBNDw.js";import{R as An,S as Nn,a as Ln,D as Wn,b as zn,C as Pn,c as Bn,d as Fn,e as Un,M as On}from"./browseLayout.styles-B5WVpBNF.js";import"./sentry-CQripdY4.js";import"./intl-AKLEHPeO.js";import"./skeleton.styles-Df0pDLrt.js";import"./sendMetaTransaction-B6zKQKN7.js";import"./mana-matic-CEqvSwrJ.js";(function(){try{var n=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},a=new n.Error().stack;a&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[a]="3dca6b75-e726-4e57-b638-a7fc49430a23",n._sentryDebugIdIdentifier="sentry-dbid-3dca6b75-e726-4e57-b638-a7fc49430a23")}catch{}})();function ge(n){const a=n.source??"item",r=n.tradeId||`${n.contractAddress}-${n.tokenId??n.itemId??""}`;return`${a}:${r}`}const Y="100000000000000000000",ut=2,Me=15,Hn=/^[a-zA-Z0-9]+$/;function tt(n){const a=n.trim();return a.length===0?{ok:!1,reason:"empty"}:Hn.test(a)?a.length<ut?{ok:!1,reason:"too-short"}:a.length>Me?{ok:!1,reason:"too-long"}:{ok:!0}:{ok:!1,reason:"invalid-chars"}}function Dn(n){return n.replace(/[^a-zA-Z0-9]/g,"").slice(0,Me)}const Gn=["function available(string _subdomain) view returns (bool)"],nt={mainnet:{rpc:"https://rpc.decentraland.org/mainnet",address:"0x2a187453064356c898cae034eaed119e1663acb8"},sepolia:{rpc:"https://rpc.decentraland.org/sepolia",address:"0x7518456ae93eb98f3e64571b689c626616bb7f30"}};function qn(){return ne.chainId===Number(tn.ChainId.MATIC_MAINNET)?nt.mainnet:nt.sepolia}async function Kn(n,a={}){var g;const{rpc:r,address:d}=qn(),c=new pn(r),w=new un(d,Gn,c);console.info(`[names] availability check → DCLRegistrar(${d}).available("${n}") on ${r}`);const u=await w.available(n);if((g=a.signal)!=null&&g.aborted)throw new DOMException("Aborted","AbortError");return console.info(`[names] "${n}" available=${u}`),u?"available":"taken"}const Vn="https://app.across.to/api";class Ve extends Error{constructor(){super("Name registration is temporarily unavailable due to high network costs"),this.name="NameRouteCostTooHighError"}}class Ge extends Error{constructor(){super("The name could not be registered on Ethereum; your funds were recovered."),this.name="NameNotRegisteredError"}}class qe extends Error{constructor(){super("We couldn't confirm whether the purchase went through."),this.name="NameSettlementUnknownError"}}function Zn(n){return vt(Y,n)}async function Qn(n,a,r={}){var g;const d=r.chainId??ne.chainId,c=r.provider??"across",w=`${ne.creditsServerUrl}/credits-name-route?name=${encodeURIComponent(a)}&chainId=${d}&provider=${c}`,u=await Ct(w,{method:"GET",identity:n,metadata:{}});if(!u.ok){let l;try{l=(g=await u.json())==null?void 0:g.code}catch{}throw l==="ROUTE_COST_TOO_HIGH"?new Ve:new Error(`fetchNameCreditRoute ${u.status}`)}return u.json()}function Yn(n,a){const r=_e.from(n.availableAmount),c=_e.from(Y).sub(r);return{credits:[{value:n.amount,expiresAt:Number(n.expiresAt),salt:dn(n.id)}],creditsSignatures:[n.signature],externalCall:{target:a.externalCall.target,selector:a.externalCall.selector,data:a.externalCall.data,expiresAt:a.externalCall.expiresAt,salt:a.externalCall.salt},customExternalCallSignature:a.customExternalCallSignature,maxUncreditedValue:c.isNegative()?"0":c.toString(),maxCreditedValue:Y}}async function Xn(n,a={}){const r=Vn,d=a.intervalMs??1e4,c=a.maxAttempts??60;let w={status:"pending",destinationTxHash:null,actionsSucceeded:null};for(let u=0;u<c;u++){try{const g=await fetch(`${r}/deposit/status?originChainId=137&depositTxHash=${n}`);if(g.ok){const l=await g.json(),j=(l.status??"pending").toLowerCase(),b=l.fillTx??l.fillTxnRef??null,C=typeof l.actionsSucceeded=="boolean"?l.actionsSucceeded:null;if(j==="filled")return{status:"filled",destinationTxHash:b,actionsSucceeded:C};if(j==="refunded"||j==="expired")return{status:j,destinationTxHash:null,actionsSucceeded:!1};w={status:"pending",destinationTxHash:b,actionsSucceeded:C}}}catch{}u<c-1&&await new Promise(g=>setTimeout(g,d))}return w}async function Jn(n){const{name:a,identity:r,signer:d}=n,c=b=>{var C;try{(C=n.onProgress)==null||C.call(n,b)}catch{}},w=n.chainId??ne.chainId,u=n.provider??"across",g=(n.beneficiary??await d.getAddress()).toLowerCase();let l=null,j="unconfirmed";console.info("[names] register start",{name:a,buyer:g,chainId:w,provider:u}),c("preparing");try{const b=await bt(yt(ne.chainId).address),C=Zn(b),m=n.creditsCents!=null?Math.max(1,Math.min(Math.trunc(n.creditsCents),C)):C,k=m<C;console.info("[names] step 1/6 sized reservation",{usdCents:m,fullPriceCents:C,payingWithMana:k,manaRate:b});const x=await Qn(r,a,{chainId:w,provider:u});console.info("[names] step 2/6 route fetched",{target:x.externalCall.target,selector:x.externalCall.selector,provider:x.provider,quoteId:x.quoteId});const y=await wt(r,m,void 0,void 0,a);if(l=y.credit.id,console.info("[names] step 3/6 credit authorized",{creditId:y.credit.id,maxCreditedValue:y.maxCreditedValue}),!k&&_e.from(y.maxCreditedValue).lt(Y))throw new Error("Credit under-sized for the name price");if(k){const p=_e.from(Y).sub(y.credit.availableAmount);if(n.maxManaWei!=null&&p.gt(n.maxManaWei.toString()))throw new Error("The MANA needed moved past what was agreed");p.gt(0)&&(c("awaiting-confirmation"),await ln({auth:{kind:cn.Allowance,contractAddress:Ze(Qe.MANAToken,w).address,spenderAddress:Ze(Qe.CreditsManager,w).address,chainId:w},signer:d,requiredWei:BigInt(p.toString())}),console.info("[names] step 3b/6 mana allowance ensured",{gapWei:p.toString()}))}c("awaiting-confirmation");const v=Yn(y.credit,x);let $;try{$=await nn({chainId:w,buyer:g,signer:d,args:v})}catch(p){if(!(p instanceof sn))throw p;if(p.reason==="relayer-unreachable"){j="unobservable";const A=new qe;throw A.cause=p,A}$=await rn(w,v,d)}if(console.info("[names] step 4/6 useCredits submitted (Polygon origin tx)",{originTxHash:$}),c("confirming"),await an($),j="confirmed",console.info("[names] step 5/6 origin tx confirmed",{originTxHash:$}),u==="across"){c("registering");const p=await Xn($,n.acrossPoll);if(console.info("[names] step 6/6 across status",p),p.status==="pending")return{status:"pending",originTxHash:$};if(p.status==="filled"&&p.actionsSucceeded===null)return console.warn("[names] across filled without reporting actionsSucceeded — reporting pending",{originTxHash:$}),{status:"pending",originTxHash:$};if(p.status!=="filled"||p.actionsSucceeded!==!0)throw new Ge;return{status:"registered",originTxHash:$,destinationTxHash:p.destinationTxHash}}return{status:"pending",originTxHash:$}}catch(b){if(console.error("[names] register failed — raw error:",b,{name:a,buyer:g,originState:j}),b instanceof on)return{status:"pending",originTxHash:b.txHash};if(l&&j==="unconfirmed"&&await jt(r,[l]).catch(()=>{}),b instanceof Ve||b instanceof Ge||b instanceof qe)throw b;const C=new Error(hn(b,"Couldn't register the name. Please try again.",{sale:!0}));throw C.cause=b,C}}function es(){const{data:n}=$t({queryKey:["feature-flag","shop-names"],queryFn:()=>kt(St.SHOP_NAMES),staleTime:6e4,refetchOnWindowFocus:!0,retry:1});return n===!0}const ts=60,ns=700,ss=25;function is(n){if(!n)return[];const a=[];for(let r=1;r<=n.length;r++)a.push({text:n.slice(0,r),delay:ts});a[a.length-1]={text:n,delay:ns};for(let r=n.length-1;r>=1;r--)a.push({text:n.slice(0,r),delay:ss});return a}function as(n){return n.flatMap(is)}function os(n,a){const r=h.useMemo(()=>as(n),[n]),[d,c]=h.useState(0);return h.useEffect(()=>{if(!a||r.length===0)return;const w=setTimeout(()=>c(u=>(u+1)%r.length),r[d%r.length].delay);return()=>clearTimeout(w)},[d,a,r]),!a||r.length===0?"":r[d%r.length].text}const rs="https://cdn.decentraland.org/@dcl/shop/1.14.1-35717029846.commit-081e19f/_assets/name-verified-oGwQ3ntb.svg",ls="#34fee6",cs=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
|
-
`,ds=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
|
-
`,ze=i.div`
|
|
24
|
-
display: flex;
|
|
25
|
-
align-items: flex-start;
|
|
26
|
-
justify-content: space-between;
|
|
27
|
-
gap: 12px;
|
|
28
|
-
`,Pe=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
|
-
`,Be=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
|
-
`,Fe=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
|
-
`,Ue=i.hr`
|
|
73
|
-
border: 0;
|
|
74
|
-
border-top: 1px solid ${t.colors.line};
|
|
75
|
-
margin: 16px 0;
|
|
76
|
-
`,be=i.div`
|
|
77
|
-
display: flex;
|
|
78
|
-
align-items: center;
|
|
79
|
-
gap: 16px;
|
|
80
|
-
`,hs=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
|
-
`,ps=i.img`
|
|
94
|
-
display: block;
|
|
95
|
-
width: 47px;
|
|
96
|
-
height: 47px;
|
|
97
|
-
`,us=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: ${ls};
|
|
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
|
-
`,ms=i.img`
|
|
119
|
-
flex: none;
|
|
120
|
-
display: block;
|
|
121
|
-
width: 14px;
|
|
122
|
-
height: 14px;
|
|
123
|
-
`,Oe=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
|
-
`,ye=i.div`
|
|
138
|
-
flex: 1;
|
|
139
|
-
min-width: 0;
|
|
140
|
-
`,we=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
|
-
`,je=i.div`
|
|
155
|
-
font-family: ${t.font.sans};
|
|
156
|
-
font-size: 14px;
|
|
157
|
-
color: ${t.colors.muted2};
|
|
158
|
-
`,ve=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
|
-
`,fs=i.div`
|
|
174
|
-
margin-top: 16px;
|
|
175
|
-
padding: 16px;
|
|
176
|
-
border-radius: 12px;
|
|
177
|
-
background: ${t.colors.promptLilac};
|
|
178
|
-
`,xs=i.div`
|
|
179
|
-
font-family: ${t.font.sans};
|
|
180
|
-
font-weight: 700;
|
|
181
|
-
font-size: 16px;
|
|
182
|
-
color: ${t.colors.text};
|
|
183
|
-
`,gs=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
|
-
`,bs=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
|
-
`,ys=i.span`
|
|
215
|
-
flex: none;
|
|
216
|
-
font-family: ${t.font.sans};
|
|
217
|
-
font-size: 18px;
|
|
218
|
-
color: ${t.colors.muted2};
|
|
219
|
-
`,ws=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
|
-
`,js=i.span`
|
|
235
|
-
flex: none;
|
|
236
|
-
font-family: ${t.font.sans};
|
|
237
|
-
font-size: 16px;
|
|
238
|
-
color: ${t.colors.muted2};
|
|
239
|
-
`,He=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
|
-
`,vs=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
|
-
`,Cs=i.img`
|
|
278
|
-
width: 61px;
|
|
279
|
-
height: 61px;
|
|
280
|
-
`,$s=i.div`
|
|
281
|
-
display: flex;
|
|
282
|
-
flex-direction: column;
|
|
283
|
-
align-items: center;
|
|
284
|
-
gap: 8px;
|
|
285
|
-
width: 100%;
|
|
286
|
-
`,ks=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
|
-
`,Ss=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
|
-
`,Es=i.div`
|
|
301
|
-
display: flex;
|
|
302
|
-
align-items: center;
|
|
303
|
-
justify-content: center;
|
|
304
|
-
gap: 8px;
|
|
305
|
-
width: 100%;
|
|
306
|
-
`,Rs=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
|
-
`,Ts=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
|
-
`,_s=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
|
-
`,Ms=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
|
-
`,Is=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
|
-
`,st=i.div`
|
|
377
|
-
display: flex;
|
|
378
|
-
gap: 16px;
|
|
379
|
-
margin-top: 20px;
|
|
380
|
-
|
|
381
|
-
${t.media.maxWidth("mobile")} {
|
|
382
|
-
flex-direction: column;
|
|
383
|
-
}
|
|
384
|
-
`,it=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
|
-
`,As=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
|
-
`,De=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
|
-
`,Ns=i.div`
|
|
462
|
-
display: flex;
|
|
463
|
-
flex-direction: column;
|
|
464
|
-
gap: 24px;
|
|
465
|
-
margin-top: 16px;
|
|
466
|
-
`;i(mn)`
|
|
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(fn)`
|
|
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 Ls=i.div`
|
|
500
|
-
display: flex;
|
|
501
|
-
gap: 12px;
|
|
502
|
-
`,Ws=i.span`
|
|
503
|
-
display: grid;
|
|
504
|
-
place-items: center;
|
|
505
|
-
width: 100%;
|
|
506
|
-
height: 100%;
|
|
507
|
-
background: ${t.gradients.amethyst};
|
|
508
|
-
font-family: ${t.font.sans};
|
|
509
|
-
font-size: 32px;
|
|
510
|
-
font-weight: 700;
|
|
511
|
-
color: ${t.colors.white};
|
|
512
|
-
`;function zs({name:n,priceCredits:a,onClose:r}){const{session:d}=lt(),{data:c,isError:w}=Et(d),u=Rt(),g=Ke(),[l,j]=h.useState("confirm"),[b,C]=h.useState(""),[m,k]=h.useState(""),[x,y]=h.useState(!1),[v,$]=h.useState(null),p=(v==null?void 0:v.rail)??"credits",[A,U]=h.useState(null),[oe,M]=h.useState(!1),[T,O]=h.useState("preparing"),F=h.useRef(!1),se=b.trim().toLowerCase()===n.toLowerCase(),_=l==="completing"||x,N=a!=null?ct(a):"—",L=a==null,ee=c==null?void 0:c.credits,H=a!=null&&ee!=null?a-ee:0,z=H>0,D=L?s("names.priceUnavailable"):null,{data:K}=Tt(d),V=(K==null?void 0:K.matic)??0n,P=xn({priceCents:a!=null?a*Le:0,priceManaWei:BigInt(Y),balanceCents:(c==null?void 0:c.balanceCents)??0,manaBalanceWei:V,manaOnlyRail:!1}),E=P.options.some(f=>f.method!=="credits"),R=P.options.find(f=>f.method==="combined"),I=v==null&&E&&!L,B=vn().packs.slice(0,Cn),{packs:re,recommended:X,closesGap:Ie}=$n(B,H),Z=re.find(f=>f.id===m)??X;h.useEffect(()=>{const f=S=>{S.key==="Escape"&&!_&&r()};return document.addEventListener("keydown",f),()=>document.removeEventListener("keydown",f)},[_,r]);async function te(){if(!d||!se||L||F.current||p==="credits"&&z)return;F.current=!0;const f=p==="combined"?Math.floor(((v==null?void 0:v.creditsCents)??0)/Le):a??null;j("completing"),U(null),O("preparing");try{const S=await Jn({name:n,identity:d.identity,signer:d.signer,creditsCents:v==null?void 0:v.creditsCents,maxManaWei:v==null?void 0:v.manaWei,onProgress:O});Te("Shop Completed Purchase",{items:[{item_id:null,contract_address:null,token_id:null,price_usd:Ye(a??0),category:"name",is_smart:!1}],purchase_type:"name",is_primary:!0,payment_type:p==="combined"?"credits_and_mana":"credits",value_credits:f,value_usd:Ye(f??0),transaction_hash:S.originTxHash??null,settlement:S.status}),u.invalidateQueries({queryKey:["usd-balance"]}),u.invalidateQueries({queryKey:["my-assets"]}),j(S.status==="registered"?"success":"pending")}catch(S){Te(Lt(S)?"Shop Purchase Cancelled":"Shop Purchase Failed",{step:"submit",error_code:Nt(S),purchase_type:"name"});const ue=S instanceof Ge,q=S instanceof qe;U(S instanceof Ve?s("names.errorRouteCost"):ue?s("names.errorNotRegistered"):q?s("names.errorSettlementUnknown"):(S==null?void 0:S.message)||s("names.errorGeneric")),M(ue||q),j("error")}finally{F.current=!1}}h.useEffect(()=>{const f=S=>{S.persisted&&y(!1)};return window.addEventListener("pageshow",f),()=>window.removeEventListener("pageshow",f)},[]);async function le(){if(!(!d||!Z||x)){y(!0);try{sessionStorage.removeItem(kn),sessionStorage.removeItem(Rn),sessionStorage.setItem(et,n)}catch{}try{const f=await Sn(Z.id,{address:d.address,identity:d.identity});if(f.url){window.location.href=f.url;return}if(!f.orderId)throw new Error("Checkout returned neither a redirect url nor an order id");g(`/credits?order=${encodeURIComponent(f.orderId)}`)}catch(f){At(f,{flow:"name_buy_credits"});try{sessionStorage.removeItem(et)}catch{}U(s("buyModal.error.creditsCheckout")),M(!1),j("error"),y(!1)}}}const Ae=l!=="success"&&l!=="pending"&&!I,ce=_t(d==null?void 0:d.providerType),de=ce?2:1,he=ce&&(T==="preparing"||T==="awaiting-confirmation"),pe=he?1:de,Ne=he?s("names.confirming"):T==="registering"?s("names.registering"):s("names.completing"),ie=T==="registering"?s("names.processingRegistering"):null,G=l==="confirm"&&z&&!E,ae=l==="error"?s("names.errorTitle"):G?s("names.buyCreditsTitle"):s("names.buyTitle");return e.jsx(cs,{onClick:_?void 0:r,role:"presentation",children:e.jsxs(ds,{role:"dialog","aria-modal":"true","aria-label":ae,onClick:f=>f.stopPropagation(),children:[Ae&&e.jsxs(e.Fragment,{children:[e.jsxs(ze,{children:[e.jsx(Pe,{children:ae}),e.jsx(Be,{onClick:r,disabled:_,"aria-label":s("buyModal.close"),children:e.jsx(W,{name:"close"})})]}),e.jsxs(Fe,{children:[s("names.myCreditsBalance")," ",e.jsx(Q,{})," ",We(c,w)]}),e.jsx(Ue,{})]}),G&&e.jsxs(Ns,{children:[e.jsxs(gn,{children:[e.jsx(bn,{}),e.jsxs(yn,{children:[e.jsx("b",{children:s("buyModal.insufficientFunds")})," ",s("buyModal.warningNeedToBuy")," ",e.jsx("b",{children:s("buyModal.warningCreditsAmount",{count:H})})," ",s("names.warningToPurchase"),fe()?null:e.jsxs(e.Fragment,{children:[" ",e.jsx(wn,{href:Mt("/credits"),target:"_blank",rel:"noopener noreferrer",children:s("buyModal.warningLearnMore")})]})]})]}),fe()?e.jsxs(be,{"data-testid":"name-row-iap",children:[e.jsx(Oe,{"aria-hidden":!0,children:"@"}),e.jsxs(ye,{children:[e.jsxs(we,{children:[n,e.jsx("span",{children:".dcl.eth"})]}),e.jsx(je,{children:s("names.subtitle")})]}),e.jsxs(ve,{children:[e.jsx(Q,{}),N]})]}):null,fe()?null:e.jsx(e.Fragment,{children:e.jsx(jn,{packs:re,selectedId:Z==null?void 0:Z.id,onSelect:k,recommendedId:Ie?X==null?void 0:X.id:void 0})}),e.jsxs(Ls,{children:[e.jsx(Je,{"data-variant":"outline",onClick:r,disabled:_,"data-testid":"name-topup-cancel",children:s("buyModal.cancel")}),fe()?null:e.jsx(Je,{"data-variant":"gradient","data-testid":"name-buy-credits",disabled:!d||!Z||x,onClick:()=>void le(),children:s("buyModal.buy")})]})]}),l==="confirm"&&!G&&I&&e.jsx(En,{asset:{name:`${n}.dcl.eth`,caption:s("names.subtitle"),thumb:e.jsx(Ws,{"aria-hidden":!0,children:"@"})},priceCredits:a??0,priceCents:(a??0)*Le,options:P.options,priceManaWei:BigInt(Y),balanceCredits:(c==null?void 0:c.credits)??0,manaBalanceWei:V,onBuy:f=>{$(f==="combined"&&R?{rail:"combined",creditsCents:R.creditsCents,manaWei:R.manaWei}:{rail:"credits"})},onClose:r,busy:_}),(l==="confirm"||l==="error")&&!G&&!I&&e.jsxs(e.Fragment,{children:[e.jsxs(be,{children:[e.jsx(Oe,{"aria-hidden":!0,children:"@"}),e.jsxs(ye,{children:[e.jsxs(we,{children:[n,e.jsx("span",{children:".dcl.eth"})]}),e.jsx(je,{children:s("names.subtitle")})]}),e.jsxs(ve,{children:[e.jsx(Q,{}),N]})]}),l==="error"?e.jsxs(e.Fragment,{children:[e.jsxs(De,{children:[e.jsx(W,{name:"info","aria-hidden":!0}),e.jsx("span",{children:A})]}),oe?e.jsx(He,{onClick:r,children:s("names.errorSpentDismiss")}):e.jsx(He,{onClick:()=>j("confirm"),children:s("names.tryAgain")})]}):e.jsxs(e.Fragment,{children:[e.jsxs(fs,{children:[e.jsx(xs,{children:s("names.confirmTitle")}),e.jsx(gs,{dangerouslySetInnerHTML:{__html:s("names.confirmBody",{name:`<b>@${Ps(n)}</b>`})}}),e.jsxs(bs,{children:[e.jsx(ys,{"aria-hidden":!0,children:"@"}),e.jsx(ws,{value:b,onChange:f=>C(f.target.value.replace(/[^a-zA-Z0-9]/g,"")),placeholder:"yourname","aria-label":s("names.reenterAria"),autoComplete:"off",spellCheck:!1,style:{width:`${Math.max(b.length,8)}ch`}}),e.jsx(js,{children:".dcl.eth"})]})]}),D?e.jsxs(De,{"data-tone":"info","data-testid":"name-blocked-reason",children:[e.jsx(W,{name:"info","aria-hidden":!0}),e.jsx("span",{children:D})]}):null,e.jsx(He,{onClick:()=>void te(),disabled:!se||!d||L||p==="credits"&&z,children:s("names.buyCta")})]})]}),l==="completing"&&e.jsxs(vs,{children:[e.jsx(Cs,{src:It,alt:"",width:61,height:61}),e.jsxs($s,{children:[e.jsx(ks,{children:Ne}),e.jsxs(Es,{children:[e.jsx(Rs,{"aria-hidden":!0,children:e.jsx("span",{})}),e.jsx(Ts,{"data-testid":"name-progress-count",children:`${pe}/${de}`})]}),ie?e.jsx(Ss,{children:ie}):null]})]}),l==="pending"&&e.jsxs(e.Fragment,{children:[e.jsxs(ze,{children:[e.jsx(Pe,{children:s("names.pendingHeaderTitle")}),e.jsx(Be,{onClick:r,"aria-label":s("buyModal.close"),children:e.jsx(W,{name:"close"})})]}),e.jsxs(Fe,{children:[s("names.myCreditsBalance")," ",e.jsx(Q,{})," ",We(c,w)]}),e.jsx(Ue,{}),e.jsxs(De,{"data-tone":"info",children:[e.jsx(W,{name:"info","aria-hidden":!0}),e.jsxs("span",{children:[e.jsx("b",{children:s("names.pendingBannerBold")})," ",s("names.pendingBannerRest")]})]}),e.jsxs(be,{style:{marginTop:20},children:[e.jsx(Oe,{"aria-hidden":!0,children:"@"}),e.jsxs(ye,{children:[e.jsxs(we,{children:[n,e.jsx("span",{children:".dcl.eth"})]}),e.jsx(je,{children:s("names.subtitle")})]}),e.jsxs(ve,{children:[e.jsx(Q,{}),N]})]}),e.jsx(st,{children:e.jsx(it,{onClick:()=>{r(),g("/my-items")},children:s("names.myItems")})})]}),l==="success"&&e.jsxs(e.Fragment,{children:[e.jsxs(ze,{children:[e.jsx(Pe,{children:s("names.successHeaderTitle")}),e.jsx(Be,{onClick:r,"aria-label":s("buyModal.close"),children:e.jsx(W,{name:"close"})})]}),e.jsxs(Fe,{children:[s("names.myCreditsBalance")," ",e.jsx(Q,{})," ",We(c,w)]}),e.jsx(Ue,{}),e.jsxs(_s,{children:[e.jsx(Ms,{"aria-hidden":!0,children:e.jsx(W,{name:"check"})}),e.jsxs(Is,{children:[e.jsx("b",{children:s("names.successBannerBold")})," ",s("names.successBannerRest")]})]}),e.jsxs(be,{style:{marginTop:20},children:[e.jsxs(hs,{"data-testid":"name-success-tile",children:[e.jsx(ps,{src:Tn,alt:"","aria-hidden":!0,width:47,height:47}),e.jsxs(us,{children:[e.jsx("span",{"aria-hidden":!0,children:n}),e.jsx(ms,{src:rs,alt:"","aria-hidden":!0,width:14,height:14})]})]}),e.jsxs(ye,{children:[e.jsxs(we,{children:[n,e.jsx("span",{children:".dcl.eth"})]}),e.jsx(je,{children:s("names.subtitle")})]}),e.jsxs(ve,{children:[e.jsx(Q,{}),N]})]}),e.jsxs(st,{children:[e.jsx(it,{onClick:()=>{r(),g("/my-items")},children:s("names.myItems")}),e.jsx(As,{href:ne.profileUrl,target:"_blank",rel:"noopener noreferrer",children:s("names.assignToAvatar")})]})]})]})})}function Ps(n){return n.replace(/[&<>"']/g,a=>({"&":"&","<":"<",">":">",'"':""","'":"'"})[a])}const Bs="https://cdn.decentraland.org/@dcl/shop/1.14.1-35717029846.commit-081e19f/_assets/identity-icon-C8yAW_Gq.svg",Fs="https://cdn.decentraland.org/@dcl/shop/1.14.1-35717029846.commit-081e19f/_assets/world-icon-6xQ-PmmW.svg",Us="https://cdn.decentraland.org/@dcl/shop/1.14.1-35717029846.commit-081e19f/_assets/invite-icon-Bz6lCTuB.svg",Os="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",Hs=i.div`
|
|
513
|
-
width: 100%;
|
|
514
|
-
min-width: 0;
|
|
515
|
-
`,Ds=i.nav`
|
|
516
|
-
display: flex;
|
|
517
|
-
align-items: center;
|
|
518
|
-
gap: 6px;
|
|
519
|
-
margin: 4px 0 16px;
|
|
520
|
-
font-family: ${t.font.sans};
|
|
521
|
-
font-size: 12px;
|
|
522
|
-
line-height: 1;
|
|
523
|
-
color: ${t.colors.gray4};
|
|
524
|
-
${_n};
|
|
525
|
-
`,Gs=i.button`
|
|
526
|
-
border: 0;
|
|
527
|
-
background: none;
|
|
528
|
-
padding: 0;
|
|
529
|
-
cursor: pointer;
|
|
530
|
-
font: inherit;
|
|
531
|
-
color: ${t.colors.gray4};
|
|
532
|
-
|
|
533
|
-
&:hover {
|
|
534
|
-
color: ${t.colors.white};
|
|
535
|
-
text-decoration: underline;
|
|
536
|
-
}
|
|
537
|
-
&:focus-visible {
|
|
538
|
-
outline: 2px solid ${t.colors.white};
|
|
539
|
-
outline-offset: 2px;
|
|
540
|
-
}
|
|
541
|
-
`,qs=i.span`
|
|
542
|
-
font-weight: 700;
|
|
543
|
-
color: ${t.colors.softWhite};
|
|
544
|
-
`,Ks=i.div`
|
|
545
|
-
display: flex;
|
|
546
|
-
flex-direction: column;
|
|
547
|
-
gap: 48px;
|
|
548
|
-
padding-bottom: 48px;
|
|
549
|
-
|
|
550
|
-
${t.media.maxWidth("mobile")} {
|
|
551
|
-
gap: 32px;
|
|
552
|
-
padding-bottom: 32px;
|
|
553
|
-
}
|
|
554
|
-
`,Vs=i.div`
|
|
555
|
-
position: relative;
|
|
556
|
-
border: 1px solid ${t.colors.magenta};
|
|
557
|
-
border-radius: 24px;
|
|
558
|
-
overflow: hidden;
|
|
559
|
-
padding: 88px 48px;
|
|
560
|
-
display: flex;
|
|
561
|
-
flex-direction: column;
|
|
562
|
-
align-items: center;
|
|
563
|
-
gap: 48px;
|
|
564
|
-
text-align: center;
|
|
565
|
-
background: ${t.colors.overlay};
|
|
566
|
-
|
|
567
|
-
${t.media.maxWidth("mobile")} {
|
|
568
|
-
padding: 40px 20px;
|
|
569
|
-
gap: 28px;
|
|
570
|
-
}
|
|
571
|
-
`,Zs=i.div`
|
|
572
|
-
display: flex;
|
|
573
|
-
flex-direction: column;
|
|
574
|
-
align-items: center;
|
|
575
|
-
gap: 12px;
|
|
576
|
-
`,Qs=i.h1`
|
|
577
|
-
margin: 0;
|
|
578
|
-
font-family: ${t.font.sans};
|
|
579
|
-
font-weight: 600;
|
|
580
|
-
font-size: 40px;
|
|
581
|
-
line-height: 1.167;
|
|
582
|
-
color: ${t.colors.white};
|
|
583
|
-
|
|
584
|
-
${t.media.maxWidth("mobile")} {
|
|
585
|
-
font-size: 26px;
|
|
586
|
-
}
|
|
587
|
-
`,Ys=i.p`
|
|
588
|
-
margin: 0;
|
|
589
|
-
max-width: 760px;
|
|
590
|
-
font-family: ${t.font.sans};
|
|
591
|
-
font-weight: 500;
|
|
592
|
-
font-size: 24px;
|
|
593
|
-
line-height: 1.334;
|
|
594
|
-
color: #ecebed;
|
|
595
|
-
|
|
596
|
-
${t.media.maxWidth("mobile")} {
|
|
597
|
-
font-size: 16px;
|
|
598
|
-
}
|
|
599
|
-
`,Xs=i.div`
|
|
600
|
-
width: min(785px, 100%);
|
|
601
|
-
display: flex;
|
|
602
|
-
flex-direction: column;
|
|
603
|
-
gap: 12px;
|
|
604
|
-
`,Js=i.div`
|
|
605
|
-
position: relative;
|
|
606
|
-
`,ei=i("div",Mn("invalid"))`
|
|
607
|
-
display: flex;
|
|
608
|
-
align-items: center;
|
|
609
|
-
gap: 8px;
|
|
610
|
-
padding: 8px 8px 8px 16px;
|
|
611
|
-
background: ${t.colors.softWhite};
|
|
612
|
-
/* Figma 1368:349148 gives the field a 3px Orange edge — it is the page's one input, and the design
|
|
613
|
-
leans on that weight to carry it. Red only when what has been typed cannot be claimed. */
|
|
614
|
-
border: 3px solid ${({invalid:n})=>n?t.colors.dclRed:t.colors.orange};
|
|
615
|
-
border-radius: 20px;
|
|
616
|
-
|
|
617
|
-
&:focus-within {
|
|
618
|
-
border-color: ${({invalid:n})=>n?t.colors.dclRed:t.colors.magenta};
|
|
619
|
-
}
|
|
620
|
-
|
|
621
|
-
${t.media.maxWidth("mobile")} {
|
|
622
|
-
border-radius: 16px;
|
|
623
|
-
}
|
|
624
|
-
`,ti=i.span`
|
|
625
|
-
position: absolute;
|
|
626
|
-
left: -9999px;
|
|
627
|
-
top: 0;
|
|
628
|
-
visibility: hidden;
|
|
629
|
-
pointer-events: none;
|
|
630
|
-
white-space: pre;
|
|
631
|
-
font-family: ${t.font.sans};
|
|
632
|
-
font-size: 20px;
|
|
633
|
-
font-weight: 600;
|
|
634
|
-
line-height: 1.6;
|
|
635
|
-
|
|
636
|
-
/* An empty field paints the PLACEHOLDER, which is lighter than a typed value — so the mirror has to
|
|
637
|
-
be lighter too. Measuring the placeholder at the value's weight made the box a few pixels wider
|
|
638
|
-
than the text in it, and ".dcl.eth" sat that far off the end of the word. */
|
|
639
|
-
&[data-placeholder] {
|
|
640
|
-
font-weight: 400;
|
|
641
|
-
}
|
|
642
|
-
|
|
643
|
-
${t.media.maxWidth("mobile")} {
|
|
644
|
-
font-size: 16px;
|
|
645
|
-
}
|
|
646
|
-
`,ni=i.div`
|
|
647
|
-
position: absolute;
|
|
648
|
-
top: calc(100% + 8px);
|
|
649
|
-
left: 0;
|
|
650
|
-
right: 0;
|
|
651
|
-
z-index: 2;
|
|
652
|
-
display: flex;
|
|
653
|
-
align-items: center;
|
|
654
|
-
gap: 8px;
|
|
655
|
-
padding: 8px 12px;
|
|
656
|
-
border-radius: 8px;
|
|
657
|
-
background: #ffcdd4;
|
|
658
|
-
color: #ec303a;
|
|
659
|
-
font-family: ${t.font.sans};
|
|
660
|
-
font-size: 14px;
|
|
661
|
-
font-weight: 500;
|
|
662
|
-
line-height: 1.2;
|
|
663
|
-
text-align: left;
|
|
664
|
-
|
|
665
|
-
${t.media.maxWidth("mobile")} {
|
|
666
|
-
position: static;
|
|
667
|
-
margin-top: 8px;
|
|
668
|
-
align-items: flex-start;
|
|
669
|
-
flex-wrap: wrap;
|
|
670
|
-
}
|
|
671
|
-
`,mt=i.a`
|
|
672
|
-
display: inline-flex;
|
|
673
|
-
align-items: center;
|
|
674
|
-
gap: 2px;
|
|
675
|
-
margin-left: auto;
|
|
676
|
-
font-weight: 600;
|
|
677
|
-
text-decoration: underline;
|
|
678
|
-
text-transform: uppercase;
|
|
679
|
-
white-space: nowrap;
|
|
680
|
-
|
|
681
|
-
${t.media.maxWidth("mobile")} {
|
|
682
|
-
margin-left: 0;
|
|
683
|
-
}
|
|
684
|
-
`,si=i(mt)`
|
|
685
|
-
color: #ec303a;
|
|
686
|
-
`,ii=i.label`
|
|
687
|
-
flex: 1;
|
|
688
|
-
min-width: 0;
|
|
689
|
-
display: flex;
|
|
690
|
-
align-items: center;
|
|
691
|
-
gap: 0;
|
|
692
|
-
cursor: text;
|
|
693
|
-
overflow: hidden;
|
|
694
|
-
`,ai=i.span`
|
|
695
|
-
flex: none;
|
|
696
|
-
margin-right: 8px;
|
|
697
|
-
font-family: ${t.font.sans};
|
|
698
|
-
font-size: 26px;
|
|
699
|
-
font-weight: 500;
|
|
700
|
-
line-height: 1;
|
|
701
|
-
color: ${t.colors.muted2};
|
|
702
|
-
|
|
703
|
-
${t.media.maxWidth("mobile")} {
|
|
704
|
-
font-size: 20px;
|
|
705
|
-
}
|
|
706
|
-
`,oi=i.input`
|
|
707
|
-
flex: 0 1 auto;
|
|
708
|
-
min-width: 0;
|
|
709
|
-
max-width: 100%;
|
|
710
|
-
border: 0;
|
|
711
|
-
outline: none;
|
|
712
|
-
background: transparent;
|
|
713
|
-
font-family: ${t.font.sans};
|
|
714
|
-
font-size: 20px;
|
|
715
|
-
font-weight: 600;
|
|
716
|
-
line-height: 1.6;
|
|
717
|
-
color: ${t.colors.text};
|
|
718
|
-
padding: 0;
|
|
719
|
-
|
|
720
|
-
&::placeholder {
|
|
721
|
-
color: ${t.colors.muted1};
|
|
722
|
-
font-weight: 400;
|
|
723
|
-
}
|
|
724
|
-
|
|
725
|
-
${t.media.maxWidth("mobile")} {
|
|
726
|
-
font-size: 16px;
|
|
727
|
-
}
|
|
728
|
-
`,ri=i.span`
|
|
729
|
-
flex: none;
|
|
730
|
-
/* Flush against the name: "yourname.dcl.eth" has to read as one address, and at 20px even a couple of
|
|
731
|
-
pixels here look like a space someone typed by mistake. */
|
|
732
|
-
margin-left: 0;
|
|
733
|
-
/* Not selectable: it is the fixed part of the address, not something the reader typed. */
|
|
734
|
-
user-select: none;
|
|
735
|
-
-webkit-user-select: none;
|
|
736
|
-
font-family: ${t.font.sans};
|
|
737
|
-
font-size: 20px;
|
|
738
|
-
font-weight: 400;
|
|
739
|
-
line-height: 1.6;
|
|
740
|
-
color: ${t.colors.muted1};
|
|
741
|
-
|
|
742
|
-
${t.media.maxWidth("mobile")} {
|
|
743
|
-
font-size: 16px;
|
|
744
|
-
}
|
|
745
|
-
`,li=i.span`
|
|
746
|
-
flex: none;
|
|
747
|
-
font-family: ${t.font.sans};
|
|
748
|
-
font-size: 14px;
|
|
749
|
-
line-height: 1.43;
|
|
750
|
-
color: ${t.colors.muted2};
|
|
751
|
-
white-space: nowrap;
|
|
752
|
-
`,ft=i.button`
|
|
753
|
-
flex: none;
|
|
754
|
-
display: inline-flex;
|
|
755
|
-
align-items: center;
|
|
756
|
-
justify-content: center;
|
|
757
|
-
gap: 8px;
|
|
758
|
-
height: 52px;
|
|
759
|
-
padding: 0 24px;
|
|
760
|
-
border: 0;
|
|
761
|
-
border-radius: 12px;
|
|
762
|
-
cursor: pointer;
|
|
763
|
-
background: ${t.gradients.buyBtn};
|
|
764
|
-
color: ${t.colors.softWhite};
|
|
765
|
-
font-family: ${t.font.sans};
|
|
766
|
-
font-weight: 600;
|
|
767
|
-
font-size: 15px;
|
|
768
|
-
letter-spacing: 0.46px;
|
|
769
|
-
line-height: 24px;
|
|
770
|
-
text-transform: uppercase;
|
|
771
|
-
transition: background-image 0.15s ease;
|
|
772
|
-
|
|
773
|
-
/* Both ends stay on background-IMAGE: a gradient cannot interpolate to a plain colour, so swapping
|
|
774
|
-
the background shorthand instead blanks the button for the length of the transition. */
|
|
775
|
-
&:hover:not(:disabled),
|
|
776
|
-
&:active:not(:disabled) {
|
|
777
|
-
background-image: linear-gradient(${t.colors.dclRed}, ${t.colors.dclRed});
|
|
778
|
-
}
|
|
779
|
-
&:focus-visible {
|
|
780
|
-
outline: 2px solid ${t.colors.white};
|
|
781
|
-
outline-offset: 2px;
|
|
782
|
-
}
|
|
783
|
-
&:disabled {
|
|
784
|
-
cursor: not-allowed;
|
|
785
|
-
opacity: 0.5;
|
|
786
|
-
}
|
|
787
|
-
|
|
788
|
-
${t.media.maxWidth("mobile")} {
|
|
789
|
-
display: none;
|
|
790
|
-
}
|
|
791
|
-
`,ci=i(ft)`
|
|
792
|
-
display: none;
|
|
793
|
-
|
|
794
|
-
${t.media.maxWidth("mobile")} {
|
|
795
|
-
display: inline-flex;
|
|
796
|
-
width: 100%;
|
|
797
|
-
height: 48px;
|
|
798
|
-
border-radius: 12px;
|
|
799
|
-
}
|
|
800
|
-
`,di=i.span`
|
|
801
|
-
display: inline-flex;
|
|
802
|
-
align-items: center;
|
|
803
|
-
gap: 4px;
|
|
804
|
-
font-size: 18px;
|
|
805
|
-
font-weight: 600;
|
|
806
|
-
|
|
807
|
-
.ico {
|
|
808
|
-
width: 13.26px;
|
|
809
|
-
height: 14px;
|
|
810
|
-
}
|
|
811
|
-
`,hi=i.div`
|
|
812
|
-
display: flex;
|
|
813
|
-
align-items: center;
|
|
814
|
-
gap: 8px;
|
|
815
|
-
padding: 8px 14px;
|
|
816
|
-
border-radius: 8px;
|
|
817
|
-
font-family: ${t.font.sans};
|
|
818
|
-
font-size: 13px;
|
|
819
|
-
font-weight: 500;
|
|
820
|
-
text-align: left;
|
|
821
|
-
|
|
822
|
-
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)"};
|
|
823
|
-
color: ${({tone:n})=>n==="error"?t.colors.dclRed:n==="ok"?"#0f7a4f":"#ecebed"};
|
|
824
|
-
|
|
825
|
-
.ico {
|
|
826
|
-
width: 16px;
|
|
827
|
-
height: 16px;
|
|
828
|
-
flex: none;
|
|
829
|
-
}
|
|
830
|
-
`,Ce=i(hi)`
|
|
831
|
-
position: absolute;
|
|
832
|
-
top: calc(100% + 8px);
|
|
833
|
-
left: 0;
|
|
834
|
-
right: 0;
|
|
835
|
-
z-index: 2;
|
|
836
|
-
|
|
837
|
-
/* Static on mobile, as TakenBanner is: the claim button sits below InputWrap there, so anything
|
|
838
|
-
floating out of the input lands on top of it. */
|
|
839
|
-
${t.media.maxWidth("mobile")} {
|
|
840
|
-
position: static;
|
|
841
|
-
margin-top: 8px;
|
|
842
|
-
}
|
|
843
|
-
`,pi=i(mt)`
|
|
844
|
-
color: inherit;
|
|
845
|
-
`,ui=i.section`
|
|
846
|
-
display: flex;
|
|
847
|
-
flex-direction: column;
|
|
848
|
-
gap: 48px;
|
|
849
|
-
padding: 0 48px;
|
|
850
|
-
|
|
851
|
-
${t.media.maxWidth("mobile")} {
|
|
852
|
-
gap: 32px;
|
|
853
|
-
padding: 0 20px;
|
|
854
|
-
}
|
|
855
|
-
`,mi=i.div`
|
|
856
|
-
display: flex;
|
|
857
|
-
flex-direction: column;
|
|
858
|
-
align-items: center;
|
|
859
|
-
gap: 24px;
|
|
860
|
-
`,fi=i.h2`
|
|
861
|
-
margin: 0;
|
|
862
|
-
text-align: center;
|
|
863
|
-
font-family: ${t.font.sans};
|
|
864
|
-
font-weight: 600;
|
|
865
|
-
font-size: 32px;
|
|
866
|
-
line-height: 1.167;
|
|
867
|
-
color: ${t.colors.white};
|
|
868
|
-
|
|
869
|
-
${t.media.maxWidth("mobile")} {
|
|
870
|
-
font-size: 22px;
|
|
871
|
-
}
|
|
872
|
-
`,xi=i.p`
|
|
873
|
-
margin: 0;
|
|
874
|
-
max-width: 907px;
|
|
875
|
-
text-align: center;
|
|
876
|
-
font-family: ${t.font.sans};
|
|
877
|
-
font-weight: 400;
|
|
878
|
-
font-size: 20px;
|
|
879
|
-
line-height: 1.57;
|
|
880
|
-
color: ${t.colors.gray4};
|
|
881
|
-
|
|
882
|
-
${t.media.maxWidth("mobile")} {
|
|
883
|
-
font-size: 16px;
|
|
884
|
-
}
|
|
885
|
-
`,gi=i.div`
|
|
886
|
-
display: grid;
|
|
887
|
-
grid-template-columns: repeat(4, 1fr);
|
|
888
|
-
gap: 24px;
|
|
889
|
-
align-items: stretch;
|
|
890
|
-
|
|
891
|
-
${t.media.maxWidth("lg")} {
|
|
892
|
-
grid-template-columns: repeat(2, 1fr);
|
|
893
|
-
}
|
|
894
|
-
${t.media.maxWidth("mobile")} {
|
|
895
|
-
grid-template-columns: 1fr;
|
|
896
|
-
}
|
|
897
|
-
`,$e=i.article`
|
|
898
|
-
min-width: 0;
|
|
899
|
-
display: flex;
|
|
900
|
-
flex-direction: column;
|
|
901
|
-
gap: 32px;
|
|
902
|
-
padding: 24px;
|
|
903
|
-
background: ${t.colors.overlay};
|
|
904
|
-
border-radius: 24px;
|
|
905
|
-
|
|
906
|
-
@media (forced-colors: active) {
|
|
907
|
-
outline: 1px solid CanvasText;
|
|
908
|
-
}
|
|
909
|
-
|
|
910
|
-
${t.media.maxWidth("mobile")} {
|
|
911
|
-
gap: 20px;
|
|
912
|
-
padding: 20px;
|
|
913
|
-
}
|
|
914
|
-
`,ke=i.img`
|
|
915
|
-
display: block;
|
|
916
|
-
align-self: flex-start;
|
|
917
|
-
height: 55px;
|
|
918
|
-
width: auto;
|
|
919
|
-
`,Se=i.div`
|
|
920
|
-
flex: 1;
|
|
921
|
-
display: flex;
|
|
922
|
-
flex-direction: column;
|
|
923
|
-
gap: 12px;
|
|
924
|
-
`,Ee=i.h3`
|
|
925
|
-
margin: 0;
|
|
926
|
-
font-family: ${t.font.sans};
|
|
927
|
-
font-weight: 700;
|
|
928
|
-
font-size: 20px;
|
|
929
|
-
line-height: 1.57;
|
|
930
|
-
text-transform: uppercase;
|
|
931
|
-
color: ${t.colors.white};
|
|
932
|
-
`,Re=i.p`
|
|
933
|
-
margin: 0;
|
|
934
|
-
font-family: ${t.font.sans};
|
|
935
|
-
font-weight: 400;
|
|
936
|
-
font-size: 14px;
|
|
937
|
-
line-height: 1.57;
|
|
938
|
-
color: ${t.colors.media};
|
|
939
|
-
`,bi=i.span`
|
|
940
|
-
font-weight: 700;
|
|
941
|
-
color: ${t.colors.white};
|
|
942
|
-
`,at=i.a`
|
|
943
|
-
display: inline-flex;
|
|
944
|
-
align-items: center;
|
|
945
|
-
gap: 2px;
|
|
946
|
-
margin-top: auto;
|
|
947
|
-
font-family: ${t.font.sans};
|
|
948
|
-
font-weight: 500;
|
|
949
|
-
font-size: 14px;
|
|
950
|
-
line-height: 30px;
|
|
951
|
-
color: ${t.colors.softWhite};
|
|
952
|
-
text-decoration: underline;
|
|
953
|
-
|
|
954
|
-
&:focus-visible {
|
|
955
|
-
outline: 2px solid ${t.colors.softWhite};
|
|
956
|
-
outline-offset: 2px;
|
|
957
|
-
}
|
|
958
|
-
|
|
959
|
-
.ico {
|
|
960
|
-
width: 13px;
|
|
961
|
-
height: 13px;
|
|
962
|
-
}
|
|
963
|
-
`,yi=i.span`
|
|
964
|
-
position: absolute;
|
|
965
|
-
width: 1px;
|
|
966
|
-
height: 1px;
|
|
967
|
-
padding: 0;
|
|
968
|
-
margin: -1px;
|
|
969
|
-
overflow: hidden;
|
|
970
|
-
clip: rect(0, 0, 0, 0);
|
|
971
|
-
white-space: nowrap;
|
|
972
|
-
border: 0;
|
|
973
|
-
`,wi="https://docs.decentraland.org/creator/worlds/about/",ji="https://governance.decentraland.org";function ot(n){const a=typeof window<"u"?window.location.hostname:"";return`${a.endsWith("decentraland.org")?"https://decentraland.org":a.endsWith("decentraland.today")?"https://decentraland.today":"https://decentraland.zone"}/marketplace/names/browse?search=${encodeURIComponent(n)}`}function vi({onBack:n}){dt({title:s("seo.names.title"),description:s("seo.names.description")});const{session:a,signIn:r}=lt(),d=Ke(),c=xt(),{pathname:w,search:u}=c,g=c.state,l=typeof(g==null?void 0:g.resumeName)=="string"?g:void 0,j=es(),{data:b}=ht(),C=b?pt(Y,b):null,[m,k]=h.useState((l==null?void 0:l.resumeName)??""),[x,y]=h.useState("idle"),[v,$]=h.useState(!1),[p,A]=h.useState((l==null?void 0:l.resumeName)??""),[U,oe]=h.useState(!!(l!=null&&l.resumeName)),[M,T]=h.useState(()=>{var E;return typeof window<"u"&&!!((E=window.matchMedia)!=null&&E.call(window,"(prefers-reduced-motion: reduce)").matches)});h.useEffect(()=>{var I;const E=(I=window.matchMedia)==null?void 0:I.call(window,"(prefers-reduced-motion: reduce)");if(!E)return;const R=B=>T(B.matches);return E.addEventListener("change",R),()=>E.removeEventListener("change",R)},[]);const O=s("names.placeholderExamples"),F=h.useMemo(()=>O.split(",").map(E=>E.trim()).filter(Boolean),[O]),_=os(F,!U&&!m&&!M)||s("names.inputPlaceholder"),N=h.useRef(null),[L,ee]=h.useState(void 0);h.useLayoutEffect(()=>{N.current&&ee(N.current.getBoundingClientRect().width)},[m,_]),h.useEffect(()=>{if(!tt(m).ok){y(m.length===0?"idle":"invalid");return}y("checking");const R=new AbortController,I=setTimeout(()=>{(async()=>{try{const B=await Kn(m,{signal:R.signal});y(B)}catch(B){if((B==null?void 0:B.name)==="AbortError")return;y("error")}})()},400);return()=>{clearTimeout(I),R.abort()}},[m]);const H=tt(m),z=H.ok&&(x==="available"||x==="error"),D=j&&z,K=!j&&z;function V(){if(D){if(!a){r();return}$(!0)}}h.useEffect(()=>{l!=null&&l.resumeName&&d(`${w}${u}`,{replace:!0,state:null})},[l==null?void 0:l.resumeName,d,w,u]),h.useEffect(()=>{if(p){if(m.toLowerCase()!==p.toLowerCase()){A("");return}if(!(x==="idle"||x==="checking")){if(!z){A("");return}!j||!a||(A(""),$(!0))}}},[p,m,x,z,j,a]);const P=e.jsxs(e.Fragment,{children:[s("names.claim"),C!=null?e.jsxs(di,{children:[e.jsx(Q,{}),ct(C)]}):null]});return e.jsxs(Hs,{"data-testid":"names-page",children:[e.jsxs(Ds,{"aria-label":s("names.breadcrumbAria"),children:[e.jsx(Gs,{onClick:n,children:s("names.breadcrumbCollectibles")}),e.jsx("span",{"aria-hidden":!0,children:">"}),e.jsx(qs,{children:s("names.breadcrumbCurrent")})]}),e.jsxs(Ks,{children:[e.jsxs(Vs,{children:[e.jsxs(Zs,{children:[e.jsx(Qs,{children:s("names.heroTitle")}),e.jsx(Ys,{children:s("names.heroSubtitle")})]}),e.jsxs(Xs,{children:[e.jsxs(Js,{"data-testid":"names-input-wrap",children:[e.jsxs(ei,{invalid:x==="taken",children:[e.jsxs(ii,{children:[e.jsx(ai,{"aria-hidden":!0,children:"@"}),e.jsx(oi,{value:m,onChange:E=>k(Dn(E.target.value)),placeholder:_,"aria-label":s("names.inputAria"),autoComplete:"off",spellCheck:!1,maxLength:Me,onFocus:()=>oe(!0),style:{width:L!=null?`${L}px`:void 0}}),e.jsx(ti,{ref:N,"aria-hidden":!0,"data-placeholder":!m||void 0,children:m||_}),e.jsx(ri,{children:s("names.suffix")})]}),m.length>0?e.jsxs(li,{"aria-hidden":!0,children:[m.length,"/",Me]}):null,e.jsx(ft,{onClick:V,disabled:!D,"data-testid":"names-claim",children:P})]}),x==="taken"?e.jsxs(ni,{role:"status","data-testid":"names-taken",children:[e.jsx(W,{name:"info",size:16,"aria-hidden":!0}),e.jsx("span",{children:s("names.taken")}),e.jsxs(si,{href:ot(m),target:"_blank",rel:"noopener noreferrer",children:[s("names.takenMakeOffer"),e.jsx(W,{name:"external-link",size:13,"aria-hidden":!0})]})]}):null,x==="checking"?e.jsx(Ce,{tone:"muted",role:"status","data-testid":"names-checking",children:s("names.checking")}):K?e.jsxs(Ce,{tone:"muted",role:"status","data-testid":"names-disabled",children:[e.jsx(W,{name:"info",size:16,"aria-hidden":!0}),e.jsx("span",{children:s("names.registrationDisabled")}),e.jsxs(pi,{href:ot(m),target:"_blank",rel:"noopener noreferrer",children:[s("names.registrationDisabledLink"),e.jsx(W,{name:"external-link",size:13,"aria-hidden":!0})]})]}):x==="error"?e.jsx(Ce,{tone:"muted",role:"status",children:s("names.checkError")}):x==="invalid"&&!H.ok&&H.reason==="too-short"?e.jsx(Ce,{tone:"muted",role:"status",children:s("names.tooShort",{min:ut})}):null]}),e.jsx(ci,{onClick:V,disabled:!D,children:P}),e.jsx(yi,{role:"status","aria-live":"polite",children:x==="available"?s("names.available",{name:m}):""})]})]}),e.jsxs(ui,{children:[e.jsxs(mi,{children:[e.jsx(fi,{children:s("names.whyTitle")}),e.jsx(xi,{children:s("names.whyIntro")})]}),e.jsxs(gi,{children:[e.jsxs($e,{children:[e.jsx(ke,{src:Bs,alt:""}),e.jsxs(Se,{children:[e.jsx(Ee,{children:s("names.why1Title")}),e.jsx(Re,{children:s("names.why1")})]})]}),e.jsxs($e,{children:[e.jsx(ke,{src:Fs,alt:""}),e.jsxs(Se,{children:[e.jsx(Ee,{children:s("names.why2Title")}),e.jsxs(Re,{children:[s("names.why2")," ",e.jsx(bi,{children:s("names.why2Address")})]}),e.jsxs(at,{href:wi,target:"_blank",rel:"noopener noreferrer",children:[s("names.learnMore"),e.jsx(W,{name:"external-link","aria-hidden":!0})]})]})]}),e.jsxs($e,{children:[e.jsx(ke,{src:Us,alt:""}),e.jsxs(Se,{children:[e.jsx(Ee,{children:s("names.why3Title")}),e.jsx(Re,{children:s("names.why3")})]})]}),e.jsxs($e,{children:[e.jsx(ke,{src:Os,alt:""}),e.jsxs(Se,{children:[e.jsx(Ee,{children:s("names.why4Title")}),e.jsx(Re,{children:s("names.why4")}),e.jsxs(at,{href:ji,target:"_blank",rel:"noopener noreferrer",children:[s("names.learnMore"),e.jsx(W,{name:"external-link","aria-hidden":!0})]})]})]})]})]})]}),v?e.jsx(zs,{name:m,priceCredits:C,onClose:()=>$(!1)}):null]})}const Ci=i.p`
|
|
974
|
-
display: flex;
|
|
975
|
-
align-items: center;
|
|
976
|
-
gap: 10px;
|
|
977
|
-
background: ${t.colors.rarityBg};
|
|
978
|
-
color: ${t.colors.accent};
|
|
979
|
-
border-radius: 12px;
|
|
980
|
-
padding: 12px 16px;
|
|
981
|
-
margin-bottom: 14px;
|
|
982
|
-
font-weight: 600;
|
|
983
|
-
font-size: 14px;
|
|
984
|
-
|
|
985
|
-
&[data-variant='warn'] {
|
|
986
|
-
background: rgba(211, 51, 51, 0.1);
|
|
987
|
-
color: ${t.colors.err};
|
|
988
|
-
}
|
|
989
|
-
`,rt=48,$i=["all","on_sale","not_for_sale"],ki=n=>n?"all":"on_sale";function ta({contracts:n,hideNames:a=!1,seo:r,lockStatus:d}={}){const[c]=gt(),w=Ke(),u=(c.get("q")??"").trim().toLowerCase(),g=(c.get("q")??"").trim();dt(r??{title:g?s("seo.collectibles.searchTitle",{query:g}):s("seo.collectibles.title"),description:s("seo.collectibles.description")});const l=ki(!!u),j=Wt(),b=j&&c.get("deals")==="true",C=h.useMemo(()=>({category:"all",status:l,subCategory:null,rarities:[],priceMin:"",priceMax:"",smart:!1,deals:!1,sort:b?"discount":"newest"}),[l,b]),[m,k]=Ot(C),{subCategory:x,rarities:y,priceMin:v,priceMax:$,smart:p,sort:A}=m,U=j&&m.deals,M=Dt.map(o=>o.key).filter(o=>!(a&&o==="names")).includes(m.category)?m.category:"all",T=d??($i.includes(m.status)?m.status:l);Gt(`${M}:${x??""}`);const[O,F]=h.useState(!1);h.useEffect(()=>{if(!O)return;const o=me=>{me.key==="Escape"&&F(!1)};document.addEventListener("keydown",o);const J=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.removeEventListener("keydown",o),document.body.style.overflow=J}},[O]);const se=n!==void 0&&n.length===0,_=T==="on_sale",N=v&&!Number.isNaN(Number(v))?Number(v):void 0,L=$&&!Number.isNaN(Number($))?Number($):void 0,ee=zt(),H=x?Jt[x]:void 0,z=U?qt:Kt,D=(z.find(o=>o.key===A)??z[0]).server,K={category:M,rarities:y.length?y:void 0,wearableCategories:H,minPriceCredits:N,maxPriceCredits:L,search:u||void 0,sortBy:D,isSmart:p||void 0,onSale:!0,discounted:U||void 0,listingType:ee?void 0:"primary",contractAddresses:n!=null&&n.length?n:void 0},V={category:M,rarities:y.length?y:void 0,wearableCategories:H,search:u||void 0,sortBy:D,isWearableSmart:p||void 0,isOnSale:T==="not_for_sale"?!1:void 0,contractAddresses:n!=null&&n.length?n:void 0},{items:P,total:E,isLoading:R,isPlaceholderData:I,error:B,hasNextPage:re,isFetchingNextPage:X,isFetchNextPageError:Ie,fetchNextPage:Z}=Xt(_?["shop-items",K]:["catalog-items",V],o=>_?Ft({...K,first:rt,skip:o}):Ut({...V,first:rt,skip:o}),{enabled:M!=="names"&&!se}),te=E,{data:le,isError:Ae,isPending:ce}=ht(),de=o=>le&&o.manaWei?pt(o.manaWei,le):null,he=_&&ce&&P.some(o=>o.source==="legacy"),pe=R||I||he,Ne=R?15:Math.max(P.length,1),ie=h.useRef(null);h.useEffect(()=>{R||I||!u||ie.current===u||(ie.current=u,Te("Shop Searched",{query:u,result_count:te}))},[u,R,I,te]);const G=h.useRef("__init__");h.useEffect(()=>{if(R||I)return;const o=JSON.stringify({category:M,subCategory:x,rarities:y,min:N,max:L,sort:A,status:T,smart:p});if(G.current==="__init__"||G.current===o){G.current=o;return}G.current=o,Te("Shop Applied Filter",{filters:{category:M,sub_category:x,rarities:y,min_price_credits:N??null,max_price_credits:L??null,status:T,smart:p,sort:A},result_count:te})},[M,x,y,N,L,A,T,p,R,I,te]);function ae(o){k({category:o,subCategory:null})}function f(o){k({status:o})}function S(o){k({rarities:y.includes(o)?y.filter(J=>J!==o):[...y,o]})}function ue(){k(C)}const q=[];(N!=null||L!=null)&&q.push({key:"price",label:s("filter.price"),onRemove:()=>{k({priceMin:"",priceMax:""})}});for(const o of Vt)y.includes(o)&&q.push({key:`rarity-${o}`,label:Pt(o),onRemove:()=>S(o)});return p&&q.push({key:"smart",label:s("filter.smart"),onRemove:()=>k({smart:!1})}),U&&q.push({key:"deals",label:s("filter.deals"),onRemove:()=>k({deals:!1,sort:"newest"})}),T!==l&&q.push({key:"status",label:T==="all"?s("filter.statusAll"):T==="on_sale"?s("filter.onSale"):s("filter.notForSale"),onRemove:()=>f(l)}),e.jsxs(An,{"data-testid":"browse",children:[M!=="names"&&e.jsxs(e.Fragment,{children:[O?e.jsx(Nn,{onClick:()=>F(!1),"aria-hidden":!0}):null,e.jsxs(Ln,{"data-open":O||void 0,"data-testid":"browse-sidebar",children:[e.jsxs(Wn,{children:[e.jsx(zn,{children:s("assets.filters")}),e.jsx(Pn,{onClick:()=>F(!1),"aria-label":s("assets.closeFilters"),children:"✕"})]}),e.jsx(Bn,{children:e.jsx(Zt,{category:M,subCategory:x,onCategory:ae,onSub:o=>k({subCategory:o}),priceMin:v,priceMax:$,onPriceMin:o=>k({priceMin:o}),onPriceMax:o=>k({priceMax:o}),rarities:y,onToggleRarity:S,status:T,onStatus:f,hideNames:a,smart:p,onSmart:o=>k({smart:o}),deals:U,onDeals:j?o=>k(o?{deals:!0,sort:"discount"}:{deals:!1,sort:"newest"}):void 0})}),e.jsx(Fn,{children:e.jsx(Un,{type:"button",onClick:()=>F(!1),children:s("assets.showItems")})})]})]}),e.jsx(On,{children:M==="names"?e.jsx(vi,{onBack:()=>ae("all")}):e.jsxs(e.Fragment,{children:[e.jsx(Qt,{sort:A,sortOptions:z,onSort:o=>k({sort:o}),total:E,loading:R||I,query:u,onOpenFilters:()=>F(!0),chips:q,onClearChips:ue}),Ae&&_&&P.some(o=>o.source==="legacy")?e.jsx(Ci,{"data-variant":"warn",children:s("assets.marketUnavailable")}):null,B?e.jsx(en,{message:s("assets.loadError"),testId:"browse-error"}):null,!pe&&P.length===0&&!B?e.jsx(Bt,{testId:"browse-empty",icon:Ht,title:s("assets.empty.title"),body:g?e.jsxs(e.Fragment,{children:[s("assets.empty.searchBefore"),e.jsx("b",{children:g}),s("assets.empty.searchAfter")]}):s("assets.empty.filters"),cta:{label:s("assets.empty.cta"),onClick:()=>w("/overview")}}):e.jsxs(e.Fragment,{children:[e.jsx(In,{"data-testid":"grid",children:pe?e.jsx(Xe,{count:Ne}):e.jsxs(e.Fragment,{children:[P.map(o=>{if(!_)return e.jsx(xe,{item:o,mode:"view"},ge(o));const J=o;if(J.source!=="legacy")return e.jsx(xe,{item:o},ge(o));const me=de(J);return me==null?e.jsx(xe,{item:o,mode:"view"},ge(o)):e.jsx(xe,{item:{...J,priceCredits:me}},ge(o))}),X?e.jsx(Xe,{count:6}):null]})}),e.jsx(Yt,{hasNextPage:re,isFetching:X,isError:Ie,onLoadMore:()=>void Z()})]})]})})]})}export{ta as Assets};
|
|
990
|
-
//# sourceMappingURL=Assets-Bo3E1kcH.js.map
|