PageSourceSearch

https://polarizationresearchlab.org/assets/ProfileWestwood-CXE20EZR.js

js polarizationresearchlab.org collected 2026-09-25 04:27:42 UTC 23,536 bytes, 1 lines download raw bytes

1import{r as b,j as e}from"./vendor-chartjs-DAQApR3A.js";import{u as L}from"./useTheme-B8zMyLoj.js";import{u as R}from"./usePageTitle-zLDojgPu.js";import{b as T,f as j,L as N}from"./index-VXtZNIH-.js";import"./vendor-recharts-KyLwo51t.js";import"./vendor-maps-DjSiDsVE.js";function m(n){const s=n.split(/(Westwood, S\.J\.|Westwood, S\.J)/g);return e.jsx(e.Fragment,{children:s.map((h,x)=>h.includes("Westwood")?e.jsx("strong",{children:h},x):h)})}const f=[{id:"overview",label:"Overview"},{id:"publications",label:"Publications"},{id:"inprogress",label:"Under Review"},{id:"media",label:"Media"},{id:"grants",label:"Grants & Awards"},{id:"talks",label:"Talks"},{id:"service",label:"Service"},{id:"teaching",label:"Teaching Evaluations"}];function A(){R("Sean J. Westwood");const{isDarkMode:n}=L(),[s,h]=b.useState(null),[x,k]=b.useState([]),[w,y]=T(),C=f.map(r=>r.id),v=w.get("tab"),c=v&&C.includes(v)?v:"overview",P=b.useCallback(r=>{r==="overview"?y({},{replace:!0}):y({tab:r},{replace:!0})},[y]);b.useEffect(()=>{j("/data/westwood-publications.json").then(h).catch(console.error),j("/data/mediaMentions.json").then(k).catch(console.error)},[]);const S=(r,a)=>{const o=new Map;return r.forEach(t=>{const l=typeof t.year=="number"?t.year:parseInt(String(t.year))||0;o.has(l)||o.set(l,new Map);const d=String(t[a]),g=o.get(l);g.set(d,(g.get(d)||0)+1)}),o},u=(r,a)=>e.jsx("div",{className:"px-3 py-2 rounded-lg [&>p]:m-0",style:{background:n?"var(--bg-tertiary)":"var(--bg-secondary)",border:"1px solid var(--border)"},children:e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsxs("span",{className:"flex-shrink-0 font-medium text-sm mt-0.5",style:{color:"var(--text-tertiary)",minWidth:"24px"},children:[a,"."]}),e.jsxs("div",{className:"flex-1",children:[e.jsxs("p",{className:"text-tight font-medium leading-snug",children:[p(r.title,r.url),r.withStudent&&e.jsx("span",{className:"ml-2 px-2 py-0.5 rounded text-xs font-medium",style:{background:"var(--accent)",color:"#ffffff"},children:"Written with a student"})]}),e.jsx("p",{className:"text-tight text-sm leading-snug",style:{color:"var(--text-secondary)"},children:m(r.authors)}),e.jsxs("p",{className:"text-tight text-sm leading-snug",style:{color:"var(--text-tertiary)"},children:[e.jsx("em",{children:r.journal}),r.volume&&`, ${r.volume}`,r.pages&&`, ${r.pages}`,r.year&&` (${r.year})`]}),r.mediaCoverage&&e.jsxs("p",{className:"text-tight text-sm leading-snug mt-1",style:{color:"var(--text-tertiary)"},children:[e.jsx("strong",{children:"Covered in:"})," ",r.mediaCoverage]})]})]})},a),p=(r,a)=>a?e.jsx("a",{href:a,target:"_blank",rel:"noopener noreferrer",className:"hover:underline",style:{color:"var(--accent)"},children:r}):e.jsx("span",{style:{color:"var(--text-primary)"},children:r});if(!s)return e.jsx("div",{className:"max-w-[1200px] mx-auto px-4 md:px-8 py-12",children:e.jsxs("div",{className:"animate-pulse",children:[e.jsx("div",{className:"h-8 w-32 rounded mb-8",style:{background:"var(--bg-secondary)"}}),e.jsxs("div",{className:"flex gap-8",children:[e.jsx("div",{className:"w-64 h-64 rounded-xl",style:{background:"var(--bg-secondary)"}}),e.jsxs("div",{className:"flex-1 space-y-4",children:[e.jsx("div",{className:"h-10 w-64 rounded",style:{background:"var(--bg-secondary)"}}),e.jsx("div",{className:"h-6 w-48 rounded",style:{background:"var(--bg-secondary)"}}),e.jsx("div",{className:"h-6 w-32 rounded",style:{background:"var(--bg-secondary)"}})]})]})]})});const{profile:i}=s;return e.jsxs("div",{className:"max-w-[1200px] mx-auto px-4 md:px-8 py-12",children:[e.jsxs(N,{to:"/about",className:"inline-flex items-center gap-2 mb-8 text-sm hover:underline",style:{color:"var(--accent)"},children:[e.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M15 19l-7-7 7-7"})}),"Back to Team"]}),e.jsxs("div",{className:"flex flex-col md:flex-row gap-8 mb-12",children:[e.jsx("div",{className:"flex-shrink-0",children:e.jsx("img",{src:i.photo,alt:i.name,className:"w-48 h-48 md:w-64 md:h-64 roun
1ded-xl object-cover"})}),e.jsxs("div",{className:"flex-1 flex flex-col justify-between",style:{minHeight:"256px"},children:[e.jsxs("div",{children:[e.jsx("h1",{className:"text-3xl md:text-4xl font-bold",style:{color:"var(--text-primary)"},children:i.name}),e.jsxs("p",{className:"text-lg mt-1",style:{color:"var(--text-secondary)"},children:[i.title,", ",i.institution,e.jsx("br",{}),e.jsx("span",{style:{color:"var(--accent)"},children:i.role})]})]}),e.jsxs("div",{children:[(i.googleCitations||i.hIndex)&&e.jsxs("div",{className:"flex gap-6 mb-4",children:[i.googleCitations&&e.jsxs("div",{children:[e.jsx("p",{className:"text-2xl font-bold",style:{color:"var(--text-primary)"},children:i.googleCitations.toLocaleString()}),e.jsx("p",{className:"text-xs uppercase tracking-wide",style:{color:"var(--text-tertiary)"},children:"Citations"})]}),i.hIndex&&e.jsxs("div",{children:[e.jsx("p",{className:"text-2xl font-bold",style:{color:"var(--text-primary)"},children:i.hIndex}),e.jsx("p",{className:"text-xs uppercase tracking-wide",style:{color:"var(--text-tertiary)"},children:"H-Index"})]})]}),e.jsxs("div",{className:"flex flex-wrap gap-3",children:[e.jsxs("a",{href:`mailto:${i.email}`,className:"inline-flex items-center gap-2 px-4 py-2 rounded-lg text-sm transition-colors",style:{background:n?"var(--bg-tertiary)":"var(--bg-secondary)",color:"var(--text-secondary)",border:"1px solid var(--border)"},children:[e.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M3 8l7.89 5.26a2 2 0 002.22 0L21 8M5 19h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z"})}),"Email"]}),e.jsxs("a",{href:i.googleScholar,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 px-4 py-2 rounded-lg text-sm transition-colors",style:{background:n?"var(--bg-tertiary)":"var(--bg-secondary)",color:"var(--text-secondary)",border:"1px solid var(--border)"},children:[e.jsx("svg",{className:"w-4 h-4",viewBox:"0 0 24 24",fill:"currentColor",children:e.jsx("path",{d:"M12 24a7 7 0 110-14 7 7 0 010 14zm0-24L0 9.5l4.838 3.94A8 8 0 0112 9a8 8 0 017.162 4.44L24 9.5 12 0z"})}),"Google Scholar"]}),e.jsxs("a",{href:i.cvUrl,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 px-4 py-2 rounded-lg text-sm transition-colors",style:{background:n?"var(--bg-tertiary)":"var(--bg-secondary)",color:"var(--text-secondary)",border:"1px solid var(--border)"},children:[e.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"})}),"CV"]})]})]})]})]}),e.jsx("div",{className:"mb-8 border-b",style:{borderColor:"var(--border)"},children:e.jsx("nav",{className:"flex gap-1 overflow-x-auto pb-px -mb-px",children:f.map(r=>e.jsx("button",{onClick:()=>P(r.id),className:`px-4 py-2 text-sm font-medium whitespace-nowrap transition-colors border-b-2 ${c===r.id?"border-current":"border-transparent hover:border-gray-300"}`,style:{color:c===r.id?"var(--accent)":"var(--text-secondary)"},children:r.label},r.id))})}),c==="overview"&&e.jsxs(e.Fragment,{children:[e.jsxs("section",{className:"mb-12",children:[e.jsx("h2",{className:"font-bold mb-4 pb-2 border-b",style:{color:"var(--text-primary)",borderColor:"var(--border)"},children:"Biography"}),e.jsx("div",{className:"space-y-4",style:{color:"var(--text-secondary)"},children:i.bio.map((r,a)=>e.jsx("p",{children:r},a))})]}),e.jsxs("section",{className:"mb-12",children:[e.jsx("h2",{className:"font-bold mb-4 pb-2 border-b",style:{color:"var(--text-primary)",borderColor:"var(--border)"},children:"Research Interests"}),e.jsx("div",{className:"flex flex-wrap gap-2",children:i.researchInterests.map(r=>e.jsx("span",{className:"px-3 py-1 rounded-full text-sm",style:{background:n?"var(--bg-tertiary)":"var(--bg-secondary)",color:"var(--text-secondary)",border:"1px solid var(--border)"},children:r},r))})]})]}),c==="media"&&x.length>0&&e.jsxs("section",{className:"mb-12",children:[e.jsx("h2",{className:"font-bold mb-4 pb-2 border-b",style:{color:"var(--text-primary)",borderColor:"var(--border)"},children:"News Coverage"}),e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-3",children:x.slice(0,12).map(r=>e.jsxs("a",{href:r.url,target:"_blank",rel:"noopener noreferrer",className:"block px-3 py-2 rounded-lg transition-colors hover:opacity-80",style:{background:n?"var(--bg-tertiary)":"var(--bg-secondary)",border:"1px solid var(--border)"},children:[e.jsx("p",{className:"text-tight text-sm font-medium leading-snug line-clamp-2",style:{color:"var(--text-primary)"},children:r.title}),e.jsxs("p",{className:"text-tight text-xs leading-snug mt-1",style:{color:"var(--text-tertiary)"},children:[r.publication," · ",new Date(r.date).toLocaleDateString("en-US",{year:"numeric",month:"short"})]})]},r.id))}),x.length>12&&e.jsxs(N,{to:"/about/news",className:"inline-flex items-center gap-2 mt-4 text-sm hover:underline",style:{color:"var(--accent)"}
1,children:["View all ",x.length," news mentions",e.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5l7 7-7 7"})})]})]}),c==="publications"&&e.jsxs(e.Fragment,{children:[s.books&&s.books.length>0&&e.jsxs("section",{className:"mb-12",children:[e.jsx("h2",{className:"font-bold mb-4 pb-2 border-b",style:{color:"var(--text-primary)",borderColor:"var(--border)"},children:s.books.length===1?"Book":"Books"}),e.jsx("div",{className:"space-y-3",children:s.books.map((r,a)=>e.jsxs("div",{className:"px-3 py-2 rounded-lg [&>p]:m-0",style:{background:n?"var(--bg-tertiary)":"var(--bg-secondary)",border:"1px solid var(--border)"},children:[e.jsx("p",{className:"text-tight leading-snug",style:{color:"var(--text-primary)"},children:r.url?e.jsx("a",{href:r.url,target:"_blank",rel:"noopener noreferrer",className:"hover:underline",style:{color:"var(--accent)"},children:e.jsx("strong",{children:r.title})}):e.jsx("strong",{children:r.title})}),e.jsxs("p",{className:"text-tight text-sm leading-snug",style:{color:"var(--text-secondary)"},children:[r.authors," (",r.year,")"]}),e.jsx("p",{className:"text-tight text-sm leading-snug",style:{color:"var(--text-tertiary)"},children:r.publisher}),r.reviewedIn&&e.jsxs("p",{className:"text-tight text-sm leading-snug mt-1",style:{color:"var(--text-tertiary)"},children:[e.jsx("strong",{children:"Reviewed in:"})," ",r.reviewedIn]})]},a))})]}),s?.publications&&e.jsxs("section",{className:"mb-12",children:[e.jsx("h2",{className:"font-bold mb-4 pb-2 border-b",style:{color:"var(--text-primary)",borderColor:"var(--border)"},children:"Peer Reviewed Publications"}),e.jsx("div",{className:"space-y-3",children:s.publications.map((r,a)=>u(r,s.publications.length-a))})]}),s?.otherFieldPublications&&s.otherFieldPublications.length>0&&e.jsxs("section",{className:"mb-12",children:[e.jsx("h2",{className:"font-bold mb-4 pb-2 border-b",style:{color:"var(--text-primary)",borderColor:"var(--border)"},children:"Peer Reviewed Publications in other Fields"}),e.jsx("div",{className:"space-y-3",children:s.otherFieldPublications.map((r,a)=>u(r,s.otherFieldPublications.length-a))})]}),s?.datasets&&s.datasets.length>0&&e.jsxs("section",{className:"mb-12",children:[e.jsx("h2",{className:"font-bold mb-4 pb-2 border-b",style:{color:"var(--text-primary)",borderColor:"var(--border)"},children:"Datasets"}),e.jsx("div",{className:"space-y-3",children:s.datasets.map((r,a)=>e.jsxs("div",{className:"px-3 py-2 rounded-lg [&>p]:m-0",style:{background:n?"var(--bg-tertiary)":"var(--bg-secondary)",border:"1px solid var(--border)"},children:[e.jsx("p",{className:"text-tight font-medium leading-snug",children:p(r.title,r.url)}),e.jsx("p",{className:"text-tight text-sm leading-snug",style:{color:"var(--text-secondary)"},children:m(r.authors)}),e.jsxs("p",{className:"text-tight text-sm leading-snug",style:{color:"var(--text-tertiary)"},children:["(",r.year,")"]})]},a))})]}),s?.technicalReports&&s.technicalReports.length>0&&e.jsxs("section",{className:"mb-12",children:[e.jsx("h2",{className:"font-bold mb-4 pb-2 border-b",style:{color:"var(--text-primary)",borderColor:"var(--border)"},children:"Technical Reports"}),e.jsx("div",{className:"space-y-3",children:s.technicalReports.map((r,a)=>e.jsxs("div",{className:"px-3 py-2 rounded-lg [&>p]:m-0",style:{background:n?"var(--bg-tertiary)":"var(--bg-secondary)",border:"1px solid var(--border)"},children:[e.jsx("p",{className:"text-tight font-medium leading-snug",children:p(r.title,r.url)}),e.jsx("p",{className:"text-tight text-sm leading-snug",style:{color:"var(--text-secondary)"},children:m(r.authors)}),e.jsxs("p",{className:"text-tight text-sm leading-snug",style:{color:"var(--text-tertiary)"},children:["(",r.year,")"]})]},a))})]}),s?.chapters&&s.chapters.length>0&&e.jsxs("section",{className:"mb-12",children:[e.jsx("h2",{className:"font-bold mb-4 pb-2 border-b",style:{color:"var(--text-primary)",borderColor:"var(--border)"},children:s.chapters.length===1?"Chapter":"Chapters"}),e.jsx("div",{className:"space-y-3",children:s.chapters.map((r,a)=>e.jsxs("div",{className:"px-3 py-2 rounded-lg [&>p]:m-0",style:{background:n?"var(--bg-tertiary)":"var(--bg-secondary)",border:"1px solid var(--border)"},children:[e.jsx("p",{className:"text-tight font-medium leading-snug",children:p(r.title,r.url)}),e.jsx("p",{className:"text-tight text-sm leading-snug",style:{color:"var(--text-secondary)"},children:m(r.authors)}),e.jsxs("p",{className:"text-tight text-sm leading-snug",style:{color:"var(--text-tertiary)"},children:["in ",e.jsx("em",{children:r.book}),r.editors&&`, edited by ${r.editors}`,", ",r.publisher," (",r.year,")"]})]},a))})]})]}),c==="inprogress"&&e.jsxs(e.Fragment,{children:[s?.underReview&&s.underReview.length>0&&e.jsxs("section",{className:"mb-12",children:[e.jsx("h2",{className:"font-bold mb-4 pb-2 border-b",style:{color:"var(--text-primary)",borderColor:"var(--border)"},children:"Under Review"}),e.jsx("div",{className:"space-y-3",children:s.underReview.map((r,a)=>e.jsxs("div",{className:"px-3 py-2 rounded-lg [&>p]:m-0",style:{background:n?"var(--bg-tertiary)":"var(--bg-secondary)",border:"1px solid var(--border)"},children:[e.jsxs("div",{className:"flex items-start justify-between gap-2",children:[e.jsx("p",{className:"text-tight font-medium leading-snug",style:{color:"var(--text-primary)"},children:r.title}),r.status==="R&R"&&e.jsx("span",{className:"flex-shrink-0 px-2 py-0.5 rounded text-xs font-medium",style:{background:"var(--accent)",color:"#ffffff"},children:"R&R"})]}),e.jsx("p",{className:"text-tight text-sm leading-snug",style:{color:"var(--text-secondary)"},children:m(r.authors)}),r.journal&&e.jsx("p",{className:"text-tight text-sm leading-snug",style:{color:"var(--text-tertiary)"},children:e.jsx("em",{children:r.journal})})]},a))})]}),s?.worksInProgress&&s.worksInProgress.length>0&&e.jsxs("section",{className:"mb-12",children:[e.jsx("h2",{className:"font-bold mb-4 pb-2 border-b",style:{color:"var(--text-primary)",borderColor:"var(--border)"},children:"Works in Progress"}),e.jsx("div",{className:"space-y-3",children:s.worksInProgress.map((r,a)=>e.jsxs("div",{className:"px-3 py-2 rounded-lg [&>p]:m-0",style:{background:n?"var(--bg-tertiary)":"var(--bg-secondary)",border:"1px solid var(--border)"},children:[e.jsx("p",{className:"text-tight font-medium leading-snug",style:{color:"var(--text-primary)"},children:r.title}),e.jsx("p",{className:"text-tight text-sm leading-snug",style:{color:"var(--text-secondary)"},children:m(r.authors)})]},a))})]})]}),c==="grants"&&e.jsxs(e.Fragment,{children:[s?.awards&&s.awards.length>0&&e.jsxs("section",{className:"mb-12",children:[e.jsx("h2",{className:"font-bold mb-4 pb-2 border-b",style:{color:"var(--text-primary)",borderColor:"var(--border)"},children:"Awards & Honors"}),e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:s.awards.map(r=>e.jsxs("div",{className:"px-3 py-2 rounded-lg [&>p]:m-0",style:{background:n?"var(--bg-tertiary)":"var(--bg-secondary)",border:"1px solid var(--border)"},children:[e.jsx("p",{className:"text-tight font-medium leading-snug",style:{color:"var(--text-primary)"},children:r.name}),e.jsxs("p",{className:"text-tight text-sm leading-snug",style:{color:"var(--text-tertiary)"},children:[r.year," · ",r.institution]})]},r.name))})]}),s?.grants&&s.grants.length>0&&e.jsxs("section",{className:"mb-12",children:[e.jsx("h2",{className:"font-bold mb-4 pb-2 border-b",style:{color:"var(--text-primary)",borderColor:"var(--border)"},children:"Grants"}),e.jsx("div",{className:"space-y-3",children:s.grants.map((r,a)=>e.jsxs("div",{className:"px-3 py-2 rounded-lg [&>p]:m-0",style:{background:n?"var(--bg-tertiary)":"var(--bg-secondary)",border:"1px solid var(--border)"},children:[e.jsx("p",{className:"text-tight font-medium leading-snug",style:{color:"var(--text-primary)"},children:r.title}),e.jsx("p",{className:"text-tight text-sm leading-snug",style:{color:"var(--text-secondary)"},children:r.funder}),e.jsxs("p",{className:"text-tight text-sm leading-snug",style:{color:"var(--text-tertiary)"},children:[r.role,r.amount&&` · ${r.amount}`,r.year&&` · ${r.year}`]})]},a))})]})]}),c==="service"&&s?.service&&s.service.length>0&&e.jsxs("section",{className:"mb-12",children:[e.jsx("h2",{className:"font-bold mb-4 pb-2 border-b",style:{color:"var(--text-primary)",borderColor:"var(--border)"},children:"Service"}),e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-3",children:s.service.map((r,a)=>e.jsxs("div",{className:"px-3 py-2 rounded-lg [&>p]:m-0",style:{background:n?"var(--bg-tertiary)":"var(--bg-secondary)",border:"1px solid var(--border)"},children:[e.jsx("p",{className:"text-tight font-medium leading-snug",style:{color:"var(--text-primary)"},children:r.role}
1),r.year&&e.jsx("p",{className:"text-tight text-sm leading-snug",style:{color:"var(--text-tertiary)"},children:r.year})]},a))})]}),c==="talks"&&e.jsxs(e.Fragment,{children:[s?.invitedTalks&&s.invitedTalks.length>0&&(()=>{const r=new Map;s.invitedTalks.forEach(o=>{const t=typeof o.year=="number"?o.year:parseInt(String(o.year))||0;r.has(t)||r.set(t,[]),r.get(t).push(o.institution)});const a=Array.from(r.keys()).sort((o,t)=>t-o);return e.jsxs("section",{className:"mb-12",children:[e.jsx("h2",{className:"font-bold mb-4 pb-2 border-b",style:{color:"var(--text-primary)",borderColor:"var(--border)"},children:"Invited Talks"}),e.jsx("div",{className:"space-y-4",children:a.map(o=>{const t=r.get(o);return e.jsxs("div",{children:[e.jsx("p",{className:"font-medium mb-1",style:{color:"var(--text-tertiary)",fontSize:"0.75rem"},children:o||"Other"}),e.jsx("div",{className:"flex flex-wrap gap-2",children:t.map((l,d)=>e.jsx("span",{className:"px-3 py-1 rounded-full text-sm",style:{background:n?"var(--bg-tertiary)":"var(--bg-secondary)",color:"var(--text-secondary)",border:"1px solid var(--border)"},children:l},`${l}-${d}`))})]},o)})})]})})(),s?.conferencePresentations&&s.conferencePresentations.length>0&&(()=>{const r=S(s.conferencePresentations,"conference"),a=Array.from(r.keys()).sort((o,t)=>t-o);return e.jsxs("section",{className:"mb-12",children:[e.jsx("h2",{className:"font-bold mb-4 pb-2 border-b",style:{color:"var(--text-primary)",borderColor:"var(--border)"},children:"Conference Presentations"}),e.jsx("div",{className:"space-y-4",children:a.map(o=>{const t=r.get(o);return e.jsxs("div",{children:[e.jsx("p",{className:"font-medium mb-1",style:{color:"var(--text-tertiary)",fontSize:"0.75rem"},children:o}),e.jsx("div",{className:"flex flex-wrap gap-2",children:Array.from(t.entries()).map(([l,d])=>e.jsxs("span",{className:"px-3 py-1 rounded-full text-sm",style:{background:n?"var(--bg-tertiary)":"var(--bg-secondary)",color:"var(--text-secondary)",border:"1px solid var(--border)"},children:[l,d>1?` (${d})`:""]},l))})]},o)})})]})})()]}),c==="teaching"&&(()=>{const r=s.teachingEvaluations||[];if(r.length===0)return e.jsx("section",{className:"mb-12",children:e.jsx("p",{className:"text-sm italic",style:{color:"var(--text-muted)"},children:"No teaching evaluations available yet."})});const a=new Map;r.forEach(t=>{a.has(t.year)||a.set(t.year,[]),a.get(t.year).push(t)});const o=Array.from(a.keys()).sort((t,l)=>l-t);return e.jsxs("section",{className:"mb-12",children:[e.jsx("h2",{className:"font-bold mb-4 pb-2 border-b",style:{color:"var(--text-primary)",borderColor:"var(--border)"},children:"Teaching Evaluations"}),e.jsx("div",{className:"space-y-6",children:o.map(t=>e.jsxs("div",{children:[e.jsx("p",{className:"font-medium mb-2",style:{color:"var(--text-tertiary)",fontSize:"0.75rem"},children:t}),e.jsx("div",{className:"space-y-3",children:a.get(t).map((l,d)=>e.jsxs("div",{className:"rounded-lg overflow-hidden",style:{background:n?"var(--bg-tertiary)":"var(--bg-secondary)",border:"1px solid var(--border)"},children:[e.jsxs("div",{className:"flex items-center justify-between px-3 py-2",children:[e.jsxs("div",{children:[e.jsx("p",{className:"text-sm font-semibold",style:{color:"var(--text-primary)"},children:l.course}),e.jsxs("p",{className:"text-xs",style:{color:"var(--text-tertiary)"},children:[l.term," ",l.year]})]}),e.jsxs("div",{className:"flex items-center gap-3",children:[l.courseQualityMean!=null&&e.jsxs("div",{className:"text-center",children:[e.jsx("p",{className:"text-base font-bold",style:{color:"var(--accent)"},children:l.courseQualityMean.toFixed(2)}),e.jsx("p",{className:"text-[9px] uppercase tracking-wide",style:{color:"var(--text-tertiary)"},children:"Course"})]}),l.teachingEffectivenessMean!=null&&e.jsxs("div",{className:"text-center",children:[e.jsx("p",{className:"text-base font-bold",style:{color:"var(--accent)"},children:l.teachingEffectivenessMean.toFixed(2)}),e.jsx("p",{className:"text-[9px] uppercase tracking-wide",style:{color:"var(--text-tertiary)"},children:"Teaching"})]}),e.jsxs("a",{href:l.pdfUrl,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1 px-2 py-1 rounded text-xs font-medium transition-colors hover:opacity-80",style:{color:"var(--accent)",border:"1px solid var(--border)"},children:[e.jsx("svg",{className:"w-3 h-3",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"})}),"PDF"]})]})]}),(l.courseQualityMean!=null||l.teachingEffectivenessMean!=null)&&e.jsx("p",{className:"px-3 pb-1 text-[10px] italic text-right",style:{color:"var(--text-muted)"}
1,children:"Scale: 1 = Excellent, 5 = Poor"}),l.positiveComments&&l.positiveComments.length>0&&e.jsxs("div",{className:"px-3 py-2",style:{borderTop:"1px solid var(--border)"},children:[e.jsx("p",{className:"text-[10px] font-semibold uppercase tracking-wide mb-1.5",style:{color:"var(--text-tertiary)"},children:"Student Feedback"}),e.jsx("div",{className:"space-y-1.5",children:l.positiveComments.map((g,M)=>e.jsx("p",{className:"text-[13px] leading-snug pl-2.5",style:{color:"var(--text-secondary)",borderLeft:"2px solid var(--accent)"},children:g},M))})]})]},d))})]},t))})]})})()]})}export{A as ProfileWestwood};

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.