import"./rolldown-runtime.js";import{n as e,t}from"./jsx-runtime.js";import{j as n}from"./useActiveWallet-CEs8euQ3.js";import{k as r}from"./context-Cdw68BC2.js";import{t as i}from"./modal-context-DHfp-mFQ.js";import{t as a}from"./lock.js";import{t as o}from"./ScreenLayout-Dy-3vlz4.js";import{t as s}from"./safe-url-D7SRPu33.js";var c=t();e(),n();var l=({title:e=`You don't have access to this app`,subtitle:t=`Have you been invited?`,ctaText:n=`Try another account`,ctaLink:r,onCtaClick:i})=>(0,c.jsx)(o,{title:e,subtitle:t,icon:a,iconVariant:`warning`,primaryCta:{label:n,onClick:()=>{let e=s(r);e?window.open(e,`_blank`,`noopener,noreferrer`):i?.()}},watermark:!0}),u={component:()=>{let{navigate:e}=i(),t=r(),n=t?.allowlistConfig.errorTitle||`You don't have access to this app`,a=t?.allowlistConfig.errorDetail||`Have you been invited?`,o=t?.allowlistConfig.errorCtaText||`Try another account`,s=t?.allowlistConfig.errorCtaLink;return(0,c.jsx)(l,{title:n,subtitle:a,ctaText:o,ctaLink:s??void 0,onCtaClick:()=>{e(`LandingScreen`)}})}};export{u as AllowlistRejectionScreen,u as default,l as AllowlistRejectionScreenView};