PageSourceSearch

https://www.opel-hbl.de/_nuxt/B9QDfLCa.js

js opel-hbl.de collected 2026-09-24 17:49:24 UTC 11,306 bytes, 1 lines download raw bytes

1import{Y as K,bO as N,be as C,bF as k,c6 as G,bI as P}from"#entry";function $(){const o=(t,e)=>{const l=s(t.dataset,e).slice(0,5),n=p(l,t.resourceList,t.resourceType);return u(n,e,t.teamResources)};function s(t,e,l="desc"){return t.sort((n,c)=>{const d=n.statistics[e]??0,v=c.statistics[e]??0;return l==="asc"?d-v:v-d})}function p(t,e,l){const n=[];return t.forEach(c=>{const d=c[l],v=d?e[d.id]:void 0;n.push(Object.assign(c,v,{resourceType:l}))}),n}function u(t,e,l){return t.map(n=>{let c,d,v,F,L,h,D,A;if(n.resourceType==="person"){const m=n;if(c=r(m.images,"PERSON_WAIST",!0),m.entity){const w=l[m.entity.id];d=r(w?.images,"LOGO"),v=w?.nameFullLocal,L=w?.codeLocal,A=w?.entityId}F=m.nameFullLocal??"",h=`${m.nameGivenLocal} ${m.nameFamilyLocal}`,D=m.personId}else if(n.resourceType==="entity"){const m=n;c=r(m.images,"LOGO"),L=m.codeLocal,F=v=h=m.nameFullLocal,D=m.entityId}return{highlightedStatistic:n.statistics[e]??0,entityName:F,fullName:h,image:c,teamLogo:d,teamName:v,teamShort:L,teamId:A,entityId:D}})}const g=(t,e)=>{const l=t[0];if(!l?.dataset)return[];let n=s(l.dataset,e);return t.forEach(c=>{n=y(n,c.resourceList,c.resourceType)}),S(n)};function y(t,e,l){const n=[];return t.forEach(c=>{const d=l==="person"?c.person:c.entity;d&&"id"in d&&Object.assign(d,e[d.id]),n.push(c)}),n}function S(t){return t.map(e=>{const l=O(e.person)?e.person:void 0,n=i(e.entity)?e.entity:void 0,c=r(l?.images,"PERSON_WAIST",!0),d=r(n?.images,"LOGO");return{statistics:e.statistics,resource:{teamName:n?.nameFullLocal,teamShort:n?.codeLocal,playerName:l?.nameFullLocal??"",position:l?.position,image:c,teamLogo:d,teamId:n?.entityId,fullName:`${l?.nameGivenLocal} ${l?.nameFamilyLocal}`,playerId:l?.personId}}})}function O(t){return t!==void 0&&"personId"in t}function i(t){return t!==void 0&&"entityId"in t}function r(t,e,l=!1){const n=t?.find(c=>c.imageType===e)?.url;return n?l?`${n}?size=RAW`:n:""}return{processLeaderBoardData:o,processOverviewData:g,mapTypeToIncludedResources:p}}function M(){return{competition:{},seasons:[],selectedSeason:null,rosterForSeason:[]}}const R=K("stats-center",()=>{const o=N(),s=C({competition:{},seasons:[],selectedSeason:null,rosterForSeason:[]});function p(){s.value=M()}const u=async i=>{p(),s.value.competition={competitionId:i},await g(i)};async function g(i){i||(i=s.value.competition.competitionId);const t=((await o.runWithContext(()=>k("/api/synergy/seasons",{params:{competitionId:i}}))).data.value??[]).filter(l=>l.status!=="DRAFT"&&l.status!=="PENDING");s.value.seasons=t.toSorted((l,n)=>new Date(n.startDate).getTime()-new Date(l.startDate).getTime());const e=s.value.seasons[0];e&&(await y(e.seasonId,0),s.value.selectedSeason=e)}async function y(i,r){const e=(await o.runWithContext(()=>k("/api/synergy/season/roster",{params:{seasonId:i,offset:r}}))).data.value;e?.data&&(s.value.rosterForSeason.push(...e.data),r+=1e3,e?.links?.next&&await y(i,r))}async function S(){const i=s.value.selectedSeason;if(!i)return[];const t=(await k("/api/synergy/season/teams-in-season",{params:{seasonId:i.seasonId}})).data.value,e=t?.includes?.resources?.entities;return!t?.data||!e?[]:$().mapTypeToIncludedResources(t.data,e,"entity")}async function O(){const i=s.value.selectedSeason;if(!i)return[];const r=await k("/api/synergy/season/rounds",{params:{seasonId:i.seasonId}});return r?.data?.value?.data?.length?r.data.value.data:[]}return{configMatrix:s,initializeStatsCenter:u,fetchTeamsInSeason:S,fetchStagesInSeason:O,resetStatsCenter:p,fetchRosterForSeason:y}});function a(o,s=[],p=[],u=[]){return{key:o,categories:s,children:p,...u.length&&{combinedKeys:u}}}function T(o,s){return[a(`${o}GoalsScored`,["fieldplayer","team"],[a(`${o}GoalsScored`,{fieldplayer:["fieldplayer","fieldplayerTotalOverviewDetail"],team:["team","teamTotalOverviewOffence"]}),a(`${o}ShootingAccuracy`,{fieldplayer:["fieldplayer","fieldplayerTotalOverviewDetail"],team:["team","teamTotalOverviewOffence"]})]),a(`goalKeeper${s}ShotsSaved`,["goalkeeper"],[a(`goalKeeper${s}ShotsSaved`,{goalkeeper:["goalkeeper","goalkeeperTotalOverviewDetail"]}),a(`goalKeeper${s}SaveAccuracy`,{goalkeeper:["goalkeeper","goalkeeperTotalOverviewDetail"]})]),a(`goalKeeper${s}GoalsAgainst`,["team"],[a(`goalKeeper${s}GoalsAgainst`,{team:["team","teamTotalOverviewDefence"]})])]}function f(o){return a(o,["allTimeTeam"],[a(o,{allTimeTeam:["allTimeStandings"]})])}const I=[a("goalKeeperShotsSaved",["goalkeeper","team"],[a("goalKeeperShotsSaved",{goalkeeper:["goalkeeper","goalkeeperTotalOverview"],team:["team","teamTotalOverviewDefence"]}),a("goalKeeperSaveAccuracy",{goalkeeper:["goalkeeper","goalkeeperTotalOverview"],team:["team","teamTotalOverviewDefence"]})]),a("goalKeeperFieldShotsSaved",["goalkeeper"],[a("goalKeeperFieldShotsSaved",{goalkeeper:["goalkeeper","goalkeeperTotalOverviewDetail"]}),a("goalKeeperFieldSaveAccuracy",{goalkeeper:["goalkeeper"]})]),a("goalKeeperSevenMetreShotsSaved",["goalkeeper"],[a("goalKeeperSevenMetreShotsSaved",{goalkeeper:["goalkeeper","goalkeeperTotalOverviewDetail"]}),a("goalKeeperSevenMetreSaveAccuracy",{goalkeeper:["goalkeeper","goalkeeperTotalOverviewDetail"]})]),a("goalKeeperGoalsAgainst",["goalkeeper","team"],[a("goalKeeperGoalsAgainst",{goalkeeper:["goalkeeper","goalkeeperTotalOverview"],team:["team","teamTotalOverviewDefence"]}),a("goalKeeperShotsPerGoalsAgainst",{goalkeeper:["goalkeeper","goalkeeperTotalOverview","goalkeeperTotalOverviewDefence"]})]),a("matchesPlayed",["allTime"],[a("matchesPlayed",{allTime:["allTimeScorers","allTimeAppearances"]})]),a("goalsScored",["fieldplayer","goalkeeper","team","allTime"],[a("goalsScored",{fieldplayer:["fieldplayer","fieldplayerTotalOverview"],goalkeeper:["goalkeeper","goalkeeperTotalOverview"],team:["team","teamTotalOverviewOffence"],allTime:["allTimeScorers"]}),a("shots",{fieldplayer:["fieldplayer","fieldplayerTotalOverview"],team:["team","teamTotalOverviewOffence"]}),a("shootingAccuracy",{fieldplayer:["fieldplayer","fieldplayerTotalOverview"],team:["team","teamTotalOverviewOffence"]})]),a("fieldGoalsScored",["fieldplayer","team"],[a("fieldGoalsScored",{fieldplayer:["fieldplayer","fieldplayerTotalOverviewDetail"],team:["team","teamTotalOverviewOffence"]}),a("fieldShootingAccuracy",{fieldplayer:["fieldplayer","fieldplayerTotalOverviewDetail"],team:["team","teamTotalOverviewOffence"]})]),a("sevenMetreGoalsScored",["fieldplayer","team","allTime"],[a("sevenMetreGoalsScored",{fieldplayer:["fieldplayer","fieldplayerTotalOverviewDetail"],team:["team","teamTotalOverviewOffence"],allTime:["allTimeScorers"]}),a("sevenMetreShootingAccuracy",{fieldplayer:["fieldplayer","fieldplayerTotalOverviewDetail"],team:["team","teamTotalOverviewOffence"]})]),a("assists",["fieldplayer","goalkeeper"],[a("assists",{fieldplayer:["fieldplayer","fieldplayerTotalOverview"],goalkeeper:["goalkeeper","goalkeeperTotalOverview"]})]),a("steals",["fieldplayer","goalkeeper","team"],[a("steals",{fieldplayer:["fieldplayer","fieldplayerTotalOverview"],goalkeeper:["goalkeeper","goalkeeperTotalOverview"],team:["team","teamTotalOverviewDefence"]})]),a("blocks",["fieldplayer","team"],[a("blocks",{fieldplayer:["fieldplayer","fieldplayerTotalOverview"],team:["team","teamTotalOverviewDefence"]})]),a("attendance",["team"],[a("attendance",{team:["team"]}),a("attendanceCapacity",{team:["team"]}),a("attendancePercentage",{team:["team"]})]),a("technicalFaults",["fieldplayer","team"],[a("technicalFaults",{fieldplayer:["fieldplayer","fieldplayerTotalOverview"],team:["team"]})]),a("twoMinuteSuspensions",["fieldplayer","goalkeeper","team"],[a("twoMinuteSuspensions",{fieldplayer:["fieldplayer","fieldplayerTotalOverview"],goalkeeper:["goalkeeper","goalkeeperTotalOverview"],team:["team","teamTotalOverviewDefence"]})]),a("cards",["fieldplayer","goalkeeper","team"],[a("yellowCards",{fieldplayer:["fieldplayer","fieldplayerTotalOverview"],goalkeeper:["goalkeeper","goalkeeperTotalOverview"],team:["team","teamTotalOverviewDefence"]}),a("redCards",{fieldplayer:["fieldplayer","fieldplayerTotalOverview"],goalkeeper:["goalkeeper","goalkeeperTotalOverview"],team:["team","teamTotalOverviewDefence"]}),a("blueCards",{fieldplayer:["fieldplayer","fieldplayerTotalOverview"],goalkeeper:["goalkeeper","goalkeeperTotalOverview"],team:["team","teamTotalOverviewDefence"]})]),...T("backCourt","BackCourt"),...T("nineMetre","NineMetre"),...T("wing","Wing"),...T("pivot","Pivot"),...T("fastBreak","FastBreak"),f("seasonsParticipatedIn"),f("played"),f("wins"),f("draws"),f("losses"),f("scoredFor"),f("scoredAgainst"),f("scoreDifference"),a("standingPoints",["allTimeTeam"],[a("standingPoints",{allTimeTeam:["allTimeStandings"]},[],["standingPoints","standingPointsGiven"])]),f("standingPointsPerGame"),a("goalsScoredPerMatch",["allTime"],[a("goalsScoredPerMatch",{allTime:["allTimeScorers"]})])],b=["ALL","G","LW","LB","CB","RB","RW","P"],E=K("stats-center-filter",()=>{const o=R(),s=[],p=C({statFilterTable:null,statFilterConfig:{season:{seasonId:null}},filterOptions:[]});function u(){p.value.statFilterConfig={season:{seasonId:null}}}const g=C(void 0);return G(p,()=>{const i=p.value.statFilterConfig["statistic-type"]?.key;g.value=I.find(r=>r.key===i)?.children},{deep:!0,immediate:!0}),{filters:p,filterOptions:s,statSubTypes:g,getFilterOptions:async i=>{switch(i){case"statistic-type":{const r=p.value.statFilterTable,t=I.filter(e=>r!==null&&Array.isArray(e.categories)&&e.categories.includes(r));return{options:t,selected:t[0],translationKey:e=>`data.statisticsCenter.${e.key}`}}case"season":return{options:o.configMatrix.seasons,selected:o.configMatrix.selectedSeason,translationKey:r=>{const t=(r.year+1).toString().slice(-2);return`${r.year}/${t}`}};case"team":{let r=(await o.fetchTeamsInSeason()).map(e=>({nameFullLocal:e.nameFullLocal??"",nameFullLatin:e.nameFullLatin??e.nameFullLocal??"",entityId:e.entityId}));r=r.filter(e=>e.nameFullLocal!=="NN").sort((e,l)=>e.nameFullLocal.localeCompare(l.nameFullLocal));const t=[{nameFullLocal:"alle Teams",nameFullLatin:"all teams",value:"all"},...r];return{options:t,selected:t[0],translationKey:(e,l)=>l==="de"?e.nameFullLocal:e.nameFullLatin}}case"round":{const r=await o.fetchStagesInSeason();r.sort((e,l)=>(e.roundOrder??0)-(l.roundOrder??0));const t=[{nameLocal:"alle Spieltage",nameLatin:"all matchdays",value:"all"},...r];return{options:t,selected:t[0],translationKey:(e,l)=>l==="de"?e?.nameLocal:e?.nameLatin}}case"position":return{options:b,selected:b[0],translationKey:r=>`data.positionCode.${r}`};default:return[]}},getFilterKey:(i,r)=>{const t=i.find(e=>e.filterType===r);if(t?.dependentOn){const e=t.dependentOn,l=p.value.statFilterConfig[e];return t.filterType+String(l?.[`${e}Id`])}return r},tableProperties:()=>{let i=[];const r=p.value.statFilterTable;return I.filter(e=>r!==null&&Array.isArray(e.categories)&&e.categories.includes(r)).forEac
1h(e=>{i=i.concat(e.children)}),i},resetStatFilterConfig:u}});function W(o){return`/${P().locale.value}/team/${encodeURIComponent(o.nameFullLocal)}/${o.teamId}`}function _(o,s,p="de-DE"){if(typeof o=="number"&&!Number.isNaN(o)||typeof o=="string"&&!Number.isNaN(Number(o))&&o.trim()!==""){const u=s!==void 0?{minimumFractionDigits:s,maximumFractionDigits:s}:void 0;return Number(o).toLocaleString(p,u)}return o}const x={de:"de-DE",en:"en-EN"};function U(o){return x[o]??"de-DE"}export{E as a,R as b,W as c,_ as f,U as r,$ as u};

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.