1import{_ as B}from"./Intro.vue.5dcb3ab4.js";import{u as D,_ as I,a as V}from"./RichText.vue.9c2cfe9b.js";import{a as A,_ as F}from"./Card.vue.22e9f349.js";import{a as M,_ as O}from"./Teaser.vue.a2e75982.js";import{_ as P}from"./nuxt-link.1becd45b.js";import{u as p,_ as S}from"./index.85fb2ed9.js";import{a as U,B as T,C as E,s as z,o as t,e as n,f as s,K as g,P as b,u as c,D as r,E as m,c as d,t as h,i as _,h as J}from"./entry.2181e815.js";import{u as K}from"./useSeo.6a1b8697.js";import"./_plugin-vue_export-helper.c27b6911.js";import"./UiCardMedia.a6db2b0f.js";const Z={class:"grid md:grid-cols-1 lg:grid-cols-[1fr,360px] xl:grid-cols-[1fr,395px] md:gap-8 lg:gap-16 xl:-mb-32"},q={class:"text-sm text-white"},G={key:0,class:"text-sm text-white ml-1"},H={class:"flex justify-start items-center gap-2"},Q=s("span",{class:""}," Read more ",-1),W={class:"hidden lg:block"},X={key:0,class:"lg:max-w-[447px]"},ee=["src","alt","title"],te={key:0,class:"mt-4 text-right text-sm text-grey font-bold sr-only"},se={class:"lg:mt-28"},ne={class:"border-b border-black-900 pb-3"},ae={class:"text-[21px] font-light text-anthracite"},oe={class:"grid gap-4 grid-cols-1 sm:gap-6 xl:gap-8 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 mt-6"},ie=U({__name:"List",async setup(L){let o,u;const{$contentfulClient:w}=T(),{data:l,pending:Y}=([o,u]=E(()=>D("get-news",()=>w.getEntries({content_type:"news_article",order:"-fields.date",include:2}))),o=await o,u(),o),v=z(()=>{let a=[];return Object.entries(l.value.items).slice(1).forEach(([x,i])=>{a.some(f=>f.id===p(i.fields.date,"YYYY").value)||a.push({id:p(i.fields.date,"YYYY").value,name:p(i.fields.date,"YYYY").value,news:[]}),a[a.findIndex(f=>f.id===p(i.fields.date,"YYYY").value)].news.push(i)}),a}),C=a=>p(a,"DD.MM.YYYY").value;return(a,x)=>{const i=V,f=A,$=M,k=P,R=S,N=I,j=F;return t(),n(g,null,[s("div",null,[(t(!0),n(g,null,b(c(l).items,(e,y)=>(t(),n(g,{key:e.sys.id},[y==0?(t(),d(N,{key:0,background:"pattern-gradient-01",size:"xl",width:"base"},{default:m(()=>[r(R,{color:"white"},{default:m(()=>[s("div",Z,[s("div",null,[s("span",q,h(C(e.fields.date)),1),e.fields.estimatedReadingTime?(t(),n("span",G,"· "+h(e.fields.estimatedReadingTime)+" min read",1)):_("",!0),s("h1",null,h(e.fields.title),1),r(i,{class:"lead",document:e.fields.teaser},null,8,["document"]),s("div",H,[e.fields.externalUrl?(t(),d(f,{key:0,class:"fill-black-800"})):_("",!0),e.fields.externalUrl?(t(),d(k,{key:1,to:e.fields.externalUrl,target:"_blank",class:"flex justify-start items-center gap-2"},{default:m(()=>[J(" Read More "),r($,{class:"fill-white"})]),_:2},1032,["to"])):(t(),d(k,{key:2,to:{name:"news-slug",params:{slug:e.fields.slug}},class:"flex justify-start items-center gap-2"},{default:m(()=>[Q,r($,{class:"fill-white"})]),_:2},1032,["to"]))])]),s("div",W,[e.fields.image&&e.fields.image[0]?(t(),n("div",X,[r(k,{to:{name:"news-slug",params:{slug:e.fields.slug}}},{default:m(()=>[s("img",{src:e.fields.image[0].thumbnails.webimage,alt:e.fields.image[0].name,title:e.fields.image[0].name,class:"w-full aspect-[395/447] object-cover lg:drop-shadow-md m-0"},null,8,ee),e.fields.image[0].description?(t(),n("div",te,h(e.fields.image[0].description),1)):_("",!0)]),_:2},1032,["to"])])):_("",!0)])])]),_:2},1024)]),_:2},1024)):_("",!0)],64))),128))]),r(N,{background:"white",width:"base"},{default:m(()=>[s("div",se,[(t(!0),n(g,null,b(c(v),e=>(t(),n("div",{key:e.id,class:"mb-16"},[s("div",ne,[s("h4",ae,h(e.name),1)]),s("div",oe,[(t(!0),n(g,null,b(e.news,y=>(t(),d(j,{article:y,key:y.sys.id,border:!0},null,8,["article"]))),128))])]))),128))])]),_:1})],64)}}}),le={key:0},re={key:1},ye=U({__name:"index",async setup(L){let o,u;const{$contentfulClient:w}=T(),{data:l,pending:Y}=([o,u]=E(()=>D("get-page-news",()=>w.getEntry("3ZoUgdifwaNOuyy0CDJDnh"))),o=await o,u(),o);return K(l),(v,C)=>{const a=B,x=ie,i=O;return t(),n("div",null,[c(Y)?(t(),n("div",le,"Loading ...")):(t(),n("div",re,[c(l).fields.intro?(t(),d(a,{key:0,intro:c(l).fields.intro},null,8,["intro"])):_("",!0),r(x),c(l).fields.pageTeaser?(t(),d(i,{key:1,teaser:c(l).fields.pageTeaser},null,8,["teaser"])):_("",!0)]))])}}});
1export{ye 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.