1import{_ as g}from"./uNecWPRX.js";import{o as s,c as l,b as d,w as c,a as e,t as r,F as f,m as h,M as x,l as p,d as u}from"./CsyhkCrC.js";const w={class:"bg-white rounded-2xl border border-cardBorder overflow-hidden hover:border-primary hover:shadow-xl transition-all duration-300 group flex flex-col h-full"},b=["src","alt","title"],v={key:1,class:"w-full h-full flex items-center justify-center text-gray-300"},k={class:"absolute bottom-4 left-4"},y={class:"bg-white/90 backdrop-blur-sm text-gray-800 text-[11px] font-bold px-3 py-1.5 rounded-full shadow-sm"},_={class:"p-5 flex flex-col flex-1"},j={key:0,class:"flex flex-wrap gap-2 mb-3"},B={class:"font-bold text-gray-900 text-lg leading-tight mb-3 group-hover:text-primary transition-colors line-clamp-2"},C={class:"text-gray-500 text-sm leading-relaxed line-clamp-3 mb-4"},V={class:"mt-auto pt-4 border-t border-gray-50 flex items-center justify-between"},M={class:"flex items-center gap-3 text-gray-400 text-xs font-medium"},D={class:"flex items-center gap-1"},A={__name:"BlogCard",props:{post:{type:Object,required:!0}},setup(t){const m=n=>{if(!n)return"";const o=new Date(n);return new Intl.DateTimeFormat("tr-TR",{day:"numeric",month:"long",year:"numeric"}).format(o)};return(n,o)=>{const i=g;return s(),l("div",w,[d(i,{to:`/blog/${t.post.slug}`,class:"relative block overflow-hidden aspect-[16/10] bg-gray-100"},{default:c(()=>[t.post.featured_image?(s(),l("img",{key:0,src:t.post.featured_image.thumb300||t.post.featured_image.url,alt:t.post.featured_image.alt||t.post.title,title:t.post.featured_image.title||void 0,loading:"lazy",class:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-500"},null,8,b)):(s(),l("div",v,[...o[0]||(o[0]=[e("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"w-12 h-12"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 7.5h1.5m-1.5 3h1.5m-7.5 3h7.5m-7.5 3h7.5m3-9h3.375c.621 0 1.125.504 1.125 1.125V18a2.25 2.25 0 01-2.25 2.25H5.25A2.25 2.25 0 013 17.25V5.25A2.25 2.25 0 015.25 3h13.5A2.25 2.25 0 0121 5.25V7.5"})],-1)])])),e("div",k,[e("div",y,r(m(t.post.published_at)),1)])]),_:1},8,["to"]),e("div",_,[t.post.tags&&t.post.tags.length>0?(s(),l("div",j,[(s(!0),l(f,null,h(t.post.tags.slice(0,2),a=>(s(),l("span",{key:a.id,class:"text-[10px] font-bold uppercase tracking-wider px-2 py-0.5 rounded",style:x({backgroundColor:a.color+"15",color:a.color})},r(a.name),5))),128))])):p("",!0),d(i,{to:`/blog/${t.post.slug}`,class:"flex-1"},{default:c(()=>[e("h3",B,r(t.post.title),1),e("p",C,r(t.post.excerpt),1)]),_:1},8,["to"]),e("div",V,[d(i,{to:`/blog/${t.post.slug}`,class:"text-primary text-sm font-bold flex items-center gap-1.5 group/btn hover:gap-2 transition-all"},{default:c(()=>[...o[1]||(o[1]=[u(" Devamını Oku ",-1),e("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-4 w-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2.5"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M13.5 4.5L21 12m0 0l-7.5 7.5M21 12H3"})],-1)])]),_:1},8,["to"]),e("div",M,[e("span",D,[o[2]||(o[2]=e("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-3.5 w-3.5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"}),e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M2.458 12C3.732 7.943 7.523 5 12 5c4.478 0 8.268 2.943 9.542 7-1.274 4.057-5.064 7-9.542 7-4.477 0-8.268-2.943-9.542-7z"})],-1)),u(" "+r(t.post.view_count||0),1)])])])])])}}};export{A 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.