1import{r as m,j as e}from"./react-CoworXqI.js";import{u as A}from"./usePageSEO-CgKCqbx3.js";import{d as M,L as b}from"./router-Ck7_M0hR.js";import{B as N}from"./button-DJI3zcIP.js";import{S as c}from"./skeleton-nP7JY7pm.js";import{H as E}from"./Header-C_B8ydeY.js";import{F as L}from"./Footer-Cdoex0Iq.js";import{s as g}from"./index-BYJ3GgCE.js";import{i as T}from"./invokeFunction-C5NHQ5OY.js";import{u as I}from"./useAuth-XLIAN0GK.js";import{m as l}from"./motion-CQBd4fWL.js";import{q as v,C as k,b as S,f as C,d as P,k as z,H as R,x as W,ab as Y,U as F}from"./icons-BNkc_nCX.js";import"./charts-DjMOMtmZ.js";import"./radix-CnrXJ-k6.js";import"./sheet-BXCi-hia.js";import"./supabase-DkBRB6Pe.js";function O(){const a=document.createElement("canvas");a.style.cssText="position:fixed;inset:0;width:100%;height:100%;pointer-events:none;z-index:9999",document.body.appendChild(a);const i=a.getContext("2d");a.width=window.innerWidth,a.height=window.innerHeight;const x=[],n=["#6366f1","#8b5cf6","#a78bfa","#34d399","#fbbf24","#f472b6"];for(let t=0;t<120;t++)x.push({x:Math.random()*a.width,y:Math.random()*a.height-a.height,r:Math.random()*5+2,d:Math.random()*120,color:n[Math.floor(Math.random()*n.length)],tilt:Math.random()*10-10,tiltAngle:0,tiltInc:Math.random()*.07+.05});let d=0;const h=180;function u(){i.clearRect(0,0,a.width,a.height),x.forEach(t=>{i.beginPath(),i.lineWidth=t.r,i.strokeStyle=t.color,i.moveTo(t.x+t.tilt+t.r,t.y),i.lineTo(t.x+t.tilt,t.y+t.tilt+t.r),i.stroke()}),f(),d++,d<h?requestAnimationFrame(u):a.remove()}function f(){x.forEach(t=>{t.tiltAngle+=t.tiltInc,t.y+=(Math.cos(t.d)+2+t.r/2)*.8,t.tilt=Math.sin(t.tiltAngle)*12,t.y>a.height&&(t.y=-10,t.x=Math.random()*a.width)})}u()}const p=[{id:"analyze",icon:z,title:"Validate Your Idea with AI",description:"Run a free feasibility analysis to get market sizing, revenue projections, and competitive insights â it takes 60 seconds and strengthens your venture plan.",link:"/analyze",linkText:"Run Analysis",time:"2 min"},{id:"build",icon:R,title:"Launch Your MVP on Lovable",description:"Build a production-ready app with AI in minutes. Your accelerator admission includes a custom Lovable prompt to jumpstart development.",externalLink:"https://lovable.dev/projects/create?ref=conceptually",linkText:"Start Building",time:"5 min"},{id:"perks",icon:W,title:"Claim $200K+ in Startup Perks",description:"Access exclusive partner perks â cloud credits (AWS, GCP, Azure), SaaS tools, legal services, and more. Available immediately.",link:"/perks",linkText:"View Perks",time:"3 min"}],H=[{icon:Y,label:"Incubator Workspace",to:"/incubator"},{icon:F,label:"Community",to:"/community"},{icon:C,label:"Mentorship with Aaron",to:"/mentorship"}];function se(){A({title:"Welcome to Conceptually â Enrollment Confirmed",description:"Your enrollment is confirmed. Complete your first 3 action items to hit the ground running.",noindex:!0,path:"/apply/success"});const{user:a}=I(),[i]=M(),x=i.get("type")==="concept-review",[n,d]=m.useState(new Set),[h,u]=m.useState(!0),f=m.useCallback(async()=>{if(!a){d(new Set),u(!1);return}const{data:r}=await g.from("founder_journey").select("step_key").eq("user_id",a.id),o=(r||[]).map(s=>s.step_key).filter(s=>s.startsWith("onboarding_"));d(new Set(o.map(s=>s.replace("onboarding_","")))),u(!1)},[a]);m.useEffect(()=>{f()},[f]),m.useEffect(()=>{O()},[]);const t=m.useCallback(async r=>{var s,j;if(!a)return;const o=`onboarding_${r}`;if(n.has(r))await g.from("founder_journey").delete().eq("user_id",a.id).eq("step_key",o),d(y=>{const w=new Set(y);return w.delete(r),w});else{await g.from("founder_journey").insert({user_id:a.id,step_key:o});const y=new Set(n).add(r);d(y),y.size===p.length&&T("onboarding-complete",{body:{founderName:((s=a.user_metadata)==null?void 0:s.display_name)||((j=a.user_metadata)==null?void 0:j.full_name)||null}}).catch(console.error)}},[a,n]),_=Math.round(n.size/p.length*100);return e.jsxs("div",{className:"min-h-screen bg-background text-foreground",children:[e.jsx(E,{}),e.jsx("section",{className:"pt-32 pb-24 px-6",children:e.jsxs("div",{className:"max-w-2xl mx-auto",children:[!a&&!h&&e.jsxs(l.div,{initial:{opacity:0,y:10}
1,animate:{opacity:1,y:0},className:"mb-8 p-5 rounded-2xl border border-primary/30 bg-primary/5 text-center",children:[e.jsx(v,{className:"w-6 h-6 text-primary mx-auto mb-2"}),e.jsx("h2",{className:"font-display text-base font-semibold mb-1",children:"Sign in to track your progress"}),e.jsx("p",{className:"font-body text-xs text-muted-foreground mb-4 max-w-sm mx-auto",children:"Your onboarding checklist is saved to your account so you can pick up where you left off on any device."}),e.jsx(N,{asChild:!0,className:"font-body text-sm bg-primary text-primary-foreground hover:bg-primary/90 rounded-full px-6",children:e.jsxs(b,{to:"/auth",children:[e.jsx(v,{className:"w-3.5 h-3.5"})," Sign In"]})})]}),e.jsxs(l.div,{initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},transition:{duration:.5},className:"text-center mb-10",children:[e.jsx("div",{className:"inline-flex items-center justify-center w-20 h-20 rounded-full bg-primary/10 mb-6",children:e.jsx(k,{className:"w-10 h-10 text-primary"})}),x?e.jsxs(e.Fragment,{children:[e.jsxs("h1",{className:"font-display text-3xl md:text-4xl font-medium tracking-tight mb-3",children:["Concept Review ",e.jsx("span",{className:"text-gradient-primary",children:"Submitted"})]}),e.jsx("p",{className:"font-body text-sm text-muted-foreground max-w-md mx-auto font-light",children:"Aaron has your concept and 90-day plan. He returns a written review within 5 business days and decides whether you're invited into the Sprint. While you wait, get a head start below."})]}):e.jsxs(e.Fragment,{children:[e.jsxs("h1",{className:"font-display text-3xl md:text-4xl font-medium tracking-tight mb-3",children:["Welcome to ",e.jsx("span",{className:"text-gradient-primary",children:"Conceptually"})," ð"]}),e.jsx("p",{className:"font-body text-sm text-muted-foreground max-w-md mx-auto font-light",children:"Your enrollment is confirmed. Complete these 3 steps to hit the ground running."})]})]}),e.jsxs(l.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{delay:.3},className:"mb-8",children:[e.jsxs("div",{className:"flex justify-between items-center mb-1.5",children:[e.jsx("span",{className:"font-body text-xs font-medium text-foreground",children:"Onboarding Progress"}),e.jsxs("span",{className:"font-body text-xs font-semibold text-primary",children:[n.size,"/",p.length," done"]})]}),e.jsx("div",{className:"h-2 w-full bg-muted rounded-full overflow-hidden",children:e.jsx(l.div,{className:"h-full bg-primary rounded-full",initial:{width:0},animate:{width:`${_}%`},transition:{duration:.6,delay:.4}})})]}),e.jsx("div",{className:"space-y-4",children:h?Array.from({length:3}).map((r,o)=>e.jsxs("div",{className:"flex items-start gap-4 p-5 rounded-2xl border border-border/60 bg-card",children:[e.jsx(c,{className:"w-7 h-7 rounded-full shrink-0"}),e.jsxs("div",{className:"flex-1 space-y-2",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(c,{className:"h-4 w-16 rounded-full"}),e.jsx(c,{className:"h-3 w-10"})]}),e.jsx(c,{className:"h-4 w-3/4"}),e.jsx(c,{className:"h-3 w-full"}),e.jsx(c,{className:"h-3 w-2/3"}),e.jsx(c,{className:"h-3 w-20 mt-1"})]})]},o)):p.map((r,o)=>{const s=n.has(r.id);return e.jsxs(l.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.4+o*.12},className:`relative flex items-start gap-4 p-5 rounded-2xl border transition-all ${s?"bg-primary/5 border-primary/30":"bg-card border-border/60 hover:border-primary/20"}`,children:[e.jsx("button",{onClick:()=>t(r.id),className:`flex items-center justify-center w-7 h-7 rounded-full border-2 shrink-0 mt-0.5 transition-all ${s?"bg-primary border-primary text-primary-foreground":"border-border hover:border-primary/40"}`,"aria-label":s?"Mark incomplete":"Mark complete",children:s&&e.jsx(k,{className:"w-4 h-4"})}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[e.jsxs("span",{className:"inline-flex items-center gap-1 px-2 py-0.5 rounded-full bg-primary/10 text-primary font-body text-[10px] font-bold uppercase tracking-wider",children:[e.jsx(r.icon,{className:"w-3 h-3"})," Step ",o+1]}),e.jsxs("span",{className:"font-body text-[10px] text-muted-foreground",children:["~",r.time]})]}),e.jsx("h3",{className:`font-display text-sm font-semibold mb-1 ${s?"line-through text-muted-foreground":""}`,children:r.title}),e.jsx("p",{className:"font-body text-xs text-muted-foreground leading-relaxed mb-2",children:r.description}),r.link&&e.jsxs(b,{to:r.link,className:"inline-flex items-center gap-1 font-body text-xs font-medium text-primary hover:text-primary/80 transition-colors",children:[r.linkText," ",e.jsx(S,{className:"w-3 h-3"})]}),r.externalLink&&e.jsxs("a",{href:r.externalLink,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1 font-body text-xs font-medium text-primary hover:text-primary/80 transition-colors",children:[r.linkText," ",e.jsx(S,{className:"w-3 h-3"})]})]})]},r.id)})}),n.size===p.length&&e.jsxs(l.div,{initial:{opacity:0,scale:.95}
1,animate:{opacity:1,scale:1},className:"mt-8 p-6 rounded-2xl bg-primary/5 border border-primary/30 text-center",children:[e.jsx(C,{className:"w-6 h-6 text-primary mx-auto mb-2"}),e.jsx("p",{className:"font-display text-base font-semibold mb-1",children:"You're all set! ð"}),e.jsx("p",{className:"font-body text-xs text-muted-foreground",children:"You've completed onboarding. Time to build something extraordinary."})]}),e.jsxs(l.div,{initial:{opacity:0},animate:{opacity:1},transition:{delay:.9},className:"mt-10",children:[e.jsx("p",{className:"font-body text-xs font-semibold text-muted-foreground uppercase tracking-wider mb-3 text-center",children:"Also Explore"}),e.jsx("div",{className:"flex flex-wrap justify-center gap-2",children:H.map(r=>e.jsxs(b,{to:r.to,className:"inline-flex items-center gap-1.5 px-4 py-2 rounded-full bg-muted/60 border border-border/50 hover:border-primary/30 hover:bg-primary/5 transition-all font-body text-xs font-medium text-muted-foreground hover:text-foreground",children:[e.jsx(r.icon,{className:"w-3.5 h-3.5"}),r.label]},r.to))})]}),e.jsx(l.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:1},className:"text-center mt-10",children:e.jsx(N,{asChild:!0,className:"font-body text-sm bg-primary text-primary-foreground hover:bg-primary/90 rounded-full h-11 px-8",children:e.jsxs(b,{to:"/incubator",children:[e.jsx(P,{className:"w-4 h-4"})," Open Your Workspace"]})})})]})}),e.jsx(L,{})]})}export{se 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.