import"./rolldown-runtime.js";import{n as e,t}from"./jsx-runtime.js";import{j as n}from"./useActiveWallet-CEs8euQ3.js";import"./context-Cdw68BC2.js";import{t as r}from"./modal-context-DHfp-mFQ.js";import{t as i}from"./ScreenLayout-Dy-3vlz4.js";import{t as a}from"./Link-DJ5gq9Di.js";import{n as o,t as s}from"./TodoList-CgrU7uwu.js";var c=t();e(),n();var l=({walletName:e,installLink:t,title:n,subtitle:r=`Follow the instructions below to get started.`,onReload:l,onBack:u})=>{let d=n||`Create a ${e} wallet`.replace(/wallet wallet/gi,`wallet`);return(0,c.jsx)(i,{title:d,subtitle:r,onBack:u,showBack:!0,primaryCta:{label:`Reload the page to use your wallet`,onClick:l},helpText:(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(`span`,{children:`Still not sure? `}),(0,c.jsx)(a,{size:`sm`,target:`_blank`,href:`https://solana.com/docs/intro/wallets`,children:`Learn more`})]}),watermark:!0,children:(0,c.jsxs)(s,{children:[(0,c.jsx)(o,{children:(0,c.jsxs)(`div`,{children:[(0,c.jsx)(`span`,{children:`Install the `}),` `,(0,c.jsxs)(a,{href:t,target:`_blank`,children:[e,` browser extension`]})]})}),(0,c.jsx)(o,{children:`Set up your first wallet`}),(0,c.jsx)(o,{children:`Store your recovery phrase in a safe place!`})]})})},u={component:()=>{let{navigateBack:e,data:t}=r();if(!t?.installWalletModalData)throw Error(`Wallet data is missing`);let{walletConfig:n}=t.installWalletModalData;return(0,c.jsx)(l,{walletName:n.name,installLink:n.installLink,onReload:()=>{window.location.reload()},onBack:e})}};export{u as InstallWalletScreen,u as default,l as InstallWalletScreenView};