import{o as e}from"./rolldown-runtime-iuO8RvI4.js";import{Mi as s,ki as o}from"./vendor-frame-CwiylG4Y.js";import{$r as r,Qf as a,Qr as i,xc as t}from"./shared-1-3-6x7RKF.js";import{nn as d}from"./vendor-all-2-BJdkbLSj.js";import{i as n}from"./c4725dcf4-CcJtBCoO.js";import{Bd as l}from"./shared-4-6CEyRAHb.js";var c=e(s()),u=o(),m=({supportEmailAddress:e,headline:s,subheading:o,autoRedirectSeconds:m})=>{const{delete:f}=r();i();const[p,h]=(0,c.useState)(m);return(0,c.useEffect)(()=>{if(void 0===p)return;if(p<=0)return f(),void(window.location.href="/");const e=setTimeout(()=>{h(e=>void 0!==e?e-1:void 0)},1e3);return()=>clearTimeout(e)},[p,f]),(0,u.jsxs)("div",{className:"flex min-h-screen flex-col pb-8",children:[(0,u.jsx)(n,{showLogo:!1,backButtonClassName:"top-4"}),(0,u.jsx)(l,{productSurface:"claude-ai",headline:s,subheading:(0,u.jsxs)(u.Fragment,{children:[o,e&&(0,u.jsx)("div",{children:(0,u.jsx)(d,{defaultMessage:"Please reach out to {supportEmailAddress} for assistance. We\u2019ll set you up with an API credit package.",id:"7EpxCgXyyN",values:{supportEmailAddress:(0,u.jsx)(t,{href:`mailto:${e}`,children:e})}})})]}),button:(0,u.jsx)(a,{onClick:()=>{f(),window.location.href="/"},children:void 0!==p?(0,u.jsx)(d,{defaultMessage:"Home in {countdown}s",id:"WRc35/ML1T",values:{countdown:p}}):(0,u.jsx)(d,{defaultMessage:"Home",id:"ejEGdxSUGs"})})})]})};export{m as t};