@dcl/shop 0.1.0-30412251367.commit-a3b4797 → 0.1.0-30465483842.commit-35256d2
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-8UjrsG3-.js → Activity-BeTqkBj9.js} +3 -3
- package/assets/{AnimatedBackground-BCYG8Tef.js → AnimatedBackground-Cn4Zf2W1.js} +1 -1
- package/assets/Assets-DudI0KEf.js +787 -0
- package/assets/{Assets.styles-CikNDgjl.js → Assets.styles-BVt9ny1H.js} +1 -1
- package/assets/{Authorizations-Bokq2Suf.js → Authorizations-BAz8f3JR.js} +4 -4
- package/assets/Cart-ivYSIGG2.js +671 -0
- package/assets/{CircularProgress-BMVyWr0x.js → CircularProgress-CtiP6dpx.js} +5 -5
- package/assets/{Collection-DJOV1uib.js → Collection-DtymV7vw.js} +8 -8
- package/assets/{CollectionCarousel-QT5SE2Qn.js → CollectionCarousel-cAnwcIFc.js} +8 -8
- package/assets/{ConstantsUtil-KNWfO3UV.js → ConstantsUtil-CtukCvy7.js} +1 -1
- package/assets/{ContentClient-C6lww4Oh.js → ContentClient-Y4SsAlAh.js} +1 -1
- package/assets/Creator-BXEtxAG-.js +306 -0
- package/assets/{DeploymentBuilder-Y6PlTuKa.js → DeploymentBuilder-GpEcBaRI.js} +1 -1
- package/assets/{ErrorNotice-D5gYmXmi.js → ErrorNotice-CCmfdXO-.js} +1 -1
- package/assets/{ExchangeController-C2Dwbbnp.js → ExchangeController-DricVZKh.js} +1 -1
- package/assets/{GetCredits-wex2fjEr.js → GetCredits-CteYpfxR.js} +7 -7
- package/assets/{HelpersUtil-Vd6xvA31.js → HelpersUtil-CGIcCkK_.js} +1 -1
- package/assets/{ImportListings-Bt5ry6Y2.js → ImportListings-Bbmrn90L.js} +21 -21
- package/assets/ItemDetail-0VoDt4ER.js +3352 -0
- package/assets/{LoadMore-CQjFLXNq.js → LoadMore-C4ahcKGI.js} +1 -1
- package/assets/{MenuList-IJFPnugX.js → MenuList-B2tx2Rax.js} +1 -1
- package/assets/{MyAssets-BVW3epBg.js → MyAssets-CN-grtYY.js} +4 -4
- package/assets/{MyFavorites-CnL6bN9q.js → MyFavorites-BbfXGeat.js} +1 -1
- package/assets/{NetworkUtil-C48X2eZd.js → NetworkUtil-DXqql1Wz.js} +1 -1
- package/assets/{NotFound-Bnm7dY5_.js → NotFound-3nwiotnn.js} +1 -1
- package/assets/NotificationsBell-HgkcWigI.js +34 -0
- package/assets/{StoreSettings-jIzJh2hQ.js → StoreSettings-qabn4ON-.js} +10 -10
- package/assets/{Success-DyBk-Fyu.js → Success-CjzxOGc_.js} +12 -12
- package/assets/{SwapController-3FAonz_f.js → SwapController-DMsZNMmX.js} +1 -1
- package/assets/{Tooltip-BBt5hMnk.js → Tooltip-C7o9WgVx.js} +1 -1
- package/assets/{TradeService-B7rDz3sC.js → TradeService-DPp_8P7A.js} +1 -1
- package/assets/{W3MFrameProviderSingleton-CW-7ZLkS.js → W3MFrameProviderSingleton-CTol_EUI.js} +3 -3
- package/assets/{WebCryptoP256-Bd8OFfw1.js → WebCryptoP256-DpdlkbHJ.js} +1 -1
- package/assets/{authorizations-D9SdrCKu.js → authorizations-93IYCFGd.js} +1 -1
- package/assets/{basic-Dvd5bzaA.js → basic-CpElrsn8.js} +1 -1
- package/assets/{biconomy-dG6Bg2dg.js → biconomy-DxKbEqvI.js} +1 -1
- package/assets/{browseLayout.styles-C_Zq7mr0.js → browseLayout.styles-oJ6cJp3z.js} +9 -9
- package/assets/{browser-BFlLa9WG.js → browser-DxF-qILS.js} +1 -1
- package/assets/browser-ponyfill-Bfl4ugg_.js +1 -0
- package/assets/{browser-ponyfill-CjstZ09i.js → browser-ponyfill-CxIDDbrC.js} +1 -1
- package/assets/{builder-D8iOQj01.js → builder-BxP8tT4f.js} +1 -1
- package/assets/{buy-D5aQviUN.js → buy-BYXdfz24.js} +1 -1
- package/assets/{buy-gasless-Dyp24AZP.js → buy-gasless-BS7n5_qI.js} +1 -1
- package/assets/{categories-DYeriK5r.js → categories-5tCT8xWh.js} +3 -3
- package/assets/{ccip-CmH6X-VD.js → ccip-Bl6ljmaH.js} +1 -1
- package/assets/{ccip-sPJkvjEi.js → ccip-D8XoWaW0.js} +1 -1
- package/assets/{chains-C2RietY2.js → chains-Dlj4CXzw.js} +1 -1
- package/assets/{clsx-kou7Gw3G.js → clsx-GM87-Mfi.js} +2 -2
- package/assets/{common-CsgGwlgE.js → common-B0ixkeRu.js} +1 -1
- package/assets/{controller-xklbTpWc.js → controller-B9756Ryj.js} +2 -2
- package/assets/{core-MZsPOtzz.js → core-CnxuTyuu.js} +4 -4
- package/assets/{createSvgIcon-IwQBy7pg.js → createSvgIcon-tZB5vU5t.js} +3 -3
- package/assets/{custom-BxkhNAWn.js → custom-BpAwBsCt.js} +1 -1
- package/assets/{data-capture-BehFEgR3.js → data-capture-CHeYJ3vX.js} +1 -1
- package/assets/decimals-CMCAWgOh.js +1 -0
- package/assets/{decimals-IP6x1zFM.js → decimals-CqRsKj6U.js} +1 -1
- package/assets/{detectExtension-CkPZwVNy.js → detectExtension-DX7grDLh.js} +1 -1
- package/assets/{email-tWQYn7xy.js → email-XSD702LD.js} +1 -1
- package/assets/{embedded-wallet-D30IEXMw.js → embedded-wallet-DXacld5x.js} +1 -1
- package/assets/emotion-styled.browser.esm-CDVeR2pU.js +1 -0
- package/assets/{engine-DGnYPLN-.js → engine-Dh3r5QUk.js} +1 -1
- package/assets/{errors-BnsKc9DV.js → errors-DLr34B3-.js} +1 -1
- package/assets/estimate-l1-fee-2qvKT5Nf.js +1 -0
- package/assets/eth_estimateGas-BZtzeL48.js +1 -0
- package/assets/{eth_getStorageAt-Bk219lKE.js → eth_getStorageAt-E4OzrSEc.js} +1 -1
- package/assets/eth_getTransactionCount-Ck8bEyl_.js +1 -0
- package/assets/{ethereum-CFJvhUPP.js → ethereum-CBeS7QFR.js} +1 -1
- package/assets/{ethers-BcJP3Jlu.js → ethers--abqWJu6.js} +1 -1
- package/assets/{execute-DdoVwcnk.js → execute-BjxgVD5q.js} +2 -2
- package/assets/{extractIPFS-BnnvwCll.js → extractIPFS-ChPZSPQw.js} +1 -1
- package/assets/{features-BHep8ql_.js → features-ZVa1PXQo.js} +1 -1
- package/assets/{fetchTokenMetadata-DNF7Ktb5.js → fetchTokenMetadata-BonGxoWN.js} +2 -2
- package/assets/{fortmatic-CS3ilTJ-.js → fortmatic-HaPICQeD.js} +1 -1
- package/assets/{get-bytecode-7NL5IHp9.js → get-bytecode-BRKTQsHC.js} +1 -1
- package/assets/get-ecosystem-wallet-info-BxqcPq0B.js +1 -0
- package/assets/{getBalance-o3xVy3VD.js → getBalance-D4riIp1B.js} +2 -2
- package/assets/{getInstalledModules-Bb2RILoZ.js → getInstalledModules-DbNUTCf0.js} +1 -1
- package/assets/{getNFT-BnJhYWTi.js → getNFT-BZdDzwN-.js} +2 -2
- package/assets/getNFT-D06wHDW0.js +1 -0
- package/assets/{getThemeProps-D0AJFzVJ.js → getThemeProps-_DRrmPGx.js} +1 -1
- package/assets/{grid.styles-BuejQ1yn.js → grid.styles-Cw26IyBx.js} +1 -1
- package/assets/{hashTypedData-CoabZkiv.js → hashTypedData-4FQ0aWPB.js} +1 -1
- package/assets/{hashTypedData-DuKr_f0f.js → hashTypedData-DjUej2SL.js} +1 -1
- package/assets/import-BDu1boR-.js +1 -0
- package/assets/{in-app-BGJ-xQVR.js → in-app-BS6ANRK_.js} +1 -1
- package/assets/{in-app-wallet-calls-DtUfInmk.js → in-app-wallet-calls-DISlGB0f.js} +1 -1
- package/assets/{index-ClCrLGWg.js → index-798yU1Mw.js} +1 -1
- package/assets/{index-Bj6MeO0a.js → index-Am_UuYtn.js} +1 -1
- package/assets/{index-qb84uRHi.js → index-B-BkGVd_.js} +2 -2
- package/assets/{index-D5r4ujUj.js → index-B25RdNLD.js} +1 -1
- package/assets/index-B4kPBdQm.js +4 -0
- package/assets/{index-DfCHmMef.js → index-BDJa77HS.js} +1 -1
- package/assets/{index-Ml84ec8q.js → index-BJvvuyHt.js} +1 -1
- package/assets/{index-Dp4jo2Sw.js → index-BQEI0eWt.js} +1 -1
- package/assets/{index--NzC7DNE.js → index-BQgkgQ46.js} +1 -1
- package/assets/{index-B0LPe9M_.js → index-BSGQxCOa.js} +1 -1
- package/assets/{index-CmMivti9.js → index-BX3lLNL7.js} +1 -1
- package/assets/index-BoRS8U2O.js +2 -0
- package/assets/{index-5kO2yk7p.js → index-BqbJpa0j.js} +1 -1
- package/assets/{index-CX3uS5Lx.js → index-BuvFoyTD.js} +1 -1
- package/assets/{index-yG-FApIh.js → index-BxLxzt3o.js} +1 -1
- package/assets/{index-BXQdsRLU.js → index-BzdD6V6H.js} +1 -1
- package/assets/{index-2mQ5xcN9.js → index-C1Asz4E8.js} +1 -1
- package/assets/{index-CW9GMvzr.js → index-C7XgriCO.js} +1 -1
- package/assets/{index-CSmBKYZx.js → index-C8dqc2e-.js} +1 -1
- package/assets/{index-CGOjpWDy.js → index-CCfTPrm0.js} +1 -1
- package/assets/{index-DKMe_g7M.js → index-CDthvVRG.js} +1 -1
- package/assets/{index-DfsP9TUM.js → index-CLqMYMp_.js} +1 -1
- package/assets/{index-Bh3E5miD.js → index-CLrPXCJt.js} +1 -1
- package/assets/{index-gzyTW3Vs.js → index-CWWazwi9.js} +1 -1
- package/assets/{index-CZkRRYw3.js → index-C_NJ5W3Q.js} +1 -1
- package/assets/{index-kZnnQ5Ut.js → index-C_q9eRuG.js} +1 -1
- package/assets/{index-Bk9utcMB.js → index-CbCySxiP.js} +1 -1
- package/assets/{index-BtrcjZG0.js → index-CeV-QjPU.js} +1 -1
- package/assets/{index-CPx2rJof.js → index-Cg7CPUHg.js} +1 -1
- package/assets/{index-CWMRtcEf.js → index-CpLfF_C5.js} +1 -1
- package/assets/{index-BojPkeOq.js → index-CtOaoAtu.js} +1 -1
- package/assets/{index-DGoEKeW3.js → index-CwklEm59.js} +1 -1
- package/assets/{index-B2DXGnIr.js → index-D19PQguq.js} +1 -1
- package/assets/{index-8ojVdZC7.js → index-D8oxVq2h.js} +1 -1
- package/assets/{index-BHw4ODLd.js → index-DGHjUc9b.js} +2 -2
- package/assets/{index-BohEkpwv.js → index-DGZgLX5H.js} +1 -1
- package/assets/{index-CEer3Dve.js → index-DLR5U5u7.js} +1 -1
- package/assets/{index-CSYGb2Fe.js → index-DMKlwtPQ.js} +3 -3
- package/assets/{index-CRHJNQlx.js → index-DN_GgU69.js} +1 -1
- package/assets/{index-CzKb7vNz.js → index-DO6Qu3WW.js} +3 -3
- package/assets/{index-DmQpQnV8.js → index-DOjpmFkl.js} +1 -1
- package/assets/index-DQ6JWiqD.js +2726 -0
- package/assets/{index-CCTlFldw.js → index-DSiEomXM.js} +2 -2
- package/assets/{index-D9y9e0SI.js → index-DTDCTp2g.js} +1 -1
- package/assets/{index-CBBP7TBs.js → index-DVuMdLqo.js} +1 -1
- package/assets/index-DbLpdy-5.js +1 -0
- package/assets/{index-DVtofOZW.js → index-DbPcoBNe.js} +1 -1
- package/assets/{index-CBIe-bgQ.js → index-DgrIRrjH.js} +3 -3
- package/assets/{index-D5j9PYJF.js → index-Dh0Sv0e8.js} +1 -1
- package/assets/{index-npBBtkQ4.js → index-DoKViOPe.js} +2 -2
- package/assets/{index-C7RLoETU.js → index-LJjUqlEi.js} +1 -1
- package/assets/{index-Cde9ukg9.js → index-M7UEwjGY.js} +1 -1
- package/assets/{index-ChrYH1qu.js → index-OMa8Tj-T.js} +1 -1
- package/assets/{index-CwpsnSE-.js → index-T2XOIIOd.js} +1 -1
- package/assets/{index-DIQFiJw5.js → index-_c5LJlQE.js} +1 -1
- package/assets/{index-EdKbWflt.js → index-d7uAVQJc.js} +1 -1
- package/assets/{index-BQaqHf8o.js → index-eFPFED8d.js} +1 -1
- package/assets/{index-xg4lpaz2.js → index-eefVCnI5.js} +1 -1
- package/assets/{index-AqMtboou.js → index-gugejC0m.js} +1 -1
- package/assets/{index-ANt6jUgt.js → index-tvUXHAjm.js} +1 -1
- package/assets/{index-ErYV44Q4.js → index-vHUJJrBU.js} +1 -1
- package/assets/{index-SFbvmavv.js → index-w01WQ1OT.js} +1 -1
- package/assets/{index-Bd3LDqeG.js → index-zwRq9h0X.js} +1 -1
- package/assets/{index.es-B8-dnoim.js → index.es-B7o2FOqd.js} +1 -1
- package/assets/{index.es-DJ3kbshj.js → index.es-DF0fPg1w.js} +1 -1
- package/assets/{index.es-CVKCWLJM.js → index.es-DwC36uQk.js} +4 -4
- package/assets/{linkAccount-CMRw__DD.js → linkAccount-BtAQZlYa.js} +1 -1
- package/assets/{localBatchGatewayRequest-Zo1h78T2.js → localBatchGatewayRequest-CMQNhumX.js} +1 -1
- package/assets/mana-convert-DVF4taBh.js +1 -0
- package/assets/mana-rate-DghhfRg4.js +1 -0
- package/assets/{native-CVTOA2Tn.js → native-CPZ4GKee.js} +1 -1
- package/assets/{networks-lZiCPE_E.js → networks-CTtxcDaZ.js} +1 -1
- package/assets/{onramp-CdEvB3NN.js → onramp-DH1m5q3Z.js} +1 -1
- package/assets/{openzeppelin-dcSCp8oO.js → openzeppelin-C43jcpbd.js} +1 -1
- package/assets/{ownerOf-CsITmz5G.js → ownerOf-DmpjD1-R.js} +1 -1
- package/assets/{parseNft-Dyxra80B.js → parseNft-DfOGe9m5.js} +2 -2
- package/assets/{parseSignature-kR33ICiI.js → parseSignature-DikUb694.js} +1 -1
- package/assets/{parseSignature-Bv6LHz0J.js → parseSignature-aw_zZz28.js} +3 -3
- package/assets/{passkeys-CNB2NE7x.js → passkeys-nBMLF2xb.js} +1 -1
- package/assets/{pay-with-exchange-BMLdqedA.js → pay-with-exchange-BvzhQXq9.js} +1 -1
- package/assets/{prepare-contract-call-BaYJFPDg.js → prepare-contract-call-DDzIRXLv.js} +1 -1
- package/assets/{qr-overlay-CnDI5CiO.js → qr-overlay-DraTWZGb.js} +3 -3
- package/assets/{react-BcSuIh9F.js → react-BYHuwl8r.js} +7 -7
- package/assets/{receive-ChA3v35W.js → receive-4VdJwQ5p.js} +1 -1
- package/assets/{resolveImplementation-CCo5LLf9.js → resolveImplementation-BeIaeyw0.js} +1 -1
- package/assets/{rpc-DnrL-lEN.js → rpc-BBuy0siA.js} +1 -1
- package/assets/{secp256k1-k3rGb0FY.js → secp256k1-BB8knln0.js} +1 -1
- package/assets/{secp256k1-CMg-D1Yf.js → secp256k1-CNxo_fPH.js} +1 -1
- package/assets/{secp256k1-CS2b8XGe.js → secp256k1-vpgDrCPF.js} +1 -1
- package/assets/{send-C4CU9amI.js → send-DVC7onZT.js} +1 -1
- package/assets/{send-batch-transaction-CWgV_tKo.js → send-batch-transaction-98lAmXJd.js} +1 -1
- package/assets/{send-eip712-transaction-PtOJJ22L.js → send-eip712-transaction-Eg93axAQ.js} +2 -2
- package/assets/send-gasless-transaction-B7IHL-9x.js +2 -0
- package/assets/{send-transaction-IaM6NABX.js → send-transaction-DIVDHo0b.js} +2 -2
- package/assets/{sendMetaTransaction-B3dSruz9.js → sendMetaTransaction-BjStTgy8.js} +1 -1
- package/assets/{sendRawTransaction-DVnoMWRa.js → sendRawTransaction-C0hCcwaF.js} +3 -3
- package/assets/{sentry-Cmcd0bRo.js → sentry-Dx-KuLV3.js} +1 -1
- package/assets/{serializeTransaction-xWeCzER5.js → serializeTransaction-CTD81sCU.js} +1 -1
- package/assets/{session-proposal-CA_BWpbu.js → session-proposal-BqbaK0vH.js} +1 -1
- package/assets/{session-request-DrvTdT32.js → session-request-DQi229nq.js} +2 -2
- package/assets/{sha256-DrqMdEvd.js → sha256-CfLwtdyC.js} +1 -1
- package/assets/{signing-D7mIsKCi.js → signing-C-hS2sII.js} +3 -3
- package/assets/{socials-DHhQ5hHW.js → socials-CBTjIC0C.js} +1 -1
- package/assets/{swaps-GIwSXf8E.js → swaps-BMaKKFJL.js} +1 -1
- package/assets/{thirdweb-Cu0RUYVM.js → thirdweb-gVaYX1Nm.js} +3 -3
- package/assets/{to-serializable-transaction-CZNMGKgd.js → to-serializable-transaction-BRT7Q8xs.js} +2 -2
- package/assets/{totalSupply-GlVdMBtF.js → totalSupply-DRNaCAzP.js} +1 -1
- package/assets/{trade-encoding-Bjf-A7RZ.js → trade-encoding-BTpnbAqu.js} +1 -1
- package/assets/{transaction-BcHeU8fK.js → transaction-Col-q-Ce.js} +1 -1
- package/assets/{transactionReceipt-BN87RuoF.js → transactionReceipt-DKKCsI26.js} +1 -1
- package/assets/{transactions-Cco6oVpQ.js → transactions-CadGL-lV.js} +1 -1
- package/assets/useCreditPacks-B4TLB8Ir.js +1 -0
- package/assets/useInfiniteGrid-C6HwGwYR.js +1 -0
- package/assets/useManaRate-iYCZTzak.js +1 -0
- package/assets/{useSecondarySales-DYRKFz6P.js → useSecondarySales-BTqJsuhI.js} +1 -1
- package/assets/{useStore-_uLtA179.js → useStore-BzU6Jh1o.js} +2 -2
- package/assets/useTheme-BoNwKDMf.js +1 -0
- package/assets/{utils-DyrKZcP0.js → utils-BQF5MiO5.js} +1 -1
- package/assets/{verifyHash-DCxQtIBT.js → verifyHash-u7AIFmcv.js} +1 -1
- package/assets/{w3m-modal-DxYrwlB7.js → w3m-modal-D-H2XJii.js} +1 -1
- package/assets/{w3m-modal-Da4hI2j8.js → w3m-modal-pEA1kWyU.js} +1 -1
- package/assets/{wait-for-tx-receipt-C-mmcx5H.js → wait-for-tx-receipt-h9USNCLV.js} +1 -1
- package/assets/{wallets-76x-ub7q.js → wallets-BwDMgJZD.js} +5 -5
- package/assets/{web-connector-dduTSXH6.js → web-connector-CPZEHhv9.js} +3 -3
- package/assets/{writeContract-DwGysLbg.js → writeContract-D2343X96.js} +1 -1
- package/assets/{zora-sepolia-yOsPOmPB.js → zora-sepolia-5SAdD430.js} +1 -1
- package/assets/{zoraTestnet-DWoNxnQd.js → zoraTestnet-C10IoprX.js} +1 -1
- package/index.html +11 -11
- package/package.json +2 -2
- package/assets/Assets-CH_R0j7s.js +0 -787
- package/assets/Cart-WsDrlBE7.js +0 -671
- package/assets/Creator-02vljttt.js +0 -283
- package/assets/ItemDetail-DfXPbN58.js +0 -3262
- package/assets/MarketCheckout-CKG6pjiW.js +0 -91
- package/assets/NotificationsBell-DuPpk873.js +0 -34
- package/assets/browser-ponyfill-D1S2-yVH.js +0 -1
- package/assets/cart-checkout-CwE04N9A.js +0 -1
- package/assets/decimals-CiA-5P-9.js +0 -1
- package/assets/emotion-styled.browser.esm-DhhmYbit.js +0 -1
- package/assets/estimate-l1-fee-af1li4fB.js +0 -1
- package/assets/eth_estimateGas-DKDoOLuk.js +0 -1
- package/assets/eth_getTransactionCount-Yz7j7-eF.js +0 -1
- package/assets/get-ecosystem-wallet-info-CjX0dGBA.js +0 -1
- package/assets/getNFT-CqhsAlXX.js +0 -1
- package/assets/import-WkFMCsEs.js +0 -1
- package/assets/index-CKj6WCs2.js +0 -2
- package/assets/index-CKryZsyO.js +0 -2637
- package/assets/index-DxuZw951.js +0 -4
- package/assets/index-UPzYWcom.js +0 -1
- package/assets/mana-rate-5WVYReay.js +0 -1
- package/assets/send-gasless-transaction-C32fVIA8.js +0 -2
- package/assets/useCreditPacks-DTfnYysJ.js +0 -1
- package/assets/useInfiniteGrid-DZnjtepZ.js +0 -1
- package/assets/useManaRate-C4EXijsl.js +0 -1
- package/assets/useTheme-DzRWFu1V.js +0 -1
|
@@ -1,787 +0,0 @@
|
|
|
1
|
-
import{u as Pe,r as h,j as e,a as tt}from"./react-BcSuIh9F.js";import{c as L,A as nt,w as st,b as ot,s,t,o as ie,q as rt,v as Be,X as Fe,Q as it,d as o,I as T,m as F,z as ye,D as J,E as at,F as lt,J as Le,K as ct,S as we,L as te,aM as dt,aN as pt}from"./index-CKryZsyO.js";import{u as ht}from"./useSecondarySales-DYRKFz6P.js";import{r as xt,a as ft,m as He}from"./mana-rate-5WVYReay.js";import{u as Ue}from"./useManaRate-C4EXijsl.js";import{g as mt,h as ut,i as gt,j as bt,k as yt,C as wt,l as jt,o as vt,m as Ct,n as $t,M as kt,p as St,E as Et,q as Tt,r as It,s as Rt,t as _t,u as zt,v as At}from"./Assets.styles-CikNDgjl.js";import{c as je,R as Nt,F as Mt,S as Wt}from"./categories-DYeriK5r.js";import{L as Pt}from"./LoadMore-CQjFLXNq.js";import{M as Bt}from"./MarketCheckout-CKG6pjiW.js";import{u as Ft}from"./useInfiniteGrid-DZnjtepZ.js";import{E as Lt}from"./ErrorNotice-D5gYmXmi.js";import{d as Ht}from"./dcl-schemas-BICTSpB5.js";import{s as Ut,G as Ot,w as Gt,S as Dt}from"./buy-gasless-Dyp24AZP.js";import{s as qt}from"./buy-D5aQviUN.js";import{i as Vt}from"./trade-encoding-Bjf-A7RZ.js";import{f as Kt}from"./errors-BnsKc9DV.js";import{J as Qt,C as Zt,B as re}from"./ethers-BcJP3Jlu.js";import{l as Jt}from"./loader-logo-BzY9EKdC.js";import{n as Xt}from"./Tooltip-BBt5hMnk.js";import{G as Yt}from"./grid.styles-BuejQ1yn.js";import"./sentry-Cmcd0bRo.js";import"./intl-CBcMB1D2.js";import"./authorizations-D9SdrCKu.js";import"./sendMetaTransaction-B3dSruz9.js";function ne(n){const r=n.source??"item",l=n.tradeId||`${n.contractAddress}-${n.tokenId??n.itemId??""}`;return`${r}:${l}`}const H="100000000000000000000",Oe=2,X=15,en=/^[a-zA-Z0-9]+$/;function ve(n){const r=n.trim();return r.length===0?{ok:!1,reason:"empty"}:en.test(r)?r.length<Oe?{ok:!1,reason:"too-short"}:r.length>X?{ok:!1,reason:"too-long"}:{ok:!0}:{ok:!1,reason:"invalid-chars"}}function tn(n){return n.replace(/[^a-zA-Z0-9]/g,"").slice(0,X)}const nn=["function available(string _subdomain) view returns (bool)"],Ce={mainnet:{rpc:"https://rpc.decentraland.org/mainnet",address:"0x2a187453064356c898cae034eaed119e1663acb8"},sepolia:{rpc:"https://rpc.decentraland.org/sepolia",address:"0x7518456ae93eb98f3e64571b689c626616bb7f30"}};function sn(){return L.chainId===Number(Ht.ChainId.MATIC_MAINNET)?Ce.mainnet:Ce.sepolia}async function on(n,r={}){var a;const{rpc:l,address:x}=sn(),m=new Qt(l),c=new Zt(x,nn,m);console.info(`[names] availability check → DCLRegistrar(${x}).available("${n}") on ${l}`);const f=await c.available(n);if((a=r.signal)!=null&&a.aborted)throw new DOMException("Aborted","AbortError");return console.info(`[names] "${n}" available=${f}`),f?"available":"taken"}const rn="https://app.across.to/api";class Ge extends Error{constructor(){super("Name registration is temporarily unavailable due to high network costs"),this.name="NameRouteCostTooHighError"}}function an(n){return ft(H,n)}async function ln(n,r,l={}){var a;const x=l.chainId??L.chainId,m=l.provider??"across",c=`${L.creditsServerUrl}/credits-name-route?name=${encodeURIComponent(r)}&chainId=${x}&provider=${m}`,f=await ot(c,{method:"GET",identity:n,metadata:{}});if(!f.ok){let p;try{p=(a=await f.json())==null?void 0:a.code}catch{}throw p==="ROUTE_COST_TOO_HIGH"?new Ge:new Error(`fetchNameCreditRoute ${f.status}`)}return f.json()}function cn(n,r){const l=re.from(n.availableAmount),m=re.from(H).sub(l);return{credits:[{value:n.amount,expiresAt:Number(n.expiresAt),salt:Vt(n.id)}],creditsSignatures:[n.signature],externalCall:{target:r.externalCall.target,selector:r.externalCall.selector,data:r.externalCall.data,expiresAt:r.externalCall.expiresAt,salt:r.externalCall.salt},customExternalCallSignature:r.customExternalCallSignature,maxUncreditedValue:m.isNegative()?"0":m.toString(),maxCreditedValue:H}}async function dn(n,r={}){const l=rn,x=r.intervalMs??1e4,m=r.maxAttempts??60;let c={status:"pending",destinationTxHash:null,actionsSucceeded:!1};for(let f=0;f<m;f++){try{const a=await fetch(`${l}/deposit/status?originChainId=137&depositTxHash=${n}`);if(a.ok){const p=await a.json(),d=(p.status??"pending").toLowerCase(),w=p.fillTx??p.fillTxnRef??null,u=p.actionsSucceeded!==!1;if(d==="filled")return{status:"filled",destinationTxHash:w,actionsSucceeded:u};if(d==="refunded"||d==="expired")return{status:d,destinationTxHash:null,actionsSucceeded:!1};c={status:"pending",destinationTxHash:w,actionsSucceeded:u}}}catch{}f<m-1&&await new Promise(a=>setTimeout(a,x))}return c}async function pn(n){const{name:r,identity:l,signer:x}=n,m=n.chainId??L.chainId,c=n.provider??"across",f=(n.beneficiary??await x.getAddress()).toLowerCase();let a=null,p=!1;console.info("[names] register start",{name:r,buyer:f,chainId:m,provider:c});try{const d=await xt(m),w=an(d);console.info("[names] step 1/6 sized reservation",{usdCents:w,manaRate:d});const u=await ln(l,r,{chainId:m,provider:c});console.info("[names] step 2/6 route fetched",{target:u.externalCall.target,selector:u.externalCall.selector,provider:u.provider,quoteId:u.quoteId});const C=await nt(l,w);if(a=C.credit.id,console.info("[names] step 3/6 credit authorized",{creditId:C.credit.id,maxCreditedValue:C.maxCreditedValue}),re.from(C.maxCreditedValue).lt(H))throw new Error("Credit under-sized for the name price");const $=cn(C.credit,u);let b;try{b=await Ut({chainId:m,buyer:f,signer:x,args:$})}catch(y){if(!(y instanceof Ot))throw y;b=await qt(m,$,x)}if(console.info("[names] step 4/6 useCredits submitted (Polygon origin tx)",{originTxHash:b}),await Gt(b),p=!0,console.info("[names] step 5/6 origin tx confirmed",{originTxHash:b}),c==="across"){const y=await dn(b,n.acrossPoll);if(console.info("[names] step 6/6 across status",y),y.status==="pending")return{status:"pending",originTxHash:b};if(y.status!=="filled"||!y.actionsSucceeded)throw new Error("The name could not be registered on Ethereum; your funds were recovered.");return{status:"registered",originTxHash:b,destinationTxHash:y.destinationTxHash}}return{status:"pending",originTxHash:b}}catch(d){if(console.error("[names] register failed — raw error:",d,{name:r,buyer:f,originConfirmed:p}),d instanceof Dt)return{status:"pending",originTxHash:d.txHash};if(a&&!p&&await st(l,[a]).catch(()=>{}),d instanceof Ge)throw d;const w=new Error(Kt(d,"Couldn't register the name. Please try again.",{sale:!0}));throw w.cause=d,w}}const hn=s.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
|
-
`,xn=s.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
|
-
`,$e=s.div`
|
|
24
|
-
display: flex;
|
|
25
|
-
align-items: flex-start;
|
|
26
|
-
justify-content: space-between;
|
|
27
|
-
gap: 12px;
|
|
28
|
-
`,ke=s.h2`
|
|
29
|
-
margin: 0;
|
|
30
|
-
font-family: ${t.font.sans};
|
|
31
|
-
font-weight: 700;
|
|
32
|
-
font-size: 22px;
|
|
33
|
-
line-height: 1.2;
|
|
34
|
-
color: ${t.colors.text};
|
|
35
|
-
`,Se=s.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
|
-
`,Ee=s.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.brandViolet};
|
|
71
|
-
}
|
|
72
|
-
`,Te=s.hr`
|
|
73
|
-
border: 0;
|
|
74
|
-
border-top: 1px solid ${t.colors.line};
|
|
75
|
-
margin: 16px 0;
|
|
76
|
-
`,Ie=s.div`
|
|
77
|
-
display: flex;
|
|
78
|
-
align-items: center;
|
|
79
|
-
gap: 16px;
|
|
80
|
-
`,Re=s.div`
|
|
81
|
-
flex: none;
|
|
82
|
-
display: grid;
|
|
83
|
-
place-items: center;
|
|
84
|
-
width: 56px;
|
|
85
|
-
height: 56px;
|
|
86
|
-
border-radius: 10px;
|
|
87
|
-
background: ${t.gradients.amethyst};
|
|
88
|
-
color: ${t.colors.white};
|
|
89
|
-
|
|
90
|
-
.ico {
|
|
91
|
-
width: 30px;
|
|
92
|
-
height: 30px;
|
|
93
|
-
}
|
|
94
|
-
`,_e=s.div`
|
|
95
|
-
flex: 1;
|
|
96
|
-
min-width: 0;
|
|
97
|
-
`,ze=s.div`
|
|
98
|
-
font-family: ${t.font.sans};
|
|
99
|
-
font-weight: 700;
|
|
100
|
-
font-size: 20px;
|
|
101
|
-
line-height: 1.3;
|
|
102
|
-
color: ${t.colors.text};
|
|
103
|
-
overflow: hidden;
|
|
104
|
-
text-overflow: ellipsis;
|
|
105
|
-
white-space: nowrap;
|
|
106
|
-
|
|
107
|
-
span {
|
|
108
|
-
font-weight: 400;
|
|
109
|
-
color: ${t.colors.muted2};
|
|
110
|
-
}
|
|
111
|
-
`,Ae=s.div`
|
|
112
|
-
font-family: ${t.font.sans};
|
|
113
|
-
font-size: 14px;
|
|
114
|
-
color: ${t.colors.muted2};
|
|
115
|
-
`,Ne=s.div`
|
|
116
|
-
flex: none;
|
|
117
|
-
display: flex;
|
|
118
|
-
align-items: center;
|
|
119
|
-
gap: 6px;
|
|
120
|
-
font-family: ${t.font.sans};
|
|
121
|
-
font-weight: 600;
|
|
122
|
-
font-size: 24px;
|
|
123
|
-
color: ${t.colors.text};
|
|
124
|
-
|
|
125
|
-
.ico {
|
|
126
|
-
width: 22px;
|
|
127
|
-
height: 22px;
|
|
128
|
-
color: ${t.colors.brandViolet};
|
|
129
|
-
}
|
|
130
|
-
`,fn=s.div`
|
|
131
|
-
margin-top: 16px;
|
|
132
|
-
padding: 16px;
|
|
133
|
-
border-radius: 12px;
|
|
134
|
-
background: #f2e7fc;
|
|
135
|
-
`,mn=s.div`
|
|
136
|
-
font-family: ${t.font.sans};
|
|
137
|
-
font-weight: 700;
|
|
138
|
-
font-size: 16px;
|
|
139
|
-
color: ${t.colors.text};
|
|
140
|
-
`,un=s.p`
|
|
141
|
-
margin: 8px 0 16px;
|
|
142
|
-
font-family: ${t.font.sans};
|
|
143
|
-
font-size: 14px;
|
|
144
|
-
line-height: 1.5;
|
|
145
|
-
color: ${t.colors.text2};
|
|
146
|
-
|
|
147
|
-
b {
|
|
148
|
-
font-weight: 700;
|
|
149
|
-
color: ${t.colors.brandViolet};
|
|
150
|
-
}
|
|
151
|
-
`,gn=s.label`
|
|
152
|
-
display: flex;
|
|
153
|
-
align-items: center;
|
|
154
|
-
gap: 8px;
|
|
155
|
-
padding: 12px 14px;
|
|
156
|
-
background: ${t.colors.white};
|
|
157
|
-
border: 1px solid ${t.colors.text};
|
|
158
|
-
border-radius: 10px;
|
|
159
|
-
cursor: text;
|
|
160
|
-
|
|
161
|
-
&:focus-within {
|
|
162
|
-
border-color: ${t.colors.magenta};
|
|
163
|
-
}
|
|
164
|
-
`,bn=s.span`
|
|
165
|
-
flex: none;
|
|
166
|
-
font-family: ${t.font.sans};
|
|
167
|
-
font-size: 18px;
|
|
168
|
-
color: ${t.colors.muted2};
|
|
169
|
-
`,yn=s.input`
|
|
170
|
-
flex: 0 1 auto;
|
|
171
|
-
min-width: 0;
|
|
172
|
-
border: 0;
|
|
173
|
-
outline: none;
|
|
174
|
-
background: transparent;
|
|
175
|
-
font-family: ${t.font.sans};
|
|
176
|
-
font-size: 16px;
|
|
177
|
-
font-weight: 600;
|
|
178
|
-
color: ${t.colors.text};
|
|
179
|
-
|
|
180
|
-
&::placeholder {
|
|
181
|
-
color: ${t.colors.muted2};
|
|
182
|
-
font-weight: 400;
|
|
183
|
-
}
|
|
184
|
-
`,wn=s.span`
|
|
185
|
-
flex: none;
|
|
186
|
-
font-family: ${t.font.sans};
|
|
187
|
-
font-size: 16px;
|
|
188
|
-
color: ${t.colors.muted2};
|
|
189
|
-
`,Me=s.button`
|
|
190
|
-
margin-top: 16px;
|
|
191
|
-
width: 100%;
|
|
192
|
-
height: 52px;
|
|
193
|
-
border: 0;
|
|
194
|
-
border-radius: 12px;
|
|
195
|
-
cursor: pointer;
|
|
196
|
-
background: ${t.gradients.amethyst};
|
|
197
|
-
color: ${t.colors.softWhite};
|
|
198
|
-
font-family: ${t.font.sans};
|
|
199
|
-
font-weight: 600;
|
|
200
|
-
font-size: 15px;
|
|
201
|
-
letter-spacing: 0.46px;
|
|
202
|
-
text-transform: uppercase;
|
|
203
|
-
|
|
204
|
-
&:hover:not(:disabled) {
|
|
205
|
-
filter: brightness(1.06);
|
|
206
|
-
}
|
|
207
|
-
&:focus-visible {
|
|
208
|
-
outline: 2px solid ${t.colors.accent};
|
|
209
|
-
outline-offset: 2px;
|
|
210
|
-
}
|
|
211
|
-
&:disabled {
|
|
212
|
-
cursor: not-allowed;
|
|
213
|
-
background: #ddc7ec;
|
|
214
|
-
color: #f4ecfa;
|
|
215
|
-
}
|
|
216
|
-
`,jn=s.div`
|
|
217
|
-
display: flex;
|
|
218
|
-
flex-direction: column;
|
|
219
|
-
align-items: flex-start;
|
|
220
|
-
gap: 20px;
|
|
221
|
-
padding: 32px 0 8px;
|
|
222
|
-
`,vn=s.img`
|
|
223
|
-
align-self: center;
|
|
224
|
-
width: 56px;
|
|
225
|
-
height: 56px;
|
|
226
|
-
`,Cn=s.div`
|
|
227
|
-
font-family: ${t.font.sans};
|
|
228
|
-
font-weight: 700;
|
|
229
|
-
font-size: 18px;
|
|
230
|
-
color: ${t.colors.text};
|
|
231
|
-
`,$n=s.div`
|
|
232
|
-
display: flex;
|
|
233
|
-
align-items: center;
|
|
234
|
-
gap: 12px;
|
|
235
|
-
width: 100%;
|
|
236
|
-
`,kn=s.div`
|
|
237
|
-
flex: 1;
|
|
238
|
-
height: 8px;
|
|
239
|
-
border-radius: 999px;
|
|
240
|
-
background: ${t.colors.chip};
|
|
241
|
-
overflow: hidden;
|
|
242
|
-
|
|
243
|
-
span {
|
|
244
|
-
display: block;
|
|
245
|
-
height: 100%;
|
|
246
|
-
width: 40%;
|
|
247
|
-
border-radius: 999px;
|
|
248
|
-
background: ${t.gradients.amethyst};
|
|
249
|
-
animation: nameProgress 1.1s ease-in-out infinite;
|
|
250
|
-
}
|
|
251
|
-
|
|
252
|
-
@keyframes nameProgress {
|
|
253
|
-
0% {
|
|
254
|
-
transform: translateX(-100%);
|
|
255
|
-
}
|
|
256
|
-
100% {
|
|
257
|
-
transform: translateX(320%);
|
|
258
|
-
}
|
|
259
|
-
}
|
|
260
|
-
`,Sn=s.span`
|
|
261
|
-
flex: none;
|
|
262
|
-
font-family: ${t.font.sans};
|
|
263
|
-
font-size: 14px;
|
|
264
|
-
color: ${t.colors.muted};
|
|
265
|
-
`,En=s.div`
|
|
266
|
-
display: flex;
|
|
267
|
-
flex-direction: column;
|
|
268
|
-
align-items: center;
|
|
269
|
-
gap: 16px;
|
|
270
|
-
padding: 24px;
|
|
271
|
-
border-radius: 12px;
|
|
272
|
-
background: #e2f5ea;
|
|
273
|
-
text-align: center;
|
|
274
|
-
`,Tn=s.div`
|
|
275
|
-
display: grid;
|
|
276
|
-
place-items: center;
|
|
277
|
-
width: 56px;
|
|
278
|
-
height: 56px;
|
|
279
|
-
border-radius: 50%;
|
|
280
|
-
background: ${t.colors.ok};
|
|
281
|
-
color: ${t.colors.white};
|
|
282
|
-
|
|
283
|
-
.ico {
|
|
284
|
-
width: 30px;
|
|
285
|
-
height: 30px;
|
|
286
|
-
}
|
|
287
|
-
`,In=s.p`
|
|
288
|
-
margin: 0;
|
|
289
|
-
font-family: ${t.font.sans};
|
|
290
|
-
font-size: 16px;
|
|
291
|
-
line-height: 1.4;
|
|
292
|
-
color: ${t.colors.text};
|
|
293
|
-
|
|
294
|
-
b {
|
|
295
|
-
font-weight: 700;
|
|
296
|
-
}
|
|
297
|
-
`,Rn=s.div`
|
|
298
|
-
display: flex;
|
|
299
|
-
gap: 16px;
|
|
300
|
-
margin-top: 20px;
|
|
301
|
-
|
|
302
|
-
${t.media.maxWidth("mobile")} {
|
|
303
|
-
flex-direction: column;
|
|
304
|
-
}
|
|
305
|
-
`,_n=s.button`
|
|
306
|
-
flex: 1;
|
|
307
|
-
height: 48px;
|
|
308
|
-
border: 1px solid ${t.colors.accent};
|
|
309
|
-
border-radius: 8px;
|
|
310
|
-
background: ${t.colors.white};
|
|
311
|
-
color: ${t.colors.accent};
|
|
312
|
-
cursor: pointer;
|
|
313
|
-
font-family: ${t.font.sans};
|
|
314
|
-
font-weight: 600;
|
|
315
|
-
font-size: 13px;
|
|
316
|
-
letter-spacing: 0.46px;
|
|
317
|
-
text-transform: uppercase;
|
|
318
|
-
|
|
319
|
-
&:hover {
|
|
320
|
-
background: rgba(105, 31, 169, 0.06);
|
|
321
|
-
}
|
|
322
|
-
&:focus-visible {
|
|
323
|
-
outline: 2px solid ${t.colors.accent};
|
|
324
|
-
outline-offset: 2px;
|
|
325
|
-
}
|
|
326
|
-
`,zn=s.a`
|
|
327
|
-
flex: 1;
|
|
328
|
-
display: inline-flex;
|
|
329
|
-
align-items: center;
|
|
330
|
-
justify-content: center;
|
|
331
|
-
height: 48px;
|
|
332
|
-
border-radius: 8px;
|
|
333
|
-
background: ${t.colors.dclRed};
|
|
334
|
-
color: ${t.colors.softWhite};
|
|
335
|
-
cursor: pointer;
|
|
336
|
-
text-decoration: none;
|
|
337
|
-
font-family: ${t.font.sans};
|
|
338
|
-
font-weight: 600;
|
|
339
|
-
font-size: 13px;
|
|
340
|
-
letter-spacing: 0.46px;
|
|
341
|
-
text-transform: uppercase;
|
|
342
|
-
|
|
343
|
-
&:hover {
|
|
344
|
-
filter: brightness(1.05);
|
|
345
|
-
}
|
|
346
|
-
&:focus-visible {
|
|
347
|
-
outline: 2px solid ${t.colors.accent};
|
|
348
|
-
outline-offset: 2px;
|
|
349
|
-
}
|
|
350
|
-
`,An=s.div`
|
|
351
|
-
display: flex;
|
|
352
|
-
align-items: flex-start;
|
|
353
|
-
gap: 12px;
|
|
354
|
-
padding: 16px;
|
|
355
|
-
margin-top: 8px;
|
|
356
|
-
border-radius: 12px;
|
|
357
|
-
background: rgba(255, 45, 85, 0.1);
|
|
358
|
-
font-family: ${t.font.sans};
|
|
359
|
-
font-size: 14px;
|
|
360
|
-
line-height: 1.5;
|
|
361
|
-
color: ${t.colors.text};
|
|
362
|
-
|
|
363
|
-
.ico {
|
|
364
|
-
width: 22px;
|
|
365
|
-
height: 22px;
|
|
366
|
-
flex: none;
|
|
367
|
-
color: ${t.colors.dclRed};
|
|
368
|
-
}
|
|
369
|
-
`;function Nn({name:n,priceCredits:r,onClose:l}){const{session:x}=ie(),{data:m,isError:c}=rt(x),f=Be(),a=Pe(),[p,d]=h.useState("confirm"),[w,u]=h.useState(""),[C,$]=h.useState(null),b=h.useRef(!1),y=w.trim().toLowerCase()===n.toLowerCase(),S=p==="completing",j=r!=null?Fe(r):"—";h.useEffect(()=>{const g=_=>{_.key==="Escape"&&!S&&l()};document.addEventListener("keydown",g);const Y=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.removeEventListener("keydown",g),document.body.style.overflow=Y}},[S,l]);async function E(){if(!(!x||!y||b.current)){b.current=!0,d("completing"),$(null);try{await pn({name:n,identity:x.identity,signer:x.signer}),J("Shop Completed Purchase",{purchase_type:"name",is_primary:!0,payment_type:"credits",value_credits:r??null}),f.invalidateQueries({queryKey:["usd-balance"]}),f.invalidateQueries({queryKey:["my-assets"]}),d("success")}catch(g){J(lt(g)?"Shop Purchase Cancelled":"Shop Purchase Failed",{step:"submit",error_code:at(g),purchase_type:"name"}),$((g==null?void 0:g.message)||o("names.errorGeneric")),d("error")}finally{b.current=!1}}}const k=p!=="success",I=it(x==null?void 0:x.providerType);return e.jsx(hn,{onClick:S?void 0:l,role:"presentation",children:e.jsxs(xn,{role:"dialog","aria-modal":"true","aria-label":o("names.buyTitle"),onClick:g=>g.stopPropagation(),children:[k&&e.jsxs(e.Fragment,{children:[e.jsxs($e,{children:[e.jsx(ke,{children:p==="error"?o("names.errorTitle"):o("names.buyTitle")}),e.jsx(Se,{onClick:l,disabled:S,"aria-label":o("buyModal.close"),children:e.jsx(T,{name:"close"})})]}),e.jsxs(Ee,{children:[o("names.myCreditsBalance")," ",e.jsx(F,{})," ",ye(m,c)]}),e.jsx(Te,{})]}),(p==="confirm"||p==="error")&&e.jsxs(e.Fragment,{children:[e.jsxs(Ie,{children:[e.jsx(Re,{"aria-hidden":!0,children:"@"}),e.jsxs(_e,{children:[e.jsxs(ze,{children:[n,e.jsx("span",{children:".dcl.eth"})]}),e.jsx(Ae,{children:o("names.subtitle")})]}),e.jsxs(Ne,{children:[e.jsx(F,{}),j]})]}),p==="error"?e.jsxs(e.Fragment,{children:[e.jsxs(An,{children:[e.jsx(T,{name:"info","aria-hidden":!0}),e.jsx("span",{children:C})]}),e.jsx(Me,{onClick:()=>d("confirm"),children:o("names.tryAgain")})]}):e.jsxs(e.Fragment,{children:[e.jsxs(fn,{children:[e.jsx(mn,{children:o("names.confirmTitle")}),e.jsx(un,{dangerouslySetInnerHTML:{__html:o("names.confirmBody",{name:`<b>@${Mn(n)}</b>`})}}),e.jsxs(gn,{children:[e.jsx(bn,{"aria-hidden":!0,children:"@"}),e.jsx(yn,{value:w,onChange:g=>u(g.target.value.replace(/[^a-zA-Z0-9]/g,"")),placeholder:"yourname","aria-label":o("names.reenterAria"),autoComplete:"off",spellCheck:!1,style:{width:`${Math.max(w.length,8)}ch`}}),e.jsx(wn,{children:".dcl.eth"})]})]}),e.jsx(Me,{onClick:()=>void E(),disabled:!y||!x,children:o("names.buyCta")})]})]}),p==="completing"&&e.jsxs(jn,{children:[e.jsx(vn,{src:Jt,alt:"",width:56,height:56}),e.jsx(Cn,{children:I?o("names.confirming"):o("names.completing")}),e.jsxs($n,{children:[e.jsx(kn,{"aria-hidden":!0,children:e.jsx("span",{})}),e.jsx(Sn,{children:"1/1"})]})]}),p==="success"&&e.jsxs(e.Fragment,{children:[e.jsxs($e,{children:[e.jsx(ke,{children:o("names.successHeaderTitle")}),e.jsx(Se,{onClick:l,"aria-label":o("buyModal.close"),children:e.jsx(T,{name:"close"})})]}),e.jsxs(Ee,{children:[o("names.myCreditsBalance")," ",e.jsx(F,{})," ",ye(m,c)]}),e.jsx(Te,{}),e.jsxs(En,{children:[e.jsx(Tn,{"aria-hidden":!0,children:e.jsx(T,{name:"check"})}),e.jsxs(In,{children:[e.jsx("b",{children:o("names.successBannerBold")})," ",o("names.successBannerRest")]})]}),e.jsxs(Ie,{style:{marginTop:20},children:[e.jsx(Re,{"aria-hidden":!0,children:"@"}),e.jsxs(_e,{children:[e.jsxs(ze,{children:[n,e.jsx("span",{children:".dcl.eth"})]}),e.jsx(Ae,{children:o("names.subtitle")})]}),e.jsxs(Ne,{children:[e.jsx(F,{}),j]})]}),e.jsxs(Rn,{children:[e.jsx(_n,{onClick:()=>{l(),a("/my-assets")},children:o("names.myItems")}),e.jsx(zn,{href:L.profileUrl,target:"_blank",rel:"noopener noreferrer",children:o("names.assignToAvatar")})]})]})]})})}function Mn(n){return n.replace(/[&<>"']/g,r=>({"&":"&","<":"<",">":">",'"':""","'":"'"})[r])}const Wn="https://cdn.decentraland.org/@dcl/shop/0.1.0-30412251367.commit-a3b4797/assets/identity-B4DXDuJP.webp",Pn="https://cdn.decentraland.org/@dcl/shop/0.1.0-30412251367.commit-a3b4797/assets/world-B-9aPlxu.webp",Bn="https://cdn.decentraland.org/@dcl/shop/0.1.0-30412251367.commit-a3b4797/assets/invite-BfwIhP2C.webp",Fn="https://cdn.decentraland.org/@dcl/shop/0.1.0-30412251367.commit-a3b4797/assets/governance-DnazlIjy.webp",Ln=s.div`
|
|
370
|
-
width: 100%;
|
|
371
|
-
min-width: 0;
|
|
372
|
-
`,Hn=s.nav`
|
|
373
|
-
display: flex;
|
|
374
|
-
align-items: center;
|
|
375
|
-
gap: 6px;
|
|
376
|
-
margin: 4px 0 16px;
|
|
377
|
-
font-family: ${t.font.sans};
|
|
378
|
-
font-size: 12px;
|
|
379
|
-
line-height: 1;
|
|
380
|
-
color: ${t.colors.muted};
|
|
381
|
-
`,Un=s.button`
|
|
382
|
-
border: 0;
|
|
383
|
-
background: none;
|
|
384
|
-
padding: 0;
|
|
385
|
-
cursor: pointer;
|
|
386
|
-
font: inherit;
|
|
387
|
-
color: ${t.colors.muted};
|
|
388
|
-
|
|
389
|
-
&:hover {
|
|
390
|
-
text-decoration: underline;
|
|
391
|
-
}
|
|
392
|
-
&:focus-visible {
|
|
393
|
-
outline: 2px solid ${t.colors.accent};
|
|
394
|
-
outline-offset: 2px;
|
|
395
|
-
}
|
|
396
|
-
`,On=s.span`
|
|
397
|
-
font-weight: 700;
|
|
398
|
-
color: ${t.colors.muted};
|
|
399
|
-
`,Gn=s.div`
|
|
400
|
-
display: flex;
|
|
401
|
-
flex-direction: column;
|
|
402
|
-
gap: 48px;
|
|
403
|
-
padding-bottom: 48px;
|
|
404
|
-
background: #ecdbfd;
|
|
405
|
-
border-radius: ${t.radius.banner};
|
|
406
|
-
overflow: hidden;
|
|
407
|
-
|
|
408
|
-
${t.media.maxWidth("mobile")} {
|
|
409
|
-
gap: 32px;
|
|
410
|
-
padding-bottom: 32px;
|
|
411
|
-
}
|
|
412
|
-
`,Dn=s.div`
|
|
413
|
-
position: relative;
|
|
414
|
-
border-radius: ${t.radius.banner};
|
|
415
|
-
overflow: hidden;
|
|
416
|
-
padding: 88px 48px;
|
|
417
|
-
display: flex;
|
|
418
|
-
flex-direction: column;
|
|
419
|
-
align-items: center;
|
|
420
|
-
gap: 48px;
|
|
421
|
-
text-align: center;
|
|
422
|
-
background: radial-gradient(120% 95% at 50% 118%, #d13bd6 0%, #a026b0 28%, #6a1b9c 58%, #4a1173 100%);
|
|
423
|
-
|
|
424
|
-
${t.media.maxWidth("mobile")} {
|
|
425
|
-
padding: 40px 20px;
|
|
426
|
-
gap: 28px;
|
|
427
|
-
}
|
|
428
|
-
`,qn=s.div`
|
|
429
|
-
display: flex;
|
|
430
|
-
flex-direction: column;
|
|
431
|
-
align-items: center;
|
|
432
|
-
gap: 12px;
|
|
433
|
-
`,Vn=s.h1`
|
|
434
|
-
margin: 0;
|
|
435
|
-
font-family: ${t.font.sans};
|
|
436
|
-
font-weight: 600;
|
|
437
|
-
font-size: 40px;
|
|
438
|
-
line-height: 1.167;
|
|
439
|
-
color: ${t.colors.white};
|
|
440
|
-
|
|
441
|
-
${t.media.maxWidth("mobile")} {
|
|
442
|
-
font-size: 26px;
|
|
443
|
-
}
|
|
444
|
-
`,Kn=s.p`
|
|
445
|
-
margin: 0;
|
|
446
|
-
max-width: 760px;
|
|
447
|
-
font-family: ${t.font.sans};
|
|
448
|
-
font-weight: 500;
|
|
449
|
-
font-size: 24px;
|
|
450
|
-
line-height: 1.334;
|
|
451
|
-
color: #ecebed;
|
|
452
|
-
|
|
453
|
-
${t.media.maxWidth("mobile")} {
|
|
454
|
-
font-size: 16px;
|
|
455
|
-
}
|
|
456
|
-
`,Qn=s.div`
|
|
457
|
-
width: min(785px, 100%);
|
|
458
|
-
display: flex;
|
|
459
|
-
flex-direction: column;
|
|
460
|
-
gap: 12px;
|
|
461
|
-
`,Zn=s.div`
|
|
462
|
-
position: relative;
|
|
463
|
-
`,Jn=s("div",Xt("invalid"))`
|
|
464
|
-
display: flex;
|
|
465
|
-
align-items: center;
|
|
466
|
-
gap: 8px;
|
|
467
|
-
padding: 8px 8px 8px 16px;
|
|
468
|
-
background: ${t.colors.softWhite};
|
|
469
|
-
border: 1.5px solid ${({invalid:n})=>n?t.colors.dclRed:t.colors.line};
|
|
470
|
-
border-radius: 20px;
|
|
471
|
-
|
|
472
|
-
&:focus-within {
|
|
473
|
-
border-color: ${({invalid:n})=>n?t.colors.dclRed:t.colors.magenta};
|
|
474
|
-
}
|
|
475
|
-
|
|
476
|
-
${t.media.maxWidth("mobile")} {
|
|
477
|
-
border-radius: 16px;
|
|
478
|
-
}
|
|
479
|
-
`,Xn=s.span`
|
|
480
|
-
position: absolute;
|
|
481
|
-
left: -9999px;
|
|
482
|
-
top: 0;
|
|
483
|
-
visibility: hidden;
|
|
484
|
-
pointer-events: none;
|
|
485
|
-
white-space: pre;
|
|
486
|
-
font-family: ${t.font.sans};
|
|
487
|
-
font-size: 20px;
|
|
488
|
-
font-weight: 600;
|
|
489
|
-
line-height: 1.6;
|
|
490
|
-
|
|
491
|
-
${t.media.maxWidth("mobile")} {
|
|
492
|
-
font-size: 16px;
|
|
493
|
-
}
|
|
494
|
-
`,Yn=s.div`
|
|
495
|
-
position: absolute;
|
|
496
|
-
top: calc(100% + 8px);
|
|
497
|
-
left: 0;
|
|
498
|
-
right: 0;
|
|
499
|
-
z-index: 2;
|
|
500
|
-
display: flex;
|
|
501
|
-
align-items: center;
|
|
502
|
-
gap: 8px;
|
|
503
|
-
padding: 8px 12px;
|
|
504
|
-
border-radius: 8px;
|
|
505
|
-
background: #ffcdd4;
|
|
506
|
-
color: #ec303a;
|
|
507
|
-
font-family: ${t.font.sans};
|
|
508
|
-
font-size: 14px;
|
|
509
|
-
font-weight: 500;
|
|
510
|
-
line-height: 1.2;
|
|
511
|
-
text-align: left;
|
|
512
|
-
|
|
513
|
-
${t.media.maxWidth("mobile")} {
|
|
514
|
-
position: static;
|
|
515
|
-
margin-top: 8px;
|
|
516
|
-
align-items: flex-start;
|
|
517
|
-
flex-wrap: wrap;
|
|
518
|
-
}
|
|
519
|
-
`,es=s.a`
|
|
520
|
-
display: inline-flex;
|
|
521
|
-
align-items: center;
|
|
522
|
-
gap: 2px;
|
|
523
|
-
margin-left: auto;
|
|
524
|
-
color: #ec303a;
|
|
525
|
-
font-weight: 600;
|
|
526
|
-
text-decoration: underline;
|
|
527
|
-
text-transform: uppercase;
|
|
528
|
-
white-space: nowrap;
|
|
529
|
-
|
|
530
|
-
${t.media.maxWidth("mobile")} {
|
|
531
|
-
margin-left: 0;
|
|
532
|
-
}
|
|
533
|
-
`,ts=s.label`
|
|
534
|
-
flex: 1;
|
|
535
|
-
min-width: 0;
|
|
536
|
-
display: flex;
|
|
537
|
-
align-items: center;
|
|
538
|
-
gap: 0;
|
|
539
|
-
cursor: text;
|
|
540
|
-
overflow: hidden;
|
|
541
|
-
`,ns=s.span`
|
|
542
|
-
flex: none;
|
|
543
|
-
margin-right: 8px;
|
|
544
|
-
font-family: ${t.font.sans};
|
|
545
|
-
font-size: 26px;
|
|
546
|
-
font-weight: 500;
|
|
547
|
-
line-height: 1;
|
|
548
|
-
color: ${t.colors.muted2};
|
|
549
|
-
|
|
550
|
-
${t.media.maxWidth("mobile")} {
|
|
551
|
-
font-size: 20px;
|
|
552
|
-
}
|
|
553
|
-
`,ss=s.input`
|
|
554
|
-
flex: 0 1 auto;
|
|
555
|
-
min-width: 0;
|
|
556
|
-
max-width: 100%;
|
|
557
|
-
border: 0;
|
|
558
|
-
outline: none;
|
|
559
|
-
background: transparent;
|
|
560
|
-
font-family: ${t.font.sans};
|
|
561
|
-
font-size: 20px;
|
|
562
|
-
font-weight: 600;
|
|
563
|
-
line-height: 1.6;
|
|
564
|
-
color: ${t.colors.text};
|
|
565
|
-
padding: 0;
|
|
566
|
-
|
|
567
|
-
&::placeholder {
|
|
568
|
-
color: ${t.colors.muted1};
|
|
569
|
-
font-weight: 400;
|
|
570
|
-
}
|
|
571
|
-
|
|
572
|
-
${t.media.maxWidth("mobile")} {
|
|
573
|
-
font-size: 16px;
|
|
574
|
-
}
|
|
575
|
-
`,os=s.span`
|
|
576
|
-
flex: none;
|
|
577
|
-
margin-left: 2px;
|
|
578
|
-
font-family: ${t.font.sans};
|
|
579
|
-
font-size: 20px;
|
|
580
|
-
font-weight: 400;
|
|
581
|
-
line-height: 1.6;
|
|
582
|
-
color: ${t.colors.muted1};
|
|
583
|
-
|
|
584
|
-
${t.media.maxWidth("mobile")} {
|
|
585
|
-
font-size: 16px;
|
|
586
|
-
}
|
|
587
|
-
`,rs=s.span`
|
|
588
|
-
flex: none;
|
|
589
|
-
font-family: ${t.font.sans};
|
|
590
|
-
font-size: 13px;
|
|
591
|
-
color: ${t.colors.muted2};
|
|
592
|
-
white-space: nowrap;
|
|
593
|
-
`,De=s.button`
|
|
594
|
-
flex: none;
|
|
595
|
-
display: inline-flex;
|
|
596
|
-
align-items: center;
|
|
597
|
-
justify-content: center;
|
|
598
|
-
gap: 8px;
|
|
599
|
-
height: 52px;
|
|
600
|
-
padding: 0 24px;
|
|
601
|
-
border: 0;
|
|
602
|
-
border-radius: 12px;
|
|
603
|
-
cursor: pointer;
|
|
604
|
-
background: ${t.gradients.cerise};
|
|
605
|
-
color: ${t.colors.softWhite};
|
|
606
|
-
font-family: ${t.font.sans};
|
|
607
|
-
font-weight: 600;
|
|
608
|
-
font-size: 15px;
|
|
609
|
-
letter-spacing: 0.46px;
|
|
610
|
-
line-height: 24px;
|
|
611
|
-
text-transform: uppercase;
|
|
612
|
-
|
|
613
|
-
&:hover:not(:disabled) {
|
|
614
|
-
filter: brightness(1.05);
|
|
615
|
-
}
|
|
616
|
-
&:focus-visible {
|
|
617
|
-
outline: 2px solid ${t.colors.white};
|
|
618
|
-
outline-offset: 2px;
|
|
619
|
-
}
|
|
620
|
-
&:disabled {
|
|
621
|
-
cursor: not-allowed;
|
|
622
|
-
background: #e7c8e9;
|
|
623
|
-
color: #fbe9fb;
|
|
624
|
-
}
|
|
625
|
-
|
|
626
|
-
${t.media.maxWidth("mobile")} {
|
|
627
|
-
display: none;
|
|
628
|
-
}
|
|
629
|
-
`,is=s(De)`
|
|
630
|
-
display: none;
|
|
631
|
-
|
|
632
|
-
${t.media.maxWidth("mobile")} {
|
|
633
|
-
display: inline-flex;
|
|
634
|
-
width: 100%;
|
|
635
|
-
height: 48px;
|
|
636
|
-
border-radius: 12px;
|
|
637
|
-
}
|
|
638
|
-
`,as=s.span`
|
|
639
|
-
display: inline-flex;
|
|
640
|
-
align-items: center;
|
|
641
|
-
gap: 4px;
|
|
642
|
-
font-weight: 600;
|
|
643
|
-
|
|
644
|
-
.ico {
|
|
645
|
-
width: 16px;
|
|
646
|
-
height: 16px;
|
|
647
|
-
}
|
|
648
|
-
`,se=s.div`
|
|
649
|
-
display: flex;
|
|
650
|
-
align-items: center;
|
|
651
|
-
gap: 8px;
|
|
652
|
-
padding: 8px 14px;
|
|
653
|
-
border-radius: 8px;
|
|
654
|
-
font-family: ${t.font.sans};
|
|
655
|
-
font-size: 13px;
|
|
656
|
-
font-weight: 500;
|
|
657
|
-
text-align: left;
|
|
658
|
-
|
|
659
|
-
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)"};
|
|
660
|
-
color: ${({tone:n})=>n==="error"?t.colors.dclRed:n==="ok"?"#0f7a4f":"#ecebed"};
|
|
661
|
-
|
|
662
|
-
.ico {
|
|
663
|
-
width: 16px;
|
|
664
|
-
height: 16px;
|
|
665
|
-
flex: none;
|
|
666
|
-
}
|
|
667
|
-
`,ls=s.section`
|
|
668
|
-
display: flex;
|
|
669
|
-
flex-direction: column;
|
|
670
|
-
gap: 48px;
|
|
671
|
-
padding: 0 48px;
|
|
672
|
-
|
|
673
|
-
${t.media.maxWidth("mobile")} {
|
|
674
|
-
gap: 32px;
|
|
675
|
-
padding: 0 20px;
|
|
676
|
-
}
|
|
677
|
-
`,cs=s.div`
|
|
678
|
-
display: flex;
|
|
679
|
-
flex-direction: column;
|
|
680
|
-
align-items: center;
|
|
681
|
-
gap: 24px;
|
|
682
|
-
`,ds=s.h2`
|
|
683
|
-
margin: 0;
|
|
684
|
-
text-align: center;
|
|
685
|
-
font-family: ${t.font.sans};
|
|
686
|
-
font-weight: 600;
|
|
687
|
-
font-size: 32px;
|
|
688
|
-
line-height: 1.167;
|
|
689
|
-
color: ${t.colors.text2};
|
|
690
|
-
|
|
691
|
-
${t.media.maxWidth("mobile")} {
|
|
692
|
-
font-size: 22px;
|
|
693
|
-
}
|
|
694
|
-
`,ps=s.p`
|
|
695
|
-
margin: 0;
|
|
696
|
-
max-width: 907px;
|
|
697
|
-
text-align: center;
|
|
698
|
-
font-family: ${t.font.sans};
|
|
699
|
-
font-weight: 400;
|
|
700
|
-
font-size: 20px;
|
|
701
|
-
line-height: 1.57;
|
|
702
|
-
color: ${t.colors.text};
|
|
703
|
-
|
|
704
|
-
${t.media.maxWidth("mobile")} {
|
|
705
|
-
font-size: 16px;
|
|
706
|
-
}
|
|
707
|
-
`,hs=s.div`
|
|
708
|
-
display: grid;
|
|
709
|
-
grid-template-columns: repeat(4, 1fr);
|
|
710
|
-
gap: 24px;
|
|
711
|
-
align-items: stretch;
|
|
712
|
-
|
|
713
|
-
${t.media.maxWidth("lg")} {
|
|
714
|
-
grid-template-columns: repeat(2, 1fr);
|
|
715
|
-
}
|
|
716
|
-
${t.media.maxWidth("mobile")} {
|
|
717
|
-
grid-template-columns: 1fr;
|
|
718
|
-
}
|
|
719
|
-
`,q=s.article`
|
|
720
|
-
min-width: 0;
|
|
721
|
-
display: flex;
|
|
722
|
-
flex-direction: column;
|
|
723
|
-
background: ${t.colors.white};
|
|
724
|
-
border: 0.25px solid ${t.colors.muted2};
|
|
725
|
-
border-radius: ${t.radius.card};
|
|
726
|
-
overflow: hidden;
|
|
727
|
-
`,V=s.img`
|
|
728
|
-
display: block;
|
|
729
|
-
width: 100%;
|
|
730
|
-
aspect-ratio: 388 / 235;
|
|
731
|
-
object-fit: cover;
|
|
732
|
-
`,K=s.div`
|
|
733
|
-
flex: 1;
|
|
734
|
-
display: flex;
|
|
735
|
-
flex-direction: column;
|
|
736
|
-
gap: 6px;
|
|
737
|
-
padding: 12px 16px;
|
|
738
|
-
`,Q=s.h3`
|
|
739
|
-
margin: 0;
|
|
740
|
-
font-family: ${t.font.sans};
|
|
741
|
-
font-weight: 700;
|
|
742
|
-
font-size: 20px;
|
|
743
|
-
line-height: 1.57;
|
|
744
|
-
text-transform: uppercase;
|
|
745
|
-
color: ${t.colors.text};
|
|
746
|
-
`,Z=s.p`
|
|
747
|
-
margin: 0;
|
|
748
|
-
font-family: ${t.font.sans};
|
|
749
|
-
font-weight: 400;
|
|
750
|
-
font-size: 14px;
|
|
751
|
-
line-height: 1.57;
|
|
752
|
-
color: ${t.colors.text};
|
|
753
|
-
`,xs=s.span`
|
|
754
|
-
font-weight: 600;
|
|
755
|
-
color: ${t.colors.accent};
|
|
756
|
-
`,We=s.a`
|
|
757
|
-
display: inline-flex;
|
|
758
|
-
align-items: center;
|
|
759
|
-
gap: 2px;
|
|
760
|
-
margin-top: auto;
|
|
761
|
-
font-family: ${t.font.sans};
|
|
762
|
-
font-weight: 500;
|
|
763
|
-
font-size: 14px;
|
|
764
|
-
line-height: 30px;
|
|
765
|
-
color: ${t.colors.accent};
|
|
766
|
-
text-decoration: underline;
|
|
767
|
-
|
|
768
|
-
&:focus-visible {
|
|
769
|
-
outline: 2px solid ${t.colors.accent};
|
|
770
|
-
outline-offset: 2px;
|
|
771
|
-
}
|
|
772
|
-
|
|
773
|
-
.ico {
|
|
774
|
-
width: 13px;
|
|
775
|
-
height: 13px;
|
|
776
|
-
}
|
|
777
|
-
`,fs=s.span`
|
|
778
|
-
position: absolute;
|
|
779
|
-
width: 1px;
|
|
780
|
-
height: 1px;
|
|
781
|
-
padding: 0;
|
|
782
|
-
margin: -1px;
|
|
783
|
-
overflow: hidden;
|
|
784
|
-
clip: rect(0, 0, 0, 0);
|
|
785
|
-
white-space: nowrap;
|
|
786
|
-
border: 0;
|
|
787
|
-
`,ms="https://docs.decentraland.org/creator/worlds/about/",us="https://governance.decentraland.org";function gs(n){const r=typeof window<"u"?window.location.hostname:"";return`${r.endsWith("decentraland.org")?"https://decentraland.org":r.endsWith("decentraland.today")?"https://decentraland.today":"https://decentraland.zone"}/marketplace/names/browse?search=${encodeURIComponent(n)}`}function bs({onBack:n}){Le({title:o("seo.names.title"),description:o("seo.names.description")});const{session:r,signIn:l}=ie(),{data:x}=Ue(),m=x?He(H,x):null,[c,f]=h.useState(""),[a,p]=h.useState("idle"),[d,w]=h.useState(!1),u=h.useRef(null),[C,$]=h.useState(void 0);h.useLayoutEffect(()=>{u.current&&$(u.current.offsetWidth)},[c]),h.useEffect(()=>{if(!ve(c).ok){p(c.length===0?"idle":"invalid");return}p("checking");const k=new AbortController,I=setTimeout(()=>{(async()=>{try{const g=await on(c,{signal:k.signal});p(g)}catch(g){if((g==null?void 0:g.name)==="AbortError")return;p("error")}})()},400);return()=>{clearTimeout(I),k.abort()}},[c]);const b=ve(c),y=b.ok&&(a==="available"||a==="error");function S(){if(y){if(!r){l();return}w(!0)}}const j=e.jsxs(e.Fragment,{children:[o("names.claim"),m!=null?e.jsxs(as,{children:[e.jsx(F,{}),Fe(m)]}):null]});return e.jsxs(Ln,{"data-testid":"names-page",children:[e.jsxs(Hn,{"aria-label":o("names.breadcrumbAria"),children:[e.jsx(Un,{onClick:n,children:o("names.breadcrumbCollectibles")}),e.jsx("span",{"aria-hidden":!0,children:">"}),e.jsx(On,{children:o("names.breadcrumbCurrent")})]}),e.jsxs(Gn,{children:[e.jsxs(Dn,{children:[e.jsxs(qn,{children:[e.jsx(Vn,{children:o("names.heroTitle")}),e.jsx(Kn,{children:o("names.heroSubtitle")})]}),e.jsxs(Qn,{children:[e.jsxs(Zn,{children:[e.jsxs(Jn,{invalid:a==="taken",children:[e.jsxs(ts,{children:[e.jsx(ns,{"aria-hidden":!0,children:"@"}),e.jsx(ss,{value:c,onChange:E=>f(tn(E.target.value)),placeholder:o("names.inputPlaceholder"),"aria-label":o("names.inputAria"),autoComplete:"off",spellCheck:!1,maxLength:X,style:{width:C!=null?`${C}px`:void 0}}),e.jsx(Xn,{ref:u,"aria-hidden":!0,children:c||o("names.inputPlaceholder")}),e.jsx(os,{children:o("names.suffix")})]}),c.length>0?e.jsxs(rs,{"aria-hidden":!0,children:[c.length,"/",X]}):null,e.jsx(De,{onClick:S,disabled:!y,"data-testid":"names-claim",children:j})]}),a==="taken"?e.jsxs(Yn,{role:"status","data-testid":"names-taken",children:[e.jsx(T,{name:"info",size:16,"aria-hidden":!0}),e.jsx("span",{children:o("names.taken")}),e.jsxs(es,{href:gs(c),target:"_blank",rel:"noopener noreferrer",children:[o("names.takenMakeOffer"),e.jsx(T,{name:"external-link",size:13,"aria-hidden":!0})]})]}):null]}),e.jsx(is,{onClick:S,disabled:!y,children:j}),a==="checking"?e.jsx(se,{tone:"muted",role:"status","data-testid":"names-checking",children:o("names.checking")}):a==="error"?e.jsx(se,{tone:"muted",role:"status",children:o("names.checkError")}):a==="invalid"&&!b.ok&&b.reason==="too-short"?e.jsx(se,{tone:"muted",role:"status",children:o("names.tooShort",{min:Oe})}):null,e.jsx(fs,{role:"status","aria-live":"polite",children:a==="available"?o("names.available",{name:c}):""})]})]}),e.jsxs(ls,{children:[e.jsxs(cs,{children:[e.jsx(ds,{children:o("names.whyTitle")}),e.jsx(ps,{children:o("names.whyIntro")})]}),e.jsxs(hs,{children:[e.jsxs(q,{children:[e.jsx(V,{src:Wn,alt:""}),e.jsxs(K,{children:[e.jsx(Q,{children:o("names.why1Title")}),e.jsx(Z,{children:o("names.why1")})]})]}),e.jsxs(q,{children:[e.jsx(V,{src:Pn,alt:""}),e.jsxs(K,{children:[e.jsx(Q,{children:o("names.why2Title")}),e.jsxs(Z,{children:[o("names.why2")," ",e.jsx(xs,{children:o("names.why2Address")})]}),e.jsxs(We,{href:ms,target:"_blank",rel:"noopener noreferrer",children:[o("names.learnMore"),e.jsx(T,{name:"external-link","aria-hidden":!0})]})]})]}),e.jsxs(q,{children:[e.jsx(V,{src:Bn,alt:""}),e.jsxs(K,{children:[e.jsx(Q,{children:o("names.why3Title")}),e.jsx(Z,{children:o("names.why3")})]})]}),e.jsxs(q,{children:[e.jsx(V,{src:Fn,alt:""}),e.jsxs(K,{children:[e.jsx(Q,{children:o("names.why4Title")}),e.jsx(Z,{children:o("names.why4")}),e.jsxs(We,{href:us,target:"_blank",rel:"noopener noreferrer",children:[o("names.learnMore"),e.jsx(T,{name:"external-link","aria-hidden":!0})]})]})]})]})]})]}),d?e.jsx(Nn,{name:c,priceCredits:m,onClose:()=>w(!1)}):null]})}const ys="data:image/svg+xml,%3csvg%20width='101'%20height='101'%20viewBox='0%200%20101%20101'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M42.4493%2040.9855L30.7394%2052.6954'%20stroke='%23FF5A57'%20stroke-width='3.15625'%20stroke-linecap='round'/%3e%3cpath%20d='M30.7391%2040.9855L42.449%2052.6954'%20stroke='%23FF5A57'%20stroke-width='3.15625'%20stroke-linecap='round'/%3e%3cpath%20d='M36.2621%2071.0604C29.6047%2071.0604%2023.9709%2068.7542%2019.3608%2064.1416C14.7507%2059.5291%2012.4445%2053.8953%2012.442%2047.2404C12.4396%2040.5854%2014.7459%2034.9516%2019.3608%2030.3391C23.9758%2025.7266%2029.6096%2023.4203%2036.2621%2023.4203C42.9146%2023.4203%2048.5496%2025.7266%2053.167%2030.3391C57.7844%2034.9516%2060.0895%2040.5854%2060.0822%2047.2404C60.0822%2049.9277%2059.6546%2052.4624%2058.7995%2054.8445C57.9445%2057.2265%2056.784%2059.3336%2055.3181%2061.1659L75.84%2081.6878C76.5119%2082.3597%2076.8478%2083.2148%2076.8478%2084.2531C76.8478%2085.2914%2076.5119%2086.1465%2075.84%2086.8183C75.1682%2087.4902%2074.3131%2087.8261%2073.2748%2087.8261C72.2365%2087.8261%2071.3814%2087.4902%2070.7096%2086.8183L50.1877%2066.2964C48.3554%2067.7623%2046.2482%2068.9227%2043.8662%2069.7778C41.4842%2070.6329%2038.9495%2071.0604%2036.2621%2071.0604ZM36.2621%2063.7312C40.8429%2063.7312%2044.7372%2062.1285%2047.9449%2058.9232C51.1527%2055.7179%2052.7554%2051.8236%2052.7529%2047.2404C52.7505%2042.6571%2051.1478%2038.7641%2047.9449%2035.5612C44.742%2032.3583%2040.8478%2030.7544%2036.2621%2030.7495C31.6764%2030.7447%2027.7834%2032.3485%2024.5829%2035.5612C21.3825%2038.7739%2019.7786%2042.6669%2019.7713%2047.2404C19.764%2051.8138%2021.3678%2055.7081%2024.5829%2058.9232C27.798%2062.1383%2031.6911%2063.7409%2036.2621%2063.7312Z'%20fill='url(%23paint0_linear_search_empty)'/%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_search_empty'%20x1='10.4127'%20y1='55.6273'%20x2='124.009'%20y2='44.925'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23FF2D55'/%3e%3cstop%20offset='1'%20stop-color='%23FFBC5B'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e",oe=48;function ws(n){return{tradeId:n.tradeId??n.id,listingType:"primary",contractAddress:n.contractAddress,itemId:n.itemId??"",name:n.name,thumbnail:n.thumbnail,rarity:n.rarity,category:n.category,wearableCategory:n.wearableCategory??null,creator:n.creator,manaWei:n.manaWei??"0",available:1,network:n.network,chainId:n.chainId,createdAt:0}}function Ds(){const[n]=tt(),r=Pe(),l=(n.get("q")??"").trim().toLowerCase(),x=Be(),{session:m,signIn:c}=ie(),f=(n.get("q")??"").trim();Le({title:f?o("seo.collectibles.searchTitle",{query:f}):o("seo.collectibles.title"),description:o("seo.collectibles.description")});const[a,p]=h.useState("wearable"),[d,w]=h.useState(null),[u,C]=h.useState([]),[$,b]=h.useState(""),[y,S]=h.useState(""),[j,E]=h.useState("on_sale"),[k,I]=h.useState(!1),[g,Y]=h.useState("newest"),[_,A]=h.useState(!1),[ae,ee]=h.useState(null);h.useEffect(()=>{if(!_)return;const i=B=>{B.key==="Escape"&&A(!1)};document.addEventListener("keydown",i);const v=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.removeEventListener("keydown",i),document.body.style.overflow=v}},[_]);const U=j==="on_sale",N=$&&!Number.isNaN(Number($))?Number($):void 0,M=y&&!Number.isNaN(Number(y))?Number(y):void 0,qe=ht(),le=d?Wt[d]:void 0,ce=(je.find(i=>i.key===g)??je[0]).server,de={category:a,rarities:u.length?u:void 0,wearableCategories:le,minPriceCredits:N,maxPriceCredits:M,search:l||void 0,sortBy:ce,isSmart:k||void 0,onSale:!0,listingType:qe?void 0:"primary"},pe={category:a,rarities:u.length?u:void 0,wearableCategories:le,search:l||void 0,sortBy:ce,isWearableSmart:k||void 0,isOnSale:j==="not_for_sale"?!1:void 0},{items:W,total:he,isLoading:R,isPlaceholderData:z,error:xe,hasNextPage:Ve,isFetchingNextPage:fe,fetchNextPage:Ke}=Ft(U?["shop-items",de]:["catalog-items",pe],i=>U?dt({...de,first:oe,skip:i}):pt({...pe,first:oe,skip:i}),{enabled:a!=="names"}),O=he,me=R||z,Qe=R?15:Math.min(Math.max(W.length,1),oe),{data:G,isError:Ze}=Ue(),Je=i=>G&&i.manaWei?He(i.manaWei,G):null,ue=h.useRef(null);h.useEffect(()=>{R||z||!l||ue.current===l||(ue.current=l,J("Shop Searched",{query:l,result_count:O}))},[l,R,z,O]);const D=h.useRef("__init__");h.useEffect(()=>{if(R||z)return;const i=JSON.stringify({category:a,subCategory:d,rarities:u,min:N,max:M,sort:g,status:j,smart:k});if(D.current==="__init__"||D.current===i){D.current=i;return}D.current=i,J("Shop Applied Filter",{filters:{category:a,sub_category:d,rarities:u,min_price_credits:N??null,max_price_credits:M??null,status:j,smart:k,sort:g},result_count:O})},[a,d,u,N,M,g,j,k,R,z,O]);function ge(i){p(i),w(null)}function be(i){C(v=>v.includes(i)?v.filter(B=>B!==i):[...v,i])}function Xe(){p("wearable"),w(null),C([]),b(""),S(""),E("on_sale"),I(!1)}function Ye(i){const v=W.find(B=>B.id===i.id);if(!(!v||v.source!=="legacy"||!v.manaWei)){if(!m){c();return}ee(ws(v))}}function et(){x.invalidateQueries({queryKey:["shop-items"]})}const P=[];(N!=null||M!=null)&&P.push({key:"price",label:o("filter.price"),onRemove:()=>{b(""),S("")}});for(const i of Nt)u.includes(i)&&P.push({key:`rarity-${i}`,label:ct(i),onRemove:()=>be(i)});return k&&P.push({key:"smart",label:o("filter.smart"),onRemove:()=>I(!1)}),j!=="on_sale"&&P.push({key:"status",label:j==="all"?o("filter.statusAll"):o("filter.notForSale"),onRemove:()=>E("on_sale")}),e.jsxs(mt,{"data-testid":"browse",children:[a!=="names"&&e.jsxs(e.Fragment,{children:[_?e.jsx(ut,{onClick:()=>A(!1),"aria-hidden":!0}):null,e.jsxs(gt,{"data-open":_||void 0,"data-testid":"browse-sidebar",children:[e.jsxs(bt,{children:[e.jsx(yt,{children:o("assets.filters")}),e.jsx(wt,{onClick:()=>A(!1),"aria-label":o("assets.closeFilters"),children:"✕"})]}),e.jsx(jt,{children:e.jsx(vt,{category:a,subCategory:d,onCategory:ge,onSub:w,priceMin:$,priceMax:y,onPriceMin:b,onPriceMax:S,rarities:u,onToggleRarity:be,status:j,onStatus:E,smart:k,onSmart:I})}),e.jsx(Ct,{children:e.jsx($t,{type:"button",onClick:()=>A(!1),children:o("assets.showItems")})})]})]}),e.jsx(kt,{children:a==="names"?e.jsx(bs,{onBack:()=>ge("wearable")}):e.jsxs(e.Fragment,{children:[e.jsx(Mt,{sort:g,onSort:Y,total:he,loading:R||z,query:l,onOpenFilters:()=>A(!0),chips:P,onClearChips:Xe}),Ze&&U&&W.some(i=>i.source==="legacy")?e.jsx(St,{"data-variant":"warn",children:o("assets.marketUnavailable")}):null,xe?e.jsx(Lt,{message:o("assets.loadError"),testId:"browse-error"}):null,!me&&W.length===0&&!xe?e.jsxs(Et,{"data-testid":"browse-empty",children:[e.jsx(Tt,{src:ys,alt:""}),e.jsxs(It,{children:[e.jsx(Rt,{children:o("assets.empty.title")}),e.jsx(_t,{children:f?e.jsxs(e.Fragment,{children:[o("assets.empty.searchBefore"),e.jsx("b",{children:f}),o("assets.empty.searchAfter")]}):o("assets.empty.filters")})]}),e.jsx(zt,{children:e.jsx(At,{type:"button",onClick:()=>r("/overview"),children:o("assets.empty.cta")})})]}):e.jsxs(e.Fragment,{children:[e.jsx(Yt,{"data-testid":"grid",children:me?e.jsx(we,{count:Qe}):e.jsxs(e.Fragment,{children:[W.map(i=>{if(!U)return e.jsx(te,{item:i,mode:"view"},ne(i));const v=i;return v.source==="legacy"?e.jsx(te,{item:v,mode:"market",marketPriceCredits:Je(v),onBuyNow:Ye},ne(i)):e.jsx(te,{item:i},ne(i))}),fe?e.jsx(we,{count:6}):null]})}),e.jsx(Pt,{hasNextPage:Ve,isFetching:fe,onLoadMore:()=>void Ke()})]})]})}),ae&&G?e.jsx(Bt,{listing:ae,rate:G,onClose:()=>ee(null),onSold:()=>{ee(null),et()}}):null]})}export{Ds as Assets};
|