PageSourceSearch

http://scoreroom.com/wp-content/themes/zawodtyper/build/assets/StatsMain-DTRongYT.js

js scoreroom.com collected 2026-09-30 16:14:38 UTC 45,131 bytes, 2 lines download raw bytes

1import Y from"./InfoBox-DTUACVq6.js";import{S as j}from"./StatsTable-Cgs4bT0D.js";import{P as Z,R as K,G as J,H as X,F as Q,a as $,O as ee,S as te,s as se}from"./StatsPage-BC0SyOFF.js";import{f as ae}from"./football_mixin-CfPbyp__.js";import{S as le}from"./StatsLeagueFilter-T7EvaCcB.js";import{S as z}from"./swiper-core-D9wXzy0A.js";import{S as q}from"./scrollbar-CRW5pddD.js";import{f as D}from"./free-mode-BBqru86M.js";import{u as ie}from"./utils_mixin-rpdCk6M7.js";import{T as oe}from"./TeamSelectList-Dqr_sz9X.js";import{T as ne}from"./TeamImg-Dic3tPOg.js";import{D as g,d as n,e as u,i as y,E as m,f as r,s as P,G as x,H as T,q as c,b5 as O,p as h,j as I,k as v,Z as H,n as F,aD as A,v as B,T as M,aJ as re,b4 as de,b1 as ue,aH as he,L as ce,M as me,m as ge}from"./main-CUr-Q8DI.js";import{S as fe}from"./StatsTeamFilter-kI9GMOuo.js";import{w as S}from"./useWaitForStateChange-CR7VSzIV.js";import{R as _e,a as pe}from"./RefereeStatsPage-C755nX6U.js";import{F as ye}from"./FootballTabScorersTable-CFFanS-a.js";import{_ as L}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./CompareLeagues-A98_nfPQ.js";import"./FootballStatsFilter-bvkfyJvh.js";import"./FootballStatsFilterRow-CaWYKmZ8.js";import"./SuperbetsSelectMobile-C8V_8RJU.js";import"./create-element-if-not-defined-BUqS4Jl9.js";import"./classes-to-selector-Br0XARct.js";import"./FootballStatsListItem-CR63SNS1.js";import"./FootballLeagueTimetable-CckgiUBY.js";import"./ladder-placeholders-DgxqWf8I.js";const Se={name:"PlayersStats",inject:["WP"],components:{FootballTabScorersTable:ye},props:{leagueId:{type:Number,default:0}},data(){return{playersStatistics:[],teams:[],loading:!0}},mounted(){this.getLeagueTeams(),this.getPlayersStats()},computed:{},methods:{getPlayersStats(){axios.post(this.WP.slowAjaxUrl,{endpoint:"api_get_players_statistics",league_id:this.leagueId}).then(t=>{this.playersStatistics=t.data.data,this.loading=!1})},getLeagueTeams(){axios.post(this.WP.ajaxUrl,{endpoint:"api_get_league_teams",league_id:this.leagueId}).then(t=>{this.teams=t.data.data})}}};function be(t,e,s,a,l,i){const d=g("FootballTabScorersTable");return n(),u("div",null,[y(d,{class:m(["mb-6",{"mt-5":t.window.size.mobile}]),players:l.playersStatistics,pageType:"stats","show-only-goals":!1,"expand-no":20,"show-no":10,"league-teams":l.teams,loading:l.loading,"table-type":"shoots"},null,8,["class","players","league-teams","loading"]),y(d,{class:"mb-6",players:l.playersStatistics,pageType:"stats","show-only-goals":!1,"expand-no":20,"show-no":10,"league-teams":l.teams,loading:l.loading,"table-type":"passes"},null,8,["players","league-teams","loading"]),y(d,{class:"mb-6",players:l.playersStatistics,pageType:"stats","show-only-goals":!1,"expand-no":20,"show-no":10,"league-teams":l.teams,loading:l.loading,"table-type":"tackles"},null,8,["players","league-teams","loading"]),y(d,{class:"mb-6",players:l.playersStatistics,pageType:"stats","show-only-goals":!1,"expand-no":20,"show-no":10,"league-teams":l.teams,loading:l.loading,"table-type":"dribbles"},null,8,["players","league-teams","loading"]),y(d,{class:"mb-6",players:l.playersStatistics,pageType:"stats","show-only-goals":!1,"expand-no":20,"show-no":10,"league-teams":l.teams,loading:l.loading,"table-type":"fouls"},null,8,["players","league-teams","loading"]),y(d,{class:"mb-6",players:l.playersStatistics,pageType:"stats","show-only-goals":!1,"expand-no":20,"show-no":10,"league-teams":l.teams,loading:l.loading,"table-type":"yellow_cards"},null,8,["players","league-teams","loading"])])}const we=L(Se,[["render",be]]),xe={name:"StatsTablePlaceholder",props:{rowCount:{type:Number,default:20},rowHeight:{type:Number,default:45},unfoldHeight:{type:Number,default:48},showUnfold:{type:Boolean,default:!1},rounded:{type:Boolean,default:!0},animate:{type:Boolean,default:!0}}},Te=r("div",{class:"bg-zt-more w-[150px] opacity-10 rounded-zt h-3"},null,-1),ve=[Te],Fe=r("div",{class:"bg-zt-more w-[150px] opacity-10 rounded-zt h-3"},null,-1),Ce=[Fe],Pe=r("div",{class:"bg-zt-more w-[150px] opacity-10 rounded-zt h-3"},null,-1),Oe=[Pe];function Le(t,e,s,a,l,i){return n(),u("div",{class:m(["border border-zt-light mb-4 overflow-hidden",s.animate?"animate-pulse":"",s.rounded?"rounded-zt":""])},[r("div",{class:"bg-zt-light/35 border-b border-zt-light w-full flex items-center p-2",style:P({height:`${s.rowHeight}px`})},ve,4),(n(!0),u(x,null,T(s.rowCount,d=>(n(),u("div",{key:d,class:"border-b border-zt-light bg-zt-light/35 
1w-full flex items-center p-2",style:P({height:`${s.rowHeight}px`})},Ce,4))),128)),s.showUnfold?(n(),u("div",{key:0,class:"border-zt-light bg-zt-light/35 w-full flex justify-center items-center p-2",style:P({height:`${s.unfoldHeight}px`})},Oe,4)):c("",!0)],2)}const ke=L(xe,[["render",Le]]),ze={name:"StatsMain",props:{isAdminPage:{type:Boolean,default:!1}},components:{StatsTablePlaceholder:ke,RefereeStatsPage:pe,StatsPage:te,OffsidesDetailsTable:ee,ShootsOnGoalDetailsTable:$,FoulsDetailsTable:Q,HtFtResultsDetailsTable:X,StatsTeamFilter:fe,TeamImg:ne,TeamSelectList:oe,RefereeDetailsTable:_e,PlayersStats:we,GoalDetailsTable:J,ResultDetailsTable:K,StatsLeagueFilter:le,PenaltiesDetailsTable:Z,StatsTable:j,InfoBox:Y},mixins:[ae,ie],inject:["WP"],setup(){return{statsStore:he()}},data(){return this.defaultTeam={id:0,name:"All teams",league_query_name:"all-teams",country_query_name:null},{currentSelectedPage:{name:"All statistics",shortname:"All",href:"/football-stats/",img:"wszystkie_statystyki.svg",key:"all"},pagesSwiper:null,isDetailedPageLoading:!1,highlightedLeaguesIds:[78,140,61,39,135,88],additionalStatsLeagues:[253,197,383,179,210,332,218,207,119,94,345,144,307,283,286,203,357,103,113],uniqueTables:[{short_title:"Over",hidden:!1},{short_title:"Under",hidden:!1},{short_title:"BTTS",hidden:!1},{short_title:"Corners",hidden:!1},{short_title:"Cards",hidden:!1},{short_title:"1x2",hidden:!1},{short_title:"Handicap",hidden:!1},{short_title:"Halves",hidden:!1},{short_title:"HT/FT",hidden:!1},{short_title:"First goal",hidden:!1},{short_title:"Clean sheets",hidden:!1},{short_title:"Ball possession",hidden:!1},{short_title:"Shots",hidden:!1},{short_title:"Offsides",hidden:!1},{short_title:"Fouls",hidden:!1},{short_title:"Passing",hidden:!1}],loading:!0,swiper:null,selectedStat:"",lastIndex:0,lastScrollPos:0,lastStatIndex:0,selectedLeagueOption:null,tablesData:[],elemsPositions:[],tables:[{title:"Over 2,5 goal (IN MATCH)",short_title:"Over",columns:["M","%"],data:this.overData,highlightedColumn:2},{title:"Under 2,5 goal (IN MATCH)",short_title:"Under",columns:["M","%"],data:this.underData,highlightedColumn:2},{title:"BTTS",short_title:"BTTS",columns:["M","%"],data:this.bttsData,highlightedColumn:2},{title:"Corners (FOR TEAM)",short_title:"Corners",columns:["M","Avg."],data:this.cornersData,highlightedColumn:2,precision:1},{title:"Yellow cards (FOR TEAM)",short_title:"Cards",columns:["M","Avg."],data:this.yellowCardsData,highlightedColumn:2,precision:1},{title:"Red cards (FOR TEAM)",short_title:"Cards",columns:["M","Avg."],data:this.redCardsData,highlightedColumn:2,precision:2},{title:"",short_title:"1x2",columns:["M","%"],data:[],highlightedColumn:2},{title:"",short_title:"1x2",version:"home",columns:["M","%"],data:[],highlightedColumn:2},{title:"",short_title:"1x2",version:"away",columns:["M","%"],data:[],highlightedColumn:2},{title:"",short_title:"Handicap",columns:["M","%"],data:[],highlightedColumn:2},{title:"First Half",short_title:"Halves",columns:["M","%"],data:this.firstHalvesData,highlightedColumn:2},{title:"Second Half",short_title:"Halves",columns:["M","%"],data:this.secondHalvesData,highlightedColumn:2},{title:"Share of goals scored by the team in matches",short_title:"Halves",columns:["M","G","%"],data:this.goalShareData,highlightedColumn:3},{title:"",short_title:"Halves",separate_component:!0,columns:["M","G","%"],data:[],highlightedColumn:2},{title:"HT/FT (HALF-TIME/END OF THE MATCH)",short_title:"HT/FT",columns:["M","%"],data:this.htFtData,highlightedColumn:2},{title:"",short_title:"First team to score",columns:["M","%"],data:[],highlightedColumn:2},{title:"Clean sheets",short_title:"Clean sheets",columns:["M","%"],data:this.cleanSheetData,highlightedColumn:2},{title:"",short_title:"Penalties",columns:["M","%"],data:[],highlightedColumn:2},{title:"Ball possession",short_title:"Ball possession",columns:["M","%"],data:this.BallPossessionData,highlightedColumn:2,precision:1,extra_info:"Only for highlighted leagues"},{title:"Shots",short_title:"Shots",columns:["M","Avg."],data:this.shotsData,showInLeague:!1,highlightedColumn:2,precision:1,extra_info:"Only for highlighted leagues"},{title:"Offsides",short_title:"Offsides",columns:["M","Avg."],data:this.offsidesData,highlightedColumn:2,showInLeague:!1,precision:1,extra_info:"Only for highlighted leagues"},{title:"Fouls",short_title:"Fouls",columns:["M","Avg."],data:this.foulsData,highlightedColumn:2,precision:1,showInLeague:!1,extra_info:"Only for highlighted leagues"},{title:"Passing",short_title:"Passing",columns:["M","Avg."],data:this.passesData,highlightedColumn:2,precision:0,extra_info:"Only for highlighted leagues"}],swiperStatsPages:se,statsPages:[{name:"Football stats",href:"/football-stats/",img:"wszystkie_statystyki.svg"},{name:"Over/under",href:"/football-stats-over-under/",img:"overunder.svg"},{name:"BTTS",href:"/stats-btts/",img:"btts.svg"},{name:"Corner kicks",href:"/stats-corner-kicks/",img:"rozne.svg"}
1,{name:"Cards",href:"/stats-cards/",img:"kartki.svg"},{name:"1X2",href:"/stats-1x2/",img:"1x2.svg"},{name:"1. and 2. half",href:"/stats-1-half-and-2-half/",img:"polowy.svg"},{name:"HT/FT",href:"/stats-half-time-full-time/",img:"htft.svg"},{name:"Clean sheets",href:"/stats-clean-sheets/",img:"czyste_konto.svg"},{name:"Penalties",href:"/stats-penalties/",img:"karne.svg"},{name:"Goal Times Stats",href:"/goal-times-stats/",img:"kwadranse.svg"},{name:"Ball possession",href:"/ball-possession/",img:"posiadanie.svg"},{name:"Shots on goal",href:"/shots-on-goal/",img:"strzaly.svg"},{name:"Offsides",href:"/offsides/",img:"spalone.svg"},{name:"Fouls",href:"/fouls-statistics/",img:"faule.svg"},{name:"Passing",href:"/passing/",img:"podania.svg"},{name:"Match streaks",href:"/match-streaks/",img:"serie.svg"}],scrollVal:0,isFilteringSticky:!1,disabledObserver:!0,selectedOptionForShots:"All",selectedOptionForShare:"1. half",selectedOptionForPasses:"All",selectedOptionForHtFt:"w/l",reloadSwiper:!1,pensRemoved:!1,teamSelectOpen:!1,selectedTeam:this.defaultTeam,clickOutside:{handler:()=>{this.teamSelectOpen=!1,window.size.desktop&&this.unblockScrolling()},events:["touchstart","mousedown"]},filterComponentsLoadingState:{league:{loaded:!1,selectedValue:null},team:{loaded:!1,selectedValue:null}},refereeStats:[],type:"stats",hideSwiper:!1,timeFrame:"all",otherTablesHaveData:!1,selectedTimeFrame:"all"}},computed:{noOfTeamsToShow(){return this.selectedLeagueOption&&this.selectedLeagueOption?.country_query_name!==null?30:10},teamsForSelect(){if(!this.selectedLeagueOption||this.selectedLeagueOption.country_query_name===null||this.statsStore.overUnderStats[+this.leagueId]===void 0)return[];const t=this.statsStore.overUnderStats[+this.leagueId].filter(e=>e.country_query_name===this.selectedLeagueOption.country_query_name&&e.league_query_name===this.selectedLeagueOption.league_query_name);return t.sort((e,s)=>{const a=e.shortname!==""?e.shortname:e.name,l=s.shortname!==""?s.shortname:s.name;return a.localeCompare(l)}),t},leagueId(){return this.$attrs.leagueId},isLeaguePage(){return this.$attrs.leagueId!=="-1"},leagueName(){return this.$attrs.leagueName},tableButtonsForHtFt(){return[[{text:"W/L",emitArgs:["selectedOptionForHtFt","w/l"],selected:this.selectedOptionForHtFt==="w/l"},{text:"L/W",emitArgs:["selectedOptionForHtFt","l/w"],selected:this.selectedOptionForHtFt==="l/w"}]]},tableButtonsForShots(){return[[{text:"All",emitArgs:["selectedOptionForShots","All"],selected:this.selectedOptionForShots==="All"},{text:"Accurate",emitArgs:["selectedOptionForShots","Accurate"],selected:this.selectedOptionForShots==="Accurate"}]]},tableButtonsForGoalShare(){return[[{text:"1. half",emitArgs:["selectedOptionForShare","1. half"],selected:this.selectedOptionForShare==="1. half"},{text:"2. half",emitArgs:["selectedOptionForShare","2. half"],selected:this.selectedOptionForShare==="2. half"}]]},tableButtonsForPasses(){return[[{text:"All",emitArgs:["selectedOptionForPasses","All"],selected:this.selectedOptionForPasses==="All"},{text:"Accurate",emitArgs:["selectedOptionForPasses","Accurate"],selected:this.selectedOptionForPasses==="Accurate"}]]},mobileSwiperOptions(){if(this.isLeaguePage&&!this.highlightedLeaguesIds.includes(+this.leagueId)){let t=[];this.additionalStatsLeagues.includes(+this.leagueId)?t=["Ball possession","Passing"]:t=["Ball possession","Shots on goal","Offsides","Fouls","Passing"];const e=this.uniqueTables.slice();return t.forEach(s=>{const a=e.findIndex(l=>l.short_title===s);e.splice(a,1)}),e}return this.swiper&&setTimeout(()=>{this.swiper.update()},1e3),this.uniqueTables},teams(){return this.statsStore.overUnderStats[+this.leagueId]===void 0?[]:this.statsStore.overUnderStats[+this.leagueId]},teamsCards(){return this.statsStore.matchesCardsStats[+this.leagueId]===void 0?[]:this.statsStore.matchesCardsStats[+this.leagueId]},teamsDetailedStats(){let t=this.leagueId;return this.timeFrame==="10"&&(t=`${t}-10`),this.statsStore.detailedStats[t]===void 0?[]:this.statsStore.detailedStats[t]},teamsHalves(){return this.statsStore.halvesStats[+this.leagueId]===void 0?[]:this.statsStore.halvesStats[+this.leagueId]},teamsCorners(){return this.statsStore.cornersStats[+this.leagueId]===void 0?[]:this.statsStore.cornersStats[+this.leagueId]},teamsEvents(){return this.statsStore.eventStats[+this.leagueId]===void 0?[]:this.statsStore.eventStats[+this.leagueId]}},async mounted(){let t=window.location.hash;if(t&&this.isLeaguePage){if(t.substring(1)==="referees"){this.type="referee";let f=document.getElementById("league-stats-title");f&&(f.textContent="Stats - Referees")}else if(t.substring(1)==="players"){this.type="players";let f=document.getElementById("league-stats-title");f&&(f.textContent="Stats - Players")}}this.isLeaguePage||this.loadStatPageSwiper(),this.selectedStat=this.tables[0].short_title,this.statsStore.getOverUnderStats(+this.leagueId);const e=S(()=>this.statsStore.overUnderStats[+this.leagueId]!==void 0);this.statsStore.getEventStats(+this.leagueId);const s=S(()=>this.statsStore.eventStats[+this.leagueId]!==void 0);this.statsStore.getHalvesStats(+this.leagueId);const a=S(()=>this.statsStore.halvesStats[+this.leagueId]!==void 0);this.statsStore.getMatchesCardsStats(+this.leagueId);const l=S(()=>this.statsStore.matchesCardsStats[+this.leagueId]!==void 0);this.statsStore.getDetailedStatisticsForLeague(+this.leagueId);const i=S(()=>this.statsStore.detailedStats[+this.leagueId]!==void 0);this.statsStore.getMatchesCornerStats(+this.leagueId);const d=S(()=>this.statsStore.cornersStats[+this.leagueId]!==void 0);Promise.all([e,s,a,l,i,d]).then(async()=>{let f=0;
1if(this.teamsEvents.forEach(_=>{f+=Number(_.corners)}),f===0){let _=this.tables.findIndex(w=>w.title==="Corners (FOR TEAM)");_!==-1&&this.tables.splice(_,1)}if(this.isLeaguePage&&!this.pensRemoved)this.uniqueTables.splice(11,0,{short_title:"Penalties"});else{let _=this.tables.findIndex(w=>w.short_title==="Penalties");_!==-1&&this.tables.splice(_,1)}await this.loadData(),this.loading=!1,await this.$nextTick(()=>{window.size.mobile&&this.initMobile(),this.removePlaceholder(this.$attrs.component),loadScrollPositionState(window.location.pathname);let _=sessionStorage.getItem("selectedPeriod");_&&(this.timeFrame=_),window.addEventListener("pagehide",()=>{de(this.selectedOption),ue(this.timeFrame)})})})},methods:{setDataAvailable(){this.otherTablesHaveData=!0},changeSelectedPage(t,e){this.currentSelectedPage=t,this.pagesSwiper.slideTo(e,200),this.isDetailedPageLoading=!0},loadStatPageSwiper(){this.pagesSwiper=new z(".swiper-stat-pages",{modules:[q,D],slidesPerView:"auto",initialSlide:0,resistanceRatio:0,centeredSlidesBounds:!0,centeredSlides:!0,freeMode:{enabled:!0,minimumVelocity:.01,momentum:!0,momentumBounce:!1,momentumRatio:.7,momentumVelocityRatio:.5,sticky:!1},scrollbar:{el:".scrollbar-nav",draggable:!1,hide:!0},spaceBetween:14})},getExtraInfo(t){if(t.short_title==="HT/FT")return this.selectedOptionForHtFt==="w/l"?"W/L means winning in the first half but losing at the end of the game.":"L/W means losing in the first half but winning at the end of the match.";if(!this.isLeaguePage)return t.extra_info},stringToId:O,getColumns(t){const e=this.tables[t];return e.short_title==="Passing"?this.selectedOptionForPasses==="All"?["M","Avg."]:["M","Accuracy"]:e.columns},hideTooltip(t){for(const e of t.composedPath())for(const s of e.attributes)if(s.name==="data-tooltip-created"){setTimeout(()=>{Tooltip.getInstance(e).hide()},(window.size.mobile,3e3));return}},async handleLeagueChange(t){await this.countClicks('Staty główne - "Wszystkie ligi"',"football"),this.selectedLeagueOption=t,this.$refs.statsTeamFilter.handleTeamSelect(this.defaultTeam),await this.loadData(),setTimeout(()=>{this.getTablesPositions()},700)},async handleTeamSelect(t){this.selectedTeam=t,this.teamSelectOpen=!1,await this.loadData(),this.unblockScrolling(),setTimeout(()=>{this.getTablesPositions()},700)},async handleFilterComponentLoaded(t,e){this.filterComponentsLoadingState[t].loaded=!0,this.filterComponentsLoadingState[t].selectedValue=e,Object.values(this.filterComponentsLoadingState).every(s=>s.loaded===!0)&&(this.selectedLeagueOption=this.filterComponentsLoadingState.league.selectedValue.league_id>0||this.filterComponentsLoadingState.league.selectedValue.leagues.length>0?this.filterComponentsLoadingState.league.selectedValue:null,this.selectedTeam=this.filterComponentsLoadingState.team.selectedValue.id>0&&this.selectedLeagueOption!==null?this.filterComponentsLoadingState.team.selectedValue:this.defaultTeam,await this.loadData(),setTimeout(()=>{this.getTablesPositions()},700))},handleOpenTeamSelect(){this.countClicks('Staty główne - "Wszystkie drużyny"',"football"),!(this.selectedLeagueOption===null||this.selectedLeagueOption.country_query_name===null)&&(this.teamSelectOpen=!this.teamSelectOpen,this.teamSelectOpen?this.blockScrolling():this.unblockScrolling())},removePenFromSlider(){this.pensRemoved=!0},yieldToMain(){return new Promise(t=>{setTimeout(t,0)})},async loadData(){let t=[];for(let e=0;e<this.tables.length;e++)this.tables[e].title!==""?(t.push(this.tables[e].data()),await this.yieldToMain()):t.push([]);this.tablesData=t},initMobile(){setTimeout(()=>{this.initializeSwiper(),this.getTablesPositions(),this.stickyFollowHeader("sticky-swiper",this.WP.user.adminBar),this.observeStatsFilter(),window.addEventListener("scroll",this.onScrollHandler),setTimeout(()=>{this.disabledObserver=!1},1e3)},0)},onScrollHandler(){if(this.disabledObserver)return;const t=window.scrollY;let e=t,s=0;t<this.lastScrollPos&&(e+=200);for(let a=1;a<this.elemsPositions.length&&e>this.elemsPositions[a].pos;a++)s=a;this.lastStatIndex=s,this.lastScrollPos=t,this.debounce(()=>{this.changeTabWithoutScroll(this.tables[s].short_title)},50)},getTablesPositions(){setTimeout(()=>{const t=[];for(let e of this.uniqueTables){const s=document.querySelectorAll(`[id^="table-${O(e.short_title)}"]`);let a=0;for(let l of s){const d=-59+(WP.user.adminBar?-32:0),f=l.getBoundingClientRect().top+window.pageYOffset+d;t.push({pos:f,height:l.offsetHeight}),a+=l.offsetHeight}e.hidden=a===0}this.elemsPositions=t},0)},observeStatsFilter(){const t=new IntersectionObserver((s,a)=>
1{s.forEach(l=>{l.intersectionRatio<1&&(this.isFilteringSticky=!0)})},{threshold:1,rootMargin:`${WP.user.adminBar?"-32":"0"}px 0px 0px 0px`});new IntersectionObserver((s,a)=>{s.forEach(l=>{l.intersectionRatio>=1&&(this.isFilteringSticky=!1)})},{threshold:1,rootMargin:`${WP.user.adminBar?"-98":"-66"}px 0px 0px 0px`}).observe(this.$refs.statsFilter),t.observe(this.$refs.statsFilter)},changeTabWithoutScroll(t){if(this.disabledObserver)return;const e=this.uniqueTables.findIndex(s=>s.short_title===t);this.uniqueTables[e].hidden||(this.selectedStat=t,this.swiper.slideTo(e,500,!1))},changeTab(t,e,s=!1){if(s)return;this.changeTabWithoutScroll(t),this.disabledObserver=!0;let a=WP.user.adminBar?-32:0;e<this.lastIndex&&(a-=window.mainHeaderHeight);const l=-59+a,d=document.querySelector(`[id*="table-${O(t)}"]`).getBoundingClientRect().top+window.pageYOffset+l;window.scrollTo({top:d,behavior:"smooth"}),this.lastIndex=e,setTimeout(()=>{this.disabledObserver=!1},1e3),this.countClicks("Przypięty spis treści w STATYSTYKACH GŁÓWNYCH")},debounce(t,e){let s;clearTimeout(s),s=setTimeout(()=>t(),e)},initializeSwiper(){this.swiper=new z("#swiper-stats",{modules:[q,D],slidesPerView:"auto",resistanceRatio:0,centeredSlides:window.size.mobile,centeredSlidesBounds:!0,freeMode:{enabled:!0,minimumVelocity:.01,momentum:!0,momentumBounce:!1,momentumRatio:.7,momentumVelocityRatio:.5,sticky:!1},spaceBetween:6})},yellowCardsData(){let t=this.teamsCards.map(e=>{if(e.matches.length>=5||Number(this.leagueId)!==-1){let s;this.timeFrame==="10"?s=e.matches.slice(0,10).reduce((l,i)=>l+ +i.yellow.team,0):s=e.matches.reduce((l,i)=>l+ +i.yellow.team,0);const a=this.timeFrame==="10"?10:e.matches.length;return{name:e.name,shortname:e.shortname,id:e.id,league_query_name:e.league_query_name,country_query_name:e.country_query_name,team_query_name:e.team_query_name,logo:e.logo,cards:s,data:[a,Math.round(s/a*100)/100],next_match:e.next_match}}}).sort((e,s)=>{let a=s.data[1]-e.data[1];return a==0&&(a=s.cards-e.cards,a==0&&(a=e.name.localeCompare(s.name))),a});return this.selectedLeagueOption&&(t=this.filterTeamsByLeague(t)),this.isLeaguePage||(t=t.filter(e=>e?.next_match!=="-"&&e!==void 0)),t.slice()},redCardsData(){let t=this.teamsCards.map(e=>{if(e.matches.length>=5||Number(this.leagueId)!==-1){let s;this.timeFrame==="10"?s=e.matches.slice(0,10).reduce((l,i)=>l+ +i.red.team,0):s=e.matches.reduce((l,i)=>l+ +i.red.team,0);const a=this.timeFrame==="10"?10:e.matches.length;return{name:e.name,shortname:e.shortname,id:e.id,league_query_name:e.league_query_name,country_query_name:e.country_query_name,team_query_name:e.team_query_name,logo:e.logo,cards:s,data:[a,Math.round(s/a*100)/100],next_match:e.next_match}}}).sort((e,s)=>{let a=s.data[1]-e.data[1];return a==0&&(a=s.cards-e.cards,a==0&&(a=e.name.localeCompare(s.name))),a});return this.selectedLeagueOption&&(t=this.filterTeamsByLeague(t)),this.isLeaguePage||(t=t.filter(e=>e?.next_match!=="-"&&e!==void 0)),t},firstHalvesData(){let t=this.teamsHalves.map(e=>{let s=this.timeFrame==="10"?e.matches.slice(0,10):e.matches,a=s.filter(l=>+l.ht_goals_scored>+l.ht_goals_lost).length;return{name:e.name,shortname:e.shortname,league_query_name:e.league_query_name,country_query_name:e.country_query_name,team_query_name:e.team_query_name,id:e.id,logo:e.logo,firstHalves:a,data:[a+"/"+s.length,Math.round(a/s.length*100)],next_match:e.next_match}}).sort((e,s)=>{let a=s.data[1]-e.data[1];return a==0&&(a=s.firstHalves-e.firstHalves,a==0&&(a=e.name.localeCompare(s.name))),a});return this.selectedLeagueOption&&(t=this.filterTeamsByLeague(t)),this.isLeaguePage||(t=t.filter(e=>e?.next_match!=="-"&&e!==void 0)),t},secondHalvesData(){let t=this.teamsHalves.map(e=>{let s=this.timeFrame==="10"?e.matches.slice(0,10):e.matches,a=s.filter(l=>+l.ft_goals_scored-+l.ht_goals_scored>+l.ft_goals_lost-+l.ht_goals_lost).length;return{name:e.name,shortname:e.shortname,league_query_name:e.league_query_name,country_query_name:e.country_query_name,team_query_name:e.team_query_name,id:e.id,logo:e.logo,secondHalves:a,data:[a+"/"+s.length,Math.round(a/s.length*100)],next_match:e.next_match}}).sort((e,s)=>{let a=s.data[1]-e.data[1];return a==0&&(a=s.secondHalves-e.secondHalves,a==0&&(a=e.name.localeCompare(s.name))),a});return this.selectedLeagueOption&&(t=this.filterTeamsByLeague(t)),this.isLeaguePage||(t=t.filter(e=>e?.next_match!=="-"&&e!==void 0)),t},comebacksData(){let t=this.teamsHalves.map(e=>{let s=this.timeFrame==="10"?e.matches.slice(0,10):e.matches.slice(),a=s.filter(l=>+l.ht_goals_scored<+l.ht_goals_lost&&+l.ft_goals_scored>+l.ft_goals_lost).length;return{name:e.name,shortname:e.shortname,league_query_name:e.league_query_name,country_query_name:e.country_query_name,team_query_name:e.team_query_name,id:e.id,logo:e.logo,comebacks:a,data:[a+"/"+s.length,Math.round(a/s.length*100)],next_match:e.next_match}}).sort((e,s)=>{let a=s.data[1]-e.data[1];return a==0&&(a=s.comebacks-e.comebacks,a==0&&(a=e.name.localeCompare(s.name))),a});return this.selectedLeagueOption&&(t=this.filterTeamsByLeague(t)),this.isLeaguePage||(t=t.filter(e=>e?.next_match!=="-"&&e!==void 0)),t},goalShareData(){let t=this.teamsHalves.map(e=>{const s=this.timeFrame==="10"?e.matches.slice(0,10):e.matches;let a=s.reduce((i,d)=>
1{if(this.selectedOptionForShare==="1. half")return i+ +d.ht_goals_scored;if(this.selectedOptionForShare==="2. half")return i+(+d.ft_goals_scored-+d.ht_goals_scored)},0),l=s.reduce((i,d)=>i+ +d.ft_goals_scored,0);return{name:e.name,shortname:e.shortname,id:e.id,logo:e.logo,league_query_name:e.league_query_name,country_query_name:e.country_query_name,team_query_name:e.team_query_name,goalsInHalf:a,half:this.selectedOption,data:[s.length,`${a}/${l}`,Math.round(a/l*100)],next_match:e.next_match}}).sort((e,s)=>{let a=s.data[2]-e.data[2];return a===0&&(a=s.firstHalves-e.firstHalves,a===0&&(a=e.name.localeCompare(s.name))),a});return this.selectedLeagueOption&&(t=this.filterTeamsByLeague(t)),this.isLeaguePage||(t=t.filter(e=>e?.next_match!=="-"&&e!==void 0)),t},htFtData(){return this.selectedOptionForHtFt==="w/l"?this.turnaroundsData():this.comebacksData()},turnaroundsData(){let t=this.teamsHalves.map(e=>{let s=this.timeFrame==="10"?e.matches.slice(0,10):e.matches.slice(),a=s.filter(l=>+l.ht_goals_scored>+l.ht_goals_lost&&+l.ft_goals_scored<+l.ft_goals_lost).length;return{name:e.name,shortname:e.shortname,league_query_name:e.league_query_name,country_query_name:e.country_query_name,team_query_name:e.team_query_name,id:e.id,logo:e.logo,turnarounds:a,data:[a+"/"+s.length,Math.round(a/s.length*100)],next_match:e.next_match}}).sort((e,s)=>{let a=s.data[1]-e.data[1];return a==0&&(a=s.turnarounds-e.turnarounds,a==0&&(a=e.name.localeCompare(s.name))),a});return this.selectedLeagueOption&&(t=this.filterTeamsByLeague(t)),this.isLeaguePage||(t=t.filter(e=>e?.next_match!=="-"&&e!==void 0)),t},cleanSheetData(){let t=this.teams.map(e=>{let s=this.timeFrame==="10"?e.matches.slice(0,10):e.matches.slice(),a=s.filter(l=>+l.goals_lost==0).length;return{name:e.name,shortname:e.shortname,league_query_name:e.league_query_name,country_query_name:e.country_query_name,team_query_name:e.team_query_name,id:e.id,logo:e.logo,cleanSheets:a,data:[a+"/"+s.length,Math.round(a/s.length*100)],next_match:e.next_match}}).sort((e,s)=>{let a=s.data[1]-e.data[1];return a==0&&(a=s.cleanSheets-e.cleanSheets,a==0&&(a=e.name.localeCompare(s.name))),a});return this.selectedLeagueOption&&(t=this.filterTeamsByLeague(t)),this.isLeaguePage||(t=t.filter(e=>e?.next_match!=="-"&&e!==void 0)),t},foulsData(){let t=this.teamsDetailedStats.map(e=>({name:e.name,shortname:e.shortname,league_query_name:e.league_query_name,country_query_name:e.country_query_name,team_query_name:e.team_query_name,id:e.id,logo:e.logo,data:[e.datailed_stats.match_count,e.datailed_stats.fouls/e.datailed_stats.match_count],next_match:e.next_match})).sort((e,s)=>{let a=s.data[1]-e.data[1];return a===0&&(a=s.cleanSheets-e.cleanSheets,a===0&&(a=e.name.localeCompare(s.name))),a});return this.selectedLeagueOption&&(t=this.filterTeamsByLeague(t)),this.isLeaguePage||(t=t.filter(e=>e?.next_match!=="-"&&e!==void 0)),t},BallPossessionData(){let t=this.teamsDetailedStats.map(e=>{if(![253,197,383,179,210,332,218,207,119,94,345,144,307,283,286,203,357,103,113].includes(+e.league_id))return{name:e.name,shortname:e.shortname,league_query_name:e.league_query_name,country_query_name:e.country_query_name,team_query_name:e.team_query_name,id:e.id,logo:e.logo,data:[e.datailed_stats.match_count,e.datailed_stats.ball_possession/e.datailed_stats.match_count],next_match:e.next_match}}).filter(e=>e!==void 0).sort((e,s)=>{let a=s.data[1]-e.data[1];return a===0&&(a=s.cleanSheets-e.cleanSheets,a===0&&(a=e.name.localeCompare(s.name))),a});return this.selectedLeagueOption&&(t=this.filterTeamsByLeague(t)),this.isLeaguePage||(t=t.filter(e=>e?.next_match!=="-"&&e!==void 0)),t},shotsData(){let t=this.teamsDetailedStats.map(e=>({name:e.name,shortname:e.shortname,league_query_name:e.league_query_name,country_query_name:e.country_query_name,team_query_name:e.team_query_name,id:e.id,logo:e.logo,data:[e.datailed_stats.match_count,this.selectedOptionForShots==="All"?(e.datailed_stats.shotsongoal+e.datailed_stats.shotsoffgoal+e.datailed_stats.blockedshots)/e.datailed_stats.match_count:e.datailed_stats.shotsongoal/e.datailed_stats.match_count],next_match:e.next_match})).sort((e,s)=>{let a=s.data[1]-e.data[1];return a===0&&(a=s.cleanSheets-e.cleanSheets,a===0&&(a=e.name.localeCompare(s.name))),a});return this.selectedLeagueOption&&(t=this.filterTeamsByLeague(t)),this.isLeaguePage||(t=t.filter(e=>e?.next_match!=="-"&&e!==void 0)),t},passesData(){let t=this.teamsDetailedStats.map(e=>{if(![253,197,383,179,210,332,218,207,119,94,345,144,307,283,286,203,357,103,113].includes(+e.league_id))return{name:e.name,shortname:e.shortname,league_query_name:e.league_query_name,country_query_name:e.country_query_name,team_query_name:e.team_query_name,id:e.id,logo:e.logo,data:[e.datailed_stats.match_count,this.selectedOptionForPasses==="All"?e.datailed_stats.totalpasses/e.datailed_stats.match_count:e.datailed_stats.passaccurate/e.datailed_stats.totalpasses*100],next_match:e.next_match}}).sort((e,s)=>{let a=s.data[1]-e.data[1];return a===0&&(a=s.cleanSheets-e.cleanSheets,a===0&&(a=e.name.localeCompare(s.name))),a});return this.selectedLeagueOption&&(t=this.filterTeamsByLeague(t)),this.isLeaguePage||(t=t.filter(e=>e?.next_match!=="-"&&e!==void 0)),t},offsidesData(){let t=this.teamsDetailedStats.map(e=>({name:e.name,shortname:e.shortname,league_query_name:e.league_query_name,country_query_name:e.country_query_name,team_query_name:e.team_query_name,id:e.id,logo:e.logo,data:[e.datailed_stats.match_count,e.datailed_stats.offsides/e.datailed_stats.match_count],next_match:e.next_match})).sort((e,s)=>{let a=s.data[1]-e.data[1];return a===0&&(a=s.cleanSheets-e.cleanSheets,a===0&&(a=e.name.localeCompare(s.name))),a});return this.selectedLeagueOption&&(t=this.filterTeamsByLeague(t)),this.isLeaguePage||(t=t.filter(e=>e?.next_match!=="-"&&e!==void 0)),t},getFilterRows(t){if(t.title==="Udział zdobytych goli drużyny w połowach")return this.tableButtonsForGoalShare;switch(t.short_title){case"HT/FT":return this.tableButtonsForHtFt;case"Strzały":return this.tableButtonsForShots;case"Podania":return this.tableButtonsForPasses;default:return[]}}
1,changeDisplayedStats(t){if(this.type!==t){if(this.uniqueTables.forEach(s=>{s.hidden=!1}),this.type=t,t==="stats"){this.hideSwiper=!1;let s=window.location.href.substring(0,window.location.href.indexOf("#"));window.history.replaceState(null,"",s)}else if(t==="referee"){this.hideSwiper=!0;let s=window.location.href.substring(0,window.location.href.indexOf("#"));window.history.replaceState(null,"",s+"#referees")}else if(t==="players"){this.hideSwiper=!0;let s=window.location.href.substring(0,window.location.href.indexOf("#"));window.history.replaceState(null,"",s+"#players")}let e=document.getElementById("league-stats-title");if(e)switch(t){case"stats":e.textContent="Stats - "+this.leagueName;break;case"referee":e.textContent="Stats - Referees";break;case"players":e.textContent="Stats - Players";break;default:e.textContent="Stats - "+this.leagueName}}},timeFrameChanged(t){this.timeFrame=t,t==="10"&&this.statsStore.getDetailedStatisticsForLeague(+this.leagueId,10),this.loadData()}},watch:{selectedTimeFrame(t,e){t!==e&&re(()=>this.timeFrameChanged(t))},selectedTeam(){this.uniqueTables.forEach(t=>{t.hidden=!1})},selectedOptionForHtFt(t){if(t){let e=this.tables.findIndex(s=>s.short_title==="HT/FT");e!==-1&&(this.tablesData[e]=this.htFtData())}},selectedOptionForShots(t){if(t){let e=this.tables.findIndex(s=>s.short_title==="Strzały");e!==-1&&(this.tablesData[e]=this.shotsData())}},selectedOptionForShare(t){if(t){let e=this.tables.findIndex(s=>s.title==="Udział zdobytych goli drużyny w połowach");e!==-1&&(this.tablesData[e]=this.goalShareData())}},selectedOptionForPasses(t){if(t){let e=this.tables.findIndex(s=>s.short_title==="Podania");e!==-1&&(this.tablesData[e]=this.passesData())}}}},b=t=>(ce("data-v-852f4f2e"),t=t(),me(),t),qe=b(()=>r("hr",{class:"mx-1.5 only-mobile mb-4 border-zt-light rounded border-t-2"},null,-1)),De={key:1},Ie={key:0,class:"relative bg-zt-light/35 border-x border-t border-zt-light rounded-t-zt"},He={class:"swiper py-[11px] px-2 swiper-stat-pages"},Ae={class:"swiper-wrapper"},Be={class:"swiper-slide w-fit leading-[20px]"},Me=["href"],Re={ref:"scrollbarSwiperEl",class:"scrollbar-nav !h-[2px] bg-[#3a4b6480] !cursor-default"},Ee=b(()=>r("span",{class:"text-[13px] font-medium"},"Time interval",-1)),We={class:"flex gap-x-4 text-xs font-normal pt-[13px]"},Ve={class:"flex gap-x-2 items-center"},Ne=b(()=>r("label",{for:"radio_1",class:"cursor-pointer"},"Cały sezon",-1)),Ge={class:"flex gap-x-2 items-center"},Ue=b(()=>r("label",{for:"radio_2",class:"cursor-pointer"},"Ostatnie 10 meczów",-1)),Ye={key:2,class:"mx-2.5 mb-[14px] xl:mx-0 xl:mb-[9px] text-xs flex justify-center text-zt-more leading-[20px]"},je=b(()=>r("div",null,[ge(" Teams with at least 5 league games played this season "),r("svg",{width:"17",height:"21",viewBox:"0 0 17 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:"inline-block"},[r("path",{d:"M8.68 7.06C8.384 7.06 8.136 6.968 7.936 6.784C7.744 6.592 7.648 6.356 7.648 6.076C7.648 5.796 7.744 5.564 7.936 5.38C8.136 5.188 8.384 5.092 8.68 5.092C8.976 5.092 9.22 5.188 9.412 5.38C9.612 5.564 9.712 5.796 9.712 6.076C9.712 6.356 9.612 6.592 9.412 6.784C9.22 6.968 8.976 7.06 8.68 7.06ZM9.508 7.852V14.5H7.828V7.852H9.508Z",fill:"#93A3BA"}),r("path",{d:"M16.5 10.5C16.5 14.9183 12.9183 18.5 8.5 18.5C4.08172 18.5 0.5 14.9183 0.5 10.5C0.5 6.08172 4.08172 2.5 8.5 2.5C12.9183 2.5 16.5 6.08172 16.5 10.5ZM1.51357 10.5C1.51357 14.3585 4.6415 17.4864 8.5 17.4864C12.3585 17.4864 15.4864 14.3585 15.4864 10.5C15.4864 6.6415 12.3585 3.51357 8.5 3.51357C4.6415 3.51357 1.51357 6.6415 1.51357 10.5Z",fill:"#93A3BA"})])],-1)),Ze=[je],Ke={id:"swiper-stats",class:"swiper"},Je={class:"swiper-wrapper pl-2"},Xe=["onClick"],Qe={key:3,class:"flex flex-col items-center mt-[14px] xl:mt-[9px]"},$e=b(()=>r("div",{class:"h-[50px] w-full text-xs grid place-items-center bg-zt-light/35 text-zt-more border-x border-y border-zt-light rounded-zt"}," Brak statystyk do wyświetlania ",-1)),et=[$e],tt={key:"all",ref:"tables_container"},st=["id"],at={key:4,class:"border-zt-light my-6"},lt={key:5,class:"mt-4 border border-zt-light rounded-zt bg-zt-light/35 overflow-hidden"},it={class:"bg-zt-light/35 px-3 py-2.5 font-medium h-[45px]"},ot=["href"],nt=["alt","src"];function rt(t,e,s,a,l,i){const d=g("RefereeDetailsTable"),f=g("PlayersStats"),_=g("StatsLeagueFilter"),w=g("StatsTeamFilter"),k=g("ResultDetailsTable"),R=g("GoalDetailsTable"),E=g("PenaltiesDetailsTable"),W=g("HtFtResultsDetailsTable"),V=g("FoulsDetailsTable"),N=g("ShootsOnGoalDetailsTable"),G=g("OffsidesDetailsTable"),U=g("StatsTable");return n(),h(M,{name:"fade",mode:"out-in"},{default:I(()=>[v(r("div",null,[qe,l.highlightedLeaguesIds.includes(+i.leagueId)&&i.isLeaguePage?(n(),u("div",{key:0,class:m(["flex justify-center border-zt-light px-5 border-t-[1px] border-x-[1px] bg-zt-light-opacity rounded-zt border-b-[1px] xl:mb-5 xl:border-[1px]",{"mb-5":t.window.size.mobile&&l.type==="referee"}])},[r("button",{class:m(["my-2.5 py-2 text-center border-[1px] rounded-l-zt w-[120px] border-zt-light text-xs",{"bg-zt-light":l.type==="stats"}]),id:"teams",onClick:e[0]||(e[0]=o=>i.changeDisplayedStats("stats")),"data-count-click":"Sędziowie - nowy przełącznik 
1w LIGA→STATYSTYKI","data-count-click-category":"football"}," TEAMS ",2),l.highlightedLeaguesIds.includes(+i.leagueId)&&i.isLeaguePage?(n(),u("button",{key:0,class:m(["my-2.5 py-1 text-center border-y-[1px] w-[120px] border-zt-light text-xs",{"bg-zt-light":l.type==="players"}]),id:"referees",onClick:e[1]||(e[1]=o=>i.changeDisplayedStats("players")),"data-count-click":"Zawodnicy - nowy przełącznik w LIGA→STATYSTYKI","data-count-click-category":"football"}," PLAYERS ",2)):c("",!0),r("button",{class:m(["my-2.5 py-1 text-center border-[1px] rounded-r-zt w-[120px] border-zt-light text-xs",{"bg-zt-light":l.type==="referee"}]),id:"referees",onClick:e[2]||(e[2]=o=>i.changeDisplayedStats("referee")),"data-count-click":"Sędziowie - nowy przełącznik w LIGA→STATYSTYKI","data-count-click-category":"football"}," REFEREES ",2)],2)):c("",!0),(n(),h(H,null,[i.isLeaguePage&&l.type==="referee"?(n(),h(d,{key:0,"league-id":+i.leagueId},null,8,["league-id"])):c("",!0)],1024)),(n(),h(H,null,[i.isLeaguePage&&l.type==="players"?(n(),h(f,{key:0,"league-id":+i.leagueId},null,8,["league-id"])):c("",!0)],1024)),l.type==="stats"?(n(),u("div",De,[i.isLeaguePage?c("",!0):(n(),u("div",Ie,[r("div",He,[r("div",Ae,[(n(!0),u(x,null,T(l.swiperStatsPages,o=>(n(),u("div",Be,[r("a",{href:o.href,class:m([{"text-zt-red":l.currentSelectedPage.shortname===o.shortname},"no-default-style uppercase text-zt-more underline zt-hover cursor-pointer text-sm font-medium"])},F(o.shortname),11,Me)]))),256))])]),r("div",Re,null,512)])),r("div",{class:m(["pb-3 mb-[14px] px-2.5 pt-[14px] gap-x-[11px] border border-zt-light grid grid-cols-2 bg-zt-light/35 rounded-x-zt rounded-b-zt xl:pt-3 xl:gap-x-1.5 xl:px-0",{"mt-2.5 rounded-t-zt":i.isLeaguePage,"!mb-0":i.isLeaguePage&&t.window.size.mobile}])},[i.isLeaguePage?c("",!0):(n(),h(_,{key:0,class:"rounded-b-[0px] xl:pl-2.5","analytic-text":"Wybór lig w STATACH GŁÓWNYCH",onChangeOption:i.handleLeagueChange,onInitOption:e[3]||(e[3]=o=>i.handleFilterComponentLoaded("league",o))},null,8,["onChangeOption"])),i.isLeaguePage?c("",!0):(n(),h(w,{key:1,teams:i.teamsForSelect,"selected-league-option":l.selectedLeagueOption,"team-id-field":"id",ref:"statsTeamFilter",onTeamChanged:i.handleTeamSelect,onInitOption:e[4]||(e[4]=o=>i.handleFilterComponentLoaded("team",o))},null,8,["teams","selected-league-option","onTeamChanged"])),r("div",{class:m(["col-span-2 flex flex-col items-center",{"border-t border-zt-light pt-[14px] mt-4":!i.isLeaguePage}])},[Ee,r("div",We,[r("div",Ve,[v(r("input",{class:m(["radio_btn",{checked_btn:l.timeFrame==="all"}]),type:"radio",onClick:e[5]||(e[5]=o=>t.countClicks("Staty: nowy filtrator cały sezon-ost 10 meczów","football")),id:"radio_1",name:"time_frame",value:"all","onUpdate:modelValue":e[6]||(e[6]=o=>l.selectedTimeFrame=o)},null,2),[[A,l.selectedTimeFrame]]),Ne]),r("div",Ge,[v(r("input",{class:m(["radio_btn",{checked_btn:l.timeFrame==="10"}]),onClick:e[7]||(e[7]=o=>t.countClicks("Staty: nowy filtrator cały sezon-ost 10 meczów","football")),type:"radio",name:"time_frame",id:"radio_2",value:"10","onUpdate:modelValue":e[8]||(e[8]=o=>l.selectedTimeFrame=o)},null,2),[[A,l.selectedTimeFrame]]),Ue])])],2)],2)])):c("",!0),i.isLeaguePage?c("",!0):(n(),u("div",Ye,Ze)),v(r("div",{id:"sticky-swiper",ref:"statsFilter",class:m([{"shadow-zt":l.isFilteringSticky,"!z-0":!l.isFilteringSticky,"!border-t-0":l.highlightedLeaguesIds.includes(+i.leagueId)&&i.isLeaguePage},"border-t border-zt-light py-3 sticky top-0 z-10 bg-zt-main"])},[r("div",Ke,[r("div",Je,[(n(!0),u(x,null,T(i.mobileSwiperOptions,(o,p)=>(n(),u("div",{onClick:C=>i.changeTab(o.short_title,p,o.hidden),class:m([{"bg-zt-light font-semibold":o.short_title===l.selectedStat,"mr-4":p===i.mobileSwiperOptions.length-1,"opacity-40":o.hidden},"swiper-slide w-fit text-xs p-2 border border-zt-light rounded-[15px]"])},F(o.short_title),11,Xe))),256))])])],2),[[B,t.window.size.mobile&&!l.reloadSwiper&&!l.hideSwiper&&l.currentSelectedPage.shortname==="All"]]),l.tablesData.every(o=>o.length===0)&&l.currentSelectedPage.shortname==="All"&&!l.otherTablesHaveData?(n(),u("div",Qe,et)):c("",!0),y(M,{name:"fade"},{default:I(()=>[l.type==="stats"&&l.currentSelectedPage.shortname==="All"?(n(),u("div",tt,[(n(!0),u(x,null,T(l.tables,(o,p)=>(n(),u("div",{id:"table-"+i.stringToId(o.short_title)+p,key:o.short_title,ref_for:!0,ref:o.short_title},[o.short_title==="1x2"&&!o?.version?(n(),h(k,{key:0,"time-frame":l.timeFrame,"show-more-count":20,count:i.noOfTeamsToShow,class:"mb-6 xl:mb-5","selected-league-option":l.selectedLeagueOption,"selected-team":l.selectedTeam,"league-id":+i.leagueId,"is-admin-page":s.isAdminPage},null,8,["time-frame","count","selected-league-option","selected-team","league-id","is-admin-page"])):o.short_title==="First team to score"?(n(),h(R,{key:1,"time-frame":l.timeFrame,"is-series-table":!1,class:"mb-6 xl:mb-5","selected-team":l.selectedTeam,"selected-league-option":l.selectedLeagueOption,"league-id":+i.leagueId,"is-admin-page":s.isAdminPage,"show-more-count":20,count:i.noOfTeamsToShow},null,8,["time-frame","selected-team","selected-league-option","league-id","is-admin-page","count"])):o.short_title==="Handicap"?(n(),h(k,{key:2,"is-series-table":!1,"time-frame":l.timeFrame,count:i.noOfTeamsToShow,class:"mb-6 xl:mb-5","is-admin-page":s.isAdminPage,"selected-team":l.selectedTeam,"selected-league-option":l.selectedLeagueOption,"league-id":+i.leagueId,version:"handicap"},null,8,["time-frame","count","is-admin-page","selected-team","selected-league-option","league-id"])):o.short_title==="Penalties"&&i.isLeaguePage?(n(),h(E,{key:3,onEmpty:i.removePenFromSlider,onHasData:i.setDataAvailable,class:"mb-6 xl:mb-5","selected-league-option":l.selectedLeagueOption,"league-id":+i.leagueId,"is-admin-page":s.isAdminPage,"time-frame":l.timeFrame}
1,null,8,["onEmpty","onHasData","selected-league-option","league-id","is-admin-page","time-frame"])):o.short_title==="Halves"&&o?.separate_component?(n(),h(W,{key:4,"time-frame":l.timeFrame,class:"mb-6 xl:mb-5","league-id":+i.leagueId,type:"both_halves_goals","selected-team":l.selectedTeam,"selected-league-option":l.selectedLeagueOption,count:i.noOfTeamsToShow},null,8,["time-frame","league-id","selected-team","selected-league-option","count"])):o.short_title==="Fouls"&&i.isLeaguePage?(n(),h(V,{key:5,"selected-league-option":l.selectedLeagueOption,"time-frame":l.timeFrame,"league-id":+i.leagueId,"is-admin-page":s.isAdminPage,"selected-team":l.selectedTeam,class:"mb-6 xl:mb-5"},null,8,["selected-league-option","time-frame","league-id","is-admin-page","selected-team"])):o.short_title==="Shots"&&i.isLeaguePage?(n(),h(N,{key:6,"selected-league-option":l.selectedLeagueOption,"time-frame":l.timeFrame,"league-id":+i.leagueId,"is-admin-page":s.isAdminPage,"selected-team":l.selectedTeam,class:"mb-6 xl:mb-5"},null,8,["selected-league-option","time-frame","league-id","is-admin-page","selected-team"])):o.short_title==="Offsides"&&i.isLeaguePage?(n(),h(G,{key:7,"selected-league-option":l.selectedLeagueOption,"time-frame":l.timeFrame,"league-id":+i.leagueId,"is-admin-page":s.isAdminPage,"selected-team":l.selectedTeam,class:"mb-6 xl:mb-5"},null,8,["selected-league-option","time-frame","league-id","is-admin-page","selected-team"])):!i.isLeaguePage||i.isLeaguePage&&o?.showInLeague!==!1?(n(),h(U,{key:8,class:m({"mb-6 xl:mb-5":p!==l.tables.length-1}),onExpanded:i.getTablesPositions,title:o.title,"time-frame":l.timeFrame,"tooltip-type":o.title.toLowerCase().includes("rzuty rożne")?"corners":"",columns:i.getColumns(p),teams:l.tablesData[p],"highlighted-column":o.highlightedColumn,"is-league-page":i.isLeaguePage&&!s.isAdminPage,precision:o.precision??0,"buttons-rows":i.getFilterRows(o),"selected-team-id":l.selectedTeam.id,"first-show-count":i.noOfTeamsToShow,"extra-info":i.getExtraInfo(o),"selected-team":l.selectedTeam,"is-admin-page":s.isAdminPage,onBtnClick:e[9]||(e[9]=C=>this[C[0]]=C[1])},null,8,["class","onExpanded","title","time-frame","tooltip-type","columns","teams","highlighted-column","is-league-page","precision","buttons-rows","selected-team-id","first-show-count","extra-info","selected-team","is-admin-page"])):c("",!0)],8,st))),128))])):c("",!0)]),_:1}),t.window.size.mobile?(n(),u("hr",at)):c("",!0),t.window.size.mobile?(n(),u("div",lt,[r("div",it,F(i.isLeaguePage?"Check all leagues statistics":"Check statistics"),1),(n(!0),u(x,null,T(l.statsPages,(o,p)=>(n(),u("a",{href:o.href,class:m([{"border-b-0":p===l.statsPages.length-1,"bg-zt-light":p===0&&!i.isLeaguePage},"h-[38px] no-default-style w-full p-3 text-sm border-b border-zt-light transition-colors flex items-center gap-2.5 focus:bg-zt-light/35"])},[r("img",{alt:o.name,class:"aspect-square h-[18px]",src:`/wp-content/themes/zawodtyper/assets/images/ikony_football/${o.img}`},null,8,nt),r("span",null,F(o.name),1)],10,ot))),256))])):c("",!0)],512),[[B,!l.loading]])]),_:1})}const Ht=L(ze,[["render",rt],["__scopeId","data-v-852f4f2e"]]);export{Ht as default};
2//# sourceMappingURL=StatsMain-DTRongYT.js.map

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.