1import{bI as k,j as e,p as x,O as c,bR as j,b7 as S}from"./vendor-C5QacT2q.js";import{H as b}from"./HreflangTags-DIEX-61r.js";import{P as u,S as o,B as l}from"./index-_y3oABWT.js";import{P as N}from"./PublicFooter-BsRPyuEN.js";import{B as v}from"./BlogPostCard-CCD7PWnJ.js";import{u as y,a as P}from"./blogApi-Bp-aJYdf.js";import"./Checkbox-Dg_y66Ex.js";import"./newsletterApi-BJDQDbN2.js";import"./dateUtils-i9IlGY82.js";import"./format-BFE4oBax.js";import"./en-US-D6IU6k5x.js";import"./toDate-DwuWbJ7T.js";import"./isValid-YNamk7dH.js";import"./es-CFJbFQLb.js";const C="_main_km59b_1",f="_hero_km59b_7",B="_heroContent_km59b_28",L="_heroTitle_km59b_35",I="_heroSubtitle_km59b_42",T="_container_km59b_49",F="_categoriesNav_km59b_56",H="_categoriesList_km59b_62",A="_categoryLink_km59b_74",D="_activeCategory_km59b_91",E="_categorySkeleton_km59b_102",R="_grid_km59b_109",$="_emptyState_km59b_128",w="_pagination_km59b_141",z="_pageInfo_km59b_149",M="_paginationButton_km59b_154",V="_cardSkeleton_km59b_161",O="_imageSkeleton_km59b_168",q="_contentSkeleton_km59b_173",G="_metaSkeleton_km59b_177",J="_titleSkeleton_km59b_183",K="_textSkeleton_km59b_189",t={main:C,hero:f,heroContent:B,heroTitle:L,heroSubtitle:I,container:T,categoriesNav:F,categoriesList:H,categoryLink:A,activeCategory:D,categorySkeleton:E,grid:R,emptyState:$,pagination:w,pageInfo:z,paginationButton:M,cardSkeleton:V,imageSkeleton:O,contentSkeleton:q,metaSkeleton:G,titleSkeleton:J,textSkeleton:K},ce=()=>{const[m,g]=k(),n=parseInt(m.get("page")||"1",10),_=9,{data:s,isFetching:p}=y({page:n,limit:_}),{data:d,isFetching:h}=P(),r=a=>{g({page:a.toString()}),window.scrollTo({top:0,behavior:"smooth"})};return e.jsxs(e.Fragment,{children:[e.jsxs(x,{children:[e.jsx("title",{children:"Blog de Viajes | Estoy Bien Mamá"}),e.jsx("meta",{name:"description",content:"Descubre guÃas de viaje, consejos y experiencias únicas en nuestro blog. InspÃrate para tu próxima aventura con Estoy Bien Mamá."})]}),e.jsx(b,{path:"/blog"}),e.jsx(u,{}),e.jsxs("main",{className:t.main,children:[e.jsx("section",{className:t.hero,children:e.jsxs("div",{className:t.heroContent,children:[e.jsx("h1",{className:t.heroTitle,children:"Nuestro Blog"}),e.jsx("p",{className:t.heroSubtitle,children:"Inspiración, guÃas y consejos para tu próxima gran aventura."})]})}),e.jsxs("div",{className:t.container,children:[e.jsx("nav",{className:t.categoriesNav,children:e.jsxs("div",{className:t.categoriesList,children:[e.jsx(c,{to:"/blog",className:`${t.categoryLink} ${t.activeCategory}`,children:"Todos"}),h?Array.from({length:4}).map((a,i)=>e.jsx(o,{className:t.categorySkeleton},i)):d?.categories.map(a=>e.jsx(c,{to:`/blog/categoria/${a.slug}`,className:t.categoryLink,children:a.name},a.id))]})}),p?e.jsx("div",{className:t.grid,children:Array.from({length:6}).map((a,i)=>e.jsxs("div",{className:t.cardSkeleton,children:[e.jsx(o,{className:t.imageSkeleton}),e.jsxs("div",{className:t.contentSkeleton,children:[e.jsx(o,{className:t.metaSkeleton}),e.jsx(o,{className:t.titleSkeleton}),e.jsx(o,{className:t.textSkeleton})]})]},i))}):s?.posts.length===0?e.jsxs("div",{className:t.emptyState,children:[e.jsx("h3",{children:"No hay artÃculos publicados aún."}),e.jsx("p",{children:"Vuelve pronto para leer nuestras nuevas historias."})]}):e.jsx("div",{className:t.grid,children:s?.posts.map(a=>e.jsx(v,{post:a},a.id))}),s?.pagination&&s.pagination.totalPages>1&&e.jsxs("div",{className:t.pagination,children:[e.jsxs(l,{variant:"outline",onClick:()=>r(n-1),disabled:!s.pagination.hasPreviousPage,className:t.paginationButton,children:[e.jsx(j,{size:16})," Anterior"]}),e.jsxs("span",{className:t.pageInfo,children:["Página ",n," de ",s.pagination.totalPages]}),e.jsxs(l,{variant:"outline",onClick:()=>r(n+1),disabled:!s.pagination.hasNextPage,className:t.paginationButton,children:["Siguiente ",e.jsx(S,{size:16})]})]})]})]}),e.jsx(N,{})]})};export{ce 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.