PageSourceSearch

https://www.allgemeine-zeitung.de/assets/TopBlock-DnNvx1Ub.js

js allgemeine-zeitung.de collected 2026-10-01 10:33:55 UTC 3,856 bytes, 1 lines download raw bytes

1import{G as _,j as D,N as S,b8 as N,b9 as y,ba as b,bb as A,aR as O,P as B,O as G,bc as $,E as w,ak as E,aT as I,bd as P,be as q,a6 as z,_ as j,r as h,o as c,c as d,$ as m,a as x,w as F,l as k,h as u,U as v,F as L,e as M}from"./index-BpyDjooP.js";import{N as W}from"./NativeAd-D4Z4NKcm.js";import"./SeedingAllianceSDKLoader-Bps-jcd5.js";import"./index-BLEDgm8N.js";var R=Object.defineProperty,U=Object.getOwnPropertyDescriptor,p=(t,e,s,o)=>{for(var r=o>1?void 0:o?U(e,s):e,a=t.length-1,n;a>=0;a--)(n=t[a])&&(r=(o?n(e,s,r):n(r))||r);return o&&r&&R(e,s,r),r};const V=_("userServices/userServices"),g=_("edition");let i=class extends D(S){constructor(){super(...arguments),this.emits=["onClickOfContentBlockElement"],this.adSlotNames=N,this.adSlot=y,this.adserverDeviceSize=b,this.nativeAdTeaser=A,this.topBlockComponentId="topBlock"}get uniqueArticles(){return this.articles?(this.RemoveDuplicates.addArticlesToUniqueArticles(this.topBlockComponentId,this.articles),[...this.articles]):[]}get topGridItems(){const e=this.uniqueArticles.slice(1),s=[];let o=0,r=0;for(;o<this.maxTeasers&&o<e.length;){r+=1;const a=`articleSlot${r}`;this.hasSlot(a)?s.push({slotName:a,story:void 0}):(s.push({slotName:a,story:e[o]}),o+=1)}return s.filter(a=>{var n;return this.hasSlot(a.slotName)||((n=a.story)==null?void 0:n.teaserImage)})}get hasGridArticles(){return this.topGridItems.some(e=>!!e.story)}hasSlot(e){return this.$slots?!!this.$slots[e]:!1}handleTeaserClick({article:e},s){this.onClickOfContentBlockElement(e.url,s),this.navigate(e.url)}onClickOfContentBlockElement(e,s){const o=s??O(e,this.uniqueArticles);this.$emit("onClickOfContentBlockElement",{url:e,index:o,totalAmountOfStories:this.uniqueArticles.length})}async mounted(){}};p([B({default:()=>[]})],i.prototype,"articles",2);p([B({default:7})],i.prototype,"maxTeasers",2);p([V.Getter("getUserData")],i.prototype,"userData",2);p([g.Getter("getEdition")],i.prototype,"edition",2);p([g.Getter("isReichweitenportal")],i.prototype,"isReichweitenportal",2);i=p([G({name:"TopBlock",components:{LazyLoad:$,DnmContentWrapper:w,DnmDivider:E,DnmTeaser:I,DnmTeaserGrid:P,NativeAd:W,AdSlot:y,DnmModernTeaser:q,DnmBlockWrapper:z}})],i);const H={class:"topBlock","data-testid":"topBlock-container"},J={"data-testid":"topBlock-inner-container"},K={"data-testid":"topBlock-teaserGrid-wrapper-container",class:"topBlock__blockWrapper"},Q={key:0,class:"topBlock__teaserGrid","data-testid":"topBlock-teaserGrid"};function X(t,e,s,o,r,a){const n=h("DnmModernTeaser"),C=h("DnmContentWrapper");return c(),d("div",H,[m("div",J,[x(C,{"data-testid":"topBlock-hero-wrapper-container",size:"page"},{default:F(()=>[t.uniqueArticles.length>0?(c(),k(n,{key:0,onOnClick:e[0]||(e[0]=l=>t.handleTeaserClick(l,0)),story:t.uniqueArticles[0],"hide-author":!1,showTeaserTextDesktop:!0,showTeaserTextMobile:!0,class:"topBlock__teaser","data-testid":"topBlock-extraLargeTeaser",fetchpriority:"high","teaser-size-desktop":"extraLarge","teaser-size-mobile":"extraLarge"},null,8,["story"])):u("",!0)]),_:1}),v(t.$slots,"headlinesBlock",{},void 0,!0),m("div",K,[t.hasGridArticles?(c(),d("div",Q,[(c(!0),d(L,null,M(t.topGridItems,(l,T)=>(c(),d("div",{key:l.slotName},[t.hasSlot(l.slotName)?v(t.$slots,l.slotName,{key:0},void 0,!0):l.story&&l.story.teaserImage?(c(),k(n,{key:1,onOnClick:Y=>t.handleTeaserClick({article:l.story},T+1),story:l.story,"hide-author":!1,"teaser-size-desktop":"small","teaser-size-mobile":"large",class:"topBlock__item"},null,8,["onOnClick","story"])):u("",!0)]))),128))])):u("",!0)])])])}const re=j(i,[["render",X],["__scopeId","data-v-c521c67f"]]);var f;try{"__c"in i&&((f=i.__c).componentFileName??(f.componentFileName=Object.create(null)),Object.defineProperty(i.__c,"componentFileName",{value:"app/components/topStoriesFrontpage/TopBlock.vue"}))}catch(t){console.error("injectFileNamePlugin",t)}export{re 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.