1import{r,K as w,j as e,al as k,H as _,m as n,A,o as x,J as h,_ as f}from"./index-KSWbwNeY.js";import I from"./Footer-DPSMpmUX.js";import{a as E,g as L}from"./seoDefaults-DHsbBPCr.js";import"./twitter-yEUqfNJX.js";import"./linkedin-B1bA0DJP.js";import"./youtube-CwivUiPT.js";import"./facebook-DahhNxAJ.js";const C=()=>{var u;const[i,j]=r.useState([]),[b,v]=r.useState(!0),[l,y]=r.useState("All");r.useEffect(()=>{let t=!0;return(async()=>{const{data:a}=await w.from("lists").select("id, slug, title, subtitle, cover_image_url, published_at").eq("published",!0).order("published_at",{ascending:!1});t&&(j(a??[]),v(!1))})(),()=>{t=!1}},[]);const p=r.useMemo(()=>{const t=new Set;return i.forEach(a=>{a.published_at&&t.add(String(new Date(a.published_at).getFullYear()))}),["All",...Array.from(t).sort((a,o)=>Number(o)-Number(a))]},[i]),c=r.useMemo(()=>l==="All"?i:i.filter(t=>t.published_at&&String(new Date(t.published_at).getFullYear())===l),[i,l]),s=c[0],m=c.slice(1),g=L(),d=`${g}/lists`,N=E(((u=i[0])==null?void 0:u.cover_image_url)??null,g);return b?e.jsx(k,{}):e.jsxs(e.Fragment,{children:[e.jsxs(_,{children:[e.jsx("title",{children:"AIM Lists | AIM"}),e.jsx("meta",{name:"description",content:"Each year AIM ranks on a variety of categories ranging from top ai leader, influential people in tech, data and artificial intelligence."}),e.jsx("link",{rel:"canonical",href:d}),e.jsx("meta",{property:"og:title",content:"AIM List | AIM"}),e.jsx("meta",{property:"og:description",content:"Each year AIM ranks on a variety of categories ranging from top ai leader, influential people in tech, data and artificial intelligence"}),e.jsx("meta",{property:"og:image",content:N}),e.jsx("meta",{property:"og:type",content:"website"}),e.jsx("meta",{property:"og:url",content:d}),e.jsx("script",{type:"application/ld+json",children:JSON.stringify({"@context":"https://schema.org","@type":"CollectionPage",name:"AIM Lists",description:"AIM annual rankings â top AI leaders, influential people in tech, data and artificial intelligence.",url:d,isPartOf:{"@type":"WebSite",name:"AIM",url:"https://analyticsindiamag.com"},mainEntity:{"@type":"ItemList",itemListElement:i.slice(0,50).map((t,a)=>({"@type":"ListItem",position:a+1,name:t.title,url:`https://analyticsindiamag.com/lists/${t.slug}`,image:t.cover_image_url||void 0}))}})})]}),e.jsxs("div",{className:"relative overflow-hidden bg-[#f6f1e8] text-foreground",children:[e.jsxs("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-0",children:[e.jsx("div",{className:"absolute -left-40 -top-40 h-[38rem] w-[38rem] rounded-full bg-primary/10 blur-[140px]"}),e.jsx("div",{className:"absolute -right-40 top-[30rem] h-[32rem] w-[32rem] rounded-full bg-amber-500/10 blur-[140px]"})]}),e.jsxs("section",{className:"relative mx-auto max-w-[1400px] px-4 pb-8 pt-16 sm:px-6 md:pt-24 lg:px-10",children:[e.jsxs(n.div,{initial:{opacity:0,y:18},animate:{opacity:1,y:0},transition:{duration:.7,ease:[.22,1,.36,1]},children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("span",{className:"h-px w-10 bg-foreground
1/30"}),e.jsx("p",{className:"text-[11px] uppercase tracking-[0.28em] text-foreground/60",children:"Power Lists"})]}),e.jsx("h1",{className:"mt-6 max-w-4xl font-serif text-5xl leading-[1.02] tracking-tight md:text-7xl",children:"AIM Lists"}),e.jsx("p",{className:"mt-6 max-w-2xl text-base leading-relaxed text-foreground/70 md:text-lg",children:"Definitive annual rankings â the leaders, innovators and institutions shaping artificial intelligence in India and across the world."}),e.jsxs("div",{className:"mt-8 flex flex-wrap items-center gap-x-8 gap-y-3 text-[12px] uppercase tracking-[0.18em] text-foreground/55",children:[e.jsxs("span",{children:[i.length," Editions"]}),e.jsx("span",{className:"hidden h-3 w-px bg-foreground/20 sm:block"}),e.jsx("span",{children:"Curated by the AIM newsroom"})]})]}),p.length>2&&e.jsx(n.div,{initial:{opacity:0,y:12},animate:{opacity:1,y:0},transition:{duration:.6,delay:.15,ease:[.22,1,.36,1]},className:"mt-10 flex flex-wrap gap-2",children:p.map(t=>{const a=t===l;return e.jsxs("button",{onClick:()=>y(t),className:`relative rounded-full px-4 py-1.5 text-[12px] uppercase tracking-[0.16em] transition-colors duration-300 ${a?"text-background":"text-foreground/65 hover:text-foreground"}`,children:[a&&e.jsx(n.span,{layoutId:"lists-year-pill",transition:{type:"spring",stiffness:380,damping:32},className:"absolute inset-0 rounded-full bg-foreground"}),e.jsx("span",{className:"relative",children:t})]},t)})}
1),e.jsx("div",{className:"mt-10 h-px w-full bg-foreground/15"})]}),e.jsx("section",{className:"relative mx-auto max-w-[1400px] px-4 pb-24 sm:px-6 lg:px-10",children:c.length===0?e.jsx("div",{className:"py-24 text-center text-foreground/60",children:"No lists published yet."}):e.jsx(A,{mode:"wait",children:e.jsxs(n.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.35},children:[s&&e.jsx(n.div,{initial:{opacity:0,y:24},animate:{opacity:1,y:0},transition:{duration:.7,ease:[.22,1,.36,1]},className:"pt-12",children:e.jsxs(x,{to:`/lists/${s.slug}`,className:"group grid grid-cols-1 items-center gap-8 lg:grid-cols-2 lg:gap-14",children:[e.jsxs("div",{className:"relative overflow-hidden rounded-sm bg-muted",children:[e.jsx("div",{className:"aspect-[16/10] w-full",children:s.cover_image_url?e.jsx(h,{src:s.cover_image_url,alt:s.title,width:1400,height:875,loading:"eager",className:"h-full w-full object-cover object-center transition-transform duration-[1400ms] ease-out group-hover:scale-[1.05]"}):e.jsx("div",{className:"flex h-full w-full items-center justify-center",children:e.jsx("span",{className:"font-serif text-8xl text-foreground/20",children:s.title.charAt(0)})})}
1),e.jsx("span",{className:"absolute left-4 top-4 rounded-full bg-background/85 px-3 py-1 text-[10px] uppercase tracking-[0.2em] text-foreground/75 backdrop-blur",children:"Latest Edition"})]}),e.jsxs("div",{children:[s.published_at&&e.jsxs("p",{className:"text-[11px] uppercase tracking-[0.22em] text-foreground/55",children:[new Date(s.published_at).getFullYear()," Edition"]}),e.jsx("h2",{className:"mt-4 font-serif text-3xl leading-[1.12] tracking-tight md:text-5xl",children:s.title}),s.subtitle&&e.jsx("p",{className:"mt-5 max-w-xl text-base leading-relaxed text-foreground/70",children:s.subtitle}),e.jsxs("span",{className:"mt-7 inline-flex items-center gap-2 text-[12px] uppercase tracking-[0.2em] text-foreground/80",children:["Explore the list",e.jsx(f,{className:"h-4 w-4 transition-transform duration-300 group-hover:translate-x-1 group-hover:-translate-y-1"})]}),e.jsx("span",{className:"mt-3 block h-px w-24 origin-left scale-x-100 bg-foreground/30 transition-transform duration-500 group-hover:scale-x-[2]"})]})]})}),m.length>
10&&e.jsx("div",{className:"mt-16 h-px w-full bg-foreground/10"}),e.jsx("div",{className:"mt-14 grid grid-cols-1 gap-x-8 gap-y-14 sm:grid-cols-2 lg:grid-cols-3",children:m.map((t,a)=>{const o=t.published_at?new Date(t.published_at).getFullYear():null;return e.jsx(n.div,{initial:{opacity:0,y:26},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-60px"},transition:{duration:.6,delay:a%3*.07,ease:[.22,1,.36,1]},children:e.jsxs(x,{to:`/lists/${t.slug}`,className:"group block",children:[e.jsxs("div",{className:"relative aspect-[16/10] overflow-hidden rounded-sm bg-muted",children:[t.cover_image_url?e.jsx(h,{src:t.cover_image_url,alt:t.title,width:960,height:600,loading:a<3?"eager":"lazy",className:"h-full w-full object-cover object-top transition-transform duration-[1200ms] ease-out group-hover:scale-[1.04]"}):e.jsx("div",{className:"flex h-full w-full items-center justify-center",children:e.jsx("span",{className:"font-serif text-7xl text-foreground/20",children:t.title.charAt(0)})}),e.jsx("div",{className:"pointer-events-none absolute inset-0 bg-gradient-to-t from-foreground
1/45 via-foreground/0 to-transparent opacity-0 transition-opacity duration-500 group-hover:opacity-100"}),e.jsxs("span",{className:"pointer-events-none absolute bottom-4 left-4 inline-flex translate-y-2 items-center gap-1.5 text-[11px] uppercase tracking-[0.18em] text-background opacity-0 transition-all duration-500 group-hover:translate-y-0 group-hover:opacity-100",children:["View list ",e.jsx(f,{className:"h-3.5 w-3.5"})]})]}),e.jsxs("div",{className:"mt-5",children:[o&&e.jsxs("p",{className:"text-[11px] uppercase tracking-[0.22em] text-foreground/55",children:[o," Edition"]}),e.jsx("h2",{className:"mt-2 font-serif text-xl leading-snug tracking-tight",children:e.jsx("span",{className:"bg-gradient-to-r from-foreground to-foreground bg-[length:0%_1px] bg-left-bottom bg-no-repeat transition-[background-size] duration-500 group-hover:bg-[length:100%_1px]",children:t.title})}),t.subtitle&&e.jsx("p",{className:"mt-2 text-sm leading-relaxed text-foreground/65 line-clamp-3",children:t.subtitle})]})]})},t.id)})})]},l)})})]}),e.jsx(I,{})]})};export{C 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.