import{C as u,o as f,c as x,b as l,w as c,m as r,a as e,v as s,t as i,n as g,_ as w,E as h}from"./C_yW9YRN.js";const p={"data-wow-duration":"1.3s","data-wow-delay":"0s",class:"p-3 flex flex-col h-full bg-[#F9F9F9] rounded-xl animated wow zoomInUp blog-card"},v={class:"flex gap-2 py-2 text-primary text-sm"},_=["innerHTML"],b={class:"flex items-center justify-end mt-2"},$={__name:"BlogCard",props:{item:{required:!0}},setup(t){const n=u();return(m,a)=>{const d=w,o=h;return f(),x("div",p,[l(o,{to:r(n)(`/articles/${t.item.slug}`),class:"h-[230px]"},{default:c(()=>[l(d,{format:"webp",width:"300",class:"w-full h-full rounded-xl object-cover",height:"230",src:t.item.image,alt:t.item.title,sizes:"sm:300px md:320px lg:480px",loading:"lazy",quality:"80"},null,8,["src","alt"])]),_:1},8,["to"]),e("div",null,[e("div",v,[e("p",null,[a[0]||(a[0]=e("i",{class:"fas fa-calendar"},null,-1)),s(" "+i(t.item.published_at),1)]),e("p",null,[a[1]||(a[1]=e("i",{class:"fas fa-eye"},null,-1)),s(" "+i(t.item.views),1)])]),l(o,{class:"line-clamp-1 text-text font-bold text-base mb-1 !text-start",to:r(n)(`/articles/${t.item.slug}`)},{default:c(()=>[s(i(t.item.title),1)]),_:1},8,["to"]),e("div",{class:"line-clamp-3 !overflow-hidden !text-start",innerHTML:t.item.description.replace(/<[^>]*>/g,"")},null,8,_)]),e("div",b,[l(o,{class:"text-primary flex items-center text-sm font-medium gap-1",to:r(n)(`/articles/${t.item.slug}`)},{default:c(()=>[s(i(m.$t("BUTTONS.viewDetails"))+" ",1),e("i",{class:g(m.$i18n.locale=="en"?"fas fa-arrow-right":"fas fa-arrow-left")},null,2)]),_:1},8,["to"])])])}}};export{$ as _};
