1import{a9 as m,aa as r,j as e,ab as a,L as x}from"./index-CyFrY2OP.js";import{u as d}from"./useSuspenseQuery-C5eSYEVO.js";import"./useBaseQuery-B-YI4Yhq.js";function h(){const{data:o}=d(m),{proximos:t,passados:n}=r(o);return e.jsxs("div",{className:"container mx-auto max-w-5xl px-3 sm:px-4 py-6 sm:py-10",children:[e.jsxs("header",{className:"mb-6 sm:mb-8",children:[e.jsx("h1",{className:"section-heading text-3xl sm:text-4xl md:text-5xl",children:"agenda."}),e.jsx("p",{className:"text-muted-foreground mt-2 text-sm sm:text-base",children:"Próximos eventos, encontros e compromissos do Podemos."})]}),t.length===0&&n.length===0?e.jsx(i,{}):e.jsxs(e.Fragment,{children:[e.jsxs("section",{children:[e.jsx("h2",{className:"section-heading text-xl sm:text-2xl mb-4",children:"próximos eventos."}),t.length===0?e.jsx("p",{className:"text-muted-foreground text-sm bg-soft rounded-lg p-6 text-center",children:"Nenhum evento agendado no momento."}):e.jsx("div",{className:"grid gap-3 sm:gap-4",children:t.map(s=>e.jsx(a,{evento:s},s.id))})]}),n.length>0&&e.jsxs("section",{className:"mt-10 sm:mt-14",children:[e.jsx("h2",{className:"section-heading text-xl sm:text-2xl mb-4",children:"já realizados."}),e.jsx("div",{className:"grid gap-3 sm:gap-4",children:n.slice(0,20).map(s=>e.jsx(a,{evento:s,past:!0},s.id))})]})]}),e.jsx("div",{className:"mt-12 text-center",children:e.jsx(x,{to:"/",className:"text-sm font-semibold text-primary hover:underline",children:"â Voltar para a home"})})]})}function i(){return e.jsxs("div",{className:"bg-soft rounded-xl p-10 text-center",children:[e.jsx("p",{className:"text-lg font-semibold text-foreground",children:"Nenhum evento agendado no momento."}),e.jsx("p",{className:"text-sm text-muted-foreground mt-2",children:"Volte em breve para conferir novos compromissos."})]})}
1export{h as component};
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.