1import{_ as S}from"./-RCkYmhY.js";import{d as $,I as L,u as B,a as C,D,c as v,b as T,e as x,p as H,g as n,f as I,m as j,t as y,n as M,_ as P,o as u,j as V}from"./ClNJI8-F.js";import{u as q,a as A}from"./BueBVBPX.js";import{u as J}from"./DgHlGEkp.js";import{q as g}from"./BxWxQ_54.js";const O={class:"mx-auto w-full max-w-3xl px-4 py-16 sm:px-6 text-muted-foreground prose-headings:text-foreground prose-headings:font-display"},R={key:1,class:"flex flex-col items-center gap-4 py-12 text-center"},E={class:"text-muted-foreground"},W=$({__name:"[slug]",async setup(U){let o,d;const i=L(),a=i.params.slug,{locale:t}=B(),p=C(),{articleSchema:h,breadcrumbSchema:w,siteUrl:s}=q(),m=l=>l.find(c=>c.stem===`news/${a}`)??null,{data:e}=([o,d]=D(async()=>J(`news-${a}`,async()=>{const l="content_"+t.value,c=await g(l).all(),r=m(c);if(r)return r;const b="content_"+(t.value==="en"?"nl":"en"),N=await g(b).all();return m(N)},{watch:[t]})),o=await o,d(),o),k=v(()=>t.value==="en"?"News":"Nieuws"),_=v(()=>e.value?.meta?.date??"");return e.value&&(A({title:e.value.title||a,description:e.value.description||"",type:"article"}),T({script:[{type:"application/ld+json",innerHTML:JSON.stringify(h({headline:e.value.title||a,description:e.value.description||"",url:`${s.value}${i.path}`,datePublished:_.value,dateModified:_.value}))},{type:"application/ld+json",innerHTML:JSON.stringify(w([{name:"myHospi",url:s.value},{name:k.value,url:`${s.value}${p({name:"news"})}`},{name:e.value.title||a,url:`${s.value}${i.path}`}]))}]})),(l,c)=>{const r=S,f=P;return u(),x("div",O,[n(e)?(u(),H(r,{key:0,value:n(e)},null,8,["value"])):(u(),x("div",R,[I("p",E,y(n(t)==="en"?"This article could not be found.":"Dit artikel kon niet worden gevonden."),1),j(f,{to:n(p)("/news"),class:"inline-flex items-center gap-2 rounded-xl bg-primary px-5 py-2.5 text-sm font-semibold text-primary-foreground shadow-glow transition-all duration-200 hover:-translate-y-0.5 hover:shadow-glow-lg"},{default:M(()=>[V(y(n(t)==="en"?"Back to news":"Terug naar nieuws"),1)]),_:1},8,["to"])]))])}}});export{W 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.