1import{G as C,j as _,N as w,b8 as M,b9 as S,ba as P,bb as N,k as B,K as O,u as H,bv as l,p as I,aQ as z,b4 as E,P as h,a5 as L,O as F,bc as G,E as R,ak as U,bw as $,_ as j,r as p,o as y,c as v,a as n,am as V,w as d,h as W}from"./index-D-iuxWOd.js";import{B as Q}from"./BlockVisibilityTracker.component-qQ6l5Y2Y.js";import{N as q}from"./NativeAd-BpYkkt_r.js";import{g as K}from"./adSlotProperties-BXGkrmq8.js";import{T as k}from"./TeaserMapper-D0iPVvbm.js";import{a as J}from"./BlockDivider-DABsdPv0.js";import"./SeedingAllianceSDKLoader-Yf9-dXXq.js";import"./index-BXk4ke_e.js";var X=Object.defineProperty,Y=Object.getOwnPropertyDescriptor,r=(t,e,s,a)=>{for(var i=a>1?void 0:a?Y(e,s):e,m=t.length-1,c;m>=0;m--)(c=t[m])&&(i=(a?c(e,s,i):c(i))||i);return a&&i&&X(e,s,i),i};const g=C("edition"),f=C("metaSectionBlock");let o=class extends _(Q,w){constructor(){super(...arguments),this.adSlotNames=M,this.adSlot=S,this.adserverDeviceSize=P,this.nativeAdTeaser=N,this.context=B(()=>{const e=O(),s=e.getters["metaSectionBlock/getContent"],a=J(e,s);return H(a),{}})}get teaserMapper(){return new k(this.currentEdition)}serverPrefetch(){return this.getData()}async getData(){var e;if(!((e=this.sectionTagConfiguration)!=null&&e.id)){await this.clearContent();return}try{const s=[l.OnlineStory,l.Comment,l.Gloss,l.MultimediaStory,l.Gallery];this.sectionTagConfiguration.tags.length&&s.push(l.ShortNote);const a=await this.getPartialContent({name:"sectionTagConfigurationStories",parameters:{id:parseInt(this.sectionTagConfiguration.id,10),types:s,count:this.storiesAmount?this.storiesAmount:this.teaserAmount,activeEdition:!0}});if(a!=null&&a.sectionTagConfigurationStories&&"stories"in a.sectionTagConfigurationStories){const i=new k(this.currentEdition);await this.setContent(i.map(a.sectionTagConfigurationStories.stories.items))}}catch(s){I.error("Failed to fetch partial sectionArticles",{error:s}),await this.clearContent()}}async mounted(){this.blockHeadline=this.$t("headerStories.headline"),this.isMounted=!0,this.shouldDisplayComponent&&!this.intersectionObserverIsInitialized&&this.initViewportObserver();const e=[];this.mappedArticles||e.push(this.getData()),await Promise.all(e),z(this.blockUUID,this.blockHeadline,this.$refs.trackedBlock),this.shouldDisplayComponent&&E(this.blockUUID)}unmounted(){return this.clearContent()}handleTeaserClick({article:e}){this.mappedArticles&&(this.handleClickTrackingOfContentBlock(this.blockUUID,"Article",e.url,this.mappedArticles.findIndex(s=>s.id===e.id)+1,this.mappedArticles.length,e.clickUrl),this.navigate(e.url))}get shouldDisplayComponent(){var e;return!!((e=this.mappedArticles)!=null&&e.length)}get traffectiveRectangleAdProperties(){return K({testId:"ad-traffective-rectangle"})}};r([h()],o.prototype,"teaserAmount",2);r([h()],o.prototype,"storiesAmount",2);r([h()],o.prototype,"sectionTagConfiguration",2);r([h({required:!0})],o.prototype,"isHeroMode",2);r([g.Getter("getShortcut")],o.prototype,"editionShortcut",2);r([g.Getter("getEdition")],o.prototype,"currentEdition",2);r([g.Getter("isReichweitenportal")],o.prototype,"isReichweitenportal",2);r([f.Getter("getContent")],o.prototype,"mappedArticles",2);r([f.Action("setContent")],o.prototype,"setContent",2);r([f.Action("clearContent")],o.prototype,"clearContent",2);r([L("getPartialContent")],o.prototype,"getPartialContent",2);o=r([F({name:"HeaderStories",components:{LazyLoad:G,AdSlot:S,DnmContentWrapper:R,DnmDivider:U,DnmTeaserThreeBelow:$,NativeAd:q}})],o);const Z={ref:"trackedBlock"},x={key:0,class:"headerStories","data-block-observer":"intersection-observer-block"};function ee(t,e,s,a,i,m){const c=p("LazyLoad"),u=p("NativeAd"),b=p("DnmTeaserThreeBelow"),A=p("DnmDivider"),D=p("DnmContentWrapper");return y(),v("section",Z,[t.shouldDisplayComponent?(y(),v("div",x,[n(b,{onOnTeaserClick:t.handleTeaserClick,articles:t.mappedArticles,"desktop-hero":t.isHeroMode,"mobile-sizes":["medium","medium","medium"],"teaser-amount":t.teaserAmount,class:"headerStories__articles","hide-author":"",fetchpriority:"high","no-lazyload":""},V({articleSlot1:d(()=>[n(u,{"teaser-style-mobile":t.nativeAdTeaser.TeaserMMobile,"teaser-style-desktop":t.nativeAdTeaser.TeaserMDesktop},null,8,["teaser-style-mobile","teaser-style-desktop"])]),default:d(()=>[n(c,{component:t.adSlot,"component-data":t.traffectiveRectangleAdProperties,class:"headerStories__adSlot","data-testid":"ad-traffective-rectangle"},null,8,["component","component-data"])]),_:2},[t.isReichweitenportal?void 0:{name:"articleSlot7",fn:d(()=>[n(u,{"teaser-style-mobile":t.nativeAdTeaser.TeaserMMobile,"teaser-style-desktop":t.nativeAdTeaser.TeaserMDesktop},null,8,["teaser-style-mobile","teaser-style-desktop"])]),key:"0"},t.isReichweitenportal?{name:"articleSlot5",fn:d(()=>[n(u,{"teaser-style-mobile":t.nativeAdTeaser.TeaserMMobile,"teaser-style-desktop":t.nativeAdTeaser.TeaserMDesktop},null,8,["teaser-style-mobile","teaser-style-desktop"])]),key:"1"}:void 0]),1032,["onOnTeaserClick","articles","desktop-hero","teaser-amount"]),n(D,{size:"extraLarge"},{default:d(()=>[n(A,{class:"headerStories__divider","divider-type":"solid-thin"})]),_:1})])):W("",!0)],512)}const pe=j(o,[["render",ee],["__scopeId","data-v-3a625b1a"]]);var T;try{"__c"in o&&((T=o.__c).componentFileName??(T.componentFileName=Object.create(null)),Object.defineProperty(o.__c,"componentFileName",{value:"app/components/headerStories/HeaderStories.vue"}))}catch(t){console.error("injectFileNamePlugin",t)}export{pe 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.