@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
|
@@ -1,980 +0,0 @@
|
|
|
1
|
-
import{r as u,b as Be,j as e,a as ut,u as ft}from"./react-DKpLHQl0.js";import{c as ee,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 it,bk as $t,aK as kt,F as se,t as n,D as St,I as _,z as K,cY as Te,E as de,bj as Et,bi as Tt,l as Rt,O as $e,bu as Ke,bD as _t,bC as It,B as ot,W as rt,m as at,bS as Nt,y as Lt,at as Mt,Y as At,$ as Ve,a0 as he,aI as zt,bO as Wt}from"./index-BiR1vPRL.js";import{u as Ft,s as Pt}from"./search-empty-DcGDTM8L.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-BsZs-9_M.js";import{L as Kt}from"./LoadMore-BxuVAL5h.js";import{u as Vt}from"./useInfiniteGrid-BUDyyZZl.js";import{S as Zt}from"./categories-BCcLvB19.js";import{E as Qt}from"./ErrorNotice-Dlh8ddHO.js";import{d as Yt}from"./dcl-schemas-CyEZVc6x.js";import{s as Xt,G as Jt,w as en,S as tn}from"./buy-gasless-5QIoW0es.js";import{s as nn}from"./buy-ZzigQNxZ.js";import{C as sn}from"./trade-encoding-DcX77zVS.js";import{f as on}from"./errors-DUBMk1_u.js";import{J as rn,C as an,B as We}from"./ethers-CQbljc2C.js";import{v as ln,w as cn,W as dn,m as hn,n as pn,o as un,x as fn,y as mn,z as xn,D as gn,E as bn,F as yn,G as wn,I as jn,j as Ze}from"./modal.styles-G1Y436F0.js";import{u as vn,M as Cn,R as $n,c as kn}from"./cart-checkout-D_rUzOn4.js";import{R as Qe}from"./resume-name-m2sdJCvP.js";import{R as Sn}from"./resume-buy-DRxVLtZn.js";import{n as En}from"./name-glyph-aUugT8vq.js";import{c as Tn}from"./crumbs.styles-D969n73j.js";import{n as Rn}from"./Tooltip-BIdqgK8V.js";import{G as _n}from"./grid.styles-DGwAy7au.js";import{R as In,S as Nn,a as Ln,D as Mn,b as An,C as zn,c as Wn,d as Fn,e as Pn,M as Bn}from"./browseLayout.styles-D0MZbKfc.js";import"./sentry-WFsNKO98.js";import"./intl-AKLEHPeO.js";import"./skeleton.styles-C4BBCe2d.js";import"./sendMetaTransaction-BiqdXKVl.js";(function(){try{var s=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},o=new s.Error().stack;o&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[o]="1c98aee8-3d4c-45bf-8f7b-7e46ef4d780c",s._sentryDebugIdIdentifier="sentry-dbid-1c98aee8-3d4c-45bf-8f7b-7e46ef4d780c")}catch{}})();function pe(s){const o=s.source??"item",a=s.tradeId||`${s.contractAddress}-${s.tokenId??s.itemId??""}`;return`${o}:${a}`}const ie="100000000000000000000",lt=2,ke=15,Un=/^[a-zA-Z0-9]+$/;function Ye(s){const o=s.trim();return o.length===0?{ok:!1,reason:"empty"}:Un.test(o)?o.length<lt?{ok:!1,reason:"too-short"}:o.length>ke?{ok:!1,reason:"too-long"}:{ok:!0}:{ok:!1,reason:"invalid-chars"}}function On(s){return s.replace(/[^a-zA-Z0-9]/g,"").slice(0,ke)}const Hn=["function available(string _subdomain) view returns (bool)"],Xe={mainnet:{rpc:"https://rpc.decentraland.org/mainnet",address:"0x2a187453064356c898cae034eaed119e1663acb8"},sepolia:{rpc:"https://rpc.decentraland.org/sepolia",address:"0x7518456ae93eb98f3e64571b689c626616bb7f30"}};function Dn(){return ee.chainId===Number(Yt.ChainId.MATIC_MAINNET)?Xe.mainnet:Xe.sepolia}async function Gn(s,o={}){var x;const{rpc:a,address:d}=Dn(),m=new rn(a),j=new an(d,Hn,m);console.info(`[names] availability check → DCLRegistrar(${d}).available("${s}") on ${a}`);const h=await j.available(s);if((x=o.signal)!=null&&x.aborted)throw new DOMException("Aborted","AbortError");return console.info(`[names] "${s}" available=${h}`),h?"available":"taken"}const qn="https://app.across.to/api";class Ue extends Error{constructor(){super("Name registration is temporarily unavailable due to high network costs"),this.name="NameRouteCostTooHighError"}}class Fe 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 Kn(s){return yt(ie,s)}async function Vn(s,o,a={}){var x;const d=a.chainId??ee.chainId,m=a.provider??"across",j=`${ee.creditsServerUrl}/credits-name-route?name=${encodeURIComponent(o)}&chainId=${d}&provider=${m}`,h=await wt(j,{method:"GET",identity:s,metadata:{}});if(!h.ok){let c;try{c=(x=await h.json())==null?void 0:x.code}catch{}throw c==="ROUTE_COST_TOO_HIGH"?new Ue:new Error(`fetchNameCreditRoute ${h.status}`)}return h.json()}function Zn(s,o){const a=We.from(s.availableAmount),m=We.from(ie).sub(a);return{credits:[{value:s.amount,expiresAt:Number(s.expiresAt),salt:sn(s.id)}],creditsSignatures:[s.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:m.isNegative()?"0":m.toString(),maxCreditedValue:ie}}async function Qn(s,o={}){const a=qn,d=o.intervalMs??1e4,m=o.maxAttempts??60;let j={status:"pending",destinationTxHash:null,actionsSucceeded:null};for(let h=0;h<m;h++){try{const x=await fetch(`${a}/deposit/status?originChainId=137&depositTxHash=${s}`);if(x.ok){const c=await x.json(),y=(c.status??"pending").toLowerCase(),g=c.fillTx??c.fillTxnRef??null,$=typeof c.actionsSucceeded=="boolean"?c.actionsSucceeded:null;if(y==="filled")return{status:"filled",destinationTxHash:g,actionsSucceeded:$};if(y==="refunded"||y==="expired")return{status:y,destinationTxHash:null,actionsSucceeded:!1};j={status:"pending",destinationTxHash:g,actionsSucceeded:$}}}catch{}h<m-1&&await new Promise(x=>setTimeout(x,d))}return j}async function Yn(s){const{name:o,identity:a,signer:d}=s,m=g=>{var $;try{($=s.onProgress)==null||$.call(s,g)}catch{}},j=s.chainId??ee.chainId,h=s.provider??"across",x=(s.beneficiary??await d.getAddress()).toLowerCase();let c=null,y="unconfirmed";console.info("[names] register start",{name:o,buyer:x,chainId:j,provider:h}),m("preparing");try{const g=await mt(xt(ee.chainId).address),$=Kn(g);console.info("[names] step 1/6 sized reservation",{usdCents:$,manaRate:g});const p=await Vn(a,o,{chainId:j,provider:h});console.info("[names] step 2/6 route fetched",{target:p.externalCall.target,selector:p.externalCall.selector,provider:p.provider,quoteId:p.quoteId});const w=await gt(a,$,void 0,void 0,o);if(c=w.credit.id,console.info("[names] step 3/6 credit authorized",{creditId:w.credit.id,maxCreditedValue:w.maxCreditedValue}),We.from(w.maxCreditedValue).lt(ie))throw new Error("Credit under-sized for the name price");m("awaiting-confirmation");const b=Zn(w.credit,p);let f;try{f=await Xt({chainId:j,buyer:x,signer:d,args:b})}catch(v){if(!(v instanceof Jt))throw v;if(v.reason==="relayer-unreachable"){y="unobservable";const E=new Pe;throw E.cause=v,E}f=await nn(j,b,d)}if(console.info("[names] step 4/6 useCredits submitted (Polygon origin tx)",{originTxHash:f}),m("confirming"),await en(f),y="confirmed",console.info("[names] step 5/6 origin tx confirmed",{originTxHash:f}),h==="across"){m("registering");const v=await Qn(f,s.acrossPoll);if(console.info("[names] step 6/6 across status",v),v.status==="pending")return{status:"pending",originTxHash:f};if(v.status==="filled"&&v.actionsSucceeded===null)return console.warn("[names] across filled without reporting actionsSucceeded — reporting pending",{originTxHash:f}),{status:"pending",originTxHash:f};if(v.status!=="filled"||v.actionsSucceeded!==!0)throw new Fe;return{status:"registered",originTxHash:f,destinationTxHash:v.destinationTxHash}}return{status:"pending",originTxHash:f}}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(c&&y==="unconfirmed"&&await bt(a,[c]).catch(()=>{}),g instanceof Ue||g instanceof Fe||g instanceof Pe)throw g;const $=new Error(on(g,"Couldn't register the name. Please try again.",{sale:!0}));throw $.cause=g,$}}function Xn(){const{data:s}=jt({queryKey:["feature-flag","shop-names"],queryFn:()=>vt(Ct.SHOP_NAMES),staleTime:6e4,refetchOnWindowFocus:!0,retry:1});return s===!0}const Jn=60,es=700,ts=25;function ns(s){if(!s)return[];const o=[];for(let a=1;a<=s.length;a++)o.push({text:s.slice(0,a),delay:Jn});o[o.length-1]={text:s,delay:es};for(let a=s.length-1;a>=1;a--)o.push({text:s.slice(0,a),delay:ts});return o}function ss(s){return s.flatMap(ns)}function is(s,o){const a=u.useMemo(()=>ss(s),[s]),[d,m]=u.useState(0);return u.useEffect(()=>{if(!o||a.length===0)return;const j=setTimeout(()=>m(h=>(h+1)%a.length),a[d%a.length].delay);return()=>clearTimeout(j)},[d,o,a]),!o||a.length===0?"":a[d%a.length].text}const os="https://cdn.decentraland.org/@dcl/shop/1.13.1-35339357506.commit-a201fb1/_assets/name-verified-oGwQ3ntb.svg",rs="#34fee6",as=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
|
-
`,ls=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
|
-
`,Re=i.div`
|
|
24
|
-
display: flex;
|
|
25
|
-
align-items: flex-start;
|
|
26
|
-
justify-content: space-between;
|
|
27
|
-
gap: 12px;
|
|
28
|
-
`,_e=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
|
-
`,Ie=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
|
-
`,Ne=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
|
-
`,Le=i.hr`
|
|
73
|
-
border: 0;
|
|
74
|
-
border-top: 1px solid ${t.colors.line};
|
|
75
|
-
margin: 16px 0;
|
|
76
|
-
`,ue=i.div`
|
|
77
|
-
display: flex;
|
|
78
|
-
align-items: center;
|
|
79
|
-
gap: 16px;
|
|
80
|
-
`,cs=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
|
-
`,ds=i.img`
|
|
94
|
-
display: block;
|
|
95
|
-
width: 47px;
|
|
96
|
-
height: 47px;
|
|
97
|
-
`,hs=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: ${rs};
|
|
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
|
-
`,ps=i.img`
|
|
119
|
-
flex: none;
|
|
120
|
-
display: block;
|
|
121
|
-
width: 14px;
|
|
122
|
-
height: 14px;
|
|
123
|
-
`,Me=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
|
-
`,fe=i.div`
|
|
138
|
-
flex: 1;
|
|
139
|
-
min-width: 0;
|
|
140
|
-
`,me=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
|
-
`,xe=i.div`
|
|
155
|
-
font-family: ${t.font.sans};
|
|
156
|
-
font-size: 14px;
|
|
157
|
-
color: ${t.colors.muted2};
|
|
158
|
-
`,ge=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
|
-
`,us=i.div`
|
|
174
|
-
margin-top: 16px;
|
|
175
|
-
padding: 16px;
|
|
176
|
-
border-radius: 12px;
|
|
177
|
-
background: ${t.colors.promptLilac};
|
|
178
|
-
`,fs=i.div`
|
|
179
|
-
font-family: ${t.font.sans};
|
|
180
|
-
font-weight: 700;
|
|
181
|
-
font-size: 16px;
|
|
182
|
-
color: ${t.colors.text};
|
|
183
|
-
`,ms=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
|
-
`,xs=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
|
-
`,gs=i.span`
|
|
215
|
-
flex: none;
|
|
216
|
-
font-family: ${t.font.sans};
|
|
217
|
-
font-size: 18px;
|
|
218
|
-
color: ${t.colors.muted2};
|
|
219
|
-
`,bs=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
|
-
`,ys=i.span`
|
|
235
|
-
flex: none;
|
|
236
|
-
font-family: ${t.font.sans};
|
|
237
|
-
font-size: 16px;
|
|
238
|
-
color: ${t.colors.muted2};
|
|
239
|
-
`,Ae=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
|
-
`,ws=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
|
-
`,js=i.img`
|
|
278
|
-
width: 61px;
|
|
279
|
-
height: 61px;
|
|
280
|
-
`,vs=i.div`
|
|
281
|
-
display: flex;
|
|
282
|
-
flex-direction: column;
|
|
283
|
-
align-items: center;
|
|
284
|
-
gap: 8px;
|
|
285
|
-
width: 100%;
|
|
286
|
-
`,Cs=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
|
-
`,$s=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
|
-
`,ks=i.div`
|
|
301
|
-
display: flex;
|
|
302
|
-
align-items: center;
|
|
303
|
-
justify-content: center;
|
|
304
|
-
gap: 8px;
|
|
305
|
-
width: 100%;
|
|
306
|
-
`,Ss=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
|
-
`,Es=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
|
-
`,Ts=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
|
-
`,Rs=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
|
-
`,Je=i.div`
|
|
377
|
-
display: flex;
|
|
378
|
-
gap: 16px;
|
|
379
|
-
margin-top: 20px;
|
|
380
|
-
|
|
381
|
-
${t.media.maxWidth("mobile")} {
|
|
382
|
-
flex-direction: column;
|
|
383
|
-
}
|
|
384
|
-
`,et=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
|
-
`,Is=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
|
-
`,ze=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
|
-
`,Ls=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
|
-
`,Ms=i(cn)`
|
|
475
|
-
position: relative;
|
|
476
|
-
`,As=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
|
-
`,zs=i.div`
|
|
500
|
-
display: flex;
|
|
501
|
-
gap: 12px;
|
|
502
|
-
`;function Ws({name:s,priceCredits:o,onClose:a}){const{session:d}=it(),{data:m,isError:j}=$t(d),h=kt(),x=Be(),[c,y]=u.useState("confirm"),[g,$]=u.useState(""),[p,w]=u.useState(""),[b,f]=u.useState(!1),[v,E]=u.useState(null),[I,W]=u.useState(!1),[H,te]=u.useState("preparing"),k=u.useRef(!1),R=g.trim().toLowerCase()===s.toLowerCase(),N=c==="completing"||b,F=o!=null?se(o):"—",Q=o==null,P=m==null?void 0:m.credits,L=o!=null&&P!=null?o-P:0,B=L>0,Y=Q?n("names.priceUnavailable"):null,G=vn().packs.slice(0,Cn),M=G.filter(l=>l.credits>=L),U=M.length>0?M:G,q=U.length===0?null:M.length>0?U.reduce((l,O)=>O.credits<l.credits?O:l):U.reduce((l,O)=>O.credits>l.credits?O:l),C=U.find(l=>l.id===p)??q,D=M.length>0;u.useEffect(()=>{const l=O=>{O.key==="Escape"&&!N&&a()};return document.addEventListener("keydown",l),()=>document.removeEventListener("keydown",l)},[N,a]);async function S(){if(!(!d||!R||Q||B||k.current)){k.current=!0,y("completing"),E(null),te("preparing");try{const l=await Yn({name:s,identity:d.identity,signer:d.signer,onProgress:te});$e("Shop Completed Purchase",{items:[{item_id:null,contract_address:null,token_id:null,price_usd:Ke(o??0),category:"name",is_smart:!1}],purchase_type:"name",is_primary:!0,payment_type:"credits",value_credits:o??null,value_usd:Ke(o??0),transaction_hash:l.originTxHash??null,settlement:l.status}),h.invalidateQueries({queryKey:["usd-balance"]}),h.invalidateQueries({queryKey:["my-assets"]}),y(l.status==="registered"?"success":"pending")}catch(l){$e(It(l)?"Shop Purchase Cancelled":"Shop Purchase Failed",{step:"submit",error_code:_t(l),purchase_type:"name"});const O=l instanceof Fe,ae=l instanceof Pe;E(l instanceof Ue?n("names.errorRouteCost"):O?n("names.errorNotRegistered"):ae?n("names.errorSettlementUnknown"):(l==null?void 0:l.message)||n("names.errorGeneric")),W(O||ae),y("error")}finally{k.current=!1}}}async function T(){if(!(!d||!C||b)){f(!0);try{sessionStorage.removeItem($n),sessionStorage.removeItem(Sn),sessionStorage.setItem(Qe,s)}catch{}try{const l=await kn(C.id,{address:d.address,identity:d.identity});if(l.url){window.location.href=l.url;return}if(!l.orderId)throw new Error("Checkout returned neither a redirect url nor an order id");x(`/credits?order=${encodeURIComponent(l.orderId)}`)}catch(l){Rt(l,{flow:"name_buy_credits"});try{sessionStorage.removeItem(Qe)}catch{}E(n("buyModal.error.creditsCheckout")),W(!1),y("error"),f(!1)}}}const A=c!=="success"&&c!=="pending",z=St(d==null?void 0:d.providerType),oe=z?2:1,ne=z&&(H==="preparing"||H==="awaiting-confirmation"),Se=ne?1:oe,Ee=ne?n("names.confirming"):n("names.completing"),V=H==="registering"?n("names.processingRegistering"):null,X=c==="confirm"&&B,re=c==="error"?n("names.errorTitle"):X?n("names.buyCreditsTitle"):n("names.buyTitle");return e.jsx(as,{onClick:N?void 0:a,role:"presentation",children:e.jsxs(ls,{role:"dialog","aria-modal":"true","aria-label":re,onClick:l=>l.stopPropagation(),children:[A&&e.jsxs(e.Fragment,{children:[e.jsxs(Re,{children:[e.jsx(_e,{children:re}),e.jsx(Ie,{onClick:a,disabled:N,"aria-label":n("buyModal.close"),children:e.jsx(_,{name:"close"})})]}),e.jsxs(Ne,{children:[n("names.myCreditsBalance")," ",e.jsx(K,{})," ",Te(m,j)]}),e.jsx(Le,{})]}),X&&e.jsxs(Ns,{children:[e.jsxs(dn,{children:[e.jsx(hn,{}),e.jsxs(pn,{children:[e.jsx("b",{children:n("buyModal.insufficientFunds")})," ",n("buyModal.warningNeedToBuy")," ",e.jsx("b",{children:n("buyModal.warningCreditsAmount",{count:L})})," ",n("names.warningToPurchase"),de()?null:e.jsxs(e.Fragment,{children:[" ",e.jsx(un,{href:Et("/credits"),target:"_blank",rel:"noopener noreferrer",children:n("buyModal.warningLearnMore")})]})]})]}),de()?e.jsxs(ue,{"data-testid":"name-row-iap",children:[e.jsx(Me,{"aria-hidden":!0,children:"@"}),e.jsxs(fe,{children:[e.jsxs(me,{children:[s,e.jsx("span",{children:".dcl.eth"})]}),e.jsx(xe,{children:n("names.subtitle")})]}),e.jsxs(ge,{children:[e.jsx(K,{}),F]})]}):null,de()?null:e.jsxs(e.Fragment,{children:[e.jsx(Ls,{"data-testid":"credit-packs",children:U.map(l=>e.jsxs(Ms,{type:"button","data-testid":"credit-pack","data-on":l.id===(C==null?void 0:C.id)||void 0,"aria-pressed":l.id===(C==null?void 0:C.id),"aria-label":n("getCredits.packAria",{amount:se(l.credits),usd:l.usd}),onClick:()=>w(l.id),children:[D&&l.id===(q==null?void 0:q.id)?e.jsxs(As,{"data-testid":"pack-recommended","aria-hidden":!0,children:[e.jsx(_,{name:"star-rounded"}),n("getCredits.packBadge")]}):null,e.jsx(fn,{src:mn,alt:""}),e.jsx(xn,{children:se(l.credits)}),e.jsxs(gn,{children:["($",l.usd.toFixed(2),")"]})]},l.id))}),e.jsxs(bn,{children:[e.jsxs(yn,{children:[e.jsx(wn,{}),e.jsx("span",{"data-testid":"topup-total-credits",children:se((C==null?void 0:C.credits)??0)})]}),e.jsxs(jn,{children:["$",((C==null?void 0:C.usd)??0).toFixed(2)]})]})]}),e.jsxs(zs,{children:[e.jsx(Ze,{"data-variant":"outline",onClick:a,disabled:N,"data-testid":"name-topup-cancel",children:n("buyModal.cancel")}),de()?null:e.jsx(Ze,{"data-variant":"gradient","data-testid":"name-buy-credits",disabled:!d||!C||b,onClick:()=>void T(),children:n("buyModal.buy")})]})]}),(c==="confirm"||c==="error")&&!X&&e.jsxs(e.Fragment,{children:[e.jsxs(ue,{children:[e.jsx(Me,{"aria-hidden":!0,children:"@"}),e.jsxs(fe,{children:[e.jsxs(me,{children:[s,e.jsx("span",{children:".dcl.eth"})]}),e.jsx(xe,{children:n("names.subtitle")})]}),e.jsxs(ge,{children:[e.jsx(K,{}),F]})]}),c==="error"?e.jsxs(e.Fragment,{children:[e.jsxs(ze,{children:[e.jsx(_,{name:"info","aria-hidden":!0}),e.jsx("span",{children:v})]}),I?e.jsx(Ae,{onClick:a,children:n("names.errorSpentDismiss")}):e.jsx(Ae,{onClick:()=>y("confirm"),children:n("names.tryAgain")})]}):e.jsxs(e.Fragment,{children:[e.jsxs(us,{children:[e.jsx(fs,{children:n("names.confirmTitle")}),e.jsx(ms,{dangerouslySetInnerHTML:{__html:n("names.confirmBody",{name:`<b>@${Fs(s)}</b>`})}}),e.jsxs(xs,{children:[e.jsx(gs,{"aria-hidden":!0,children:"@"}),e.jsx(bs,{value:g,onChange:l=>$(l.target.value.replace(/[^a-zA-Z0-9]/g,"")),placeholder:"yourname","aria-label":n("names.reenterAria"),autoComplete:"off",spellCheck:!1,style:{width:`${Math.max(g.length,8)}ch`}}),e.jsx(ys,{children:".dcl.eth"})]})]}),Y?e.jsxs(ze,{"data-tone":"info","data-testid":"name-blocked-reason",children:[e.jsx(_,{name:"info","aria-hidden":!0}),e.jsx("span",{children:Y})]}):null,e.jsx(Ae,{onClick:()=>void S(),disabled:!R||!d||Q||B,children:n("names.buyCta")})]})]}),c==="completing"&&e.jsxs(ws,{children:[e.jsx(js,{src:Tt,alt:"",width:61,height:61}),e.jsxs(vs,{children:[e.jsx(Cs,{children:Ee}),e.jsxs(ks,{children:[e.jsx(Ss,{"aria-hidden":!0,children:e.jsx("span",{})}),e.jsx(Es,{"data-testid":"name-progress-count",children:`${Se}/${oe}`})]}),V?e.jsx($s,{children:V}):null]})]}),c==="pending"&&e.jsxs(e.Fragment,{children:[e.jsxs(Re,{children:[e.jsx(_e,{children:n("names.pendingHeaderTitle")}),e.jsx(Ie,{onClick:a,"aria-label":n("buyModal.close"),children:e.jsx(_,{name:"close"})})]}),e.jsxs(Ne,{children:[n("names.myCreditsBalance")," ",e.jsx(K,{})," ",Te(m,j)]}),e.jsx(Le,{}),e.jsxs(ze,{"data-tone":"info",children:[e.jsx(_,{name:"info","aria-hidden":!0}),e.jsxs("span",{children:[e.jsx("b",{children:n("names.pendingBannerBold")})," ",n("names.pendingBannerRest")]})]}),e.jsxs(ue,{style:{marginTop:20},children:[e.jsx(Me,{"aria-hidden":!0,children:"@"}),e.jsxs(fe,{children:[e.jsxs(me,{children:[s,e.jsx("span",{children:".dcl.eth"})]}),e.jsx(xe,{children:n("names.subtitle")})]}),e.jsxs(ge,{children:[e.jsx(K,{}),F]})]}),e.jsx(Je,{children:e.jsx(et,{onClick:()=>{a(),x("/my-items")},children:n("names.myItems")})})]}),c==="success"&&e.jsxs(e.Fragment,{children:[e.jsxs(Re,{children:[e.jsx(_e,{children:n("names.successHeaderTitle")}),e.jsx(Ie,{onClick:a,"aria-label":n("buyModal.close"),children:e.jsx(_,{name:"close"})})]}),e.jsxs(Ne,{children:[n("names.myCreditsBalance")," ",e.jsx(K,{})," ",Te(m,j)]}),e.jsx(Le,{}),e.jsxs(Ts,{children:[e.jsx(Rs,{"aria-hidden":!0,children:e.jsx(_,{name:"check"})}),e.jsxs(_s,{children:[e.jsx("b",{children:n("names.successBannerBold")})," ",n("names.successBannerRest")]})]}),e.jsxs(ue,{style:{marginTop:20},children:[e.jsxs(cs,{"data-testid":"name-success-tile",children:[e.jsx(ds,{src:En,alt:"","aria-hidden":!0,width:47,height:47}),e.jsxs(hs,{children:[e.jsx("span",{"aria-hidden":!0,children:s}),e.jsx(ps,{src:os,alt:"","aria-hidden":!0,width:14,height:14})]})]}),e.jsxs(fe,{children:[e.jsxs(me,{children:[s,e.jsx("span",{children:".dcl.eth"})]}),e.jsx(xe,{children:n("names.subtitle")})]}),e.jsxs(ge,{children:[e.jsx(K,{}),F]})]}),e.jsxs(Je,{children:[e.jsx(et,{onClick:()=>{a(),x("/my-items")},children:n("names.myItems")}),e.jsx(Is,{href:ee.profileUrl,target:"_blank",rel:"noopener noreferrer",children:n("names.assignToAvatar")})]})]})]})})}function Fs(s){return s.replace(/[&<>"']/g,o=>({"&":"&","<":"<",">":">",'"':""","'":"'"})[o])}const Ps="https://cdn.decentraland.org/@dcl/shop/1.13.1-35339357506.commit-a201fb1/_assets/identity-icon-C8yAW_Gq.svg",Bs="https://cdn.decentraland.org/@dcl/shop/1.13.1-35339357506.commit-a201fb1/_assets/world-icon-6xQ-PmmW.svg",Us="https://cdn.decentraland.org/@dcl/shop/1.13.1-35339357506.commit-a201fb1/_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`
|
|
503
|
-
width: 100%;
|
|
504
|
-
min-width: 0;
|
|
505
|
-
`,Ds=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
|
-
${Tn};
|
|
515
|
-
`,Gs=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
|
-
`,qs=i.span`
|
|
532
|
-
font-weight: 700;
|
|
533
|
-
color: ${t.colors.softWhite};
|
|
534
|
-
`,Ks=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
|
-
`,Vs=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
|
-
`,Zs=i.div`
|
|
562
|
-
display: flex;
|
|
563
|
-
flex-direction: column;
|
|
564
|
-
align-items: center;
|
|
565
|
-
gap: 12px;
|
|
566
|
-
`,Qs=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
|
-
`,Ys=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
|
-
`,Xs=i.div`
|
|
590
|
-
width: min(785px, 100%);
|
|
591
|
-
display: flex;
|
|
592
|
-
flex-direction: column;
|
|
593
|
-
gap: 12px;
|
|
594
|
-
`,Js=i.div`
|
|
595
|
-
position: relative;
|
|
596
|
-
`,ei=i("div",Rn("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:s})=>s?t.colors.dclRed:t.colors.orange};
|
|
605
|
-
border-radius: 20px;
|
|
606
|
-
|
|
607
|
-
&:focus-within {
|
|
608
|
-
border-color: ${({invalid:s})=>s?t.colors.dclRed:t.colors.magenta};
|
|
609
|
-
}
|
|
610
|
-
|
|
611
|
-
${t.media.maxWidth("mobile")} {
|
|
612
|
-
border-radius: 16px;
|
|
613
|
-
}
|
|
614
|
-
`,ti=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
|
-
`,ni=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
|
-
`,ct=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
|
-
`,si=i(ct)`
|
|
675
|
-
color: #ec303a;
|
|
676
|
-
`,ii=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
|
-
`,oi=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
|
-
`,ri=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
|
-
`,ai=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
|
-
`,li=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
|
-
`,dt=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
|
-
`,ci=i(dt)`
|
|
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
|
-
`,di=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
|
-
`,hi=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:s})=>s==="error"?"rgba(255, 45, 85, 0.12)":s==="ok"?"rgba(30, 166, 114, 0.14)":"rgba(255,255,255,0.14)"};
|
|
813
|
-
color: ${({tone:s})=>s==="error"?t.colors.dclRed:s==="ok"?"#0f7a4f":"#ecebed"};
|
|
814
|
-
|
|
815
|
-
.ico {
|
|
816
|
-
width: 16px;
|
|
817
|
-
height: 16px;
|
|
818
|
-
flex: none;
|
|
819
|
-
}
|
|
820
|
-
`,be=i(hi)`
|
|
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
|
-
`,pi=i(ct)`
|
|
834
|
-
color: inherit;
|
|
835
|
-
`,ui=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
|
-
`,fi=i.div`
|
|
846
|
-
display: flex;
|
|
847
|
-
flex-direction: column;
|
|
848
|
-
align-items: center;
|
|
849
|
-
gap: 24px;
|
|
850
|
-
`,mi=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
|
-
`,xi=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
|
-
`,gi=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
|
-
`,ye=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
|
-
`,we=i.img`
|
|
905
|
-
display: block;
|
|
906
|
-
align-self: flex-start;
|
|
907
|
-
height: 55px;
|
|
908
|
-
width: auto;
|
|
909
|
-
`,je=i.div`
|
|
910
|
-
flex: 1;
|
|
911
|
-
display: flex;
|
|
912
|
-
flex-direction: column;
|
|
913
|
-
gap: 12px;
|
|
914
|
-
`,ve=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
|
-
`,Ce=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
|
-
`,bi=i.span`
|
|
930
|
-
font-weight: 700;
|
|
931
|
-
color: ${t.colors.white};
|
|
932
|
-
`,tt=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
|
-
`,yi=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
|
-
`,wi="https://docs.decentraland.org/creator/worlds/about/",ji="https://governance.decentraland.org";function nt(s){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(s)}`}function vi({onBack:s}){ot({title:n("seo.names.title"),description:n("seo.names.description")});const{session:o,signIn:a}=it(),d=Be(),m=ut(),{pathname:j,search:h}=m,x=m.state,c=typeof(x==null?void 0:x.resumeName)=="string"?x:void 0,y=Xn(),{data:g}=rt(),$=g?at(ie,g):null,[p,w]=u.useState((c==null?void 0:c.resumeName)??""),[b,f]=u.useState("idle"),[v,E]=u.useState(!1),[I,W]=u.useState((c==null?void 0:c.resumeName)??""),[H,te]=u.useState(!!(c!=null&&c.resumeName)),[k,R]=u.useState(()=>{var S;return typeof window<"u"&&!!((S=window.matchMedia)!=null&&S.call(window,"(prefers-reduced-motion: reduce)").matches)});u.useEffect(()=>{var A;const S=(A=window.matchMedia)==null?void 0:A.call(window,"(prefers-reduced-motion: reduce)");if(!S)return;const T=z=>R(z.matches);return S.addEventListener("change",T),()=>S.removeEventListener("change",T)},[]);const N=n("names.placeholderExamples"),F=u.useMemo(()=>N.split(",").map(S=>S.trim()).filter(Boolean),[N]),P=is(F,!H&&!p&&!k)||n("names.inputPlaceholder"),L=u.useRef(null),[B,Y]=u.useState(void 0);u.useLayoutEffect(()=>{L.current&&Y(L.current.getBoundingClientRect().width)},[p,P]),u.useEffect(()=>{if(!Ye(p).ok){f(p.length===0?"idle":"invalid");return}f("checking");const T=new AbortController,A=setTimeout(()=>{(async()=>{try{const z=await Gn(p,{signal:T.signal});f(z)}catch(z){if((z==null?void 0:z.name)==="AbortError")return;f("error")}})()},400);return()=>{clearTimeout(A),T.abort()}},[p]);const G=Ye(p),M=G.ok&&(b==="available"||b==="error"),U=y&&M,q=!y&&M;function C(){if(U){if(!o){a();return}E(!0)}}u.useEffect(()=>{c!=null&&c.resumeName&&d(`${j}${h}`,{replace:!0,state:null})},[c==null?void 0:c.resumeName,d,j,h]),u.useEffect(()=>{if(I){if(p.toLowerCase()!==I.toLowerCase()){W("");return}if(!(b==="idle"||b==="checking")){if(!M){W("");return}!y||!o||(W(""),E(!0))}}},[I,p,b,M,y,o]);const D=e.jsxs(e.Fragment,{children:[n("names.claim"),$!=null?e.jsxs(di,{children:[e.jsx(K,{}),se($)]}):null]});return e.jsxs(Hs,{"data-testid":"names-page",children:[e.jsxs(Ds,{"aria-label":n("names.breadcrumbAria"),children:[e.jsx(Gs,{onClick:s,children:n("names.breadcrumbCollectibles")}),e.jsx("span",{"aria-hidden":!0,children:">"}),e.jsx(qs,{children:n("names.breadcrumbCurrent")})]}),e.jsxs(Ks,{children:[e.jsxs(Vs,{children:[e.jsxs(Zs,{children:[e.jsx(Qs,{children:n("names.heroTitle")}),e.jsx(Ys,{children:n("names.heroSubtitle")})]}),e.jsxs(Xs,{children:[e.jsxs(Js,{"data-testid":"names-input-wrap",children:[e.jsxs(ei,{invalid:b==="taken",children:[e.jsxs(ii,{children:[e.jsx(oi,{"aria-hidden":!0,children:"@"}),e.jsx(ri,{value:p,onChange:S=>w(On(S.target.value)),placeholder:P,"aria-label":n("names.inputAria"),autoComplete:"off",spellCheck:!1,maxLength:ke,onFocus:()=>te(!0),style:{width:B!=null?`${B}px`:void 0}}),e.jsx(ti,{ref:L,"aria-hidden":!0,"data-placeholder":!p||void 0,children:p||P}),e.jsx(ai,{children:n("names.suffix")})]}),p.length>0?e.jsxs(li,{"aria-hidden":!0,children:[p.length,"/",ke]}):null,e.jsx(dt,{onClick:C,disabled:!U,"data-testid":"names-claim",children:D})]}),b==="taken"?e.jsxs(ni,{role:"status","data-testid":"names-taken",children:[e.jsx(_,{name:"info",size:16,"aria-hidden":!0}),e.jsx("span",{children:n("names.taken")}),e.jsxs(si,{href:nt(p),target:"_blank",rel:"noopener noreferrer",children:[n("names.takenMakeOffer"),e.jsx(_,{name:"external-link",size:13,"aria-hidden":!0})]})]}):null,b==="checking"?e.jsx(be,{tone:"muted",role:"status","data-testid":"names-checking",children:n("names.checking")}):q?e.jsxs(be,{tone:"muted",role:"status","data-testid":"names-disabled",children:[e.jsx(_,{name:"info",size:16,"aria-hidden":!0}),e.jsx("span",{children:n("names.registrationDisabled")}),e.jsxs(pi,{href:nt(p),target:"_blank",rel:"noopener noreferrer",children:[n("names.registrationDisabledLink"),e.jsx(_,{name:"external-link",size:13,"aria-hidden":!0})]})]}):b==="error"?e.jsx(be,{tone:"muted",role:"status",children:n("names.checkError")}):b==="invalid"&&!G.ok&&G.reason==="too-short"?e.jsx(be,{tone:"muted",role:"status",children:n("names.tooShort",{min:lt})}):null]}),e.jsx(ci,{onClick:C,disabled:!U,children:D}),e.jsx(yi,{role:"status","aria-live":"polite",children:b==="available"?n("names.available",{name:p}):""})]})]}),e.jsxs(ui,{children:[e.jsxs(fi,{children:[e.jsx(mi,{children:n("names.whyTitle")}),e.jsx(xi,{children:n("names.whyIntro")})]}),e.jsxs(gi,{children:[e.jsxs(ye,{children:[e.jsx(we,{src:Ps,alt:""}),e.jsxs(je,{children:[e.jsx(ve,{children:n("names.why1Title")}),e.jsx(Ce,{children:n("names.why1")})]})]}),e.jsxs(ye,{children:[e.jsx(we,{src:Bs,alt:""}),e.jsxs(je,{children:[e.jsx(ve,{children:n("names.why2Title")}),e.jsxs(Ce,{children:[n("names.why2")," ",e.jsx(bi,{children:n("names.why2Address")})]}),e.jsxs(tt,{href:wi,target:"_blank",rel:"noopener noreferrer",children:[n("names.learnMore"),e.jsx(_,{name:"external-link","aria-hidden":!0})]})]})]}),e.jsxs(ye,{children:[e.jsx(we,{src:Us,alt:""}),e.jsxs(je,{children:[e.jsx(ve,{children:n("names.why3Title")}),e.jsx(Ce,{children:n("names.why3")})]})]}),e.jsxs(ye,{children:[e.jsx(we,{src:Os,alt:""}),e.jsxs(je,{children:[e.jsx(ve,{children:n("names.why4Title")}),e.jsx(Ce,{children:n("names.why4")}),e.jsxs(tt,{href:ji,target:"_blank",rel:"noopener noreferrer",children:[n("names.learnMore"),e.jsx(_,{name:"external-link","aria-hidden":!0})]})]})]})]})]})]}),v?e.jsx(Ws,{name:p,priceCredits:$,onClose:()=>E(!1)}):null]})}const Ci=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
|
-
`,st=48,$i=["all","on_sale","not_for_sale"],ki=s=>s?"all":"on_sale";function Ji({contracts:s,hideNames:o=!1,seo:a,lockStatus:d}={}){const[m]=ft(),j=Be(),h=(m.get("q")??"").trim().toLowerCase(),x=(m.get("q")??"").trim();ot(a??{title:x?n("seo.collectibles.searchTitle",{query:x}):n("seo.collectibles.title"),description:n("seo.collectibles.description")});const c=ki(!!h),y=Nt(),g=y&&m.get("deals")==="true",$=u.useMemo(()=>({category:"all",status:c,subCategory:null,rarities:[],priceMin:"",priceMax:"",smart:!1,deals:!1,sort:g?"discount":"newest"}),[c,g]),[p,w]=Ft($),{subCategory:b,rarities:f,priceMin:v,priceMax:E,smart:I,sort:W}=p,H=y&&p.deals,k=Bt.map(r=>r.key).filter(r=>!(o&&r==="names")).includes(p.category)?p.category:"all",R=d??($i.includes(p.status)?p.status:c);Ut(`${k}:${b??""}`);const[N,F]=u.useState(!1);u.useEffect(()=>{if(!N)return;const r=ce=>{ce.key==="Escape"&&F(!1)};document.addEventListener("keydown",r);const Z=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.removeEventListener("keydown",r),document.body.style.overflow=Z}},[N]);const Q=s!==void 0&&s.length===0,P=R==="on_sale",L=v&&!Number.isNaN(Number(v))?Number(v):void 0,B=E&&!Number.isNaN(Number(E))?Number(E):void 0,Y=Lt(),G=b?Zt[b]:void 0,M=H?Ot:Ht,U=(M.find(r=>r.key===W)??M[0]).server,q={category:k,rarities:f.length?f:void 0,wearableCategories:G,minPriceCredits:L,maxPriceCredits:B,search:h||void 0,sortBy:U,isSmart:I||void 0,onSale:!0,discounted:H||void 0,listingType:Y?void 0:"primary",contractAddresses:s!=null&&s.length?s:void 0},C={category:k,rarities:f.length?f:void 0,wearableCategories:G,search:h||void 0,sortBy:U,isWearableSmart:I||void 0,isOnSale:R==="not_for_sale"?!1:void 0,contractAddresses:s!=null&&s.length?s:void 0},{items:D,total:S,isLoading:T,isPlaceholderData:A,error:z,hasNextPage:oe,isFetchingNextPage:ne,isFetchNextPageError:Se,fetchNextPage:Ee}=Vt(P?["shop-items",q]:["catalog-items",C],r=>P?zt({...q,first:st,skip:r}):Wt({...C,first:st,skip:r}),{enabled:k!=="names"&&!Q}),V=S,{data:X,isError:re,isPending:l}=rt(),O=r=>X&&r.manaWei?at(r.manaWei,X):null,ae=P&&l&&D.some(r=>r.source==="legacy"),Oe=T||A||ae,ht=T?15:Math.max(D.length,1),He=u.useRef(null);u.useEffect(()=>{T||A||!h||He.current===h||(He.current=h,$e("Shop Searched",{query:h,result_count:V}))},[h,T,A,V]);const le=u.useRef("__init__");u.useEffect(()=>{if(T||A)return;const r=JSON.stringify({category:k,subCategory:b,rarities:f,min:L,max:B,sort:W,status:R,smart:I});if(le.current==="__init__"||le.current===r){le.current=r;return}le.current=r,$e("Shop Applied Filter",{filters:{category:k,sub_category:b,rarities:f,min_price_credits:L??null,max_price_credits:B??null,status:R,smart:I,sort:W},result_count:V})},[k,b,f,L,B,W,R,I,T,A,V]);function De(r){w({category:r,subCategory:null})}function Ge(r){w({status:r})}function qe(r){w({rarities:f.includes(r)?f.filter(Z=>Z!==r):[...f,r]})}function pt(){w($)}const J=[];(L!=null||B!=null)&&J.push({key:"price",label:n("filter.price"),onRemove:()=>{w({priceMin:"",priceMax:""})}});for(const r of Dt)f.includes(r)&&J.push({key:`rarity-${r}`,label:Mt(r),onRemove:()=>qe(r)});return I&&J.push({key:"smart",label:n("filter.smart"),onRemove:()=>w({smart:!1})}),H&&J.push({key:"deals",label:n("filter.deals"),onRemove:()=>w({deals:!1,sort:"newest"})}),R!==c&&J.push({key:"status",label:R==="all"?n("filter.statusAll"):R==="on_sale"?n("filter.onSale"):n("filter.notForSale"),onRemove:()=>Ge(c)}),e.jsxs(In,{"data-testid":"browse",children:[k!=="names"&&e.jsxs(e.Fragment,{children:[N?e.jsx(Nn,{onClick:()=>F(!1),"aria-hidden":!0}):null,e.jsxs(Ln,{"data-open":N||void 0,"data-testid":"browse-sidebar",children:[e.jsxs(Mn,{children:[e.jsx(An,{children:n("assets.filters")}),e.jsx(zn,{onClick:()=>F(!1),"aria-label":n("assets.closeFilters"),children:"✕"})]}),e.jsx(Wn,{children:e.jsx(Gt,{category:k,subCategory:b,onCategory:De,onSub:r=>w({subCategory:r}),priceMin:v,priceMax:E,onPriceMin:r=>w({priceMin:r}),onPriceMax:r=>w({priceMax:r}),rarities:f,onToggleRarity:qe,status:R,onStatus:Ge,hideNames:o,smart:I,onSmart:r=>w({smart:r}),deals:H,onDeals:y?r=>w(r?{deals:!0,sort:"discount"}:{deals:!1,sort:"newest"}):void 0})}),e.jsx(Fn,{children:e.jsx(Pn,{type:"button",onClick:()=>F(!1),children:n("assets.showItems")})})]})]}),e.jsx(Bn,{children:k==="names"?e.jsx(vi,{onBack:()=>De("all")}):e.jsxs(e.Fragment,{children:[e.jsx(qt,{sort:W,sortOptions:M,onSort:r=>w({sort:r}),total:S,loading:T||A,query:h,onOpenFilters:()=>F(!0),chips:J,onClearChips:pt}),re&&P&&D.some(r=>r.source==="legacy")?e.jsx(Ci,{"data-variant":"warn",children:n("assets.marketUnavailable")}):null,z?e.jsx(Qt,{message:n("assets.loadError"),testId:"browse-error"}):null,!Oe&&D.length===0&&!z?e.jsx(At,{testId:"browse-empty",icon:Pt,title:n("assets.empty.title"),body:x?e.jsxs(e.Fragment,{children:[n("assets.empty.searchBefore"),e.jsx("b",{children:x}),n("assets.empty.searchAfter")]}):n("assets.empty.filters"),cta:{label:n("assets.empty.cta"),onClick:()=>j("/overview")}}):e.jsxs(e.Fragment,{children:[e.jsx(_n,{"data-testid":"grid",children:Oe?e.jsx(Ve,{count:ht}):e.jsxs(e.Fragment,{children:[D.map(r=>{if(!P)return e.jsx(he,{item:r,mode:"view"},pe(r));const Z=r;if(Z.source!=="legacy")return e.jsx(he,{item:r},pe(r));const ce=O(Z);return ce==null?e.jsx(he,{item:r,mode:"view"},pe(r)):e.jsx(he,{item:{...Z,priceCredits:ce}},pe(r))}),ne?e.jsx(Ve,{count:6}):null]})}),e.jsx(Kt,{hasNextPage:oe,isFetching:ne,isError:Se,onLoadMore:()=>void Ee()})]})]})})]})}export{Ji as Assets};
|
|
980
|
-
//# sourceMappingURL=Assets-tHTTA31T.js.map
|