import{d as c,o as a,a as l,t as i,n as y,r as v,s as I,W as N,g as u,H as m,b as t,k as _,f as x,e as f,I as h,J as g,w as C,j as F,F as B,h as E}from"./DGtjvSSZ.js";const G=c({__name:"Title",props:{title:{},black:{type:Boolean}},setup(r){return(e,s)=>(a(),l("h2",{class:y(["mb-32px text-center text-6 font-medium leading-24px tracking-5px uppercase text-white md:mb-48px",[e.black?"text-black":"text-white"]])},i(e.title)+" / ",3))}}),M={class:"mb-24px rounded-16px bg-[#E6E9EE] md:mb-0"},$={class:"relative h-auto w-full basis-full pt-47.43%"},D={class:"absolute bottom-0 h-108px w-full flex items-end from-[#1B0F3E] to-transparent bg-gradient-to-t p-12px md:pl-15px"},A={class:"text-3 font-medium leading-12px capitalize text-white"},L={class:"p-12px"},V={class:"text-4 font-semibold leading-22px"},J=c({__name:"Noticias",props:{url:{},title:{},featuredImage:{},publishedAt:{},mainCategory:{},id:{},slug:{},categories:{},excerpt:{},authorsGroups:{}},setup(r){const e=r,s=v("");return I(()=>{e.publishedAt&&(s.value=N(new Date(e.publishedAt),"dddd D [de] MMMM | HH:mm [hrs]"))}),(o,b)=>{const p=h,d=g;return a(),l("article",M,[u(d,{to:o.url,class:"text-[#1F2531]"},{default:m(()=>[t("div",$,[o.featuredImage?(a(),_(p,{key:0,"featured-image":o.featuredImage,class:"absolute left-0 top-0 h-full w-full rounded-t-16px"},null,8,["featured-image"])):x("",!0),t("div",D,[t("p",A,i(f(s)),1)])]),t("div",L,[t("h3",V,i(o.title),1)])]),_:1},8,["to"])])}}}),j={class:"absolute top-29px h-32px w-32px flex items-center justify-center rounded-full bg-pinkVina text-4 font-bold leading-16px italic text-white -left-16px"},H={class:"ml-12px text-3.75 font-semibold leading-21px text-[#1F2531] md:ml-16px md:text-3.5 md:leading-20px"},S=c({__name:"MasLeido",async setup(r){let e,s;const{data:o}=([e,s]=C(()=>F("/api/most-read?category=festival-de-vina","$njyJC2G3wF")),e=await e,s(),e);return(b,p)=>{const d=h,k=g;return a(),l("div",null,[(a(!0),l(B,null,E(f(o),(n,w)=>(a(),l("article",{key:n.id,class:"relative my-24px"},[t("div",j,i(w+1),1),u(k,{to:n.url,class:"flex"},{default:m(()=>[n.featuredImage?(a(),_(d,{key:0,"featured-image":n.featuredImage,class:"h-90px w-110px flex-shrink-0 basis-110px rounded-8px"},null,8,["featured-image"])):x("",!0),t("h3",H,i(n.title),1)]),_:2},1032,["to"])]))),128))])}}});export{J as _,G as a,S as b};