PageSourceSearch

https://www.bundesliga.com/chunk-YV7TQI3G.js

js bundesliga.com collected 2026-09-24 15:19:25 UTC 2,597 bytes, 1 lines download raw bytes

1import{b as D}from"./chunk-VNL26FE5.js";import{i as S}from"./chunk-EH2JI7H5.js";import{P as E,da as I,f as y}from"./chunk-M64NCBXQ.js";import{D as o,F as m,Ga as u,Ma as h,S as c,U as b,na as f,w as l,x as p}from"./chunk-OZIFALDO.js";var C=/^[a-zA-Z]{2}$/,A=(()=>{class d extends S{constructor(){super(),this.http=h(y),this.config=h(I),this.langStore=h(E),this.themingService=h(D),this.settings=this.config.getSettings("endpoints.broadcasts")}getEpgByClub(a){return this.settings=this.config.getSettings("endpoints.broadcasts"),this.get(`club/${a}`).pipe(f(2),c(()=>p({broadcasts:[]})),o(r=>r&&r.hasOwnProperty("broadcasts")?r.broadcasts:[]))}getEpg(a,r){return this.settings=this.config.getSettings("endpoints.broadcasts"),this.get(`${a}/${r}`).pipe(f(2),c(()=>p({broadcasts:[]})),o(t=>t&&t.hasOwnProperty("broadcasts")?t.broadcasts:[]))}getEpgForMatchId(a,r,t){return this.getEpg(a,r).pipe(o(i=>i.filter(s=>s.dflDatalibraryMatchId===t)),o(i=>i.sort((s,n)=>s.broadcasterName==n.broadcasterName?0:+(s.broadcasterName>n.broadcasterName)||-1)))}getEpgByCDNEdgeCountry(a=!1,r=!1,t){if(t&&!C.test(t))return p({broadcasters:[]});this.settings=this.config.getSettings("endpoints.broadcasters");let i=`${r?"?promoteInHeader=true":""}`;return i+=`${a?"":"?donotcache"}`,this.get(i,!1,{},t?{country:t.toUpperCase()}:{}).pipe(o(s=>(s.broadcasters=s.broadcasters.sort((n,g)=>n.rank!==g.rank?n.rank-g.rank:n.name==g.name?0:+(n.name>g.name)||-1),s)))}fetchEpgDataByMatches(a,r,t,i){if(t){if(!a||a.length===0)return p({});let s=[];a.forEach(e=>{s.push({competitionId:e.dflDatalibraryCompetitionId,seasonId:e.dflDatalibrarySeasonId,matchdayId:e.dflDatalibraryMatchdayId})});let n=new Set(s.map(e=>JSON.stringify(e))),g=Array.from(n).map(e=>JSON.parse(e));return i&&i!==""?this.getEpgByClub(i).pipe(o(e=>this.transformEpgData(e)),c(()=>p({}))):l(g).pipe(m(e=>this.getEpg(e.competitionId,e.matchdayId).pipe(c(()=>p([])))),b(),o(e=>this.transformEpgData([].concat(...e))),o(e=>Object.keys(e).length>0?e:{}),c(()=>p({})))}return p(null)}transformEpgData(a){return a.reduce((r,t)=>(r.hasOwnProperty(t.dflDatalibraryMatchId)?r[t.dflDatalibraryMatchId].push(t):r[t.dflDatalibraryMatchId]=[t],r),{})}getRandomBroadcaster(){return this.themingService.theme$.pipe(m(a=>this.getEpgByCDNEdgeCountry(!0,!0).pipe(o(r=>{let t=r.broadcasters[Math.floor(Math.random()*r.broadcasters.length)];return{logoUrl:a==="dark"?t.logos.dark:t.logos.light,name:t.name,url:t.url}}))))}static{this.\u0275fac=function(r){return new(r||d)}}static{this.\u0275prov=u({token:d,factory:d.\u0275fac,providedIn:"root"})}}return d})();export{A as a};

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.