1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./Bl-Nqv2r.js","./hePW80VL.js","./BpGcXV2e.js","./4gh-ulZd.js","./2UTV2ym5.js","./CP2Bccje.js","./HclGiUj8.js","./YNMyq-QT.js","./DKgZkKTd.js","./Cia-Xc4x.js","./CXtGhIEP.js"])))=>i.map(i=>d[i]); 2import{Fn as e,Gn as t,Hr as n,In as r,Ln as i,Rn as a,Un as o,Vr as s,Wn as c,Wt as l,ar as u,dr as d,fn as f,fr as p,jn as m,lr as h,mr as g,qn as _,rr as v,sr as y,xr as b,zn as x,zr as S}from"./BpGcXV2e.js";import{i as C,t as w}from"./eaYuiTZg.js";import{t as T}from"./HclGiUj8.js";import{t as E}from"./4gh-ulZd.js";import{t as D}from"./CturPZPS.js";import{t as O}from"./CEd-TZnb.js";import{n as k,t as A}from"./DztLKgn62.js";import{t as j}from"./BJEiuW7d2.js";import{t as M}from"./BXDBbBrw2.js";import{t as N}from"./CXvGqirA2.js";import{t as P}from"./BzqSi7Tt2.js";import{t as F}from"./DvvriGjA2.js";function I(e){return e===`/`?`home`:e.startsWith(`/themen/`)?`topic`:e.startsWith(`/news/`)?`category`:null}function L(e){return e||(window.location?.pathname?window.location.pathname:``)}function R(e){if(!e)return null;if(!e.startsWith(`http://`)&&!e.startsWith(`https://`))return e;try{let t=new URL(e);return`${t.pathname}${t.search}${t.hash}`||`/`}catch{return e}}function z(){return typeof performance<`u`&&typeof performance.now==`function`?Math.max(0,Math.round(performance.now())):0}function B(t={}){let n=L(t.routePath),r=I(n),i=e(()=>r!==null),a=new Map,o=.5,s=null,c=e=>{w().trackEvent({event:`ti_teaser_impression`,ti_article_id:String(e.article_id),ti_article_title:e.article_title,ti_article_category:e.article_category,ti_article_url:e.article_url,ti_teaser_position:String(e.teaser_position),ti_teaser_type:e.teaser_type,ti_teaser_color:e.teaser_color,ti_page_location:e.page_location,ti_page_type:e.page_type,ti_time_to_impression_ms:String(e.time_to_impression_ms)}),C().queueOrTrackEvent({schema:`iglu:com.russmedia/teaser_impression/jsonschema/1-0-0`,data:e})},l=e=>{e.forEach(e=>{if(!e.isIntersecting||e.intersectionRatio<o)return;let t=a.get(e.target);if(!t||!r)return;let i=t;c({article_id:i.id,article_title:i.shortTitle?.trim()?i.shortTitle:i.title,article_category:i.relevantCategories?.[0]?.slug??``,article_url:R(i.link),teaser_position:i.indexInList,teaser_type:i.meta?.rmTeaserSettings?.priority??``,teaser_color:i.meta?.rmTeaserSettings?.color??`white`,page_location:n,page_type:r,time_to_impression_ms:z()}),s?.unobserve(e.target),a.delete(e.target)})},u=()=>{!i.value||typeof IntersectionObserver>`u`||(s&&s.disconnect(),s=new IntersectionObserver(l,{threshold:[o]}),a.forEach((e,t)=>{s?.observe(t)}))};return{init:()=>{u()},registerTeaser:(e,t)=>{!i.value||!e||(a.set(e,t),s?.observe(e))},unregisterTeaser:e=>{e&&(s?.unobserve(e),a.delete(e))},isTrackingEnabled:i,destroy:()=>{s?.disconnect(),s=null,a.clear()}}}var V=[`data-zone`],H=Object.assign(t({__name:`RiverContentZone`,props:{index:{default:null},zone:{}},setup(e){return(t,n)=>{let r=j;return h(),x(`div`,{"data-zone":e.zone.slug,class:`flex flex-col`},[o(r,{zone:e.zone,index:e.index,"render-on-server":8},null,8,[`zone`,`index`])],8,V)}}}),{__name:`ListingZonesRiverContentZone`}),U={class:`mb-8 md:mb-12`},W={class:`flex w-full`},G={class:`flex flex-col`},K=Object.assign(t({__name:`Grid`,props:{posts:{},river:{},aside:{},hasAside:{type:Boolean},shouldRenderEscalatedFirstPost:{type:Boolean}},setup(e){let{contentDevice:t}=D();return(n,o)=>{let c=H,l=F;return h(),x(`div`,U,[r(`div`,W,[r(`div`,{class:s([`grid flex-1 grid-cols-1 gap-6 w-full md:grid-cols-2 md:gap-8 lg:max-w-[988px] lg:pr-7`,{"mx-auto":!e.hasAside}]),"data-k5a-stream-context":`listing`},[(h(!0),x(m,null,d(e.posts,(o,s)=>(h(),x(m,{key:o.id},[r(`div`,G,[p(n.$slots,`post`,{post:o})]),e.river&&S(t)!==`desktop`?(h(),i(c,{key:0,zone:e.river,index:o.indexInList},null,8,[`zone`,`index`])):a(``,!0),e.river&&S(t)===`desktop`&&(s+1)%2==0?(h(),i(c,{key:1,class:`md:col-span-2`,zone:e.river,index:o.indexInList},null,8,[`zone`,`index`])):a(``,!0)],64))),128))],2),e.hasAside?(h(),i(l,{key:0,zone:e.aside},null,8,[`zone`])):a(``,!0)])])}}}),{__name:`ListingTeaserStreamGrid`}),q={class:`mb-8 md:mb-12`},J={key:0,class:`mb-6 md:mb-8`},Y={class:`w-full lg:max-w-[988px]`},X={class:`flex w-full`},Z=Object.assign(t({__name:`List`,props:{posts:{},river:{},aside:{},hasAside:{type:Boolean},shouldRenderEscalatedFirstPost:{type:Boolean}},setup(e){return(t,n)=>{let o=H,c=F;
2return h(),x(`div`,q,[e.shouldRenderEscalatedFirstPost?(h(),x(`div`,J,[r(`div`,Y,[p(t.$slots,`escalated`)])])):a(``,!0),r(`div`,X,[r(`div`,{class:s([`flex flex-col flex-1 gap-6 w-full lg:max-w-[660px] md:gap-8 lg:pr-7`,{"mx-auto":!e.hasAside}]),"data-k5a-stream-context":`listing`},[e.river&&e.shouldRenderEscalatedFirstPost?(h(),i(o,{key:0,zone:e.river,index:1},null,8,[`zone`])):a(``,!0),(h(!0),x(m,null,d(e.posts,n=>(h(),x(`div`,{key:n.id,class:`flex flex-col`},[p(t.$slots,`post`,{post:n}),e.river?(h(),i(o,{key:0,zone:e.river,index:n.indexInList},null,8,[`zone`,`index`])):a(``,!0)]))),128))],2),e.hasAside?(h(),i(c,{key:0,zone:e.aside},null,8,[`zone`])):a(``,!0)])])}}}),{__name:`ListingTeaserStreamList`}),Q=c(()=>T(()=>import(`./Bl-Nqv2r.js`).then(e=>e.n).then(e=>e.default||e),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9]),import.meta.url)),$=c(()=>T(()=>import(`./CXtGhIEP.js`).then(e=>e.n).then(e=>e.default||e),__vite__mapDeps([10,1,2,3,5,6,7,4,8]),import.meta.url)),ee=Object.assign(t({inheritAttrs:!1,__name:`TeaserStream`,props:{posts:{},river:{},aside:{},top:{},layout:{default:`list`},noLink:{type:Boolean,default:!1},totalPages:{},currentPage:{},useEndlessScrolling:{type:Boolean,default:!0}},emits:[`teaserClicked`],setup(t,{emit:r}){let s=r,c=l(),d=f(),{contentDevice:p}=D(),m=e(()=>p.value===`desktop`&&t.aside!==null&&t.aside.widgets.desktop?.length>0),C=e(()=>t.posts[0]??{}),w=e(()=>!m.value||!C.value||C.value.indexInList!==1?!1:C.value.meta?.rmTeaserSettings?.escalation??!1),T=e(()=>w.value?t.posts.slice(1):t.posts),j=e(()=>t.layout===`grid`?t.posts:T.value),F=e(()=>t.layout===`grid`?K:Z),I=e(()=>({posts:j.value,river:t.river,aside:t.aside,hasAside:m.value,shouldRenderEscalatedFirstPost:t.layout===`list`&&w.value})),L=B(),R=new Map,{getPostClickTrackingAttrs:z}=N();function V(e){return`${e.id}-${e.indexInList}`}function H(e){return e instanceof Element?e:e&&`$el`in e&&e.$el instanceof Element?e.$el:null}function U(e,t){let n=V(t),r=R.get(n),i=H(e);r&&i===r||(r&&(L.unregisterTeaser(r),R.delete(n)),i&&(R.set(n,i),L.registerTeaser(i,t)))}function W(e){return E(e).isSmallPriority}function G(e){return k({portal:d.public.portal,context:`listing`,postId:e.id,pagePath:c.name||`/`})}function q(e){return A(G(e))}
2function J(e){return{id:q(e),"data-k5a-teaser-slot":`1`,"data-k5a-placement-id":G(e),"data-k5a-slot-index":e.indexInList,"data-k5a-post-id":e.id}}let{pageType:Y}=P();return y(()=>{L.init()}),u(()=>{R.forEach(e=>{L.unregisterTeaser(e)}),R.clear(),L.destroy()}),(e,r)=>{let c=M,l=Q,u=$,d=O;return h(),x(`div`,null,[t.top?(h(),i(c,{key:0,zone:t.top},null,8,[`zone`])):a(``,!0),(h(),i(g(S(F)),n(_(S(I))),{escalated:b(()=>[o(l,v({ref:e=>U(e,S(C)),post:S(C),"no-link":t.noLink,"hydrate-on-idle":300,"click-tracking-attrs":S(z)(S(C),S(Y))},J(S(C)),{onClick:r[0]||=e=>s(`teaserClicked`,S(C))}),null,16,[`post`,`no-link`,`click-tracking-attrs`])]),post:b(({post:e})=>[W(e)?(h(),i(u,v({key:0,ref:t=>U(t,e),post:e,"hydrate-on-idle":300,"click-tracking-attrs":S(z)(e,S(Y))},J(e)),null,16,[`post`,`click-tracking-attrs`])):(h(),i(l,v({key:1,ref:t=>U(t,e),post:e,"no-link":t.noLink,"hydrate-on-idle":300,"click-tracking-attrs":S(z)(e,S(Y))},J(e),{onClick:t=>s(`teaserClicked`,e)}),null,16,[`post`,`no-link`,`click-tracking-attrs`,`onClick`]))]),_:1},16)),t.totalPages>1?(h(),i(d,v({key:1,"total-pages":t.totalPages,"current-page":t.currentPage,"use-endless-scrolling":t.useEndlessScrolling},e.$attrs),null,16,[`total-pages`,`current-page`,`use-endless-scrolling`])):a(``,!0)])}}}),{__name:`ListingTeaserStream`});export{ee as t}; 3//# sourceMappingURL=sDkqmXqQ2.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.