1import{C as y}from"./D0dJld0Q.js";import{P as g}from"./BMp6nHyR.js";import{u as m}from"./BXg5iT3N.js";import{_,m as f,f as h,o as e,w as x,a as i,t as C,c as n,u as c,F as b,r as k,b as q}from"./BLeG-53b.js";const v={class:"white-box"},w={key:0,class:"grid"},B={key:1},N={__name:"CategoryGrid",props:{title:{type:String,required:!0},category:{type:String,required:!1},tag:{type:String,required:!1},limit:{type:Number,default:-1}},async setup(u){let r,l;const t=u,s={};t.category&&(s.category=t.category),t.tag&&(s.tag=t.tag),t.limit>0&&(s.limit=t.limit);const d=t.category?"/api/posts/by-category":"/api/posts/by-tag",{data:a,pending:S,error:F}=([r,l]=f(()=>m(d,{query:s},"$K8gyyCU6Aj")),r=await r,l(),r);return(P,p)=>(e(),h(y,null,{default:x(()=>[i("h1",null,[i("span",null,C(t.title),1)]),i("div",v,[c(a)&&c(a).posts&&c(a).posts.length?(e(),n("div",w,[(e(!0),n(b,null,k(c(a).posts,o=>(e(),n("div",{key:o._id,class:"item"},[q(g,{post:o,"thumb-url":o.featuredImage,excerpt:o.excerpt},null,8,["post","thumb-url","excerpt"])]))),128))])):(e(),n("div",B,[...p[0]||(p[0]=[i("p",null,"No posts found in this category.",-1)])]))])]),_:1}))}},V=_(N,[["__scopeId","data-v-88a7f03d"]]);export{V as C};
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.