1import{r as n,j as e,H as k,ai as S,m as a,Z as I,d as m,A as f,a3 as y,E as C,S as j,X as $,M as A,I as H,B as P,o as T,a_ as E,a$ as _,f as d,s as B}from"./index-Bpe3UPrl.js";import F from"./Footer-BdYQMZJ-.js";import"./twitter-5P_Toup4.js";import"./linkedin-BxccxhMv.js";import"./youtube-pUvUTyJ-.js";import"./facebook-D3GURuc1.js";const v=[{id:"belamy",name:"Belamy",tagline:"Signals for the thinking mind",description:"The thinking person's AI newsletter. Opinionated without being reckless, analytical without drowning in jargon. Less about headlines, more about mental models and second-order effects.",frequency:"Weekly",icon:e.jsx(E,{className:"h-7 w-7"}),color:"text-amber-600 dark:text-amber-400",bgColor:"bg-amber-50 dark:bg-amber-950/30",borderColor:"border-amber-300 dark:border-amber-700",gradient:"from-amber-500/20 via-orange-500/10 to-transparent"},{id:"sector6",name:"Sector6",tagline:"AI adoption by vertical",description:"Vertical-first, operator-facing, grounded in sector realities. BFSI, healthcare, manufacturing, retail, GCCs â execution intelligence for people who need to decide what to do next.",frequency:"3x Weekly",icon:e.jsx(_,{className:"h-7 w-7"}),color:"text-teal-600 dark:text-teal-400",bgColor:"bg-teal-50 dark:bg-teal-950/30",borderColor:"border-teal-300 dark:border-teal-700",gradient:"from-teal-500/20 via-cyan-500/10 to-transparent"}],W=()=>{const[s,c]=n.useState([]),[o,x]=n.useState(""),[u,p]=n.useState(!1),[l,h]=n.useState(!1),[N,g]=n.useState(null),b=t=>{c(i=>i.includes(t)?i.filter(r=>r!==t):[...i,t])},w=async t=>{if(t.preventDefault(),!o||s.length===0){d.error("Please enter your email and select at least one newsletter");return}if(!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(o)){d.error("Please enter a valid email address");return}p(!0);try{const{error:r}=await B.functions.invoke("subscribe-newsletter",{body:{email:o,belamy:s.includes("belamy"),sector6:s.includes("sector6")}});if(r)throw r;h(!0),x(""),c([]),d.success("Successfully subscribed!")}catch(r){console.error("Subscription error:",r),d.error(r.message||"Failed to subscribe. Please try again.")}finally{p(!1)}};return n.useEffect(()=>{if(l){const t=setTimeout(()=>h(!1),5e3);return()=>clearTimeout(t)}},[l]),e.jsxs(e.Fragment,{children:[e.jsxs(k,{children:[e.jsx("title",{children:"Newsletters | AIM"}),e.jsx("meta",{name:"description",content:"Subscribe to AIM newsletters - Belamy for AI insights and mental models, Sector6 for vertical-specific AI adoption intelligence."})]}),e.jsx(S,{}),e.jsxs("main",{className:"min-h-screen bg-background overflow-hidden",children:[e.jsxs("section",{className:"relative py-20 md:py-32",children:[e.jsxs("div",{className:"absolute inset-0 overflow-hidden pointer-events-none",children:[e.jsx(a.div,{animate:{x:[0,100,0],y:[0,-50,0],scale:[1,1.2,1]},transition:{duration:20,repeat:1/0,ease:"easeInOut"},className:"absolute -top-1/4 -left-1/4 w-1/2 h-1/2 bg-gradient-radial from-amber-500/10 via-trans
1parent to-transparent blur-3xl"}),e.jsx(a.div,{animate:{x:[0,-80,0],y:[0,80,0],scale:[1,1.1,1]},transition:{duration:25,repeat:1/0,ease:"easeInOut",delay:2},className:"absolute -top-1/4 -right-1/4 w-1/2 h-1/2 bg-gradient-radial from-teal-500/10 via-transparent to-transparent blur-3xl"})]}),e.jsx("div",{className:"absolute inset-0 bg-[linear-gradient(to_right,hsl(var(--foreground)/0.02)_1px,transparent_1px),linear-gradient(to_bottom,hsl(var(--foreground)/0.02)_1px,transparent_1px)] bg-[size:4rem_4rem]"}),e.jsx("div",{className:"page-container relative",children:e.jsxs(a.div,{initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{duration:.8,ease:[.22,1,.36,1]},className:"text-center max-w-3xl mx-auto",children:[e.jsxs(a.div,{initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},transition:{duration:.5,delay:.2},className:"inline-flex items-center gap-2 px-4 py-2 rounded-full bg-gradient-to-r from-primary/10 to-primary/5 border border-primary/20 text-primary text-sm font-medium mb-8",children:[e.jsx(I,{className:"h-4 w-4"}),e.jsx("span",{children:"Intelligence, curated"})]}),e.jsxs(a.h1,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.8,delay:.3},className:"text-4xl md:text-6xl lg:text-7xl font-bold mb-6 tracking-tight",children:[e.jsx("span",{className:"bg-gradient-to-r from-foreground via-foreground to-foreground/70 bg-clip-text text-transparent",children:"Choose Your AI"}),e.jsx("br",{}),e.jsx("span",{className:"bg-gradient-to-r from-amber-600 via-primary to-teal-600 bg-clip-text text-transparent",children:"Intelligence"})]}),e.jsxs(a.p,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.8,delay:.4},className:"text-muted-foreground text-lg md:text-xl leading-relaxed max-w-xl mx-auto font-medium",children:["Two newsletters. Two perspectives. One AI universe.",e.jsx("span",{className:"block mt-2 text-foreground/60 font-normal",children:"Neither tries to be everything. That's why they work."})]}),e.jsx(a.div,{initial:{opacity:0}
1,animate:{opacity:1},transition:{delay:1,duration:.5},className:"mt-12",children:e.jsxs(a.div,{animate:{y:[0,8,0]},transition:{duration:2,repeat:1/0,ease:"easeInOut"},className:"inline-flex flex-col items-center gap-2 text-muted-foreground/50",children:[e.jsx("span",{className:"text-xs uppercase tracking-widest",children:"Scroll to explore"}),e.jsx(m,{className:"h-4 w-4 rotate-90"})]})})]})})]}),e.jsx("section",{className:"pb-32 md:pb-44 relative",children:e.jsxs("div",{className:"page-container",children:[e.jsx("div",{className:"grid md:grid-cols-2 gap-8 max-w-5xl mx-auto",children:v.map((t,i)=>e.jsx(a.div,{initial:{opacity:0,y:40},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-100px"},transition:{duration:.6,delay:i*.15,ease:[.22,1,.36,1]},onHoverStart:()=>g(t.id),onHoverEnd:()=>g(null),children:e.jsxs(a.div,{onClick:()=>b(t.id),whileHover:{y:-4},whileTap:{scale:.98},className:` 2 relative cursor-pointer rounded-3xl border-2 p-8 transition-all duration-500 h-full 3 ${s.includes(t.id)?`${t.bgColor} ${t.borderColor}
3 shadow-2xl`:"bg-card border-border/50 hover:border-foreground/20 hover:shadow-xl"} 4 `,children:[e.jsx(a.div,{initial:{opacity:0},animate:{opacity:N===t.id?1:0},className:`absolute inset-0 rounded-3xl bg-gradient-to-br ${t.gradient} pointer-events-none`}),e.jsx(a.div,{className:` 5 absolute top-6 right-6 h-8 w-8 rounded-full flex items-center justify-center transition-all duration-300 6 ${s.includes(t.id)?`${t.color} bg-current/10 shadow-lg`:"bg-muted/50 text-muted-foreground"} 7 `,whileHover:{scale:1.1},children:e.jsx(f,{mode:"wait",children:s.includes(t.id)?e.jsx(a.div,{initial:{scale:0,rotate:-180},animate:{scale:1,rotate:0},exit:{scale:0,rotate:180},transition:{type:"spring",stiffness:500,damping:30},children:e.jsx(y,{className:"h-4 w-4",strokeWidth:3})},"check"):e.jsx(a.div,{className:"h-3 w-3 rounded-full border-2 border-current"},"empty")})}),e.jsxs("div",{className:"relative",children:[e.jsx(a.span,{className:"inline-block px-3 py-1 text-[11px] uppercase tracking-widest font-semibold bg-foreground
7/5 text-foreground/60 rounded-full mb-5",whileHover:{scale:1.05},children:t.frequency}),e.jsxs("div",{className:"relative mb-5",children:[e.jsx(a.div,{animate:s.includes(t.id)?{scale:[1,1.2,1],opacity:[.3,.5,.3]}:{},transition:{duration:2,repeat:1/0},className:`absolute inset-0 rounded-2xl ${t.bgColor} blur-xl`}),e.jsx("div",{className:`relative ${t.color} p-3 rounded-2xl ${t.bgColor} w-fit`,children:t.icon})]}),e.jsx("h2",{className:"text-3xl font-bold mb-2 tracking-tight",children:t.name}),e.jsx("p",{className:`text-sm font-semibold mb-5 ${t.color}`,children:t.tagline}),e.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed mb-8",children:t.description}),e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx(a.button,{onClick:r=>{r.stopPropagation(),b(t.id)},whileHover:{x:4},className:` 8 text-sm font-semibold transition-colors flex items-center gap-2 9 ${s.includes(t.id)?t.color:"text-muted-foreground hover:text-foreground"} 10 `,children:s.includes(t.id)?e.jsxs(e.Fragment,{children:[e.jsx(y,{className:"h-4 w-4"}),"Selected"]}):e.jsxs(e.Fragment,{children:["Select Newsletter",e.jsx(m,{className:"h-4 w-4"})]})}),e.jsxs("a",{href:"#",onClick:r=>r.stopPropagation(),className:"text-xs text-muted-foreground hover:text-foreground flex items-center gap-1.5 transition-colors group",children:["Preview",e.jsx(C,{className:"h-3 w-3 group-hover:translate-x-0.5 group-hover:-translate-y-0.5 transition-transform"})]})]})]})]})},t.id))}),e.jsx(a.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:.3,duration:.6},className:"max-w-2xl mx-auto mt-16 text-center",children:e.jsxs("div",{className:"inline-flex items-center gap-3 px-5 py-3 rounded-2xl bg-muted/30 border border-border/50",children:[e.jsx(j,{className:"h-4 w-4 text-primary shrink-0"}),e.jsx("p",{className:"text-xs text-muted-foreground leading-relaxed text-left",children:"Together, they form a useful editorial split. One shapes narrative and context. The other maps adoption and reality."})]})})]})}),e.jsx(f,{children:(s.length>0||l)&&e.jsxs(a.div,{initial:{y:100,opacity:0},animate:{y:0,opacity:1},exit:{y:100,opacity:0},transition:{type:"spring",damping:30,stiffness:400},className:"fixed bottom-0 left-0 right-0 z-50",children:[e.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-background via-background/95 to-background/80 backdrop-blur-xl"}),e.jsx("div",{className:"absolute inset-x-0 top-0 h-px bg-gradient-to-r from-transparent via-border to-transparent"}),e.jsx("div",{className:"page-container relative py-5",children:l?e.jsxs(a.div,{initial:{scale:.9,opacity:0},animate:{scale:1,opacity:1},className:"flex items-center justify-center gap-4 py-2",children:[e.jsx(a.div,{className:"h-12 w-12 rounded-2xl bg-gradient-to-br from-green-400 to-emerald-500 flex items-center justify-center shadow-lg shadow-green-500/25",animate:{rotate:[0,10,-10,0]},transition:{duration:.5,delay:.2},children:e.jsx(j,{className:"h-6 w-6 text-white"})}),e.jsxs("div",{children:[e.jsx("p",{className:"font-bold text-lg text-green-600 dark:text-green-400",children:"You're all set!"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"Check your inbox for a welcome email."})]})]}):e.jsxs("form",{onSubmit:w,className:"flex flex-col md:flex-row items-center gap-4 md:gap-6",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"flex -space-x-2",children:s.map(t=>{const i=v.find(r=>r.id===t);return i?e.jsx(a.div,{initial:{scale:0,x:-10},animate:{scale:1,x:0},className:`h-8 w-8 rounded-full ${i.bgColor} ${i.borderColor} border-2 flex items-center justify-center`,children:e.jsx("span",{className:i.color,children:i.icon})},t):null})}),e.jsxs("span",{className:"text-sm text-muted-foreground",children:[e.jsx("span",{className:"font-bold text-foreground",children:s.length})," selected"]}),e.jsx("button",{type:"button",onClick:()=>c([]),className:"p-1.5 hover:bg-muted rounded-lg transition-colors",children:e.jsx($,{className:"h-4 w-4 text-muted-foreground"})})]}),e.jsxs("div",{className:"flex-1 flex items-center gap-3 w-full md:w-auto",children:[e.jsxs("div",{className:"relative flex-1 md:max-w-sm",children:[e.jsx(A,{className:"absolute left-4 top-1/2 -translate-y-1/2 h-4 w-4 text-muted-foreground"}),e.jsx(H,{type:"email",placeholder:"Enter your email",value:o,onChange:t=>x(t.target.value),className:"pl-11 h-12 bg-muted/50 border-border/50 rounded-xl focus:ring-2 focus:ring-primary/20 focus:border-primary",required:!0})]}),e.jsx(P,{type:"submit",disabled:u,className:"h-12 px-8 font-semibold rounded-xl shadow-lg shadow-primary/25 hover:shadow-xl hover:shadow-
10primary/30 transition-all",children:u?e.jsx(a.div,{animate:{rotate:360},transition:{duration:1,repeat:1/0,ease:"linear"},className:"h-5 w-5 border-2 border-white/30 border-t-white rounded-full"}):e.jsxs(e.Fragment,{children:["Subscribe",e.jsx(m,{className:"ml-2 h-4 w-4"})]})})]}),e.jsxs("p",{className:"text-[11px] text-muted-foreground text-center md:text-left",children:["By signing up, you agree to our"," ",e.jsx(T,{to:"/privacy",className:"underline hover:text-foreground transition-colors",children:"Privacy Policy"})]})]})})]})})]}),e.jsx(F,{})]})};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.