@dcl/shop 1.13.1-35339357506.commit-a201fb1 → 1.13.1-35585926635.commit-02c8d2e
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-BZMB4hg5.js → Activity-DoatD7MW.js} +4 -4
- package/_assets/{AnimatedBackground-CXVxNT-G.js → AnimatedBackground-dVEk0PGp.js} +6 -6
- package/_assets/Assets-CN1LU5Xt.js +980 -0
- package/_assets/Cart-Bwf6I0xV.js +748 -0
- package/_assets/{Collection-D7LTf_OS.js → Collection-CPZhq7CU.js} +9 -9
- package/_assets/{CollectionCarousel-DsJ7L4rs.js → CollectionCarousel-CrMGuIJ3.js} +4 -4
- package/_assets/{Confetti-cdj3K_E3.js → Confetti-Bd901H1c.js} +4 -4
- package/_assets/{ConstantsUtil-BRm3N2MJ.js → ConstantsUtil-Bk0e9ERj.js} +2 -2
- package/_assets/{ContentClient-BuGONJzu.js → ContentClient-CWtagBtE.js} +2 -2
- package/_assets/{Creator-DTGBDA7q.js → Creator-pBuqm0Cj.js} +2 -2
- package/_assets/{modal.styles-G1Y436F0.js → CreditPackPicker-COb2KClL.js} +83 -50
- package/_assets/{DeploymentBuilder-t6QMfSJh.js → DeploymentBuilder-Dg-EXfAY.js} +2 -2
- package/_assets/{EmotePlaybackBar-DxozN5dA.js → EmotePlaybackBar-DyYs6qdM.js} +3 -3
- package/_assets/{ErrorNotice-Dlh8ddHO.js → ErrorNotice-Cm0KaFyV.js} +2 -2
- package/_assets/Event-C9d1J0Kb.js +72 -0
- package/_assets/{ExchangeController-CSSF68uc.js → ExchangeController-BzBrR3ZT.js} +2 -2
- package/_assets/{Faq-DQCrsGCA.js → Faq-D2noxWN_.js} +2 -2
- package/_assets/{Filters-BsZs-9_M.js → Filters-Dw8HD8Ma.js} +2 -2
- package/_assets/{GetCredits-DLjX5S-_.js → GetCredits-BmFWdIGx.js} +2 -2
- package/_assets/{Grow-CBOQ3rs-.js → Grow-BiGjBqEo.js} +2 -2
- package/_assets/{HelpersUtil-ItKIMa0k.js → HelpersUtil-DQga4Ywl.js} +2 -2
- package/_assets/ItemDetail-BSwm3WSx.js +3779 -0
- package/_assets/{LoadMore-BxuVAL5h.js → LoadMore-i7_riiE5.js} +2 -2
- package/_assets/{ManaPricingBanner.styles-dfVXcaNP.js → ManaPricingBanner.styles-Dyx_YmBW.js} +2 -2
- package/_assets/{MyAssets-BbWDjYod.js → MyAssets-Bs1a3OD9.js} +2 -2
- package/_assets/{MyFavorites-DY192etV.js → MyFavorites-C03JcdtN.js} +2 -2
- package/_assets/{MyStore-qM8HV1zc.js → MyStore-ryCuwvDl.js} +2 -2
- package/_assets/{NetworkUtil-B4oEt17N.js → NetworkUtil-BbMBxyRo.js} +2 -2
- package/_assets/{NotFound-CgcYb0ih.js → NotFound-DOO8Ql2w.js} +2 -2
- package/_assets/{NotificationsBell-txLDBZgz.js → NotificationsBell-VR9lnc9P.js} +2 -2
- package/_assets/{OutfitDetail-EWQSU1q3.js → OutfitDetail-Co1A4WCO.js} +2 -2
- package/_assets/OutfitPreview-Ceha9IWa.js +7 -0
- package/_assets/{OutfitStudio-CymFpAjx.js → OutfitStudio-DGibRraW.js} +2 -2
- package/_assets/{SaleCountdown-3pApusNf.js → SaleCountdown-NdYuBnTu.js} +2 -2
- package/_assets/{Spinner-BhJFlkpV.js → Spinner-B5rI43ql.js} +2 -2
- package/_assets/{StoreSettings-CuaXmFqQ.js → StoreSettings-C2dwtV13.js} +2 -2
- package/_assets/{Success-oMsLbOWh.js → Success-B6gpri2D.js} +2 -2
- package/_assets/{SwapController-DrYUKQJ9.js → SwapController-Di8HGSG3.js} +2 -2
- package/_assets/{Tooltip-BIdqgK8V.js → Tooltip-Bj-rfWuS.js} +2 -2
- package/_assets/{TradeService-JsADFsSl.js → TradeService-D2dJeuos.js} +2 -2
- package/_assets/{W3MFrameProviderSingleton-DvSh92CX.js → W3MFrameProviderSingleton-DwbyBYX9.js} +4 -4
- package/_assets/{WebCryptoP256-DgMWbKGz.js → WebCryptoP256-CZzgSMZW.js} +2 -2
- package/_assets/{basic-GpwOtGyM.js → basic-C0ccxPdk.js} +2 -2
- package/_assets/{biconomy-NuhcX0Yi.js → biconomy-DGsEEV8A.js} +2 -2
- package/_assets/{browseLayout.styles-D0MZbKfc.js → browseLayout.styles-Dg021Y7v.js} +2 -2
- package/_assets/{browser-CztLWw1I.js → browser-D3mkrR6N.js} +2 -2
- package/_assets/{browser-D0dzO3fx.js → browser-DfAY1k2K.js} +2 -2
- package/_assets/{browser-ponyfill-BdWvH_If.js → browser-ponyfill-C5RB02M7.js} +2 -2
- package/_assets/{buy-ZzigQNxZ.js → buy-Da1E8jgj.js} +2 -2
- package/_assets/{buy-gasless-5QIoW0es.js → buy-gasless-CaUM9sxG.js} +2 -2
- package/_assets/cart-checkout-uu8usx3x.js +2 -0
- package/_assets/{categories-BCcLvB19.js → categories-DeCaTWZU.js} +2 -2
- package/_assets/{ccip-CcFd-pp_.js → ccip-CIKPg0_h.js} +2 -2
- package/_assets/{ccip-0C-WJ2f3.js → ccip-CIPTk6YK.js} +2 -2
- package/_assets/{chains-BoWQ7jDs.js → chains-CWGwszpJ.js} +2 -2
- package/_assets/collectionPage.styles-DOzyhn9M.js +41 -0
- package/_assets/{common-aEQBU1aZ.js → common-DamPx7zD.js} +2 -2
- package/_assets/{controller-BHSkmDDd.js → controller-J7h5zgkf.js} +3 -3
- package/_assets/{core-Dnx08t4s.js → core-BILweyMC.js} +5 -5
- package/_assets/{createSvgIcon-C3DiORbY.js → createSvgIcon-BOJMqAuj.js} +2 -2
- package/_assets/{crumbs.styles-D969n73j.js → crumbs.styles-6TXvIB5e.js} +2 -2
- package/_assets/{custom-CyjlH7Cr.js → custom-CtbaVsvz.js} +2 -2
- package/_assets/{data-capture-BUt-tqa3.js → data-capture-D_Yc-lFk.js} +2 -2
- package/_assets/{dcl-schemas-CyEZVc6x.js → dcl-schemas-Do6ePE9M.js} +2 -2
- package/_assets/{decimals-BLhtmmbN.js → decimals-CPcEXrkP.js} +2 -2
- package/_assets/{decimals-CiM-QvAk.js → decimals-fY1-YeOV.js} +2 -2
- package/_assets/{detectExtension-CdbTZOKn.js → detectExtension-BzGhSQVN.js} +2 -2
- package/_assets/{disposePreview-D5v9GkJF.js → disposePreview-BhRqNFqz.js} +2 -2
- package/_assets/{email-BGoeypvI.js → email-CDJff6Le.js} +2 -2
- package/_assets/{embedded-wallet-Cg2BVqx1.js → embedded-wallet-OlJuY5Lb.js} +2 -2
- package/_assets/{emotion-styled.browser.esm-Bc8640ZT.js → emotion-styled.browser.esm-dqXx08M6.js} +2 -2
- package/_assets/{engine-BQ4XBK5G.js → engine-Cqgf8_-e.js} +2 -2
- package/_assets/{errors-DUBMk1_u.js → errors-COVZQXFS.js} +2 -2
- package/_assets/{estimate-l1-fee-Cvh02XjO.js → estimate-l1-fee-cwAe5Vqz.js} +2 -2
- package/_assets/{eth_estimateGas-BH-_dHsN.js → eth_estimateGas-Bi2jA3d6.js} +2 -2
- package/_assets/{eth_getStorageAt-CHailSu6.js → eth_getStorageAt-Drv0-oaq.js} +2 -2
- package/_assets/{eth_getTransactionCount-Ce8ytlz4.js → eth_getTransactionCount-u8vibbIm.js} +2 -2
- package/_assets/{ethereum-AiomgAl3.js → ethereum-Mtg8xwT8.js} +2 -2
- package/_assets/{ethers-CQbljc2C.js → ethers-DVrorjJ1.js} +2 -2
- package/_assets/{events-Ey8xQ1_i.js → events-CcYNTdVN.js} +2 -2
- package/_assets/{execute-CcyXPSES.js → execute-CoAxXj0W.js} +3 -3
- package/_assets/{extractIPFS-CZpI5_La.js → extractIPFS-DlbP2Osb.js} +2 -2
- package/_assets/{features-CW3BJut9.js → features-DNE6dOZ4.js} +2 -2
- package/_assets/{fetchTokenMetadata-zQ7k58lq.js → fetchTokenMetadata-CiNffAhl.js} +3 -3
- package/_assets/{field.styles-CNumGj8X.js → field.styles-Dsz8I5YB.js} +2 -2
- package/_assets/{fortmatic-D7_cu5X7.js → fortmatic-B2QacKOL.js} +2 -2
- package/_assets/{get-bytecode-ChEcvuHJ.js → get-bytecode-DCxZ_TJS.js} +2 -2
- package/_assets/{get-ecosystem-wallet-info-BXFPDksD.js → get-ecosystem-wallet-info-Dpf1xtjk.js} +2 -2
- package/_assets/{getBalance-CdWdKWho.js → getBalance-DacQHsEf.js} +3 -3
- package/_assets/{getInstalledModules-Dy7ryxbR.js → getInstalledModules-_KOhu2kj.js} +2 -2
- package/_assets/{getNFT-DEIlQj0F.js → getNFT-DLLMJ-N8.js} +2 -2
- package/_assets/{getNFT-CVhWquj2.js → getNFT-TgQU4sPn.js} +3 -3
- package/_assets/{grid.styles-DGwAy7au.js → grid.styles-zbj0YrVx.js} +2 -2
- package/_assets/{hashTypedData-CS0nSVCm.js → hashTypedData-C4V4k80v.js} +2 -2
- package/_assets/{hashTypedData-G7W_A13L.js → hashTypedData-CxzAx589.js} +2 -2
- package/_assets/{import-C1FMKChQ.js → import-p1kr6qLz.js} +2 -2
- package/_assets/{in-app-C03QvI9E.js → in-app-niBzraeI.js} +2 -2
- package/_assets/{in-app-wallet-calls-BSt_kW07.js → in-app-wallet-calls-Dyorin4y.js} +2 -2
- package/_assets/{index-QkD5v2W0.js → index-B1-eV0Yy.js} +2 -2
- package/_assets/{index-CbJaCRxI.js → index-B1DNuJsS.js} +2 -2
- package/_assets/{index-B4vPl9JJ.js → index-B39be1Q8.js} +2 -2
- package/_assets/{index-P_yp2lGD.js → index-B6iPDUS8.js} +2 -2
- package/_assets/{index-CAdxESjh.js → index-BC9VPSaU.js} +2 -2
- package/_assets/{index-B9BLMD9v.js → index-BEbVm5wA.js} +2 -2
- package/_assets/{index-CRdAPM4e.js → index-BW2_mJUZ.js} +2 -2
- package/_assets/{index-DNpS4XJW.js → index-BaeSw32D.js} +3 -3
- package/_assets/{index-B_Ukoyjo.js → index-BdTU9iVQ.js} +4 -4
- package/_assets/{index-Bx-HA0Fa.js → index-BdhRH7ae.js} +2 -2
- package/_assets/{index-TuFs6Mw_.js → index-BgrkbkKX.js} +3 -3
- package/_assets/{index-C0q8Kut4.js → index-BhPBG2XL.js} +2 -2
- package/_assets/{index-C53nEuU1.css → index-BhSgZf6d.css} +1 -1
- package/_assets/{index-SRawa_W1.js → index-Bpbs2w1c.js} +2 -2
- package/_assets/{index-WhAOvWl7.js → index-BrTe5eTC.js} +2 -2
- package/_assets/{index-CITTAZNc.js → index-BzKWq7pb.js} +2 -2
- package/_assets/{index-CZ765edO.js → index-C-cdcYSu.js} +2 -2
- package/_assets/{index-DBpSYzZ1.js → index-C9RSadCu.js} +2 -2
- package/_assets/{index-CMsQl6_s.js → index-CD44EXbq.js} +2 -2
- package/_assets/{index-BGlAHo1V.js → index-CEVRFChv.js} +2 -2
- package/_assets/{index-sc9WaH7T.js → index-CEbyUU5H.js} +2 -2
- package/_assets/{index-Cq3PcGZS.js → index-CKb-Chs7.js} +2 -2
- package/_assets/{index-ovxDr1NO.js → index-CRlpbq5e.js} +2 -2
- package/_assets/{index-ZSCJO9rV.js → index-CWE_Bdvd.js} +2 -2
- package/_assets/{index-CzzqMKs2.js → index-CWJFyp1v.js} +2 -2
- package/_assets/{index-mp9sO-P_.js → index-CWc56QrX.js} +2 -2
- package/_assets/{index-DUvDgJtL.js → index-CZEd2SGy.js} +3 -3
- package/_assets/{index-DCOfqwFn.js → index-CZmSHbVE.js} +2 -2
- package/_assets/{index-DiRK7oEZ.js → index-CcTOkZrG.js} +2 -2
- package/_assets/{index-201_pXjD.js → index-Ccey0v_W.js} +2 -2
- package/_assets/{index-BWhGWxu6.js → index-CfGsvFRR.js} +2 -2
- package/_assets/{index-DvGoWYRw.js → index-ChhJ84F9.js} +2 -2
- package/_assets/{index-Bc5rdQrs.js → index-Cn-ULh1k.js} +2 -2
- package/_assets/{index-B0G5-1U4.js → index-CpfmSBK0.js} +2 -2
- package/_assets/{index-C_MZ3G2Z.js → index-Cq-Etsdf.js} +2 -2
- package/_assets/{index-BjTaCUde.js → index-Csp5LciJ.js} +2 -2
- package/_assets/{index-DW4iGfw5.js → index-CwA52DzI.js} +2 -2
- package/_assets/{index-DbnwTj_J.js → index-CwoMLrsB.js} +2 -2
- package/_assets/{index-CseNtOsJ.js → index-CxNh07aM.js} +3 -3
- package/_assets/{index-Cbvqh2tB.js → index-CxOzFLm7.js} +2 -2
- package/_assets/{index-jG0dKzqZ.js → index-D05bb_h6.js} +2 -2
- package/_assets/{index-d0JdYucS.js → index-D8M-5R_3.js} +2 -2
- package/_assets/{index-CeBVhm3u.js → index-D8olnnil.js} +2 -2
- package/_assets/{index-Bvf3c8I8.js → index-DDb_ETfE.js} +2 -2
- package/_assets/{index-D-bvLCMJ.js → index-DLcPHJzx.js} +2 -2
- package/_assets/{index-BHRJojA7.js → index-DUaZ1t6t.js} +2 -2
- package/_assets/{index-DHAeKuI8.js → index-DXmPq_Kc.js} +2 -2
- package/_assets/{index-gx6q3jYb.js → index-D_SCQhiC.js} +2 -2
- package/_assets/{index-DzXb9yfS.js → index-Ddqdlsoi.js} +2 -2
- package/_assets/{index-DYEzTJ00.js → index-DeaVX3Ga.js} +2 -2
- package/_assets/{index-Dr8MILBs.js → index-DjQWTjO5.js} +2 -2
- package/_assets/{index-BDhEGVn5.js → index-DpJ4zJ7r.js} +2 -2
- package/_assets/{index-CSAbgA1H.js → index-Dpu-M2gs.js} +2 -2
- package/_assets/{index-BYpz1U-Z.js → index-DrGWXFkr.js} +2 -2
- package/_assets/{index-C8RRvl4w.js → index-Dyy6WQp0.js} +2 -2
- package/_assets/{index-Csid9_UU.js → index-DzWgqsYH.js} +2 -2
- package/_assets/{index-VVP1Lz5F.js → index-I_W87dfE.js} +2 -2
- package/_assets/{index-D7n0Nbcc.js → index-MqPRfHS_.js} +4 -4
- package/_assets/{index-DtQZWv2W.js → index-PmcUrVFZ.js} +2 -2
- package/_assets/{index-D080sfYK.js → index-U6lik-J8.js} +2 -2
- package/_assets/{index-4lxXm67R.js → index-WiX7N7NB.js} +2 -2
- package/_assets/{index-CtUq3VAh.js → index-_AZXosO6.js} +2 -2
- package/_assets/{index-CVjhybQY.js → index-gg05iP5j.js} +4 -4
- package/_assets/{index-rWvX-JNU.js → index-iRDDuzQN.js} +2 -2
- package/_assets/{index-Cy_pguIe.js → index-pibLOLKX.js} +2 -2
- package/_assets/{index-DmEpmcAI.js → index-rsyTCpy-.js} +2 -2
- package/_assets/{index-4y3ole-I.js → index-sTnDYGsF.js} +2 -2
- package/_assets/{index-BiR1vPRL.js → index-y9tZLe7Z.js} +13 -13
- package/_assets/{index.es-DmJ25C-K.js → index.es-BZZFX7UO.js} +2 -2
- package/_assets/{index.es-DF1aG5Z7.js → index.es-CPftFMVM.js} +2 -2
- package/_assets/{index.es-B3Zhssg2.js → index.es-CWkiohwA.js} +2 -2
- package/_assets/{index.es-CuJy51Rq.js → index.es-p9GOzpcM.js} +5 -5
- package/_assets/{items-empty-BAKFq7PT.js → items-empty-D3SdcrUb.js} +2 -2
- package/_assets/{jump-BolxKTOM.js → jump-BLEV_WoY.js} +2 -2
- package/_assets/{linkAccount-D4jgrDpa.js → linkAccount-DAFP48le.js} +2 -2
- package/_assets/{localBatchGatewayRequest-BMvn0i_b.js → localBatchGatewayRequest-dB8Wq4kD.js} +2 -2
- package/_assets/{modal.styles-wZfJxa-e.js → modal.styles-C5SxmNLg.js} +2 -2
- package/_assets/{native-BS9-NZgY.js → native-CBQhq49N.js} +2 -2
- package/_assets/{networks-BuXAUv57.js → networks-8H1PRpMW.js} +2 -2
- package/_assets/{onramp-B2gdYmCO.js → onramp-J5H4ebWV.js} +2 -2
- package/_assets/{openzeppelin-B_FytaNI.js → openzeppelin-D4p4dWkw.js} +2 -2
- package/_assets/{ownerOf-D6JpENJA.js → ownerOf-6NPphff8.js} +2 -2
- package/_assets/{parseNft-DiM6gxbM.js → parseNft-CNeONFsP.js} +3 -3
- package/_assets/{parseSignature-VwEmUV8h.js → parseSignature-CRChMV-U.js} +2 -2
- package/_assets/{parseSignature-BJVq2ShY.js → parseSignature-RdZmR6vg.js} +4 -4
- package/_assets/{passkeys-DEiWC5Z7.js → passkeys-asZ3JuTk.js} +2 -2
- package/_assets/{pay-with-exchange-C7Nm7Ic2.js → pay-with-exchange-Cv_5xsJB.js} +2 -2
- package/_assets/{prepare-contract-call-r6GCr7Mb.js → prepare-contract-call-Bgba2npe.js} +2 -2
- package/_assets/{qr-overlay-mbqSXRsy.js → qr-overlay-DkizM6BP.js} +4 -4
- package/_assets/{react-DKpLHQl0.js → react-ZT2P9-hV.js} +2 -2
- package/_assets/{receive-KMWzb1kT.js → receive-CawQ-n3T.js} +2 -2
- package/_assets/{resolveImplementation-NjDCaPa0.js → resolveImplementation-BVnQ0KdI.js} +2 -2
- package/_assets/{resume-buy-DRxVLtZn.js → resume-buy-VqFhR9e8.js} +2 -2
- package/_assets/{resume-name-m2sdJCvP.js → resume-name-CTz059A2.js} +2 -2
- package/_assets/{rpc-C6ONv-35.js → rpc-BJ7rd6au.js} +2 -2
- package/_assets/{sales-empty-BJGisiNF.js → sales-empty-l9JLZ5D0.js} +2 -2
- package/_assets/{search-empty-DcGDTM8L.js → search-empty-CkXuQVln.js} +2 -2
- package/_assets/{secp256k1-ZRJNrIuk.js → secp256k1-BGQ_Uqpo.js} +2 -2
- package/_assets/{secp256k1-BhLjMGke.js → secp256k1-BaU6Nn5x.js} +2 -2
- package/_assets/{secp256k1-Dogd-wfD.js → secp256k1-Bu5sn1ZV.js} +2 -2
- package/_assets/{send-B4t6gmpc.js → send-DONjIfwF.js} +2 -2
- package/_assets/{send-batch-transaction-BULbschT.js → send-batch-transaction-C_JYVBkw.js} +2 -2
- package/_assets/{send-eip712-transaction-B5q6HGy1.js → send-eip712-transaction-Clelg5Q-.js} +3 -3
- package/_assets/{send-gasless-transaction-BW_1tZ59.js → send-gasless-transaction-DNc4O0S0.js} +3 -3
- package/_assets/{send-transaction-D5g8ka92.js → send-transaction-pFbo31gg.js} +3 -3
- package/_assets/{sendMetaTransaction-BiqdXKVl.js → sendMetaTransaction-BcKatlZr.js} +2 -2
- package/_assets/{sendRawTransaction-DHZVBFUc.js → sendRawTransaction-BM57FQWh.js} +4 -4
- package/_assets/{sentry-WFsNKO98.js → sentry-qVQnooqM.js} +3 -3
- package/_assets/{serializeTransaction-C1OICSTJ.js → serializeTransaction-FdLqYQ-w.js} +2 -2
- package/_assets/{session-proposal-C_rldw8k.js → session-proposal-CAm5TVJB.js} +2 -2
- package/_assets/{session-request-DRsdGyCL.js → session-request-C8xtyN3L.js} +3 -3
- package/_assets/{sha256-YJL3wOOs.js → sha256-CcM85_-b.js} +2 -2
- package/_assets/{sha3-DxT-REZ2.js → sha3-FAYNGyBi.js} +2 -2
- package/_assets/signin-empty-UN_rVDWL.js +2 -0
- package/_assets/{signing-B9DcFwzm.js → signing-FPVJ2eSa.js} +4 -4
- package/_assets/{skeleton.styles-C4BBCe2d.js → skeleton.styles-DTLcQB9A.js} +2 -2
- package/_assets/{socials-Zki4qksa.js → socials-BHL-s99I.js} +2 -2
- package/_assets/{styled-uWbR3175.js → styled-BOKv7XKm.js} +2 -2
- package/_assets/{swaps-DiPvT9W6.js → swaps-DDuyuFV1.js} +2 -2
- package/_assets/{thirdweb-wDwbIJ1W.js → thirdweb-N4oYmhTQ.js} +4 -4
- package/_assets/{to-serializable-transaction-6f6pRX-q.js → to-serializable-transaction-DZXV0RS9.js} +3 -3
- package/_assets/{totalSupply-rJ9WcMzs.js → totalSupply-DnoXRYZk.js} +2 -2
- package/_assets/{trade-encoding-DcX77zVS.js → trade-encoding-JnGsRcov.js} +2 -2
- package/_assets/{transaction-DxXkarJJ.js → transaction-D82LqpKn.js} +2 -2
- package/_assets/{transactionReceipt-CxzioWsu.js → transactionReceipt-DEqK-l-5.js} +2 -2
- package/_assets/{transactions-BGQTb4VV.js → transactions-1TYNoevC.js} +2 -2
- package/_assets/{useCreatorSales-D4BzYp33.js → useCreatorSales-oruupPPN.js} +2 -2
- package/_assets/{useInfiniteGrid-BUDyyZZl.js → useInfiniteGrid-56c_34kP.js} +2 -2
- package/_assets/{useStore-tid_idJp.js → useStore-CGFjD1j7.js} +3 -3
- package/_assets/{useTheme-CRxh5DOu.js → useTheme-J18Pg7gw.js} +2 -2
- package/_assets/{utils-Cj21wfvp.js → utils-BE7z1_FY.js} +2 -2
- package/_assets/{verifyHash-mzlxS6TY.js → verifyHash-Buuby46g.js} +2 -2
- package/_assets/{w3m-modal-BArYWi0C.js → w3m-modal-BU-cBw0Z.js} +2 -2
- package/_assets/{w3m-modal-BXpuWB5y.js → w3m-modal-DhWirtG8.js} +2 -2
- package/_assets/{wait-for-tx-receipt-DRwGvrwD.js → wait-for-tx-receipt-CG08f_bj.js} +2 -2
- package/_assets/{wallets-HjCMtUn8.js → wallets-CMB2i32E.js} +6 -6
- package/_assets/{web-connector-15d-OnTN.js → web-connector-BPh_N46m.js} +4 -4
- package/_assets/{writeContract-BJQQGUKO.js → writeContract-BcpztdZJ.js} +2 -2
- package/_assets/{zora-sepolia-BFYuSeeX.js → zora-sepolia-arxykf8i.js} +2 -2
- package/_assets/{zoraTestnet-DdfVMUdb.js → zoraTestnet-DL2ClkoW.js} +2 -2
- package/index.html +11 -11
- package/package.json +2 -2
- package/_assets/Assets-tHTTA31T.js +0 -980
- package/_assets/Cart-BTFM7sgI.js +0 -748
- package/_assets/Event-B3nuIkGW.js +0 -72
- package/_assets/ItemDetail-Bfbuu0cW.js +0 -3779
- package/_assets/OutfitPreview-Cj1w-8ou.js +0 -7
- package/_assets/cart-checkout-D_rUzOn4.js +0 -2
- package/_assets/collectionPage.styles-rZa1BWWK.js +0 -41
- package/_assets/signin-empty-DXl1Qpby.js +0 -2
|
@@ -0,0 +1,980 @@
|
|
|
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
|