1import{$t as e,C as t,G as n,Nt as r,Tt as i,W as a,d as o,dt as s,f as c,ft as l,h as u,m as d,nn as ee,p as f,pt as p,q as m,rn as h,x as g}from"./D9d_4q1I.js";import{t as _,u as v}from"./BDHHldE6.js";import{t as y}from"./DYWcKvqL.js";import{t as b}from"./o1IW3OlU.js";import{a as x,n as S}from"./LEvys-hS.js";import{r as C}from"./FJ2DA3F0.js";import{t as w}from"./Dxfv5RCo.js";import{t as T}from"./C8oVZPM9.js";import{a as E}from"./CQQPZUY-.js";import{t as D}from"./DsQnJyZX.js";import{t as O}from"./DCyf4pHg.js";import{t as k}from"./BDNMzG2s.js";import{t as te}from"./Crr40ORe.js";import{t as A}from"./BYPsvot5.js";import{_ as j,g as M}from"#entry";import{l as N}from"./BP2V21Dt.js";var P=S(`breakingNewsArticle`,()=>{let e=i(null),t=i(!1),n=o(()=>e.value?.type),r=o(()=>e.value?.id),a=o(()=>!!e.value?.id),s=o(()=>e.value?.prefix??{[N.BREAKING]:`EILMELDUNG`,[N.TICKER]:`LIVE-TICKER`,[N.SITUATION]:`AKTUELLE LAGE`}[e.value?.type??``]??``),c=o(()=>e.value?.type===N.BREAKING);async function l(){try{let n=E(),{data:r}=await w(`${n}/v6/breaking-news`,{key:`breakingNews`,server:!0,lazy:!1},`$IBVnKhSrt1`);e.value=r.value,t.value=!0}catch(n){console.error(`[breakingNews] Error fetching teaser`,n),e.value=null,t.value=!0}}return{data:e,isInitialized:t,getBreakingNewsType:n,getBreakingNewsId:r,hasBreakingNewsArticle:a,getBreakingNewsPrefix:s,isBreaking:c,fetchBreakingNewsTeaser:l}}),F=[`aria-labelledby`,`inert`],I={class:`dm-breakingNews-text md:ml-4 flex flex-col justify-center text-lg md:leading-8`},L=[`id`],R={class:`leading-5`},z=Object.assign(k(t({__name:`BreakingNewsTeaser`,async setup(t){let S,w,{dispatchAdobeAnalyticsBreakingNewsClickEvent:E}=C(),{showSidebar:k}=M(),z=y(`showBackdrop`,()=>k.value),B=P();[S,w]=s(()=>B.fetchBreakingNewsTeaser()),await S,w();let{data:V}=([S,w]=s(async()=>T(`breaking-news-teaser`,async()=>{let e=B.getBreakingNewsId;if(!e)return null;try{let{data:t}=await D(`articles/${e}/teaser`,void 0,!1,`v5`,!1);return t.value}catch(e){return console.error(`Failed to fetch breaking-news teaser`,e),null}},{watch:[()=>B.getBreakingNewsId]})),S=await S,w(),S),H=o(()=>!!V.value&&!V.value.isSoldContent),{isTaboolaInViewport:U}=x(j()),{isKsta:W,isRundschauOnline:G}=O(),K=o(()=>V.value?.documentId.toString()),q=o(()=>W.value&&B.getBreakingNewsType===N.BREAKING||G.value&&B.getBreakingNewsType!==N.BREAKING?`bg-breakingnews`:`bg-primary`),J=o(()=>V.value?.img?.baseUrl),Y=i(!1),X=i(!1),Z=i(null),Q=i(0),ne=o(()=>({"--min-height":`${Q.value}px`}));a(()=>{localStorage.getItem(`disableStickyBreakingNewsBar`)!==K.value&&(Y.value=!0,Q.value=Z.value?.offsetHeight,window.addEventListener(`scroll`,$,{passive:!0}),localStorage.removeItem(`disableStickyBreakingNewsBar`))}),n(()=>{window.removeEventListener(`scroll`,$)});let $=()=>{let e=window.scrollY;!X.value&&(Q.value=Z.value?.offsetHeight),X.value=e>=16&&Y.value},re=e=>{e!==void 0&&(Y.value=!1,localStorage.setItem(`disableStickyBreakingNewsBar`,e))};return(t,n)=>{let i=A,a=b,o=te;return r(H)&&r(V)?(m(),u(`section`,{key:0,ref_key:`breakingNewsBar`,ref:Z,class:e([`dm-breakingNews text-white leading-normal`,{sticky:r(Y),simple:r(X)}]),"aria-labelledby":r(K),"data-content-breakingNews":``,"data-k5a-pos":`eilmeldung`,style:ee(r(ne)),inert:r(k)||r(z)},[g(_,{name:`fade`},{default:l(()=>[p(c(`div`,{class:e([`dm-breakingNews-wrapper ml-auto mr-auto dm-container`,[r(q)]])},[c(`div`,{class:e([`dm-breakingNews-content w-full flex justify-between`,[r(q)]])},[g(a,{class:`flex items-center`,to:r(V).targetPathOrUrl,onClick:n[0]||=e=>r(E)(r(V).targetPathOrUrl)},{default:l(()=>[r(J)?(m(),f(i,{key:0,format:`avif`,provider:`kdm-imgx`,"img-attrs":{class:`object-cover rounded hidden md:block w-20 h-20`},src:r(J),width:`80`,height:`80`,sizes:`80px`,modifiers:{aspectRatio:`1:1`},alt:r(V).img?.altText,fit:`cover`},null,8,[`src`,`alt`])):d(``,!0),c(`div`,I,[c(`p`,{id:r(K),class:`uppercase font-bold tracking-widest`},h(r(B).getBreakingNewsPrefix),9,L),c(`p`,R,h(`${r(V).titlePrefix}: ${r(V).title}`),1)])]),_:1},8,[`to`]),r(X)?(m(),f(o,{key:0,class:`dm-breakingNews__icon ml-4 mt-1 cursor-pointer`,width:`14`,name:`closeButton`,onClick:n[1]||=e=>re(r(K))})):d(``,!0)],2)],2),[[v,!r(U)]])]),_:1})],14,F)):d(``,!0)}}}),[[`__scopeId`,`data-v-2d12388e`]]),{__name:`MoleculesBreakingNewsTeaser`});export{z 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.