(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1163],{70498:function(e,t,r){Promise.resolve().then(r.t.bind(r,25250,23)),Promise.resolve().then(r.t.bind(r,60950,23)),Promise.resolve().then(r.bind(r,21533)),Promise.resolve().then(r.bind(r,60452)),Promise.resolve().then(r.t.bind(r,46987,23)),Promise.resolve().then(r.bind(r,1977)),Promise.resolve().then(r.t.bind(r,11949,23)),Promise.resolve().then(r.bind(r,5018)),Promise.resolve().then(r.bind(r,6698)),Promise.resolve().then(r.bind(r,53011)),Promise.resolve().then(r.t.bind(r,10861,23)),Promise.resolve().then(r.bind(r,18165)),Promise.resolve().then(r.bind(r,49820)),Promise.resolve().then(r.bind(r,2431)),Promise.resolve().then(r.bind(r,3919)),Promise.resolve().then(r.t.bind(r,42562,23)),Promise.resolve().then(r.t.bind(r,59851,23)),Promise.resolve().then(r.t.bind(r,73226,23)),Promise.resolve().then(r.t.bind(r,41996,23)),Promise.resolve().then(r.t.bind(r,79439,23)),Promise.resolve().then(r.t.bind(r,46830,23)),Promise.resolve().then(r.t.bind(r,80440,23))},60452:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return s}});var n=r(57437),a=r(46741),i=r.n(a);function s(e){let{html:t,position:r}=e;return(0,n.jsx)("section",{className:i().individual+" individual-content","data-position":r,dangerouslySetInnerHTML:{__html:t}})}},1977:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return l}});var n=r(57437),a=r(2265),i=r(89556),s=r.n(i);function l(e){let{threshold:t,children:r,onEnter:i,identifier:l}=e,[o,c]=(0,a.useState)(!1),[u,d]=(0,a.useState)(!1),m=(0,a.useRef)(!1),h=null;return(0,a.useEffect)(()=>{m.current=!0;let e=new IntersectionObserver(e=>{e.map(e=>{setTimeout(()=>{c(e.isIntersecting)},100),e.isIntersecting&&setTimeout(()=>{d(!0)},100);let t=new CustomEvent("viewport-change");null==h||h.dispatchEvent(t),i&&e.isIntersecting&&i()})},{threshold:t});return window.requestAnimationFrame(()=>{null!==h&&e.observe(h)}),()=>{m.current=!1}},[h,i,t]),(0,n.jsx)("div",{className:s().wrapper+" viewport-observer","data-in-viewport":o,"data-was-in-viewport":u,ref:e=>h=e,"data-identifier":l,children:r})}},13849:function(e,t,r){"use strict";r.d(t,{Z:function(){return h}});var n=r(57437),a=r(7051),i=r(21533),s=r(80440),l=r.n(s),o=r(8792),c=r(88016),u=r(5660),d=r(25351);function m(e){let{team:t}=e;return(0,n.jsx)(o.default,{href:"/mannschaft/"+t.id+"/"+(0,c.O)(t.name),prefetch:!1,children:t.name})}function h(e){var t,r,s,h,p;let{teaser:f,imageWidth:_=800,imageHeight:v=500,priority:g=!1,clubId:x=-1}=e,b=["/artikel/","/vorbericht/","/spielbericht/"][f.type||0]+f.id+"/"+(0,c.O)(f.mainTitle),j=["Zum Artikel","Zum Vorbericht","Zum Spielbericht"][f.type||0];return(0,n.jsxs)("div",{className:"article-teaser",children:[f.coverImage?(0,n.jsx)(i.default,{src:null===(t=f.coverImage)||void 0===t?void 0:t.source,alt:null===(r=f.coverImage)||void 0===r?void 0:r.alt,width:_,height:v,link:b,priority:g}):(0,n.jsx)(o.default,{href:b,className:"image-box no-image","data-club-team":"away",prefetch:!1,style:{"--ratio":_+"/"+v,"--width":_+"px","--height":v+"px"},children:f.type===a.Iq._0?(0,n.jsx)("div",{className:"center news-teaser",children:(0,n.jsx)(u.Z,{text:"NEWS"})}):f.type===a.Iq._1?(()=>{let e=f.match.description,t=f.match.description||"";if(e&&e.indexOf("Spieltag")>0){let r=e.indexOf("Spieltag");t=e.substring(0,e.indexOf(",",r-7))+"<br>"+e.substring(e.indexOf(",",r-7)+2)}return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(i.default,{width:Math.round(_/3),height:Math.round(_/3),src:f.match.homeTeam.image?f.match.homeTeam.image.source:void 0,mode:"max"}),(0,n.jsx)("div",{className:"center",children:(0,n.jsx)("p",{dangerouslySetInnerHTML:{__html:t}})}),(0,n.jsx)(i.default,{width:Math.round(_/3),height:Math.round(_/3),src:f.match.awayTeam.image?f.match.awayTeam.image.source:void 0,mode:"max"})]})})():(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(i.default,{width:Math.round(_/3),height:Math.round(_/3),src:f.match.homeTeam.image?f.match.homeTeam.image.source:void 0,mode:"max"}),(0,n.jsx)("div",{className:"center",children:(0,n.jsx)(u.Z,{text:f.match.homeTeamGoals+":"+f.match.awayTeamGoals})}),(0,n.jsx)(i.default,{width:Math.round(_/3),height:Math.round(_/3),src:f.match.awayTeam.image?f.match.awayTeam.image.source:void 0,mode:"max"})]})}),(0,n.jsxs)("div",{className:"text-box",children:[(0,n.jsx)("h3",{className:l().title+" article-teaser-title",children:(0,n.jsx)(o.default,{href:b,prefetch:!1,children:f.mainTitle})}),(0,n.jsxs)("div",{className:l().meta+" article-meta",children:[(0,n.jsxs)("span",{className:"teaser-type-date",children:[(f.type===a.Iq._0?"Artikel":f.type===a.Iq._1?"Spielank\xfcndigung":"Spielbericht")+" vom ",(0,n.jsx)(d.Z,{date:new Date(f.releaseDate),showTime:!1,showWeekDay:!1})]}),f.relations&&(null===(s=f.relations)||void 0===s?void 0:s.length)>0&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:l().separator+" separator",children:"\xb7"}),(0,n.jsxs)("ul",{className:l().relations,children:[null===(h=f.relations)||void 0===h?void 0:h.map((e,t)=>{if(t<3)return e.type===a.sS._0?(0,n.jsx)("li",{children:(0,n.jsx)(m,{team:{id:e.id,name:e.name}})},t):(0,n.jsx)("li",{children:(0,n.jsx)(o.default,{href:"/seite/"+e.id+"/"+(0,c.O)(e.name),prefetch:!1,children:e.name})},t)}),(null===(p=f.relations)||void 0===p?void 0:p.length)>3&&(0,n.jsx)("li",{children:"+"+(f.relations.length-3)})]})]})]}),f.subTitle&&(0,n.jsx)("p",{className:l().copy+" article-teaser-copy",children:f.subTitle}),(0,n.jsx)("p",{children:(0,n.jsx)(o.default,{href:b,className:"article-teaser-cta",prefetch:!1,children:j})})]})]})}},6698:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return o}});var n=r(57437),a=r(48344),i=r(58481);r(56931);var s=r(13849),l=r(2265);function o(e){let{teasers:t,imageWidth:r,imageHeight:o,slidesPerView:c}=e,u=(0,l.useRef)(-1);return(0,l.useEffect)(()=>{u.current=parseInt(document.documentElement.dataset.clubId)},[]),(0,n.jsx)("div",{className:"article-slider",children:(0,n.jsxs)(a.tq,{modules:[i.W_,i.tl,i.pt],loop:!0,centeredSlides:!0,slidesPerView:c,speed:400,autoplay:{delay:8e3,disableOnInteraction:!0,pauseOnMouseEnter:!0},parallax:{enabled:!0},grabCursor:!0,pagination:{clickable:!0,el:".pagination"},navigation:{enabled:!0,prevEl:".prev",nextEl:".next"},children:[t&&t.map(e=>(0,n.jsx)(a.o5,{children:(0,n.jsx)(s.Z,{teaser:e,imageWidth:r,imageHeight:o,priority:!0,clubId:u.current})},e.id)),(0,n.jsxs)("div",{className:"swiper-controls article-slider-controls",children:[(0,n.jsx)("button",{className:"prev",children:"Zur\xfcck"}),(0,n.jsx)("div",{className:"pagination"}),(0,n.jsx)("button",{className:"next",children:"Weiter"})]})]})})}},53011:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return c}});var n=r(57437),a=r(2265),i=r(10861),s=r.n(i);r(69881);var l=r(13849);function o(e){let{index:t,teaser:r,imageWidth:a,imageHeight:i}=e;return(0,n.jsx)("div",{className:s().col+" article-teaser-grid-col","data-index":t,style:{"--index":t},children:(0,n.jsx)(l.Z,{teaser:r,imageWidth:a,imageHeight:i})})}function c(e){let{children:t,type:r,batchSize:i,id:l,slug:c,preloadedArticles:u}=e,d=(0,a.useRef)(u||t.length),[m,h]=(0,a.useState)([]),[p,f]=(0,a.useState)(!1),_=async e=>{let t="/artikel/teaser/";"month"===r?t+="monat/"+c+"/"+l+"/"+d.current+"/"+e:t+=r+"/"+l+"/"+d.current+"/"+e,fetch(t).then(e=>e.json()).then(t=>{t.length===e?(d.current+=t.length-1,f(!0),h([...m,...t.slice(0,t.length-1)])):(d.current+=t.length,f(!1),h([...m,...t]))}).catch(e=>{console.log(e)})};return(0,a.useEffect)(()=>{_(1).then(e=>{})},[]),(0,n.jsxs)("div",{className:s().wrapper+" article-teaser-grid",children:[t,m.map((e,t)=>(0,n.jsx)(o,{index:t,teaser:e},"article-teaser-col-"+e.id)),p&&(0,n.jsx)("div",{className:s().buttonWrapper+" button-wrapper",children:(0,n.jsx)("button",{className:"load-more",onClick:()=>_(i+1),children:"Mehr laden"})})]})}},49820:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return _}});var n=r(57437),a=r(2265),i=r(2431);r(18165);var s=r(46830),l=r.n(s);function o(e){let{matches:t,leagueId:r,leagueName:a,domain:s}=e,o=function(e){let t=new Date().getTime(),r=0,n=new Date,a={closest:-1,last:-1,next:-1};return e.map((e,a)=>{if(e.startTime){let i=new Date(e.startTime).getTime()-n.getTime();Math.abs(i)<t&&(t=Math.abs(i),r=a)}}),a.closest=r,new Date(e[r].startTime).getTime()>n.getTime()?(a.next=r,a.last=r-1):(a.next=e.length>r+1?r+1:-1,a.last=r),a}(t),c=[],u=o.last;for(;c.length<5&&u>0;){let e=t[u];null!==e.awayTeamGoals&&null!==e.homeTeamGoals&&c.unshift(e),u--}return(0,n.jsxs)("div",{className:l().wrapper+" match-center",children:[(0,n.jsx)("div",{className:l().slider+" match-slider-wrapper",children:(0,n.jsx)(i.default,{matches:t,closestMatchIndex:o.closest,domain:s})}),r&&!1]})}r(5018);var c=r(66643);function u(e){let{teamId:t,emptyHeight:r=0,domain:i}=e,[s,u]=(0,a.useState)(!0),[d,m]=(0,a.useState)(void 0),h=(0,a.useRef)(null),[p,f]=(0,a.useState)(r);return((0,a.useEffect)(()=>{fetch("./match-center/"+t).then(e=>e.json()).then(e=>{e.matches&&m(e),u(!1),setTimeout(()=>{h.current&&f(h.current.querySelector(".match-center").offsetHeight)},250)}).catch(e=>{console.log(e)})},[t]),s)?(0,n.jsx)("div",{className:l().loader+" loading-animation",style:{"--height":r+"px"},children:(0,n.jsx)(c.Z,{isVisible:!0})}):(0,n.jsx)(n.Fragment,{children:d&&(0,n.jsx)("div",{ref:h,className:l().loadedWrapper,style:{"--height":p+"px"},children:(0,n.jsx)(o,{matches:d.matches,leagueId:d.leagueId,leagueName:d.leagueName,domain:i})})})}var d=r(35929),m=r.n(d),h=r(24658),p=r.n(h);function f(e){let{children:t,width:r="wide",className:a}=e;return(0,n.jsx)("div",{className:a?p().container+" grid-container "+a:p().container+" grid-container","data-width":r,children:t})}function _(e){let{teams:t,children:r,containerWidth:i="narrow",domain:s}=e,[l,o]=(0,a.useState)(0),[c,d]=(0,a.useState)(t.map((e,t)=>0===t?r:void 0)),[h,p]=(0,a.useState)(0),[_,v]=(0,a.useState)(!1),g=(0,a.useRef)(null),x=(0,a.useRef)(null);return(0,n.jsxs)("div",{className:"match-center-selector",children:[t.length>1&&(0,n.jsx)("div",{className:"tabs-wrapper",children:(0,n.jsx)("div",{className:m().tabs+" match-center-selector-tabs tabs",children:t.length>1&&t.map((e,t)=>(0,n.jsx)("button",{className:m().tab+" match-center-selector-tab tab",onClick:()=>{if(x.current&&p(x.current.offsetHeight),!c[t]){let r=[...c];r[t]=(0,n.jsx)(u,{teamId:e.id,emptyHeight:x.current.offsetHeight,domain:s}),d([...r])}setTimeout(()=>{o(t),v(!0)},50),setTimeout(()=>{x.current&&p(x.current.offsetHeight)},250),setTimeout(()=>{v(!1),p(0)},500)},"data-current":l===t,children:e.name},e.id))})}),(0,n.jsx)(f,{width:"narrow",children:(0,n.jsx)("div",{className:m().items+" match-center-selector-items",ref:g,style:{"--height":h+"px"},"data-changing":_,children:t.map((e,t)=>(0,n.jsx)("div",{className:m().item+" match-center-selector-item","data-current":l===t,ref:l===t?x:null,children:0===t?r:c[t]&&c[t]},t))})})]})}},69881:function(){},59851:function(){},42562:function(){},60950:function(e){e.exports={page:"_zizou__page__xiZ6M",sliderOverflow:"_zizou__sliderOverflow__zFAVt",sliderContainer:"_zizou__sliderContainer__GBqsi",small:"_zizou__small__U1gFF",sponsorWrapper:"_zizou__sponsorWrapper__UHfsB",sponsorTitle:"_zizou__sponsorTitle__NmfVC",newsHeadline:"_zizou__newsHeadline__p3jwZ"}},24658:function(e){e.exports={container:"grid-container_container__IsQwr"}},46741:function(e){e.exports={individual:"individual-content_individual___awM6"}},46987:function(e){e.exports={wrapper:"magazine-mockup_wrapper__taZL8",coverTop:"magazine-mockup_coverTop__teQJy",coverBottom:"magazine-mockup_coverBottom__D_b_L",image:"magazine-mockup_image__RStCm",back:"magazine-mockup_back__2ctI4",overlay:"magazine-mockup_overlay__81Jr2",link:"magazine-mockup_link__G_xZP"}},89556:function(e){e.exports={wrapper:"viewport-observer_wrapper__WcBjS"}},80440:function(e){e.exports={title:"article-teaser_title__g4nzX",copy:"article-teaser_copy__p1gGh",separator:"article-teaser_separator__HkPN_",meta:"article-teaser_meta__Evcua",relations:"article-teaser_relations__a_2IA"}},11949:function(e){e.exports={wrapper:"latest-magazine_wrapper__QXtZn",mockup:"latest-magazine_mockup__GKRTx",titleWrapper:"latest-magazine_titleWrapper__yPoED",linkWrapper:"latest-magazine_linkWrapper__QKR9C"}},10861:function(e){e.exports={wrapper:"article-teaser-grid_wrapper__Oc0dY",col:"article-teaser-grid_col__j9SHP",buttonWrapper:"article-teaser-grid_buttonWrapper__2snyD"}},35929:function(e){e.exports={wrapper:"match-center-selector_wrapper__aaL3k",tabs:"match-center-selector_tabs__gH_kK",tab:"match-center-selector_tab__VFPkx",items:"match-center-selector_items__cxTxP",item:"match-center-selector_item__JH9cr"}},25566:function(e){var t,r,n,a=e.exports={};function i(){throw Error("setTimeout has not been defined")}function s(){throw Error("clearTimeout has not been defined")}function l(e){if(t===setTimeout)return setTimeout(e,0);if((t===i||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(r){try{return t.call(null,e,0)}catch(r){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:i}catch(e){t=i}try{r="function"==typeof clearTimeout?clearTimeout:s}catch(e){r=s}}();var o=[],c=!1,u=-1;function d(){c&&n&&(c=!1,n.length?o=n.concat(o):u=-1,o.length&&m())}function m(){if(!c){var e=l(d);c=!0;for(var t=o.length;t;){for(n=o,o=[];++u<t;)n&&n[u].run();u=-1,t=o.length}n=null,c=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===s||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function p(){}a.nextTick=function(e){var t=Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];o.push(new h(e,t)),1!==o.length||c||l(m)},h.prototype.run=function(){this.fun.apply(null,this.array)},a.title="browser",a.browser=!0,a.env={},a.argv=[],a.version="",a.versions={},a.on=p,a.addListener=p,a.once=p,a.off=p,a.removeListener=p,a.removeAllListeners=p,a.emit=p,a.prependListener=p,a.prependOnceListener=p,a.listeners=function(e){return[]},a.binding=function(e){throw Error("process.binding is not supported")},a.cwd=function(){return"/"},a.chdir=function(e){throw Error("process.chdir is not supported")},a.umask=function(){return 0}}}]);