1import{d5 as c,dB as u,d6 as d,da as m}from"./index-nWb-lFPJ.js";import{n as b}from"./ScreenLayout-DW4XCaib-VAf99_Fd.js";import"./ModalHeader-CxoNYPcm-GUOUaE7I.js";import"./Screen-DjSkXYWO-BZI1WbL0.js";import"./index-Dq_xe9dz-B9-IW4Kl.js";const h=({title:l,subtitle:i,buttonText:o,buttonHref:a,isLoading:e=!1,helpText:n,onButtonClick:r})=>c.jsx(b,{title:l,subtitle:i,primaryCta:{label:o,onClick:()=>{a&&window.open(a,"_self"),r?.()},disabled:e},helpText:n,watermark:!0}),W={component:()=>{let{ready:l}=u(),{data:i}=d(),[o,a]=m.useState(!1);if(!i?.installWalletModalData)throw Error("Wallet data is missing");let{walletConfig:e,connectOnly:n,chainType:r}=i.installWalletModalData,p=e.getMobileRedirect({useUniversalLink:!o,isSolana:r==="solana",connectOnly:n}),s=e.name.replace(/ wallet/gi,""),t={title:`Redirecting to ${s} Mobile Wallet`,description:`We'll take you to the ${s} Mobile Wallet app to continue your login experience.`,footnote:""};return l&&(t.description=`For the best experience, we'll automatically log you into the ${s} Mobile Wallet in-app browser.`,t.footnote="You can always return here to login via other methods."),o&&(t.title="Still here?",t.description=`You may need to install the ${e.name} mobile app.`,t.footnote=`Once you're done, you can connect with ${e.name} wallet to complete the login.`),c.jsx(h,{title:t.title,subtitle:t.description,buttonText:o?"Go to App Store":"Continue",buttonHref:p,isLoading:l&&!p,helpText:t.footnote||void 0,onButtonClick:()=>{setTimeout((()=>a(!0)),1e3)}})}};export{W as WalletInterstitialScreen,h as WalletInterstitialScreenView,W as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.