import{o as h,c as x,a as t,s as b,t as s,h as w,j as f,i as k}from"./app-B-4i4xU3.js";function v(e,a){return h(),x("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[t("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M2.036 12.322a1.012 1.012 0 0 1 0-.639C3.423 7.51 7.36 4.5 12 4.5c4.638 0 8.573 3.007 9.963 7.178.07.207.07.431 0 .639C20.577 16.49 16.64 19.5 12 19.5c-4.638 0-8.573-3.007-9.963-7.178Z"}),t("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"})])}const _={class:"w-full h-52 overflow-hidden"},y=["src"],B={class:"p-4"},j={class:"inline-flex items-center rounded-md bg-gray-100 dark:bg-slate-700 px-3 py-1 text-xs font-semibold uppercase tracking-wider text-gray-600 dark:text-slate-300"},C={class:"text-slate-900 dark:text-white text-base font-bold mt-2 line-clamp-2 leading-snug"},N={class:"text-slate-500 dark:text-slate-400 text-sm mt-1.5 line-clamp-2 leading-relaxed"},V={class:"flex items-center gap-3 mt-3 text-slate-400 dark:text-slate-500 text-xs"},D={class:"flex items-center gap-1"},Z={__name:"BlogCard",props:{blog:Object},setup(e){const a=b(),m=e,p=()=>{var o;a.push("/blog/"+((o=m.blog)==null?void 0:o.slug))};return(o,l)=>{var n,r,i,d,c,g,u;return h(),x("div",{class:"bg-white dark:bg-slate-800 rounded-xl overflow-hidden cursor-pointer group shadow-sm hover:shadow-md transition-shadow duration-300",onClick:l[0]||(l[0]=M=>p())},[t("div",_,[t("img",{src:(n=e.blog)==null?void 0:n.thumbnail,class:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-500",loading:"lazy"},null,8,y)]),t("div",B,[t("span",j,s((i=(r=e.blog)==null?void 0:r.category)==null?void 0:i.name),1),t("h3",C,s((d=e.blog)==null?void 0:d.title),1),t("p",N,s((c=e.blog)==null?void 0:c.description),1),t("div",V,[t("span",null,s((g=e.blog)==null?void 0:g.created_at),1),t("span",D,[w(f(v),{class:"w-3.5 h-3.5"}),k(" "+s((u=e.blog)==null?void 0:u.total_views)+" "+s(o.$t("views")),1)])])])])}}};export{Z as _,v as r};
