import"./rolldown-runtime.js";import{n as e,t}from"./jsx-runtime.js";import{Ct as n,Vt as r,j as i}from"./useActiveWallet-CEs8euQ3.js";import"./context-Cdw68BC2.js";import{t as a}from"./modal-context-DHfp-mFQ.js";import{t as o}from"./lock.js";import{t as s}from"./ScreenLayout-Dy-3vlz4.js";var c=t();e(),i();var l=({onClose:e,onProceed:t})=>(0,c.jsx)(s,{title:`Secure Your Account`,subtitle:(0,c.jsxs)(c.Fragment,{children:[`Please set a password to secure your account.`,(0,c.jsx)(`br`,{}),`Losing access to this password and this device will make your account inaccessible.`]}),icon:o,primaryCta:{label:`Add password`,onClick:t},onClose:e,watermark:!0}),u={component:()=>{let{closePrivyModal:e}=r(),{data:t,navigate:i,onUserCloseViaDialogOrKeybindRef:o}=a(),{onFailure:s}=t.setWalletPassword,u=()=>{s(new n(`Exited before password was added to wallet`)),e({shouldCallAuthOnSuccess:!1})};return o.current=u,(0,c.jsx)(l,{onClose:u,onProceed:()=>{i(`EmbeddedWalletPasswordUpdateScreen`)}})}};export{u as EmbeddedWalletPasswordUpdateSplashScreen,u as default,l as EmbeddedWalletPasswordUpdateSplashView};