1import{_ as B,a as S,b as M,u as N}from"./BEvp7jzQ.js";import{u as D,g as A,_ as L}from"./B6xZcsF9.js";import{b as T}from"./DGCny9rL.js";import{b as V,u as E}from"./5aCzlDsU.js";import{u as I,g as q}from"./DOkDOHrm.js";import{a as z,c as F}from"./Dzu9X8dz.js";import{y as G,d as m,a7 as l,D as J,M as _,Q as g,V as u,Z as p,z as t,J as Q,a0 as R,N as o}from"./Dih8WrAh.js";import"./DY8FDT8e.js";const Z={class:"min-h-screen pb-32 md:pb-36 xl:pb-52"},j={class:"wrapper-main-grid"},H={id:"section-posts",class:"relative w-full content-main pt-8 md:pt-15 xl:pt-24"},K={class:"grid gap-8 md:gap-10 xl:gap-15"},O={class:"grid gap-8 md:gap-10 xl:gap-5 xl:grid-cols-12 xl:gap-x-2"},U={key:0,class:"grid gap-2 md:grid-cols-2 xl:grid-cols-3 xl:col-start-1 xl:col-span-12"},W=12,le=G({__name:"index",async setup(X){let e,a;const f=T(),i=m(()=>Number(f.query.page)||1),c=m(()=>f.params.category),{data:n}=([e,a]=l(()=>D()),e=await e,a(),e),{data:d}=([e,a]=l(()=>N()),e=await e,a(),e),h=n.value?.post_featured?.slug,{data:r,status:x}=([e,a]=l(()=>E(`posts-${i.value}-${c.value}`,()=>A({page:i.value,limit:W,categorySlug:c.value,exclude:h?[h]:void 0,fetchPreviousPages:!0}),{watch:[i,c]})),e=await e,a(),e),y=m(()=>x.value==="pending"),{Collections:v}=V(),b=([e,a]=l(()=>q(c.value,v.PostCategories)),e=await e,a(),e);return I(b),J(()=>{z(F.dark)}),(Y,ee)=>{const P=B,C=S,$=L,k=M;return o(),_("main",Z,[g("div",j,[t(n)?.post_featured?(o(),u(P,{key:0,posts:{...t(n).post_featured,url:`/blog/${t(n).post_featured.category?.slug}/${t(n).post_featured.slug}`}},null,8,["posts"])):p("",!0),g("section",H,[g("div",K,[t(d)?.length&&t(d).length>1?(o(),u(C,{key:0,items:t(d),description:t(n)?.description},null,8,["items","description"])):p("",!0),g("div",O,[t(r)?.items?.length?(o(),_("div",U,[(o(!0),_(Q,null,R(t(r).items,(s,w)=>(o(),u($,{key:w,name:s.name,excerpt:s.excerpt,image:s.image,"date-published":s.date_published,tags:s.tags,url:`/blog/${s.category?.slug}/${s.slug}`},null,8,["name","excerpt","image","date-published","tags","url"]))),128))])):p("",!0),t(r)&&t(r).page<t(r).pageTotal?(o(),u(k,{key:1,"is-loading":t(y),label:"ÐÑÑ","current-page":t(i)},null,8,["is-loading","current-page"])):p("",!0)])])])])])}}});export{le 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.