1import{_ as O}from"./pj-CPbXk.js";import{_ as Z}from"./BSmVUTnX.js";import{_ as G}from"./BRi-HqTy.js";import{d as D,o as i,g as c,j as e,F as m,r as w,k as a,x as H,a as J,K as j,c as p,t as Q,H as F,u as U,b as W,f as X,h as t,i as A,m as l,v as T,n as B,w as N,$ as I,a3 as M,l as Y}from"./BqU4gIl0.js";import{B as n}from"./E-LOmALw.js";import{_ as P}from"./D_Pj0HtN.js";import{u as ee}from"./CJBNYRPJ.js";import{f as V}from"./CMATFKuL.js";import"./CcSUtpbT.js";const se={class:"news-list-skeleton","aria-hidden":"true"},te={class:"filter-row reveal",style:{"--d":"80ms"}},oe={class:"filter-pills-skeleton"},le={class:"blog-grid"},ae={class:"news-headline-skeleton reveal",style:{"--d":"0ms"}},ne={class:"headline-body-skeleton"},ie={class:"headline-footer-skeleton"},ce={class:"blog-card-body-skeleton"},re={class:"blog-footer-skeleton"},de=D({__name:"NewsListSkeleton",setup(y){return(o,v)=>(i(),c("div",se,[e("div",te,[e("div",oe,[(i(),c(m,null,w(4,r=>a(n,{key:r,class:"filter-pill-skeleton"})),64))])]),e("div",le,[e("div",ae,[a(n,{class:"headline-media-skeleton"}),e("div",ne,[a(n,{class:"headline-meta-skeleton"}),a(n,{class:"headline-title-skeleton headline-title-wide"}),a(n,{class:"headline-title-skeleton headline-title-short"}),a(n,{class:"headline-excerpt-skeleton"}),a(n,{class:"headline-excerpt-skeleton headline-excerpt-short"}),e("div",ie,[a(n,{class:"headline-author-skeleton"}),a(n,{class:"headline-cta-skeleton"})])])]),(i(),c(m,null,w(3,r=>e("div",{key:r,class:"blog-card-skeleton reveal",style:H({"--d":`${r*80}ms`})},[a(n,{class:"blog-card-media-skeleton"}),e("div",ce,[a(n,{class:"blog-date-skeleton"}),a(n,{class:"blog-title-skeleton blog-title-wide"}),a(n,{class:"blog-title-skeleton blog-title-short"}),a(n,{class:"blog-excerpt-skeleton"}),a(n,{class:"blog-excerpt-skeleton blog-excerpt-short"}),e("div",re,[a(n,{class:"blog-author-skeleton"}),a(n,{class:"blog-cta-skeleton"})])])],4)),64))])]))}}),_e=Object.assign(P(de,[["__scopeId","data-v-5bfc530b"]]),{__name:"SkeletonNewsListSkeleton"}),R=9,z=R+1;function he(y){const o=p(()=>Q(y)),{data:v,status:r,error:b,refresh:x}=J(()=>`news-highlights:${o.value}`,()=>$fetch("/api/news",{query:{lang:o.value}}),{server:!1,lazy:!0,watch:[o]}),g=p(()=>v.value??[]),h=F(z);j(o,()=>{h.value=z});const k=p(()=>g.value.slice(0,h.value)),C=p(()=>h.value<g.value.length);function d(){h.value=Math.min(h.value+R,g.value.length)}return{articles:k,allArticles:g,status:r,error:b,hasMore:C,loadMore:d,refreshNews:x}}const ue={class:"news-section"},ge={class:"news-shell"},me={key:1,class:"news-status news-error reveal"},pe={class:"news-error-label"},ve={class:"news-error-title"},be={class:"filter-row reveal",style:{"--d":"80ms"}},fe={class:"filter-pills"},ke=["onClick"],we={class:"blog-grid"},ye={class:"headline-img"},xe=["alt","src"],Ce={key:0,class:"blog-cat"},$e={class:"headline-body"},Ae={class:"blog-date"},Be={class:"headline-title"},Ne={class:"headline-excerpt"},Se={class:"blog-card-footer"},Le={class:"blog-author"},Te={class:"blog-card-cta"},Ie={class:"blog-card-img"},Me=["alt","src"],Ve={key:0,class:"blog-cat"},ze={class:"blog-card-body"},De={class:"blog-date"},He={class:"blog-card-title"},je={class:"blog-card-excerpt"},Fe={class:"blog-card-footer"},Pe={class:"blog-author"},Re={class:"blog-card-cta"},Ee={key:0,class:"blog-load-more"},qe={class:"news-cta reveal flex flex-col items-stretch gap-8 bg-[image:var(--dark-grad)] py-12 px-px md:flex-row md:items-center md:justify-between md:gap-12"},Ke={class:"news-cta-text mt-3 max-w-lg text-[14px] leading-[1.65]",style:{color:"rgba(196, 194, 190, 0.85)"}},Oe=D({__name:"index",setup(y){const{t:o,locale:v}=U(),r=W();X({title:p(()=>o("media.newsCenter.seo.title")),description:o("media.newsCenter.seo.description"),ogType:"website"});const{articles:b,status:x,error:g,hasMore:h,loadMore:k}=he(v),C=ee([()=>b.value.length]),d=F("all");j(v,()=>{d.value="all"});const E=p(()=>{const u=new Set;for(const _ of b.value)_.tags.length&&_.tags[0]&&u.add(_.tags[0]);return[...u].sort()});function f(u){return u.tags[0]??""}function S(u){return d.value==="all"||f(u)===d.value}return(u,_)=>{const q=O,L=Z,K=G;return i(),c("main",{ref_key:"sectionRef",ref:C},[a(q,{eyebrow:t(o)("media.newsCenter.hero.eyebrow"),title:t(o)("media.newsCenter.hero.title"),description:t(o)("media.newsCenter.hero.desc")},null,8,["eyebrow","title","description"]),e("section",ue,[e("div",ge,[t(x)==="pending"?(i(),A(_e,{key:0})):t(g)?(i(),c("div",me,[e("p",pe,l(t(o)("media.newsCenter.errorLabel")),1),e("h2",ve,l(t(o)("media.newsCenter.errorTitle")),1)])):(i(),c(m,{key:2},[e("div",be,[e("div",fe,[e("button",{class:T(["filter-pill",{active:d.value==="all"}]),onClick:_[0]||(_[0]=s=>d.value="all")},l(t(o)("media.newsCenter.filter.all")),3),(i(!0),c(m,null,w(E.value,s=>(i(),c("button",{key:s,class:T(["filter-pill",{active:d.value===s}]),onClick:$=>d.value=s},l(s),11,ke))),128))])]),e("div",we,[(i(!0),c(m,null,w(t(b),(s,$)=>(i(),c(m,{key:s.id},[$===0?I((i(),A(L,{key:0,class:"news-headline reveal",style:{"--d":"0ms"},to:t(r)(`/explore/content-hub/${s.slug}`)},{default:N(()=>[e("div",ye,[e("img",{alt:s.image.altText||s.title,src:s.image.url,class:"headline-img-el",loading:"lazy"},null,8,xe),f(s)?(i(),c("span",Ce,l(f(s)),1)):B("",!0)]),e("div",$e,[e("div",Ae,l(t(V)(s.publishedAt,s.language)),1),e("h3",Be,l(s.title),1),e("p",Ne,l(s.excerpt),1),e("div",Se,[e("span",Le,l(s.author),1),e("span",Te,l(t(o)("home.press.readArticle")),1)])])]),_:2},1032,["to"])),[[M,S(s)]]):I((i(),A(L,{key:1,class:"blog-card reveal",style:H({"--d":`${($-1)%3*80}ms`}),href:t(r)(`/explore/content-hub/${s.slug}`)},{default:N(()=>[e("div",Ie,[e("img",{alt:s.image.altText||s.title,src:s.image.url,class:"blog-card-img-el",loading:"lazy"},null,8,Me),f(s)?(i(),c("span",Ve,l(f(s)),1)):B("",!0)]),e("div",ze,[e("div",De,l(t(V)(s.publishedAt,s.language)),1),e("h3",He,l(s.title),1),e("p",je,l(s.excerpt),1),e("div",Fe,[e("span",Pe,l(s.author),1),e("span",Re,l(t(o)("home.press.readArticle")),1)])])]),_:2}
1,1032,["style","href"])),[[M,S(s)]])],64))),128))]),t(h)?(i(),c("div",Ee,[e("button",{class:"btn",onClick:_[1]||(_[1]=(...s)=>t(k)&&t(k)(...s))},l(t(o)("media.newsCenter.loadMore")),1)])):B("",!0)],64))])]),e("section",qe,[e("p",Ke,l(t(o)("media.newsCenter.cta.text")),1),a(K,{href:t(r)("/explore/blogs"),variant:"ghost-white",class:"shrink-0 px-7 py-3.5 text-[14px]"},{default:N(()=>[Y(l(t(o)("media.newsCenter.cta.button")),1)]),_:1},8,["href"])])],512)}}}),ss=P(Oe,[["__scopeId","data-v-e1165c46"]]);export{ss 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.