import{a as t,o as s,b as l,t as n,n as i}from"./C9RGyKra.js";const a={class:"news-image"},c=["src","alt"],d={key:1,class:"skeleton-img"},k={class:"news-content"},r=["href","title"],h={key:1,class:"skeleton-title"},m={key:2,class:"news-desc"},y={key:3,class:"skeleton-desc"},u={key:4,class:"news-date"},v={key:5,class:"skeleton-date"},f={__name:"NewsItem",props:{post:{type:Object,required:!0}},setup(e){return(g,o)=>(s(),t("div",{class:i(["news-item",{skeleton:e.post.isSkeleton}])},[l("div",a,[e.post.isSkeleton?(s(),t("div",d)):(s(),t("img",{key:0,src:e.post.featuredImage,alt:e.post.title,loading:"lazy",decoding:"async"},null,8,c))]),l("div",k,[e.post.isSkeleton?(s(),t("div",h)):(s(),t("a",{key:0,href:e.post.link,target:"_blank",rel:"noopener noreferrer",class:"news-title",title:e.post.title},n(e.post.title),9,r)),e.post.isSkeleton?(s(),t("div",y,[...o[0]||(o[0]=[l("div",{class:"skeleton-line"},null,-1),l("div",{class:"skeleton-line"},null,-1),l("div",{class:"skeleton-line short"},null,-1)])])):(s(),t("p",m,n(e.post.excerpt),1)),e.post.isSkeleton?(s(),t("div",v)):(s(),t("span",u,n(e.post.date),1))])],2))}};export{f as _};
