import{jsx as e}from"react/jsx-runtime";import{useRef as t}from"react";import{u as o}from"./context-BKnOUECq.mjs";import{b as r,a as n}from"./errors-Dd6zfYtp.mjs";import{a as i}from"./events-context-BJ75xIIf.mjs";import{u as a}from"./internal-context-dfitw7Ot.mjs";import{u as l}from"./modal-context-DBwfUxD-.mjs";import{i as m}from"./ConnectWalletView-Bbw4fdoE.mjs";import"@privy-io/js-sdk-core";import"tinycolor2";import"ofetch";import"@heroicons/react/24/outline";import"@tanstack/react-virtual";import"react-device-detect";import"styled-components";import"./ModalHeader-DffkxvO4.mjs";import"./useActiveWallet-BEfvREjE.mjs";import"viem/utils";import"./wallet-connect-58EobR5U.mjs";import"./getPublicClient-D4yNgeGy.mjs";import"viem";import"viem/chains";import"eventemitter3";import"./privy-context-Bi6vqCPc.mjs";import"@privy-io/are-addresses-equal";import"./index-BtwxknTg.mjs";import"zustand";import"./get-entropy-details-for-user-BIWg0YxF.mjs";import"./user-D5cqJNp9.mjs";import"@heroicons/react/24/outline/ArrowLeftIcon";import"@heroicons/react/24/outline/ArrowRightIcon";import"@heroicons/react/24/outline/QuestionMarkCircleIcon";import"@heroicons/react/24/outline/XMarkIcon";import"./CopyableText-ChtfBWx4.mjs";import"lucide-react";import"./Link-DJ5gq9Di.mjs";import"./QrCode-CvO4k-hN.mjs";import"qrcode";import"./EmailInputForm-Dgoii4vf.mjs";import"./ErrorMessage-D8VaAP5m.mjs";import"./useI18n-nYc5Yqb0.mjs";import"./WalletCards-DH1rqayz.mjs";import"./styles-DVyDvTdj.mjs";import"./Screen-D8KNyGVj.mjs";import"./index-Dq_xe9dz.mjs";const c={component:()=>{let{closePrivyModal:c}=a(),{data:s,navigate:p}=l(),d=o(),u=i(),C=s?.externalConnectWallet?.description,j=t(s?.externalConnectWallet?.walletList??d.appearance.walletList),E=t(s?.externalConnectWallet?.walletChainType??d.appearance.walletChainType);/*#__PURE__*/return e(m,{walletList:j.current,walletChainType:E.current,preSelectedWalletId:s?.externalConnectWallet?.preSelectedWalletId,hideHeader:s?.externalConnectWallet?.hideHeader,onBack:s?.funding?()=>p("FundingMethodSelectionScreen"):void 0,onClose:()=>{u("connectWallet","onError",n.GENERIC_CONNECT_WALLET_ERROR),c()},onConnect:({connector:e,wallet:t})=>{u("connectWallet","onSuccess",{wallet:t});let o=s?.externalConnectWallet?.onCompleteNavigateTo;o?p(o({address:t.address,walletClientType:e?.walletClientType,walletChainType:e?.chainType})):c()},onConnectError:e=>{e instanceof r?(console.warn(e.cause?e.cause:e.message),u("connectWallet","onError",e.privyErrorCode||n.GENERIC_CONNECT_WALLET_ERROR)):(console.warn(e),u("connectWallet","onError",n.UNKNOWN_CONNECT_WALLET_ERROR))},customDescription:C,app:d,connectOnly:!0})},isUnauthenticatedScreem:!0};export{c as ConnectOnlyLandingScreen,c as default};
//# sourceMappingURL=ConnectOnlyLandingScreen-BIns1jA9.mjs.map
