import{jsx as e,jsxs as o,Fragment as t}from"react/jsx-runtime";import{Lock as r}from"lucide-react";import{k as i}from"./errors-Dd6zfYtp.mjs";import{u as s}from"./internal-context-dfitw7Ot.mjs";import{u as m}from"./modal-context-DBwfUxD-.mjs";import{S as a}from"./ScreenLayout-Caq5mGD8.mjs";import"ofetch";import"react";import"./context-BKnOUECq.mjs";import"@privy-io/js-sdk-core";import"tinycolor2";import"./ModalHeader-DffkxvO4.mjs";import"styled-components";import"./useActiveWallet-BEfvREjE.mjs";import"viem/utils";import"./wallet-connect-58EobR5U.mjs";import"./getPublicClient-D4yNgeGy.mjs";import"viem";import"viem/chains";import"eventemitter3";import"./events-context-BJ75xIIf.mjs";import"./privy-context-Bi6vqCPc.mjs";import"@privy-io/are-addresses-equal";import"./index-BtwxknTg.mjs";import"zustand";import"react-device-detect";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"./Screen-D8KNyGVj.mjs";import"./index-Dq_xe9dz.mjs";const n=({onClose:i,onProceed:s})=>/*#__PURE__*/e(a,{title:"Secure Your Account",subtitle:/*#__PURE__*/o(t,{children:["Please set a password to secure your account.",/*#__PURE__*/e("br",{}),"Losing access to this password and this device will make your account inaccessible."]}),icon:r,primaryCta:{label:"Add password",onClick:s},onClose:i,watermark:!0}),c={component:()=>{let{closePrivyModal:o}=s(),{data:t,navigate:r,onUserCloseViaDialogOrKeybindRef:a}=m(),{onFailure:c}=t.setWalletPassword,l=()=>{c(new i("Exited before password was added to wallet")),o({shouldCallAuthOnSuccess:!1})};return a.current=l,/*#__PURE__*/e(n,{onClose:l,onProceed:()=>{r("EmbeddedWalletPasswordUpdateScreen")}})}};export{c as EmbeddedWalletPasswordUpdateSplashScreen,n as EmbeddedWalletPasswordUpdateSplashView,c as default};
//# sourceMappingURL=EmbeddedWalletPasswordUpdateSplashScreen-BrDd6mOD.mjs.map
