1import{u as d,P as g}from"./CIVOnScL.js";import{A as f,r as w,g as t,C as y,k as b,o as _,m as h,i as v,s as k,f as C,q as R}from"./BQTrDalH.js";import"./ByF-qhxo.js";const x={__name:"[type]",async setup(T){let n,i;const s=f(),u=R(),a=w([]),l=t(()=>{let{type:e}=s.params;if(e==="e2r")return"/posts/e2r";switch(e){case"articles":e="news,blogpost";break;case"reports":e="report";break;case"events":e="event";break}return`/posts/type/${e}`}),c=t(()=>{const{type:e}=s.params;switch(e){case"articles":return"Articles";case"reports":return"Reports";case"events":return"Events";case"e2r":return"Easy-to-Read";default:return e.charAt(0).toUpperCase()+e.slice(1)}}),r=t(()=>`${c.value} | ${u.public.defaultTitle}`),o=t(()=>`Browse ${c.value.toLowerCase()} on Inclusion Europe. Find content about intellectual disabilities and inclusion in Europe.`),m=t(()=>`https://www.inclusion.eu${s.path}`);d({title:r,description:o,ogTitle:r,ogDescription:o,ogImage:"https://str.inclusion.eu/5a26bd9ba60fa87b430d4df09.jpeg",ogUrl:m,ogType:"website",twitterCard:"summary_large_image",twitterTitle:r,twitterDescription:o,twitterImage:"https://str.inclusion.eu/5a26bd9ba60fa87b430d4df09.jpeg"});const p=async()=>{try{const e=await k(l.value);a.value=C.treatPosts(e)}catch(e){console.error("Failed to load posts for type:",e),a.value=[]}};return[n,i]=y(()=>p()),await n,i(),b(()=>s.params.type,p),(e,$)=>(_(),h(g,{posts:v(a)},null,8,["posts"]))}};export{x 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.