1import{_ as A}from"./Dx800w2d.js";import{_ as B}from"./B7K5X7wM.js";import{_ as D}from"./Dm8ZxBZB.js";import{_ as C}from"./BtpXRz7a.js";import{d as h,o,k as l,z as m,D as v,Y as R,H as b,r as j,e as g,A as _,B as k,F,v as H,c as I,J as N,K as r,g as p,N as S,O as P}from"#entry";import{u as V}from"./BnDEbJEG.js";import{u as w}from"./Ckn04-zL.js";import{g as J}from"./CTLzj2DR.js";import{u as O}from"./DKy1MJYJ.js";import{s as K}from"./BJzQqtJO.js";import{u as Y}from"./DGewvQHX.js";import"./CgQPdWqg.js";import"./DGlqnLXn.js";import"./BVZ6Oj5b.js";import"./D60iFKJu.js";import"./DuQQ5T7M.js";import"./Tpn3rx2L.js";import"./C1zvPkS7.js";import"./CQsRh6wf.js";import"./DdSPAO-K.js";import"./58vMigpj.js";import"./B4ICz1G7.js";import"./DJqskIMg.js";import"./BTxG8n1N.js";import"./WffEOHFJ.js";import"./NIWiImTk.js";import"./D_jrsOKP.js";import"./D-_E0le2.js";import"./xthKyp8e.js";import"./DzoEpPy7.js";import"./DqXU2T_I.js";import"./BYTRu-Av.js";import"./DUeHV8XJ.js";import"./YZu9EfZB.js";const z={class:"grid-inside flex flex-col gap-6 sm:px-6"},E={key:0,class:"text-center text-gray-600"},M={key:1,class:"basis-full flex justify-center"},U=h({__name:"Home",props:{headline:{default:""},overviewLink:{default:null},teasers:{default:()=>[]}},setup(t){return(e,a)=>{const d=A,u=B,n=D,c=C;return o(),l("div",z,[m(d,{class:"text-center mb-4 text-xl sm:text-2xl md:text-3xl font-bold",type:"h2"},{default:v(()=>[R(b(t.headline),1)]),_:1}),!t.teasers||!t.teasers.length?(o(),l("div",E,[j("p",null,b(("globalLabel"in e?e.globalLabel:g(_))("no_articles_available_label")),1)])):k("",!0),m(n,{gap:"gap-6",justify:"justify-center"},{default:v(()=>[(o(!0),l(F,null,H(t.teasers,(s,f)=>(o(),I(u,{key:f,class:"!items-start max-w-full relative bg-white hover:bg-darkgreen active:bg-darkgreen-600 justify-center basis-full sm:basis-[calc(50%_-_12px)] md:basis-[calc(100%_/_3_-_16px)] lg:basis-[calc(25%_-_18px)]","aspect-ratio":"16:9",description:s.description,"date-from":s.dateFrom,tags:s.tags,headline:s.headline,image:s.image,"image-breakpoints":[],link:s.link},null,8,["description","date-from","tags","headline","image","link"]))),128))]),_:1}),t.overviewLink?.label?(o(),l("div",M,[m(c,{button:{label:t.overviewLink.label},link:{to:t.overviewLink.to,target:t.overviewLink.target}},null,8,["button","link"])])):k("",!0)])}}}),X={class:"page-grid-wide vertical-spacing-enabled","data-t-name":"teaser_articles_home"},Ce=h({__name:"Home",props:{previewId:{},headline:{default:""},localArticles:{default:()=>[]},globalArticlesRemote:{default:()=>[]},tagsRemote:{default:()=>[]}},async setup(t){let e,a;const{currentLocale:d}=N(),u=([e,a]=r(()=>S()),e=await e,a(),e),n=i=>V(`teaser-articles-home-${i}-${t.previewId}`),c=p(()=>_("specific_article_link_label")),s=p(()=>[...t.localArticles,...t.globalArticlesRemote].flat()),{data:f}=([e,a]=r(async()=>w(n("overview-link"),async()=>{const i=await J(u.articleOverviewPageId,d.id);return{label:_("show_all_articles_label"),target:"_self",to:i||"#"}},"$TogkkNvo9X")),e=await e,a(),e),x=([e,a]=r(()=>O({includeDateTo:!1,linkLabel:c,previewId:t.previewId,sortBy:K,teaserReferences:s.value})),e=await e,a(),e),{data:y}=([e,a]=r(()=>w(n("tags"),()=>P({references:t.tagsRemote}),"$J8JttFHYfA")),e=await e,a(),e),{teasers:L}=s.value.length?{teasers:{value:[]}}:([e,a]=r(()=>Y({includeDateTo:!1,initialTags:(y.value||[]).map(i=>i.name),linkLabel:c,rows:4,sortDateProperty:"sortDateFrom",sortDirection:"desc",templates:["local_data.tt_article","global_data.tt_article"]})),e=await e,a(),e),T=p(()=>s.value.length?x||[]:L?.value||[]);return(i,q)=>{const $=U;return o(),l("section",X,[m($,{headline:t.headline,"overview-link":g(f),teasers:g(T)},null,8,["headline","overview-link","teasers"])])}}});export{Ce 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.