(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,70065,e=>{"use strict";var a=e.i(43476),t=e.i(47163);function r({className:e,...r}){return(0,a.jsx)("div",{"data-slot":"card",className:(0,t.cn)("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",e),...r})}function s({className:e,...r}){return(0,a.jsx)("div",{"data-slot":"card-header",className:(0,t.cn)("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-2 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",e),...r})}function o({className:e,...r}){return(0,a.jsx)("div",{"data-slot":"card-title",className:(0,t.cn)("leading-none font-semibold",e),...r})}function n({className:e,...r}){return(0,a.jsx)("div",{"data-slot":"card-description",className:(0,t.cn)("text-muted-foreground text-sm",e),...r})}function d({className:e,...r}){return(0,a.jsx)("div",{"data-slot":"card-content",className:(0,t.cn)("px-6",e),...r})}function c({className:e,...r}){return(0,a.jsx)("div",{"data-slot":"card-footer",className:(0,t.cn)("flex items-center px-6 [.border-t]:pt-6",e),...r})}e.s(["Card",()=>r,"CardContent",()=>d,"CardDescription",()=>n,"CardFooter",()=>c,"CardHeader",()=>s,"CardTitle",()=>o])},31278,e=>{"use strict";let a=(0,e.i(75254).default)("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);e.s(["Loader2",()=>a],31278)},41310,e=>{"use strict";var a=e.i(43476),t=e.i(71645),r=e.i(67881),s=e.i(23750),o=e.i(70065);let n=(0,e.i(75254).default)("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);var d=e.i(31278);function c(){let[e,c]=(0,t.useState)(""),[i,l]=(0,t.useState)("idle"),u=async a=>{a.preventDefault(),e&&(l("loading"),await new Promise(e=>setTimeout(e,1500)),l("success"),c(""))};return"success"===i?(0,a.jsxs)(o.CardContent,{className:"p-6 space-y-4 text-center animate-in fade-in zoom-in duration-300",children:[(0,a.jsx)("div",{className:"flex justify-center",children:(0,a.jsx)(n,{className:"h-12 w-12 text-secondary-foreground"})}),(0,a.jsx)("h3",{className:"font-bold text-lg",children:"You're subscribed!"}),(0,a.jsx)("p",{className:"text-sm opacity-90",children:"Check your inbox for the latest oncology updates."}),(0,a.jsx)(r.Button,{variant:"secondary",className:"w-full font-bold",onClick:()=>l("idle"),children:"Done"})]}):(0,a.jsxs)(o.CardContent,{className:"p-6 space-y-4",children:[(0,a.jsx)("h3",{className:"font-bold",children:"Newsletter"}),(0,a.jsx)("p",{className:"text-sm opacity-90",children:"Get weekly oncology news and research updates delivered to your inbox."}),(0,a.jsxs)("form",{onSubmit:u,className:"space-y-3",children:[(0,a.jsx)(s.Input,{type:"email",placeholder:"Enter your email",value:e,onChange:e=>c(e.target.value),required:!0,className:"bg-primary-foreground/10 border-primary-foreground/20 text-primary-foreground placeholder:text-primary-foreground/50 h-10"}),(0,a.jsx)(r.Button,{type:"submit",variant:"secondary",className:"w-full font-bold shadow-lg h-10",disabled:"loading"===i,children:"loading"===i?(0,a.jsx)(d.Loader2,{className:"h-4 w-4 animate-spin"}):"Subscribe Now"})]})]})}e.s(["NewsletterSubscription",()=>c],41310)}]);