PageSourceSearch

https://cybergen.ai/assets/AuthorDetail-BIPDyxpr.js

js cybergen.ai collected 2026-10-05 14:39:14 UTC 5,372 bytes, 2 lines download raw bytes

1import{z as j,j as e,B as t,L as c,aq as f,ar as u,as as p,X as N,bh as g,_ as d,e as n,c as v,d as b,U as y,f as w}from"./index-a7YqgLXC.js";import{S as _}from"./SEO-q_6KvcNz.js";import{b as C}from"./useAuthorProfiles-D08Q8cR8.js";import{u as k}from"./useResearchPublications-DCsIfsqt.js";import{A as L}from"./arrow-left-D3qMHHig.js";import{B as m}from"./book-open-BcxdqD91.js";import{C as A}from"./calendar-CD2-KRUu.js";const U=()=>{const{name:x}=j(),i=decodeURIComponent(x||""),{data:s,isLoading:h}=C(i),{data:o}=k(),r=o==null?void 0:o.filter(a=>a.authors.some(l=>l.toLowerCase()===i.toLowerCase())||a.lead_author.toLowerCase()===i.toLowerCase());return h?e.jsx("div",{className:"min-h-screen flex items-center justify-center",children:e.jsx("div",{className:"text-muted-foreground",children:"Loading author profile..."})}):s?e.jsxs(e.Fragment,{children:[e.jsx(_,{title:`${s.name} | Researcher | CyberGen AI`,description:s.bio||`Research publications and profile for ${s.name} at CyberGen AI.`}),e.jsx("section",{className:"py-12 md:py-20 bg-gradient-to-br from-background via-background to-primary/5",children:e.jsxs("div",{className:"container mx-auto px-4",children:[e.jsx(t,{variant:"ghost",asChild:!0,className:"mb-6",children:e.jsxs(c,{to:"/research",children:[e.jsx(L,{className:"h-4 w-4 mr-2"}),"Back to Research"]})}),e.jsxs("div",{className:"flex flex-col md:flex-row gap-8 items-start",children:[e.jsxs(f,{className:"h-32 w-32 md:h-48 md:w-48 mx-auto md:mx-0",children:[e.jsx(u,{src:s.avatar_url||void 0}),e.jsx(p,{className:"text-4xl",children:s.name.split(" ").map(a=>a[0]).join("").slice(0,2).toUpperCase()})]}),e.jsxs("div",{className:"flex-1 text-center md:text-left",children:[e.jsx("h1",{className:"text-3xl md:text-4xl font-bold mb-2",children:s.name}),s.title&&e.jsx("p",{className:"text-xl text-muted-foreground mb-4",children:s.title}),e.jsxs("div",{className:"flex flex-wrap gap-3 justify-center md:justify-start mb-6",children:[s.email&&e.jsx(t,{variant:"outline",size:"sm",asChild:!0,children:e.jsxs("a",{href:`mailto:${s.email}`,children:[e.jsx(N,{className:"h-4 w-4 mr-2"}),"Email"]})}),s.linkedin_url&&e.jsx(t,{variant:"outline",size:"sm",asChild:!0,children:e.jsxs("a",{href:s.linkedin_url,target:"_blank",rel:"noopener noreferrer",children:[e.jsx(g,{className:"h-4 w-4 mr-2"}),"LinkedIn"]})}),s.google_scholar_url&&e.jsx(t,{variant:"outline",size:"sm",asChild:!0,children:e.jsxs("a",{href:s.google_scholar_url,target:"_blank",rel:"noopener noreferrer",children:[e.jsx(d,{className:"h-4 w-4 mr-2"}),"Google Scholar"]})}),s.orcid_id&&e.jsx(t,{variant:"outline",size:"sm",asChild:!0,children:e.jsxs("a",{href:`https://orcid.org/${s.orcid_id}`,target:"_blank",rel:"noopener noreferrer",children:[e.jsx(d,{className:"h-4 w-4 mr-2"}),"ORCID"]})})]}),s.research_interests&&s.research_interests.length>0&&e.jsx("div",{className:"flex flex-wrap gap-2 justify-center md:justify-start",children:s.research_interests.map((a,l)=>e.jsx(n,{variant:"secondary",children:a},l))})]})]})]})}),s.bio&&e.jsx("section",{className:"py-12 border-b",children:e.jsxs("div",{className:"container mx-auto px-4 max-w-3xl",children:[e.jsx("h2",{className:"text-2xl font-bold mb-4",children:"Biography"}),e.jsx("div",{className:"prose prose-neutral dark:prose-invert",children:s.bio.split(`
2`).map((a,l)=>e.jsx("p",{className:"text-muted-foreground",children:a},l))})]})}),e.jsx("section",{className:"py-12",children:e.jsxs("div",{className:"container mx-auto px-4",children:[e.jsxs("h2",{className:"text-2xl font-bold mb-8 flex items-center gap-2",children:[e.jsx(m,{className:"h-5 w-5 text-primary"}),"Publications",e.jsx(n,{variant:"secondary",children:(r==null?void 0:r.length)||0})]}),r&&r.length>0?e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:r.map(a=>e.jsx(v,{className:"hover:shadow-lg transition-shadow",children:e.jsxs(b,{className:"p-6",children:[e.jsxs("div",{className:"flex flex-wrap gap-2 mb-3",children:[a.research_area&&e.jsx(n,{variant:"secondary",className:"text-xs",children:a.research_area}),a.lead_author.toLowerCase()===i.toLowerCase()&&e.jsx(n,{className:"text-xs bg-primary/10 text-primary",children:"Lead Author"})]}),e.jsx("h3",{className:"text-lg font-semibold mb-2",children:e.jsx(c,{to:`/research/${a.id}`,className:"hover:text-primary transition-colors",children:a.title})}),e.jsx("p",{className:"text-sm text-muted-foreground mb-4 line-clamp-2",children:a.abstract}),e.jsxs("div",{className:"flex items-center gap-4 text-xs text-muted-foreground",children:[e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(y,{className:"h-3 w-3"}),a.authors.length," author",a.authors.length!==1?"s":""]}),a.first_published_at&&e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(A,{className:"h-3 w-3"}),w(new Date(a.first_published_at),"MMM yyyy")]})]})]})},a.id))}):e.jsxs("div",{className:"text-center py-12 text-muted-foreground",children:[e.jsx(m,{className:"h-12 w-12 mx-auto mb-4 opacity-50"}
2),e.jsx("p",{children:"No publications found for this author."})]})]})})]}):e.jsx("div",{className:"min-h-screen flex items-center justify-center",children:e.jsxs("div",{className:"text-center",children:[e.jsx("h1",{className:"text-2xl font-bold mb-4",children:"Author Not Found"}),e.jsx(t,{asChild:!0,children:e.jsx(c,{to:"/research",children:"Back to Research"})})]})})};export{U 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.