1import{r as l,z as N,s as v,j as e,H as w,ah as _,m as x,N as R,F as n,B as o,o as m,d as h}from"./index-KSWbwNeY.js";import{C as p}from"./card-CwL_ed79.js";import I from"./Footer-DPSMpmUX.js";import{p as A}from"./purify.es--yiYCWnk.js";import{L as d}from"./lock-DNHSxtLD.js";import{f as S}from"./format-hhvI2L0z.js";import{p as k}from"./parseISO-BHcD4hpi.js";import"./twitter-yEUqfNJX.js";import"./linkedin-B1bA0DJP.js";import"./youtube-CwivUiPT.js";import"./facebook-DahhNxAJ.js";import"./en-US-BOoww7nS.js";const T=()=>{const[r,u]=l.useState([]),[g,f]=l.useState(!0),{status:i}=N(),a=i==null?void 0:i.hasSubscription;l.useEffect(()=>{j()},[]);const j=async()=>{try{const{data:s,error:t}=await v.from("research_reports").select("id, title, slug, description, cover_image_url, published_at, is_free").eq("is_published",!0).order("published_at",{ascending:!1});if(t)throw t;u(s||[])}catch(s){console.error("Error fetching research reports:",s)}finally{f(!1)}},y=s=>{try{return S(k(s),"MMMM dd, yyyy")}catch{return s}},c="https://analyticsindiamag.com/research",b={"@context":"https://schema.org","@type":"CollectionPage",name:"Research Reports",description:"In-depth research and analysis on AI, data science, and emerging technologies from AIM.",url:c,isPartOf:{"@type":"WebSite",name:"AIM",url:"https://analyticsindiamag.com"},mainEntity:{"@type":"ItemList",itemListElement:r.slice(0,50).map((s,t)=>({"@type":"ListItem",position:t+1,name:s.title,url:`https://analyticsindiamag.com/research/${s.slug}`,image:s.cover_image_url||void 0}))}};return e.jsxs(e.Fragment,{children:[e.jsxs(w,{children:[e.jsx("title",{children:"Research Reports | AIM"}),e.jsx("meta",{name:"description",content:"Access exclusive research reports on AI, data science, and emerging technologies. In-depth analysis available to subscribers."}),e.jsx("link",{rel:"canonical",href:c}),e.jsx("meta",{property:"og:title",content:"Research Reports | AIM"}),e.jsx("meta",{property:"og:description",content:"In-depth research and analysis on AI, data science, and emerging technologies."}),e.jsx("meta",{property:"og:type",content:"website"}),e.jsx("meta",{property:"og:url",content:c}),e.jsx("script",{type:"application/ld+json",children:JSON.stringify(b)})]}),e.jsx(_,{}),e.jsxs("main",{className:"min-h-screen bg-background",children:[e.jsx("section",{className:"relative bg-gradient-to-br from-primary/5 via-background to-accent/5 py-16 md:py-24",children:e.jsx("div",{className:"container mx-auto px-4 text-center",children:e.jsxs(x.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.6},className:"max-w-3xl mx-auto",children:[e.jsxs(R,{variant:"outline",className:"mb-4",children:[e.jsx(n,{className:"h-3 w-3 mr-1"}),"Subscriber Exclusive"]}),e.jsx("h1",{className:"text-4xl md:text-5xl lg:text-6xl mb-4 font-sans font-light",children:"Research Reports"}),e.jsx("p",{className:"text-lg text-muted-foreground mb-8",children:"In-depth research and analysis on AI, data science, and emerging technologies â curated exclusively for our subscribers."}),!a&&e.jsxs("div",{className:"flex flex-col sm:flex-row items-center justify-center gap-4",children:[e.jsx(o,{size:"lg",asChild:!0,children:e.jsxs(m,{to:"/subscribe",children:["Subscribe for Full Access",e.jsx(h,{className:"ml-2 h-4 w-4"})]})}),e.jsxs("p",{className:"text-sm text-muted-foreground flex items-center gap-1",children:[e.jsx(d,{className:"h-3 w-3"}),"Research reports require a subscription"]})]})]})})}),e.jsx("section",{className:"container mx-auto px-4 py-12 md:py-16",children:g?e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:[...Array(6)].map((s,t)=>e.jsxs(p,{className:"overflow-hidden animate-pulse",children:[e.jsx("div",{className:"aspect-[4/3] bg-muted"}),e.jsxs("div",{className:"p-5 space-y-3",children:[e.jsx("div",{className:"h-4 bg-muted rounded w-1/3"}),e.jsx("div",{className:"h-5 bg-muted rounded w-3/4"}),e.jsx("div",{className:"h-10 bg-muted rounded"})]})]},t))}):r.length===0?e.jsxs("div",{className:"text-center py-16",children:[e.jsx(n,{className:"h-16 w-16 mx-auto text-muted-foreground
1/50 mb-4"}),e.jsx("h2",{className:"text-xl font-semibold mb-2",children:"No Research Reports Yet"}),e.jsx("p",{className:"text-muted-foreground",children:"Check back soon for our latest research."})]}):e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:r.map((s,t)=>e.jsx(x.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.4,delay:t*.05},children:e.jsxs(p,{className:"overflow-hidden group h-full flex flex-col",children:[s.cover_image_url&&e.jsxs("div",{className:"relative aspect-[4/3] bg-muted overflow-hidden",children:[e.jsx("img",{src:s.cover_image_url,alt:s.title,className:"w-full h-full object-cover transition-transform duration-500 group-hover:scale-[1.03]"}),s.is_free&&e.jsx("div",{className:"absolute top-2 left-2",children:e.jsx("span",{className:"inline-flex items-center px-2 py-0.5 rounded-full text-[11px] font-medium bg-emerald-500 text-white shadow-sm",children:"Free"})}),!a&&!s.is_free&&e.jsx("div",{className:"absolute inset-0 bg-black/40 flex items-center justify-center opacity-0 group-hover:opacity-100 transition-opacity duration-300",children:e.jsx(d,{className:"h-8 w-8 text-white"})})]}),e.jsxs("div",{className:"p-5 flex-1 flex flex-col",children:[e.jsx("p",{className:"text-xs text-muted-foreground mb-2",children:y(s.published_at)}),e.jsx("h3",{className:"text-lg font-semibold mb-2 line-clamp-2",children:s.title}),s.description&&e.jsx("div",{className:"text-sm text-muted-foreground line-clamp-3 mb-4 flex-1 prose prose-sm",dangerouslySetInnerHTML:{__html:A.sanitize(s.description)}}),e.jsx(o,{size:"sm",className:"w-full mt-auto",variant:a||s.is_free?"default":"secondary",asChild:!0,children:e.jsx(m,{to:`/research/${s.slug}`,children:a||s.is_free?e.jsxs(e.Fragment,{children:[e.jsx(n,{className:"mr-2 h-3 w-3"}),"View Report"]}):e.jsxs(e.Fragment,{children:[e.jsx(d,{className:"mr-2 h-3 w-3"}),"View Report"]})})})]})]})},s.id))})}),!a&&r.length>0&&e.jsx("section",{className:"bg-gradient-to-br from-primary/10 via-primary/5 to-transparent py-12 md:py-16",children:e.jsxs("div",{className:"container mx-auto px-4 text-center",children:[e.jsx("h2",{className:"text-2xl mb-4 font-sans font-light md:text-5xl",children:"Unlock All Research Reports"}),e.jsx("p",{className:"text-muted-foreground mb-6 max-w-2xl mx-auto",children:"Get unlimited access to our complete library of research reports, plus exclusive articles and print editions."}),e.jsx(o,{size:"lg",asChild:!0,children:e.jsxs(m,{to:"/subscribe",children:["Subscribe Now",e.jsx(h,{className:"ml-2 h-4 w-4"})]})})]})})]}),e.jsx(I,{})]})};export{T 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.