import{A as e,C as t,D as n,E as r,J as i,K as a,M as o,b as s,i as c,j as l,kt as u,ot as d,r as f,w as p,wt as m}from"./dist-B4ulKgpj.js";import{t as h}from"./FrontOfficeLayout-PUirTnzN.js";var g={class:`mx-auto max-w-6xl px-4 py-14 sm:px-6`},_={key:0,class:`rounded-xl border border-[#d9e3ef] bg-white p-8 text-center text-[#436489]`},v={key:1,class:`grid gap-6 md:grid-cols-2`},y=[`src`,`alt`],b={class:`p-6`},x={class:`text-xs font-semibold uppercase tracking-wide text-[#436489]`},S={class:`mt-2 text-xl font-semibold`},C={key:0,class:`mt-1 text-sm font-medium text-[#0a3160]`},w={class:`mt-3 text-sm leading-6 text-[#234e7a]`},T=o({layout:h,__name:`Articles`,props:{articles:{}},setup(o){let h=o,T=t(()=>Array.isArray(h.articles)?h.articles:h.articles?.data??[]);return(t,o)=>(a(),n(s,null,[l(m(f),{title:`Articles`}),o[1]||=p(`section`,{class:`bg-[#0a3160] text-white`},[p(`div`,{class:`mx-auto max-w-6xl px-4 py-14 sm:px-6`},[p(`h1`,{class:`text-3xl font-semibold md:text-4xl`},`Articles`),p(`p`,{class:`mt-4 max-w-3xl text-[#d8e8f7]`},` News, insights, and public guidance from the Estate Agents Council. `)])],-1),p(`section`,g,[T.value.length===0?(a(),n(`p`,_,` No articles are published yet. Check back soon. `)):(a(),n(`div`,v,[(a(!0),n(s,null,i(T.value,t=>(a(),n(`article`,{key:t.id,class:`overflow-hidden rounded-xl border border-[#d9e3ef] bg-white shadow-sm`},[p(`img`,{src:t.image,alt:t.title,class:`h-52 w-full object-cover`},null,8,y),p(`div`,b,[p(`p`,x,u(t.publishedAt),1),p(`h2`,S,u(t.title),1),t.subtitle?(a(),n(`p`,C,u(t.subtitle),1)):r(``,!0),p(`p`,w,u(t.excerpt),1),l(m(c),{href:`/articles/${t.id}`,class:`mt-4 inline-block text-sm font-semibold text-[#0a3160] hover:underline`},{default:d(()=>[...o[0]||=[e(` Read article `,-1)]]),_:1},8,[`href`])])]))),128))]))])],64))}});export{T as default};