"use strict";var e=require("react/jsx-runtime"),r=require("./Link-BdtTp2J4.js"),t=require("./TodoList-Cii_KrAk.js"),i=require("./modal-context-BgeioxwT.js"),l=require("./ScreenLayout-DaFW0I3a.js");require("styled-components"),require("lucide-react"),require("react"),require("./context-rs-ygOK2.js"),require("@privy-io/js-sdk-core"),require("tinycolor2"),require("./internal-context-CdsQ3LEl.js"),require("./ModalHeader-Cpls13mi.js"),require("./useActiveWallet-dTc6deka.js"),require("viem/utils"),require("./wallet-connect-BuohfvHK.js"),require("./errors-CBapWvRs.js"),require("ofetch"),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=({walletName:i,installLink:a,title:s,subtitle:n="Follow the instructions below to get started.",onReload:o,onBack:u})=>{let c=s||`Create a ${i} wallet`.replace(/wallet wallet/gi,"wallet"),d=/*#__PURE__*/e.jsxs(e.Fragment,{children:[/*#__PURE__*/e.jsx("span",{children:"Still not sure? "}),/*#__PURE__*/e.jsx(r.Link,{size:"sm",target:"_blank",href:"https://solana.com/docs/intro/wallets",children:"Learn more"})]});/*#__PURE__*/return e.jsx(l.ScreenLayout,{title:c,subtitle:n,onBack:u,showBack:!0,primaryCta:{label:"Reload the page to use your wallet",onClick:o},helpText:d,watermark:!0,children:/*#__PURE__*/e.jsxs(t.TodoList,{children:[/*#__PURE__*/e.jsx(t.TodoItem,{children:/*#__PURE__*/e.jsxs("div",{children:[/*#__PURE__*/e.jsx("span",{children:"Install the "})," ",/*#__PURE__*/e.jsxs(r.Link,{href:a,target:"_blank",children:[i," browser extension"]})]})}),/*#__PURE__*/e.jsx(t.TodoItem,{children:"Set up your first wallet"}),/*#__PURE__*/e.jsx(t.TodoItem,{children:"Store your recovery phrase in a safe place!"})]})})},s={component:()=>{let{navigateBack:r,data:t}=i.usePrivyModal();if(!t?.installWalletModalData)throw Error("Wallet data is missing");let{walletConfig:l}=t.installWalletModalData;/*#__PURE__*/return e.jsx(a,{walletName:l.name,installLink:l.installLink,onReload:()=>{window.location.reload()},onBack:r})}};exports.InstallWalletScreen=s,exports.InstallWalletScreenView=a,exports.default=s;
//# sourceMappingURL=InstallWalletScreen-D4P1ooe9.js.map
