1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5590],{83209:(e,t,s)=>{s.r(t),s.d(t,{default:()=>m});var a=s(95155),r=s(12115),l=s(85785),i=s(36489),n=s(14351),o=s(34404);let c=["14-day free Pro trial","Full access to ".concat(l.A.modules," intelligence modules"),"Daily curated space industry alerts"],d=["Week in Space Data, every Friday","Key launches, funding rounds & policy changes","Free forever: no account required"],u="exit-popup-shown-this-session";function m(){let{data:e,status:t}=(0,i.useSession)(),[s,l]=(0,r.useState)(!1),[m,x]=(0,r.useState)("newsletter"),[h,b]=(0,r.useState)(""),[p,w]=(0,r.useState)("idle"),[f,g]=(0,r.useState)(""),j=(0,r.useRef)(!1),y=(0,r.useRef)(Date.now()),v=(0,r.useCallback)(()=>{if(e||"loading"===t)return!0;try{if(localStorage.getItem("newsletter-subscribed"))return!0}catch(e){}try{if(sessionStorage.getItem(u)||sessionStorage.getItem("sn:signup-shown"))return!0}catch(e){}try{let e=localStorage.getItem("exit-popup-dismissed");if(e){let t=parseInt(e,10);if(Date.now()-t<6048e5)return!0}}catch(e){}return!1},[e,t]),N=(0,r.useCallback)(()=>{if(!(j.current||v())&&!(Date.now()-y.current<15e3)){j.current=!0;try{sessionStorage.setItem(u,"true")}catch(e){}l(!0)}},[v]);(0,r.useEffect)(()=>{if(v())return;let e=e=>{e.clientY<0&&N()};return document.addEventListener("mouseleave",e),()=>{document.removeEventListener("mouseleave",e)}},[v,N]);let k=()=>{l(!1);try{localStorage.setItem("exit-popup-dismissed",String(Date.now()))}catch(e){}},S=async e=>{if(e.preventDefault(),h){w("loading"),g("");try{let e=await fetch("/api/newsletter/subscribe",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:h,source:"newsletter"===m?"exit-intent-newsletter":"exit-intent"})}),t=await e.json();if(e.ok){w("success");try{localStorage.setItem("newsletter-subscribed","true")}catch(e){}}else w("error"),"ALREADY_SUBSCRIBED"===t.code?g("This email is already subscribed."):g(t.error||"Failed to subscribe. Please try again.")}catch(e){w("error"),g("Network error. Please try again.")}}};return s?(0,a.jsxs)("div",{className:"fixed inset-0 z-[100] flex items-center justify-center p-4 animate-in fade-in duration-300",role:"dialog","aria-modal":"true","aria-label":"trial"===m?"Free trial signup":"Newsletter signup",children:[(0,a.jsx)("div",{className:"absolute inset-0 bg-black/60 backdrop-blur-sm",onClick:k}),(0,a.jsxs)("div",{className:"relative bg-black border border-white/[0.08] rounded-2xl max-w-md w-full p-8 shadow-2xl shadow-black/50 animate-in slide-in-from-bottom-4 duration-300",children:[(0,a.jsx)("button",{onClick:k,className:"absolute top-3 right-3 p-2.5 rounded-lg text-slate-500 hover:text-white/70 hover:bg-white/[0.06] transition-colors","aria-label":"Close popup",children:(0,a.jsx)("svg",{className:"w-6 h-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"})})}),(0,a.jsx)("div",{className:"absolute -top-16 left-1/2 -translate-x-1/2 w-40 h-40 bg-white/10 rounded-full blur-[60px] pointer-events-none"}),"success"===p?(0,a.jsxs)("div",{className:"text-center relative",children:[(0,a.jsx)("div",{className:"w-14 h-14 rounded-full bg-emerald-900/40 border border-emerald-500/30 flex items-center justify-center mx-auto mb-4",children:(0,a.jsx)("svg",{className:"w-7 h-7 text-emerald-400",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5 13l4 4L19 7"})})}),(0,a.jsx)("h3",{className:"text-xl font-bold text-white mb-2",children:"Check your inbox!"}),(0,a.jsx)("p",{className:"text-slate-400 text-sm mb-5",children:"newsletter"===m?"Confirm from your inbox and your first Week in Space Data arrives on Friday.":"Weâve sent a confirmation email. Verify to start receiving space intelligence."}),(0,a.jsx)("button",{onClick:k,className:"text-sm text-white/70 hover:text-white transition-colors",children:"Close"})]}):(0,a.jsxs)("div",{className:"relative",children:[(0,a.jsx)("div",{className:"w-12 h-12 rounded-xl bg-gradient-to-br from-white/5 to-white/10 border border-white/10 flex items-center justify-center mx-auto mb-5",children:(0,a.jsx)("svg",{className:"w-6 h-6 text-white/70",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.5,children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.59 14.37a6 6 0 01-5.84 7.38v-4.8m5.84-2.58a14.98 14.98 0 006.16-12.12A14.98 14.98 0 009.631 8.41m5.96 5.96a14.926 14.926 0 01-5.841 2.58m-.119-8.54a6 6 0 00-7.381 5.84h4.8m2.581-5.84a14.927 14.927 0 00-2.58 5.84m2.699 2.7c-.103.021-.207.041-.311.06a15.09 15.09 0 01-2.448-2.448 14.9 14.9 0 01.06-.312m-2.24 2.39a4.493 4.493 0 00-1.757 4.306 4.493 4.493 0 004.306-1.758M16.5 9a1.5 1.5 0 11-3 0 1.5 1.5 0 013 0z"})})}),(0,a.jsx)("h3",{className:"text-xl font-bold text-white text-center mb-2",children:"Wait, before you go"}),(0,a.jsxs)("div",{className:"flex rounded-lg bg-white/[0.04] border border-white/[0.08] p-1 mb-5",children:[(0,a.jsx)("button",{onClick:()=>x("trial"),className:"flex-1 py-2 px-3 rounded-md text-xs font-semibold transition-all ".concat("tri
1al"===m?"bg-white/[0.1] text-white shadow-sm":"text-slate-400 hover:text-slate-300"),children:"Free 14-Day Trial"}),(0,a.jsx)("button",{onClick:()=>x("newsletter"),className:"flex-1 py-2 px-3 rounded-md text-xs font-semibold transition-all ".concat("newsletter"===m?"bg-white/[0.1] text-white shadow-sm":"text-slate-400 hover:text-slate-300"),children:"Free Friday Email"})]}),"trial"===m?(0,a.jsxs)("p",{className:"text-sm text-slate-400 text-center mb-3",children:["Subscribe now and get a ",(0,a.jsx)("span",{className:"text-white/70 font-semibold",children:"free 14-day trial"})," of SpaceNexus Pro"]}):(0,a.jsxs)("p",{className:"text-sm text-slate-400 text-center mb-3",children:["Get the ",(0,a.jsx)("span",{className:"text-white/70 font-semibold",children:"free Friday email, Week in Space Data"}),": the week in numbers, launches and deals"]}),"trial"===m&&(0,a.jsx)("p",{className:"text-xs text-center text-white/50 mb-5",children:"Limited time offer"}),(0,a.jsx)("ul",{className:"space-y-2.5 mb-6",children:("trial"===m?c:d).map(e=>(0,a.jsxs)("li",{className:"flex items-start gap-2.5 text-sm text-white/70",children:[(0,a.jsx)("svg",{className:"w-4 h-4 text-white/70 shrink-0 mt-0.5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5 13l4 4L19 7"})}),e]},e))}),(0,a.jsxs)("form",{onSubmit:S,className:"space-y-3",children:[(0,a.jsx)("input",{type:"email",inputMode:"email",autoComplete:"email",enterKeyHint:"send",value:h,onChange:e=>b(e.target.value),placeholder:"Enter your email address","aria-label":"Email address",className:"w-full px-4 py-3 bg-white/[0.06] border border-white/[0.1] rounded-xl text-slate-100 placeholder:text-slate-500 focus:outline-none focus:border-white/15 transition-colors text-sm",required:!0,disabled:"loading"===p,autoFocus:!0}),(0,a.jsx)("button",{type:"submit",disabled:"loading"===p||!h,className:"w-full py-3 px-4 rounded-xl bg-gradient-to-r bg-white hover:bg-slate-100 disabled:opacity-50 disabled:cursor-not-allowed text-slate-900 font-semibold text-sm transition-all duration-200 shadow-lg shadow-black/20",children:"loading"===p?(0,a.jsxs)("span",{className:"flex items-center justify-center gap-2",children:[(0,a.jsxs)("svg",{className:"animate-spin h-4 w-4",viewBox:"0 0 24 24",children:[(0,a.jsx)("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4",fill:"none"}),(0,a.jsx)("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),"Subscribing..."]}):"trial"===m?"Start Free Trial":"Subscribe Free"})]}),"error"===p&&(f===o.Br?(0,a.jsx)(n.A,{className:"mt-3 !text-xs text-center"}):(0,a.jsx)("p",{className:"mt-3 text-red-400 text-xs text-center",role:"alert",children:f})),(0,a.jsx)("button",{onClick:k,className:"block w-full text-center mt-4 text-xs text-slate-500 hover:text-slate-400 transition-colors",children:"No thanks"})]})]})]}):null}},85785:(e,t,s)=>{s.d(t,{A:()=>a});let a={companies:"370+",articles:"250+",dataSources:"26",satellites:"16,500+",satellitesAsOf:"September 2026",pagesAndTools:"400+",modules:"40+",automatedFeeds:"50+",newsFeeds:"60+",spaceEconomyNow:"$626B",spaceEconomyProjection:"$1.8T by 2035",accordsNations:"75",accordsAsOf:"September 2026",launches2025:"324",govSpaceSpending:"$95B+"}}}]);
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.