1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-B-kVIXC8.js","assets/index-D-81gIvX.js","assets/index-DRMVa6F2.css","assets/index-DXE9qYuN.css"])))=>i.map(i=>d[i]); 2import{Q as v,b as A,h as w,T as b,s as k,_ as D,j as u,t as L,l as E,z as S,B as l,C as s,D as n,E as m,F as i,G as g,H as h}from"./index-D-81gIvX.js";import{A as T}from"./ArticleThumbnail-D2kYXEzh.js";import"./embedded-media-BwI8LB1x.js";import"./useArticleLink-CZp2c7Ib.js";const q={name:"RelatedNews",components:{ArticleThumbnail:T,SdpSkeletonLoader:k(()=>D(()=>import("./index-B-kVIXC8.js"),__vite__mapDeps([0,1,2,3]))),SyHeading:v},props:{siteSection:{type:Object,required:!0},topArticlesData:{type:Array,default:()=>[]}},setup(d){var o,r;const{t:c}=A(),p=w({articlesHeader:((r=(o=d.siteSection)==null?void 0:o.config)==null?void 0:r.heading)??c("article.related_articles")}),{topArticlesData:t}=b(d),_=u(()=>{if(!Array.isArray(t.value)||L(t.value))return[];const e=E(t);return e==null?void 0:e.sort((a,f)=>(new Date(f.publishedAt).getTime()||0)-(new Date(a.publishedAt).getTime()||0))});return{isDataLoaded:u(()=>{var e;return(((e=t.value)==null?void 0:e.length)??0)>0}),headers:p,articles:_}}},B={class:"article-container"},H={class:"content-inner mt-10 @lg:mt-20"},N={key:0,class:"grid @md:grid-cols-2 gap-4 @lg:grid-cols-4 @lg:gap-6"},R={key:1,class:"grid @md:grid-cols-2 @md:gap-2 @lg:grid-cols-4 @lg:gap-6"};function x(d,c,p,t,_,y){const o=l("sy-heading"),r=l("article-thumbnail"),e=l("sdp-skeleton-loader");return s(),n("div",B,[m("div",H,[i(o,{primary:"","heading-label":t.headers.articlesHeader,heading:"heading 3","is-section-heading":!0,uppercase:""},null,8,["heading-label"]),t.isDataLoaded?(s(),n("div",N,[(s(!0),n(g,null,h(t.articles,a=>(s(),n("div",{key:a.id},[i(r,{article:a},null,8,["article"])]))),128))])):(s(),n("div",R,[(s(),n(g,null,h(4,a=>m("div",{key:a},[i(e,{type:"square",width:"auto",height:150,rounded:!1,animation:"wave"}),i(e,{type:"square",width:"auto",height:30,rounded:!1,animation:"wave",class:"mt-3"}),i(e,{type:"square",width:"60%",height:30,rounded:!1,animation:"wave",class:"my-2"})])),64))]))])])}const F=S(q,[["render",x],["__scopeId","data-v-6f45e0f5"]]);export{F 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.