1import{b as ot,c as ct}from"./chunk-X522XGHA.js";import{a as st,b as lt,c as pt,d as gt}from"./chunk-TNQBGYBQ.js";import{b as nt}from"./chunk-46HRU5YR.js";import{a as at}from"./chunk-FVASXMB3.js";import"./chunk-N4GWBV3F.js";import"./chunk-ASO27INZ.js";import"./chunk-QAFSWRL2.js";import{a as et}from"./chunk-A6MEQZWF.js";import{a as tt}from"./chunk-RYWUMLDM.js";import"./chunk-YBE4IB3R.js";import"./chunk-7U3FER75.js";import"./chunk-4GH3AM3V.js";import{e as rt}from"./chunk-2PIFM5XW.js";import"./chunk-LIFTHMD7.js";import"./chunk-363JTE5Z.js";import"./chunk-7GRXOUXB.js";import"./chunk-H2D5WQ7P.js";import{a as u}from"./chunk-PYOFE56J.js";import"./chunk-OHOBVAJB.js";import"./chunk-ECPEYKOO.js";import"./chunk-VNL26FE5.js";import{c as J}from"./chunk-5OESTBPU.js";import"./chunk-SXAD3KPV.js";import"./chunk-5KE5K3NK.js";import"./chunk-W2XDE4W5.js";import"./chunk-FYE46HZQ.js";import"./chunk-DNI2PYCJ.js";import"./chunk-EQZ35AGL.js";import{b as V}from"./chunk-LE2AW6WY.js";import{f as Z,w as it}from"./chunk-N2KITTLU.js";import"./chunk-YEP2OIZR.js";import"./chunk-EH2JI7H5.js";import{Fa as Y,Ha as q,m as G,p as v,pa as Q,ua as X}from"./chunk-N74YK5JJ.js";import{$ as N,E as j,P as y,Q as b,Z as H,_ as z,aa as K,da as P,v as B,y as $}from"./chunk-M64NCBXQ.js";import{$a as M,$c as g,Dc as r,E as O,Fc as s,Ha as T,Hc as E,Ic as R,Jc as A,Kc as d,Kd as I,Lc as l,Ld as
1L,Ma as n,Mc as c,Nc as p,Tf as U,Ub as a,g as k,gb as S,gc as D,ge as F,hc as W,od as C,pd as w,r as _,t as x}from"./chunk-OZIFALDO.js";function mt(i,t){i&1&&(l(0,"div",0),p(1,"img",1),C(2," This wiki article does not exist (anymore). "),c())}function ut(i,t){i&1&&(l(0,"div",2),p(1,"dfl-loader-teaser",5),c())}function ft(i,t){if(i&1&&(l(0,"h1",9),C(1),c()),i&2){let e=g(3);a(),w(e.headline)}}function Ct(i,t){if(i&1&&p(0,"dfl-editorial-wiki",10),i&2){let e=g(3);d("article",e.article)("language",e.language.code)}}function kt(i,t){if(i&1&&p(0,"dfl-wiki-teaser",14),i&2){let e=t.$implicit;d("article",e)("width",200)}}function _t(i,t){if(i&1&&(l(0,"section",11)(1,"span",12),C(2),I(3,"translate"),c(),l(4,"div",13),R(5,kt,1,2,"dfl-wiki-teaser",14,E),c()()),i&2){let e=g(3);a(2),w(L(3,1,"WIKI.RELATED_CATEGORIES")),a(3),A(e.article.wikiCategory.relatedWikiCategories)}}function xt(i,t){if(i&1&&(l(0,"section",7),p(1,"dfl-share-bar",15),c()),i&2){let e=g(3);a(),d("title",e.headline)}}function wt(i,t){if(i&1&&(l(0,"article",3),p(1,"wiki-breadcrumb",6),l(2,"section",7)(3,"section",8),r(4,ft,2,1,"h1",9),r(5,Ct,1,2,"dfl-editorial-wiki",10),c()(),r(6,_t,7,3,"section",11),r(7,xt,2,1,"section",7),c()),i&2){let e=g(2);a(),d("breadcrumb",e.breadcrumb),a(3),s(e.headline?4:-1),a(),s(e.article.type==="wiki"?5:-1),a(),s(e.article.wikiCategory?.relatedWikiCategories?.length>0?6:-1),a(),s(e.language!=="ar"?7:-1)}}function yt(i,t){if(i&1&&p(0,"dfl-json-ld",4),i&2){let e=g(2);d("json",e.jsonLd)}}function bt(i,t){if(i&1&&(r(0,ut,2,0,"div",2),r(1,wt,8,5,"article",3),r(2,yt,1,1,"dfl-json-ld",4)),i&2){let e=g();s(e.isLoading?0:-1),a(),s(e.article?1:-1),a(),s(e.jsonLd?2:-1)}}var h=class i{constructor(){this.route=n(B),this.router=n($),this.analyticsRouterTracking=n(V),this.languageStore=n(y),this.competitionStore=n(y),this.config=n(P),this.meta=n(J),this.dialog=n(rt),this.editorialService=n(u),this.srs=n(et),this.imageService=n(X),this.linkService=n(tt),this.translateRoutePipe=n(Y),this.configService=n(P),this.translate=n(H),this.cdRef=n(F),this.articleData=new M,this.isLoading=!1,this.isBrowser=!1;let t=n(S);this.isBrowser=U(t)}ngOnInit(){this.baseUrl=this.config.getSettings("system.applicationUrl"),this.linkService.setSelfCanonicalFromRouter(),this.subscription=O(this.languageStore.pipe(b(K)),this.competitionStore.pipe(b(G)),this.route.params).subscribe(([t,e,o])=>{this.language=t,this.competition=e,this.isValidateSlug(o.slug)===!0?(this.slug=o.slug,this.wikicategory=o.wikicategory,this.fetchArticle()):console.error(`slug ${o.slug} is not valid`),this.cdRef.markForCheck()})}isValidateSlug(t){return/^[a-z0-9]+(?:-[a-z0-9]+)*$/.test(t)&&t.length>0&&t.length<=100}getWikiHeadline(t){return t.headlines?.defaultHeadline!==""?t.headlines?.defaultHeadline:t.headlines?.shortHeadline!==""?t.headlines?.shortHeadline!=="":""}handleArticleData(t){if(t){let e=this.translateRoutePipe.transform("route-wiki");if(this.slug!==t.slug||this.wikicategory!==t.wikiCategory.speakingUrl||this.language.code!==t.language&&t.language!=="ja")this.router.navigate([t.language,e,t.wikiCategory.speakingUrl,t.slug]);else{let o=u.getEditorialNumberFromSlug(this.slug),m={virtPageTitle:this.getWikiHeadline(t),DocumentID:o,DocumentType:"Article",contentGroup:t.tracking&&t.tracking.content_group?t.tracking.content_group:t.type,Thumbnail:this.getThumbnail(t),releaseDate:t.publishedAt,competition:null,season:null,matchday:null};if(this._setArticleAttributes(t),this.analyticsRouterTracking.setCustomPageTrackData(m),this.configService.getSettings("features.LINK_AMP_FAQ",!1)){let f=this.configService.getSettings("system.applicationUrl").replace("www","amp");this.linkService.updateTag({rel:"amphtml",href:[f,t.language,e,t.wikiCategory.speakingUrl,t.slug].join("/")})}}}else this.analyticsRouterTracking.setCustomPageTrackData(null)}fetchArticle(){this.isLoading=!0,this.articleSubscription=this.editorialService.getArticleByEditorialNumber(u.getEditorialNumberFromSlug(this.slug),!1).subscribe(t=>{this.handleArticleData(t),this.cdRef.markForCheck()},t=>{this._articleNotFoundException(t)},()=>{this.isLoading=!1,this.cdRef.markForCheck()})}_articleNotFoundException(t){console.warn(`Wiki article: fetchArticle failed! slug was ${this.slug}`),this.srs.setNotFound(),this.articleData.emit(null),this.isLoading=!1,this.cdRef.markForCheck()}_setArticleAttributes(t){this.article=t,this.linkService.setSelfCanonicalFromRouter(),this.headline=t.headlines.defaultHeadline,this.articleData.emit(this.article),this.setWikiBreadcrumbs(),this.setMetaTags(),this.setOpenGra
1phTags(),this.setXCard(),this.setJsonLd(),this.isLoading=!1,this.cdRef.markForCheck()}setWikiBreadcrumbs(){this.breadcrumb=[{title:"Home",link:`/${this.language.code}/bundesliga`},{title:"FAQ",link:`/${this.language.code}/route-wiki`},{title:this.article.wikiCategory.title,link:`/${this.language.code}/route-wiki/${this.article.wikiCategory.speakingUrl}`},{title:this.article.headlines.shortHeadline?this.article.headlines.shortHeadline:this.article.headlines.defaultHeadline,link:`/${this.language.code}/route-wiki/${this.article.wikiCategory.speakingUrl}/${this.article.slug}`}]}getThumbnail(t){if(t&&t.hasOwnProperty("hero")){if(t.hero.hasOwnProperty("type")&&t.hero.type==="image"&&t.hero.hasOwnProperty("desktop")&&t.hero.desktop.hasOwnProperty("src"))return t.hero.desktop.src||"";if(t.hero.hasOwnProperty("type")&&t.hero.type==="video"&&t.hero.hasOwnProperty("poster"))return t.hero.poster||""}let e=u.getFirstIndexByType("image",t.media);return t.media[e]&&t.media[e].hasOwnProperty("desktop")&&t.media[e].desktop.hasOwnProperty("src")&&t.media[e].desktop.src||""}
1setOpenGraphTags(){this.translate.stream("ROUTES.route-wiki").subscribe(t=>{let e=`${this.baseUrl}/${this.language.code}/${t}/${this.article.wikiCategory.speakingUrl}/${this.slug}`;this.meta.setOgTags({title:this.article.meta.openGraph?.title||this.article.meta.title||this.article.headlines.defaultHeadline,description:this.article.meta.openGraph?.description||this.article.meta.description||"bundesliga.com",image:this.imageService.transform(this.article.meta.openGraph?.image,1200,630),url:e,type:"article"})})}setXCard(){this.meta.setTag("twitter:description",this.article.meta.x.description||this.article.meta.description||"bundesliga.com"),this.meta.setTag("twitter:title",this.article.meta.x.title||this.article.meta.title||this.article.headlines.defaultHeadline),this.meta.setTag("twitter:creator",this.article.meta.x.creator),this.meta.setTag("twitter:card",this.article.meta.x.card),this.meta.setTag("twitter:image",this.article.meta.x.image)}setJsonLd(){let t="/assets/logo/bundesliga.svg";if(this.article.hero&&this.article.hero.type==="image")t=this.article.hero.desktop.src;else if(this.article.hero&&this.article.hero.type==="video")t=this.article.hero.poster;else{let f=this.article.media.find(ht=>ht.type==="image");f&&(t=f.desktop.src)}t=this.imageService.transform(t,1140);let e=this.translate.instant("ROUTES.route-wiki"),o=this.getWikiHeadline(this.article),m=this.article.publishedAt;this.jsonLd={"@context":"https://schema.org","@type":"Article",url:this.baseUrl+"/"+this.language.code+"/"+e+"/"+this.article.wikiCategory.speakingUrl+"/"+this.article.slug,headline:o,name:o,description:this.article.meta.description,datePublished:m,dateModified:m,author:{"@type":"Person",name:"Bundesliga"},mainEntityOfPage:{"@type":"WebPage","@id":"https://google.com/article"},image:{"@type":"ImageObject",url:t},publisher:{"@type":"Organization",name:"Bundesliga",logo:{"@type":"ImageObject",url:this.baseUrl+"/assets/icons/meta/ms-icon-310x310.png",width:"310",height:"310"}}}}setMetaTags(){this.article.meta&&(this.article.meta.title?this.meta.setTitle({value:"META.WIKI.CATEGORY.TITLE",interpolateParams:{headline:this.article.meta.title}},!1):this.meta.setTitle({value:"META.WIKI.CATEGORY.TITLE",interpolateParams:{headline:this.article.headlines.defaultHeadline}},!1),this.article.meta.description&&this.meta.setTag("description",this.article.meta.description),this.article.meta.keywords.length>0&&this.meta.setTag("keywords",this.article.meta.keywords.join(",")))}static{this.\u0275fac=function(e){return new(e||i)}}static{this.\u0275cmp=D({type:i,selectors:[["wiki-detail"]],inputs:{slug:"slug",wikicategory:"wikicategory"},outputs:{articleData:"articleData"},decls:2,vars:1,consts:[[1,"error-container"],["src","/assets/icons/error-states/error-state-empty.svg","alt",""],[1,"container"],[1,"bl-article","web","container"],[3,"json"],["layout","article"],[3,"breadcrumb"],[1,"content-wrapper","bl-article"],[1,"content"],[1,"page-title"],[3,"article","language"],[1,"teaserlist"],[1,"teasertitle"],[1,"grid","content-wrapper"],[1,"grid-item",3,"article","width"],["position","Wiki-Bottom",3,"title"]],template:function(e,o){e&1&&r(0,mt,3,0,"div",0)(1,bt,3,3),e&2&&s(!o.article&&!o.isLoading?0:1)},dependencies:[q,Q,lt,st,ot,nt,gt,pt,at,ct,it,Z,N,z],styles:['.time-ago[_ngcontent-%COMP%]{color:var(--type-body);display:block;font-size:12px;line-height:12px;margin-bottom:4px;margin-top:24px;text-transform:uppercase}.category[_ngcontent-%COMP%]{color:#c80a00;font-family:DFLWeb,sans-serif;font-size:10px;line-height:10px;text-transform:uppercase}.paragraph[_ngcontent-%COMP%]{font-size:18px;line-height:28px}.paragraph[_ngcontent-%COMP%] .paragraphContent{border:1px solid var(--type-headline);display:block;min-height:56px;padding:16px;position:relative}.paragraph[_ngcontent-%COMP%] .paragraphContent>a{color:var(--type-headline);font-family:DFL Condensed Bold,sans-serif}.paragraph[_ngcontent-%COMP%] .link-highlight{display:inline-block;font-weight:700;line-height:24px;max-width:85%}.paragraph[_ngcontent-%COMP%] .link-highlight:after{background:transparent url(/assets/icons/simple/arrow-complex-right.svg) calc(100% - 18px) calc(100% - 18px) no-repeat;content:"";height:100%;position:absolute;right:0;top:0;width:100%}html[dark="1"][_nghost-%COMP%] .paragraph[_ngcontent-%COMP%] .link-highlight:after, html[dark="1"] [_nghost-%COMP%] .paragraph[_ngcontent-%COMP%] .link-highlight:after{background:#fff none;-webkit-mask:url(/assets/icons/simple/arrow-complex-right.svg) calc(100% - 18px) calc(100% - 18px) no-repeat;mask:url(/assets/icons/simple/arrow-complex-right.svg) calc(100% - 18px) calc(100% - 18px) no-repeat}.paragraph--intro[_ngcontent-%COMP%]{font-weight:700;margin-top:10px}h1[_ngcontent-%COMP%]{font-size:32px;font-weight:400;line-height:40px;margin:0}h2[_ngcontent-%COMP%]{font-size:18px;font-weight:700;line-height:24px}.center[_ngcontent-%COMP%]{text-align:center}',".content[_ngcontent-%COMP%]{max-width:782px;padding-bottom:0;padding-left:16px;padding-right:16px;width:100%}section.web[_ngcontent-%COMP%] .paragraph--intro[_ngcontent-%COMP%]{padding-top:10px}section.web[_ngcontent-%COMP%] dfp-ads[_ngcontent-%COMP%]{display:block;padding-bottom:10px;padding-top:10px}section.web[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{padding-top:10px}","@media(max-width:575.98px){.web[_ngcontent-%COMP%]{margin-top:6px}.web[_ngcontent-%COMP%] wiki-breadcrumb[_ngcontent-%COMP%], .web[_ngcontent-%COMP%] .teasertitle[_ngcontent-%COMP%]{padding:0 16px}}
1.content[_ngcontent-%COMP%]{padding:64px 16px}.content-wrapper[_ngcontent-%COMP%]{background-color:var(--background-card-hard);color:var(--type-body-soft);width:100%}.bl-article[_ngcontent-%COMP%]{align-items:center;display:flex;flex-direction:column}.error-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;text-align:center}.container.web[_ngcontent-%COMP%]{margin:22px auto 73px}dfl-newsletter-sign-up[_ngcontent-%COMP%]{width:100%}@media(max-width:575.98px){.bl-article.web[_ngcontent-%COMP%]{margin-bottom:0;margin-top:0}}h1.page-title[_ngcontent-%COMP%]{font-size:36px;font-weight:400;line-height:42px;margin-bottom:28px;padding:0}.teaserlist[_ngcontent-%COMP%]{margin-bottom:8px;width:100%}.teaserlist[_ngcontent-%COMP%] .teasertitle[_ngcontent-%COMP%]{display:block;font-size:24px;line-height:36px;margin-bottom:8px;margin-top:30px;width:100%}"],changeDetection:1})}};_([v(),x("design:type",k)],h.prototype,"subscription",void 0);_([v(),x("design:type",k)],h.prototype,"articleSubscription",void 0);var Pt=[{path:"",component:h}],re=(()=>{class i{static{this.\u0275fac=function(o){return new(o||i)}}static{this.\u0275mod=W({type:i})}static{this.\u0275inj=T({imports:[j.forChild(Pt),h]})}}return i})();export{re as WikiDetailPageModule};
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.