1import{da as h,d7 as y,d8 as T,db as g,dc as o,d9 as I,dd as _,de as E}from"./index-DOGqP_A0.js";import{G as v}from"./ConnectWalletView-BVAP4U0_-fa4ofSvT.js";import"./QrCode-_SBrSSL8-BkvT1eXE.js";import"./ModalHeader-BZvDE1Dr-BtNIMM9z.js";import"./CopyableText-BCytXyJL-DCYN_YHt.js";import"./check-DpdevGJq.js";import"./createLucideIcon-B7T1Fhri.js";import"./copy-CBnXt-bu.js";import"./Link-DJ5gq9Di-CHsYnrDc.js";import"./EmailInputForm-Dgoii4vf-D0-gle8h.js";import"./ErrorMessage-D8VaAP5m-DOuarLiV.js";import"./useI18n-BS6p3k_--BugDS-Wh.js";import"./WalletCards-DH1rqayz-C9KooLbB.js";import"./Screen-qXNc802H-BtVBZSy8.js";import"./index-Dq_xe9dz-LBchaqrI.js";import"./dijkstra-D_NXgYpA.js";const H={component:()=>{var c,i,s,p,m,u;let{setWalletConnectionStatus:r,closePrivyModal:d,inProgressAuthFlowRef:w}=h(),{data:e,navigate:n}=y(),a=T(),l=g(),x=(c=e==null?void 0:e.externalConnectWallet)==null?void 0:c.description,R=o.useRef(((i=e==null?void 0:e.externalConnectWallet)==null?void 0:i.walletList)??a.appearance.walletList),S=o.useRef(((s=e==null?void 0:e.externalConnectWallet)==null?void 0:s.walletChainType)??a.appearance.walletChainType),f=R.current,L=S.current,N=w.current==="link"?void 0:()=>n("LandingScreen");return I.jsx(v,{walletList:f,walletChainType:L,onClose:d,onConnect:o.useCallback(({connector:t,wallet:C})=>{var W;l("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,(m=e==null?void 0:e.externalConnectWallet)==null?void 0:m.preSelectedWalletId]),onConnectError:t=>{t instanceof _?(console.warn(t.cause?t.cause:t.message),l("connectWallet","onError",t.privyErrorCode||E.GENERIC_CONNECT_WALLET_ERROR)):(console.warn(t),l("connectWallet","onError",E.UNKNOWN_CONNECT_WALLET_ERROR))},onBack:N,customDescription:x||"",preSelectedWalletId:(u=e==null?void 0:e.externalConnectWallet)==null?void 0:u.preSelectedWalletId,app:a})},isUnauthenticatedScreem:!0};export{H as AuthenticateWithWalletScreen,H 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.