@golstats/gsc-game-data 1.0.122 → 1.0.123
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{FilterConditions-dc6b25de-CdawgDTp-4d9f4acf.js → FilterConditions-dc6b25de-CdawgDTp-b327df6e.js} +1 -1
- package/dist/{FilterField-37ad154d-PFd8HpMJ-ff115184.js → FilterField-37ad154d-PFd8HpMJ-79454e02.js} +1 -1
- package/dist/{FilterSubcategories-a7b96423-Bs67-HFD-c697804f.js → FilterSubcategories-a7b96423-Bs67-HFD-5b906403.js} +1 -1
- package/dist/gsc-game-data.js +1 -1
- package/dist/gsc-game-data.umd.cjs +1 -1
- package/dist/{index-8fa7a8a9.js → index-0f935bdc.js} +5 -5
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useCssVars as E, computed as r, openBlock as s, createElementBlock as i, normalizeStyle as V, createElementVNode as d, createVNode as y, unref as g, Fragment as u, renderList as _, normalizeClass as b, toDisplayString as v, pushScopeId as $, popScopeId as H } from "vue";
|
|
2
|
-
import { r as T, F as m } from "./index-
|
|
2
|
+
import { r as T, F as m } from "./index-0f935bdc.js";
|
|
3
3
|
const n = (o) => ($("data-v-80d9c265"), o = o(), H(), o), F = { class: "details__header" }, R = /* @__PURE__ */ n(() => /* @__PURE__ */ d("div", { class: "details__header__title" }, "Jugando como", -1)), W = { class: "details__header__checkbox" }, I = { class: "details__body" }, z = { class: "details__body__playing-as" }, L = ["onClick"], N = { class: "details__header" }, U = /* @__PURE__ */ n(() => /* @__PURE__ */ d("div", { class: "details__header__title" }, "En: (Elige el lapso de tiempo)", -1)), D = { class: "details__header__checkbox" }, J = { class: "details__body" }, j = /* @__PURE__ */ n(() => /* @__PURE__ */ d("div", { class: "details__body__title" }, "1er tiempo", -1)), q = { class: "details__body__game-section" }, w = ["onClick"], G = { class: "details__body" }, K = /* @__PURE__ */ n(() => /* @__PURE__ */ d("div", { class: "details__body__title" }, "2do tiempo", -1)), M = { class: "details__body__game-section" }, O = ["onClick"], Q = {
|
|
4
4
|
__name: "FilterConditions",
|
|
5
5
|
props: {
|
package/dist/{FilterField-37ad154d-PFd8HpMJ-ff115184.js → FilterField-37ad154d-PFd8HpMJ-79454e02.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ref as l, openBlock as a, createElementBlock as n, createVNode as c, unref as d } from "vue";
|
|
2
|
-
import { r as u, R as f } from "./index-
|
|
2
|
+
import { r as u, R as f } from "./index-0f935bdc.js";
|
|
3
3
|
const i = { class: "filter-field" }, m = {
|
|
4
4
|
__name: "FilterField",
|
|
5
5
|
setup(s) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { openBlock as r, createElementBlock as a, Fragment as t, renderList as u, createVNode as d, createBlock as i, unref as n } from "vue";
|
|
2
|
-
import { r as l, F as y } from "./index-
|
|
2
|
+
import { r as l, F as y } from "./index-0f935bdc.js";
|
|
3
3
|
const b = { class: "subcategory-group" }, g = {
|
|
4
4
|
__name: "SubcategoryGroup",
|
|
5
5
|
props: {
|
package/dist/gsc-game-data.js
CHANGED
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
<div class="__title">${m}:</div>
|
|
31
31
|
<div class="__totals">${n}: ${s}</div>
|
|
32
32
|
</div>
|
|
33
|
-
`}}}},getChartSeries(e,a){let r,d;return this.showPostMatchData?(r={name:`${this.homeTeam.acronym}`,data:[],dataTotal:[]},d={name:`${this.visitingTeam.acronym}`,data:[],dataTotal:[]},a.arraySubcategories=[],Object.values(e).forEach((m,n)=>{a.xaxis.categories.push(this.prepareLabels(m,n)),a.arraySubcategories.push(m);const s=m.homeTeam[this.homeTeamStatisticsType].totalPostGame+m.visitingTeam[this.visitingTeamStatisticsType].totalPostGame;r.data.push(Math.round(120*(s?m.homeTeam[this.homeTeamStatisticsType].totalPostGame/s:0))),r.dataTotal.push(m.homeTeam[this.homeTeamStatisticsType].totalPostGame),d.data.push(Math.round(120*(s?m.visitingTeam[this.visitingTeamStatisticsType].totalPostGame/s:0))),d.dataTotal.push(m.visitingTeam[this.visitingTeamStatisticsType].totalPostGame)})):(r={name:`${this.showLiveData?"Live":"Histórico"} ${this.homeTeam.acronym}`,data:[],dataTotal:[]},d={name:`${this.showLiveData?"Live":"Histórico"} ${this.visitingTeam.acronym}`,data:[],dataTotal:[]},a.arraySubcategories=[],Object.values(e).forEach((m,n)=>{a.xaxis.categories.push(this.prepareLabels(m,n)),a.arraySubcategories.push(m);let s,i,_,f;m.homeTeam[this.homeTeamStatisticsType].leader.points,m.visitingTeam[this.visitingTeamStatisticsType].leader.points;const o=m.homeTeam.accomplished.avgPostGame+m.visitingTeam.accomplished.avgPostGame;if(!this.showLiveData)this.gameForAnalysis.game_status!==1&&m.generalCategoriesIds.accomplished===3?(s=m.homeTeam.accomplished.avgPostGame/o,_=m.homeTeam.accomplished.totalPostGame):(s=o?m.homeTeam[this.homeTeamStatisticsType].avgPostGame/o:0,_=m.homeTeam[this.homeTeamStatisticsType].totalPostGame);else{const g=m.homeTeam[this.homeTeamStatisticsType].totalLive+m.visitingTeam[this.visitingTeamStatisticsType].totalLive;s=g?m.homeTeam[this.homeTeamStatisticsType].totalLive/g:0,_=m.homeTeam[this.homeTeamStatisticsType].totalLive}if(!this.showLiveData)this.gameForAnalysis.game_status!==1&&m.generalCategoriesIds.accomplished===3?(i=m.visitingTeam.accomplished.avgPostGame/o,f=m.visitingTeam.accomplished.totalPostGame):(i=o?m.visitingTeam[this.visitingTeamStatisticsType].avgPostGame/o:0,f=m.visitingTeam[this.visitingTeamStatisticsType].totalPostGame);else{const g=m.homeTeam[this.homeTeamStatisticsType].totalLive+m.visitingTeam[this.visitingTeamStatisticsType].totalLive;i=g?m.visitingTeam[this.visitingTeamStatisticsType].totalLive/g:0,f=m.visitingTeam[this.visitingTeamStatisticsType].totalLive}r.data.push(Math.round(120*s)),r.dataTotal.push(Math.round(_)),d.data.push(Math.round(120*i)),d.dataTotal.push(Math.round(f))})),[r,d]},onHomeTeamPlaysTypeChanged(e){this.homeTeamSelectedPlaysType=e},onVisitingTeamPlaysTypeChanged(e){this.visitingTeamSelectedPlaysType=e},getSubcategoryData(e,a="homeTeam"){return e.id==="3-0"&&(e[a].accomplished.totalLiveBothTeams=e.homeTeam.accomplished.totalLive+e.visitingTeam.accomplished.totalLive),e[a].accomplished||0},showModal(e,a,r){const d=r===0?"homeTeam":"visitingTeam",m=e.config.arraySubcategories[a]||{};this.tooltip.isLeagueAvgVisible=m.id!=="3-0",this.tooltip.data=this.getSubcategoryData(m,d),this.tooltip.local=r===0,this.tooltip.names=m.names,this.tooltip.keyName=this.subcategoryName,this.tooltip.leagueAvg=this.leagueAvg(m);const n=e.globals.clientX||0,s=e.globals.clientY||0;this.globals.x=n,this.globals.y=s,this.tooltip.x=n,this.tooltip.y=s>700?s-250:s;const i=m.generalCategoriesIds.accomplished===3;if(i){const _=m.homeTeam.accomplished.avgPostGame+m.visitingTeam.accomplished.avgPostGame;this.tooltip.numberValue=_?m[d].accomplished.avgPostGame/_*100:0}else this.tooltip.numberValue=null;return this.tooltip.booleanIsPercent=i,this.tooltip.show=!0,this.tooltip.data},updateTooltip(e){const r=Math.abs(e.clientX-this.globals.x),d=Math.abs(e.clientY-this.globals.y);(r>5||d>5)&&(this.tooltip.show=!1)},prepareLabels(e,a){let r=e.name||e.names[this.subcategoryName]||e.names["0-0"];if(a===0)return r;const d=13;if(r.length>d){let m=r.split(" ");r=[];let n="",s="",i=m.slice(-1)[0];m.forEach(_=>{n+=` ${_} `,n.length>d&&(r.push(s.trim()),n=_),s=n,i===_&&r.push(s.trim())})}return r},leagueAvg(e){return e.generalCategoriesIds.accomplished===3?(e.homeTeam.accomplished.arrayRankings.reduce((a,r)=>a+r.points,0)/e.homeTeam.accomplished.arrayRankings.length*100).toFixed(2):this.avg(e,this.accomplished)}}},nC=e=>(t.pushScopeId("data-v-383baec7"),e=e(),t.popScopeId(),e),wK={key:0,class:"distribution-leyend"},kK=nC(()=>t.createElementVNode("br",null,null,-1)),CK={class:"distribution"},EK={class:"distribution__container"},SK={class:"distribution__container__chart-type__title"},TK=nC(()=>t.createElementVNode("div",{class:"distribution__container__chart-type__controls"},null,-1)),AK={class:"distribution__container__chart-type__chart"};function NK(e,a,r,d,m,n){const s=t.resolveComponent("apexchart");return t.openBlock(),t.createElementBlock(t.Fragment,null,[e.gameForAnalysis.game_status==4?(t.openBlock(),t.createElementBlock("div",wK,[t.createTextVNode("Faltan "),t.createElementVNode("span",null,t.toDisplayString(n.timeLeft),1),t.createTextVNode(" para el inicio."),kK,t.createTextVNode("Las estadísticas corresponden a sus promedios por partido del torneo "),t.createElementVNode("span",null,t.toDisplayString(r.seasonSelected.name),1)])):t.createCommentVNode("",!0),t.createElementVNode("div",CK,[t.createElementVNode("div",EK,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(m.arrayDataForCharts,(i,_)=>(t.openBlock(),t.createElementBlock("div",{class:"distribution__container__chart-type",key:_},[t.createElementVNode("div",SK,t.toDisplayString(i.name),1),TK,t.createElementVNode("div",AK,[(t.openBlock(),t.createBlock(s,{type:"radar",height:m.height,options:m.arrayChartOptions[_],series:m.arrayFilledSeries[_],key:m.chartKeyCounter+m.updateCategory+_},null,8,["height","options","series"]))])]))),128))])])],64)}const BK=Si(xK,[["render",NK],["__scopeId","data-v-383baec7"]]),IK=(e,a)=>{const r=e.__vccOpts||e;for(const[d,m]of a)r[d]=m;return r},Qb={props:{textOptionLeft:String,valueDefault:{type:String,default:""},textOptionRight:String,hiddenLabels:{type:Boolean,default:!1},width:{type:String,default:"50px"},height:{type:String,default:"32px"},heightCircle:{type:String,default:"24px"},widthCircle:{type:String,default:"24px"},widthIcons:{type:String,default:"22"},borderRadius:{type:String,default:"30px"},borderType:{type:String,default:"solid"},borderWidth:{type:Number,default:1},borderColor:{type:String,default:"#FFFFFF"},fontSize:{type:String,default:"14px"},fontColor:{type:String,default:"#000000"},iconA:{type:String,default:""},iconB:{type:String,default:""},fontFamily:{type:String,default:"Poppins-Regular"},backgroundColor:{type:String,default:"#2e3b46"},circleColorSwitch:{type:String,default:"#FFFFFF"}},data(){return{OptionDefault:!1}},watch:{valueDefault:{immediate:!0,handler:async function(e){try{e==this.textOptionLeft&&(this.OptionDefault=!1),e==this.textOptionRight&&(this.OptionDefault=!0)}catch(a){throw new Error(a)}}}},computed:{customStyle(){return{width:this.width,height:this.height,borderRadius:this.borderRadius,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`,backgroundColor:this.backgroundColor,circleColor:this.circleColorSwitch}},customText(){return{color:this.fontColor,fontSize:this.fontSize,fontFamily:`${this.fontFamily} !important`}}},methods:{handleSwitchChange(e){e.target.checked?this.$emit("change",this.textOptionRight):this.$emit("change",this.textOptionLeft)}}},iC=()=>{t.useCssVars(e=>({"1b04779e":e.widthCircle,c974bf22:e.heightCircle}))},oC=Qb.setup;Qb.setup=oC?(e,a)=>(iC(),oC(e,a)):iC;const MK={key:0,class:"text-left"},OK=["width","src"],PK=["checked"],FK=["width","src"],RK={key:3,class:"text-right"};function VK(e,a,r,d,m,n){return t.openBlock(),t.createElementBlock("div",{class:"gsc-switch-radio",style:t.normalizeStyle(n.customText)},[r.textOptionLeft!=""&&!r.hiddenLabels?(t.openBlock(),t.createElementBlock("span",MK,t.toDisplayString(r.textOptionLeft),1)):t.createCommentVNode("",!0),r.iconA!=""?(t.openBlock(),t.createElementBlock("img",{key:1,width:r.widthIcons,src:r.iconA},null,8,OK)):t.createCommentVNode("",!0),t.createElementVNode("input",{type:"checkbox",id:"toggle-btn",onChange:a[0]||(a[0]=(...s)=>n.handleSwitchChange&&n.handleSwitchChange(...s)),checked:m.OptionDefault},null,40,PK),t.createElementVNode("label",{for:"toggle-btn",style:t.normalizeStyle([n.customStyle,{"--circle-color":r.circleColorSwitch}])},null,4),r.iconB!=""?(t.openBlock(),t.createElementBlock("img",{key:2,width:r.widthIcons,src:r.iconB},null,8,FK)):t.createCommentVNode("",!0),r.textOptionRight!=""&&!r.hiddenLabels?(t.openBlock(),t.createElementBlock("span",RK,t.toDisplayString(r.textOptionRight),1)):t.createCommentVNode("",!0)],4)}const zK=IK(Qb,[["render",VK],["__scopeId","data-v-e2a20444"]]),BBt="",IBt="",DK={name:"tooltip",props:{data:{type:Object,required:!0}},computed:{positionTooltip(){return{top:`${this.data.y}px`,left:`${this.data.x}px`}},showTooltip(){return{visible:this.data.visible}}},methods:{tooltipClick:function(e){this.visible=!1}}};function LK(e,a,r,d,m,n){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["box-tooltip",n.showTooltip]),style:t.normalizeStyle(n.positionTooltip),onClick:a[0]||(a[0]=(...s)=>n.tooltipClick&&n.tooltipClick(...s))},[t.renderSlot(e.$slots,"default",{},void 0,!0)],6)}const sC=Si(DK,[["render",LK],["__scopeId","data-v-33a39744"]]),MBt="",$K={name:"SoccerChalkboard",components:{Tooltip:sC},props:{plays:{type:Array,required:!0},categories:{type:Array,required:!0},team:{type:String,required:!0}},data(){return{negativeColor:"red",data:{x:0,y:0,visible:!1},dataPlay:{playerName:"",photo:"",minute:0,rivalLogo:"",rivalName:"",categoryName:"",xGi:0,xGf:0,isOwnGoal:!1}}},computed:{...qi("nextGeneral",["homeTeam","visitingTeam"]),preparedPlays(){return this.plays.map(e=>({...e,playingAs:e.playing_as,teamId:e.team_id,photo:e.photo,categoryId:e.category_id,matchResult:e.match_result,matchLapse:e.matchlapse,x1:e.x1*100,y1:e.y1*100,x2:e.x2*100,y2:e.y2*100,x3:e.x3*100,y3:e.y3*100,xGi:e.xG1,xGf:e.xG2}))},localCategories(){return this.categories.map((e,a)=>({id:a,name:e.name,negative:e.negative||!1,color:e.color,points:e.points,numPoints:e.points.length,categories:e.categories,invert:e.invert||[]}))},graphPlays(){let e=this.localCategories.reduce((d,m)=>[...d,m.categories],[]);return this.preparedPlays.filter(d=>this.findCategoryInPlay(e,d)).reduce((d,m)=>{let n=this.localCategories.find(s=>this.findCategoryInPlay(s.categories,m));if(n){let s={category:n.id,categoryName:n.name,arrowColor:n.negative?this.negativeColor:n.color,arrowMarkerColor:n.negative?"url(#arrow-negative)":`url(#arrow-${n.id})`,markerColor:n.color,jersey:m.jersey_number,matchlapse:m.matchLapse,playerName:m.player_name,photo:m.photo,rivalLogo:m.rival_id,x1:n.invert.includes(m.categoryId)?100-m[`x${n.points[0]}`]:m[`x${n.points[0]}`],y1:n.invert.includes(m.categoryId)?100-m[`y${n.points[0]}`]:m[`y${n.points[0]}`],x2:n.invert.includes(m.categoryId)?100-m[`x${n.points[1]}`]:m[`x${n.points[1]}`],y2:n.invert.includes(m.categoryId)?100-m[`y${n.points[1]}`]:m[`y${n.points[1]}`],x3:n.invert.includes(m.categoryId)?100-m[`x${n.points[2]}`]:m[`x${n.points[2]}`],y3:n.invert.includes(m.categoryId)?100-m[`y${n.points[2]}`]:m[`y${n.points[2]}`],momentOfPlay:m.moment_of_play,isOwnGoal:n.invert.includes(m.categoryId),xGi:m.xGi,xGf:m.xGf};d.push(s)}return d},[])}},methods:{findCategoryInPlay(e,a){return e.find(r=>typeof r=="number"?r===a.categoryId:r.includes(a.categoryId))},onMouseOver(e,a){this.dataPlay.playerName=a.playerName||"",this.dataPlay.photo=a.photo||"",this.dataPlay.minute=parseInt(a.momentOfPlay.split(":")[0])||"",this.dataPlay.rivalLogo=a.rivalLogo||"",this.dataPlay.categoryName=a.categoryName||"",this.dataPlay.rivalName=this.team=="Visiting"?this.homeTeam.colloquial_name:this.visitingTeam.colloquial_name,this.dataPlay.xGi=String(a.xGi),this.dataPlay.xGf=String(a.xGf),this.dataPlay.isOwnGoal=a.isOwnGoal,this.data.visible=!0},onMouseLeave(){this.data.visible=!1}}},Xm=e=>(t.pushScopeId("data-v-883eff7a"),e=e(),t.popScopeId(),e),jK={class:"soccer-chalkboard-xg"},UK={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 490 684","xmlns:xlink":"http://www.w3.org/1999/xlink",class:"soccer-chalkboard"},HK={xmlns:"http://www.w3.org/2000/svg",viewBox:"30 0 452 684","xmlns:xlink":"http://www.w3.org/1999/xlink"},GK=Xm(()=>t.createElementVNode("marker",{id:"arrow-negative",viewBox:"0 0 10 10",refX:"5",refY:"5",markerWidth:"6",markerHeight:"6",markerUnits:"strokeWidth",orient:"auto"},[t.createElementVNode("path",{d:"M 0 0 L 10 5 L 0 10 z","stroke-width":"2",fill:"red"})],-1)),WK=["id"],qK=["fill"],YK=Xm(()=>t.createElementVNode("pattern",{id:"fieldBackground",width:"1",height:"1",viewBox:"0 0 100 100",preserveAspectRatio:"none"},[t.createElementVNode("image",{"xlink:href":"https://az755631.vo.msecnd.net/todoelfut/fieldbg.png",width:"100",height:"100",preserveAspectRatio:"none",id:"image2"})],-1)),ZK=["id"],XK=["x1","y1","x2","y2","stroke"],KK=["x1","y1","x2","y2","stroke","marker-end"],JK=["onMouseover"],QK=["x","y","fill"],eJ=["x","y"],tJ={class:"tooltip-data has-text-left"},aJ={class:"bold"},rJ={class:"tooltip-image"},nJ={class:"tooltip-image"},iJ=["src"],oJ={class:"tooltip-xg"},sJ={key:0},lJ=Xm(()=>t.createElementVNode("span",null,"xGi:",-1)),cJ=Xm(()=>t.createElementVNode("div",{class:"tooltip-xg-separator"},null,-1)),dJ={key:1},uJ=Xm(()=>t.createElementVNode("span",null,"xGf:",-1));function pJ(e,a,r,d,m,n){const s=t.resolveComponent("Tooltip");return t.openBlock(),t.createElementBlock("div",jK,[(t.openBlock(),t.createElementBlock("svg",UK,[(t.openBlock(),t.createElementBlock("svg",HK,[t.createElementVNode("defs",null,[GK,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.localCategories,i=>(t.openBlock(),t.createElementBlock("marker",{key:`arrow-color-${i.id}`,id:`arrow-${i.id}`,viewBox:"0 0 10 10",refX:"5",refY:"5",markerWidth:"6",markerHeight:"6",markerUnits:"strokeWidth",orient:"auto"},[t.createElementVNode("path",{d:"M 0 0 L 10 5 L 0 10 z","stroke-width":"2",fill:i.color},null,8,qK)],8,WK))),128)),YK]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.graphPlays,i=>(t.openBlock(),t.createElementBlock("g",{key:i.id,id:`play-${i.playId}`},[t.createElementVNode("line",{x1:`${i.x1}%`,y1:`${i.y1}%`,x2:`${i.x2}%`,y2:`${i.y2}%`,stroke:i.arrowColor,"stroke-width":"2"},null,8,XK),t.createElementVNode("line",{x1:`${i.x2}%`,y1:`${i.y2}%`,x2:`${i.x3}%`,y2:`${i.y3}%`,stroke:i.arrowColor,"stroke-width":"2","marker-end":i.arrowMarkerColor},null,8,KK),t.createElementVNode("g",{onMouseover:_=>n.onMouseOver(_,i),onMouseleave:a[0]||(a[0]=(..._)=>n.onMouseLeave&&n.onMouseLeave(..._)),class:"is-pointer"},[t.createElementVNode("rect",{x:`${i.x1}%`,y:`${i.y1}%`,transform:"translate(-14, -14)",height:"28",width:"28","stroke-width":"2",fill:i.markerColor,stroke:"#999",rx:"14",ry:"14"},null,8,QK),t.createElementVNode("text",{"text-anchor":"middle","dominant-baseline":"middle",x:`${i.x1}%`,y:`${i.y1}%`,dy:"1","font-size":"15",fill:"#fff","font-family":"'Poppins-SemiBold', sans-serif"},t.toDisplayString(i.jersey),9,eJ)],40,JK)],8,ZK))),128))]))])),t.createVNode(s,{data:m.data},{default:t.withCtx(()=>[t.createElementVNode("div",tJ,[t.createElementVNode("div",null,[t.createElementVNode("span",aJ,t.toDisplayString(m.dataPlay.isOwnGoal?"Autogol":m.dataPlay.categoryName),1)]),t.createElementVNode("div",null,[t.createTextVNode(t.toDisplayString(m.dataPlay.playerName)+" ",1),t.createElementVNode("div",rJ,[t.createElementVNode("div",{class:"tooltip-image-player",style:t.normalizeStyle("background: url("+m.dataPlay.photo+") top")},null,4)])]),t.createElementVNode("div",null,"Minuto: "+t.toDisplayString(m.dataPlay.minute)+"'",1),t.createElementVNode("div",null,[t.createTextVNode(" Rival: "),t.createElementVNode("div",nJ,[t.createElementVNode("img",{src:m.dataPlay.rivalLogo},null,8,iJ)])]),t.createElementVNode("div",oJ,[/^[+]?([0-1]+(?:[\.][0-9]*)?|\.[0-9]+)$/.test(m.dataPlay.xGi)&&m.dataPlay.xGi<=1&&!m.dataPlay.isOwnGoal?(t.openBlock(),t.createElementBlock("div",sJ,[lJ,t.createTextVNode(" "+t.toDisplayString(Number(m.dataPlay.xGi)),1)])):t.createCommentVNode("",!0),cJ,/^[+]?([0-1]+(?:[\.][0-9]*)?|\.[0-9]+)$/.test(m.dataPlay.xGf)&&m.dataPlay.xGf<=1&&!m.dataPlay.isOwnGoal?(t.openBlock(),t.createElementBlock("div",dJ,[uJ,t.createTextVNode(" "+t.toDisplayString(Number(m.dataPlay.xGf)),1)])):t.createCommentVNode("",!0)])])]),_:1},8,["data"])])}const lC=Si($K,[["render",pJ],["__scopeId","data-v-883eff7a"]]),dg=[{name:"Goles",color:"#336DFF",points:[1,2,3],categories:[12,55,35,54],invert:[35,54],negative:!1},{name:"Tiros a gol",color:"#7ED321",points:[1,2,3],categories:[12,55,35,54,510]}],OBt="",hJ={name:"Xg",components:{SoccerChalkboard:lC},props:{},data(){return{categories:dg}},computed:{...Ol("nextGeneral",["usePastSeasonId","pastSeasonId","gameId"]),...Ol("general",["booleanIsStatisticModalOpen"]),...qi("xgGeneral",["playsLocal","goalsQtyLocal","shotsOnGoalQtyLocal","xGLocal"]),...qi("nextGeneral",["getSeasonId","homeTeam","visitingTeam","showPostMatchData","game","getGameForAnalysis"]),...qi("loginGeneral",["getPremiumAccount","getIsGolstats"]),...qi("general",["getPreviewSectionAnalytics"]),stringSelectedTeamLogo(){return this.homeTeam.logo},windowWidth(){return this.$store.state.windowWidth},gxInfoItems(){return[{title:"Goles",value:this.goalsQtyLocal},{title:"Tiros a Gol",value:this.shotsOnGoalQtyLocal},{title:"Goles esperados (xG)",value:this.xGLocal}]}},watch:{getGameForAnalysis:{deep:!0,handler(e){e&&this.fillXgPlays()}}},methods:{...Nu("general",["setVideoSrc","setVideoModalVisibility"]),...Nu("xgGeneral",["setTeamSelected"]),...G1("xgGeneral",["getXgPlays"]),openXgVideo(){this.setVideoSrc(""),this.setVideoModalVisibility(!0)},getTeamId(){return this.homeTeam.team_id},fillXgPlays(){this.getGameForAnalysis.game_status!=1?this.getXgPlays({seasonId:this.usePastSeasonId?this.pastSeasonId:this.getSeasonId,localTeamId:this.homeTeam.team_id,visitingTeamId:this.visitingTeam.team_id}):this.getXgPlays({seasonId:this.gameId,localTeamId:this.homeTeam.team_id,visitingTeamId:this.visitingTeam.team_id,postMatch:!0})}},beforeMount(){this.fillXgPlays()}},cC=e=>(t.pushScopeId("data-v-6fa9fc78"),e=e(),t.popScopeId(),e),mJ={class:"xg-container"},fJ={class:"xg-container__info"},gJ=cC(()=>t.createElementVNode("div",{class:"title"},"Goles esperados (xG)",-1)),yJ={class:"table"},_J={class:"table__row"},vJ={class:"table__row__title"},bJ={class:"table__row__value"},xJ=["src"],wJ={class:"table__row"},kJ={class:"table__row__title"},CJ={class:"table__row__value"},EJ={class:"table__row"},SJ={class:"table__row__title"},TJ={class:"table__row__value"},AJ=cC(()=>t.createElementVNode("div",{class:"table-description"},[t.createElementVNode("span",null,"xG:"),t.createTextVNode(" es la medida para estimar la probabilidad de que un tiro o una jugada termine en gol, basándose en factores como la ubicación y la dificultad de la acción. ")],-1)),NJ={class:"xg-container__field"};function BJ(e,a,r,d,m,n){const s=t.resolveComponent("SoccerChalkboard");return t.openBlock(),t.createElementBlock("div",mJ,[t.createElementVNode("div",fJ,[gJ,t.createElementVNode("div",yJ,[t.createElementVNode("div",_J,[t.createElementVNode("div",vJ,t.toDisplayString(n.gxInfoItems[0].title),1),t.createElementVNode("div",bJ,[t.createTextVNode(t.toDisplayString(n.gxInfoItems[0].value),1),t.createElementVNode("img",{class:"img-abs",src:n.stringSelectedTeamLogo},null,8,xJ)])]),t.createElementVNode("div",wJ,[t.createElementVNode("div",kJ,t.toDisplayString(n.gxInfoItems[1].title),1),t.createElementVNode("div",CJ,t.toDisplayString(n.gxInfoItems[1].value),1)]),t.createElementVNode("div",EJ,[t.createElementVNode("div",SJ,t.toDisplayString(n.gxInfoItems[2].title),1),t.createElementVNode("div",TJ,t.toDisplayString(n.gxInfoItems[2].value),1)])]),AJ]),t.createElementVNode("div",NJ,[t.createVNode(s,{plays:e.playsLocal,categories:m.categories,team:e.team},null,8,["plays","categories","team"])])])}const IJ=Si(hJ,[["render",BJ],["__scopeId","data-v-6fa9fc78"]]),PBt="",MJ={name:"Xg",components:{SoccerChalkboard:lC},props:{team:{type:String,default:"Visiting"}},data(){return{categories:dg}},computed:{...Ol("nextGeneral",["usePastSeasonId","pastSeasonId","gameId"]),...Ol("general",["booleanIsStatisticModalOpen"]),...qi("xgGeneral",["playsAway","goalsQtyAway","shotsOnGoalQtyAway","xGAway"]),...qi("nextGeneral",["getSeasonId","homeTeam","visitingTeam","showPostMatchData","game","getGameForAnalysis"]),...qi("loginGeneral",["getPremiumAccount","getIsGolstats"]),...qi("general",["getPreviewSectionAnalytics"]),stringSelectedTeamLogo(){return this.visitingTeam.logo},windowWidth(){return this.$store.state.windowWidth},gxInfoItems(){return[{title:"Goles",value:this.goalsQtyAway},{title:"Tiros a Gol",value:this.shotsOnGoalQtyAway},{title:"Goles esperados (xG)",value:this.xGAway}]}},watch:{getGameForAnalysis:{deep:!0,handler(e){e&&this.fillXgPlays()}}},methods:{...Nu("general",["setVideoSrc","setVideoModalVisibility"]),...Nu("xgGeneral",["setTeamSelected"]),...G1("xgGeneral",["getXgPlays"]),openXgVideo(){this.setVideoSrc(""),this.setVideoModalVisibility(!0)},getTeamId(){return this.visitingTeam.team_id},fillXgPlays(){this.getGameForAnalysis.game_status!=1?this.getXgPlays({seasonId:this.usePastSeasonId?this.pastSeasonId:this.getSeasonId,localTeamId:this.homeTeam.team_id,visitingTeamId:this.visitingTeam.team_id}):this.getXgPlays({seasonId:this.gameId,localTeamId:this.homeTeam.team_id,visitingTeamId:this.visitingTeam.team_id,postMatch:!0})}},beforeMount(){this.setTeamSelected("Visiting"),this.fillXgPlays()}},dC=e=>(t.pushScopeId("data-v-03602455"),e=e(),t.popScopeId(),e),OJ={class:"xg-container"},PJ={class:"xg-container__info"},FJ=dC(()=>t.createElementVNode("div",{class:"title"},"Goles esperados (xG)",-1)),RJ={class:"table"},VJ={class:"table__row"},zJ={class:"table__row__title"},DJ={class:"table__row__value"},LJ=["src"],$J={class:"table__row"},jJ={class:"table__row__title"},UJ={class:"table__row__value"},HJ={class:"table__row"},GJ={class:"table__row__title"},WJ={class:"table__row__value"},qJ=dC(()=>t.createElementVNode("div",{class:"table-description"},[t.createElementVNode("span",null,"xG:"),t.createTextVNode(" es la medida para estimar la probabilidad de que un tiro o una jugada termine en gol, basándose en factores como la ubicación y la dificultad de la acción. ")],-1)),YJ={class:"xg-container__field"};function ZJ(e,a,r,d,m,n){const s=t.resolveComponent("SoccerChalkboard");return t.openBlock(),t.createElementBlock("div",null,[t.createElementVNode("div",OJ,[t.createElementVNode("div",PJ,[FJ,t.createElementVNode("div",RJ,[t.createElementVNode("div",VJ,[t.createElementVNode("div",zJ,t.toDisplayString(n.gxInfoItems[0].title),1),t.createElementVNode("div",DJ,[t.createTextVNode(t.toDisplayString(n.gxInfoItems[0].value),1),t.createElementVNode("img",{class:"img-abs",src:n.stringSelectedTeamLogo},null,8,LJ)])]),t.createElementVNode("div",$J,[t.createElementVNode("div",jJ,t.toDisplayString(n.gxInfoItems[1].title),1),t.createElementVNode("div",UJ,t.toDisplayString(n.gxInfoItems[1].value),1)]),t.createElementVNode("div",HJ,[t.createElementVNode("div",GJ,t.toDisplayString(n.gxInfoItems[2].title),1),t.createElementVNode("div",WJ,t.toDisplayString(n.gxInfoItems[2].value),1)])]),qJ]),t.createElementVNode("div",YJ,[t.createVNode(s,{plays:e.playsAway,categories:m.categories,team:r.team},null,8,["plays","categories","team"])])])])}const XJ=Si(MJ,[["render",ZJ],["__scopeId","data-v-03602455"]]),FBt="",KJ={name:"SoccerChalkboard",components:{Tooltip:sC},props:{plays:{type:Array,required:!0},categories:{type:Array,required:!0},team:{type:String,required:!0}},data(){return{negativeColor:"red",data:{x:0,y:0,visible:!1},dataPlay:{playerName:"",photo:"",minute:0,rivalLogo:"",rivalName:"",categoryName:"",xGi:0,xGf:0,isOwnGoal:!1}}},computed:{...qi("nextGeneral",["homeTeam","visitingTeam"]),preparedPlays(){return this.plays.map(e=>({...e,playingAs:e.playing_as,teamId:e.team_id,photo:e.photo,categoryId:e.category_id,matchResult:e.match_result,matchLapse:e.matchlapse,x1:e.x1*100,y1:e.y1*100,x2:e.x2*100,y2:e.y2*100,x3:e.x3*100,y3:e.y3*100,xGi:e.xG1,xGf:e.xG2}))},localCategories(){return this.categories.map((e,a)=>({id:a,name:e.name,negative:e.negative||!1,color:e.color,points:e.points,numPoints:e.points.length,categories:e.categories,invert:e.invert||[]}))},graphPlays(){let e=this.localCategories.reduce((d,m)=>[...d,m.categories],[]);return this.preparedPlays.filter(d=>this.findCategoryInPlay(e,d)).reduce((d,m)=>{let n=this.localCategories.find(s=>this.findCategoryInPlay(s.categories,m));if(n){let s={category:n.id,categoryName:n.name,arrowColor:n.negative?this.negativeColor:n.color,arrowMarkerColor:n.negative?"url(#arrow-negative)":`url(#arrow-${n.id})`,markerColor:n.color,jersey:m.jersey_number,matchlapse:m.matchLapse,playerName:m.player_name,photo:m.photo,rivalLogo:m.rival_id,x1:n.invert.includes(m.categoryId)?100-m[`x${n.points[0]}`]:m[`x${n.points[0]}`],y1:n.invert.includes(m.categoryId)?100-m[`y${n.points[0]}`]:m[`y${n.points[0]}`],x2:n.invert.includes(m.categoryId)?100-m[`x${n.points[1]}`]:m[`x${n.points[1]}`],y2:n.invert.includes(m.categoryId)?100-m[`y${n.points[1]}`]:m[`y${n.points[1]}`],x3:n.invert.includes(m.categoryId)?100-m[`x${n.points[2]}`]:m[`x${n.points[2]}`],y3:n.invert.includes(m.categoryId)?100-m[`y${n.points[2]}`]:m[`y${n.points[2]}`],momentOfPlay:m.moment_of_play,isOwnGoal:n.invert.includes(m.categoryId),xGi:m.xGi,xGf:m.xGf};d.push(s)}return d},[])}},methods:{findCategoryInPlay(e,a){return e.find(r=>typeof r=="number"?r===a.categoryId:r.includes(a.categoryId))},onMouseOver(e,a){this.dataPlay.playerName=a.playerName||"",this.dataPlay.photo=a.photo||"",this.dataPlay.minute=parseInt(a.momentOfPlay.split(":")[0])||"",this.dataPlay.rivalLogo=a.rivalLogo||"",this.dataPlay.categoryName=a.categoryName||"",this.dataPlay.rivalName=this.team=="Visiting"?this.homeTeam.team_name:this.visitingTeam.team_name,this.dataPlay.xGi=String(a.xGi),this.dataPlay.xGf=String(a.xGf),this.dataPlay.isOwnGoal=a.isOwnGoal,this.data.x=e.pageX<135?e.pageX-50:e.layerX-50,this.data.y=e.layerY+130,this.data.visible=!0},onMouseLeave(){this.data.visible=!1}}},Km=e=>(t.pushScopeId("data-v-f6c30694"),e=e(),t.popScopeId(),e),JJ={class:"soccer-chalkboard-xg"},QJ={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 490 684","xmlns:xlink":"http://www.w3.org/1999/xlink",class:"soccer-chalkboard"},eQ={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 452 684","xmlns:xlink":"http://www.w3.org/1999/xlink"},tQ=Km(()=>t.createElementVNode("marker",{id:"arrow-negative",viewBox:"0 0 10 10",refX:"5",refY:"5",markerWidth:"6",markerHeight:"6",markerUnits:"strokeWidth",orient:"auto"},[t.createElementVNode("path",{d:"M 0 0 L 10 5 L 0 10 z","stroke-width":"2",fill:"red"})],-1)),aQ=["id"],rQ=["fill"],nQ=Km(()=>t.createElementVNode("pattern",{id:"fieldBackground",width:"1",height:"1",viewBox:"0 0 100 100",preserveAspectRatio:"none"},[t.createElementVNode("image",{"xlink:href":"https://az755631.vo.msecnd.net/todoelfut/fieldbg.png",width:"100",height:"100",preserveAspectRatio:"none",id:"image2"})],-1)),iQ=["id"],oQ=["x1","y1","x2","y2","stroke"],sQ=["x1","y1","x2","y2","stroke","marker-end"],lQ=["onMouseover"],cQ=["x","y","fill"],dQ=["x","y"],uQ={class:"tooltip-data has-text-left"},pQ={class:"bold"},hQ={class:"tooltip-image"},mQ={class:"tooltip-image"},fQ=["src"],gQ={class:"tooltip-xg"},yQ={key:0},_Q=Km(()=>t.createElementVNode("span",null,"xGi:",-1)),vQ=Km(()=>t.createElementVNode("div",{class:"tooltip-xg-separator"},null,-1)),bQ={key:1},xQ=Km(()=>t.createElementVNode("span",null,"xGf:",-1));function wQ(e,a,r,d,m,n){const s=t.resolveComponent("Tooltip");return t.openBlock(),t.createElementBlock("div",JJ,[(t.openBlock(),t.createElementBlock("svg",QJ,[(t.openBlock(),t.createElementBlock("svg",eQ,[t.createElementVNode("defs",null,[tQ,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.localCategories,i=>(t.openBlock(),t.createElementBlock("marker",{key:`arrow-color-${i.id}`,id:`arrow-${i.id}`,viewBox:"0 0 10 10",refX:"5",refY:"5",markerWidth:"6",markerHeight:"6",markerUnits:"strokeWidth",orient:"auto"},[t.createElementVNode("path",{d:"M 0 0 L 10 5 L 0 10 z","stroke-width":"2",fill:i.color},null,8,rQ)],8,aQ))),128)),nQ]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.graphPlays,i=>(t.openBlock(),t.createElementBlock("g",{key:i.id,id:`play-${i.playId}`},[t.createElementVNode("line",{x1:`${i.x1}%`,y1:`${i.y1}%`,x2:`${i.x2}%`,y2:`${i.y2}%`,stroke:i.arrowColor,"stroke-width":"2"},null,8,oQ),t.createElementVNode("line",{x1:`${i.x2}%`,y1:`${i.y2}%`,x2:`${i.x3}%`,y2:`${i.y3}%`,stroke:i.arrowColor,"stroke-width":"2","marker-end":i.arrowMarkerColor},null,8,sQ),t.createElementVNode("g",{onMouseover:_=>n.onMouseOver(_,i),onMouseleave:a[0]||(a[0]=(..._)=>n.onMouseLeave&&n.onMouseLeave(..._)),class:"is-pointer"},[t.createElementVNode("rect",{x:`${i.x1}%`,y:`${i.y1}%`,transform:"translate(-14, -14)",height:"28",width:"28","stroke-width":"2",fill:i.markerColor,stroke:"#aaa",rx:"14",ry:"14"},null,8,cQ),t.createElementVNode("text",{"text-anchor":"middle","dominant-baseline":"middle",x:`${i.x1}%`,y:`${i.y1}%`,dy:"1","font-size":"15",stroke:"white","font-family":"Poppins, sans-serif"},t.toDisplayString(i.jersey),9,dQ)],40,lQ)],8,iQ))),128))]))])),t.createVNode(s,{data:m.data},{default:t.withCtx(()=>[t.createElementVNode("div",uQ,[t.createElementVNode("div",null,[t.createElementVNode("span",pQ,t.toDisplayString(m.dataPlay.isOwnGoal?"Autogol":m.dataPlay.categoryName),1)]),t.createElementVNode("div",null,[t.createTextVNode(t.toDisplayString(m.dataPlay.playerName)+" ",1),t.createElementVNode("div",hQ,[t.createElementVNode("div",{class:"tooltip-image-player",style:t.normalizeStyle("background: url("+m.dataPlay.photo+") top")},null,4)])]),t.createElementVNode("div",null,"Minuto: "+t.toDisplayString(m.dataPlay.minute)+"'",1),t.createElementVNode("div",null,[t.createTextVNode(" Rival: "),t.createElementVNode("div",mQ,[t.createElementVNode("img",{src:m.dataPlay.rivalLogo},null,8,fQ)])]),t.createElementVNode("div",gQ,[/^[+]?([0-1]+(?:[\.][0-9]*)?|\.[0-9]+)$/.test(m.dataPlay.xGi)&&m.dataPlay.xGi<=1&&!m.dataPlay.isOwnGoal?(t.openBlock(),t.createElementBlock("div",yQ,[_Q,t.createTextVNode(" "+t.toDisplayString(Number(m.dataPlay.xGi)),1)])):t.createCommentVNode("",!0),vQ,/^[+]?([0-1]+(?:[\.][0-9]*)?|\.[0-9]+)$/.test(m.dataPlay.xGf)&&m.dataPlay.xGf<=1&&!m.dataPlay.isOwnGoal?(t.openBlock(),t.createElementBlock("div",bQ,[xQ,t.createTextVNode(" "+t.toDisplayString(Number(m.dataPlay.xGf)),1)])):t.createCommentVNode("",!0)])])]),_:1},8,["data"])])}const uC=Si(KJ,[["render",wQ],["__scopeId","data-v-f6c30694"]]),RBt="",kQ={name:"Xg",components:{SoccerChalkboard:uC},props:{},data(){return{categories:dg}},computed:{...Ol("nextGeneral",["usePastSeasonId","pastSeasonId","gameId"]),...Ol("general",["booleanIsStatisticModalOpen"]),...qi("xgGeneral",["playsLocal","goalsQtyLocal","shotsOnGoalQtyLocal","xGLocal"]),...qi("nextGeneral",["getSeasonId","homeTeam","visitingTeam","showPostMatchData"]),...qi("loginGeneral",["getPremiumAccount","getIsGolstats"]),...qi("general",["getPreviewSectionAnalytics"]),stringSelectedTeamLogo(){return this.homeTeam.logo},windowWidth(){return this.$store.state.windowWidth},gxInfoItems(){return[{title:"Goles",value:this.goalsQtyLocal},{title:"Tiros a Gol",value:this.shotsOnGoalQtyLocal},{title:"Goles esperados (xG)",value:this.xGLocal}]}},watch:{visitingTeam:{deep:!0,handler(e){e&&this.fillXgPlays()}},showPostMatchData:{handler(e,a){e!==a&&this.fillXgPlays()}}},methods:{...Nu("general",["setVideoSrc","setVideoModalVisibility"]),...Nu("xgGeneral",["setTeamSelected"]),...G1("xgGeneral",["getXgPlays"]),openXgVideo(){this.setVideoSrc(""),this.setVideoModalVisibility(!0)},getTeamId(){return this.homeTeam.team_id},fillXgPlays(){this.showPostMatchData?this.getXgPlays({seasonId:this.gameId,localTeamId:this.homeTeam.team_id,visitingTeamId:this.visitingTeam.team_id,postMatch:this.showPostMatchData}):this.getXgPlays({seasonId:this.usePastSeasonId?this.pastSeasonId:this.getSeasonId,localTeamId:this.homeTeam.team_id,visitingTeamId:this.visitingTeam.team_id})}},beforeMount(){this.fillXgPlays()}},pC=e=>(t.pushScopeId("data-v-fb5342de"),e=e(),t.popScopeId(),e),CQ={class:"xg-container"},EQ=pC(()=>t.createElementVNode("div",{class:"title"},"Goles esperados (xG)",-1)),SQ={class:"xg-container__field"},TQ={class:"xg-container__info"},AQ={class:"table"},NQ={class:"table__row"},BQ={class:"table__row__title"},IQ={class:"table__row__value"},MQ=["src"],OQ={class:"table__row"},PQ={class:"table__row__title"},FQ={class:"table__row__value"},RQ={class:"table__row"},VQ={class:"table__row__title"},zQ={class:"table__row__value"},DQ=pC(()=>t.createElementVNode("div",{class:"table-description"},[t.createElementVNode("span",null,"xG:"),t.createTextVNode(" es la medida para estimar la probabilidad de que un tiro o una jugada termine en gol, basándose en factores como la ubicación y la dificultad de la acción. ")],-1));function LQ(e,a,r,d,m,n){const s=t.resolveComponent("SoccerChalkboard");return t.openBlock(),t.createElementBlock("div",CQ,[EQ,t.createElementVNode("div",SQ,[t.createVNode(s,{plays:e.playsLocal,categories:m.categories,team:e.team},null,8,["plays","categories","team"])]),t.createElementVNode("div",TQ,[t.createElementVNode("div",AQ,[t.createElementVNode("div",NQ,[t.createElementVNode("div",BQ,t.toDisplayString(n.gxInfoItems[0].title),1),t.createElementVNode("div",IQ,[t.createTextVNode(t.toDisplayString(n.gxInfoItems[0].value),1),t.createElementVNode("img",{class:"img-abs",src:n.stringSelectedTeamLogo},null,8,MQ)])]),t.createElementVNode("div",OQ,[t.createElementVNode("div",PQ,t.toDisplayString(n.gxInfoItems[1].title),1),t.createElementVNode("div",FQ,t.toDisplayString(n.gxInfoItems[1].value),1)]),t.createElementVNode("div",RQ,[t.createElementVNode("div",VQ,t.toDisplayString(n.gxInfoItems[2].title),1),t.createElementVNode("div",zQ,t.toDisplayString(n.gxInfoItems[2].value),1)])]),DQ])])}const $Q=Si(kQ,[["render",LQ],["__scopeId","data-v-fb5342de"]]),VBt="",jQ={name:"Xg",components:{SoccerChalkboard:uC},props:{},data(){return{categories:dg}},computed:{...Ol("nextGeneral",["usePastSeasonId","pastSeasonId","gameId"]),...Ol("general",["booleanIsStatisticModalOpen"]),...qi("xgGeneral",["playsAway","goalsQtyAway","shotsOnGoalQtyAway","xGAway"]),...qi("nextGeneral",["getSeasonId","homeTeam","visitingTeam","showPostMatchData"]),...qi("loginGeneral",["getPremiumAccount","getIsGolstats"]),...qi("general",["getPreviewSectionAnalytics"]),stringSelectedTeamLogo(){return this.visitingTeam.logo},windowWidth(){return this.$store.state.windowWidth},gxInfoItems(){return[{title:"Goles",value:this.goalsQtyAway},{title:"Tiros a Gol",value:this.shotsOnGoalQtyAway},{title:"Goles esperados (xG)",value:this.xGAway}]}},watch:{visitingTeam:{deep:!0,handler(e){e&&this.fillXgPlays()}},showPostMatchData:{handler(e,a){e!==a&&this.fillXgPlays()}}},methods:{...Nu("general",["setVideoSrc","setVideoModalVisibility"]),...Nu("xgGeneral",["setTeamSelected"]),...G1("xgGeneral",["getXgPlays"]),openXgVideo(){this.setVideoSrc(""),this.setVideoModalVisibility(!0)},getTeamId(){return this.homeTeam.team_id},fillXgPlays(){this.showPostMatchData?this.getXgPlays({seasonId:this.gameId,AwayTeamId:this.homeTeam.team_id,visitingTeamId:this.visitingTeam.team_id,postMatch:this.showPostMatchData}):this.getXgPlays({seasonId:this.usePastSeasonId?this.pastSeasonId:this.getSeasonId,AwayTeamId:this.homeTeam.team_id,visitingTeamId:this.visitingTeam.team_id})}},beforeMount(){this.fillXgPlays()}},hC=e=>(t.pushScopeId("data-v-38eed9b5"),e=e(),t.popScopeId(),e),UQ={class:"xg-container"},HQ=hC(()=>t.createElementVNode("div",{class:"title"},"Goles esperados (xG)",-1)),GQ={class:"xg-container__field"},WQ={class:"xg-container__info"},qQ={class:"table"},YQ={class:"table__row"},ZQ={class:"table__row__title"},XQ={class:"table__row__value"},KQ=["src"],JQ={class:"table__row"},QQ={class:"table__row__title"},eee={class:"table__row__value"},tee={class:"table__row"},aee={class:"table__row__title"},ree={class:"table__row__value"},nee=hC(()=>t.createElementVNode("div",{class:"table-description"},[t.createElementVNode("span",null,"xG:"),t.createTextVNode(" es la medida para estimar la probabilidad de que un tiro o una jugada termine en gol, basándose en factores como la ubicación y la dificultad de la acción. ")],-1));function iee(e,a,r,d,m,n){const s=t.resolveComponent("SoccerChalkboard");return t.openBlock(),t.createElementBlock("div",UQ,[HQ,t.createElementVNode("div",GQ,[t.createVNode(s,{plays:e.playsAway,categories:m.categories,team:e.team},null,8,["plays","categories","team"])]),t.createElementVNode("div",WQ,[t.createElementVNode("div",qQ,[t.createElementVNode("div",YQ,[t.createElementVNode("div",ZQ,t.toDisplayString(n.gxInfoItems[0].title),1),t.createElementVNode("div",XQ,[t.createTextVNode(t.toDisplayString(n.gxInfoItems[0].value),1),t.createElementVNode("img",{class:"img-abs",src:n.stringSelectedTeamLogo},null,8,KQ)])]),t.createElementVNode("div",JQ,[t.createElementVNode("div",QQ,t.toDisplayString(n.gxInfoItems[1].title),1),t.createElementVNode("div",eee,t.toDisplayString(n.gxInfoItems[1].value),1)]),t.createElementVNode("div",tee,[t.createElementVNode("div",aee,t.toDisplayString(n.gxInfoItems[2].title),1),t.createElementVNode("div",ree,t.toDisplayString(n.gxInfoItems[2].value),1)])]),nee])])}const oee=Si(jQ,[["render",iee],["__scopeId","data-v-38eed9b5"]]),zBt="";let mC=null;const see={name:"XgMain",components:{GSCSwitchRadio:zK,SoccerChalkboardLocal:IJ,SoccerChalkboardAway:XJ,SoccerChalkboardLocalMobile:$Q,SoccerChalkboardAwayMobile:oee},props:{game:{type:Number,default:0}},data(){return{gamesContainerWidth:0,teamSelect:"local",teamDefault:""}},computed:{...qi("nextGeneral",["homeTeam","visitingTeam"])},watch:{},methods:{onChangeTeam(e){e instanceof Object||(this.teamSelect=e),this.teamDefault=e},setUpResizeObserver(){if(window.ResizeObserver)mC=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<680?this.movil=!0:this.movil=!1}),mC.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},mounted(){this.teamSelect=this.homeTeam.colloquial_name,this.teamLocal=this.homeTeam.colloquial_name,setTimeout(()=>{this.setUpResizeObserver()},100)},updated(){this.teamSelect!=this.homeTeam.colloquial_name&&this.teamSelect!=this.visitingTeam.colloquial_name&&(this.teamSelect=this.homeTeam.colloquial_name,this.onChangeTeam(this.teamSelect))}},lee={class:"xg",ref:"gamesContainer"},cee={key:0,class:"selector-team"};function dee(e,a,r,d,m,n){const s=t.resolveComponent("GSCSwitchRadio"),i=t.resolveComponent("SoccerChalkboardLocal"),_=t.resolveComponent("SoccerChalkboardAway"),f=t.resolveComponent("SoccerChalkboardLocalMobile"),o=t.resolveComponent("SoccerChalkboardAwayMobile");return t.openBlock(),t.createElementBlock("div",lee,[m.gamesContainerWidth<655?(t.openBlock(),t.createElementBlock("div",cee,[t.createVNode(s,{width:"42px",height:"20px",heightCircle:"16px",widthCircle:"16px","circle-color-switch":"#cbee6b",valueDefault:m.teamDefault,"text-option-left":e.homeTeam.colloquial_name,"text-option-right":e.visitingTeam.colloquial_name,"font-color":"white","hidden-labels":!1,"icon-a":e.homeTeam.logo,"icon-b":e.visitingTeam.logo,onChange:n.onChangeTeam},null,8,["valueDefault","text-option-left","text-option-right","icon-a","icon-b","onChange"])])):t.createCommentVNode("",!0),m.gamesContainerWidth>=655?(t.openBlock(),t.createBlock(i,{key:1,class:"local"})):t.createCommentVNode("",!0),m.gamesContainerWidth>=655?(t.openBlock(),t.createBlock(_,{key:2,class:"away"})):t.createCommentVNode("",!0),m.gamesContainerWidth<655&&m.teamSelect==e.homeTeam.colloquial_name?(t.openBlock(),t.createBlock(f,{key:3})):t.createCommentVNode("",!0),m.gamesContainerWidth<655&&m.teamSelect==e.visitingTeam.colloquial_name?(t.openBlock(),t.createBlock(o,{key:4})):t.createCommentVNode("",!0)],512)}const uee=Si(see,[["render",dee],["__scopeId","data-v-20bd873f"]]),DBt="",pee={class:"statistics-main"},hee={class:"statistics-main__header"},mee={class:"statistics-main__header__filter"},fee=t.defineComponent({name:"TemplateVideos",components:{TrendLive:EY,Comparative:bK,Distribution:BK,GSCSlider:Jb,XG:uee}}),gee=Si(Object.assign(fee,{props:{game:{type:Object,default:()=>({gameId:79623,seasonId:1772,status:1,dateTimeUTC:"2023-10-01T22:20:00Z",homeTeam:{logo:"https://az755631.vo.msecnd.net/teams-80/18.png",team_id:10,provisional_logo:"https://az755631.vo.msecnd.net/teams-provisional/18.png",colloquial_name:"Toluca",acronym:"TOL",team_name:"Toluca"},awayTeam:{logo:"https://az755631.vo.msecnd.net/teams-80/1.png",team_id:1,provisional_logo:"https://az755631.vo.msecnd.net/teams-provisional/1.png",colloquial_name:"Chivas",acronym:"CHI",team_name:"Guadalajara"}})},subsection:{type:String,default:""},seasonSelected:{type:Object,default:()=>({})},canPlayVideos:{type:Boolean,default:!0},playVideosPrivileges:{type:Object,default:null}},emits:["openmedia"],setup(e,{emit:a}){const r=e,d=j1(),m=t.ref({width:"fit-content",height:"30px",borderRadius:"50px",borderColor:"#8a8a8a",borderWidth:"0.5px",backgroundColor:"rgba(255, 255, 255, 0.04)",fontSize:"14px",fontFamily:"Poppins-Regular, sans-serif",fontColor:"rgba(255, 255, 255, 0.5)",activeFontColor:"#FFFFFF",activeBorderColor:"#cbee6b",padding:"0 16px"}),n=t.ref({}),s=t.ref(null),i=t.ref([{id:"st1",name:"Comparativa",componentName:"Comparative"},{id:"st2",name:"Distribución",componentName:"Distribution"},{id:"st3",name:"Tendencia LIVE",componentName:"TrendLive"},{id:"st4",name:"Goles esperados (xG)",componentName:"XG"}]);let _=t.ref(i.value[0]),f=t.ref(0);t.watch(()=>r.game,l=>{const u={...l};o(u),f.value++},{deep:!0,immediate:!0});async function o(l){try{n.value.gameId!==l.gameId&&(n.value=l,await d.dispatch("nextGeneral/cleanStats"),await d.dispatch("nextGeneral/checkState",{gameId:l.gameId,currentSeasonId:l.seasonId,isTeamsAnalysis:!0,defaultFilter:s.value,gameInfo:l}))}catch(u){throw new Error(u)}}function g(l){_.value=l}function x(){d.commit("nextGeneral/updateFilters",{filters:{local:{playingAs:[1,2],statistics:{},matchResult:[1,2,3],firstHalf:[1,2,3],secondHalf:[4,5,6]},visit:{playingAs:[1,2],statistics:{},matchResult:[1,2,3],firstHalf:[1,2,3],secondHalf:[4,5,6]}},needsFormat:!0})}function c(l){a("openmedia",l)}return t.onUnmounted(()=>{a("resetSubsection")}),t.onMounted(()=>{r.subsection==="Comparativa"&&(_.value.id="st1",_.value.name="Comparativa",_.value.componentName="Comparative")}),x(),(l,u)=>(t.openBlock(),t.createElementBlock("div",pee,[t.createElementVNode("div",hee,[t.createVNode(t.unref(Jb),{backgroundColor:"none",arrows:!1},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i.value,p=>(t.openBlock(),t.createElementBlock("div",{key:p.id,class:"game-time-line__options__option"},[t.createVNode(c9,t.mergeProps(m.value,{text:p.name,"is-active":t.unref(_).id===p.id,onClick:h=>g(p)}),null,16,["text","is-active","onClick"])]))),128))]),_:1}),t.withDirectives(t.createElementVNode("div",mee,[t.createVNode(Mq)],512),[[t.vShow,!1]])]),(t.openBlock(),t.createElementBlock("div",{class:"statistics-main__body",key:t.unref(f)},[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(t.unref(_).componentName),{seasonSelected:{...e.seasonSelected},game:{...e.game},"tournament-type":t.unref(d).getters["general/getTournamentType"],"can-play-videos":e.canPlayVideos,"play-videos-privileges":e.playVideosPrivileges,onOpenmedia:c},null,40,["seasonSelected","game","tournament-type","can-play-videos","play-videos-privileges"]))]))]))}}),[["__scopeId","data-v-3723b86c"]]);function fC(e,a){return function(){return e.apply(a,arguments)}}const{toString:yee}=Object.prototype,{getPrototypeOf:e3}=Object,ug=(e=>a=>{const r=yee.call(a);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),fd=e=>(e=e.toLowerCase(),a=>ug(a)===e),pg=e=>a=>typeof a===e,{isArray:uh}=Array,Jm=pg("undefined");function _ee(e){return e!==null&&!Jm(e)&&e.constructor!==null&&!Jm(e.constructor)&&ec(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const gC=fd("ArrayBuffer");function vee(e){let a;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?a=ArrayBuffer.isView(e):a=e&&e.buffer&&gC(e.buffer),a}const bee=pg("string"),ec=pg("function"),yC=pg("number"),hg=e=>e!==null&&typeof e=="object",xee=e=>e===!0||e===!1,mg=e=>{if(ug(e)!=="object")return!1;const a=e3(e);return(a===null||a===Object.prototype||Object.getPrototypeOf(a)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},wee=fd("Date"),kee=fd("File"),Cee=fd("Blob"),Eee=fd("FileList"),See=e=>hg(e)&&ec(e.pipe),Tee=e=>{let a;return e&&(typeof FormData=="function"&&e instanceof FormData||ec(e.append)&&((a=ug(e))==="formdata"||a==="object"&&ec(e.toString)&&e.toString()==="[object FormData]"))},Aee=fd("URLSearchParams"),Nee=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Qm(e,a,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let d,m;if(typeof e!="object"&&(e=[e]),uh(e))for(d=0,m=e.length;d<m;d++)a.call(null,e[d],d,e);else{const n=r?Object.getOwnPropertyNames(e):Object.keys(e),s=n.length;let i;for(d=0;d<s;d++)i=n[d],a.call(null,e[i],i,e)}}function _C(e,a){a=a.toLowerCase();const r=Object.keys(e);let d=r.length,m;for(;d-- >0;)if(m=r[d],a===m.toLowerCase())return m;return null}const vC=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),bC=e=>!Jm(e)&&e!==vC;function t3(){const{caseless:e}=bC(this)&&this||{},a={},r=(d,m)=>{const n=e&&_C(a,m)||m;mg(a[n])&&mg(d)?a[n]=t3(a[n],d):mg(d)?a[n]=t3({},d):uh(d)?a[n]=d.slice():a[n]=d};for(let d=0,m=arguments.length;d<m;d++)arguments[d]&&Qm(arguments[d],r);return a}const Bee=(e,a,r,{allOwnKeys:d}={})=>(Qm(a,(m,n)=>{r&&ec(m)?e[n]=fC(m,r):e[n]=m},{allOwnKeys:d}),e),Iee=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Mee=(e,a,r,d)=>{e.prototype=Object.create(a.prototype,d),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:a.prototype}),r&&Object.assign(e.prototype,r)},Oee=(e,a,r,d)=>{let m,n,s;const i={};if(a=a||{},e==null)return a;do{for(m=Object.getOwnPropertyNames(e),n=m.length;n-- >0;)s=m[n],(!d||d(s,e,a))&&!i[s]&&(a[s]=e[s],i[s]=!0);e=r!==!1&&e3(e)}while(e&&(!r||r(e,a))&&e!==Object.prototype);return a},Pee=(e,a,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=a.length;const d=e.indexOf(a,r);return d!==-1&&d===r},Fee=e=>{if(!e)return null;if(uh(e))return e;let a=e.length;if(!yC(a))return null;const r=new Array(a);for(;a-- >0;)r[a]=e[a];return r},Ree=(e=>a=>e&&a instanceof e)(typeof Uint8Array<"u"&&e3(Uint8Array)),Vee=(e,a)=>{const r=(e&&e[Symbol.iterator]).call(e);let d;for(;(d=r.next())&&!d.done;){const m=d.value;a.call(e,m[0],m[1])}},zee=(e,a)=>{let r;const d=[];for(;(r=e.exec(a))!==null;)d.push(r);return d},Dee=fd("HTMLFormElement"),Lee=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(a,r,d){return r.toUpperCase()+d}),xC=(({hasOwnProperty:e})=>(a,r)=>e.call(a,r))(Object.prototype),$ee=fd("RegExp"),wC=(e,a)=>{const r=Object.getOwnPropertyDescriptors(e),d={};Qm(r,(m,n)=>{let s;(s=a(m,n,e))!==!1&&(d[n]=s||m)}),Object.defineProperties(e,d)},jee=e=>{wC(e,(a,r)=>{if(ec(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const d=e[r];if(ec(d)){if(a.enumerable=!1,"writable"in a){a.writable=!1;return}a.set||(a.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},Uee=(e,a)=>{const r={},d=m=>{m.forEach(n=>{r[n]=!0})};return uh(e)?d(e):d(String(e).split(a)),r},Hee=()=>{},Gee=(e,a)=>(e=+e,Number.isFinite(e)?e:a),a3="abcdefghijklmnopqrstuvwxyz",kC="0123456789",CC={DIGIT:kC,ALPHA:a3,ALPHA_DIGIT:a3+a3.toUpperCase()+kC},Wee=(e=16,a=CC.ALPHA_DIGIT)=>{let r="";const{length:d}=a;for(;e--;)r+=a[Math.random()*d|0];return r};function qee(e){return!!(e&&ec(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Yee=e=>{const a=new Array(10),r=(d,m)=>{if(hg(d)){if(a.indexOf(d)>=0)return;if(!("toJSON"in d)){a[m]=d;const n=uh(d)?[]:{};return Qm(d,(s,i)=>{const _=r(s,m+1);!Jm(_)&&(n[i]=_)}),a[m]=void 0,n}}return d};return r(e,0)},Zee=fd("AsyncFunction"),Xee=e=>e&&(hg(e)||ec(e))&&ec(e.then)&&ec(e.catch),_r={isArray:uh,isArrayBuffer:gC,isBuffer:_ee,isFormData:Tee,isArrayBufferView:vee,isString:bee,isNumber:yC,isBoolean:xee,isObject:hg,isPlainObject:mg,isUndefined:Jm,isDate:wee,isFile:kee,isBlob:Cee,isRegExp:$ee,isFunction:ec,isStream:See,isURLSearchParams:Aee,isTypedArray:Ree,isFileList:Eee,forEach:Qm,merge:t3,extend:Bee,trim:Nee,stripBOM:Iee,inherits:Mee,toFlatObject:Oee,kindOf:ug,kindOfTest:fd,endsWith:Pee,toArray:Fee,forEachEntry:Vee,matchAll:zee,isHTMLForm:Dee,hasOwnProperty:xC,hasOwnProp:xC,reduceDescriptors:wC,freezeMethods:jee,toObjectSet:Uee,toCamelCase:Lee,noop:Hee,toFiniteNumber:Gee,findKey:_C,global:vC,isContextDefined:bC,ALPHABET:CC,generateString:Wee,isSpecCompliantForm:qee,toJSONObject:Yee,isAsyncFn:Zee,isThenable:Xee};function zn(e,a,r,d,m){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",a&&(this.code=a),r&&(this.config=r),d&&(this.request=d),m&&(this.response=m)}_r.inherits(zn,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:_r.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const EC=zn.prototype,SC={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{SC[e]={value:e}}),Object.defineProperties(zn,SC),Object.defineProperty(EC,"isAxiosError",{value:!0}),zn.from=(e,a,r,d,m,n)=>{const s=Object.create(EC);return _r.toFlatObject(e,s,function(i){return i!==Error.prototype},i=>i!=="isAxiosError"),zn.call(s,e.message,a,r,d,m),s.cause=e,s.name=e.name,n&&Object.assign(s,n),s};const Kee=null;function r3(e){return _r.isPlainObject(e)||_r.isArray(e)}function TC(e){return _r.endsWith(e,"[]")?e.slice(0,-2):e}function AC(e,a,r){return e?e.concat(a).map(function(d,m){return d=TC(d),!r&&m?"["+d+"]":d}).join(r?".":""):a}function Jee(e){return _r.isArray(e)&&!e.some(r3)}const Qee=_r.toFlatObject(_r,{},null,function(e){return/^is[A-Z]/.test(e)});function fg(e,a,r){if(!_r.isObject(e))throw new TypeError("target must be an object");a=a||new FormData,r=_r.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(c,l){return!_r.isUndefined(l[c])});const d=r.metaTokens,m=r.visitor||f,n=r.dots,s=r.indexes,i=(r.Blob||typeof Blob<"u"&&Blob)&&_r.isSpecCompliantForm(a);if(!_r.isFunction(m))throw new TypeError("visitor must be a function");function _(c){if(c===null)return"";if(_r.isDate(c))return c.toISOString();if(!i&&_r.isBlob(c))throw new zn("Blob is not supported. Use a Buffer instead.");return _r.isArrayBuffer(c)||_r.isTypedArray(c)?i&&typeof Blob=="function"?new Blob([c]):Buffer.from(c):c}function f(c,l,u){let p=c;if(c&&!u&&typeof c=="object"){if(_r.endsWith(l,"{}"))l=d?l:l.slice(0,-2),c=JSON.stringify(c);else if(_r.isArray(c)&&Jee(c)||(_r.isFileList(c)||_r.endsWith(l,"[]"))&&(p=_r.toArray(c)))return l=TC(l),p.forEach(function(h,y){!(_r.isUndefined(h)||h===null)&&a.append(s===!0?AC([l],y,n):s===null?l:l+"[]",_(h))}),!1}return r3(c)?!0:(a.append(AC(u,l,n),_(c)),!1)}const o=[],g=Object.assign(Qee,{defaultVisitor:f,convertValue:_,isVisitable:r3});function x(c,l){if(!_r.isUndefined(c)){if(o.indexOf(c)!==-1)throw Error("Circular reference detected in "+l.join("."));o.push(c),_r.forEach(c,function(u,p){(!(_r.isUndefined(u)||u===null)&&m.call(a,u,_r.isString(p)?p.trim():p,l,g))===!0&&x(u,l?l.concat(p):[p])}),o.pop()}}if(!_r.isObject(e))throw new TypeError("data must be an object");return x(e),a}function NC(e){const a={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return a[r]})}function n3(e,a){this._pairs=[],e&&fg(e,this,a)}const BC=n3.prototype;BC.append=function(e,a){this._pairs.push([e,a])},BC.toString=function(e){const a=e?function(r){return e.call(this,r,NC)}:NC;return this._pairs.map(function(r){return a(r[0])+"="+a(r[1])},"").join("&")};function ete(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function IC(e,a,r){if(!a)return e;const d=r&&r.encode||ete,m=r&&r.serialize;let n;if(m?n=m(a,r):n=_r.isURLSearchParams(a)?a.toString():new n3(a,r).toString(d),n){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+n}return e}const MC=class{constructor(){this.handlers=[]}use(a,r,d){return this.handlers.push({fulfilled:a,rejected:r,synchronous:d?d.synchronous:!1,runWhen:d?d.runWhen:null}),this.handlers.length-1}eject(a){this.handlers[a]&&(this.handlers[a]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(a){_r.forEach(this.handlers,function(r){r!==null&&a(r)})}},OC={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},tte=typeof URLSearchParams<"u"?URLSearchParams:n3,ate=typeof FormData<"u"?FormData:null,rte=typeof Blob<"u"?Blob:null,nte={isBrowser:!0,classes:{URLSearchParams:tte,FormData:ate,Blob:rte},protocols:["http","https","file","blob","url","data"]},PC=typeof window<"u"&&typeof document<"u",ite=(e=>PC&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),ote=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),ste=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:PC,hasStandardBrowserEnv:ite,hasStandardBrowserWebWorkerEnv:ote},Symbol.toStringTag,{value:"Module"})),gd={...ste,...nte};function lte(e,a){return fg(e,new gd.classes.URLSearchParams,Object.assign({visitor:function(r,d,m,n){return gd.isNode&&_r.isBuffer(r)?(this.append(d,r.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)}},a))}function cte(e){return _r.matchAll(/\w+|\[(\w*)]/g,e).map(a=>a[0]==="[]"?"":a[1]||a[0])}function dte(e){const a={},r=Object.keys(e);let d;const m=r.length;let n;for(d=0;d<m;d++)n=r[d],a[n]=e[n];return a}function FC(e){function a(r,d,m,n){let s=r[n++];if(s==="__proto__")return!0;const i=Number.isFinite(+s),_=n>=r.length;return s=!s&&_r.isArray(m)?m.length:s,_?(_r.hasOwnProp(m,s)?m[s]=[m[s],d]:m[s]=d,!i):((!m[s]||!_r.isObject(m[s]))&&(m[s]=[]),a(r,d,m[s],n)&&_r.isArray(m[s])&&(m[s]=dte(m[s])),!i)}if(_r.isFormData(e)&&_r.isFunction(e.entries)){const r={};return _r.forEachEntry(e,(d,m)=>{a(cte(d),m,r,0)}),r}return null}function ute(e,a,r){if(_r.isString(e))try{return(a||JSON.parse)(e),_r.trim(e)}catch(d){if(d.name!=="SyntaxError")throw d}return(r||JSON.stringify)(e)}const i3={transitional:OC,adapter:["xhr","http"],transformRequest:[function(e,a){const r=a.getContentType()||"",d=r.indexOf("application/json")>-1,m=_r.isObject(e);if(m&&_r.isHTMLForm(e)&&(e=new FormData(e)),_r.isFormData(e))return d?JSON.stringify(FC(e)):e;if(_r.isArrayBuffer(e)||_r.isBuffer(e)||_r.isStream(e)||_r.isFile(e)||_r.isBlob(e))return e;if(_r.isArrayBufferView(e))return e.buffer;if(_r.isURLSearchParams(e))return a.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let n;if(m){if(r.indexOf("application/x-www-form-urlencoded")>-1)return lte(e,this.formSerializer).toString();if((n=_r.isFileList(e))||r.indexOf("multipart/form-data")>-1){const s=this.env&&this.env.FormData;return fg(n?{"files[]":e}:e,s&&new s,this.formSerializer)}}return m||d?(a.setContentType("application/json",!1),ute(e)):e}],transformResponse:[function(e){const a=this.transitional||i3.transitional,r=a&&a.forcedJSONParsing,d=this.responseType==="json";if(e&&_r.isString(e)&&(r&&!this.responseType||d)){const m=!(a&&a.silentJSONParsing)&&d;try{return JSON.parse(e)}catch(n){if(m)throw n.name==="SyntaxError"?zn.from(n,zn.ERR_BAD_RESPONSE,this,null,this.response):n}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:gd.classes.FormData,Blob:gd.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};_r.forEach(["delete","get","head","post","put","patch"],e=>{i3.headers[e]={}});const o3=i3,pte=_r.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),hte=e=>{const a={};let r,d,m;return e&&e.split(`
|
|
33
|
+
`}}}},getChartSeries(e,a){let r,d;return this.showPostMatchData?(r={name:`${this.homeTeam.acronym}`,data:[],dataTotal:[]},d={name:`${this.visitingTeam.acronym}`,data:[],dataTotal:[]},a.arraySubcategories=[],Object.values(e).forEach((m,n)=>{a.xaxis.categories.push(this.prepareLabels(m,n)),a.arraySubcategories.push(m);const s=m.homeTeam[this.homeTeamStatisticsType].totalPostGame+m.visitingTeam[this.visitingTeamStatisticsType].totalPostGame;r.data.push(Math.round(120*(s?m.homeTeam[this.homeTeamStatisticsType].totalPostGame/s:0))),r.dataTotal.push(m.homeTeam[this.homeTeamStatisticsType].totalPostGame),d.data.push(Math.round(120*(s?m.visitingTeam[this.visitingTeamStatisticsType].totalPostGame/s:0))),d.dataTotal.push(m.visitingTeam[this.visitingTeamStatisticsType].totalPostGame)})):(r={name:`${this.showLiveData?"Live":"Histórico"} ${this.homeTeam.acronym}`,data:[],dataTotal:[]},d={name:`${this.showLiveData?"Live":"Histórico"} ${this.visitingTeam.acronym}`,data:[],dataTotal:[]},a.arraySubcategories=[],Object.values(e).forEach((m,n)=>{a.xaxis.categories.push(this.prepareLabels(m,n)),a.arraySubcategories.push(m);let s,i,_,f;m.homeTeam[this.homeTeamStatisticsType].leader.points,m.visitingTeam[this.visitingTeamStatisticsType].leader.points;const o=m.homeTeam.accomplished.avgPostGame+m.visitingTeam.accomplished.avgPostGame;if(!this.showLiveData)this.gameForAnalysis.game_status!==1&&m.generalCategoriesIds.accomplished===3?(s=m.homeTeam.accomplished.avgPostGame/o,_=m.homeTeam.accomplished.totalPostGame):(s=o?m.homeTeam[this.homeTeamStatisticsType].avgPostGame/o:0,_=m.homeTeam[this.homeTeamStatisticsType].totalPostGame);else{const g=m.homeTeam[this.homeTeamStatisticsType].totalLive+m.visitingTeam[this.visitingTeamStatisticsType].totalLive;s=g?m.homeTeam[this.homeTeamStatisticsType].totalLive/g:0,_=m.homeTeam[this.homeTeamStatisticsType].totalLive}if(!this.showLiveData)this.gameForAnalysis.game_status!==1&&m.generalCategoriesIds.accomplished===3?(i=m.visitingTeam.accomplished.avgPostGame/o,f=m.visitingTeam.accomplished.totalPostGame):(i=o?m.visitingTeam[this.visitingTeamStatisticsType].avgPostGame/o:0,f=m.visitingTeam[this.visitingTeamStatisticsType].totalPostGame);else{const g=m.homeTeam[this.homeTeamStatisticsType].totalLive+m.visitingTeam[this.visitingTeamStatisticsType].totalLive;i=g?m.visitingTeam[this.visitingTeamStatisticsType].totalLive/g:0,f=m.visitingTeam[this.visitingTeamStatisticsType].totalLive}r.data.push(Math.round(120*s)),r.dataTotal.push(Math.round(_)),d.data.push(Math.round(120*i)),d.dataTotal.push(Math.round(f))})),[r,d]},onHomeTeamPlaysTypeChanged(e){this.homeTeamSelectedPlaysType=e},onVisitingTeamPlaysTypeChanged(e){this.visitingTeamSelectedPlaysType=e},getSubcategoryData(e,a="homeTeam"){return e.id==="3-0"&&(e[a].accomplished.totalLiveBothTeams=e.homeTeam.accomplished.totalLive+e.visitingTeam.accomplished.totalLive),e[a].accomplished||0},showModal(e,a,r){const d=r===0?"homeTeam":"visitingTeam",m=e.config.arraySubcategories[a]||{};this.tooltip.isLeagueAvgVisible=m.id!=="3-0",this.tooltip.data=this.getSubcategoryData(m,d),this.tooltip.local=r===0,this.tooltip.names=m.names,this.tooltip.keyName=this.subcategoryName,this.tooltip.leagueAvg=this.leagueAvg(m);const n=e.globals.clientX||0,s=e.globals.clientY||0;this.globals.x=n,this.globals.y=s,this.tooltip.x=n,this.tooltip.y=s>700?s-250:s;const i=m.generalCategoriesIds.accomplished===3;if(i){const _=m.homeTeam.accomplished.avgPostGame+m.visitingTeam.accomplished.avgPostGame;this.tooltip.numberValue=_?m[d].accomplished.avgPostGame/_*100:0}else this.tooltip.numberValue=null;return this.tooltip.booleanIsPercent=i,this.tooltip.show=!0,this.tooltip.data},updateTooltip(e){const r=Math.abs(e.clientX-this.globals.x),d=Math.abs(e.clientY-this.globals.y);(r>5||d>5)&&(this.tooltip.show=!1)},prepareLabels(e,a){let r=e.name||e.names[this.subcategoryName]||e.names["0-0"];if(a===0)return r;const d=13;if(r.length>d){let m=r.split(" ");r=[];let n="",s="",i=m.slice(-1)[0];m.forEach(_=>{n+=` ${_} `,n.length>d&&(r.push(s.trim()),n=_),s=n,i===_&&r.push(s.trim())})}return r},leagueAvg(e){return e.generalCategoriesIds.accomplished===3?(e.homeTeam.accomplished.arrayRankings.reduce((a,r)=>a+r.points,0)/e.homeTeam.accomplished.arrayRankings.length*100).toFixed(2):this.avg(e,this.accomplished)}}},nC=e=>(t.pushScopeId("data-v-383baec7"),e=e(),t.popScopeId(),e),wK={key:0,class:"distribution-leyend"},kK=nC(()=>t.createElementVNode("br",null,null,-1)),CK={class:"distribution"},EK={class:"distribution__container"},SK={class:"distribution__container__chart-type__title"},TK=nC(()=>t.createElementVNode("div",{class:"distribution__container__chart-type__controls"},null,-1)),AK={class:"distribution__container__chart-type__chart"};function NK(e,a,r,d,m,n){const s=t.resolveComponent("apexchart");return t.openBlock(),t.createElementBlock(t.Fragment,null,[e.gameForAnalysis.game_status==4?(t.openBlock(),t.createElementBlock("div",wK,[t.createTextVNode("Faltan "),t.createElementVNode("span",null,t.toDisplayString(n.timeLeft),1),t.createTextVNode(" para el inicio."),kK,t.createTextVNode("Las estadísticas corresponden a sus promedios por partido del torneo "),t.createElementVNode("span",null,t.toDisplayString(r.seasonSelected.name),1)])):t.createCommentVNode("",!0),t.createElementVNode("div",CK,[t.createElementVNode("div",EK,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(m.arrayDataForCharts,(i,_)=>(t.openBlock(),t.createElementBlock("div",{class:"distribution__container__chart-type",key:_},[t.createElementVNode("div",SK,t.toDisplayString(i.name),1),TK,t.createElementVNode("div",AK,[(t.openBlock(),t.createBlock(s,{type:"radar",height:m.height,options:m.arrayChartOptions[_],series:m.arrayFilledSeries[_],key:m.chartKeyCounter+m.updateCategory+_},null,8,["height","options","series"]))])]))),128))])])],64)}const BK=Si(xK,[["render",NK],["__scopeId","data-v-383baec7"]]),IK=(e,a)=>{const r=e.__vccOpts||e;for(const[d,m]of a)r[d]=m;return r},Qb={props:{textOptionLeft:String,valueDefault:{type:String,default:""},textOptionRight:String,hiddenLabels:{type:Boolean,default:!1},width:{type:String,default:"50px"},height:{type:String,default:"32px"},heightCircle:{type:String,default:"24px"},widthCircle:{type:String,default:"24px"},widthIcons:{type:String,default:"22"},borderRadius:{type:String,default:"30px"},borderType:{type:String,default:"solid"},borderWidth:{type:Number,default:1},borderColor:{type:String,default:"#FFFFFF"},fontSize:{type:String,default:"14px"},fontColor:{type:String,default:"#000000"},iconA:{type:String,default:""},iconB:{type:String,default:""},fontFamily:{type:String,default:"Poppins-Regular"},backgroundColor:{type:String,default:"#2e3b46"},circleColorSwitch:{type:String,default:"#FFFFFF"}},data(){return{OptionDefault:!1}},watch:{valueDefault:{immediate:!0,handler:async function(e){try{e==this.textOptionLeft&&(this.OptionDefault=!1),e==this.textOptionRight&&(this.OptionDefault=!0)}catch(a){throw new Error(a)}}}},computed:{customStyle(){return{width:this.width,height:this.height,borderRadius:this.borderRadius,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`,backgroundColor:this.backgroundColor,circleColor:this.circleColorSwitch}},customText(){return{color:this.fontColor,fontSize:this.fontSize,fontFamily:`${this.fontFamily} !important`}}},methods:{handleSwitchChange(e){e.target.checked?this.$emit("change",this.textOptionRight):this.$emit("change",this.textOptionLeft)}}},iC=()=>{t.useCssVars(e=>({"1b04779e":e.widthCircle,c974bf22:e.heightCircle}))},oC=Qb.setup;Qb.setup=oC?(e,a)=>(iC(),oC(e,a)):iC;const MK={key:0,class:"text-left"},OK=["width","src"],PK=["checked"],FK=["width","src"],RK={key:3,class:"text-right"};function VK(e,a,r,d,m,n){return t.openBlock(),t.createElementBlock("div",{class:"gsc-switch-radio",style:t.normalizeStyle(n.customText)},[r.textOptionLeft!=""&&!r.hiddenLabels?(t.openBlock(),t.createElementBlock("span",MK,t.toDisplayString(r.textOptionLeft),1)):t.createCommentVNode("",!0),r.iconA!=""?(t.openBlock(),t.createElementBlock("img",{key:1,width:r.widthIcons,src:r.iconA},null,8,OK)):t.createCommentVNode("",!0),t.createElementVNode("input",{type:"checkbox",id:"toggle-btn",onChange:a[0]||(a[0]=(...s)=>n.handleSwitchChange&&n.handleSwitchChange(...s)),checked:m.OptionDefault},null,40,PK),t.createElementVNode("label",{for:"toggle-btn",style:t.normalizeStyle([n.customStyle,{"--circle-color":r.circleColorSwitch}])},null,4),r.iconB!=""?(t.openBlock(),t.createElementBlock("img",{key:2,width:r.widthIcons,src:r.iconB},null,8,FK)):t.createCommentVNode("",!0),r.textOptionRight!=""&&!r.hiddenLabels?(t.openBlock(),t.createElementBlock("span",RK,t.toDisplayString(r.textOptionRight),1)):t.createCommentVNode("",!0)],4)}const zK=IK(Qb,[["render",VK],["__scopeId","data-v-e2a20444"]]),BBt="",IBt="",DK={name:"tooltip",props:{data:{type:Object,required:!0}},computed:{positionTooltip(){return{top:`${this.data.y}px`,left:`${this.data.x}px`}},showTooltip(){return{visible:this.data.visible}}},methods:{tooltipClick:function(e){this.visible=!1}}};function LK(e,a,r,d,m,n){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["box-tooltip",n.showTooltip]),style:t.normalizeStyle(n.positionTooltip),onClick:a[0]||(a[0]=(...s)=>n.tooltipClick&&n.tooltipClick(...s))},[t.renderSlot(e.$slots,"default",{},void 0,!0)],6)}const sC=Si(DK,[["render",LK],["__scopeId","data-v-33a39744"]]),MBt="",$K={name:"SoccerChalkboard",components:{Tooltip:sC},props:{plays:{type:Array,required:!0},categories:{type:Array,required:!0},team:{type:String,required:!0}},data(){return{negativeColor:"red",data:{x:0,y:0,visible:!1},dataPlay:{playerName:"",photo:"",minute:0,rivalLogo:"",rivalName:"",categoryName:"",xGi:0,xGf:0,isOwnGoal:!1}}},computed:{...qi("nextGeneral",["homeTeam","visitingTeam"]),preparedPlays(){return this.plays.map(e=>({...e,playingAs:e.playing_as,teamId:e.team_id,photo:e.photo,categoryId:e.category_id,matchResult:e.match_result,matchLapse:e.matchlapse,x1:e.x1*100,y1:e.y1*100,x2:e.x2*100,y2:e.y2*100,x3:e.x3*100,y3:e.y3*100,xGi:e.xG1,xGf:e.xG2}))},localCategories(){return this.categories.map((e,a)=>({id:a,name:e.name,negative:e.negative||!1,color:e.color,points:e.points,numPoints:e.points.length,categories:e.categories,invert:e.invert||[]}))},graphPlays(){let e=this.localCategories.reduce((d,m)=>[...d,m.categories],[]);return this.preparedPlays.filter(d=>this.findCategoryInPlay(e,d)).reduce((d,m)=>{let n=this.localCategories.find(s=>this.findCategoryInPlay(s.categories,m));if(n){let s={category:n.id,categoryName:n.name,arrowColor:n.negative?this.negativeColor:n.color,arrowMarkerColor:n.negative?"url(#arrow-negative)":`url(#arrow-${n.id})`,markerColor:n.color,jersey:m.jersey_number,matchlapse:m.matchLapse,playerName:m.player_name,photo:m.photo,rivalLogo:m.rival_id,x1:n.invert.includes(m.categoryId)?100-m[`x${n.points[0]}`]:m[`x${n.points[0]}`],y1:n.invert.includes(m.categoryId)?100-m[`y${n.points[0]}`]:m[`y${n.points[0]}`],x2:n.invert.includes(m.categoryId)?100-m[`x${n.points[1]}`]:m[`x${n.points[1]}`],y2:n.invert.includes(m.categoryId)?100-m[`y${n.points[1]}`]:m[`y${n.points[1]}`],x3:n.invert.includes(m.categoryId)?100-m[`x${n.points[2]}`]:m[`x${n.points[2]}`],y3:n.invert.includes(m.categoryId)?100-m[`y${n.points[2]}`]:m[`y${n.points[2]}`],momentOfPlay:m.moment_of_play,isOwnGoal:n.invert.includes(m.categoryId),xGi:m.xGi,xGf:m.xGf};d.push(s)}return d},[])}},methods:{findCategoryInPlay(e,a){return e.find(r=>typeof r=="number"?r===a.categoryId:r.includes(a.categoryId))},onMouseOver(e,a){this.dataPlay.playerName=a.playerName||"",this.dataPlay.photo=a.photo||"",this.dataPlay.minute=parseInt(a.momentOfPlay.split(":")[0])||"",this.dataPlay.rivalLogo=a.rivalLogo||"",this.dataPlay.categoryName=a.categoryName||"",this.dataPlay.rivalName=this.team=="Visiting"?this.homeTeam.colloquial_name:this.visitingTeam.colloquial_name,this.dataPlay.xGi=String(a.xGi),this.dataPlay.xGf=String(a.xGf),this.dataPlay.isOwnGoal=a.isOwnGoal,this.data.visible=!0},onMouseLeave(){this.data.visible=!1}}},Xm=e=>(t.pushScopeId("data-v-883eff7a"),e=e(),t.popScopeId(),e),jK={class:"soccer-chalkboard-xg"},UK={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 490 684","xmlns:xlink":"http://www.w3.org/1999/xlink",class:"soccer-chalkboard"},HK={xmlns:"http://www.w3.org/2000/svg",viewBox:"30 0 452 684","xmlns:xlink":"http://www.w3.org/1999/xlink"},GK=Xm(()=>t.createElementVNode("marker",{id:"arrow-negative",viewBox:"0 0 10 10",refX:"5",refY:"5",markerWidth:"6",markerHeight:"6",markerUnits:"strokeWidth",orient:"auto"},[t.createElementVNode("path",{d:"M 0 0 L 10 5 L 0 10 z","stroke-width":"2",fill:"red"})],-1)),WK=["id"],qK=["fill"],YK=Xm(()=>t.createElementVNode("pattern",{id:"fieldBackground",width:"1",height:"1",viewBox:"0 0 100 100",preserveAspectRatio:"none"},[t.createElementVNode("image",{"xlink:href":"https://az755631.vo.msecnd.net/todoelfut/fieldbg.png",width:"100",height:"100",preserveAspectRatio:"none",id:"image2"})],-1)),ZK=["id"],XK=["x1","y1","x2","y2","stroke"],KK=["x1","y1","x2","y2","stroke","marker-end"],JK=["onMouseover"],QK=["x","y","fill"],eJ=["x","y"],tJ={class:"tooltip-data has-text-left"},aJ={class:"bold"},rJ={class:"tooltip-image"},nJ={class:"tooltip-image"},iJ=["src"],oJ={class:"tooltip-xg"},sJ={key:0},lJ=Xm(()=>t.createElementVNode("span",null,"xGi:",-1)),cJ=Xm(()=>t.createElementVNode("div",{class:"tooltip-xg-separator"},null,-1)),dJ={key:1},uJ=Xm(()=>t.createElementVNode("span",null,"xGf:",-1));function pJ(e,a,r,d,m,n){const s=t.resolveComponent("Tooltip");return t.openBlock(),t.createElementBlock("div",jK,[(t.openBlock(),t.createElementBlock("svg",UK,[(t.openBlock(),t.createElementBlock("svg",HK,[t.createElementVNode("defs",null,[GK,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.localCategories,i=>(t.openBlock(),t.createElementBlock("marker",{key:`arrow-color-${i.id}`,id:`arrow-${i.id}`,viewBox:"0 0 10 10",refX:"5",refY:"5",markerWidth:"6",markerHeight:"6",markerUnits:"strokeWidth",orient:"auto"},[t.createElementVNode("path",{d:"M 0 0 L 10 5 L 0 10 z","stroke-width":"2",fill:i.color},null,8,qK)],8,WK))),128)),YK]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.graphPlays,i=>(t.openBlock(),t.createElementBlock("g",{key:i.id,id:`play-${i.playId}`},[t.createElementVNode("line",{x1:`${i.x1}%`,y1:`${i.y1}%`,x2:`${i.x2}%`,y2:`${i.y2}%`,stroke:i.arrowColor,"stroke-width":"2"},null,8,XK),t.createElementVNode("line",{x1:`${i.x2}%`,y1:`${i.y2}%`,x2:`${i.x3}%`,y2:`${i.y3}%`,stroke:i.arrowColor,"stroke-width":"2","marker-end":i.arrowMarkerColor},null,8,KK),t.createElementVNode("g",{onMouseover:_=>n.onMouseOver(_,i),onMouseleave:a[0]||(a[0]=(..._)=>n.onMouseLeave&&n.onMouseLeave(..._)),class:"is-pointer"},[t.createElementVNode("rect",{x:`${i.x1}%`,y:`${i.y1}%`,transform:"translate(-14, -14)",height:"28",width:"28","stroke-width":"2",fill:i.markerColor,stroke:"#999",rx:"14",ry:"14"},null,8,QK),t.createElementVNode("text",{"text-anchor":"middle","dominant-baseline":"middle",x:`${i.x1}%`,y:`${i.y1}%`,dy:"1","font-size":"15",fill:"#fff","font-family":"'Poppins-SemiBold', sans-serif"},t.toDisplayString(i.jersey),9,eJ)],40,JK)],8,ZK))),128))]))])),t.createVNode(s,{data:m.data},{default:t.withCtx(()=>[t.createElementVNode("div",tJ,[t.createElementVNode("div",null,[t.createElementVNode("span",aJ,t.toDisplayString(m.dataPlay.isOwnGoal?"Autogol":m.dataPlay.categoryName),1)]),t.createElementVNode("div",null,[t.createTextVNode(t.toDisplayString(m.dataPlay.playerName)+" ",1),t.createElementVNode("div",rJ,[t.createElementVNode("div",{class:"tooltip-image-player",style:t.normalizeStyle("background: url("+m.dataPlay.photo+") top")},null,4)])]),t.createElementVNode("div",null,"Minuto: "+t.toDisplayString(m.dataPlay.minute)+"'",1),t.createElementVNode("div",null,[t.createTextVNode(" Rival: "),t.createElementVNode("div",nJ,[t.createElementVNode("img",{src:m.dataPlay.rivalLogo},null,8,iJ)])]),t.createElementVNode("div",oJ,[/^[+]?([0-1]+(?:[\.][0-9]*)?|\.[0-9]+)$/.test(m.dataPlay.xGi)&&m.dataPlay.xGi<=1&&!m.dataPlay.isOwnGoal?(t.openBlock(),t.createElementBlock("div",sJ,[lJ,t.createTextVNode(" "+t.toDisplayString(Number(m.dataPlay.xGi)),1)])):t.createCommentVNode("",!0),cJ,/^[+]?([0-1]+(?:[\.][0-9]*)?|\.[0-9]+)$/.test(m.dataPlay.xGf)&&m.dataPlay.xGf<=1&&!m.dataPlay.isOwnGoal?(t.openBlock(),t.createElementBlock("div",dJ,[uJ,t.createTextVNode(" "+t.toDisplayString(Number(m.dataPlay.xGf)),1)])):t.createCommentVNode("",!0)])])]),_:1},8,["data"])])}const lC=Si($K,[["render",pJ],["__scopeId","data-v-883eff7a"]]),dg=[{name:"Goles",color:"#336DFF",points:[1,2,3],categories:[12,55,35,54],invert:[35,54],negative:!1},{name:"Tiros a gol",color:"#7ED321",points:[1,2,3],categories:[12,55,35,54,510]}],OBt="",hJ={name:"Xg",components:{SoccerChalkboard:lC},props:{},data(){return{categories:dg}},computed:{...Ol("nextGeneral",["usePastSeasonId","pastSeasonId","gameId"]),...Ol("general",["booleanIsStatisticModalOpen"]),...qi("xgGeneral",["playsLocal","goalsQtyLocal","shotsOnGoalQtyLocal","xGLocal"]),...qi("nextGeneral",["getSeasonId","homeTeam","visitingTeam","showPostMatchData","game","getGameForAnalysis"]),...qi("loginGeneral",["getPremiumAccount","getIsGolstats"]),...qi("general",["getPreviewSectionAnalytics"]),stringSelectedTeamLogo(){return this.homeTeam.logo},windowWidth(){return this.$store.state.windowWidth},gxInfoItems(){return[{title:"Goles",value:this.goalsQtyLocal},{title:"Tiros a Gol",value:this.shotsOnGoalQtyLocal},{title:"Goles esperados (xG)",value:this.xGLocal}]}},watch:{getGameForAnalysis:{deep:!0,handler(e){e&&this.fillXgPlays()}}},methods:{...Nu("general",["setVideoSrc","setVideoModalVisibility"]),...Nu("xgGeneral",["setTeamSelected"]),...G1("xgGeneral",["getXgPlays"]),openXgVideo(){this.setVideoSrc(""),this.setVideoModalVisibility(!0)},getTeamId(){return this.homeTeam.team_id},fillXgPlays(){this.getGameForAnalysis.game_status!=1?this.getXgPlays({seasonId:this.usePastSeasonId?this.pastSeasonId:this.getSeasonId,localTeamId:this.homeTeam.team_id,visitingTeamId:this.visitingTeam.team_id}):this.getXgPlays({seasonId:this.gameId,localTeamId:this.homeTeam.team_id,visitingTeamId:this.visitingTeam.team_id,postMatch:!0})}},beforeMount(){this.fillXgPlays()}},cC=e=>(t.pushScopeId("data-v-6fa9fc78"),e=e(),t.popScopeId(),e),mJ={class:"xg-container"},fJ={class:"xg-container__info"},gJ=cC(()=>t.createElementVNode("div",{class:"title"},"Goles esperados (xG)",-1)),yJ={class:"table"},_J={class:"table__row"},vJ={class:"table__row__title"},bJ={class:"table__row__value"},xJ=["src"],wJ={class:"table__row"},kJ={class:"table__row__title"},CJ={class:"table__row__value"},EJ={class:"table__row"},SJ={class:"table__row__title"},TJ={class:"table__row__value"},AJ=cC(()=>t.createElementVNode("div",{class:"table-description"},[t.createElementVNode("span",null,"xG:"),t.createTextVNode(" es la medida para estimar la probabilidad de que un tiro o una jugada termine en gol, basándose en factores como la ubicación y la dificultad de la acción. ")],-1)),NJ={class:"xg-container__field"};function BJ(e,a,r,d,m,n){const s=t.resolveComponent("SoccerChalkboard");return t.openBlock(),t.createElementBlock("div",mJ,[t.createElementVNode("div",fJ,[gJ,t.createElementVNode("div",yJ,[t.createElementVNode("div",_J,[t.createElementVNode("div",vJ,t.toDisplayString(n.gxInfoItems[0].title),1),t.createElementVNode("div",bJ,[t.createTextVNode(t.toDisplayString(n.gxInfoItems[0].value),1),t.createElementVNode("img",{class:"img-abs",src:n.stringSelectedTeamLogo},null,8,xJ)])]),t.createElementVNode("div",wJ,[t.createElementVNode("div",kJ,t.toDisplayString(n.gxInfoItems[1].title),1),t.createElementVNode("div",CJ,t.toDisplayString(n.gxInfoItems[1].value),1)]),t.createElementVNode("div",EJ,[t.createElementVNode("div",SJ,t.toDisplayString(n.gxInfoItems[2].title),1),t.createElementVNode("div",TJ,t.toDisplayString(n.gxInfoItems[2].value),1)])]),AJ]),t.createElementVNode("div",NJ,[t.createVNode(s,{plays:e.playsLocal,categories:m.categories,team:e.team},null,8,["plays","categories","team"])])])}const IJ=Si(hJ,[["render",BJ],["__scopeId","data-v-6fa9fc78"]]),PBt="",MJ={name:"Xg",components:{SoccerChalkboard:lC},props:{team:{type:String,default:"Visiting"}},data(){return{categories:dg}},computed:{...Ol("nextGeneral",["usePastSeasonId","pastSeasonId","gameId"]),...Ol("general",["booleanIsStatisticModalOpen"]),...qi("xgGeneral",["playsAway","goalsQtyAway","shotsOnGoalQtyAway","xGAway"]),...qi("nextGeneral",["getSeasonId","homeTeam","visitingTeam","showPostMatchData","game","getGameForAnalysis"]),...qi("loginGeneral",["getPremiumAccount","getIsGolstats"]),...qi("general",["getPreviewSectionAnalytics"]),stringSelectedTeamLogo(){return this.visitingTeam.logo},windowWidth(){return this.$store.state.windowWidth},gxInfoItems(){return[{title:"Goles",value:this.goalsQtyAway},{title:"Tiros a Gol",value:this.shotsOnGoalQtyAway},{title:"Goles esperados (xG)",value:this.xGAway}]}},watch:{getGameForAnalysis:{deep:!0,handler(e){e&&this.fillXgPlays()}}},methods:{...Nu("general",["setVideoSrc","setVideoModalVisibility"]),...Nu("xgGeneral",["setTeamSelected"]),...G1("xgGeneral",["getXgPlays"]),openXgVideo(){this.setVideoSrc(""),this.setVideoModalVisibility(!0)},getTeamId(){return this.visitingTeam.team_id},fillXgPlays(){this.getGameForAnalysis.game_status!=1?this.getXgPlays({seasonId:this.usePastSeasonId?this.pastSeasonId:this.getSeasonId,localTeamId:this.homeTeam.team_id,visitingTeamId:this.visitingTeam.team_id}):this.getXgPlays({seasonId:this.gameId,localTeamId:this.homeTeam.team_id,visitingTeamId:this.visitingTeam.team_id,postMatch:!0})}},beforeMount(){this.setTeamSelected("Visiting"),this.fillXgPlays()}},dC=e=>(t.pushScopeId("data-v-03602455"),e=e(),t.popScopeId(),e),OJ={class:"xg-container"},PJ={class:"xg-container__info"},FJ=dC(()=>t.createElementVNode("div",{class:"title"},"Goles esperados (xG)",-1)),RJ={class:"table"},VJ={class:"table__row"},zJ={class:"table__row__title"},DJ={class:"table__row__value"},LJ=["src"],$J={class:"table__row"},jJ={class:"table__row__title"},UJ={class:"table__row__value"},HJ={class:"table__row"},GJ={class:"table__row__title"},WJ={class:"table__row__value"},qJ=dC(()=>t.createElementVNode("div",{class:"table-description"},[t.createElementVNode("span",null,"xG:"),t.createTextVNode(" es la medida para estimar la probabilidad de que un tiro o una jugada termine en gol, basándose en factores como la ubicación y la dificultad de la acción. ")],-1)),YJ={class:"xg-container__field"};function ZJ(e,a,r,d,m,n){const s=t.resolveComponent("SoccerChalkboard");return t.openBlock(),t.createElementBlock("div",null,[t.createElementVNode("div",OJ,[t.createElementVNode("div",PJ,[FJ,t.createElementVNode("div",RJ,[t.createElementVNode("div",VJ,[t.createElementVNode("div",zJ,t.toDisplayString(n.gxInfoItems[0].title),1),t.createElementVNode("div",DJ,[t.createTextVNode(t.toDisplayString(n.gxInfoItems[0].value),1),t.createElementVNode("img",{class:"img-abs",src:n.stringSelectedTeamLogo},null,8,LJ)])]),t.createElementVNode("div",$J,[t.createElementVNode("div",jJ,t.toDisplayString(n.gxInfoItems[1].title),1),t.createElementVNode("div",UJ,t.toDisplayString(n.gxInfoItems[1].value),1)]),t.createElementVNode("div",HJ,[t.createElementVNode("div",GJ,t.toDisplayString(n.gxInfoItems[2].title),1),t.createElementVNode("div",WJ,t.toDisplayString(n.gxInfoItems[2].value),1)])]),qJ]),t.createElementVNode("div",YJ,[t.createVNode(s,{plays:e.playsAway,categories:m.categories,team:r.team},null,8,["plays","categories","team"])])])])}const XJ=Si(MJ,[["render",ZJ],["__scopeId","data-v-03602455"]]),FBt="",KJ={name:"SoccerChalkboard",components:{Tooltip:sC},props:{plays:{type:Array,required:!0},categories:{type:Array,required:!0},team:{type:String,required:!0}},data(){return{negativeColor:"red",data:{x:0,y:0,visible:!1},dataPlay:{playerName:"",photo:"",minute:0,rivalLogo:"",rivalName:"",categoryName:"",xGi:0,xGf:0,isOwnGoal:!1}}},computed:{...qi("nextGeneral",["homeTeam","visitingTeam"]),preparedPlays(){return this.plays.map(e=>({...e,playingAs:e.playing_as,teamId:e.team_id,photo:e.photo,categoryId:e.category_id,matchResult:e.match_result,matchLapse:e.matchlapse,x1:e.x1*100,y1:e.y1*100,x2:e.x2*100,y2:e.y2*100,x3:e.x3*100,y3:e.y3*100,xGi:e.xG1,xGf:e.xG2}))},localCategories(){return this.categories.map((e,a)=>({id:a,name:e.name,negative:e.negative||!1,color:e.color,points:e.points,numPoints:e.points.length,categories:e.categories,invert:e.invert||[]}))},graphPlays(){let e=this.localCategories.reduce((d,m)=>[...d,m.categories],[]);return this.preparedPlays.filter(d=>this.findCategoryInPlay(e,d)).reduce((d,m)=>{let n=this.localCategories.find(s=>this.findCategoryInPlay(s.categories,m));if(n){let s={category:n.id,categoryName:n.name,arrowColor:n.negative?this.negativeColor:n.color,arrowMarkerColor:n.negative?"url(#arrow-negative)":`url(#arrow-${n.id})`,markerColor:n.color,jersey:m.jersey_number,matchlapse:m.matchLapse,playerName:m.player_name,photo:m.photo,rivalLogo:m.rival_id,x1:n.invert.includes(m.categoryId)?100-m[`x${n.points[0]}`]:m[`x${n.points[0]}`],y1:n.invert.includes(m.categoryId)?100-m[`y${n.points[0]}`]:m[`y${n.points[0]}`],x2:n.invert.includes(m.categoryId)?100-m[`x${n.points[1]}`]:m[`x${n.points[1]}`],y2:n.invert.includes(m.categoryId)?100-m[`y${n.points[1]}`]:m[`y${n.points[1]}`],x3:n.invert.includes(m.categoryId)?100-m[`x${n.points[2]}`]:m[`x${n.points[2]}`],y3:n.invert.includes(m.categoryId)?100-m[`y${n.points[2]}`]:m[`y${n.points[2]}`],momentOfPlay:m.moment_of_play,isOwnGoal:n.invert.includes(m.categoryId),xGi:m.xGi,xGf:m.xGf};d.push(s)}return d},[])}},methods:{findCategoryInPlay(e,a){return e.find(r=>typeof r=="number"?r===a.categoryId:r.includes(a.categoryId))},onMouseOver(e,a){this.dataPlay.playerName=a.playerName||"",this.dataPlay.photo=a.photo||"",this.dataPlay.minute=parseInt(a.momentOfPlay.split(":")[0])||"",this.dataPlay.rivalLogo=a.rivalLogo||"",this.dataPlay.categoryName=a.categoryName||"",this.dataPlay.rivalName=this.team=="Visiting"?this.homeTeam.team_name:this.visitingTeam.team_name,this.dataPlay.xGi=String(a.xGi),this.dataPlay.xGf=String(a.xGf),this.dataPlay.isOwnGoal=a.isOwnGoal,this.data.x=e.pageX<135?e.pageX-50:e.layerX-50,this.data.y=e.layerY+130,this.data.visible=!0},onMouseLeave(){this.data.visible=!1}}},Km=e=>(t.pushScopeId("data-v-f6c30694"),e=e(),t.popScopeId(),e),JJ={class:"soccer-chalkboard-xg"},QJ={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 490 684","xmlns:xlink":"http://www.w3.org/1999/xlink",class:"soccer-chalkboard"},eQ={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 452 684","xmlns:xlink":"http://www.w3.org/1999/xlink"},tQ=Km(()=>t.createElementVNode("marker",{id:"arrow-negative",viewBox:"0 0 10 10",refX:"5",refY:"5",markerWidth:"6",markerHeight:"6",markerUnits:"strokeWidth",orient:"auto"},[t.createElementVNode("path",{d:"M 0 0 L 10 5 L 0 10 z","stroke-width":"2",fill:"red"})],-1)),aQ=["id"],rQ=["fill"],nQ=Km(()=>t.createElementVNode("pattern",{id:"fieldBackground",width:"1",height:"1",viewBox:"0 0 100 100",preserveAspectRatio:"none"},[t.createElementVNode("image",{"xlink:href":"https://az755631.vo.msecnd.net/todoelfut/fieldbg.png",width:"100",height:"100",preserveAspectRatio:"none",id:"image2"})],-1)),iQ=["id"],oQ=["x1","y1","x2","y2","stroke"],sQ=["x1","y1","x2","y2","stroke","marker-end"],lQ=["onMouseover"],cQ=["x","y","fill"],dQ=["x","y"],uQ={class:"tooltip-data has-text-left"},pQ={class:"bold"},hQ={class:"tooltip-image"},mQ={class:"tooltip-image"},fQ=["src"],gQ={class:"tooltip-xg"},yQ={key:0},_Q=Km(()=>t.createElementVNode("span",null,"xGi:",-1)),vQ=Km(()=>t.createElementVNode("div",{class:"tooltip-xg-separator"},null,-1)),bQ={key:1},xQ=Km(()=>t.createElementVNode("span",null,"xGf:",-1));function wQ(e,a,r,d,m,n){const s=t.resolveComponent("Tooltip");return t.openBlock(),t.createElementBlock("div",JJ,[(t.openBlock(),t.createElementBlock("svg",QJ,[(t.openBlock(),t.createElementBlock("svg",eQ,[t.createElementVNode("defs",null,[tQ,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.localCategories,i=>(t.openBlock(),t.createElementBlock("marker",{key:`arrow-color-${i.id}`,id:`arrow-${i.id}`,viewBox:"0 0 10 10",refX:"5",refY:"5",markerWidth:"6",markerHeight:"6",markerUnits:"strokeWidth",orient:"auto"},[t.createElementVNode("path",{d:"M 0 0 L 10 5 L 0 10 z","stroke-width":"2",fill:i.color},null,8,rQ)],8,aQ))),128)),nQ]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.graphPlays,i=>(t.openBlock(),t.createElementBlock("g",{key:i.id,id:`play-${i.playId}`},[t.createElementVNode("line",{x1:`${i.x1}%`,y1:`${i.y1}%`,x2:`${i.x2}%`,y2:`${i.y2}%`,stroke:i.arrowColor,"stroke-width":"2"},null,8,oQ),t.createElementVNode("line",{x1:`${i.x2}%`,y1:`${i.y2}%`,x2:`${i.x3}%`,y2:`${i.y3}%`,stroke:i.arrowColor,"stroke-width":"2","marker-end":i.arrowMarkerColor},null,8,sQ),t.createElementVNode("g",{onMouseover:_=>n.onMouseOver(_,i),onMouseleave:a[0]||(a[0]=(..._)=>n.onMouseLeave&&n.onMouseLeave(..._)),class:"is-pointer"},[t.createElementVNode("rect",{x:`${i.x1}%`,y:`${i.y1}%`,transform:"translate(-14, -14)",height:"28",width:"28","stroke-width":"2",fill:i.markerColor,stroke:"#aaa",rx:"14",ry:"14"},null,8,cQ),t.createElementVNode("text",{"text-anchor":"middle","dominant-baseline":"middle",x:`${i.x1}%`,y:`${i.y1}%`,dy:"1","font-size":"15",stroke:"white","font-family":"Poppins, sans-serif"},t.toDisplayString(i.jersey),9,dQ)],40,lQ)],8,iQ))),128))]))])),t.createVNode(s,{data:m.data},{default:t.withCtx(()=>[t.createElementVNode("div",uQ,[t.createElementVNode("div",null,[t.createElementVNode("span",pQ,t.toDisplayString(m.dataPlay.isOwnGoal?"Autogol":m.dataPlay.categoryName),1)]),t.createElementVNode("div",null,[t.createTextVNode(t.toDisplayString(m.dataPlay.playerName)+" ",1),t.createElementVNode("div",hQ,[t.createElementVNode("div",{class:"tooltip-image-player",style:t.normalizeStyle("background: url("+m.dataPlay.photo+") top")},null,4)])]),t.createElementVNode("div",null,"Minuto: "+t.toDisplayString(m.dataPlay.minute)+"'",1),t.createElementVNode("div",null,[t.createTextVNode(" Rival: "),t.createElementVNode("div",mQ,[t.createElementVNode("img",{src:m.dataPlay.rivalLogo},null,8,fQ)])]),t.createElementVNode("div",gQ,[/^[+]?([0-1]+(?:[\.][0-9]*)?|\.[0-9]+)$/.test(m.dataPlay.xGi)&&m.dataPlay.xGi<=1&&!m.dataPlay.isOwnGoal?(t.openBlock(),t.createElementBlock("div",yQ,[_Q,t.createTextVNode(" "+t.toDisplayString(Number(m.dataPlay.xGi)),1)])):t.createCommentVNode("",!0),vQ,/^[+]?([0-1]+(?:[\.][0-9]*)?|\.[0-9]+)$/.test(m.dataPlay.xGf)&&m.dataPlay.xGf<=1&&!m.dataPlay.isOwnGoal?(t.openBlock(),t.createElementBlock("div",bQ,[xQ,t.createTextVNode(" "+t.toDisplayString(Number(m.dataPlay.xGf)),1)])):t.createCommentVNode("",!0)])])]),_:1},8,["data"])])}const uC=Si(KJ,[["render",wQ],["__scopeId","data-v-f6c30694"]]),RBt="",kQ={name:"Xg",components:{SoccerChalkboard:uC},props:{},data(){return{categories:dg}},computed:{...Ol("nextGeneral",["usePastSeasonId","pastSeasonId","gameId"]),...Ol("general",["booleanIsStatisticModalOpen"]),...qi("xgGeneral",["playsLocal","goalsQtyLocal","shotsOnGoalQtyLocal","xGLocal"]),...qi("nextGeneral",["getSeasonId","homeTeam","visitingTeam","showPostMatchData"]),...qi("loginGeneral",["getPremiumAccount","getIsGolstats"]),...qi("general",["getPreviewSectionAnalytics"]),stringSelectedTeamLogo(){return this.homeTeam.logo},windowWidth(){return this.$store.state.windowWidth},gxInfoItems(){return[{title:"Goles",value:this.goalsQtyLocal},{title:"Tiros a Gol",value:this.shotsOnGoalQtyLocal},{title:"Goles esperados (xG)",value:this.xGLocal}]}},watch:{visitingTeam:{deep:!0,handler(e){e&&this.fillXgPlays()}},showPostMatchData:{handler(e,a){e!==a&&this.fillXgPlays()}}},methods:{...Nu("general",["setVideoSrc","setVideoModalVisibility"]),...Nu("xgGeneral",["setTeamSelected"]),...G1("xgGeneral",["getXgPlays"]),openXgVideo(){this.setVideoSrc(""),this.setVideoModalVisibility(!0)},getTeamId(){return this.homeTeam.team_id},fillXgPlays(){this.showPostMatchData?this.getXgPlays({seasonId:this.gameId,localTeamId:this.homeTeam.team_id,visitingTeamId:this.visitingTeam.team_id,postMatch:this.showPostMatchData}):this.getXgPlays({seasonId:this.usePastSeasonId?this.pastSeasonId:this.getSeasonId,localTeamId:this.homeTeam.team_id,visitingTeamId:this.visitingTeam.team_id})}},beforeMount(){this.fillXgPlays()}},pC=e=>(t.pushScopeId("data-v-fb5342de"),e=e(),t.popScopeId(),e),CQ={class:"xg-container"},EQ=pC(()=>t.createElementVNode("div",{class:"title"},"Goles esperados (xG)",-1)),SQ={class:"xg-container__field"},TQ={class:"xg-container__info"},AQ={class:"table"},NQ={class:"table__row"},BQ={class:"table__row__title"},IQ={class:"table__row__value"},MQ=["src"],OQ={class:"table__row"},PQ={class:"table__row__title"},FQ={class:"table__row__value"},RQ={class:"table__row"},VQ={class:"table__row__title"},zQ={class:"table__row__value"},DQ=pC(()=>t.createElementVNode("div",{class:"table-description"},[t.createElementVNode("span",null,"xG:"),t.createTextVNode(" es la medida para estimar la probabilidad de que un tiro o una jugada termine en gol, basándose en factores como la ubicación y la dificultad de la acción. ")],-1));function LQ(e,a,r,d,m,n){const s=t.resolveComponent("SoccerChalkboard");return t.openBlock(),t.createElementBlock("div",CQ,[EQ,t.createElementVNode("div",SQ,[t.createVNode(s,{plays:e.playsLocal,categories:m.categories,team:e.team},null,8,["plays","categories","team"])]),t.createElementVNode("div",TQ,[t.createElementVNode("div",AQ,[t.createElementVNode("div",NQ,[t.createElementVNode("div",BQ,t.toDisplayString(n.gxInfoItems[0].title),1),t.createElementVNode("div",IQ,[t.createTextVNode(t.toDisplayString(n.gxInfoItems[0].value),1),t.createElementVNode("img",{class:"img-abs",src:n.stringSelectedTeamLogo},null,8,MQ)])]),t.createElementVNode("div",OQ,[t.createElementVNode("div",PQ,t.toDisplayString(n.gxInfoItems[1].title),1),t.createElementVNode("div",FQ,t.toDisplayString(n.gxInfoItems[1].value),1)]),t.createElementVNode("div",RQ,[t.createElementVNode("div",VQ,t.toDisplayString(n.gxInfoItems[2].title),1),t.createElementVNode("div",zQ,t.toDisplayString(n.gxInfoItems[2].value),1)])]),DQ])])}const $Q=Si(kQ,[["render",LQ],["__scopeId","data-v-fb5342de"]]),VBt="",jQ={name:"Xg",components:{SoccerChalkboard:uC},props:{},data(){return{categories:dg}},computed:{...Ol("nextGeneral",["usePastSeasonId","pastSeasonId","gameId"]),...Ol("general",["booleanIsStatisticModalOpen"]),...qi("xgGeneral",["playsAway","goalsQtyAway","shotsOnGoalQtyAway","xGAway"]),...qi("nextGeneral",["getSeasonId","homeTeam","visitingTeam","showPostMatchData"]),...qi("loginGeneral",["getPremiumAccount","getIsGolstats"]),...qi("general",["getPreviewSectionAnalytics"]),stringSelectedTeamLogo(){return this.visitingTeam.logo},windowWidth(){return this.$store.state.windowWidth},gxInfoItems(){return[{title:"Goles",value:this.goalsQtyAway},{title:"Tiros a Gol",value:this.shotsOnGoalQtyAway},{title:"Goles esperados (xG)",value:this.xGAway}]}},watch:{visitingTeam:{deep:!0,handler(e){e&&this.fillXgPlays()}},showPostMatchData:{handler(e,a){e!==a&&this.fillXgPlays()}}},methods:{...Nu("general",["setVideoSrc","setVideoModalVisibility"]),...Nu("xgGeneral",["setTeamSelected"]),...G1("xgGeneral",["getXgPlays"]),openXgVideo(){this.setVideoSrc(""),this.setVideoModalVisibility(!0)},getTeamId(){return this.homeTeam.team_id},fillXgPlays(){this.showPostMatchData?this.getXgPlays({seasonId:this.gameId,AwayTeamId:this.homeTeam.team_id,visitingTeamId:this.visitingTeam.team_id,postMatch:this.showPostMatchData}):this.getXgPlays({seasonId:this.usePastSeasonId?this.pastSeasonId:this.getSeasonId,AwayTeamId:this.homeTeam.team_id,visitingTeamId:this.visitingTeam.team_id})}},beforeMount(){this.fillXgPlays()}},hC=e=>(t.pushScopeId("data-v-38eed9b5"),e=e(),t.popScopeId(),e),UQ={class:"xg-container"},HQ=hC(()=>t.createElementVNode("div",{class:"title"},"Goles esperados (xG)",-1)),GQ={class:"xg-container__field"},WQ={class:"xg-container__info"},qQ={class:"table"},YQ={class:"table__row"},ZQ={class:"table__row__title"},XQ={class:"table__row__value"},KQ=["src"],JQ={class:"table__row"},QQ={class:"table__row__title"},eee={class:"table__row__value"},tee={class:"table__row"},aee={class:"table__row__title"},ree={class:"table__row__value"},nee=hC(()=>t.createElementVNode("div",{class:"table-description"},[t.createElementVNode("span",null,"xG:"),t.createTextVNode(" es la medida para estimar la probabilidad de que un tiro o una jugada termine en gol, basándose en factores como la ubicación y la dificultad de la acción. ")],-1));function iee(e,a,r,d,m,n){const s=t.resolveComponent("SoccerChalkboard");return t.openBlock(),t.createElementBlock("div",UQ,[HQ,t.createElementVNode("div",GQ,[t.createVNode(s,{plays:e.playsAway,categories:m.categories,team:e.team},null,8,["plays","categories","team"])]),t.createElementVNode("div",WQ,[t.createElementVNode("div",qQ,[t.createElementVNode("div",YQ,[t.createElementVNode("div",ZQ,t.toDisplayString(n.gxInfoItems[0].title),1),t.createElementVNode("div",XQ,[t.createTextVNode(t.toDisplayString(n.gxInfoItems[0].value),1),t.createElementVNode("img",{class:"img-abs",src:n.stringSelectedTeamLogo},null,8,KQ)])]),t.createElementVNode("div",JQ,[t.createElementVNode("div",QQ,t.toDisplayString(n.gxInfoItems[1].title),1),t.createElementVNode("div",eee,t.toDisplayString(n.gxInfoItems[1].value),1)]),t.createElementVNode("div",tee,[t.createElementVNode("div",aee,t.toDisplayString(n.gxInfoItems[2].title),1),t.createElementVNode("div",ree,t.toDisplayString(n.gxInfoItems[2].value),1)])]),nee])])}const oee=Si(jQ,[["render",iee],["__scopeId","data-v-38eed9b5"]]),zBt="";let mC=null;const see={name:"XgMain",components:{GSCSwitchRadio:zK,SoccerChalkboardLocal:IJ,SoccerChalkboardAway:XJ,SoccerChalkboardLocalMobile:$Q,SoccerChalkboardAwayMobile:oee},props:{game:{type:Number,default:0}},data(){return{gamesContainerWidth:0,teamSelect:"local",teamDefault:""}},computed:{...qi("nextGeneral",["homeTeam","visitingTeam"])},watch:{},methods:{onChangeTeam(e){e instanceof Object||(this.teamSelect=e),this.teamDefault=e},setUpResizeObserver(){if(window.ResizeObserver)mC=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<680?this.movil=!0:this.movil=!1}),mC.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},mounted(){this.teamSelect=this.homeTeam.colloquial_name,this.teamLocal=this.homeTeam.colloquial_name,setTimeout(()=>{this.setUpResizeObserver()},100)},updated(){this.teamSelect!=this.homeTeam.colloquial_name&&this.teamSelect!=this.visitingTeam.colloquial_name&&(this.teamSelect=this.homeTeam.colloquial_name,this.onChangeTeam(this.teamSelect))}},lee={class:"xg",ref:"gamesContainer"},cee={key:0,class:"selector-team"};function dee(e,a,r,d,m,n){const s=t.resolveComponent("GSCSwitchRadio"),i=t.resolveComponent("SoccerChalkboardLocal"),_=t.resolveComponent("SoccerChalkboardAway"),f=t.resolveComponent("SoccerChalkboardLocalMobile"),o=t.resolveComponent("SoccerChalkboardAwayMobile");return t.openBlock(),t.createElementBlock("div",lee,[m.gamesContainerWidth<655?(t.openBlock(),t.createElementBlock("div",cee,[t.createVNode(s,{width:"42px",height:"20px",heightCircle:"16px",widthCircle:"16px","circle-color-switch":"#cbee6b",valueDefault:m.teamDefault,"text-option-left":e.homeTeam.colloquial_name,"text-option-right":e.visitingTeam.colloquial_name,"font-color":"white","hidden-labels":!1,"icon-a":e.homeTeam.logo,"icon-b":e.visitingTeam.logo,onChange:n.onChangeTeam},null,8,["valueDefault","text-option-left","text-option-right","icon-a","icon-b","onChange"])])):t.createCommentVNode("",!0),m.gamesContainerWidth>=655?(t.openBlock(),t.createBlock(i,{key:1,class:"local"})):t.createCommentVNode("",!0),m.gamesContainerWidth>=655?(t.openBlock(),t.createBlock(_,{key:2,class:"away"})):t.createCommentVNode("",!0),m.gamesContainerWidth<655&&m.teamSelect==e.homeTeam.colloquial_name?(t.openBlock(),t.createBlock(f,{key:3})):t.createCommentVNode("",!0),m.gamesContainerWidth<655&&m.teamSelect==e.visitingTeam.colloquial_name?(t.openBlock(),t.createBlock(o,{key:4})):t.createCommentVNode("",!0)],512)}const uee=Si(see,[["render",dee],["__scopeId","data-v-20bd873f"]]),DBt="",pee={class:"statistics-main"},hee={class:"statistics-main__header"},mee={class:"statistics-main__header__filter"},fee=t.defineComponent({name:"TemplateVideos",components:{TrendLive:EY,Comparative:bK,Distribution:BK,GSCSlider:Jb,XG:uee}}),gee=Si(Object.assign(fee,{props:{game:{type:Object,default:()=>({gameId:79623,seasonId:1772,status:1,dateTimeUTC:"2023-10-01T22:20:00Z",homeTeam:{logo:"https://az755631.vo.msecnd.net/teams-80/18.png",team_id:10,provisional_logo:"https://az755631.vo.msecnd.net/teams-provisional/18.png",colloquial_name:"Toluca",acronym:"TOL",team_name:"Toluca"},awayTeam:{logo:"https://az755631.vo.msecnd.net/teams-80/1.png",team_id:1,provisional_logo:"https://az755631.vo.msecnd.net/teams-provisional/1.png",colloquial_name:"Chivas",acronym:"CHI",team_name:"Guadalajara"}})},subsection:{type:String,default:""},seasonSelected:{type:Object,default:()=>({})},canPlayVideos:{type:Boolean,default:!0},playVideosPrivileges:{type:Object,default:null}},emits:["openmedia"],setup(e,{emit:a}){const r=e,d=j1(),m=t.ref({width:"fit-content",height:"30px",borderRadius:"50px",borderColor:"#8a8a8a",borderWidth:"0.5px",backgroundColor:"rgba(255, 255, 255, 0.04)",fontSize:"14px",fontFamily:"Poppins-Regular, sans-serif",fontColor:"rgba(255, 255, 255, 0.5)",activeFontColor:"#FFFFFF",activeBorderColor:"#cbee6b",padding:"0 16px"}),n=t.ref({}),s=t.ref(null),i=t.ref([{id:"st1",name:"Comparativa",componentName:"Comparative"},{id:"st2",name:"Distribución",componentName:"Distribution"},{id:"st3",name:"Tendencia LIVE",componentName:"TrendLive"},{id:"st4",name:"Goles esperados (xG)",componentName:"XG"}]);let _=t.ref(i.value[0]),f=t.ref(0);t.watch(()=>r.game,l=>{const u={...l};o(u),f.value++},{deep:!0,immediate:!0});async function o(l){try{n.value.gameId!==l.gameId&&(n.value=l,await d.dispatch("nextGeneral/cleanStats"),await d.dispatch("nextGeneral/checkState",{gameId:l.gameId,currentSeasonId:l.seasonId,isTeamsAnalysis:!0,defaultFilter:s.value,gameInfo:l}))}catch(u){throw new Error(u)}}function g(l){_.value=l}function x(){d.commit("nextGeneral/updateFilters",{filters:{local:{playingAs:[1,2],statistics:{},matchResult:[1,2,3],firstHalf:[1,2,3],secondHalf:[4,5,6]},visit:{playingAs:[1,2],statistics:{},matchResult:[1,2,3],firstHalf:[1,2,3],secondHalf:[4,5,6]}},needsFormat:!0})}function c(l){a("openmedia",l)}return t.onUnmounted(()=>{a("resetSubsection")}),t.onMounted(()=>{r.subsection==="Comparativa"&&(_.value.id="st1",_.value.name="Comparativa",_.value.componentName="Comparative")}),x(),(l,u)=>(t.openBlock(),t.createElementBlock("div",pee,[t.createElementVNode("div",hee,[t.createVNode(t.unref(Jb),{backgroundColor:"none",arrows:!1},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i.value,p=>(t.openBlock(),t.createElementBlock("div",{key:p.id,class:"game-time-line__options__option"},[t.createVNode(c9,t.mergeProps(m.value,{text:p.name,"is-active":t.unref(_).id===p.id,onClick:h=>g(p)}),null,16,["text","is-active","onClick"])]))),128))]),_:1}),t.withDirectives(t.createElementVNode("div",mee,[t.createVNode(Mq)],512),[[t.vShow,!1]])]),(t.openBlock(),t.createElementBlock("div",{class:"statistics-main__body",key:t.unref(f)},[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(t.unref(_).componentName),{seasonSelected:{...e.seasonSelected},game:{...e.game},"tournament-type":t.unref(d).getters["gameGlobal/getTournamentType"],"can-play-videos":e.canPlayVideos,"play-videos-privileges":e.playVideosPrivileges,onOpenmedia:c},null,40,["seasonSelected","game","tournament-type","can-play-videos","play-videos-privileges"]))]))]))}}),[["__scopeId","data-v-02c2f77c"]]);function fC(e,a){return function(){return e.apply(a,arguments)}}const{toString:yee}=Object.prototype,{getPrototypeOf:e3}=Object,ug=(e=>a=>{const r=yee.call(a);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),fd=e=>(e=e.toLowerCase(),a=>ug(a)===e),pg=e=>a=>typeof a===e,{isArray:uh}=Array,Jm=pg("undefined");function _ee(e){return e!==null&&!Jm(e)&&e.constructor!==null&&!Jm(e.constructor)&&ec(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const gC=fd("ArrayBuffer");function vee(e){let a;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?a=ArrayBuffer.isView(e):a=e&&e.buffer&&gC(e.buffer),a}const bee=pg("string"),ec=pg("function"),yC=pg("number"),hg=e=>e!==null&&typeof e=="object",xee=e=>e===!0||e===!1,mg=e=>{if(ug(e)!=="object")return!1;const a=e3(e);return(a===null||a===Object.prototype||Object.getPrototypeOf(a)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},wee=fd("Date"),kee=fd("File"),Cee=fd("Blob"),Eee=fd("FileList"),See=e=>hg(e)&&ec(e.pipe),Tee=e=>{let a;return e&&(typeof FormData=="function"&&e instanceof FormData||ec(e.append)&&((a=ug(e))==="formdata"||a==="object"&&ec(e.toString)&&e.toString()==="[object FormData]"))},Aee=fd("URLSearchParams"),Nee=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Qm(e,a,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let d,m;if(typeof e!="object"&&(e=[e]),uh(e))for(d=0,m=e.length;d<m;d++)a.call(null,e[d],d,e);else{const n=r?Object.getOwnPropertyNames(e):Object.keys(e),s=n.length;let i;for(d=0;d<s;d++)i=n[d],a.call(null,e[i],i,e)}}function _C(e,a){a=a.toLowerCase();const r=Object.keys(e);let d=r.length,m;for(;d-- >0;)if(m=r[d],a===m.toLowerCase())return m;return null}const vC=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),bC=e=>!Jm(e)&&e!==vC;function t3(){const{caseless:e}=bC(this)&&this||{},a={},r=(d,m)=>{const n=e&&_C(a,m)||m;mg(a[n])&&mg(d)?a[n]=t3(a[n],d):mg(d)?a[n]=t3({},d):uh(d)?a[n]=d.slice():a[n]=d};for(let d=0,m=arguments.length;d<m;d++)arguments[d]&&Qm(arguments[d],r);return a}const Bee=(e,a,r,{allOwnKeys:d}={})=>(Qm(a,(m,n)=>{r&&ec(m)?e[n]=fC(m,r):e[n]=m},{allOwnKeys:d}),e),Iee=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Mee=(e,a,r,d)=>{e.prototype=Object.create(a.prototype,d),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:a.prototype}),r&&Object.assign(e.prototype,r)},Oee=(e,a,r,d)=>{let m,n,s;const i={};if(a=a||{},e==null)return a;do{for(m=Object.getOwnPropertyNames(e),n=m.length;n-- >0;)s=m[n],(!d||d(s,e,a))&&!i[s]&&(a[s]=e[s],i[s]=!0);e=r!==!1&&e3(e)}while(e&&(!r||r(e,a))&&e!==Object.prototype);return a},Pee=(e,a,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=a.length;const d=e.indexOf(a,r);return d!==-1&&d===r},Fee=e=>{if(!e)return null;if(uh(e))return e;let a=e.length;if(!yC(a))return null;const r=new Array(a);for(;a-- >0;)r[a]=e[a];return r},Ree=(e=>a=>e&&a instanceof e)(typeof Uint8Array<"u"&&e3(Uint8Array)),Vee=(e,a)=>{const r=(e&&e[Symbol.iterator]).call(e);let d;for(;(d=r.next())&&!d.done;){const m=d.value;a.call(e,m[0],m[1])}},zee=(e,a)=>{let r;const d=[];for(;(r=e.exec(a))!==null;)d.push(r);return d},Dee=fd("HTMLFormElement"),Lee=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(a,r,d){return r.toUpperCase()+d}),xC=(({hasOwnProperty:e})=>(a,r)=>e.call(a,r))(Object.prototype),$ee=fd("RegExp"),wC=(e,a)=>{const r=Object.getOwnPropertyDescriptors(e),d={};Qm(r,(m,n)=>{let s;(s=a(m,n,e))!==!1&&(d[n]=s||m)}),Object.defineProperties(e,d)},jee=e=>{wC(e,(a,r)=>{if(ec(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const d=e[r];if(ec(d)){if(a.enumerable=!1,"writable"in a){a.writable=!1;return}a.set||(a.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},Uee=(e,a)=>{const r={},d=m=>{m.forEach(n=>{r[n]=!0})};return uh(e)?d(e):d(String(e).split(a)),r},Hee=()=>{},Gee=(e,a)=>(e=+e,Number.isFinite(e)?e:a),a3="abcdefghijklmnopqrstuvwxyz",kC="0123456789",CC={DIGIT:kC,ALPHA:a3,ALPHA_DIGIT:a3+a3.toUpperCase()+kC},Wee=(e=16,a=CC.ALPHA_DIGIT)=>{let r="";const{length:d}=a;for(;e--;)r+=a[Math.random()*d|0];return r};function qee(e){return!!(e&&ec(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Yee=e=>{const a=new Array(10),r=(d,m)=>{if(hg(d)){if(a.indexOf(d)>=0)return;if(!("toJSON"in d)){a[m]=d;const n=uh(d)?[]:{};return Qm(d,(s,i)=>{const _=r(s,m+1);!Jm(_)&&(n[i]=_)}),a[m]=void 0,n}}return d};return r(e,0)},Zee=fd("AsyncFunction"),Xee=e=>e&&(hg(e)||ec(e))&&ec(e.then)&&ec(e.catch),_r={isArray:uh,isArrayBuffer:gC,isBuffer:_ee,isFormData:Tee,isArrayBufferView:vee,isString:bee,isNumber:yC,isBoolean:xee,isObject:hg,isPlainObject:mg,isUndefined:Jm,isDate:wee,isFile:kee,isBlob:Cee,isRegExp:$ee,isFunction:ec,isStream:See,isURLSearchParams:Aee,isTypedArray:Ree,isFileList:Eee,forEach:Qm,merge:t3,extend:Bee,trim:Nee,stripBOM:Iee,inherits:Mee,toFlatObject:Oee,kindOf:ug,kindOfTest:fd,endsWith:Pee,toArray:Fee,forEachEntry:Vee,matchAll:zee,isHTMLForm:Dee,hasOwnProperty:xC,hasOwnProp:xC,reduceDescriptors:wC,freezeMethods:jee,toObjectSet:Uee,toCamelCase:Lee,noop:Hee,toFiniteNumber:Gee,findKey:_C,global:vC,isContextDefined:bC,ALPHABET:CC,generateString:Wee,isSpecCompliantForm:qee,toJSONObject:Yee,isAsyncFn:Zee,isThenable:Xee};function zn(e,a,r,d,m){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",a&&(this.code=a),r&&(this.config=r),d&&(this.request=d),m&&(this.response=m)}_r.inherits(zn,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:_r.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const EC=zn.prototype,SC={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{SC[e]={value:e}}),Object.defineProperties(zn,SC),Object.defineProperty(EC,"isAxiosError",{value:!0}),zn.from=(e,a,r,d,m,n)=>{const s=Object.create(EC);return _r.toFlatObject(e,s,function(i){return i!==Error.prototype},i=>i!=="isAxiosError"),zn.call(s,e.message,a,r,d,m),s.cause=e,s.name=e.name,n&&Object.assign(s,n),s};const Kee=null;function r3(e){return _r.isPlainObject(e)||_r.isArray(e)}function TC(e){return _r.endsWith(e,"[]")?e.slice(0,-2):e}function AC(e,a,r){return e?e.concat(a).map(function(d,m){return d=TC(d),!r&&m?"["+d+"]":d}).join(r?".":""):a}function Jee(e){return _r.isArray(e)&&!e.some(r3)}const Qee=_r.toFlatObject(_r,{},null,function(e){return/^is[A-Z]/.test(e)});function fg(e,a,r){if(!_r.isObject(e))throw new TypeError("target must be an object");a=a||new FormData,r=_r.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(c,l){return!_r.isUndefined(l[c])});const d=r.metaTokens,m=r.visitor||f,n=r.dots,s=r.indexes,i=(r.Blob||typeof Blob<"u"&&Blob)&&_r.isSpecCompliantForm(a);if(!_r.isFunction(m))throw new TypeError("visitor must be a function");function _(c){if(c===null)return"";if(_r.isDate(c))return c.toISOString();if(!i&&_r.isBlob(c))throw new zn("Blob is not supported. Use a Buffer instead.");return _r.isArrayBuffer(c)||_r.isTypedArray(c)?i&&typeof Blob=="function"?new Blob([c]):Buffer.from(c):c}function f(c,l,u){let p=c;if(c&&!u&&typeof c=="object"){if(_r.endsWith(l,"{}"))l=d?l:l.slice(0,-2),c=JSON.stringify(c);else if(_r.isArray(c)&&Jee(c)||(_r.isFileList(c)||_r.endsWith(l,"[]"))&&(p=_r.toArray(c)))return l=TC(l),p.forEach(function(h,y){!(_r.isUndefined(h)||h===null)&&a.append(s===!0?AC([l],y,n):s===null?l:l+"[]",_(h))}),!1}return r3(c)?!0:(a.append(AC(u,l,n),_(c)),!1)}const o=[],g=Object.assign(Qee,{defaultVisitor:f,convertValue:_,isVisitable:r3});function x(c,l){if(!_r.isUndefined(c)){if(o.indexOf(c)!==-1)throw Error("Circular reference detected in "+l.join("."));o.push(c),_r.forEach(c,function(u,p){(!(_r.isUndefined(u)||u===null)&&m.call(a,u,_r.isString(p)?p.trim():p,l,g))===!0&&x(u,l?l.concat(p):[p])}),o.pop()}}if(!_r.isObject(e))throw new TypeError("data must be an object");return x(e),a}function NC(e){const a={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return a[r]})}function n3(e,a){this._pairs=[],e&&fg(e,this,a)}const BC=n3.prototype;BC.append=function(e,a){this._pairs.push([e,a])},BC.toString=function(e){const a=e?function(r){return e.call(this,r,NC)}:NC;return this._pairs.map(function(r){return a(r[0])+"="+a(r[1])},"").join("&")};function ete(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function IC(e,a,r){if(!a)return e;const d=r&&r.encode||ete,m=r&&r.serialize;let n;if(m?n=m(a,r):n=_r.isURLSearchParams(a)?a.toString():new n3(a,r).toString(d),n){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+n}return e}const MC=class{constructor(){this.handlers=[]}use(a,r,d){return this.handlers.push({fulfilled:a,rejected:r,synchronous:d?d.synchronous:!1,runWhen:d?d.runWhen:null}),this.handlers.length-1}eject(a){this.handlers[a]&&(this.handlers[a]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(a){_r.forEach(this.handlers,function(r){r!==null&&a(r)})}},OC={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},tte=typeof URLSearchParams<"u"?URLSearchParams:n3,ate=typeof FormData<"u"?FormData:null,rte=typeof Blob<"u"?Blob:null,nte={isBrowser:!0,classes:{URLSearchParams:tte,FormData:ate,Blob:rte},protocols:["http","https","file","blob","url","data"]},PC=typeof window<"u"&&typeof document<"u",ite=(e=>PC&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),ote=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),ste=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:PC,hasStandardBrowserEnv:ite,hasStandardBrowserWebWorkerEnv:ote},Symbol.toStringTag,{value:"Module"})),gd={...ste,...nte};function lte(e,a){return fg(e,new gd.classes.URLSearchParams,Object.assign({visitor:function(r,d,m,n){return gd.isNode&&_r.isBuffer(r)?(this.append(d,r.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)}},a))}function cte(e){return _r.matchAll(/\w+|\[(\w*)]/g,e).map(a=>a[0]==="[]"?"":a[1]||a[0])}function dte(e){const a={},r=Object.keys(e);let d;const m=r.length;let n;for(d=0;d<m;d++)n=r[d],a[n]=e[n];return a}function FC(e){function a(r,d,m,n){let s=r[n++];if(s==="__proto__")return!0;const i=Number.isFinite(+s),_=n>=r.length;return s=!s&&_r.isArray(m)?m.length:s,_?(_r.hasOwnProp(m,s)?m[s]=[m[s],d]:m[s]=d,!i):((!m[s]||!_r.isObject(m[s]))&&(m[s]=[]),a(r,d,m[s],n)&&_r.isArray(m[s])&&(m[s]=dte(m[s])),!i)}if(_r.isFormData(e)&&_r.isFunction(e.entries)){const r={};return _r.forEachEntry(e,(d,m)=>{a(cte(d),m,r,0)}),r}return null}function ute(e,a,r){if(_r.isString(e))try{return(a||JSON.parse)(e),_r.trim(e)}catch(d){if(d.name!=="SyntaxError")throw d}return(r||JSON.stringify)(e)}const i3={transitional:OC,adapter:["xhr","http"],transformRequest:[function(e,a){const r=a.getContentType()||"",d=r.indexOf("application/json")>-1,m=_r.isObject(e);if(m&&_r.isHTMLForm(e)&&(e=new FormData(e)),_r.isFormData(e))return d?JSON.stringify(FC(e)):e;if(_r.isArrayBuffer(e)||_r.isBuffer(e)||_r.isStream(e)||_r.isFile(e)||_r.isBlob(e))return e;if(_r.isArrayBufferView(e))return e.buffer;if(_r.isURLSearchParams(e))return a.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let n;if(m){if(r.indexOf("application/x-www-form-urlencoded")>-1)return lte(e,this.formSerializer).toString();if((n=_r.isFileList(e))||r.indexOf("multipart/form-data")>-1){const s=this.env&&this.env.FormData;return fg(n?{"files[]":e}:e,s&&new s,this.formSerializer)}}return m||d?(a.setContentType("application/json",!1),ute(e)):e}],transformResponse:[function(e){const a=this.transitional||i3.transitional,r=a&&a.forcedJSONParsing,d=this.responseType==="json";if(e&&_r.isString(e)&&(r&&!this.responseType||d)){const m=!(a&&a.silentJSONParsing)&&d;try{return JSON.parse(e)}catch(n){if(m)throw n.name==="SyntaxError"?zn.from(n,zn.ERR_BAD_RESPONSE,this,null,this.response):n}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:gd.classes.FormData,Blob:gd.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};_r.forEach(["delete","get","head","post","put","patch"],e=>{i3.headers[e]={}});const o3=i3,pte=_r.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),hte=e=>{const a={};let r,d,m;return e&&e.split(`
|
|
34
34
|
`).forEach(function(n){m=n.indexOf(":"),r=n.substring(0,m).trim().toLowerCase(),d=n.substring(m+1).trim(),!(!r||a[r]&&pte[r])&&(r==="set-cookie"?a[r]?a[r].push(d):a[r]=[d]:a[r]=a[r]?a[r]+", "+d:d)}),a},RC=Symbol("internals");function ef(e){return e&&String(e).trim().toLowerCase()}function gg(e){return e===!1||e==null?e:_r.isArray(e)?e.map(gg):String(e)}function mte(e){const a=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let d;for(;d=r.exec(e);)a[d[1]]=d[2];return a}const fte=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function s3(e,a,r,d,m){if(_r.isFunction(d))return d.call(this,a,r);if(m&&(a=r),!!_r.isString(a)){if(_r.isString(d))return a.indexOf(d)!==-1;if(_r.isRegExp(d))return d.test(a)}}function gte(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(a,r,d)=>r.toUpperCase()+d)}function yte(e,a){const r=_r.toCamelCase(" "+a);["get","set","has"].forEach(d=>{Object.defineProperty(e,d+r,{value:function(m,n,s){return this[d].call(this,a,m,n,s)},configurable:!0})})}let yg=class{constructor(a){a&&this.set(a)}set(a,r,d){const m=this;function n(i,_,f){const o=ef(_);if(!o)throw new Error("header name must be a non-empty string");const g=_r.findKey(m,o);(!g||m[g]===void 0||f===!0||f===void 0&&m[g]!==!1)&&(m[g||_]=gg(i))}const s=(i,_)=>_r.forEach(i,(f,o)=>n(f,o,_));return _r.isPlainObject(a)||a instanceof this.constructor?s(a,r):_r.isString(a)&&(a=a.trim())&&!fte(a)?s(hte(a),r):a!=null&&n(r,a,d),this}get(a,r){if(a=ef(a),a){const d=_r.findKey(this,a);if(d){const m=this[d];if(!r)return m;if(r===!0)return mte(m);if(_r.isFunction(r))return r.call(this,m,d);if(_r.isRegExp(r))return r.exec(m);throw new TypeError("parser must be boolean|regexp|function")}}}has(a,r){if(a=ef(a),a){const d=_r.findKey(this,a);return!!(d&&this[d]!==void 0&&(!r||s3(this,this[d],d,r)))}return!1}delete(a,r){const d=this;let m=!1;function n(s){if(s=ef(s),s){const i=_r.findKey(d,s);i&&(!r||s3(d,d[i],i,r))&&(delete d[i],m=!0)}}return _r.isArray(a)?a.forEach(n):n(a),m}clear(a){const r=Object.keys(this);let d=r.length,m=!1;for(;d--;){const n=r[d];(!a||s3(this,this[n],n,a,!0))&&(delete this[n],m=!0)}return m}normalize(a){const r=this,d={};return _r.forEach(this,(m,n)=>{const s=_r.findKey(d,n);if(s){r[s]=gg(m),delete r[n];return}const i=a?gte(n):String(n).trim();i!==n&&delete r[n],r[i]=gg(m),d[i]=!0}),this}concat(...a){return this.constructor.concat(this,...a)}toJSON(a){const r=Object.create(null);return _r.forEach(this,(d,m)=>{d!=null&&d!==!1&&(r[m]=a&&_r.isArray(d)?d.join(", "):d)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([a,r])=>a+": "+r).join(`
|
|
35
35
|
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(a){return a instanceof this?a:new this(a)}static concat(a,...r){const d=new this(a);return r.forEach(m=>d.set(m)),d}static accessor(a){const r=(this[RC]=this[RC]={accessors:{}}).accessors,d=this.prototype;function m(n){const s=ef(n);r[s]||(yte(d,n),r[s]=!0)}return _r.isArray(a)?a.forEach(m):m(a),this}};yg.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),_r.reduceDescriptors(yg.prototype,({value:e},a)=>{let r=a[0].toUpperCase()+a.slice(1);return{get:()=>e,set(d){this[r]=d}}}),_r.freezeMethods(yg);const nu=yg;function l3(e,a){const r=this||o3,d=a||r,m=nu.from(d.headers);let n=d.data;return _r.forEach(e,function(s){n=s.call(r,n,m.normalize(),a?a.status:void 0)}),m.normalize(),n}function VC(e){return!!(e&&e.__CANCEL__)}function tf(e,a,r){zn.call(this,e??"canceled",zn.ERR_CANCELED,a,r),this.name="CanceledError"}_r.inherits(tf,zn,{__CANCEL__:!0});function _te(e,a,r){const d=r.config.validateStatus;!r.status||!d||d(r.status)?e(r):a(new zn("Request failed with status code "+r.status,[zn.ERR_BAD_REQUEST,zn.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}const vte=gd.hasStandardBrowserEnv?{write(e,a,r,d,m,n){const s=[e+"="+encodeURIComponent(a)];_r.isNumber(r)&&s.push("expires="+new Date(r).toGMTString()),_r.isString(d)&&s.push("path="+d),_r.isString(m)&&s.push("domain="+m),n===!0&&s.push("secure"),document.cookie=s.join("; ")},read(e){const a=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return a?decodeURIComponent(a[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function bte(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function xte(e,a){return a?e.replace(/\/?\/$/,"")+"/"+a.replace(/^\/+/,""):e}function zC(e,a){return e&&!bte(a)?xte(e,a):a}const wte=gd.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),a=document.createElement("a");let r;function d(m){let n=m;return e&&(a.setAttribute("href",n),n=a.href),a.setAttribute("href",n),{href:a.href,protocol:a.protocol?a.protocol.replace(/:$/,""):"",host:a.host,search:a.search?a.search.replace(/^\?/,""):"",hash:a.hash?a.hash.replace(/^#/,""):"",hostname:a.hostname,port:a.port,pathname:a.pathname.charAt(0)==="/"?a.pathname:"/"+a.pathname}}return r=d(window.location.href),function(m){const n=_r.isString(m)?d(m):m;return n.protocol===r.protocol&&n.host===r.host}}():function(){return function(){return!0}}();function kte(e){const a=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return a&&a[1]||""}function Cte(e,a){e=e||10;const r=new Array(e),d=new Array(e);let m=0,n=0,s;return a=a!==void 0?a:1e3,function(i){const _=Date.now(),f=d[n];s||(s=_),r[m]=i,d[m]=_;let o=n,g=0;for(;o!==m;)g+=r[o++],o=o%e;if(m=(m+1)%e,m===n&&(n=(n+1)%e),_-s<a)return;const x=f&&_-f;return x?Math.round(g*1e3/x):void 0}}function DC(e,a){let r=0;const d=Cte(50,250);return m=>{const n=m.loaded,s=m.lengthComputable?m.total:void 0,i=n-r,_=d(i),f=n<=s;r=n;const o={loaded:n,total:s,progress:s?n/s:void 0,bytes:i,rate:_||void 0,estimated:_&&s&&f?(s-n)/_:void 0,event:m};o[a?"download":"upload"]=!0,e(o)}}const Ete=typeof XMLHttpRequest<"u",Ste=Ete&&function(e){return new Promise(function(a,r){let d=e.data;const m=nu.from(e.headers).normalize();let{responseType:n,withXSRFToken:s}=e,i;function _(){e.cancelToken&&e.cancelToken.unsubscribe(i),e.signal&&e.signal.removeEventListener("abort",i)}let f;if(_r.isFormData(d)){if(gd.hasStandardBrowserEnv||gd.hasStandardBrowserWebWorkerEnv)m.setContentType(!1);else if((f=m.getContentType())!==!1){const[l,...u]=f?f.split(";").map(p=>p.trim()).filter(Boolean):[];m.setContentType([l||"multipart/form-data",...u].join("; "))}}let o=new XMLHttpRequest;if(e.auth){const l=e.auth.username||"",u=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";m.set("Authorization","Basic "+btoa(l+":"+u))}const g=zC(e.baseURL,e.url);o.open(e.method.toUpperCase(),IC(g,e.params,e.paramsSerializer),!0),o.timeout=e.timeout;function x(){if(!o)return;const l=nu.from("getAllResponseHeaders"in o&&o.getAllResponseHeaders()),u={data:!n||n==="text"||n==="json"?o.responseText:o.response,status:o.status,statusText:o.statusText,headers:l,config:e,request:o};_te(function(p){a(p),_()},function(p){r(p),_()},u),o=null}if("onloadend"in o?o.onloadend=x:o.onreadystatechange=function(){!o||o.readyState!==4||o.status===0&&!(o.responseURL&&o.responseURL.indexOf("file:")===0)||setTimeout(x)},o.onabort=function(){o&&(r(new zn("Request aborted",zn.ECONNABORTED,e,o)),o=null)},o.onerror=function(){r(new zn("Network Error",zn.ERR_NETWORK,e,o)),o=null},o.ontimeout=function(){let l=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const u=e.transitional||OC;e.timeoutErrorMessage&&(l=e.timeoutErrorMessage),r(new zn(l,u.clarifyTimeoutError?zn.ETIMEDOUT:zn.ECONNABORTED,e,o)),o=null},gd.hasStandardBrowserEnv&&(s&&_r.isFunction(s)&&(s=s(e)),s||s!==!1&&wte(g))){const l=e.xsrfHeaderName&&e.xsrfCookieName&&vte.read(e.xsrfCookieName);l&&m.set(e.xsrfHeaderName,l)}d===void 0&&m.setContentType(null),"setRequestHeader"in o&&_r.forEach(m.toJSON(),function(l,u){o.setRequestHeader(u,l)}),_r.isUndefined(e.withCredentials)||(o.withCredentials=!!e.withCredentials),n&&n!=="json"&&(o.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&o.addEventListener("progress",DC(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&o.upload&&o.upload.addEventListener("progress",DC(e.onUploadProgress)),(e.cancelToken||e.signal)&&(i=l=>{o&&(r(!l||l.type?new tf(null,e,o):l),o.abort(),o=null)},e.cancelToken&&e.cancelToken.subscribe(i),e.signal&&(e.signal.aborted?i():e.signal.addEventListener("abort",i)));const c=kte(g);if(c&&gd.protocols.indexOf(c)===-1){r(new zn("Unsupported protocol "+c+":",zn.ERR_BAD_REQUEST,e));return}o.send(d||null)})},c3={http:Kee,xhr:Ste};_r.forEach(c3,(e,a)=>{if(e){try{Object.defineProperty(e,"name",{value:a})}catch{}Object.defineProperty(e,"adapterName",{value:a})}});const LC=e=>`- ${e}`,Tte=e=>_r.isFunction(e)||e===null||e===!1,$C={getAdapter:e=>{e=_r.isArray(e)?e:[e];const{length:a}=e;let r,d;const m={};for(let n=0;n<a;n++){r=e[n];let s;if(d=r,!Tte(r)&&(d=c3[(s=String(r)).toLowerCase()],d===void 0))throw new zn(`Unknown adapter '${s}'`);if(d)break;m[s||"#"+n]=d}if(!d){const n=Object.entries(m).map(([i,_])=>`adapter ${i} `+(_===!1?"is not supported by the environment":"is not available in the build"));let s=a?n.length>1?`since :
|
|
36
36
|
`+n.map(LC).join(`
|
|
@@ -13136,7 +13136,7 @@ const prt = { class: "statistics-main" }, frt = { class: "statistics-main__heade
|
|
|
13136
13136
|
(yt(), Va(a2(tr(y).componentName), {
|
|
13137
13137
|
seasonSelected: { ...t.seasonSelected },
|
|
13138
13138
|
game: { ...t.game },
|
|
13139
|
-
"tournament-type": tr(c).getters["
|
|
13139
|
+
"tournament-type": tr(c).getters["gameGlobal/getTournamentType"],
|
|
13140
13140
|
"can-play-videos": t.canPlayVideos,
|
|
13141
13141
|
"play-videos-privileges": t.playVideosPrivileges,
|
|
13142
13142
|
onOpenmedia: l
|
|
@@ -13144,7 +13144,7 @@ const prt = { class: "statistics-main" }, frt = { class: "statistics-main__heade
|
|
|
13144
13144
|
]))
|
|
13145
13145
|
]));
|
|
13146
13146
|
}
|
|
13147
|
-
}), vrt = /* @__PURE__ */ eo(yrt, [["__scopeId", "data-v-
|
|
13147
|
+
}), vrt = /* @__PURE__ */ eo(yrt, [["__scopeId", "data-v-02c2f77c"]]);
|
|
13148
13148
|
function XR(t, e) {
|
|
13149
13149
|
return function() {
|
|
13150
13150
|
return t.apply(e, arguments);
|
|
@@ -85418,11 +85418,11 @@ const G1e = { class: "dropdown" }, W1e = { class: "selected-item" }, q1e = {
|
|
|
85418
85418
|
},
|
|
85419
85419
|
setup(t) {
|
|
85420
85420
|
const e = t, a = M3(
|
|
85421
|
-
() => import("./FilterSubcategories-a7b96423-Bs67-HFD-
|
|
85421
|
+
() => import("./FilterSubcategories-a7b96423-Bs67-HFD-5b906403.js")
|
|
85422
85422
|
), c = M3(
|
|
85423
|
-
() => import("./FilterConditions-dc6b25de-CdawgDTp-
|
|
85423
|
+
() => import("./FilterConditions-dc6b25de-CdawgDTp-b327df6e.js")
|
|
85424
85424
|
), p = M3(
|
|
85425
|
-
() => import("./FilterField-37ad154d-PFd8HpMJ-
|
|
85425
|
+
() => import("./FilterField-37ad154d-PFd8HpMJ-79454e02.js")
|
|
85426
85426
|
), r = [
|
|
85427
85427
|
{
|
|
85428
85428
|
name: "Sub categorías",
|