1import{_ as e}from"./B_OLg8Ov.js";import{_ as t}from"./z4s6d8Hm.js";import{_ as s}from"./lg9o9LRO.js";import{S as a}from"./xAuj_4Kn.js";import{m as l,W as n,L as r,J as i,O as o,i as c,aa as m,f as d,l as h,g as p,ay as u,a5 as f,h as k,F as g,X as v,E as y}from"./QvumuJSn.js";import"./BGIaSxfl.js";import"./BtemctAn.js";import"./8w-lTKDC.js";import"./DqtWg5kG.js";const w={key:0,class:"row c-news"},_={class:"col-12"},b={key:0},x={key:1},j={key:2},$={key:0,class:"col-12 mt-2xl"},A={key:0},z={key:1},E={key:2},L={key:1,class:"row c-events"},O={class:"col-12"},S={key:0},q={key:1},C={key:2},N={key:0,class:"col-12 mt-xl"},B={key:0},F={key:1},J={key:2},T=l({__name:"ContentLatestNewsEvents",props:{element:{type:Object,default:()=>({})}},setup(l){const T=n(l.element.data["latest-news-events"]),W=n(!1);function X(){const e=document.querySelector(".content")?.querySelector("[data-theming]");e&&(W.value=!0)}function D(e){return e.teaser_image?{...e.teaser_image,alt:e.teaser_image.alt.length>0?e.teaser_image.alt:`${e.teaser_title} Bild`}:null}return r(()=>{window.addEventListener("load",X)}),i(()=>{window.removeEventListener("load",X)}),(l,n)=>{const r=e;return o(),c("div",{class:y(m(T).brick_spacing.text)},[m(T).news&&m(T).news.length>0?(o(),c("div",w,[d("div",_,[h(t,{class:"d-inline-block mb-m",tag:m(T).headline.tag,size:m(T).headline.size,color:m(T).headline.color,font:m(T).headline.font,value:m(T).headline.text},null,8,["tag","size","color","font","value"]),m(T).href&&!m(W)?(o(),p(r,{key:0,class:"d-inline-block link-primary has-gap float-right mt-xl mb-0",to:m(T).href.url},{default:u(()=>[n[0]||(n[0]=d("i",{class:"icon-arrow-right"},null,-1)),m(T).href.text?(o(),c("span",b,f(m(T).href.text),1)):m(T).news?(o(),c("span",x,f(l.$t("mr.news.seeAll")),1)):(o(),c("span",j,f(l.$t("mr.events.seeAll")),1))]),_:1},8,["to"])):k("",!0)]),(o(!0),c(g,null,v(m(T).news,e=>(o(),c("div",{key:`${e.timestamp}-${e.teaser_title}`,class:"col-12 col-md-6 col-lg-4 d-flex mt-m"},[h(s,{data:{dateTimestamp:e.timestamp,chip:e.teaser_chip,tags:e.teaser_tags,title:e.teaser_title,subline:e.teaser_subline,scriber:e.teaser_scriber,image:D(e),link:{path:e.url}}},null,8,["data"])]))),128)),m(W)?(o(),c("div",$,[m(T).href?(o(),p(r,{key:0,class:"d-inline-block link-primary has-gap mt-0 mb-0",to:m(T).href.url},{default:u(()=>[n[1]||(n[1]=d("i",{class:"icon-arrow-right"},null,-1)),m(T).href.text?(o(),c("span",A,f(m(T).href.text),1)):m(T).news?(o(),c("span",z,f(l.$t("mr.news.seeAll")),1)):(o(),c("span",E,f(l.$t("mr.events.seeAll")),1))]),_:1},8,["to"])):k("",!0)])):k("",!0)])):k("",!0),m(T).events&&m(T).events.length>0?(o(),c("div",L,[d("div",O,[h(t,{class:"d-inline-block",tag:m(T).headline.tag,size:m(T).headline.size,color:m(T).headline.color,font:m(T).headline.font,value:m(T).headline.text},null,8,["tag","size","color","font","value"]),m(T).href&&!m(W)?(o(),p(r,{key:0,class:"d-inline-block link-primary has-gap float-right mt-m mb-0",to:m(T).href.url},{default:u(()=>[n[2]||(n[2]=d("i",{class:"icon-arrow-right"},null,-1)),m(T).href.text?(o(),c("span",S,f(m(T).href.text),1)):m(T).events?(o(),c("span",q,f(l.$t("mr.news.seeAll")),1)):(o(),c("span",C,f(l.$t("mr.events.seeAll")),1))]),_:1},8,["to"])):k("",!0)]),(o(!0),c(g,null,v(m(T).events,(e,t)=>(o(),c("div",{key:t,class:"col-12"},[h(a,{background:!0,event:e,class:y(["border-bottom-gray"])},null,8,["event"])]))),128)),m(W)?(o(),c("div",N,[m(T).href?(o(),p(r,{key:0,class:"d-inline-block link-primary has-gap mt-0 mb-0",to:m(T).href.url},{default:u(()=>[n[3]||(n[3]=d("i",{class:"icon-arrow-right"},null,-1)),m(T).href.text?(o(),c("span",B,f(m(T).href.text),1)):m(T).events?(o(),c("span",F,f(l.$t("mr.news.seeAll")),1)):(o(),c("span",J,f(l.$t("mr.events.seeAll")),1))]),_:1},8,["to"])):k("",!0)])):k("",!0)])):k("",!0)],2)}}}),W=Object.assign(T,{__name:"ContentLatestNewsEvents"});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.