1import{bS as b,bQ as T,bR as _,b_ as d,r as o,j as g,b$ as y,c0 as E}from"./index-C_XK7NmV.js";import{Z as I}from"./ConnectWalletView-tpdAD3K7-DNlcVV3x.js";import"./QrCode-BI2LxLLg-BoeFerDD.js";import"./Button-OlK_6fKk-BLYKzc7C.js";import"./copy-Bx2Jwc5_-Dq2AIzLw.js";import"./ModalHeader-CxHK1IKF-COkWfTy4.js";import"./EmailInputForm-B4hjCxRU-Be1j3QRl.js";import"./ErrorMessage-Cx8GKGhL-BUHJyYsY.js";import"./useI18n-DIAzggWr-DyucOH6z.js";import"./WalletCards-DH1rqayz-DMJy_Kdl.js";import"./Screen-Dzz_AFFs-D3iPp0p6.js";import"./index-CJMgUOnw-HD9nTr57.js";import"./dijkstra-D_NXgYpA.js";const M={component:()=>{var c,s,i,p,u,m;let{setWalletConnectionStatus:r,closePrivyModal:R,inProgressAuthFlowRef:S}=b(),{data:e,navigate:n}=T(),l=_(),a=d(),w=(c=e==null?void 0:e.externalConnectWallet)==null?void 0:c.description,x=o.useRef(((s=e==null?void 0:e.externalConnectWallet)==null?void 0:s.walletList)??l.appearance.walletList),f=o.useRef(((i=e==null?void 0:e.externalConnectWallet)==null?void 0:i.walletChainType)??l.appearance.walletChainType),h=x.current,L=f.current,N=S.current==="link"?void 0:()=>n("LandingScreen");return g.jsx(I,{walletList:h,walletChainType:L,onClose:R,onConnect:o.useCallback(({connector:t,wallet:C})=>{var W;a("connectWallet","onSuccess",{wallet:C}),r({status:"connected",connectedWallet:C,connector:t,connectError:null,connectRetry:()=>null}),n("ConnectionStatusScreen",!((W=e==null?void 0:e.externalConnectWallet)!=null&&W.preSelectedWalletId))},[r,n,(p=e==null?void 0:e.login)==null?void 0:p.disableSignup,(u=e==null?void 0:e.externalConnectWallet)==null?void 0:u.preSelectedWalletId]),onConnectError:t=>{t instanceof y?(console.warn(t.cause?t.cause:t.message),a("connectWallet","onError",t.privyErrorCode||E.GENERIC_CONNECT_WALLET_ERROR)):(console.warn(t),a("connectWallet","onError",E.UNKNOWN_CONNECT_WALLET_ERROR))},onBack:N,customDescription:w||"",preSelectedWalletId:(m=e==null?void 0:e.externalConnectWallet)==null?void 0:m.preSelectedWalletId,app:l})},isUnauthenticatedScreem:!0};export{M as AuthenticateWithWalletScreen,M as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.