1import{r as d,j as e,m as h,an as p,ei as _}from"./vendor-DCKdIk_f.js";import{u as g,c as x}from"./useWalkSessions-BiL_yPjD.js";import{W as k}from"./WalkNetworkingCard-SnqNH-H6.js";import{S as l}from"./index-BDzfgULb.js";const j="_container_okaub_2",S="_header_okaub_14",b="_titleGroup_okaub_22",N="_titleIcon_okaub_28",f="_pageTitle_okaub_32",y="_subtitle_okaub_40",I="_filterSection_okaub_48",v="_label_okaub_58",w="_selectInput_okaub_64",D="_resultsSection_okaub_87",W="_grid_okaub_92",T="_emptyState_okaub_98",C="_emptyIcon_okaub_110",t={container:j,header:S,titleGroup:b,titleIcon:N,pageTitle:f,subtitle:y,filterSection:I,label:v,selectInput:w,resultsSection:D,grid:W,emptyState:T,emptyIcon:C};function M(){const{data:i,isLoading:u}=g(void 0,50,0),[a,c]=d.useState("");d.useEffect(()=>{if(i?.sessions&&!a){const s=i.sessions.filter(r=>r.status==="completed"||r.userCheckedIn===!0);s.length>0&&c(s[0].id)}},[i,a]);const{data:n,isFetching:m}=x(a,!!a),o=i?.sessions.filter(s=>s.status==="completed"||s.userCheckedIn===!0)||[];return e.jsxs("div",{className:t.container,children:[e.jsx(h,{children:e.jsx("title",{children:"Networking Matches - MBH Walks"})}),e.jsxs("div",{className:t.header,children:[e.jsxs("div",{className:t.titleGroup,children:[e.jsx(p,{className:t.titleIcon,size:28}),e.jsx("h2",{className:t.pageTitle,children:"Your AI Networking Matches"})]}),e.jsx("p",{className:t.subtitle,children:"Discover ecosystem members you should connect with based on your persona, goals, and recent walk attendance."})]}),e.jsxs("div",{className:t.filterSection,children:[e.jsx("label",{htmlFor:"session-select",className:t.label,children:"Select a recent session:"}),u?e.jsx(l,{style:{width:"240px",height:"40px"}}):e.jsxs("select",{id:"session-select",className:t.selectInput,value:a,onChange:s=>c(s.target.value),disabled:o.length===0,children:[o.length===0&&e.jsx("option",{value:"",children:"No past sessions found"}),o.map(s=>e.jsxs("option",{value:s.id,children:[s.park.name," - ",new Intl.DateTimeFormat("en-IN",{dateStyle:"medium",timeZone:"Asia/Kolkata"}).format(new Date(s.walkDate))]},s.id))]})]}),e.jsx("div",{className:t.resultsSection,children:m?e.jsxs("div",{className:t.grid,children:[e.jsx(l,{style:{height:"200px"}}),e.jsx(l,{style:{height:"200px"}})]}):a?n?.matches&&n.matches.length>0?e.jsx("div",{className:t.grid,children:n.matches.map(s=>e.jsx(k,{match:s},s.id))}):e.jsxs("div",{className:t.emptyState,children:[e.jsx(_,{size:32,className:t.emptyIcon}),e.jsx("h3",{children:"No matches generated"}),e.jsx("p",{children:"We couldn't generate strong matches for this session. Keep attending and updating your profile!"})]}):e.jsx("div",{className:t.emptyState,children:e.jsx("p",{children:"Please select a session to view your matches."})})})]})}export{M 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.