1import{_ as D,a as x}from"./D6SiLBhx.js";import{_ as B}from"./BS97Atg7.js";import{f as L,g as N}from"./C677hslQ.js";import{z as V,k as c,ad as $,M as p,P as H,X as S,L as o,V as s,N as _,Z as l,Q as u,u as i,a0 as f}from"./CrQeYvpp.js";import"./b59VrHHm.js";import"./BJ_W4llo.js";const z={class:"grid grid-cols-2 gap-15 lg:grid-cols-3"},A={class:"col-span-2"},E={key:0,class:"mb-2 text-sm text-gray-500"},F={class:"mb-2 flex items-center gap-5"},I=["datetime"],M={key:0,class:"text-gray-500"},P={class:"max-lg:col-span-2"},J=V({__name:"NewsArticle",props:{page:{}},setup(h){const t=h,{t:k,locale:y,locales:v}=L(),b=c(()=>{if(!t.page.date)return;const e=new Date(t.page.date),n={year:"numeric",month:"long",day:"numeric"},a=v.value.find(r=>r.code===y.value);return e.toLocaleDateString((a==null?void 0:a.language)||"de-CH",n)}),w=c(()=>[{link:t.page.link_external,link_text:k("more")},...t.page.links]),m=c(()=>{var e;return t.page.publisher?t.page.publisher.title:(e=t.page.site_attributes.find(n=>n.key==="title"))==null?void 0:e.value});return(e,n)=>{const a=D,r=B,d=x,C=N,g=$("editor-target");return p(),H(C,null,{default:S(()=>[o(a),s("div",z,[s("div",A,[e.page.news_category?(p(),_("p",E,l(e.page.news_category.title),1)):u("",!0),s("div",F,[s("time",{class:"font-semibold",datetime:e.page.date},l(i(b)),9,I),i(m)?(p(),_("p",M,l(i(m)),1)):u("",!0)]),o(r,{data:{heading:e.page.heading,text:e.page.text,image:e.page.image,copyright:e.page.copyright,links:i(w)}},null,8,["data"]),f(o(d,{components:e.page.main_components},null,8,["components"]),[[g,"main_components"]])]),s("div",P,[f(o(d,{class:"space-y-7",components:e.page.sidebar_components},null,8,["components"]),[[g,"sidebar_components"]])])])]),_:1})}}});
1export{J as default}; 2//# sourceMappingURL=DP-pVa4r.js.map
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.