@golstats/gsc-game-data 1.0.324-optimized-v2 → 1.0.325-alpha.0

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.
Files changed (88) hide show
  1. package/dist/field-green-posesion.png +0 -0
  2. package/dist/fonts/BebasNeue-Bold.otf +0 -0
  3. package/dist/fonts/BebasNeue-Bold.ttf +0 -0
  4. package/dist/fonts/BebasNeue-Bold.woff2 +0 -0
  5. package/dist/fonts/BebasNeue-Book.otf +0 -0
  6. package/dist/fonts/BebasNeue-Book.ttf +0 -0
  7. package/dist/fonts/BebasNeue-Book.woff2 +0 -0
  8. package/dist/fonts/BebasNeue-Light.otf +0 -0
  9. package/dist/fonts/BebasNeue-Light.ttf +0 -0
  10. package/dist/fonts/BebasNeue-Light.woff2 +0 -0
  11. package/dist/fonts/BebasNeue-Regular.otf +0 -0
  12. package/dist/fonts/BebasNeue-Regular.ttf +0 -0
  13. package/dist/fonts/BebasNeue-Regular.woff2 +0 -0
  14. package/dist/fonts/BebasNeue-Thin.otf +0 -0
  15. package/dist/fonts/BebasNeue-Thin.ttf +0 -0
  16. package/dist/fonts/BebasNeue-Thin.woff2 +0 -0
  17. package/dist/fonts/Montserrat-Black.otf +0 -0
  18. package/dist/fonts/Montserrat-BlackItalic.otf +0 -0
  19. package/dist/fonts/Montserrat-Bold.otf +0 -0
  20. package/dist/fonts/Montserrat-BoldItalic.otf +0 -0
  21. package/dist/fonts/Montserrat-ExtraBold.otf +0 -0
  22. package/dist/fonts/Montserrat-ExtraBoldItalic.otf +0 -0
  23. package/dist/fonts/Montserrat-ExtraLight.otf +0 -0
  24. package/dist/fonts/Montserrat-ExtraLightItalic.otf +0 -0
  25. package/dist/fonts/Montserrat-Italic.otf +0 -0
  26. package/dist/fonts/Montserrat-Light.otf +0 -0
  27. package/dist/fonts/Montserrat-LightItalic.otf +0 -0
  28. package/dist/fonts/Montserrat-Medium.otf +0 -0
  29. package/dist/fonts/Montserrat-MediumItalic.otf +0 -0
  30. package/dist/fonts/Montserrat-Regular.otf +0 -0
  31. package/dist/fonts/Montserrat-SemiBold.otf +0 -0
  32. package/dist/fonts/Montserrat-SemiBoldItalic.otf +0 -0
  33. package/dist/fonts/Montserrat-Thin.otf +0 -0
  34. package/dist/fonts/Montserrat-ThinItalic.otf +0 -0
  35. package/dist/fonts/Oswald-Bold.ttf +0 -0
  36. package/dist/fonts/Oswald-ExtraLight.ttf +0 -0
  37. package/dist/fonts/Oswald-Light.ttf +0 -0
  38. package/dist/fonts/Oswald-Medium.ttf +0 -0
  39. package/dist/fonts/Oswald-Regular.ttf +0 -0
  40. package/dist/fonts/Oswald-SemiBold.ttf +0 -0
  41. package/dist/fonts/Poppins-Black.otf +0 -0
  42. package/dist/fonts/Poppins-BlackItalic.otf +0 -0
  43. package/dist/fonts/Poppins-Bold.otf +0 -0
  44. package/dist/fonts/Poppins-BoldItalic.otf +0 -0
  45. package/dist/fonts/Poppins-ExtraBold.otf +0 -0
  46. package/dist/fonts/Poppins-ExtraBoldItalic.otf +0 -0
  47. package/dist/fonts/Poppins-ExtraLight.otf +0 -0
  48. package/dist/fonts/Poppins-ExtraLightItalic.otf +0 -0
  49. package/dist/fonts/Poppins-Italic.otf +0 -0
  50. package/dist/fonts/Poppins-Light.otf +0 -0
  51. package/dist/fonts/Poppins-LightItalic.otf +0 -0
  52. package/dist/fonts/Poppins-Medium.otf +0 -0
  53. package/dist/fonts/Poppins-MediumItalic.otf +0 -0
  54. package/dist/fonts/Poppins-Regular.otf +0 -0
  55. package/dist/fonts/Poppins-SemiBold.otf +0 -0
  56. package/dist/fonts/Poppins-SemiBoldItalic.otf +0 -0
  57. package/dist/fonts/Poppins-Thin.otf +0 -0
  58. package/dist/fonts/Poppins-ThinItalic.otf +0 -0
  59. package/dist/gsc-game-data.umd.cjs +1 -1
  60. package/dist/images/cancha-horizontal-raw.jpg +0 -0
  61. package/dist/images/cancha-horizontal.jpg +0 -0
  62. package/dist/images/canchaRPH.svg +30 -0
  63. package/dist/images/events/atajada.svg +57 -0
  64. package/dist/images/events/cambio.svg +27 -0
  65. package/dist/images/events/falta.svg +43 -0
  66. package/dist/images/events/favicon.ico +0 -0
  67. package/dist/images/events/fin-del-partido.svg +44 -0
  68. package/dist/images/events/fuera-de-lugar.svg +58 -0
  69. package/dist/images/events/generic.svg +1 -0
  70. package/dist/images/events/gol.svg +49 -0
  71. package/dist/images/events/icn-cambio.svg +6 -0
  72. package/dist/images/events/icn-falta.svg +4 -0
  73. package/dist/images/events/icn-play.svg +3 -0
  74. package/dist/images/events/icn-tarjeta-amarilla.svg +4 -0
  75. package/dist/images/events/icn-tarjeta-roja.svg +4 -0
  76. package/dist/images/events/icn-tiro-a-porteria.svg +36 -0
  77. package/dist/images/events/icn-tiros-de-esquina.svg +18 -0
  78. package/dist/images/events/inicia-el-partido.svg +46 -0
  79. package/dist/images/events/jugada-peligrosa.svg +91 -0
  80. package/dist/images/events/penal-fallado.svg +195 -0
  81. package/dist/images/events/penal-marcado.svg +190 -0
  82. package/dist/images/events/tiempo-agregado.svg +75 -0
  83. package/dist/images/events/tiro-a-porteria.svg +81 -0
  84. package/dist/images/events/tiro-de-esquina.svg +55 -0
  85. package/dist/images/events/var.png +0 -0
  86. package/dist/images/events/var.svg +31 -0
  87. package/dist/style.css +1 -1
  88. package/package.json +16 -48
@@ -1 +1 @@
1
- ((e,t)=>{"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue"),require("@golstats/gsc-tournament-select"),require("@golstats/gsc-season-select"),require("@golstats/gsc-calendar-by-game"),require("vuex"),require("socket.io-client"),require("@golstats/gsc-menu"),require("@golstats/gsc-checkbox"),require("@golstats/gsc-radio-button"),require("@golstats/gsc-dropdown"),require("axios"),require("@golstats/gsc-slider"),require("@golstats/gsc-switch-radio"),require("@golstats/gsc-lineups"),require("@golstats/gsc-datagames"),require("@golstats/gsc-game-video"),require("@golstats/gsc-highlights"),require("@golstats/gsc-filters"),require("plotly.js-dist-min"),require("@golstats/gsc-filterperteam"),require("@golstats/gsc-button"),require("@golstats/gsc-carousel"),require("@golstats/gsc-label"),require("@golstats/gsc-switch-component"),require("@golstats/gsc-positioning"),require("@golstats/gscsetpiece"),require("@golstats/gsc-game-time-line")):"function"==typeof define&&define.amd?define(["exports","vue","@golstats/gsc-tournament-select","@golstats/gsc-season-select","@golstats/gsc-calendar-by-game","vuex","socket.io-client","@golstats/gsc-menu","@golstats/gsc-checkbox","@golstats/gsc-radio-button","@golstats/gsc-dropdown","axios","@golstats/gsc-slider","@golstats/gsc-switch-radio","@golstats/gsc-lineups","@golstats/gsc-datagames","@golstats/gsc-game-video","@golstats/gsc-highlights","@golstats/gsc-filters","plotly.js-dist-min","@golstats/gsc-filterperteam","@golstats/gsc-button","@golstats/gsc-carousel","@golstats/gsc-label","@golstats/gsc-switch-component","@golstats/gsc-positioning","@golstats/gscsetpiece","@golstats/gsc-game-time-line"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).GSCGameData={},e.Vue,e.gscTournamentSelect,e.gscSeasonSelect,e.gscCalendarByGame,e.Vuex,e.io,e.gscMenu,e.gscCheckbox,e.gscRadioButton,e.gscDropdown,e.axios,e.gscSlider,e.gscSwitchRadio,e.gscLineups,e.gscDatagames,e.gscGameVideo,e.gscHighlights,e.gscFilters,e.Plotly,e.gscFilterperteam,e.gscButton,e.gscCarousel,e.gscLabel,e.gscSwitchComponent,e.gscPositioning$1,e.gscsetpiece,e.gscGameTimeLine)})(this,function(e,t,a,s,i,o,n,l,r,d,c,m,p,h,u,y,g,v,_,f,b,w,S,T,k,x,C,I){"use strict";var P=Object.defineProperty,G=(e,t,a)=>(((e,t,a)=>{t in e?P(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a})(e,"symbol"!=typeof t?t+"":t,a),a);function F(e){return e&&e.i&&{}.hasOwnProperty.call(e,"default")?e.default:e}var A={exports:{}};function M(){}M.prototype={on(e,t,a){var s=this.e||(this.e={});return(s[e]||(s[e]=[])).push({fn:t,ctx:a}),this},once(e,t,a){var s=this;function i(){s.off(e,i),t.apply(a,arguments)}return i.o=t,this.on(e,i,a)},emit(e){for(var t=[].slice.call(arguments,1),a=((this.e||(this.e={}))[e]||[]).slice(),s=0,i=a.length;i>s;s++)a[s].fn.apply(a[s].ctx,t);return this},off(e,t){var a=this.e||(this.e={}),s=a[e],i=[];if(s&&t)for(var o=0,n=s.length;n>o;o++)s[o].fn!==t&&s[o].fn.o!==t&&i.push(s[o]);return i.length?a[e]=i:delete a[e],this}},A.exports=M,A.exports.TinyEmitter=M;const L=F(new(0,A.exports));let O=n("https://golstats-live-server-sockets.azurewebsites.net",{autoConnect:!1,transports:["websocket"]});function N(){return O}function D(){O.disconnected&&O.connect()}function V(){O.connected&&(j(),O.disconnect())}function z(e){O.connected&&O.emit("subscribe",{channel:e})}function j(){O.connected}O.on("connect",()=>{L.emit("socket-connected")}),O.on("disconnect",()=>{L.emit("socket-disconnected")}),O.on("reconnect",()=>{L.emit("socket-reconnected")});const B=(e,t)=>{const a=e.m||e;for(const[s,i]of t)a[s]=i;return a},R=B({h:"ButtonCustom",props:{text:{type:String,default:""},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},padding:{type:String,default:"0px"},borderRadius:{type:String,default:"0px"},borderWidth:{type:String,default:"1px"},borderColor:{type:String,default:"#d9d9d9"},backgroundColor:{type:String,default:"#FFFFFF"},activeBackgroundColor:{type:String,default:""},activeBorderColor:{type:String,default:""},activeBorderWidth:{type:String,default:"1px"},activeFontColor:{type:String,default:""},fontColor:{type:String,default:"#000000"},fontSize:{type:String,default:"16px"},fontFamily:{type:String,default:"Poppins-Regular, sans-serif"},whiteSpace:{type:String,default:"nowrap"},isActive:{type:Boolean,default:!1}},emits:["click"],setup(e,{emit:a}){const s=e,i=t.computed(()=>({"--height":s.height,"--width":s.width,"--padding":s.padding,"--border-radius":s.borderRadius,"--border":`solid ${s.borderWidth} ${s.borderColor}`,"--background-color":s.backgroundColor,"--white-space":s.whiteSpace,"--font-color":s.fontColor,"--font-size":s.fontSize,"--font-family":s.fontFamily,"--active-background-color":s.activeBackgroundColor||s.backgroundColor,"--active-border-color":s.activeBorderColor||s.borderColor,"--active-font-color":s.activeFontColor||s.fontColor}));function o(){a("click")}return(a,s)=>(t.openBlock(),t.createElementBlock("button",{class:t.normalizeClass(["button",{active:e.isActive}]),style:t.normalizeStyle(i.value),onClick:o},t.toDisplayString(e.text),7))}},[["__scopeId","data-v-69cf823e"]]),q=(e=>(t.pushScopeId("data-v-a8936b64"),e=e(),t.popScopeId(),e))(()=>t.createElementVNode("div",{class:"button__icon"},null,-1)),E={class:"button__text"},J={key:0},W={width:"8",height:"4",viewBox:"0 0 8 4",fill:"none",xmlns:"http://www.w3.org/2000/svg"},H=["fill"],U=B({h:"ButtonFilter",props:{isActive:{type:Boolean,default:!1},text:{type:String,default:""},infoValue:{type:[String,Number],default:""},textFontFamily:{type:String,default:"sans-serif"},textFontSize:{type:String,default:"14px"},fontColor:{type:String,default:"white"},infoBackgroundColor:{type:String,default:"#424D58"},infoFontColor:{type:String,default:"#CBEE6B"},infoFontFamily:{type:String,default:"sans-serif"},infoFontSize:{type:String,default:"10px"},infoBorderColor:{type:String,default:"#0D1D29"},infoBorderRadius:{type:String,default:"4px"},infoHeight:{type:String,default:"20px"},infoWidth:{type:String,default:"20px"},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},backgroundColor:{type:String,default:"#0D1D29"},borderRadius:{type:String,default:"8px"},borderColor:{type:String,default:"#172531"},borderColorActive:{type:String,default:"white"},borderWidth:{type:String,default:"1px"},padding:{type:String,default:"12px"},arrowColor:{type:String,default:"#92929D"},iconColor:{type:String,default:"#92929D"},iconType:{type:String,default:"productivity"}},setup(e){const a=e,s=t.computed(()=>({"--height":a.height,"--width":a.width,"--text-font-family":a.textFontFamily,"--text-font-size":a.textFontSize,"--background-color":a.backgroundColor,"--border-radius":a.borderRadius,"--border-color":a.isActive?a.borderColorActive:a.borderColor,"--border-width":a.borderWidth,"--padding":a.padding,"--font-color":a.fontColor})),i=t.computed(()=>({"--info-background-color":a.infoBackgroundColor,"--info-border-color":a.infoBorderColor,"--info-border-radius":a.infoBorderRadius,"--info-font-family":a.infoFontFamily,"--info-font-size":a.infoFontSize,"--info-font-color":a.infoFontColor,"--info-height":a.infoHeight,"--info-width":a.infoWidth}));return(a,o)=>(t.openBlock(),t.createElementBlock("div",{class:"button",style:t.normalizeStyle(s.value)},[q,t.createElementVNode("div",E,t.toDisplayString(e.text),1),t.createElementVNode("div",{class:"button__info",style:t.normalizeStyle(i.value)},[e.infoValue?(t.openBlock(),t.createElementBlock("span",J,t.toDisplayString(e.infoValue),1)):t.createCommentVNode("",!0)],4),t.createElementVNode("div",{class:t.normalizeClass(["button__arrow",{"rotated-180":e.isActive}])},[(t.openBlock(),t.createElementBlock("svg",W,[t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M4 2.62045L6.86193 0.167368C7.12228 -0.0557892 7.54439 -0.0557892 7.80474 0.167368C8.06509 0.390524 8.06509 0.752333 7.80474 0.97549L4.4714 3.83263C4.21105 4.05579 3.78895 4.05579 3.5286 3.83263L0.195262 0.97549C-0.0650874 0.752333 -0.0650874 0.390524 0.195262 0.167368C0.455612 -0.0557892 0.877722 -0.0557892 1.13807 0.167368L4 2.62045Z",fill:e.arrowColor},null,8,H)]))],2)],4))}},[["__scopeId","data-v-a8936b64"]]),Z=e=>(t.pushScopeId("data-v-3e7cb100"),e=e(),t.popScopeId(),e),$={class:"details__header"},X=Z(()=>t.createElementVNode("div",{class:"details__header__title"},"Jugando como",-1)),Y={class:"details__header__checkbox"},K={class:"details__body"},Q={class:"details__body__playing-as"},ee=["onClick"],te={class:"details__header"},ae=Z(()=>t.createElementVNode("div",{class:"details__header__title"},"En: (Elige el lapso de tiempo)",-1)),se={class:"details__header__checkbox"},ie={class:"details__body"},oe=Z(()=>t.createElementVNode("div",{class:"details__body__title"},"1er tiempo",-1)),ne={class:"details__body__game-section"},le=["onClick"],re={class:"details__body"},de=Z(()=>t.createElementVNode("div",{class:"details__body__title"},"2do tiempo",-1)),ce={class:"details__body__game-section"},me=["onClick"],pe=B({h:"StatisticsFilterTemplate",props:{playingAs:{type:Array,default:()=>[{name:"Local",isSelected:!0},{name:"Visitante",isSelected:!0}]},results:{type:Array,default:()=>[1,2,3]},gameSections:{type:Array,default:()=>[{text:"0-15",value:1,isSelected:!0},{text:"16-30",value:2,isSelected:!0},{text:"31-45",value:3,isSelected:!0},{text:"46-60",value:4,isSelected:!0},{text:"61-75",value:5,isSelected:!0},{text:"76-90",value:6,isSelected:!0}]},buttonsBackgroundColor:{type:String,default:"rgba(255, 255, 255, 0)"},buttonsBackgroundColorActive:{type:String,default:"rgba(203, 238, 107, 0.05)"},buttonsTextColor:{type:String,default:"rgba(255, 255, 255, 0.8)"},buttonsTextColorActive:{type:String,default:"rgba(255, 255, 255, 1)"},buttonsBorderColor:{type:String,default:"#8ea2ab"},buttonsBorderColorActive:{type:String,default:"#cbee6b"},buttonsBorderWidth:{type:String,default:"0.8px"},buttonsBorderWidthActive:{type:String,default:"1px"},buttonsBorderRadius:{type:String,default:"4px"}},setup(e){const a=e;t.useCssVars(t=>({"057a1337":e.buttonsBackgroundColor,"4ababc18":e.buttonsTextColor,a6bfbb48:e.buttonsBorderWidth,a8edb80e:e.buttonsBorderColor,"6a6af91d":e.buttonsBackgroundColorActive,"54e7b53e":e.buttonsTextColorActive,"805f4efc":e.buttonsBorderWidthActive,f9321f42:e.buttonsBorderColorActive}));const s=t.computed(()=>a.playingAs.every(e=>e.isSelected)),i=t.computed(()=>a.gameSections.every(e=>e.isSelected)),o=t.computed(()=>a.gameSections.reduce((e,t)=>(t.value>3?e.secondHalf.push(t):e.firstHalf.push(t),e),{firstHalf:[],secondHalf:[]})),n=t.computed(()=>({"--border-radius-first-button":`${a.buttonsBorderRadius} 0 0 ${a.buttonsBorderRadius}`,"--border-radius-last-button":`0 ${a.buttonsBorderRadius} ${a.buttonsBorderRadius} 0`}));function l(e){e?a.playingAs.forEach(e=>{e.isSelected=!0}):a.playingAs.forEach((e,t)=>{e.isSelected=0===t})}function d(e){1===a.gameSections.filter(e=>e.isSelected).length&&e.isSelected||(e.isSelected=!e.isSelected)}function c(e){e?a.gameSections.forEach(e=>{e.isSelected=!0}):a.gameSections.forEach((e,t)=>{e.isSelected=0===t})}return(e,m)=>(t.openBlock(),t.createElementBlock("div",{class:"details",style:t.normalizeStyle(n.value)},[t.createElementVNode("div",$,[X,t.createElementVNode("div",Y,[t.createVNode(t.unref(r.GSCCheckbox),{label:"Todos","model-value":s.value,"onUpdate:modelValue":l},null,8,["model-value"])])]),t.createElementVNode("div",K,[t.createElementVNode("div",Q,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.playingAs,(e,s)=>(t.openBlock(),t.createElementBlock("div",{key:"pa"+s,class:t.normalizeClass(["details__body__button",{active:e.isSelected}]),onClick:t=>(e=>{1===a.playingAs.filter(e=>e.isSelected).length&&e.isSelected||(e.isSelected=!e.isSelected)})(e)},t.toDisplayString(e.name),11,ee))),128))])]),t.createElementVNode("div",te,[ae,t.createElementVNode("div",se,[t.createVNode(t.unref(r.GSCCheckbox),{label:"Todos","model-value":i.value,"onUpdate:modelValue":c},null,8,["model-value"])])]),t.createElementVNode("div",ie,[oe,t.createElementVNode("div",ne,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(o.value.firstHalf,(e,a)=>(t.openBlock(),t.createElementBlock("div",{key:"pa"+a,class:t.normalizeClass(["details__body__button",{active:e.isSelected}]),onClick:t=>d(e)},t.toDisplayString(e.text),11,le))),128))])]),t.createElementVNode("div",re,[de,t.createElementVNode("div",ce,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(o.value.secondHalf,(e,a)=>(t.openBlock(),t.createElementBlock("div",{key:"pa"+a,class:t.normalizeClass(["details__body__button",{active:e.isSelected}]),onClick:t=>d(e)},t.toDisplayString(e.text),11,me))),128))])])],4))}},[["__scopeId","data-v-3e7cb100"]]),he={class:"statistics-filter-button"},ue={h:"StatisticsFilterButton",setup(e){const a=t.ref(!1);return(e,s)=>(t.openBlock(),t.createElementBlock("div",he,[t.createVNode(t.unref(l.GSCMenu),{modelValue:a.value,"onUpdate:modelValue":s[0]||(s[0]=e=>a.value=e),"menu-margin-top":18},{trigger:t.withCtx(()=>[t.createVNode(U,{text:"Filtros","is-active":a.value,"background-color":"rgba(255, 255, 255, 0.05)","border-color":"rgba(255, 255, 255, 0.20)","info-width":"0",padding:"6px 12px"},null,8,["is-active"])]),menu:t.withCtx(()=>[t.createVNode(pe)]),o:1},8,["modelValue"])]))}},ye=B({h:"SwitchCustom",props:{modelValue:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(e,{emit:a}){const s=e,i=t.ref(null);function o(){i.value&&(i.value.checked=s.modelValue)}function n(e){a("update:modelValue",e.target.checked)}return t.watch(()=>s.modelValue,()=>{o()},{immediate:!0}),t.onMounted(()=>{o()}),(e,a)=>(t.openBlock(),t.createElementBlock("input",{ref_key:"switchCustom",ref:i,id:"toggle",class:"toggle",type:"checkbox",role:"switch",name:"toggle",onInput:n},null,544))}},[["__scopeId","data-v-caefc67f"]]),ge=navigator.userAgent||navigator.vendor||window.opera;function ve(e){return e.reduce((e,t,a)=>(e[t]=a,e),{})}function _e(e,t,a){const s={statistics:t.statistics.value||0,playingAs:[...t.playingAs],matchResult:[...t.matchResult],sections:t.firstHalf.concat(t.secondHalf),requiresPlaysFiltering:t.requiresPlaysFiltering||!0};return s.teamId=a,s}function fe(e){return"number"==typeof e?e.toFixed(2).replace(/\.0+$|0$/g,""):e}function be(e){return`${{}.TEAM_LOGOS_URL||"https://golstatsimages.blob.core.windows.net/teams-80/"}${e}.png`}const we={name:"ChartTrendLive",props:{teamTypeSelected:{type:String,default:"homeTeam"},subcategorySelected:{type:Object,required:!0},typeId:{type:Number,required:!0},teamIds:{type:Array,required:!0},teamAcronyms:{type:Array,required:!0},types:{type:Array,required:!0},containerWidth:{type:Number,default:0}},data(){return{height:0,updateGraph:0}},mounted(){setTimeout(()=>{this.setDimensions()},500)},computed:{...o.mapState("nextGeneral",["idAssetSelected","menuOptionActive","showLiveData","homeTeamPlays","visitingTeamPlays","totalHomeTeamFinishedGames","totalVisitingTeamFinishedGames","gameForAnalysis"]),...o.mapGetters("nextGeneral",["homeTeam","homeTeamStatisticsType","visitingTeamStatisticsType","showPostMatchData"]),chartOptions(){const e="both"===this.teamTypeSelected?["#0033C5","#cbee6b"]:"homeTeam"===this.teamTypeSelected?["#0033C5"]:["#cbee6b"];return{chart:{type:"line",zoom:{enabled:!1},foreColor:"#2f3b45",height:"400px",width:"400px",fontFamily:"Poppins-Light"},colors:e,dataLabels:{style:{colors:["rgba(255, 255, 255, 0.08)"],borderColor:"rgba(255, 255, 255, 0.16)"},enabled:this.isAccumulatedType,enabledOnSeries:[0,1],background:{borderRadius:12,foreColor:"#ffffff",fontFamily:"Poppins-Light",borderColor:"#505a63",padding:10,opacity:.8,color:"#000"}},stroke:{width:1,curve:"straight",dashArray:[0,8,5],colors:e},legend:{show:!0,markers:{fillColors:e},labels:{colors:"rgba(255, 255, 255, 0.7)"},tooltipHoverFormatter:(e,t)=>e+" - <strong>"+t.w.globals.series[t.seriesIndex][t.dataPointIndex]+"</strong>"},markers:{colors:e,size:1,hover:{sizeOffset:6}},xaxis:{categories:this.xaxisCategories,labels:{style:{colors:"rgba(255,255,255,0.7)"}}},fill:{colors:e,type:"solid",opacity:.2},yaxis:[{axisBorder:{show:!0,color:"#1C2A36"},labels:{style:{colors:"rgba(255,255,255,0.7)"}}}],tooltip:{theme:"dark",marker:{show:!0},y:[{title:{formatter:e=>this.showPostMatchData?e+" :":e+" (promedio)"},formatter:e=>this.showPostMatchData?+e:e},{title:{formatter:e=>this.showPostMatchData?e+" :":e+" (promedio)"},formatter:e=>this.showPostMatchData?+e:e},{title:{formatter:e=>e}}]},grid:{show:!0,borderColor:"#414c55",padding:{right:22},xaxis:{lines:{show:!0}},yaxis:{lines:{show:!0}}}}},series(){return(this.gameForAnalysis.is_live||0===this.gameForAnalysis.game_status)&&this.showLiveData?this.dataLive.map((e,t)=>({name:this.teamAcronyms[t],data:e})):this.dataStats.map((e,t)=>({name:this.teamAcronyms[t],data:e}))},typeName(){return this.types.find(e=>e.id===this.typeId).name},dataStats(){return this.isAccumulatedType?"both"===this.teamTypeSelected?[[0,...this.subcategorySelected.homeTeam[this.homeTeamStatisticsType].avgPostGameTrendLive.accumulated.map(e=>fe(e))],[0,...this.subcategorySelected.visitingTeam[this.visitingTeamStatisticsType].avgPostGameTrendLive.accumulated.map(e=>fe(e))]]:[[0,...this.subcategorySelected[this.teamTypeSelected][this[this.teamTypeSelected+"StatisticsType"]].avgPostGameTrendLive.accumulated.map(e=>fe(e))]]:"both"===this.teamTypeSelected?[this.subcategorySelected.homeTeam[this.homeTeamStatisticsType].avgPostGameTrendLive.sections.reduce((e,t)=>(e.push(fe(t)),e),[0]),this.subcategorySelected.visitingTeam[this.visitingTeamStatisticsType].avgPostGameTrendLive.sections.reduce((e,t)=>(e.push(fe(t)),e),[0])]:[this.subcategorySelected[this.teamTypeSelected][this[this.teamTypeSelected+"StatisticsType"]].avgPostGameTrendLive.sections.reduce((e,t)=>(e.push(fe(t)),e),[0])]},dataLive(){return this.isAccumulatedType?"both"===this.teamTypeSelected?[[0,...this.subcategorySelected.homeTeam[this.homeTeamStatisticsType].totalsLiveTrendLive.accumulated.slice(0,this.subcategorySelected.homeTeam.maximumLiveSection)],[0,...this.subcategorySelected.visitingTeam[this.visitingTeamStatisticsType].totalsLiveTrendLive.accumulated.slice(0,this.subcategorySelected.visitingTeam.maximumLiveSection)]]:[[0,...this.subcategorySelected[this.teamTypeSelected][this[this.teamTypeSelected+"StatisticsType"]].totalsLiveTrendLive.accumulated.slice(0,this.subcategorySelected[this.teamTypeSelected].maximumLiveSection)]]:"both"===this.teamTypeSelected?[this.subcategorySelected.homeTeam[this.homeTeamStatisticsType].totalsLiveTrendLive.sections.reduce((e,t)=>(e.push(fe(t)),e),[0]),this.subcategorySelected.visitingTeam[this.visitingTeamStatisticsType].totalsLiveTrendLive.sections.reduce((e,t)=>(e.push(fe(t)),e),[0])]:[this.subcategorySelected[this.teamTypeSelected][this[this.teamTypeSelected+"StatisticsType"]].totalsLiveTrendLive.sections.slice(0,this.subcategorySelected[this.teamTypeSelected].maximumLiveSection).reduce((e,t)=>(e.push(t),e),[0])]},xaxisCategories(){return this.isAccumulatedType,["0'","15'","30'","45'","60'","75'","90'"]},isAccumulatedType(){return 1===this.typeId},factorHeight(){return this.containerWidth-this.containerWidth%50},key(){return(this.gameForAnalysis.is_live||0===this.gameForAnalysis.game_status)&&this.showLiveData?1:2}},watch:{menuOptionActive(){setTimeout(()=>{this.setDimensions()},500),this.increaseUpdateGraph()},idAssetSelected(){7===this.idAssetSelected&&this.increaseUpdateGraph()},containerWidth(){this.setDimensions()},series(e,t){JSON.stringify(e)!==JSON.stringify(t)&&this.setDimensions()}},methods:{increaseUpdateGraph(){this.updateGraph+=1},getDataLive(){return this.isAccumulatedType?"both"===this.teamTypeSelected?[[0,...this.subcategorySelected.homeTeam[this.homeTeamStatisticsType].avgPostGameTrendLive.accumulated.slice(0,this.subcategorySelected.homeTeam.maximumLiveSection)],[0,...this.subcategorySelected.visitingTeam[this.visitingTeamStatisticsType].avgPostGameTrendLive.accumulated.slice(0,this.subcategorySelected.visitingTeam.maximumLiveSection)]]:[[0,...this.subcategorySelected[this.teamTypeSelected][this[this.teamTypeSelected+"StatisticsType"]].totalsLiveTrendLive.accumulated.slice(0,this.subcategorySelected[this.teamTypeSelected].maximumLiveSection)]]:this.subcategorySelected[this.teamTypeSelected][this[this.teamTypeSelected+"StatisticsType"]].totalsLiveTrendLive.sections.slice(0,this.subcategorySelected[this.teamTypeSelected].maximumLiveSection).reduce((e,t)=>(e.push(t),e),[0])},setDimensions(){280>this.containerWidth?(this.$refs.containerChart.style.width="auto",this.height=.8*this.factorHeight):this.containerWidth>=280&&399>this.containerWidth?(this.$refs.containerChart.style.width="auto",this.height=.7*this.factorHeight):this.containerWidth>=400&&591>this.containerWidth?(this.$refs.containerChart.style.width="auto",this.height=.6*this.factorHeight):this.containerWidth>=591&&900>this.containerWidth?(this.$refs.containerChart.style.width="auto",this.height=.5*this.factorHeight):900>this.containerWidth||(this.$refs.containerChart.style.width="600px",this.height=400),7===this.idAssetSelected&&setTimeout(()=>{document.getElementsByClassName("apexcharts-svg").length>0&&(document.getElementsByClassName("apexcharts-svg")[0].style.width=parseInt(this.$refs.containerChart.style.width)+50+"px")},800),this.increaseUpdateGraph()}}},Se={class:"chart-trend-live container",ref:"containerChart"},Te=B(we,[["render",(e,a,s,i,o,n)=>{const l=t.resolveComponent("apexchart");return t.openBlock(),t.createElementBlock("div",Se,[(t.openBlock(),t.createBlock(l,{type:"area",options:n.chartOptions,series:n.series,key:n.key+o.updateGraph,style:{"z-index":"0"}},null,8,["options","series"]))],512)}],["__scopeId","data-v-ce5d80d0"]]),ke={class:"card-trend-live__dropdown-category"},xe={class:"selected-item"},Ce={class:"card-trend-live__body__categories"},Ie={class:"card-trend-live__body__chart"},Pe=B({h:"CardTrendLive",props:{data:{type:Object,required:!0},teamTypeSelected:{type:String,default:"homeTeam"},trendTypeId:{type:Number,required:!0},teamIds:{type:Array,required:!0},teamAcronyms:{type:Array,required:!0},trendTypes:{type:Array,required:!0}},emits:["@update:subcategory-selected"],setup(e,{emit:a}){const s=e;let i=null;const o={width:"100%",borderRadius:"8px",height:"36px",borderColor:"#4f5861",activeBorderColor:"#cbee6b",backgroundColor:"#1C2A36",fontColor:"#bcc0c3",activeFontColor:"#FFFFFF",borderWidth:"1px",fontSize:"12px"},n={borderType:"solid",listBackgroundColor:"#2E3B46",listBorderColor:"rgba(255, 255, 255, 0.2)",listBorderRadius:"5px",height:"38px",borderWidth:.8,borderColor:"#58626b",backgroundColor:"#2E3B46",color:"#c0c4c7",listItemColor:"white",listItemSelectedBackgroundColor:"#2E3B46",arrowColor:"#fff",width:"290px",isListSameWidth:!0,isFooterVisible:!1,hoverBackgroundColor:"#2E3B46"},l=t.ref({}),r=t.ref(null),d=t.ref(0);function m(e){l.value=e,a("update:subcategory-selected",{data:s.data,subcategorySelected:e})}return t.watch(()=>s.data,e=>{e&&e.subcategories&&e.subcategories.length&&(l.value=e.subcategories[0])},{immediate:!0}),t.onMounted(()=>{(()=>{if(!window.ResizeObserver)throw Error("Resize observer not supported!");i=new ResizeObserver(()=>{d.value=r.value.clientWidth}),i.observe(r.value)})()}),t.onUnmounted(()=>{}),(a,s)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"cardTrendLive",ref:r,class:"card-trend-live"},[t.createElementVNode("div",{class:t.normalizeClass(["card-trend-live__title",{"is-mobile":760>=d.value}])},t.toDisplayString(e.data.name),3),t.withDirectives(t.createElementVNode("div",ke,[t.createVNode(t.unref(c.GSCDropdown),t.mergeProps(n,{items:e.data.subcategories,"selected-item":l.value,"default-item-by-prop":{propName:"id",value:l.value.id},onInput:m}),{default:t.withCtx(({selectedItem:e})=>[t.createElementVNode("div",xe,t.toDisplayString(e.name),1)]),availableItem:t.withCtx(({item:e})=>[t.createElementVNode("div",null,t.toDisplayString(e.name),1)]),o:1},16,["items","selected-item","default-item-by-prop"])],512),[[t.vShow,760>=d.value]]),t.createElementVNode("div",{class:t.normalizeClass(["card-trend-live__body",{"is-mobile":760>=d.value}])},[t.createElementVNode("div",Ce,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.data.subcategories,(e,a)=>(t.openBlock(),t.createElementBlock("div",{key:a},[t.createVNode(R,t.mergeProps(o,{text:e.name,"is-active":l.value.id===e.id,onClick:t=>m(e)}),null,16,["text","is-active","onClick"])]))),128))]),t.createElementVNode("div",Ie,[(t.openBlock(),t.createBlock(Te,{id:e.data.id,"type-id":e.trendTypeId,"team-type-selected":e.teamTypeSelected,"subcategory-selected":e.data.objectGraphProps.objectSubcategorySelected,"team-ids":e.teamIds,"team-acronyms":e.teamAcronyms,types:e.trendTypes,"container-width":d.value,key:e.trendTypeId},null,8,["id","type-id","team-type-selected","subcategory-selected","team-ids","team-acronyms","types","container-width"]))])],2)],512))}},[["__scopeId","data-v-b0c2a11a"]]),Ge=e=>(t.pushScopeId("data-v-60b8e2f9"),e=e(),t.popScopeId(),e),Fe={class:"trending-live__header__radios"},Ae={class:"trending-live__header__radios__group"},Me={class:"trending-live__header__switch"},Le={class:"trending-live__header__switch__control"},Oe=Ge(()=>t.createElementVNode("span",null,"Acumulado",-1)),Ne=Ge(()=>t.createElementVNode("span",null,"Por periodo",-1)),De={class:"trending-live__body"},Ve=B({h:"TrendLive",props:{game:{type:Object,default:()=>({gameId:79623,seasonId:1772,status:1,dateTimeUTC:"2023-10-01T22:20:00Z",homeTeam:{logo:"https://golstatsimages.blob.core.windows.net/teams-80/18.png",team_id:10,provisional_logo:"https://golstatsimages.blob.core.windows.net/teams-provisional/18.png",colloquial_name:"Toluca",acronym:"TOL",team_name:"Toluca"},awayTeam:{logo:"https://golstatsimages.blob.core.windows.net/teams-80/1.png",team_id:1,provisional_logo:"https://golstatsimages.blob.core.windows.net/teams-provisional/1.png",colloquial_name:"Chivas",acronym:"CHI",team_name:"Guadalajara"}})}},setup(e){const a=e,s=o.useStore();let i=null;const n=t.ref(!1),l=t.ref("both"),r=t.ref([]),c=t.ref(null),m=t.ref(0),p=t.computed(()=>[{label:"Ambos",name:"name",value:"both",isChecked:!1,radioPosition:"left"},{label:a.game.homeTeam?""+a.game.homeTeam.acronym:"Local",name:"name",value:"home",isChecked:!1,radioPosition:"left",logoUrl:a.game.homeTeam?be(a.game.homeTeam.team_id):""},{label:a.game.awayTeam?""+a.game.awayTeam.acronym:"Visitante",name:"name",value:"away",isChecked:!1,radioPosition:"left",logoUrl:a.game.awayTeam?be(a.game.awayTeam.team_id):""}]),h=t.computed(()=>"both"===l.value?"both":("home"===l.value?"home":"visiting")+"Team"),u=t.computed(()=>n.value?2:1),y=t.computed(()=>a.game.homeTeam?"both"===l.value?[a.game.homeTeam.team_id,a.game.awayTeam.team_id]:[a.game[l.value+"Team"].team_id]:[0,0]),g=t.computed(()=>a.game.homeTeam?"both"===l.value?[a.game.homeTeam.acronym,a.game.awayTeam.acronym]:[a.game[l.value+"Team"].acronym]:[0,0]),v=t.computed(()=>[{id:1,name:"Acumulado"},{id:2,name:"Por periodo"}]);function _({data:e,subcategorySelected:t}){e.objectGraphProps.numberCategoryId=t,e.objectGraphProps.objectSubcategorySelected=t}return t.watch(()=>s.getters["nextGeneral/arrayFilledDataSortedByPriority"],e=>{0===r.value.length&&(e&&e.length?r.value=e.map((e,t)=>{const a=Object.values(e.subcategories).filter(e=>e.isVisible);return{id:"tL"+t,...e,subcategories:a,objectGraphProps:{objectSubcategorySelected:a[0],numberCategoryId:a[0].id}}}):r.value=[])},{immediate:!0}),t.onMounted(()=>{(()=>{if(!window.ResizeObserver)throw Error("Resize observer not supported!");i=new ResizeObserver(()=>{m.value=c.value.clientWidth}),i.observe(c.value)})()}),(e,a)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"trendLive",ref:c,class:"trending-live"},[t.createElementVNode("div",{class:t.normalizeClass(["trending-live__header",{"is-mobile":580>m.value}])},[t.createElementVNode("div",Fe,[t.createElementVNode("div",Ae,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(p.value,(e,s)=>(t.openBlock(),t.createElementBlock("div",{key:s},[t.createVNode(t.unref(d.GSCRadioButton),t.mergeProps({modelValue:l.value,"onUpdate:modelValue":a[0]||(a[0]=e=>l.value=e)},e),null,16,["modelValue"])]))),128))])]),t.createElementVNode("div",Me,[t.createElementVNode("div",Le,[Oe,t.createVNode(ye,{modelValue:n.value,"onUpdate:modelValue":a[1]||(a[1]=e=>n.value=e)},null,8,["modelValue"]),Ne])])],2),t.createElementVNode("div",De,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r.value,(e,a)=>(t.openBlock(),t.createElementBlock("div",{class:"trending-live__body__card",key:a},[t.createVNode(Pe,{data:e,"trend-type-id":u.value,"team-type-selected":h.value,"team-ids":y.value,"team-acronyms":g.value,"trend-types":v.value,"onUpdate:subcategorySelected":_},null,8,["data","trend-type-id","team-type-selected","team-ids","team-acronyms","trend-types"])]))),128))])],512))}},[["__scopeId","data-v-60b8e2f9"]]),ze={name:"BarraLeft",props:{colors:{type:Array,required:!1,default:()=>["#0033C5","#3bd8f1"]},postmatch:{type:Number,required:!1,default:0},live:{type:Number,required:!1,default:0},showLiveData:{type:Boolean,required:!1,default:!0}},computed:{p(){return 350*this.postmatch+6},l(){return 350*this.live+10}}},je={class:"custom-progress-bar"},Be={xmlns:"http://www.w3.org/2000/svg",viewBox:"15 5 350 15","xmlns:xlink":"http://www.w3.org/1999/xlink",style:{width:"98%",transform:"rotate(180deg)"}},Re=(e=>(t.pushScopeId("data-v-ce226c7f"),e=e(),t.popScopeId(),e))(()=>t.createElementVNode("path",{d:" M10,10 L350,10 A1,1 0 1 1 350,15 L10,15 A1,1 0 1 1 10,10 z",fill:"#48525B"},null,-1)),qe=["d","fill"],Ee=B(ze,[["render",(e,a,s,i,o,n)=>(t.openBlock(),t.createElementBlock("div",je,[(t.openBlock(),t.createElementBlock("svg",Be,[Re,t.createElementVNode("path",{d:`M10,10 L${n.p},10 A1,1 0 1 1 ${n.p},15 L10,15 A1,1 0 1 1 10,10 z`,fill:s.colors[0]},null,8,qe)]))]))],["__scopeId","data-v-ce226c7f"]]),Je={name:"BarraRight",props:{colors:{type:Array,required:!1,default:()=>["#CBEE6B","#3bd8f1"]},postmatch:{type:Number,required:!1,default:0},live:{type:Number,required:!1,default:0}},computed:{...o.mapState("nextGeneral",["showLiveData"]),p(){return 350*this.postmatch+6},l(){return 350*this.live+10}}},We={class:"custom-progress-bar"},He={xmlns:"http://www.w3.org/2000/svg",viewBox:"4 5 350 15","xmlns:xlink":"http://www.w3.org/1999/xlink",style:{width:"98%"}},Ue=(e=>(t.pushScopeId("data-v-7e074cc4"),e=e(),t.popScopeId(),e))(()=>t.createElementVNode("path",{d:" M10,10 L350,10 A1,1 0 1 1 350,15 L10,15 A1,1 0 6 1 10,10 z",fill:"#48525B"},null,-1)),Ze=["d","fill"],$e="/icn-play.svg",Xe={components:{BarraLeft:Ee,BarraRight:B(Je,[["render",(e,a,s,i,o,n)=>(t.openBlock(),t.createElementBlock("div",We,[(t.openBlock(),t.createElementBlock("svg",He,[Ue,t.createElementVNode("path",{d:`M10,10 L${n.p},10 A1,1 0 1 1 ${n.p},15 L10,15 A1,1 0 1 1 10,10 z`,fill:s.colors[0]},null,8,Ze)]))]))],["__scopeId","data-v-7e074cc4"]])},props:{data:{type:Object,required:!1},showPlayButton:{type:Boolean,value:!0},playVideosPrivileges:{type:Object,default:null},teams:{type:Object,default:()=>({home:{},away:{}})}},data(){return{gamesBySeason:{},objectZeroValues:{numberValue:0,numberBarPercent:0}}},computed:{...o.mapState("nextGeneral",["gameForAnalysis","seasonId","showLiveData"]),...o.mapGetters("nextGeneral",["homeTeam","visitingTeam"]),homeTeamLogo(){return this.teams&&this.teams.home?this.teams.home.team_logo:""},awayTeamLogo(){return this.teams&&this.teams.away?this.teams.away.team_logo:""},canPlayVideos(){let e={home:!0,away:!0};return this.playVideosPrivileges&&(e=this.playVideosPrivileges.canPrivilegesTeamPlayVideos?this.playVideosPrivileges.isPrivilegesTeamOnly?{home:this.playVideosPrivileges.isPrivilegesTeamHome,away:!this.playVideosPrivileges.isPrivilegesTeamHome}:{home:!0,away:!0}:{home:!1,away:!1}),e}},methods:{onclickPlayVideos(e,t){if(!t)return;var a;a=2==e.type?1==e.position_id?0==e.category?[55,324,323,608,39,774,802,52,53,40,54]:e.category:0==e.category?[12,35,10,27,607,61,519,98,101,109,112,121,122,127,128,135,136,141,142,161,170,179,702,730,466,217,211,232,235,239,242,282,284,289,291,296,485,486,487,488,14,15,257]:e.category:3==e.type?0==e.category?[607,608,12,55,54,35,14,52,15,53,466,477,40,257,39]:e.category:0!=e.category?e.category:[607,608,12,55,54,35,14,52,15,53,466,477];let s={seasonId:e.season_id,mainSectionType:1,playListType:e.type,categoryIds:a,gameIdsToFilter:4!==this.gameForAnalysis.game_status?[this.gameForAnalysis.game_id]:null,playerIds:1!=e.position_id&&e.player_id?[e.player_id]:[],goalkeeperIds:1==e.position_id&&e.player_id?[e.player_id]:[],teamId:e.team_id?e.team_id:0,matchResult:e.matchResult?[e.matchResult]:[1,2,3],playData:{},advancedFilter:{playListTitle:""}};0!==e.category&&(s.advancedFilter.mainCategoryId=e.category),this.$emit("openmedia",s)},hVal(e){return this.getTeamValue(e,this.gameForAnalysis,"homeTeam")},aVal(e){return this.getTeamValue(e,this.gameForAnalysis,"visitingTeam")},deleteDecimalZero(e){const t="string"==typeof e?parseFloat(e):e;return"number"!=typeof t||isNaN(t)?e:t%1==0?t:0==t%1?Math.floor(t):t},formatNumbers(e){return e%1!=0?e.toFixed(1):e},getTeamValue(e,t,a){if(!t.game_id)return this.objectZeroValues;const s=3===e.generalCategoriesIds.accomplished;if((t.is_live||0===t.game_status)&&this.showLiveData){const t=e.homeTeam.accomplished.totalLive+e.visitingTeam.accomplished.totalLive;return t?{numberValue:s?e[a].accomplished.totalLive/t*100:e[a].accomplished.totalLive,numberBarPercent:e[a].accomplished.totalLive/t}:this.objectZeroValues}if(1===t.game_status){const t=e.homeTeam.accomplished.totalPostGame+e.visitingTeam.accomplished.totalPostGame;return t?{numberValue:s?e[a].accomplished.totalPostGame/t*100:e[a].accomplished.totalPostGame,numberBarPercent:e[a].accomplished.totalPostGame/t}:this.objectZeroValues}if(s){const t=e.homeTeam.accomplished.avgPostGame+e.visitingTeam.accomplished.avgPostGame,s=e[a].accomplished.avgPostGame/t;return e[a].accomplished.avgPostGame?{numberValue:1>s?100*s:s,numberBarPercent:e[a].accomplished.avgPostGame/t}:this.objectZeroValues}{const t=e.homeTeam.accomplished.avgPostGame+e.visitingTeam.accomplished.avgPostGame;return e[a].accomplished.avgPostGame?{numberValue:e[a].accomplished.avgPostGame,numberBarPercent:e[a].accomplished.avgPostGame/t}:this.objectZeroValues}},async getGamesBySeasonV2(){try{const e={Authorization:this.token},t=`${this.apiUrl}${this.seasonId}/games/${this.gameId}`;return(await m.get(t,{headers:e})).data}catch(e){return Promise.reject(e)}}},async mounted(){}},Ye=e=>(t.pushScopeId("data-v-74093fb1"),e=e(),t.popScopeId(),e),Ke={class:"card"},Qe={class:"card__header"},et={class:"card__header__team-logo"},tt=["src"],at={class:"card__header__title"},st={class:"card__header__team-logo"},it=["src"],ot={class:"card__stats"},nt={key:0,class:"card__stats__stat"},lt=["onClick"],rt=[Ye(()=>t.createElementVNode("img",{src:$e},null,-1))],dt={key:1,class:"card__stats__stat__button_empty"},ct={class:"card__stats__title"},mt={class:"card__stats__scores"},pt={key:0},ht={key:1},ut={key:2},yt={key:3},gt={class:"card__stats__bars"},vt=["onClick"],_t=[Ye(()=>t.createElementVNode("img",{src:$e},null,-1))],ft={key:1,class:"card__stats__stat__button_empty"},bt=B(Xe,[["render",(e,a,s,i,o,n)=>{const l=t.resolveComponent("BarraLeft"),r=t.resolveComponent("BarraRight");return t.openBlock(),t.createElementBlock("div",Ke,[t.createElementVNode("div",Qe,[t.createElementVNode("div",et,[n.homeTeamLogo?(t.openBlock(),t.createElementBlock("img",{key:0,src:n.homeTeamLogo,alt:""},null,8,tt)):t.createCommentVNode("",!0)]),t.createElementVNode("div",at,t.toDisplayString(s.data.name),1),t.createElementVNode("div",st,[n.awayTeamLogo?(t.openBlock(),t.createElementBlock("img",{key:0,src:n.awayTeamLogo,alt:""},null,8,it)):t.createCommentVNode("",!0)])]),t.createElementVNode("div",ot,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.data.subcategories,(a,s)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:s},[a.isVisible?(t.openBlock(),t.createElementBlock("div",nt,[t.createElementVNode("div",null,[n.canPlayVideos.home&&n.hVal(a)&&"0"!=n.hVal(a).numberValue?(t.openBlock(),t.createElementBlock("div",{key:0,class:"card__stats__stat__button card__stats__stat__button_left",onClick:t=>n.onclickPlayVideos({category:a.accomplishedCategoryIds,type:3,season_id:e.seasonId,team_id:e.homeTeam.team_id},n.canPlayVideos.home)},rt,8,lt)):(t.openBlock(),t.createElementBlock("div",dt))]),t.createElementVNode("div",null,[t.createElementVNode("div",ct,t.toDisplayString(a.name),1),t.createElementVNode("div",mt,[n.hVal(a)?(t.openBlock(),t.createElementBlock("span",pt,[t.createTextVNode(t.toDisplayString(n.deleteDecimalZero(n.formatNumbers(n.hVal(a).numberValue))),1),"Posesión"==a.name?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("%")],64)):t.createCommentVNode("",!0)])):(t.openBlock(),t.createElementBlock("span",ht,"0")),n.aVal(a)?(t.openBlock(),t.createElementBlock("span",ut,[t.createTextVNode(t.toDisplayString(n.deleteDecimalZero(n.formatNumbers(n.aVal(a).numberValue))),1),"Posesión"==a.name?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("%")],64)):t.createCommentVNode("",!0)])):(t.openBlock(),t.createElementBlock("span",yt,"0"))]),t.createElementVNode("div",gt,[t.createElementVNode("div",null,[n.hVal(a)?(t.openBlock(),t.createBlock(l,{key:0,postmatch:n.hVal(a).numberBarPercent},null,8,["postmatch"])):(t.openBlock(),t.createBlock(l,{key:1,postmatch:0}))]),t.createElementVNode("div",null,[n.aVal(a)?(t.openBlock(),t.createBlock(r,{key:0,postmatch:n.aVal(a).numberBarPercent},null,8,["postmatch"])):(t.openBlock(),t.createBlock(r,{key:1,postmatch:0}))])])]),t.createElementVNode("div",null,[n.canPlayVideos.away&&n.aVal(a)&&"0"!=n.aVal(a).numberValue?(t.openBlock(),t.createElementBlock("div",{key:0,class:"card__stats__stat__button card__stats__stat__button_right",onClick:t=>n.onclickPlayVideos({category:a.accomplishedCategoryIds,type:3,season_id:e.seasonId,team_id:e.visitingTeam.team_id},n.canPlayVideos.away)},_t,8,vt)):(t.openBlock(),t.createElementBlock("div",ft))])])):t.createCommentVNode("",!0)],64))),128))])])}],["__scopeId","data-v-74093fb1"]]),wt={name:"GscComparative",props:{local:{type:Object,default(){}},away:{type:Object,default(){}},tournamentType:{type:Number,default:0},fontFamily:{type:String,default:"inherit"}},data(){return{}},computed:{customStyle(){const e={};return this.fontFamily&&(e["font-family"]=""+this.fontFamily),e}},methods:{}},St=e=>(t.pushScopeId("data-v-4a054ef7"),e=e(),t.popScopeId(),e),Tt={class:"comparative-card"},kt=St(()=>t.createElementVNode("div",{class:"header-title"},[t.createElementVNode("span",null,"Comparativa")],-1)),xt={class:"versus"},Ct={class:"team-badge"},It=["src","alt"],Pt=St(()=>t.createElementVNode("div",null,[t.createElementVNode("div",null,[t.createElementVNode("div"),t.createElementVNode("div")]),t.createElementVNode("div",null,[t.createElementVNode("div"),t.createElementVNode("div")])],-1)),Gt=St(()=>t.createElementVNode("span",{class:"vs-text"},"VS",-1)),Ft={class:"team-badge"},At=["src","alt"],Mt={class:"details"},Lt={key:0},Ot={key:0},Nt={key:1},Dt=St(()=>t.createElementVNode("td",null,"Puntos",-1)),Vt=St(()=>t.createElementVNode("td",null,"Partidos jugados",-1)),zt=St(()=>t.createElementVNode("td",null,"Partidos ganados",-1)),jt=St(()=>t.createElementVNode("td",null,"Partidos perdidos",-1)),Bt=St(()=>t.createElementVNode("td",null,"Partidos empatados",-1));let Rt=null;const qt={name:"App",components:{GscLinearTeamStats:bt,TableComparative:B(wt,[["render",(e,a,s,i,o,n)=>(t.openBlock(),t.createElementBlock("div",{class:"comparative-main",style:t.normalizeStyle(n.customStyle)},[t.createElementVNode("div",Tt,[kt,t.createElementVNode("div",xt,[t.createElementVNode("div",Ct,[s.local?(t.openBlock(),t.createElementBlock("img",{key:0,class:"team-badge__image",src:s.local.team_logo,alt:s.local.team_name},null,8,It)):t.createCommentVNode("",!0),Pt]),Gt,t.createElementVNode("div",Ft,[s.away?(t.openBlock(),t.createElementBlock("img",{key:0,class:"team-badge__image",src:s.away.team_logo,alt:s.away.team_name},null,8,At)):t.createCommentVNode("",!0)])]),t.createElementVNode("div",Mt,[s.away&&s.local?(t.openBlock(),t.createElementBlock("table",Lt,[t.createElementVNode("tbody",null,[2!=s.tournamentType?(t.openBlock(),t.createElementBlock("tr",Ot,[t.createElementVNode("td",null,t.toDisplayString(s.local.table_position),1),t.createElementVNode("td",null,[t.createTextVNode("Posición "),0==s.tournamentType?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("en la tabla")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("en el grupo")],64))]),t.createElementVNode("td",null,t.toDisplayString(s.away.table_position),1)])):t.createCommentVNode("",!0),2!=s.tournamentType?(t.openBlock(),t.createElementBlock("tr",Nt,[t.createElementVNode("td",null,t.toDisplayString(s.local.points),1),Dt,t.createElementVNode("td",null,t.toDisplayString(s.away.points),1)])):t.createCommentVNode("",!0),t.createElementVNode("tr",null,[t.createElementVNode("td",null,t.toDisplayString(s.local.games_played),1),Vt,t.createElementVNode("td",null,t.toDisplayString(s.away.games_played),1)]),t.createElementVNode("tr",null,[t.createElementVNode("td",null,t.toDisplayString(s.local.games_won),1),zt,t.createElementVNode("td",null,t.toDisplayString(s.away.games_won),1)]),t.createElementVNode("tr",null,[t.createElementVNode("td",null,t.toDisplayString(s.local.games_lost),1),jt,t.createElementVNode("td",null,t.toDisplayString(s.away.games_lost),1)]),t.createElementVNode("tr",null,[t.createElementVNode("td",null,t.toDisplayString(s.local.games_tied),1),Bt,t.createElementVNode("td",null,t.toDisplayString(s.away.games_tied),1)])])])):t.createCommentVNode("",!0)])])],4))],["__scopeId","data-v-4a054ef7"]]),GSCSlider:p.GSCSlider},props:{seasonSelected:{type:Object,default:()=>({})},canPlayVideos:{type:Boolean,default:!0},tournamentType:{type:Number,default:0},playVideosPrivileges:{type:Object,default:null}},computed:{...o.mapState("nextGeneral",["gameForAnalysis","seasonId","isLive","showLiveData"]),...o.mapGetters("nextGeneral",["arrayFilledDataSortedByPriority"]),isComparativeVisible(){return!this.isLive&&!this.showLiveData}},watch:{gameForAnalysis:{handler(){this.getTableList()},immediate:!0}},data(){return{gamesContainerWidth:0,token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",url:"https://jfxv8fqkn3.execute-api.us-west-2.amazonaws.com/prod/generalTable/",gameId:79623,movil:!1,home:null,away:null}},methods:{openmedia(e){this.$emit("openmedia",e)},setUpResizeObserver(){if(!window.ResizeObserver)throw Error("Resize observer not supported!");Rt=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.movil=680>this.gamesContainerWidth}),Rt.observe(this.$refs.gamesContainer)},async getTableList(){try{const e=m.create({headers:{Authorization:""+this.token}}),t=await e.get(this.url+this.seasonSelected.id);let a=-1,s=-1;if(1!=this.tournamentType)a=t.data.data.findIndex(e=>e.team_id===this.gameForAnalysis.home_team),s=t.data.data.findIndex(e=>e.team_id===this.gameForAnalysis.visiting_team);else for(let i=0;i<t.data.groups.length;i++)-1==a&&(a=t.data.groups[i].data.findIndex(e=>e.team_id===this.gameForAnalysis.home_team),-1!=a&&(this.home=t.data.groups[i].data[a])),-1==s&&(s=t.data.groups[i].data.findIndex(e=>e.team_id===this.gameForAnalysis.visiting_team),-1!=s&&(this.away=t.data.groups[i].data[s]));1!=this.tournamentType&&(this.home=t.data.data[a],this.away=t.data.data[s])}catch(e){}}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},Et={class:"container",ref:"gamesContainer"},Jt={key:0,class:"grid-container"},Wt={key:0,class:"item"},Ht={class:"item"},Ut={class:"item"},Zt={class:"item"},$t={class:"item"},Xt={class:"item"},Yt={class:"item"},Kt={class:"grid-container"},Qt={key:0,class:"item-comparative"},ea={class:"table-movil-container"},ta=B(qt,[["render",(e,a,s,i,o,n)=>{const l=t.resolveComponent("TableComparative"),r=t.resolveComponent("GscLinearTeamStats"),d=t.resolveComponent("GSCSlider");return t.openBlock(),t.createElementBlock("div",Et,[o.movil?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("div",Kt,[o.home&&o.away&&n.isComparativeVisible?(t.openBlock(),t.createElementBlock("div",Qt,[t.createVNode(l,{local:o.home,"tournament-type":s.tournamentType,away:o.away,fontFamily:"Poppins-Light"},null,8,["local","tournament-type","away"])])):t.createCommentVNode("",!0)]),t.createVNode(d,{backgroundColor:"none",pxScroll:300,scrollColor:"none",arrowsPosition:"relative",arrowsScrollHide:!1,arrowsBackground:"rgba(255,255,255,.16)",arrowsContainerBgL:"none",arrowsContainerBgR:"none",arrowsMargin:0,arrowsRadius:"50%",arrowsBorder:"#ddd"},{default:t.withCtx(()=>[t.createElementVNode("div",ea,[t.createElementVNode("div",{class:"item-movil",style:t.normalizeStyle(510>o.gamesContainerWidth&&o.gamesContainerWidth>450?"width: 400px":o.gamesContainerWidth>450?"":"width: 360px")},[t.createVNode(r,{"play-videos-privileges":s.playVideosPrivileges,onOpenmedia:n.openmedia,data:e.arrayFilledDataSortedByPriority[0],teams:{home:o.home,away:o.away}},null,8,["play-videos-privileges","onOpenmedia","data","teams"])],4),t.createElementVNode("div",{class:"item-movil",style:t.normalizeStyle(510>o.gamesContainerWidth?"width: 400px":450>o.gamesContainerWidth?"width: 360px":"")},[t.createVNode(r,{"play-videos-privileges":s.playVideosPrivileges,onOpenmedia:n.openmedia,data:e.arrayFilledDataSortedByPriority[1],teams:{home:o.home,away:o.away}},null,8,["play-videos-privileges","onOpenmedia","data","teams"])],4),t.createElementVNode("div",{class:"item-movil",style:t.normalizeStyle(510>o.gamesContainerWidth?"width: 400px":450>o.gamesContainerWidth?"width: 360px":"")},[t.createVNode(r,{"play-videos-privileges":s.playVideosPrivileges,onOpenmedia:n.openmedia,data:e.arrayFilledDataSortedByPriority[2],teams:{home:o.home,away:o.away}},null,8,["play-videos-privileges","onOpenmedia","data","teams"])],4),t.createElementVNode("div",{class:"item-movil",style:t.normalizeStyle(510>o.gamesContainerWidth?"width: 400px":450>o.gamesContainerWidth?"width: 360px":"")},[t.createVNode(r,{"play-videos-privileges":s.playVideosPrivileges,onOpenmedia:n.openmedia,data:e.arrayFilledDataSortedByPriority[3],teams:{home:o.home,away:o.away}},null,8,["play-videos-privileges","onOpenmedia","data","teams"])],4),t.createElementVNode("div",{class:"item-movil",style:t.normalizeStyle(510>o.gamesContainerWidth?"width: 400px":450>o.gamesContainerWidth?"width: 360px":"")},[t.createVNode(r,{"play-videos-privileges":s.playVideosPrivileges,onOpenmedia:n.openmedia,data:e.arrayFilledDataSortedByPriority[4],teams:{home:o.home,away:o.away}},null,8,["play-videos-privileges","onOpenmedia","data","teams"])],4),t.createElementVNode("div",{class:"item-movil",style:t.normalizeStyle(510>o.gamesContainerWidth?"width: 400px":450>o.gamesContainerWidth?"width: 360px":"")},[t.createVNode(r,{"play-videos-privileges":s.playVideosPrivileges,onOpenmedia:n.openmedia,data:e.arrayFilledDataSortedByPriority[5],teams:{home:o.home,away:o.away}},null,8,["play-videos-privileges","onOpenmedia","data","teams"])],4)])]),o:1})],64)):(t.openBlock(),t.createElementBlock("div",Jt,[o.home&&o.away&&n.isComparativeVisible?(t.openBlock(),t.createElementBlock("div",Wt,[t.createVNode(l,{local:o.home,"tournament-type":s.tournamentType,away:o.away,fontFamily:"Poppins-Light"},null,8,["local","tournament-type","away"])])):t.createCommentVNode("",!0),t.createElementVNode("div",Ht,[t.createVNode(r,{"play-videos-privileges":s.playVideosPrivileges,"can-play-videos":s.canPlayVideos,data:e.arrayFilledDataSortedByPriority[0],teams:{home:o.home,away:o.away},onOpenmedia:n.openmedia},null,8,["play-videos-privileges","can-play-videos","data","teams","onOpenmedia"])]),t.createElementVNode("div",Ut,[t.createVNode(r,{"play-videos-privileges":s.playVideosPrivileges,"can-play-videos":s.canPlayVideos,data:e.arrayFilledDataSortedByPriority[1],teams:{home:o.home,away:o.away},onOpenmedia:n.openmedia},null,8,["play-videos-privileges","can-play-videos","data","teams","onOpenmedia"])]),t.createElementVNode("div",Zt,[t.createVNode(r,{"play-videos-privileges":s.playVideosPrivileges,"can-play-videos":s.canPlayVideos,data:e.arrayFilledDataSortedByPriority[2],teams:{home:o.home,away:o.away},onOpenmedia:n.openmedia},null,8,["play-videos-privileges","can-play-videos","data","teams","onOpenmedia"])]),t.createElementVNode("div",$t,[t.createVNode(r,{"play-videos-privileges":s.playVideosPrivileges,"can-play-videos":s.canPlayVideos,data:e.arrayFilledDataSortedByPriority[3],teams:{home:o.home,away:o.away},onOpenmedia:n.openmedia},null,8,["play-videos-privileges","can-play-videos","data","teams","onOpenmedia"])]),t.createElementVNode("div",Xt,[t.createVNode(r,{"play-videos-privileges":s.playVideosPrivileges,"can-play-videos":s.canPlayVideos,data:e.arrayFilledDataSortedByPriority[4],teams:{home:o.home,away:o.away},onOpenmedia:n.openmedia},null,8,["play-videos-privileges","can-play-videos","data","teams","onOpenmedia"])]),t.createElementVNode("div",Yt,[t.createVNode(r,{"play-videos-privileges":s.playVideosPrivileges,"can-play-videos":s.canPlayVideos,data:e.arrayFilledDataSortedByPriority[5],teams:{home:o.home,away:o.away},onOpenmedia:n.openmedia},null,8,["play-videos-privileges","can-play-videos","data","teams","onOpenmedia"])])]))],512)}]]),aa=["#0033C5","#cbee6b"],sa={name:"DistributionChart",components:{},props:{seasonSelected:{type:Object,default:()=>({})}},data(){return{arrayChartTypes:["General","Ofensivo","Defensivo","Posesión","Balón parado","Infracciones"],height:409,updateCategory:0,homeTeamSelectedPlaysType:0,visitingTeamSelectedPlaysType:0,chartKeyCounter:0,homeTeamPlaysTypes:{history:0,live:1},visitingTeamPlaysTypes:{history:0,live:1},tooltip:{show:!1,data:{},names:{},keyName:"",leagueAvg:"",showLiveData:!1,local:!1,x:0,y:0},globals:{x:0,y:0},arrayDataForCharts:[],arrayChartOptions:[],arrayFilledSeries:[]}},watch:{menuOptionActive(){this.idAssetSelected},idAssetSelected(){3===this.idAssetSelected&&this.chartKeyCounter++},isMobile(e){this.chartOptions.legend.horizontalAlign=e?"center":"left",this.chartKeyCounter++},arrayFilledDataSortedByPriority:{immediate:!0,deep:!0,handler(){this.fillData()}},showLiveData(){this.fillData()}},computed:{...o.mapState("nextGeneral",["showLiveData","gameForAnalysis"]),...o.mapGetters("nextGeneral",["idAssetSelected","menuOptionActive","homeTeamStatisticsType","showPostMatchData","visitingTeamStatisticsType","homeTeam","visitingTeam","subcategoryName","accomplished","arrayFilledDataSortedByPriority","filledDataStructure","showPostMatchData"]),isMobile(){return"mobile"===this.$mq},isLiveLike(){return 0===this.gameForAnalysis.game_status||this.gameForAnalysis.is_live}},methods:{avg(e,t){return t?e.leagueAccomplishedAvg:e.leagueReceivedAvg},fillData(){this.arrayChartOptions=[],this.arrayFilledDataSortedByPriority&&this.arrayFilledDataSortedByPriority.length&&"object"==typeof this.arrayFilledDataSortedByPriority[0].subcategories?(this.arrayChartOptions=[],this.arrayFilledSeries=[],this.arrayDataForCharts=[],this.arrayFilledDataSortedByPriority.forEach((e,t)=>{const a=this.getChartOptions(),s=this.getChartSeries(e.subcategories,a);this.arrayFilledSeries.push(s),this.arrayChartOptions.push(a),e.id="dC"+t;const i=this.$refs[e.id];i&&i[0].updateSeries(s,!0),this.arrayDataForCharts.push(e)})):this.arrayDataForCharts=[]},getChartOptions(){return{plotOptions:{radar:{size:132,polygons:{strokeColors:"#606971"}}},chart:{type:"radar",height:509,toolbar:{show:!1}},colors:aa,fill:{colors:aa,opacity:.4},legend:{show:!0,position:"bottom",horizontalAlign:"left",fontSize:"11px",fontFamily:"Poppins-Regular",labels:{colors:"#d9d9d9",useSeriesColors:!1}},xaxis:{categories:[],labels:{show:!0,style:{fontSize:"11px",fontFamily:"Poppins-Regular"}}},yaxis:{show:!1},responsive:[{breakpoint:770,options:{chart:{height:300},plotOptions:{radar:{size:100,offsetY:10,polygons:{strokeColors:"#606971"}},bar:{horizontal:!1}},legend:{position:"top",horizontalAlign:"center"},xaxis:{labels:{show:!0,style:{fontSize:"11px"}}}}},{breakpoint:450,options:{plotOptions:{radar:{size:70,offsetY:-20,polygons:{strokeColors:"#dcdcdc"}},bar:{horizontal:!1}},legend:{position:"top",horizontalAlign:"center"},xaxis:{labels:{show:!0,style:{fontSize:"10px"}}}}}],tooltip:{intersect:!0,followCursor:!0,shared:!1,theme:"dark",style:{fontSize:"12px"},custom({series:e,seriesIndex:t,dataPointIndex:a,w:s}){const i=s.config.arraySubcategories[a].name,o=s.config.series[t].name,n=s.config.series[t].dataTotal[a],l=e[t][a];return"3-0"===s.config.arraySubcategories[a].id?`\n <div class="custom-tooltip-apexchart" style="display: none !important;">\n <div class="__title">${i}:</div>\n <div class="__totals">${o}: ${l}%</div>\n </div>\n `:`\n <div class="custom-tooltip-apexchart">\n <div class="__title">${i}:</div>\n <div class="__totals">${o}: ${n}</div>\n </div>\n `}}}},getChartSeries(e,t){let a,s;return this.showPostMatchData?(a={name:""+this.homeTeam.acronym,data:[],dataTotal:[]},s={name:""+this.visitingTeam.acronym,data:[],dataTotal:[]},t.arraySubcategories=[],Object.values(e).forEach((e,i)=>{if(e.isVisible){t.xaxis.categories.push(this.prepareLabels(e,i)),t.arraySubcategories.push(e);const o=e.homeTeam[this.homeTeamStatisticsType].totalPostGame+e.visitingTeam[this.visitingTeamStatisticsType].totalPostGame;a.data.push(Math.round(120*(o?e.homeTeam[this.homeTeamStatisticsType].totalPostGame/o:0))),a.dataTotal.push(e.homeTeam[this.homeTeamStatisticsType].totalPostGame),s.data.push(Math.round(120*(o?e.visitingTeam[this.visitingTeamStatisticsType].totalPostGame/o:0))),s.dataTotal.push(e.visitingTeam[this.visitingTeamStatisticsType].totalPostGame)}})):(a={name:`${this.isLiveLike&&this.showLiveData?"Live":"Histórico"} ${this.homeTeam.acronym}`,data:[],dataTotal:[]},s={name:`${this.isLiveLike&&this.showLiveData?"Live":"Histórico"} ${this.visitingTeam.acronym}`,data:[],dataTotal:[]},t.arraySubcategories=[],Object.values(e).forEach((e,i)=>{if(e.isVisible){let o,n,l,r;t.xaxis.categories.push(this.prepareLabels(e,i)),t.arraySubcategories.push(e);const d=e.homeTeam.accomplished.avgPostGame+e.visitingTeam.accomplished.avgPostGame;if(this.isLiveLike&&this.showLiveData){const t=e.homeTeam[this.homeTeamStatisticsType].totalLive+e.visitingTeam[this.visitingTeamStatisticsType].totalLive;o=t?e.homeTeam[this.homeTeamStatisticsType].totalLive/t:0,l=e.homeTeam[this.homeTeamStatisticsType].totalLive}else 1!==this.gameForAnalysis.game_status&&3===e.generalCategoriesIds.accomplished?(o=e.homeTeam.accomplished.avgPostGame/d,l=e.homeTeam.accomplished.totalPostGame):(o=d?e.homeTeam[this.homeTeamStatisticsType].avgPostGame/d:0,l=e.homeTeam[this.homeTeamStatisticsType].totalPostGame);if(this.isLiveLike&&this.showLiveData){const t=e.homeTeam[this.homeTeamStatisticsType].totalLive+e.visitingTeam[this.visitingTeamStatisticsType].totalLive;n=t?e.visitingTeam[this.visitingTeamStatisticsType].totalLive/t:0,r=e.visitingTeam[this.visitingTeamStatisticsType].totalLive}else 1!==this.gameForAnalysis.game_status&&3===e.generalCategoriesIds.accomplished?(n=e.visitingTeam.accomplished.avgPostGame/d,r=e.visitingTeam.accomplished.totalPostGame):(n=d?e.visitingTeam[this.visitingTeamStatisticsType].avgPostGame/d:0,r=e.visitingTeam[this.visitingTeamStatisticsType].totalPostGame);a.data.push(Math.round(120*o)),a.dataTotal.push(Math.round(l)),s.data.push(Math.round(120*n)),s.dataTotal.push(Math.round(r))}})),[a,s]},onHomeTeamPlaysTypeChanged(e){this.homeTeamSelectedPlaysType=e},onVisitingTeamPlaysTypeChanged(e){this.visitingTeamSelectedPlaysType=e},getSubcategoryData(e,t="homeTeam"){return"3-0"===e.id&&(e[t].accomplished.totalLiveBothTeams=e.homeTeam.accomplished.totalLive+e.visitingTeam.accomplished.totalLive),e[t].accomplished||0},showModal(e,t,a){const s=0===a?"homeTeam":"visitingTeam",i=e.config.arraySubcategories[t]||{};this.tooltip.isLeagueAvgVisible="3-0"!==i.id,this.tooltip.data=this.getSubcategoryData(i,s),this.tooltip.local=0===a,this.tooltip.names=i.names,this.tooltip.keyName=this.subcategoryName,this.tooltip.leagueAvg=this.leagueAvg(i);const o=e.globals.clientX||0,n=e.globals.clientY||0;this.globals.x=o,this.globals.y=n,this.tooltip.x=o,this.tooltip.y=n>700?n-250:n;const l=3===i.generalCategoriesIds.accomplished;if(l){const e=i.homeTeam.accomplished.avgPostGame+i.visitingTeam.accomplished.avgPostGame;this.tooltip.numberValue=e?i[s].accomplished.avgPostGame/e*100:0}else this.tooltip.numberValue=null;return this.tooltip.booleanIsPercent=l,this.tooltip.show=!0,this.tooltip.data},updateTooltip(e){const t=Math.abs(e.clientX-this.globals.x),a=Math.abs(e.clientY-this.globals.y);(t>5||a>5)&&(this.tooltip.show=!1)},prepareLabels(e,t){let a=e.name||e.names[this.subcategoryName]||e.names["0-0"];if(0===t)return a;if(a.length>13){let e=a.split(" ");a=[];let t="",s="",i=e.slice(-1)[0];e.forEach(e=>{t+=` ${e} `,t.length>13&&(a.push(s.trim()),t=e),s=t,i===e&&a.push(s.trim())})}return a},leagueAvg(e){return 3===e.generalCategoriesIds.accomplished?(e.homeTeam.accomplished.arrayRankings.reduce((e,t)=>e+t.points,0)/e.homeTeam.accomplished.arrayRankings.length*100).toFixed(2):this.avg(e,this.accomplished)}}},ia={class:"distribution"},oa={class:"distribution__container"},na={class:"distribution__container__chart-type__title"},la=(e=>(t.pushScopeId("data-v-0b7d62f2"),e=e(),t.popScopeId(),e))(()=>t.createElementVNode("div",{class:"distribution__container__chart-type__controls"},null,-1)),ra={class:"distribution__container__chart-type__chart"},da=B(sa,[["render",(e,a,s,i,o,n)=>{const l=t.resolveComponent("apexchart");return t.openBlock(),t.createElementBlock("div",ia,[t.createElementVNode("div",oa,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(o.arrayDataForCharts,(e,a)=>(t.openBlock(),t.createElementBlock("div",{class:"distribution__container__chart-type",key:a},[t.createElementVNode("div",na,t.toDisplayString(e.name),1),la,t.createElementVNode("div",ra,[t.createVNode(l,{ref_for:!0,ref:e.id,type:"radar",height:o.height,options:o.arrayChartOptions[a],series:o.arrayFilledSeries[a]},null,8,["height","options","series"])])]))),128))])])}],["__scopeId","data-v-0b7d62f2"]]),ca=B({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(e){this.visible=!1}}},[["render",(e,a,s,i,o,n)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["box-tooltip",n.showTooltip]),style:t.normalizeStyle(n.positionTooltip),onClick:a[0]||(a[0]=(...e)=>n.tooltipClick&&n.tooltipClick(...e))},[t.renderSlot(e.$slots,"default",{},void 0,!0)],6))],["__scopeId","data-v-33a39744"]]),ma={name:"SoccerChalkboardXg",components:{Tooltip:ca},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:{...o.mapGetters("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:100*e.x1,y1:100*e.y1,x2:100*e.x2,y2:100*e.y2,x3:100*e.x3,y3:100*e.y3,xGi:e.xG1,xGf:e.xG2}))},localCategories(){return this.categories.map((e,t)=>({id:t,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((e,t)=>[...e,t.categories],[]);return this.preparedPlays.filter(t=>this.findCategoryInPlay(e,t)).reduce((e,t)=>{let a=this.localCategories.find(e=>this.findCategoryInPlay(e.categories,t));if(a){let s={category:a.id,categoryName:a.name,arrowColor:a.negative?this.negativeColor:a.color,arrowMarkerColor:a.negative?"url(#arrow-negative)":`url(#arrow-${a.id})`,markerColor:a.color,jersey:t.jersey_number,matchlapse:t.matchLapse,playerName:t.player_name,photo:t.photo,rivalLogo:t.rival_id,x1:a.invert.includes(t.categoryId)?100-t["x"+a.points[0]]:t["x"+a.points[0]],y1:a.invert.includes(t.categoryId)?100-t["y"+a.points[0]]:t["y"+a.points[0]],x2:a.invert.includes(t.categoryId)?100-t["x"+a.points[1]]:t["x"+a.points[1]],y2:a.invert.includes(t.categoryId)?100-t["y"+a.points[1]]:t["y"+a.points[1]],x3:a.invert.includes(t.categoryId)?100-t["x"+a.points[2]]:t["x"+a.points[2]],y3:a.invert.includes(t.categoryId)?100-t["y"+a.points[2]]:t["y"+a.points[2]],momentOfPlay:t.moment_of_play,isOwnGoal:a.invert.includes(t.categoryId),xGi:t.xGi,xGf:t.xGf};e.push(s)}return e},[])}},methods:{findCategoryInPlay(e,t){return e.find(e=>"number"==typeof e?e===t.categoryId:e.includes(t.categoryId))},onMouseOver(e,t){this.dataPlay.playerName=t.playerName||"",this.dataPlay.photo=t.photo||"",this.dataPlay.minute=parseInt(t.momentOfPlay.split(":")[0])||"",this.dataPlay.rivalLogo=t.rivalLogo||"",this.dataPlay.categoryName=t.categoryName||"",this.dataPlay.rivalName="Visiting"==this.team?this.homeTeam.colloquial_name:this.visitingTeam.colloquial_name,this.dataPlay.xGi=t.xGi+"",this.dataPlay.xGf=t.xGf+"",this.dataPlay.isOwnGoal=t.isOwnGoal,this.data.visible=!0},onMouseLeave(){this.data.visible=!1}}},pa=e=>(t.pushScopeId("data-v-97159710"),e=e(),t.popScopeId(),e),ha={class:"soccer-chalkboard-xg"},ua={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 490 684","xmlns:xlink":"http://www.w3.org/1999/xlink",class:"soccer-chalkboard"},ya={xmlns:"http://www.w3.org/2000/svg",viewBox:"30 0 452 684","xmlns:xlink":"http://www.w3.org/1999/xlink"},ga=pa(()=>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)),va=["id"],_a=["fill"],fa=pa(()=>t.createElementVNode("pattern",{id:"fieldBackground",width:"1",height:"1",viewBox:"0 0 100 100",preserveAspectRatio:"none"},[t.createElementVNode("image",{"xlink:href":"https://golstatsimages.blob.core.windows.net/todoelfut/fieldbg.png",width:"100",height:"100",preserveAspectRatio:"none",id:"image2"})],-1)),ba=["id"],wa=["x1","y1","x2","y2","stroke"],Sa=["x1","y1","x2","y2","stroke","marker-end"],Ta=["onMouseover"],ka=["x","y","fill"],xa=["x","y"],Ca={class:"tooltip-data has-text-left"},Ia={class:"bold"},Pa={class:"tooltip-image"},Ga={class:"tooltip-image"},Fa=["src"],Aa={class:"tooltip-xg"},Ma={key:0},La=pa(()=>t.createElementVNode("span",null,"xGi:",-1)),Oa=pa(()=>t.createElementVNode("div",{class:"tooltip-xg-separator"},null,-1)),Na={key:1},Da=pa(()=>t.createElementVNode("span",null,"xGf:",-1)),Va=B(ma,[["render",(e,a,s,i,o,n)=>{const l=t.resolveComponent("Tooltip");return t.openBlock(),t.createElementBlock("div",ha,[(t.openBlock(),t.createElementBlock("svg",ua,[(t.openBlock(),t.createElementBlock("svg",ya,[t.createElementVNode("defs",null,[ga,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.localCategories,e=>(t.openBlock(),t.createElementBlock("marker",{key:"arrow-color-"+e.id,id:"arrow-"+e.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:e.color},null,8,_a)],8,va))),128)),fa]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.graphPlays,e=>(t.openBlock(),t.createElementBlock("g",{key:e.id,id:"play-"+e.playId},[t.createElementVNode("line",{x1:e.x1+"%",y1:e.y1+"%",x2:e.x2+"%",y2:e.y2+"%",stroke:e.arrowColor,"stroke-width":"2"},null,8,wa),t.createElementVNode("line",{x1:e.x2+"%",y1:e.y2+"%",x2:e.x3+"%",y2:e.y3+"%",stroke:e.arrowColor,"stroke-width":"2","marker-end":e.arrowMarkerColor},null,8,Sa),t.createElementVNode("g",{onMouseover:t=>n.onMouseOver(t,e),onMouseleave:a[0]||(a[0]=(...e)=>n.onMouseLeave&&n.onMouseLeave(...e)),class:"is-pointer"},[t.createElementVNode("rect",{x:e.x1+"%",y:e.y1+"%",transform:"translate(-14, -14)",height:"28",width:"28","stroke-width":"2",fill:e.markerColor,stroke:"#999",rx:"14",ry:"14"},null,8,ka),t.createElementVNode("text",{"text-anchor":"middle","dominant-baseline":"middle",x:e.x1+"%",y:e.y1+"%",dy:"1","font-size":"15",fill:"#fff","font-family":"'Poppins-SemiBold', sans-serif"},t.toDisplayString(e.jersey),9,xa)],40,Ta)],8,ba))),128))]))])),t.createVNode(l,{data:o.data},{default:t.withCtx(()=>[t.createElementVNode("div",Ca,[t.createElementVNode("div",null,[t.createElementVNode("span",Ia,t.toDisplayString(o.dataPlay.isOwnGoal?"Autogol":o.dataPlay.categoryName),1)]),t.createElementVNode("div",null,[t.createTextVNode(t.toDisplayString(o.dataPlay.playerName)+" ",1),t.createElementVNode("div",Pa,[t.createElementVNode("div",{class:"tooltip-image-player",style:t.normalizeStyle("background: url("+o.dataPlay.photo+") top")},null,4)])]),t.createElementVNode("div",null,"Minuto:  "+t.toDisplayString(o.dataPlay.minute)+"'",1),t.createElementVNode("div",null,[t.createTextVNode(" Rival: "),t.createElementVNode("div",Ga,[t.createElementVNode("img",{src:o.dataPlay.rivalLogo},null,8,Fa)])]),t.createElementVNode("div",Aa,[!/^[+]?([0-1]+(?:[\.][0-9]*)?|\.[0-9]+)$/.test(o.dataPlay.xGi)||o.dataPlay.xGi>1||o.dataPlay.isOwnGoal?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",Ma,[La,t.createTextVNode(" "+t.toDisplayString(+o.dataPlay.xGi),1)])),Oa,!/^[+]?([0-1]+(?:[\.][0-9]*)?|\.[0-9]+)$/.test(o.dataPlay.xGf)||o.dataPlay.xGf>1||o.dataPlay.isOwnGoal?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",Na,[Da,t.createTextVNode(" "+t.toDisplayString(+o.dataPlay.xGf),1)]))])])]),o:1},8,["data"])])}],["__scopeId","data-v-97159710"]]),za=[12,55,35,54],ja=[510],Ba=[330,331,333,334,423,424,343,344],Ra=[29,269],qa=new Set(za),Ea=new Set(ja),Ja=new Set(Ba),Wa=new Set(Ra),Ha=[{name:"Goles",color:"#336DFF",points:[1,2,3],categories:za,invert:[35,54],negative:!1},{name:"Tiros a gol",color:"#7ED321",points:[1,2,3],categories:ja},{name:"Remates con cabeza",color:"#990BFF",points:[1,2,3],categories:Ba},{name:"Penales",color:"#21BBD3",points:[1,2,3],categories:Ra}],Ua={name:"XgLocal",components:{SoccerChalkboard:Va},props:{},data(){return{categories:Ha}},computed:{...o.mapState("nextGeneral",["usePastSeasonId","pastSeasonId","gameId"]),...o.mapState("general",["booleanIsStatisticModalOpen"]),...o.mapGetters("xgGeneral",["playsLocal","goalsQtyLocal","headQtyLocal","penaltiesQtyLocal","shotsOnGoalQtyLocal","xGLocal"]),...o.mapGetters("nextGeneral",["getSeasonId","homeTeam","visitingTeam","showPostMatchData","game","getGameForAnalysis"]),...o.mapGetters("loginGeneral",["getPremiumAccount","getIsGolstats"]),...o.mapGetters("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:"Remates con cabeza",value:this.headQtyLocal},{title:"Penales",value:this.penaltiesQtyLocal},{title:"Goles esperados (xG)",value:this.xGLocal}]}},watch:{getGameForAnalysis:{deep:!0,handler(e){e&&this.fillXgPlays()}}},methods:{...o.mapMutations("general",["setVideoSrc","setVideoModalVisibility"]),...o.mapMutations("xgGeneral",["setTeamSelected"]),...o.mapActions("xgGeneral",["getXgPlays"]),openXgVideo(){this.setVideoSrc(""),this.setVideoModalVisibility(!0)},getTeamId(){return this.homeTeam.team_id},fillXgPlays(){1!==this.getGameForAnalysis.game_status?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()}},Za=e=>(t.pushScopeId("data-v-531dea38"),e=e(),t.popScopeId(),e),$a={class:"xg-container"},Xa={class:"xg-container__info"},Ya=Za(()=>t.createElementVNode("div",{class:"title"},"Goles esperados (xG)",-1)),Ka={class:"table"},Qa={class:"table__row"},es={class:"table__row__title"},ts={class:"table__row__value"},as=["src"],ss={class:"table__row"},is={class:"table__row__title"},os={class:"table__row__value"},ns={class:"table__row"},ls={class:"table__row__title"},rs={class:"table__row__value"},ds={class:"table__row"},cs={class:"table__row__title"},ms={class:"table__row__value"},ps={class:"table__row"},hs={class:"table__row__title"},us={class:"table__row__value"},ys=Za(()=>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)),gs={class:"xg-container__field"},vs=B(Ua,[["render",(e,a,s,i,o,n)=>{const l=t.resolveComponent("SoccerChalkboard");return t.openBlock(),t.createElementBlock("div",$a,[t.createElementVNode("div",Xa,[Ya,t.createElementVNode("div",Ka,[t.createElementVNode("div",Qa,[t.createElementVNode("div",es,t.toDisplayString(n.gxInfoItems[0].title),1),t.createElementVNode("div",ts,[t.createTextVNode(t.toDisplayString(n.gxInfoItems[0].value),1),t.createElementVNode("img",{class:"img-abs",src:n.stringSelectedTeamLogo},null,8,as)])]),t.createElementVNode("div",ss,[t.createElementVNode("div",is,t.toDisplayString(n.gxInfoItems[1].title),1),t.createElementVNode("div",os,t.toDisplayString(n.gxInfoItems[1].value),1)]),t.createElementVNode("div",ns,[t.createElementVNode("div",ls,t.toDisplayString(n.gxInfoItems[2].title),1),t.createElementVNode("div",rs,t.toDisplayString(n.gxInfoItems[2].value),1)]),t.createElementVNode("div",ds,[t.createElementVNode("div",cs,t.toDisplayString(n.gxInfoItems[3].title),1),t.createElementVNode("div",ms,t.toDisplayString(n.gxInfoItems[3].value),1)]),t.createElementVNode("div",ps,[t.createElementVNode("div",hs,t.toDisplayString(n.gxInfoItems[4].title),1),t.createElementVNode("div",us,t.toDisplayString(n.gxInfoItems[4].value),1)])]),ys]),t.createElementVNode("div",gs,[t.createVNode(l,{plays:e.playsLocal,categories:o.categories,team:e.team},null,8,["plays","categories","team"])])])}],["__scopeId","data-v-531dea38"]]),_s={name:"XgAway",components:{SoccerChalkboard:Va},props:{team:{type:String,default:"Visiting"}},data(){return{categories:Ha}},computed:{...o.mapState("nextGeneral",["usePastSeasonId","pastSeasonId","gameId"]),...o.mapState("general",["booleanIsStatisticModalOpen"]),...o.mapGetters("xgGeneral",["playsAway","goalsQtyAway","headQtyAway","penaltiesQtyAway","shotsOnGoalQtyAway","xGAway"]),...o.mapGetters("nextGeneral",["getSeasonId","homeTeam","visitingTeam","showPostMatchData","game","getGameForAnalysis"]),...o.mapGetters("loginGeneral",["getPremiumAccount","getIsGolstats"]),...o.mapGetters("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:"Remates con cabeza",value:this.headQtyAway},{title:"Penales",value:this.penaltiesQtyAway},{title:"Goles esperados (xG)",value:this.xGAway}]}},watch:{getGameForAnalysis:{deep:!0,handler(e){e&&this.fillXgPlays()}}},methods:{...o.mapMutations("general",["setVideoSrc","setVideoModalVisibility"]),...o.mapMutations("xgGeneral",["setTeamSelected"]),...o.mapActions("xgGeneral",["getXgPlays"]),openXgVideo(){this.setVideoSrc(""),this.setVideoModalVisibility(!0)},getTeamId(){return this.visitingTeam.team_id},fillXgPlays(){1!=this.getGameForAnalysis.game_status?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()}},fs=e=>(t.pushScopeId("data-v-fcd7734d"),e=e(),t.popScopeId(),e),bs={class:"xg-container"},ws={class:"xg-container__info"},Ss=fs(()=>t.createElementVNode("div",{class:"title"},"Goles esperados (xG)",-1)),Ts={class:"table"},ks={class:"table__row"},xs={class:"table__row__title"},Cs={class:"table__row__value"},Is=["src"],Ps={class:"table__row"},Gs={class:"table__row__title"},Fs={class:"table__row__value"},As={class:"table__row"},Ms={class:"table__row__title"},Ls={class:"table__row__value"},Os={class:"table__row"},Ns={class:"table__row__title"},Ds={class:"table__row__value"},Vs={class:"table__row"},zs={class:"table__row__title"},js={class:"table__row__value"},Bs=fs(()=>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)),Rs={class:"xg-container__field"},qs=B(_s,[["render",(e,a,s,i,o,n)=>{const l=t.resolveComponent("SoccerChalkboard");return t.openBlock(),t.createElementBlock("div",null,[t.createElementVNode("div",bs,[t.createElementVNode("div",ws,[Ss,t.createElementVNode("div",Ts,[t.createElementVNode("div",ks,[t.createElementVNode("div",xs,t.toDisplayString(n.gxInfoItems[0].title),1),t.createElementVNode("div",Cs,[t.createTextVNode(t.toDisplayString(n.gxInfoItems[0].value),1),t.createElementVNode("img",{class:"img-abs",src:n.stringSelectedTeamLogo},null,8,Is)])]),t.createElementVNode("div",Ps,[t.createElementVNode("div",Gs,t.toDisplayString(n.gxInfoItems[1].title),1),t.createElementVNode("div",Fs,t.toDisplayString(n.gxInfoItems[1].value),1)]),t.createElementVNode("div",As,[t.createElementVNode("div",Ms,t.toDisplayString(n.gxInfoItems[2].title),1),t.createElementVNode("div",Ls,t.toDisplayString(n.gxInfoItems[2].value),1)]),t.createElementVNode("div",Os,[t.createElementVNode("div",Ns,t.toDisplayString(n.gxInfoItems[3].title),1),t.createElementVNode("div",Ds,t.toDisplayString(n.gxInfoItems[3].value),1)]),t.createElementVNode("div",Vs,[t.createElementVNode("div",zs,t.toDisplayString(n.gxInfoItems[4].title),1),t.createElementVNode("div",js,t.toDisplayString(n.gxInfoItems[4].value),1)])]),Bs]),t.createElementVNode("div",Rs,[t.createVNode(l,{plays:e.playsAway,categories:o.categories,team:s.team},null,8,["plays","categories","team"])])])])}],["__scopeId","data-v-fcd7734d"]]),Es={name:"SoccerChalkboardXgMobile",components:{Tooltip:ca},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:{...o.mapGetters("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:100*e.x1,y1:100*e.y1,x2:100*e.x2,y2:100*e.y2,x3:100*e.x3,y3:100*e.y3,xGi:e.xG1,xGf:e.xG2}))},localCategories(){return this.categories.map((e,t)=>({id:t,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((e,t)=>[...e,t.categories],[]);return this.preparedPlays.filter(t=>this.findCategoryInPlay(e,t)).reduce((e,t)=>{let a=this.localCategories.find(e=>this.findCategoryInPlay(e.categories,t));if(a){let s={category:a.id,categoryName:a.name,arrowColor:a.negative?this.negativeColor:a.color,arrowMarkerColor:a.negative?"url(#arrow-negative)":`url(#arrow-${a.id})`,markerColor:a.color,jersey:t.jersey_number,matchlapse:t.matchLapse,playerName:t.player_name,photo:t.photo,rivalLogo:t.rival_id,x1:a.invert.includes(t.categoryId)?100-t["x"+a.points[0]]:t["x"+a.points[0]],y1:a.invert.includes(t.categoryId)?100-t["y"+a.points[0]]:t["y"+a.points[0]],x2:a.invert.includes(t.categoryId)?100-t["x"+a.points[1]]:t["x"+a.points[1]],y2:a.invert.includes(t.categoryId)?100-t["y"+a.points[1]]:t["y"+a.points[1]],x3:a.invert.includes(t.categoryId)?100-t["x"+a.points[2]]:t["x"+a.points[2]],y3:a.invert.includes(t.categoryId)?100-t["y"+a.points[2]]:t["y"+a.points[2]],momentOfPlay:t.moment_of_play,isOwnGoal:a.invert.includes(t.categoryId),xGi:t.xGi,xGf:t.xGf};e.push(s)}return e},[])}},methods:{findCategoryInPlay(e,t){return e.find(e=>"number"==typeof e?e===t.categoryId:e.includes(t.categoryId))},onMouseOver(e,t){this.dataPlay.playerName=t.playerName||"",this.dataPlay.photo=t.photo||"",this.dataPlay.minute=parseInt(t.momentOfPlay.split(":")[0])||"",this.dataPlay.rivalLogo=t.rivalLogo||"",this.dataPlay.categoryName=t.categoryName||"",this.dataPlay.rivalName="Visiting"==this.team?this.homeTeam.team_name:this.visitingTeam.team_name,this.dataPlay.xGi=t.xGi+"",this.dataPlay.xGf=t.xGf+"",this.dataPlay.isOwnGoal=t.isOwnGoal,this.data.x=135>e.pageX?e.pageX-50:e.layerX-50,this.data.y=e.layerY+130,this.data.visible=!0},onMouseLeave(){this.data.visible=!1}}},Js=e=>(t.pushScopeId("data-v-b71a4607"),e=e(),t.popScopeId(),e),Ws={class:"soccer-chalkboard-xg"},Hs={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 490 684","xmlns:xlink":"http://www.w3.org/1999/xlink",class:"soccer-chalkboard"},Us={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 452 684","xmlns:xlink":"http://www.w3.org/1999/xlink"},Zs=Js(()=>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)),$s=["id"],Xs=["fill"],Ys=Js(()=>t.createElementVNode("pattern",{id:"fieldBackground",width:"1",height:"1",viewBox:"0 0 100 100",preserveAspectRatio:"none"},[t.createElementVNode("image",{"xlink:href":"https://golstatsimages.blob.core.windows.net/todoelfut/fieldbg.png",width:"100",height:"100",preserveAspectRatio:"none",id:"image2"})],-1)),Ks=["id"],Qs=["x1","y1","x2","y2","stroke"],ei=["x1","y1","x2","y2","stroke","marker-end"],ti=["onMouseover"],ai=["x","y","fill"],si=["x","y"],ii={class:"tooltip-data has-text-left"},oi={class:"bold"},ni={class:"tooltip-image"},li={class:"tooltip-image"},ri=["src"],di={class:"tooltip-xg"},ci={key:0},mi=Js(()=>t.createElementVNode("span",null,"xGi:",-1)),pi=Js(()=>t.createElementVNode("div",{class:"tooltip-xg-separator"},null,-1)),hi={key:1},ui=Js(()=>t.createElementVNode("span",null,"xGf:",-1)),yi=B(Es,[["render",(e,a,s,i,o,n)=>{const l=t.resolveComponent("Tooltip");return t.openBlock(),t.createElementBlock("div",Ws,[(t.openBlock(),t.createElementBlock("svg",Hs,[(t.openBlock(),t.createElementBlock("svg",Us,[t.createElementVNode("defs",null,[Zs,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.localCategories,e=>(t.openBlock(),t.createElementBlock("marker",{key:"arrow-color-"+e.id,id:"arrow-"+e.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:e.color},null,8,Xs)],8,$s))),128)),Ys]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.graphPlays,e=>(t.openBlock(),t.createElementBlock("g",{key:e.id,id:"play-"+e.playId},[t.createElementVNode("line",{x1:e.x1+"%",y1:e.y1+"%",x2:e.x2+"%",y2:e.y2+"%",stroke:e.arrowColor,"stroke-width":"2"},null,8,Qs),t.createElementVNode("line",{x1:e.x2+"%",y1:e.y2+"%",x2:e.x3+"%",y2:e.y3+"%",stroke:e.arrowColor,"stroke-width":"2","marker-end":e.arrowMarkerColor},null,8,ei),t.createElementVNode("g",{onMouseover:t=>n.onMouseOver(t,e),onMouseleave:a[0]||(a[0]=(...e)=>n.onMouseLeave&&n.onMouseLeave(...e)),class:"is-pointer"},[t.createElementVNode("rect",{x:e.x1+"%",y:e.y1+"%",transform:"translate(-14, -14)",height:"28",width:"28","stroke-width":"2",fill:e.markerColor,stroke:"#aaa",rx:"14",ry:"14"},null,8,ai),t.createElementVNode("text",{"text-anchor":"middle","dominant-baseline":"middle",x:e.x1+"%",y:e.y1+"%",dy:"1","font-size":"15",stroke:"white","font-family":"Poppins, sans-serif"},t.toDisplayString(e.jersey),9,si)],40,ti)],8,Ks))),128))]))])),t.createVNode(l,{data:o.data},{default:t.withCtx(()=>[t.createElementVNode("div",ii,[t.createElementVNode("div",null,[t.createElementVNode("span",oi,t.toDisplayString(o.dataPlay.isOwnGoal?"Autogol":o.dataPlay.categoryName),1)]),t.createElementVNode("div",null,[t.createTextVNode(t.toDisplayString(o.dataPlay.playerName)+" ",1),t.createElementVNode("div",ni,[t.createElementVNode("div",{class:"tooltip-image-player",style:t.normalizeStyle("background: url("+o.dataPlay.photo+") top")},null,4)])]),t.createElementVNode("div",null,"Minuto:  "+t.toDisplayString(o.dataPlay.minute)+"'",1),t.createElementVNode("div",null,[t.createTextVNode(" Rival: "),t.createElementVNode("div",li,[t.createElementVNode("img",{src:o.dataPlay.rivalLogo},null,8,ri)])]),t.createElementVNode("div",di,[!/^[+]?([0-1]+(?:[\.][0-9]*)?|\.[0-9]+)$/.test(o.dataPlay.xGi)||o.dataPlay.xGi>1||o.dataPlay.isOwnGoal?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",ci,[mi,t.createTextVNode(" "+t.toDisplayString(+o.dataPlay.xGi),1)])),pi,!/^[+]?([0-1]+(?:[\.][0-9]*)?|\.[0-9]+)$/.test(o.dataPlay.xGf)||o.dataPlay.xGf>1||o.dataPlay.isOwnGoal?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",hi,[ui,t.createTextVNode(" "+t.toDisplayString(+o.dataPlay.xGf),1)]))])])]),o:1},8,["data"])])}],["__scopeId","data-v-b71a4607"]]),gi={name:"Xg",components:{SoccerChalkboard:yi},props:{},data(){return{categories:Ha}},computed:{...o.mapState("nextGeneral",["usePastSeasonId","pastSeasonId","gameId"]),...o.mapState("general",["booleanIsStatisticModalOpen"]),...o.mapGetters("xgGeneral",["playsLocal","goalsQtyLocal","headQtyLocal","shotsOnGoalQtyLocal","penaltiesQtyLocal","xGLocal"]),...o.mapGetters("nextGeneral",["getSeasonId","homeTeam","visitingTeam","showPostMatchData"]),...o.mapGetters("loginGeneral",["getPremiumAccount","getIsGolstats"]),...o.mapGetters("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:"Remates con cabeza",value:this.headQtyLocal},{title:"Penales",value:this.penaltiesQtyLocal},{title:"Goles esperados (xG)",value:this.xGLocal}]}},watch:{visitingTeam:{deep:!0,handler(e){e&&this.fillXgPlays()}},showPostMatchData:{handler(e,t){e!==t&&this.fillXgPlays()}}},methods:{...o.mapMutations("general",["setVideoSrc","setVideoModalVisibility"]),...o.mapMutations("xgGeneral",["setTeamSelected"]),...o.mapActions("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()}},vi=e=>(t.pushScopeId("data-v-e83f1722"),e=e(),t.popScopeId(),e),_i={class:"xg-container"},fi=vi(()=>t.createElementVNode("div",{class:"title"},"Goles esperados (xG)",-1)),bi={class:"xg-container__field"},wi={class:"xg-container__info"},Si={class:"table"},Ti={class:"table__row"},ki={class:"table__row__title"},xi={class:"table__row__value"},Ci=["src"],Ii={class:"table__row"},Pi={class:"table__row__title"},Gi={class:"table__row__value"},Fi={class:"table__row"},Ai={class:"table__row__title"},Mi={class:"table__row__value"},Li={class:"table__row"},Oi={class:"table__row__title"},Ni={class:"table__row__value"},Di={class:"table__row"},Vi={class:"table__row__title"},zi={class:"table__row__value"},ji=vi(()=>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)),Bi=B(gi,[["render",(e,a,s,i,o,n)=>{const l=t.resolveComponent("SoccerChalkboard");return t.openBlock(),t.createElementBlock("div",_i,[fi,t.createElementVNode("div",bi,[t.createVNode(l,{plays:e.playsLocal,categories:o.categories,team:e.team},null,8,["plays","categories","team"])]),t.createElementVNode("div",wi,[t.createElementVNode("div",Si,[t.createElementVNode("div",Ti,[t.createElementVNode("div",ki,t.toDisplayString(n.gxInfoItems[0].title),1),t.createElementVNode("div",xi,[t.createTextVNode(t.toDisplayString(n.gxInfoItems[0].value),1),t.createElementVNode("img",{class:"img-abs",src:n.stringSelectedTeamLogo},null,8,Ci)])]),t.createElementVNode("div",Ii,[t.createElementVNode("div",Pi,t.toDisplayString(n.gxInfoItems[1].title),1),t.createElementVNode("div",Gi,t.toDisplayString(n.gxInfoItems[1].value),1)]),t.createElementVNode("div",Fi,[t.createElementVNode("div",Ai,t.toDisplayString(n.gxInfoItems[2].title),1),t.createElementVNode("div",Mi,t.toDisplayString(n.gxInfoItems[2].value),1)]),t.createElementVNode("div",Li,[t.createElementVNode("div",Oi,t.toDisplayString(n.gxInfoItems[3].title),1),t.createElementVNode("div",Ni,t.toDisplayString(n.gxInfoItems[3].value),1)]),t.createElementVNode("div",Di,[t.createElementVNode("div",Vi,t.toDisplayString(n.gxInfoItems[4].title),1),t.createElementVNode("div",zi,t.toDisplayString(n.gxInfoItems[4].value),1)])]),ji])])}],["__scopeId","data-v-e83f1722"]]),Ri={name:"Xg",components:{SoccerChalkboard:yi},props:{},data(){return{categories:Ha}},computed:{...o.mapState("nextGeneral",["usePastSeasonId","pastSeasonId","gameId"]),...o.mapState("general",["booleanIsStatisticModalOpen"]),...o.mapGetters("xgGeneral",["playsAway","goalsQtyAway","shotsOnGoalQtyAway","headQtyAway","penaltiesQtyAway","xGAway"]),...o.mapGetters("nextGeneral",["getSeasonId","homeTeam","visitingTeam","showPostMatchData"]),...o.mapGetters("loginGeneral",["getPremiumAccount","getIsGolstats"]),...o.mapGetters("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:"Remates con cabeza",value:this.headQtyAway},{title:"Penales",value:this.penaltiesQtyAway},{title:"Goles esperados (xG)",value:this.xGAway}]}},watch:{visitingTeam:{deep:!0,handler(e){e&&this.fillXgPlays()}},showPostMatchData:{handler(e,t){e!==t&&this.fillXgPlays()}}},methods:{...o.mapMutations("general",["setVideoSrc","setVideoModalVisibility"]),...o.mapMutations("xgGeneral",["setTeamSelected"]),...o.mapActions("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()}},qi=e=>(t.pushScopeId("data-v-bd4b1a0d"),e=e(),t.popScopeId(),e),Ei={class:"xg-container"},Ji=qi(()=>t.createElementVNode("div",{class:"title"},"Goles esperados (xG)",-1)),Wi={class:"xg-container__field"},Hi={class:"xg-container__info"},Ui={class:"table"},Zi={class:"table__row"},$i={class:"table__row__title"},Xi={class:"table__row__value"},Yi=["src"],Ki={class:"table__row"},Qi={class:"table__row__title"},eo={class:"table__row__value"},to={class:"table__row"},ao={class:"table__row__title"},so={class:"table__row__value"},io={class:"table__row"},oo={class:"table__row__title"},no={class:"table__row__value"},lo={class:"table__row"},ro={class:"table__row__title"},co={class:"table__row__value"},mo=qi(()=>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)),po=B(Ri,[["render",(e,a,s,i,o,n)=>{const l=t.resolveComponent("SoccerChalkboard");return t.openBlock(),t.createElementBlock("div",Ei,[Ji,t.createElementVNode("div",Wi,[t.createVNode(l,{plays:e.playsAway,categories:o.categories,team:e.team},null,8,["plays","categories","team"])]),t.createElementVNode("div",Hi,[t.createElementVNode("div",Ui,[t.createElementVNode("div",Zi,[t.createElementVNode("div",$i,t.toDisplayString(n.gxInfoItems[0].title),1),t.createElementVNode("div",Xi,[t.createTextVNode(t.toDisplayString(n.gxInfoItems[0].value),1),t.createElementVNode("img",{class:"img-abs",src:n.stringSelectedTeamLogo},null,8,Yi)])]),t.createElementVNode("div",Ki,[t.createElementVNode("div",Qi,t.toDisplayString(n.gxInfoItems[1].title),1),t.createElementVNode("div",eo,t.toDisplayString(n.gxInfoItems[1].value),1)]),t.createElementVNode("div",to,[t.createElementVNode("div",ao,t.toDisplayString(n.gxInfoItems[2].title),1),t.createElementVNode("div",so,t.toDisplayString(n.gxInfoItems[2].value),1)]),t.createElementVNode("div",io,[t.createElementVNode("div",oo,t.toDisplayString(n.gxInfoItems[3].title),1),t.createElementVNode("div",no,t.toDisplayString(n.gxInfoItems[3].value),1)]),t.createElementVNode("div",lo,[t.createElementVNode("div",ro,t.toDisplayString(n.gxInfoItems[4].title),1),t.createElementVNode("div",co,t.toDisplayString(n.gxInfoItems[4].value),1)])]),mo])])}],["__scopeId","data-v-bd4b1a0d"]]);let ho=null;const uo={name:"XgMain",components:{GSCSwitchRadio:h.GSCSwitchRadio,SoccerChalkboardLocal:vs,SoccerChalkboardAway:qs,SoccerChalkboardLocalMobile:Bi,SoccerChalkboardAwayMobile:po},props:{game:{type:Number,default:0}},data(){return{gamesContainerWidth:0,teamSelect:"local",teamDefault:""}},computed:{...o.mapGetters("nextGeneral",["homeTeam","visitingTeam"])},watch:{},methods:{onChangeTeam(e){e instanceof Object||(this.teamSelect=e),this.teamDefault=e},setUpResizeObserver(){if(!window.ResizeObserver)throw Error("Resize observer not supported!");ho=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,680>this.gamesContainerWidth?this.movil=!0:this.movil=!1}),ho.observe(this.$refs.gamesContainer)}},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))}},yo={class:"xg",ref:"gamesContainer"},go={key:0,class:"selector-team"},vo=B(uo,[["render",(e,a,s,i,o,n)=>{const l=t.resolveComponent("GSCSwitchRadio"),r=t.resolveComponent("SoccerChalkboardLocal"),d=t.resolveComponent("SoccerChalkboardAway"),c=t.resolveComponent("SoccerChalkboardLocalMobile"),m=t.resolveComponent("SoccerChalkboardAwayMobile");return t.openBlock(),t.createElementBlock("div",yo,[655>o.gamesContainerWidth?(t.openBlock(),t.createElementBlock("div",go,[t.createVNode(l,{width:"42px",height:"20px",heightCircle:"16px",widthCircle:"16px","circle-color-switch":"#cbee6b",valueDefault:o.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),655>o.gamesContainerWidth?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(r,{key:1,class:"local"})),655>o.gamesContainerWidth?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(d,{key:2,class:"away"})),655>o.gamesContainerWidth&&o.teamSelect==e.homeTeam.colloquial_name?(t.openBlock(),t.createBlock(c,{key:3})):t.createCommentVNode("",!0),655>o.gamesContainerWidth&&o.teamSelect==e.visitingTeam.colloquial_name?(t.openBlock(),t.createBlock(m,{key:4})):t.createCommentVNode("",!0)],512)}],["__scopeId","data-v-20bd873f"]]),_o=e=>(t.pushScopeId("data-v-bb4319af"),e=e(),t.popScopeId(),e),fo={class:"statistics-main"},bo={class:"statistics-main__header"},wo={class:"statistics-main__header__filter"},So={key:0,class:"statistics-main__header__live-switch"},To=_o(()=>t.createElementVNode("div",null,"Este partido",-1)),ko=_o(()=>t.createElementVNode("div",null,"Acumulado",-1)),xo={class:"statistics-main__header__info"},Co=_o(()=>t.createElementVNode("br",null,null,-1)),Io=t.defineComponent({name:"StatisticsMain",components:{TrendLive:Ve,Comparative:ta,Distribution:da,GSCSlider:p.GSCSlider,XG:vo}}),Po=B(Object.assign(Io,{props:{game:{type:Object,default:()=>({gameId:79623,seasonId:1772,status:1,dateTimeUTC:"2023-10-01T22:20:00Z",homeTeam:{logo:"https://golstatsimages.blob.core.windows.net/teams-80/18.png",team_id:10,provisional_logo:"https://golstatsimages.blob.core.windows.net/teams-provisional/18.png",colloquial_name:"Toluca",acronym:"TOL",team_name:"Toluca"},awayTeam:{logo:"https://golstatsimages.blob.core.windows.net/teams-80/1.png",team_id:1,provisional_logo:"https://golstatsimages.blob.core.windows.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 s=e,i=o.useStore(),n=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"}),l=t.ref({}),r=t.ref(null),d=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"}]),c=t.ref(d.value[0]),m=t.ref(!1),h=t.ref(0),u=t.computed(()=>{const e=(new Date).getTime(),t=new Date(s.game.dateTimeUTC).getTime()-e,a=Math.floor(t/864e5),i=Math.floor(t%864e5/36e5),o=Math.floor(t%36e5/6e4),n=Math.floor(t%6e4/1e3);let l="";return n>0&&(l=1===n?n+" segundo":n+" segundos"),o>0&&(l=1===o?o+" minuto":o+" minutos"),i>0&&(l=1===i?i+" hora":i+" horas"),a>0&&(l=1===a?a+" día":a+" días"),l}),y=t.computed(()=>"st4"===c.value.id||(s.game.is_live||0===s.game.game_status)&&!i.state.nextGeneral.showLiveData?"Jugadas destacadas durante el torneo":1===s.game.game_status||(s.game.is_live||0===s.game.game_status)&&i.state.nextGeneral.showLiveData?"Jugadas destacadas durante este partido":"");function g(e){1===s.game.is_live||0===s.game.game_status?e.seasonId=s.game.seasonId:i.state.nextGeneral.usePastSeasonId&&(e.seasonId=i.state.nextGeneral.pastSeasonId),e.isLiveAccumulated=m.value,a("openmedia",e)}return t.watch(()=>s.game,e=>{const t={...e};s.game.is_live||j(),(async e=>{try{l.value.gameId!==e.gameId&&(l.value=e,await i.dispatch("nextGeneral/cleanStats"),await i.dispatch("nextGeneral/checkState",{gameId:e.gameId,currentSeasonId:e.seasonId,isTeamsAnalysis:!0,defaultFilter:r.value,gameInfo:e}))}catch(t){throw Error(t)}})(t),h.value++},{deep:!0,immediate:!0}),t.watch(()=>m.value,e=>{i.commit("nextGeneral/updateShowLiveData",!e)},{immediate:!0}),t.onUnmounted(()=>{a("resetSubsection")}),t.onMounted(()=>{"Comparativa"===s.subsection&&(c.value.id="st1",c.value.name="Comparativa",c.value.componentName="Comparative")}),i.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}),(a,s)=>(t.openBlock(),t.createElementBlock("div",fo,[t.createElementVNode("div",bo,[t.createVNode(t.unref(p.GSCSlider),{backgroundColor:"none",arrows:!1},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(d.value,e=>(t.openBlock(),t.createElementBlock("div",{key:e.id,class:"game-time-line__options__option"},[t.createVNode(R,t.mergeProps(n.value,{text:e.name,"is-active":c.value.id===e.id,onClick:t=>(e=>{c.value=e})(e)}),null,16,["text","is-active","onClick"])]))),128))]),o:1}),t.withDirectives(t.createElementVNode("div",wo,[t.createVNode(ue)],512),[[t.vShow,!1]]),e.game.is_live||0===e.game.game_status?t.withDirectives((t.openBlock(),t.createElementBlock("div",So,[To,t.createElementVNode("div",null,[t.createVNode(ye,{modelValue:m.value,"onUpdate:modelValue":s[0]||(s[0]=e=>m.value=e)},null,8,["modelValue"])]),ko],512)),[[t.vShow,"st4"!==c.value.id]]):t.createCommentVNode("",!0),t.createElementVNode("div",xo,[4!==e.game.game_status||e.game.is_live?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(y.value),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(" Faltan "),t.createElementVNode("span",null,t.toDisplayString(u.value),1),t.createTextVNode(" para el inicio."),Co,t.createTextVNode("Las estadísticas corresponden a sus promedios por partido del torneo "),t.createElementVNode("span",null,t.toDisplayString(e.seasonSelected.name),1)],64))])]),(t.openBlock(),t.createElementBlock("div",{class:"statistics-main__body",key:h.value},[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(c.value.componentName),{seasonSelected:{...e.seasonSelected},game:{...e.game},"tournament-type":t.unref(i).getters["gameGlobal/getTournamentType"],"can-play-videos":e.canPlayVideos,"play-videos-privileges":e.playVideosPrivileges,onOpenmedia:g},null,40,["seasonSelected","game","tournament-type","can-play-videos","play-videos-privileges"]))]))]))}}),[["__scopeId","data-v-bb4319af"]]),Go={class:"alineaciones-container"},Fo=B({h:"GSCLineupsMain",props:{tournamentSelected:{type:Object,default:()=>({})},isWidget:{type:Boolean,default:!1},game:{type:Object,default:()=>({gameId:79623,seasonId:1772,status:1,dateTimeUTC:"2023-10-01T22:20:00Z",is_live:0,homeTeam:{logo:"https://golstatsimages.blob.core.windows.net/teams-80/18.png",team_id:10,provisional_logo:"https://golstatsimages.blob.core.windows.net/teams-provisional/18.png",colloquial_name:"Toluca",acronym:"TOL",team_name:"Toluca"},awayTeam:{logo:"https://golstatsimages.blob.core.windows.net/teams-80/1.png",team_id:1,provisional_logo:"https://golstatsimages.blob.core.windows.net/teams-provisional/1.png",colloquial_name:"Chivas",acronym:"CHI",team_name:"Guadalajara"}})},socket:{type:Object,default:()=>({})}},emits:["onOpenProfile"],setup(e,{emit:a}){const s=e,i=t.ref(0);function o(e){s.isWidget||a("onOpenProfile",e)}return t.watch(()=>s.game,e=>{i.value=e.gameId},{deep:!0,immediate:!0}),(a,s)=>(t.openBlock(),t.createElementBlock("div",Go,[4!==e.game.status||e.game.is_live?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[Object.keys(e.game).length>0?(t.openBlock(),t.createBlock(t.unref(u.GSCLineups),{"is-female":1==e.tournamentSelected.is_female,socket:e.socket,key:i.value,type:"3D","is-live":1==e.game.is_live,"selected-option":"Postmatch",game:{game_id:e.game.gameId,season_id:e.game.seasonId,prematch:!1},onOnOpenProfile:o},null,8,["is-female","socket","is-live","game"])):t.createCommentVNode("",!0)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[Object.keys(e.game).length>0?(t.openBlock(),t.createBlock(t.unref(u.GSCLineups),{socket:e.socket,key:i.value,type:"3D","is-female":1==e.tournamentSelected.is_female,"is-live":1==e.game.is_live,"selected-option":"Historicos",game:{game_id:e.game.gameId,season_id:e.game.seasonId,prematch:!1},onOnOpenProfile:o},null,8,["socket","is-female","is-live","game"])):t.createCommentVNode("",!0)],64))]))}},[["__scopeId","data-v-f877232a"]]),Ao={class:"datagame-container"},Mo=B({h:"GSCDatosGSMain",props:{isWidget:{type:Boolean,default:!1},teamWidget:{type:Number,default:0},game:{type:Object,default:()=>({gameId:79623,seasonId:1772,status:1,dateTimeUTC:"2023-10-01T22:20:00Z",homeTeam:{logo:"https://golstatsimages.blob.core.windows.net/teams-80/18.png",team_id:10,provisional_logo:"https://golstatsimages.blob.core.windows.net/teams-provisional/18.png",colloquial_name:"Toluca",acronym:"TOL",team_name:"Toluca"},awayTeam:{logo:"https://golstatsimages.blob.core.windows.net/teams-80/1.png",team_id:1,provisional_logo:"https://golstatsimages.blob.core.windows.net/teams-provisional/1.png",colloquial_name:"Chivas",acronym:"CHI",team_name:"Guadalajara"}})},playVideosPrivileges:{type:Object,default:null}},emits:["openmedia"],setup(e,{emit:a}){const s=e,i=t.ref(0);function o(e){a("openmedia",e)}return t.watch(()=>s.game,e=>{i.value=e.gameId},{deep:!0,immediate:!0}),(a,s)=>(t.openBlock(),t.createElementBlock("div",Ao,[4==e.game.game_status?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[Object.keys(e.game).length>0?(t.openBlock(),t.createBlock(t.unref(y.GSCDataGames),{key:i.value,type:0,"is-widget":e.isWidget,"team-widget":e.teamWidget,data:{season:e.game.seasonId,game:e.game.gameId,home_team_id:e.game.homeTeam.team_id,away_team_id:e.game.awayTeam.team_id,team_view:1},"play-videos-privileges":e.playVideosPrivileges,onOpenmedia:o},null,8,["is-widget","team-widget","data","play-videos-privileges"])):t.createCommentVNode("",!0)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[Object.keys(e.game).length>0?(t.openBlock(),t.createBlock(t.unref(y.GSCDataGames),{"is-widget":e.isWidget,"team-widget":e.teamWidget,key:i.value,type:1,data:{season:e.game.seasonId,game:e.game.gameId,home_team_id:e.game.homeTeam.team_id,away_team_id:e.game.awayTeam.team_id,team_view:2},"play-videos-privileges":e.playVideosPrivileges,onOpenmedia:o},null,8,["is-widget","team-widget","data","play-videos-privileges"])):t.createCommentVNode("",!0)],64))]))}},[["__scopeId","data-v-b8306bed"]]),Lo={class:"datagame-container"},Oo=B({h:"GSCVideoGame",props:{isWidget:{type:Boolean,default:!1},teamWidget:{type:Number,default:0},game:{type:Object,default:()=>({gameId:79623,seasonId:1772,status:1,dateTimeUTC:"2023-10-01T22:20:00Z",homeTeam:{logo:"https://golstatsimages.blob.core.windows.net/teams-80/18.png",team_id:10,provisional_logo:"https://golstatsimages.blob.core.windows.net/teams-provisional/18.png",colloquial_name:"Toluca",acronym:"TOL",team_name:"Toluca"},awayTeam:{logo:"https://golstatsimages.blob.core.windows.net/teams-80/1.png",team_id:1,provisional_logo:"https://golstatsimages.blob.core.windows.net/teams-provisional/1.png",colloquial_name:"Chivas",acronym:"CHI",team_name:"Guadalajara"}})},videoPrivilegesPlayingAs:{type:Set,default:()=>new Set([1,2])},playVideosPrivileges:{type:Object,default:null},timeLiveVideoGoals:{type:Number,default:6e4},tournamentSelected:{type:Object,default:()=>({})},timeLiveVideoBestPlays:{type:Number,default:6e4},timeLiveVideoThisGame:{type:Number,default:6e4},canPlayVideos:{type:Boolean,default:!1},timeLiveVideoSpecificPlays:{type:Number,default:6e4}},emits:["openmedia","intervalid"],setup(e,{emit:a}){const s=e,i=t.ref(0);function o(e){0==s.game.is_live&&(e.seasonId=s.game.regularSeasonId),a("openmedia",e)}function n(e){a("openmedia",e)}function l(e){a("intervalid",e)}return t.watch(()=>s.game,e=>{i.value=e.gameId},{deep:!0,immediate:!0}),(a,s)=>(t.openBlock(),t.createElementBlock("div",Lo,[1==e.game.is_live||0==e.game.game_status?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[Object.keys(e.game).length>0?(t.openBlock(),t.createBlock(t.unref(g.GSCVideoGame),{onOpenmedia:n,key:i.value,"can-play-videos":e.canPlayVideos,"tournament-selected":e.tournamentSelected,onIntervalid:l,type:"Live","is-widget":e.isWidget,"team-widget":e.teamWidget,"time-live-video-goals":e.timeLiveVideoGoals,"time-live-video-best-plays":e.timeLiveVideoBestPlays,"time-live-video-this-game":e.timeLiveVideoThisGame,"time-live-video-specific-plays":e.timeLiveVideoSpecificPlays,config:{season_id:e.game.seasonId,game:e.game.gameId,game_status:e.game.game_status},"play-videos-privileges":e.playVideosPrivileges,"video-privileges-playing-as":e.videoPrivilegesPlayingAs},null,8,["can-play-videos","tournament-selected","is-widget","team-widget","time-live-video-goals","time-live-video-best-plays","time-live-video-this-game","time-live-video-specific-plays","config","play-videos-privileges","video-privileges-playing-as"])):t.createCommentVNode("",!0)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[4===e.game.game_status?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[Object.keys(e.game).length>0?(t.openBlock(),t.createBlock(t.unref(g.GSCVideoGame),{onOpenmedia:o,key:i.value,"is-widget":e.isWidget,"team-widget":e.teamWidget,"can-play-videos":e.canPlayVideos,"tournament-selected":e.tournamentSelected,type:"Prematch",config:{season_id:e.game.seasonId,game:e.game.gameId,game_status:e.game.game_status,homeTeamId:e.game.homeTeam.team_id,awayTeamId:e.game.awayTeam.team_id},"play-videos-privileges":e.playVideosPrivileges,"video-privileges-playing-as":e.videoPrivilegesPlayingAs},null,8,["is-widget","team-widget","can-play-videos","tournament-selected","config","play-videos-privileges","video-privileges-playing-as"])):t.createCommentVNode("",!0)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[Object.keys(e.game).length>0?(t.openBlock(),t.createBlock(t.unref(g.GSCVideoGame),{onOpenmedia:o,key:i.value,"can-play-videos":e.canPlayVideos,"is-widget":e.isWidget,"team-widget":e.teamWidget,"tournament-selected":e.tournamentSelected,type:"Postmatch",config:{season_id:e.game.seasonId,game:e.game.gameId,game_status:e.game.game_status,homeTeamId:e.game.homeTeam.team_id,awayTeamId:e.game.awayTeam.team_id},"play-videos-privileges":e.playVideosPrivileges,"video-privileges-playing-as":e.videoPrivilegesPlayingAs},null,8,["can-play-videos","is-widget","team-widget","tournament-selected","config","play-videos-privileges","video-privileges-playing-as"])):t.createCommentVNode("",!0)],64))],64))]))}},[["__scopeId","data-v-db24fc49"]]),No={components:{},props:{width:{type:Number,default:0},type:{type:Number,default:0},plays:{type:Object,default(){}},game:{type:Object,default(){}}},data(){return{}},computed:{},methods:{handleOutsideClick(){this.$emit("close-modal-events-live"),document.body.classList.remove("no-scroll")}},created(){document.body.classList.add("no-scroll")}},Do=e=>(t.pushScopeId("data-v-8dd09bf5"),e=e(),t.popScopeId(),e),Vo={class:"home_team-events"},zo={class:"home_team-events__title"},jo=["src"],Bo=Do(()=>t.createElementVNode("img",{width:"13",height:"13",src:"https://golstatsimages.blob.core.windows.net/todoelfut/players-goals-con-goles.png"},null,-1)),Ro=Do(()=>t.createElementVNode("img",{width:"13",height:"13",src:"https://golstatsimages.blob.core.windows.net/todoelfut/red_card.png"},null,-1)),qo=Do(()=>t.createElementVNode("img",{width:"13",height:"13",src:"https://golstatsimages.blob.core.windows.net/todoelfut/yellow_card.png"},null,-1)),Eo={class:"away_team-events"},Jo={class:"away_team-events__title"},Wo=["src"],Ho=Do(()=>t.createElementVNode("img",{width:"13",height:"13",src:"https://golstatsimages.blob.core.windows.net/todoelfut/players-goals-con-goles.png"},null,-1)),Uo=Do(()=>t.createElementVNode("img",{width:"13",height:"13",src:"https://golstatsimages.blob.core.windows.net/todoelfut/red_card.png"},null,-1)),Zo=Do(()=>t.createElementVNode("img",{width:"13",height:"13",src:"https://golstatsimages.blob.core.windows.net/todoelfut/yellow_card.png"},null,-1)),$o={class:"home_team-events"},Xo={class:"home_team-events__title"},Yo=["src"],Ko=Do(()=>t.createElementVNode("img",{width:"13",height:"13",src:"https://golstatsimages.blob.core.windows.net/todoelfut/players-goals-con-goles.png"},null,-1)),Qo=Do(()=>t.createElementVNode("img",{width:"13",height:"13",src:"https://golstatsimages.blob.core.windows.net/todoelfut/red_card.png"},null,-1)),en=Do(()=>t.createElementVNode("img",{width:"13",height:"13",src:"https://golstatsimages.blob.core.windows.net/todoelfut/yellow_card.png"},null,-1)),tn={class:"away_team-events"},an={class:"away_team-events__title"},sn=["src"],on=Do(()=>t.createElementVNode("img",{width:"13",height:"13",src:"https://golstatsimages.blob.core.windows.net/todoelfut/players-goals-con-goles.png"},null,-1)),nn=Do(()=>t.createElementVNode("img",{width:"13",height:"13",src:"https://golstatsimages.blob.core.windows.net/todoelfut/red_card.png"},null,-1)),ln=Do(()=>t.createElementVNode("img",{width:"13",height:"13",src:"https://golstatsimages.blob.core.windows.net/todoelfut/yellow_card.png"},null,-1)),rn=B(No,[["render",(e,a,s,i,o,n)=>(t.openBlock(),t.createElementBlock("div",null,[t.createElementVNode("div",{class:"modal-events",onClick:a[2]||(a[2]=(...e)=>n.handleOutsideClick&&n.handleOutsideClick(...e))},[t.createElementVNode("div",{class:"modal-events__modal",onClick:a[1]||(a[1]=t.withModifiers(()=>{},["stop"]))},[Object.keys(s.plays).length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(s.width>540?"container-events":s.width>420?"container-events-movil":s.width>350?"container-events-movilxl":"container-events-movilsm")},[t.createElementVNode("button",{class:"close-button",onClick:a[0]||(a[0]=(...e)=>n.handleOutsideClick&&n.handleOutsideClick(...e))},"×"),0==s.type?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",Vo,[t.createElementVNode("div",zo,[t.createElementVNode("img",{width:"24",height:"24",src:s.plays[s.game.home_team.team_id].team.logo},null,8,jo),t.createElementVNode("div",null,t.toDisplayString(s.plays[s.game.home_team.team_id].team.name),1)]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(Object.keys(s.plays[s.game.home_team.team_id].goals),(e,a)=>(t.openBlock(),t.createElementBlock("div",{key:a,class:t.normalizeClass(s.width>420?"home_team-events__event":"home_team-events__eventsm")},[Bo,t.createElementVNode("div",null,t.toDisplayString(s.plays[s.game.home_team.team_id].goals[e].name),1),t.createElementVNode("div",null,t.toDisplayString(s.plays[s.game.home_team.team_id].goals[e].event.map(e=>e+"'").join(", ")),1)],2))),128)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(Object.keys(s.plays[s.game.home_team.team_id].red),(e,a)=>(t.openBlock(),t.createElementBlock("div",{key:a,class:t.normalizeClass(s.width>420?"home_team-events__event":"home_team-events__eventsm")},[Ro,t.createElementVNode("div",null,t.toDisplayString(s.plays[s.game.home_team.team_id].red[e].name),1),t.createElementVNode("div",null,t.toDisplayString(s.plays[s.game.home_team.team_id].red[e].event.map(e=>e+"'").join(", ")),1)],2))),128)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(Object.keys(s.plays[s.game.home_team.team_id].yellow),(e,a)=>(t.openBlock(),t.createElementBlock("div",{key:a,class:t.normalizeClass(s.width>420?"home_team-events__event":"home_team-events__eventsm")},[qo,t.createElementVNode("div",null,t.toDisplayString(s.plays[s.game.home_team.team_id].yellow[e].name),1),t.createElementVNode("div",null,t.toDisplayString(s.plays[s.game.home_team.team_id].yellow[e].event.map(e=>e+"'").join(", ")),1)],2))),128))]),t.createElementVNode("div",Eo,[t.createElementVNode("div",Jo,[t.createElementVNode("div",null,t.toDisplayString(s.plays[s.game.visiting_team.team_id].team.name),1),t.createElementVNode("img",{width:"24",height:"24",src:s.plays[s.game.visiting_team.team_id].team.logo},null,8,Wo)]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(Object.keys(s.plays[s.game.visiting_team.team_id].goals),(e,a)=>(t.openBlock(),t.createElementBlock("div",{key:a,class:t.normalizeClass(s.width>420?"away_team-events__event":"away_team-events__eventsm")},[t.createElementVNode("div",null,t.toDisplayString(s.plays[s.game.visiting_team.team_id].goals[e].event.map(e=>e+"'").join(", ")),1),t.createElementVNode("div",null,t.toDisplayString(s.plays[s.game.visiting_team.team_id].goals[e].name),1),Ho],2))),128)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(Object.keys(s.plays[s.game.visiting_team.team_id].red),(e,a)=>(t.openBlock(),t.createElementBlock("div",{key:a,class:t.normalizeClass(s.width>420?"away_team-events__event":"away_team-events__eventsm")},[t.createElementVNode("div",null,t.toDisplayString(s.plays[s.game.visiting_team.team_id].red[e].event.map(e=>e+"'").join(", ")),1),t.createElementVNode("div",null,t.toDisplayString(s.plays[s.game.visiting_team.team_id].red[e].name),1),Uo],2))),128)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(Object.keys(s.plays[s.game.visiting_team.team_id].yellow),(e,a)=>(t.openBlock(),t.createElementBlock("div",{key:a,class:t.normalizeClass(s.width>420?"away_team-events__event":"away_team-events__eventsm")},[t.createElementVNode("div",null,t.toDisplayString(s.plays[s.game.visiting_team.team_id].yellow[e].event.map(e=>e+"'").join(", ")),1),t.createElementVNode("div",null,t.toDisplayString(s.plays[s.game.visiting_team.team_id].yellow[e].name),1),Zo],2))),128))])],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("div",$o,[t.createElementVNode("div",Xo,[t.createElementVNode("img",{width:"24",height:"24",src:s.plays.home_team.logo},null,8,Yo),t.createElementVNode("div",null,t.toDisplayString(s.plays.home_team.acronym),1)]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.plays.plays.home_goals_minutes,(e,a)=>(t.openBlock(),t.createElementBlock("div",{key:a,class:t.normalizeClass(s.width>420?"home_team-events__event":"home_team-events__eventsm")},[Ko,t.createElementVNode("div",null,t.toDisplayString(e),1)],2))),128)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.plays.plays.home_red_cards_minutes,(e,a)=>(t.openBlock(),t.createElementBlock("div",{key:a,class:t.normalizeClass(s.width>420?"home_team-events__event":"home_team-events__eventsm")},[Qo,t.createElementVNode("div",null,t.toDisplayString(e),1)],2))),128)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.plays.plays.home_yellow_cards_minutes,(e,a)=>(t.openBlock(),t.createElementBlock("div",{key:a,class:t.normalizeClass(s.width>420?"home_team-events__event":"home_team-events__eventsm")},[en,t.createElementVNode("div",null,t.toDisplayString(e),1)],2))),128))]),t.createElementVNode("div",tn,[t.createElementVNode("div",an,[t.createElementVNode("div",null,t.toDisplayString(s.plays.visiting_team.acronym),1),t.createElementVNode("img",{width:"24",height:"24",src:s.plays.visiting_team.logo},null,8,sn)]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.plays.plays.visiting_goals_minutes,(e,a)=>(t.openBlock(),t.createElementBlock("div",{key:a,class:t.normalizeClass(s.width>420?"away_team-events__event":"away_team-events__eventsm")},[t.createElementVNode("div",null,t.toDisplayString(e),1),on],2))),128)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.plays.plays.away_red_cards_minutes,(e,a)=>(t.openBlock(),t.createElementBlock("div",{key:a,class:t.normalizeClass(s.width>420?"away_team-events__event":"away_team-events__eventsm")},[t.createElementVNode("div",null,t.toDisplayString(e),1),nn],2))),128)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.plays.plays.away_yellow_cards_minutes,(e,a)=>(t.openBlock(),t.createElementBlock("div",{key:a,class:t.normalizeClass(s.width>420?"away_team-events__event":"away_team-events__eventsm")},[t.createElementVNode("div",null,t.toDisplayString(e),1),ln],2))),128))])],64))],2)):t.createCommentVNode("",!0)])])]))],["__scopeId","data-v-8dd09bf5"]]),dn={components:{GSCSlider:p.GSCSlider},props:{isWidget:{type:Boolean,default:!1},teamWidget:{type:Number,default:0},timeLiveProminentData:{type:Number,default:6e4},game:{type:Object,default(){}},canPlayVideos:{type:Boolean,default:!1}},watch:{game:{deep:!0,immediate:!0,handler(e){1==e.is_live?(this.getDataProminent(e.gameId),setInterval(()=>{this.getDataProminent(e.gameId)},this.timeLiveProminentData)):1==e.game_status||0==e.game_status?this.getDataProminent(e.gameId):this.getDataProminentPrematch(e.gameId)}}},data(){return{lastDataProminentUrl:"",dataProminent:[],dataProminentAll:[],tokenPremium:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"}},computed:{},methods:{onclickPlayVideos(e){let t={seasonId:1==this.game.is_live?this.dataProminentAll.season_id:this.game.regularSeasonId,mainSectionType:1,playListType:1==e.data.is_team?3:2,categoryIds:e.data.categories,gameIdsToFilter:1==this.game.game_status?[this.dataProminentAll.u]:null,playerIds:1!=e.data.is_team?[e.data.player_id]:[],goalkeeperIds:[],teamId:1==e.data.is_team?e.data.team_id:0,matchResult:[1,2,3],playData:{},advancedFilter:{playListTitle:""}};this.$emit("openmedia",t)},hasDecimal:e=>"number"==typeof e&&e.toString().includes("."),formatNumber(e){if("number"==typeof e){if(this.hasDecimal(e)){const t=Math.round(10*e)/10;return Number.isInteger(t)?t.toString()+"%":t.toFixed(1)+"%"}return e+"%"}return"0"},formatNumber2(e){if("number"==typeof e){if(this.hasDecimal(e)){const t=Math.round(10*e)/10;return Number.isInteger(t)?t.toString()+"%":t.toFixed(1)+"%"}return e}return"0"},textoConNegritas(e){if(!e)return"";const t=e.split(/(\*.*?\*)/g).filter(e=>""!==e.trim());let a=Math.ceil(t.length/2),s="";return t.forEach((e,t)=>{t===a&&(s+="<br/>"),e.startsWith("*")&&e.endsWith("*")?s+=`<span class="text-bold-prominent">${e.slice(1,-1)}</span>`:""!==e.trim()&&(s+=`<span class="text-prominent">${e}</span>`)}),s},async getDataProminentPrematch(){try{let e="";if(e=this.isWidget&&0!=this.teamWidget?"https://1qvtl1japi.execute-api.us-east-2.amazonaws.com/prod/highlights/seasons/"+this.game.seasonId+"/games/"+this.game.gameId+"/prematch?t="+this.teamWidget:"https://1qvtl1japi.execute-api.us-east-2.amazonaws.com/prod/highlights/seasons/"+this.game.seasonId+"/games/"+this.game.gameId+"/prematch",this.lastDataProminentUrl!==e){this.$emit("loading",!0);const t=m.create({headers:{Authorization:""+this.tokenPremium}}),a=await t.get(e);this.dataProminent=a.data.data,this.dataProminentAll=a.data,this.$emit("loading",!1)}}catch(e){return Promise.reject(e)}},async getDataProminent(){try{let e="";if(e=this.isWidget&&0!=this.teamWidget?"https://1qvtl1japi.execute-api.us-east-2.amazonaws.com/prod/highlights/seasons/"+this.game.seasonId+"/games/"+this.game.gameId+"?t="+this.teamWidget:"https://1qvtl1japi.execute-api.us-east-2.amazonaws.com/prod/highlights/seasons/"+this.game.seasonId+"/games/"+this.game.gameId,this.lastDataProminentUrl!==e){this.$emit("loading",!0);const t=m.create({headers:{Authorization:""+this.tokenPremium}}),a=await t.get(e);this.dataProminent=a.data.data,this.dataProminentAll=a.data,setTimeout(()=>{this.$emit("loading",!1)},500)}}catch(e){return Promise.reject(e)}}}},cn={class:"data-prominent-game"},mn={class:"title-data"},pn={class:"item-data-text"},hn=["innerHTML"],un={class:"contain-stats-control"},yn={key:0,class:"title-total"},gn={key:1,class:"item-total"},vn=["onClick"],_n={"data-v-83c7df16":"",style:{"margin-left":"-1px"},xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none"},fn=[(e=>(t.pushScopeId("data-v-86ae9323"),e=e(),t.popScopeId(),e))(()=>t.createElementVNode("path",{"data-v-83c7df16":"",d:"M6.6041 22.8554C6.42105 22.7512 6.26805 22.5956 6.1616 22.4053C6.05515 22.215 5.99927 21.9973 6.00001 21.7755V2.22137C6.00026 2.00039 6.0565 1.78362 6.16274 1.59409C6.26899 1.40456 6.42127 1.24936 6.6034 1.14499C6.78553 1.04062 6.9907 0.990981 7.1971 1.00135C7.4035 1.01171 7.60342 1.0817 7.77561 1.20386L21.4907 10.9821C21.6473 11.0935 21.7758 11.2446 21.8646 11.4219C21.9535 11.5992 22 11.7973 22 11.9985C22 12.1996 21.9535 12.3977 21.8646 12.575C21.7758 12.7523 21.6473 12.9034 21.4907 13.0148L7.77561 22.7954C7.60369 22.9178 7.40392 22.988 7.19761 22.9986C6.9913 23.0092 6.78617 22.9597 6.6041 22.8554ZM7.14347 21.7779L20.8585 11.9996L7.14347 21.7779Z",fill:"#CBEE6B"},null,-1))],bn=B(dn,[["render",(e,a,s,i,o,n)=>{const l=t.resolveComponent("GSCSlider");return t.openBlock(),t.createElementBlock("div",cn,[t.createElementVNode("div",mn,[4!=s.game.game_status||1==s.game.is_live?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Este partido:")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("Este torneo:")],64))]),t.createVNode(l,{height:"115px",pxScroll:272,scrollColor:"none",arrowsPosition:"absolute",arrowsScrollHide:!0,arrowsHideOnNoScroll:!0,arrowsBackground:"rgba(255,255,255,.16)",arrowsContainerBgL:"linear-gradient(270deg, rgba(13,29,42,0.1) 0%, rgba(13,29,42,1) 70%)",arrowsContainerBgR:"linear-gradient(90deg, rgba(13,29,42,0.1) 0%, rgba(13,29,42,1) 70%)",arrowsMargin:0,arrowsRadius:"50%",arrowsBorder:"#ddd"},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(o.dataProminent,(e,a)=>(t.openBlock(),t.createElementBlock("div",{key:a,class:"item-prominent-data"},[t.createElementVNode("div",{class:"item-percent-shield",style:t.normalizeStyle("background:"+e.custom_colors.background_color)},[t.createElementVNode("div",{class:"item-team",style:t.normalizeStyle(e.player_id?"background-image:url(https://golstatsimages.blob.core.windows.net/players-profile/"+e.player_id+".png); border: solid 1.4px "+e.custom_colors.background_color:"background-image:url(https://golstatsimages.blob.core.windows.net/teams-80/"+e.team_id+".png);border: solid 1.4px "+e.custom_colors.background_color)},null,4),1==e.show_value?(t.openBlock(),t.createElementBlock("div",{key:0,class:"item-percent",style:t.normalizeStyle("color:"+e.custom_colors.font_color)},[1==e.is_percentage?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},["Distancia recorrida"==e.title?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(n.formatNumber(e.percent)),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(n.formatNumber(e.percent)),1)],64))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(e.total),1)],64))],4)):t.createCommentVNode("",!0)],4),t.createElementVNode("div",pn,[t.createElementVNode("div",{class:"container-text",innerHTML:n.textoConNegritas(e.description)},null,8,hn),t.createElementVNode("div",un,[1==e.show_value?(t.openBlock(),t.createElementBlock("div",yn,"TOTAL: ")):t.createCommentVNode("",!0),1==e.show_value?(t.openBlock(),t.createElementBlock("div",gn,[1==e.is_percentage?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(n.formatNumber(e.percent)),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},["Distancia recorrida"==e.title?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(e.total)+" km",1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(e.total),1)],64))],64))])):t.createCommentVNode("",!0),s.canPlayVideos&&1==e.show_video&&1==e.show_value?(t.openBlock(),t.createElementBlock("div",{key:2,class:"btn-play",style:t.normalizeStyle("Productividad"==e.title?"margin-left: 0px !important;":""),onClick:t=>n.onclickPlayVideos({data:e})},[(t.openBlock(),t.createElementBlock("svg",_n,fn))],12,vn)):t.createCommentVNode("",!0)])])]))),128))]),o:1})])}],["__scopeId","data-v-86ae9323"]]),wn={components:{GSCCheckbox:r.GSCCheckbox},props:{timeLivePossesion:{type:Number,default:6e4},game:{type:Object,default(){}},widthSection:{type:Number,default:0},teamSelected:{type:Object,default:()=>({})}},watch:{game:{deep:!0,immediate:!0,async handler(e){1==e.is_live?(this.getDataPosession(e.gameId),this.intervalIdPossesion=setInterval(()=>{this.getDataPosession(e.gameId)},this.timeLivePossesion),this.$emit("intervalidpossesion",this.intervalIdPossesion)):1==e.game_status||0==e.game_status?(this.getDataPosession(e.gameId),1==e.game_status&&(await this.$store.dispatch("nextGeneral/cleanStats"),await this.$store.dispatch("nextGeneral/checkState",{gameId:e.gameId,currentSeasonId:e.seasonId,isTeamsAnalysis:!0,defaultFilter:null,gameInfo:e}))):this.getDataPosessionPrematch(e.seasonId)}}},data(){return{areInactiveVisible:!1,dataPosession:[],arrTeams:[],intervalIdPossesion:null,url:"https://rwtfu33saa.execute-api.us-east-2.amazonaws.com/prod/ta/posessions/",urlPrematch:"https://rwtfu33saa.execute-api.us-east-2.amazonaws.com/prod/ta/seasons/",tokenPremium:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",objectZeroValues:{numberValue:0,numberBarPercent:0}}},computed:{...o.mapState("nextGeneral",["gameForAnalysis","seasonId"]),...o.mapGetters("nextGeneral",["arrayFilledDataSortedByPriority"])},methods:{async getStatsData(e){await this.$store.dispatch("nextGeneral/cleanStats"),await this.$store.dispatch("nextGeneral/checkState",{gameId:e.gameId,currentSeasonId:e.seasonId,isTeamsAnalysis:!0,defaultFilter:null,gameInfo:e})},async getDataPosession(){try{const e=m.create({headers:{Authorization:""+this.tokenPremium}}),t=await e.get(this.url+this.game.gameId);this.dataPosession=t.data}catch(e){return Promise.reject(e)}},async getDataPosessionPrematch(e){try{const t=m.create({headers:{Authorization:""+this.tokenPremium}}),a=await t.get(this.urlPrematch+e+"/posessions");for(const e in a.data.teams)a.data.teams.hasOwnProperty(e)&&(this.arrTeams[e]=a.data.teams[e])}catch(t){return Promise.reject(t)}},onCheckInactive(e){this.areInactiveVisible=!!e},deleteDecimalZero(e){const t="string"==typeof e?parseFloat(e):e;return"number"!=typeof t||isNaN(t)?e:t%1==0?t:0==t%1?Math.floor(t):t},formatNumbers(e){return e%1!=0?e.toFixed(1):e},hVal(e){return this.getTeamValue(e,this.gameForAnalysis,"homeTeam")},aVal(e){return this.getTeamValue(e,this.gameForAnalysis,"visitingTeam")},getTeamValue(e,t,a){if(!t.game_id)return this.objectZeroValues;const s=e.homeTeam.accomplished.avgPostGame+e.visitingTeam.accomplished.avgPostGame,i=e[a].accomplished.avgPostGame/s;return e[a].accomplished.avgPostGame?{numberValue:1>i?100*i:i,numberBarPercent:e[a].accomplished.avgPostGame/s}:this.objectZeroValues}},created(){this.$store.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})},beforeDestroy(){clearInterval(this.intervalIdPossesion)}},Sn=e=>(t.pushScopeId("data-v-d9615d31"),e=e(),t.popScopeId(),e),Tn={key:0,class:"field-posesion-prominent"},kn={key:0,class:"title"},xn={class:"info-data-item"},Cn={class:"item-indicador"},In={class:"item-indicador-value"},Pn={key:0},Gn=Sn(()=>t.createElementVNode("div",{class:"item-indicador-img"},[t.createElementVNode("svg",{width:"8",height:"6",viewBox:"0 0 8 6",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M3.87817 5.92969L0.506034 0.0889796L7.2503 0.0889802L3.87817 5.92969Z",fill:"#38CFFF"})])],-1)),Fn={key:0,class:"inactiveInfo"},An={class:"info-data-item"},Mn={class:"item-indicador"},Ln={class:"item-indicador-value"},On=Sn(()=>t.createElementVNode("div",{class:"item-indicador-img"},[t.createElementVNode("svg",{width:"8",height:"6",viewBox:"0 0 8 6",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M3.87817 5.92969L0.506034 0.0889796L7.2503 0.0889802L3.87817 5.92969Z",fill:"#38CFFF"})])],-1)),Nn={class:"info-data-item"},Dn={class:"item-indicador"},Vn={class:"item-indicador-value"},zn={key:0},jn=Sn(()=>t.createElementVNode("div",{class:"item-indicador-img"},[t.createElementVNode("svg",{width:"8",height:"6",viewBox:"0 0 8 6",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M3.87817 5.92969L0.506034 0.0889796L7.2503 0.0889802L3.87817 5.92969Z",fill:"#38CFFF"})])],-1)),Bn={class:"info-data-item"},Rn={class:"item-indicador"},qn={class:"item-indicador-value"},En=Sn(()=>t.createElementVNode("div",{class:"item-indicador-img"},[t.createElementVNode("svg",{width:"8",height:"6",viewBox:"0 0 8 6",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M3.87817 5.92969L0.506034 0.0889796L7.2503 0.0889802L3.87817 5.92969Z",fill:"#38CFFF"})])],-1)),Jn={key:0,class:"inactiveInfo"},Wn={class:"info-data-item"},Hn={class:"item-indicador"},Un={class:"item-indicador-value"},Zn=Sn(()=>t.createElementVNode("div",{class:"item-indicador-img"},[t.createElementVNode("svg",{width:"8",height:"6",viewBox:"0 0 8 6",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M3.87817 5.92969L0.506034 0.0889796L7.2503 0.0889802L3.87817 5.92969Z",fill:"#38CFFF"})])],-1)),$n={class:"info-data-item"},Xn={class:"item-indicador"},Yn={class:"item-indicador-value"},Kn=Sn(()=>t.createElementVNode("div",{class:"item-indicador-img"},[t.createElementVNode("svg",{width:"8",height:"6",viewBox:"0 0 8 6",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M3.87817 5.92969L0.506034 0.0889796L7.2503 0.0889802L3.87817 5.92969Z",fill:"#38CFFF"})])],-1)),Qn=B(wn,[["render",(e,a,s,i,o,n)=>{const l=t.resolveComponent("GSCCheckbox");return e.arrayFilledDataSortedByPriority.length>0?(t.openBlock(),t.createElementBlock("div",Tn,[s.widthSection>760?(t.openBlock(),t.createElementBlock("div",kn,"Porcentajes")):t.createCommentVNode("",!0),1==s.game.game_status||0==s.game.game_status||1==s.game.is_live?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(s.widthSection>760?"field-container":s.widthSection>520?"field-container-movil":s.widthSection>440?"field-container-movil-2":s.widthSection>360?"field-container-movil-3":"field-container-movil-4")},[1==o.dataPosession.has_posession?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(s.widthSection>1020?"time-show":s.widthSection>920?"time-show-table-xl":s.widthSection>880?"time-show-table-xl-2":s.widthSection>820?"time-show-table-xl-3":s.widthSection>760?"time-show-table-xl-4":"time-show-movil")},[t.createVNode(l,{label:"Mostrar tiempo inactivo",fontFamily:"Poppins-Regular","onUpdate:modelValue":n.onCheckInactive,"label-color":"#8c9399"},null,8,["onUpdate:modelValue"])],2)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(s.widthSection>1020?"field-data-container":s.widthSection>920?"field-data-container-xl":s.widthSection>880?"field-data-container-xl-2":s.widthSection>820?"field-data-container-xl-3":s.widthSection>760?"field-data-container-xl-4":"field-data-container-movil")},[t.createElementVNode("div",{class:t.normalizeClass(o.areInactiveVisible?"container-data-img-home":"container-data-img-home50")},[t.createElementVNode("div",{class:t.normalizeClass(o.areInactiveVisible?"homeInfo":"homeInfo50"),style:t.normalizeStyle("background-image:url("+s.game.homeTeam.logo.replace("80","150")+")")},null,6),t.createElementVNode("div",xn,[t.createElementVNode("div",{class:t.normalizeClass(s.widthSection>580?"item-ref-data":"item-ref-data-movil")},[t.createElementVNode("div",Cn,[t.createElementVNode("div",In,[1==o.dataPosession.has_posession?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[o.areInactiveVisible?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(o.dataPosession.active_time.home),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(o.dataPosession.home),1)],64))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[n.hVal(e.arrayFilledDataSortedByPriority[0].subcategories.possession)?(t.openBlock(),t.createElementBlock("span",Pn,t.toDisplayString(n.deleteDecimalZero(n.formatNumbers(n.hVal(e.arrayFilledDataSortedByPriority[0].subcategories.possession).numberValue)))+"%",1)):t.createCommentVNode("",!0)],64))]),Gn]),t.createElementVNode("div",{class:t.normalizeClass(s.widthSection>580?"title-indicador":"title-indicador-movil")}," Pos. "+t.toDisplayString(s.game.homeTeam.acronym),3)],2)])],2),o.areInactiveVisible&&1==o.dataPosession.has_posession?(t.openBlock(),t.createElementBlock("div",Fn,[t.createElementVNode("div",An,[t.createElementVNode("div",{class:t.normalizeClass(s.widthSection>580?"item-ref-data":"item-ref-data-movil")},[t.createElementVNode("div",Mn,[t.createElementVNode("div",Ln,t.toDisplayString(o.dataPosession.active_time.inactive_time),1),On]),t.createElementVNode("div",{class:t.normalizeClass(s.widthSection>580?"title-indicador":"title-indicador-movil")},[s.widthSection>580?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("T. Inactivo")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("T. Inactivo")],64))],2)],2)])])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(o.areInactiveVisible?"container-data-img-away":"container-data-img-away50")},[t.createElementVNode("div",{class:t.normalizeClass(o.areInactiveVisible?"awayInfo":"awayInfo50"),style:t.normalizeStyle("background-image:url("+s.game.awayTeam.logo.replace("80","150")+")")},null,6),t.createElementVNode("div",Nn,[t.createElementVNode("div",{class:t.normalizeClass(s.widthSection>580?"item-ref-data":"item-ref-data-movil")},[t.createElementVNode("div",Dn,[t.createElementVNode("div",Vn,[1==o.dataPosession.has_posession?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[o.areInactiveVisible?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(o.dataPosession.active_time.away),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(o.dataPosession.away),1)],64))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[n.aVal(e.arrayFilledDataSortedByPriority[0].subcategories.possession)?(t.openBlock(),t.createElementBlock("span",zn,t.toDisplayString(n.deleteDecimalZero(n.formatNumbers(n.aVal(e.arrayFilledDataSortedByPriority[0].subcategories.possession).numberValue)))+"%",1)):t.createCommentVNode("",!0)],64))]),jn]),t.createElementVNode("div",{class:t.normalizeClass(s.widthSection>580?"title-indicador":"title-indicador-movil")}," Pos. "+t.toDisplayString(s.game.awayTeam.acronym),3)],2)])],2)],2)],2)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[o.arrTeams.length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(s.widthSection>760?"field-container":s.widthSection>520?"field-container-movil":s.widthSection>440?"field-container-movil-2":s.widthSection>360?"field-container-movil-3":"field-container-movil-4")},[1==o.arrTeams[s.teamSelected.teamId].has_posession?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(s.widthSection>1020?"time-show":s.widthSection>920?"time-show-table-xl":s.widthSection>880?"time-show-table-xl-2":s.widthSection>820?"time-show-table-xl-3":s.widthSection>760?"time-show-table-xl-4":"time-show-movil")},[t.createVNode(l,{label:"Mostrar tiempo inactivo",fontFamily:"Poppins-Regular","onUpdate:modelValue":n.onCheckInactive,"label-color":"#8c9399"},null,8,["onUpdate:modelValue"])],2)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(s.widthSection>1020?"field-data-container":s.widthSection>920?"field-data-container-xl":s.widthSection>880?"field-data-container-xl-2":s.widthSection>820?"field-data-container-xl-3":s.widthSection>760?"field-data-container-xl-4":"field-data-container-movil")},[t.createElementVNode("div",{class:t.normalizeClass(o.areInactiveVisible?"container-data-img-home":"container-data-img-home50")},[s.game.homeTeam.team_id==s.teamSelected.teamId?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(o.areInactiveVisible?"homeInfo":"homeInfo50"),style:t.normalizeStyle("background-image:url("+s.game.homeTeam.logo.replace("80","150")+")")},null,6)):t.createCommentVNode("",!0),t.createElementVNode("div",Bn,[t.createElementVNode("div",{class:t.normalizeClass(s.widthSection>580?"item-ref-data":"item-ref-data-movil")},[t.createElementVNode("div",Rn,[t.createElementVNode("div",qn,[o.areInactiveVisible?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[s.game.awayTeam.team_id==s.teamSelected.teamId?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(o.arrTeams[s.teamSelected.teamId].active_time.away),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(o.arrTeams[s.teamSelected.teamId].active_time.home),1)],64))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[s.game.awayTeam.team_id==s.teamSelected.teamId?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(o.arrTeams[s.teamSelected.teamId].away),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(o.arrTeams[s.teamSelected.teamId].home),1)],64))],64))]),En]),s.game.homeTeam.team_id==s.teamSelected.teamId?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(s.widthSection>580?"title-indicador":"title-indicador-movil")}," Pos. "+t.toDisplayString(s.game.homeTeam.acronym),3)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(s.widthSection>580?"title-indicador":"title-indicador-movil")}," Pos. Rival ",2))],2)])],2),o.areInactiveVisible&&1==o.arrTeams[s.teamSelected.teamId].has_posession?(t.openBlock(),t.createElementBlock("div",Jn,[t.createElementVNode("div",Wn,[t.createElementVNode("div",{class:t.normalizeClass(s.widthSection>580?"item-ref-data":"item-ref-data-movil")},[t.createElementVNode("div",Hn,[t.createElementVNode("div",Un,t.toDisplayString(o.arrTeams[s.teamSelected.teamId].active_time.inactive_time),1),Zn]),t.createElementVNode("div",{class:t.normalizeClass(s.widthSection>580?"title-indicador":"title-indicador-movil")},[s.widthSection>580?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("T. Inactivo")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("T. Inactivo")],64))],2)],2)])])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(o.areInactiveVisible?"container-data-img-away":"container-data-img-away50")},[s.game.awayTeam.team_id==s.teamSelected.teamId?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(o.areInactiveVisible?"awayInfo":"awayInfo50"),style:t.normalizeStyle("background-image:url("+s.game.awayTeam.logo.replace("80","150")+")")},null,6)):t.createCommentVNode("",!0),t.createElementVNode("div",$n,[t.createElementVNode("div",{class:t.normalizeClass(s.widthSection>580?"item-ref-data":"item-ref-data-movil")},[t.createElementVNode("div",Xn,[t.createElementVNode("div",Yn,[o.areInactiveVisible?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[s.game.homeTeam.team_id==s.teamSelected.teamId?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(o.arrTeams[s.teamSelected.teamId].active_time.away),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(o.arrTeams[s.teamSelected.teamId].active_time.home),1)],64))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[s.game.homeTeam.team_id==s.teamSelected.teamId?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(o.arrTeams[s.teamSelected.teamId].away),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(o.arrTeams[s.teamSelected.teamId].home),1)],64))],64))]),Kn]),s.game.awayTeam.team_id==s.teamSelected.teamId?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(s.widthSection>580?"title-indicador":"title-indicador-movil")}," Pos. "+t.toDisplayString(s.game.awayTeam.acronym),3)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(s.widthSection>580?"title-indicador":"title-indicador-movil")}," Pos. Rival ",2))],2)])],2)],2)],2)):t.createCommentVNode("",!0)],64))])):t.createCommentVNode("",!0)}],["__scopeId","data-v-d9615d31"]]),el={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-Light"},backgroundColor:{type:String,default:"#2e3b46"},circleColorSwitch:{type:String,default:"#FFFFFF"}},data(){return{OptionDefault:!1}},watch:{valueDefault:{immediate:!0,async handler(e){try{e==this.textOptionLeft&&(this.OptionDefault=!1),e==this.textOptionRight&&(this.OptionDefault=!0)}catch(t){throw Error(t)}}}},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)}}},tl=()=>{t.useCssVars(e=>({"0fd788f0":e.backgroundColor,"65d48069":e.widthCircle,ab129df8:e.heightCircle}))},al=el.setup;el.setup=al?(e,t)=>(tl(),al(e,t)):tl;const sl={key:0,class:"text-left"},il=["width","src"],ol=["checked"],nl=["width","src"],ll={key:3,class:"text-right"},rl=B(el,[["render",(e,a,s,i,o,n)=>(t.openBlock(),t.createElementBlock("div",{class:"gsc-switch-radio",style:t.normalizeStyle(n.customText)},[""==s.textOptionLeft||s.hiddenLabels?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("span",sl,t.toDisplayString(s.textOptionLeft),1)),""!=s.iconA?(t.openBlock(),t.createElementBlock("img",{key:1,width:s.widthIcons,src:s.iconA},null,8,il)):t.createCommentVNode("",!0),t.createElementVNode("input",{type:"checkbox",id:"toggle-btn",onChange:a[0]||(a[0]=(...e)=>n.handleSwitchChange&&n.handleSwitchChange(...e)),checked:o.OptionDefault},null,40,ol),t.createElementVNode("label",{for:"toggle-btn",style:t.normalizeStyle([n.customStyle,{"--circle-color":s.circleColorSwitch}])},null,4),""!=s.iconB?(t.openBlock(),t.createElementBlock("img",{key:2,width:s.widthIcons,src:s.iconB},null,8,nl)):t.createCommentVNode("",!0),""==s.textOptionRight||s.hiddenLabels?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("span",ll,t.toDisplayString(s.textOptionRight),1))],4))],["__scopeId","data-v-c17e5be3"]]);let dl=null;const cl={components:{},props:{canPlayVideos:{type:Boolean,default:!1},titleCategory:{type:String,default:"RESUMEN"},dateGame:{type:String,default:""},colorBackgroundHome:{type:String,default:"#000000"},colorBackgroundAway:{type:String,default:"#FFFFFF"},logoHome:{type:String,default:""},isLive:{type:Boolean,default:!0},matchday:{type:String,default:""},seasonName:{type:String,default:""},logoAway:{type:String,default:""},score:{type:String,default:""},background:{type:String,default:""}},data(){return{gamesContainerWidth:0}},computed:{date(){const e=this.gamesContainerWidth;return e>400?e>540?e>650?"date":"date650":"date540":"date400"},seasoncontainer(){const e=this.gamesContainerWidth;return e>400?e>540?e>650?"season-container":"season-container650":"season-container540":"season-container400"},matchcontainer(){const e=this.gamesContainerWidth;return e>400?e>540?e>650?"match-container":"match-container650":"match-container540":"match-container400"},containerinfogame(){const e=this.gamesContainerWidth;return e>400?e>540?e>650?"container-info-game":"container-info-game650":"container-info-game540":"container-info-game400"},playbutton(){const e=this.gamesContainerWidth;return e>360?e>400?e>540?e>650?"play-button":"play-button650":"play-button540":"play-button400":"play-button360"},baselogo(){const e=this.gamesContainerWidth;return e>400?e>540?e>650?"base-logo":"base-logo650":"base-logo540":"base-logo400"},baselogoright(){const e=this.gamesContainerWidth;return e>400?e>540?e>650?"base-logo-right":"base-logo-right650":"base-logo-right540":"base-logo-right400"},thumbnailhighlights(){const e=this.gamesContainerWidth;return e>320?e>330?e>340?e>360?e>395?e>430?e>470?e>540?e>650?"thumbnail-highlights":"thumbnail-highlights650":"thumbnail-highlights540":"thumbnail-highlights470":"thumbnail-highlights400":"thumbnail-highlights350":"thumbnail-highlights330":"thumbnail-highlights320":"thumbnail-highlights310":"thumbnail-highlights300"},teamlogo(){const e=this.gamesContainerWidth;return e>400?e>540?e>650?"team-logo":"team-logo650":"team-logo540":"team-logo400"},logoright(){const e=this.gamesContainerWidth;return e>400?e>540?e>650?"logo-right":"logo-right650":"logo-right540":"logo-right400"},secondline(){const e=this.gamesContainerWidth;return e>400?e>540?e>650?"second-line":"second-line650":"second-line540":"second-line400"},titlename(){const e=this.gamesContainerWidth;return e>400?e>540?e>650?"title-name":"title-name650":"title-name540":"title-name400"}},methods:{onclickPlayVideos(){this.$emit("onclickPlayVideos")},setUpResizeObserver(){if(!window.ResizeObserver)throw Error("Resize observer not supported!");dl=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,740>this.gamesContainerWidth?this.movil=!0:this.movil=!1}),dl.observe(this.$refs.gamesContainer)}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},ml=()=>{t.useCssVars(e=>({"1cda3aa1":e.colorBackgroundHome+"45","154a841c":e.colorBackgroundAway+"45","580af42e":e.colorBackgroundHome,58111810:e.colorBackgroundAway}))},pl=cl.setup;cl.setup=pl?(e,t)=>(ml(),pl(e,t)):ml;const hl=e=>(t.pushScopeId("data-v-27481504"),e=e(),t.popScopeId(),e),ul=[hl(()=>t.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},[t.createElementVNode("path",{d:"M6.6041 22.8554C6.42105 22.7512 6.26805 22.5956 6.1616 22.4053C6.05515 22.215 5.99927 21.9973 6.00001 21.7755V2.22137C6.00026 2.00039 6.0565 1.78362 6.16274 1.59409C6.26899 1.40456 6.42127 1.24936 6.6034 1.14499C6.78553 1.04062 6.9907 0.990981 7.1971 1.00135C7.4035 1.01171 7.60342 1.0817 7.77561 1.20386L21.4907 10.9821C21.6473 11.0935 21.7758 11.2446 21.8646 11.4219C21.9535 11.5992 22 11.7973 22 11.9985C22 12.1996 21.9535 12.3977 21.8646 12.575C21.7758 12.7523 21.6473 12.9034 21.4907 13.0148L7.77561 22.7954C7.60369 22.9178 7.40392 22.988 7.19761 22.9986C6.9913 23.0092 6.78617 22.9597 6.6041 22.8554ZM7.14347 21.7779L20.8585 11.9996L7.14347 21.7779Z",fill:"#CBEE6B"})],-1))],yl=hl(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/paper-texture.png",alt:"",class:"paper-texture position-image"},null,-1)),gl=["src"],vl=hl(()=>t.createElementVNode("div",{class:"gradient-back position-image"},null,-1)),_l=hl(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/halftone-texture.png",alt:"",class:"halftone-texture position-image"},null,-1)),fl=["src"],bl=["src"],wl={class:"text-container"};let Sl=null;const Tl={class:"highlights-prominent-game",ref:"gamesContainer"},kl={class:"video-partido-container__highlight"},xl=B({components:{GSCThumbnailHighlightGameHistoric:B(cl,[["render",(e,a,s,i,o,n)=>(t.openBlock(),t.createElementBlock("div",{ref:"gamesContainer",class:t.normalizeClass(n.thumbnailhighlights)},[s.canPlayVideos?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(n.playbutton),onClick:a[0]||(a[0]=(...e)=>n.onclickPlayVideos&&n.onclickPlayVideos(...e))},ul,2)):t.createCommentVNode("",!0),""!=s.dateGame?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(n.date)},t.toDisplayString(s.dateGame),3)):t.createCommentVNode("",!0),""!=s.matchday&&""!=s.seasonName?(t.openBlock(),t.createElementBlock("div",{key:2,class:t.normalizeClass(n.containerinfogame)},[""!=s.matchday?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(n.matchcontainer)},t.toDisplayString(s.matchday),3)):t.createCommentVNode("",!0),""!=s.seasonName?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(n.seasoncontainer)},t.toDisplayString(s.seasonName),3)):t.createCommentVNode("",!0)],2)):t.createCommentVNode("",!0),yl,t.createElementVNode("img",{src:s.background,alt:"",class:"bkg-blackwhite position-image"},null,8,gl),t.createElementVNode("div",{class:t.normalizeClass([n.baselogo,"position-image"])},null,2),t.createElementVNode("div",{class:t.normalizeClass(n.baselogoright)},null,2),vl,_l,t.createElementVNode("img",{src:s.logoHome,alt:"",class:t.normalizeClass(n.teamlogo)},null,10,fl),t.createElementVNode("img",{src:s.logoAway,alt:"",class:t.normalizeClass(n.logoright)},null,10,bl),t.createElementVNode("div",wl,[t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(n.titlename)},t.toDisplayString(s.titleCategory),3)])],2))],["__scopeId","data-v-27481504"]])},props:{game:{type:Object,default(){}},titleCard:{type:String,default:"RESUMEN"},canPlayVideos:{type:Boolean,default:!1}},watch:{},data(){return{lastDataGameUrl:"",dataProminent:[],gameInfo:{},gamesContainerWidth:0,showHighlight:!1,showHighlightGoals:!1,item:{backgroundhome:"",backgroundaway:"",logohome:"",logoaway:"",background:"",match:"",seasonname:"",score:""},tournamentId:0,token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"}},computed:{},methods:{onclickPlayVideos(e){var t;t=2==e.type?1==e.data.position_id?0==e.data.category?[55,324,323,608,39,774,802,52,53,40,54]:e.data.category:0==e.data.category?[12,35,10,27,607,61,519,98,101,109,112,121,122,127,128,135,136,141,142,161,170,179,702,730,466,217,211,232,235,239,242,282,284,289,291,296,485,486,487,488,14,15,257]:e.data.category:3==e.type?0==e.data.category?[607,608,12,55,54,35,14,52,15,53,466,477,40,257,39]:e.data.category:0!=e.data.category?e.data.category:"RESUMEN"==this.titleCard?[607,608,12,55,54,35,14,52,15,53,466,477]:[12,55,54,35];let a={seasonId:e.data.season_id,mainSectionType:1,playListType:e.type,categoryIds:t,gameIdsToFilter:e.data.game_id?[e.data.game_id]:null,playerIds:1!=e.data.position_id&&e.data.player_id?[e.data.player_id]:[],goalkeeperIds:1==e.data.position_id&&e.data.player_id?[e.data.player_id]:[],teamId:e.data.team_id?e.data.team_id:0,matchResult:e.data.matchResult?[e.data.matchResult]:[1,2,3],playData:{},advancedFilter:{playListTitle:""}};0!==e.data.category&&(a.advancedFilter.mainCategoryId=e.data.category),this.$emit("openmedia",a)},async fillData(){const e="https://fxtcaw9tw6.execute-api.us-east-2.amazonaws.com/prod/historic/games/"+this.game.gameId;if(this.lastDataGameUrl!==e){this.$emit("loading",!0),this.lastDataGameUrl=e;const t=m.create({headers:{Authorization:""+this.token}}),a=await t.get("https://8tvo5bp9ai.execute-api.us-west-2.amazonaws.com/prod/gamesBySeason/"+this.game.seasonId),s=await t.get("https://d2oco6mqmc.execute-api.us-west-2.amazonaws.com/prod/teamsBySeason/"+this.game.seasonId);this.tournamentId=s.data.tournament_id;const i=a.data.games.findIndex(e=>e.game_id===this.game.gameId);this.gameInfo=a.data.games[i];const o=await t.get(e);this.showHighlight=""!=o.data&&o.data.plays.length>0,this.showHighlightGoals=""!=o.data&&o.data.plays.filter(e=>12===e[0]||55===e[0]||54===e[0]||35===e[0]).length>0,this.item.category=0,this.item.game_id=o.data.game_id,this.item.season_id=this.game.seasonId,this.item.score=o.data.thumbnails[o.data.game_id]?o.data.thumbnails[o.data.game_id].score[0]+" - "+o.data.thumbnails[o.data.game_id].score[1]:"0 - 0",this.item.backgroundhome=o.data.thumbnails[o.data.game_id]?o.data.thumbnails[o.data.game_id].info_thumbnails.home_colors.background_color:"",this.item.backgroundaway=o.data.thumbnails[o.data.game_id]?o.data.thumbnails[o.data.game_id].info_thumbnails.away_colors.background_color:"",this.item.logohome=o.data.thumbnails[o.data.game_id]?"https://golstatsimages.blob.core.windows.net/teams-150/"+o.data.thumbnails[o.data.game_id].home_team+".png":"",this.item.logoaway=o.data.thumbnails[o.data.game_id]?"https://golstatsimages.blob.core.windows.net/teams-150/"+o.data.thumbnails[o.data.game_id].visiting_team+".png":"",this.item.background=o.data.thumbnails[o.data.game_id]?"RESUMEN"==this.titleCard?"https://golstatsimages.blob.core.windows.net/images-library/"+o.data.thumbnails[o.data.game_id].info_thumbnails.images.background_default_games[0]:"https://golstatsimages.blob.core.windows.net/images-library/Goles_CAT.jpg":"",this.$emit("showleyendlive",!(!this.showHighlight&&!this.showHighlightGoals)),this.$emit("showsummarylive",this.showHighlight),this.$emit("showgoalslive",this.showHighlightGoals),this.$emit("loading",!1)}},setUpResizeObserver(){if(!window.ResizeObserver)throw Error("Resize observer not supported!");Sl=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,740>this.gamesContainerWidth?this.movil=!0:this.movil=!1}),Sl.observe(this.$refs.gamesContainer)}},async mounted(){setTimeout(()=>{this.setUpResizeObserver()},1e3),await this.fillData()}},[["render",(e,a,s,i,o,n)=>{const l=t.resolveComponent("GSCThumbnailHighlightGameHistoric");return t.openBlock(),t.createElementBlock("div",Tl,[t.withDirectives(t.createElementVNode("div",kl,[t.createCommentVNode("",!0),t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(o.gamesContainerWidth>865?"video-partido-container__image":"video-partido-container__image2")},[""!=o.item.background?(t.openBlock(),t.createBlock(l,{key:0,"color-background-home":o.item.backgroundhome,"color-background-away":o.item.backgroundaway,"logo-home":o.item.logohome,"logo-away":o.item.logoaway,"is-live":!0,"title-category":s.titleCard,"can-play-videos":s.canPlayVideos,background:o.item.background,matchday:o.item.match,"season-name":o.item.seasonname,onOnclickPlayVideos:a[0]||(a[0]=e=>n.onclickPlayVideos({data:o.item,type:1})),score:o.item.score},null,8,["color-background-home","color-background-away","logo-home","logo-away","title-category","can-play-videos","background","matchday","season-name","score"])):t.createCommentVNode("",!0)],2)],512),[[t.vShow,"RESUMEN"==s.titleCard&&s.canPlayVideos&&o.showHighlight||"GOLES"==s.titleCard&&s.canPlayVideos&&o.showHighlightGoals]])],512)}],["__scopeId","data-v-0f9959c1"]]);let Cl=null;const Il={components:{},props:{titleCategory:{type:String,default:"RESUMEN"},dateGame:{type:String,default:""},colorBackgroundHome:{type:String,default:"#000000"},colorBackgroundAway:{type:String,default:"#FFFFFF"},isLive:{type:Boolean,default:!1},logoHome:{type:String,default:""},game:{type:Object,default(){}},matchday:{type:String,default:""},seasonName:{type:String,default:""},logoAway:{type:String,default:""},score:{type:String,default:""},background:{type:String,default:""}},data(){return{gamesContainerWidth:0}},computed:{date(){const e=this.gamesContainerWidth;return e>400?e>540?e>650?"date":"date650":"date540":"date400"},seasoncontainer(){const e=this.gamesContainerWidth;return e>400?e>540?e>650?"season-container":"season-container650":"season-container540":"season-container400"},matchcontainer(){const e=this.gamesContainerWidth;return e>400?e>540?e>650?"match-container":"match-container650":"match-container540":"match-container400"},containerinfogame(){const e=this.gamesContainerWidth;return e>400?e>540?e>650?"container-info-game":"container-info-game650":"container-info-game540":"container-info-game400"},playbutton(){const e=this.gamesContainerWidth;return e>360?e>400?e>540?e>650?"play-button":"play-button650":"play-button540":"play-button400":"play-button360"},baselogo(){const e=this.gamesContainerWidth;return e>400?e>540?e>650?"base-logo":"base-logo650":"base-logo540":"base-logo400"},baselogoright(){const e=this.gamesContainerWidth;return e>400?e>540?e>650?"base-logo-right":"base-logo-right650":"base-logo-right540":"base-logo-right400"},thumbnailhighlights(){const e=this.gamesContainerWidth;return e>320?e>330?e>340?e>360?e>395?e>430?e>470?e>540?e>650?"thumbnail-highlights":"thumbnail-highlights650":"thumbnail-highlights540":"thumbnail-highlights470":"thumbnail-highlights400":"thumbnail-highlights350":"thumbnail-highlights330":"thumbnail-highlights320":"thumbnail-highlights310":"thumbnail-highlights300"},teamlogo(){const e=this.gamesContainerWidth;return e>400?e>540?e>650?"team-logo":"team-logo650":"team-logo540":"team-logo400"},logoright(){const e=this.gamesContainerWidth;return e>400?e>540?e>650?"logo-right":"logo-right650":"logo-right540":"logo-right400"},secondline(){const e=this.gamesContainerWidth;return e>400?e>540?e>650?"second-line":"second-line650":"second-line540":"second-line400"},titlename(){const e=this.gamesContainerWidth;return e>400?e>540?e>650?"title-name":"title-name650":"title-name540":"title-name400"}},methods:{onclickPlayVideos(){this.$emit("onclickPlayVideos")},setUpResizeObserver(){if(!window.ResizeObserver)throw Error("Resize observer not supported!");Cl=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,740>this.gamesContainerWidth?this.movil=!0:this.movil=!1}),Cl.observe(this.$refs.gamesContainer)}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},Pl=()=>{t.useCssVars(e=>({"702da677":e.colorBackgroundHome+"45","2a9a9988":e.colorBackgroundAway+"45","0be9ee1d":e.colorBackgroundHome,"0be6dc2c":e.colorBackgroundAway}))},Gl=Il.setup;Il.setup=Gl?(e,t)=>(Pl(),Gl(e,t)):Pl;const Fl=e=>(t.pushScopeId("data-v-4ceabce6"),e=e(),t.popScopeId(),e),Al=[Fl(()=>t.createElementVNode("span",{class:"circle-live"},null,-1)),Fl(()=>t.createElementVNode("span",{style:{"margin-left":"3px"}},"LIVE",-1))],Ml=[Fl(()=>t.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},[t.createElementVNode("path",{d:"M6.6041 22.8554C6.42105 22.7512 6.26805 22.5956 6.1616 22.4053C6.05515 22.215 5.99927 21.9973 6.00001 21.7755V2.22137C6.00026 2.00039 6.0565 1.78362 6.16274 1.59409C6.26899 1.40456 6.42127 1.24936 6.6034 1.14499C6.78553 1.04062 6.9907 0.990981 7.1971 1.00135C7.4035 1.01171 7.60342 1.0817 7.77561 1.20386L21.4907 10.9821C21.6473 11.0935 21.7758 11.2446 21.8646 11.4219C21.9535 11.5992 22 11.7973 22 11.9985C22 12.1996 21.9535 12.3977 21.8646 12.575C21.7758 12.7523 21.6473 12.9034 21.4907 13.0148L7.77561 22.7954C7.60369 22.9178 7.40392 22.988 7.19761 22.9986C6.9913 23.0092 6.78617 22.9597 6.6041 22.8554ZM7.14347 21.7779L20.8585 11.9996L7.14347 21.7779Z",fill:"#CBEE6B"})],-1))],Ll=Fl(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/paper-texture.png",alt:"",class:"paper-texture position-image"},null,-1)),Ol=["src"],Nl=Fl(()=>t.createElementVNode("div",{class:"gradient-back position-image"},null,-1)),Dl=Fl(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/halftone-texture.png",alt:"",class:"halftone-texture position-image"},null,-1)),Vl=["src"],zl=["src"],jl={class:"text-container"};let Bl=null;const Rl={class:"highlights-prominent-game",ref:"gamesContainerlivehigh"},ql={class:"video-partido-container__highlight"},El={class:"video-partido-container__image"},Jl=B({components:{GSCThumbnailHighlightGameHistoricLive:B(Il,[["render",(e,a,s,i,o,n)=>(t.openBlock(),t.createElementBlock("div",{ref:"gamesContainer",class:t.normalizeClass(n.thumbnailhighlights)},[s.isLive&&0!=s.game.game_status?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(o.gamesContainerWidth>340?o.gamesContainerWidth>480?"icon-live":"icon-live-tablet":"icon-live-mobile")},Al,2)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(n.playbutton),onClick:a[0]||(a[0]=(...e)=>n.onclickPlayVideos&&n.onclickPlayVideos(...e))},Ml,2),""!=s.dateGame?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(n.date)},t.toDisplayString(s.dateGame),3)):t.createCommentVNode("",!0),""!=s.matchday&&""!=s.seasonName?(t.openBlock(),t.createElementBlock("div",{key:2,class:t.normalizeClass(n.containerinfogame)},[""!=s.matchday?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(n.matchcontainer)},t.toDisplayString(s.matchday),3)):t.createCommentVNode("",!0),""!=s.seasonName?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(n.seasoncontainer)},t.toDisplayString(s.seasonName),3)):t.createCommentVNode("",!0)],2)):t.createCommentVNode("",!0),Ll,t.createElementVNode("img",{src:s.background,alt:"",class:"bkg-blackwhite position-image"},null,8,Ol),t.createElementVNode("div",{class:t.normalizeClass([n.baselogo,"position-image"])},null,2),t.createElementVNode("div",{class:t.normalizeClass(n.baselogoright)},null,2),Nl,Dl,t.createElementVNode("img",{src:s.logoHome,alt:"",class:t.normalizeClass(n.teamlogo)},null,10,Vl),t.createElementVNode("img",{src:s.logoAway,alt:"",class:t.normalizeClass(n.logoright)},null,10,zl),t.createElementVNode("div",jl,[t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(n.titlename)},t.toDisplayString(s.titleCategory),3)])],2))],["__scopeId","data-v-4ceabce6"]])},props:{timeLiveHighlightsProminentAndVideo:{type:Number,default:6e4},game:{type:Object,default(){}},titleCard:{type:String,default:"RESUMEN"},canPlayVideos:{type:Boolean,default:!1}},watch:{game:{deep:!0,immediate:!0,handler(e){this.fetchLiveData(e.gameId),1==e.is_live&&(this.intervalidhighlive=setInterval(()=>{this.fetchLiveData(e.gameId)},this.timeLiveHighlightsProminentAndVideo),this.$emit("intervalidhighlive",this.intervalidhighlive))}}},data(){return{printData:[],gameInfo:{},intervalidhighlive:null,informationBestPlaysPlayers:[],informationBestPlaysTeamHome:[],informationBestPlaysTeamAway:[],gamesContainerWidth:0,tournamentId:0,showHighlight:!1,showHighlightGoals:!1,item:{backgroundhome:"",backgroundaway:"",logohome:"",logoaway:"",background:"",match:"",seasonname:"",score:""},token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"}},computed:{},methods:{async fetchLiveData(){await this.getLiveHighlights()},onclickPlayVideos(e){var t;t=2==e.type?1==e.data.position_id?0==e.data.category?[55,324,323,608,39,774,802,52,53,40,54]:e.data.category:0==e.data.category?[12,35,10,27,607,61,519,98,101,109,112,121,122,127,128,135,136,141,142,161,170,179,702,730,466,217,211,232,235,239,242,282,284,289,291,296,485,486,487,488,14,15,257]:e.data.category:3==e.type?0==e.data.category?[607,608,12,55,54,35,14,52,15,53,466,477,40,257,39]:e.data.category:4==e.type?[12,55,"35_r","54_r"]:0!=e.data.category?e.data.category:"RESUMEN"==this.titleCard?[607,608,12,55,54,35,14,52,15,53,466,477]:[12,55,54,35];let a={seasonId:e.data.season_id,mainSectionType:1,playListType:e.type,categoryIds:t,gameIdsToFilter:e.data.game_id?[e.data.game_id]:null,playerIds:1!=e.data.position_id&&e.data.player_id?[e.data.player_id]:[],goalkeeperIds:1==e.data.position_id&&e.data.player_id?[e.data.player_id]:[],teamId:e.data.team_id?e.data.team_id:0,matchResult:e.data.matchResult?[data.matchResult]:[1,2,3],playData:{},advancedFilter:{playListTitle:""}};0!==e.data.category&&(a.advancedFilter.mainCategoryId=e.data.category),this.$emit("openmedia",a)},async getLiveHighlights(){const e=m.create({headers:{Authorization:""+this.token}}),t=await e.get("https://fxtcaw9tw6.execute-api.us-east-2.amazonaws.com/prod/live/historic/games/"+this.game.gameId);""!=t.data&&(this.showHighlight=""!=t.data&&t.data.plays.length>0,this.showHighlightGoals=""!=t.data&&t.data.plays.filter(e=>12===e[0]||55===e[0]||54===e[0]||35===e[0]).length>0,this.item.category=0,this.item.game_id=t.data.game_id,this.item.season_id=this.game.seasonId,this.item.score=t.data.thumbnails[t.data.game_id].score,this.item.backgroundhome=t.data.thumbnails[t.data.game_id].info_thumbnails.home_colors.background_color,this.item.backgroundaway=t.data.thumbnails[t.data.game_id].info_thumbnails.away_colors.background_color,this.item.logohome="https://golstatsimages.blob.core.windows.net/teams-150/"+t.data.thumbnails[t.data.game_id].home_team+".png",this.item.logoaway="https://golstatsimages.blob.core.windows.net/teams-150/"+t.data.thumbnails[t.data.game_id].visiting_team+".png",this.item.background="RESUMEN"==this.titleCard?"https://golstatsimages.blob.core.windows.net/images-library/"+t.data.thumbnails[t.data.game_id].info_thumbnails.images.background_default_games[0]:"https://golstatsimages.blob.core.windows.net/images-library/Goles_CAT.jpg",this.$emit("showleyendlive",!(!this.showHighlight&&!this.showHighlightGoals)),this.$emit("showsummarylive",this.showHighlight),this.$emit("showgoalslive",this.showHighlightGoals))},setUpResizeObserver(){if(!window.ResizeObserver)throw Error("Resize observer not supported!");Bl=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainerlivehigh.clientWidth}),Bl.observe(this.$refs.gamesContainerlivehigh)}},async mounted(){setTimeout(()=>{this.setUpResizeObserver()},1e3)}},[["render",(e,a,s,i,o,n)=>{const l=t.resolveComponent("GSCThumbnailHighlightGameHistoricLive");return t.openBlock(),t.createElementBlock("div",Rl,[t.withDirectives(t.createElementVNode("div",ql,[t.createCommentVNode("",!0),t.createElementVNode("div",El,[t.createVNode(l,{"is-live":!0,game:s.game,"color-background-home":o.item.backgroundhome,"color-background-away":o.item.backgroundaway,"logo-home":o.item.logohome,"logo-away":o.item.logoaway,"title-category":s.titleCard,background:o.item.background,onOnclickPlayVideos:a[1]||(a[1]=e=>n.onclickPlayVideos({data:o.item,type:1})),matchday:o.item.match,"season-name":o.item.seasonname,score:o.item.score},null,8,["game","color-background-home","color-background-away","logo-home","logo-away","title-category","background","matchday","season-name","score"])])],512),[[t.vShow,"RESUMEN"==s.titleCard&&s.canPlayVideos&&o.showHighlight||"GOLES"==s.titleCard&&s.canPlayVideos&&o.showHighlightGoals]])],512)}],["__scopeId","data-v-80b11e42"]]),Wl="/play-icn.svg",Hl=B({name:"TooltipEmpty",props:{data:{type:Object,required:!0}},computed:{showTooltip(){return{visible:this.data.visible}}},methods:{tooltipClick(){},closeClick(){this.$emit("close")}}},[["render",(e,a,s,i,o,n)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["back-tooltip",n.showTooltip])},[t.createElementVNode("div",{class:t.normalizeClass(["box-tooltip",n.showTooltip]),onClick:a[1]||(a[1]=(...e)=>n.tooltipClick&&n.tooltipClick(...e))},[t.createElementVNode("span",{role:"button",class:"box-tooltip-close",onClick:a[0]||(a[0]=(...e)=>n.closeClick&&n.closeClick(...e))},"×"),t.renderSlot(e.$slots,"default",{},void 0,!0)],2)],2))],["__scopeId","data-v-5ec23081"]]),Ul=["id"],Zl={class:"game-event__minute"},$l={class:"game-event__icon"},Xl=["src"],Yl=B({h:"GameEvent",props:{gameEvent:{type:Object,default(){}}},emits:["click-event"],setup(e,{emit:a}){const s=e,i=t.computed(()=>({"--icon-bottom":s.gameEvent.isHomeTeam?"30px":"-5px","--border-color":s.gameEvent.isSelected?"#336dff":"#747c83","--background-color":s.gameEvent.isSelected?"#336dff":"#0d1d29"})),o=t.computed(()=>{let e="";return e=18===s.gameEvent.category_id?"icn-tiros-de-esquina.svg":20===s.gameEvent.category_id?"icn-tiro-a-porteria.svg":10===s.gameEvent.category_id?"icn-cambio.svg":21===s.gameEvent.category_id?"icn-falta.svg":27===s.gameEvent.category_id?"atajada.svg":17===s.gameEvent.category_id?"fuera-de-lugar.svg":4===s.gameEvent.category_id||13===s.gameEvent.category_id||14===s.gameEvent.category_id||16===s.gameEvent.category_id||6===s.gameEvent.category_id&&1===s.gameEvent.event_type_id||5===s.gameEvent.category_id&&1===s.gameEvent.event_type_id||1===s.gameEvent.category_id&&1===s.gameEvent.event_type_id||2===s.gameEvent.category_id&&1===s.gameEvent.event_type_id||3===s.gameEvent.category_id&&1===s.gameEvent.event_type_id||7===s.gameEvent.category_id&&1===s.gameEvent.event_type_id||12===s.gameEvent.category_id&&1===s.gameEvent.event_type_id?"gol.svg":30==s.gameEvent.category_id||31==s.gameEvent.category_id||32==s.gameEvent.category_id||33==s.gameEvent.category_id||34==s.gameEvent.category_id||35==s.gameEvent.category_id||36==s.gameEvent.category_id||37==s.gameEvent.category_id||38==s.gameEvent.category_id||39==s.gameEvent.category_id||40==s.gameEvent.category_id?"var.png":28===s.gameEvent.category_id?"tiempo-agregado.svg":26===s.gameEvent.category_id?"jugada-peligrosa.svg":22===s.gameEvent.category_id?"penal-marcado.svg":15===s.gameEvent.category_id||23===s.gameEvent.category_id?"penal-fallado.svg":8===s.gameEvent.category_id?"icn-tarjeta-amarilla.svg":9===s.gameEvent.category_id?"icn-tarjeta-roja.svg":"generic.svg","/images/events/"+e});function n(){a("click-event",s.gameEvent)}return(a,l)=>(t.openBlock(),t.createElementBlock("div",{id:s.gameEvent.play_id,class:"game-event",onClick:n,style:t.normalizeStyle(i.value)},[t.createElementVNode("div",Zl,[t.createElementVNode("div",null,t.toDisplayString(e.gameEvent.minute)+"'",1)]),t.createElementVNode("div",$l,[t.createElementVNode("img",{src:o.value},null,8,Xl)])],12,Ul))}},[["__scopeId","data-v-cb3d6917"]]),Kl={class:"events-line"},Ql={class:"events-line__events"},er=(e=>(t.pushScopeId("data-v-f5698f0e"),e=e(),t.popScopeId(),e))(()=>t.createElementVNode("div",{class:"events-line__events__line"},null,-1)),tr=B({h:"EventsLine",props:{gameEvents:{type:Array,default:()=>[]}},emits:["click-event"],setup(e,{emit:a}){function s(e){a("click-event",e)}return(a,i)=>(t.openBlock(),t.createElementBlock("div",Kl,[t.createVNode(t.unref(p.GSCSlider),{backgroundColor:"#172531",pxScroll:260,arrowsPosition:"absolute",arrowsScrollHide:!0,arrowsBackground:"rgba(255,255,255,.16)",arrowsContainerBgL:"none",arrowsContainerBgR:"none",arrowsMargin:0,arrowsRadius:"50%",arrowsBorder:"#ddd"},{default:t.withCtx(()=>[t.createElementVNode("div",Ql,[er,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.gameEvents,e=>(t.openBlock(),t.createBlock(Yl,{key:e.id,"game-event":e,onClickEvent:s},null,8,["game-event"]))),128))])]),o:1})]))}},[["__scopeId","data-v-f5698f0e"]]),ar=e=>(t.pushScopeId("data-v-4a6f2e4c"),e=e(),t.popScopeId(),e),sr={class:"tooltip-data"},ir=["src"],or=ar(()=>t.createElementVNode("div",{class:"game-events__title-left-padding"},null,-1)),nr=ar(()=>t.createElementVNode("div",{class:"game-events__title"},"Eventos",-1)),lr={class:"game-events__team-logo"},rr=["src"],dr={class:"game-events__event-info"},cr={key:0,class:"game-events__event-info__line"},mr={key:1,class:"game-events__event-info__info"},pr={class:"game-events__event-info__info__player-photo"},hr={key:0,class:"game-events__event-info__info__player-photo__img"},ur=["src"],yr={class:"game-events__event-info__info__event-name"},gr={class:"game-events__event-info__info__player-name"},vr=[ar(()=>t.createElementVNode("img",{src:Wl,alt:""},null,-1))],_r=ar(()=>t.createElementVNode("div",{class:"game-events__events-padding"},null,-1)),fr={class:"game-events__events"},br={class:"game-events__team-logo"},wr=["src"],Sr={class:"game-events__event-info"},Tr={key:0,class:"game-events__event-info__line"},kr={key:1,class:"game-events__event-info__info"},xr={class:"game-events__event-info__info__player-photo"},Cr={key:0,class:"game-events__event-info__info__player-photo__img"},Ir=["src"],Pr={class:"game-events__event-info__info__event-name"},Gr={class:"game-events__event-info__info__player-name"},Fr=[ar(()=>t.createElementVNode("img",{src:Wl,alt:""},null,-1))],Ar=B({h:"GameEvents",props:{game:{type:Object,default:()=>({})},widthScreen:{type:Number,default:0},token:{type:String,default:""},canPlayVideos:{type:Boolean,default:!0},gameEventsIntervalMinutes:{type:Number,default:1}},emits:["play-video"],setup(e,{emit:a}){const s=e;let i=null,o=0;const n=t.ref([]),l=t.ref(new Map),r=t.ref(""),d=t.ref(null),c=t.ref({visible:!1,link:""}),p=t.ref(new Set),h=t.ref(0),u=t.computed(()=>s.game.is_live||0===s.game.game_status);async function y(e,t=!1){try{let a=await(async e=>{try{const t=(await m.get(`https://11rcgkydx3.execute-api.us-east-2.amazonaws.com/prod/games/${e}/timeline`,{headers:{Authorization:s.token}})).data;return t&&t.plays||[]}catch(t){throw Error(t)}})(e),o=!1;e!==h.value&&(n.value=[],l.value=new Map,r.value="",p.value.clear(),h.value=e);let d=a.filter(e=>{const t=p.value.has(e.play_id);return t||p.value.add(e.play_id),!t});if(d){d=d.reduce((e,t)=>(o=t.game_finished,t.team_id?(t.isHomeTeam=t.team_id===s.game.homeTeam.team_id,e.push(t),l.value.set(t.play_id,t),e):e),[]);const e=[...n.value];v(d).forEach(t=>{u.value?e.unshift(t):e.push(t)}),n.value=u.value?v(e).reverse():v(e)}n.value&&n.value.length&&(u.value||!r.value&&n.value.length)&&(r.value=n.value[0].play_id),t&&!o?(e=>{i=setInterval(()=>{y(e)},6e4*s.gameEventsIntervalMinutes)})(e):o&&g()}catch(a){}}function g(){i&&(clearInterval(i),i=null)}function v(e){return e.sort((e,t)=>_(e.matchlapse)+ +e.minute-(_(t.matchlapse)+ +t.minute))}function _(e){let t=0;switch(e){case 1:t=0;break;case 2:t=45;break;case 3:t=90;break;case 4:t=105;break;case 5:t=120}return t}function f(e){r.value=e.play_id}function b(){s.canPlayVideos&&d.value.play_id&&a("play-video",{categoryId:d.value.main_category_id,playId:d.value.play_id})}function w(){c.value.visible=!1,c.value.link=""}return t.watch(()=>s.game,(e,t)=>{e&&e.gameId!==o?(p.value.clear(),o=e.gameId,g(),y(e.gameId,e.is_live&&4===e.game_status)):!e||!e.is_live||t&&t.is_live?e&&!e.is_live&&t.is_live&&g():y(e.gameId,!0)},{deep:!0,immediate:!0}),t.watch(()=>r.value,(e,t)=>{if(e!==t){const a=l.value.get(t),s=l.value.get(e);if(a&&(a.isSelected=!1),s){if(!s.playerShortName){const[e,t]=s.player_name.split(","),a=e.split(" ");let i="";for(const s of a)if(i+=" "+s,s.length>3)break;s.playerShortName=t&&e?`${t.trim().charAt(0)}.${i}`:""}s.isSelected=!0,d.value=s}}}),t.onBeforeUnmount(()=>{g()}),(a,s)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createVNode(Hl,{data:c.value,onClose:w},{default:t.withCtx(()=>[t.createElementVNode("div",sr,[t.createElementVNode("div",null,[t.createElementVNode("video",{class:"tooltip-video",controls:"",autoplay:"",src:c.value.link,format:"video/mp4"},null,8,ir)])])]),o:1},8,["data"]),t.createElementVNode("div",{class:t.normalizeClass(e.widthScreen>920?"game-events":"game-events__mobile")},[or,nr,t.createElementVNode("div",lr,[e.game&&e.game.homeTeam?(t.openBlock(),t.createElementBlock("img",{key:0,class:"game-events__team-logo__img",src:e.game.homeTeam.logo,alt:"team-logo"},null,8,rr)):t.createCommentVNode("",!0)]),t.createElementVNode("div",dr,[d.value&&d.value.isHomeTeam?(t.openBlock(),t.createElementBlock("div",cr)):t.createCommentVNode("",!0),d.value&&d.value.isHomeTeam?(t.openBlock(),t.createElementBlock("div",mr,[t.createElementVNode("div",pr,[d.value.player_id?(t.openBlock(),t.createElementBlock("div",hr,[t.createElementVNode("img",{src:`https://golstatsimages.blob.core.windows.net/players-profile/${d.value.player_id}.png`,alt:""},null,8,ur)])):t.createCommentVNode("",!0)]),t.createElementVNode("div",yr,t.toDisplayString(1===d.value.event_type_id?d.value.event_type_name:d.value.category_name),1),t.createElementVNode("div",gr," | "+t.toDisplayString(d.value.playerShortName),1),e.canPlayVideos&&d.value.play_id?(t.openBlock(),t.createElementBlock("div",{key:0,role:"button",class:"game-events__event-info__info__button-play",onClick:b},vr)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)]),_r,t.createElementVNode("div",fr,[t.createVNode(tr,{"game-events":n.value,onClickEvent:f},null,8,["game-events"])]),t.createElementVNode("div",br,[e.game&&e.game.awayTeam?(t.openBlock(),t.createElementBlock("img",{key:0,class:"game-events__team-logo__img",src:e.game.awayTeam.logo,alt:"team-logo"},null,8,wr)):t.createCommentVNode("",!0)]),t.createElementVNode("div",Sr,[d.value&&!d.value.isHomeTeam?(t.openBlock(),t.createElementBlock("div",Tr)):t.createCommentVNode("",!0),d.value&&!d.value.isHomeTeam?(t.openBlock(),t.createElementBlock("div",kr,[t.createElementVNode("div",xr,[d.value.player_id?(t.openBlock(),t.createElementBlock("div",Cr,[t.createElementVNode("img",{src:`https://golstatsimages.blob.core.windows.net/players-profile/${d.value.player_id}.png`,alt:""},null,8,Ir)])):t.createCommentVNode("",!0)]),t.createElementVNode("div",Pr,t.toDisplayString(1===d.value.event_type_id?d.value.event_type_name:d.value.category_name),1),t.createElementVNode("div",Gr," | "+t.toDisplayString(d.value.playerShortName),1),e.canPlayVideos&&d.value.play_id?(t.openBlock(),t.createElementBlock("div",{key:0,role:"button",class:"game-events__event-info__info__button-play",onClick:b},Fr)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)])],2)],64))}},[["__scopeId","data-v-4a6f2e4c"]]),Mr={class:"toggle-buttons__background"},Lr=["onClick"],Or={key:0,class:"toggle-buttons__button__img"},Nr=["src"],Dr=B({h:"ToggleButtons",props:{buttons:{type:Array,required:!0},selectedButtonIndex:{type:Number,default:0},height:{type:String,default:"29px"},width:{type:String,default:"100%"},fontSize:{type:String,default:"12px"},fontFamily:{type:String,default:"Poppins-Medium"},borderRadius:{type:String,default:"8px"},mainBackgroundColor:{type:String,default:"#364448"},mainBorderColor:{type:String,default:"#9AA1A3"},mainBorderWidth:{type:String,default:"0.5px"},activeBorderColor:{type:String,default:"#cbee6b"},activeBorderWidth:{type:String,default:"1px"},activeBackgroundColor:{type:String,default:"#2e3b46"},activeFontColor:{type:String,default:"#FFFFFF"}},emits:["change"],setup(e,{emit:a}){const s=e;t.useCssVars(t=>({64265112:e.height,df19770a:e.width,"6caf15d1":e.mainBackgroundColor,"2d25df89":e.borderRadius,"21a281f6":e.mainBorderWidth,"208b8393":e.mainBorderColor,94332204:e.fontFamily,"3e48121b":e.fontSize,"37a2dd49":e.activeBorderWidth,"368bdee6":e.activeBorderColor,ecc8e0b8:e.activeBackgroundColor,"5528ac63":e.activeFontColor}));const i=t.ref(s.selectedButtonIndex),o=t.computed(()=>({"--grid-template-columns":`repeat(${s.buttons.length}, 1fr)`}));return t.watch(()=>s.selectedButtonIndex,e=>{i.value=e}),t.watch(i,(e,t)=>{e!==t&&a("change",{index:e,button:s.buttons[e]})}),(a,s)=>(t.openBlock(),t.createElementBlock("div",Mr,[t.createElementVNode("div",{class:"toggle-buttons",style:t.normalizeStyle(o.value)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.buttons,(e,a)=>(t.openBlock(),t.createElementBlock("div",{key:"b"+a,class:t.normalizeClass(["toggle-buttons__button",{active:i.value===a,right:e.img&&a>0}]),onClick:e=>(e=>{i.value=e})(a)},[e.img?(t.openBlock(),t.createElementBlock("div",Or,[t.createElementVNode("img",{src:e.img,alt:""},null,8,Nr)])):t.createCommentVNode("",!0),t.createElementVNode("div",null,t.toDisplayString(e.text||e),1)],10,Lr))),128))],4)]))}},[["__scopeId","data-v-8c3c29c6"]]),Vr=e=>(t.pushScopeId("data-v-b3a94cf2"),e=e(),t.popScopeId(),e),zr={class:"tooltip__content"},jr={key:0,class:"tooltip__content__category"},Br={class:"tooltip__content__player"},Rr={class:"tooltip__content__player__name"},qr={class:"tooltip__content__player__photo"},Er=["src"],Jr={class:"tooltip__content__minute"},Wr={key:1,class:"tooltip__content__game"},Hr=Vr(()=>t.createElementVNode("div",{class:"tooltip__content__game__name"},"Partido:",-1)),Ur={class:"tooltip__content__game__round-abbreviation"},Zr={class:"tooltip__content__game__logo"},$r=["src"],Xr=Vr(()=>t.createElementVNode("div",{class:"tooltip__content__game__vs"},"VS",-1)),Yr={class:"tooltip__content__game__logo"},Kr=["src"],Qr={key:2,class:"tooltip__content__team"},ed=Vr(()=>t.createElementVNode("div",{class:"tooltip__content__team__name"},"Equipo:",-1)),td={class:"tooltip__content__team__logo"},ad=["src"],sd=B({h:"TooltipChalkboard",props:{event:{type:Object,default:()=>({})},position:{type:Object,default:()=>({x:"0",y:"0"})}},emits:["close"],setup(e,{emit:a}){const s=e,i=t.computed(()=>({"--top":s.position.y,"--left":s.position.x})),o=t.computed(()=>`${s.event.player.player_name} ${s.event.player.player_lastname}`),n=t.computed(()=>{const[e]=s.event.momentOfPlay.split(":");return+e+"'"});function l(){a("close")}return(a,s)=>(t.openBlock(),t.createElementBlock("div",{class:"tooltip",onClick:l,style:t.normalizeStyle(i.value)},[t.createElementVNode("div",zr,[e.event.categoryName?(t.openBlock(),t.createElementBlock("div",jr,t.toDisplayString(e.event.categoryName),1)):t.createCommentVNode("",!0),t.createElementVNode("div",Br,[t.createElementVNode("div",Rr,t.toDisplayString(o.value),1),t.createElementVNode("div",qr,[t.createElementVNode("img",{src:e.event.player.photo,alt:""},null,8,Er)])]),t.createElementVNode("div",Jr,"Minuto: "+t.toDisplayString(n.value),1),e.event.game?(t.openBlock(),t.createElementBlock("div",Wr,[Hr,t.createElementVNode("div",Ur,t.toDisplayString(e.event.game.roundAbbreviation),1),t.createElementVNode("div",Zr,[t.createElementVNode("img",{src:e.event.game.homeTeam.logo,alt:""},null,8,$r)]),Xr,t.createElementVNode("div",Yr,[t.createElementVNode("img",{src:e.event.game.awayTeam.logo,alt:""},null,8,Kr)])])):(t.openBlock(),t.createElementBlock("div",Qr,[ed,t.createElementVNode("div",td,[t.createElementVNode("img",{src:e.event.team.logo,alt:""},null,8,ad)])]))])],4))}},[["__scopeId","data-v-b3a94cf2"]]),id=["id"],od=["fill"],nd=["id"],ld=["fill"],rd=["stroke-dasharray","x1","y1","x2","y2","marker-end"],dd=["x","y","stroke-width","fill","stroke"],cd=["x","y"],md={h:"EventConnection",props:{eventConnection:{type:Object,required:!0},color:{type:String,required:!0},isLastEvent:{type:Boolean,default:!1},mainEventIdSelected:{type:Number,default:0}},setup(e){const a=e,s=t.computed(()=>{const e=[];if(a.eventConnection.hasConnectionPath){const t=a.eventConnection.x1===a.eventConnection.x2&&a.eventConnection.y1===a.eventConnection.y2?1:2;let s=r(a.eventConnection.previousEvent?a.eventConnection.previousEvent.y3:a.eventConnection.y1);const i=d(a.eventConnection.previousEvent?a.eventConnection.previousEvent.x3:a.eventConnection.x1);let o=0,n=0;2===t&&(o=r(a.eventConnection.y2),n=d(a.eventConnection.x2));const l=r(a.eventConnection.y3),c=d(a.eventConnection.x3);1===t?e.push({x1:i,y1:s,x2:c,y2:l}):(e.push({x1:i,y1:s,x2:n,y2:o}),e.push({x1:n,y1:o,x2:c,y2:l}))}return e}),i=t.computed(()=>0!==a.mainEventIdSelected?a.eventConnection.relatedPlayId===a.mainEventIdSelected?1:.1:1),o=t.computed(()=>0===a.mainEventIdSelected||a.eventConnection.relatedPlayId===a.mainEventIdSelected),n=t.computed(()=>r(a.eventConnection.previousEvent?a.eventConnection.previousEvent.y3:a.eventConnection.y1)),l=t.computed(()=>d(a.eventConnection.previousEvent?a.eventConnection.previousEvent.x3:a.eventConnection.x1));function r(e){return 100*(1-e)}function d(e){return 100*e}function c(e){L.emit("mouse-over-event",{mouseEvent:e,eventConnection:a.eventConnection,position:{x:l.value,y:n.value}})}function m(){L.emit("mouse-leave-event",{mainEventId:a.eventConnection.relatedPlayId,eventId:a.eventConnection.playId})}return(a,r)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createElementVNode("defs",null,[t.withDirectives(t.createElementVNode("marker",{id:"a-"+e.eventConnection.playId,markerWidth:"10",markerHeight:"10",refX:"0",refY:"3",orient:"auto",markerUnits:"strokeWidth",style:t.normalizeStyle({opacity:i.value})},[t.createElementVNode("path",{d:"M0,0 L0,6 L9,3 z",fill:e.color},null,8,od)],12,id),[[t.vShow,o.value]]),t.withDirectives(t.createElementVNode("marker",{id:"b-"+e.eventConnection.playId,markerWidth:"4",markerHeight:"4",refX:"2",refY:"2",orient:"auto",markerUnits:"strokeWidth",style:t.normalizeStyle({opacity:i.value})},[t.createElementVNode("circle",{cx:"2",cy:"2",r:"2",fill:e.color},null,8,ld)],12,nd),[[t.vShow,o.value]])]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.value,(a,n)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[a.x1&&a.y1?t.withDirectives((t.openBlock(),t.createElementBlock("line",{key:`${e.eventConnection.playId}-${n}`,style:t.normalizeStyle({stroke:e.color,"stroke-width":2,opacity:i.value}),"stroke-dasharray":0===n&&2===s.value.length?"none":"5,5",x1:a.x1+"%",y1:a.y1+"%",x2:a.x2+"%",y2:a.y2+"%","marker-start":"`url(`#b-${eventConnection.playId}`)`","marker-end":`url(${e.isLastEvent&&n===s.value.length-1?"#a-"+e.eventConnection.playId:""})`},null,12,rd)),[[t.vShow,o.value]]):t.createCommentVNode("",!0)],64))),256)),t.withDirectives(t.createElementVNode("g",{onMouseover:c,onMouseleave:m,style:t.normalizeStyle({cursor:"pointer",opacity:i.value})},[t.createElementVNode("rect",{x:l.value+"%",y:n.value+"%",transform:"translate(-14, -14)",height:"28",width:"28","stroke-width":e.eventConnection.isMainPlay?2:1,fill:e.color,stroke:e.eventConnection.isMainPlay?"#fff":"#999",style:t.normalizeStyle({opacity:i.value}),rx:"14",ry:"14"},null,12,dd),t.createElementVNode("text",{x:l.value+"%",y:n.value+"%","text-anchor":"middle","dominant-baseline":"middle",dy:"1","font-size":"15",fill:"#fff","font-family":"'Poppins-SemiBold', sans-serif",style:t.normalizeStyle({opacity:i.value})},t.toDisplayString(e.eventConnection.player?e.eventConnection.player.jersey:""),13,cd)],36),[[t.vShow,o.value]])],64))}},pd={h:"EventConnections",props:{eventConnections:{type:Object,required:!0},mainEventIdSelected:{type:Number,default:0}},setup(e){const a=e,s=t.computed(()=>a.eventConnections.getEventsConnectionsByEventType());return(a,i)=>(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.value,(a,i)=>(t.openBlock(),t.createBlock(md,{key:a.id,color:e.eventConnections.getEventColor(a),"is-last-event":i===s.value.length-1,"event-connection":a,"main-event-id-selected":e.mainEventIdSelected},null,8,["color","is-last-event","event-connection","main-event-id-selected"]))),128))}},hd={class:"soccer-chalkboard"},ud={id:"soccerChalkboardField",class:"soccer-chalkboard__field"},yd=["src"],gd={viewBox:"0 0 547 340",fill:"none",xmlns:"http://www.w3.org/2000/svg"},vd=B({h:"SoccerChalkboard",props:{eventsConnections:{type:Array,default:()=>[]},listType:{type:String,default:"events"},playersSelected:{type:Set,default:()=>new Set},teamsSelected:{type:Set,default:()=>new Set},isAssistantZoneVisible:{type:Boolean,default:!1}},setup(e){const a=e,s=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(ge)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(ge.substr(0,4))?0:1e3;L.on("mouse-over-time-event",e=>{c(e),setTimeout(()=>{c(e)},s)}),L.on("mouse-leave-time-event",e=>{setTimeout(()=>{n.value!=e||i.value||c(0)},s)}),L.on("mouse-over-event",e=>{(e=>{const t=document.getElementById("soccerChalkboardField");if(t){const a=t.getBoundingClientRect(),s=e.position.x/100*a.width+14,d=e.position.y/100*a.height+14,c=s+170>a.width?a.width-170:s,m=d;n.value=e.eventConnection.relatedPlayId,l.value=e.eventConnection.playId,o.value=e.eventConnection,r.value={x:c+"px",y:m+"px"},i.value=!0}})(e)}),L.on("mouse-leave-event",e=>{setTimeout(()=>{e.eventId===l.value&&(i.value=!1,n.value=0)},s)});const i=t.ref(!1),o=t.ref({}),n=t.ref(0),l=t.ref(0),r=t.ref({x:0,y:0}),d=t.computed(()=>a.isAssistantZoneVisible?"https://golstatsimages.blob.core.windows.net/todoelfut/pizarra.jpg":"https://golstatsimages.blob.core.windows.net/todoelfut/field-green-posesion.jpg");function c(e){n.value=e}function m(){i.value=!1}return(a,s)=>(t.openBlock(),t.createElementBlock("div",hd,[t.createElementVNode("div",ud,[t.createElementVNode("img",{src:d.value,alt:""},null,8,yd),(t.openBlock(),t.createElementBlock("svg",gd,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.eventsConnections,(a,s)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,["events"===e.listType&&a.hasTeam(e.teamsSelected)||"players"===e.listType&&a.hasPlayer(e.playersSelected)?(t.openBlock(),t.createBlock(pd,{key:s,"event-connections":a,"main-event-id-selected":n.value},null,8,["event-connections","main-event-id-selected"])):t.createCommentVNode("",!0)],64))),256))]))]),i.value?(t.openBlock(),t.createBlock(sd,{key:0,position:r.value,event:o.value,onClose:m},null,8,["position","event"])):t.createCommentVNode("",!0)]))}},[["__scopeId","data-v-17190e13"]]),_d=e=>(t.pushScopeId("data-v-f70399b8"),e=e(),t.popScopeId(),e),fd={class:"events-timeline"},bd=_d(()=>t.createElementVNode("div",{class:"events-timeline__back-line"},null,-1)),wd=["onMouseover","onMouseleave"],Sd=["id"],Td=[_d(()=>t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.77234 0.45166C2.11548 0.45166 0.772339 1.79481 0.772339 3.45166V14.4517C0.772339 16.1085 2.11548 17.4517 3.77234 17.4517H7.96294L10.2723 21.4517L12.5817 17.4517H16.7723C18.4292 17.4517 19.7723 16.1085 19.7723 14.4517V3.45166C19.7723 1.79481 18.4292 0.45166 16.7723 0.45166H3.77234Z"},null,-1))],kd=["fill"],xd=["mask"],Cd=["stroke"],Id=B({h:"EventsTimeLine",props:{eventsConnections:{type:Array,default:()=>[]},listType:{type:String,default:"events"},playersSelected:{type:Set,default:()=>new Set},teamsSelected:{type:Set,default:()=>new Set}},setup(e){const a=e,s=["0'","45'","90'"],i=t.computed(()=>a.eventsConnections.reduce((e,t)=>{const a={minute:"0'",left:"0%",color:t.getTeamColor(),fontColor:t.getTeamFontColor(),playId:t.mainPlay.playId,playerId:t.mainPlay.playerId,teamId:t.mainPlay.teamId,relatedPlayId:t.relatedPlayId},[s]=t.mainPlay.momentOfPlay.split(":"),i=parseInt(s);return 90>i?(a.minute=i+"'",a.left=i/90*100+"%"):(a.minute=i+"'",a.left="100%"),e.push(a),e},[]));return(a,o)=>(t.openBlock(),t.createElementBlock("div",fd,[(t.openBlock(),t.createElementBlock(t.Fragment,null,t.renderList(s,(e,a)=>t.createElementVNode("div",{class:"events-timeline__game-time",key:a},t.toDisplayString(e),1)),64)),bd,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i.value,(a,s)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,["events"===e.listType&&e.teamsSelected.has(a.teamId)||"players"===e.listType&&e.playersSelected.has(a.playerId)?(t.openBlock(),t.createElementBlock("svg",{key:s,width:"20",height:"22",viewBox:"0 0 20 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:t.normalizeStyle({left:a.left,cursor:"pointer"}),onMouseover(e){return t=a,void L.emit("mouse-over-time-event",t.playId);var t},onMouseleave(e){return t=a,void L.emit("mouse-leave-time-event",t.playId);var t}},[t.createElementVNode("mask",{id:a.playId.toString(),fill:"white"},Td,8,Sd),t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.77234 0.45166C2.11548 0.45166 0.772339 1.79481 0.772339 3.45166V14.4517C0.772339 16.1085 2.11548 17.4517 3.77234 17.4517H7.96294L10.2723 21.4517L12.5817 17.4517H16.7723C18.4292 17.4517 19.7723 16.1085 19.7723 14.4517V3.45166C19.7723 1.79481 18.4292 0.45166 16.7723 0.45166H3.77234Z",fill:a.color},null,8,kd),t.createElementVNode("path",{d:"M7.96294 17.4517L8.82896 16.9517L8.54029 16.4517H7.96294V17.4517ZM10.2723 21.4517L9.40631 21.9517L10.2723 23.4517L11.1384 21.9517L10.2723 21.4517ZM12.5817 17.4517V16.4517H12.0044L11.7157 16.9517L12.5817 17.4517ZM1.77234 3.45166C1.77234 2.34709 2.66777 1.45166 3.77234 1.45166V-0.54834C1.5632 -0.54834 -0.227661 1.24252 -0.227661 3.45166H1.77234ZM1.77234 14.4517V3.45166H-0.227661V14.4517H1.77234ZM3.77234 16.4517C2.66777 16.4517 1.77234 15.5562 1.77234 14.4517H-0.227661C-0.227661 16.6608 1.5632 18.4517 3.77234 18.4517V16.4517ZM7.96294 16.4517H3.77234V18.4517H7.96294V16.4517ZM7.09691 17.9517L9.40631 21.9517L11.1384 20.9517L8.82896 16.9517L7.09691 17.9517ZM11.1384 21.9517L13.4478 17.9517L11.7157 16.9517L9.40631 20.9517L11.1384 21.9517ZM16.7723 16.4517H12.5817V18.4517H16.7723V16.4517ZM18.7723 14.4517C18.7723 15.5562 17.8769 16.4517 16.7723 16.4517V18.4517C18.9815 18.4517 20.7723 16.6608 20.7723 14.4517H18.7723ZM18.7723 3.45166V14.4517H20.7723V3.45166H18.7723ZM16.7723 1.45166C17.8769 1.45166 18.7723 2.34709 18.7723 3.45166H20.7723C20.7723 1.24252 18.9815 -0.54834 16.7723 -0.54834V1.45166ZM3.77234 1.45166H16.7723V-0.54834H3.77234V1.45166Z",fill:"#172531",mask:`url(#${a.playId})`},null,8,xd),t.createElementVNode("g",null,[t.createElementVNode("text",{x:"50%",y:"8","text-anchor":"middle","dominant-baseline":"middle",dy:"1","font-size":"9","font-family":"Poppins-Light",stroke:a.fontColor,"stroke-width":"0.7"},t.toDisplayString(a.minute),9,Cd)])],44,wd)):t.createCommentVNode("",!0)],64))),256))]))}},[["__scopeId","data-v-f70399b8"]]),Pd=e=>(t.pushScopeId("data-v-2a81f2f0"),e=e(),t.popScopeId(),e),Gd={class:"header-team__info"},Fd={class:"header-team__info__checkbox"},Ad={key:0,class:"header-team__info__logo"},Md=["src"],Ld={class:"header-team__info__name"},Od={class:"header-team__arrow"},Nd=Pd(()=>t.createElementVNode("div",{class:"header-team__arrow__circle"},null,-1)),Dd=Pd(()=>t.createElementVNode("div",{class:"header-team__arrow__line"},null,-1)),Vd=B({h:"CategoriesHeaderTeam",props:{team:{type:Object,default(){}},isHomeTeam:{type:Boolean,default:!0},teamsSelected:{type:Set,default:()=>new Set},isGamePreMatch:{type:Boolean,default:!1},isTeamForAnalysis:{type:Boolean,default:!1}},emits:["change-team"],setup(e,{emit:a}){const s=e,i=t.computed(()=>({"--flex-direction-info":s.isHomeTeam?"flex":"row-reverse","--justify-content-info":s.isHomeTeam?"flex-start":"flex-end","--arrow-color":s.isHomeTeam?"#336dff":"#7ed321"})),o=t.computed(()=>s.team.colloquial_name||s.team.colloquialName||s.team.name||s.team.team_name||"");function n(e){a("change-team",{value:e,team:s.team})}return(a,l)=>(t.openBlock(),t.createElementBlock("div",{class:"header-team",style:t.normalizeStyle(i.value)},[t.createElementVNode("div",Gd,[t.createElementVNode("div",Fd,[t.createVNode(t.unref(r.GSCCheckbox),{"model-value":e.team.isSelected,"avoid-interaction":1===e.teamsSelected.size&&e.team.isSelected,"onUpdate:modelValue":n},null,8,["model-value","avoid-interaction"])]),"Rival"!==o.value?(t.openBlock(),t.createElementBlock("div",Ad,[e.team.logo?(t.openBlock(),t.createElementBlock("img",{key:0,src:e.team.logo,alt:"h-team"},null,8,Md)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),t.createElementVNode("div",Ld,t.toDisplayString(o.value),1)]),t.createElementVNode("div",Od,[Nd,Dd,t.createElementVNode("div",{class:t.normalizeClass("header-team__arrow__triangle-"+(s.isHomeTeam?"right":"left"))},null,2)])],4))}},[["__scopeId","data-v-2a81f2f0"]]),zd=e=>(t.pushScopeId("data-v-bfb2c86b"),e=e(),t.popScopeId(),e),jd={class:"list-events"},Bd=zd(()=>t.createElementVNode("div",{class:"list-events__title"},"Tipos de jugadas:",-1)),Rd={class:"list-events__list"},qd=["onClick"],Ed=[zd(()=>t.createElementVNode("img",{src:Wl,alt:""},null,-1))],Jd=B({h:"ListEvents",props:{listEventsToDisplay:{type:Array,default:()=>[]},awaitForListEvents:{type:Boolean,default:!1},lastEventTypeSelected:{type:Object,default:()=>({})},canPlayVideos:{type:Boolean,default:!0},totalEvents:{type:Number,default:0},isPrivilegesVrApplicable:{type:Boolean,default:!1},totalEventsPrivilegesVr:{type:Number,default:0}},emits:["change-event-type","click-play"],setup(e,{emit:a}){const s=e,i=[{categoriesIds:new Set([607,608]),name:"Oportunidad de gol",value:"0"},{categoriesIds:new Set([12,55,"54_r","35_r"]),name:"Goles",value:"1"},{categoriesIds:new Set([19]),name:"Tiros a gol",value:"2"},{categoriesIds:new Set([537,540,544,547]),name:"Tiros a gol (portería)",value:"3"},{categoriesIds:new Set([13,25]),name:"Centros totales",value:"5"},{categoriesIds:new Set([98,101,104,105,109,112,115,116]),name:"Centros acertados",value:"6"},{categoriesIds:new Set([11]),name:"Balones ganados en área rival",value:"7"},{categoriesIds:new Set([4]),name:"1vs1 exitosos ofensivos",value:"8"},{categoriesIds:new Set([208]),name:"1vs1 no exitosos ofensivos",value:"9"},{categoriesIds:new Set([5]),name:"1vs1 exitoso defensivo",value:"10"},{categoriesIds:new Set([31,32]),name:"Corners",value:"11"}],o=t.ref(s.awaitForListEvents?[]:i),n=t.ref(s.awaitForListEvents?new Map:o.value.reduce((e,t)=>(e.set(t.value,t),e),new Map)),l=t.ref(s.awaitForListEvents?"":o.value[0].value);return t.watch(()=>s.listEventsToDisplay,e=>{if(e.length){n.value=new Map,o.value=e.map((e,t)=>{const a={name:e.name,singleName:e.single_name,categories:new Set(e.categories),categoriesIds:e.categories,post:e.post,prev:e.prev,value:t.toString()};return n.value.set(a.value,a),a});let t=null;s.lastEventTypeSelected&&s.lastEventTypeSelected.name&&(t=n.value.get(s.lastEventTypeSelected.value)),l.value=t?t.value:o.value[0].value}},{immediate:!0,deep:!0}),t.watch(()=>l.value,e=>{const t=n.value.get(e);t&&a("change-event-type",t)}),(i,n)=>(t.openBlock(),t.createElementBlock("div",jd,[Bd,t.createElementVNode("div",Rd,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(o.value,i=>(t.openBlock(),t.createElementBlock("div",{key:i.value,class:"list-events__list__item"},[t.createVNode(t.unref(d.GSCRadioButton),{modelValue:l.value,"onUpdate:modelValue":n[0]||(n[0]=e=>l.value=e),value:i.value,label:i.name,name:"event-type","radio-position":"left",class:"list-events__list__item__radio"},null,8,["modelValue","value","label"]),t.createElementVNode("button",{class:t.normalizeClass(["list-events__list__item__btn-play",{disabled:!(e.canPlayVideos&&l.value===i.value&&(e.isPrivilegesVrApplicable?e.totalEventsPrivilegesVr:e.totalEvents)>0)}]),onClick(t){return o=i,n=e.canPlayVideos&&l.value===i.value&&(e.isPrivilegesVrApplicable?e.totalEventsPrivilegesVr:e.totalEvents)>0,void(s.canPlayVideos&&n&&a("click-play",o.categoriesIds));var o,n}},Ed,10,qd)]))),128))])]))}},[["__scopeId","data-v-bfb2c86b"]]),Wd=new Map([[1,"Portero"],[2,"Defensa Central"],[3,"Lateral por izquierda"],[4,"Lateral por derecha"],[5,"Volante por izquierda"],[6,"Volante por derecha"],[7,"Volante defensivo"],[8,"Volante ofensivo"],[9,"Delantero"]]),Hd={class:"item-player__info"},Ud={class:"item-player__info__photo"},Zd={class:"item-player__info__photo__img"},$d=["src"],Xd={class:"item-player__info__data"},Yd={class:"item-player__info__data__name"},Kd={class:"item-player__info__data__position"},Qd={class:"item-player__info__data__position__nationality"},ec=["src"],tc={class:"item-player__info__data__position__position"},ac={class:"item-player__jersey-number"},sc=B({h:"ItemPlayer",props:{isFemale:{type:Boolean,default:!1},player:{type:Object,default(){}},selectedPlayers:{type:Set,default:()=>new Set}},emits:["change-player"],setup(e,{emit:a}){const s=e,i=t.computed(()=>Wd.get(s.player.position_id)||""),o=t.computed(()=>`https://golstatsimages.blob.core.windows.net/flags/${s.player.nationality_id}.jpg`);function n(e){a("change-player",e)}return(a,s)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["item-player",{inactive:!e.player.isSelected}])},[t.createVNode(t.unref(r.GSCCheckbox),{"model-value":e.player.isSelected,"avoid-interaction":1===e.selectedPlayers.size&&e.player.isSelected,"onUpdate:modelValue":n},null,8,["model-value","avoid-interaction"]),t.createElementVNode("div",Hd,[t.createElementVNode("div",Ud,[t.createElementVNode("div",Zd,[t.createElementVNode("img",{src:e.player.photo,alt:"player-photo"},null,8,$d)])]),t.createElementVNode("div",Xd,[t.createElementVNode("div",Yd,t.toDisplayString(e.player.player_lastname)+", "+t.toDisplayString(e.player.player_name),1),t.createElementVNode("div",Kd,[t.createElementVNode("div",Qd,[t.createElementVNode("img",{src:o.value},null,8,ec)]),t.createElementVNode("div",tc,t.toDisplayString(e.isFemale?i.value.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):i.value),1)])])]),t.createElementVNode("div",ac,t.toDisplayString(e.player.jersey),1)],2))}},[["__scopeId","data-v-03a1125d"]]),ic={class:"list-players"},oc={class:"list-players__header"},nc=["src"],lc={class:"list-players__header__team__name"},rc=["src"],dc={class:"list-players__header__team__name"},cc={class:"list-players__body"},mc=B({h:"ListPlayers",props:{isFemale:{type:Boolean,default:!1},homeTeam:{type:Object,default:()=>({})},awayTeam:{type:Object,default:()=>({})},availablePlayersByTeam:{type:Map,default:()=>new Map}},emits:["change-players"],setup(e,{emit:a}){const s=e,i=t.ref(0);t.watch(()=>s.homeTeam.team_id,e=>{void 0===e?s.awayTeam&&s.awayTeam.team_id&&(i.value=s.awayTeam.team_id):i.value=e},{immediate:!0});const o=t.computed(()=>s.availablePlayersByTeam.get(i.value)||[]),n=t.computed(()=>o.value.reduce((e,t)=>(t.isSelected&&e.add(t.player_id),e),new Set));function l(e){i.value=e}return t.watch(()=>n.value,e=>{a("change-players",e)},{immediate:!0}),(a,s)=>(t.openBlock(),t.createElementBlock("div",ic,[t.createElementVNode("div",oc,[void 0!==e.homeTeam.team_id?(t.openBlock(),t.createElementBlock("div",{key:0,role:"button",class:t.normalizeClass(["list-players__header__team",{active:i.value===e.homeTeam.team_id}]),onClick:s[0]||(s[0]=t=>l(e.homeTeam.team_id))},[t.createElementVNode("img",{src:e.homeTeam.logo,alt:"team-logo"},null,8,nc),t.createElementVNode("div",lc,t.toDisplayString(e.homeTeam.colloquial_name),1)],2)):t.createCommentVNode("",!0),void 0!==e.awayTeam.team_id?(t.openBlock(),t.createElementBlock("div",{key:1,role:"button",class:t.normalizeClass(["list-players__header__team away",{active:i.value===e.awayTeam.team_id}]),onClick:s[1]||(s[1]=t=>l(e.awayTeam.team_id))},[t.createElementVNode("img",{src:e.awayTeam.logo,alt:"team-logo"},null,8,rc),t.createElementVNode("div",dc,t.toDisplayString(e.awayTeam.colloquial_name),1)],2)):t.createCommentVNode("",!0)]),t.createElementVNode("div",cc,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(o.value,a=>(t.openBlock(),t.createBlock(sc,{key:a.player_id,"is-female":e.isFemale,player:a,"selected-players":n.value,onChangePlayer:e=>((e,t)=>{t.isSelected=e})(e,a)},null,8,["is-female","player","selected-players","onChangePlayer"]))),128))])]))}},[["__scopeId","data-v-a0fc063d"]]),pc={class:"categories-list"},hc={key:0,class:"categories-list__games"},uc={key:1,class:"categories-list__header"},yc={class:"categories-list__switch"},gc={class:"categories-list__lists"},vc={key:0,class:"categories-list__lists__events"},_c={key:1,class:"categories-list__lists__players"},fc=B({h:"CategoriesList",props:{isFemale:{type:Boolean,default:!1},homeTeam:{type:Object,default:()=>({})},awayTeam:{type:Object,default:()=>({})},listEventsToDisplay:{type:Array,default:()=>[]},awaitForListEvents:{type:Boolean,default:!1},tournamentSelected:{type:Object,default:()=>({})},availablePlayersByTeam:{type:Map,default:()=>new Map},listType:{type:String,default:"events"},canPlayVideos:{type:Boolean,default:!0},isGamePreMatch:{type:Boolean,default:!1},selectedTeamData:{type:Object,default:()=>({})},rivalTeams:{type:Object,default:()=>({isSelected:!1,colloquialName:"Rival"})},teamSelected:{type:Object,default:()=>({teamId:0})},totalEvents:{type:Number,default:0},isPrivilegesVrApplicable:{type:Boolean,default:!1},totalEventsPrivilegesVr:{type:Number,default:0}},emits:["change-event-type","change-list-type","change-players","change-teams","change-games"],setup(e,{emit:a}){const s=e,i=t.ref(["Eventos",1==s.tournamentSelected.is_female?"Jugadoras":"Jugadores"]),o=t.ref(0),n=t.ref({}),l=t.ref({isExpansionPanel:!1,templateProps:{boxShadow:"0px 4px 4px rgba(0, 0, 0, 0)",width:"100%"},buttonFilterProps:{width:"100%","background-color":"#293640",padding:"3px 8px","border-radius":"5px","border-color":"#293640","info-border-color":"#424D58"},fieldComponentProps:{width:"100%"},width:"100%"}),r=t.ref([]),d=t.ref({}),c=t.ref({}),m=t.ref(new Set),p=t.computed(()=>{const e=new Set,t=new Set;return s.isGamePreMatch?(s.selectedTeamData.isSelected&&(t.add(s.selectedTeamData.teamId),e.add(1)),s.rivalTeams.isSelected&&(e.add(2),r.value.forEach(e=>{t.add(e.rivalTeam.team_id===s.selectedTeamData.teamId?e.team.team_id:e.rivalTeam.team_id)})),(e=>{m.value=e})(e)):(s.homeTeam.isSelected&&t.add(s.homeTeam.team_id),s.awayTeam.isSelected&&t.add(s.awayTeam.team_id)),t}),h=t.computed(()=>s.homeTeam.team_id===s.teamSelected.teamId),u=t.computed(()=>s.awayTeam.team_id===s.teamSelected.teamId);t.watch(()=>o.value,e=>{a("change-list-type",e?"players":"events")},{immediate:!0}),t.watch(()=>p.value,e=>{a("change-teams",e)},{immediate:!0});const y=t.computed(()=>s.isGamePreMatch&&s.selectedTeamData.games&&s.selectedTeamData.games.length>0?s.selectedTeamData.games.map(e=>({...e,label:`${e.roundAbbreviation} ${e.team.acronym} vs ${e.rivalTeam.acronym}`,teamsIds:[e.team.team_id,e.rivalTeam.team_id]})):[]);function g(e){o.value=e.index}function v(e){n.value=e,a("change-event-type",e)}function f(e){a("change-players",e)}function b({value:e,team:t}){t.isSelected=e}function w(e){a("click-play",e)}function S(e){const t=new Set;if(r.value=e.filter(e=>(e.isSelected&&t.add(e.game_id),e.isSelected)),1===r.value.length){const e=r.value[0];d.value=e.homeTeam,c.value=e.awayTeam}else d.value=s.teamSelected.isHomeTeam?s.homeTeam:{},c.value=s.teamSelected.isHomeTeam?{}:s.awayTeam,o.value=0;a("change-games",{gamesIds:t,availableTeamsIds:p.value,currentTeamGamesSelected:r.value})}return(a,s)=>(t.openBlock(),t.createElementBlock("div",pc,[e.isGamePreMatch?(t.openBlock(),t.createElementBlock("div",hc,[t.createVNode(t.unref(_.GSCFilters),t.mergeProps(l.value,{"filter-type":t.unref(_.filtersTypes).GAMES,filters:y.value,"onUpdate:filters":S}),null,16,["filter-type","filters"])])):t.createCommentVNode("",!0),"events"===e.listType?(t.openBlock(),t.createElementBlock("div",uc,[t.createVNode(Vd,{team:e.isGamePreMatch?h.value?e.selectedTeamData:e.rivalTeams:e.homeTeam,"teams-selected":e.isGamePreMatch?m.value:p.value,"is-game-pre-match":e.isGamePreMatch,"is-team-for-analysis":h.value,onChangeTeam:b},null,8,["team","teams-selected","is-game-pre-match","is-team-for-analysis"]),t.createVNode(Vd,{team:e.isGamePreMatch?u.value?e.selectedTeamData:e.rivalTeams:e.awayTeam,"is-home-team":!1,"is-game-pre-match":e.isGamePreMatch,"teams-selected":e.isGamePreMatch?m.value:p.value,"is-team-for-analysis":u.value,onChangeTeam:b},null,8,["team","is-game-pre-match","teams-selected","is-team-for-analysis"])])):t.createCommentVNode("",!0),t.createElementVNode("div",yc,[t.createVNode(Dr,{"selected-button-index":o.value,buttons:i.value,width:"220px","border-radius":"16px",onChange:g},null,8,["selected-button-index","buttons"])]),t.createElementVNode("div",gc,[0===o.value?(t.openBlock(),t.createElementBlock("div",vc,[t.createVNode(Jd,{"list-events-to-display":e.isGamePreMatch?e.selectedTeamData.categories:e.listEventsToDisplay,"await-for-list-events":e.awaitForListEvents,"last-event-type-selected":n.value,"can-play-videos":e.canPlayVideos,"total-events":e.totalEvents,"total-events-privileges-vr":e.totalEventsPrivilegesVr,"is-privileges-vr-applicable":e.isPrivilegesVrApplicable,onChangeEventType:v,onClickPlay:w},null,8,["list-events-to-display","await-for-list-events","last-event-type-selected","can-play-videos","total-events","total-events-privileges-vr","is-privileges-vr-applicable"])])):(t.openBlock(),t.createElementBlock("div",_c,[t.createVNode(mc,{"is-female":e.isFemale,"available-players-by-team":e.availablePlayersByTeam,"home-team":e.isGamePreMatch?d.value:e.homeTeam,"away-team":e.isGamePreMatch?c.value:e.awayTeam,onChangeEventType:v,onChangePlayers:f},null,8,["is-female","available-players-by-team","home-team","away-team"])]))])]))}},[["__scopeId","data-v-86727bbf"]]),bc=["playId","playerId","teamId","gameId","categoryId","x1","y1","x2","y2","x3","y3","momentOfPlay","relatedPlayId","order","nationalityId","jersey"];let wc=null;const Sc=new Set([35,54]),Tc=new Set(["35_r","54_r"]),kc="#336dff",xc="#7ed321";class Cc{constructor(e={},t=[],a=new Set,s=new Set,i=null,o=null){const n=Sc.has(e.categoryId);this.mainPlay=e,this.playEvents=t.sort((e,t)=>t.order-e.order),this.categoriesIds=a,this.playersIds=s,this.teamForAnalysis=o,this.mainCategoryId=n?e.categoryId+"_r":e.categoryId||0,this.mainPlay.isMainPlay=!0,this.playEvents.forEach(e=>{e.game=i})}setEventType(e){this.eventType=e,this.mainPlay.categoryName=e.singleName,this.playEvents.forEach(e=>{e.hasConnectionPath=0!==this.eventType.prev||0!==this.eventType.post})}getEventsConnectionsByEventType(){const e=this.playEvents.findIndex(e=>e.playId===this.mainPlay.playId);if(e>-1&&this.eventType){let t=e-this.eventType.post,a=e+this.eventType.prev;0>t&&(t=0),a>this.playEvents.length-1&&(a=this.playEvents.length-1);const s=this.playEvents.slice(t,a+1).reverse();return s.forEach((e,t)=>{t>0&&(e.previousEvent=s[t-1])}),s}return[]}hasMainCategory(e=new Set){return e.has(this.mainCategoryId)}hasCategories(e=new Set,t={homeTeamId:0,awayTeamId:0}){const a=[];return e.forEach(e=>{a.push(`${t.homeTeamId}-${e}`),a.push(`${t.awayTeamId}-${e}`)}),a.some(e=>this.teamEventsIndex.has(e))}hasPlayer(e=new Set){return e.has(this.mainPlay.playerId)}hasPlayers(e=new Set){return Array.from(e.values()).some(e=>this.playersIds.has(e))}hasTeam(e=new Set){return e.has(this.mainPlay.teamId)}getTeamColor(){let e=this.teamForAnalysis?this.teamForAnalysis.isHomeTeam?this.mainPlay.teamId===this.teamForAnalysis.teamId:this.mainPlay.teamId!==this.teamForAnalysis.teamId:this.mainPlay.team.isHomeTeam;return Tc.has(this.mainPlay.categoryId)&&(e=!e),e?kc:xc}getEventColor(e){return(this.teamForAnalysis?this.teamForAnalysis.isHomeTeam?e.teamId===this.teamForAnalysis.teamId:e.teamId!==this.teamForAnalysis.teamId:e.team.isHomeTeam)?kc:xc}getTeamFontColor(){let e=this.teamForAnalysis?this.teamForAnalysis.isHomeTeam?this.mainPlay.teamId===this.teamForAnalysis.teamId:this.mainPlay.teamId!==this.teamForAnalysis.teamId:this.mainPlay.team.isHomeTeam;return Tc.has(this.mainPlay.categoryId)&&(e=!e),e?"#fff":"#000"}getSingleName(e){return e.split(" ").reduce((e,t)=>{let a=t;return t.endsWith("minaron")?a=t.replace("minaron","minó"):t.endsWith("vocan")?a=t.replace("vocan","voca"):t.endsWith("lones")?a=t.replace("lones","lón"):t.endsWith("oles")?a=t.replace("oles","ol"):(t.endsWith("os")||t.endsWith("as")||t.endsWith("es"))&&(a=t.slice(0,t.length-1)),e.push(a),e},[]).join(" ")}}const Ic=new Map([[0,new Map([[1,{matchDayId:1,matchDayName:"Jornada 1",matchDayAbbreviation:"J1",matchDayAbbreviation2:"JOR 1"}],[2,{matchDayId:2,matchDayName:"Jornada 2",matchDayAbbreviation:"J2",matchDayAbbreviation2:"JOR 2"}],[3,{matchDayId:3,matchDayName:"Jornada 3",matchDayAbbreviation:"J3",matchDayAbbreviation2:"JOR 3"}],[4,{matchDayId:4,matchDayName:"Jornada 4",matchDayAbbreviation:"J4",matchDayAbbreviation2:"JOR 4"}],[5,{matchDayId:5,matchDayName:"Jornada 5",matchDayAbbreviation:"J5",matchDayAbbreviation2:"JOR 5"}],[6,{matchDayId:6,matchDayName:"Jornada 6",matchDayAbbreviation:"J6",matchDayAbbreviation2:"JOR 6"}],[7,{matchDayId:7,matchDayName:"Jornada 7",matchDayAbbreviation:"J7",matchDayAbbreviation2:"JOR 7"}],[8,{matchDayId:8,matchDayName:"Jornada 8",matchDayAbbreviation:"J8",matchDayAbbreviation2:"JOR 8"}],[9,{matchDayId:9,matchDayName:"Jornada 9",matchDayAbbreviation:"J9",matchDayAbbreviation2:"JOR 9"}],[10,{matchDayId:10,matchDayName:"Jornada 10",matchDayAbbreviation:"J10",matchDayAbbreviation2:"JOR 10"}],[11,{matchDayId:11,matchDayName:"Jornada 11",matchDayAbbreviation:"J11",matchDayAbbreviation2:"JOR 11"}],[12,{matchDayId:12,matchDayName:"Jornada 12",matchDayAbbreviation:"J12",matchDayAbbreviation2:"JOR 12"}],[13,{matchDayId:13,matchDayName:"Jornada 13",matchDayAbbreviation:"J13",matchDayAbbreviation2:"JOR 13"}],[14,{matchDayId:14,matchDayName:"Jornada 14",matchDayAbbreviation:"J14",matchDayAbbreviation2:"JOR 14"}],[15,{matchDayId:15,matchDayName:"Jornada 15",matchDayAbbreviation:"J15",matchDayAbbreviation2:"JOR 15"}],[16,{matchDayId:16,matchDayName:"Jornada 16",matchDayAbbreviation:"J16",matchDayAbbreviation2:"JOR 16"}],[17,{matchDayId:17,matchDayName:"Jornada 17",matchDayAbbreviation:"J17",matchDayAbbreviation2:"JOR 17"}],[18,{matchDayId:18,matchDayName:"Cuartos de Final Ida",matchDayAbbreviation:"CFI",matchDayAbbreviation2:"CFI"}],[19,{matchDayId:19,matchDayName:"Cuartos de Final Vuelta",matchDayAbbreviation:"CFV",matchDayAbbreviation2:"CFV"}],[20,{matchDayId:20,matchDayName:"Semifinal Ida",matchDayAbbreviation:"SFI",matchDayAbbreviation2:"SFI"}],[21,{matchDayId:21,matchDayName:"Semifinal Vuelta",matchDayAbbreviation:"SFV",matchDayAbbreviation2:"SFV"}],[22,{matchDayId:22,matchDayName:"Final Ida",matchDayAbbreviation:"FI",matchDayAbbreviation2:"FI"}],[86,{matchDayId:86,matchDayName:"Final Vuelta",matchDayAbbreviation:"FV",matchDayAbbreviation2:"FV"}],[182,{matchDayId:182,matchDayName:"Play In 1",matchDayAbbreviation:"PI1",matchDayAbbreviation2:"PI1"}],[183,{matchDayId:183,matchDayName:"Play In 2",matchDayAbbreviation:"PI2",matchDayAbbreviation2:"PI2"}],[184,{matchDayId:184,matchDayName:"Repechaje",matchDayAbbreviation:"R",matchDayAbbreviation2:"R"}]])],[1,new Map([[1,{matchDayId:1,matchDayName:"Jornada 1",matchDayAbbreviation:"J1"}],[2,{matchDayId:2,matchDayName:"Jornada 2",matchDayAbbreviation:"J2"}],[3,{matchDayId:3,matchDayName:"Jornada 3",matchDayAbbreviation:"J3"}],[4,{matchDayId:4,matchDayName:"Jornada 4",matchDayAbbreviation:"J4"}],[5,{matchDayId:5,matchDayName:"Jornada 5",matchDayAbbreviation:"J5"}],[6,{matchDayId:6,matchDayName:"Jornada 6",matchDayAbbreviation:"J6"}],[181,{matchDayId:181,matchDayName:"16vos de Final",matchDayAbbreviation:"DF"}],[176,{matchDayId:176,matchDayName:"Octavos de Final",matchDayAbbreviation:"OF"}],[177,{matchDayId:177,matchDayName:"Cuartos de Final",matchDayAbbreviation:"CF"}],[178,{matchDayId:178,matchDayName:"Semifinales",matchDayAbbreviation:"SF"}],[179,{matchDayId:179,matchDayName:"Tercer lugar",matchDayAbbreviation:"3ER"}],[180,{matchDayId:180,matchDayName:"Final",matchDayAbbreviation:"FINAL"}]])],[2,new Map([[1,{matchDayId:1,matchDayName:"16vos de Final Ida",matchDayAbbreviation:"DFI"}],[2,{matchDayId:2,matchDayName:"16vos de Final Vuelta",matchDayAbbreviation:"DFV"}],[3,{matchDayId:3,matchDayName:"Octavos de Final Ida",matchDayAbbreviation:"OFI"}],[4,{matchDayId:4,matchDayName:"Octavos de Final Vuelta",matchDayAbbreviation:"OFV"}],[5,{matchDayId:5,matchDayName:"Cuartos de Final Ida",matchDayAbbreviation:"CFI"}],[6,{matchDayId:6,matchDayName:"Cuartos de Final Vuelta",matchDayAbbreviation:"CFV"}],[7,{matchDayId:7,matchDayName:"Semifinales Ida",matchDayAbbreviation:"SFI"}],[8,{matchDayId:8,matchDayName:"Semifinales Vuelta",matchDayAbbreviation:"SFV"}],[10,{matchDayId:10,matchDayName:"Final",matchDayAbbreviation:"FINAL"}]])]]),Pc=e=>(t.pushScopeId("data-v-96de1508"),e=e(),t.popScopeId(),e),Gc={class:"chalkboard-section-container"},Fc={key:0,class:"chalkboard-section-container__pre-match-header"},Ac={key:0,class:"container-info-text-pre-match"},Mc=Pc(()=>t.createElementVNode("span",{class:"info-text-bold"},"IMPORTANTE:",-1)),Lc={key:1,class:"container-info-text-pre-match-mobile"},Oc=Pc(()=>t.createElementVNode("span",{class:"info-text-bold"},"IMPORTANTE:",-1)),Nc=Pc(()=>t.createElementVNode("br",null,null,-1)),Dc=Pc(()=>t.createElementVNode("br",null,null,-1)),Vc={key:2,class:"container-info-text-pre-match-mobile"},zc=Pc(()=>t.createElementVNode("span",{class:"info-text-bold"},"IMPORTANTE:",-1)),jc=Pc(()=>t.createElementVNode("br",null,null,-1)),Bc=Pc(()=>t.createElementVNode("br",null,null,-1)),Rc={class:"section-container"},qc={class:"section-container__left-column"},Ec={class:"chalkboard-component"},Jc={class:"assistant-zones"},Wc={class:"categories-time-line-component"},Hc={class:"total-events"},Uc={class:"section-container__right-column"},Zc=B({h:"ChalkboardSectionContainer",props:{isFemale:{type:Boolean,default:!1},game:{type:Object,default:()=>({})},seasonSelected:{type:Object,default:()=>({})},tournamentSelected:{type:Object,default:()=>({})},token:{type:String,default:""},canPlayVideos:{type:Boolean,default:!0},widthSection:{type:Number,default:0},isGamePreMatch:{type:Boolean,default:!1},playVideosPrivileges:{type:Object,default:null},chalkboardIntervalMinutes:{type:Number,default:2}},emits:["open-media-player"],setup(e,{emit:a}){const s=e;let i=null;const o=(wc||(wc=ve(bc)),wc),n=t.ref({teamId:0}),l=t.ref(0),d=t.ref({}),c=t.ref({}),p=t.ref([]),h=t.ref({value:""}),u=t.ref([]),y=t.ref([]),g=t.ref(new Map),v=t.ref(new Map),_=t.ref("events"),f=t.ref(new Set),b=t.ref(new Set),w=t.ref([]),S=new Map,T=t.ref({}),k=t.ref({isSelected:!0,colloquialName:"Rival"}),x=t.ref(new Set),C=t.ref(new Set),I=t.ref(new Set),P=t.ref(0),G=new Set,F=t.ref(!1),A=t.computed(()=>[{teamId:s.game.homeTeam.team_id,text:s.game.homeTeam.colloquial_name,img:s.game.homeTeam.logo,isHomeTeam:!0},{teamId:s.game.awayTeam.team_id,text:s.game.awayTeam.colloquial_name,img:s.game.awayTeam.logo,isHomeTeam:!1}]),M=t.computed(()=>u.value.reduce((e,t)=>(("events"===_.value&&b.value.has(t.mainPlay.teamId)||"players"===_.value&&f.value.has(t.mainPlay.playerId))&&e++,e),0)),L=t.computed(()=>s.isGamePreMatch&&s.playVideosPrivileges),O=t.computed(()=>L.value?u.value.reduce((e,t)=>(("events"===_.value&&b.value.has(t.mainPlay.teamId)||"players"===_.value&&f.value.has(t.mainPlay.playerId))&&C.value.has(t.mainPlay.gameId)&&e++,e),0):0),N=t.computed(()=>`${h.value.name}: ${M.value}`),D=t.computed(()=>s.isGamePreMatch?s.playVideosPrivileges?!!(w.value&&n.value&&s.playVideosPrivileges&&s.playVideosPrivileges.seasonAndPrivileges&&n.value.teamId===s.playVideosPrivileges.seasonAndPrivileges.teamId)&&w.value.reduce((e,t)=>{if(t.home_team===n.value.teamId||t.visiting_team===n.value.teamId){const a=t.home_team===n.value.teamId?1:2;s.playVideosPrivileges.seasonAndPrivileges.playingAs.has(a)&&e++}return e},0)>0&&b.value.has(n.value.teamId):s.canPlayVideos:s.playVideosPrivileges?s.canPlayVideos&&b.value.has(s.playVideosPrivileges.seasonAndPrivileges.teamId):s.canPlayVideos);function V(e){const t=new Set;u.value=[],e.forEach(e=>{e.hasMainCategory(h.value.categories)&&(e.setEventType(h.value),u.value.push(e),t.add(e.mainPlay.playerId))}),t.forEach(e=>{const t=v.value.get(e);if(t){const e=g.value.get(t.team_id);e.find(e=>e.player_id===t.player_id)||e.push({...t,isSelected:!0})}})}async function z(e,t=!1){try{const a=e===P.value,{categories:n,data:l,players:r,teams:d}=await(async e=>{try{return(await m.get(`https://df43gcr5d6.execute-api.us-east-2.amazonaws.com/prod/chalkboard/seasons/${s.seasonSelected.id}/games/${e}`,{headers:{Authorization:s.token}})).data}catch(t){throw Error(t)}})(e);let c=l;const h=[];a.value||(p.value=n,P.value=e,y.value=[],G.clear()),c=l.filter(e=>{const t=`${e[o.relatedPlayId]}-${e[o.playId]}`,a=G.has(t);return a||G.add(t),!a}),v.value=Object.values(r).reduce((e,t)=>(e.set(t.player_id,{...t}),e),new Map);const u=Object.values(d).reduce((e,t)=>(e.set(t.team_id,{...t,isHomeTeam:s.game.homeTeam.team_id===t.team_id}),e),new Map),g=((e,t,a)=>{const s=e.reduce((e,s)=>{const i=j(s),o=e.get(i.relatedPlayId),n=i.relatedPlayId===i.playId;if(i.player=t.get(i.playerId),i.team=a.get(i.teamId),o)n&&(o.mainPlay=i),o.playsIds.has(i.playId)||(o.events.push(i),o.categoriesIds.add(i.categoryId),o.playersIds.add(i.playerId),o.playsIds.add(i.playId),o.players.push(i.player));else{const t={events:[i],categoriesIds:new Set([i.categoryId]),playersIds:new Set([i.playerId]),playsIds:new Set([i.playId]),players:[i.player]};n&&(t.mainPlay=i),e.set(i.relatedPlayId,t)}return e},new Map);return Array.from(s.values()).forEach(e=>{e.events.sort((e,t)=>t.order-e.order)}),s})(c,v.value,u);Array.from(g.values()).forEach(e=>{if(e.mainPlay){e.mainPlay.gameAux={homeTeam:u.get(s.game.homeTeam.team_id),awayTeam:u.get(s.game.awayTeam.team_id)};const t=new Cc(e.mainPlay,e.events,e.categoriesIds,e.playersIds);y.value.push(t),h.push(t)}}),h.length&&V(h),t&&(i=setInterval(()=>{z(s.game.gameId)},6e4*s.chalkboardIntervalMinutes))}catch(a){throw Error(a)}}function j(e){return e.reduce((e,t,a)=>(e[bc[a]]=t,e),{})}function B(){if(T.value&&T.value.games&&T.value.games.length>0){const e=new Set;g.value=new Map,u.value=[],T.value.games.forEach(t=>{x.value.has(t.id)&&t.eventsConnectionsBase.forEach(t=>{t.hasMainCategory(h.value.categories)&&(t.setEventType(h.value),u.value.push(t),e.add(t.mainPlay.playerId))})}),e.forEach(e=>{const t=T.value.availablePlayersMap.get(e);if(t){const e=g.value.get(t.team_id);e?e.find(e=>e.player_id===t.player_id)||e.push({...t,isSelected:!0}):g.value.set(t.team_id,[{...t,isSelected:!0}])}})}}function R(e){h.value=e}function q(e){_.value=e,"events"===e&&(d.value.isSelected=!0,c.value.isSelected=!0)}function E(e){f.value=e}function J(e){b.value=e}function W({gamesIds:e,availableTeamsIds:t,currentTeamGamesSelected:a}){x.value=e,b.value=t,w.value=a,s.isGamePreMatch&&(C.value.clear(),s.playVideosPrivileges&&s.playVideosPrivileges.seasonAndPrivileges?a.forEach(e=>{const t=e.home_team===s.playVideosPrivileges.seasonAndPrivileges.teamId?1:e.visiting_team===s.playVideosPrivileges.seasonAndPrivileges.teamId?2:0;s.playVideosPrivileges.seasonAndPrivileges.playingAs.has(t)&&C.value.add(e.game_id)}):C.value=e),B()}function H(e){l.value=e.index,n.value=e.button}function U(e){const t={seasonId:s.game.is_live||0===s.game.game_status?s.game.seasonId:s.seasonSelected.id,isFeaturedPlayers:!1,mainSectionType:1,playListType:1,gameIdsToFilter:s.isGamePreMatch?Array.from(x.value.values()):[s.game.gameId],playerIds:[],teamIdsToFilter:Array.from(b.value.values()),categoryIds:e,teamId:s.isGamePreMatch?null:1===b.value.size?Array.from(b.value)[0]:0,matchResult:[1,2,3],currentPlayIndex:0};a("open-media-player",t)}return t.watch(()=>n.value.teamId,e=>{if(s.isGamePreMatch&&e){T.value&&!T.value.isSelected&&(T.value.isSelected=!0),k.value.isSelected=!0,T.value=S.get(e);const t=new Set,a=new Set;T.value&&(T.value.games.forEach(e=>{e.isSelected&&(t.add(e.id),a.add(e.team.team_id),a.add(e.rivalTeam.team_id))}),W({gamesIds:t,availableTeamsIds:a}))}},{immediate:!0}),t.watch(()=>s.game.gameId,e=>{e&&(d.value={...s.game.homeTeam,isSelected:!0},c.value={...s.game.awayTeam,isSelected:!0},I.value=new Set,i&&(clearInterval(i),i=null),4!==s.game.game_status||s.game.is_live?z(e,s.game.is_live&&4===s.game.game_status):(async()=>{try{(await(async()=>{try{const e={headers:{Authorization:""}},[t,a]=await Promise.all([m.get(`https://golstats-microservices.s3.us-west-2.amazonaws.com/chalkboard/chalkboard_${s.seasonSelected.id}_${s.game.homeTeam.team_id}.json`,e),m.get(`https://golstats-microservices.s3.us-west-2.amazonaws.com/chalkboard/chalkboard_${s.seasonSelected.id}_${s.game.awayTeam.team_id}.json`,e)]);return[t.data,a.data]}catch(e){throw Error(e)}})()).forEach((e,t)=>{0===t&&(e.isHomeTeam=!0),S.set(e.team_id,(({isHomeTeam:e,acronym:t,team_id:a,team_name:i,colloquial_name:o,logo:l,categories:r,data:d,games:c,players:m,teams:p})=>{const h={logo:l,acronym:t,categories:r,teamId:a,name:i,colloquialName:o,isSelected:!0,availablePlayersMap:new Map},u=Ic.get(s.tournamentSelected.tournament_type),y=Object.values(p).reduce((e,t)=>(e.set(t.team_id,{...t,colloquial_name:t.colloquial_name||t.team_name}),e),new Map),g=Object.values(m).reduce((e,t)=>{h.availablePlayersMap.set(t.player_id,{...t});const a=e.get(t.team_id);return a?a.set(t.player_id,{...t}):e.set(t.team_id,new Map([[t.player_id,{...t}]])),e},new Map),v=c.reduce((e,t,a)=>{const s=u.get(t.matchday_id),i={...t,dateTimeMillis:new Date(t.date_time_utc).getTime(),id:t.game_id,roundAbbreviation:s?s.matchDayAbbreviation:"",playingAs:n.value.id===t.home_team?1:2,team:n.value.teamId===t.home_team?y.get(t.home_team):y.get(t.visiting_team),rivalTeam:n.value.teamId===t.home_team?y.get(t.visiting_team):y.get(t.home_team),homeTeam:y.get(t.home_team),awayTeam:y.get(t.visiting_team),playersSelected:new Set,eventsConnectionsBase:[],availablePlayersByTeamMap:new Map([[t.home_team,g.get(t.home_team)],[t.visiting_team,g.get(t.visiting_team)]]),availableTeamsByTeamMapSimple:new Map([[t.home_team,Array.from(g.get(t.home_team).values())],[t.visiting_team,Array.from(g.get(t.visiting_team).values())]]),teamsMap:new Map([[t.home_team,y.get(t.home_team)],[t.visiting_team,y.get(t.visiting_team)]]),isSelected:4>a};return e.set(t.game_id,i),e},new Map),_=new Map([[A.value[0].teamId,A.value[0]],[A.value[1].teamId,A.value[1]]]),f=((e,t,a)=>e.reduce((e,s)=>{const i=j(s),o=t.get(i.gameId);if(o){const t=i.relatedPlayId===i.playId,s=e.get(i.gameId),n=o.availablePlayersByTeamMap.get(i.teamId);if(a||(i.x1=1-i.x1,i.x2=1-i.x2,i.x3=1-i.x3,i.y1=1-i.y1,i.y2=1-i.y2,i.y3=1-i.y3),i.player=n?n.get(i.playerId):{},i.team=o.teamsMap.get(i.teamId)||{},s){const e=s.get(i.relatedPlayId);if(e)t&&(e.mainPlay=i),e.playsIds.has(i.playId)||(e.events.push(i),e.categoriesIds.add(i.categoryId),e.playersIds.add(i.playerId),e.playsIds.add(i.playId),e.players.push(i.player));else{const e={events:[i],categoriesIds:new Set([i.categoryId]),playersIds:new Set([i.playerId]),playsIds:new Set([i.playId]),players:[i.player]};t&&(e.mainPlay=i),s.set(i.relatedPlayId,e)}}else{const a=new Map,s={events:[i],categoriesIds:new Set([i.categoryId]),playersIds:new Set([i.playerId]),playsIds:new Set([i.playId]),players:[i.player]};t&&(s.mainPlay=i),a.set(i.relatedPlayId,s),e.set(i.gameId,a)}}return e},new Map))(d,v,e);return h.games=Array.from(v.values()).map(e=>{const t=[],s=f.get(e.id);return s&&Array.from(s.values()).forEach(s=>{s.mainPlay&&(s.mainPlay.gameAux={homeTeam:e.homeTeam,awayTeam:e.awayTeam},t.push(new Cc(s.mainPlay,s.events,s.categoriesIds,s.playersIds,{homeTeam:e.homeTeam,awayTeam:e.awayTeam,roundAbbreviation:e.roundAbbreviation},_.get(a))))}),{...e,eventsConnectionsBase:t}}),h})(e))}),T.value&&!T.value.isSelected&&(T.value.isSelected=!0),k.value.isSelected=!0,T.value=S.get(n.value.teamId)}catch(e){throw Error(e)}})())},{immediate:!0}),t.watch(()=>A.value,()=>{l.value=0,n.value=A.value[l.value]},{immediate:!0,deep:!0}),t.watch(()=>h.value.value,()=>{s.isGamePreMatch?B():(g.value=new Map([[s.game.homeTeam.team_id,[]],[s.game.awayTeam.team_id,[]]]),h.value.name&&V(y.value))},{immediate:!0,deep:!0}),(a,s)=>(t.openBlock(),t.createElementBlock("div",Gc,[e.isGamePreMatch?(t.openBlock(),t.createElementBlock("div",Fc,[e.widthSection>590?(t.openBlock(),t.createElementBlock("div",Ac,[Mc,t.createTextVNode("  Con base en las estadísticas de los partidos ya jugados en el torneo. ")])):t.createCommentVNode("",!0),e.widthSection>340&&590>=e.widthSection?(t.openBlock(),t.createElementBlock("div",Lc,[Oc,t.createTextVNode("  "),Nc,t.createTextVNode("Con base en las estadísticas de los partidos ya "),Dc,t.createTextVNode(" jugados en el torneo. ")])):t.createCommentVNode("",!0),e.widthSection>340?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",Vc,[zc,t.createTextVNode("  "),jc,t.createTextVNode("Con base en las estadísticas de los "),Bc,t.createTextVNode("partidos ya jugados en el torneo. ")])),t.createElementVNode("div",{class:t.normalizeClass(e.widthSection>420?"container-switch-pre-match-teams":"container-switch-pre-match-teams-mobile")},[t.createVNode(Dr,{"selected-button-index":l.value,buttons:A.value,width:"320px","border-radius":"16px",onChange:H},null,8,["selected-button-index","buttons"])],2)])):t.createCommentVNode("",!0),t.createElementVNode("div",Rc,[t.createElementVNode("div",qc,[t.createElementVNode("div",Ec,[t.createElementVNode("div",Jc,[t.createVNode(t.unref(r.GSCCheckbox),{modelValue:F.value,"onUpdate:modelValue":s[0]||(s[0]=e=>F.value=e),label:"Mostrar zona de asistencia"},null,8,["modelValue"])]),t.createVNode(vd,{"events-connections":u.value,"list-type":_.value,"players-selected":f.value,"teams-selected":b.value,"is-game-pre-match":e.isGamePreMatch,"is-assistant-zone-visible":F.value},null,8,["events-connections","list-type","players-selected","teams-selected","is-game-pre-match","is-assistant-zone-visible"])]),t.createElementVNode("div",Wc,[t.createVNode(Id,{"events-connections":u.value,"list-type":_.value,"players-selected":f.value,"teams-selected":b.value,"is-game-pre-match":e.isGamePreMatch},null,8,["events-connections","list-type","players-selected","teams-selected","is-game-pre-match"])]),t.createElementVNode("div",Hc,t.toDisplayString(N.value),1)]),t.createElementVNode("div",Uc,[t.createVNode(fc,{"is-female":e.isFemale,"home-team":d.value,"away-team":c.value,"tournament-selected":e.tournamentSelected,"list-events-to-display":p.value,"available-players-by-team":g.value,"list-type":_.value,"can-play-videos":D.value,"is-game-pre-match":e.isGamePreMatch,"selected-team-data":T.value,"rival-teams":k.value,"team-selected":n.value,"total-events":M.value,"total-events-privileges-vr":O.value,"is-privileges-vr-applicable":L.value,"await-for-list-events":"",onChangeEventType:R,onChangeListType:q,onChangePlayers:E,onChangeTeams:J,onChangeGames:W,onClickPlay:U},null,8,["is-female","home-team","away-team","tournament-selected","list-events-to-display","available-players-by-team","list-type","can-play-videos","is-game-pre-match","selected-team-data","rival-teams","team-selected","total-events","total-events-privileges-vr","is-privileges-vr-applicable"])])])]))}},[["__scopeId","data-v-96de1508"]]),$c={ref:"card",class:"card-volumetric-field"},Xc=B({h:"VolumetricField",props:{passesPlays:{type:Array,default:()=>[]},playIndexes:{type:Object,default(){}}},setup(e){const a=e,s=new Set([2,20,308,310]),i=[[0,"rgb(12,31,82)"],[.2,"rgb(115,248,253)"],[.4,"rgb(117,251,98)"],[.6,"rgb(255,255,84)"],[.8,"rgb(242,168,59)"],[1,"rgb(234,55,36)"]];let o=null;const n=t.ref(null),l=t.ref(null),r=t.ref(0),d=t.ref(null);function c(e){return Array.from({length:e},()=>0)}function m(e,t){let a=.01351,s=.02439,i=0,o=0,n=[];const l=t.length,r=Math.floor(l/10);for(;74>i;)o=t.filter(t=>!(1-t.y3<i*a||1-t.y3>(i+1)*a||1-t.x3<e*s||1-t.x3>(e+1)*s)).map(e=>e.y3).length,n.push(parseFloat((o/r).toFixed(4))),i++;return n.reverse()}function p(e,t,a){const s=[];let i=0,o=0;s.push(e[0]);for(let n=1;a-1>n;n++){const a=[];a.push(e[n][0]);for(let s=1;t-1>s;s++)i=e[n][s-1],o=e[n][s+1],a.push(i+.5*(e[n][s]+o-i));a.push(e[n][t-1]),s.push(a)}s.push(e[a-1]);for(let n=1;t-1>n;n++)for(let e=1;a-1>e;e++)i=s[e-1][n],o=s[e+1][n],s[e][n]=i+.5*(s[e][n]+o-i);return s}function h(e){return Math.round(.375*e,0)}function u(e){return(e-100)/200*-32-14}return t.watch(()=>a.passesPlays,e=>{(e=>{let t=(e=>{let t=[c(74),c(74)],a=[],s=39;for(;s>0&&39>=s;)a=m(s,e),t.push(a),s--;return t.push(c(74),c(74)),t})(e),a=t.length,s=t[0].length;t=p(p(t,s,a),s,a),s=t[0].length,a=t.length;const o=(e=>{let t=0,a=0;for(let s=0;s<e.length;s++){a+=e[s].reduce((e,t)=>e+t);const i=Math.max.apply(null,e[s]);i>t&&(t=i)}return t})(t),n=[{z:t,type:"surface",connectgaps:!0,opacity:.25,colorscale:i,autoscale:!1,showscale:!1}],y={scene:{xaxis:{title:"",showgrid:!1,showline:!1,zeroline:!1,showticklabels:!1,showbackground:!1,backgroundcolor:"transparent",range:[0,s]},yaxis:{title:"",showgrid:!1,showline:!1,zeroline:!1,showticklabels:!1,showbackground:!1,backgroundcolor:"transparent",range:[0,a]},zaxis:{title:"",showgrid:!1,showline:!1,zeroline:!1,showticklabels:!1,showbackground:!1,backgroundcolor:"transparent",range:[0,5*o]},aspectratio:{x:1,y:.419,z:1},camera:{eye:{x:-.006743829259037479,y:.33535167247712533,z:-.0014332540873207011},center:{x:-.00679220694254041,y:.10728256468650094,z:-.30848979628595363}}},showlegend:!1,width:r.value,height:h(r.value),paper_bgcolor:"rgba(0,0,0,0)",margin:{l:0,r:0,b:0,t:0}};l.value&&(l.value.style.height=h(r.value)+"px");const g=[];for(let l=0;s>l;l++){const e=[],t=[],s=[];for(let i=0;a>i;i++)e.push(l),t.push(i),s.push(n[0].z[i][l]);g.push({x:e,y:t,z:s,type:"scatter3d",mode:"lines",line:{cmin:-.1,cmax:o,width:1,color:s,colorscale:i,shape:"spline",smoothing:.6,dash:"dotline"}})}for(let l=0;a>l;l++){const e=[],t=[],a=[];for(let i=0;s>i;i++)e.push(i),t.push(l),a.push(n[0].z[l][i]);g.push({x:e,y:t,z:a,type:"scatter3d",mode:"lines",line:{cmin:-.1,cmax:o,width:1,color:a,colorscale:i,shape:"spline",smoothing:.6,dash:"dotline"}})}f.newPlot("surface-plot",n.concat(g),y,{displayModeBar:!1},{responsive:!0}),d.value=document.getElementsByClassName("plot-container")[0],d.value&&(d.value.style.top=u(h(r.value))+"px")})(e.reduce((e,t)=>(s.has(t[a.playIndexes.categoryId])&&e.push({x1:t[a.playIndexes.coordinate1X],y1:t[a.playIndexes.coordinate1Y],x2:t[a.playIndexes.coordinate2X],y2:t[a.playIndexes.coordinate2Y],x3:t[a.playIndexes.coordinate3X],y3:t[a.playIndexes.coordinate3Y]}),e),[]))}),t.watch(()=>r.value,(e,t)=>{d.value&&((e=>{f.relayout(n.value,{width:e,height:h(e)})})(e),l.value.style.height=h(e)+"px",d.value.style.top=u(h(e))+"px")}),t.onMounted(()=>{n.value&&(n.value.style.pointerEvents="none"),o=new ResizeObserver(e=>{for(const t of e)r.value=t.contentRect.width}),o.observe(n.value)}),(e,a)=>(t.openBlock(),t.createElementBlock("div",$c,[t.createElementVNode("div",{ref_key:"volumetricField",ref:l,class:"card-volumetric-field__volumetric-field"},[t.createElementVNode("div",{ref_key:"surfacePlot",ref:n,id:"surface-plot"},null,512)],512)],512))}},[["__scopeId","data-v-46439c02"]]),Yc=e=>(t.pushScopeId("data-v-885deed1"),e=e(),t.popScopeId(),e),Kc=Yc(()=>t.createElementVNode("div",{class:"attack-direction__line"},null,-1)),Qc=Yc(()=>t.createElementVNode("div",{class:"attack-direction__text"},"Ataca",-1)),em=B({h:"AttackDirection",props:{team:{type:Object,required:!0}},setup(e){const a=e,s=t.computed(()=>({"--flex-direction-info":a.team.isHomeTeam?"flex":"row-reverse","--justify-content-info":a.team.isHomeTeam?"flex-start":"flex-end","--arrow-color":a.team.isHomeTeam?"#336dff":"#7ed321"}));return(a,i)=>(t.openBlock(),t.createElementBlock("div",{class:"attack-direction",style:t.normalizeStyle(s.value)},[Kc,t.createElementVNode("div",{class:t.normalizeClass("attack-direction__triangle-"+(e.team.isHomeTeam?"right":"left"))},null,2),Qc],4))}},[["__scopeId","data-v-885deed1"]]),tm=["playId","gameId","teamId","playerId","momentOfPlay","categoryId","categoryType","matchLapse","section","matchResult","playingAs","total","coordinate1X","coordinate1Y","coordinate2X","coordinate2Y","coordinate3X","coordinate3Y","xGi","xGf","distance","fieldArea"];let am=null;const sm={class:"volumetric-section-container"},im=(e=>(t.pushScopeId("data-v-b3d91153"),e=e(),t.popScopeId(),e))(()=>t.createElementVNode("div",{class:"volumetric-section-container__title"},"Volumétrica",-1)),om={key:0,class:"volumetric-section-container__switch"},nm={class:"volumetric-section-container__attack-direction"},lm={class:"volumetric-section-container__field"},rm=B({h:"VolumetricSectionContainer",props:{game:{type:Object,default:()=>({})},seasonSelected:{type:Object,default:()=>({})},token:{type:String,default:""},isGamePreMatch:{type:Boolean,default:!1},teamSelectedPreMatch:{type:Object,default:()=>({})},volumetricFieldIntervalMinutes:{type:Number,default:2}},setup(e){const a=e,s=(am||(am=ve(tm)),am),i=new Set([...new Set([2,20,308,310]),...new Set([3,21,309])]);let o=null;const n=t.ref(0),l=t.ref(new Map),r=t.ref({teamId:0}),d=t.computed(()=>[{teamId:a.game.homeTeam.team_id,text:a.game.homeTeam.colloquial_name,img:a.game.homeTeam.logo,isHomeTeam:!0},{teamId:a.game.awayTeam.team_id,text:a.game.awayTeam.colloquial_name,img:a.game.awayTeam.logo,isHomeTeam:!1}]),c=t.computed(()=>l.value.get(a.isGamePreMatch?a.teamSelectedPreMatch.teamId:r.value.teamId)||[]);async function p(e=!1){try{const t=await u();l.value.set(a.game.homeTeam.team_id,t.homeTeam),l.value.set(a.game.awayTeam.team_id,t.awayTeam),e&&(o=setInterval(()=>{p()},6e4*a.volumetricFieldIntervalMinutes))}catch(t){throw Error(t)}}function h(e){return 4!==a.game.game_status||a.game.is_live?e[s.gameId]===a.game.gameId:e[s.gameId]!==a.game.gameId}async function u(e=0){try{let t={homeTeam:[],awayTeam:[]};if(a.game.is_live||0===a.game.game_status){const e=await m.get("https://2uj7ojhmt5.execute-api.us-west-2.amazonaws.com/prod/V2/statisticsLive/"+a.game.gameId),o=e.data&&e.data.data||[],n=new Set;o.forEach(e=>{n.add(e[s.categoryId]),e[s.teamId]===a.game.homeTeam.team_id&&i.has(e[s.categoryId])&&h(e)?(y(e),t.homeTeam.push(e)):e[s.teamId]===a.game.awayTeam.team_id&&i.has(e[s.categoryId])&&h(e)&&(e[s.coordinate1Y]=1-e[s.coordinate1Y],e[s.coordinate2Y]=1-e[s.coordinate2Y],e[s.coordinate3Y]=1-e[s.coordinate3Y],e[s.coordinate1X]=1-e[s.coordinate1X],e[s.coordinate2X]=1-e[s.coordinate2X],e[s.coordinate3X]=1-e[s.coordinate3X],y(e),t.awayTeam.push(e))})}else{const[o,n]=await Promise.all([m.get(`https://golstats-microservices.s3-us-west-2.amazonaws.com/statsTeamBySeason-${e||a.game.seasonId}-${a.game.homeTeam.team_id}.json`,{headers:{Authorization:""}}),m.get(`https://golstats-microservices.s3-us-west-2.amazonaws.com/statsTeamBySeason-${e||a.game.seasonId}-${a.game.awayTeam.team_id}.json`,{headers:{Authorization:""}})]);if(!o.data.data.posession.length&&!n.data.data.posession.length&&!e)return u(a.game.regularSeasonId);t={homeTeam:o.data.data.posession.filter(e=>e[s.teamId]===a.game.homeTeam.team_id&&i.has(e[s.categoryId])&&h(e)),awayTeam:n.data.data.posession.filter(e=>!(e[s.teamId]!==a.game.awayTeam.team_id||!i.has(e[s.categoryId])||!h(e)||(e[s.coordinate1Y]=1-e[s.coordinate1Y],e[s.coordinate2Y]=1-e[s.coordinate2Y],e[s.coordinate3Y]=1-e[s.coordinate3Y],e[s.coordinate1X]=1-e[s.coordinate1X],e[s.coordinate2X]=1-e[s.coordinate2X],e[s.coordinate3X]=1-e[s.coordinate3X],0)))}}return t}catch(t){throw Error(t)}}function y(e){const t=e[s.coordinate1X],a=e[s.coordinate2X],i=e[s.coordinate3X];return e[s.coordinate1X]=e[s.coordinate1Y],e[s.coordinate2X]=e[s.coordinate2Y],e[s.coordinate3X]=e[s.coordinate3Y],e[s.coordinate1Y]=t,e[s.coordinate2Y]=a,e[s.coordinate3Y]=i,e}function g(e){n.value=e.index,r.value=e.button}function v(){o&&clearInterval(o)}return t.watch(()=>d.value,()=>{n.value=0,r.value=d.value[n.value]},{immediate:!0}),t.watch(()=>a.game.gameId,e=>{e&&(v(),p(a.game.is_live&&4===a.game.game_status))},{immediate:!0}),t.onUnmounted(()=>{v()}),(a,i)=>(t.openBlock(),t.createElementBlock("div",sm,[im,e.isGamePreMatch?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",om,[t.createVNode(Dr,{"selected-button-index":n.value,buttons:d.value,width:"320px","border-radius":"16px",onChange:g},null,8,["selected-button-index","buttons"])])),t.createElementVNode("div",nm,[t.createVNode(em,{team:e.isGamePreMatch?e.teamSelectedPreMatch:r.value},null,8,["team"])]),t.createElementVNode("div",lm,[t.createVNode(Xc,{"passes-plays":c.value,"play-indexes":t.unref(s)},null,8,["passes-plays","play-indexes"])])]))}},[["__scopeId","data-v-b3d91153"]]);let dm=null;const cm={components:{GSCHighlights:v.GSCHighlights,ToggleButtons:Dr,VolumetricSectionContainer:rm,DataProminentGame:bn,HighlightsProminentGameLive:Jl,HighlightsProminentGame:xl,GSCRadioToggle:rl,FieldPosesion:Qn,EventsLine:Ar,ChalkboardSectionContainer:Zc},props:{timeLiveProminentData:{type:Number,default:6e4},timeLiveHighlightsProminentAndVideo:{type:Number,default:6e4},timeLivePossesion:{type:Number,default:6e4},game:{type:Object,default:()=>({})},token:{type:String,default:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"},seasonSelected:{type:Object,default:()=>({})},isWidget:{type:Boolean,default:!1},teamWidget:{type:Number,default:0},tournamentSelected:{type:Object,default:()=>({})},canPlayVideos:{type:Boolean,default:!1},is_captured:{type:Number,default:1},videoPrivilegesPlayingAs:{type:Set,default:()=>new Set([1,2])},playVideosPrivileges:{type:Object,default:null},volumetricFieldIntervalMinutes:{type:Number,default:2},chalkboardIntervalMinutes:{type:Number,default:2},gameEventsIntervalMinutes:{type:Number,default:1}},data(){return{isDataProminentGameLoading:!0,areHighlightsLoading:!0,widthSection:0,showleyendliveData:!1,showgoalsliveData:!1,showsummaryliveData:!1,viewVolumtrica:!0,teamButtonSelectedIndex:0,switchTypeViewFiled:"Porcentajes",teamSelected:{teamId:0},isFirstDataLoaded:!1}},computed:{toggleButtons(){return[{teamId:this.game.homeTeam.team_id,text:this.game.homeTeam.colloquial_name,img:this.game.homeTeam.logo,isHomeTeam:!0},{teamId:this.game.awayTeam.team_id,text:this.game.awayTeam.colloquial_name,img:this.game.awayTeam.logo,isHomeTeam:!1}]},isGamePreMatch(){return this.game&&4===this.game.game_status&&!this.game.is_live}},watch:{widthSection(){this.viewVolumtrica=this.widthSection>=760},toggleButtons:{handler(){this.teamButtonSelectedIndex=0,this.teamSelected=this.toggleButtons[0]},deep:!0,immediate:!0}},methods:{onDataProminentGameLoading(e){this.isFirstDataLoaded||(this.isDataProminentGameLoading=e,this.areHighlightsLoading=!0,e||setTimeout(()=>{this.areHighlightsLoading=!1,this.isFirstDataLoaded=!0},500))},intervalidhighlive(e){this.$emit("intervalidhighlive",e)},intervalidpossesion(e){this.$emit("intervalidpossesion",e)},onChangeToggle(e){this.teamButtonSelectedIndex=e.index,this.teamSelected=e.button},setUpResizeObserver(){if(!window.ResizeObserver)throw Error("Resize observer not supported!");dm=new ResizeObserver(()=>{this.widthSection=this.$refs.prominent.clientWidth}),dm.observe(this.$refs.prominent)},async ChangeRadio(e){"string"==typeof e&&(this.switchTypeViewFiled=e)},openmedia(e){this.$emit("openmedia",e)},onClickPlayEvent(e){const t={seasonId:1===this.game.is_live||0===this.game.game_status?this.game.seasonId:this.seasonSelected.id,isFeaturedPlayers:!1,mainSectionType:1,playListType:1,playerIds:[],categoryIds:[e.categoryId],matchResult:[1,2,3],currentPlayIndex:0,playsIds:[e.playId]};this.$emit("openmedia",t)},showleyendlive(e){this.showleyendliveData=e},showgoalslive(e){this.showgoalsliveData=e},showsummarylive(e){this.showsummaryliveData=e},onOpenMediaPlayer(e){this.canPlayVideos&&this.$emit("open-media-player",e)},getContainerClass(){return this.widthSection>830?"highlights-container-desktop":"highlights-container-mobile"}},async mounted(){setTimeout(()=>{this.setUpResizeObserver()},1e3)}},mm=e=>(t.pushScopeId("data-v-2ea455b3"),e=e(),t.popScopeId(),e),pm={class:"container-prominent",ref:"prominent"},hm={class:"container-prominent-data"},um={class:"container-prominent-section"},ym={key:0,class:"highlights-containers"},gm={class:"highlights-content"},vm={key:1,class:"highlights-containers"},_m=mm(()=>t.createElementVNode("div",{class:"fields-section-title"},"Posesión",-1)),fm={key:0,class:"container-leyend-prematch"},bm=mm(()=>t.createElementVNode("span",{class:"leyend-bold"},"IMPORTANTE:",-1)),wm={key:1,class:"container-leyend-prematch-movil"},Sm=mm(()=>t.createElementVNode("span",{class:"leyend-bold"},"IMPORTANTE:",-1)),Tm=mm(()=>t.createElementVNode("br",null,null,-1)),km=mm(()=>t.createElementVNode("br",null,null,-1)),xm={key:2,class:"container-leyend-prematch-movil"},Cm=mm(()=>t.createElementVNode("span",{class:"leyend-bold"},"IMPORTANTE:",-1)),Im=mm(()=>t.createElementVNode("br",null,null,-1)),Pm=mm(()=>t.createElementVNode("br",null,null,-1)),Gm={class:"container-switch-toggle"},Fm={class:"container-prominent-section__chalkboard"},Am=mm(()=>t.createElementVNode("div",{class:"fields-section-title"},"Pizarra",-1)),Mm=B(cm,[["render",(e,a,s,i,o,n)=>{const l=t.resolveComponent("DataProminentGame"),r=t.resolveComponent("HighlightsProminentGameLive"),d=t.resolveComponent("HighlightsProminentGame"),c=t.resolveComponent("GSCHighlights"),m=t.resolveComponent("EventsLine"),p=t.resolveComponent("ToggleButtons"),h=t.resolveComponent("GSCRadioToggle"),u=t.resolveComponent("FieldPosesion"),y=t.resolveComponent("VolumetricSectionContainer"),g=t.resolveComponent("ChalkboardSectionContainer");return t.openBlock(),t.createElementBlock("div",pm,[t.createElementVNode("div",hm,[t.createVNode(l,{"is-widget":s.isWidget,"team-widget":s.teamWidget,"time-live-prominent-data":s.timeLiveProminentData,game:s.game,"can-play-videos":s.canPlayVideos,onOpenmedia:n.openmedia,onLoading:n.onDataProminentGameLoading},null,8,["is-widget","team-widget","time-live-prominent-data","game","can-play-videos","onOpenmedia","onLoading"])]),t.createElementVNode("div",um,[1===s.game.is_live||0===s.game.game_status||1===s.game.game_status?(t.openBlock(),t.createElementBlock("div",ym,[t.createElementVNode("div",{class:t.normalizeClass(n.getContainerClass())},[o.showleyendliveData?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(o.widthSection>830?"highlights-header":"highlights-header-mobile")},[Object.keys(s.game).length>0&&Object.keys(s.tournamentSelected).length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(o.widthSection>830?"semifinal-tag":"semifinal-tag-mobile")},t.toDisplayString(41!=s.tournamentSelected.id?s.game.matchday_name.replace("Matchday","Jornada").replace("de Final","").replace("Playoffs 1","Cuartos de Final Ida").replace("Playoffs 2","Cuartos de Final Vuelta").replace("Playoffs 3","Semifinal Ida").replace("Playoffs 4","Semifinal Vuelta").replace("Playoffs 5","Final Ida").replace("Playoffs 6","Final Vuelta"):"Matchday 10"==s.game.matchday_name?"Final":s.game.matchday_name.replace("Matchday 1","16vos Ida").replace("Matchday 2","16vos Vuelta").replace("Matchday 3","8vos Ida").replace("Matchday 4","8vos Vuelta").replace("Matchday 5","4tos Ida").replace("Matchday 6","4tos Vuelta").replace("Matchday 7","Semifinal Ida").replace("Matchday 8","Semifinal Vuelta").replace("Matchday 9","Final").replace("Matchday 10","Final")),3)):t.createCommentVNode("",!0),t.createElementVNode("h2",{class:t.normalizeClass(o.widthSection>830?"highlights-title":"highlights-title-mobile")}," HIGHLIGHTS DEL PARTIDO ",2)],2)):t.createCommentVNode("",!0),t.createElementVNode("div",gm,[t.createElementVNode("div",{class:"highlight-card",style:t.normalizeStyle(o.showgoalsliveData?o.widthSection>830?"width: 49%;":"width: 100%;":"")},[1!==s.game.is_live&&0!==s.game.game_status||!s.canPlayVideos?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[1===s.game.status&&s.canPlayVideos?(t.openBlock(),t.createBlock(d,{key:0,onShowsummarylive:n.showsummarylive,onShowleyendlive:n.showleyendlive,onShowgoalslive:n.showgoalslive,onIntervalidhighlive:n.intervalidhighlive,"title-card":"GOLES","can-play-videos":s.canPlayVideos,game:s.game,onOpenmedia:n.openmedia},null,8,["onShowsummarylive","onShowleyendlive","onShowgoalslive","onIntervalidhighlive","can-play-videos","game","onOpenmedia"])):t.createCommentVNode("",!0)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[1===s.game.is_live||0===s.game.game_status?(t.openBlock(),t.createBlock(r,{key:0,"time-live-highlights-prominent-and-video":s.timeLiveHighlightsProminentAndVideo,"can-play-videos":s.canPlayVideos,game:s.game,"title-card":"GOLES",onShowgoalslive:n.showgoalslive,onShowsummarylive:n.showsummarylive,onShowleyendlive:n.showleyendlive,onIntervalidhighlive:n.intervalidhighlive,onOpenmedia:n.openmedia},null,8,["time-live-highlights-prominent-and-video","can-play-videos","game","onShowgoalslive","onShowsummarylive","onShowleyendlive","onIntervalidhighlive","onOpenmedia"])):t.createCommentVNode("",!0)],64))],4),t.createElementVNode("div",{class:"highlight-card",style:t.normalizeStyle(o.showsummaryliveData?o.widthSection>830?"width: 49%;":"width: 100%;":"")},[1!==s.game.is_live&&0!==s.game.game_status||!s.canPlayVideos?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[1===s.game.status&&s.canPlayVideos?(t.openBlock(),t.createBlock(d,{key:0,onShowsummarylive:n.showsummarylive,onShowleyendlive:n.showleyendlive,onShowgoalslive:n.showgoalslive,onIntervalidhighlive:n.intervalidhighlive,"can-play-videos":s.canPlayVideos,game:s.game,onOpenmedia:n.openmedia},null,8,["onShowsummarylive","onShowleyendlive","onShowgoalslive","onIntervalidhighlive","can-play-videos","game","onOpenmedia"])):t.createCommentVNode("",!0)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[1===s.game.is_live||0===s.game.game_status?(t.openBlock(),t.createBlock(r,{key:0,"time-live-highlights-prominent-and-video":s.timeLiveHighlightsProminentAndVideo,"can-play-videos":s.canPlayVideos,game:s.game,onShowleyendlive:n.showleyendlive,onShowgoalslive:n.showgoalslive,onShowsummarylive:n.showsummarylive,onIntervalidhighlive:n.intervalidhighlive,onOpenmedia:n.openmedia},null,8,["time-live-highlights-prominent-and-video","can-play-videos","game","onShowleyendlive","onShowgoalslive","onShowsummarylive","onIntervalidhighlive","onOpenmedia"])):t.createCommentVNode("",!0)],64))],4)])],2)])):(t.openBlock(),t.createElementBlock("div",vm,[o.isDataProminentGameLoading||1!==s.game.is_live&&0!==s.game.game_status||!s.canPlayVideos?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[1===s.game.status&&s.canPlayVideos?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[s.canPlayVideos?(t.openBlock(),t.createBlock(c,{key:0,data:{game:s.game.gameId,season:s.game.seasonId,type:"historic"},"can-play-videos":s.canPlayVideos,"video-privileges-playing-as":s.videoPrivilegesPlayingAs,"privileges-team-id":s.playVideosPrivileges?s.playVideosPrivileges.seasonAndPrivileges.teamId:0,onOpenmedia:n.openmedia},null,8,["data","can-play-videos","video-privileges-playing-as","privileges-team-id","onOpenmedia"])):t.createCommentVNode("",!0)],64))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[],64))])),n.isGamePreMatch?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",{key:2,class:t.normalizeClass(o.widthSection>920?"container-prominent-section__events-line":"container-prominent-section__events-line-mobile")},[o.areHighlightsLoading?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(m,{key:0,token:s.token,game:s.game,widthScreen:o.widthSection,"can-play-videos":s.canPlayVideos,"game-events-interval-minutes":s.gameEventsIntervalMinutes,onPlayVideo:n.onClickPlayEvent},null,8,["token","game","widthScreen","can-play-videos","game-events-interval-minutes","onPlayVideo"]))],2)),o.areHighlightsLoading?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",{key:3,class:t.normalizeClass(o.widthSection>760?"fields-section-container":"fields-section-container-movil")},[_m,4===s.game.game_status&&1!=s.game.is_live?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[o.widthSection>590?(t.openBlock(),t.createElementBlock("div",fm,[bm,t.createTextVNode("  Con base en las estadisticas de los partidos ya jugados en el torneo. ")])):t.createCommentVNode("",!0),o.widthSection>340&&590>=o.widthSection?(t.openBlock(),t.createElementBlock("div",wm,[Sm,t.createTextVNode("  "),Tm,t.createTextVNode("Con base en las estadisticas de los partidos ya "),km,t.createTextVNode(" jugados en el torneo. ")])):t.createCommentVNode("",!0),o.widthSection>340?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",xm,[Cm,t.createTextVNode("  "),Im,t.createTextVNode("Con base en las estadisticas de los "),Pm,t.createTextVNode("partidos ya jugados en el torneo. ")])),t.createElementVNode("div",{class:t.normalizeClass(o.widthSection>420?"container-switch-prematch-teams":"container-switch-prematch-teams-movil")},[t.createVNode(p,{"selected-button-index":o.teamButtonSelectedIndex,buttons:n.toggleButtons,width:"320px","border-radius":"16px",onChange:n.onChangeToggle},null,8,["selected-button-index","buttons","onChange"])],2)],64)):t.createCommentVNode("",!0),t.withDirectives(t.createElementVNode("div",Gm,[t.createVNode(h,{height:"20px",width:"41px","background-color":"none","width-circle":"15px","height-circle":"15px","circle-color-switch":"#CBEE6B","font-color":"#ffffff","value-default":"Porcentajes",textOptionLeft:"Porcentajes",textOptionRight:"Volumétrico",onChange:n.ChangeRadio},null,8,["onChange"])],512),[[t.vShow,760>=o.widthSection]]),t.createElementVNode("div",{class:t.normalizeClass(o.widthSection>760?"fields-container":"fields-container-movil")},[t.withDirectives(t.createElementVNode("div",{class:t.normalizeClass(o.widthSection>760?"field-possesion-container":"field-possesion-container-movil")},[t.createVNode(u,{"width-Section":o.widthSection,game:s.game,"time-live-possesion":s.timeLivePossesion,onIntervalidpossesion:n.intervalidpossesion,"team-selected":0===o.teamSelected.teamId?n.toggleButtons[0]:o.teamSelected},null,8,["width-Section","game","time-live-possesion","onIntervalidpossesion","team-selected"])],2),[[t.vShow,"Porcentajes"===o.switchTypeViewFiled||o.widthSection>760]]),t.withDirectives(t.createElementVNode("div",{class:t.normalizeClass(o.widthSection>760?"field-volumetrica-container":"field-volumetrica-container-movil")},[t.createVNode(y,{game:s.game,"season-selected":s.seasonSelected,token:s.token,"is-game-pre-match":n.isGamePreMatch,"team-selected-pre-match":o.teamSelected,"volumetric-field-interval-minutes":s.volumetricFieldIntervalMinutes},null,8,["game","season-selected","token","is-game-pre-match","team-selected-pre-match","volumetric-field-interval-minutes"])],2),[[t.vShow,o.viewVolumtrica&&o.widthSection>760||"Volumétrico"===o.switchTypeViewFiled]])],2),t.createCommentVNode("",!0)],2)),t.createElementVNode("div",Fm,[Am,o.areHighlightsLoading?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(g,{key:0,"is-female":1===s.tournamentSelected.is_female,game:s.game,"season-selected":s.seasonSelected,"tournament-selected":s.tournamentSelected,token:s.token,"width-section":o.widthSection,"can-play-videos":s.canPlayVideos,"is-game-pre-match":n.isGamePreMatch,"play-videos-privileges":s.playVideosPrivileges,"volumetric-field-interval-minutes":s.volumetricFieldIntervalMinutes,"chalkboard-interval-minutes":s.chalkboardIntervalMinutes,"game-events-interval-minutes":s.gameEventsIntervalMinutes,onOpenMediaPlayer:n.onOpenMediaPlayer},null,8,["is-female","game","season-selected","tournament-selected","token","width-section","can-play-videos","is-game-pre-match","play-videos-privileges","volumetric-field-interval-minutes","chalkboard-interval-minutes","game-events-interval-minutes","onOpenMediaPlayer"]))])])],512)}],["__scopeId","data-v-2ea455b3"]]),Lm={class:"datagame-container"},Om=B({h:"GSCProminentMain",props:{timeLiveProminentData:{type:Number,default:6e4},timeLiveHighlightsProminentAndVideo:{type:Number,default:6e4},timeLivePossesion:{type:Number,default:6e4},game:{type:Object,default:()=>({})},seasonSelected:{type:Object,default:()=>({})},tournamentSelected:{type:Object,default:()=>({})},isWidget:{type:Boolean,default:!1},teamWidget:{type:Number,default:0},canPlayVideos:{type:Boolean,default:!1},is_captured:{type:Number,default:1},videoPrivilegesPlayingAs:{type:Set,default:()=>new Set([1,2])},playVideosPrivileges:{type:Object,default:null},volumetricFieldIntervalMinutes:{type:Number,default:2},chalkboardIntervalMinutes:{type:Number,default:2},gameEventsIntervalMinutes:{type:Number,default:1}},emits:["click-play-event","openmedia","intervalidpossesion","intervalidhighlive"],setup(e,{emit:a}){function s(e){a("intervalidhighlive",e)}function i(e){a("intervalidpossesion",e)}function o(e){a("openmedia",e)}function n(e){a("openmedia",e)}return(a,l)=>(t.openBlock(),t.createElementBlock("div",Lm,[t.createVNode(Mm,{game:e.game,is_captured:e.is_captured,"is-widget":e.isWidget,"team-widget":e.teamWidget,"time-live-prominent-data":e.timeLiveProminentData,"time-live-highlights-prominent-and-video":e.timeLiveHighlightsProminentAndVideo,"time-live-possesion":e.timeLivePossesion,"season-selected":e.seasonSelected,"tournament-selected":e.tournamentSelected,"can-play-videos":e.canPlayVideos,"video-privileges-playing-as":e.videoPrivilegesPlayingAs,"play-videos-privileges":e.playVideosPrivileges,"volumetric-field-interval-minutes":e.volumetricFieldIntervalMinutes,"chalkboard-interval-minutes":e.chalkboardIntervalMinutes,"game-events-interval-minutes":e.gameEventsIntervalMinutes,onIntervalidpossesion:i,onIntervalidhighlive:s,onOpenmedia:o,onOpenMediaPlayer:n},null,8,["game","is_captured","is-widget","team-widget","time-live-prominent-data","time-live-highlights-prominent-and-video","time-live-possesion","season-selected","tournament-selected","can-play-videos","video-privileges-playing-as","play-videos-privileges","volumetric-field-interval-minutes","chalkboard-interval-minutes","game-events-interval-minutes"])]))}},[["__scopeId","data-v-f33283ce"]]),Nm={class:"datagame-container"},Dm={h:"GSCDatosGSMainAvanced",props:{isWidget:{type:Boolean,default:!1},teamWidget:{type:Number,default:0},game:{type:Object,default:()=>({gameId:79623,seasonId:1772,status:1,dateTimeUTC:"2023-10-01T22:20:00Z",homeTeam:{logo:"https://golstatsimages.blob.core.windows.net/teams-80/18.png",team_id:10,provisional_logo:"https://golstatsimages.blob.core.windows.net/teams-provisional/18.png",colloquial_name:"Toluca",acronym:"TOL",team_name:"Toluca"},awayTeam:{logo:"https://golstatsimages.blob.core.windows.net/teams-80/1.png",team_id:1,provisional_logo:"https://golstatsimages.blob.core.windows.net/teams-provisional/1.png",colloquial_name:"Chivas",acronym:"CHI",team_name:"Guadalajara"}})},tournamentSelected:{type:Object,default:()=>({})},playVideosPrivileges:{type:Object,default:null}},emits:["openmedia","intervalidgs"],setup(e,{emit:a}){const s=e,i=t.ref(0);function o(e){a("openmedia",e)}function n(e){a("intervalidgs",e)}return t.watch(()=>s.game,e=>{i.value=e.gameId},{deep:!0,immediate:!0}),(a,s)=>(t.openBlock(),t.createElementBlock("div",Nm,[1===e.game.is_live||0===e.game.game_status?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[Object.keys(e.game).length>0?(t.openBlock(),t.createBlock(t.unref(y.GSCDataGames),{key:i.value,type:3,"is-widget":e.isWidget,"team-widget":e.teamWidget,data:{season:e.game.seasonId,game:e.game.gameId,game_status:e.game.game_status,home_team_id:e.game.homeTeam.team_id,away_team_id:e.game.awayTeam.team_id,team_view:2},"tournament-selected":e.tournamentSelected,onIntervalidgs:n,"play-videos-privileges":e.playVideosPrivileges,onOpenmedia:o},null,8,["is-widget","team-widget","data","tournament-selected","play-videos-privileges"])):t.createCommentVNode("",!0)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[4==e.game.game_status?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[Object.keys(e.game).length>0?(t.openBlock(),t.createBlock(t.unref(y.GSCDataGames),{key:i.value,type:0,"is-widget":e.isWidget,"team-widget":e.teamWidget,data:{season:e.game.seasonId,game:e.game.gameId,game_status:e.game.game_status,home_team_id:e.game.homeTeam.team_id,away_team_id:e.game.awayTeam.team_id,team_view:1},"tournament-selected":e.tournamentSelected,"play-videos-privileges":e.playVideosPrivileges,onOpenmedia:o},null,8,["is-widget","team-widget","data","tournament-selected","play-videos-privileges"])):t.createCommentVNode("",!0)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[Object.keys(e.game).length>0?(t.openBlock(),t.createBlock(t.unref(y.GSCDataGames),{key:i.value,type:1,"is-widget":e.isWidget,"team-widget":e.teamWidget,data:{season:e.game.seasonId,game:e.game.gameId,game_status:e.game.game_status,home_team_id:e.game.homeTeam.team_id,away_team_id:e.game.awayTeam.team_id,team_view:2},"tournament-selected":e.tournamentSelected,"play-videos-privileges":e.playVideosPrivileges,onOpenmedia:o},null,8,["is-widget","team-widget","data","tournament-selected","play-videos-privileges"])):t.createCommentVNode("",!0)],64))],64))]))}},Vm={sizeTabsFontMP(){const e=this.elementSize.width;return e>380?e>768?"16px":"14px":"12px"},sizeTabsFontMS(){const e=this.elementSize.width;return e>600?e>768?"14px":"13px":"12px"},sizeTabsMS(){const e=this.elementSize.width;return e>480?e>600?e>620?e>640?e>660?e>680?e>700?e>720?"200px":"195px":"185px":"180px":"175px":"170px":"163px":"153px":"145px"},sizeTabsMP(){const e=this.elementSize.width;return e>319?e>330?e>340?e>350?e>360&&e>370?e>390?e>410?e>430?e>450?e>470?e>500?e>530?e>560?e>590?e>620?e>650?e>680?e>730?e>768?"110px":"100px":"210px":"195px":"180px":"175px":"163px":"155px":"138px":"130px":"122px":"117px":"110px":"105px":"95px":"90px":"82px":"78px":"73px":"68px"},comextleyemdmultipleleaguesClass(){return this.elementSize.width>380?this.$style.comtextleyemdmultipleleagues:this.$style.comtextleyemdmultipleleagues380},comdropdownParentClass(){return this.elementSize.width>730?this.$style.comdropdownParent:this.$style.comdropdownParent730},comdescubreVideosClass(){const e=this.elementSize.width;return e>960?e>1232?this.$style.comdescubreVideos:this.$style.comdescubreVideos1232:this.$style.comdescubreVideos960},comquitarFiltrosClass(){const e=this.elementSize.width;return e>380?e>480?e>730?this.$style.comquitarFiltros:this.$style.comquitarFiltros730:this.$style.comquitarFiltros480:this.$style.comquitarFiltros380},commejoresJugadoresClass(){const e=this.elementSize.width;return e>480?e>730?this.$style.commejoresJugadores:this.$style.commejoresJugadores730:this.$style.commejoresJugadores480},menuSectionClass(){return this.elementSize.width>960?this.$style.commenuSection:this.$style.commenuSection960},topFiltersClass(){const e=this.elementSize.width;return e>420?e>460?e>1232?this.$style.comtopFilters:this.$style.comtopFilters1232:this.$style.comtopFilters460:this.$style.comtopFilters420},toniKroosWrapperClass(){const e=this.elementSize.width;return e>319?e>420?e>916?e>975?e>1079?this.$style.comtoniKroosWrapper:this.$style.comtoniKroosWrapper1080:this.$style.comtoniKroosWrapper975:this.$style.comtoniKroosWrapper760:this.$style.comtoniKroosWrapper420:this.$style.comtoniKroosWrapper320},containerTablesClass(){const e=this.elementSize.width;return e>319?e>916?e>1079?this.$style.comcontainerTables:this.$style.comcontainerTables960:this.$style.comcontainerTables760:this.$style.comcontainerTables320},containerTheBestClass(){const e=this.elementSize.width;return e>319?e>960?e>1232?this.$style.comcontainerTheBest:this.$style.comcontainerTheBest1232:this.$style.comcontainerTheBest960:this.$style.comcontainerTheBest320},menuSectionHeaderClass(){const e=this.elementSize.width;return e>730?e>960?e>1232?this.$style.commenuSectionHeader:this.$style.commenuSectionHeader1232:this.$style.commenuSectionHeader960:this.$style.commenuSectionHeader730},losMejoresClass(){const e=this.elementSize.width;return e>380?e>530?e>730?this.$style.comlosMejores:this.$style.comlosMejores730:this.$style.comlosMejores530:this.$style.comlosMejores380},dropdownClass(){return this.elementSize.width>730?this.$style.comdropdown:this.$style.comdropdown730},dropdown1Class(){return this.elementSize.width>730?this.$style.comdropdown1:this.$style.comdropdown1730},menuSectionParentHeaderClass(){const e=this.elementSize.width;return e>430?e>730?e>960?e>1232?this.$style.commenuSectionParentHeader:this.$style.commenuSectionParentHeader1232:this.$style.commenuSectionParentHeader960:this.$style.commenuSectionParentHeader730:this.$style.commenuSectionParentHeader430},templateLosMejoresClass(){const e=this.elementSize.width;return e>319?e>350?e>420?e>540?e>960?e>1232?this.$style.comtemplateLosMejores1:this.$style.comtemplateLosMejores11232:this.$style.comtemplateLosMejores1960:this.$style.comtemplateLosMejores1540:this.$style.comtemplateLosMejores1420:this.$style.comtemplateLosMejores1350:this.$style.comtemplateLosMejores1320},containerMenuClass(){return this.elementSize.width>760?this.$style.comcontainerMenu:this.$style.comcontainerMenu760},titleSectionClass(){return this.elementSize.width>540?this.$style.comtitleSection:this.$style.comtitleSection540},containerSectionClass(){const e=this.elementSize.width;return e>319?e>350?e>960?e>1232?this.$style.comcontainerSection:this.$style.comcontainerSection1232:this.$style.comcontainerSection960:this.$style.comcontainerSection350:this.$style.comcontainerSection320},filtersContainerClass(){const e=this.elementSize.width;return e>420?e>760?e>1232?this.$style.comfiltersContainer:this.$style.comfiltersContainer1232:this.$style.comfiltersContainer760:this.$style.comfiltersContainer420},topFiltersParentClass(){const e=this.elementSize.width;return e>420?e>460?e>1232?this.$style.comtopFiltersParent:this.$style.comtopFiltersParent1232:this.$style.comtopFiltersParent460:this.$style.comtopFiltersParent420}};function zm(e){const a=t.ref({width:0,height:0});function s(){const t=e.value.getBoundingClientRect();a.value.width=t.width,a.value.height=t.height}return t.onMounted(()=>{s(),window.addEventListener("resize",s)}),t.onUnmounted(()=>{window.removeEventListener("resize",s)}),{elementSize:a}}const jm={components:{},computed:{icnIconType1Class(){const e=this.elementSize.width;return e>400?e>420?this.$style.icnIconType1:this.$style.icnIconType1420:this.$style.icnIconType1400},videosType1Class(){const e=this.elementSize.width;return e>400?e>420?e>540?e>600?e>680?this.$style.videosType1:this.$style.videosType1680:this.$style.videosType1600:this.$style.videosType1540:this.$style.videosType1420:this.$style.videosType1400},monType1Class(){const e=this.elementSize.width;return e>680?e>960?this.$style.monType1:this.$style.monType1960:this.$style.monType1680},block02TitlesType1Class(){const e=this.elementSize.width;return e>350?e>680?this.$style.block02TitlesType1:this.$style.block02TitlesType1680:this.$style.block02TitlesType1350},containesOptionsTitlesType1Class(){const e=this.elementSize.width;return e>400?e>690?e>730?e>768?this.$style.containesOptionsTitlesType1:this.$style.containesOptionsTitlesType1768:this.$style.containesOptionsTitlesType1730:this.$style.containesOptionsTitlesType1690:this.$style.containesOptionsTitlesType1400},partidosJugadosWrapperType1Class(){const e=this.elementSize.width;return e>770?e>790?e>830?e>860?e>880?e>930?e>960?e>1086?e>1140?e>1170?e>1180?e>1200?this.$style.partidosJugadosWrapperType1:this.$style.partidosJugadosWrapperType11200:this.$style.partidosJugadosWrapperType11180:this.$style.partidosJugadosWrapperType11170:this.$style.partidosJugadosWrapperType11140:this.$style.partidosJugadosWrapperType11086:this.$style.partidosJugadosWrapperType1960:this.$style.partidosJugadosWrapperType1930:this.$style.partidosJugadosWrapperType1880:this.$style.partidosJugadosWrapperType1860:this.$style.partidosJugadosWrapperType1830:this.$style.partidosJugadosWrapperType1790:this.$style.promedioPartidosWrapperType1770},promedioPartidosWrapperType1Class(){const e=this.elementSize.width;return e>960?e>1086?this.$style.promedioPartidosWrapperType1:this.$style.promedioPartidosWrapperType11086:this.$style.promedioPartidosWrapperType1960},partidosJugadosType1Class(){return this.elementSize.width>960?this.$style.partidosJugadosType1:this.$style.partidosJugadosType1960},templateTablaProductividadType1Class(){return this.elementSize.width>400?this.$style.templateTablaProductividadType1:this.$style.templateTablaProductividadType1400},promedioEstePartidoType1Class(){return this.elementSize.width>960?this.$style.promedioEstePartidoType1:this.$style.promedioEstePartidoType1960},headTitlesType1Class(){const e=this.elementSize.width;return e>350?e>400?e>420?e>460?e>540?e>680?this.$style.headTitlesType1:this.$style.headTitlesType1680:this.$style.headTitlesType1540:this.$style.headTitlesType1460:this.$style.headTitlesType1420:this.$style.headTitlesType1400:this.$style.headTitlesType1350},headTitlesClassAvanced(){const e=this.elementSize.width;return e>420?e>460?e>540?e>620?e>960?this.$style.headTitlesAvanced:this.$style.headTitlesAvanced960:this.$style.headTitlesAvanced620:this.$style.headTitlesAvanced540:this.$style.headTitlesAvanced460:this.$style.headTitlesAvanced420},containerLeftTitlesClass(){const e=this.elementSize.width;return e>420?e>620?this.$style.containerLeftTitles:this.$style.containerLeftTitles620:this.$style.containerLeftTitles420},containerLeftTitlesClassTeam(){const e=this.elementSize.width;return e>420?e>620?e>680?e>768?e>860?e>960?e>1090?e>1180?this.$style.containerLeftTitlesTeam:this.$style.containerLeftTitlesTeam1180:this.$style.containerLeftTitlesTeam1090:this.$style.containerLeftTitlesTeam960:this.$style.containerLeftTitlesTeam860:this.$style.containerLeftTitlesTeam768:this.$style.containerLeftTitlesTeam680:this.$style.containerLeftTitlesTeam620:this.$style.containerLeftTitlesTeam420},icnIconClass(){const e=this.elementSize.width;return e>420?e>960?this.$style.icnIcon:this.$style.icnIcon960:this.$style.icnIcon420},mon1Class(){const e=this.elementSize.width;return e>420?e>620?this.$style.mon1:this.$style.mon1620:this.$style.mon1420},mon1ScoutingClass(){const e=this.elementSize.width;return e>420?e>960?this.$style.mon1Scouting:this.$style.mon1Scouting960:this.$style.mon1420},promedioEstePartidoWrapperType1Class(){const e=this.elementSize.width;return e>1086?e>1090?e>1200?this.$style.promedioEstePartidoWrapperType1:this.$style.promedioEstePartidoWrapperType11200:this.$style.promedioEstePartidoWrapperType11090:this.$style.promedioEstePartidoWrapperType11086},frecuenciaWrapperType1Class(){return this.elementSize.width>680?this.$style.frecuenciaWrapperType1:this.$style.frecuenciaWrapperType1680},frecuenciaType1Class(){return this.elementSize.width>540?this.$style.frecuenciaType1:this.$style.frecuenciaType1540},positionType1Class(){return this.elementSize.width>400?this.$style.positionType1:this.$style.positionType1400},containerRightType1ClassAvanced(){return this.elementSize.width>420?this.$style.containerRightTypeAvanced1:this.$style.containerRightTypeAvanced1420},containerRightTitlesType1Class(){return this.elementSize.width>420?this.$style.containerRightTitlesType1:this.$style.containerRightTitlesType1420},teamType1Class(){return this.elementSize.width>400?this.$style.teamType1:this.$style.teamType1400},playerClass(){return this.elementSize.width>420?this.$style.player:this.$style.player420},positionClass(){return this.elementSize.width>420?this.$style.position:this.$style.position420},containerRightTitlesClassAdvanced(){return this.elementSize.width>960?this.$style.containerRightTitlesAdvanced:this.$style.containerRightTitlesAdvanced960},block02TitlesClass(){return this.elementSize.width>620?this.$style.block02Titles:this.$style.block02Titles960}},setup(){const e=t.ref("myDivRef"),{elementSize:a}=zm(e);return{myDivRef:e,elementSize:a}},props:{type:{type:Number,default:0},background:{type:String,default:"#172531"},height:{type:String,default:"71px"},heightTeam:{type:String,default:"65px"},fontColor:{type:String,default:"#FFFFFF"},fontSize:{type:String,default:"12px"},fontFamily:{type:String,default:"Poppins-Regular"}},watch:{},data:()=>({}),async created(){},methods:{}},Bm=()=>{t.useCssVars(e=>({"32aec1ca":e.background,"4e54a87a":e.height,"448b848c":e.fontSize,"4c061c38":e.fontColor,"3917092f":e.fontFamily,"4a286e80":e.heightTeam}))},Rm=jm.setup;jm.setup=Rm?(e,t)=>(Bm(),Rm(e,t)):Bm;const qm={ref:"myDivRef"},Em=t.createElementVNode("br",null,null,-1),Jm=t.createElementVNode("br",null,null,-1),Wm=B(jm,[["render",(e,a,s,i,o,n)=>(t.openBlock(),t.createElementBlock("div",qm,[0==s.type?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(n.headTitlesClassAvanced),id:"container-titles"},[t.createElementVNode("div",{class:t.normalizeClass(n.containerLeftTitlesClass),id:"container-left-titles"},[t.createElementVNode("div",{class:t.normalizeClass(n.positionClass)},"Pos.",2),t.createElementVNode("div",{class:t.normalizeClass(n.playerClass)},"Jugador",2)],2),t.createElementVNode("div",{class:t.normalizeClass(n.containerRightTitlesClassAdvanced),id:"container-right-titles"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.block01Titles)},[i.elementSize.width>540?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.teamTitle)},"Equipo",2)):t.createCommentVNode("",!0),i.elementSize.width>730?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.positionTitle)},"Posición",2)):t.createCommentVNode("",!0),i.elementSize.width>960?(t.openBlock(),t.createElementBlock("div",{key:2,class:t.normalizeClass(e.$style.ageTitle)},"edad",2)):t.createCommentVNode("",!0),i.elementSize.width>960?(t.openBlock(),t.createElementBlock("div",{key:3,class:t.normalizeClass(e.$style.ageTitle)},"País",2)):t.createCommentVNode("",!0),i.elementSize.width>540?(t.openBlock(),t.createElementBlock("div",{key:4,class:t.normalizeClass(e.$style.playedGamesTitle)},[t.createElementVNode("p",{class:t.normalizeClass(e.$style.partidos)},"Partidos",2),t.createElementVNode("p",{class:t.normalizeClass(e.$style.partidos)},"Jugados",2)],2)):t.createCommentVNode("",!0),i.elementSize.width>635?(t.openBlock(),t.createElementBlock("div",{key:5,class:t.normalizeClass(e.$style.playedMinutesTitle)},[t.createElementVNode("p",{class:t.normalizeClass(e.$style.partidos)},"Minutos",2),t.createElementVNode("p",{class:t.normalizeClass(e.$style.partidos)},"Jugados",2)],2)):t.createCommentVNode("",!0)],2),t.createElementVNode("div",{class:t.normalizeClass(n.block02TitlesClass)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.containesOptionsTitles)},[i.elementSize.width>960?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.mon)},"Total",2)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(n.mon1Class)},"Videos",2)],2)],2)],2)],2)):t.createCommentVNode("",!0),1==s.type?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(n.templateTablaProductividadType1Class)},[t.createElementVNode("div",{class:t.normalizeClass(n.headTitlesType1Class),id:"container-titles"},[t.createElementVNode("div",{class:t.normalizeClass(n.containerLeftTitlesClassTeam),id:"container-left-titles"},[t.createElementVNode("div",{class:t.normalizeClass(n.positionType1Class)},"Pos.",2),t.createElementVNode("div",{class:t.normalizeClass(n.teamType1Class)},"Equipo",2)],2),t.createElementVNode("div",{class:t.normalizeClass(n.containerRightType1ClassAvanced)},[t.createElementVNode("div",{class:t.normalizeClass(n.frecuenciaWrapperType1Class)},[i.elementSize.width>540?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(n.frecuenciaType1Class)},"Frecuencia",2)):t.createCommentVNode("",!0)],2),i.elementSize.width>960?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(n.promedioEstePartidoWrapperType1Class)},[t.createElementVNode("div",{class:t.normalizeClass(n.promedioEstePartidoType1Class)},[t.createElementVNode("p",{class:t.normalizeClass(e.$style.promedioPartidoType1)},"Promedio partido",2),t.createElementVNode("p",{class:t.normalizeClass(e.$style.promedioPartidoType1)},"este Torneo",2)],2)],2)):t.createCommentVNode("",!0),i.elementSize.width>1086?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(n.promedioPartidosWrapperType1Class)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.promedioPartidosType1)},[t.createElementVNode("p",{class:t.normalizeClass(e.$style.promedioPartidoType1)},[t.createTextVNode("Promedio partido"),Em,t.createTextVNode("Torneo anterior")],2)],2)],2)):t.createCommentVNode("",!0),i.elementSize.width>770?(t.openBlock(),t.createElementBlock("div",{key:2,class:t.normalizeClass(n.partidosJugadosWrapperType1Class)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.partidosJugadosType1)},[t.createElementVNode("p",{class:t.normalizeClass(e.$style.promedioPartidoType1)},[t.createTextVNode("Partidos "),Jm,t.createTextVNode("Jugados")],2)],2)],2)):t.createCommentVNode("",!0)],2),t.createElementVNode("div",{class:t.normalizeClass(n.containesOptionsTitlesType1Class)},[i.elementSize.width>680?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(n.monType1Class)},"total",2)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(n.videosType1Class)},"Videos",2)],2)],2)],2)):t.createCommentVNode("",!0),2==s.type?(t.openBlock(),t.createElementBlock("div",{key:2,class:t.normalizeClass(n.headTitlesClassAvanced),id:"container-titles"},[t.createElementVNode("div",{class:t.normalizeClass(n.containerLeftTitlesClass),id:"container-left-titles"},[t.createElementVNode("div",{class:t.normalizeClass(n.positionClass)},"Pos.",2),t.createElementVNode("div",{class:t.normalizeClass(n.playerClass)},"Jugador",2)],2),t.createElementVNode("div",{class:t.normalizeClass(n.containerRightTitlesClassAdvanced),id:"container-right-titles"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.block01Titles)},[i.elementSize.width>540?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.teamTitle)},"Equipo",2)):t.createCommentVNode("",!0),i.elementSize.width>730?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.positionTitle)},"Posición",2)):t.createCommentVNode("",!0),i.elementSize.width>960?(t.openBlock(),t.createElementBlock("div",{key:2,class:t.normalizeClass(e.$style.ageTitle)},"edad",2)):t.createCommentVNode("",!0),i.elementSize.width>960?(t.openBlock(),t.createElementBlock("div",{key:3,class:t.normalizeClass(e.$style.ageTitle)},"País",2)):t.createCommentVNode("",!0),i.elementSize.width>540?(t.openBlock(),t.createElementBlock("div",{key:4,class:t.normalizeClass(e.$style.playedGamesTitle)},[t.createElementVNode("p",{class:t.normalizeClass(e.$style.partidos)},"Partidos",2),t.createElementVNode("p",{class:t.normalizeClass(e.$style.partidos)},"Jugados",2)],2)):t.createCommentVNode("",!0),i.elementSize.width>635?(t.openBlock(),t.createElementBlock("div",{key:5,class:t.normalizeClass(e.$style.playedMinutesTitle)},[t.createElementVNode("p",{class:t.normalizeClass(e.$style.partidos)},"Minutos",2),t.createElementVNode("p",{class:t.normalizeClass(e.$style.partidos)},"Jugados",2)],2)):t.createCommentVNode("",!0),i.elementSize.width>635?(t.openBlock(),t.createElementBlock("div",{key:6,class:t.normalizeClass(e.$style.playedMinutesTitle)},[t.createElementVNode("p",{class:t.normalizeClass(e.$style.partidos)},"Liga",2)],2)):t.createCommentVNode("",!0)],2),t.createElementVNode("div",{class:t.normalizeClass(n.block02TitlesClass)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.containesOptionsTitles)},[t.createElementVNode("div",{class:t.normalizeClass(n.mon1ScoutingClass)},"Videos",2)],2)],2)],2)],2)):t.createCommentVNode("",!0)],512))],["__cssModules",{$style:{containerLeftTitles:"_containerLeftTitles_82svp_119",containerLeftTitles420:"_containerLeftTitles420_82svp_135",containerLeftTitles620:"_containerLeftTitles620_82svp_151",containerLeftTitlesTeam:"_containerLeftTitlesTeam_82svp_169",containerLeftTitlesTeam1180:"_containerLeftTitlesTeam1180_82svp_185",containerLeftTitlesTeam1090:"_containerLeftTitlesTeam1090_82svp_201",containerLeftTitlesTeam960:"_containerLeftTitlesTeam960_82svp_217",containerLeftTitlesTeam860:"_containerLeftTitlesTeam860_82svp_233",containerLeftTitlesTeam768:"_containerLeftTitlesTeam768_82svp_249",containerLeftTitlesTeam680:"_containerLeftTitlesTeam680_82svp_265",containerLeftTitlesTeam620:"_containerLeftTitlesTeam620_82svp_281",containerLeftTitlesTeam420:"_containerLeftTitlesTeam420_82svp_297",headTitlesAvanced:"_headTitlesAvanced_82svp_315",headTitlesAvanced960:"_headTitlesAvanced960_82svp_345",headTitlesAvanced420:"_headTitlesAvanced420_82svp_375",headTitlesAvanced540:"_headTitlesAvanced540_82svp_415",headTitlesAvanced460:"_headTitlesAvanced460_82svp_445",headTitlesAvanced620:"_headTitlesAvanced620_82svp_475",position:"_position_82svp_505",position420:"_position420_82svp_523",player:"_player_82svp_529",player420:"_player420_82svp_551",containerRightTypeAvanced1:"_containerRightTypeAvanced1_82svp_559",containerRightTitlesAdvanced:"_containerRightTitlesAdvanced_82svp_573",containerRightTitlesAdvanced960:"_containerRightTitlesAdvanced960_82svp_591",block02Titles:"_block02Titles_82svp_609",block02Titles620:"_block02Titles620_82svp_625",mon1Scouting:"_mon1Scouting_82svp_633",mon1Scouting960:"_mon1Scouting960_82svp_653",mon1:"_mon1_82svp_633",mon1420:"_mon1420_82svp_689",mon1620:"_mon1620_82svp_709",icnIcon:"_icnIcon_82svp_729",icnIcon960:"_icnIcon960_82svp_739",icnIcon420:"_icnIcon420_82svp_751",teamTitle:"_teamTitle_82svp_759",positionTitle:"_positionTitle_82svp_779",ageTitle:"_ageTitle_82svp_795",partidos:"_partidos_82svp_811",playedGamesTitle:"_playedGamesTitle_82svp_819",playedMinutesTitle:"_playedMinutesTitle_82svp_839",block01Titles:"_block01Titles_82svp_857",mon:"_mon_82svp_633",containesOptionsTitles:"_containesOptionsTitles_82svp_889",templateTablaProductividadType1:"_templateTablaProductividadType1_82svp_903",templateTablaProductividadType1400:"_templateTablaProductividadType1400_82svp_927",headTitlesType1:"_headTitlesType1_82svp_955",headTitlesType1420:"_headTitlesType1420_82svp_981",headTitlesType1400:"_headTitlesType1400_82svp_1013",headTitlesType1540:"_headTitlesType1540_82svp_1045",headTitlesType1460:"_headTitlesType1460_82svp_1073",headTitlesType1680:"_headTitlesType1680_82svp_1101",headTitlesType1350:"_headTitlesType1350_82svp_1127",positionType1:"_positionType1_82svp_1157",positionType1400:"_positionType1400_82svp_1175",teamType1:"_teamType1_82svp_1195",teamType1400:"_teamType1400_82svp_1213",frecuenciaType1:"_frecuenciaType1_82svp_1233",frecuenciaType1540:"_frecuenciaType1540_82svp_1249",containerLeftTitlesType1:"_containerLeftTitlesType1_82svp_1267",frecuenciaWrapperType1:"_frecuenciaWrapperType1_82svp_1283",frecuenciaWrapperType1680:"_frecuenciaWrapperType1680_82svp_1301",promedioPartidoType1:"_promedioPartidoType1_82svp_1317",promedioEstePartidoType1:"_promedioEstePartidoType1_82svp_1325",promedioEstePartidoType1960:"_promedioEstePartidoType1960_82svp_1341",promedioEstePartidoWrapperType1:"_promedioEstePartidoWrapperType1_82svp_1349",promedioEstePartidoWrapperType11200:"_promedioEstePartidoWrapperType11200_82svp_1365",promedioEstePartidoWrapperType11090:"_promedioEstePartidoWrapperType11090_82svp_1383",promedioEstePartidoWrapperType11086:"_promedioEstePartidoWrapperType11086_82svp_1403",promedioPartidosType1:"_promedioPartidosType1_82svp_1421",promedioPartidosWrapperType1:"_promedioPartidosWrapperType1_82svp_1435",promedioPartidosWrapperType1960:"_promedioPartidosWrapperType1960_82svp_1451",promedioPartidosWrapperType11086:"_promedioPartidosWrapperType11086_82svp_1457",partidosJugadosType1:"_partidosJugadosType1_82svp_1463",partidosJugadosType1960:"_partidosJugadosType1960_82svp_1475",partidosJugadosWrapperType1:"_partidosJugadosWrapperType1_82svp_1489",partidosJugadosWrapperType11200:"_partidosJugadosWrapperType11200_82svp_1505",partidosJugadosWrapperType11180:"_partidosJugadosWrapperType11180_82svp_1521",partidosJugadosWrapperType11170:"_partidosJugadosWrapperType11170_82svp_1537",partidosJugadosWrapperType11140:"_partidosJugadosWrapperType11140_82svp_1553",partidosJugadosWrapperType11086:"_partidosJugadosWrapperType11086_82svp_1569",partidosJugadosWrapperType1960:"_partidosJugadosWrapperType1960_82svp_1585",partidosJugadosWrapperType1880:"_partidosJugadosWrapperType1880_82svp_1601",partidosJugadosWrapperType1860:"_partidosJugadosWrapperType1860_82svp_1617",partidosJugadosWrapperType1830:"_partidosJugadosWrapperType1830_82svp_1633",partidosJugadosWrapperType1790:"_partidosJugadosWrapperType1790_82svp_1649",partidosJugadosWrapperType1930:"_partidosJugadosWrapperType1930_82svp_1665",partidosJugadosWrapperType1770:"_partidosJugadosWrapperType1770_82svp_1681",block01TitlesType1:"_block01TitlesType1_82svp_1687",monType1:"_monType1_82svp_1703",monType1960:"_monType1960_82svp_1721",monType1680:"_monType1680_82svp_1741",videosType1:"_videosType1_82svp_1747",videosType1680:"_videosType1680_82svp_1767",videosType1600:"_videosType1600_82svp_1785",videosType1540:"_videosType1540_82svp_1803",videosType1420:"_videosType1420_82svp_1821",videosType1400:"_videosType1400_82svp_1839",containesOptionsTitlesType1:"_containesOptionsTitlesType1_82svp_1863",containesOptionsTitlesType1768:"_containesOptionsTitlesType1768_82svp_1879",containesOptionsTitlesType1730:"_containesOptionsTitlesType1730_82svp_1893",containesOptionsTitlesType1690:"_containesOptionsTitlesType1690_82svp_1907",icnIconType1:"_icnIconType1_82svp_1921",icnIconType1420:"_icnIconType1420_82svp_1933",icnIconType1400:"_icnIconType1400_82svp_1947",block02TitlesType1:"_block02TitlesType1_82svp_1955",block02TitlesType1680:"_block02TitlesType1680_82svp_1969",block02TitlesType1350:"_block02TitlesType1350_82svp_1983",containerRightTitlesType1:"_containerRightTitlesType1_82svp_1997",containerRightTitlesType1420:"_containerRightTitlesType1420_82svp_2015"}}]]),Hm={props:{type:{type:Number,default:0},value:{type:Boolean,default:!1},textValue:String,icon:{type:String,default:"https://golstatsimages.blob.core.windows.net/images-library/arrow-btn.png"},iconPosition:{type:String,default:"left"},iconSize:String,mini:{type:Boolean,default:!1},fontColor:{type:String,default:"#FFFFFF"},textDecoration:String,fontSize:{type:String,default:"16px"},fontSizeStat:{type:String,default:"16px"},fontStyle:String,fontFamily:{type:String,default:"Poppins-Regular"},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},buttonMaxWidth:{type:String,default:"auto"},borderRadius:{type:String,default:"0px"},borderType:{type:String,default:"solid"},borderWidth:{type:Number,default:0},borderWidthBtn:{type:String,default:"2px"},borderColor:String,backgroundColor:{type:String,default:"none"},activeBackgroundColor:{type:String,default:"#000000"},activeBorderWidth:{type:Number,default:2},activeBorderType:{type:String,default:"solid"},activeBorderColor:{type:String,default:"#cbee6b"},activeColorText:{type:String,default:"#FFFFFF"},cursorType:{type:String,default:"default"},typeOnOff:{type:Boolean,default:!1},textCategory:String,textStat:String,marginLeftStat:{type:String,default:"15%"}},watch:{value:{deep:!0,immediate:!0,handler(e){this.status=e}}},data(){return{status:!1}},computed:{customStyle(){return{height:this.height,width:this.width,maxWidth:this.buttonMaxWidth,backgroundColor:this.backgroundColor,borderRadius:this.borderRadius,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`,color:this.fontColor,textDecoration:this.textDecoration,cursor:this.cursorType,fontSize:this.fontSize,fontStyle:this.fontStyle,fontFamily:this.fontFamily+" !important"}},customActive(){return{backgroundColor:this.activeBackgroundColor,color:this.activeColorText,border:`${this.activeBorderType} ${this.activeBorderWidth}px ${this.activeBorderColor}`}}},methods:{btnClick(e){this.$emit("click",e),this.typeOnOff&&(this.status=!this.status,this.$emit("status",this.status))}}},Um=()=>{t.useCssVars(e=>({"142f4a30":e.height,"425d470b":e.borderWidthBtn,e390e3e2:e.borderType,"37c60b2e":e.borderColor,"4c69ebb2":e.borderRadius,"1e10a0c6":e.width,64535028:e.backgroundColor,"26a98839":e.cursorType,"0ff73bb9":e.fontSize,"22158e0e":e.fontStyle,"4f1cadc8":e.fontFamily,"38d08a5c":e.marginLeftStat,f38f9ca6:e.fontSizeStat}))},Zm=Hm.setup;Hm.setup=Zm?(e,t)=>(Um(),Zm(e,t)):Um;const $m=["src"],Xm={key:1,class:"text"},Ym=["src"],Km={class:"stats"},Qm=(e=>(t.pushScopeId("data-v-2d2e96b3"),e=e(),t.popScopeId(),e))(()=>t.createElementVNode("img",{class:"iconstats",src:"https://golstatsimages.blob.core.windows.net/todoelfut/playdes.png"},null,-1)),ep={class:"numstats"},tp={class:"leyend"},ap=B(Hm,[["render",(e,a,s,i,o,n)=>(t.openBlock(),t.createElementBlock("div",null,[0==s.type?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["button",o.status&&s.typeOnOff&&"button-active"]),style:t.normalizeStyle([n.customStyle,o.status&&s.typeOnOff&&n.customActive]),onClick:a[0]||(a[0]=(...e)=>n.btnClick&&n.btnClick(...e))},[s.icon&&"left"===s.iconPosition.toLowerCase()?(t.openBlock(),t.createElementBlock("img",{key:0,class:t.normalizeClass(s.mini?"icon-txt":"icon"),style:t.normalizeStyle({width:s.iconSize}),src:s.icon},null,14,$m)):t.createCommentVNode("",!0),s.textValue?(t.openBlock(),t.createElementBlock("div",Xm,t.toDisplayString(s.textValue),1)):t.createCommentVNode("",!0),s.icon&&"right"===s.iconPosition.toLowerCase()?(t.openBlock(),t.createElementBlock("img",{key:2,class:"icon",style:t.normalizeStyle({width:s.iconSize}),src:s.icon},null,12,Ym)):t.createCommentVNode("",!0)],6)):t.createCommentVNode("",!0),1==s.type?(t.openBlock(),t.createElementBlock("div",{key:1,class:"button-target",onClick:a[1]||(a[1]=(...e)=>n.btnClick&&n.btnClick(...e))},[t.createElementVNode("div",Km,[Qm,t.createElementVNode("div",ep,t.toDisplayString(s.textStat),1)]),t.createElementVNode("div",tp,t.toDisplayString(s.textCategory),1)])):t.createCommentVNode("",!0)]))],["__scopeId","data-v-2d2e96b3"]]),sp={components:{GSCButton:ap},computed:{manchesterUnitedType1Class(){const e=this.elementSize.width;return e>320?e>460?this.$style.manchesterUnitedType1:this.$style.manchesterUnitedType1460:this.$style.manchesterUnitedType1320},containerRightType1Class(){const e=this.elementSize.width;return e>320?e>420?this.$style.containerRightType1Games:this.$style.containerRightType1420Games:this.$style.containerRightType1320Games},teamNameWrapperType1Class(){const e=this.elementSize.width;return e>960?e>1086?this.$style.teamNameWrapperType1:this.$style.teamNameWrapperType11086:this.$style.teamNameWrapperType1960},ageWrapperType1Class(){const e=this.elementSize.width;return e>680?e>1086?this.$style.ageWrapperType1:this.$style.ageWrapperType11086:this.$style.ageWrapperType1680},ageType1Class(){return this.elementSize.width>960?this.$style.ageType1:this.$style.ageType1960},playedGamesWrapperType1Class(){const e=this.elementSize.width;return e>680?e>960?this.$style.playedGamesWrapperType1:this.$style.playedGamesWrapperType1960:this.$style.playedGamesWrapperType1680},playedGamesType1Class(){const e=this.elementSize.width;return e>540?e>960?e>1086?this.$style.playedGamesType1:this.$style.playedGamesType11086:this.$style.playedGamesType1960:this.$style.playedGamesType1540},playedMinutesWrapperType1Class(){return this.elementSize.width>1086?this.$style.playedMinutesWrapperType1:this.$style.playedMinutesWrapperType11086},playedMinutesType1Class(){return this.elementSize.width>680?this.$style.playedMinutesType1:this.$style.playedMinutesType1680},block02Type1Class(){const e=this.elementSize.width;return e>320?e>350?e>680?this.$style.block02Type1Games:this.$style.block02Type1680Games:this.$style.block02Type1350Games:this.$style.block02Type1320Games},leagueNameWrapperType1Class(){const e=this.elementSize.width;return e>680?e>960?this.$style.leagueNameWrapperType1:this.$style.leagueNameWrapperType1960:this.$style.leagueNameWrapperType1680},leagueNameType1Class(){return this.elementSize.width>960?this.$style.leagueNameType1:this.$style.leagueNameType1960},numberOfVideosType1Class(){const e=this.elementSize.width;return e>680?e>1232?this.$style.numberOfVideosType1:this.$style.numberOfVideosType11232:this.$style.numberOfVideosType1680},containerLeftType1Class(){const e=this.elementSize.width;return e>320?e>350?e>680?this.$style.containerLeftType1:this.$style.containerLeftType1680:this.$style.containerLeftType1350:this.$style.containerLeftType1320},positionContainertype1Class(){const e=this.elementSize.width;return e>380?e>420?e>680?this.$style.positionContainertype1:this.$style.positionContainertype1680:this.$style.positionContainertype1420:this.$style.positionContainertype1380},rowTeamClass(){const e=this.elementSize.width;return e>320?e>350?e>420?e>460?this.$style.rowTeam:this.$style.rowTeam460:this.$style.rowTeam420:this.$style.rowTeam350:this.$style.rowTeam320},containerBtnVideosClass(){return this.$style.containerBtnVideosGames},numberOfVideosClass(){return this.elementSize.width>620?this.$style.numberOfVideos:this.$style.numberOfVideos620},block02Class(){const e=this.elementSize.width;return e>420?e>620?e>960?this.$style.block02Games:this.$style.block02960Games:this.$style.block02620Games:this.$style.block02420Games},imgPlayerIconClass(){const e=this.elementSize.width;return e>420?e>460?this.$style.imgPlayerIcon:this.$style.imgPlayerIcon460:this.$style.imgPlayerIcon420},manchesterUnitedClass(){const e=this.elementSize.width;return e>360?e>420?e>460?this.$style.manchesterUnitedGames:this.$style.manchesterUnited460Games:this.$style.manchesterUnited420Games:this.$style.manchesterUnited360Games},containerRightClass(){const e=this.elementSize.width;return e>420?e>960?this.$style.containerRightGames:this.$style.containerRight960Games:this.$style.containerRight420Games},playerContainerType1Class(){const e=this.elementSize.width;return e>320?e>460?this.$style.playerContainerType1Games:this.$style.playerContainerType1460Games:this.$style.playerContainerType1320Games},playerContainerClass(){const e=this.elementSize.width;return e>420?e>460?this.$style.playerContainerGames:this.$style.playerContainer460Games:this.$style.playerContainer420Games},iconFavoritesClass(){return this.elementSize.width>420?this.$style.iconFavorites:this.$style.iconFavorites420},iconFavoritesType1Class(){return this.elementSize.width>320?this.$style.iconFavoritesType1:this.$style.iconFavoritesType1320},containerLeftClass(){const e=this.elementSize.width;return e>420?e>620?this.$style.containerLeftGames:this.$style.containerLeft620Games:this.$style.containerLeft420Games},positionContainerClass(){return this.elementSize.width>620?this.$style.positionContainer:this.$style.positionContainer620},rowwPlayerClass(){const e=this.elementSize.width;return e>420?e>460?e>960?this.$style.rowwPlayerGames:this.$style.rowwPlayer960Games:this.$style.rowwPlayer460Games:this.$style.rowwPlayer420Games}},setup(){const e=t.ref("myDivRef2"),{elementSize:a}=zm(e);return{myDivRef2:e,elementSize:a}},props:{typeData:{type:Number,default:1},canPlayVideos:{type:Boolean,default:!1},teamWidget:{type:Number,default:0},type:{type:Number,default:0},typeView:{type:Number,default:0},isExpanded:{type:Boolean,default:!1},background:{type:String,default:"#172531"},height:{type:String,default:"35px"},fontColor:{type:String,default:"#F4F4F4"},fontSize:{type:String,default:"12px"},fontFamily:{type:String,default:"Poppins-Regular"},data:{type:Object,default(){}},game:{type:Object,default(){}},colorArrow:{type:String,default:"#D9D9D9"},buttonTextValue:{type:String,default:"Ver videos"},iconVideos:{type:String,default:"https://golstatsimages.blob.core.windows.net/images-library/arrow-btn.png"},iconSize:{type:String,default:"13px"},iconSizeMini:{type:String,default:"13px"},iconPosition:{type:String,default:"left"},buttonWidth:{type:String,default:"93px"},buttonWidthMini:{type:String,default:"24px"},buttonHeightMini:{type:String,default:"24px"},buttonHeight:{type:String,default:"30px"},buttonRadius:{type:String,default:"30px"},buttonBorderWidth:{type:Number,default:1},buttonBackground:{type:String,default:"#ffffff1a"},buttonfontFamily:{type:String,default:"Poppins-Regular"},buttonBorderColor:{type:String,default:"#55636e"},buttonFontSize:{type:String,default:"10px"}},data:()=>({expand:!1}),methods:{clickExpand(e){this.$emit("expand",{expand:!this.isExpanded,id:e})},emitEventMedia(e){this.$emit("mediadata",e)}}},ip=()=>{t.useCssVars(e=>({"20b41037":e.height,"39c46784":e.background,"0e629c00":e.fontSize,"85dc1978":e.fontColor,"2cf3d8ba":e.fontFamily}))},op=sp.setup;sp.setup=op?(e,t)=>(ip(),op(e,t)):ip;const np={ref:"myDivRef2",style:{"border-left":"rgba(13,29,41,0.7) 1px solid","border-right":"rgba(13,29,41,0.7) 1px solid"}},lp=["src"],rp=["src"],dp=["src"],cp=["src"],mp=["fill"],pp=["fill"],hp=["src"],up=["src"],yp=["fill"],gp=["fill"],vp=["src"],_p=["src"],fp=["src"],bp=["src"],wp=["fill"],Sp=["fill"],Tp=B(sp,[["render",(e,a,s,i,o,n)=>{const l=t.resolveComponent("GSCButton");return t.openBlock(),t.createElementBlock("div",np,[0==s.type?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(n.rowwPlayerClass),id:"container-row-player"},[t.createElementVNode("div",{class:t.normalizeClass(n.containerLeftClass),id:"container-left"},[t.createElementVNode("div",{class:t.normalizeClass(n.positionContainerClass)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.numberPosition)},t.toDisplayString(s.data.position),3)],2),t.createElementVNode("div",{class:t.normalizeClass(n.playerContainerClass)},[t.createElementVNode("img",{class:t.normalizeClass(n.imgPlayerIconClass),src:s.data.player_photo},null,10,lp),t.createElementVNode("div",{class:t.normalizeClass(n.manchesterUnitedClass)},[i.elementSize.width>420?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(s.data.player_name),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(s.data.player_short),1)],64))],2),i.elementSize.width>420?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("img",{key:0,class:t.normalizeClass(e.$style.chivasIcon),alt:"",src:s.data.team_logo},null,10,rp))],2)],2),t.createElementVNode("div",{class:t.normalizeClass(n.containerRightClass),id:"container-right"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.block01)},[i.elementSize.width>420?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.nameTeamGames)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgTeamIcon),alt:"",src:s.data.team_logo},null,10,dp),i.elementSize.width>540?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.teamName)},t.toDisplayString(s.data.team_abrev),3)):t.createCommentVNode("",!0)],2)):t.createCommentVNode("",!0),i.elementSize.width>730?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.position)},[t.createElementVNode("span",{class:t.normalizeClass(e.$style.dfC)},t.toDisplayString(s.data.player_position),3)],2)):t.createCommentVNode("",!0),i.elementSize.width>960?(t.openBlock(),t.createElementBlock("div",{key:2,class:t.normalizeClass(e.$style.age)},t.toDisplayString(s.data.player_age),3)):t.createCommentVNode("",!0),i.elementSize.width>960?(t.openBlock(),t.createElementBlock("div",{key:3,class:t.normalizeClass(e.$style.country)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.manchesterUnitedIcon),alt:"",src:s.data.player_country_flag},null,10,cp)],2)):t.createCommentVNode("",!0),i.elementSize.width>540?(t.openBlock(),t.createElementBlock("div",{key:4,class:t.normalizeClass(e.$style.playedGames)},t.toDisplayString(s.data.player_games),3)):t.createCommentVNode("",!0),i.elementSize.width>635?(t.openBlock(),t.createElementBlock("div",{key:5,class:t.normalizeClass(e.$style.playedMinutes)},t.toDisplayString(s.data.player_min),3)):t.createCommentVNode("",!0)],2),t.createElementVNode("div",{class:t.normalizeClass(n.block02Class)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.containesOptions)},[i.elementSize.width>960?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.leagueName)},t.toDisplayString(s.data.total),3)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(n.containerBtnVideosClass)},[s.canPlayVideos||s.game.awayTeam.team_id==s.teamWidget&&1!=s.typeData?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[i.elementSize.width>635?(t.openBlock(),t.createBlock(l,{key:0,icon:s.iconVideos,"icon-size":s.iconSize,"icon-position":s.iconPosition,width:s.buttonWidth,height:s.buttonHeight,"border-radius":s.buttonRadius,"border-width":s.buttonBorderWidth,"background-color":s.buttonBackground,"font-family":s.buttonfontFamily,"border-color":s.buttonBorderColor,"text-value":s.buttonTextValue,"font-size":s.buttonFontSize,onClick:a[0]||(a[0]=e=>n.emitEventMedia(s.data))},null,8,["icon","icon-size","icon-position","width","height","border-radius","border-width","background-color","font-family","border-color","text-value","font-size"])):(t.openBlock(),t.createBlock(l,{key:1,mini:!0,icon:s.iconVideos,"icon-size":s.iconSizeMini,"icon-position":s.iconPosition,width:s.buttonWidthMini,height:s.buttonHeightMini,"border-radius":s.buttonRadius,"border-width":s.buttonBorderWidth,"background-color":s.buttonBackground,"font-family":s.buttonfontFamily,"border-color":s.buttonBorderColor,"font-size":s.buttonFontSize,onClick:a[1]||(a[1]=e=>n.emitEventMedia(s.data))},null,8,["icon","icon-size","icon-position","width","height","border-radius","border-width","background-color","font-family","border-color","font-size"]))],64)):t.createCommentVNode("",!0),i.elementSize.width>635?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(n.numberOfVideosClass)},t.toDisplayString(s.data.total),3))],2)],2),(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass([e.$style.arrowExpandIcon,s.isExpanded?e.$style.rotate:""]),width:"12",height:"8",viewBox:"0 0 12 8",fill:s.colorArrow,xmlns:"http://www.w3.org/2000/svg",onClick:a[2]||(a[2]=e=>n.clickExpand(s.data.id))},[t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M6 4.93631L10.2929 1.23496C10.6834 0.898244 11.3166 0.898244 11.7071 1.23496C12.0976 1.57167 12.0976 2.11759 11.7071 2.4543L6.70711 6.76532C6.31658 7.10203 5.68342 7.10203 5.29289 6.76532L0.292893 2.4543C-0.0976311 2.11759 -0.0976311 1.57167 0.292893 1.23496C0.683418 0.898244 1.31658 0.898244 1.70711 1.23496L6 4.93631Z",fill:s.colorArrow},null,8,pp)],10,mp))],2)],2)],2)):t.createCommentVNode("",!0),1==s.type?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(n.rowTeamClass),style:t.normalizeStyle(i.elementSize.width>540?"border-bottom: 1px solid rgba(255, 255, 255, 0.1)":""),id:"container-row-player"},[t.createElementVNode("div",{class:t.normalizeClass(n.containerLeftType1Class),id:"container-left"},[t.createElementVNode("div",{class:t.normalizeClass(n.positionContainertype1Class)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.numberPositionType1)},t.toDisplayString(s.data.position),3),t.createElementVNode("div",{class:t.normalizeClass(n.iconFavoritesType1Class)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.shapeIconType1),alt:"",src:s.data.team_logo},null,10,hp)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(n.playerContainerType1Class)},[t.createElementVNode("div",{class:t.normalizeClass(0==s.typeView?e.$style.tijuanaWrapperType1:e.$style.tijuanaWrapperType1NoBg)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.tijuanaIconType1),alt:"",src:s.data.team_logo},null,10,up)],2),t.createElementVNode("div",{class:t.normalizeClass(n.manchesterUnitedType1Class)},t.toDisplayString(s.data.team_abrev),3)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(n.containerRightType1Class),id:"container-right"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.block01TitlesType1)},[i.elementSize.width>540?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(n.teamNameWrapperType1Class)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamNameType1)},[t.createTextVNode(" C/"+t.toDisplayString(s.data.frequency)+" ",1),2!=s.data.category?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("min")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("segs")],64))],2)],2)):t.createCommentVNode("",!0),i.elementSize.width>960?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(n.ageWrapperType1Class)},[t.createElementVNode("div",{class:t.normalizeClass(n.ageType1Class)},t.toDisplayString(s.data.promthistournament),3)],2)):t.createCommentVNode("",!0),i.elementSize.width>1086?(t.openBlock(),t.createElementBlock("div",{key:2,class:t.normalizeClass(n.playedGamesWrapperType1Class)},[t.createElementVNode("div",{class:t.normalizeClass(n.playedGamesType1Class)},t.toDisplayString(s.data.promlasttournament),3)],2)):t.createCommentVNode("",!0),i.elementSize.width>770?(t.openBlock(),t.createElementBlock("div",{key:3,class:t.normalizeClass(n.playedMinutesWrapperType1Class)},[t.createElementVNode("div",{class:t.normalizeClass(n.playedMinutesType1Class)},t.toDisplayString(s.data.team_games),3)],2)):t.createCommentVNode("",!0)],2),t.createElementVNode("div",{class:t.normalizeClass(n.block02Type1Class)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.containesOptionsType1Games)},[t.createElementVNode("div",{class:t.normalizeClass(n.leagueNameWrapperType1Class)},[t.createElementVNode("div",{class:t.normalizeClass(n.leagueNameType1Class)},t.toDisplayString(s.data.total),3)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.containerBtnVideosType1Games)},[i.elementSize.width>679&&s.canPlayVideos?(t.openBlock(),t.createBlock(l,{key:0,icon:s.iconVideos,"icon-size":s.iconSize,"icon-position":s.iconPosition,width:s.buttonWidth,height:s.buttonHeight,"border-radius":s.buttonRadius,"border-width":s.buttonBorderWidth,"background-color":s.buttonBackground,"font-family":s.buttonfontFamily,"border-color":s.buttonBorderColor,"text-value":s.buttonTextValue,"font-size":s.buttonFontSize,onClick:a[3]||(a[3]=e=>n.emitEventMedia(s.data))},null,8,["icon","icon-size","icon-position","width","height","border-radius","border-width","background-color","font-family","border-color","text-value","font-size"])):(t.openBlock(),t.createBlock(l,{key:1,mini:!0,icon:s.iconVideos,"icon-size":s.iconSizeMini,"icon-position":s.iconPosition,width:s.buttonWidthMini,height:s.buttonHeightMini,"border-radius":s.buttonRadius,"border-width":s.buttonBorderWidth,"background-color":s.buttonBackground,"font-family":s.buttonfontFamily,"border-color":s.buttonBorderColor,"font-size":s.buttonFontSize,onClick:a[4]||(a[4]=e=>n.emitEventMedia(s.data))},null,8,["icon","icon-size","icon-position","width","height","border-radius","border-width","background-color","font-family","border-color","font-size"])),t.createElementVNode("div",{class:t.normalizeClass(n.numberOfVideosType1Class)},t.toDisplayString(s.data.total),3)],2)],2),(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass([e.$style.arrowExpandIcon,s.isExpanded?e.$style.rotate:""]),width:"12",height:"8",viewBox:"0 0 12 8",fill:s.colorArrow,xmlns:"http://www.w3.org/2000/svg",onClick:a[5]||(a[5]=e=>n.clickExpand(s.data.id))},[t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M6 4.93631L10.2929 1.23496C10.6834 0.898244 11.3166 0.898244 11.7071 1.23496C12.0976 1.57167 12.0976 2.11759 11.7071 2.4543L6.70711 6.76532C6.31658 7.10203 5.68342 7.10203 5.29289 6.76532L0.292893 2.4543C-0.0976311 2.11759 -0.0976311 1.57167 0.292893 1.23496C0.683418 0.898244 1.31658 0.898244 1.70711 1.23496L6 4.93631Z",fill:s.colorArrow},null,8,gp)],10,yp))],2)],2)],6)):t.createCommentVNode("",!0),2==s.type?(t.openBlock(),t.createElementBlock("div",{key:2,class:t.normalizeClass(n.rowwPlayerClass),id:"container-row-player"},[t.createElementVNode("div",{class:t.normalizeClass(n.containerLeftClass),id:"container-left"},[t.createElementVNode("div",{class:t.normalizeClass(n.positionContainerClass)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.numberPosition)},t.toDisplayString(s.data.position),3)],2),t.createElementVNode("div",{class:t.normalizeClass(n.playerContainerClass)},[t.createElementVNode("img",{class:t.normalizeClass(n.imgPlayerIconClass),src:s.data.player_photo},null,10,vp),t.createElementVNode("div",{class:t.normalizeClass(n.manchesterUnitedClass)},t.toDisplayString(s.data.player_name),3),i.elementSize.width>420?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("img",{key:0,class:t.normalizeClass(e.$style.chivasIcon),alt:"",src:s.data.team_logo},null,10,_p))],2)],2),t.createElementVNode("div",{class:t.normalizeClass(n.containerRightClass),id:"container-right"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.block01)},[i.elementSize.width>420?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.nameTeamGames)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgTeamIcon),alt:"",src:s.data.team_logo},null,10,fp),i.elementSize.width>540?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.teamName)},t.toDisplayString(s.data.team_abrev),3)):t.createCommentVNode("",!0)],2)):t.createCommentVNode("",!0),i.elementSize.width>730?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.position)},[t.createElementVNode("span",{class:t.normalizeClass(e.$style.dfC)},t.toDisplayString(s.data.player_position),3)],2)):t.createCommentVNode("",!0),i.elementSize.width>960?(t.openBlock(),t.createElementBlock("div",{key:2,class:t.normalizeClass(e.$style.age)},t.toDisplayString(s.data.player_age),3)):t.createCommentVNode("",!0),i.elementSize.width>960?(t.openBlock(),t.createElementBlock("div",{key:3,class:t.normalizeClass(e.$style.country)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.manchesterUnitedIcon),alt:"",src:s.data.player_country_flag},null,10,bp)],2)):t.createCommentVNode("",!0),i.elementSize.width>540?(t.openBlock(),t.createElementBlock("div",{key:4,class:t.normalizeClass(e.$style.playedGames)},t.toDisplayString(s.data.player_games),3)):t.createCommentVNode("",!0),i.elementSize.width>635?(t.openBlock(),t.createElementBlock("div",{key:5,class:t.normalizeClass(e.$style.playedMinutes)},t.toDisplayString(s.data.player_min),3)):t.createCommentVNode("",!0),i.elementSize.width>635?(t.openBlock(),t.createElementBlock("div",{key:6,class:t.normalizeClass(e.$style.playedMinutes)},t.toDisplayString(s.data.league_name),3)):t.createCommentVNode("",!0)],2),t.createElementVNode("div",{class:t.normalizeClass(n.block02Class)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.containesOptions)},[t.createElementVNode("div",{class:t.normalizeClass(n.containerBtnVideosClass)},[s.canPlayVideos?(t.openBlock(),t.createBlock(l,{key:0,icon:s.iconVideos,"icon-size":s.iconSize,"icon-position":s.iconPosition,width:i.elementSize.width>680?s.buttonWidth:"83px",height:s.buttonHeight,"border-radius":s.buttonRadius,"border-width":s.buttonBorderWidth,"background-color":s.buttonBackground,"font-family":s.buttonfontFamily,"border-color":s.buttonBorderColor,"text-value":s.buttonTextValue,"font-size":s.buttonFontSize,onClick:a[6]||(a[6]=e=>n.emitEventMedia(s.data)),style:t.normalizeStyle(i.elementSize.width>680?"":i.elementSize.width>420?"margin-right: 0px;":"margin-right: 35px;")},null,8,["icon","icon-size","icon-position","width","height","border-radius","border-width","background-color","font-family","border-color","text-value","font-size","style"])):t.createCommentVNode("",!0)],2)],2),(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass([e.$style.arrowExpandIcon,s.isExpanded?e.$style.rotate:""]),width:"12",height:"8",viewBox:"0 0 12 8",fill:s.colorArrow,xmlns:"http://www.w3.org/2000/svg",onClick:a[7]||(a[7]=e=>n.clickExpand(s.data.id))},[t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M6 4.93631L10.2929 1.23496C10.6834 0.898244 11.3166 0.898244 11.7071 1.23496C12.0976 1.57167 12.0976 2.11759 11.7071 2.4543L6.70711 6.76532C6.31658 7.10203 5.68342 7.10203 5.29289 6.76532L0.292893 2.4543C-0.0976311 2.11759 -0.0976311 1.57167 0.292893 1.23496C0.683418 0.898244 1.31658 0.898244 1.70711 1.23496L6 4.93631Z",fill:s.colorArrow},null,8,Sp)],10,wp))],2)],2)],2)):t.createCommentVNode("",!0)],512)}],["__cssModules",{$style:{rotate:"_rotate_1cvqy_5",positionContainer:"_positionContainer_1cvqy_99",positionContainer620:"_positionContainer620_1cvqy_113",rowwPlayerGames:"_rowwPlayerGames_1cvqy_127",rowwPlayer960Games:"_rowwPlayer960Games_1cvqy_159",rowwPlayer420Games:"_rowwPlayer420Games_1cvqy_189",rowwPlayer460Games:"_rowwPlayer460Games_1cvqy_221",containerLeftGames:"_containerLeftGames_1cvqy_255",containerLeft420Games:"_containerLeft420Games_1cvqy_271",containerLeft620Games:"_containerLeft620Games_1cvqy_287",iconFavoritesType1:"_iconFavoritesType1_1cvqy_301",iconFavoritesType1320:"_iconFavoritesType1320_1cvqy_317",iconFavorites:"_iconFavorites_1cvqy_301",iconFavorites420:"_iconFavorites420_1cvqy_349",playerContainerGames:"_playerContainerGames_1cvqy_365",playerContainer420Games:"_playerContainer420Games_1cvqy_389",playerContainer460Games:"_playerContainer460Games_1cvqy_413",playerContainerType1Games:"_playerContainerType1Games_1cvqy_437",playerContainerType1320Games:"_playerContainerType1320Games_1cvqy_457",playerContainerType1460Games:"_playerContainerType1460Games_1cvqy_477",imgPlayerIcon:"_imgPlayerIcon_1cvqy_497",imgPlayerIcon460:"_imgPlayerIcon460_1cvqy_517",imgPlayerIcon420:"_imgPlayerIcon420_1cvqy_537",manchesterUnitedGames:"_manchesterUnitedGames_1cvqy_557",manchesterUnited360Games:"_manchesterUnited360Games_1cvqy_579",manchesterUnited420Games:"_manchesterUnited420Games_1cvqy_601",manchesterUnited460Games:"_manchesterUnited460Games_1cvqy_623",containerRightGames:"_containerRightGames_1cvqy_645",containerRight960Games:"_containerRight960Games_1cvqy_663",containerRight420Games:"_containerRight420Games_1cvqy_683",numberOfVideos:"_numberOfVideos_1cvqy_705",numberOfVideos620:"_numberOfVideos620_1cvqy_717",block02Games:"_block02Games_1cvqy_729",block02960Games:"_block02960Games_1cvqy_749",block02620Games:"_block02620Games_1cvqy_767",block02420Games:"_block02420Games_1cvqy_781",verVideos:"_verVideos_1cvqy_797",verVideos620:"_verVideos620_1cvqy_809",numberPosition:"_numberPosition_1cvqy_815",shapeIcon:"_shapeIcon_1cvqy_827",chivasIcon:"_chivasIcon_1cvqy_837",imgTeamIcon:"_imgTeamIcon_1cvqy_859",teamName:"_teamName_1cvqy_869",nameTeamGames:"_nameTeamGames_1cvqy_881",dfC:"_dfC_1cvqy_899",position:"_position_1cvqy_99",age:"_age_1cvqy_919",manchesterUnitedIcon:"_manchesterUnitedIcon_1cvqy_935",country:"_country_1cvqy_949",playedGames:"_playedGames_1cvqy_963",playedMinutes:"_playedMinutes_1cvqy_977",block01:"_block01_1cvqy_991",leagueName:"_leagueName_1cvqy_1005",roleCharacterIcon:"_roleCharacterIcon_1cvqy_1017",btnVideosGames:"_btnVideosGames_1cvqy_1033",containerBtnVideosGames:"_containerBtnVideosGames_1cvqy_1063",containerBtnVideos620Games:"_containerBtnVideos620Games_1cvqy_1083",containesOptions:"_containesOptions_1cvqy_1101",arrowExpandIcon:"_arrowExpandIcon_1cvqy_1115",rowTeam:"_rowTeam_1cvqy_1133",rowTeam420:"_rowTeam420_1cvqy_1169",rowTeam320:"_rowTeam320_1cvqy_1205",rowTeam460:"_rowTeam460_1cvqy_1243",rowTeam350:"_rowTeam350_1cvqy_1281",containerLeftType1:"_containerLeftType1_1cvqy_1317",containerLeftType1680:"_containerLeftType1680_1cvqy_1329",containerLeftType1320:"_containerLeftType1320_1cvqy_1343",containerLeftType1350:"_containerLeftType1350_1cvqy_1359",positionContainertype1:"_positionContainertype1_1cvqy_1373",positionContainertype1380:"_positionContainertype1380_1cvqy_1389",positionContainertype1680:"_positionContainertype1680_1cvqy_1405",positionContainertype1420:"_positionContainertype1420_1cvqy_1421",manchesterUnitedType1:"_manchesterUnitedType1_1cvqy_1437",manchesterUnitedType1460:"_manchesterUnitedType1460_1cvqy_1449",manchesterUnitedType1320:"_manchesterUnitedType1320_1cvqy_1463",containerRightType1Games:"_containerRightType1Games_1cvqy_1477",containerRightType1420Games:"_containerRightType1420Games_1cvqy_1499",containerRightType1320Games:"_containerRightType1320Games_1cvqy_1521",teamNameWrapperType1:"_teamNameWrapperType1_1cvqy_1543",teamNameWrapperType1960:"_teamNameWrapperType1960_1cvqy_1557",teamNameWrapperType11086:"_teamNameWrapperType11086_1cvqy_1571",ageWrapperType1:"_ageWrapperType1_1cvqy_1585",ageWrapperType1680:"_ageWrapperType1680_1cvqy_1599",ageWrapperType11086:"_ageWrapperType11086_1cvqy_1615",ageType1:"_ageType1_1cvqy_1631",ageType1960:"_ageType1960_1cvqy_1647",playedGamesWrapperType1:"_playedGamesWrapperType1_1cvqy_1653",playedGamesWrapperType1680:"_playedGamesWrapperType1680_1cvqy_1667",playedGamesWrapperType1960:"_playedGamesWrapperType1960_1cvqy_1673",playedGamesType1:"_playedGamesType1_1cvqy_1679",playedGamesType1540:"_playedGamesType1540_1cvqy_1693",playedGamesType1960:"_playedGamesType1960_1cvqy_1701",playedGamesType11086:"_playedGamesType11086_1cvqy_1707",playedMinutesWrapperType1:"_playedMinutesWrapperType1_1cvqy_1713",playedMinutesWrapperType11086:"_playedMinutesWrapperType11086_1cvqy_1727",playedMinutesType1:"_playedMinutesType1_1cvqy_1741",playedMinutesType1680:"_playedMinutesType1680_1cvqy_1755",block02Type1Games:"_block02Type1Games_1cvqy_1761",block02Type1680Games:"_block02Type1680Games_1cvqy_1777",block02Type1320Games:"_block02Type1320Games_1cvqy_1793",block02Type1350Games:"_block02Type1350Games_1cvqy_1811",leagueNameWrapperType1:"_leagueNameWrapperType1_1cvqy_1827",leagueNameWrapperType1680:"_leagueNameWrapperType1680_1cvqy_1843",leagueNameWrapperType1960:"_leagueNameWrapperType1960_1cvqy_1849",leagueNameType1:"_leagueNameType1_1cvqy_1865",leagueNameType1960:"_leagueNameType1960_1cvqy_1885",numberOfVideosType1:"_numberOfVideosType1_1cvqy_1905",numberOfVideosType1680:"_numberOfVideosType1680_1cvqy_1919",numberOfVideosType11232:"_numberOfVideosType11232_1cvqy_1933",vectorIconType1:"_vectorIconType1_1cvqy_1947",block01TitlesType1:"_block01TitlesType1_1cvqy_1981",numberPositionType1:"_numberPositionType1_1cvqy_1995",shapeIconType1:"_shapeIconType1_1cvqy_2007",tijuanaIconType1:"_tijuanaIconType1_1cvqy_2019",tijuanaWrapperType1:"_tijuanaWrapperType1_1cvqy_2031",tijuanaWrapperType1NoBg:"_tijuanaWrapperType1NoBg_1cvqy_2053",teamNameType1:"_teamNameType1_1cvqy_2069",roleCharacterIconType1:"_roleCharacterIconType1_1cvqy_2083",verVideosType1:"_verVideosType1_1cvqy_2097",btnVideosType1Games:"_btnVideosType1Games_1cvqy_2109",containerBtnVideosType1Games:"_containerBtnVideosType1Games_1cvqy_2139",containesOptionsType1Games:"_containesOptionsType1Games_1cvqy_2161",arrowExpandIconType1:"_arrowExpandIconType1_1cvqy_2177",templateTablaProductividadType1:"_templateTablaProductividadType1_1cvqy_2189",verVideosType11232:"_verVideosType11232_1cvqy_2213",templateTablaProductividadType1320:"_templateTablaProductividadType1320_1cvqy_2221",verVideosType1680:"_verVideosType1680_1cvqy_2229"}}]]),kp={components:{GSCButton:ap},props:{typeData:{type:Number,default:1},teamWidget:{type:Number,default:0},game:{type:Object,default(){}},type:{type:Number,default:0},isExpanded:{type:Boolean,default:!1},canPlayVideos:{type:Boolean,default:!1},categoryName:{type:String,default:""},categoryId:{type:String,default:""},data:{type:Object,default(){}},backgroundColor:{type:String,default:"#0d1d29"},backgroundColorHeader:{type:String,default:"#183143"},fontColorName:{type:String,default:"#F4F4F4"},fontSizeName:{type:String,default:"14px"},fontFamilyName:{type:String,default:"Poppins-Regular"},fontColorTopNum:{type:String,default:"#FFFFFF"},fontSizeTopNum:{type:String,default:"96px"},fontFamilyTopNum:{type:String,default:"Oswald-Bold"},fontColorCategory:{type:String,default:"#FFFFFF"},fontSizeCategory:{type:String,default:"12px"},fontFamilyCategory:{type:String,default:"Poppins-Regular"},opacityColorTopNum:{type:Number,default:.09},borderColorCategory:{type:String,default:"#cbee6b"},iconVideos:{type:String,default:"https://golstatsimages.blob.core.windows.net/images-library/arrow-btn.png"},iconSize:{type:String,default:"18px"},iconPosition:{type:String,default:"left"},colorArrow:{type:String,default:"#D9D9D9"},buttonWidth:{type:String,default:"fit-content"},buttonMaxWidth:{type:String,default:"180px"},buttonHeight:{type:String,default:"24px"},buttonRadius:{type:String,default:"30px"},buttonBorderWidth:{type:Number,default:1},buttonBackground:{type:String,default:"#ffffff1a"},buttonfontFamily:{type:String,default:"Poppins-Regular"},buttonBorderColor:{type:String,default:"#cbee6b"},buttonFontSize:{type:String,default:"12px"}},data:()=>({expand:!1}),methods:{viewProfile(e){this.$emit("play",e)},clickMore(e){this.$emit("more",e)},clickExpand(e){this.$emit("expand",{expand:!this.isExpanded,id:e})},clickFav(e){this.$emit("fav",e)},clickEventMedia(e){this.$emit("mediadata",e)}}},xp=()=>{t.useCssVars(e=>({"5b159b56":e.fontSizeTopNum,ef81ba90:e.fontFamilyTopNum,"40d5b2de":e.fontColorTopNum,"55ca4106":e.opacityColorTopNum,"488c59aa":e.fontColorName,"7f32ad12":e.fontFamilyName,"081c0022":e.fontSizeName,b1fb7024:e.backgroundColorHeader,"9af157f6":e.fontFamilyCategory,"4777f062":e.fontSizeCategory,e72874c4:e.fontColorCategory,"2ceb71e1":e.borderColorCategory}))},Cp=kp.setup;kp.setup=Cp?(e,t)=>(xp(),Cp(e,t)):xp;const Ip=["src"],Pp=["src"],Gp=["src"],Fp=["src"],Ap=["fill"],Mp=["fill"],Lp=["src"],Op=["fill"],Np=["fill"],Dp=B(kp,[["render",(e,a,s,i,o,n)=>{const l=t.resolveComponent("GSCButton");return t.openBlock(),t.createElementBlock("div",null,[0==s.type?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.headerTopsGames)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.playerRow),id:"player-row"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.headerTopGame)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.playerPhotoGames),id:"container-player-photp"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.tablePositionWrapperGames)},[t.createElementVNode("b",{class:t.normalizeClass(e.$style.tablePositionGames)},t.toDisplayString(s.data.top),3)],2),t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHenrryIcon),alt:"",src:s.data.photo},null,10,Ip),t.createElementVNode("img",{class:t.normalizeClass(e.$style.americaIcon),alt:"",src:s.data.logo},null,10,Pp)],2),t.createElementVNode("main",{class:t.normalizeClass(e.$style.playerInfoGames),id:"container-player-info"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.playerNameGames)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.toniKroosGames)},t.toDisplayString(s.data.name),3)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.playerDataGames)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.containerData)},[s.canPlayVideos||s.game.awayTeam.team_id==s.teamWidget&&1!=s.typeData?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createVNode(l,{"icon-size":s.iconSize,"icon-position":s.iconPosition,width:s.buttonWidth,"button-max-width":s.buttonMaxWidth,height:s.buttonHeight,"border-radius":s.buttonRadius,"border-width":s.buttonBorderWidth,"background-color":s.buttonBackground,"font-family":s.buttonfontFamily,"border-color":s.buttonBorderColor,"text-value":s.data.total+" "+s.categoryName.toLowerCase(),"font-size":s.buttonFontSize,onClick:a[0]||(a[0]=e=>n.clickEventMedia(s.data))},null,8,["icon-size","icon-position","width","button-max-width","height","border-radius","border-width","background-color","font-family","border-color","text-value","font-size"]),t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamsAmerica)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.americaIcon1),alt:"",src:s.data.logo},null,10,Gp)],2)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createVNode(l,{icon:"","icon-size":s.iconSize,"icon-position":s.iconPosition,width:s.buttonWidth,"button-max-width":s.buttonMaxWidth,height:s.buttonHeight,"border-radius":s.buttonRadius,"border-width":s.buttonBorderWidth,"background-color":s.buttonBackground,"font-family":s.buttonfontFamily,"border-color":s.buttonBorderColor,"text-value":s.data.total+" "+s.categoryName.toLowerCase(),"font-size":s.buttonFontSize},null,8,["icon-size","icon-position","width","button-max-width","height","border-radius","border-width","background-color","font-family","border-color","text-value","font-size"]),t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamsAmerica)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.americaIcon1),alt:"",src:s.data.logo},null,10,Fp)],2)],64))],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.icnExpand),onClick:a[1]||(a[1]=e=>n.clickExpand(s.data.player_id))},[(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass([e.$style.arrowExpandIcon,s.isExpanded?e.$style.rotate:""]),width:"12",height:"8",viewBox:"0 0 12 8",fill:s.colorArrow,xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M6 4.93631L10.2929 1.23496C10.6834 0.898244 11.3166 0.898244 11.7071 1.23496C12.0976 1.57167 12.0976 2.11759 11.7071 2.4543L6.70711 6.76532C6.31658 7.10203 5.68342 7.10203 5.29289 6.76532L0.292893 2.4543C-0.0976311 2.11759 -0.0976311 1.57167 0.292893 1.23496C0.683418 0.898244 1.31658 0.898244 1.70711 1.23496L6 4.93631Z",fill:s.colorArrow},null,8,Mp)],10,Ap))],2)],2)],2)],2)],2)],2)):t.createCommentVNode("",!0),1==s.type?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.headerTopsTeams)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.containerHeader),id:"header-container"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.headerTopTeam)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamPhoto),id:"container-team"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.positionWrapper)},[t.createElementVNode("b",{class:t.normalizeClass(e.$style.position)},t.toDisplayString(s.data.top),3)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamLogo)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgNecaxaIcon),alt:"",src:s.data.logo},null,10,Lp)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.containerInfoGames)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.leftContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.name)},t.toDisplayString(s.data.name_team),3),t.createVNode(l,{"icon-size":s.iconSize,"icon-position":s.iconPosition,width:s.buttonWidth,"button-max-width":s.buttonMaxWidth,height:s.buttonHeight,"border-radius":s.buttonRadius,"border-width":s.buttonBorderWidth,"background-color":s.buttonBackground,"font-family":s.buttonfontFamily,"border-color":s.buttonBorderColor,"text-value":s.data.total+" "+s.categoryName.toLowerCase(),"font-size":s.buttonFontSize,onClick:a[2]||(a[2]=e=>n.clickEventMedia(s.data))},null,8,["icon-size","icon-position","width","button-max-width","height","border-radius","border-width","background-color","font-family","border-color","text-value","font-size"]),t.createElementVNode("div",{class:t.normalizeClass(e.$style.btnVideosOptions1Games)},[t.createVNode(l,{"icon-size":s.iconSize,"icon-position":s.iconPosition,width:s.buttonWidth,"button-max-width":s.buttonMaxWidth,height:s.buttonHeight,"border-radius":s.buttonRadius,"border-width":s.buttonBorderWidth,"background-color":s.buttonBackground,"font-family":s.buttonfontFamily,"border-color":s.buttonBorderColor,"text-value":s.data.total+" "+s.categoryName.toLowerCase(),"font-size":s.buttonFontSize,onClick:a[3]||(a[3]=e=>n.clickEventMedia(s.data))},null,8,["icon-size","icon-position","width","button-max-width","height","border-radius","border-width","background-color","font-family","border-color","text-value","font-size"]),t.createElementVNode("div",{class:t.normalizeClass(e.$style.verVideosType1)},t.toDisplayString(s.data.total),3)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.arrowExpand),onClick:a[4]||(a[4]=e=>n.clickExpand(s.data.player_id))},[(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass([e.$style.arrowExpandIcon,s.isExpanded?e.$style.rotate:""]),width:"12",height:"8",viewBox:"0 0 12 8",fill:s.colorArrow,xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M6 4.93631L10.2929 1.23496C10.6834 0.898244 11.3166 0.898244 11.7071 1.23496C12.0976 1.57167 12.0976 2.11759 11.7071 2.4543L6.70711 6.76532C6.31658 7.10203 5.68342 7.10203 5.29289 6.76532L0.292893 2.4543C-0.0976311 2.11759 -0.0976311 1.57167 0.292893 1.23496C0.683418 0.898244 1.31658 0.898244 1.70711 1.23496L6 4.93631Z",fill:s.colorArrow},null,8,Np)],10,Op))],2)],2)],2)],2)],2)):t.createCommentVNode("",!0)])}],["__cssModules",{$style:{tablePositionGames:"_tablePositionGames_1reko_91",tablePositionWrapperGames:"_tablePositionWrapperGames_1reko_123",imgHenrryIcon:"_imgHenrryIcon_1reko_141",americaIcon:"_americaIcon_1reko_157",playerPhotoGames:"_playerPhotoGames_1reko_181",toniKroosGames:"_toniKroosGames_1reko_199",shapeIcon:"_shapeIcon_1reko_221",menuiconsTeams:"_menuiconsTeams_1reko_233",component31:"_component31_1reko_251",playerNameGames:"_playerNameGames_1reko_273",icnPlayIcon:"_icnPlayIcon_1reko_289",goles:"_goles_1reko_305",americaIcon1:"_americaIcon1_1reko_319",teamsAmerica:"_teamsAmerica_1reko_347",containerData:"_containerData_1reko_359",shapeIcon1:"_shapeIcon1_1reko_375",icnExpand1:"_icnExpand1_1reko_387",icnExpand:"_icnExpand_1reko_387",playerDataGames:"_playerDataGames_1reko_427",playerInfoGames:"_playerInfoGames_1reko_449",headerTopGame:"_headerTopGame_1reko_479",playerRow:"_playerRow_1reko_507",groupsLeague:"_groupsLeague_1reko_529",text:"_text_1reko_547",btnViewFullList:"_btnViewFullList_1reko_563",headerTopsGames:"_headerTopsGames_1reko_597",btnVideosOptions:"_btnVideosOptions_1reko_741",position:"_position_1reko_1095",positionWrapper:"_positionWrapper_1reko_1119",imgNecaxaIcon:"_imgNecaxaIcon_1reko_1135",teamLogo:"_teamLogo_1reko_1147",teamPhoto:"_teamPhoto_1reko_1163",name:"_name_1reko_1179",icnPlayIconType1:"_icnPlayIconType1_1reko_1195",verVideosType1:"_verVideosType1_1reko_1209",btnVideosOptionsType1:"_btnVideosOptionsType1_1reko_1221",btnVideosOptions1Games:"_btnVideosOptions1Games_1reko_1245",leftContainer:"_leftContainer_1reko_1269",shapeIconType1:"_shapeIconType1_1reko_1287",icnExpandType1:"_icnExpandType1_1reko_1297",arrowExpand:"_arrowExpand_1reko_1317",containerInfoGames:"_containerInfoGames_1reko_1333",headerTopTeam:"_headerTopTeam_1reko_1357",containerHeader:"_containerHeader_1reko_1385",goles1:"_goles1_1reko_1403",golesType1:"_golesType1_1reko_1409",golesWrapper:"_golesWrapper_1reko_1419",btnViewAll:"_btnViewAll_1reko_1437",headerTopsTeams:"_headerTopsTeams_1reko_1471",arrowExpandIcon:"_arrowExpandIcon_1reko_1705",rotate:"_rotate_1reko_1715"}}]]),Vp={components:{GSCButton:w.GSCButton},props:{isLive:{type:Boolean,default:!1},background:{type:String,default:"#172531"},type:{type:Number,default:1},viewButton:{type:Boolean,default:!0},viewTeam:{type:Boolean,default:!0},viewAge:{type:Boolean,default:!0},viewNationality:{type:Boolean,default:!0},viewPosition:{type:Boolean,default:!0},viewGames:{type:Boolean,default:!0},viewMin:{type:Boolean,default:!0},viewGoals:{type:Boolean,default:!0},viewEffectiveness:{type:Boolean,default:!0},height:{type:String,default:"134px"},fontColor:{type:String,default:"#ffffffb3"},fontColorValue:{type:String,default:"#ffffff"},fontFamily:{type:String,default:"Poppins-Regular"},fontSize:{type:String,default:"10px"},additionalClass:{type:String,default:""},data:{type:Object,default(){}}},setup(){const e=t.ref("myDivRef"),{elementSize:a}=zm(e);return{myDivRef:e,elementSize:a}},data(){return{}},computed:{},methods:{viewProfile(e){this.$emit("viewprofile",e)}}},zp=()=>{t.useCssVars(e=>({a297a8e8:e.fontFamily,"05868b8a":e.fontColor,"9181d814":e.fontColorValue,c650cbae:e.fontSize,af6837b2:e.background}))},jp=Vp.setup;Vp.setup=jp?(e,t)=>(zp(),jp(e,t)):zp;const Bp=e=>(t.pushScopeId("data-v-5dd9e88d"),e=e(),t.popScopeId(),e),Rp={ref:"myDivRef"},qp=["src"],Ep=Bp(()=>t.createElementVNode("span",null,"Posición en la tabla: ",-1)),Jp=Bp(()=>t.createElementVNode("span",null,"Goles anotados: ",-1)),Wp=Bp(()=>t.createElementVNode("span",null,"Goles recibidos: ",-1)),Hp=Bp(()=>t.createElementVNode("span",null,"Partidos jugados:",-1)),Up=Bp(()=>t.createElementVNode("span",null,"Efectividad de pases: ",-1)),Zp=Bp(()=>t.createElementVNode("span",null,"xG: ",-1)),$p=Bp(()=>t.createElementVNode("span",null,"Efectividad de pases: ",-1)),Xp=Bp(()=>t.createElementVNode("span",null,"xG: ",-1)),Yp=Bp(()=>t.createElementVNode("span",null,"Posición en la tabla: ",-1)),Kp=Bp(()=>t.createElementVNode("span",null,"Goles anotados: ",-1)),Qp=Bp(()=>t.createElementVNode("span",null,"Goles recibidos: ",-1)),eh=Bp(()=>t.createElementVNode("span",null,"Partidos jugados: ",-1)),th=Bp(()=>t.createElementVNode("span",null,"Efectividad de pases: ",-1)),ah=Bp(()=>t.createElementVNode("span",null,"xG: ",-1)),sh=B(Vp,[["render",(e,a,s,i,o,n)=>{const l=t.resolveComponent("GSCButton");return t.openBlock(),t.createElementBlock("div",Rp,[0==s.type?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.expandedInfoPlayerGames)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.dataContainer),id:"data-container"},[t.createElementVNode("div",{class:t.normalizeClass([e.$style.containerInfoGames,s.additionalClass]),id:"container-info"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited)},[s.viewTeam?(t.openBlock(),t.createElementBlock("p",{key:0,class:t.normalizeClass(e.$style.equipoAtlasSeleccinMexiGames)},[t.createElementVNode("span",{class:t.normalizeClass(e.$style.equipoGames)},"Equipo: ",2),t.createElementVNode("span",{class:t.normalizeClass(e.$style.atlasSeleccinGames)},t.toDisplayString(s.data.teams),3)],2)):t.createCommentVNode("",!0),s.viewAge?(t.openBlock(),t.createElementBlock("p",{key:1,class:t.normalizeClass(e.$style.nacionalidadMex)},[t.createElementVNode("span",{class:t.normalizeClass(e.$style.equipoGames)},"Edad: ",2),t.createElementVNode("span",{class:t.normalizeClass(e.$style.aosGames)},t.toDisplayString(s.data.age)+" años",3),t.createElementVNode("span",{class:t.normalizeClass(e.$style.span12)}," ("+t.toDisplayString(s.data.dataofbirth)+")",3)],2)):t.createCommentVNode("",!0),s.viewNationality?(t.openBlock(),t.createElementBlock("p",{key:2,class:t.normalizeClass(e.$style.nacionalidadMex)},[t.createElementVNode("span",{class:t.normalizeClass(e.$style.span12)},"Nacionalidad: ",2),t.createElementVNode("span",{class:t.normalizeClass(e.$style.aosGames)},[t.createTextVNode(t.toDisplayString(s.data.nationality.substring(0,3).toUpperCase())+" ",1),t.createElementVNode("div",{class:t.normalizeClass(e.$style.countryFlag)},[t.createElementVNode("img",{src:s.data.countryFlag},null,8,qp)],2)],2)],2)):t.createCommentVNode("",!0),s.viewPosition?(t.openBlock(),t.createElementBlock("p",{key:3,class:t.normalizeClass(e.$style.nacionalidadMex)},[t.createElementVNode("span",{class:t.normalizeClass(e.$style.span12)},"Posición: ",2),t.createElementVNode("span",{class:t.normalizeClass(e.$style.aosGames)},t.toDisplayString(s.data.position),3)],2)):t.createCommentVNode("",!0)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited12)},[s.viewGames&&!s.isLive?(t.openBlock(),t.createElementBlock("p",{key:0,class:t.normalizeClass(e.$style.nacionalidadMex)},[t.createElementVNode("span",{class:t.normalizeClass(e.$style.span12)},"partidos Jugados: ",2),t.createElementVNode("span",{class:t.normalizeClass(e.$style.aosGames)},t.toDisplayString(s.data.games),3)],2)):t.createCommentVNode("",!0),s.viewMin&&!s.isLive?(t.openBlock(),t.createElementBlock("p",{key:1,class:t.normalizeClass(e.$style.nacionalidadMex)},[t.createElementVNode("span",{class:t.normalizeClass(e.$style.span12)},"Minutos Jugados: ",2),t.createElementVNode("span",{class:t.normalizeClass(e.$style.aosGames)},t.toDisplayString(s.data.min),3)],2)):t.createCommentVNode("",!0),s.viewGoals?(t.openBlock(),t.createElementBlock("p",{key:2,class:t.normalizeClass(e.$style.nacionalidadMex)},[t.createElementVNode("span",{class:t.normalizeClass(e.$style.span12)},t.toDisplayString(s.data.category)+": ",3),t.createElementVNode("span",{class:t.normalizeClass(e.$style.aosGames)},t.toDisplayString(s.data.goals),3)],2)):t.createCommentVNode("",!0),s.viewEffectiveness?(t.openBlock(),t.createElementBlock("p",{key:3,class:t.normalizeClass(e.$style.nacionalidadMex)},[t.createElementVNode("span",{class:t.normalizeClass(e.$style.span12)},"Efectividad de pases: ",2),t.createElementVNode("span",{class:t.normalizeClass(e.$style.aosGames)},t.toDisplayString(s.data.effectiveness.toFixed(0))+"%",3)],2)):t.createCommentVNode("",!0)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.containerButton),id:"btn-container"},[s.viewButton?(t.openBlock(),t.createBlock(l,{key:0,style:t.normalizeStyle(""!=s.additionalClass&&i.elementSize.width>540?"margin-right: 50px":""),width:"88px",height:"30px","border-radius":"30px","border-width":1,"background-color":"#ffffff1a","font-family":"Poppins-Semibold","border-color":"#cbee6b","text-value":"Ver perfil","font-size":"10px",onClick:a[0]||(a[0]=e=>n.viewProfile(s.data.id))},null,8,["style"])):t.createCommentVNode("",!0)],2)],2)],2)):t.createCommentVNode("",!0),1==s.type?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.infoExpanded)},[t.createElementVNode("div",{class:t.normalizeClass([e.$style.containerDataBg,s.additionalClass])},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnitedParent)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited1)},[Ep,t.createElementVNode("span",{class:t.normalizeClass(e.$style.spanGames)},t.toDisplayString(s.data.position),3)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited1)},[Jp,t.createElementVNode("span",{class:t.normalizeClass(e.$style.spanGames)},t.toDisplayString(s.data.goals),3)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited1)},[Wp,t.createElementVNode("span",{class:t.normalizeClass(e.$style.spanGames)},t.toDisplayString(s.data.goals_received),3)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited1)},[Hp,t.createElementVNode("span",{class:t.normalizeClass(e.$style.spanGames)},t.toDisplayString(s.data.games_played),3)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnitedParent)},[s.viewEffectiveness?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.manchesterUnited1)},[Up,t.createElementVNode("span",{class:t.normalizeClass(e.$style.spanGames)},t.toDisplayString(s.data.effectiveness.toFixed(0))+"%",3)],2)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited1)},[Zp,t.createElementVNode("span",{class:t.normalizeClass(e.$style.spanGames)},t.toDisplayString(s.data.xg),3)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnitedParent)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited1)},[t.createElementVNode("span",null,t.toDisplayString(s.data.category)+": ",1),t.createElementVNode("span",{class:t.normalizeClass(e.$style.spanGames)},t.toDisplayString(s.data.total),3)],2),s.viewEffectiveness?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.manchesterUnited8)},[$p,t.createElementVNode("span",{class:t.normalizeClass(e.$style.spanGames)},t.toDisplayString(s.data.effectiveness)+"%",3)],2)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited8)},[Xp,t.createElementVNode("span",{class:t.normalizeClass(e.$style.spanGames)},t.toDisplayString(s.data.xg),3)],2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.containerDataSm)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.frameDiv)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited1)},[Yp,t.createElementVNode("span",{class:t.normalizeClass(e.$style.spanGames)},t.toDisplayString(s.data.position),3)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited1)},[Kp,t.createElementVNode("span",{class:t.normalizeClass(e.$style.spanGames)},t.toDisplayString(s.data.goals),3)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited1)},[Qp,t.createElementVNode("span",{class:t.normalizeClass(e.$style.spanGames)},t.toDisplayString(s.data.goals_received),3)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited1)},[eh,t.createElementVNode("span",{class:t.normalizeClass(e.$style.spanGames)},t.toDisplayString(s.data.games_played),3)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnitedParent1)},[s.viewEffectiveness?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.manchesterUnited14)},[th,t.createElementVNode("span",{class:t.normalizeClass(e.$style.spanGames)},t.toDisplayString(s.data.effectiveness.toFixed(0))+"%",3)],2)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited1)},[ah,t.createElementVNode("span",{class:t.normalizeClass(e.$style.spanGames)},t.toDisplayString(s.data.xg),3)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited1)},[t.createElementVNode("span",null,t.toDisplayString(s.data.category)+": ",1),t.createElementVNode("span",{class:t.normalizeClass(e.$style.spanGames)},t.toDisplayString(s.data.total),3)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited8)},[t.createElementVNode("span",null,t.toDisplayString(s.data.category)+": ",1),t.createElementVNode("span",{class:t.normalizeClass(e.$style.spanGames)},t.toDisplayString(s.data.total),3)],2)],2)],2),s.viewButton?(t.openBlock(),t.createBlock(l,{key:0,style:t.normalizeStyle(""!=s.additionalClass&&i.elementSize.width>540?"margin-right: 42px":""),width:"88px",height:"30px","border-radius":"30px","border-width":1,"background-color":"#ffffff1a","font-family":"Poppins-Semibold","border-color":"#cbee6b","text-value":"Ver perfil","font-size":"10px",onClick:a[1]||(a[1]=e=>n.viewProfile(s.data.id))},null,8,["style"])):t.createCommentVNode("",!0)],2)):t.createCommentVNode("",!0)],512)}],["__cssModules",{$style:{equipoGames:"_equipoGames_fst7d_75",atlasSeleccinGames:"_atlasSeleccinGames_fst7d_85",equipoAtlasSeleccinMexiGames:"_equipoAtlasSeleccinMexiGames_fst7d_93",aosGames:"_aosGames_fst7d_101",span12:"_span12_fst7d_109",nacionalidadMex:"_nacionalidadMex_fst7d_115",manchesterUnited:"_manchesterUnited_fst7d_121",manchesterUnited12:"_manchesterUnited12_fst7d_135",containerInfoGames:"_containerInfoGames_fst7d_155",verPerfil12:"_verPerfil12_fst7d_173",btnProfile:"_btnProfile_fst7d_191",containerButton:"_containerButton_fst7d_223",dataContainer:"_dataContainer_fst7d_237",expandedInfoPlayerGames:"_expandedInfoPlayerGames_fst7d_257",containerDataBg:"_containerDataBg_fst7d_437",containerDataSm:"_containerDataSm_fst7d_459",span:"_span_fst7d_109",manchesterUnited14:"_manchesterUnited14_fst7d_481",filter:"_filter_fst7d_491",verPerfil:"_verPerfil_fst7d_173",manchesterUnited8:"_manchesterUnited8_fst7d_533",manchesterUnitedParent1:"_manchesterUnitedParent1_fst7d_545",manchesterUnited1:"_manchesterUnited1_fst7d_135",manchesterUnitedParent:"_manchesterUnitedParent_fst7d_545",frameDiv:"_frameDiv_fst7d_589",infoExpanded:"_infoExpanded_fst7d_605",countryFlag:"_countryFlag_fst7d_911"}}],["__scopeId","data-v-5dd9e88d"]]),ih={3:"Albanesa",4:"Argelina",6:"Andorrano",7:"Angoleña",8:"Anguillan",9:"Antiguan",10:"Argentina",11:"Armenia",12:"Arubeño",13:"Austríaca",14:"Austríaca",15:"Azerbaiyano",16:"Bahamas",17:"Bareini",18:"Bangladesí",19:"Barbadense",20:"Bielorrusa",21:"Belga",22:"Beliceña",23:"Beninesa",24:"Bermudeña",25:"Butanés",26:"Boliviana",27:"Bosnia",28:"Botsuano",29:"Brasileña",30:"Islas Vírgenes Británicas",31:"Bruneano",32:"Búlgara",33:"Burundés",34:"Burmesa",35:"Burundés",36:"Camboyana",37:"Camerunés",38:"Canadiense",39:"Caboverdiano",40:"Caimanés",41:"Centroafricana",42:"Chadiano",43:"Chilena",44:"China",45:"Isla de Navidad",46:"Cocos Island",47:"Colombiana",48:"Comorense",49:"Congoleña",50:"Cookiano",51:"Costarricense",52:"Marfileña",53:"Croata",54:"Cubana",55:"Chipriota",56:"Checa",57:"Danesa",58:"Djibouti",60:"Dominicana",61:"Timorense",62:"Ecuatoriana",63:"Egipcia",64:"Salvadoreña",65:"Inglesa",66:"Ecuatoguineano",67:"Eritreo",68:"Estoniana",69:"Etíope",70:"Islas Malvinas",71:"Feroés",72:"Fiyiano",73:"Finlandesa",74:"Francesa",75:"Guayana Francesa",76:"Francopolinecio",77:"Gabonesa",78:"Gambiana",79:"Georgiano",80:"Alemana",81:"Ghanesa",82:"Gibraltareño",221:"Británico",84:"Griega",85:"Groenlandés",86:"Granadino",87:"Guadeloupeño",89:"Guatemalteca",90:"Guineana",91:"Guyanés",92:"Haitiana",93:"Hondureña",94:"Hongkongese",95:"Húngaro",96:"Islandesa",97:"Indio",98:"Indonesia",99:"Iraní",100:"Iraquí",101:"Irlandesa",102:"Manés",103:"Israelí",104:"Italiana",105:"Jamaiquina",106:"Japonesa",107:"Jordana",108:"Kazaja",109:"Keniana",110:"Kiribatiano",111:"Coreana",112:"Surcoreana",113:"Kosovan",114:"Kuwaití",115:"Kirguisa",116:"Laosiano",117:"Letona",118:"Libanesa",119:"Basotho",120:"Liberiana",121:"Libia",122:"Liechtenstein",123:"Lituano",124:"Luxemburguesa",125:"Macaneso",126:"Macedonia",127:"Malgache",128:"Malaya",129:"Malaya",130:"Maldivo",131:"Mali",132:"Maltesa",133:"Marshallese",134:"Martiniqueña",135:"Mauritania",136:"Mauriciano",137:"Mahoran",138:"Mexicana",139:"Micronesio",140:"Moldava",141:"Monacan",142:"Mongol",143:"Montenegrina",144:"Montserratiano",145:"Marroqui",146:"Mozambiqueña",147:"Namibio",148:"Nauruan",149:"Nepalí",150:"Holandesa",151:"Neocaledonio",152:"Neozelandesa",153:"Nicaragüense",154:"Niueño",155:"Nigerina",156:"Nigeriana",157:"Noruega",158:"Normariano",159:"Omaní",160:"Palestina",161:"Palestina",162:"Palauan",163:"Panameña",164:"Papú",165:"Paraguaya",166:"Peruana",167:"Filipina",168:"Pitcairnés",169:"Polaca",170:"Portuguesa",171:"Puertorriqueña",172:"Catari",173:"Reunionés",174:"Rumana",175:"Rusa",176:"Ruandés",177:"Santa Elena",178:"Sancristobaleña",179:"Santa Lucía",180:"Miquelonnais",181:"Sanvicentina",182:"Samoano",183:"Sanmariense",184:"Santotomense",185:"Saudí",186:"Escocesa",187:"Senegalense",188:"Serbia",189:"Seychellense",190:"Sierraleonesa",191:"Singapurense",192:"Eslovena",193:"Eslovena",194:"Salomonense",195:"Somalí",196:"Sudafricana",197:"Surosetio",198:"Española",199:"Esrilanques",200:"Sudanés",201:"Surinamés",202:"Swazi",203:"Sueca",204:"Suiza",205:"Sirio",206:"Taiwanesa",207:"Tayiko",208:"Tanzano",209:"Tailandesa",210:"Togo",211:"Tongano",212:"Trinitaria",213:"Tunecina",214:"Turca",215:"Turkmena",216:"none",217:"Tuvaluano",218:"Ugandesa",219:"Ucraniana",220:"Emiratí",222:"Americana",223:"Uruguaya",224:"Uzbeka",225:"Vanuatuense",226:"Venezolana",227:"Vietnamita",228:"Islas Vírgenes",229:"Galesa",230:"Walisiano",231:"Saharaui",232:"Yemení",233:"Zambiana",234:"Zimbabuense",236:"Curazaleña",237:"San Martín",239:"Debutante"},oh={components:{GSCCarousel:S.GSCCarousel,GSCLeaders:Dp,GSCRowTable:Tp,GSCTableHeader:Wm,GSCExpandedInfo:sh},props:{isTeam:{type:Boolean,default:!1},typeTable:{type:Number,default:0},typeData:{type:Number,default:1},gameId:{type:Number,default:0},filtersProp:{type:[Object,String],default(){}},game:{type:Object,default:()=>({})},isWidget:{type:Boolean,default:!1},teamWidget:{type:Number,default:0},canPlayVideos:{type:Boolean,default:!1},filterTeam:{type:Number,default:0},timeLiveComparativeAvanced:{type:Number,default:6e4},category:{type:Number,default:1},categoryName:{type:String,default:"Goles"},seasonSelected:{type:Object,default:()=>({})},season:{type:Number,default:1772},type:{type:Number,default:0},borderRadius:{type:String,default:"8px"},borderWidth:{type:[String,Number],default:"2px"},borderColor:{type:String,default:"#cfcfcf"},backgroundOdd:{type:String,default:"#172531"},backgroundEven:{type:String,default:"#0d1d29"},numRows:{type:Number,default:5}},setup(){const e=t.ref("myDivRef"),{elementSize:a}=zm(e);return{myDivRef:e,elementSize:a}},watch:{game:{immediate:!0,deep:!0,async handler(e){e&&(this.playersInfo={},this.teamInfo={},this.isloading=!0,this.formatFilterStats=[],await this.getCategoryStats(this.season),this.game.is_live&&(this.createIntervalTops(),this.$emit("intervalidtops",this.intervalIdtops)))}},typeData:{immediate:!0,async handler(e){await this.getCategoryStats(this.season),1===e&&this.game.is_live?(this.createIntervalTops(),this.$emit("intervalidtops",this.intervalIdtops)):clearInterval(this.intervalIdtops)}},filtersProp:{immediate:!1,deep:!0,async handler(e,t){e&&(JSON.stringify(e)!==JSON.stringify(t)||this.sonConjuntosDistintos(e.setNationalitiesIds,t.setNationalitiesIds))&&(this.isloading=!0,this.filterEmitAux=e,[1,23,3,4,5,7,6,9,8,11,10,12,13,15,14,17,16,22].includes(this.category)?this.filterEmitAux.typeZone=1:this.filterEmitAux.typeZone=2,this.formatFilterStats=await this.filterRecords(this.filterEmitAux))}}},computed:{topData(){if(this.changeStateLoading(!0),Object.entries(this.statsData).length>0&&this.formatFilterStats.length>0){var e={},t={},a=[],s=[],i=[];return this.formatFilterStats.map(a=>{e[a.team_id]?e[a.team_id].total=e[a.team_id].total+a.total:(e[a.team_id]={},e[a.team_id].total=a.total,e[a.team_id].id=this.teamInfo[a.team_id].id,e[a.team_id].name=this.teamInfo[a.team_id].name.replace(" Femenil",""),e[a.team_id].img="https://golstatsimages.blob.core.windows.net/teams-80/"+a.team_id+".png",e[a.team_id].effectiveness=this.teamInfo[a.team_id].effectiveness,e[a.team_id].frecuency=this.teamInfo[a.team_id].frecuency,e[a.team_id].game_avg=this.teamInfo[a.team_id].game_avg,e[a.team_id].game_avg_last_season=this.teamInfo[a.team_id].game_avg_last_season,e[a.team_id].games_played_lastseason=this.teamInfo[a.team_id].games_played_lastseason,e[a.team_id].games_played=this.teamInfo[a.team_id].games_played,e[a.team_id].positiontable=this.teamInfo[a.team_id].positiontable,e[a.team_id].goals=this.teamInfo[a.team_id].goals,e[a.team_id].goalsrecived=this.teamInfo[a.team_id].goalsrecived,e[a.team_id].xg=this.teamInfo[a.team_id].xg),t[a.player_id]?0!=a.player_id&&62117!=a.player_id&&(t[a.player_id].total=t[a.player_id].total+a.total):0!=a.player_id&&62117!=a.player_id&&(t[a.player_id]={},t[a.player_id].total=a.total,a.player_id&&this.playersInfo[a.player_id]?(t[a.player_id].name=this.playersInfo[a.player_id].name,t[a.player_id].name_short=this.getnameshort(this.playersInfo[a.player_id].name),t[a.player_id].img=this.playersInfo[a.player_id].img,t[a.player_id].id=this.playersInfo[a.player_id].id,t[a.player_id].age=this.playersInfo[a.player_id].age,t[a.player_id].team=this.playersInfo[a.player_id].team,t[a.player_id].teamname=this.playersInfo[a.player_id].teamname,t[a.player_id].teamid=this.playersInfo[a.player_id].teamid,t[a.player_id].position=this.playersInfo[a.player_id].position,t[a.player_id].positionId=this.playersInfo[a.player_id].positionId,t[a.player_id].positionfull=this.playersInfo[a.player_id].positionfull,t[a.player_id].country=this.playersInfo[a.player_id].country,t[a.player_id].effectiveness=this.playersInfo[a.player_id].effectiveness,t[a.player_id].minutes=this.playersInfo[a.player_id].minutes_played,t[a.player_id].games=this.playersInfo[a.player_id].games_played,t[a.player_id].date=this.playersInfo[a.player_id].date,t[a.player_id].nationality=this.playersInfo[a.player_id].nationality,t[a.player_id].player_country_flag=this.playersInfo[a.player_id].player_country_flag,t[a.player_id].categoryName=this.categoryName):(t[a.player_id].id=a.player_id,t[a.player_id].name=a.player_id,t[a.player_id].img="SIN IMAGEN",t[a.player_id].age="",t[a.player_id].teamname="",t[a.player_id].team="",t[a.player_id].teamid=0,t[a.player_id].position="",t[a.player_id].positionId=0,t[a.player_id].positionfull="",t[a.player_id].country="",t[a.player_id].effectiveness="",t[a.player_id].minutes="",t[a.player_id].games="",t[a.player_id].date="00-00-0000",t[a.player_id].nationality="",t[a.player_id].player_country_flag="",t[a.player_id].categoryName=""))}),a.push(...Object.values(e)),s.push(...Object.values(t)),a=this.sortAndSlice(Object.values(e),60),s=(s=s.sort(this.compareObjectsMinutes).slice(0,60)).map((e,t)=>(e.top=9>t?"0"+(t+1):""+(t+1),e)),a=a.map((e,t)=>(e.top=9>t?"0"+(t+1):""+(t+1),e)),0===this.filterTeam||this.isTeam||(i=s.filter(e=>e.teamid===this.filterTeam)),this.changeStateLoading(!1),this.isTeam?this.formatArrayPaginate(a):0!=this.filterTeam?this.formatArrayPaginate(i):this.formatArrayPaginate(s)}return this.changeStateLoading(!1),[]}},data:()=>({url:"https://8grl16o77j.execute-api.us-west-2.amazonaws.com/prod/live/tops",urlPrematch:"https://8grl16o77j.execute-api.us-west-2.amazonaws.com/prod/topsBySeasonAndCategory/",data_headers:["team_id","player_id","playing_as","match_result","section","total","origen","destino"],token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",mapPlayers:new Map,setNationalityIds:new Set,arrayAgeRange:[0,0],arePlaysEmpty:!1,teamInfo:{},formatFilterStats:[],formatStats:[],playersInfo:{},isloading:!0,statsData:{},updateSlider:0,intervalIdtops:null,filterEmitAux:{},filtersSelect:{playingAs:[],matchResult:[],sections:[],zone:[],typeZone:[]},filtersValues:{type:1,sections:[1,2,3,4,5,6],matchResult:[1,2,3],playingAs:[1,2],zone:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],typeZone:1,arrayAgeRange:[1,60],setNationalitiesIds:[],setPositionsIds:[1,2,3,4,5,6,7,8,9]},expand:!1,playerexpand:0,positions:[{name:"Portero",fullname:"POR"},{name:"Defensa central",fullname:"DFC"},{name:"Lateral por izquierda",fullname:"LI"},{name:"Lateral por derecha",fullname:"LD"},{name:"Volante por izquierda",fullname:"VI"},{name:"Volante por derecha",fullname:"VD"},{name:"Volante defensivo",fullname:"VDF"},{name:"Volante ofensivo",fullname:"VO"},{name:"Delantero",fullname:"DEL"},{name:"Desconocida",fullname:"Desc"}],categories:[{id:1,name:"Goles"}]}),methods:{changeStateLoading(e){this.isloading=e},compareObjectsMinutes(e,t){return e.total>t.total?-1:e.total<t.total?1:e.minutes<t.minutes?-1:e.minutes>t.minutes?1:0},sonConjuntosDistintos(e,t){const a=Array.from(e),s=Array.from(t);if(a.length!==s.length)return!0;for(let i=0;i<a.length;i++)if(!t.has(a[i]))return!0;return!1},getnameshort(e){var t=e.split(","),a=t[0].split(" "),s=t[1].trim().split(" "),i="";return 2==a.length||1==a.length?i=4>a[0].length?a[0]+" "+a[1]:a[0]:3==a.length?i=a[0]+" "+a[1]:4==a.length&&(i=a[1]+" "+a[2]+" "+a[3]),(""!=s[s.length-1]?s[s.length-1].charAt(0):s[s.length-2]?s[s.length-2].charAt(0):"")+". "+i.replace(",","")},changeCarrousel(){this.expand=!1,this.playerexpand=0},compareObjects(e,t){return e.total<t.total?-1:e.total>t.total?1:e.name<t.name?-1:e.name>t.name?1:0},sortAndSlice(e,t){return e.sort((e,t)=>(e.name<t.name?1:-1)&&(e.total<t.total?1:-1)).slice(0,t)},getCategoryName(e){let t="";for(let a=0;a<this.categories.length;a++)e==this.categories[a].id&&(t=this.categories[a].name);return t},translateTopCategories(e){return{1:[12,55,"35_r","54_r"],2:[2,20],3:[485,486,487,488],4:[10,324],5:[27,323],6:[510],7:[537,540,544,547],8:[328],9:[231,238,280,287,294,406],10:[13,25],11:[98,101,104,105,109,112,115,116],12:[4],13:[88],14:[5],15:[34],16:[23],17:[11],18:[17,50],19:[18,49],20:[14,52],21:[15,53],22:[39],23:[31,32]}[e]||[]},getCoordinatePointPerCategory(e){return{1:2,2:3,3:1,4:2,5:1,6:2,7:2,8:1,9:1,10:2,11:2,12:1,13:1,14:1,15:1,16:1,17:1,18:3,19:3,20:3,21:3,22:1,23:1}[e]||0},emitEventMedia(e,t,a){let s=this.filtersValues.matchResult,i=this.filtersValues.playingAs,o=this.filtersValues.sections,n=this.filtersValues.zone,l=this.translateTopCategories(t);Object.keys(this.filterEmitAux).length>0&&(s=this.filterEmitAux.matchResult,i=this.filterEmitAux.playingAs,o=this.filterEmitAux.sections,n=this.filterEmitAux.zone);const r=this.isTeam?3:2,d=e.player_id;let c=[],m=this.isTeam?e.id:this.filterTeam;d?this.isTeam?m=d:(c=[d],l=l.filter(e=>!e.toString().includes("_r"))):this.isTeam?m=e.id:(c=[e.id],l=l.filter(e=>!e.toString().includes("_r")));const p={auxwidget:!!(this.canPlayVideos||this.game.awayTeam.team_id==this.teamWidget&&1!=this.typeData),seasonId:1==this.game.is_live?this.season:this.game.regularSeasonId,isFeaturedPlayers:!1,mainSectionType:1,playListType:r,gameIds:null,playerIds:c,goalkeeperIds:[],categoryIds:this.translateTopCategories(t),teamId:m||0,matchResult:s,categorySingleName:"",isRivalSubject:!1,avoidCategorySingleName:!1,currentPlayIndex:0,playData:null,lastClashedGameId:null,tournamentsLastClashes:null,advancedFilter:{playListTitle:a,playingAs:i,timeSections:o,fieldSections:n,coordinatePoint:this.getCoordinatePointPerCategory(t)}};this.$emit("setopenmedia",p)},emitEventMediaFullTable(e,t,a){let s=this.filtersValues.matchResult,i=this.filtersValues.playingAs,o=this.filtersValues.sections,n=this.filtersValues.zone,l=this.translateTopCategories(t);Object.keys(this.filterEmitAux).length>0&&(s=this.filterEmitAux.matchResult,i=this.filterEmitAux.playingAs,o=this.filterEmitAux.sections,n=this.filterEmitAux.zone);const r=this.isTeam?3:2;let d=[],c=this.isTeam?e.id:this.filterTeam;this.isTeam?c=e.id:(d=[e.id],l=l.filter(e=>!e.toString().includes("_r")));const m={seasonId:this.season,isFeaturedPlayers:!1,mainSectionType:1,playListType:r,gameIds:null,playerIds:d,goalkeeperIds:[],categoryIds:l,teamId:c||0,matchResult:s,categorySingleName:"",isRivalSubject:!1,avoidCategorySingleName:!1,currentPlayIndex:0,playData:null,lastClashedGameId:null,tournamentsLastClashes:null,advancedFilter:{playListTitle:a,playingAs:i,timeSections:o,fieldSections:n,coordinatePoint:this.getCoordinatePointPerCategory(t)}};this.$emit("setopenmedia",m)},replaceImgPlayer(e){return e.replace("https://golstatsimages.blob.core.windows.net/players-profile/","https://golstatsimages.blob.core.windows.net/players-profile-no-bg/")},abrevName(e){var t=e.split(","),a=t[0].split(" "),s=t[1].trim().split(" "),i="";return 2==a.length||1==a.length?i=4>a[0].length?a[0]+" "+a[1]:a[0]:3==a.length?i=a[0]+" "+a[1]:4==a.length&&(i=a[1]+" "+a[2]+" "+a[3]),(""!=s[s.length-1]?s[s.length-1].charAt(0):s[s.length-2]?s[s.length-2].charAt(0):"")+". "+i.replace(",","")},clickMore(e){this.$emit("more",{category:e,categoryName:this.categoryName})},morestats(){this.$emit("more",this.category)},viewprofile(e,t){this.$emit("clickprofile",{id:e,teamId:t,isTeam:this.isTeam})},clickexpand(e){this.expand=e.expand,this.playerexpand=e.id},async getCategoryStats(e){var t,a;this.mapPlayers=new Map;try{if(!e)return;let s=[],i={},o={},n=this.season;(null==(a=null==(t=this.seasonSelected)?void 0:t.related_seasons)?void 0:a.some(e=>e.id===this.season))&&(n=this.seasonSelected.id),this.arePlaysEmpty=!1;const l=m.create({headers:{Authorization:""+this.token}});this.isloading=!0;let r={};if(r=1==this.typeData?this.isWidget&&0!=this.teamWidget?await l.get(this.url+"/"+this.gameId+"/"+this.category+"?t="+this.teamWidget):await l.get(this.url+"/"+this.gameId+"/"+this.category):1===this.game.game_status?this.isWidget&&0!=this.teamWidget?await l.get(this.url+"/"+this.gameId+"/"+this.category+"?acc=1&t="+this.teamWidget):await l.get(this.url+"/"+this.gameId+"/"+this.category+"?acc=1"):this.isWidget&&0!=this.teamWidget?await l.get(this.urlPrematch+n+"/"+this.category+"?t="+this.teamWidget):await l.get(this.urlPrematch+n+"/"+this.category+"?t="+this.game.homeTeam.team_id+"&t="+this.game.awayTeam.team_id),r&&r.data&&r.data.data&&r.data.data.length>0){s=r.data.data.map(e=>this.formatStatsData(e)),r.data.teams.forEach(e=>{i[e[0]]={},i[e[0]].id=e[0],i[e[0]].name=e[1],i[e[0]].abrv=e[2],i[e[0]].img=e[3],i[e[0]].effectiveness=e[4],i[e[0]].games_played=e[5],i[e[0]].games_played_lastseason=e[6],i[e[0]].positiontable=e[7],i[e[0]].goals=e[8],i[e[0]].goalsrecived=e[9],i[e[0]].xg=e[10],i[e[0]].frecuency=e[11],i[e[0]].game_avg=e[12],i[e[0]].game_avg_last_season=e[13]});const e=new Set;r.data.players.forEach(t=>{const a=this.getObjectPlayer(t);this.mapPlayers.set(a.numberId,a);const s=a.numberAge,n=a.teamName.length>0?a.teamName[0].acronym:"",l=a.teamName.length>0?i[a.teamName[0].team_id].name:"",r=a.teamName.length>0?a.teamName[0].team_id:"",d=this.positions[a.numberPositionId-1].fullname,c=this.positions[a.numberPositionId-1].name,m=a.countryId.length>0?a.countryId[0].nationality_id:"",p=a.effectiveness,h=a.min,u=a.games,y=a.date;a.arrayNationalities.forEach(t=>{e.add(t.numberId)}),o[t[0]]={id:t[0],name:t[1],img:t[2],age:s,team:n,teamname:l,teamid:r,position:d,positionfull:c,effectiveness:p,country:m,games_played:u,minutes_played:h,date:y,nationality:a.stringNationalityName,player_country_flag:a.player_country_flag,positionId:a.numberPositionId}}),this.setNationalityIds=e,this.arrayAgeRange=[r.data.min_age,r.data.max_age]}else this.arePlaysEmpty=!0;this.teamInfo=i,this.playersInfo=o,this.formatStats=s,this.formatFilterStats=this.filterRecords(this.filtersSelect),this.statsData=r}catch(s){return Promise.reject(s)}},filterRecords(e){return this.formatStats.length>0?this.formatStats.filter(t=>{const a=e.playingAs.includes(t.playing_as),s=e.matchResult.includes(t.match_result),i=e.sections.includes(t.section),o=1===e.typeZone&&e.zone.includes(t.origen)||2===e.typeZone&&e.zone.includes(t.destino);if(e.setPositionsIds&&e.setNationalitiesIds&&e.arrayAgeRange&&e.setYear&&!this.isTeam){const a=this.mapPlayers.get(t.player_id);if(!a)return!1;if(e.booleanAreNationalTeamsVisible){if(e.setAvailableNationalTeamsPlayersIds.size>0&&!e.setAvailableNationalTeamsPlayersIds.has(t.player_id))return!1}else{let t=!1;for(const s of a.arrayNationalitiesIds)if(e.setNationalitiesIds.has(s)){t=!0;break}if(!t)return!1}if(a.numberAge<e.arrayAgeRange[0]||a.numberAge>e.arrayAgeRange[1])return!1;if(a.date<e.setYear)return!1;if(!e.setPositionsIds.includes(a.numberPositionId))return!1}return(0===e.playingAs.length||a)&&(0===e.matchResult.length||s)&&(0===e.sections.length||i)&&(0===e.zone.length||o)}):[]},updateSliderF(){this.updateSlider+=1},formatStatsData(e){const t={};return 0!==e[1]||1!==e[2]&&2!==e[2]||(e[2]=3-e[2]),0!==e[1]||1!==e[3]&&2!==e[3]||(e[3]=3-e[3]),this.data_headers.forEach((a,s)=>{t[a]=e[s]}),t},getObjectPlayer(e){const t=[],a=e[7].map(e=>(t.push(e.nationality_id),{stringName:e.nationality,numberId:e.nationality_id})),s=e[9].split("-");return{numberId:void 0!==e[0]?e[0]:"",stringFullName:void 0!==e[1]?e[1]:"",stringImageUrl:void 0!==e[2]?e[2]:"",numberTeamId:void 0!==e[3]?e[3]:"",player_country_flag:"https://golstatsimages.blob.core.windows.net/flags/"+e[3]+".jpg",stringNationalityName:ih[e[3]],numberAge:void 0!==e[5]?e[5]:"",numberPositionId:void 0!==e[6]?e[6]:"",countryId:void 0!==e[7]?e[7]:"",teamName:void 0!==e[10]?e[10]:"",effectiveness:void 0!==e[11]?e[11]:"",min:void 0!==e[13]?e[13]:"",games:void 0!==e[12]?e[12]:"",date:s.length>0?+s[0]:0,arrayNationalities:a,category:this.categoryName,arrayNationalitiesIds:t}},formatArrayPaginate(e){const t=Math.ceil(e.length/this.numRows);return Array.from({length:t},(t,a)=>{const s=a*this.numRows,i=s+this.numRows;return e.slice(s,i)})},createIntervalTops(){this.intervalIdtops=setInterval(async()=>{await this.getCategoryStats(this.season)},this.timeLiveComparativeAvanced)},clearTopsInterval(){this.intervalIdtops&&(clearInterval(this.intervalIdtops),this.intervalIdtops=null)}},beforeUnmount(){this.clearTopsInterval()}},nh=()=>{t.useCssVars(e=>({"1e86da4b":e.borderRadius,"3b14a4ed":e.borderWidth,"39fda68a":e.borderColor}))},lh=oh.setup;oh.setup=lh?(e,t)=>(nh(),lh(e,t)):nh;const rh=e=>(t.pushScopeId("data-v-7ae354aa"),e=e(),t.popScopeId(),e),dh={ref:"myDivRef"},ch={class:"btnViewFullList"},mh={class:"text"},ph={class:"groupsLeague"},hh={class:"row-table-carrousel"},uh={key:1,class:"container-no-search-result"},yh={key:0,class:"overlay-loading-top"},gh=[rh(()=>t.createElementVNode("div",{class:"overlay-loading-top__spinner"},[t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/balon_liga.png",alt:""})],-1)),rh(()=>t.createElementVNode("div",{class:"overlay-loading-top__text"},"Loading...",-1))],vh=rh(()=>t.createElementVNode("div",{class:"container-no-search-result-title"},"No existen resultados",-1)),_h=rh(()=>t.createElementVNode("div",{class:"container-no-search-result-subtitle"},[t.createTextVNode(" No existen resultados para este tipo de"),t.createElementVNode("br"),t.createTextVNode(" jugada, considerando el torneo y otros"),t.createElementVNode("br"),t.createTextVNode(" filtros que has seleccionado. ")],-1)),fh=B(oh,[["render",(e,a,s,i,o,n)=>{const l=t.resolveComponent("GSCLeaders"),r=t.resolveComponent("GSCRowTable"),d=t.resolveComponent("GSCExpandedInfo"),c=t.resolveComponent("GSCCarousel"),m=t.resolveComponent("GSCTableHeader");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(0==s.type?"gsc-top":"gsc-top-full")},[t.createElementVNode("div",dh,[t.createElementVNode("div",ch,[t.createElementVNode("div",mh,[t.createElementVNode("div",ph,t.toDisplayString(s.categoryName),1)])]),0==s.type?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[n.topData.length>0?(t.openBlock(),t.createBlock(c,{key:0,items:n.topData,"is-pagination-visible":!0,"are-navigation-arrows-visible":!0,onInput:n.changeCarrousel},{default:t.withCtx(({item:o})=>[t.createElementVNode("div",hh,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(o,(o,c)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:c},[1==o.top?(t.openBlock(),t.createBlock(l,{key:0,onMediadata:a[0]||(a[0]=e=>n.emitEventMedia(e,s.category,s.categoryName)),type:s.typeTable,"type-data":s.typeData,game:s.game,"team-widget":s.teamWidget,"can-play-videos":s.canPlayVideos,"is-expanded":e.playerexpand==o.id&&e.expand,ref_for:!0,ref:"GSCLeaders",data:0==s.typeTable?{top:"01",photo:o.img,logo:"https://golstatsimages.blob.core.windows.net/teams-80/"+o.teamid+".png",name:o.name,player_short:o.name_short,player_id:o.id,categoryId:s.category,total:o.total}:{top:"01",logo:o.img,total:o.total,name_team:o.name,player_id:o.id},"category-name":s.categoryName,buttonMaxWidth:0!=s.typeTable?i.elementSize.width>360?"210px":"130px":i.elementSize.width>360?"180px":"110px",buttonFontSize:"12px",iconSize:"11px",onExpand:n.clickexpand,onMore:n.morestats},null,8,["type","type-data","game","team-widget","can-play-videos","is-expanded","data","category-name","buttonMaxWidth","onExpand","onMore"])):(t.openBlock(),t.createBlock(r,{key:1,"type-data":s.typeData,"team-widget":s.teamWidget,game:s.game,type:s.typeTable,"type-view":s.type,"is-expanded":e.playerexpand==o.id&&e.expand,onMediadata:a[1]||(a[1]=e=>n.emitEventMedia(e,s.category,s.categoryName)),data:0==s.typeTable?{position:o.top,player_name:o.name,player_short:o.name_short,player_photo:o.img,total:o.total,id:o.id,player_age:o.age,team_abrev:o.team,team_logo:"https://golstatsimages.blob.core.windows.net/teams-80/"+o.teamid+".png",player_position:o.position,player_country_flag:"https://golstatsimages.blob.core.windows.net/flags/"+o.country+".jpg",player_games:o.minutes,player_min:o.games,league_name:"          Liga MX          "}:{position:o.top,team_logo:o.img,team_abrev:o.name,frequency:o.frecuency,promthistournament:o.game_avg,promlasttournament:o.game_avg_last_season,teams_games:"-",category:s.category,total:o.total,id:o.id},height:"71px","can-play-videos":s.canPlayVideos,background:c%2==0?s.backgroundEven:s.backgroundOdd,onExpand:n.clickexpand},null,8,["type-data","team-widget","game","type","type-view","is-expanded","data","can-play-videos","background","onExpand"])),e.expand&&e.playerexpand==o.id?(t.openBlock(),t.createBlock(d,{key:2,type:s.typeTable,"is-live":s.game.is_live,"view-effectiveness":1!==o.positionId,data:0==s.typeTable?{teams:o.teamname,age:o.age,dataofbirth:o.date,nationality:o.nationality,countryFlag:o.player_country_flag,position:o.position,games:o.games,min:o.minutes,goals:o.total,effectiveness:o.effectiveness,category:s.categoryName,id:o.id}:{position:o.positiontable,goals:o.goals,goals_received:o.goalsrecived,games_played:o.games_played,category:s.categoryName,effectiveness:o.effectiveness,xg:o.xg,total:o.total,attendance:"-",id:o.id},onViewprofile:e=>n.viewprofile(e,o.teamid),background:c%2==0?s.backgroundEven:s.backgroundOdd},null,8,["type","is-live","view-effectiveness","data","onViewprofile","background"])):t.createCommentVNode("",!0)],64))),128))])]),o:1},8,["items","onInput"])):(t.openBlock(),t.createElementBlock("div",uh,[e.isloading?(t.openBlock(),t.createElementBlock("div",yh,gh)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[vh,_h],64))]))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createVNode(m,{background:"#183143",type:s.typeTable},null,8,["type"]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.topData,(i,o)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:o},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i,(i,l)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:l},[t.createVNode(r,{"type-data":s.typeData,"team-widget":s.teamWidget,game:s.game,type:s.typeTable,"type-view":s.type,"can-play-videos":s.canPlayVideos,"is-expanded":e.playerexpand==i.id&&e.expand,onMediadata:a[2]||(a[2]=e=>n.emitEventMediaFullTable(e,s.category,s.categoryName)),data:0==s.typeTable?{position:i.top,player_name:i.name,player_short:i.name_short,player_photo:i.img,total:i.total,id:i.id,player_age:i.age,team_abrev:i.team,team_logo:"https://golstatsimages.blob.core.windows.net/teams-80/"+i.teamid+".png",player_position:i.position,player_country_flag:"https://golstatsimages.blob.core.windows.net/flags/"+i.country+".jpg",player_games:i.games,player_min:i.minutes,league_name:"          Liga MX          "}:{position:i.positiontable,team_logo:i.img,team_abrev:i.name,frequency:i.frecuency,promthistournament:i.game_avg,promlasttournament:i.game_avg_last_season,category:s.category,team_games:i.games_played,total:i.total,id:i.id},height:"71px",background:(5*(o+1)+l)%2==0?s.backgroundOdd:s.backgroundEven,onExpand:n.clickexpand},null,8,["type-data","team-widget","game","type","type-view","can-play-videos","is-expanded","data","background","onExpand"]),e.expand&&e.playerexpand==i.id?(t.openBlock(),t.createBlock(d,{key:0,type:s.typeTable,"is-live":s.game.is_live,additionalClass:"fullTable","view-effectiveness":1!==i.positionId,data:0==s.typeTable?{teams:i.teamname,age:i.age,dataofbirth:i.date,nationality:i.nationality,countryFlag:i.player_country_flag,position:i.positionfull,positionfull:i.positionfull,games:i.games,min:i.minutes,goals:i.total,effectiveness:i.effectiveness,category:n.getCategoryName(s.category),id:i.id}:{position:i.positiontable,goals:i.goals,goals_received:i.goalsrecived,games_played:i.games_played,category:s.categoryName,effectiveness:i.effectiveness,xg:i.xg,total:i.total,category:n.getCategoryName(s.category),attendance:"-",id:i.id},onViewprofile:e=>n.viewprofile(e,i.teamid),background:l%2==0?s.backgroundEven:s.backgroundOdd},null,8,["type","is-live","view-effectiveness","data","onViewprofile","background"])):t.createCommentVNode("",!0)],64))),128))],64))),128))],64))],512)],2)}],["__scopeId","data-v-7ae354aa"]]),bh=t.ref({backgroundColor:"#2e3b46",borderColor:"rgba(255, 255, 255, 0.20)",infoBorderColor:"rgba(255, 255, 255, 0.20)",height:"40px",padding:"5px 12px",textFontFamily:"'Poppins-Regular'"}),wh={components:{GSCTableHeader:Wm,GscSwitchComponent:k.GscSwitchComponent,GSCFilterperteam:b.GSCFilterperteam,GSCFilters:_.GSCFilters,GSCExpandedInfo:sh,GSCLabel:T.GSCLabel,GSCSeasonSelect:s.GSCSeasonSelect,GSCTopCategory:fh,GSCTournamentSelect:a.GSCTournamentSelect,GSCRowTable:Tp},computed:{...Vm,filterChangePredefined(){return this.filtersPredefinedF},filterChange(){const e={zone:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],playingAs:[1,2],sections:[1,2,3,4,5,6],matchResult:[1,2,3],arrayAgeRange:[1,60],typeZone:1,setNationalitiesIds:this.fVnationalities,setPositionsIds:[1,2,3,4,5,6,7,8,9],booleanAreNationalTeamsVisible:!1,setAvailableNationalTeamsPlayersIds:new Set},t=JSON.stringify(e);if(JSON.stringify(this.filters)!=t)return t},filterGolstats(){return this.FVfilterGolstats},filterButtonProps(){return{...bh.value}}},props:{timeLiveComparativeAvanced:{type:Number,default:6e4},currentSeasonId:{type:Number,default:0},typeData:{type:Number,default:1},canPlayVideos:{type:Boolean,default:!1},teamId:{type:Number,default:0},gameId:{type:Number,default:0},isWidget:{type:Boolean,default:!1},seasonSelected:{type:Object,default:()=>({})},teamWidget:{type:Number,default:0},game:{type:Object,default:()=>({})},teamselect:{type:Number,default:0},seasonActive:{type:Number,default:0},defaultSection:{type:String,default:"Jugadores"},backgroundOdd:{type:String,default:"#172531"},backgroundEven:{type:String,default:"#0d1d29"},tournamentsApiUrl:{type:String,default:""}},watch:{async seasonActive(){if(0!=this.seasonActive){this.teams=[];const e=await this.fetchTeams();for(let t=0;t<e.teams.length;t++)this.teams.push({id:e.teams[t].team_id,team:e.teams[t].colloquial_name,logo:e.teams[t].logo})}}},setup(){const e=t.ref("myDivRefTopsFull"),{elementSize:a}=zm(e);return{myDivRefTopsFull:e,elementSize:a}},data(){return{elegibilidadArray:[],updateFilterTeamsScouting:0,modifidFiltersFlag:!1,showfiltersPc:!1,positions:[{name:"Portero",fullname:"POR"},{name:"Defensa central",fullname:"DFC"},{name:"Lateral por izquierda",fullname:"LI"},{name:"Lateral por derecha",fullname:"LD"},{name:"Volante por izquierda",fullname:"VI"},{name:"Volante por derecha",fullname:"VD"},{name:"Volante defensivo",fullname:"VDF"},{name:"Volante ofensivo",fullname:"VO"},{name:"Delantero",fullname:"DEL"},{name:"Desconocida",fullname:"Desc"}],universeData:{minutesPlayed:0,percentMinutesPlayed:0,lastMonths:Array.from({length:24},(e,t)=>t+1),selectedMonth:12,statistics:{totals:!0,averagePerGame:!1,averagePerMinute:!1}},FVbooleanAreNationalTeamsVisible:!1,teamsscouting:[],filterScounting:{tournaments:[1],seasonId:0,categories:[{name:"Goles",ids:[12]},{name:"Asistencias",ids:[10]},{name:"Participaciones en gol",ids:[27]},{name:"Cabeceos en área rival",ids:[330,333,423,577,578,331,334,424]},{name:"Tiros a gol totales",ids:[91,95,92,93,96,97]}],range_age:[10,40],age_or_year:1,year:1989,nationalities:[3,4,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,221,84,85,86,87,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,222,223,224,225,226,227,228,229,230,231,232,233,234,236,237,239],elegibles:[],minutes_played:211,minutes_played_avg:40,last_months:12,type_stats:1,positions:[1,2,3,4,5,6,7,8,9,10],fouls:!1,yellow_cards:!1,red_cards:!1},expand:!1,playerexpand:0,arrayFiltersPlays:[],filtersPredefinedF:{},categoryPredefinedActive:!1,categoryPredefined:0,typeTable:0,keyUpdateFilter:0,loadingActive:!1,isTeam:!1,arrayPredefinedFilters:[],arrayCategoryFilter:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23],arrayCategoryFilterFull:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23],FVsetAvailableNationalTeamsPlayersIds:new Set,showOnlyCategories:!1,showFullCategory:0,categoryName:"",showFullTable:!1,expansionPanelModePropsTypePlays:{isExpansionPanel:!1,templateProps:{boxShadow:"0px 4px 4px rgba(0, 0, 0, 0)",width:"400px",maxWidth:"400px"},expansionPanelProps:{width:"400px",borderRadius:"8px"},fieldComponentProps:{widthContainer:"400px"}},expansionPanelModeProps:{isExpansionPanel:!1,templateProps:{boxShadow:"0px 4px 4px rgba(0, 0, 0, 0)"},expansionPanelProps:{width:"400px",borderRadius:"8px",fontFamily:"'Poppins-Regular'"},fieldComponentProps:{widthContainer:"100%",title:"Elige el área o zona de cancha",titleFontSize:"13px"}},expansionPanelModePropsMobil:{isExpansionPanel:!0,templateProps:{boxShadow:"0px 4px 4px rgba(0, 0, 0, 0)",padding:"20px 0"},expansionPanelProps:{width:"300px",borderRadius:"8px",height:"45px",fontColor:"rgba(255,255,255, 0.7)",textFontSize:"14px",textFontFamily:"'Poppins-Regular'",padding:"0px 10px"},fieldComponentProps:{widthContainer:"100%",title:"Elige el área o zona de cancha",titleFontSize:"12px",widthField:268,widthFieldGrid:"268px",heightField:180,heightFieldGrid:"180px",heightContainer:"280px"}},expansionPanelModePropsMobil270:{isExpansionPanel:!0,templateProps:{boxShadow:"0px 4px 4px rgba(0, 0, 0, 0)",padding:"20px 0"},expansionPanelProps:{width:"270px",borderRadius:"8px",height:"45px",fontColor:"rgba(255,255,255, 0.7)",textFontSize:"14px",textFontFamily:"'Poppins-Regular'",padding:"0px 10px"},fieldComponentProps:{widthContainer:"100%",title:"Elige el área o zona de cancha",titleFontSize:"12px",widthField:268,widthFieldGrid:"268px",heightField:180,heightFieldGrid:"180px",heightContainer:"280px"}},filters:{zone:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],playingAs:[1,2],sections:[1,2,3,4,5,6],matchResult:[1,2,3],arrayAgeRange:[1,60],typeZone:1,setNationalitiesIds:this.setNationalitiesIds,setPositionsIds:[1,2,3,4,5,6,7,8,9],booleanAreNationalTeamsVisible:!1,setAvailableNationalTeamsPlayersIds:new Set},detaildProductivityCategories:{offensive:{title:"Ofensivo",categories:[{name:"Goles",isSelected:!1,id:[12]},{name:"Asistencias",isSelected:!1,id:[10]},{name:"Participaciones en gol",isSelected:!1,id:[27]},{name:"Cabeceos en área rival",isSelected:!1,id:[330,333,423,577,578,331,334,424]},{name:"Tiros a gol totales",isSelected:!1,id:[91,95,92,93,96,97]},{name:"Tiros a gol con destino a portería",isSelected:!1,id:[91,95]},{name:"Tiros a gol fuera del área",isSelected:!1,id:[94]},{name:"Tiros a gol fuera del área con destino a portería",isSelected:!1,id:[95]},{name:"Tiros a gol dentro del área",isSelected:!1,id:[90]},{name:"Tiros a gol dentro del área con destino a portería",isSelected:!1,id:[91]},{name:"Centros por izquierda",isSelected:!1,id:[13]},{name:"Centros por izquierda acertados",isSelected:!1,id:[98,101,104,105]},{name:"Centros por derecha",isSelected:!1,id:[25]},{name:"Centros por derecha acertados",isSelected:!1,id:[109,112,115,116]},{name:"1vs1 exitosos ofensivos",isSelected:!1,id:[4]},{name:"1vs1 que terminan en gol",isSelected:!1,id:[88]}]},defensive:{title:"Defensivo",categories:[{name:"Bálones ganados en área propia",isSelected:!1,id:[234,241,281,288,399,401,211,231,238,244,280,287,294]},{name:"Cabeceo en área propia",isSelected:!1,id:[211,231,238,244,280,287,294]},{name:"1vs1 defensivos exitosos",isSelected:!1,id:[5]},{name:"Rechaces",isSelected:!1,id:[34]}]},possession:{title:"Posesión",categories:[{name:"Bálones recuperados totales",isSelected:!1,id:[222,223,224,225]},{name:"Bálones recuperados 1/4 de cancha",isSelected:!1,id:[222]},{name:"Bálones recuperados 2/4 de cancha",isSelected:!1,id:[223]},{name:"Bálones recuperados 3/4 de cancha",isSelected:!1,id:[224]},{name:"Bálones recuperados 4/4 de cancha",isSelected:!1,id:[225]},{name:"Pases acertados",isSelected:!1,id:[213,214,215,216]},{name:"Pases acertados en 1/4 de cancha",isSelected:!1,id:[213]},{name:"Pases acertados en 2/4 de cancha",isSelected:!1,id:[214]},{name:"Pases acertados en 3/4 de cancha",isSelected:!1,id:[215]},{name:"Pases acertados en 4/4 de cancha",isSelected:!1,id:[216]}]},offensesConditions:{areYellowCardSelected:!1,areRedCardSelected:!1,areFoulsCommittedSelected:!1}},detailsObject:{playingAs:[{name:"Local",isSelected:!0},{name:"Visitante",isSelected:!0}],gameSections:[{text:"0-15",value:1,isSelected:!0},{text:"16-30",value:2,isSelected:!0},{text:"31-45",value:3,isSelected:!0},{text:"46-60",value:4,isSelected:!0},{text:"61-75",value:5,isSelected:!0},{text:"76-90",value:6,isSelected:!0}]},nameLeagueSelected:"",categoriesPlaysTypes:{offensive:{title:"Ofensivo",categories:[{name:"Goles",isSelected:!0,id:1},{name:"Tiros a gol",isSelected:!0,id:6},{name:"Tiros a gol con destino a portería",isSelected:!0,id:7},{name:"Asistencias",isSelected:!0,id:4},{name:"Centros",isSelected:!0,id:10},{name:"Centros acertados",isSelected:!0,id:11},{name:"Participaciones en gol",isSelected:!0,id:5},{name:"1vs1 exitosos ofensivos",isSelected:!0,id:12},{name:"1vs1 exitosos ofensivos que terminan en gol",isSelected:!0,id:13},{name:"Balones ganados en área rival",isSelected:!0,id:17},{name:"Cabeceos en área rival",isSelected:!0,id:8},{name:"Tiros de esquina",isSelected:!0,id:23}]},defensive:{title:"Defensivo",categories:[{name:"1vs1 defensivos exitosos",isSelected:!0,id:14},{name:"Cabeceo en área propia",isSelected:!0,id:9},{name:"Balones ganados en área propia",isSelected:!0,id:16},{name:"Rechaces",isSelected:!0,id:15},{name:"Atajadas",isSelected:!0,id:22}]},possession:{title:"Posesión",categories:[{name:"Pases acertados",isSelected:!0,id:2},{name:"Balones recuperados en disputa",isSelected:!0,id:3}]},offenses:{title:"Infracciones",categories:[{name:"Faltas cometidas",isSelected:!0,id:18},{name:"Faltas recibidas",isSelected:!0,id:19},{name:"Tarjetas amarillas",isSelected:!0,id:20},{name:"Tarjetas rojas",isSelected:!0,id:21}]},offensesConditions:{areYellowCardSelected:!1,areRedCardSelected:!1,areFoulsCommittedSelected:!1}},categoriesDefault:[{id:1,name:"Goles",isSelected:!1},{id:2,name:"Pases acertados",isSelected:!1},{id:23,name:"Tiros de Esquina",isSelected:!1},{id:3,name:"Balones recuperados en disputa",isSelected:!1},{id:4,name:"Asistencias",isSelected:!1},{id:5,name:"Participaciones en gol",isSelected:!1},{id:6,name:"Tiros a gol",isSelected:!1},{id:7,name:"Tiros a gol que llegaron a la portería",isSelected:!1},{id:8,name:"Cabeceos en área rival",isSelected:!1},{id:9,name:"Cabeceos en área propia",isSelected:!1},{id:10,name:"Centros",isSelected:!1},{id:11,name:"Centros acertados",isSelected:!1},{id:12,name:"1vs1 exitosos ofensivos",isSelected:!1},{id:13,name:"1vs1 exitosos ofensivos que terminaron en gol",isSelected:!1},{id:14,name:"1vs1 defensivos exitoso",isSelected:!1},{id:15,name:"Rechaces",isSelected:!1},{id:16,name:"Balones ganados en área propia",isSelected:!1},{id:17,name:"Balones ganados en área rival",isSelected:!1},{id:18,name:"Faltas cometidas",isSelected:!1},{id:19,name:"Faltas recibidas",isSelected:!1},{id:20,name:"Tarjetas amarillas",isSelected:!1},{id:21,name:"Tarjetas rojas",isSelected:!1},{id:22,name:"Atajadas",isSelected:!1}],seasonsFilterSelected:0,tournamentsToFilter:[{name:"Liga MX",logo:"https://golstatsimages.blob.core.windows.net/tournaments/liga_mx.png",isSelected:!0,id:1,show_logos:1,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1772,type:0},{name:"Clausura 2023",related_seasons:[{type:2,id:1745},{type:1,id:1746}],id:1694,type:0},{name:"Apertura 2022",related_seasons:[{type:2,id:1591},{type:1,id:1594}],id:1535,type:0},{name:"Grita Mexico C22",related_seasons:[{type:2,id:1520},{type:1,id:1525}],id:1476,type:0},{name:"Grita Mexico A21",related_seasons:[{type:2,id:1446},{type:1,id:1456}],id:1401,type:0},{name:"Guard1anes Clausura 2021",related_seasons:[{type:2,id:1382},{type:1,id:1383}],id:1325,type:0},{name:"Guard1anes 2020",related_seasons:[{type:2,id:1311},{type:1,id:1316}],id:1275,type:0},{name:"Clausura 2020",related_seasons:[],id:1239,type:0},{name:"Apertura 2019",related_seasons:[{type:1,id:1231}],id:1155,type:0},{name:"Clausura 2019",related_seasons:[{type:1,id:1135}],id:1093,type:0},{name:"Apertura 2018",related_seasons:[{type:1,id:1075}],id:1002,type:0}]},{name:"Liga MX Femenil",logo:"https://golstatsimages.blob.core.windows.net/tournaments/femenil_mx.png",isSelected:!0,id:1001,show_logos:1,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1777,type:0},{name:"Clausura 2023",related_seasons:[{type:1,id:1747}],id:1696,type:0},{name:"Apertura 2022",related_seasons:[{type:1,id:1655}],id:1539,type:0},{name:"Grita Mexico C22",related_seasons:[{type:1,id:1523}],id:1485,type:0},{name:"Grita Mexico A21",related_seasons:[{type:1,id:1458}],id:1402,type:0},{name:"Guard1anes Clausura 2021",related_seasons:[{type:1,id:1384}],id:1323,type:0},{name:"Guard1anes 2020",related_seasons:[{type:1,id:1318}],id:1283,type:0},{name:"Clausura 2020",related_seasons:[],id:1241,type:0},{name:"Apertura 2019",related_seasons:[{type:1,id:1227}],id:1157,type:0},{name:"Clausura 2019",related_seasons:[{type:1,id:1132}],id:1095,type:0},{name:"Apertura 2018",related_seasons:[{type:1,id:1072}],id:1004,type:0},{name:"Clausura 2018",related_seasons:[{type:1,id:1237}],id:1236,type:0}]},{name:"Liga Expansion MX",logo:"https://golstatsimages.blob.core.windows.net/tournaments/expansion_mx.png",isSelected:!0,id:1071,show_logos:1,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1776,type:0},{name:"Clausura 2023",related_seasons:[{type:2,id:1742},{type:1,id:1748}],id:1695,type:0},{name:"Apertura 2022",related_seasons:[{type:2,id:1598},{type:1,id:1618}],id:1544,type:0},{name:"Grita Mexico C22",related_seasons:[{type:2,id:1515},{type:1,id:1519}],id:1484,type:0},{name:"Grita Mexico A21",related_seasons:[{type:2,id:1454},{type:1,id:1463}],id:1408,type:0},{name:"Guard1anes Clausura 2021",related_seasons:[{type:2,id:1378},{type:1,id:1380}],id:1327,type:0},{name:"Guard1anes 2020",related_seasons:[{type:2,id:1315},{type:1,id:1317}],id:1287,type:0}]},{name:"Sub-23",logo:null,isSelected:!0,id:1143,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1785,type:0}]},{name:"Sub-18",logo:null,isSelected:!0,id:1096,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1782,type:0},{name:"Clausura 2023",related_seasons:[{type:1,id:1751}],id:1714,type:0},{name:"Apertura 2022",related_seasons:[{type:1,id:1593}],id:1543,type:0},{name:"Grita Mexico C22",related_seasons:[{type:1,id:1522}],id:1487,type:0}]},{name:"Sub-16",logo:null,isSelected:!0,id:1095,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1783,type:0},{name:"Clausura 2023",related_seasons:[{type:1,id:1750}],id:1715,type:0},{name:"Apertura 2022",related_seasons:[{type:1,id:1652}],id:1541,type:0},{name:"Grita Mexico C22",related_seasons:[{type:1,id:1527}],id:1488,type:0}]}],isCup:!1,arrayPredefinedOrigin:[],indexPredefinedFiltersSelected:0,predefinedFiltersMatchLapse:[],predefinedFiltersPlayingAs:[],predefinedFiltersSections:[],updateTables:0,updateTablesfull:0,optionSelected:"Jugadores",optionSelectedSubmenu:"Todas las jugadas",tournamentsUrl:"https://17zyhpyc7c.execute-api.us-west-2.amazonaws.com/prod/tournaments",teamsUrl:"https://d2oco6mqmc.execute-api.us-west-2.amazonaws.com/prod/teamsBySeason/",urlFilter:"https://cqqxaonvm6.execute-api.us-east-2.amazonaws.com/prod/gs2/tops/filters?categories=",retries:3,teams:[],updateFilterGolstats:0,updateFilterPlaytypesGolstats:0,arrayTournaments:[],arraySeasons:{},seasonBytournament:[],updateFilterTeamsScouting:0,filtersTypes:_.filtersTypes,token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",fVnationalities:new Set,fVzone:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],fVplayingAs:[1,2],fVsections:[1,2,3,4,5,6],fVmatchResult:[1,2,3],fVarrayAgeRange:[10,40],FVeligible:[],FVYear:1900,keyTournamentValue:0,fVtypeZone:2,fVsetPositionsIds:[1,2,3,4,5,6,7,8,9],currentIndex:-1,delay:800,teamselectrec:0,tournamentSelected:0,tournamentSelectedObj:{},FVfilterGolstats:[],updateFilterField:0,rowScoutingData:[],openMenuMobil:!1,selectedTournament:{seasons:[]},selectedSeasonObj:{}}},methods:{getnameshort(e){var t=e.split(","),a=t[0].split(" "),s=t[1].trim().split(" "),i="";return 2==a.length||1==a.length?i=4>a[0].length?a[0]+" "+a[1]:a[0]:3==a.length?i=a[0]+" "+a[1]:4==a.length&&(i=a[1]+" "+a[2]+" "+a[3]),(""!=s[s.length-1]?s[s.length-1].charAt(0):s[s.length-2]?s[s.length-2].charAt(0):"")+". "+i.replace(",","")},setUpTournamentsToFilter(){this.tournamentsToFilter.forEach(e=>{const t=e.id===this.selectedTournament.id;e.isSelected=t,e.isDefaultTournament=t})},async onClickDeleteFilter(){if("Predeterminados"==this.optionSelectedSubmenu)this.resetPredefinedTeamAll();else{this.rowScoutingData=[];for(let e=0;e<this.detaildProductivityCategories.offensive.categories.length;e++)this.detaildProductivityCategories.offensive.categories[e].isSelected=!1;for(let e=0;e<this.detaildProductivityCategories.defensive.categories.length;e++)this.detaildProductivityCategories.defensive.categories[e].isSelected=!1;for(let e=0;e<this.detaildProductivityCategories.possession.categories.length;e++)this.detaildProductivityCategories.possession.categories[e].isSelected=!1;for(let e=0;e<this.detaildProductivityCategories.offensesConditions.length;e++)this.detaildProductivityCategories.offensesConditions[e]=!1;this.setUpTournamentsToFilter();const t=this.$refs.personalDataFilter;t.clearFilters(_.personalDataSubFiltersTypes.All),t.clearFilters(_.personalDataSubFiltersTypes.AGE_RANGE),t.clearFilters(_.personalDataSubFiltersTypes.YEAR),t.clearFilters(_.personalDataSubFiltersTypes.NATIONALITY),t.clearFilters(_.personalDataSubFiltersTypes.POSITION),this.universeData.minutesPlayed=0,this.universeData.percentMinutesPlayed=0,this.universeData.lastMonths=Array.from({length:24},(e,t)=>t+1),this.universeData.statistics.totals=!0,this.universeData.statistics.averagePerGame=!1,this.universeData.statistics.percentMinutesPlayed=!1;var e=this.arrayFiltersPlays.findIndex(e=>"onFiltersTournaments"===e.type);this.arrayFiltersPlays.splice(e,1);const a=await this.fetchTeamsScouting(this.currentSeasonId);this.teamselect=0,this.teamsscouting=[];for(let e=0;e<a.teams.length;e++)this.teamsscouting.push({id:a.teams[e].team_id,team:a.teams[e].colloquial_name,logo:a.teams[e].logo});setTimeout(()=>{this.modifidFiltersFlag=!1},200)}},clickOpenFilters(){this.showfiltersPc=!0},clickCloseFilters(){this.showfiltersPc=!1},async selectedSeason(e){this.seasonActive!==e.id&&(this.seasonActive=e.id,this.resetPredefinedTeamAll(),this.$emit("change-season-id",e.id))},changeTournament(e){e.id!==this.selectedTournament.id&&(this.selectedTournament=e,this.tournamentSelectedObj={propName:"id",value:e.id},this.teamselect=0,this.resetPredefinedTeamAll(),this.setUpTournamentsToFilter())},changeTournamentMovil(e){this.tournamentSelectedObj={propName:"id",value:e.id},this.seasonBytournament=e.seasons,this.teamselect=0},selectedSeasonMovil(e){this.seasonActive=e.id},setRelevantCategoriesPlayer(e){return 1===e?[39,40,52,53,54,55,323,324,608,774,802]:[10,12,14,15,27,35,61,217,257,466,519,607,702,730,98,101,109,112,121,122,127,128,135,136,141,142,161,170,179,211,232,235,239,242,282,284,289,291,296,485,486,487,488]},setOpenMedia(e){this.$emit("openmedia",e)},setMediaData(e){let t=[e.id],a=e.team_id;const s={seasonId:e.season_id,isFeaturedPlayers:!1,mainSectionType:1,playListType:2,gameIds:null,playerIds:t,goalkeeperIds:[],categoryIds:this.setRelevantCategoriesPlayer(e.position),teamId:a||0,matchResult:[1,2,3],categorySingleName:"",isRivalSubject:!1,avoidCategorySingleName:!1,currentPlayIndex:0,playData:null,lastClashedGameId:null,tournamentsLastClashes:null,advancedFilter:{playListTitle:"Jugadas Relevantes"}};this.$emit("openmedia",s)},clickprofile(e){e.isTeam?this.$emit("openProfileTeam",{teamId:e.id,seasonId:this.seasonActive}):this.$emit("openProfilePlayer",{playerId:e.id,teamId:e.teamId,seasonId:this.seasonActive})},viewprofile(e,t,a){this.$emit("openProfilePlayer",{playerId:e,teamId:a,seasonId:t||this.seasonActive})},openMenuFilters(){this.openMenuMobil=!this.openMenuMobil,this.showfiltersPc=!0},clickexpand(e){this.expand=e.expand,this.playerexpand=e.id},async getScoutingData(){this.arrayFiltersPlays=[],this.loadingActive=!0;const e=m.create({headers:{Authorization:""+this.token}}),{data:t}=await e.post("https://eh9nhj69z7.execute-api.us-west-2.amazonaws.com/prod/players/productivity",this.filterScounting,{headers:{"Content-Type":"application/json"}});if(this.filterScounting.tournaments.length>0){var a=this.arrayFiltersPlays.findIndex(e=>"onFiltersTournaments"===e.type);-1!==a?this.arrayFiltersPlays[a].name=this.filterScounting.tournaments.length>1?"Ligas "+this.filterScounting.tournaments.length:""!=this.nameLeagueSelected?this.nameLeagueSelected:"Liga MX":this.arrayFiltersPlays.push({name:this.filterScounting.tournaments.length>1?"Ligas "+this.filterScounting.tournaments.length:""!=this.nameLeagueSelected?this.nameLeagueSelected:"Liga MX",type:"onFiltersTournaments"})}this.rowScoutingData=[];for(let i=0;i<t.length;i++){t[i];let e=t[i].dob.split("T")[0].split("-");var s={position:i+1,player_name:this.abrevName(t[i].name),player_photo:"https://golstatsimages.blob.core.windows.net/players-profile/"+t[i].player_id+".png",total:t[i].total.toFixed(0),id:t[i].player_id,player_age:this.calcularEdad(t[i].dob),team_abrev:t[i].teams[0].acronym,team_name:t[i].teams[0].team_name,team_logo:"https://golstatsimages.blob.core.windows.net/teams-80/"+t[i].teams[0].team_id+".png",player_position:t[i].position_id,player_country_flag:"https://golstatsimages.blob.core.windows.net/flags/"+t[i].nationality_id+".jpg",date:e[2]+"."+e[1]+"."+e[0].substring(2,4),team_id:t[i].team_id,nationality_name:ih[t[i].nationality_id],player_games:t[i].games_played,player_min:t[i].minutes_played,league_name:t[i].tournament_name,seasons:t[i].seasons,season_id:t[i].seasons[0]};this.rowScoutingData.push(s)}if(0!=this.seasonsFilterSelected){const e=await this.fetchTeamsScouting(this.seasonsFilterSelected);this.teamselect=0,this.teamselectrec=0,this.teamsscouting=[];for(let t=0;t<e.teams.length;t++)this.teamsscouting.push({id:e.teams[t].team_id,team:e.teams[t].colloquial_name,logo:e.teams[t].logo})}this.loadingActive=!1},abrevName(e){var t=e.split(","),a=t[0].split(" "),s=t[1].trim().split(" "),i="";return 2==a.length||1==a.length?i=4>a[0].length?a[0]+" "+a[1]:a[0]:3==a.length?i=a[0]+" "+a[1]:4==a.length&&(i=a[1]+" "+a[2]+" "+a[3]),(""!=s[s.length-1]?s[s.length-1].charAt(0):s[s.length-2]?s[s.length-2].charAt(0):"")+". "+i.replace(",","")},calcularEdad(e){var t=new Date(e);return Math.floor((new Date-t)/315576e5)},async onFiltersTournaments(e){this.modifidFiltersFlag=!0;var t=[];for(let a=0;a<e.length;a++)e[a].isSelected&&t.push(e[a].id);if(0==t.length&&(t=[1]),1==t.length)for(let a=0;a<e.length;a++)e[a].isSelected&&(this.nameLeagueSelected=e[a].name,this.seasonsFilterSelected=e[a].seasons[0].id);else this.seasonsFilterSelected=0,t.length>0&&(this.nameLeagueSelected=t.length+" Ligas");this.filterScounting.tournaments=t,this.filterScounting.seasonId=e[0].seasons[0].id},onFiltersPersonalData(e){if(this.modifidFiltersFlag=!0,e.hasOwnProperty("ageByRange")){const t=0==e.ageByRange.min?10:e.ageByRange.min,a=0==e.ageByRange.max?40:e.ageByRange.max;this.filterScounting.range_age=[t,a],this.filterScounting.age_or_year=1}else this.filterScounting.range_age=[];e.hasOwnProperty("year")?(this.filterScounting.year=e.year,this.filterScounting.age_or_year=0):this.filterScounting.year=0;var t=[];if(e.hasOwnProperty("nationalities")){for(let a=0;a<e.nationalities.length;a++)e.nationalities[a].isSelected&&t.push(e.nationalities[a].id);0==t.length&&(t=[3,4,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,221,84,85,86,87,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,222,223,224,225,226,227,228,229,230,231,232,233,234,236,237,239])}this.filterScounting.elegibles=[],e.hasOwnProperty("eligibility")&&(this.filterScounting.elegibles=[e.eligibility[0].id]);var a=[];for(let s=0;s<e.positions.length;s++)e.positions[s].isSelected&&a.push(e.positions[s].id);0==a.length&&(a=[1,2,3,4,5,6,7,8,9,10]),this.filterScounting.positions=a,this.filterScounting.nationalities=t},onFiltersUniverse(e){this.modifidFiltersFlag=!0,this.filterScounting.minutes_played=+e.minutesPlayed,this.filterScounting.last_months=+e.lastMonths,this.filterScounting.minutes_played_avg=+e.percentMinutesPlayed,this.filterScounting.type_stats=e.statistics.averagePerGame?3:e.statistics.averagePerMinute?2:1},onFiltersProductivity(e){this.modifidFiltersFlag=!0;var t=[];for(let a=0;a<e.productivityFilters.length;a++)t[e.productivityFilters[a].priority-1]={name:e.productivityFilters[a].name,ids:e.productivityFilters[a].id};0==t.length&&(t=[]),this.filterScounting.categories=t,this.filterScounting.fouls=e.offensesConditions.areFoulsCommittedSelected,this.filterScounting.yellow_cards=e.offensesConditions.areYellowCardsSelected,this.filterScounting.red_cards=e.offensesConditions.areRedCardsSelected},onFiltersGolStats(e){if(e.length>0){var t=this.arrayFiltersPlays.findIndex(e=>"onFiltersPredefined"===e.type);-1!==t?this.arrayFiltersPlays[t].name=e[0].name:this.arrayFiltersPlays.push({name:e[0].name,type:"onFiltersPredefined"}),this.filtersPredefinedF=e[0].filters}else{var a=this.arrayFiltersPlays.findIndex(e=>"onFiltersPredefined"===e.type);if(this.FVfilterGolstats.length>0&&-1!==a){this.filtersPredefinedF=this.filters;for(let e=0;e<this.FVfilterGolstats.length;e++)this.FVfilterGolstats[e].isSelected=!1;-1!==(a=this.arrayFiltersPlays.findIndex(e=>"onFiltersPredefined"===e.type))&&this.arrayFiltersPlays.splice(a,1),this.updateFilterGolstats+=1}}},shouldRender(e){return e<=this.currentIndex},renderNext(){this.currentIndex++,this.currentIndex<this.categoriesDefault.length&&setTimeout(()=>{this.$nextTick(()=>{this.renderNext()})},this.delay)},async onFiltersPlaysTypes(e){if(e.length>0){this.categoryPredefinedActive=!0,this.loadingActive=!0,this.categoryPredefined=e[0].id;var t=this.arrayFiltersPlays.findIndex(e=>"onFiltersPredefined"===e.type);if(this.categoriesDefault.length>0&&-1!==t&&(this.FVfilterGolstats=[],this.filtersPredefinedF={},this.arrayFiltersPlays.splice(t,1),-1!==(a=this.arrayFiltersPlays.findIndex(e=>"onFiltersPredefined"===e.type)))){for(let e=0;e<this.FVfilterGolstats.length;e++)this.FVfilterGolstats[e].isSelected=!1;-1!==a&&this.arrayFiltersPlays.splice(a,1),this.updateFilterGolstats+=1}this.updateTables+=1,setTimeout(()=>{this.loadingActive=!1},1e3),await this.getPredefinedfilters(e[0]),this.FVfilterGolstats.length>0&&(this.onFiltersGolStats([this.FVfilterGolstats[0]]),this.FVfilterGolstats[0].isSelected=!0)}else if(t=this.arrayFiltersPlays.findIndex(e=>"onFiltersPredefinedCategory"===e.type),this.categoriesDefault.length>0&&-1!==t){this.categoryPredefinedActive=!1,this.categoryPredefined=0,this.FVfilterGolstats=[],this.filtersPredefinedF=this.filters,this.arrayFiltersPlays.splice(t,1);for(let e=0;e<this.categoriesDefault.length;e++)this.categoriesDefault[e].isSelected=!1;this.updateFilterPlaytypesGolstats+=1;var a=this.arrayFiltersPlays.findIndex(e=>"onFiltersPredefined"===e.type);if(this.FVfilterGolstats.length>0&&-1!==a){for(let e=0;e<this.FVfilterGolstats.length;e++)this.FVfilterGolstats[e].isSelected=!1;-1!==a&&this.arrayFiltersPlays.splice(a,1),this.updateFilterGolstats+=1}}},deleteCategoryFilter(){this.categoryName="",this.showFullCategory=0,this.showFullTable=!1,delete this.filters.aux},onShowFullTable(e){this.categoryName=e.categoryName,this.showFullCategory=e.category,this.showFullTable=!0,this.loadingActive=!0,setTimeout(()=>{this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,aux:this.getRandomNumber(1,1e4),booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds},this.loadingActive=!1},1e3)},getRandomNumber(e,t){return Math.floor(Math.random()*(t-e+1))+e},applyFiltersBtn(e){},onFiltersPlays(e){if(this.arrayCategoryFilter=[],this.arrayCategoryFilterFull=[],0==e.playsCategories.length){for(let e=0;e<this.categoriesPlaysTypes.offensive.categories.length;e++)this.arrayCategoryFilter.push(this.categoriesPlaysTypes.offensive.categories[e].id),this.arrayCategoryFilterFull.push(this.categoriesPlaysTypes.offensive.categories[e]);for(let e=0;e<this.categoriesPlaysTypes.defensive.categories.length;e++)this.arrayCategoryFilter.push(this.categoriesPlaysTypes.defensive.categories[e].id),this.arrayCategoryFilterFull.push(this.categoriesPlaysTypes.offensive.categories[e]);for(let e=0;e<this.categoriesPlaysTypes.possession.categories.length;e++)this.arrayCategoryFilter.push(this.categoriesPlaysTypes.possession.categories[e].id),this.arrayCategoryFilterFull.push(this.categoriesPlaysTypes.offensive.categories[e]);for(let e=0;e<this.categoriesPlaysTypes.offenses.categories.length;e++)this.arrayCategoryFilter.push(this.categoriesPlaysTypes.offenses.categories[e].id),this.arrayCategoryFilterFull.push(this.categoriesPlaysTypes.offensive.categories[e])}else for(let a=0;a<e.playsCategories.length;a++)e.playsCategories[a].isSelected&&(this.arrayCategoryFilter.push(e.playsCategories[a].id),this.arrayCategoryFilterFull.push(e.playsCategories[a]));var t=this.arrayFiltersPlays.findIndex(e=>"onFiltersPlays"===e.type);this.arrayCategoryFilter.length>0&&23!=this.arrayCategoryFilter.length?1==this.arrayCategoryFilter.length?-1!=t?this.arrayFiltersPlays[t].name=this.arrayCategoryFilterFull[0].name:this.arrayFiltersPlays.push({name:this.arrayCategoryFilterFull[0].name,type:"onFiltersPlays"}):-1!=t?this.arrayFiltersPlays[t].name=this.arrayCategoryFilterFull.length+" Tipos de jugadas":this.arrayFiltersPlays.push({name:this.arrayCategoryFilterFull.length+" Tipos de jugadas",type:"onFiltersPlays"}):-1!==t&&this.arrayFiltersPlays.splice(t,1)},async deleteLabelFilter(e){var t=this.arrayFiltersPlays.findIndex(t=>t.type===e);if(-1!==t){if("onFiltersTournaments"==e){this.rowScoutingData=[];for(let t=0;t<this.detaildProductivityCategories.offensive.categories.length;t++)this.detaildProductivityCategories.offensive.categories[t].isSelected=!1;for(let t=0;t<this.detaildProductivityCategories.defensive.categories.length;t++)this.detaildProductivityCategories.defensive.categories[t].isSelected=!1;for(let t=0;t<this.detaildProductivityCategories.possession.categories.length;t++)this.detaildProductivityCategories.possession.categories[t].isSelected=!1;for(let t=0;t<this.detaildProductivityCategories.offensesConditions.length;t++)this.detaildProductivityCategories.offensesConditions[t]=!1;this.setUpTournamentsToFilter(),this.universeData.minutesPlayed=10,this.universeData.percentMinutesPlayed=0,this.universeData.lastMonths=Array.from({length:24},(e,t)=>t+1),this.universeData.statistics.totals=!0,this.universeData.statistics.averagePerGame=!1,this.universeData.statistics.percentMinutesPlayed=!0;const e=await this.fetchTeamsScouting(this.currentSeasonId);this.teamsscouting=[];for(let t=0;t<e.teams.length;t++)this.teamsscouting.push({id:e.teams[t].team_id,team:e.teams[t].colloquial_name,logo:e.teams[t].logo});this.keyTournamentValue+=1,setTimeout(()=>{this.modifidFiltersFlag=!1},200)}if("onFiltersPlays"==e){for(let e=0;e<this.categoriesPlaysTypes.offensive.categories.length;e++)this.categoriesPlaysTypes.offensive.categories[e].isSelected=!0;for(let e=0;e<this.categoriesPlaysTypes.defensive.categories.length;e++)this.categoriesPlaysTypes.defensive.categories[e].isSelected=!0,this.arrayCategoryFilter.push(),this.arrayCategoryFilterFull.push(this.categoriesPlaysTypes.offensive.categories[e]);for(let e=0;e<this.categoriesPlaysTypes.possession.categories.length;e++)this.categoriesPlaysTypes.possession.categories[e].isSelected=!0;for(let e=0;e<this.categoriesPlaysTypes.offenses.categories.length;e++)this.categoriesPlaysTypes.offenses.categories[e].isSelected=!0}if("onFiltersField"==e&&(this.fVzone=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds}),"onFiltersPredefined"==e){this.filtersPredefinedF=this.filters;for(let e=0;e<this.FVfilterGolstats.length;e++)this.FVfilterGolstats[e].isSelected=!1;this.updateFilterGolstats+=1,this.resetPredefinedTeamAll()}if("onFiltersPredefinedCategory"==e){this.categoryPredefinedActive=!1,this.categoryPredefined=0,this.FVfilterGolstats=[],this.filtersPredefinedF=this.filters;var a=this.arrayFiltersPlays.findIndex(e=>"onFiltersPredefined"===e.type);-1!==a&&this.arrayFiltersPlays.splice(a,1);for(let e=0;e<this.categoriesDefault.length;e++)this.categoriesDefault[e].isSelected=!1;this.updateFilterPlaytypesGolstats+=1}"onFiltersDetailsTime"==e&&(this.detailsObject.gameSections[0].isSelected=!0,this.detailsObject.gameSections[1].isSelected=!0,this.detailsObject.gameSections[2].isSelected=!0,this.detailsObject.gameSections[3].isSelected=!0,this.detailsObject.gameSections[4].isSelected=!0,this.detailsObject.gameSections[5].isSelected=!0,this.fVsections=[1,2,3,4,5,6],this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds}),"onFiltersDetailsPlayingAs"==e&&(this.detailsObject.playingAs[0].isSelected=!0,this.detailsObject.playingAs[1].isSelected=!0,this.fVplayingAs=[1,2],this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds}),"onFiltersNationality"==e&&(this.fVnationalities.add(138),this.fVnationalities.add(222),this.fVnationalities.add(163),this.fVnationalities.add(51),this.fVnationalities.add(226),this.fVnationalities.add(10),this.fVnationalities.add(223),this.fVnationalities.add(96),this.fVnationalities.add(171),this.fVnationalities.add(198),this.fVnationalities.add(105),this.fVnationalities.add(80),this.fVnationalities.add(29),this.fVnationalities.add(74),this.fVnationalities.add(216),this.fVnationalities.add(196),this.fVnationalities.add(64),this.fVnationalities.add(155),this.fVnationalities.add(156),this.fVnationalities.add(89),this.fVnationalities.add(106),this.fVnationalities.add(81),this.fVnationalities.add(233),this.fVnationalities.add(204),this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds},this.$refs.personalDataFilterPlayers.clearFilters(_.personalDataSubFiltersTypes.NATIONALITY)),"onFiltersPosition"==e&&(this.fVsetPositionsIds=[1,2,3,4,5,6,7,8,9],this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds},this.$refs.personalDataFilterPlayers.clearFilters(_.personalDataSubFiltersTypes.POSITION)),"onFiltersAge"==e&&(this.fVarrayAgeRange=[10,40],this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds},this.$refs.personalDataFilterPlayers.clearFilters(_.personalDataSubFiltersTypes.AGE_RANGE)),"onFiltersElegibility"==e&&this.$refs.personalDataFilterPlayers.clearFilters(_.personalDataSubFiltersTypes.ELIGIBILITY),"onFiltersYear"==e&&(this.$refs.personalDataFilterPlayers.clearFilters(_.personalDataSubFiltersTypes.YEAR),this.FVYear=1900,this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds})}this.arrayFiltersPlays.splice(t,1)},onFiltersField(e){0==e.length?this.fVzone=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16]:this.fVzone=e;var t=this.arrayFiltersPlays.findIndex(e=>"onFiltersField"===e.type);-1!=t?this.arrayFiltersPlays[t].name=this.fVzone.length+" zonas del campo":this.arrayFiltersPlays.push({name:this.fVzone.length+" zonas del campo",type:"onFiltersField"}),[1,23,3,4,5,7,6,9,8,11,10,12,13,15,14,17,16,22].includes(this.category)?this.fVtypeZone=1:this.fVtypeZone=2,this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds},16!=e.length?(4==this.fVzone.length&&this.fVzone.includes(1)&&this.fVzone.includes(2)&&this.fVzone.includes(3)&&this.fVzone.includes(4)&&(-1!=t?this.arrayFiltersPlays[t].name="1/4 de cancha":this.arrayFiltersPlays.push({name:"1/4 de cancha",type:"onFiltersField"})),4==this.fVzone.length&&this.fVzone.includes(5)&&this.fVzone.includes(6)&&this.fVzone.includes(7)&&this.fVzone.includes(8)&&(-1!=t?this.arrayFiltersPlays[t].name="2/4 de cancha":this.arrayFiltersPlays.push({name:"2/4 de cancha",type:"onFiltersField"})),4==this.fVzone.length&&this.fVzone.includes(9)&&this.fVzone.includes(10)&&this.fVzone.includes(11)&&this.fVzone.includes(12)&&(-1!=t?this.arrayFiltersPlays[t].name="3/4 de cancha":this.arrayFiltersPlays.push({name:"3/4 de cancha",type:"onFiltersField"})),4==this.fVzone.length&&this.fVzone.includes(13)&&this.fVzone.includes(14)&&this.fVzone.includes(15)&&this.fVzone.includes(16)&&(-1!=t?this.arrayFiltersPlays[t].name="4/4 de cancha":this.arrayFiltersPlays.push({name:"4/4 de cancha",type:"onFiltersField"})),8==this.fVzone.length&&this.fVzone.includes(1)&&this.fVzone.includes(2)&&this.fVzone.includes(3)&&this.fVzone.includes(4)&&this.fVzone.includes(5)&&this.fVzone.includes(6)&&this.fVzone.includes(7)&&this.fVzone.includes(8)&&(-1!=t?this.arrayFiltersPlays[t].name="cancha propia":this.arrayFiltersPlays.push({name:"cancha propia",type:"onFiltersField"})),8==this.fVzone.length&&this.fVzone.includes(9)&&this.fVzone.includes(10)&&this.fVzone.includes(11)&&this.fVzone.includes(12)&&this.fVzone.includes(13)&&this.fVzone.includes(14)&&this.fVzone.includes(15)&&this.fVzone.includes(16)&&(-1!=t?this.arrayFiltersPlays[t].name="cancha rival":this.arrayFiltersPlays.push({name:"cancha rival",type:"onFiltersField"}))):this.arrayFiltersPlays.splice(t,1)},addFilterPlayingAS(){var e=this.arrayFiltersPlays.findIndex(e=>"onFiltersDetailsPlayingAs"===e.type);-1!=e?1==this.fVplayingAs.length?this.arrayFiltersPlays[e].name=this.fVplayingAs.includes(1)?"Local":"Visitante":this.arrayFiltersPlays.splice(e,1):1==this.fVplayingAs.length&&this.arrayFiltersPlays.push({name:this.fVplayingAs.includes(1)?"Local":"Visitante",type:"onFiltersDetailsPlayingAs"})},onFiltersDetails(e){var t=[];this.filters.setNationalitiesIds=this.setNationalitiesIds;var a=[];for(let o=0;o<e.playingAs.length;o++)if(e.playingAs[o].isSelected){const a="Local"==e.playingAs[o].name?1:2;t.push(a)}for(let o=0;o<e.gameSections.length;o++)e.gameSections[o].isSelected&&a.push(e.gameSections[o].value);this.fVsections=a,this.fVplayingAs=t;var s=this.arrayFiltersPlays.findIndex(e=>"onFiltersDetailsTime"===e.type),i="los minutos del ";6!=this.fVsections.length&&this.fVsections.length>0?(this.fVsections.includes(1)&&(i+=", 0-15"),this.fVsections.includes(2)&&(i+=", 15-30"),this.fVsections.includes(3)&&(i+=", 30-45"),this.fVsections.includes(4)&&(i+=", 45-60"),this.fVsections.includes(5)&&(i+=", 60-75"),this.fVsections.includes(6)&&(i+=", 75-90"),-1!=s?this.arrayFiltersPlays[s].name=i:this.arrayFiltersPlays.push({name:i,type:"onFiltersDetailsTime"}),3==this.fVsections.length&&this.fVsections.includes(1)&&this.fVsections.includes(2)&&this.fVsections.includes(3)&&(-1!=s?this.arrayFiltersPlays[s].name="Primer tiempo":this.arrayFiltersPlays.push({name:"Primer tiempo",type:"onFiltersDetailsTime"})),3==this.fVsections.length&&this.fVsections.includes(4)&&this.fVsections.includes(5)&&this.fVsections.includes(6)&&(-1!=s?this.arrayFiltersPlays[s].name="Segundo tiempo":this.arrayFiltersPlays.push({name:"Segundo tiempo",type:"onFiltersDetailsTime"})),1==this.fVsections.length&&this.fVsections.includes(1)&&(-1!=s?this.arrayFiltersPlays[s].name="los primeros 15 minutos del partido":this.arrayFiltersPlays.push({name:"los primeros 15 minutos del partido",type:"onFiltersDetailsTime"})),1==this.fVsections.length&&this.fVsections.includes(3)&&(-1!=s?this.arrayFiltersPlays[s].name="los últimos 15 minutos del primer tiempo":this.arrayFiltersPlays.push({name:"los últimos 15 minutos del primer tiempo",type:"onFiltersDetailsTime"})),1==this.fVsections.length&&this.fVsections.includes(4)&&(-1!=s?this.arrayFiltersPlays[s].name="los primeros 15 minutos del segundo tiempo":this.arrayFiltersPlays.push({name:"los primeros 15 minutos del segundo tiempo",type:"onFiltersDetailsTime"})),1==this.fVsections.length&&this.fVsections.includes(6)&&(-1!=s?this.arrayFiltersPlays[s].name="los últimos 15 minutos del segundo tiempo":this.arrayFiltersPlays.push({name:"los últimos 15 minutos del segundo tiempo",type:"onFiltersDetailsTime"})),2==this.fVsections.length&&this.fVsections.includes(1)&&this.fVsections.includes(2)&&(-1!=s?this.arrayFiltersPlays[s].name="los primeros 30 minutos del partido":this.arrayFiltersPlays.push({name:"los primeros 30 minutos del partido",type:"onFiltersDetailsTime"})),2==this.fVsections.length&&this.fVsections.includes(5)&&this.fVsections.includes(6)&&(-1!=s?this.arrayFiltersPlays[s].name="los últimos 30 minutos del segundo tiempo":this.arrayFiltersPlays.push({name:"los últimos 30 minutos del segundo tiempo",type:"onFiltersDetailsTime"}))):-1!=s&&this.arrayFiltersPlays.splice(s,1),this.addFilterPlayingAS(),this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds}},async resetScouting(){this.universeData.minutesPlayed=0,this.universeData.percentMinutesPlayed=0,this.universeData.lastMonths=Array.from({length:24},(e,t)=>t+1),this.universeData.statistics.totals=!0,this.universeData.statistics.averagePerGame=!1,this.universeData.statistics.percentMinutesPlayed=!1;const e=this.$refs.personalDataFilter;e.clearFilters(_.personalDataSubFiltersTypes.All),e.clearFilters(_.personalDataSubFiltersTypes.AGE_RANGE),e.clearFilters(_.personalDataSubFiltersTypes.YEAR),e.clearFilters(_.personalDataSubFiltersTypes.NATIONALITY),e.clearFilters(_.personalDataSubFiltersTypes.POSITION),this.rowScoutingData=[];for(let s=0;s<this.detaildProductivityCategories.offensive.categories.length;s++)this.detaildProductivityCategories.offensive.categories[s].isSelected=!1;for(let s=0;s<this.detaildProductivityCategories.defensive.categories.length;s++)this.detaildProductivityCategories.defensive.categories[s].isSelected=!1;for(let s=0;s<this.detaildProductivityCategories.possession.categories.length;s++)this.detaildProductivityCategories.possession.categories[s].isSelected=!1;for(let s=0;s<this.detaildProductivityCategories.offensesConditions.length;s++)this.detaildProductivityCategories.offensesConditions[s]=!1;var t=this.arrayFiltersPlays.findIndex(e=>"onFiltersTournaments"===e.type);this.arrayFiltersPlays.splice(t,1),this.setUpTournamentsToFilter();const a=await this.fetchTeamsScouting(this.currentSeasonId);this.teamselect=0,this.teamsscouting=[];for(let s=0;s<a.teams.length;s++)this.teamsscouting.push({id:a.teams[s].team_id,team:a.teams[s].colloquial_name,logo:a.teams[s].logo})},onFiltersData(e){var t=0,a=0;e.ageByRange&&(t=0==e.ageByRange.min?1:e.ageByRange.min,a=0==e.ageByRange.max?40:e.ageByRange.max,this.fVarrayAgeRange=[t,a]),e.year&&(this.FVYear=e.year),this.fVnationalities=new Set;let s="",i="";if(this.fVsetPositionsIds=[],e.hasOwnProperty("nationalities")){this.FVbooleanAreNationalTeamsVisible=!1,this.FVsetAvailableNationalTeamsPlayersIds=new Set;for(let t=0;t<e.nationalities.length;t++)e.nationalities[t].isSelected&&this.fVnationalities.add(e.nationalities[t].id)}if(this.FVeligible=[],e.hasOwnProperty("eligibility")){this.FVbooleanAreNationalTeamsVisible=!0;for(let e=0;e<this.elegibilidadArray.length;e++)this.FVsetAvailableNationalTeamsPlayersIds.add(this.elegibilidadArray[e])}for(let p=0;p<e.positions.length;p++)e.positions[p].isSelected&&this.fVsetPositionsIds.push(e.positions[p].id);if(e.hasOwnProperty("nationalities"))var o=e.nationalities.filter(e=>!0===e.isSelected);var n,l=e.positions.filter(e=>!0===e.isSelected);if(1==l.length&&(s=l[0].name),e.hasOwnProperty("nationalities")&&1==o.length&&(i=o[0].name),setTimeout(()=>{this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,elegible:this.FVeligible,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds}},1e3),this.FVbooleanAreNationalTeamsVisible)-1!=(r=this.arrayFiltersPlays.findIndex(e=>"onFiltersElegibility"===e.type))?this.arrayFiltersPlays[r].name="Elegibles":this.arrayFiltersPlays.push({name:"Elegibles",type:"onFiltersElegibility"});else{var r=this.arrayFiltersPlays.findIndex(e=>"onFiltersElegibility"===e.type);this.arrayFiltersPlays.splice(r,1)}if(9!=this.fVsetPositionsIds.length&&this.fVsetPositionsIds.length>0){var d=this.arrayFiltersPlays.findIndex(e=>"onFiltersPosition"===e.type);-1!=d?this.fVsetPositionsIds.length>0?this.arrayFiltersPlays[d].name=this.fVsetPositionsIds.length>1?this.fVsetPositionsIds.length+" Posiciones de juego":"Posicion de juego "+s:this.arrayFiltersPlays.splice(d,1):this.arrayFiltersPlays.push({name:this.fVsetPositionsIds.length>1?this.fVsetPositionsIds.length+" Posiciones de juego":"Posicion de juego "+s,type:"onFiltersPosition"})}if(0!=this.FVYear&&1900!=this.FVYear&&this.FVYear){var c=this.arrayFiltersPlays.findIndex(e=>"onFiltersYear"===e.type);-1!=c?this.arrayFiltersPlays[c].name=this.FVYear:this.arrayFiltersPlays.push({name:this.FVYear,type:"onFiltersYear"})}if(this.fVarrayAgeRange[0]<e.ageLimits.min||this.fVarrayAgeRange[1]>e.ageLimits.max||(this.fVarrayAgeRange[0]>e.ageLimits.min||this.fVarrayAgeRange[1]<e.ageLimits.max?-1!=(n=this.arrayFiltersPlays.findIndex(e=>"onFiltersAge"===e.type))?this.fVarrayAgeRange.length>0?this.arrayFiltersPlays[n].name=this.fVarrayAgeRange[0]!=this.fVarrayAgeRange[1]?this.fVarrayAgeRange[0]+" - "+this.fVarrayAgeRange[1]+" años":this.fVarrayAgeRange[1]+" años":this.arrayFiltersPlays.splice(n,1):this.arrayFiltersPlays.push({name:this.fVarrayAgeRange[0]!=this.fVarrayAgeRange[1]?this.fVarrayAgeRange[0]+" - "+this.fVarrayAgeRange[1]+" años":this.fVarrayAgeRange[1]+" años",type:"onFiltersAge"}):-1!=(n=this.arrayFiltersPlays.findIndex(e=>"onFiltersAge"===e.type))&&this.arrayFiltersPlays.splice(n,1)),e.hasOwnProperty("nationalities")&&this.fVnationalities.size!=e.nationalities.length&&this.fVnationalities.size>0){var m=this.arrayFiltersPlays.findIndex(e=>"onFiltersNationality"===e.type);-1!=m?this.fVnationalities.size>0?this.arrayFiltersPlays[m].name=this.fVnationalities.size>1?this.fVnationalities.size+" Nacionalidades":"Nacionalidad "+i:this.arrayFiltersPlays.splice(m,1):this.arrayFiltersPlays.push({name:this.fVnationalities.size>1?this.fVnationalities.size+" Nacionalidades":"Nacionalidad "+i,type:"onFiltersNationality"})}},clickAll(e){},clickAllAll(e){},clickTeam(e){},clickTeamScouting(e){},resetFilterTeamAndPlayers(){this.filters={zone:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],playingAs:[1,2],sections:[1,2,3,4,5,6],matchResult:[1,2,3],arrayAgeRange:[1,60],typeZone:1,setNationalitiesIds:this.setNationalitiesIds,setPositionsIds:[1,2,3,4,5,6,7,8,9],setYear:this.FVYear,booleanAreNationalTeamsVisible:!1,setAvailableNationalTeamsPlayersIds:new Set}},async changeTabsGeneral(e){if(this.resetPredefinedTeamAll(),this.showfiltersPc=!0,this.optionSelected=e,this.optionSelectedSubmenu="Todas las jugadas",this.filtersPredefinedF={},this.categoryPredefinedActive=!1,this.categoryPredefined=0,"Equipos"==e&&(this.typeTable=1,this.isTeam=!0,this.updateTables+=1,this.rowScoutingData=[],this.arrayFiltersPlays=[],this.teamselect=0,this.resetFilterTeamAndPlayers(),this.resetScouting()),"Jugadores"==e&&(this.typeTable=0,this.isTeam=!1,this.teamselect=0,this.updateTables+=1,this.rowScoutingData=[],this.resetFilterTeamAndPlayers(),this.resetScouting()),"Scouting"==e){this.rowScoutingData=[],this.teamselect=0,this.arrayFiltersPlays=[];const e=await this.fetchTeamsScouting(this.currentSeasonId);this.teamsscouting=[];for(let t=0;t<e.teams.length;t++)this.teamsscouting.push({id:e.teams[t].team_id,team:e.teams[t].colloquial_name,logo:e.teams[t].logo});setTimeout(()=>{this.modifidFiltersFlag=!1},200),this.resetFilterTeamAndPlayers()}},resetPredefinedTeamAll(){var e=this.arrayFiltersPlays.findIndex(e=>"onFiltersPredefined"===e.type);if(this.categoriesDefault.length>0&&-1!==e){this.categoryPredefinedActive=!1,this.categoryPredefined=0,this.FVfilterGolstats=[],this.filtersPredefinedF={},this.arrayFiltersPlays.splice(e,1);for(let e=0;e<this.categoriesDefault.length;e++)this.categoriesDefault[e].isSelected=!1;this.updateFilterPlaytypesGolstats+=1;var t=this.arrayFiltersPlays.findIndex(e=>"onFiltersPredefined"===e.type);if(-1!==t){for(let e=0;e<this.FVfilterGolstats.length;e++)this.FVfilterGolstats[e].isSelected=!1;-1!==t&&this.arrayFiltersPlays.splice(t,1),this.updateFilterGolstats+=1}}},changeTabsSubmenu(e){"Predeterminados"!=e?this.resetPredefinedTeamAll():this.arrayFiltersPlays=[],this.optionSelectedSubmenu=e},async fetchTournaments(){const e=m.create({headers:{Authorization:""+this.token}}),{data:t}=await e.get(this.tournamentsUrl);return t},async fetchTeams(){const e=m.create({headers:{Authorization:""+this.token}}),{data:t}=await e.get(this.teamsUrl+this.seasonActive);return t},async fetchTeamsScouting(e){const t=m.create({headers:{Authorization:""+this.token}}),{data:a}=await t.get(this.teamsUrl+e);return a},async getPredefinedfilters(e){this.arrayPredefinedFilters=[],this.arrayPredefinedOrigin=[];var t="";e.id,t=this.urlFilter;const a=m.create({headers:{Authorization:""+this.token}}),{data:s}=await a.get(t+e.id);if(Object.keys(s[0].match_lapse_combinations).forEach(e=>{this.predefinedFiltersMatchLapse[e.toString()]=s[0].match_lapse_combinations[e]}),Object.keys(s[0].playing_as_combinations).forEach(e=>{this.predefinedFiltersPlayingAs[e.toString()]=s[0].playing_as_combinations[e]}),Object.keys(s[0].field_sections_combinations).forEach(e=>{this.predefinedFiltersSections[e.toString()]=s[0].field_sections_combinations[e]}),s[0]){for(let t=0;t<s[0].filter_records.length;t++){var i=s[0].description;if(void 0!==s[0].filter_records[t].field_sections){const e=s[0].filter_records[t].field_sections.toString();(this.predefinedFiltersSections[e]||""==this.predefinedFiltersSections[e])&&(i=""==this.predefinedFiltersSections[e]?i.replace(" [en {field_sections}]",this.predefinedFiltersSections[e]):i.replace("{field_sections}",this.predefinedFiltersSections[e]))}if(void 0!==s[0].filter_records[t].match_lapse){const e=s[0].filter_records[t].match_lapse.toString();(this.predefinedFiltersMatchLapse[e]||""==this.predefinedFiltersMatchLapse[e])&&(i=""==this.predefinedFiltersMatchLapse[e]?i.replace(" [durante {match_lapse}]",this.predefinedFiltersMatchLapse[e]):i.replace("{match_lapse}",this.predefinedFiltersMatchLapse[e]))}if(void 0!==s[0].filter_records[t].playing_as){const e=s[0].filter_records[t].playing_as.toString();(this.predefinedFiltersPlayingAs[e]||""==this.predefinedFiltersPlayingAs[e])&&(i=""==this.predefinedFiltersPlayingAs[e]?i.replace(" [jugando como {playing_as}]",this.predefinedFiltersPlayingAs[e]):i.replace("{playing_as}",this.predefinedFiltersPlayingAs[e]))}void 0!==s[0].filter_records[t].section_type&&(i="Jugadores"==this.optionSelected?i.replace("{section_type}","Jugadores"):i.replace("{section_type}","Equipos"));const a=(i=(i=(i=i.replace(/\[/g,"")).replace(/\]/g,"")).replace("{category_name}",s[0].category_name)).split(": ");var o=a[1];o.length>129&&this.windowWidth>1358&&(o=o.substring(0,129),o+="<span id='showIDtootip' class='dots' style='width: 100px; height: 20px; background: red; z-index: 6;'>...</span>"),this.isCup&&2!==s[0].filter_records[t].playing_as.length||this.arrayPredefinedFilters.push({id:t,category_name:e.name,id_category:s[0].id,title:a[0]+":",text:a[1],textOrigin:s[0].description,titledots:o,filtersPredefined:{matchResult:s[0].filter_records[t].match_result,playingAs:s[0].filter_records[t].playing_as,sections:s[0].filter_records[t].match_lapse,type:"Equipos"==this.optionSelected?2:1,typeZone:s[0].type_zone,zone:s[0].filter_records[t].field_sections,end_age:0,start_age:0,nationalities:[],elegible:[],positions:[]}})}var n=[];for(let e=0;e<this.arrayPredefinedFilters.length;e++){var l=0,r=new Set,d={},c=this.arrayPredefinedFilters[e].text.replace(/\*.*?\*/,"");if(c=(c=c.replace(/\*/g,"")).replace(/ +/g," "),this.arrayPredefinedFilters[e].filtersPredefined.elegible.length>0&&(l+=1),0==this.arrayPredefinedFilters[e].filtersPredefined.end_age.length&&0==this.arrayPredefinedFilters[e].filtersPredefined.start_age.length||(l+=1),0!=this.arrayPredefinedFilters[e].filtersPredefined.end_age&&0!=this.arrayPredefinedFilters[e].filtersPredefined.start_age?d.arrayAgeRange=[this.arrayPredefinedFilters[e].filtersPredefined.start_age,this.arrayPredefinedFilters[e].filtersPredefined.end_age]:0==this.arrayPredefinedFilters[e].filtersPredefined.end_age&&0==this.arrayPredefinedFilters[e].filtersPredefined.start_age?d.arrayAgeRange=[1,60]:0!=this.arrayPredefinedFilters[e].filtersPredefined.start_age&&0==this.arrayPredefinedFilters[e].filtersPredefined.end_age?d.arrayAgeRange=[this.arrayPredefinedFilters[e].filtersPredefined.start_age,60]:d.arrayAgeRange=[1,this.arrayPredefinedFilters[e].filtersPredefined.end_age],3!=this.arrayPredefinedFilters[e].filtersPredefined.matchResult.length&&(l+=1),d.matchResult=this.arrayPredefinedFilters[e].filtersPredefined.matchResult,this.arrayPredefinedFilters[e].filtersPredefined.nationalities.length>0&&(l+=1),0!=this.arrayPredefinedFilters[e].filtersPredefined.nationalities.length){for(let t=0;t<this.arrayPredefinedFilters[e].filtersPredefined.nationalities.length;t++)r.add(this.arrayPredefinedFilters[e].filtersPredefined.nationalities[t]);d.setNationalitiesIds=r}else r.add(138),r.add(222),r.add(163),r.add(51),r.add(226),r.add(10),r.add(223),r.add(96),r.add(171),r.add(198),r.add(105),r.add(80),r.add(29),r.add(74),r.add(216),r.add(196),r.add(64),r.add(155),r.add(156),r.add(89),r.add(106),r.add(81),r.add(233),r.add(204),d.setNationalitiesIds=r;2!=this.arrayPredefinedFilters[e].filtersPredefined.playingAs.length&&(l+=1),d.playingAs=this.arrayPredefinedFilters[e].filtersPredefined.playingAs,this.arrayPredefinedFilters[e].filtersPredefined.positions.length>0&&(l+=1),this.arrayPredefinedFilters[e].filtersPredefined.positions.length>0?d.setPositionsIds=this.arrayPredefinedFilters[e].filtersPredefined.positions:d.setPositionsIds=[1,2,3,4,5,6,7,8,9],6!=this.arrayPredefinedFilters[e].filtersPredefined.sections.length&&(l+=1),this.arrayPredefinedFilters[e].filtersPredefined.sections.length>0?d.sections=this.arrayPredefinedFilters[e].filtersPredefined.sections:d.sections=[1,2,3,4,5,6],16!=this.arrayPredefinedFilters[e].filtersPredefined.zone.length&&(l+=1),this.arrayPredefinedFilters[e].filtersPredefined.zone.length>0?d.zone=this.arrayPredefinedFilters[e].filtersPredefined.zone:d.zone=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],d.typeZone=this.arrayPredefinedFilters[e].filtersPredefined.typeZone,n.push({id:e+1,name:c,isSelected:!1,value:l,filters:d})}this.FVfilterGolstats=n,this.updateFilterGolstats+=1,this.arrayPredefinedOrigin=JSON.parse(JSON.stringify(this.arrayPredefinedFilters))}},getTextFilterPredefinedCustom(){this.setDinamicFilters(this.filterEmitAux);var e=this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].textOrigin;const t=this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.zone.sort((e,t)=>e-t).toString();e=this.predefinedFiltersSections[t]||""==this.predefinedFiltersSections[t]?""==this.predefinedFiltersSections[t]?e.replace(" [en {field_sections}]",this.predefinedFiltersSections[t]):e.replace("{field_sections}",this.predefinedFiltersSections[t]):e.replace("{field_sections}",this.predefinedFiltersSections.other);var a=!1;this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.nationalities.size>0?this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.nationalities.size==this.setNationalityIds.size?e=(e=(e=e.replace("[{nationality}]","")).replace("[de las nacionalidades y posiciones seleccionadas]","")).replace("[de las nacionalidades seleccionadas]",""):1==this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.nationalities.size?e=(e=(e=e.replace("[{nationality}]",this.$t(`gentilicios[${[...this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.nationalities][0]}]`))).replace("[de las nacionalidades y posiciones seleccionadas]","")).replace("[de las nacionalidades seleccionadas]",""):this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.positions.size>0&&this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.positions.size!=this.setPositionsIds.size?(a=!0,e=(e=e.replace("[{nationality}]","")).replace("[de las nacionalidades seleccionadas]","")):e=(e=e.replace("[{nationality}]","")).replace("[de las nacionalidades y posiciones seleccionadas]",""):e=(e=(e=e.replace("[{nationality}]","")).replace("[de las nacionalidades y posiciones seleccionadas]","")).replace("[de las nacionalidades seleccionadas]",""),this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.nationalities.size>0?(a||this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.positions.size==this.setPositionsIds.size)&&(e=e.replace("[de las posiciones seleccionadas]","")):e=e.replace("[de las posiciones seleccionadas]",""),e=0!=this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age&&0!=this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.end_age?this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age!=this.arrayAgeRange[0]&&this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.end_age!=this.arrayAgeRange[1]||this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age!=this.arrayAgeRange[0]||this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.end_age!=this.arrayAgeRange[1]?this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age==this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.end_age?(e=e.replace("[de {min_age} a {max_age} años]","")).replace("[de {min_age} años]","[de "+this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age+" años]"):(e=e.replace("[de {min_age} años]","")).replace("[de {min_age} a {max_age} años]","[de "+this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age+" a "+this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.end_age+" años]"):(e=e.replace("[de {min_age} a {max_age} años]","")).replace("[de {min_age} años]",""):(e=e.replace("[de {min_age} años]","")).replace("[de {min_age} a {max_age} años]","");const s=this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.sections.sort().toString();if(this.predefinedFiltersMatchLapse[s]||""==this.predefinedFiltersMatchLapse[s])e=""==this.predefinedFiltersMatchLapse[s]?e.replace(" [durante {match_lapse}]",this.predefinedFiltersMatchLapse[s]):e.replace("{match_lapse}",this.predefinedFiltersMatchLapse[s]);else{e=e.replace("{match_lapse}"," "+this.predefinedFiltersMatchLapse.other);var i="";s.includes(1)&&(i+="0-15, "),s.includes(2)&&(i+="16-30, "),s.includes(3)&&(i+="31-45, "),s.includes(4)&&(i+="46-60, "),s.includes(5)&&(i+="61-75, "),s.includes(6)&&(i+="76-90, "),i=(i=i.slice(0,-2)).replace(/,([^,]*)$/," y $1"),e=e.replace("{match_lapse_selected}",i)}const o=this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.playingAs.sort().toString();(this.predefinedFiltersPlayingAs[o]||""==this.predefinedFiltersPlayingAs[o])&&(e=""==this.predefinedFiltersPlayingAs[o]?e.replace(" [jugando como {playing_as}]",this.predefinedFiltersPlayingAs[o]):e.replace("{playing_as}",this.predefinedFiltersPlayingAs[o]));const n=(e=(e=(e=(e=1==this.typeSelected?1001==this.getUser.tournament?22==this.category.id?e.replace("{section_type}","Porteras"):e.replace("{section_type}","Jugadoras"):22==this.category.id?e.replace("{section_type}","Porteros"):e.replace("{section_type}","Jugadores"):e.replace("{section_type}","Equipos")).replace(/\[/g,"")).replace(/\]/g,"")).replace("{category_name}",this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].category_name)).split(": ");let l=n[1].charAt(0).toUpperCase()+n[1].toLowerCase().slice(1),r=n[1].charAt(0).toUpperCase()+n[1].toLowerCase().slice(1);this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].text=l,this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].title=n[0]+":";const d=r.match(/\*/g);if(d&&d.length)if(d.length%2==0)for(let c=1;c<=d.length;c++)c%2==0||(r=r.replace("*",'<span style="color: #ffff03" >'));else r=r.replaceAll("*","");this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].titledots=r},intervalidtops(e){this.$emit("intervalidtops",e)}},mounted(){null!==sessionStorage.getItem("sidpdfil")&&sessionStorage.setItem("sidpdfil",0),this.renderNext(),0!==this.teamId&&"Scouting"!==this.optionSelected&&this.clickTeam(this.teamId),"Jugadores"!==this.defaultSection&&("Scouting"===this.defaultSection&&this.selectedSeason(this.currentSeasonId),this.changeTabsGeneral(this.defaultSection))},async created(){try{const e=m.create({headers:{"Content-Type":"application/json"}});e.interceptors.request.use(e=>(delete e.headers.Authorization,e));const t=await e.get("https://golstats-microservices.s3.us-west-2.amazonaws.com/eligibles/elegibles.json",{headers:{"Content-Type":"application/json"}});this.elegibilidadArray=t.data,this.fVnationalities.add(138),this.fVnationalities.add(222),this.fVnationalities.add(163),this.fVnationalities.add(51),this.fVnationalities.add(226),this.fVnationalities.add(10),this.fVnationalities.add(223),this.fVnationalities.add(96),this.fVnationalities.add(171),this.fVnationalities.add(198),this.fVnationalities.add(105),this.fVnationalities.add(80),this.fVnationalities.add(29),this.fVnationalities.add(74),this.fVnationalities.add(216),this.fVnationalities.add(196),this.fVnationalities.add(64),this.fVnationalities.add(155),this.fVnationalities.add(156),this.fVnationalities.add(89),this.fVnationalities.add(106),this.fVnationalities.add(81),this.fVnationalities.add(233),this.fVnationalities.add(204)}catch(e){throw Error(e)}}},Sh={ref:"myDivRefTopsFull"},Th={key:0,class:"overlay-loading"},kh=[t.createElementVNode("div",{class:"overlay-loading__spinner"},[t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/balon_liga.png",alt:""})],-1),t.createElementVNode("div",{class:"overlay-loading__text"},"Loading...",-1)],xh=[t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/todoelfut/icn_close.png",style:{width:"10px"}},null,-1)],Ch={key:0,class:"cont-leyemd-multipleleagues"},Ih=t.createElementVNode("img",{class:"img-leyemd-multipleleagues",src:"http://golstatsimages.blob.core.windows.net/images-library/icn-multiples-ligas.png"},null,-1),Ph={key:0,style:{"margin-left":"10px"}},Gh=t.createElementVNode("span",null,"Tipo de Jugada",-1),Fh=t.createElementVNode("span",null,"Filtro GolStats",-1),Ah={key:3,style:{width:"100%",height:"295px"}},Mh=B(wh,[["render",(e,a,s,i,o,n)=>{t.resolveComponent("GSCTournamentSelect"),t.resolveComponent("GSCSeasonSelect");const l=t.resolveComponent("GscSwitchComponent"),r=t.resolveComponent("GSCFilterperteam"),d=t.resolveComponent("GSCFilters"),c=t.resolveComponent("GSCLabel"),m=t.resolveComponent("GSCTopCategory"),p=t.resolveComponent("GSCTableHeader"),h=t.resolveComponent("GSCRowTable"),u=t.resolveComponent("GSCExpandedInfo");return t.openBlock(),t.createElementBlock("div",Sh,[o.loadingActive?(t.openBlock(),t.createElementBlock("div",Th,kh)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.templateLosMejoresClass)},[t.createElementVNode("section",{class:t.normalizeClass(e.containerSectionClass),id:"container-section"},[t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.comdescubreVideosClass)},[t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.menuSectionParentHeaderClass)},[t.createCommentVNode("",!0),t.createCommentVNode("",!0)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.topFiltersParentClass)},[t.createElementVNode("div",{class:t.normalizeClass(e.topFiltersClass),id:"top-filters"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamBarParent)},["Scouting"!=o.optionSelected&&"Equipos"!=o.optionSelected?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.teamBar),id:"team-bar"},[t.createVNode(r,{data:o.teams,"team-id":s.teamId,"background-color":"#172531","contain-border-radius":"8px",onClickTeam:n.clickTeam,onClickAll:n.clickAll},null,8,["data","team-id","onClickTeam","onClickAll"])],2)):t.createCommentVNode("",!0),t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.containerFilters),id:"container-filters",style:t.normalizeStyle(o.showfiltersPc?"":i.elementSize.width>760?"display: none;":"")},[t.createElementVNode("div",{class:t.normalizeClass(e.menuSectionClass),id:"menu-section"},[i.elementSize.width>760&&"Scouting"!=o.optionSelected?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.closeFiltersPc),onClick:a[1]||(a[1]=(...e)=>n.clickCloseFilters&&n.clickCloseFilters(...e))},xh,2)):t.createCommentVNode("",!0),"Scouting"!==o.optionSelected?(t.openBlock(),t.createBlock(l,{key:1,type:2,buttons:["Todas las jugadas","Predeterminados"],"font-family":"Poppins-Regular","selected-option":o.optionSelectedSubmenu,"font-size":e.sizeTabsFontMS,width:e.sizeTabsMS,arrow:!1,borderWidth:"1px","background-option-active":"#172531",background:"#172531",height:"28px",onInput:n.changeTabsSubmenu},null,8,["selected-option","font-size","width","onInput"])):t.createCommentVNode("",!0)],2),t.createCommentVNode("",!0),t.withDirectives(t.createElementVNode("div",{class:t.normalizeClass(e.$style.btnCloseFilters),style:t.normalizeStyle("Scouting"===o.optionSelected?"margin-top: 4%; margin-left: 1%":""),onClick:a[3]||(a[3]=(...e)=>n.openMenuFilters&&n.openMenuFilters(...e))},null,6),[[t.vShow,760>i.elementSize.width&&o.openMenuMobil]]),t.withDirectives(t.createElementVNode("div",{class:t.normalizeClass(e.containerMenuClass),id:"container-menu"},["Todas las jugadas"==o.optionSelectedSubmenu&&"Scouting"!=o.optionSelected?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[i.elementSize.width>0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.withDirectives(t.createVNode(d,t.mergeProps({"button-filter-props":n.filterButtonProps},420>i.elementSize.width?o.expansionPanelModePropsMobil270:760>i.elementSize.width?o.expansionPanelModePropsMobil:o.expansionPanelModeProps,{"filter-type":o.filtersTypes.PLAYS,"show-badge-on-filter-full":!1,"onUpdate:filters":n.onFiltersPlays,filters:o.categoriesPlaysTypes,onApply:n.applyFiltersBtn}),null,16,["button-filter-props","filter-type","onUpdate:filters","filters","onApply"]),[[t.vShow,!o.showFullTable]]),(t.openBlock(),t.createBlock(d,t.mergeProps({"button-filter-props":n.filterButtonProps},420>i.elementSize.width?o.expansionPanelModePropsMobil270:760>i.elementSize.width?o.expansionPanelModePropsMobil:o.expansionPanelModeProps,{key:o.updateFilterField,"filter-type":o.filtersTypes.FIELD,"show-badge-on-filter-full":!1,"onUpdate:filters":n.onFiltersField,filters:o.fVzone}),null,16,["button-filter-props","filter-type","onUpdate:filters","filters"])),t.createVNode(d,t.mergeProps({"button-filter-props":n.filterButtonProps},420>i.elementSize.width?o.expansionPanelModePropsMobil270:760>i.elementSize.width?o.expansionPanelModePropsMobil:o.expansionPanelModeProps,{"filter-type":o.filtersTypes.DETAILS,"show-badge-on-filter-full":!1,"onUpdate:filters":n.onFiltersDetails,filters:o.detailsObject}),null,16,["button-filter-props","filter-type","onUpdate:filters","filters"]),"Jugadores"===o.optionSelected?(t.openBlock(),t.createBlock(d,t.mergeProps({key:0,ref:"personalDataFilterPlayers","button-filter-props":n.filterButtonProps},420>i.elementSize.width?o.expansionPanelModePropsMobil270:760>i.elementSize.width?o.expansionPanelModePropsMobil:o.expansionPanelModeProps,{"filter-type":o.filtersTypes.PERSONAL_DATA,"show-badge-on-filter-full":!1,season:{id:s.seasonActive,tournamentId:o.tournamentSelectedObj.value},token:o.token,"onUpdate:filters":n.onFiltersData}),null,16,["button-filter-props","filter-type","season","token","onUpdate:filters"])):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0),"Scouting"==o.optionSelected?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[i.elementSize.width>0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[(t.openBlock(),t.createBlock(d,t.mergeProps({"button-filter-props":n.filterButtonProps},420>i.elementSize.width?o.expansionPanelModePropsMobil270:760>i.elementSize.width?o.expansionPanelModePropsMobil:o.expansionPanelModeProps,{"filter-type":o.filtersTypes.TOURNAMENTS,"show-badge-on-filter-full":!1,filters:o.tournamentsToFilter,key:o.keyTournamentValue,"onUpdate:filters":n.onFiltersTournaments}),null,16,["button-filter-props","filter-type","filters","onUpdate:filters"])),t.createVNode(d,t.mergeProps({"button-filter-props":n.filterButtonProps},420>i.elementSize.width?o.expansionPanelModePropsMobil270:760>i.elementSize.width?o.expansionPanelModePropsMobil:o.expansionPanelModeProps,{"filter-type":o.filtersTypes.PERSONAL_DATA,"show-badge-on-filter-full":!1,season:{id:o.filterScounting.seasonId,tournamentId:o.filterScounting.tournaments[0]},ref:"personalDataFilter","onUpdate:filters":n.onFiltersPersonalData}),null,16,["button-filter-props","filter-type","season","onUpdate:filters"]),t.createVNode(d,t.mergeProps({"button-filter-props":n.filterButtonProps},420>i.elementSize.width?o.expansionPanelModePropsMobil270:760>i.elementSize.width?o.expansionPanelModePropsMobil:o.expansionPanelModeProps,{"filter-type":o.filtersTypes.UNIVERSE,"show-badge-on-filter-full":!1,filters:o.universeData,"onUpdate:filters":n.onFiltersUniverse}),null,16,["button-filter-props","filter-type","filters","onUpdate:filters"]),t.createVNode(d,t.mergeProps({"button-filter-props":n.filterButtonProps},420>i.elementSize.width?o.expansionPanelModePropsMobil270:760>i.elementSize.width?o.expansionPanelModePropsMobil:o.expansionPanelModeProps,{"filter-type":o.filtersTypes.PRODUCTIVITY,"show-badge-on-filter-full":!1,"onUpdate:filters":n.onFiltersProductivity,filters:o.detaildProductivityCategories}),null,16,["button-filter-props","filter-type","onUpdate:filters","filters"])],64)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.BtnSearchScountingcom),onClick:a[4]||(a[4]=(...e)=>n.getScoutingData&&n.getScoutingData(...e))},"Buscar",2)],64)):t.createCommentVNode("",!0),"Predeterminados"==o.optionSelectedSubmenu&&"Scouting"!=o.optionSelected?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[(t.openBlock(),t.createBlock(d,t.mergeProps({"button-filter-props":n.filterButtonProps,modalHeight:"300px"},420>i.elementSize.width?o.expansionPanelModePropsMobil270:760>i.elementSize.width?o.expansionPanelModePropsMobil:o.expansionPanelModePropsTypePlays,{"filter-type":o.filtersTypes.PLAYS_TYPES,"show-badge-on-filter-full":!1,key:o.updateFilterPlaytypesGolstats,"onUpdate:filters":n.onFiltersPlaysTypes,filters:o.categoriesDefault}),null,16,["button-filter-props","filter-type","onUpdate:filters","filters"])),(t.openBlock(),t.createBlock(d,t.mergeProps({"button-filter-props":n.filterButtonProps,modalHeight:"300px"},420>i.elementSize.width?o.expansionPanelModePropsMobil270:760>i.elementSize.width?o.expansionPanelModePropsMobil:o.expansionPanelModeProps,{"filter-type":o.filtersTypes.GOLSTATS,"show-badge-on-filter-full":!1,key:o.updateFilterGolstats,"onUpdate:filters":n.onFiltersGolStats,filters:n.filterGolstats}),null,16,["button-filter-props","filter-type","onUpdate:filters","filters"]))],64)):t.createCommentVNode("",!0)],2),[[t.vShow,i.elementSize.width>760||o.openMenuMobil]]),"Scouting"==o.optionSelected?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.teamBar),id:"team-bar"},[o.filterScounting.tournaments.length>1&&o.rowScoutingData.length>0?(t.openBlock(),t.createElementBlock("div",Ch,[Ih,t.createElementVNode("div",{class:t.normalizeClass(e.comextleyemdmultipleleaguesClass)}," El filtro por equipos solo se pude utilizar cuando se tiene maximo 1 liga seleccionada ",2)])):(t.openBlock(),t.createBlock(r,{data:o.teamsscouting,"team-id":o.teamselectrec,"background-color":"#172531","contain-border-radius":"8px",key:o.updateFilterTeamsScouting,onClickTeam:n.clickTeamScouting,onClickAll:n.clickAllAll},null,8,["data","team-id","onClickTeam","onClickAll"]))],2)):t.createCommentVNode("",!0)],6)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.containerTheBestClass),id:"container-the-best"},[t.createElementVNode("div",{class:t.normalizeClass(e.titleSectionClass)},["Predeterminados"!=o.optionSelectedSubmenu?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.commejoresJugadoresClass)},[o.arrayFiltersPlays.length>0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},["Scouting"!=o.optionSelected?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Mejores jugadores: ")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("Jugadores más productivos: ")],64))],64)):t.createCommentVNode("",!0)],2)):t.createCommentVNode("",!0),"Scouting"!=o.optionSelected&&"Predeterminados"!=o.optionSelectedSubmenu?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[o.showFullTable?(t.openBlock(),t.createElementBlock("div",Ph,[t.createVNode(c,{"text-value":"Categoría - "+o.categoryName+" ","font-size":"11px","font-color":"rgba(255, 255, 255, 0.7)",onClickClose:n.deleteCategoryFilter,icon:"https://golstatsimages.blob.core.windows.net/todoelfut/icn_close.png","icon-size":"6px",height:"20px"},null,8,["text-value","onClickClose"])])):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(o.arrayFiltersPlays,(e,a)=>(t.openBlock(),t.createElementBlock("div",{key:a,style:{"margin-left":"10px"}},[t.createVNode(c,{"text-value":e.name+" ","font-size":"11px","font-color":"rgba(255, 255, 255, 0.7)",onClickClose:n.deleteLabelFilter,id:e.type,icon:"https://golstatsimages.blob.core.windows.net/todoelfut/icn_close.png","icon-size":"6px",height:768>i.elementSize.width?"auto":"20px"},null,8,["text-value","onClickClose","id","height"])]))),128)),0!=o.rowScoutingData.length||"Predeterminados"==o.optionSelectedSubmenu&&-1!==o.arrayFiltersPlays.findIndex(e=>"onFiltersPredefined"===e.type)?(t.openBlock(),t.createElementBlock("div",{key:2,class:t.normalizeClass(e.comquitarFiltrosClass),onClick:a[5]||(a[5]=(...e)=>n.onClickDeleteFilter&&n.onClickDeleteFilter(...e))}," Quitar filtros ",2)):t.createCommentVNode("",!0),t.createCommentVNode("",!0)],2),0!=s.seasonActive?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.containerTablesClass),id:"container-tables",style:t.normalizeStyle(o.showFullTable?"gap: 0px!important;":"")},["Scouting"!==o.optionSelected?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},["Todas las jugadas"==o.optionSelectedSubmenu?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(o.categoriesDefault,(a,i)=>(t.openBlock(),t.createElementBlock("div",{key:i,style:t.normalizeStyle(!o.showOnlyCategories&&o.arrayCategoryFilter.includes(a.id)?"":"display:none !important;")},[t.withDirectives(t.createElementVNode("div",{class:t.normalizeClass(e.toniKroosWrapperClass)},[(t.openBlock(),t.createBlock(m,{"is-widget":s.isWidget,"team-widget":s.teamWidget,"time-live-comparative-avanced":s.timeLiveComparativeAvanced,"is-team":o.isTeam,onMore:n.onShowFullTable,"border-width":0,onIntervalidtops:n.intervalidtops,"can-play-videos":s.canPlayVideos,"border-radius":"12px","game-id":s.gameId,game:s.game,typeData:s.typeData,"filters-prop":n.filterChange,category:a.id,"type-table":o.typeTable,categoryName:a.name,"season-selected":s.seasonSelected,season:s.seasonActive,"filter-team":s.teamselect,key:o.updateTables,onClickprofile:n.clickprofile,onSetopenmedia:n.setOpenMedia},null,8,["is-widget","team-widget","time-live-comparative-avanced","is-team","onMore","onIntervalidtops","can-play-videos","game-id","game","typeData","filters-prop","category","type-table","categoryName","season-selected","season","filter-team","onClickprofile","onSetopenmedia"]))],2),[[t.vShow,!o.showOnlyCategories&&o.arrayCategoryFilter.includes(a.id)&&!o.showFullTable]])],4))),128)),o.showFullTable?(t.openBlock(),t.createBlock(m,{"time-live-comparative-avanced":s.timeLiveComparativeAvanced,"is-team":o.isTeam,"is-widget":s.isWidget,"team-widget":s.teamWidget,"border-width":0,"border-radius":"12px","game-id":s.gameId,onIntervalidtops:n.intervalidtops,game:s.game,typeData:s.typeData,category:o.showFullCategory,type:1,"type-table":o.typeTable,categoryName:"","filters-prop":n.filterChange,"season-selected":s.seasonSelected,season:s.seasonActive,"filter-team":s.teamselect,key:o.updateTablesfull,onClickprofile:n.clickprofile,onSetopenmedia:n.setOpenMedia},null,8,["time-live-comparative-avanced","is-team","is-widget","team-widget","game-id","onIntervalidtops","game","typeData","category","type-table","filters-prop","season-selected","season","filter-team","onClickprofile","onSetopenmedia"])):t.createCommentVNode("",!0)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[o.categoryPredefinedActive?(t.openBlock(),t.createBlock(m,{"is-widget":s.isWidget,"team-widget":s.teamWidget,"is-team":o.isTeam,"time-live-comparative-avanced":s.timeLiveComparativeAvanced,onIntervalidtops:n.intervalidtops,"border-width":0,"border-radius":"12px","can-play-videos":s.canPlayVideos,"game-id":s.gameId,game:s.game,typeData:s.typeData,category:o.categoryPredefined,type:1,"type-table":o.typeTable,categoryName:"","filters-prop":n.filterChangePredefined,"season-selected":s.seasonSelected,season:s.seasonActive,"filter-team":s.teamselect,key:o.updateTables,onClickprofile:n.clickprofile,onSetopenmedia:n.setOpenMedia},null,8,["is-widget","team-widget","is-team","time-live-comparative-avanced","onIntervalidtops","can-play-videos","game-id","game","typeData","category","type-table","filters-prop","season-selected","season","filter-team","onClickprofile","onSetopenmedia"])):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.containerPredefinedcom)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.titleContainerPredefinedcom)},[0==o.arrayFiltersPlays.length?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("No has seleccionado ningún filtro")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("No existen resultados")],64))],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.subtitleContainerPredefinedcom)},[0==o.arrayFiltersPlays.length?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Para visualizar resultados selecciona un")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("No existen resultados con los filtros")],64))],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.subtitleContainerPredefinedcom)},[0==o.arrayFiltersPlays.length?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[Gh,t.createTextVNode(" y un "),Fh,t.createTextVNode(" en la")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("que has seleccionado.")],64))],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.subtitleContainerPredefinedcom)},[0==o.arrayFiltersPlays.length?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("parte superior.")],64)):t.createCommentVNode("",!0)],2)],2))],64))],64)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.containerPredefinedScountingcom),style:t.normalizeStyle(o.rowScoutingData.length>0?"height: auto;":"")},[o.loadingActive?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[o.rowScoutingData.length>0?(t.openBlock(),t.createBlock(p,{key:0,background:"#183143",type:2})):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(o.rowScoutingData,(e,a)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:a},[0==o.teamselectrec||o.teamselectrec==e.team_id?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createVNode(h,{type:2,"is-expanded":o.playerexpand==e.id&&o.expand,onMediadata:n.setMediaData,data:{position:e.position,player_name:e.player_name,player_photo:e.player_photo,total:e.total,id:e.id,player_age:e.player_age,team_abrev:e.team_abrev,team_logo:e.team_logo,player_position:o.positions[e.player_position-1].fullname,player_country_flag:e.player_country_flag,player_games:e.player_games,player_min:e.player_min,league_name:e.league_name,seasons:e.seasons,season_id:e.season_id},height:"71px",background:a%2==0?s.backgroundOdd:s.backgroundEven,onExpand:n.clickexpand},null,8,["is-expanded","onMediadata","data","background","onExpand"]),o.expand&&o.playerexpand==e.id?(t.openBlock(),t.createBlock(u,{key:0,type:0,"view-effectiveness":!1,viewGoals:!1,additionalClass:"fullTable",data:{teams:e.team_name,age:e.player_age,dataofbirth:e.date,nationality:e.nationality_name,countryFlag:e.player_country_flag,position:o.positions[e.player_position-1].name,games:e.player_games,min:e.player_min,goals:e.total,effectiveness:"-",category:"total",id:e.id},onViewprofile:t=>n.viewprofile(t,e.season_id,e.team_id),background:a%2==0?s.backgroundOdd:s.backgroundEven},null,8,["data","onViewprofile","background"])):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)],64))),128))],64)),0!=o.rowScoutingData.length||o.loadingActive?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.btnLeyendTxtcom)},' Haz click en "Buscar" para aplicar tus filtros ',2)),0!=o.rowScoutingData.length||o.loadingActive?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",{key:2,class:t.normalizeClass(e.$style.containerScountingBtncom)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.btnDeleteAplicacom),onClick:a[6]||(a[6]=(...e)=>n.onClickDeleteFilter&&n.onClickDeleteFilter(...e))}," Eliminar filtros aplicados ",2),0==o.rowScoutingData.length?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.SearchBtnBarcom),onClick:a[7]||(a[7]=(...e)=>n.getScoutingData&&n.getScoutingData(...e))}," Buscar ",2)):t.createCommentVNode("",!0)],2)),o.loadingActive?(t.openBlock(),t.createElementBlock("div",Ah)):t.createCommentVNode("",!0)],6))],6)):t.createCommentVNode("",!0)],2)],2)],2)],2)],512)}],["__cssModules",{$style:{comfiltersContainer:"_comfiltersContainer_xl2as_1",comfiltersContainer1232:"_comfiltersContainer1232_xl2as_1",closeFiltersPc:"_closeFiltersPc_xl2as_1",comtextleyemdmultipleleagues:"_comtextleyemdmultipleleagues_xl2as_1",comtextleyemdmultipleleagues380:"_comtextleyemdmultipleleagues380_xl2as_1",comfiltersContainer760:"_comfiltersContainer760_xl2as_1",comfiltersContainer460:"_comfiltersContainer460_xl2as_1",comcontainerSection:"_comcontainerSection_xl2as_1",comcontainerSection1232:"_comcontainerSection1232_xl2as_1",comcontainerSection960:"_comcontainerSection960_xl2as_1",comcontainerSection320:"_comcontainerSection320_xl2as_1",comcontainerSection350:"_comcontainerSection350_xl2as_1",comtemplateLosMejores1:"_comtemplateLosMejores1_xl2as_1",comtemplateLosMejores11232:"_comtemplateLosMejores11232_xl2as_1",comtemplateLosMejores1960:"_comtemplateLosMejores1960_xl2as_1",comtemplateLosMejores1420:"_comtemplateLosMejores1420_xl2as_1",comtemplateLosMejores1320:"_comtemplateLosMejores1320_xl2as_1",comtemplateLosMejores1540:"_comtemplateLosMejores1540_xl2as_1",comtemplateLosMejores1350:"_comtemplateLosMejores1350_xl2as_1",comtopFiltersParent:"_comtopFiltersParent_xl2as_1",comtopFiltersParent1232:"_comtopFiltersParent1232_xl2as_1",comtopFiltersParent960:"_comtopFiltersParent960_xl2as_1",comtopFiltersParent460:"_comtopFiltersParent460_xl2as_1",comtopFiltersParent420:"_comtopFiltersParent420_xl2as_1",comcontainerTheBest:"_comcontainerTheBest_xl2as_1",comcontainerTheBest1232:"_comcontainerTheBest1232_xl2as_1",comcontainerTheBest960:"_comcontainerTheBest960_xl2as_1",comcontainerTheBest320:"_comcontainerTheBest320_xl2as_1",comtitleSection:"_comtitleSection_xl2as_1",comtitleSection540:"_comtitleSection540_xl2as_1",comcontainerTables:"_comcontainerTables_xl2as_1",comcontainerTables960:"_comcontainerTables960_xl2as_1",comcontainerTables760:"_comcontainerTables760_xl2as_1",comcontainerTables320:"_comcontainerTables320_xl2as_1",comtoniKroosWrapper:"_comtoniKroosWrapper_xl2as_1",comtoniKroosWrapper1080:"_comtoniKroosWrapper1080_xl2as_1",comtoniKroosWrapper975:"_comtoniKroosWrapper975_xl2as_1",comtoniKroosWrapper760:"_comtoniKroosWrapper760_xl2as_1",comtoniKroosWrapper420:"_comtoniKroosWrapper420_xl2as_1",comtoniKroosWrapper320:"_comtoniKroosWrapper320_xl2as_1",frameChild:"_frameChild_xl2as_1",filtros:"_filtros_xl2as_1",groupParent:"_groupParent_xl2as_1",shapeIcon:"_shapeIcon_xl2as_1",btnFilters:"_btnFilters_xl2as_1",btnFiltersPC:"_btnFiltersPC_xl2as_1",comquitarFiltros:"_comquitarFiltros_xl2as_1",comquitarFiltros730:"_comquitarFiltros730_xl2as_1",comquitarFiltros480:"_comquitarFiltros480_xl2as_1",comquitarFiltros380:"_comquitarFiltros380_xl2as_1",btnCloseFilters:"_btnCloseFilters_xl2as_1",commejoresJugadores:"_commejoresJugadores_xl2as_1",commejoresJugadores730:"_commejoresJugadores730_xl2as_1",commejoresJugadores480:"_commejoresJugadores480_xl2as_1",mejoresJugadoresSM:"_mejoresJugadoresSM_xl2as_1",toniKroos:"_toniKroos_xl2as_1",teamBar:"_teamBar_xl2as_1",commenuSection:"_commenuSection_xl2as_1",commenuSection960:"_commenuSection960_xl2as_1",comcontainerMenu:"_comcontainerMenu_xl2as_1",comcontainerMenu760:"_comcontainerMenu760_xl2as_1",containerFilters:"_containerFilters_xl2as_1",teamBarParent:"_teamBarParent_xl2as_1",comtopFilters:"_comtopFilters_xl2as_1",comtopFilters1232:"_comtopFilters1232_xl2as_1",comtopFilters420:"_comtopFilters420_xl2as_1",comtopFilters460:"_comtopFilters460_xl2as_1",comlosMejores:"_comlosMejores_xl2as_1",comlosMejores380:"_comlosMejores380_xl2as_1",comlosMejores530:"_comlosMejores530_xl2as_1",comlosMejores730:"_comlosMejores730_xl2as_1",commenuSectionHeader:"_commenuSectionHeader_xl2as_1",commenuSectionHeader1232:"_commenuSectionHeader1232_xl2as_1",commenuSectionHeader960:"_commenuSectionHeader960_xl2as_1",commenuSectionHeader730:"_commenuSectionHeader730_xl2as_1",comdropdown:"_comdropdown_xl2as_1",comdropdown730:"_comdropdown730_xl2as_1",comdropdown1:"_comdropdown1_xl2as_1",comdropdown1730:"_comdropdown1730_xl2as_1",comdropdownParent:"_comdropdownParent_xl2as_1",comdropdownParent730:"_comdropdownParent730_xl2as_1",commenuSectionParentHeader:"_commenuSectionParentHeader_xl2as_1",commenuSectionParentHeader1232:"_commenuSectionParentHeader1232_xl2as_1",commenuSectionParentHeader960:"_commenuSectionParentHeader960_xl2as_1",commenuSectionParentHeader730:"_commenuSectionParentHeader730_xl2as_1",commenuSectionParentHeader430:"_commenuSectionParentHeader430_xl2as_1",comdescubreVideos:"_comdescubreVideos_xl2as_1",comdescubreVideos1232:"_comdescubreVideos1232_xl2as_1",comdescubreVideos960:"_comdescubreVideos960_xl2as_1",allCategories:"_allCategories_xl2as_1",containerScountingBtncom:"_containerScountingBtncom_xl2as_3",btnDeleteAplicacom:"_btnDeleteAplicacom_xl2as_13",SearchBtnBarcom:"_SearchBtnBarcom_xl2as_33",btnLeyendTxtcom:"_btnLeyendTxtcom_xl2as_52",BtnSearchScountingcom:"_BtnSearchScountingcom_xl2as_61",containerPredefinedcom:"_containerPredefinedcom_xl2as_85",containerPredefinedScountingcom:"_containerPredefinedScountingcom_xl2as_92",titleContainerPredefinedcom:"_titleContainerPredefinedcom_xl2as_100",subtitleContainerPredefinedcom:"_subtitleContainerPredefinedcom_xl2as_111"}}]]);let Lh=null;const Oh={components:{GSCDatosGSMain:Dm,GSCCheckbox:r.GSCCheckbox,GSCRadioToggle:rl,GSCTopFull:Mh},props:{isWidget:{type:Boolean,default:!1},teamWidget:{type:Number,default:0},timeLiveComparativeBestPlayers:{type:Number,default:6e4},timeLiveComparativeAvanced:{type:Number,default:6e4},seasonSelected:{type:Object,default:()=>({})},tournamentSelected:{type:Object,default:()=>({})},game:{type:Object,default(){}},playVideosPrivileges:{type:Object,default:null},canPlayVideos:{type:Boolean,default:!1}},data(){return{updateHomeCheck:0,updateAwayCheck:0,activeSection:"destacados",widthSection:0,teamactive:0,update:0,homeTeamCheck:!0,awayTeamCheck:!0,typeViewData:1}},watch:{game:{deep:!0,immediate:!0,handler(e){e&&(1==e.game_status||1==e.is_live||0==e.game_status?this.typeViewData=1:this.typeViewData=0),this.update+=1}}},computed:{},methods:{preventChange(e){e.preventDefault(),this.homeTeamCheck=!0},intervalidgs(e){this.$emit("intervalidgs",e)},onOpenProfileTeam(e){this.$emit("openProfileTeam",e)},intervalidtops(e){this.$emit("intervalidtops",e)},onOpenProfilePlayer(e){this.$emit("onOpenProfile",e)},ChangeRadio(e){"string"==typeof e&&(this.typeViewData="Este partido"===e?1:0)},onCheckInactiveHome(e){e?(this.homeTeamCheck=!0,this.awayTeamCheck?this.teamactive=0:this.teamactive=this.game.homeTeam.team_id):this.awayTeamCheck?(this.homeTeamCheck=!1,this.teamactive=this.game.awayTeam.team_id):(this.updateHomeCheck+=1,this.homeTeamCheck=!0,this.teamactive=this.game.homeTeam.team_id)},onCheckInactiveAway(e){e?(this.awayTeamCheck=!0,this.homeTeamCheck?this.teamactive=0:this.teamactive=this.game.awayTeam.team_id):this.homeTeamCheck?(this.awayTeamCheck=!1,this.teamactive=this.game.homeTeam.team_id):(this.updateAwayCheck+=1,this.teamactive=this.game.awayTeam.team_id,this.awayTeamCheck=!0)},setUpResizeObserver(){if(!window.ResizeObserver)throw Error("Resize observer not supported!");Lh=new ResizeObserver(()=>{this.widthSection=this.$refs.comparative.clientWidth}),Lh.observe(this.$refs.comparative)},clickOptSection(e){this.activeSection=e},openmedia(e){1===this.typeViewData?(e.gameIdsToFilter=[this.game.gameId],this.$emit("openmedia",e)):(e.isLiveAccumulated=!0,this.$emit("openmedia",e))}},async mounted(){setTimeout(()=>{this.setUpResizeObserver()},1e3)}},Nh={class:"container-comparative",ref:"comparative"},Dh={class:"container-btn"},Vh={class:"items-container-btn"},zh={class:"container-sections"},jh={key:0,class:"container-teams-menu"},Bh={class:"container-team-menu-home"},Rh=["src"],qh=(e=>(t.pushScopeId("data-v-849e2f3d"),e=e(),t.popScopeId(),e))(()=>t.createElementVNode("div",{class:"container-team-menu-separator"},null,-1)),Eh={class:"container-team-menu-away"},Jh=["src"],Wh={key:1,class:"container-switch-menu"},Hh={class:"container-leyend"},Uh={class:"container-tops"},Zh=B(Oh,[["render",(e,a,s,i,o,n)=>{const l=t.resolveComponent("GSCDatosGSMain"),r=t.resolveComponent("GSCCheckbox"),d=t.resolveComponent("GSCRadioToggle"),c=t.resolveComponent("GSCTopFull");return t.openBlock(),t.createElementBlock("div",Nh,[t.createElementVNode("div",Dh,[t.createElementVNode("div",Vh,[t.createElementVNode("div",{class:t.normalizeClass([o.widthSection>480?"btn-destacados":"btn-destacados-movil","destacados"==o.activeSection?"active":""]),onClick:a[0]||(a[0]=e=>n.clickOptSection("destacados"))},[1==s.game.status||1==s.game.is_live?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[1==s.tournamentSelected.is_female?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Jugadoras destacadas")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("Jugadores destacados")],64))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("General")],64))],2),t.createElementVNode("div",{class:t.normalizeClass([o.widthSection>480?"btn-avanced":"btn-avanced-movil","avanzado"==o.activeSection?"active":""]),onClick:a[1]||(a[1]=e=>n.clickOptSection("avanzado"))}," Avanzado ",2)])]),t.createElementVNode("div",zh,["destacados"==o.activeSection?(t.openBlock(),t.createBlock(l,{key:0,"is-widget":s.isWidget,"team-widget":s.teamWidget,"tournament-selected":s.tournamentSelected,"time-live-comparative-best-players":s.timeLiveComparativeBestPlayers,game:s.game,"play-videos-privileges":s.playVideosPrivileges,onOpenmedia:n.openmedia,onIntervalidgs:n.intervalidgs},null,8,["is-widget","team-widget","tournament-selected","time-live-comparative-best-players","game","play-videos-privileges","onOpenmedia","onIntervalidgs"])):t.createCommentVNode("",!0),"avanzado"==o.activeSection?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[s.isWidget?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",jh,[t.createElementVNode("div",Bh,[(t.openBlock(),t.createBlock(r,{fontFamily:"Poppins-Regular","onUpdate:modelValue":n.onCheckInactiveHome,"label-color":"#8c9399",width:"25",key:o.updateHomeCheck,"model-value":o.homeTeamCheck,height:"25",style:{"margin-top":"-4px"}},null,8,["onUpdate:modelValue","model-value"])),t.createElementVNode("img",{class:"img-teams-selector-home",width:"23",src:s.game.homeTeam.logo},null,8,Rh),t.createElementVNode("div",{class:t.normalizeClass(o.widthSection>390?"label-team-home":"label-team-home-movil")},t.toDisplayString(s.game.homeTeam.colloquial_name),3)]),qh,t.createElementVNode("div",Eh,[t.createElementVNode("div",{class:t.normalizeClass(o.widthSection>390?"label-team-away":"label-team-away-movil")},t.toDisplayString(s.game.awayTeam.colloquial_name),3),t.createElementVNode("img",{class:"img-teams-selector-away",width:"23",src:s.game.awayTeam.logo},null,8,Jh),(t.openBlock(),t.createBlock(r,{fontFamily:"Poppins-Regular","onUpdate:modelValue":n.onCheckInactiveAway,"label-color":"#8c9399",width:"25",key:o.updateAwayCheck,"model-value":o.awayTeamCheck,height:"25",style:{"margin-top":"-4px"}},null,8,["onUpdate:modelValue","model-value"]))])])),s.game.is_live||1===s.game.status||0===s.game.status?(t.openBlock(),t.createElementBlock("div",Wh,[t.createVNode(d,{height:"20px",width:"41px","background-color":"none","width-circle":"15px","height-circle":"15px","circle-color-switch":"#CBEE6B","font-color":"#ffffff","value-default":1==o.typeViewData?"Este partido":"Acumulado",textOptionLeft:"Este partido",textOptionRight:"Acumulado",onChange:n.ChangeRadio},null,8,["value-default","onChange"])])):t.createCommentVNode("",!0),t.createElementVNode("div",Hh,[1==o.typeViewData?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(" Jugadas destacadas durante este partido ")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[1==s.game.status?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(" Jugadas destacadas durante el torneo ")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[1==s.tournamentSelected.is_female?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Jugadoras destacadas durante lo que va del torneo")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("Jugadores destacados durante lo que va del torneo")],64))],64))],64))]),t.createElementVNode("div",Uh,[t.createVNode(c,{"is-widget":s.isWidget,"team-widget":s.teamWidget,"time-live-comparative-avanced":s.timeLiveComparativeAvanced,"can-play-videos":s.canPlayVideos,onOpenmedia:n.openmedia,onOpenProfileTeam:n.onOpenProfileTeam,onIntervalidtops:n.intervalidtops,onOpenProfilePlayer:n.onOpenProfilePlayer,"type-data":o.typeViewData,"game-id":s.game.gameId,game:s.game,"current-season-id":s.game.seasonId,"team-id":o.teamactive,"season-active":s.game.seasonId,"season-selected":s.seasonSelected,teamselect:o.teamactive},null,8,["is-widget","team-widget","time-live-comparative-avanced","can-play-videos","onOpenmedia","onOpenProfileTeam","onIntervalidtops","onOpenProfilePlayer","type-data","game-id","game","current-season-id","team-id","season-active","season-selected","teamselect"])])],64)):t.createCommentVNode("",!0)])],512)}],["__scopeId","data-v-849e2f3d"]]),$h={class:"datagame-container"},Xh=B({h:"GSCPositining",props:{game:{type:Object,default:()=>({})}},setup(e){return(a,s)=>(t.openBlock(),t.createElementBlock("div",$h,[t.createVNode(t.unref(x.GscPositioning),{game:e.game},null,8,["game"])]))}},[["__scopeId","data-v-47e1f007"]]),Yh={class:"datagame-container"},Kh=B({h:"GSCTacticaFijaMain",props:{game:{type:Object,default:()=>({})},isTacticVisible:{type:Boolean,default:!0},isSynchronization:{type:Boolean,default:!1},tournamentSelected:{type:Object,default:()=>({})},canPlayVideos:{type:Boolean,default:!0},videoPrivilegesPlayingAs:{type:Set,default:()=>new Set([1,2])}},emits:["open-media-player"],setup(e,{emit:a}){function s(e){a("open-media-player",e)}return(a,i)=>(t.openBlock(),t.createElementBlock("div",Yh,[t.createVNode(t.unref(C.GSCSetPiece),{game:{id:e.game.gameId,home_team:e.game.homeTeam.team_id,away_team:e.game.awayTeam.team_id,season:e.game.seasonId,regularSeasonId:e.game.regularSeasonId,game_status:e.game.game_status,home_acronym:e.game.homeTeam.acronym,away_acronym:e.game.awayTeam.acronym,logo_home:"https://golstatsimages.blob.core.windows.net/teams-80/"+e.game.homeTeam.team_id+".png",logo_away:"https://golstatsimages.blob.core.windows.net/teams-80/"+e.game.awayTeam.team_id+".png"},"tournament-selected":e.tournamentSelected,"for-season":4===e.game.game_status,"for-team":!1,"for-game":4!==e.game.game_status,"is-tactic-visible":e.isTacticVisible,"is-synchronization":e.isSynchronization,"can-play-videos":e.canPlayVideos,"video-privileges-playing-as":e.videoPrivilegesPlayingAs,onOpenMediaPlayer:s},null,8,["game","tournament-selected","for-season","for-game","is-tactic-visible","is-synchronization","can-play-videos","video-privileges-playing-as"])]))}},[["__scopeId","data-v-e2f3bba7"]]),Qh=e=>(t.pushScopeId("data-v-6f13fa5e"),e=e(),t.popScopeId(),e),eu={class:"game-data__header"},tu={class:"game-data__header__tournament-season-dropdown"},au={class:"game-data__header__teams-carousel"},su={class:"game-data__body"},iu={key:0,class:"no-stats-container"},ou=[Qh(()=>t.createElementVNode("div",{class:"no-stats-content"},[t.createElementVNode("h2",{class:"no-stats-title"}," Este partido se publicará en un plazo de hasta 72 horas después de finalizada la jornada. ")],-1))],nu={key:1,class:"no-stats-container-mobile"},lu=[Qh(()=>t.createElementVNode("div",{class:"no-stats-content"},[t.createElementVNode("h2",{class:"no-stats-title"}," Este partido se publicará en un plazo de hasta 72 horas después de finalizada la jornada. ")],-1))],ru={class:"game-data__body__menu"},du={class:"game-data__body__menu__contmenuswitch"};m.defaults.headers.common.Authorization="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE";const cu=t.defineComponent({name:"GSC-GameData",components:{StatisticsMain:Po,GSCGameTimeLine:I.GSCGameTimeLine,GscSwitchComponent:k.GscSwitchComponent,GSCLineupsMain:Fo,GSCPositining:Xh,GSCDatosGSMain:Mo,GSCVideoGame:Oo,ModalEvents:rn,GSCTacticaFijaMain:Kh,GSCProminentMain:Om,GSCComparative:Zh}}),mu=B(Object.assign(cu,{props:{tournamentsApiUrl:{type:String,default:""},currentSeasonId:{type:Number,default:0},isClubes:{type:Boolean,default:!1},defaultGameId:{type:Number,default:0,validator(e){return!Number.isNaN(e)&&e>=0}},sortCalendar:{type:Boolean,default:!0},isWidget:{type:Boolean,default:!1},teamWidget:{type:Number,default:0},socket:{type:Object,default:()=>null},isSynchronization:{type:Boolean,default:!1},isTeamGamePerPage:{type:Boolean,default:!1},clientPrivilegesBySeasons:{type:Object,default:()=>null},areTournamentAndSeasonSelectsVisible:{type:Boolean,default:!0},disabledSectionsIds:{type:Array,default:()=>[]},tournamentsIdsToInclude:{type:Set,default:()=>new Set},volumetricFieldIntervalMinutes:{type:Number,default:2},chalkboardIntervalMinutes:{type:Number,default:2},gameEventsIntervalMinutes:{type:Number,default:1}},emits:["openmedia","change-season-id","onOpenProfile","openProfileTeam","openProfilePlayer"],setup(e,{emit:n}){const l=e,r=o.useStore();let d=null;L.on("socket-connected",()=>{r.commit("nextGeneral/updateIsSocketConnected",l.socket.connected)});const c=t.ref("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"),p=t.ref({season:[]}),h=t.ref({}),u=t.ref(!1),y=t.ref({}),g=t.ref(1),v=t.ref(0),_=t.ref(null),f=t.ref(null),b=t.ref(null),w=t.ref([]),S=t.ref(null),T=t.ref(!0),x=t.ref(new Set([1,2])),C=t.ref({}),I=t.ref({minute:"",recent_lapse:0,score:{}}),P=t.ref(0),G=t.ref("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"),F=t.ref(l.isWidget?[{componentName:"GSCProminentMain",name:"Generales",id:1},{componentName:"GSCVideoGame",name:"Más Videos",id:2},{componentName:"StatisticsMain",name:"Estadísticas",id:3},{componentName:"GSCComparative",name:l.isWidget?"Destacados":"Comparativa",id:4},{componentName:"GSCGameTimeLine",name:"Minuto a Minuto",id:5},{componentName:"GSCLineupsMain",name:"Alineaciones",id:6}]:[{componentName:"GSCProminentMain",name:"Destacado",id:1},{componentName:"GSCVideoGame",name:"Más Videos",id:2},{componentName:"StatisticsMain",name:"Estadísticas",id:4},{componentName:"GSCComparative",name:l.isWidget?"Destacados":"Comparativa",id:3},{componentName:"GSCGameTimeLine",name:"Minuto a Minuto",id:5},{componentName:"GSCLineupsMain",name:"Alineaciones",id:6},{componentName:"GSCTacticaFijaMain",name:"Táctica Fija",id:7}]),A=t.ref(l.isWidget?[{componentName:"GSCProminentMain",name:"Generales",id:1},{componentName:"GSCVideoGame",name:"Más Videos",id:2},{componentName:"StatisticsMain",name:"Estadísticas",id:3},{componentName:"GSCComparative",name:l.isWidget?"Destacados":"Comparativa",id:4},{componentName:"GSCGameTimeLine",name:"Minuto a Minuto",id:5},{componentName:"GSCLineupsMain",name:"Alineaciones",id:6}]:[{componentName:"GSCProminentMain",name:"Destacado",id:1},{componentName:"GSCVideoGame",name:"Más Videos",id:2},{componentName:"StatisticsMain",name:"Estadísticas",id:3},{componentName:"GSCComparative",name:l.isWidget?"Destacados":"Comparativa",id:4},{componentName:"GSCGameTimeLine",name:"Minuto a Minuto",id:5},{componentName:"GSCLineupsMain",name:"Alineaciones",id:6},{componentName:"GSCTacticaFijaMain",name:"Táctica Fija",id:7}]),M=t.ref(l.isWidget?[{componentName:"GSCProminentMain",name:"Generales",id:1},{componentName:"GSCVideoGame",name:"Más Videos",id:2},{componentName:"StatisticsMain",name:"Estadísticas",id:3},{componentName:"GSCComparative",name:l.isWidget?"Destacados":"Comparativa",id:4},{componentName:"GSCGameTimeLine",name:"Minuto a Minuto",id:5},{componentName:"GSCLineupsMain",name:"Alineaciones",id:6}]:[{componentName:"GSCProminentMain",name:"Destacado",id:1},{componentName:"GSCVideoGame",name:"Más Videos",id:2},{componentName:"StatisticsMain",name:"Estadísticas",id:3},{componentName:"GSCComparative",name:l.isWidget?"Destacados":"Comparativa",id:4},{componentName:"GSCGameTimeLine",name:"Minuto a Minuto",id:5},{componentName:"GSCLineupsMain",name:"Alineaciones",id:6},{componentName:"GSCTacticaFijaMain",name:"Táctica Fija",id:7}]);t.ref(l.isWidget?[{componentName:"GSCProminentMain",name:"Generales",id:1},{componentName:"GSCVideoGame",name:"Más Videos",id:2},{componentName:"StatisticsMain",name:"Estadísticas",id:3},{componentName:"GSCComparative",name:l.isWidget?"Destacados":"Comparativa",id:4},{componentName:"GSCGameTimeLine",name:"Minuto a Minuto",id:5},{componentName:"GSCLineupsMain",name:"Alineaciones",id:6}]:[{componentName:"GSCProminentMain",name:"Destacado",id:1},{componentName:"GSCVideoGame",name:"Más Videos",id:2},{componentName:"StatisticsMain",name:"Estadísticas",id:3},{componentName:"GSCComparative",name:l.isWidget?"Destacados":"Comparativa",id:4},{componentName:"GSCGameTimeLine",name:"Minuto a Minuto",id:5},{componentName:"GSCLineupsMain",name:"Alineaciones",id:6},{componentName:"GSCTacticaFijaMain",name:"Táctica Fija",id:7}]);const O=t.ref(0);let B=null;const R=t.ref(null),q=t.ref(0),E=t.ref(A.value[0]),J=t.ref([]);let W=t.ref("");const H={seasonAndPrivileges:null,canPrivilegesTeamPlayVideos:!1,homeTeamDetails:{canPlayVideos:!1,team:{}},awayTeamDetails:{canPlayVideos:!1,team:{}}},U=t.computed(()=>{const e=[];return h.value&&h.value.id&&(e.push({id:h.value.id,name:h.value.name,type:h.value.type}),h.value.related_seasons&&h.value.related_seasons.forEach(t=>{e.push({id:t.id,type:t.type})})),e}),Z=t.computed(()=>{if(l.clientPrivilegesBySeasons){const e=l.clientPrivilegesBySeasons.seasonsAndPrivileges.get(h.value.id);if(e)return e.teamId}return 0});function $(){u.value=!1}function X(e){_.value=e}function Y(e){w.value.push(e)}function K(e){S.value=e}function Q(e){b.value=e}function ee(e){f.value=e}function te(e){if(!(e=>{const t=e.split(",");return t.length>=2&&t[1].split(" ").length>=2})(e))return"";const t=(e=>{const t=e.split(",")[0].split(" ");return 3>=t[0].length&&t.length>1?`${t[0]} ${t[1]}`:t[0]})(e),a=(e=>e.split(",")[1].split(" ")[1][0])(e);return`${a}. ${t}`}async function ae(e){try{const t=m.create({headers:{Authorization:""+c.value}});C.value={};const a=await t.get("https://al2nv2dmkc.execute-api.us-west-2.amazonaws.com/prod/mxm/"+e.game_id);if(C.value[e.home_team.team_id]=[],C.value[e.home_team.team_id].team={name:e.home_team.acronym,logo:e.home_team.logo},C.value[e.home_team.team_id].goals=[],C.value[e.home_team.team_id].red=[],C.value[e.home_team.team_id].yellow=[],C.value[e.visiting_team.team_id]=[],C.value[e.visiting_team.team_id].team={name:e.visiting_team.acronym,logo:e.visiting_team.logo},C.value[e.visiting_team.team_id].goals=[],C.value[e.visiting_team.team_id].red=[],C.value[e.visiting_team.team_id].yellow=[],null!=a.data.minute&&(I.value={minute:a.data.minute,recent_lapse:a.data.recent_lapse,score:a.data.score}),a.data.plays)for(let s=0;s<a.data.plays.length;s++)"Roja"==a.data.plays[s].category_name&&1==a.data.plays[s].status&&(e.home_team.team_id==a.data.plays[s].team_id?(te(a.data.plays[s].player_name)in C.value[e.home_team.team_id].red||(C.value[e.home_team.team_id].red[te(a.data.plays[s].player_name)]={},C.value[e.home_team.team_id].red[te(a.data.plays[s].player_name)].event=[],C.value[e.home_team.team_id].red[te(a.data.plays[s].player_name)].name=te(a.data.plays[s].player_name)),C.value[e.home_team.team_id].red[te(a.data.plays[s].player_name)].event.push(a.data.plays[s].minute)):(te(a.data.plays[s].player_name)in C.value[e.visiting_team.team_id].red||(C.value[e.visiting_team.team_id].red[te(a.data.plays[s].player_name)]={},C.value[e.visiting_team.team_id].red[te(a.data.plays[s].player_name)].event=[],C.value[e.visiting_team.team_id].red[te(a.data.plays[s].player_name)].name=te(a.data.plays[s].player_name)),C.value[e.visiting_team.team_id].red[te(a.data.plays[s].player_name)].event.push(a.data.plays[s].minute))),"Amarilla"==a.data.plays[s].category_name&&1==a.data.plays[s].status&&(e.home_team.team_id==a.data.plays[s].team_id?(te(a.data.plays[s].player_name)in C.value[e.home_team.team_id].yellow||(C.value[e.home_team.team_id].yellow[te(a.data.plays[s].player_name)]={},C.value[e.home_team.team_id].yellow[te(a.data.plays[s].player_name)].event=[],C.value[e.home_team.team_id].yellow[te(a.data.plays[s].player_name)].name=te(a.data.plays[s].player_name)),C.value[e.home_team.team_id].yellow[te(a.data.plays[s].player_name)].event.push(a.data.plays[s].minute)):(te(a.data.plays[s].player_name)in C.value[e.visiting_team.team_id].yellow||(C.value[e.visiting_team.team_id].yellow[te(a.data.plays[s].player_name)]={},C.value[e.visiting_team.team_id].yellow[te(a.data.plays[s].player_name)].event=[],C.value[e.visiting_team.team_id].yellow[te(a.data.plays[s].player_name)].name=te(a.data.plays[s].player_name)),C.value[e.visiting_team.team_id].yellow[te(a.data.plays[s].player_name)].event.push(a.data.plays[s].minute))),"Gol"==a.data.plays[s].event_type_name&&1==a.data.plays[s].status&&(e.home_team.team_id==a.data.plays[s].team_id?"Autogol"==a.data.plays[s].category_name?(te(a.data.plays[s].player_name)in C.value[e.visiting_team.team_id].goals||(C.value[e.visiting_team.team_id].goals[te(a.data.plays[s].player_name)]={},C.value[e.visiting_team.team_id].goals[te(a.data.plays[s].player_name)].event=[],C.value[e.visiting_team.team_id].goals[te(a.data.plays[s].player_name)].name=te(a.data.plays[s].player_name)),C.value[e.visiting_team.team_id].goals[te(a.data.plays[s].player_name)].event.push(a.data.plays[s].minute)):(te(a.data.plays[s].player_name)in C.value[e.home_team.team_id].goals||(C.value[e.home_team.team_id].goals[te(a.data.plays[s].player_name)]={},C.value[e.home_team.team_id].goals[te(a.data.plays[s].player_name)].event=[],C.value[e.home_team.team_id].goals[te(a.data.plays[s].player_name)].name=te(a.data.plays[s].player_name)),C.value[e.home_team.team_id].goals[te(a.data.plays[s].player_name)].event.push(a.data.plays[s].minute)):"Autogol"==a.data.plays[s].category_name?(te(a.data.plays[s].player_name)in C.value[e.home_team.team_id].goals||(C.value[e.home_team.team_id].goals[te(a.data.plays[s].player_name)]={},C.value[e.home_team.team_id].goals[te(a.data.plays[s].player_name)].event=[],C.value[e.home_team.team_id].goals[te(a.data.plays[s].player_name)].name=te(a.data.plays[s].player_name)),C.value[e.home_team.team_id].goals[te(a.data.plays[s].player_name)].event.push(a.data.plays[s].minute)):(te(a.data.plays[s].player_name)in C.value[e.visiting_team.team_id].goals||(C.value[e.visiting_team.team_id].goals[te(a.data.plays[s].player_name)]={},C.value[e.visiting_team.team_id].goals[te(a.data.plays[s].player_name)].event=[],C.value[e.visiting_team.team_id].goals[te(a.data.plays[s].player_name)].name=te(a.data.plays[s].player_name)),C.value[e.visiting_team.team_id].goals[te(a.data.plays[s].player_name)].event.push(a.data.plays[s].minute)))}catch(t){return Promise.reject(t)}}function se(e){u.value=!0,1==e.is_live||0==e.game_status||4!=e.game_status&&0>=Object.keys(e.minutes).length?(P.value=0,ae(e)):(P.value=1,C.value={plays:e.minutes,home_team:e.home_team,visiting_team:e.visiting_team})}const ie=t.computed(()=>{let e={};return y.value&&y.value.game_id&&(e={gameId:y.value.game_id,id:y.value.game_id,seasonId:y.value.season_id,regularSeasonId:y.value.regularSeasonId,matchday_name:y.value.matchday_name,status:y.value.game_status,score:y.value.score,game_status:y.value.game_status,dateTimeUTC:y.value.date_time_utc,homeTeam:y.value.home_team,awayTeam:y.value.visiting_team,is_live:y.value.is_live,minutes:y.value.minutes}),e});function oe(e){g.value=e.is_captured,v.value=e.is_female,T.value=0!==e.is_captured,p.value.id!==e.id&&(p.value=e,r.commit("gameGlobal/setTournamentType",e.tournament_type))}function ne(){d&&clearInterval(d)}function le(){A.value=[],y.value.is_live||4===y.value.game_status?A.value=[...F.value]:A.value=[...M.value],l.isWidget||((0===h.value.is_tactic_available||y.value.is_live||0===y.value.game_status)&&A.value.pop(),1!==y.value.has_tracking||y.value.is_live||4===y.value.game_status||A.value.push({componentName:"GSCPositining",name:"Posicionamiento",id:8})),E.value=A.value[0]}function re(e){e.gameSeasonId=y.value.season_id,e.gameRegularSeasonId=y.value.regularSeasonId,(e.auxwidget||!ve.value||ve.value.canPrivilegesTeamPlayVideos)&&((y.value.is_live||0===y.value.game_status||1===y.value.game_status)&&(e.gameIdsToFilter=[y.value.game_id]),e.isLiveAccumulated&&(e.gameIdsToFilter=null),!y.value.is_live&&0!==y.value.game_status||e.isLiveAccumulated||(e.liveGameConfig={gameId:y.value.game_id}),n("openmedia",e))}function de(e){n("onOpenProfile",e)}function ce(e){n("openProfileTeam",e)}function me(e){n("openProfilePlayer",e)}function pe(e){be(e),"Estadísticas"==e&&(W.value="Comparativa")}function he(){W.value=""}function ue(e){h.value.id!==e.id&&(h.value=e,n("change-season-id",e.id))}t.watch(()=>y.value.game_id,(e,t)=>{r.commit("nextGeneral/updateShowLiveData",!0);const a=v.value?"Destacados":"Destacadas";A.value.forEach(e=>{e.name===a&&(e.name=v.value?"Destacadas":"Destacados")}),ae({game_id:y.value.game_id,home_team:y.value.home_team,visiting_team:y.value.visiting_team}),le(),O.value+=1},{immediate:!0}),t.watch(()=>y.value.is_live,(e,t)=>{if(le(),r.state.nextGeneral.gameForAnalysis.is_live!==e&&r.commit("nextGeneral/updateGameForAnalysis",{...r.state.nextGeneral.gameForAnalysis,is_live:y.value.is_live,game_status:y.value.game_status}),e){const e=N();e.disconnected?D():e.connected&&z(`game.${y.value.game_id}.v2`),ne(),d=setInterval(()=>{P.value=0,ae({game_id:y.value.game_id,home_team:y.value.home_team,visiting_team:y.value.visiting_team})},6e4)}else ne(),V();e!==t&&(O.value+=1)},{immediate:!0}),t.watch(()=>r.state.nextGeneral.gameForAnalysis,()=>{r.commit("nextGeneral/updateIsSocketConnected",l.socket.connected)},{deep:!0,immediate:!0});const ye=t.computed(()=>A.value.reduce((e,t)=>(l.disabledSectionsIds.includes(t.id)||ve.value&&!ve.value.isVideoTabVisible&&2===t.id||l.clientPrivilegesBySeasons&&7===t.id||(T.value||5!==t.id&&6!==t.id)&&e.push(t.name),e),[]));function ge(e){if(y.value.is_live||1===y.value.game_status||0===y.value.game_status){const t=e.playingAs.has(y.value.playingAs);return l.clientPrivilegesBySeasons.canPlayVideos&&t}{const t=_e.value.filter(t=>e.playingAs.has(t.playingAs));return l.clientPrivilegesBySeasons.canPlayVideos&&t.length>0}}const ve=t.computed(()=>{if(l.clientPrivilegesBySeasons){if(h.value&&y.value&&y.value.game_id){const e=l.clientPrivilegesBySeasons.seasonsAndPrivileges.get(h.value.id);if(e){if(fe(e.playingAs),(y.value.is_live||1===y.value.game_status||0===y.value.game_status)&&r.state.nextGeneral.showLiveData){const t=e.playingAs.has(y.value.playingAs);return{seasonAndPrivileges:e,canPrivilegesTeamPlayVideos:l.clientPrivilegesBySeasons.canPlayVideos&&t,isPrivilegesTeamOnly:!1,isPrivilegesTeamHome:y.value.home_team.team_id===e.teamId,homeTeamDetails:{canPlayVideos:t,team:y.value.home_team},awayTeamDetails:{canPlayVideos:t,team:y.value.visiting_team},isVideoTabVisible:ge(e)}}{const t=y.value.home_team.team_id===e.teamId,a=_e.value.filter(t=>e.playingAs.has(t.playingAs));return{seasonAndPrivileges:e,canPrivilegesTeamPlayVideos:l.clientPrivilegesBySeasons.canPlayVideos&&a.length>0,isPrivilegesTeamOnly:!0,isPrivilegesTeamHome:t,homeTeamDetails:{canPlayVideos:l.clientPrivilegesBySeasons.canPlayVideos&&t&&a.length>0,team:y.value.home_team},awayTeamDetails:{canPlayVideos:l.clientPrivilegesBySeasons.canPlayVideos&&!t&&a.length>0,team:y.value.visiting_team},isVideoTabVisible:ge(e)}}}fe(new Set)}return H}return null}),_e=t.computed(()=>{if(l.clientPrivilegesBySeasons){if(h.value){const e=l.clientPrivilegesBySeasons.seasonsAndPrivileges.get(h.value.id);if(e)return J.value.filter(t=>1===t.game_status&&e.playingAs.has(t.playingAs))}return[]}return[]});function fe(e){x.value=e}function be(e){if(r.commit("nextGeneral/updateShowLiveData",!0),null!=_.value&&(clearInterval(_.value),_.value=null),null!=f.value&&(clearInterval(f.value),f.value=null),null!=b.value&&(clearInterval(b.value),b.value=null),null!=S.value&&(clearInterval(S.value),S.value=null),w.value.length>0){for(let e of w.value)clearInterval(e);w.value=[]}l.isWidget?E.value=A.value.find(t=>t.name===e)||A.value[1]:E.value=A.value.find(t=>t.name===e)||A.value[0]}function we(e){if(e.playingAs||(e.playingAs=Z.value?e.home_team.team_id===Z.value?1:2:0),null!=_.value&&(clearInterval(_.value),_.value=null),null!=f.value&&(clearInterval(f.value),f.value=null),null!=b.value&&(clearInterval(b.value),b.value=null),null!=S.value&&(clearInterval(S.value),S.value=null),w.value.length>0){for(let e of w.value)clearInterval(e);w.value=[]}y.value=e,e.is_live&&4===e.game_status?D():V()}function Se(e){J.value=e.map(e=>{const t={...e};return Z.value&&(t.playingAs=t.home_team.team_id===Z.value?1:2),t})}return t.watch(ye,()=>{!ve.value||ve.value.canPrivilegesTeamPlayVideos||2!==E.value.id&&7!==E.value.id&&8!==E.value.id||be("Resumen")},{deep:!0,immediate:!0}),t.onMounted(()=>{B=new ResizeObserver(e=>{for(const t of e)q.value=t.contentRect.width}),B.observe(R.value),t.nextTick(()=>{l.isSynchronization&&be("Táctica Fija")})}),t.onBeforeUnmount(()=>{if(B&&B.disconnect(),null!=_.value&&(clearInterval(_.value),_.value=null),null!=f.value&&(clearInterval(f.value),f.value=null),null!=b.value&&(clearInterval(b.value),b.value=null),null!=S.value&&(clearInterval(S.value),S.value=null),w.value.length>0){for(let e of w.value)clearInterval(e);w.value=[]}j()}),(o,n)=>(t.openBlock(),t.createElementBlock("div",{class:"game-data",ref_key:"gamedata",ref:R},[t.createElementVNode("div",eu,[t.withDirectives(t.createElementVNode("div",tu,[t.createVNode(t.unref(a.GSCTournamentSelect),{"current-season-id":e.currentSeasonId,"tournaments-ids-to-include":e.tournamentsIdsToInclude,"api-url":e.tournamentsApiUrl,"is-clubes-active":e.isClubes,onInput:oe,onChangeTournaments:oe},null,8,["current-season-id","tournaments-ids-to-include","api-url","is-clubes-active"]),t.createVNode(t.unref(s.GSCSeasonSelect),{"current-season-id":e.currentSeasonId,seasons:p.value.seasons,onInput:ue},null,8,["current-season-id","seasons"])],512),[[t.vShow,e.areTournamentAndSeasonSelectsVisible]]),t.createElementVNode("div",au,[t.createVNode(t.unref(i.GSCCalendarByGame),{"plays-live":C.value,"info-live":I.value,token:G.value,is_captured:g.value,"await-for-seasons":"",seasons:U.value,"is-pagination-visible":!1,"are-games-carousel-type":"","default-game-id":e.defaultGameId,"sort-calendar":e.sortCalendar,"is-team-game-per-page":e.isTeamGamePerPage,"client-privileges-team-id":Z.value,"only-games-team-id":Z.value,"tournament-type":t.unref(r).state.gameGlobal.tournamentType,onChangeGameCarousel:we,onOpenModalEvent:se,onChangeGamesByClientPrivileges:Se},null,8,["plays-live","info-live","token","is_captured","seasons","default-game-id","sort-calendar","is-team-game-per-page","client-privileges-team-id","only-games-team-id","tournament-type"])])]),u.value?(t.openBlock(),t.createBlock(rn,{key:0,width:q.value,onCloseModalEventsLive:$,plays:C.value,game:y.value,type:P.value},null,8,["width","plays","game","type"])):t.createCommentVNode("",!0),t.createElementVNode("div",su,[y.value&&"live_stats"in y.value&&0==y.value.live_stats&&0==y.value.game_status?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[q.value>500?(t.openBlock(),t.createElementBlock("div",iu,ou)):(t.openBlock(),t.createElementBlock("div",nu,lu))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("div",ru,[t.createElementVNode("div",du,[t.createVNode(t.unref(k.GscSwitchComponent),{type:2,buttons:ye.value,"font-family":"Poppins-Regular","font-size":"16px",width:400>q.value||700>q.value?"max-content":840>q.value||1050>q.value?"155px":"165px","selected-option":E.value.name,borderWidth:"1px",arrow:!1,height:"30px",onInput:be},null,8,["buttons","width","selected-option"])])]),ie.value&&ie.value.gameId?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(E.value.componentName),{key:O.value,game:ie.value,"is-widget":e.isWidget,"team-widget":e.teamWidget,onIntervalidpossesion:ee,onIntervalidhighlive:Q,onIntervalidtops:Y,onIntervalidgs:K,subsection:t.unref(W),seasonSelected:h.value,tournamentSelected:p.value,showLineups:T.value,socket:e.socket,"time-live-prominent-data":3e4,"time-live-highlights-prominent-and-video":3e4,"time-live-possesion":3e4,"time-live-video-goals":3e4,"time-live-video-best-plays":3e4,"time-live-video-this-game":3e4,"time-live-video-specific-plays":3e4,"time-live-comparative-best-players":3e4,"time-live-comparative-avanced":6e4,is_captured:g.value,"is-tactic-visible":!!h.value.show_tactic,"is-synchronization":e.isSynchronization,"can-play-videos":!ve.value||ve.value.canPrivilegesTeamPlayVideos,"video-privileges-playing-as":x.value,"client-privileges-team-id":Z.value,"play-videos-privileges":ve.value,token:G.value,"game-events-interval-minutes":e.gameEventsIntervalMinutes,"volumetric-field-interval-minutes":e.volumetricFieldIntervalMinutes,"chalkboard-interval-minutes":e.chalkboardIntervalMinutes,onResetSubsection:he,onOpenmedia:re,onOnOpenProfile:de,onOpenProfileTeam:ce,onOpenProfilePlayer:me,onChangeToTab:pe,onOpenMediaPlayer:re,onIntervalid:X},null,40,["game","is-widget","team-widget","subsection","seasonSelected","tournamentSelected","showLineups","socket","is_captured","is-tactic-visible","is-synchronization","can-play-videos","video-privileges-playing-as","client-privileges-team-id","play-videos-privileges","token","game-events-interval-minutes","volumetric-field-interval-minutes","chalkboard-interval-minutes"])):t.createCommentVNode("",!0)],64))])],512))}}),[["__scopeId","data-v-6f13fa5e"]]);async function pu({url:e,options:t={},retries:a=3}){return await m.get(e,t).then(e=>e).catch(s=>a>0?pu({url:e,options:t,retries:a-1}):s)}async function hu({seasonId:e},t=!0){try{const t=await fetch(`https://golstats-microservices.s3-us-west-2.amazonaws.com/statsLeagueBySeason-${e}.json`);return(await t.json()).data}catch(a){if(t)return hu({seasonId:e},!1);throw Error(a)}}function uu(e,t,a,s,i){return 2===t.length&&3===a.length&&6===s.length?e:e.filter(e=>t.includes(e[i.playingAs])&&a.includes(e[i.matchResult])&&s.includes(e[i.section]))}async function yu({seasonId:e}){try{const t="https://8tvo5bp9ai.execute-api.us-west-2.amazonaws.com/prod/gamesBySeason/"+e;return(await pu({url:t})).data}catch(t){return Promise.reject(t)}}const gu=["categoryId","matchLapse","section","matchResult","playingAs","total"];let vu=null;function _u(){return vu||(vu=ve(gu)),vu}async function fu({seasonId:e,teamId:t}){try{return await pu({url:`https://a4dcb6avog.execute-api.us-west-2.amazonaws.com/prod/v2/statisticsTeamBySeason/${e}/${t}`})}catch(a){return Promise.reject(a)}}const bu={leagueGeneral:{namespaced:!0,state:{seasonPlays:[],currentSeasonGames:[],currentSeasonTeams:[],selectedRound:1,booleanAreLiveGames:!1,booleanIsLiveGamesModalOpen:!1},getters:{seasonPlays:e=>e.seasonPlays,filteredPlaysStack(e,t,a,s){return((e,t,a,s,i,o,n=!1)=>{const l=a.map(e=>1===e?2:2===e?1:3);return e.filter(e=>{const r=!(!o||!e[i.teamId])&&e[i.teamId]!==o,d=1===t?2:1;return(n||s.includes(e[i.gameId]))&&(!t||(r?d:t)===e[i.playingAs])&&(a.includes(e[i.matchResult])&&e[i.teamId]===o||l.includes(e[i.matchResult])&&e[i.teamId]!==o)})})(e.seasonPlays,s["filterGeneral/getPlayingAs"],s["filterGeneral/getResults"],s["filterGeneral/getSelectedGamesIds"],_u(),s["teamsGeneral/team"].team_id,!0)},nextGamesSchedule(e){const t=e.currentSeasonGames.reduce((t,a)=>{const s={...a};return s.home_team=e.currentSeasonTeams.find(e=>e.team_id===a.home_team),s.visiting_team=e.currentSeasonTeams.find(e=>e.team_id===a.visiting_team),t[a.matchday_abbreviation]?t[a.matchday_abbreviation][3===a.game_status?"canceled":a.date]?t[a.matchday_abbreviation][3===a.game_status?"canceled":a.date].push(s):t[a.matchday_abbreviation][3===a.game_status?"canceled":a.date]=[s]:t[a.matchday_abbreviation]={[3===a.game_status?"canceled":a.date]:[s]},t},{});for(let[a,s]of Object.entries(t))t[a]=Object.entries(s).map(([e,t])=>({date:e,games:t})),t[a].sort((e,t)=>e.date<t.date?-1:e.date>t.date?1:0);return t},matchdaysDates(e,t){let a=[];if(t.nextGamesSchedule){let e=Object.keys(t.nextGamesSchedule);for(let s of e){let e=+s.replace("M",""),i=t.nextGamesSchedule[s].map(t=>({matchday:e,date:new Date(t.date)}));a=a.concat(i)}}return a},closestMatchDay(e,t){let a=new Date,s=0,i=-new Date(0,0,0).valueOf(),o=t.matchdaysDates,n=o.length;for(let l=0;l<o.length;l++)s=Math.abs(o[l].date-a),i>s&&(n=l,i=s);return o[n]?o[n].matchday:1}},mutations:{setBooleanIsLiveGamesModalOpen(e,t){e.booleanIsLiveGamesModalOpen=t},setBooleanAreLiveGames(e,t){e.booleanAreLiveGames=t},updateSeasonPlays(e,t){e.seasonPlays=t},updateCurrentSeasonTeams(e,t){e.currentSeasonTeams=t},updateCurrentSeasonGames(e,t){e.currentSeasonGames=t},updateSelectedRound(e,t){e.selectedRound=t}},actions:{async getSeasonPlays({commit:e,rootGetters:t},a=!1){try{const s=await hu({seasonId:t["filterGeneral/getSeasonId"]});if(a)return s;e("updateSeasonPlays",s)}catch(s){return Promise.reject(s)}},async getCurrentSeasonGames({commit:e,rootGetters:t}){try{e("updateCurrentSeasonGames",await yu({seasonId:t["loginGeneral/seasonId"]}))}catch(a){return Promise.reject(a)}},async getCurrentSeasonTeams({commit:e,rootGetters:t}){try{e("updateCurrentSeasonTeams",(await(async e=>{try{const t="https://d2oco6mqmc.execute-api.us-west-2.amazonaws.com/prod/teamsBySeason/"+e.seasonId;return(await pu({url:t})).data}catch(t){return Promise.reject(t)}})({seasonId:t["loginGeneral/seasonId"]})).teams)}catch(a){return Promise.reject(a)}},async isDataFilled({state:e,dispatch:t,commit:a}){try{if(e.currentSeasonGames.length>0&&e.currentSeasonTeams.length>0)return a("setIsSectionLoading",!1,{root:!0}),!0;const s=[void 0,void 0];return 0===e.currentSeasonGames.length&&(s[0]=t("getCurrentSeasonGames")),0===e.currentSeasonTeams.length&&(s[1]=t("getCurrentSeasonTeams")),await Promise.all(s),!1}catch(s){throw Error(s)}}}}};let wu=null;class Su{constructor(){G(this,"maximumLiveSection",1),G(this,"accomplished",{totalPostGame:0,avgPostGame:0,avgPreGame:0,totalLive:0,avgPostGameTrendLive:{accumulated:this.getZeroTotalsTrendSections(),sections:this.getZeroTotalsTrendSections()},totalsLiveTrendLive:{accumulated:this.getZeroTotalsTrendSections(),sections:this.getZeroTotalsTrendSections()},ranking:null,leader:{},arrayRankings:[]}),G(this,"received",{totalPostGame:0,avgPostGame:0,totalLive:0,avgPostGameTrendLive:{accumulated:this.getZeroTotalsTrendSections(),sections:this.getZeroTotalsTrendSections()},totalsLiveTrendLive:{accumulated:this.getZeroTotalsTrendSections(),sections:this.getZeroTotalsTrendSections()},ranking:null,leader:{}})}setMaximumLiveSection(e){e>this.maximumLiveSection&&(this.maximumLiveSection=e)}getZeroTotalsTrendSections(){return[0,0,0,0,0,0]}resetTotals(){this.accomplished.totalPostGame=0,this.accomplished.avgPostGame=0,this.received.totalPostGame=0,this.received.avgPostGame=0,this.accomplished.avgPostGameTrendLive.sections=this.getZeroTotalsTrendSections(),this.accomplished.avgPostGameTrendLive.accumulated=this.getZeroTotalsTrendSections(),this.received.avgPostGameTrendLive.sections=this.getZeroTotalsTrendSections(),this.received.avgPostGameTrendLive.accumulated=this.getZeroTotalsTrendSections()}resetTotalsLive(){this.accomplished.totalLive=0,this.received.totalLive=0,this.accomplished.totalsLiveTrendLive.sections=this.getZeroTotalsTrendSections(),this.accomplished.totalsLiveTrendLive.accumulated=this.getZeroTotalsTrendSections(),this.received.totalsLiveTrendLive.sections=this.getZeroTotalsTrendSections(),this.received.totalsLiveTrendLive.accumulated=this.getZeroTotalsTrendSections()}increaseAccomplishedByOne(e,t,a){a&&(this.setMaximumLiveSection(e),this.accomplished.totalLive+=t,this.accomplished.totalsLiveTrendLive.sections[e-1]+=t,this.increaseTrendLiveAccumulatedByOne(this.accomplished.totalsLiveTrendLive,e,t)),this.accomplished.totalPostGame+=t,this.accomplished.avgPostGameTrendLive.sections[e-1]+=t,this.increaseTrendLiveAccumulatedByOne(this.accomplished.avgPostGameTrendLive,e,t)}increaseReceivedByOne(e,t,a){a&&(this.setMaximumLiveSection(e),this.received.totalLive+=t,this.received.totalsLiveTrendLive.sections[e-1]+=t,this.increaseTrendLiveAccumulatedByOne(this.received.totalsLiveTrendLive,e,t)),this.received.totalPostGame+=t,this.received.avgPostGameTrendLive.sections[e-1]+=t,this.increaseTrendLiveAccumulatedByOne(this.received.avgPostGameTrendLive,e,t)}increaseTrendLiveAccumulatedByOne(e,t,a){for(let s=t-1;s<e.accumulated.length;s++)e.accumulated[s]+=a}decreaseAccomplishedLiveByOne(e,t){this.accomplished.totalLive>0&&(this.accomplished.totalLive-=t),this.accomplished.totalsLiveTrendLive.sections[e-1]>0&&(this.accomplished.totalsLiveTrendLive.sections[e-1]-=t,this.decreaseTotalsLiveTrendLiveAccumulatedByOne(this.accomplished.totalsLiveTrendLive,e,t))}decreaseReceivedLiveByOne(e,t){this.received.totalLive>0&&(this.received.totalLive-=t),this.received.totalsLiveTrendLive.sections[e-1]>0&&(this.received.totalsLiveTrendLive.sections[e-1]-=t,this.decreaseTotalsLiveTrendLiveAccumulatedByOne(this.received.totalsLiveTrendLive,e,t))}decreaseTotalsLiveTrendLiveAccumulatedByOne(e,t,a){for(let s=e.accumulated.length-1;s>=t-1;s--)e.accumulated[s]-=a}calculateAvg(e){e&&(this.accomplished.avgPostGame=this.accomplished.totalPostGame/e,this.received.avgPostGame=this.received.totalPostGame/e,this.accomplished.avgPostGameTrendLive.sections=this.getAvgPostGameTrendLiveAvg(this.accomplished.avgPostGameTrendLive.sections,e),this.accomplished.avgPostGameTrendLive.accumulated=this.getAvgPostGameTrendLiveAvg(this.accomplished.avgPostGameTrendLive.accumulated,e),this.received.avgPostGameTrendLive.sections=this.getAvgPostGameTrendLiveAvg(this.received.avgPostGameTrendLive.sections,e),this.received.avgPostGameTrendLive.accumulated=this.getAvgPostGameTrendLiveAvg(this.received.avgPostGameTrendLive.accumulated,e))}getAvgPostGameTrendLiveAvg(e,t){return e.map(e=>e/t)}calculateRanking(e,t,a,s,i,o,n,l){let r=[];3===s&&e&&e.length&&(2!==a.playingAs.length||3!==a.matchResult.length)?r=Array.from(e.reduce((e,a)=>{const s=1===a[t.playingAs],i=s?"1":"2",o=e.get(a[t.gameId]);if(o)o[i]?o[i].arrayPlays.push(a):o[i]={numberTeamId:a[t.teamId],arrayPlays:[a]};else{const i={numberMatchResult:a[t.matchResult]};s&&(i[1]={numberTeamId:a[t.teamId],arrayPlays:[a]}),e.set(a[t.gameId],i)}return e},new Map).values()).reduce((e,t)=>{const s=2===a.playingAs.length?"both":a.playingAs[0].toString();return("both"===s&&(t[1].numberTeamId===a.teamId||t[2].numberTeamId===a.teamId)||"both"!==s&&t[s].numberTeamId===a.teamId)&&a.matchResult.includes(t.numberMatchResult)&&e.push(...t[1].arrayPlays,...t[2].arrayPlays),e},[]).filter(e=>a.sections.includes(e[t.section])):(r=e?[...e]:[],n&&e&&(r=e.filter(e=>a.playingAs.includes(e[t.playingAs])&&a.matchResult.includes(e[t.matchResult])&&a.sections.includes(e[t.section])))),this.setTeamRanking(r,s,t,a.teamId,o,"accomplished",l)}setTeamRanking(e,t,a,s,i,o,n){let l=null,r=null;3===t&&(l=new Map,r={},e.forEach(e=>{const t=l.get(e[a.gameId]);t?t[e[a.teamId.toString()]]?t[e[a.teamId.toString()]]+=e[a.total]:t[e[a.teamId.toString()]]=e[a.total]:l.set(e[a.gameId],{[e[a.teamId.toString()]]:e[a.total]})}),Array.from(l.values()).forEach(e=>{const[t,a]=Object.keys(e).map(e=>e),s=e[t]+e[a];this.addPassesAvgByTeam(r,t,s?e[t]/s:0),this.addPassesAvgByTeam(r,a,s?e[a]/s:0)}));const d=i.sort((e,t)=>e.team_id-t.team_id).map(s=>{if(3===t){const e=r[s.team_id.toString()];return{teamId:s.team_id,points:e?e.numberTotalPassesAvg/e.numberGamesCount:0,total:e?e.numberTotalPassesAvg:0}}{const i=e.reduce((e,i)=>i[a.teamId]===s.team_id&&t===i[a.categoryId]?e+i[a.total]:e,0);return{teamId:s.team_id,points:s[n+"FilterGames"]?i/s[n+"FilterGames"]:0,total:i}}}).sort((e,t)=>t.points-e.points);this.accomplished.arrayRankings=d;const c=d.findIndex(e=>e.teamId===s);3===t&&(this.accomplished.avgPreGame=d[c].points),this[o].ranking=c+1,this[o].leader=d[0]}addPassesAvgByTeam(e,t,a){e[t]?(e[t].numberGamesCount+=1,e[t].numberTotalPassesAvg+=a):e[t]={numberGamesCount:1,numberTotalPassesAvg:a}}}class Tu{constructor(e,t,a,s,i,o,n,l,r,d,c=!0){G(this,"id",""),G(this,"generalId",0),G(this,"name",""),G(this,"names",{"0-0":"","1-1":"","0-1":"","1-0":""}),G(this,"mentions",{"0-0":"","1-1":"","0-1":"","1-0":""}),G(this,"accomplishedCategoryIds",[]),G(this,"receivedCategoryIds",[]),G(this,"generalCategoriesIds",{accomplished:0,received:0}),G(this,"specialMention",""),G(this,"homeTeam",new Su),G(this,"visitingTeam",new Su),G(this,"isLeagueDataCalculated",!1),G(this,"leagueAccomplishedMax",0),G(this,"leagueReceivedMax",0),G(this,"leagueAccomplishedAvg",0),G(this,"leagueReceivedAvg",0),G(this,"leagueAccomplishedAccumulator",0),G(this,"leagueReceivedAccumulator",0),G(this,"homeTeamType","homeTeam"),G(this,"visitingTeamType","visitingTeam"),G(this,"betOnly",!1),G(this,"isPercent",!1),this.id=`${a.accomplished}-${a.received}`,this.accomplishedCategoryIds=e||[],this.receivedCategoryIds=t||[],this.generalCategoriesIds=a||{accomplished:0,received:0},this.name=s,this.names["0-0"]=s||"",this.names["1-1"]=i||"",this.names["0-1"]=o||"",this.names["1-0"]=n||"",this.generalId=l||0,this.betOnly=r||!1,this.isPercent=d||!1,this.isVisible=c}addLeaguePlays(e,t,a){0!==e.length&&a&&!this.isLeagueDataCalculated&&(e.forEach(e=>{this.isAccomplishedLeaguePlay(e[t.categoryId])&&(this.leagueAccomplishedAccumulator+=e[t.total]),this.isReceivedLeaguePlay(e[t.categoryId])&&(this.leagueReceivedAccumulator+=e[t.total])}),this.leagueAccomplishedAvg=(this.leagueAccomplishedAccumulator/(2*a)).toFixed(2),this.leagueAccomplishedMax=Math.round(1.5*this.leagueAccomplishedAvg),this.leagueReceivedAvg=(this.leagueReceivedAccumulator/(2*a)).toFixed(2),this.leagueReceivedMax=Math.round(1.5*this.leagueReceivedAvg),this.isLeagueDataCalculated=!0)}addSpecialMention(e,t,a){let s="-";for(const[i,o]of Object.entries(this.generalCategoriesIds))e===o&&(s=`${"accomplished"===i?"0":"1"}${s}`),t===o&&(s=`${s}${"accomplished"===i?"0":"1"}`);3===s.length&&(this.mentions[s]=a)}resetMentions(){this.mentions={"0-0":"","1-1":"","0-1":"","1-0":""}}addTeamPlays(e,t,a,s,i){a&&i&&(e===this.homeTeamType||e===this.visitingTeamType)&&(a.forEach(t=>{this.isAccomplishedPlay(t[s.categoryId])?this[e].increaseAccomplishedByOne(t[s.section],t[s.total]):this.isReceivedPlay(t[s.categoryId])&&this[e].increaseReceivedByOne(t[s.section],t[s.total])}),this[e].calculateAvg(i))}addLivePlay(e,t,a,s,i=!1,o=!1){e!==this.homeTeamType&&e!==this.visitingTeamType||a[s.categoryId].includes(this.generalCategoriesIds.accomplished)&&this[e].increaseAccomplishedByOne(a[s.section],a[s.total],!0)}subtractLivePlay(e,t,a,s,i){e!==this.homeTeamType&&e!==this.visitingTeamType||(this.isAccomplishedPlay(a[s.categoryId])&&!i?this[e].decreaseAccomplishedLiveByOne(a[s.section],a[s.total]):this.isReceivedPlay(a[s.categoryId])&&i&&this[e].decreaseReceivedLiveByOne(a[s.section],a[s.total]))}isAccomplishedLeaguePlay(e){return!!(40===this.receivedCategoryIds[0]?this.receivedCategoryIds:this.accomplishedCategoryIds).find(t=>e===t||e+"_r"===t)}isReceivedLeaguePlay(e){return!!this.receivedCategoryIds.find(t=>e===t)}isAccomplishedPlay(e){return this.generalCategoriesIds.accomplished===e}isReceivedPlay(e){return this.generalCategoriesIds.received===e}calcRankingLeague(e,t,a,s,i,o=!1){this[this.homeTeamType].calculateRanking(e,t,a,this.generalCategoriesIds.accomplished,this.generalCategoriesIds.received,i,o,this.homeTeamType),this[this.visitingTeamType].calculateRanking(e,t,s,this.generalCategoriesIds.accomplished,this.generalCategoriesIds.received,i,o,this.visitingTeamType)}resetData(){this.homeTeam=new Su,this.visitingTeam=new Su,this.isLeagueDataCalculated=!1,this.leagueAccomplishedMax=0,this.leagueReceivedMax=0,this.leagueAccomplishedAvg=0,this.leagueReceivedAvg=0,this.leagueAccomplishedAccumulator=0,this.leagueReceivedAccumulator=0}isInGeneralCategory(e){return this.generalCategoriesIds.accomplished===e||this.generalCategoriesIds.received===e}}const ku={general:{name:"General",priority:1,parentInfo:{parentAnalysis:[1],analysisTypeBlocks:[1]},subcategories:{goals:new Tu([12,55,"35_r","54_r"],null,{accomplished:1,received:0},"Goles","Goles recibidos","Goles realizados / recibidos","Goles recibidos / realizados",1),shotToGoal:new Tu([91,95,158,167,176,343,330,333,423],null,{accomplished:2,received:0},"Remates a destino","","","",1),possession:new Tu([2,3,20,21],null,{accomplished:3,received:0},"Posesión","","","",1,!1,!0,!1),yellowCards:new Tu([14,52],null,{accomplished:4,received:0},"Tarjetas amarillas","","","",1),redCards:new Tu([15,53],null,{accomplished:5,received:0},"Tarjetas rojas","","","",1),centerCrosses:new Tu([13,25],null,{accomplished:6,received:0},"Centros totales","","","",1)}},offensive:{name:"Ofensivo",priority:2,parentInfo:{parentAnalysis:[1],analysisTypeBlocks:[1]},subcategories:{shotsOnGoal:new Tu([19],null,{accomplished:7,received:0},"Tiros a gol","","","",1),shotsOnGoalDestination:new Tu([91,95],null,{accomplished:8,received:0},"Tiros a gol destino","","","",1),shotToGoal:new Tu([91,95,158,167,176,343,330,333,423],null,{accomplished:2,received:0},"Remates a destino","","","",1),ballsWonOpponentPenaltyBox:new Tu([11],null,{accomplished:10,received:0},"Balones ganados área rival","","","",1),centersFromRight:new Tu([25],null,{accomplished:11,received:0},"Centros por derecha","","","",1),centersFromLeft:new Tu([13],null,{accomplished:12,received:0},"Centros por izquierda","","","",1),success1VS1:new Tu([4],null,{accomplished:13,received:0},"Enfrentamientos ofensivos exitosos","","","",1),unsuccess1VS1:new Tu([208],null,{accomplished:14,received:0},"Enfrentamientos ofensivos no exitosos","","","",1)}},defensive:{name:"Defensivo",priority:3,parentInfo:{parentAnalysis:[1],analysisTypeBlocks:[1]},subcategories:{saves:new Tu([39],null,{accomplished:15,received:0},"Atajadas","","","",1),ballsWonOwnPenaltyBox:new Tu([23],null,{accomplished:16,received:0},"Balones ganados área propia","","","",1),success1VS1:new Tu([5],null,{accomplished:17,received:0},"Enfrentamientos defensivos exitosos","","","",1),unsuccess1VS1:new Tu([209],null,{accomplished:18,received:0},"Enfrentamientos defensivos no exitosos","","","",1),aerialGame:new Tu([24],null,{accomplished:19,received:0},"Juego aéreo resto del campo","","","",1),clearances:new Tu([34],null,{accomplished:20,received:0},"Rechaces","","","",1)}},possession:{name:"Posesión",priority:4,parentInfo:{parentAnalysis:[1],analysisTypeBlocks:[1]},subcategories:{totalPasses:new Tu([2,3,20,21],null,{accomplished:21,received:0},"Pases totales","","","",1),successPasses:new Tu([2,20],null,{accomplished:22,received:0},"Pases acertados","","","",1),successPassesRivalHalf:new Tu([20],null,{accomplished:23,received:0},"Pases acertados en cancha rival","","","",1),ballsRecoveredInChallenge:new Tu([483],null,{accomplished:24,received:0},"Balones recuperados en disputa","","","",1),ballsRecoveredWithoutChallenge:new Tu([484],null,{accomplished:25,received:0},"Balones recuperados sin disputa","","","",1),ballsLostInChallenge:new Tu([494],null,{accomplished:26,received:0},"Balones perdidos en disputa","","","",1),ballsLostWithoutChallenge:new Tu([495],null,{accomplished:27,received:0},"Balones perdidos sin disputa","","","",1)}},stoppedBall:{name:"Balón parado",priority:5,parentInfo:{parentAnalysis:[1],analysisTypeBlocks:[1]},subcategories:{freeKick44:new Tu([155,164,173,362,371,380],null,{accomplished:28,received:0},"Tiros libres 4/4","","","",1),freeKick34:new Tu([150,357],null,{accomplished:29,received:0},"Tiros libres 3/4","","","",1),freeKickOwnHalf:new Tu([149,356],null,{accomplished:30,received:0},"Tiros libres cancha propia","","","",1),cornerFromRight:new Tu([32],null,{accomplished:31,received:0},"Tiros de esquina por derecha","","","",1),cornerFromLeft:new Tu([31],null,{accomplished:32,received:0},"Tiros de esquina por izquierda","","","",1),goalKick:new Tu([264,28],null,{accomplished:33,received:0},"Saques de meta","","","",1)}},penalties:{name:"Infracciones",priority:6,parentInfo:{parentAnalysis:[1],analysisTypeBlocks:[1]},subcategories:{totalFouls:new Tu([17,50],null,{accomplished:34,received:0},"Faltas totales","","","",1),foulOwnGoal:new Tu([348,478],null,{accomplished:35,received:0},"Faltas cerca de su propia portería","","","",1),fieldFouls:new Tu([349,350,479,480],null,{accomplished:36,received:0},"Faltas resto del campo","","","",1),penaltyKick:new Tu([461,481],null,{accomplished:37,received:0},"Penales cometidos","","","",1),offside:new Tu([33],null,{accomplished:38,received:0},"Fueras de lugar","","","",1)}}},xu=[{parentAnalysis:[1,2,3],value:0,text:"Realizado",block:1},{parentAnalysis:[1,2,3],value:1,text:"Recibido",block:1},{parentAnalysis:[1],value:0,text:"Posesión",block:2},{parentAnalysis:[1,2],value:0,text:"Origen de gol realizado",block:3},{parentAnalysis:[1,2],value:1,text:"Origen de gol recibido",block:3}];let Cu=null;let Iu=null;function Pu(e,t,a){return[a.get(e[t.categoryId])||[],e[t.teamId],e[t.matchResult],e[t.playingAs],e[t.matchLapse],e[t.section],e[t.total]]}function Gu(e){return[[1,1,e.local.win],[1,2,e.local.lose],[1,3,e.local.draw],[2,1,e.visit.win],[2,2,e.visit.lose],[2,3,e.visit.draw]]}function Fu(e,t,a){let s=[...t];return 2===e[a.categoryId]&&(s[0]=14),20===e[a.categoryId]&&(s[0]=15),[14,15].includes(s[0])?s:null}const Au=N(),Mu=[{name:"Liga MX",id:1},{name:"Liga MX Femenil",id:1001},{name:"Liga Expansión MX",id:1071}],Lu={nextGeneral:{namespaced:!0,state:{seasonId:0,pastSeasonId:0,usePastSeasonId:!1,isSocketConnected:!1,indexesLP:_u(),indexesTSP:(wu||(wu=ve(["categoryId","teamId","matchResult","playingAs","matchLapse","section","total"])),wu),indexesLS:(Cu||(Cu=ve(["teamId","categoryId","matchlapse","section","matchResult","playingAs","total","gameId"])),Cu),indexesTLP:(Iu||(Iu=ve(["playId","gameId","teamId","playerId","momentOfPlay","categoryId","categoryType","matchLapse","section","matchResult","playingAs","total","coordinate1X","coordinate1Y","coordinate2X","coordinate2Y","coordinate3X","coordinate3Y"])),Iu),nextGamesDataStructure:ku,currentSeasonGames:[],currentSeasonTeams:[],gameForAnalysis:{},showPostMatch:!1,homeResultGame:null,awayResultGame:null,selectedAnalysis:{},selectedStatisticTypeBlock:1,gameId:null,game:{},games:[],homeTeamPlays:[],visitingTeamPlays:[],currentSeasonPlays:[],livePlays:new Map,totalSeasonFinishedGames:0,totalHomeTeamFinishedGames:0,totalVisitingTeamFinishedGames:0,homeGames:[],homeTeamInfo:{},awayTeamInfo:{},visitingGames:[],idAssetSelected:1,isLive:!1,menuOptionActive:"",showLiveData:!0,showAdvanceFilter:!1,homeTeamFilter:{teamId:0,statistics:0,playingAs:[],matchResult:[],sections:[],requiresPlaysFiltering:!0},visitingTeamFilter:{teamId:0,statistics:0,playingAs:[],matchResult:[],sections:[],requiresPlaysFiltering:!0},oldSeasonId:0,statistics:[],isRankingCalculating:!0,categoriesMap:new Map,defaultFilter:null,filterAux:null,betSubcategories:[],betDescription:{},regularSeasonName:"",betSubcategoriesObjects:[],currentTournamentName:"",toBackRouteName:"home"},getters:{betSubcategoriesIds(e){return e.betSubcategories.map(e=>e.id)},showPostMatchData:e=>e.showPostMatch,getHomeResultGame:e=>e.homeResultGame,getAwayResultGame:e=>e.awayResultGame,getSeasonId:e=>e.seasonId,getGameForAnalysis:e=>e.gameForAnalysis,isLive:e=>e.isLive,showLive:e=>4===e.gameForAnalysis.game_status&&e.gameForAnalysis.is_live,menuOptionActive:e=>e.menuOptionActive,showLiveData:e=>e.showLiveData,showAdvanceFilter:e=>e.showAdvanceFilter,idAssetSelected:e=>e.idAssetSelected,gameId:e=>e.gameId,game:e=>e.game,homeTeam(e){return e.homeTeamInfo},visitingTeam(e){return e.awayTeamInfo},rankingData(e){return e.statistics},homeTeamStatisticsType(e){return e.homeTeamFilter.statistics?"received":"accomplished"},visitingTeamStatisticsType(e){return e.visitingTeamFilter.statistics?"received":"accomplished"},subcategoryName(e){return`${e.homeTeamFilter.statistics}-${e.visitingTeamFilter.statistics}`},statisticsTypes(e){return xu.filter(t=>t.parentAnalysis.includes(e.selectedAnalysis.id))},homeTeamFilteredPlays(e){if(e.homeTeamFilter.requiresPlaysFiltering)return uu(e.homeTeamPlays,e.homeTeamFilter.playingAs,e.homeTeamFilter.matchResult,e.homeTeamFilter.sections,e.indexesTSP)},visitingTeamFilteredPlays(e){if(e.visitingTeamFilter.requiresPlaysFiltering)return uu(e.visitingTeamPlays,e.visitingTeamFilter.playingAs,e.visitingTeamFilter.matchResult,e.visitingTeamFilter.sections,e.indexesTSP)},currentSeasonTeamsIds(e){return e.currentSeasonTeams.map(e=>e.team_id)},canFilledStructure(e){return e.homeTeamFilter.requiresPlaysFiltering||e.visitingTeamFilter.requiresPlaysFiltering},totalFilteredHomeGames(e){return e.homeGames.filter(t=>e.homeTeamFilter.playingAs.includes(t[0])).filter(t=>e.homeTeamFilter.matchResult.includes(t[1])).reduce((e,t)=>e+t[2],0)},totalFilteredVisitingGames(e){return e.visitingGames.filter(t=>e.visitingTeamFilter.playingAs.includes(t[0])).filter(t=>e.visitingTeamFilter.matchResult.includes(t[1])).reduce((e,t)=>e+t[2],0)},filledDataStructure(e,t){if(e.currentSeasonPlays)for(const a of Object.values(e.nextGamesDataStructure))for(const s of Object.values(a.subcategories))e.homeTeamFilter.requiresPlaysFiltering&&s.homeTeam.resetTotals(),e.visitingTeamFilter.requiresPlaysFiltering&&s.visitingTeam.resetTotals(),s.addLeaguePlays(e.currentSeasonPlays,e.indexesLP,e.totalSeasonFinishedGames),s.addTeamPlays(s.homeTeamType,e.gameForAnalysis.home_team,t.homeTeamFilteredPlays,e.indexesTSP,e.showPostMatch?1:t.totalFilteredHomeGames),s.addTeamPlays(s.visitingTeamType,e.gameForAnalysis.visiting_team,t.visitingTeamFilteredPlays,e.indexesTSP,e.showPostMatch?1:t.totalFilteredVisitingGames);return e.nextGamesDataStructure},arrayFilledDataSortedByPriority(e,t){return Object.values(t.filledDataStructure).sort((e,t)=>e.priority-t.priority)},statisticData(e,t){for(const a of Object.values(t.filledDataStructure))if(a.parentInfo.parentAnalysis.includes(e.selectedAnalysis.id)&&a.parentInfo.analysisTypeBlocks.includes(e.selectedStatisticTypeBlock))return a.subcategories;return{}},accomplished(e){return 0===e.homeTeamFilter.statistics}},mutations:{updateGameForAnalysisByProps(e,t){for(const[a,s]of Object.entries(t))e.gameForAnalysis[a]=s},setCurrentTournamentName(e,t){e.currentTournamentName=t},setBetSubcategoriesObjects(e,t){e.betSubcategoriesObjects=t},setRegularSeasonName(e,t){e.regularSeasonName=t},setBetSubcategories(e,t){e.betSubcategories=t},setBetDescription(e,t){e.betDescription=t},setSeasonId(e,t){e.seasonId=+t},setHome(e,t){e.homeTeamInfo=t},setAway(e,t){e.awayTeamInfo=t},setMenuOptionActive(e,t){e.menuOptionActive=t},setPastSeasonId(e,t){e.pastSeasonId=t},setUsePastSeasonId(e,t){e.usePastSeasonId=t,t&&(e.oldSeasonId=e.pastSeasonId)},updateShowPostMatchData(e,t){e.showPostMatch=t},setHomeResultGame(e,t){e.homeResultGame=t},setAwayResultGame(e,t){e.awayResultGame=t},updateIsSocketConnected(e,t){e.isSocketConnected=t,t&&e.gameForAnalysis.is_live&&4===e.gameForAnalysis.game_status&&z(`game.${e.gameForAnalysis.game_id}.v2`)},updateCurrentSeasonTeams(e,t){e.currentSeasonTeams=t,e.currentSeasonTeams.forEach(t=>{t.playedGames=e.currentSeasonGames.reduce((e,a)=>{if(1===a.game_status&&(a.home_team===t.team_id||a.visiting_team===t.team_id)){const s=a.score[0]-a.score[1],i=a.home_team===t.team_id;e.push({playingAs:i?1:2,matchResult:0===s?3:i?s>0?1:2:0>s?1:2})}return e},[])})},updateCurrentSeasonGames(e,t){e.currentSeasonGames=t},updateGameId(e,t){e.gameId=t},updateGameForAnalysis(e,t){e.gameForAnalysis=t,e.isLive=!!t.is_live,e.homeTeamFilter.teamId=e.gameForAnalysis.home_team,e.visitingTeamFilter.teamId=e.gameForAnalysis.visiting_team},updateSelectedAnalysis(e,t){e.selectedAnalysis=t},updateShowLiveData(e,t){e.showLiveData=t},toggleAdvanceFilter(e){e.showAdvanceFilter=!e.showAdvanceFilter},updateIdAssetSelected(e,t){e.idAssetSelected=t},updateStats(e,t){e.currentSeasonPlays=t},updateFilterAux(e){e.filterAux||(e.filterAux={homeTeamFilter:{...e.homeTeamFilter},visitingTeamFilter:{...e.visitingTeamFilter}})},updateFilters(e,{filters:t,needsFormat:a=!1}){if(a){if(!(t&&t.local&&t.local.statistics&&t.visit&&t.visit.statistics))return;e.homeTeamFilter=_e(e.homeTeamFilter,t.local,e.gameForAnalysis.home_team),e.visitingTeamFilter=_e(e.visitingTeamFilter,t.visit,e.gameForAnalysis.visiting_team),e.selectedStatisticTypeBlock!==t.local.statistics.block&&(e.selectedStatisticTypeBlock=t.local.statistics.block)}else e.homeTeamFilter={...t.homeTeamFilter,statistics:0},e.visitingTeamFilter={...t.visitingTeamFilter,statistics:0}},updateFinishedGames(e,t){e.totalSeasonFinishedGames=t},updateHomeTeamPlays(e,t){e.homeTeamPlays=t},updateVisitingTeamPlays(e,t){e.visitingTeamPlays=t},addSpecialMentions(e,t){const a=Object.values(e.nextGamesDataStructure);a.forEach(e=>{for(const t of Object.values(e.subcategories))t.resetMentions()}),a.forEach(e=>{for(const a of t)for(const t of Object.values(e.subcategories))t.addSpecialMention(a[0],a[1],a[2])})},setDefaultFilter(e,t){e.defaultFilter={homeTeamFilter:{...t.homeTeamFilter,teamId:e.gameForAnalysis.home_team},visitingTeamFilter:{...t.awayTeamFilter,teamId:e.gameForAnalysis.visiting_team}}},addLiveGamePlay(e,t){if(!e.livePlays.has(t[e.indexesTLP.playId])){e.livePlays.set(t[e.indexesTLP.playId],t);const a=Pu(t,e.indexesTLP,e.categoriesMap);for(const t of Object.values(e.nextGamesDataStructure))for(const s of Object.values(t.subcategories))s.addLivePlay(e.gameForAnalysis.home_team===a[e.indexesTSP.teamId]?"homeTeam":"visitingTeam",a[e.indexesTSP.teamId],a,e.indexesTSP,e.isLive,!1)}},updateLiveGamePlay(e,t){const a=!!t[e.indexesTLP.length],s=e.livePlays.get(t[e.indexesTLP.playId]);if(((e,t)=>{let a=!(!Array.isArray(e)||!Array.isArray(t))&&e.length===t.length;if(a)for(let s of e)if(!t.includes(s)){a=!1;break}return a})(s,t))return;let i="";const o=e.gameForAnalysis.home_team===t[e.indexesTLP.teamId]?"homeTeam":"visitingTeam";s&&(i=e.gameForAnalysis.home_team===s[e.indexesTLP.teamId]?"homeTeam":"visitingTeam");const n=Pu(s,e.indexesTLP,e.categoriesMap),l=Fu(s,n,e.indexesTLP),r=Pu(t,e.indexesTLP,e.categoriesMap),d=Fu(t,r,e.indexesTLP);for(const c of Object.values(e.nextGamesDataStructure))for(const t of Object.values(c.subcategories))s&&(t.subtractLivePlay(i,n[e.indexesTSP.teamId],n,e.indexesTSP,a),l&&t.subtractLivePlay(i,l[e.indexesTSP.teamId],l,e.indexesTSP,a)),t.addLivePlay(o,r[e.indexesTSP.teamId],r,e.indexesTSP,e.isLive,a),d&&t.addLivePlay(o,d[e.indexesTSP.teamId],d,e.indexesTSP,e.isLive,a);e.livePlays.set(t[e.indexesTLP.playId],t)},deleteLiveGamePlay(e,t){const a=!!t[e.indexesTLP.length],s=e.livePlays.get(t[e.indexesTLP.playId]);let i="";if(s){i=e.gameForAnalysis.home_team===s[e.indexesTLP.teamId]?"homeTeam":"visitingTeam",e.livePlays.delete(s[e.indexesTLP.playId]);const o=Pu(s,e.indexesTLP,e.categoriesMap),n=Fu(t,o,e.indexesTLP);for(const t of Object.values(e.nextGamesDataStructure))for(const s of Object.values(t.subcategories))s.subtractLivePlay(i,o[e.indexesTSP.teamId],o,e.indexesTSP,a),n&&s.subtractLivePlay(i,n[e.indexesTSP.teamId],n,e.indexesTSP,a)}},clearLiveTotals(e){for(const t of Object.values(e.nextGamesDataStructure))for(const e of Object.values(t.subcategories))e.homeTeam.resetTotalsLive(),e.visitingTeam.resetTotalsLive()},updateSeasonStatistics(e,t){e.statistics=t},updateOldSeasonId(e,t){e.oldSeasonId=t},addRankingInSubcategories(e,{getters:t,isPremiumAccount:a}){if(!e.homeTeamFilter.teamId||!e.visitingTeamFilter.teamId)return;e.isRankingCalculating=!1,e.currentSeasonTeams.forEach(t=>{t.homeTeamFilterGames=t.playedGames.filter(t=>e.homeTeamFilter.playingAs.includes(t.playingAs)&&e.homeTeamFilter.matchResult.includes(t.matchResult)).length,t.visitingTeamFilterGames=t.playedGames.filter(t=>e.visitingTeamFilter.playingAs.includes(t.playingAs)&&e.visitingTeamFilter.matchResult.includes(t.matchResult)).length});const s=[],i=new Map;for(const o of Object.values(e.nextGamesDataStructure))for(const e of Object.values(o.subcategories))s.push(e);t.rankingData.forEach(t=>{for(const a of s)if(a.isInGeneralCategory(t[e.indexesLS.categoryId])){i.has(a.id)?i.get(a.id).push(t):i.set(a.id,[t]);break}})},prepareCleanAllStatistics(e){e.homeTeamFilter.requiresPlaysFiltering=!0,e.visitingTeamFilter.requiresPlaysFiltering=!0},setHomeGames(e,t){e.homeGames=Gu(t)},setVisitingGames(e,t){e.visitingGames=Gu(t)},generateCategoriesMap(e){for(const t of Object.values(e.nextGamesDataStructure))for(const a of Object.values(t.subcategories))a.accomplishedCategoryIds.forEach(t=>{const s=e.categoriesMap.get(t);s?s.push(a.generalCategoriesIds.accomplished):e.categoriesMap.set(t,[a.generalCategoriesIds.accomplished])})},resetNextGamesDataStructure(e){for(const t of Object.values(e.nextGamesDataStructure))for(const e of Object.values(t.subcategories))e.resetData()}},actions:{turnOnOffDefaultFilters({state:e,commit:t},{command:a}){t("updateFilters","on"===a?{filters:e.defaultFilter,needsFormat:!1}:{filters:e.filterAux,needsFormat:!1})},async setAndGetStatsPostMatch({commit:e},t){try{const n=await(async e=>{try{return await pu({url:"https://nckawv8v3b.execute-api.us-west-2.amazonaws.com/prod/v2/statisticsByGame/"+e.gameId})}catch(t){return Promise.reject(t)}})({gameId:t.gameId});if(n){var a=[],s=[],i={season:0,total:0,visit:{total:0,draw:0,win:0,lose:0},played:0,local:{total:0,draw:0,win:0,lose:0}},o={season:0,total:0,visit:{total:0,draw:0,win:0,lose:0},played:0,local:{total:0,draw:0,win:0,lose:0}};0!==Object.keys(n.data).length&&(a=n.data.data.filter(e=>e[1]==t.homeTeam),s=n.data.data.filter(e=>e[1]==t.awayTeam),i=n.data.games,o=n.data.games),e("updateHomeTeamPlays",a),e("updateVisitingTeamPlays",s),e("setHomeGames",i),e("setVisitingGames",o)}else e("updateHomeTeamPlays",[]),e("updateVisitingTeamPlays",[])}catch(n){return Promise.reject(n)}},async fillStatisticDataPostMatch({commit:e,dispatch:t},a){e("prepareCleanAllStatistics"),e("updateHomeTeamPlays",[]),e("updateVisitingTeamPlays",[]),e("setIsSectionLoading",!0,{root:!0});try{let s=[];e("updateGameForAnalysis",a.gameInfo),s.push(t("setAndGetStatsPostMatch",{gameId:a.game,homeTeam:a.homeTeam,awayTeam:a.awayTeam})),await Promise.all(s)}catch(s){throw Error(s)}finally{e("setIsSectionLoading",!1,{root:!0})}},async checkState({state:e,dispatch:t,commit:a},{gameId:s,isTeamsAnalysis:i,currentSeasonId:o,isLoginChanged:n=!1,defaultFilter:l=null,gameInfo:r=null,isCupGame:d=!1}){try{let c={},m=e.seasonId!==+o;const p=[];a("setIsSectionLoading",!0,{root:!0}),a("setUsePastSeasonId",!1),m&&a("setSeasonId",o),a("updateGameId",+s),e.oldSeasonId!==e.seasonId&&a("resetNextGamesDataStructure");const h=await t("getCurrentSeasonGames",+s);a("leagueGeneral/updateCurrentSeasonGames",h,{root:!0}),c=h.find(e=>e.game_id===+s),!c&&r&&(c=r),c&&a("updateGameForAnalysis",c),1!==c.game_status&&((n||0===e.categoriesMap.size)&&a("generateCategoriesMap"),d||await t("checkTeamsData",{gameId:s,isFromBet:!!l}),(n||e.oldSeasonId!==e.seasonId||0===e.statistics.length)&&p.push(t("getSeasonStatistics"))),e.usePastSeasonId&&a("leagueGeneral/updateCurrentSeasonGames",await t("getCurrentSeasonGamesLast"),{root:!0}),!n&&0!==e.currentSeasonTeams.length&&e.currentSeasonTeams.find(e=>c.home_team===e.team_id)||p.push(t("getCurrentSeasonTeams")),a("setHomeResultGame",c.score[0]),a("setAwayResultGame",c.score[1]),i?1!==c.game_status?(await t("fillStatisticData",{gameId:s,gameinfo:c,promises:p,defaultFilter:l}),a("updateShowPostMatchData",!1)):(a("updateStats",[]),a("updateShowPostMatchData",!0),p.push(t("fillStatisticDataPostMatch",{game:s,homeTeam:c.home_team,awayTeam:c.visiting_team,gameInfo:c})),await Promise.all(p)):a("setIsSectionLoading",!1,{root:!0})}catch(c){return Promise.reject(c)}},async fillStatisticData({commit:e,dispatch:t,getters:a,rootGetters:s,state:i},{gameId:o,gameinfo:n,promises:l=[],defaultFilter:r=null}){let d=null;try{e("setIsSectionLoading",!0,{root:!0}),e("prepareCleanAllStatistics"),e("updateHomeTeamPlays",[]),e("updateVisitingTeamPlays",[]),e("updateGameForAnalysis",n),(n.is_live||0===n.game_status)&&l.push(t("getCurrentLiveGamePlays",o)),l.push(t("getSpecialMentionsByGame",o)),l.push(t("getHomeTeamPlays")),l.push(t("getVisitingTeamPlays")),l.push(t("getCurrentSeasonPlays")),r&&l.push((async({filter:e})=>{try{const t="https://n7ielynjxk.execute-api.us-east-2.amazonaws.com/qa/filters?filters="+e,{data:a}=await pu({url:t});return a}catch(t){return Promise.reject(t)}})(r)),d=await Promise.all(l)}catch(c){throw Error(c)}finally{setTimeout(()=>{if(e("addRankingInSubcategories",{getters:a,isPremiumAccount:s["loginGeneral/getPremiumAccount"]}),r){const[a]=d.pop();a&&(e("setBetSubcategories",a.categories),e("setBetDescription",a.sectionDescription),e("setDefaultFilter",a.params),e("updateFilterAux"),e("updateFilters",{filters:i.defaultFilter,needsFormat:!1}),t("updateRankingInSubcategories"))}},100),e("setIsSectionLoading",!1,{root:!0})}},async checkTeamsData({state:e,dispatch:t,rootState:a,commit:s},{gameId:i,isFromBet:o}){try{const n=+i;if(e.pastSeasonId){s("setPastSeasonId",e.pastSeasonId,{root:!0});const i=a.leagueGeneral.currentSeasonGames.find(e=>e.game_id===n);i&&s("updateGameForAnalysis",i),await Promise.all([t("getHomeTeamPlays"),t("getVisitingTeamPlays")]),s("setUsePastSeasonId",o||(!e.homeTeamPlays||0===e.homeTeamPlays.length)&&(!e.visitingTeamPlays||0===e.visitingTeamPlays.length))}else s("setUsePastSeasonId",!1)}catch(n){throw Error(n)}},async getSpecialMentionsByGame({commit:e},t){try{const a=await(async({gameId:e})=>{try{const t="https://55sbpmq0f5.execute-api.us-west-2.amazonaws.com/prod/specialMentions/"+e;return(await pu({url:t})).data.data||[]}catch(t){return Promise.reject(t)}})({gameId:t});e("addSpecialMentions",a)}catch(a){return Promise.reject(a)}},async getCurrentSeasonGames({commit:e,state:t},a){try{const{teams:s,games:i,past_season_id:o,tournament_id:n}=await(async({seasonId:e,gameId:t})=>{try{const a=`https://iwxfzq6e2h.execute-api.us-west-2.amazonaws.com/prod/v2/statisticsLeagueBySeason/${e}/games/${t}`,{data:s}=await pu({url:a});return s}catch(a){return Promise.reject(a)}})({seasonId:t.usePastSeasonId?t.pastSeasonId:t.seasonId,gameId:a}),l=Mu.find(e=>e.id===n);return l&&e("setCurrentTournamentName",l.name),e("setHome",s[0]),e("setAway",s[1]),t.usePastSeasonId||e("setPastSeasonId",o),await e("updateCurrentSeasonGames",i),i&&Array.isArray(i)&&e("updateFinishedGames",i.reduce((e,t)=>(1===t.game_status&&(e+=1),e),0)),i}catch(s){return Promise.reject(s)}},async getCurrentSeasonGamesLast({commit:e,state:t}){try{const{games:a,past_season_id:s}=await yu({seasonId:t.usePastSeasonId?t.pastSeasonId:t.seasonId});return t.usePastSeasonId||e("setPastSeasonId",s),await e("updateCurrentSeasonGames",a),a&&Array.isArray(a)&&e("updateFinishedGames",a.reduce((e,t)=>(1===t.game_status&&(e+=1),e),0)),a}catch(a){return Promise.reject(a)}},async getCurrentSeasonTeams({commit:e,state:t}){try{e("updateCurrentSeasonTeams",(await(async e=>{try{const t="https://yjeig444bb.execute-api.us-west-2.amazonaws.com/prod/teamsBySeason/"+e.seasonId;return await pu({url:t})}catch(t){return Promise.reject(t)}})({seasonId:t.usePastSeasonId?t.pastSeasonId:t.seasonId})).data.teams)}catch{}},async getSeasonStatistics({commit:e,state:t}){try{const a=t.usePastSeasonId?t.pastSeasonId:t.seasonId,s=await(async({seasonId:e})=>{try{return(await pu({url:"https://sqf4rkvoge.execute-api.us-west-2.amazonaws.com/prod/v3/statisticsGroupedBySeason/"+e})).data.data}catch(t){return Promise.reject(t)}})({seasonId:a});e("updateSeasonStatistics",s),e("updateOldSeasonId",a)}catch(a){return Promise.reject(a)}},updateRankingInSubcategories({state:e,commit:t,getters:a,rootGetters:s}){e.currentSeasonGames.length>0&&t("addRankingInSubcategories",{getters:a,isPremiumAccount:s["loginGeneral/getPremiumAccount"]})},async getHomeTeamPlays({commit:e,state:t}){try{const a=await fu({seasonId:t.usePastSeasonId?t.pastSeasonId:t.seasonId,teamId:t.gameForAnalysis.home_team});a.data&&(e("updateHomeTeamPlays",a.data.data),e("setHomeGames",a.data.games))}catch(a){return Promise.reject(a)}},async getVisitingTeamPlays({commit:e,state:t}){try{const a=await fu({seasonId:t.usePastSeasonId?t.pastSeasonId:t.seasonId,teamId:t.gameForAnalysis.visiting_team});a.data&&(e("updateVisitingTeamPlays",a.data.data),e("setVisitingGames",a.data.games))}catch(a){return Promise.reject(a)}},async getCurrentSeasonPlays({commit:e,state:t}){try{e("updateStats",await(async({seasonId:e})=>{try{return(await pu({url:"https://iwxfzq6e2h.execute-api.us-west-2.amazonaws.com/prod/v2/statisticsLeagueBySeason/"+e})).data.data}catch(t){return Promise.reject(t)}})({seasonId:t.usePastSeasonId?t.pastSeasonId:t.seasonId}))}catch(a){return Promise.reject(Error(a))}},async getCurrentLiveGamePlays({state:e,commit:t},a){try{const s=await(async({gameId:e})=>{try{const t="https://2uj7ojhmt5.execute-api.us-west-2.amazonaws.com/prod/V2/statisticsLive/"+e;return(await pu({url:t})).data.data}catch(t){return Promise.reject(t)}})({gameId:a});e.livePlays=new Map,s.forEach(a=>{e.gameForAnalysis.game_id!==a[e.indexesTLP.gameId]||e.gameForAnalysis.home_team!==a[e.indexesTLP.teamId]&&e.gameForAnalysis.visiting_team!==a[e.indexesTLP.teamId]||t("addLiveGamePlay",a)})}catch(s){throw Error(s)}},socket_new({state:e,commit:t},a){const s=a[1];e.gameForAnalysis.home_team!==s[e.indexesTLP.teamId]&&e.gameForAnalysis.visiting_team!==s[e.indexesTLP.teamId]||t("addLiveGamePlay",s)},socket_update({state:e,commit:t},a){const s=a[1];e.gameForAnalysis.game_id!==s[e.indexesTLP.gameId]||e.gameForAnalysis.home_team!==s[e.indexesTLP.teamId]&&e.gameForAnalysis.visitingTeam!==s[e.indexesTLP.teamId]||t("updateLiveGamePlay",s)},socket_delete({state:e,commit:t},a){const s=a[1];e.gameForAnalysis.game_id!==s[e.indexesTLP.gameId]||e.gameForAnalysis.home_team!==s[e.indexesTLP.teamId]&&e.gameForAnalysis.visiting_team!==s[e.indexesTLP.teamId]||t("deleteLiveGamePlay",s)},exitChannel({state:e,getters:t,rootState:a,rootGetters:s,commit:i}){const o=s["loginGeneral/getPremiumAccount"];t.isLive&&o&&(i("updateShowLiveData",!0),i("clearLiveTotals"),e.livePlays.clear(),Au.emit("unsubscribe",{channel:`game.${e.gameForAnalysis.game_id}.v2`}))},cleanStats({state:e}){for(const t of Object.values(e.nextGamesDataStructure))for(const e of Object.values(t.subcategories))e.homeTeam.resetTotals(),e.visitingTeam.resetTotals(),e.homeTeam.resetTotalsLive(),e.visitingTeam.resetTotalsLive(),e.isBetMainSubcategory=!1;Object.values(e.nextGamesDataStructure).forEach(e=>{for(const t of Object.values(e.subcategories))t.resetMentions()}),e.currentSeasonPlays=null,e.homeTeamPlays=[],e.visitingTeamPlays=[],e.homeTeamFilter.requiresPlaysFiltering=!0,e.visitingTeamFilter.requiresPlaysFiltering=!0,e.isRankingCalculating=!0},cleanAllStats({state:e}){for(const t of Object.values(e.nextGamesDataStructure))for(const e of Object.values(t.subcategories))e.homeTeam.resetTotals(),e.visitingTeam.resetTotals(),e.isBetMainSubcategory=!1;Object.values(e.nextGamesDataStructure).forEach(e=>{for(const t of Object.values(e.subcategories))t.resetMentions()}),e.currentSeasonGames=[],e.currentSeasonTeams=[],e.gameForAnalysis={},e.homeTeamPlays=[],e.visitingTeamPlays=[],e.currentSeasonPlays=null,e.totalSeasonFinishedGames=0,e.totalHomeTeamFinishedGames=0,e.totalVisitingTeamFinishedGames=0,e.homeGames=[],e.showPostMatch=!1,e.homeResultGame=null,e.awayResultGame=null,e.visitingGames=[],e.idAssetSelected=1,e.showAdvanceFilter=!1,e.selectedAnalysis={},e.homeTeamFilter={teamId:0,statistics:0,playingAs:[],matchResult:[],sections:[],requiresPlaysFiltering:!0},e.visitingTeamFilter={teamId:0,statistics:0,playingAs:[],matchResult:[],sections:[],requiresPlaysFiltering:!0},e.isRankingCalculating=!0}}}},Ou={gameGlobal:{namespaced:!0,state:{videoSrc:null,isVideoModalVisible:!1,tournaments:[],seccionBetsGolTipster:1,tournamentSelected:{},tournamentType:0,sectionAnalytics:"Banner_Home",previewSectionAnalytics:"",sectionRef:"",booleanIsStatisticModalOpen:!1},getters:{getTournamentType:e=>e.tournamentType,getSectionAnalytics(e){return e.sectionAnalytics},getPreviewSectionAnalytics(e){return e.previewSectionAnalytics},getSeccionBetsGolTipster(e){return e.seccionBetsGolTipster}},mutations:{setBooleanIsStatisticModalOpen(e,t){e.booleanIsStatisticModalOpen=t},setTournamentType(e,t){e.tournamentType=t},setSectionRef(e,t){e.sectionRef=t},setSectionAnalytics(e,t){e.sectionAnalytics=t},setSeccionBetsGolTipster(e,t){e.seccionBetsGolTipster=t},setPreviewSectionAnalytics(e,t){e.previewSectionAnalytics=t},setVideoSrc(e,t){e.videoSrc=t},setVideoModalVisibility(e,t){e.isVideoModalVisible=t},setSelectedTournament(e,t){e.selectedTournament=t},setTournaments(e,t){e.tournaments=t.map(e=>({...e.tournament,seasons:e.seasons})),e.tournamentSelected=e.tournaments[0]},setTournamentSelected(e,t){e.tournamentSelected=t}},actions:{async fetchTournaments({state:e,commit:t}){try{0===e.tournaments.length&&t("setTournaments",await(async()=>{try{const{data:e}=await pu({url:"https://kefloixzy1.execute-api.us-west-2.amazonaws.com/prod/tournaments"});return e}catch(e){throw Error(e)}})())}catch(a){throw Error(a)}}}}},Nu=(e,t)=>{let a={};return e.forEach((e,s)=>{3==s&&(35!=t[0]&&54!=t[0]||(2==t[s]?t[s]=1:t[s]=2)),2==s&&(35!=t[0]&&54!=t[0]||(1==t[s]?t[s]=2:2==t[s]&&(t[s]=1))),a[e]=t[s]}),a},Du=(e,t)=>e.filter(e=>{const a=t.playingAs.includes(e.playing_as),s=t.matchResult.includes(e.match_result),i=t.sections.includes(e.section);return a&&s&&i});function Vu(e,t){return Math.ceil10(e,-1*t)}Math.ceil10||(Math.ceil10=(e,t)=>((e,t,a)=>void 0===a||0===+a?Math[e](t):(a=+a,isNaN(t=+t)||"number"!=typeof a||a%1!=0?NaN:(t=t.toString().split("e"),+((t=(t=Math[e](+(t[0]+"e"+(t[1]?+t[1]-a:-a)))).toString().split("e"))[0]+"e"+(t[1]?+t[1]+a:a)))))("ceil",e,t));const zu={...Ou,...bu,...Lu,xgGeneral:{namespaced:!0,state:{teamSelected:"Local",xGLocalPlays:[],xGVisitingPlays:[]},getters:{playsLocal(e,t,a){const s=e.xGLocalPlays,i=a.nextGeneral.homeTeamFilter;return Du(s,i)||[]},playsAway(e,t,a){const s=e.xGVisitingPlays,i=a.nextGeneral.visitingTeamFilter;return Du(s,i)},goalsQtyLocal(e,t){const a=Ha.find(e=>"Goles"===e.name);return t.playsLocal.filter(e=>a.categories.includes(e.category_id)).length},goalsQtyAway(e,t){const a=Ha.find(e=>"Goles"===e.name);return t.playsAway.filter(e=>a.categories.includes(e.category_id)).length},shotsOnGoalQtyLocal:(e,t)=>t.playsLocal.filter(e=>510===e.category_id).length,shotsOnGoalQtyAway:(e,t)=>t.playsAway.filter(e=>510===e.category_id).length,headQtyLocal(e,t){const a=Ha.find(e=>"Remates con cabeza"===e.name);return t.playsLocal.filter(e=>a.categories.includes(e.category_id)).length},headQtyAway(e,t){const a=Ha.find(e=>"Remates con cabeza"===e.name);return t.playsAway.filter(e=>a.categories.includes(e.category_id)).length},penaltiesQtyLocal(e,t){const a=Ha.find(e=>"Penales"===e.name);return t.playsLocal.filter(e=>a.categories.includes(e.category_id)).length},penaltiesQtyAway(e,t){const a=Ha.find(e=>"Penales"===e.name);return t.playsAway.filter(e=>a.categories.includes(e.category_id)).length},xGLocal(e,t){const a=new Set;return Vu(t.playsLocal.reduce((e,t)=>(a.has(t.moment_of_play)||(a.add(t.moment_of_play),e+=t.xG2),e),0),2)},xGAway(e,t){const a=new Set;return Vu(t.playsAway.reduce((e,t)=>(a.has(t.moment_of_play)||(a.add(t.moment_of_play),e+=t.xG2),e),0),2)}},mutations:{setTeamSelected(e,t){e.teamSelected=t},setPlays(e,t){const a=t.local_team.map(e=>Nu(t.data_headers,e)),s=[],i=[],o=[],n=[],l=new Set;a.forEach(e=>{qa.has(e.category_id)?l.has(e.moment_of_play)||(l.add(e.moment_of_play),s.push(e)):Ea.has(e.category_id)?i.push(e):Ja.has(e.category_id)?o.push(e):Wa.has(e.category_id)&&n.push(e)}),e.xGLocalPlays=[...i,...s,...o,...n];const r=t.visiting_team.map(e=>Nu(t.data_headers,e)),d=new Set,c=[],m=[],p=[],h=[];r.forEach(e=>{qa.has(e.category_id)?d.has(e.moment_of_play)||(d.add(e.moment_of_play),c.push(e)):Ea.has(e.category_id)?m.push(e):Ja.has(e.category_id)?p.push(e):Wa.has(e.category_id)&&h.push(e)}),e.xGVisitingPlays=[...m,...c,...p,...h]},cleanXgStore(e){e.localStorage="Local",e.xGLocalPlays=[],e.xGVisitingPlays=[]}},actions:{async getXgPlays({commit:e},{seasonId:t,localTeamId:a,visitingTeamId:s,postMatch:i=!1}){try{let o={};o=i?await(async({seasonId:e,localTeamId:t,visitingTeamId:a})=>{try{const s=`https://bzznnzehtf.execute-api.us-west-2.amazonaws.com/prod/xg/game/${e}/teams/${t}/${a}`;return(await pu({url:s})).data}catch(s){return Promise.reject(s)}})({seasonId:t,localTeamId:a,visitingTeamId:s}):await(async({seasonId:e,localTeamId:t,visitingTeamId:a})=>{try{const s=`https://bzznnzehtf.execute-api.us-west-2.amazonaws.com/prod/xg/seasons/${e}/teams/${t}/${a}`;return(await pu({url:s})).data}catch(s){return Promise.reject(s)}})({seasonId:t,localTeamId:a,visitingTeamId:s}),e("setPlays",o)}catch(o){return Promise.reject(o)}}}}};e.GSCGameData=mu,e.connectSocket=D,e.disconnectSocket=V,e.getSocket=N,e.registerStoreModules=e=>{for(const[t,a]of Object.entries(zu))e.hasModule(t)||e.registerModule(t,a)},Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})});
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue"),require("@golstats/gsc-tournament-select"),require("@golstats/gsc-season-select"),require("@golstats/gsc-calendar-by-game"),require("vuex"),require("socket.io-client"),require("@golstats/gsc-menu"),require("@golstats/gsc-checkbox"),require("@golstats/gsc-radio-button"),require("@golstats/gsc-dropdown"),require("axios"),require("@golstats/gsc-slider"),require("@golstats/gsc-switch-radio"),require("@golstats/gsc-lineups"),require("@golstats/gsc-datagames"),require("@golstats/gsc-game-video"),require("@golstats/gsc-highlights"),require("@golstats/gsc-filters"),require("plotly.js-dist-min"),require("@golstats/gsc-filterperteam"),require("@golstats/gsc-button"),require("@golstats/gsc-carousel"),require("@golstats/gsc-label"),require("@golstats/gsc-switch-component"),require("@golstats/gsc-positioning"),require("@golstats/gscsetpiece"),require("@golstats/gsc-game-time-line")):"function"==typeof define&&define.amd?define(["exports","vue","@golstats/gsc-tournament-select","@golstats/gsc-season-select","@golstats/gsc-calendar-by-game","vuex","socket.io-client","@golstats/gsc-menu","@golstats/gsc-checkbox","@golstats/gsc-radio-button","@golstats/gsc-dropdown","axios","@golstats/gsc-slider","@golstats/gsc-switch-radio","@golstats/gsc-lineups","@golstats/gsc-datagames","@golstats/gsc-game-video","@golstats/gsc-highlights","@golstats/gsc-filters","plotly.js-dist-min","@golstats/gsc-filterperteam","@golstats/gsc-button","@golstats/gsc-carousel","@golstats/gsc-label","@golstats/gsc-switch-component","@golstats/gsc-positioning","@golstats/gscsetpiece","@golstats/gsc-game-time-line"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).GSCGameData={},e.Vue,e.GSCTournamentSelect,e.GSCSeasonSelect,e.GSCCalendarByGame,e.Vuex,e.io,e.GSCMenu,e.GSCCheckbox,e.GSCRadioButton,e.GSCDropdown,e.axios,e.GSCSlider,e.GSCSwitchRadio,e.GSCLineups,e.GSCDatagames,e.GSCGameVideo,e.GSCHighlights,e.GSCFilters,e.Plotly,e.GSCFilterperteam,e.GSCButton,e.GSCCarousel,e.GSCLabel,e.GSCSwitchComponent,e.GSCPositioning,e.GSCSetpiece,e.GSCGameTimeLine)}(this,function(e,t,a,i,s,o,l,n,r,d,c,m,p,y,g,u,h,v,f,_,b,S,T,w,k,C,V,P){"use strict";var I=Object.defineProperty,N=(e,t,a)=>(((e,t,a)=>{t in e?I(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a})(e,"symbol"!=typeof t?t+"":t,a),a);function E(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var x={exports:{}};function B(){}B.prototype={on:function(e,t,a){var i=this.e||(this.e={});return(i[e]||(i[e]=[])).push({fn:t,ctx:a}),this},once:function(e,t,a){var i=this;function s(){i.off(e,s),t.apply(a,arguments)}return s._=t,this.on(e,s,a)},emit:function(e){for(var t=[].slice.call(arguments,1),a=((this.e||(this.e={}))[e]||[]).slice(),i=0,s=a.length;i<s;i++)a[i].fn.apply(a[i].ctx,t);return this},off:function(e,t){var a=this.e||(this.e={}),i=a[e],s=[];if(i&&t)for(var o=0,l=i.length;o<l;o++)i[o].fn!==t&&i[o].fn._!==t&&s.push(i[o]);return s.length?a[e]=s:delete a[e],this}},x.exports=B,x.exports.TinyEmitter=B;const F=E(new(0,x.exports));let G=l("https://golstats-live-server-sockets.azurewebsites.net",{autoConnect:!1,transports:["websocket"]});function z(){return G}function A(){G.disconnected&&G.connect()}function D(){G.connected&&($(),G.disconnect())}function L(e){G.connected&&G.emit("subscribe",{channel:e})}function $(){G.connected,0}G.on("connect",()=>{F.emit("socket-connected")}),G.on("disconnect",()=>{F.emit("socket-disconnected")}),G.on("reconnect",()=>{F.emit("socket-reconnected")});const M=(e,t)=>{const a=e.__vccOpts||e;for(const[i,s]of t)a[i]=s;return a},O=M({__name:"ButtonCustom",props:{text:{type:String,default:""},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},padding:{type:String,default:"0px"},borderRadius:{type:String,default:"0px"},borderWidth:{type:String,default:"1px"},borderColor:{type:String,default:"#d9d9d9"},backgroundColor:{type:String,default:"#FFFFFF"},activeBackgroundColor:{type:String,default:""},activeBorderColor:{type:String,default:""},activeBorderWidth:{type:String,default:"1px"},activeFontColor:{type:String,default:""},fontColor:{type:String,default:"#000000"},fontSize:{type:String,default:"16px"},fontFamily:{type:String,default:"Poppins-Regular, sans-serif"},whiteSpace:{type:String,default:"nowrap"},isActive:{type:Boolean,default:!1}},emits:["click"],setup(e,{emit:a}){const i=e,s=t.computed(()=>({"--height":i.height,"--width":i.width,"--padding":i.padding,"--border-radius":i.borderRadius,"--border":`solid ${i.borderWidth} ${i.borderColor}`,"--background-color":i.backgroundColor,"--white-space":i.whiteSpace,"--font-color":i.fontColor,"--font-size":i.fontSize,"--font-family":i.fontFamily,"--active-background-color":i.activeBackgroundColor||i.backgroundColor,"--active-border-color":i.activeBorderColor||i.borderColor,"--active-font-color":i.activeFontColor||i.fontColor}));function o(){a("click")}return(a,i)=>(t.openBlock(),t.createElementBlock("button",{class:t.normalizeClass(["button",{active:e.isActive}]),style:t.normalizeStyle(s.value),onClick:o},t.toDisplayString(e.text),7))}},[["__scopeId","data-v-69cf823e"]]),R=(e=>(t.pushScopeId("data-v-a8936b64"),e=e(),t.popScopeId(),e))(()=>t.createElementVNode("div",{class:"button__icon"},null,-1)),W={class:"button__text"},j={key:0},q={width:"8",height:"4",viewBox:"0 0 8 4",fill:"none",xmlns:"http://www.w3.org/2000/svg"},H=["fill"],J=M({__name:"ButtonFilter",props:{isActive:{type:Boolean,default:!1},text:{type:String,default:""},infoValue:{type:[String,Number],default:""},textFontFamily:{type:String,default:"sans-serif"},textFontSize:{type:String,default:"14px"},fontColor:{type:String,default:"white"},infoBackgroundColor:{type:String,default:"#424D58"},infoFontColor:{type:String,default:"#CBEE6B"},infoFontFamily:{type:String,default:"sans-serif"},infoFontSize:{type:String,default:"10px"},infoBorderColor:{type:String,default:"#0D1D29"},infoBorderRadius:{type:String,default:"4px"},infoHeight:{type:String,default:"20px"},infoWidth:{type:String,default:"20px"},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},backgroundColor:{type:String,default:"#0D1D29"},borderRadius:{type:String,default:"8px"},borderColor:{type:String,default:"#172531"},borderColorActive:{type:String,default:"white"},borderWidth:{type:String,default:"1px"},padding:{type:String,default:"12px"},arrowColor:{type:String,default:"#92929D"},iconColor:{type:String,default:"#92929D"},iconType:{type:String,default:"productivity"}},setup(e){const a=e,i=t.computed(()=>({"--height":a.height,"--width":a.width,"--text-font-family":a.textFontFamily,"--text-font-size":a.textFontSize,"--background-color":a.backgroundColor,"--border-radius":a.borderRadius,"--border-color":a.isActive?a.borderColorActive:a.borderColor,"--border-width":a.borderWidth,"--padding":a.padding,"--font-color":a.fontColor})),s=t.computed(()=>({"--info-background-color":a.infoBackgroundColor,"--info-border-color":a.infoBorderColor,"--info-border-radius":a.infoBorderRadius,"--info-font-family":a.infoFontFamily,"--info-font-size":a.infoFontSize,"--info-font-color":a.infoFontColor,"--info-height":a.infoHeight,"--info-width":a.infoWidth}));return(a,o)=>(t.openBlock(),t.createElementBlock("div",{class:"button",style:t.normalizeStyle(i.value)},[R,t.createElementVNode("div",W,t.toDisplayString(e.text),1),t.createElementVNode("div",{class:"button__info",style:t.normalizeStyle(s.value)},[e.infoValue?(t.openBlock(),t.createElementBlock("span",j,t.toDisplayString(e.infoValue),1)):t.createCommentVNode("",!0)],4),t.createElementVNode("div",{class:t.normalizeClass(["button__arrow",{"rotated-180":e.isActive}])},[(t.openBlock(),t.createElementBlock("svg",q,[t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M4 2.62045L6.86193 0.167368C7.12228 -0.0557892 7.54439 -0.0557892 7.80474 0.167368C8.06509 0.390524 8.06509 0.752333 7.80474 0.97549L4.4714 3.83263C4.21105 4.05579 3.78895 4.05579 3.5286 3.83263L0.195262 0.97549C-0.0650874 0.752333 -0.0650874 0.390524 0.195262 0.167368C0.455612 -0.0557892 0.877722 -0.0557892 1.13807 0.167368L4 2.62045Z",fill:e.arrowColor},null,8,H)]))],2)],4))}},[["__scopeId","data-v-a8936b64"]]),U=e=>(t.pushScopeId("data-v-3e7cb100"),e=e(),t.popScopeId(),e),Z={class:"details__header"},X=U(()=>t.createElementVNode("div",{class:"details__header__title"},"Jugando como",-1)),Y={class:"details__header__checkbox"},Q={class:"details__body"},K={class:"details__body__playing-as"},ee=["onClick"],te={class:"details__header"},ae=U(()=>t.createElementVNode("div",{class:"details__header__title"},"En: (Elige el lapso de tiempo)",-1)),ie={class:"details__header__checkbox"},se={class:"details__body"},oe=U(()=>t.createElementVNode("div",{class:"details__body__title"},"1er tiempo",-1)),le={class:"details__body__game-section"},ne=["onClick"],re={class:"details__body"},de=U(()=>t.createElementVNode("div",{class:"details__body__title"},"2do tiempo",-1)),ce={class:"details__body__game-section"},me=["onClick"],pe=M({__name:"StatisticsFilterTemplate",props:{playingAs:{type:Array,default:()=>[{name:"Local",isSelected:!0},{name:"Visitante",isSelected:!0}]},results:{type:Array,default:()=>[1,2,3]},gameSections:{type:Array,default:()=>[{text:"0-15",value:1,isSelected:!0},{text:"16-30",value:2,isSelected:!0},{text:"31-45",value:3,isSelected:!0},{text:"46-60",value:4,isSelected:!0},{text:"61-75",value:5,isSelected:!0},{text:"76-90",value:6,isSelected:!0}]},buttonsBackgroundColor:{type:String,default:"rgba(255, 255, 255, 0)"},buttonsBackgroundColorActive:{type:String,default:"rgba(203, 238, 107, 0.05)"},buttonsTextColor:{type:String,default:"rgba(255, 255, 255, 0.8)"},buttonsTextColorActive:{type:String,default:"rgba(255, 255, 255, 1)"},buttonsBorderColor:{type:String,default:"#8ea2ab"},buttonsBorderColorActive:{type:String,default:"#cbee6b"},buttonsBorderWidth:{type:String,default:"0.8px"},buttonsBorderWidthActive:{type:String,default:"1px"},buttonsBorderRadius:{type:String,default:"4px"}},setup(e){const a=e;t.useCssVars(t=>({"057a1337":e.buttonsBackgroundColor,"4ababc18":e.buttonsTextColor,a6bfbb48:e.buttonsBorderWidth,a8edb80e:e.buttonsBorderColor,"6a6af91d":e.buttonsBackgroundColorActive,"54e7b53e":e.buttonsTextColorActive,"805f4efc":e.buttonsBorderWidthActive,f9321f42:e.buttonsBorderColorActive}));const i=t.computed(()=>a.playingAs.every(e=>e.isSelected)),s=t.computed(()=>a.gameSections.every(e=>e.isSelected)),o=t.computed(()=>a.gameSections.reduce((e,t)=>(t.value<=3?e.firstHalf.push(t):e.secondHalf.push(t),e),{firstHalf:[],secondHalf:[]})),l=t.computed(()=>({"--border-radius-first-button":`${a.buttonsBorderRadius} 0 0 ${a.buttonsBorderRadius}`,"--border-radius-last-button":`0 ${a.buttonsBorderRadius} ${a.buttonsBorderRadius} 0`}));function n(e){e?a.playingAs.forEach(e=>{e.isSelected=!0}):a.playingAs.forEach((e,t)=>{e.isSelected=0===t})}function d(e){1===a.gameSections.filter(e=>e.isSelected).length&&e.isSelected||(e.isSelected=!e.isSelected)}function c(e){e?a.gameSections.forEach(e=>{e.isSelected=!0}):a.gameSections.forEach((e,t)=>{e.isSelected=0===t})}return(e,m)=>(t.openBlock(),t.createElementBlock("div",{class:"details",style:t.normalizeStyle(l.value)},[t.createElementVNode("div",Z,[X,t.createElementVNode("div",Y,[t.createVNode(t.unref(r.GSCCheckbox),{label:"Todos","model-value":i.value,"onUpdate:modelValue":n},null,8,["model-value"])])]),t.createElementVNode("div",Q,[t.createElementVNode("div",K,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.playingAs,(e,i)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${i}`,class:t.normalizeClass(["details__body__button",{active:e.isSelected}]),onClick:t=>function(e){1===a.playingAs.filter(e=>e.isSelected).length&&e.isSelected||(e.isSelected=!e.isSelected)}(e)},t.toDisplayString(e.name),11,ee))),128))])]),t.createElementVNode("div",te,[ae,t.createElementVNode("div",ie,[t.createVNode(t.unref(r.GSCCheckbox),{label:"Todos","model-value":s.value,"onUpdate:modelValue":c},null,8,["model-value"])])]),t.createElementVNode("div",se,[oe,t.createElementVNode("div",le,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(o.value.firstHalf,(e,a)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${a}`,class:t.normalizeClass(["details__body__button",{active:e.isSelected}]),onClick:t=>d(e)},t.toDisplayString(e.text),11,ne))),128))])]),t.createElementVNode("div",re,[de,t.createElementVNode("div",ce,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(o.value.secondHalf,(e,a)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${a}`,class:t.normalizeClass(["details__body__button",{active:e.isSelected}]),onClick:t=>d(e)},t.toDisplayString(e.text),11,me))),128))])])],4))}},[["__scopeId","data-v-3e7cb100"]]),ye={class:"statistics-filter-button"},ge={__name:"StatisticsFilterButton",setup(e){const a=t.ref(!1);return(e,i)=>(t.openBlock(),t.createElementBlock("div",ye,[t.createVNode(t.unref(n.GSCMenu),{modelValue:a.value,"onUpdate:modelValue":i[0]||(i[0]=e=>a.value=e),"menu-margin-top":18},{trigger:t.withCtx(()=>[t.createVNode(J,{text:"Filtros","is-active":a.value,"background-color":"rgba(255, 255, 255, 0.05)","border-color":"rgba(255, 255, 255, 0.20)","info-width":"0",padding:"6px 12px"},null,8,["is-active"])]),menu:t.withCtx(()=>[t.createVNode(pe)]),_:1},8,["modelValue"])]))}},ue=M({__name:"SwitchCustom",props:{modelValue:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(e,{emit:a}){const i=e,s=t.ref(null);function o(){s.value&&(s.value.checked=i.modelValue)}function l(e){a("update:modelValue",e.target.checked)}return t.watch(()=>i.modelValue,()=>{o()},{immediate:!0}),t.onMounted(()=>{o()}),(e,a)=>(t.openBlock(),t.createElementBlock("input",{ref_key:"switchCustom",ref:s,id:"toggle",class:"toggle",type:"checkbox",role:"switch",name:"toggle",onInput:l},null,544))}},[["__scopeId","data-v-caefc67f"]]),he=navigator.userAgent||navigator.vendor||window.opera;function ve(e){return e.reduce((e,t,a)=>(e[t]=a,e),{})}function fe(e,t,a){const i={statistics:t.statistics.value||0,playingAs:[...t.playingAs],matchResult:[...t.matchResult],sections:t.firstHalf.concat(t.secondHalf),requiresPlaysFiltering:t.requiresPlaysFiltering||!0};return i.teamId=a,i}function _e(e){return"number"==typeof e?e.toFixed(2).replace(/\.0+$|0$/g,""):e}function be(e){return`${{}.TEAM_LOGOS_URL||"https://golstatsimages.blob.core.windows.net/teams-80/"}${e}.png`}const Se={name:"ChartTrendLive",props:{teamTypeSelected:{type:String,default:"homeTeam"},subcategorySelected:{type:Object,required:!0},typeId:{type:Number,required:!0},teamIds:{type:Array,required:!0},teamAcronyms:{type:Array,required:!0},types:{type:Array,required:!0},containerWidth:{type:Number,default:0}},data:()=>({height:0,updateGraph:0}),mounted(){setTimeout(()=>{this.setDimensions()},500)},computed:{...o.mapState("nextGeneral",["idAssetSelected","menuOptionActive","showLiveData","homeTeamPlays","visitingTeamPlays","totalHomeTeamFinishedGames","totalVisitingTeamFinishedGames","gameForAnalysis"]),...o.mapGetters("nextGeneral",["homeTeam","homeTeamStatisticsType","visitingTeamStatisticsType","showPostMatchData"]),chartOptions(){const e="both"===this.teamTypeSelected?["#0033C5","#cbee6b"]:"homeTeam"===this.teamTypeSelected?["#0033C5"]:["#cbee6b"];return{chart:{type:"line",zoom:{enabled:!1},foreColor:"#2f3b45",height:"400px",width:"400px",fontFamily:"Poppins-Light"},colors:e,dataLabels:{style:{colors:["rgba(255, 255, 255, 0.08)"],borderColor:"rgba(255, 255, 255, 0.16)"},enabled:this.isAccumulatedType,enabledOnSeries:[0,1],background:{borderRadius:12,foreColor:"#ffffff",fontFamily:"Poppins-Light",borderColor:"#505a63",padding:10,opacity:.8,color:"#000"}},stroke:{width:1,curve:"straight",dashArray:[0,8,5],colors:e},legend:{show:!0,markers:{fillColors:e},labels:{colors:"rgba(255, 255, 255, 0.7)"},tooltipHoverFormatter:(e,t)=>e+" - <strong>"+t.w.globals.series[t.seriesIndex][t.dataPointIndex]+"</strong>"},markers:{colors:e,size:1,hover:{sizeOffset:6}},xaxis:{categories:this.xaxisCategories,labels:{style:{colors:"rgba(255,255,255,0.7)"}}},fill:{colors:e,type:"solid",opacity:.2},yaxis:[{axisBorder:{show:!0,color:"#1C2A36"},labels:{style:{colors:"rgba(255,255,255,0.7)"}}}],tooltip:{theme:"dark",marker:{show:!0},y:[{title:{formatter:e=>this.showPostMatchData?`${e} :`:`${e} (promedio)`},formatter:e=>this.showPostMatchData?Number(e):e},{title:{formatter:e=>this.showPostMatchData?`${e} :`:`${e} (promedio)`},formatter:e=>this.showPostMatchData?Number(e):e},{title:{formatter:e=>e}}]},grid:{show:!0,borderColor:"#414c55",padding:{right:22},xaxis:{lines:{show:!0}},yaxis:{lines:{show:!0}}}}},series(){return(this.gameForAnalysis.is_live||0===this.gameForAnalysis.game_status)&&this.showLiveData?this.dataLive.map((e,t)=>({name:this.teamAcronyms[t],data:e})):this.dataStats.map((e,t)=>({name:this.teamAcronyms[t],data:e}))},typeName(){return this.types.find(e=>e.id===this.typeId).name},dataStats(){return this.isAccumulatedType?"both"===this.teamTypeSelected?[[0,...this.subcategorySelected.homeTeam[this.homeTeamStatisticsType].avgPostGameTrendLive.accumulated.map(e=>_e(e))],[0,...this.subcategorySelected.visitingTeam[this.visitingTeamStatisticsType].avgPostGameTrendLive.accumulated.map(e=>_e(e))]]:[[0,...this.subcategorySelected[this.teamTypeSelected][this[`${this.teamTypeSelected}StatisticsType`]].avgPostGameTrendLive.accumulated.map(e=>_e(e))]]:"both"===this.teamTypeSelected?[this.subcategorySelected.homeTeam[this.homeTeamStatisticsType].avgPostGameTrendLive.sections.reduce((e,t)=>(e.push(_e(t)),e),[0]),this.subcategorySelected.visitingTeam[this.visitingTeamStatisticsType].avgPostGameTrendLive.sections.reduce((e,t)=>(e.push(_e(t)),e),[0])]:[this.subcategorySelected[this.teamTypeSelected][this[`${this.teamTypeSelected}StatisticsType`]].avgPostGameTrendLive.sections.reduce((e,t)=>(e.push(_e(t)),e),[0])]},dataLive(){return this.isAccumulatedType?"both"===this.teamTypeSelected?[[0,...this.subcategorySelected.homeTeam[this.homeTeamStatisticsType].totalsLiveTrendLive.accumulated.slice(0,this.subcategorySelected.homeTeam.maximumLiveSection)],[0,...this.subcategorySelected.visitingTeam[this.visitingTeamStatisticsType].totalsLiveTrendLive.accumulated.slice(0,this.subcategorySelected.visitingTeam.maximumLiveSection)]]:[[0,...this.subcategorySelected[this.teamTypeSelected][this[`${this.teamTypeSelected}StatisticsType`]].totalsLiveTrendLive.accumulated.slice(0,this.subcategorySelected[this.teamTypeSelected].maximumLiveSection)]]:"both"===this.teamTypeSelected?[this.subcategorySelected.homeTeam[this.homeTeamStatisticsType].totalsLiveTrendLive.sections.reduce((e,t)=>(e.push(_e(t)),e),[0]),this.subcategorySelected.visitingTeam[this.visitingTeamStatisticsType].totalsLiveTrendLive.sections.reduce((e,t)=>(e.push(_e(t)),e),[0])]:[this.subcategorySelected[this.teamTypeSelected][this[`${this.teamTypeSelected}StatisticsType`]].totalsLiveTrendLive.sections.slice(0,this.subcategorySelected[this.teamTypeSelected].maximumLiveSection).reduce((e,t)=>(e.push(t),e),[0])]},xaxisCategories(){return this.isAccumulatedType,["0'","15'","30'","45'","60'","75'","90'"]},isAccumulatedType(){return 1===this.typeId},factorHeight(){return this.containerWidth-this.containerWidth%50},key(){return(this.gameForAnalysis.is_live||0===this.gameForAnalysis.game_status)&&this.showLiveData?1:2}},watch:{menuOptionActive(){setTimeout(()=>{this.setDimensions()},500),this.increaseUpdateGraph()},idAssetSelected(){7===this.idAssetSelected&&this.increaseUpdateGraph()},containerWidth(){this.setDimensions()},series(e,t){JSON.stringify(e)!==JSON.stringify(t)&&this.setDimensions()}},methods:{increaseUpdateGraph(){this.updateGraph+=1},getDataLive(){return this.isAccumulatedType?"both"===this.teamTypeSelected?[[0,...this.subcategorySelected.homeTeam[this.homeTeamStatisticsType].avgPostGameTrendLive.accumulated.slice(0,this.subcategorySelected.homeTeam.maximumLiveSection)],[0,...this.subcategorySelected.visitingTeam[this.visitingTeamStatisticsType].avgPostGameTrendLive.accumulated.slice(0,this.subcategorySelected.visitingTeam.maximumLiveSection)]]:[[0,...this.subcategorySelected[this.teamTypeSelected][this[`${this.teamTypeSelected}StatisticsType`]].totalsLiveTrendLive.accumulated.slice(0,this.subcategorySelected[this.teamTypeSelected].maximumLiveSection)]]:this.subcategorySelected[this.teamTypeSelected][this[`${this.teamTypeSelected}StatisticsType`]].totalsLiveTrendLive.sections.slice(0,this.subcategorySelected[this.teamTypeSelected].maximumLiveSection).reduce((e,t)=>(e.push(t),e),[0])},setDimensions(){this.containerWidth<280?(this.$refs.containerChart.style.width="auto",this.height=.8*this.factorHeight):this.containerWidth>=280&&this.containerWidth<399?(this.$refs.containerChart.style.width="auto",this.height=.7*this.factorHeight):this.containerWidth>=400&&this.containerWidth<591?(this.$refs.containerChart.style.width="auto",this.height=.6*this.factorHeight):this.containerWidth>=591&&this.containerWidth<900?(this.$refs.containerChart.style.width="auto",this.height=.5*this.factorHeight):this.containerWidth>=900&&(this.$refs.containerChart.style.width="600px",this.height=400),7===this.idAssetSelected&&setTimeout(()=>{document.getElementsByClassName("apexcharts-svg").length>0&&(document.getElementsByClassName("apexcharts-svg")[0].style.width=parseInt(this.$refs.containerChart.style.width)+50+"px")},800),this.increaseUpdateGraph()}}},Te={class:"chart-trend-live container",ref:"containerChart"};const we=M(Se,[["render",function(e,a,i,s,o,l){const n=t.resolveComponent("apexchart");return t.openBlock(),t.createElementBlock("div",Te,[(t.openBlock(),t.createBlock(n,{type:"area",options:l.chartOptions,series:l.series,key:l.key+o.updateGraph,style:{"z-index":"0"}},null,8,["options","series"]))],512)}],["__scopeId","data-v-ce5d80d0"]]),ke={class:"card-trend-live__dropdown-category"},Ce={class:"selected-item"},Ve={class:"card-trend-live__body__categories"},Pe={class:"card-trend-live__body__chart"},Ie=M({__name:"CardTrendLive",props:{data:{type:Object,required:!0},teamTypeSelected:{type:String,default:"homeTeam"},trendTypeId:{type:Number,required:!0},teamIds:{type:Array,required:!0},teamAcronyms:{type:Array,required:!0},trendTypes:{type:Array,required:!0}},emits:["@update:subcategory-selected"],setup(e,{emit:a}){const i=e;let s=null;const o={width:"100%",borderRadius:"8px",height:"36px",borderColor:"#4f5861",activeBorderColor:"#cbee6b",backgroundColor:"#1C2A36",fontColor:"#bcc0c3",activeFontColor:"#FFFFFF",borderWidth:"1px",fontSize:"12px"},l={borderType:"solid",listBackgroundColor:"#2E3B46",listBorderColor:"rgba(255, 255, 255, 0.2)",listBorderRadius:"5px",height:"38px",borderWidth:.8,borderColor:"#58626b",backgroundColor:"#2E3B46",color:"#c0c4c7",listItemColor:"white",listItemSelectedBackgroundColor:"#2E3B46",arrowColor:"#fff",width:"290px",isListSameWidth:!0,isFooterVisible:!1,hoverBackgroundColor:"#2E3B46"},n=t.ref({}),r=t.ref(null),d=t.ref(0);function m(e){n.value=e,a("update:subcategory-selected",{data:i.data,subcategorySelected:e})}return t.watch(()=>i.data,e=>{e&&e.subcategories&&e.subcategories.length&&(n.value=e.subcategories[0])},{immediate:!0}),t.onMounted(()=>{!function(){if(!window.ResizeObserver)throw new Error("Resize observer not supported!");s=new ResizeObserver(()=>{d.value=r.value.clientWidth}),s.observe(r.value)}()}),t.onUnmounted(()=>{}),(a,i)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"cardTrendLive",ref:r,class:"card-trend-live"},[t.createElementVNode("div",{class:t.normalizeClass(["card-trend-live__title",{"is-mobile":d.value<=760}])},t.toDisplayString(e.data.name),3),t.withDirectives(t.createElementVNode("div",ke,[t.createVNode(t.unref(c.GSCDropdown),t.mergeProps(l,{items:e.data.subcategories,"selected-item":n.value,"default-item-by-prop":{propName:"id",value:n.value.id},onInput:m}),{default:t.withCtx(({selectedItem:e})=>[t.createElementVNode("div",Ce,t.toDisplayString(e.name),1)]),availableItem:t.withCtx(({item:e})=>[t.createElementVNode("div",null,t.toDisplayString(e.name),1)]),_:1},16,["items","selected-item","default-item-by-prop"])],512),[[t.vShow,d.value<=760]]),t.createElementVNode("div",{class:t.normalizeClass(["card-trend-live__body",{"is-mobile":d.value<=760}])},[t.createElementVNode("div",Ve,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.data.subcategories,(e,a)=>(t.openBlock(),t.createElementBlock("div",{key:a},[t.createVNode(O,t.mergeProps(o,{text:e.name,"is-active":n.value.id===e.id,onClick:t=>m(e)}),null,16,["text","is-active","onClick"])]))),128))]),t.createElementVNode("div",Pe,[(t.openBlock(),t.createBlock(we,{id:e.data.id,"type-id":e.trendTypeId,"team-type-selected":e.teamTypeSelected,"subcategory-selected":e.data.objectGraphProps.objectSubcategorySelected,"team-ids":e.teamIds,"team-acronyms":e.teamAcronyms,types:e.trendTypes,"container-width":d.value,key:e.trendTypeId},null,8,["id","type-id","team-type-selected","subcategory-selected","team-ids","team-acronyms","types","container-width"]))])],2)],512))}},[["__scopeId","data-v-b0c2a11a"]]),Ne=e=>(t.pushScopeId("data-v-60b8e2f9"),e=e(),t.popScopeId(),e),Ee={class:"trending-live__header__radios"},xe={class:"trending-live__header__radios__group"},Be={class:"trending-live__header__switch"},Fe={class:"trending-live__header__switch__control"},Ge=Ne(()=>t.createElementVNode("span",null,"Acumulado",-1)),ze=Ne(()=>t.createElementVNode("span",null,"Por periodo",-1)),Ae={class:"trending-live__body"},De=M({__name:"TrendLive",props:{game:{type:Object,default:()=>({gameId:79623,seasonId:1772,status:1,dateTimeUTC:"2023-10-01T22:20:00Z",homeTeam:{logo:"https://golstatsimages.blob.core.windows.net/teams-80/18.png",team_id:10,provisional_logo:"https://golstatsimages.blob.core.windows.net/teams-provisional/18.png",colloquial_name:"Toluca",acronym:"TOL",team_name:"Toluca"},awayTeam:{logo:"https://golstatsimages.blob.core.windows.net/teams-80/1.png",team_id:1,provisional_logo:"https://golstatsimages.blob.core.windows.net/teams-provisional/1.png",colloquial_name:"Chivas",acronym:"CHI",team_name:"Guadalajara"}})}},setup(e){const a=e,i=o.useStore();let s=null;const l=t.ref(!1),n=t.ref("both"),r=t.ref([]),c=t.ref(null),m=t.ref(0),p=t.computed(()=>[{label:"Ambos",name:"name",value:"both",isChecked:!1,radioPosition:"left"},{label:a.game.homeTeam?`${a.game.homeTeam.acronym}`:"Local",name:"name",value:"home",isChecked:!1,radioPosition:"left",logoUrl:a.game.homeTeam?be(a.game.homeTeam.team_id):""},{label:a.game.awayTeam?`${a.game.awayTeam.acronym}`:"Visitante",name:"name",value:"away",isChecked:!1,radioPosition:"left",logoUrl:a.game.awayTeam?be(a.game.awayTeam.team_id):""}]),y=t.computed(()=>"both"===n.value?"both":("home"===n.value?"home":"visiting")+"Team"),g=t.computed(()=>l.value?2:1),u=t.computed(()=>a.game.homeTeam?"both"===n.value?[a.game.homeTeam.team_id,a.game.awayTeam.team_id]:[a.game[`${n.value}Team`].team_id]:[0,0]),h=t.computed(()=>a.game.homeTeam?"both"===n.value?[a.game.homeTeam.acronym,a.game.awayTeam.acronym]:[a.game[`${n.value}Team`].acronym]:[0,0]),v=t.computed(()=>[{id:1,name:"Acumulado"},{id:2,name:"Por periodo"}]);function f({data:e,subcategorySelected:t}){e.objectGraphProps.numberCategoryId=t,e.objectGraphProps.objectSubcategorySelected=t}return t.watch(()=>i.getters["nextGeneral/arrayFilledDataSortedByPriority"],e=>{0===r.value.length&&(e&&e.length?r.value=e.map((e,t)=>{const a=Object.values(e.subcategories).filter(e=>e.isVisible);return{id:`tL${t}`,...e,subcategories:a,objectGraphProps:{objectSubcategorySelected:a[0],numberCategoryId:a[0].id}}}):r.value=[])},{immediate:!0}),t.onMounted(()=>{!function(){if(!window.ResizeObserver)throw new Error("Resize observer not supported!");s=new ResizeObserver(()=>{m.value=c.value.clientWidth}),s.observe(c.value)}()}),(e,a)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"trendLive",ref:c,class:"trending-live"},[t.createElementVNode("div",{class:t.normalizeClass(["trending-live__header",{"is-mobile":m.value<580}])},[t.createElementVNode("div",Ee,[t.createElementVNode("div",xe,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(p.value,(e,i)=>(t.openBlock(),t.createElementBlock("div",{key:i},[t.createVNode(t.unref(d.GSCRadioButton),t.mergeProps({modelValue:n.value,"onUpdate:modelValue":a[0]||(a[0]=e=>n.value=e)},e),null,16,["modelValue"])]))),128))])]),t.createElementVNode("div",Be,[t.createElementVNode("div",Fe,[Ge,t.createVNode(ue,{modelValue:l.value,"onUpdate:modelValue":a[1]||(a[1]=e=>l.value=e)},null,8,["modelValue"]),ze])])],2),t.createElementVNode("div",Ae,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r.value,(e,a)=>(t.openBlock(),t.createElementBlock("div",{class:"trending-live__body__card",key:a},[t.createVNode(Ie,{data:e,"trend-type-id":g.value,"team-type-selected":y.value,"team-ids":u.value,"team-acronyms":h.value,"trend-types":v.value,"onUpdate:subcategorySelected":f},null,8,["data","trend-type-id","team-type-selected","team-ids","team-acronyms","trend-types"])]))),128))])],512))}},[["__scopeId","data-v-60b8e2f9"]]),Le={name:"BarraLeft",props:{colors:{type:Array,required:!1,default:function(){return["#0033C5","#3bd8f1"]}},postmatch:{type:Number,required:!1,default:0},live:{type:Number,required:!1,default:0},showLiveData:{type:Boolean,required:!1,default:!0}},computed:{p(){return 350*this.postmatch+6},l(){return 350*this.live+10}}},$e={class:"custom-progress-bar"},Me={xmlns:"http://www.w3.org/2000/svg",viewBox:"15 5 350 15","xmlns:xlink":"http://www.w3.org/1999/xlink",style:{width:"98%",transform:"rotate(180deg)"}},Oe=(e=>(t.pushScopeId("data-v-ce226c7f"),e=e(),t.popScopeId(),e))(()=>t.createElementVNode("path",{d:" M10,10 L350,10 A1,1 0 1 1 350,15 L10,15 A1,1 0 1 1 10,10 z",fill:"#48525B"},null,-1)),Re=["d","fill"];const We=M(Le,[["render",function(e,a,i,s,o,l){return t.openBlock(),t.createElementBlock("div",$e,[(t.openBlock(),t.createElementBlock("svg",Me,[Oe,t.createElementVNode("path",{d:`M10,10 L${l.p},10 A1,1 0 1 1 ${l.p},15 L10,15 A1,1 0 1 1 10,10 z`,fill:i.colors[0]},null,8,Re)]))])}],["__scopeId","data-v-ce226c7f"]]),je={name:"BarraRight",props:{colors:{type:Array,required:!1,default:function(){return["#CBEE6B","#3bd8f1"]}},postmatch:{type:Number,required:!1,default:0},live:{type:Number,required:!1,default:0}},computed:{...o.mapState("nextGeneral",["showLiveData"]),p(){return 350*this.postmatch+6},l(){return 350*this.live+10}}},qe={class:"custom-progress-bar"},He={xmlns:"http://www.w3.org/2000/svg",viewBox:"4 5 350 15","xmlns:xlink":"http://www.w3.org/1999/xlink",style:{width:"98%"}},Je=(e=>(t.pushScopeId("data-v-7e074cc4"),e=e(),t.popScopeId(),e))(()=>t.createElementVNode("path",{d:" M10,10 L350,10 A1,1 0 1 1 350,15 L10,15 A1,1 0 6 1 10,10 z",fill:"#48525B"},null,-1)),Ue=["d","fill"];const Ze="/icn-play.svg",Xe={components:{BarraLeft:We,BarraRight:M(je,[["render",function(e,a,i,s,o,l){return t.openBlock(),t.createElementBlock("div",qe,[(t.openBlock(),t.createElementBlock("svg",He,[Je,t.createElementVNode("path",{d:`M10,10 L${l.p},10 A1,1 0 1 1 ${l.p},15 L10,15 A1,1 0 1 1 10,10 z`,fill:i.colors[0]},null,8,Ue)]))])}],["__scopeId","data-v-7e074cc4"]])},props:{data:{type:Object,required:!1},showPlayButton:{type:Boolean,value:!0},playVideosPrivileges:{type:Object,default:null},teams:{type:Object,default:()=>({home:{},away:{}})}},data:()=>({gamesBySeason:{},objectZeroValues:{numberValue:0,numberBarPercent:0}}),computed:{...o.mapState("nextGeneral",["gameForAnalysis","seasonId","showLiveData"]),...o.mapGetters("nextGeneral",["homeTeam","visitingTeam"]),homeTeamLogo(){return this.teams&&this.teams.home?this.teams.home.team_logo:""},awayTeamLogo(){return this.teams&&this.teams.away?this.teams.away.team_logo:""},canPlayVideos(){let e={home:!0,away:!0};return this.playVideosPrivileges&&(e=this.playVideosPrivileges.canPrivilegesTeamPlayVideos?this.playVideosPrivileges.isPrivilegesTeamOnly?{home:this.playVideosPrivileges.isPrivilegesTeamHome,away:!this.playVideosPrivileges.isPrivilegesTeamHome}:{home:!0,away:!0}:{home:!1,away:!1}),e}},methods:{onclickPlayVideos(e,t){if(!t)return;var a=[];a=2==e.type?1==e.position_id?0==e.category?[55,324,323,608,39,774,802,52,53,40,54]:e.category:0==e.category?[12,35,10,27,607,61,519,98,101,109,112,121,122,127,128,135,136,141,142,161,170,179,702,730,466,217,211,232,235,239,242,282,284,289,291,296,485,486,487,488,14,15,257]:e.category:3==e.type?0==e.category?[607,608,12,55,54,35,14,52,15,53,466,477,40,257,39]:e.category:0!=e.category?e.category:[607,608,12,55,54,35,14,52,15,53,466,477];let i={seasonId:e.season_id,mainSectionType:1,playListType:e.type,categoryIds:a,gameIdsToFilter:4!==this.gameForAnalysis.game_status?[this.gameForAnalysis.game_id]:null,playerIds:1!=e.position_id&&e.player_id?[e.player_id]:[],goalkeeperIds:1==e.position_id&&e.player_id?[e.player_id]:[],teamId:e.team_id?e.team_id:0,matchResult:e.matchResult?[e.matchResult]:[1,2,3],playData:{},advancedFilter:{playListTitle:""}};0!==e.category&&(i.advancedFilter.mainCategoryId=e.category),this.$emit("openmedia",i)},hVal(e){return this.getTeamValue(e,this.gameForAnalysis,"homeTeam")},aVal(e){return this.getTeamValue(e,this.gameForAnalysis,"visitingTeam")},deleteDecimalZero(e){const t="string"==typeof e?parseFloat(e):e;if("number"!=typeof t||isNaN(t))return e;if(t%1==0)return t;return 0===t%1?Math.floor(t):t},formatNumbers:e=>e%1!=0?e.toFixed(1):e,getTeamValue(e,t,a){if(!t.game_id)return this.objectZeroValues;const i=3===e.generalCategoriesIds.accomplished;if((t.is_live||0===t.game_status)&&this.showLiveData){const t=e.homeTeam.accomplished.totalLive+e.visitingTeam.accomplished.totalLive;return t?{numberValue:i?e[a].accomplished.totalLive/t*100:e[a].accomplished.totalLive,numberBarPercent:e[a].accomplished.totalLive/t}:this.objectZeroValues}if(1===t.game_status){const t=e.homeTeam.accomplished.totalPostGame+e.visitingTeam.accomplished.totalPostGame;return t?{numberValue:i?e[a].accomplished.totalPostGame/t*100:e[a].accomplished.totalPostGame,numberBarPercent:e[a].accomplished.totalPostGame/t}:this.objectZeroValues}if(i){const t=e.homeTeam.accomplished.avgPostGame+e.visitingTeam.accomplished.avgPostGame,i=e[a].accomplished.avgPostGame/t;return e[a].accomplished.avgPostGame?{numberValue:i<1?100*i:i,numberBarPercent:e[a].accomplished.avgPostGame/t}:this.objectZeroValues}{const t=e.homeTeam.accomplished.avgPostGame+e.visitingTeam.accomplished.avgPostGame;return e[a].accomplished.avgPostGame?{numberValue:e[a].accomplished.avgPostGame,numberBarPercent:e[a].accomplished.avgPostGame/t}:this.objectZeroValues}},async getGamesBySeasonV2(){try{const e={Authorization:this.token},t=`${this.apiUrl}${this.seasonId}/games/${this.gameId}`;return(await m.get(t,{headers:e})).data}catch(e){return Promise.reject(e)}}},async mounted(){}},Ye=e=>(t.pushScopeId("data-v-74093fb1"),e=e(),t.popScopeId(),e),Qe={class:"card"},Ke={class:"card__header"},et={class:"card__header__team-logo"},tt=["src"],at={class:"card__header__title"},it={class:"card__header__team-logo"},st=["src"],ot={class:"card__stats"},lt={key:0,class:"card__stats__stat"},nt=["onClick"],rt=[Ye(()=>t.createElementVNode("img",{src:Ze},null,-1))],dt={key:1,class:"card__stats__stat__button_empty"},ct={class:"card__stats__title"},mt={class:"card__stats__scores"},pt={key:0},yt={key:1},gt={key:2},ut={key:3},ht={class:"card__stats__bars"},vt=["onClick"],ft=[Ye(()=>t.createElementVNode("img",{src:Ze},null,-1))],_t={key:1,class:"card__stats__stat__button_empty"};const bt=M(Xe,[["render",function(e,a,i,s,o,l){const n=t.resolveComponent("BarraLeft"),r=t.resolveComponent("BarraRight");return t.openBlock(),t.createElementBlock("div",Qe,[t.createElementVNode("div",Ke,[t.createElementVNode("div",et,[l.homeTeamLogo?(t.openBlock(),t.createElementBlock("img",{key:0,src:l.homeTeamLogo,alt:""},null,8,tt)):t.createCommentVNode("",!0)]),t.createElementVNode("div",at,t.toDisplayString(i.data.name),1),t.createElementVNode("div",it,[l.awayTeamLogo?(t.openBlock(),t.createElementBlock("img",{key:0,src:l.awayTeamLogo,alt:""},null,8,st)):t.createCommentVNode("",!0)])]),t.createElementVNode("div",ot,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i.data.subcategories,(a,i)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:i},[a.isVisible?(t.openBlock(),t.createElementBlock("div",lt,[t.createElementVNode("div",null,[l.canPlayVideos.home&&l.hVal(a)&&"0"!=l.hVal(a).numberValue?(t.openBlock(),t.createElementBlock("div",{key:0,class:"card__stats__stat__button card__stats__stat__button_left",onClick:t=>l.onclickPlayVideos({category:a.accomplishedCategoryIds,type:3,season_id:e.seasonId,team_id:e.homeTeam.team_id},l.canPlayVideos.home)},rt,8,nt)):(t.openBlock(),t.createElementBlock("div",dt))]),t.createElementVNode("div",null,[t.createElementVNode("div",ct,t.toDisplayString(a.name),1),t.createElementVNode("div",mt,[l.hVal(a)?(t.openBlock(),t.createElementBlock("span",pt,[t.createTextVNode(t.toDisplayString(l.deleteDecimalZero(l.formatNumbers(l.hVal(a).numberValue))),1),"Posesión"==a.name?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("%")],64)):t.createCommentVNode("",!0)])):(t.openBlock(),t.createElementBlock("span",yt,"0")),l.aVal(a)?(t.openBlock(),t.createElementBlock("span",gt,[t.createTextVNode(t.toDisplayString(l.deleteDecimalZero(l.formatNumbers(l.aVal(a).numberValue))),1),"Posesión"==a.name?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("%")],64)):t.createCommentVNode("",!0)])):(t.openBlock(),t.createElementBlock("span",ut,"0"))]),t.createElementVNode("div",ht,[t.createElementVNode("div",null,[l.hVal(a)?(t.openBlock(),t.createBlock(n,{key:0,postmatch:l.hVal(a).numberBarPercent},null,8,["postmatch"])):(t.openBlock(),t.createBlock(n,{key:1,postmatch:0}))]),t.createElementVNode("div",null,[l.aVal(a)?(t.openBlock(),t.createBlock(r,{key:0,postmatch:l.aVal(a).numberBarPercent},null,8,["postmatch"])):(t.openBlock(),t.createBlock(r,{key:1,postmatch:0}))])])]),t.createElementVNode("div",null,[l.canPlayVideos.away&&l.aVal(a)&&"0"!=l.aVal(a).numberValue?(t.openBlock(),t.createElementBlock("div",{key:0,class:"card__stats__stat__button card__stats__stat__button_right",onClick:t=>l.onclickPlayVideos({category:a.accomplishedCategoryIds,type:3,season_id:e.seasonId,team_id:e.visitingTeam.team_id},l.canPlayVideos.away)},ft,8,vt)):(t.openBlock(),t.createElementBlock("div",_t))])])):t.createCommentVNode("",!0)],64))),128))])])}],["__scopeId","data-v-74093fb1"]]),St={name:"GscComparative",props:{local:{type:Object,default:()=>{}},away:{type:Object,default:()=>{}},tournamentType:{type:Number,default:0},fontFamily:{type:String,default:"inherit"}},data:()=>({}),computed:{customStyle(){const e={};return this.fontFamily&&(e["font-family"]=`${this.fontFamily}`),e}},methods:{}},Tt=e=>(t.pushScopeId("data-v-4a054ef7"),e=e(),t.popScopeId(),e),wt={class:"comparative-card"},kt=Tt(()=>t.createElementVNode("div",{class:"header-title"},[t.createElementVNode("span",null,"Comparativa")],-1)),Ct={class:"versus"},Vt={class:"team-badge"},Pt=["src","alt"],It=Tt(()=>t.createElementVNode("div",null,[t.createElementVNode("div",null,[t.createElementVNode("div"),t.createElementVNode("div")]),t.createElementVNode("div",null,[t.createElementVNode("div"),t.createElementVNode("div")])],-1)),Nt=Tt(()=>t.createElementVNode("span",{class:"vs-text"},"VS",-1)),Et={class:"team-badge"},xt=["src","alt"],Bt={class:"details"},Ft={key:0},Gt={key:0},zt={key:1},At=Tt(()=>t.createElementVNode("td",null,"Puntos",-1)),Dt=Tt(()=>t.createElementVNode("td",null,"Partidos jugados",-1)),Lt=Tt(()=>t.createElementVNode("td",null,"Partidos ganados",-1)),$t=Tt(()=>t.createElementVNode("td",null,"Partidos perdidos",-1)),Mt=Tt(()=>t.createElementVNode("td",null,"Partidos empatados",-1));let Ot=null;const Rt={name:"App",components:{GscLinearTeamStats:bt,TableComparative:M(St,[["render",function(e,a,i,s,o,l){return t.openBlock(),t.createElementBlock("div",{class:"comparative-main",style:t.normalizeStyle(l.customStyle)},[t.createElementVNode("div",wt,[kt,t.createElementVNode("div",Ct,[t.createElementVNode("div",Vt,[i.local?(t.openBlock(),t.createElementBlock("img",{key:0,class:"team-badge__image",src:i.local.team_logo,alt:i.local.team_name},null,8,Pt)):t.createCommentVNode("",!0),It]),Nt,t.createElementVNode("div",Et,[i.away?(t.openBlock(),t.createElementBlock("img",{key:0,class:"team-badge__image",src:i.away.team_logo,alt:i.away.team_name},null,8,xt)):t.createCommentVNode("",!0)])]),t.createElementVNode("div",Bt,[i.away&&i.local?(t.openBlock(),t.createElementBlock("table",Ft,[t.createElementVNode("tbody",null,[2!=i.tournamentType?(t.openBlock(),t.createElementBlock("tr",Gt,[t.createElementVNode("td",null,t.toDisplayString(i.local.table_position),1),t.createElementVNode("td",null,[t.createTextVNode("Posición "),0==i.tournamentType?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("en la tabla")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("en el grupo")],64))]),t.createElementVNode("td",null,t.toDisplayString(i.away.table_position),1)])):t.createCommentVNode("",!0),2!=i.tournamentType?(t.openBlock(),t.createElementBlock("tr",zt,[t.createElementVNode("td",null,t.toDisplayString(i.local.points),1),At,t.createElementVNode("td",null,t.toDisplayString(i.away.points),1)])):t.createCommentVNode("",!0),t.createElementVNode("tr",null,[t.createElementVNode("td",null,t.toDisplayString(i.local.games_played),1),Dt,t.createElementVNode("td",null,t.toDisplayString(i.away.games_played),1)]),t.createElementVNode("tr",null,[t.createElementVNode("td",null,t.toDisplayString(i.local.games_won),1),Lt,t.createElementVNode("td",null,t.toDisplayString(i.away.games_won),1)]),t.createElementVNode("tr",null,[t.createElementVNode("td",null,t.toDisplayString(i.local.games_lost),1),$t,t.createElementVNode("td",null,t.toDisplayString(i.away.games_lost),1)]),t.createElementVNode("tr",null,[t.createElementVNode("td",null,t.toDisplayString(i.local.games_tied),1),Mt,t.createElementVNode("td",null,t.toDisplayString(i.away.games_tied),1)])])])):t.createCommentVNode("",!0)])])],4)}],["__scopeId","data-v-4a054ef7"]]),GSCSlider:p.GSCSlider},props:{seasonSelected:{type:Object,default:()=>({})},canPlayVideos:{type:Boolean,default:!0},tournamentType:{type:Number,default:0},playVideosPrivileges:{type:Object,default:null}},computed:{...o.mapState("nextGeneral",["gameForAnalysis","seasonId","isLive","showLiveData"]),...o.mapGetters("nextGeneral",["arrayFilledDataSortedByPriority"]),isComparativeVisible(){return!this.isLive&&!this.showLiveData}},watch:{gameForAnalysis:{handler:function(){this.getTableList()},immediate:!0}},data:()=>({gamesContainerWidth:0,token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",url:"https://jfxv8fqkn3.execute-api.us-west-2.amazonaws.com/prod/generalTable/",gameId:79623,movil:!1,home:null,away:null}),methods:{openmedia(e){this.$emit("openmedia",e)},setUpResizeObserver(){if(!window.ResizeObserver)throw new Error("Resize observer not supported!");Ot=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.movil=this.gamesContainerWidth<680}),Ot.observe(this.$refs.gamesContainer)},async getTableList(){try{const e=m.create({headers:{Authorization:`${this.token}`}}),t=await e.get(this.url+this.seasonSelected.id);let a=-1,i=-1;if(1!=this.tournamentType)a=t.data.data.findIndex(e=>e.team_id===this.gameForAnalysis.home_team),i=t.data.data.findIndex(e=>e.team_id===this.gameForAnalysis.visiting_team);else for(let s=0;s<t.data.groups.length;s++)-1==a&&(a=t.data.groups[s].data.findIndex(e=>e.team_id===this.gameForAnalysis.home_team),-1!=a&&(this.home=t.data.groups[s].data[a])),-1==i&&(i=t.data.groups[s].data.findIndex(e=>e.team_id===this.gameForAnalysis.visiting_team),-1!=i&&(this.away=t.data.groups[s].data[i]));1!=this.tournamentType&&(this.home=t.data.data[a],this.away=t.data.data[i])}catch(e){}}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},Wt={class:"container",ref:"gamesContainer"},jt={key:0,class:"grid-container"},qt={key:0,class:"item"},Ht={class:"item"},Jt={class:"item"},Ut={class:"item"},Zt={class:"item"},Xt={class:"item"},Yt={class:"item"},Qt={class:"grid-container"},Kt={key:0,class:"item-comparative"},ea={class:"table-movil-container"};const ta=M(Rt,[["render",function(e,a,i,s,o,l){const n=t.resolveComponent("TableComparative"),r=t.resolveComponent("GscLinearTeamStats"),d=t.resolveComponent("GSCSlider");return t.openBlock(),t.createElementBlock("div",Wt,[o.movil?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("div",Qt,[o.home&&o.away&&l.isComparativeVisible?(t.openBlock(),t.createElementBlock("div",Kt,[t.createVNode(n,{local:o.home,"tournament-type":i.tournamentType,away:o.away,fontFamily:"Poppins-Light"},null,8,["local","tournament-type","away"])])):t.createCommentVNode("",!0)]),t.createVNode(d,{backgroundColor:"none",pxScroll:300,scrollColor:"none",arrowsPosition:"relative",arrowsScrollHide:!1,arrowsBackground:"rgba(255,255,255,.16)",arrowsContainerBgL:"none",arrowsContainerBgR:"none",arrowsMargin:0,arrowsRadius:"50%",arrowsBorder:"#ddd"},{default:t.withCtx(()=>[t.createElementVNode("div",ea,[t.createElementVNode("div",{class:"item-movil",style:t.normalizeStyle(o.gamesContainerWidth<510&&o.gamesContainerWidth>450?"width: 400px":o.gamesContainerWidth<=450?"width: 360px":"")},[t.createVNode(r,{"play-videos-privileges":i.playVideosPrivileges,onOpenmedia:l.openmedia,data:e.arrayFilledDataSortedByPriority[0],teams:{home:o.home,away:o.away}},null,8,["play-videos-privileges","onOpenmedia","data","teams"])],4),t.createElementVNode("div",{class:"item-movil",style:t.normalizeStyle(o.gamesContainerWidth<510?"width: 400px":o.gamesContainerWidth<450?"width: 360px":"")},[t.createVNode(r,{"play-videos-privileges":i.playVideosPrivileges,onOpenmedia:l.openmedia,data:e.arrayFilledDataSortedByPriority[1],teams:{home:o.home,away:o.away}},null,8,["play-videos-privileges","onOpenmedia","data","teams"])],4),t.createElementVNode("div",{class:"item-movil",style:t.normalizeStyle(o.gamesContainerWidth<510?"width: 400px":o.gamesContainerWidth<450?"width: 360px":"")},[t.createVNode(r,{"play-videos-privileges":i.playVideosPrivileges,onOpenmedia:l.openmedia,data:e.arrayFilledDataSortedByPriority[2],teams:{home:o.home,away:o.away}},null,8,["play-videos-privileges","onOpenmedia","data","teams"])],4),t.createElementVNode("div",{class:"item-movil",style:t.normalizeStyle(o.gamesContainerWidth<510?"width: 400px":o.gamesContainerWidth<450?"width: 360px":"")},[t.createVNode(r,{"play-videos-privileges":i.playVideosPrivileges,onOpenmedia:l.openmedia,data:e.arrayFilledDataSortedByPriority[3],teams:{home:o.home,away:o.away}},null,8,["play-videos-privileges","onOpenmedia","data","teams"])],4),t.createElementVNode("div",{class:"item-movil",style:t.normalizeStyle(o.gamesContainerWidth<510?"width: 400px":o.gamesContainerWidth<450?"width: 360px":"")},[t.createVNode(r,{"play-videos-privileges":i.playVideosPrivileges,onOpenmedia:l.openmedia,data:e.arrayFilledDataSortedByPriority[4],teams:{home:o.home,away:o.away}},null,8,["play-videos-privileges","onOpenmedia","data","teams"])],4),t.createElementVNode("div",{class:"item-movil",style:t.normalizeStyle(o.gamesContainerWidth<510?"width: 400px":o.gamesContainerWidth<450?"width: 360px":"")},[t.createVNode(r,{"play-videos-privileges":i.playVideosPrivileges,onOpenmedia:l.openmedia,data:e.arrayFilledDataSortedByPriority[5],teams:{home:o.home,away:o.away}},null,8,["play-videos-privileges","onOpenmedia","data","teams"])],4)])]),_:1})],64)):(t.openBlock(),t.createElementBlock("div",jt,[o.home&&o.away&&l.isComparativeVisible?(t.openBlock(),t.createElementBlock("div",qt,[t.createVNode(n,{local:o.home,"tournament-type":i.tournamentType,away:o.away,fontFamily:"Poppins-Light"},null,8,["local","tournament-type","away"])])):t.createCommentVNode("",!0),t.createElementVNode("div",Ht,[t.createVNode(r,{"play-videos-privileges":i.playVideosPrivileges,"can-play-videos":i.canPlayVideos,data:e.arrayFilledDataSortedByPriority[0],teams:{home:o.home,away:o.away},onOpenmedia:l.openmedia},null,8,["play-videos-privileges","can-play-videos","data","teams","onOpenmedia"])]),t.createElementVNode("div",Jt,[t.createVNode(r,{"play-videos-privileges":i.playVideosPrivileges,"can-play-videos":i.canPlayVideos,data:e.arrayFilledDataSortedByPriority[1],teams:{home:o.home,away:o.away},onOpenmedia:l.openmedia},null,8,["play-videos-privileges","can-play-videos","data","teams","onOpenmedia"])]),t.createElementVNode("div",Ut,[t.createVNode(r,{"play-videos-privileges":i.playVideosPrivileges,"can-play-videos":i.canPlayVideos,data:e.arrayFilledDataSortedByPriority[2],teams:{home:o.home,away:o.away},onOpenmedia:l.openmedia},null,8,["play-videos-privileges","can-play-videos","data","teams","onOpenmedia"])]),t.createElementVNode("div",Zt,[t.createVNode(r,{"play-videos-privileges":i.playVideosPrivileges,"can-play-videos":i.canPlayVideos,data:e.arrayFilledDataSortedByPriority[3],teams:{home:o.home,away:o.away},onOpenmedia:l.openmedia},null,8,["play-videos-privileges","can-play-videos","data","teams","onOpenmedia"])]),t.createElementVNode("div",Xt,[t.createVNode(r,{"play-videos-privileges":i.playVideosPrivileges,"can-play-videos":i.canPlayVideos,data:e.arrayFilledDataSortedByPriority[4],teams:{home:o.home,away:o.away},onOpenmedia:l.openmedia},null,8,["play-videos-privileges","can-play-videos","data","teams","onOpenmedia"])]),t.createElementVNode("div",Yt,[t.createVNode(r,{"play-videos-privileges":i.playVideosPrivileges,"can-play-videos":i.canPlayVideos,data:e.arrayFilledDataSortedByPriority[5],teams:{home:o.home,away:o.away},onOpenmedia:l.openmedia},null,8,["play-videos-privileges","can-play-videos","data","teams","onOpenmedia"])])]))],512)}]]),aa=["#0033C5","#cbee6b"],ia={name:"DistributionChart",components:{},props:{seasonSelected:{type:Object,default:()=>({})}},data:()=>({arrayChartTypes:["General","Ofensivo","Defensivo","Posesión","Balón parado","Infracciones"],height:409,updateCategory:0,homeTeamSelectedPlaysType:0,visitingTeamSelectedPlaysType:0,chartKeyCounter:0,homeTeamPlaysTypes:{history:0,live:1},visitingTeamPlaysTypes:{history:0,live:1},tooltip:{show:!1,data:{},names:{},keyName:"",leagueAvg:"",showLiveData:!1,local:!1,x:0,y:0},globals:{x:0,y:0},arrayDataForCharts:[],arrayChartOptions:[],arrayFilledSeries:[]}),watch:{menuOptionActive(){this.idAssetSelected},idAssetSelected(){3===this.idAssetSelected&&this.chartKeyCounter++},isMobile(e){this.chartOptions.legend.horizontalAlign=e?"center":"left",this.chartKeyCounter++},arrayFilledDataSortedByPriority:{immediate:!0,deep:!0,handler(){this.fillData()}},showLiveData(){this.fillData()}},computed:{...o.mapState("nextGeneral",["showLiveData","gameForAnalysis"]),...o.mapGetters("nextGeneral",["idAssetSelected","menuOptionActive","homeTeamStatisticsType","showPostMatchData","visitingTeamStatisticsType","homeTeam","visitingTeam","subcategoryName","accomplished","arrayFilledDataSortedByPriority","filledDataStructure","showPostMatchData"]),isMobile(){return"mobile"===this.$mq},isLiveLike(){return 0===this.gameForAnalysis.game_status||this.gameForAnalysis.is_live}},methods:{avg:(e,t)=>t?e.leagueAccomplishedAvg:e.leagueReceivedAvg,fillData(){this.arrayChartOptions=[],this.arrayFilledDataSortedByPriority&&this.arrayFilledDataSortedByPriority.length&&"object"==typeof this.arrayFilledDataSortedByPriority[0].subcategories?(this.arrayChartOptions=[],this.arrayFilledSeries=[],this.arrayDataForCharts=[],this.arrayFilledDataSortedByPriority.forEach((e,t)=>{const a=this.getChartOptions(),i=this.getChartSeries(e.subcategories,a);this.arrayFilledSeries.push(i),this.arrayChartOptions.push(a),e.id=`dC${t}`;const s=this.$refs[e.id];s&&s[0].updateSeries(i,!0),this.arrayDataForCharts.push(e)})):this.arrayDataForCharts=[]},getChartOptions:()=>({plotOptions:{radar:{size:132,polygons:{strokeColors:"#606971"}}},chart:{type:"radar",height:509,toolbar:{show:!1}},colors:aa,fill:{colors:aa,opacity:.4},legend:{show:!0,position:"bottom",horizontalAlign:"left",fontSize:"11px",fontFamily:"Poppins-Regular",labels:{colors:"#d9d9d9",useSeriesColors:!1}},xaxis:{categories:[],labels:{show:!0,style:{fontSize:"11px",fontFamily:"Poppins-Regular"}}},yaxis:{show:!1},responsive:[{breakpoint:770,options:{chart:{height:300},plotOptions:{radar:{size:100,offsetY:10,polygons:{strokeColors:"#606971"}},bar:{horizontal:!1}},legend:{position:"top",horizontalAlign:"center"},xaxis:{labels:{show:!0,style:{fontSize:"11px"}}}}},{breakpoint:450,options:{plotOptions:{radar:{size:70,offsetY:-20,polygons:{strokeColors:"#dcdcdc"}},bar:{horizontal:!1}},legend:{position:"top",horizontalAlign:"center"},xaxis:{labels:{show:!0,style:{fontSize:"10px"}}}}}],tooltip:{intersect:!0,followCursor:!0,shared:!1,theme:"dark",style:{fontSize:"12px"},custom:function({series:e,seriesIndex:t,dataPointIndex:a,w:i}){const s=i.config.arraySubcategories[a].name,o=i.config.series[t].name,l=i.config.series[t].dataTotal[a],n=e[t][a];return"3-0"===i.config.arraySubcategories[a].id?`\n <div class="custom-tooltip-apexchart" style="display: none !important;">\n <div class="__title">${s}:</div>\n <div class="__totals">${o}: ${n}%</div>\n </div>\n `:`\n <div class="custom-tooltip-apexchart">\n <div class="__title">${s}:</div>\n <div class="__totals">${o}: ${l}</div>\n </div>\n `}}}),getChartSeries(e,t){let a,i;return this.showPostMatchData?(a={name:`${this.homeTeam.acronym}`,data:[],dataTotal:[]},i={name:`${this.visitingTeam.acronym}`,data:[],dataTotal:[]},t.arraySubcategories=[],Object.values(e).forEach((e,s)=>{if(e.isVisible){t.xaxis.categories.push(this.prepareLabels(e,s)),t.arraySubcategories.push(e);const o=e.homeTeam[this.homeTeamStatisticsType].totalPostGame+e.visitingTeam[this.visitingTeamStatisticsType].totalPostGame;a.data.push(Math.round(120*(o?e.homeTeam[this.homeTeamStatisticsType].totalPostGame/o:0))),a.dataTotal.push(e.homeTeam[this.homeTeamStatisticsType].totalPostGame),i.data.push(Math.round(120*(o?e.visitingTeam[this.visitingTeamStatisticsType].totalPostGame/o:0))),i.dataTotal.push(e.visitingTeam[this.visitingTeamStatisticsType].totalPostGame)}})):(a={name:`${this.isLiveLike&&this.showLiveData?"Live":"Histórico"} ${this.homeTeam.acronym}`,data:[],dataTotal:[]},i={name:`${this.isLiveLike&&this.showLiveData?"Live":"Histórico"} ${this.visitingTeam.acronym}`,data:[],dataTotal:[]},t.arraySubcategories=[],Object.values(e).forEach((e,s)=>{if(e.isVisible){let o,l,n,r;t.xaxis.categories.push(this.prepareLabels(e,s)),t.arraySubcategories.push(e);const d=e.homeTeam.accomplished.avgPostGame+e.visitingTeam.accomplished.avgPostGame;if(this.isLiveLike&&this.showLiveData){const t=e.homeTeam[this.homeTeamStatisticsType].totalLive+e.visitingTeam[this.visitingTeamStatisticsType].totalLive;o=t?e.homeTeam[this.homeTeamStatisticsType].totalLive/t:0,n=e.homeTeam[this.homeTeamStatisticsType].totalLive}else 1!==this.gameForAnalysis.game_status&&3===e.generalCategoriesIds.accomplished?(o=e.homeTeam.accomplished.avgPostGame/d,n=e.homeTeam.accomplished.totalPostGame):(o=d?e.homeTeam[this.homeTeamStatisticsType].avgPostGame/d:0,n=e.homeTeam[this.homeTeamStatisticsType].totalPostGame);if(this.isLiveLike&&this.showLiveData){const t=e.homeTeam[this.homeTeamStatisticsType].totalLive+e.visitingTeam[this.visitingTeamStatisticsType].totalLive;l=t?e.visitingTeam[this.visitingTeamStatisticsType].totalLive/t:0,r=e.visitingTeam[this.visitingTeamStatisticsType].totalLive}else 1!==this.gameForAnalysis.game_status&&3===e.generalCategoriesIds.accomplished?(l=e.visitingTeam.accomplished.avgPostGame/d,r=e.visitingTeam.accomplished.totalPostGame):(l=d?e.visitingTeam[this.visitingTeamStatisticsType].avgPostGame/d:0,r=e.visitingTeam[this.visitingTeamStatisticsType].totalPostGame);a.data.push(Math.round(120*o)),a.dataTotal.push(Math.round(n)),i.data.push(Math.round(120*l)),i.dataTotal.push(Math.round(r))}})),[a,i]},onHomeTeamPlaysTypeChanged(e){this.homeTeamSelectedPlaysType=e},onVisitingTeamPlaysTypeChanged(e){this.visitingTeamSelectedPlaysType=e},getSubcategoryData:(e,t="homeTeam")=>("3-0"===e.id&&(e[t].accomplished.totalLiveBothTeams=e.homeTeam.accomplished.totalLive+e.visitingTeam.accomplished.totalLive),e[t].accomplished||0),showModal(e,t,a){const i=0===a?"homeTeam":"visitingTeam",s=e.config.arraySubcategories[t]||{};this.tooltip.isLeagueAvgVisible="3-0"!==s.id,this.tooltip.data=this.getSubcategoryData(s,i),this.tooltip.local=0===a,this.tooltip.names=s.names,this.tooltip.keyName=this.subcategoryName,this.tooltip.leagueAvg=this.leagueAvg(s);const o=e.globals.clientX||0,l=e.globals.clientY||0;this.globals.x=o,this.globals.y=l,this.tooltip.x=o,this.tooltip.y=l>700?l-250:l;const n=3===s.generalCategoriesIds.accomplished;if(n){const e=s.homeTeam.accomplished.avgPostGame+s.visitingTeam.accomplished.avgPostGame;this.tooltip.numberValue=e?s[i].accomplished.avgPostGame/e*100:0}else this.tooltip.numberValue=null;return this.tooltip.booleanIsPercent=n,this.tooltip.show=!0,this.tooltip.data},updateTooltip(e){const t=Math.abs(e.clientX-this.globals.x),a=Math.abs(e.clientY-this.globals.y);(t>5||a>5)&&(this.tooltip.show=!1)},prepareLabels(e,t){let a=e.name||e.names[this.subcategoryName]||e.names["0-0"];if(0===t)return a;if(a.length>13){let e=a.split(" ");a=[];let t="",i="",s=e.slice(-1)[0];e.forEach(e=>{t+=` ${e} `,t.length>13&&(a.push(i.trim()),t=e),i=t,s===e&&a.push(i.trim())})}return a},leagueAvg(e){return 3===e.generalCategoriesIds.accomplished?(e.homeTeam.accomplished.arrayRankings.reduce((e,t)=>e+t.points,0)/e.homeTeam.accomplished.arrayRankings.length*100).toFixed(2):this.avg(e,this.accomplished)}}},sa={class:"distribution"},oa={class:"distribution__container"},la={class:"distribution__container__chart-type__title"},na=(e=>(t.pushScopeId("data-v-0b7d62f2"),e=e(),t.popScopeId(),e))(()=>t.createElementVNode("div",{class:"distribution__container__chart-type__controls"},null,-1)),ra={class:"distribution__container__chart-type__chart"};const da=M(ia,[["render",function(e,a,i,s,o,l){const n=t.resolveComponent("apexchart");return t.openBlock(),t.createElementBlock("div",sa,[t.createElementVNode("div",oa,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(o.arrayDataForCharts,(e,a)=>(t.openBlock(),t.createElementBlock("div",{class:"distribution__container__chart-type",key:a},[t.createElementVNode("div",la,t.toDisplayString(e.name),1),na,t.createElementVNode("div",ra,[t.createVNode(n,{ref_for:!0,ref:e.id,type:"radar",height:o.height,options:o.arrayChartOptions[a],series:o.arrayFilledSeries[a]},null,8,["height","options","series"])])]))),128))])])}],["__scopeId","data-v-0b7d62f2"]]);const ca=M({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}}},[["render",function(e,a,i,s,o,l){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["box-tooltip",l.showTooltip]),style:t.normalizeStyle(l.positionTooltip),onClick:a[0]||(a[0]=(...e)=>l.tooltipClick&&l.tooltipClick(...e))},[t.renderSlot(e.$slots,"default",{},void 0,!0)],6)}],["__scopeId","data-v-33a39744"]]),ma={name:"SoccerChalkboardXg",components:{Tooltip:ca},props:{plays:{type:Array,required:!0},categories:{type:Array,required:!0},team:{type:String,required:!0}},data:()=>({negativeColor:"red",data:{x:0,y:0,visible:!1},dataPlay:{playerName:"",photo:"",minute:0,rivalLogo:"",rivalName:"",categoryName:"",xGi:0,xGf:0,isOwnGoal:!1}}),computed:{...o.mapGetters("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:100*e.x1,y1:100*e.y1,x2:100*e.x2,y2:100*e.y2,x3:100*e.x3,y3:100*e.y3,xGi:e.xG1,xGf:e.xG2}))},localCategories(){return this.categories.map((e,t)=>({id:t,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((e,t)=>[...e,t.categories],[]);return this.preparedPlays.filter(t=>this.findCategoryInPlay(e,t)).reduce((e,t)=>{let a=this.localCategories.find(e=>this.findCategoryInPlay(e.categories,t));if(a){let i={category:a.id,categoryName:a.name,arrowColor:a.negative?this.negativeColor:a.color,arrowMarkerColor:a.negative?"url(#arrow-negative)":`url(#arrow-${a.id})`,markerColor:a.color,jersey:t.jersey_number,matchlapse:t.matchLapse,playerName:t.player_name,photo:t.photo,rivalLogo:t.rival_id,x1:a.invert.includes(t.categoryId)?100-t[`x${a.points[0]}`]:t[`x${a.points[0]}`],y1:a.invert.includes(t.categoryId)?100-t[`y${a.points[0]}`]:t[`y${a.points[0]}`],x2:a.invert.includes(t.categoryId)?100-t[`x${a.points[1]}`]:t[`x${a.points[1]}`],y2:a.invert.includes(t.categoryId)?100-t[`y${a.points[1]}`]:t[`y${a.points[1]}`],x3:a.invert.includes(t.categoryId)?100-t[`x${a.points[2]}`]:t[`x${a.points[2]}`],y3:a.invert.includes(t.categoryId)?100-t[`y${a.points[2]}`]:t[`y${a.points[2]}`],momentOfPlay:t.moment_of_play,isOwnGoal:a.invert.includes(t.categoryId),xGi:t.xGi,xGf:t.xGf};e.push(i)}return e},[])}},methods:{findCategoryInPlay:(e,t)=>e.find(e=>"number"==typeof e?e===t.categoryId:e.includes(t.categoryId)),onMouseOver(e,t){this.dataPlay.playerName=t.playerName||"",this.dataPlay.photo=t.photo||"",this.dataPlay.minute=parseInt(t.momentOfPlay.split(":")[0])||"",this.dataPlay.rivalLogo=t.rivalLogo||"",this.dataPlay.categoryName=t.categoryName||"",this.dataPlay.rivalName="Visiting"==this.team?this.homeTeam.colloquial_name:this.visitingTeam.colloquial_name,this.dataPlay.xGi=String(t.xGi),this.dataPlay.xGf=String(t.xGf),this.dataPlay.isOwnGoal=t.isOwnGoal,this.data.visible=!0},onMouseLeave(){this.data.visible=!1}}},pa=e=>(t.pushScopeId("data-v-97159710"),e=e(),t.popScopeId(),e),ya={class:"soccer-chalkboard-xg"},ga={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 490 684","xmlns:xlink":"http://www.w3.org/1999/xlink",class:"soccer-chalkboard"},ua={xmlns:"http://www.w3.org/2000/svg",viewBox:"30 0 452 684","xmlns:xlink":"http://www.w3.org/1999/xlink"},ha=pa(()=>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)),va=["id"],fa=["fill"],_a=pa(()=>t.createElementVNode("pattern",{id:"fieldBackground",width:"1",height:"1",viewBox:"0 0 100 100",preserveAspectRatio:"none"},[t.createElementVNode("image",{"xlink:href":"https://golstatsimages.blob.core.windows.net/todoelfut/fieldbg.png",width:"100",height:"100",preserveAspectRatio:"none",id:"image2"})],-1)),ba=["id"],Sa=["x1","y1","x2","y2","stroke"],Ta=["x1","y1","x2","y2","stroke","marker-end"],wa=["onMouseover"],ka=["x","y","fill"],Ca=["x","y"],Va={class:"tooltip-data has-text-left"},Pa={class:"bold"},Ia={class:"tooltip-image"},Na={class:"tooltip-image"},Ea=["src"],xa={class:"tooltip-xg"},Ba={key:0},Fa=pa(()=>t.createElementVNode("span",null,"xGi:",-1)),Ga=pa(()=>t.createElementVNode("div",{class:"tooltip-xg-separator"},null,-1)),za={key:1},Aa=pa(()=>t.createElementVNode("span",null,"xGf:",-1));const Da=M(ma,[["render",function(e,a,i,s,o,l){const n=t.resolveComponent("Tooltip");return t.openBlock(),t.createElementBlock("div",ya,[(t.openBlock(),t.createElementBlock("svg",ga,[(t.openBlock(),t.createElementBlock("svg",ua,[t.createElementVNode("defs",null,[ha,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.localCategories,e=>(t.openBlock(),t.createElementBlock("marker",{key:`arrow-color-${e.id}`,id:`arrow-${e.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:e.color},null,8,fa)],8,va))),128)),_a]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.graphPlays,e=>(t.openBlock(),t.createElementBlock("g",{key:e.id,id:`play-${e.playId}`},[t.createElementVNode("line",{x1:`${e.x1}%`,y1:`${e.y1}%`,x2:`${e.x2}%`,y2:`${e.y2}%`,stroke:e.arrowColor,"stroke-width":"2"},null,8,Sa),t.createElementVNode("line",{x1:`${e.x2}%`,y1:`${e.y2}%`,x2:`${e.x3}%`,y2:`${e.y3}%`,stroke:e.arrowColor,"stroke-width":"2","marker-end":e.arrowMarkerColor},null,8,Ta),t.createElementVNode("g",{onMouseover:t=>l.onMouseOver(t,e),onMouseleave:a[0]||(a[0]=(...e)=>l.onMouseLeave&&l.onMouseLeave(...e)),class:"is-pointer"},[t.createElementVNode("rect",{x:`${e.x1}%`,y:`${e.y1}%`,transform:"translate(-14, -14)",height:"28",width:"28","stroke-width":"2",fill:e.markerColor,stroke:"#999",rx:"14",ry:"14"},null,8,ka),t.createElementVNode("text",{"text-anchor":"middle","dominant-baseline":"middle",x:`${e.x1}%`,y:`${e.y1}%`,dy:"1","font-size":"15",fill:"#fff","font-family":"'Poppins-SemiBold', sans-serif"},t.toDisplayString(e.jersey),9,Ca)],40,wa)],8,ba))),128))]))])),t.createVNode(n,{data:o.data},{default:t.withCtx(()=>[t.createElementVNode("div",Va,[t.createElementVNode("div",null,[t.createElementVNode("span",Pa,t.toDisplayString(o.dataPlay.isOwnGoal?"Autogol":o.dataPlay.categoryName),1)]),t.createElementVNode("div",null,[t.createTextVNode(t.toDisplayString(o.dataPlay.playerName)+" ",1),t.createElementVNode("div",Ia,[t.createElementVNode("div",{class:"tooltip-image-player",style:t.normalizeStyle("background: url("+o.dataPlay.photo+") top")},null,4)])]),t.createElementVNode("div",null,"Minuto:  "+t.toDisplayString(o.dataPlay.minute)+"'",1),t.createElementVNode("div",null,[t.createTextVNode(" Rival: "),t.createElementVNode("div",Na,[t.createElementVNode("img",{src:o.dataPlay.rivalLogo},null,8,Ea)])]),t.createElementVNode("div",xa,[/^[+]?([0-1]+(?:[\.][0-9]*)?|\.[0-9]+)$/.test(o.dataPlay.xGi)&&o.dataPlay.xGi<=1&&!o.dataPlay.isOwnGoal?(t.openBlock(),t.createElementBlock("div",Ba,[Fa,t.createTextVNode(" "+t.toDisplayString(Number(o.dataPlay.xGi)),1)])):t.createCommentVNode("",!0),Ga,/^[+]?([0-1]+(?:[\.][0-9]*)?|\.[0-9]+)$/.test(o.dataPlay.xGf)&&o.dataPlay.xGf<=1&&!o.dataPlay.isOwnGoal?(t.openBlock(),t.createElementBlock("div",za,[Aa,t.createTextVNode(" "+t.toDisplayString(Number(o.dataPlay.xGf)),1)])):t.createCommentVNode("",!0)])])]),_:1},8,["data"])])}],["__scopeId","data-v-97159710"]]),La=[12,55,35,54],$a=[510],Ma=[330,331,333,334,423,424,343,344],Oa=[29,269],Ra=new Set(La),Wa=new Set($a),ja=new Set(Ma),qa=new Set(Oa),Ha=[{name:"Goles",color:"#336DFF",points:[1,2,3],categories:La,invert:[35,54],negative:!1},{name:"Tiros a gol",color:"#7ED321",points:[1,2,3],categories:$a},{name:"Remates con cabeza",color:"#990BFF",points:[1,2,3],categories:Ma},{name:"Penales",color:"#21BBD3",points:[1,2,3],categories:Oa}],Ja={name:"XgLocal",components:{SoccerChalkboard:Da},props:{},data:()=>({categories:Ha}),computed:{...o.mapState("nextGeneral",["usePastSeasonId","pastSeasonId","gameId"]),...o.mapState("general",["booleanIsStatisticModalOpen"]),...o.mapGetters("xgGeneral",["playsLocal","goalsQtyLocal","headQtyLocal","penaltiesQtyLocal","shotsOnGoalQtyLocal","xGLocal"]),...o.mapGetters("nextGeneral",["getSeasonId","homeTeam","visitingTeam","showPostMatchData","game","getGameForAnalysis"]),...o.mapGetters("loginGeneral",["getPremiumAccount","getIsGolstats"]),...o.mapGetters("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:"Remates con cabeza",value:this.headQtyLocal},{title:"Penales",value:this.penaltiesQtyLocal},{title:"Goles esperados (xG)",value:this.xGLocal}]}},watch:{getGameForAnalysis:{deep:!0,handler(e){e&&this.fillXgPlays()}}},methods:{...o.mapMutations("general",["setVideoSrc","setVideoModalVisibility"]),...o.mapMutations("xgGeneral",["setTeamSelected"]),...o.mapActions("xgGeneral",["getXgPlays"]),openXgVideo(){this.setVideoSrc(""),this.setVideoModalVisibility(!0)},getTeamId(){return this.homeTeam.team_id},fillXgPlays(){1!==this.getGameForAnalysis.game_status?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()}},Ua=e=>(t.pushScopeId("data-v-531dea38"),e=e(),t.popScopeId(),e),Za={class:"xg-container"},Xa={class:"xg-container__info"},Ya=Ua(()=>t.createElementVNode("div",{class:"title"},"Goles esperados (xG)",-1)),Qa={class:"table"},Ka={class:"table__row"},ei={class:"table__row__title"},ti={class:"table__row__value"},ai=["src"],ii={class:"table__row"},si={class:"table__row__title"},oi={class:"table__row__value"},li={class:"table__row"},ni={class:"table__row__title"},ri={class:"table__row__value"},di={class:"table__row"},ci={class:"table__row__title"},mi={class:"table__row__value"},pi={class:"table__row"},yi={class:"table__row__title"},gi={class:"table__row__value"},ui=Ua(()=>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)),hi={class:"xg-container__field"};const vi=M(Ja,[["render",function(e,a,i,s,o,l){const n=t.resolveComponent("SoccerChalkboard");return t.openBlock(),t.createElementBlock("div",Za,[t.createElementVNode("div",Xa,[Ya,t.createElementVNode("div",Qa,[t.createElementVNode("div",Ka,[t.createElementVNode("div",ei,t.toDisplayString(l.gxInfoItems[0].title),1),t.createElementVNode("div",ti,[t.createTextVNode(t.toDisplayString(l.gxInfoItems[0].value),1),t.createElementVNode("img",{class:"img-abs",src:l.stringSelectedTeamLogo},null,8,ai)])]),t.createElementVNode("div",ii,[t.createElementVNode("div",si,t.toDisplayString(l.gxInfoItems[1].title),1),t.createElementVNode("div",oi,t.toDisplayString(l.gxInfoItems[1].value),1)]),t.createElementVNode("div",li,[t.createElementVNode("div",ni,t.toDisplayString(l.gxInfoItems[2].title),1),t.createElementVNode("div",ri,t.toDisplayString(l.gxInfoItems[2].value),1)]),t.createElementVNode("div",di,[t.createElementVNode("div",ci,t.toDisplayString(l.gxInfoItems[3].title),1),t.createElementVNode("div",mi,t.toDisplayString(l.gxInfoItems[3].value),1)]),t.createElementVNode("div",pi,[t.createElementVNode("div",yi,t.toDisplayString(l.gxInfoItems[4].title),1),t.createElementVNode("div",gi,t.toDisplayString(l.gxInfoItems[4].value),1)])]),ui]),t.createElementVNode("div",hi,[t.createVNode(n,{plays:e.playsLocal,categories:o.categories,team:e.team},null,8,["plays","categories","team"])])])}],["__scopeId","data-v-531dea38"]]),fi={name:"XgAway",components:{SoccerChalkboard:Da},props:{team:{type:String,default:"Visiting"}},data:()=>({categories:Ha}),computed:{...o.mapState("nextGeneral",["usePastSeasonId","pastSeasonId","gameId"]),...o.mapState("general",["booleanIsStatisticModalOpen"]),...o.mapGetters("xgGeneral",["playsAway","goalsQtyAway","headQtyAway","penaltiesQtyAway","shotsOnGoalQtyAway","xGAway"]),...o.mapGetters("nextGeneral",["getSeasonId","homeTeam","visitingTeam","showPostMatchData","game","getGameForAnalysis"]),...o.mapGetters("loginGeneral",["getPremiumAccount","getIsGolstats"]),...o.mapGetters("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:"Remates con cabeza",value:this.headQtyAway},{title:"Penales",value:this.penaltiesQtyAway},{title:"Goles esperados (xG)",value:this.xGAway}]}},watch:{getGameForAnalysis:{deep:!0,handler(e){e&&this.fillXgPlays()}}},methods:{...o.mapMutations("general",["setVideoSrc","setVideoModalVisibility"]),...o.mapMutations("xgGeneral",["setTeamSelected"]),...o.mapActions("xgGeneral",["getXgPlays"]),openXgVideo(){this.setVideoSrc(""),this.setVideoModalVisibility(!0)},getTeamId(){return this.visitingTeam.team_id},fillXgPlays(){1!=this.getGameForAnalysis.game_status?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()}},_i=e=>(t.pushScopeId("data-v-fcd7734d"),e=e(),t.popScopeId(),e),bi={class:"xg-container"},Si={class:"xg-container__info"},Ti=_i(()=>t.createElementVNode("div",{class:"title"},"Goles esperados (xG)",-1)),wi={class:"table"},ki={class:"table__row"},Ci={class:"table__row__title"},Vi={class:"table__row__value"},Pi=["src"],Ii={class:"table__row"},Ni={class:"table__row__title"},Ei={class:"table__row__value"},xi={class:"table__row"},Bi={class:"table__row__title"},Fi={class:"table__row__value"},Gi={class:"table__row"},zi={class:"table__row__title"},Ai={class:"table__row__value"},Di={class:"table__row"},Li={class:"table__row__title"},$i={class:"table__row__value"},Mi=_i(()=>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)),Oi={class:"xg-container__field"};const Ri=M(fi,[["render",function(e,a,i,s,o,l){const n=t.resolveComponent("SoccerChalkboard");return t.openBlock(),t.createElementBlock("div",null,[t.createElementVNode("div",bi,[t.createElementVNode("div",Si,[Ti,t.createElementVNode("div",wi,[t.createElementVNode("div",ki,[t.createElementVNode("div",Ci,t.toDisplayString(l.gxInfoItems[0].title),1),t.createElementVNode("div",Vi,[t.createTextVNode(t.toDisplayString(l.gxInfoItems[0].value),1),t.createElementVNode("img",{class:"img-abs",src:l.stringSelectedTeamLogo},null,8,Pi)])]),t.createElementVNode("div",Ii,[t.createElementVNode("div",Ni,t.toDisplayString(l.gxInfoItems[1].title),1),t.createElementVNode("div",Ei,t.toDisplayString(l.gxInfoItems[1].value),1)]),t.createElementVNode("div",xi,[t.createElementVNode("div",Bi,t.toDisplayString(l.gxInfoItems[2].title),1),t.createElementVNode("div",Fi,t.toDisplayString(l.gxInfoItems[2].value),1)]),t.createElementVNode("div",Gi,[t.createElementVNode("div",zi,t.toDisplayString(l.gxInfoItems[3].title),1),t.createElementVNode("div",Ai,t.toDisplayString(l.gxInfoItems[3].value),1)]),t.createElementVNode("div",Di,[t.createElementVNode("div",Li,t.toDisplayString(l.gxInfoItems[4].title),1),t.createElementVNode("div",$i,t.toDisplayString(l.gxInfoItems[4].value),1)])]),Mi]),t.createElementVNode("div",Oi,[t.createVNode(n,{plays:e.playsAway,categories:o.categories,team:i.team},null,8,["plays","categories","team"])])])])}],["__scopeId","data-v-fcd7734d"]]),Wi={name:"SoccerChalkboardXgMobile",components:{Tooltip:ca},props:{plays:{type:Array,required:!0},categories:{type:Array,required:!0},team:{type:String,required:!0}},data:()=>({negativeColor:"red",data:{x:0,y:0,visible:!1},dataPlay:{playerName:"",photo:"",minute:0,rivalLogo:"",rivalName:"",categoryName:"",xGi:0,xGf:0,isOwnGoal:!1}}),computed:{...o.mapGetters("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:100*e.x1,y1:100*e.y1,x2:100*e.x2,y2:100*e.y2,x3:100*e.x3,y3:100*e.y3,xGi:e.xG1,xGf:e.xG2}))},localCategories(){return this.categories.map((e,t)=>({id:t,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((e,t)=>[...e,t.categories],[]);return this.preparedPlays.filter(t=>this.findCategoryInPlay(e,t)).reduce((e,t)=>{let a=this.localCategories.find(e=>this.findCategoryInPlay(e.categories,t));if(a){let i={category:a.id,categoryName:a.name,arrowColor:a.negative?this.negativeColor:a.color,arrowMarkerColor:a.negative?"url(#arrow-negative)":`url(#arrow-${a.id})`,markerColor:a.color,jersey:t.jersey_number,matchlapse:t.matchLapse,playerName:t.player_name,photo:t.photo,rivalLogo:t.rival_id,x1:a.invert.includes(t.categoryId)?100-t[`x${a.points[0]}`]:t[`x${a.points[0]}`],y1:a.invert.includes(t.categoryId)?100-t[`y${a.points[0]}`]:t[`y${a.points[0]}`],x2:a.invert.includes(t.categoryId)?100-t[`x${a.points[1]}`]:t[`x${a.points[1]}`],y2:a.invert.includes(t.categoryId)?100-t[`y${a.points[1]}`]:t[`y${a.points[1]}`],x3:a.invert.includes(t.categoryId)?100-t[`x${a.points[2]}`]:t[`x${a.points[2]}`],y3:a.invert.includes(t.categoryId)?100-t[`y${a.points[2]}`]:t[`y${a.points[2]}`],momentOfPlay:t.moment_of_play,isOwnGoal:a.invert.includes(t.categoryId),xGi:t.xGi,xGf:t.xGf};e.push(i)}return e},[])}},methods:{findCategoryInPlay:(e,t)=>e.find(e=>"number"==typeof e?e===t.categoryId:e.includes(t.categoryId)),onMouseOver(e,t){this.dataPlay.playerName=t.playerName||"",this.dataPlay.photo=t.photo||"",this.dataPlay.minute=parseInt(t.momentOfPlay.split(":")[0])||"",this.dataPlay.rivalLogo=t.rivalLogo||"",this.dataPlay.categoryName=t.categoryName||"",this.dataPlay.rivalName="Visiting"==this.team?this.homeTeam.team_name:this.visitingTeam.team_name,this.dataPlay.xGi=String(t.xGi),this.dataPlay.xGf=String(t.xGf),this.dataPlay.isOwnGoal=t.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}}},ji=e=>(t.pushScopeId("data-v-b71a4607"),e=e(),t.popScopeId(),e),qi={class:"soccer-chalkboard-xg"},Hi={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 490 684","xmlns:xlink":"http://www.w3.org/1999/xlink",class:"soccer-chalkboard"},Ji={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 452 684","xmlns:xlink":"http://www.w3.org/1999/xlink"},Ui=ji(()=>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)),Zi=["id"],Xi=["fill"],Yi=ji(()=>t.createElementVNode("pattern",{id:"fieldBackground",width:"1",height:"1",viewBox:"0 0 100 100",preserveAspectRatio:"none"},[t.createElementVNode("image",{"xlink:href":"https://golstatsimages.blob.core.windows.net/todoelfut/fieldbg.png",width:"100",height:"100",preserveAspectRatio:"none",id:"image2"})],-1)),Qi=["id"],Ki=["x1","y1","x2","y2","stroke"],es=["x1","y1","x2","y2","stroke","marker-end"],ts=["onMouseover"],as=["x","y","fill"],is=["x","y"],ss={class:"tooltip-data has-text-left"},os={class:"bold"},ls={class:"tooltip-image"},ns={class:"tooltip-image"},rs=["src"],ds={class:"tooltip-xg"},cs={key:0},ms=ji(()=>t.createElementVNode("span",null,"xGi:",-1)),ps=ji(()=>t.createElementVNode("div",{class:"tooltip-xg-separator"},null,-1)),ys={key:1},gs=ji(()=>t.createElementVNode("span",null,"xGf:",-1));const us=M(Wi,[["render",function(e,a,i,s,o,l){const n=t.resolveComponent("Tooltip");return t.openBlock(),t.createElementBlock("div",qi,[(t.openBlock(),t.createElementBlock("svg",Hi,[(t.openBlock(),t.createElementBlock("svg",Ji,[t.createElementVNode("defs",null,[Ui,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.localCategories,e=>(t.openBlock(),t.createElementBlock("marker",{key:`arrow-color-${e.id}`,id:`arrow-${e.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:e.color},null,8,Xi)],8,Zi))),128)),Yi]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.graphPlays,e=>(t.openBlock(),t.createElementBlock("g",{key:e.id,id:`play-${e.playId}`},[t.createElementVNode("line",{x1:`${e.x1}%`,y1:`${e.y1}%`,x2:`${e.x2}%`,y2:`${e.y2}%`,stroke:e.arrowColor,"stroke-width":"2"},null,8,Ki),t.createElementVNode("line",{x1:`${e.x2}%`,y1:`${e.y2}%`,x2:`${e.x3}%`,y2:`${e.y3}%`,stroke:e.arrowColor,"stroke-width":"2","marker-end":e.arrowMarkerColor},null,8,es),t.createElementVNode("g",{onMouseover:t=>l.onMouseOver(t,e),onMouseleave:a[0]||(a[0]=(...e)=>l.onMouseLeave&&l.onMouseLeave(...e)),class:"is-pointer"},[t.createElementVNode("rect",{x:`${e.x1}%`,y:`${e.y1}%`,transform:"translate(-14, -14)",height:"28",width:"28","stroke-width":"2",fill:e.markerColor,stroke:"#aaa",rx:"14",ry:"14"},null,8,as),t.createElementVNode("text",{"text-anchor":"middle","dominant-baseline":"middle",x:`${e.x1}%`,y:`${e.y1}%`,dy:"1","font-size":"15",stroke:"white","font-family":"Poppins, sans-serif"},t.toDisplayString(e.jersey),9,is)],40,ts)],8,Qi))),128))]))])),t.createVNode(n,{data:o.data},{default:t.withCtx(()=>[t.createElementVNode("div",ss,[t.createElementVNode("div",null,[t.createElementVNode("span",os,t.toDisplayString(o.dataPlay.isOwnGoal?"Autogol":o.dataPlay.categoryName),1)]),t.createElementVNode("div",null,[t.createTextVNode(t.toDisplayString(o.dataPlay.playerName)+" ",1),t.createElementVNode("div",ls,[t.createElementVNode("div",{class:"tooltip-image-player",style:t.normalizeStyle("background: url("+o.dataPlay.photo+") top")},null,4)])]),t.createElementVNode("div",null,"Minuto:  "+t.toDisplayString(o.dataPlay.minute)+"'",1),t.createElementVNode("div",null,[t.createTextVNode(" Rival: "),t.createElementVNode("div",ns,[t.createElementVNode("img",{src:o.dataPlay.rivalLogo},null,8,rs)])]),t.createElementVNode("div",ds,[/^[+]?([0-1]+(?:[\.][0-9]*)?|\.[0-9]+)$/.test(o.dataPlay.xGi)&&o.dataPlay.xGi<=1&&!o.dataPlay.isOwnGoal?(t.openBlock(),t.createElementBlock("div",cs,[ms,t.createTextVNode(" "+t.toDisplayString(Number(o.dataPlay.xGi)),1)])):t.createCommentVNode("",!0),ps,/^[+]?([0-1]+(?:[\.][0-9]*)?|\.[0-9]+)$/.test(o.dataPlay.xGf)&&o.dataPlay.xGf<=1&&!o.dataPlay.isOwnGoal?(t.openBlock(),t.createElementBlock("div",ys,[gs,t.createTextVNode(" "+t.toDisplayString(Number(o.dataPlay.xGf)),1)])):t.createCommentVNode("",!0)])])]),_:1},8,["data"])])}],["__scopeId","data-v-b71a4607"]]),hs={name:"Xg",components:{SoccerChalkboard:us},props:{},data:()=>({categories:Ha}),computed:{...o.mapState("nextGeneral",["usePastSeasonId","pastSeasonId","gameId"]),...o.mapState("general",["booleanIsStatisticModalOpen"]),...o.mapGetters("xgGeneral",["playsLocal","goalsQtyLocal","headQtyLocal","shotsOnGoalQtyLocal","penaltiesQtyLocal","xGLocal"]),...o.mapGetters("nextGeneral",["getSeasonId","homeTeam","visitingTeam","showPostMatchData"]),...o.mapGetters("loginGeneral",["getPremiumAccount","getIsGolstats"]),...o.mapGetters("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:"Remates con cabeza",value:this.headQtyLocal},{title:"Penales",value:this.penaltiesQtyLocal},{title:"Goles esperados (xG)",value:this.xGLocal}]}},watch:{visitingTeam:{deep:!0,handler(e){e&&this.fillXgPlays()}},showPostMatchData:{handler(e,t){e!==t&&this.fillXgPlays()}}},methods:{...o.mapMutations("general",["setVideoSrc","setVideoModalVisibility"]),...o.mapMutations("xgGeneral",["setTeamSelected"]),...o.mapActions("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()}},vs=e=>(t.pushScopeId("data-v-e83f1722"),e=e(),t.popScopeId(),e),fs={class:"xg-container"},_s=vs(()=>t.createElementVNode("div",{class:"title"},"Goles esperados (xG)",-1)),bs={class:"xg-container__field"},Ss={class:"xg-container__info"},Ts={class:"table"},ws={class:"table__row"},ks={class:"table__row__title"},Cs={class:"table__row__value"},Vs=["src"],Ps={class:"table__row"},Is={class:"table__row__title"},Ns={class:"table__row__value"},Es={class:"table__row"},xs={class:"table__row__title"},Bs={class:"table__row__value"},Fs={class:"table__row"},Gs={class:"table__row__title"},zs={class:"table__row__value"},As={class:"table__row"},Ds={class:"table__row__title"},Ls={class:"table__row__value"},$s=vs(()=>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));const Ms=M(hs,[["render",function(e,a,i,s,o,l){const n=t.resolveComponent("SoccerChalkboard");return t.openBlock(),t.createElementBlock("div",fs,[_s,t.createElementVNode("div",bs,[t.createVNode(n,{plays:e.playsLocal,categories:o.categories,team:e.team},null,8,["plays","categories","team"])]),t.createElementVNode("div",Ss,[t.createElementVNode("div",Ts,[t.createElementVNode("div",ws,[t.createElementVNode("div",ks,t.toDisplayString(l.gxInfoItems[0].title),1),t.createElementVNode("div",Cs,[t.createTextVNode(t.toDisplayString(l.gxInfoItems[0].value),1),t.createElementVNode("img",{class:"img-abs",src:l.stringSelectedTeamLogo},null,8,Vs)])]),t.createElementVNode("div",Ps,[t.createElementVNode("div",Is,t.toDisplayString(l.gxInfoItems[1].title),1),t.createElementVNode("div",Ns,t.toDisplayString(l.gxInfoItems[1].value),1)]),t.createElementVNode("div",Es,[t.createElementVNode("div",xs,t.toDisplayString(l.gxInfoItems[2].title),1),t.createElementVNode("div",Bs,t.toDisplayString(l.gxInfoItems[2].value),1)]),t.createElementVNode("div",Fs,[t.createElementVNode("div",Gs,t.toDisplayString(l.gxInfoItems[3].title),1),t.createElementVNode("div",zs,t.toDisplayString(l.gxInfoItems[3].value),1)]),t.createElementVNode("div",As,[t.createElementVNode("div",Ds,t.toDisplayString(l.gxInfoItems[4].title),1),t.createElementVNode("div",Ls,t.toDisplayString(l.gxInfoItems[4].value),1)])]),$s])])}],["__scopeId","data-v-e83f1722"]]),Os={name:"Xg",components:{SoccerChalkboard:us},props:{},data:()=>({categories:Ha}),computed:{...o.mapState("nextGeneral",["usePastSeasonId","pastSeasonId","gameId"]),...o.mapState("general",["booleanIsStatisticModalOpen"]),...o.mapGetters("xgGeneral",["playsAway","goalsQtyAway","shotsOnGoalQtyAway","headQtyAway","penaltiesQtyAway","xGAway"]),...o.mapGetters("nextGeneral",["getSeasonId","homeTeam","visitingTeam","showPostMatchData"]),...o.mapGetters("loginGeneral",["getPremiumAccount","getIsGolstats"]),...o.mapGetters("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:"Remates con cabeza",value:this.headQtyAway},{title:"Penales",value:this.penaltiesQtyAway},{title:"Goles esperados (xG)",value:this.xGAway}]}},watch:{visitingTeam:{deep:!0,handler(e){e&&this.fillXgPlays()}},showPostMatchData:{handler(e,t){e!==t&&this.fillXgPlays()}}},methods:{...o.mapMutations("general",["setVideoSrc","setVideoModalVisibility"]),...o.mapMutations("xgGeneral",["setTeamSelected"]),...o.mapActions("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()}},Rs=e=>(t.pushScopeId("data-v-bd4b1a0d"),e=e(),t.popScopeId(),e),Ws={class:"xg-container"},js=Rs(()=>t.createElementVNode("div",{class:"title"},"Goles esperados (xG)",-1)),qs={class:"xg-container__field"},Hs={class:"xg-container__info"},Js={class:"table"},Us={class:"table__row"},Zs={class:"table__row__title"},Xs={class:"table__row__value"},Ys=["src"],Qs={class:"table__row"},Ks={class:"table__row__title"},eo={class:"table__row__value"},to={class:"table__row"},ao={class:"table__row__title"},io={class:"table__row__value"},so={class:"table__row"},oo={class:"table__row__title"},lo={class:"table__row__value"},no={class:"table__row"},ro={class:"table__row__title"},co={class:"table__row__value"},mo=Rs(()=>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));const po=M(Os,[["render",function(e,a,i,s,o,l){const n=t.resolveComponent("SoccerChalkboard");return t.openBlock(),t.createElementBlock("div",Ws,[js,t.createElementVNode("div",qs,[t.createVNode(n,{plays:e.playsAway,categories:o.categories,team:e.team},null,8,["plays","categories","team"])]),t.createElementVNode("div",Hs,[t.createElementVNode("div",Js,[t.createElementVNode("div",Us,[t.createElementVNode("div",Zs,t.toDisplayString(l.gxInfoItems[0].title),1),t.createElementVNode("div",Xs,[t.createTextVNode(t.toDisplayString(l.gxInfoItems[0].value),1),t.createElementVNode("img",{class:"img-abs",src:l.stringSelectedTeamLogo},null,8,Ys)])]),t.createElementVNode("div",Qs,[t.createElementVNode("div",Ks,t.toDisplayString(l.gxInfoItems[1].title),1),t.createElementVNode("div",eo,t.toDisplayString(l.gxInfoItems[1].value),1)]),t.createElementVNode("div",to,[t.createElementVNode("div",ao,t.toDisplayString(l.gxInfoItems[2].title),1),t.createElementVNode("div",io,t.toDisplayString(l.gxInfoItems[2].value),1)]),t.createElementVNode("div",so,[t.createElementVNode("div",oo,t.toDisplayString(l.gxInfoItems[3].title),1),t.createElementVNode("div",lo,t.toDisplayString(l.gxInfoItems[3].value),1)]),t.createElementVNode("div",no,[t.createElementVNode("div",ro,t.toDisplayString(l.gxInfoItems[4].title),1),t.createElementVNode("div",co,t.toDisplayString(l.gxInfoItems[4].value),1)])]),mo])])}],["__scopeId","data-v-bd4b1a0d"]]);let yo=null;const go={name:"XgMain",components:{GSCSwitchRadio:y.GSCSwitchRadio,SoccerChalkboardLocal:vi,SoccerChalkboardAway:Ri,SoccerChalkboardLocalMobile:Ms,SoccerChalkboardAwayMobile:po},props:{game:{type:Number,default:0}},data:()=>({gamesContainerWidth:0,teamSelect:"local",teamDefault:""}),computed:{...o.mapGetters("nextGeneral",["homeTeam","visitingTeam"])},watch:{},methods:{onChangeTeam(e){e instanceof Object||(this.teamSelect=e),this.teamDefault=e},setUpResizeObserver(){if(!window.ResizeObserver)throw new Error("Resize observer not supported!");yo=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<680?this.movil=!0:this.movil=!1}),yo.observe(this.$refs.gamesContainer)}},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))}},uo={class:"xg",ref:"gamesContainer"},ho={key:0,class:"selector-team"};const vo=M(go,[["render",function(e,a,i,s,o,l){const n=t.resolveComponent("GSCSwitchRadio"),r=t.resolveComponent("SoccerChalkboardLocal"),d=t.resolveComponent("SoccerChalkboardAway"),c=t.resolveComponent("SoccerChalkboardLocalMobile"),m=t.resolveComponent("SoccerChalkboardAwayMobile");return t.openBlock(),t.createElementBlock("div",uo,[o.gamesContainerWidth<655?(t.openBlock(),t.createElementBlock("div",ho,[t.createVNode(n,{width:"42px",height:"20px",heightCircle:"16px",widthCircle:"16px","circle-color-switch":"#cbee6b",valueDefault:o.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:l.onChangeTeam},null,8,["valueDefault","text-option-left","text-option-right","icon-a","icon-b","onChange"])])):t.createCommentVNode("",!0),o.gamesContainerWidth>=655?(t.openBlock(),t.createBlock(r,{key:1,class:"local"})):t.createCommentVNode("",!0),o.gamesContainerWidth>=655?(t.openBlock(),t.createBlock(d,{key:2,class:"away"})):t.createCommentVNode("",!0),o.gamesContainerWidth<655&&o.teamSelect==e.homeTeam.colloquial_name?(t.openBlock(),t.createBlock(c,{key:3})):t.createCommentVNode("",!0),o.gamesContainerWidth<655&&o.teamSelect==e.visitingTeam.colloquial_name?(t.openBlock(),t.createBlock(m,{key:4})):t.createCommentVNode("",!0)],512)}],["__scopeId","data-v-20bd873f"]]),fo=e=>(t.pushScopeId("data-v-bb4319af"),e=e(),t.popScopeId(),e),_o={class:"statistics-main"},bo={class:"statistics-main__header"},So={class:"statistics-main__header__filter"},To={key:0,class:"statistics-main__header__live-switch"},wo=fo(()=>t.createElementVNode("div",null,"Este partido",-1)),ko=fo(()=>t.createElementVNode("div",null,"Acumulado",-1)),Co={class:"statistics-main__header__info"},Vo=fo(()=>t.createElementVNode("br",null,null,-1)),Po=t.defineComponent({name:"StatisticsMain",components:{TrendLive:De,Comparative:ta,Distribution:da,GSCSlider:p.GSCSlider,XG:vo}}),Io=M(Object.assign(Po,{props:{game:{type:Object,default:()=>({gameId:79623,seasonId:1772,status:1,dateTimeUTC:"2023-10-01T22:20:00Z",homeTeam:{logo:"https://golstatsimages.blob.core.windows.net/teams-80/18.png",team_id:10,provisional_logo:"https://golstatsimages.blob.core.windows.net/teams-provisional/18.png",colloquial_name:"Toluca",acronym:"TOL",team_name:"Toluca"},awayTeam:{logo:"https://golstatsimages.blob.core.windows.net/teams-80/1.png",team_id:1,provisional_logo:"https://golstatsimages.blob.core.windows.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 i=e,s=o.useStore(),l=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({}),r=t.ref(null),d=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"}]),c=t.ref(d.value[0]),m=t.ref(!1),y=t.ref(0),g=t.computed(()=>{const e=(new Date).getTime(),t=new Date(i.game.dateTimeUTC).getTime()-e,a=Math.floor(t/864e5),s=Math.floor(t%864e5/36e5),o=Math.floor(t%36e5/6e4),l=Math.floor(t%6e4/1e3);let n="";return l>0&&(n=1===l?l+" segundo":l+" segundos"),o>0&&(n=1===o?o+" minuto":o+" minutos"),s>0&&(n=1===s?s+" hora":s+" horas"),a>0&&(n=1===a?a+" día":a+" días"),n}),u=t.computed(()=>"st4"===c.value.id||(i.game.is_live||0===i.game.game_status)&&!s.state.nextGeneral.showLiveData?"Jugadas destacadas durante el torneo":1===i.game.game_status||(i.game.is_live||0===i.game.game_status)&&s.state.nextGeneral.showLiveData?"Jugadas destacadas durante este partido":"");function h(e){1===i.game.is_live||0===i.game.game_status?e.seasonId=i.game.seasonId:s.state.nextGeneral.usePastSeasonId&&(e.seasonId=s.state.nextGeneral.pastSeasonId),e.isLiveAccumulated=m.value,a("openmedia",e)}return t.watch(()=>i.game,e=>{const t={...e};i.game.is_live||$(),async function(e){try{n.value.gameId!==e.gameId&&(n.value=e,await s.dispatch("nextGeneral/cleanStats"),await s.dispatch("nextGeneral/checkState",{gameId:e.gameId,currentSeasonId:e.seasonId,isTeamsAnalysis:!0,defaultFilter:r.value,gameInfo:e}))}catch(t){throw new Error(t)}}(t),y.value++},{deep:!0,immediate:!0}),t.watch(()=>m.value,e=>{s.commit("nextGeneral/updateShowLiveData",!e)},{immediate:!0}),t.onUnmounted(()=>{a("resetSubsection")}),t.onMounted(()=>{"Comparativa"===i.subsection&&(c.value.id="st1",c.value.name="Comparativa",c.value.componentName="Comparative")}),s.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}),(a,i)=>(t.openBlock(),t.createElementBlock("div",_o,[t.createElementVNode("div",bo,[t.createVNode(t.unref(p.GSCSlider),{backgroundColor:"none",arrows:!1},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(d.value,e=>(t.openBlock(),t.createElementBlock("div",{key:e.id,class:"game-time-line__options__option"},[t.createVNode(O,t.mergeProps(l.value,{text:e.name,"is-active":c.value.id===e.id,onClick:t=>function(e){c.value=e}(e)}),null,16,["text","is-active","onClick"])]))),128))]),_:1}),t.withDirectives(t.createElementVNode("div",So,[t.createVNode(ge)],512),[[t.vShow,!1]]),e.game.is_live||0===e.game.game_status?t.withDirectives((t.openBlock(),t.createElementBlock("div",To,[wo,t.createElementVNode("div",null,[t.createVNode(ue,{modelValue:m.value,"onUpdate:modelValue":i[0]||(i[0]=e=>m.value=e)},null,8,["modelValue"])]),ko],512)),[[t.vShow,"st4"!==c.value.id]]):t.createCommentVNode("",!0),t.createElementVNode("div",Co,[4!==e.game.game_status||e.game.is_live?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(u.value),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(" Faltan "),t.createElementVNode("span",null,t.toDisplayString(g.value),1),t.createTextVNode(" para el inicio."),Vo,t.createTextVNode("Las estadísticas corresponden a sus promedios por partido del torneo "),t.createElementVNode("span",null,t.toDisplayString(e.seasonSelected.name),1)],64))])]),(t.openBlock(),t.createElementBlock("div",{class:"statistics-main__body",key:y.value},[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(c.value.componentName),{seasonSelected:{...e.seasonSelected},game:{...e.game},"tournament-type":t.unref(s).getters["gameGlobal/getTournamentType"],"can-play-videos":e.canPlayVideos,"play-videos-privileges":e.playVideosPrivileges,onOpenmedia:h},null,40,["seasonSelected","game","tournament-type","can-play-videos","play-videos-privileges"]))]))]))}}),[["__scopeId","data-v-bb4319af"]]),No={class:"alineaciones-container"},Eo=M({__name:"GSCLineupsMain",props:{tournamentSelected:{type:Object,default:()=>({})},isWidget:{type:Boolean,default:!1},game:{type:Object,default:()=>({gameId:79623,seasonId:1772,status:1,dateTimeUTC:"2023-10-01T22:20:00Z",is_live:0,homeTeam:{logo:"https://golstatsimages.blob.core.windows.net/teams-80/18.png",team_id:10,provisional_logo:"https://golstatsimages.blob.core.windows.net/teams-provisional/18.png",colloquial_name:"Toluca",acronym:"TOL",team_name:"Toluca"},awayTeam:{logo:"https://golstatsimages.blob.core.windows.net/teams-80/1.png",team_id:1,provisional_logo:"https://golstatsimages.blob.core.windows.net/teams-provisional/1.png",colloquial_name:"Chivas",acronym:"CHI",team_name:"Guadalajara"}})},socket:{type:Object,default:()=>({})}},emits:["onOpenProfile"],setup(e,{emit:a}){const i=e,s=t.ref(0);function o(e){i.isWidget||a("onOpenProfile",e)}return t.watch(()=>i.game,e=>{s.value=e.gameId},{deep:!0,immediate:!0}),(a,i)=>(t.openBlock(),t.createElementBlock("div",No,[4!==e.game.status||e.game.is_live?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[Object.keys(e.game).length>0?(t.openBlock(),t.createBlock(t.unref(g.GSCLineups),{"is-female":1==e.tournamentSelected.is_female,socket:e.socket,key:s.value,type:"3D","is-live":1==e.game.is_live,"selected-option":"Postmatch",game:{game_id:e.game.gameId,season_id:e.game.seasonId,prematch:!1},onOnOpenProfile:o},null,8,["is-female","socket","is-live","game"])):t.createCommentVNode("",!0)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[Object.keys(e.game).length>0?(t.openBlock(),t.createBlock(t.unref(g.GSCLineups),{socket:e.socket,key:s.value,type:"3D","is-female":1==e.tournamentSelected.is_female,"is-live":1==e.game.is_live,"selected-option":"Historicos",game:{game_id:e.game.gameId,season_id:e.game.seasonId,prematch:!1},onOnOpenProfile:o},null,8,["socket","is-female","is-live","game"])):t.createCommentVNode("",!0)],64))]))}},[["__scopeId","data-v-f877232a"]]),xo={class:"datagame-container"},Bo=M({__name:"GSCDatosGSMain",props:{isWidget:{type:Boolean,default:!1},teamWidget:{type:Number,default:0},game:{type:Object,default:()=>({gameId:79623,seasonId:1772,status:1,dateTimeUTC:"2023-10-01T22:20:00Z",homeTeam:{logo:"https://golstatsimages.blob.core.windows.net/teams-80/18.png",team_id:10,provisional_logo:"https://golstatsimages.blob.core.windows.net/teams-provisional/18.png",colloquial_name:"Toluca",acronym:"TOL",team_name:"Toluca"},awayTeam:{logo:"https://golstatsimages.blob.core.windows.net/teams-80/1.png",team_id:1,provisional_logo:"https://golstatsimages.blob.core.windows.net/teams-provisional/1.png",colloquial_name:"Chivas",acronym:"CHI",team_name:"Guadalajara"}})},playVideosPrivileges:{type:Object,default:null}},emits:["openmedia"],setup(e,{emit:a}){const i=e,s=t.ref(0);function o(e){a("openmedia",e)}return t.watch(()=>i.game,e=>{s.value=e.gameId},{deep:!0,immediate:!0}),(a,i)=>(t.openBlock(),t.createElementBlock("div",xo,[4==e.game.game_status?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[Object.keys(e.game).length>0?(t.openBlock(),t.createBlock(t.unref(u.GSCDataGames),{key:s.value,type:0,"is-widget":e.isWidget,"team-widget":e.teamWidget,data:{season:e.game.seasonId,game:e.game.gameId,home_team_id:e.game.homeTeam.team_id,away_team_id:e.game.awayTeam.team_id,team_view:1},"play-videos-privileges":e.playVideosPrivileges,onOpenmedia:o},null,8,["is-widget","team-widget","data","play-videos-privileges"])):t.createCommentVNode("",!0)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[Object.keys(e.game).length>0?(t.openBlock(),t.createBlock(t.unref(u.GSCDataGames),{"is-widget":e.isWidget,"team-widget":e.teamWidget,key:s.value,type:1,data:{season:e.game.seasonId,game:e.game.gameId,home_team_id:e.game.homeTeam.team_id,away_team_id:e.game.awayTeam.team_id,team_view:2},"play-videos-privileges":e.playVideosPrivileges,onOpenmedia:o},null,8,["is-widget","team-widget","data","play-videos-privileges"])):t.createCommentVNode("",!0)],64))]))}},[["__scopeId","data-v-b8306bed"]]),Fo={class:"datagame-container"},Go=M({__name:"GSCVideoGame",props:{isWidget:{type:Boolean,default:!1},teamWidget:{type:Number,default:0},game:{type:Object,default:()=>({gameId:79623,seasonId:1772,status:1,dateTimeUTC:"2023-10-01T22:20:00Z",homeTeam:{logo:"https://golstatsimages.blob.core.windows.net/teams-80/18.png",team_id:10,provisional_logo:"https://golstatsimages.blob.core.windows.net/teams-provisional/18.png",colloquial_name:"Toluca",acronym:"TOL",team_name:"Toluca"},awayTeam:{logo:"https://golstatsimages.blob.core.windows.net/teams-80/1.png",team_id:1,provisional_logo:"https://golstatsimages.blob.core.windows.net/teams-provisional/1.png",colloquial_name:"Chivas",acronym:"CHI",team_name:"Guadalajara"}})},videoPrivilegesPlayingAs:{type:Set,default:()=>new Set([1,2])},playVideosPrivileges:{type:Object,default:null},timeLiveVideoGoals:{type:Number,default:6e4},tournamentSelected:{type:Object,default:()=>({})},timeLiveVideoBestPlays:{type:Number,default:6e4},timeLiveVideoThisGame:{type:Number,default:6e4},canPlayVideos:{type:Boolean,default:!1},timeLiveVideoSpecificPlays:{type:Number,default:6e4}},emits:["openmedia","intervalid"],setup(e,{emit:a}){const i=e,s=t.ref(0);function o(e){0==i.game.is_live&&(e.seasonId=i.game.regularSeasonId),a("openmedia",e)}function l(e){a("openmedia",e)}function n(e){a("intervalid",e)}return t.watch(()=>i.game,e=>{s.value=e.gameId},{deep:!0,immediate:!0}),(a,i)=>(t.openBlock(),t.createElementBlock("div",Fo,[1==e.game.is_live||0==e.game.game_status?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[Object.keys(e.game).length>0?(t.openBlock(),t.createBlock(t.unref(h.GSCVideoGame),{onOpenmedia:l,key:s.value,"can-play-videos":e.canPlayVideos,"tournament-selected":e.tournamentSelected,onIntervalid:n,type:"Live","is-widget":e.isWidget,"team-widget":e.teamWidget,"time-live-video-goals":e.timeLiveVideoGoals,"time-live-video-best-plays":e.timeLiveVideoBestPlays,"time-live-video-this-game":e.timeLiveVideoThisGame,"time-live-video-specific-plays":e.timeLiveVideoSpecificPlays,config:{season_id:e.game.seasonId,game:e.game.gameId,game_status:e.game.game_status},"play-videos-privileges":e.playVideosPrivileges,"video-privileges-playing-as":e.videoPrivilegesPlayingAs},null,8,["can-play-videos","tournament-selected","is-widget","team-widget","time-live-video-goals","time-live-video-best-plays","time-live-video-this-game","time-live-video-specific-plays","config","play-videos-privileges","video-privileges-playing-as"])):t.createCommentVNode("",!0)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[4===e.game.game_status?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[Object.keys(e.game).length>0?(t.openBlock(),t.createBlock(t.unref(h.GSCVideoGame),{onOpenmedia:o,key:s.value,"is-widget":e.isWidget,"team-widget":e.teamWidget,"can-play-videos":e.canPlayVideos,"tournament-selected":e.tournamentSelected,type:"Prematch",config:{season_id:e.game.seasonId,game:e.game.gameId,game_status:e.game.game_status,homeTeamId:e.game.homeTeam.team_id,awayTeamId:e.game.awayTeam.team_id},"play-videos-privileges":e.playVideosPrivileges,"video-privileges-playing-as":e.videoPrivilegesPlayingAs},null,8,["is-widget","team-widget","can-play-videos","tournament-selected","config","play-videos-privileges","video-privileges-playing-as"])):t.createCommentVNode("",!0)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[Object.keys(e.game).length>0?(t.openBlock(),t.createBlock(t.unref(h.GSCVideoGame),{onOpenmedia:o,key:s.value,"can-play-videos":e.canPlayVideos,"is-widget":e.isWidget,"team-widget":e.teamWidget,"tournament-selected":e.tournamentSelected,type:"Postmatch",config:{season_id:e.game.seasonId,game:e.game.gameId,game_status:e.game.game_status,homeTeamId:e.game.homeTeam.team_id,awayTeamId:e.game.awayTeam.team_id},"play-videos-privileges":e.playVideosPrivileges,"video-privileges-playing-as":e.videoPrivilegesPlayingAs},null,8,["can-play-videos","is-widget","team-widget","tournament-selected","config","play-videos-privileges","video-privileges-playing-as"])):t.createCommentVNode("",!0)],64))],64))]))}},[["__scopeId","data-v-db24fc49"]]),zo={components:{},props:{width:{type:Number,default:0},type:{type:Number,default:0},plays:{type:Object,default:()=>{}},game:{type:Object,default:()=>{}}},data:()=>({}),computed:{},methods:{handleOutsideClick(){this.$emit("close-modal-events-live"),document.body.classList.remove("no-scroll")}},created(){document.body.classList.add("no-scroll")}},Ao=e=>(t.pushScopeId("data-v-8dd09bf5"),e=e(),t.popScopeId(),e),Do={class:"home_team-events"},Lo={class:"home_team-events__title"},$o=["src"],Mo=Ao(()=>t.createElementVNode("img",{width:"13",height:"13",src:"https://golstatsimages.blob.core.windows.net/todoelfut/players-goals-con-goles.png"},null,-1)),Oo=Ao(()=>t.createElementVNode("img",{width:"13",height:"13",src:"https://golstatsimages.blob.core.windows.net/todoelfut/red_card.png"},null,-1)),Ro=Ao(()=>t.createElementVNode("img",{width:"13",height:"13",src:"https://golstatsimages.blob.core.windows.net/todoelfut/yellow_card.png"},null,-1)),Wo={class:"away_team-events"},jo={class:"away_team-events__title"},qo=["src"],Ho=Ao(()=>t.createElementVNode("img",{width:"13",height:"13",src:"https://golstatsimages.blob.core.windows.net/todoelfut/players-goals-con-goles.png"},null,-1)),Jo=Ao(()=>t.createElementVNode("img",{width:"13",height:"13",src:"https://golstatsimages.blob.core.windows.net/todoelfut/red_card.png"},null,-1)),Uo=Ao(()=>t.createElementVNode("img",{width:"13",height:"13",src:"https://golstatsimages.blob.core.windows.net/todoelfut/yellow_card.png"},null,-1)),Zo={class:"home_team-events"},Xo={class:"home_team-events__title"},Yo=["src"],Qo=Ao(()=>t.createElementVNode("img",{width:"13",height:"13",src:"https://golstatsimages.blob.core.windows.net/todoelfut/players-goals-con-goles.png"},null,-1)),Ko=Ao(()=>t.createElementVNode("img",{width:"13",height:"13",src:"https://golstatsimages.blob.core.windows.net/todoelfut/red_card.png"},null,-1)),el=Ao(()=>t.createElementVNode("img",{width:"13",height:"13",src:"https://golstatsimages.blob.core.windows.net/todoelfut/yellow_card.png"},null,-1)),tl={class:"away_team-events"},al={class:"away_team-events__title"},il=["src"],sl=Ao(()=>t.createElementVNode("img",{width:"13",height:"13",src:"https://golstatsimages.blob.core.windows.net/todoelfut/players-goals-con-goles.png"},null,-1)),ol=Ao(()=>t.createElementVNode("img",{width:"13",height:"13",src:"https://golstatsimages.blob.core.windows.net/todoelfut/red_card.png"},null,-1)),ll=Ao(()=>t.createElementVNode("img",{width:"13",height:"13",src:"https://golstatsimages.blob.core.windows.net/todoelfut/yellow_card.png"},null,-1));const nl=M(zo,[["render",function(e,a,i,s,o,l){return t.openBlock(),t.createElementBlock("div",null,[t.createElementVNode("div",{class:"modal-events",onClick:a[2]||(a[2]=(...e)=>l.handleOutsideClick&&l.handleOutsideClick(...e))},[t.createElementVNode("div",{class:"modal-events__modal",onClick:a[1]||(a[1]=t.withModifiers(()=>{},["stop"]))},[Object.keys(i.plays).length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(i.width>540?"container-events":i.width>420?"container-events-movil":i.width>350?"container-events-movilxl":"container-events-movilsm")},[t.createElementVNode("button",{class:"close-button",onClick:a[0]||(a[0]=(...e)=>l.handleOutsideClick&&l.handleOutsideClick(...e))},"×"),0==i.type?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",Do,[t.createElementVNode("div",Lo,[t.createElementVNode("img",{width:"24",height:"24",src:i.plays[i.game.home_team.team_id].team.logo},null,8,$o),t.createElementVNode("div",null,t.toDisplayString(i.plays[i.game.home_team.team_id].team.name),1)]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(Object.keys(i.plays[i.game.home_team.team_id].goals),(e,a)=>(t.openBlock(),t.createElementBlock("div",{key:a,class:t.normalizeClass(i.width>420?"home_team-events__event":"home_team-events__eventsm")},[Mo,t.createElementVNode("div",null,t.toDisplayString(i.plays[i.game.home_team.team_id].goals[e].name),1),t.createElementVNode("div",null,t.toDisplayString(i.plays[i.game.home_team.team_id].goals[e].event.map(e=>`${e}'`).join(", ")),1)],2))),128)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(Object.keys(i.plays[i.game.home_team.team_id].red),(e,a)=>(t.openBlock(),t.createElementBlock("div",{key:a,class:t.normalizeClass(i.width>420?"home_team-events__event":"home_team-events__eventsm")},[Oo,t.createElementVNode("div",null,t.toDisplayString(i.plays[i.game.home_team.team_id].red[e].name),1),t.createElementVNode("div",null,t.toDisplayString(i.plays[i.game.home_team.team_id].red[e].event.map(e=>`${e}'`).join(", ")),1)],2))),128)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(Object.keys(i.plays[i.game.home_team.team_id].yellow),(e,a)=>(t.openBlock(),t.createElementBlock("div",{key:a,class:t.normalizeClass(i.width>420?"home_team-events__event":"home_team-events__eventsm")},[Ro,t.createElementVNode("div",null,t.toDisplayString(i.plays[i.game.home_team.team_id].yellow[e].name),1),t.createElementVNode("div",null,t.toDisplayString(i.plays[i.game.home_team.team_id].yellow[e].event.map(e=>`${e}'`).join(", ")),1)],2))),128))]),t.createElementVNode("div",Wo,[t.createElementVNode("div",jo,[t.createElementVNode("div",null,t.toDisplayString(i.plays[i.game.visiting_team.team_id].team.name),1),t.createElementVNode("img",{width:"24",height:"24",src:i.plays[i.game.visiting_team.team_id].team.logo},null,8,qo)]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(Object.keys(i.plays[i.game.visiting_team.team_id].goals),(e,a)=>(t.openBlock(),t.createElementBlock("div",{key:a,class:t.normalizeClass(i.width>420?"away_team-events__event":"away_team-events__eventsm")},[t.createElementVNode("div",null,t.toDisplayString(i.plays[i.game.visiting_team.team_id].goals[e].event.map(e=>`${e}'`).join(", ")),1),t.createElementVNode("div",null,t.toDisplayString(i.plays[i.game.visiting_team.team_id].goals[e].name),1),Ho],2))),128)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(Object.keys(i.plays[i.game.visiting_team.team_id].red),(e,a)=>(t.openBlock(),t.createElementBlock("div",{key:a,class:t.normalizeClass(i.width>420?"away_team-events__event":"away_team-events__eventsm")},[t.createElementVNode("div",null,t.toDisplayString(i.plays[i.game.visiting_team.team_id].red[e].event.map(e=>`${e}'`).join(", ")),1),t.createElementVNode("div",null,t.toDisplayString(i.plays[i.game.visiting_team.team_id].red[e].name),1),Jo],2))),128)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(Object.keys(i.plays[i.game.visiting_team.team_id].yellow),(e,a)=>(t.openBlock(),t.createElementBlock("div",{key:a,class:t.normalizeClass(i.width>420?"away_team-events__event":"away_team-events__eventsm")},[t.createElementVNode("div",null,t.toDisplayString(i.plays[i.game.visiting_team.team_id].yellow[e].event.map(e=>`${e}'`).join(", ")),1),t.createElementVNode("div",null,t.toDisplayString(i.plays[i.game.visiting_team.team_id].yellow[e].name),1),Uo],2))),128))])],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("div",Zo,[t.createElementVNode("div",Xo,[t.createElementVNode("img",{width:"24",height:"24",src:i.plays.home_team.logo},null,8,Yo),t.createElementVNode("div",null,t.toDisplayString(i.plays.home_team.acronym),1)]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i.plays.plays.home_goals_minutes,(e,a)=>(t.openBlock(),t.createElementBlock("div",{key:a,class:t.normalizeClass(i.width>420?"home_team-events__event":"home_team-events__eventsm")},[Qo,t.createElementVNode("div",null,t.toDisplayString(e),1)],2))),128)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i.plays.plays.home_red_cards_minutes,(e,a)=>(t.openBlock(),t.createElementBlock("div",{key:a,class:t.normalizeClass(i.width>420?"home_team-events__event":"home_team-events__eventsm")},[Ko,t.createElementVNode("div",null,t.toDisplayString(e),1)],2))),128)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i.plays.plays.home_yellow_cards_minutes,(e,a)=>(t.openBlock(),t.createElementBlock("div",{key:a,class:t.normalizeClass(i.width>420?"home_team-events__event":"home_team-events__eventsm")},[el,t.createElementVNode("div",null,t.toDisplayString(e),1)],2))),128))]),t.createElementVNode("div",tl,[t.createElementVNode("div",al,[t.createElementVNode("div",null,t.toDisplayString(i.plays.visiting_team.acronym),1),t.createElementVNode("img",{width:"24",height:"24",src:i.plays.visiting_team.logo},null,8,il)]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i.plays.plays.visiting_goals_minutes,(e,a)=>(t.openBlock(),t.createElementBlock("div",{key:a,class:t.normalizeClass(i.width>420?"away_team-events__event":"away_team-events__eventsm")},[t.createElementVNode("div",null,t.toDisplayString(e),1),sl],2))),128)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i.plays.plays.away_red_cards_minutes,(e,a)=>(t.openBlock(),t.createElementBlock("div",{key:a,class:t.normalizeClass(i.width>420?"away_team-events__event":"away_team-events__eventsm")},[t.createElementVNode("div",null,t.toDisplayString(e),1),ol],2))),128)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i.plays.plays.away_yellow_cards_minutes,(e,a)=>(t.openBlock(),t.createElementBlock("div",{key:a,class:t.normalizeClass(i.width>420?"away_team-events__event":"away_team-events__eventsm")},[t.createElementVNode("div",null,t.toDisplayString(e),1),ll],2))),128))])],64))],2)):t.createCommentVNode("",!0)])])])}],["__scopeId","data-v-8dd09bf5"]]),rl={components:{GSCSlider:p.GSCSlider},props:{isWidget:{type:Boolean,default:!1},teamWidget:{type:Number,default:0},timeLiveProminentData:{type:Number,default:6e4},game:{type:Object,default:()=>{}},canPlayVideos:{type:Boolean,default:!1}},watch:{game:{deep:!0,immediate:!0,handler(e){1==e.is_live?(this.getDataProminent(e.gameId),setInterval(()=>{this.getDataProminent(e.gameId)},this.timeLiveProminentData)):1==e.game_status||0==e.game_status?this.getDataProminent(e.gameId):this.getDataProminentPrematch(e.gameId)}}},data:()=>({lastDataProminentUrl:"",dataProminent:[],dataProminentAll:[],tokenPremium:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"}),computed:{},methods:{onclickPlayVideos(e){let t={seasonId:1==this.game.is_live?this.dataProminentAll.season_id:this.game.regularSeasonId,mainSectionType:1,playListType:1==e.data.is_team?3:2,categoryIds:e.data.categories,gameIdsToFilter:1==this.game.game_status?[this.dataProminentAll._id]:null,playerIds:1!=e.data.is_team?[e.data.player_id]:[],goalkeeperIds:[],teamId:1==e.data.is_team?e.data.team_id:0,matchResult:[1,2,3],playData:{},advancedFilter:{playListTitle:""}};this.$emit("openmedia",t)},hasDecimal(e){if("number"!=typeof e)return!1;return e.toString().includes(".")},formatNumber(e){if("number"==typeof e){if(this.hasDecimal(e)){const t=Math.round(10*e)/10;return Number.isInteger(t)?t.toString()+"%":t.toFixed(1)+"%"}return e+"%"}return"0"},formatNumber2(e){if("number"==typeof e){if(this.hasDecimal(e)){const t=Math.round(10*e)/10;return Number.isInteger(t)?t.toString()+"%":t.toFixed(1)+"%"}return e}return"0"},textoConNegritas(e){if(!e)return"";const t=e.split(/(\*.*?\*)/g).filter(e=>""!==e.trim());let a=Math.ceil(t.length/2),i="";return t.forEach((e,t)=>{t===a&&(i+="<br/>"),e.startsWith("*")&&e.endsWith("*")?i+=`<span class="text-bold-prominent">${e.slice(1,-1)}</span>`:""!==e.trim()&&(i+=`<span class="text-prominent">${e}</span>`)}),i},async getDataProminentPrematch(){try{let e="";if(e=this.isWidget&&0!=this.teamWidget?"https://1qvtl1japi.execute-api.us-east-2.amazonaws.com/prod/highlights/seasons/"+this.game.seasonId+"/games/"+this.game.gameId+"/prematch?t="+this.teamWidget:"https://1qvtl1japi.execute-api.us-east-2.amazonaws.com/prod/highlights/seasons/"+this.game.seasonId+"/games/"+this.game.gameId+"/prematch",this.lastDataProminentUrl!==e){this.$emit("loading",!0);const t=m.create({headers:{Authorization:`${this.tokenPremium}`}}),a=await t.get(e);this.dataProminent=a.data.data,this.dataProminentAll=a.data,this.$emit("loading",!1)}}catch(e){return Promise.reject(e)}},async getDataProminent(){try{let e="";if(e=this.isWidget&&0!=this.teamWidget?"https://1qvtl1japi.execute-api.us-east-2.amazonaws.com/prod/highlights/seasons/"+this.game.seasonId+"/games/"+this.game.gameId+"?t="+this.teamWidget:"https://1qvtl1japi.execute-api.us-east-2.amazonaws.com/prod/highlights/seasons/"+this.game.seasonId+"/games/"+this.game.gameId,this.lastDataProminentUrl!==e){this.$emit("loading",!0);const t=m.create({headers:{Authorization:`${this.tokenPremium}`}}),a=await t.get(e);this.dataProminent=a.data.data,this.dataProminentAll=a.data,setTimeout(()=>{this.$emit("loading",!1)},500)}}catch(e){return Promise.reject(e)}}}},dl={class:"data-prominent-game"},cl={class:"title-data"},ml={class:"item-data-text"},pl=["innerHTML"],yl={class:"contain-stats-control"},gl={key:0,class:"title-total"},ul={key:1,class:"item-total"},hl=["onClick"],vl={"data-v-83c7df16":"",style:{"margin-left":"-1px"},xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none"},fl=[(e=>(t.pushScopeId("data-v-86ae9323"),e=e(),t.popScopeId(),e))(()=>t.createElementVNode("path",{"data-v-83c7df16":"",d:"M6.6041 22.8554C6.42105 22.7512 6.26805 22.5956 6.1616 22.4053C6.05515 22.215 5.99927 21.9973 6.00001 21.7755V2.22137C6.00026 2.00039 6.0565 1.78362 6.16274 1.59409C6.26899 1.40456 6.42127 1.24936 6.6034 1.14499C6.78553 1.04062 6.9907 0.990981 7.1971 1.00135C7.4035 1.01171 7.60342 1.0817 7.77561 1.20386L21.4907 10.9821C21.6473 11.0935 21.7758 11.2446 21.8646 11.4219C21.9535 11.5992 22 11.7973 22 11.9985C22 12.1996 21.9535 12.3977 21.8646 12.575C21.7758 12.7523 21.6473 12.9034 21.4907 13.0148L7.77561 22.7954C7.60369 22.9178 7.40392 22.988 7.19761 22.9986C6.9913 23.0092 6.78617 22.9597 6.6041 22.8554ZM7.14347 21.7779L20.8585 11.9996L7.14347 21.7779Z",fill:"#CBEE6B"},null,-1))];const _l=M(rl,[["render",function(e,a,i,s,o,l){const n=t.resolveComponent("GSCSlider");return t.openBlock(),t.createElementBlock("div",dl,[t.createElementVNode("div",cl,[4!=i.game.game_status||1==i.game.is_live?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Este partido:")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("Este torneo:")],64))]),t.createVNode(n,{height:"115px",pxScroll:272,scrollColor:"none",arrowsPosition:"absolute",arrowsScrollHide:!0,arrowsHideOnNoScroll:!0,arrowsBackground:"rgba(255,255,255,.16)",arrowsContainerBgL:"linear-gradient(270deg, rgba(13,29,42,0.1) 0%, rgba(13,29,42,1) 70%)",arrowsContainerBgR:"linear-gradient(90deg, rgba(13,29,42,0.1) 0%, rgba(13,29,42,1) 70%)",arrowsMargin:0,arrowsRadius:"50%",arrowsBorder:"#ddd"},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(o.dataProminent,(e,a)=>(t.openBlock(),t.createElementBlock("div",{key:a,class:"item-prominent-data"},[t.createElementVNode("div",{class:"item-percent-shield",style:t.normalizeStyle("background:"+e.custom_colors.background_color)},[t.createElementVNode("div",{class:"item-team",style:t.normalizeStyle(e.player_id?"background-image:url(https://golstatsimages.blob.core.windows.net/players-profile/"+e.player_id+".png); border: solid 1.4px "+e.custom_colors.background_color:"background-image:url(https://golstatsimages.blob.core.windows.net/teams-80/"+e.team_id+".png);border: solid 1.4px "+e.custom_colors.background_color)},null,4),1==e.show_value?(t.openBlock(),t.createElementBlock("div",{key:0,class:"item-percent",style:t.normalizeStyle("color:"+e.custom_colors.font_color)},[1==e.is_percentage?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},["Distancia recorrida"==e.title?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(l.formatNumber(e.percent)),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(l.formatNumber(e.percent)),1)],64))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(e.total),1)],64))],4)):t.createCommentVNode("",!0)],4),t.createElementVNode("div",ml,[t.createElementVNode("div",{class:"container-text",innerHTML:l.textoConNegritas(e.description)},null,8,pl),t.createElementVNode("div",yl,[1==e.show_value?(t.openBlock(),t.createElementBlock("div",gl,"TOTAL: ")):t.createCommentVNode("",!0),1==e.show_value?(t.openBlock(),t.createElementBlock("div",ul,[1==e.is_percentage?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(l.formatNumber(e.percent)),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},["Distancia recorrida"==e.title?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(e.total)+" km",1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(e.total),1)],64))],64))])):t.createCommentVNode("",!0),i.canPlayVideos&&1==e.show_video&&1==e.show_value?(t.openBlock(),t.createElementBlock("div",{key:2,class:"btn-play",style:t.normalizeStyle("Productividad"==e.title?"margin-left: 0px !important;":""),onClick:t=>l.onclickPlayVideos({data:e})},[(t.openBlock(),t.createElementBlock("svg",vl,fl))],12,hl)):t.createCommentVNode("",!0)])])]))),128))]),_:1})])}],["__scopeId","data-v-86ae9323"]]),bl={components:{GSCCheckbox:r.GSCCheckbox},props:{timeLivePossesion:{type:Number,default:6e4},game:{type:Object,default:()=>{}},widthSection:{type:Number,default:0},teamSelected:{type:Object,default:()=>({})}},watch:{game:{deep:!0,immediate:!0,async handler(e){1==e.is_live?(this.getDataPosession(e.gameId),this.intervalIdPossesion=setInterval(()=>{this.getDataPosession(e.gameId)},this.timeLivePossesion),this.$emit("intervalidpossesion",this.intervalIdPossesion)):1==e.game_status||0==e.game_status?(this.getDataPosession(e.gameId),1==e.game_status&&(await this.$store.dispatch("nextGeneral/cleanStats"),await this.$store.dispatch("nextGeneral/checkState",{gameId:e.gameId,currentSeasonId:e.seasonId,isTeamsAnalysis:!0,defaultFilter:null,gameInfo:e}))):this.getDataPosessionPrematch(e.seasonId)}}},data:()=>({areInactiveVisible:!1,dataPosession:[],arrTeams:[],intervalIdPossesion:null,url:"https://rwtfu33saa.execute-api.us-east-2.amazonaws.com/prod/ta/posessions/",urlPrematch:"https://rwtfu33saa.execute-api.us-east-2.amazonaws.com/prod/ta/seasons/",tokenPremium:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",objectZeroValues:{numberValue:0,numberBarPercent:0}}),computed:{...o.mapState("nextGeneral",["gameForAnalysis","seasonId"]),...o.mapGetters("nextGeneral",["arrayFilledDataSortedByPriority"])},methods:{async getStatsData(e){await this.$store.dispatch("nextGeneral/cleanStats"),await this.$store.dispatch("nextGeneral/checkState",{gameId:e.gameId,currentSeasonId:e.seasonId,isTeamsAnalysis:!0,defaultFilter:null,gameInfo:e})},async getDataPosession(){try{const e=m.create({headers:{Authorization:`${this.tokenPremium}`}}),t=await e.get(this.url+this.game.gameId);this.dataPosession=t.data}catch(e){return Promise.reject(e)}},async getDataPosessionPrematch(e){try{const t=m.create({headers:{Authorization:`${this.tokenPremium}`}}),a=await t.get(this.urlPrematch+e+"/posessions");for(const e in a.data.teams)a.data.teams.hasOwnProperty(e)&&(this.arrTeams[e]=a.data.teams[e])}catch(t){return Promise.reject(t)}},onCheckInactive(e){this.areInactiveVisible=!!e},deleteDecimalZero(e){const t="string"==typeof e?parseFloat(e):e;if("number"!=typeof t||isNaN(t))return e;if(t%1==0)return t;return 0===t%1?Math.floor(t):t},formatNumbers:e=>e%1!=0?e.toFixed(1):e,hVal(e){return this.getTeamValue(e,this.gameForAnalysis,"homeTeam")},aVal(e){return this.getTeamValue(e,this.gameForAnalysis,"visitingTeam")},getTeamValue(e,t,a){if(!t.game_id)return this.objectZeroValues;const i=e.homeTeam.accomplished.avgPostGame+e.visitingTeam.accomplished.avgPostGame,s=e[a].accomplished.avgPostGame/i;return e[a].accomplished.avgPostGame?{numberValue:s<1?100*s:s,numberBarPercent:e[a].accomplished.avgPostGame/i}:this.objectZeroValues}},created(){this.$store.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})},beforeDestroy(){clearInterval(this.intervalIdPossesion)}},Sl=e=>(t.pushScopeId("data-v-d9615d31"),e=e(),t.popScopeId(),e),Tl={key:0,class:"field-posesion-prominent"},wl={key:0,class:"title"},kl={class:"info-data-item"},Cl={class:"item-indicador"},Vl={class:"item-indicador-value"},Pl={key:0},Il=Sl(()=>t.createElementVNode("div",{class:"item-indicador-img"},[t.createElementVNode("svg",{width:"8",height:"6",viewBox:"0 0 8 6",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M3.87817 5.92969L0.506034 0.0889796L7.2503 0.0889802L3.87817 5.92969Z",fill:"#38CFFF"})])],-1)),Nl={key:0,class:"inactiveInfo"},El={class:"info-data-item"},xl={class:"item-indicador"},Bl={class:"item-indicador-value"},Fl=Sl(()=>t.createElementVNode("div",{class:"item-indicador-img"},[t.createElementVNode("svg",{width:"8",height:"6",viewBox:"0 0 8 6",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M3.87817 5.92969L0.506034 0.0889796L7.2503 0.0889802L3.87817 5.92969Z",fill:"#38CFFF"})])],-1)),Gl={class:"info-data-item"},zl={class:"item-indicador"},Al={class:"item-indicador-value"},Dl={key:0},Ll=Sl(()=>t.createElementVNode("div",{class:"item-indicador-img"},[t.createElementVNode("svg",{width:"8",height:"6",viewBox:"0 0 8 6",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M3.87817 5.92969L0.506034 0.0889796L7.2503 0.0889802L3.87817 5.92969Z",fill:"#38CFFF"})])],-1)),$l={class:"info-data-item"},Ml={class:"item-indicador"},Ol={class:"item-indicador-value"},Rl=Sl(()=>t.createElementVNode("div",{class:"item-indicador-img"},[t.createElementVNode("svg",{width:"8",height:"6",viewBox:"0 0 8 6",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M3.87817 5.92969L0.506034 0.0889796L7.2503 0.0889802L3.87817 5.92969Z",fill:"#38CFFF"})])],-1)),Wl={key:0,class:"inactiveInfo"},jl={class:"info-data-item"},ql={class:"item-indicador"},Hl={class:"item-indicador-value"},Jl=Sl(()=>t.createElementVNode("div",{class:"item-indicador-img"},[t.createElementVNode("svg",{width:"8",height:"6",viewBox:"0 0 8 6",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M3.87817 5.92969L0.506034 0.0889796L7.2503 0.0889802L3.87817 5.92969Z",fill:"#38CFFF"})])],-1)),Ul={class:"info-data-item"},Zl={class:"item-indicador"},Xl={class:"item-indicador-value"},Yl=Sl(()=>t.createElementVNode("div",{class:"item-indicador-img"},[t.createElementVNode("svg",{width:"8",height:"6",viewBox:"0 0 8 6",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M3.87817 5.92969L0.506034 0.0889796L7.2503 0.0889802L3.87817 5.92969Z",fill:"#38CFFF"})])],-1));const Ql=M(bl,[["render",function(e,a,i,s,o,l){const n=t.resolveComponent("GSCCheckbox");return e.arrayFilledDataSortedByPriority.length>0?(t.openBlock(),t.createElementBlock("div",Tl,[i.widthSection>760?(t.openBlock(),t.createElementBlock("div",wl,"Porcentajes")):t.createCommentVNode("",!0),1==i.game.game_status||0==i.game.game_status||1==i.game.is_live?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(i.widthSection>760?"field-container":i.widthSection>520?"field-container-movil":i.widthSection>440?"field-container-movil-2":i.widthSection>360?"field-container-movil-3":"field-container-movil-4")},[1==o.dataPosession.has_posession?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(i.widthSection>1020?"time-show":i.widthSection>920?"time-show-table-xl":i.widthSection>880?"time-show-table-xl-2":i.widthSection>820?"time-show-table-xl-3":i.widthSection>760?"time-show-table-xl-4":"time-show-movil")},[t.createVNode(n,{label:"Mostrar tiempo inactivo",fontFamily:"Poppins-Regular","onUpdate:modelValue":l.onCheckInactive,"label-color":"#8c9399"},null,8,["onUpdate:modelValue"])],2)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(i.widthSection>1020?"field-data-container":i.widthSection>920?"field-data-container-xl":i.widthSection>880?"field-data-container-xl-2":i.widthSection>820?"field-data-container-xl-3":i.widthSection>760?"field-data-container-xl-4":"field-data-container-movil")},[t.createElementVNode("div",{class:t.normalizeClass(o.areInactiveVisible?"container-data-img-home":"container-data-img-home50")},[t.createElementVNode("div",{class:t.normalizeClass(o.areInactiveVisible?"homeInfo":"homeInfo50"),style:t.normalizeStyle("background-image:url("+i.game.homeTeam.logo.replace("80","150")+")")},null,6),t.createElementVNode("div",kl,[t.createElementVNode("div",{class:t.normalizeClass(i.widthSection>580?"item-ref-data":"item-ref-data-movil")},[t.createElementVNode("div",Cl,[t.createElementVNode("div",Vl,[1==o.dataPosession.has_posession?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[o.areInactiveVisible?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(o.dataPosession.active_time.home),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(o.dataPosession.home),1)],64))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[l.hVal(e.arrayFilledDataSortedByPriority[0].subcategories.possession)?(t.openBlock(),t.createElementBlock("span",Pl,t.toDisplayString(l.deleteDecimalZero(l.formatNumbers(l.hVal(e.arrayFilledDataSortedByPriority[0].subcategories.possession).numberValue)))+"%",1)):t.createCommentVNode("",!0)],64))]),Il]),t.createElementVNode("div",{class:t.normalizeClass(i.widthSection>580?"title-indicador":"title-indicador-movil")}," Pos. "+t.toDisplayString(i.game.homeTeam.acronym),3)],2)])],2),o.areInactiveVisible&&1==o.dataPosession.has_posession?(t.openBlock(),t.createElementBlock("div",Nl,[t.createElementVNode("div",El,[t.createElementVNode("div",{class:t.normalizeClass(i.widthSection>580?"item-ref-data":"item-ref-data-movil")},[t.createElementVNode("div",xl,[t.createElementVNode("div",Bl,t.toDisplayString(o.dataPosession.active_time.inactive_time),1),Fl]),t.createElementVNode("div",{class:t.normalizeClass(i.widthSection>580?"title-indicador":"title-indicador-movil")},[i.widthSection>580?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("T. Inactivo")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("T. Inactivo")],64))],2)],2)])])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(o.areInactiveVisible?"container-data-img-away":"container-data-img-away50")},[t.createElementVNode("div",{class:t.normalizeClass(o.areInactiveVisible?"awayInfo":"awayInfo50"),style:t.normalizeStyle("background-image:url("+i.game.awayTeam.logo.replace("80","150")+")")},null,6),t.createElementVNode("div",Gl,[t.createElementVNode("div",{class:t.normalizeClass(i.widthSection>580?"item-ref-data":"item-ref-data-movil")},[t.createElementVNode("div",zl,[t.createElementVNode("div",Al,[1==o.dataPosession.has_posession?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[o.areInactiveVisible?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(o.dataPosession.active_time.away),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(o.dataPosession.away),1)],64))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[l.aVal(e.arrayFilledDataSortedByPriority[0].subcategories.possession)?(t.openBlock(),t.createElementBlock("span",Dl,t.toDisplayString(l.deleteDecimalZero(l.formatNumbers(l.aVal(e.arrayFilledDataSortedByPriority[0].subcategories.possession).numberValue)))+"%",1)):t.createCommentVNode("",!0)],64))]),Ll]),t.createElementVNode("div",{class:t.normalizeClass(i.widthSection>580?"title-indicador":"title-indicador-movil")}," Pos. "+t.toDisplayString(i.game.awayTeam.acronym),3)],2)])],2)],2)],2)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[o.arrTeams.length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(i.widthSection>760?"field-container":i.widthSection>520?"field-container-movil":i.widthSection>440?"field-container-movil-2":i.widthSection>360?"field-container-movil-3":"field-container-movil-4")},[1==o.arrTeams[i.teamSelected.teamId].has_posession?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(i.widthSection>1020?"time-show":i.widthSection>920?"time-show-table-xl":i.widthSection>880?"time-show-table-xl-2":i.widthSection>820?"time-show-table-xl-3":i.widthSection>760?"time-show-table-xl-4":"time-show-movil")},[t.createVNode(n,{label:"Mostrar tiempo inactivo",fontFamily:"Poppins-Regular","onUpdate:modelValue":l.onCheckInactive,"label-color":"#8c9399"},null,8,["onUpdate:modelValue"])],2)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(i.widthSection>1020?"field-data-container":i.widthSection>920?"field-data-container-xl":i.widthSection>880?"field-data-container-xl-2":i.widthSection>820?"field-data-container-xl-3":i.widthSection>760?"field-data-container-xl-4":"field-data-container-movil")},[t.createElementVNode("div",{class:t.normalizeClass(o.areInactiveVisible?"container-data-img-home":"container-data-img-home50")},[i.game.homeTeam.team_id==i.teamSelected.teamId?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(o.areInactiveVisible?"homeInfo":"homeInfo50"),style:t.normalizeStyle("background-image:url("+i.game.homeTeam.logo.replace("80","150")+")")},null,6)):t.createCommentVNode("",!0),t.createElementVNode("div",$l,[t.createElementVNode("div",{class:t.normalizeClass(i.widthSection>580?"item-ref-data":"item-ref-data-movil")},[t.createElementVNode("div",Ml,[t.createElementVNode("div",Ol,[o.areInactiveVisible?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[i.game.awayTeam.team_id==i.teamSelected.teamId?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(o.arrTeams[i.teamSelected.teamId].active_time.away),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(o.arrTeams[i.teamSelected.teamId].active_time.home),1)],64))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[i.game.awayTeam.team_id==i.teamSelected.teamId?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(o.arrTeams[i.teamSelected.teamId].away),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(o.arrTeams[i.teamSelected.teamId].home),1)],64))],64))]),Rl]),i.game.homeTeam.team_id==i.teamSelected.teamId?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(i.widthSection>580?"title-indicador":"title-indicador-movil")}," Pos. "+t.toDisplayString(i.game.homeTeam.acronym),3)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(i.widthSection>580?"title-indicador":"title-indicador-movil")}," Pos. Rival ",2))],2)])],2),o.areInactiveVisible&&1==o.arrTeams[i.teamSelected.teamId].has_posession?(t.openBlock(),t.createElementBlock("div",Wl,[t.createElementVNode("div",jl,[t.createElementVNode("div",{class:t.normalizeClass(i.widthSection>580?"item-ref-data":"item-ref-data-movil")},[t.createElementVNode("div",ql,[t.createElementVNode("div",Hl,t.toDisplayString(o.arrTeams[i.teamSelected.teamId].active_time.inactive_time),1),Jl]),t.createElementVNode("div",{class:t.normalizeClass(i.widthSection>580?"title-indicador":"title-indicador-movil")},[i.widthSection>580?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("T. Inactivo")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("T. Inactivo")],64))],2)],2)])])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(o.areInactiveVisible?"container-data-img-away":"container-data-img-away50")},[i.game.awayTeam.team_id==i.teamSelected.teamId?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(o.areInactiveVisible?"awayInfo":"awayInfo50"),style:t.normalizeStyle("background-image:url("+i.game.awayTeam.logo.replace("80","150")+")")},null,6)):t.createCommentVNode("",!0),t.createElementVNode("div",Ul,[t.createElementVNode("div",{class:t.normalizeClass(i.widthSection>580?"item-ref-data":"item-ref-data-movil")},[t.createElementVNode("div",Zl,[t.createElementVNode("div",Xl,[o.areInactiveVisible?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[i.game.homeTeam.team_id==i.teamSelected.teamId?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(o.arrTeams[i.teamSelected.teamId].active_time.away),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(o.arrTeams[i.teamSelected.teamId].active_time.home),1)],64))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[i.game.homeTeam.team_id==i.teamSelected.teamId?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(o.arrTeams[i.teamSelected.teamId].away),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(o.arrTeams[i.teamSelected.teamId].home),1)],64))],64))]),Yl]),i.game.awayTeam.team_id==i.teamSelected.teamId?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(i.widthSection>580?"title-indicador":"title-indicador-movil")}," Pos. "+t.toDisplayString(i.game.awayTeam.acronym),3)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(i.widthSection>580?"title-indicador":"title-indicador-movil")}," Pos. Rival ",2))],2)])],2)],2)],2)):t.createCommentVNode("",!0)],64))])):t.createCommentVNode("",!0)}],["__scopeId","data-v-d9615d31"]]),Kl={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-Light"},backgroundColor:{type:String,default:"#2e3b46"},circleColorSwitch:{type:String,default:"#FFFFFF"}},data:()=>({OptionDefault:!1}),watch:{valueDefault:{immediate:!0,handler:async function(e){try{e==this.textOptionLeft&&(this.OptionDefault=!1),e==this.textOptionRight&&(this.OptionDefault=!0)}catch(t){throw new Error(t)}}}},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)}}},en=()=>{t.useCssVars(e=>({"0fd788f0":e.backgroundColor,"65d48069":e.widthCircle,ab129df8:e.heightCircle}))},tn=Kl.setup;Kl.setup=tn?(e,t)=>(en(),tn(e,t)):en;const an={key:0,class:"text-left"},sn=["width","src"],on=["checked"],ln=["width","src"],nn={key:3,class:"text-right"};const rn=M(Kl,[["render",function(e,a,i,s,o,l){return t.openBlock(),t.createElementBlock("div",{class:"gsc-switch-radio",style:t.normalizeStyle(l.customText)},[""==i.textOptionLeft||i.hiddenLabels?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("span",an,t.toDisplayString(i.textOptionLeft),1)),""!=i.iconA?(t.openBlock(),t.createElementBlock("img",{key:1,width:i.widthIcons,src:i.iconA},null,8,sn)):t.createCommentVNode("",!0),t.createElementVNode("input",{type:"checkbox",id:"toggle-btn",onChange:a[0]||(a[0]=(...e)=>l.handleSwitchChange&&l.handleSwitchChange(...e)),checked:o.OptionDefault},null,40,on),t.createElementVNode("label",{for:"toggle-btn",style:t.normalizeStyle([l.customStyle,{"--circle-color":i.circleColorSwitch}])},null,4),""!=i.iconB?(t.openBlock(),t.createElementBlock("img",{key:2,width:i.widthIcons,src:i.iconB},null,8,ln)):t.createCommentVNode("",!0),""==i.textOptionRight||i.hiddenLabels?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("span",nn,t.toDisplayString(i.textOptionRight),1))],4)}],["__scopeId","data-v-c17e5be3"]]);let dn=null;const cn={components:{},props:{canPlayVideos:{type:Boolean,default:!1},titleCategory:{type:String,default:"RESUMEN"},dateGame:{type:String,default:""},colorBackgroundHome:{type:String,default:"#000000"},colorBackgroundAway:{type:String,default:"#FFFFFF"},logoHome:{type:String,default:""},isLive:{type:Boolean,default:!0},matchday:{type:String,default:""},seasonName:{type:String,default:""},logoAway:{type:String,default:""},score:{type:String,default:""},background:{type:String,default:""}},data:()=>({gamesContainerWidth:0}),computed:{date(){const e=this.gamesContainerWidth;return e<=400?"date400":e<=540?"date540":e<=650?"date650":"date"},seasoncontainer(){const e=this.gamesContainerWidth;return e<=400?"season-container400":e<=540?"season-container540":e<=650?"season-container650":"season-container"},matchcontainer(){const e=this.gamesContainerWidth;return e<=400?"match-container400":e<=540?"match-container540":e<=650?"match-container650":"match-container"},containerinfogame(){const e=this.gamesContainerWidth;return e<=400?"container-info-game400":e<=540?"container-info-game540":e<=650?"container-info-game650":"container-info-game"},playbutton(){const e=this.gamesContainerWidth;return e<=360?"play-button360":e<=400?"play-button400":e<=540?"play-button540":e<=650?"play-button650":"play-button"},baselogo(){const e=this.gamesContainerWidth;return e<=400?"base-logo400":e<=540?"base-logo540":e<=650?"base-logo650":"base-logo"},baselogoright(){const e=this.gamesContainerWidth;return e<=400?"base-logo-right400":e<=540?"base-logo-right540":e<=650?"base-logo-right650":"base-logo-right"},thumbnailhighlights(){const e=this.gamesContainerWidth;return e<=320?"thumbnail-highlights300":e<=330?"thumbnail-highlights310":e<=340?"thumbnail-highlights320":e<=360?"thumbnail-highlights330":e<=395?"thumbnail-highlights350":e<=430?"thumbnail-highlights400":e<=470?"thumbnail-highlights470":e<=540?"thumbnail-highlights540":e<=650?"thumbnail-highlights650":"thumbnail-highlights"},teamlogo(){const e=this.gamesContainerWidth;return e<=400?"team-logo400":e<=540?"team-logo540":e<=650?"team-logo650":"team-logo"},logoright(){const e=this.gamesContainerWidth;return e<=400?"logo-right400":e<=540?"logo-right540":e<=650?"logo-right650":"logo-right"},secondline(){const e=this.gamesContainerWidth;return e<=400?"second-line400":e<=540?"second-line540":e<=650?"second-line650":"second-line"},titlename(){const e=this.gamesContainerWidth;return e<=400?"title-name400":e<=540?"title-name540":e<=650?"title-name650":"title-name"}},methods:{onclickPlayVideos(){this.$emit("onclickPlayVideos")},setUpResizeObserver(){if(!window.ResizeObserver)throw new Error("Resize observer not supported!");dn=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),dn.observe(this.$refs.gamesContainer)}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},mn=()=>{t.useCssVars(e=>({"1cda3aa1":e.colorBackgroundHome+"45","154a841c":e.colorBackgroundAway+"45","580af42e":e.colorBackgroundHome,58111810:e.colorBackgroundAway}))},pn=cn.setup;cn.setup=pn?(e,t)=>(mn(),pn(e,t)):mn;const yn=e=>(t.pushScopeId("data-v-27481504"),e=e(),t.popScopeId(),e),gn=[yn(()=>t.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},[t.createElementVNode("path",{d:"M6.6041 22.8554C6.42105 22.7512 6.26805 22.5956 6.1616 22.4053C6.05515 22.215 5.99927 21.9973 6.00001 21.7755V2.22137C6.00026 2.00039 6.0565 1.78362 6.16274 1.59409C6.26899 1.40456 6.42127 1.24936 6.6034 1.14499C6.78553 1.04062 6.9907 0.990981 7.1971 1.00135C7.4035 1.01171 7.60342 1.0817 7.77561 1.20386L21.4907 10.9821C21.6473 11.0935 21.7758 11.2446 21.8646 11.4219C21.9535 11.5992 22 11.7973 22 11.9985C22 12.1996 21.9535 12.3977 21.8646 12.575C21.7758 12.7523 21.6473 12.9034 21.4907 13.0148L7.77561 22.7954C7.60369 22.9178 7.40392 22.988 7.19761 22.9986C6.9913 23.0092 6.78617 22.9597 6.6041 22.8554ZM7.14347 21.7779L20.8585 11.9996L7.14347 21.7779Z",fill:"#CBEE6B"})],-1))],un=yn(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/paper-texture.png",alt:"",class:"paper-texture position-image"},null,-1)),hn=["src"],vn=yn(()=>t.createElementVNode("div",{class:"gradient-back position-image"},null,-1)),fn=yn(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/halftone-texture.png",alt:"",class:"halftone-texture position-image"},null,-1)),_n=["src"],bn=["src"],Sn={class:"text-container"};let Tn=null;const wn={components:{GSCThumbnailHighlightGameHistoric:M(cn,[["render",function(e,a,i,s,o,l){return t.openBlock(),t.createElementBlock("div",{ref:"gamesContainer",class:t.normalizeClass(l.thumbnailhighlights)},[i.canPlayVideos?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(l.playbutton),onClick:a[0]||(a[0]=(...e)=>l.onclickPlayVideos&&l.onclickPlayVideos(...e))},gn,2)):t.createCommentVNode("",!0),""!=i.dateGame?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(l.date)},t.toDisplayString(i.dateGame),3)):t.createCommentVNode("",!0),""!=i.matchday&&""!=i.seasonName?(t.openBlock(),t.createElementBlock("div",{key:2,class:t.normalizeClass(l.containerinfogame)},[""!=i.matchday?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(l.matchcontainer)},t.toDisplayString(i.matchday),3)):t.createCommentVNode("",!0),""!=i.seasonName?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(l.seasoncontainer)},t.toDisplayString(i.seasonName),3)):t.createCommentVNode("",!0)],2)):t.createCommentVNode("",!0),un,t.createElementVNode("img",{src:i.background,alt:"",class:"bkg-blackwhite position-image"},null,8,hn),t.createElementVNode("div",{class:t.normalizeClass([l.baselogo,"position-image"])},null,2),t.createElementVNode("div",{class:t.normalizeClass(l.baselogoright)},null,2),vn,fn,t.createElementVNode("img",{src:i.logoHome,alt:"",class:t.normalizeClass(l.teamlogo)},null,10,_n),t.createElementVNode("img",{src:i.logoAway,alt:"",class:t.normalizeClass(l.logoright)},null,10,bn),t.createElementVNode("div",Sn,[t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(l.titlename)},t.toDisplayString(i.titleCategory),3)])],2)}],["__scopeId","data-v-27481504"]])},props:{game:{type:Object,default:()=>{}},titleCard:{type:String,default:"RESUMEN"},canPlayVideos:{type:Boolean,default:!1}},watch:{},data:()=>({lastDataGameUrl:"",dataProminent:[],gameInfo:{},gamesContainerWidth:0,showHighlight:!1,showHighlightGoals:!1,item:{backgroundhome:"",backgroundaway:"",logohome:"",logoaway:"",background:"",match:"",seasonname:"",score:""},tournamentId:0,token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"}),computed:{},methods:{onclickPlayVideos(e){var t=[];t=2==e.type?1==e.data.position_id?0==e.data.category?[55,324,323,608,39,774,802,52,53,40,54]:e.data.category:0==e.data.category?[12,35,10,27,607,61,519,98,101,109,112,121,122,127,128,135,136,141,142,161,170,179,702,730,466,217,211,232,235,239,242,282,284,289,291,296,485,486,487,488,14,15,257]:e.data.category:3==e.type?0==e.data.category?[607,608,12,55,54,35,14,52,15,53,466,477,40,257,39]:e.data.category:0!=e.data.category?e.data.category:"RESUMEN"==this.titleCard?[607,608,12,55,54,35,14,52,15,53,466,477]:[12,55,54,35];let a={seasonId:e.data.season_id,mainSectionType:1,playListType:e.type,categoryIds:t,gameIdsToFilter:e.data.game_id?[e.data.game_id]:null,playerIds:1!=e.data.position_id&&e.data.player_id?[e.data.player_id]:[],goalkeeperIds:1==e.data.position_id&&e.data.player_id?[e.data.player_id]:[],teamId:e.data.team_id?e.data.team_id:0,matchResult:e.data.matchResult?[e.data.matchResult]:[1,2,3],playData:{},advancedFilter:{playListTitle:""}};0!==e.data.category&&(a.advancedFilter.mainCategoryId=e.data.category),this.$emit("openmedia",a)},async fillData(){const e="https://fxtcaw9tw6.execute-api.us-east-2.amazonaws.com/prod/historic/games/"+this.game.gameId;if(this.lastDataGameUrl!==e){this.$emit("loading",!0),this.lastDataGameUrl=e;const t=m.create({headers:{Authorization:`${this.token}`}}),a=await t.get("https://8tvo5bp9ai.execute-api.us-west-2.amazonaws.com/prod/gamesBySeason/"+this.game.seasonId),i=await t.get("https://d2oco6mqmc.execute-api.us-west-2.amazonaws.com/prod/teamsBySeason/"+this.game.seasonId);this.tournamentId=i.data.tournament_id;const s=a.data.games.findIndex(e=>e.game_id===this.game.gameId);this.gameInfo=a.data.games[s];const o=await t.get(e);this.showHighlight=""!=o.data&&o.data.plays.length>0,this.showHighlightGoals=""!=o.data&&o.data.plays.filter(e=>12===e[0]||55===e[0]||54===e[0]||35===e[0]).length>0,this.item.category=0,this.item.game_id=o.data.game_id,this.item.season_id=this.game.seasonId,this.item.score=o.data.thumbnails[o.data.game_id]?o.data.thumbnails[o.data.game_id].score[0]+" - "+o.data.thumbnails[o.data.game_id].score[1]:"0 - 0",this.item.backgroundhome=o.data.thumbnails[o.data.game_id]?o.data.thumbnails[o.data.game_id].info_thumbnails.home_colors.background_color:"",this.item.backgroundaway=o.data.thumbnails[o.data.game_id]?o.data.thumbnails[o.data.game_id].info_thumbnails.away_colors.background_color:"",this.item.logohome=o.data.thumbnails[o.data.game_id]?"https://golstatsimages.blob.core.windows.net/teams-150/"+o.data.thumbnails[o.data.game_id].home_team+".png":"",this.item.logoaway=o.data.thumbnails[o.data.game_id]?"https://golstatsimages.blob.core.windows.net/teams-150/"+o.data.thumbnails[o.data.game_id].visiting_team+".png":"",this.item.background=o.data.thumbnails[o.data.game_id]?"RESUMEN"==this.titleCard?"https://golstatsimages.blob.core.windows.net/images-library/"+o.data.thumbnails[o.data.game_id].info_thumbnails.images.background_default_games[0]:"https://golstatsimages.blob.core.windows.net/images-library/Goles_CAT.jpg":"",this.$emit("showleyendlive",!(!this.showHighlight&&!this.showHighlightGoals)),this.$emit("showsummarylive",this.showHighlight),this.$emit("showgoalslive",this.showHighlightGoals),this.$emit("loading",!1)}},setUpResizeObserver(){if(!window.ResizeObserver)throw new Error("Resize observer not supported!");Tn=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),Tn.observe(this.$refs.gamesContainer)}},async mounted(){setTimeout(()=>{this.setUpResizeObserver()},1e3),await this.fillData()}},kn={class:"highlights-prominent-game",ref:"gamesContainer"},Cn={class:"video-partido-container__highlight"};const Vn=M(wn,[["render",function(e,a,i,s,o,l){const n=t.resolveComponent("GSCThumbnailHighlightGameHistoric");return t.openBlock(),t.createElementBlock("div",kn,[t.withDirectives(t.createElementVNode("div",Cn,[t.createCommentVNode("",!0),t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(o.gamesContainerWidth>865?"video-partido-container__image":"video-partido-container__image2")},[""!=o.item.background?(t.openBlock(),t.createBlock(n,{key:0,"color-background-home":o.item.backgroundhome,"color-background-away":o.item.backgroundaway,"logo-home":o.item.logohome,"logo-away":o.item.logoaway,"is-live":!0,"title-category":i.titleCard,"can-play-videos":i.canPlayVideos,background:o.item.background,matchday:o.item.match,"season-name":o.item.seasonname,onOnclickPlayVideos:a[0]||(a[0]=e=>l.onclickPlayVideos({data:o.item,type:1})),score:o.item.score},null,8,["color-background-home","color-background-away","logo-home","logo-away","title-category","can-play-videos","background","matchday","season-name","score"])):t.createCommentVNode("",!0)],2)],512),[[t.vShow,"RESUMEN"==i.titleCard&&i.canPlayVideos&&o.showHighlight||"GOLES"==i.titleCard&&i.canPlayVideos&&o.showHighlightGoals]])],512)}],["__scopeId","data-v-0f9959c1"]]);let Pn=null;const In={components:{},props:{titleCategory:{type:String,default:"RESUMEN"},dateGame:{type:String,default:""},colorBackgroundHome:{type:String,default:"#000000"},colorBackgroundAway:{type:String,default:"#FFFFFF"},isLive:{type:Boolean,default:!1},logoHome:{type:String,default:""},game:{type:Object,default:()=>{}},matchday:{type:String,default:""},seasonName:{type:String,default:""},logoAway:{type:String,default:""},score:{type:String,default:""},background:{type:String,default:""}},data:()=>({gamesContainerWidth:0}),computed:{date(){const e=this.gamesContainerWidth;return e<=400?"date400":e<=540?"date540":e<=650?"date650":"date"},seasoncontainer(){const e=this.gamesContainerWidth;return e<=400?"season-container400":e<=540?"season-container540":e<=650?"season-container650":"season-container"},matchcontainer(){const e=this.gamesContainerWidth;return e<=400?"match-container400":e<=540?"match-container540":e<=650?"match-container650":"match-container"},containerinfogame(){const e=this.gamesContainerWidth;return e<=400?"container-info-game400":e<=540?"container-info-game540":e<=650?"container-info-game650":"container-info-game"},playbutton(){const e=this.gamesContainerWidth;return e<=360?"play-button360":e<=400?"play-button400":e<=540?"play-button540":e<=650?"play-button650":"play-button"},baselogo(){const e=this.gamesContainerWidth;return e<=400?"base-logo400":e<=540?"base-logo540":e<=650?"base-logo650":"base-logo"},baselogoright(){const e=this.gamesContainerWidth;return e<=400?"base-logo-right400":e<=540?"base-logo-right540":e<=650?"base-logo-right650":"base-logo-right"},thumbnailhighlights(){const e=this.gamesContainerWidth;return e<=320?"thumbnail-highlights300":e<=330?"thumbnail-highlights310":e<=340?"thumbnail-highlights320":e<=360?"thumbnail-highlights330":e<=395?"thumbnail-highlights350":e<=430?"thumbnail-highlights400":e<=470?"thumbnail-highlights470":e<=540?"thumbnail-highlights540":e<=650?"thumbnail-highlights650":"thumbnail-highlights"},teamlogo(){const e=this.gamesContainerWidth;return e<=400?"team-logo400":e<=540?"team-logo540":e<=650?"team-logo650":"team-logo"},logoright(){const e=this.gamesContainerWidth;return e<=400?"logo-right400":e<=540?"logo-right540":e<=650?"logo-right650":"logo-right"},secondline(){const e=this.gamesContainerWidth;return e<=400?"second-line400":e<=540?"second-line540":e<=650?"second-line650":"second-line"},titlename(){const e=this.gamesContainerWidth;return e<=400?"title-name400":e<=540?"title-name540":e<=650?"title-name650":"title-name"}},methods:{onclickPlayVideos(){this.$emit("onclickPlayVideos")},setUpResizeObserver(){if(!window.ResizeObserver)throw new Error("Resize observer not supported!");Pn=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),Pn.observe(this.$refs.gamesContainer)}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},Nn=()=>{t.useCssVars(e=>({"702da677":e.colorBackgroundHome+"45","2a9a9988":e.colorBackgroundAway+"45","0be9ee1d":e.colorBackgroundHome,"0be6dc2c":e.colorBackgroundAway}))},En=In.setup;In.setup=En?(e,t)=>(Nn(),En(e,t)):Nn;const xn=e=>(t.pushScopeId("data-v-4ceabce6"),e=e(),t.popScopeId(),e),Bn=[xn(()=>t.createElementVNode("span",{class:"circle-live"},null,-1)),xn(()=>t.createElementVNode("span",{style:{"margin-left":"3px"}},"LIVE",-1))],Fn=[xn(()=>t.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},[t.createElementVNode("path",{d:"M6.6041 22.8554C6.42105 22.7512 6.26805 22.5956 6.1616 22.4053C6.05515 22.215 5.99927 21.9973 6.00001 21.7755V2.22137C6.00026 2.00039 6.0565 1.78362 6.16274 1.59409C6.26899 1.40456 6.42127 1.24936 6.6034 1.14499C6.78553 1.04062 6.9907 0.990981 7.1971 1.00135C7.4035 1.01171 7.60342 1.0817 7.77561 1.20386L21.4907 10.9821C21.6473 11.0935 21.7758 11.2446 21.8646 11.4219C21.9535 11.5992 22 11.7973 22 11.9985C22 12.1996 21.9535 12.3977 21.8646 12.575C21.7758 12.7523 21.6473 12.9034 21.4907 13.0148L7.77561 22.7954C7.60369 22.9178 7.40392 22.988 7.19761 22.9986C6.9913 23.0092 6.78617 22.9597 6.6041 22.8554ZM7.14347 21.7779L20.8585 11.9996L7.14347 21.7779Z",fill:"#CBEE6B"})],-1))],Gn=xn(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/paper-texture.png",alt:"",class:"paper-texture position-image"},null,-1)),zn=["src"],An=xn(()=>t.createElementVNode("div",{class:"gradient-back position-image"},null,-1)),Dn=xn(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/halftone-texture.png",alt:"",class:"halftone-texture position-image"},null,-1)),Ln=["src"],$n=["src"],Mn={class:"text-container"};let On=null;const Rn={components:{GSCThumbnailHighlightGameHistoricLive:M(In,[["render",function(e,a,i,s,o,l){return t.openBlock(),t.createElementBlock("div",{ref:"gamesContainer",class:t.normalizeClass(l.thumbnailhighlights)},[i.isLive&&0!=i.game.game_status?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(o.gamesContainerWidth>340?o.gamesContainerWidth>480?"icon-live":"icon-live-tablet":"icon-live-mobile")},Bn,2)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(l.playbutton),onClick:a[0]||(a[0]=(...e)=>l.onclickPlayVideos&&l.onclickPlayVideos(...e))},Fn,2),""!=i.dateGame?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(l.date)},t.toDisplayString(i.dateGame),3)):t.createCommentVNode("",!0),""!=i.matchday&&""!=i.seasonName?(t.openBlock(),t.createElementBlock("div",{key:2,class:t.normalizeClass(l.containerinfogame)},[""!=i.matchday?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(l.matchcontainer)},t.toDisplayString(i.matchday),3)):t.createCommentVNode("",!0),""!=i.seasonName?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(l.seasoncontainer)},t.toDisplayString(i.seasonName),3)):t.createCommentVNode("",!0)],2)):t.createCommentVNode("",!0),Gn,t.createElementVNode("img",{src:i.background,alt:"",class:"bkg-blackwhite position-image"},null,8,zn),t.createElementVNode("div",{class:t.normalizeClass([l.baselogo,"position-image"])},null,2),t.createElementVNode("div",{class:t.normalizeClass(l.baselogoright)},null,2),An,Dn,t.createElementVNode("img",{src:i.logoHome,alt:"",class:t.normalizeClass(l.teamlogo)},null,10,Ln),t.createElementVNode("img",{src:i.logoAway,alt:"",class:t.normalizeClass(l.logoright)},null,10,$n),t.createElementVNode("div",Mn,[t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(l.titlename)},t.toDisplayString(i.titleCategory),3)])],2)}],["__scopeId","data-v-4ceabce6"]])},props:{timeLiveHighlightsProminentAndVideo:{type:Number,default:6e4},game:{type:Object,default:()=>{}},titleCard:{type:String,default:"RESUMEN"},canPlayVideos:{type:Boolean,default:!1}},watch:{game:{deep:!0,immediate:!0,handler(e){this.fetchLiveData(e.gameId),1==e.is_live&&(this.intervalidhighlive=setInterval(()=>{this.fetchLiveData(e.gameId)},this.timeLiveHighlightsProminentAndVideo),this.$emit("intervalidhighlive",this.intervalidhighlive))}}},data:()=>({printData:[],gameInfo:{},intervalidhighlive:null,informationBestPlaysPlayers:[],informationBestPlaysTeamHome:[],informationBestPlaysTeamAway:[],gamesContainerWidth:0,tournamentId:0,showHighlight:!1,showHighlightGoals:!1,item:{backgroundhome:"",backgroundaway:"",logohome:"",logoaway:"",background:"",match:"",seasonname:"",score:""},token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"}),computed:{},methods:{async fetchLiveData(){await this.getLiveHighlights()},onclickPlayVideos(e){var t=[];t=2==e.type?1==e.data.position_id?0==e.data.category?[55,324,323,608,39,774,802,52,53,40,54]:e.data.category:0==e.data.category?[12,35,10,27,607,61,519,98,101,109,112,121,122,127,128,135,136,141,142,161,170,179,702,730,466,217,211,232,235,239,242,282,284,289,291,296,485,486,487,488,14,15,257]:e.data.category:3==e.type?0==e.data.category?[607,608,12,55,54,35,14,52,15,53,466,477,40,257,39]:e.data.category:4==e.type?[12,55,"35_r","54_r"]:0!=e.data.category?e.data.category:"RESUMEN"==this.titleCard?[607,608,12,55,54,35,14,52,15,53,466,477]:[12,55,54,35];let a={seasonId:e.data.season_id,mainSectionType:1,playListType:e.type,categoryIds:t,gameIdsToFilter:e.data.game_id?[e.data.game_id]:null,playerIds:1!=e.data.position_id&&e.data.player_id?[e.data.player_id]:[],goalkeeperIds:1==e.data.position_id&&e.data.player_id?[e.data.player_id]:[],teamId:e.data.team_id?e.data.team_id:0,matchResult:e.data.matchResult?[data.matchResult]:[1,2,3],playData:{},advancedFilter:{playListTitle:""}};0!==e.data.category&&(a.advancedFilter.mainCategoryId=e.data.category),this.$emit("openmedia",a)},async getLiveHighlights(){const e=m.create({headers:{Authorization:`${this.token}`}}),t=await e.get("https://fxtcaw9tw6.execute-api.us-east-2.amazonaws.com/prod/live/historic/games/"+this.game.gameId);""!=t.data&&(this.showHighlight=""!=t.data&&t.data.plays.length>0,this.showHighlightGoals=""!=t.data&&t.data.plays.filter(e=>12===e[0]||55===e[0]||54===e[0]||35===e[0]).length>0,this.item.category=0,this.item.game_id=t.data.game_id,this.item.season_id=this.game.seasonId,this.item.score=t.data.thumbnails[t.data.game_id].score,this.item.backgroundhome=t.data.thumbnails[t.data.game_id].info_thumbnails.home_colors.background_color,this.item.backgroundaway=t.data.thumbnails[t.data.game_id].info_thumbnails.away_colors.background_color,this.item.logohome="https://golstatsimages.blob.core.windows.net/teams-150/"+t.data.thumbnails[t.data.game_id].home_team+".png",this.item.logoaway="https://golstatsimages.blob.core.windows.net/teams-150/"+t.data.thumbnails[t.data.game_id].visiting_team+".png",this.item.background="RESUMEN"==this.titleCard?"https://golstatsimages.blob.core.windows.net/images-library/"+t.data.thumbnails[t.data.game_id].info_thumbnails.images.background_default_games[0]:"https://golstatsimages.blob.core.windows.net/images-library/Goles_CAT.jpg",this.$emit("showleyendlive",!(!this.showHighlight&&!this.showHighlightGoals)),this.$emit("showsummarylive",this.showHighlight),this.$emit("showgoalslive",this.showHighlightGoals))},setUpResizeObserver(){if(!window.ResizeObserver)throw new Error("Resize observer not supported!");On=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainerlivehigh.clientWidth}),On.observe(this.$refs.gamesContainerlivehigh)}},async mounted(){setTimeout(()=>{this.setUpResizeObserver()},1e3)}},Wn={class:"highlights-prominent-game",ref:"gamesContainerlivehigh"},jn={class:"video-partido-container__highlight"},qn={class:"video-partido-container__image"};const Hn=M(Rn,[["render",function(e,a,i,s,o,l){const n=t.resolveComponent("GSCThumbnailHighlightGameHistoricLive");return t.openBlock(),t.createElementBlock("div",Wn,[t.withDirectives(t.createElementVNode("div",jn,[t.createCommentVNode("",!0),t.createElementVNode("div",qn,[t.createVNode(n,{"is-live":!0,game:i.game,"color-background-home":o.item.backgroundhome,"color-background-away":o.item.backgroundaway,"logo-home":o.item.logohome,"logo-away":o.item.logoaway,"title-category":i.titleCard,background:o.item.background,onOnclickPlayVideos:a[1]||(a[1]=e=>l.onclickPlayVideos({data:o.item,type:1})),matchday:o.item.match,"season-name":o.item.seasonname,score:o.item.score},null,8,["game","color-background-home","color-background-away","logo-home","logo-away","title-category","background","matchday","season-name","score"])])],512),[[t.vShow,"RESUMEN"==i.titleCard&&i.canPlayVideos&&o.showHighlight||"GOLES"==i.titleCard&&i.canPlayVideos&&o.showHighlightGoals]])],512)}],["__scopeId","data-v-80b11e42"]]),Jn="/play-icn.svg";const Un=M({name:"TooltipEmpty",props:{data:{type:Object,required:!0}},computed:{showTooltip(){return{visible:this.data.visible}}},methods:{tooltipClick:function(){},closeClick:function(){this.$emit("close")}}},[["render",function(e,a,i,s,o,l){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["back-tooltip",l.showTooltip])},[t.createElementVNode("div",{class:t.normalizeClass(["box-tooltip",l.showTooltip]),onClick:a[1]||(a[1]=(...e)=>l.tooltipClick&&l.tooltipClick(...e))},[t.createElementVNode("span",{role:"button",class:"box-tooltip-close",onClick:a[0]||(a[0]=(...e)=>l.closeClick&&l.closeClick(...e))},"×"),t.renderSlot(e.$slots,"default",{},void 0,!0)],2)],2)}],["__scopeId","data-v-5ec23081"]]),Zn=["id"],Xn={class:"game-event__minute"},Yn={class:"game-event__icon"},Qn=["src"],Kn=M({__name:"GameEvent",props:{gameEvent:{type:Object,default:()=>{}}},emits:["click-event"],setup(e,{emit:a}){const i=e,s=t.computed(()=>({"--icon-bottom":i.gameEvent.isHomeTeam?"30px":"-5px","--border-color":i.gameEvent.isSelected?"#336dff":"#747c83","--background-color":i.gameEvent.isSelected?"#336dff":"#0d1d29"})),o=t.computed(()=>{let e="";return e=18===i.gameEvent.category_id?"icn-tiros-de-esquina.svg":20===i.gameEvent.category_id?"icn-tiro-a-porteria.svg":10===i.gameEvent.category_id?"icn-cambio.svg":21===i.gameEvent.category_id?"icn-falta.svg":27===i.gameEvent.category_id?"atajada.svg":17===i.gameEvent.category_id?"fuera-de-lugar.svg":4===i.gameEvent.category_id||13===i.gameEvent.category_id||14===i.gameEvent.category_id||16===i.gameEvent.category_id||6===i.gameEvent.category_id&&1===i.gameEvent.event_type_id||5===i.gameEvent.category_id&&1===i.gameEvent.event_type_id||1===i.gameEvent.category_id&&1===i.gameEvent.event_type_id||2===i.gameEvent.category_id&&1===i.gameEvent.event_type_id||3===i.gameEvent.category_id&&1===i.gameEvent.event_type_id||7===i.gameEvent.category_id&&1===i.gameEvent.event_type_id||12===i.gameEvent.category_id&&1===i.gameEvent.event_type_id?"gol.svg":30==i.gameEvent.category_id||31==i.gameEvent.category_id||32==i.gameEvent.category_id||33==i.gameEvent.category_id||34==i.gameEvent.category_id||35==i.gameEvent.category_id||36==i.gameEvent.category_id||37==i.gameEvent.category_id||38==i.gameEvent.category_id||39==i.gameEvent.category_id||40==i.gameEvent.category_id?"var.png":28===i.gameEvent.category_id?"tiempo-agregado.svg":26===i.gameEvent.category_id?"jugada-peligrosa.svg":22===i.gameEvent.category_id?"penal-marcado.svg":15===i.gameEvent.category_id||23===i.gameEvent.category_id?"penal-fallado.svg":8===i.gameEvent.category_id?"icn-tarjeta-amarilla.svg":9===i.gameEvent.category_id?"icn-tarjeta-roja.svg":"generic.svg",`/images/events/${e}`});function l(){a("click-event",i.gameEvent)}return(a,n)=>(t.openBlock(),t.createElementBlock("div",{id:i.gameEvent.play_id,class:"game-event",onClick:l,style:t.normalizeStyle(s.value)},[t.createElementVNode("div",Xn,[t.createElementVNode("div",null,t.toDisplayString(e.gameEvent.minute)+"'",1)]),t.createElementVNode("div",Yn,[t.createElementVNode("img",{src:o.value},null,8,Qn)])],12,Zn))}},[["__scopeId","data-v-cb3d6917"]]),er={class:"events-line"},tr={class:"events-line__events"},ar=(e=>(t.pushScopeId("data-v-f5698f0e"),e=e(),t.popScopeId(),e))(()=>t.createElementVNode("div",{class:"events-line__events__line"},null,-1)),ir=M({__name:"EventsLine",props:{gameEvents:{type:Array,default:()=>[]}},emits:["click-event"],setup(e,{emit:a}){function i(e){a("click-event",e)}return(a,s)=>(t.openBlock(),t.createElementBlock("div",er,[t.createVNode(t.unref(p.GSCSlider),{backgroundColor:"#172531",pxScroll:260,arrowsPosition:"absolute",arrowsScrollHide:!0,arrowsBackground:"rgba(255,255,255,.16)",arrowsContainerBgL:"none",arrowsContainerBgR:"none",arrowsMargin:0,arrowsRadius:"50%",arrowsBorder:"#ddd"},{default:t.withCtx(()=>[t.createElementVNode("div",tr,[ar,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.gameEvents,e=>(t.openBlock(),t.createBlock(Kn,{key:e.id,"game-event":e,onClickEvent:i},null,8,["game-event"]))),128))])]),_:1})]))}},[["__scopeId","data-v-f5698f0e"]]),sr=e=>(t.pushScopeId("data-v-4a6f2e4c"),e=e(),t.popScopeId(),e),or={class:"tooltip-data"},lr=["src"],nr=sr(()=>t.createElementVNode("div",{class:"game-events__title-left-padding"},null,-1)),rr=sr(()=>t.createElementVNode("div",{class:"game-events__title"},"Eventos",-1)),dr={class:"game-events__team-logo"},cr=["src"],mr={class:"game-events__event-info"},pr={key:0,class:"game-events__event-info__line"},yr={key:1,class:"game-events__event-info__info"},gr={class:"game-events__event-info__info__player-photo"},ur={key:0,class:"game-events__event-info__info__player-photo__img"},hr=["src"],vr={class:"game-events__event-info__info__event-name"},fr={class:"game-events__event-info__info__player-name"},_r=[sr(()=>t.createElementVNode("img",{src:Jn,alt:""},null,-1))],br=sr(()=>t.createElementVNode("div",{class:"game-events__events-padding"},null,-1)),Sr={class:"game-events__events"},Tr={class:"game-events__team-logo"},wr=["src"],kr={class:"game-events__event-info"},Cr={key:0,class:"game-events__event-info__line"},Vr={key:1,class:"game-events__event-info__info"},Pr={class:"game-events__event-info__info__player-photo"},Ir={key:0,class:"game-events__event-info__info__player-photo__img"},Nr=["src"],Er={class:"game-events__event-info__info__event-name"},xr={class:"game-events__event-info__info__player-name"},Br=[sr(()=>t.createElementVNode("img",{src:Jn,alt:""},null,-1))],Fr="https://11rcgkydx3.execute-api.us-east-2.amazonaws.com/prod/games/",Gr=M({__name:"GameEvents",props:{game:{type:Object,default:()=>({})},widthScreen:{type:Number,default:0},token:{type:String,default:""},canPlayVideos:{type:Boolean,default:!0},gameEventsIntervalMinutes:{type:Number,default:1}},emits:["play-video"],setup(e,{emit:a}){const i=e;let s=null,o=0;const l=t.ref([]),n=t.ref(new Map),r=t.ref(""),d=t.ref(null),c=t.ref({visible:!1,link:""}),p=t.ref(new Set),y=t.ref(0),g=t.computed(()=>i.game.is_live||0===i.game.game_status);async function u(e,t=!1){try{let a=await async function(e){try{const t=(await m.get(`${Fr}${e}/timeline`,{headers:{Authorization:i.token}})).data;return t&&t.plays||[]}catch(t){throw new Error(t)}}(e),o=!1;e!==y.value&&(l.value=[],n.value=new Map,r.value="",p.value.clear(),y.value=e);let d=a.filter(e=>{const t=p.value.has(e.play_id);return t||p.value.add(e.play_id),!t});if(d){d=d.reduce((e,t)=>(o=t.game_finished,t.team_id?(t.isHomeTeam=t.team_id===i.game.homeTeam.team_id,e.push(t),n.value.set(t.play_id,t),e):e),[]);const e=[...l.value];v(d).forEach(t=>{g.value?e.unshift(t):e.push(t)}),l.value=g.value?v(e).reverse():v(e)}l.value&&l.value.length&&(g.value||!r.value&&l.value.length)&&(r.value=l.value[0].play_id),t&&!o?function(e){s=setInterval(()=>{u(e)},6e4*i.gameEventsIntervalMinutes)}(e):o&&h()}catch(a){}}function h(){s&&(clearInterval(s),s=null)}function v(e){return e.sort((e,t)=>f(e.matchlapse)+Number(e.minute)-(f(t.matchlapse)+Number(t.minute)))}function f(e){let t=0;switch(e){case 1:t=0;break;case 2:t=45;break;case 3:t=90;break;case 4:t=105;break;case 5:t=120}return t}function _(e){r.value=e.play_id}function b(){i.canPlayVideos&&d.value.play_id&&a("play-video",{categoryId:d.value.main_category_id,playId:d.value.play_id})}function S(){c.value.visible=!1,c.value.link=""}return t.watch(()=>i.game,(e,t)=>{e&&e.gameId!==o?(p.value.clear(),o=e.gameId,h(),u(e.gameId,e.is_live&&4===e.game_status)):!e||!e.is_live||t&&t.is_live?e&&!e.is_live&&t.is_live&&h():u(e.gameId,!0)},{deep:!0,immediate:!0}),t.watch(()=>r.value,(e,t)=>{if(e!==t){const a=n.value.get(t),i=n.value.get(e);if(a&&(a.isSelected=!1),i){if(!i.playerShortName){const[e,t]=i.player_name.split(","),a=e.split(" ");let s="";for(const i of a)if(s+=` ${i}`,i.length>3)break;i.playerShortName=t&&e?`${t.trim().charAt(0)}.${s}`:""}i.isSelected=!0,d.value=i}}}),t.onBeforeUnmount(()=>{h()}),(a,i)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createVNode(Un,{data:c.value,onClose:S},{default:t.withCtx(()=>[t.createElementVNode("div",or,[t.createElementVNode("div",null,[t.createElementVNode("video",{class:"tooltip-video",controls:"",autoplay:"",src:c.value.link,format:"video/mp4"},null,8,lr)])])]),_:1},8,["data"]),t.createElementVNode("div",{class:t.normalizeClass(e.widthScreen>920?"game-events":"game-events__mobile")},[nr,rr,t.createElementVNode("div",dr,[e.game&&e.game.homeTeam?(t.openBlock(),t.createElementBlock("img",{key:0,class:"game-events__team-logo__img",src:e.game.homeTeam.logo,alt:"team-logo"},null,8,cr)):t.createCommentVNode("",!0)]),t.createElementVNode("div",mr,[d.value&&d.value.isHomeTeam?(t.openBlock(),t.createElementBlock("div",pr)):t.createCommentVNode("",!0),d.value&&d.value.isHomeTeam?(t.openBlock(),t.createElementBlock("div",yr,[t.createElementVNode("div",gr,[d.value.player_id?(t.openBlock(),t.createElementBlock("div",ur,[t.createElementVNode("img",{src:`https://golstatsimages.blob.core.windows.net/players-profile/${d.value.player_id}.png`,alt:""},null,8,hr)])):t.createCommentVNode("",!0)]),t.createElementVNode("div",vr,t.toDisplayString(1===d.value.event_type_id?d.value.event_type_name:d.value.category_name),1),t.createElementVNode("div",fr," | "+t.toDisplayString(d.value.playerShortName),1),e.canPlayVideos&&d.value.play_id?(t.openBlock(),t.createElementBlock("div",{key:0,role:"button",class:"game-events__event-info__info__button-play",onClick:b},_r)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)]),br,t.createElementVNode("div",Sr,[t.createVNode(ir,{"game-events":l.value,onClickEvent:_},null,8,["game-events"])]),t.createElementVNode("div",Tr,[e.game&&e.game.awayTeam?(t.openBlock(),t.createElementBlock("img",{key:0,class:"game-events__team-logo__img",src:e.game.awayTeam.logo,alt:"team-logo"},null,8,wr)):t.createCommentVNode("",!0)]),t.createElementVNode("div",kr,[d.value&&!d.value.isHomeTeam?(t.openBlock(),t.createElementBlock("div",Cr)):t.createCommentVNode("",!0),d.value&&!d.value.isHomeTeam?(t.openBlock(),t.createElementBlock("div",Vr,[t.createElementVNode("div",Pr,[d.value.player_id?(t.openBlock(),t.createElementBlock("div",Ir,[t.createElementVNode("img",{src:`https://golstatsimages.blob.core.windows.net/players-profile/${d.value.player_id}.png`,alt:""},null,8,Nr)])):t.createCommentVNode("",!0)]),t.createElementVNode("div",Er,t.toDisplayString(1===d.value.event_type_id?d.value.event_type_name:d.value.category_name),1),t.createElementVNode("div",xr," | "+t.toDisplayString(d.value.playerShortName),1),e.canPlayVideos&&d.value.play_id?(t.openBlock(),t.createElementBlock("div",{key:0,role:"button",class:"game-events__event-info__info__button-play",onClick:b},Br)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)])],2)],64))}},[["__scopeId","data-v-4a6f2e4c"]]),zr={class:"toggle-buttons__background"},Ar=["onClick"],Dr={key:0,class:"toggle-buttons__button__img"},Lr=["src"],$r=M({__name:"ToggleButtons",props:{buttons:{type:Array,required:!0},selectedButtonIndex:{type:Number,default:0},height:{type:String,default:"29px"},width:{type:String,default:"100%"},fontSize:{type:String,default:"12px"},fontFamily:{type:String,default:"Poppins-Medium"},borderRadius:{type:String,default:"8px"},mainBackgroundColor:{type:String,default:"#364448"},mainBorderColor:{type:String,default:"#9AA1A3"},mainBorderWidth:{type:String,default:"0.5px"},activeBorderColor:{type:String,default:"#cbee6b"},activeBorderWidth:{type:String,default:"1px"},activeBackgroundColor:{type:String,default:"#2e3b46"},activeFontColor:{type:String,default:"#FFFFFF"}},emits:["change"],setup(e,{emit:a}){const i=e;t.useCssVars(t=>({64265112:e.height,df19770a:e.width,"6caf15d1":e.mainBackgroundColor,"2d25df89":e.borderRadius,"21a281f6":e.mainBorderWidth,"208b8393":e.mainBorderColor,94332204:e.fontFamily,"3e48121b":e.fontSize,"37a2dd49":e.activeBorderWidth,"368bdee6":e.activeBorderColor,ecc8e0b8:e.activeBackgroundColor,"5528ac63":e.activeFontColor}));const s=t.ref(i.selectedButtonIndex),o=t.computed(()=>({"--grid-template-columns":`repeat(${i.buttons.length}, 1fr)`}));return t.watch(()=>i.selectedButtonIndex,e=>{s.value=e}),t.watch(s,(e,t)=>{e!==t&&a("change",{index:e,button:i.buttons[e]})}),(a,i)=>(t.openBlock(),t.createElementBlock("div",zr,[t.createElementVNode("div",{class:"toggle-buttons",style:t.normalizeStyle(o.value)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.buttons,(e,a)=>(t.openBlock(),t.createElementBlock("div",{key:`b${a}`,class:t.normalizeClass(["toggle-buttons__button",{active:s.value===a,right:e.img&&a>0}]),onClick:e=>function(e){s.value=e}(a)},[e.img?(t.openBlock(),t.createElementBlock("div",Dr,[t.createElementVNode("img",{src:e.img,alt:""},null,8,Lr)])):t.createCommentVNode("",!0),t.createElementVNode("div",null,t.toDisplayString(e.text||e),1)],10,Ar))),128))],4)]))}},[["__scopeId","data-v-8c3c29c6"]]),Mr=e=>(t.pushScopeId("data-v-b3a94cf2"),e=e(),t.popScopeId(),e),Or={class:"tooltip__content"},Rr={key:0,class:"tooltip__content__category"},Wr={class:"tooltip__content__player"},jr={class:"tooltip__content__player__name"},qr={class:"tooltip__content__player__photo"},Hr=["src"],Jr={class:"tooltip__content__minute"},Ur={key:1,class:"tooltip__content__game"},Zr=Mr(()=>t.createElementVNode("div",{class:"tooltip__content__game__name"},"Partido:",-1)),Xr={class:"tooltip__content__game__round-abbreviation"},Yr={class:"tooltip__content__game__logo"},Qr=["src"],Kr=Mr(()=>t.createElementVNode("div",{class:"tooltip__content__game__vs"},"VS",-1)),ed={class:"tooltip__content__game__logo"},td=["src"],ad={key:2,class:"tooltip__content__team"},id=Mr(()=>t.createElementVNode("div",{class:"tooltip__content__team__name"},"Equipo:",-1)),sd={class:"tooltip__content__team__logo"},od=["src"],ld=M({__name:"TooltipChalkboard",props:{event:{type:Object,default:()=>({})},position:{type:Object,default:()=>({x:"0",y:"0"})}},emits:["close"],setup(e,{emit:a}){const i=e,s=t.computed(()=>({"--top":i.position.y,"--left":i.position.x})),o=t.computed(()=>`${i.event.player.player_name} ${i.event.player.player_lastname}`),l=t.computed(()=>{const[e]=i.event.momentOfPlay.split(":");return`${Number(e)}'`});function n(){a("close")}return(a,i)=>(t.openBlock(),t.createElementBlock("div",{class:"tooltip",onClick:n,style:t.normalizeStyle(s.value)},[t.createElementVNode("div",Or,[e.event.categoryName?(t.openBlock(),t.createElementBlock("div",Rr,t.toDisplayString(e.event.categoryName),1)):t.createCommentVNode("",!0),t.createElementVNode("div",Wr,[t.createElementVNode("div",jr,t.toDisplayString(o.value),1),t.createElementVNode("div",qr,[t.createElementVNode("img",{src:e.event.player.photo,alt:""},null,8,Hr)])]),t.createElementVNode("div",Jr,"Minuto: "+t.toDisplayString(l.value),1),e.event.game?(t.openBlock(),t.createElementBlock("div",Ur,[Zr,t.createElementVNode("div",Xr,t.toDisplayString(e.event.game.roundAbbreviation),1),t.createElementVNode("div",Yr,[t.createElementVNode("img",{src:e.event.game.homeTeam.logo,alt:""},null,8,Qr)]),Kr,t.createElementVNode("div",ed,[t.createElementVNode("img",{src:e.event.game.awayTeam.logo,alt:""},null,8,td)])])):(t.openBlock(),t.createElementBlock("div",ad,[id,t.createElementVNode("div",sd,[t.createElementVNode("img",{src:e.event.team.logo,alt:""},null,8,od)])]))])],4))}},[["__scopeId","data-v-b3a94cf2"]]),nd=["id"],rd=["fill"],dd=["id"],cd=["fill"],md=["stroke-dasharray","x1","y1","x2","y2","marker-end"],pd=["x","y","stroke-width","fill","stroke"],yd=["x","y"],gd={__name:"EventConnection",props:{eventConnection:{type:Object,required:!0},color:{type:String,required:!0},isLastEvent:{type:Boolean,default:!1},mainEventIdSelected:{type:Number,default:0}},setup(e){const a=e,i=t.computed(()=>{const e=[];if(a.eventConnection.hasConnectionPath){const t=a.eventConnection.x1===a.eventConnection.x2&&a.eventConnection.y1===a.eventConnection.y2?1:2;let i=r(a.eventConnection.previousEvent?a.eventConnection.previousEvent.y3:a.eventConnection.y1);const s=d(a.eventConnection.previousEvent?a.eventConnection.previousEvent.x3:a.eventConnection.x1);let o=0,l=0;2===t&&(o=r(a.eventConnection.y2),l=d(a.eventConnection.x2));const n=r(a.eventConnection.y3),c=d(a.eventConnection.x3);1===t?e.push({x1:s,y1:i,x2:c,y2:n}):(e.push({x1:s,y1:i,x2:l,y2:o}),e.push({x1:l,y1:o,x2:c,y2:n}))}return e}),s=t.computed(()=>0!==a.mainEventIdSelected?a.eventConnection.relatedPlayId===a.mainEventIdSelected?1:.1:1),o=t.computed(()=>0===a.mainEventIdSelected||a.eventConnection.relatedPlayId===a.mainEventIdSelected),l=t.computed(()=>r(a.eventConnection.previousEvent?a.eventConnection.previousEvent.y3:a.eventConnection.y1)),n=t.computed(()=>d(a.eventConnection.previousEvent?a.eventConnection.previousEvent.x3:a.eventConnection.x1));function r(e){return 100*(1-e)}function d(e){return 100*e}function c(e){F.emit("mouse-over-event",{mouseEvent:e,eventConnection:a.eventConnection,position:{x:n.value,y:l.value}})}function m(){F.emit("mouse-leave-event",{mainEventId:a.eventConnection.relatedPlayId,eventId:a.eventConnection.playId})}return(a,r)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createElementVNode("defs",null,[t.withDirectives(t.createElementVNode("marker",{id:`a-${e.eventConnection.playId}`,markerWidth:"10",markerHeight:"10",refX:"0",refY:"3",orient:"auto",markerUnits:"strokeWidth",style:t.normalizeStyle({opacity:s.value})},[t.createElementVNode("path",{d:"M0,0 L0,6 L9,3 z",fill:e.color},null,8,rd)],12,nd),[[t.vShow,o.value]]),t.withDirectives(t.createElementVNode("marker",{id:`b-${e.eventConnection.playId}`,markerWidth:"4",markerHeight:"4",refX:"2",refY:"2",orient:"auto",markerUnits:"strokeWidth",style:t.normalizeStyle({opacity:s.value})},[t.createElementVNode("circle",{cx:"2",cy:"2",r:"2",fill:e.color},null,8,cd)],12,dd),[[t.vShow,o.value]])]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i.value,(a,l)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[a.x1&&a.y1?t.withDirectives((t.openBlock(),t.createElementBlock("line",{key:`${e.eventConnection.playId}-${l}`,style:t.normalizeStyle({stroke:e.color,"stroke-width":2,opacity:s.value}),"stroke-dasharray":0===l&&2===i.value.length?"none":"5,5",x1:`${a.x1}%`,y1:`${a.y1}%`,x2:`${a.x2}%`,y2:`${a.y2}%`,"marker-start":"`url(`#b-${eventConnection.playId}`)`","marker-end":`url(${e.isLastEvent&&l===i.value.length-1?`#a-${e.eventConnection.playId}`:""})`},null,12,md)),[[t.vShow,o.value]]):t.createCommentVNode("",!0)],64))),256)),t.withDirectives(t.createElementVNode("g",{onMouseover:c,onMouseleave:m,style:t.normalizeStyle({cursor:"pointer",opacity:s.value})},[t.createElementVNode("rect",{x:`${n.value}%`,y:`${l.value}%`,transform:"translate(-14, -14)",height:"28",width:"28","stroke-width":e.eventConnection.isMainPlay?2:1,fill:e.color,stroke:e.eventConnection.isMainPlay?"#fff":"#999",style:t.normalizeStyle({opacity:s.value}),rx:"14",ry:"14"},null,12,pd),t.createElementVNode("text",{x:`${n.value}%`,y:`${l.value}%`,"text-anchor":"middle","dominant-baseline":"middle",dy:"1","font-size":"15",fill:"#fff","font-family":"'Poppins-SemiBold', sans-serif",style:t.normalizeStyle({opacity:s.value})},t.toDisplayString(e.eventConnection.player?e.eventConnection.player.jersey:""),13,yd)],36),[[t.vShow,o.value]])],64))}},ud={__name:"EventConnections",props:{eventConnections:{type:Object,required:!0},mainEventIdSelected:{type:Number,default:0}},setup(e){const a=e,i=t.computed(()=>a.eventConnections.getEventsConnectionsByEventType());return(a,s)=>(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i.value,(a,s)=>(t.openBlock(),t.createBlock(gd,{key:a.id,color:e.eventConnections.getEventColor(a),"is-last-event":s===i.value.length-1,"event-connection":a,"main-event-id-selected":e.mainEventIdSelected},null,8,["color","is-last-event","event-connection","main-event-id-selected"]))),128))}},hd={class:"soccer-chalkboard"},vd={id:"soccerChalkboardField",class:"soccer-chalkboard__field"},fd=["src"],_d={viewBox:"0 0 547 340",fill:"none",xmlns:"http://www.w3.org/2000/svg"},bd=M({__name:"SoccerChalkboard",props:{eventsConnections:{type:Array,default:()=>[]},listType:{type:String,default:"events"},playersSelected:{type:Set,default:()=>new Set},teamsSelected:{type:Set,default:()=>new Set},isAssistantZoneVisible:{type:Boolean,default:!1}},setup(e){const a=e,i=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(he)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(he.substr(0,4))?0:1e3;F.on("mouse-over-time-event",e=>{c(e),setTimeout(()=>{c(e)},i)}),F.on("mouse-leave-time-event",e=>{setTimeout(()=>{l.value!=e||s.value||c(0)},i)}),F.on("mouse-over-event",e=>{!function(e){const t=170,a=document.getElementById("soccerChalkboardField");if(a){const i=a.getBoundingClientRect(),d=e.position.x/100*i.width+14,c=e.position.y/100*i.height+14,m=d+t>i.width?i.width-t:d,p=c;l.value=e.eventConnection.relatedPlayId,n.value=e.eventConnection.playId,o.value=e.eventConnection,r.value={x:`${m}px`,y:`${p}px`},s.value=!0}}(e)}),F.on("mouse-leave-event",e=>{setTimeout(()=>{e.eventId===n.value&&(s.value=!1,l.value=0)},i)});const s=t.ref(!1),o=t.ref({}),l=t.ref(0),n=t.ref(0),r=t.ref({x:0,y:0}),d=t.computed(()=>a.isAssistantZoneVisible?"https://golstatsimages.blob.core.windows.net/todoelfut/pizarra.jpg":"https://golstatsimages.blob.core.windows.net/todoelfut/field-green-posesion.jpg");function c(e){l.value=e}function m(){s.value=!1}return(a,i)=>(t.openBlock(),t.createElementBlock("div",hd,[t.createElementVNode("div",vd,[t.createElementVNode("img",{src:d.value,alt:""},null,8,fd),(t.openBlock(),t.createElementBlock("svg",_d,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.eventsConnections,(a,i)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,["events"===e.listType&&a.hasTeam(e.teamsSelected)||"players"===e.listType&&a.hasPlayer(e.playersSelected)?(t.openBlock(),t.createBlock(ud,{key:i,"event-connections":a,"main-event-id-selected":l.value},null,8,["event-connections","main-event-id-selected"])):t.createCommentVNode("",!0)],64))),256))]))]),s.value?(t.openBlock(),t.createBlock(ld,{key:0,position:r.value,event:o.value,onClose:m},null,8,["position","event"])):t.createCommentVNode("",!0)]))}},[["__scopeId","data-v-17190e13"]]),Sd=e=>(t.pushScopeId("data-v-f70399b8"),e=e(),t.popScopeId(),e),Td={class:"events-timeline"},wd=Sd(()=>t.createElementVNode("div",{class:"events-timeline__back-line"},null,-1)),kd=["onMouseover","onMouseleave"],Cd=["id"],Vd=[Sd(()=>t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.77234 0.45166C2.11548 0.45166 0.772339 1.79481 0.772339 3.45166V14.4517C0.772339 16.1085 2.11548 17.4517 3.77234 17.4517H7.96294L10.2723 21.4517L12.5817 17.4517H16.7723C18.4292 17.4517 19.7723 16.1085 19.7723 14.4517V3.45166C19.7723 1.79481 18.4292 0.45166 16.7723 0.45166H3.77234Z"},null,-1))],Pd=["fill"],Id=["mask"],Nd=["stroke"],Ed=M({__name:"EventsTimeLine",props:{eventsConnections:{type:Array,default:()=>[]},listType:{type:String,default:"events"},playersSelected:{type:Set,default:()=>new Set},teamsSelected:{type:Set,default:()=>new Set}},setup(e){const a=e,i=["0'","45'","90'"],s=t.computed(()=>a.eventsConnections.reduce((e,t)=>{const a={minute:"0'",left:"0%",color:t.getTeamColor(),fontColor:t.getTeamFontColor(),playId:t.mainPlay.playId,playerId:t.mainPlay.playerId,teamId:t.mainPlay.teamId,relatedPlayId:t.relatedPlayId},[i]=t.mainPlay.momentOfPlay.split(":"),s=parseInt(i);return s>=90?(a.minute=`${s}'`,a.left="100%"):(a.minute=`${s}'`,a.left=s/90*100+"%"),e.push(a),e},[]));return(a,o)=>(t.openBlock(),t.createElementBlock("div",Td,[(t.openBlock(),t.createElementBlock(t.Fragment,null,t.renderList(i,(e,a)=>t.createElementVNode("div",{class:"events-timeline__game-time",key:a},t.toDisplayString(e),1)),64)),wd,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.value,(a,i)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,["events"===e.listType&&e.teamsSelected.has(a.teamId)||"players"===e.listType&&e.playersSelected.has(a.playerId)?(t.openBlock(),t.createElementBlock("svg",{key:i,width:"20",height:"22",viewBox:"0 0 20 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:t.normalizeStyle({left:a.left,cursor:"pointer"}),onMouseover:e=>{return t=a,void F.emit("mouse-over-time-event",t.playId);var t},onMouseleave:e=>{return t=a,void F.emit("mouse-leave-time-event",t.playId);var t}},[t.createElementVNode("mask",{id:a.playId.toString(),fill:"white"},Vd,8,Cd),t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.77234 0.45166C2.11548 0.45166 0.772339 1.79481 0.772339 3.45166V14.4517C0.772339 16.1085 2.11548 17.4517 3.77234 17.4517H7.96294L10.2723 21.4517L12.5817 17.4517H16.7723C18.4292 17.4517 19.7723 16.1085 19.7723 14.4517V3.45166C19.7723 1.79481 18.4292 0.45166 16.7723 0.45166H3.77234Z",fill:a.color},null,8,Pd),t.createElementVNode("path",{d:"M7.96294 17.4517L8.82896 16.9517L8.54029 16.4517H7.96294V17.4517ZM10.2723 21.4517L9.40631 21.9517L10.2723 23.4517L11.1384 21.9517L10.2723 21.4517ZM12.5817 17.4517V16.4517H12.0044L11.7157 16.9517L12.5817 17.4517ZM1.77234 3.45166C1.77234 2.34709 2.66777 1.45166 3.77234 1.45166V-0.54834C1.5632 -0.54834 -0.227661 1.24252 -0.227661 3.45166H1.77234ZM1.77234 14.4517V3.45166H-0.227661V14.4517H1.77234ZM3.77234 16.4517C2.66777 16.4517 1.77234 15.5562 1.77234 14.4517H-0.227661C-0.227661 16.6608 1.5632 18.4517 3.77234 18.4517V16.4517ZM7.96294 16.4517H3.77234V18.4517H7.96294V16.4517ZM7.09691 17.9517L9.40631 21.9517L11.1384 20.9517L8.82896 16.9517L7.09691 17.9517ZM11.1384 21.9517L13.4478 17.9517L11.7157 16.9517L9.40631 20.9517L11.1384 21.9517ZM16.7723 16.4517H12.5817V18.4517H16.7723V16.4517ZM18.7723 14.4517C18.7723 15.5562 17.8769 16.4517 16.7723 16.4517V18.4517C18.9815 18.4517 20.7723 16.6608 20.7723 14.4517H18.7723ZM18.7723 3.45166V14.4517H20.7723V3.45166H18.7723ZM16.7723 1.45166C17.8769 1.45166 18.7723 2.34709 18.7723 3.45166H20.7723C20.7723 1.24252 18.9815 -0.54834 16.7723 -0.54834V1.45166ZM3.77234 1.45166H16.7723V-0.54834H3.77234V1.45166Z",fill:"#172531",mask:`url(#${a.playId})`},null,8,Id),t.createElementVNode("g",null,[t.createElementVNode("text",{x:"50%",y:"8","text-anchor":"middle","dominant-baseline":"middle",dy:"1","font-size":"9","font-family":"Poppins-Light",stroke:a.fontColor,"stroke-width":"0.7"},t.toDisplayString(a.minute),9,Nd)])],44,kd)):t.createCommentVNode("",!0)],64))),256))]))}},[["__scopeId","data-v-f70399b8"]]),xd=e=>(t.pushScopeId("data-v-2a81f2f0"),e=e(),t.popScopeId(),e),Bd={class:"header-team__info"},Fd={class:"header-team__info__checkbox"},Gd={key:0,class:"header-team__info__logo"},zd=["src"],Ad={class:"header-team__info__name"},Dd={class:"header-team__arrow"},Ld=xd(()=>t.createElementVNode("div",{class:"header-team__arrow__circle"},null,-1)),$d=xd(()=>t.createElementVNode("div",{class:"header-team__arrow__line"},null,-1)),Md=M({__name:"CategoriesHeaderTeam",props:{team:{type:Object,default:()=>{}},isHomeTeam:{type:Boolean,default:!0},teamsSelected:{type:Set,default:()=>new Set},isGamePreMatch:{type:Boolean,default:!1},isTeamForAnalysis:{type:Boolean,default:!1}},emits:["change-team"],setup(e,{emit:a}){const i=e,s=t.computed(()=>({"--flex-direction-info":i.isHomeTeam?"flex":"row-reverse","--justify-content-info":i.isHomeTeam?"flex-start":"flex-end","--arrow-color":i.isHomeTeam?"#336dff":"#7ed321"})),o=t.computed(()=>i.team.colloquial_name||i.team.colloquialName||i.team.name||i.team.team_name||"");function l(e){a("change-team",{value:e,team:i.team})}return(a,n)=>(t.openBlock(),t.createElementBlock("div",{class:"header-team",style:t.normalizeStyle(s.value)},[t.createElementVNode("div",Bd,[t.createElementVNode("div",Fd,[t.createVNode(t.unref(r.GSCCheckbox),{"model-value":e.team.isSelected,"avoid-interaction":1===e.teamsSelected.size&&e.team.isSelected,"onUpdate:modelValue":l},null,8,["model-value","avoid-interaction"])]),"Rival"!==o.value?(t.openBlock(),t.createElementBlock("div",Gd,[e.team.logo?(t.openBlock(),t.createElementBlock("img",{key:0,src:e.team.logo,alt:"h-team"},null,8,zd)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),t.createElementVNode("div",Ad,t.toDisplayString(o.value),1)]),t.createElementVNode("div",Dd,[Ld,$d,t.createElementVNode("div",{class:t.normalizeClass("header-team__arrow__triangle-"+(i.isHomeTeam?"right":"left"))},null,2)])],4))}},[["__scopeId","data-v-2a81f2f0"]]),Od=e=>(t.pushScopeId("data-v-bfb2c86b"),e=e(),t.popScopeId(),e),Rd={class:"list-events"},Wd=Od(()=>t.createElementVNode("div",{class:"list-events__title"},"Tipos de jugadas:",-1)),jd={class:"list-events__list"},qd=["onClick"],Hd=[Od(()=>t.createElementVNode("img",{src:Jn,alt:""},null,-1))],Jd=M({__name:"ListEvents",props:{listEventsToDisplay:{type:Array,default:()=>[]},awaitForListEvents:{type:Boolean,default:!1},lastEventTypeSelected:{type:Object,default:()=>({})},canPlayVideos:{type:Boolean,default:!0},totalEvents:{type:Number,default:0},isPrivilegesVrApplicable:{type:Boolean,default:!1},totalEventsPrivilegesVr:{type:Number,default:0}},emits:["change-event-type","click-play"],setup(e,{emit:a}){const i=e,s=[{categoriesIds:new Set([607,608]),name:"Oportunidad de gol",value:"0"},{categoriesIds:new Set([12,55,"54_r","35_r"]),name:"Goles",value:"1"},{categoriesIds:new Set([19]),name:"Tiros a gol",value:"2"},{categoriesIds:new Set([537,540,544,547]),name:"Tiros a gol (portería)",value:"3"},{categoriesIds:new Set([13,25]),name:"Centros totales",value:"5"},{categoriesIds:new Set([98,101,104,105,109,112,115,116]),name:"Centros acertados",value:"6"},{categoriesIds:new Set([11]),name:"Balones ganados en área rival",value:"7"},{categoriesIds:new Set([4]),name:"1vs1 exitosos ofensivos",value:"8"},{categoriesIds:new Set([208]),name:"1vs1 no exitosos ofensivos",value:"9"},{categoriesIds:new Set([5]),name:"1vs1 exitoso defensivo",value:"10"},{categoriesIds:new Set([31,32]),name:"Corners",value:"11"}],o=t.ref(i.awaitForListEvents?[]:s),l=t.ref(i.awaitForListEvents?new Map:o.value.reduce((e,t)=>(e.set(t.value,t),e),new Map)),n=t.ref(i.awaitForListEvents?"":o.value[0].value);return t.watch(()=>i.listEventsToDisplay,e=>{if(e.length){l.value=new Map,o.value=e.map((e,t)=>{const a={name:e.name,singleName:e.single_name,categories:new Set(e.categories),categoriesIds:e.categories,post:e.post,prev:e.prev,value:t.toString()};return l.value.set(a.value,a),a});let t=null;i.lastEventTypeSelected&&i.lastEventTypeSelected.name&&(t=l.value.get(i.lastEventTypeSelected.value)),n.value=t?t.value:o.value[0].value}},{immediate:!0,deep:!0}),t.watch(()=>n.value,e=>{const t=l.value.get(e);t&&a("change-event-type",t)}),(s,l)=>(t.openBlock(),t.createElementBlock("div",Rd,[Wd,t.createElementVNode("div",jd,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(o.value,s=>(t.openBlock(),t.createElementBlock("div",{key:s.value,class:"list-events__list__item"},[t.createVNode(t.unref(d.GSCRadioButton),{modelValue:n.value,"onUpdate:modelValue":l[0]||(l[0]=e=>n.value=e),value:s.value,label:s.name,name:"event-type","radio-position":"left",class:"list-events__list__item__radio"},null,8,["modelValue","value","label"]),t.createElementVNode("button",{class:t.normalizeClass(["list-events__list__item__btn-play",{disabled:!(e.canPlayVideos&&n.value===s.value&&(e.isPrivilegesVrApplicable?e.totalEventsPrivilegesVr:e.totalEvents)>0)}]),onClick:t=>{return o=s,l=e.canPlayVideos&&n.value===s.value&&(e.isPrivilegesVrApplicable?e.totalEventsPrivilegesVr:e.totalEvents)>0,void(i.canPlayVideos&&l&&a("click-play",o.categoriesIds));var o,l}},Hd,10,qd)]))),128))])]))}},[["__scopeId","data-v-bfb2c86b"]]),Ud=new Map([[1,"Portero"],[2,"Defensa Central"],[3,"Lateral por izquierda"],[4,"Lateral por derecha"],[5,"Volante por izquierda"],[6,"Volante por derecha"],[7,"Volante defensivo"],[8,"Volante ofensivo"],[9,"Delantero"]]),Zd={class:"item-player__info"},Xd={class:"item-player__info__photo"},Yd={class:"item-player__info__photo__img"},Qd=["src"],Kd={class:"item-player__info__data"},ec={class:"item-player__info__data__name"},tc={class:"item-player__info__data__position"},ac={class:"item-player__info__data__position__nationality"},ic=["src"],sc={class:"item-player__info__data__position__position"},oc={class:"item-player__jersey-number"},lc=M({__name:"ItemPlayer",props:{isFemale:{type:Boolean,default:!1},player:{type:Object,default:()=>{}},selectedPlayers:{type:Set,default:()=>new Set}},emits:["change-player"],setup(e,{emit:a}){const i=e,s=t.computed(()=>Ud.get(i.player.position_id)||""),o=t.computed(()=>`https://golstatsimages.blob.core.windows.net/flags/${i.player.nationality_id}.jpg`);function l(e){a("change-player",e)}return(a,i)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["item-player",{inactive:!e.player.isSelected}])},[t.createVNode(t.unref(r.GSCCheckbox),{"model-value":e.player.isSelected,"avoid-interaction":1===e.selectedPlayers.size&&e.player.isSelected,"onUpdate:modelValue":l},null,8,["model-value","avoid-interaction"]),t.createElementVNode("div",Zd,[t.createElementVNode("div",Xd,[t.createElementVNode("div",Yd,[t.createElementVNode("img",{src:e.player.photo,alt:"player-photo"},null,8,Qd)])]),t.createElementVNode("div",Kd,[t.createElementVNode("div",ec,t.toDisplayString(e.player.player_lastname)+", "+t.toDisplayString(e.player.player_name),1),t.createElementVNode("div",tc,[t.createElementVNode("div",ac,[t.createElementVNode("img",{src:o.value},null,8,ic)]),t.createElementVNode("div",sc,t.toDisplayString(e.isFemale?s.value.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):s.value),1)])])]),t.createElementVNode("div",oc,t.toDisplayString(e.player.jersey),1)],2))}},[["__scopeId","data-v-03a1125d"]]),nc={class:"list-players"},rc={class:"list-players__header"},dc=["src"],cc={class:"list-players__header__team__name"},mc=["src"],pc={class:"list-players__header__team__name"},yc={class:"list-players__body"},gc=M({__name:"ListPlayers",props:{isFemale:{type:Boolean,default:!1},homeTeam:{type:Object,default:()=>({})},awayTeam:{type:Object,default:()=>({})},availablePlayersByTeam:{type:Map,default:()=>new Map}},emits:["change-players"],setup(e,{emit:a}){const i=e,s=t.ref(0);t.watch(()=>i.homeTeam.team_id,e=>{void 0===e?i.awayTeam&&i.awayTeam.team_id&&(s.value=i.awayTeam.team_id):s.value=e},{immediate:!0});const o=t.computed(()=>i.availablePlayersByTeam.get(s.value)||[]),l=t.computed(()=>o.value.reduce((e,t)=>(t.isSelected&&e.add(t.player_id),e),new Set));function n(e){s.value=e}return t.watch(()=>l.value,e=>{a("change-players",e)},{immediate:!0}),(a,i)=>(t.openBlock(),t.createElementBlock("div",nc,[t.createElementVNode("div",rc,[void 0!==e.homeTeam.team_id?(t.openBlock(),t.createElementBlock("div",{key:0,role:"button",class:t.normalizeClass(["list-players__header__team",{active:s.value===e.homeTeam.team_id}]),onClick:i[0]||(i[0]=t=>n(e.homeTeam.team_id))},[t.createElementVNode("img",{src:e.homeTeam.logo,alt:"team-logo"},null,8,dc),t.createElementVNode("div",cc,t.toDisplayString(e.homeTeam.colloquial_name),1)],2)):t.createCommentVNode("",!0),void 0!==e.awayTeam.team_id?(t.openBlock(),t.createElementBlock("div",{key:1,role:"button",class:t.normalizeClass(["list-players__header__team away",{active:s.value===e.awayTeam.team_id}]),onClick:i[1]||(i[1]=t=>n(e.awayTeam.team_id))},[t.createElementVNode("img",{src:e.awayTeam.logo,alt:"team-logo"},null,8,mc),t.createElementVNode("div",pc,t.toDisplayString(e.awayTeam.colloquial_name),1)],2)):t.createCommentVNode("",!0)]),t.createElementVNode("div",yc,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(o.value,a=>(t.openBlock(),t.createBlock(lc,{key:a.player_id,"is-female":e.isFemale,player:a,"selected-players":l.value,onChangePlayer:e=>function(e,t){t.isSelected=e}(e,a)},null,8,["is-female","player","selected-players","onChangePlayer"]))),128))])]))}},[["__scopeId","data-v-a0fc063d"]]),uc={class:"categories-list"},hc={key:0,class:"categories-list__games"},vc={key:1,class:"categories-list__header"},fc={class:"categories-list__switch"},_c={class:"categories-list__lists"},bc={key:0,class:"categories-list__lists__events"},Sc={key:1,class:"categories-list__lists__players"},Tc=M({__name:"CategoriesList",props:{isFemale:{type:Boolean,default:!1},homeTeam:{type:Object,default:()=>({})},awayTeam:{type:Object,default:()=>({})},listEventsToDisplay:{type:Array,default:()=>[]},awaitForListEvents:{type:Boolean,default:!1},tournamentSelected:{type:Object,default:()=>({})},availablePlayersByTeam:{type:Map,default:()=>new Map},listType:{type:String,default:"events"},canPlayVideos:{type:Boolean,default:!0},isGamePreMatch:{type:Boolean,default:!1},selectedTeamData:{type:Object,default:()=>({})},rivalTeams:{type:Object,default:()=>({isSelected:!1,colloquialName:"Rival"})},teamSelected:{type:Object,default:()=>({teamId:0})},totalEvents:{type:Number,default:0},isPrivilegesVrApplicable:{type:Boolean,default:!1},totalEventsPrivilegesVr:{type:Number,default:0}},emits:["change-event-type","change-list-type","change-players","change-teams","change-games"],setup(e,{emit:a}){const i=e,s=t.ref(["Eventos",1==i.tournamentSelected.is_female?"Jugadoras":"Jugadores"]),o=t.ref(0),l=t.ref({}),n=t.ref({isExpansionPanel:!1,templateProps:{boxShadow:"0px 4px 4px rgba(0, 0, 0, 0)",width:"100%"},buttonFilterProps:{width:"100%","background-color":"#293640",padding:"3px 8px","border-radius":"5px","border-color":"#293640","info-border-color":"#424D58"},fieldComponentProps:{width:"100%"},width:"100%"}),r=t.ref([]),d=t.ref({}),c=t.ref({}),m=t.ref(new Set),p=t.computed(()=>{const e=new Set,t=new Set;return i.isGamePreMatch?(i.selectedTeamData.isSelected&&(t.add(i.selectedTeamData.teamId),e.add(1)),i.rivalTeams.isSelected&&(e.add(2),r.value.forEach(e=>{t.add(e.rivalTeam.team_id===i.selectedTeamData.teamId?e.team.team_id:e.rivalTeam.team_id)})),function(e){m.value=e}(e)):(i.homeTeam.isSelected&&t.add(i.homeTeam.team_id),i.awayTeam.isSelected&&t.add(i.awayTeam.team_id)),t}),y=t.computed(()=>i.homeTeam.team_id===i.teamSelected.teamId),g=t.computed(()=>i.awayTeam.team_id===i.teamSelected.teamId);t.watch(()=>o.value,e=>{a("change-list-type",e?"players":"events")},{immediate:!0}),t.watch(()=>p.value,e=>{a("change-teams",e)},{immediate:!0});const u=t.computed(()=>i.isGamePreMatch&&i.selectedTeamData.games&&i.selectedTeamData.games.length>0?i.selectedTeamData.games.map(e=>({...e,label:`${e.roundAbbreviation} ${e.team.acronym} vs ${e.rivalTeam.acronym}`,teamsIds:[e.team.team_id,e.rivalTeam.team_id]})):[]);function h(e){o.value=e.index}function v(e){l.value=e,a("change-event-type",e)}function _(e){a("change-players",e)}function b({value:e,team:t}){t.isSelected=e}function S(e){a("click-play",e)}function T(e){const t=new Set;if(r.value=e.filter(e=>(e.isSelected&&t.add(e.game_id),e.isSelected)),1===r.value.length){const e=r.value[0];d.value=e.homeTeam,c.value=e.awayTeam}else d.value=i.teamSelected.isHomeTeam?i.homeTeam:{},c.value=i.teamSelected.isHomeTeam?{}:i.awayTeam,o.value=0;a("change-games",{gamesIds:t,availableTeamsIds:p.value,currentTeamGamesSelected:r.value})}return(a,i)=>(t.openBlock(),t.createElementBlock("div",uc,[e.isGamePreMatch?(t.openBlock(),t.createElementBlock("div",hc,[t.createVNode(t.unref(f.GSCFilters),t.mergeProps(n.value,{"filter-type":t.unref(f.filtersTypes).GAMES,filters:u.value,"onUpdate:filters":T}),null,16,["filter-type","filters"])])):t.createCommentVNode("",!0),"events"===e.listType?(t.openBlock(),t.createElementBlock("div",vc,[t.createVNode(Md,{team:e.isGamePreMatch?y.value?e.selectedTeamData:e.rivalTeams:e.homeTeam,"teams-selected":e.isGamePreMatch?m.value:p.value,"is-game-pre-match":e.isGamePreMatch,"is-team-for-analysis":y.value,onChangeTeam:b},null,8,["team","teams-selected","is-game-pre-match","is-team-for-analysis"]),t.createVNode(Md,{team:e.isGamePreMatch?g.value?e.selectedTeamData:e.rivalTeams:e.awayTeam,"is-home-team":!1,"is-game-pre-match":e.isGamePreMatch,"teams-selected":e.isGamePreMatch?m.value:p.value,"is-team-for-analysis":g.value,onChangeTeam:b},null,8,["team","is-game-pre-match","teams-selected","is-team-for-analysis"])])):t.createCommentVNode("",!0),t.createElementVNode("div",fc,[t.createVNode($r,{"selected-button-index":o.value,buttons:s.value,width:"220px","border-radius":"16px",onChange:h},null,8,["selected-button-index","buttons"])]),t.createElementVNode("div",_c,[0===o.value?(t.openBlock(),t.createElementBlock("div",bc,[t.createVNode(Jd,{"list-events-to-display":e.isGamePreMatch?e.selectedTeamData.categories:e.listEventsToDisplay,"await-for-list-events":e.awaitForListEvents,"last-event-type-selected":l.value,"can-play-videos":e.canPlayVideos,"total-events":e.totalEvents,"total-events-privileges-vr":e.totalEventsPrivilegesVr,"is-privileges-vr-applicable":e.isPrivilegesVrApplicable,onChangeEventType:v,onClickPlay:S},null,8,["list-events-to-display","await-for-list-events","last-event-type-selected","can-play-videos","total-events","total-events-privileges-vr","is-privileges-vr-applicable"])])):(t.openBlock(),t.createElementBlock("div",Sc,[t.createVNode(gc,{"is-female":e.isFemale,"available-players-by-team":e.availablePlayersByTeam,"home-team":e.isGamePreMatch?d.value:e.homeTeam,"away-team":e.isGamePreMatch?c.value:e.awayTeam,onChangeEventType:v,onChangePlayers:_},null,8,["is-female","available-players-by-team","home-team","away-team"])]))])]))}},[["__scopeId","data-v-86727bbf"]]),wc=["playId","playerId","teamId","gameId","categoryId","x1","y1","x2","y2","x3","y3","momentOfPlay","relatedPlayId","order","nationalityId","jersey"];let kc=null;const Cc=new Set([35,54]),Vc=new Set(["35_r","54_r"]),Pc="#336dff",Ic="#7ed321",Nc="#fff",Ec="#000";class xc{constructor(e={},t=[],a=new Set,i=new Set,s=null,o=null){const l=Cc.has(e.categoryId);this.mainPlay=e,this.playEvents=t.sort((e,t)=>t.order-e.order),this.categoriesIds=a,this.playersIds=i,this.teamForAnalysis=o,this.mainCategoryId=l?`${e.categoryId}_r`:e.categoryId||0,this.mainPlay.isMainPlay=!0,this.playEvents.forEach(e=>{e.game=s})}setEventType(e){this.eventType=e,this.mainPlay.categoryName=e.singleName,this.playEvents.forEach(e=>{e.hasConnectionPath=0!==this.eventType.prev||0!==this.eventType.post})}getEventsConnectionsByEventType(){const e=this.playEvents.findIndex(e=>e.playId===this.mainPlay.playId);if(e>-1&&this.eventType){let t=e-this.eventType.post,a=e+this.eventType.prev;t<0&&(t=0),a>this.playEvents.length-1&&(a=this.playEvents.length-1);const i=this.playEvents.slice(t,a+1).reverse();return i.forEach((e,t)=>{t>0&&(e.previousEvent=i[t-1])}),i}return[]}hasMainCategory(e=new Set){return e.has(this.mainCategoryId)}hasCategories(e=new Set,t={homeTeamId:0,awayTeamId:0}){const a=[];return e.forEach(e=>{a.push(`${t.homeTeamId}-${e}`),a.push(`${t.awayTeamId}-${e}`)}),a.some(e=>this.teamEventsIndex.has(e))}hasPlayer(e=new Set){return e.has(this.mainPlay.playerId)}hasPlayers(e=new Set){return Array.from(e.values()).some(e=>this.playersIds.has(e))}hasTeam(e=new Set){return e.has(this.mainPlay.teamId)}getTeamColor(){let e=this.teamForAnalysis?this.teamForAnalysis.isHomeTeam?this.mainPlay.teamId===this.teamForAnalysis.teamId:this.mainPlay.teamId!==this.teamForAnalysis.teamId:this.mainPlay.team.isHomeTeam;return Vc.has(this.mainPlay.categoryId)&&(e=!e),e?Pc:Ic}getEventColor(e){return(this.teamForAnalysis?this.teamForAnalysis.isHomeTeam?e.teamId===this.teamForAnalysis.teamId:e.teamId!==this.teamForAnalysis.teamId:e.team.isHomeTeam)?Pc:Ic}getTeamFontColor(){let e=this.teamForAnalysis?this.teamForAnalysis.isHomeTeam?this.mainPlay.teamId===this.teamForAnalysis.teamId:this.mainPlay.teamId!==this.teamForAnalysis.teamId:this.mainPlay.team.isHomeTeam;return Vc.has(this.mainPlay.categoryId)&&(e=!e),e?Nc:Ec}getSingleName(e){return e.split(" ").reduce((e,t)=>{let a=t;return t.endsWith("minaron")?a=t.replace("minaron","minó"):t.endsWith("vocan")?a=t.replace("vocan","voca"):t.endsWith("lones")?a=t.replace("lones","lón"):t.endsWith("oles")?a=t.replace("oles","ol"):(t.endsWith("os")||t.endsWith("as")||t.endsWith("es"))&&(a=t.slice(0,t.length-1)),e.push(a),e},[]).join(" ")}}const Bc=new Map([[0,new Map([[1,{matchDayId:1,matchDayName:"Jornada 1",matchDayAbbreviation:"J1",matchDayAbbreviation2:"JOR 1"}],[2,{matchDayId:2,matchDayName:"Jornada 2",matchDayAbbreviation:"J2",matchDayAbbreviation2:"JOR 2"}],[3,{matchDayId:3,matchDayName:"Jornada 3",matchDayAbbreviation:"J3",matchDayAbbreviation2:"JOR 3"}],[4,{matchDayId:4,matchDayName:"Jornada 4",matchDayAbbreviation:"J4",matchDayAbbreviation2:"JOR 4"}],[5,{matchDayId:5,matchDayName:"Jornada 5",matchDayAbbreviation:"J5",matchDayAbbreviation2:"JOR 5"}],[6,{matchDayId:6,matchDayName:"Jornada 6",matchDayAbbreviation:"J6",matchDayAbbreviation2:"JOR 6"}],[7,{matchDayId:7,matchDayName:"Jornada 7",matchDayAbbreviation:"J7",matchDayAbbreviation2:"JOR 7"}],[8,{matchDayId:8,matchDayName:"Jornada 8",matchDayAbbreviation:"J8",matchDayAbbreviation2:"JOR 8"}],[9,{matchDayId:9,matchDayName:"Jornada 9",matchDayAbbreviation:"J9",matchDayAbbreviation2:"JOR 9"}],[10,{matchDayId:10,matchDayName:"Jornada 10",matchDayAbbreviation:"J10",matchDayAbbreviation2:"JOR 10"}],[11,{matchDayId:11,matchDayName:"Jornada 11",matchDayAbbreviation:"J11",matchDayAbbreviation2:"JOR 11"}],[12,{matchDayId:12,matchDayName:"Jornada 12",matchDayAbbreviation:"J12",matchDayAbbreviation2:"JOR 12"}],[13,{matchDayId:13,matchDayName:"Jornada 13",matchDayAbbreviation:"J13",matchDayAbbreviation2:"JOR 13"}],[14,{matchDayId:14,matchDayName:"Jornada 14",matchDayAbbreviation:"J14",matchDayAbbreviation2:"JOR 14"}],[15,{matchDayId:15,matchDayName:"Jornada 15",matchDayAbbreviation:"J15",matchDayAbbreviation2:"JOR 15"}],[16,{matchDayId:16,matchDayName:"Jornada 16",matchDayAbbreviation:"J16",matchDayAbbreviation2:"JOR 16"}],[17,{matchDayId:17,matchDayName:"Jornada 17",matchDayAbbreviation:"J17",matchDayAbbreviation2:"JOR 17"}],[18,{matchDayId:18,matchDayName:"Cuartos de Final Ida",matchDayAbbreviation:"CFI",matchDayAbbreviation2:"CFI"}],[19,{matchDayId:19,matchDayName:"Cuartos de Final Vuelta",matchDayAbbreviation:"CFV",matchDayAbbreviation2:"CFV"}],[20,{matchDayId:20,matchDayName:"Semifinal Ida",matchDayAbbreviation:"SFI",matchDayAbbreviation2:"SFI"}],[21,{matchDayId:21,matchDayName:"Semifinal Vuelta",matchDayAbbreviation:"SFV",matchDayAbbreviation2:"SFV"}],[22,{matchDayId:22,matchDayName:"Final Ida",matchDayAbbreviation:"FI",matchDayAbbreviation2:"FI"}],[86,{matchDayId:86,matchDayName:"Final Vuelta",matchDayAbbreviation:"FV",matchDayAbbreviation2:"FV"}],[182,{matchDayId:182,matchDayName:"Play In 1",matchDayAbbreviation:"PI1",matchDayAbbreviation2:"PI1"}],[183,{matchDayId:183,matchDayName:"Play In 2",matchDayAbbreviation:"PI2",matchDayAbbreviation2:"PI2"}],[184,{matchDayId:184,matchDayName:"Repechaje",matchDayAbbreviation:"R",matchDayAbbreviation2:"R"}]])],[1,new Map([[1,{matchDayId:1,matchDayName:"Jornada 1",matchDayAbbreviation:"J1"}],[2,{matchDayId:2,matchDayName:"Jornada 2",matchDayAbbreviation:"J2"}],[3,{matchDayId:3,matchDayName:"Jornada 3",matchDayAbbreviation:"J3"}],[4,{matchDayId:4,matchDayName:"Jornada 4",matchDayAbbreviation:"J4"}],[5,{matchDayId:5,matchDayName:"Jornada 5",matchDayAbbreviation:"J5"}],[6,{matchDayId:6,matchDayName:"Jornada 6",matchDayAbbreviation:"J6"}],[181,{matchDayId:181,matchDayName:"16vos de Final",matchDayAbbreviation:"DF"}],[176,{matchDayId:176,matchDayName:"Octavos de Final",matchDayAbbreviation:"OF"}],[177,{matchDayId:177,matchDayName:"Cuartos de Final",matchDayAbbreviation:"CF"}],[178,{matchDayId:178,matchDayName:"Semifinales",matchDayAbbreviation:"SF"}],[179,{matchDayId:179,matchDayName:"Tercer lugar",matchDayAbbreviation:"3ER"}],[180,{matchDayId:180,matchDayName:"Final",matchDayAbbreviation:"FINAL"}]])],[2,new Map([[1,{matchDayId:1,matchDayName:"16vos de Final Ida",matchDayAbbreviation:"DFI"}],[2,{matchDayId:2,matchDayName:"16vos de Final Vuelta",matchDayAbbreviation:"DFV"}],[3,{matchDayId:3,matchDayName:"Octavos de Final Ida",matchDayAbbreviation:"OFI"}],[4,{matchDayId:4,matchDayName:"Octavos de Final Vuelta",matchDayAbbreviation:"OFV"}],[5,{matchDayId:5,matchDayName:"Cuartos de Final Ida",matchDayAbbreviation:"CFI"}],[6,{matchDayId:6,matchDayName:"Cuartos de Final Vuelta",matchDayAbbreviation:"CFV"}],[7,{matchDayId:7,matchDayName:"Semifinales Ida",matchDayAbbreviation:"SFI"}],[8,{matchDayId:8,matchDayName:"Semifinales Vuelta",matchDayAbbreviation:"SFV"}],[10,{matchDayId:10,matchDayName:"Final",matchDayAbbreviation:"FINAL"}]])]]),Fc=e=>(t.pushScopeId("data-v-96de1508"),e=e(),t.popScopeId(),e),Gc={class:"chalkboard-section-container"},zc={key:0,class:"chalkboard-section-container__pre-match-header"},Ac={key:0,class:"container-info-text-pre-match"},Dc=Fc(()=>t.createElementVNode("span",{class:"info-text-bold"},"IMPORTANTE:",-1)),Lc={key:1,class:"container-info-text-pre-match-mobile"},$c=Fc(()=>t.createElementVNode("span",{class:"info-text-bold"},"IMPORTANTE:",-1)),Mc=Fc(()=>t.createElementVNode("br",null,null,-1)),Oc=Fc(()=>t.createElementVNode("br",null,null,-1)),Rc={key:2,class:"container-info-text-pre-match-mobile"},Wc=Fc(()=>t.createElementVNode("span",{class:"info-text-bold"},"IMPORTANTE:",-1)),jc=Fc(()=>t.createElementVNode("br",null,null,-1)),qc=Fc(()=>t.createElementVNode("br",null,null,-1)),Hc={class:"section-container"},Jc={class:"section-container__left-column"},Uc={class:"chalkboard-component"},Zc={class:"assistant-zones"},Xc={class:"categories-time-line-component"},Yc={class:"total-events"},Qc={class:"section-container__right-column"},Kc=M({__name:"ChalkboardSectionContainer",props:{isFemale:{type:Boolean,default:!1},game:{type:Object,default:()=>({})},seasonSelected:{type:Object,default:()=>({})},tournamentSelected:{type:Object,default:()=>({})},token:{type:String,default:""},canPlayVideos:{type:Boolean,default:!0},widthSection:{type:Number,default:0},isGamePreMatch:{type:Boolean,default:!1},playVideosPrivileges:{type:Object,default:null},chalkboardIntervalMinutes:{type:Number,default:2}},emits:["open-media-player"],setup(e,{emit:a}){const i=e;let s=null;const o=(kc||(kc=ve(wc)),kc),l=t.ref({teamId:0}),n=t.ref(0),d=t.ref({}),c=t.ref({}),p=t.ref([]),y=t.ref({value:""}),g=t.ref([]),u=t.ref([]),h=t.ref(new Map),v=t.ref(new Map),f=t.ref("events"),_=t.ref(new Set),b=t.ref(new Set),S=t.ref([]),T=new Map,w=t.ref({}),k=t.ref({isSelected:!0,colloquialName:"Rival"}),C=t.ref(new Set),V=t.ref(new Set),P=t.ref(new Set),I=t.ref(0),N=new Set,E=t.ref(!1),x=t.computed(()=>[{teamId:i.game.homeTeam.team_id,text:i.game.homeTeam.colloquial_name,img:i.game.homeTeam.logo,isHomeTeam:!0},{teamId:i.game.awayTeam.team_id,text:i.game.awayTeam.colloquial_name,img:i.game.awayTeam.logo,isHomeTeam:!1}]),B=t.computed(()=>g.value.reduce((e,t)=>(("events"===f.value&&b.value.has(t.mainPlay.teamId)||"players"===f.value&&_.value.has(t.mainPlay.playerId))&&e++,e),0)),F=t.computed(()=>i.isGamePreMatch&&i.playVideosPrivileges),G=t.computed(()=>F.value?g.value.reduce((e,t)=>(("events"===f.value&&b.value.has(t.mainPlay.teamId)||"players"===f.value&&_.value.has(t.mainPlay.playerId))&&V.value.has(t.mainPlay.gameId)&&e++,e),0):0),z=t.computed(()=>`${y.value.name}: ${B.value}`),A=t.computed(()=>i.isGamePreMatch?i.playVideosPrivileges?function(){if(S.value&&l.value&&i.playVideosPrivileges&&i.playVideosPrivileges.seasonAndPrivileges&&l.value.teamId===i.playVideosPrivileges.seasonAndPrivileges.teamId){return S.value.reduce((e,t)=>{if(t.home_team===l.value.teamId||t.visiting_team===l.value.teamId){const a=t.home_team===l.value.teamId?1:2;i.playVideosPrivileges.seasonAndPrivileges.playingAs.has(a)&&e++}return e},0)>0&&b.value.has(l.value.teamId)}return!1}():i.canPlayVideos:i.playVideosPrivileges?i.canPlayVideos&&b.value.has(i.playVideosPrivileges.seasonAndPrivileges.teamId):i.canPlayVideos);function D(e){const t=new Set;g.value=[],e.forEach(e=>{e.hasMainCategory(y.value.categories)&&(e.setEventType(y.value),g.value.push(e),t.add(e.mainPlay.playerId))}),t.forEach(e=>{const t=v.value.get(e);if(t){const e=h.value.get(t.team_id);e.find(e=>e.player_id===t.player_id)||e.push({...t,isSelected:!0})}})}async function L(e,t=!1){try{const a=e===I.value,{categories:l,data:n,players:r,teams:d}=await async function(e){try{return(await m.get(`https://df43gcr5d6.execute-api.us-east-2.amazonaws.com/prod/chalkboard/seasons/${i.seasonSelected.id}/games/${e}`,{headers:{Authorization:i.token}})).data}catch(t){throw new Error(t)}}(e);let c=n;const y=[];a.value||(p.value=l,I.value=e,u.value=[],N.clear()),c=n.filter(e=>{const t=`${e[o.relatedPlayId]}-${e[o.playId]}`,a=N.has(t);return a||N.add(t),!a}),v.value=Object.values(r).reduce((e,t)=>(e.set(t.player_id,{...t}),e),new Map);const g=Object.values(d).reduce((e,t)=>(e.set(t.team_id,{...t,isHomeTeam:i.game.homeTeam.team_id===t.team_id}),e),new Map),h=function(e,t,a){const i=e.reduce((e,i)=>{const s=$(i),o=e.get(s.relatedPlayId),l=s.relatedPlayId===s.playId;if(s.player=t.get(s.playerId),s.team=a.get(s.teamId),o)l&&(o.mainPlay=s),o.playsIds.has(s.playId)||(o.events.push(s),o.categoriesIds.add(s.categoryId),o.playersIds.add(s.playerId),o.playsIds.add(s.playId),o.players.push(s.player));else{const t={events:[s],categoriesIds:new Set([s.categoryId]),playersIds:new Set([s.playerId]),playsIds:new Set([s.playId]),players:[s.player]};l&&(t.mainPlay=s),e.set(s.relatedPlayId,t)}return e},new Map);return Array.from(i.values()).forEach(e=>{e.events.sort((e,t)=>t.order-e.order)}),i}(c,v.value,g);Array.from(h.values()).forEach(e=>{if(e.mainPlay){e.mainPlay.gameAux={homeTeam:g.get(i.game.homeTeam.team_id),awayTeam:g.get(i.game.awayTeam.team_id)};const t=new xc(e.mainPlay,e.events,e.categoriesIds,e.playersIds);u.value.push(t),y.push(t)}}),y.length&&D(y),t&&(s=setInterval(()=>{L(i.game.gameId)},6e4*i.chalkboardIntervalMinutes))}catch(a){throw new Error(a)}}function $(e){return e.reduce((e,t,a)=>(e[wc[a]]=t,e),{})}function M(){if(w.value&&w.value.games&&w.value.games.length>0){const e=new Set;h.value=new Map,g.value=[],w.value.games.forEach(t=>{C.value.has(t.id)&&t.eventsConnectionsBase.forEach(t=>{t.hasMainCategory(y.value.categories)&&(t.setEventType(y.value),g.value.push(t),e.add(t.mainPlay.playerId))})}),e.forEach(e=>{const t=w.value.availablePlayersMap.get(e);if(t){const e=h.value.get(t.team_id);e?e.find(e=>e.player_id===t.player_id)||e.push({...t,isSelected:!0}):h.value.set(t.team_id,[{...t,isSelected:!0}])}})}}function O(e){y.value=e}function R(e){f.value=e,"events"===e&&(d.value.isSelected=!0,c.value.isSelected=!0)}function W(e){_.value=e}function j(e){b.value=e}function q({gamesIds:e,availableTeamsIds:t,currentTeamGamesSelected:a}){C.value=e,b.value=t,S.value=a,i.isGamePreMatch&&(V.value.clear(),i.playVideosPrivileges&&i.playVideosPrivileges.seasonAndPrivileges?a.forEach(e=>{const t=e.home_team===i.playVideosPrivileges.seasonAndPrivileges.teamId?1:e.visiting_team===i.playVideosPrivileges.seasonAndPrivileges.teamId?2:0;i.playVideosPrivileges.seasonAndPrivileges.playingAs.has(t)&&V.value.add(e.game_id)}):V.value=e),M()}function H(e){n.value=e.index,l.value=e.button}function J(e){const t={seasonId:i.game.is_live||0===i.game.game_status?i.game.seasonId:i.seasonSelected.id,isFeaturedPlayers:!1,mainSectionType:1,playListType:1,gameIdsToFilter:i.isGamePreMatch?Array.from(C.value.values()):[i.game.gameId],playerIds:[],teamIdsToFilter:Array.from(b.value.values()),categoryIds:e,teamId:i.isGamePreMatch?null:1===b.value.size?Array.from(b.value)[0]:0,matchResult:[1,2,3],currentPlayIndex:0};a("open-media-player",t)}return t.watch(()=>l.value.teamId,e=>{if(i.isGamePreMatch&&e){w.value&&!w.value.isSelected&&(w.value.isSelected=!0),k.value.isSelected=!0,w.value=T.get(e);const t=new Set,a=new Set;w.value&&(w.value.games.forEach(e=>{e.isSelected&&(t.add(e.id),a.add(e.team.team_id),a.add(e.rivalTeam.team_id))}),q({gamesIds:t,availableTeamsIds:a}))}},{immediate:!0}),t.watch(()=>i.game.gameId,e=>{e&&(d.value={...i.game.homeTeam,isSelected:!0},c.value={...i.game.awayTeam,isSelected:!0},P.value=new Set,s&&(clearInterval(s),s=null),4!==i.game.game_status||i.game.is_live?L(e,i.game.is_live&&4===i.game.game_status):async function(){try{(await async function(){try{const e={headers:{Authorization:""}},[t,a]=await Promise.all([m.get(`https://golstats-microservices.s3.us-west-2.amazonaws.com/chalkboard/chalkboard_${i.seasonSelected.id}_${i.game.homeTeam.team_id}.json`,e),m.get(`https://golstats-microservices.s3.us-west-2.amazonaws.com/chalkboard/chalkboard_${i.seasonSelected.id}_${i.game.awayTeam.team_id}.json`,e)]);return[t.data,a.data]}catch(e){throw new Error(e)}}()).forEach((e,t)=>{0===t&&(e.isHomeTeam=!0),T.set(e.team_id,function({isHomeTeam:e,acronym:t,team_id:a,team_name:s,colloquial_name:o,logo:n,categories:r,data:d,games:c,players:m,teams:p}){const y={logo:n,acronym:t,categories:r,teamId:a,name:s,colloquialName:o,isSelected:!0,availablePlayersMap:new Map},g=Bc.get(i.tournamentSelected.tournament_type),u=Object.values(p).reduce((e,t)=>(e.set(t.team_id,{...t,colloquial_name:t.colloquial_name||t.team_name}),e),new Map),h=Object.values(m).reduce((e,t)=>{y.availablePlayersMap.set(t.player_id,{...t});const a=e.get(t.team_id);return a?a.set(t.player_id,{...t}):e.set(t.team_id,new Map([[t.player_id,{...t}]])),e},new Map),v=c.reduce((e,t,a)=>{const i=g.get(t.matchday_id),s={...t,dateTimeMillis:new Date(t.date_time_utc).getTime(),id:t.game_id,roundAbbreviation:i?i.matchDayAbbreviation:"",playingAs:l.value.id===t.home_team?1:2,team:l.value.teamId===t.home_team?u.get(t.home_team):u.get(t.visiting_team),rivalTeam:l.value.teamId===t.home_team?u.get(t.visiting_team):u.get(t.home_team),homeTeam:u.get(t.home_team),awayTeam:u.get(t.visiting_team),playersSelected:new Set,eventsConnectionsBase:[],availablePlayersByTeamMap:new Map([[t.home_team,h.get(t.home_team)],[t.visiting_team,h.get(t.visiting_team)]]),availableTeamsByTeamMapSimple:new Map([[t.home_team,Array.from(h.get(t.home_team).values())],[t.visiting_team,Array.from(h.get(t.visiting_team).values())]]),teamsMap:new Map([[t.home_team,u.get(t.home_team)],[t.visiting_team,u.get(t.visiting_team)]]),isSelected:a<4};return e.set(t.game_id,s),e},new Map),f=new Map([[x.value[0].teamId,x.value[0]],[x.value[1].teamId,x.value[1]]]),_=function(e,t,a){const i=e.reduce((e,i)=>{const s=$(i),o=t.get(s.gameId);if(o){const t=s.relatedPlayId===s.playId,i=e.get(s.gameId),l=o.availablePlayersByTeamMap.get(s.teamId);if(a||(s.x1=1-s.x1,s.x2=1-s.x2,s.x3=1-s.x3,s.y1=1-s.y1,s.y2=1-s.y2,s.y3=1-s.y3),s.player=l?l.get(s.playerId):{},s.team=o.teamsMap.get(s.teamId)||{},i){const e=i.get(s.relatedPlayId);if(e)t&&(e.mainPlay=s),e.playsIds.has(s.playId)||(e.events.push(s),e.categoriesIds.add(s.categoryId),e.playersIds.add(s.playerId),e.playsIds.add(s.playId),e.players.push(s.player));else{const e={events:[s],categoriesIds:new Set([s.categoryId]),playersIds:new Set([s.playerId]),playsIds:new Set([s.playId]),players:[s.player]};t&&(e.mainPlay=s),i.set(s.relatedPlayId,e)}}else{const a=new Map,i={events:[s],categoriesIds:new Set([s.categoryId]),playersIds:new Set([s.playerId]),playsIds:new Set([s.playId]),players:[s.player]};t&&(i.mainPlay=s),a.set(s.relatedPlayId,i),e.set(s.gameId,a)}}return e},new Map);return i}(d,v,e);return y.games=Array.from(v.values()).map(e=>{const t=[],i=_.get(e.id);return i&&Array.from(i.values()).forEach(i=>{i.mainPlay&&(i.mainPlay.gameAux={homeTeam:e.homeTeam,awayTeam:e.awayTeam},t.push(new xc(i.mainPlay,i.events,i.categoriesIds,i.playersIds,{homeTeam:e.homeTeam,awayTeam:e.awayTeam,roundAbbreviation:e.roundAbbreviation},f.get(a))))}),{...e,eventsConnectionsBase:t}}),y}(e))}),w.value&&!w.value.isSelected&&(w.value.isSelected=!0),k.value.isSelected=!0,w.value=T.get(l.value.teamId)}catch(e){throw new Error(e)}}())},{immediate:!0}),t.watch(()=>x.value,()=>{n.value=0,l.value=x.value[n.value]},{immediate:!0,deep:!0}),t.watch(()=>y.value.value,()=>{i.isGamePreMatch?M():(h.value=new Map([[i.game.homeTeam.team_id,[]],[i.game.awayTeam.team_id,[]]]),y.value.name&&D(u.value))},{immediate:!0,deep:!0}),(a,i)=>(t.openBlock(),t.createElementBlock("div",Gc,[e.isGamePreMatch?(t.openBlock(),t.createElementBlock("div",zc,[e.widthSection>590?(t.openBlock(),t.createElementBlock("div",Ac,[Dc,t.createTextVNode("  Con base en las estadísticas de los partidos ya jugados en el torneo. ")])):t.createCommentVNode("",!0),e.widthSection>340&&e.widthSection<=590?(t.openBlock(),t.createElementBlock("div",Lc,[$c,t.createTextVNode("  "),Mc,t.createTextVNode("Con base en las estadísticas de los partidos ya "),Oc,t.createTextVNode(" jugados en el torneo. ")])):t.createCommentVNode("",!0),e.widthSection<=340?(t.openBlock(),t.createElementBlock("div",Rc,[Wc,t.createTextVNode("  "),jc,t.createTextVNode("Con base en las estadísticas de los "),qc,t.createTextVNode("partidos ya jugados en el torneo. ")])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.widthSection>420?"container-switch-pre-match-teams":"container-switch-pre-match-teams-mobile")},[t.createVNode($r,{"selected-button-index":n.value,buttons:x.value,width:"320px","border-radius":"16px",onChange:H},null,8,["selected-button-index","buttons"])],2)])):t.createCommentVNode("",!0),t.createElementVNode("div",Hc,[t.createElementVNode("div",Jc,[t.createElementVNode("div",Uc,[t.createElementVNode("div",Zc,[t.createVNode(t.unref(r.GSCCheckbox),{modelValue:E.value,"onUpdate:modelValue":i[0]||(i[0]=e=>E.value=e),label:"Mostrar zona de asistencia"},null,8,["modelValue"])]),t.createVNode(bd,{"events-connections":g.value,"list-type":f.value,"players-selected":_.value,"teams-selected":b.value,"is-game-pre-match":e.isGamePreMatch,"is-assistant-zone-visible":E.value},null,8,["events-connections","list-type","players-selected","teams-selected","is-game-pre-match","is-assistant-zone-visible"])]),t.createElementVNode("div",Xc,[t.createVNode(Ed,{"events-connections":g.value,"list-type":f.value,"players-selected":_.value,"teams-selected":b.value,"is-game-pre-match":e.isGamePreMatch},null,8,["events-connections","list-type","players-selected","teams-selected","is-game-pre-match"])]),t.createElementVNode("div",Yc,t.toDisplayString(z.value),1)]),t.createElementVNode("div",Qc,[t.createVNode(Tc,{"is-female":e.isFemale,"home-team":d.value,"away-team":c.value,"tournament-selected":e.tournamentSelected,"list-events-to-display":p.value,"available-players-by-team":h.value,"list-type":f.value,"can-play-videos":A.value,"is-game-pre-match":e.isGamePreMatch,"selected-team-data":w.value,"rival-teams":k.value,"team-selected":l.value,"total-events":B.value,"total-events-privileges-vr":G.value,"is-privileges-vr-applicable":F.value,"await-for-list-events":"",onChangeEventType:O,onChangeListType:R,onChangePlayers:W,onChangeTeams:j,onChangeGames:q,onClickPlay:J},null,8,["is-female","home-team","away-team","tournament-selected","list-events-to-display","available-players-by-team","list-type","can-play-videos","is-game-pre-match","selected-team-data","rival-teams","team-selected","total-events","total-events-privileges-vr","is-privileges-vr-applicable"])])])]))}},[["__scopeId","data-v-96de1508"]]),em={ref:"card",class:"card-volumetric-field"},tm=M({__name:"VolumetricField",props:{passesPlays:{type:Array,default:()=>[]},playIndexes:{type:Object,default:()=>{}}},setup(e){const a=e,i=new Set([2,20,308,310]),s=[[0,"rgb(12,31,82)"],[.2,"rgb(115,248,253)"],[.4,"rgb(117,251,98)"],[.6,"rgb(255,255,84)"],[.8,"rgb(242,168,59)"],[1,"rgb(234,55,36)"]];let o=null;const l=t.ref(null),n=t.ref(null),r=t.ref(0),d=t.ref(null);function c(e){return Array.from({length:e},()=>0)}function m(e,t){let a=.01351,i=.02439,s=0,o=0,l=[];const n=t.length,r=Math.floor(n/10);for(;s<74;)o=t.filter(t=>1-t.y3>=s*a&&1-t.y3<=(s+1)*a&&1-t.x3>=e*i&&1-t.x3<=(e+1)*i).map(e=>e.y3).length,l.push(parseFloat((o/r).toFixed(4))),s++;return l.reverse()}function p(e,t,a){const i=[];let s=0,o=0;i.push(e[0]);for(let l=1;l<a-1;l++){const a=[];a.push(e[l][0]);for(let i=1;i<t-1;i++)s=e[l][i-1],o=e[l][i+1],a.push(s+.5*(e[l][i]+o-s));a.push(e[l][t-1]),i.push(a)}i.push(e[a-1]);for(let l=1;l<t-1;l++)for(let e=1;e<a-1;e++)s=i[e-1][l],o=i[e+1][l],i[e][l]=s+.5*(i[e][l]+o-s);return i}function y(e){return Math.round(.375*e,0)}function g(e){return(e-100)/200*-32-14}return t.watch(()=>a.passesPlays,e=>{!function(e){let t=function(e){let t=[c(74),c(74)],a=[],i=39;for(;i>0&&i<=39;)a=m(i,e),t.push(a),i--;return t.push(c(74),c(74)),t}(e),a=t.length,i=t[0].length;t=p(p(t,i,a),i,a),i=t[0].length,a=t.length;const o=function(e){let t=0,a=0;for(let i=0;i<e.length;i++){a+=e[i].reduce(function(e,t){return e+t});const s=Math.max.apply(null,e[i]);s>t&&(t=s)}return t}(t),l=[{z:t,type:"surface",connectgaps:!0,opacity:.25,colorscale:s,autoscale:!1,showscale:!1}],u={scene:{xaxis:{title:"",showgrid:!1,showline:!1,zeroline:!1,showticklabels:!1,showbackground:!1,backgroundcolor:"transparent",range:[0,i]},yaxis:{title:"",showgrid:!1,showline:!1,zeroline:!1,showticklabels:!1,showbackground:!1,backgroundcolor:"transparent",range:[0,a]},zaxis:{title:"",showgrid:!1,showline:!1,zeroline:!1,showticklabels:!1,showbackground:!1,backgroundcolor:"transparent",range:[0,5*o]},aspectratio:{x:1,y:.419,z:1},camera:{eye:{x:-.006743829259037479,y:.33535167247712533,z:-.0014332540873207011},center:{x:-.00679220694254041,y:.10728256468650094,z:-.30848979628595363}}},showlegend:!1,width:r.value,height:y(r.value),paper_bgcolor:"rgba(0,0,0,0)",margin:{l:0,r:0,b:0,t:0}};n.value&&(n.value.style.height=`${y(r.value)}px`);const h=[];for(let n=0;n<i;n++){const e=[],t=[],i=[];for(let s=0;s<a;s++)e.push(n),t.push(s),i.push(l[0].z[s][n]);h.push({x:e,y:t,z:i,type:"scatter3d",mode:"lines",line:{cmin:-.1,cmax:o,width:1,color:i,colorscale:s,shape:"spline",smoothing:.6,dash:"dotline"}})}for(let n=0;n<a;n++){const e=[],t=[],a=[];for(let s=0;s<i;s++)e.push(s),t.push(n),a.push(l[0].z[n][s]);h.push({x:e,y:t,z:a,type:"scatter3d",mode:"lines",line:{cmin:-.1,cmax:o,width:1,color:a,colorscale:s,shape:"spline",smoothing:.6,dash:"dotline"}})}_.newPlot("surface-plot",l.concat(h),u,{displayModeBar:!1},{responsive:!0}),d.value=document.getElementsByClassName("plot-container")[0],d.value&&(d.value.style.top=`${g(y(r.value))}px`)}(e.reduce((e,t)=>(i.has(t[a.playIndexes.categoryId])&&e.push({x1:t[a.playIndexes.coordinate1X],y1:t[a.playIndexes.coordinate1Y],x2:t[a.playIndexes.coordinate2X],y2:t[a.playIndexes.coordinate2Y],x3:t[a.playIndexes.coordinate3X],y3:t[a.playIndexes.coordinate3Y]}),e),[]))}),t.watch(()=>r.value,(e,t)=>{d.value&&(!function(e){_.relayout(l.value,{width:e,height:y(e)})}(e),n.value.style.height=`${y(e)}px`,d.value.style.top=`${g(y(e))}px`)}),t.onMounted(()=>{l.value&&(l.value.style.pointerEvents="none"),o=new ResizeObserver(e=>{for(const t of e)r.value=t.contentRect.width}),o.observe(l.value)}),(e,a)=>(t.openBlock(),t.createElementBlock("div",em,[t.createElementVNode("div",{ref_key:"volumetricField",ref:n,class:"card-volumetric-field__volumetric-field"},[t.createElementVNode("div",{ref_key:"surfacePlot",ref:l,id:"surface-plot"},null,512)],512)],512))}},[["__scopeId","data-v-46439c02"]]),am=e=>(t.pushScopeId("data-v-885deed1"),e=e(),t.popScopeId(),e),im=am(()=>t.createElementVNode("div",{class:"attack-direction__line"},null,-1)),sm=am(()=>t.createElementVNode("div",{class:"attack-direction__text"},"Ataca",-1)),om=M({__name:"AttackDirection",props:{team:{type:Object,required:!0}},setup(e){const a=e,i=t.computed(()=>({"--flex-direction-info":a.team.isHomeTeam?"flex":"row-reverse","--justify-content-info":a.team.isHomeTeam?"flex-start":"flex-end","--arrow-color":a.team.isHomeTeam?"#336dff":"#7ed321"}));return(a,s)=>(t.openBlock(),t.createElementBlock("div",{class:"attack-direction",style:t.normalizeStyle(i.value)},[im,t.createElementVNode("div",{class:t.normalizeClass("attack-direction__triangle-"+(e.team.isHomeTeam?"right":"left"))},null,2),sm],4))}},[["__scopeId","data-v-885deed1"]]),lm=["playId","gameId","teamId","playerId","momentOfPlay","categoryId","categoryType","matchLapse","section","matchResult","playingAs","total","coordinate1X","coordinate1Y","coordinate2X","coordinate2Y","coordinate3X","coordinate3Y","xGi","xGf","distance","fieldArea"];let nm=null;const rm={class:"volumetric-section-container"},dm=(e=>(t.pushScopeId("data-v-b3d91153"),e=e(),t.popScopeId(),e))(()=>t.createElementVNode("div",{class:"volumetric-section-container__title"},"Volumétrica",-1)),cm={key:0,class:"volumetric-section-container__switch"},mm={class:"volumetric-section-container__attack-direction"},pm={class:"volumetric-section-container__field"},ym=M({__name:"VolumetricSectionContainer",props:{game:{type:Object,default:()=>({})},seasonSelected:{type:Object,default:()=>({})},token:{type:String,default:""},isGamePreMatch:{type:Boolean,default:!1},teamSelectedPreMatch:{type:Object,default:()=>({})},volumetricFieldIntervalMinutes:{type:Number,default:2}},setup(e){const a=e,i=(nm||(nm=ve(lm)),nm),s=new Set([...new Set([2,20,308,310]),...new Set([3,21,309])]);let o=null;const l=t.ref(0),n=t.ref(new Map),r=t.ref({teamId:0}),d=t.computed(()=>[{teamId:a.game.homeTeam.team_id,text:a.game.homeTeam.colloquial_name,img:a.game.homeTeam.logo,isHomeTeam:!0},{teamId:a.game.awayTeam.team_id,text:a.game.awayTeam.colloquial_name,img:a.game.awayTeam.logo,isHomeTeam:!1}]),c=t.computed(()=>n.value.get(a.isGamePreMatch?a.teamSelectedPreMatch.teamId:r.value.teamId)||[]);async function p(e=!1){try{const t=await g();n.value.set(a.game.homeTeam.team_id,t.homeTeam),n.value.set(a.game.awayTeam.team_id,t.awayTeam),e&&(o=setInterval(()=>{p()},6e4*a.volumetricFieldIntervalMinutes))}catch(t){throw new Error(t)}}function y(e){return 4!==a.game.game_status||a.game.is_live?e[i.gameId]===a.game.gameId:e[i.gameId]!==a.game.gameId}async function g(e=0){try{let t={homeTeam:[],awayTeam:[]};if(a.game.is_live||0===a.game.game_status){const e=await m.get(`https://2uj7ojhmt5.execute-api.us-west-2.amazonaws.com/prod/V2/statisticsLive/${a.game.gameId}`),o=e.data&&e.data.data||[],l=new Set;o.forEach(e=>{l.add(e[i.categoryId]),e[i.teamId]===a.game.homeTeam.team_id&&s.has(e[i.categoryId])&&y(e)?(u(e),t.homeTeam.push(e)):e[i.teamId]===a.game.awayTeam.team_id&&s.has(e[i.categoryId])&&y(e)&&(e[i.coordinate1Y]=1-e[i.coordinate1Y],e[i.coordinate2Y]=1-e[i.coordinate2Y],e[i.coordinate3Y]=1-e[i.coordinate3Y],e[i.coordinate1X]=1-e[i.coordinate1X],e[i.coordinate2X]=1-e[i.coordinate2X],e[i.coordinate3X]=1-e[i.coordinate3X],u(e),t.awayTeam.push(e))})}else{const[o,l]=await Promise.all([m.get(`https://golstats-microservices.s3-us-west-2.amazonaws.com/statsTeamBySeason-${e||a.game.seasonId}-${a.game.homeTeam.team_id}.json`,{headers:{Authorization:""}}),m.get(`https://golstats-microservices.s3-us-west-2.amazonaws.com/statsTeamBySeason-${e||a.game.seasonId}-${a.game.awayTeam.team_id}.json`,{headers:{Authorization:""}})]);if(!o.data.data.posession.length&&!l.data.data.posession.length&&!e)return g(a.game.regularSeasonId);t={homeTeam:o.data.data.posession.filter(e=>e[i.teamId]===a.game.homeTeam.team_id&&s.has(e[i.categoryId])&&y(e)),awayTeam:l.data.data.posession.filter(e=>!(e[i.teamId]!==a.game.awayTeam.team_id||!s.has(e[i.categoryId])||!y(e))&&(e[i.coordinate1Y]=1-e[i.coordinate1Y],e[i.coordinate2Y]=1-e[i.coordinate2Y],e[i.coordinate3Y]=1-e[i.coordinate3Y],e[i.coordinate1X]=1-e[i.coordinate1X],e[i.coordinate2X]=1-e[i.coordinate2X],e[i.coordinate3X]=1-e[i.coordinate3X],!0))}}return t}catch(t){throw new Error(t)}}function u(e){const t=e[i.coordinate1X],a=e[i.coordinate2X],s=e[i.coordinate3X];return e[i.coordinate1X]=e[i.coordinate1Y],e[i.coordinate2X]=e[i.coordinate2Y],e[i.coordinate3X]=e[i.coordinate3Y],e[i.coordinate1Y]=t,e[i.coordinate2Y]=a,e[i.coordinate3Y]=s,e}function h(e){l.value=e.index,r.value=e.button}function v(){o&&clearInterval(o)}return t.watch(()=>d.value,()=>{l.value=0,r.value=d.value[l.value]},{immediate:!0}),t.watch(()=>a.game.gameId,e=>{e&&(v(),p(a.game.is_live&&4===a.game.game_status))},{immediate:!0}),t.onUnmounted(()=>{v()}),(a,s)=>(t.openBlock(),t.createElementBlock("div",rm,[dm,e.isGamePreMatch?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",cm,[t.createVNode($r,{"selected-button-index":l.value,buttons:d.value,width:"320px","border-radius":"16px",onChange:h},null,8,["selected-button-index","buttons"])])),t.createElementVNode("div",mm,[t.createVNode(om,{team:e.isGamePreMatch?e.teamSelectedPreMatch:r.value},null,8,["team"])]),t.createElementVNode("div",pm,[t.createVNode(tm,{"passes-plays":c.value,"play-indexes":t.unref(i)},null,8,["passes-plays","play-indexes"])])]))}},[["__scopeId","data-v-b3d91153"]]);let gm=null;const um={components:{GSCHighlights:v.GSCHighlights,ToggleButtons:$r,VolumetricSectionContainer:ym,DataProminentGame:_l,HighlightsProminentGameLive:Hn,HighlightsProminentGame:Vn,GSCRadioToggle:rn,FieldPosesion:Ql,EventsLine:Gr,ChalkboardSectionContainer:Kc},props:{timeLiveProminentData:{type:Number,default:6e4},timeLiveHighlightsProminentAndVideo:{type:Number,default:6e4},timeLivePossesion:{type:Number,default:6e4},game:{type:Object,default:()=>({})},token:{type:String,default:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"},seasonSelected:{type:Object,default:()=>({})},isWidget:{type:Boolean,default:!1},teamWidget:{type:Number,default:0},tournamentSelected:{type:Object,default:()=>({})},canPlayVideos:{type:Boolean,default:!1},is_captured:{type:Number,default:1},videoPrivilegesPlayingAs:{type:Set,default:()=>new Set([1,2])},playVideosPrivileges:{type:Object,default:null},volumetricFieldIntervalMinutes:{type:Number,default:2},chalkboardIntervalMinutes:{type:Number,default:2},gameEventsIntervalMinutes:{type:Number,default:1}},data:()=>({isDataProminentGameLoading:!0,areHighlightsLoading:!0,widthSection:0,showleyendliveData:!1,showgoalsliveData:!1,showsummaryliveData:!1,viewVolumtrica:!0,teamButtonSelectedIndex:0,switchTypeViewFiled:"Porcentajes",teamSelected:{teamId:0},isFirstDataLoaded:!1}),computed:{toggleButtons(){return[{teamId:this.game.homeTeam.team_id,text:this.game.homeTeam.colloquial_name,img:this.game.homeTeam.logo,isHomeTeam:!0},{teamId:this.game.awayTeam.team_id,text:this.game.awayTeam.colloquial_name,img:this.game.awayTeam.logo,isHomeTeam:!1}]},isGamePreMatch(){return this.game&&4===this.game.game_status&&!this.game.is_live}},watch:{widthSection(){this.viewVolumtrica=this.widthSection>=760},toggleButtons:{handler(){this.teamButtonSelectedIndex=0,this.teamSelected=this.toggleButtons[0]},deep:!0,immediate:!0}},methods:{onDataProminentGameLoading(e){this.isFirstDataLoaded||(this.isDataProminentGameLoading=e,this.areHighlightsLoading=!0,e||setTimeout(()=>{this.areHighlightsLoading=!1,this.isFirstDataLoaded=!0},500))},intervalidhighlive(e){this.$emit("intervalidhighlive",e)},intervalidpossesion(e){this.$emit("intervalidpossesion",e)},onChangeToggle(e){this.teamButtonSelectedIndex=e.index,this.teamSelected=e.button},setUpResizeObserver(){if(!window.ResizeObserver)throw new Error("Resize observer not supported!");gm=new ResizeObserver(()=>{this.widthSection=this.$refs.prominent.clientWidth}),gm.observe(this.$refs.prominent)},async ChangeRadio(e){"string"==typeof e&&(this.switchTypeViewFiled=e)},openmedia(e){this.$emit("openmedia",e)},onClickPlayEvent(e){const t={seasonId:1===this.game.is_live||0===this.game.game_status?this.game.seasonId:this.seasonSelected.id,isFeaturedPlayers:!1,mainSectionType:1,playListType:1,playerIds:[],categoryIds:[e.categoryId],matchResult:[1,2,3],currentPlayIndex:0,playsIds:[e.playId]};this.$emit("openmedia",t)},showleyendlive(e){this.showleyendliveData=e},showgoalslive(e){this.showgoalsliveData=e},showsummarylive(e){this.showsummaryliveData=e},onOpenMediaPlayer(e){this.canPlayVideos&&this.$emit("open-media-player",e)},getContainerClass(){return this.widthSection>830?"highlights-container-desktop":"highlights-container-mobile"}},async mounted(){setTimeout(()=>{this.setUpResizeObserver()},1e3)}},hm=e=>(t.pushScopeId("data-v-2ea455b3"),e=e(),t.popScopeId(),e),vm={class:"container-prominent",ref:"prominent"},fm={class:"container-prominent-data"},_m={class:"container-prominent-section"},bm={key:0,class:"highlights-containers"},Sm={class:"highlights-content"},Tm={key:1,class:"highlights-containers"},wm=hm(()=>t.createElementVNode("div",{class:"fields-section-title"},"Posesión",-1)),km={key:0,class:"container-leyend-prematch"},Cm=hm(()=>t.createElementVNode("span",{class:"leyend-bold"},"IMPORTANTE:",-1)),Vm={key:1,class:"container-leyend-prematch-movil"},Pm=hm(()=>t.createElementVNode("span",{class:"leyend-bold"},"IMPORTANTE:",-1)),Im=hm(()=>t.createElementVNode("br",null,null,-1)),Nm=hm(()=>t.createElementVNode("br",null,null,-1)),Em={key:2,class:"container-leyend-prematch-movil"},xm=hm(()=>t.createElementVNode("span",{class:"leyend-bold"},"IMPORTANTE:",-1)),Bm=hm(()=>t.createElementVNode("br",null,null,-1)),Fm=hm(()=>t.createElementVNode("br",null,null,-1)),Gm={class:"container-switch-toggle"},zm={class:"container-prominent-section__chalkboard"},Am=hm(()=>t.createElementVNode("div",{class:"fields-section-title"},"Pizarra",-1));const Dm=M(um,[["render",function(e,a,i,s,o,l){const n=t.resolveComponent("DataProminentGame"),r=t.resolveComponent("HighlightsProminentGameLive"),d=t.resolveComponent("HighlightsProminentGame"),c=t.resolveComponent("GSCHighlights"),m=t.resolveComponent("EventsLine"),p=t.resolveComponent("ToggleButtons"),y=t.resolveComponent("GSCRadioToggle"),g=t.resolveComponent("FieldPosesion"),u=t.resolveComponent("VolumetricSectionContainer"),h=t.resolveComponent("ChalkboardSectionContainer");return t.openBlock(),t.createElementBlock("div",vm,[t.createElementVNode("div",fm,[t.createVNode(n,{"is-widget":i.isWidget,"team-widget":i.teamWidget,"time-live-prominent-data":i.timeLiveProminentData,game:i.game,"can-play-videos":i.canPlayVideos,onOpenmedia:l.openmedia,onLoading:l.onDataProminentGameLoading},null,8,["is-widget","team-widget","time-live-prominent-data","game","can-play-videos","onOpenmedia","onLoading"])]),t.createElementVNode("div",_m,[1===i.game.is_live||0===i.game.game_status||1===i.game.game_status?(t.openBlock(),t.createElementBlock("div",bm,[t.createElementVNode("div",{class:t.normalizeClass(l.getContainerClass())},[o.showleyendliveData?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(o.widthSection>830?"highlights-header":"highlights-header-mobile")},[Object.keys(i.game).length>0&&Object.keys(i.tournamentSelected).length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(o.widthSection>830?"semifinal-tag":"semifinal-tag-mobile")},t.toDisplayString(41!=i.tournamentSelected.id?i.game.matchday_name.replace("Matchday","Jornada").replace("de Final","").replace("Playoffs 1","Cuartos de Final Ida").replace("Playoffs 2","Cuartos de Final Vuelta").replace("Playoffs 3","Semifinal Ida").replace("Playoffs 4","Semifinal Vuelta").replace("Playoffs 5","Final Ida").replace("Playoffs 6","Final Vuelta"):"Matchday 10"==i.game.matchday_name?"Final":i.game.matchday_name.replace("Matchday 1","16vos Ida").replace("Matchday 2","16vos Vuelta").replace("Matchday 3","8vos Ida").replace("Matchday 4","8vos Vuelta").replace("Matchday 5","4tos Ida").replace("Matchday 6","4tos Vuelta").replace("Matchday 7","Semifinal Ida").replace("Matchday 8","Semifinal Vuelta").replace("Matchday 9","Final").replace("Matchday 10","Final")),3)):t.createCommentVNode("",!0),t.createElementVNode("h2",{class:t.normalizeClass(o.widthSection>830?"highlights-title":"highlights-title-mobile")}," HIGHLIGHTS DEL PARTIDO ",2)],2)):t.createCommentVNode("",!0),t.createElementVNode("div",Sm,[t.createElementVNode("div",{class:"highlight-card",style:t.normalizeStyle(o.showgoalsliveData?o.widthSection>830?"width: 49%;":"width: 100%;":"")},[1!==i.game.is_live&&0!==i.game.game_status||!i.canPlayVideos?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[1===i.game.status&&i.canPlayVideos?(t.openBlock(),t.createBlock(d,{key:0,onShowsummarylive:l.showsummarylive,onShowleyendlive:l.showleyendlive,onShowgoalslive:l.showgoalslive,onIntervalidhighlive:l.intervalidhighlive,"title-card":"GOLES","can-play-videos":i.canPlayVideos,game:i.game,onOpenmedia:l.openmedia},null,8,["onShowsummarylive","onShowleyendlive","onShowgoalslive","onIntervalidhighlive","can-play-videos","game","onOpenmedia"])):t.createCommentVNode("",!0)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[1===i.game.is_live||0===i.game.game_status?(t.openBlock(),t.createBlock(r,{key:0,"time-live-highlights-prominent-and-video":i.timeLiveHighlightsProminentAndVideo,"can-play-videos":i.canPlayVideos,game:i.game,"title-card":"GOLES",onShowgoalslive:l.showgoalslive,onShowsummarylive:l.showsummarylive,onShowleyendlive:l.showleyendlive,onIntervalidhighlive:l.intervalidhighlive,onOpenmedia:l.openmedia},null,8,["time-live-highlights-prominent-and-video","can-play-videos","game","onShowgoalslive","onShowsummarylive","onShowleyendlive","onIntervalidhighlive","onOpenmedia"])):t.createCommentVNode("",!0)],64))],4),t.createElementVNode("div",{class:"highlight-card",style:t.normalizeStyle(o.showsummaryliveData?o.widthSection>830?"width: 49%;":"width: 100%;":"")},[1!==i.game.is_live&&0!==i.game.game_status||!i.canPlayVideos?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[1===i.game.status&&i.canPlayVideos?(t.openBlock(),t.createBlock(d,{key:0,onShowsummarylive:l.showsummarylive,onShowleyendlive:l.showleyendlive,onShowgoalslive:l.showgoalslive,onIntervalidhighlive:l.intervalidhighlive,"can-play-videos":i.canPlayVideos,game:i.game,onOpenmedia:l.openmedia},null,8,["onShowsummarylive","onShowleyendlive","onShowgoalslive","onIntervalidhighlive","can-play-videos","game","onOpenmedia"])):t.createCommentVNode("",!0)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[1===i.game.is_live||0===i.game.game_status?(t.openBlock(),t.createBlock(r,{key:0,"time-live-highlights-prominent-and-video":i.timeLiveHighlightsProminentAndVideo,"can-play-videos":i.canPlayVideos,game:i.game,onShowleyendlive:l.showleyendlive,onShowgoalslive:l.showgoalslive,onShowsummarylive:l.showsummarylive,onIntervalidhighlive:l.intervalidhighlive,onOpenmedia:l.openmedia},null,8,["time-live-highlights-prominent-and-video","can-play-videos","game","onShowleyendlive","onShowgoalslive","onShowsummarylive","onIntervalidhighlive","onOpenmedia"])):t.createCommentVNode("",!0)],64))],4)])],2)])):(t.openBlock(),t.createElementBlock("div",Tm,[o.isDataProminentGameLoading||1!==i.game.is_live&&0!==i.game.game_status||!i.canPlayVideos?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[1===i.game.status&&i.canPlayVideos?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[i.canPlayVideos?(t.openBlock(),t.createBlock(c,{key:0,data:{game:i.game.gameId,season:i.game.seasonId,type:"historic"},"can-play-videos":i.canPlayVideos,"video-privileges-playing-as":i.videoPrivilegesPlayingAs,"privileges-team-id":i.playVideosPrivileges?i.playVideosPrivileges.seasonAndPrivileges.teamId:0,onOpenmedia:l.openmedia},null,8,["data","can-play-videos","video-privileges-playing-as","privileges-team-id","onOpenmedia"])):t.createCommentVNode("",!0)],64))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[],64))])),l.isGamePreMatch?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",{key:2,class:t.normalizeClass(o.widthSection>920?"container-prominent-section__events-line":"container-prominent-section__events-line-mobile")},[o.areHighlightsLoading?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(m,{key:0,token:i.token,game:i.game,widthScreen:o.widthSection,"can-play-videos":i.canPlayVideos,"game-events-interval-minutes":i.gameEventsIntervalMinutes,onPlayVideo:l.onClickPlayEvent},null,8,["token","game","widthScreen","can-play-videos","game-events-interval-minutes","onPlayVideo"]))],2)),o.areHighlightsLoading?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",{key:3,class:t.normalizeClass(o.widthSection>760?"fields-section-container":"fields-section-container-movil")},[wm,4===i.game.game_status&&1!=i.game.is_live?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[o.widthSection>590?(t.openBlock(),t.createElementBlock("div",km,[Cm,t.createTextVNode("  Con base en las estadisticas de los partidos ya jugados en el torneo. ")])):t.createCommentVNode("",!0),o.widthSection>340&&o.widthSection<=590?(t.openBlock(),t.createElementBlock("div",Vm,[Pm,t.createTextVNode("  "),Im,t.createTextVNode("Con base en las estadisticas de los partidos ya "),Nm,t.createTextVNode(" jugados en el torneo. ")])):t.createCommentVNode("",!0),o.widthSection<=340?(t.openBlock(),t.createElementBlock("div",Em,[xm,t.createTextVNode("  "),Bm,t.createTextVNode("Con base en las estadisticas de los "),Fm,t.createTextVNode("partidos ya jugados en el torneo. ")])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(o.widthSection>420?"container-switch-prematch-teams":"container-switch-prematch-teams-movil")},[t.createVNode(p,{"selected-button-index":o.teamButtonSelectedIndex,buttons:l.toggleButtons,width:"320px","border-radius":"16px",onChange:l.onChangeToggle},null,8,["selected-button-index","buttons","onChange"])],2)],64)):t.createCommentVNode("",!0),t.withDirectives(t.createElementVNode("div",Gm,[t.createVNode(y,{height:"20px",width:"41px","background-color":"none","width-circle":"15px","height-circle":"15px","circle-color-switch":"#CBEE6B","font-color":"#ffffff","value-default":"Porcentajes",textOptionLeft:"Porcentajes",textOptionRight:"Volumétrico",onChange:l.ChangeRadio},null,8,["onChange"])],512),[[t.vShow,o.widthSection<=760]]),t.createElementVNode("div",{class:t.normalizeClass(o.widthSection>760?"fields-container":"fields-container-movil")},[t.withDirectives(t.createElementVNode("div",{class:t.normalizeClass(o.widthSection>760?"field-possesion-container":"field-possesion-container-movil")},[t.createVNode(g,{"width-Section":o.widthSection,game:i.game,"time-live-possesion":i.timeLivePossesion,onIntervalidpossesion:l.intervalidpossesion,"team-selected":0===o.teamSelected.teamId?l.toggleButtons[0]:o.teamSelected},null,8,["width-Section","game","time-live-possesion","onIntervalidpossesion","team-selected"])],2),[[t.vShow,"Porcentajes"===o.switchTypeViewFiled||o.widthSection>760]]),t.withDirectives(t.createElementVNode("div",{class:t.normalizeClass(o.widthSection>760?"field-volumetrica-container":"field-volumetrica-container-movil")},[t.createVNode(u,{game:i.game,"season-selected":i.seasonSelected,token:i.token,"is-game-pre-match":l.isGamePreMatch,"team-selected-pre-match":o.teamSelected,"volumetric-field-interval-minutes":i.volumetricFieldIntervalMinutes},null,8,["game","season-selected","token","is-game-pre-match","team-selected-pre-match","volumetric-field-interval-minutes"])],2),[[t.vShow,o.viewVolumtrica&&o.widthSection>760||"Volumétrico"===o.switchTypeViewFiled]])],2),t.createCommentVNode("",!0)],2)),t.createElementVNode("div",zm,[Am,o.areHighlightsLoading?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(h,{key:0,"is-female":1===i.tournamentSelected.is_female,game:i.game,"season-selected":i.seasonSelected,"tournament-selected":i.tournamentSelected,token:i.token,"width-section":o.widthSection,"can-play-videos":i.canPlayVideos,"is-game-pre-match":l.isGamePreMatch,"play-videos-privileges":i.playVideosPrivileges,"volumetric-field-interval-minutes":i.volumetricFieldIntervalMinutes,"chalkboard-interval-minutes":i.chalkboardIntervalMinutes,"game-events-interval-minutes":i.gameEventsIntervalMinutes,onOpenMediaPlayer:l.onOpenMediaPlayer},null,8,["is-female","game","season-selected","tournament-selected","token","width-section","can-play-videos","is-game-pre-match","play-videos-privileges","volumetric-field-interval-minutes","chalkboard-interval-minutes","game-events-interval-minutes","onOpenMediaPlayer"]))])])],512)}],["__scopeId","data-v-2ea455b3"]]),Lm={class:"datagame-container"},$m=M({__name:"GSCProminentMain",props:{timeLiveProminentData:{type:Number,default:6e4},timeLiveHighlightsProminentAndVideo:{type:Number,default:6e4},timeLivePossesion:{type:Number,default:6e4},game:{type:Object,default:()=>({})},seasonSelected:{type:Object,default:()=>({})},tournamentSelected:{type:Object,default:()=>({})},isWidget:{type:Boolean,default:!1},teamWidget:{type:Number,default:0},canPlayVideos:{type:Boolean,default:!1},is_captured:{type:Number,default:1},videoPrivilegesPlayingAs:{type:Set,default:()=>new Set([1,2])},playVideosPrivileges:{type:Object,default:null},volumetricFieldIntervalMinutes:{type:Number,default:2},chalkboardIntervalMinutes:{type:Number,default:2},gameEventsIntervalMinutes:{type:Number,default:1}},emits:["click-play-event","openmedia","intervalidpossesion","intervalidhighlive"],setup(e,{emit:a}){function i(e){a("intervalidhighlive",e)}function s(e){a("intervalidpossesion",e)}function o(e){a("openmedia",e)}function l(e){a("openmedia",e)}return(a,n)=>(t.openBlock(),t.createElementBlock("div",Lm,[t.createVNode(Dm,{game:e.game,is_captured:e.is_captured,"is-widget":e.isWidget,"team-widget":e.teamWidget,"time-live-prominent-data":e.timeLiveProminentData,"time-live-highlights-prominent-and-video":e.timeLiveHighlightsProminentAndVideo,"time-live-possesion":e.timeLivePossesion,"season-selected":e.seasonSelected,"tournament-selected":e.tournamentSelected,"can-play-videos":e.canPlayVideos,"video-privileges-playing-as":e.videoPrivilegesPlayingAs,"play-videos-privileges":e.playVideosPrivileges,"volumetric-field-interval-minutes":e.volumetricFieldIntervalMinutes,"chalkboard-interval-minutes":e.chalkboardIntervalMinutes,"game-events-interval-minutes":e.gameEventsIntervalMinutes,onIntervalidpossesion:s,onIntervalidhighlive:i,onOpenmedia:o,onOpenMediaPlayer:l},null,8,["game","is_captured","is-widget","team-widget","time-live-prominent-data","time-live-highlights-prominent-and-video","time-live-possesion","season-selected","tournament-selected","can-play-videos","video-privileges-playing-as","play-videos-privileges","volumetric-field-interval-minutes","chalkboard-interval-minutes","game-events-interval-minutes"])]))}},[["__scopeId","data-v-f33283ce"]]),Mm={class:"datagame-container"},Om={__name:"GSCDatosGSMainAvanced",props:{isWidget:{type:Boolean,default:!1},teamWidget:{type:Number,default:0},game:{type:Object,default:()=>({gameId:79623,seasonId:1772,status:1,dateTimeUTC:"2023-10-01T22:20:00Z",homeTeam:{logo:"https://golstatsimages.blob.core.windows.net/teams-80/18.png",team_id:10,provisional_logo:"https://golstatsimages.blob.core.windows.net/teams-provisional/18.png",colloquial_name:"Toluca",acronym:"TOL",team_name:"Toluca"},awayTeam:{logo:"https://golstatsimages.blob.core.windows.net/teams-80/1.png",team_id:1,provisional_logo:"https://golstatsimages.blob.core.windows.net/teams-provisional/1.png",colloquial_name:"Chivas",acronym:"CHI",team_name:"Guadalajara"}})},tournamentSelected:{type:Object,default:()=>({})},playVideosPrivileges:{type:Object,default:null}},emits:["openmedia","intervalidgs"],setup(e,{emit:a}){const i=e,s=t.ref(0);function o(e){a("openmedia",e)}function l(e){a("intervalidgs",e)}return t.watch(()=>i.game,e=>{s.value=e.gameId},{deep:!0,immediate:!0}),(a,i)=>(t.openBlock(),t.createElementBlock("div",Mm,[1===e.game.is_live||0===e.game.game_status?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[Object.keys(e.game).length>0?(t.openBlock(),t.createBlock(t.unref(u.GSCDataGames),{key:s.value,type:3,"is-widget":e.isWidget,"team-widget":e.teamWidget,data:{season:e.game.seasonId,game:e.game.gameId,game_status:e.game.game_status,home_team_id:e.game.homeTeam.team_id,away_team_id:e.game.awayTeam.team_id,team_view:2},"tournament-selected":e.tournamentSelected,onIntervalidgs:l,"play-videos-privileges":e.playVideosPrivileges,onOpenmedia:o},null,8,["is-widget","team-widget","data","tournament-selected","play-videos-privileges"])):t.createCommentVNode("",!0)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[4==e.game.game_status?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[Object.keys(e.game).length>0?(t.openBlock(),t.createBlock(t.unref(u.GSCDataGames),{key:s.value,type:0,"is-widget":e.isWidget,"team-widget":e.teamWidget,data:{season:e.game.seasonId,game:e.game.gameId,game_status:e.game.game_status,home_team_id:e.game.homeTeam.team_id,away_team_id:e.game.awayTeam.team_id,team_view:1},"tournament-selected":e.tournamentSelected,"play-videos-privileges":e.playVideosPrivileges,onOpenmedia:o},null,8,["is-widget","team-widget","data","tournament-selected","play-videos-privileges"])):t.createCommentVNode("",!0)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[Object.keys(e.game).length>0?(t.openBlock(),t.createBlock(t.unref(u.GSCDataGames),{key:s.value,type:1,"is-widget":e.isWidget,"team-widget":e.teamWidget,data:{season:e.game.seasonId,game:e.game.gameId,game_status:e.game.game_status,home_team_id:e.game.homeTeam.team_id,away_team_id:e.game.awayTeam.team_id,team_view:2},"tournament-selected":e.tournamentSelected,"play-videos-privileges":e.playVideosPrivileges,onOpenmedia:o},null,8,["is-widget","team-widget","data","tournament-selected","play-videos-privileges"])):t.createCommentVNode("",!0)],64))],64))]))}},Rm={sizeTabsFontMP(){const e=this.elementSize.width;return e<=380?"12px":e<=768?"14px":"16px"},sizeTabsFontMS(){const e=this.elementSize.width;return e<=600?"12px":e<=768?"13px":"14px"},sizeTabsMS(){const e=this.elementSize.width;return e<=480?"145px":e<=600?"153px":e<=620?"163px":e<=640?"170px":e<=660?"175px":e<=680?"180px":e<=700?"185px":e<=720?"195px":"200px"},sizeTabsMP(){const e=this.elementSize.width;return e<=319?"68px":e<=330?"73px":e<=340?"78px":e<=350?"82px":e<=360||e<=370?"90px":e<=390?"95px":e<=410?"105px":e<=430?"110px":e<=450?"117px":e<=470?"122px":e<=500?"130px":e<=530?"138px":e<=560?"155px":e<=590?"163px":e<=620?"175px":e<=650?"180px":e<=680?"195px":e<=730?"210px":e<=768?"100px":"110px"},comextleyemdmultipleleaguesClass(){return this.elementSize.width<=380?this.$style.comtextleyemdmultipleleagues380:this.$style.comtextleyemdmultipleleagues},comdropdownParentClass(){return this.elementSize.width<=730?this.$style.comdropdownParent730:this.$style.comdropdownParent},comdescubreVideosClass(){const e=this.elementSize.width;return e<=960?this.$style.comdescubreVideos960:e<=1232?this.$style.comdescubreVideos1232:this.$style.comdescubreVideos},comquitarFiltrosClass(){const e=this.elementSize.width;return e<=380?this.$style.comquitarFiltros380:e<=480?this.$style.comquitarFiltros480:e<=730?this.$style.comquitarFiltros730:this.$style.comquitarFiltros},commejoresJugadoresClass(){const e=this.elementSize.width;return e<=480?this.$style.commejoresJugadores480:e<=730?this.$style.commejoresJugadores730:this.$style.commejoresJugadores},menuSectionClass(){return this.elementSize.width<=960?this.$style.commenuSection960:this.$style.commenuSection},topFiltersClass(){const e=this.elementSize.width;return e<=420?this.$style.comtopFilters420:e<=460?this.$style.comtopFilters460:e<=1232?this.$style.comtopFilters1232:this.$style.comtopFilters},toniKroosWrapperClass(){const e=this.elementSize.width;return e<=319?this.$style.comtoniKroosWrapper320:e<=420?this.$style.comtoniKroosWrapper420:e<=916?this.$style.comtoniKroosWrapper760:e<=975?this.$style.comtoniKroosWrapper975:e<=1079?this.$style.comtoniKroosWrapper1080:this.$style.comtoniKroosWrapper},containerTablesClass(){const e=this.elementSize.width;return e<=319?this.$style.comcontainerTables320:e<=916?this.$style.comcontainerTables760:e<=1079?this.$style.comcontainerTables960:this.$style.comcontainerTables},containerTheBestClass(){const e=this.elementSize.width;return e<=319?this.$style.comcontainerTheBest320:e<=960?this.$style.comcontainerTheBest960:e<=1232?this.$style.comcontainerTheBest1232:this.$style.comcontainerTheBest},menuSectionHeaderClass(){const e=this.elementSize.width;return e<=730?this.$style.commenuSectionHeader730:e<=960?this.$style.commenuSectionHeader960:e<=1232?this.$style.commenuSectionHeader1232:this.$style.commenuSectionHeader},losMejoresClass(){const e=this.elementSize.width;return e<=380?this.$style.comlosMejores380:e<=530?this.$style.comlosMejores530:e<=730?this.$style.comlosMejores730:this.$style.comlosMejores},dropdownClass(){return this.elementSize.width<=730?this.$style.comdropdown730:this.$style.comdropdown},dropdown1Class(){return this.elementSize.width<=730?this.$style.comdropdown1730:this.$style.comdropdown1},menuSectionParentHeaderClass(){const e=this.elementSize.width;return e<=430?this.$style.commenuSectionParentHeader430:e<=730?this.$style.commenuSectionParentHeader730:e<=960?this.$style.commenuSectionParentHeader960:e<=1232?this.$style.commenuSectionParentHeader1232:this.$style.commenuSectionParentHeader},templateLosMejoresClass(){const e=this.elementSize.width;return e<=319?this.$style.comtemplateLosMejores1320:e<=350?this.$style.comtemplateLosMejores1350:e<=420?this.$style.comtemplateLosMejores1420:e<=540?this.$style.comtemplateLosMejores1540:e<=960?this.$style.comtemplateLosMejores1960:e<=1232?this.$style.comtemplateLosMejores11232:this.$style.comtemplateLosMejores1},containerMenuClass(){return this.elementSize.width<=760?this.$style.comcontainerMenu760:this.$style.comcontainerMenu},titleSectionClass(){return this.elementSize.width<=540?this.$style.comtitleSection540:this.$style.comtitleSection},containerSectionClass(){const e=this.elementSize.width;return e<=319?this.$style.comcontainerSection320:e<=350?this.$style.comcontainerSection350:e<=960?this.$style.comcontainerSection960:e<=1232?this.$style.comcontainerSection1232:this.$style.comcontainerSection},filtersContainerClass(){const e=this.elementSize.width;return e<=420?this.$style.comfiltersContainer420:e<=760?this.$style.comfiltersContainer760:e<=1232?this.$style.comfiltersContainer1232:this.$style.comfiltersContainer},topFiltersParentClass(){const e=this.elementSize.width;return e<=420?this.$style.comtopFiltersParent420:e<=460?this.$style.comtopFiltersParent460:e<=1232?this.$style.comtopFiltersParent1232:this.$style.comtopFiltersParent}};function Wm(e){const a=t.ref({width:0,height:0});function i(){const t=e.value.getBoundingClientRect();a.value.width=t.width,a.value.height=t.height}return t.onMounted(()=>{i(),window.addEventListener("resize",i)}),t.onUnmounted(()=>{window.removeEventListener("resize",i)}),{elementSize:a}}const jm={containerLeftTitles:"_containerLeftTitles_82svp_119",containerLeftTitles420:"_containerLeftTitles420_82svp_135",containerLeftTitles620:"_containerLeftTitles620_82svp_151",containerLeftTitlesTeam:"_containerLeftTitlesTeam_82svp_169",containerLeftTitlesTeam1180:"_containerLeftTitlesTeam1180_82svp_185",containerLeftTitlesTeam1090:"_containerLeftTitlesTeam1090_82svp_201",containerLeftTitlesTeam960:"_containerLeftTitlesTeam960_82svp_217",containerLeftTitlesTeam860:"_containerLeftTitlesTeam860_82svp_233",containerLeftTitlesTeam768:"_containerLeftTitlesTeam768_82svp_249",containerLeftTitlesTeam680:"_containerLeftTitlesTeam680_82svp_265",containerLeftTitlesTeam620:"_containerLeftTitlesTeam620_82svp_281",containerLeftTitlesTeam420:"_containerLeftTitlesTeam420_82svp_297",headTitlesAvanced:"_headTitlesAvanced_82svp_315",headTitlesAvanced960:"_headTitlesAvanced960_82svp_345",headTitlesAvanced420:"_headTitlesAvanced420_82svp_375",headTitlesAvanced540:"_headTitlesAvanced540_82svp_415",headTitlesAvanced460:"_headTitlesAvanced460_82svp_445",headTitlesAvanced620:"_headTitlesAvanced620_82svp_475",position:"_position_82svp_505",position420:"_position420_82svp_523",player:"_player_82svp_529",player420:"_player420_82svp_551",containerRightTypeAvanced1:"_containerRightTypeAvanced1_82svp_559",containerRightTitlesAdvanced:"_containerRightTitlesAdvanced_82svp_573",containerRightTitlesAdvanced960:"_containerRightTitlesAdvanced960_82svp_591",block02Titles:"_block02Titles_82svp_609",block02Titles620:"_block02Titles620_82svp_625",mon1Scouting:"_mon1Scouting_82svp_633",mon1Scouting960:"_mon1Scouting960_82svp_653",mon1:"_mon1_82svp_633",mon1420:"_mon1420_82svp_689",mon1620:"_mon1620_82svp_709",icnIcon:"_icnIcon_82svp_729",icnIcon960:"_icnIcon960_82svp_739",icnIcon420:"_icnIcon420_82svp_751",teamTitle:"_teamTitle_82svp_759",positionTitle:"_positionTitle_82svp_779",ageTitle:"_ageTitle_82svp_795",partidos:"_partidos_82svp_811",playedGamesTitle:"_playedGamesTitle_82svp_819",playedMinutesTitle:"_playedMinutesTitle_82svp_839",block01Titles:"_block01Titles_82svp_857",mon:"_mon_82svp_633",containesOptionsTitles:"_containesOptionsTitles_82svp_889",templateTablaProductividadType1:"_templateTablaProductividadType1_82svp_903",templateTablaProductividadType1400:"_templateTablaProductividadType1400_82svp_927",headTitlesType1:"_headTitlesType1_82svp_955",headTitlesType1420:"_headTitlesType1420_82svp_981",headTitlesType1400:"_headTitlesType1400_82svp_1013",headTitlesType1540:"_headTitlesType1540_82svp_1045",headTitlesType1460:"_headTitlesType1460_82svp_1073",headTitlesType1680:"_headTitlesType1680_82svp_1101",headTitlesType1350:"_headTitlesType1350_82svp_1127",positionType1:"_positionType1_82svp_1157",positionType1400:"_positionType1400_82svp_1175",teamType1:"_teamType1_82svp_1195",teamType1400:"_teamType1400_82svp_1213",frecuenciaType1:"_frecuenciaType1_82svp_1233",frecuenciaType1540:"_frecuenciaType1540_82svp_1249",containerLeftTitlesType1:"_containerLeftTitlesType1_82svp_1267",frecuenciaWrapperType1:"_frecuenciaWrapperType1_82svp_1283",frecuenciaWrapperType1680:"_frecuenciaWrapperType1680_82svp_1301",promedioPartidoType1:"_promedioPartidoType1_82svp_1317",promedioEstePartidoType1:"_promedioEstePartidoType1_82svp_1325",promedioEstePartidoType1960:"_promedioEstePartidoType1960_82svp_1341",promedioEstePartidoWrapperType1:"_promedioEstePartidoWrapperType1_82svp_1349",promedioEstePartidoWrapperType11200:"_promedioEstePartidoWrapperType11200_82svp_1365",promedioEstePartidoWrapperType11090:"_promedioEstePartidoWrapperType11090_82svp_1383",promedioEstePartidoWrapperType11086:"_promedioEstePartidoWrapperType11086_82svp_1403",promedioPartidosType1:"_promedioPartidosType1_82svp_1421",promedioPartidosWrapperType1:"_promedioPartidosWrapperType1_82svp_1435",promedioPartidosWrapperType1960:"_promedioPartidosWrapperType1960_82svp_1451",promedioPartidosWrapperType11086:"_promedioPartidosWrapperType11086_82svp_1457",partidosJugadosType1:"_partidosJugadosType1_82svp_1463",partidosJugadosType1960:"_partidosJugadosType1960_82svp_1475",partidosJugadosWrapperType1:"_partidosJugadosWrapperType1_82svp_1489",partidosJugadosWrapperType11200:"_partidosJugadosWrapperType11200_82svp_1505",partidosJugadosWrapperType11180:"_partidosJugadosWrapperType11180_82svp_1521",partidosJugadosWrapperType11170:"_partidosJugadosWrapperType11170_82svp_1537",partidosJugadosWrapperType11140:"_partidosJugadosWrapperType11140_82svp_1553",partidosJugadosWrapperType11086:"_partidosJugadosWrapperType11086_82svp_1569",partidosJugadosWrapperType1960:"_partidosJugadosWrapperType1960_82svp_1585",partidosJugadosWrapperType1880:"_partidosJugadosWrapperType1880_82svp_1601",partidosJugadosWrapperType1860:"_partidosJugadosWrapperType1860_82svp_1617",partidosJugadosWrapperType1830:"_partidosJugadosWrapperType1830_82svp_1633",partidosJugadosWrapperType1790:"_partidosJugadosWrapperType1790_82svp_1649",partidosJugadosWrapperType1930:"_partidosJugadosWrapperType1930_82svp_1665",partidosJugadosWrapperType1770:"_partidosJugadosWrapperType1770_82svp_1681",block01TitlesType1:"_block01TitlesType1_82svp_1687",monType1:"_monType1_82svp_1703",monType1960:"_monType1960_82svp_1721",monType1680:"_monType1680_82svp_1741",videosType1:"_videosType1_82svp_1747",videosType1680:"_videosType1680_82svp_1767",videosType1600:"_videosType1600_82svp_1785",videosType1540:"_videosType1540_82svp_1803",videosType1420:"_videosType1420_82svp_1821",videosType1400:"_videosType1400_82svp_1839",containesOptionsTitlesType1:"_containesOptionsTitlesType1_82svp_1863",containesOptionsTitlesType1768:"_containesOptionsTitlesType1768_82svp_1879",containesOptionsTitlesType1730:"_containesOptionsTitlesType1730_82svp_1893",containesOptionsTitlesType1690:"_containesOptionsTitlesType1690_82svp_1907",icnIconType1:"_icnIconType1_82svp_1921",icnIconType1420:"_icnIconType1420_82svp_1933",icnIconType1400:"_icnIconType1400_82svp_1947",block02TitlesType1:"_block02TitlesType1_82svp_1955",block02TitlesType1680:"_block02TitlesType1680_82svp_1969",block02TitlesType1350:"_block02TitlesType1350_82svp_1983",containerRightTitlesType1:"_containerRightTitlesType1_82svp_1997",containerRightTitlesType1420:"_containerRightTitlesType1420_82svp_2015"},qm={components:{},computed:{icnIconType1Class(){const e=this.elementSize.width;return e<=400?this.$style.icnIconType1400:e<=420?this.$style.icnIconType1420:this.$style.icnIconType1},videosType1Class(){const e=this.elementSize.width;return e<=400?this.$style.videosType1400:e<=420?this.$style.videosType1420:e<=540?this.$style.videosType1540:e<=600?this.$style.videosType1600:e<=680?this.$style.videosType1680:this.$style.videosType1},monType1Class(){const e=this.elementSize.width;return e<=680?this.$style.monType1680:e<=960?this.$style.monType1960:this.$style.monType1},block02TitlesType1Class(){const e=this.elementSize.width;return e<=350?this.$style.block02TitlesType1350:e<=680?this.$style.block02TitlesType1680:this.$style.block02TitlesType1},containesOptionsTitlesType1Class(){const e=this.elementSize.width;return e<=400?this.$style.containesOptionsTitlesType1400:e<=690?this.$style.containesOptionsTitlesType1690:e<=730?this.$style.containesOptionsTitlesType1730:e<=768?this.$style.containesOptionsTitlesType1768:this.$style.containesOptionsTitlesType1},partidosJugadosWrapperType1Class(){const e=this.elementSize.width;return e<=770?this.$style.promedioPartidosWrapperType1770:e<=790?this.$style.partidosJugadosWrapperType1790:e<=830?this.$style.partidosJugadosWrapperType1830:e<=860?this.$style.partidosJugadosWrapperType1860:e<=880?this.$style.partidosJugadosWrapperType1880:e<=930?this.$style.partidosJugadosWrapperType1930:e<=960?this.$style.partidosJugadosWrapperType1960:e<=1086?this.$style.partidosJugadosWrapperType11086:e<=1140?this.$style.partidosJugadosWrapperType11140:e<=1170?this.$style.partidosJugadosWrapperType11170:e<=1180?this.$style.partidosJugadosWrapperType11180:e<=1200?this.$style.partidosJugadosWrapperType11200:this.$style.partidosJugadosWrapperType1},promedioPartidosWrapperType1Class(){const e=this.elementSize.width;return e<=960?this.$style.promedioPartidosWrapperType1960:e<=1086?this.$style.promedioPartidosWrapperType11086:this.$style.promedioPartidosWrapperType1},partidosJugadosType1Class(){return this.elementSize.width<=960?this.$style.partidosJugadosType1960:this.$style.partidosJugadosType1},templateTablaProductividadType1Class(){return this.elementSize.width<=400?this.$style.templateTablaProductividadType1400:this.$style.templateTablaProductividadType1},promedioEstePartidoType1Class(){return this.elementSize.width<=960?this.$style.promedioEstePartidoType1960:this.$style.promedioEstePartidoType1},headTitlesType1Class(){const e=this.elementSize.width;return e<=350?this.$style.headTitlesType1350:e<=400?this.$style.headTitlesType1400:e<=420?this.$style.headTitlesType1420:e<=460?this.$style.headTitlesType1460:e<=540?this.$style.headTitlesType1540:e<=680?this.$style.headTitlesType1680:this.$style.headTitlesType1},headTitlesClassAvanced(){const e=this.elementSize.width;return e<=420?this.$style.headTitlesAvanced420:e<=460?this.$style.headTitlesAvanced460:e<=540?this.$style.headTitlesAvanced540:e<=620?this.$style.headTitlesAvanced620:e<=960?this.$style.headTitlesAvanced960:this.$style.headTitlesAvanced},containerLeftTitlesClass(){const e=this.elementSize.width;return e<=420?this.$style.containerLeftTitles420:e<=620?this.$style.containerLeftTitles620:this.$style.containerLeftTitles},containerLeftTitlesClassTeam(){const e=this.elementSize.width;return e<=420?this.$style.containerLeftTitlesTeam420:e<=620?this.$style.containerLeftTitlesTeam620:e<=680?this.$style.containerLeftTitlesTeam680:e<=768?this.$style.containerLeftTitlesTeam768:e<=860?this.$style.containerLeftTitlesTeam860:e<=960?this.$style.containerLeftTitlesTeam960:e<=1090?this.$style.containerLeftTitlesTeam1090:e<=1180?this.$style.containerLeftTitlesTeam1180:this.$style.containerLeftTitlesTeam},icnIconClass(){const e=this.elementSize.width;return e<=420?this.$style.icnIcon420:e<=960?this.$style.icnIcon960:this.$style.icnIcon},mon1Class(){const e=this.elementSize.width;return e<=420?this.$style.mon1420:e<=620?this.$style.mon1620:this.$style.mon1},mon1ScoutingClass(){const e=this.elementSize.width;return e<=420?this.$style.mon1420:e<=960?this.$style.mon1Scouting960:this.$style.mon1Scouting},promedioEstePartidoWrapperType1Class(){const e=this.elementSize.width;return e<=1086?this.$style.promedioEstePartidoWrapperType11086:e<=1090?this.$style.promedioEstePartidoWrapperType11090:e<=1200?this.$style.promedioEstePartidoWrapperType11200:this.$style.promedioEstePartidoWrapperType1},frecuenciaWrapperType1Class(){return this.elementSize.width<=680?this.$style.frecuenciaWrapperType1680:this.$style.frecuenciaWrapperType1},frecuenciaType1Class(){return this.elementSize.width<=540?this.$style.frecuenciaType1540:this.$style.frecuenciaType1},positionType1Class(){return this.elementSize.width<=400?this.$style.positionType1400:this.$style.positionType1},containerRightType1ClassAvanced(){return this.elementSize.width<=420?this.$style.containerRightTypeAvanced1420:this.$style.containerRightTypeAvanced1},containerRightTitlesType1Class(){return this.elementSize.width<=420?this.$style.containerRightTitlesType1420:this.$style.containerRightTitlesType1},teamType1Class(){return this.elementSize.width<=400?this.$style.teamType1400:this.$style.teamType1},playerClass(){return this.elementSize.width<=420?this.$style.player420:this.$style.player},positionClass(){return this.elementSize.width<=420?this.$style.position420:this.$style.position},containerRightTitlesClassAdvanced(){return this.elementSize.width<=960?this.$style.containerRightTitlesAdvanced960:this.$style.containerRightTitlesAdvanced},block02TitlesClass(){return this.elementSize.width<=620?this.$style.block02Titles960:this.$style.block02Titles}},setup(){const e=t.ref("myDivRef"),{elementSize:a}=Wm(e);return{myDivRef:e,elementSize:a}},props:{type:{type:Number,default:0},background:{type:String,default:"#172531"},height:{type:String,default:"71px"},heightTeam:{type:String,default:"65px"},fontColor:{type:String,default:"#FFFFFF"},fontSize:{type:String,default:"12px"},fontFamily:{type:String,default:"Poppins-Regular"}},watch:{},data:()=>({}),async created(){},methods:{}},Hm=()=>{t.useCssVars(e=>({"32aec1ca":e.background,"4e54a87a":e.height,"448b848c":e.fontSize,"4c061c38":e.fontColor,"3917092f":e.fontFamily,"4a286e80":e.heightTeam}))},Jm=qm.setup;qm.setup=Jm?(e,t)=>(Hm(),Jm(e,t)):Hm;const Um={ref:"myDivRef"},Zm=t.createElementVNode("br",null,null,-1),Xm=t.createElementVNode("br",null,null,-1);const Ym=M(qm,[["render",function(e,a,i,s,o,l){return t.openBlock(),t.createElementBlock("div",Um,[0==i.type?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(l.headTitlesClassAvanced),id:"container-titles"},[t.createElementVNode("div",{class:t.normalizeClass(l.containerLeftTitlesClass),id:"container-left-titles"},[t.createElementVNode("div",{class:t.normalizeClass(l.positionClass)},"Pos.",2),t.createElementVNode("div",{class:t.normalizeClass(l.playerClass)},"Jugador",2)],2),t.createElementVNode("div",{class:t.normalizeClass(l.containerRightTitlesClassAdvanced),id:"container-right-titles"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.block01Titles)},[s.elementSize.width>540?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.teamTitle)},"Equipo",2)):t.createCommentVNode("",!0),s.elementSize.width>730?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.positionTitle)},"Posición",2)):t.createCommentVNode("",!0),s.elementSize.width>960?(t.openBlock(),t.createElementBlock("div",{key:2,class:t.normalizeClass(e.$style.ageTitle)},"edad",2)):t.createCommentVNode("",!0),s.elementSize.width>960?(t.openBlock(),t.createElementBlock("div",{key:3,class:t.normalizeClass(e.$style.ageTitle)},"País",2)):t.createCommentVNode("",!0),s.elementSize.width>540?(t.openBlock(),t.createElementBlock("div",{key:4,class:t.normalizeClass(e.$style.playedGamesTitle)},[t.createElementVNode("p",{class:t.normalizeClass(e.$style.partidos)},"Partidos",2),t.createElementVNode("p",{class:t.normalizeClass(e.$style.partidos)},"Jugados",2)],2)):t.createCommentVNode("",!0),s.elementSize.width>635?(t.openBlock(),t.createElementBlock("div",{key:5,class:t.normalizeClass(e.$style.playedMinutesTitle)},[t.createElementVNode("p",{class:t.normalizeClass(e.$style.partidos)},"Minutos",2),t.createElementVNode("p",{class:t.normalizeClass(e.$style.partidos)},"Jugados",2)],2)):t.createCommentVNode("",!0)],2),t.createElementVNode("div",{class:t.normalizeClass(l.block02TitlesClass)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.containesOptionsTitles)},[s.elementSize.width>960?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.mon)},"Total",2)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(l.mon1Class)},"Videos",2)],2)],2)],2)],2)):t.createCommentVNode("",!0),1==i.type?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(l.templateTablaProductividadType1Class)},[t.createElementVNode("div",{class:t.normalizeClass(l.headTitlesType1Class),id:"container-titles"},[t.createElementVNode("div",{class:t.normalizeClass(l.containerLeftTitlesClassTeam),id:"container-left-titles"},[t.createElementVNode("div",{class:t.normalizeClass(l.positionType1Class)},"Pos.",2),t.createElementVNode("div",{class:t.normalizeClass(l.teamType1Class)},"Equipo",2)],2),t.createElementVNode("div",{class:t.normalizeClass(l.containerRightType1ClassAvanced)},[t.createElementVNode("div",{class:t.normalizeClass(l.frecuenciaWrapperType1Class)},[s.elementSize.width>540?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(l.frecuenciaType1Class)},"Frecuencia",2)):t.createCommentVNode("",!0)],2),s.elementSize.width>960?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(l.promedioEstePartidoWrapperType1Class)},[t.createElementVNode("div",{class:t.normalizeClass(l.promedioEstePartidoType1Class)},[t.createElementVNode("p",{class:t.normalizeClass(e.$style.promedioPartidoType1)},"Promedio partido",2),t.createElementVNode("p",{class:t.normalizeClass(e.$style.promedioPartidoType1)},"este Torneo",2)],2)],2)):t.createCommentVNode("",!0),s.elementSize.width>1086?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(l.promedioPartidosWrapperType1Class)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.promedioPartidosType1)},[t.createElementVNode("p",{class:t.normalizeClass(e.$style.promedioPartidoType1)},[t.createTextVNode("Promedio partido"),Zm,t.createTextVNode("Torneo anterior")],2)],2)],2)):t.createCommentVNode("",!0),s.elementSize.width>770?(t.openBlock(),t.createElementBlock("div",{key:2,class:t.normalizeClass(l.partidosJugadosWrapperType1Class)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.partidosJugadosType1)},[t.createElementVNode("p",{class:t.normalizeClass(e.$style.promedioPartidoType1)},[t.createTextVNode("Partidos "),Xm,t.createTextVNode("Jugados")],2)],2)],2)):t.createCommentVNode("",!0)],2),t.createElementVNode("div",{class:t.normalizeClass(l.containesOptionsTitlesType1Class)},[s.elementSize.width>680?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(l.monType1Class)},"total",2)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(l.videosType1Class)},"Videos",2)],2)],2)],2)):t.createCommentVNode("",!0),2==i.type?(t.openBlock(),t.createElementBlock("div",{key:2,class:t.normalizeClass(l.headTitlesClassAvanced),id:"container-titles"},[t.createElementVNode("div",{class:t.normalizeClass(l.containerLeftTitlesClass),id:"container-left-titles"},[t.createElementVNode("div",{class:t.normalizeClass(l.positionClass)},"Pos.",2),t.createElementVNode("div",{class:t.normalizeClass(l.playerClass)},"Jugador",2)],2),t.createElementVNode("div",{class:t.normalizeClass(l.containerRightTitlesClassAdvanced),id:"container-right-titles"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.block01Titles)},[s.elementSize.width>540?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.teamTitle)},"Equipo",2)):t.createCommentVNode("",!0),s.elementSize.width>730?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.positionTitle)},"Posición",2)):t.createCommentVNode("",!0),s.elementSize.width>960?(t.openBlock(),t.createElementBlock("div",{key:2,class:t.normalizeClass(e.$style.ageTitle)},"edad",2)):t.createCommentVNode("",!0),s.elementSize.width>960?(t.openBlock(),t.createElementBlock("div",{key:3,class:t.normalizeClass(e.$style.ageTitle)},"País",2)):t.createCommentVNode("",!0),s.elementSize.width>540?(t.openBlock(),t.createElementBlock("div",{key:4,class:t.normalizeClass(e.$style.playedGamesTitle)},[t.createElementVNode("p",{class:t.normalizeClass(e.$style.partidos)},"Partidos",2),t.createElementVNode("p",{class:t.normalizeClass(e.$style.partidos)},"Jugados",2)],2)):t.createCommentVNode("",!0),s.elementSize.width>635?(t.openBlock(),t.createElementBlock("div",{key:5,class:t.normalizeClass(e.$style.playedMinutesTitle)},[t.createElementVNode("p",{class:t.normalizeClass(e.$style.partidos)},"Minutos",2),t.createElementVNode("p",{class:t.normalizeClass(e.$style.partidos)},"Jugados",2)],2)):t.createCommentVNode("",!0),s.elementSize.width>635?(t.openBlock(),t.createElementBlock("div",{key:6,class:t.normalizeClass(e.$style.playedMinutesTitle)},[t.createElementVNode("p",{class:t.normalizeClass(e.$style.partidos)},"Liga",2)],2)):t.createCommentVNode("",!0)],2),t.createElementVNode("div",{class:t.normalizeClass(l.block02TitlesClass)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.containesOptionsTitles)},[t.createElementVNode("div",{class:t.normalizeClass(l.mon1ScoutingClass)},"Videos",2)],2)],2)],2)],2)):t.createCommentVNode("",!0)],512)}],["__cssModules",{$style:jm}]]),Qm={props:{type:{type:Number,default:0},value:{type:Boolean,default:!1},textValue:String,icon:{type:String,default:"https://golstatsimages.blob.core.windows.net/images-library/arrow-btn.png"},iconPosition:{type:String,default:"left"},iconSize:String,mini:{type:Boolean,default:!1},fontColor:{type:String,default:"#FFFFFF"},textDecoration:String,fontSize:{type:String,default:"16px"},fontSizeStat:{type:String,default:"16px"},fontStyle:String,fontFamily:{type:String,default:"Poppins-Regular"},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},buttonMaxWidth:{type:String,default:"auto"},borderRadius:{type:String,default:"0px"},borderType:{type:String,default:"solid"},borderWidth:{type:Number,default:0},borderWidthBtn:{type:String,default:"2px"},borderColor:String,backgroundColor:{type:String,default:"none"},activeBackgroundColor:{type:String,default:"#000000"},activeBorderWidth:{type:Number,default:2},activeBorderType:{type:String,default:"solid"},activeBorderColor:{type:String,default:"#cbee6b"},activeColorText:{type:String,default:"#FFFFFF"},cursorType:{type:String,default:"default"},typeOnOff:{type:Boolean,default:!1},textCategory:String,textStat:String,marginLeftStat:{type:String,default:"15%"}},watch:{value:{deep:!0,immediate:!0,handler(e){this.status=e}}},data:()=>({status:!1}),computed:{customStyle(){return{height:this.height,width:this.width,maxWidth:this.buttonMaxWidth,backgroundColor:this.backgroundColor,borderRadius:this.borderRadius,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`,color:this.fontColor,textDecoration:this.textDecoration,cursor:this.cursorType,fontSize:this.fontSize,fontStyle:this.fontStyle,fontFamily:`${this.fontFamily} !important`}},customActive(){return{backgroundColor:this.activeBackgroundColor,color:this.activeColorText,border:`${this.activeBorderType} ${this.activeBorderWidth}px ${this.activeBorderColor}`}}},methods:{btnClick(e){this.$emit("click",e),this.typeOnOff&&(this.status=!this.status,this.$emit("status",this.status))}}},Km=()=>{t.useCssVars(e=>({"142f4a30":e.height,"425d470b":e.borderWidthBtn,e390e3e2:e.borderType,"37c60b2e":e.borderColor,"4c69ebb2":e.borderRadius,"1e10a0c6":e.width,64535028:e.backgroundColor,"26a98839":e.cursorType,"0ff73bb9":e.fontSize,"22158e0e":e.fontStyle,"4f1cadc8":e.fontFamily,"38d08a5c":e.marginLeftStat,f38f9ca6:e.fontSizeStat}))},ep=Qm.setup;Qm.setup=ep?(e,t)=>(Km(),ep(e,t)):Km;const tp=["src"],ap={key:1,class:"text"},ip=["src"],sp={class:"stats"},op=(e=>(t.pushScopeId("data-v-2d2e96b3"),e=e(),t.popScopeId(),e))(()=>t.createElementVNode("img",{class:"iconstats",src:"https://golstatsimages.blob.core.windows.net/todoelfut/playdes.png"},null,-1)),lp={class:"numstats"},np={class:"leyend"};const rp=M(Qm,[["render",function(e,a,i,s,o,l){return t.openBlock(),t.createElementBlock("div",null,[0==i.type?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["button",o.status&&i.typeOnOff&&"button-active"]),style:t.normalizeStyle([l.customStyle,o.status&&i.typeOnOff&&l.customActive]),onClick:a[0]||(a[0]=(...e)=>l.btnClick&&l.btnClick(...e))},[i.icon&&"left"===i.iconPosition.toLowerCase()?(t.openBlock(),t.createElementBlock("img",{key:0,class:t.normalizeClass(i.mini?"icon-txt":"icon"),style:t.normalizeStyle({width:i.iconSize}),src:i.icon},null,14,tp)):t.createCommentVNode("",!0),i.textValue?(t.openBlock(),t.createElementBlock("div",ap,t.toDisplayString(i.textValue),1)):t.createCommentVNode("",!0),i.icon&&"right"===i.iconPosition.toLowerCase()?(t.openBlock(),t.createElementBlock("img",{key:2,class:"icon",style:t.normalizeStyle({width:i.iconSize}),src:i.icon},null,12,ip)):t.createCommentVNode("",!0)],6)):t.createCommentVNode("",!0),1==i.type?(t.openBlock(),t.createElementBlock("div",{key:1,class:"button-target",onClick:a[1]||(a[1]=(...e)=>l.btnClick&&l.btnClick(...e))},[t.createElementVNode("div",sp,[op,t.createElementVNode("div",lp,t.toDisplayString(i.textStat),1)]),t.createElementVNode("div",np,t.toDisplayString(i.textCategory),1)])):t.createCommentVNode("",!0)])}],["__scopeId","data-v-2d2e96b3"]]),dp={rotate:"_rotate_1cvqy_5",positionContainer:"_positionContainer_1cvqy_99",positionContainer620:"_positionContainer620_1cvqy_113",rowwPlayerGames:"_rowwPlayerGames_1cvqy_127",rowwPlayer960Games:"_rowwPlayer960Games_1cvqy_159",rowwPlayer420Games:"_rowwPlayer420Games_1cvqy_189",rowwPlayer460Games:"_rowwPlayer460Games_1cvqy_221",containerLeftGames:"_containerLeftGames_1cvqy_255",containerLeft420Games:"_containerLeft420Games_1cvqy_271",containerLeft620Games:"_containerLeft620Games_1cvqy_287",iconFavoritesType1:"_iconFavoritesType1_1cvqy_301",iconFavoritesType1320:"_iconFavoritesType1320_1cvqy_317",iconFavorites:"_iconFavorites_1cvqy_301",iconFavorites420:"_iconFavorites420_1cvqy_349",playerContainerGames:"_playerContainerGames_1cvqy_365",playerContainer420Games:"_playerContainer420Games_1cvqy_389",playerContainer460Games:"_playerContainer460Games_1cvqy_413",playerContainerType1Games:"_playerContainerType1Games_1cvqy_437",playerContainerType1320Games:"_playerContainerType1320Games_1cvqy_457",playerContainerType1460Games:"_playerContainerType1460Games_1cvqy_477",imgPlayerIcon:"_imgPlayerIcon_1cvqy_497",imgPlayerIcon460:"_imgPlayerIcon460_1cvqy_517",imgPlayerIcon420:"_imgPlayerIcon420_1cvqy_537",manchesterUnitedGames:"_manchesterUnitedGames_1cvqy_557",manchesterUnited360Games:"_manchesterUnited360Games_1cvqy_579",manchesterUnited420Games:"_manchesterUnited420Games_1cvqy_601",manchesterUnited460Games:"_manchesterUnited460Games_1cvqy_623",containerRightGames:"_containerRightGames_1cvqy_645",containerRight960Games:"_containerRight960Games_1cvqy_663",containerRight420Games:"_containerRight420Games_1cvqy_683",numberOfVideos:"_numberOfVideos_1cvqy_705",numberOfVideos620:"_numberOfVideos620_1cvqy_717",block02Games:"_block02Games_1cvqy_729",block02960Games:"_block02960Games_1cvqy_749",block02620Games:"_block02620Games_1cvqy_767",block02420Games:"_block02420Games_1cvqy_781",verVideos:"_verVideos_1cvqy_797",verVideos620:"_verVideos620_1cvqy_809",numberPosition:"_numberPosition_1cvqy_815",shapeIcon:"_shapeIcon_1cvqy_827",chivasIcon:"_chivasIcon_1cvqy_837",imgTeamIcon:"_imgTeamIcon_1cvqy_859",teamName:"_teamName_1cvqy_869",nameTeamGames:"_nameTeamGames_1cvqy_881",dfC:"_dfC_1cvqy_899",position:"_position_1cvqy_99",age:"_age_1cvqy_919",manchesterUnitedIcon:"_manchesterUnitedIcon_1cvqy_935",country:"_country_1cvqy_949",playedGames:"_playedGames_1cvqy_963",playedMinutes:"_playedMinutes_1cvqy_977",block01:"_block01_1cvqy_991",leagueName:"_leagueName_1cvqy_1005",roleCharacterIcon:"_roleCharacterIcon_1cvqy_1017",btnVideosGames:"_btnVideosGames_1cvqy_1033",containerBtnVideosGames:"_containerBtnVideosGames_1cvqy_1063",containerBtnVideos620Games:"_containerBtnVideos620Games_1cvqy_1083",containesOptions:"_containesOptions_1cvqy_1101",arrowExpandIcon:"_arrowExpandIcon_1cvqy_1115",rowTeam:"_rowTeam_1cvqy_1133",rowTeam420:"_rowTeam420_1cvqy_1169",rowTeam320:"_rowTeam320_1cvqy_1205",rowTeam460:"_rowTeam460_1cvqy_1243",rowTeam350:"_rowTeam350_1cvqy_1281",containerLeftType1:"_containerLeftType1_1cvqy_1317",containerLeftType1680:"_containerLeftType1680_1cvqy_1329",containerLeftType1320:"_containerLeftType1320_1cvqy_1343",containerLeftType1350:"_containerLeftType1350_1cvqy_1359",positionContainertype1:"_positionContainertype1_1cvqy_1373",positionContainertype1380:"_positionContainertype1380_1cvqy_1389",positionContainertype1680:"_positionContainertype1680_1cvqy_1405",positionContainertype1420:"_positionContainertype1420_1cvqy_1421",manchesterUnitedType1:"_manchesterUnitedType1_1cvqy_1437",manchesterUnitedType1460:"_manchesterUnitedType1460_1cvqy_1449",manchesterUnitedType1320:"_manchesterUnitedType1320_1cvqy_1463",containerRightType1Games:"_containerRightType1Games_1cvqy_1477",containerRightType1420Games:"_containerRightType1420Games_1cvqy_1499",containerRightType1320Games:"_containerRightType1320Games_1cvqy_1521",teamNameWrapperType1:"_teamNameWrapperType1_1cvqy_1543",teamNameWrapperType1960:"_teamNameWrapperType1960_1cvqy_1557",teamNameWrapperType11086:"_teamNameWrapperType11086_1cvqy_1571",ageWrapperType1:"_ageWrapperType1_1cvqy_1585",ageWrapperType1680:"_ageWrapperType1680_1cvqy_1599",ageWrapperType11086:"_ageWrapperType11086_1cvqy_1615",ageType1:"_ageType1_1cvqy_1631",ageType1960:"_ageType1960_1cvqy_1647",playedGamesWrapperType1:"_playedGamesWrapperType1_1cvqy_1653",playedGamesWrapperType1680:"_playedGamesWrapperType1680_1cvqy_1667",playedGamesWrapperType1960:"_playedGamesWrapperType1960_1cvqy_1673",playedGamesType1:"_playedGamesType1_1cvqy_1679",playedGamesType1540:"_playedGamesType1540_1cvqy_1693",playedGamesType1960:"_playedGamesType1960_1cvqy_1701",playedGamesType11086:"_playedGamesType11086_1cvqy_1707",playedMinutesWrapperType1:"_playedMinutesWrapperType1_1cvqy_1713",playedMinutesWrapperType11086:"_playedMinutesWrapperType11086_1cvqy_1727",playedMinutesType1:"_playedMinutesType1_1cvqy_1741",playedMinutesType1680:"_playedMinutesType1680_1cvqy_1755",block02Type1Games:"_block02Type1Games_1cvqy_1761",block02Type1680Games:"_block02Type1680Games_1cvqy_1777",block02Type1320Games:"_block02Type1320Games_1cvqy_1793",block02Type1350Games:"_block02Type1350Games_1cvqy_1811",leagueNameWrapperType1:"_leagueNameWrapperType1_1cvqy_1827",leagueNameWrapperType1680:"_leagueNameWrapperType1680_1cvqy_1843",leagueNameWrapperType1960:"_leagueNameWrapperType1960_1cvqy_1849",leagueNameType1:"_leagueNameType1_1cvqy_1865",leagueNameType1960:"_leagueNameType1960_1cvqy_1885",numberOfVideosType1:"_numberOfVideosType1_1cvqy_1905",numberOfVideosType1680:"_numberOfVideosType1680_1cvqy_1919",numberOfVideosType11232:"_numberOfVideosType11232_1cvqy_1933",vectorIconType1:"_vectorIconType1_1cvqy_1947",block01TitlesType1:"_block01TitlesType1_1cvqy_1981",numberPositionType1:"_numberPositionType1_1cvqy_1995",shapeIconType1:"_shapeIconType1_1cvqy_2007",tijuanaIconType1:"_tijuanaIconType1_1cvqy_2019",tijuanaWrapperType1:"_tijuanaWrapperType1_1cvqy_2031",tijuanaWrapperType1NoBg:"_tijuanaWrapperType1NoBg_1cvqy_2053",teamNameType1:"_teamNameType1_1cvqy_2069",roleCharacterIconType1:"_roleCharacterIconType1_1cvqy_2083",verVideosType1:"_verVideosType1_1cvqy_2097",btnVideosType1Games:"_btnVideosType1Games_1cvqy_2109",containerBtnVideosType1Games:"_containerBtnVideosType1Games_1cvqy_2139",containesOptionsType1Games:"_containesOptionsType1Games_1cvqy_2161",arrowExpandIconType1:"_arrowExpandIconType1_1cvqy_2177",templateTablaProductividadType1:"_templateTablaProductividadType1_1cvqy_2189",verVideosType11232:"_verVideosType11232_1cvqy_2213",templateTablaProductividadType1320:"_templateTablaProductividadType1320_1cvqy_2221",verVideosType1680:"_verVideosType1680_1cvqy_2229"},cp={components:{GSCButton:rp},computed:{manchesterUnitedType1Class(){const e=this.elementSize.width;return e<=320?this.$style.manchesterUnitedType1320:e<=460?this.$style.manchesterUnitedType1460:this.$style.manchesterUnitedType1},containerRightType1Class(){const e=this.elementSize.width;return e<=320?this.$style.containerRightType1320Games:e<=420?this.$style.containerRightType1420Games:this.$style.containerRightType1Games},teamNameWrapperType1Class(){const e=this.elementSize.width;return e<=960?this.$style.teamNameWrapperType1960:e<=1086?this.$style.teamNameWrapperType11086:this.$style.teamNameWrapperType1},ageWrapperType1Class(){const e=this.elementSize.width;return e<=680?this.$style.ageWrapperType1680:e<=1086?this.$style.ageWrapperType11086:this.$style.ageWrapperType1},ageType1Class(){return this.elementSize.width<=960?this.$style.ageType1960:this.$style.ageType1},playedGamesWrapperType1Class(){const e=this.elementSize.width;return e<=680?this.$style.playedGamesWrapperType1680:e<=960?this.$style.playedGamesWrapperType1960:this.$style.playedGamesWrapperType1},playedGamesType1Class(){const e=this.elementSize.width;return e<=540?this.$style.playedGamesType1540:e<=960?this.$style.playedGamesType1960:e<=1086?this.$style.playedGamesType11086:this.$style.playedGamesType1},playedMinutesWrapperType1Class(){return this.elementSize.width<=1086?this.$style.playedMinutesWrapperType11086:this.$style.playedMinutesWrapperType1},playedMinutesType1Class(){return this.elementSize.width<=680?this.$style.playedMinutesType1680:this.$style.playedMinutesType1},block02Type1Class(){const e=this.elementSize.width;return e<=320?this.$style.block02Type1320Games:e<=350?this.$style.block02Type1350Games:e<=680?this.$style.block02Type1680Games:this.$style.block02Type1Games},leagueNameWrapperType1Class(){const e=this.elementSize.width;return e<=680?this.$style.leagueNameWrapperType1680:e<=960?this.$style.leagueNameWrapperType1960:this.$style.leagueNameWrapperType1},leagueNameType1Class(){return this.elementSize.width<=960?this.$style.leagueNameType1960:this.$style.leagueNameType1},numberOfVideosType1Class(){const e=this.elementSize.width;return e<=680?this.$style.numberOfVideosType1680:e<=1232?this.$style.numberOfVideosType11232:this.$style.numberOfVideosType1},containerLeftType1Class(){const e=this.elementSize.width;return e<=320?this.$style.containerLeftType1320:e<=350?this.$style.containerLeftType1350:e<=680?this.$style.containerLeftType1680:this.$style.containerLeftType1},positionContainertype1Class(){const e=this.elementSize.width;return e<=380?this.$style.positionContainertype1380:e<=420?this.$style.positionContainertype1420:e<=680?this.$style.positionContainertype1680:this.$style.positionContainertype1},rowTeamClass(){const e=this.elementSize.width;return e<=320?this.$style.rowTeam320:e<=350?this.$style.rowTeam350:e<=420?this.$style.rowTeam420:e<=460?this.$style.rowTeam460:this.$style.rowTeam},containerBtnVideosClass(){return this.$style.containerBtnVideosGames},numberOfVideosClass(){return this.elementSize.width<=620?this.$style.numberOfVideos620:this.$style.numberOfVideos},block02Class(){const e=this.elementSize.width;return e<=420?this.$style.block02420Games:e<=620?this.$style.block02620Games:e<=960?this.$style.block02960Games:this.$style.block02Games},imgPlayerIconClass(){const e=this.elementSize.width;return e<=420?this.$style.imgPlayerIcon420:e<=460?this.$style.imgPlayerIcon460:this.$style.imgPlayerIcon},manchesterUnitedClass(){const e=this.elementSize.width;return e<=360?this.$style.manchesterUnited360Games:e<=420?this.$style.manchesterUnited420Games:e<=460?this.$style.manchesterUnited460Games:this.$style.manchesterUnitedGames},containerRightClass(){const e=this.elementSize.width;return e<=420?this.$style.containerRight420Games:e<=960?this.$style.containerRight960Games:this.$style.containerRightGames},playerContainerType1Class(){const e=this.elementSize.width;return e<=320?this.$style.playerContainerType1320Games:e<=460?this.$style.playerContainerType1460Games:this.$style.playerContainerType1Games},playerContainerClass(){const e=this.elementSize.width;return e<=420?this.$style.playerContainer420Games:e<=460?this.$style.playerContainer460Games:this.$style.playerContainerGames},iconFavoritesClass(){return this.elementSize.width<=420?this.$style.iconFavorites420:this.$style.iconFavorites},iconFavoritesType1Class(){return this.elementSize.width<=320?this.$style.iconFavoritesType1320:this.$style.iconFavoritesType1},containerLeftClass(){const e=this.elementSize.width;return e<=420?this.$style.containerLeft420Games:e<=620?this.$style.containerLeft620Games:this.$style.containerLeftGames},positionContainerClass(){return this.elementSize.width<=620?this.$style.positionContainer620:this.$style.positionContainer},rowwPlayerClass(){const e=this.elementSize.width;return e<=420?this.$style.rowwPlayer420Games:e<=460?this.$style.rowwPlayer460Games:e<=960?this.$style.rowwPlayer960Games:this.$style.rowwPlayerGames}},setup(){const e=t.ref("myDivRef2"),{elementSize:a}=Wm(e);return{myDivRef2:e,elementSize:a}},props:{typeData:{type:Number,default:1},canPlayVideos:{type:Boolean,default:!1},teamWidget:{type:Number,default:0},type:{type:Number,default:0},typeView:{type:Number,default:0},isExpanded:{type:Boolean,default:!1},background:{type:String,default:"#172531"},height:{type:String,default:"35px"},fontColor:{type:String,default:"#F4F4F4"},fontSize:{type:String,default:"12px"},fontFamily:{type:String,default:"Poppins-Regular"},data:{type:Object,default:()=>{}},game:{type:Object,default:()=>{}},colorArrow:{type:String,default:"#D9D9D9"},buttonTextValue:{type:String,default:"Ver videos"},iconVideos:{type:String,default:"https://golstatsimages.blob.core.windows.net/images-library/arrow-btn.png"},iconSize:{type:String,default:"13px"},iconSizeMini:{type:String,default:"13px"},iconPosition:{type:String,default:"left"},buttonWidth:{type:String,default:"93px"},buttonWidthMini:{type:String,default:"24px"},buttonHeightMini:{type:String,default:"24px"},buttonHeight:{type:String,default:"30px"},buttonRadius:{type:String,default:"30px"},buttonBorderWidth:{type:Number,default:1},buttonBackground:{type:String,default:"#ffffff1a"},buttonfontFamily:{type:String,default:"Poppins-Regular"},buttonBorderColor:{type:String,default:"#55636e"},buttonFontSize:{type:String,default:"10px"}},data:()=>({expand:!1}),methods:{clickExpand(e){this.$emit("expand",{expand:!this.isExpanded,id:e})},emitEventMedia(e){this.$emit("mediadata",e)}}},mp=()=>{t.useCssVars(e=>({"20b41037":e.height,"39c46784":e.background,"0e629c00":e.fontSize,"85dc1978":e.fontColor,"2cf3d8ba":e.fontFamily}))},pp=cp.setup;cp.setup=pp?(e,t)=>(mp(),pp(e,t)):mp;const yp={ref:"myDivRef2",style:{"border-left":"rgba(13,29,41,0.7) 1px solid","border-right":"rgba(13,29,41,0.7) 1px solid"}},gp=["src"],up=["src"],hp=["src"],vp=["src"],fp=["fill"],_p=["fill"],bp=["src"],Sp=["src"],Tp=["fill"],wp=["fill"],kp=["src"],Cp=["src"],Vp=["src"],Pp=["src"],Ip=["fill"],Np=["fill"];const Ep=M(cp,[["render",function(e,a,i,s,o,l){const n=t.resolveComponent("GSCButton");return t.openBlock(),t.createElementBlock("div",yp,[0==i.type?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(l.rowwPlayerClass),id:"container-row-player"},[t.createElementVNode("div",{class:t.normalizeClass(l.containerLeftClass),id:"container-left"},[t.createElementVNode("div",{class:t.normalizeClass(l.positionContainerClass)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.numberPosition)},t.toDisplayString(i.data.position),3)],2),t.createElementVNode("div",{class:t.normalizeClass(l.playerContainerClass)},[t.createElementVNode("img",{class:t.normalizeClass(l.imgPlayerIconClass),src:i.data.player_photo},null,10,gp),t.createElementVNode("div",{class:t.normalizeClass(l.manchesterUnitedClass)},[s.elementSize.width<=420?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(i.data.player_short),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(i.data.player_name),1)],64))],2),s.elementSize.width<=420?(t.openBlock(),t.createElementBlock("img",{key:0,class:t.normalizeClass(e.$style.chivasIcon),alt:"",src:i.data.team_logo},null,10,up)):t.createCommentVNode("",!0)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(l.containerRightClass),id:"container-right"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.block01)},[s.elementSize.width>420?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.nameTeamGames)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgTeamIcon),alt:"",src:i.data.team_logo},null,10,hp),s.elementSize.width>540?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.teamName)},t.toDisplayString(i.data.team_abrev),3)):t.createCommentVNode("",!0)],2)):t.createCommentVNode("",!0),s.elementSize.width>730?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.position)},[t.createElementVNode("span",{class:t.normalizeClass(e.$style.dfC)},t.toDisplayString(i.data.player_position),3)],2)):t.createCommentVNode("",!0),s.elementSize.width>960?(t.openBlock(),t.createElementBlock("div",{key:2,class:t.normalizeClass(e.$style.age)},t.toDisplayString(i.data.player_age),3)):t.createCommentVNode("",!0),s.elementSize.width>960?(t.openBlock(),t.createElementBlock("div",{key:3,class:t.normalizeClass(e.$style.country)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.manchesterUnitedIcon),alt:"",src:i.data.player_country_flag},null,10,vp)],2)):t.createCommentVNode("",!0),s.elementSize.width>540?(t.openBlock(),t.createElementBlock("div",{key:4,class:t.normalizeClass(e.$style.playedGames)},t.toDisplayString(i.data.player_games),3)):t.createCommentVNode("",!0),s.elementSize.width>635?(t.openBlock(),t.createElementBlock("div",{key:5,class:t.normalizeClass(e.$style.playedMinutes)},t.toDisplayString(i.data.player_min),3)):t.createCommentVNode("",!0)],2),t.createElementVNode("div",{class:t.normalizeClass(l.block02Class)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.containesOptions)},[s.elementSize.width>960?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.leagueName)},t.toDisplayString(i.data.total),3)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(l.containerBtnVideosClass)},[i.canPlayVideos||i.game.awayTeam.team_id==i.teamWidget&&1!=i.typeData?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[s.elementSize.width>635?(t.openBlock(),t.createBlock(n,{key:0,icon:i.iconVideos,"icon-size":i.iconSize,"icon-position":i.iconPosition,width:i.buttonWidth,height:i.buttonHeight,"border-radius":i.buttonRadius,"border-width":i.buttonBorderWidth,"background-color":i.buttonBackground,"font-family":i.buttonfontFamily,"border-color":i.buttonBorderColor,"text-value":i.buttonTextValue,"font-size":i.buttonFontSize,onClick:a[0]||(a[0]=e=>l.emitEventMedia(i.data))},null,8,["icon","icon-size","icon-position","width","height","border-radius","border-width","background-color","font-family","border-color","text-value","font-size"])):(t.openBlock(),t.createBlock(n,{key:1,mini:!0,icon:i.iconVideos,"icon-size":i.iconSizeMini,"icon-position":i.iconPosition,width:i.buttonWidthMini,height:i.buttonHeightMini,"border-radius":i.buttonRadius,"border-width":i.buttonBorderWidth,"background-color":i.buttonBackground,"font-family":i.buttonfontFamily,"border-color":i.buttonBorderColor,"font-size":i.buttonFontSize,onClick:a[1]||(a[1]=e=>l.emitEventMedia(i.data))},null,8,["icon","icon-size","icon-position","width","height","border-radius","border-width","background-color","font-family","border-color","font-size"]))],64)):t.createCommentVNode("",!0),s.elementSize.width<=635?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(l.numberOfVideosClass)},t.toDisplayString(i.data.total),3)):t.createCommentVNode("",!0)],2)],2),(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass([e.$style.arrowExpandIcon,i.isExpanded?e.$style.rotate:""]),width:"12",height:"8",viewBox:"0 0 12 8",fill:i.colorArrow,xmlns:"http://www.w3.org/2000/svg",onClick:a[2]||(a[2]=e=>l.clickExpand(i.data.id))},[t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M6 4.93631L10.2929 1.23496C10.6834 0.898244 11.3166 0.898244 11.7071 1.23496C12.0976 1.57167 12.0976 2.11759 11.7071 2.4543L6.70711 6.76532C6.31658 7.10203 5.68342 7.10203 5.29289 6.76532L0.292893 2.4543C-0.0976311 2.11759 -0.0976311 1.57167 0.292893 1.23496C0.683418 0.898244 1.31658 0.898244 1.70711 1.23496L6 4.93631Z",fill:i.colorArrow},null,8,_p)],10,fp))],2)],2)],2)):t.createCommentVNode("",!0),1==i.type?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(l.rowTeamClass),style:t.normalizeStyle(s.elementSize.width>540?"border-bottom: 1px solid rgba(255, 255, 255, 0.1)":""),id:"container-row-player"},[t.createElementVNode("div",{class:t.normalizeClass(l.containerLeftType1Class),id:"container-left"},[t.createElementVNode("div",{class:t.normalizeClass(l.positionContainertype1Class)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.numberPositionType1)},t.toDisplayString(i.data.position),3),t.createElementVNode("div",{class:t.normalizeClass(l.iconFavoritesType1Class)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.shapeIconType1),alt:"",src:i.data.team_logo},null,10,bp)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(l.playerContainerType1Class)},[t.createElementVNode("div",{class:t.normalizeClass(0==i.typeView?e.$style.tijuanaWrapperType1:e.$style.tijuanaWrapperType1NoBg)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.tijuanaIconType1),alt:"",src:i.data.team_logo},null,10,Sp)],2),t.createElementVNode("div",{class:t.normalizeClass(l.manchesterUnitedType1Class)},t.toDisplayString(i.data.team_abrev),3)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(l.containerRightType1Class),id:"container-right"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.block01TitlesType1)},[s.elementSize.width>540?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(l.teamNameWrapperType1Class)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamNameType1)},[t.createTextVNode(" C/"+t.toDisplayString(i.data.frequency)+" ",1),2!=i.data.category?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("min")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("segs")],64))],2)],2)):t.createCommentVNode("",!0),s.elementSize.width>960?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(l.ageWrapperType1Class)},[t.createElementVNode("div",{class:t.normalizeClass(l.ageType1Class)},t.toDisplayString(i.data.promthistournament),3)],2)):t.createCommentVNode("",!0),s.elementSize.width>1086?(t.openBlock(),t.createElementBlock("div",{key:2,class:t.normalizeClass(l.playedGamesWrapperType1Class)},[t.createElementVNode("div",{class:t.normalizeClass(l.playedGamesType1Class)},t.toDisplayString(i.data.promlasttournament),3)],2)):t.createCommentVNode("",!0),s.elementSize.width>770?(t.openBlock(),t.createElementBlock("div",{key:3,class:t.normalizeClass(l.playedMinutesWrapperType1Class)},[t.createElementVNode("div",{class:t.normalizeClass(l.playedMinutesType1Class)},t.toDisplayString(i.data.team_games),3)],2)):t.createCommentVNode("",!0)],2),t.createElementVNode("div",{class:t.normalizeClass(l.block02Type1Class)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.containesOptionsType1Games)},[t.createElementVNode("div",{class:t.normalizeClass(l.leagueNameWrapperType1Class)},[t.createElementVNode("div",{class:t.normalizeClass(l.leagueNameType1Class)},t.toDisplayString(i.data.total),3)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.containerBtnVideosType1Games)},[s.elementSize.width>679&&i.canPlayVideos?(t.openBlock(),t.createBlock(n,{key:0,icon:i.iconVideos,"icon-size":i.iconSize,"icon-position":i.iconPosition,width:i.buttonWidth,height:i.buttonHeight,"border-radius":i.buttonRadius,"border-width":i.buttonBorderWidth,"background-color":i.buttonBackground,"font-family":i.buttonfontFamily,"border-color":i.buttonBorderColor,"text-value":i.buttonTextValue,"font-size":i.buttonFontSize,onClick:a[3]||(a[3]=e=>l.emitEventMedia(i.data))},null,8,["icon","icon-size","icon-position","width","height","border-radius","border-width","background-color","font-family","border-color","text-value","font-size"])):(t.openBlock(),t.createBlock(n,{key:1,mini:!0,icon:i.iconVideos,"icon-size":i.iconSizeMini,"icon-position":i.iconPosition,width:i.buttonWidthMini,height:i.buttonHeightMini,"border-radius":i.buttonRadius,"border-width":i.buttonBorderWidth,"background-color":i.buttonBackground,"font-family":i.buttonfontFamily,"border-color":i.buttonBorderColor,"font-size":i.buttonFontSize,onClick:a[4]||(a[4]=e=>l.emitEventMedia(i.data))},null,8,["icon","icon-size","icon-position","width","height","border-radius","border-width","background-color","font-family","border-color","font-size"])),t.createElementVNode("div",{class:t.normalizeClass(l.numberOfVideosType1Class)},t.toDisplayString(i.data.total),3)],2)],2),(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass([e.$style.arrowExpandIcon,i.isExpanded?e.$style.rotate:""]),width:"12",height:"8",viewBox:"0 0 12 8",fill:i.colorArrow,xmlns:"http://www.w3.org/2000/svg",onClick:a[5]||(a[5]=e=>l.clickExpand(i.data.id))},[t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M6 4.93631L10.2929 1.23496C10.6834 0.898244 11.3166 0.898244 11.7071 1.23496C12.0976 1.57167 12.0976 2.11759 11.7071 2.4543L6.70711 6.76532C6.31658 7.10203 5.68342 7.10203 5.29289 6.76532L0.292893 2.4543C-0.0976311 2.11759 -0.0976311 1.57167 0.292893 1.23496C0.683418 0.898244 1.31658 0.898244 1.70711 1.23496L6 4.93631Z",fill:i.colorArrow},null,8,wp)],10,Tp))],2)],2)],6)):t.createCommentVNode("",!0),2==i.type?(t.openBlock(),t.createElementBlock("div",{key:2,class:t.normalizeClass(l.rowwPlayerClass),id:"container-row-player"},[t.createElementVNode("div",{class:t.normalizeClass(l.containerLeftClass),id:"container-left"},[t.createElementVNode("div",{class:t.normalizeClass(l.positionContainerClass)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.numberPosition)},t.toDisplayString(i.data.position),3)],2),t.createElementVNode("div",{class:t.normalizeClass(l.playerContainerClass)},[t.createElementVNode("img",{class:t.normalizeClass(l.imgPlayerIconClass),src:i.data.player_photo},null,10,kp),t.createElementVNode("div",{class:t.normalizeClass(l.manchesterUnitedClass)},t.toDisplayString(i.data.player_name),3),s.elementSize.width<=420?(t.openBlock(),t.createElementBlock("img",{key:0,class:t.normalizeClass(e.$style.chivasIcon),alt:"",src:i.data.team_logo},null,10,Cp)):t.createCommentVNode("",!0)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(l.containerRightClass),id:"container-right"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.block01)},[s.elementSize.width>420?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.nameTeamGames)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgTeamIcon),alt:"",src:i.data.team_logo},null,10,Vp),s.elementSize.width>540?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.teamName)},t.toDisplayString(i.data.team_abrev),3)):t.createCommentVNode("",!0)],2)):t.createCommentVNode("",!0),s.elementSize.width>730?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.position)},[t.createElementVNode("span",{class:t.normalizeClass(e.$style.dfC)},t.toDisplayString(i.data.player_position),3)],2)):t.createCommentVNode("",!0),s.elementSize.width>960?(t.openBlock(),t.createElementBlock("div",{key:2,class:t.normalizeClass(e.$style.age)},t.toDisplayString(i.data.player_age),3)):t.createCommentVNode("",!0),s.elementSize.width>960?(t.openBlock(),t.createElementBlock("div",{key:3,class:t.normalizeClass(e.$style.country)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.manchesterUnitedIcon),alt:"",src:i.data.player_country_flag},null,10,Pp)],2)):t.createCommentVNode("",!0),s.elementSize.width>540?(t.openBlock(),t.createElementBlock("div",{key:4,class:t.normalizeClass(e.$style.playedGames)},t.toDisplayString(i.data.player_games),3)):t.createCommentVNode("",!0),s.elementSize.width>635?(t.openBlock(),t.createElementBlock("div",{key:5,class:t.normalizeClass(e.$style.playedMinutes)},t.toDisplayString(i.data.player_min),3)):t.createCommentVNode("",!0),s.elementSize.width>635?(t.openBlock(),t.createElementBlock("div",{key:6,class:t.normalizeClass(e.$style.playedMinutes)},t.toDisplayString(i.data.league_name),3)):t.createCommentVNode("",!0)],2),t.createElementVNode("div",{class:t.normalizeClass(l.block02Class)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.containesOptions)},[t.createElementVNode("div",{class:t.normalizeClass(l.containerBtnVideosClass)},[i.canPlayVideos?(t.openBlock(),t.createBlock(n,{key:0,icon:i.iconVideos,"icon-size":i.iconSize,"icon-position":i.iconPosition,width:s.elementSize.width<=680?"83px":i.buttonWidth,height:i.buttonHeight,"border-radius":i.buttonRadius,"border-width":i.buttonBorderWidth,"background-color":i.buttonBackground,"font-family":i.buttonfontFamily,"border-color":i.buttonBorderColor,"text-value":i.buttonTextValue,"font-size":i.buttonFontSize,onClick:a[6]||(a[6]=e=>l.emitEventMedia(i.data)),style:t.normalizeStyle(s.elementSize.width<=680?s.elementSize.width<=420?"margin-right: 35px;":"margin-right: 0px;":"")},null,8,["icon","icon-size","icon-position","width","height","border-radius","border-width","background-color","font-family","border-color","text-value","font-size","style"])):t.createCommentVNode("",!0)],2)],2),(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass([e.$style.arrowExpandIcon,i.isExpanded?e.$style.rotate:""]),width:"12",height:"8",viewBox:"0 0 12 8",fill:i.colorArrow,xmlns:"http://www.w3.org/2000/svg",onClick:a[7]||(a[7]=e=>l.clickExpand(i.data.id))},[t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M6 4.93631L10.2929 1.23496C10.6834 0.898244 11.3166 0.898244 11.7071 1.23496C12.0976 1.57167 12.0976 2.11759 11.7071 2.4543L6.70711 6.76532C6.31658 7.10203 5.68342 7.10203 5.29289 6.76532L0.292893 2.4543C-0.0976311 2.11759 -0.0976311 1.57167 0.292893 1.23496C0.683418 0.898244 1.31658 0.898244 1.70711 1.23496L6 4.93631Z",fill:i.colorArrow},null,8,Np)],10,Ip))],2)],2)],2)):t.createCommentVNode("",!0)],512)}],["__cssModules",{$style:dp}]]),xp={tablePositionGames:"_tablePositionGames_1reko_91",tablePositionWrapperGames:"_tablePositionWrapperGames_1reko_123",imgHenrryIcon:"_imgHenrryIcon_1reko_141",americaIcon:"_americaIcon_1reko_157",playerPhotoGames:"_playerPhotoGames_1reko_181",toniKroosGames:"_toniKroosGames_1reko_199",shapeIcon:"_shapeIcon_1reko_221",menuiconsTeams:"_menuiconsTeams_1reko_233",component31:"_component31_1reko_251",playerNameGames:"_playerNameGames_1reko_273",icnPlayIcon:"_icnPlayIcon_1reko_289",goles:"_goles_1reko_305",americaIcon1:"_americaIcon1_1reko_319",teamsAmerica:"_teamsAmerica_1reko_347",containerData:"_containerData_1reko_359",shapeIcon1:"_shapeIcon1_1reko_375",icnExpand1:"_icnExpand1_1reko_387",icnExpand:"_icnExpand_1reko_387",playerDataGames:"_playerDataGames_1reko_427",playerInfoGames:"_playerInfoGames_1reko_449",headerTopGame:"_headerTopGame_1reko_479",playerRow:"_playerRow_1reko_507",groupsLeague:"_groupsLeague_1reko_529",text:"_text_1reko_547",btnViewFullList:"_btnViewFullList_1reko_563",headerTopsGames:"_headerTopsGames_1reko_597",btnVideosOptions:"_btnVideosOptions_1reko_741",position:"_position_1reko_1095",positionWrapper:"_positionWrapper_1reko_1119",imgNecaxaIcon:"_imgNecaxaIcon_1reko_1135",teamLogo:"_teamLogo_1reko_1147",teamPhoto:"_teamPhoto_1reko_1163",name:"_name_1reko_1179",icnPlayIconType1:"_icnPlayIconType1_1reko_1195",verVideosType1:"_verVideosType1_1reko_1209",btnVideosOptionsType1:"_btnVideosOptionsType1_1reko_1221",btnVideosOptions1Games:"_btnVideosOptions1Games_1reko_1245",leftContainer:"_leftContainer_1reko_1269",shapeIconType1:"_shapeIconType1_1reko_1287",icnExpandType1:"_icnExpandType1_1reko_1297",arrowExpand:"_arrowExpand_1reko_1317",containerInfoGames:"_containerInfoGames_1reko_1333",headerTopTeam:"_headerTopTeam_1reko_1357",containerHeader:"_containerHeader_1reko_1385",goles1:"_goles1_1reko_1403",golesType1:"_golesType1_1reko_1409",golesWrapper:"_golesWrapper_1reko_1419",btnViewAll:"_btnViewAll_1reko_1437",headerTopsTeams:"_headerTopsTeams_1reko_1471",arrowExpandIcon:"_arrowExpandIcon_1reko_1705",rotate:"_rotate_1reko_1715"},Bp={components:{GSCButton:rp},props:{typeData:{type:Number,default:1},teamWidget:{type:Number,default:0},game:{type:Object,default:()=>{}},type:{type:Number,default:0},isExpanded:{type:Boolean,default:!1},canPlayVideos:{type:Boolean,default:!1},categoryName:{type:String,default:""},categoryId:{type:String,default:""},data:{type:Object,default:()=>{}},backgroundColor:{type:String,default:"#0d1d29"},backgroundColorHeader:{type:String,default:"#183143"},fontColorName:{type:String,default:"#F4F4F4"},fontSizeName:{type:String,default:"14px"},fontFamilyName:{type:String,default:"Poppins-Regular"},fontColorTopNum:{type:String,default:"#FFFFFF"},fontSizeTopNum:{type:String,default:"96px"},fontFamilyTopNum:{type:String,default:"Oswald-Bold"},fontColorCategory:{type:String,default:"#FFFFFF"},fontSizeCategory:{type:String,default:"12px"},fontFamilyCategory:{type:String,default:"Poppins-Regular"},opacityColorTopNum:{type:Number,default:.09},borderColorCategory:{type:String,default:"#cbee6b"},iconVideos:{type:String,default:"https://golstatsimages.blob.core.windows.net/images-library/arrow-btn.png"},iconSize:{type:String,default:"18px"},iconPosition:{type:String,default:"left"},colorArrow:{type:String,default:"#D9D9D9"},buttonWidth:{type:String,default:"fit-content"},buttonMaxWidth:{type:String,default:"180px"},buttonHeight:{type:String,default:"24px"},buttonRadius:{type:String,default:"30px"},buttonBorderWidth:{type:Number,default:1},buttonBackground:{type:String,default:"#ffffff1a"},buttonfontFamily:{type:String,default:"Poppins-Regular"},buttonBorderColor:{type:String,default:"#cbee6b"},buttonFontSize:{type:String,default:"12px"}},data:()=>({expand:!1}),methods:{viewProfile(e){this.$emit("play",e)},clickMore(e){this.$emit("more",e)},clickExpand(e){this.$emit("expand",{expand:!this.isExpanded,id:e})},clickFav(e){this.$emit("fav",e)},clickEventMedia(e){this.$emit("mediadata",e)}}},Fp=()=>{t.useCssVars(e=>({"5b159b56":e.fontSizeTopNum,ef81ba90:e.fontFamilyTopNum,"40d5b2de":e.fontColorTopNum,"55ca4106":e.opacityColorTopNum,"488c59aa":e.fontColorName,"7f32ad12":e.fontFamilyName,"081c0022":e.fontSizeName,b1fb7024:e.backgroundColorHeader,"9af157f6":e.fontFamilyCategory,"4777f062":e.fontSizeCategory,e72874c4:e.fontColorCategory,"2ceb71e1":e.borderColorCategory}))},Gp=Bp.setup;Bp.setup=Gp?(e,t)=>(Fp(),Gp(e,t)):Fp;const zp=["src"],Ap=["src"],Dp=["src"],Lp=["src"],$p=["fill"],Mp=["fill"],Op=["src"],Rp=["fill"],Wp=["fill"];const jp=M(Bp,[["render",function(e,a,i,s,o,l){const n=t.resolveComponent("GSCButton");return t.openBlock(),t.createElementBlock("div",null,[0==i.type?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.headerTopsGames)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.playerRow),id:"player-row"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.headerTopGame)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.playerPhotoGames),id:"container-player-photp"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.tablePositionWrapperGames)},[t.createElementVNode("b",{class:t.normalizeClass(e.$style.tablePositionGames)},t.toDisplayString(i.data.top),3)],2),t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHenrryIcon),alt:"",src:i.data.photo},null,10,zp),t.createElementVNode("img",{class:t.normalizeClass(e.$style.americaIcon),alt:"",src:i.data.logo},null,10,Ap)],2),t.createElementVNode("main",{class:t.normalizeClass(e.$style.playerInfoGames),id:"container-player-info"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.playerNameGames)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.toniKroosGames)},t.toDisplayString(i.data.name),3)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.playerDataGames)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.containerData)},[i.canPlayVideos||i.game.awayTeam.team_id==i.teamWidget&&1!=i.typeData?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createVNode(n,{"icon-size":i.iconSize,"icon-position":i.iconPosition,width:i.buttonWidth,"button-max-width":i.buttonMaxWidth,height:i.buttonHeight,"border-radius":i.buttonRadius,"border-width":i.buttonBorderWidth,"background-color":i.buttonBackground,"font-family":i.buttonfontFamily,"border-color":i.buttonBorderColor,"text-value":i.data.total+" "+i.categoryName.toLowerCase(),"font-size":i.buttonFontSize,onClick:a[0]||(a[0]=e=>l.clickEventMedia(i.data))},null,8,["icon-size","icon-position","width","button-max-width","height","border-radius","border-width","background-color","font-family","border-color","text-value","font-size"]),t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamsAmerica)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.americaIcon1),alt:"",src:i.data.logo},null,10,Dp)],2)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createVNode(n,{icon:"","icon-size":i.iconSize,"icon-position":i.iconPosition,width:i.buttonWidth,"button-max-width":i.buttonMaxWidth,height:i.buttonHeight,"border-radius":i.buttonRadius,"border-width":i.buttonBorderWidth,"background-color":i.buttonBackground,"font-family":i.buttonfontFamily,"border-color":i.buttonBorderColor,"text-value":i.data.total+" "+i.categoryName.toLowerCase(),"font-size":i.buttonFontSize},null,8,["icon-size","icon-position","width","button-max-width","height","border-radius","border-width","background-color","font-family","border-color","text-value","font-size"]),t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamsAmerica)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.americaIcon1),alt:"",src:i.data.logo},null,10,Lp)],2)],64))],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.icnExpand),onClick:a[1]||(a[1]=e=>l.clickExpand(i.data.player_id))},[(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass([e.$style.arrowExpandIcon,i.isExpanded?e.$style.rotate:""]),width:"12",height:"8",viewBox:"0 0 12 8",fill:i.colorArrow,xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M6 4.93631L10.2929 1.23496C10.6834 0.898244 11.3166 0.898244 11.7071 1.23496C12.0976 1.57167 12.0976 2.11759 11.7071 2.4543L6.70711 6.76532C6.31658 7.10203 5.68342 7.10203 5.29289 6.76532L0.292893 2.4543C-0.0976311 2.11759 -0.0976311 1.57167 0.292893 1.23496C0.683418 0.898244 1.31658 0.898244 1.70711 1.23496L6 4.93631Z",fill:i.colorArrow},null,8,Mp)],10,$p))],2)],2)],2)],2)],2)],2)):t.createCommentVNode("",!0),1==i.type?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.headerTopsTeams)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.containerHeader),id:"header-container"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.headerTopTeam)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamPhoto),id:"container-team"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.positionWrapper)},[t.createElementVNode("b",{class:t.normalizeClass(e.$style.position)},t.toDisplayString(i.data.top),3)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamLogo)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgNecaxaIcon),alt:"",src:i.data.logo},null,10,Op)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.containerInfoGames)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.leftContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.name)},t.toDisplayString(i.data.name_team),3),t.createVNode(n,{"icon-size":i.iconSize,"icon-position":i.iconPosition,width:i.buttonWidth,"button-max-width":i.buttonMaxWidth,height:i.buttonHeight,"border-radius":i.buttonRadius,"border-width":i.buttonBorderWidth,"background-color":i.buttonBackground,"font-family":i.buttonfontFamily,"border-color":i.buttonBorderColor,"text-value":i.data.total+" "+i.categoryName.toLowerCase(),"font-size":i.buttonFontSize,onClick:a[2]||(a[2]=e=>l.clickEventMedia(i.data))},null,8,["icon-size","icon-position","width","button-max-width","height","border-radius","border-width","background-color","font-family","border-color","text-value","font-size"]),t.createElementVNode("div",{class:t.normalizeClass(e.$style.btnVideosOptions1Games)},[t.createVNode(n,{"icon-size":i.iconSize,"icon-position":i.iconPosition,width:i.buttonWidth,"button-max-width":i.buttonMaxWidth,height:i.buttonHeight,"border-radius":i.buttonRadius,"border-width":i.buttonBorderWidth,"background-color":i.buttonBackground,"font-family":i.buttonfontFamily,"border-color":i.buttonBorderColor,"text-value":i.data.total+" "+i.categoryName.toLowerCase(),"font-size":i.buttonFontSize,onClick:a[3]||(a[3]=e=>l.clickEventMedia(i.data))},null,8,["icon-size","icon-position","width","button-max-width","height","border-radius","border-width","background-color","font-family","border-color","text-value","font-size"]),t.createElementVNode("div",{class:t.normalizeClass(e.$style.verVideosType1)},t.toDisplayString(i.data.total),3)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.arrowExpand),onClick:a[4]||(a[4]=e=>l.clickExpand(i.data.player_id))},[(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass([e.$style.arrowExpandIcon,i.isExpanded?e.$style.rotate:""]),width:"12",height:"8",viewBox:"0 0 12 8",fill:i.colorArrow,xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M6 4.93631L10.2929 1.23496C10.6834 0.898244 11.3166 0.898244 11.7071 1.23496C12.0976 1.57167 12.0976 2.11759 11.7071 2.4543L6.70711 6.76532C6.31658 7.10203 5.68342 7.10203 5.29289 6.76532L0.292893 2.4543C-0.0976311 2.11759 -0.0976311 1.57167 0.292893 1.23496C0.683418 0.898244 1.31658 0.898244 1.70711 1.23496L6 4.93631Z",fill:i.colorArrow},null,8,Wp)],10,Rp))],2)],2)],2)],2)],2)):t.createCommentVNode("",!0)])}],["__cssModules",{$style:xp}]]),qp={equipoGames:"_equipoGames_fst7d_75",atlasSeleccinGames:"_atlasSeleccinGames_fst7d_85",equipoAtlasSeleccinMexiGames:"_equipoAtlasSeleccinMexiGames_fst7d_93",aosGames:"_aosGames_fst7d_101",span12:"_span12_fst7d_109",nacionalidadMex:"_nacionalidadMex_fst7d_115",manchesterUnited:"_manchesterUnited_fst7d_121",manchesterUnited12:"_manchesterUnited12_fst7d_135",containerInfoGames:"_containerInfoGames_fst7d_155",verPerfil12:"_verPerfil12_fst7d_173",btnProfile:"_btnProfile_fst7d_191",containerButton:"_containerButton_fst7d_223",dataContainer:"_dataContainer_fst7d_237",expandedInfoPlayerGames:"_expandedInfoPlayerGames_fst7d_257",containerDataBg:"_containerDataBg_fst7d_437",containerDataSm:"_containerDataSm_fst7d_459",span:"_span_fst7d_109",manchesterUnited14:"_manchesterUnited14_fst7d_481",filter:"_filter_fst7d_491",verPerfil:"_verPerfil_fst7d_173",manchesterUnited8:"_manchesterUnited8_fst7d_533",manchesterUnitedParent1:"_manchesterUnitedParent1_fst7d_545",manchesterUnited1:"_manchesterUnited1_fst7d_135",manchesterUnitedParent:"_manchesterUnitedParent_fst7d_545",frameDiv:"_frameDiv_fst7d_589",infoExpanded:"_infoExpanded_fst7d_605",countryFlag:"_countryFlag_fst7d_911"},Hp={components:{GSCButton:S.GSCButton},props:{isLive:{type:Boolean,default:!1},background:{type:String,default:"#172531"},type:{type:Number,default:1},viewButton:{type:Boolean,default:!0},viewTeam:{type:Boolean,default:!0},viewAge:{type:Boolean,default:!0},viewNationality:{type:Boolean,default:!0},viewPosition:{type:Boolean,default:!0},viewGames:{type:Boolean,default:!0},viewMin:{type:Boolean,default:!0},viewGoals:{type:Boolean,default:!0},viewEffectiveness:{type:Boolean,default:!0},height:{type:String,default:"134px"},fontColor:{type:String,default:"#ffffffb3"},fontColorValue:{type:String,default:"#ffffff"},fontFamily:{type:String,default:"Poppins-Regular"},fontSize:{type:String,default:"10px"},additionalClass:{type:String,default:""},data:{type:Object,default:()=>{}}},setup(){const e=t.ref("myDivRef"),{elementSize:a}=Wm(e);return{myDivRef:e,elementSize:a}},data:()=>({}),computed:{},methods:{viewProfile(e){this.$emit("viewprofile",e)}}},Jp=()=>{t.useCssVars(e=>({a297a8e8:e.fontFamily,"05868b8a":e.fontColor,"9181d814":e.fontColorValue,c650cbae:e.fontSize,af6837b2:e.background}))},Up=Hp.setup;Hp.setup=Up?(e,t)=>(Jp(),Up(e,t)):Jp;const Zp=e=>(t.pushScopeId("data-v-5dd9e88d"),e=e(),t.popScopeId(),e),Xp={ref:"myDivRef"},Yp=["src"],Qp=Zp(()=>t.createElementVNode("span",null,"Posición en la tabla: ",-1)),Kp=Zp(()=>t.createElementVNode("span",null,"Goles anotados: ",-1)),ey=Zp(()=>t.createElementVNode("span",null,"Goles recibidos: ",-1)),ty=Zp(()=>t.createElementVNode("span",null,"Partidos jugados:",-1)),ay=Zp(()=>t.createElementVNode("span",null,"Efectividad de pases: ",-1)),iy=Zp(()=>t.createElementVNode("span",null,"xG: ",-1)),sy=Zp(()=>t.createElementVNode("span",null,"Efectividad de pases: ",-1)),oy=Zp(()=>t.createElementVNode("span",null,"xG: ",-1)),ly=Zp(()=>t.createElementVNode("span",null,"Posición en la tabla: ",-1)),ny=Zp(()=>t.createElementVNode("span",null,"Goles anotados: ",-1)),ry=Zp(()=>t.createElementVNode("span",null,"Goles recibidos: ",-1)),dy=Zp(()=>t.createElementVNode("span",null,"Partidos jugados: ",-1)),cy=Zp(()=>t.createElementVNode("span",null,"Efectividad de pases: ",-1)),my=Zp(()=>t.createElementVNode("span",null,"xG: ",-1));const py=M(Hp,[["render",function(e,a,i,s,o,l){const n=t.resolveComponent("GSCButton");return t.openBlock(),t.createElementBlock("div",Xp,[0==i.type?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.expandedInfoPlayerGames)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.dataContainer),id:"data-container"},[t.createElementVNode("div",{class:t.normalizeClass([e.$style.containerInfoGames,i.additionalClass]),id:"container-info"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited)},[i.viewTeam?(t.openBlock(),t.createElementBlock("p",{key:0,class:t.normalizeClass(e.$style.equipoAtlasSeleccinMexiGames)},[t.createElementVNode("span",{class:t.normalizeClass(e.$style.equipoGames)},"Equipo: ",2),t.createElementVNode("span",{class:t.normalizeClass(e.$style.atlasSeleccinGames)},t.toDisplayString(i.data.teams),3)],2)):t.createCommentVNode("",!0),i.viewAge?(t.openBlock(),t.createElementBlock("p",{key:1,class:t.normalizeClass(e.$style.nacionalidadMex)},[t.createElementVNode("span",{class:t.normalizeClass(e.$style.equipoGames)},"Edad: ",2),t.createElementVNode("span",{class:t.normalizeClass(e.$style.aosGames)},t.toDisplayString(i.data.age)+" años",3),t.createElementVNode("span",{class:t.normalizeClass(e.$style.span12)}," ("+t.toDisplayString(i.data.dataofbirth)+")",3)],2)):t.createCommentVNode("",!0),i.viewNationality?(t.openBlock(),t.createElementBlock("p",{key:2,class:t.normalizeClass(e.$style.nacionalidadMex)},[t.createElementVNode("span",{class:t.normalizeClass(e.$style.span12)},"Nacionalidad: ",2),t.createElementVNode("span",{class:t.normalizeClass(e.$style.aosGames)},[t.createTextVNode(t.toDisplayString(i.data.nationality.substring(0,3).toUpperCase())+" ",1),t.createElementVNode("div",{class:t.normalizeClass(e.$style.countryFlag)},[t.createElementVNode("img",{src:i.data.countryFlag},null,8,Yp)],2)],2)],2)):t.createCommentVNode("",!0),i.viewPosition?(t.openBlock(),t.createElementBlock("p",{key:3,class:t.normalizeClass(e.$style.nacionalidadMex)},[t.createElementVNode("span",{class:t.normalizeClass(e.$style.span12)},"Posición: ",2),t.createElementVNode("span",{class:t.normalizeClass(e.$style.aosGames)},t.toDisplayString(i.data.position),3)],2)):t.createCommentVNode("",!0)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited12)},[i.viewGames&&!i.isLive?(t.openBlock(),t.createElementBlock("p",{key:0,class:t.normalizeClass(e.$style.nacionalidadMex)},[t.createElementVNode("span",{class:t.normalizeClass(e.$style.span12)},"partidos Jugados: ",2),t.createElementVNode("span",{class:t.normalizeClass(e.$style.aosGames)},t.toDisplayString(i.data.games),3)],2)):t.createCommentVNode("",!0),i.viewMin&&!i.isLive?(t.openBlock(),t.createElementBlock("p",{key:1,class:t.normalizeClass(e.$style.nacionalidadMex)},[t.createElementVNode("span",{class:t.normalizeClass(e.$style.span12)},"Minutos Jugados: ",2),t.createElementVNode("span",{class:t.normalizeClass(e.$style.aosGames)},t.toDisplayString(i.data.min),3)],2)):t.createCommentVNode("",!0),i.viewGoals?(t.openBlock(),t.createElementBlock("p",{key:2,class:t.normalizeClass(e.$style.nacionalidadMex)},[t.createElementVNode("span",{class:t.normalizeClass(e.$style.span12)},t.toDisplayString(i.data.category)+": ",3),t.createElementVNode("span",{class:t.normalizeClass(e.$style.aosGames)},t.toDisplayString(i.data.goals),3)],2)):t.createCommentVNode("",!0),i.viewEffectiveness?(t.openBlock(),t.createElementBlock("p",{key:3,class:t.normalizeClass(e.$style.nacionalidadMex)},[t.createElementVNode("span",{class:t.normalizeClass(e.$style.span12)},"Efectividad de pases: ",2),t.createElementVNode("span",{class:t.normalizeClass(e.$style.aosGames)},t.toDisplayString(i.data.effectiveness.toFixed(0))+"%",3)],2)):t.createCommentVNode("",!0)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.containerButton),id:"btn-container"},[i.viewButton?(t.openBlock(),t.createBlock(n,{key:0,style:t.normalizeStyle(""!=i.additionalClass&&s.elementSize.width>540?"margin-right: 50px":""),width:"88px",height:"30px","border-radius":"30px","border-width":1,"background-color":"#ffffff1a","font-family":"Poppins-Semibold","border-color":"#cbee6b","text-value":"Ver perfil","font-size":"10px",onClick:a[0]||(a[0]=e=>l.viewProfile(i.data.id))},null,8,["style"])):t.createCommentVNode("",!0)],2)],2)],2)):t.createCommentVNode("",!0),1==i.type?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.infoExpanded)},[t.createElementVNode("div",{class:t.normalizeClass([e.$style.containerDataBg,i.additionalClass])},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnitedParent)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited1)},[Qp,t.createElementVNode("span",{class:t.normalizeClass(e.$style.spanGames)},t.toDisplayString(i.data.position),3)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited1)},[Kp,t.createElementVNode("span",{class:t.normalizeClass(e.$style.spanGames)},t.toDisplayString(i.data.goals),3)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited1)},[ey,t.createElementVNode("span",{class:t.normalizeClass(e.$style.spanGames)},t.toDisplayString(i.data.goals_received),3)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited1)},[ty,t.createElementVNode("span",{class:t.normalizeClass(e.$style.spanGames)},t.toDisplayString(i.data.games_played),3)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnitedParent)},[i.viewEffectiveness?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.manchesterUnited1)},[ay,t.createElementVNode("span",{class:t.normalizeClass(e.$style.spanGames)},t.toDisplayString(i.data.effectiveness.toFixed(0))+"%",3)],2)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited1)},[iy,t.createElementVNode("span",{class:t.normalizeClass(e.$style.spanGames)},t.toDisplayString(i.data.xg),3)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnitedParent)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited1)},[t.createElementVNode("span",null,t.toDisplayString(i.data.category)+": ",1),t.createElementVNode("span",{class:t.normalizeClass(e.$style.spanGames)},t.toDisplayString(i.data.total),3)],2),i.viewEffectiveness?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.manchesterUnited8)},[sy,t.createElementVNode("span",{class:t.normalizeClass(e.$style.spanGames)},t.toDisplayString(i.data.effectiveness)+"%",3)],2)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited8)},[oy,t.createElementVNode("span",{class:t.normalizeClass(e.$style.spanGames)},t.toDisplayString(i.data.xg),3)],2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.containerDataSm)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.frameDiv)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited1)},[ly,t.createElementVNode("span",{class:t.normalizeClass(e.$style.spanGames)},t.toDisplayString(i.data.position),3)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited1)},[ny,t.createElementVNode("span",{class:t.normalizeClass(e.$style.spanGames)},t.toDisplayString(i.data.goals),3)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited1)},[ry,t.createElementVNode("span",{class:t.normalizeClass(e.$style.spanGames)},t.toDisplayString(i.data.goals_received),3)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited1)},[dy,t.createElementVNode("span",{class:t.normalizeClass(e.$style.spanGames)},t.toDisplayString(i.data.games_played),3)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnitedParent1)},[i.viewEffectiveness?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.manchesterUnited14)},[cy,t.createElementVNode("span",{class:t.normalizeClass(e.$style.spanGames)},t.toDisplayString(i.data.effectiveness.toFixed(0))+"%",3)],2)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited1)},[my,t.createElementVNode("span",{class:t.normalizeClass(e.$style.spanGames)},t.toDisplayString(i.data.xg),3)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited1)},[t.createElementVNode("span",null,t.toDisplayString(i.data.category)+": ",1),t.createElementVNode("span",{class:t.normalizeClass(e.$style.spanGames)},t.toDisplayString(i.data.total),3)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited8)},[t.createElementVNode("span",null,t.toDisplayString(i.data.category)+": ",1),t.createElementVNode("span",{class:t.normalizeClass(e.$style.spanGames)},t.toDisplayString(i.data.total),3)],2)],2)],2),i.viewButton?(t.openBlock(),t.createBlock(n,{key:0,style:t.normalizeStyle(""!=i.additionalClass&&s.elementSize.width>540?"margin-right: 42px":""),width:"88px",height:"30px","border-radius":"30px","border-width":1,"background-color":"#ffffff1a","font-family":"Poppins-Semibold","border-color":"#cbee6b","text-value":"Ver perfil","font-size":"10px",onClick:a[1]||(a[1]=e=>l.viewProfile(i.data.id))},null,8,["style"])):t.createCommentVNode("",!0)],2)):t.createCommentVNode("",!0)],512)}],["__cssModules",{$style:qp}],["__scopeId","data-v-5dd9e88d"]]),yy={3:"Albanesa",4:"Argelina",6:"Andorrano",7:"Angoleña",8:"Anguillan",9:"Antiguan",10:"Argentina",11:"Armenia",12:"Arubeño",13:"Austríaca",14:"Austríaca",15:"Azerbaiyano",16:"Bahamas",17:"Bareini",18:"Bangladesí",19:"Barbadense",20:"Bielorrusa",21:"Belga",22:"Beliceña",23:"Beninesa",24:"Bermudeña",25:"Butanés",26:"Boliviana",27:"Bosnia",28:"Botsuano",29:"Brasileña",30:"Islas Vírgenes Británicas",31:"Bruneano",32:"Búlgara",33:"Burundés",34:"Burmesa",35:"Burundés",36:"Camboyana",37:"Camerunés",38:"Canadiense",39:"Caboverdiano",40:"Caimanés",41:"Centroafricana",42:"Chadiano",43:"Chilena",44:"China",45:"Isla de Navidad",46:"Cocos Island",47:"Colombiana",48:"Comorense",49:"Congoleña",50:"Cookiano",51:"Costarricense",52:"Marfileña",53:"Croata",54:"Cubana",55:"Chipriota",56:"Checa",57:"Danesa",58:"Djibouti",60:"Dominicana",61:"Timorense",62:"Ecuatoriana",63:"Egipcia",64:"Salvadoreña",65:"Inglesa",66:"Ecuatoguineano",67:"Eritreo",68:"Estoniana",69:"Etíope",70:"Islas Malvinas",71:"Feroés",72:"Fiyiano",73:"Finlandesa",74:"Francesa",75:"Guayana Francesa",76:"Francopolinecio",77:"Gabonesa",78:"Gambiana",79:"Georgiano",80:"Alemana",81:"Ghanesa",82:"Gibraltareño",221:"Británico",84:"Griega",85:"Groenlandés",86:"Granadino",87:"Guadeloupeño",89:"Guatemalteca",90:"Guineana",91:"Guyanés",92:"Haitiana",93:"Hondureña",94:"Hongkongese",95:"Húngaro",96:"Islandesa",97:"Indio",98:"Indonesia",99:"Iraní",100:"Iraquí",101:"Irlandesa",102:"Manés",103:"Israelí",104:"Italiana",105:"Jamaiquina",106:"Japonesa",107:"Jordana",108:"Kazaja",109:"Keniana",110:"Kiribatiano",111:"Coreana",112:"Surcoreana",113:"Kosovan",114:"Kuwaití",115:"Kirguisa",116:"Laosiano",117:"Letona",118:"Libanesa",119:"Basotho",120:"Liberiana",121:"Libia",122:"Liechtenstein",123:"Lituano",124:"Luxemburguesa",125:"Macaneso",126:"Macedonia",127:"Malgache",128:"Malaya",129:"Malaya",130:"Maldivo",131:"Mali",132:"Maltesa",133:"Marshallese",134:"Martiniqueña",135:"Mauritania",136:"Mauriciano",137:"Mahoran",138:"Mexicana",139:"Micronesio",140:"Moldava",141:"Monacan",142:"Mongol",143:"Montenegrina",144:"Montserratiano",145:"Marroqui",146:"Mozambiqueña",147:"Namibio",148:"Nauruan",149:"Nepalí",150:"Holandesa",151:"Neocaledonio",152:"Neozelandesa",153:"Nicaragüense",154:"Niueño",155:"Nigerina",156:"Nigeriana",157:"Noruega",158:"Normariano",159:"Omaní",160:"Palestina",161:"Palestina",162:"Palauan",163:"Panameña",164:"Papú",165:"Paraguaya",166:"Peruana",167:"Filipina",168:"Pitcairnés",169:"Polaca",170:"Portuguesa",171:"Puertorriqueña",172:"Catari",173:"Reunionés",174:"Rumana",175:"Rusa",176:"Ruandés",177:"Santa Elena",178:"Sancristobaleña",179:"Santa Lucía",180:"Miquelonnais",181:"Sanvicentina",182:"Samoano",183:"Sanmariense",184:"Santotomense",185:"Saudí",186:"Escocesa",187:"Senegalense",188:"Serbia",189:"Seychellense",190:"Sierraleonesa",191:"Singapurense",192:"Eslovena",193:"Eslovena",194:"Salomonense",195:"Somalí",196:"Sudafricana",197:"Surosetio",198:"Española",199:"Esrilanques",200:"Sudanés",201:"Surinamés",202:"Swazi",203:"Sueca",204:"Suiza",205:"Sirio",206:"Taiwanesa",207:"Tayiko",208:"Tanzano",209:"Tailandesa",210:"Togo",211:"Tongano",212:"Trinitaria",213:"Tunecina",214:"Turca",215:"Turkmena",216:"none",217:"Tuvaluano",218:"Ugandesa",219:"Ucraniana",220:"Emiratí",222:"Americana",223:"Uruguaya",224:"Uzbeka",225:"Vanuatuense",226:"Venezolana",227:"Vietnamita",228:"Islas Vírgenes",229:"Galesa",230:"Walisiano",231:"Saharaui",232:"Yemení",233:"Zambiana",234:"Zimbabuense",236:"Curazaleña",237:"San Martín",239:"Debutante"},gy={components:{GSCCarousel:T.GSCCarousel,GSCLeaders:jp,GSCRowTable:Ep,GSCTableHeader:Ym,GSCExpandedInfo:py},props:{isTeam:{type:Boolean,default:!1},typeTable:{type:Number,default:0},typeData:{type:Number,default:1},gameId:{type:Number,default:0},filtersProp:{type:[Object,String],default:()=>{}},game:{type:Object,default:()=>({})},isWidget:{type:Boolean,default:!1},teamWidget:{type:Number,default:0},canPlayVideos:{type:Boolean,default:!1},filterTeam:{type:Number,default:0},timeLiveComparativeAvanced:{type:Number,default:6e4},category:{type:Number,default:1},categoryName:{type:String,default:"Goles"},seasonSelected:{type:Object,default:()=>({})},season:{type:Number,default:1772},type:{type:Number,default:0},borderRadius:{type:String,default:"8px"},borderWidth:{type:[String,Number],default:"2px"},borderColor:{type:String,default:"#cfcfcf"},backgroundOdd:{type:String,default:"#172531"},backgroundEven:{type:String,default:"#0d1d29"},numRows:{type:Number,default:5}},setup(){const e=t.ref("myDivRef"),{elementSize:a}=Wm(e);return{myDivRef:e,elementSize:a}},watch:{game:{immediate:!0,deep:!0,async handler(e){e&&(this.playersInfo={},this.teamInfo={},this.isloading=!0,this.formatFilterStats=[],await this.getCategoryStats(this.season),this.game.is_live&&(this.createIntervalTops(),this.$emit("intervalidtops",this.intervalIdtops)))}},typeData:{immediate:!0,async handler(e){await this.getCategoryStats(this.season),1===e&&this.game.is_live?(this.createIntervalTops(),this.$emit("intervalidtops",this.intervalIdtops)):clearInterval(this.intervalIdtops)}},filtersProp:{immediate:!1,deep:!0,async handler(e,t){if(e&&(JSON.stringify(e)!==JSON.stringify(t)||this.sonConjuntosDistintos(e.setNationalitiesIds,t.setNationalitiesIds))){this.isloading=!0,this.filterEmitAux=e;[1,23,3,4,5,7,6,9,8,11,10,12,13,15,14,17,16,22].includes(this.category)?this.filterEmitAux.typeZone=1:this.filterEmitAux.typeZone=2,this.formatFilterStats=await this.filterRecords(this.filterEmitAux)}}}},computed:{topData(){if(this.changeStateLoading(!0),Object.entries(this.statsData).length>0&&this.formatFilterStats.length>0){var e={},t={},a=[],i=[],s=[];return this.formatFilterStats.map(a=>{e[a.team_id]?e[a.team_id].total=e[a.team_id].total+a.total:(e[a.team_id]={},e[a.team_id].total=a.total,e[a.team_id].id=this.teamInfo[a.team_id].id,e[a.team_id].name=this.teamInfo[a.team_id].name.replace(" Femenil",""),e[a.team_id].img="https://golstatsimages.blob.core.windows.net/teams-80/"+a.team_id+".png",e[a.team_id].effectiveness=this.teamInfo[a.team_id].effectiveness,e[a.team_id].frecuency=this.teamInfo[a.team_id].frecuency,e[a.team_id].game_avg=this.teamInfo[a.team_id].game_avg,e[a.team_id].game_avg_last_season=this.teamInfo[a.team_id].game_avg_last_season,e[a.team_id].games_played_lastseason=this.teamInfo[a.team_id].games_played_lastseason,e[a.team_id].games_played=this.teamInfo[a.team_id].games_played,e[a.team_id].positiontable=this.teamInfo[a.team_id].positiontable,e[a.team_id].goals=this.teamInfo[a.team_id].goals,e[a.team_id].goalsrecived=this.teamInfo[a.team_id].goalsrecived,e[a.team_id].xg=this.teamInfo[a.team_id].xg),t[a.player_id]?0!=a.player_id&&62117!=a.player_id&&(t[a.player_id].total=t[a.player_id].total+a.total):0!=a.player_id&&62117!=a.player_id&&(t[a.player_id]={},t[a.player_id].total=a.total,a.player_id&&this.playersInfo[a.player_id]?(t[a.player_id].name=this.playersInfo[a.player_id].name,t[a.player_id].name_short=this.getnameshort(this.playersInfo[a.player_id].name),t[a.player_id].img=this.playersInfo[a.player_id].img,t[a.player_id].id=this.playersInfo[a.player_id].id,t[a.player_id].age=this.playersInfo[a.player_id].age,t[a.player_id].team=this.playersInfo[a.player_id].team,t[a.player_id].teamname=this.playersInfo[a.player_id].teamname,t[a.player_id].teamid=this.playersInfo[a.player_id].teamid,t[a.player_id].position=this.playersInfo[a.player_id].position,t[a.player_id].positionId=this.playersInfo[a.player_id].positionId,t[a.player_id].positionfull=this.playersInfo[a.player_id].positionfull,t[a.player_id].country=this.playersInfo[a.player_id].country,t[a.player_id].effectiveness=this.playersInfo[a.player_id].effectiveness,t[a.player_id].minutes=this.playersInfo[a.player_id].minutes_played,t[a.player_id].games=this.playersInfo[a.player_id].games_played,t[a.player_id].date=this.playersInfo[a.player_id].date,t[a.player_id].nationality=this.playersInfo[a.player_id].nationality,t[a.player_id].player_country_flag=this.playersInfo[a.player_id].player_country_flag,t[a.player_id].categoryName=this.categoryName):(t[a.player_id].id=a.player_id,t[a.player_id].name=a.player_id,t[a.player_id].img="SIN IMAGEN",t[a.player_id].age="",t[a.player_id].teamname="",t[a.player_id].team="",t[a.player_id].teamid=0,t[a.player_id].position="",t[a.player_id].positionId=0,t[a.player_id].positionfull="",t[a.player_id].country="",t[a.player_id].effectiveness="",t[a.player_id].minutes="",t[a.player_id].games="",t[a.player_id].date="00-00-0000",t[a.player_id].nationality="",t[a.player_id].player_country_flag="",t[a.player_id].categoryName=""))}),a.push(...Object.values(e)),i.push(...Object.values(t)),a=this.sortAndSlice(Object.values(e),60),i=(i=i.sort(this.compareObjectsMinutes).slice(0,60)).map((e,t)=>(e.top=t<9?"0"+(t+1):""+(t+1),e)),a=a.map((e,t)=>(e.top=t<9?"0"+(t+1):""+(t+1),e)),0===this.filterTeam||this.isTeam||(s=i.filter(e=>e.teamid===this.filterTeam)),this.changeStateLoading(!1),this.isTeam?this.formatArrayPaginate(a):0!=this.filterTeam?this.formatArrayPaginate(s):this.formatArrayPaginate(i)}return this.changeStateLoading(!1),[]}},data:()=>({url:"https://8grl16o77j.execute-api.us-west-2.amazonaws.com/prod/live/tops",urlPrematch:"https://8grl16o77j.execute-api.us-west-2.amazonaws.com/prod/topsBySeasonAndCategory/",data_headers:["team_id","player_id","playing_as","match_result","section","total","origen","destino"],token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",mapPlayers:new Map,setNationalityIds:new Set,arrayAgeRange:[0,0],arePlaysEmpty:!1,teamInfo:{},formatFilterStats:[],formatStats:[],playersInfo:{},isloading:!0,statsData:{},updateSlider:0,intervalIdtops:null,filterEmitAux:{},filtersSelect:{playingAs:[],matchResult:[],sections:[],zone:[],typeZone:[]},filtersValues:{type:1,sections:[1,2,3,4,5,6],matchResult:[1,2,3],playingAs:[1,2],zone:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],typeZone:1,arrayAgeRange:[1,60],setNationalitiesIds:[],setPositionsIds:[1,2,3,4,5,6,7,8,9]},expand:!1,playerexpand:0,positions:[{name:"Portero",fullname:"POR"},{name:"Defensa central",fullname:"DFC"},{name:"Lateral por izquierda",fullname:"LI"},{name:"Lateral por derecha",fullname:"LD"},{name:"Volante por izquierda",fullname:"VI"},{name:"Volante por derecha",fullname:"VD"},{name:"Volante defensivo",fullname:"VDF"},{name:"Volante ofensivo",fullname:"VO"},{name:"Delantero",fullname:"DEL"},{name:"Desconocida",fullname:"Desc"}],categories:[{id:1,name:"Goles"}]}),methods:{changeStateLoading(e){this.isloading=e},compareObjectsMinutes:(e,t)=>e.total>t.total?-1:e.total<t.total?1:e.minutes<t.minutes?-1:e.minutes>t.minutes?1:0,sonConjuntosDistintos(e,t){const a=Array.from(e),i=Array.from(t);if(a.length!==i.length)return!0;for(let s=0;s<a.length;s++)if(!t.has(a[s]))return!0;return!1},getnameshort(e){var t=e.split(","),a=t[0].split(" "),i=t[1].trim().split(" "),s="";return 2==a.length||1==a.length?s=a[0].length<4?a[0]+" "+a[1]:a[0]:3==a.length?s=a[0]+" "+a[1]:4==a.length&&(s=a[1]+" "+a[2]+" "+a[3]),(""!=i[i.length-1]?i[i.length-1].charAt(0):i[i.length-2]?i[i.length-2].charAt(0):"")+". "+(s=s.replace(",",""))},changeCarrousel(){this.expand=!1,this.playerexpand=0},compareObjects:(e,t)=>e.total<t.total?-1:e.total>t.total?1:e.name<t.name?-1:e.name>t.name?1:0,sortAndSlice:(e,t)=>e.sort((e,t)=>(e.name<t.name?1:-1)&&(e.total<t.total?1:-1)).slice(0,t),getCategoryName(e){let t="";for(let a=0;a<this.categories.length;a++)e==this.categories[a].id&&(t=this.categories[a].name);return t},translateTopCategories:e=>({1:[12,55,"35_r","54_r"],2:[2,20],3:[485,486,487,488],4:[10,324],5:[27,323],6:[510],7:[537,540,544,547],8:[328],9:[231,238,280,287,294,406],10:[13,25],11:[98,101,104,105,109,112,115,116],12:[4],13:[88],14:[5],15:[34],16:[23],17:[11],18:[17,50],19:[18,49],20:[14,52],21:[15,53],22:[39],23:[31,32]}[e]||[]),getCoordinatePointPerCategory:e=>({1:2,2:3,3:1,4:2,5:1,6:2,7:2,8:1,9:1,10:2,11:2,12:1,13:1,14:1,15:1,16:1,17:1,18:3,19:3,20:3,21:3,22:1,23:1}[e]||0),emitEventMedia(e,t,a){let i=this.filtersValues.matchResult,s=this.filtersValues.playingAs,o=this.filtersValues.sections,l=this.filtersValues.zone,n=this.translateTopCategories(t);Object.keys(this.filterEmitAux).length>0&&(i=this.filterEmitAux.matchResult,s=this.filterEmitAux.playingAs,o=this.filterEmitAux.sections,l=this.filterEmitAux.zone);const r=this.isTeam?3:2,d=e.player_id;let c=[],m=this.isTeam?e.id:this.filterTeam;d?this.isTeam?m=d:(c=[d],n=n.filter(e=>!e.toString().includes("_r"))):this.isTeam?m=e.id:(c=[e.id],n=n.filter(e=>!e.toString().includes("_r")));const p={auxwidget:!!(this.canPlayVideos||this.game.awayTeam.team_id==this.teamWidget&&1!=this.typeData),seasonId:1==this.game.is_live?this.season:this.game.regularSeasonId,isFeaturedPlayers:!1,mainSectionType:1,playListType:r,gameIds:null,playerIds:c,goalkeeperIds:[],categoryIds:this.translateTopCategories(t),teamId:m||0,matchResult:i,categorySingleName:"",isRivalSubject:!1,avoidCategorySingleName:!1,currentPlayIndex:0,playData:null,lastClashedGameId:null,tournamentsLastClashes:null,advancedFilter:{playListTitle:a,playingAs:s,timeSections:o,fieldSections:l,coordinatePoint:this.getCoordinatePointPerCategory(t)}};this.$emit("setopenmedia",p)},emitEventMediaFullTable(e,t,a){let i=this.filtersValues.matchResult,s=this.filtersValues.playingAs,o=this.filtersValues.sections,l=this.filtersValues.zone,n=this.translateTopCategories(t);Object.keys(this.filterEmitAux).length>0&&(i=this.filterEmitAux.matchResult,s=this.filterEmitAux.playingAs,o=this.filterEmitAux.sections,l=this.filterEmitAux.zone);const r=this.isTeam?3:2;let d=[],c=this.isTeam?e.id:this.filterTeam;this.isTeam?c=e.id:(d=[e.id],n=n.filter(e=>!e.toString().includes("_r")));const m={seasonId:this.season,isFeaturedPlayers:!1,mainSectionType:1,playListType:r,gameIds:null,playerIds:d,goalkeeperIds:[],categoryIds:n,teamId:c||0,matchResult:i,categorySingleName:"",isRivalSubject:!1,avoidCategorySingleName:!1,currentPlayIndex:0,playData:null,lastClashedGameId:null,tournamentsLastClashes:null,advancedFilter:{playListTitle:a,playingAs:s,timeSections:o,fieldSections:l,coordinatePoint:this.getCoordinatePointPerCategory(t)}};this.$emit("setopenmedia",m)},replaceImgPlayer:e=>e.replace("https://golstatsimages.blob.core.windows.net/players-profile/","https://golstatsimages.blob.core.windows.net/players-profile-no-bg/"),abrevName(e){var t=e.split(","),a=t[0].split(" "),i=t[1].trim().split(" "),s="";return 2==a.length||1==a.length?s=a[0].length<4?a[0]+" "+a[1]:a[0]:3==a.length?s=a[0]+" "+a[1]:4==a.length&&(s=a[1]+" "+a[2]+" "+a[3]),(""!=i[i.length-1]?i[i.length-1].charAt(0):i[i.length-2]?i[i.length-2].charAt(0):"")+". "+(s=s.replace(",",""))},clickMore(e){this.$emit("more",{category:e,categoryName:this.categoryName})},morestats(){this.$emit("more",this.category)},viewprofile(e,t){this.$emit("clickprofile",{id:e,teamId:t,isTeam:this.isTeam})},clickexpand(e){this.expand=e.expand,this.playerexpand=e.id},async getCategoryStats(e){var t,a;this.mapPlayers=new Map;try{if(!e)return;let i=[],s={},o={},l=this.season;(null==(a=null==(t=this.seasonSelected)?void 0:t.related_seasons)?void 0:a.some(e=>e.id===this.season))&&(l=this.seasonSelected.id),this.arePlaysEmpty=!1;const n=m.create({headers:{Authorization:`${this.token}`}});this.isloading=!0;let r={};if(r=1==this.typeData?this.isWidget&&0!=this.teamWidget?await n.get(this.url+"/"+this.gameId+"/"+this.category+"?t="+this.teamWidget):await n.get(this.url+"/"+this.gameId+"/"+this.category):1===this.game.game_status?this.isWidget&&0!=this.teamWidget?await n.get(this.url+"/"+this.gameId+"/"+this.category+"?acc=1&t="+this.teamWidget):await n.get(this.url+"/"+this.gameId+"/"+this.category+"?acc=1"):this.isWidget&&0!=this.teamWidget?await n.get(this.urlPrematch+l+"/"+this.category+"?t="+this.teamWidget):await n.get(this.urlPrematch+l+"/"+this.category+"?t="+this.game.homeTeam.team_id+"&t="+this.game.awayTeam.team_id),r&&r.data&&r.data.data&&r.data.data.length>0){i=r.data.data.map(e=>this.formatStatsData(e)),r.data.teams.forEach(e=>{s[e[0]]={},s[e[0]].id=e[0],s[e[0]].name=e[1],s[e[0]].abrv=e[2],s[e[0]].img=e[3],s[e[0]].effectiveness=e[4],s[e[0]].games_played=e[5],s[e[0]].games_played_lastseason=e[6],s[e[0]].positiontable=e[7],s[e[0]].goals=e[8],s[e[0]].goalsrecived=e[9],s[e[0]].xg=e[10],s[e[0]].frecuency=e[11],s[e[0]].game_avg=e[12],s[e[0]].game_avg_last_season=e[13]});const e=new Set;r.data.players.forEach(t=>{const a=this.getObjectPlayer(t);this.mapPlayers.set(a.numberId,a);const i=a.numberAge,l=a.teamName.length>0?a.teamName[0].acronym:"",n=a.teamName.length>0?s[a.teamName[0].team_id].name:"",r=a.teamName.length>0?a.teamName[0].team_id:"",d=this.positions[a.numberPositionId-1].fullname,c=this.positions[a.numberPositionId-1].name,m=a.countryId.length>0?a.countryId[0].nationality_id:"",p=a.effectiveness,y=a.min,g=a.games,u=a.date;a.arrayNationalities.forEach(t=>{e.add(t.numberId)}),o[t[0]]={id:t[0],name:t[1],img:t[2],age:i,team:l,teamname:n,teamid:r,position:d,positionfull:c,effectiveness:p,country:m,games_played:g,minutes_played:y,date:u,nationality:a.stringNationalityName,player_country_flag:a.player_country_flag,positionId:a.numberPositionId}}),this.setNationalityIds=e,this.arrayAgeRange=[r.data.min_age,r.data.max_age]}else this.arePlaysEmpty=!0;this.teamInfo=s,this.playersInfo=o,this.formatStats=i,this.formatFilterStats=this.filterRecords(this.filtersSelect),this.statsData=r}catch(i){return Promise.reject(i)}},filterRecords(e){return this.formatStats.length>0?this.formatStats.filter(t=>{const a=e.playingAs.includes(t.playing_as),i=e.matchResult.includes(t.match_result),s=e.sections.includes(t.section),o=1===e.typeZone&&e.zone.includes(t.origen)||2===e.typeZone&&e.zone.includes(t.destino);if(e.setPositionsIds&&e.setNationalitiesIds&&e.arrayAgeRange&&e.setYear&&!this.isTeam){const a=this.mapPlayers.get(t.player_id);if(!a)return!1;if(e.booleanAreNationalTeamsVisible){if(e.setAvailableNationalTeamsPlayersIds.size>0&&!e.setAvailableNationalTeamsPlayersIds.has(t.player_id))return!1}else{let t=!1;for(const i of a.arrayNationalitiesIds)if(e.setNationalitiesIds.has(i)){t=!0;break}if(!t)return!1}if(a.numberAge<e.arrayAgeRange[0]||a.numberAge>e.arrayAgeRange[1])return!1;if(a.date<e.setYear)return!1;if(!e.setPositionsIds.includes(a.numberPositionId))return!1}return(0===e.playingAs.length||a)&&(0===e.matchResult.length||i)&&(0===e.sections.length||s)&&(0===e.zone.length||o)}):[]},updateSliderF(){this.updateSlider+=1},formatStatsData(e){const t={};return 0!==e[1]||1!==e[2]&&2!==e[2]||(e[2]=3-e[2]),0!==e[1]||1!==e[3]&&2!==e[3]||(e[3]=3-e[3]),this.data_headers.forEach((a,i)=>{t[a]=e[i]}),t},getObjectPlayer(e){const t=[],a=e[7].map(e=>(t.push(e.nationality_id),{stringName:e.nationality,numberId:e.nationality_id})),i=e[9].split("-");return{numberId:void 0!==e[0]?e[0]:"",stringFullName:void 0!==e[1]?e[1]:"",stringImageUrl:void 0!==e[2]?e[2]:"",numberTeamId:void 0!==e[3]?e[3]:"",player_country_flag:"https://golstatsimages.blob.core.windows.net/flags/"+e[3]+".jpg",stringNationalityName:yy[e[3]],numberAge:void 0!==e[5]?e[5]:"",numberPositionId:void 0!==e[6]?e[6]:"",countryId:void 0!==e[7]?e[7]:"",teamName:void 0!==e[10]?e[10]:"",effectiveness:void 0!==e[11]?e[11]:"",min:void 0!==e[13]?e[13]:"",games:void 0!==e[12]?e[12]:"",date:i.length>0?Number(i[0]):0,arrayNationalities:a,category:this.categoryName,arrayNationalitiesIds:t}},formatArrayPaginate(e){const t=Math.ceil(e.length/this.numRows);return Array.from({length:t},(t,a)=>{const i=a*this.numRows,s=i+this.numRows;return e.slice(i,s)})},createIntervalTops(){this.intervalIdtops=setInterval(async()=>{await this.getCategoryStats(this.season)},this.timeLiveComparativeAvanced)},clearTopsInterval(){this.intervalIdtops&&(clearInterval(this.intervalIdtops),this.intervalIdtops=null)}},beforeUnmount(){this.clearTopsInterval()}},uy=()=>{t.useCssVars(e=>({"1e86da4b":e.borderRadius,"3b14a4ed":e.borderWidth,"39fda68a":e.borderColor}))},hy=gy.setup;gy.setup=hy?(e,t)=>(uy(),hy(e,t)):uy;const vy=e=>(t.pushScopeId("data-v-7ae354aa"),e=e(),t.popScopeId(),e),fy={ref:"myDivRef"},_y={class:"btnViewFullList"},by={class:"text"},Sy={class:"groupsLeague"},Ty={class:"row-table-carrousel"},wy={key:1,class:"container-no-search-result"},ky={key:0,class:"overlay-loading-top"},Cy=[vy(()=>t.createElementVNode("div",{class:"overlay-loading-top__spinner"},[t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/balon_liga.png",alt:""})],-1)),vy(()=>t.createElementVNode("div",{class:"overlay-loading-top__text"},"Loading...",-1))],Vy=vy(()=>t.createElementVNode("div",{class:"container-no-search-result-title"},"No existen resultados",-1)),Py=vy(()=>t.createElementVNode("div",{class:"container-no-search-result-subtitle"},[t.createTextVNode(" No existen resultados para este tipo de"),t.createElementVNode("br"),t.createTextVNode(" jugada, considerando el torneo y otros"),t.createElementVNode("br"),t.createTextVNode(" filtros que has seleccionado. ")],-1));const Iy=M(gy,[["render",function(e,a,i,s,o,l){const n=t.resolveComponent("GSCLeaders"),r=t.resolveComponent("GSCRowTable"),d=t.resolveComponent("GSCExpandedInfo"),c=t.resolveComponent("GSCCarousel"),m=t.resolveComponent("GSCTableHeader");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(0==i.type?"gsc-top":"gsc-top-full")},[t.createElementVNode("div",fy,[t.createElementVNode("div",_y,[t.createElementVNode("div",by,[t.createElementVNode("div",Sy,t.toDisplayString(i.categoryName),1)])]),0==i.type?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[l.topData.length>0?(t.openBlock(),t.createBlock(c,{key:0,items:l.topData,"is-pagination-visible":!0,"are-navigation-arrows-visible":!0,onInput:l.changeCarrousel},{default:t.withCtx(({item:o})=>[t.createElementVNode("div",Ty,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(o,(o,c)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:c},[1==o.top?(t.openBlock(),t.createBlock(n,{key:0,onMediadata:a[0]||(a[0]=e=>l.emitEventMedia(e,i.category,i.categoryName)),type:i.typeTable,"type-data":i.typeData,game:i.game,"team-widget":i.teamWidget,"can-play-videos":i.canPlayVideos,"is-expanded":e.playerexpand==o.id&&e.expand,ref_for:!0,ref:"GSCLeaders",data:0==i.typeTable?{top:"01",photo:o.img,logo:"https://golstatsimages.blob.core.windows.net/teams-80/"+o.teamid+".png",name:o.name,player_short:o.name_short,player_id:o.id,categoryId:i.category,total:o.total}:{top:"01",logo:o.img,total:o.total,name_team:o.name,player_id:o.id},"category-name":i.categoryName,buttonMaxWidth:0!=i.typeTable?s.elementSize.width>360?"210px":"130px":s.elementSize.width>360?"180px":"110px",buttonFontSize:"12px",iconSize:"11px",onExpand:l.clickexpand,onMore:l.morestats},null,8,["type","type-data","game","team-widget","can-play-videos","is-expanded","data","category-name","buttonMaxWidth","onExpand","onMore"])):(t.openBlock(),t.createBlock(r,{key:1,"type-data":i.typeData,"team-widget":i.teamWidget,game:i.game,type:i.typeTable,"type-view":i.type,"is-expanded":e.playerexpand==o.id&&e.expand,onMediadata:a[1]||(a[1]=e=>l.emitEventMedia(e,i.category,i.categoryName)),data:0==i.typeTable?{position:o.top,player_name:o.name,player_short:o.name_short,player_photo:o.img,total:o.total,id:o.id,player_age:o.age,team_abrev:o.team,team_logo:"https://golstatsimages.blob.core.windows.net/teams-80/"+o.teamid+".png",player_position:o.position,player_country_flag:"https://golstatsimages.blob.core.windows.net/flags/"+o.country+".jpg",player_games:o.minutes,player_min:o.games,league_name:"          Liga MX          "}:{position:o.top,team_logo:o.img,team_abrev:o.name,frequency:o.frecuency,promthistournament:o.game_avg,promlasttournament:o.game_avg_last_season,teams_games:"-",category:i.category,total:o.total,id:o.id},height:"71px","can-play-videos":i.canPlayVideos,background:c%2==0?i.backgroundEven:i.backgroundOdd,onExpand:l.clickexpand},null,8,["type-data","team-widget","game","type","type-view","is-expanded","data","can-play-videos","background","onExpand"])),e.expand&&e.playerexpand==o.id?(t.openBlock(),t.createBlock(d,{key:2,type:i.typeTable,"is-live":i.game.is_live,"view-effectiveness":1!==o.positionId,data:0==i.typeTable?{teams:o.teamname,age:o.age,dataofbirth:o.date,nationality:o.nationality,countryFlag:o.player_country_flag,position:o.position,games:o.games,min:o.minutes,goals:o.total,effectiveness:o.effectiveness,category:i.categoryName,id:o.id}:{position:o.positiontable,goals:o.goals,goals_received:o.goalsrecived,games_played:o.games_played,category:i.categoryName,effectiveness:o.effectiveness,xg:o.xg,total:o.total,attendance:"-",id:o.id},onViewprofile:e=>l.viewprofile(e,o.teamid),background:c%2==0?i.backgroundEven:i.backgroundOdd},null,8,["type","is-live","view-effectiveness","data","onViewprofile","background"])):t.createCommentVNode("",!0)],64))),128))])]),_:1},8,["items","onInput"])):(t.openBlock(),t.createElementBlock("div",wy,[e.isloading?(t.openBlock(),t.createElementBlock("div",ky,Cy)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[Vy,Py],64))]))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createVNode(m,{background:"#183143",type:i.typeTable},null,8,["type"]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.topData,(s,o)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:o},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s,(s,n)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:n},[t.createVNode(r,{"type-data":i.typeData,"team-widget":i.teamWidget,game:i.game,type:i.typeTable,"type-view":i.type,"can-play-videos":i.canPlayVideos,"is-expanded":e.playerexpand==s.id&&e.expand,onMediadata:a[2]||(a[2]=e=>l.emitEventMediaFullTable(e,i.category,i.categoryName)),data:0==i.typeTable?{position:s.top,player_name:s.name,player_short:s.name_short,player_photo:s.img,total:s.total,id:s.id,player_age:s.age,team_abrev:s.team,team_logo:"https://golstatsimages.blob.core.windows.net/teams-80/"+s.teamid+".png",player_position:s.position,player_country_flag:"https://golstatsimages.blob.core.windows.net/flags/"+s.country+".jpg",player_games:s.games,player_min:s.minutes,league_name:"          Liga MX          "}:{position:s.positiontable,team_logo:s.img,team_abrev:s.name,frequency:s.frecuency,promthistournament:s.game_avg,promlasttournament:s.game_avg_last_season,category:i.category,team_games:s.games_played,total:s.total,id:s.id},height:"71px",background:(5*(o+1)+n)%2==0?i.backgroundOdd:i.backgroundEven,onExpand:l.clickexpand},null,8,["type-data","team-widget","game","type","type-view","can-play-videos","is-expanded","data","background","onExpand"]),e.expand&&e.playerexpand==s.id?(t.openBlock(),t.createBlock(d,{key:0,type:i.typeTable,"is-live":i.game.is_live,additionalClass:"fullTable","view-effectiveness":1!==s.positionId,data:0==i.typeTable?{teams:s.teamname,age:s.age,dataofbirth:s.date,nationality:s.nationality,countryFlag:s.player_country_flag,position:s.positionfull,positionfull:s.positionfull,games:s.games,min:s.minutes,goals:s.total,effectiveness:s.effectiveness,category:l.getCategoryName(i.category),id:s.id}:{position:s.positiontable,goals:s.goals,goals_received:s.goalsrecived,games_played:s.games_played,category:i.categoryName,effectiveness:s.effectiveness,xg:s.xg,total:s.total,category:l.getCategoryName(i.category),attendance:"-",id:s.id},onViewprofile:e=>l.viewprofile(e,s.teamid),background:n%2==0?i.backgroundEven:i.backgroundOdd},null,8,["type","is-live","view-effectiveness","data","onViewprofile","background"])):t.createCommentVNode("",!0)],64))),128))],64))),128))],64))],512)],2)}],["__scopeId","data-v-7ae354aa"]]);const Ny={comfiltersContainer:"_comfiltersContainer_xl2as_1",comfiltersContainer1232:"_comfiltersContainer1232_xl2as_1",closeFiltersPc:"_closeFiltersPc_xl2as_1",comtextleyemdmultipleleagues:"_comtextleyemdmultipleleagues_xl2as_1",comtextleyemdmultipleleagues380:"_comtextleyemdmultipleleagues380_xl2as_1",comfiltersContainer760:"_comfiltersContainer760_xl2as_1",comfiltersContainer460:"_comfiltersContainer460_xl2as_1",comcontainerSection:"_comcontainerSection_xl2as_1",comcontainerSection1232:"_comcontainerSection1232_xl2as_1",comcontainerSection960:"_comcontainerSection960_xl2as_1",comcontainerSection320:"_comcontainerSection320_xl2as_1",comcontainerSection350:"_comcontainerSection350_xl2as_1",comtemplateLosMejores1:"_comtemplateLosMejores1_xl2as_1",comtemplateLosMejores11232:"_comtemplateLosMejores11232_xl2as_1",comtemplateLosMejores1960:"_comtemplateLosMejores1960_xl2as_1",comtemplateLosMejores1420:"_comtemplateLosMejores1420_xl2as_1",comtemplateLosMejores1320:"_comtemplateLosMejores1320_xl2as_1",comtemplateLosMejores1540:"_comtemplateLosMejores1540_xl2as_1",comtemplateLosMejores1350:"_comtemplateLosMejores1350_xl2as_1",comtopFiltersParent:"_comtopFiltersParent_xl2as_1",comtopFiltersParent1232:"_comtopFiltersParent1232_xl2as_1",comtopFiltersParent960:"_comtopFiltersParent960_xl2as_1",comtopFiltersParent460:"_comtopFiltersParent460_xl2as_1",comtopFiltersParent420:"_comtopFiltersParent420_xl2as_1",comcontainerTheBest:"_comcontainerTheBest_xl2as_1",comcontainerTheBest1232:"_comcontainerTheBest1232_xl2as_1",comcontainerTheBest960:"_comcontainerTheBest960_xl2as_1",comcontainerTheBest320:"_comcontainerTheBest320_xl2as_1",comtitleSection:"_comtitleSection_xl2as_1",comtitleSection540:"_comtitleSection540_xl2as_1",comcontainerTables:"_comcontainerTables_xl2as_1",comcontainerTables960:"_comcontainerTables960_xl2as_1",comcontainerTables760:"_comcontainerTables760_xl2as_1",comcontainerTables320:"_comcontainerTables320_xl2as_1",comtoniKroosWrapper:"_comtoniKroosWrapper_xl2as_1",comtoniKroosWrapper1080:"_comtoniKroosWrapper1080_xl2as_1",comtoniKroosWrapper975:"_comtoniKroosWrapper975_xl2as_1",comtoniKroosWrapper760:"_comtoniKroosWrapper760_xl2as_1",comtoniKroosWrapper420:"_comtoniKroosWrapper420_xl2as_1",comtoniKroosWrapper320:"_comtoniKroosWrapper320_xl2as_1",frameChild:"_frameChild_xl2as_1",filtros:"_filtros_xl2as_1",groupParent:"_groupParent_xl2as_1",shapeIcon:"_shapeIcon_xl2as_1",btnFilters:"_btnFilters_xl2as_1",btnFiltersPC:"_btnFiltersPC_xl2as_1",comquitarFiltros:"_comquitarFiltros_xl2as_1",comquitarFiltros730:"_comquitarFiltros730_xl2as_1",comquitarFiltros480:"_comquitarFiltros480_xl2as_1",comquitarFiltros380:"_comquitarFiltros380_xl2as_1",btnCloseFilters:"_btnCloseFilters_xl2as_1",commejoresJugadores:"_commejoresJugadores_xl2as_1",commejoresJugadores730:"_commejoresJugadores730_xl2as_1",commejoresJugadores480:"_commejoresJugadores480_xl2as_1",mejoresJugadoresSM:"_mejoresJugadoresSM_xl2as_1",toniKroos:"_toniKroos_xl2as_1",teamBar:"_teamBar_xl2as_1",commenuSection:"_commenuSection_xl2as_1",commenuSection960:"_commenuSection960_xl2as_1",comcontainerMenu:"_comcontainerMenu_xl2as_1",comcontainerMenu760:"_comcontainerMenu760_xl2as_1",containerFilters:"_containerFilters_xl2as_1",teamBarParent:"_teamBarParent_xl2as_1",comtopFilters:"_comtopFilters_xl2as_1",comtopFilters1232:"_comtopFilters1232_xl2as_1",comtopFilters420:"_comtopFilters420_xl2as_1",comtopFilters460:"_comtopFilters460_xl2as_1",comlosMejores:"_comlosMejores_xl2as_1",comlosMejores380:"_comlosMejores380_xl2as_1",comlosMejores530:"_comlosMejores530_xl2as_1",comlosMejores730:"_comlosMejores730_xl2as_1",commenuSectionHeader:"_commenuSectionHeader_xl2as_1",commenuSectionHeader1232:"_commenuSectionHeader1232_xl2as_1",commenuSectionHeader960:"_commenuSectionHeader960_xl2as_1",commenuSectionHeader730:"_commenuSectionHeader730_xl2as_1",comdropdown:"_comdropdown_xl2as_1",comdropdown730:"_comdropdown730_xl2as_1",comdropdown1:"_comdropdown1_xl2as_1",comdropdown1730:"_comdropdown1730_xl2as_1",comdropdownParent:"_comdropdownParent_xl2as_1",comdropdownParent730:"_comdropdownParent730_xl2as_1",commenuSectionParentHeader:"_commenuSectionParentHeader_xl2as_1",commenuSectionParentHeader1232:"_commenuSectionParentHeader1232_xl2as_1",commenuSectionParentHeader960:"_commenuSectionParentHeader960_xl2as_1",commenuSectionParentHeader730:"_commenuSectionParentHeader730_xl2as_1",commenuSectionParentHeader430:"_commenuSectionParentHeader430_xl2as_1",comdescubreVideos:"_comdescubreVideos_xl2as_1",comdescubreVideos1232:"_comdescubreVideos1232_xl2as_1",comdescubreVideos960:"_comdescubreVideos960_xl2as_1",allCategories:"_allCategories_xl2as_1",containerScountingBtncom:"_containerScountingBtncom_xl2as_3",btnDeleteAplicacom:"_btnDeleteAplicacom_xl2as_13",SearchBtnBarcom:"_SearchBtnBarcom_xl2as_33",btnLeyendTxtcom:"_btnLeyendTxtcom_xl2as_52",BtnSearchScountingcom:"_BtnSearchScountingcom_xl2as_61",containerPredefinedcom:"_containerPredefinedcom_xl2as_85",containerPredefinedScountingcom:"_containerPredefinedScountingcom_xl2as_92",titleContainerPredefinedcom:"_titleContainerPredefinedcom_xl2as_100",subtitleContainerPredefinedcom:"_subtitleContainerPredefinedcom_xl2as_111"},Ey=t.ref({backgroundColor:"#2e3b46",borderColor:"rgba(255, 255, 255, 0.20)",infoBorderColor:"rgba(255, 255, 255, 0.20)",height:"40px",padding:"5px 12px",textFontFamily:"'Poppins-Regular'"}),xy={components:{GSCTableHeader:Ym,GscSwitchComponent:k.GscSwitchComponent,GSCFilterperteam:b.GSCFilterperteam,GSCFilters:f.GSCFilters,GSCExpandedInfo:py,GSCLabel:w.GSCLabel,GSCSeasonSelect:i.GSCSeasonSelect,GSCTopCategory:Iy,GSCTournamentSelect:a.GSCTournamentSelect,GSCRowTable:Ep},computed:{...Rm,filterChangePredefined(){return this.filtersPredefinedF},filterChange(){const e={zone:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],playingAs:[1,2],sections:[1,2,3,4,5,6],matchResult:[1,2,3],arrayAgeRange:[1,60],typeZone:1,setNationalitiesIds:this.fVnationalities,setPositionsIds:[1,2,3,4,5,6,7,8,9],booleanAreNationalTeamsVisible:!1,setAvailableNationalTeamsPlayersIds:new Set},t=JSON.stringify(e);if(JSON.stringify(this.filters)!=t)return t},filterGolstats(){return this.FVfilterGolstats},filterButtonProps:()=>({...Ey.value})},props:{timeLiveComparativeAvanced:{type:Number,default:6e4},currentSeasonId:{type:Number,default:0},typeData:{type:Number,default:1},canPlayVideos:{type:Boolean,default:!1},teamId:{type:Number,default:0},gameId:{type:Number,default:0},isWidget:{type:Boolean,default:!1},seasonSelected:{type:Object,default:()=>({})},teamWidget:{type:Number,default:0},game:{type:Object,default:()=>({})},teamselect:{type:Number,default:0},seasonActive:{type:Number,default:0},defaultSection:{type:String,default:"Jugadores"},backgroundOdd:{type:String,default:"#172531"},backgroundEven:{type:String,default:"#0d1d29"},tournamentsApiUrl:{type:String,default:""}},watch:{async seasonActive(){if(0!=this.seasonActive){this.teams=[];const e=await this.fetchTeams();for(let t=0;t<e.teams.length;t++)this.teams.push({id:e.teams[t].team_id,team:e.teams[t].colloquial_name,logo:e.teams[t].logo})}}},setup(){const e=t.ref("myDivRefTopsFull"),{elementSize:a}=Wm(e);return{myDivRefTopsFull:e,elementSize:a}},data(){return{elegibilidadArray:[],updateFilterTeamsScouting:0,modifidFiltersFlag:!1,showfiltersPc:!1,positions:[{name:"Portero",fullname:"POR"},{name:"Defensa central",fullname:"DFC"},{name:"Lateral por izquierda",fullname:"LI"},{name:"Lateral por derecha",fullname:"LD"},{name:"Volante por izquierda",fullname:"VI"},{name:"Volante por derecha",fullname:"VD"},{name:"Volante defensivo",fullname:"VDF"},{name:"Volante ofensivo",fullname:"VO"},{name:"Delantero",fullname:"DEL"},{name:"Desconocida",fullname:"Desc"}],universeData:{minutesPlayed:0,percentMinutesPlayed:0,lastMonths:Array.from({length:24},(e,t)=>t+1),selectedMonth:12,statistics:{totals:!0,averagePerGame:!1,averagePerMinute:!1}},FVbooleanAreNationalTeamsVisible:!1,teamsscouting:[],filterScounting:{tournaments:[1],seasonId:0,categories:[{name:"Goles",ids:[12]},{name:"Asistencias",ids:[10]},{name:"Participaciones en gol",ids:[27]},{name:"Cabeceos en área rival",ids:[330,333,423,577,578,331,334,424]},{name:"Tiros a gol totales",ids:[91,95,92,93,96,97]}],range_age:[10,40],age_or_year:1,year:1989,nationalities:[3,4,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,221,84,85,86,87,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,222,223,224,225,226,227,228,229,230,231,232,233,234,236,237,239],elegibles:[],minutes_played:211,minutes_played_avg:40,last_months:12,type_stats:1,positions:[1,2,3,4,5,6,7,8,9,10],fouls:!1,yellow_cards:!1,red_cards:!1},expand:!1,playerexpand:0,arrayFiltersPlays:[],filtersPredefinedF:{},categoryPredefinedActive:!1,categoryPredefined:0,typeTable:0,keyUpdateFilter:0,loadingActive:!1,isTeam:!1,arrayPredefinedFilters:[],arrayCategoryFilter:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23],arrayCategoryFilterFull:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23],FVsetAvailableNationalTeamsPlayersIds:new Set,showOnlyCategories:!1,showFullCategory:0,categoryName:"",showFullTable:!1,expansionPanelModePropsTypePlays:{isExpansionPanel:!1,templateProps:{boxShadow:"0px 4px 4px rgba(0, 0, 0, 0)",width:"400px",maxWidth:"400px"},expansionPanelProps:{width:"400px",borderRadius:"8px"},fieldComponentProps:{widthContainer:"400px"}},expansionPanelModeProps:{isExpansionPanel:!1,templateProps:{boxShadow:"0px 4px 4px rgba(0, 0, 0, 0)"},expansionPanelProps:{width:"400px",borderRadius:"8px",fontFamily:"'Poppins-Regular'"},fieldComponentProps:{widthContainer:"100%",title:"Elige el área o zona de cancha",titleFontSize:"13px"}},expansionPanelModePropsMobil:{isExpansionPanel:!0,templateProps:{boxShadow:"0px 4px 4px rgba(0, 0, 0, 0)",padding:"20px 0"},expansionPanelProps:{width:"300px",borderRadius:"8px",height:"45px",fontColor:"rgba(255,255,255, 0.7)",textFontSize:"14px",textFontFamily:"'Poppins-Regular'",padding:"0px 10px"},fieldComponentProps:{widthContainer:"100%",title:"Elige el área o zona de cancha",titleFontSize:"12px",widthField:268,widthFieldGrid:"268px",heightField:180,heightFieldGrid:"180px",heightContainer:"280px"}},expansionPanelModePropsMobil270:{isExpansionPanel:!0,templateProps:{boxShadow:"0px 4px 4px rgba(0, 0, 0, 0)",padding:"20px 0"},expansionPanelProps:{width:"270px",borderRadius:"8px",height:"45px",fontColor:"rgba(255,255,255, 0.7)",textFontSize:"14px",textFontFamily:"'Poppins-Regular'",padding:"0px 10px"},fieldComponentProps:{widthContainer:"100%",title:"Elige el área o zona de cancha",titleFontSize:"12px",widthField:268,widthFieldGrid:"268px",heightField:180,heightFieldGrid:"180px",heightContainer:"280px"}},filters:{zone:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],playingAs:[1,2],sections:[1,2,3,4,5,6],matchResult:[1,2,3],arrayAgeRange:[1,60],typeZone:1,setNationalitiesIds:this.setNationalitiesIds,setPositionsIds:[1,2,3,4,5,6,7,8,9],booleanAreNationalTeamsVisible:!1,setAvailableNationalTeamsPlayersIds:new Set},detaildProductivityCategories:{offensive:{title:"Ofensivo",categories:[{name:"Goles",isSelected:!1,id:[12]},{name:"Asistencias",isSelected:!1,id:[10]},{name:"Participaciones en gol",isSelected:!1,id:[27]},{name:"Cabeceos en área rival",isSelected:!1,id:[330,333,423,577,578,331,334,424]},{name:"Tiros a gol totales",isSelected:!1,id:[91,95,92,93,96,97]},{name:"Tiros a gol con destino a portería",isSelected:!1,id:[91,95]},{name:"Tiros a gol fuera del área",isSelected:!1,id:[94]},{name:"Tiros a gol fuera del área con destino a portería",isSelected:!1,id:[95]},{name:"Tiros a gol dentro del área",isSelected:!1,id:[90]},{name:"Tiros a gol dentro del área con destino a portería",isSelected:!1,id:[91]},{name:"Centros por izquierda",isSelected:!1,id:[13]},{name:"Centros por izquierda acertados",isSelected:!1,id:[98,101,104,105]},{name:"Centros por derecha",isSelected:!1,id:[25]},{name:"Centros por derecha acertados",isSelected:!1,id:[109,112,115,116]},{name:"1vs1 exitosos ofensivos",isSelected:!1,id:[4]},{name:"1vs1 que terminan en gol",isSelected:!1,id:[88]}]},defensive:{title:"Defensivo",categories:[{name:"Bálones ganados en área propia",isSelected:!1,id:[234,241,281,288,399,401,211,231,238,244,280,287,294]},{name:"Cabeceo en área propia",isSelected:!1,id:[211,231,238,244,280,287,294]},{name:"1vs1 defensivos exitosos",isSelected:!1,id:[5]},{name:"Rechaces",isSelected:!1,id:[34]}]},possession:{title:"Posesión",categories:[{name:"Bálones recuperados totales",isSelected:!1,id:[222,223,224,225]},{name:"Bálones recuperados 1/4 de cancha",isSelected:!1,id:[222]},{name:"Bálones recuperados 2/4 de cancha",isSelected:!1,id:[223]},{name:"Bálones recuperados 3/4 de cancha",isSelected:!1,id:[224]},{name:"Bálones recuperados 4/4 de cancha",isSelected:!1,id:[225]},{name:"Pases acertados",isSelected:!1,id:[213,214,215,216]},{name:"Pases acertados en 1/4 de cancha",isSelected:!1,id:[213]},{name:"Pases acertados en 2/4 de cancha",isSelected:!1,id:[214]},{name:"Pases acertados en 3/4 de cancha",isSelected:!1,id:[215]},{name:"Pases acertados en 4/4 de cancha",isSelected:!1,id:[216]}]},offensesConditions:{areYellowCardSelected:!1,areRedCardSelected:!1,areFoulsCommittedSelected:!1}},detailsObject:{playingAs:[{name:"Local",isSelected:!0},{name:"Visitante",isSelected:!0}],gameSections:[{text:"0-15",value:1,isSelected:!0},{text:"16-30",value:2,isSelected:!0},{text:"31-45",value:3,isSelected:!0},{text:"46-60",value:4,isSelected:!0},{text:"61-75",value:5,isSelected:!0},{text:"76-90",value:6,isSelected:!0}]},nameLeagueSelected:"",categoriesPlaysTypes:{offensive:{title:"Ofensivo",categories:[{name:"Goles",isSelected:!0,id:1},{name:"Tiros a gol",isSelected:!0,id:6},{name:"Tiros a gol con destino a portería",isSelected:!0,id:7},{name:"Asistencias",isSelected:!0,id:4},{name:"Centros",isSelected:!0,id:10},{name:"Centros acertados",isSelected:!0,id:11},{name:"Participaciones en gol",isSelected:!0,id:5},{name:"1vs1 exitosos ofensivos",isSelected:!0,id:12},{name:"1vs1 exitosos ofensivos que terminan en gol",isSelected:!0,id:13},{name:"Balones ganados en área rival",isSelected:!0,id:17},{name:"Cabeceos en área rival",isSelected:!0,id:8},{name:"Tiros de esquina",isSelected:!0,id:23}]},defensive:{title:"Defensivo",categories:[{name:"1vs1 defensivos exitosos",isSelected:!0,id:14},{name:"Cabeceo en área propia",isSelected:!0,id:9},{name:"Balones ganados en área propia",isSelected:!0,id:16},{name:"Rechaces",isSelected:!0,id:15},{name:"Atajadas",isSelected:!0,id:22}]},possession:{title:"Posesión",categories:[{name:"Pases acertados",isSelected:!0,id:2},{name:"Balones recuperados en disputa",isSelected:!0,id:3}]},offenses:{title:"Infracciones",categories:[{name:"Faltas cometidas",isSelected:!0,id:18},{name:"Faltas recibidas",isSelected:!0,id:19},{name:"Tarjetas amarillas",isSelected:!0,id:20},{name:"Tarjetas rojas",isSelected:!0,id:21}]},offensesConditions:{areYellowCardSelected:!1,areRedCardSelected:!1,areFoulsCommittedSelected:!1}},categoriesDefault:[{id:1,name:"Goles",isSelected:!1},{id:2,name:"Pases acertados",isSelected:!1},{id:23,name:"Tiros de Esquina",isSelected:!1},{id:3,name:"Balones recuperados en disputa",isSelected:!1},{id:4,name:"Asistencias",isSelected:!1},{id:5,name:"Participaciones en gol",isSelected:!1},{id:6,name:"Tiros a gol",isSelected:!1},{id:7,name:"Tiros a gol que llegaron a la portería",isSelected:!1},{id:8,name:"Cabeceos en área rival",isSelected:!1},{id:9,name:"Cabeceos en área propia",isSelected:!1},{id:10,name:"Centros",isSelected:!1},{id:11,name:"Centros acertados",isSelected:!1},{id:12,name:"1vs1 exitosos ofensivos",isSelected:!1},{id:13,name:"1vs1 exitosos ofensivos que terminaron en gol",isSelected:!1},{id:14,name:"1vs1 defensivos exitoso",isSelected:!1},{id:15,name:"Rechaces",isSelected:!1},{id:16,name:"Balones ganados en área propia",isSelected:!1},{id:17,name:"Balones ganados en área rival",isSelected:!1},{id:18,name:"Faltas cometidas",isSelected:!1},{id:19,name:"Faltas recibidas",isSelected:!1},{id:20,name:"Tarjetas amarillas",isSelected:!1},{id:21,name:"Tarjetas rojas",isSelected:!1},{id:22,name:"Atajadas",isSelected:!1}],seasonsFilterSelected:0,tournamentsToFilter:[{name:"Liga MX",logo:"https://golstatsimages.blob.core.windows.net/tournaments/liga_mx.png",isSelected:!0,id:1,show_logos:1,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1772,type:0},{name:"Clausura 2023",related_seasons:[{type:2,id:1745},{type:1,id:1746}],id:1694,type:0},{name:"Apertura 2022",related_seasons:[{type:2,id:1591},{type:1,id:1594}],id:1535,type:0},{name:"Grita Mexico C22",related_seasons:[{type:2,id:1520},{type:1,id:1525}],id:1476,type:0},{name:"Grita Mexico A21",related_seasons:[{type:2,id:1446},{type:1,id:1456}],id:1401,type:0},{name:"Guard1anes Clausura 2021",related_seasons:[{type:2,id:1382},{type:1,id:1383}],id:1325,type:0},{name:"Guard1anes 2020",related_seasons:[{type:2,id:1311},{type:1,id:1316}],id:1275,type:0},{name:"Clausura 2020",related_seasons:[],id:1239,type:0},{name:"Apertura 2019",related_seasons:[{type:1,id:1231}],id:1155,type:0},{name:"Clausura 2019",related_seasons:[{type:1,id:1135}],id:1093,type:0},{name:"Apertura 2018",related_seasons:[{type:1,id:1075}],id:1002,type:0}]},{name:"Liga MX Femenil",logo:"https://golstatsimages.blob.core.windows.net/tournaments/femenil_mx.png",isSelected:!0,id:1001,show_logos:1,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1777,type:0},{name:"Clausura 2023",related_seasons:[{type:1,id:1747}],id:1696,type:0},{name:"Apertura 2022",related_seasons:[{type:1,id:1655}],id:1539,type:0},{name:"Grita Mexico C22",related_seasons:[{type:1,id:1523}],id:1485,type:0},{name:"Grita Mexico A21",related_seasons:[{type:1,id:1458}],id:1402,type:0},{name:"Guard1anes Clausura 2021",related_seasons:[{type:1,id:1384}],id:1323,type:0},{name:"Guard1anes 2020",related_seasons:[{type:1,id:1318}],id:1283,type:0},{name:"Clausura 2020",related_seasons:[],id:1241,type:0},{name:"Apertura 2019",related_seasons:[{type:1,id:1227}],id:1157,type:0},{name:"Clausura 2019",related_seasons:[{type:1,id:1132}],id:1095,type:0},{name:"Apertura 2018",related_seasons:[{type:1,id:1072}],id:1004,type:0},{name:"Clausura 2018",related_seasons:[{type:1,id:1237}],id:1236,type:0}]},{name:"Liga Expansion MX",logo:"https://golstatsimages.blob.core.windows.net/tournaments/expansion_mx.png",isSelected:!0,id:1071,show_logos:1,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1776,type:0},{name:"Clausura 2023",related_seasons:[{type:2,id:1742},{type:1,id:1748}],id:1695,type:0},{name:"Apertura 2022",related_seasons:[{type:2,id:1598},{type:1,id:1618}],id:1544,type:0},{name:"Grita Mexico C22",related_seasons:[{type:2,id:1515},{type:1,id:1519}],id:1484,type:0},{name:"Grita Mexico A21",related_seasons:[{type:2,id:1454},{type:1,id:1463}],id:1408,type:0},{name:"Guard1anes Clausura 2021",related_seasons:[{type:2,id:1378},{type:1,id:1380}],id:1327,type:0},{name:"Guard1anes 2020",related_seasons:[{type:2,id:1315},{type:1,id:1317}],id:1287,type:0}]},{name:"Sub-23",logo:null,isSelected:!0,id:1143,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1785,type:0}]},{name:"Sub-18",logo:null,isSelected:!0,id:1096,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1782,type:0},{name:"Clausura 2023",related_seasons:[{type:1,id:1751}],id:1714,type:0},{name:"Apertura 2022",related_seasons:[{type:1,id:1593}],id:1543,type:0},{name:"Grita Mexico C22",related_seasons:[{type:1,id:1522}],id:1487,type:0}]},{name:"Sub-16",logo:null,isSelected:!0,id:1095,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1783,type:0},{name:"Clausura 2023",related_seasons:[{type:1,id:1750}],id:1715,type:0},{name:"Apertura 2022",related_seasons:[{type:1,id:1652}],id:1541,type:0},{name:"Grita Mexico C22",related_seasons:[{type:1,id:1527}],id:1488,type:0}]}],isCup:!1,arrayPredefinedOrigin:[],indexPredefinedFiltersSelected:0,predefinedFiltersMatchLapse:[],predefinedFiltersPlayingAs:[],predefinedFiltersSections:[],updateTables:0,updateTablesfull:0,optionSelected:"Jugadores",optionSelectedSubmenu:"Todas las jugadas",tournamentsUrl:"https://17zyhpyc7c.execute-api.us-west-2.amazonaws.com/prod/tournaments",teamsUrl:"https://d2oco6mqmc.execute-api.us-west-2.amazonaws.com/prod/teamsBySeason/",urlFilter:"https://cqqxaonvm6.execute-api.us-east-2.amazonaws.com/prod/gs2/tops/filters?categories=",retries:3,teams:[],updateFilterGolstats:0,updateFilterPlaytypesGolstats:0,arrayTournaments:[],arraySeasons:{},seasonBytournament:[],updateFilterTeamsScouting:0,filtersTypes:f.filtersTypes,token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",fVnationalities:new Set,fVzone:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],fVplayingAs:[1,2],fVsections:[1,2,3,4,5,6],fVmatchResult:[1,2,3],fVarrayAgeRange:[10,40],FVeligible:[],FVYear:1900,keyTournamentValue:0,fVtypeZone:2,fVsetPositionsIds:[1,2,3,4,5,6,7,8,9],currentIndex:-1,delay:800,teamselectrec:0,tournamentSelected:0,tournamentSelectedObj:{},FVfilterGolstats:[],updateFilterField:0,rowScoutingData:[],openMenuMobil:!1,selectedTournament:{seasons:[]},selectedSeasonObj:{}}},methods:{getnameshort(e){var t=e.split(","),a=t[0].split(" "),i=t[1].trim().split(" "),s="";return 2==a.length||1==a.length?s=a[0].length<4?a[0]+" "+a[1]:a[0]:3==a.length?s=a[0]+" "+a[1]:4==a.length&&(s=a[1]+" "+a[2]+" "+a[3]),(""!=i[i.length-1]?i[i.length-1].charAt(0):i[i.length-2]?i[i.length-2].charAt(0):"")+". "+(s=s.replace(",",""))},setUpTournamentsToFilter(){this.tournamentsToFilter.forEach(e=>{const t=e.id===this.selectedTournament.id;e.isSelected=t,e.isDefaultTournament=t})},async onClickDeleteFilter(){if("Predeterminados"==this.optionSelectedSubmenu)this.resetPredefinedTeamAll();else{this.rowScoutingData=[];for(let e=0;e<this.detaildProductivityCategories.offensive.categories.length;e++)this.detaildProductivityCategories.offensive.categories[e].isSelected=!1;for(let e=0;e<this.detaildProductivityCategories.defensive.categories.length;e++)this.detaildProductivityCategories.defensive.categories[e].isSelected=!1;for(let e=0;e<this.detaildProductivityCategories.possession.categories.length;e++)this.detaildProductivityCategories.possession.categories[e].isSelected=!1;for(let e=0;e<this.detaildProductivityCategories.offensesConditions.length;e++)this.detaildProductivityCategories.offensesConditions[e]=!1;this.setUpTournamentsToFilter();const t=this.$refs.personalDataFilter;t.clearFilters(f.personalDataSubFiltersTypes.All),t.clearFilters(f.personalDataSubFiltersTypes.AGE_RANGE),t.clearFilters(f.personalDataSubFiltersTypes.YEAR),t.clearFilters(f.personalDataSubFiltersTypes.NATIONALITY),t.clearFilters(f.personalDataSubFiltersTypes.POSITION),this.universeData.minutesPlayed=0,this.universeData.percentMinutesPlayed=0,this.universeData.lastMonths=Array.from({length:24},(e,t)=>t+1),this.universeData.statistics.totals=!0,this.universeData.statistics.averagePerGame=!1,this.universeData.statistics.percentMinutesPlayed=!1;var e=this.arrayFiltersPlays.findIndex(e=>"onFiltersTournaments"===e.type);this.arrayFiltersPlays.splice(e,1);const a=await this.fetchTeamsScouting(this.currentSeasonId);this.teamselect=0,this.teamsscouting=[];for(let e=0;e<a.teams.length;e++)this.teamsscouting.push({id:a.teams[e].team_id,team:a.teams[e].colloquial_name,logo:a.teams[e].logo});setTimeout(()=>{this.modifidFiltersFlag=!1},200)}},clickOpenFilters(){this.showfiltersPc=!0},clickCloseFilters(){this.showfiltersPc=!1},async selectedSeason(e){this.seasonActive!==e.id&&(this.seasonActive=e.id,this.resetPredefinedTeamAll(),this.$emit("change-season-id",e.id))},changeTournament(e){e.id!==this.selectedTournament.id&&(this.selectedTournament=e,this.tournamentSelectedObj={propName:"id",value:e.id},this.teamselect=0,this.resetPredefinedTeamAll(),this.setUpTournamentsToFilter())},changeTournamentMovil(e){this.tournamentSelectedObj={propName:"id",value:e.id},this.seasonBytournament=e.seasons,this.teamselect=0},selectedSeasonMovil(e){this.seasonActive=e.id},setRelevantCategoriesPlayer:e=>1===e?[39,40,52,53,54,55,323,324,608,774,802]:[10,12,14,15,27,35,61,217,257,466,519,607,702,730,98,101,109,112,121,122,127,128,135,136,141,142,161,170,179,211,232,235,239,242,282,284,289,291,296,485,486,487,488],setOpenMedia(e){this.$emit("openmedia",e)},setMediaData(e){let t=[e.id],a=e.team_id;const i={seasonId:e.season_id,isFeaturedPlayers:!1,mainSectionType:1,playListType:2,gameIds:null,playerIds:t,goalkeeperIds:[],categoryIds:this.setRelevantCategoriesPlayer(e.position),teamId:a||0,matchResult:[1,2,3],categorySingleName:"",isRivalSubject:!1,avoidCategorySingleName:!1,currentPlayIndex:0,playData:null,lastClashedGameId:null,tournamentsLastClashes:null,advancedFilter:{playListTitle:"Jugadas Relevantes"}};this.$emit("openmedia",i)},clickprofile(e){e.isTeam?this.$emit("openProfileTeam",{teamId:e.id,seasonId:this.seasonActive}):this.$emit("openProfilePlayer",{playerId:e.id,teamId:e.teamId,seasonId:this.seasonActive})},viewprofile(e,t,a){this.$emit("openProfilePlayer",{playerId:e,teamId:a,seasonId:t||this.seasonActive})},openMenuFilters(){this.openMenuMobil=!this.openMenuMobil,this.showfiltersPc=!0},clickexpand(e){this.expand=e.expand,this.playerexpand=e.id},async getScoutingData(){this.arrayFiltersPlays=[],this.loadingActive=!0;const e=m.create({headers:{Authorization:`${this.token}`}}),{data:t}=await e.post("https://eh9nhj69z7.execute-api.us-west-2.amazonaws.com/prod/players/productivity",this.filterScounting,{headers:{"Content-Type":"application/json"}});if(this.filterScounting.tournaments.length>0){var a=this.arrayFiltersPlays.findIndex(e=>"onFiltersTournaments"===e.type);-1!==a?this.arrayFiltersPlays[a].name=this.filterScounting.tournaments.length>1?"Ligas "+this.filterScounting.tournaments.length:""!=this.nameLeagueSelected?this.nameLeagueSelected:"Liga MX":this.arrayFiltersPlays.push({name:this.filterScounting.tournaments.length>1?"Ligas "+this.filterScounting.tournaments.length:""!=this.nameLeagueSelected?this.nameLeagueSelected:"Liga MX",type:"onFiltersTournaments"})}this.rowScoutingData=[];for(let s=0;s<t.length;s++){t[s];let e=t[s].dob.split("T")[0].split("-");var i={position:s+1,player_name:this.abrevName(t[s].name),player_photo:"https://golstatsimages.blob.core.windows.net/players-profile/"+t[s].player_id+".png",total:t[s].total.toFixed(0),id:t[s].player_id,player_age:this.calcularEdad(t[s].dob),team_abrev:t[s].teams[0].acronym,team_name:t[s].teams[0].team_name,team_logo:"https://golstatsimages.blob.core.windows.net/teams-80/"+t[s].teams[0].team_id+".png",player_position:t[s].position_id,player_country_flag:"https://golstatsimages.blob.core.windows.net/flags/"+t[s].nationality_id+".jpg",date:e[2]+"."+e[1]+"."+e[0].substring(2,4),team_id:t[s].team_id,nationality_name:yy[t[s].nationality_id],player_games:t[s].games_played,player_min:t[s].minutes_played,league_name:t[s].tournament_name,seasons:t[s].seasons,season_id:t[s].seasons[0]};this.rowScoutingData.push(i)}if(0!=this.seasonsFilterSelected){const e=await this.fetchTeamsScouting(this.seasonsFilterSelected);this.teamselect=0,this.teamselectrec=0,this.teamsscouting=[];for(let t=0;t<e.teams.length;t++)this.teamsscouting.push({id:e.teams[t].team_id,team:e.teams[t].colloquial_name,logo:e.teams[t].logo})}this.loadingActive=!1},abrevName(e){var t=e.split(","),a=t[0].split(" "),i=t[1].trim().split(" "),s="";return 2==a.length||1==a.length?s=a[0].length<4?a[0]+" "+a[1]:a[0]:3==a.length?s=a[0]+" "+a[1]:4==a.length&&(s=a[1]+" "+a[2]+" "+a[3]),(""!=i[i.length-1]?i[i.length-1].charAt(0):i[i.length-2]?i[i.length-2].charAt(0):"")+". "+(s=s.replace(",",""))},calcularEdad(e){var t=new Date(e),a=new Date-t;return Math.floor(a/315576e5)},async onFiltersTournaments(e){this.modifidFiltersFlag=!0;var t=[];for(let a=0;a<e.length;a++)e[a].isSelected&&t.push(e[a].id);if(0==t.length&&(t=[1]),1==t.length)for(let a=0;a<e.length;a++)e[a].isSelected&&(this.nameLeagueSelected=e[a].name,this.seasonsFilterSelected=e[a].seasons[0].id);else this.seasonsFilterSelected=0,t.length>0&&(this.nameLeagueSelected=t.length+" Ligas");this.filterScounting.tournaments=t,this.filterScounting.seasonId=e[0].seasons[0].id},onFiltersPersonalData(e){if(this.modifidFiltersFlag=!0,e.hasOwnProperty("ageByRange")){const t=0==e.ageByRange.min?10:e.ageByRange.min,a=0==e.ageByRange.max?40:e.ageByRange.max;this.filterScounting.range_age=[t,a],this.filterScounting.age_or_year=1}else this.filterScounting.range_age=[];e.hasOwnProperty("year")?(this.filterScounting.year=e.year,this.filterScounting.age_or_year=0):this.filterScounting.year=0;var t=[];if(e.hasOwnProperty("nationalities")){for(let a=0;a<e.nationalities.length;a++)e.nationalities[a].isSelected&&t.push(e.nationalities[a].id);0==t.length&&(t=[3,4,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,221,84,85,86,87,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,222,223,224,225,226,227,228,229,230,231,232,233,234,236,237,239])}this.filterScounting.elegibles=[],e.hasOwnProperty("eligibility")&&(this.filterScounting.elegibles=[e.eligibility[0].id]);var a=[];for(let i=0;i<e.positions.length;i++)e.positions[i].isSelected&&a.push(e.positions[i].id);0==a.length&&(a=[1,2,3,4,5,6,7,8,9,10]),this.filterScounting.positions=a,this.filterScounting.nationalities=t},onFiltersUniverse(e){this.modifidFiltersFlag=!0,this.filterScounting.minutes_played=Number(e.minutesPlayed),this.filterScounting.last_months=Number(e.lastMonths),this.filterScounting.minutes_played_avg=Number(e.percentMinutesPlayed),this.filterScounting.type_stats=e.statistics.averagePerGame?3:e.statistics.averagePerMinute?2:1},onFiltersProductivity(e){this.modifidFiltersFlag=!0;var t=[];for(let a=0;a<e.productivityFilters.length;a++)t[e.productivityFilters[a].priority-1]={name:e.productivityFilters[a].name,ids:e.productivityFilters[a].id};0==t.length&&(t=[]),this.filterScounting.categories=t,this.filterScounting.fouls=e.offensesConditions.areFoulsCommittedSelected,this.filterScounting.yellow_cards=e.offensesConditions.areYellowCardsSelected,this.filterScounting.red_cards=e.offensesConditions.areRedCardsSelected},onFiltersGolStats(e){if(e.length>0){var t=this.arrayFiltersPlays.findIndex(e=>"onFiltersPredefined"===e.type);-1!==t?this.arrayFiltersPlays[t].name=e[0].name:this.arrayFiltersPlays.push({name:e[0].name,type:"onFiltersPredefined"}),this.filtersPredefinedF=e[0].filters}else{var a=this.arrayFiltersPlays.findIndex(e=>"onFiltersPredefined"===e.type);if(this.FVfilterGolstats.length>0&&-1!==a){this.filtersPredefinedF=this.filters;for(let e=0;e<this.FVfilterGolstats.length;e++)this.FVfilterGolstats[e].isSelected=!1;-1!==(a=this.arrayFiltersPlays.findIndex(e=>"onFiltersPredefined"===e.type))&&this.arrayFiltersPlays.splice(a,1),this.updateFilterGolstats+=1}}},shouldRender(e){return e<=this.currentIndex},renderNext(){this.currentIndex++,this.currentIndex<this.categoriesDefault.length&&setTimeout(()=>{this.$nextTick(()=>{this.renderNext()})},this.delay)},async onFiltersPlaysTypes(e){if(e.length>0){this.categoryPredefinedActive=!0,this.loadingActive=!0,this.categoryPredefined=e[0].id;var t=this.arrayFiltersPlays.findIndex(e=>"onFiltersPredefined"===e.type);if(this.categoriesDefault.length>0&&-1!==t)if(this.FVfilterGolstats=[],this.filtersPredefinedF={},this.arrayFiltersPlays.splice(t,1),-1!==(a=this.arrayFiltersPlays.findIndex(e=>"onFiltersPredefined"===e.type))){for(let e=0;e<this.FVfilterGolstats.length;e++)this.FVfilterGolstats[e].isSelected=!1;-1!==a&&this.arrayFiltersPlays.splice(a,1),this.updateFilterGolstats+=1}this.updateTables+=1,setTimeout(()=>{this.loadingActive=!1},1e3),await this.getPredefinedfilters(e[0]),this.FVfilterGolstats.length>0&&(this.onFiltersGolStats([this.FVfilterGolstats[0]]),this.FVfilterGolstats[0].isSelected=!0)}else{t=this.arrayFiltersPlays.findIndex(e=>"onFiltersPredefinedCategory"===e.type);if(this.categoriesDefault.length>0&&-1!==t){this.categoryPredefinedActive=!1,this.categoryPredefined=0,this.FVfilterGolstats=[],this.filtersPredefinedF=this.filters,this.arrayFiltersPlays.splice(t,1);for(let e=0;e<this.categoriesDefault.length;e++)this.categoriesDefault[e].isSelected=!1;this.updateFilterPlaytypesGolstats+=1;var a=this.arrayFiltersPlays.findIndex(e=>"onFiltersPredefined"===e.type);if(this.FVfilterGolstats.length>0&&-1!==a){for(let e=0;e<this.FVfilterGolstats.length;e++)this.FVfilterGolstats[e].isSelected=!1;-1!==a&&this.arrayFiltersPlays.splice(a,1),this.updateFilterGolstats+=1}}}},deleteCategoryFilter(){this.categoryName="",this.showFullCategory=0,this.showFullTable=!1,delete this.filters.aux},onShowFullTable(e){this.categoryName=e.categoryName,this.showFullCategory=e.category,this.showFullTable=!0,this.loadingActive=!0,setTimeout(()=>{this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,aux:this.getRandomNumber(1,1e4),booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds},this.loadingActive=!1},1e3)},getRandomNumber:(e,t)=>Math.floor(Math.random()*(t-e+1))+e,applyFiltersBtn(e){},onFiltersPlays(e){if(this.arrayCategoryFilter=[],this.arrayCategoryFilterFull=[],0==e.playsCategories.length){for(let e=0;e<this.categoriesPlaysTypes.offensive.categories.length;e++)this.arrayCategoryFilter.push(this.categoriesPlaysTypes.offensive.categories[e].id),this.arrayCategoryFilterFull.push(this.categoriesPlaysTypes.offensive.categories[e]);for(let e=0;e<this.categoriesPlaysTypes.defensive.categories.length;e++)this.arrayCategoryFilter.push(this.categoriesPlaysTypes.defensive.categories[e].id),this.arrayCategoryFilterFull.push(this.categoriesPlaysTypes.offensive.categories[e]);for(let e=0;e<this.categoriesPlaysTypes.possession.categories.length;e++)this.arrayCategoryFilter.push(this.categoriesPlaysTypes.possession.categories[e].id),this.arrayCategoryFilterFull.push(this.categoriesPlaysTypes.offensive.categories[e]);for(let e=0;e<this.categoriesPlaysTypes.offenses.categories.length;e++)this.arrayCategoryFilter.push(this.categoriesPlaysTypes.offenses.categories[e].id),this.arrayCategoryFilterFull.push(this.categoriesPlaysTypes.offensive.categories[e])}else for(let a=0;a<e.playsCategories.length;a++)e.playsCategories[a].isSelected&&(this.arrayCategoryFilter.push(e.playsCategories[a].id),this.arrayCategoryFilterFull.push(e.playsCategories[a]));var t=this.arrayFiltersPlays.findIndex(e=>"onFiltersPlays"===e.type);this.arrayCategoryFilter.length>0&&23!=this.arrayCategoryFilter.length?1==this.arrayCategoryFilter.length?-1!=t?this.arrayFiltersPlays[t].name=this.arrayCategoryFilterFull[0].name:this.arrayFiltersPlays.push({name:this.arrayCategoryFilterFull[0].name,type:"onFiltersPlays"}):-1!=t?this.arrayFiltersPlays[t].name=this.arrayCategoryFilterFull.length+" Tipos de jugadas":this.arrayFiltersPlays.push({name:this.arrayCategoryFilterFull.length+" Tipos de jugadas",type:"onFiltersPlays"}):-1!==t&&this.arrayFiltersPlays.splice(t,1)},async deleteLabelFilter(e){var t=this.arrayFiltersPlays.findIndex(t=>t.type===e);if(-1!==t){if("onFiltersTournaments"==e){this.rowScoutingData=[];for(let t=0;t<this.detaildProductivityCategories.offensive.categories.length;t++)this.detaildProductivityCategories.offensive.categories[t].isSelected=!1;for(let t=0;t<this.detaildProductivityCategories.defensive.categories.length;t++)this.detaildProductivityCategories.defensive.categories[t].isSelected=!1;for(let t=0;t<this.detaildProductivityCategories.possession.categories.length;t++)this.detaildProductivityCategories.possession.categories[t].isSelected=!1;for(let t=0;t<this.detaildProductivityCategories.offensesConditions.length;t++)this.detaildProductivityCategories.offensesConditions[t]=!1;this.setUpTournamentsToFilter(),this.universeData.minutesPlayed=10,this.universeData.percentMinutesPlayed=0,this.universeData.lastMonths=Array.from({length:24},(e,t)=>t+1),this.universeData.statistics.totals=!0,this.universeData.statistics.averagePerGame=!1,this.universeData.statistics.percentMinutesPlayed=!0;const e=await this.fetchTeamsScouting(this.currentSeasonId);this.teamsscouting=[];for(let t=0;t<e.teams.length;t++)this.teamsscouting.push({id:e.teams[t].team_id,team:e.teams[t].colloquial_name,logo:e.teams[t].logo});this.keyTournamentValue+=1,setTimeout(()=>{this.modifidFiltersFlag=!1},200)}if("onFiltersPlays"==e){for(let e=0;e<this.categoriesPlaysTypes.offensive.categories.length;e++)this.categoriesPlaysTypes.offensive.categories[e].isSelected=!0;for(let e=0;e<this.categoriesPlaysTypes.defensive.categories.length;e++)this.categoriesPlaysTypes.defensive.categories[e].isSelected=!0,this.arrayCategoryFilter.push(),this.arrayCategoryFilterFull.push(this.categoriesPlaysTypes.offensive.categories[e]);for(let e=0;e<this.categoriesPlaysTypes.possession.categories.length;e++)this.categoriesPlaysTypes.possession.categories[e].isSelected=!0;for(let e=0;e<this.categoriesPlaysTypes.offenses.categories.length;e++)this.categoriesPlaysTypes.offenses.categories[e].isSelected=!0}if("onFiltersField"==e&&(this.fVzone=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds}),"onFiltersPredefined"==e){this.filtersPredefinedF=this.filters;for(let e=0;e<this.FVfilterGolstats.length;e++)this.FVfilterGolstats[e].isSelected=!1;this.updateFilterGolstats+=1,this.resetPredefinedTeamAll()}if("onFiltersPredefinedCategory"==e){this.categoryPredefinedActive=!1,this.categoryPredefined=0,this.FVfilterGolstats=[],this.filtersPredefinedF=this.filters;var a=this.arrayFiltersPlays.findIndex(e=>"onFiltersPredefined"===e.type);-1!==a&&this.arrayFiltersPlays.splice(a,1);for(let e=0;e<this.categoriesDefault.length;e++)this.categoriesDefault[e].isSelected=!1;this.updateFilterPlaytypesGolstats+=1}if("onFiltersDetailsTime"==e&&(this.detailsObject.gameSections[0].isSelected=!0,this.detailsObject.gameSections[1].isSelected=!0,this.detailsObject.gameSections[2].isSelected=!0,this.detailsObject.gameSections[3].isSelected=!0,this.detailsObject.gameSections[4].isSelected=!0,this.detailsObject.gameSections[5].isSelected=!0,this.fVsections=[1,2,3,4,5,6],this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds}),"onFiltersDetailsPlayingAs"==e&&(this.detailsObject.playingAs[0].isSelected=!0,this.detailsObject.playingAs[1].isSelected=!0,this.fVplayingAs=[1,2],this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds}),"onFiltersNationality"==e){this.fVnationalities.add(138),this.fVnationalities.add(222),this.fVnationalities.add(163),this.fVnationalities.add(51),this.fVnationalities.add(226),this.fVnationalities.add(10),this.fVnationalities.add(223),this.fVnationalities.add(96),this.fVnationalities.add(171),this.fVnationalities.add(198),this.fVnationalities.add(105),this.fVnationalities.add(80),this.fVnationalities.add(29),this.fVnationalities.add(74),this.fVnationalities.add(216),this.fVnationalities.add(196),this.fVnationalities.add(64),this.fVnationalities.add(155),this.fVnationalities.add(156),this.fVnationalities.add(89),this.fVnationalities.add(106),this.fVnationalities.add(81),this.fVnationalities.add(233),this.fVnationalities.add(204),this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds};this.$refs.personalDataFilterPlayers.clearFilters(f.personalDataSubFiltersTypes.NATIONALITY)}if("onFiltersPosition"==e){this.fVsetPositionsIds=[1,2,3,4,5,6,7,8,9],this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds};this.$refs.personalDataFilterPlayers.clearFilters(f.personalDataSubFiltersTypes.POSITION)}if("onFiltersAge"==e){this.fVarrayAgeRange=[10,40],this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds};this.$refs.personalDataFilterPlayers.clearFilters(f.personalDataSubFiltersTypes.AGE_RANGE)}if("onFiltersElegibility"==e){this.$refs.personalDataFilterPlayers.clearFilters(f.personalDataSubFiltersTypes.ELIGIBILITY)}if("onFiltersYear"==e){this.$refs.personalDataFilterPlayers.clearFilters(f.personalDataSubFiltersTypes.YEAR),this.FVYear=1900,this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds}}}this.arrayFiltersPlays.splice(t,1)},onFiltersField(e){0==e.length?this.fVzone=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16]:this.fVzone=e;var t=this.arrayFiltersPlays.findIndex(e=>"onFiltersField"===e.type);-1!=t?this.arrayFiltersPlays[t].name=this.fVzone.length+" zonas del campo":this.arrayFiltersPlays.push({name:this.fVzone.length+" zonas del campo",type:"onFiltersField"});[1,23,3,4,5,7,6,9,8,11,10,12,13,15,14,17,16,22].includes(this.category)?this.fVtypeZone=1:this.fVtypeZone=2,this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds},16!=e.length?(4==this.fVzone.length&&this.fVzone.includes(1)&&this.fVzone.includes(2)&&this.fVzone.includes(3)&&this.fVzone.includes(4)&&(-1!=t?this.arrayFiltersPlays[t].name="1/4 de cancha":this.arrayFiltersPlays.push({name:"1/4 de cancha",type:"onFiltersField"})),4==this.fVzone.length&&this.fVzone.includes(5)&&this.fVzone.includes(6)&&this.fVzone.includes(7)&&this.fVzone.includes(8)&&(-1!=t?this.arrayFiltersPlays[t].name="2/4 de cancha":this.arrayFiltersPlays.push({name:"2/4 de cancha",type:"onFiltersField"})),4==this.fVzone.length&&this.fVzone.includes(9)&&this.fVzone.includes(10)&&this.fVzone.includes(11)&&this.fVzone.includes(12)&&(-1!=t?this.arrayFiltersPlays[t].name="3/4 de cancha":this.arrayFiltersPlays.push({name:"3/4 de cancha",type:"onFiltersField"})),4==this.fVzone.length&&this.fVzone.includes(13)&&this.fVzone.includes(14)&&this.fVzone.includes(15)&&this.fVzone.includes(16)&&(-1!=t?this.arrayFiltersPlays[t].name="4/4 de cancha":this.arrayFiltersPlays.push({name:"4/4 de cancha",type:"onFiltersField"})),8==this.fVzone.length&&this.fVzone.includes(1)&&this.fVzone.includes(2)&&this.fVzone.includes(3)&&this.fVzone.includes(4)&&this.fVzone.includes(5)&&this.fVzone.includes(6)&&this.fVzone.includes(7)&&this.fVzone.includes(8)&&(-1!=t?this.arrayFiltersPlays[t].name="cancha propia":this.arrayFiltersPlays.push({name:"cancha propia",type:"onFiltersField"})),8==this.fVzone.length&&this.fVzone.includes(9)&&this.fVzone.includes(10)&&this.fVzone.includes(11)&&this.fVzone.includes(12)&&this.fVzone.includes(13)&&this.fVzone.includes(14)&&this.fVzone.includes(15)&&this.fVzone.includes(16)&&(-1!=t?this.arrayFiltersPlays[t].name="cancha rival":this.arrayFiltersPlays.push({name:"cancha rival",type:"onFiltersField"}))):this.arrayFiltersPlays.splice(t,1)},addFilterPlayingAS(){var e=this.arrayFiltersPlays.findIndex(e=>"onFiltersDetailsPlayingAs"===e.type);-1!=e?1==this.fVplayingAs.length?this.arrayFiltersPlays[e].name=this.fVplayingAs.includes(1)?"Local":"Visitante":this.arrayFiltersPlays.splice(e,1):1==this.fVplayingAs.length&&this.arrayFiltersPlays.push({name:this.fVplayingAs.includes(1)?"Local":"Visitante",type:"onFiltersDetailsPlayingAs"})},onFiltersDetails(e){var t=[];this.filters.setNationalitiesIds=this.setNationalitiesIds;var a=[];for(let o=0;o<e.playingAs.length;o++)if(e.playingAs[o].isSelected){const a="Local"==e.playingAs[o].name?1:2;t.push(a)}for(let o=0;o<e.gameSections.length;o++)e.gameSections[o].isSelected&&a.push(e.gameSections[o].value);this.fVsections=a,this.fVplayingAs=t;var i=this.arrayFiltersPlays.findIndex(e=>"onFiltersDetailsTime"===e.type),s="los minutos del ";6!=this.fVsections.length&&this.fVsections.length>0?(this.fVsections.includes(1)&&(s+=", 0-15"),this.fVsections.includes(2)&&(s+=", 15-30"),this.fVsections.includes(3)&&(s+=", 30-45"),this.fVsections.includes(4)&&(s+=", 45-60"),this.fVsections.includes(5)&&(s+=", 60-75"),this.fVsections.includes(6)&&(s+=", 75-90"),-1!=i?this.arrayFiltersPlays[i].name=s:this.arrayFiltersPlays.push({name:s,type:"onFiltersDetailsTime"}),3==this.fVsections.length&&this.fVsections.includes(1)&&this.fVsections.includes(2)&&this.fVsections.includes(3)&&(-1!=i?this.arrayFiltersPlays[i].name="Primer tiempo":this.arrayFiltersPlays.push({name:"Primer tiempo",type:"onFiltersDetailsTime"})),3==this.fVsections.length&&this.fVsections.includes(4)&&this.fVsections.includes(5)&&this.fVsections.includes(6)&&(-1!=i?this.arrayFiltersPlays[i].name="Segundo tiempo":this.arrayFiltersPlays.push({name:"Segundo tiempo",type:"onFiltersDetailsTime"})),1==this.fVsections.length&&this.fVsections.includes(1)&&(-1!=i?this.arrayFiltersPlays[i].name="los primeros 15 minutos del partido":this.arrayFiltersPlays.push({name:"los primeros 15 minutos del partido",type:"onFiltersDetailsTime"})),1==this.fVsections.length&&this.fVsections.includes(3)&&(-1!=i?this.arrayFiltersPlays[i].name="los últimos 15 minutos del primer tiempo":this.arrayFiltersPlays.push({name:"los últimos 15 minutos del primer tiempo",type:"onFiltersDetailsTime"})),1==this.fVsections.length&&this.fVsections.includes(4)&&(-1!=i?this.arrayFiltersPlays[i].name="los primeros 15 minutos del segundo tiempo":this.arrayFiltersPlays.push({name:"los primeros 15 minutos del segundo tiempo",type:"onFiltersDetailsTime"})),1==this.fVsections.length&&this.fVsections.includes(6)&&(-1!=i?this.arrayFiltersPlays[i].name="los últimos 15 minutos del segundo tiempo":this.arrayFiltersPlays.push({name:"los últimos 15 minutos del segundo tiempo",type:"onFiltersDetailsTime"})),2==this.fVsections.length&&this.fVsections.includes(1)&&this.fVsections.includes(2)&&(-1!=i?this.arrayFiltersPlays[i].name="los primeros 30 minutos del partido":this.arrayFiltersPlays.push({name:"los primeros 30 minutos del partido",type:"onFiltersDetailsTime"})),2==this.fVsections.length&&this.fVsections.includes(5)&&this.fVsections.includes(6)&&(-1!=i?this.arrayFiltersPlays[i].name="los últimos 30 minutos del segundo tiempo":this.arrayFiltersPlays.push({name:"los últimos 30 minutos del segundo tiempo",type:"onFiltersDetailsTime"}))):-1!=i&&this.arrayFiltersPlays.splice(i,1),this.addFilterPlayingAS(),this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds}},async resetScouting(){this.universeData.minutesPlayed=0,this.universeData.percentMinutesPlayed=0,this.universeData.lastMonths=Array.from({length:24},(e,t)=>t+1),this.universeData.statistics.totals=!0,this.universeData.statistics.averagePerGame=!1,this.universeData.statistics.percentMinutesPlayed=!1;const e=this.$refs.personalDataFilter;e.clearFilters(f.personalDataSubFiltersTypes.All),e.clearFilters(f.personalDataSubFiltersTypes.AGE_RANGE),e.clearFilters(f.personalDataSubFiltersTypes.YEAR),e.clearFilters(f.personalDataSubFiltersTypes.NATIONALITY),e.clearFilters(f.personalDataSubFiltersTypes.POSITION),this.rowScoutingData=[];for(let i=0;i<this.detaildProductivityCategories.offensive.categories.length;i++)this.detaildProductivityCategories.offensive.categories[i].isSelected=!1;for(let i=0;i<this.detaildProductivityCategories.defensive.categories.length;i++)this.detaildProductivityCategories.defensive.categories[i].isSelected=!1;for(let i=0;i<this.detaildProductivityCategories.possession.categories.length;i++)this.detaildProductivityCategories.possession.categories[i].isSelected=!1;for(let i=0;i<this.detaildProductivityCategories.offensesConditions.length;i++)this.detaildProductivityCategories.offensesConditions[i]=!1;var t=this.arrayFiltersPlays.findIndex(e=>"onFiltersTournaments"===e.type);this.arrayFiltersPlays.splice(t,1),this.setUpTournamentsToFilter();const a=await this.fetchTeamsScouting(this.currentSeasonId);this.teamselect=0,this.teamsscouting=[];for(let i=0;i<a.teams.length;i++)this.teamsscouting.push({id:a.teams[i].team_id,team:a.teams[i].colloquial_name,logo:a.teams[i].logo})},onFiltersData(e){var t=0,a=0;e.ageByRange&&(t=0==e.ageByRange.min?1:e.ageByRange.min,a=0==e.ageByRange.max?40:e.ageByRange.max,this.fVarrayAgeRange=[t,a]),e.year&&(this.FVYear=e.year),this.fVnationalities=new Set;let i="",s="";if(this.fVsetPositionsIds=[],e.hasOwnProperty("nationalities")){this.FVbooleanAreNationalTeamsVisible=!1,this.FVsetAvailableNationalTeamsPlayersIds=new Set;for(let t=0;t<e.nationalities.length;t++)e.nationalities[t].isSelected&&this.fVnationalities.add(e.nationalities[t].id)}if(this.FVeligible=[],e.hasOwnProperty("eligibility")){this.FVbooleanAreNationalTeamsVisible=!0;for(let e=0;e<this.elegibilidadArray.length;e++)this.FVsetAvailableNationalTeamsPlayersIds.add(this.elegibilidadArray[e])}for(let p=0;p<e.positions.length;p++)e.positions[p].isSelected&&this.fVsetPositionsIds.push(e.positions[p].id);if(e.hasOwnProperty("nationalities"))var o=e.nationalities.filter(e=>!0===e.isSelected);var l,n=e.positions.filter(e=>!0===e.isSelected);if(1==n.length&&(i=n[0].name),e.hasOwnProperty("nationalities")&&1==o.length&&(s=o[0].name),setTimeout(()=>{this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,elegible:this.FVeligible,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds}},1e3),this.FVbooleanAreNationalTeamsVisible){-1!=(r=this.arrayFiltersPlays.findIndex(e=>"onFiltersElegibility"===e.type))?this.arrayFiltersPlays[r].name="Elegibles":this.arrayFiltersPlays.push({name:"Elegibles",type:"onFiltersElegibility"})}else{var r=this.arrayFiltersPlays.findIndex(e=>"onFiltersElegibility"===e.type);this.arrayFiltersPlays.splice(r,1)}if(9!=this.fVsetPositionsIds.length&&this.fVsetPositionsIds.length>0){var d=this.arrayFiltersPlays.findIndex(e=>"onFiltersPosition"===e.type);-1!=d?this.fVsetPositionsIds.length>0?this.arrayFiltersPlays[d].name=this.fVsetPositionsIds.length>1?this.fVsetPositionsIds.length+" Posiciones de juego":"Posicion de juego "+i:this.arrayFiltersPlays.splice(d,1):this.arrayFiltersPlays.push({name:this.fVsetPositionsIds.length>1?this.fVsetPositionsIds.length+" Posiciones de juego":"Posicion de juego "+i,type:"onFiltersPosition"})}if(0!=this.FVYear&&1900!=this.FVYear&&this.FVYear){var c=this.arrayFiltersPlays.findIndex(e=>"onFiltersYear"===e.type);-1!=c?this.arrayFiltersPlays[c].name=this.FVYear:this.arrayFiltersPlays.push({name:this.FVYear,type:"onFiltersYear"})}this.fVarrayAgeRange[0]>=e.ageLimits.min&&this.fVarrayAgeRange[1]<=e.ageLimits.max&&(this.fVarrayAgeRange[0]>e.ageLimits.min||this.fVarrayAgeRange[1]<e.ageLimits.max?-1!=(l=this.arrayFiltersPlays.findIndex(e=>"onFiltersAge"===e.type))?this.fVarrayAgeRange.length>0?this.arrayFiltersPlays[l].name=this.fVarrayAgeRange[0]!=this.fVarrayAgeRange[1]?this.fVarrayAgeRange[0]+" - "+this.fVarrayAgeRange[1]+" años":this.fVarrayAgeRange[1]+" años":this.arrayFiltersPlays.splice(l,1):this.arrayFiltersPlays.push({name:this.fVarrayAgeRange[0]!=this.fVarrayAgeRange[1]?this.fVarrayAgeRange[0]+" - "+this.fVarrayAgeRange[1]+" años":this.fVarrayAgeRange[1]+" años",type:"onFiltersAge"}):-1!=(l=this.arrayFiltersPlays.findIndex(e=>"onFiltersAge"===e.type))&&this.arrayFiltersPlays.splice(l,1));if(e.hasOwnProperty("nationalities")&&this.fVnationalities.size!=e.nationalities.length&&this.fVnationalities.size>0){var m=this.arrayFiltersPlays.findIndex(e=>"onFiltersNationality"===e.type);-1!=m?this.fVnationalities.size>0?this.arrayFiltersPlays[m].name=this.fVnationalities.size>1?this.fVnationalities.size+" Nacionalidades":"Nacionalidad "+s:this.arrayFiltersPlays.splice(m,1):this.arrayFiltersPlays.push({name:this.fVnationalities.size>1?this.fVnationalities.size+" Nacionalidades":"Nacionalidad "+s,type:"onFiltersNationality"})}},clickAll(e){},clickAllAll(e){},clickTeam(e){},clickTeamScouting(e){},resetFilterTeamAndPlayers(){this.filters={zone:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],playingAs:[1,2],sections:[1,2,3,4,5,6],matchResult:[1,2,3],arrayAgeRange:[1,60],typeZone:1,setNationalitiesIds:this.setNationalitiesIds,setPositionsIds:[1,2,3,4,5,6,7,8,9],setYear:this.FVYear,booleanAreNationalTeamsVisible:!1,setAvailableNationalTeamsPlayersIds:new Set}},async changeTabsGeneral(e){if(this.resetPredefinedTeamAll(),this.showfiltersPc=!0,this.optionSelected=e,this.optionSelectedSubmenu="Todas las jugadas",this.filtersPredefinedF={},this.categoryPredefinedActive=!1,this.categoryPredefined=0,"Equipos"==e&&(this.typeTable=1,this.isTeam=!0,this.updateTables+=1,this.rowScoutingData=[],this.arrayFiltersPlays=[],this.teamselect=0,this.resetFilterTeamAndPlayers(),this.resetScouting()),"Jugadores"==e&&(this.typeTable=0,this.isTeam=!1,this.teamselect=0,this.updateTables+=1,this.rowScoutingData=[],this.resetFilterTeamAndPlayers(),this.resetScouting()),"Scouting"==e){this.rowScoutingData=[],this.teamselect=0,this.arrayFiltersPlays=[];const e=await this.fetchTeamsScouting(this.currentSeasonId);this.teamsscouting=[];for(let t=0;t<e.teams.length;t++)this.teamsscouting.push({id:e.teams[t].team_id,team:e.teams[t].colloquial_name,logo:e.teams[t].logo});setTimeout(()=>{this.modifidFiltersFlag=!1},200),this.resetFilterTeamAndPlayers()}},resetPredefinedTeamAll(){var e=this.arrayFiltersPlays.findIndex(e=>"onFiltersPredefined"===e.type);if(this.categoriesDefault.length>0&&-1!==e){this.categoryPredefinedActive=!1,this.categoryPredefined=0,this.FVfilterGolstats=[],this.filtersPredefinedF={},this.arrayFiltersPlays.splice(e,1);for(let e=0;e<this.categoriesDefault.length;e++)this.categoriesDefault[e].isSelected=!1;this.updateFilterPlaytypesGolstats+=1;var t=this.arrayFiltersPlays.findIndex(e=>"onFiltersPredefined"===e.type);if(-1!==t){for(let e=0;e<this.FVfilterGolstats.length;e++)this.FVfilterGolstats[e].isSelected=!1;-1!==t&&this.arrayFiltersPlays.splice(t,1),this.updateFilterGolstats+=1}}},changeTabsSubmenu(e){"Predeterminados"!=e?this.resetPredefinedTeamAll():this.arrayFiltersPlays=[],this.optionSelectedSubmenu=e},async fetchTournaments(){const e=m.create({headers:{Authorization:`${this.token}`}}),{data:t}=await e.get(this.tournamentsUrl);return t},async fetchTeams(){const e=m.create({headers:{Authorization:`${this.token}`}}),{data:t}=await e.get(this.teamsUrl+this.seasonActive);return t},async fetchTeamsScouting(e){const t=m.create({headers:{Authorization:`${this.token}`}}),{data:a}=await t.get(this.teamsUrl+e);return a},async getPredefinedfilters(e){this.arrayPredefinedFilters=[],this.arrayPredefinedOrigin=[];var t="";t=(e.id,this.urlFilter);const a=m.create({headers:{Authorization:`${this.token}`}}),{data:i}=await a.get(t+e.id);if(Object.keys(i[0].match_lapse_combinations).forEach(e=>{this.predefinedFiltersMatchLapse[e.toString()]=i[0].match_lapse_combinations[e]}),Object.keys(i[0].playing_as_combinations).forEach(e=>{this.predefinedFiltersPlayingAs[e.toString()]=i[0].playing_as_combinations[e]}),Object.keys(i[0].field_sections_combinations).forEach(e=>{this.predefinedFiltersSections[e.toString()]=i[0].field_sections_combinations[e]}),i[0]){for(let t=0;t<i[0].filter_records.length;t++){var s=i[0].description;if(void 0!==i[0].filter_records[t].field_sections){const e=i[0].filter_records[t].field_sections.toString();(this.predefinedFiltersSections[e]||""==this.predefinedFiltersSections[e])&&(s=""==this.predefinedFiltersSections[e]?s.replace(" [en {field_sections}]",this.predefinedFiltersSections[e]):s.replace("{field_sections}",this.predefinedFiltersSections[e]))}if(void 0!==i[0].filter_records[t].match_lapse){const e=i[0].filter_records[t].match_lapse.toString();(this.predefinedFiltersMatchLapse[e]||""==this.predefinedFiltersMatchLapse[e])&&(s=""==this.predefinedFiltersMatchLapse[e]?s.replace(" [durante {match_lapse}]",this.predefinedFiltersMatchLapse[e]):s.replace("{match_lapse}",this.predefinedFiltersMatchLapse[e]))}if(void 0!==i[0].filter_records[t].playing_as){const e=i[0].filter_records[t].playing_as.toString();(this.predefinedFiltersPlayingAs[e]||""==this.predefinedFiltersPlayingAs[e])&&(s=""==this.predefinedFiltersPlayingAs[e]?s.replace(" [jugando como {playing_as}]",this.predefinedFiltersPlayingAs[e]):s.replace("{playing_as}",this.predefinedFiltersPlayingAs[e]))}void 0!==i[0].filter_records[t].section_type&&(s="Jugadores"==this.optionSelected?s.replace("{section_type}","Jugadores"):s.replace("{section_type}","Equipos"));const a=(s=(s=(s=s.replace(/\[/g,"")).replace(/\]/g,"")).replace("{category_name}",i[0].category_name)).split(": ");var o=a[1];o.length>129&&this.windowWidth>1358&&(o=o.substring(0,129),o+="<span id='showIDtootip' class='dots' style='width: 100px; height: 20px; background: red; z-index: 6;'>...</span>"),this.isCup&&2!==i[0].filter_records[t].playing_as.length||this.arrayPredefinedFilters.push({id:t,category_name:e.name,id_category:i[0].id,title:a[0]+":",text:a[1],textOrigin:i[0].description,titledots:o,filtersPredefined:{matchResult:i[0].filter_records[t].match_result,playingAs:i[0].filter_records[t].playing_as,sections:i[0].filter_records[t].match_lapse,type:"Equipos"==this.optionSelected?2:1,typeZone:i[0].type_zone,zone:i[0].filter_records[t].field_sections,end_age:0,start_age:0,nationalities:[],elegible:[],positions:[]}})}var l=[];for(let e=0;e<this.arrayPredefinedFilters.length;e++){var n=0,r=new Set,d={},c=this.arrayPredefinedFilters[e].text.replace(/\*.*?\*/,"");if(c=(c=c.replace(/\*/g,"")).replace(/ +/g," "),this.arrayPredefinedFilters[e].filtersPredefined.elegible.length>0&&(n+=1),0==this.arrayPredefinedFilters[e].filtersPredefined.end_age.length&&0==this.arrayPredefinedFilters[e].filtersPredefined.start_age.length||(n+=1),0!=this.arrayPredefinedFilters[e].filtersPredefined.end_age&&0!=this.arrayPredefinedFilters[e].filtersPredefined.start_age?d.arrayAgeRange=[this.arrayPredefinedFilters[e].filtersPredefined.start_age,this.arrayPredefinedFilters[e].filtersPredefined.end_age]:0==this.arrayPredefinedFilters[e].filtersPredefined.end_age&&0==this.arrayPredefinedFilters[e].filtersPredefined.start_age?d.arrayAgeRange=[1,60]:0!=this.arrayPredefinedFilters[e].filtersPredefined.start_age&&0==this.arrayPredefinedFilters[e].filtersPredefined.end_age?d.arrayAgeRange=[this.arrayPredefinedFilters[e].filtersPredefined.start_age,60]:d.arrayAgeRange=[1,this.arrayPredefinedFilters[e].filtersPredefined.end_age],3!=this.arrayPredefinedFilters[e].filtersPredefined.matchResult.length&&(n+=1),d.matchResult=this.arrayPredefinedFilters[e].filtersPredefined.matchResult,this.arrayPredefinedFilters[e].filtersPredefined.nationalities.length>0&&(n+=1),0!=this.arrayPredefinedFilters[e].filtersPredefined.nationalities.length){for(let t=0;t<this.arrayPredefinedFilters[e].filtersPredefined.nationalities.length;t++)r.add(this.arrayPredefinedFilters[e].filtersPredefined.nationalities[t]);d.setNationalitiesIds=r}else r.add(138),r.add(222),r.add(163),r.add(51),r.add(226),r.add(10),r.add(223),r.add(96),r.add(171),r.add(198),r.add(105),r.add(80),r.add(29),r.add(74),r.add(216),r.add(196),r.add(64),r.add(155),r.add(156),r.add(89),r.add(106),r.add(81),r.add(233),r.add(204),d.setNationalitiesIds=r;2!=this.arrayPredefinedFilters[e].filtersPredefined.playingAs.length&&(n+=1),d.playingAs=this.arrayPredefinedFilters[e].filtersPredefined.playingAs,this.arrayPredefinedFilters[e].filtersPredefined.positions.length>0&&(n+=1),this.arrayPredefinedFilters[e].filtersPredefined.positions.length>0?d.setPositionsIds=this.arrayPredefinedFilters[e].filtersPredefined.positions:d.setPositionsIds=[1,2,3,4,5,6,7,8,9],6!=this.arrayPredefinedFilters[e].filtersPredefined.sections.length&&(n+=1),this.arrayPredefinedFilters[e].filtersPredefined.sections.length>0?d.sections=this.arrayPredefinedFilters[e].filtersPredefined.sections:d.sections=[1,2,3,4,5,6],16!=this.arrayPredefinedFilters[e].filtersPredefined.zone.length&&(n+=1),this.arrayPredefinedFilters[e].filtersPredefined.zone.length>0?d.zone=this.arrayPredefinedFilters[e].filtersPredefined.zone:d.zone=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],d.typeZone=this.arrayPredefinedFilters[e].filtersPredefined.typeZone,l.push({id:e+1,name:c,isSelected:!1,value:n,filters:d})}this.FVfilterGolstats=l,this.updateFilterGolstats+=1,this.arrayPredefinedOrigin=JSON.parse(JSON.stringify(this.arrayPredefinedFilters))}},getTextFilterPredefinedCustom(){this.setDinamicFilters(this.filterEmitAux);var e=this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].textOrigin;const t=this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.zone.sort((e,t)=>e-t).toString();e=this.predefinedFiltersSections[t]||""==this.predefinedFiltersSections[t]?""==this.predefinedFiltersSections[t]?e.replace(" [en {field_sections}]",this.predefinedFiltersSections[t]):e.replace("{field_sections}",this.predefinedFiltersSections[t]):e.replace("{field_sections}",this.predefinedFiltersSections.other);var a=!1;this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.nationalities.size>0?this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.nationalities.size==this.setNationalityIds.size?e=(e=(e=e.replace("[{nationality}]","")).replace("[de las nacionalidades y posiciones seleccionadas]","")).replace("[de las nacionalidades seleccionadas]",""):1==this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.nationalities.size?e=(e=(e=e.replace("[{nationality}]",this.$t(`gentilicios[${[...this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.nationalities][0]}]`))).replace("[de las nacionalidades y posiciones seleccionadas]","")).replace("[de las nacionalidades seleccionadas]",""):this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.positions.size>0&&this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.positions.size!=this.setPositionsIds.size?(a=!0,e=(e=e.replace("[{nationality}]","")).replace("[de las nacionalidades seleccionadas]","")):e=(e=e.replace("[{nationality}]","")).replace("[de las nacionalidades y posiciones seleccionadas]",""):e=(e=(e=e.replace("[{nationality}]","")).replace("[de las nacionalidades y posiciones seleccionadas]","")).replace("[de las nacionalidades seleccionadas]",""),this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.nationalities.size>0?(a||this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.positions.size==this.setPositionsIds.size)&&(e=e.replace("[de las posiciones seleccionadas]","")):e=e.replace("[de las posiciones seleccionadas]",""),e=0!=this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age&&0!=this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.end_age?this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age!=this.arrayAgeRange[0]&&this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.end_age!=this.arrayAgeRange[1]||this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age!=this.arrayAgeRange[0]||this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.end_age!=this.arrayAgeRange[1]?this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age==this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.end_age?(e=e.replace("[de {min_age} a {max_age} años]","")).replace("[de {min_age} años]","[de "+this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age+" años]"):(e=e.replace("[de {min_age} años]","")).replace("[de {min_age} a {max_age} años]","[de "+this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age+" a "+this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.end_age+" años]"):(e=e.replace("[de {min_age} a {max_age} años]","")).replace("[de {min_age} años]",""):(e=e.replace("[de {min_age} años]","")).replace("[de {min_age} a {max_age} años]","");const i=this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.sections.sort().toString();if(this.predefinedFiltersMatchLapse[i]||""==this.predefinedFiltersMatchLapse[i])e=""==this.predefinedFiltersMatchLapse[i]?e.replace(" [durante {match_lapse}]",this.predefinedFiltersMatchLapse[i]):e.replace("{match_lapse}",this.predefinedFiltersMatchLapse[i]);else{e=e.replace("{match_lapse}"," "+this.predefinedFiltersMatchLapse.other);var s="";i.includes(1)&&(s+="0-15, "),i.includes(2)&&(s+="16-30, "),i.includes(3)&&(s+="31-45, "),i.includes(4)&&(s+="46-60, "),i.includes(5)&&(s+="61-75, "),i.includes(6)&&(s+="76-90, "),s=(s=s.slice(0,-2)).replace(/,([^,]*)$/," y $1"),e=e.replace("{match_lapse_selected}",s)}const o=this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.playingAs.sort().toString();(this.predefinedFiltersPlayingAs[o]||""==this.predefinedFiltersPlayingAs[o])&&(e=""==this.predefinedFiltersPlayingAs[o]?e.replace(" [jugando como {playing_as}]",this.predefinedFiltersPlayingAs[o]):e.replace("{playing_as}",this.predefinedFiltersPlayingAs[o]));const l=(e=(e=(e=(e=1==this.typeSelected?1001==this.getUser.tournament?22==this.category.id?e.replace("{section_type}","Porteras"):e.replace("{section_type}","Jugadoras"):22==this.category.id?e.replace("{section_type}","Porteros"):e.replace("{section_type}","Jugadores"):e.replace("{section_type}","Equipos")).replace(/\[/g,"")).replace(/\]/g,"")).replace("{category_name}",this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].category_name)).split(": ");let n=l[1].charAt(0).toUpperCase()+l[1].toLowerCase().slice(1),r=l[1].charAt(0).toUpperCase()+l[1].toLowerCase().slice(1);this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].text=n,this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].title=l[0]+":";const d=r.match(/\*/g);if(d&&d.length)if(d.length%2==0)for(let c=1;c<=d.length;c++)c%2==0||(r=r.replace("*",'<span style="color: #ffff03" >'));else r=r.replaceAll("*","");this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].titledots=r},intervalidtops(e){this.$emit("intervalidtops",e)}},mounted(){null!==sessionStorage.getItem("sidpdfil")&&sessionStorage.setItem("sidpdfil",0),this.renderNext(),0!==this.teamId&&"Scouting"!==this.optionSelected&&this.clickTeam(this.teamId),"Jugadores"!==this.defaultSection&&("Scouting"===this.defaultSection&&this.selectedSeason(this.currentSeasonId),this.changeTabsGeneral(this.defaultSection))},async created(){try{const e=m.create({headers:{"Content-Type":"application/json"}});e.interceptors.request.use(e=>(delete e.headers.Authorization,e));const t=await e.get("https://golstats-microservices.s3.us-west-2.amazonaws.com/eligibles/elegibles.json",{headers:{"Content-Type":"application/json"}});this.elegibilidadArray=t.data,this.fVnationalities.add(138),this.fVnationalities.add(222),this.fVnationalities.add(163),this.fVnationalities.add(51),this.fVnationalities.add(226),this.fVnationalities.add(10),this.fVnationalities.add(223),this.fVnationalities.add(96),this.fVnationalities.add(171),this.fVnationalities.add(198),this.fVnationalities.add(105),this.fVnationalities.add(80),this.fVnationalities.add(29),this.fVnationalities.add(74),this.fVnationalities.add(216),this.fVnationalities.add(196),this.fVnationalities.add(64),this.fVnationalities.add(155),this.fVnationalities.add(156),this.fVnationalities.add(89),this.fVnationalities.add(106),this.fVnationalities.add(81),this.fVnationalities.add(233),this.fVnationalities.add(204)}catch(e){throw new Error(e)}}},By={ref:"myDivRefTopsFull"},Fy={key:0,class:"overlay-loading"},Gy=[t.createElementVNode("div",{class:"overlay-loading__spinner"},[t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/balon_liga.png",alt:""})],-1),t.createElementVNode("div",{class:"overlay-loading__text"},"Loading...",-1)],zy=[t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/todoelfut/icn_close.png",style:{width:"10px"}},null,-1)],Ay={key:0,class:"cont-leyemd-multipleleagues"},Dy=t.createElementVNode("img",{class:"img-leyemd-multipleleagues",src:"http://golstatsimages.blob.core.windows.net/images-library/icn-multiples-ligas.png"},null,-1),Ly={key:0,style:{"margin-left":"10px"}},$y=t.createElementVNode("span",null,"Tipo de Jugada",-1),My=t.createElementVNode("span",null,"Filtro GolStats",-1),Oy={key:3,style:{width:"100%",height:"295px"}};const Ry=M(xy,[["render",function(e,a,i,s,o,l){t.resolveComponent("GSCTournamentSelect"),t.resolveComponent("GSCSeasonSelect");const n=t.resolveComponent("GscSwitchComponent"),r=t.resolveComponent("GSCFilterperteam"),d=t.resolveComponent("GSCFilters"),c=t.resolveComponent("GSCLabel"),m=t.resolveComponent("GSCTopCategory"),p=t.resolveComponent("GSCTableHeader"),y=t.resolveComponent("GSCRowTable"),g=t.resolveComponent("GSCExpandedInfo");return t.openBlock(),t.createElementBlock("div",By,[o.loadingActive?(t.openBlock(),t.createElementBlock("div",Fy,Gy)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.templateLosMejoresClass)},[t.createElementVNode("section",{class:t.normalizeClass(e.containerSectionClass),id:"container-section"},[t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.comdescubreVideosClass)},[t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.menuSectionParentHeaderClass)},[t.createCommentVNode("",!0),t.createCommentVNode("",!0)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.topFiltersParentClass)},[t.createElementVNode("div",{class:t.normalizeClass(e.topFiltersClass),id:"top-filters"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamBarParent)},["Scouting"!=o.optionSelected&&"Equipos"!=o.optionSelected?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.teamBar),id:"team-bar"},[t.createVNode(r,{data:o.teams,"team-id":i.teamId,"background-color":"#172531","contain-border-radius":"8px",onClickTeam:l.clickTeam,onClickAll:l.clickAll},null,8,["data","team-id","onClickTeam","onClickAll"])],2)):t.createCommentVNode("",!0),t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.containerFilters),id:"container-filters",style:t.normalizeStyle(o.showfiltersPc?"":s.elementSize.width>760?"display: none;":"")},[t.createElementVNode("div",{class:t.normalizeClass(e.menuSectionClass),id:"menu-section"},[s.elementSize.width>760&&"Scouting"!=o.optionSelected?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.closeFiltersPc),onClick:a[1]||(a[1]=(...e)=>l.clickCloseFilters&&l.clickCloseFilters(...e))},zy,2)):t.createCommentVNode("",!0),"Scouting"!==o.optionSelected?(t.openBlock(),t.createBlock(n,{key:1,type:2,buttons:["Todas las jugadas","Predeterminados"],"font-family":"Poppins-Regular","selected-option":o.optionSelectedSubmenu,"font-size":e.sizeTabsFontMS,width:e.sizeTabsMS,arrow:!1,borderWidth:"1px","background-option-active":"#172531",background:"#172531",height:"28px",onInput:l.changeTabsSubmenu},null,8,["selected-option","font-size","width","onInput"])):t.createCommentVNode("",!0)],2),t.createCommentVNode("",!0),t.withDirectives(t.createElementVNode("div",{class:t.normalizeClass(e.$style.btnCloseFilters),style:t.normalizeStyle("Scouting"===o.optionSelected?"margin-top: 4%; margin-left: 1%":""),onClick:a[3]||(a[3]=(...e)=>l.openMenuFilters&&l.openMenuFilters(...e))},null,6),[[t.vShow,s.elementSize.width<760&&o.openMenuMobil]]),t.withDirectives(t.createElementVNode("div",{class:t.normalizeClass(e.containerMenuClass),id:"container-menu"},["Todas las jugadas"==o.optionSelectedSubmenu&&"Scouting"!=o.optionSelected?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[s.elementSize.width>0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.withDirectives(t.createVNode(d,t.mergeProps({"button-filter-props":l.filterButtonProps},s.elementSize.width<420?o.expansionPanelModePropsMobil270:s.elementSize.width<760?o.expansionPanelModePropsMobil:o.expansionPanelModeProps,{"filter-type":o.filtersTypes.PLAYS,"show-badge-on-filter-full":!1,"onUpdate:filters":l.onFiltersPlays,filters:o.categoriesPlaysTypes,onApply:l.applyFiltersBtn}),null,16,["button-filter-props","filter-type","onUpdate:filters","filters","onApply"]),[[t.vShow,!o.showFullTable]]),(t.openBlock(),t.createBlock(d,t.mergeProps({"button-filter-props":l.filterButtonProps},s.elementSize.width<420?o.expansionPanelModePropsMobil270:s.elementSize.width<760?o.expansionPanelModePropsMobil:o.expansionPanelModeProps,{key:o.updateFilterField,"filter-type":o.filtersTypes.FIELD,"show-badge-on-filter-full":!1,"onUpdate:filters":l.onFiltersField,filters:o.fVzone}),null,16,["button-filter-props","filter-type","onUpdate:filters","filters"])),t.createVNode(d,t.mergeProps({"button-filter-props":l.filterButtonProps},s.elementSize.width<420?o.expansionPanelModePropsMobil270:s.elementSize.width<760?o.expansionPanelModePropsMobil:o.expansionPanelModeProps,{"filter-type":o.filtersTypes.DETAILS,"show-badge-on-filter-full":!1,"onUpdate:filters":l.onFiltersDetails,filters:o.detailsObject}),null,16,["button-filter-props","filter-type","onUpdate:filters","filters"]),"Jugadores"===o.optionSelected?(t.openBlock(),t.createBlock(d,t.mergeProps({key:0,ref:"personalDataFilterPlayers","button-filter-props":l.filterButtonProps},s.elementSize.width<420?o.expansionPanelModePropsMobil270:s.elementSize.width<760?o.expansionPanelModePropsMobil:o.expansionPanelModeProps,{"filter-type":o.filtersTypes.PERSONAL_DATA,"show-badge-on-filter-full":!1,season:{id:i.seasonActive,tournamentId:o.tournamentSelectedObj.value},token:o.token,"onUpdate:filters":l.onFiltersData}),null,16,["button-filter-props","filter-type","season","token","onUpdate:filters"])):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0),"Scouting"==o.optionSelected?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[s.elementSize.width>0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[(t.openBlock(),t.createBlock(d,t.mergeProps({"button-filter-props":l.filterButtonProps},s.elementSize.width<420?o.expansionPanelModePropsMobil270:s.elementSize.width<760?o.expansionPanelModePropsMobil:o.expansionPanelModeProps,{"filter-type":o.filtersTypes.TOURNAMENTS,"show-badge-on-filter-full":!1,filters:o.tournamentsToFilter,key:o.keyTournamentValue,"onUpdate:filters":l.onFiltersTournaments}),null,16,["button-filter-props","filter-type","filters","onUpdate:filters"])),t.createVNode(d,t.mergeProps({"button-filter-props":l.filterButtonProps},s.elementSize.width<420?o.expansionPanelModePropsMobil270:s.elementSize.width<760?o.expansionPanelModePropsMobil:o.expansionPanelModeProps,{"filter-type":o.filtersTypes.PERSONAL_DATA,"show-badge-on-filter-full":!1,season:{id:o.filterScounting.seasonId,tournamentId:o.filterScounting.tournaments[0]},ref:"personalDataFilter","onUpdate:filters":l.onFiltersPersonalData}),null,16,["button-filter-props","filter-type","season","onUpdate:filters"]),t.createVNode(d,t.mergeProps({"button-filter-props":l.filterButtonProps},s.elementSize.width<420?o.expansionPanelModePropsMobil270:s.elementSize.width<760?o.expansionPanelModePropsMobil:o.expansionPanelModeProps,{"filter-type":o.filtersTypes.UNIVERSE,"show-badge-on-filter-full":!1,filters:o.universeData,"onUpdate:filters":l.onFiltersUniverse}),null,16,["button-filter-props","filter-type","filters","onUpdate:filters"]),t.createVNode(d,t.mergeProps({"button-filter-props":l.filterButtonProps},s.elementSize.width<420?o.expansionPanelModePropsMobil270:s.elementSize.width<760?o.expansionPanelModePropsMobil:o.expansionPanelModeProps,{"filter-type":o.filtersTypes.PRODUCTIVITY,"show-badge-on-filter-full":!1,"onUpdate:filters":l.onFiltersProductivity,filters:o.detaildProductivityCategories}),null,16,["button-filter-props","filter-type","onUpdate:filters","filters"])],64)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.BtnSearchScountingcom),onClick:a[4]||(a[4]=(...e)=>l.getScoutingData&&l.getScoutingData(...e))},"Buscar",2)],64)):t.createCommentVNode("",!0),"Predeterminados"==o.optionSelectedSubmenu&&"Scouting"!=o.optionSelected?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[(t.openBlock(),t.createBlock(d,t.mergeProps({"button-filter-props":l.filterButtonProps,modalHeight:"300px"},s.elementSize.width<420?o.expansionPanelModePropsMobil270:s.elementSize.width<760?o.expansionPanelModePropsMobil:o.expansionPanelModePropsTypePlays,{"filter-type":o.filtersTypes.PLAYS_TYPES,"show-badge-on-filter-full":!1,key:o.updateFilterPlaytypesGolstats,"onUpdate:filters":l.onFiltersPlaysTypes,filters:o.categoriesDefault}),null,16,["button-filter-props","filter-type","onUpdate:filters","filters"])),(t.openBlock(),t.createBlock(d,t.mergeProps({"button-filter-props":l.filterButtonProps,modalHeight:"300px"},s.elementSize.width<420?o.expansionPanelModePropsMobil270:s.elementSize.width<760?o.expansionPanelModePropsMobil:o.expansionPanelModeProps,{"filter-type":o.filtersTypes.GOLSTATS,"show-badge-on-filter-full":!1,key:o.updateFilterGolstats,"onUpdate:filters":l.onFiltersGolStats,filters:l.filterGolstats}),null,16,["button-filter-props","filter-type","onUpdate:filters","filters"]))],64)):t.createCommentVNode("",!0)],2),[[t.vShow,s.elementSize.width>760||o.openMenuMobil]]),"Scouting"==o.optionSelected?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.teamBar),id:"team-bar"},[o.filterScounting.tournaments.length>1&&o.rowScoutingData.length>0?(t.openBlock(),t.createElementBlock("div",Ay,[Dy,t.createElementVNode("div",{class:t.normalizeClass(e.comextleyemdmultipleleaguesClass)}," El filtro por equipos solo se pude utilizar cuando se tiene maximo 1 liga seleccionada ",2)])):(t.openBlock(),t.createBlock(r,{data:o.teamsscouting,"team-id":o.teamselectrec,"background-color":"#172531","contain-border-radius":"8px",key:o.updateFilterTeamsScouting,onClickTeam:l.clickTeamScouting,onClickAll:l.clickAllAll},null,8,["data","team-id","onClickTeam","onClickAll"]))],2)):t.createCommentVNode("",!0)],6)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.containerTheBestClass),id:"container-the-best"},[t.createElementVNode("div",{class:t.normalizeClass(e.titleSectionClass)},["Predeterminados"!=o.optionSelectedSubmenu?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.commejoresJugadoresClass)},[o.arrayFiltersPlays.length>0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},["Scouting"!=o.optionSelected?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Mejores jugadores: ")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("Jugadores más productivos: ")],64))],64)):t.createCommentVNode("",!0)],2)):t.createCommentVNode("",!0),"Scouting"!=o.optionSelected&&"Predeterminados"!=o.optionSelectedSubmenu?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[o.showFullTable?(t.openBlock(),t.createElementBlock("div",Ly,[t.createVNode(c,{"text-value":"Categoría - "+o.categoryName+" ","font-size":"11px","font-color":"rgba(255, 255, 255, 0.7)",onClickClose:l.deleteCategoryFilter,icon:"https://golstatsimages.blob.core.windows.net/todoelfut/icn_close.png","icon-size":"6px",height:"20px"},null,8,["text-value","onClickClose"])])):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(o.arrayFiltersPlays,(e,a)=>(t.openBlock(),t.createElementBlock("div",{key:a,style:{"margin-left":"10px"}},[t.createVNode(c,{"text-value":e.name+" ","font-size":"11px","font-color":"rgba(255, 255, 255, 0.7)",onClickClose:l.deleteLabelFilter,id:e.type,icon:"https://golstatsimages.blob.core.windows.net/todoelfut/icn_close.png","icon-size":"6px",height:s.elementSize.width<768?"auto":"20px"},null,8,["text-value","onClickClose","id","height"])]))),128)),0!=o.rowScoutingData.length||"Predeterminados"==o.optionSelectedSubmenu&&-1!==o.arrayFiltersPlays.findIndex(e=>"onFiltersPredefined"===e.type)?(t.openBlock(),t.createElementBlock("div",{key:2,class:t.normalizeClass(e.comquitarFiltrosClass),onClick:a[5]||(a[5]=(...e)=>l.onClickDeleteFilter&&l.onClickDeleteFilter(...e))}," Quitar filtros ",2)):t.createCommentVNode("",!0),t.createCommentVNode("",!0)],2),0!=i.seasonActive?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.containerTablesClass),id:"container-tables",style:t.normalizeStyle(o.showFullTable?"gap: 0px!important;":"")},["Scouting"!==o.optionSelected?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},["Todas las jugadas"==o.optionSelectedSubmenu?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(o.categoriesDefault,(a,s)=>(t.openBlock(),t.createElementBlock("div",{key:s,style:t.normalizeStyle(!o.showOnlyCategories&&o.arrayCategoryFilter.includes(a.id)?"":"display:none !important;")},[t.withDirectives(t.createElementVNode("div",{class:t.normalizeClass(e.toniKroosWrapperClass)},[(t.openBlock(),t.createBlock(m,{"is-widget":i.isWidget,"team-widget":i.teamWidget,"time-live-comparative-avanced":i.timeLiveComparativeAvanced,"is-team":o.isTeam,onMore:l.onShowFullTable,"border-width":0,onIntervalidtops:l.intervalidtops,"can-play-videos":i.canPlayVideos,"border-radius":"12px","game-id":i.gameId,game:i.game,typeData:i.typeData,"filters-prop":l.filterChange,category:a.id,"type-table":o.typeTable,categoryName:a.name,"season-selected":i.seasonSelected,season:i.seasonActive,"filter-team":i.teamselect,key:o.updateTables,onClickprofile:l.clickprofile,onSetopenmedia:l.setOpenMedia},null,8,["is-widget","team-widget","time-live-comparative-avanced","is-team","onMore","onIntervalidtops","can-play-videos","game-id","game","typeData","filters-prop","category","type-table","categoryName","season-selected","season","filter-team","onClickprofile","onSetopenmedia"]))],2),[[t.vShow,!o.showOnlyCategories&&o.arrayCategoryFilter.includes(a.id)&&!o.showFullTable]])],4))),128)),o.showFullTable?(t.openBlock(),t.createBlock(m,{"time-live-comparative-avanced":i.timeLiveComparativeAvanced,"is-team":o.isTeam,"is-widget":i.isWidget,"team-widget":i.teamWidget,"border-width":0,"border-radius":"12px","game-id":i.gameId,onIntervalidtops:l.intervalidtops,game:i.game,typeData:i.typeData,category:o.showFullCategory,type:1,"type-table":o.typeTable,categoryName:"","filters-prop":l.filterChange,"season-selected":i.seasonSelected,season:i.seasonActive,"filter-team":i.teamselect,key:o.updateTablesfull,onClickprofile:l.clickprofile,onSetopenmedia:l.setOpenMedia},null,8,["time-live-comparative-avanced","is-team","is-widget","team-widget","game-id","onIntervalidtops","game","typeData","category","type-table","filters-prop","season-selected","season","filter-team","onClickprofile","onSetopenmedia"])):t.createCommentVNode("",!0)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[o.categoryPredefinedActive?(t.openBlock(),t.createBlock(m,{"is-widget":i.isWidget,"team-widget":i.teamWidget,"is-team":o.isTeam,"time-live-comparative-avanced":i.timeLiveComparativeAvanced,onIntervalidtops:l.intervalidtops,"border-width":0,"border-radius":"12px","can-play-videos":i.canPlayVideos,"game-id":i.gameId,game:i.game,typeData:i.typeData,category:o.categoryPredefined,type:1,"type-table":o.typeTable,categoryName:"","filters-prop":l.filterChangePredefined,"season-selected":i.seasonSelected,season:i.seasonActive,"filter-team":i.teamselect,key:o.updateTables,onClickprofile:l.clickprofile,onSetopenmedia:l.setOpenMedia},null,8,["is-widget","team-widget","is-team","time-live-comparative-avanced","onIntervalidtops","can-play-videos","game-id","game","typeData","category","type-table","filters-prop","season-selected","season","filter-team","onClickprofile","onSetopenmedia"])):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.containerPredefinedcom)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.titleContainerPredefinedcom)},[0==o.arrayFiltersPlays.length?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("No has seleccionado ningún filtro")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("No existen resultados")],64))],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.subtitleContainerPredefinedcom)},[0==o.arrayFiltersPlays.length?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Para visualizar resultados selecciona un")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("No existen resultados con los filtros")],64))],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.subtitleContainerPredefinedcom)},[0==o.arrayFiltersPlays.length?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[$y,t.createTextVNode(" y un "),My,t.createTextVNode(" en la")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("que has seleccionado.")],64))],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.subtitleContainerPredefinedcom)},[0==o.arrayFiltersPlays.length?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("parte superior.")],64)):t.createCommentVNode("",!0)],2)],2))],64))],64)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.containerPredefinedScountingcom),style:t.normalizeStyle(o.rowScoutingData.length>0?"height: auto;":"")},[o.loadingActive?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[o.rowScoutingData.length>0?(t.openBlock(),t.createBlock(p,{key:0,background:"#183143",type:2})):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(o.rowScoutingData,(e,a)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:a},[0==o.teamselectrec||o.teamselectrec==e.team_id?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createVNode(y,{type:2,"is-expanded":o.playerexpand==e.id&&o.expand,onMediadata:l.setMediaData,data:{position:e.position,player_name:e.player_name,player_photo:e.player_photo,total:e.total,id:e.id,player_age:e.player_age,team_abrev:e.team_abrev,team_logo:e.team_logo,player_position:o.positions[e.player_position-1].fullname,player_country_flag:e.player_country_flag,player_games:e.player_games,player_min:e.player_min,league_name:e.league_name,seasons:e.seasons,season_id:e.season_id},height:"71px",background:a%2==0?i.backgroundOdd:i.backgroundEven,onExpand:l.clickexpand},null,8,["is-expanded","onMediadata","data","background","onExpand"]),o.expand&&o.playerexpand==e.id?(t.openBlock(),t.createBlock(g,{key:0,type:0,"view-effectiveness":!1,viewGoals:!1,additionalClass:"fullTable",data:{teams:e.team_name,age:e.player_age,dataofbirth:e.date,nationality:e.nationality_name,countryFlag:e.player_country_flag,position:o.positions[e.player_position-1].name,games:e.player_games,min:e.player_min,goals:e.total,effectiveness:"-",category:"total",id:e.id},onViewprofile:t=>l.viewprofile(t,e.season_id,e.team_id),background:a%2==0?i.backgroundOdd:i.backgroundEven},null,8,["data","onViewprofile","background"])):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)],64))),128))],64)),0!=o.rowScoutingData.length||o.loadingActive?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.btnLeyendTxtcom)},' Haz click en "Buscar" para aplicar tus filtros ',2)),0!=o.rowScoutingData.length||o.loadingActive?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",{key:2,class:t.normalizeClass(e.$style.containerScountingBtncom)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.btnDeleteAplicacom),onClick:a[6]||(a[6]=(...e)=>l.onClickDeleteFilter&&l.onClickDeleteFilter(...e))}," Eliminar filtros aplicados ",2),0==o.rowScoutingData.length?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.SearchBtnBarcom),onClick:a[7]||(a[7]=(...e)=>l.getScoutingData&&l.getScoutingData(...e))}," Buscar ",2)):t.createCommentVNode("",!0)],2)),o.loadingActive?(t.openBlock(),t.createElementBlock("div",Oy)):t.createCommentVNode("",!0)],6))],6)):t.createCommentVNode("",!0)],2)],2)],2)],2)],512)}],["__cssModules",{$style:Ny}]]);let Wy=null;const jy={components:{GSCDatosGSMain:Om,GSCCheckbox:r.GSCCheckbox,GSCRadioToggle:rn,GSCTopFull:Ry},props:{isWidget:{type:Boolean,default:!1},teamWidget:{type:Number,default:0},timeLiveComparativeBestPlayers:{type:Number,default:6e4},timeLiveComparativeAvanced:{type:Number,default:6e4},seasonSelected:{type:Object,default:()=>({})},tournamentSelected:{type:Object,default:()=>({})},game:{type:Object,default:()=>{}},playVideosPrivileges:{type:Object,default:null},canPlayVideos:{type:Boolean,default:!1}},data:()=>({updateHomeCheck:0,updateAwayCheck:0,activeSection:"destacados",widthSection:0,teamactive:0,update:0,homeTeamCheck:!0,awayTeamCheck:!0,typeViewData:1}),watch:{game:{deep:!0,immediate:!0,handler(e){e&&(1==e.game_status||1==e.is_live||0==e.game_status?this.typeViewData=1:this.typeViewData=0),this.update+=1}}},computed:{},methods:{preventChange(e){e.preventDefault(),this.homeTeamCheck=!0},intervalidgs(e){this.$emit("intervalidgs",e)},onOpenProfileTeam(e){this.$emit("openProfileTeam",e)},intervalidtops(e){this.$emit("intervalidtops",e)},onOpenProfilePlayer(e){this.$emit("onOpenProfile",e)},ChangeRadio(e){"string"==typeof e&&(this.typeViewData="Este partido"===e?1:0)},onCheckInactiveHome(e){e?(this.homeTeamCheck=!0,this.awayTeamCheck?this.teamactive=0:this.teamactive=this.game.homeTeam.team_id):this.awayTeamCheck?(this.homeTeamCheck=!1,this.teamactive=this.game.awayTeam.team_id):(this.updateHomeCheck+=1,this.homeTeamCheck=!0,this.teamactive=this.game.homeTeam.team_id)},onCheckInactiveAway(e){e?(this.awayTeamCheck=!0,this.homeTeamCheck?this.teamactive=0:this.teamactive=this.game.awayTeam.team_id):this.homeTeamCheck?(this.awayTeamCheck=!1,this.teamactive=this.game.homeTeam.team_id):(this.updateAwayCheck+=1,this.teamactive=this.game.awayTeam.team_id,this.awayTeamCheck=!0)},setUpResizeObserver(){if(!window.ResizeObserver)throw new Error("Resize observer not supported!");Wy=new ResizeObserver(()=>{this.widthSection=this.$refs.comparative.clientWidth}),Wy.observe(this.$refs.comparative)},clickOptSection(e){this.activeSection=e},openmedia(e){1===this.typeViewData?(e.gameIdsToFilter=[this.game.gameId],this.$emit("openmedia",e)):(e.isLiveAccumulated=!0,this.$emit("openmedia",e))}},async mounted(){setTimeout(()=>{this.setUpResizeObserver()},1e3)}},qy={class:"container-comparative",ref:"comparative"},Hy={class:"container-btn"},Jy={class:"items-container-btn"},Uy={class:"container-sections"},Zy={key:0,class:"container-teams-menu"},Xy={class:"container-team-menu-home"},Yy=["src"],Qy=(e=>(t.pushScopeId("data-v-849e2f3d"),e=e(),t.popScopeId(),e))(()=>t.createElementVNode("div",{class:"container-team-menu-separator"},null,-1)),Ky={class:"container-team-menu-away"},eg=["src"],tg={key:1,class:"container-switch-menu"},ag={class:"container-leyend"},ig={class:"container-tops"};const sg=M(jy,[["render",function(e,a,i,s,o,l){const n=t.resolveComponent("GSCDatosGSMain"),r=t.resolveComponent("GSCCheckbox"),d=t.resolveComponent("GSCRadioToggle"),c=t.resolveComponent("GSCTopFull");return t.openBlock(),t.createElementBlock("div",qy,[t.createElementVNode("div",Hy,[t.createElementVNode("div",Jy,[t.createElementVNode("div",{class:t.normalizeClass([o.widthSection>480?"btn-destacados":"btn-destacados-movil","destacados"==o.activeSection?"active":""]),onClick:a[0]||(a[0]=e=>l.clickOptSection("destacados"))},[1==i.game.status||1==i.game.is_live?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[1==i.tournamentSelected.is_female?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Jugadoras destacadas")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("Jugadores destacados")],64))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("General")],64))],2),t.createElementVNode("div",{class:t.normalizeClass([o.widthSection>480?"btn-avanced":"btn-avanced-movil","avanzado"==o.activeSection?"active":""]),onClick:a[1]||(a[1]=e=>l.clickOptSection("avanzado"))}," Avanzado ",2)])]),t.createElementVNode("div",Uy,["destacados"==o.activeSection?(t.openBlock(),t.createBlock(n,{key:0,"is-widget":i.isWidget,"team-widget":i.teamWidget,"tournament-selected":i.tournamentSelected,"time-live-comparative-best-players":i.timeLiveComparativeBestPlayers,game:i.game,"play-videos-privileges":i.playVideosPrivileges,onOpenmedia:l.openmedia,onIntervalidgs:l.intervalidgs},null,8,["is-widget","team-widget","tournament-selected","time-live-comparative-best-players","game","play-videos-privileges","onOpenmedia","onIntervalidgs"])):t.createCommentVNode("",!0),"avanzado"==o.activeSection?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[i.isWidget?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",Zy,[t.createElementVNode("div",Xy,[(t.openBlock(),t.createBlock(r,{fontFamily:"Poppins-Regular","onUpdate:modelValue":l.onCheckInactiveHome,"label-color":"#8c9399",width:"25",key:o.updateHomeCheck,"model-value":o.homeTeamCheck,height:"25",style:{"margin-top":"-4px"}},null,8,["onUpdate:modelValue","model-value"])),t.createElementVNode("img",{class:"img-teams-selector-home",width:"23",src:i.game.homeTeam.logo},null,8,Yy),t.createElementVNode("div",{class:t.normalizeClass(o.widthSection>390?"label-team-home":"label-team-home-movil")},t.toDisplayString(i.game.homeTeam.colloquial_name),3)]),Qy,t.createElementVNode("div",Ky,[t.createElementVNode("div",{class:t.normalizeClass(o.widthSection>390?"label-team-away":"label-team-away-movil")},t.toDisplayString(i.game.awayTeam.colloquial_name),3),t.createElementVNode("img",{class:"img-teams-selector-away",width:"23",src:i.game.awayTeam.logo},null,8,eg),(t.openBlock(),t.createBlock(r,{fontFamily:"Poppins-Regular","onUpdate:modelValue":l.onCheckInactiveAway,"label-color":"#8c9399",width:"25",key:o.updateAwayCheck,"model-value":o.awayTeamCheck,height:"25",style:{"margin-top":"-4px"}},null,8,["onUpdate:modelValue","model-value"]))])])),i.game.is_live||1===i.game.status||0===i.game.status?(t.openBlock(),t.createElementBlock("div",tg,[t.createVNode(d,{height:"20px",width:"41px","background-color":"none","width-circle":"15px","height-circle":"15px","circle-color-switch":"#CBEE6B","font-color":"#ffffff","value-default":1==o.typeViewData?"Este partido":"Acumulado",textOptionLeft:"Este partido",textOptionRight:"Acumulado",onChange:l.ChangeRadio},null,8,["value-default","onChange"])])):t.createCommentVNode("",!0),t.createElementVNode("div",ag,[1==o.typeViewData?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(" Jugadas destacadas durante este partido ")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[1==i.game.status?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(" Jugadas destacadas durante el torneo ")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[1==i.tournamentSelected.is_female?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Jugadoras destacadas durante lo que va del torneo")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("Jugadores destacados durante lo que va del torneo")],64))],64))],64))]),t.createElementVNode("div",ig,[t.createVNode(c,{"is-widget":i.isWidget,"team-widget":i.teamWidget,"time-live-comparative-avanced":i.timeLiveComparativeAvanced,"can-play-videos":i.canPlayVideos,onOpenmedia:l.openmedia,onOpenProfileTeam:l.onOpenProfileTeam,onIntervalidtops:l.intervalidtops,onOpenProfilePlayer:l.onOpenProfilePlayer,"type-data":o.typeViewData,"game-id":i.game.gameId,game:i.game,"current-season-id":i.game.seasonId,"team-id":o.teamactive,"season-active":i.game.seasonId,"season-selected":i.seasonSelected,teamselect:o.teamactive},null,8,["is-widget","team-widget","time-live-comparative-avanced","can-play-videos","onOpenmedia","onOpenProfileTeam","onIntervalidtops","onOpenProfilePlayer","type-data","game-id","game","current-season-id","team-id","season-active","season-selected","teamselect"])])],64)):t.createCommentVNode("",!0)])],512)}],["__scopeId","data-v-849e2f3d"]]),og={class:"datagame-container"},lg=M({__name:"GSCPositining",props:{game:{type:Object,default:()=>({})}},setup:e=>(a,i)=>(t.openBlock(),t.createElementBlock("div",og,[t.createVNode(t.unref(C.GscPositioning),{game:e.game},null,8,["game"])]))},[["__scopeId","data-v-47e1f007"]]),ng={class:"datagame-container"},rg=M({__name:"GSCTacticaFijaMain",props:{game:{type:Object,default:()=>({})},isTacticVisible:{type:Boolean,default:!0},isSynchronization:{type:Boolean,default:!1},tournamentSelected:{type:Object,default:()=>({})},canPlayVideos:{type:Boolean,default:!0},videoPrivilegesPlayingAs:{type:Set,default:()=>new Set([1,2])}},emits:["open-media-player"],setup(e,{emit:a}){function i(e){a("open-media-player",e)}return(a,s)=>(t.openBlock(),t.createElementBlock("div",ng,[t.createVNode(t.unref(V.GSCSetPiece),{game:{id:e.game.gameId,home_team:e.game.homeTeam.team_id,away_team:e.game.awayTeam.team_id,season:e.game.seasonId,regularSeasonId:e.game.regularSeasonId,game_status:e.game.game_status,home_acronym:e.game.homeTeam.acronym,away_acronym:e.game.awayTeam.acronym,logo_home:"https://golstatsimages.blob.core.windows.net/teams-80/"+e.game.homeTeam.team_id+".png",logo_away:"https://golstatsimages.blob.core.windows.net/teams-80/"+e.game.awayTeam.team_id+".png"},"tournament-selected":e.tournamentSelected,"for-season":4===e.game.game_status,"for-team":!1,"for-game":4!==e.game.game_status,"is-tactic-visible":e.isTacticVisible,"is-synchronization":e.isSynchronization,"can-play-videos":e.canPlayVideos,"video-privileges-playing-as":e.videoPrivilegesPlayingAs,onOpenMediaPlayer:i},null,8,["game","tournament-selected","for-season","for-game","is-tactic-visible","is-synchronization","can-play-videos","video-privileges-playing-as"])]))}},[["__scopeId","data-v-e2f3bba7"]]),dg=e=>(t.pushScopeId("data-v-6f13fa5e"),e=e(),t.popScopeId(),e),cg={class:"game-data__header"},mg={class:"game-data__header__tournament-season-dropdown"},pg={class:"game-data__header__teams-carousel"},yg={class:"game-data__body"},gg={key:0,class:"no-stats-container"},ug=[dg(()=>t.createElementVNode("div",{class:"no-stats-content"},[t.createElementVNode("h2",{class:"no-stats-title"}," Este partido se publicará en un plazo de hasta 72 horas después de finalizada la jornada. ")],-1))],hg={key:1,class:"no-stats-container-mobile"},vg=[dg(()=>t.createElementVNode("div",{class:"no-stats-content"},[t.createElementVNode("h2",{class:"no-stats-title"}," Este partido se publicará en un plazo de hasta 72 horas después de finalizada la jornada. ")],-1))],fg={class:"game-data__body__menu"},_g={class:"game-data__body__menu__contmenuswitch"};m.defaults.headers.common.Authorization="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE";const bg=t.defineComponent({name:"GSC-GameData",components:{StatisticsMain:Io,GSCGameTimeLine:P.GSCGameTimeLine,GscSwitchComponent:k.GscSwitchComponent,GSCLineupsMain:Eo,GSCPositining:lg,GSCDatosGSMain:Bo,GSCVideoGame:Go,ModalEvents:nl,GSCTacticaFijaMain:rg,GSCProminentMain:$m,GSCComparative:sg}}),Sg=M(Object.assign(bg,{props:{tournamentsApiUrl:{type:String,default:""},currentSeasonId:{type:Number,default:0},isClubes:{type:Boolean,default:!1},defaultGameId:{type:Number,default:0,validator:e=>!Number.isNaN(e)&&e>=0},sortCalendar:{type:Boolean,default:!0},isWidget:{type:Boolean,default:!1},teamWidget:{type:Number,default:0},socket:{type:Object,default:()=>null},isSynchronization:{type:Boolean,default:!1},isTeamGamePerPage:{type:Boolean,default:!1},clientPrivilegesBySeasons:{type:Object,default:()=>null},areTournamentAndSeasonSelectsVisible:{type:Boolean,default:!0},disabledSectionsIds:{type:Array,default:()=>[]},tournamentsIdsToInclude:{type:Set,default:()=>new Set},volumetricFieldIntervalMinutes:{type:Number,default:2},chalkboardIntervalMinutes:{type:Number,default:2},gameEventsIntervalMinutes:{type:Number,default:1}},emits:["openmedia","change-season-id","onOpenProfile","openProfileTeam","openProfilePlayer"],setup(e,{emit:l}){const n=e,r=o.useStore();let d=null;F.on("socket-connected",()=>{r.commit("nextGeneral/updateIsSocketConnected",n.socket.connected)});const c=t.ref("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"),p=t.ref({season:[]}),y=t.ref({}),g=t.ref(!1),u=t.ref({}),h=t.ref(1),v=t.ref(0),f=t.ref(null),_=t.ref(null),b=t.ref(null),S=t.ref([]),T=t.ref(null),w=t.ref(!0),C=t.ref(new Set([1,2])),V=t.ref({}),P=t.ref({minute:"",recent_lapse:0,score:{}}),I=t.ref(0),N=t.ref("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"),E=t.ref(n.isWidget?[{componentName:"GSCProminentMain",name:"Generales",id:1},{componentName:"GSCVideoGame",name:"Más Videos",id:2},{componentName:"StatisticsMain",name:"Estadísticas",id:3},{componentName:"GSCComparative",name:n.isWidget?"Destacados":"Comparativa",id:4},{componentName:"GSCGameTimeLine",name:"Minuto a Minuto",id:5},{componentName:"GSCLineupsMain",name:"Alineaciones",id:6}]:[{componentName:"GSCProminentMain",name:"Destacado",id:1},{componentName:"GSCVideoGame",name:"Más Videos",id:2},{componentName:"StatisticsMain",name:"Estadísticas",id:4},{componentName:"GSCComparative",name:n.isWidget?"Destacados":"Comparativa",id:3},{componentName:"GSCGameTimeLine",name:"Minuto a Minuto",id:5},{componentName:"GSCLineupsMain",name:"Alineaciones",id:6},{componentName:"GSCTacticaFijaMain",name:"Táctica Fija",id:7}]),x=t.ref(n.isWidget?[{componentName:"GSCProminentMain",name:"Generales",id:1},{componentName:"GSCVideoGame",name:"Más Videos",id:2},{componentName:"StatisticsMain",name:"Estadísticas",id:3},{componentName:"GSCComparative",name:n.isWidget?"Destacados":"Comparativa",id:4},{componentName:"GSCGameTimeLine",name:"Minuto a Minuto",id:5},{componentName:"GSCLineupsMain",name:"Alineaciones",id:6}]:[{componentName:"GSCProminentMain",name:"Destacado",id:1},{componentName:"GSCVideoGame",name:"Más Videos",id:2},{componentName:"StatisticsMain",name:"Estadísticas",id:3},{componentName:"GSCComparative",name:n.isWidget?"Destacados":"Comparativa",id:4},{componentName:"GSCGameTimeLine",name:"Minuto a Minuto",id:5},{componentName:"GSCLineupsMain",name:"Alineaciones",id:6},{componentName:"GSCTacticaFijaMain",name:"Táctica Fija",id:7}]),B=t.ref(n.isWidget?[{componentName:"GSCProminentMain",name:"Generales",id:1},{componentName:"GSCVideoGame",name:"Más Videos",id:2},{componentName:"StatisticsMain",name:"Estadísticas",id:3},{componentName:"GSCComparative",name:n.isWidget?"Destacados":"Comparativa",id:4},{componentName:"GSCGameTimeLine",name:"Minuto a Minuto",id:5},{componentName:"GSCLineupsMain",name:"Alineaciones",id:6}]:[{componentName:"GSCProminentMain",name:"Destacado",id:1},{componentName:"GSCVideoGame",name:"Más Videos",id:2},{componentName:"StatisticsMain",name:"Estadísticas",id:3},{componentName:"GSCComparative",name:n.isWidget?"Destacados":"Comparativa",id:4},{componentName:"GSCGameTimeLine",name:"Minuto a Minuto",id:5},{componentName:"GSCLineupsMain",name:"Alineaciones",id:6},{componentName:"GSCTacticaFijaMain",name:"Táctica Fija",id:7}]);t.ref(n.isWidget?[{componentName:"GSCProminentMain",name:"Generales",id:1},{componentName:"GSCVideoGame",name:"Más Videos",id:2},{componentName:"StatisticsMain",name:"Estadísticas",id:3},{componentName:"GSCComparative",name:n.isWidget?"Destacados":"Comparativa",id:4},{componentName:"GSCGameTimeLine",name:"Minuto a Minuto",id:5},{componentName:"GSCLineupsMain",name:"Alineaciones",id:6}]:[{componentName:"GSCProminentMain",name:"Destacado",id:1},{componentName:"GSCVideoGame",name:"Más Videos",id:2},{componentName:"StatisticsMain",name:"Estadísticas",id:3},{componentName:"GSCComparative",name:n.isWidget?"Destacados":"Comparativa",id:4},{componentName:"GSCGameTimeLine",name:"Minuto a Minuto",id:5},{componentName:"GSCLineupsMain",name:"Alineaciones",id:6},{componentName:"GSCTacticaFijaMain",name:"Táctica Fija",id:7}]);const G=t.ref(0);let M=null;const O=t.ref(null),R=t.ref(0),W=t.ref(x.value[0]),j=t.ref([]);let q=t.ref("");const H={seasonAndPrivileges:null,canPrivilegesTeamPlayVideos:!1,homeTeamDetails:{canPlayVideos:!1,team:{}},awayTeamDetails:{canPlayVideos:!1,team:{}}},J=t.computed(()=>{const e=[];return y.value&&y.value.id&&(e.push({id:y.value.id,name:y.value.name,type:y.value.type}),y.value.related_seasons&&y.value.related_seasons.forEach(t=>{e.push({id:t.id,type:t.type})})),e}),U=t.computed(()=>{if(n.clientPrivilegesBySeasons){const e=n.clientPrivilegesBySeasons.seasonsAndPrivileges.get(y.value.id);if(e)return e.teamId}return 0});function Z(){g.value=!1}function X(e){f.value=e}function Y(e){S.value.push(e)}function Q(e){T.value=e}function K(e){b.value=e}function ee(e){_.value=e}function te(e){if(!function(e){const t=e.split(",");return!(t.length<2)&&!(t[1].split(" ").length<2)}(e))return"";const t=function(e){const t=e.split(",")[0].split(" ");if(t[0].length<=3&&t.length>1)return`${t[0]} ${t[1]}`;return t[0]}(e),a=function(e){const t=e.split(",")[1].split(" ");return t[1][0]}(e);return`${a}. ${t}`}async function ae(e){try{const t=m.create({headers:{Authorization:`${c.value}`}});V.value={};const a=await t.get("https://al2nv2dmkc.execute-api.us-west-2.amazonaws.com/prod/mxm/"+e.game_id);if(V.value[e.home_team.team_id]=[],V.value[e.home_team.team_id].team={name:e.home_team.acronym,logo:e.home_team.logo},V.value[e.home_team.team_id].goals=[],V.value[e.home_team.team_id].red=[],V.value[e.home_team.team_id].yellow=[],V.value[e.visiting_team.team_id]=[],V.value[e.visiting_team.team_id].team={name:e.visiting_team.acronym,logo:e.visiting_team.logo},V.value[e.visiting_team.team_id].goals=[],V.value[e.visiting_team.team_id].red=[],V.value[e.visiting_team.team_id].yellow=[],null!=a.data.minute&&(P.value={minute:a.data.minute,recent_lapse:a.data.recent_lapse,score:a.data.score}),a.data.plays)for(let i=0;i<a.data.plays.length;i++)"Roja"==a.data.plays[i].category_name&&1==a.data.plays[i].status&&(e.home_team.team_id==a.data.plays[i].team_id?(te(a.data.plays[i].player_name)in V.value[e.home_team.team_id].red||(V.value[e.home_team.team_id].red[te(a.data.plays[i].player_name)]={},V.value[e.home_team.team_id].red[te(a.data.plays[i].player_name)].event=[],V.value[e.home_team.team_id].red[te(a.data.plays[i].player_name)].name=te(a.data.plays[i].player_name)),V.value[e.home_team.team_id].red[te(a.data.plays[i].player_name)].event.push(a.data.plays[i].minute)):(te(a.data.plays[i].player_name)in V.value[e.visiting_team.team_id].red||(V.value[e.visiting_team.team_id].red[te(a.data.plays[i].player_name)]={},V.value[e.visiting_team.team_id].red[te(a.data.plays[i].player_name)].event=[],V.value[e.visiting_team.team_id].red[te(a.data.plays[i].player_name)].name=te(a.data.plays[i].player_name)),V.value[e.visiting_team.team_id].red[te(a.data.plays[i].player_name)].event.push(a.data.plays[i].minute))),"Amarilla"==a.data.plays[i].category_name&&1==a.data.plays[i].status&&(e.home_team.team_id==a.data.plays[i].team_id?(te(a.data.plays[i].player_name)in V.value[e.home_team.team_id].yellow||(V.value[e.home_team.team_id].yellow[te(a.data.plays[i].player_name)]={},V.value[e.home_team.team_id].yellow[te(a.data.plays[i].player_name)].event=[],V.value[e.home_team.team_id].yellow[te(a.data.plays[i].player_name)].name=te(a.data.plays[i].player_name)),V.value[e.home_team.team_id].yellow[te(a.data.plays[i].player_name)].event.push(a.data.plays[i].minute)):(te(a.data.plays[i].player_name)in V.value[e.visiting_team.team_id].yellow||(V.value[e.visiting_team.team_id].yellow[te(a.data.plays[i].player_name)]={},V.value[e.visiting_team.team_id].yellow[te(a.data.plays[i].player_name)].event=[],V.value[e.visiting_team.team_id].yellow[te(a.data.plays[i].player_name)].name=te(a.data.plays[i].player_name)),V.value[e.visiting_team.team_id].yellow[te(a.data.plays[i].player_name)].event.push(a.data.plays[i].minute))),"Gol"==a.data.plays[i].event_type_name&&1==a.data.plays[i].status&&(e.home_team.team_id==a.data.plays[i].team_id?"Autogol"==a.data.plays[i].category_name?(te(a.data.plays[i].player_name)in V.value[e.visiting_team.team_id].goals||(V.value[e.visiting_team.team_id].goals[te(a.data.plays[i].player_name)]={},V.value[e.visiting_team.team_id].goals[te(a.data.plays[i].player_name)].event=[],V.value[e.visiting_team.team_id].goals[te(a.data.plays[i].player_name)].name=te(a.data.plays[i].player_name)),V.value[e.visiting_team.team_id].goals[te(a.data.plays[i].player_name)].event.push(a.data.plays[i].minute)):(te(a.data.plays[i].player_name)in V.value[e.home_team.team_id].goals||(V.value[e.home_team.team_id].goals[te(a.data.plays[i].player_name)]={},V.value[e.home_team.team_id].goals[te(a.data.plays[i].player_name)].event=[],V.value[e.home_team.team_id].goals[te(a.data.plays[i].player_name)].name=te(a.data.plays[i].player_name)),V.value[e.home_team.team_id].goals[te(a.data.plays[i].player_name)].event.push(a.data.plays[i].minute)):"Autogol"==a.data.plays[i].category_name?(te(a.data.plays[i].player_name)in V.value[e.home_team.team_id].goals||(V.value[e.home_team.team_id].goals[te(a.data.plays[i].player_name)]={},V.value[e.home_team.team_id].goals[te(a.data.plays[i].player_name)].event=[],V.value[e.home_team.team_id].goals[te(a.data.plays[i].player_name)].name=te(a.data.plays[i].player_name)),V.value[e.home_team.team_id].goals[te(a.data.plays[i].player_name)].event.push(a.data.plays[i].minute)):(te(a.data.plays[i].player_name)in V.value[e.visiting_team.team_id].goals||(V.value[e.visiting_team.team_id].goals[te(a.data.plays[i].player_name)]={},V.value[e.visiting_team.team_id].goals[te(a.data.plays[i].player_name)].event=[],V.value[e.visiting_team.team_id].goals[te(a.data.plays[i].player_name)].name=te(a.data.plays[i].player_name)),V.value[e.visiting_team.team_id].goals[te(a.data.plays[i].player_name)].event.push(a.data.plays[i].minute)))}catch(t){return Promise.reject(t)}}function ie(e){g.value=!0,1!=e.is_live&&0!=e.game_status&&(4==e.game_status||Object.keys(e.minutes).length>0)?(I.value=1,V.value={plays:e.minutes,home_team:e.home_team,visiting_team:e.visiting_team}):(I.value=0,ae(e))}const se=t.computed(()=>{let e={};return u.value&&u.value.game_id&&(e={gameId:u.value.game_id,id:u.value.game_id,seasonId:u.value.season_id,regularSeasonId:u.value.regularSeasonId,matchday_name:u.value.matchday_name,status:u.value.game_status,score:u.value.score,game_status:u.value.game_status,dateTimeUTC:u.value.date_time_utc,homeTeam:u.value.home_team,awayTeam:u.value.visiting_team,is_live:u.value.is_live,minutes:u.value.minutes}),e});function oe(e){h.value=e.is_captured,v.value=e.is_female,w.value=0!==e.is_captured,p.value.id!==e.id&&(p.value=e,r.commit("gameGlobal/setTournamentType",e.tournament_type))}function le(){d&&clearInterval(d)}function ne(){x.value=[],u.value.is_live||4===u.value.game_status?x.value=[...E.value]:x.value=[...B.value],n.isWidget||((0===y.value.is_tactic_available||u.value.is_live||0===u.value.game_status)&&x.value.pop(),1!==u.value.has_tracking||u.value.is_live||4===u.value.game_status||x.value.push({componentName:"GSCPositining",name:"Posicionamiento",id:8})),W.value=x.value[0]}function re(e){e.gameSeasonId=u.value.season_id,e.gameRegularSeasonId=u.value.regularSeasonId,(e.auxwidget||!ve.value||ve.value.canPrivilegesTeamPlayVideos)&&((u.value.is_live||0===u.value.game_status||1===u.value.game_status)&&(e.gameIdsToFilter=[u.value.game_id]),e.isLiveAccumulated&&(e.gameIdsToFilter=null),!u.value.is_live&&0!==u.value.game_status||e.isLiveAccumulated||(e.liveGameConfig={gameId:u.value.game_id}),l("openmedia",e))}function de(e){l("onOpenProfile",e)}function ce(e){l("openProfileTeam",e)}function me(e){l("openProfilePlayer",e)}function pe(e){be(e),"Estadísticas"==e&&(q.value="Comparativa")}function ye(){q.value=""}function ge(e){y.value.id!==e.id&&(y.value=e,l("change-season-id",e.id))}t.watch(()=>u.value.game_id,function(e,t){r.commit("nextGeneral/updateShowLiveData",!0);const a=v.value?"Destacados":"Destacadas";x.value.forEach(e=>{e.name===a&&(e.name=v.value?"Destacadas":"Destacados")}),ae({game_id:u.value.game_id,home_team:u.value.home_team,visiting_team:u.value.visiting_team}),ne(),G.value+=1},{immediate:!0}),t.watch(()=>u.value.is_live,function(e,t){ne(),r.state.nextGeneral.gameForAnalysis.is_live!==e&&r.commit("nextGeneral/updateGameForAnalysis",{...r.state.nextGeneral.gameForAnalysis,is_live:u.value.is_live,game_status:u.value.game_status});if(e){const e=z();e.disconnected?A():e.connected&&L(`game.${u.value.game_id}.v2`),le(),d=setInterval(()=>{I.value=0,ae({game_id:u.value.game_id,home_team:u.value.home_team,visiting_team:u.value.visiting_team})},6e4)}else le(),D();e!==t&&(G.value+=1)},{immediate:!0}),t.watch(()=>r.state.nextGeneral.gameForAnalysis,()=>{r.commit("nextGeneral/updateIsSocketConnected",n.socket.connected)},{deep:!0,immediate:!0});const ue=t.computed(()=>x.value.reduce((e,t)=>(n.disabledSectionsIds.includes(t.id)||ve.value&&!ve.value.isVideoTabVisible&&2===t.id||n.clientPrivilegesBySeasons&&7===t.id||(w.value||5!==t.id&&6!==t.id)&&e.push(t.name),e),[]));function he(e){if(u.value.is_live||1===u.value.game_status||0===u.value.game_status){const t=e.playingAs.has(u.value.playingAs);return n.clientPrivilegesBySeasons.canPlayVideos&&t}{const t=fe.value.filter(t=>e.playingAs.has(t.playingAs));return n.clientPrivilegesBySeasons.canPlayVideos&&t.length>0}}const ve=t.computed(()=>{if(n.clientPrivilegesBySeasons){if(y.value&&u.value&&u.value.game_id){const e=n.clientPrivilegesBySeasons.seasonsAndPrivileges.get(y.value.id);if(e){if(_e(e.playingAs),(u.value.is_live||1===u.value.game_status||0===u.value.game_status)&&r.state.nextGeneral.showLiveData){const t=e.playingAs.has(u.value.playingAs);return{seasonAndPrivileges:e,canPrivilegesTeamPlayVideos:n.clientPrivilegesBySeasons.canPlayVideos&&t,isPrivilegesTeamOnly:!1,isPrivilegesTeamHome:u.value.home_team.team_id===e.teamId,homeTeamDetails:{canPlayVideos:t,team:u.value.home_team},awayTeamDetails:{canPlayVideos:t,team:u.value.visiting_team},isVideoTabVisible:he(e)}}{const t=u.value.home_team.team_id===e.teamId,a=fe.value.filter(t=>e.playingAs.has(t.playingAs));return{seasonAndPrivileges:e,canPrivilegesTeamPlayVideos:n.clientPrivilegesBySeasons.canPlayVideos&&a.length>0,isPrivilegesTeamOnly:!0,isPrivilegesTeamHome:t,homeTeamDetails:{canPlayVideos:n.clientPrivilegesBySeasons.canPlayVideos&&t&&a.length>0,team:u.value.home_team},awayTeamDetails:{canPlayVideos:n.clientPrivilegesBySeasons.canPlayVideos&&!t&&a.length>0,team:u.value.visiting_team},isVideoTabVisible:he(e)}}}_e(new Set)}return H}return null}),fe=t.computed(()=>{if(n.clientPrivilegesBySeasons){if(y.value){const e=n.clientPrivilegesBySeasons.seasonsAndPrivileges.get(y.value.id);if(e)return j.value.filter(t=>1===t.game_status&&e.playingAs.has(t.playingAs))}return[]}return[]});function _e(e){C.value=e}function be(e){if(r.commit("nextGeneral/updateShowLiveData",!0),null!=f.value&&(clearInterval(f.value),f.value=null),null!=_.value&&(clearInterval(_.value),_.value=null),null!=b.value&&(clearInterval(b.value),b.value=null),null!=T.value&&(clearInterval(T.value),T.value=null),S.value.length>0){for(let e of S.value)clearInterval(e);S.value=[]}n.isWidget?W.value=x.value.find(t=>t.name===e)||x.value[1]:W.value=x.value.find(t=>t.name===e)||x.value[0]}function Se(e){if(e.playingAs||(e.playingAs=U.value?e.home_team.team_id===U.value?1:2:0),null!=f.value&&(clearInterval(f.value),f.value=null),null!=_.value&&(clearInterval(_.value),_.value=null),null!=b.value&&(clearInterval(b.value),b.value=null),null!=T.value&&(clearInterval(T.value),T.value=null),S.value.length>0){for(let e of S.value)clearInterval(e);S.value=[]}u.value=e,e.is_live&&4===e.game_status?A():D()}function Te(e){j.value=e.map(e=>{const t={...e};return U.value&&(t.playingAs=t.home_team.team_id===U.value?1:2),t})}return t.watch(ue,()=>{!ve.value||ve.value.canPrivilegesTeamPlayVideos||2!==W.value.id&&7!==W.value.id&&8!==W.value.id||be("Resumen")},{deep:!0,immediate:!0}),t.onMounted(()=>{M=new ResizeObserver(e=>{for(const t of e)R.value=t.contentRect.width}),M.observe(O.value),t.nextTick(()=>{n.isSynchronization&&be("Táctica Fija")})}),t.onBeforeUnmount(()=>{if(M&&M.disconnect(),null!=f.value&&(clearInterval(f.value),f.value=null),null!=_.value&&(clearInterval(_.value),_.value=null),null!=b.value&&(clearInterval(b.value),b.value=null),null!=T.value&&(clearInterval(T.value),T.value=null),S.value.length>0){for(let e of S.value)clearInterval(e);S.value=[]}$()}),(o,l)=>(t.openBlock(),t.createElementBlock("div",{class:"game-data",ref_key:"gamedata",ref:O},[t.createElementVNode("div",cg,[t.withDirectives(t.createElementVNode("div",mg,[t.createVNode(t.unref(a.GSCTournamentSelect),{"current-season-id":e.currentSeasonId,"tournaments-ids-to-include":e.tournamentsIdsToInclude,"api-url":e.tournamentsApiUrl,"is-clubes-active":e.isClubes,onInput:oe,onChangeTournaments:oe},null,8,["current-season-id","tournaments-ids-to-include","api-url","is-clubes-active"]),t.createVNode(t.unref(i.GSCSeasonSelect),{"current-season-id":e.currentSeasonId,seasons:p.value.seasons,onInput:ge},null,8,["current-season-id","seasons"])],512),[[t.vShow,e.areTournamentAndSeasonSelectsVisible]]),t.createElementVNode("div",pg,[t.createVNode(t.unref(s.GSCCalendarByGame),{"plays-live":V.value,"info-live":P.value,token:N.value,is_captured:h.value,"await-for-seasons":"",seasons:J.value,"is-pagination-visible":!1,"are-games-carousel-type":"","default-game-id":e.defaultGameId,"sort-calendar":e.sortCalendar,"is-team-game-per-page":e.isTeamGamePerPage,"client-privileges-team-id":U.value,"only-games-team-id":U.value,"tournament-type":t.unref(r).state.gameGlobal.tournamentType,onChangeGameCarousel:Se,onOpenModalEvent:ie,onChangeGamesByClientPrivileges:Te},null,8,["plays-live","info-live","token","is_captured","seasons","default-game-id","sort-calendar","is-team-game-per-page","client-privileges-team-id","only-games-team-id","tournament-type"])])]),g.value?(t.openBlock(),t.createBlock(nl,{key:0,width:R.value,onCloseModalEventsLive:Z,plays:V.value,game:u.value,type:I.value},null,8,["width","plays","game","type"])):t.createCommentVNode("",!0),t.createElementVNode("div",yg,[u.value&&"live_stats"in u.value&&0==u.value.live_stats&&0==u.value.game_status?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[R.value>500?(t.openBlock(),t.createElementBlock("div",gg,ug)):(t.openBlock(),t.createElementBlock("div",hg,vg))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("div",fg,[t.createElementVNode("div",_g,[t.createVNode(t.unref(k.GscSwitchComponent),{type:2,buttons:ue.value,"font-family":"Poppins-Regular","font-size":"16px",width:R.value<400||R.value<700?"max-content":R.value<840||R.value<1050?"155px":"165px","selected-option":W.value.name,borderWidth:"1px",arrow:!1,height:"30px",onInput:be},null,8,["buttons","width","selected-option"])])]),se.value&&se.value.gameId?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(W.value.componentName),{key:G.value,game:se.value,"is-widget":e.isWidget,"team-widget":e.teamWidget,onIntervalidpossesion:ee,onIntervalidhighlive:K,onIntervalidtops:Y,onIntervalidgs:Q,subsection:t.unref(q),seasonSelected:y.value,tournamentSelected:p.value,showLineups:w.value,socket:e.socket,"time-live-prominent-data":3e4,"time-live-highlights-prominent-and-video":3e4,"time-live-possesion":3e4,"time-live-video-goals":3e4,"time-live-video-best-plays":3e4,"time-live-video-this-game":3e4,"time-live-video-specific-plays":3e4,"time-live-comparative-best-players":3e4,"time-live-comparative-avanced":6e4,is_captured:h.value,"is-tactic-visible":!!y.value.show_tactic,"is-synchronization":e.isSynchronization,"can-play-videos":!ve.value||ve.value.canPrivilegesTeamPlayVideos,"video-privileges-playing-as":C.value,"client-privileges-team-id":U.value,"play-videos-privileges":ve.value,token:N.value,"game-events-interval-minutes":e.gameEventsIntervalMinutes,"volumetric-field-interval-minutes":e.volumetricFieldIntervalMinutes,"chalkboard-interval-minutes":e.chalkboardIntervalMinutes,onResetSubsection:ye,onOpenmedia:re,onOnOpenProfile:de,onOpenProfileTeam:ce,onOpenProfilePlayer:me,onChangeToTab:pe,onOpenMediaPlayer:re,onIntervalid:X},null,40,["game","is-widget","team-widget","subsection","seasonSelected","tournamentSelected","showLineups","socket","is_captured","is-tactic-visible","is-synchronization","can-play-videos","video-privileges-playing-as","client-privileges-team-id","play-videos-privileges","token","game-events-interval-minutes","volumetric-field-interval-minutes","chalkboard-interval-minutes"])):t.createCommentVNode("",!0)],64))])],512))}}),[["__scopeId","data-v-6f13fa5e"]]);async function Tg({url:e,options:t={},retries:a=3}){return await m.get(e,t).then(e=>e).catch(i=>a>0?Tg({url:e,options:t,retries:a-1}):i)}async function wg({seasonId:e},t=!0){try{const t=await fetch(`https://golstats-microservices.s3-us-west-2.amazonaws.com/statsLeagueBySeason-${e}.json`);return(await t.json()).data}catch(a){if(t)return wg({seasonId:e},!1);throw new Error(a)}}function kg(e,t,a,i,s){return 2===t.length&&3===a.length&&6===i.length?e:e.filter(e=>t.includes(e[s.playingAs])&&a.includes(e[s.matchResult])&&i.includes(e[s.section]))}async function Cg({seasonId:e}){try{const t=`https://8tvo5bp9ai.execute-api.us-west-2.amazonaws.com/prod/gamesBySeason/${e}`;return(await Tg({url:t})).data}catch(t){return Promise.reject(t)}}const Vg=["categoryId","matchLapse","section","matchResult","playingAs","total"];let Pg=null;function Ig(){return Pg||(Pg=ve(Vg)),Pg}async function Ng({seasonId:e,teamId:t}){try{return await Tg({url:`https://a4dcb6avog.execute-api.us-west-2.amazonaws.com/prod/v2/statisticsTeamBySeason/${e}/${t}`})}catch(a){return Promise.reject(a)}}const Eg={leagueGeneral:{namespaced:!0,state:{seasonPlays:[],currentSeasonGames:[],currentSeasonTeams:[],selectedRound:1,booleanAreLiveGames:!1,booleanIsLiveGamesModalOpen:!1},getters:{seasonPlays:e=>e.seasonPlays,filteredPlaysStack:(e,t,a,i)=>function(e,t,a,i,s,o,l=!1){const n=a.map(e=>1===e?2:2===e?1:3);return e.filter(e=>{const r=!(!o||!e[s.teamId])&&e[s.teamId]!==o,d=1===t?2:1;return(l||i.includes(e[s.gameId]))&&(!t||(r?d:t)===e[s.playingAs])&&(a.includes(e[s.matchResult])&&e[s.teamId]===o||n.includes(e[s.matchResult])&&e[s.teamId]!==o)})}(e.seasonPlays,i["filterGeneral/getPlayingAs"],i["filterGeneral/getResults"],i["filterGeneral/getSelectedGamesIds"],Ig(),i["teamsGeneral/team"].team_id,!0),nextGamesSchedule(e){const t=e.currentSeasonGames.reduce((t,a)=>{const i={...a};return i.home_team=e.currentSeasonTeams.find(e=>e.team_id===a.home_team),i.visiting_team=e.currentSeasonTeams.find(e=>e.team_id===a.visiting_team),t[a.matchday_abbreviation]?t[a.matchday_abbreviation][3===a.game_status?"canceled":a.date]?t[a.matchday_abbreviation][3===a.game_status?"canceled":a.date].push(i):t[a.matchday_abbreviation][3===a.game_status?"canceled":a.date]=[i]:t[a.matchday_abbreviation]={[3===a.game_status?"canceled":a.date]:[i]},t},{});for(let[a,i]of Object.entries(t))t[a]=Object.entries(i).map(([e,t])=>({date:e,games:t})),t[a].sort((e,t)=>e.date<t.date?-1:e.date>t.date?1:0);return t},matchdaysDates(e,t){let a=[];if(t.nextGamesSchedule){let e=Object.keys(t.nextGamesSchedule);for(let i of e){let e=Number(i.replace("M","")),s=t.nextGamesSchedule[i].map(t=>({matchday:e,date:new Date(t.date)}));a=a.concat(s)}}return a},closestMatchDay(e,t){let a=new Date,i=0,s=-new Date(0,0,0).valueOf(),o=t.matchdaysDates,l=o.length;for(let n=0;n<o.length;n++)i=Math.abs(o[n].date-a),i<s&&(l=n,s=i);return o[l]?o[l].matchday:1}},mutations:{setBooleanIsLiveGamesModalOpen(e,t){e.booleanIsLiveGamesModalOpen=t},setBooleanAreLiveGames(e,t){e.booleanAreLiveGames=t},updateSeasonPlays(e,t){e.seasonPlays=t},updateCurrentSeasonTeams(e,t){e.currentSeasonTeams=t},updateCurrentSeasonGames(e,t){e.currentSeasonGames=t},updateSelectedRound(e,t){e.selectedRound=t}},actions:{async getSeasonPlays({commit:e,rootGetters:t},a=!1){try{const i=await wg({seasonId:t["filterGeneral/getSeasonId"]});if(a)return i;e("updateSeasonPlays",i)}catch(i){return Promise.reject(i)}},async getCurrentSeasonGames({commit:e,rootGetters:t}){try{e("updateCurrentSeasonGames",await Cg({seasonId:t["loginGeneral/seasonId"]}))}catch(a){return Promise.reject(a)}},async getCurrentSeasonTeams({commit:e,rootGetters:t}){try{e("updateCurrentSeasonTeams",(await async function(e){try{const t=`https://d2oco6mqmc.execute-api.us-west-2.amazonaws.com/prod/teamsBySeason/${e.seasonId}`;return(await Tg({url:t})).data}catch(t){return Promise.reject(t)}}({seasonId:t["loginGeneral/seasonId"]})).teams)}catch(a){return Promise.reject(a)}},async isDataFilled({state:e,dispatch:t,commit:a}){try{if(e.currentSeasonGames.length>0&&e.currentSeasonTeams.length>0)return a("setIsSectionLoading",!1,{root:!0}),!0;const i=[void 0,void 0];return 0===e.currentSeasonGames.length&&(i[0]=t("getCurrentSeasonGames")),0===e.currentSeasonTeams.length&&(i[1]=t("getCurrentSeasonTeams")),await Promise.all(i),!1}catch(i){throw new Error(i)}}}}};const xg=["categoryId","teamId","matchResult","playingAs","matchLapse","section","total"];let Bg=null;class Fg{constructor(){N(this,"maximumLiveSection",1),N(this,"accomplished",{totalPostGame:0,avgPostGame:0,avgPreGame:0,totalLive:0,avgPostGameTrendLive:{accumulated:this.getZeroTotalsTrendSections(),sections:this.getZeroTotalsTrendSections()},totalsLiveTrendLive:{accumulated:this.getZeroTotalsTrendSections(),sections:this.getZeroTotalsTrendSections()},ranking:null,leader:{},arrayRankings:[]}),N(this,"received",{totalPostGame:0,avgPostGame:0,totalLive:0,avgPostGameTrendLive:{accumulated:this.getZeroTotalsTrendSections(),sections:this.getZeroTotalsTrendSections()},totalsLiveTrendLive:{accumulated:this.getZeroTotalsTrendSections(),sections:this.getZeroTotalsTrendSections()},ranking:null,leader:{}})}setMaximumLiveSection(e){e>this.maximumLiveSection&&(this.maximumLiveSection=e)}getZeroTotalsTrendSections(){return[0,0,0,0,0,0]}resetTotals(){this.accomplished.totalPostGame=0,this.accomplished.avgPostGame=0,this.received.totalPostGame=0,this.received.avgPostGame=0,this.accomplished.avgPostGameTrendLive.sections=this.getZeroTotalsTrendSections(),this.accomplished.avgPostGameTrendLive.accumulated=this.getZeroTotalsTrendSections(),this.received.avgPostGameTrendLive.sections=this.getZeroTotalsTrendSections(),this.received.avgPostGameTrendLive.accumulated=this.getZeroTotalsTrendSections()}resetTotalsLive(){this.accomplished.totalLive=0,this.received.totalLive=0,this.accomplished.totalsLiveTrendLive.sections=this.getZeroTotalsTrendSections(),this.accomplished.totalsLiveTrendLive.accumulated=this.getZeroTotalsTrendSections(),this.received.totalsLiveTrendLive.sections=this.getZeroTotalsTrendSections(),this.received.totalsLiveTrendLive.accumulated=this.getZeroTotalsTrendSections()}increaseAccomplishedByOne(e,t,a){a&&(this.setMaximumLiveSection(e),this.accomplished.totalLive+=t,this.accomplished.totalsLiveTrendLive.sections[e-1]+=t,this.increaseTrendLiveAccumulatedByOne(this.accomplished.totalsLiveTrendLive,e,t)),this.accomplished.totalPostGame+=t,this.accomplished.avgPostGameTrendLive.sections[e-1]+=t,this.increaseTrendLiveAccumulatedByOne(this.accomplished.avgPostGameTrendLive,e,t)}increaseReceivedByOne(e,t,a){a&&(this.setMaximumLiveSection(e),this.received.totalLive+=t,this.received.totalsLiveTrendLive.sections[e-1]+=t,this.increaseTrendLiveAccumulatedByOne(this.received.totalsLiveTrendLive,e,t)),this.received.totalPostGame+=t,this.received.avgPostGameTrendLive.sections[e-1]+=t,this.increaseTrendLiveAccumulatedByOne(this.received.avgPostGameTrendLive,e,t)}increaseTrendLiveAccumulatedByOne(e,t,a){for(let i=t-1;i<e.accumulated.length;i++)e.accumulated[i]+=a}decreaseAccomplishedLiveByOne(e,t){this.accomplished.totalLive>0&&(this.accomplished.totalLive-=t),this.accomplished.totalsLiveTrendLive.sections[e-1]>0&&(this.accomplished.totalsLiveTrendLive.sections[e-1]-=t,this.decreaseTotalsLiveTrendLiveAccumulatedByOne(this.accomplished.totalsLiveTrendLive,e,t))}decreaseReceivedLiveByOne(e,t){this.received.totalLive>0&&(this.received.totalLive-=t),this.received.totalsLiveTrendLive.sections[e-1]>0&&(this.received.totalsLiveTrendLive.sections[e-1]-=t,this.decreaseTotalsLiveTrendLiveAccumulatedByOne(this.received.totalsLiveTrendLive,e,t))}decreaseTotalsLiveTrendLiveAccumulatedByOne(e,t,a){for(let i=e.accumulated.length-1;i>=t-1;i--)e.accumulated[i]-=a}calculateAvg(e){e&&(this.accomplished.avgPostGame=this.accomplished.totalPostGame/e,this.received.avgPostGame=this.received.totalPostGame/e,this.accomplished.avgPostGameTrendLive.sections=this.getAvgPostGameTrendLiveAvg(this.accomplished.avgPostGameTrendLive.sections,e),this.accomplished.avgPostGameTrendLive.accumulated=this.getAvgPostGameTrendLiveAvg(this.accomplished.avgPostGameTrendLive.accumulated,e),this.received.avgPostGameTrendLive.sections=this.getAvgPostGameTrendLiveAvg(this.received.avgPostGameTrendLive.sections,e),this.received.avgPostGameTrendLive.accumulated=this.getAvgPostGameTrendLiveAvg(this.received.avgPostGameTrendLive.accumulated,e))}getAvgPostGameTrendLiveAvg(e,t){return e.map(e=>e/t)}calculateRanking(e,t,a,i,s,o,l,n){let r=[];if(3===i&&e&&e.length&&(2!==a.playingAs.length||3!==a.matchResult.length)){r=Array.from(e.reduce((e,a)=>{const i=1===a[t.playingAs],s=i?"1":"2",o=e.get(a[t.gameId]);if(o)o[s]?o[s].arrayPlays.push(a):o[s]={numberTeamId:a[t.teamId],arrayPlays:[a]};else{const s={numberMatchResult:a[t.matchResult]};i&&(s[1]={numberTeamId:a[t.teamId],arrayPlays:[a]}),e.set(a[t.gameId],s)}return e},new Map).values()).reduce((e,t)=>{const i=2===a.playingAs.length?"both":a.playingAs[0].toString();return("both"===i&&(t[1].numberTeamId===a.teamId||t[2].numberTeamId===a.teamId)||"both"!==i&&t[i].numberTeamId===a.teamId)&&a.matchResult.includes(t.numberMatchResult)&&e.push(...t[1].arrayPlays,...t[2].arrayPlays),e},[]).filter(e=>a.sections.includes(e[t.section]))}else r=e?[...e]:[],l&&e&&(r=e.filter(e=>a.playingAs.includes(e[t.playingAs])&&a.matchResult.includes(e[t.matchResult])&&a.sections.includes(e[t.section])));this.setTeamRanking(r,i,t,a.teamId,o,"accomplished",n)}setTeamRanking(e,t,a,i,s,o,l){let n=null,r=null;3===t&&(n=new Map,r={},e.forEach(e=>{const t=n.get(e[a.gameId]);t?t[e[a.teamId.toString()]]?t[e[a.teamId.toString()]]+=e[a.total]:t[e[a.teamId.toString()]]=e[a.total]:n.set(e[a.gameId],{[e[a.teamId.toString()]]:e[a.total]})}),Array.from(n.values()).forEach(e=>{const[t,a]=Object.keys(e).map(e=>e),i=e[t]+e[a];this.addPassesAvgByTeam(r,t,i?e[t]/i:0),this.addPassesAvgByTeam(r,a,i?e[a]/i:0)}));const d=s.sort((e,t)=>e.team_id-t.team_id).map(i=>{if(3===t){const e=r[i.team_id.toString()];return{teamId:i.team_id,points:e?e.numberTotalPassesAvg/e.numberGamesCount:0,total:e?e.numberTotalPassesAvg:0}}{const s=e.reduce((e,s)=>s[a.teamId]===i.team_id&&t===s[a.categoryId]?e+s[a.total]:e,0);return{teamId:i.team_id,points:i[`${l}FilterGames`]?s/i[`${l}FilterGames`]:0,total:s}}}).sort((e,t)=>t.points-e.points);this.accomplished.arrayRankings=d;const c=d.findIndex(e=>e.teamId===i);3===t&&(this.accomplished.avgPreGame=d[c].points),this[o].ranking=c+1,this[o].leader=d[0]}addPassesAvgByTeam(e,t,a){e[t]?(e[t].numberGamesCount+=1,e[t].numberTotalPassesAvg+=a):e[t]={numberGamesCount:1,numberTotalPassesAvg:a}}}class Gg{constructor(e,t,a,i,s,o,l,n,r,d,c=!0){N(this,"id",""),N(this,"generalId",0),N(this,"name",""),N(this,"names",{"0-0":"","1-1":"","0-1":"","1-0":""}),N(this,"mentions",{"0-0":"","1-1":"","0-1":"","1-0":""}),N(this,"accomplishedCategoryIds",[]),N(this,"receivedCategoryIds",[]),N(this,"generalCategoriesIds",{accomplished:0,received:0}),N(this,"specialMention",""),N(this,"homeTeam",new Fg),N(this,"visitingTeam",new Fg),N(this,"isLeagueDataCalculated",!1),N(this,"leagueAccomplishedMax",0),N(this,"leagueReceivedMax",0),N(this,"leagueAccomplishedAvg",0),N(this,"leagueReceivedAvg",0),N(this,"leagueAccomplishedAccumulator",0),N(this,"leagueReceivedAccumulator",0),N(this,"homeTeamType","homeTeam"),N(this,"visitingTeamType","visitingTeam"),N(this,"betOnly",!1),N(this,"isPercent",!1),this.id=`${a.accomplished}-${a.received}`,this.accomplishedCategoryIds=e||[],this.receivedCategoryIds=t||[],this.generalCategoriesIds=a||{accomplished:0,received:0},this.name=i,this.names["0-0"]=i||"",this.names["1-1"]=s||"",this.names["0-1"]=o||"",this.names["1-0"]=l||"",this.generalId=n||0,this.betOnly=r||!1,this.isPercent=d||!1,this.isVisible=c}addLeaguePlays(e,t,a){0!==e.length&&a&&!this.isLeagueDataCalculated&&(e.forEach(e=>{this.isAccomplishedLeaguePlay(e[t.categoryId])&&(this.leagueAccomplishedAccumulator+=e[t.total]),this.isReceivedLeaguePlay(e[t.categoryId])&&(this.leagueReceivedAccumulator+=e[t.total])}),this.leagueAccomplishedAvg=(this.leagueAccomplishedAccumulator/(2*a)).toFixed(2),this.leagueAccomplishedMax=Math.round(1.5*this.leagueAccomplishedAvg),this.leagueReceivedAvg=(this.leagueReceivedAccumulator/(2*a)).toFixed(2),this.leagueReceivedMax=Math.round(1.5*this.leagueReceivedAvg),this.isLeagueDataCalculated=!0)}addSpecialMention(e,t,a){let i="-";for(const[s,o]of Object.entries(this.generalCategoriesIds))e===o&&(i=`${"accomplished"===s?"0":"1"}${i}`),t===o&&(i=`${i}${"accomplished"===s?"0":"1"}`);3===i.length&&(this.mentions[i]=a)}resetMentions(){this.mentions={"0-0":"","1-1":"","0-1":"","1-0":""}}addTeamPlays(e,t,a,i,s){a&&s&&(e===this.homeTeamType||e===this.visitingTeamType)&&(a.forEach(t=>{this.isAccomplishedPlay(t[i.categoryId])?this[e].increaseAccomplishedByOne(t[i.section],t[i.total]):this.isReceivedPlay(t[i.categoryId])&&this[e].increaseReceivedByOne(t[i.section],t[i.total])}),this[e].calculateAvg(s))}addLivePlay(e,t,a,i,s=!1,o=!1){e!==this.homeTeamType&&e!==this.visitingTeamType||a[i.categoryId].includes(this.generalCategoriesIds.accomplished)&&this[e].increaseAccomplishedByOne(a[i.section],a[i.total],!0)}subtractLivePlay(e,t,a,i,s){e!==this.homeTeamType&&e!==this.visitingTeamType||(this.isAccomplishedPlay(a[i.categoryId])&&!s?this[e].decreaseAccomplishedLiveByOne(a[i.section],a[i.total]):this.isReceivedPlay(a[i.categoryId])&&s&&this[e].decreaseReceivedLiveByOne(a[i.section],a[i.total]))}isAccomplishedLeaguePlay(e){const t=40===this.receivedCategoryIds[0]?this.receivedCategoryIds:this.accomplishedCategoryIds;return Boolean(t.find(t=>e===t||`${e}_r`===t))}isReceivedLeaguePlay(e){return Boolean(this.receivedCategoryIds.find(t=>e===t))}isAccomplishedPlay(e){return this.generalCategoriesIds.accomplished===e}isReceivedPlay(e){return this.generalCategoriesIds.received===e}calcRankingLeague(e,t,a,i,s,o=!1){this[this.homeTeamType].calculateRanking(e,t,a,this.generalCategoriesIds.accomplished,this.generalCategoriesIds.received,s,o,this.homeTeamType),this[this.visitingTeamType].calculateRanking(e,t,i,this.generalCategoriesIds.accomplished,this.generalCategoriesIds.received,s,o,this.visitingTeamType)}resetData(){this.homeTeam=new Fg,this.visitingTeam=new Fg,this.isLeagueDataCalculated=!1,this.leagueAccomplishedMax=0,this.leagueReceivedMax=0,this.leagueAccomplishedAvg=0,this.leagueReceivedAvg=0,this.leagueAccomplishedAccumulator=0,this.leagueReceivedAccumulator=0}isInGeneralCategory(e){return this.generalCategoriesIds.accomplished===e||this.generalCategoriesIds.received===e}}const zg={general:{name:"General",priority:1,parentInfo:{parentAnalysis:[1],analysisTypeBlocks:[1]},subcategories:{goals:new Gg([12,55,"35_r","54_r"],null,{accomplished:1,received:0},"Goles","Goles recibidos","Goles realizados / recibidos","Goles recibidos / realizados",1),shotToGoal:new Gg([91,95,158,167,176,343,330,333,423],null,{accomplished:2,received:0},"Remates a destino","","","",1),possession:new Gg([2,3,20,21],null,{accomplished:3,received:0},"Posesión","","","",1,!1,!0,!1),yellowCards:new Gg([14,52],null,{accomplished:4,received:0},"Tarjetas amarillas","","","",1),redCards:new Gg([15,53],null,{accomplished:5,received:0},"Tarjetas rojas","","","",1),centerCrosses:new Gg([13,25],null,{accomplished:6,received:0},"Centros totales","","","",1)}},offensive:{name:"Ofensivo",priority:2,parentInfo:{parentAnalysis:[1],analysisTypeBlocks:[1]},subcategories:{shotsOnGoal:new Gg([19],null,{accomplished:7,received:0},"Tiros a gol","","","",1),shotsOnGoalDestination:new Gg([91,95],null,{accomplished:8,received:0},"Tiros a gol destino","","","",1),shotToGoal:new Gg([91,95,158,167,176,343,330,333,423],null,{accomplished:2,received:0},"Remates a destino","","","",1),ballsWonOpponentPenaltyBox:new Gg([11],null,{accomplished:10,received:0},"Balones ganados área rival","","","",1),centersFromRight:new Gg([25],null,{accomplished:11,received:0},"Centros por derecha","","","",1),centersFromLeft:new Gg([13],null,{accomplished:12,received:0},"Centros por izquierda","","","",1),success1VS1:new Gg([4],null,{accomplished:13,received:0},"Enfrentamientos ofensivos exitosos","","","",1),unsuccess1VS1:new Gg([208],null,{accomplished:14,received:0},"Enfrentamientos ofensivos no exitosos","","","",1)}},defensive:{name:"Defensivo",priority:3,parentInfo:{parentAnalysis:[1],analysisTypeBlocks:[1]},subcategories:{saves:new Gg([39],null,{accomplished:15,received:0},"Atajadas","","","",1),ballsWonOwnPenaltyBox:new Gg([23],null,{accomplished:16,received:0},"Balones ganados área propia","","","",1),success1VS1:new Gg([5],null,{accomplished:17,received:0},"Enfrentamientos defensivos exitosos","","","",1),unsuccess1VS1:new Gg([209],null,{accomplished:18,received:0},"Enfrentamientos defensivos no exitosos","","","",1),aerialGame:new Gg([24],null,{accomplished:19,received:0},"Juego aéreo resto del campo","","","",1),clearances:new Gg([34],null,{accomplished:20,received:0},"Rechaces","","","",1)}},possession:{name:"Posesión",priority:4,parentInfo:{parentAnalysis:[1],analysisTypeBlocks:[1]},subcategories:{totalPasses:new Gg([2,3,20,21],null,{accomplished:21,received:0},"Pases totales","","","",1),successPasses:new Gg([2,20],null,{accomplished:22,received:0},"Pases acertados","","","",1),successPassesRivalHalf:new Gg([20],null,{accomplished:23,received:0},"Pases acertados en cancha rival","","","",1),ballsRecoveredInChallenge:new Gg([483],null,{accomplished:24,received:0},"Balones recuperados en disputa","","","",1),ballsRecoveredWithoutChallenge:new Gg([484],null,{accomplished:25,received:0},"Balones recuperados sin disputa","","","",1),ballsLostInChallenge:new Gg([494],null,{accomplished:26,received:0},"Balones perdidos en disputa","","","",1),ballsLostWithoutChallenge:new Gg([495],null,{accomplished:27,received:0},"Balones perdidos sin disputa","","","",1)}},stoppedBall:{name:"Balón parado",priority:5,parentInfo:{parentAnalysis:[1],analysisTypeBlocks:[1]},subcategories:{freeKick44:new Gg([155,164,173,362,371,380],null,{accomplished:28,received:0},"Tiros libres 4/4","","","",1),freeKick34:new Gg([150,357],null,{accomplished:29,received:0},"Tiros libres 3/4","","","",1),freeKickOwnHalf:new Gg([149,356],null,{accomplished:30,received:0},"Tiros libres cancha propia","","","",1),cornerFromRight:new Gg([32],null,{accomplished:31,received:0},"Tiros de esquina por derecha","","","",1),cornerFromLeft:new Gg([31],null,{accomplished:32,received:0},"Tiros de esquina por izquierda","","","",1),goalKick:new Gg([264,28],null,{accomplished:33,received:0},"Saques de meta","","","",1)}},penalties:{name:"Infracciones",priority:6,parentInfo:{parentAnalysis:[1],analysisTypeBlocks:[1]},subcategories:{totalFouls:new Gg([17,50],null,{accomplished:34,received:0},"Faltas totales","","","",1),foulOwnGoal:new Gg([348,478],null,{accomplished:35,received:0},"Faltas cerca de su propia portería","","","",1),fieldFouls:new Gg([349,350,479,480],null,{accomplished:36,received:0},"Faltas resto del campo","","","",1),penaltyKick:new Gg([461,481],null,{accomplished:37,received:0},"Penales cometidos","","","",1),offside:new Gg([33],null,{accomplished:38,received:0},"Fueras de lugar","","","",1)}}},Ag=[{parentAnalysis:[1,2,3],value:0,text:"Realizado",block:1},{parentAnalysis:[1,2,3],value:1,text:"Recibido",block:1},{parentAnalysis:[1],value:0,text:"Posesión",block:2},{parentAnalysis:[1,2],value:0,text:"Origen de gol realizado",block:3},{parentAnalysis:[1,2],value:1,text:"Origen de gol recibido",block:3}],Dg=["teamId","categoryId","matchlapse","section","matchResult","playingAs","total","gameId"];let Lg=null;const $g=["playId","gameId","teamId","playerId","momentOfPlay","categoryId","categoryType","matchLapse","section","matchResult","playingAs","total","coordinate1X","coordinate1Y","coordinate2X","coordinate2Y","coordinate3X","coordinate3Y"];let Mg=null;function Og(e,t,a){return[a.get(e[t.categoryId])||[],e[t.teamId],e[t.matchResult],e[t.playingAs],e[t.matchLapse],e[t.section],e[t.total]]}function Rg(e){return[[1,1,e.local.win],[1,2,e.local.lose],[1,3,e.local.draw],[2,1,e.visit.win],[2,2,e.visit.lose],[2,3,e.visit.draw]]}function Wg(e,t,a){let i=[...t];return 2===e[a.categoryId]&&(i[0]=14),20===e[a.categoryId]&&(i[0]=15),[14,15].includes(i[0])?i:null}const jg=z(),qg=[{name:"Liga MX",id:1},{name:"Liga MX Femenil",id:1001},{name:"Liga Expansión MX",id:1071}],Hg={nextGeneral:{namespaced:!0,state:{seasonId:0,pastSeasonId:0,usePastSeasonId:!1,isSocketConnected:!1,indexesLP:Ig(),indexesTSP:(Bg||(Bg=ve(xg)),Bg),indexesLS:(Lg||(Lg=ve(Dg)),Lg),indexesTLP:(Mg||(Mg=ve($g)),Mg),nextGamesDataStructure:zg,currentSeasonGames:[],currentSeasonTeams:[],gameForAnalysis:{},showPostMatch:!1,homeResultGame:null,awayResultGame:null,selectedAnalysis:{},selectedStatisticTypeBlock:1,gameId:null,game:{},games:[],homeTeamPlays:[],visitingTeamPlays:[],currentSeasonPlays:[],livePlays:new Map,totalSeasonFinishedGames:0,totalHomeTeamFinishedGames:0,totalVisitingTeamFinishedGames:0,homeGames:[],homeTeamInfo:{},awayTeamInfo:{},visitingGames:[],idAssetSelected:1,isLive:!1,menuOptionActive:"",showLiveData:!0,showAdvanceFilter:!1,homeTeamFilter:{teamId:0,statistics:0,playingAs:[],matchResult:[],sections:[],requiresPlaysFiltering:!0},visitingTeamFilter:{teamId:0,statistics:0,playingAs:[],matchResult:[],sections:[],requiresPlaysFiltering:!0},oldSeasonId:0,statistics:[],isRankingCalculating:!0,categoriesMap:new Map,defaultFilter:null,filterAux:null,betSubcategories:[],betDescription:{},regularSeasonName:"",betSubcategoriesObjects:[],currentTournamentName:"",toBackRouteName:"home"},getters:{betSubcategoriesIds:e=>e.betSubcategories.map(e=>e.id),showPostMatchData:e=>e.showPostMatch,getHomeResultGame:e=>e.homeResultGame,getAwayResultGame:e=>e.awayResultGame,getSeasonId:e=>e.seasonId,getGameForAnalysis:e=>e.gameForAnalysis,isLive:e=>e.isLive,showLive:e=>4===e.gameForAnalysis.game_status&&e.gameForAnalysis.is_live,menuOptionActive:e=>e.menuOptionActive,showLiveData:e=>e.showLiveData,showAdvanceFilter:e=>e.showAdvanceFilter,idAssetSelected:e=>e.idAssetSelected,gameId:e=>e.gameId,game:e=>e.game,homeTeam:e=>e.homeTeamInfo,visitingTeam:e=>e.awayTeamInfo,rankingData:e=>e.statistics,homeTeamStatisticsType:e=>e.homeTeamFilter.statistics?"received":"accomplished",visitingTeamStatisticsType:e=>e.visitingTeamFilter.statistics?"received":"accomplished",subcategoryName:e=>`${e.homeTeamFilter.statistics}-${e.visitingTeamFilter.statistics}`,statisticsTypes:e=>Ag.filter(t=>t.parentAnalysis.includes(e.selectedAnalysis.id)),homeTeamFilteredPlays(e){if(e.homeTeamFilter.requiresPlaysFiltering){return kg(e.homeTeamPlays,e.homeTeamFilter.playingAs,e.homeTeamFilter.matchResult,e.homeTeamFilter.sections,e.indexesTSP)}},visitingTeamFilteredPlays(e){if(e.visitingTeamFilter.requiresPlaysFiltering){return kg(e.visitingTeamPlays,e.visitingTeamFilter.playingAs,e.visitingTeamFilter.matchResult,e.visitingTeamFilter.sections,e.indexesTSP)}},currentSeasonTeamsIds:e=>e.currentSeasonTeams.map(e=>e.team_id),canFilledStructure:e=>e.homeTeamFilter.requiresPlaysFiltering||e.visitingTeamFilter.requiresPlaysFiltering,totalFilteredHomeGames:e=>e.homeGames.filter(t=>e.homeTeamFilter.playingAs.includes(t[0])).filter(t=>e.homeTeamFilter.matchResult.includes(t[1])).reduce((e,t)=>e+t[2],0),totalFilteredVisitingGames:e=>e.visitingGames.filter(t=>e.visitingTeamFilter.playingAs.includes(t[0])).filter(t=>e.visitingTeamFilter.matchResult.includes(t[1])).reduce((e,t)=>e+t[2],0),filledDataStructure(e,t){if(e.currentSeasonPlays)for(const a of Object.values(e.nextGamesDataStructure))for(const i of Object.values(a.subcategories))e.homeTeamFilter.requiresPlaysFiltering&&i.homeTeam.resetTotals(),e.visitingTeamFilter.requiresPlaysFiltering&&i.visitingTeam.resetTotals(),i.addLeaguePlays(e.currentSeasonPlays,e.indexesLP,e.totalSeasonFinishedGames),i.addTeamPlays(i.homeTeamType,e.gameForAnalysis.home_team,t.homeTeamFilteredPlays,e.indexesTSP,e.showPostMatch?1:t.totalFilteredHomeGames),i.addTeamPlays(i.visitingTeamType,e.gameForAnalysis.visiting_team,t.visitingTeamFilteredPlays,e.indexesTSP,e.showPostMatch?1:t.totalFilteredVisitingGames);return e.nextGamesDataStructure},arrayFilledDataSortedByPriority:(e,t)=>Object.values(t.filledDataStructure).sort((e,t)=>e.priority-t.priority),statisticData(e,t){for(const a of Object.values(t.filledDataStructure))if(a.parentInfo.parentAnalysis.includes(e.selectedAnalysis.id)&&a.parentInfo.analysisTypeBlocks.includes(e.selectedStatisticTypeBlock))return a.subcategories;return{}},accomplished:e=>0===e.homeTeamFilter.statistics},mutations:{updateGameForAnalysisByProps(e,t){for(const[a,i]of Object.entries(t))e.gameForAnalysis[a]=i},setCurrentTournamentName(e,t){e.currentTournamentName=t},setBetSubcategoriesObjects(e,t){e.betSubcategoriesObjects=t},setRegularSeasonName(e,t){e.regularSeasonName=t},setBetSubcategories(e,t){e.betSubcategories=t},setBetDescription(e,t){e.betDescription=t},setSeasonId(e,t){e.seasonId=Number(t)},setHome(e,t){e.homeTeamInfo=t},setAway(e,t){e.awayTeamInfo=t},setMenuOptionActive(e,t){e.menuOptionActive=t},setPastSeasonId(e,t){e.pastSeasonId=t},setUsePastSeasonId(e,t){e.usePastSeasonId=t,t&&(e.oldSeasonId=e.pastSeasonId)},updateShowPostMatchData(e,t){e.showPostMatch=t},setHomeResultGame(e,t){e.homeResultGame=t},setAwayResultGame(e,t){e.awayResultGame=t},updateIsSocketConnected(e,t){e.isSocketConnected=t,t&&e.gameForAnalysis.is_live&&4===e.gameForAnalysis.game_status&&L(`game.${e.gameForAnalysis.game_id}.v2`)},updateCurrentSeasonTeams(e,t){e.currentSeasonTeams=t,e.currentSeasonTeams.forEach(t=>{t.playedGames=e.currentSeasonGames.reduce((e,a)=>{if(1===a.game_status&&(a.home_team===t.team_id||a.visiting_team===t.team_id)){const i=a.score[0]-a.score[1],s=a.home_team===t.team_id;e.push({playingAs:s?1:2,matchResult:0===i?3:s?i>0?1:2:i<0?1:2})}return e},[])})},updateCurrentSeasonGames(e,t){e.currentSeasonGames=t},updateGameId(e,t){e.gameId=t},updateGameForAnalysis(e,t){e.gameForAnalysis=t,e.isLive=Boolean(t.is_live),e.homeTeamFilter.teamId=e.gameForAnalysis.home_team,e.visitingTeamFilter.teamId=e.gameForAnalysis.visiting_team},updateSelectedAnalysis(e,t){e.selectedAnalysis=t},updateShowLiveData(e,t){e.showLiveData=t},toggleAdvanceFilter(e){e.showAdvanceFilter=!e.showAdvanceFilter},updateIdAssetSelected(e,t){e.idAssetSelected=t},updateStats(e,t){e.currentSeasonPlays=t},updateFilterAux(e){e.filterAux||(e.filterAux={homeTeamFilter:{...e.homeTeamFilter},visitingTeamFilter:{...e.visitingTeamFilter}})},updateFilters(e,{filters:t,needsFormat:a=!1}){if(a){if(!(t&&t.local&&t.local.statistics&&t.visit&&t.visit.statistics))return;e.homeTeamFilter=fe(e.homeTeamFilter,t.local,e.gameForAnalysis.home_team),e.visitingTeamFilter=fe(e.visitingTeamFilter,t.visit,e.gameForAnalysis.visiting_team),e.selectedStatisticTypeBlock!==t.local.statistics.block&&(e.selectedStatisticTypeBlock=t.local.statistics.block)}else e.homeTeamFilter={...t.homeTeamFilter,statistics:0},e.visitingTeamFilter={...t.visitingTeamFilter,statistics:0}},updateFinishedGames(e,t){e.totalSeasonFinishedGames=t},updateHomeTeamPlays(e,t){e.homeTeamPlays=t},updateVisitingTeamPlays(e,t){e.visitingTeamPlays=t},addSpecialMentions(e,t){const a=Object.values(e.nextGamesDataStructure);a.forEach(e=>{for(const t of Object.values(e.subcategories))t.resetMentions()}),a.forEach(e=>{for(const a of t)for(const t of Object.values(e.subcategories))t.addSpecialMention(a[0],a[1],a[2])})},setDefaultFilter(e,t){e.defaultFilter={homeTeamFilter:{...t.homeTeamFilter,teamId:e.gameForAnalysis.home_team},visitingTeamFilter:{...t.awayTeamFilter,teamId:e.gameForAnalysis.visiting_team}}},addLiveGamePlay(e,t){if(!e.livePlays.has(t[e.indexesTLP.playId])){e.livePlays.set(t[e.indexesTLP.playId],t);const a=Og(t,e.indexesTLP,e.categoriesMap);for(const t of Object.values(e.nextGamesDataStructure))for(const i of Object.values(t.subcategories))i.addLivePlay(e.gameForAnalysis.home_team===a[e.indexesTSP.teamId]?"homeTeam":"visitingTeam",a[e.indexesTSP.teamId],a,e.indexesTSP,e.isLive,false)}},updateLiveGamePlay(e,t){const a=Boolean(t[e.indexesTLP.length]),i=e.livePlays.get(t[e.indexesTLP.playId]);if(function(e,t){let a=!(!Array.isArray(e)||!Array.isArray(t))&&e.length===t.length;if(a)for(let i of e)if(!t.includes(i)){a=!1;break}return a}(i,t))return;let s="";const o=e.gameForAnalysis.home_team===t[e.indexesTLP.teamId]?"homeTeam":"visitingTeam";i&&(s=e.gameForAnalysis.home_team===i[e.indexesTLP.teamId]?"homeTeam":"visitingTeam");const l=Og(i,e.indexesTLP,e.categoriesMap),n=Wg(i,l,e.indexesTLP),r=Og(t,e.indexesTLP,e.categoriesMap),d=Wg(t,r,e.indexesTLP);for(const c of Object.values(e.nextGamesDataStructure))for(const t of Object.values(c.subcategories))i&&(t.subtractLivePlay(s,l[e.indexesTSP.teamId],l,e.indexesTSP,a),n&&t.subtractLivePlay(s,n[e.indexesTSP.teamId],n,e.indexesTSP,a)),t.addLivePlay(o,r[e.indexesTSP.teamId],r,e.indexesTSP,e.isLive,a),d&&t.addLivePlay(o,d[e.indexesTSP.teamId],d,e.indexesTSP,e.isLive,a);e.livePlays.set(t[e.indexesTLP.playId],t)},deleteLiveGamePlay(e,t){const a=Boolean(t[e.indexesTLP.length]),i=e.livePlays.get(t[e.indexesTLP.playId]);let s="";if(i){s=e.gameForAnalysis.home_team===i[e.indexesTLP.teamId]?"homeTeam":"visitingTeam",e.livePlays.delete(i[e.indexesTLP.playId]);const o=Og(i,e.indexesTLP,e.categoriesMap),l=Wg(t,o,e.indexesTLP);for(const t of Object.values(e.nextGamesDataStructure))for(const i of Object.values(t.subcategories))i.subtractLivePlay(s,o[e.indexesTSP.teamId],o,e.indexesTSP,a),l&&i.subtractLivePlay(s,l[e.indexesTSP.teamId],l,e.indexesTSP,a)}},clearLiveTotals(e){for(const t of Object.values(e.nextGamesDataStructure))for(const e of Object.values(t.subcategories))e.homeTeam.resetTotalsLive(),e.visitingTeam.resetTotalsLive()},updateSeasonStatistics(e,t){e.statistics=t},updateOldSeasonId(e,t){e.oldSeasonId=t},addRankingInSubcategories(e,{getters:t,isPremiumAccount:a}){if(!e.homeTeamFilter.teamId||!e.visitingTeamFilter.teamId)return;e.isRankingCalculating=!1,e.currentSeasonTeams.forEach(t=>{t.homeTeamFilterGames=t.playedGames.filter(t=>e.homeTeamFilter.playingAs.includes(t.playingAs)&&e.homeTeamFilter.matchResult.includes(t.matchResult)).length,t.visitingTeamFilterGames=t.playedGames.filter(t=>e.visitingTeamFilter.playingAs.includes(t.playingAs)&&e.visitingTeamFilter.matchResult.includes(t.matchResult)).length});const i=[],s=new Map;for(const o of Object.values(e.nextGamesDataStructure))for(const e of Object.values(o.subcategories))i.push(e);t.rankingData.forEach(t=>{for(const a of i)if(a.isInGeneralCategory(t[e.indexesLS.categoryId])){if(s.has(a.id)){s.get(a.id).push(t)}else s.set(a.id,[t]);break}})},prepareCleanAllStatistics(e){e.homeTeamFilter.requiresPlaysFiltering=!0,e.visitingTeamFilter.requiresPlaysFiltering=!0},setHomeGames(e,t){e.homeGames=Rg(t)},setVisitingGames(e,t){e.visitingGames=Rg(t)},generateCategoriesMap(e){for(const t of Object.values(e.nextGamesDataStructure))for(const a of Object.values(t.subcategories))a.accomplishedCategoryIds.forEach(t=>{const i=e.categoriesMap.get(t);i?i.push(a.generalCategoriesIds.accomplished):e.categoriesMap.set(t,[a.generalCategoriesIds.accomplished])})},resetNextGamesDataStructure(e){for(const t of Object.values(e.nextGamesDataStructure))for(const e of Object.values(t.subcategories))e.resetData()}},actions:{turnOnOffDefaultFilters({state:e,commit:t},{command:a}){t("updateFilters","on"===a?{filters:e.defaultFilter,needsFormat:!1}:{filters:e.filterAux,needsFormat:!1})},async setAndGetStatsPostMatch({commit:e},t){try{const l=await async function(e){try{return await Tg({url:`https://nckawv8v3b.execute-api.us-west-2.amazonaws.com/prod/v2/statisticsByGame/${e.gameId}`})}catch(t){return Promise.reject(t)}}({gameId:t.gameId});if(l){var a=[],i=[],s={season:0,total:0,visit:{total:0,draw:0,win:0,lose:0},played:0,local:{total:0,draw:0,win:0,lose:0}},o={season:0,total:0,visit:{total:0,draw:0,win:0,lose:0},played:0,local:{total:0,draw:0,win:0,lose:0}};0!==Object.keys(l.data).length&&(a=l.data.data.filter(e=>e[1]==t.homeTeam),i=l.data.data.filter(e=>e[1]==t.awayTeam),s=l.data.games,o=l.data.games),e("updateHomeTeamPlays",a),e("updateVisitingTeamPlays",i),e("setHomeGames",s),e("setVisitingGames",o)}else e("updateHomeTeamPlays",[]),e("updateVisitingTeamPlays",[])}catch(l){return Promise.reject(l)}},async fillStatisticDataPostMatch({commit:e,dispatch:t},a){e("prepareCleanAllStatistics"),e("updateHomeTeamPlays",[]),e("updateVisitingTeamPlays",[]),e("setIsSectionLoading",!0,{root:!0});try{let i=[];e("updateGameForAnalysis",a.gameInfo),i.push(t("setAndGetStatsPostMatch",{gameId:a.game,homeTeam:a.homeTeam,awayTeam:a.awayTeam})),await Promise.all(i)}catch(i){throw new Error(i)}finally{e("setIsSectionLoading",!1,{root:!0})}},async checkState({state:e,dispatch:t,commit:a},{gameId:i,isTeamsAnalysis:s,currentSeasonId:o,isLoginChanged:l=!1,defaultFilter:n=null,gameInfo:r=null,isCupGame:d=!1}){try{let c={},m=e.seasonId!==Number(o);const p=[];a("setIsSectionLoading",!0,{root:!0}),a("setUsePastSeasonId",!1),m&&a("setSeasonId",o),a("updateGameId",Number(i)),e.oldSeasonId!==e.seasonId&&a("resetNextGamesDataStructure");const y=await t("getCurrentSeasonGames",Number(i));if(a("leagueGeneral/updateCurrentSeasonGames",y,{root:!0}),c=y.find(e=>e.game_id===Number(i)),!c&&r&&(c=r),c&&a("updateGameForAnalysis",c),1!==c.game_status&&((l||0===e.categoriesMap.size)&&a("generateCategoriesMap"),d||await t("checkTeamsData",{gameId:i,isFromBet:!!n}),(l||e.oldSeasonId!==e.seasonId||0===e.statistics.length)&&p.push(t("getSeasonStatistics"))),e.usePastSeasonId){a("leagueGeneral/updateCurrentSeasonGames",await t("getCurrentSeasonGamesLast"),{root:!0})}!l&&0!==e.currentSeasonTeams.length&&e.currentSeasonTeams.find(e=>c.home_team===e.team_id)||p.push(t("getCurrentSeasonTeams")),a("setHomeResultGame",c.score[0]),a("setAwayResultGame",c.score[1]),s?1!==c.game_status?(await t("fillStatisticData",{gameId:i,gameinfo:c,promises:p,defaultFilter:n}),a("updateShowPostMatchData",!1)):(a("updateStats",[]),a("updateShowPostMatchData",!0),p.push(t("fillStatisticDataPostMatch",{game:i,homeTeam:c.home_team,awayTeam:c.visiting_team,gameInfo:c})),await Promise.all(p)):a("setIsSectionLoading",!1,{root:!0})}catch(c){return Promise.reject(c)}},async fillStatisticData({commit:e,dispatch:t,getters:a,rootGetters:i,state:s},{gameId:o,gameinfo:l,promises:n=[],defaultFilter:r=null}){let d=null;try{e("setIsSectionLoading",!0,{root:!0}),e("prepareCleanAllStatistics"),e("updateHomeTeamPlays",[]),e("updateVisitingTeamPlays",[]),e("updateGameForAnalysis",l),(l.is_live||0===l.game_status)&&n.push(t("getCurrentLiveGamePlays",o)),n.push(t("getSpecialMentionsByGame",o)),n.push(t("getHomeTeamPlays")),n.push(t("getVisitingTeamPlays")),n.push(t("getCurrentSeasonPlays")),r&&n.push(async function({filter:e}){try{const t=`https://n7ielynjxk.execute-api.us-east-2.amazonaws.com/qa/filters?filters=${e}`,{data:a}=await Tg({url:t});return a}catch(t){return Promise.reject(t)}}(r)),d=await Promise.all(n)}catch(c){throw new Error(c)}finally{setTimeout(()=>{if(e("addRankingInSubcategories",{getters:a,isPremiumAccount:i["loginGeneral/getPremiumAccount"]}),r){const[a]=d.pop();a&&(e("setBetSubcategories",a.categories),e("setBetDescription",a.sectionDescription),e("setDefaultFilter",a.params),e("updateFilterAux"),e("updateFilters",{filters:s.defaultFilter,needsFormat:!1}),t("updateRankingInSubcategories"))}},100),e("setIsSectionLoading",!1,{root:!0})}},async checkTeamsData({state:e,dispatch:t,rootState:a,commit:i},{gameId:s,isFromBet:o}){try{const l=Number(s);if(e.pastSeasonId){i("setPastSeasonId",e.pastSeasonId,{root:!0});const s=a.leagueGeneral.currentSeasonGames.find(e=>e.game_id===l);s&&i("updateGameForAnalysis",s),await Promise.all([t("getHomeTeamPlays"),t("getVisitingTeamPlays")]),i("setUsePastSeasonId",o||(!e.homeTeamPlays||0===e.homeTeamPlays.length)&&(!e.visitingTeamPlays||0===e.visitingTeamPlays.length))}else i("setUsePastSeasonId",!1)}catch(l){throw new Error(l)}},async getSpecialMentionsByGame({commit:e},t){try{const a=await async function({gameId:e}){try{const t=`https://55sbpmq0f5.execute-api.us-west-2.amazonaws.com/prod/specialMentions/${e}`;return(await Tg({url:t})).data.data||[]}catch(t){return Promise.reject(t)}}({gameId:t});e("addSpecialMentions",a)}catch(a){return Promise.reject(a)}},async getCurrentSeasonGames({commit:e,state:t},a){try{const{teams:i,games:s,past_season_id:o,tournament_id:l}=await async function({seasonId:e,gameId:t}){try{const a=`https://iwxfzq6e2h.execute-api.us-west-2.amazonaws.com/prod/v2/statisticsLeagueBySeason/${e}/games/${t}`,{data:i}=await Tg({url:a});return i}catch(a){return Promise.reject(a)}}({seasonId:t.usePastSeasonId?t.pastSeasonId:t.seasonId,gameId:a}),n=qg.find(e=>e.id===l);return n&&e("setCurrentTournamentName",n.name),e("setHome",i[0]),e("setAway",i[1]),t.usePastSeasonId||e("setPastSeasonId",o),await e("updateCurrentSeasonGames",s),s&&Array.isArray(s)&&e("updateFinishedGames",s.reduce((e,t)=>(1===t.game_status&&(e+=1),e),0)),s}catch(i){return Promise.reject(i)}},async getCurrentSeasonGamesLast({commit:e,state:t}){try{const{games:a,past_season_id:i}=await Cg({seasonId:t.usePastSeasonId?t.pastSeasonId:t.seasonId});return t.usePastSeasonId||e("setPastSeasonId",i),await e("updateCurrentSeasonGames",a),a&&Array.isArray(a)&&e("updateFinishedGames",a.reduce((e,t)=>(1===t.game_status&&(e+=1),e),0)),a}catch(a){return Promise.reject(a)}},async getCurrentSeasonTeams({commit:e,state:t}){try{e("updateCurrentSeasonTeams",(await async function(e){try{const t=`https://yjeig444bb.execute-api.us-west-2.amazonaws.com/prod/teamsBySeason/${e.seasonId}`;return await Tg({url:t})}catch(t){return Promise.reject(t)}}({seasonId:t.usePastSeasonId?t.pastSeasonId:t.seasonId})).data.teams)}catch{}},async getSeasonStatistics({commit:e,state:t}){try{const a=t.usePastSeasonId?t.pastSeasonId:t.seasonId,i=await async function({seasonId:e}){try{return(await Tg({url:`https://sqf4rkvoge.execute-api.us-west-2.amazonaws.com/prod/v3/statisticsGroupedBySeason/${e}`})).data.data}catch(t){return Promise.reject(t)}}({seasonId:a});e("updateSeasonStatistics",i),e("updateOldSeasonId",a)}catch(a){return Promise.reject(a)}},updateRankingInSubcategories({state:e,commit:t,getters:a,rootGetters:i}){e.currentSeasonGames.length>0&&t("addRankingInSubcategories",{getters:a,isPremiumAccount:i["loginGeneral/getPremiumAccount"]})},async getHomeTeamPlays({commit:e,state:t}){try{const a=await Ng({seasonId:t.usePastSeasonId?t.pastSeasonId:t.seasonId,teamId:t.gameForAnalysis.home_team});a.data&&(e("updateHomeTeamPlays",a.data.data),e("setHomeGames",a.data.games))}catch(a){return Promise.reject(a)}},async getVisitingTeamPlays({commit:e,state:t}){try{const a=await Ng({seasonId:t.usePastSeasonId?t.pastSeasonId:t.seasonId,teamId:t.gameForAnalysis.visiting_team});a.data&&(e("updateVisitingTeamPlays",a.data.data),e("setVisitingGames",a.data.games))}catch(a){return Promise.reject(a)}},async getCurrentSeasonPlays({commit:e,state:t}){try{e("updateStats",await async function({seasonId:e}){try{return(await Tg({url:`https://iwxfzq6e2h.execute-api.us-west-2.amazonaws.com/prod/v2/statisticsLeagueBySeason/${e}`})).data.data}catch(t){return Promise.reject(t)}}({seasonId:t.usePastSeasonId?t.pastSeasonId:t.seasonId}))}catch(a){return Promise.reject(new Error(a))}},async getCurrentLiveGamePlays({state:e,commit:t},a){try{const i=await async function({gameId:e}){try{const t=`https://2uj7ojhmt5.execute-api.us-west-2.amazonaws.com/prod/V2/statisticsLive/${e}`;return(await Tg({url:t})).data.data}catch(t){return Promise.reject(t)}}({gameId:a});e.livePlays=new Map,i.forEach(a=>{e.gameForAnalysis.game_id!==a[e.indexesTLP.gameId]||e.gameForAnalysis.home_team!==a[e.indexesTLP.teamId]&&e.gameForAnalysis.visiting_team!==a[e.indexesTLP.teamId]||t("addLiveGamePlay",a)})}catch(i){throw new Error(i)}},socket_new({state:e,commit:t},a){const i=a[1];e.gameForAnalysis.home_team!==i[e.indexesTLP.teamId]&&e.gameForAnalysis.visiting_team!==i[e.indexesTLP.teamId]||t("addLiveGamePlay",i)},socket_update({state:e,commit:t},a){const i=a[1];e.gameForAnalysis.game_id!==i[e.indexesTLP.gameId]||e.gameForAnalysis.home_team!==i[e.indexesTLP.teamId]&&e.gameForAnalysis.visitingTeam!==i[e.indexesTLP.teamId]||t("updateLiveGamePlay",i)},socket_delete({state:e,commit:t},a){const i=a[1];e.gameForAnalysis.game_id!==i[e.indexesTLP.gameId]||e.gameForAnalysis.home_team!==i[e.indexesTLP.teamId]&&e.gameForAnalysis.visiting_team!==i[e.indexesTLP.teamId]||t("deleteLiveGamePlay",i)},exitChannel({state:e,getters:t,rootState:a,rootGetters:i,commit:s}){const o=i["loginGeneral/getPremiumAccount"];t.isLive&&o&&(s("updateShowLiveData",!0),s("clearLiveTotals"),e.livePlays.clear(),jg.emit("unsubscribe",{channel:`game.${e.gameForAnalysis.game_id}.v2`}))},cleanStats({state:e}){for(const t of Object.values(e.nextGamesDataStructure))for(const e of Object.values(t.subcategories))e.homeTeam.resetTotals(),e.visitingTeam.resetTotals(),e.homeTeam.resetTotalsLive(),e.visitingTeam.resetTotalsLive(),e.isBetMainSubcategory=!1;Object.values(e.nextGamesDataStructure).forEach(e=>{for(const t of Object.values(e.subcategories))t.resetMentions()}),e.currentSeasonPlays=null,e.homeTeamPlays=[],e.visitingTeamPlays=[],e.homeTeamFilter.requiresPlaysFiltering=!0,e.visitingTeamFilter.requiresPlaysFiltering=!0,e.isRankingCalculating=!0},cleanAllStats({state:e}){for(const t of Object.values(e.nextGamesDataStructure))for(const e of Object.values(t.subcategories))e.homeTeam.resetTotals(),e.visitingTeam.resetTotals(),e.isBetMainSubcategory=!1;Object.values(e.nextGamesDataStructure).forEach(e=>{for(const t of Object.values(e.subcategories))t.resetMentions()}),e.currentSeasonGames=[],e.currentSeasonTeams=[],e.gameForAnalysis={},e.homeTeamPlays=[],e.visitingTeamPlays=[],e.currentSeasonPlays=null,e.totalSeasonFinishedGames=0,e.totalHomeTeamFinishedGames=0,e.totalVisitingTeamFinishedGames=0,e.homeGames=[],e.showPostMatch=!1,e.homeResultGame=null,e.awayResultGame=null,e.visitingGames=[],e.idAssetSelected=1,e.showAdvanceFilter=!1,e.selectedAnalysis={},e.homeTeamFilter={teamId:0,statistics:0,playingAs:[],matchResult:[],sections:[],requiresPlaysFiltering:!0},e.visitingTeamFilter={teamId:0,statistics:0,playingAs:[],matchResult:[],sections:[],requiresPlaysFiltering:!0},e.isRankingCalculating=!0}}}};const Jg={gameGlobal:{namespaced:!0,state:{videoSrc:null,isVideoModalVisible:!1,tournaments:[],seccionBetsGolTipster:1,tournamentSelected:{},tournamentType:0,sectionAnalytics:"Banner_Home",previewSectionAnalytics:"",sectionRef:"",booleanIsStatisticModalOpen:!1},getters:{getTournamentType:e=>e.tournamentType,getSectionAnalytics:e=>e.sectionAnalytics,getPreviewSectionAnalytics:e=>e.previewSectionAnalytics,getSeccionBetsGolTipster:e=>e.seccionBetsGolTipster},mutations:{setBooleanIsStatisticModalOpen(e,t){e.booleanIsStatisticModalOpen=t},setTournamentType(e,t){e.tournamentType=t},setSectionRef(e,t){e.sectionRef=t},setSectionAnalytics(e,t){e.sectionAnalytics=t},setSeccionBetsGolTipster(e,t){e.seccionBetsGolTipster=t},setPreviewSectionAnalytics(e,t){e.previewSectionAnalytics=t},setVideoSrc(e,t){e.videoSrc=t},setVideoModalVisibility(e,t){e.isVideoModalVisible=t},setSelectedTournament(e,t){e.selectedTournament=t},setTournaments(e,t){e.tournaments=t.map(e=>({...e.tournament,seasons:e.seasons})),e.tournamentSelected=e.tournaments[0]},setTournamentSelected(e,t){e.tournamentSelected=t}},actions:{async fetchTournaments({state:e,commit:t}){try{if(0===e.tournaments.length){t("setTournaments",await async function(){try{const{data:e}=await Tg({url:"https://kefloixzy1.execute-api.us-west-2.amazonaws.com/prod/tournaments"});return e}catch(e){throw new Error(e)}}())}}catch(a){throw new Error(a)}}}}};const Ug=(e,t)=>{let a={};return e.forEach((e,i)=>{3==i&&(35!=t[0]&&54!=t[0]||(2==t[i]?t[i]=1:t[i]=2)),2==i&&(35!=t[0]&&54!=t[0]||(1==t[i]?t[i]=2:2==t[i]&&(t[i]=1))),a[e]=t[i]}),a},Zg=(e,t)=>e.filter(e=>{const a=t.playingAs.includes(e.playing_as),i=t.matchResult.includes(e.match_result),s=t.sections.includes(e.section);return a&&i&&s});function Xg(e,t){let a=-1*t;return Math.ceil10(e,a)}Math.ceil10||(Math.ceil10=function(e,t){return function(e,t,a){return void 0===a||0===+a?Math[e](t):(t=+t,a=+a,isNaN(t)||"number"!=typeof a||a%1!=0?NaN:(t=t.toString().split("e"),+((t=(t=Math[e](+(t[0]+"e"+(t[1]?+t[1]-a:-a)))).toString().split("e"))[0]+"e"+(t[1]?+t[1]+a:a))))}("ceil",e,t)});const Yg={...Jg,...Eg,...Hg,...{xgGeneral:{namespaced:!0,state:{teamSelected:"Local",xGLocalPlays:[],xGVisitingPlays:[]},getters:{playsLocal:(e,t,a)=>{const i=e.xGLocalPlays,s=a.nextGeneral.homeTeamFilter;return Zg(i,s)||[]},playsAway:(e,t,a)=>{const i=e.xGVisitingPlays,s=a.nextGeneral.visitingTeamFilter;return Zg(i,s)},goalsQtyLocal:(e,t)=>{const a=Ha.find(e=>"Goles"===e.name);return t.playsLocal.filter(e=>a.categories.includes(e.category_id)).length},goalsQtyAway:(e,t)=>{const a=Ha.find(e=>"Goles"===e.name);return t.playsAway.filter(e=>a.categories.includes(e.category_id)).length},shotsOnGoalQtyLocal:(e,t)=>t.playsLocal.filter(e=>510===e.category_id).length,shotsOnGoalQtyAway:(e,t)=>t.playsAway.filter(e=>510===e.category_id).length,headQtyLocal:(e,t)=>{const a=Ha.find(e=>"Remates con cabeza"===e.name);return t.playsLocal.filter(e=>a.categories.includes(e.category_id)).length},headQtyAway:(e,t)=>{const a=Ha.find(e=>"Remates con cabeza"===e.name);return t.playsAway.filter(e=>a.categories.includes(e.category_id)).length},penaltiesQtyLocal:(e,t)=>{const a=Ha.find(e=>"Penales"===e.name);return t.playsLocal.filter(e=>a.categories.includes(e.category_id)).length},penaltiesQtyAway:(e,t)=>{const a=Ha.find(e=>"Penales"===e.name);return t.playsAway.filter(e=>a.categories.includes(e.category_id)).length},xGLocal:(e,t)=>{const a=new Set;return Xg(t.playsLocal.reduce((e,t)=>(a.has(t.moment_of_play)||(a.add(t.moment_of_play),e+=t.xG2),e),0),2)},xGAway:(e,t)=>{const a=new Set;return Xg(t.playsAway.reduce((e,t)=>(a.has(t.moment_of_play)||(a.add(t.moment_of_play),e+=t.xG2),e),0),2)}},mutations:{setTeamSelected(e,t){e.teamSelected=t},setPlays(e,t){const a=t.local_team.map(e=>Ug(t.data_headers,e)),i=[],s=[],o=[],l=[],n=new Set;a.forEach(e=>{Ra.has(e.category_id)?n.has(e.moment_of_play)||(n.add(e.moment_of_play),i.push(e)):Wa.has(e.category_id)?s.push(e):ja.has(e.category_id)?o.push(e):qa.has(e.category_id)&&l.push(e)}),e.xGLocalPlays=[...s,...i,...o,...l];const r=t.visiting_team.map(e=>Ug(t.data_headers,e)),d=new Set,c=[],m=[],p=[],y=[];r.forEach(e=>{Ra.has(e.category_id)?d.has(e.moment_of_play)||(d.add(e.moment_of_play),c.push(e)):Wa.has(e.category_id)?m.push(e):ja.has(e.category_id)?p.push(e):qa.has(e.category_id)&&y.push(e)}),e.xGVisitingPlays=[...m,...c,...p,...y]},cleanXgStore(e){e.localStorage="Local",e.xGLocalPlays=[],e.xGVisitingPlays=[]}},actions:{async getXgPlays({commit:e},{seasonId:t,localTeamId:a,visitingTeamId:i,postMatch:s=!1}){try{let o={};o=s?await async function({seasonId:e,localTeamId:t,visitingTeamId:a}){try{const i=`https://bzznnzehtf.execute-api.us-west-2.amazonaws.com/prod/xg/game/${e}/teams/${t}/${a}`;return(await Tg({url:i})).data}catch(i){return Promise.reject(i)}}({seasonId:t,localTeamId:a,visitingTeamId:i}):await async function({seasonId:e,localTeamId:t,visitingTeamId:a}){try{const i=`https://bzznnzehtf.execute-api.us-west-2.amazonaws.com/prod/xg/seasons/${e}/teams/${t}/${a}`;return(await Tg({url:i})).data}catch(i){return Promise.reject(i)}}({seasonId:t,localTeamId:a,visitingTeamId:i}),e("setPlays",o)}catch(o){return Promise.reject(o)}}}}}};e.GSCGameData=Sg,e.connectSocket=A,e.disconnectSocket=D,e.getSocket=z,e.registerStoreModules=function(e){for(const[t,a]of Object.entries(Yg))e.hasModule(t)||e.registerModule(t,a)},Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})});