1import{u as L,g as b,a as h,_ as k,b as w}from"./BbhI_2w7.js";import{u as x}from"./PAUwuvFl.js";import{d as B,l as N,f as A,w as I,F as S,c as $,g as R,u as a,h as F,b as E,i as n,o as p}from"./CZkBt2xh.js";import{u as M,b as U}from"./DLBIKPoT.js";import{f as V}from"./C7kmFqXR.js";import"./CyGcAh6K.js";import"./BDXRyRf1.js";const Q=B({__name:"index",async setup(q){let o,r;const t=x(),c=N(),{locale:e}=A(),u=n(()=>decodeURIComponent(c.params.category)),l=n(()=>1),{data:_}=([o,r]=I(async()=>M(`blog-posts-${e.value}`,async()=>await $fetch(U(e.value),{query:{language:e.value}}))),o=await o,r(),o),y=_.value??[],i=V(y,u.value);t.extractCategoryNameFromPost(i[0]),t.setBreadcrumbs([{name:t.categoryName,href:c.fullPath,current:!0}]);const g=n(()=>t.categoryName??t.categorySlug),{totalPages:s,paginatedItems:P}=L(i,l.value),f=`/${e.value}/blog/category/${encodeURIComponent(u.value)}`,d=b(l.value,s.value,f);return h("category",g.value,e,t.categorySlug,S.postList),(m,D)=>{const v=k,C=w;return p(),$("section",null,[R(v,{posts:a(P),title:m.$t("Category: ")+a(g)},null,8,["posts","title"]),a(s)>1?(p(),F(C,{key:0,totalPages:a(s),paginationLinks:a(d)},null,8,["totalPages","paginationLinks"])):E("",!0)])}}});export{Q 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.