1import{F as m,z as d,r as n,j as e,L as x}from"./index-FSPElTsR.js";import{a as p}from"./agora-sun.png.asset-BANnjqih.js";import{V as g}from"./VerifyCodeCard-CQpxfFBR.js";import"./arrow-right-DnSJb3E-.js";const r="agora.signup.verifyEmail";function S(t){if(!(typeof window>"u"))try{sessionStorage.setItem(r,t)}catch{}}function o(){if(typeof window>"u")return"";try{return sessionStorage.getItem(r)??""}catch{return""}}function h(){if(!(typeof window>"u"))try{sessionStorage.removeItem(r)}catch{}}function y(){if(typeof window>"u")return"/";const t=new URLSearchParams(window.location.search).get("next");return!t||!t.startsWith("/")||t.startsWith("//")?"/":t}function l(){return typeof window>"u"?"":new URLSearchParams(window.location.search).get("email")??""}function v(){const{user:t,loading:a}=m(),s=d(),[c,u]=n.useState(()=>l()||o()),f=n.useRef(!!(l()||o())),i=y();return n.useEffect(()=>{!a&&t&&(h(),s({to:i,replace:!0}))},[t,a,s,i]),a?e.jsx("div",{role:"status","aria-live":"polite","aria-label":"Loading",className:"min-h-full flex items-center justify-center bg-paper paper-grain"}):e.jsx("div",{className:"min-h-full flex flex-col items-center justify-center px-4 py-4 bg-paper paper-grain",children:e.jsxs("div",{className:"w-full max-w-sm space-y-3",children:[e.jsxs("div",{className:"text-center flex flex-col items-center",children:[e.jsx("img",{src:p.url,alt:"Agora sun",className:"w-16 h-16 mb-1"}),e.jsx("h1",{className:"display text-5xl text-ink leading-none",style:{fontFamily:'"Anton", system-ui, sans-serif'},children:"AGORA"}),e.jsx("p",{className:"text-xs text-muted-foreground font-sans mt-0.5",children:"Play the news. Master your reasoning."})]}),e.jsx(g,{email:c,editableEmail:!f.current,onEmailInput:u}),e.jsxs("p",{className:"text-center text-sm text-muted-foreground font-sans",children:["Wrong email?"," ",e.jsx(x,{to:"/signup",className:"font-semibold text-red hover:underline",children:"Back to sign up"})]})]})})}export{v as component,o as readStashedEmail,S as stashVerifyEmail};
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.