@dcl/blog-site 0.2.2 → 0.2.3-23948667956.commit-cfe47f9
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/QueryClientProvider-mZKMZTwe.js +2 -0
- package/assets/RoobertPRO-Bold-DDyOqNrI.woff2 +0 -0
- package/assets/SignInRedirect-CXUOqOjy.js +11 -0
- package/assets/X-3yocgepi.js +15 -0
- package/assets/___vite-browser-external_commonjs-proxy-BqV5D26a.js +1 -0
- package/assets/__federation_expose_App-CMGDAIUH.js +1 -0
- package/assets/__federation_fn_import-C51lglKS.js +1 -0
- package/assets/__federation_shared_@dcl/hooks-Dm9PRmKy.js +535 -0
- package/assets/__federation_shared_@dcl/schemas-CVwtHlVJ.js +1 -0
- package/assets/__federation_shared_@emotion/react-AmEOkpjC.js +1 -0
- package/assets/__federation_shared_@emotion/styled-aZ9bk9Xh.js +1 -0
- package/assets/__federation_shared_@reduxjs/toolkit-DIZvwqf7.js +1 -0
- package/assets/__federation_shared_decentraland-ui2-KxrbFOTA.js +358 -0
- package/assets/__federation_shared_react-B3tlNTLg.js +1 -0
- package/assets/__federation_shared_react-dom-CCS4dT_K.js +1 -0
- package/assets/__federation_shared_react-redux-Ckcz2edF.js +13 -0
- package/assets/__federation_shared_react-router-dom-jUWpDOjR.js +49 -0
- package/assets/__federation_shared_viem-Cdp7wK0V.js +2 -0
- package/assets/__federation_shared_wagmi-CHWRoybR.js +17 -0
- package/assets/__vite-optional-peer-dep_lottie-react_decentraland-ui2-BIHI7g3E.js +1 -0
- package/assets/_commonjsHelpers-C4iS2aBk.js +1 -0
- package/assets/{add-Dnkf3E3Q.js → add-DHMb_tRw.js} +2 -2
- package/assets/all-wallets-Bo3QRxXL.js +6 -0
- package/assets/{app-store-C9FH4_zP.js → app-store-BHwDXU8D.js} +2 -2
- package/assets/{apple-Dm5w1W69.js → apple-BFX-plRw.js} +2 -2
- package/assets/arrow-bottom-Djx9NXV2.js +8 -0
- package/assets/{arrow-bottom-circle-Bgw9yiHN.js → arrow-bottom-circle-DcJnW2eo.js} +2 -2
- package/assets/arrow-left-BS_dJGSP.js +8 -0
- package/assets/arrow-right-B-mwy0Iu.js +8 -0
- package/assets/arrow-top-Di1bbZG1.js +8 -0
- package/assets/auto-track-pkMvCaah.js +1 -0
- package/assets/{bank-qNUWniDB.js → bank-B9SMq-ix.js} +2 -2
- package/assets/{basic-DJvhbg9L.js → basic-DijYF-IW.js} +124 -124
- package/assets/biconomy-CCw3vtwR.js +1 -0
- package/assets/{browser-Du0KKb8R.js → browser-CdKdszu-.js} +2 -2
- package/assets/{card-BpDAuOwe.js → card-CQu4Eu8c.js} +2 -2
- package/assets/ccip-AgQ5AD9v.js +1 -0
- package/assets/chains-D88UzVoE.js +1 -0
- package/assets/{checkmark-srdyV91l.js → checkmark-D2vezo75.js} +2 -2
- package/assets/{checkmark-bold-BYtPga6u.js → checkmark-bold-DriAapzP.js} +2 -2
- package/assets/chevron-bottom-CcFEOVdH.js +8 -0
- package/assets/chevron-left-BXS-ybhL.js +8 -0
- package/assets/chevron-right-TvO5COya.js +8 -0
- package/assets/chevron-top-D84SgxMg.js +8 -0
- package/assets/{chrome-store-D-UYtj15.js → chrome-store-rpsfVQln.js} +2 -2
- package/assets/{clock-BGyfn2Ix.js → clock-BMJ2gt7b.js} +2 -2
- package/assets/close-kAWkeKAP.js +8 -0
- package/assets/{coinPlaceholder-o1yCmFLN.js → coinPlaceholder-Dz8MKewa.js} +2 -2
- package/assets/common-D37S_OFt.js +1 -0
- package/assets/{compass-BrX88OdU.js → compass-BednEqu-.js} +2 -2
- package/assets/controller-D0Gc4Hsp.js +2 -0
- package/assets/{copy-CGKLgPMf.js → copy-D7rBk-hZ.js} +2 -2
- package/assets/core-Bn8Mr-tS.js +907 -0
- package/assets/create-submenu-Bu20F8-Z.webp +0 -0
- package/assets/createBundlerClient-DhRCLsYO.js +4 -0
- package/assets/createClient-C9QPJaZu.js +1 -0
- package/assets/cursor-C8UG2IDe.js +3 -0
- package/assets/{cursor-transparent--gaS-5ET.js → cursor-transparent-CyP0H3C5.js} +2 -2
- package/assets/decimals-B7Pm5rZk.js +1 -0
- package/assets/decimals-DedKFk8m.js +1 -0
- package/assets/defineChain-7I0Ce1VT.js +1 -0
- package/assets/{desktop-D3dzP-FX.js → desktop-LBcRpcZE.js} +2 -2
- package/assets/detectExtension-C2uVeK-n.js +1 -0
- package/assets/{disconnect-CsHX0nla.js → disconnect-DEBEe-yK.js} +2 -2
- package/assets/{discord-TnXCJHRv.js → discord-BlVFKMf0.js} +2 -2
- package/assets/emotion-react.browser.esm-BzYQLDSp.js +8 -0
- package/assets/emotion-use-insertion-effect-with-fallbacks.browser.esm-TsHx33zg.js +1 -0
- package/assets/encode-DvvW4ZKt.js +2 -0
- package/assets/engine-CD7SeAap.js +1 -0
- package/assets/estimate-gas-CeHGaIbG.js +3 -0
- package/assets/estimate-l1-fee-ClMO5l7U.js +1 -0
- package/assets/eth_estimateGas-C2ENZ_HR.js +1 -0
- package/assets/eth_getStorageAt-BHgF2qz5.js +1 -0
- package/assets/eth_getTransactionCount-DWnnw2mX.js +1 -0
- package/assets/ethereum-dN7ENYl_.js +1 -0
- package/assets/{etherscan-BNOTAlpJ.js → etherscan-C_pqcV9R.js} +2 -2
- package/assets/events-B5inrCVE.js +1 -0
- package/assets/{exclamation-triangle-3cTnBFEz.js → exclamation-triangle-R9Xq3IaG.js} +2 -2
- package/assets/explore-submenu-BFVuYMi9.webp +0 -0
- package/assets/{extension-C7i3kBcJ.js → extension-DkA_7Cbg.js} +2 -2
- package/assets/external-link-BPOw_fuW.js +8 -0
- package/assets/extractIPFS-B4LGER25.js +1 -0
- package/assets/{facebook-BtRXxuTh.js → facebook-CMZk_t1A.js} +2 -2
- package/assets/{farcaster-DuvCkOsj.js → farcaster-CveILPqa.js} +2 -2
- package/assets/fee-data-BKBGP5kG.js +1 -0
- package/assets/fetchTokenMetadata-BLDHgO8L.js +2 -0
- package/assets/{filters-q4uY0GXA.js → filters-BspTrZpX.js} +2 -2
- package/assets/get-ecosystem-wallet-info-D3PrM5FE.js +1 -0
- package/assets/getBalance-D7nzATjL.js +2 -0
- package/assets/getInstalledModules-Ck_Gj8FO.js +1 -0
- package/assets/getNFT-BcCS23O_.js +1 -0
- package/assets/getNFT-DXdMP0Q5.js +2 -0
- package/assets/{github-DdvkoPeB.js → github-DoFHEMIF.js} +2 -2
- package/assets/{google-d4Ql9qix.js → google-NTQi9GVe.js} +2 -2
- package/assets/governance-submenu-VTIKvCIL.webp +0 -0
- package/assets/{help-circle-BY_Weu8t.js → help-circle-DV0uNPdn.js} +2 -2
- package/assets/hex-B0Rx0hII.js +2 -0
- package/assets/{id-BJNb6vOI.js → id-UAVc1FOO.js} +1 -1
- package/assets/{image-DIsXNsXJ.js → image-BeHBzCPG.js} +2 -2
- package/assets/in-app-wallet-calls-CvFtsXP9.js +1 -0
- package/assets/index-B2OCb4Ez.js +1 -0
- package/assets/index-B65z14KI.js +4 -0
- package/assets/index-BAhlRyDG.js +1 -0
- package/assets/{index-DOqN8xaU.js → index-BTtTX-5z.js} +1 -1
- package/assets/index-BjzJcZq6.js +1 -0
- package/assets/index-BjzJcZq6__bundled.js +24 -0
- package/assets/index-BozJS3za.js +12 -0
- package/assets/index-C05H8NDX.js +1 -0
- package/assets/index-C1IoT2if.js +3 -0
- package/assets/index-C2hdqzGT.js +2 -0
- package/assets/index-CgMDPZul.js +13 -0
- package/assets/index-CjuQOkbh.js +2 -0
- package/assets/index-CpR9p5nk.js +1 -0
- package/assets/index-D1lXZVQu.js +45 -0
- package/assets/index-D6ZAha0r.js +395 -0
- package/assets/{index-X-a697cI.js → index-DJ7GgcJ9.js} +2 -2
- package/assets/index-DajuSfcu.js +2 -0
- package/assets/index-DeklogZX.js +1 -0
- package/assets/index-DmAaXUNv.js +1 -0
- package/assets/index-Dy0yjznp.js +1 -0
- package/assets/index-Dy0yjznp__bundled.js +9 -0
- package/assets/index-HvoTJwGm.js +1 -0
- package/assets/index-MYKNZAUu.js +8 -0
- package/assets/index-Tsk25L8E.js +1 -0
- package/assets/index.es-C8Kfv-K1.js +11 -0
- package/assets/index.es-CAXGMBEH.js +1 -0
- package/assets/index.es-D3pP9hN4.js +27 -0
- package/assets/index.es-D5YKsq2-.js +2 -0
- package/assets/index.umd-DK712HHb.js +1 -0
- package/assets/{info-BvPgRaaJ.js → info-CzcA85TO.js} +2 -2
- package/assets/{info-circle-sWcom9RD.js → info-circle-D3Mr3R9u.js} +2 -2
- package/assets/is-plan-event-enabled-DeNtQvA5.js +1 -0
- package/assets/json-BHzNJmTy.js +1 -0
- package/assets/jsx-runtime-DncYoG30.js +1 -0
- package/assets/jsx-runtime-DncYoG30__bundled.js +9 -0
- package/assets/learn-submenu-sfxVP5Db.webp +0 -0
- package/assets/{lightbulb-HJchniSu.js → lightbulb-B2FZtM_8.js} +2 -2
- package/assets/localBatchGatewayRequest-BIEAG3VG.js +1 -0
- package/assets/{mail-DlRijJmV.js → mail-CkhGbows.js} +2 -2
- package/assets/marketplace-submenu-CixWTv8_.webp +0 -0
- package/assets/{mobile-CoiDw6cg.js → mobile-1H3FtqAS.js} +2 -2
- package/assets/{more-LUiRL6x4.js → more-CZiQi624.js} +2 -2
- package/assets/{network-placeholder-Cj3jgVfo.js → network-placeholder-DA2bm2rC.js} +2 -2
- package/assets/{nftPlaceholder-LkhQmGFs.js → nftPlaceholder-C9t5Ydxp.js} +2 -2
- package/assets/off-D8z0OQ3M.js +8 -0
- package/assets/op-gas-fee-reducer-CfxMcvXl.js +1 -0
- package/assets/openzeppelin-ZKz6sLW9.js +1 -0
- package/assets/ownerOf-D1aXOt9Q.js +1 -0
- package/assets/parseNft-LjEwmOst.js +2 -0
- package/assets/passkeys-CTJ4NPfL.js +1 -0
- package/assets/{play-store-DBit2AoS.js → play-store-_X5LrPwx.js} +2 -2
- package/assets/{plus-CZe-WgSN.js → plus-JriDhMxt.js} +2 -2
- package/assets/preload-helper-BorDCKdG.js +1 -0
- package/assets/publicKeyToAddress-CxEKPAKT.js +1 -0
- package/assets/{qr-code-BhW7ZXY-.js → qr-code-DaB080BF.js} +2 -2
- package/assets/{qr-overlay-DsRPQv6v.js → qr-overlay-CGnFhcTk.js} +1 -1
- package/assets/{recycle-horizontal-DBnWoDRV.js → recycle-horizontal-CGeFmMrT.js} +2 -2
- package/assets/redux-BNDF-Lt-.js +1 -0
- package/assets/{refresh-qvocxvcf.js → refresh-Dgvxxw5C.js} +2 -2
- package/assets/remoteEntry.js +1 -0
- package/assets/{reown-logo-C-45v-AJ.js → reown-logo-CBX48aN9.js} +2 -2
- package/assets/resolveImplementation-Cb2bL1tx.js +1 -0
- package/assets/rich-text-react-renderer.es5-D_tE7AHo.js +2 -0
- package/assets/rpc-ti0b0r_u.js +3 -0
- package/assets/search-DamXBOxM.js +8 -0
- package/assets/secp256k1-UEF-yOzn.js +1 -0
- package/assets/{send-DI2x4DfJ.js → send-BLpUSx_G.js} +2 -2
- package/assets/send-batch-transaction-DnH876GL.js +1 -0
- package/assets/send-eip712-transaction-D_FU-Avh.js +2 -0
- package/assets/send-gasless-transaction-MP1Q_mLW.js +2 -0
- package/assets/serializeTransaction-mtsVBaO6.js +1 -0
- package/assets/session-proposal-CM3P7DaL.js +1 -0
- package/assets/session-request-Dqw67u3p.js +2 -0
- package/assets/sha256-DYtpy1Qz.js +1 -0
- package/assets/signing-BFeVjjPi.js +5 -0
- package/assets/store-DOLZnwHk.js +1 -0
- package/assets/{swapHorizontal-eTjjU7d8.js → swapHorizontal-Br-MZ1tO.js} +2 -2
- package/assets/{swapHorizontalBold-B86nJTAP.js → swapHorizontalBold-CkUNbZ1G.js} +2 -2
- package/assets/{swapHorizontalMedium-CNT7ELrN.js → swapHorizontalMedium-D3qEQNb5.js} +2 -2
- package/assets/{swapHorizontalRoundedBold-R_inXmIh.js → swapHorizontalRoundedBold-CzzBPCtt.js} +2 -2
- package/assets/{swapVertical-DBChOUj8.js → swapVertical-Mrn3zm_W.js} +2 -2
- package/assets/{telegram-DjYbgHgS.js → telegram-ZTLC9FiA.js} +2 -2
- package/assets/thirdweb-CHfVLLbM.js +1 -0
- package/assets/thirdweb-D5ezTmuN.js +27 -0
- package/assets/{three-dots-VoULPGrI.js → three-dots-DYl4uQjm.js} +2 -2
- package/assets/totalSupply-B5jHW8gx.js +1 -0
- package/assets/tslib.es6-DbvBTznf.js +1 -0
- package/assets/{twitch-ETBgqGHE.js → twitch-DPLkA98Q.js} +2 -2
- package/assets/{twitterIcon-N584dzfh.js → twitterIcon-BEY_UAyG.js} +2 -2
- package/assets/uid-D00jCazq.js +44 -0
- package/assets/{uint8-array-CjVHUazS.js → uint8-array-DZKEMhA1.js} +1 -1
- package/assets/utils-C7urdXtO.js +2 -0
- package/assets/utils-CozXUO91.js +1 -0
- package/assets/{verify-Dp4bztGk.js → verify-DuPdiufm.js} +2 -2
- package/assets/{verify-filled-B7WhO3Kn.js → verify-filled-CdqEW5AP.js} +2 -2
- package/assets/{w3m-modal-BmEHfmEu.js → w3m-modal-BLzhBUlF.js} +34 -34
- package/assets/wait-for-tx-receipt-B-o5aPQ8.js +1 -0
- package/assets/{wallet-tXSvlbUa.js → wallet-CZw1g3L8.js} +2 -2
- package/assets/{wallet-placeholder-B2e9Wl_u.js → wallet-placeholder-OAkoJuru.js} +2 -2
- package/assets/{walletconnect-D70wSjLs.js → walletconnect-BJ3w7-IU.js} +4 -4
- package/assets/wallets-Q5RcRyG6.js +16 -0
- package/assets/{warning-circle-CsTkZ4Rl.js → warning-circle-DpDeOZKv.js} +2 -2
- package/assets/web-connector-CB7tpRui.js +9 -0
- package/assets/webSocket-dQW3n9NM.js +3 -0
- package/assets/withCache-DYumIHzL.js +1 -0
- package/assets/{x-DwOCQuex.js → x-liJqLZUi.js} +2 -2
- package/assets/zora-sepolia-DNJ2DQat.js +1 -0
- package/index.html +17 -3
- package/package.json +3 -3
- package/assets/RoobertPRO-Bold-BLoSpx-h.otf +0 -0
- package/assets/all-wallets-C5N9p7Oh.js +0 -6
- package/assets/arrow-bottom-CXaxVEeb.js +0 -8
- package/assets/arrow-left-pgI3hg3C.js +0 -8
- package/assets/arrow-right-CyKp2yFa.js +0 -8
- package/assets/arrow-top-B2waxVPx.js +0 -8
- package/assets/auto-track-BvFI9h3i.js +0 -1
- package/assets/biconomy-DZsFbmF0.js +0 -1
- package/assets/ccip-CpLmER95.js +0 -1
- package/assets/chains-BJ1WS73W.js +0 -1
- package/assets/chevron-bottom-C2aa3E9i.js +0 -8
- package/assets/chevron-left-jGoftk_A.js +0 -8
- package/assets/chevron-right-Dt6SfcNy.js +0 -8
- package/assets/chevron-top-CBCgyIVe.js +0 -8
- package/assets/close-BQpWkcd5.js +0 -8
- package/assets/common-B5-2TPMC.js +0 -1
- package/assets/controller-BW9fJMCh.js +0 -2
- package/assets/core-f4taWsy5.js +0 -908
- package/assets/create-submenu-DEFVbrc5.png +0 -0
- package/assets/createBundlerClient-r1Kofl9Y.js +0 -8
- package/assets/cursor-l_ly71I2.js +0 -3
- package/assets/decimals-BB5yEnWu.js +0 -1
- package/assets/decimals-D7yTLBH-.js +0 -1
- package/assets/detectExtension-BOyq5ueD.js +0 -1
- package/assets/engine-COatTZhI.js +0 -1
- package/assets/estimate-l1-fee-gm3XrWSf.js +0 -1
- package/assets/eth_estimateGas-A6ba-Fl3.js +0 -1
- package/assets/eth_getStorageAt-DiqyV3Wq.js +0 -1
- package/assets/eth_getTransactionCount-CF50onAO.js +0 -1
- package/assets/ethereum-Bb-GI0c-.js +0 -1
- package/assets/events-CjOrSHaz.js +0 -1
- package/assets/explore-submenu-KVl6Dc-h.png +0 -0
- package/assets/external-link-C6RRSRES.js +0 -8
- package/assets/extractIPFS-BchHnCEN.js +0 -1
- package/assets/fetchTokenMetadata-ClRC5ORW.js +0 -2
- package/assets/get-ecosystem-wallet-info-C2CJ_2OU.js +0 -1
- package/assets/getBalance-DGuxWuYL.js +0 -1
- package/assets/getInstalledModules-A3tAP18V.js +0 -1
- package/assets/getNFT-C7cllYFm.js +0 -1
- package/assets/getNFT-CQKD7QHk.js +0 -2
- package/assets/governance-submenu-CXxLX9nT.png +0 -0
- package/assets/hashTypedData-7WNMs5EV.js +0 -1
- package/assets/in-app-wallet-calls-CIRR0eJZ.js +0 -1
- package/assets/index-B1P0UjN9.js +0 -1
- package/assets/index-BNdVKnva.js +0 -2
- package/assets/index-BtvcwkC4.js +0 -1
- package/assets/index-C3CMrfih.js +0 -1
- package/assets/index-C8ynIJrk.js +0 -395
- package/assets/index-Ca6sys5l.js +0 -3
- package/assets/index-CvqvWWYJ.js +0 -2
- package/assets/index-CxA55UWl.js +0 -1
- package/assets/index-D-W42D03.js +0 -12
- package/assets/index-DC9TKWAz.js +0 -23
- package/assets/index-DFfsl0Io.js +0 -4
- package/assets/index-DN2JqH-l.js +0 -895
- package/assets/index-DfqIHbWG.js +0 -2
- package/assets/index-pQ6ZXw4u.js +0 -13
- package/assets/index-qMD90g0X.js +0 -1
- package/assets/index.es-B2O4h03u.js +0 -12
- package/assets/index.es-BEAksKXY.js +0 -2
- package/assets/index.es-Dxxm_SKC.js +0 -1
- package/assets/index.es-MXG0VeeZ.js +0 -27
- package/assets/index.umd-DvfMpbcY.js +0 -1
- package/assets/is-plan-event-enabled-DS1Agtkw.js +0 -1
- package/assets/learn-submenu-Xs1jOwfy.png +0 -0
- package/assets/localBatchGatewayRequest-CHeIulW5.js +0 -1
- package/assets/marketplace-submenu-CjxTqNhj.png +0 -0
- package/assets/off-BCDn43Xl.js +0 -8
- package/assets/openzeppelin-_xpy9vRo.js +0 -1
- package/assets/ownerOf-ClSM4brX.js +0 -1
- package/assets/parseNft-BmEusGKu.js +0 -2
- package/assets/passkeys-CqFedyqV.js +0 -1
- package/assets/resolveImplementation-BssH7H5b.js +0 -1
- package/assets/rpc-DMtarHL0.js +0 -3
- package/assets/search-CAzZVrZw.js +0 -8
- package/assets/secp256k1-C_4ya0Qz.js +0 -1
- package/assets/secp256k1-CnKxz2gu.js +0 -1
- package/assets/secp256k1-oGq0B4P7.js +0 -1
- package/assets/send-batch-transaction-DfUNUZ4Z.js +0 -1
- package/assets/send-eip712-transaction-Ro5QmOlW.js +0 -2
- package/assets/send-gasless-transaction-B-Uu5KdW.js +0 -2
- package/assets/session-proposal-CRjqbz7W.js +0 -1
- package/assets/session-request-BI3BlMfs.js +0 -2
- package/assets/sha256-ChRob2fv.js +0 -1
- package/assets/signing-B1K_Jdsm.js +0 -30
- package/assets/thirdweb-0Fl_ECmE.js +0 -27
- package/assets/thirdweb-DZ2vK6IO.js +0 -1
- package/assets/totalSupply-ClM38QOc.js +0 -1
- package/assets/utils-B3vUvlNq.js +0 -1
- package/assets/wait-for-tx-receipt-pc2BJc62.js +0 -1
- package/assets/wallets-Dj6CY1yi.js +0 -17
- package/assets/web-connector-CiZO9RvI.js +0 -9
- package/assets/zora-sepolia-CZ4Tf1UH.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{i as v,e as L,r as R,
|
|
1
|
+
import{i as v,e as L,r as R,c as h,d as l,k as y,n as m,O as U,q as w,E as N,R as W,z as xe,g as E,B as g,D as Ge,t as At,W as Ke,C as nt,h as vt,T as ot,m as je,M as Ot,F as St,w as ve,x as xt,f as Ut}from"./core-Bn8Mr-tS.js";import{n as c,c as p,o as d,r as u,U as Y,e as Nt,f as qt,a as Mt}from"./index-D6ZAha0r.js";import{a as Vt}from"./browser-DZBysBvj.js";const Gt=v`
|
|
2
2
|
:host {
|
|
3
3
|
position: relative;
|
|
4
4
|
background-color: var(--wui-color-gray-glass-002);
|
|
@@ -140,7 +140,7 @@ import{i as v,e as L,r as R,a as h,b as l,C as y,A as m,O as U,c as w,E as N,R a
|
|
|
140
140
|
<wui-wallet-image
|
|
141
141
|
size="inherit"
|
|
142
142
|
imageSrc=${i}
|
|
143
|
-
name=${
|
|
143
|
+
name=${d(n)}
|
|
144
144
|
></wui-wallet-image>
|
|
145
145
|
`)}
|
|
146
146
|
${e?[...Array(et-this.walletImages.length)].map(()=>l` <wui-wallet-image size="inherit" name=""></wui-wallet-image>`):null}
|
|
@@ -181,8 +181,8 @@ import{i as v,e as L,r as R,a as h,b as l,C as y,A as m,O as U,c as w,E as N,R a
|
|
|
181
181
|
wui-icon {
|
|
182
182
|
color: var(--wui-color-fg-200) !important;
|
|
183
183
|
}
|
|
184
|
-
`;var z=function(a,e,i,n){var o=arguments.length,t=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,i):n,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(a,e,i,n);else for(var s=a.length-1;s>=0;s--)(r=a[s])&&(t=(o<3?r(t):o>3?r(e,i,t):r(e,i))||t);return o>3&&t&&Object.defineProperty(e,i,t),t};let
|
|
185
|
-
<button ?disabled=${this.disabled} tabindex=${
|
|
184
|
+
`;var z=function(a,e,i,n){var o=arguments.length,t=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,i):n,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(a,e,i,n);else for(var s=a.length-1;s>=0;s--)(r=a[s])&&(t=(o<3?r(t):o>3?r(e,i,t):r(e,i))||t);return o>3&&t&&Object.defineProperty(e,i,t),t};let I=class extends h{constructor(){super(...arguments),this.walletImages=[],this.imageSrc="",this.name="",this.tabIdx=void 0,this.installed=!1,this.disabled=!1,this.showAllWallets=!1,this.loading=!1,this.loadingSpinnerColor="accent-100"}render(){return l`
|
|
185
|
+
<button ?disabled=${this.disabled} tabindex=${d(this.tabIdx)}>
|
|
186
186
|
${this.templateAllWallets()} ${this.templateWalletImage()}
|
|
187
187
|
<wui-text variant="paragraph-500" color="inherit">${this.name}</wui-text>
|
|
188
188
|
${this.templateStatus()}
|
|
@@ -195,7 +195,7 @@ import{i as v,e as L,r as R,a as h,b as l,C as y,A as m,O as U,c as w,E as N,R a
|
|
|
195
195
|
></wui-wallet-image>`:!this.showAllWallets&&!this.imageSrc?l`<wui-wallet-image size="sm" name=${this.name}></wui-wallet-image>`:null}templateStatus(){return this.loading?l`<wui-loading-spinner
|
|
196
196
|
size="lg"
|
|
197
197
|
color=${this.loadingSpinnerColor}
|
|
198
|
-
></wui-loading-spinner>`:this.tagLabel&&this.tagVariant?l`<wui-tag variant=${this.tagVariant}>${this.tagLabel}</wui-tag>`:this.icon?l`<wui-icon color="inherit" size="sm" name=${this.icon}></wui-icon>`:null}};
|
|
198
|
+
></wui-loading-spinner>`:this.tagLabel&&this.tagVariant?l`<wui-tag variant=${this.tagVariant}>${this.tagLabel}</wui-tag>`:this.icon?l`<wui-icon color="inherit" size="sm" name=${this.icon}></wui-icon>`:null}};I.styles=[R,L,Ht];z([c({type:Array})],I.prototype,"walletImages",void 0);z([c()],I.prototype,"imageSrc",void 0);z([c()],I.prototype,"name",void 0);z([c()],I.prototype,"tagLabel",void 0);z([c()],I.prototype,"tagVariant",void 0);z([c()],I.prototype,"icon",void 0);z([c()],I.prototype,"walletIcon",void 0);z([c()],I.prototype,"tabIdx",void 0);z([c({type:Boolean})],I.prototype,"installed",void 0);z([c({type:Boolean})],I.prototype,"disabled",void 0);z([c({type:Boolean})],I.prototype,"showAllWallets",void 0);z([c({type:Boolean})],I.prototype,"loading",void 0);z([c({type:String})],I.prototype,"loadingSpinnerColor",void 0);I=z([p("wui-list-wallet")],I);var fe=function(a,e,i,n){var o=arguments.length,t=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,i):n,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(a,e,i,n);else for(var s=a.length-1;s>=0;s--)(r=a[s])&&(t=(o<3?r(t):o>3?r(e,i,t):r(e,i))||t);return o>3&&t&&Object.defineProperty(e,i,t),t};let oe=class extends h{constructor(){super(),this.unsubscribe=[],this.tabIdx=void 0,this.connectors=y.state.connectors,this.count=m.state.count,this.filteredCount=m.state.filteredWallets.length,this.isFetchingRecommendedWallets=m.state.isFetchingRecommendedWallets,this.unsubscribe.push(y.subscribeKey("connectors",e=>this.connectors=e),m.subscribeKey("count",e=>this.count=e),m.subscribeKey("filteredWallets",e=>this.filteredCount=e.length),m.subscribeKey("isFetchingRecommendedWallets",e=>this.isFetchingRecommendedWallets=e))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){const e=this.connectors.find(f=>f.id==="walletConnect"),{allWallets:i}=U.state;if(!e||i==="HIDE"||i==="ONLY_MOBILE"&&!w.isMobile())return null;const n=m.state.featured.length,o=this.count+n,t=o<10?o:Math.floor(o/10)*10,r=this.filteredCount>0?this.filteredCount:t;let s=`${r}`;return this.filteredCount>0?s=`${this.filteredCount}`:r<o&&(s=`${r}+`),l`
|
|
199
199
|
<wui-list-wallet
|
|
200
200
|
name="All Wallets"
|
|
201
201
|
walletIcon="allWallets"
|
|
@@ -204,61 +204,61 @@ import{i as v,e as L,r as R,a as h,b as l,C as y,A as m,O as U,c as w,E as N,R a
|
|
|
204
204
|
tagLabel=${s}
|
|
205
205
|
tagVariant="shade"
|
|
206
206
|
data-testid="all-wallets"
|
|
207
|
-
tabIdx=${
|
|
207
|
+
tabIdx=${d(this.tabIdx)}
|
|
208
208
|
.loading=${this.isFetchingRecommendedWallets}
|
|
209
209
|
loadingSpinnerColor=${this.isFetchingRecommendedWallets?"fg-300":"accent-100"}
|
|
210
210
|
></wui-list-wallet>
|
|
211
|
-
`}onAllWallets(){N.sendEvent({type:"track",event:"CLICK_ALL_WALLETS"}),W.push("AllWallets")}};fe([c()],oe.prototype,"tabIdx",void 0);fe([
|
|
211
|
+
`}onAllWallets(){N.sendEvent({type:"track",event:"CLICK_ALL_WALLETS"}),W.push("AllWallets")}};fe([c()],oe.prototype,"tabIdx",void 0);fe([u()],oe.prototype,"connectors",void 0);fe([u()],oe.prototype,"count",void 0);fe([u()],oe.prototype,"filteredCount",void 0);fe([u()],oe.prototype,"isFetchingRecommendedWallets",void 0);oe=fe([p("w3m-all-wallets-widget")],oe);var ut=function(a,e,i,n){var o=arguments.length,t=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,i):n,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(a,e,i,n);else for(var s=a.length-1;s>=0;s--)(r=a[s])&&(t=(o<3?r(t):o>3?r(e,i,t):r(e,i))||t);return o>3&&t&&Object.defineProperty(e,i,t),t};let Ee=class extends h{constructor(){super(),this.unsubscribe=[],this.tabIdx=void 0,this.connectors=y.state.connectors,this.unsubscribe.push(y.subscribeKey("connectors",e=>this.connectors=e))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){const e=this.connectors.filter(i=>i.type==="ANNOUNCED");return e?.length?l`
|
|
212
212
|
<wui-flex flexDirection="column" gap="xs">
|
|
213
213
|
${e.filter(xe.showConnector).map(i=>l`
|
|
214
214
|
<wui-list-wallet
|
|
215
|
-
imageSrc=${
|
|
215
|
+
imageSrc=${d(E.getConnectorImage(i))}
|
|
216
216
|
name=${i.name??"Unknown"}
|
|
217
217
|
@click=${()=>this.onConnector(i)}
|
|
218
218
|
tagVariant="success"
|
|
219
219
|
tagLabel="installed"
|
|
220
220
|
data-testid=${`wallet-selector-${i.id}`}
|
|
221
221
|
.installed=${!0}
|
|
222
|
-
tabIdx=${
|
|
222
|
+
tabIdx=${d(this.tabIdx)}
|
|
223
223
|
>
|
|
224
224
|
</wui-list-wallet>
|
|
225
225
|
`)}
|
|
226
226
|
</wui-flex>
|
|
227
|
-
`:(this.style.cssText="display: none",null)}onConnector(e){e.id==="walletConnect"?w.isMobile()?W.push("AllWallets"):W.push("ConnectingWalletConnect"):W.push("ConnectingExternal",{connector:e})}};
|
|
227
|
+
`:(this.style.cssText="display: none",null)}onConnector(e){e.id==="walletConnect"?w.isMobile()?W.push("AllWallets"):W.push("ConnectingWalletConnect"):W.push("ConnectingExternal",{connector:e})}};ut([c()],Ee.prototype,"tabIdx",void 0);ut([u()],Ee.prototype,"connectors",void 0);Ee=ut([p("w3m-connect-announced-widget")],Ee);var He=function(a,e,i,n){var o=arguments.length,t=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,i):n,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(a,e,i,n);else for(var s=a.length-1;s>=0;s--)(r=a[s])&&(t=(o<3?r(t):o>3?r(e,i,t):r(e,i))||t);return o>3&&t&&Object.defineProperty(e,i,t),t};let ye=class extends h{constructor(){super(),this.unsubscribe=[],this.tabIdx=void 0,this.connectors=y.state.connectors,this.loading=!1,this.unsubscribe.push(y.subscribeKey("connectors",e=>this.connectors=e)),w.isTelegram()&&w.isIos()&&(this.loading=!g.state.wcUri,this.unsubscribe.push(g.subscribeKey("wcUri",e=>this.loading=!e)))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){const{customWallets:e}=U.state;if(!e?.length)return this.style.cssText="display: none",null;const i=this.filterOutDuplicateWallets(e);return l`<wui-flex flexDirection="column" gap="xs">
|
|
228
228
|
${i.map(n=>l`
|
|
229
229
|
<wui-list-wallet
|
|
230
|
-
imageSrc=${
|
|
230
|
+
imageSrc=${d(E.getWalletImage(n))}
|
|
231
231
|
name=${n.name??"Unknown"}
|
|
232
232
|
@click=${()=>this.onConnectWallet(n)}
|
|
233
233
|
data-testid=${`wallet-selector-${n.id}`}
|
|
234
|
-
tabIdx=${
|
|
234
|
+
tabIdx=${d(this.tabIdx)}
|
|
235
235
|
?loading=${this.loading}
|
|
236
236
|
>
|
|
237
237
|
</wui-list-wallet>
|
|
238
238
|
`)}
|
|
239
|
-
</wui-flex>`}filterOutDuplicateWallets(e){const i=Ge.getRecentWallets(),n=this.connectors.map(s=>
|
|
239
|
+
</wui-flex>`}filterOutDuplicateWallets(e){const i=Ge.getRecentWallets(),n=this.connectors.map(s=>s.info?.rdns).filter(Boolean),o=i.map(s=>s.rdns).filter(Boolean),t=n.concat(o);if(t.includes("io.metamask.mobile")&&w.isMobile()){const s=t.indexOf("io.metamask.mobile");t[s]="io.metamask"}return e.filter(s=>!t.includes(String(s?.rdns)))}onConnectWallet(e){this.loading||W.push("ConnectingWalletConnect",{wallet:e})}};He([c()],ye.prototype,"tabIdx",void 0);He([u()],ye.prototype,"connectors",void 0);He([u()],ye.prototype,"loading",void 0);ye=He([p("w3m-connect-custom-widget")],ye);var dt=function(a,e,i,n){var o=arguments.length,t=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,i):n,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(a,e,i,n);else for(var s=a.length-1;s>=0;s--)(r=a[s])&&(t=(o<3?r(t):o>3?r(e,i,t):r(e,i))||t);return o>3&&t&&Object.defineProperty(e,i,t),t};let ke=class extends h{constructor(){super(),this.unsubscribe=[],this.tabIdx=void 0,this.connectors=y.state.connectors,this.unsubscribe.push(y.subscribeKey("connectors",e=>this.connectors=e))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){const n=this.connectors.filter(o=>o.type==="EXTERNAL").filter(xe.showConnector).filter(o=>o.id!==At.CONNECTOR_ID.COINBASE_SDK);return n?.length?l`
|
|
240
240
|
<wui-flex flexDirection="column" gap="xs">
|
|
241
241
|
${n.map(o=>l`
|
|
242
242
|
<wui-list-wallet
|
|
243
|
-
imageSrc=${
|
|
243
|
+
imageSrc=${d(E.getConnectorImage(o))}
|
|
244
244
|
.installed=${!0}
|
|
245
245
|
name=${o.name??"Unknown"}
|
|
246
246
|
data-testid=${`wallet-selector-external-${o.id}`}
|
|
247
247
|
@click=${()=>this.onConnector(o)}
|
|
248
|
-
tabIdx=${
|
|
248
|
+
tabIdx=${d(this.tabIdx)}
|
|
249
249
|
>
|
|
250
250
|
</wui-list-wallet>
|
|
251
251
|
`)}
|
|
252
252
|
</wui-flex>
|
|
253
|
-
`:(this.style.cssText="display: none",null)}onConnector(e){W.push("ConnectingExternal",{connector:e})}};
|
|
253
|
+
`:(this.style.cssText="display: none",null)}onConnector(e){W.push("ConnectingExternal",{connector:e})}};dt([c()],ke.prototype,"tabIdx",void 0);dt([u()],ke.prototype,"connectors",void 0);ke=dt([p("w3m-connect-external-widget")],ke);var pt=function(a,e,i,n){var o=arguments.length,t=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,i):n,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(a,e,i,n);else for(var s=a.length-1;s>=0;s--)(r=a[s])&&(t=(o<3?r(t):o>3?r(e,i,t):r(e,i))||t);return o>3&&t&&Object.defineProperty(e,i,t),t};let Le=class extends h{constructor(){super(...arguments),this.tabIdx=void 0,this.wallets=[]}render(){return this.wallets.length?l`
|
|
254
254
|
<wui-flex flexDirection="column" gap="xs">
|
|
255
255
|
${this.wallets.map(e=>l`
|
|
256
256
|
<wui-list-wallet
|
|
257
257
|
data-testid=${`wallet-selector-featured-${e.id}`}
|
|
258
|
-
imageSrc=${
|
|
258
|
+
imageSrc=${d(E.getWalletImage(e))}
|
|
259
259
|
name=${e.name??"Unknown"}
|
|
260
260
|
@click=${()=>this.onConnectWallet(e)}
|
|
261
|
-
tabIdx=${
|
|
261
|
+
tabIdx=${d(this.tabIdx)}
|
|
262
262
|
>
|
|
263
263
|
</wui-list-wallet>
|
|
264
264
|
`)}
|
|
@@ -267,74 +267,74 @@ import{i as v,e as L,r as R,a as h,b as l,C as y,A as m,O as U,c as w,E as N,R a
|
|
|
267
267
|
<wui-flex flexDirection="column" gap="xs">
|
|
268
268
|
${e.map(i=>l`
|
|
269
269
|
<wui-list-wallet
|
|
270
|
-
imageSrc=${
|
|
270
|
+
imageSrc=${d(E.getConnectorImage(i))}
|
|
271
271
|
.installed=${!0}
|
|
272
272
|
name=${i.name??"Unknown"}
|
|
273
273
|
tagVariant="success"
|
|
274
274
|
tagLabel="installed"
|
|
275
275
|
data-testid=${`wallet-selector-${i.id}`}
|
|
276
276
|
@click=${()=>this.onConnector(i)}
|
|
277
|
-
tabIdx=${
|
|
277
|
+
tabIdx=${d(this.tabIdx)}
|
|
278
278
|
>
|
|
279
279
|
</wui-list-wallet>
|
|
280
280
|
`)}
|
|
281
281
|
</wui-flex>
|
|
282
|
-
`}onConnector(e){y.setActiveConnector(e),W.push("ConnectingExternal",{connector:e})}};ht([c()],ze.prototype,"tabIdx",void 0);ht([c()],ze.prototype,"connectors",void 0);ze=ht([p("w3m-connect-injected-widget")],ze);var wt=function(a,e,i,n){var o=arguments.length,t=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,i):n,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(a,e,i,n);else for(var s=a.length-1;s>=0;s--)(r=a[s])&&(t=(o<3?r(t):o>3?r(e,i,t):r(e,i))||t);return o>3&&t&&Object.defineProperty(e,i,t),t};let Pe=class extends h{constructor(){super(),this.unsubscribe=[],this.tabIdx=void 0,this.connectors=y.state.connectors,this.unsubscribe.push(y.subscribeKey("connectors",e=>this.connectors=e))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){const e=this.connectors.filter(i=>i.type==="MULTI_CHAIN"&&i.name!=="WalletConnect");return e
|
|
282
|
+
`}onConnector(e){y.setActiveConnector(e),W.push("ConnectingExternal",{connector:e})}};ht([c()],ze.prototype,"tabIdx",void 0);ht([c()],ze.prototype,"connectors",void 0);ze=ht([p("w3m-connect-injected-widget")],ze);var wt=function(a,e,i,n){var o=arguments.length,t=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,i):n,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(a,e,i,n);else for(var s=a.length-1;s>=0;s--)(r=a[s])&&(t=(o<3?r(t):o>3?r(e,i,t):r(e,i))||t);return o>3&&t&&Object.defineProperty(e,i,t),t};let Pe=class extends h{constructor(){super(),this.unsubscribe=[],this.tabIdx=void 0,this.connectors=y.state.connectors,this.unsubscribe.push(y.subscribeKey("connectors",e=>this.connectors=e))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){const e=this.connectors.filter(i=>i.type==="MULTI_CHAIN"&&i.name!=="WalletConnect");return e?.length?l`
|
|
283
283
|
<wui-flex flexDirection="column" gap="xs">
|
|
284
284
|
${e.map(i=>l`
|
|
285
285
|
<wui-list-wallet
|
|
286
|
-
imageSrc=${
|
|
286
|
+
imageSrc=${d(E.getConnectorImage(i))}
|
|
287
287
|
.installed=${!0}
|
|
288
288
|
name=${i.name??"Unknown"}
|
|
289
289
|
tagVariant="shade"
|
|
290
290
|
tagLabel="multichain"
|
|
291
291
|
data-testid=${`wallet-selector-${i.id}`}
|
|
292
292
|
@click=${()=>this.onConnector(i)}
|
|
293
|
-
tabIdx=${
|
|
293
|
+
tabIdx=${d(this.tabIdx)}
|
|
294
294
|
>
|
|
295
295
|
</wui-list-wallet>
|
|
296
296
|
`)}
|
|
297
297
|
</wui-flex>
|
|
298
|
-
`:(this.style.cssText="display: none",null)}onConnector(e){y.setActiveConnector(e),W.push("ConnectingMultiChain")}};wt([c()],Pe.prototype,"tabIdx",void 0);wt([
|
|
298
|
+
`:(this.style.cssText="display: none",null)}onConnector(e){y.setActiveConnector(e),W.push("ConnectingMultiChain")}};wt([c()],Pe.prototype,"tabIdx",void 0);wt([u()],Pe.prototype,"connectors",void 0);Pe=wt([p("w3m-connect-multi-chain-widget")],Pe);var Fe=function(a,e,i,n){var o=arguments.length,t=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,i):n,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(a,e,i,n);else for(var s=a.length-1;s>=0;s--)(r=a[s])&&(t=(o<3?r(t):o>3?r(e,i,t):r(e,i))||t);return o>3&&t&&Object.defineProperty(e,i,t),t};let $e=class extends h{constructor(){super(),this.unsubscribe=[],this.tabIdx=void 0,this.connectors=y.state.connectors,this.loading=!1,this.unsubscribe.push(y.subscribeKey("connectors",e=>this.connectors=e)),w.isTelegram()&&w.isIos()&&(this.loading=!g.state.wcUri,this.unsubscribe.push(g.subscribeKey("wcUri",e=>this.loading=!e)))}render(){const i=Ge.getRecentWallets().filter(n=>!Ke.isExcluded(n)).filter(n=>!this.hasWalletConnector(n)).filter(n=>this.isWalletCompatibleWithCurrentChain(n));return i.length?l`
|
|
299
299
|
<wui-flex flexDirection="column" gap="xs">
|
|
300
300
|
${i.map(n=>l`
|
|
301
301
|
<wui-list-wallet
|
|
302
|
-
imageSrc=${
|
|
302
|
+
imageSrc=${d(E.getWalletImage(n))}
|
|
303
303
|
name=${n.name??"Unknown"}
|
|
304
304
|
@click=${()=>this.onConnectWallet(n)}
|
|
305
305
|
tagLabel="recent"
|
|
306
306
|
tagVariant="shade"
|
|
307
|
-
tabIdx=${
|
|
307
|
+
tabIdx=${d(this.tabIdx)}
|
|
308
308
|
?loading=${this.loading}
|
|
309
309
|
>
|
|
310
310
|
</wui-list-wallet>
|
|
311
311
|
`)}
|
|
312
312
|
</wui-flex>
|
|
313
|
-
`:(this.style.cssText="display: none",null)}onConnectWallet(e){this.loading||y.selectWalletConnector(e)}hasWalletConnector(e){return this.connectors.some(i=>i.id===e.id||i.name===e.name)}isWalletCompatibleWithCurrentChain(e){const i=nt.state.activeChain;return i&&e.chains?e.chains.some(n=>{const o=n.split(":")[0];return i===o}):!0}};Fe([c()],$e.prototype,"tabIdx",void 0);Fe([
|
|
313
|
+
`:(this.style.cssText="display: none",null)}onConnectWallet(e){this.loading||y.selectWalletConnector(e)}hasWalletConnector(e){return this.connectors.some(i=>i.id===e.id||i.name===e.name)}isWalletCompatibleWithCurrentChain(e){const i=nt.state.activeChain;return i&&e.chains?e.chains.some(n=>{const o=n.split(":")[0];return i===o}):!0}};Fe([c()],$e.prototype,"tabIdx",void 0);Fe([u()],$e.prototype,"connectors",void 0);Fe([u()],$e.prototype,"loading",void 0);$e=Fe([p("w3m-connect-recent-widget")],$e);var Xe=function(a,e,i,n){var o=arguments.length,t=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,i):n,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(a,e,i,n);else for(var s=a.length-1;s>=0;s--)(r=a[s])&&(t=(o<3?r(t):o>3?r(e,i,t):r(e,i))||t);return o>3&&t&&Object.defineProperty(e,i,t),t};let Ce=class extends h{constructor(){super(),this.unsubscribe=[],this.tabIdx=void 0,this.wallets=[],this.loading=!1,w.isTelegram()&&w.isIos()&&(this.loading=!g.state.wcUri,this.unsubscribe.push(g.subscribeKey("wcUri",e=>this.loading=!e)))}render(){const{connectors:e}=y.state,{customWallets:i,featuredWalletIds:n}=U.state,o=Ge.getRecentWallets(),t=e.find(_=>_.id==="walletConnect"),s=e.filter(_=>_.type==="INJECTED"||_.type==="ANNOUNCED"||_.type==="MULTI_CHAIN").filter(_=>_.name!=="Browser Wallet");if(!t)return null;if(n||i||!this.wallets.length)return this.style.cssText="display: none",null;const f=s.length+o.length,V=Math.max(0,2-f),S=Ke.filterOutDuplicateWallets(this.wallets).slice(0,V);return S.length?l`
|
|
314
314
|
<wui-flex flexDirection="column" gap="xs">
|
|
315
|
-
${
|
|
315
|
+
${S.map(_=>l`
|
|
316
316
|
<wui-list-wallet
|
|
317
|
-
imageSrc=${
|
|
318
|
-
name=${
|
|
317
|
+
imageSrc=${d(E.getWalletImage(_))}
|
|
318
|
+
name=${_?.name??"Unknown"}
|
|
319
319
|
@click=${()=>this.onConnectWallet(_)}
|
|
320
|
-
tabIdx=${
|
|
320
|
+
tabIdx=${d(this.tabIdx)}
|
|
321
321
|
?loading=${this.loading}
|
|
322
322
|
>
|
|
323
323
|
</wui-list-wallet>
|
|
324
324
|
`)}
|
|
325
325
|
</wui-flex>
|
|
326
|
-
`:(this.style.cssText="display: none",null)}onConnectWallet(e){if(this.loading)return;const i=y.getConnector(e.id,e.rdns);i?W.push("ConnectingExternal",{connector:i}):W.push("ConnectingWalletConnect",{wallet:e})}};Xe([c()],Ce.prototype,"tabIdx",void 0);Xe([c()],Ce.prototype,"wallets",void 0);Xe([
|
|
326
|
+
`:(this.style.cssText="display: none",null)}onConnectWallet(e){if(this.loading)return;const i=y.getConnector(e.id,e.rdns);i?W.push("ConnectingExternal",{connector:i}):W.push("ConnectingWalletConnect",{wallet:e})}};Xe([c()],Ce.prototype,"tabIdx",void 0);Xe([c()],Ce.prototype,"wallets",void 0);Xe([u()],Ce.prototype,"loading",void 0);Ce=Xe([p("w3m-connect-recommended-widget")],Ce);var Qe=function(a,e,i,n){var o=arguments.length,t=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,i):n,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(a,e,i,n);else for(var s=a.length-1;s>=0;s--)(r=a[s])&&(t=(o<3?r(t):o>3?r(e,i,t):r(e,i))||t);return o>3&&t&&Object.defineProperty(e,i,t),t};let We=class extends h{constructor(){super(),this.unsubscribe=[],this.tabIdx=void 0,this.connectors=y.state.connectors,this.connectorImages=vt.state.connectorImages,this.unsubscribe.push(y.subscribeKey("connectors",e=>this.connectors=e),vt.subscribeKey("connectorImages",e=>this.connectorImages=e))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){if(w.isMobile())return this.style.cssText="display: none",null;const e=this.connectors.find(n=>n.id==="walletConnect");if(!e)return this.style.cssText="display: none",null;const i=e.imageUrl||this.connectorImages[e?.imageId??""];return l`
|
|
327
327
|
<wui-list-wallet
|
|
328
|
-
imageSrc=${
|
|
328
|
+
imageSrc=${d(i)}
|
|
329
329
|
name=${e.name??"Unknown"}
|
|
330
330
|
@click=${()=>this.onConnector(e)}
|
|
331
331
|
tagLabel="qr code"
|
|
332
332
|
tagVariant="main"
|
|
333
|
-
tabIdx=${
|
|
333
|
+
tabIdx=${d(this.tabIdx)}
|
|
334
334
|
data-testid="wallet-selector-walletconnect"
|
|
335
335
|
>
|
|
336
336
|
</wui-list-wallet>
|
|
337
|
-
`}onConnector(e){y.setActiveConnector(e),W.push("ConnectingWalletConnect")}};Qe([c()],We.prototype,"tabIdx",void 0);Qe([
|
|
337
|
+
`}onConnector(e){y.setActiveConnector(e),W.push("ConnectingWalletConnect")}};Qe([c()],We.prototype,"tabIdx",void 0);Qe([u()],We.prototype,"connectors",void 0);Qe([u()],We.prototype,"connectorImages",void 0);We=Qe([p("w3m-connect-walletconnect-widget")],We);const Ft=v`
|
|
338
338
|
:host {
|
|
339
339
|
margin-top: var(--wui-spacing-3xs);
|
|
340
340
|
}
|
|
@@ -345,32 +345,32 @@ import{i as v,e as L,r as R,a as h,b as l,C as y,A as m,O as U,c as w,E as N,R a
|
|
|
345
345
|
}
|
|
346
346
|
`;var Re=function(a,e,i,n){var o=arguments.length,t=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,i):n,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(a,e,i,n);else for(var s=a.length-1;s>=0;s--)(r=a[s])&&(t=(o<3?r(t):o>3?r(e,i,t):r(e,i))||t);return o>3&&t&&Object.defineProperty(e,i,t),t};let re=class extends h{constructor(){super(),this.unsubscribe=[],this.tabIdx=void 0,this.connectors=y.state.connectors,this.recommended=m.state.recommended,this.featured=m.state.featured,this.unsubscribe.push(y.subscribeKey("connectors",e=>this.connectors=e),m.subscribeKey("recommended",e=>this.recommended=e),m.subscribeKey("featured",e=>this.featured=e))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){return l`
|
|
347
347
|
<wui-flex flexDirection="column" gap="xs"> ${this.connectorListTemplate()} </wui-flex>
|
|
348
|
-
`}connectorListTemplate(){const{custom:e,recent:i,announced:n,injected:o,multiChain:t,recommended:r,featured:s,external:f}=xe.getConnectorsByType(this.connectors,this.recommended,this.featured);return xe.getConnectorTypeOrder({custom:e,recent:i,announced:n,injected:o,multiChain:t,recommended:r,featured:s,external:f}).map(
|
|
348
|
+
`}connectorListTemplate(){const{custom:e,recent:i,announced:n,injected:o,multiChain:t,recommended:r,featured:s,external:f}=xe.getConnectorsByType(this.connectors,this.recommended,this.featured);return xe.getConnectorTypeOrder({custom:e,recent:i,announced:n,injected:o,multiChain:t,recommended:r,featured:s,external:f}).map(S=>{switch(S){case"injected":return l`
|
|
349
349
|
${t.length?l`<w3m-connect-multi-chain-widget
|
|
350
|
-
tabIdx=${
|
|
350
|
+
tabIdx=${d(this.tabIdx)}
|
|
351
351
|
></w3m-connect-multi-chain-widget>`:null}
|
|
352
352
|
${n.length?l`<w3m-connect-announced-widget
|
|
353
|
-
tabIdx=${
|
|
353
|
+
tabIdx=${d(this.tabIdx)}
|
|
354
354
|
></w3m-connect-announced-widget>`:null}
|
|
355
355
|
${o.length?l`<w3m-connect-injected-widget
|
|
356
356
|
.connectors=${o}
|
|
357
|
-
tabIdx=${
|
|
357
|
+
tabIdx=${d(this.tabIdx)}
|
|
358
358
|
></w3m-connect-injected-widget>`:null}
|
|
359
359
|
`;case"walletConnect":return l`<w3m-connect-walletconnect-widget
|
|
360
|
-
tabIdx=${
|
|
360
|
+
tabIdx=${d(this.tabIdx)}
|
|
361
361
|
></w3m-connect-walletconnect-widget>`;case"recent":return l`<w3m-connect-recent-widget
|
|
362
|
-
tabIdx=${
|
|
362
|
+
tabIdx=${d(this.tabIdx)}
|
|
363
363
|
></w3m-connect-recent-widget>`;case"featured":return l`<w3m-connect-featured-widget
|
|
364
364
|
.wallets=${s}
|
|
365
|
-
tabIdx=${
|
|
365
|
+
tabIdx=${d(this.tabIdx)}
|
|
366
366
|
></w3m-connect-featured-widget>`;case"custom":return l`<w3m-connect-custom-widget
|
|
367
|
-
tabIdx=${
|
|
367
|
+
tabIdx=${d(this.tabIdx)}
|
|
368
368
|
></w3m-connect-custom-widget>`;case"external":return l`<w3m-connect-external-widget
|
|
369
|
-
tabIdx=${
|
|
369
|
+
tabIdx=${d(this.tabIdx)}
|
|
370
370
|
></w3m-connect-external-widget>`;case"recommended":return l`<w3m-connect-recommended-widget
|
|
371
371
|
.wallets=${r}
|
|
372
|
-
tabIdx=${
|
|
373
|
-
></w3m-connect-recommended-widget>`;default:return console.warn(`Unknown connector type: ${
|
|
372
|
+
tabIdx=${d(this.tabIdx)}
|
|
373
|
+
></w3m-connect-recommended-widget>`;default:return console.warn(`Unknown connector type: ${S}`),null}})}};re.styles=Ft;Re([c()],re.prototype,"tabIdx",void 0);Re([u()],re.prototype,"connectors",void 0);Re([u()],re.prototype,"recommended",void 0);Re([u()],re.prototype,"featured",void 0);re=Re([p("w3m-connector-list")],re);const Xt=v`
|
|
374
374
|
:host {
|
|
375
375
|
display: inline-flex;
|
|
376
376
|
background-color: var(--wui-color-gray-glass-002);
|
|
@@ -484,21 +484,21 @@ import{i as v,e as L,r as R,a as h,b as l,C as y,A as m,O as U,c as w,E as N,R a
|
|
|
484
484
|
`;var ie=function(a,e,i,n){var o=arguments.length,t=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,i):n,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(a,e,i,n);else for(var s=a.length-1;s>=0;s--)(r=a[s])&&(t=(o<3?r(t):o>3?r(e,i,t):r(e,i))||t);return o>3&&t&&Object.defineProperty(e,i,t),t};let K=class extends h{constructor(){super(...arguments),this.tabs=[],this.onTabChange=()=>null,this.buttons=[],this.disabled=!1,this.localTabWidth="100px",this.activeTab=0,this.isDense=!1}render(){return this.isDense=this.tabs.length>3,this.style.cssText=`
|
|
485
485
|
--local-tab: ${this.activeTab};
|
|
486
486
|
--local-tab-width: ${this.localTabWidth};
|
|
487
|
-
`,this.dataset.type=this.isDense?"flex":"block",this.tabs.map((e,i)=>{
|
|
487
|
+
`,this.dataset.type=this.isDense?"flex":"block",this.tabs.map((e,i)=>{const n=i===this.activeTab;return l`
|
|
488
488
|
<button
|
|
489
489
|
?disabled=${this.disabled}
|
|
490
490
|
@click=${()=>this.onTabClick(i)}
|
|
491
491
|
data-active=${n}
|
|
492
|
-
data-testid="tab-${
|
|
492
|
+
data-testid="tab-${e.label?.toLowerCase()}"
|
|
493
493
|
>
|
|
494
494
|
${this.iconTemplate(e)}
|
|
495
495
|
<wui-text variant="small-600" color="inherit"> ${e.label} </wui-text>
|
|
496
496
|
</button>
|
|
497
|
-
`})}firstUpdated(){this.shadowRoot&&this.isDense&&(this.buttons=[...this.shadowRoot.querySelectorAll("button")],setTimeout(()=>{this.animateTabs(0,!0)},0))}iconTemplate(e){return e.icon?l`<wui-icon size="xs" color="inherit" name=${e.icon}></wui-icon>`:null}onTabClick(e){this.buttons&&this.animateTabs(e,!1),this.activeTab=e,this.onTabChange(e)}animateTabs(e,i){const n=this.buttons[this.activeTab],o=this.buttons[e],t=n
|
|
497
|
+
`})}firstUpdated(){this.shadowRoot&&this.isDense&&(this.buttons=[...this.shadowRoot.querySelectorAll("button")],setTimeout(()=>{this.animateTabs(0,!0)},0))}iconTemplate(e){return e.icon?l`<wui-icon size="xs" color="inherit" name=${e.icon}></wui-icon>`:null}onTabClick(e){this.buttons&&this.animateTabs(e,!1),this.activeTab=e,this.onTabChange(e)}animateTabs(e,i){const n=this.buttons[this.activeTab],o=this.buttons[e],t=n?.querySelector("wui-text"),r=o?.querySelector("wui-text"),s=o?.getBoundingClientRect(),f=r?.getBoundingClientRect();n&&t&&!i&&e!==this.activeTab&&(t.animate([{opacity:0}],{duration:50,easing:"ease",fill:"forwards"}),n.animate([{width:"34px"}],{duration:500,easing:"ease",fill:"forwards"})),o&&s&&f&&r&&(e!==this.activeTab||i)&&(this.localTabWidth=`${Math.round(s.width+f.width)+6}px`,o.animate([{width:`${s.width+f.width}px`}],{duration:i?0:500,fill:"forwards",easing:"ease"}),r.animate([{opacity:1}],{duration:i?0:125,delay:i?0:200,fill:"forwards",easing:"ease"}))}};K.styles=[R,L,Xt];ie([c({type:Array})],K.prototype,"tabs",void 0);ie([c()],K.prototype,"onTabChange",void 0);ie([c({type:Array})],K.prototype,"buttons",void 0);ie([c({type:Boolean})],K.prototype,"disabled",void 0);ie([c()],K.prototype,"localTabWidth",void 0);ie([u()],K.prototype,"activeTab",void 0);ie([u()],K.prototype,"isDense",void 0);K=ie([p("wui-tabs")],K);var ft=function(a,e,i,n){var o=arguments.length,t=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,i):n,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(a,e,i,n);else for(var s=a.length-1;s>=0;s--)(r=a[s])&&(t=(o<3?r(t):o>3?r(e,i,t):r(e,i))||t);return o>3&&t&&Object.defineProperty(e,i,t),t};let De=class extends h{constructor(){super(...arguments),this.platformTabs=[],this.unsubscribe=[],this.platforms=[],this.onSelectPlatfrom=void 0}disconnectCallback(){this.unsubscribe.forEach(e=>e())}render(){const e=this.generateTabs();return l`
|
|
498
498
|
<wui-flex justifyContent="center" .padding=${["0","0","l","0"]}>
|
|
499
499
|
<wui-tabs .tabs=${e} .onTabChange=${this.onTabChange.bind(this)}></wui-tabs>
|
|
500
500
|
</wui-flex>
|
|
501
|
-
`}generateTabs(){const e=this.platforms.map(i=>i==="browser"?{label:"Browser",icon:"extension",platform:"browser"}:i==="mobile"?{label:"Mobile",icon:"mobile",platform:"mobile"}:i==="qrcode"?{label:"Mobile",icon:"mobile",platform:"qrcode"}:i==="web"?{label:"Webapp",icon:"browser",platform:"web"}:i==="desktop"?{label:"Desktop",icon:"desktop",platform:"desktop"}:{label:"Browser",icon:"extension",platform:"unsupported"});return this.platformTabs=e.map(({platform:i})=>i),e}onTabChange(e){
|
|
501
|
+
`}generateTabs(){const e=this.platforms.map(i=>i==="browser"?{label:"Browser",icon:"extension",platform:"browser"}:i==="mobile"?{label:"Mobile",icon:"mobile",platform:"mobile"}:i==="qrcode"?{label:"Mobile",icon:"mobile",platform:"qrcode"}:i==="web"?{label:"Webapp",icon:"browser",platform:"web"}:i==="desktop"?{label:"Desktop",icon:"desktop",platform:"desktop"}:{label:"Browser",icon:"extension",platform:"unsupported"});return this.platformTabs=e.map(({platform:i})=>i),e}onTabChange(e){const i=this.platformTabs[e];i&&this.onSelectPlatfrom?.(i)}};ft([c({type:Array})],De.prototype,"platforms",void 0);ft([c()],De.prototype,"onSelectPlatfrom",void 0);De=ft([p("w3m-connecting-header")],De);const Qt=v`
|
|
502
502
|
:host {
|
|
503
503
|
width: var(--local-width);
|
|
504
504
|
position: relative;
|
|
@@ -729,15 +729,15 @@ import{i as v,e as L,r as R,a as h,b as l,C as y,A as m,O as U,c as w,E as N,R a
|
|
|
729
729
|
button:hover {
|
|
730
730
|
background-color: var(--wui-color-gray-glass-005);
|
|
731
731
|
}
|
|
732
|
-
`;var Ye=function(a,e,i,n){var o=arguments.length,t=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,i):n,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(a,e,i,n);else for(var s=a.length-1;s>=0;s--)(r=a[s])&&(t=(o<3?r(t):o>3?r(e,i,t):r(e,i))||t);return o>3&&t&&Object.defineProperty(e,i,t),t};let
|
|
733
|
-
<button ?disabled=${this.disabled} tabindex=${
|
|
732
|
+
`;var Ye=function(a,e,i,n){var o=arguments.length,t=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,i):n,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(a,e,i,n);else for(var s=a.length-1;s>=0;s--)(r=a[s])&&(t=(o<3?r(t):o>3?r(e,i,t):r(e,i))||t);return o>3&&t&&Object.defineProperty(e,i,t),t};let de=class extends h{constructor(){super(...arguments),this.tabIdx=void 0,this.disabled=!1,this.color="inherit"}render(){return l`
|
|
733
|
+
<button ?disabled=${this.disabled} tabindex=${d(this.tabIdx)}>
|
|
734
734
|
<slot name="iconLeft"></slot>
|
|
735
735
|
<wui-text variant="small-600" color=${this.color}>
|
|
736
736
|
<slot></slot>
|
|
737
737
|
</wui-text>
|
|
738
738
|
<slot name="iconRight"></slot>
|
|
739
739
|
</button>
|
|
740
|
-
`}};
|
|
740
|
+
`}};de.styles=[R,L,Jt];Ye([c()],de.prototype,"tabIdx",void 0);Ye([c({type:Boolean})],de.prototype,"disabled",void 0);Ye([c()],de.prototype,"color",void 0);de=Ye([p("wui-link")],de);const ei=v`
|
|
741
741
|
:host {
|
|
742
742
|
display: block;
|
|
743
743
|
width: var(--wui-box-size-md);
|
|
@@ -762,7 +762,7 @@ import{i as v,e as L,r as R,a as h,b as l,C as y,A as m,O as U,c as w,E as N,R a
|
|
|
762
762
|
stroke-dashoffset: 0px;
|
|
763
763
|
}
|
|
764
764
|
}
|
|
765
|
-
`;var Tt=function(a,e,i,n){var o=arguments.length,t=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,i):n,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(a,e,i,n);else for(var s=a.length-1;s>=0;s--)(r=a[s])&&(t=(o<3?r(t):o>3?r(e,i,t):r(e,i))||t);return o>3&&t&&Object.defineProperty(e,i,t),t};let
|
|
765
|
+
`;var Tt=function(a,e,i,n){var o=arguments.length,t=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,i):n,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(a,e,i,n);else for(var s=a.length-1;s>=0;s--)(r=a[s])&&(t=(o<3?r(t):o>3?r(e,i,t):r(e,i))||t);return o>3&&t&&Object.defineProperty(e,i,t),t};let Be=class extends h{constructor(){super(...arguments),this.radius=36}render(){return this.svgLoaderTemplate()}svgLoaderTemplate(){const e=this.radius>50?50:this.radius,n=36-e,o=116+n,t=245+n,r=360+n*1.75;return l`
|
|
766
766
|
<svg viewBox="0 0 110 110" width="110" height="110">
|
|
767
767
|
<rect
|
|
768
768
|
x="2"
|
|
@@ -774,7 +774,7 @@ import{i as v,e as L,r as R,a as h,b as l,C as y,A as m,O as U,c as w,E as N,R a
|
|
|
774
774
|
stroke-dashoffset=${r}
|
|
775
775
|
/>
|
|
776
776
|
</svg>
|
|
777
|
-
`}};
|
|
777
|
+
`}};Be.styles=[R,ei];Tt([c({type:Number})],Be.prototype,"radius",void 0);Be=Tt([p("wui-loading-thumbnail")],Be);const ti=v`
|
|
778
778
|
button {
|
|
779
779
|
border: none;
|
|
780
780
|
border-radius: var(--wui-border-radius-3xl);
|
|
@@ -893,7 +893,7 @@ import{i as v,e as L,r as R,a as h,b as l,C as y,A as m,O as U,c as w,E as N,R a
|
|
|
893
893
|
box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-002);
|
|
894
894
|
pointer-events: none;
|
|
895
895
|
}
|
|
896
|
-
`;var
|
|
896
|
+
`;var ue=function(a,e,i,n){var o=arguments.length,t=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,i):n,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(a,e,i,n);else for(var s=a.length-1;s>=0;s--)(r=a[s])&&(t=(o<3?r(t):o>3?r(e,i,t):r(e,i))||t);return o>3&&t&&Object.defineProperty(e,i,t),t};let J=class extends h{constructor(){super(...arguments),this.variant="accent",this.imageSrc="",this.disabled=!1,this.icon="externalLink",this.size="md",this.text=""}render(){const e=this.size==="sm"?"small-600":"paragraph-600";return l`
|
|
897
897
|
<button
|
|
898
898
|
class=${this.disabled?"disabled":""}
|
|
899
899
|
data-variant=${this.variant}
|
|
@@ -903,7 +903,7 @@ import{i as v,e as L,r as R,a as h,b as l,C as y,A as m,O as U,c as w,E as N,R a
|
|
|
903
903
|
<wui-text variant=${e} color="inherit"> ${this.text} </wui-text>
|
|
904
904
|
<wui-icon name=${this.icon} color="inherit" size="inherit"></wui-icon>
|
|
905
905
|
</button>
|
|
906
|
-
`}};J.styles=[R,L,ti];
|
|
906
|
+
`}};J.styles=[R,L,ti];ue([c()],J.prototype,"variant",void 0);ue([c()],J.prototype,"imageSrc",void 0);ue([c({type:Boolean})],J.prototype,"disabled",void 0);ue([c()],J.prototype,"icon",void 0);ue([c()],J.prototype,"size",void 0);ue([c()],J.prototype,"text",void 0);J=ue([p("wui-chip-button")],J);const ii=v`
|
|
907
907
|
wui-flex {
|
|
908
908
|
width: 100%;
|
|
909
909
|
background-color: var(--wui-color-gray-glass-002);
|
|
@@ -924,31 +924,31 @@ import{i as v,e as L,r as R,a as h,b as l,C as y,A as m,O as U,c as w,E as N,R a
|
|
|
924
924
|
display: block;
|
|
925
925
|
padding: 0 var(--wui-spacing-xl) var(--wui-spacing-xl);
|
|
926
926
|
}
|
|
927
|
-
`;var Et=function(a,e,i,n){var o=arguments.length,t=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,i):n,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(a,e,i,n);else for(var s=a.length-1;s>=0;s--)(r=a[s])&&(t=(o<3?r(t):o>3?r(e,i,t):r(e,i))||t);return o>3&&t&&Object.defineProperty(e,i,t),t};let
|
|
927
|
+
`;var Et=function(a,e,i,n){var o=arguments.length,t=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,i):n,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(a,e,i,n);else for(var s=a.length-1;s>=0;s--)(r=a[s])&&(t=(o<3?r(t):o>3?r(e,i,t):r(e,i))||t);return o>3&&t&&Object.defineProperty(e,i,t),t};let Ae=class extends h{constructor(){super(...arguments),this.wallet=void 0}render(){if(!this.wallet)return this.style.display="none",null;const{name:e,app_store:i,play_store:n,chrome_store:o,homepage:t}=this.wallet,r=w.isMobile(),s=w.isIos(),f=w.isAndroid(),V=[i,n,t,o].filter(Boolean).length>1,S=Y.getTruncateString({string:e,charsStart:12,charsEnd:0,truncate:"end"});return V&&!r?l`
|
|
928
928
|
<wui-cta-button
|
|
929
|
-
label=${`Don't have ${
|
|
929
|
+
label=${`Don't have ${S}?`}
|
|
930
930
|
buttonLabel="Get"
|
|
931
931
|
@click=${()=>W.push("Downloads",{wallet:this.wallet})}
|
|
932
932
|
></wui-cta-button>
|
|
933
933
|
`:!V&&t?l`
|
|
934
934
|
<wui-cta-button
|
|
935
|
-
label=${`Don't have ${
|
|
935
|
+
label=${`Don't have ${S}?`}
|
|
936
936
|
buttonLabel="Get"
|
|
937
937
|
@click=${this.onHomePage.bind(this)}
|
|
938
938
|
></wui-cta-button>
|
|
939
939
|
`:i&&s?l`
|
|
940
940
|
<wui-cta-button
|
|
941
|
-
label=${`Don't have ${
|
|
941
|
+
label=${`Don't have ${S}?`}
|
|
942
942
|
buttonLabel="Get"
|
|
943
943
|
@click=${this.onAppStore.bind(this)}
|
|
944
944
|
></wui-cta-button>
|
|
945
945
|
`:n&&f?l`
|
|
946
946
|
<wui-cta-button
|
|
947
|
-
label=${`Don't have ${
|
|
947
|
+
label=${`Don't have ${S}?`}
|
|
948
948
|
buttonLabel="Get"
|
|
949
949
|
@click=${this.onPlayStore.bind(this)}
|
|
950
950
|
></wui-cta-button>
|
|
951
|
-
`:(this.style.display="none",null)}onAppStore(){
|
|
951
|
+
`:(this.style.display="none",null)}onAppStore(){this.wallet?.app_store&&w.openHref(this.wallet.app_store,"_blank")}onPlayStore(){this.wallet?.play_store&&w.openHref(this.wallet.play_store,"_blank")}onHomePage(){this.wallet?.homepage&&w.openHref(this.wallet.homepage,"_blank")}};Ae.styles=[ni];Et([c({type:Object})],Ae.prototype,"wallet",void 0);Ae=Et([p("w3m-mobile-download-links")],Ae);const oi=v`
|
|
952
952
|
@keyframes shake {
|
|
953
953
|
0% {
|
|
954
954
|
transform: translateX(0);
|
|
@@ -1009,9 +1009,9 @@ import{i as v,e as L,r as R,a as h,b as l,C as y,A as m,O as U,c as w,E as N,R a
|
|
|
1009
1009
|
display: block;
|
|
1010
1010
|
opacity: 1;
|
|
1011
1011
|
}
|
|
1012
|
-
`;var F=function(a,e,i,n){var o=arguments.length,t=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,i):n,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(a,e,i,n);else for(var s=a.length-1;s>=0;s--)(r=a[s])&&(t=(o<3?r(t):o>3?r(e,i,t):r(e,i))||t);return o>3&&t&&Object.defineProperty(e,i,t),t};class
|
|
1012
|
+
`;var F=function(a,e,i,n){var o=arguments.length,t=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,i):n,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(a,e,i,n);else for(var s=a.length-1;s>=0;s--)(r=a[s])&&(t=(o<3?r(t):o>3?r(e,i,t):r(e,i))||t);return o>3&&t&&Object.defineProperty(e,i,t),t};class O extends h{constructor(){super(),this.wallet=W.state.data?.wallet,this.connector=W.state.data?.connector,this.timeout=void 0,this.secondaryBtnIcon="refresh",this.onConnect=void 0,this.onRender=void 0,this.onAutoConnect=void 0,this.isWalletConnect=!0,this.unsubscribe=[],this.imageSrc=E.getWalletImage(this.wallet)??E.getConnectorImage(this.connector),this.name=this.wallet?.name??this.connector?.name??"Wallet",this.isRetrying=!1,this.uri=g.state.wcUri,this.error=g.state.wcError,this.ready=!1,this.showRetry=!1,this.secondaryBtnLabel="Try again",this.secondaryLabel="Accept connection request in the wallet",this.isLoading=!1,this.isMobile=!1,this.onRetry=void 0,this.unsubscribe.push(g.subscribeKey("wcUri",e=>{this.uri=e,this.isRetrying&&this.onRetry&&(this.isRetrying=!1,this.onConnect?.())}),g.subscribeKey("wcError",e=>this.error=e)),(w.isTelegram()||w.isSafari())&&w.isIos()&&g.state.wcUri&&this.onConnect?.()}firstUpdated(){this.onAutoConnect?.(),this.showRetry=!this.onAutoConnect}disconnectedCallback(){this.unsubscribe.forEach(e=>e()),g.setWcError(!1),clearTimeout(this.timeout)}render(){this.onRender?.(),this.onShowRetry();const e=this.error?"Connection can be declined if a previous request is still active":this.secondaryLabel;let i=`Continue in ${this.name}`;return this.error&&(i="Connection declined"),l`
|
|
1013
1013
|
<wui-flex
|
|
1014
|
-
data-error=${
|
|
1014
|
+
data-error=${d(this.error)}
|
|
1015
1015
|
data-retry=${this.showRetry}
|
|
1016
1016
|
flexDirection="column"
|
|
1017
1017
|
alignItems="center"
|
|
@@ -1019,7 +1019,7 @@ import{i as v,e as L,r as R,a as h,b as l,C as y,A as m,O as U,c as w,E as N,R a
|
|
|
1019
1019
|
gap="xl"
|
|
1020
1020
|
>
|
|
1021
1021
|
<wui-flex justifyContent="center" alignItems="center">
|
|
1022
|
-
<wui-wallet-image size="lg" imageSrc=${
|
|
1022
|
+
<wui-wallet-image size="lg" imageSrc=${d(this.imageSrc)}></wui-wallet-image>
|
|
1023
1023
|
|
|
1024
1024
|
${this.error?null:this.loaderTemplate()}
|
|
1025
1025
|
|
|
@@ -1065,7 +1065,7 @@ import{i as v,e as L,r as R,a as h,b as l,C as y,A as m,O as U,c as w,E as N,R a
|
|
|
1065
1065
|
`:null}
|
|
1066
1066
|
|
|
1067
1067
|
<w3m-mobile-download-links .wallet=${this.wallet}></w3m-mobile-download-links>
|
|
1068
|
-
`}onShowRetry(){
|
|
1068
|
+
`}onShowRetry(){this.error&&!this.showRetry&&(this.showRetry=!0,this.shadowRoot?.querySelector("wui-button")?.animate([{opacity:0},{opacity:1}],{fill:"forwards",easing:"ease"}))}onTryAgain(){g.setWcError(!1),this.onRetry?(this.isRetrying=!0,this.onRetry?.()):this.onConnect?.()}loaderTemplate(){const e=ot.state.themeVariables["--w3m-border-radius-master"],i=e?parseInt(e.replace("px",""),10):4;return l`<wui-loading-thumbnail radius=${i*9}></wui-loading-thumbnail>`}onCopyUri(){try{this.uri&&(w.copyToClopboard(this.uri),je.showSuccess("Link copied"))}catch{je.showError("Failed to copy")}}}O.styles=oi;F([u()],O.prototype,"isRetrying",void 0);F([u()],O.prototype,"uri",void 0);F([u()],O.prototype,"error",void 0);F([u()],O.prototype,"ready",void 0);F([u()],O.prototype,"showRetry",void 0);F([u()],O.prototype,"secondaryBtnLabel",void 0);F([u()],O.prototype,"secondaryLabel",void 0);F([u()],O.prototype,"isLoading",void 0);F([c({type:Boolean})],O.prototype,"isMobile",void 0);F([c()],O.prototype,"onRetry",void 0);var ri=function(a,e,i,n){var o=arguments.length,t=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,i):n,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(a,e,i,n);else for(var s=a.length-1;s>=0;s--)(r=a[s])&&(t=(o<3?r(t):o>3?r(e,i,t):r(e,i))||t);return o>3&&t&&Object.defineProperty(e,i,t),t};let $t=class extends O{constructor(){if(super(),!this.wallet)throw new Error("w3m-connecting-wc-browser: No wallet provided");this.onConnect=this.onConnectProxy.bind(this),this.onAutoConnect=this.onConnectProxy.bind(this),N.sendEvent({type:"track",event:"SELECT_WALLET",properties:{name:this.wallet.name,platform:"browser"}})}async onConnectProxy(){try{this.error=!1;const{connectors:e}=y.state,i=e.find(n=>n.type==="ANNOUNCED"&&n.info?.rdns===this.wallet?.rdns||n.type==="INJECTED"||n.name===this.wallet?.name);if(i)await g.connectExternal(i,i.chain);else throw new Error("w3m-connecting-wc-browser: No connector found");Ot.close(),N.sendEvent({type:"track",event:"CONNECT_SUCCESS",properties:{method:"browser",name:this.wallet?.name||"Unknown"}})}catch(e){N.sendEvent({type:"track",event:"CONNECT_ERROR",properties:{message:e?.message??"Unknown"}}),this.error=!0}}};$t=ri([p("w3m-connecting-wc-browser")],$t);var ai=function(a,e,i,n){var o=arguments.length,t=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,i):n,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(a,e,i,n);else for(var s=a.length-1;s>=0;s--)(r=a[s])&&(t=(o<3?r(t):o>3?r(e,i,t):r(e,i))||t);return o>3&&t&&Object.defineProperty(e,i,t),t};let Ct=class extends O{constructor(){if(super(),!this.wallet)throw new Error("w3m-connecting-wc-desktop: No wallet provided");this.onConnect=this.onConnectProxy.bind(this),this.onRender=this.onRenderProxy.bind(this),N.sendEvent({type:"track",event:"SELECT_WALLET",properties:{name:this.wallet.name,platform:"desktop"}})}onRenderProxy(){!this.ready&&this.uri&&(this.ready=!0,this.onConnect?.())}onConnectProxy(){if(this.wallet?.desktop_link&&this.uri)try{this.error=!1;const{desktop_link:e,name:i}=this.wallet,{redirect:n,href:o}=w.formatNativeUrl(e,this.uri);g.setWcLinking({name:i,href:o}),g.setRecentWallet(this.wallet),w.openHref(n,"_blank")}catch{this.error=!0}}};Ct=ai([p("w3m-connecting-wc-desktop")],Ct);var ge=function(a,e,i,n){var o=arguments.length,t=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,i):n,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(a,e,i,n);else for(var s=a.length-1;s>=0;s--)(r=a[s])&&(t=(o<3?r(t):o>3?r(e,i,t):r(e,i))||t);return o>3&&t&&Object.defineProperty(e,i,t),t};let ae=class extends O{constructor(){if(super(),this.btnLabelTimeout=void 0,this.redirectDeeplink=void 0,this.redirectUniversalLink=void 0,this.target=void 0,this.preferUniversalLinks=U.state.experimental_preferUniversalLinks,this.isLoading=!0,this.onConnect=()=>{if(this.wallet?.mobile_link&&this.uri)try{this.error=!1;const{mobile_link:e,link_mode:i,name:n}=this.wallet,{redirect:o,redirectUniversalLink:t,href:r}=w.formatNativeUrl(e,this.uri,i);this.redirectDeeplink=o,this.redirectUniversalLink=t,this.target=w.isIframe()?"_top":"_self",g.setWcLinking({name:n,href:r}),g.setRecentWallet(this.wallet),this.preferUniversalLinks&&this.redirectUniversalLink?w.openHref(this.redirectUniversalLink,this.target):w.openHref(this.redirectDeeplink,this.target)}catch(e){N.sendEvent({type:"track",event:"CONNECT_PROXY_ERROR",properties:{message:e instanceof Error?e.message:"Error parsing the deeplink",uri:this.uri,mobile_link:this.wallet.mobile_link,name:this.wallet.name}}),this.error=!0}},!this.wallet)throw new Error("w3m-connecting-wc-mobile: No wallet provided");this.secondaryBtnLabel="Open",this.secondaryLabel=St.CONNECT_LABELS.MOBILE,this.secondaryBtnIcon="externalLink",this.onHandleURI(),this.unsubscribe.push(g.subscribeKey("wcUri",()=>{this.onHandleURI()})),N.sendEvent({type:"track",event:"SELECT_WALLET",properties:{name:this.wallet.name,platform:"mobile"}})}disconnectedCallback(){super.disconnectedCallback(),clearTimeout(this.btnLabelTimeout)}onHandleURI(){this.isLoading=!this.uri,!this.ready&&this.uri&&(this.ready=!0,this.onConnect?.())}onTryAgain(){g.setWcError(!1),this.onConnect?.()}};ge([u()],ae.prototype,"redirectDeeplink",void 0);ge([u()],ae.prototype,"redirectUniversalLink",void 0);ge([u()],ae.prototype,"target",void 0);ge([u()],ae.prototype,"preferUniversalLinks",void 0);ge([u()],ae.prototype,"isLoading",void 0);ae=ge([p("w3m-connecting-wc-mobile")],ae);const si=.1,Wt=2.5,Q=7;function tt(a,e,i){return a===e?!1:(a-e<0?e-a:a-e)<=i+si}function li(a,e){const i=Array.prototype.slice.call(Vt.create(a,{errorCorrectionLevel:e}).modules.data,0),n=Math.sqrt(i.length);return i.reduce((o,t,r)=>(r%n===0?o.push([t]):o[o.length-1].push(t))&&o,[])}const ci={generate({uri:a,size:e,logoSize:i,dotColor:n="#141414"}){const o="transparent",r=[],s=li(a,"Q"),f=e/s.length,V=[{x:0,y:0},{x:1,y:0},{x:0,y:1}];V.forEach(({x:$,y:b})=>{const j=(s.length-Q)*f*$,x=(s.length-Q)*f*b,T=.45;for(let C=0;C<V.length;C+=1){const G=f*(Q-C*2);r.push(ve`
|
|
1069
1069
|
<rect
|
|
1070
1070
|
fill=${C===2?n:o}
|
|
1071
1071
|
width=${C===0?G-5:G}
|
|
@@ -1075,19 +1075,19 @@ import{i as v,e as L,r as R,a as h,b as l,C as y,A as m,O as U,c as w,E as N,R a
|
|
|
1075
1075
|
stroke-width=${C===0?5:0}
|
|
1076
1076
|
height=${C===0?G-5:G}
|
|
1077
1077
|
x= ${C===0?x+f*C+5/2:x+f*C}
|
|
1078
|
-
y= ${C===0?
|
|
1078
|
+
y= ${C===0?j+f*C+5/2:j+f*C}
|
|
1079
1079
|
/>
|
|
1080
|
-
`)}});const
|
|
1080
|
+
`)}});const S=Math.floor((i+25)/f),_=s.length/2-S/2,me=s.length/2+S/2-1,Se=[];s.forEach(($,b)=>{$.forEach((j,x)=>{if(s[b][x]&&!(b<Q&&x<Q||b>s.length-(Q+1)&&x<Q||b<Q&&x>s.length-(Q+1))&&!(b>_&&b<me&&x>_&&x<me)){const T=b*f+f/2,C=x*f+f/2;Se.push([T,C])}})});const ne={};return Se.forEach(([$,b])=>{ne[$]?ne[$]?.push(b):ne[$]=[b]}),Object.entries(ne).map(([$,b])=>{const j=b.filter(x=>b.every(T=>!tt(x,T,f)));return[Number($),j]}).forEach(([$,b])=>{b.forEach(j=>{r.push(ve`<circle cx=${$} cy=${j} fill=${n} r=${f/Wt} />`)})}),Object.entries(ne).filter(([$,b])=>b.length>1).map(([$,b])=>{const j=b.filter(x=>b.some(T=>tt(x,T,f)));return[Number($),j]}).map(([$,b])=>{b.sort((x,T)=>x<T?-1:1);const j=[];for(const x of b){const T=j.find(C=>C.some(G=>tt(x,G,f)));T?T.push(x):j.push([x])}return[$,j.map(x=>[x[0],x[x.length-1]])]}).forEach(([$,b])=>{b.forEach(([j,x])=>{r.push(ve`
|
|
1081
1081
|
<line
|
|
1082
1082
|
x1=${$}
|
|
1083
1083
|
x2=${$}
|
|
1084
|
-
y1=${
|
|
1084
|
+
y1=${j}
|
|
1085
1085
|
y2=${x}
|
|
1086
1086
|
stroke=${n}
|
|
1087
1087
|
stroke-width=${f/(Wt/2)}
|
|
1088
1088
|
stroke-linecap="round"
|
|
1089
1089
|
/>
|
|
1090
|
-
`)})}),r}},
|
|
1090
|
+
`)})}),r}},ui=v`
|
|
1091
1091
|
:host {
|
|
1092
1092
|
position: relative;
|
|
1093
1093
|
user-select: none;
|
|
@@ -1133,9 +1133,9 @@ import{i as v,e as L,r as R,a as h,b as l,C as y,A as m,O as U,c as w,E as N,R a
|
|
|
1133
1133
|
color: var(--local-icon-color) !important;
|
|
1134
1134
|
transform: translateY(-50%) translateX(-50%) scale(0.25);
|
|
1135
1135
|
}
|
|
1136
|
-
`;var ee=function(a,e,i,n){var o=arguments.length,t=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,i):n,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(a,e,i,n);else for(var s=a.length-1;s>=0;s--)(r=a[s])&&(t=(o<3?r(t):o>3?r(e,i,t):r(e,i))||t);return o>3&&t&&Object.defineProperty(e,i,t),t};const
|
|
1136
|
+
`;var ee=function(a,e,i,n){var o=arguments.length,t=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,i):n,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(a,e,i,n);else for(var s=a.length-1;s>=0;s--)(r=a[s])&&(t=(o<3?r(t):o>3?r(e,i,t):r(e,i))||t);return o>3&&t&&Object.defineProperty(e,i,t),t};const di="#3396ff";let q=class extends h{constructor(){super(...arguments),this.uri="",this.size=0,this.theme="dark",this.imageSrc=void 0,this.alt=void 0,this.arenaClear=void 0,this.farcaster=void 0}render(){return this.dataset.theme=this.theme,this.dataset.clear=String(this.arenaClear),this.style.cssText=`
|
|
1137
1137
|
--local-size: ${this.size}px;
|
|
1138
|
-
--local-icon-color: ${this.color??
|
|
1138
|
+
--local-icon-color: ${this.color??di}
|
|
1139
1139
|
`,l`${this.templateVisual()} ${this.templateSvg()}`}templateSvg(){const e=this.theme==="light"?this.size:this.size-32;return ve`
|
|
1140
1140
|
<svg height=${e} width=${e}>
|
|
1141
1141
|
${ci.generate({uri:this.uri,size:e,logoSize:this.arenaClear?0:e/4,dotColor:this.color})}
|
|
@@ -1145,7 +1145,7 @@ import{i as v,e as L,r as R,a as h,b as l,C as y,A as m,O as U,c as w,E as N,R a
|
|
|
1145
1145
|
size="inherit"
|
|
1146
1146
|
color="inherit"
|
|
1147
1147
|
name="farcaster"
|
|
1148
|
-
></wui-icon>`:l`<wui-icon size="inherit" color="inherit" name="walletConnect"></wui-icon>`}};q.styles=[R,
|
|
1148
|
+
></wui-icon>`:l`<wui-icon size="inherit" color="inherit" name="walletConnect"></wui-icon>`}};q.styles=[R,ui];ee([c()],q.prototype,"uri",void 0);ee([c({type:Number})],q.prototype,"size",void 0);ee([c()],q.prototype,"theme",void 0);ee([c()],q.prototype,"imageSrc",void 0);ee([c()],q.prototype,"alt",void 0);ee([c()],q.prototype,"color",void 0);ee([c({type:Boolean})],q.prototype,"arenaClear",void 0);ee([c({type:Boolean})],q.prototype,"farcaster",void 0);q=ee([p("wui-qr-code")],q);const pi=v`
|
|
1149
1149
|
:host {
|
|
1150
1150
|
display: block;
|
|
1151
1151
|
box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-005);
|
|
@@ -1243,7 +1243,7 @@ import{i as v,e as L,r as R,a as h,b as l,C as y,A as m,O as U,c as w,E as N,R a
|
|
|
1243
1243
|
animation-name: fadein;
|
|
1244
1244
|
animation-fill-mode: forwards;
|
|
1245
1245
|
}
|
|
1246
|
-
`;var bi=function(a,e,i,n){var o=arguments.length,t=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,i):n,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(a,e,i,n);else for(var s=a.length-1;s>=0;s--)(r=a[s])&&(t=(o<3?r(t):o>3?r(e,i,t):r(e,i))||t);return o>3&&t&&Object.defineProperty(e,i,t),t};let at=class extends
|
|
1246
|
+
`;var bi=function(a,e,i,n){var o=arguments.length,t=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,i):n,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(a,e,i,n);else for(var s=a.length-1;s>=0;s--)(r=a[s])&&(t=(o<3?r(t):o>3?r(e,i,t):r(e,i))||t);return o>3&&t&&Object.defineProperty(e,i,t),t};let at=class extends O{constructor(){super(),this.forceUpdate=()=>{this.requestUpdate()},window.addEventListener("resize",this.forceUpdate),N.sendEvent({type:"track",event:"SELECT_WALLET",properties:{name:this.wallet?.name??"WalletConnect",platform:"qrcode"}})}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribe?.forEach(e=>e()),window.removeEventListener("resize",this.forceUpdate)}render(){return this.onRenderProxy(),l`
|
|
1247
1247
|
<wui-flex
|
|
1248
1248
|
flexDirection="column"
|
|
1249
1249
|
alignItems="center"
|
|
@@ -1262,9 +1262,9 @@ import{i as v,e as L,r as R,a as h,b as l,C as y,A as m,O as U,c as w,E as N,R a
|
|
|
1262
1262
|
size=${e}
|
|
1263
1263
|
theme=${ot.state.themeMode}
|
|
1264
1264
|
uri=${this.uri}
|
|
1265
|
-
imageSrc=${
|
|
1266
|
-
color=${
|
|
1267
|
-
alt=${
|
|
1265
|
+
imageSrc=${d(E.getWalletImage(this.wallet))}
|
|
1266
|
+
color=${d(ot.state.themeVariables["--w3m-qr-color"])}
|
|
1267
|
+
alt=${d(i)}
|
|
1268
1268
|
data-testid="wui-qr-code"
|
|
1269
1269
|
></wui-qr-code>`}copyTemplate(){const e=!this.uri||!this.ready;return l`<wui-link
|
|
1270
1270
|
.disabled=${e}
|
|
@@ -1274,7 +1274,7 @@ import{i as v,e as L,r as R,a as h,b as l,C as y,A as m,O as U,c as w,E as N,R a
|
|
|
1274
1274
|
>
|
|
1275
1275
|
<wui-icon size="xs" color="fg-200" slot="iconLeft" name="copy"></wui-icon>
|
|
1276
1276
|
Copy link
|
|
1277
|
-
</wui-link>`}};at.styles=gi;at=bi([p("w3m-connecting-wc-qrcode")],at);var mi=function(a,e,i,n){var o=arguments.length,t=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,i):n,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(a,e,i,n);else for(var s=a.length-1;s>=0;s--)(r=a[s])&&(t=(o<3?r(t):o>3?r(e,i,t):r(e,i))||t);return o>3&&t&&Object.defineProperty(e,i,t),t};let Rt=class extends h{constructor(){
|
|
1277
|
+
</wui-link>`}};at.styles=gi;at=bi([p("w3m-connecting-wc-qrcode")],at);var mi=function(a,e,i,n){var o=arguments.length,t=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,i):n,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(a,e,i,n);else for(var s=a.length-1;s>=0;s--)(r=a[s])&&(t=(o<3?r(t):o>3?r(e,i,t):r(e,i))||t);return o>3&&t&&Object.defineProperty(e,i,t),t};let Rt=class extends h{constructor(){if(super(),this.wallet=W.state.data?.wallet,!this.wallet)throw new Error("w3m-connecting-wc-unsupported: No wallet provided");N.sendEvent({type:"track",event:"SELECT_WALLET",properties:{name:this.wallet.name,platform:"browser"}})}render(){return l`
|
|
1278
1278
|
<wui-flex
|
|
1279
1279
|
flexDirection="column"
|
|
1280
1280
|
alignItems="center"
|
|
@@ -1283,18 +1283,18 @@ import{i as v,e as L,r as R,a as h,b as l,C as y,A as m,O as U,c as w,E as N,R a
|
|
|
1283
1283
|
>
|
|
1284
1284
|
<wui-wallet-image
|
|
1285
1285
|
size="lg"
|
|
1286
|
-
imageSrc=${
|
|
1286
|
+
imageSrc=${d(E.getWalletImage(this.wallet))}
|
|
1287
1287
|
></wui-wallet-image>
|
|
1288
1288
|
|
|
1289
1289
|
<wui-text variant="paragraph-500" color="fg-100">Not Detected</wui-text>
|
|
1290
1290
|
</wui-flex>
|
|
1291
1291
|
|
|
1292
1292
|
<w3m-mobile-download-links .wallet=${this.wallet}></w3m-mobile-download-links>
|
|
1293
|
-
`}};Rt=mi([p("w3m-connecting-wc-unsupported")],Rt);var kt=function(a,e,i,n){var o=arguments.length,t=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,i):n,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(a,e,i,n);else for(var s=a.length-1;s>=0;s--)(r=a[s])&&(t=(o<3?r(t):o>3?r(e,i,t):r(e,i))||t);return o>3&&t&&Object.defineProperty(e,i,t),t};let st=class extends
|
|
1293
|
+
`}};Rt=mi([p("w3m-connecting-wc-unsupported")],Rt);var kt=function(a,e,i,n){var o=arguments.length,t=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,i):n,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(a,e,i,n);else for(var s=a.length-1;s>=0;s--)(r=a[s])&&(t=(o<3?r(t):o>3?r(e,i,t):r(e,i))||t);return o>3&&t&&Object.defineProperty(e,i,t),t};let st=class extends O{constructor(){if(super(),this.isLoading=!0,!this.wallet)throw new Error("w3m-connecting-wc-web: No wallet provided");this.onConnect=this.onConnectProxy.bind(this),this.secondaryBtnLabel="Open",this.secondaryLabel=St.CONNECT_LABELS.MOBILE,this.secondaryBtnIcon="externalLink",this.updateLoadingState(),this.unsubscribe.push(g.subscribeKey("wcUri",()=>{this.updateLoadingState()})),N.sendEvent({type:"track",event:"SELECT_WALLET",properties:{name:this.wallet.name,platform:"web"}})}updateLoadingState(){this.isLoading=!this.uri}onConnectProxy(){if(this.wallet?.webapp_link&&this.uri)try{this.error=!1;const{webapp_link:e,name:i}=this.wallet,{redirect:n,href:o}=w.formatUniversalUrl(e,this.uri);g.setWcLinking({name:i,href:o}),g.setRecentWallet(this.wallet),w.openHref(n,"_blank")}catch{this.error=!0}}};kt([u()],st.prototype,"isLoading",void 0);st=kt([p("w3m-connecting-wc-web")],st);var Ie=function(a,e,i,n){var o=arguments.length,t=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,i):n,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(a,e,i,n);else for(var s=a.length-1;s>=0;s--)(r=a[s])&&(t=(o<3?r(t):o>3?r(e,i,t):r(e,i))||t);return o>3&&t&&Object.defineProperty(e,i,t),t};let he=class extends h{constructor(){super(),this.wallet=W.state.data?.wallet,this.unsubscribe=[],this.platform=void 0,this.platforms=[],this.isSiwxEnabled=!!U.state.siwx,this.remoteFeatures=U.state.remoteFeatures,this.determinePlatforms(),this.initializeConnection(),this.unsubscribe.push(U.subscribeKey("remoteFeatures",e=>this.remoteFeatures=e))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){return l`
|
|
1294
1294
|
${this.headerTemplate()}
|
|
1295
1295
|
<div>${this.platformTemplate()}</div>
|
|
1296
1296
|
${this.reownBrandingTemplate()}
|
|
1297
|
-
`}reownBrandingTemplate(){
|
|
1297
|
+
`}reownBrandingTemplate(){return this.remoteFeatures?.reownBranding?l`<wui-ux-by-reown></wui-ux-by-reown>`:null}async initializeConnection(e=!1){if(!(this.platform==="browser"||U.state.manualWCControl&&!e))try{const{wcPairingExpiry:i,status:n}=g.state;(e||U.state.enableEmbedded||w.isPairingExpired(i)||n==="connecting")&&(await g.connectWalletConnect(),this.isSiwxEnabled||Ot.close())}catch(i){N.sendEvent({type:"track",event:"CONNECT_ERROR",properties:{message:i?.message??"Unknown"}}),g.setWcError(!0),je.showError(i.message??"Connection error"),g.resetWcConnection(),W.goBack()}}determinePlatforms(){if(!this.wallet){this.platforms.push("qrcode"),this.platform="qrcode";return}if(this.platform)return;const{mobile_link:e,desktop_link:i,webapp_link:n,injected:o,rdns:t}=this.wallet,r=o?.map(({injected_id:ne})=>ne).filter(Boolean),s=[...t?[t]:r??[]],f=U.state.isUniversalProvider?!1:s.length,V=e,S=n,_=g.checkInstalled(s),me=f&&_,Se=i&&!w.isMobile();me&&!nt.state.noAdapters&&this.platforms.push("browser"),V&&this.platforms.push(w.isMobile()?"mobile":"qrcode"),S&&this.platforms.push("web"),Se&&this.platforms.push("desktop"),!me&&f&&!nt.state.noAdapters&&this.platforms.push("unsupported"),this.platform=this.platforms[0]}platformTemplate(){switch(this.platform){case"browser":return l`<w3m-connecting-wc-browser></w3m-connecting-wc-browser>`;case"web":return l`<w3m-connecting-wc-web></w3m-connecting-wc-web>`;case"desktop":return l`
|
|
1298
1298
|
<w3m-connecting-wc-desktop .onRetry=${()=>this.initializeConnection(!0)}>
|
|
1299
1299
|
</w3m-connecting-wc-desktop>
|
|
1300
1300
|
`;case"mobile":return l`
|
|
@@ -1306,7 +1306,7 @@ import{i as v,e as L,r as R,a as h,b as l,C as y,A as m,O as U,c as w,E as N,R a
|
|
|
1306
1306
|
.onSelectPlatfrom=${this.onSelectPlatform.bind(this)}
|
|
1307
1307
|
>
|
|
1308
1308
|
</w3m-connecting-header>
|
|
1309
|
-
`:null}async onSelectPlatform(e){
|
|
1309
|
+
`:null}async onSelectPlatform(e){const i=this.shadowRoot?.querySelector("div");i&&(await i.animate([{opacity:1},{opacity:0}],{duration:200,fill:"forwards",easing:"ease"}).finished,this.platform=e,i.animate([{opacity:0},{opacity:1}],{duration:200,fill:"forwards",easing:"ease"}))}};Ie([u()],he.prototype,"platform",void 0);Ie([u()],he.prototype,"platforms",void 0);Ie([u()],he.prototype,"isSiwxEnabled",void 0);Ie([u()],he.prototype,"remoteFeatures",void 0);he=Ie([p("w3m-connecting-wc-view")],he);var Lt=function(a,e,i,n){var o=arguments.length,t=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,i):n,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(a,e,i,n);else for(var s=a.length-1;s>=0;s--)(r=a[s])&&(t=(o<3?r(t):o>3?r(e,i,t):r(e,i))||t);return o>3&&t&&Object.defineProperty(e,i,t),t};let lt=class extends h{constructor(){super(...arguments),this.isMobile=w.isMobile()}render(){if(this.isMobile){const{featured:e,recommended:i}=m.state,{customWallets:n}=U.state,o=Ge.getRecentWallets(),t=e.length||i.length||n?.length||o.length;return l`<wui-flex
|
|
1310
1310
|
flexDirection="column"
|
|
1311
1311
|
gap="xs"
|
|
1312
1312
|
.margin=${["3xs","s","s","s"]}
|
|
@@ -1317,11 +1317,11 @@ import{i as v,e as L,r as R,a as h,b as l,C as y,A as m,O as U,c as w,E as N,R a
|
|
|
1317
1317
|
<w3m-connecting-wc-view></w3m-connecting-wc-view>
|
|
1318
1318
|
<wui-flex flexDirection="column" .padding=${["0","m","0","m"]}>
|
|
1319
1319
|
<w3m-all-wallets-widget></w3m-all-wallets-widget> </wui-flex
|
|
1320
|
-
></wui-flex>`}};Lt([
|
|
1320
|
+
></wui-flex>`}};Lt([u()],lt.prototype,"isMobile",void 0);lt=Lt([p("w3m-connecting-wc-basic-view")],lt);/**
|
|
1321
1321
|
* @license
|
|
1322
1322
|
* Copyright 2020 Google LLC
|
|
1323
1323
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1324
|
-
*/const gt=()=>new vi;class vi{}const it=new WeakMap,bt=Nt(class extends qt{render(a){return xt}update(a,[e]){
|
|
1324
|
+
*/const gt=()=>new vi;class vi{}const it=new WeakMap,bt=Nt(class extends qt{render(a){return xt}update(a,[e]){const i=e!==this.G;return i&&this.G!==void 0&&this.rt(void 0),(i||this.lt!==this.ct)&&(this.G=e,this.ht=a.options?.host,this.rt(this.ct=a.element)),xt}rt(a){if(this.isConnected||(a=void 0),typeof this.G=="function"){const e=this.ht??globalThis;let i=it.get(e);i===void 0&&(i=new WeakMap,it.set(e,i)),i.get(this.G)!==void 0&&this.G.call(this.ht,void 0),i.set(this.G,a),a!==void 0&&this.G.call(this.ht,a)}else this.G.value=a}get lt(){return typeof this.G=="function"?it.get(this.ht??globalThis)?.get(this.G):this.G?.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}}),xi=v`
|
|
1325
1325
|
:host {
|
|
1326
1326
|
display: flex;
|
|
1327
1327
|
align-items: center;
|
|
@@ -1389,12 +1389,12 @@ import{i as v,e as L,r as R,a as h,b as l,C as y,A as m,O as U,c as w,E as N,R a
|
|
|
1389
1389
|
<input
|
|
1390
1390
|
${bt(this.inputElementRef)}
|
|
1391
1391
|
type="checkbox"
|
|
1392
|
-
?checked=${
|
|
1392
|
+
?checked=${d(this.checked)}
|
|
1393
1393
|
@change=${this.dispatchChangeEvent.bind(this)}
|
|
1394
1394
|
/>
|
|
1395
1395
|
<span></span>
|
|
1396
1396
|
</label>
|
|
1397
|
-
`}dispatchChangeEvent(){
|
|
1397
|
+
`}dispatchChangeEvent(){this.dispatchEvent(new CustomEvent("switchChange",{detail:this.inputElementRef.value?.checked,bubbles:!0,composed:!0}))}};Ue.styles=[R,L,Ut,xi];zt([c({type:Boolean})],Ue.prototype,"checked",void 0);Ue=zt([p("wui-switch")],Ue);const yi=v`
|
|
1398
1398
|
:host {
|
|
1399
1399
|
height: 100%;
|
|
1400
1400
|
}
|
|
@@ -1419,7 +1419,7 @@ import{i as v,e as L,r as R,a as h,b as l,C as y,A as m,O as U,c as w,E as N,R a
|
|
|
1419
1419
|
`;var Pt=function(a,e,i,n){var o=arguments.length,t=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,i):n,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(a,e,i,n);else for(var s=a.length-1;s>=0;s--)(r=a[s])&&(t=(o<3?r(t):o>3?r(e,i,t):r(e,i))||t);return o>3&&t&&Object.defineProperty(e,i,t),t};let Ne=class extends h{constructor(){super(...arguments),this.checked=void 0}render(){return l`
|
|
1420
1420
|
<button>
|
|
1421
1421
|
<wui-icon size="xl" name="walletConnectBrown"></wui-icon>
|
|
1422
|
-
<wui-switch ?checked=${
|
|
1422
|
+
<wui-switch ?checked=${d(this.checked)}></wui-switch>
|
|
1423
1423
|
</button>
|
|
1424
1424
|
`}};Ne.styles=[R,L,yi];Pt([c({type:Boolean})],Ne.prototype,"checked",void 0);Ne=Pt([p("wui-certified-switch")],Ne);const $i=v`
|
|
1425
1425
|
button {
|
|
@@ -1638,25 +1638,25 @@ import{i as v,e as L,r as R,a as h,b as l,C as y,A as m,O as U,c as w,E as N,R a
|
|
|
1638
1638
|
::slotted(wui-icon) {
|
|
1639
1639
|
right: 0px;
|
|
1640
1640
|
}
|
|
1641
|
-
`;var X=function(a,e,i,n){var o=arguments.length,t=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,i):n,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(a,e,i,n);else for(var s=a.length-1;s>=0;s--)(r=a[s])&&(t=(o<3?r(t):o>3?r(e,i,t):r(e,i))||t);return o>3&&t&&Object.defineProperty(e,i,t),t};let
|
|
1641
|
+
`;var X=function(a,e,i,n){var o=arguments.length,t=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,i):n,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(a,e,i,n);else for(var s=a.length-1;s>=0;s--)(r=a[s])&&(t=(o<3?r(t):o>3?r(e,i,t):r(e,i))||t);return o>3&&t&&Object.defineProperty(e,i,t),t};let B=class extends h{constructor(){super(...arguments),this.inputElementRef=gt(),this.size="md",this.disabled=!1,this.placeholder="",this.type="text",this.value=""}render(){const e=`wui-padding-right-${this.inputRightPadding}`,n={[`wui-size-${this.size}`]:!0,[e]:!!this.inputRightPadding};return l`${this.templateIcon()}
|
|
1642
1642
|
<input
|
|
1643
1643
|
data-testid="wui-input-text"
|
|
1644
1644
|
${bt(this.inputElementRef)}
|
|
1645
1645
|
class=${Mt(n)}
|
|
1646
1646
|
type=${this.type}
|
|
1647
|
-
enterkeyhint=${
|
|
1647
|
+
enterkeyhint=${d(this.enterKeyHint)}
|
|
1648
1648
|
?disabled=${this.disabled}
|
|
1649
1649
|
placeholder=${this.placeholder}
|
|
1650
1650
|
@input=${this.dispatchInputChangeEvent.bind(this)}
|
|
1651
1651
|
.value=${this.value||""}
|
|
1652
|
-
tabindex=${
|
|
1652
|
+
tabindex=${d(this.tabIdx)}
|
|
1653
1653
|
/>
|
|
1654
1654
|
<slot></slot>`}templateIcon(){return this.icon?l`<wui-icon
|
|
1655
1655
|
data-input=${this.size}
|
|
1656
1656
|
size=${this.size}
|
|
1657
1657
|
color="inherit"
|
|
1658
1658
|
name=${this.icon}
|
|
1659
|
-
></wui-icon>`:null}dispatchInputChangeEvent(){
|
|
1659
|
+
></wui-icon>`:null}dispatchInputChangeEvent(){this.dispatchEvent(new CustomEvent("inputChange",{detail:this.inputElementRef.value?.value,bubbles:!0,composed:!0}))}};B.styles=[R,L,Ci];X([c()],B.prototype,"size",void 0);X([c()],B.prototype,"icon",void 0);X([c({type:Boolean})],B.prototype,"disabled",void 0);X([c()],B.prototype,"placeholder",void 0);X([c()],B.prototype,"type",void 0);X([c()],B.prototype,"keyHint",void 0);X([c()],B.prototype,"value",void 0);X([c()],B.prototype,"inputRightPadding",void 0);X([c()],B.prototype,"tabIdx",void 0);B=X([p("wui-input-text")],B);const Wi=v`
|
|
1660
1660
|
:host {
|
|
1661
1661
|
position: relative;
|
|
1662
1662
|
display: inline-block;
|
|
@@ -1673,7 +1673,7 @@ import{i as v,e as L,r as R,a as h,b as l,C as y,A as m,O as U,c as w,E as N,R a
|
|
|
1673
1673
|
>
|
|
1674
1674
|
<wui-input-element @click=${this.clearValue} icon="close"></wui-input-element>
|
|
1675
1675
|
</wui-input-text>
|
|
1676
|
-
`}clearValue(){const
|
|
1676
|
+
`}clearValue(){const i=this.inputComponentRef.value?.inputElementRef.value;i&&(i.value="",i.focus(),i.dispatchEvent(new Event("input")))}};ct.styles=[R,Wi];ct=Ri([p("wui-search-bar")],ct);const _i=ve`<svg viewBox="0 0 48 54" fill="none">
|
|
1677
1677
|
<path
|
|
1678
1678
|
d="M43.4605 10.7248L28.0485 1.61089C25.5438 0.129705 22.4562 0.129705 19.9515 1.61088L4.53951 10.7248C2.03626 12.2051 0.5 14.9365 0.5 17.886V36.1139C0.5 39.0635 2.03626 41.7949 4.53951 43.2752L19.9515 52.3891C22.4562 53.8703 25.5438 53.8703 28.0485 52.3891L43.4605 43.2752C45.9637 41.7949 47.5 39.0635 47.5 36.114V17.8861C47.5 14.9365 45.9637 12.2051 43.4605 10.7248Z"
|
|
1679
1679
|
/>
|
|
@@ -1713,7 +1713,7 @@ import{i as v,e as L,r as R,a as h,b as l,C as y,A as m,O as U,c as w,E as N,R a
|
|
|
1713
1713
|
width: 100%;
|
|
1714
1714
|
}
|
|
1715
1715
|
}
|
|
1716
|
-
`;var
|
|
1716
|
+
`;var Bt=function(a,e,i,n){var o=arguments.length,t=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,i):n,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(a,e,i,n);else for(var s=a.length-1;s>=0;s--)(r=a[s])&&(t=(o<3?r(t):o>3?r(e,i,t):r(e,i))||t);return o>3&&t&&Object.defineProperty(e,i,t),t};let Me=class extends h{constructor(){super(...arguments),this.type="wallet"}render(){return l`
|
|
1717
1717
|
${this.shimmerTemplate()}
|
|
1718
1718
|
<wui-shimmer width="56px" height="20px" borderRadius="xs"></wui-shimmer>
|
|
1719
1719
|
`}shimmerTemplate(){return this.type==="network"?l` <wui-shimmer
|
|
@@ -1722,13 +1722,13 @@ import{i as v,e as L,r as R,a as h,b as l,C as y,A as m,O as U,c as w,E as N,R a
|
|
|
1722
1722
|
height="54px"
|
|
1723
1723
|
borderRadius="xs"
|
|
1724
1724
|
></wui-shimmer>
|
|
1725
|
-
${_i}`:l`<wui-shimmer width="56px" height="56px" borderRadius="xs"></wui-shimmer>`}};Me.styles=[R,L,Ii];
|
|
1725
|
+
${_i}`:l`<wui-shimmer width="56px" height="56px" borderRadius="xs"></wui-shimmer>`}};Me.styles=[R,L,Ii];Bt([c()],Me.prototype,"type",void 0);Me=Bt([p("wui-card-select-loader")],Me);const Oi=v`
|
|
1726
1726
|
:host {
|
|
1727
1727
|
display: grid;
|
|
1728
1728
|
width: inherit;
|
|
1729
1729
|
height: inherit;
|
|
1730
1730
|
}
|
|
1731
|
-
`;var
|
|
1731
|
+
`;var A=function(a,e,i,n){var o=arguments.length,t=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,i):n,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(a,e,i,n);else for(var s=a.length-1;s>=0;s--)(r=a[s])&&(t=(o<3?r(t):o>3?r(e,i,t):r(e,i))||t);return o>3&&t&&Object.defineProperty(e,i,t),t};let k=class extends h{render(){return this.style.cssText=`
|
|
1732
1732
|
grid-template-rows: ${this.gridTemplateRows};
|
|
1733
1733
|
grid-template-columns: ${this.gridTemplateColumns};
|
|
1734
1734
|
justify-items: ${this.justifyItems};
|
|
@@ -1746,7 +1746,7 @@ import{i as v,e as L,r as R,a as h,b as l,C as y,A as m,O as U,c as w,E as N,R a
|
|
|
1746
1746
|
margin-right: ${this.margin&&Y.getSpacingStyles(this.margin,1)};
|
|
1747
1747
|
margin-bottom: ${this.margin&&Y.getSpacingStyles(this.margin,2)};
|
|
1748
1748
|
margin-left: ${this.margin&&Y.getSpacingStyles(this.margin,3)};
|
|
1749
|
-
`,l`<slot></slot>`}};k.styles=[R,Oi];
|
|
1749
|
+
`,l`<slot></slot>`}};k.styles=[R,Oi];A([c()],k.prototype,"gridTemplateRows",void 0);A([c()],k.prototype,"gridTemplateColumns",void 0);A([c()],k.prototype,"justifyItems",void 0);A([c()],k.prototype,"alignItems",void 0);A([c()],k.prototype,"justifyContent",void 0);A([c()],k.prototype,"alignContent",void 0);A([c()],k.prototype,"columnGap",void 0);A([c()],k.prototype,"rowGap",void 0);A([c()],k.prototype,"gap",void 0);A([c()],k.prototype,"padding",void 0);A([c()],k.prototype,"margin",void 0);k=A([p("wui-grid")],k);const Si=v`
|
|
1750
1750
|
button {
|
|
1751
1751
|
display: flex;
|
|
1752
1752
|
flex-direction: column;
|
|
@@ -1807,29 +1807,29 @@ import{i as v,e as L,r as R,a as h,b as l,C as y,A as m,O as U,c as w,E as N,R a
|
|
|
1807
1807
|
width: 100%;
|
|
1808
1808
|
}
|
|
1809
1809
|
}
|
|
1810
|
-
`;var Oe=function(a,e,i,n){var o=arguments.length,t=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,i):n,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(a,e,i,n);else for(var s=a.length-1;s>=0;s--)(r=a[s])&&(t=(o<3?r(t):o>3?r(e,i,t):r(e,i))||t);return o>3&&t&&Object.defineProperty(e,i,t),t};let le=class extends h{constructor(){super(),this.observer=new IntersectionObserver(()=>{}),this.visible=!1,this.imageSrc=void 0,this.imageLoading=!1,this.wallet=void 0,this.observer=new IntersectionObserver(e=>{e.forEach(i=>{i.isIntersecting?(this.visible=!0,this.fetchImageSrc()):this.visible=!1})},{threshold:.01})}firstUpdated(){this.observer.observe(this)}disconnectedCallback(){this.observer.disconnect()}render(){
|
|
1810
|
+
`;var Oe=function(a,e,i,n){var o=arguments.length,t=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,i):n,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(a,e,i,n);else for(var s=a.length-1;s>=0;s--)(r=a[s])&&(t=(o<3?r(t):o>3?r(e,i,t):r(e,i))||t);return o>3&&t&&Object.defineProperty(e,i,t),t};let le=class extends h{constructor(){super(),this.observer=new IntersectionObserver(()=>{}),this.visible=!1,this.imageSrc=void 0,this.imageLoading=!1,this.wallet=void 0,this.observer=new IntersectionObserver(e=>{e.forEach(i=>{i.isIntersecting?(this.visible=!0,this.fetchImageSrc()):this.visible=!1})},{threshold:.01})}firstUpdated(){this.observer.observe(this)}disconnectedCallback(){this.observer.disconnect()}render(){const e=this.wallet?.badge_type==="certified";return l`
|
|
1811
1811
|
<button>
|
|
1812
1812
|
${this.imageTemplate()}
|
|
1813
1813
|
<wui-flex flexDirection="row" alignItems="center" justifyContent="center" gap="3xs">
|
|
1814
1814
|
<wui-text
|
|
1815
1815
|
variant="tiny-500"
|
|
1816
1816
|
color="inherit"
|
|
1817
|
-
class=${
|
|
1818
|
-
>${
|
|
1817
|
+
class=${d(e?"certified":void 0)}
|
|
1818
|
+
>${this.wallet?.name}</wui-text
|
|
1819
1819
|
>
|
|
1820
1820
|
${e?l`<wui-icon size="sm" name="walletConnectBrown"></wui-icon>`:null}
|
|
1821
1821
|
</wui-flex>
|
|
1822
1822
|
</button>
|
|
1823
|
-
`}imageTemplate(){
|
|
1823
|
+
`}imageTemplate(){return!this.visible&&!this.imageSrc||this.imageLoading?this.shimmerTemplate():l`
|
|
1824
1824
|
<wui-wallet-image
|
|
1825
1825
|
size="md"
|
|
1826
|
-
imageSrc=${
|
|
1827
|
-
name=${
|
|
1828
|
-
.installed=${
|
|
1826
|
+
imageSrc=${d(this.imageSrc)}
|
|
1827
|
+
name=${this.wallet?.name}
|
|
1828
|
+
.installed=${this.wallet?.installed}
|
|
1829
1829
|
badgeSize="sm"
|
|
1830
1830
|
>
|
|
1831
1831
|
</wui-wallet-image>
|
|
1832
|
-
`}shimmerTemplate(){return l`<wui-shimmer width="56px" height="56px" borderRadius="xs"></wui-shimmer>`}async fetchImageSrc(){this.wallet&&(this.imageSrc=E.getWalletImage(this.wallet),!this.imageSrc&&(this.imageLoading=!0,this.imageSrc=await E.fetchWalletImage(this.wallet.image_id),this.imageLoading=!1))}};le.styles=Si;Oe([
|
|
1832
|
+
`}shimmerTemplate(){return l`<wui-shimmer width="56px" height="56px" borderRadius="xs"></wui-shimmer>`}async fetchImageSrc(){this.wallet&&(this.imageSrc=E.getWalletImage(this.wallet),!this.imageSrc&&(this.imageLoading=!0,this.imageSrc=await E.fetchWalletImage(this.wallet.image_id),this.imageLoading=!1))}};le.styles=Si;Oe([u()],le.prototype,"visible",void 0);Oe([u()],le.prototype,"imageSrc",void 0);Oe([u()],le.prototype,"imageLoading",void 0);Oe([c()],le.prototype,"wallet",void 0);le=Oe([p("w3m-all-wallets-list-item")],le);const ji=v`
|
|
1833
1833
|
wui-grid {
|
|
1834
1834
|
max-height: clamp(360px, 400px, 80vh);
|
|
1835
1835
|
overflow: scroll;
|
|
@@ -1858,7 +1858,7 @@ import{i as v,e as L,r as R,a as h,b as l,C as y,A as m,O as U,c as w,E as N,R a
|
|
|
1858
1858
|
justify-content: center;
|
|
1859
1859
|
grid-column: 1 / span 4;
|
|
1860
1860
|
}
|
|
1861
|
-
`;var be=function(a,e,i,n){var o=arguments.length,t=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,i):n,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(a,e,i,n);else for(var s=a.length-1;s>=0;s--)(r=a[s])&&(t=(o<3?r(t):o>3?r(e,i,t):r(e,i))||t);return o>3&&t&&Object.defineProperty(e,i,t),t};const _t="local-paginator";let te=class extends h{constructor(){super(),this.unsubscribe=[],this.paginationObserver=void 0,this.loading=!m.state.wallets.length,this.wallets=m.state.wallets,this.recommended=m.state.recommended,this.featured=m.state.featured,this.filteredWallets=m.state.filteredWallets,this.unsubscribe.push(m.subscribeKey("wallets",e=>this.wallets=e),m.subscribeKey("recommended",e=>this.recommended=e),m.subscribeKey("featured",e=>this.featured=e),m.subscribeKey("filteredWallets",e=>this.filteredWallets=e))}firstUpdated(){this.initialFetch(),this.createPaginationObserver()}disconnectedCallback(){
|
|
1861
|
+
`;var be=function(a,e,i,n){var o=arguments.length,t=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,i):n,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(a,e,i,n);else for(var s=a.length-1;s>=0;s--)(r=a[s])&&(t=(o<3?r(t):o>3?r(e,i,t):r(e,i))||t);return o>3&&t&&Object.defineProperty(e,i,t),t};const _t="local-paginator";let te=class extends h{constructor(){super(),this.unsubscribe=[],this.paginationObserver=void 0,this.loading=!m.state.wallets.length,this.wallets=m.state.wallets,this.recommended=m.state.recommended,this.featured=m.state.featured,this.filteredWallets=m.state.filteredWallets,this.unsubscribe.push(m.subscribeKey("wallets",e=>this.wallets=e),m.subscribeKey("recommended",e=>this.recommended=e),m.subscribeKey("featured",e=>this.featured=e),m.subscribeKey("filteredWallets",e=>this.filteredWallets=e))}firstUpdated(){this.initialFetch(),this.createPaginationObserver()}disconnectedCallback(){this.unsubscribe.forEach(e=>e()),this.paginationObserver?.disconnect()}render(){return l`
|
|
1862
1862
|
<wui-grid
|
|
1863
1863
|
data-scroll=${!this.loading}
|
|
1864
1864
|
.padding=${["0","s","s","s"]}
|
|
@@ -1869,14 +1869,14 @@ import{i as v,e as L,r as R,a as h,b as l,C as y,A as m,O as U,c as w,E as N,R a
|
|
|
1869
1869
|
${this.loading?this.shimmerTemplate(16):this.walletsTemplate()}
|
|
1870
1870
|
${this.paginationLoaderTemplate()}
|
|
1871
1871
|
</wui-grid>
|
|
1872
|
-
`}async initialFetch(){
|
|
1873
|
-
<wui-card-select-loader type="wallet" id=${
|
|
1874
|
-
`)}walletsTemplate(){
|
|
1872
|
+
`}async initialFetch(){this.loading=!0;const e=this.shadowRoot?.querySelector("wui-grid");e&&(await m.fetchWalletsByPage({page:1}),await e.animate([{opacity:1},{opacity:0}],{duration:200,fill:"forwards",easing:"ease"}).finished,this.loading=!1,e.animate([{opacity:0},{opacity:1}],{duration:200,fill:"forwards",easing:"ease"}))}shimmerTemplate(e,i){return[...Array(e)].map(()=>l`
|
|
1873
|
+
<wui-card-select-loader type="wallet" id=${d(i)}></wui-card-select-loader>
|
|
1874
|
+
`)}walletsTemplate(){const e=this.filteredWallets?.length>0?w.uniqueBy([...this.featured,...this.recommended,...this.filteredWallets],"id"):w.uniqueBy([...this.featured,...this.recommended,...this.wallets],"id");return Ke.markWalletsAsInstalled(e).map(n=>l`
|
|
1875
1875
|
<w3m-all-wallets-list-item
|
|
1876
|
-
@click=${()=>this.onConnectWallet(
|
|
1877
|
-
.wallet=${
|
|
1876
|
+
@click=${()=>this.onConnectWallet(n)}
|
|
1877
|
+
.wallet=${n}
|
|
1878
1878
|
></w3m-all-wallets-list-item>
|
|
1879
|
-
`)}paginationLoaderTemplate(){const{wallets:e,recommended:i,featured:n,count:o}=m.state,t=window.innerWidth<352?3:4,r=e.length+i.length;let f=Math.ceil(r/t)*t-r+t;return f-=e.length?n.length%t:0,o===0&&n.length>0?null:o===0||[...n,...e,...i].length<o?this.shimmerTemplate(f,_t):null}createPaginationObserver(){
|
|
1879
|
+
`)}paginationLoaderTemplate(){const{wallets:e,recommended:i,featured:n,count:o}=m.state,t=window.innerWidth<352?3:4,r=e.length+i.length;let f=Math.ceil(r/t)*t-r+t;return f-=e.length?n.length%t:0,o===0&&n.length>0?null:o===0||[...n,...e,...i].length<o?this.shimmerTemplate(f,_t):null}createPaginationObserver(){const e=this.shadowRoot?.querySelector(`#${_t}`);e&&(this.paginationObserver=new IntersectionObserver(([i])=>{if(i?.isIntersecting&&!this.loading){const{page:n,count:o,wallets:t}=m.state;t.length<o&&m.fetchWalletsByPage({page:n+1})}}),this.paginationObserver.observe(e))}onConnectWallet(e){y.selectWalletConnector(e)}};te.styles=ji;be([u()],te.prototype,"loading",void 0);be([u()],te.prototype,"wallets",void 0);be([u()],te.prototype,"recommended",void 0);be([u()],te.prototype,"featured",void 0);be([u()],te.prototype,"filteredWallets",void 0);te=be([p("w3m-all-wallets-list")],te);const Ti=v`
|
|
1880
1880
|
wui-grid,
|
|
1881
1881
|
wui-loading-spinner,
|
|
1882
1882
|
wui-flex {
|
|
@@ -1943,7 +1943,7 @@ import{i as v,e as L,r as R,a as h,b as l,C as y,A as m,O as U,c as w,E as N,R a
|
|
|
1943
1943
|
No Wallet found
|
|
1944
1944
|
</wui-text>
|
|
1945
1945
|
</wui-flex>
|
|
1946
|
-
`}onConnectWallet(e){y.selectWalletConnector(e)}};we.styles=Ti;Je([
|
|
1946
|
+
`}onConnectWallet(e){y.selectWalletConnector(e)}};we.styles=Ti;Je([u()],we.prototype,"loading",void 0);Je([c()],we.prototype,"query",void 0);Je([c()],we.prototype,"badge",void 0);we=Je([p("w3m-all-wallets-search")],we);var mt=function(a,e,i,n){var o=arguments.length,t=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,i):n,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(a,e,i,n);else for(var s=a.length-1;s>=0;s--)(r=a[s])&&(t=(o<3?r(t):o>3?r(e,i,t):r(e,i))||t);return o>3&&t&&Object.defineProperty(e,i,t),t};let Ve=class extends h{constructor(){super(...arguments),this.search="",this.onDebouncedSearch=w.debounce(e=>{this.search=e})}render(){const e=this.search.length>=2;return l`
|
|
1947
1947
|
<wui-flex .padding=${["0","s","s","s"]} gap="xs">
|
|
1948
1948
|
<wui-search-bar @inputChange=${this.onInputChange.bind(this)}></wui-search-bar>
|
|
1949
1949
|
<wui-certified-switch
|
|
@@ -1955,8 +1955,8 @@ import{i as v,e as L,r as R,a as h,b as l,C as y,A as m,O as U,c as w,E as N,R a
|
|
|
1955
1955
|
</wui-flex>
|
|
1956
1956
|
${e||this.badge?l`<w3m-all-wallets-search
|
|
1957
1957
|
query=${this.search}
|
|
1958
|
-
badge=${
|
|
1959
|
-
></w3m-all-wallets-search>`:l`<w3m-all-wallets-list badge=${
|
|
1958
|
+
badge=${d(this.badge)}
|
|
1959
|
+
></w3m-all-wallets-search>`:l`<w3m-all-wallets-list badge=${d(this.badge)}></w3m-all-wallets-list>`}
|
|
1960
1960
|
`}onInputChange(e){this.onDebouncedSearch(e.detail)}onClick(){if(this.badge==="certified"){this.badge=void 0;return}this.badge="certified",je.showSvg("Only WalletConnect certified",{icon:"walletConnectBrown",iconColor:"accent-100"})}qrButtonTemplate(){return w.isMobile()?l`
|
|
1961
1961
|
<wui-icon-box
|
|
1962
1962
|
size="lg"
|
|
@@ -1969,7 +1969,7 @@ import{i as v,e as L,r as R,a as h,b as l,C as y,A as m,O as U,c as w,E as N,R a
|
|
|
1969
1969
|
borderColor="wui-accent-glass-010"
|
|
1970
1970
|
@click=${this.onWalletConnectQr.bind(this)}
|
|
1971
1971
|
></wui-icon-box>
|
|
1972
|
-
`:null}onWalletConnectQr(){W.push("ConnectingWalletConnect")}};mt([
|
|
1972
|
+
`:null}onWalletConnectQr(){W.push("ConnectingWalletConnect")}};mt([u()],Ve.prototype,"search",void 0);mt([u()],Ve.prototype,"badge",void 0);Ve=mt([p("w3m-all-wallets-view")],Ve);const Ei=v`
|
|
1973
1973
|
button {
|
|
1974
1974
|
column-gap: var(--wui-spacing-s);
|
|
1975
1975
|
padding: 11px 18px 11px var(--wui-spacing-s);
|
|
@@ -2057,8 +2057,8 @@ import{i as v,e as L,r as R,a as h,b as l,C as y,A as m,O as U,c as w,E as N,R a
|
|
|
2057
2057
|
<button
|
|
2058
2058
|
?disabled=${this.loading?!0:!!this.disabled}
|
|
2059
2059
|
data-loading=${this.loading}
|
|
2060
|
-
data-iconvariant=${
|
|
2061
|
-
tabindex=${
|
|
2060
|
+
data-iconvariant=${d(this.iconVariant)}
|
|
2061
|
+
tabindex=${d(this.tabIdx)}
|
|
2062
2062
|
>
|
|
2063
2063
|
${this.loadingTemplate()} ${this.visualTemplate()}
|
|
2064
2064
|
<wui-flex gap="3xs">
|
|
@@ -2079,12 +2079,12 @@ import{i as v,e as L,r as R,a as h,b as l,C as y,A as m,O as U,c as w,E as N,R a
|
|
|
2079
2079
|
`}return null}loadingTemplate(){return this.loading?l`<wui-loading-spinner
|
|
2080
2080
|
data-testid="wui-list-item-loading-spinner"
|
|
2081
2081
|
color="fg-300"
|
|
2082
|
-
></wui-loading-spinner>`:l``}chevronTemplate(){return this.chevron?l`<wui-icon size="inherit" color="fg-200" name="chevronRight"></wui-icon>`:null}};P.styles=[R,L,Ei];M([c()],P.prototype,"icon",void 0);M([c()],P.prototype,"iconSize",void 0);M([c()],P.prototype,"tabIdx",void 0);M([c()],P.prototype,"variant",void 0);M([c()],P.prototype,"iconVariant",void 0);M([c({type:Boolean})],P.prototype,"disabled",void 0);M([c()],P.prototype,"imageSrc",void 0);M([c()],P.prototype,"alt",void 0);M([c({type:Boolean})],P.prototype,"chevron",void 0);M([c({type:Boolean})],P.prototype,"loading",void 0);P=M([p("wui-list-item")],P);var ki=function(a,e,i,n){var o=arguments.length,t=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,i):n,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(a,e,i,n);else for(var s=a.length-1;s>=0;s--)(r=a[s])&&(t=(o<3?r(t):o>3?r(e,i,t):r(e,i))||t);return o>3&&t&&Object.defineProperty(e,i,t),t};let It=class extends h{constructor(){
|
|
2082
|
+
></wui-loading-spinner>`:l``}chevronTemplate(){return this.chevron?l`<wui-icon size="inherit" color="fg-200" name="chevronRight"></wui-icon>`:null}};P.styles=[R,L,Ei];M([c()],P.prototype,"icon",void 0);M([c()],P.prototype,"iconSize",void 0);M([c()],P.prototype,"tabIdx",void 0);M([c()],P.prototype,"variant",void 0);M([c()],P.prototype,"iconVariant",void 0);M([c({type:Boolean})],P.prototype,"disabled",void 0);M([c()],P.prototype,"imageSrc",void 0);M([c()],P.prototype,"alt",void 0);M([c({type:Boolean})],P.prototype,"chevron",void 0);M([c({type:Boolean})],P.prototype,"loading",void 0);P=M([p("wui-list-item")],P);var ki=function(a,e,i,n){var o=arguments.length,t=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,i):n,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(a,e,i,n);else for(var s=a.length-1;s>=0;s--)(r=a[s])&&(t=(o<3?r(t):o>3?r(e,i,t):r(e,i))||t);return o>3&&t&&Object.defineProperty(e,i,t),t};let It=class extends h{constructor(){super(...arguments),this.wallet=W.state.data?.wallet}render(){if(!this.wallet)throw new Error("w3m-downloads-view");return l`
|
|
2083
2083
|
<wui-flex gap="xs" flexDirection="column" .padding=${["s","s","l","s"]}>
|
|
2084
2084
|
${this.chromeTemplate()} ${this.iosTemplate()} ${this.androidTemplate()}
|
|
2085
2085
|
${this.homepageTemplate()}
|
|
2086
2086
|
</wui-flex>
|
|
2087
|
-
`}chromeTemplate(){
|
|
2087
|
+
`}chromeTemplate(){return this.wallet?.chrome_store?l`<wui-list-item
|
|
2088
2088
|
variant="icon"
|
|
2089
2089
|
icon="chromeStore"
|
|
2090
2090
|
iconVariant="square"
|
|
@@ -2092,7 +2092,7 @@ import{i as v,e as L,r as R,a as h,b as l,C as y,A as m,O as U,c as w,E as N,R a
|
|
|
2092
2092
|
chevron
|
|
2093
2093
|
>
|
|
2094
2094
|
<wui-text variant="paragraph-500" color="fg-100">Chrome Extension</wui-text>
|
|
2095
|
-
</wui-list-item>`:null}iosTemplate(){
|
|
2095
|
+
</wui-list-item>`:null}iosTemplate(){return this.wallet?.app_store?l`<wui-list-item
|
|
2096
2096
|
variant="icon"
|
|
2097
2097
|
icon="appStore"
|
|
2098
2098
|
iconVariant="square"
|
|
@@ -2100,7 +2100,7 @@ import{i as v,e as L,r as R,a as h,b as l,C as y,A as m,O as U,c as w,E as N,R a
|
|
|
2100
2100
|
chevron
|
|
2101
2101
|
>
|
|
2102
2102
|
<wui-text variant="paragraph-500" color="fg-100">iOS App</wui-text>
|
|
2103
|
-
</wui-list-item>`:null}androidTemplate(){
|
|
2103
|
+
</wui-list-item>`:null}androidTemplate(){return this.wallet?.play_store?l`<wui-list-item
|
|
2104
2104
|
variant="icon"
|
|
2105
2105
|
icon="playStore"
|
|
2106
2106
|
iconVariant="square"
|
|
@@ -2108,7 +2108,7 @@ import{i as v,e as L,r as R,a as h,b as l,C as y,A as m,O as U,c as w,E as N,R a
|
|
|
2108
2108
|
chevron
|
|
2109
2109
|
>
|
|
2110
2110
|
<wui-text variant="paragraph-500" color="fg-100">Android App</wui-text>
|
|
2111
|
-
</wui-list-item>`:null}homepageTemplate(){
|
|
2111
|
+
</wui-list-item>`:null}homepageTemplate(){return this.wallet?.homepage?l`
|
|
2112
2112
|
<wui-list-item
|
|
2113
2113
|
variant="icon"
|
|
2114
2114
|
icon="browser"
|
|
@@ -2118,4 +2118,4 @@ import{i as v,e as L,r as R,a as h,b as l,C as y,A as m,O as U,c as w,E as N,R a
|
|
|
2118
2118
|
>
|
|
2119
2119
|
<wui-text variant="paragraph-500" color="fg-100">Website</wui-text>
|
|
2120
2120
|
</wui-list-item>
|
|
2121
|
-
`:null}onChromeStore(){
|
|
2121
|
+
`:null}onChromeStore(){this.wallet?.chrome_store&&w.openHref(this.wallet.chrome_store,"_blank")}onAppStore(){this.wallet?.app_store&&w.openHref(this.wallet.app_store,"_blank")}onPlayStore(){this.wallet?.play_store&&w.openHref(this.wallet.play_store,"_blank")}onHomePage(){this.wallet?.homepage&&w.openHref(this.wallet.homepage,"_blank")}};It=ki([p("w3m-downloads-view")],It);export{Ve as W3mAllWalletsView,lt as W3mConnectingWcBasicView,It as W3mDownloadsView};
|