PageSourceSearch

https://mom-relaunch-operations.replit.app/assets/member-dashboard-CbW-7RBP.js

js mom-relaunch-operations.replit.app collected 2026-10-03 03:57:21 UTC 9,887 bytes, 1 lines download raw bytes

1import{u as k,a as m,j as e,B as i}from"./index-CAQ13S4Q.js";import{D as b,g as v}from"./DashboardLayout-D4dWruAd.js";import{C as n,a,b as x,c as h,d as u}from"./card-CTte3NwH.js";import{B as j}from"./badge-BIcNOGXM.js";import{G as E}from"./graduation-cap-F-e8E-7G.js";import{S as F}from"./star-BA9EpOgc.js";import{C as p}from"./calendar-my5pgd8p.js";import{C as f}from"./clock-Bu42E7Gm.js";import{C as q}from"./circle-check-BbGVfZkN.js";import{A as N}from"./arrow-right-D2SyS3Lv.js";import{U as S}from"./users-CoQz9KHi.js";import"./chevron-down-DrFMZL5L.js";import"./book-open-BnRVuwFv.js";import"./clipboard-list-BT0VXQwa.js";import"./send-BgUzCLW3.js";import"./briefcase-Y932zzyD.js";import"./file-text-R_pM00OY.js";import"./layers-v3hfQz6U.js";import"./lightbulb-BkTBoWvu.js";import"./sparkles-DceSqJL-.js";import"./message-square-D2i2MLDD.js";import"./mail-CceyJTD6.js";import"./phone-Ba1rmZcD.js";import"./zap-kX9-TAI9.js";import"./building-2-BFNQnyv8.js";import"./dollar-sign-B7J91vea.js";import"./user-plus-BzRQTASM.js";import"./credit-card-CCeZL3G5.js";import"./shield-Di2I2aoJ.js";import"./calendar-days-DfU5MECF.js";import"./pen-line-CDKkV62m.js";import"./search-DiyMTJ8X.js";import"./eye-DSWlipjM.js";import"./chevron-left-BF8cF2we.js";import"./mic-SuZtcbJ8.js";import"./mic-off-CUCELVVI.js";function xe(){const[,t]=k(),{data:r}=m({queryKey:["/api/members/current"],queryFn:async()=>{const s=await fetch("/api/auth/user");if(!s.ok)throw new Error("Not authenticated");const c=await s.json(),g=await fetch(`/api/members/${c.id}`);return g.ok?g.json():null}}),{data:l=[]}=m({queryKey:["/api/members",r?.id,"projects"],queryFn:async()=>{if(!r?.id)return[];const s=await fetch(`/api/members/${r.id}/projects`);return s.ok?s.json():[]},enabled:!!r?.id}),{data:d=[]}=m({queryKey:["/api/members",r?.id,"timesheets"],queryFn:async()=>{if(!r?.id)return[];const s=await fetch(`/api/members/${r.id}/timesheets`);return s.ok?s.json():[]},enabled:!!r?.id}),{data:o=[]}=m({queryKey:["/api/members",r?.id,"events"],queryFn:async()=>{if(!r?.id)return[];const s=await fetch(`/api/members/${r.id}/events`);return s.ok?s.json():[]},enabled:!!r?.id}),y=d.reduce((s,c)=>s+c.hours+c.minutes/60,0),w=l.filter(s=>s.status==="in_progress").length,C=l.filter(s=>s.status==="completed").length;return r?e.jsx(b,{children:e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{children:[e.jsxs("h1",{className:"text-3xl font-serif font-bold text-foreground",children:["Welcome back, ",r.firstName,"!"]}),e.jsx("p",{className:"text-muted-foreground mt-1",children:"Your journey to career relaunch continues here"})]}),e.jsx(j,{variant:r.membershipTier==="premium"?"default":"secondary",className:"text-sm px-3 py-1",children:r.membershipTier==="premium"?e.jsxs(e.Fragment,{children:[e.jsx(F,{className:"h-3 w-3 mr-1"}),"Premium Member"]}):"Free Member"})]}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4",children:[e.jsx(n,{children:e.jsx(a,{className:"pt-6",children:e.jsxs("div",{className:"flex items-center gap-4",children:[e.jsx("div",{className:"h-12 w-12 rounded-full bg-blue-100 flex items-center justify-center",children:e.jsx(p,{className:"h-6 w-6 text-blue-600"})}),e.jsxs("div",{children:[e.jsx("p",{className:"text-2xl font-bold",children:o.length}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"Enrolled Events"})]})]})})}),e.jsx(n,{children:e.jsx(a,{className:"pt-6",children:e.jsxs("div",{className:"flex items-center gap-4",children:[e.jsx("div",{className:"h-12 w-12 rounded-full bg-green-100 flex items-center justify-center",children:e.jsx(v,{className:"h-6 w-6 text-green-600"})}),e.jsxs("div",{children:[e.jsx("p",{className:"text-2xl font-bold",children:w}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"Active Projects"})]})]})})}),e.jsx(n,{children:e.jsx(a,{className:"pt-6",children:e.jsxs("div",{className:"flex items-center gap-4",children:[e.jsx("div",{className:"h-12 w-12 rounded-full bg-purple-100 flex items-center justify-center",children:e.jsx(f,{className:"h-6 w-6 text-purple-600"})}),e.jsxs("div",{children:[e.jsx("p",{className:"text-2xl font-bold",children:y.toFixed(1)}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"Hours Logged"})]})]})})}),e.jsx(n,{children:e.jsx(a,{className:"pt-6",children:e.jsxs("div",{className:"flex items-center gap-4",children:[e.jsx("div",{className:"h-12 w-12 rounded-full bg-orange-100 flex items-center justify-center",children:e.jsx(q,{className:"h-6 w-6 text-orange-600"})}),e.jsxs("div",{children:[e.jsx("p",{className:"text-2xl font-bold",children:C}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"Completed Projects"})]})]})})})]}),e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6",children:[e.jsxs(n,{children:[e.jsx(x,{children:e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{children:[e.jsx(h,{children:"Your Projects"}),e.jsx(u,{children:"Track your portfolio projects"})]}),e.jsxs(i,{variant:"outline",size:"sm",onClick:()=>t("/member/projects"),children:["View All ",e.jsx(N,{className:"h-4 w-4 ml-1"})]})]})}),e.jsx(a,{children:l.length===0?e.jsxs("div",{className:"text-center py-8 text-muted-foreground",children:[e.jsx(v,{className:"h-10 w-10 mx-auto mb-2 opacity-50"}),e.jsx("p",{children:"No projects yet"}),e.jsx(i,{variant:"link",onClick:()=>t("/member/projects"),children:"Start your first project"})]}):e.jsx("div",{className:"space-y-3",children:l.slice(0,3).map(s=>e.jsxs("div",{className:"flex items-center justify-between p-3 rounded-lg bg-muted/50",children:[e.jsxs("div",{children:[e.jsx("p",{className:"font-medium",children:s.name}),e.jsx("p",{className:"text-sm text-muted-foreground",children:s.description||"No description"})]}),e.jsx(j,{variant:s.status==="completed"?"default":s.status==="in_progress"?"secondary":"outline",children:s.status.replace("_"," ")})]},s.id))})})]}),e.jsxs(n,{children:[e.jsx(x,{children:e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{children:[e.jsx(h,{children:"Upcoming Events"}),e.jsx(u,{children:"Sessions and cohorts you're enrolled in"})]}),e.jsxs(i,{variant:"outline",size:"sm",onClick:()=>t("/member/events"),children:["Browse Events ",e.jsx(N,{className:"h-4 w-4 ml-1"})]})]})}),e.jsx(a,{children:o.length===0?e.jsxs("div",{className:"text-center py-8 text-muted-foreground",children:[e.jsx(p,{className:"h-10 w-10 mx-auto mb-2 opacity-50"}),e.jsx("p",{children:"No enrolled events"}),e.jsx(i,{variant:"link",onClick:()=>t("/member/events"),children:"Browse available sessions"})]}):e.jsx("div",{className:"space-y-3",children:o.slice(0,3).map(s=>e.jsxs("div",{className:"flex items-center justify-between p-3 rounded-lg bg-muted/50",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx(p,{className:"h-5 w-5 text-primary"}),e.jsxs("div",{children:[e.jsxs("p",{className:"font-medium",children:["Event ",s.eventId.substring(0,8)]}),e.jsx("p",{className:"text-sm text-muted-foreground capitalize",children:s.accessType})]})]}),e.jsx(j,{variant:s.status==="completed"?"default":"secondary",children:s.status})]},s.id))})})]})]}),e.jsxs(n,{children:[e.jsx(x,{children:e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{children:[e.jsx(h,{children:"Recent Time Entries"}),e.jsx(u,{children:"Your logged hours this week"})]}),e.jsxs(i,{variant:"outline",size:"sm",onClick:()=>t("/member/timesheets"),children:["View Timesheets ",e.jsx(N,{className:"h-4 w-4 ml-1"})]})]})}),e.jsx(a,{children:d.length===0?e.jsxs("div",{className:"text-center py-8 text-muted-foreground",children:[e.jsx(f,{className:"h-10 w-10 mx-auto mb-2 opacity-50"}),e.jsx("p",{children:"No time entries yet"}),e.jsx(i,{variant:"link",onClick:()=>t("/member/timesheets"),children:"Log your first hours"})]}):e.jsx("div",{className:"space-y-2",children:d.slice(0,5).map(s=>e.jsxs("div",{className:"flex items-center justify-between p-3 rounded-lg bg-muted/50",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx(f,{className:"h-5 w-5 text-muted-foreground"}),e.jsxs("div",{children:[e.jsx("p",{className:"font-medium",children:new Date(s.date).toLocaleDateString("en-US",{weekday:"short",month:"short",day:"numeric"})}),e.jsx("p",{className:"text-sm text-muted-foreground capitalize",children:s.category.replace("_"," ")})]})]}),e.jsxs("span",{className:"font-medium",children:[s.hours,"h ",s.minutes,"m"]})]},s.id))})})]}),e.jsx(n,{className:"bg-gradient-to-r from-primary/10 to-primary/5 border-primary/20",children:e.jsx(a,{className:"py-6",children:e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center gap-4",children:[e.jsx("div",{className:"h-12 w-12 rounded-full bg-primary/20 flex items-center justify-center",children:e.jsx(S,{className:"h-6 w-6 text-primary"})}),e.jsxs("div",{children:[e.jsx("h3",{className:"font-semibold text-lg",children:"Need Support?"}),e.jsx("p",{className:"text-muted-foreground",children:"Connect with mentors and fellow moms in our community"})]})]}),e.jsx(i,{onClick:()=>t("/member/community"),children:"Join Community"})]})})})]})}):e.jsx(b,{children:e.jsxs("div",{className:"flex flex-col items-center justify-center min-h-[60vh]",children:[e.jsx(E,{className:"h-16 w-16 text-primary mb-4"}),e.jsx("h1",{className:"text-2xl font-serif font-bold mb-2",children:"Welcome to Mom Relaunch"}),e.jsx("p",{className:"text-muted-foreground mb-6 text-center max-w-md",children:"Join our community of amazing moms returning to the workforce. Sign up to access training sessions, projects, and networking opportunities."}),e.jsx(i,{onClick:()=>t("/member/signup"),"data-testid":"button-member-signup",children:"Join as a Member (Free)"})]})})}export{xe 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.