@dcl/shop 0.1.0 → 0.1.1-30905311281.commit-bd65ce1
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-BwdIaUnW.js → Activity-GrkE7VO-.js} +7 -7
- package/_assets/{AnimatedBackground-DP8XKTVN.js → AnimatedBackground-B2WbeOyH.js} +1 -1
- package/_assets/{Assets-Degiynxt.js → Assets-BSiAYmAF.js} +50 -50
- package/_assets/{Assets.styles-CmDKBB8r.js → Assets.styles-BBSBHKT_.js} +1 -1
- package/_assets/{Authorizations-CJeq3VNJ.js → Authorizations-CfdC4vJZ.js} +7 -7
- package/_assets/{Cart-DsUb4sI3.js → Cart-FMQcb5oF.js} +12 -12
- package/_assets/{CircularProgress-CNroeQ3o.js → CircularProgress-BYGAxo8F.js} +5 -5
- package/_assets/Collection-D3-7VRBZ.js +119 -0
- package/_assets/{CollectionCarousel-D36c6dts.js → CollectionCarousel-DOg9AkpY.js} +7 -7
- package/_assets/{ConstantsUtil-Dfwpy1eP.js → ConstantsUtil-CNJ3pGKv.js} +1 -1
- package/_assets/{ContentClient-D6ofwSpu.js → ContentClient-BJFWm8Bs.js} +1 -1
- package/_assets/Creator-DPQ89FUE.js +306 -0
- package/_assets/{DeploymentBuilder-ku3det23.js → DeploymentBuilder-CXBC22K0.js} +1 -1
- package/_assets/{ErrorNotice-COIh7ro4.js → ErrorNotice-CG70XlrM.js} +1 -1
- package/_assets/{ExchangeController-DOL-_brz.js → ExchangeController-2qaxEgDW.js} +1 -1
- package/_assets/{GetCredits-BkjOQ5or.js → GetCredits-Dsa5j2yj.js} +10 -10
- package/_assets/{HelpersUtil-2hZP33Du.js → HelpersUtil-BDtBB8u9.js} +1 -1
- package/_assets/ImportListings-CYoiHHNM.js +461 -0
- package/_assets/{ItemDetail-D57x9bXl.js → ItemDetail-CSqoVzAv.js} +251 -281
- package/_assets/LoadMore-BkVyRkRR.js +7 -0
- package/_assets/ManaPricingBanner.styles-CkcEGj89.js +74 -0
- package/_assets/{MenuList-d6ca0DH6.js → MenuList-WtilAhAm.js} +2 -2
- package/_assets/MyAssets-BcZc881x.js +381 -0
- package/_assets/{MyFavorites-DxYh88wB.js → MyFavorites-CWWlY9W8.js} +2 -2
- package/_assets/{NetworkUtil-HlUKXKcF.js → NetworkUtil-Dh3JWXso.js} +1 -1
- package/_assets/{NotFound-DA15lCMu.js → NotFound-CPOhtaYp.js} +1 -1
- package/_assets/{NotificationsBell-C8r1c8mg.js → NotificationsBell-CArWfHst.js} +1 -1
- package/_assets/StoreSettings-BYuRZ27f.js +239 -0
- package/_assets/Success-8PevtucR.js +296 -0
- package/_assets/{SwapController-CRz8E17o.js → SwapController-Dv0g4_9X.js} +1 -1
- package/_assets/{Tooltip-D92WFEmr.js → Tooltip-Bgo8Ksc1.js} +1 -1
- package/_assets/{TradeService-DIWR3GwD.js → TradeService-hLcprAJc.js} +1 -1
- package/_assets/{W3MFrameProviderSingleton-BuQKbZaF.js → W3MFrameProviderSingleton-Dfip8R4b.js} +3 -3
- package/_assets/{WebCryptoP256-BFDAPngw.js → WebCryptoP256-DeJaj7B2.js} +1 -1
- package/_assets/{authorizations-BNs0emga.js → authorizations-BrKjhs8b.js} +1 -1
- package/_assets/{basic-C6XisVyZ.js → basic-B5bA604g.js} +1 -1
- package/_assets/{biconomy-09nDKxxN.js → biconomy-CGiyooSO.js} +1 -1
- package/_assets/{browseLayout.styles-CTl6D_zv.js → browseLayout.styles-CYeCM6pN.js} +6 -6
- package/_assets/{browser-BGlawS--.js → browser-CMge1DAk.js} +1 -1
- package/_assets/{browser-ponyfill-Dm9rZGtt.js → browser-ponyfill-DdemUjDS.js} +1 -1
- package/_assets/{builder-C8hUH3RB.js → builder-CNplWENd.js} +1 -1
- package/_assets/{buy-Cl7snZzi.js → buy-ZKAS9pN5.js} +1 -1
- package/_assets/{buy-gasless-DVLP7U8S.js → buy-gasless-BlIl8CAx.js} +1 -1
- package/_assets/{categories-BGGjSLd9.js → categories-VA9g1JVo.js} +8 -8
- package/_assets/{ccip-DLDLk2fK.js → ccip-CV1cRC1z.js} +1 -1
- package/_assets/{ccip-Dx_KcJBs.js → ccip-CbbPg3cG.js} +1 -1
- package/_assets/{chains-DjVUcpdx.js → chains-DwiEm2Ny.js} +1 -1
- package/_assets/{clsx-BY1AO2V7.js → clsx-BvPAQ91N.js} +2 -2
- package/_assets/{common-BzdjGk0Y.js → common-ChK99Sbg.js} +1 -1
- package/_assets/confettiAnimation-BpyTLLuX.js +1 -0
- package/_assets/{controller-ZqrzYJ4o.js → controller-C46cczp2.js} +2 -2
- package/_assets/{core-CWR04nJr.js → core-BlEUgVCM.js} +4 -4
- package/_assets/{createSvgIcon-BUIodiet.js → createSvgIcon-ucWfFmAy.js} +5 -5
- package/_assets/{custom-DMjRmtpL.js → custom-BodWgp77.js} +1 -1
- package/_assets/{data-capture-SoaOqGRY.js → data-capture-C0rswb-E.js} +1 -1
- package/_assets/{decimals-rMqzXjFU.js → decimals-C49MnWnC.js} +1 -1
- package/_assets/decimals-DenLQ0L2.js +1 -0
- package/_assets/{detectExtension-0JcORGBX.js → detectExtension-Bs6N_T7E.js} +1 -1
- package/_assets/{email-i8v6FMCW.js → email-BhJUQkdf.js} +1 -1
- package/_assets/{embedded-wallet-DBT_Ev8g.js → embedded-wallet-BZ498k4j.js} +1 -1
- package/_assets/emotion-styled.browser.esm-CXuGxLIO.js +1 -0
- package/_assets/{engine-Bn2HNIpq.js → engine-DW1csG0q.js} +1 -1
- package/_assets/{errors-Ce5OngHE.js → errors-B1kCYT-C.js} +1 -1
- package/_assets/estimate-l1-fee-LcXphizT.js +1 -0
- package/_assets/eth_estimateGas-DaegCW9w.js +1 -0
- package/_assets/{eth_getStorageAt-DIGus6Ic.js → eth_getStorageAt-g-V8ByC9.js} +1 -1
- package/_assets/eth_getTransactionCount-ChnmCar0.js +1 -0
- package/_assets/{ethereum-7duKFA0R.js → ethereum-DdnrEX6r.js} +1 -1
- package/_assets/{ethers-CXBJm_wN.js → ethers-rFeF6PNV.js} +1 -1
- package/_assets/{execute-DO9Rpu0c.js → execute-CyRjjGt3.js} +2 -2
- package/_assets/{extractIPFS-CTs5XnuT.js → extractIPFS-DiQ3ktqZ.js} +1 -1
- package/_assets/{features-5tSUGHg0.js → features-H-pXiyxD.js} +1 -1
- package/_assets/{fetchTokenMetadata-CHnDbBcr.js → fetchTokenMetadata-DGA51PxT.js} +2 -2
- package/_assets/field.styles-Duia4Yds.js +70 -0
- package/_assets/{fortmatic-CCMQbesB.js → fortmatic-ZrVXe0if.js} +1 -1
- package/_assets/{get-bytecode-Bg8NviKV.js → get-bytecode-B5xpAv7a.js} +1 -1
- package/_assets/get-ecosystem-wallet-info-PYUEGXYv.js +1 -0
- package/_assets/{getBalance-BU5lPIM1.js → getBalance-CaMEMyij.js} +2 -2
- package/_assets/{getInstalledModules-KP-LSI0j.js → getInstalledModules-vRyVzBkY.js} +1 -1
- package/_assets/getNFT-B2xfffFM.js +1 -0
- package/_assets/{getNFT-Ctbterca.js → getNFT-DHLHip8a.js} +2 -2
- package/_assets/{getThemeProps-xrG7EYWl.js → getThemeProps-CFhOwFZE.js} +1 -1
- package/_assets/{grid.styles-B1mDfzvi.js → grid.styles-C5_2HqYV.js} +1 -1
- package/_assets/{hashTypedData-BiojmScK.js → hashTypedData-C6z8c4MD.js} +1 -1
- package/_assets/{hashTypedData-DaCcjWXS.js → hashTypedData-CxA5vcQg.js} +1 -1
- package/_assets/{in-app-Sb-fFEpv.js → in-app-B3VVZu75.js} +1 -1
- package/_assets/{in-app-wallet-calls-BYLiaB1J.js → in-app-wallet-calls-NChueDYj.js} +1 -1
- package/_assets/{index-Bor4cMvk.js → index-1IqLAbP4.js} +1 -1
- package/_assets/{index-CcRW7qMf.js → index-6_pDklk8.js} +1 -1
- package/_assets/{index-RSxxMPji.js → index-7CvZEF1n.js} +1 -1
- package/_assets/index-B2O7rGJL.js +1 -0
- package/_assets/{index-6HemuoHH.js → index-BBgDP0hK.js} +1 -1
- package/_assets/{index-BBM5Da88.js → index-BCtyPxS3.js} +1 -1
- package/_assets/{index-DNaX9VGC.js → index-BDpTnQoO.js} +1 -1
- package/_assets/{index-Cw22meEP.js → index-BGPVOBHa.js} +1 -1
- package/_assets/{index-DQ2tXB-9.js → index-BHMMC_4O.js} +1 -1
- package/_assets/index-BPF8ilkO.js +2835 -0
- package/_assets/{index-C6rpfPMS.js → index-BU6VB-t3.js} +1 -1
- package/_assets/{index-BzC7P3rh.js → index-BUbZ4ieP.js} +1 -1
- package/_assets/{index-D20v1ehb.js → index-BW8oAO7i.js} +1 -1
- package/_assets/{index-DmGcqzuR.js → index-BcfHH9t_.js} +1 -1
- package/_assets/{index-DC-Z7MbP.js → index-BeWb4L4l.js} +2 -2
- package/_assets/{index-CSqaG5Rs.js → index-BgPYaKQD.js} +1 -1
- package/_assets/{index-8EYFemjW.js → index-BszwI7-F.js} +1 -1
- package/_assets/{index-CEP90DOS.js → index-BtLL7F-4.js} +1 -1
- package/_assets/{index-DWFCwLfs.js → index-C1URrY-M.js} +1 -1
- package/_assets/{index-BgKl-ydS.js → index-C2OVKuQw.js} +1 -1
- package/_assets/{index-DETprG7w.js → index-C2UHqvCW.js} +1 -1
- package/_assets/{index-CcrwUr4B.js → index-CBk3ydx-.js} +2 -2
- package/_assets/{index-DgMAf2q5.js → index-CCoJpS6M.js} +1 -1
- package/_assets/{index-DvlgcdsJ.js → index-CJOr6dB6.js} +1 -1
- package/_assets/{index-hesFTmUX.js → index-CKXANk-4.js} +1 -1
- package/_assets/index-CM6w_8nI.js +1 -0
- package/_assets/{index-BV7d8LIf.js → index-CMDS3HPm.js} +1 -1
- package/_assets/{index-ZoIpzYhg.js → index-CPiDFUQX.js} +1 -1
- package/_assets/{index-cSAleFRI.js → index-CRJZE7cx.js} +1 -1
- package/_assets/{index-DjcstBXY.js → index-CRRF8RCt.js} +1 -1
- package/_assets/{index-CD9t0mSF.js → index-CVFh3u18.js} +1 -1
- package/_assets/{index-DgKHc2Pp.js → index-CYEynknO.js} +1 -1
- package/_assets/{index-BCG-_RTT.js → index-CZ16IQS8.js} +1 -1
- package/_assets/{index-BpA1I7hL.js → index-Cb_IVjn7.js} +1 -1
- package/_assets/{index-CrlwRjah.js → index-Cdo615si.js} +1 -1
- package/_assets/{index-DbkHKS7K.js → index-Cg3ihmNk.js} +2 -2
- package/_assets/{index-Cv-5v5Ze.js → index-Clo3Fg1F.js} +1 -1
- package/_assets/index-Cq-C7Mjz.js +2 -0
- package/_assets/{index-3x98-rKq.js → index-CsEaqK5K.js} +1 -1
- package/_assets/{index-Cso0PIKg.js → index-CsYrPiWy.js} +3 -3
- package/_assets/{index-OiKTI-o_.js → index-Cy2zGOYM.js} +1 -1
- package/_assets/{index-DyGnajSZ.js → index-CzhNRzPP.js} +1 -1
- package/_assets/{index-BQG7R5QF.js → index-D9lnhLj6.js} +1 -1
- package/_assets/{index-BIJ2qchS.js → index-DAFpWy6x.js} +3 -3
- package/_assets/{index-PJSp7ijP.js → index-DDjSOZ8V.js} +3 -3
- package/_assets/{index-BEtbI0Zv.js → index-DHwt0vb4.js} +1 -1
- package/_assets/{index-BNEWEGXe.js → index-DOAE0QEO.js} +1 -1
- package/_assets/{index-BsQQxLJN.js → index-DPAjGfpc.js} +1 -1
- package/_assets/{index-CKo0vnRV.js → index-DSVlJ1Vv.js} +1 -1
- package/_assets/{index-DLEx9ISf.js → index-DURQ3wGL.js} +1 -1
- package/_assets/{index-BbxUYBIl.js → index-DUbZL3ek.js} +2 -2
- package/_assets/{index-DFzHpbP5.js → index-DkdxS38k.js} +1 -1
- package/_assets/{index-CSu0sG0T.js → index-DxFE5RAv.js} +1 -1
- package/_assets/{index-CviVJpxw.js → index-Dy68R7vg.js} +1 -1
- package/_assets/{index-CE-Z89iI.js → index-J-y1Lv9h.js} +1 -1
- package/_assets/{index-BdWG2PoE.js → index-P093oSxa.js} +1 -1
- package/_assets/{index-Bb2mLVTh.js → index-ZhQgcJLf.js} +1 -1
- package/_assets/{index-DMKhInQc.js → index-_LRBYo4I.js} +2 -2
- package/_assets/{index-CcZyuO92.js → index-dfEAyxw_.js} +1 -1
- package/_assets/{index-BNnLGudB.js → index-h4cpsghF.js} +1 -1
- package/_assets/{index-Fyrl3bgj.js → index-jDLQZQqn.js} +1 -1
- package/_assets/{index-qVmIz0zn.js → index-vU7f754e.js} +1 -1
- package/_assets/{index-B4EKT3oF.js → index-vjAUZXF9.js} +1 -1
- package/_assets/{index.es-DWjGiGDB.js → index.es--4TAe7Yh.js} +4 -4
- package/_assets/index.es-CWcx_MPC.js +11 -0
- package/_assets/{index.es-BWoKVfSl.js → index.es-D5hG4NyN.js} +1 -1
- package/_assets/{index.es-4ugP_xPq.js → index.es-DWx9M2rV.js} +1 -1
- package/_assets/{linkAccount-D303ryxj.js → linkAccount-DktwtO-V.js} +1 -1
- package/_assets/{localBatchGatewayRequest-DxATZPfq.js → localBatchGatewayRequest-COrvwYLX.js} +1 -1
- package/_assets/{mana-convert-BAmJatVq.js → mana-convert-B9NP2Z0B.js} +1 -1
- package/_assets/{mana-rate-COZYJ-5D.js → mana-rate-C2HetDGb.js} +1 -1
- package/_assets/{native-BbO8hggJ.js → native-DUHK6GYV.js} +1 -1
- package/_assets/{networks-BgOd8fAQ.js → networks-BaMTQLmr.js} +1 -1
- package/_assets/{onramp-C1zk7UMI.js → onramp-BSZ-A4yQ.js} +1 -1
- package/_assets/{openzeppelin-JqnI3fjU.js → openzeppelin-C0oTxo3q.js} +1 -1
- package/_assets/{ownerOf-B0AowHTZ.js → ownerOf-9FPRCliB.js} +1 -1
- package/_assets/parseNft-DMB99UwI.js +2 -0
- package/_assets/{parseSignature-Zp5jbuFC.js → parseSignature-D0igRFD_.js} +1 -1
- package/_assets/{parseSignature-DDl2oW2S.js → parseSignature-DeT9UzDL.js} +3 -3
- package/_assets/{passkeys-D630VzP0.js → passkeys-DKDDFYek.js} +1 -1
- package/_assets/{pay-with-exchange-DB12e4gP.js → pay-with-exchange-BmOLblQf.js} +1 -1
- package/_assets/{prepare-contract-call-BreQKHF6.js → prepare-contract-call-CUP20AbD.js} +1 -1
- package/_assets/{qr-overlay-BFMFKV4B.js → qr-overlay-L21AteZj.js} +3 -3
- package/_assets/{react-vyZjIDcS.js → react-IQWs2nb4.js} +1 -1
- package/_assets/{receive-C0p5nZhH.js → receive-CoUhMmdc.js} +1 -1
- package/_assets/{resolveImplementation-Cpqxrq_P.js → resolveImplementation-Bkc-n5Jh.js} +1 -1
- package/_assets/{rpc-BGoWvIYj.js → rpc-CXRk2mf9.js} +1 -1
- package/_assets/{secp256k1-CxwkeDtE.js → secp256k1-Cq7jLr46.js} +1 -1
- package/_assets/{secp256k1-JugqR1gN.js → secp256k1-M1cXRaoG.js} +1 -1
- package/_assets/{secp256k1-DN4fbJll.js → secp256k1-qyRd7pkL.js} +1 -1
- package/_assets/{send-DQo6irxp.js → send-EDmzg2eP.js} +1 -1
- package/_assets/{send-batch-transaction-BwQeKmX0.js → send-batch-transaction-DaYsV6YT.js} +1 -1
- package/_assets/{send-eip712-transaction-Di3Pi2C5.js → send-eip712-transaction-WRBKw74V.js} +2 -2
- package/_assets/send-gasless-transaction-C8SnfQRx.js +2 -0
- package/_assets/{send-transaction-CboskMcL.js → send-transaction-D0csPeAU.js} +2 -2
- package/_assets/{sendMetaTransaction-DfeiXpP_.js → sendMetaTransaction-DOi8TRt-.js} +1 -1
- package/_assets/{sendRawTransaction-BgAwN3aK.js → sendRawTransaction-CRD-p2Vl.js} +3 -3
- package/_assets/{sentry-B35L1FdR.js → sentry-DvOx8Rfb.js} +1 -1
- package/_assets/{serializeTransaction-Cn_3vzYE.js → serializeTransaction-0mSuECpp.js} +1 -1
- package/_assets/{session-proposal-B7rpIMJh.js → session-proposal-BP4flTpO.js} +1 -1
- package/_assets/{session-request--BJtbaZK.js → session-request-BuP42oSz.js} +2 -2
- package/_assets/{sha256-NdAeiB0X.js → sha256-Dx4Jqb1P.js} +1 -1
- package/_assets/{signing-DiwulEsw.js → signing-Dp5kk7SL.js} +3 -3
- package/_assets/{socials-054eJtzB.js → socials-DmoOLrH1.js} +1 -1
- package/_assets/{swaps-BPYOHTwx.js → swaps-DX00A15b.js} +1 -1
- package/_assets/{thirdweb-bX_k_ayM.js → thirdweb-DdMLyVAy.js} +3 -3
- package/_assets/{to-serializable-transaction-caU-fqUx.js → to-serializable-transaction-CJY5t4QM.js} +2 -2
- package/_assets/{totalSupply-BVfGieGk.js → totalSupply-CLQexq9U.js} +1 -1
- package/_assets/{trade-encoding-CXbhpVj8.js → trade-encoding-CD1vf5c2.js} +1 -1
- package/_assets/{transaction-8aHmZ7ni.js → transaction-ToPxlTkC.js} +1 -1
- package/_assets/{transactionReceipt-BzQM-iWX.js → transactionReceipt-Bp53m5AI.js} +1 -1
- package/_assets/{transactions-UfEKiBWb.js → transactions-CeJGbyxd.js} +1 -1
- package/_assets/useCreditPacks-DL0kBPgQ.js +1 -0
- package/_assets/useInfiniteGrid-BGNr4CGd.js +1 -0
- package/_assets/useManaRate-zypDb0bE.js +1 -0
- package/_assets/{useSecondarySales-BUPg_0HB.js → useSecondarySales-ucl64f15.js} +1 -1
- package/_assets/{useStore-j0moew7P.js → useStore-DMY2JBwp.js} +2 -2
- package/_assets/useTheme-BbXQcBIi.js +1 -0
- package/_assets/{utils-jd03xFBb.js → utils-BgbaLlfC.js} +1 -1
- package/_assets/{verifyHash-BlPjp8uI.js → verifyHash-Dz3sBRBH.js} +1 -1
- package/_assets/{w3m-modal-CJSqLQbS.js → w3m-modal-0E3czBsF.js} +1 -1
- package/_assets/{w3m-modal-B1fkdBpv.js → w3m-modal-3yM7tjta.js} +1 -1
- package/_assets/{wait-for-tx-receipt-nJ13gHYr.js → wait-for-tx-receipt-x502zndE.js} +1 -1
- package/_assets/{wallets-BfXeGzQ3.js → wallets-DpY6OXoi.js} +5 -5
- package/_assets/{web-connector-D6DeRRYN.js → web-connector-BaFhgOTd.js} +3 -3
- package/_assets/{writeContract-D1XhZg5B.js → writeContract-RV5FBYsL.js} +1 -1
- package/_assets/{zora-sepolia-Bt1F-uU9.js → zora-sepolia-BOt0KLBF.js} +1 -1
- package/_assets/{zoraTestnet-YWrqaPWn.js → zoraTestnet-Bq23i0ay.js} +1 -1
- package/index.html +11 -11
- package/package.json +2 -2
- package/_assets/Collection-CP0tfCsZ.js +0 -119
- package/_assets/Creator-CWs_Cx5f.js +0 -306
- package/_assets/ImportListings-DryzCKJV.js +0 -447
- package/_assets/LoadMore-BsvftUzw.js +0 -7
- package/_assets/MyAssets-OTnYju0y.js +0 -258
- package/_assets/StoreSettings-2jXFUoeV.js +0 -253
- package/_assets/Success-2HbLWhw3.js +0 -276
- package/_assets/decimals-CTAJwKFW.js +0 -1
- package/_assets/emotion-styled.browser.esm-C5sYTDtN.js +0 -1
- package/_assets/estimate-l1-fee-BYqkQ2bZ.js +0 -1
- package/_assets/eth_estimateGas-BfIHMLbI.js +0 -1
- package/_assets/eth_getTransactionCount-CmmgCgZ1.js +0 -1
- package/_assets/get-ecosystem-wallet-info-43Mjiw6m.js +0 -1
- package/_assets/getNFT-bNpY4yta.js +0 -1
- package/_assets/import-DbH_aWZX.js +0 -1
- package/_assets/index-9H7pG6F1.js +0 -1
- package/_assets/index-B3FH4SmC.js +0 -1
- package/_assets/index-CVMO2zcQ.js +0 -2
- package/_assets/index-Cn-oc3fB.js +0 -2835
- package/_assets/parseNft-yDYimY68.js +0 -2
- package/_assets/send-gasless-transaction-CCblCzAN.js +0 -2
- package/_assets/useCreditPacks-Ceg0Oam0.js +0 -1
- package/_assets/useInfiniteGrid-YGnKZcnB.js +0 -1
- package/_assets/useManaRate-BhMxx3e3.js +0 -1
- package/_assets/useTheme-cGCeJmwR.js +0 -1
|
@@ -0,0 +1,381 @@
|
|
|
1
|
+
import{r as d,j as t,L as nt,b as ot,e as rt}from"./react-IQWs2nb4.js";import{t as n,s as i,e as o,I as C,p as it,m as at,n as ct,H as ue,u as M,B as lt,S as Z,K as X,y as dt,c as Ae,aJ as pt,aK as mt}from"./index-BPF8ilkO.js";import{C as ut,R as ft,B as xt,T as ht,A as gt,a as yt,f as bt}from"./ManaPricingBanner.styles-CkcEGj89.js";import{a as wt}from"./builder-CNplWENd.js";import{L as jt}from"./LoadMore-BkVyRkRR.js";import{R as ee,a as $t,C as St,F as kt,e as fe}from"./categories-VA9g1JVo.js";import{D as xe,F as he,R as vt,a as Ct,b as It,c as At,d as Pt,S as Et,e as Rt,f as Tt,g as Ot,h as Ft,i as _t,j as zt,k as Bt,C as Nt,l as Lt,m as Kt,n as Mt,M as Gt}from"./Assets.styles-BBSBHKT_.js";import{u as qt}from"./useInfiniteGrid-BGNr4CGd.js";import{u as Dt}from"./useSecondarySales-ucl64f15.js";import{E as ge}from"./ErrorNotice-CG70XlrM.js";import{C as Ht}from"./field.styles-Duia4Yds.js";import{n as Pe}from"./Tooltip-Bgo8Ksc1.js";import"./sentry-DvOx8Rfb.js";import"./dcl-schemas-BICTSpB5.js";import"./ethers-rFeF6PNV.js";import"./intl-CBcMB1D2.js";import"./buy-ZKAS9pN5.js";import"./authorizations-BrKjhs8b.js";import"./sendMetaTransaction-DOi8TRt-.js";import"./trade-encoding-CD1vf5c2.js";import"./mana-rate-C2HetDGb.js";import"./mana-convert-B9NP2Z0B.js";const{colors:m,font:Ee,radius:se,z:Ut}=n,Wt=i.div`
|
|
2
|
+
position: fixed;
|
|
3
|
+
inset: 0;
|
|
4
|
+
z-index: ${Ut.overlay};
|
|
5
|
+
display: flex;
|
|
6
|
+
align-items: center;
|
|
7
|
+
justify-content: center;
|
|
8
|
+
overflow-y: auto;
|
|
9
|
+
padding: 16px;
|
|
10
|
+
background: rgba(22, 21, 24, 0.55);
|
|
11
|
+
`,Yt=i.div`
|
|
12
|
+
width: 560px;
|
|
13
|
+
max-width: 100%;
|
|
14
|
+
max-height: 100%;
|
|
15
|
+
overflow-y: auto;
|
|
16
|
+
padding: 12px 16px 16px;
|
|
17
|
+
border-radius: ${se.modal};
|
|
18
|
+
background: ${m.white};
|
|
19
|
+
box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
|
|
20
|
+
display: flex;
|
|
21
|
+
flex-direction: column;
|
|
22
|
+
gap: 24px;
|
|
23
|
+
font-family: ${Ee.sans};
|
|
24
|
+
|
|
25
|
+
/* Focused on mount for screen readers; it is not tab-reachable, so it never needs a visible ring. */
|
|
26
|
+
&:focus {
|
|
27
|
+
outline: none;
|
|
28
|
+
}
|
|
29
|
+
`,Jt=i.div`
|
|
30
|
+
display: flex;
|
|
31
|
+
align-items: center;
|
|
32
|
+
justify-content: space-between;
|
|
33
|
+
gap: 8px;
|
|
34
|
+
padding-bottom: 16px;
|
|
35
|
+
border-bottom: 1px solid ${m.gray4};
|
|
36
|
+
`,Qt=i.h2`
|
|
37
|
+
margin: 0;
|
|
38
|
+
font-weight: 600;
|
|
39
|
+
font-size: 20px;
|
|
40
|
+
line-height: 1.6;
|
|
41
|
+
color: ${m.text};
|
|
42
|
+
`,Vt=i.button`
|
|
43
|
+
position: relative;
|
|
44
|
+
flex: none;
|
|
45
|
+
display: grid;
|
|
46
|
+
place-items: center;
|
|
47
|
+
width: 18.535px;
|
|
48
|
+
height: 18.535px;
|
|
49
|
+
padding: 0;
|
|
50
|
+
border: 0;
|
|
51
|
+
background: none;
|
|
52
|
+
cursor: pointer;
|
|
53
|
+
color: ${m.text};
|
|
54
|
+
|
|
55
|
+
.ico {
|
|
56
|
+
width: 100%;
|
|
57
|
+
height: 100%;
|
|
58
|
+
}
|
|
59
|
+
/* Keeps the glyph exactly where the design puts it while giving it a tappable hit area. */
|
|
60
|
+
&::after {
|
|
61
|
+
content: '';
|
|
62
|
+
position: absolute;
|
|
63
|
+
inset: -11px;
|
|
64
|
+
}
|
|
65
|
+
&:focus-visible {
|
|
66
|
+
outline: 2px solid ${m.accent};
|
|
67
|
+
outline-offset: 2px;
|
|
68
|
+
}
|
|
69
|
+
`,Zt=i.div`
|
|
70
|
+
padding: 16px;
|
|
71
|
+
border-radius: ${se.modal};
|
|
72
|
+
background: ${m.infoGreen};
|
|
73
|
+
display: flex;
|
|
74
|
+
flex-direction: column;
|
|
75
|
+
gap: 12px;
|
|
76
|
+
`,Xt=i.h3`
|
|
77
|
+
margin: 0;
|
|
78
|
+
font-weight: 600;
|
|
79
|
+
font-size: 20px;
|
|
80
|
+
line-height: 1.57;
|
|
81
|
+
color: ${m.text};
|
|
82
|
+
`,es=i.p`
|
|
83
|
+
margin: 0;
|
|
84
|
+
font-weight: 500;
|
|
85
|
+
font-size: 14px;
|
|
86
|
+
line-height: 1.334;
|
|
87
|
+
color: ${m.text2};
|
|
88
|
+
`,ts=i.div`
|
|
89
|
+
display: flex;
|
|
90
|
+
flex-direction: column;
|
|
91
|
+
gap: 8px;
|
|
92
|
+
`,ss=i.div`
|
|
93
|
+
display: flex;
|
|
94
|
+
align-items: center;
|
|
95
|
+
gap: 12px;
|
|
96
|
+
`,Re=`
|
|
97
|
+
flex: 1 1 0;
|
|
98
|
+
min-width: 0;
|
|
99
|
+
display: inline-flex;
|
|
100
|
+
align-items: center;
|
|
101
|
+
justify-content: center;
|
|
102
|
+
gap: 8px;
|
|
103
|
+
height: 40px;
|
|
104
|
+
padding: 0 12px;
|
|
105
|
+
border-radius: ${se.card};
|
|
106
|
+
font-family: ${Ee.sans};
|
|
107
|
+
font-weight: 600;
|
|
108
|
+
font-size: 13px;
|
|
109
|
+
line-height: 24px;
|
|
110
|
+
letter-spacing: 0.46px;
|
|
111
|
+
text-transform: uppercase;
|
|
112
|
+
cursor: pointer;
|
|
113
|
+
transition:
|
|
114
|
+
background 0.15s ease,
|
|
115
|
+
color 0.15s ease;
|
|
116
|
+
|
|
117
|
+
&:focus-visible {
|
|
118
|
+
outline: 2px solid ${m.accent};
|
|
119
|
+
outline-offset: 2px;
|
|
120
|
+
}
|
|
121
|
+
`,ns=i.button`
|
|
122
|
+
${Re};
|
|
123
|
+
border: 2px solid ${m.accent};
|
|
124
|
+
background: ${m.white};
|
|
125
|
+
color: ${m.accent};
|
|
126
|
+
|
|
127
|
+
&:hover {
|
|
128
|
+
background: ${m.rarityBg};
|
|
129
|
+
}
|
|
130
|
+
`,os=i.button`
|
|
131
|
+
${Re};
|
|
132
|
+
border: 0;
|
|
133
|
+
background: ${m.accent};
|
|
134
|
+
color: ${m.softWhite};
|
|
135
|
+
|
|
136
|
+
&:hover {
|
|
137
|
+
background: ${m.accentHover};
|
|
138
|
+
}
|
|
139
|
+
&:active {
|
|
140
|
+
background: ${m.accentActive};
|
|
141
|
+
}
|
|
142
|
+
`,rs=i.label`
|
|
143
|
+
display: flex;
|
|
144
|
+
align-items: center;
|
|
145
|
+
justify-content: center;
|
|
146
|
+
font-size: 14.049px;
|
|
147
|
+
line-height: normal;
|
|
148
|
+
color: ${m.text};
|
|
149
|
+
cursor: pointer;
|
|
150
|
+
`,is=i.span`
|
|
151
|
+
flex: none;
|
|
152
|
+
display: grid;
|
|
153
|
+
place-items: center;
|
|
154
|
+
width: 32px;
|
|
155
|
+
height: 32px;
|
|
156
|
+
|
|
157
|
+
& input {
|
|
158
|
+
--box: 13.714px;
|
|
159
|
+
}
|
|
160
|
+
`;function as({onClose:s,onConfirm:l}){const[p,h]=d.useState(!1),b=d.useRef(null),R=d.useRef(p);return R.current=p,d.useEffect(()=>{var I;(I=b.current)==null||I.focus();function y(c){c.key==="Escape"&&s(R.current)}return window.addEventListener("keydown",y),()=>window.removeEventListener("keydown",y)},[s]),t.jsx(Wt,{role:"presentation",onClick:()=>s(p),children:t.jsxs(Yt,{ref:b,tabIndex:-1,role:"dialog","aria-modal":"true","aria-label":o("newPricing.title"),"data-testid":"new-pricing-modal",onClick:y=>y.stopPropagation(),children:[t.jsxs(Jt,{children:[t.jsx(Qt,{children:o("newPricing.title")}),t.jsx(Vt,{onClick:()=>s(p),"aria-label":o("newPricing.close"),children:t.jsx(C,{name:"close",className:"ico"})})]}),t.jsxs(Zt,{children:[t.jsx(Xt,{children:o("newPricing.infoTitle")}),t.jsx(es,{children:o("newPricing.infoBody")})]}),t.jsx(ut,{align:"center"}),t.jsxs(ts,{children:[t.jsxs(ss,{children:[t.jsx(ns,{onClick:()=>s(p),"data-testid":"new-pricing-later",children:o("newPricing.later")}),t.jsx(os,{onClick:()=>l(p),"data-testid":"new-pricing-confirm",children:o("newPricing.confirm")})]}),t.jsxs(rs,{children:[t.jsx(is,{children:t.jsx(Ht,{type:"checkbox",checked:p,onChange:y=>h(y.target.checked),"data-testid":"new-pricing-opt-out"})}),o("newPricing.optOut")]})]})]})})}const Te="shop:dismissed-prompts",ye="mana-pricing";function Oe(){try{const s=localStorage.getItem(Te);if(!s)return{};const l=JSON.parse(s);return!l||typeof l!="object"||Array.isArray(l)?{}:l}catch{return{}}}function cs(s){try{localStorage.setItem(Te,JSON.stringify(s))}catch{}}function Fe(s){return s?s.toLowerCase():null}function ls(s,l){const p=Fe(l);if(!p)return!1;const h=Oe()[p];return Array.isArray(h)&&h.includes(s)}function ds(s,l){const p=Fe(l);if(!p)return;const h=Oe(),b=Array.isArray(h[p])?h[p]:[];b.includes(s)||cs({...h,[p]:[...b,s]})}function ps({count:s,to:l="/import",className:p}){return t.jsxs(ft,{className:p,"data-testid":"mana-pricing-banner",children:[t.jsxs(xt,{children:[t.jsx(it,{size:20,color:n.colors.accent}),t.jsxs(ht,{children:[o("manaPricingBanner.lead",{count:s})," ",t.jsx(gt,{children:o("manaPricingBanner.accent")})," ",o("manaPricingBanner.trail")]})]}),t.jsx(yt,{to:l,"data-testid":"mana-pricing-banner-cta",children:o("manaPricingBanner.cta")})]})}i.div`
|
|
161
|
+
display: flex;
|
|
162
|
+
flex-direction: column;
|
|
163
|
+
gap: 4px;
|
|
164
|
+
width: 100%;
|
|
165
|
+
`;i.h2`
|
|
166
|
+
margin: 0;
|
|
167
|
+
padding: 4px 4px 2px;
|
|
168
|
+
font-family: ${n.font.sans};
|
|
169
|
+
font-weight: 700;
|
|
170
|
+
font-size: 12px;
|
|
171
|
+
letter-spacing: 0.46px;
|
|
172
|
+
text-transform: uppercase;
|
|
173
|
+
color: ${n.colors.muted};
|
|
174
|
+
`;i("button",Pe("selected"))`
|
|
175
|
+
display: flex;
|
|
176
|
+
align-items: center;
|
|
177
|
+
gap: 10px;
|
|
178
|
+
width: 100%;
|
|
179
|
+
height: 40px;
|
|
180
|
+
padding: 4px 12px;
|
|
181
|
+
border: 0;
|
|
182
|
+
border-radius: 8px;
|
|
183
|
+
background: ${({selected:s})=>s?n.colors.media:"transparent"};
|
|
184
|
+
color: ${n.colors.text};
|
|
185
|
+
font-family: ${n.font.sans};
|
|
186
|
+
font-weight: ${({selected:s})=>s?600:400};
|
|
187
|
+
font-size: 14px;
|
|
188
|
+
text-align: left;
|
|
189
|
+
cursor: pointer;
|
|
190
|
+
|
|
191
|
+
@media (hover: hover) {
|
|
192
|
+
&:hover {
|
|
193
|
+
background: ${n.colors.media};
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
&:focus-visible {
|
|
197
|
+
outline: 2px solid ${n.colors.accent};
|
|
198
|
+
outline-offset: 2px;
|
|
199
|
+
}
|
|
200
|
+
`;i(C)`
|
|
201
|
+
width: 18px;
|
|
202
|
+
height: 18px;
|
|
203
|
+
flex: none;
|
|
204
|
+
color: ${n.colors.muted};
|
|
205
|
+
`;i.div`
|
|
206
|
+
display: flex;
|
|
207
|
+
flex-direction: column;
|
|
208
|
+
gap: 8px;
|
|
209
|
+
width: 100%;
|
|
210
|
+
`;i.span`
|
|
211
|
+
font-family: ${n.font.sans};
|
|
212
|
+
font-weight: 600;
|
|
213
|
+
font-size: 14px;
|
|
214
|
+
line-height: 1.43;
|
|
215
|
+
color: ${n.colors.text};
|
|
216
|
+
padding: 0 4px;
|
|
217
|
+
`;i.div`
|
|
218
|
+
display: flex;
|
|
219
|
+
flex-wrap: wrap;
|
|
220
|
+
gap: 8px;
|
|
221
|
+
padding: 4px;
|
|
222
|
+
`;i("button",Pe("selected"))`
|
|
223
|
+
display: inline-flex;
|
|
224
|
+
align-items: center;
|
|
225
|
+
gap: 4px;
|
|
226
|
+
padding: 4px 10px;
|
|
227
|
+
border-radius: 6px;
|
|
228
|
+
background: ${({selected:s})=>s?n.colors.text:n.colors.softWhite};
|
|
229
|
+
border: ${({selected:s})=>s?`1px solid ${n.colors.text}`:`0.5px solid ${n.colors.gray4}`};
|
|
230
|
+
color: ${({selected:s})=>s?n.colors.white:n.colors.gray0};
|
|
231
|
+
font-family: ${n.font.sans};
|
|
232
|
+
font-weight: ${({selected:s})=>s?600:400};
|
|
233
|
+
font-size: 12px;
|
|
234
|
+
cursor: pointer;
|
|
235
|
+
|
|
236
|
+
&:hover {
|
|
237
|
+
border-color: ${n.colors.text};
|
|
238
|
+
}
|
|
239
|
+
&:focus-visible {
|
|
240
|
+
outline: 2px solid ${n.colors.accent};
|
|
241
|
+
outline-offset: 2px;
|
|
242
|
+
}
|
|
243
|
+
`;const ms=i.div`
|
|
244
|
+
display: flex;
|
|
245
|
+
align-items: center;
|
|
246
|
+
gap: 8px;
|
|
247
|
+
height: 44px;
|
|
248
|
+
padding: 0 12px;
|
|
249
|
+
margin-bottom: 16px;
|
|
250
|
+
border: 1px solid ${n.colors.lineStrong};
|
|
251
|
+
border-radius: ${n.radius.btn};
|
|
252
|
+
background: ${n.colors.white};
|
|
253
|
+
|
|
254
|
+
&:focus-within {
|
|
255
|
+
border-color: ${n.colors.accent};
|
|
256
|
+
}
|
|
257
|
+
`,us=i(C)`
|
|
258
|
+
width: 18px;
|
|
259
|
+
height: 18px;
|
|
260
|
+
flex: none;
|
|
261
|
+
color: ${n.colors.muted};
|
|
262
|
+
`,fs=i.input`
|
|
263
|
+
flex: 1;
|
|
264
|
+
min-width: 0;
|
|
265
|
+
border: 0;
|
|
266
|
+
background: none;
|
|
267
|
+
padding: 0;
|
|
268
|
+
font-family: ${n.font.sans};
|
|
269
|
+
font-size: 14px;
|
|
270
|
+
color: ${n.colors.text};
|
|
271
|
+
|
|
272
|
+
&::placeholder {
|
|
273
|
+
color: ${n.colors.muted2};
|
|
274
|
+
}
|
|
275
|
+
&:focus {
|
|
276
|
+
outline: 0;
|
|
277
|
+
}
|
|
278
|
+
`,xs=i.button`
|
|
279
|
+
display: grid;
|
|
280
|
+
place-items: center;
|
|
281
|
+
width: 24px;
|
|
282
|
+
height: 24px;
|
|
283
|
+
border: 0;
|
|
284
|
+
border-radius: 50%;
|
|
285
|
+
background: ${n.colors.chip};
|
|
286
|
+
color: ${n.colors.text};
|
|
287
|
+
cursor: pointer;
|
|
288
|
+
flex: none;
|
|
289
|
+
|
|
290
|
+
&:focus-visible {
|
|
291
|
+
outline: 2px solid ${n.colors.accent};
|
|
292
|
+
outline-offset: 2px;
|
|
293
|
+
}
|
|
294
|
+
`,hs=i(C)`
|
|
295
|
+
width: 12px;
|
|
296
|
+
height: 12px;
|
|
297
|
+
`,be=i.div`
|
|
298
|
+
display: grid;
|
|
299
|
+
grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
|
|
300
|
+
gap: 20px;
|
|
301
|
+
|
|
302
|
+
${n.media.maxWidth("sm")} {
|
|
303
|
+
grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
|
|
304
|
+
gap: 12px;
|
|
305
|
+
}
|
|
306
|
+
`;i.p`
|
|
307
|
+
margin: 24px 0;
|
|
308
|
+
font-family: ${n.font.sans};
|
|
309
|
+
font-size: 14px;
|
|
310
|
+
color: ${n.colors.muted};
|
|
311
|
+
`;const we=i.div`
|
|
312
|
+
display: flex;
|
|
313
|
+
flex-direction: column;
|
|
314
|
+
align-items: center;
|
|
315
|
+
justify-content: center;
|
|
316
|
+
gap: 6px;
|
|
317
|
+
padding: 72px 24px;
|
|
318
|
+
text-align: center;
|
|
319
|
+
`,je=i.div`
|
|
320
|
+
display: flex;
|
|
321
|
+
align-items: center;
|
|
322
|
+
justify-content: center;
|
|
323
|
+
width: 72px;
|
|
324
|
+
height: 72px;
|
|
325
|
+
margin-bottom: 10px;
|
|
326
|
+
border-radius: 50%;
|
|
327
|
+
background: ${n.colors.navViolet};
|
|
328
|
+
color: ${n.colors.accent};
|
|
329
|
+
`,$e=i.p`
|
|
330
|
+
margin: 0;
|
|
331
|
+
font-family: ${n.font.sans};
|
|
332
|
+
font-size: 18px;
|
|
333
|
+
font-weight: 600;
|
|
334
|
+
color: ${n.colors.text};
|
|
335
|
+
`,Se=i.p`
|
|
336
|
+
margin: 0;
|
|
337
|
+
max-width: 360px;
|
|
338
|
+
font-family: ${n.font.sans};
|
|
339
|
+
font-size: 14px;
|
|
340
|
+
line-height: 1.5;
|
|
341
|
+
color: ${n.colors.muted};
|
|
342
|
+
`,gs=i(nt)`
|
|
343
|
+
margin-top: 12px;
|
|
344
|
+
display: inline-flex;
|
|
345
|
+
align-items: center;
|
|
346
|
+
height: 40px;
|
|
347
|
+
padding: 0 20px;
|
|
348
|
+
border-radius: 8px;
|
|
349
|
+
background: ${n.colors.accent};
|
|
350
|
+
color: ${n.colors.white};
|
|
351
|
+
font-family: ${n.font.sans};
|
|
352
|
+
font-size: 14px;
|
|
353
|
+
font-weight: 600;
|
|
354
|
+
text-decoration: none;
|
|
355
|
+
cursor: pointer;
|
|
356
|
+
|
|
357
|
+
&:hover {
|
|
358
|
+
background: ${n.colors.accentHover};
|
|
359
|
+
}
|
|
360
|
+
`,ys=i.section`
|
|
361
|
+
max-width: 520px;
|
|
362
|
+
margin: 48px auto;
|
|
363
|
+
text-align: center;
|
|
364
|
+
display: flex;
|
|
365
|
+
flex-direction: column;
|
|
366
|
+
gap: 16px;
|
|
367
|
+
align-items: center;
|
|
368
|
+
`,bs=i.h1`
|
|
369
|
+
margin: 0;
|
|
370
|
+
font-family: ${n.font.sans};
|
|
371
|
+
font-weight: 700;
|
|
372
|
+
font-size: 24px;
|
|
373
|
+
color: ${n.colors.text};
|
|
374
|
+
`,ws=i.p`
|
|
375
|
+
margin: 0;
|
|
376
|
+
font-family: ${n.font.sans};
|
|
377
|
+
font-size: 15px;
|
|
378
|
+
color: ${n.colors.muted};
|
|
379
|
+
`,js=i(ps)`
|
|
380
|
+
margin-bottom: 16px;
|
|
381
|
+
`,$s=48,ke=[{key:"wearables",labelKey:"myAssets.sectionWearables",category:"wearable"},{key:"emotes",labelKey:"myAssets.sectionEmotes",category:"emote"},{key:"names",labelKey:"myAssets.sectionNames",category:"ens"},{key:"creations",labelKey:"myAssets.sectionCreations"}],te=[{key:"newest",label:"filterBar.sortNewest",server:"newest"},{key:"name",label:"filterBar.sortName",server:"name"},{key:"cheapest",label:"filterBar.sortCheapest",server:"cheapest"}];function ve(s){return s==="wearables"||s==="emotes"}const Ce={wearables:"wearable",emotes:"emote",names:"names",creations:""},Ss={wearable:"wearables",emote:"emotes",names:"names"};function ks(s){return`${Ae.builderUrl}/names/${encodeURIComponent(s)}`}function Ie(s,l){return{id:s.id,name:s.name,creator:"",contractAddress:s.contractAddress,itemId:s.itemId,category:s.category,rarity:s.rarity??"common",network:s.network,chainId:s.chainId,thumbnail:s.image,priceCredits:(l==null?void 0:l.priceCredits)??s.listingPrice??0,gender:null,isSmart:!1,tokenId:s.tokenId,issuedId:s.issuedId,tradeId:(l==null?void 0:l.tradeId)??s.tradeId}}function vs(s,l,p){return{id:`${s.contractAddress}-${s.blockchainItemId}`,name:s.name,creator:p,contractAddress:s.contractAddress,itemId:s.blockchainItemId,category:s.category,rarity:s.rarity,network:"MATIC",chainId:Ae.chainId,thumbnail:s.thumbnail,priceCredits:l,gender:null,isSmart:!1}}function Ys(){var pe,me;at({title:o("nav.myAssets"),noindex:!0});const{session:s,error:l,signIn:p,restore:h}=ct(),b=ot(),[R,y]=rt(),I=R.get("section"),c=ke.some(e=>e.key===I)?I:"wearables",[f,G]=d.useState("all"),[w,q]=d.useState([]),[g,T]=d.useState(null),[A,_e]=d.useState("newest"),[O,ne]=d.useState(""),[j,ze]=d.useState(""),[F,$]=d.useState(!1),[Be,Ne]=d.useState(!0),[Le,Ke]=d.useState(!1),[D,oe]=d.useState("idle");d.useEffect(()=>{h()},[h]),d.useEffect(()=>{const e=setTimeout(()=>ze(O.trim()),300);return()=>clearTimeout(e)},[O]),d.useEffect(()=>{if(!F)return;const e=a=>{a.key==="Escape"&&$(!1)};document.addEventListener("keydown",e);const r=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.removeEventListener("keydown",e),document.body.style.overflow=r}},[F]);const x=s==null?void 0:s.address,Me=ke.find(e=>e.key===c),_=ve(c),re=(te.find(e=>e.key===A)??te[0]).server,Ge=f==="on_sale"?o("filter.onSale"):f==="not_for_sale"?o("filter.notForSale"):"",qe=ee.filter(e=>w.includes(e)).map(ue).join(", ");function ie(e){y(r=>{const a=new URLSearchParams(r);return a.set("section",e),a},{replace:!0}),T(null),ve(e)||q([]),$(!1)}function ae(e){q(r=>r.includes(e)?r.filter(a=>a!==e):[...r,e])}function De(e){const r=Ss[e];r&&ie(r)}const{items:P,total:He,isLoading:H,isPlaceholderData:U,error:Ue,hasNextPage:We,isFetchingNextPage:ce,isFetchNextPageError:Ye,fetchNextPage:Je}=qt(["my-assets",x,c,f,w,g,j,re],e=>dt(x,{category:Me.category,first:$s,skip:e,search:j||void 0,rarities:_&&w.length?w:void 0,wearableCategories:c==="wearables"&&g?fe[g]:void 0,emoteCategories:c==="emotes"&&g?fe[g]:void 0,onlyOnSale:f==="on_sale"||void 0,sortBy:re}).then(r=>({items:r.assets,total:r.total})),{enabled:!!x&&c!=="creations"}),W=d.useMemo(()=>c==="wearables"||c==="emotes"?[...new Set(P.map(e=>e.contractAddress))]:[],[P,c]),{data:z}=M({queryKey:["secondary-sale-state",W],enabled:W.length>0,queryFn:async()=>{const e=await Promise.all(W.map(async a=>[a,await pt(a)])),r={};for(const[a,u]of e)for(const[k,v]of Object.entries(u))r[`${a}-${k}`]=v;return r}}),le=e=>z==null?void 0:z[`${e.contractAddress}-${e.tokenId}`],Qe=e=>!!le(e)||e.isOnSale,Y=d.useMemo(()=>f==="not_for_sale"?P.filter(e=>!Qe(e)):P,[P,f,z]),{data:B,isLoading:J,isError:Ve}=M({queryKey:["publishable-items",x],queryFn:()=>wt(x,s.identity),enabled:!!s&&c==="creations",retry:!1}),Q=d.useMemo(()=>[...new Set((B??[]).map(e=>e.contractAddress))],[B]),{data:N}=M({queryKey:["collection-sale-state",x,Q],enabled:Q.length>0,queryFn:async()=>{const e=await Promise.all(Q.map(async a=>[a,await mt(a)])),r={};for(const[a,u]of e)for(const[k,v]of Object.entries(u))r[`${a}-${k}`]=v;return r}}),E=e=>N==null?void 0:N[`${e.contractAddress}-${e.blockchainItemId}`],V=d.useMemo(()=>{let e=B??[];if(f==="on_sale"?e=e.filter(a=>{var u;return(u=E(a))==null?void 0:u.isOnSale}):f==="not_for_sale"&&(e=e.filter(a=>{var u;return!((u=E(a))!=null&&u.isOnSale)})),j){const a=j.toLowerCase();e=e.filter(u=>u.name.toLowerCase().includes(a))}const r=[...e];return A==="name"?r.sort((a,u)=>a.name.localeCompare(u.name)):A==="cheapest"&&r.sort((a,u)=>{var k,v;return(((k=E(a))==null?void 0:k.priceCredits)??0)-(((v=E(u))==null?void 0:v.priceCredits)??0)}),r},[B,N,f,j,A]),Ze=Dt(),{data:S}=M({queryKey:["importable",x],queryFn:()=>bt(x),enabled:!!x}),L=((S==null?void 0:S.creations.length)??0)+(Ze?(S==null?void 0:S.owned.length)??0:0);d.useEffect(()=>{D!=="idle"||L===0||ls(ye,x)||oe("open")},[D,L,x]);function de(e){e&&ds(ye,x),oe("closed")}if(!s)return t.jsxs(ys,{children:[t.jsx(bs,{children:o("nav.myAssets")}),t.jsx(ws,{children:o("myAssets.signInPrompt")}),t.jsx(lt,{variant:"purple",onClick:()=>p(),children:o("storeSettings.signIn")}),t.jsx(ge,{message:l})]});const Xe=c==="creations"?J:H||U,et=c==="creations"?V.length:f==="not_for_sale"?Y.length:He,K=[];if(f!=="all"&&K.push({key:"status",label:f==="on_sale"?o("filter.onSale"):o("filter.notForSale"),onRemove:()=>G("all")}),_)for(const e of ee)w.includes(e)&&K.push({key:`rarity-${e}`,label:ue(e),onRemove:()=>ae(e)});if(_&&g){const e=(me=(pe=$t.find(r=>r.key===Ce[c]))==null?void 0:pe.subs)==null?void 0:me.find(r=>r.key===g);K.push({key:"sub",label:e?o(e.labelKey):g,onRemove:()=>T(null)})}function tt(){G("all"),q([]),T(null)}const st=t.jsxs(t.Fragment,{children:[t.jsx(St,{title:o("myAssets.assetsHeading"),category:Ce[c],subCategory:g,onCategory:De,onSub:T,onCollections:()=>ie("creations"),collections:c==="creations",extraLabelKey:"myAssets.sectionCreations",hideAll:!0}),_?t.jsxs(t.Fragment,{children:[t.jsx(xe,{}),t.jsx(he,{title:o("assets.rarity"),open:Le,onToggle:()=>Ke(e=>!e),summary:qe,headerTestId:"sidebar-section-toggle",children:t.jsx(vt,{"data-testid":"rarity-filter",children:ee.map(e=>{const r=w.includes(e);return t.jsxs(Ct,{type:"button",selected:r,"aria-pressed":r,onClick:()=>ae(e),"data-testid":"rarity-filter-check",children:[t.jsx(It,{color:n.rarities[e],children:r?t.jsx(At,{name:"check","aria-hidden":!0}):null}),t.jsx(Pt,{selected:r,children:e})]},e)})})})]}):null,t.jsx(xe,{}),t.jsx(he,{title:o("filter.status"),open:Be,onToggle:()=>Ne(e=>!e),summary:Ge,children:[["all",o("filter.statusAll")],["on_sale",o("filter.onSale")],["not_for_sale",o("filter.notForSale")]].map(([e,r])=>t.jsxs(Et,{children:[t.jsx(Rt,{type:"radio",name:"myassets-status",checked:f===e,onChange:()=>G(e)}),t.jsx(Tt,{children:r})]},e))})]});return t.jsxs(Ot,{"data-testid":"my-assets",children:[F?t.jsx(Ft,{onClick:()=>$(!1),"aria-hidden":!0}):null,t.jsxs(_t,{"data-open":F||void 0,"data-testid":"my-assets-sidebar",children:[t.jsxs(zt,{children:[t.jsx(Bt,{children:o("assets.filters")}),t.jsx(Nt,{onClick:()=>$(!1),"aria-label":o("assets.closeFilters"),children:"✕"})]}),t.jsx(Lt,{children:st}),t.jsx(Kt,{children:t.jsx(Mt,{type:"button",onClick:()=>$(!1),children:o("assets.showItems")})})]}),t.jsxs(Gt,{children:[t.jsxs(ms,{children:[t.jsx(us,{name:"search","aria-hidden":!0}),t.jsx(fs,{type:"search",value:O,placeholder:o("myAssets.searchPlaceholder"),"aria-label":o("myAssets.searchPlaceholder"),onChange:e=>ne(e.target.value)}),O?t.jsx(xs,{type:"button","aria-label":o("myAssets.clearSearch"),onClick:()=>ne(""),children:t.jsx(hs,{name:"close","aria-hidden":!0})}):null]}),L>0?t.jsx(js,{count:L}):null,t.jsx(kt,{sort:A,onSort:_e,sortOptions:te,total:et,loading:Xe,query:j,onOpenFilters:()=>$(!0),chips:K,onClearChips:tt}),(c==="creations"?Ve:Ue)?t.jsx(ge,{message:o("myAssets.ownedError"),testId:"my-assets-error"}):null,c==="creations"?t.jsxs(t.Fragment,{children:[t.jsx(be,{"data-testid":"grid",children:J?t.jsx(Z,{count:12}):V.map(e=>{const r=E(e);return t.jsx(X,{item:vs(e,(r==null?void 0:r.priceCredits)??0,x??""),mode:"manage-link"},`${e.contractAddress}-${e.blockchainItemId}`)})}),!J&&V.length===0?t.jsxs(we,{children:[t.jsx(je,{children:t.jsx(C,{name:"pen",size:30,"aria-hidden":!0})}),t.jsx($e,{children:o("myAssets.emptyCreationsTitle")}),t.jsx(Se,{children:o("myAssets.nothingToPublish")})]}):null]}):t.jsxs(t.Fragment,{children:[t.jsxs(be,{"data-testid":"grid",children:[H||U?t.jsx(Z,{count:12}):Y.map(e=>c==="names"?t.jsx(X,{item:{...Ie(e),category:"ens"},mode:"manage-link",manageHref:ks(e.name)},e.id):t.jsx(X,{item:Ie(e,le(e)),mode:"manage-link"},e.id)),ce?t.jsx(Z,{count:6}):null]}),f!=="not_for_sale"?t.jsx(jt,{hasNextPage:We,isFetching:ce,isError:Ye,onLoadMore:()=>void Je()}):null,!H&&!U&&Y.length===0?t.jsxs(we,{children:[t.jsx(je,{children:t.jsx(C,{name:c==="names"?"website":c==="emotes"?"emote-dance":"cat-upper",size:30,"aria-hidden":!0})}),t.jsx($e,{children:c==="names"?o("myAssets.emptyNamesTitle"):o("myAssets.emptyOwnedTitle")}),t.jsx(Se,{children:c==="names"?o("myAssets.namesEmpty"):o("myAssets.ownedEmpty")}),c!=="names"?t.jsx(gs,{to:"/assets",children:o("myAssets.emptyBrowse")}):null]}):null]})]}),D==="open"?t.jsx(as,{onClose:de,onConfirm:e=>{de(e),b("/import")}}):null]})}export{Ys as MyAssets};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{L as h,r as g,j as t}from"./react-
|
|
1
|
+
import{L as h,r as g,j as t}from"./react-IQWs2nb4.js";import{s,t as f,m as u,e as o,J as c,S as y,K as v}from"./index-BPF8ilkO.js";import{L as C}from"./LoadMore-BkVyRkRR.js";import{E as j}from"./ErrorNotice-CG70XlrM.js";import{G as b}from"./grid.styles-C5_2HqYV.js";import"./sentry-DvOx8Rfb.js";import"./dcl-schemas-BICTSpB5.js";import"./ethers-rFeF6PNV.js";import"./intl-CBcMB1D2.js";const{colors:e,radius:p}=f,w=s.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
align-items: baseline;
|
|
4
4
|
gap: 12px;
|
|
@@ -91,4 +91,4 @@ import{L as h,r as g,j as t}from"./react-vyZjIDcS.js";import{s,t as f,m as u,e a
|
|
|
91
91
|
outline: 2px solid ${e.accent};
|
|
92
92
|
outline-offset: 2px;
|
|
93
93
|
}
|
|
94
|
-
`,z="data:image/svg+xml,%3csvg%20width='138'%20height='138'%20viewBox='0%200%20138%20138'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M92.7188%2021.5625V34.5'%20stroke='%23FF7158'%20stroke-width='4.3125'%20stroke-linecap='round'/%3e%3cpath%20d='M86.25%2028.0312H99.1875'%20stroke='%23FF7158'%20stroke-width='4.3125'%20stroke-linecap='round'/%3e%3cpath%20d='M24.7324%2065.5C24.732%2062.8042%2025.2665%2060.1361%2026.3037%2057.6514C27.341%2055.1665%2028.8602%2052.9151%2030.7715%2051.0293C32.6826%2049.1438%2034.9471%2047.6604%2037.4326%2046.666C39.9183%2045.6716%2042.5762%2045.1856%2045.25%2045.2354L45.3008%2045.2363H45.3516C48.581%2045.2192%2051.7779%2045.8923%2054.7305%2047.2109C56.1717%2047.8547%2057.539%2048.6448%2058.8115%2049.5674C60.1459%2050.5348%2061.3766%2051.6478%2062.4795%2052.8887L65.6426%2056.4473L68.8057%2052.8887C69.9086%2051.6478%2071.1392%2050.5348%2072.4736%2049.5674C73.7464%2048.6446%2075.1142%2047.8547%2076.5557%2047.2109C79.5083%2045.8922%2082.705%2045.2191%2085.9346%2045.2363H85.9854L86.0361%2045.2354C88.7097%2045.1856%2091.367%2045.6717%2093.8525%2046.666C96.3383%2047.6604%2098.6034%2049.1436%20100.515%2051.0293C102.426%2052.9151%20103.945%2055.1665%20104.982%2057.6514C106.02%2060.1361%20106.554%2062.8043%20106.554%2065.5V65.501C106.554%2074.0645%20102.382%2082.1039%2095.8086%2089.877C89.2296%2097.6565%2080.6704%20104.682%2072.6035%20111.289C71.1421%20112.486%2069.6963%20113.67%2068.2959%20114.832C66.7887%20116.083%2064.5293%20116.081%2063.0176%20114.818C61.4894%20113.542%2059.9072%20112.242%2058.3076%20110.928C50.2836%20104.335%2041.8192%2097.3643%2035.3242%2089.6553C28.8376%2081.9561%2024.7324%2073.9982%2024.7324%2065.501V65.5Z'%20stroke='url(%23paint0_linear_favorites_empty)'%20stroke-width='8.46429'/%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_favorites_empty'%20x1='17.6552'%20y1='80.505'%20x2='176.469'%20y2='63.4051'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23FF2D55'/%3e%3cstop%20offset='1'%20stop-color='%23FFBC5B'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e",l=24;function
|
|
94
|
+
`,z="data:image/svg+xml,%3csvg%20width='138'%20height='138'%20viewBox='0%200%20138%20138'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M92.7188%2021.5625V34.5'%20stroke='%23FF7158'%20stroke-width='4.3125'%20stroke-linecap='round'/%3e%3cpath%20d='M86.25%2028.0312H99.1875'%20stroke='%23FF7158'%20stroke-width='4.3125'%20stroke-linecap='round'/%3e%3cpath%20d='M24.7324%2065.5C24.732%2062.8042%2025.2665%2060.1361%2026.3037%2057.6514C27.341%2055.1665%2028.8602%2052.9151%2030.7715%2051.0293C32.6826%2049.1438%2034.9471%2047.6604%2037.4326%2046.666C39.9183%2045.6716%2042.5762%2045.1856%2045.25%2045.2354L45.3008%2045.2363H45.3516C48.581%2045.2192%2051.7779%2045.8923%2054.7305%2047.2109C56.1717%2047.8547%2057.539%2048.6448%2058.8115%2049.5674C60.1459%2050.5348%2061.3766%2051.6478%2062.4795%2052.8887L65.6426%2056.4473L68.8057%2052.8887C69.9086%2051.6478%2071.1392%2050.5348%2072.4736%2049.5674C73.7464%2048.6446%2075.1142%2047.8547%2076.5557%2047.2109C79.5083%2045.8922%2082.705%2045.2191%2085.9346%2045.2363H85.9854L86.0361%2045.2354C88.7097%2045.1856%2091.367%2045.6717%2093.8525%2046.666C96.3383%2047.6604%2098.6034%2049.1436%20100.515%2051.0293C102.426%2052.9151%20103.945%2055.1665%20104.982%2057.6514C106.02%2060.1361%20106.554%2062.8043%20106.554%2065.5V65.501C106.554%2074.0645%20102.382%2082.1039%2095.8086%2089.877C89.2296%2097.6565%2080.6704%20104.682%2072.6035%20111.289C71.1421%20112.486%2069.6963%20113.67%2068.2959%20114.832C66.7887%20116.083%2064.5293%20116.081%2063.0176%20114.818C61.4894%20113.542%2059.9072%20112.242%2058.3076%20110.928C50.2836%20104.335%2041.8192%2097.3643%2035.3242%2089.6553C28.8376%2081.9561%2024.7324%2073.9982%2024.7324%2065.501V65.5Z'%20stroke='url(%23paint0_linear_favorites_empty)'%20stroke-width='8.46429'/%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_favorites_empty'%20x1='17.6552'%20y1='80.505'%20x2='176.469'%20y2='63.4051'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23FF2D55'/%3e%3cstop%20offset='1'%20stop-color='%23FFBC5B'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e",l=24;function P(){u({title:o("nav.myFavorites"),noindex:!0});const n=c(i=>Object.values(i.items)),a=c(i=>i.status),x=c(i=>i.retry),[d,m]=g.useState(l);if(a==="error")return t.jsxs(k,{"data-testid":"favorites-error",children:[t.jsx(j,{message:o("myFavorites.loadError")}),t.jsx(E,{type:"button",onClick:x,children:o("myFavorites.tryAgain")})]});if(a==="ready"&&n.length===0)return t.jsxs($,{"data-testid":"favorites-empty",children:[t.jsx(L,{src:z,alt:"",width:138,height:138}),t.jsxs(_,{children:[t.jsx(H,{children:o("myFavorites.emptyTitle")}),t.jsx(M,{children:o("myFavorites.emptyBody")})]}),t.jsx(S,{to:"/assets",children:o("myFavorites.emptyCta")})]});const r=a==="loading";return t.jsxs("section",{children:[t.jsxs(w,{children:[t.jsx("h1",{children:o("nav.myFavorites")}),r?null:t.jsx(F,{children:o("myFavorites.itemCount",{count:n.length})})]}),t.jsx(b,{"data-testid":r?"favorites-loading":void 0,children:r?t.jsx(y,{count:8}):n.slice(0,d).map(i=>t.jsx(v,{item:i},i.id))}),t.jsx(C,{hasNextPage:!r&&d<n.length,isFetching:!1,onLoadMore:()=>m(i=>i+l)})]})}export{P as MyFavorites};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{p as ee}from"./sentry-
|
|
1
|
+
import{p as ee}from"./sentry-DvOx8Rfb.js";const ae="2.54.1";let T={getDocsUrl:({docsBaseUrl:r,docsPath:e="",docsSlug:t})=>e?`${r??"https://viem.sh"}${e}${t?`#${t}`:""}`:void 0,version:`viem@${ae}`};class o extends Error{constructor(e,t={}){var p;const n=(()=>{var u;return t.cause instanceof o?t.cause.details:(u=t.cause)!=null&&u.message?t.cause.message:t.details})(),a=t.cause instanceof o&&t.cause.docsPath||t.docsPath,s=(p=T.getDocsUrl)==null?void 0:p.call(T,{...t,docsPath:a}),i=[e||"An error occurred.","",...t.metaMessages?[...t.metaMessages,""]:[],...s?[`Docs: ${s}`]:[],...n?[`Details: ${n}`]:[],...T.version?[`Version: ${T.version}`]:[]].join(`
|
|
2
2
|
`);super(i,t.cause?{cause:t.cause}:void 0),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"metaMessages",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"version",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BaseError"}),this.details=n,this.docsPath=a,this.metaMessages=t.metaMessages,this.name=t.name??this.name,this.shortMessage=e,this.version=ae}walk(e){return se(this,e)}}function se(r,e){return e!=null&&e(r)?r:r&&typeof r=="object"&&"cause"in r&&r.cause!==void 0?se(r.cause,e):e?null:r}class oe extends o{constructor({max:e,min:t,signed:n,size:a,value:s}){super(`Number "${s}" is not in safe ${a?`${a*8}-bit ${n?"signed":"unsigned"} `:""}integer range ${e?`(${t} to ${e})`:`(above ${t})`}`,{name:"IntegerOutOfRangeError"})}}class Ke extends o{constructor(e){super(`Bytes value "${e}" is not a valid boolean. The bytes array must contain a single byte of either a 0 or 1 value.`,{name:"InvalidBytesBooleanError"})}}class fe extends o{constructor(e){super(`Hex value "${e}" is not a valid boolean. The hex value must be "0x0" (false) or "0x1" (true).`,{name:"InvalidHexBooleanError"})}}class me extends o{constructor({givenSize:e,maxSize:t}){super(`Size cannot exceed ${t} bytes. Given size: ${e} bytes.`,{name:"SizeOverflowError"})}}function ie(r,{strict:e=!0}={}){return!r||typeof r!="string"?!1:e?/^0x[0-9a-fA-F]*$/.test(r):r.startsWith("0x")}function te(r){return ie(r,{strict:!1})?Math.ceil((r.length-2)/2):r.length}function v(r,{dir:e="left"}={}){let t=typeof r=="string"?r.replace("0x",""):r,n=0;for(let a=0;a<t.length-1&&t[e==="left"?a:t.length-a-1].toString()==="0";a++)n++;return t=e==="left"?t.slice(n):t.slice(0,t.length-n),typeof r=="string"?(t.length===1&&e==="right"&&(t=`${t}0`),`0x${t.length%2===1?`0${t}`:t}`):t}class Ve extends o{constructor({offset:e,position:t,size:n}){super(`Slice ${t==="start"?"starting":"ending"} at offset "${e}" is out-of-bounds (size: ${n}).`,{name:"SliceOffsetOutOfBoundsError"})}}class ue extends o{constructor({size:e,targetSize:t,type:n}){super(`${n.charAt(0).toUpperCase()}${n.slice(1).toLowerCase()} size (${e}) exceeds padding size (${t}).`,{name:"SizeExceedsPaddingSizeError"})}}class Ye extends o{constructor({size:e,targetSize:t,type:n}){super(`${n.charAt(0).toUpperCase()}${n.slice(1).toLowerCase()} is expected to be ${t} ${n} long, but is ${e} ${n} long.`,{name:"InvalidBytesLengthError"})}}function g(r,{dir:e,size:t=32}={}){return typeof r=="string"?he(r,{dir:e,size:t}):ye(r,{dir:e,size:t})}function he(r,{dir:e,size:t=32}={}){if(t===null)return r;const n=r.replace("0x","");if(n.length>t*2)throw new ue({size:Math.ceil(n.length/2),targetSize:t,type:"hex"});return`0x${n[e==="right"?"padEnd":"padStart"](t*2,"0")}`}function ye(r,{dir:e,size:t=32}={}){if(t===null)return r;if(r.length>t)throw new ue({size:r.length,targetSize:t,type:"bytes"});const n=new Uint8Array(t);for(let a=0;a<t;a++){const s=e==="right";n[s?a:t-a-1]=r[s?a:r.length-a-1]}return n}const ge=Array.from({length:256},(r,e)=>e.toString(16).padStart(2,"0"));function Xe(r,e={}){return typeof r=="number"||typeof r=="bigint"?le(r,e):typeof r=="string"?Te(r,e):typeof r=="boolean"?Ee(r,e):ce(r,e)}function Ee(r,e={}){const t=`0x${Number(r)}`;return typeof e.size=="number"?(y(t,{size:e.size}),g(t,{size:e.size})):t}function ce(r,e={}){let t="";for(let a=0;a<r.length;a++)t+=ge[r[a]];const n=`0x${t}`;return typeof e.size=="number"?(y(n,{size:e.size}),g(n,{dir:"right",size:e.size})):n}function le(r,e={}){const{signed:t,size:n}=e,a=BigInt(r);let s;n?t?s=(1n<<BigInt(n)*8n-1n)-1n:s=2n**(BigInt(n)*8n)-1n:typeof r=="number"&&(s=BigInt(Number.MAX_SAFE_INTEGER));const i=typeof s=="bigint"&&t?-s-1n:0;if(s&&a>s||a<i){const u=typeof r=="bigint"?"n":"";throw new oe({max:s?`${s}${u}`:void 0,min:`${i}${u}`,signed:t,size:n,value:`${r}${u}`})}const p=`0x${(t&&a<0?(1n<<BigInt(n*8))+BigInt(a):a).toString(16)}`;return n?g(p,{size:n}):p}const Ne=new TextEncoder;function Te(r,e={}){const t=Ne.encode(r);return ce(t,e)}const ve=new TextEncoder;function Je(r,e={}){return typeof r=="number"||typeof r=="bigint"?Oe(r,e):typeof r=="boolean"?we(r,e):ie(r)?O(r,e):Ae(r,e)}function we(r,e={}){const t=new Uint8Array(1);return t[0]=Number(r),typeof e.size=="number"?(y(t,{size:e.size}),g(t,{size:e.size})):t}const m={zero:48,nine:57,A:65,F:70,a:97,f:102};function re(r){if(r>=m.zero&&r<=m.nine)return r-m.zero;if(r>=m.A&&r<=m.F)return r-(m.A-10);if(r>=m.a&&r<=m.f)return r-(m.a-10)}function O(r,e={}){let t=r;e.size&&(y(t,{size:e.size}),t=g(t,{dir:"right",size:e.size}));let n=t.slice(2);n.length%2&&(n=`0${n}`);const a=n.length/2,s=new Uint8Array(a);for(let i=0,p=0;i<a;i++){const u=re(n.charCodeAt(p++)),E=re(n.charCodeAt(p++));if(u===void 0||E===void 0)throw new o(`Invalid byte sequence ("${n[p-2]}${n[p-1]}" in "${n}").`);s[i]=u*16+E}return s}function Oe(r,e){const t=le(r,e);return O(t)}function Ae(r,e={}){const t=ve.encode(r);return typeof e.size=="number"?(y(t,{size:e.size}),g(t,{dir:"right",size:e.size})):t}function y(r,{size:e}){if(te(r)>e)throw new me({givenSize:te(r),maxSize:e})}function Qe(r,e){const t={to:e},n=t.to;return n==="number"?Me(r,t):n==="bigint"?de(r,t):n==="string"?Ce(r,t):n==="boolean"?xe(r,t):O(r,t)}function de(r,e={}){const{signed:t}=e;e.size&&y(r,{size:e.size});const n=BigInt(r);if(!t)return n;const a=(r.length-2)/2,s=(1n<<BigInt(a)*8n-1n)-1n;return n<=s?n:n-BigInt(`0x${"f".padStart(a*2,"f")}`)-1n}function xe(r,e={}){let t=r;if(e.size&&(y(t,{size:e.size}),t=v(t)),v(t)==="0x00")return!1;if(v(t)==="0x01")return!0;throw new fe(t)}function Me(r,e={}){const t=de(r,e),n=Number(t);if(!Number.isSafeInteger(n))throw new oe({max:`${Number.MAX_SAFE_INTEGER}`,min:`${Number.MIN_SAFE_INTEGER}`,signed:e.signed,size:e.size,value:`${t}n`});return n}function Ce(r,e={}){let t=O(r);return e.size&&(y(t,{size:e.size}),t=v(t,{dir:"right"})),new TextDecoder().decode(t)}const Ze={gwei:9,wei:18},Re={ether:-9,wei:9};function Se(r,e){let t=r.toString();const n=t.startsWith("-");n&&(t=t.slice(1)),t=t.padStart(e,"0");let[a,s]=[t.slice(0,t.length-e),t.slice(t.length-e)];return s=s.replace(/(0+)$/,""),`${n?"-":""}${a||"0"}${s?`.${s}`:""}`}function w(r,e="wei"){return Se(r,Re[e])}class pe extends o{constructor({cause:e,message:t}={}){var a;const n=(a=t==null?void 0:t.replace("execution reverted: ",""))==null?void 0:a.replace("execution reverted","");super(`Execution reverted ${n?`with reason: ${n}`:"for an unknown reason"}.`,{cause:e,name:"ExecutionRevertedError"})}}Object.defineProperty(pe,"code",{enumerable:!0,configurable:!0,writable:!0,value:3});Object.defineProperty(pe,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/execution reverted|gas required exceeds allowance/});class Pe extends o{constructor({cause:e,maxFeePerGas:t}={}){super(`The fee cap (\`maxFeePerGas\`${t?` = ${w(t)} gwei`:""}) cannot be higher than the maximum allowed value (2^256-1).`,{cause:e,name:"FeeCapTooHighError"})}}Object.defineProperty(Pe,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max fee per gas higher than 2\^256-1|fee cap higher than 2\^256-1/});class _e extends o{constructor({cause:e,maxFeePerGas:t}={}){super(`The fee cap (\`maxFeePerGas\`${t?` = ${w(t)}`:""} gwei) cannot be lower than the block base fee.`,{cause:e,name:"FeeCapTooLowError"})}}Object.defineProperty(_e,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max fee per gas less than block base fee|fee cap less than block base fee|transaction is outdated/});class Ie extends o{constructor({cause:e,nonce:t}={}){super(`Nonce provided for the transaction ${t?`(${t}) `:""}is higher than the next one expected.`,{cause:e,name:"NonceTooHighError"})}}Object.defineProperty(Ie,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too high/});class $e extends o{constructor({cause:e,nonce:t}={}){super([`Nonce provided for the transaction ${t?`(${t}) `:""}is lower than the current nonce of the account.`,"Try increasing the nonce or find the latest nonce with `getTransactionCount`."].join(`
|
|
3
3
|
`),{cause:e,name:"NonceTooLowError"})}}Object.defineProperty($e,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too low|transaction already imported|already known/});class Ue extends o{constructor({cause:e,nonce:t}={}){super(`Nonce provided for the transaction ${t?`(${t}) `:""}exceeds the maximum allowed nonce.`,{cause:e,name:"NonceMaxValueError"})}}Object.defineProperty(Ue,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce has max value/});class De extends o{constructor({cause:e}={}){super(["The total cost (gas * gas fee + value) of executing this transaction exceeds the balance of the account."].join(`
|
|
4
4
|
`),{cause:e,metaMessages:["This error could arise when the account does not have enough funds to:"," - pay for the total gas fee,"," - pay for the value to send."," ","The cost of the transaction is calculated as `gas * gas fee + value`, where:"," - `gas` is the amount of gas needed for transaction to execute,"," - `gas fee` is the gas fee,"," - `value` is the amount of ether to send to the recipient."],name:"InsufficientFundsError"})}}Object.defineProperty(De,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/insufficient funds|exceeds transaction sender account balance/});class je extends o{constructor({cause:e,gas:t}={}){super(`The amount of gas ${t?`(${t}) `:""}provided for the transaction exceeds the limit allowed for the block.`,{cause:e,name:"IntrinsicGasTooHighError"})}}Object.defineProperty(je,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too high|gas limit reached/});class Le extends o{constructor({cause:e,gas:t}={}){super(`The amount of gas ${t?`(${t}) `:""}provided for the transaction is too low.`,{cause:e,name:"IntrinsicGasTooLowError"})}}Object.defineProperty(Le,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too low/});class ze extends o{constructor({cause:e}){super("The transaction type is not supported for this chain.",{cause:e,name:"TransactionTypeNotSupportedError"})}}Object.defineProperty(ze,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/transaction type not valid/});class Be extends o{constructor({cause:e,maxPriorityFeePerGas:t,maxFeePerGas:n}={}){super([`The provided tip (\`maxPriorityFeePerGas\`${t?` = ${w(t)} gwei`:""}) cannot be higher than the fee cap (\`maxFeePerGas\`${n?` = ${w(n)} gwei`:""}).`].join(`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as t,L as n}from"./react-
|
|
1
|
+
import{j as t,L as n}from"./react-IQWs2nb4.js";import{s as e,I as s,m as i,e as o,B as a}from"./index-BPF8ilkO.js";import"./sentry-DvOx8Rfb.js";import"./dcl-schemas-BICTSpB5.js";import"./ethers-rFeF6PNV.js";import"./intl-CBcMB1D2.js";const r=e.div`
|
|
2
2
|
min-height: 52vh;
|
|
3
3
|
display: flex;
|
|
4
4
|
flex-direction: column;
|