import{_ as m}from"./BOUV_QDM.js";import{f as u}from"./bp1HLG3E.js";import{u as x}from"./Cw10yt2r.js";import{A as p}from"./-tSWNs99.js";import{d as f,o as n,c as i,$ as l,a4 as t,aj as g,a8 as o,u as r,a6 as b}from"./DINJ4NqB.js";const _={key:0,class:"relative w-full aspect-[16/10] overflow-hidden bg-slate-50"},h={class:"flex flex-col flex-grow p-6 sm:p-7"},v={class:"flex items-center gap-2.5 text-[11px] font-medium text-slate-400 tracking-wide mb-4"},w={class:"text-brand-dark/60 font-semibold"},k={class:"text-[16px] sm:text-[18px] font-medium text-slate-900 mb-3 line-clamp-2 leading-[1.4] tracking-tight group-hover:text-brand-dark transition-colors duration-500"},y={class:"text-slate-500 text-[13px] sm:text-[14px] leading-[1.6] line-clamp-2 mb-6 flex-grow font-light opacity-80"},A={class:"pt-5 border-t border-slate-50 flex items-center justify-between"},N={class:"text-[11px] font-bold tracking-widest text-slate-400 group-hover:text-brand-dark transition-colors duration-500"},j={class:"size-9 rounded-full bg-slate-50 flex items-center justify-center group-hover:bg-brand-dark transition-all duration-500"},z=f({__name:"NewsItemCard",props:{item:Object,isHorizontal:{type:Boolean,default:!0}},setup(e){const{locale:d}=x();return(a,s)=>{const c=m;return n(),i("div",{class:b(["group flex h-full bg-white rounded-[20px] transition-all duration-700 overflow-hidden cursor-pointer border border-slate-100/80 shadow-[rgba(134,197,231,0.05)_0px_0px_0px_0.5px_inset,rgba(0,72,113,0.08)_0px_2px_12px] hover:shadow-[rgba(134,197,231,0.1)_0px_0px_0px_0.5px_inset,rgba(0,72,113,0.12)_0px_20px_50px] hover:-translate-y-1.5",{"flex-col":e.isHorizontal}])},[e.isHorizontal?(n(),i("div",_,[l(c,{src:e.item.coverImageUrl,alt:e.item.coverImageAlt||e.item.title,class:"w-full h-full object-cover transition-transform duration-1000 group-hover:scale-105",format:"webp",loading:"lazy"},null,8,["src","alt"]),s[0]||(s[0]=t("div",{class:"absolute inset-0 bg-[#0f3155]/0 group-hover:bg-[#0f3155]/5 transition-colors duration-700"},null,-1))])):g("",!0),t("div",h,[t("div",v,[t("span",null,o(("formatDate"in a?a.formatDate:r(u))(e.item.uploadAt,r(d))||"--"),1),s[1]||(s[1]=t("div",{class:"w-1 h-1 rounded-full bg-slate-200"},null,-1)),t("span",w,o(e.item.categoryName),1)]),t("h4",k,o(e.item.title),1),t("p",y,o(e.item.description),1),t("div",A,[t("span",N,o(a.$te("news.readArticle")?a.$t("news.readArticle"):"Read Article"),1),t("div",j,[l(r(p),{class:"w-3.5 h-3.5 text-slate-400 group-hover:text-white transition-colors duration-500"})])])])],2)}}}),V=Object.assign(z,{__name:"NewsItemCard"});export{V as _};
