"use strict";var e=require("react/jsx-runtime"),r=require("lucide-react"),i=require("./errors-CBapWvRs.js"),t=require("./internal-context-CdsQ3LEl.js"),s=require("./modal-context-BgeioxwT.js"),o=require("./ScreenLayout-DaFW0I3a.js");require("ofetch"),require("react"),require("./context-rs-ygOK2.js"),require("@privy-io/js-sdk-core"),require("tinycolor2"),require("./ModalHeader-Cpls13mi.js"),require("styled-components"),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("./events-context-Di6--rDg.js"),require("./privy-context-UTJouJ1x.js"),require("@privy-io/are-addresses-equal"),require("./index-Ub4KpwSY.js"),require("zustand"),require("react-device-detect"),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("./Screen-8NusMFtu.js"),require("./index-ByFhjjzH.js");const a=({onClose:i,onProceed:t})=>/*#__PURE__*/e.jsx(o.ScreenLayout,{title:"Secure Your Account",subtitle:/*#__PURE__*/e.jsxs(e.Fragment,{children:["Please set a password to secure your account.",/*#__PURE__*/e.jsx("br",{}),"Losing access to this password and this device will make your account inaccessible."]}),icon:r.Lock,primaryCta:{label:"Add password",onClick:t},onClose:i,watermark:!0}),u={component:()=>{let{closePrivyModal:r}=t.usePrivyInternal(),{data:o,navigate:u,onUserCloseViaDialogOrKeybindRef:n}=s.usePrivyModal(),{onFailure:c}=o.setWalletPassword,l=()=>{c(new i.PrivyEmbeddedWalletError("Exited before password was added to wallet")),r({shouldCallAuthOnSuccess:!1})};return n.current=l,/*#__PURE__*/e.jsx(a,{onClose:l,onProceed:()=>{u("EmbeddedWalletPasswordUpdateScreen")}})}};exports.EmbeddedWalletPasswordUpdateSplashScreen=u,exports.EmbeddedWalletPasswordUpdateSplashView=a,exports.default=u;
//# sourceMappingURL=EmbeddedWalletPasswordUpdateSplashScreen-Bce5lzCc.js.map
