1import{j as e,e as de,C as oe,d as xe,r as u,s as M,u as fe,k as ve,B as be,X as ye}from"./index-EuY_-FAY.js";import{c as K,D as we}from"./DashboardLayout-Gw2TxiBJ.js";import{E as Se}from"./EventSettingsContent-DjtkJf4y.js";import{C as l,a as n,b as c,c as m}from"./card-CIFW0qNz.js";import{B as a}from"./button-DwzNqib_.js";import{B as p}from"./badge-BiGl0epm.js";import{E as ee}from"./eye-DWMmm-eV.js";import{C as T}from"./calendar-TeXraZ6Q.js";import{C as A}from"./clock-C9pzXbgT.js";import{M as De}from"./map-pin-CiJS0zpt.js";import{U as f}from"./users-B7Eh8ycR.js";import{A as le}from"./Footer-DLYBYlrH.js";import{F}from"./layout-dashboard-a4gKtYLw.js";import{P as se,M as Pe}from"./MediaGalleryContent-XJA4H3_o.js";import{S as Me}from"./StartupMentoringContent-BM0TjvzA.js";import{B as Te}from"./search-BN9ssjqw.js";import{T as S}from"./target-Cm-J7PgS.js";import{C as Ce}from"./plus-DP6EyEDe.js";import{T as B}from"./trending-up-DfxLE4nH.js";import{M as C}from"./message-square-CX4ymtRO.js";import{S as L}from"./star-DLxjevVK.js";import{A as Z}from"./award-CK-g5_KF.js";import{I as Ae}from"./InvestorDashboard-JDZBR7Qe.js";import{B as ne}from"./shield-nL0KFzur.js";import{H as ce}from"./handshake-ChAu9QXI.js";import{P as _e}from"./ProgramManagerDashboard-4Q0cBFyb.js";import{A as Ee}from"./MentorApplicationsContent-Bm0qIoL7.js";import"./list-checks-XjZkVVNc.js";import"./user-DuBvhp_O.js";import"./circle-user-C6EVL7I0.js";import"./index-wQwPqDfP.js";import"./index-BMKRCHpo.js";import"./index-BJKYc_OV.js";import"./index-DKmrCAge.js";import"./chevron-down-D0i5abe3.js";import"./chevron-right-R-JJXQF-.js";import"./settings-DbY5cOJ-.js";import"./user-plus-tyTYVH-R.js";import"./rocket-D93ZlqmD.js";import"./users-round-B278ejjI.js";import"./ChatSystem-4zb8rVWu.js";import"./input-CwLsOgdz.js";import"./avatar-DmtcMqZM.js";import"./NotificationCenter-DHgRHZeL.js";import"./index-BccXDNaF.js";import"./index-BdQq_4o_.js";import"./DashboardHeader-qK3Qmy-e.js";import"./index-BSIHs9Yh.js";import"./index-C40cg7B2.js";import"./index-BONWbLIr.js";import"./index-BXTDk0Ug.js";import"./check-BFBMQrmy.js";import"./building-2-AqdBhrS9.js";import"./arrow-left-lIwOt_N5.js";import"./mail-BVVKtkzs.js";import"./send-CxotHqOi.js";import"./presentation-1PlbYjJw.js";import"./clipboard-list-DnNVBJ_L.js";import"./menu-QX_7UXmx.js";import"./FeedbackButton-84GpwsHz.js";import"./dialog-BshpMbXa.js";import"./index-Byc0C5HR.js";import"./textarea-D6vuaKhs.js";import"./label-DHjRMKAW.js";import"./tabs-BkjaH3fl.js";import"./cityCoordinates-BF9Pw5Lr.js";import"./index-CCnnvLwg.js";import"./switch-C1fACMOm.js";import"./index-90AI2Mcq.js";import"./quill.snow-Dj63gIbu.js";import"./select-Zkugu-mn.js";import"./chevron-up-BGLh5JIr.js";import"./separator-CP7aABc2.js";import"./checkbox-D-yVHPM-.js";import"./command-CJk2AU3Y.js";import"./format-BJatCrh1.js";import"./popover-C1CUfueU.js";import"./CityCountryInput-DzjN59o-.js";import"./useQuery-DeYV4IS5.js";import"./loader-circle-Caxve_ph.js";import"./chevrons-up-down-CWJDjV6L.js";import"./venueAddress-DVUbw9NQ.js";import"./filter-BX-yFJmx.js";import"./timezones-CsxV_3Uh.js";import"./image-rU_ppTuS.js";import"./list-DRGo6gHo.js";import"./save-B2VAfAIz.js";import"./index-DwFUDgNw.js";import"./index-Cb8UU1H3.js";import"./calendar-D4NNVj7-.js";import"./subDays-1Gd6-EPS.js";import"./isSameDay-D8qkwPfC.js";import"./chevron-left-nZrh3bY0.js";import"./tooltip-DhO4SW4a.js";import"./index-h3IyJjLp.js";import"./parseISO-DmI85Ds7.js";import"./eachDayOfInterval-C6Nk_oxa.js";import"./differenceInMilliseconds-ycH2onZd.js";import"./download-Gq_d9FhN.js";import"./square-pen-DgtJmqsG.js";import"./mic-B2yxq-CM.js";import"./sparkles-CDimFECD.js";import"./globe-DmqLM4zl.js";import"./useInfiniteScroll-CcPzzG0i.js";import"./circle-check-DZuRMJvy.js";import"./play-BEepO1Dv.js";import"./eye-off-Cp1ZERv1.js";import"./ellipsis-vertical-eBvHTnN9.js";import"./NetworkingContent-Bb1EhX8P.js";import"./linkedin-CHWP1gWB.js";import"./twitter-7bv0L9_e.js";import"./StartupsContent-C87fSNlC.js";import"./StartupContactModal-C5e0adbk.js";import"./index-DXqQCM1T.js";import"./table-B7IdTOLn.js";import"./sticky-note-DtyHP69G.js";import"./bookmark-DYmGZhVj.js";import"./hash-DFi8_KFc.js";import"./KPISparkline-BhhDeoeA.js";import"./flame-BPIPFcJa.js";import"./graduation-cap-C2DPgq5_.js";import"./xlsx-DjuO7_Ju.js";import"./alert-dialog-Dzo3XCPR.js";import"./external-link-SoEG5yvx.js";const me=()=>{const o=[{id:1,title:"Opening Ceremony",time:"09:00 AM",location:"Main Stage"}
1,{id:2,title:"Startup Pitches",time:"10:30 AM",location:"Pitch Hall"},{id:3,title:"Networking Break",time:"12:00 PM",location:"Lobby"}];return e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{className:"bg-gradient-to-r from-blue-50 to-purple-50 rounded-lg p-6",children:[e.jsxs("div",{className:"flex items-center space-x-3 mb-4",children:[e.jsx(ee,{className:"w-8 h-8 text-blue-600"}),e.jsxs("div",{children:[e.jsx("h1",{className:"text-2xl font-bold text-gray-900",children:"Welcome, Visitor!"}),e.jsx("p",{className:"text-gray-600",children:"Explore and observe the startup ecosystem"})]})]}),e.jsxs("div",{className:"grid md:grid-cols-3 gap-4 mt-6",children:[e.jsxs("div",{className:"bg-white p-4 rounded-lg shadow-sm",children:[e.jsx("div",{className:"text-2xl font-bold text-blue-600",children:"50+"}),e.jsx("div",{className:"text-sm text-gray-600",children:"Startups Pitching"})]}),e.jsxs("div",{className:"bg-white p-4 rounded-lg shadow-sm",children:[e.jsx("div",{className:"text-2xl font-bold text-purple-600",children:"20+"}),e.jsx("div",{className:"text-sm text-gray-600",children:"Expert Mentors"})]}),e.jsxs("div",{className:"bg-white p-4 rounded-lg shadow-sm",children:[e.jsx("div",{className:"text-2xl font-bold text-green-600",children:"3"}),e.jsx("div",{className:"text-sm text-gray-600",children:"Days of Innovation"})]})]})]}),e.jsxs("div",{className:"grid lg:grid-cols-2 gap-6",children:[e.jsxs(l,{children:[e.jsx(n,{children:e.jsxs(c,{className:"flex items-center gap-2",children:[e.jsx(T,{className:"w-5 h-5 text-blue-600"}),"Today's Schedule"]})}),e.jsxs(m,{children:[e.jsx("div",{className:"space-y-4",children:o.map(r=>e.jsxs("div",{className:"flex items-center justify-between p-3 bg-gray-50 rounded-lg",children:[e.jsxs("div",{children:[e.jsx("div",{className:"font-medium text-gray-900",children:r.title}),e.jsxs("div",{className:"flex items-center gap-4 text-sm text-gray-600 mt-1",children:[e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(A,{className:"w-3 h-3"}),r.time]}),e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(De,{className:"w-3 h-3"}),r.location]})]})]}),e.jsx(p,{variant:"outline",className:"text-blue-600 border-blue-200",children:"View"})]},r.id))}),e.jsxs(a,{className:"w-full mt-4",variant:"outline",children:[e.jsx(T,{className:"w-4 h-4 mr-2"}),"View Full Schedule"]})]})]}),e.jsxs(l,{children:[e.jsx(n,{children:e.jsxs(c,{className:"flex items-center gap-2",children:[e.jsx(f,{className:"w-5 h-5 text-purple-600"}),"Featured Startups"]})}),e.jsxs(m,{children:[e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"p-4 border border-gray-200 rounded-lg",children:[e.jsxs("div",{className:"flex items-center justify-between mb-2",children:[e.jsx("h3",{className:"font-semibold text-gray-900",children:"EcoTech Solutions"}),e.jsx(p,{className:"bg-green-100 text-green-800",children:"Climate Tech"})]}),e.jsx("p",{className:"text-sm text-gray-600 mb-3",children:"Sustainable energy solutions for smart cities"}),e.jsxs(a,{size:"sm",variant:"outline",className:"w-full",children:[e.jsx(le,{className:"w-4 h-4 mr-2"}),"View Pitch"]})]}),e.jsxs("div",{className:"p-4 border border-gray-200 rounded-lg",children:[e.jsxs("div",{className:"flex items-center justify-between mb-2",children:[e.jsx("h3",{className:"font-semibold text-gray-900",children:"HealthAI"}),e.jsx(p,{className:"bg-blue-100 text-blue-800",children:"Healthcare"})]}),e.jsx("p",{className:"text-sm text-gray-600 mb-3",children:"AI-powered diagnostic tools for early detection"}),e.jsxs(a,{size:"sm",variant:"outline",className:"w-full",children:[e.jsx(le,{className:"w-4 h-4 mr-2"}),"View Pitch"]})]})]}),e.jsxs(a,{className:"w-full mt-4",variant:"outline",children:[e.jsx(f,{className:"w-4 h-4 mr-2"}),"Browse All Startups"]})]})]})]}),e.jsxs(l,{children:[e.jsx(n,{children:e.jsxs(c,{className:"flex items-center gap-2",children:[e.jsx(F,{className:"w-5 h-5 text-gray-600"}),"Event Information"]})}),e.jsx(m,{children:e.jsxs("div",{className:"grid md:grid-cols-2 gap-6",children:[e.jsxs("div",{children:[e.jsx("h3",{className:"font-semibold text-gray-900 mb-3",children:"What to Expect"}),e.jsxs("ul",{className:"space-y-2 text-sm text-gray-600",children:[e.jsxs("li",{className:"flex items-center gap-2",children:[e.jsx("div",{className:"w-1.5 h-1.5 bg-blue-600 rounded-full"}),"Live startup pitches and demos"]}),e.jsxs("li",{className:"flex items-center gap-2",children:[e.jsx("div",{className:"w-1.5 h-1.5 bg-blue-600 rounded-full"}),"Networking opportunities with entrepreneurs"]}),e.jsxs("li",{className:"flex items-center gap-2",children:[e.jsx("div",{className:"w-1.5 h-1.5 bg-blue-600 rounded-full"}),"Expert panel discussions"]}),e.jsxs("li",{className:"flex items-center gap-2",children:[e.jsx("div",{className:"w-1.5 h-1.5 bg-blue-600 rounded-full"}),"Innovation workshops"]})]})]}),e.jsxs("div",{children:[e.jsx("h3",{className:"font-semibold text-gray-900 mb-3",children:"Event Guidelines"}),e.jsxs("ul",{className:"space-y-2 text-sm text-gray-600",children:[e.jsxs("li",{className:"flex items-center gap-2",children:[e.jsx("div",{className:"w-1.5 h-1.5 bg-green-600 rounded-full"}),"Please respect presenter time limits"]}),e.jsxs("li",{className:"flex items-center gap-2",children:[e.jsx("div",{className:"w-1.5 h-1.5 bg-green-600 rounded-full"}),"Questions welcome during Q&A sessions"]}),e.jsxs("li",{className:"flex items-center gap-2",children:[e.jsx("div",{className:"w-1.5 h-1.5 bg-green-600 rounded-full"}),"Photography allowed in designated areas"]}),e.jsxs("li",{className:"flex items-center gap-2",children:[e.jsx("div",{className:"w-1.5 h-1.5 bg-green-600 rounded-full"}),"Network respectfully with participants"]})]})]})]})})]})]})},Re=()=>{de();const o="bdfb97d4-82bd-49e7-96e7-26b9a5f07353",r=[{id:1,title:"Team Formation",status:"completed",dueDate:"Day 1"},{id:2,title:"Problem Validation",status:"completed",dueDate:"Day 1"},{id:3,title:"Solution Design",status:"in-progress",dueDate:"Day 2"},{id:4,title:"Business Model",status:"pending",dueDate:"Day 2"},{id:5,title:"Pitch Preparation",status:"pending",dueDate:"Day 3"}];
1return e.jsxs("div",{className:"space-y-4 sm:space-y-6",children:[e.jsxs("div",{className:"bg-gradient-to-r from-green-50 to-blue-50 rounded-lg p-4 sm:p-6",children:[e.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center space-y-2 sm:space-y-0 sm:space-x-3 mb-4",children:[e.jsx(Te,{className:"w-6 h-6 sm:w-8 sm:h-8 text-green-600"}),e.jsxs("div",{children:[e.jsx("h1",{className:"text-xl sm:text-2xl font-bold text-gray-900",children:"Founder Dashboard"}),e.jsx("p",{className:"text-sm sm:text-base text-gray-600",children:"Transform your idea into reality"})]})]}),e.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-3 sm:gap-4 mt-4 sm:mt-6",children:[e.jsxs("div",{className:"bg-white p-3 sm:p-4 rounded-lg shadow-sm",children:[e.jsx("div",{className:"text-lg sm:text-2xl font-bold text-green-600",children:"42%"}),e.jsx("div",{className:"text-xs sm:text-sm text-gray-600",children:"Progress"})]}),e.jsxs("div",{className:"bg-white p-3 sm:p-4 rounded-lg shadow-sm",children:[e.jsx("div",{className:"text-lg sm:text-2xl font-bold text-blue-600",children:"4"}),e.jsx("div",{className:"text-xs sm:text-sm text-gray-600",children:"Team Members"})]}),e.jsxs("div",{className:"bg-white p-3 sm:p-4 rounded-lg shadow-sm",children:[e.jsx("div",{className:"text-lg sm:text-2xl font-bold text-purple-600",children:"2"}),e.jsx("div",{className:"text-xs sm:text-sm text-gray-600",children:"Mentor Sessions"})]}),e.jsxs("div",{className:"bg-white p-3 sm:p-4 rounded-lg shadow-sm",children:[e.jsx("div",{className:"text-lg sm:text-2xl font-bold text-primary",children:"18h"}),e.jsx("div",{className:"text-xs sm:text-sm text-gray-600",children:"Time Left"})]})]})]}),e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-4 sm:gap-6",children:[e.jsxs(l,{className:"lg:col-span-2",children:[e.jsx(n,{children:e.jsxs(c,{className:"flex items-center gap-2",children:[e.jsx(S,{className:"w-5 h-5 text-green-600"}),"Startup Journey Progress"]})}),e.jsxs(m,{children:[e.jsxs("div",{className:"mb-6",children:[e.jsxs("div",{className:"flex justify-between text-sm mb-2",children:[e.jsx("span",{children:"Overall Progress"}),e.jsx("span",{children:"42%"})]}),e.jsx(se,{value:42,className:"h-2"})]}),e.jsx("div",{className:"space-y-3 sm:space-y-4",children:r.map(s=>e.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center sm:justify-between p-3 bg-gray-50 rounded-lg space-y-2 sm:space-y-0",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[s.status==="completed"?e.jsx(oe,{className:"w-4 h-4 sm:w-5 sm:h-5 text-green-600 flex-shrink-0"}):s.status==="in-progress"?e.jsx(A,{className:"w-4 h-4 sm:w-5 sm:h-5 text-blue-600 flex-shrink-0"}):e.jsx(Ce,{className:"w-4 h-4 sm:w-5 sm:h-5 text-gray-400 flex-shrink-0"}),e.jsxs("div",{children:[e.jsx("div",{className:"font-medium text-gray-900 text-sm sm:text-base",children:s.title}),e.jsxs("div",{className:"text-xs sm:text-sm text-gray-600",children:["Due: ",s.dueDate]})]})]}),e.jsx(p,{variant:s.status==="completed"?"default":"outline",className:`text-xs ${s.status==="completed"?"bg-green-100 text-green-800":s.status==="in-progress"?"bg-blue-100 text-blue-800":"bg-gray-100 text-gray-600"}`,children:s.status.replace("-"," ")})]},s.id))})]})]}),e.jsxs(l,{children:[e.jsx(n,{children:e.jsxs(c,{className:"flex items-center gap-2",children:[e.jsx(B,{className:"w-5 h-5 text-purple-600"}),"Quick Actions"]})}),e.jsxs(m,{className:"space-y-2 sm:space-y-3",children:[e.jsxs(a,{className:"w-full justify-start text-sm",variant:"outline",children:[e.jsx(f,{className:"w-4 h-4 mr-2"}),"Manage Team"]}),e.jsxs(a,{className:"w-full justify-start text-sm",variant:"outline",children:[e.jsx(C,{className:"w-4 h-4 mr-2"}),"Update Pitch Deck"]}),e.jsxs(a,{className:"w-full justify-start text-sm",variant:"outline",children:[e.jsx(S,{className:"w-4 h-4 mr-2"}),"Set Milestones"]}),e.jsxs(a,{className:"w-full justify-start text-sm",variant:"outline",children:[e.jsx(A,{className:"w-4 h-4 mr-2"}),"Schedule Mentor Call"]})]})]})]}),e.jsx(Me,{eventId:o})]})},ke=()=>{const o=[{id:1,title:"Market Research",assigned:"You",status:"completed",dueDate:"Day 1"},{id:2,title:"User Interface Design",assigned:"You",status:"in-progress",dueDate:"Day 2"},{id:3,title:"Technical Documentation",assigned:"You",status:"pending",dueDate:"Day 2"},{id:4,title:"Financial Projections",assigned:"Team",status:"completed",dueDate:"Day 2"}],r=[{id:1,name:"You",role:"Event Attendee",status:"online",avatar:"ð¤"},{id:2,name:"Other Attendees",role:"Fellow Participants",status:"online",avatar:"ð¥"}],s=[{id:1,title:"Team Standup",time:"10:00 AM",type:"meeting"},{id:2,title:"Mentor Session",time:"2:00 PM",type:"mentoring"},{id:3,title:"Progress Review",time:"5:00 PM",type:"review"}];return e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{className:"bg-gradient-to-r from-blue-50 to-indigo-50 rounded-lg p-6",children:[e.jsxs("div",{className:"flex items-center space-x-3 mb-4",children:[e.jsx(f,{className:"w-8 h-8 text-blue-600"}),e.jsxs("div",{children:[e.jsx("h1",{className:"text-2xl font-bold text-gray-900",children:"Attendee Dashboard"}),e.jsx("p",{className:"text-gray-600",children:"Participate and engage in the startup event"})]})]}),e.jsxs("div",{className:"grid md:grid-cols-4 gap-4 mt-6",children:[e.jsxs("div",{className:"bg-white p-4 rounded-lg shadow-sm",children:[e.jsx("div",{className:"text-2xl font-bold text-blue-600",children:"6"}),e.jsx("div",{className:"text-sm text-gray-600",children:"Assigned Tasks"})]}),e.jsxs("div",{className:"bg-white p-4 rounded-lg shadow-sm",children:[e.jsx("div",{className:"text-2xl font-bold text-green-600",children:"4"}),e.jsx("div",{className:"text-sm text-gray-600",children:"Completed Tasks"})]}),e.jsxs("div",{className:"bg-white p-4 rounded-lg shadow-sm",children:[e.jsx("div",{className:"text-2xl font-bold text-purple-600",children:"2"}),e.jsx("div",{className:"text-sm text-gray-600",children:"Event Participants"})]}),e.jsxs("div",{className:"bg-white p-4 rounded-lg shadow-sm",children:[e.jsx("div",{className:"text-2xl font-bold text-primary",children:"67%"}),e.jsx("div",{className:"text-sm text-gray-600",children:"Progress"})]})]})]}),e.jsxs("div",{className:"grid lg:grid-cols-3 gap-6",children:[e.jsxs(l,{className:"lg:col-span-2",children:[e.jsx(n,{children:e.jsxs(c,{className:"flex items-center gap-2",children:[e.jsx(S,{className:"w-5 h-5 text-blue-600"}),"My Tasks"]})}),e.jsxs(m,{children:[e.jsxs("div",{className:"mb-4",children:[e.jsxs("div",{className:"flex justify-between text-sm mb-2",children:[e.jsx("span",{children:"Task Progress"}),e.jsx("span",{children:"67%"})]}),e.jsx(se,{value:67,className:"h-2"})]}),e.jsx("div",{className:"space-y-4",children:o.map(t=>e.jsxs("div",{className:"flex items-center justify-between p-3 bg-gray-50 rounded-lg",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[t.status==="completed"?e.jsx(oe,{className:"w-5 h-5 text-green-600"}):t.status==="in-progress"?e.jsx(A,{className:"w-5 h-5 text-blue-600"}):e.jsx("div",{className:"w-5 h-5 border-2 border-gray-300 rounded-full"}),e.jsxs("div",{children:[e.jsx("div",{className:"font-medium text-gray-900",children:t.title}),e.jsxs("div",{className:"text-sm text-gray-600",children:["Assigned to: ",t.assigned," ⢠Due: ",t.dueDate]})]})]}
1),e.jsx(p,{className:t.status==="completed"?"bg-green-100 text-green-800":t.status==="in-progress"?"bg-blue-100 text-blue-800":"bg-gray-100 text-gray-600",children:t.status.replace("-"," ")})]},t.id))})]})]}),e.jsxs(l,{children:[e.jsx(n,{children:e.jsxs(c,{className:"flex items-center gap-2",children:[e.jsx(f,{className:"w-5 h-5 text-purple-600"}),"Event Participants"]})}),e.jsxs(m,{children:[e.jsx("div",{className:"space-y-4",children:r.map(t=>e.jsxs("div",{className:"flex items-center gap-3 p-2",children:[e.jsx("div",{className:"text-2xl",children:t.avatar}),e.jsxs("div",{className:"flex-1",children:[e.jsx("div",{className:"font-medium text-gray-900",children:t.name}),e.jsx("div",{className:"text-sm text-gray-600",children:t.role})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("div",{className:`w-2 h-2 rounded-full ${t.status==="online"?"bg-green-500":"bg-yellow-500"}`}),e.jsx("span",{className:"text-xs text-gray-600",children:t.status})]})]},t.id))}),e.jsxs(a,{className:"w-full mt-4",variant:"outline",children:[e.jsx(C,{className:"w-4 h-4 mr-2"}),"Event Chat"]})]})]})]}),e.jsxs(l,{children:[e.jsx(n,{children:e.jsxs(c,{className:"flex items-center gap-2",children:[e.jsx(T,{className:"w-5 h-5 text-green-600"}),"Today's Schedule"]})}),e.jsx(m,{children:e.jsx("div",{className:"grid md:grid-cols-3 gap-4",children:s.map(t=>e.jsxs("div",{className:"p-4 border border-gray-200 rounded-lg",children:[e.jsxs("div",{className:"flex items-center justify-between mb-2",children:[e.jsx("h3",{className:"font-semibold text-gray-900",children:t.title}),e.jsx(p,{variant:"outline",className:t.type==="meeting"?"text-blue-600 border-blue-200":t.type==="mentoring"?"text-purple-600 border-purple-200":"text-green-600 border-green-200",children:t.type})]}),e.jsx("div",{className:"text-sm text-gray-600 mb-3",children:t.time}),e.jsx(a,{size:"sm",className:"w-full",children:"Join"})]},t.id))})})]}),e.jsxs("div",{className:"grid lg:grid-cols-2 gap-6",children:[e.jsxs(l,{children:[e.jsx(n,{children:e.jsxs(c,{className:"flex items-center gap-2",children:[e.jsx(F,{className:"w-5 h-5 text-primary"}),"Resources & Documents"]})}),e.jsxs(m,{className:"space-y-3",children:[e.jsxs(a,{className:"w-full justify-start",variant:"outline",children:[e.jsx(F,{className:"w-4 h-4 mr-2"}),"Startup Canvas"]}),e.jsxs(a,{className:"w-full justify-start",variant:"outline",children:[e.jsx(B,{className:"w-4 h-4 mr-2"}),"Market Research"]}),e.jsxs(a,{className:"w-full justify-start",variant:"outline",children:[e.jsx(f,{className:"w-4 h-4 mr-2"}),"Event Guidelines"]}),e.jsxs(a,{className:"w-full justify-start",variant:"outline",children:[e.jsx(S,{className:"w-4 h-4 mr-2"}),"Project Roadmap"]})]})]}),e.jsxs(l,{children:[e.jsx(n,{children:e.jsxs(c,{className:"flex items-center gap-2",children:[e.jsx(C,{className:"w-5 h-5 text-blue-600"}),"Communication"]})}),e.jsxs(m,{className:"space-y-3",children:[e.jsxs(a,{className:"w-full justify-start",variant:"outline",children:[e.jsx(C,{className:"w-4 h-4 mr-2"}),"Event Chat"]}),e.jsxs(a,{className:"w-full justify-start",variant:"outline",children:[e.jsx(T,{className:"w-4 h-4 mr-2"}),"Schedule Meeting"]}),e.jsxs(a,{className:"w-full justify-start",variant:"outline",children:[e.jsx(F,{className:"w-4 h-4 mr-2"}),"Share Document"]}),e.jsxs(a,{className:"w-full justify-start",variant:"outline",children:[e.jsx(S,{className:"w-4 h-4 mr-2"}),"Update Status"]})]})]})]})]})},Ie=({eventId:o})=>{const{user:r}=xe(),[s,t]=u.useState([]),[U,Y]=u.useState([]),[te,G]=u.useState(0);return u.useEffect(()=>{(async()=>{if(!(r!=null&&r.id)||!o)return;const{data:D,error:b}=await M.from("mentor_assignments").select("*").eq("event_id",o).eq("mentor_id",r.id);if(b)return;const z=Array.from(new Set((D||[]).map(i=>i.startup_id).filter(Boolean))),y=Array.from(new Set((D||[]).map(i=>i.session_id).filter(Boolean)));let d={};if(z.length){const{data:i}=await M.from("companies").select("id,name").in("id",z);(i||[]).forEach(x=>{d[x.id]=x})}let w={};if(y.length){const{data:i}=await M.from("event_schedules").select("id,title,start_time,end_time").in("id",y);
1(i||[]).forEach(x=>{w[x.id]=x})}const v=(D||[]).map(i=>{const x=i.startup_id?d[i.startup_id]:void 0,O=i.session_id?w[i.session_id]:void 0;return{id:i.id,name:(x==null?void 0:x.name)||"Startup",nextSession:O?new Date(O.start_time).toLocaleString():void 0}});t(v);const P=new Date,_=[];Object.values(w).forEach(i=>{const x=new Date(i.start_time);x.toDateString()===P.toDateString()&&_.push({time:x.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"}),activity:i.title,type:"mentoring"})}),_.sort((i,x)=>i.time.localeCompare(x.time)),Y(_);const q=new Date,V=new Date;V.setDate(q.getDate()+7);const J=Object.values(w).filter(i=>{const x=new Date(i.start_time);return x>=q&&x<=V}).length;G(J)})()},[r==null?void 0:r.id,o]),e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{className:"bg-gradient-to-r from-primary/10 to-secondary/10 rounded-lg p-4 sm:p-6",children:[e.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center space-y-3 sm:space-y-0 sm:space-x-3 mb-4",children:[e.jsx(S,{className:"w-6 h-6 sm:w-8 sm:h-8 text-primary"}),e.jsxs("div",{className:"text-center sm:text-left",children:[e.jsx("h1",{className:"text-xl sm:text-2xl font-bold text-foreground",children:"Mentor Dashboard"}),e.jsx("p",{className:"text-sm sm:text-base text-muted-foreground",children:"Guide the next generation of entrepreneurs"})]})]}),e.jsxs("div",{className:"grid grid-cols-2 sm:grid-cols-4 gap-3 sm:gap-4 mt-6",children:[e.jsxs("div",{className:"bg-card p-3 sm:p-4 rounded-lg shadow-sm border",children:[e.jsx("div",{className:"text-xl sm:text-2xl font-bold text-primary",children:"3"}),e.jsx("div",{className:"text-xs sm:text-sm text-muted-foreground",children:"Assigned Startups"})]}),e.jsxs("div",{className:"bg-card p-3 sm:p-4 rounded-lg shadow-sm border",children:[e.jsx("div",{className:"text-xl sm:text-2xl font-bold text-secondary",children:"8"}),e.jsx("div",{className:"text-xs sm:text-sm text-muted-foreground",children:"Sessions This Week"})]}),e.jsxs("div",{className:"bg-card p-3 sm:p-4 rounded-lg shadow-sm border",children:[e.jsx("div",{className:"text-xl sm:text-2xl font-bold text-accent",children:"4.8"}),e.jsx("div",{className:"text-xs sm:text-sm text-muted-foreground",children:"Average Rating"})]}),e.jsxs("div",{className:"bg-card p-3 sm:p-4 rounded-lg shadow-sm border",children:[e.jsx("div",{className:"text-xl sm:text-2xl font-bold text-primary",children:"15h"}),e.jsx("div",{className:"text-xs sm:text-sm text-muted-foreground",children:"Mentoring Hours"})]})]})]}),e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-4 sm:gap-6",children:[e.jsxs(l,{className:"lg:col-span-2",children:[e.jsx(n,{children:e.jsxs(c,{className:"flex items-center gap-2 text-sm sm:text-base",children:[e.jsx(f,{className:"w-4 h-4 sm:w-5 sm:h-5 text-primary"}),"Your Startups"]})}),e.jsx(m,{children:e.jsx("div",{className:"space-y-3 sm:space-y-4",children:s.map(g=>e.jsxs("div",{className:"p-3 sm:p-4 border rounded-lg",children:[e.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center sm:justify-between gap-2 sm:gap-0 mb-3",children:[e.jsxs("div",{className:"min-w-0 flex-1",children:[e.jsx("h3",{className:"font-semibold text-foreground text-sm sm:text-base truncate",children:g.name}),g.founder&&e.jsxs("p",{className:"text-xs sm:text-sm text-muted-foreground",children:["Founder: ",g.founder]})]}),g.stage&&e.jsx(p,{className:"bg-primary/10 text-primary border-primary/20 self-start sm:self-center",children:g.stage})]}),e.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center sm:justify-between gap-3 sm:gap-0",children:[e.jsxs("div",{className:"flex items-center gap-2 text-xs sm:text-sm text-muted-foreground",children:[e.jsx(A,{className:"w-3 h-3 sm:w-4 sm:h-4 flex-shrink-0"}),e.jsxs("span",{className:"truncate",children:["Next session: ",g.nextSession]})]}),e.jsxs("div",{className:"flex gap-2",children:[e.jsxs(a,{size:"sm",variant:"outline",className:"flex-1 sm:flex-none",children:[e.jsx(C,{className:"w-3 h-3 sm:w-4 sm:h-4 mr-1"}),e.jsx("span",{className:"hidden sm:inline",children:"Message"}),e.jsx("span",{className:"sm:hidden",children:"Msg"})]}),e.jsxs(a,{size:"sm",className:"flex-1 sm:flex-none",children:[e.jsx(T,{className:"w-3 h-3 sm:w-4 sm:h-4 mr-1"}),e.jsx("span",{className:"hidden sm:inline",children:"Schedule"}),e.jsx("span",{className:"sm:hidden",children:"Sched"})]})]})]})]},g.id))})})]}),e.jsxs(l,{children:[e.jsx(n,{children:e.jsxs(c,{className:"flex items-center gap-2 text-sm sm:text-base",children:[e.jsx(T,{className:"w-4 h-4 sm:w-5 sm:h-5 text-secondary"}),"Today's Schedule"]})}),e.jsx(m,{children:e.jsx("div",{className:"space-y-2 sm:space-y-3",children:U.map((g,D)=>e.jsxs("div",{className:"flex items-start gap-2 sm:gap-3 p-2 rounded-lg hover:bg-muted/50",children:[e.jsx("div",{className:"text-xs sm:text-sm font-medium text-muted-foreground w-14 sm:w-16 flex-shrink-0",children:g.time}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsx("div",{className:"text-xs sm:text-sm font-medium text-foreground truncate",children:g.activity}),e.jsx(p,{variant:"outline",className:`text-xs ${g.type==="mentoring"?"text-primary border-primary/20":g.type==="meeting"?"text-secondary border-secondary/20":"text-muted-foreground border-border"}`,children:g.type})]})]},D))})})]})]}),e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-4 sm:gap-6",children:[e.jsxs(l,{children:[e.jsx(n,{children:e.jsxs(c,{className:"flex items-center gap-2 text-sm sm:text-base",children:[e.jsx(B,{className:"w-4 h-4 sm:w-5 sm:h-5 text-accent"}),"Mentoring Tools"]})}),e.jsxs(m,{className:"space-y-2 sm:space-y-3",children:[e.jsxs(a,{className:"w-full justify-start text-xs sm:text-sm",variant:"outline",children:[e.jsx(C,{className:"w-3 h-3 sm:w-4 sm:h-4 mr-2"}),"Session Notes Template"]}),e.jsxs(a,{className:"w-full justify-start text-xs sm:text-sm",variant:"outline",children:[e.jsx(L,{className:"w-3 h-3 sm:w-4 sm:h-4 mr-2"}),"Evaluation Rubric"]}),e.jsxs(a,{className:"w-full justify-start text-xs sm:text-sm",variant:"outline",children:[e.jsx(f,{className:"w-3 h-3 sm:w-4 sm:h-4 mr-2"}),"Resource Library"]}),e.jsxs(a,{className:"w-full justify-start text-xs sm:text-sm",variant:"outline",children:[e.jsx(T,{className:"w-3 h-3 sm:w-4 sm:h-4 mr-2"}),"Schedule Management"]})]})]}),e.jsxs(l,{children:[e.jsx(n,{children:e.jsxs(c,{className:"flex items-center gap-2 text-sm sm:text-base",children:[e.jsx(Z,{className:"w-4 h-4 sm:w-5 sm:h-5 text-primary"}),"Mentor Stats"]})}),e.jsx(m,{children:e.jsxs("div",{className:"space-y-3 sm:space-y-4",children:[e.jsxs("div",{className:"flex justify-between items-center",children:[e.jsx("span",{className:"text-xs sm:text-sm text-muted-foreground",children:"Sessions Completed"}),e.jsx("span",{className:"font-semibold text-sm sm:text-base",children:"24"})]}),e.jsxs("div",{className:"flex justify-between items-center",children:[e.jsx("span",{className:"text-xs sm:text-sm text-muted-foreground",children:"Average Session Rating"}),e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx(L,{className:"w-3 h-3 sm:w-4 sm:h-4 text-yellow-500 fill-current"}),e.jsx("span",{className:"font-semibold text-sm sm:text-base",children:"4.8"})]})]}),e.jsxs("div",{className:"flex justify-between items-center",children:[e.jsx("span",{className:"text-xs sm:text-sm text-muted-foreground",children:"Startups Mentored"}),e.jsx("span",{className:"font-semibold text-sm sm:text-base",children:"12"})]}),e.jsxs("div",{className:"flex justify-between items-center",children:[e.jsx("span",{className:"text-xs sm:text-sm text-muted-foreground",children:"Success Rate"}),e.jsx("span",{className:"font-semibold text-accent text-sm sm:text-base",children:"85%"})]})]})})]})]})]})},Fe=()=>{const o=[{id:1,name:"EcoTech Solutions",sector:"Climate Tech",status:"pending",pitchTime:"Today 2:00 PM",deadline:"6 hours"},{id:2,name:"HealthAI",sector:"Healthcare",status:"completed",pitchTime:"Today 10:30 AM",score:8.5},{id:3,name:"FinanceFlow",sector:"FinTech",status:"in-review",pitchTime:"Tomorrow 9:00 AM",deadline:"1 day"}],r=[{name:"Innovation",weight:"25%",description:"Novelty and uniqueness of solution"},{name:"Market Potential",weight:"25%",description:"Size and accessibility of target market"},{name:"Team Capability",weight:"20%",description:"Team experience and execution ability"},{name:"Business Model",weight:"20%",description:"Viability and scalability of revenue model"},{name:"Presentation",weight:"10%",description:"Clarity and persuasiveness of pitch"}];return e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{className:"bg-gradient-to-r from-primary/10 to-primary/5 rounded-lg p-6",children:[e.jsxs("div",{className:"flex items-center space-x-3 mb-4",children:[e.jsx(Z,{className:"w-8 h-8 text-primary"}),e.jsxs("div",{children:[e.jsx("h1",{className:"text-2xl font-bold text-gray-900",children:"Jury Dashboard"}),e.jsx("p",{className:"text-gray-600",children:"Evaluate and score startup presentations"})]})]}),e.jsxs("div",{className:"grid md:grid-cols-4 gap-4 mt-6",children:[e.jsxs("div",{className:"bg-white p-4 rounded-lg shadow-sm",children:[e.jsx("div",{className:"text-2xl font-bold text-primary",children:"12"}),e.jsx("div",{className:"text-sm text-gray-600",children:"Startups to Evaluate"})]}),e.jsxs("div",{className:"bg-white p-4 rounded-lg shadow-sm",children:[e.jsx("div",{className:"text-2xl font-bold text-green-600",children:"8"}),e.jsx("div",{className:"text-sm text-gray-600",children:"Completed Reviews"})]}),e.jsxs("div",{className:"bg-white p-4 rounded-lg shadow-sm",children:[e.jsx("div",{className:"text-2xl font-bold text-blue-600",children:"4"}),e.jsx("div",{className:"text-sm text-gray-600",children:"Pending Reviews"})]}),e.jsxs("div",{className:"bg-white p-4 rounded-lg shadow-sm",children:[e.jsx("div",{className:"text-2xl font-bold text-purple-600",children:"67%"}),e.jsx("div",{className:"text-sm text-gray-600",children:"Progress"})]})]})]}),e.jsxs("div",{className:"grid lg:grid-cols-3 gap-6",children:[e.jsxs(l,{className:"lg:col-span-2",children:[e.jsx(n,{children:e.jsxs(c,{className:"flex items-center gap-2",children:[e.jsx(K,{className:"w-5 h-5 text-primary"}),"Evaluation Queue"]})}),e.jsx(m,{children:e.jsx("div",{className:"space-y-4",children:o.map(s=>e.jsxs("div",{className:"p-4 border border-gray-200 rounded-lg",children:[e.jsxs("div",{className:"flex items-center justify-between mb-3",children:[e.jsxs("div",{children:[e.jsx("h3",{className:"font-semibold text-gray-900",children:s.name}),e.jsx("p",{className:"text-sm text-gray-600",children:s.sector})]}),e.jsx(p,{className:s.status==="completed"?"bg-green-100 text-green-800":s.status==="in-review"?"bg-blue-100 text-blue-800":"bg-primary/10 text-primary",children:s.status})]}),e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"text-sm text-gray-600",children:[e.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[e.jsx(A,{className:"w-4 h-4"}),"Pitch: ",s.pitchTime]}),s.status==="completed"&&s.score&&e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(L,{className:"w-4 h-4 text-yellow-500"}
1),"Score: ",s.score,"/10"]}),s.deadline&&e.jsxs("div",{className:"text-red-600",children:["Deadline: ",s.deadline]})]}),e.jsxs("div",{className:"space-x-2",children:[e.jsxs(a,{size:"sm",variant:"outline",children:[e.jsx(ee,{className:"w-4 h-4 mr-1"}),"View Pitch"]}),s.status==="pending"&&e.jsxs(a,{size:"sm",children:[e.jsx(K,{className:"w-4 h-4 mr-1"}),"Evaluate"]})]})]})]},s.id))})})]}),e.jsxs(l,{children:[e.jsx(n,{children:e.jsxs(c,{className:"flex items-center gap-2",children:[e.jsx(B,{className:"w-5 h-5 text-blue-600"}),"Evaluation Progress"]})}),e.jsx(m,{children:e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{children:[e.jsxs("div",{className:"flex justify-between text-sm mb-2",children:[e.jsx("span",{children:"Overall Progress"}),e.jsx("span",{children:"67%"})]}),e.jsx(se,{value:67,className:"h-2"})]}),e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{className:"flex justify-between text-sm",children:[e.jsx("span",{children:"Completed"}),e.jsx("span",{className:"font-semibold text-green-600",children:"8/12"})]}),e.jsxs("div",{className:"flex justify-between text-sm",children:[e.jsx("span",{children:"In Review"}),e.jsx("span",{className:"font-semibold text-blue-600",children:"1/12"})]}),e.jsxs("div",{className:"flex justify-between text-sm",children:[e.jsx("span",{children:"Pending"}),e.jsx("span",{className:"font-semibold text-primary",children:"3/12"})]})]})]})})]})]}),e.jsxs(l,{children:[e.jsx(n,{children:e.jsxs(c,{className:"flex items-center gap-2",children:[e.jsx(F,{className:"w-5 h-5 text-purple-600"}),"Evaluation Criteria"]})}),e.jsx(m,{children:e.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-4",children:r.map((s,t)=>e.jsxs("div",{className:"p-4 bg-gray-50 rounded-lg",children:[e.jsxs("div",{className:"flex items-center justify-between mb-2",children:[e.jsx("h3",{className:"font-semibold text-gray-900",children:s.name}),e.jsx(p,{variant:"outline",className:"text-purple-600 border-purple-200",children:s.weight})]}),e.jsx("p",{className:"text-sm text-gray-600",children:s.description})]},t))})})]}),e.jsxs(l,{children:[e.jsx(n,{children:e.jsxs(c,{className:"flex items-center gap-2",children:[e.jsx(f,{className:"w-5 h-5 text-gray-600"}),"Quick Actions"]})}),e.jsx(m,{children:e.jsxs("div",{className:"grid md:grid-cols-2 lg:grid-cols-4 gap-4",children:[e.jsxs(a,{className:"w-full justify-start",variant:"outline",children:[e.jsx(K,{className:"w-4 h-4 mr-2"}),"Evaluation Form"]}),e.jsxs(a,{className:"w-full justify-start",variant:"outline",children:[e.jsx(F,{className:"w-4 h-4 mr-2"}),"Scoring Rubric"]}),e.jsxs(a,{className:"w-full justify-start",variant:"outline",children:[e.jsx(L,{className:"w-4 h-4 mr-2"}),"Previous Scores"]}),e.jsxs(a,{className:"w-full justify-start",variant:"outline",children:[e.jsx(Z,{className:"w-4 h-4 mr-2"}),"Final Rankings"]})]})})]})]})},Be=()=>{const o=[{id:1,name:"EcoTech Solutions",sector:"Climate Tech",synergy:"High",stage:"Seed",match:92,description:"Sustainable energy solutions that align with our green initiatives"},{id:2,name:"HealthAI",sector:"Healthcare",synergy:"Medium",stage:"Series A",match:78,description:"AI diagnostic tools could complement our healthcare portfolio"},{id:3,name:"FinanceFlow",sector:"FinTech",synergy:"High",stage:"Pre-Seed",match:88,description:"Payment solutions for enterprise customers"}],r=[{label:"Potential Partners",value:"15",change:"+3"},{label:"High Synergy",value:"6",change:"+2"},{label:"Active Discussions",value:"4",change:"+1"},{label:"Partnerships Formed",value:"2",change:"+1"}],s=[{id:1,type:"Startup Pitch",title:"EcoTech Solutions Presentation",time:"10:30 AM"},{id:2,type:"Networking",title:"Corporate-Startup Mixer",time:"2:00 PM"},{id:3,type:"Panel",title:"Industry Trends Discussion",time:"4:00 PM"},{id:4,type:"Meeting",title:"Partnership Strategy Session",time:"6:00 PM"}];return e.jsxs("div",{className:"space-y-4 sm:space-y-6",children:[e.jsxs("div",{className:"bg-gradient-to-r from-teal-50 to-cyan-50 rounded-lg p-4 sm:p-6",children:[e.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center space-y-2 sm:space-y-0 sm:space-x-3 mb-4",children:[e.jsx(ne,{className:"w-6 h-6 sm:w-8 sm:h-8 text-teal-600"}),e.jsxs("div",{children:[e.jsx("h1",{className:"text-xl sm:text-2xl font-bold text-gray-900",children:"Corporate Dashboard"}),e.jsx("p",{className:"text-sm sm:text-base text-gray-600",children:"Discover partnerships and innovation opportunities"})]})]}),e.jsx("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-3 sm:gap-4 mt-4 sm:mt-6",children:r.map((t,U)=>
1e.jsxs("div",{className:"bg-white p-3 sm:p-4 rounded-lg shadow-sm",children:[e.jsx("div",{className:"text-lg sm:text-2xl font-bold text-teal-600",children:t.value}),e.jsx("div",{className:"text-xs sm:text-sm text-gray-600",children:t.label}),e.jsxs("div",{className:"text-xs text-green-600 mt-1",children:["+",t.change]})]},U))})]}),e.jsxs(l,{children:[e.jsx(n,{children:e.jsxs(c,{className:"flex items-center gap-2",children:[e.jsx(ce,{className:"w-5 h-5 text-teal-600"}),"Partnership Opportunities"]})}),e.jsx(m,{children:e.jsx("div",{className:"space-y-4",children:o.map(t=>e.jsx("div",{className:"p-4 sm:p-6 border border-gray-200 rounded-lg hover:shadow-lg transition-shadow",children:e.jsxs("div",{className:"flex flex-col lg:flex-row lg:items-start lg:justify-between mb-4 space-y-4 lg:space-y-0",children:[e.jsxs("div",{className:"flex-1",children:[e.jsxs("div",{className:"flex flex-wrap items-center gap-2 sm:gap-3 mb-2",children:[e.jsx("h3",{className:"text-base sm:text-lg font-semibold text-gray-900",children:t.name}),e.jsx(p,{className:"bg-teal-100 text-teal-800 text-xs",children:t.sector}),e.jsx(p,{variant:"outline",className:"text-xs",children:t.stage}),e.jsxs(p,{className:`text-xs ${t.synergy==="High"?"bg-green-100 text-green-800":t.synergy==="Medium"?"bg-yellow-100 text-yellow-800":"bg-gray-100 text-gray-800"}`,children:[t.synergy," Synergy"]})]}),e.jsx("p",{className:"text-sm sm:text-base text-gray-600 mb-3",children:t.description}),e.jsx("div",{className:"flex items-center gap-4",children:e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx(L,{className:"w-3 h-3 sm:w-4 sm:h-4 text-yellow-500 fill-current"}),e.jsxs("span",{className:"text-xs sm:text-sm font-medium",children:["Match: ",t.match,"%"]})]})})]}),e.jsxs("div",{className:"flex flex-row lg:flex-col gap-2 lg:ml-4",children:[e.jsxs(a,{size:"sm",className:"flex-1 lg:flex-none text-xs",children:[e.jsx(ee,{className:"w-3 h-3 sm:w-4 sm:h-4 mr-1"}),"View Details"]}),e.jsxs(a,{size:"sm",variant:"outline",className:"flex-1 lg:flex-none text-xs",children:[e.jsx(C,{className:"w-3 h-3 sm:w-4 sm:h-4 mr-1"}),"Contact"]})]})]})},t.id))})})]}),e.jsxs(l,{children:[e.jsx(n,{children:e.jsxs(c,{className:"flex items-center gap-2",children:[e.jsx(S,{className:"w-5 h-5 text-blue-600"}),"Today's Engagements"]})}),e.jsx(m,{children:e.jsx("div",{className:"grid md:grid-cols-2 gap-4",children:s.map(t=>e.jsxs("div",{className:"p-4 border border-gray-200 rounded-lg",children:[e.jsxs("div",{className:"flex items-center justify-between mb-2",children:[e.jsx(p,{variant:"outline",className:t.type==="Startup Pitch"?"text-green-600 border-green-200":t.type==="Networking"?"text-blue-600 border-blue-200":t.type==="Panel"?"text-purple-600 border-purple-200":"text-primary border-primary/20",children:t.type}),e.jsx("span",{className:"text-sm text-gray-600",children:t.time})]}),e.jsx("h3",{className:"font-semibold text-gray-900 mb-3",children:t.title}),e.jsx(a,{size:"sm",className:"w-full",children:"Join Activity"})]},t.id))})})]}),e.jsxs("div",{className:"grid lg:grid-cols-2 gap-6",children:[e.jsxs(l,{children:[e.jsx(n,{children:e.jsxs(c,{className:"flex items-center gap-2",children:[e.jsx(B,{className:"w-5 h-5 text-purple-600"}),"Corporate Tools"]})}),e.jsxs(m,{className:"space-y-3",children:[e.jsxs(a,{className:"w-full justify-start",variant:"outline",children:[e.jsx(ce,{className:"w-4 h-4 mr-2"}),"Partnership Framework"]}),e.jsxs(a,{className:"w-full justify-start",variant:"outline",children:[e.jsx(B,{className:"w-4 h-4 mr-2"}),"Innovation Metrics"]}),e.jsxs(a,{className:"w-full justify-start",variant:"outline",children:[e.jsx(f,{className:"w-4 h-4 mr-2"}),"Startup Directory"]}),e.jsxs(a,{className:"w-full justify-start",variant:"outline",children:[e.jsx(S,{className:"w-4 h-4 mr-2"}),"Strategic Analysis"]})]})]}),e.jsxs(l,{children:[e.jsx(n,{children:e.jsxs(c,{className:"flex items-center gap-2",children:[e.jsx(ne,{className:"w-5 h-5 text-gray-600"}),"Corporate Objectives"]})}),e.jsx(m,{children:e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{children:[e.jsx("div",{className:"text-sm font-medium text-gray-700 mb-2",children:"Focus Areas"}),e.jsxs("div",{className:"flex flex-wrap gap-2",children:[e.jsx(p,{className:"bg-green-100 text-green-800",children:"Sustainability"}),e.jsx(p,{className:"bg-blue-100 text-blue-800",children:"Digital Innovation"}),e.jsx(p,{className:"bg-purple-100 text-purple-800",children:"AI/ML"})]})]}),e.jsxs("div",{children:[e.jsx("div",{className:"text-sm font-medium text-gray-700 mb-2",children:"Partnership Goals"}),e.jsxs("ul",{className:"space-y-2 text-sm text-gray-600",children:[e.jsxs("li",{className:"flex items-center gap-2",children:[e.jsx("div",{className:"w-1.5 h-1.5 bg-teal-600 rounded-full"}),"Identify 5 strategic partnerships"]}),e.jsxs("li",{className:"flex items-center gap-2",children:[e.jsx("div",{className:"w-1.5 h-1.5 bg-teal-600 rounded-full"}),"Evaluate emerging technologies"]}),e.jsxs("li",{className:"flex items-center gap-2",children:[e.jsx("div",{className:"w-1.5 h-1.5 bg-teal-600 rounded-full"}),"Foster innovation ecosystem"]})]})]})]})})]})]})]})},ea=()=>{const[o,r]=u.useState(null),[s,t]=u.useState(null),[U,Y]=u.useState([]),[te,G]=u.useState([]),[g,D]=u.useState(!0),[b,z]=u.useState("visitor"),{eventSlug:y}=de(),{user:d,isLoading:w}
1=xe(),v=fe(),P=ve(),_=h=>({visitor:"visitor",attendee:"attendant",mentor:"mentor",startup:"startup_founder",corporate:"corporate",investor:"investor",speaker:"attendant",program_manager:"program_manager",jury_member:"jury_member"})[h]||"visitor";u.useEffect(()=>{!w&&!d&&v("/login")},[d,w,v]),u.useEffect(()=>{d!=null&&d.id&&y&&q()},[d==null?void 0:d.id,y]);const q=async()=>{var h;if(!(!(d!=null&&d.id)||!y))try{const{data:j,error:N}=await M.from("events").select("*");if(N){console.error("Error fetching events:",N),v("/dashboard");return}const E=k=>k.toLowerCase().replace(/[^a-z0-9\s]/g,"").replace(/\s+/g,"-").substring(0,50),R=j==null?void 0:j.find(k=>E(k.title)===y);if(!R){console.error("Event not found for slug:",y),v("/dashboard");return}t(R);const{data:W,error:$}=await M.from("user_roles").select("event_id, role, status").eq("user_id",d.id).eq("event_id",R.id),{data:ue,error:ae}=await M.from("user_roles").select("event_id, role, status").eq("user_id",d.id).eq("event_id",R.id).eq("status","accepted");if(ae||$)console.error("Error fetching user roles:",ae||$);
1else{const k=ue||[],re=W||[];Y(k),G(re);let I=k.map(X=>_(X.role));const{data:Q}=await M.from("profiles").select("membership_level").eq("user_id",d.id).single(),ie=(Q==null?void 0:Q.membership_level)==="admin";ie&&(I.includes("program_manager")||I.push("program_manager")),I.length===0&&(I=["visitor"]);let H=re.map(X=>_(X.role));ie&&!H.includes("program_manager")&&H.push("program_manager"),H.includes("visitor")||H.push("visitor");const Ne={id:d.id,name:d.name,email:d.email,avatar:(h=d.profileData)==null?void 0:h.avatar_url,roles:H,primaryRole:I[0],currentEventId:R.id};r(Ne),z(I[0])}}catch(j){console.error("Error fetching event data:",j),v("/dashboard")}finally{D(!1)}};if(w||g)return e.jsx("div",{className:"min-h-screen flex items-center justify-center",children:e.jsx(be,{size:64})});const V=h=>{z(h),o&&r({...o,primaryRole:h});const j=P.pathname.split("/"),N=j[2],E=j.slice(4).join("/"),W={visitor:"visitor",startup:"startups",startup_founder:"startups",attendee:"attendant",attendant:"attendant",mentor:"mentor",jury_member:"jury",investor:"investor",corporate:"corporate",program_manager:"manager",location:"location",speaker:"speaker"}[h]||"visitor",$=E?`/dashboard/${N}/${W}/${E}`:`/dashboard/${N}/${W}/`;v($,{replace:!0})},J=P.pathname.endsWith("/settings"),i=P.pathname.endsWith("/mentors"),x=P.pathname.endsWith("/profile"),O=P.pathname.endsWith("/media"),he=h=>{t(h)},pe=()=>{if(b==="visitor"||b==="program_manager"&&(o!=null&&o.roles.includes("program_manager")))return"accepted";const j={visitor:"visitor",attendant:"attendee",mentor:"mentor",startup_foun
1der:"startup",corporate:"corporate",investor:"investor",jury_member:"jury_member"}[b],N=te.find(E=>E.role===j);return(N==null?void 0:N.status)||"pending"},ge=h=>{const j=b.replace("_"," ").replace(/\b\w/g,N=>N.toUpperCase());return h==="pending"?e.jsx("div",{className:"flex items-center justify-center min-h-[60vh]",children:e.jsxs("div",{className:"text-center max-w-md mx-auto p-8",children:[e.jsx("div",{className:"w-20 h-20 bg-orange-100 rounded-full flex items-center justify-center mx-auto mb-6",children:e.jsx(A,{className:"w-10 h-10 text-orange-600"})}),e.jsx("h2",{className:"text-2xl font-bold text-foreground mb-4",children:"Application Under Review"}),e.jsxs("p",{className:"text-muted-foreground mb-6",children:["Your application for the ",e.jsx("span",{className:"font-semibold text-foreground",children:j})," role is currently being reviewed by the program managers."]}),e.jsx("div",{className:"bg-orange-50 border border-orange-200 rounded-lg p-4",children:e.jsx("p",{className:"text-sm text-orange-700",children:"You'll receive a notification once your application has been processed. Thank you for your patience!"})})]})}):h==="rejected"?e.jsx("div",{className:"flex items-center justify-center min-h-[60vh]",children:e.jsxs("div",{className:"text-center max-w-md mx-auto p-8",children:[e.jsx("div",{className:"w-20 h-20 bg-red-100 rounded-full flex items-center justify-center mx-auto mb-6",children:e.jsx(ye,{className:"w-10 h-10 text-red-600"})}),e.jsx("h2",{className:"text-2xl font-bold text-foreground mb-4",children:"Application Not Approved"}),e.jsxs("p",{className:"text-muted-foreground mb-6",children:["Unfortunately, your application for the ",e.jsx("span",{className:"font-semibold text-foreground",children:j})," role was not approved at this time."]}),e.jsx("div",{className:"bg-red-50 border border-red-200 rounded-lg p-4",children:e.jsx("p",{className:"text-sm text-red-700",children:"You may contact the program managers for more information or consider applying for other available roles in this event."})})]})}):null},je=()=>{if(J&&s)return e.jsx(Se,{currentEvent:s,onEventUpdate:he});if(i)return e.jsx(Ee,{});if(O)return e.jsx(Pe,{});if(x)return v("/dashboard/profile"),null;const h=pe();if(h!=="accepted")return ge(h);switch(b){case"visitor":return e.jsx(me,{});
1case"startup_founder":return e.jsx(Re,{});case"attendant":return e.jsx(ke,{});case"mentor":return e.jsx(Ie,{eventId:(s==null?void 0:s.id)||""});case"jury_member":return e.jsx(Fe,{});case"investor":return e.jsx(Ae,{eventId:(s==null?void 0:s.id)||"",eventStartDate:s==null?void 0:s.start_date,eventEndDate:s==null?void 0:s.end_date,eventTimezone:s==null?void 0:s.timezone});case"corporate":return e.jsx(Be,{});case"program_manager":return e.jsx(_e,{});default:return e.jsx(me,{})}};return e.jsx(we,{user:o,currentEvent:s,userEventRoles:U,currentRole:b,onRoleChange:V,children:je()})};export{ea 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.