1import{_ as m}from"./DinCV8dt.js";import{o as c,g as r,h as t,n as i,b as n,c as d,j as u,i as h,m as _,l as b,t as p,p as w,k as g}from"./CtOd44Bq.js";const x={class:"relative"},N=["src","alt"],f={class:"h3 mb-1 lg:mb-4 line-clamp-2"},j={__name:"NewsItem",props:{news:{type:Object,required:!0}},setup(e){const s=e,a=g(()=>s.news.publishedAt||s.news.createdAt||"");return(k,v)=>{const o=m,l=w;return c(),r("div",x,[t("div",{class:i(["aspect-600/450 mb-2 lg:mb-4",{"p-5 lg:p-15":!e.news.cover?.thumbUrl}])},[t("img",{src:e.news.cover?.thumbUrl??"/logo.svg",alt:e.news.name,class:"aspect-600/450 object-contain rounded-block mx-auto w-full",width:"1200",height:"900"},null,8,N)],2),n(a)?(c(),d(o,{key:0,class:"text-sm mb-1 lg:mb-4",datetime:n(a)},null,8,["datetime"])):u("",!0),t("h3",f,[h(l,{to:`/news/${e.news.seoName}`,class:"stretched"},{default:_(()=>[b(p(e.news.name),1)]),_:1},8,["to"])])])}}};export{j as _};
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.