import{d as x,w as _,j as f,o,a as r,b as t,F as u,h as g,n as h,e as b,t as i,g as k,H as w,k as v,f as y,I as C,J as B}from"./DGtjvSSZ.js";const N={class:"mb-32px bg-dark-color px-16px pt-24px -mx-16px md:mx-0 md:bg-white md:px-0 md:pt-0"},F={class:"relative"},I={class:"mb-16px text-2.5 font-semibold leading-2.5 tracking-widest uppercase text-white md:text-black"},L={class:"relative mr-16px font-garamond text-4.5 font-bold leading-5 text-white md:leading-5.5 md:text-black"},M=x({__name:"MasLeido",async setup(V){let a,s;const{data:n}=([a,s]=_(()=>f("/api/most-read","$h1v4AG81MD")),a=await a,s(),a);return(A,d)=>{const c=C,p=B;return o(),r("div",N,[d[0]||(d[0]=t("div",{class:"border-b border-b-neutral-300/30 pb-16px md:border-b-neutral-300"},[t("h2",{class:"text-5 font-bold leading-5 tracking-widest uppercase text-[#F97B06] md:text-black"},"Lo más leído")],-1)),(o(!0),r(u,null,g(b(n),(e,l)=>{var m;return o(),r("article",{key:l,class:h(["relative border-b border-b-neutral-300/30 py-24px before:absolute before:left-0 before:right-0 before:mx-auto before:h-3px before:w-80px before:bg-orangeColor before:content-[''] before:-bottom-3px md:border-b-neutral-300",{"border-b-0 md:border-b before:hidden before:md:block":l==b(n).length-1}])},[t("div",F,[t("p",I,i((m=e.mainCategory)==null?void 0:m.name),1),k(p,{to:e.url,class:"flex"},{default:w(()=>[t("h3",L,i(e.title),1),e.featuredImage?(o(),v(c,{key:0,"featured-image":e.featuredImage,thumbnail:"",class:"ml-auto h-80px w-110px flex-shrink-0 basis-110px"},null,8,["featured-image"])):y("",!0)]),_:2},1032,["to"])])],2)}),128))])}}});export{M as _};