1import{r as e,j as s,L as t}from"./vendor-react-BH6F5oQJ.js";import{u as a,a as r,H as i,h as l,f as n,g as d,I as c,b as o,d as m,A as x,i as p}from"./index-dRqPaCFl.js";import"./vendor-ui-B4WC06Sp.js";import"./vendor-icons-CaI5__By.js";import"./vendor-query-CC4VRGyP.js";import"./vendor-supabase-COwyE4EW.js";const h="https://delphigrc.org",u=()=>{const{articles:u,loading:g}=a({mode:"light"}),[j,y]=e.useState("All"),f=e.useMemo(()=>u.filter(e=>"published"===e.status&&"article"===e.publication_type),[u]),b=e.useMemo(()=>"All"===j?f:f.filter(e=>{var s;return r(null==(s=e.template_settings)?void 0:s.category,j)}),[f,j]),v=e.useMemo(()=>({"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:[{"@type":"ListItem",position:1,name:"Home",item:h},{"@type":"ListItem",position:2,name:"Articles",item:`${h}/articles`}]}),[]),N=e.useMemo(()=>({"@context":"https://schema.org","@type":"ItemList",name:"Delphi Global Research Articles",itemListElement:b.slice(0,10).map((e,s)=>({"@type":"ListItem",position:s+1,url:`${h}/research/${e.slug||e.id}`,name:e.title}))}),[b]);return s.jsxs("div",{className:"flex min-h-screen flex-col",children:[s.jsxs(i,{children:[s.jsx("title",{children:"Expert Articles on Eurasian Security & Analysis | Delphi Global Research Center"}),s.jsx("meta",{name:"description",content:"Browse expert articles and analysis on Eurasian security, Russia-China relations, NATO strategy, and regional dynamics. In-depth commentary from leading scholars and researchers."}),s.jsx("meta",{name:"keywords",content:"think tank articles, Eurasian security analysis, international relations, Russia analysis, NATO commentary, regional security, expert insights, policy analysis"}),s.jsx("meta",{property:"og:type",content:"website"}),s.jsx("meta",{property:"og:title",content:"Expert Articles on Eurasian Security | Delphi Global Research Center"}),s.jsx("meta",{property:"og:description",content:"Latest articles and analysis on Eurasian security and regional dynamics from expert researchers."}),s.jsx("meta",{property:"og:url",content:`${h}/articles`}),s.jsx("meta",{property:"og:site_name",content:"Delphi Global Research Center"}),s.jsx("meta",{name:"twitter:card",content:"summary_large_image"}),s.jsx("meta",{name:"twitter:title",content:"Expert Articles | Delphi Global Research Center"}),s.jsx("meta",{name:"twitter:description",content:"Latest articles on Eurasian security and regional analysis."}),s.jsx("link",{rel:"canonical",href:`${h}/articles`}),s.jsx("link",{rel:"alternate",hrefLang:"en",href:`${h}/articles`}),s.jsx("link",{rel:"alternate",hrefLang:"x-default",href:`${h}/articles`}),s.jsx("script",{type:"application/ld+json",children:JSON.stringify(v)}),N.itemListElement.length>0&&s.jsx("script",{type:"application/ld+json",children:JSON.stringify(N)})]}),s.jsx("main",{className:"flex-1 py-12",children:s.jsxs("div",{className:"container",children:[s.jsxs("div",{className:"mb-12",children:[s.jsx("h1",{className:"mb-4 font-heading text-4xl font-bold text-foreground md:text-5xl",children:"Articles"}),s.jsx("p",{className:"text-lg text-muted-foreground",children:"Expert analysis and commentary on Eurasian security and regional dynamics."})]}),s.jsx("div",{className:"mb-8 flex flex-wrap gap-2",children:l.map(e=>s.jsx(n,{variant:j===e?"default":"outline",onClick:()=>y(e),className:"transition-all",children:e},e))}),g&&s.jsx("div",{className:"flex flex-col gap-4",children:[1,2,3].map(e=>s.jsx("div",{className:"rounded-lg border border-border bg-card",children:s.jsxs("div",{className:"flex flex-col md:flex-row",children:[s.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"}),s.jsxs("div",{className:"flex-1 p-6 space-y-4",children:[s.jsx("div",{className:"h-4 w-20 bg-muted animate-pulse rounded"}),s.jsx("div",{className:"h-8 bg-muted animate-pulse rounded"}),s.jsx("div",{className:"h-4 bg-muted animate-pulse rounded w-3/4"}),s.jsx("div",{className:"h-4 bg-muted animate-pulse rounded w-1/2"})]})]})},e))}),!g&&s.jsx("div",{className:"flex flex-col gap-4",children:b.map((e,a)=>{var r,i;return s.jsx("div",{className:"animate-fade-up",style:{animationDelay:.
105*a+"s"},children:s.jsx("div",{className:"rounded-lg border border-border bg-card hover:shadow-lg transition-shadow",children:s.jsxs("div",{className:"flex flex-col md:flex-row",children:[e.featured_image_url&&s.jsx(t,{to:`/research/${e.slug}`,className:"md:w-64 flex-shrink-0",children:s.jsx("img",{sizes:"(max-width: 768px) 100vw, 256px",srcSet:o(e.featured_image_url,m.listThumb),src:d(e.featured_image_url,{width:c.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"})}),s.jsxs("div",{className:"flex-1 p-6 flex flex-col justify-between",children:[s.jsxs("div",{children:[s.jsx("div",{className:"mb-2",children:s.jsx("span",{className:"inline-block px-3 py-1 text-xs font-medium rounded-full bg-primary/10 text-primary",children:(null==(r=e.template_settings)?void 0:r.category)||"General"})}),s.jsx(t,{to:`/research/${e.slug}`,children:s.jsx("h3",{className:"text-2xl font-bold mb-2 text-foreground hover:text-primary transition-colors",children:e.title})}),e.summary&&s.jsx("p",{className:"text-muted-foreground mb-4 line-clamp-2",children:e.summary})]}),s.jsxs("div",{className:"flex items-center gap-4 text-sm text-muted-foreground",children:[s.jsx(x,{articleId:e.id}),s.jsx("span",{children:"â¢"}),s.jsx(p,{date:e.published_at||e.created_at,locale:"ka-GE"}),(null==(i=e.template_settings)?void 0:i.readTime)&&s.jsxs(s.Fragment,{children:[s.jsx("span",{children:"â¢"}),s.jsx("span",{children:e.template_settings.readTime})]})]})]})]})})},e.id)})}),!g&&0===b.length&&s.jsx("div",{className:"py-12 text-center",children:s.jsx("p",{className:"text-muted-foreground",children:"No articles found in this category."})})]})})]})};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.