PageSourceSearch

https://goexpired.com/assets/StayInTouch-Cxk-HpAA.js

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

1import{c as b,r as m,b as f,j as e,G as h,M as g,L as x,h as v,s as j}from"./index-DocTL6Xp.js";import{C as c}from"./circle-check-conwmP9q.js";const r={bg:"#FAF9F5",surface:"#FFFFFF",ink:"#1A1A1A",inkMuted:"#6B6B68",accent:"#C96442",accentDark:"#B25438",border:"#E8E5DD",borderStrong:"#D8D3C5"};function F(){const u=b(),[i,l]=m.useState(""),[o,d]=m.useState(!1),{toast:a}=f(),p=t=>/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(t),y=async t=>{if(t.preventDefault(),!i.trim()){a({title:"Email required",description:"Please enter your email address",variant:"destructive"});return}if(!p(i)){a({title:"Invalid email",description:"Please enter a valid email address",variant:"destructive"});return}d(!0);try{const{data:s,error:n}=await j.functions.invoke("send-newsletter-confirmation",{body:{email:i}});if(n){a({title:"Subscription failed",description:(n==null?void 0:n.message)||"Something went wrong. Please try again.",variant:"destructive"});return}s!=null&&s.success?s!=null&&s.alreadyConfirmed?(a({title:"Already subscribed!",description:"You're already receiving our newsletter."}),l("")):(localStorage.setItem("newsletter_email",i),l(""),u("/confirm-email")):a({title:"Subscription failed",description:(s==null?void 0:s.error)||"Please try again later",variant:"destructive"})}catch(s){console.error("Exception during newsletter subscription:",s),a({title:"Subscription failed",description:"An unexpected error occurred",variant:"destructive"})}finally{d(!1)}};return e.jsxs("div",{style:{backgroundColor:r.bg,color:r.ink,fontFamily:"'Inter', system-ui, sans-serif"},className:"min-h-screen flex flex-col",children:[e.jsx(h,{activeLink:"newsletter"}),e.jsx("main",{className:"flex-grow",children:e.jsx("section",{className:"max-w-6xl mx-auto px-6 md:px-8 pt-20 md:pt-28 pb-12 md:pb-16 flex-grow",children:e.jsxs("div",{className:"max-w-3xl",children:[e.jsxs("h1",{className:"text-5xl leading-[1.05] tracking-tight mb-6 md:text-8xl",style:{fontFamily:"'Cormorant', serif",fontWeight:600,color:r.ink},children:["Never Miss a",e.jsx("br",{}),"Pick."]}),e.jsx("p",{className:"text-lg md:text-xl leading-relaxed max-w-2xl",style:{color:r.inkMuted,fontFamily:"'Cormorant', serif",fontWeight:500},children:"Only the very best hand-picked domain auctions added daily, delivered straight to your inbox. Free forever, unsubscribe anytime."}),e.jsxs("div",{className:"flex flex-wrap gap-x-6 gap-y-3 text-sm mt-10",style:{color:r.inkMuted},children:[e.jsxs("span",{className:"inline-flex items-center gap-1.5",children:[e.jsx(c,{className:"w-4 h-4",style:{color:"#2563EB"}}),"Free forever"]}),e.jsxs("span",{className:"inline-flex items-center gap-1.5",children:[e.jsx(c,{className:"w-4 h-4",style:{color:"#2563EB"}}),"Unsubscribe anytime"]}),e.jsxs("span",{className:"inline-flex items-center gap-1.5",children:[e.jsx(c,{className:"w-4 h-4",style:{color:"#2563EB"}}),"No spam, ever"]})]}),e.jsxs("form",{onSubmit:y,className:"mt-10 max-w-md",children:[e.jsxs("div",{className:"flex flex-col sm:flex-row gap-3",children:[e.jsx("input",{type:"email",placeholder:"Enter your email",value:i,onChange:t=>l(t.target.value),disabled:o,required:!0,className:"flex-1 h-12 px-5 rounded-full text-sm outline-none transition-all",style:{backgroundColor:r.surface,border:`1px solid ${r.border}`,color:r.ink},onFocus:t=>{t.currentTarget.style.borderColor="#2563EB",t.currentTarget.style.boxShadow="0 0 0 3px rgba(37,99,235,0.1)"},onBlur:t=>{t.currentTarget.style.borderColor=r.border,t.currentTarget.style.boxShadow="none"}}),e.jsxs("button",{type:"submit",disabled:o,className:"h-12 px-6 rounded-full text-sm font-medium transition-all duration-200 hover:-translate-y-[1px] disabled:opacity-70 disabled:hover:translate-y-0 inline-flex items-center justify-center gap-2 whitespace-nowrap",style:{backgroundColor:"#2563EB",color:"#FFFFFF",boxShadow:"0 4px 14px -4px rgba(37, 99, 235, 0.45), inset 0 1px 0 rgba(255,255,255,0.25)"},children:[e.jsx(g,{className:"w-4 h-4"}),o?"Subscribing...":"Subscribe"]})]}),e.jsxs("p",{className:"text-xs mt-6 leading-relaxed",style:{color:r.inkMuted,opacity:.65},children:["Already have a GoExpired account and receive the newsletter? You're all set - no need to subscribe again. No spam. Unsubscribe anytime with one click. We never sell or share your email. See our"," ",e.jsx(x,{to:"/privacy",className:"underline hover:opacity-80 transition-opacity",children:"Privacy Policy"})," ","and"," ",e.jsx(x,{to:"/terms",className:"underline hover:opacity-80 transition-opacity",children:"Terms"}),"."]})]})]})})}),e.jsx(v,{})]})}
1export{F 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.