PageSourceSearch

https://analyticsindiamag.com/assets/ListCollection-Dm_inkn8.js

js analyticsindiamag.com collected 2026-09-24 08:27:57 UTC 16,776 bytes, 2 lines download raw bytes

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,a1 as A,r as n,J as H,$ as I,K as L,m as R,o as E,_ as M,a9 as F,u as P,ac as B,al as T,H as q,A as C}from"./index-KSWbwNeY.js";import O from"./Footer-DPSMpmUX.js";import{s as D}from"./sanitizeHTML-3eQ8Vumw.js";import{H as V}from"./HonoreeCard-C3n93Ldd.js";import{a as W,g as J}from"./seoDefaults-DHsbBPCr.js";import{A as G}from"./arrow-up-CBTsa4sb.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 K=({categories:x,active:m,onChange:c})=>{const t=[{slug:"all",name:"All"},...x];return e.jsx("div",{className:"mx-auto flex max-w-3xl flex-wrap items-center justify-center gap-1.5 sm:gap-2",children:t.map(o=>{const d=m===o.slug;return e.jsx("button",{onClick:()=>c(o.slug),className:A("rounded-full border px-3 py-1.5 text-[10px] font-medium uppercase tracking-[0.14em] transition-all duration-300 sm:px-3.5 sm:py-1.5 sm:text-[11px]",d?"border-foreground bg-foreground text-background":"border-foreground
2/25 bg-transparent text-foreground/80 hover:border-foreground hover:text-foreground"),children:o.name},o.slug)})})},U=({title:x,subtitle:m,description:c,coverImageUrl:t,coverCredit:o,introLinkUrl:d,introLinkLabel:r,categories:i=[],activeCategory:u="all",onCategoryChange:a})=>{const b=n.useRef(null),f=n.useRef(null),[p,h]=n.useState(0),[N,j]=n.useState("180vh");n.useEffect(()=>{if(!t)return;const v=()=>{const l=f.current;if(!l)return;const g=window.innerHeight,y=g*.8+l.offsetHeight+24,k=g*1.8;j(`${Math.max(k,y)}px`)};v();const s=new ResizeObserver(v);return f.current&&s.observe(f.current),window.addEventListener("resize",v),()=>{s.disconnect(),window.removeEventListener("resize",v)}},[t,i.length,u]),n.useEffect(()=>{if(!t){h(1);return}const v=()=>{const s=b.current;if(!s)return;const g=-s.getBoundingClientRect().top,y=window.innerHeight,k=y*.4,z=y*1,$=Math.min(1,Math.max(0,(g-k)/(z-k)));h($)};return v(),window.addEventListener("scroll",v,{passive:!0}),window.addEventListener("resize",v),()=>{window.removeEventListener("scroll",v),window.removeEventListener("resize",v)}},[t]);const w=720+560*p,_=24+8*p;return t?e.jsxs("section",{ref:b,className:"relative w-full bg-[#f6f1e8]",style:{height:N},children:[e.jsxs("div",{className:"sticky top-0 h-screen w-full overflow-hidden bg-foreground",children:[e.jsx("div",{className:"absolute inset-0 animate-[scale-in_1.6s_ease-out]",children:e.jsx(H,{src:t,alt:x,width:1920,height:1200,loading:"eager",fetchPriority:"high",className:"h-full w-full object-cover"})}),e.jsx("div",{className:"absolute inset-0 bg-black/10 transition-opacity duration-300",style:{opacity:p*.25}}),o&&e.jsx("p",{className:"absolute bottom-4 right-4 text-[10px] uppercase tracking-widest text-white/70",children:o})]}),e.jsx("div",{className:"absolute left-0 right-0 top-[80vh] z-10 flex justify-center px-4 sm:px-8",children:e.jsx("div",{ref:f,className:"bg-[#f6f1e8] text-center transition-[max-width,padding] duration-300 ease-out",style:{maxWidth:`${w}px`,width:"100%",paddingLeft:`${_}px`,paddingRight:`${_}px`,paddingTop:"3.5rem",paddingBottom:"3rem"},children:e.jsx(S,{subtitle:m,title:x,description:c,introLinkUrl:d,introLinkLabel:r,categories:i,activeCategory:u,onCategoryChange:a})})})]}):e.jsx("section",{className:"relative w-full bg-[#f6f1e8] pt-20 md:pt-28",children:e.jsx("div",{className:"mx-auto max-w-3xl px-6 pb-10 text-center md:px-10 md:pb-14",children:e.jsx(S,{subtitle:m,title:x,description:c,introLinkUrl:d,introLinkLabel:r,categories:i,activeCategory:u,onCategoryChange:a})})})},S=({subtitle:x,title:m,description:c,introLinkUrl:t,introLinkLabel:o,categories:d,activeCategory:r,onCategoryChange:i})=>e.jsxs(e.Fragment,{children:[x&&e.jsx("p",{className:"mb-5 animate-fade-in text-[11px] font-semibold uppercase tracking-[0.28em] text-foreground/70 md:text-xs",children:x}),e.jsx("h1",{className:"animate-fade-in font-serif text-[36px] font-normal leading-[1.05] tracking-tight text-foreground sm:text-5xl md:text-6xl lg:text-7xl",style:{animationDelay:"100ms",animationFillMode:"backwards"},children:m}),c&&e.jsx("div",{className:"mx-auto mt-5 max-w-2xl animate-fade-in text-sm leading-relaxed text-foreground/75 md:text-base [&_a]:underline [&_p]:mt-2 first:[&_p]:mt-0",style:{animationDelay:"220ms",animationFillMode:"backwards"},dangerouslySetInnerHTML:{__html:D(c)}}),t&&e.jsx("div",{className:"mt-6 animate-fade-in",style:{animationDelay:"340ms",animationFillMode:"backwards"},children:e.jsxs("a",{href:t,className:"group inline-flex items-center gap-2 text-[11px] font-semibold uppercase tracking-[0.22em] text-foreground/80 transition-colors hover:text-foreground",children:[e.jsxs("span",{className:"relative",children:[o||"How we 
2chose the list",e.jsx("span",{className:"absolute -bottom-0.5 left-0 h-px w-full origin-right scale-x-0 bg-foreground transition-transform duration-500 group-hover:origin-left group-hover:scale-x-100"})]}),e.jsx("span",{"aria-hidden":!0,className:"text-destructive",children:"→"})]})}),d.length>0&&i&&e.jsx("div",{className:"mt-7 md:mt-9",children:e.jsx(K,{categories:d,active:r,onChange:i})})]}),Y=({title:x,children:m,count:c,description:t})=>{const o=n.useRef(null),[d,r]=n.useState(!0);n.useEffect(()=>{if(!o.current)return;const p=new IntersectionObserver(([h])=>{h.isIntersecting&&(r(!0),p.disconnect())},{threshold:.05});return p.observe(o.current),()=>p.disconnect()},[]);const i=n.Children.toArray(m),u=6,a=i.length>u,b=a?i.slice(0,u):i,f=a?i.slice(u):[];return e.jsxs("section",{ref:o,className:"pb-14 pt-10 md:pb-20 md:pt-14",children:[e.jsxs("div",{className:A("text-center transition-all duration-700 ease-out",d?"translate-y-0 opacity-100":"translate-y-4 opacity-0"),children:[e.jsx("p",{className:"mb-3 text-[10px] font-semibold uppercase tracking-[0.28em] text-foreground/50",children:"Category"}),e.jsx("h2",{className:"font-serif text-3xl font-normal tracking-tight text-foreground md:text-5xl",children:x}),c!==void 0&&c>0&&e.jsxs("p",{className:"mt-2 text-[11px] uppercase tracking-[0.2em] text-foreground/50",children:[c," ",c===1?"Honoree":"Honorees"]}),t&&t.trim()!==""&&e.jsx("p",{className:"mx-auto mt-4 max-w-2xl text-sm leading-relaxed text-foreground/70 md:text-base",children:t}),e.jsx("p",{className:"mt-3 text-[11px] italic tracking-wide text-foreground/50",children:"Listed in alphabetical order"})]}),e.jsxs("div",{className:"mx-auto mt-10 grid max-w-3xl grid-cols-1 gap-x-5 gap-y-10 sm:grid-cols-2 md:mt-12 md:gap-x-6 md:gap-y-12 lg:grid-cols-3",children:[b,a&&e.jsx("div",{className:"col-span-full my-4 flex justify-center",children:e.jsx(I,{slot:"power_list_banner",className:"w-full max-w-[728px]",hideIfVacant:!0})}),f]})]})},Q=({excludeSlug:x})=>{const[m,c]=n.useState([]),t=n.useRef(null),o=n.useRef(!1);if(n.useEffect(()=>{let r=!0;return(async()=>{const{data:i}=await L.from("lists").select("slug, title, subtitle, cover_image_url").eq("published",!0).neq("slug",x).order("created_at",{ascending:!1}).limit(12);r&&i&&c(i)})(),()=>{r=!1}},[x]),n.useEffect(()=>{const r=t.current;if(!r||m.length<2)return;let i,u=performance.now();const a=35,b=h=>{const N=(h-u)/1e3;if(u=h,!o.current){const j=r.scrollWidth/2;let w=r.scrollLeft+a*N;w>=j&&(w-=j),r.scrollLeft=w}i=requestAnimationFrame(b)};i=requestAnimationFrame(b);const f=()=>o.current=!0,p=()=>o.current=!1;return r.addEventListener("mouseenter",f),r.addEventListener("mouseleave",p),r.addEventListener("touchstart",f,{passive:!0}),r.addEventListener("touchend",p,{passive:!0}),()=>{cancelAnimationFrame(i),r.removeEventListener("mouseenter",f),r.removeEventListener("mouseleave",p),r.removeEventListener("touchstart",f),r.removeEventListener("touchend",p)}},[m.length]),m.length===0)return null;const d=[...m,...m];return e.jsxs(R.section,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-80px"},transition:{duration:.7,ease:[.22,1,.36,1]}
2,className:"border-t border-foreground/15 py-16 md:py-20",children:[e.jsxs("div",{className:"mb-10 flex flex-col items-center text-center md:mb-12",children:[e.jsx("p",{className:"text-[11px] font-semibold uppercase tracking-[0.24em] text-foreground/55",children:"Explore more"}),e.jsx("h2",{className:"mt-3 font-serif text-3xl font-normal tracking-tight text-foreground md:text-4xl lg:text-5xl",children:"Other editorial lists"}),e.jsx("div",{className:"mt-5 h-px w-16 bg-foreground/30"})]}),e.jsxs("div",{className:"relative",children:[e.jsx("div",{className:"pointer-events-none absolute inset-y-0 left-0 z-10 w-16 bg-gradient-to-r from-[#f6f1e8] to-transparent md:w-32"}),e.jsx("div",{className:"pointer-events-none absolute inset-y-0 right-0 z-10 w-16 bg-gradient-to-l from-[#f6f1e8] to-transparent md:w-32"}),e.jsx("div",{ref:t,className:"flex gap-5 overflow-x-auto px-4 pb-4 scrollbar-hide scroll-smooth md:gap-7 md:px-10",children:d.map((r,i)=>e.jsx(E,{to:`/lists/${r.slug}`,className:"group relative shrink-0 w-[260px] sm:w-[300px] md:w-[340px]",children:e.jsxs("div",{className:"relative aspect-[4/5] overflow-hidden rounded-sm bg-muted shadow-sm transition-shadow duration-500 group-hover:shadow-2xl",children:[r.cover_image_url?e.jsx(H,{src:r.cover_image_url,alt:r.title,width:680,height:850,loading:"lazy",className:"h-full w-full object-cover transition-transform duration-[1400ms] ease-out group-hover:scale-110"}):e.jsx("div",{className:"flex h-full w-full items-center justify-center bg-foreground
2/5",children:e.jsx("span",{className:"font-serif text-7xl text-foreground/20",children:r.title.charAt(0)})}),e.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/85 via-black/30 to-transparent opacity-90 transition-opacity duration-500 group-hover:opacity-100"}),e.jsxs("div",{className:"absolute inset-x-0 bottom-0 p-5 md:p-6",children:[e.jsx("h3",{className:"font-serif text-lg leading-tight text-white transition-transform duration-500 group-hover:-translate-y-1 md:text-xl",children:r.title}),r.subtitle&&e.jsx("p",{className:"mt-2 line-clamp-2 text-xs leading-relaxed text-white/75 opacity-0 transition-all duration-500 group-hover:opacity-100 md:text-sm",children:r.subtitle}),e.jsxs("div",{className:"mt-3 flex items-center gap-2 text-[10px] font-semibold uppercase tracking-[0.2em] text-white/90",children:[e.jsx("span",{className:"h-px w-6 bg-white/70 transition-all duration-500 group-hover:w-12"}),"View list",e.jsx(M,{className:"h-3.5 w-3.5 transition-transform duration-500 group-hover:translate-x-0.5 group-hover:-translate-y-0.5"})]})]})]})},`${r.slug}-${i}`))})]})]})},X=n.lazy(()=>F(()=>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]))),me=()=>{const{user:x,isAdmin:m}=P(),{listSlug:c}=B(),[t,o]=n.useState(null),[d,r]=n.useState([]),[i,u]=n.useState(!0),[a,b]=n.useState("all"),[f,p]=n.useState(!1);n.useEffect(()=>{if(!c)return;let s=!0;return(async()=>{u(!0);const{data:l}=await L.from("lists").select("id, slug, title, subtitle, description, cover_image_url, cover_credit, intro_link_url, intro_link_label, categories").eq("slug",c).eq("published",!0).maybeSingle();if(!s)return;if(!l){o(null),u(!1);return}const g=Array.isArray(l.categories)?l.categories:[];o({...l,categories:g});const{data:y}=await L.from("list_entries").select("id, slug, name, role_title, organization, image_url, byline_text, category_slug, display_order").eq("list_id",l.id).eq("is_published",!0).order("name",{ascending:!0});s&&(r(y??[]),u(!1))})(),()=>{s=!1}},[c]),n.useEffect(()=>{const s=()=>p(window.scrollY>800);return window.addEventListener("scroll",s,{passive:!0}),()=>window.removeEventListener("scroll",s)},[]);const h=n.useMemo(()=>a==="all"?d:d.filter(s=>s.category_slug===a),[d,a]),N=n.useMemo(()=>{if(!t)return[];if(a!=="all"){const s=t.categories.find(l=>l.slug===a);return[{slug:a,name:(s==null?void 0:s.name)??a,description:(s==null?void 0:s.description)??null,items:h}]}return t.categories.length===0?[{slug:"all",name:"Honorees",description:null,items:h}]:t.categories.slice().sort((s,l)=>(s.order??0)-(l.order??0)).map(s=>({slug:s.slug,name:s.name,description:s.description??null,items:h.filter(l=>l.category_slug===s.slug)})).filter(s=>s.items.length>0)},[t,h,a]);if(i)return e.jsx(T,{});if(!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:"List not found"}),e.jsx(E,{to:"/",className:"mt-4 text-accent underline",children:"Go home"})]});const j=J(),w=`${j}/lists/${t.slug}`,_=W(t.cover_image_url,j),v={"@context":"https://schema.org","@type":"ItemList",name:t.title,description:t.description??void 0,numberOfItems:d.length,itemListElement:d.map((s,l)=>({"@type":"ListItem",position:l+1,url:`${j}/lists/${t.slug}/${s.slug}`,name:s.name}))};return e.jsxs(e.Fragment,{children:[e.jsxs(q,{children:[e.jsx("title",{children:`${t.title} | AIM`}),t.description&&e.jsx("meta",{name:"description",content:t.description.replace(/<[^>]+>/g,"").slice(0,160)}),e.jsx("link",{rel:"canonical",href:w}),e.jsx("meta",{property:"og:title",content:t.title}),t.description&&e.jsx("meta",{property:"og:description",content:t.description.replace(/<[^>]+>/g,"").slice(0,200)}),e.jsx("meta",{property:"og:image",content:_}),e.jsx("meta",{property:"og:type",content:"website"}),e.jsx("meta",{property:"og:url",content:w}),e.jsx("script",{type:"application/ld+json",children:JSON.stringify(v)})]}),e.jsxs("div",{className:"bg-[#f6f1e8] text-foreground",children:[e.jsx(U,{title:t.title,subtitle:t.subtitle,de
2scription:t.description,coverImageUrl:t.cover_image_url,coverCredit:t.cover_credit,introLinkUrl:t.intro_link_url,introLinkLabel:t.intro_link_label,categories:t.categories,activeCategory:a,onCategoryChange:b}),e.jsxs("div",{id:"list-content",className:"mx-auto max-w-6xl px-4 pt-10 sm:px-8 md:pt-16",children:[e.jsx("div",{className:"mx-auto mb-2 h-px max-w-xs bg-foreground/15"}),e.jsx(C,{mode:"wait",children:e.jsx(R.div,{initial:{opacity:0,y:12},animate:{opacity:1,y:0},exit:{opacity:0,y:-8},transition:{duration:.45,ease:[.22,1,.36,1]},children:N.length===0?e.jsx("div",{className:"py-24 text-center text-foreground/60",children:"No honorees in this category yet."}):N.map((s,l)=>e.jsxs("div",{children:[l>0&&e.jsx("div",{className:"mx-auto h-px max-w-xs bg-foreground/15"}),e.jsx(Y,{title:s.name,description:s.description,children:s.items.map((g,y)=>e.jsx(V,{to:`/lists/${t.slug}/${g.slug}`,name:g.name,roleTitle:g.role_title,organization:g.organization,imageUrl:g.image_url,byline:g.byline_text,index:y},g.id))})]},s.slug))},a)}),e.jsx(Q,{excludeSlug:t.slug}),e.jsxs("section",{className:"mx-auto mt-16 max-w-3xl border-t border-foreground
2/15 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(n.Suspense,{fallback:e.jsx("div",{className:"py-8 text-center text-sm text-foreground/50",children:"Loading discussion…"}),children:e.jsx(X,{listId:t.id,user:x,isAdmin:m})})})]}),e.jsxs("div",{className:"border-t border-foreground/15 py-16 text-center",children:[e.jsx("p",{className:"font-serif text-3xl text-foreground md:text-4xl",children:"Want more like this?"}),e.jsx("p",{className:"mt-3 text-sm text-foreground/70",children:"Subscribe to our newsletter for editorial highlights."}),e.jsx(E,{to:"/newsletters",className:"mt-6 inline-block rounded-full border border-foreground px-7 py-3 text-[11px] font-semibold uppercase tracking-[0.2em] text-foreground transition-colors hover:bg-foreground hover:text-background",children:"Subscribe"})]})]})]}),f&&e.jsx("button",{onClick:()=>window.scrollTo({top:0,behavior:"smooth"}),"aria-label":"Back to top",className:"fixed bottom-6 right-6 z-40 flex h-12 w-12 items-center justify-center rounded-full bg-foreground text-background shadow-lg transition-transform hover:scale-105 animate-fade-in",children:e.jsx(G,{className:"h-5 w-5"})}),e.jsx(O,{})]})};export{me 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.