(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,70065,e=>{"use strict";var t=e.i(43476),i=e.i(47163);e.s(["Card",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"card",className:(0,i.cn)("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",e),...r})},"CardContent",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"card-content",className:(0,i.cn)("px-6",e),...r})},"CardDescription",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"card-description",className:(0,i.cn)("text-muted-foreground text-sm",e),...r})},"CardFooter",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"card-footer",className:(0,i.cn)("flex items-center px-6 [.border-t]:pt-6",e),...r})},"CardHeader",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"card-header",className:(0,i.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})},"CardTitle",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"card-title",className:(0,i.cn)("leading-none font-semibold",e),...r})}])},95468,e=>{"use strict";let t=(0,e.i(75254).default)("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);e.s(["CheckCircle2",0,t],95468)},64500,e=>{"use strict";var t=e.i(43476),i=e.i(56454),r=e.i(1244),s=e.i(67881),a=e.i(70065),l=e.i(71645),n=e.i(95468),d=e.i(18566);function c(){let[e,i]=(0,l.useState)(!1),r=(0,d.useSearchParams)().get("id")||"";return e?(0,t.jsx)(a.Card,{className:"text-center py-12",children:(0,t.jsxs)(a.CardContent,{className:"space-y-6",children:[(0,t.jsx)("div",{className:"flex justify-center",children:(0,t.jsx)(n.CheckCircle2,{className:"w-16 h-16 text-primary"})}),(0,t.jsx)("h2",{className:"text-2xl font-bold",children:"Successfully Joined!"}),(0,t.jsx)("p",{className:"text-muted-foreground",children:"Thank you for your interest. We have received your request to join the initiative and will be in touch with you shortly."}),(0,t.jsx)(s.Button,{onClick:()=>i(!1),variant:"outline",children:"Join Another Initiative"})]})}):(0,t.jsxs)(a.Card,{children:[(0,t.jsxs)(a.CardHeader,{children:[(0,t.jsx)(a.CardTitle,{className:"text-2xl",children:"Join the Initiative"}),(0,t.jsx)(a.CardDescription,{children:"Fill in your information to join the selected initiative."})]}),(0,t.jsx)(a.CardContent,{children:(0,t.jsxs)("form",{onSubmit:e=>{e.preventDefault(),i(!0)},className:"space-y-6",children:[(0,t.jsxs)("div",{className:"space-y-4",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{className:"block text-sm font-medium mb-1",children:"Full Name"}),(0,t.jsx)("input",{required:!0,type:"text",className:"w-full px-3 py-2 border rounded-md",placeholder:"Enter your full name"})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{className:"block text-sm font-medium mb-1",children:"Email Address"}),(0,t.jsx)("input",{required:!0,type:"email",className:"w-full px-3 py-2 border rounded-md",placeholder:"Enter your email"})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{className:"block text-sm font-medium mb-1",children:"Mobile Number"}),(0,t.jsx)("input",{required:!0,type:"tel",className:"w-full px-3 py-2 border rounded-md",placeholder:"Enter your phone number"})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{className:"block text-sm font-medium mb-1",children:"Initiative Selection"}),(0,t.jsxs)("select",{required:!0,defaultValue:r,className:"w-full px-3 py-2 border rounded-md bg-background",children:[(0,t.jsx)("option",{value:"",children:"Select an initiative..."}),(0,t.jsx)("option",{value:"1",children:"The Right Forum for Investment Initiatives"}),(0,t.jsx)("option",{value:"2",children:"Intentions"}),(0,t.jsx)("option",{value:"3",children:"Winter Clothing Distribution"})]})]})]}),(0,t.jsx)(s.Button,{type:"submit",className:"w-full",size:"lg",children:"Join Now"})]})})]})}e.s(["default",0,function(){return(0,t.jsxs)("div",{className:"min-h-screen flex flex-col",children:[(0,t.jsx)(i.Header,{isLoggedIn:!1}),(0,t.jsx)("main",{className:"flex-1 py-12 bg-muted/30",children:(0,t.jsx)("div",{className:"container mx-auto px-4",children:(0,t.jsx)("div",{className:"max-w-2xl mx-auto",children:(0,t.jsx)(l.Suspense,{fallback:(0,t.jsx)("div",{children:"Loading form..."}),children:(0,t.jsx)(c,{})})})})}),(0,t.jsx)(r.Footer,{})]})}])}]);