1import{_ as I}from"./Baxo5DPD.js";import{_ as b}from"./Be7bcy3G.js";import{s as N}from"./_NoPZQEO.js";import{d as k,u as C,a as D,b as E,c as B,w as F,g as u,B as U,h as H,i as L,j as M,k as P,l as $,m as l,F as R,p as t,f as S,o as V}from"./tLDKk9pt.js";import"./D1KLRRyd.js";import"./CkSreoP_.js";import"./DVVa1oVD.js";import"./CsQrHEvO.js";import"./raCLa_PU.js";import"./Bvghhth9.js";const j={class:"sticky-top"},ee=k({__name:"[slug]",async setup(q){let r,m;const p=C(),w=D("siteData",()=>({})),{get:g}=E(),_=B(),i=t(()=>{const e=p.params.newsId;return Array.isArray(e)?e[0]:e}),d=t(()=>{const e=p.params.section;return Array.isArray(e)?e[0]:e}),{data:v,error:f}=([r,m]=F(async()=>S(`section-news-${d.value}-${i.value}`,async()=>{const e=_.value||"fi",a=i.value;if(!a)throw u({statusCode:404,statusMessage:"Page Not Found"});const n=await g(`/api/news/${a}`,e);if(!n)throw u({statusCode:404,statusMessage:"Page Not Found"});let o=[];if(n?.subsiteId)try{o=await g(`/api/news/newslist/subsite/${n.subsiteId}`,e)}catch{o=[]}return{news:n,newslist:o}},{server:!0,immediate:!0,watch:[i,d,()=>_.value]})),r=await r,m(),r);if(f.value)throw u(f.value);const s=t(()=>v.value?.news||{}),x=t(()=>v.value?.newslist||[]),h=t(()=>w.value?.staticUrl||""),T=t(()=>s.value.imageId&&s.value.imageExtension?`${h.value}/imagebank/${s.value.imageId}_big${s.value.imageExtension}`:`${h.value}/logos/logo-600.png`),c=t(()=>{const e=w.value?.name||"",a=s.value.pageTitle||"";return a?`${a} - ${e}`:e}),y=t(()=>N(s.value.pageText||""));U();const A=t(()=>window.location.href);return H({title:c}),L({title:c,ogTitle:c,ogImage:T,ogDescription:y,description:y,ogType:"article"}),(e,a)=>{const n=I,o=b;return V(),M(R,null,[P("div",j,[$(n)]),$(o,{news:l(s),newslist:l(x),"site-type":"section","share-url":l(A)},null,8,["news","newslist","share-url"])],64)}}});export{ee 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.