1import{j as e}from"./DaVhuApY.js";import{B as o}from"./CFDmulUJ.js";import{L as d,P as a,$ as l}from"./CT8mud5i.js";import{C as c}from"./FU1YZEhx.js";import{A as p}from"./DvKvyLVA.js";import"./CkaATJS4.js";/* empty css */import"./CP_ZYwn6.js";import"./BnChVgNp.js";import"./DbkBBKyL.js";import"./D2MCeqKh.js";import"./5f_bsn14.js";import"./Br9mNIFH.js";import"./Bg7FuTaK.js";import"./BdiHIEq-.js";import"./D71bPXD0.js";import"./Bx14hBa0.js";import"./DaAqPoJK.js";import"./eLNHxhYC.js";import"./DMprO5X4.js";import"./BYO_-b7I.js";import"./DiPTZ_fs.js";import"./BH3KpC9B.js";function T({articles:m,meta:s}){const{data:n,meta:i,links:r}=m;return e.jsxs(p,{children:[e.jsxs(d,{title:s.title,children:[e.jsx("meta",{name:"description",content:s.description}),e.jsx("meta",{property:"og:title",content:s.title}),e.jsx("meta",{property:"og:description",content:s.description}),e.jsx("meta",{property:"og:type",content:"website"})]}),e.jsxs("div",{className:"container mx-auto px-4 py-8",children:[e.jsxs("div",{className:"mb-12 text-center",children:[e.jsx("div",{className:"inline-flex items-center justify-center w-16 h-16 bg-primary/10 rounded-full mb-6",children:e.jsx(a,{name:"article",className:"h-8 w-8 text-primary"})}),e.jsx("h1",{className:"text-2xl md:text-3xl font-bold tracking-tight mb-4",children:s.title}),s.description&&e.jsx("p",{className:"text-xl text-muted-foreground max-w-2xl mx-auto",children:s.description}),i.total>0&&e.jsx("div",{className:"mt-6",children:e.jsxs("p",{className:"text-sm text-muted-foreground",children:[i.total," ",i.total===1?"artÃculo disponible":"artÃculos disponibles"]})})]}),n.length>0?e.jsxs("div",{className:"space-y-8",children:[e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:n.map(t=>e.jsx(c,{id:t.id,title:t.title,description:t.excerpt||t.description,path:t.path,publishedAt:t.published_at,duration:t.duration,contentType:"article",mediaType:t.media_type,isFavorited:t.is_favorited,isMarked:t.is_marked,levels:t.levels,languages:t.languages,techniques:t.techniques},t.id))}),i.last_page>1&&e.jsxs("div",{className:"flex items-center justify-center gap-2 mt-12",children:[r.prev&&e.jsx(l,{href:r.prev,children:e.jsxs(o,{variant:"outline",size:"sm",className:"gap-1",children:[e.jsx(a,{name:"chevron-left",className:"h-4 w-4"}),"Anterior"]})}),e.jsx("div",{className:"flex items-center gap-2 mx-4",children:e.jsxs("span",{className:"text-sm text-muted-foreground",children:["Página ",i.current_page," de"," ",i.last_page]})}),r.next&&e.jsx(l,{href:r.next,children:e.jsxs(o,{variant:"outline",size:"sm",className:"gap-1",children:["Siguiente",e.jsx(a,{name:"chevron-right",className:"h-4 w-4"})]})})]})]}):e.jsxs("div",{className:"text-center py-16",children:[e.jsx("div",{className:"inline-flex items-center justify-center w-16 h-16 bg-muted rounded-full mb-6",children:e.jsx(a,{name:"article",className:"h-8 w-8 text-muted-foreground"})}),e.jsx("h3",{className:"text-2xl font-semibold mb-2",children:"No hay artÃculos disponibles"}),e.jsx("p",{className:"text-muted-foreground max-w-md mx-auto",children:"Estamos trabajando en crear contenido increÃble para ti. Vuelve pronto para ver nuestros artÃculos."})]})]})]})}export{T 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.