PageSourceSearch

https://goexpired.com/assets/ConfirmEmail-CDYHcuuQ.js

js goexpired.com collected 2026-10-09 22:42:23 UTC 4,114 bytes, 1 lines download raw bytes

1import{c as f,b as g,r,s as m,j as e,G as b,M as y,S as k,h as j}from"./index-DocTL6Xp.js";const t={bg:"#FAF9F5",surface:"#FFFFFF",ink:"#1A1A1A",inkMuted:"#6B6B68",border:"#E8E5DD",borderStrong:"#D8D3C5",accent:"#2563EB"},w=()=>{const i=f(),{toast:n}=g(),[s,u]=r.useState(""),[l,c]=r.useState(!1),[x,h]=r.useState(!1);r.useEffect(()=>{document.title="Confirm Your Email | GoExpired";const a=document.querySelector('meta[name="description"]');a&&a.setAttribute("content","Please check your email to confirm your subscription and start receiving curated domain drops and auction insights.");const d=localStorage.getItem("newsletter_email");d&&u(d),m.auth.getSession().then(({data:{session:o}})=>{h(!!(o!=null&&o.user))})},[]);const p=async()=>{if(!s){n({title:"Email not found",description:"Please try signing up again.",variant:"destructive"});return}c(!0);try{const{error:a}=await m.auth.signInWithOtp({email:s,options:{emailRedirectTo:`${window.location.origin}/app`}});if(a){n({title:"Account creation failed",description:a.message,variant:"destructive"});return}localStorage.removeItem("newsletter_email"),i("/confirm-account")}catch(a){console.error("Account creation error:",a),n({title:"Something went wrong",description:"Please try again later.",variant:"destructive"})}finally{c(!1)}};return e.jsxs("div",{className:"min-h-screen flex flex-col",style:{backgroundColor:t.bg,color:t.ink,fontFamily:"'Inter', system-ui, sans-serif"},children:[e.jsx(b,{activeLink:"newsletter"}),e.jsx("main",{className:"flex-1 flex items-center justify-center px-4 py-12",children:e.jsx("div",{className:"w-full max-w-lg",children:e.jsxs("div",{className:"rounded-3xl p-8 md:p-10 text-center",style:{backgroundColor:t.surface,border:`1px solid ${t.border}`,boxShadow:"0 1px 2px rgba(26,26,26,0.04), 0 8px 32px -16px rgba(26,26,26,0.08)"},children:[e.jsx("div",{className:"inline-flex items-center justify-center w-14 h-14 rounded-full mb-6",style:{backgroundColor:`${t.accent}10`},children:e.jsx(y,{className:"w-6 h-6",style:{color:t.accent}})}),e.jsx("h1",{className:"text-3xl md:text-4xl tracking-tight mb-3",style:{fontFamily:"'Cormorant', serif",fontWeight:600},children:"Check your email"}),e.jsx("p",{className:"text-sm md:text-base mb-2",style:{color:t.inkMuted},children:"We have sent you a confirmation email."}),e.jsx("p",{className:"text-sm md:text-base mb-6",style:{color:t.inkMuted},children:"Please click the link in the email to complete your newsletter subscription."}),!x&&e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"rounded-2xl p-6 mb-6 text-center",style:{backgroundColor:t.bg,border:`1px solid ${t.border}`},children:[e.jsxs("div",{className:"flex items-center justify-center gap-2 mb-3",children:[e.jsx(k,{className:"w-5 h-5",style:{color:t.accent}}),e.jsx("h3",{className:"text-xl tracking-tight",style:{fontFamily:"'Cormorant', serif",fontWeight:600,color:t.ink},children:"Want Full Access?"})]}),e.jsx("p",{className:"text-sm mb-5",style:{color:t.inkMuted},children:"Create a free account to unlock domain appraisals, favorites, tracking tools, and exclusive auction access."}),e.jsx("button",{onClick:p,disabled:l||!s,className:"w-full py-3 rounded-full text-sm font-medium transition-all duration-200 hover:-translate-y-[1px] disabled:opacity-50 disabled:cursor-not-allowed",style:{backgroundColor:t.accent,color:"#FFFFFF",boxShadow:"0 4px 14px -4px rgba(37, 99, 235, 0.45), inset 0 1px 0 rgba(255,255,255,0.25)"},children:l?"Creating Account...":"Yes, create my free account"}),s&&e.jsxs("p",{className:"text-xs mt-3",style:{color:t.inkMuted},children:["We will use: ",e.jsx("span",{style:{color:t.ink,fontWeight:500},children:s})]})]}),e.jsx("button",{onClick:()=>i("/"),className:"text-sm hover:opacity-70 transition-opacity",style:{color:t.inkMuted},children:"No thanks, the newsletter is fine for now."})]}),e.jsx("div",{className:"rounded-2xl p-4 mt-6 text-left text-xs",style:{backgroundColor:t.bg,border:`1px solid ${t.border}`,color:t.inkMuted},children:"Didn't get the email? Check your spam folder, or wait a minute and try again."})]})})}),e.jsx(j,{})]})};export{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.