module.exports=[3130,a=>{"use strict";var b=a.i(87924),c=a.i(97895);function d({className:a,...d}){return(0,b.jsx)("div",{"data-slot":"card",className:(0,c.cn)("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",a),...d})}function e({className:a,...d}){return(0,b.jsx)("div",{"data-slot":"card-header",className:(0,c.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",a),...d})}function f({className:a,...d}){return(0,b.jsx)("div",{"data-slot":"card-title",className:(0,c.cn)("leading-none font-semibold",a),...d})}function g({className:a,...d}){return(0,b.jsx)("div",{"data-slot":"card-description",className:(0,c.cn)("text-muted-foreground text-sm",a),...d})}function h({className:a,...d}){return(0,b.jsx)("div",{"data-slot":"card-content",className:(0,c.cn)("px-6",a),...d})}function i({className:a,...d}){return(0,b.jsx)("div",{"data-slot":"card-footer",className:(0,c.cn)("flex items-center px-6 [.border-t]:pt-6",a),...d})}a.s(["Card",()=>d,"CardContent",()=>h,"CardDescription",()=>g,"CardFooter",()=>i,"CardHeader",()=>e,"CardTitle",()=>f])},96221,a=>{"use strict";let b=(0,a.i(70106).default)("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);a.s(["Loader2",()=>b],96221)},91216,a=>{"use strict";var b=a.i(87924),c=a.i(72131),d=a.i(40695),e=a.i(5522),f=a.i(3130);let g=(0,a.i(70106).default)("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);var h=a.i(96221);function i(){let[a,i]=(0,c.useState)(""),[j,k]=(0,c.useState)("idle"),l=async b=>{b.preventDefault(),a&&(k("loading"),await new Promise(a=>setTimeout(a,1500)),k("success"),i(""))};return"success"===j?(0,b.jsxs)(f.CardContent,{className:"p-6 space-y-4 text-center animate-in fade-in zoom-in duration-300",children:[(0,b.jsx)("div",{className:"flex justify-center",children:(0,b.jsx)(g,{className:"h-12 w-12 text-secondary-foreground"})}),(0,b.jsx)("h3",{className:"font-bold text-lg",children:"You're subscribed!"}),(0,b.jsx)("p",{className:"text-sm opacity-90",children:"Check your inbox for the latest oncology updates."}),(0,b.jsx)(d.Button,{variant:"secondary",className:"w-full font-bold",onClick:()=>k("idle"),children:"Done"})]}):(0,b.jsxs)(f.CardContent,{className:"p-6 space-y-4",children:[(0,b.jsx)("h3",{className:"font-bold",children:"Newsletter"}),(0,b.jsx)("p",{className:"text-sm opacity-90",children:"Get weekly oncology news and research updates delivered to your inbox."}),(0,b.jsxs)("form",{onSubmit:l,className:"space-y-3",children:[(0,b.jsx)(e.Input,{type:"email",placeholder:"Enter your email",value:a,onChange:a=>i(a.target.value),required:!0,className:"bg-primary-foreground/10 border-primary-foreground/20 text-primary-foreground placeholder:text-primary-foreground/50 h-10"}),(0,b.jsx)(d.Button,{type:"submit",variant:"secondary",className:"w-full font-bold shadow-lg h-10",disabled:"loading"===j,children:"loading"===j?(0,b.jsx)(h.Loader2,{className:"h-4 w-4 animate-spin"}):"Subscribe Now"})]})]})}a.s(["NewsletterSubscription",()=>i],91216)}];

//# sourceMappingURL=_3dc5755c._.js.map