1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/CommentsSection-DYB_U1HN.js","assets/index-KSWbwNeY.js","assets/index-CeohMUG_.css","assets/textarea-BXv-lbww.js","assets/dialog-Bpfij23O.js","assets/index-BpbyRUKB.js","assets/label-ndOKmXJw.js","assets/radio-group-B_sKY98x.js","assets/eye-Cwzmef_1.js","assets/eye-off-DqR1XpTQ.js","assets/flag-DhaMxnCI.js","assets/ban-Dw9y4DYY.js","assets/message-square-D9MVWo21.js","assets/send-Diy0wlsk.js","assets/shield-check-CHHnEQz_.js","assets/heart-BKeMwoxw.js","assets/ellipsis-aIaacu3o.js","assets/schemas-eq1hNim8.js"])))=>i.map(i=>d[i]); 2import{j as e,o as d,J as f,d as H,r as c,a9 as M,u as A,ac as E,K as v,al as P,H as F,$ as D}from"./index-KSWbwNeY.js";import T from"./Footer-DPSMpmUX.js";import{A as _}from"./arrow-left-1kEvYP7w.js";import{H as B}from"./HonoreeCard-C3n93Ldd.js";import{s as R}from"./sanitizeHTML-3eQ8Vumw.js";import{a as q,g as O}from"./seoDefaults-DHsbBPCr.js";import"./twitter-yEUqfNJX.js";import"./linkedin-B1bA0DJP.js";import"./youtube-CwivUiPT.js";import"./facebook-DahhNxAJ.js";import"./purify.es--yiYCWnk.js";import"./htmlDecoder-Cz23cfvH.js";const U=({listSlug:m,prev:o,next:r})=>e.jsxs("div",{className:"grid grid-cols-1 gap-4 border-t border-border py-10 md:grid-cols-2 md:gap-8",children:[o?e.jsxs(d,{to:`/lists/${m}/${o.slug}`,className:"group flex items-center gap-4 transition-opacity hover:opacity-80",children:[e.jsx(_,{className:"h-5 w-5 shrink-0 transition-transform duration-300 group-hover:-translate-x-1"}),e.jsx("div",{className:"h-16 w-16 shrink-0 overflow-hidden bg-muted",children:o.image_url&&e.jsx(f,{src:o.image_url,alt:o.name,width:120,height:120,className:"h-full w-full object-cover"})}),e.jsxs("div",{className:"min-w-0 flex-1",children:[e.jsx("p",{className:"text-[10px] uppercase tracking-widest text-muted-foreground",children:"Previous"}),e.jsx("p",{className:"truncate font-serif text-lg text-foreground group-hover:text-accent",children:o.name})]})]}):e.jsx("div",{}),r?e.jsxs(d,{to:`/lists/${m}/${r.slug}`,className:"group flex flex-row-reverse items-center gap-4 text-right transition-opacity hover:opacity-80",children:[e.jsx(H,{className:"h-5 w-5 shrink-0 transition-transform duration-300 group-hover:translate-x-1"}),e.jsx("div",{className:"h-16 w-16 shrink-0 overflow-hidden bg-muted",children:r.image_url&&e.jsx(f,{src:r.image_url,alt:r.name,width:120,height:120,className:"h-full w-full object-cover"})}),e.jsxs("div",{className:"min-w-0 flex-1",children:[e.jsx("p",{className:"text-[10px] uppercase tracking-widest text-muted-foreground",children:"Next"}),e.jsx("p",{className:"truncate font-serif text-lg text-foreground group-hover:text-accent",children:r.name})]})]}):e.jsx("div",{})]}),C=c.lazy(()=>M(()=>import("./CommentsSection-DYB_U1HN.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17]))),re=()=>{const{user:m,isAdmin:o}=A(),{listSlug:r,entrySlug:h}=E(),[a,j]=c.useState(null),[l,w]=c.useState([]),[k,x]=c.useState(!0);c.useEffect(()=>{if(!r)return;let s=!0;return(async()=>{x(!0);const{data:n}=await v.from("lists").select("id, slug, title").eq("slug",r).eq("published",!0).maybeSingle();if(!s)return;if(!n){j(null),x(!1);return}j(n);const{data:i}=await v.from("list_entries").select("id, slug, name, role_title, organization, image_url, bio_html, byline_text, category_slug, external_link, display_order").eq("list_id",n.id).eq("is_published",!0).order("display_order",{ascending:!0});s&&(w(i??[]),x(!1))})(),()=>{s=!1}},[r]);const{current:t,prev:$,next:z,related:b}=c.useMemo(()=>{const s=l.findIndex(i=>i.slug===h),n=s>=0?l[s]:null;return{current:n,prev:s>0?l[s-1]:null,next:s>=0&&s<l.length-1?l[s+1]:null,related:n?l.filter(i=>i.id!==n.id&&i.category_slug===n.category_slug).slice(0,4):[]}},[l,h]);if(k)return e.jsx(P,{});if(!a||!t)return e.jsxs("div",{className:"mx-auto flex min-h-[60vh] max-w-3xl flex-col items-center justify-center px-6 text-center",children:[e.jsx("h1",{className:"font-serif text-3xl",children:"Honoree not found"}),e.jsx(d,{to:r?`/lists/${r}`:"/",className:"mt-4 text-accent underline",children:"Back to list"})]});const N=O(),g=`${N}/lists/${a.slug}/${t.slug}`,S=q(t.image_url,N),L={"@context":"https://schema.org","@type":"Person",name:t.name,jobTitle:t.role_title||void 0,worksFor:t.organization?{"@type":"Organization",name:t.organization}:void 0,image:t.image_url||void 0,url:g};return e.jsxs(e.Fragment,{children:[e.jsxs(F,{children:[e.jsx("title",{children:`${t.name} â ${a.title} | AIM`}),e.jsx("meta",{name:"description",content:`${t.name}${t.role_title?`, ${t.role_title}`:""}${t.organization?` at ${t.organization}`:""} â featured in ${a.title}.`}),e.jsx("link",{rel:"canonical",href:g}),e.jsx("meta",{property:"og:title",content:`${t.name} â ${a.title}`}),e.jsx("meta",{property:"og:image",content:S}),e.jsx("meta",{property:"og:type",content:"profile"}),e.jsx("meta",{property:"og:url",content:g}),e.jsx("script",{type:"application/ld+json",children:JSON.stringify(L)})]}),e.jsx("div",{className:"border-b border-border/60 bg-background",children:e.jsxs("div",{className:"mx-auto grid max-w-[1400px] grid-cols-3 items-center px-4 py-5 sm:px-6 lg:px-10",children:[e.jsxs(d,{to:`/lists/${a.slug}`,className:"group inline-flex items-center gap-2 justify-self-start text-[11px] font-semibold uppercase tracking-[0.2em] text-foreground transition-opacity hover:opacity-70",children:[e.jsx(_,{className:"h-4 w-4 transition-transform duration-300 group-hover:-translate-x-1"}),"Back to list"]}),e.jsx(d,{to:`/lists/${a.slug}`,className:"justify-self-center text-center text-[11px] font-semibold uppercase tracking-[0.22em] text-foreground hover:opacity-70",children:a.title}),e.jsxs("span",{className:"hidden justify-self-end text-[11px] font-semibold uppercase tracking-[0.2em] text-foreground
2/60 sm:inline",children:[l.findIndex(s=>s.id===t.id)+1," / ",l.length]})]})}),e.jsxs("article",{className:"mx-auto max-w-[1400px] px-4 pb-16 pt-10 sm:px-6 md:pt-14 lg:px-10",children:[e.jsxs("div",{className:"grid grid-cols-1 gap-10 md:grid-cols-12 md:gap-12 lg:gap-16",children:[e.jsx("div",{className:"md:col-span-5 lg:col-span-4",children:e.jsxs("div",{className:"animate-fade-in",style:{animationDelay:"60ms",animationFillMode:"backwards"},children:[e.jsx("p",{className:"text-[11px] font-semibold uppercase tracking-[0.2em] text-foreground/60",children:a.title}),e.jsx("h1",{className:"mt-6 font-serif text-5xl font-normal leading-[1.05] tracking-tight text-foreground md:text-6xl lg:text-7xl",children:t.name}),(t.role_title||t.organization)&&e.jsx("p",{className:"mt-5 text-base leading-relaxed text-foreground/70 md:text-lg",children:[t.role_title,t.organization].filter(Boolean).join(", ")}),e.jsx("div",{className:"mt-8 h-px w-full bg-foreground/15"}),t.byline_text&&e.jsxs("p",{className:"mt-6 text-sm text-foreground",children:["by ",e.jsx("span",{className:"font-medium underline underline-offset-4",children:t.byline_text})]})]})}),e.jsxs("div",{className:"md:col-span-7 lg:col-span-8",children:[e.jsx("div",{className:"overflow-hidden bg-muted animate-fade-in",style:{animationDelay:"180ms",animationFillMode:"backwards"},children:t.image_url?e.jsx("div",{className:"aspect-[16/10] w-full overflow-hidden",children:e.jsx(f,{src:t.image_url,alt:t.name,width:1400,height:875,loading:"eager",fetchPriority:"high",className:"h-full w-full object-cover object-center transition-transform duration-[1200ms] ease-out hover:scale-[1.02]"})}):e.jsx("div",{className:"flex aspect-[16/10] w-full items-center justify-center bg-muted",children:e.jsx("span",{className:"font-serif text-9xl text-muted-foreground/30",children:t.name.charAt(0)})})}),t.organization&&e.jsxs("p",{className:"mt-3 text-xs italic text-foreground/55",children:["Photo â ",t.organization]})]})]}),t.bio_html&&(()=>{const s=R(t.bio_html).replace(/(<br\s*\/?>\s*){2,}/gi,"</p><p>").replace(/^(?!<p)/,"<p>").replace(new RegExp("(?<!<\\/p>)$"),"</p>"),n=/<\/p>/gi,i=[];let p;for(;(p=n.exec(s))!==null&&(i.push(p.index+p[0].length),!(i.length>=2)););const u=i.length>=2,I=u?s.slice(0,i[1]):s,y=u?s.slice(i[1]):"";return e.jsxs("div",{className:"mx-auto mt-14 max-w-3xl animate-fade-in md:mt-20",style:{animationDelay:"260ms",animationFillMode:"backwards"},children:[e.jsx("div",{className:"prose prose-lg max-w-none font-serif text-foreground prose-p:my-6 prose-p:leading-[1.8] prose-p:text-foreground/85 prose-a:text-accent prose-a:no-underline hover:prose-a:underline [&>p+p]:mt-6 [&_br+br]:block [&_br+br]:content-[''] [&_br+br]:my-4",dangerouslySetInnerHTML:{__html:I}}),u&&e.jsx("div",{className:"my-8 flex justify-center",children:e.jsx(D,{slot:"power_list_banner",className:"w-full max-w-[728px]",hideIfVacant:!0})}),y&&e.jsx("div",{className:"prose prose-lg max-w-none font-serif text-foreground prose-p:my-6 prose-p:leading-[1.8] prose-p:text-foreground/85 prose-a:text-accent prose-a:no-underline hover:prose-a:underline [&>p+p]:mt-6 [&_br+br]:block [&_br+br]:content-[''] [&_br+br]:my-4",dangerouslySetInnerHTML:{__html:y}}),t.external_link&&e.jsx("a",{href:t.external_link,target:"_blank",rel:"noopener noreferrer",className:"mt-10 inline-block border border-foreground px-5 py-2.5 text-[11px] font-semibold uppercase tracking-[0.2em] transition-colors hover:bg-foreground hover:text-background",children:"Learn more â"})]})})(),e.jsx("div",{className:"mx-auto mt-16 max-w-3xl",children:e.jsx(U,{listSlug:a.slug,prev:$,next:z})}),e.jsxs("section",{className:"mx-auto mt-20 max-w-3xl border-t border-border/60 pt-14",children:[e.jsx("p",{className:"text-center text-[11px] font-semibold uppercase tracking-[0.24em] text-foreground/55",children:"Join the conversation"}),e.jsx("h2",{className:"mt-3 text-center font-serif text-3xl font-normal tracking-tight text-foreground md:text-4xl",children:"Discussion"}),e.jsx("div",{className:"mt-8",children:e.jsx(c.Suspense,{fallback:e.jsx("div",{className:"py-8 text-center text-sm text-foreground
2/50",children:"Loading discussionâ¦"}),children:e.jsx(C,{listEntryId:t.id,user:m,isAdmin:o})})})]}),b.length>0&&e.jsxs("section",{className:"mt-20 border-t border-border/60 pt-14",children:[e.jsx("p",{className:"text-center text-[11px] font-semibold uppercase tracking-[0.24em] text-foreground/55",children:"More honorees"}),e.jsxs("h2",{className:"mt-3 text-center font-serif text-3xl font-normal tracking-tight text-foreground md:text-4xl",children:["From ",a.title]}),e.jsx("div",{className:"mt-10 grid grid-cols-2 gap-x-6 gap-y-10 lg:grid-cols-4",children:b.map((s,n)=>e.jsx(B,{to:`/lists/${a.slug}/${s.slug}`,name:s.name,roleTitle:s.role_title,organization:s.organization,imageUrl:s.image_url,byline:s.byline_text,index:n},s.id))})]})]}),e.jsx(T,{})]})};export{re 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.