@dcl/shop 1.13.1-35590455689.commit-b96d6aa → 1.14.0
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-DtmObND1.js → Activity-ClJDhuA1.js} +4 -4
- package/_assets/{AnimatedBackground-C7LiOBAR.js → AnimatedBackground-DUa7Ov2v.js} +6 -6
- package/_assets/{Assets-BKSeyg2-.js → Assets-BcIc0eUO.js} +5 -5
- package/_assets/{Cart-BlPpGnda.js → Cart-D_ERTjKD.js} +2 -2
- package/_assets/{Collection-CcSqRcWT.js → Collection-D_kOCbdO.js} +2 -2
- package/_assets/{CollectionCarousel-B94cetFe.js → CollectionCarousel-B6lWrJsP.js} +3 -3
- package/_assets/{Confetti-BsAs2ze-.js → Confetti-Bew-g_8a.js} +4 -4
- package/_assets/{ConstantsUtil-C2D8mddi.js → ConstantsUtil-BEIMadrA.js} +2 -2
- package/_assets/{ContentClient-CzFsgWm1.js → ContentClient-y5W_g7Vn.js} +2 -2
- package/_assets/{Creator-CJGUaWbh.js → Creator-COzG8j2A.js} +2 -2
- package/_assets/{CreditPackPicker-CsfuFEfj.js → CreditPackPicker-B3dHhf6V.js} +2 -2
- package/_assets/{DeploymentBuilder-C567uLsW.js → DeploymentBuilder-BqOyy9Nu.js} +2 -2
- package/_assets/{EmotePlaybackBar-v4_tU2B8.js → EmotePlaybackBar-CkJMl8Ys.js} +3 -3
- package/_assets/{ErrorNotice-Bvb886Qo.js → ErrorNotice-BzCdhpYg.js} +2 -2
- package/_assets/{Event-Dw7dIeEd.js → Event-DmwvHWg0.js} +2 -2
- package/_assets/{ExchangeController-DosyxWhL.js → ExchangeController-CcJ992u0.js} +2 -2
- package/_assets/{Faq-CfWixARb.js → Faq-DyMSOSdu.js} +2 -2
- package/_assets/{Filters-YViPs7N9.js → Filters-0mhMwsT4.js} +2 -2
- package/_assets/{GetCredits-xHj_8fdJ.js → GetCredits-Zpdkomal.js} +2 -2
- package/_assets/{Grow-CTV7DbJ0.js → Grow-BMYVzAB-.js} +2 -2
- package/_assets/{HelpersUtil-CH7uwgeQ.js → HelpersUtil-D3GTjIqd.js} +2 -2
- package/_assets/{ItemDetail-CGP_a6DC.js → ItemDetail-CJj8jEHw.js} +2 -2
- package/_assets/{LoadMore-DtjdrYgG.js → LoadMore-BoawUj5u.js} +2 -2
- package/_assets/{ManaPricingBanner.styles-DujCFxcW.js → ManaPricingBanner.styles-ZBF47pKw.js} +2 -2
- package/_assets/{MyAssets-B6TkqwwO.js → MyAssets-B716pQR9.js} +2 -2
- package/_assets/{MyFavorites-B44xn-9o.js → MyFavorites-C7E4rGlu.js} +2 -2
- package/_assets/{MyStore-BQ6gSMq1.js → MyStore-B4ovbK7K.js} +2 -2
- package/_assets/{NetworkUtil-gznX6ou4.js → NetworkUtil-Cfolzg8H.js} +2 -2
- package/_assets/{NotFound-D7NlwWss.js → NotFound-BeAnWp_j.js} +2 -2
- package/_assets/{NotificationsBell-wL661h4k.js → NotificationsBell-BKPZceet.js} +2 -2
- package/_assets/{OutfitDetail-CSiCaTR7.js → OutfitDetail-84M6woQd.js} +2 -2
- package/_assets/{OutfitPreview-CKul99pm.js → OutfitPreview-B9rXgc6T.js} +2 -2
- package/_assets/{OutfitStudio-BFVYiWYq.js → OutfitStudio-Bmcs3UQ2.js} +2 -2
- package/_assets/{PaymentMethodStep-gIGuBdJE.js → PaymentMethodStep-BhlDujoG.js} +2 -2
- package/_assets/{SaleCountdown-2TjAtNVx.js → SaleCountdown-ZqNNRvGl.js} +2 -2
- package/_assets/{Spinner-CRDfDFgI.js → Spinner-q3iTi3ii.js} +2 -2
- package/_assets/{StoreSettings-CWiJDJd-.js → StoreSettings-C2RcxecX.js} +2 -2
- package/_assets/{Success-BKyyN-pm.js → Success-DC7IQtYH.js} +2 -2
- package/_assets/{SwapController-DCQKOdcz.js → SwapController-ZhjMiIuW.js} +2 -2
- package/_assets/{Tooltip-DDZC_HFb.js → Tooltip-D93wbqH3.js} +2 -2
- package/_assets/{TradeService-DfSf1NpN.js → TradeService-CitNPz55.js} +2 -2
- package/_assets/{W3MFrameProviderSingleton-CrWP7H9X.js → W3MFrameProviderSingleton-C45teoHA.js} +4 -4
- package/_assets/{WebCryptoP256-CLuRQdD0.js → WebCryptoP256-P1TJpkT3.js} +2 -2
- package/_assets/{basic-CnpinvSd.js → basic-DFLU4hvG.js} +2 -2
- package/_assets/{biconomy-CQS-_u1K.js → biconomy-Cn58cwLB.js} +2 -2
- package/_assets/{browseLayout.styles-DlEgobcb.js → browseLayout.styles-BQX0gV95.js} +2 -2
- package/_assets/{browser-jrXp40VI.js → browser-2FaDq09e.js} +2 -2
- package/_assets/{browser-JmFfz-b9.js → browser-DUVgJQ9P.js} +2 -2
- package/_assets/{browser-ponyfill-vVJjiRiF.js → browser-ponyfill-yjhsbKOy.js} +2 -2
- package/_assets/{buy-DNvl7CRU.js → buy-CTkywn1H.js} +2 -2
- package/_assets/{buy-gasless-Cd8D2hco.js → buy-gasless-DMB8lxmW.js} +2 -2
- package/_assets/{cart-checkout-BvFV5K1b.js → cart-checkout-VtT_e12v.js} +2 -2
- package/_assets/{categories-D2I9oC9p.js → categories-D9ztnT0t.js} +2 -2
- package/_assets/{ccip-D8g0xR6M.js → ccip-BnqB_0si.js} +2 -2
- package/_assets/{ccip-fv1rGl9l.js → ccip-DPDrDIOJ.js} +2 -2
- package/_assets/{chains-rk6oFk-J.js → chains-DSedwvSh.js} +2 -2
- package/_assets/collectionPage.styles-Ie9Wzs-2.js +41 -0
- package/_assets/{common-CMmghlP6.js → common-Csv1Hgun.js} +2 -2
- package/_assets/{controller-l-w-81tc.js → controller-BbIvRnu_.js} +3 -3
- package/_assets/{core-BphVSVDd.js → core-B1SeNqWd.js} +5 -5
- package/_assets/{createSvgIcon-Ci6-mKZX.js → createSvgIcon-DTlsIw_n.js} +2 -2
- package/_assets/{crumbs.styles-DhvCPMDb.js → crumbs.styles-BjlZjxKT.js} +2 -2
- package/_assets/{custom-COOt78S6.js → custom-CyNnwyrk.js} +2 -2
- package/_assets/{data-capture-C7thi-6U.js → data-capture-bl3RuFhy.js} +2 -2
- package/_assets/{dcl-schemas-rAoTN5Ga.js → dcl-schemas-DX4k9umP.js} +2 -2
- package/_assets/{decimals-Dl7Q2CQ8.js → decimals-BPknTcmM.js} +2 -2
- package/_assets/{decimals-DvdfA0Vf.js → decimals-BSb-J95O.js} +2 -2
- package/_assets/{detectExtension-CnrRv_RG.js → detectExtension-fRCVx78W.js} +2 -2
- package/_assets/{disposePreview-ZbaLYmpw.js → disposePreview-DvIwpsnU.js} +2 -2
- package/_assets/{email-eSYyd3Ic.js → email-gkNu-Hlx.js} +2 -2
- package/_assets/{embedded-wallet-DDuKB0SG.js → embedded-wallet-Cs5NPUt8.js} +2 -2
- package/_assets/{emotion-styled.browser.esm-hf9E1adQ.js → emotion-styled.browser.esm-BJVzjU1c.js} +2 -2
- package/_assets/{engine-DD67Y28C.js → engine-CW2Z8pVD.js} +2 -2
- package/_assets/{errors-YbnZlxOr.js → errors-4zJ_Wl5M.js} +2 -2
- package/_assets/{estimate-l1-fee-Db8Xd1Gz.js → estimate-l1-fee-Badwsb8m.js} +2 -2
- package/_assets/{eth_estimateGas-CuREEErh.js → eth_estimateGas-BgFpyTkS.js} +2 -2
- package/_assets/{eth_getStorageAt-DZSUCK-B.js → eth_getStorageAt-DKEPQON0.js} +2 -2
- package/_assets/{eth_getTransactionCount-BdILqCdx.js → eth_getTransactionCount-gaEnGR6r.js} +2 -2
- package/_assets/{ethereum-B-cyXRfV.js → ethereum-S8WcHv6J.js} +2 -2
- package/_assets/{ethers-BicPoGF3.js → ethers-zQzQ03Jk.js} +2 -2
- package/_assets/{events-CaiMQ2jo.js → events-Dw8qdJzW.js} +2 -2
- package/_assets/{execute-DY89Xj7h.js → execute-U5naAh6E.js} +3 -3
- package/_assets/{extractIPFS-DPI0xl1R.js → extractIPFS-BNCXnSzg.js} +2 -2
- package/_assets/{features-CuKlQS4a.js → features-BBcVsOgK.js} +2 -2
- package/_assets/{fetchTokenMetadata-BxkvK3Bm.js → fetchTokenMetadata-By10s6gT.js} +3 -3
- package/_assets/{field.styles-DMi6RLqU.js → field.styles-BIZZX6wX.js} +2 -2
- package/_assets/{fortmatic-O6xyCC9X.js → fortmatic-B8kFivHm.js} +2 -2
- package/_assets/{get-bytecode-Mi4Svfmk.js → get-bytecode-DrE4YuwF.js} +2 -2
- package/_assets/{get-ecosystem-wallet-info-UP5lf6cZ.js → get-ecosystem-wallet-info-BNQ_hX9h.js} +2 -2
- package/_assets/{getBalance-B6-tJ5BV.js → getBalance-DLClyv9X.js} +3 -3
- package/_assets/{getInstalledModules-BtUgUvpg.js → getInstalledModules-IfG8UyYC.js} +2 -2
- package/_assets/{getNFT-BkPMs9B5.js → getNFT-DJiUJ9Oi.js} +3 -3
- package/_assets/{getNFT-DATmUgAo.js → getNFT-oyj-taig.js} +2 -2
- package/_assets/{grid.styles-D0ZoMAGk.js → grid.styles-Z4awgikx.js} +2 -2
- package/_assets/{hashTypedData-CefqN4UY.js → hashTypedData-D4-M18T2.js} +2 -2
- package/_assets/{hashTypedData-DN22sW92.js → hashTypedData-FU3Vjhpj.js} +2 -2
- package/_assets/{import-uY6UfPXb.js → import-CEcKo4mP.js} +2 -2
- package/_assets/{in-app-Bny7t-DP.js → in-app-I0cf7WYG.js} +2 -2
- package/_assets/{in-app-wallet-calls-DCQO7CRP.js → in-app-wallet-calls-CKuFDFk-.js} +2 -2
- package/_assets/{index-CakMQwPl.js → index-1VwXrOEt.js} +2 -2
- package/_assets/{index-PCOMQSTj.js → index-42hgym_I.js} +14 -14
- package/_assets/{index-BXZWbQLr.js → index-6Xn36K0W.js} +2 -2
- package/_assets/{index-MB1YeHVs.js → index-B4wWS0Gy.js} +2 -2
- package/_assets/{index-TLvmnU-6.js → index-BAKQxGdL.js} +2 -2
- package/_assets/{index-D_GN8H-m.js → index-BLAsxxaO.js} +2 -2
- package/_assets/{index-Bwq-s3g2.js → index-BQGv2KeQ.js} +2 -2
- package/_assets/{index-BNxapPjc.js → index-BULAWDSX.js} +2 -2
- package/_assets/{index-BB2vaXmU.js → index-Be-ctASu.js} +2 -2
- package/_assets/{index-ujlY03pm.js → index-BfPQiLLe.js} +2 -2
- package/_assets/{index-D1s-_zWj.js → index-Bgiq1vwC.js} +2 -2
- package/_assets/{index-D5mE-BZf.js → index-BjBSPCU1.js} +2 -2
- package/_assets/{index-BdzxJpnV.js → index-Bo9y28EU.js} +2 -2
- package/_assets/{index-CFX2-tLC.js → index-BoPotZC3.js} +2 -2
- package/_assets/{index-CM1GTgwu.js → index-Bqh-tCGe.js} +2 -2
- package/_assets/{index-B5yRX3sO.js → index-C1hKYMFK.js} +2 -2
- package/_assets/{index-0GVDw4uz.js → index-C2mGmByD.js} +2 -2
- package/_assets/{index-DBXe-H17.js → index-CA7TO4ls.js} +4 -4
- package/_assets/{index-Vx6QrhKv.js → index-CEPyzyCp.js} +2 -2
- package/_assets/{index-Dm2tHUTz.js → index-CFthW2p7.js} +2 -2
- package/_assets/{index--MHqQDZS.js → index-CV-lFcl7.js} +2 -2
- package/_assets/{index-CbayBN70.js → index-C_9coDoA.js} +2 -2
- package/_assets/index-Ccn2ZaWp.css +1 -0
- package/_assets/{index-BXk1eKu5.js → index-Cf0ax7ss.js} +2 -2
- package/_assets/{index-PdWok5k8.js → index-Cf2kLDcU.js} +3 -3
- package/_assets/{index-C30kKaUV.js → index-CfVRvVRY.js} +2 -2
- package/_assets/{index-B5rvK7P3.js → index-CgIMFF8o.js} +2 -2
- package/_assets/{index-Cg51zZ2k.js → index-CkieTCyo.js} +2 -2
- package/_assets/{index-_CzitlLr.js → index-Cn2VZ7A5.js} +2 -2
- package/_assets/{index-Dk93Si47.js → index-CoM_vldC.js} +2 -2
- package/_assets/{index-CW8iztAv.js → index-CsbKyoiZ.js} +2 -2
- package/_assets/{index-oZ1tZhJd.js → index-Cwr2mQ1P.js} +3 -3
- package/_assets/{index-7-ubf_-8.js → index-CxnrQJZL.js} +2 -2
- package/_assets/{index-fKOqL46i.js → index-D36MVtN_.js} +2 -2
- package/_assets/{index-Cz_NLjja.js → index-D8S7I2jv.js} +3 -3
- package/_assets/{index-DtG0vwAQ.js → index-DBeIvzhn.js} +2 -2
- package/_assets/{index-B-pxbYDD.js → index-DC0IP02u.js} +2 -2
- package/_assets/{index-DVuOEZvs.js → index-DFGKEHJp.js} +2 -2
- package/_assets/{index-BYX4J5QP.js → index-DG7I_o74.js} +2 -2
- package/_assets/{index-C1VNSD13.js → index-DLs1oPw4.js} +2 -2
- package/_assets/{index-CDzHP3jq.js → index-DOMRwinX.js} +2 -2
- package/_assets/{index-CbiZcfm9.js → index-DOnS6h9q.js} +2 -2
- package/_assets/{index-DLNZA_z3.js → index-DQ72F3-_.js} +2 -2
- package/_assets/{index-BUq9yZ3w.js → index-DQBa_kNC.js} +2 -2
- package/_assets/{index-tJJoQndL.js → index-DYg0EuOr.js} +2 -2
- package/_assets/{index-B8Miitap.js → index-DZa4T5tN.js} +2 -2
- package/_assets/{index-xFEDZfFw.js → index-Dbq2Ch71.js} +2 -2
- package/_assets/{index-72AbyZoi.js → index-DcNOFVm1.js} +2 -2
- package/_assets/{index-DvmOwVBr.js → index-Dg63gyHq.js} +2 -2
- package/_assets/{index-DY5YerbM.js → index-DhOTREMg.js} +3 -3
- package/_assets/{index-BvC4isNn.js → index-DjXa64AR.js} +2 -2
- package/_assets/{index-DKolBddb.js → index-DjzjJqtG.js} +2 -2
- package/_assets/{index-CO1HUlye.js → index-DpxLcDgW.js} +2 -2
- package/_assets/{index-Nax2ER2m.js → index-Dtp8rC8A.js} +2 -2
- package/_assets/{index-Dmr0-dT1.js → index-DuxgvZzF.js} +2 -2
- package/_assets/{index-DXGd7b5m.js → index-FjNEHsud.js} +2 -2
- package/_assets/{index-BJ_QYYzi.js → index-GJ64rDmp.js} +2 -2
- package/_assets/{index-os35Oj8Y.js → index-QVjmP3xl.js} +2 -2
- package/_assets/{index-Crr-s_9f.js → index-SJBE5eFc.js} +2 -2
- package/_assets/{index-BxmlkA7q.js → index-W4ibltdC.js} +2 -2
- package/_assets/{index-gLJ8elkH.js → index-XHcC2FaE.js} +2 -2
- package/_assets/{index-CYNOPRoZ.js → index-Z37GANTN.js} +2 -2
- package/_assets/{index-6JqTwz5Z.js → index-fCngzjUk.js} +4 -4
- package/_assets/{index-Dck2NPjx.js → index-mTyAR_XJ.js} +2 -2
- package/_assets/{index-CP4g0MYO.js → index-srmfnjPo.js} +2 -2
- package/_assets/{index-HpMk4su8.js → index-vC3-5xFa.js} +4 -4
- package/_assets/{index-B0ZDNOJc.js → index-xHNryJhm.js} +2 -2
- package/_assets/{index-DY6MimDO.js → index-xmrxkFq5.js} +2 -2
- package/_assets/{index.es-DXZDtwqn.js → index.es-BTnBOO6U.js} +2 -2
- package/_assets/{index.es-naJ1lYo9.js → index.es-BjMftfX7.js} +2 -2
- package/_assets/{index.es-ug1d0j5_.js → index.es-BoxCyFog.js} +5 -5
- package/_assets/{index.es-BA-gf3fx.js → index.es-CkHCyafU.js} +2 -2
- package/_assets/items-empty-BgYde4VW.js +2 -0
- package/_assets/{jump-CDi48t17.js → jump-DM5AuOdu.js} +2 -2
- package/_assets/{linkAccount-D2r-_PNt.js → linkAccount-LJHWy5CK.js} +2 -2
- package/_assets/{localBatchGatewayRequest-DCZrRD0b.js → localBatchGatewayRequest-C4Hpu-o0.js} +2 -2
- package/_assets/{modal.styles-B9NcZpH1.js → modal.styles-B24MpRUv.js} +2 -2
- package/_assets/{native-CsJDQkEo.js → native-DwXB0bjC.js} +2 -2
- package/_assets/{networks-H2-ip_xr.js → networks-C5jU04Cx.js} +2 -2
- package/_assets/{onramp-jMWRpk_W.js → onramp-vNFpzEJn.js} +2 -2
- package/_assets/{openzeppelin-CNtXocND.js → openzeppelin-CZOcMmYj.js} +2 -2
- package/_assets/{ownerOf-D2gp3JZq.js → ownerOf-CbZeyYyT.js} +2 -2
- package/_assets/{parseNft-Cj0GHmVO.js → parseNft-BbihitES.js} +3 -3
- package/_assets/{parseSignature-DqjVaLFW.js → parseSignature-C4U6F_fO.js} +2 -2
- package/_assets/{parseSignature-Cr-6xEFY.js → parseSignature-Cfk8FqxM.js} +4 -4
- package/_assets/{passkeys-ZTPY9Io2.js → passkeys--CjtD2Ra.js} +2 -2
- package/_assets/{pay-with-exchange-DFmrgXeW.js → pay-with-exchange-BI9c0reN.js} +2 -2
- package/_assets/{prepare-contract-call-BXj1hstj.js → prepare-contract-call-CoYzlXqQ.js} +2 -2
- package/_assets/{qr-overlay-BaiwMdsM.js → qr-overlay-z09rwiht.js} +4 -4
- package/_assets/{react-BQkTEhfI.js → react-CZ2YYu9h.js} +2 -2
- package/_assets/{receive-C-lo_prs.js → receive-Dd15UTLF.js} +2 -2
- package/_assets/{resolveImplementation-CmaftYpU.js → resolveImplementation-DUg5Jhmj.js} +2 -2
- package/_assets/{resume-buy-CVhyi-L1.js → resume-buy-B2bK6shi.js} +2 -2
- package/_assets/{resume-name-DUz5x9Rs.js → resume-name-HFLT1W-_.js} +2 -2
- package/_assets/{rpc-B61gfFSf.js → rpc-D2wD2_af.js} +2 -2
- package/_assets/{sales-empty-B211ygk7.js → sales-empty-BSDLd2Ac.js} +2 -2
- package/_assets/{search-empty-D4s8B_tZ.js → search-empty-CngZRhKm.js} +2 -2
- package/_assets/{secp256k1-Bd-eUAzZ.js → secp256k1-BRknMrYC.js} +2 -2
- package/_assets/{secp256k1-iVBXtOip.js → secp256k1-SE5N-Uo1.js} +2 -2
- package/_assets/{secp256k1-DV0o92mg.js → secp256k1-jAwCrfgX.js} +2 -2
- package/_assets/{send-DxdkG-xE.js → send-BJBHSNCZ.js} +2 -2
- package/_assets/{send-batch-transaction-CxU4nO-t.js → send-batch-transaction-BZVCQXYh.js} +2 -2
- package/_assets/{send-eip712-transaction-DFcFblDh.js → send-eip712-transaction-BO8U424Q.js} +3 -3
- package/_assets/{send-gasless-transaction-8mkyEx1n.js → send-gasless-transaction-CPHMIHcy.js} +3 -3
- package/_assets/{send-transaction-5bX-xy_o.js → send-transaction-DwOBumXa.js} +3 -3
- package/_assets/{sendMetaTransaction-C0dwdljX.js → sendMetaTransaction-CvXg55Sj.js} +2 -2
- package/_assets/{sendRawTransaction-Z6tsEgH4.js → sendRawTransaction-C9G3juFQ.js} +4 -4
- package/_assets/{sentry-DEsWWpBW.js → sentry-B1mJ7lMg.js} +3 -3
- package/_assets/{serializeTransaction-97Bat4Ro.js → serializeTransaction-BGQTd-eV.js} +2 -2
- package/_assets/{session-proposal-BFyOx5ep.js → session-proposal-CmybrBgX.js} +2 -2
- package/_assets/{session-request-B-ZDEBIl.js → session-request-B8NAXzJm.js} +3 -3
- package/_assets/{sha256-CFlr28b8.js → sha256-BfpwxWFN.js} +2 -2
- package/_assets/{sha3-VyXLimeE.js → sha3-BSpI9EWc.js} +2 -2
- package/_assets/signin-empty-Ae4I7w1I.js +2 -0
- package/_assets/{signing-CaEAGDvd.js → signing-BeQY8i5o.js} +4 -4
- package/_assets/{skeleton.styles-CP5AXi51.js → skeleton.styles-BvmK2SPa.js} +2 -2
- package/_assets/{socials-BAatCjg9.js → socials-pv-fatlK.js} +2 -2
- package/_assets/{styled-Ciz7uJTf.js → styled-BN3FALZ-.js} +2 -2
- package/_assets/{swaps-Duk8fCsv.js → swaps-CBLIZcy1.js} +2 -2
- package/_assets/{thirdweb-Cvgkcum1.js → thirdweb-B0tAvkOB.js} +4 -4
- package/_assets/{to-serializable-transaction-BQmkdzOC.js → to-serializable-transaction-DlVSUELg.js} +3 -3
- package/_assets/{totalSupply-DWGbPH_3.js → totalSupply-BUrR0ujT.js} +2 -2
- package/_assets/{trade-encoding-7I6Mahyk.js → trade-encoding-BHVebGX4.js} +2 -2
- package/_assets/{transaction-C6zqrRsP.js → transaction-DEuQGHWS.js} +2 -2
- package/_assets/{transactionReceipt-wHhvs2MM.js → transactionReceipt-BdYwXxz9.js} +2 -2
- package/_assets/{transactions-CWlJM2Ik.js → transactions-Dy4aCK3U.js} +2 -2
- package/_assets/{useCreatorSales-B_z9WK8w.js → useCreatorSales-C3o5VeDN.js} +2 -2
- package/_assets/{useInfiniteGrid-B28HAmqv.js → useInfiniteGrid-Dt_ssV2e.js} +2 -2
- package/_assets/{useStore-BH311mqp.js → useStore-DSk5Zm3O.js} +3 -3
- package/_assets/{useTheme-CnRNEYQX.js → useTheme-B0ivQtHy.js} +2 -2
- package/_assets/{utils-Dpy_P8-Z.js → utils-DhRq6yOi.js} +2 -2
- package/_assets/{verifyHash-CNHX3bhf.js → verifyHash-CykSL3oh.js} +2 -2
- package/_assets/{w3m-modal-Cd0pP9Y6.js → w3m-modal-MQbLbuVJ.js} +2 -2
- package/_assets/{w3m-modal-BfLNfzQm.js → w3m-modal-zpVMRo94.js} +2 -2
- package/_assets/{wait-for-tx-receipt-CCoeTvDN.js → wait-for-tx-receipt-COH8KUJZ.js} +2 -2
- package/_assets/{wallets-DBEimxdS.js → wallets-D36z-WS9.js} +6 -6
- package/_assets/{web-connector-CFETM0Ek.js → web-connector-DfG35fRn.js} +4 -4
- package/_assets/{writeContract-xYjTt9Gm.js → writeContract-BZyrswRY.js} +2 -2
- package/_assets/{zora-sepolia-CmFkNSlJ.js → zora-sepolia-D5TfknXJ.js} +2 -2
- package/_assets/{zoraTestnet-D9iiG-Zu.js → zoraTestnet-YadYknEM.js} +2 -2
- package/index.html +11 -11
- package/package.json +2 -2
- package/_assets/collectionPage.styles-CNsIHztj.js +0 -41
- package/_assets/index-DKFaSnR3.css +0 -1
- package/_assets/items-empty-DQe16EqO.js +0 -2
- package/_assets/signin-empty-3JhXhx04.js +0 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{i as y,b as h}from"./lit-element-wjYUA6aF.js";import{n as b,o as v,r as C}from"./class-map-BxMzgOIb.js";import{d as m,r as g}from"./index-
|
|
1
|
+
import{i as y,b as h}from"./lit-element-wjYUA6aF.js";import{n as b,o as v,r as C}from"./class-map-BxMzgOIb.js";import{d as m,r as g}from"./index-CA7TO4ls.js";import{c as k}from"./index-CfVRvVRY.js";import{e as _,n as O}from"./ref-D90CCjlU.js";import{e as E,i as L,p as R,O as l}from"./W3MFrameProviderSingleton-C45teoHA.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="d0241553-0007-490e-8622-f1e964e2aebd",e._sentryDebugIdIdentifier="sentry-dbid-d0241553-0007-490e-8622-f1e964e2aebd")}catch{}})();const d=R({isLegalCheckboxChecked:!1}),x={state:d,subscribe(e){return L(d,()=>e(d))},subscribeKey(e,t){return E(d,e,t)},setIsLegalCheckboxChecked(e){d.isLegalCheckboxChecked=e}},j=m`
|
|
2
2
|
label {
|
|
3
3
|
display: inline-flex;
|
|
4
4
|
align-items: center;
|
|
@@ -187,4 +187,4 @@ import{i as y,b as h}from"./lit-element-wjYUA6aF.js";import{n as b,o as v,r as C
|
|
|
187
187
|
/>
|
|
188
188
|
</svg>
|
|
189
189
|
`}};u.styles=[g,I];$([b({type:Number})],u.prototype,"radius",void 0);u=$([k("wui-loading-thumbnail")],u);export{x as O};
|
|
190
|
-
//# sourceMappingURL=index-
|
|
190
|
+
//# sourceMappingURL=index-Dg63gyHq.js.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["_assets/index-
|
|
2
|
-
import{_ as b}from"./index-PCOMQSTj.js";import{c as T,C as O,a as G,P as k}from"./index-6JqTwz5Z.js";import{i as bt}from"./index-6JqTwz5Z.js";import{aI as D,aR as B,bh as F}from"./sendRawTransaction-Z6tsEgH4.js";import{x as L,af as z,a5 as _,Y as f,u as x,al as H,r as Y}from"./NetworkUtil-gznX6ou4.js";import{G as J,w as U,a as E}from"./W3MFrameProviderSingleton-CrWP7H9X.js";import{a as P}from"./custom-COOt78S6.js";import"./react-BQkTEhfI.js";import"./dcl-schemas-rAoTN5Ga.js";import"./sentry-DEsWWpBW.js";import"./ethers-BicPoGF3.js";import"./intl-AKLEHPeO.js";import"./index-Cg51zZ2k.js";import"./index-PdWok5k8.js";import"./events-CaiMQ2jo.js";import"./browser-ponyfill-vVJjiRiF.js";import"./index-BB2vaXmU.js";import"./index-CP4g0MYO.js";import"./store-80QKZ2rN.js";import"./writeContract-xYjTt9Gm.js";(function(){try{var M=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},p=new M.Error().stack;p&&(M._sentryDebugIds=M._sentryDebugIds||{},M._sentryDebugIds[p]="0667d7c5-b3a6-408c-a1df-5b153c2f1c8d",M._sentryDebugIdIdentifier="sentry-dbid-0667d7c5-b3a6-408c-a1df-5b153c2f1c8d")}catch{}})();function K(M,{body:p,onError:u,onResponse:l}){return M.request({body:p,onError:u,onResponse:l}),M}async function X(M,{body:p,timeout:u=1e4}){return M.requestAsync({body:p,timeout:u})}const m={http(M,p){return J(M).request(p)},webSocket:K,webSocketAsync:X};Q.type="mock";function Q(M){const p=new Map,u=M.features??{defaultConnected:!1};let l=u.defaultConnected,r;return T(o=>({id:"mock",name:"Mock Connector",type:Q.type,async setup(){r=o.chains[0].id},async connect({chainId:t,withCapabilities:e}={}){if(u.connectError)throw typeof u.connectError=="boolean"?new f(new Error("Failed to connect.")):u.connectError;const a=await(await this.getProvider()).request({method:"eth_requestAccounts"});let n=await this.getChainId();return t&&n!==t&&(n=(await this.switchChain({chainId:t})).id),l=!0,{accounts:e?a.map(i=>({address:D(i),capabilities:{foo:{bar:i}}})):a.map(i=>D(i)),chainId:n}},async disconnect(){l=!1},async getAccounts(){if(!l)throw new G;return(await(await this.getProvider()).request({method:"eth_accounts"})).map(c=>D(c))},async getChainId(){const e=await(await this.getProvider()).request({method:"eth_chainId"});return _(e,"number")},async isAuthorized(){return!u.reconnect||!l?!1:!!(await this.getAccounts()).length},async switchChain({chainId:t}){const e=await this.getProvider(),c=o.chains.find(a=>a.id===t);if(!c)throw new L(new O);return await e.request({method:"wallet_switchEthereumChain",params:[{chainId:z(t)}]}),c},onAccountsChanged(t){t.length===0?this.onDisconnect():o.emitter.emit("change",{accounts:t.map(e=>D(e))})},onChainChanged(t){const e=Number(t);o.emitter.emit("change",{chainId:e})},async onDisconnect(t){o.emitter.emit("disconnect"),l=!1},async getProvider({chainId:t}={}){const c=(o.chains.find(n=>n.id===t)??o.chains[0]).rpcUrls.default.http[0];return P({request:async({method:n,params:i})=>{if(n==="eth_chainId")return z(r);if(n==="eth_accounts"||n==="eth_requestAccounts")return M.accounts;if(n==="eth_signTypedData_v4"&&u.signTypedDataError)throw typeof u.signTypedDataError=="boolean"?new f(new Error("Failed to sign typed data.")):u.signTypedDataError;if(n==="wallet_switchEthereumChain"){if(u.switchChainError)throw typeof u.switchChainError=="boolean"?new f(new Error("Failed to switch chain.")):u.switchChainError;r=_(i[0].chainId,"number"),this.onChainChanged(r.toString());return}if(n==="wallet_watchAsset"){if(u.watchAssetError)throw typeof u.watchAssetError=="boolean"?new f(new Error("Failed to switch chain.")):u.watchAssetError;return l}if(n==="wallet_getCapabilities")return{"0x2105":{paymasterService:{supported:i[0]==="0x95132632579b073D12a6673e18Ab05777a6B86f8"},sessionKeys:{supported:!0}},"0x14A34":{paymasterService:{supported:i[0]==="0x95132632579b073D12a6673e18Ab05777a6B86f8"}}};if(n==="wallet_sendCalls"){const w=[],y=i[0].calls,h=i[0].from;for(const j of y){const{result:A,error:C}=await m.http(c,{body:{method:"eth_sendTransaction",params:[{...j,...typeof h<"u"?{from:h}:{}}]}});if(C)throw new x({body:{method:n,params:i},error:C,url:c});w.push(A)}const I=B(H(JSON.stringify(y)));return p.set(I,w),{id:I}}if(n==="wallet_getCallsStatus"){const w=p.get(i[0]);if(!w)return{atomic:!1,chainId:"0x1",id:i[0],status:100,receipts:[],version:"2.0.0"};const h=(await Promise.all(w.map(async I=>{const{result:j,error:A}=await m.http(c,{body:{method:"eth_getTransactionReceipt",params:[I],id:0}});if(A)throw new x({body:{method:n,params:i},error:A,url:c});return j?{blockHash:j.blockHash,blockNumber:j.blockNumber,gasUsed:j.gasUsed,logs:j.logs,status:j.status,transactionHash:j.transactionHash}:null}))).filter(I=>I!==null);return h.length===0?{atomic:!1,chainId:"0x1",id:i[0],status:100,receipts:[],version:"2.0.0"}:{atomic:!1,chainId:"0x1",id:i[0],status:200,receipts:h,version:"2.0.0"}}if(n==="wallet_showCallsStatus")return;if(n==="personal_sign"){if(u.signMessageError)throw typeof u.signMessageError=="boolean"?new f(new Error("Failed to sign message.")):u.signMessageError;n="eth_sign",i=[i[1],i[0]]}const s={method:n,params:i},{error:d,result:g}=await m.http(c,{body:s});if(d)throw new x({body:s,error:d,url:c});return g}})({retryCount:0})}}))}function $(M){var o,t,e;const{chain:p}=M,u=p.rpcUrls.default.http[0];if(!M.transports)return[u];const l=(t=(o=M.transports)==null?void 0:o[p.id])==null?void 0:t.call(o,{chain:p});return(((e=l==null?void 0:l.value)==null?void 0:e.transports)||[l]).map(({value:c})=>(c==null?void 0:c.url)||u)}const tt='data:image/svg+xml,<svg width="269" height="269" viewBox="0 0 269 269" fill="none" xmlns="http://www.w3.org/2000/svg"><rect width="269" height="269" fill="black"/><path d="M123.273 190.794H93.445L121.09 105.318H85.7334L93.445 80.2642H191.95L184.238 105.318H150.773L123.273 190.794Z" fill="white"/></svg>';function Nt(M={}){const{dialog:p,host:u,icon:l=tt,name:r,rdns:o,theme:t,...e}=M;return nt({createAdapter(c){return c.dialog({dialog:p,host:u,icon:l,name:r,rdns:o,theme:t})},icon:l,id:o??"xyz.tempo",name:r??"Tempo Wallet",providerParameters:e,rdns:o??"xyz.tempo",type:"injected"})}function nt(M){return T(p=>{const u=p.chains;let l,r,o,t,e;async function c(){return await b(()=>import("./core-MGlJp9r1.js"),[]).catch(()=>{throw new Error('dependency "accounts" not found')})}async function a(){return l??(l=(async()=>{const n=await c();return n.Provider.create({...M.providerParameters,adapter:M.createAdapter(n),chains:p.chains,transports:p.transports})})()),await l}return{icon:M.icon,id:M.id,name:M.name,rdns:M.rdns,type:M.type,async connect(n={}){const{chainId:i,isReconnecting:s,withCapabilities:d}=n,g="capabilities"in n?n.capabilities:void 0;let w=[],y;s&&(w=await this.getAccounts().then(h=>h.map(I=>({address:I,capabilities:{}}))).catch(()=>[]));try{if(!w.length&&!s&&(w=(await(await a()).request({method:"wallet_connect",params:[{...i?{chainId:i}:{},...g?{capabilities:g}:{}}]})).accounts),y??(y=await this.getChainId()),!y)throw new O;const h=await a();return t&&(h.removeListener("connect",t),t=void 0),r||(r=this.onAccountsChanged.bind(this),h.on("accountsChanged",r)),o||(o=this.onChainChanged.bind(this),h.on("chainChanged",o)),e||(e=this.onDisconnect.bind(this),h.on("disconnect",e)),{accounts:d?w:w.map(I=>I.address),chainId:y}}catch(h){const I=h;throw I.code===f.code?new f(I):I}},async disconnect(){var i;const n=await a();o&&(n.removeListener("chainChanged",o),o=void 0),e&&(n.removeListener("disconnect",e),e=void 0),t||(t=(i=this.onConnect)==null?void 0:i.bind(this),t&&n.on("connect",t)),await n.request({method:"wallet_disconnect"})},async getAccounts(){return await(await a()).request({method:"eth_accounts"})},async getChainId(){const n=await a();return Number(await n.request({method:"eth_chainId"}))},async getClient({chainId:n}={}){const i=await a(),{address:s}=i.getAccount({accessKey:!1});return Object.assign(i.getClient({chainId:n}),{account:F(s)})},async getProvider(){return await a()},async isAuthorized(){try{return!!(await U(()=>this.getAccounts())).length}catch{return!1}},onAccountsChanged(n){p.emitter.emit("change",{accounts:n})},onChainChanged(n){p.emitter.emit("change",{chainId:Number(n)})},async onConnect(n){const i=await this.getAccounts();if(i.length===0)return;const s=Number(n.chainId);p.emitter.emit("connect",{accounts:i,chainId:s});const d=await a();t&&(d.removeListener("connect",t),t=void 0),r||(r=this.onAccountsChanged.bind(this),d.on("accountsChanged",r)),o||(o=this.onChainChanged.bind(this),d.on("chainChanged",o)),e||(e=this.onDisconnect.bind(this),d.on("disconnect",e))},async onDisconnect(n){var s;const i=await a();p.emitter.emit("disconnect"),o&&(i.removeListener("chainChanged",o),o=void 0),e&&(i.removeListener("disconnect",e),e=void 0),t||(t=(s=this.onConnect)==null?void 0:s.bind(this),t&&i.on("connect",t))},async setup(){var n;if(!t){const i=await a();t=(n=this.onConnect)==null?void 0:n.bind(this),t&&i.on("connect",t)}},async switchChain({chainId:n}){const i=u.find(d=>d.id===n);if(!i)throw new L(new O);return await(await a()).request({method:"wallet_switchEthereumChain",params:[{chainId:z(n)}]}),i}}})}function jt(M={}){let p,u,l,r;return T(o=>({id:"baseAccount",name:"Base Account",rdns:"app.base.account",type:"baseAccount",async connect({chainId:t,withCapabilities:e,...c}={}){var a;try{const n=await this.getProvider(),i=t??((a=o.chains[0])==null?void 0:a.id);if(!i)throw new O;let{accounts:s,currentChainId:d}=await(async()=>{if(c.isReconnecting)return{accounts:(await n.request({method:"eth_accounts",params:[]})).map(h=>({address:D(h)})),currentChainId:await this.getChainId()};const g=await n.request({method:"wallet_connect",params:[{capabilities:"capabilities"in c&&c.capabilities?c.capabilities:{},chainIds:[z(i),...o.chains.filter(h=>h.id!==i).map(h=>z(h.id))]}]});return{accounts:(await n.request({method:"eth_accounts"})).map(h=>g.accounts.find(I=>I.address===h)??{address:h}).map(h=>({address:D(h.address),capabilities:h.capabilities??{}})),currentChainId:Number(g.chainIds[0])}})();if(u||(u=this.onAccountsChanged.bind(this),n.on("accountsChanged",u)),l||(l=this.onChainChanged.bind(this),n.on("chainChanged",l)),r||(r=this.onDisconnect.bind(this),n.on("disconnect",r)),t&&d!==t){const g=await this.switchChain({chainId:t}).catch(w=>{if(w.code===f.code)throw w;return{id:d}});d=(g==null?void 0:g.id)??d}return{accounts:e?s:s.map(g=>g.address),chainId:d}}catch(n){throw/(user closed modal|accounts received is empty|user denied account|request rejected)/i.test(n.message)?new f(n):n}},async disconnect(){const t=await this.getProvider();u&&(t.removeListener("accountsChanged",u),u=void 0),l&&(t.removeListener("chainChanged",l),l=void 0),r&&(t.removeListener("disconnect",r),r=void 0),t.disconnect()},async getAccounts(){return(await(await this.getProvider()).request({method:"eth_accounts"})).map(e=>D(e))},async getChainId(){const e=await(await this.getProvider()).request({method:"eth_chainId"});return Number(e)},async getProvider(){if(!p){const t=(()=>{var a;return typeof M.preference=="string"?{options:M.preference}:{...M.preference,options:((a=M.preference)==null?void 0:a.options)??"all"}})(),{createBaseAccountSDK:e}=await(()=>{try{return b(()=>import("./index-BXk1eKu5.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29]))}catch{throw new Error('dependency "@base-org/account" not found')}})();p=e({...M,appChainIds:o.chains.map(a=>a.id),preference:t}).getProvider()}return p},async isAuthorized(){try{return!!(await this.getAccounts()).length}catch{return!1}},async switchChain({addEthereumChainParameter:t,chainId:e}){var n,i,s,d;const c=o.chains.find(g=>g.id===e);if(!c)throw new L(new O);const a=await this.getProvider();try{return await a.request({method:"wallet_switchEthereumChain",params:[{chainId:z(c.id)}]}),c}catch(g){if(g.code===4902)try{let w;t!=null&&t.blockExplorerUrls?w=t.blockExplorerUrls:w=(n=c.blockExplorers)!=null&&n.default.url?[(i=c.blockExplorers)==null?void 0:i.default.url]:[];let y;(s=t==null?void 0:t.rpcUrls)!=null&&s.length?y=t.rpcUrls:y=[((d=c.rpcUrls.default)==null?void 0:d.http[0])??""];const h={blockExplorerUrls:w,chainId:z(e),chainName:(t==null?void 0:t.chainName)??c.name,iconUrls:t==null?void 0:t.iconUrls,nativeCurrency:(t==null?void 0:t.nativeCurrency)??c.nativeCurrency,rpcUrls:y};return await a.request({method:"wallet_addEthereumChain",params:[h]}),c}catch(w){throw new f(w)}throw new L(g)}},onAccountsChanged(t){t.length===0?this.onDisconnect():o.emitter.emit("change",{accounts:t.map(e=>D(e))})},onChainChanged(t){const e=Number(t);o.emitter.emit("change",{chainId:e})},async onDisconnect(t){o.emitter.emit("disconnect");const e=await this.getProvider();u&&(e.removeListener("accountsChanged",u),u=void 0),l&&(e.removeListener("chainChanged",l),l=void 0),r&&(e.removeListener("disconnect",r),r=void 0)}}))}q.type="coinbaseWallet";function q(M={}){let p,u,l,r;return T(o=>({id:"coinbaseWalletSDK",name:"Coinbase Wallet",rdns:"com.coinbase.wallet",type:q.type,async connect({chainId:t,withCapabilities:e,...c}={}){try{const a=await this.getProvider(),n=(await a.request({method:"eth_requestAccounts",params:"instantOnboarding"in c&&c.instantOnboarding?[{onboarding:"instant"}]:[]})).map(s=>D(s));u||(u=this.onAccountsChanged.bind(this),a.on("accountsChanged",u)),l||(l=this.onChainChanged.bind(this),a.on("chainChanged",l)),r||(r=this.onDisconnect.bind(this),a.on("disconnect",r));let i=await this.getChainId();if(t&&i!==t){const s=await this.switchChain({chainId:t}).catch(d=>{if(d.code===f.code)throw d;return{id:i}});i=(s==null?void 0:s.id)??i}return{accounts:e?n.map(s=>({address:s,capabilities:{}})):n,chainId:i}}catch(a){throw/(user closed modal|accounts received is empty|user denied account|request rejected)/i.test(a.message)?new f(a):a}},async disconnect(){var e;const t=await this.getProvider();u&&(t.removeListener("accountsChanged",u),u=void 0),l&&(t.removeListener("chainChanged",l),l=void 0),r&&(t.removeListener("disconnect",r),r=void 0),t.disconnect(),(e=t.close)==null||e.call(t)},async getAccounts(){return(await(await this.getProvider()).request({method:"eth_accounts"})).map(e=>D(e))},async getChainId(){const e=await(await this.getProvider()).request({method:"eth_chainId"});return Number(e)},async getProvider(){if(!p){const{createCoinbaseWalletSDK:t}=await(()=>{try{return b(()=>import("./index-B-pxbYDD.js"),__vite__mapDeps([30,6,4,1,3,5,22,8,9,10,11,12,13,14,23,7,15,16,17,18,19,20,21,24,25,29,31]))}catch{throw new Error('dependency "@coinbase/wallet-sdk" not found')}})();p=t({...M,appChainIds:o.chains.map(c=>c.id),preference:{options:"all",...M.preference??{}}}).getProvider()}return p},async isAuthorized(){try{return!!(await this.getAccounts()).length}catch{return!1}},async switchChain({addEthereumChainParameter:t,chainId:e}){var n,i,s,d;const c=o.chains.find(g=>g.id===e);if(!c)throw new L(new O);const a=await this.getProvider();try{return await a.request({method:"wallet_switchEthereumChain",params:[{chainId:z(c.id)}]}),c}catch(g){if(g.code===4902)try{let w;t!=null&&t.blockExplorerUrls?w=t.blockExplorerUrls:w=(n=c.blockExplorers)!=null&&n.default.url?[(i=c.blockExplorers)==null?void 0:i.default.url]:[];let y;(s=t==null?void 0:t.rpcUrls)!=null&&s.length?y=t.rpcUrls:y=[((d=c.rpcUrls.default)==null?void 0:d.http[0])??""];const h={blockExplorerUrls:w,chainId:z(e),chainName:(t==null?void 0:t.chainName)??c.name,iconUrls:t==null?void 0:t.iconUrls,nativeCurrency:(t==null?void 0:t.nativeCurrency)??c.nativeCurrency,rpcUrls:y};return await a.request({method:"wallet_addEthereumChain",params:[h]}),c}catch(w){throw new f(w)}throw new L(g)}},onAccountsChanged(t){t.length===0?this.onDisconnect():o.emitter.emit("change",{accounts:t.map(e=>D(e))})},onChainChanged(t){const e=Number(t);o.emitter.emit("change",{chainId:e})},async onDisconnect(t){o.emitter.emit("disconnect");const e=await this.getProvider();u&&(e.removeListener("accountsChanged",u),u=void 0),l&&(e.removeListener("chainChanged",l),l=void 0),r&&(e.removeListener("disconnect",r),r=void 0)}}))}R.type="metaMask";function R(M={}){let p,u;return T(l=>({id:"metaMaskSDK",name:"MetaMask",rdns:["io.metamask","io.metamask.mobile"],type:R.type,async connect({chainId:r,isReconnecting:o,withCapabilities:t}={}){const e=await this.getInstance(),c=e.getProvider();let a=[];o&&(a=await this.getAccounts().catch(()=>[]));try{let n,i;if(!(a!=null&&a.length)){const d=l.chains.map(g=>z(g.id));M.connectAndSign||M.connectWith?(M.connectAndSign?n=(await e.connectAndSign({chainIds:d,message:M.connectAndSign})).signature:M.connectWith&&(i=(await e.connectWith({chainIds:d,method:M.connectWith.method,params:M.connectWith.params})).result),a=await this.getAccounts()):a=(await e.connect({chainIds:d})).accounts.map(w=>D(w))}let s=await this.getChainId();if(r&&s!==r){const d=await this.switchChain({chainId:r}).catch(g=>{if(g.code===f.code)throw g;return{id:s}});s=(d==null?void 0:d.id)??s}return n?c.emit("connectAndSign",{accounts:a,chainId:z(s),signResponse:n}):i&&c.emit("connectWith",{accounts:a,chainId:z(s),connectWithResponse:i}),{accounts:t?a.map(d=>({address:d,capabilities:{}})):a,chainId:s}}catch(n){const i=n;throw i.code===f.code?new f(i):i.code===Y.code?new Y(i):i}},async disconnect(){return(await this.getInstance()).disconnect()},async getAccounts(){var e;if(!p&&!u){const c=(e=l.providers[0])==null?void 0:e.provider;if(c)return(await c.request({method:"eth_accounts"})).map(n=>D(n))}const r=await this.getInstance();return r.accounts.length?r.accounts.map(c=>D(c)):(await r.getProvider().request({method:"eth_accounts"})).map(c=>D(c))},async getChainId(){var e;if(!p&&!u){const c=(e=l.providers[0])==null?void 0:e.provider;if(c){const a=await c.request({method:"eth_chainId"});return Number(a)}}const r=await this.getInstance();if(r.getChainId())return Number(r.getChainId());const t=await r.getProvider().request({method:"eth_chainId"});return Number(t)},async getProvider(){var o;if(!p&&!u){const t=(o=l.providers[0])==null?void 0:o.provider;if(t)return t}return(await this.getInstance()).getProvider()},async isAuthorized(){var r;try{if(!p&&!u){const e=(r=l.providers[0])==null?void 0:r.provider;if(e)return(await e.request({method:"eth_accounts"})).length>0}const o=10;return!!(await U(async()=>E(async()=>{const e=await this.getAccounts();if(!e.length)throw new Error("try again");return e},{timeout:o}),{delay:o+1,retryCount:3})).length}catch{return!1}},async switchChain({addEthereumChainParameter:r,chainId:o}){var c,a;const t=l.chains.find(({id:n})=>n===Number(o));if(!t)throw new L(new O);const e=z(o);try{return await(await this.getInstance()).switchChain({chainId:e,chainConfiguration:{blockExplorerUrls:r!=null&&r.blockExplorerUrls?[...r.blockExplorerUrls]:(c=t.blockExplorers)!=null&&c.default.url?[t.blockExplorers.default.url]:void 0,chainId:e,chainName:(r==null?void 0:r.chainName)??t.name,iconUrls:r==null?void 0:r.iconUrls,nativeCurrency:(r==null?void 0:r.nativeCurrency)??t.nativeCurrency,rpcUrls:r!=null&&r.rpcUrls?[...r.rpcUrls]:(a=t.rpcUrls.default)!=null&&a.http?[...t.rpcUrls.default.http]:void 0}}),t}catch(n){const i=n;throw i.code===f.code?new f(i):new L(i)}},async onAccountsChanged(r){l.emitter.emit("change",{accounts:r.map(o=>D(o))})},onChainChanged(r){const o=Number(r);l.emitter.emit("change",{chainId:o})},async onConnect(r){const o=await this.getAccounts();if(o.length===0)return;const t=Number(r.chainId);l.emitter.emit("connect",{accounts:o,chainId:t})},async onDisconnect(r){r&&r.code===1013&&await this.getProvider()&&(await this.getAccounts()).length||l.emitter.emit("disconnect")},onDisplayUri(r){l.emitter.emit("message",{type:"display_uri",data:r})},async getInstance(){var r;if(!p){if(!u){const{createEVMClient:o}=await(async()=>{try{return b(()=>import("./connectors-BT2XrNvd.js"),[])}catch{throw new Error('dependency "@metamask/connect-evm" not found')}})(),t=typeof window>"u"?{name:"wagmi"}:{name:window.location.hostname,url:window.location.href};u=o({...M,skipAutoAnnounce:!0,api:{supportedNetworks:Object.fromEntries(l.chains.map(e=>{var c;return[z(e.id),((c=e.rpcUrls.default)==null?void 0:c.http[0])??""]}))},dapp:M.dapp??{...t,...M.dappMetadata},debug:M.debug??((r=M.logging)==null?void 0:r.sdk),eventHandlers:{accountsChanged:this.onAccountsChanged.bind(this),chainChanged:this.onChainChanged.bind(this),connect:this.onConnect.bind(this),disconnect:this.onDisconnect.bind(this),displayUri:this.onDisplayUri.bind(this)},analytics:{integrationType:"wagmi"},ui:{...M.ui,...M.headless!=null&&{headless:M.headless}},...M.mobile&&{mobile:M.mobile}})}p=await u}return p}}))}function zt(M={}){const p=u=>typeof u.on=="function"&&typeof u.removeListener=="function";return T(u=>{const l=u.chains??M.chains??[],r=u.transports?u.transports:M.transports;let o,t,e,c,a;return{async connect({chainId:n=l[0].id,...i}={}){const s="isReconnecting"in i&&i.isReconnecting||!1,d="withCapabilities"in i&&i.withCapabilities||!1;let g=[],w;if(s&&([g,w]=await Promise.all([this.getAccounts().catch(()=>[]),this.getChainId().catch(()=>{})]),n&&w!==n)){const h=await this.switchChain({chainId:n}).catch(I=>{if(I.code===f.code)throw I;return{id:w}});w=(h==null?void 0:h.id)??w}const y=await this.getProvider();try{if(!(g!=null&&g.length)&&!s){const{RpcSchema:h}=await(()=>{try{return b(()=>import("./connectors-CRUo0P66.js"),[])}catch{throw new Error('dependency "porto" not found')}})(),{z:I}=await(()=>{try{return b(()=>import("./connectors-CChlcxBj.js"),[])}catch{throw new Error('dependency "porto/internal" not found')}})(),j=await y.request({method:"wallet_connect",params:[{..."capabilities"in i?{capabilities:I.encode(h.wallet_connect.Capabilities,i.capabilities??{})}:{},chainIds:[z(n),...l.filter(A=>A.id!==n).map(A=>z(A.id))]}]});g=j.accounts,w=Number(j.chainIds[0])}if(!w)throw new O;return p(y)&&(c&&(y.removeListener("connect",c),c=void 0),t||(t=this.onAccountsChanged.bind(this),y.on("accountsChanged",t)),e||(e=this.onChainChanged.bind(this),y.on("chainChanged",e)),a||(a=this.onDisconnect.bind(this),y.on("disconnect",a))),{accounts:g.map(h=>typeof h=="object"?d?h:h.address:d?{address:h,capabilities:{}}:h),chainId:w}}catch(h){const I=h;throw I.code===f.code?new f(I):I}},async disconnect(){const n=await this.getProvider();p(n)&&(e&&(n.removeListener("chainChanged",e),e=void 0),a&&(n.removeListener("disconnect",a),a=void 0),c||(c=this.onConnect.bind(this),n.on("connect",c))),await n.request({method:"wallet_disconnect"})},async getAccounts(){return(await(await this.getProvider()).request({method:"eth_accounts"})).map(s=>D(s))},async getChainId(){const i=await(await this.getProvider()).request({method:"eth_chainId"});return Number(i)},async getPortoInstance(){return o??(o=(async()=>{const{Porto:n}=await(()=>{try{return b(()=>import("./connectors-CRUo0P66.js"),[])}catch{throw new Error('dependency "porto" not found')}})();return n.create({...M,announceProvider:!1,chains:l,transports:r})})()),await o},async getProvider(){return(await this.getPortoInstance()).provider},icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDIyIiBoZWlnaHQ9IjQyMiIgdmlld0JveD0iMCAwID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3Ni40NjJMMzI5Ljg2NSAyNzYuNDYxQzMyOS43NDggMjc2LjQ1NyAzMjkuNjI5IDI3Ni40NTUgMzI5LjUxMSAyNzYuNDU1SDkwLjk0MDRDODUuNDUwNSAyNzYuNDU1IDgxIDI4MC44OTMgODEgMjg2LjM2NlYzMDYuMTg4QzgxIDMxMS42NjIgODUuNDUwNSAzMTYuMTAxIDkwLjk0MDQgMzE2LjEwMUgzMjkuNTExQzMzNS4wMDEgMzE2LjEwMSAzMzkuNDUyIDMxMS42NjIgMzM5LjQ1MiAzMDYuMTg4VjI4Ni4zNjZaIiBmaWxsPSJ3aGl0ZSIvPgo8cGF0aCBkPSJNMjY5Ljg2OCAxMzEuNzUyQzI2OS44NjggMTI2LjI3OCAyNzQuMzE4IDEyMS44NCAyNzkuODA4IDEyMS44NEgzMTEuNjE4QzMxNy4xMDggMTIxLjg0IDMyMS41NTggMTI2LjI3OCAzMjEuNTU4IDEzMS43NTJWMTYxLjQ4NUMzMjEuNTU4IDE2Ni45NTkgMzE3LjEwOCAxNzEuMzk2IDMxMS42MTggMTcxLjM5NkgyNzkuODA4QzI3NC4zMTggMTcxLjM5NiAyNjkuODY4IDE2Ni45NTkgMjY5Ljg2OCAxNjEuNDg1VjEzMS43NTJaIiBmaWxsPSJ3aGl0ZSIvPgo8L2c+CjxkZWZzPgo8Y2xpcFBhdGggaWQ9ImNsaXAwXzFfMTUiPgo8cmVjdCB3aWR0aD0iMjU5IiBoZWlnaHQ9IjIxMyIgZmlsbD0id2hpdGUiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDgxIDEwNCkiLz4KPC9jbGlwUGF0aD4KPC9kZWZzPgo8L3N2Zz4K",id:"xyz.ithaca.porto",async isAuthorized(){try{return!!(await U(()=>this.getAccounts())).length}catch{return!1}},name:"Porto",async onAccountsChanged(n){u.emitter.emit("change",{accounts:n.map(i=>D(i))})},onChainChanged(n){const i=Number(n);u.emitter.emit("change",{chainId:i})},async onConnect(n){const i=await this.getAccounts();if(i.length===0)return;const s=Number(n.chainId);u.emitter.emit("connect",{accounts:i,chainId:s});const d=await this.getProvider();p(d)&&(c&&(d.removeListener("connect",c),c=void 0),t||(t=this.onAccountsChanged.bind(this),d.on("accountsChanged",t)),e||(e=this.onChainChanged.bind(this),d.on("chainChanged",e)),a||(a=this.onDisconnect.bind(this),d.on("disconnect",a)))},async onDisconnect(n){const i=await this.getProvider();u.emitter.emit("disconnect"),p(i)&&(e&&(i.removeListener("chainChanged",e),e=void 0),a&&(i.removeListener("disconnect",a),a=void 0),c||(c=this.onConnect.bind(this),i.on("connect",c)))},async setup(){if(!c){const n=await this.getProvider();if(!p(n))return;c=this.onConnect.bind(this),n.on("connect",c)}},async switchChain({chainId:n}){const i=l.find(d=>d.id===n);if(!i)throw new L(new O);return await(await this.getProvider()).request({method:"wallet_switchEthereumChain",params:[{chainId:z(n)}]}),i},type:"injected"}})}W.type="safe";function W(M={}){const{shimDisconnect:p=!1}=M;let u,l;return T(r=>({id:"safe",name:"Safe",type:W.type,async connect({withCapabilities:o}={}){var a;const t=await this.getProvider();if(!t)throw new k;const e=await this.getAccounts(),c=await this.getChainId();return l||(l=this.onDisconnect.bind(this),t.on("disconnect",l)),p&&await((a=r.storage)==null?void 0:a.removeItem("safe.disconnected")),{accounts:o?e.map(n=>({address:n,capabilities:{}})):e,chainId:c}},async disconnect(){var t;const o=await this.getProvider();if(!o)throw new k;l&&(o.removeListener("disconnect",l),l=void 0),p&&await((t=r.storage)==null?void 0:t.setItem("safe.disconnected",!0))},async getAccounts(){const o=await this.getProvider();if(!o)throw new k;return(await o.request({method:"eth_accounts"})).map(D)},async getProvider(){if(typeof window<"u"&&(window==null?void 0:window.parent)!==window){if(!u){const{default:t}=await(()=>{try{return b(()=>import("./index-Dm2tHUTz.js"),__vite__mapDeps([32,4,33,8,9,10,11,6,12,13,14,24]))}catch{throw new Error('dependency "@safe-global/safe-apps-sdk" not found')}})(),e=new t(M),c=await E(()=>e.safe.getInfo(),{timeout:M.unstable_getInfoTimeout??10});if(!c)throw new Error("Could not load Safe information");const a=await(async()=>{const n=await(()=>{try{return b(()=>import("./index-BxmlkA7q.js").then(i=>i.i),__vite__mapDeps([34,4,33,35,10,19]))}catch{throw new Error('dependency "@safe-global/safe-apps-provider" not found')}})();return typeof n.SafeAppProvider!="function"&&typeof n.default.SafeAppProvider=="function"?n.default.SafeAppProvider:n.SafeAppProvider})();u=new a(c,e)}return u}},async getChainId(){const o=await this.getProvider();if(!o)throw new k;return Number(o.chainId)},async isAuthorized(){var o;try{return p&&await((o=r.storage)==null?void 0:o.getItem("safe.disconnected"))?!1:!!(await this.getAccounts()).length}catch{return!1}},onAccountsChanged(){},onChainChanged(){},onDisconnect(){r.emitter.emit("disconnect")}}))}const At="8.0.20";Z.type="walletConnect";function Z(M){const p=M.isNewChainsStale??!0;let u,l;const r="eip155";let o,t,e,c,a,n;return T(i=>({id:"walletConnect",name:"WalletConnect",type:Z.type,async setup(){const s=await this.getProvider().catch(()=>null);s&&(e||(e=this.onConnect.bind(this),s.on("connect",e)),a||(a=this.onSessionDelete.bind(this),s.on("session_delete",a)))},async connect({chainId:s,withCapabilities:d,...g}={}){var w,y;try{const h=await this.getProvider();if(!h)throw new k;c||(c=this.onDisplayUri,h.on("display_uri",c));let I=s;if(!I){const N=await((w=i.storage)==null?void 0:w.getItem("state"))??{};i.chains.some(S=>S.id===N.chainId)?I=N.chainId:I=(y=i.chains[0])==null?void 0:y.id}if(!I)throw new Error("No chains found on connector.");const j=await this.isChainsStale();if(h.session&&j&&await h.disconnect(),!h.session||j){const N=i.chains.filter(v=>v.id!==I).map(v=>v.id);await h.connect({optionalChains:[I,...N],..."pairingTopic"in g?{pairingTopic:g.pairingTopic}:{}}),this.setRequestedChainsIds(i.chains.map(v=>v.id))}const A=(await h.enable()).map(N=>D(N));let C=await this.getChainId();if(s&&C!==s){const N=await this.switchChain({chainId:s}).catch(v=>{var S;if(v.code===f.code&&((S=v.cause)==null?void 0:S.message)!=="Missing or invalid. request() method: wallet_addEthereumChain")throw v;return{id:C}});C=(N==null?void 0:N.id)??C}return c&&(h.removeListener("display_uri",c),c=void 0),e&&(h.removeListener("connect",e),e=void 0),o||(o=this.onAccountsChanged.bind(this),h.on("accountsChanged",o)),t||(t=this.onChainChanged.bind(this),h.on("chainChanged",t)),n||(n=this.onDisconnect.bind(this),h.on("disconnect",n)),a||(a=this.onSessionDelete.bind(this),h.on("session_delete",a)),{accounts:d?A.map(N=>({address:N,capabilities:{}})):A,chainId:C}}catch(h){throw/(user rejected|connection request reset)/i.test(h==null?void 0:h.message)?new f(h):h}},async disconnect(){const s=await this.getProvider();try{await(s==null?void 0:s.disconnect())}catch(d){if(!/No matching key/i.test(d.message))throw d}finally{t&&(s==null||s.removeListener("chainChanged",t),t=void 0),n&&(s==null||s.removeListener("disconnect",n),n=void 0),e||(e=this.onConnect.bind(this),s==null||s.on("connect",e)),o&&(s==null||s.removeListener("accountsChanged",o),o=void 0),a&&(s==null||s.removeListener("session_delete",a),a=void 0),this.setRequestedChainsIds([])}},async getAccounts(){return(await this.getProvider()).accounts.map(d=>D(d))},async getProvider({chainId:s}={}){var g;async function d(){const w=i.chains.map(h=>h.id);if(!w.length)return;const{EthereumProvider:y}=await(()=>{try{return b(()=>import("./index.es-ug1d0j5_.js").then(h=>h.n),__vite__mapDeps([36,11,4,6,10,12,13,14,18,19,37,17,29,38,39,20]))}catch{throw new Error('dependency "@walletconnect/ethereum-provider" not found')}})();return await y.init({...M,disableProviderPing:!0,optionalChains:w,projectId:M.projectId,rpcMap:Object.fromEntries(i.chains.map(h=>{const[I]=$({chain:h,transports:i.transports});return[h.id,I]})),showQrModal:M.showQrModal??!0})}return u||(l||(l=d()),u=await l,u==null||u.events.setMaxListeners(Number.POSITIVE_INFINITY)),s&&await((g=this.switchChain)==null?void 0:g.call(this,{chainId:s})),u},async getChainId(){return(await this.getProvider()).chainId},async isAuthorized(){try{const[s,d]=await Promise.all([this.getAccounts(),this.getProvider()]);return s.length?await this.isChainsStale()&&d.session?(await d.disconnect().catch(()=>{}),!1):!0:!1}catch{return!1}},async switchChain({addEthereumChainParameter:s,chainId:d}){var h,I,j;const g=await this.getProvider();if(!g)throw new k;const w=i.chains.find(A=>A.id===d);if(!w)throw new L(new O);let y=()=>{};try{await Promise.all([new Promise(C=>{y=N=>{N.chainId===d&&(i.emitter.off("change",y),C())},i.emitter.on("change",y)}),g.request({method:"wallet_switchEthereumChain",params:[{chainId:z(d)}]})]);const A=await this.getRequestedChainsIds();return this.setRequestedChainsIds([...A,d]),w}catch(A){i.emitter.off("change",y);const C=A;if(/(user rejected)/i.test(C.message))throw new f(C);try{let N;s!=null&&s.blockExplorerUrls?N=s.blockExplorerUrls:N=(h=w.blockExplorers)!=null&&h.default.url?[(I=w.blockExplorers)==null?void 0:I.default.url]:[];let v;(j=s==null?void 0:s.rpcUrls)!=null&&j.length?v=s.rpcUrls:v=[...w.rpcUrls.default.http];const S={blockExplorerUrls:N,chainId:z(d),chainName:(s==null?void 0:s.chainName)??w.name,iconUrls:s==null?void 0:s.iconUrls,nativeCurrency:(s==null?void 0:s.nativeCurrency)??w.nativeCurrency,rpcUrls:v};await g.request({method:"wallet_addEthereumChain",params:[S]});const V=await this.getRequestedChainsIds();return this.setRequestedChainsIds([...V,d]),w}catch(N){throw new f(N)}}},onAccountsChanged(s){s.length===0?this.onDisconnect():i.emitter.emit("change",{accounts:s.map(d=>D(d))})},onChainChanged(s){const d=Number(s);i.emitter.emit("change",{chainId:d})},async onConnect(s){const d=Number(s.chainId),g=await this.getAccounts();i.emitter.emit("connect",{accounts:g,chainId:d})},async onDisconnect(s){this.setRequestedChainsIds([]),i.emitter.emit("disconnect");const d=await this.getProvider();o&&(d.removeListener("accountsChanged",o),o=void 0),t&&(d.removeListener("chainChanged",t),t=void 0),n&&(d.removeListener("disconnect",n),n=void 0),a&&(d.removeListener("session_delete",a),a=void 0),e||(e=this.onConnect.bind(this),d.on("connect",e))},onDisplayUri(s){i.emitter.emit("message",{type:"display_uri",data:s})},onSessionDelete(){this.onDisconnect()},getNamespaceChainsIds(){var d,g,w;return u?((w=(g=(d=u.session)==null?void 0:d.namespaces[r])==null?void 0:g.accounts)==null?void 0:w.map(y=>Number.parseInt(y.split(":")[1]||"",10)))??[]:[]},async getRequestedChainsIds(){var s;return await((s=i.storage)==null?void 0:s.getItem(this.requestedChainsStorageKey))??[]},async isChainsStale(){if(!p)return!1;const s=i.chains.map(w=>w.id),d=this.getNamespaceChainsIds();if(d.length&&!d.some(w=>s.includes(w)))return!1;const g=await this.getRequestedChainsIds();return!s.every(w=>g.includes(w))},async setRequestedChainsIds(s){var d;await((d=i.storage)==null?void 0:d.setItem(this.requestedChainsStorageKey,s))},get requestedChainsStorageKey(){return`${this.id}.requestedChains`}}))}export{jt as baseAccount,q as coinbaseWallet,bt as injected,R as metaMask,Q as mock,zt as porto,W as safe,Nt as tempoWallet,At as version,Z as walletConnect};
|
|
3
|
-
//# sourceMappingURL=index-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["_assets/index-Cf0ax7ss.js","_assets/hooks.module-54Oj1-WJ.js","_assets/jsxRuntime.module-BUzu5v1_.js","_assets/index-Be-ctASu.js","_assets/react-CZ2YYu9h.js","_assets/index-srmfnjPo.js","_assets/dcl-schemas-DX4k9umP.js","_assets/parseSignature-C4U6F_fO.js","_assets/sendRawTransaction-C9G3juFQ.js","_assets/NetworkUtil-Cfolzg8H.js","_assets/sentry-B1mJ7lMg.js","_assets/index-42hgym_I.js","_assets/ethers-zQzQ03Jk.js","_assets/intl-AKLEHPeO.js","_assets/index-Ccn2ZaWp.css","_assets/custom-CyNnwyrk.js","_assets/W3MFrameProviderSingleton-C45teoHA.js","_assets/index-CkieTCyo.js","_assets/index-Cf2kLDcU.js","_assets/events-Dw8qdJzW.js","_assets/browser-ponyfill-yjhsbKOy.js","_assets/localBatchGatewayRequest-C4Hpu-o0.js","_assets/verifyHash-CykSL3oh.js","_assets/secp256k1-jAwCrfgX.js","_assets/hashTypedData-D4-M18T2.js","_assets/WebCryptoP256-P1TJpkT3.js","_assets/zoraTestnet-YadYknEM.js","_assets/serializeTransaction-BGQTd-eV.js","_assets/writeContract-BZyrswRY.js","_assets/index-OpYIGLSa.js","_assets/index-DC0IP02u.js","_assets/sha3-BSpI9EWc.js","_assets/index-CFthW2p7.js","_assets/index-Dbq2Ch71.js","_assets/index-W4ibltdC.js","_assets/native-DwXB0bjC.js","_assets/index.es-BoxCyFog.js","_assets/index-DLs1oPw4.js","_assets/index-6Xn36K0W.js","_assets/index.es-BTnBOO6U.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{_ as b}from"./index-42hgym_I.js";import{c as T,C as O,a as G,P as k}from"./index-fCngzjUk.js";import{i as bt}from"./index-fCngzjUk.js";import{aI as D,aR as B,bh as F}from"./sendRawTransaction-C9G3juFQ.js";import{x as L,af as z,a5 as _,Y as f,u as x,al as H,r as Y}from"./NetworkUtil-Cfolzg8H.js";import{G as J,w as U,a as E}from"./W3MFrameProviderSingleton-C45teoHA.js";import{a as P}from"./custom-CyNnwyrk.js";import"./react-CZ2YYu9h.js";import"./dcl-schemas-DX4k9umP.js";import"./sentry-B1mJ7lMg.js";import"./ethers-zQzQ03Jk.js";import"./intl-AKLEHPeO.js";import"./index-CkieTCyo.js";import"./index-Cf2kLDcU.js";import"./events-Dw8qdJzW.js";import"./browser-ponyfill-yjhsbKOy.js";import"./index-Be-ctASu.js";import"./index-srmfnjPo.js";import"./store-80QKZ2rN.js";import"./writeContract-BZyrswRY.js";(function(){try{var M=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},p=new M.Error().stack;p&&(M._sentryDebugIds=M._sentryDebugIds||{},M._sentryDebugIds[p]="0667d7c5-b3a6-408c-a1df-5b153c2f1c8d",M._sentryDebugIdIdentifier="sentry-dbid-0667d7c5-b3a6-408c-a1df-5b153c2f1c8d")}catch{}})();function K(M,{body:p,onError:u,onResponse:l}){return M.request({body:p,onError:u,onResponse:l}),M}async function X(M,{body:p,timeout:u=1e4}){return M.requestAsync({body:p,timeout:u})}const m={http(M,p){return J(M).request(p)},webSocket:K,webSocketAsync:X};Q.type="mock";function Q(M){const p=new Map,u=M.features??{defaultConnected:!1};let l=u.defaultConnected,r;return T(o=>({id:"mock",name:"Mock Connector",type:Q.type,async setup(){r=o.chains[0].id},async connect({chainId:t,withCapabilities:e}={}){if(u.connectError)throw typeof u.connectError=="boolean"?new f(new Error("Failed to connect.")):u.connectError;const a=await(await this.getProvider()).request({method:"eth_requestAccounts"});let n=await this.getChainId();return t&&n!==t&&(n=(await this.switchChain({chainId:t})).id),l=!0,{accounts:e?a.map(i=>({address:D(i),capabilities:{foo:{bar:i}}})):a.map(i=>D(i)),chainId:n}},async disconnect(){l=!1},async getAccounts(){if(!l)throw new G;return(await(await this.getProvider()).request({method:"eth_accounts"})).map(c=>D(c))},async getChainId(){const e=await(await this.getProvider()).request({method:"eth_chainId"});return _(e,"number")},async isAuthorized(){return!u.reconnect||!l?!1:!!(await this.getAccounts()).length},async switchChain({chainId:t}){const e=await this.getProvider(),c=o.chains.find(a=>a.id===t);if(!c)throw new L(new O);return await e.request({method:"wallet_switchEthereumChain",params:[{chainId:z(t)}]}),c},onAccountsChanged(t){t.length===0?this.onDisconnect():o.emitter.emit("change",{accounts:t.map(e=>D(e))})},onChainChanged(t){const e=Number(t);o.emitter.emit("change",{chainId:e})},async onDisconnect(t){o.emitter.emit("disconnect"),l=!1},async getProvider({chainId:t}={}){const c=(o.chains.find(n=>n.id===t)??o.chains[0]).rpcUrls.default.http[0];return P({request:async({method:n,params:i})=>{if(n==="eth_chainId")return z(r);if(n==="eth_accounts"||n==="eth_requestAccounts")return M.accounts;if(n==="eth_signTypedData_v4"&&u.signTypedDataError)throw typeof u.signTypedDataError=="boolean"?new f(new Error("Failed to sign typed data.")):u.signTypedDataError;if(n==="wallet_switchEthereumChain"){if(u.switchChainError)throw typeof u.switchChainError=="boolean"?new f(new Error("Failed to switch chain.")):u.switchChainError;r=_(i[0].chainId,"number"),this.onChainChanged(r.toString());return}if(n==="wallet_watchAsset"){if(u.watchAssetError)throw typeof u.watchAssetError=="boolean"?new f(new Error("Failed to switch chain.")):u.watchAssetError;return l}if(n==="wallet_getCapabilities")return{"0x2105":{paymasterService:{supported:i[0]==="0x95132632579b073D12a6673e18Ab05777a6B86f8"},sessionKeys:{supported:!0}},"0x14A34":{paymasterService:{supported:i[0]==="0x95132632579b073D12a6673e18Ab05777a6B86f8"}}};if(n==="wallet_sendCalls"){const w=[],y=i[0].calls,h=i[0].from;for(const j of y){const{result:A,error:C}=await m.http(c,{body:{method:"eth_sendTransaction",params:[{...j,...typeof h<"u"?{from:h}:{}}]}});if(C)throw new x({body:{method:n,params:i},error:C,url:c});w.push(A)}const I=B(H(JSON.stringify(y)));return p.set(I,w),{id:I}}if(n==="wallet_getCallsStatus"){const w=p.get(i[0]);if(!w)return{atomic:!1,chainId:"0x1",id:i[0],status:100,receipts:[],version:"2.0.0"};const h=(await Promise.all(w.map(async I=>{const{result:j,error:A}=await m.http(c,{body:{method:"eth_getTransactionReceipt",params:[I],id:0}});if(A)throw new x({body:{method:n,params:i},error:A,url:c});return j?{blockHash:j.blockHash,blockNumber:j.blockNumber,gasUsed:j.gasUsed,logs:j.logs,status:j.status,transactionHash:j.transactionHash}:null}))).filter(I=>I!==null);return h.length===0?{atomic:!1,chainId:"0x1",id:i[0],status:100,receipts:[],version:"2.0.0"}:{atomic:!1,chainId:"0x1",id:i[0],status:200,receipts:h,version:"2.0.0"}}if(n==="wallet_showCallsStatus")return;if(n==="personal_sign"){if(u.signMessageError)throw typeof u.signMessageError=="boolean"?new f(new Error("Failed to sign message.")):u.signMessageError;n="eth_sign",i=[i[1],i[0]]}const s={method:n,params:i},{error:d,result:g}=await m.http(c,{body:s});if(d)throw new x({body:s,error:d,url:c});return g}})({retryCount:0})}}))}function $(M){var o,t,e;const{chain:p}=M,u=p.rpcUrls.default.http[0];if(!M.transports)return[u];const l=(t=(o=M.transports)==null?void 0:o[p.id])==null?void 0:t.call(o,{chain:p});return(((e=l==null?void 0:l.value)==null?void 0:e.transports)||[l]).map(({value:c})=>(c==null?void 0:c.url)||u)}const tt='data:image/svg+xml,<svg width="269" height="269" viewBox="0 0 269 269" fill="none" xmlns="http://www.w3.org/2000/svg"><rect width="269" height="269" fill="black"/><path d="M123.273 190.794H93.445L121.09 105.318H85.7334L93.445 80.2642H191.95L184.238 105.318H150.773L123.273 190.794Z" fill="white"/></svg>';function Nt(M={}){const{dialog:p,host:u,icon:l=tt,name:r,rdns:o,theme:t,...e}=M;return nt({createAdapter(c){return c.dialog({dialog:p,host:u,icon:l,name:r,rdns:o,theme:t})},icon:l,id:o??"xyz.tempo",name:r??"Tempo Wallet",providerParameters:e,rdns:o??"xyz.tempo",type:"injected"})}function nt(M){return T(p=>{const u=p.chains;let l,r,o,t,e;async function c(){return await b(()=>import("./core-MGlJp9r1.js"),[]).catch(()=>{throw new Error('dependency "accounts" not found')})}async function a(){return l??(l=(async()=>{const n=await c();return n.Provider.create({...M.providerParameters,adapter:M.createAdapter(n),chains:p.chains,transports:p.transports})})()),await l}return{icon:M.icon,id:M.id,name:M.name,rdns:M.rdns,type:M.type,async connect(n={}){const{chainId:i,isReconnecting:s,withCapabilities:d}=n,g="capabilities"in n?n.capabilities:void 0;let w=[],y;s&&(w=await this.getAccounts().then(h=>h.map(I=>({address:I,capabilities:{}}))).catch(()=>[]));try{if(!w.length&&!s&&(w=(await(await a()).request({method:"wallet_connect",params:[{...i?{chainId:i}:{},...g?{capabilities:g}:{}}]})).accounts),y??(y=await this.getChainId()),!y)throw new O;const h=await a();return t&&(h.removeListener("connect",t),t=void 0),r||(r=this.onAccountsChanged.bind(this),h.on("accountsChanged",r)),o||(o=this.onChainChanged.bind(this),h.on("chainChanged",o)),e||(e=this.onDisconnect.bind(this),h.on("disconnect",e)),{accounts:d?w:w.map(I=>I.address),chainId:y}}catch(h){const I=h;throw I.code===f.code?new f(I):I}},async disconnect(){var i;const n=await a();o&&(n.removeListener("chainChanged",o),o=void 0),e&&(n.removeListener("disconnect",e),e=void 0),t||(t=(i=this.onConnect)==null?void 0:i.bind(this),t&&n.on("connect",t)),await n.request({method:"wallet_disconnect"})},async getAccounts(){return await(await a()).request({method:"eth_accounts"})},async getChainId(){const n=await a();return Number(await n.request({method:"eth_chainId"}))},async getClient({chainId:n}={}){const i=await a(),{address:s}=i.getAccount({accessKey:!1});return Object.assign(i.getClient({chainId:n}),{account:F(s)})},async getProvider(){return await a()},async isAuthorized(){try{return!!(await U(()=>this.getAccounts())).length}catch{return!1}},onAccountsChanged(n){p.emitter.emit("change",{accounts:n})},onChainChanged(n){p.emitter.emit("change",{chainId:Number(n)})},async onConnect(n){const i=await this.getAccounts();if(i.length===0)return;const s=Number(n.chainId);p.emitter.emit("connect",{accounts:i,chainId:s});const d=await a();t&&(d.removeListener("connect",t),t=void 0),r||(r=this.onAccountsChanged.bind(this),d.on("accountsChanged",r)),o||(o=this.onChainChanged.bind(this),d.on("chainChanged",o)),e||(e=this.onDisconnect.bind(this),d.on("disconnect",e))},async onDisconnect(n){var s;const i=await a();p.emitter.emit("disconnect"),o&&(i.removeListener("chainChanged",o),o=void 0),e&&(i.removeListener("disconnect",e),e=void 0),t||(t=(s=this.onConnect)==null?void 0:s.bind(this),t&&i.on("connect",t))},async setup(){var n;if(!t){const i=await a();t=(n=this.onConnect)==null?void 0:n.bind(this),t&&i.on("connect",t)}},async switchChain({chainId:n}){const i=u.find(d=>d.id===n);if(!i)throw new L(new O);return await(await a()).request({method:"wallet_switchEthereumChain",params:[{chainId:z(n)}]}),i}}})}function jt(M={}){let p,u,l,r;return T(o=>({id:"baseAccount",name:"Base Account",rdns:"app.base.account",type:"baseAccount",async connect({chainId:t,withCapabilities:e,...c}={}){var a;try{const n=await this.getProvider(),i=t??((a=o.chains[0])==null?void 0:a.id);if(!i)throw new O;let{accounts:s,currentChainId:d}=await(async()=>{if(c.isReconnecting)return{accounts:(await n.request({method:"eth_accounts",params:[]})).map(h=>({address:D(h)})),currentChainId:await this.getChainId()};const g=await n.request({method:"wallet_connect",params:[{capabilities:"capabilities"in c&&c.capabilities?c.capabilities:{},chainIds:[z(i),...o.chains.filter(h=>h.id!==i).map(h=>z(h.id))]}]});return{accounts:(await n.request({method:"eth_accounts"})).map(h=>g.accounts.find(I=>I.address===h)??{address:h}).map(h=>({address:D(h.address),capabilities:h.capabilities??{}})),currentChainId:Number(g.chainIds[0])}})();if(u||(u=this.onAccountsChanged.bind(this),n.on("accountsChanged",u)),l||(l=this.onChainChanged.bind(this),n.on("chainChanged",l)),r||(r=this.onDisconnect.bind(this),n.on("disconnect",r)),t&&d!==t){const g=await this.switchChain({chainId:t}).catch(w=>{if(w.code===f.code)throw w;return{id:d}});d=(g==null?void 0:g.id)??d}return{accounts:e?s:s.map(g=>g.address),chainId:d}}catch(n){throw/(user closed modal|accounts received is empty|user denied account|request rejected)/i.test(n.message)?new f(n):n}},async disconnect(){const t=await this.getProvider();u&&(t.removeListener("accountsChanged",u),u=void 0),l&&(t.removeListener("chainChanged",l),l=void 0),r&&(t.removeListener("disconnect",r),r=void 0),t.disconnect()},async getAccounts(){return(await(await this.getProvider()).request({method:"eth_accounts"})).map(e=>D(e))},async getChainId(){const e=await(await this.getProvider()).request({method:"eth_chainId"});return Number(e)},async getProvider(){if(!p){const t=(()=>{var a;return typeof M.preference=="string"?{options:M.preference}:{...M.preference,options:((a=M.preference)==null?void 0:a.options)??"all"}})(),{createBaseAccountSDK:e}=await(()=>{try{return b(()=>import("./index-Cf0ax7ss.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29]))}catch{throw new Error('dependency "@base-org/account" not found')}})();p=e({...M,appChainIds:o.chains.map(a=>a.id),preference:t}).getProvider()}return p},async isAuthorized(){try{return!!(await this.getAccounts()).length}catch{return!1}},async switchChain({addEthereumChainParameter:t,chainId:e}){var n,i,s,d;const c=o.chains.find(g=>g.id===e);if(!c)throw new L(new O);const a=await this.getProvider();try{return await a.request({method:"wallet_switchEthereumChain",params:[{chainId:z(c.id)}]}),c}catch(g){if(g.code===4902)try{let w;t!=null&&t.blockExplorerUrls?w=t.blockExplorerUrls:w=(n=c.blockExplorers)!=null&&n.default.url?[(i=c.blockExplorers)==null?void 0:i.default.url]:[];let y;(s=t==null?void 0:t.rpcUrls)!=null&&s.length?y=t.rpcUrls:y=[((d=c.rpcUrls.default)==null?void 0:d.http[0])??""];const h={blockExplorerUrls:w,chainId:z(e),chainName:(t==null?void 0:t.chainName)??c.name,iconUrls:t==null?void 0:t.iconUrls,nativeCurrency:(t==null?void 0:t.nativeCurrency)??c.nativeCurrency,rpcUrls:y};return await a.request({method:"wallet_addEthereumChain",params:[h]}),c}catch(w){throw new f(w)}throw new L(g)}},onAccountsChanged(t){t.length===0?this.onDisconnect():o.emitter.emit("change",{accounts:t.map(e=>D(e))})},onChainChanged(t){const e=Number(t);o.emitter.emit("change",{chainId:e})},async onDisconnect(t){o.emitter.emit("disconnect");const e=await this.getProvider();u&&(e.removeListener("accountsChanged",u),u=void 0),l&&(e.removeListener("chainChanged",l),l=void 0),r&&(e.removeListener("disconnect",r),r=void 0)}}))}q.type="coinbaseWallet";function q(M={}){let p,u,l,r;return T(o=>({id:"coinbaseWalletSDK",name:"Coinbase Wallet",rdns:"com.coinbase.wallet",type:q.type,async connect({chainId:t,withCapabilities:e,...c}={}){try{const a=await this.getProvider(),n=(await a.request({method:"eth_requestAccounts",params:"instantOnboarding"in c&&c.instantOnboarding?[{onboarding:"instant"}]:[]})).map(s=>D(s));u||(u=this.onAccountsChanged.bind(this),a.on("accountsChanged",u)),l||(l=this.onChainChanged.bind(this),a.on("chainChanged",l)),r||(r=this.onDisconnect.bind(this),a.on("disconnect",r));let i=await this.getChainId();if(t&&i!==t){const s=await this.switchChain({chainId:t}).catch(d=>{if(d.code===f.code)throw d;return{id:i}});i=(s==null?void 0:s.id)??i}return{accounts:e?n.map(s=>({address:s,capabilities:{}})):n,chainId:i}}catch(a){throw/(user closed modal|accounts received is empty|user denied account|request rejected)/i.test(a.message)?new f(a):a}},async disconnect(){var e;const t=await this.getProvider();u&&(t.removeListener("accountsChanged",u),u=void 0),l&&(t.removeListener("chainChanged",l),l=void 0),r&&(t.removeListener("disconnect",r),r=void 0),t.disconnect(),(e=t.close)==null||e.call(t)},async getAccounts(){return(await(await this.getProvider()).request({method:"eth_accounts"})).map(e=>D(e))},async getChainId(){const e=await(await this.getProvider()).request({method:"eth_chainId"});return Number(e)},async getProvider(){if(!p){const{createCoinbaseWalletSDK:t}=await(()=>{try{return b(()=>import("./index-DC0IP02u.js"),__vite__mapDeps([30,6,4,1,3,5,22,8,9,10,11,12,13,14,23,7,15,16,17,18,19,20,21,24,25,29,31]))}catch{throw new Error('dependency "@coinbase/wallet-sdk" not found')}})();p=t({...M,appChainIds:o.chains.map(c=>c.id),preference:{options:"all",...M.preference??{}}}).getProvider()}return p},async isAuthorized(){try{return!!(await this.getAccounts()).length}catch{return!1}},async switchChain({addEthereumChainParameter:t,chainId:e}){var n,i,s,d;const c=o.chains.find(g=>g.id===e);if(!c)throw new L(new O);const a=await this.getProvider();try{return await a.request({method:"wallet_switchEthereumChain",params:[{chainId:z(c.id)}]}),c}catch(g){if(g.code===4902)try{let w;t!=null&&t.blockExplorerUrls?w=t.blockExplorerUrls:w=(n=c.blockExplorers)!=null&&n.default.url?[(i=c.blockExplorers)==null?void 0:i.default.url]:[];let y;(s=t==null?void 0:t.rpcUrls)!=null&&s.length?y=t.rpcUrls:y=[((d=c.rpcUrls.default)==null?void 0:d.http[0])??""];const h={blockExplorerUrls:w,chainId:z(e),chainName:(t==null?void 0:t.chainName)??c.name,iconUrls:t==null?void 0:t.iconUrls,nativeCurrency:(t==null?void 0:t.nativeCurrency)??c.nativeCurrency,rpcUrls:y};return await a.request({method:"wallet_addEthereumChain",params:[h]}),c}catch(w){throw new f(w)}throw new L(g)}},onAccountsChanged(t){t.length===0?this.onDisconnect():o.emitter.emit("change",{accounts:t.map(e=>D(e))})},onChainChanged(t){const e=Number(t);o.emitter.emit("change",{chainId:e})},async onDisconnect(t){o.emitter.emit("disconnect");const e=await this.getProvider();u&&(e.removeListener("accountsChanged",u),u=void 0),l&&(e.removeListener("chainChanged",l),l=void 0),r&&(e.removeListener("disconnect",r),r=void 0)}}))}R.type="metaMask";function R(M={}){let p,u;return T(l=>({id:"metaMaskSDK",name:"MetaMask",rdns:["io.metamask","io.metamask.mobile"],type:R.type,async connect({chainId:r,isReconnecting:o,withCapabilities:t}={}){const e=await this.getInstance(),c=e.getProvider();let a=[];o&&(a=await this.getAccounts().catch(()=>[]));try{let n,i;if(!(a!=null&&a.length)){const d=l.chains.map(g=>z(g.id));M.connectAndSign||M.connectWith?(M.connectAndSign?n=(await e.connectAndSign({chainIds:d,message:M.connectAndSign})).signature:M.connectWith&&(i=(await e.connectWith({chainIds:d,method:M.connectWith.method,params:M.connectWith.params})).result),a=await this.getAccounts()):a=(await e.connect({chainIds:d})).accounts.map(w=>D(w))}let s=await this.getChainId();if(r&&s!==r){const d=await this.switchChain({chainId:r}).catch(g=>{if(g.code===f.code)throw g;return{id:s}});s=(d==null?void 0:d.id)??s}return n?c.emit("connectAndSign",{accounts:a,chainId:z(s),signResponse:n}):i&&c.emit("connectWith",{accounts:a,chainId:z(s),connectWithResponse:i}),{accounts:t?a.map(d=>({address:d,capabilities:{}})):a,chainId:s}}catch(n){const i=n;throw i.code===f.code?new f(i):i.code===Y.code?new Y(i):i}},async disconnect(){return(await this.getInstance()).disconnect()},async getAccounts(){var e;if(!p&&!u){const c=(e=l.providers[0])==null?void 0:e.provider;if(c)return(await c.request({method:"eth_accounts"})).map(n=>D(n))}const r=await this.getInstance();return r.accounts.length?r.accounts.map(c=>D(c)):(await r.getProvider().request({method:"eth_accounts"})).map(c=>D(c))},async getChainId(){var e;if(!p&&!u){const c=(e=l.providers[0])==null?void 0:e.provider;if(c){const a=await c.request({method:"eth_chainId"});return Number(a)}}const r=await this.getInstance();if(r.getChainId())return Number(r.getChainId());const t=await r.getProvider().request({method:"eth_chainId"});return Number(t)},async getProvider(){var o;if(!p&&!u){const t=(o=l.providers[0])==null?void 0:o.provider;if(t)return t}return(await this.getInstance()).getProvider()},async isAuthorized(){var r;try{if(!p&&!u){const e=(r=l.providers[0])==null?void 0:r.provider;if(e)return(await e.request({method:"eth_accounts"})).length>0}const o=10;return!!(await U(async()=>E(async()=>{const e=await this.getAccounts();if(!e.length)throw new Error("try again");return e},{timeout:o}),{delay:o+1,retryCount:3})).length}catch{return!1}},async switchChain({addEthereumChainParameter:r,chainId:o}){var c,a;const t=l.chains.find(({id:n})=>n===Number(o));if(!t)throw new L(new O);const e=z(o);try{return await(await this.getInstance()).switchChain({chainId:e,chainConfiguration:{blockExplorerUrls:r!=null&&r.blockExplorerUrls?[...r.blockExplorerUrls]:(c=t.blockExplorers)!=null&&c.default.url?[t.blockExplorers.default.url]:void 0,chainId:e,chainName:(r==null?void 0:r.chainName)??t.name,iconUrls:r==null?void 0:r.iconUrls,nativeCurrency:(r==null?void 0:r.nativeCurrency)??t.nativeCurrency,rpcUrls:r!=null&&r.rpcUrls?[...r.rpcUrls]:(a=t.rpcUrls.default)!=null&&a.http?[...t.rpcUrls.default.http]:void 0}}),t}catch(n){const i=n;throw i.code===f.code?new f(i):new L(i)}},async onAccountsChanged(r){l.emitter.emit("change",{accounts:r.map(o=>D(o))})},onChainChanged(r){const o=Number(r);l.emitter.emit("change",{chainId:o})},async onConnect(r){const o=await this.getAccounts();if(o.length===0)return;const t=Number(r.chainId);l.emitter.emit("connect",{accounts:o,chainId:t})},async onDisconnect(r){r&&r.code===1013&&await this.getProvider()&&(await this.getAccounts()).length||l.emitter.emit("disconnect")},onDisplayUri(r){l.emitter.emit("message",{type:"display_uri",data:r})},async getInstance(){var r;if(!p){if(!u){const{createEVMClient:o}=await(async()=>{try{return b(()=>import("./connectors-BT2XrNvd.js"),[])}catch{throw new Error('dependency "@metamask/connect-evm" not found')}})(),t=typeof window>"u"?{name:"wagmi"}:{name:window.location.hostname,url:window.location.href};u=o({...M,skipAutoAnnounce:!0,api:{supportedNetworks:Object.fromEntries(l.chains.map(e=>{var c;return[z(e.id),((c=e.rpcUrls.default)==null?void 0:c.http[0])??""]}))},dapp:M.dapp??{...t,...M.dappMetadata},debug:M.debug??((r=M.logging)==null?void 0:r.sdk),eventHandlers:{accountsChanged:this.onAccountsChanged.bind(this),chainChanged:this.onChainChanged.bind(this),connect:this.onConnect.bind(this),disconnect:this.onDisconnect.bind(this),displayUri:this.onDisplayUri.bind(this)},analytics:{integrationType:"wagmi"},ui:{...M.ui,...M.headless!=null&&{headless:M.headless}},...M.mobile&&{mobile:M.mobile}})}p=await u}return p}}))}function zt(M={}){const p=u=>typeof u.on=="function"&&typeof u.removeListener=="function";return T(u=>{const l=u.chains??M.chains??[],r=u.transports?u.transports:M.transports;let o,t,e,c,a;return{async connect({chainId:n=l[0].id,...i}={}){const s="isReconnecting"in i&&i.isReconnecting||!1,d="withCapabilities"in i&&i.withCapabilities||!1;let g=[],w;if(s&&([g,w]=await Promise.all([this.getAccounts().catch(()=>[]),this.getChainId().catch(()=>{})]),n&&w!==n)){const h=await this.switchChain({chainId:n}).catch(I=>{if(I.code===f.code)throw I;return{id:w}});w=(h==null?void 0:h.id)??w}const y=await this.getProvider();try{if(!(g!=null&&g.length)&&!s){const{RpcSchema:h}=await(()=>{try{return b(()=>import("./connectors-CRUo0P66.js"),[])}catch{throw new Error('dependency "porto" not found')}})(),{z:I}=await(()=>{try{return b(()=>import("./connectors-CChlcxBj.js"),[])}catch{throw new Error('dependency "porto/internal" not found')}})(),j=await y.request({method:"wallet_connect",params:[{..."capabilities"in i?{capabilities:I.encode(h.wallet_connect.Capabilities,i.capabilities??{})}:{},chainIds:[z(n),...l.filter(A=>A.id!==n).map(A=>z(A.id))]}]});g=j.accounts,w=Number(j.chainIds[0])}if(!w)throw new O;return p(y)&&(c&&(y.removeListener("connect",c),c=void 0),t||(t=this.onAccountsChanged.bind(this),y.on("accountsChanged",t)),e||(e=this.onChainChanged.bind(this),y.on("chainChanged",e)),a||(a=this.onDisconnect.bind(this),y.on("disconnect",a))),{accounts:g.map(h=>typeof h=="object"?d?h:h.address:d?{address:h,capabilities:{}}:h),chainId:w}}catch(h){const I=h;throw I.code===f.code?new f(I):I}},async disconnect(){const n=await this.getProvider();p(n)&&(e&&(n.removeListener("chainChanged",e),e=void 0),a&&(n.removeListener("disconnect",a),a=void 0),c||(c=this.onConnect.bind(this),n.on("connect",c))),await n.request({method:"wallet_disconnect"})},async getAccounts(){return(await(await this.getProvider()).request({method:"eth_accounts"})).map(s=>D(s))},async getChainId(){const i=await(await this.getProvider()).request({method:"eth_chainId"});return Number(i)},async getPortoInstance(){return o??(o=(async()=>{const{Porto:n}=await(()=>{try{return b(()=>import("./connectors-CRUo0P66.js"),[])}catch{throw new Error('dependency "porto" not found')}})();return n.create({...M,announceProvider:!1,chains:l,transports:r})})()),await o},async getProvider(){return(await this.getPortoInstance()).provider},icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDIyIiBoZWlnaHQ9IjQyMiIgdmlld0JveD0iMCAwIDQyMiA0MjIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxyZWN0IHdpZHRoPSI0MjIiIGhlaWdodD0iNDIyIiBmaWxsPSJibGFjayIvPgo8ZyBjbGlwLXBhdGg9InVybCgjY2xpcDBfMV8xNSkiPgo8cGF0aCBkPSJNODEgMjg2LjM2NkM4MSAyODAuODkzIDg1LjQ1MDUgMjc2LjQ1NSA5MC45NDA0IDI3Ni40NTVIMzI5LjUxMUMzMzUuMDAxIDI3Ni40NTUgMzM5LjQ1MiAyODAuODkzIDMzOS40NTIgMjg2LjM2NlYzMDYuMTg4QzMzOS40NTIgMzExLjY2MiAzMzUuMDAxIDMxNi4wOTkgMzI5LjUxMSAzMTYuMDk5SDkwLjk0MDRDODUuNDUwNS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EuNjE4QzMxNy4xMDggMTIxLjg0IDMyMS41NTggMTI2LjI3OCAzMjEuNTU4IDEzMS43NTJWMTYxLjQ4NUMzMjEuNTU4IDE2Ni45NTkgMzE3LjEwOCAxNzEuMzk2IDMxMS42MTggMTcxLjM5NkgyNzkuODA4QzI3NC4zMTggMTcxLjM5NiAyNjkuODY4IDE2Ni45NTkgMjY5Ljg2OCAxNjEuNDg1VjEzMS43NTJaIiBmaWxsPSJ3aGl0ZSIvPgo8L2c+CjxkZWZzPgo8Y2xpcFBhdGggaWQ9ImNsaXAwXzFfMTUiPgo8cmVjdCB3aWR0aD0iMjU5IiBoZWlnaHQ9IjIxMyIgZmlsbD0id2hpdGUiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDgxIDEwNCkiLz4KPC9jbGlwUGF0aD4KPC9kZWZzPgo8L3N2Zz4K",id:"xyz.ithaca.porto",async isAuthorized(){try{return!!(await U(()=>this.getAccounts())).length}catch{return!1}},name:"Porto",async onAccountsChanged(n){u.emitter.emit("change",{accounts:n.map(i=>D(i))})},onChainChanged(n){const i=Number(n);u.emitter.emit("change",{chainId:i})},async onConnect(n){const i=await this.getAccounts();if(i.length===0)return;const s=Number(n.chainId);u.emitter.emit("connect",{accounts:i,chainId:s});const d=await this.getProvider();p(d)&&(c&&(d.removeListener("connect",c),c=void 0),t||(t=this.onAccountsChanged.bind(this),d.on("accountsChanged",t)),e||(e=this.onChainChanged.bind(this),d.on("chainChanged",e)),a||(a=this.onDisconnect.bind(this),d.on("disconnect",a)))},async onDisconnect(n){const i=await this.getProvider();u.emitter.emit("disconnect"),p(i)&&(e&&(i.removeListener("chainChanged",e),e=void 0),a&&(i.removeListener("disconnect",a),a=void 0),c||(c=this.onConnect.bind(this),i.on("connect",c)))},async setup(){if(!c){const n=await this.getProvider();if(!p(n))return;c=this.onConnect.bind(this),n.on("connect",c)}},async switchChain({chainId:n}){const i=l.find(d=>d.id===n);if(!i)throw new L(new O);return await(await this.getProvider()).request({method:"wallet_switchEthereumChain",params:[{chainId:z(n)}]}),i},type:"injected"}})}W.type="safe";function W(M={}){const{shimDisconnect:p=!1}=M;let u,l;return T(r=>({id:"safe",name:"Safe",type:W.type,async connect({withCapabilities:o}={}){var a;const t=await this.getProvider();if(!t)throw new k;const e=await this.getAccounts(),c=await this.getChainId();return l||(l=this.onDisconnect.bind(this),t.on("disconnect",l)),p&&await((a=r.storage)==null?void 0:a.removeItem("safe.disconnected")),{accounts:o?e.map(n=>({address:n,capabilities:{}})):e,chainId:c}},async disconnect(){var t;const o=await this.getProvider();if(!o)throw new k;l&&(o.removeListener("disconnect",l),l=void 0),p&&await((t=r.storage)==null?void 0:t.setItem("safe.disconnected",!0))},async getAccounts(){const o=await this.getProvider();if(!o)throw new k;return(await o.request({method:"eth_accounts"})).map(D)},async getProvider(){if(typeof window<"u"&&(window==null?void 0:window.parent)!==window){if(!u){const{default:t}=await(()=>{try{return b(()=>import("./index-CFthW2p7.js"),__vite__mapDeps([32,4,33,8,9,10,11,6,12,13,14,24]))}catch{throw new Error('dependency "@safe-global/safe-apps-sdk" not found')}})(),e=new t(M),c=await E(()=>e.safe.getInfo(),{timeout:M.unstable_getInfoTimeout??10});if(!c)throw new Error("Could not load Safe information");const a=await(async()=>{const n=await(()=>{try{return b(()=>import("./index-W4ibltdC.js").then(i=>i.i),__vite__mapDeps([34,4,33,35,10,19]))}catch{throw new Error('dependency "@safe-global/safe-apps-provider" not found')}})();return typeof n.SafeAppProvider!="function"&&typeof n.default.SafeAppProvider=="function"?n.default.SafeAppProvider:n.SafeAppProvider})();u=new a(c,e)}return u}},async getChainId(){const o=await this.getProvider();if(!o)throw new k;return Number(o.chainId)},async isAuthorized(){var o;try{return p&&await((o=r.storage)==null?void 0:o.getItem("safe.disconnected"))?!1:!!(await this.getAccounts()).length}catch{return!1}},onAccountsChanged(){},onChainChanged(){},onDisconnect(){r.emitter.emit("disconnect")}}))}const At="8.0.20";Z.type="walletConnect";function Z(M){const p=M.isNewChainsStale??!0;let u,l;const r="eip155";let o,t,e,c,a,n;return T(i=>({id:"walletConnect",name:"WalletConnect",type:Z.type,async setup(){const s=await this.getProvider().catch(()=>null);s&&(e||(e=this.onConnect.bind(this),s.on("connect",e)),a||(a=this.onSessionDelete.bind(this),s.on("session_delete",a)))},async connect({chainId:s,withCapabilities:d,...g}={}){var w,y;try{const h=await this.getProvider();if(!h)throw new k;c||(c=this.onDisplayUri,h.on("display_uri",c));let I=s;if(!I){const N=await((w=i.storage)==null?void 0:w.getItem("state"))??{};i.chains.some(S=>S.id===N.chainId)?I=N.chainId:I=(y=i.chains[0])==null?void 0:y.id}if(!I)throw new Error("No chains found on connector.");const j=await this.isChainsStale();if(h.session&&j&&await h.disconnect(),!h.session||j){const N=i.chains.filter(v=>v.id!==I).map(v=>v.id);await h.connect({optionalChains:[I,...N],..."pairingTopic"in g?{pairingTopic:g.pairingTopic}:{}}),this.setRequestedChainsIds(i.chains.map(v=>v.id))}const A=(await h.enable()).map(N=>D(N));let C=await this.getChainId();if(s&&C!==s){const N=await this.switchChain({chainId:s}).catch(v=>{var S;if(v.code===f.code&&((S=v.cause)==null?void 0:S.message)!=="Missing or invalid. request() method: wallet_addEthereumChain")throw v;return{id:C}});C=(N==null?void 0:N.id)??C}return c&&(h.removeListener("display_uri",c),c=void 0),e&&(h.removeListener("connect",e),e=void 0),o||(o=this.onAccountsChanged.bind(this),h.on("accountsChanged",o)),t||(t=this.onChainChanged.bind(this),h.on("chainChanged",t)),n||(n=this.onDisconnect.bind(this),h.on("disconnect",n)),a||(a=this.onSessionDelete.bind(this),h.on("session_delete",a)),{accounts:d?A.map(N=>({address:N,capabilities:{}})):A,chainId:C}}catch(h){throw/(user rejected|connection request reset)/i.test(h==null?void 0:h.message)?new f(h):h}},async disconnect(){const s=await this.getProvider();try{await(s==null?void 0:s.disconnect())}catch(d){if(!/No matching key/i.test(d.message))throw d}finally{t&&(s==null||s.removeListener("chainChanged",t),t=void 0),n&&(s==null||s.removeListener("disconnect",n),n=void 0),e||(e=this.onConnect.bind(this),s==null||s.on("connect",e)),o&&(s==null||s.removeListener("accountsChanged",o),o=void 0),a&&(s==null||s.removeListener("session_delete",a),a=void 0),this.setRequestedChainsIds([])}},async getAccounts(){return(await this.getProvider()).accounts.map(d=>D(d))},async getProvider({chainId:s}={}){var g;async function d(){const w=i.chains.map(h=>h.id);if(!w.length)return;const{EthereumProvider:y}=await(()=>{try{return b(()=>import("./index.es-BoxCyFog.js").then(h=>h.n),__vite__mapDeps([36,11,4,6,10,12,13,14,18,19,37,17,29,38,39,20]))}catch{throw new Error('dependency "@walletconnect/ethereum-provider" not found')}})();return await y.init({...M,disableProviderPing:!0,optionalChains:w,projectId:M.projectId,rpcMap:Object.fromEntries(i.chains.map(h=>{const[I]=$({chain:h,transports:i.transports});return[h.id,I]})),showQrModal:M.showQrModal??!0})}return u||(l||(l=d()),u=await l,u==null||u.events.setMaxListeners(Number.POSITIVE_INFINITY)),s&&await((g=this.switchChain)==null?void 0:g.call(this,{chainId:s})),u},async getChainId(){return(await this.getProvider()).chainId},async isAuthorized(){try{const[s,d]=await Promise.all([this.getAccounts(),this.getProvider()]);return s.length?await this.isChainsStale()&&d.session?(await d.disconnect().catch(()=>{}),!1):!0:!1}catch{return!1}},async switchChain({addEthereumChainParameter:s,chainId:d}){var h,I,j;const g=await this.getProvider();if(!g)throw new k;const w=i.chains.find(A=>A.id===d);if(!w)throw new L(new O);let y=()=>{};try{await Promise.all([new Promise(C=>{y=N=>{N.chainId===d&&(i.emitter.off("change",y),C())},i.emitter.on("change",y)}),g.request({method:"wallet_switchEthereumChain",params:[{chainId:z(d)}]})]);const A=await this.getRequestedChainsIds();return this.setRequestedChainsIds([...A,d]),w}catch(A){i.emitter.off("change",y);const C=A;if(/(user rejected)/i.test(C.message))throw new f(C);try{let N;s!=null&&s.blockExplorerUrls?N=s.blockExplorerUrls:N=(h=w.blockExplorers)!=null&&h.default.url?[(I=w.blockExplorers)==null?void 0:I.default.url]:[];let v;(j=s==null?void 0:s.rpcUrls)!=null&&j.length?v=s.rpcUrls:v=[...w.rpcUrls.default.http];const S={blockExplorerUrls:N,chainId:z(d),chainName:(s==null?void 0:s.chainName)??w.name,iconUrls:s==null?void 0:s.iconUrls,nativeCurrency:(s==null?void 0:s.nativeCurrency)??w.nativeCurrency,rpcUrls:v};await g.request({method:"wallet_addEthereumChain",params:[S]});const V=await this.getRequestedChainsIds();return this.setRequestedChainsIds([...V,d]),w}catch(N){throw new f(N)}}},onAccountsChanged(s){s.length===0?this.onDisconnect():i.emitter.emit("change",{accounts:s.map(d=>D(d))})},onChainChanged(s){const d=Number(s);i.emitter.emit("change",{chainId:d})},async onConnect(s){const d=Number(s.chainId),g=await this.getAccounts();i.emitter.emit("connect",{accounts:g,chainId:d})},async onDisconnect(s){this.setRequestedChainsIds([]),i.emitter.emit("disconnect");const d=await this.getProvider();o&&(d.removeListener("accountsChanged",o),o=void 0),t&&(d.removeListener("chainChanged",t),t=void 0),n&&(d.removeListener("disconnect",n),n=void 0),a&&(d.removeListener("session_delete",a),a=void 0),e||(e=this.onConnect.bind(this),d.on("connect",e))},onDisplayUri(s){i.emitter.emit("message",{type:"display_uri",data:s})},onSessionDelete(){this.onDisconnect()},getNamespaceChainsIds(){var d,g,w;return u?((w=(g=(d=u.session)==null?void 0:d.namespaces[r])==null?void 0:g.accounts)==null?void 0:w.map(y=>Number.parseInt(y.split(":")[1]||"",10)))??[]:[]},async getRequestedChainsIds(){var s;return await((s=i.storage)==null?void 0:s.getItem(this.requestedChainsStorageKey))??[]},async isChainsStale(){if(!p)return!1;const s=i.chains.map(w=>w.id),d=this.getNamespaceChainsIds();if(d.length&&!d.some(w=>s.includes(w)))return!1;const g=await this.getRequestedChainsIds();return!s.every(w=>g.includes(w))},async setRequestedChainsIds(s){var d;await((d=i.storage)==null?void 0:d.setItem(this.requestedChainsStorageKey,s))},get requestedChainsStorageKey(){return`${this.id}.requestedChains`}}))}export{jt as baseAccount,q as coinbaseWallet,bt as injected,R as metaMask,Q as mock,zt as porto,W as safe,Nt as tempoWallet,At as version,Z as walletConnect};
|
|
3
|
+
//# sourceMappingURL=index-DhOTREMg.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as h,i as p,b as a}from"./lit-element-wjYUA6aF.js";import{d as w,r as b,e as g}from"./index-
|
|
1
|
+
import{a as h,i as p,b as a}from"./lit-element-wjYUA6aF.js";import{d as w,r as b,e as g}from"./index-CA7TO4ls.js";import{c as m}from"./index-CfVRvVRY.js";import"./index-CoM_vldC.js";import{O as u,E as x,l as v,C as _,W as C,R as $}from"./W3MFrameProviderSingleton-C45teoHA.js";import{r as R}from"./class-map-BxMzgOIb.js";(function(){try{var n=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new n.Error().stack;e&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[e]="791a77a9-f66e-41e5-bf69-73d611f5759e",n._sentryDebugIdIdentifier="sentry-dbid-791a77a9-f66e-41e5-bf69-73d611f5759e")}catch{}})();const T=h``;var O=function(n,e,r,o){var i=arguments.length,t=i<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(n,e,r,o);else for(var l=n.length-1;l>=0;l--)(s=n[l])&&(t=(i<3?s(t):i>3?s(e,r,t):s(e,r))||t);return i>3&&t&&Object.defineProperty(e,r,t),t};let f=class extends p{render(){const{termsConditionsUrl:e,privacyPolicyUrl:r}=u.state;return!e&&!r?null:a`
|
|
2
2
|
<wui-flex
|
|
3
3
|
.padding=${["4","3","3","3"]}
|
|
4
4
|
flexDirection="column"
|
|
@@ -79,4 +79,4 @@ import{a as h,i as p,b as a}from"./lit-element-wjYUA6aF.js";import{d as w,r as b
|
|
|
79
79
|
>`:null}privacyTemplate(){const{privacyPolicyUrl:e}=u.state;return e?a`<a href=${e} target="_blank" rel="noopener noreferrer"
|
|
80
80
|
>Privacy Policy</a
|
|
81
81
|
>`:null}reownBrandingTemplate(e=!1){var r;return(r=this.remoteFeatures)!=null&&r.reownBranding?e?a`<wui-ux-by-reown class="branding-only"></wui-ux-by-reown>`:a`<wui-ux-by-reown></wui-ux-by-reown>`:null}};c.styles=[B];y([R()],c.prototype,"remoteFeatures",void 0);c=y([m("w3m-legal-footer")],c);
|
|
82
|
-
//# sourceMappingURL=index-
|
|
82
|
+
//# sourceMappingURL=index-DjXa64AR.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{w as f,i as w,b as l}from"./lit-element-wjYUA6aF.js";import{n as o,o as x}from"./class-map-BxMzgOIb.js";import{c as v,U as $}from"./index-
|
|
1
|
+
import{w as f,i as w,b as l}from"./lit-element-wjYUA6aF.js";import{n as o,o as x}from"./class-map-BxMzgOIb.js";import{c as v,U as $}from"./index-CfVRvVRY.js";import"./index-1VwXrOEt.js";import{d as b,r as y,e as z}from"./index-CA7TO4ls.js";import"./index-C2mGmByD.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="85b7b351-e3da-4eeb-9456-7ccedf7247f3",e._sentryDebugIdIdentifier="sentry-dbid-85b7b351-e3da-4eeb-9456-7ccedf7247f3")}catch{}})();const S=f`<svg width="86" height="96" fill="none">
|
|
2
2
|
<path
|
|
3
3
|
d="M78.3244 18.926L50.1808 2.45078C45.7376 -0.150261 40.2624 -0.150262 35.8192 2.45078L7.6756 18.926C3.23322 21.5266 0.5 26.3301 0.5 31.5248V64.4752C0.5 69.6699 3.23322 74.4734 7.6756 77.074L35.8192 93.5492C40.2624 96.1503 45.7376 96.1503 50.1808 93.5492L78.3244 77.074C82.7668 74.4734 85.5 69.6699 85.5 64.4752V31.5248C85.5 26.3301 82.7668 21.5266 78.3244 18.926Z"
|
|
4
4
|
/>
|
|
@@ -222,4 +222,4 @@ import{w as f,i as w,b as l}from"./lit-element-wjYUA6aF.js";import{n as o,o as x
|
|
|
222
222
|
${$.getTruncateString({string:this.profileName||this.address,charsStart:this.profileName?16:this.charsStart,charsEnd:this.profileName?0:this.charsEnd,truncate:this.profileName?"end":"middle"})}
|
|
223
223
|
</wui-text>
|
|
224
224
|
`}rightImageTemplate(){return l`<wui-icon name="chevronBottom" size="sm" color="default"></wui-icon>`}};c.styles=[y,z,j];h([o()],c.prototype,"address",void 0);h([o()],c.prototype,"profileName",void 0);h([o()],c.prototype,"alt",void 0);h([o()],c.prototype,"imageSrc",void 0);h([o()],c.prototype,"icon",void 0);h([o()],c.prototype,"iconSize",void 0);h([o({type:Boolean})],c.prototype,"enableGreenCircle",void 0);h([o({type:Boolean})],c.prototype,"loading",void 0);h([o({type:Number})],c.prototype,"charsStart",void 0);h([o({type:Number})],c.prototype,"charsEnd",void 0);c=h([v("wui-wallet-switch")],c);export{k as n};
|
|
225
|
-
//# sourceMappingURL=index-
|
|
225
|
+
//# sourceMappingURL=index-DjzjJqtG.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as w,i as g,b as f}from"./lit-element-wjYUA6aF.js";import{n as y,r as h}from"./class-map-BxMzgOIb.js";import{d as v}from"./index-
|
|
1
|
+
import{a as w,i as g,b as f}from"./lit-element-wjYUA6aF.js";import{n as y,r as h}from"./class-map-BxMzgOIb.js";import{d as v}from"./index-CA7TO4ls.js";import{c as b}from"./index-CfVRvVRY.js";import{j as x,e as $,i as R,p as _,R as T,M as C}from"./W3MFrameProviderSingleton-C45teoHA.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new t.Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="d15dc0e8-6cbd-4d5f-b56a-f672913ef012",t._sentryDebugIdIdentifier="sentry-dbid-d15dc0e8-6cbd-4d5f-b56a-f672913ef012")}catch{}})();const a=_({message:"",open:!1,triggerRect:{width:0,height:0,top:0,left:0},variant:"shade"}),P={state:a,subscribe(t){return R(a,()=>t(a))},subscribeKey(t,e){return $(a,t,e)},showTooltip({message:t,triggerRect:e,variant:o}){a.open=!0,a.message=t,a.triggerRect=e,a.variant=o},hide(){a.open=!1,a.message="",a.triggerRect={width:0,height:0,top:0,left:0}}},s=x(P),j=w`
|
|
2
2
|
:host {
|
|
3
3
|
width: 100%;
|
|
4
4
|
display: block;
|
|
@@ -98,4 +98,4 @@ import{a as w,i as g,b as f}from"./lit-element-wjYUA6aF.js";import{n as y,r as h
|
|
|
98
98
|
<wui-icon data-placement="top" size="inherit" name="cursor"></wui-icon>
|
|
99
99
|
<wui-text color="primary" variant="sm-regular">${this.message}</wui-text>
|
|
100
100
|
</wui-flex>`}};p.styles=[E];u([h()],p.prototype,"open",void 0);u([h()],p.prototype,"message",void 0);u([h()],p.prototype,"triggerRect",void 0);u([h()],p.prototype,"variant",void 0);p=u([b("w3m-tooltip")],p);
|
|
101
|
-
//# sourceMappingURL=index-
|
|
101
|
+
//# sourceMappingURL=index-DpxLcDgW.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import"./react-
|
|
2
|
-
//# sourceMappingURL=index-
|
|
1
|
+
import"./react-CZ2YYu9h.js";import{r as d}from"./index-Cn2VZ7A5.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},r=new e.Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="f5b6f687-1da7-483f-936c-dd8748655f87",e._sentryDebugIdIdentifier="sentry-dbid-f5b6f687-1da7-483f-936c-dd8748655f87")}catch{}})();function i(e,r){for(var o=0;o<r.length;o++){const t=r[o];if(typeof t!="string"&&!Array.isArray(t)){for(const n in t)if(n!=="default"&&!(n in e)){const f=Object.getOwnPropertyDescriptor(t,n);f&&Object.defineProperty(e,n,f.get?f:{enumerable:!0,get:()=>t[n]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var s=d();const u=i({__proto__:null},[s]);export{u as i};
|
|
2
|
+
//# sourceMappingURL=index-Dtp8rC8A.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{i as h,b as a}from"./lit-element-wjYUA6aF.js";import{n as i,o as p}from"./class-map-BxMzgOIb.js";import"./index-
|
|
1
|
+
import{i as h,b as a}from"./lit-element-wjYUA6aF.js";import{n as i,o as p}from"./class-map-BxMzgOIb.js";import"./index-mTyAR_XJ.js";import{c as b}from"./index-CfVRvVRY.js";import{d as f,r as y,e as g}from"./index-CA7TO4ls.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},r=new e.Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="7126f597-c464-4ca9-80eb-3ba155ddbe1d",e._sentryDebugIdIdentifier="sentry-dbid-7126f597-c464-4ca9-80eb-3ba155ddbe1d")}catch{}})();const m=f`
|
|
2
2
|
:host {
|
|
3
3
|
width: 100%;
|
|
4
4
|
}
|
|
@@ -75,4 +75,4 @@ import{i as h,b as a}from"./lit-element-wjYUA6aF.js";import{n as i,o as p}from".
|
|
|
75
75
|
src=${this.imageSrc}
|
|
76
76
|
boxColor=${this.boxColor}
|
|
77
77
|
></wui-image>`}templateRightIcon(){return this.rightIcon?this.loading?a`<wui-loading-spinner size="md" color="accent-primary"></wui-loading-spinner>`:a`<wui-icon name="chevronRight" size="lg" color="default"></wui-icon>`:null}};o.styles=[y,g,m];t([i()],o.prototype,"type",void 0);t([i()],o.prototype,"imageSrc",void 0);t([i()],o.prototype,"imageSize",void 0);t([i()],o.prototype,"icon",void 0);t([i()],o.prototype,"iconColor",void 0);t([i({type:Boolean})],o.prototype,"loading",void 0);t([i()],o.prototype,"tabIdx",void 0);t([i()],o.prototype,"boxColor",void 0);t([i({type:Boolean})],o.prototype,"disabled",void 0);t([i({type:Boolean})],o.prototype,"rightIcon",void 0);t([i({type:Boolean})],o.prototype,"boxed",void 0);t([i({type:Boolean})],o.prototype,"rounded",void 0);t([i({type:Boolean})],o.prototype,"fullSize",void 0);o=t([b("wui-list-item")],o);
|
|
78
|
-
//# sourceMappingURL=index-
|
|
78
|
+
//# sourceMappingURL=index-DuxgvZzF.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{i as _,b as l,a as Te}from"./lit-element-wjYUA6aF.js";import{n as x,o as f,r as h,a as Ie}from"./class-map-BxMzgOIb.js";import{d as U,r as Ne,e as Se,v as ke}from"./index-
|
|
1
|
+
import{i as _,b as l,a as Te}from"./lit-element-wjYUA6aF.js";import{n as x,o as f,r as h,a as Ie}from"./class-map-BxMzgOIb.js";import{d as U,r as Ne,e as Se,v as ke}from"./index-CA7TO4ls.js";import{c as C,U as _e}from"./index-CfVRvVRY.js";import"./index-BoPotZC3.js";import"./index-D36MVtN_.js";import"./index-1VwXrOEt.js";import"./index-DuxgvZzF.js";import"./index-mTyAR_XJ.js";import"./index-DjzjJqtG.js";import"./index-CV-lFcl7.js";import{$ as Ce,k as T,a0 as $e,a1 as y,b as O,a2 as Re,a3 as N,O as ce,N as A,a4 as me,C as m,q as v,E as M,S as R,n as Oe,M as G,e as Ue,i as Le,p as qe,o as P,R as z}from"./W3MFrameProviderSingleton-C45teoHA.js";import{au as I}from"./NetworkUtil-Cfolzg8H.js";import"./index-SJBE5eFc.js";import{M as ge}from"./MathUtil-BvP0JcjY.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new t.Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="75dfd22d-06a2-4092-945e-2dd00aac036e",t._sentryDebugIdIdentifier="sentry-dbid-75dfd22d-06a2-4092-945e-2dd00aac036e")}catch{}})();const De=U`
|
|
2
2
|
:host {
|
|
3
3
|
position: relative;
|
|
4
4
|
}
|
|
@@ -1062,4 +1062,4 @@ import{i as _,b as l,a as Te}from"./lit-element-wjYUA6aF.js";import{n as x,o as
|
|
|
1062
1062
|
></wui-icon>`}
|
|
1063
1063
|
</wui-button>
|
|
1064
1064
|
`}getPaymentAssetFromTokenBalances(){return this.namespace?(this.tokenBalances[this.namespace]??[]).map(i=>{try{return tt(i)}catch{return null}}).filter(i=>!!i).filter(i=>{const{chainId:a}=y.parseCaipNetworkId(i.network),{chainId:o}=y.parseCaipNetworkId(this.paymentAsset.network);return N.isLowerCaseMatch(i.asset,this.paymentAsset.asset)?!0:this.selectedExchange?!N.isLowerCaseMatch(a.toString(),o.toString()):!0}):[]}onTokenBalancesChanged(e){this.tokenBalances=e;const[n]=this.getPaymentAssetFromTokenBalances();n&&u.setSelectedPaymentAsset(n)}async onConnectOtherWallet(){await P.connect(),await G.open({view:"PayQuote"})}onAccountStateChanged(e){const{address:n}=this.caipAddress?y.parseCaipAddress(this.caipAddress):{};if(this.caipAddress=e==null?void 0:e.caipAddress,this.profileName=(e==null?void 0:e.profileName)??null,n){const{address:s}=this.caipAddress?y.parseCaipAddress(this.caipAddress):{};s?N.isLowerCaseMatch(s,n)||(this.resetAssetsState(),this.resetQuoteState(),this.fetchTokens()):G.close()}}onSelectedPaymentAssetChanged(e){this.isFetchingQuote||u.setSelectedPaymentAsset(e)}async onTransfer(){var n,s,i;const e=ie(this.quote);if(e){if(!N.isLowerCaseMatch((n=this.selectedPaymentAsset)==null?void 0:n.asset,e.deposit.currency))throw new Error("Quote asset is not the same as the selected payment asset");const o=((s=this.selectedPaymentAsset)==null?void 0:s.amount)??"0",c=A.formatNumber(e.deposit.amount,{decimals:((i=this.selectedPaymentAsset)==null?void 0:i.metadata.decimals)??0}).toString();if(!A.bigNumber(o).gte(c)){R.showError("Insufficient funds");return}if(this.quote&&this.selectedPaymentAsset&&this.caipAddress&&this.namespace){const{address:L}=y.parseCaipAddress(this.caipAddress);await u.onTransfer({chainNamespace:this.namespace,fromAddress:L,toAddress:e.deposit.receiver,amount:c,paymentAsset:this.selectedPaymentAsset}),u.setRequestId(e.requestId),z.push("PayLoading")}}}async onSendTransactions(){var o,c,g;const e=((o=this.selectedPaymentAsset)==null?void 0:o.amount)??"0",n=A.formatNumber(((c=this.quote)==null?void 0:c.origin.amount)??0,{decimals:((g=this.selectedPaymentAsset)==null?void 0:g.metadata.decimals)??0}).toString();if(!A.bigNumber(e).gte(n)){R.showError("Insufficient funds");return}const i=te(this.quote),[a]=te(this.quote,this.completedTransactionsCount);a&&this.namespace&&(await u.onSendTransaction({namespace:this.namespace,transactionStep:a}),this.completedTransactionsCount+=1,this.completedTransactionsCount===i.length&&(u.setRequestId(a.requestId),z.push("PayLoading")))}onPayWithExchange(){if(this.exchangeUrlForQuote){const e=O.returnOpenHref("","popupWindow","scrollbar=yes,width=480,height=720");if(!e)throw new Error("Could not create popup window");e.location.href=this.exchangeUrlForQuote;const n=ie(this.quote);n&&u.setRequestId(n.requestId),u.initiatePayment(),z.push("PayLoading")}}resetAssetsState(){u.setSelectedPaymentAsset(null)}resetQuoteState(){u.resetQuoteState()}};w.styles=Nt;b([h()],w.prototype,"profileName",void 0);b([h()],w.prototype,"paymentAsset",void 0);b([h()],w.prototype,"namespace",void 0);b([h()],w.prototype,"caipAddress",void 0);b([h()],w.prototype,"amount",void 0);b([h()],w.prototype,"recipient",void 0);b([h()],w.prototype,"activeConnectorIds",void 0);b([h()],w.prototype,"selectedPaymentAsset",void 0);b([h()],w.prototype,"selectedExchange",void 0);b([h()],w.prototype,"isFetchingQuote",void 0);b([h()],w.prototype,"quoteError",void 0);b([h()],w.prototype,"quote",void 0);b([h()],w.prototype,"isFetchingTokenBalances",void 0);b([h()],w.prototype,"tokenBalances",void 0);b([h()],w.prototype,"isPaymentInProgress",void 0);b([h()],w.prototype,"exchangeUrlForQuote",void 0);b([h()],w.prototype,"completedTransactionsCount",void 0);w=b([C("w3m-pay-quote-view")],w);export{p as A,u as P,E as W,d as a,w as b,k as c};
|
|
1065
|
-
//# sourceMappingURL=index-
|
|
1065
|
+
//# sourceMappingURL=index-FjNEHsud.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{i as c,b as a}from"./lit-element-wjYUA6aF.js";import{n as o,o as h}from"./class-map-BxMzgOIb.js";import{e as b,n as m}from"./ref-D90CCjlU.js";import{c as f}from"./index-
|
|
1
|
+
import{i as c,b as a}from"./lit-element-wjYUA6aF.js";import{n as o,o as h}from"./class-map-BxMzgOIb.js";import{e as b,n as m}from"./ref-D90CCjlU.js";import{c as f}from"./index-CfVRvVRY.js";import{d as x,r as y,e as g}from"./index-CA7TO4ls.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new t.Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="c8de9dfb-b67f-4355-91e6-4be8ab0b451b",t._sentryDebugIdIdentifier="sentry-dbid-c8de9dfb-b67f-4355-91e6-4be8ab0b451b")}catch{}})();const $=x`
|
|
2
2
|
:host {
|
|
3
3
|
position: relative;
|
|
4
4
|
width: 100%;
|
|
@@ -150,4 +150,4 @@ import{i as c,b as a}from"./lit-element-wjYUA6aF.js";import{n as o,o as h}from".
|
|
|
150
150
|
>
|
|
151
151
|
${this.loading?a`<wui-icon name="spinner" size="md"></wui-icon>`:a`<wui-icon name="chevronRight" size="md"></wui-icon>`}
|
|
152
152
|
</button>`:null}templateError(){return this.errorText?a`<wui-text variant="sm-regular" color="error">${this.errorText}</wui-text>`:null}templateWarning(){return this.warningText?a`<wui-text variant="sm-regular" color="warning">${this.warningText}</wui-text>`:null}dispatchInputChangeEvent(){var e;this.dispatchEvent(new CustomEvent("inputChange",{detail:(e=this.inputElementRef.value)==null?void 0:e.value,bubbles:!0,composed:!0}))}};i.styles=[y,g,$];n([o()],i.prototype,"icon",void 0);n([o({type:Boolean})],i.prototype,"disabled",void 0);n([o({type:Boolean})],i.prototype,"loading",void 0);n([o()],i.prototype,"placeholder",void 0);n([o()],i.prototype,"type",void 0);n([o()],i.prototype,"value",void 0);n([o()],i.prototype,"errorText",void 0);n([o()],i.prototype,"warningText",void 0);n([o()],i.prototype,"onSubmit",void 0);n([o()],i.prototype,"size",void 0);n([o({attribute:!1})],i.prototype,"onKeyDown",void 0);i=n([f("wui-input-text")],i);
|
|
153
|
-
//# sourceMappingURL=index-
|
|
153
|
+
//# sourceMappingURL=index-GJ64rDmp.js.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{cC as _,u as I,cD as g,cE as k,cl as w,cm as f,cF as F,cG as j,cH as R,cI as V,q as L,o as M,cJ as z}from"./index-
|
|
1
|
+
import{cC as _,u as I,cD as g,cE as k,cl as w,cm as f,cF as F,cG as j,cH as R,cI as V,q as L,o as M,cJ as z}from"./index-42hgym_I.js";import{cK as we,cL as Me,cM as Oe,n as Ee,cN as Pe,cO as $e,cP as Te,cQ as _e,cR as Ie,k as ke,cS as Fe,cT as je,cU as Re,cV as Ve,cW as Le}from"./index-42hgym_I.js";import{u as Ce}from"./useTheme-B0ivQtHy.js";import{s as De,s as He}from"./styled-BN3FALZ-.js";import{j as C}from"./react-CZ2YYu9h.js";import"./dcl-schemas-DX4k9umP.js";import"./sentry-B1mJ7lMg.js";import"./ethers-zQzQ03Jk.js";import"./intl-AKLEHPeO.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="39249e06-7f6d-430c-a18b-76a7e01c4933",e._sentryDebugIdIdentifier="sentry-dbid-39249e06-7f6d-430c-a18b-76a7e01c4933")}catch{}})();function A(e){const{theme:t,name:n,props:s}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?s:_(t.components[n].defaultProps,s)}function D({props:e,name:t,defaultTheme:n,themeId:s}){let r=I(n);return r=r[s]||r,A({theme:r,name:t,props:e})}function E(e,t=0,n=1){return k(e,t,n)}function H(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(s=>s+s)),n?`rgb${n.length===4?"a":""}(${n.map((s,r)=>r<3?parseInt(s,16):Math.round(parseInt(s,16)/255*1e3)/1e3).join(", ")})`:""}function U(e){const t=e.toString(16);return t.length===1?`0${t}`:t}function d(e){if(e.type)return e;if(e.charAt(0)==="#")return d(H(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error(g(9,e));let s=e.substring(t+1,e.length-1),r;if(n==="color"){if(s=s.split(" "),r=s.shift(),s.length===4&&s[3].charAt(0)==="/"&&(s[3]=s[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(r)===-1)throw new Error(g(10,r))}else s=s.split(",");return s=s.map(o=>parseFloat(o)),{type:n,values:s,colorSpace:r}}function S(e){const{type:t,colorSpace:n}=e;let{values:s}=e;return t.indexOf("rgb")!==-1?s=s.map((r,o)=>o<3?parseInt(r,10):r):t.indexOf("hsl")!==-1&&(s[1]=`${s[1]}%`,s[2]=`${s[2]}%`),t.indexOf("color")!==-1?s=`${n} ${s.join(" ")}`:s=`${s.join(", ")}`,`${t}(${s})`}function ie(e){if(e.indexOf("#")===0)return e;const{values:t}=d(e);return`#${t.map((n,s)=>U(s===3?Math.round(255*n):n)).join("")}`}function B(e){e=d(e);const{values:t}=e,n=t[0],s=t[1]/100,r=t[2]/100,o=s*Math.min(r,1-r),u=(m,c=(m+n/30)%12)=>r-o*Math.max(Math.min(c-3,9-c,1),-1);let l="rgb";const i=[Math.round(u(0)*255),Math.round(u(8)*255),Math.round(u(4)*255)];return e.type==="hsla"&&(l+="a",i.push(t[3])),S({type:l,values:i})}function O(e){e=d(e);let t=e.type==="hsl"||e.type==="hsla"?d(B(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function oe(e,t){const n=O(e),s=O(t);return(Math.max(n,s)+.05)/(Math.min(n,s)+.05)}function ue(e,t){return e=d(e),t=E(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,S(e)}function G(e,t){if(e=d(e),t=E(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]*=1-t;return S(e)}function W(e,t){if(e=d(e),t=E(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return S(e)}function pe(e,t=.15){return O(e)>.5?G(e,t):W(e,t)}const N=["defaultProps","mixins","overrides","palette","props","styleOverrides"],q=["type","mode"];function ce(e){const{defaultProps:t={},mixins:n={},overrides:s={},palette:r={},props:o={},styleOverrides:u={}}=e,l=w(e,N),i=f({},l,{components:{}});Object.keys(t).forEach(a=>{const p=i.components[a]||{};p.defaultProps=t[a],i.components[a]=p}),Object.keys(o).forEach(a=>{const p=i.components[a]||{};p.defaultProps=o[a],i.components[a]=p}),Object.keys(u).forEach(a=>{const p=i.components[a]||{};p.styleOverrides=u[a],i.components[a]=p}),Object.keys(s).forEach(a=>{const p=i.components[a]||{};p.styleOverrides=s[a],i.components[a]=p}),i.spacing=F(e.spacing);const m=j(e.breakpoints||{}),c=i.spacing;i.mixins=f({gutters:(a={})=>f({paddingLeft:c(2),paddingRight:c(2)},a,{[m.up("sm")]:f({paddingLeft:c(3),paddingRight:c(3)},a[m.up("sm")])})},n);const{type:y,mode:x}=r,v=w(r,q),b=x||y||"light";return i.palette=f({text:{hint:b==="dark"?"rgba(255, 255, 255, 0.5)":"rgba(0, 0, 0, 0.38)"},mode:b,type:b},v),i}function le(e,...t){return R(V({unstable_strictMode:!0},e),...t)}let P=!1;function me(e){return P||(console.warn(["MUI: createStyles from @mui/material/styles is deprecated.","Please use @mui/styles/createStyles"].join(`
|
|
2
2
|
`)),P=!0),e}function $(e){return String(parseFloat(e)).length===String(e).length}function J(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function h(e){return parseFloat(e)}function K(e){return(t,n)=>{const s=J(t);if(s===n)return t;let r=h(t);s!=="px"&&(s==="em"||s==="rem")&&(r=h(t)*h(e));let o=r;if(n!=="px")if(n==="em")o=r/h(e);else if(n==="rem")o=r/h(e);else return t;return parseFloat(o.toFixed(5))+n}}function Q({size:e,grid:t}){const n=e-e%t,s=n+t;return e-n<s-e?n:s}function X({lineHeight:e,pixels:t,htmlFontSize:n}){return t/(e*n)}function Y({cssProperty:e,min:t,max:n,unit:s="rem",breakpoints:r=[600,900,1200],transform:o=null}){const u={[e]:`${t}${s}`},l=(n-t)/r[r.length-1];return r.forEach(i=>{let m=t+l*i;o!==null&&(m=o(m)),u[`@media (min-width:${i}px)`]={[e]:`${Math.round(m*1e4)/1e4}${s}`}}),u}function fe(e,t={}){const{breakpoints:n=["sm","md","lg"],disableAlign:s=!1,factor:r=2,variants:o=["h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","caption","button","overline"]}=t,u=f({},e);u.typography=f({},u.typography);const l=u.typography,i=K(l.htmlFontSize),m=n.map(c=>u.breakpoints.values[c]);return o.forEach(c=>{const y=l[c];if(!y)return;const x=parseFloat(i(y.fontSize,"rem"));if(x<=1)return;const v=x,b=1+(v-1)/r;let{lineHeight:a}=y;if(!$(a)&&!s)throw new Error(g(6));$(a)||(a=parseFloat(i(a,"rem"))/parseFloat(x));let p=null;s||(p=T=>Q({size:T,grid:X({pixels:4,lineHeight:a,htmlFontSize:l.htmlFontSize})})),l[c]=f({},y,Y({cssProperty:"fontSize",min:b,max:v,unit:"rem",breakpoints:m,transform:p}))}),u}function de({props:e,name:t}){return D({props:e,name:t,defaultTheme:L,themeId:M})}const Z=["theme"];function he(e){let{theme:t}=e,n=w(e,Z);const s=t[M];return C.jsx(z,f({},n,{themeId:s?M:void 0,theme:s||t}))}function ge(){throw new Error(g(14))}function ye(){throw new Error(g(15))}function xe(){throw new Error(g(16))}function be(){throw new Error(g(20))}export{we as Experimental_CssVarsProvider,Me as StyledEngineProvider,M as THEME_ID,he as ThemeProvider,ce as adaptV4Theme,ue as alpha,Oe as createMuiTheme,me as createStyles,R as createTheme,Ee as css,G as darken,d as decomposeColor,Pe as duration,$e as easing,pe as emphasize,De as experimentalStyled,Te as experimental_extendTheme,be as experimental_sx,oe as getContrastRatio,_e as getInitColorSchemeScript,O as getLuminance,Ie as getOverlayAlpha,H as hexToRgb,B as hslToRgb,ke as keyframes,W as lighten,ge as makeStyles,Fe as private_createMixins,je as private_createTypography,Re as private_excludeVariablesFromRoot,S as recomposeColor,fe as responsiveFontSizes,ie as rgbToHex,Ve as shouldSkipGeneratingVar,He as styled,le as unstable_createMuiStrictModeTheme,J as unstable_getUnit,h as unstable_toUnitless,Le as useColorScheme,Ce as useTheme,de as useThemeProps,ye as withStyles,xe as withTheme};
|
|
3
|
-
//# sourceMappingURL=index-
|
|
3
|
+
//# sourceMappingURL=index-QVjmP3xl.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{i as h,b as c}from"./lit-element-wjYUA6aF.js";import{n as u}from"./class-map-BxMzgOIb.js";import{c as l}from"./index-
|
|
1
|
+
import{i as h,b as c}from"./lit-element-wjYUA6aF.js";import{n as u}from"./class-map-BxMzgOIb.js";import{c as l}from"./index-CfVRvVRY.js";import{d as m}from"./index-CA7TO4ls.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="cabab631-742a-4d92-b7f6-1c5ddc85b2b6",e._sentryDebugIdIdentifier="sentry-dbid-cabab631-742a-4d92-b7f6-1c5ddc85b2b6")}catch{}})();const b=m`
|
|
2
2
|
:host {
|
|
3
3
|
display: block;
|
|
4
4
|
background: linear-gradient(
|
|
@@ -28,4 +28,4 @@ import{i as h,b as c}from"./lit-element-wjYUA6aF.js";import{n as u}from"./class-
|
|
|
28
28
|
width: ${this.width};
|
|
29
29
|
height: ${this.height};
|
|
30
30
|
`,this.dataset.rounded=this.rounded?"true":"false",c`<slot></slot>`}};o.styles=[b];d([u()],o.prototype,"width",void 0);d([u()],o.prototype,"height",void 0);d([u()],o.prototype,"variant",void 0);d([u({type:Boolean})],o.prototype,"rounded",void 0);o=d([l("wui-shimmer")],o);
|
|
31
|
-
//# sourceMappingURL=index-
|
|
31
|
+
//# sourceMappingURL=index-SJBE5eFc.js.map
|