import{g as k,h as H,n as $,o as s,c as o,b as d,w as u,v,a as i,d as _,H as g,aj as p,t as x,j as w,x as C,e as b,i as U}from"./DgR3D_w1.js";const B={class:"px-[6px] w-full sm:w-1/2 md:w-1/3 mb-[56px] sm:mb-[35px] post-card"},E=i("div",{class:"pt-[57%]"},null,-1),L={class:"block font-bold font-agendaCond text-f14 text-green-600 uppercase tracking-a07 mb-8 pt-11 sm:matchHeight"},M={key:0},N={class:"font-black text-f24 sm:text-f22 leading-a25 sm:leading-a36 tracking-a04"},I=k({__name:"index",props:{title:{},id:{},sourceUrl:{},slug:{},categories:{}},setup(h){const r=h;function f(e){const l=document.querySelectorAll(e);let a=0;l.forEach(t=>{t instanceof HTMLElement&&(t.style.height="",a=Math.max(a,t.offsetHeight))}),l.forEach(t=>{t instanceof HTMLElement&&(t.style.height=`${a}px`)})}const m=H(()=>{var e;return((e=r.categories)==null?void 0:e.length)??0});return $(()=>{f(".matchHeight")}),(e,l)=>{const a=b,t=b;return s(),o("div",B,[d(a,{style:v({backgroundImage:`url(${e.sourceUrl})`}),class:"block max-h-[276px] bg-cover bg-no-repeat bg-center",to:`/blog/${e.slug}/`},{default:u(()=>[E]),_:1},8,["style","to"]),i("strong",L,[_("Categories: "),(s(!0),o(g,null,p(e.categories,(n,c)=>(s(),o(g,{key:n==null?void 0:n.name},[d(t,{to:`/blog/category/${n==null?void 0:n.slug}/`,rel:"category tag"},{default:u(()=>[_(x(n==null?void 0:n.name),1)]),_:2},1032,["to"]),c!==w(m)-1?(s(),o("span",M,", ")):C("",!0)],64))),128))]),i("p",N,[d(t,{to:`/blog/${e.slug}/`,class:"hover:text-green-600"},{default:u(()=>[_(x(r.title),1)]),_:1},8,["to"])])])}}}),V={class:"container max-w-1174 p-4"},S={class:"flex flex-wrap -mx-6 mb-17 sm:mb-46 post-container"},j=k({__name:"index",props:{posts:{}},setup(h){return(r,f)=>{const m=I;return s(),o("div",V,[i("div",S,[(s(!0),o(g,null,p(r.posts,e=>{var l,a,t,n,c;return s(),U(m,{"data-post-card":"",key:e==null?void 0:e.id,slug:e==null?void 0:e.slug,title:e==null?void 0:e.title,id:e==null?void 0:e.id,categories:e==null?void 0:e.categories.nodes,sourceUrl:((t=(a=(l=e.featuredImageForMobile)==null?void 0:l.mobileImage)==null?void 0:a.node)==null?void 0:t.sourceUrl)||((c=(n=e==null?void 0:e.featuredImage)==null?void 0:n.node)==null?void 0:c.sourceUrl)},null,8,["slug","title","id","categories","sourceUrl"])}),128))])])}}});export{j as _};