@dcl/shop 0.1.0-30279564518.commit-0ea36ab → 0.1.0-30341552356.commit-1157de5
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-CjKP24SM.js → Activity-Dj44bwKw.js} +4 -4
- package/assets/{AnimatedBackground-D2jsXv_Q.js → AnimatedBackground-CwKlLPU1.js} +3 -3
- package/assets/{Assets-DjrlGGuo.js → Assets-DWnYTXCo.js} +54 -54
- package/assets/{Assets.styles-DKu0M-fo.js → Assets.styles-BhE61g54.js} +1 -1
- package/assets/{Authorizations-DfNkZpjD.js → Authorizations-BwJDLOap.js} +1 -1
- package/assets/{Button-DUuwMw2g.js → Button-B3EWO6NJ.js} +2 -2
- package/assets/{Cart-DYkqiuyJ.js → Cart-C048yxEZ.js} +1 -1
- package/assets/{CircularProgress-BOITSQXA.js → CircularProgress-Be2BeSsu.js} +1 -1
- package/assets/{Collection-0X39SWqr.js → Collection-CZEi_EO2.js} +1 -1
- package/assets/{CollectionCarousel-B0A1YOX-.js → CollectionCarousel-B4KoClM7.js} +6 -6
- package/assets/{ConstantsUtil-DTrOBzCe.js → ConstantsUtil-CqaPdSAF.js} +1 -1
- package/assets/{ContentClient-jyMKirlf.js → ContentClient-0BEnf6CP.js} +1 -1
- package/assets/{Creator-BjoPunwO.js → Creator-DgBS8-4a.js} +1 -1
- package/assets/{DeploymentBuilder-j08uBP-r.js → DeploymentBuilder-Df9ZJakk.js} +1 -1
- package/assets/{ErrorNotice-BG40E5Ff.js → ErrorNotice-D_Z5OVFI.js} +1 -1
- package/assets/{ExchangeController--3J53YgS.js → ExchangeController-BkfKxSM1.js} +1 -1
- package/assets/{GetCredits-BcZpGmti.js → GetCredits-D4_gPu7y.js} +6 -6
- package/assets/{HelpersUtil-DWI18gI9.js → HelpersUtil-nSm_BMK5.js} +1 -1
- package/assets/{ImportListings-DNcnjuRU.js → ImportListings-0xT85_lg.js} +2 -2
- package/assets/{ItemDetail-By9hJU7O.js → ItemDetail-Dq6IJ40V.js} +184 -184
- package/assets/{LoadMore-Cv8ieNqf.js → LoadMore-Cbr521EF.js} +1 -1
- package/assets/MarketCheckout-CEZ0wtt0.js +3 -0
- package/assets/{MenuList-Dpn2ZgKk.js → MenuList-BYXPwoXC.js} +1 -1
- package/assets/{MyAssets-yXg0a1Zj.js → MyAssets-Y32vTL95.js} +1 -1
- package/assets/{MyFavorites-C6oOSvkj.js → MyFavorites-DQ-5zeBc.js} +1 -1
- package/assets/{NetworkUtil-C1aEwuOK.js → NetworkUtil-DQZGJzap.js} +1 -1
- package/assets/{NotFound-BMCYiONc.js → NotFound-9u0kqnXS.js} +1 -1
- package/assets/{NotificationsBell-5E6mEGEn.js → NotificationsBell-Bh-SEbDn.js} +1 -1
- package/assets/{StoreSettings-DbdH6mzE.js → StoreSettings-DnEI4N7v.js} +1 -1
- package/assets/{Success-D7KdjdBY.js → Success-jGqc-yIA.js} +2 -2
- package/assets/{SwapController-C0FvCHWq.js → SwapController-DXwEV4tc.js} +1 -1
- package/assets/{Tooltip-DSEH6tal.js → Tooltip-CkfT0XKM.js} +5 -5
- package/assets/{TradeService-CbFSATer.js → TradeService-BP9td6am.js} +1 -1
- package/assets/{W3MFrameProviderSingleton-CCVyEXOJ.js → W3MFrameProviderSingleton-DOHwgNRJ.js} +3 -3
- package/assets/{WebCryptoP256-CxdV7gm_.js → WebCryptoP256-xSGFEHUn.js} +1 -1
- package/assets/{authorizations-Bt-yiKpU.js → authorizations-DVHH9Rgu.js} +1 -1
- package/assets/{basic-1GkOUAUg.js → basic-jN1vb_0X.js} +1 -1
- package/assets/{biconomy-CEgRNCV3.js → biconomy-CnJ3HxGY.js} +1 -1
- package/assets/{browser-CTzRZpIE.js → browser-BgOlLsTO.js} +1 -1
- package/assets/{browser-ponyfill-CI1-rMvf.js → browser-ponyfill-CMZ3i8tY.js} +1 -1
- package/assets/browser-ponyfill-lfpnveOA.js +1 -0
- package/assets/{builder-ChMzGlEf.js → builder--u_mLwLg.js} +1 -1
- package/assets/{buy-C8thJCOQ.js → buy-DsK3JvBE.js} +1 -1
- package/assets/buy-gasless-B0tydfop.js +1 -0
- package/assets/{cart-checkout-DtChJ5jV.js → cart-checkout-B_ayyHRb.js} +1 -1
- package/assets/{categories-CQDU6eKt.js → categories-CnryCWCq.js} +1 -1
- package/assets/{ccip-DHMKr_5U.js → ccip-CpnrZcJR.js} +1 -1
- package/assets/{ccip-D0x94rIy.js → ccip-DSWWT7QA.js} +1 -1
- package/assets/{chains-Znt1BTfw.js → chains-Bk8fyLPj.js} +1 -1
- package/assets/collection-DvprT8Ak.js +1 -0
- package/assets/{common-D9tSChDa.js → common-CI-kmbOq.js} +1 -1
- package/assets/{controller-BkyUM4Zl.js → controller-DcyNYMS1.js} +2 -2
- package/assets/{core-xNSXcK8v.js → core-BjxuDLc2.js} +4 -4
- package/assets/{custom-DbKBJS0m.js → custom-BXO5l2GN.js} +1 -1
- package/assets/{data-capture-DDPGGwVG.js → data-capture-CNmHScYc.js} +1 -1
- package/assets/{decimals-C4nLn1ac.js → decimals-CIbX1tiW.js} +1 -1
- package/assets/decimals-CS6j__sw.js +1 -0
- package/assets/{detectExtension-BgMIFAUw.js → detectExtension-DObVoAzH.js} +1 -1
- package/assets/{email-Bdh6R3aN.js → email-CeHIxnKR.js} +1 -1
- package/assets/{embedded-wallet-D6Oykct7.js → embedded-wallet-DFRpG2QT.js} +1 -1
- package/assets/{emotion-styled.browser.esm-D7LnnFGM.js → emotion-styled.browser.esm-BAKrhA-T.js} +1 -1
- package/assets/{engine-DKBZ9rvO.js → engine-QHP5dbJN.js} +1 -1
- package/assets/{errors-CGr_h4qk.js → errors-CxK78Ezc.js} +1 -1
- package/assets/estimate-l1-fee-DJZ2ykvP.js +1 -0
- package/assets/eth_estimateGas-D2jEM0E-.js +1 -0
- package/assets/{eth_getStorageAt--oQrWy0Q.js → eth_getStorageAt-y8U-lfEv.js} +1 -1
- package/assets/eth_getTransactionCount-CME439qZ.js +1 -0
- package/assets/{ethereum-3zUUm4Pr.js → ethereum-D72JFjbG.js} +1 -1
- package/assets/{ethers-CtVvB8eG.js → ethers-BteKixT0.js} +1 -1
- package/assets/{execute-BNAgRbv2.js → execute-BxL0u7cZ.js} +2 -2
- package/assets/{extractIPFS-BmriCqG8.js → extractIPFS-BVwwoxM1.js} +1 -1
- package/assets/{features-yBnE0kv6.js → features-D-1vXo09.js} +1 -1
- package/assets/{fetchTokenMetadata-BgTzU1uv.js → fetchTokenMetadata-Bmh-GAy2.js} +2 -2
- package/assets/{fortmatic-DM_o40Lo.js → fortmatic-uodRBNqF.js} +1 -1
- package/assets/{get-bytecode-C6TlbHJu.js → get-bytecode-PhqNpgKV.js} +1 -1
- package/assets/get-ecosystem-wallet-info-gP16_3M9.js +1 -0
- package/assets/{getBalance-Ck3AgdKh.js → getBalance-Cy11zY8o.js} +2 -2
- package/assets/{getInstalledModules-BLQxYEXn.js → getInstalledModules-DS4FSkHX.js} +1 -1
- package/assets/getNFT-CLM4lOgZ.js +1 -0
- package/assets/{getNFT-Ticzp8Hs.js → getNFT-D8_d_43-.js} +2 -2
- package/assets/getThemeProps-Db0LqBsH.js +1 -0
- package/assets/{hashTypedData-D-QtOqRa.js → hashTypedData-CyLnrmuM.js} +1 -1
- package/assets/{hashTypedData-vyJGLMpP.js → hashTypedData-DlhCxtnU.js} +1 -1
- package/assets/{import-DaK3l2L4.js → import-xj2dmpRb.js} +1 -1
- package/assets/{in-app-VsfJDWao.js → in-app-Ca1mMARX.js} +1 -1
- package/assets/{in-app-wallet-calls-Cc6TEySq.js → in-app-wallet-calls-CW5YIAy_.js} +1 -1
- package/assets/{index-BvrGtJes.js → index-5PxxT_Hi.js} +1 -1
- package/assets/{index-m5R1RgvV.js → index-9s4_sQX7.js} +1 -1
- package/assets/{index-BzD7Ebgn.js → index-B-_1QhtU.js} +1 -1
- package/assets/{index-Bf27DWaL.js → index-B8QWKyIQ.js} +1 -1
- package/assets/{index-C6PL2Fdt.js → index-BAHZtt4N.js} +1 -1
- package/assets/{index-COEkUMH9.js → index-BFMPeJUP.js} +1 -1
- package/assets/{index-32dihjZM.js → index-BPlewML_.js} +1 -1
- package/assets/{index-DEKVNi4L.js → index-BRqkHqJo.js} +1 -1
- package/assets/{index--P2VwVy3.js → index-BS5Ceouq.js} +1 -1
- package/assets/{index-Cmu7kehM.js → index-BWqSG2Zp.js} +2 -2
- package/assets/{index-7KtzBMW3.js → index-BZ-ADUaA.js} +1 -1
- package/assets/{index-CEUqEDHj.js → index-Boi8OWdb.js} +11 -11
- package/assets/{index-DHxeKfAR.js → index-Bw8dL1iq.js} +3 -3
- package/assets/{index-BG7lZdfP.js → index-C3SS5bz4.js} +1 -1
- package/assets/{index-ehEPbUUu.js → index-C3ZPHWQF.js} +1 -1
- package/assets/{index-unwNWDy6.js → index-CB1uzRfI.js} +1 -1
- package/assets/{index-DbSgqncZ.js → index-CBJiZL2c.js} +1 -1
- package/assets/{index-DdJ_OK_4.js → index-CEvsvVpf.js} +1 -1
- package/assets/{index-Bxhq99ht.js → index-CJ85TtZ8.js} +1 -1
- package/assets/{index-BDwWglvl.js → index-CJIwpbLW.js} +1 -1
- package/assets/{index-BZ6S4-Qy.js → index-CMYPEZgT.js} +1 -1
- package/assets/{index-DUxDUxur.js → index-CR6dp-n2.js} +2 -2
- package/assets/{index-8eIQG8Kl.js → index-CRQc7aFW.js} +1 -1
- package/assets/{index-BIgVkoHN.js → index-CUAbfX_G.js} +1 -1
- package/assets/{index-tFmbSlHL.js → index-CVi7PdPM.js} +1 -1
- package/assets/{index-6uEdFIR0.js → index-CXOudy9H.js} +2 -2
- package/assets/{index-CKwiZFh4.js → index-CYe6NA33.js} +1 -1
- package/assets/{index-CWzvA55Z.js → index-CaZpvuaJ.js} +1 -1
- package/assets/{index-B2DUxMjO.js → index-CdccZQ_A.js} +1 -1
- package/assets/{index-CZQ2_otu.js → index-CgEZpoUf.js} +1 -1
- package/assets/{index-DiGXPxzb.js → index-CjxT1gx4.js} +1 -1
- package/assets/{index-L08mwnOc.js → index-Cog4X8JZ.js} +1 -1
- package/assets/{index-DsgKSUtS.js → index-Ct3-9z3S.js} +1 -1
- package/assets/{index-n-ml-ClE.js → index-CwJPZDQg.js} +1 -1
- package/assets/{index-Dcg9IkwS.js → index-D3S3ylBv.js} +1 -1
- package/assets/{index-Ceh4tqVd.js → index-D3sOF6Ef.js} +1 -1
- package/assets/{index-C9AUsopd.js → index-D4GTMW1w.js} +1 -1
- package/assets/{index-CSZuXP_O.js → index-D7uajZIF.js} +1 -1
- package/assets/{index-ColsJYiD.js → index-DE80LSux.js} +1 -1
- package/assets/{index-Bx2U1tYr.js → index-DG5yd0Hy.js} +1 -1
- package/assets/{index-BVMw5QjZ.js → index-DHAtTfUI.js} +1 -1
- package/assets/{index-CJxmpG1K.js → index-DMKg8lh3.js} +1 -1
- package/assets/{index-jX2jQJPr.js → index-DMzXLpFX.js} +2 -2
- package/assets/{index-B56Mz2YS.js → index-DPvzgx_y.js} +1 -1
- package/assets/{index-DNoUzleZ.js → index-DTUefcrq.js} +1 -1
- package/assets/{index-Bek4_t_L.js → index-DaGxFfPe.js} +1 -1
- package/assets/{index-C8RikeW4.js → index-DcgPlZHV.js} +1 -1
- package/assets/{index-BTV13rXH.js → index-Ded3SJr4.js} +1 -1
- package/assets/{index-DGwlKYP1.js → index-DidAGC-b.js} +1 -1
- package/assets/index-DpPUc0sl.js +1 -0
- package/assets/{index-BCx0SxC7.js → index-Dyl6gCDy.js} +1 -1
- package/assets/{index-SvOsIc3H.js → index-G557eOOZ.js} +3 -3
- package/assets/{index-DB0uJXc-.js → index-Ik8KJlRB.js} +3 -3
- package/assets/{index-DGZZiECR.js → index-LI2Gp3bz.js} +1 -1
- package/assets/{index-Cf5UQJ_k.js → index-ShBnagKs.js} +2 -2
- package/assets/{index-BYz2fOpG.js → index-_B4jXVuv.js} +1 -1
- package/assets/{index-Bd6gPKw4.js → index-a3vLcVip.js} +1 -1
- package/assets/{index-B13clZOY.js → index-cdg92wTF.js} +1 -1
- package/assets/{index-D_DMIRz9.js → index-hTjbV6vV.js} +1 -1
- package/assets/{index-Cpv_qKx8.js → index-n8GCu-Rn.js} +1 -1
- package/assets/{index-CkWJ4sTo.js → index-nJZkl4yb.js} +1 -1
- package/assets/{index-jsB1K3Ty.js → index-qJN3KuXC.js} +1 -1
- package/assets/{index-z80r03Cx.js → index-tNNieLvH.js} +1 -1
- package/assets/{index.es-BZebHuYA.js → index.es-86Q_KSh8.js} +4 -4
- package/assets/{index.es-DI7x2TJx.js → index.es-Do8tEs_c.js} +1 -1
- package/assets/{index.es-DpokeYPv.js → index.es-Pf3_VMB1.js} +1 -1
- package/assets/{linkAccount-BR5_llhd.js → linkAccount-6BFCh5cx.js} +1 -1
- package/assets/{localBatchGatewayRequest-B9Ybd7dg.js → localBatchGatewayRequest-Q9ISf7xV.js} +1 -1
- package/assets/{mana-rate-D7GRB_Ot.js → mana-rate-Dr5e3Fsu.js} +1 -1
- package/assets/{native-BSpg_u0K.js → native-15jVjX8Y.js} +1 -1
- package/assets/{networks-fMdVA1sr.js → networks-DH11TI3P.js} +1 -1
- package/assets/{onramp-B2Q3gTV8.js → onramp-fUReVnH1.js} +1 -1
- package/assets/{openzeppelin-Dfbjq166.js → openzeppelin-BMoHmYeO.js} +1 -1
- package/assets/{ownerOf-D9UDfElT.js → ownerOf-CFrKicrH.js} +1 -1
- package/assets/{parseNft-D4L1MnwK.js → parseNft-Bsnv7LY2.js} +2 -2
- package/assets/{parseSignature-B2YsV13I.js → parseSignature-WQa_Z13b.js} +3 -3
- package/assets/{parseSignature-Ch8Ikh9R.js → parseSignature-vnzc0TWx.js} +1 -1
- package/assets/{passkeys-CRQs5lh-.js → passkeys-DcSb_2bY.js} +1 -1
- package/assets/{pay-with-exchange-DwcPixRd.js → pay-with-exchange-BSvTA-vL.js} +1 -1
- package/assets/{prepare-contract-call-CHrp3EL4.js → prepare-contract-call-DUVOtgM0.js} +1 -1
- package/assets/{qr-overlay-WecOYNdc.js → qr-overlay-Cxia7TxD.js} +3 -3
- package/assets/{react-BW1xvPTF.js → react-B36MyIP_.js} +1 -1
- package/assets/{receive-r6itEu_X.js → receive-C7U2pw1b.js} +1 -1
- package/assets/{resolveImplementation-DuORFImi.js → resolveImplementation-B0oFFgdO.js} +1 -1
- package/assets/{rpc--KkC2qWz.js → rpc-CPkDSng_.js} +1 -1
- package/assets/{secp256k1-DRVSRXu6.js → secp256k1-9B-GuXCR.js} +1 -1
- package/assets/{secp256k1-7vUkF5ib.js → secp256k1-B8iTaWun.js} +1 -1
- package/assets/{secp256k1-CSfTjZp_.js → secp256k1-BG_xdWRK.js} +1 -1
- package/assets/{send-BRRQlzci.js → send-HIK1lDa_.js} +1 -1
- package/assets/{send-batch-transaction-BASQMYYn.js → send-batch-transaction-DlA-mriP.js} +1 -1
- package/assets/{send-eip712-transaction-Cb0e5jgJ.js → send-eip712-transaction-BKSgmtge.js} +2 -2
- package/assets/send-gasless-transaction-CaZ9Bdzc.js +2 -0
- package/assets/{send-transaction-URhXksgR.js → send-transaction-IH4G-3ve.js} +2 -2
- package/assets/{sendMetaTransaction-DnNlMy1f.js → sendMetaTransaction-CoMlUn3U.js} +1 -1
- package/assets/{sendRawTransaction-Cp9PwWbz.js → sendRawTransaction-Bl9YcsnP.js} +3 -3
- package/assets/{sentry-BV_ZSgtd.js → sentry-gZJVwIqQ.js} +1 -1
- package/assets/{serializeTransaction-D6bPY-5e.js → serializeTransaction-lddISawN.js} +1 -1
- package/assets/{session-proposal-CO8C9FgE.js → session-proposal-DnwQ3Izq.js} +1 -1
- package/assets/{session-request-CU3My76o.js → session-request-BlxbeFMn.js} +2 -2
- package/assets/{sha256-BImz_UXn.js → sha256-DDEIajFz.js} +1 -1
- package/assets/{signing-C1foQi87.js → signing-CMF-guhc.js} +3 -3
- package/assets/{socials-Bsjh-kcj.js → socials-oKTNFCc_.js} +1 -1
- package/assets/{swaps-D4LpMI-N.js → swaps-DKTQ0Qks.js} +1 -1
- package/assets/{thirdweb-D1z-XTZ-.js → thirdweb-CleLzSpa.js} +3 -3
- package/assets/{to-serializable-transaction-B7zKZp3o.js → to-serializable-transaction-Dmnj9hOd.js} +2 -2
- package/assets/{totalSupply-D4j1WOYW.js → totalSupply-CGOKYv2C.js} +1 -1
- package/assets/trade-encoding-CJ445Q0f.js +1 -0
- package/assets/{transaction-BOS1fhp8.js → transaction-C_LVUDbA.js} +1 -1
- package/assets/{transactionReceipt-TiskXrB6.js → transactionReceipt-wJvnMFcL.js} +1 -1
- package/assets/{transactions-B5kAYK1L.js → transactions-CwbwJTBm.js} +1 -1
- package/assets/useCreditPacks-DslICYvP.js +1 -0
- package/assets/{useInfiniteGrid-CiDuQRnP.js → useInfiniteGrid-BsvaZzST.js} +1 -1
- package/assets/useManaRate-BrpK_vbN.js +1 -0
- package/assets/{useStore-BF0NEfcO.js → useStore-D4BwFx3W.js} +2 -2
- package/assets/useTheme-C3x6r6Lw.js +1 -0
- package/assets/{utils-B7rjkjB1.js → utils-swuB5ZX6.js} +1 -1
- package/assets/{verifyHash-BLnnKj_-.js → verifyHash-Cw5VgEE4.js} +1 -1
- package/assets/{w3m-modal-D2jSpmw2.js → w3m-modal-Btpx7WOs.js} +1 -1
- package/assets/{w3m-modal-CRKh97nT.js → w3m-modal-C3TYSgnM.js} +1 -1
- package/assets/{wait-for-tx-receipt-CUP8flYl.js → wait-for-tx-receipt-PVsjRORl.js} +1 -1
- package/assets/{wallets-CBncd5Al.js → wallets-CawAcOqK.js} +5 -5
- package/assets/{web-connector-BbbFAPbG.js → web-connector-g3y9yAdS.js} +3 -3
- package/assets/{writeContract-DeZcPQuU.js → writeContract-CkNfH9sB.js} +1 -1
- package/assets/{zora-sepolia-CVS3owSi.js → zora-sepolia-BltAzWAs.js} +1 -1
- package/assets/{zoraTestnet-Dea0RHqm.js → zoraTestnet-D5vdVlTL.js} +1 -1
- package/index.html +11 -11
- package/package.json +2 -2
- package/assets/MarketCheckout-B7kj-ofT.js +0 -3
- package/assets/browser-ponyfill-6L1OGOLN.js +0 -1
- package/assets/buy-gasless-kzWGfidX.js +0 -1
- package/assets/collection-4qJRowPN.js +0 -1
- package/assets/decimals-Bmvg-V50.js +0 -1
- package/assets/estimate-l1-fee-CoGVlirt.js +0 -1
- package/assets/eth_estimateGas-JYqF9U1i.js +0 -1
- package/assets/eth_getTransactionCount-BEhAgz2O.js +0 -1
- package/assets/get-ecosystem-wallet-info-DCVnaTdL.js +0 -1
- package/assets/getNFT-v9ULC-Df.js +0 -1
- package/assets/getThemeProps-BcAfOiiP.js +0 -1
- package/assets/index-B6MKNzS8.js +0 -1
- package/assets/send-gasless-transaction-TLFFm8L4.js +0 -2
- package/assets/trade-encoding-rbwEO5I2.js +0 -1
- package/assets/useCreditPacks-DPTBuCyg.js +0 -1
- package/assets/useManaRate-WxBKKUcB.js +0 -1
- package/assets/useTheme-BhK6j6Fd.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{a as Fe,r as f,j as e,b as tt}from"./react-B36MyIP_.js";import{c as W,D as nt,y as st,s as ot,n as s,K as t,e as ie,w as rt,x as Le,m as Be,j as it,t as o,I as T,k as B,A as ye,E as J,F as at,G as lt,h as We,L as ct,M as te,aN as dt,aO as pt}from"./index-Boi8OWdb.js";import{u as ft,M as ht}from"./MarketCheckout-CEZ0wtt0.js";import{r as xt,a as ut,m as He}from"./mana-rate-Dr5e3Fsu.js";import{u as Oe}from"./useManaRate-BrpK_vbN.js";import{g as mt,h as gt,i as bt,j as yt,k as wt,C as jt,l as vt,o as Ct,m as $t,n as kt,M as St,E as Et,p as Tt,q as It,r as _t,s as Rt,t as zt,u as At}from"./Assets.styles-BhE61g54.js";import{d as we,R as Nt,F as Mt,S as je,b as Pt}from"./categories-CnryCWCq.js";import{L as Ft}from"./LoadMore-Cbr521EF.js";import{u as Lt}from"./useInfiniteGrid-BsvaZzST.js";import{E as Bt}from"./ErrorNotice-D_Z5OVFI.js";import{d as Wt}from"./dcl-schemas-BICTSpB5.js";import{u as Ht,G as Ot,w as Ut,S as Dt}from"./buy-gasless-B0tydfop.js";import{s as Gt}from"./buy-DsK3JvBE.js";import{i as qt}from"./trade-encoding-CJ445Q0f.js";import{f as Vt}from"./errors-CxK78Ezc.js";import{J as Kt,C as Zt,B as re}from"./ethers-BteKixT0.js";import{l as Qt}from"./loader-logo-BzY9EKdC.js";import{n as Jt}from"./emotion-CSxEP8yM.js";import"./sentry-gZJVwIqQ.js";import"./intl-CBcMB1D2.js";import"./authorizations-DVHH9Rgu.js";import"./sendMetaTransaction-CoMlUn3U.js";import"./Tooltip-CkfT0XKM.js";function ne(n){const r=n.source??"item",l=n.tradeId||`${n.contractAddress}-${n.tokenId??n.itemId??""}`;return`${r}:${l}`}const H="100000000000000000000",Ue=2,X=15,Xt=/^[a-zA-Z0-9]+$/;function ve(n){const r=n.trim();return r.length===0?{ok:!1,reason:"empty"}:Xt.test(r)?r.length<Ue?{ok:!1,reason:"too-short"}:r.length>X?{ok:!1,reason:"too-long"}:{ok:!0}:{ok:!1,reason:"invalid-chars"}}function Yt(n){return n.replace(/[^a-zA-Z0-9]/g,"").slice(0,X)}const en=["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 tn(){return W.chainId===Wt.ChainId.MATIC_MAINNET?Ce.mainnet:Ce.sepolia}async function nn(n,r={}){var a;const{rpc:l,address:h}=tn(),u=new Kt(l),c=new Zt(h,en,u);console.info(`[names] availability check → DCLRegistrar(${h}).available("${n}") on ${l}`);const x=await c.available(n);if((a=r.signal)!=null&&a.aborted)throw new DOMException("Aborted","AbortError");return console.info(`[names] "${n}" available=${x}`),x?"available":"taken"}const sn="https://app.across.to/api";class De extends Error{constructor(){super("Name registration is temporarily unavailable due to high network costs"),this.name="NameRouteCostTooHighError"}}function on(n){return ut(H,n)}async function rn(n,r,l={}){var a;const h=l.chainId??W.chainId,u=l.provider??"across",c=`${W.creditsServerUrl}/credits-name-route?name=${encodeURIComponent(r)}&chainId=${h}&provider=${u}`,x=await ot(c,{method:"GET",identity:n,metadata:{}});if(!x.ok){let d;try{d=(a=await x.json())==null?void 0:a.code}catch{}throw d==="ROUTE_COST_TOO_HIGH"?new De:new Error(`fetchNameCreditRoute ${x.status}`)}return x.json()}function an(n,r){const l=re.from(n.availableAmount),u=re.from(H).sub(l);return{credits:[{value:n.amount,expiresAt:Number(n.expiresAt),salt:qt(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:u.isNegative()?"0":u.toString(),maxCreditedValue:H}}async function ln(n,r={}){const l=sn,h=r.intervalMs??1e4,u=r.maxAttempts??60;let c={status:"pending",destinationTxHash:null,actionsSucceeded:!1};for(let x=0;x<u;x++){try{const a=await fetch(`${l}/deposit/status?originChainId=137&depositTxHash=${n}`);if(a.ok){const d=await a.json(),p=(d.status??"pending").toLowerCase(),w=d.fillTx??d.fillTxnRef??null,m=d.actionsSucceeded!==!1;if(p==="filled")return{status:"filled",destinationTxHash:w,actionsSucceeded:m};if(p==="refunded"||p==="expired")return{status:p,destinationTxHash:null,actionsSucceeded:!1};c={status:"pending",destinationTxHash:w,actionsSucceeded:m}}}catch{}x<u-1&&await new Promise(a=>setTimeout(a,h))}return c}async function cn(n){const{name:r,identity:l,signer:h}=n,u=n.chainId??W.chainId,c=n.provider??"across",x=(n.beneficiary??await h.getAddress()).toLowerCase();let a=null,d=!1;console.info("[names] register start",{name:r,buyer:x,chainId:u,provider:c});try{const p=await xt(u),w=on(p);console.info("[names] step 1/6 sized reservation",{usdCents:w,manaRate:p});const m=await rn(l,r,{chainId:u,provider:c});console.info("[names] step 2/6 route fetched",{target:m.externalCall.target,selector:m.externalCall.selector,provider:m.provider,quoteId:m.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 $=an(C.credit,m);let b;try{b=await Ht({chainId:u,buyer:x,signer:h,args:$})}catch(y){if(!(y instanceof Ot))throw y;b=await Gt(u,$,h)}if(console.info("[names] step 4/6 useCredits submitted (Polygon origin tx)",{originTxHash:b}),await Ut(b),d=!0,console.info("[names] step 5/6 origin tx confirmed",{originTxHash:b}),c==="across"){const y=await ln(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(p){if(console.error("[names] register failed — raw error:",p,{name:r,buyer:x,originConfirmed:d}),p instanceof Dt)return{status:"pending",originTxHash:p.txHash};throw a&&!d&&await st(l,[a]).catch(()=>{}),p instanceof De?p:new Error(Vt(p,"Couldn't register the name. Please try again.",{sale:!0}))}}const dn=s.div`
|
|
2
2
|
position: fixed;
|
|
3
3
|
inset: 0;
|
|
4
4
|
z-index: 10000;
|
|
@@ -7,7 +7,7 @@ import{u as Le,r as f,j as e,b as et}from"./react-BW1xvPTF.js";import{m as W,h a
|
|
|
7
7
|
justify-content: center;
|
|
8
8
|
padding: 16px;
|
|
9
9
|
background: rgba(22, 21, 24, 0.55);
|
|
10
|
-
`,
|
|
10
|
+
`,pn=s.div`
|
|
11
11
|
width: 560px;
|
|
12
12
|
max-width: 100%;
|
|
13
13
|
max-height: 92vh;
|
|
@@ -69,11 +69,11 @@ import{u as Le,r as f,j as e,b as et}from"./react-BW1xvPTF.js";import{m as W,h a
|
|
|
69
69
|
height: 16px;
|
|
70
70
|
color: ${t.colors.brandViolet};
|
|
71
71
|
}
|
|
72
|
-
`,
|
|
72
|
+
`,Te=s.hr`
|
|
73
73
|
border: 0;
|
|
74
74
|
border-top: 1px solid ${t.colors.line};
|
|
75
75
|
margin: 16px 0;
|
|
76
|
-
`,
|
|
76
|
+
`,Ie=s.div`
|
|
77
77
|
display: flex;
|
|
78
78
|
align-items: center;
|
|
79
79
|
gap: 16px;
|
|
@@ -127,17 +127,17 @@ import{u as Le,r as f,j as e,b as et}from"./react-BW1xvPTF.js";import{m as W,h a
|
|
|
127
127
|
height: 22px;
|
|
128
128
|
color: ${t.colors.brandViolet};
|
|
129
129
|
}
|
|
130
|
-
`,
|
|
130
|
+
`,fn=s.div`
|
|
131
131
|
margin-top: 16px;
|
|
132
132
|
padding: 16px;
|
|
133
133
|
border-radius: 12px;
|
|
134
134
|
background: #f2e7fc;
|
|
135
|
-
`,
|
|
135
|
+
`,hn=s.div`
|
|
136
136
|
font-family: ${t.font.sans};
|
|
137
137
|
font-weight: 700;
|
|
138
138
|
font-size: 16px;
|
|
139
139
|
color: ${t.colors.text};
|
|
140
|
-
`,
|
|
140
|
+
`,xn=s.p`
|
|
141
141
|
margin: 8px 0 16px;
|
|
142
142
|
font-family: ${t.font.sans};
|
|
143
143
|
font-size: 14px;
|
|
@@ -148,7 +148,7 @@ import{u as Le,r as f,j as e,b as et}from"./react-BW1xvPTF.js";import{m as W,h a
|
|
|
148
148
|
font-weight: 700;
|
|
149
149
|
color: ${t.colors.brandViolet};
|
|
150
150
|
}
|
|
151
|
-
`,
|
|
151
|
+
`,un=s.label`
|
|
152
152
|
display: flex;
|
|
153
153
|
align-items: center;
|
|
154
154
|
gap: 8px;
|
|
@@ -161,12 +161,12 @@ import{u as Le,r as f,j as e,b as et}from"./react-BW1xvPTF.js";import{m as W,h a
|
|
|
161
161
|
&:focus-within {
|
|
162
162
|
border-color: ${t.colors.magenta};
|
|
163
163
|
}
|
|
164
|
-
`,
|
|
164
|
+
`,mn=s.span`
|
|
165
165
|
flex: none;
|
|
166
166
|
font-family: ${t.font.sans};
|
|
167
167
|
font-size: 18px;
|
|
168
168
|
color: ${t.colors.muted2};
|
|
169
|
-
`,
|
|
169
|
+
`,gn=s.input`
|
|
170
170
|
flex: 0 1 auto;
|
|
171
171
|
min-width: 0;
|
|
172
172
|
border: 0;
|
|
@@ -181,7 +181,7 @@ import{u as Le,r as f,j as e,b as et}from"./react-BW1xvPTF.js";import{m as W,h a
|
|
|
181
181
|
color: #a09ba8;
|
|
182
182
|
font-weight: 400;
|
|
183
183
|
}
|
|
184
|
-
`,
|
|
184
|
+
`,bn=s.span`
|
|
185
185
|
flex: none;
|
|
186
186
|
font-family: ${t.font.sans};
|
|
187
187
|
font-size: 16px;
|
|
@@ -213,27 +213,27 @@ import{u as Le,r as f,j as e,b as et}from"./react-BW1xvPTF.js";import{m as W,h a
|
|
|
213
213
|
background: #ddc7ec;
|
|
214
214
|
color: #f4ecfa;
|
|
215
215
|
}
|
|
216
|
-
`,
|
|
216
|
+
`,yn=s.div`
|
|
217
217
|
display: flex;
|
|
218
218
|
flex-direction: column;
|
|
219
219
|
align-items: flex-start;
|
|
220
220
|
gap: 20px;
|
|
221
221
|
padding: 32px 0 8px;
|
|
222
|
-
`,
|
|
222
|
+
`,wn=s.img`
|
|
223
223
|
align-self: center;
|
|
224
224
|
width: 56px;
|
|
225
225
|
height: 56px;
|
|
226
|
-
`,
|
|
226
|
+
`,jn=s.div`
|
|
227
227
|
font-family: ${t.font.sans};
|
|
228
228
|
font-weight: 700;
|
|
229
229
|
font-size: 18px;
|
|
230
230
|
color: ${t.colors.text};
|
|
231
|
-
`,
|
|
231
|
+
`,vn=s.div`
|
|
232
232
|
display: flex;
|
|
233
233
|
align-items: center;
|
|
234
234
|
gap: 12px;
|
|
235
235
|
width: 100%;
|
|
236
|
-
`,
|
|
236
|
+
`,Cn=s.div`
|
|
237
237
|
flex: 1;
|
|
238
238
|
height: 8px;
|
|
239
239
|
border-radius: 999px;
|
|
@@ -257,12 +257,12 @@ import{u as Le,r as f,j as e,b as et}from"./react-BW1xvPTF.js";import{m as W,h a
|
|
|
257
257
|
transform: translateX(320%);
|
|
258
258
|
}
|
|
259
259
|
}
|
|
260
|
-
|
|
260
|
+
`,$n=s.span`
|
|
261
261
|
flex: none;
|
|
262
262
|
font-family: ${t.font.sans};
|
|
263
263
|
font-size: 14px;
|
|
264
264
|
color: ${t.colors.muted};
|
|
265
|
-
`,
|
|
265
|
+
`,kn=s.div`
|
|
266
266
|
display: flex;
|
|
267
267
|
flex-direction: column;
|
|
268
268
|
align-items: center;
|
|
@@ -271,7 +271,7 @@ import{u as Le,r as f,j as e,b as et}from"./react-BW1xvPTF.js";import{m as W,h a
|
|
|
271
271
|
border-radius: 12px;
|
|
272
272
|
background: #e2f5ea;
|
|
273
273
|
text-align: center;
|
|
274
|
-
|
|
274
|
+
`,Sn=s.div`
|
|
275
275
|
display: grid;
|
|
276
276
|
place-items: center;
|
|
277
277
|
width: 56px;
|
|
@@ -284,7 +284,7 @@ import{u as Le,r as f,j as e,b as et}from"./react-BW1xvPTF.js";import{m as W,h a
|
|
|
284
284
|
width: 30px;
|
|
285
285
|
height: 30px;
|
|
286
286
|
}
|
|
287
|
-
`,
|
|
287
|
+
`,En=s.p`
|
|
288
288
|
margin: 0;
|
|
289
289
|
font-family: ${t.font.sans};
|
|
290
290
|
font-size: 16px;
|
|
@@ -294,7 +294,7 @@ import{u as Le,r as f,j as e,b as et}from"./react-BW1xvPTF.js";import{m as W,h a
|
|
|
294
294
|
b {
|
|
295
295
|
font-weight: 700;
|
|
296
296
|
}
|
|
297
|
-
`,
|
|
297
|
+
`,Tn=s.div`
|
|
298
298
|
display: flex;
|
|
299
299
|
gap: 16px;
|
|
300
300
|
margin-top: 20px;
|
|
@@ -302,7 +302,7 @@ import{u as Le,r as f,j as e,b as et}from"./react-BW1xvPTF.js";import{m as W,h a
|
|
|
302
302
|
${t.media.down("mobile")} {
|
|
303
303
|
flex-direction: column;
|
|
304
304
|
}
|
|
305
|
-
`,
|
|
305
|
+
`,In=s.button`
|
|
306
306
|
flex: 1;
|
|
307
307
|
height: 48px;
|
|
308
308
|
border: 1px solid ${t.colors.accent};
|
|
@@ -323,7 +323,7 @@ import{u as Le,r as f,j as e,b as et}from"./react-BW1xvPTF.js";import{m as W,h a
|
|
|
323
323
|
outline: 2px solid ${t.colors.accent};
|
|
324
324
|
outline-offset: 2px;
|
|
325
325
|
}
|
|
326
|
-
`,
|
|
326
|
+
`,_n=s.a`
|
|
327
327
|
flex: 1;
|
|
328
328
|
display: inline-flex;
|
|
329
329
|
align-items: center;
|
|
@@ -347,7 +347,7 @@ import{u as Le,r as f,j as e,b as et}from"./react-BW1xvPTF.js";import{m as W,h a
|
|
|
347
347
|
outline: 2px solid ${t.colors.accent};
|
|
348
348
|
outline-offset: 2px;
|
|
349
349
|
}
|
|
350
|
-
`,
|
|
350
|
+
`,Rn=s.div`
|
|
351
351
|
display: flex;
|
|
352
352
|
align-items: flex-start;
|
|
353
353
|
gap: 12px;
|
|
@@ -366,10 +366,10 @@ import{u as Le,r as f,j as e,b as et}from"./react-BW1xvPTF.js";import{m as W,h a
|
|
|
366
366
|
flex: none;
|
|
367
367
|
color: ${t.colors.dclRed};
|
|
368
368
|
}
|
|
369
|
-
`;function
|
|
369
|
+
`;function zn({name:n,priceCredits:r,onClose:l}){const{session:h}=ie(),{data:u,isError:c}=rt(h),x=Le(),a=Fe(),[d,p]=f.useState("confirm"),[w,m]=f.useState(""),[C,$]=f.useState(null),b=f.useRef(!1),y=w.trim().toLowerCase()===n.toLowerCase(),S=d==="completing",j=r!=null?Be(r):"—";f.useEffect(()=>{const g=R=>{R.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(!(!h||!y||b.current)){b.current=!0,p("completing"),$(null);try{await cn({name:n,identity:h.identity,signer:h.signer}),J("Shop Completed Purchase",{purchase_type:"name",is_primary:!0,payment_type:"credits",value_credits:r??null}),x.invalidateQueries({queryKey:["usd-balance"]}),x.invalidateQueries({queryKey:["my-assets"]}),p("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")),p("error")}finally{b.current=!1}}}const k=d!=="success",I=it(h==null?void 0:h.providerType);return e.jsx(dn,{onClick:S?void 0:l,role:"presentation",children:e.jsxs(pn,{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:d==="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(B,{})," ",ye(u,c)]}),e.jsx(Te,{})]}),(d==="confirm"||d==="error")&&e.jsxs(e.Fragment,{children:[e.jsxs(Ie,{children:[e.jsx(_e,{"aria-hidden":!0,children:"@"}),e.jsxs(Re,{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(B,{}),j]})]}),d==="error"?e.jsxs(e.Fragment,{children:[e.jsxs(Rn,{children:[e.jsx(T,{name:"info","aria-hidden":!0}),e.jsx("span",{children:C})]}),e.jsx(Me,{onClick:()=>p("confirm"),children:o("names.tryAgain")})]}):e.jsxs(e.Fragment,{children:[e.jsxs(fn,{children:[e.jsx(hn,{children:o("names.confirmTitle")}),e.jsx(xn,{dangerouslySetInnerHTML:{__html:o("names.confirmBody",{name:`<b>@${An(n)}</b>`})}}),e.jsxs(un,{children:[e.jsx(mn,{"aria-hidden":!0,children:"@"}),e.jsx(gn,{value:w,onChange:g=>m(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(bn,{children:".dcl.eth"})]})]}),e.jsx(Me,{onClick:()=>void E(),disabled:!y||!h,children:o("names.buyCta")})]})]}),d==="completing"&&e.jsxs(yn,{children:[e.jsx(wn,{src:Qt,alt:"",width:56,height:56}),e.jsx(jn,{children:I?o("names.confirming"):o("names.completing")}),e.jsxs(vn,{children:[e.jsx(Cn,{"aria-hidden":!0,children:e.jsx("span",{})}),e.jsx($n,{children:"1/1"})]})]}),d==="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(B,{})," ",ye(u,c)]}),e.jsx(Te,{}),e.jsxs(kn,{children:[e.jsx(Sn,{"aria-hidden":!0,children:e.jsx(T,{name:"check"})}),e.jsxs(En,{children:[e.jsx("b",{children:o("names.successBannerBold")})," ",o("names.successBannerRest")]})]}),e.jsxs(Ie,{style:{marginTop:20},children:[e.jsx(_e,{"aria-hidden":!0,children:"@"}),e.jsxs(Re,{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(B,{}),j]})]}),e.jsxs(Tn,{children:[e.jsx(In,{onClick:()=>{l(),a("/my-assets")},children:o("names.myItems")}),e.jsx(_n,{href:W.profileUrl,target:"_blank",rel:"noopener noreferrer",children:o("names.assignToAvatar")})]})]})]})})}function An(n){return n.replace(/[&<>"']/g,r=>({"&":"&","<":"<",">":">",'"':""","'":"'"})[r])}const Nn="https://cdn.decentraland.org/@dcl/shop/0.1.0-30341552356.commit-1157de5/assets/identity-B4DXDuJP.webp",Mn="https://cdn.decentraland.org/@dcl/shop/0.1.0-30341552356.commit-1157de5/assets/world-B-9aPlxu.webp",Pn="https://cdn.decentraland.org/@dcl/shop/0.1.0-30341552356.commit-1157de5/assets/invite-BfwIhP2C.webp",Fn="https://cdn.decentraland.org/@dcl/shop/0.1.0-30341552356.commit-1157de5/assets/governance-DnazlIjy.webp",Ln=s.div`
|
|
370
370
|
width: 100%;
|
|
371
371
|
min-width: 0;
|
|
372
|
-
`,
|
|
372
|
+
`,Bn=s.nav`
|
|
373
373
|
display: flex;
|
|
374
374
|
align-items: center;
|
|
375
375
|
gap: 6px;
|
|
@@ -378,7 +378,7 @@ import{u as Le,r as f,j as e,b as et}from"./react-BW1xvPTF.js";import{m as W,h a
|
|
|
378
378
|
font-size: 12px;
|
|
379
379
|
line-height: 1;
|
|
380
380
|
color: ${t.colors.muted};
|
|
381
|
-
`,
|
|
381
|
+
`,Wn=s.button`
|
|
382
382
|
border: 0;
|
|
383
383
|
background: none;
|
|
384
384
|
padding: 0;
|
|
@@ -393,10 +393,10 @@ import{u as Le,r as f,j as e,b as et}from"./react-BW1xvPTF.js";import{m as W,h a
|
|
|
393
393
|
outline: 2px solid ${t.colors.accent};
|
|
394
394
|
outline-offset: 2px;
|
|
395
395
|
}
|
|
396
|
-
`,
|
|
396
|
+
`,Hn=s.span`
|
|
397
397
|
font-weight: 700;
|
|
398
398
|
color: ${t.colors.muted};
|
|
399
|
-
`,
|
|
399
|
+
`,On=s.div`
|
|
400
400
|
display: flex;
|
|
401
401
|
flex-direction: column;
|
|
402
402
|
gap: 48px;
|
|
@@ -409,7 +409,7 @@ import{u as Le,r as f,j as e,b as et}from"./react-BW1xvPTF.js";import{m as W,h a
|
|
|
409
409
|
gap: 32px;
|
|
410
410
|
padding-bottom: 32px;
|
|
411
411
|
}
|
|
412
|
-
`,
|
|
412
|
+
`,Un=s.div`
|
|
413
413
|
position: relative;
|
|
414
414
|
border-radius: ${t.radius.banner};
|
|
415
415
|
overflow: hidden;
|
|
@@ -425,12 +425,12 @@ import{u as Le,r as f,j as e,b as et}from"./react-BW1xvPTF.js";import{m as W,h a
|
|
|
425
425
|
padding: 40px 20px;
|
|
426
426
|
gap: 28px;
|
|
427
427
|
}
|
|
428
|
-
`,
|
|
428
|
+
`,Dn=s.div`
|
|
429
429
|
display: flex;
|
|
430
430
|
flex-direction: column;
|
|
431
431
|
align-items: center;
|
|
432
432
|
gap: 12px;
|
|
433
|
-
`,
|
|
433
|
+
`,Gn=s.h1`
|
|
434
434
|
margin: 0;
|
|
435
435
|
font-family: ${t.font.sans};
|
|
436
436
|
font-weight: 600;
|
|
@@ -441,7 +441,7 @@ import{u as Le,r as f,j as e,b as et}from"./react-BW1xvPTF.js";import{m as W,h a
|
|
|
441
441
|
${t.media.down("mobile")} {
|
|
442
442
|
font-size: 26px;
|
|
443
443
|
}
|
|
444
|
-
`,
|
|
444
|
+
`,qn=s.p`
|
|
445
445
|
margin: 0;
|
|
446
446
|
max-width: 760px;
|
|
447
447
|
font-family: ${t.font.sans};
|
|
@@ -453,14 +453,14 @@ import{u as Le,r as f,j as e,b as et}from"./react-BW1xvPTF.js";import{m as W,h a
|
|
|
453
453
|
${t.media.down("mobile")} {
|
|
454
454
|
font-size: 16px;
|
|
455
455
|
}
|
|
456
|
-
`,
|
|
456
|
+
`,Vn=s.div`
|
|
457
457
|
width: min(785px, 100%);
|
|
458
458
|
display: flex;
|
|
459
459
|
flex-direction: column;
|
|
460
460
|
gap: 12px;
|
|
461
|
-
`,
|
|
461
|
+
`,Kn=s.div`
|
|
462
462
|
position: relative;
|
|
463
|
-
`,
|
|
463
|
+
`,Zn=s("div",Jt("invalid"))`
|
|
464
464
|
display: flex;
|
|
465
465
|
align-items: center;
|
|
466
466
|
gap: 8px;
|
|
@@ -476,7 +476,7 @@ import{u as Le,r as f,j as e,b as et}from"./react-BW1xvPTF.js";import{m as W,h a
|
|
|
476
476
|
${t.media.down("mobile")} {
|
|
477
477
|
border-radius: 16px;
|
|
478
478
|
}
|
|
479
|
-
`,
|
|
479
|
+
`,Qn=s.span`
|
|
480
480
|
position: absolute;
|
|
481
481
|
left: -9999px;
|
|
482
482
|
top: 0;
|
|
@@ -491,7 +491,7 @@ import{u as Le,r as f,j as e,b as et}from"./react-BW1xvPTF.js";import{m as W,h a
|
|
|
491
491
|
${t.media.down("mobile")} {
|
|
492
492
|
font-size: 16px;
|
|
493
493
|
}
|
|
494
|
-
`,
|
|
494
|
+
`,Jn=s.div`
|
|
495
495
|
position: absolute;
|
|
496
496
|
top: calc(100% + 8px);
|
|
497
497
|
left: 0;
|
|
@@ -516,7 +516,7 @@ import{u as Le,r as f,j as e,b as et}from"./react-BW1xvPTF.js";import{m as W,h a
|
|
|
516
516
|
align-items: flex-start;
|
|
517
517
|
flex-wrap: wrap;
|
|
518
518
|
}
|
|
519
|
-
`,
|
|
519
|
+
`,Xn=s.a`
|
|
520
520
|
display: inline-flex;
|
|
521
521
|
align-items: center;
|
|
522
522
|
gap: 2px;
|
|
@@ -530,7 +530,7 @@ import{u as Le,r as f,j as e,b as et}from"./react-BW1xvPTF.js";import{m as W,h a
|
|
|
530
530
|
${t.media.down("mobile")} {
|
|
531
531
|
margin-left: 0;
|
|
532
532
|
}
|
|
533
|
-
`,
|
|
533
|
+
`,Yn=s.label`
|
|
534
534
|
flex: 1;
|
|
535
535
|
min-width: 0;
|
|
536
536
|
display: flex;
|
|
@@ -538,7 +538,7 @@ import{u as Le,r as f,j as e,b as et}from"./react-BW1xvPTF.js";import{m as W,h a
|
|
|
538
538
|
gap: 0;
|
|
539
539
|
cursor: text;
|
|
540
540
|
overflow: hidden;
|
|
541
|
-
`,
|
|
541
|
+
`,es=s.span`
|
|
542
542
|
flex: none;
|
|
543
543
|
margin-right: 8px;
|
|
544
544
|
font-family: ${t.font.sans};
|
|
@@ -550,7 +550,7 @@ import{u as Le,r as f,j as e,b as et}from"./react-BW1xvPTF.js";import{m as W,h a
|
|
|
550
550
|
${t.media.down("mobile")} {
|
|
551
551
|
font-size: 20px;
|
|
552
552
|
}
|
|
553
|
-
`,
|
|
553
|
+
`,ts=s.input`
|
|
554
554
|
flex: 0 1 auto;
|
|
555
555
|
min-width: 0;
|
|
556
556
|
max-width: 100%;
|
|
@@ -572,7 +572,7 @@ import{u as Le,r as f,j as e,b as et}from"./react-BW1xvPTF.js";import{m as W,h a
|
|
|
572
572
|
${t.media.down("mobile")} {
|
|
573
573
|
font-size: 16px;
|
|
574
574
|
}
|
|
575
|
-
`,
|
|
575
|
+
`,ns=s.span`
|
|
576
576
|
flex: none;
|
|
577
577
|
margin-left: 2px;
|
|
578
578
|
font-family: ${t.font.sans};
|
|
@@ -584,7 +584,7 @@ import{u as Le,r as f,j as e,b as et}from"./react-BW1xvPTF.js";import{m as W,h a
|
|
|
584
584
|
${t.media.down("mobile")} {
|
|
585
585
|
font-size: 16px;
|
|
586
586
|
}
|
|
587
|
-
`,
|
|
587
|
+
`,ss=s.span`
|
|
588
588
|
flex: none;
|
|
589
589
|
font-family: ${t.font.sans};
|
|
590
590
|
font-size: 13px;
|
|
@@ -626,7 +626,7 @@ import{u as Le,r as f,j as e,b as et}from"./react-BW1xvPTF.js";import{m as W,h a
|
|
|
626
626
|
${t.media.down("mobile")} {
|
|
627
627
|
display: none;
|
|
628
628
|
}
|
|
629
|
-
`,
|
|
629
|
+
`,os=s(Ge)`
|
|
630
630
|
display: none;
|
|
631
631
|
|
|
632
632
|
${t.media.down("mobile")} {
|
|
@@ -635,7 +635,7 @@ import{u as Le,r as f,j as e,b as et}from"./react-BW1xvPTF.js";import{m as W,h a
|
|
|
635
635
|
height: 48px;
|
|
636
636
|
border-radius: 12px;
|
|
637
637
|
}
|
|
638
|
-
`,
|
|
638
|
+
`,rs=s.span`
|
|
639
639
|
display: inline-flex;
|
|
640
640
|
align-items: center;
|
|
641
641
|
gap: 4px;
|
|
@@ -664,7 +664,7 @@ import{u as Le,r as f,j as e,b as et}from"./react-BW1xvPTF.js";import{m as W,h a
|
|
|
664
664
|
height: 16px;
|
|
665
665
|
flex: none;
|
|
666
666
|
}
|
|
667
|
-
`,
|
|
667
|
+
`,is=s.section`
|
|
668
668
|
display: flex;
|
|
669
669
|
flex-direction: column;
|
|
670
670
|
gap: 48px;
|
|
@@ -674,12 +674,12 @@ import{u as Le,r as f,j as e,b as et}from"./react-BW1xvPTF.js";import{m as W,h a
|
|
|
674
674
|
gap: 32px;
|
|
675
675
|
padding: 0 20px;
|
|
676
676
|
}
|
|
677
|
-
`,
|
|
677
|
+
`,as=s.div`
|
|
678
678
|
display: flex;
|
|
679
679
|
flex-direction: column;
|
|
680
680
|
align-items: center;
|
|
681
681
|
gap: 24px;
|
|
682
|
-
`,
|
|
682
|
+
`,ls=s.h2`
|
|
683
683
|
margin: 0;
|
|
684
684
|
text-align: center;
|
|
685
685
|
font-family: ${t.font.sans};
|
|
@@ -691,7 +691,7 @@ import{u as Le,r as f,j as e,b as et}from"./react-BW1xvPTF.js";import{m as W,h a
|
|
|
691
691
|
${t.media.down("mobile")} {
|
|
692
692
|
font-size: 22px;
|
|
693
693
|
}
|
|
694
|
-
`,
|
|
694
|
+
`,cs=s.p`
|
|
695
695
|
margin: 0;
|
|
696
696
|
max-width: 907px;
|
|
697
697
|
text-align: center;
|
|
@@ -704,7 +704,7 @@ import{u as Le,r as f,j as e,b as et}from"./react-BW1xvPTF.js";import{m as W,h a
|
|
|
704
704
|
${t.media.down("mobile")} {
|
|
705
705
|
font-size: 16px;
|
|
706
706
|
}
|
|
707
|
-
`,
|
|
707
|
+
`,ds=s.div`
|
|
708
708
|
display: grid;
|
|
709
709
|
grid-template-columns: repeat(4, 1fr);
|
|
710
710
|
gap: 24px;
|
|
@@ -750,7 +750,7 @@ import{u as Le,r as f,j as e,b as et}from"./react-BW1xvPTF.js";import{m as W,h a
|
|
|
750
750
|
font-size: 14px;
|
|
751
751
|
line-height: 1.57;
|
|
752
752
|
color: ${t.colors.text};
|
|
753
|
-
`,
|
|
753
|
+
`,ps=s.span`
|
|
754
754
|
font-weight: 600;
|
|
755
755
|
color: ${t.colors.accent};
|
|
756
756
|
`,Pe=s.a`
|
|
@@ -774,7 +774,7 @@ import{u as Le,r as f,j as e,b as et}from"./react-BW1xvPTF.js";import{m as W,h a
|
|
|
774
774
|
width: 13px;
|
|
775
775
|
height: 13px;
|
|
776
776
|
}
|
|
777
|
-
`,
|
|
777
|
+
`,fs=s.span`
|
|
778
778
|
position: absolute;
|
|
779
779
|
width: 1px;
|
|
780
780
|
height: 1px;
|
|
@@ -784,4 +784,4 @@ import{u as Le,r as f,j as e,b as et}from"./react-BW1xvPTF.js";import{m as W,h a
|
|
|
784
784
|
clip: rect(0, 0, 0, 0);
|
|
785
785
|
white-space: nowrap;
|
|
786
786
|
border: 0;
|
|
787
|
-
`,ps="https://docs.decentraland.org/creator/worlds/about/",fs="https://governance.decentraland.org";function hs(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 xs({onBack:n}){We({title:o("seo.names.title"),description:o("seo.names.description")});const{session:r,signIn:l}=ie(),{data:h}=Oe(),u=h?He(H,h):null,[c,x]=f.useState(""),[a,d]=f.useState("idle"),[p,w]=f.useState(!1),m=f.useRef(null),[C,$]=f.useState(void 0);f.useLayoutEffect(()=>{m.current&&$(m.current.offsetWidth)},[c]),f.useEffect(()=>{if(!ve(c).ok){d(c.length===0?"idle":"invalid");return}d("checking");const k=new AbortController,T=setTimeout(()=>{(async()=>{try{const g=await en(c,{signal:k.signal});d(g)}catch(g){if((g==null?void 0:g.name)==="AbortError")return;d("error")}})()},400);return()=>{clearTimeout(T),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"),u!=null?e.jsxs(ss,{children:[e.jsx(F,{}),Fe(u)]}):null]});return e.jsxs(Pn,{"data-testid":"names-page",children:[e.jsxs(Ln,{"aria-label":o("names.breadcrumbAria"),children:[e.jsx(Bn,{onClick:n,children:o("names.breadcrumbCollectibles")}),e.jsx("span",{"aria-hidden":!0,children:">"}),e.jsx(Fn,{children:o("names.breadcrumbCurrent")})]}),e.jsxs(Wn,{children:[e.jsxs(Hn,{children:[e.jsxs(On,{children:[e.jsx(Un,{children:o("names.heroTitle")}),e.jsx(Dn,{children:o("names.heroSubtitle")})]}),e.jsxs(Gn,{children:[e.jsxs(qn,{children:[e.jsxs(Vn,{invalid:a==="taken",children:[e.jsxs(Jn,{children:[e.jsx(Xn,{"aria-hidden":!0,children:"@"}),e.jsx(Yn,{value:c,onChange:E=>x(Jt(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(Kn,{ref:m,"aria-hidden":!0,children:c||o("names.inputPlaceholder")}),e.jsx(es,{children:o("names.suffix")})]}),c.length>0?e.jsxs(ts,{"aria-hidden":!0,children:[c.length,"/",X]}):null,e.jsx(Ge,{onClick:S,disabled:!y,"data-testid":"names-claim",children:j})]}),a==="taken"?e.jsxs(Zn,{role:"status","data-testid":"names-taken",children:[e.jsx(I,{name:"info",size:16,"aria-hidden":!0}),e.jsx("span",{children:o("names.taken")}),e.jsxs(Qn,{href:hs(c),target:"_blank",rel:"noopener noreferrer",children:[o("names.takenMakeOffer"),e.jsx(I,{name:"external-link",size:13,"aria-hidden":!0})]})]}):null]}),e.jsx(ns,{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:Ue})}):null,e.jsx(ds,{role:"status","aria-live":"polite",children:a==="available"?o("names.available",{name:c}):""})]})]}),e.jsxs(os,{children:[e.jsxs(rs,{children:[e.jsx(is,{children:o("names.whyTitle")}),e.jsx(as,{children:o("names.whyIntro")})]}),e.jsxs(ls,{children:[e.jsxs(q,{children:[e.jsx(V,{src:zn,alt:""}),e.jsxs(K,{children:[e.jsx(Z,{children:o("names.why1Title")}),e.jsx(Q,{children:o("names.why1")})]})]}),e.jsxs(q,{children:[e.jsx(V,{src:An,alt:""}),e.jsxs(K,{children:[e.jsx(Z,{children:o("names.why2Title")}),e.jsxs(Q,{children:[o("names.why2")," ",e.jsx(cs,{children:o("names.why2Address")})]}),e.jsxs(Pe,{href:ps,target:"_blank",rel:"noopener noreferrer",children:[o("names.learnMore"),e.jsx(I,{name:"external-link","aria-hidden":!0})]})]})]}),e.jsxs(q,{children:[e.jsx(V,{src:Nn,alt:""}),e.jsxs(K,{children:[e.jsx(Z,{children:o("names.why3Title")}),e.jsx(Q,{children:o("names.why3")})]})]}),e.jsxs(q,{children:[e.jsx(V,{src:Mn,alt:""}),e.jsxs(K,{children:[e.jsx(Z,{children:o("names.why4Title")}),e.jsx(Q,{children:o("names.why4")}),e.jsxs(Pe,{href:fs,target:"_blank",rel:"noopener noreferrer",children:[o("names.learnMore"),e.jsx(I,{name:"external-link","aria-hidden":!0})]})]})]})]})]})]}),p?e.jsx(_n,{name:c,priceCredits:u,onClose:()=>w(!1)}):null]})}const us="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 ms(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 Ws(){const[n]=et(),r=Le(),l=(n.get("q")??"").trim().toLowerCase(),h=Be(),{session:u,signIn:c}=ie(),x=(n.get("q")??"").trim();We({title:x?o("seo.collectibles.searchTitle",{query:x}):o("seo.collectibles.title"),description:o("seo.collectibles.description")});const[a,d]=f.useState("wearable"),[p,w]=f.useState(null),[m,C]=f.useState([]),[$,b]=f.useState(""),[y,S]=f.useState(""),[j,E]=f.useState("on_sale"),[k,T]=f.useState(!1),[g,Y]=f.useState("newest"),[R,A]=f.useState(!1),[ae,ee]=f.useState(null);f.useEffect(()=>{if(!R)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}},[R]);const O=j==="on_sale",N=$&&!Number.isNaN(Number($))?Number($):void 0,M=y&&!Number.isNaN(Number(y))?Number(y):void 0,le=p?At[p]:void 0,ce=(we.find(i=>i.key===g)??we[0]).server,de={category:a,rarities:m.length?m:void 0,wearableCategories:le,minPriceCredits:N,maxPriceCredits:M,search:l||void 0,sortBy:ce,isSmart:k||void 0,onSale:!0},pe={category:a,rarities:m.length?m:void 0,wearableCategories:le,search:l||void 0,sortBy:ce,isWearableSmart:k||void 0,isOnSale:j==="not_for_sale"?!1:void 0},{items:P,total:fe,isLoading:_,isPlaceholderData:z,error:he,hasNextPage:qe,isFetchingNextPage:xe,fetchNextPage:Ve}=Pt(O?["shop-items",de]:["catalog-items",pe],i=>O?ct({...de,first:oe,skip:i}):dt({...pe,first:oe,skip:i}),{enabled:a!=="names"}),U=fe,ue=_||z,Ke=_?15:Math.min(Math.max(P.length,1),oe),{data:D,isError:Ze}=Oe(),Qe=i=>D&&i.manaWei?He(i.manaWei,D):null,me=f.useRef(null);f.useEffect(()=>{_||z||!l||me.current===l||(me.current=l,J("Shop Searched",{query:l,result_count:U}))},[l,_,z,U]);const G=f.useRef("__init__");f.useEffect(()=>{if(_||z)return;const i=JSON.stringify({category:a,subCategory:p,rarities:m,min:N,max:M,sort:g,status:j,smart:k});if(G.current==="__init__"||G.current===i){G.current=i;return}G.current=i,J("Shop Applied Filter",{filters:{category:a,sub_category:p,rarities:m,min_price_credits:N??null,max_price_credits:M??null,status:j,smart:k,sort:g},result_count:U})},[a,p,m,N,M,g,j,k,_,z,U]);function ge(i){d(i),w(null)}function be(i){C(v=>v.includes(i)?v.filter(B=>B!==i):[...v,i])}function Je(){d("wearable"),w(null),C([]),b(""),S(""),E("on_sale"),T(!1)}function Xe(i){const v=P.find(B=>B.id===i.id);if(!(!v||v.source!=="legacy"||!v.manaWei)){if(!u){c();return}ee(ms(v))}}function Ye(){h.invalidateQueries({queryKey:["shop-items"]})}const L=[];(N!=null||M!=null)&&L.push({key:"price",label:o("filter.price"),onRemove:()=>{b(""),S("")}});for(const i of Rt)m.includes(i)&&L.push({key:`rarity-${i}`,label:lt(i),onRemove:()=>be(i)});return k&&L.push({key:"smart",label:o("filter.smart"),onRemove:()=>T(!1)}),j!=="on_sale"&&L.push({key:"status",label:j==="all"?o("filter.statusAll"):o("filter.notForSale"),onRemove:()=>E("on_sale")}),e.jsxs(ht,{"data-testid":"browse",children:[a!=="names"&&e.jsxs(e.Fragment,{children:[R?e.jsx(xt,{onClick:()=>A(!1),"aria-hidden":!0}):null,e.jsxs(ut,{className:R?"is-open":"","data-testid":"browse-sidebar",children:[e.jsxs(mt,{children:[e.jsx(gt,{children:o("assets.filters")}),e.jsx(bt,{onClick:()=>A(!1),"aria-label":o("assets.closeFilters"),children:"✕"})]}),e.jsx(yt,{children:e.jsx(wt,{category:a,subCategory:p,onCategory:ge,onSub:w,priceMin:$,priceMax:y,onPriceMin:b,onPriceMax:S,rarities:m,onToggleRarity:be,status:j,onStatus:E,smart:k,onSmart:T})}),e.jsx(jt,{children:e.jsx(vt,{type:"button",onClick:()=>A(!1),children:o("assets.showItems")})})]})]}),e.jsx(Ct,{children:a==="names"?e.jsx(xs,{onBack:()=>ge("wearable")}):e.jsxs(e.Fragment,{children:[e.jsx(zt,{sort:g,onSort:Y,total:fe,loading:_||z,query:l,onOpenFilters:()=>A(!0),chips:L,onClearChips:Je}),Ze&&O&&P.some(i=>i.source==="legacy")?e.jsx("p",{className:"market-banner market-banner--warn",children:o("assets.marketUnavailable")}):null,he?e.jsx(Lt,{message:o("assets.loadError"),testId:"browse-error"}):null,!ue&&P.length===0&&!he?e.jsxs($t,{"data-testid":"browse-empty",children:[e.jsx(kt,{src:us,alt:""}),e.jsxs(St,{children:[e.jsx(Et,{children:o("assets.empty.title")}),e.jsx(It,{children:x?e.jsxs(e.Fragment,{children:[o("assets.empty.searchBefore"),e.jsx("b",{children:x}),o("assets.empty.searchAfter")]}):o("assets.empty.filters")})]}),e.jsx(Tt,{children:e.jsx(_t,{type:"button",onClick:()=>r("/overview"),children:o("assets.empty.cta")})})]}):e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"grid","data-testid":"grid",children:ue?e.jsx(je,{count:Ke}):e.jsxs(e.Fragment,{children:[P.map(i=>{if(!O)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:Qe(v),onBuyNow:Xe},ne(i)):e.jsx(te,{item:i},ne(i))}),xe?e.jsx(je,{count:6}):null]})}),e.jsx(Nt,{hasNextPage:qe,isFetching:xe,onLoadMore:()=>void Ve()})]})]})}),ae&&D?e.jsx(Mt,{listing:ae,rate:D,onClose:()=>ee(null),onSold:()=>{ee(null),Ye()}}):null]})}export{Ws as Assets};
|
|
787
|
+
`,hs="https://docs.decentraland.org/creator/worlds/about/",xs="https://governance.decentraland.org";function us(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 ms({onBack:n}){We({title:o("seo.names.title"),description:o("seo.names.description")});const{session:r,signIn:l}=ie(),{data:h}=Oe(),u=h?He(H,h):null,[c,x]=f.useState(""),[a,d]=f.useState("idle"),[p,w]=f.useState(!1),m=f.useRef(null),[C,$]=f.useState(void 0);f.useLayoutEffect(()=>{m.current&&$(m.current.offsetWidth)},[c]),f.useEffect(()=>{if(!ve(c).ok){d(c.length===0?"idle":"invalid");return}d("checking");const k=new AbortController,I=setTimeout(()=>{(async()=>{try{const g=await nn(c,{signal:k.signal});d(g)}catch(g){if((g==null?void 0:g.name)==="AbortError")return;d("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"),u!=null?e.jsxs(rs,{children:[e.jsx(B,{}),Be(u)]}):null]});return e.jsxs(Ln,{"data-testid":"names-page",children:[e.jsxs(Bn,{"aria-label":o("names.breadcrumbAria"),children:[e.jsx(Wn,{onClick:n,children:o("names.breadcrumbCollectibles")}),e.jsx("span",{"aria-hidden":!0,children:">"}),e.jsx(Hn,{children:o("names.breadcrumbCurrent")})]}),e.jsxs(On,{children:[e.jsxs(Un,{children:[e.jsxs(Dn,{children:[e.jsx(Gn,{children:o("names.heroTitle")}),e.jsx(qn,{children:o("names.heroSubtitle")})]}),e.jsxs(Vn,{children:[e.jsxs(Kn,{children:[e.jsxs(Zn,{invalid:a==="taken",children:[e.jsxs(Yn,{children:[e.jsx(es,{"aria-hidden":!0,children:"@"}),e.jsx(ts,{value:c,onChange:E=>x(Yt(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(Qn,{ref:m,"aria-hidden":!0,children:c||o("names.inputPlaceholder")}),e.jsx(ns,{children:o("names.suffix")})]}),c.length>0?e.jsxs(ss,{"aria-hidden":!0,children:[c.length,"/",X]}):null,e.jsx(Ge,{onClick:S,disabled:!y,"data-testid":"names-claim",children:j})]}),a==="taken"?e.jsxs(Jn,{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(Xn,{href:us(c),target:"_blank",rel:"noopener noreferrer",children:[o("names.takenMakeOffer"),e.jsx(T,{name:"external-link",size:13,"aria-hidden":!0})]})]}):null]}),e.jsx(os,{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:Ue})}):null,e.jsx(fs,{role:"status","aria-live":"polite",children:a==="available"?o("names.available",{name:c}):""})]})]}),e.jsxs(is,{children:[e.jsxs(as,{children:[e.jsx(ls,{children:o("names.whyTitle")}),e.jsx(cs,{children:o("names.whyIntro")})]}),e.jsxs(ds,{children:[e.jsxs(q,{children:[e.jsx(V,{src:Nn,alt:""}),e.jsxs(K,{children:[e.jsx(Z,{children:o("names.why1Title")}),e.jsx(Q,{children:o("names.why1")})]})]}),e.jsxs(q,{children:[e.jsx(V,{src:Mn,alt:""}),e.jsxs(K,{children:[e.jsx(Z,{children:o("names.why2Title")}),e.jsxs(Q,{children:[o("names.why2")," ",e.jsx(ps,{children:o("names.why2Address")})]}),e.jsxs(Pe,{href:hs,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:Pn,alt:""}),e.jsxs(K,{children:[e.jsx(Z,{children:o("names.why3Title")}),e.jsx(Q,{children:o("names.why3")})]})]}),e.jsxs(q,{children:[e.jsx(V,{src:Fn,alt:""}),e.jsxs(K,{children:[e.jsx(Z,{children:o("names.why4Title")}),e.jsx(Q,{children:o("names.why4")}),e.jsxs(Pe,{href:xs,target:"_blank",rel:"noopener noreferrer",children:[o("names.learnMore"),e.jsx(T,{name:"external-link","aria-hidden":!0})]})]})]})]})]})]}),p?e.jsx(zn,{name:c,priceCredits:u,onClose:()=>w(!1)}):null]})}const gs="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 bs(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 Os(){const[n]=tt(),r=Fe(),l=(n.get("q")??"").trim().toLowerCase(),h=Le(),{session:u,signIn:c}=ie(),x=(n.get("q")??"").trim();We({title:x?o("seo.collectibles.searchTitle",{query:x}):o("seo.collectibles.title"),description:o("seo.collectibles.description")});const[a,d]=f.useState("wearable"),[p,w]=f.useState(null),[m,C]=f.useState([]),[$,b]=f.useState(""),[y,S]=f.useState(""),[j,E]=f.useState("on_sale"),[k,I]=f.useState(!1),[g,Y]=f.useState("newest"),[R,A]=f.useState(!1),[ae,ee]=f.useState(null);f.useEffect(()=>{if(!R)return;const i=L=>{L.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}},[R]);const O=j==="on_sale",N=$&&!Number.isNaN(Number($))?Number($):void 0,M=y&&!Number.isNaN(Number(y))?Number(y):void 0,qe=ft(),le=p?Pt[p]:void 0,ce=(we.find(i=>i.key===g)??we[0]).server,de={category:a,rarities:m.length?m: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:m.length?m:void 0,wearableCategories:le,search:l||void 0,sortBy:ce,isWearableSmart:k||void 0,isOnSale:j==="not_for_sale"?!1:void 0},{items:P,total:fe,isLoading:_,isPlaceholderData:z,error:he,hasNextPage:Ve,isFetchingNextPage:xe,fetchNextPage:Ke}=Lt(O?["shop-items",de]:["catalog-items",pe],i=>O?dt({...de,first:oe,skip:i}):pt({...pe,first:oe,skip:i}),{enabled:a!=="names"}),U=fe,ue=_||z,Ze=_?15:Math.min(Math.max(P.length,1),oe),{data:D,isError:Qe}=Oe(),Je=i=>D&&i.manaWei?He(i.manaWei,D):null,me=f.useRef(null);f.useEffect(()=>{_||z||!l||me.current===l||(me.current=l,J("Shop Searched",{query:l,result_count:U}))},[l,_,z,U]);const G=f.useRef("__init__");f.useEffect(()=>{if(_||z)return;const i=JSON.stringify({category:a,subCategory:p,rarities:m,min:N,max:M,sort:g,status:j,smart:k});if(G.current==="__init__"||G.current===i){G.current=i;return}G.current=i,J("Shop Applied Filter",{filters:{category:a,sub_category:p,rarities:m,min_price_credits:N??null,max_price_credits:M??null,status:j,smart:k,sort:g},result_count:U})},[a,p,m,N,M,g,j,k,_,z,U]);function ge(i){d(i),w(null)}function be(i){C(v=>v.includes(i)?v.filter(L=>L!==i):[...v,i])}function Xe(){d("wearable"),w(null),C([]),b(""),S(""),E("on_sale"),I(!1)}function Ye(i){const v=P.find(L=>L.id===i.id);if(!(!v||v.source!=="legacy"||!v.manaWei)){if(!u){c();return}ee(bs(v))}}function et(){h.invalidateQueries({queryKey:["shop-items"]})}const F=[];(N!=null||M!=null)&&F.push({key:"price",label:o("filter.price"),onRemove:()=>{b(""),S("")}});for(const i of Nt)m.includes(i)&&F.push({key:`rarity-${i}`,label:ct(i),onRemove:()=>be(i)});return k&&F.push({key:"smart",label:o("filter.smart"),onRemove:()=>I(!1)}),j!=="on_sale"&&F.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:[R?e.jsx(gt,{onClick:()=>A(!1),"aria-hidden":!0}):null,e.jsxs(bt,{className:R?"is-open":"","data-testid":"browse-sidebar",children:[e.jsxs(yt,{children:[e.jsx(wt,{children:o("assets.filters")}),e.jsx(jt,{onClick:()=>A(!1),"aria-label":o("assets.closeFilters"),children:"✕"})]}),e.jsx(vt,{children:e.jsx(Ct,{category:a,subCategory:p,onCategory:ge,onSub:w,priceMin:$,priceMax:y,onPriceMin:b,onPriceMax:S,rarities:m,onToggleRarity:be,status:j,onStatus:E,smart:k,onSmart:I})}),e.jsx($t,{children:e.jsx(kt,{type:"button",onClick:()=>A(!1),children:o("assets.showItems")})})]})]}),e.jsx(St,{children:a==="names"?e.jsx(ms,{onBack:()=>ge("wearable")}):e.jsxs(e.Fragment,{children:[e.jsx(Mt,{sort:g,onSort:Y,total:fe,loading:_||z,query:l,onOpenFilters:()=>A(!0),chips:F,onClearChips:Xe}),Qe&&O&&P.some(i=>i.source==="legacy")?e.jsx("p",{className:"market-banner market-banner--warn",children:o("assets.marketUnavailable")}):null,he?e.jsx(Bt,{message:o("assets.loadError"),testId:"browse-error"}):null,!ue&&P.length===0&&!he?e.jsxs(Et,{"data-testid":"browse-empty",children:[e.jsx(Tt,{src:gs,alt:""}),e.jsxs(It,{children:[e.jsx(_t,{children:o("assets.empty.title")}),e.jsx(Rt,{children:x?e.jsxs(e.Fragment,{children:[o("assets.empty.searchBefore"),e.jsx("b",{children:x}),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("div",{className:"grid","data-testid":"grid",children:ue?e.jsx(je,{count:Ze}):e.jsxs(e.Fragment,{children:[P.map(i=>{if(!O)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))}),xe?e.jsx(je,{count:6}):null]})}),e.jsx(Ft,{hasNextPage:Ve,isFetching:xe,onLoadMore:()=>void Ke()})]})]})}),ae&&D?e.jsx(ht,{listing:ae,rate:D,onClose:()=>ee(null),onSold:()=>{ee(null),et()}}):null]})}export{Os as Assets};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as $,j as t}from"./react-
|
|
1
|
+
import{r as $,j as t}from"./react-B36MyIP_.js";import{R as C,a as oe,C as ie,c as ne}from"./categories-CnryCWCq.js";import{T as se}from"./Tooltip-CkfT0XKM.js";import{K as e,n as o,I as m,t as s,L as re,b as v}from"./index-Boi8OWdb.js";import{n as c}from"./emotion-CSxEP8yM.js";const ae=o.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
gap: 12px;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as t,L as q,r as D}from"./react-
|
|
1
|
+
import{j as t,L as q,r as D}from"./react-B36MyIP_.js";import{n as a,B as M,K as o,R as I,h as B,t as e,e as F,j as K,I as f,k as G,S as P,u as w,x as Q,c as H,U as k,J as O,N as $}from"./index-Boi8OWdb.js";import{b as W,c as _,d as J,f as U,s as X,h as V}from"./authorizations-DVHH9Rgu.js";import{a as Y}from"./builder--u_mLwLg.js";import{f as Z}from"./errors-CxK78Ezc.js";import"./sentry-gZJVwIqQ.js";import"./dcl-schemas-BICTSpB5.js";import"./ethers-BteKixT0.js";import"./intl-CBcMB1D2.js";import"./sendMetaTransaction-CoMlUn3U.js";const tt=I`
|
|
2
2
|
to { transform: rotate(360deg); }
|
|
3
3
|
`,it=I`
|
|
4
4
|
to { background-position: -200% 0; }
|