PageSourceSearch

https://analyticsindiamag.com/assets/LiveTopicsIndex-BkztfbpM.js

js analyticsindiamag.com collected 2026-09-24 08:27:49 UTC 5,520 bytes, 1 lines download raw bytes

1import{r as d,j as e,H as x,ah as u,m as h,o as f,J as g,s as v}from"./index-KSWbwNeY.js";import j from"./Footer-DPSMpmUX.js";import{g as b}from"./seoDefaults-DHsbBPCr.js";import{T as N}from"./TrendingSkeleton-DiqKpoQk.js";import{R as y}from"./responsive-heading-DW57rgMc.js";import{f as w}from"./formatDistanceToNow-C8SfwPCw.js";import"./twitter-yEUqfNJX.js";import"./linkedin-B1bA0DJP.js";import"./youtube-CwivUiPT.js";import"./facebook-DahhNxAJ.js";import"./constructNow-CAQUuh76.js";import"./en-US-BOoww7nS.js";import"./endOfMonth-bNOLQZ7P.js";import"./endOfDay-CTvcx9iE.js";const k=s=>s.replace(/<[^>]*>/g,""),p=({topic:s,index:r})=>{var i,n;const l=((n=(i=s.live_updates)==null?void 0:i[0])==null?void 0:n.count)??0,c=s.description?k(s.description):null;return e.jsx(h.article,{initial:{opacity:0,y:16},animate:{opacity:1,y:0},transition:{duration:.4,delay:r*.06},className:"border-b pb-6",style:{borderColor:"#e5e5e5"},children:e.jsxs("div",{className:"flex gap-6",children:[e.jsx("div",{className:"flex-shrink-0",children:e.jsx("span",{className:"font-serif text-5xl font-bold",style:{color:"#ddd"},children:(r+1).toString().padStart(2,"0")})}),e.jsx("div",{className:"flex-1",children:e.jsx(f,{to:`/live/${s.slug}`,className:"group",children:e.jsxs("div",{className:"flex gap-6",children:[e.jsxs("div",{className:"flex-1",children:[e.jsx("div",{className:"flex items-center gap-1.5 mb-2",children:s.is_active?e.jsxs(e.Fragment,{children:[e.jsxs("span",{className:"relative flex h-2 w-2",children:[e.jsx("span",{className:"animate-ping absolute inline-flex h-full w-full rounded-full bg-destructive opacity-75"}),e.jsx("span",{className:"relative inline-flex rounded-full h-2 w-2 bg-destructive"})]}),e.jsx("span",{className:"text-[10px] font-black tracking-widest uppercase text-destructive",children:"Live"})]}):e.jsx("span",{className:"text-[10px] font-semibold tracking-wider uppercase text-muted-foreground",children:"Ended"})}),e.jsx("h2",{className:"font-serif font-bold text-2xl mb-2 group-hover:underline leading-tight",children:s.title}),c&&e.jsx("p",{className:"text-sm text-muted-foreground mb-3 line-clamp-2 leading-relaxed",children:c}),e.jsxs("div",{className:"flex items-center gap-3 text-xs",style:{color:"#666"},children:[e.jsxs("span",{children:["Updated ",w(new Date(s.updated_at),{addSuffix:!0})]}),l>0&&e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"•"}),e.jsxs("span",{children:[l," ",l===1?"update":"updates"]})]})]})]}),e.jsx("div",{className:"flex-shrink-0 w-32 h-32 overflow-hidden",children:e.jsx(g,{src:s.featured_image_url,alt:s.title,width:300,height:300,className:"w-full h-full object-cover group-hover:opacity-90 transition-opacity"})})]})})})]})},s.id)},P=()=>{const[s,r]=d.useState([]),[l,c]=d.useState(!0);if(d.useEffect(()=>{(async()=>{const{data:a}=await v.from("live_topics").select("*, live_updates(count)").order("updated_at",{ascending:!1});r(a||[]),c(!1)})()},[]),l)return e.jsx(N,{});const i=b(),n=s.filter(t=>t.is_active),m=s.filter(t=>!t.is_active),o=n.length>0;return e.jsxs(e.Fragment,{children:[e.jsxs(x,{children:[e.jsx("title",{children:"Live Coverage | AIM"}),e.jsx("meta",{name:"description",content:"Follow real-time and past coverage of major AI and tech events, summits, and breaking developments."}),e.jsx("meta",{property:"og:title",content:"Live Coverage | AIM"}),e.jsx("meta",{property:"og:description",content:"Follow real-time and past coverage of major AI and tech events."}),e.jsx("meta",{property:"og:type",content:"website"}),e.jsx("link",{rel:"canonical",href:`${i}/live`}),e.jsx("script",{type:"application/ld+json",children:JSON.stringify({"@context":"https://schema.org","@type":"CollectionPage",name:"Live Coverage",description:"Real-time and past coverage of AI and tech events, summits, and breaking developments.",url:`${i}/live`,isPartOf:{"@type":"WebSite",name:"AIM",url:"https://analyticsindiamag.com"},mainEntity:{"@type":"ItemList",itemListElement:s.slice(0,50).map((t,a)=>({"@type":"ListItem",position:a+1,name:t.title,url:`${i}/live/${t.slug}`}))}})})]}),e.jsx(u,{}),e.jsx("div",{className:"min-h-screen bg-background text-foreground",children:e.jsxs("div",{className:"max-w-[1400px] mx-auto px-4 py-8",children:[e.jsxs("div",{className:"border-b-2 border-black pb-4 mb-8",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[o&&e.jsxs("span",{className:"relative flex h-5 w-5 flex-shrink-0",children:[e.jsx("span",{className:"animate-ping absolute inline-flex h-full w-full rounded-full bg-destructive opacity-75"}),e.jsx("span",{className:"relative inline-flex rounded-full h-5 w-5 bg-destructive"})]}),e.jsx(y,{size:"md",children:"Live Coverage"})]}),e.jsx("p",{className:"text-sm text-muted-foreground mt-2",children:"Real-time and past coverage of major AI events and summits"})]}),s.length===0?e.jsx("p",{className:"text-center text-muted-foreground py-20",children:"No live topics yet."}):e.jsxs(e.Fragment,{children:[o&&e.jsxs("section",{className:"mb-12",children:[e.jsx("h2",{className:"text-xs font-black tracking-widest uppercase text-destructive mb-6",children:"Currently Live"}),e.jsx("div",{className:"space-y-8",children:n.map((t,a)=>e.jsx(p,{topic:t,index:a},t.id))})]}),m.length>0&&e.jsxs("section",{children:[e.jsx("h2",{className:"text-xs font-black tracking-widest uppercase text-muted-foreground mb-6",children:"Past Coverage"}),e.jsx("div",{className:"space-y-8",children:m.map((t,a)=>e.jsx(p,{topic:t,index:o?n.length+a:a},t.id))})]})]})]})}),e.jsx(j,{})]})};export{P 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.