1import{_ as h}from"./Hbb64fdk.js";import{w as g,g as p,r as k,e as v,u as d,o as r,c as n,t as S,i as m,a as A,F as N,m as b,h as x}from"./CDYf_z8R.js";const B={key:0,class:"relative w-full mx-auto pt-8"},C={key:0},q={class:"grid lg:grid-cols-3 gap-8"},$={__name:"TaggedArchive",props:{tagSlug:{type:String,required:!0},perPage:{type:Number,default:3},startAt:{type:Number,default:0},title:{type:String,default:""}},async setup(_){var u;let t,a;const e=_,{data:o}=([t,a]=g(()=>p("/api/wp/tags",{key:"wp-tags-id-"+e.tagSlug,query:{slug:e.tagSlug,_fields:"id"},transform:s=>s.map(c=>c.id)},"$4tj5skoA3f")),t=await t,a(),t),l=k([]);if(((u=o.value)==null?void 0:u.length)>0){const{data:s}=([t,a]=g(()=>p("/api/wp/posts/",{key:"wp-posts-tagged-"+e.tagSlug+"-"+e.perPage+"-"+e.startAt,query:{tags:o.value,_embed:1,per_page:e.perPage,offset:e.startAt}},"$HHE2mcCUSX")),t=await t,a(),t);l.value=s.value??[]}const i=v(()=>l.value??[]);return(s,c)=>{const f=h;return d(i).length>0?(r(),n("div",B,[e.title?(r(),n("h2",C,S(e.title),1)):m("",!0),A("div",q,[(r(!0),n(N,null,b(d(i),(w,y)=>(r(),x(f,{key:y,class:"transition-all bg-white","news-item":w},null,8,["news-item"]))),128))])])):m("",!0)}}};export{$ as _};
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.