1import{r as e,j as t,L as s}from"./vendor-react-BH6F5oQJ.js";import{u as n,r as a,H as l,g as i,I as r,b as d,d as o,A as m,i as c}from"./index-C_oSc_qP.js";import"./vendor-ui-B4WC06Sp.js";import"./vendor-icons-CaI5__By.js";import"./vendor-query-CC4VRGyP.js";import"./vendor-supabase-COwyE4EW.js";const x="https://delphigrc.org",u=()=>{const{articles:u,loading:p}=n({mode:"light"}),h=e.useMemo(()=>u.filter(e=>"published"===e.status&&"announcement"===e.publication_type),[u]),j=e.useMemo(()=>({"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:[{"@type":"ListItem",position:1,name:"Home",item:x},{"@type":"ListItem",position:2,name:"Announcements",item:`${x}/announcements`}]}),[]),f=e.useMemo(()=>({"@context":"https://schema.org","@type":"ItemList",name:"Delphi Global Research Announcements",itemListElement:h.slice(0,10).map((e,t)=>({"@type":"ListItem",position:t+1,url:`${x}${a(e.slug||e.id,"announcement")}`,name:e.title}))}),[h]);return t.jsxs("div",{className:"flex min-h-screen flex-col",children:[t.jsxs(l,{children:[t.jsx("title",{children:"Announcements | Delphi Global Research Center"}),t.jsx("meta",{name:"description",content:"Official announcements and updates from Delphi Global Research Center."}),t.jsx("meta",{property:"og:title",content:"Announcements | Delphi Global Research Center"}),t.jsx("meta",{property:"og:description",content:"Official announcements and updates from Delphi Global Research Center."}),t.jsx("meta",{property:"og:type",content:"website"}),t.jsx("meta",{property:"og:url",content:`${x}/announcements`}),t.jsx("meta",{property:"og:site_name",content:"Delphi Global Research Center"}),t.jsx("meta",{name:"twitter:card",content:"summary_large_image"}),t.jsx("meta",{name:"twitter:title",content:"Announcements | Delphi Global Research Center"}),t.jsx("meta",{name:"twitter:description",content:"Official announcements and updates from Delphi Global Research Center."}),t.jsx("link",{rel:"canonical",href:`${x}/announcements`}),t.jsx("script",{type:"application/ld+json",children:JSON.stringify(j)}),f.itemListElement.length>0&&t.jsx("script",{type:"application/ld+json",children:JSON.stringify(f)})]}),t.jsx("main",{className:"flex-1 py-12",children:t.jsxs("div",{className:"container",children:[t.jsxs("div",{className:"mb-12",children:[t.jsx("h1",{className:"mb-4 font-heading text-4xl font-bold text-foreground md:text-5xl",children:"Announcements"}),t.jsx("p",{className:"text-lg text-muted-foreground",children:"Official announcements and updates from Delphi Global Research Center."})]}),p&&t.jsx("div",{className:"flex flex-col gap-4",children:[1,2,3].map(e=>t.jsx("div",{className:"rounded-lg border border-border bg-card",children:t.jsxs("div",{className:"flex flex-col md:flex-row",children:[t.jsx("div",{className:"md:w-64 flex-shrink-0 h-48 bg-muted animate-pulse rounded-t-lg md:rounded-l-lg md:rounded-tr-none"}),t.jsxs("div",{className:"flex-1 p-6 space-y-4",children:[t.jsx("div",{className:"h-4 w-20 bg-muted animate-pulse rounded"}),t.jsx("div",{className:"h-8 bg-muted animate-pulse rounded"}),t.jsx("div",{className:"h-4 bg-muted animate-pulse rounded w-3/4"}),t.jsx("div",{className:"h-4 bg-muted animate-pulse rounded w-1/2"})]})]})},e))}),!p&&t.jsx("div",{className:"flex flex-col gap-4",children:h.map((e,n)=>{var l;const x=a(e.slug||e.id,"announcement");return t.jsx("div",{className:"animate-fade-up",style:{animationDelay:.05*n+"s"},children:t.jsx("div",{className:"rounded-lg border border-border bg-card hover:shadow-lg transition-shadow",children:t.jsxs("div",{className:"flex flex-col md:flex-row",children:[e.featured_image_url&&t.jsx(s,{to:x,className:"md:w-64 flex-shrink-0",children:t.jsx("img",{sizes:"(max-width: 768px) 100vw, 256px",srcSet:d(e.featured_image_url,o.listThumb),src:i(e.featured_image_url,{width:r.listThumb}),alt:e.title,loading:"lazy",decoding:"async",width:512,height:288,className:"w-full h-48 md:h-full object-cover rounded-t-lg md:rounded-l-lg md:rounded-tr-none"})}),t.jsxs("div",{className:"flex-1 p-6 flex flex-col justify-between",children:[t.jsxs("div",{children:[t.jsx(s,{to:x,children:t.jsx("h3",{className:"text-2xl font-bold mb-2 text-foreground hover:text-primary transition-colors",children:e.title})}),e.summary&&t.jsx("p",{className:"text-muted-foreground mb-4 line-clamp-2",children:e.summary})]}),t.jsxs("div",{className:"flex items-center gap-4 text-sm text-muted-foreground",children:[t.jsx(m,{articleId:e.id}),t.jsx("span",{children:"â¢"}),t.jsx(c,{date:e.published_at||e.created_at,locale:"ka-GE"}),(null==(l=e.template_settings)?void 0:l.readTime)&&t.jsxs(t.Fragment,{children:[t.jsx("span",{children:"â¢"}),t.jsx("span",{children:e.template_settings.readTime})]})]})]})]})})},e.id)})}),!p&&0===h.length&&t.jsx("div",{className:"py-12 text-center",children:t.jsx("p",{className:"text-muted-foreground",children:"No announcements found."})})]})})]})};export{u 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.