"use strict";var e=require("react/jsx-runtime"),r=require("react"),t=require("./context-rs-ygOK2.js"),n=require("./errors-CBapWvRs.js"),i=require("./events-context-Di6--rDg.js"),o=require("./internal-context-CdsQ3LEl.js"),a=require("./modal-context-BgeioxwT.js"),l=require("./ConnectWalletView-DM2o0nGM.js");require("@privy-io/js-sdk-core"),require("tinycolor2"),require("ofetch"),require("@heroicons/react/24/outline"),require("@tanstack/react-virtual"),require("react-device-detect"),require("styled-components"),require("./ModalHeader-Cpls13mi.js"),require("./useActiveWallet-dTc6deka.js"),require("viem/utils"),require("./wallet-connect-BuohfvHK.js"),require("./getPublicClient-CFd_sHBk.js"),require("viem"),require("viem/chains"),require("eventemitter3"),require("./privy-context-UTJouJ1x.js"),require("@privy-io/are-addresses-equal"),require("./index-Ub4KpwSY.js"),require("zustand"),require("./get-entropy-details-for-user-D63rM5_a.js"),require("./user-D2oPA-vS.js"),require("@heroicons/react/24/outline/ArrowLeftIcon"),require("@heroicons/react/24/outline/ArrowRightIcon"),require("@heroicons/react/24/outline/QuestionMarkCircleIcon"),require("@heroicons/react/24/outline/XMarkIcon"),require("./CopyableText-SJxK10XO.js"),require("lucide-react"),require("./Link-BdtTp2J4.js"),require("./QrCode-ErbyIBDF.js"),require("qrcode"),require("./EmailInputForm-Y-nHsEtF.js"),require("./ErrorMessage-BfTVyue9.js"),require("./useI18n-DMbkgRzj.js"),require("./WalletCards-BfpeHH5n.js"),require("./styles-COEGLFkM.js"),require("./Screen-8NusMFtu.js"),require("./index-ByFhjjzH.js");const c={component:()=>{let{closePrivyModal:c}=o.usePrivyInternal(),{data:s,navigate:u}=a.usePrivyModal(),q=t.useAppConfig(),d=i.useEmitPrivyEvent(),C=s?.externalConnectWallet?.description,p=r.useRef(s?.externalConnectWallet?.walletList??q.appearance.walletList),j=r.useRef(s?.externalConnectWallet?.walletChainType??q.appearance.walletChainType);/*#__PURE__*/return e.jsx(l.i,{walletList:p.current,walletChainType:j.current,preSelectedWalletId:s?.externalConnectWallet?.preSelectedWalletId,hideHeader:s?.externalConnectWallet?.hideHeader,onBack:s?.funding?()=>u("FundingMethodSelectionScreen"):void 0,onClose:()=>{d("connectWallet","onError",n.PrivyErrorCode.GENERIC_CONNECT_WALLET_ERROR),c()},onConnect:({connector:e,wallet:r})=>{d("connectWallet","onSuccess",{wallet:r});let t=s?.externalConnectWallet?.onCompleteNavigateTo;t?u(t({address:r.address,walletClientType:e?.walletClientType,walletChainType:e?.chainType})):c()},onConnectError:e=>{e instanceof n.PrivyError?(console.warn(e.cause?e.cause:e.message),d("connectWallet","onError",e.privyErrorCode||n.PrivyErrorCode.GENERIC_CONNECT_WALLET_ERROR)):(console.warn(e),d("connectWallet","onError",n.PrivyErrorCode.UNKNOWN_CONNECT_WALLET_ERROR))},customDescription:C,app:q,connectOnly:!0})},isUnauthenticatedScreem:!0};exports.ConnectOnlyLandingScreen=c,exports.default=c;
//# sourceMappingURL=ConnectOnlyLandingScreen-TVWwa7Up.js.map
