1import{q as f,j as e,Y as p}from"./app-Ce8cAmW-.js";import{M as w,F as y}from"./main-layout-C-X_DRHS.js";import{P as b}from"./partners-CP-kRYR_.js";import{G as v}from"./glowing-effect-DCFhAquA.js";import{m as u}from"./proxy-MlirqW2_.js";import{C as j}from"./calendar-BZX8ChDG.js";import{A as N}from"./arrow-right-CGE0-sNO.js";/* empty css */import"./index-skiHflQy.js";import"./primary-button-hvRD1VpQ.js";import"./index-BLDRET_f.js";import"./single-value-DUybrRiC.js";function V({articles:l}){const{seo:s}=f().props,x=l.data,h=r=>{if(r===0)return"md:col-span-1 md:row-span-1";if(r===1)return"md:col-span-2 md:row-span-1";const t=r-2,a=["md:col-span-1 md:row-span-1","md:col-span-1 md:row-span-1","md:col-span-1 md:row-span-1","md:col-span-2 md:row-span-2","md:col-span-1 md:row-span-1","md:col-span-1 md:row-span-1","md:col-span-1 md:row-span-1","md:col-span-1 md:row-span-1","md:col-span-1 md:row-span-2","md:col-span-2 md:row-span-1","md:col-span-1 md:row-span-1","md:col-span-1 md:row-span-1","md:col-span-1 md:row-span-1","md:col-span-2 md:row-span-1","md:col-span-1 md:row-span-1","md:col-span-1 md:row-span-1","md:col-span-1 md:row-span-1","md:col-span-1 md:row-span-1","md:col-span-1 md:row-span-2","md:col-span-2 md:row-span-1"];return a[t%a.length]};return e.jsxs(w,{title:(s==null?void 0:s.title)??"Media Center - 7 Maravilhas de Portugal®",description:(s==null?void 0:s.description)??"Explore os nossos artigos sobre património arquitetónico, história e cultura portuguesa.",keywords:(s==null?void 0:s.keywords)??"artigos, património, Portugal, arquitetura, história, cultura, media center",children:[e.jsx("section",{className:"bg-background border-border border-b py-16",children:e.jsx("div",{className:"mx-auto max-w-7xl px-4 sm:px-6 lg:px-8",children:e.jsx("div",{className:"space-y-6 text-center",children:e.jsx(u.h1,{className:"text-foreground text-4xl font-bold sm:text-5xl lg:text-6xl",initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.8,delay:.2},children:"Media Center"})})})}),e.jsx("section",{className:"bg-background w-full py-20",children:e.jsxs("div",{className:"w-full px-4 sm:px-6 lg:px-8",children:[e.jsx(u.div,{initial:{opacity:0,y:40},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.8,delay:.6},className:"mb-16",children:x.length>0?e.jsx("div",{className:"grid w-full auto-rows-[20rem] grid-cols-1 gap-6 md:auto-rows-[20rem] md:grid-cols-3",children:x.map((r,t)=>e.jsx(u.div,{initial:{opacity:0,scale:.9},whileInView:{opacity:1,scale:1},viewport:{once:!0},transition:{duration:.5,delay:.8+t*.1},className:`${h(t)} group`,children:e.jsxs(p,{href:`/${r.slug}`,className:"relative block h-full w-full overflow-visible rounded-xl","aria-label":`Ler artigo: ${r.title}`,children:[e.jsx("div",{className:"pointer-events-none absolute -inset-[2px] z-[3] rounded-xl",children:e.jsx(v,{spread:80,glow:!0,disabled:!1,proximity:64,inactiveZone:.01,variant:"primary"})}),e.jsxs("div",{className:"relative h-full w-full cursor-pointer overflow-hidden rounded-xl shadow-lg transition-shadow duration-500 hover:shadow-2xl",children:[r.thumbnail_url?e.jsx("div",{className:"absolute inset-0 z-0 bg-cover bg-center transition-transform duration-700 group-hover:scale-110",style:{backgroundImage:`url(${r.thumbnail_url})`}}):e.jsx("div",{className:"from-primary/20 to-primary/5 absolute inset-0 z-0 bg-gradient-to-br"}),e.jsx("div",{className:"absolute inset-0 z-[1] bg-gradient-to-t from-black/80 via-black/20 to-transparent"}),e.jsx("div",{className:"bg-primary/0 group-hover:bg-primary/20 absolute inset-0 z-[2] transition-colors duration-500"}),e.jsxs("div",{className:"absolute inset-0 z-[4] text-white",children:[e.jsx("div",{className:"absolute top-6 right-6 opacity-0 transition-opacity duration-300 group-hover:opacity-100",children:e.jsx("div",{className:"rounded-2xl bg-white/20 p-3 backdrop-blur-sm transition-colors duration-300 group-hover:bg-white/30",children:e.jsx(y,{className:"h-8 w-8 text-white transition-transform duration-300 group-hover:scale-110"})})}),e.jsxs("div",{className:"absolute right-0 bottom-0 left-0 space-y-3 px-6 pb-4 transition-transform duration-500 group-hover:-translate-y-4",children:[e.jsx("h3",{className:"group-hover:text-primary-200 line-clamp-2 text-2xl leading-snug font-bold transition-colors duration-500 text-shadow-lg",children:r.title}),e.jsxs("div",{className:"hidden space-y-3 group-hover:block",children:[r.published_at&&e.jsxs("div",{className:"flex translate-y-4 items-center gap-2 text-xs text-white/80 opacity-0 transition-all delay-75 duration-500 group-hover:translate-y-0 group-hover:opacity-100",children:[e.jsx(j,{className:"h-3 w-3"}),e.jsx("span",{children:new Date(r.published_at).toLocaleDateString("pt-PT")})]}),e.jsxs("div",{className:"flex translate-y-4 items-center gap-2 text-sm font-medium opacity-0 transition-all delay-100 duration-500 group-hover:translate-y-0 group-hover:opacity-100",children:[e.jsx("span",{className:"tracking-wider up
1percase",children:"Ler Artigo"}),e.jsx(N,{className:"h-4 w-4 transition-transform duration-300 group-hover:translate-x-1"})]}),e.jsx("div",{className:"bg-primary mb-2 h-1 w-16 origin-left scale-x-0 rounded-full transition-transform duration-500 group-hover:scale-x-100"})]})]})]})]})]})},r.id))}):e.jsxs("div",{className:"py-16 text-center",children:[e.jsx("div",{className:"mb-4 text-6xl",children:"ð"}),e.jsx("h3",{className:"text-foreground mb-2 text-xl font-semibold",children:"Nenhum artigo encontrado"}),e.jsx("p",{className:"text-muted-foreground",children:"Ainda não existem artigos publicados."})]})}),l.last_page>1&&e.jsx(u.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6,delay:1.4},className:"mt-12 flex justify-center",children:e.jsx("nav",{className:"flex flex-wrap items-center justify-center gap-2",children:(()=>{const r=l.links,t=l.current_page,a=l.last_page,d=r[0],m=r[r.length-1],i=[];if(a<=7)for(let o=1;o<=a;o++)i.push(o);else{i.push(1),t>3&&i.push("...");const o=Math.max(2,t-1),c=Math.min(a-1,t+1);for(let n=o;n<=c;n++)n>1&&n<a&&i.push(n);t<a-2&&i.push("..."),i.push(a)}return e.jsxs(e.Fragment,{children:[d.url?e.jsx(p,{href:d.url,className:"text-foreground hover:bg-muted rounded-md px-3 py-2 text-sm transition-colors",children:e.jsx("span",{dangerouslySetInnerHTML:{__html:d.label}})}):e.jsx("span",{className:"text-muted-foreground cursor-not-allowed rounded-md px-3 py-2 text-sm opacity-50",children:e.jsx("span",{dangerouslySetInnerHTML:{__html:d.label}})}),i.map((o,c)=>{if(o==="...")return e.jsx("span",{className:"text-muted-foreground px-3 py-2 text-sm select-none",children:"..."},`ellipsis-${c}`);const n=r.find(g=>g.label===String(o));return n?e.jsx(p,{href:n.url||"#",className:`rounded-md px-3 py-2 text-sm transition-colors ${n.active?"bg-primary text-primary-foreground font-medium":"text-foreground hover:bg-muted"}`,children:o},c):null}),m.url?e.jsx(p,{href:m.url,className:"text-foreground hover:bg-muted rounded-md px-3 py-2 text-sm transition-colors",children:e.jsx("span",{dangerouslySetInnerHTML:{__html:m.label}})}):e.jsx("span",{className:"text-muted-foreground cursor-not-allowed rounded-md px-3 py-2 text-sm opacity-50",children:e.jsx("span",{dangerouslySetInnerHTML:{__html:m.label}})})]})})()})})]})}),e.jsx(b,{})]})}export{V as default};
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.