@dcl/shop 0.1.0-30277401547.commit-e877307 → 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-_qlXQij1.js → Activity-Dj44bwKw.js} +4 -4
- package/assets/{AnimatedBackground-DO49gSw8.js → AnimatedBackground-CwKlLPU1.js} +1 -1
- package/assets/{Assets-D-VpkQ1l.js → Assets-DWnYTXCo.js} +54 -54
- package/assets/{Assets.styles-BZMkOQeI.js → Assets.styles-BhE61g54.js} +1 -1
- package/assets/{Authorizations-BFWG3QA_.js → Authorizations-BwJDLOap.js} +1 -1
- package/assets/{Button-DvhW1Z1S.js → Button-B3EWO6NJ.js} +2 -2
- package/assets/{Cart-Cz7NK8QL.js → Cart-C048yxEZ.js} +1 -1
- package/assets/{CircularProgress-BmwVvF17.js → CircularProgress-Be2BeSsu.js} +1 -1
- package/assets/{Collection-Bc2CvIur.js → Collection-CZEi_EO2.js} +1 -1
- package/assets/{CollectionCarousel-DEYFBykF.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-7vyVsWtE.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-icK8vQc1.js → ExchangeController-BkfKxSM1.js} +1 -1
- package/assets/{GetCredits-BE-bIUdj.js → GetCredits-D4_gPu7y.js} +6 -6
- package/assets/{HelpersUtil-C_aV_Y-W.js → HelpersUtil-nSm_BMK5.js} +1 -1
- package/assets/{ImportListings-CusN2RYj.js → ImportListings-0xT85_lg.js} +2 -2
- package/assets/{ItemDetail-blewhWwg.js → ItemDetail-Dq6IJ40V.js} +184 -184
- package/assets/{LoadMore-C2uaqP2N.js → LoadMore-Cbr521EF.js} +1 -1
- package/assets/MarketCheckout-CEZ0wtt0.js +3 -0
- package/assets/{MenuList-mbP1RxaG.js → MenuList-BYXPwoXC.js} +1 -1
- package/assets/{MyAssets-HcHA9d8L.js → MyAssets-Y32vTL95.js} +1 -1
- package/assets/{MyFavorites-DkEAv96J.js → MyFavorites-DQ-5zeBc.js} +1 -1
- package/assets/{NetworkUtil-C1aEwuOK.js → NetworkUtil-DQZGJzap.js} +1 -1
- package/assets/{NotFound-B2W2MHR8.js → NotFound-9u0kqnXS.js} +1 -1
- package/assets/{NotificationsBell-BEAvIZcq.js → NotificationsBell-Bh-SEbDn.js} +1 -1
- package/assets/{StoreSettings-CGc7i0kZ.js → StoreSettings-DnEI4N7v.js} +1 -1
- package/assets/{Success-5LiVLOny.js → Success-jGqc-yIA.js} +2 -2
- package/assets/{SwapController-BZT-uJE0.js → SwapController-DXwEV4tc.js} +1 -1
- package/assets/{Tooltip-V9fXstBY.js → Tooltip-CkfT0XKM.js} +5 -5
- package/assets/{TradeService-D9nuCaGq.js → TradeService-BP9td6am.js} +1 -1
- package/assets/{W3MFrameProviderSingleton-Ccq1reIt.js → W3MFrameProviderSingleton-DOHwgNRJ.js} +3 -3
- package/assets/{WebCryptoP256-CrgJppag.js → WebCryptoP256-xSGFEHUn.js} +1 -1
- package/assets/{authorizations-t9AL68YM.js → authorizations-DVHH9Rgu.js} +1 -1
- package/assets/{basic-BIbSgqQe.js → basic-jN1vb_0X.js} +1 -1
- package/assets/{biconomy-JEnDnFaz.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-uUlDA8Em.js → builder--u_mLwLg.js} +1 -1
- package/assets/{buy-84sizoxr.js → buy-DsK3JvBE.js} +1 -1
- package/assets/buy-gasless-B0tydfop.js +1 -0
- package/assets/{cart-checkout-K77UDHy3.js → cart-checkout-B_ayyHRb.js} +1 -1
- package/assets/{categories-BwvbYi6M.js → categories-CnryCWCq.js} +1 -1
- package/assets/{ccip-wypw12me.js → ccip-CpnrZcJR.js} +1 -1
- package/assets/{ccip-5L0bsS_C.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-Cwg1NxXB.js → controller-DcyNYMS1.js} +2 -2
- package/assets/{core-3ZRiSdvl.js → core-BjxuDLc2.js} +4 -4
- package/assets/{custom-BVE_f5dD.js → custom-BXO5l2GN.js} +1 -1
- package/assets/{data-capture-BRhsLQVv.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-CldXoMar.js → email-CeHIxnKR.js} +1 -1
- package/assets/{embedded-wallet-vSjh73AM.js → embedded-wallet-DFRpG2QT.js} +1 -1
- package/assets/{emotion-styled.browser.esm-vQZV14Nf.js → emotion-styled.browser.esm-BAKrhA-T.js} +1 -1
- package/assets/{engine-BPP9EW4Q.js → engine-QHP5dbJN.js} +1 -1
- package/assets/{errors-D-hio89k.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-cH8V-8nL.js → execute-BxL0u7cZ.js} +2 -2
- package/assets/{extractIPFS-BmriCqG8.js → extractIPFS-BVwwoxM1.js} +1 -1
- package/assets/{features-CJ1tq5LL.js → features-D-1vXo09.js} +1 -1
- package/assets/{fetchTokenMetadata-hD4VNXHw.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-vjJ5CXDC.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-BTjIkFXY.js → getNFT-D8_d_43-.js} +2 -2
- package/assets/getThemeProps-Db0LqBsH.js +1 -0
- package/assets/{hashTypedData-Y2DJnKI9.js → hashTypedData-CyLnrmuM.js} +1 -1
- package/assets/{hashTypedData-BrvDnrgK.js → hashTypedData-DlhCxtnU.js} +1 -1
- package/assets/{import-AgO0v-a5.js → import-xj2dmpRb.js} +1 -1
- package/assets/{in-app-C4N5lFwd.js → in-app-Ca1mMARX.js} +1 -1
- package/assets/{in-app-wallet-calls-CMBsSG6j.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-Dx4EbFs-.js → index-B-_1QhtU.js} +1 -1
- package/assets/{index-qDfBJZD7.js → index-B8QWKyIQ.js} +1 -1
- package/assets/{index-trxbKGTp.js → index-BAHZtt4N.js} +1 -1
- package/assets/{index-E3wxKJyS.js → index-BFMPeJUP.js} +1 -1
- package/assets/{index-B96cJA0d.js → index-BPlewML_.js} +1 -1
- package/assets/{index-B_jKVCv0.js → index-BRqkHqJo.js} +1 -1
- package/assets/{index-1cJq3bUz.js → index-BS5Ceouq.js} +1 -1
- package/assets/{index-CsSypry2.js → index-BWqSG2Zp.js} +2 -2
- package/assets/{index-C8Ua1g52.js → index-BZ-ADUaA.js} +1 -1
- package/assets/{index-BFPNYe8x.js → index-Boi8OWdb.js} +11 -11
- package/assets/{index-B8GAuQX3.js → index-Bw8dL1iq.js} +3 -3
- package/assets/{index-BG7lZdfP.js → index-C3SS5bz4.js} +1 -1
- package/assets/{index-D2-V-v9q.js → index-C3ZPHWQF.js} +1 -1
- package/assets/{index-BQuXaLZX.js → index-CB1uzRfI.js} +1 -1
- package/assets/{index-C-2OENmH.js → index-CBJiZL2c.js} +1 -1
- package/assets/{index-Vlg-GpRL.js → index-CEvsvVpf.js} +1 -1
- package/assets/{index-CnIGe1GZ.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-BGTbU_0B.js → index-CR6dp-n2.js} +2 -2
- package/assets/{index-Hb4Ys2Tq.js → index-CRQc7aFW.js} +1 -1
- package/assets/{index-jPOTr4Wq.js → index-CUAbfX_G.js} +1 -1
- package/assets/{index-tFmbSlHL.js → index-CVi7PdPM.js} +1 -1
- package/assets/{index--8tZMj8Y.js → index-CXOudy9H.js} +2 -2
- package/assets/{index-C7gHM4wY.js → index-CYe6NA33.js} +1 -1
- package/assets/{index-HMuz0PhO.js → index-CaZpvuaJ.js} +1 -1
- package/assets/{index-B2DUxMjO.js → index-CdccZQ_A.js} +1 -1
- package/assets/{index-bqj_5mVc.js → index-CgEZpoUf.js} +1 -1
- package/assets/{index-DiGXPxzb.js → index-CjxT1gx4.js} +1 -1
- package/assets/{index-r7kjVwFs.js → index-Cog4X8JZ.js} +1 -1
- package/assets/{index-B9AUDrI9.js → index-Ct3-9z3S.js} +1 -1
- package/assets/{index-DZxRXkvI.js → index-CwJPZDQg.js} +1 -1
- package/assets/{index-DNLIdOOI.js → index-D3S3ylBv.js} +1 -1
- package/assets/{index-DGwFgPlc.js → index-D3sOF6Ef.js} +1 -1
- package/assets/{index-DCFYAbF4.js → index-D4GTMW1w.js} +1 -1
- package/assets/{index-CSZuXP_O.js → index-D7uajZIF.js} +1 -1
- package/assets/{index-BlBoDOVY.js → index-DE80LSux.js} +1 -1
- package/assets/{index-BjQNL760.js → index-DG5yd0Hy.js} +1 -1
- package/assets/{index-CV39-lnY.js → index-DHAtTfUI.js} +1 -1
- package/assets/{index-CI-UnS2-.js → index-DMKg8lh3.js} +1 -1
- package/assets/{index-BWgCJZHy.js → index-DMzXLpFX.js} +2 -2
- package/assets/{index-D0cj2XsC.js → index-DPvzgx_y.js} +1 -1
- package/assets/{index-YHVXMMbH.js → index-DTUefcrq.js} +1 -1
- package/assets/{index-CcARyxeB.js → index-DaGxFfPe.js} +1 -1
- package/assets/{index-rjU6xZd8.js → index-DcgPlZHV.js} +1 -1
- package/assets/{index-BTV13rXH.js → index-Ded3SJr4.js} +1 -1
- package/assets/{index-Dq7pc9gT.js → index-DidAGC-b.js} +1 -1
- package/assets/index-DpPUc0sl.js +1 -0
- package/assets/{index-D2iLR1Fl.js → index-Dyl6gCDy.js} +1 -1
- package/assets/{index-C7UEmKEb.js → index-G557eOOZ.js} +3 -3
- package/assets/{index-DN-OLR2r.js → index-Ik8KJlRB.js} +3 -3
- package/assets/{index-Ch88GJdD.js → index-LI2Gp3bz.js} +1 -1
- package/assets/{index-CiKWw9L3.js → index-ShBnagKs.js} +2 -2
- package/assets/{index-Dz0EI57w.js → index-_B4jXVuv.js} +1 -1
- package/assets/{index-BcgMkg8Z.js → index-a3vLcVip.js} +1 -1
- package/assets/{index-BQOr-Vwz.js → index-cdg92wTF.js} +1 -1
- package/assets/{index-CvkWE_vF.js → index-hTjbV6vV.js} +1 -1
- package/assets/{index-D96o2dcC.js → index-n8GCu-Rn.js} +1 -1
- package/assets/{index-CkWJ4sTo.js → index-nJZkl4yb.js} +1 -1
- package/assets/{index-CmhYJKse.js → index-qJN3KuXC.js} +1 -1
- package/assets/{index-BKvaZQRw.js → index-tNNieLvH.js} +1 -1
- package/assets/{index.es-DvYEMDdQ.js → index.es-86Q_KSh8.js} +4 -4
- package/assets/{index.es-magZDVqq.js → index.es-Do8tEs_c.js} +1 -1
- package/assets/{index.es-BKhU-mgO.js → index.es-Pf3_VMB1.js} +1 -1
- package/assets/{linkAccount-BR5_llhd.js → linkAccount-6BFCh5cx.js} +1 -1
- package/assets/{localBatchGatewayRequest-CnLOTida.js → localBatchGatewayRequest-Q9ISf7xV.js} +1 -1
- package/assets/{mana-rate-BpgRIQMS.js → mana-rate-Dr5e3Fsu.js} +1 -1
- package/assets/{native-BSpg_u0K.js → native-15jVjX8Y.js} +1 -1
- package/assets/{networks-BNqJWbtk.js → networks-DH11TI3P.js} +1 -1
- package/assets/{onramp-BYjThZVX.js → onramp-fUReVnH1.js} +1 -1
- package/assets/{openzeppelin-Ba3p7TP4.js → openzeppelin-BMoHmYeO.js} +1 -1
- package/assets/{ownerOf-D9UDfElT.js → ownerOf-CFrKicrH.js} +1 -1
- package/assets/{parseNft-CfH76UUp.js → parseNft-Bsnv7LY2.js} +2 -2
- package/assets/{parseSignature-D3qKk3uH.js → parseSignature-WQa_Z13b.js} +3 -3
- package/assets/{parseSignature-CuL9-kIi.js → parseSignature-vnzc0TWx.js} +1 -1
- package/assets/{passkeys-DPVQjClK.js → passkeys-DcSb_2bY.js} +1 -1
- package/assets/{pay-with-exchange-MNFdDdCT.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-DDDT3Q-c.js → qr-overlay-Cxia7TxD.js} +3 -3
- package/assets/{react-BW1xvPTF.js → react-B36MyIP_.js} +1 -1
- package/assets/{receive-BU9aVDlN.js → receive-C7U2pw1b.js} +1 -1
- package/assets/{resolveImplementation-OjvLy3T5.js → resolveImplementation-B0oFFgdO.js} +1 -1
- package/assets/{rpc-DjbYCcnH.js → rpc-CPkDSng_.js} +1 -1
- package/assets/{secp256k1-Cz5kqQCg.js → secp256k1-9B-GuXCR.js} +1 -1
- package/assets/{secp256k1-w4Bql-wA.js → secp256k1-B8iTaWun.js} +1 -1
- package/assets/{secp256k1-X13vDEXt.js → secp256k1-BG_xdWRK.js} +1 -1
- package/assets/{send-oOaeKGnc.js → send-HIK1lDa_.js} +1 -1
- package/assets/{send-batch-transaction-Dxt9X3nj.js → send-batch-transaction-DlA-mriP.js} +1 -1
- package/assets/{send-eip712-transaction-DaAvg9MZ.js → send-eip712-transaction-BKSgmtge.js} +2 -2
- package/assets/send-gasless-transaction-CaZ9Bdzc.js +2 -0
- package/assets/{send-transaction-BHdPLXiu.js → send-transaction-IH4G-3ve.js} +2 -2
- package/assets/{sendMetaTransaction-DNedK3Cr.js → sendMetaTransaction-CoMlUn3U.js} +1 -1
- package/assets/{sendRawTransaction-DUzMWVdQ.js → sendRawTransaction-Bl9YcsnP.js} +3 -3
- package/assets/{sentry-BV_ZSgtd.js → sentry-gZJVwIqQ.js} +1 -1
- package/assets/{serializeTransaction-BfDfoMJJ.js → serializeTransaction-lddISawN.js} +1 -1
- package/assets/{session-proposal-CuVqfqoo.js → session-proposal-DnwQ3Izq.js} +1 -1
- package/assets/{session-request-CKwxSrqb.js → session-request-BlxbeFMn.js} +2 -2
- package/assets/{sha256-BImz_UXn.js → sha256-DDEIajFz.js} +1 -1
- package/assets/{signing-BjyyWrkp.js → signing-CMF-guhc.js} +3 -3
- package/assets/{socials-pvmMMGV3.js → socials-oKTNFCc_.js} +1 -1
- package/assets/{swaps-padIwW3Y.js → swaps-DKTQ0Qks.js} +1 -1
- package/assets/{thirdweb-kveVeUIA.js → thirdweb-CleLzSpa.js} +3 -3
- package/assets/{to-serializable-transaction-108u7zPg.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-Bs-2Cglz.js → transactionReceipt-wJvnMFcL.js} +1 -1
- package/assets/{transactions-dcat6MM1.js → transactions-CwbwJTBm.js} +1 -1
- package/assets/useCreditPacks-DslICYvP.js +1 -0
- package/assets/{useInfiniteGrid-BBNOO0mR.js → useInfiniteGrid-BsvaZzST.js} +1 -1
- package/assets/useManaRate-BrpK_vbN.js +1 -0
- package/assets/{useStore-Bo6L1SFA.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-BfupbUWA.js → verifyHash-Cw5VgEE4.js} +1 -1
- package/assets/{w3m-modal-C2yr-A_-.js → w3m-modal-Btpx7WOs.js} +1 -1
- package/assets/{w3m-modal-CdtZ4EYL.js → w3m-modal-C3TYSgnM.js} +1 -1
- package/assets/{wait-for-tx-receipt-BBOv1oQx.js → wait-for-tx-receipt-PVsjRORl.js} +1 -1
- package/assets/{wallets-CcitqMTg.js → wallets-CawAcOqK.js} +5 -5
- package/assets/{web-connector-BLbBOK88.js → web-connector-g3y9yAdS.js} +3 -3
- package/assets/{writeContract-Cke2dgme.js → writeContract-CkNfH9sB.js} +1 -1
- package/assets/{zora-sepolia-CVS3owSi.js → zora-sepolia-BltAzWAs.js} +1 -1
- package/assets/{zoraTestnet-NeGGigN-.js → zoraTestnet-D5vdVlTL.js} +1 -1
- package/index.html +11 -11
- package/package.json +2 -2
- package/assets/MarketCheckout-CW6mGgHt.js +0 -3
- package/assets/browser-ponyfill-6L1OGOLN.js +0 -1
- package/assets/buy-gasless-oF_YJX_W.js +0 -1
- package/assets/collection-D7HQMUIe.js +0 -1
- package/assets/decimals-Bmvg-V50.js +0 -1
- package/assets/estimate-l1-fee-BLZxmPJY.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-3DZHpSG2.js +0 -1
- package/assets/getNFT-D8HIjTde.js +0 -1
- package/assets/getThemeProps-qmqFWvou.js +0 -1
- package/assets/index-B6MKNzS8.js +0 -1
- package/assets/send-gasless-transaction-BquzQGsb.js +0 -2
- package/assets/trade-encoding-DcECym8l.js +0 -1
- package/assets/useCreditPacks-BAZLy3JX.js +0 -1
- package/assets/useManaRate-CGtpZZBQ.js +0 -1
- package/assets/useTheme-CQjQJ5Is.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as j,j as e,L as _,e as dt}from"./react-
|
|
1
|
+
import{r as j,j as e,L as _,e as dt}from"./react-B36MyIP_.js";import{n as l,K as o,R as lt,B as ht,h as ut,t as d,e as xt,u as b,I as g,aG as G,aH as B,aI as pt,k as v,an as E,S as X,m as mt,aJ as gt,aK as Q}from"./index-Boi8OWdb.js";import{m as ft}from"./mana-rate-Dr5e3Fsu.js";import{u as yt}from"./useManaRate-BrpK_vbN.js";import{L as jt}from"./LoadMore-Cbr521EF.js";import{u as f}from"./useInfiniteGrid-BsvaZzST.js";import"./sentry-gZJVwIqQ.js";import"./dcl-schemas-BICTSpB5.js";import"./ethers-BteKixT0.js";import"./intl-CBcMB1D2.js";const bt=15e3;function vt(t,i){return t.txHash&&i.txHash?t.txHash===i.txHash:t.txHash||i.txHash?!1:t.status===i.status&&Math.abs(t.createdAt-i.createdAt)<=bt}function kt(t){const i=[...t].sort((n,a)=>a.createdAt-n.createdAt),r=[];for(const n of i){const a=r[r.length-1];a&&vt(a[a.length-1],n)?a.push(n):r.push([n])}return r.map(n=>{var a;return{id:((a=n.find(c=>c.txHash))==null?void 0:a.txHash)??n[n.length-1].id,createdAt:Math.max(...n.map(c=>c.createdAt)),status:n.some(c=>c.status==="PENDING")?"PENDING":"SETTLED",totalCredits:n.reduce((c,u)=>c+u.credits,0),lines:n}})}function wt(t){const i=[],r=new Map;for(const n of t)if(n.tradeId){const a=r.get(n.tradeId);if(a){a.quantity+=1,a.credits+=n.credits;continue}const c={key:n.tradeId,tradeId:n.tradeId,quantity:1,credits:n.credits};r.set(n.tradeId,c),i.push(c)}else i.push({key:n.id,tradeId:null,quantity:1,credits:n.credits});return i}function It(t,i){return{id:t.id,contractAddress:t.contractAddress,tokenId:t.tokenId,itemId:t.itemId,counterparty:t.buyer,credits:i?ft(t.manaWei,i):null,manaWei:t.manaWei,createdAt:t.createdAt,txHash:t.txHash}}function $t(t){const r=kt(t.purchases.filter(s=>s.status!=="EXPIRED")).map(s=>({kind:"purchase",id:`purchase:${s.id}`,createdAt:s.createdAt,order:s})),n=t.sales.map(s=>{const x=It(s,t.rate);return{kind:"sale",id:`sale:${x.id}`,createdAt:x.createdAt,sale:x}}),a=(t.creditOrders??[]).filter(s=>s.status!=="EXPIRED").map(s=>({kind:"credit",id:`credit:${s.id}`,createdAt:s.createdAt,order:s})),c=new Set(t.purchases.filter(s=>s.txHash).map(s=>s.txHash.toLowerCase())),u=(t.manaPurchases??[]).filter(s=>!c.has(s.txHash.toLowerCase())).map(s=>({kind:"mana-purchase",id:`mana-purchase:${s.id}`,createdAt:s.createdAt,sale:s}));return[...r,...n,...a,...u].sort((s,x)=>x.createdAt-s.createdAt||(s.id<x.id?-1:1))}function At(t,i){return i==="all"?t:i==="sales"?t.filter(r=>r.kind==="sale"):t.filter(r=>r.kind==="purchase"||r.kind==="credit"||r.kind==="mana-purchase")}const J=t=>t.trim().toLowerCase();function Pt(t){const i=new Map;for(const r of t??[]){const n=J(r.txHash??"");if(!n)continue;const a=i.get(n);a?a.push(r):i.set(n,[r])}return i}function Nt(t,i,r=Date.now()){const n=i.txHash?t.get(J(i.txHash)):void 0;if(!n||n.length===0)return{kind:"direct"};const a=n.length===1?Lt(n[0].netCents):null,c=n.filter(s=>!s.available&&s.availableAt>r);if(c.length===0)return{kind:"credited",credits:a};const u=c.reduce((s,x)=>Math.max(s,x.availableAt),0);return{kind:"pending",credits:a,availableAt:u}}function Lt(t){return Math.floor(t/10)}const Et="https://cdn.decentraland.org/@dcl/shop/0.1.0-30341552356.commit-1157de5/assets/credits-product-vs4Q6u6l.svg",T=lt`
|
|
2
2
|
0% { background-position: 200% 0; }
|
|
3
3
|
100% { background-position: -200% 0; }
|
|
4
4
|
`,Tt=l.section`
|
|
@@ -80,10 +80,10 @@ import{r as j,j as e,L as _,e as dt}from"./react-BW1xvPTF.js";import{s as l,K as
|
|
|
80
80
|
flex-direction: column;
|
|
81
81
|
gap: 2px;
|
|
82
82
|
min-width: 0;
|
|
83
|
-
|
|
83
|
+
`,$=l.span`
|
|
84
84
|
font-weight: 700;
|
|
85
85
|
color: ${o.colors.text};
|
|
86
|
-
|
|
86
|
+
`,A=l.span`
|
|
87
87
|
font-size: 13px;
|
|
88
88
|
color: ${o.colors.muted};
|
|
89
89
|
`,P=l.div`
|
|
@@ -284,4 +284,4 @@ import{r as j,j as e,L as _,e as dt}from"./react-BW1xvPTF.js";import{s as l,K as
|
|
|
284
284
|
margin: 6px 0 0;
|
|
285
285
|
`,Ot=l(ht)`
|
|
286
286
|
margin-top: 12px;
|
|
287
|
-
`,q=L.withComponent(_),y=24,Rt=["all","purchases","sales"];function m(t){try{return new Date(t).toLocaleDateString(void 0,{year:"numeric",month:"short",day:"numeric"})}catch{return""}}function tt(t){return t.length>10?`${t.slice(0,6)}…${t.slice(-4)}`:t}function et(t){const i=Number(t)/1e18;return Number.isFinite(i)?i.toLocaleString("en",{maximumFractionDigits:2}):"0"}function it({children:t}){const i=j.useRef(null),[r,n]=j.useState(null),a=()=>{var u;const c=(u=i.current)==null?void 0:u.getBoundingClientRect();c&&n({top:c.bottom+8,left:c.left+c.width/2})};return e.jsxs(Ht,{ref:i,tabIndex:0,onMouseEnter:a,onMouseLeave:()=>n(null),onFocus:a,onBlur:()=>n(null),children:[t,r?dt.createPortal(e.jsx(zt,{style:{top:r.top,left:r.left},role:"tooltip",children:d("activity.polygonMana")}),document.body):null]})}function Wt({item:t}){const{data:i,isLoading:r}=b({queryKey:["trade-display",t.tradeId],queryFn:()=>gt(t.tradeId),enabled:!!t.tradeId,staleTime:3e5}),n=!!t.tradeId&&r,a=(i==null?void 0:i.name)??d("activity.itemFallback"),c=(i==null?void 0:i.thumbnail)??"",u=E({contractAddress:i==null?void 0:i.contractAddress,tokenId:i==null?void 0:i.tokenId,itemId:i==null?void 0:i.itemId})??void 0,s=e.jsxs(e.Fragment,{children:[n?e.jsx(F,{}):e.jsx(S,{children:c?e.jsx("img",{src:c,alt:a}):e.jsx(g,{name:"cart",size:20})}),e.jsxs(M,{children:[n?e.jsx(H,{}):e.jsx(D,{title:a,children:a}),t.quantity>1?e.jsx(z,{children:d("activity.quantity",{count:t.quantity})}):null]}),e.jsxs(qt,{children:[e.jsx(v,{className:"ccy-mark"})," ",t.credits]})]});return u?e.jsx(q,{to:u,"data-link":"true",children:s}):e.jsx(L,{children:s})}function Gt({order:t}){const i=wt(t.lines),r=i.reduce((n,a)=>n+a.quantity,0);return e.jsxs(k,{"data-testid":"purchase-order",children:[e.jsxs(w,{children:[e.jsxs(I,{children:[e.jsx(
|
|
287
|
+
`,q=L.withComponent(_),y=24,Rt=["all","purchases","sales"];function m(t){try{return new Date(t).toLocaleDateString(void 0,{year:"numeric",month:"short",day:"numeric"})}catch{return""}}function tt(t){return t.length>10?`${t.slice(0,6)}…${t.slice(-4)}`:t}function et(t){const i=Number(t)/1e18;return Number.isFinite(i)?i.toLocaleString("en",{maximumFractionDigits:2}):"0"}function it({children:t}){const i=j.useRef(null),[r,n]=j.useState(null),a=()=>{var u;const c=(u=i.current)==null?void 0:u.getBoundingClientRect();c&&n({top:c.bottom+8,left:c.left+c.width/2})};return e.jsxs(Ht,{ref:i,tabIndex:0,onMouseEnter:a,onMouseLeave:()=>n(null),onFocus:a,onBlur:()=>n(null),children:[t,r?dt.createPortal(e.jsx(zt,{style:{top:r.top,left:r.left},role:"tooltip",children:d("activity.polygonMana")}),document.body):null]})}function Wt({item:t}){const{data:i,isLoading:r}=b({queryKey:["trade-display",t.tradeId],queryFn:()=>gt(t.tradeId),enabled:!!t.tradeId,staleTime:3e5}),n=!!t.tradeId&&r,a=(i==null?void 0:i.name)??d("activity.itemFallback"),c=(i==null?void 0:i.thumbnail)??"",u=E({contractAddress:i==null?void 0:i.contractAddress,tokenId:i==null?void 0:i.tokenId,itemId:i==null?void 0:i.itemId})??void 0,s=e.jsxs(e.Fragment,{children:[n?e.jsx(F,{}):e.jsx(S,{children:c?e.jsx("img",{src:c,alt:a}):e.jsx(g,{name:"cart",size:20})}),e.jsxs(M,{children:[n?e.jsx(H,{}):e.jsx(D,{title:a,children:a}),t.quantity>1?e.jsx(z,{children:d("activity.quantity",{count:t.quantity})}):null]}),e.jsxs(qt,{children:[e.jsx(v,{className:"ccy-mark"})," ",t.credits]})]});return u?e.jsx(q,{to:u,"data-link":"true",children:s}):e.jsx(L,{children:s})}function Gt({order:t}){const i=wt(t.lines),r=i.reduce((n,a)=>n+a.quantity,0);return e.jsxs(k,{"data-testid":"purchase-order",children:[e.jsxs(w,{children:[e.jsxs(I,{children:[e.jsx($,{children:m(t.createdAt)}),e.jsxs(A,{children:[d("activity.purchaseLabel")," · ",d("activity.itemCount",{count:r})]})]}),e.jsxs(P,{children:[e.jsx(N,{"data-status":t.status,children:t.status==="PENDING"?d("activity.processing"):d("activity.completed")}),e.jsxs(p,{children:[e.jsx(v,{className:"ccy-mark"})," ",t.totalCredits]})]})]}),e.jsx(C,{children:i.map(n=>e.jsx(Wt,{item:n},n.key))})]})}function Bt({sale:t}){const{data:i,isLoading:r}=b({queryKey:["asset-display",t.contractAddress,t.tokenId,t.itemId],queryFn:()=>Q(t.contractAddress,{tokenId:t.tokenId,itemId:t.itemId}),enabled:!!t.contractAddress,staleTime:3e5}),n=(i==null?void 0:i.name)??d("activity.itemFallback"),a=(i==null?void 0:i.thumbnail)??"",c=E({contractAddress:t.contractAddress,tokenId:t.tokenId,itemId:t.itemId})??void 0,u=e.jsxs(e.Fragment,{children:[r?e.jsx(F,{}):e.jsx(S,{children:a?e.jsx("img",{src:a,alt:n}):e.jsx(g,{name:"offer",size:20})}),e.jsxs(M,{children:[r?e.jsx(H,{}):e.jsx(D,{title:n,children:n}),e.jsx(z,{children:d("activity.boughtFrom",{account:tt(t.seller)})})]})]});return e.jsxs(k,{"data-testid":"activity-mana-purchase",children:[e.jsxs(w,{children:[e.jsxs(I,{children:[e.jsx($,{children:m(t.createdAt)}),e.jsx(A,{children:d("activity.paidWithMana")})]}),e.jsxs(P,{children:[e.jsx(N,{"data-status":"SETTLED",children:d("activity.completed")}),e.jsxs(p,{children:[et(t.manaWei)," ",e.jsx(it,{children:e.jsx(Z,{src:X,alt:"MANA"})})]})]})]}),e.jsx(C,{children:c?e.jsx(q,{to:c,"data-link":"true",children:u}):e.jsx(L,{children:u})})]})}function Kt({sale:t,payout:i}){const{data:r,isLoading:n}=b({queryKey:["asset-display",t.contractAddress,t.tokenId,t.itemId],queryFn:()=>Q(t.contractAddress,{tokenId:t.tokenId,itemId:t.itemId}),enabled:!!t.contractAddress,staleTime:3e5}),a=(r==null?void 0:r.name)??d("activity.itemFallback"),c=(r==null?void 0:r.thumbnail)??"",u=E({contractAddress:t.contractAddress,tokenId:t.tokenId,itemId:t.itemId})??void 0,s=e.jsxs(e.Fragment,{children:[n?e.jsx(F,{}):e.jsx(S,{children:c?e.jsx("img",{src:c,alt:a}):e.jsx(g,{name:"offer",size:20})}),e.jsxs(M,{children:[n?e.jsx(H,{}):e.jsx(D,{title:a,children:a}),e.jsxs(z,{children:[d("activity.soldTo",{account:tt(t.counterparty)}),i.kind==="pending"?` · ${d("activity.payoutPendingOn",{date:m(i.availableAt)})}`:""]})]})]});return e.jsxs(k,{"data-testid":"activity-sale",children:[e.jsxs(w,{children:[e.jsxs(I,{children:[e.jsx($,{children:m(t.createdAt)}),e.jsx(A,{children:d("activity.saleLabel")})]}),e.jsxs(P,{children:[e.jsx(N,{"data-status":i.kind==="pending"?"PENDING":"SOLD",children:i.kind==="pending"?d("activity.payoutPending"):d("activity.sold")}),i.kind==="direct"?e.jsxs(p,{"data-kind":"income",children:["+",et(t.manaWei)," ",e.jsx(it,{children:e.jsx(Z,{src:X,alt:"MANA"})})]}):i.credits!==null?e.jsxs(p,{"data-kind":"income",children:[e.jsx(v,{className:"ccy-mark"})," +",mt(i.credits)]}):e.jsx(p,{"data-kind":"income",children:d("activity.payoutCredited")})]})]}),e.jsx(C,{children:u?e.jsx(q,{to:u,"data-link":"true",children:s}):e.jsx(L,{children:s})})]})}function Ut({order:t}){const i=`$${(t.usdCents/100).toFixed(2)}`;return e.jsx(k,{"data-testid":"credit-order",children:e.jsxs(w,{children:[e.jsx(Dt,{children:e.jsx("img",{src:Et,alt:"","aria-hidden":!0})}),e.jsxs(I,{children:[e.jsx($,{children:m(t.createdAt)}),e.jsxs(A,{children:[d("activity.creditPurchaseLabel")," · ",d("activity.creditPaid",{usd:i})]})]}),e.jsxs(P,{children:[e.jsx(N,{"data-status":t.status,children:t.status==="PENDING"?d("activity.processing"):d("activity.completed")}),e.jsxs(p,{"data-kind":"income",children:["+",e.jsx(v,{className:"ccy-mark"})," ",t.credits]})]})]})})}function _t({filter:t}){const i={all:{icon:"clock",title:d("activity.emptyAllTitle"),body:d("activity.emptyAllBody")},purchases:{icon:"cart",title:d("activity.emptyPurchasesTitle"),body:d("activity.emptyPurchasesBody")},sales:{icon:"offer",title:d("activity.emptySalesTitle"),body:d("activity.emptySalesBody")}}[t];return e.jsxs(V,{children:[e.jsx(g,{name:i.icon,size:40,color:"var(--muted-2)"}),e.jsx(Y,{children:i.title}),e.jsx("p",{className:"muted",children:i.body}),t!=="sales"?e.jsx(Ot,{as:_,to:"/assets",variant:"purple",children:d("notFound.cta")}):null]})}function ae(){ut({title:d("nav.activity"),noindex:!0});const{session:t}=xt(),[i,r]=j.useState("all"),n=!!t&&i!=="sales",a=!!t&&i!=="purchases",c=f(["purchases",t==null?void 0:t.address],h=>pt(t.address,t.identity,{first:y,skip:h}),{enabled:n}),u=f(["sales",t==null?void 0:t.address],h=>G(t.address,{role:"seller",first:y,skip:h}),{enabled:a}),s=f(["credit-orders",t==null?void 0:t.address],h=>B(t.address,t.identity,{first:y,skip:h}),{enabled:n}),x=f(["mana-purchases",t==null?void 0:t.address],h=>G(t.address,{role:"buyer",first:y,skip:h}),{enabled:n}),{data:O}=b({queryKey:["sale-payouts",t==null?void 0:t.address],queryFn:()=>B(t.address,t.identity,{first:200}).then(h=>h.payouts),enabled:a,staleTime:6e4}),nt=j.useMemo(()=>Pt(O),[O]),{data:at}=yt(a);if(!t)return e.jsxs(V,{children:[e.jsx(g,{name:"clock",size:40,color:"var(--muted-2)"}),e.jsx(Y,{children:d("activity.signInTitle")}),e.jsx("p",{className:"muted",children:d("activity.signInBody")})]});const R=At($t({purchases:n?c.items:[],sales:a?u.items:[],creditOrders:n?s.items:[],manaPurchases:n?x.items:[],rate:at}),i),st=n&&(c.isLoading||s.isLoading||x.isLoading)||a&&u.isLoading,W=n&&(c.isFetchingNextPage||s.isFetchingNextPage||x.isFetchingNextPage)||a&&u.isFetchingNextPage,rt=n&&(c.hasNextPage||s.hasNextPage||x.hasNextPage)||a&&u.hasNextPage;function ot(){n&&c.hasNextPage&&c.fetchNextPage(),n&&s.hasNextPage&&s.fetchNextPage(),n&&x.hasNextPage&&x.fetchNextPage(),a&&u.hasNextPage&&u.fetchNextPage()}return e.jsxs(Tt,{children:[e.jsx(Ct,{children:e.jsx(St,{children:d("nav.activity")})}),e.jsx(Ft,{role:"tablist","aria-label":d("nav.activity"),children:Rt.map(h=>e.jsx(Mt,{type:"button",role:"tab","aria-selected":i===h,"data-active":i===h,"data-testid":`activity-filter-${h}`,onClick:()=>r(h),children:d(`activity.filter.${h}`)},h))}),st?e.jsx(K,{children:Array.from({length:5}).map((h,ct)=>e.jsx(U,{},ct))}):R.length===0?e.jsx(_t,{filter:i}):e.jsxs(e.Fragment,{children:[e.jsxs(K,{children:[R.map(h=>h.kind==="purchase"?e.jsx(Gt,{order:h.order},h.id):h.kind==="credit"?e.jsx(Ut,{order:h.order},h.id):h.kind==="mana-purchase"?e.jsx(Bt,{sale:h.sale},h.id):e.jsx(Kt,{sale:h.sale,payout:Nt(nt,h.sale)},h.id)),W?e.jsx(U,{}):null]}),e.jsx(jt,{hasNextPage:rt,isFetching:W,onLoadMore:ot})]})]})}export{ae as Activity};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as l,j as v}from"./react-
|
|
1
|
+
import{r as l,j as v}from"./react-B36MyIP_.js";const w="https://cdn.decentraland.org/@dcl/shop/0.1.0-30341552356.commit-1157de5/assets/custom-welcome-background-BxlFQma9.webp",S="https://cdn.decentraland.org/@dcl/shop/0.1.0-30341552356.commit-1157de5/assets/DCL_LogoPattern-BryBPc3d.png",U=`
|
|
2
2
|
attribute vec2 a_position;
|
|
3
3
|
varying vec2 v_uv;
|
|
4
4
|
void main() {
|
|
@@ -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; }
|