1import{r as e,j as s,L as t}from"./vendor-react-BH6F5oQJ.js";import{u as i,a as n,r as a,H as r,h as l,f as o,g as d,I as m,b as c,d as p,A as x,i as u}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",g=()=>{const{articles:g,loading:j}=i({mode:"light"}),[f,y]=e.useState("All"),b=e.useMemo(()=>g.filter(e=>"published"===e.status&&"opinion"===e.publication_type),[g]),v=e.useMemo(()=>"All"===f?b:b.filter(e=>{var s;return n(null==(s=e.template_settings)?void 0:s.category,f)}),[b,f]),N=e.useMemo(()=>({"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:[{"@type":"ListItem",position:1,name:"Home",item:h},{"@type":"ListItem",position:2,name:"Opinion",item:`${h}/opinion`}]}),[]),w=e.useMemo(()=>({"@context":"https://schema.org","@type":"ItemList",name:"Delphi Global Research Opinion",itemListElement:v.slice(0,10).map((e,s)=>({"@type":"ListItem",position:s+1,url:`${h}${a(e.slug||e.id,"opinion")}`,name:e.title}))}),[v]);return s.jsxs("div",{className:"flex min-h-screen flex-col",children:[s.jsxs(r,{children:[s.jsx("title",{children:"Opinion on Eurasian Security & Geopolitics | Delphi Global Research Center"}),s.jsx("meta",{name:"description",content:"Opinion pieces and expert commentary on Eurasian security, Russia-China relations, NATO strategy, and regional dynamics from leading scholars and researchers."}),s.jsx("meta",{name:"keywords",content:"think tank opinion, opinion pieces, Eurasian security commentary, international relations, Russia analysis, NATO commentary, regional security, expert insights"}),s.jsx("meta",{property:"og:type",content:"website"}),s.jsx("meta",{property:"og:title",content:"Opinion on Eurasian Security | Delphi Global Research Center"}),s.jsx("meta",{property:"og:description",content:"Opinion pieces and expert commentary on Eurasian security and regional dynamics."}),s.jsx("meta",{property:"og:url",content:`${h}/opinion`}),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:"Opinion | Delphi Global Research Center"}),s.jsx("meta",{name:"twitter:description",content:"Opinion pieces and expert commentary on Eurasian security and regional analysis."}),s.jsx("link",{rel:"canonical",href:`${h}/opinion`}),s.jsx("link",{rel:"alternate",hrefLang:"en",href:`${h}/opinion`}),s.jsx("link",{rel:"alternate",hrefLang:"x-default",href:`${h}/opinion`}),s.jsx("script",{type:"application/ld+json",children:JSON.stringify(N)}),w.itemListElement.length>0&&s.jsx("script",{type:"application/ld+json",children:JSON.stringify(w)})]}),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:"Opinion"}),s.jsx("p",{className:"text-lg text-muted-foreground",children:"Perspectives and commentary from our scholars on Eurasian security and regional dynamics."})]}),s.jsx("div",{className:"mb-8 flex flex-wrap gap-2",children:l.map(e=>s.jsx(o,{variant:f===e?"default":"outline",onClick:()=>y(e),className:"transition-all",children:e},e))}),j&&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))}),!j&&s.jsx("div",{className:"flex flex-col gap-4",children:v.map((e,i)=>{var n,r;const l=a(e.slug||e.id,"opinion");return s.jsx("div",{className:"animate-fade-up",style:{animationDelay:.
105*i+"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:l,className:"md:w-64 flex-shrink-0",children:s.jsx("img",{sizes:"(max-width: 768px) 100vw, 256px",srcSet:c(e.featured_image_url,p.listThumb),src:d(e.featured_image_url,{width:m.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==(n=e.template_settings)?void 0:n.category)||"General"})}),s.jsx(t,{to:l,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(u,{date:e.published_at||e.created_at,locale:"ka-GE"}),(null==(r=e.template_settings)?void 0:r.readTime)&&s.jsxs(s.Fragment,{children:[s.jsx("span",{children:"â¢"}),s.jsx("span",{children:e.template_settings.readTime})]})]})]})]})})},e.id)})}),!j&&0===v.length&&s.jsx("div",{className:"py-12 text-center",children:s.jsx("p",{className:"text-muted-foreground",children:"No opinion pieces found in this category."})})]})})]})};export{g 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.