@golstats/gsc-game-data 1.0.271 → 1.0.272

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.
@@ -74,7 +74,7 @@
74
74
  * Vue 3 Carousel 0.3.1
75
75
  * (c) 2023
76
76
  * @license MIT
77
- */const xu={itemsToShow:1,itemsToScroll:1,modelValue:0,transition:300,autoplay:0,snapAlign:"center",wrapAround:!1,throttle:16,pauseAutoplayOnHover:!1,mouseDrag:!0,touchDrag:!0,dir:"ltr",breakpoints:void 0,i18n:{ariaNextSlide:"Navigate to next slide",ariaPreviousSlide:"Navigate to previous slide",ariaNavigateToSlide:"Navigate to slide {slideNumber}",ariaGallery:"Gallery",itemXofY:"Item {currentSlide} of {slidesCount}",iconArrowUp:"Arrow pointing upwards",iconArrowDown:"Arrow pointing downwards",iconArrowRight:"Arrow pointing to the right",iconArrowLeft:"Arrow pointing to the left"}},vR={itemsToShow:{default:xu.itemsToShow,type:Number},itemsToScroll:{default:xu.itemsToScroll,type:Number},wrapAround:{default:xu.wrapAround,type:Boolean},throttle:{default:xu.throttle,type:Number},snapAlign:{default:xu.snapAlign,validator(e){return["start","end","center","center-even","center-odd"].includes(e)}},transition:{default:xu.transition,type:Number},breakpoints:{default:xu.breakpoints,type:Object},autoplay:{default:xu.autoplay,type:Number},pauseAutoplayOnHover:{default:xu.pauseAutoplayOnHover,type:Boolean},modelValue:{default:void 0,type:Number},mouseDrag:{default:xu.mouseDrag,type:Boolean},touchDrag:{default:xu.touchDrag,type:Boolean},dir:{default:xu.dir,validator(e){return["rtl","ltr"].includes(e)}},i18n:{default:xu.i18n,type:Object},settings:{default(){return{}},type:Object}};function Tje({config:e,slidesCount:r}){const{snapAlign:i,wrapAround:B,itemsToShow:D=1}=e;if(B)return Math.max(r-1,0);let c;switch(i){case"start":c=r-D;break;case"end":c=r-1;break;case"center":case"center-odd":c=r-Math.ceil((D-.5)/2);break;case"center-even":c=r-Math.ceil(D/2);break;default:c=0;break}return Math.max(c,0)}function Eje({config:e,slidesCount:r}){const{wrapAround:i,snapAlign:B,itemsToShow:D=1}=e;let c=0;if(i||D>r)return c;switch(B){case"start":c=0;break;case"end":c=D-1;break;case"center":case"center-odd":c=Math.floor((D-1)/2);break;case"center-even":c=Math.floor((D-2)/2);break;default:c=0;break}return c}function lC({val:e,max:r,min:i}){return r<i?e:Math.min(Math.max(e,i),r)}function Aje({config:e,currentSlide:r,slidesCount:i}){const{snapAlign:B,wrapAround:D,itemsToShow:c=1}=e;let m=r;switch(B){case"center":case"center-odd":m-=(c-1)/2;break;case"center-even":m-=(c-2)/2;break;case"end":m-=c-1;break}return D?m:lC({val:m,max:i-c,min:0})}function _R(e){return e?e.reduce((r,i)=>{var B;return i.type===t.Fragment?[...r,..._R(i.children)]:((B=i.type)===null||B===void 0?void 0:B.name)==="CarouselSlide"?[...r,i]:r},[]):[]}function cC({val:e,max:r,min:i=0}){return e>r?cC({val:e-(r+1),max:r,min:i}):e<i?cC({val:e+(r+1),max:r,min:i}):e}function Mje(e,r){let i;return r?function(...B){const D=this;i||(e.apply(D,B),i=!0,setTimeout(()=>i=!1,r))}:e}function Ije(e,r){let i;return function(...B){i&&clearTimeout(i),i=setTimeout(()=>{e(...B),i=null},r)}}function Pje(e="",r={}){return Object.entries(r).reduce((i,[B,D])=>i.replace(`{${B}}`,String(D)),e)}var Bje=t.defineComponent({name:"ARIA",setup(){const e=t.inject("config",t.reactive(Object.assign({},xu))),r=t.inject("currentSlide",t.ref(0)),i=t.inject("slidesCount",t.ref(0));return()=>t.h("div",{class:["carousel__liveregion","carousel__sr-only"],"aria-live":"polite","aria-atomic":"true"},Pje(e.i18n.itemXofY,{currentSlide:r.value+1,slidesCount:i.value}))}}),Nje=t.defineComponent({name:"Carousel",props:vR,setup(e,{slots:r,emit:i,expose:B}){var D;const c=t.ref(null),m=t.ref([]),a=t.ref(0),y=t.ref(0),f=t.reactive(Object.assign({},xu));let n=Object.assign({},xu),v;const _=t.ref((D=e.modelValue)!==null&&D!==void 0?D:0),p=t.ref(0),l=t.ref(0),o=t.ref(0),s=t.ref(0);let u,d;t.provide("config",f),t.provide("slidesCount",y),t.provide("currentSlide",_),t.provide("maxSlide",o),t.provide("minSlide",s),t.provide("slideWidth",a);function h(){v=Object.assign({},e.breakpoints),n=Object.assign(Object.assign(Object.assign({},n),e),{i18n:Object.assign(Object.assign({},n.i18n),e.i18n),breakpoints:void 0}),b(n)}function g(){if(!v||!Object.keys(v).length)return;const ae=Object.keys(v).map(ie=>Number(ie)).sort((ie,ue)=>+ue-+ie);let ne=Object.assign({},n);ae.some(ie=>{const ue=window.matchMedia(`(min-width: ${ie}px)`).matches;return ue&&(ne=Object.assign(Object.assign({},ne),v[ie])),ue}),b(ne)}function b(ae){Object.entries(ae).forEach(([ne,ie])=>f[ne]=ie)}const w=Ije(()=>{g(),x()},16);function x(){if(!c.value)return;const ae=c.value.getBoundingClientRect();a.value=ae.width/f.itemsToShow}function S(){y.value<=0||(l.value=Math.ceil((y.value-1)/2),o.value=Tje({config:f,slidesCount:y.value}),s.value=Eje({config:f,slidesCount:y.value}),f.wrapAround||(_.value=lC({val:_.value,max:o.value,min:s.value})))}t.onMounted(()=>{t.nextTick(()=>x()),setTimeout(()=>x(),1e3),g(),V(),window.addEventListener("resize",w,{passive:!0}),i("init")}),t.onUnmounted(()=>{d&&clearTimeout(d),u&&clearInterval(u),window.removeEventListener("resize",w,{passive:!0})});let C=!1;const T={x:0,y:0},k={x:0,y:0},A=t.reactive({x:0,y:0}),E=t.ref(!1),M=t.ref(!1),I=()=>{E.value=!0},N=()=>{E.value=!1};function z(ae){["INPUT","TEXTAREA","SELECT"].includes(ae.target.tagName)||(C=ae.type==="touchstart",C||ae.preventDefault(),!(!C&&ae.button!==0||U.value)&&(T.x=C?ae.touches[0].clientX:ae.clientX,T.y=C?ae.touches[0].clientY:ae.clientY,document.addEventListener(C?"touchmove":"mousemove",F,!0),document.addEventListener(C?"touchend":"mouseup",R,!0)))}const F=Mje(ae=>{M.value=!0,k.x=C?ae.touches[0].clientX:ae.clientX,k.y=C?ae.touches[0].clientY:ae.clientY;const ne=k.x-T.x,ie=k.y-T.y;A.y=ie,A.x=ne},f.throttle);function R(){const ae=f.dir==="rtl"?-1:1,ne=Math.sign(A.x)*.4,ie=Math.round(A.x/a.value+ne)*ae;if(ie&&!C){const ue=he=>{he.stopPropagation(),window.removeEventListener("click",ue,!0)};window.addEventListener("click",ue,!0)}Z(_.value-ie),A.x=0,A.y=0,M.value=!1,document.removeEventListener(C?"touchmove":"mousemove",F,!0),document.removeEventListener(C?"touchend":"mouseup",R,!0)}function V(){!f.autoplay||f.autoplay<=0||(u=setInterval(()=>{f.pauseAutoplayOnHover&&E.value||q()},f.autoplay))}function $(){u&&(clearInterval(u),u=null),V()}const U=t.ref(!1);function Z(ae){const ne=f.wrapAround?ae:lC({val:ae,max:o.value,min:s.value});_.value===ne||U.value||(i("slide-start",{slidingToIndex:ae,currentSlideIndex:_.value,prevSlideIndex:p.value,slidesCount:y.value}),U.value=!0,p.value=_.value,_.value=ne,d=setTimeout(()=>{if(f.wrapAround){const ie=cC({val:ne,max:o.value,min:0});ie!==_.value&&(_.value=ie,i("loop",{currentSlideIndex:_.value,slidingToIndex:ae}))}i("update:modelValue",_.value),i("slide-end",{currentSlideIndex:_.value,prevSlideIndex:p.value,slidesCount:y.value}),U.value=!1,$()},f.transition))}function q(){Z(_.value+f.itemsToScroll)}function W(){Z(_.value-f.itemsToScroll)}const Q={slideTo:Z,next:q,prev:W};t.provide("nav",Q),t.provide("isSliding",U);const X=t.computed(()=>Aje({config:f,currentSlide:_.value,slidesCount:y.value}));t.provide("slidesToScroll",X);const J=t.computed(()=>{const ae=f.dir==="rtl"?-1:1,ne=X.value*a.value*ae;return{transform:`translateX(${A.x-ne}px)`,transition:`${U.value?f.transition:0}ms`,margin:f.wrapAround?`0 -${y.value*a.value}px`:"",width:"100%"}});function ee(){h(),g(),S(),x(),$()}Object.keys(vR).forEach(ae=>{["modelValue"].includes(ae)||t.watch(()=>e[ae],ee)}),t.watch(()=>e.modelValue,ae=>{ae!==_.value&&Z(Number(ae))}),t.watch(y,S),i("before-init"),h();const le={config:f,slidesCount:y,slideWidth:a,next:q,prev:W,slideTo:Z,currentSlide:_,maxSlide:o,minSlide:s,middleSlide:l};B({updateBreakpointsConfigs:g,updateSlidesData:S,updateSlideWidth:x,initDefaultConfigs:h,restartCarousel:ee,slideTo:Z,next:q,prev:W,nav:Q,data:le});const oe=r.default||r.slides,se=r.addons,ce=t.reactive(le);return()=>{const ae=_R(oe==null?void 0:oe(ce)),ne=(se==null?void 0:se(ce))||[];ae.forEach((pe,me)=>pe.props.index=me);let ie=ae;if(f.wrapAround){const pe=ae.map((_e,we)=>t.cloneVNode(_e,{index:-ae.length+we,isClone:!0,key:`clone-before-${we}`})),me=ae.map((_e,we)=>t.cloneVNode(_e,{index:ae.length+we,isClone:!0,key:`clone-after-${we}`}));ie=[...pe,...ae,...me]}m.value=ae,y.value=Math.max(ae.length,1);const ue=t.h("ol",{class:"carousel__track",style:J.value,onMousedownCapture:f.mouseDrag?z:null,onTouchstartPassiveCapture:f.touchDrag?z:null},ie),he=t.h("div",{class:"carousel__viewport"},ue);return t.h("section",{ref:c,class:{carousel:!0,"is-sliding":U.value,"is-dragging":M.value,"is-hover":E.value,"carousel--rtl":f.dir==="rtl"},dir:f.dir,"aria-label":f.i18n.ariaGallery,tabindex:"0",onMouseenter:I,onMouseleave:N},[he,ne,t.h(Bje)])}}}),bR;(function(e){e.arrowUp="arrowUp",e.arrowDown="arrowDown",e.arrowRight="arrowRight",e.arrowLeft="arrowLeft"})(bR||(bR={}));var zje=t.defineComponent({name:"CarouselSlide",props:{index:{type:Number,default:1},isClone:{type:Boolean,default:!1}},setup(e,{slots:r}){const i=t.inject("config",t.reactive(Object.assign({},xu))),B=t.inject("currentSlide",t.ref(0)),D=t.inject("slidesToScroll",t.ref(0)),c=t.inject("isSliding",t.ref(!1)),m=()=>e.index===B.value,a=()=>e.index===B.value-1,y=()=>e.index===B.value+1,f=()=>{const n=Math.floor(D.value),v=Math.ceil(D.value+i.itemsToShow-1);return e.index>=n&&e.index<=v};return()=>{var n;return t.h("li",{style:{width:`${100/i.itemsToShow}%`},class:{carousel__slide:!0,"carousel__slide--clone":e.isClone,"carousel__slide--visible":f(),"carousel__slide--active":m(),"carousel__slide--prev":a(),"carousel__slide--next":y(),"carousel__slide--sliding":c.value},"aria-hidden":!f()},(n=r.default)===null||n===void 0?void 0:n.call(r))}}});const Oje=(e,r)=>{const i=e.__vccOpts||e;for(const[B,D]of r)i[B]=D;return i},Fje=e=>(t.pushScopeId("data-v-54620d25"),e=e(),t.popScopeId(),e),Lje={class:"gsc-carousel"},Dje={key:0},Rje=Fje(()=>t.createElementVNode("div",null,"no hay",-1)),Vje=[Rje],$je={class:"gsc-carousel__2d__slides"},jje={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Uje=["fill"],Gje={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Hje=["fill"],Wje={class:"gsc-carousel__2d__navigation"},qje={width:"8",height:"15",viewBox:"0 0 8 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Yje=["stroke"],Xje={key:1,class:"gsc-carousel__2d__navigation__pagination"},Zje=["onClick"],Jje={width:"7",height:"15",viewBox:"0 0 7 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Kje=["stroke"],Qje={__name:"GSC-Carousel",props:{currentItemIndex:{type:Number,default:0},items:{type:Array,default:()=>[]},is3d:{type:Boolean,default:!1},isPaginationVisible:{type:Boolean,default:!1},areNavigationArrowsVisible:{type:Boolean,default:!0},defaultItemByIndex:{type:Number,default:0},defaultItemByProp:{type:Object,default:null,validator:e=>["propName","value"].every(r=>r in e)},navigationHeight:{type:Number,default:4},navigationBorderRadius:{type:Number,default:4},navigationColor:{type:String,default:"rgba(255, 255, 255, 0.4)"},navigationActiveColor:{type:String,default:"#cbee6b"},navigationActiveWidth:{type:Number,default:30},arrowsColor:{type:String,default:"#cbee6b"},arrowsMaxWidth:{type:String,default:"20px"},wrapAround:{type:Boolean,default:!1},itemsToShow:{type:Number,default:1},isMainSlidePriority:{type:Boolean,default:!1},areSlidesArrowsVisible:{type:Boolean,default:!1},slideLeftArrowBackgroundImage:{type:String,default:"linear-gradient(to right, rgba(13, 29, 41, 1), rgba(0, 0, 0, 0))"},slideRightArrowBackgroundImage:{type:String,default:"linear-gradient(to left, rgba(13, 29, 41, 1), rgba(0, 0, 0, 0))"},areSlidesArrowsRounded:{type:Boolean,default:!1},slidesArrowsLeftAndRight:{type:String,default:"20px"},secondarySlidesOpacity:{type:Number,default:.8},marginTop:{type:String,default:"0"}},emits:["input","update:currentItemIndex"],setup(e,{expose:r,emit:i}){const B=e;t.useCssVars(o=>({"2c72d674":e.slideLeftArrowBackgroundImage,"90a63f40":e.slidesArrowsLeftAndRight,"2627d097":e.slideRightArrowBackgroundImage,"1904d43f":e.marginTop,cfb58986:e.secondarySlidesOpacity}));const D=t.ref(null),c=t.ref({}),m=t.ref(0),a=t.ref(!1);t.watch(D,o=>{o&&a.value?(a.value=!1,y(B.items)):o&&o.slideTo&&o.slideTo(m.value)},{deep:!0}),t.watch(()=>B.currentItemIndex,o=>{m.value!==o&&_(o)}),t.watch(()=>B.defaultItemByIndex,o=>{m.value!==o&&_(o)}),t.watch(()=>B.items,o=>{D.value?y(o):a.value=!0},{immediate:!0});function y(o){o&&o.length&&D.value&&setTimeout(()=>{if(B.defaultItemByProp){const s=B.items.findIndex(u=>u[B.defaultItemByProp.propName]===B.defaultItemByProp.value);s!==-1?(m.value=s,c.value=o[s]):(m.value=0,c.value=o[0])}else m.value=B.defaultItemByIndex,c.value=o[B.defaultItemByIndex];D.value.slideTo&&D.value.slideTo(m.value),c.value&&m.value===0&&i("input",{selectedItem:c.value,selectedItemIndex:m.value})},500)}function f(){D.value&&D.value.next()}function n(){D.value&&D.value.prev()}function v(){D.value&&D.value.updateSlideWidth()}function _(o){D.value&&D.value.slideTo(o)}function p(o){D.value.slideTo(o)}function l(o){const s=o.slidingToIndex<0?B.items.length-1:o.slidingToIndex===B.items.length?0:o.slidingToIndex;m.value=s,c.value=B.items[s],i("update:currentItemIndex",s),i("input",{selectedItem:c.value,selectedItemIndex:m.value})}return r({prev:n,next:f,updateSlideWidth:v,slideTo:_}),(o,s)=>(t.openBlock(),t.createElementBlock("div",Lje,[B.is3d?(t.openBlock(),t.createElementBlock("div",Dje,Vje)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(["gsc-carousel__2d",{"main-slide-priority":e.isMainSlidePriority}])},[t.createElementVNode("div",$je,[t.createVNode(t.unref(Nje),{ref_key:"carousel2d",ref:D,"items-to-show":e.itemsToShow,"wrap-around":e.wrapAround,onSlideStart:l},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(u,d)=>(t.openBlock(),t.createBlock(t.unref(zje),{key:d},{default:t.withCtx(()=>[t.renderSlot(o.$slots,"default",{item:u},void 0,!0)]),_:2},1024))),128))]),_:3},8,["items-to-show","wrap-around"])]),e.areSlidesArrowsVisible&&e.items.length>1?(t.openBlock(),t.createElementBlock("div",{key:0,class:"gsc-carousel__2d__arrow-left",style:t.normalizeStyle("max-width:"+e.arrowsMaxWidth+"!important"),onClick:s[0]||(s[0]=u=>D.value.prev())},[t.createElementVNode("div",{class:t.normalizeClass(["gsc-carousel__2d__slide-button",{rounded:e.areSlidesArrowsRounded}])},[(t.openBlock(),t.createElementBlock("svg",jje,[t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.10399 9L8.62342 15.4393C9.12552 16.0251 9.12552 16.9749 8.62342 17.5607C8.12132 18.1464 7.30725 18.1464 6.80514 17.5607L0.376575 10.0607C-0.125528 9.47487 -0.125528 8.52512 0.376575 7.93934L6.80515 0.439339C7.30725 -0.146447 8.12132 -0.146447 8.62342 0.43934C9.12553 1.02513 9.12553 1.97487 8.62342 2.56066L3.10399 9Z",fill:e.arrowsColor},null,8,Uje)]))],2)],4)):t.createCommentVNode("",!0),e.areSlidesArrowsVisible&&e.items.length>1?(t.openBlock(),t.createElementBlock("div",{key:1,class:"gsc-carousel__2d__arrow-right",style:t.normalizeStyle("max-width:"+e.arrowsMaxWidth+"!important"),onClick:s[1]||(s[1]=u=>f())},[t.createElementVNode("div",{class:t.normalizeClass(["gsc-carousel__2d__slide-button",{rounded:e.areSlidesArrowsRounded}])},[(t.openBlock(),t.createElementBlock("svg",Gje,[t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5.89601 9L0.376575 2.56066C-0.125528 1.97487 -0.125528 1.02513 0.376575 0.439339C0.878675 -0.146447 1.69275 -0.146447 2.19486 0.43934L8.62343 7.93934C9.12553 8.52513 9.12553 9.47487 8.62343 10.0607L2.19486 17.5607C1.69275 18.1464 0.878675 18.1464 0.376575 17.5607C-0.125528 16.9749 -0.125528 16.0251 0.376575 15.4393L5.89601 9Z",fill:e.arrowsColor},null,8,Hje)]))],2)],4)):t.createCommentVNode("",!0),t.createElementVNode("div",Wje,[e.areNavigationArrowsVisible?(t.openBlock(),t.createElementBlock("div",{key:0,class:"gsc-carousel__2d__navigation__arrow-left",onClick:s[2]||(s[2]=u=>n())},[(t.openBlock(),t.createElementBlock("svg",qje,[t.createElementVNode("path",{d:"M6.72998 13.894L1.46621 8.63028C0.84457 8.00863 0.84457 6.9914 1.46621 6.36976L6.72998 1.10599",stroke:B.arrowsColor},null,8,Yje)]))])):t.createCommentVNode("",!0),e.isPaginationVisible?(t.openBlock(),t.createElementBlock("div",Xje,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(u,d)=>(t.openBlock(),t.createElementBlock("div",{key:`i-${d}`,class:"gsc-carousel__2d__navigation__pagination__item",style:t.normalizeStyle({height:`${B.navigationHeight}px`,width:`${m.value===d?B.navigationActiveWidth:B.navigationActiveWidth/2}px`,borderRadius:`${B.navigationBorderRadius}px`,backgroundColor:`${m.value===d?B.navigationActiveColor:B.navigationColor}`,transition:"all 0.1s ease-in-out"}),onClick:h=>p(d)},null,12,Zje))),128))])):t.createCommentVNode("",!0),e.areNavigationArrowsVisible?(t.openBlock(),t.createElementBlock("div",{key:2,class:"gsc-carousel__2d__navigation__arrow-right",onClick:s[3]||(s[3]=u=>D.value.next())},[(t.openBlock(),t.createElementBlock("svg",Jje,[t.createElementVNode("path",{d:"M0.72998 1.10599L5.99375 6.36975C6.61539 6.9914 6.61539 8.00863 5.99375 8.63027L0.72998 13.894",stroke:B.arrowsColor},null,8,Kje)]))])):t.createCommentVNode("",!0)])],2))]))}},eUe=Oje(Qje,[["__scopeId","data-v-54620d25"]]),dC=(e,r)=>{const i=e.__vccOpts||e;for(const[B,D]of r)i[B]=D;return i};let xR=null;const uC={components:{},props:{titleCategory:{type:String,default:"RESUMEN"},dateGame:{type:String,default:""},colorBackgroundHome:{type:String,default:"#000000"},colorBackgroundAway:{type:String,default:"#FFFFFF"},logoHome:{type:String,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?"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<=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<=400?"thumbnail-highlights400":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)xR=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),xR.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},wR=()=>{t.useCssVars(e=>({"41af28e8":e.colorBackgroundHome+"45","90ae2246":e.colorBackgroundAway+"45","1d262e1e":e.colorBackgroundHome,"1d231c2d":e.colorBackgroundAway}))},kR=uC.setup;uC.setup=kR?(e,r)=>(wR(),kR(e,r)):wR;const Cw=e=>(t.pushScopeId("data-v-fd9d1e65"),e=e(),t.popScopeId(),e),tUe=Cw(()=>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)),aUe=[tUe],nUe=Cw(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/paper-texture.png",alt:"",class:"paper-texture position-image"},null,-1)),rUe=["src"],iUe=Cw(()=>t.createElementVNode("div",{class:"gradient-back position-image"},null,-1)),oUe=Cw(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/halftone-texture.png",alt:"",class:"halftone-texture position-image"},null,-1)),sUe=["src"],lUe=["src"],cUe={class:"text-container"};function dUe(e,r,i,B,D,c){return t.openBlock(),t.createElementBlock("div",{ref:"gamesContainer",class:t.normalizeClass(c.thumbnailhighlights)},[t.createElementVNode("div",{class:t.normalizeClass(c.playbutton),onClick:r[0]||(r[0]=(...m)=>c.onclickPlayVideos&&c.onclickPlayVideos(...m))},aUe,2),i.dateGame!=""?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(c.date)},t.toDisplayString(i.dateGame),3)):t.createCommentVNode("",!0),i.matchday!=""&&i.seasonName!=""?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(c.containerinfogame)},[i.matchday!=""?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(c.matchcontainer)},t.toDisplayString(i.matchday),3)):t.createCommentVNode("",!0),i.seasonName!=""?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(c.seasoncontainer)},t.toDisplayString(i.seasonName),3)):t.createCommentVNode("",!0)],2)):t.createCommentVNode("",!0),nUe,t.createElementVNode("img",{src:i.background,alt:"",class:"bkg-blackwhite position-image"},null,8,rUe),t.createElementVNode("div",{class:t.normalizeClass([c.baselogo,"position-image"])},null,2),t.createElementVNode("div",{class:t.normalizeClass(c.baselogoright)},null,2),iUe,oUe,t.createElementVNode("img",{src:i.logoHome,alt:"",class:t.normalizeClass(c.teamlogo)},null,10,sUe),t.createElementVNode("img",{src:i.logoAway,alt:"",class:t.normalizeClass(c.logoright)},null,10,lUe),t.createElementVNode("div",cUe,[t.createElementVNode("span",{class:t.normalizeClass(c.secondline)},t.toDisplayString(i.score),3),t.createElementVNode("div",{class:t.normalizeClass(c.titlename)},t.toDisplayString(i.titleCategory),3)])],2)}const uUe=dC(uC,[["render",dUe],["__scopeId","data-v-fd9d1e65"]]);let CR=null;const hC={components:{},props:{type:{type:Number,default:0},colorBackgroundHome:{type:String,default:"#000000"},colorBackgroundAway:{type:String,default:"#FFFFFF"},nameCategory:{type:String,default:""},date:{type:String,default:""},seasonName:{type:String,default:""},matchday:{type:String,default:""},photoProfile:{type:String,default:""},logoHome:{type:String,default:""},logoAway:{type:String,default:""},scoreHome:{type:String,default:""},scoreAway:{type:String,default:""},background:{type:String,default:""},typeImg:{type:Number,default:0},nameHomeTeam:{type:String,default:""},nameAwayTeam:{type:String,default:""},namePlayer:{type:String,default:""}},data(){return{gamesContainerWidth:0}},computed:{playbutton(){const e=this.gamesContainerWidth;return e<=400?"play-button400":e<=540?"play-button540":e<=650?"play-button650":"play-button"},points(){const e=this.gamesContainerWidth;return e<=400?"points400":e<=540?"points540":e<=650?"points650":"points"},containerinfogame(){const e=this.gamesContainerWidth;return e<=400?"container-info-game400":e<=540?"container-info-game540":e<=650?"container-info-game650":"container-info-game"},teamname(){const e=this.gamesContainerWidth;return e<=400?"team-name400":e<=540?"team-name540":e<=650?"team-name650":"team-name"},teamscore(){const e=this.gamesContainerWidth;return e<=400?"team-score400":e<=540?"team-score540":e<=650?"team-score650":"team-score"},teamlogo(){const e=this.gamesContainerWidth;return e<=400?"team-logo400":e<=540?"team-logo540":e<=650?"team-logo650":"team-logo"},hometeam(){const e=this.gamesContainerWidth;return e<=400?"home-team400":e<=540?"home-team540":e<=650?"home-team650":"home-team"},awayteam(){const e=this.gamesContainerWidth;return e<=400?"away-team400":e<=540?"away-team540":e<=650?"away-team650":"away-team"},texttitle(){const e=this.gamesContainerWidth;return e<=400?"text-title400":e<=540?"text-title540":e<=650?"text-title650":"text-title"},matchcontainer(){const e=this.gamesContainerWidth;return e<=400?"match-container400":e<=540?"match-container540":e<=650?"match-container650":"match-container"},seasonnameContainer(){const e=this.gamesContainerWidth;return e<=280?"seasonname280":e<=400?"seasonname400":e<=540?"seasonname540":e<=650?"seasonname650":"seasonname"},matchboxContainer(){const e=this.gamesContainerWidth;return e<=400?"matchbox400":e<=540?"matchbox540":e<=650?"matchbox650":"matchbox"},seasoncontainer(){const e=this.gamesContainerWidth;return e<=400?"season-container400":e<=540?"season-container540":e<=650?"season-container650":"season-container"},texttitle2(){const e=this.gamesContainerWidth;return e<=300?"text-title2400":e<=540?"text-title2540":e<=650?"text-title2650":"text-title2"},playerimage(){const e=this.gamesContainerWidth;return e<=400?"player-image400":e<=540?"player-image540":e<=650?"player-image650":"player-image"},thumbnailhighlights(){const e=this.gamesContainerWidth;return e<=400?"thumbnail-highlights400":e<=540?"thumbnail-highlights540":e<=650?"thumbnail-highlights650":"thumbnail-highlights"}},methods:{onclickPlayVideos(){this.$emit("onclickPlayVideos")},setUpResizeObserver(){if(window.ResizeObserver)CR=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),CR.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},SR=()=>{t.useCssVars(e=>({"16e4cc48":e.colorBackgroundHome,"16e1ba57":e.colorBackgroundAway,"0a08a218":e.colorBackgroundAway+"62",31881400:e.colorBackgroundHome+"36"}))},TR=hC.setup;hC.setup=TR?(e,r)=>(SR(),TR(e,r)):SR;const Sw=e=>(t.pushScopeId("data-v-4fef1a3b"),e=e(),t.popScopeId(),e),hUe=Sw(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/paper-texture.png",alt:"",class:"paper-texture position-image"},null,-1)),pUe=Sw(()=>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)),fUe=[pUe],mUe={class:"player-container"},gUe=["src"],yUe=["src"],vUe=["src"],_Ue={class:"container-score"},bUe=["src"],xUe=["src"],wUe=["src"],kUe=Sw(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/halftone-texture.png",alt:"",class:"halftone-texture position-image"},null,-1)),CUe=Sw(()=>t.createElementVNode("div",{class:"gradient-color"},null,-1));function SUe(e,r,i,B,D,c){return t.openBlock(),t.createElementBlock("div",{ref:"gamesContainer",class:t.normalizeClass(c.thumbnailhighlights)},[hUe,t.createElementVNode("div",{class:t.normalizeClass(c.playbutton),onClick:r[0]||(r[0]=(...m)=>c.onclickPlayVideos&&c.onclickPlayVideos(...m))},fUe,2),t.createElementVNode("div",mUe,[t.createElementVNode("div",{class:t.normalizeClass(c.containerinfogame)},[t.createElementVNode("div",{class:t.normalizeClass(c.matchcontainer)},[t.createElementVNode("div",{class:t.normalizeClass(c.matchboxContainer)},t.toDisplayString(i.matchday),3),t.createElementVNode("div",{class:t.normalizeClass(c.seasonnameContainer)},t.toDisplayString(i.seasonName),3)],2),t.createElementVNode("div",{class:t.normalizeClass(c.seasoncontainer)},t.toDisplayString(i.date),3)],2),i.type==0?(t.openBlock(),t.createElementBlock("span",{key:0,class:t.normalizeClass(c.texttitle)},t.toDisplayString(i.nameCategory),3)):(t.openBlock(),t.createElementBlock("span",{key:1,class:t.normalizeClass(c.texttitle2)},t.toDisplayString(i.nameCategory),3)),i.typeImg==0?(t.openBlock(),t.createElementBlock("img",{key:2,src:i.photoProfile,class:t.normalizeClass(c.playerimage)},null,10,gUe)):t.createCommentVNode("",!0),i.typeImg==1?(t.openBlock(),t.createElementBlock("img",{key:3,src:i.photoProfile,alt:""},null,8,yUe)):t.createCommentVNode("",!0),i.typeImg==2?(t.openBlock(),t.createElementBlock("img",{key:4,src:i.photoProfile,class:"img-number"},null,8,vUe)):t.createCommentVNode("",!0),t.createElementVNode("div",_Ue,[t.createElementVNode("div",{class:t.normalizeClass(c.hometeam)},[t.createElementVNode("span",{class:t.normalizeClass(c.teamname)},t.toDisplayString(i.nameHomeTeam),3),t.createElementVNode("img",{src:i.logoHome,alt:"",class:t.normalizeClass(c.teamlogo)},null,10,bUe),t.createElementVNode("span",{class:t.normalizeClass(c.teamscore)},t.toDisplayString(i.scoreHome),3)],2),t.createElementVNode("span",{class:t.normalizeClass(c.points)},":",2),t.createElementVNode("div",{class:t.normalizeClass(c.awayteam)},[t.createElementVNode("span",{class:t.normalizeClass(c.teamscore)},t.toDisplayString(i.scoreAway),3),t.createElementVNode("img",{src:i.logoAway,alt:"",class:t.normalizeClass(c.teamlogo)},null,10,xUe),t.createElementVNode("span",{class:t.normalizeClass(c.teamname)},t.toDisplayString(i.nameAwayTeam),3)],2)])]),t.createElementVNode("img",{src:i.background,alt:"",class:"bkg-blackwhite position-image"},null,8,wUe),kUe,CUe],2)}const TUe=dC(hC,[["render",SUe],["__scopeId","data-v-4fef1a3b"]]),EUe={components:{GSCCarousel:eUe,GSCThumbnailHighlightGameHistoric:uUe,GSCThumbnailHighlightGamePlayer:TUe},props:{items:{type:Array,default:()=>[1,2,3]},data:{type:Object,default:()=>{}},title:{type:String,default:"TODAS SUS JUGADAS"},canPlayVideos:{type:Boolean,default:!0},videoPrivilegesPlayingAs:{type:Set,default:()=>new Set([1,2])},privilegesTeamId:{type:Number,default:0}},data(){return{highlightsWidth:0,printData:[],resizeObserverGSCH:null,token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",lastHistoricGamesUrl:""}},watch:{data:{immediate:!0,handler(e){this.getData(e)}}},computed:{printDataFiltered(){return this.canPlayVideos?this.printData.filter(e=>this.videoPrivilegesPlayingAs.has(e.playingAs)):[]},isMobile(){return this.highlightsWidth<580},carouselProps(){return this.isMobile?{wrapAround:!0,itemsToShow:1.2,isMainSlidePriority:!0,areSlidesArrowsVisible:!1,areSlidesArrowsRounded:!1,areNavigationArrowsVisible:!1,isPaginationVisible:!0}:{wrapAround:!0,itemsToShow:1.8,isMainSlidePriority:!0,areSlidesArrowsVisible:!0,areSlidesArrowsRounded:!0,areNavigationArrowsVisible:!1}}},methods:{getPlayingAs(e,r){return e.home_team===(r||this.data.team)?1:2},obtenerNombreCompletoFecha(e){if(e){const r=new Date(e),i=["Domingo","Lunes","Martes","Miércoles","Jueves","Viernes","Sábado"][r.getUTCDay()],B=r.getUTCDate(),D=["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"][r.getUTCMonth()];return`${i} ${B} de ${D}`}else return""},onclickPlayVideos(e){var r=[];e.type==2?e.data.position_id==1?e.data.has_relevants==1?e.data.category==0?r=[55,324,323,608,39,774,802,52,53,40,42,54]:r=e.data.category:r=[55,324,323,608,39,774,802,52,53,40,42,54]:e.data.has_relevants==1?e.data.category==0?r=[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]:r=e.data.category:r=[56,57,59,60,326,213,214,215,216,583,584,122,123,124,125,585,586,128,129,130,131,133,327,587,588,136,137,138,139,589,590,142,143,144,145,146,147,485,486,487,488,489,490,491,492,10,27,597,598,538,539,599,600,541,542,601,602,545,546,603,604,548,549,561,562,100,563,564,103,104,105,106,107,108,565,566,111,567,568,114,115,116,117,118,119,4,88,5,34,402,459,460,461,233,403,456,457,458,236,404,453,454,455,240,405,450,451,452,243,408,447,448,449,283,409,444,445,446,285,410,441,442,443,290,411,438,439,440,292,412,435,436,437,297,414,415,416,417,244,418,419,420,421,401,581,582,331,506,530,579,580,334,507,531,577,578,344,508,532,575,576,424,509,533,573,574,341,529,534,571,572,340,528,535,569,570,427,527,536,348,349,350,465,352,353,354,466,14,52,15,53,218,219,220,221,496,497,498,499,500,501,502,503,217,504,505,521,522,543,33,209,208,517,206,207,26,325,16,51,463,151,154,156,591,592,159,162,163,429,165,593,594,168,171,172,430,174,595,596,177,180,181,431,467,358,361,363,366,369,370,469,372,376,378,379,470,381,385,387,388,471,607,608,210,212]:e.type==3?e.data.category==0?r=[607,608,12,55,54,35,14,52,15,53,466,477,40,257,39]:r=e.data.category:e.data.category!=0?r=e.data.category:r=[607,608,12,55,54,35,14,52,15,53,466,477];const i=[1,2,3];let B={seasonId:e.data.season_id,mainSectionType:1,playListType:e.type,categoryIds:r,gameIdsToFilter:e.data.game_id?[e.data.game_id]:null,playerIds:e.data.position_id!=1?e.data.player_id?[e.data.player_id]:[]:[],goalkeeperIds:e.data.position_id==1?e.data.player_id?[e.data.player_id]:[]:[],teamId:e.data.team_id?e.data.team_id:e.data.team_id_b?e.data.team_id_b:0,matchResult:e.data.matchResult?[e.data.matchResult]:i,advancedFilter:{playListTitle:""}};e.data.category!==0&&(B.advancedFilter.mainCategoryId=e.data.category),this.$emit("openmedia",B)},play(e){this.$emit("play",e)},async getData(e){this.$emit("loading",!0);const r=Sje.create({headers:{Authorization:`${this.token}`}});var i=[],B={};if(e.type=="player"){const D=await r.get("https://uof4tt5l46.execute-api.us-west-2.amazonaws.com/prod/v3/playerInfo/"+e.season+"/"+e.player);if(D.data.seasons[e.season])for(let c=0;c<D.data.seasons[e.season].games_played.length;c++)B={playingAs:this.getPlayingAs(D.data.seasons[e.season].games_played[c],D.data.team_id),category:0,player_id:D.data.player_id,position_id:D.data.position_id,color:D.data.info_thumbnails.colors.background_color,photo_profile:D.data.info_thumbnails.images.player_in_action[0]?"https://golstatsimages.blob.core.windows.net/images-library/"+D.data.info_thumbnails.images.player_in_action[0]:D.data.info_thumbnails.player_profile,team_logo:"https://az755631.vo.msecnd.net/teams-150/"+D.data.seasons[e.season].games_played[c].home_team+".png",player_name:D.data.seasons[e.season].games_played[c].home_team_acronym+" "+D.data.seasons[e.season].games_played[c].home_team_score+" : "+D.data.seasons[e.season].games_played[c].visiting_team_score+" "+D.data.seasons[e.season].games_played[c].visiting_team_acronym,team_id:D.data.team_id,has_relevants:D.data.seasons[e.season].games_played[c].has_relevants,team_id_b:D.data.seasons[e.season].games_played[c].home_team,season_id:D.data.seasons[e.season].games_played[c].season_id,name:D.data.seasons[e.season].games_played[c].player_name,seasonname:D.data.seasons[e.season].name.replace("Clausura","CL ").replace("Apertura","AP "),game_id:D.data.seasons[e.season].games_played[c].game_id,match:D.data.seasons[e.season].games_played[c].matchday_name.replace("Matchday","JOR").replace("de Final","").replace("Playoffs 1","CFI").replace("Playoffs 2","CFV").replace("Playoffs 3","SFI").replace("Playoffs 4","SFV").replace("Playoffs 5","FI").replace("Playoffs 6","FV"),date:this.obtenerNombreCompletoFecha(D.data.seasons[e.season].games_played[c].date),scorehome:D.data.seasons[e.season].games_played[c].home_team_score,scoreaway:D.data.seasons[e.season].games_played[c].visiting_team_score,hometeamacronym:D.data.seasons[e.season].games_played[c].home_team_acronym,visitingteamacronym:D.data.seasons[e.season].games_played[c].visiting_team_acronym,background:D.data.info_thumbnails.images.background_player_in_action[0]?"https://golstatsimages.blob.core.windows.net/images-library/"+D.data.info_thumbnails.images.background_player_in_action[0]:D.data.info_thumbnails.player_profile,backgroundhome:D.data.seasons[e.season].games_played[c].info_thumbnails.home_colors.background_color,backgroundaway:D.data.seasons[e.season].games_played[c].info_thumbnails.away_colors.background_color,logohome:"https://az755631.vo.msecnd.net/teams-150/"+D.data.seasons[e.season].games_played[c].home_team+".png",logoaway:"https://az755631.vo.msecnd.net/teams-150/"+D.data.seasons[e.season].games_played[c].visiting_team+".png",total:D.data.seasons[e.season].games_played[c].matchday_abbreviation.replace("M","Jor "),background_card:"https://az755631.vo.msecnd.net/golstats2-teams/"+D.data.seasons[e.season].games_played[c].home_team+"_"+D.data.seasons[e.season].games_played[c].season_id+"_r1.jpg"},i.push(B);else for(let c=0;c<D.data.national_seasons[e.season].games_played.length;c++)B={playingAs:this.getPlayingAs(D.data.national_seasons[e.season].games_played[c],D.data.team_id),category:0,player_id:D.data.player_id,position_id:D.data.position_id,color:D.data.info_thumbnails.colors.background_color,photo_profile:D.data.info_thumbnails.images.player_in_action[0]?"https://golstatsimages.blob.core.windows.net/images-library/"+D.data.info_thumbnails.images.player_in_action[0]:D.data.info_thumbnails.player_profile,team_logo:"https://az755631.vo.msecnd.net/teams-150/"+D.data.national_seasons[e.season].games_played[c].home_team+".png",player_name:D.data.national_seasons[e.season].games_played[c].home_team_acronym+" "+D.data.national_seasons[e.season].games_played[c].home_team_score+" : "+D.data.national_seasons[e.season].games_played[c].visiting_team_score+" "+D.data.national_seasons[e.season].games_played[c].visiting_team_acronym,team_id:D.data.team_id,has_relevants:D.data.national_seasons[e.season].games_played[c].has_relevants,team_id_b:D.data.national_seasons[e.season].games_played[c].home_team,season_id:D.data.national_seasons[e.season].games_played[c].season_id,name:D.data.national_seasons[e.season].games_played[c].player_name,seasonname:D.data.national_seasons[e.season].name.replace("Clausura","CL ").replace("Apertura","AP "),game_id:D.data.national_seasons[e.season].games_played[c].game_id,match:D.data.national_seasons[e.season].games_played[c].matchday_name.replace("Matchday","JOR").replace("de Final","").replace("Playoffs 1","CFI").replace("Playoffs 2","CFV").replace("Playoffs 3","SFI").replace("Playoffs 4","SFV").replace("Playoffs 5","FI").replace("Playoffs 6","FV"),date:this.obtenerNombreCompletoFecha(D.data.national_seasons[e.season].games_played[c].date),scorehome:D.data.national_seasons[e.season].games_played[c].home_team_score,scoreaway:D.data.national_seasons[e.season].games_played[c].visiting_team_score,hometeamacronym:D.data.national_seasons[e.season].games_played[c].home_team_acronym,visitingteamacronym:D.data.national_seasons[e.season].games_played[c].visiting_team_acronym,background:D.data.info_thumbnails.images.background_player_in_action[0]?"https://golstatsimages.blob.core.windows.net/images-library/"+D.data.info_thumbnails.images.background_player_in_action[0]:D.data.info_thumbnails.player_profile,backgroundhome:D.data.national_seasons[e.season].games_played[c].info_thumbnails.home_colors.background_color,backgroundaway:D.data.national_seasons[e.season].games_played[c].info_thumbnails.away_colors.background_color,logohome:"https://az755631.vo.msecnd.net/teams-150/"+D.data.national_seasons[e.season].games_played[c].home_team+".png",logoaway:"https://az755631.vo.msecnd.net/teams-150/"+D.data.national_seasons[e.season].games_played[c].visiting_team+".png",total:D.data.national_seasons[e.season].games_played[c].matchday_abbreviation.replace("M","Jor "),background_card:"https://az755631.vo.msecnd.net/golstats2-teams/"+D.data.national_seasons[e.season].games_played[c].home_team+"_"+D.data.national_seasons[e.season].games_played[c].season_id+"_r1.jpg"},i.push(B)}else if(e.type=="historic"){const D="https://fxtcaw9tw6.execute-api.us-east-2.amazonaws.com/prod/historic/games/"+e.game;if(this.lastHistoricGamesUrl===D)return;this.lastHistoricGamesUrl=D;const c=await r.get(D);for(let a=0;a<c.data.plays.length;a++)B={teamId:c.data.plays[a][2],player:"Jornada "+c.data.plays[a][6],player_name:c.data.plays[a][4],season_id:c.data.plays[a][31],game_id:c.data.plays[a][3],img:"https://img1.wallspic.com/previews/0/9/1/0/20190/20190-football_player-football-fun-player-sports-x750.jpg"},i.length>0?this.privilegesTeamId==0?!i.filter(y=>y.game_id===c.data.plays[a][3]).length>0&&i.push(B):!i.filter(y=>y.game_id===c.data.plays[a][3]).length>0&&c.data.plays[a][2]===this.privilegesTeamId&&i.push(B):(this.privilegesTeamId==0||c.data.plays[a][2]===this.privilegesTeamId)&&i.push(B);const m=c.data.thumbnails;for(let a=0;a<i.length;a++){const y=Math.floor(Math.random()*m[i[a].game_id].info_thumbnails.images.background_default_games.length);i[a].background="https://golstatsimages.blob.core.windows.net/images-library/"+m[i[a].game_id].info_thumbnails.images.background_default_games[y],i[a].backgroundhome=m[i[a].game_id].info_thumbnails.home_colors.background_color,i[a].backgroundaway=m[i[a].game_id].info_thumbnails.away_colors.background_color,i[a].logoaway="https://az755631.vo.msecnd.net/teams-150/"+m[i[a].game_id].info_thumbnails.away_colors.team_id+".png",i[a].logohome="https://az755631.vo.msecnd.net/teams-150/"+m[i[a].game_id].info_thumbnails.home_colors.team_id+".png",i[a].match=m[i[a].game_id].matchday_name.replace("Matchday","Jor"),i[a].playingAs=m[i[a].game_id].info_thumbnails.home_colors.team_id===i[a].teamId?1:2,i[a].seasonname=m[i[a].game_id].season_name,i[a].score=m[i[a].game_id].score[0]+" - "+m[i[a].game_id].score[1],i[a].category=0}}else{const D=await r.get("https://ws8d8ye2ii.execute-api.us-west-2.amazonaws.com/prod/v4/seasonsByTeam/"+e.team);for(let c=0;c<D.data.seasons[e.season].games.length;c++){const m=Math.floor(Math.random()*D.data.seasons[e.season].games[c].info_thumbnails.images.background_default_games.length);B={playingAs:this.getPlayingAs(D.data.seasons[e.season].games[c],D.data.team_id),category:0,game_id:D.data.seasons[e.season].games[c].game_id,photo_profile:"https://az755631.vo.msecnd.net/teams-150/"+D.data.seasons[e.season].games[c].visiting_team+".png",team_logo:"https://az755631.vo.msecnd.net/teams-150/"+D.data.seasons[e.season].games[c].home_team+".png",player_name:D.data.seasons[e.season].games[c].home_team_acronym+" "+D.data.seasons[e.season].games[c].home_team_score+" : "+D.data.seasons[e.season].games[c].visiting_team_score+" "+D.data.seasons[e.season].games[c].visiting_team_acronym,team_id_b:D.data.seasons[e.season].games[c].home_team,team_id:D.data.team_id,season_id:D.data.seasons[e.season].games[c].season_id,name:"",seasonname:D.data.seasons[e.season].name,match:D.data.seasons[e.season].games[c].matchday_name.replace("Matchday","Jor"),score:D.data.seasons[e.season].games[c].home_team_score+" : "+D.data.seasons[e.season].games[c].visiting_team_score,background:"https://golstatsimages.blob.core.windows.net/images-library/"+D.data.seasons[e.season].games[c].info_thumbnails.images.background_default_games[m],backgroundhome:D.data.seasons[e.season].games[c].info_thumbnails.home_colors.background_color,backgroundaway:D.data.seasons[e.season].games[c].info_thumbnails.away_colors.background_color,logohome:"https://az755631.vo.msecnd.net/teams-150/"+D.data.seasons[e.season].games[c].home_team+".png",logoaway:"https://az755631.vo.msecnd.net/teams-150/"+D.data.seasons[e.season].games[c].visiting_team+".png",total:D.data.seasons[e.season].games[c].matchday_abbreviation.replace("M","Jor "),background_card:"https://az755631.vo.msecnd.net/golstats2-teams/"+D.data.seasons[e.season].games[c].home_team+"_"+D.data.seasons[e.season].games[c].season_id+"_r1.jpg"},i.push(B)}}this.printData=i,this.$emit("loading",!1)},setUpResizeObserver(){this.resizeObserverGSCH=new ResizeObserver(e=>{for(const r of e)this.highlightsWidth=r.contentRect.width}),this.resizeObserverGSCH.observe(this.$refs.highlights)}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},1e3)}},AUe={key:0,ref:"highlights",class:"carousel-high-lights",id:"carousel-high-lights"};function MUe(e,r,i,B,D,c){const m=t.resolveComponent("GSCThumbnailHighlightGameHistoric"),a=t.resolveComponent("GSCThumbnailHighlightGamePlayer"),y=t.resolveComponent("GSCCarousel");return c.printDataFiltered.length>0&&i.canPlayVideos?(t.openBlock(),t.createElementBlock("div",AUe,[t.createVNode(y,t.mergeProps(c.carouselProps,{items:c.printDataFiltered,arrowsMaxWidth:"65px",slideLeftArrowBackgroundImage:"linear-gradient(to right, rgba(22, 37, 49, 1), rgba(0, 0, 0, 0))",slideRightArrowBackgroundImage:"linear-gradient(to left, rgba(22, 37, 49, 1), rgba(0, 0, 0, 0))",secondarySlidesOpacity:.2}),{default:t.withCtx(({item:f})=>[i.data.type=="team"||i.data.type=="historic"?(t.openBlock(),t.createBlock(m,{key:0,items:f,"color-background-home":f.backgroundhome,"color-background-away":f.backgroundaway,"logo-home":f.logohome,"logo-away":f.logoaway,background:f.background,matchday:f.match,onOnclickPlayVideos:n=>c.onclickPlayVideos({data:f,type:1}),"season-name":f.seasonname,score:f.score},null,8,["items","color-background-home","color-background-away","logo-home","logo-away","background","matchday","onOnclickPlayVideos","season-name","score"])):(t.openBlock(),t.createBlock(a,{key:1,type:"player","name-player":f.name,"type-style":"game","color-background-home":f.backgroundhome,"color-background-away":f.backgroundaway,"type-img":"0",date:f.date,"season-name":f.seasonname,matchday:f.match,background:f.background,"name-home-team":f.hometeamacronym,"name-away-team":f.visitingteamacronym,"name-category":i.title,onOnclickPlayVideos:n=>c.onclickPlayVideos({data:f,type:2}),"logo-away":f.logoaway,"logo-home":f.logohome,"score-home":f.scorehome,"photo-profile":f.photo_profile,"score-away":f.scoreaway},null,8,["name-player","color-background-home","color-background-away","date","season-name","matchday","background","name-home-team","name-away-team","name-category","onOnclickPlayVideos","logo-away","logo-home","score-home","photo-profile","score-away"]))]),_:1},16,["items"])],512)):t.createCommentVNode("",!0)}const IUe=dC(EUe,[["render",MUe]]);let ER=null;const PUe={components:{GSCHighlights:IUe,GSCPlayerTeamGame:L9,GSCCard:U9},props:{isWidget:{type:Boolean,default:!1},teamWidget:{type:Number,default:0},config:{type:Object,default:()=>{}},videoPrivilegesPlayingAs:{type:Set,default:()=>new Set([1,2])},tournamentSelected:{type:Object,default:()=>({})},playVideosPrivileges:{type:Object,default:null}},computed:{vpPlayingAs(){let e=new Set([]);return this.canPlayVideos.home&&!this.canPlayVideos.away&&(e=new Set([1])),!this.canPlayVideos.home&&this.canPlayVideos.away&&(e=new Set([2])),this.canPlayVideos.home&&this.canPlayVideos.away&&(e=new Set([1,2])),e},canPlayVideos(){let e={home:!0,away:!0};return this.playVideosPrivileges&&(this.playVideosPrivileges.canPrivilegesTeamPlayVideos?this.playVideosPrivileges.isPrivilegesTeamOnly?e={home:this.playVideosPrivileges.isPrivilegesTeamHome,away:!this.playVideosPrivileges.isPrivilegesTeamHome}:e={home:!0,away:!0}:e={home:!1,away:!1}),e},gridcarrouselesitemsClass(){return this.gamesContainerWidth<=900?"grid-carrouseles-items900":"grid-carrouseles-items"},gridcarrouselesitemsitemunoClass(){return this.gamesContainerWidth<=900?"grid-carrouseles-items-itemuno900":"grid-carrouseles-items-itemuno"},gridcarrouselesitemsitemdosClass(){return this.gamesContainerWidth<=900?"grid-carrouseles-items-itemdos900":"grid-carrouseles-items-itemdos"},videopartidopltegadatosClass(){return this.gamesContainerWidth<=900?"video-partido-pltega-datos900":"video-partido-pltega-datos"},videopartidopltegaplayersClass(){return this.gamesContainerWidth<=900?"video-partido-pltega-players620":"video-partido-pltega-players"}},data(){return{gamesContainerWidth:0,token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",gameInfo:{},printData:[],teamsInfoResponse:null,gamesBySeasonResponse:null,bestPlaysBySeasonAndGameResponse:null,bestPlaysBySeasonAndHomeTeamResponse:null,bestPlaysBySeasonAndAwayTeamResponse:null}},async mounted(){setTimeout(()=>{this.setUpResizeObserver()},100),await this.fillData()},methods:{setGameInfo(e){const r=e.data.games.findIndex(i=>i.game_id===this.config.game);this.gameInfo=e.data.games[r]},onclickPlayVideos(e){var r=[];e.type==2?e.data.position_id==1?e.data.category==0?r=[55,324,323,608,39,774,802,52,53,40,54]:r=e.data.category:e.data.category==0?r=[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]:r=e.data.category:e.type==3?e.data.category==0?r=[607,608,12,55,54,35,14,52,15,53,466,477,40,257,39]:r=e.data.category:e.data.category!=0?r=e.data.category:r=[607,608,12,55,54,35,14,52,15,53,466,477];const i=[1,2,3];let B={seasonId:e.data.season_id,mainSectionType:1,playListType:e.type,categoryIds:r,gameIds:null,playerIds:e.data.position_id!=1?e.data.player_id?[e.data.player_id]:[]:[],goalkeeperIds:e.data.position_id==1?e.data.player_id?[e.data.player_id]:[]:[],teamId:e.data.team_id?e.data.team_id:0,matchResult:e.data.matchResult?[data.matchResult]:i,playData:{},advancedFilter:{playListTitle:""}};e.data.category!==0&&(B.advancedFilter.mainCategoryId=e.data.category),this.$emit("openmedia",B)},openmedia(e){this.$emit("openmedia",e)},setUpResizeObserver(){if(window.ResizeObserver)ER=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),ER.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")},async fillData(){const e=Jm.create({headers:{Authorization:`${this.token}`}}),r=e.get("https://8tvo5bp9ai.execute-api.us-west-2.amazonaws.com/prod/gamesBySeason/"+this.config.season_id);this.gameInfo={};let i=null;!this.config.homeTeamId&&!this.config.awayTeamId&&(i=await r,this.setGameInfo(i));const B=e.get("https://d2oco6mqmc.execute-api.us-west-2.amazonaws.com/prod/teamsBySeason/"+this.config.season_id),D=e.get("https://wlduw4woy3.execute-api.us-east-2.amazonaws.com/prod/best-plays/seasons/"+this.config.season_id+"/teams/"+this.config.homeTeamId||this.gameInfo.home_team),c=e.get("https://wlduw4woy3.execute-api.us-east-2.amazonaws.com/prod/best-plays/seasons/"+this.config.season_id+"/teams/"+this.config.awayTeamId||this.gameInfo.visiting_team),m=e.get("https://wlduw4woy3.execute-api.us-east-2.amazonaws.com/prod/best-plays/seasons/"+this.config.season_id+"/games/"+this.config.game),a=[D,c,m,B];i||a.push(r);const[y,f,n,v,_]=await Promise.all(a);i||this.setGameInfo(_),this.teamsInfoResponse=v,this.gamesBySeasonResponse=_||i,this.bestPlaysBySeasonAndGameResponse=n,this.bestPlaysBySeasonAndHomeTeamResponse=y,this.bestPlaysBySeasonAndAwayTeamResponse=f;let p=[],l={};for(let o=0;o<n.data.games[0].players.length;o++){const s=Math.floor(Math.random()*n.data.games[0].players[o].info_thumbnails.images.background_player_in_action.length),u=Math.floor(Math.random()*n.data.games[0].players[o].info_thumbnails.images.player_in_action.length);l={background_color_buttons:n.data.games[0].players[o].info_thumbnails.colors.background_color_buttons,background_color_cards:n.data.games[0].players[o].info_thumbnails.colors.background_color_cards,color_icon_play:n.data.games[0].players[o].info_thumbnails.colors.color_icon_play,color_next_back:n.data.games[0].players[o].info_thumbnails.colors.color_next_back,font_color:n.data.games[0].players[o].info_thumbnails.colors.font_color,font_color_card:n.data.games[0].players[o].info_thumbnails.colors.font_color_cards,colorbackgroundhome:n.data.games[0].players[o].info_thumbnails.colors.background_color,colorbackgroundaway:"",nameplayer:n.data.games[0].players[o].player_name,background:n.data.games[0].players[o].info_thumbnails.images.background_player_in_action[s]?"https://golstatsimages.blob.core.windows.net/images-library/"+n.data.games[0].players[o].info_thumbnails.images.background_player_in_action[s]:"https://golstatsimages.blob.core.windows.net/images-library/"+n.data.games[0].players[o].info_thumbnails.images.background_default_players[0],namecategory:"RESUMEN",namehometeam:"",nameawayteam:"",logohome:n.data.games[0].players[o].team_logo,photoprofile:n.data.games[0].players[o].info_thumbnails.images.player_in_action[u]?"https://golstatsimages.blob.core.windows.net/images-library/"+n.data.games[0].players[o].info_thumbnails.images.player_in_action[u]:`https://az755631.vo.msecnd.net/players-profile/${n.data.games[0].players[o].player_id}.png`,logoaway:"",scoreaway:"",scorehome:"",game_id:n.data.games[0].game_id,season_id:n.data.games[0].players[o].season_id,category:0,team_id:n.data.games[0].players[o].team_id},p.push(l)}this.printData=p}}},BUe=e=>(t.pushScopeId("data-v-4dee2984"),e=e(),t.popScopeId(),e),NUe={ref:"gamesContainer",class:"container"},zUe={class:"video-partido-container"},OUe=BUe(()=>t.createElementVNode("div",{class:"title-video-datos"},"Este torneo:",-1)),FUe={key:0},LUe={key:1},DUe={key:1,class:"video-partido-pltega-games"},RUe={key:2,class:"video-partido-pltega-games-team"};function VUe(e,r,i,B,D,c){t.resolveComponent("GSCHighlights");const m=t.resolveComponent("GSCPlayerTeamGame"),a=t.resolveComponent("GSCCard");return t.openBlock(),t.createElementBlock("div",NUe,[t.createElementVNode("div",zUe,[t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(c.videopartidopltegaplayersClass)},[t.createVNode(m,{onOpenmedia:c.openmedia,style:{"margin-top":"0px"},"background-color":"#172531",type:3,"px-scroll":338,"scroll-color":"none","arrows-position":"absolute","arrows-scroll-hide":!0,arrowsBackground:"rgba(255,255,255,.16)",arrowsContainerBgL:"linear-gradient(270deg, rgba(22,37,50,0) 0%, rgba(22,37,50,1) 70%)",arrowsContainerBgR:"linear-gradient(90deg, rgba(22,37,50,0) 0%, rgba(22,37,50,1) 70%)",arrowsMargin:0,arrowsRadius:"50%",arrowsBorder:"#ddd",title:i.tournamentSelected.is_female==1?"Jugadoras (sus mejores jugadas):":"Jugadores (sus mejores jugadas):",data:{season:i.config.season_id,game:i.config.game,isPrematch:1},"video-privileges-playing-as":c.vpPlayingAs,"play-videos-privileges":i.playVideosPrivileges,"await-for-teams-info":"","await-for-best-plays-by-season-and-game":"","teams-info-response":D.teamsInfoResponse,"best-plays-by-season-and-game-response":D.bestPlaysBySeasonAndGameResponse,onOnClickVideos:e.onClickVideos,onOnClickCard:e.onClickCard},null,8,["onOpenmedia","title","data","video-privileges-playing-as","play-videos-privileges","teams-info-response","best-plays-by-season-and-game-response","onOnClickVideos","onOnClickCard"])],2),t.createElementVNode("div",{class:t.normalizeClass(c.videopartidopltegadatosClass)},[OUe,t.createElementVNode("div",{class:t.normalizeClass(c.gridcarrouselesitemsClass)},[t.createElementVNode("div",{class:t.normalizeClass(c.gridcarrouselesitemsitemunoClass)},[i.isWidget?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[D.gameInfo.home_team==i.teamWidget?(t.openBlock(),t.createElementBlock("div",FUe,[c.canPlayVideos.home&&D.printData[0]?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[D.printData[0].team_id==D.gameInfo.home_team?(t.openBlock(),t.createBlock(a,{key:0,type:1,onOnClickVideos:r[0]||(r[0]=y=>c.onclickPlayVideos({data:D.printData[0],type:3})),onOnClickCard:r[1]||(r[1]=y=>c.onclickPlayVideos({data:D.printData[0],type:3})),"click-card":!1,borderColor:"rgba(255, 255, 255, 0.16)",backgroundColor:D.printData[0].colorbackgroundhome,"background-img":D.printData[0].background,data:{team_name:D.gameInfo.home_team_name,player_photo:D.printData[0].photoprofile,team_id:D.gameInfo.home_team,background_color_buttons:D.printData[0].background_color_buttons,background_color_cards:D.printData[0].background_color_cards,color_icon_play:D.printData[0].color_icon_play,color_next_back:D.printData[0].color_next_back,font_color:D.printData[0].font_color,font_color_card:D.printData[0].font_color_card},"can-play-videos":c.canPlayVideos.home},null,8,["backgroundColor","background-img","data","can-play-videos"])):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),D.gameInfo.visiting_team==i.teamWidget?(t.openBlock(),t.createElementBlock("div",LUe,[c.canPlayVideos.away&&D.printData[1]?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[D.printData[1].team_id==D.gameInfo.visiting_team?(t.openBlock(),t.createBlock(a,{key:0,type:1,onOnClickVideos:r[2]||(r[2]=y=>c.onclickPlayVideos({data:D.printData[1],type:3})),onOnClickCard:r[3]||(r[3]=y=>c.onclickPlayVideos({data:D.printData[1],type:3})),"click-card":!1,borderColor:"rgba(255, 255, 255, 0.16)",backgroundColor:D.printData[1].colorbackgroundhome,"background-img":D.printData[1].background,data:{team_name:D.gameInfo.visiting_team_name,player_photo:D.printData[1].photoprofile,team_id:D.gameInfo.visiting_team,background_color_buttons:D.printData[1].background_color_buttons,background_color_cards:D.printData[1].background_color_cards,color_icon_play:D.printData[1].color_icon_play,color_next_back:D.printData[1].color_next_back,font_color:D.printData[1].font_color,font_color_card:D.printData[1].font_color_card},"can-play-videos":c.canPlayVideos.away},null,8,["backgroundColor","background-img","data","can-play-videos"])):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[c.canPlayVideos.home&&D.printData[0]?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[D.printData[0].team_id==D.gameInfo.home_team?(t.openBlock(),t.createBlock(a,{key:0,type:1,onOnClickVideos:r[4]||(r[4]=y=>c.onclickPlayVideos({data:D.printData[0],type:3})),onOnClickCard:r[5]||(r[5]=y=>c.onclickPlayVideos({data:D.printData[0],type:3})),"click-card":!1,borderColor:"rgba(255, 255, 255, 0.16)",backgroundColor:D.printData[0].colorbackgroundhome,"background-img":D.printData[0].background,data:{team_name:D.gameInfo.home_team_name,player_photo:D.printData[0].photoprofile,team_id:D.gameInfo.home_team,background_color_buttons:D.printData[0].background_color_buttons,background_color_cards:D.printData[0].background_color_cards,color_icon_play:D.printData[0].color_icon_play,color_next_back:D.printData[0].color_next_back,font_color:D.printData[0].font_color,font_color_card:D.printData[0].font_color_card},"can-play-videos":c.canPlayVideos.home},null,8,["backgroundColor","background-img","data","can-play-videos"])):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)],64))],2),t.createElementVNode("div",{class:t.normalizeClass(c.gridcarrouselesitemsitemdosClass)},[c.canPlayVideos.away&&D.printData[1]?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[D.printData[1].team_id==D.gameInfo.visiting_team&&!i.isWidget?(t.openBlock(),t.createBlock(a,{key:0,type:1,onOnClickVideos:r[6]||(r[6]=y=>c.onclickPlayVideos({data:D.printData[1],type:3})),onOnClickCard:r[7]||(r[7]=y=>c.onclickPlayVideos({data:D.printData[1],type:3})),"click-card":!1,borderColor:"rgba(255, 255, 255, 0.16)",backgroundColor:D.printData[1].colorbackgroundhome,"background-img":D.printData[1].background,data:{team_name:D.gameInfo.visiting_team_name,player_photo:D.printData[1].photoprofile,team_id:D.gameInfo.visiting_team,background_color_buttons:D.printData[1].background_color_buttons,background_color_cards:D.printData[1].background_color_cards,color_icon_play:D.printData[1].color_icon_play,color_next_back:D.printData[1].color_next_back,font_color:D.printData[1].font_color,font_color_card:D.printData[1].font_color_card},"can-play-videos":c.canPlayVideos.away},null,8,["backgroundColor","background-img","data","can-play-videos"])):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)],2)],2)],2),c.canPlayVideos.home?(t.openBlock(),t.createElementBlock("div",DUe,[t.createVNode(m,{onOpenmedia:c.openmedia,style:{"margin-top":"0px"},"background-color":"#172531",type:1,"px-scroll":338,"scroll-color":"none","arrows-position":"absolute","arrows-scroll-hide":!0,arrowsBackground:"rgba(255,255,255,.16)",arrowsContainerBgL:"linear-gradient(270deg, rgba(22,37,50,0) 0%, rgba(22,37,50,1) 70%)",arrowsContainerBgR:"linear-gradient(90deg, rgba(22,37,50,0) 0%, rgba(22,37,50,1) 70%)",arrowsMargin:0,arrowsRadius:"50%",arrowsBorder:"#ddd",title:"Jugadas específicas "+D.gameInfo.home_team_name+":",data:{season:i.config.season_id,team:D.gameInfo.home_team,isPrematch:1},"video-privileges-playing-as":i.videoPrivilegesPlayingAs,"play-videos-privileges":i.playVideosPrivileges,"await-for-teams-info":"","await-for-best-plays-by-season-and-team":"","teams-info-response":D.teamsInfoResponse,"best-plays-by-season-and-team-response":D.bestPlaysBySeasonAndHomeTeamResponse,onOnClickVideos:e.onClickVideos,onOnClickCard:e.onClickCard},null,8,["onOpenmedia","title","data","video-privileges-playing-as","play-videos-privileges","teams-info-response","best-plays-by-season-and-team-response","onOnClickVideos","onOnClickCard"])])):t.createCommentVNode("",!0),c.canPlayVideos.away?(t.openBlock(),t.createElementBlock("div",RUe,[t.createVNode(m,{onOpenmedia:c.openmedia,style:{"margin-top":"0px"},"background-color":"#172531",type:1,"px-scroll":338,"scroll-color":"none","arrows-position":"absolute","arrows-scroll-hide":!0,arrowsBackground:"rgba(255,255,255,.16)",arrowsContainerBgL:"linear-gradient(270deg, rgba(22,37,50,0) 0%, rgba(22,37,50,1) 70%)",arrowsContainerBgR:"linear-gradient(90deg, rgba(22,37,50,0) 0%, rgba(22,37,50,1) 70%)",arrowsMargin:0,arrowsRadius:"50%",arrowsBorder:"#ddd",title:"Jugadas específicas "+D.gameInfo.visiting_team_name+":",data:{season:i.config.season_id,team:D.gameInfo.visiting_team,isPrematch:1},"video-privileges-playing-as":i.videoPrivilegesPlayingAs,"play-videos-privileges":i.playVideosPrivileges,"await-for-teams-info":"","await-for-best-plays-by-season-and-team":"","teams-info-response":D.teamsInfoResponse,"best-plays-by-season-and-team-response":D.bestPlaysBySeasonAndAwayTeamResponse,onOnClickVideos:e.onClickVideos,onOnClickCard:e.onClickCard},null,8,["onOpenmedia","title","data","video-privileges-playing-as","play-videos-privileges","teams-info-response","best-plays-by-season-and-team-response","onOnClickVideos","onOnClickCard"])])):t.createCommentVNode("",!0)])],512)}const $Ue=C2(PUe,[["render",VUe],["__scopeId","data-v-4dee2984"]]);let AR=null;const jUe={components:{GSCCard:U9,GSCPlayerTeamGame:L9,GSCThumbnailHighlightGameHistoric:hL},props:{isWidget:{type:Boolean,default:!1},teamWidget:{type:Number,default:0},config:{type:Object,default:()=>{}},tournamentSelected:{type:Object,default:()=>({})},timeLiveVideoGoals:{type:Number,default:6e4},timeLiveVideoBestPlays:{type:Number,default:6e4},timeLiveVideoThisGame:{type:Number,default:6e4},timeLiveVideoSpecificPlays:{type:Number,default:6e4},canPlayVideos:{type:Boolean,default:!0},videoPrivilegesPlayingAs:{type:Set,default:()=>new Set([1,2])},playVideosPrivileges:{type:Object,default:null}},data(){return{printData:[],gameInfo:{},informationBestPlaysPlayers:[],informationBestPlaysTeamHome:[],informationBestPlaysTeamAway:[],gamesContainerWidth:0,tournamentId:0,showHighlight:!1,showHighlightGoals:!1,intervalId:null,item:{backgroundhome:"",backgroundaway:"",logohome:"",logoaway:"",background:"",match:"",seasonname:"",score:""},token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"}},computed:{showComponentHome(){let e=!0;return this.isWidget&&this.gameInfo.home_team!=this.teamWidget&&(e=!1),e},showComponentAway(){let e=!0;return this.isWidget&&this.gameInfo.visiting_team!=this.teamWidget&&(e=!1),e},pgtcontainercardClass(){return this.gamesContainerWidth<=350,"pgtcontainercard"},ptgtitleClass(){return this.gamesContainerWidth<=450?"ptgtitle450":"ptgtitle"},videopartidopltegaplayersClass(){return this.gamesContainerWidth<=900?"video-partido-pltega-players620":"video-partido-pltega-players"},videopartidopltegadatosClass(){return this.gamesContainerWidth<=900?"video-partido-pltega-datos900":"video-partido-pltega-datos"},gridcarrouselesitemsClass(){return this.gamesContainerWidth<=900?"grid-carrouseles-items900":"grid-carrouseles-items"},gridcarrouselesitemsitemunoClass(){return this.gamesContainerWidth<=900?"grid-carrouseles-items-itemuno900":"grid-carrouseles-items-itemuno"},gridcarrouselesitemsitemdosClass(){return this.gamesContainerWidth<=900?"grid-carrouseles-items-itemdos900":"grid-carrouseles-items-itemdos"}},watch:{config:{handler:function(e){e.game_status==0?this.fetchLiveData():(this.intervalId=setInterval(()=>{this.fetchLiveData()},this.timeLiveVideoGoals),this.$emit("intervalid",this.intervalId))},immediate:!0}},methods:{async fetchLiveData(){await this.getLiveHighlights(),await this.getLiveBestPlays(),await this.getStatsBestPlaysPlayers(),await this.getStatsBestPlaysTeamHome(),await this.getStatsBestPlaysTeamAway()},async getLiveBestPlays(){const e=Jm.create({headers:{Authorization:`${this.token}`}});var r=[],i={},B=await e.get("https://wlduw4woy3.execute-api.us-east-2.amazonaws.com/prod/live/best-plays/seasons/"+this.config.season_id+"/games/"+this.config.game);for(let D=0;D<B.data.games[0].players.length;D++){const c=Math.floor(Math.random()*B.data.games[0].players[D].info_thumbnails.images.background_player_in_action.length),m=Math.floor(Math.random()*B.data.games[0].players[D].info_thumbnails.images.player_in_action.length);i={background_color_buttons:B.data.games[0].players[D].info_thumbnails.colors.background_color_buttons,background_color_cards:B.data.games[0].players[D].info_thumbnails.colors.background_color_cards,color_icon_play:B.data.games[0].players[D].info_thumbnails.colors.color_icon_play,color_next_back:B.data.games[0].players[D].info_thumbnails.colors.color_next_back,font_color:B.data.games[0].players[D].info_thumbnails.colors.font_color,font_color_card:B.data.games[0].players[D].info_thumbnails.colors.font_color_cards,colorbackgroundhome:B.data.games[0].players[D].info_thumbnails.colors.background_color,colorbackgroundaway:"",nameplayer:B.data.games[0].players[D].player_name,background:B.data.games[0].players[D].info_thumbnails.images.background_player_in_action[c]?"https://golstatsimages.blob.core.windows.net/images-library/"+B.data.games[0].players[D].info_thumbnails.images.background_player_in_action[c]:"https://golstatsimages.blob.core.windows.net/images-library/"+B.data.games[0].players[D].info_thumbnails.images.background_default_players[0],namecategory:"RESUMEN",namehometeam:"",nameawayteam:"",logohome:B.data.games[0].players[D].team_logo,photoprofile:B.data.games[0].players[D].info_thumbnails.images.player_in_action[m]?"https://golstatsimages.blob.core.windows.net/images-library/"+B.data.games[0].players[D].info_thumbnails.images.player_in_action[m]:`https://az755631.vo.msecnd.net/players-profile/${B.data.games[0].players[D].player_id}.png`,logoaway:"",scoreaway:"",scorehome:"",game_id:B.data.games[0].game_id,season_id:B.data.games[0].players[D].season_id,category:0,team_id:B.data.games[0].players[D].team_id},r.push(i)}this.printData=r},async getLiveHighlights(){const e=await Jm.create({headers:{Authorization:`${this.token}`}}).get("https://fxtcaw9tw6.execute-api.us-east-2.amazonaws.com/prod/live/historic/games/"+this.config.game);e.data!=""&&(this.showHighlight=e.data==""?!1:e.data.plays.length>0,this.showHighlightGoals=e.data==""?!1:e.data.plays.filter(r=>r[0]===12).length>0,this.item.category=0,this.item.game_id=e.data.game_id,this.item.season_id=this.config.season_id,this.item.score=e.data.thumbnails[e.data.game_id].score,this.item.backgroundhome=e.data.thumbnails[e.data.game_id].info_thumbnails.home_colors.background_color,this.item.backgroundaway=e.data.thumbnails[e.data.game_id].info_thumbnails.away_colors.background_color,this.item.logohome="https://az755631.vo.msecnd.net/teams-150/"+e.data.thumbnails[e.data.game_id].home_team+".png",this.item.logoaway="https://az755631.vo.msecnd.net/teams-150/"+e.data.thumbnails[e.data.game_id].visiting_team+".png",this.item.background="https://golstatsimages.blob.core.windows.net/images-library/"+e.data.thumbnails[e.data.game_id].info_thumbnails.images.background_default_games[0])},onclickPlayVideos(e){var r=[];e.type==2?e.data.position_id==1?e.data.category==0?r=[55,324,323,608,39,774,802,52,53,40,54]:r=e.data.category:e.data.category==0?r=[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]:r=e.data.category:e.type==3?e.data.category==0?r=[607,608,12,55,54,35,14,52,15,53,466,477,40,257,39]:r=e.data.category:e.type==4?r=[12,55,"35_r","54_r"]:e.data.category!=0?r=e.data.category:r=[607,608,12,55,54,35,14,52,15,53,466,477];const i=[1,2,3];let B={seasonId:e.data.season_id,mainSectionType:1,playListType:e.type==4?1:e.type,categoryIds:r,gameIds:e.data.game_id?[e.data.game_id]:null,playerIds:e.data.position_id!=1?e.data.player_id?[e.data.player_id]:[]:[],goalkeeperIds:e.data.position_id==1?e.data.player_id?[e.data.player_id]:[]:[],teamId:e.data.team_id?e.data.team_id:0,matchResult:e.data.matchResult?[e.matchResult]:i,playData:{},advancedFilter:{playListTitle:""}};e.data.category!==0&&(B.advancedFilter.mainCategoryId=e.data.category),this.$emit("openmedia",B)},openmedia(e){this.$emit("openmedia",e)},setUpResizeObserver(){if(window.ResizeObserver)AR=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),AR.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")},async fillData(){const e=Jm.create({headers:{Authorization:`${this.token}`}}),r=await e.get("https://d2oco6mqmc.execute-api.us-west-2.amazonaws.com/prod/teamsBySeason/"+this.config.season_id),i=await e.get("https://8tvo5bp9ai.execute-api.us-west-2.amazonaws.com/prod/gamesBySeason/"+this.config.season_id),B=await e.get("https://fxtcaw9tw6.execute-api.us-east-2.amazonaws.com/prod/live/historic/games/"+this.config.game);this.tournamentId=r.data.tournament_id,B.data!=""&&(this.showHighlight=B.data==""?!1:B.data.plays.length>0,this.showHighlightGoals=B.data==""?!1:B.data.plays.filter(y=>y[0]===12).length>0,this.item.category=0,this.item.game_id=B.data.game_id,this.item.season_id=this.config.season_id,this.item.score=B.data.thumbnails[B.data.game_id].score,this.item.backgroundhome=B.data.thumbnails[B.data.game_id].info_thumbnails.home_colors.background_color,this.item.backgroundaway=B.data.thumbnails[B.data.game_id].info_thumbnails.away_colors.background_color,this.item.logohome="https://az755631.vo.msecnd.net/teams-150/"+B.data.thumbnails[B.data.game_id].home_team+".png",this.item.logoaway="https://az755631.vo.msecnd.net/teams-150/"+B.data.thumbnails[B.data.game_id].visiting_team+".png",this.item.background="https://golstatsimages.blob.core.windows.net/images-library/"+B.data.thumbnails[B.data.game_id].info_thumbnails.images.background_default_games[0]);const D=i.data.games.findIndex(y=>y.game_id===this.config.game);this.gameInfo=i.data.games[D];var c=[],m={},a=await e.get("https://wlduw4woy3.execute-api.us-east-2.amazonaws.com/prod/live/best-plays/seasons/"+this.config.season_id+"/games/"+this.config.game);for(let y=0;y<a.data.games[0].players.length;y++){const f=Math.floor(Math.random()*a.data.games[0].players[y].info_thumbnails.images.background_player_in_action.length),n=Math.floor(Math.random()*a.data.games[0].players[y].info_thumbnails.images.player_in_action.length);m={background_color_buttons:a.data.games[0].players[y].info_thumbnails.colors.background_color_buttons,background_color_cards:a.data.games[0].players[y].info_thumbnails.colors.background_color_cards,color_icon_play:a.data.games[0].players[y].info_thumbnails.colors.color_icon_play,color_next_back:a.data.games[0].players[y].info_thumbnails.colors.color_next_back,font_color:a.data.games[0].players[y].info_thumbnails.colors.font_color,font_color_card:a.data.games[0].players[y].info_thumbnails.colors.font_color_cards,colorbackgroundhome:a.data.games[0].players[y].info_thumbnails.colors.background_color,colorbackgroundaway:"",nameplayer:a.data.games[0].players[y].player_name,background:a.data.games[0].players[y].info_thumbnails.images.background_player_in_action[f]?"https://golstatsimages.blob.core.windows.net/images-library/"+a.data.games[0].players[y].info_thumbnails.images.background_player_in_action[f]:"https://golstatsimages.blob.core.windows.net/images-library/"+a.data.games[0].players[y].info_thumbnails.images.background_default_players[0],namecategory:"RESUMEN",namehometeam:"",nameawayteam:"",logohome:a.data.games[0].players[y].team_logo,photoprofile:a.data.games[0].players[y].info_thumbnails.images.player_in_action[n]?"https://golstatsimages.blob.core.windows.net/images-library/"+a.data.games[0].players[y].info_thumbnails.images.player_in_action[n]:`https://az755631.vo.msecnd.net/players-profile/${a.data.games[0].players[y].player_id}.png`,logoaway:"",scoreaway:"",scorehome:"",game_id:a.data.games[0].game_id,season_id:a.data.games[0].players[y].season_id,category:0,team_id:a.data.games[0].players[y].team_id},c.push(m)}this.printData=c},getBestPlaysUrl({season:e,player:r,team:i,game:B,category:D}){let c="https://wlduw4woy3.execute-api.us-east-2.amazonaws.com/prod/live/best-plays/seasons/";return e&&(c+=`${e}`),r&&(c+=`/players/${r}`),i&&(c+=`/teams/${i}`),B&&(c+=`/games/${B}`),D&&(c+=`/categories/${D}`),this.videoPrivilegesPlayingAs.has(1)&&!this.videoPrivilegesPlayingAs.has(2)?c+="?isLocal=1":this.videoPrivilegesPlayingAs.has(2)&&!this.videoPrivilegesPlayingAs.has(1)&&(c+="?isVisitor=1"),c},async getStatsBestPlaysTeamHome(){const e=Jm.create({headers:{Authorization:`${this.token}`}});var r={},i={};this.informationBestPlaysTeamHome=[],this.playerPhoto=!1,r=await e.get("https://wlduw4woy3.execute-api.us-east-2.amazonaws.com/prod/live/best-plays/seasons/"+this.config.season_id+"/games/"+this.config.game+"/teams/"+this.gameInfo.home_team);for(let B=0;B<r.data.categories.length;B++){const D=Math.floor(Math.random()*r.data.categories[B].info_thumbnails.images.background_default_teams.length);i={game_id:r.data.game_id,has_mxm:r.data.has_mxm,season_id:this.config.season_id,team_id:r.data.team_id,category:r.data.categories[B].categories.concat(r.data.categories[B].rival_categories),background_action:"https://golstatsimages.blob.core.windows.net/images-library/"+r.data.categories[B].info_thumbnails.images.background_default_categories[D],player_action:"https://golstatsimages.blob.core.windows.net/images-library/"+r.data.categories[B].info_thumbnails.images.background_default_categories[D],team_logo:"https://az755631.vo.msecnd.net/teams-150/"+r.data.team_id+".png",color:r.data.categories[B].info_thumbnails.colors.background_color,colorfont:r.data.categories[B].info_thumbnails.colors.font_color,player_name:r.data.categories[B].category_name,total:r.data.categories[B].total,team_name:"",background_card:"https://az755631.vo.msecnd.net/golstats2-teams/"+r.data.team_id+"_"+r.data.season_id+"_r1.jpg"},this.informationBestPlaysTeamHome.push(i)}},async getStatsBestPlaysTeamAway(){const e=Jm.create({headers:{Authorization:`${this.token}`}});var r={},i={};this.informationBestPlaysTeamAway=[],this.playerPhoto=!1,r=await e.get("https://wlduw4woy3.execute-api.us-east-2.amazonaws.com/prod/live/best-plays/seasons/"+this.config.season_id+"/games/"+this.config.game+"/teams/"+this.gameInfo.visiting_team);for(let B=0;B<r.data.categories.length;B++){const D=Math.floor(Math.random()*r.data.categories[B].info_thumbnails.images.background_default_teams.length);i={game_id:r.data.game_id,has_mxm:r.data.has_mxm,season_id:this.config.season_id,team_id:r.data.team_id,category:r.data.categories[B].categories.concat(r.data.categories[B].rival_categories),background_action:"https://golstatsimages.blob.core.windows.net/images-library/"+r.data.categories[B].info_thumbnails.images.background_default_categories[D],player_action:"https://golstatsimages.blob.core.windows.net/images-library/"+r.data.categories[B].info_thumbnails.images.background_default_categories[D],team_logo:"https://az755631.vo.msecnd.net/teams-150/"+r.data.team_id+".png",color:r.data.categories[B].info_thumbnails.colors.background_color,colorfont:r.data.categories[B].info_thumbnails.colors.font_color,player_name:r.data.categories[B].category_name,total:r.data.categories[B].total,team_name:"",background_card:"https://az755631.vo.msecnd.net/golstats2-teams/"+r.data.team_id+"_"+r.data.season_id+"_r1.jpg"},this.informationBestPlaysTeamAway.push(i)}},async getStatsBestPlaysPlayers(){const e=Jm.create({headers:{Authorization:`${this.token}`}});var r={},i={};this.informationBestPlaysPlayers=[],this.playerPhoto=!1,r=await e.get(this.getBestPlaysUrl({season:this.config.season_id,game:this.config.game})),this.playVideosPrivileges&&(this.playVideosPrivileges.canPrivilegesTeamPlayVideos?r.data.games[0].game_status!==1&&(r.data.games[0].players=r.data.games[0].players.filter(B=>B.team_id==this.playVideosPrivileges.seasonAndPrivileges.teamId)):r.data.games[0].players=[]);for(let B=0;B<r.data.games[0].players.length;B++){const D=Math.floor(Math.random()*r.data.games[0].players[B].info_thumbnails.images.background_player_in_action.length),c=Math.floor(Math.random()*r.data.games[0].players[B].info_thumbnails.images.player_in_action.length);i={colorbackgroundhome:r.data.games[0].players[B].info_thumbnails.colors.background_color,colorbackgroundaway:"",nameplayer:r.data.games[0].players[B].player_name,background:"https://golstatsimages.blob.core.windows.net/images-library/"+r.data.games[0].players[B].info_thumbnails.images.background_player_in_action[D],namecategory:"RESUMEN",namehometeam:"",nameawayteam:"",category:0,colorfont:r.data.games[0].players[B].info_thumbnails.colors.font_color,team_id:r.data.games[0].players[B].team_id,player_id:r.data.games[0].players[B].player_id,game_id:r.data.games[0].game_id,has_mxm:r.data.games[0].has_mxm,season_id:r.data.season_id,logohome:r.data.games[0].players[B].team_logo,photoprofile:r.data.games[0].players[B].info_thumbnails.images.player_in_action[c]?"https://golstatsimages.blob.core.windows.net/images-library/"+r.data.games[0].players[B].info_thumbnails.images.player_in_action[c]:"https://az755631.vo.msecnd.net/players-profile/"+r.data.games[0].players[B].player_id+".png",logoaway:"",scoreaway:"",scorehome:""},this.informationBestPlaysPlayers.push(i)}}},beforeDestroy(){clearInterval(this.intervalId)},async mounted(){setTimeout(()=>{this.setUpResizeObserver()},100),await this.fillData(),await this.getStatsBestPlaysPlayers(),await this.getStatsBestPlaysTeamHome(),await this.getStatsBestPlaysTeamAway()}},UUe=e=>(t.pushScopeId("data-v-e74af248"),e=e(),t.popScopeId(),e),GUe={ref:"gamesContainer",class:"container",style:{}},HUe={class:"video-partido-container"},WUe=UUe(()=>t.createElementVNode("div",{class:"title-video-datos"},"Este partido:",-1)),qUe={key:0},YUe={key:1},XUe={key:2,class:"video-partido-pltega-games"},ZUe={key:3,class:"video-partido-pltega-games-team"};function JUe(e,r,i,B,D,c){t.resolveComponent("GSCThumbnailHighlightGameHistoric");const m=t.resolveComponent("GSCPlayerTeamGame"),a=t.resolveComponent("GSCCard");return t.openBlock(),t.createElementBlock("div",GUe,[t.createElementVNode("div",HUe,[t.createCommentVNode("",!0),t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(c.videopartidopltegaplayersClass)},[t.createVNode(m,{onOpenmedia:c.openmedia,"background-color":"#172531","px-scroll":338,"scroll-color":"none","arrows-position":"absolute",data:{isPrematch:0},"arrows-scroll-hide":!0,"receive-data":!0,information:D.informationBestPlaysPlayers,arrowsBackground:"rgba(255,255,255,.16)",arrowsContainerBgL:"linear-gradient(270deg, rgba(22,37,50,0) 0%, rgba(22,37,50,1) 70%)",arrowsContainerBgR:"linear-gradient(90deg, rgba(22,37,50,0) 0%, rgba(22,37,50,1) 70%)",arrowsMargin:0,arrowsRadius:"50%",arrowsBorder:"#ddd",style:{"margin-top":"10px"},type:3e3,title:i.tournamentSelected.is_female==1?"Jugadoras (sus mejores jugadas):":"Jugadores (sus mejores jugadas):","video-privileges-playing-as":i.videoPrivilegesPlayingAs,onOnClickVideos:e.onClickVideos,onOnClickCard:e.onClickCard},null,8,["onOpenmedia","information","title","video-privileges-playing-as","onOnClickVideos","onOnClickCard"])],2),t.createElementVNode("div",{class:t.normalizeClass(c.videopartidopltegadatosClass)},[WUe,t.createElementVNode("div",{class:t.normalizeClass(c.gridcarrouselesitemsClass)},[t.createElementVNode("div",{class:t.normalizeClass(c.gridcarrouselesitemsitemunoClass)},[i.isWidget?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[D.gameInfo.home_team==i.teamWidget?(t.openBlock(),t.createElementBlock("div",qUe,[D.printData[0]?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[D.printData[0].team_id==D.gameInfo.home_team?(t.openBlock(),t.createBlock(a,{key:0,type:1,onOnClickVideos:r[3]||(r[3]=y=>c.onclickPlayVideos({data:D.printData[0],type:3})),onOnClickCard:r[4]||(r[4]=y=>c.onclickPlayVideos({data:D.printData[0],type:3})),"click-card":!1,borderColor:"rgba(255, 255, 255, 0.16)",backgroundColor:D.printData[0].colorbackgroundhome,"background-img":D.printData[0].background,data:{team_name:D.gameInfo.home_team_name,player_photo:D.printData[0].photoprofile,team_id:D.gameInfo.home_team,background_color_buttons:D.printData[0].background_color_buttons,background_color_cards:D.printData[0].background_color_cards,color_icon_play:D.printData[0].color_icon_play,color_next_back:D.printData[0].color_next_back,font_color:D.printData[0].font_color,font_color_card:D.printData[0].font_color_card},"can-play-videos":i.canPlayVideos},null,8,["backgroundColor","background-img","data","can-play-videos"])):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),D.gameInfo.visiting_team==i.teamWidget?(t.openBlock(),t.createElementBlock("div",YUe,[D.printData[1]?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[D.printData[1].team_id==D.gameInfo.visiting_team?(t.openBlock(),t.createBlock(a,{key:0,type:1,onOnClickVideos:r[5]||(r[5]=y=>c.onclickPlayVideos({data:D.printData[1],type:3})),onOnClickCard:r[6]||(r[6]=y=>c.onclickPlayVideos({data:D.printData[1],type:3})),"click-card":!1,borderColor:"rgba(255, 255, 255, 0.16)",backgroundColor:D.printData[1].colorbackgroundhome,"background-img":D.printData[1].background,data:{team_name:D.gameInfo.visiting_team_name,player_photo:D.printData[1].photoprofile,team_id:D.gameInfo.visiting_team,background_color_buttons:D.printData[1].background_color_buttons,background_color_cards:D.printData[1].background_color_cards,color_icon_play:D.printData[1].color_icon_play,color_next_back:D.printData[1].color_next_back,font_color:D.printData[1].font_color,font_color_card:D.printData[1].font_color_card},"can-play-videos":i.canPlayVideos},null,8,["backgroundColor","background-img","data","can-play-videos"])):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[D.printData[0]?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[D.printData[0].team_id==D.gameInfo.home_team?(t.openBlock(),t.createBlock(a,{key:0,type:1,onOnClickVideos:r[7]||(r[7]=y=>c.onclickPlayVideos({data:D.printData[0],type:3})),onOnClickCard:r[8]||(r[8]=y=>c.onclickPlayVideos({data:D.printData[0],type:3})),"click-card":!1,borderColor:"rgba(255, 255, 255, 0.16)",backgroundColor:D.printData[0].colorbackgroundhome,"background-img":D.printData[0].background,data:{team_name:D.gameInfo.home_team_name,player_photo:D.printData[0].photoprofile,team_id:D.gameInfo.home_team,background_color_buttons:D.printData[0].background_color_buttons,background_color_cards:D.printData[0].background_color_cards,color_icon_play:D.printData[0].color_icon_play,color_next_back:D.printData[0].color_next_back,font_color:D.printData[0].font_color,font_color_card:D.printData[0].font_color_card},"can-play-videos":i.canPlayVideos},null,8,["backgroundColor","background-img","data","can-play-videos"])):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)],64))],2),t.createElementVNode("div",{class:t.normalizeClass(c.gridcarrouselesitemsitemdosClass)},[D.printData[1]&&!i.isWidget?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[D.printData[1].team_id==D.gameInfo.visiting_team?(t.openBlock(),t.createBlock(a,{key:0,type:1,onOnClickVideos:r[9]||(r[9]=y=>c.onclickPlayVideos({data:D.printData[1],type:3})),onOnClickCard:r[10]||(r[10]=y=>c.onclickPlayVideos({data:D.printData[1],type:3})),"click-card":!1,borderColor:"rgba(255, 255, 255, 0.16)",backgroundColor:D.printData[1].colorbackgroundhome,"background-img":D.printData[1].background,data:{team_name:D.gameInfo.visiting_team_name,player_photo:D.printData[1].photoprofile,team_id:D.gameInfo.visiting_team,background_color_buttons:D.printData[1].background_color_buttons,background_color_cards:D.printData[1].background_color_cards,color_icon_play:D.printData[1].color_icon_play,color_next_back:D.printData[1].color_next_back,font_color:D.printData[1].font_color,font_color_card:D.printData[1].font_color_card},"can-play-videos":i.canPlayVideos},null,8,["backgroundColor","background-img","data","can-play-videos"])):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)],2)],2)],2),c.showComponentHome?(t.openBlock(),t.createElementBlock("div",XUe,[t.createVNode(m,{onOpenmedia:c.openmedia,"background-color":"#172531","px-scroll":338,"scroll-color":"none","arrows-position":"absolute","arrows-scroll-hide":!0,information:D.informationBestPlaysTeamHome,arrowsBackground:"rgba(255,255,255,.16)",arrowsContainerBgL:"linear-gradient(270deg, rgba(22,37,50,0) 0%, rgba(22,37,50,1) 70%)",arrowsContainerBgR:"linear-gradient(90deg, rgba(22,37,50,0) 0%, rgba(22,37,50,1) 70%)",arrowsMargin:0,arrowsRadius:"50%",arrowsBorder:"#ddd",style:{"margin-top":"10px"},"receive-data":!0,type:4e3,data:{isPrematch:0},title:"Jugadas específicas "+D.gameInfo.home_team_name+":",onOnClickVideos:e.onClickVideos,onOnClickCard:e.onClickCard},null,8,["onOpenmedia","information","title","onOnClickVideos","onOnClickCard"])])):t.createCommentVNode("",!0),c.showComponentAway?(t.openBlock(),t.createElementBlock("div",ZUe,[t.createVNode(m,{onOpenmedia:c.openmedia,"background-color":"#172531","px-scroll":338,"scroll-color":"none","arrows-position":"absolute","arrows-scroll-hide":!0,arrowsBackground:"rgba(255,255,255,.16)",arrowsContainerBgL:"linear-gradient(270deg, rgba(22,37,50,0) 0%, rgba(22,37,50,1) 70%)",arrowsContainerBgR:"linear-gradient(90deg, rgba(22,37,50,0) 0%, rgba(22,37,50,1) 70%)",arrowsMargin:0,arrowsRadius:"50%",arrowsBorder:"#ddd",style:{"margin-top":"10px"},data:{isPrematch:0},type:5e3,"receive-data":!0,information:D.informationBestPlaysTeamAway,title:"Jugadas específicas "+D.gameInfo.visiting_team_name+":",onOnClickVideos:e.onClickVideos,onOnClickCard:e.onClickCard},null,8,["onOpenmedia","information","title","onOnClickVideos","onOnClickCard"])])):t.createCommentVNode("",!0)])],512)}const KUe={components:{GSCVideoGamePreMatch:$Ue,GSCVideoGamePostMatch:YVe,GSCVideoGameLive:C2(jUe,[["render",JUe],["__scopeId","data-v-e74af248"]])},props:{isWidget:{type:Boolean,default:!1},teamWidget:{type:Number,default:0},type:{type:String,default:"Prematch"},timeLiveVideoGoals:{type:Number,default:6e4},timeLiveVideoBestPlays:{type:Number,default:6e4},tournamentSelected:{type:Object,default:()=>({})},timeLiveVideoThisGame:{type:Number,default:6e4},timeLiveVideoSpecificPlays:{type:Number,default:6e4},config:{type:Object,default:()=>{}},canPlayVideos:{type:Boolean,default:!0},videoPrivilegesPlayingAs:{type:Set,default:()=>new Set([1,2])},playVideosPrivileges:{type:Object,default:null}},data(){return{}},computed:{},methods:{intervalid(e){this.$emit("intervalid",e)},openmedia(e){this.$emit("openmedia",e)}}},QUe={style:{margin:"0 auto"}};function eGe(e,r,i,B,D,c){const m=t.resolveComponent("GSCVideoGamePreMatch"),a=t.resolveComponent("GSCVideoGamePostMatch"),y=t.resolveComponent("GSCVideoGameLive");return t.openBlock(),t.createElementBlock("div",QUe,[i.type==="Prematch"?(t.openBlock(),t.createBlock(m,{key:0,"can-play-videos":i.canPlayVideos,"video-privileges-playing-as":i.videoPrivilegesPlayingAs,"play-videos-privileges":i.playVideosPrivileges,config:i.config,"is-widget":i.isWidget,"team-widget":i.teamWidget,"tournament-selected":i.tournamentSelected,onOpenmedia:c.openmedia},null,8,["can-play-videos","video-privileges-playing-as","play-videos-privileges","config","is-widget","team-widget","tournament-selected","onOpenmedia"])):t.createCommentVNode("",!0),i.type==="Postmatch"?(t.openBlock(),t.createBlock(a,{key:1,"can-play-videos":i.canPlayVideos,"video-privileges-playing-as":i.videoPrivilegesPlayingAs,"play-videos-privileges":i.playVideosPrivileges,config:i.config,"is-widget":i.isWidget,"team-widget":i.teamWidget,"tournament-selected":i.tournamentSelected,onOpenmedia:c.openmedia},null,8,["can-play-videos","video-privileges-playing-as","play-videos-privileges","config","is-widget","team-widget","tournament-selected","onOpenmedia"])):t.createCommentVNode("",!0),i.type==="Live"?(t.openBlock(),t.createBlock(y,{key:2,"time-live-video-goals":i.timeLiveVideoGoals,"time-live-video-best-plays":i.timeLiveVideoBestPlays,"time-live-video-this-game":i.timeLiveVideoThisGame,"time-live-video-specific-plays":i.timeLiveVideoSpecificPlays,"can-play-videos":i.canPlayVideos,"is-widget":i.isWidget,"team-widget":i.teamWidget,"tournament-selected":i.tournamentSelected,"video-privileges-playing-as":i.videoPrivilegesPlayingAs,"play-videos-privileges":i.playVideosPrivileges,config:i.config,onIntervalid:c.intervalid,onOpenmedia:c.openmedia},null,8,["time-live-video-goals","time-live-video-best-plays","time-live-video-this-game","time-live-video-specific-plays","can-play-videos","is-widget","team-widget","tournament-selected","video-privileges-playing-as","play-videos-privileges","config","onIntervalid","onOpenmedia"])):t.createCommentVNode("",!0)])}const pC=C2(KUe,[["render",eGe],["__scopeId","data-v-0560804f"]]),Dma="",Rma="",tGe={class:"datagame-container"},aGe=$i({__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://az755631.vo.msecnd.net/teams-80/18.png",team_id:10,provisional_logo:"https://az755631.vo.msecnd.net/teams-provisional/18.png",colloquial_name:"Toluca",acronym:"TOL",team_name:"Toluca"},awayTeam:{logo:"https://az755631.vo.msecnd.net/teams-80/1.png",team_id:1,provisional_logo:"https://az755631.vo.msecnd.net/teams-provisional/1.png",colloquial_name:"Chivas",acronym:"CHI",team_name:"Guadalajara"}})},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:r}){const i=e,B=t.ref(0);t.watch(()=>i.game,m=>{B.value=m.gameId},{deep:!0,immediate:!0});function D(m){r("openmedia",m)}function c(m){r("intervalid",m)}return(m,a)=>(t.openBlock(),t.createElementBlock("div",tGe,[e.game.is_live==1||e.game.game_status==0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[Object.keys(e.game).length>0?(t.openBlock(),t.createBlock(t.unref(pC),{onOpenmedia:D,key:B.value,"can-play-videos":e.canPlayVideos,"tournament-selected":e.tournamentSelected,onIntervalid:c,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},[e.game.game_status===4?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[Object.keys(e.game).length>0?(t.openBlock(),t.createBlock(t.unref(pC),{onOpenmedia:D,key:B.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(pC),{onOpenmedia:D,key:B.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-1c72e0de"]]),$ma="",nGe={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")}},Kh=e=>(t.pushScopeId("data-v-dc3632e6"),e=e(),t.popScopeId(),e),rGe={class:"home_team-events"},iGe={class:"home_team-events__title"},oGe=["src"],sGe=Kh(()=>t.createElementVNode("img",{width:"13",height:"13",src:"https://az755631.vo.msecnd.net/todoelfut/players-goals-con-goles.png"},null,-1)),lGe=Kh(()=>t.createElementVNode("img",{width:"13",height:"13",src:"https://az755631.vo.msecnd.net/todoelfut/red_card.png"},null,-1)),cGe=Kh(()=>t.createElementVNode("img",{width:"13",height:"13",src:"https://az755631.vo.msecnd.net/todoelfut/yellow_card.png"},null,-1)),dGe={class:"away_team-events"},uGe={class:"away_team-events__title"},hGe=["src"],pGe=Kh(()=>t.createElementVNode("img",{width:"13",height:"13",src:"https://az755631.vo.msecnd.net/todoelfut/players-goals-con-goles.png"},null,-1)),fGe=Kh(()=>t.createElementVNode("img",{width:"13",height:"13",src:"https://az755631.vo.msecnd.net/todoelfut/red_card.png"},null,-1)),mGe=Kh(()=>t.createElementVNode("img",{width:"13",height:"13",src:"https://az755631.vo.msecnd.net/todoelfut/yellow_card.png"},null,-1)),gGe={class:"home_team-events"},yGe={class:"home_team-events__title"},vGe=["src"],_Ge=Kh(()=>t.createElementVNode("img",{width:"13",height:"13",src:"https://az755631.vo.msecnd.net/todoelfut/players-goals-con-goles.png"},null,-1)),bGe=Kh(()=>t.createElementVNode("img",{width:"13",height:"13",src:"https://az755631.vo.msecnd.net/todoelfut/red_card.png"},null,-1)),xGe=Kh(()=>t.createElementVNode("img",{width:"13",height:"13",src:"https://az755631.vo.msecnd.net/todoelfut/yellow_card.png"},null,-1)),wGe={class:"away_team-events"},kGe={class:"away_team-events__title"},CGe=["src"],SGe=Kh(()=>t.createElementVNode("img",{width:"13",height:"13",src:"https://az755631.vo.msecnd.net/todoelfut/players-goals-con-goles.png"},null,-1)),TGe=Kh(()=>t.createElementVNode("img",{width:"13",height:"13",src:"https://az755631.vo.msecnd.net/todoelfut/red_card.png"},null,-1)),EGe=Kh(()=>t.createElementVNode("img",{width:"13",height:"13",src:"https://az755631.vo.msecnd.net/todoelfut/yellow_card.png"},null,-1));function AGe(e,r,i,B,D,c){return t.openBlock(),t.createElementBlock("div",null,[t.createElementVNode("div",{class:"modal-events",onClick:r[1]||(r[1]=(...m)=>c.handleOutsideClick&&c.handleOutsideClick(...m))},[t.createElementVNode("div",{class:"modal-events__modal",onClick:r[0]||(r[0]=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")},[i.type==0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",rGe,[t.createElementVNode("div",iGe,[t.createElementVNode("img",{width:"24",height:"24",src:i.plays[i.game.home_team.team_id].team.logo},null,8,oGe),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),(m,a)=>(t.openBlock(),t.createElementBlock("div",{key:a,class:t.normalizeClass(i.width>420?"home_team-events__event":"home_team-events__eventsm")},[sGe,t.createElementVNode("div",null,t.toDisplayString(i.plays[i.game.home_team.team_id].goals[m].name),1),t.createElementVNode("div",null,t.toDisplayString(i.plays[i.game.home_team.team_id].goals[m].event.map(y=>`${y}'`).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),(m,a)=>(t.openBlock(),t.createElementBlock("div",{key:a,class:t.normalizeClass(i.width>420?"home_team-events__event":"home_team-events__eventsm")},[lGe,t.createElementVNode("div",null,t.toDisplayString(i.plays[i.game.home_team.team_id].red[m].name),1),t.createElementVNode("div",null,t.toDisplayString(i.plays[i.game.home_team.team_id].red[m].event.map(y=>`${y}'`).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),(m,a)=>(t.openBlock(),t.createElementBlock("div",{key:a,class:t.normalizeClass(i.width>420?"home_team-events__event":"home_team-events__eventsm")},[cGe,t.createElementVNode("div",null,t.toDisplayString(i.plays[i.game.home_team.team_id].yellow[m].name),1),t.createElementVNode("div",null,t.toDisplayString(i.plays[i.game.home_team.team_id].yellow[m].event.map(y=>`${y}'`).join(", ")),1)],2))),128))]),t.createElementVNode("div",dGe,[t.createElementVNode("div",uGe,[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,hGe)]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(Object.keys(i.plays[i.game.visiting_team.team_id].goals),(m,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[m].event.map(y=>`${y}'`).join(", ")),1),t.createElementVNode("div",null,t.toDisplayString(i.plays[i.game.visiting_team.team_id].goals[m].name),1),pGe],2))),128)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(Object.keys(i.plays[i.game.visiting_team.team_id].red),(m,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[m].event.map(y=>`${y}'`).join(", ")),1),t.createElementVNode("div",null,t.toDisplayString(i.plays[i.game.visiting_team.team_id].red[m].name),1),fGe],2))),128)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(Object.keys(i.plays[i.game.visiting_team.team_id].yellow),(m,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[m].event.map(y=>`${y}'`).join(", ")),1),t.createElementVNode("div",null,t.toDisplayString(i.plays[i.game.visiting_team.team_id].yellow[m].name),1),mGe],2))),128))])],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("div",gGe,[t.createElementVNode("div",yGe,[t.createElementVNode("img",{width:"24",height:"24",src:i.plays.home_team.logo},null,8,vGe),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,(m,a)=>(t.openBlock(),t.createElementBlock("div",{key:a,class:t.normalizeClass(i.width>420?"home_team-events__event":"home_team-events__eventsm")},[_Ge,t.createElementVNode("div",null,t.toDisplayString(m),1)],2))),128)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i.plays.plays.home_red_cards_minutes,(m,a)=>(t.openBlock(),t.createElementBlock("div",{key:a,class:t.normalizeClass(i.width>420?"home_team-events__event":"home_team-events__eventsm")},[bGe,t.createElementVNode("div",null,t.toDisplayString(m),1)],2))),128)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i.plays.plays.home_yellow_cards_minutes,(m,a)=>(t.openBlock(),t.createElementBlock("div",{key:a,class:t.normalizeClass(i.width>420?"home_team-events__event":"home_team-events__eventsm")},[xGe,t.createElementVNode("div",null,t.toDisplayString(m),1)],2))),128))]),t.createElementVNode("div",wGe,[t.createElementVNode("div",kGe,[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,CGe)]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i.plays.plays.visiting_goals_minutes,(m,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(m),1),SGe],2))),128)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i.plays.plays.away_red_cards_minutes,(m,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(m),1),TGe],2))),128)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i.plays.plays.away_yellow_cards_minutes,(m,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(m),1),EGe],2))),128))])],64))],2)):t.createCommentVNode("",!0)])])])}const MR=$i(nGe,[["render",AGe],["__scopeId","data-v-dc3632e6"]]),MGe=(e,r)=>{const i=e.__vccOpts||e;for(const[B,D]of r)i[B]=D;return i},fC={name:"ScrollableContainer",props:{backgroundColor:{type:String,default:"#0D1D29"},pxScroll:{type:Number,default:100},arrows:{type:Boolean,default:!0},arrowsHideOnNoScroll:{type:Boolean,default:!1},arrowsScrollHide:{type:Boolean,default:!1},arrowsColor:{type:String,default:"#CBEE6B"},arrowsHeight:{type:Number,default:15},arrowsWidth:{type:Number,default:15},arrowsPadding:{type:Number,default:5},arrowsMargin:{type:Number,default:10},arrowsRadius:{type:String,default:"0%"},arrowsBorder:{type:String,default:"none"},arrowsBackground:{type:String,default:"#0D1D29"},arrowsContainerBgL:{type:String,default:"#0D1D29"},arrowsContainerBgR:{type:String,default:"#0D1D29"},scrollColor:{type:String,default:"#c3e569"},arrowsPosition:{type:String,default:"relative"},height:{type:String,default:"100%"}},data(){return{showLeftArrow:!1,showRightArrow:!0,intervalid1:""}},mounted(){this.getScroll(),this.arrowsHideOnNoScroll&&window.addEventListener("resize",this.resizeSlider),this.arrowsHideOnNoScroll&&this.listenerLoad()},beforeUnmount(){this.arrowsHideOnNoScroll&&window.removeEventListener("resize",this.resizeSlider),this.arrowsHideOnNoScroll&&clearInterval(this.intervalid1)},computed:{getViewBox(){return`-2 0 ${this.arrowsWidth} ${this.arrowsHeight}`},hideShowLeftArrow(){let e="";return this.arrowsPosition=="absolute"?e="leftAbsolute":e="leftRelative",this.arrowsScrollHide?this.showLeftArrow?e+=" showArrowSlide":e+=" hideArrowSlide":e+=" showArrowSlide",e},hideShowRightArrow(){let e="";return this.arrowsPosition=="absolute"?e="rightAbsolute":e="rightRelative",this.arrowsScrollHide?this.showRightArrow?e+=" showArrowSlide":e+=" hideArrowSlide":e+=" showArrowSlide",e}},methods:{scrollLeft(){this.$refs.content.scrollLeft-=this.pxScroll},scrollRight(){this.$refs.content.scrollLeft+=this.pxScroll},getScroll(){let e=0;this.arrowsPosition=="relative"?e=this.$refs.content.scrollWidth-this.$el.clientWidth+this.arrowsMargin*2+this.arrowsWidth*4:e=this.$refs.content.scrollWidth-this.$el.clientWidth,this.$refs.content.scrollLeft==0?this.showLeftArrow=!1:this.showLeftArrow=!0,e>0&&(this.$refs.content.scrollLeft==e?this.showRightArrow=!1:this.showRightArrow=!0),this.arrowsHideOnNoScroll&&this.$refs.content.clientWidth===this.$refs.content.scrollWidth&&(this.showRightArrow=!1)},resizeSlider(){this.getScroll();let e;clearTimeout(e),e=setTimeout(this.getScroll,1e3)},listenerLoad(){this.intervalid1=setInterval((function(){var e=this.$el.clientWidth,r=this.$refs.content.scrollWidth;r>0&&e>0&&(r>e?(this.showRightArrow=!0,clearInterval(this.intervalid1)):clearInterval(this.intervalid1))}).bind(this),3e3)}}},IR=()=>{t.useCssVars(e=>({"42d3dba6":e.backgroundColor,"4de5d2cf":e.height,"67bafa7b":e.arrowsPosition,"61e1032e":e.arrowsPadding+"px","79a4ac00":e.arrowsBackground,"6b8355c6":e.arrowsHeight*2+"px","29a58368":e.arrowsWidth*2+"px","3622fa64":e.arrowsRadius,"1ba101fe":e.arrowsBorder,"0bafb5e6":e.arrowsMargin+"px","423a44b8":e.arrowsContainerBgL,"423a44be":e.arrowsContainerBgR,"10b117ee":e.scrollColor}))},PR=fC.setup;fC.setup=PR?(e,r)=>(IR(),PR(e,r)):IR;const IGe={ref:"gscScrollableContainer",class:"scrollable-container"},PGe={class:"scrollable-arrows"},BGe=["width","height","viewBox"],NGe=["stroke"],zGe={class:"scrollable-wrapper"},OGe={class:"scrollable-arrows"},FGe=["width","height","viewBox"],LGe=["stroke"];function DGe(e,r,i,B,D,c){return t.openBlock(),t.createElementBlock("div",IGe,[i.arrows?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["arrows-container",c.hideShowLeftArrow]),onClick:r[0]||(r[0]=(...m)=>c.scrollLeft&&c.scrollLeft(...m))},[t.createElementVNode("div",PGe,[(t.openBlock(),t.createElementBlock("svg",{width:i.arrowsWidth,height:i.arrowsHeight,viewBox:c.getViewBox,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M6.36523 13.788L1.10146 8.52429C0.479824 7.90265 0.479824 6.88541 1.10147 6.26377L6.36523 1",stroke:i.arrowsColor},null,8,NGe)],8,BGe))])],2)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"scrollable-content scrollable-content-slider",ref:"content",onScroll:r[1]||(r[1]=(...m)=>c.getScroll&&c.getScroll(...m))},[t.createElementVNode("div",zGe,[t.renderSlot(e.$slots,"default",{},void 0,!0)])],544),i.arrows?(t.openBlock(),t.createElementBlock("div",{key:1,id:"arrows-container-right",class:t.normalizeClass(["arrows-container",c.hideShowRightArrow]),onClick:r[2]||(r[2]=(...m)=>c.scrollRight&&c.scrollRight(...m))},[t.createElementVNode("div",OGe,[(t.openBlock(),t.createElementBlock("svg",{width:i.arrowsWidth,height:i.arrowsHeight,viewBox:c.getViewBox,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M0.634765 1.21195L5.89853 6.47571C6.52018 7.09735 6.52018 8.11459 5.89853 8.73623L0.634766 14",stroke:i.arrowsColor},null,8,LGe)],8,FGe))])],2)):t.createCommentVNode("",!0)],512)}const RGe=MGe(fC,[["render",DGe],["__scopeId","data-v-b548a08d"]]);function BR(e,r){return function(){return e.apply(r,arguments)}}const{toString:VGe}=Object.prototype,{getPrototypeOf:mC}=Object,Tw=(e=>r=>{const i=VGe.call(r);return e[i]||(e[i]=i.slice(8,-1).toLowerCase())})(Object.create(null)),Mf=e=>(e=e.toLowerCase(),r=>Tw(r)===e),Ew=e=>r=>typeof r===e,{isArray:_y}=Array,B2=Ew("undefined");function $Ge(e){return e!==null&&!B2(e)&&e.constructor!==null&&!B2(e.constructor)&&Qh(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const NR=Mf("ArrayBuffer");function jGe(e){let r;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?r=ArrayBuffer.isView(e):r=e&&e.buffer&&NR(e.buffer),r}const UGe=Ew("string"),Qh=Ew("function"),zR=Ew("number"),Aw=e=>e!==null&&typeof e=="object",GGe=e=>e===!0||e===!1,Mw=e=>{if(Tw(e)!=="object")return!1;const r=mC(e);return(r===null||r===Object.prototype||Object.getPrototypeOf(r)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},HGe=Mf("Date"),WGe=Mf("File"),qGe=Mf("Blob"),YGe=Mf("FileList"),XGe=e=>Aw(e)&&Qh(e.pipe),ZGe=e=>{let r;return e&&(typeof FormData=="function"&&e instanceof FormData||Qh(e.append)&&((r=Tw(e))==="formdata"||r==="object"&&Qh(e.toString)&&e.toString()==="[object FormData]"))},JGe=Mf("URLSearchParams"),KGe=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function N2(e,r,{allOwnKeys:i=!1}={}){if(e===null||typeof e>"u")return;let B,D;if(typeof e!="object"&&(e=[e]),_y(e))for(B=0,D=e.length;B<D;B++)r.call(null,e[B],B,e);else{const c=i?Object.getOwnPropertyNames(e):Object.keys(e),m=c.length;let a;for(B=0;B<m;B++)a=c[B],r.call(null,e[a],a,e)}}function OR(e,r){r=r.toLowerCase();const i=Object.keys(e);let B=i.length,D;for(;B-- >0;)if(D=i[B],r===D.toLowerCase())return D;return null}const FR=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),LR=e=>!B2(e)&&e!==FR;function gC(){const{caseless:e}=LR(this)&&this||{},r={},i=(B,D)=>{const c=e&&OR(r,D)||D;Mw(r[c])&&Mw(B)?r[c]=gC(r[c],B):Mw(B)?r[c]=gC({},B):_y(B)?r[c]=B.slice():r[c]=B};for(let B=0,D=arguments.length;B<D;B++)arguments[B]&&N2(arguments[B],i);return r}const QGe=(e,r,i,{allOwnKeys:B}={})=>(N2(r,(D,c)=>{i&&Qh(D)?e[c]=BR(D,i):e[c]=D},{allOwnKeys:B}),e),eHe=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),tHe=(e,r,i,B)=>{e.prototype=Object.create(r.prototype,B),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:r.prototype}),i&&Object.assign(e.prototype,i)},aHe=(e,r,i,B)=>{let D,c,m;const a={};if(r=r||{},e==null)return r;do{for(D=Object.getOwnPropertyNames(e),c=D.length;c-- >0;)m=D[c],(!B||B(m,e,r))&&!a[m]&&(r[m]=e[m],a[m]=!0);e=i!==!1&&mC(e)}while(e&&(!i||i(e,r))&&e!==Object.prototype);return r},nHe=(e,r,i)=>{e=String(e),(i===void 0||i>e.length)&&(i=e.length),i-=r.length;const B=e.indexOf(r,i);return B!==-1&&B===i},rHe=e=>{if(!e)return null;if(_y(e))return e;let r=e.length;if(!zR(r))return null;const i=new Array(r);for(;r-- >0;)i[r]=e[r];return i},iHe=(e=>r=>e&&r instanceof e)(typeof Uint8Array<"u"&&mC(Uint8Array)),oHe=(e,r)=>{const i=(e&&e[Symbol.iterator]).call(e);let B;for(;(B=i.next())&&!B.done;){const D=B.value;r.call(e,D[0],D[1])}},sHe=(e,r)=>{let i;const B=[];for(;(i=e.exec(r))!==null;)B.push(i);return B},lHe=Mf("HTMLFormElement"),cHe=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,i,B){return i.toUpperCase()+B}),DR=(({hasOwnProperty:e})=>(r,i)=>e.call(r,i))(Object.prototype),dHe=Mf("RegExp"),RR=(e,r)=>{const i=Object.getOwnPropertyDescriptors(e),B={};N2(i,(D,c)=>{let m;(m=r(D,c,e))!==!1&&(B[c]=m||D)}),Object.defineProperties(e,B)},uHe=e=>{RR(e,(r,i)=>{if(Qh(e)&&["arguments","caller","callee"].indexOf(i)!==-1)return!1;const B=e[i];if(Qh(B)){if(r.enumerable=!1,"writable"in r){r.writable=!1;return}r.set||(r.set=()=>{throw Error("Can not rewrite read-only method '"+i+"'")})}})},hHe=(e,r)=>{const i={},B=D=>{D.forEach(c=>{i[c]=!0})};return _y(e)?B(e):B(String(e).split(r)),i},pHe=()=>{},fHe=(e,r)=>(e=+e,Number.isFinite(e)?e:r),yC="abcdefghijklmnopqrstuvwxyz",VR="0123456789",$R={DIGIT:VR,ALPHA:yC,ALPHA_DIGIT:yC+yC.toUpperCase()+VR},mHe=(e=16,r=$R.ALPHA_DIGIT)=>{let i="";const{length:B}=r;for(;e--;)i+=r[Math.random()*B|0];return i};function gHe(e){return!!(e&&Qh(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const yHe=e=>{const r=new Array(10),i=(B,D)=>{if(Aw(B)){if(r.indexOf(B)>=0)return;if(!("toJSON"in B)){r[D]=B;const c=_y(B)?[]:{};return N2(B,(m,a)=>{const y=i(m,D+1);!B2(y)&&(c[a]=y)}),r[D]=void 0,c}}return B};return i(e,0)},vHe=Mf("AsyncFunction"),_He=e=>e&&(Aw(e)||Qh(e))&&Qh(e.then)&&Qh(e.catch),Ar={isArray:_y,isArrayBuffer:NR,isBuffer:$Ge,isFormData:ZGe,isArrayBufferView:jGe,isString:UGe,isNumber:zR,isBoolean:GGe,isObject:Aw,isPlainObject:Mw,isUndefined:B2,isDate:HGe,isFile:WGe,isBlob:qGe,isRegExp:dHe,isFunction:Qh,isStream:XGe,isURLSearchParams:JGe,isTypedArray:iHe,isFileList:YGe,forEach:N2,merge:gC,extend:QGe,trim:KGe,stripBOM:eHe,inherits:tHe,toFlatObject:aHe,kindOf:Tw,kindOfTest:Mf,endsWith:nHe,toArray:rHe,forEachEntry:oHe,matchAll:sHe,isHTMLForm:lHe,hasOwnProperty:DR,hasOwnProp:DR,reduceDescriptors:RR,freezeMethods:uHe,toObjectSet:hHe,toCamelCase:cHe,noop:pHe,toFiniteNumber:fHe,findKey:OR,global:FR,isContextDefined:LR,ALPHABET:$R,generateString:mHe,isSpecCompliantForm:gHe,toJSONObject:yHe,isAsyncFn:vHe,isThenable:_He};function Pl(e,r,i,B,D){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",r&&(this.code=r),i&&(this.config=i),B&&(this.request=B),D&&(this.response=D)}Ar.inherits(Pl,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Ar.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const jR=Pl.prototype,UR={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{UR[e]={value:e}}),Object.defineProperties(Pl,UR),Object.defineProperty(jR,"isAxiosError",{value:!0}),Pl.from=(e,r,i,B,D,c)=>{const m=Object.create(jR);return Ar.toFlatObject(e,m,function(a){return a!==Error.prototype},a=>a!=="isAxiosError"),Pl.call(m,e.message,r,i,B,D),m.cause=e,m.name=e.name,c&&Object.assign(m,c),m};const bHe=null;function vC(e){return Ar.isPlainObject(e)||Ar.isArray(e)}function GR(e){return Ar.endsWith(e,"[]")?e.slice(0,-2):e}function HR(e,r,i){return e?e.concat(r).map(function(B,D){return B=GR(B),!i&&D?"["+B+"]":B}).join(i?".":""):r}function xHe(e){return Ar.isArray(e)&&!e.some(vC)}const wHe=Ar.toFlatObject(Ar,{},null,function(e){return/^is[A-Z]/.test(e)});function Iw(e,r,i){if(!Ar.isObject(e))throw new TypeError("target must be an object");r=r||new FormData,i=Ar.toFlatObject(i,{metaTokens:!0,dots:!1,indexes:!1},!1,function(p,l){return!Ar.isUndefined(l[p])});const B=i.metaTokens,D=i.visitor||f,c=i.dots,m=i.indexes,a=(i.Blob||typeof Blob<"u"&&Blob)&&Ar.isSpecCompliantForm(r);if(!Ar.isFunction(D))throw new TypeError("visitor must be a function");function y(p){if(p===null)return"";if(Ar.isDate(p))return p.toISOString();if(!a&&Ar.isBlob(p))throw new Pl("Blob is not supported. Use a Buffer instead.");return Ar.isArrayBuffer(p)||Ar.isTypedArray(p)?a&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function f(p,l,o){let s=p;if(p&&!o&&typeof p=="object"){if(Ar.endsWith(l,"{}"))l=B?l:l.slice(0,-2),p=JSON.stringify(p);else if(Ar.isArray(p)&&xHe(p)||(Ar.isFileList(p)||Ar.endsWith(l,"[]"))&&(s=Ar.toArray(p)))return l=GR(l),s.forEach(function(u,d){!(Ar.isUndefined(u)||u===null)&&r.append(m===!0?HR([l],d,c):m===null?l:l+"[]",y(u))}),!1}return vC(p)?!0:(r.append(HR(o,l,c),y(p)),!1)}const n=[],v=Object.assign(wHe,{defaultVisitor:f,convertValue:y,isVisitable:vC});function _(p,l){if(!Ar.isUndefined(p)){if(n.indexOf(p)!==-1)throw Error("Circular reference detected in "+l.join("."));n.push(p),Ar.forEach(p,function(o,s){(!(Ar.isUndefined(o)||o===null)&&D.call(r,o,Ar.isString(s)?s.trim():s,l,v))===!0&&_(o,l?l.concat(s):[s])}),n.pop()}}if(!Ar.isObject(e))throw new TypeError("data must be an object");return _(e),r}function WR(e){const r={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(i){return r[i]})}function _C(e,r){this._pairs=[],e&&Iw(e,this,r)}const qR=_C.prototype;qR.append=function(e,r){this._pairs.push([e,r])},qR.toString=function(e){const r=e?function(i){return e.call(this,i,WR)}:WR;return this._pairs.map(function(i){return r(i[0])+"="+r(i[1])},"").join("&")};function kHe(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function YR(e,r,i){if(!r)return e;const B=i&&i.encode||kHe,D=i&&i.serialize;let c;if(D?c=D(r,i):c=Ar.isURLSearchParams(r)?r.toString():new _C(r,i).toString(B),c){const m=e.indexOf("#");m!==-1&&(e=e.slice(0,m)),e+=(e.indexOf("?")===-1?"?":"&")+c}return e}const XR=class{constructor(){this.handlers=[]}use(r,i,B){return this.handlers.push({fulfilled:r,rejected:i,synchronous:B?B.synchronous:!1,runWhen:B?B.runWhen:null}),this.handlers.length-1}eject(r){this.handlers[r]&&(this.handlers[r]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(r){Ar.forEach(this.handlers,function(i){i!==null&&r(i)})}},ZR={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},CHe=typeof URLSearchParams<"u"?URLSearchParams:_C,SHe=typeof FormData<"u"?FormData:null,THe=typeof Blob<"u"?Blob:null,EHe={isBrowser:!0,classes:{URLSearchParams:CHe,FormData:SHe,Blob:THe},protocols:["http","https","file","blob","url","data"]},JR=typeof window<"u"&&typeof document<"u",AHe=(e=>JR&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),MHe=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),IHe=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:JR,hasStandardBrowserEnv:AHe,hasStandardBrowserWebWorkerEnv:MHe},Symbol.toStringTag,{value:"Module"})),If={...IHe,...EHe};function PHe(e,r){return Iw(e,new If.classes.URLSearchParams,Object.assign({visitor:function(i,B,D,c){return If.isNode&&Ar.isBuffer(i)?(this.append(B,i.toString("base64")),!1):c.defaultVisitor.apply(this,arguments)}},r))}function BHe(e){return Ar.matchAll(/\w+|\[(\w*)]/g,e).map(r=>r[0]==="[]"?"":r[1]||r[0])}function NHe(e){const r={},i=Object.keys(e);let B;const D=i.length;let c;for(B=0;B<D;B++)c=i[B],r[c]=e[c];return r}function KR(e){function r(i,B,D,c){let m=i[c++];if(m==="__proto__")return!0;const a=Number.isFinite(+m),y=c>=i.length;return m=!m&&Ar.isArray(D)?D.length:m,y?(Ar.hasOwnProp(D,m)?D[m]=[D[m],B]:D[m]=B,!a):((!D[m]||!Ar.isObject(D[m]))&&(D[m]=[]),r(i,B,D[m],c)&&Ar.isArray(D[m])&&(D[m]=NHe(D[m])),!a)}if(Ar.isFormData(e)&&Ar.isFunction(e.entries)){const i={};return Ar.forEachEntry(e,(B,D)=>{r(BHe(B),D,i,0)}),i}return null}function zHe(e,r,i){if(Ar.isString(e))try{return(r||JSON.parse)(e),Ar.trim(e)}catch(B){if(B.name!=="SyntaxError")throw B}return(i||JSON.stringify)(e)}const bC={transitional:ZR,adapter:["xhr","http"],transformRequest:[function(e,r){const i=r.getContentType()||"",B=i.indexOf("application/json")>-1,D=Ar.isObject(e);if(D&&Ar.isHTMLForm(e)&&(e=new FormData(e)),Ar.isFormData(e))return B?JSON.stringify(KR(e)):e;if(Ar.isArrayBuffer(e)||Ar.isBuffer(e)||Ar.isStream(e)||Ar.isFile(e)||Ar.isBlob(e))return e;if(Ar.isArrayBufferView(e))return e.buffer;if(Ar.isURLSearchParams(e))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let c;if(D){if(i.indexOf("application/x-www-form-urlencoded")>-1)return PHe(e,this.formSerializer).toString();if((c=Ar.isFileList(e))||i.indexOf("multipart/form-data")>-1){const m=this.env&&this.env.FormData;return Iw(c?{"files[]":e}:e,m&&new m,this.formSerializer)}}return D||B?(r.setContentType("application/json",!1),zHe(e)):e}],transformResponse:[function(e){const r=this.transitional||bC.transitional,i=r&&r.forcedJSONParsing,B=this.responseType==="json";if(e&&Ar.isString(e)&&(i&&!this.responseType||B)){const D=!(r&&r.silentJSONParsing)&&B;try{return JSON.parse(e)}catch(c){if(D)throw c.name==="SyntaxError"?Pl.from(c,Pl.ERR_BAD_RESPONSE,this,null,this.response):c}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:If.classes.FormData,Blob:If.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Ar.forEach(["delete","get","head","post","put","patch"],e=>{bC.headers[e]={}});const xC=bC,OHe=Ar.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),FHe=e=>{const r={};let i,B,D;return e&&e.split(`
77
+ */const xu={itemsToShow:1,itemsToScroll:1,modelValue:0,transition:300,autoplay:0,snapAlign:"center",wrapAround:!1,throttle:16,pauseAutoplayOnHover:!1,mouseDrag:!0,touchDrag:!0,dir:"ltr",breakpoints:void 0,i18n:{ariaNextSlide:"Navigate to next slide",ariaPreviousSlide:"Navigate to previous slide",ariaNavigateToSlide:"Navigate to slide {slideNumber}",ariaGallery:"Gallery",itemXofY:"Item {currentSlide} of {slidesCount}",iconArrowUp:"Arrow pointing upwards",iconArrowDown:"Arrow pointing downwards",iconArrowRight:"Arrow pointing to the right",iconArrowLeft:"Arrow pointing to the left"}},vR={itemsToShow:{default:xu.itemsToShow,type:Number},itemsToScroll:{default:xu.itemsToScroll,type:Number},wrapAround:{default:xu.wrapAround,type:Boolean},throttle:{default:xu.throttle,type:Number},snapAlign:{default:xu.snapAlign,validator(e){return["start","end","center","center-even","center-odd"].includes(e)}},transition:{default:xu.transition,type:Number},breakpoints:{default:xu.breakpoints,type:Object},autoplay:{default:xu.autoplay,type:Number},pauseAutoplayOnHover:{default:xu.pauseAutoplayOnHover,type:Boolean},modelValue:{default:void 0,type:Number},mouseDrag:{default:xu.mouseDrag,type:Boolean},touchDrag:{default:xu.touchDrag,type:Boolean},dir:{default:xu.dir,validator(e){return["rtl","ltr"].includes(e)}},i18n:{default:xu.i18n,type:Object},settings:{default(){return{}},type:Object}};function Tje({config:e,slidesCount:r}){const{snapAlign:i,wrapAround:B,itemsToShow:D=1}=e;if(B)return Math.max(r-1,0);let c;switch(i){case"start":c=r-D;break;case"end":c=r-1;break;case"center":case"center-odd":c=r-Math.ceil((D-.5)/2);break;case"center-even":c=r-Math.ceil(D/2);break;default:c=0;break}return Math.max(c,0)}function Eje({config:e,slidesCount:r}){const{wrapAround:i,snapAlign:B,itemsToShow:D=1}=e;let c=0;if(i||D>r)return c;switch(B){case"start":c=0;break;case"end":c=D-1;break;case"center":case"center-odd":c=Math.floor((D-1)/2);break;case"center-even":c=Math.floor((D-2)/2);break;default:c=0;break}return c}function lC({val:e,max:r,min:i}){return r<i?e:Math.min(Math.max(e,i),r)}function Aje({config:e,currentSlide:r,slidesCount:i}){const{snapAlign:B,wrapAround:D,itemsToShow:c=1}=e;let m=r;switch(B){case"center":case"center-odd":m-=(c-1)/2;break;case"center-even":m-=(c-2)/2;break;case"end":m-=c-1;break}return D?m:lC({val:m,max:i-c,min:0})}function _R(e){return e?e.reduce((r,i)=>{var B;return i.type===t.Fragment?[...r,..._R(i.children)]:((B=i.type)===null||B===void 0?void 0:B.name)==="CarouselSlide"?[...r,i]:r},[]):[]}function cC({val:e,max:r,min:i=0}){return e>r?cC({val:e-(r+1),max:r,min:i}):e<i?cC({val:e+(r+1),max:r,min:i}):e}function Mje(e,r){let i;return r?function(...B){const D=this;i||(e.apply(D,B),i=!0,setTimeout(()=>i=!1,r))}:e}function Ije(e,r){let i;return function(...B){i&&clearTimeout(i),i=setTimeout(()=>{e(...B),i=null},r)}}function Pje(e="",r={}){return Object.entries(r).reduce((i,[B,D])=>i.replace(`{${B}}`,String(D)),e)}var Bje=t.defineComponent({name:"ARIA",setup(){const e=t.inject("config",t.reactive(Object.assign({},xu))),r=t.inject("currentSlide",t.ref(0)),i=t.inject("slidesCount",t.ref(0));return()=>t.h("div",{class:["carousel__liveregion","carousel__sr-only"],"aria-live":"polite","aria-atomic":"true"},Pje(e.i18n.itemXofY,{currentSlide:r.value+1,slidesCount:i.value}))}}),Nje=t.defineComponent({name:"Carousel",props:vR,setup(e,{slots:r,emit:i,expose:B}){var D;const c=t.ref(null),m=t.ref([]),a=t.ref(0),y=t.ref(0),f=t.reactive(Object.assign({},xu));let n=Object.assign({},xu),v;const _=t.ref((D=e.modelValue)!==null&&D!==void 0?D:0),p=t.ref(0),l=t.ref(0),o=t.ref(0),s=t.ref(0);let u,d;t.provide("config",f),t.provide("slidesCount",y),t.provide("currentSlide",_),t.provide("maxSlide",o),t.provide("minSlide",s),t.provide("slideWidth",a);function h(){v=Object.assign({},e.breakpoints),n=Object.assign(Object.assign(Object.assign({},n),e),{i18n:Object.assign(Object.assign({},n.i18n),e.i18n),breakpoints:void 0}),b(n)}function g(){if(!v||!Object.keys(v).length)return;const ae=Object.keys(v).map(ie=>Number(ie)).sort((ie,ue)=>+ue-+ie);let ne=Object.assign({},n);ae.some(ie=>{const ue=window.matchMedia(`(min-width: ${ie}px)`).matches;return ue&&(ne=Object.assign(Object.assign({},ne),v[ie])),ue}),b(ne)}function b(ae){Object.entries(ae).forEach(([ne,ie])=>f[ne]=ie)}const w=Ije(()=>{g(),x()},16);function x(){if(!c.value)return;const ae=c.value.getBoundingClientRect();a.value=ae.width/f.itemsToShow}function S(){y.value<=0||(l.value=Math.ceil((y.value-1)/2),o.value=Tje({config:f,slidesCount:y.value}),s.value=Eje({config:f,slidesCount:y.value}),f.wrapAround||(_.value=lC({val:_.value,max:o.value,min:s.value})))}t.onMounted(()=>{t.nextTick(()=>x()),setTimeout(()=>x(),1e3),g(),V(),window.addEventListener("resize",w,{passive:!0}),i("init")}),t.onUnmounted(()=>{d&&clearTimeout(d),u&&clearInterval(u),window.removeEventListener("resize",w,{passive:!0})});let C=!1;const T={x:0,y:0},k={x:0,y:0},A=t.reactive({x:0,y:0}),E=t.ref(!1),M=t.ref(!1),I=()=>{E.value=!0},N=()=>{E.value=!1};function z(ae){["INPUT","TEXTAREA","SELECT"].includes(ae.target.tagName)||(C=ae.type==="touchstart",C||ae.preventDefault(),!(!C&&ae.button!==0||U.value)&&(T.x=C?ae.touches[0].clientX:ae.clientX,T.y=C?ae.touches[0].clientY:ae.clientY,document.addEventListener(C?"touchmove":"mousemove",F,!0),document.addEventListener(C?"touchend":"mouseup",R,!0)))}const F=Mje(ae=>{M.value=!0,k.x=C?ae.touches[0].clientX:ae.clientX,k.y=C?ae.touches[0].clientY:ae.clientY;const ne=k.x-T.x,ie=k.y-T.y;A.y=ie,A.x=ne},f.throttle);function R(){const ae=f.dir==="rtl"?-1:1,ne=Math.sign(A.x)*.4,ie=Math.round(A.x/a.value+ne)*ae;if(ie&&!C){const ue=he=>{he.stopPropagation(),window.removeEventListener("click",ue,!0)};window.addEventListener("click",ue,!0)}Z(_.value-ie),A.x=0,A.y=0,M.value=!1,document.removeEventListener(C?"touchmove":"mousemove",F,!0),document.removeEventListener(C?"touchend":"mouseup",R,!0)}function V(){!f.autoplay||f.autoplay<=0||(u=setInterval(()=>{f.pauseAutoplayOnHover&&E.value||q()},f.autoplay))}function $(){u&&(clearInterval(u),u=null),V()}const U=t.ref(!1);function Z(ae){const ne=f.wrapAround?ae:lC({val:ae,max:o.value,min:s.value});_.value===ne||U.value||(i("slide-start",{slidingToIndex:ae,currentSlideIndex:_.value,prevSlideIndex:p.value,slidesCount:y.value}),U.value=!0,p.value=_.value,_.value=ne,d=setTimeout(()=>{if(f.wrapAround){const ie=cC({val:ne,max:o.value,min:0});ie!==_.value&&(_.value=ie,i("loop",{currentSlideIndex:_.value,slidingToIndex:ae}))}i("update:modelValue",_.value),i("slide-end",{currentSlideIndex:_.value,prevSlideIndex:p.value,slidesCount:y.value}),U.value=!1,$()},f.transition))}function q(){Z(_.value+f.itemsToScroll)}function W(){Z(_.value-f.itemsToScroll)}const Q={slideTo:Z,next:q,prev:W};t.provide("nav",Q),t.provide("isSliding",U);const X=t.computed(()=>Aje({config:f,currentSlide:_.value,slidesCount:y.value}));t.provide("slidesToScroll",X);const J=t.computed(()=>{const ae=f.dir==="rtl"?-1:1,ne=X.value*a.value*ae;return{transform:`translateX(${A.x-ne}px)`,transition:`${U.value?f.transition:0}ms`,margin:f.wrapAround?`0 -${y.value*a.value}px`:"",width:"100%"}});function ee(){h(),g(),S(),x(),$()}Object.keys(vR).forEach(ae=>{["modelValue"].includes(ae)||t.watch(()=>e[ae],ee)}),t.watch(()=>e.modelValue,ae=>{ae!==_.value&&Z(Number(ae))}),t.watch(y,S),i("before-init"),h();const le={config:f,slidesCount:y,slideWidth:a,next:q,prev:W,slideTo:Z,currentSlide:_,maxSlide:o,minSlide:s,middleSlide:l};B({updateBreakpointsConfigs:g,updateSlidesData:S,updateSlideWidth:x,initDefaultConfigs:h,restartCarousel:ee,slideTo:Z,next:q,prev:W,nav:Q,data:le});const oe=r.default||r.slides,se=r.addons,ce=t.reactive(le);return()=>{const ae=_R(oe==null?void 0:oe(ce)),ne=(se==null?void 0:se(ce))||[];ae.forEach((pe,me)=>pe.props.index=me);let ie=ae;if(f.wrapAround){const pe=ae.map((_e,we)=>t.cloneVNode(_e,{index:-ae.length+we,isClone:!0,key:`clone-before-${we}`})),me=ae.map((_e,we)=>t.cloneVNode(_e,{index:ae.length+we,isClone:!0,key:`clone-after-${we}`}));ie=[...pe,...ae,...me]}m.value=ae,y.value=Math.max(ae.length,1);const ue=t.h("ol",{class:"carousel__track",style:J.value,onMousedownCapture:f.mouseDrag?z:null,onTouchstartPassiveCapture:f.touchDrag?z:null},ie),he=t.h("div",{class:"carousel__viewport"},ue);return t.h("section",{ref:c,class:{carousel:!0,"is-sliding":U.value,"is-dragging":M.value,"is-hover":E.value,"carousel--rtl":f.dir==="rtl"},dir:f.dir,"aria-label":f.i18n.ariaGallery,tabindex:"0",onMouseenter:I,onMouseleave:N},[he,ne,t.h(Bje)])}}}),bR;(function(e){e.arrowUp="arrowUp",e.arrowDown="arrowDown",e.arrowRight="arrowRight",e.arrowLeft="arrowLeft"})(bR||(bR={}));var zje=t.defineComponent({name:"CarouselSlide",props:{index:{type:Number,default:1},isClone:{type:Boolean,default:!1}},setup(e,{slots:r}){const i=t.inject("config",t.reactive(Object.assign({},xu))),B=t.inject("currentSlide",t.ref(0)),D=t.inject("slidesToScroll",t.ref(0)),c=t.inject("isSliding",t.ref(!1)),m=()=>e.index===B.value,a=()=>e.index===B.value-1,y=()=>e.index===B.value+1,f=()=>{const n=Math.floor(D.value),v=Math.ceil(D.value+i.itemsToShow-1);return e.index>=n&&e.index<=v};return()=>{var n;return t.h("li",{style:{width:`${100/i.itemsToShow}%`},class:{carousel__slide:!0,"carousel__slide--clone":e.isClone,"carousel__slide--visible":f(),"carousel__slide--active":m(),"carousel__slide--prev":a(),"carousel__slide--next":y(),"carousel__slide--sliding":c.value},"aria-hidden":!f()},(n=r.default)===null||n===void 0?void 0:n.call(r))}}});const Oje=(e,r)=>{const i=e.__vccOpts||e;for(const[B,D]of r)i[B]=D;return i},Fje=e=>(t.pushScopeId("data-v-54620d25"),e=e(),t.popScopeId(),e),Lje={class:"gsc-carousel"},Dje={key:0},Rje=Fje(()=>t.createElementVNode("div",null,"no hay",-1)),Vje=[Rje],$je={class:"gsc-carousel__2d__slides"},jje={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Uje=["fill"],Gje={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Hje=["fill"],Wje={class:"gsc-carousel__2d__navigation"},qje={width:"8",height:"15",viewBox:"0 0 8 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Yje=["stroke"],Xje={key:1,class:"gsc-carousel__2d__navigation__pagination"},Zje=["onClick"],Jje={width:"7",height:"15",viewBox:"0 0 7 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Kje=["stroke"],Qje={__name:"GSC-Carousel",props:{currentItemIndex:{type:Number,default:0},items:{type:Array,default:()=>[]},is3d:{type:Boolean,default:!1},isPaginationVisible:{type:Boolean,default:!1},areNavigationArrowsVisible:{type:Boolean,default:!0},defaultItemByIndex:{type:Number,default:0},defaultItemByProp:{type:Object,default:null,validator:e=>["propName","value"].every(r=>r in e)},navigationHeight:{type:Number,default:4},navigationBorderRadius:{type:Number,default:4},navigationColor:{type:String,default:"rgba(255, 255, 255, 0.4)"},navigationActiveColor:{type:String,default:"#cbee6b"},navigationActiveWidth:{type:Number,default:30},arrowsColor:{type:String,default:"#cbee6b"},arrowsMaxWidth:{type:String,default:"20px"},wrapAround:{type:Boolean,default:!1},itemsToShow:{type:Number,default:1},isMainSlidePriority:{type:Boolean,default:!1},areSlidesArrowsVisible:{type:Boolean,default:!1},slideLeftArrowBackgroundImage:{type:String,default:"linear-gradient(to right, rgba(13, 29, 41, 1), rgba(0, 0, 0, 0))"},slideRightArrowBackgroundImage:{type:String,default:"linear-gradient(to left, rgba(13, 29, 41, 1), rgba(0, 0, 0, 0))"},areSlidesArrowsRounded:{type:Boolean,default:!1},slidesArrowsLeftAndRight:{type:String,default:"20px"},secondarySlidesOpacity:{type:Number,default:.8},marginTop:{type:String,default:"0"}},emits:["input","update:currentItemIndex"],setup(e,{expose:r,emit:i}){const B=e;t.useCssVars(o=>({"2c72d674":e.slideLeftArrowBackgroundImage,"90a63f40":e.slidesArrowsLeftAndRight,"2627d097":e.slideRightArrowBackgroundImage,"1904d43f":e.marginTop,cfb58986:e.secondarySlidesOpacity}));const D=t.ref(null),c=t.ref({}),m=t.ref(0),a=t.ref(!1);t.watch(D,o=>{o&&a.value?(a.value=!1,y(B.items)):o&&o.slideTo&&o.slideTo(m.value)},{deep:!0}),t.watch(()=>B.currentItemIndex,o=>{m.value!==o&&_(o)}),t.watch(()=>B.defaultItemByIndex,o=>{m.value!==o&&_(o)}),t.watch(()=>B.items,o=>{D.value?y(o):a.value=!0},{immediate:!0});function y(o){o&&o.length&&D.value&&setTimeout(()=>{if(B.defaultItemByProp){const s=B.items.findIndex(u=>u[B.defaultItemByProp.propName]===B.defaultItemByProp.value);s!==-1?(m.value=s,c.value=o[s]):(m.value=0,c.value=o[0])}else m.value=B.defaultItemByIndex,c.value=o[B.defaultItemByIndex];D.value.slideTo&&D.value.slideTo(m.value),c.value&&m.value===0&&i("input",{selectedItem:c.value,selectedItemIndex:m.value})},500)}function f(){D.value&&D.value.next()}function n(){D.value&&D.value.prev()}function v(){D.value&&D.value.updateSlideWidth()}function _(o){D.value&&D.value.slideTo(o)}function p(o){D.value.slideTo(o)}function l(o){const s=o.slidingToIndex<0?B.items.length-1:o.slidingToIndex===B.items.length?0:o.slidingToIndex;m.value=s,c.value=B.items[s],i("update:currentItemIndex",s),i("input",{selectedItem:c.value,selectedItemIndex:m.value})}return r({prev:n,next:f,updateSlideWidth:v,slideTo:_}),(o,s)=>(t.openBlock(),t.createElementBlock("div",Lje,[B.is3d?(t.openBlock(),t.createElementBlock("div",Dje,Vje)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(["gsc-carousel__2d",{"main-slide-priority":e.isMainSlidePriority}])},[t.createElementVNode("div",$je,[t.createVNode(t.unref(Nje),{ref_key:"carousel2d",ref:D,"items-to-show":e.itemsToShow,"wrap-around":e.wrapAround,onSlideStart:l},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(u,d)=>(t.openBlock(),t.createBlock(t.unref(zje),{key:d},{default:t.withCtx(()=>[t.renderSlot(o.$slots,"default",{item:u},void 0,!0)]),_:2},1024))),128))]),_:3},8,["items-to-show","wrap-around"])]),e.areSlidesArrowsVisible&&e.items.length>1?(t.openBlock(),t.createElementBlock("div",{key:0,class:"gsc-carousel__2d__arrow-left",style:t.normalizeStyle("max-width:"+e.arrowsMaxWidth+"!important"),onClick:s[0]||(s[0]=u=>D.value.prev())},[t.createElementVNode("div",{class:t.normalizeClass(["gsc-carousel__2d__slide-button",{rounded:e.areSlidesArrowsRounded}])},[(t.openBlock(),t.createElementBlock("svg",jje,[t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.10399 9L8.62342 15.4393C9.12552 16.0251 9.12552 16.9749 8.62342 17.5607C8.12132 18.1464 7.30725 18.1464 6.80514 17.5607L0.376575 10.0607C-0.125528 9.47487 -0.125528 8.52512 0.376575 7.93934L6.80515 0.439339C7.30725 -0.146447 8.12132 -0.146447 8.62342 0.43934C9.12553 1.02513 9.12553 1.97487 8.62342 2.56066L3.10399 9Z",fill:e.arrowsColor},null,8,Uje)]))],2)],4)):t.createCommentVNode("",!0),e.areSlidesArrowsVisible&&e.items.length>1?(t.openBlock(),t.createElementBlock("div",{key:1,class:"gsc-carousel__2d__arrow-right",style:t.normalizeStyle("max-width:"+e.arrowsMaxWidth+"!important"),onClick:s[1]||(s[1]=u=>f())},[t.createElementVNode("div",{class:t.normalizeClass(["gsc-carousel__2d__slide-button",{rounded:e.areSlidesArrowsRounded}])},[(t.openBlock(),t.createElementBlock("svg",Gje,[t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5.89601 9L0.376575 2.56066C-0.125528 1.97487 -0.125528 1.02513 0.376575 0.439339C0.878675 -0.146447 1.69275 -0.146447 2.19486 0.43934L8.62343 7.93934C9.12553 8.52513 9.12553 9.47487 8.62343 10.0607L2.19486 17.5607C1.69275 18.1464 0.878675 18.1464 0.376575 17.5607C-0.125528 16.9749 -0.125528 16.0251 0.376575 15.4393L5.89601 9Z",fill:e.arrowsColor},null,8,Hje)]))],2)],4)):t.createCommentVNode("",!0),t.createElementVNode("div",Wje,[e.areNavigationArrowsVisible?(t.openBlock(),t.createElementBlock("div",{key:0,class:"gsc-carousel__2d__navigation__arrow-left",onClick:s[2]||(s[2]=u=>n())},[(t.openBlock(),t.createElementBlock("svg",qje,[t.createElementVNode("path",{d:"M6.72998 13.894L1.46621 8.63028C0.84457 8.00863 0.84457 6.9914 1.46621 6.36976L6.72998 1.10599",stroke:B.arrowsColor},null,8,Yje)]))])):t.createCommentVNode("",!0),e.isPaginationVisible?(t.openBlock(),t.createElementBlock("div",Xje,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(u,d)=>(t.openBlock(),t.createElementBlock("div",{key:`i-${d}`,class:"gsc-carousel__2d__navigation__pagination__item",style:t.normalizeStyle({height:`${B.navigationHeight}px`,width:`${m.value===d?B.navigationActiveWidth:B.navigationActiveWidth/2}px`,borderRadius:`${B.navigationBorderRadius}px`,backgroundColor:`${m.value===d?B.navigationActiveColor:B.navigationColor}`,transition:"all 0.1s ease-in-out"}),onClick:h=>p(d)},null,12,Zje))),128))])):t.createCommentVNode("",!0),e.areNavigationArrowsVisible?(t.openBlock(),t.createElementBlock("div",{key:2,class:"gsc-carousel__2d__navigation__arrow-right",onClick:s[3]||(s[3]=u=>D.value.next())},[(t.openBlock(),t.createElementBlock("svg",Jje,[t.createElementVNode("path",{d:"M0.72998 1.10599L5.99375 6.36975C6.61539 6.9914 6.61539 8.00863 5.99375 8.63027L0.72998 13.894",stroke:B.arrowsColor},null,8,Kje)]))])):t.createCommentVNode("",!0)])],2))]))}},eUe=Oje(Qje,[["__scopeId","data-v-54620d25"]]),dC=(e,r)=>{const i=e.__vccOpts||e;for(const[B,D]of r)i[B]=D;return i};let xR=null;const uC={components:{},props:{titleCategory:{type:String,default:"RESUMEN"},dateGame:{type:String,default:""},colorBackgroundHome:{type:String,default:"#000000"},colorBackgroundAway:{type:String,default:"#FFFFFF"},logoHome:{type:String,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?"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<=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<=400?"thumbnail-highlights400":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)xR=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),xR.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},wR=()=>{t.useCssVars(e=>({"41af28e8":e.colorBackgroundHome+"45","90ae2246":e.colorBackgroundAway+"45","1d262e1e":e.colorBackgroundHome,"1d231c2d":e.colorBackgroundAway}))},kR=uC.setup;uC.setup=kR?(e,r)=>(wR(),kR(e,r)):wR;const Cw=e=>(t.pushScopeId("data-v-fd9d1e65"),e=e(),t.popScopeId(),e),tUe=Cw(()=>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)),aUe=[tUe],nUe=Cw(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/paper-texture.png",alt:"",class:"paper-texture position-image"},null,-1)),rUe=["src"],iUe=Cw(()=>t.createElementVNode("div",{class:"gradient-back position-image"},null,-1)),oUe=Cw(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/halftone-texture.png",alt:"",class:"halftone-texture position-image"},null,-1)),sUe=["src"],lUe=["src"],cUe={class:"text-container"};function dUe(e,r,i,B,D,c){return t.openBlock(),t.createElementBlock("div",{ref:"gamesContainer",class:t.normalizeClass(c.thumbnailhighlights)},[t.createElementVNode("div",{class:t.normalizeClass(c.playbutton),onClick:r[0]||(r[0]=(...m)=>c.onclickPlayVideos&&c.onclickPlayVideos(...m))},aUe,2),i.dateGame!=""?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(c.date)},t.toDisplayString(i.dateGame),3)):t.createCommentVNode("",!0),i.matchday!=""&&i.seasonName!=""?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(c.containerinfogame)},[i.matchday!=""?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(c.matchcontainer)},t.toDisplayString(i.matchday),3)):t.createCommentVNode("",!0),i.seasonName!=""?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(c.seasoncontainer)},t.toDisplayString(i.seasonName),3)):t.createCommentVNode("",!0)],2)):t.createCommentVNode("",!0),nUe,t.createElementVNode("img",{src:i.background,alt:"",class:"bkg-blackwhite position-image"},null,8,rUe),t.createElementVNode("div",{class:t.normalizeClass([c.baselogo,"position-image"])},null,2),t.createElementVNode("div",{class:t.normalizeClass(c.baselogoright)},null,2),iUe,oUe,t.createElementVNode("img",{src:i.logoHome,alt:"",class:t.normalizeClass(c.teamlogo)},null,10,sUe),t.createElementVNode("img",{src:i.logoAway,alt:"",class:t.normalizeClass(c.logoright)},null,10,lUe),t.createElementVNode("div",cUe,[t.createElementVNode("span",{class:t.normalizeClass(c.secondline)},t.toDisplayString(i.score),3),t.createElementVNode("div",{class:t.normalizeClass(c.titlename)},t.toDisplayString(i.titleCategory),3)])],2)}const uUe=dC(uC,[["render",dUe],["__scopeId","data-v-fd9d1e65"]]);let CR=null;const hC={components:{},props:{type:{type:Number,default:0},colorBackgroundHome:{type:String,default:"#000000"},colorBackgroundAway:{type:String,default:"#FFFFFF"},nameCategory:{type:String,default:""},date:{type:String,default:""},seasonName:{type:String,default:""},matchday:{type:String,default:""},photoProfile:{type:String,default:""},logoHome:{type:String,default:""},logoAway:{type:String,default:""},scoreHome:{type:String,default:""},scoreAway:{type:String,default:""},background:{type:String,default:""},typeImg:{type:Number,default:0},nameHomeTeam:{type:String,default:""},nameAwayTeam:{type:String,default:""},namePlayer:{type:String,default:""}},data(){return{gamesContainerWidth:0}},computed:{playbutton(){const e=this.gamesContainerWidth;return e<=400?"play-button400":e<=540?"play-button540":e<=650?"play-button650":"play-button"},points(){const e=this.gamesContainerWidth;return e<=400?"points400":e<=540?"points540":e<=650?"points650":"points"},containerinfogame(){const e=this.gamesContainerWidth;return e<=400?"container-info-game400":e<=540?"container-info-game540":e<=650?"container-info-game650":"container-info-game"},teamname(){const e=this.gamesContainerWidth;return e<=400?"team-name400":e<=540?"team-name540":e<=650?"team-name650":"team-name"},teamscore(){const e=this.gamesContainerWidth;return e<=400?"team-score400":e<=540?"team-score540":e<=650?"team-score650":"team-score"},teamlogo(){const e=this.gamesContainerWidth;return e<=400?"team-logo400":e<=540?"team-logo540":e<=650?"team-logo650":"team-logo"},hometeam(){const e=this.gamesContainerWidth;return e<=400?"home-team400":e<=540?"home-team540":e<=650?"home-team650":"home-team"},awayteam(){const e=this.gamesContainerWidth;return e<=400?"away-team400":e<=540?"away-team540":e<=650?"away-team650":"away-team"},texttitle(){const e=this.gamesContainerWidth;return e<=400?"text-title400":e<=540?"text-title540":e<=650?"text-title650":"text-title"},matchcontainer(){const e=this.gamesContainerWidth;return e<=400?"match-container400":e<=540?"match-container540":e<=650?"match-container650":"match-container"},seasonnameContainer(){const e=this.gamesContainerWidth;return e<=280?"seasonname280":e<=400?"seasonname400":e<=540?"seasonname540":e<=650?"seasonname650":"seasonname"},matchboxContainer(){const e=this.gamesContainerWidth;return e<=400?"matchbox400":e<=540?"matchbox540":e<=650?"matchbox650":"matchbox"},seasoncontainer(){const e=this.gamesContainerWidth;return e<=400?"season-container400":e<=540?"season-container540":e<=650?"season-container650":"season-container"},texttitle2(){const e=this.gamesContainerWidth;return e<=300?"text-title2400":e<=540?"text-title2540":e<=650?"text-title2650":"text-title2"},playerimage(){const e=this.gamesContainerWidth;return e<=400?"player-image400":e<=540?"player-image540":e<=650?"player-image650":"player-image"},thumbnailhighlights(){const e=this.gamesContainerWidth;return e<=400?"thumbnail-highlights400":e<=540?"thumbnail-highlights540":e<=650?"thumbnail-highlights650":"thumbnail-highlights"}},methods:{onclickPlayVideos(){this.$emit("onclickPlayVideos")},setUpResizeObserver(){if(window.ResizeObserver)CR=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),CR.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},SR=()=>{t.useCssVars(e=>({"16e4cc48":e.colorBackgroundHome,"16e1ba57":e.colorBackgroundAway,"0a08a218":e.colorBackgroundAway+"62",31881400:e.colorBackgroundHome+"36"}))},TR=hC.setup;hC.setup=TR?(e,r)=>(SR(),TR(e,r)):SR;const Sw=e=>(t.pushScopeId("data-v-4fef1a3b"),e=e(),t.popScopeId(),e),hUe=Sw(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/paper-texture.png",alt:"",class:"paper-texture position-image"},null,-1)),pUe=Sw(()=>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)),fUe=[pUe],mUe={class:"player-container"},gUe=["src"],yUe=["src"],vUe=["src"],_Ue={class:"container-score"},bUe=["src"],xUe=["src"],wUe=["src"],kUe=Sw(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/halftone-texture.png",alt:"",class:"halftone-texture position-image"},null,-1)),CUe=Sw(()=>t.createElementVNode("div",{class:"gradient-color"},null,-1));function SUe(e,r,i,B,D,c){return t.openBlock(),t.createElementBlock("div",{ref:"gamesContainer",class:t.normalizeClass(c.thumbnailhighlights)},[hUe,t.createElementVNode("div",{class:t.normalizeClass(c.playbutton),onClick:r[0]||(r[0]=(...m)=>c.onclickPlayVideos&&c.onclickPlayVideos(...m))},fUe,2),t.createElementVNode("div",mUe,[t.createElementVNode("div",{class:t.normalizeClass(c.containerinfogame)},[t.createElementVNode("div",{class:t.normalizeClass(c.matchcontainer)},[t.createElementVNode("div",{class:t.normalizeClass(c.matchboxContainer)},t.toDisplayString(i.matchday),3),t.createElementVNode("div",{class:t.normalizeClass(c.seasonnameContainer)},t.toDisplayString(i.seasonName),3)],2),t.createElementVNode("div",{class:t.normalizeClass(c.seasoncontainer)},t.toDisplayString(i.date),3)],2),i.type==0?(t.openBlock(),t.createElementBlock("span",{key:0,class:t.normalizeClass(c.texttitle)},t.toDisplayString(i.nameCategory),3)):(t.openBlock(),t.createElementBlock("span",{key:1,class:t.normalizeClass(c.texttitle2)},t.toDisplayString(i.nameCategory),3)),i.typeImg==0?(t.openBlock(),t.createElementBlock("img",{key:2,src:i.photoProfile,class:t.normalizeClass(c.playerimage)},null,10,gUe)):t.createCommentVNode("",!0),i.typeImg==1?(t.openBlock(),t.createElementBlock("img",{key:3,src:i.photoProfile,alt:""},null,8,yUe)):t.createCommentVNode("",!0),i.typeImg==2?(t.openBlock(),t.createElementBlock("img",{key:4,src:i.photoProfile,class:"img-number"},null,8,vUe)):t.createCommentVNode("",!0),t.createElementVNode("div",_Ue,[t.createElementVNode("div",{class:t.normalizeClass(c.hometeam)},[t.createElementVNode("span",{class:t.normalizeClass(c.teamname)},t.toDisplayString(i.nameHomeTeam),3),t.createElementVNode("img",{src:i.logoHome,alt:"",class:t.normalizeClass(c.teamlogo)},null,10,bUe),t.createElementVNode("span",{class:t.normalizeClass(c.teamscore)},t.toDisplayString(i.scoreHome),3)],2),t.createElementVNode("span",{class:t.normalizeClass(c.points)},":",2),t.createElementVNode("div",{class:t.normalizeClass(c.awayteam)},[t.createElementVNode("span",{class:t.normalizeClass(c.teamscore)},t.toDisplayString(i.scoreAway),3),t.createElementVNode("img",{src:i.logoAway,alt:"",class:t.normalizeClass(c.teamlogo)},null,10,xUe),t.createElementVNode("span",{class:t.normalizeClass(c.teamname)},t.toDisplayString(i.nameAwayTeam),3)],2)])]),t.createElementVNode("img",{src:i.background,alt:"",class:"bkg-blackwhite position-image"},null,8,wUe),kUe,CUe],2)}const TUe=dC(hC,[["render",SUe],["__scopeId","data-v-4fef1a3b"]]),EUe={components:{GSCCarousel:eUe,GSCThumbnailHighlightGameHistoric:uUe,GSCThumbnailHighlightGamePlayer:TUe},props:{items:{type:Array,default:()=>[1,2,3]},data:{type:Object,default:()=>{}},title:{type:String,default:"TODAS SUS JUGADAS"},canPlayVideos:{type:Boolean,default:!0},videoPrivilegesPlayingAs:{type:Set,default:()=>new Set([1,2])},privilegesTeamId:{type:Number,default:0}},data(){return{highlightsWidth:0,printData:[],resizeObserverGSCH:null,token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",lastHistoricGamesUrl:""}},watch:{data:{immediate:!0,handler(e){this.getData(e)}}},computed:{printDataFiltered(){return this.canPlayVideos?this.printData.filter(e=>this.videoPrivilegesPlayingAs.has(e.playingAs)):[]},isMobile(){return this.highlightsWidth<580},carouselProps(){return this.isMobile?{wrapAround:!0,itemsToShow:1.2,isMainSlidePriority:!0,areSlidesArrowsVisible:!1,areSlidesArrowsRounded:!1,areNavigationArrowsVisible:!1,isPaginationVisible:!0}:{wrapAround:!0,itemsToShow:1.8,isMainSlidePriority:!0,areSlidesArrowsVisible:!0,areSlidesArrowsRounded:!0,areNavigationArrowsVisible:!1}}},methods:{getPlayingAs(e,r){return e.home_team===(r||this.data.team)?1:2},obtenerNombreCompletoFecha(e){if(e){const r=new Date(e),i=["Domingo","Lunes","Martes","Miércoles","Jueves","Viernes","Sábado"][r.getUTCDay()],B=r.getUTCDate(),D=["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"][r.getUTCMonth()];return`${i} ${B} de ${D}`}else return""},onclickPlayVideos(e){var r=[];e.type==2?e.data.position_id==1?e.data.has_relevants==1?e.data.category==0?r=[55,324,323,608,39,774,802,52,53,40,42,54]:r=e.data.category:r=[55,324,323,608,39,774,802,52,53,40,42,54]:e.data.has_relevants==1?e.data.category==0?r=[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]:r=e.data.category:r=[56,57,59,60,326,213,214,215,216,583,584,122,123,124,125,585,586,128,129,130,131,133,327,587,588,136,137,138,139,589,590,142,143,144,145,146,147,485,486,487,488,489,490,491,492,10,27,597,598,538,539,599,600,541,542,601,602,545,546,603,604,548,549,561,562,100,563,564,103,104,105,106,107,108,565,566,111,567,568,114,115,116,117,118,119,4,88,5,34,402,459,460,461,233,403,456,457,458,236,404,453,454,455,240,405,450,451,452,243,408,447,448,449,283,409,444,445,446,285,410,441,442,443,290,411,438,439,440,292,412,435,436,437,297,414,415,416,417,244,418,419,420,421,401,581,582,331,506,530,579,580,334,507,531,577,578,344,508,532,575,576,424,509,533,573,574,341,529,534,571,572,340,528,535,569,570,427,527,536,348,349,350,465,352,353,354,466,14,52,15,53,218,219,220,221,496,497,498,499,500,501,502,503,217,504,505,521,522,543,33,209,208,517,206,207,26,325,16,51,463,151,154,156,591,592,159,162,163,429,165,593,594,168,171,172,430,174,595,596,177,180,181,431,467,358,361,363,366,369,370,469,372,376,378,379,470,381,385,387,388,471,607,608,210,212]:e.type==3?e.data.category==0?r=[607,608,12,55,54,35,14,52,15,53,466,477,40,257,39]:r=e.data.category:e.data.category!=0?r=e.data.category:r=[607,608,12,55,54,35,14,52,15,53,466,477];const i=[1,2,3];let B={seasonId:e.data.season_id,mainSectionType:1,playListType:e.type,categoryIds:r,gameIdsToFilter:e.data.game_id?[e.data.game_id]:null,playerIds:e.data.position_id!=1?e.data.player_id?[e.data.player_id]:[]:[],goalkeeperIds:e.data.position_id==1?e.data.player_id?[e.data.player_id]:[]:[],teamId:e.data.team_id?e.data.team_id:e.data.team_id_b?e.data.team_id_b:0,matchResult:e.data.matchResult?[e.data.matchResult]:i,advancedFilter:{playListTitle:""}};e.data.category!==0&&(B.advancedFilter.mainCategoryId=e.data.category),this.$emit("openmedia",B)},play(e){this.$emit("play",e)},async getData(e){this.$emit("loading",!0);const r=Sje.create({headers:{Authorization:`${this.token}`}});var i=[],B={};if(e.type=="player"){const D=await r.get("https://uof4tt5l46.execute-api.us-west-2.amazonaws.com/prod/v3/playerInfo/"+e.season+"/"+e.player);if(D.data.seasons[e.season])for(let c=0;c<D.data.seasons[e.season].games_played.length;c++)B={playingAs:this.getPlayingAs(D.data.seasons[e.season].games_played[c],D.data.team_id),category:0,player_id:D.data.player_id,position_id:D.data.position_id,color:D.data.info_thumbnails.colors.background_color,photo_profile:D.data.info_thumbnails.images.player_in_action[0]?"https://golstatsimages.blob.core.windows.net/images-library/"+D.data.info_thumbnails.images.player_in_action[0]:D.data.info_thumbnails.player_profile,team_logo:"https://az755631.vo.msecnd.net/teams-150/"+D.data.seasons[e.season].games_played[c].home_team+".png",player_name:D.data.seasons[e.season].games_played[c].home_team_acronym+" "+D.data.seasons[e.season].games_played[c].home_team_score+" : "+D.data.seasons[e.season].games_played[c].visiting_team_score+" "+D.data.seasons[e.season].games_played[c].visiting_team_acronym,team_id:D.data.team_id,has_relevants:D.data.seasons[e.season].games_played[c].has_relevants,team_id_b:D.data.seasons[e.season].games_played[c].home_team,season_id:D.data.seasons[e.season].games_played[c].season_id,name:D.data.seasons[e.season].games_played[c].player_name,seasonname:D.data.seasons[e.season].name.replace("Clausura","CL ").replace("Apertura","AP "),game_id:D.data.seasons[e.season].games_played[c].game_id,match:D.data.seasons[e.season].games_played[c].matchday_name.replace("Matchday","JOR").replace("de Final","").replace("Playoffs 1","CFI").replace("Playoffs 2","CFV").replace("Playoffs 3","SFI").replace("Playoffs 4","SFV").replace("Playoffs 5","FI").replace("Playoffs 6","FV"),date:this.obtenerNombreCompletoFecha(D.data.seasons[e.season].games_played[c].date),scorehome:D.data.seasons[e.season].games_played[c].home_team_score,scoreaway:D.data.seasons[e.season].games_played[c].visiting_team_score,hometeamacronym:D.data.seasons[e.season].games_played[c].home_team_acronym,visitingteamacronym:D.data.seasons[e.season].games_played[c].visiting_team_acronym,background:D.data.info_thumbnails.images.background_player_in_action[0]?"https://golstatsimages.blob.core.windows.net/images-library/"+D.data.info_thumbnails.images.background_player_in_action[0]:D.data.info_thumbnails.player_profile,backgroundhome:D.data.seasons[e.season].games_played[c].info_thumbnails.home_colors.background_color,backgroundaway:D.data.seasons[e.season].games_played[c].info_thumbnails.away_colors.background_color,logohome:"https://az755631.vo.msecnd.net/teams-150/"+D.data.seasons[e.season].games_played[c].home_team+".png",logoaway:"https://az755631.vo.msecnd.net/teams-150/"+D.data.seasons[e.season].games_played[c].visiting_team+".png",total:D.data.seasons[e.season].games_played[c].matchday_abbreviation.replace("M","Jor "),background_card:"https://az755631.vo.msecnd.net/golstats2-teams/"+D.data.seasons[e.season].games_played[c].home_team+"_"+D.data.seasons[e.season].games_played[c].season_id+"_r1.jpg"},i.push(B);else for(let c=0;c<D.data.national_seasons[e.season].games_played.length;c++)B={playingAs:this.getPlayingAs(D.data.national_seasons[e.season].games_played[c],D.data.team_id),category:0,player_id:D.data.player_id,position_id:D.data.position_id,color:D.data.info_thumbnails.colors.background_color,photo_profile:D.data.info_thumbnails.images.player_in_action[0]?"https://golstatsimages.blob.core.windows.net/images-library/"+D.data.info_thumbnails.images.player_in_action[0]:D.data.info_thumbnails.player_profile,team_logo:"https://az755631.vo.msecnd.net/teams-150/"+D.data.national_seasons[e.season].games_played[c].home_team+".png",player_name:D.data.national_seasons[e.season].games_played[c].home_team_acronym+" "+D.data.national_seasons[e.season].games_played[c].home_team_score+" : "+D.data.national_seasons[e.season].games_played[c].visiting_team_score+" "+D.data.national_seasons[e.season].games_played[c].visiting_team_acronym,team_id:D.data.team_id,has_relevants:D.data.national_seasons[e.season].games_played[c].has_relevants,team_id_b:D.data.national_seasons[e.season].games_played[c].home_team,season_id:D.data.national_seasons[e.season].games_played[c].season_id,name:D.data.national_seasons[e.season].games_played[c].player_name,seasonname:D.data.national_seasons[e.season].name.replace("Clausura","CL ").replace("Apertura","AP "),game_id:D.data.national_seasons[e.season].games_played[c].game_id,match:D.data.national_seasons[e.season].games_played[c].matchday_name.replace("Matchday","JOR").replace("de Final","").replace("Playoffs 1","CFI").replace("Playoffs 2","CFV").replace("Playoffs 3","SFI").replace("Playoffs 4","SFV").replace("Playoffs 5","FI").replace("Playoffs 6","FV"),date:this.obtenerNombreCompletoFecha(D.data.national_seasons[e.season].games_played[c].date),scorehome:D.data.national_seasons[e.season].games_played[c].home_team_score,scoreaway:D.data.national_seasons[e.season].games_played[c].visiting_team_score,hometeamacronym:D.data.national_seasons[e.season].games_played[c].home_team_acronym,visitingteamacronym:D.data.national_seasons[e.season].games_played[c].visiting_team_acronym,background:D.data.info_thumbnails.images.background_player_in_action[0]?"https://golstatsimages.blob.core.windows.net/images-library/"+D.data.info_thumbnails.images.background_player_in_action[0]:D.data.info_thumbnails.player_profile,backgroundhome:D.data.national_seasons[e.season].games_played[c].info_thumbnails.home_colors.background_color,backgroundaway:D.data.national_seasons[e.season].games_played[c].info_thumbnails.away_colors.background_color,logohome:"https://az755631.vo.msecnd.net/teams-150/"+D.data.national_seasons[e.season].games_played[c].home_team+".png",logoaway:"https://az755631.vo.msecnd.net/teams-150/"+D.data.national_seasons[e.season].games_played[c].visiting_team+".png",total:D.data.national_seasons[e.season].games_played[c].matchday_abbreviation.replace("M","Jor "),background_card:"https://az755631.vo.msecnd.net/golstats2-teams/"+D.data.national_seasons[e.season].games_played[c].home_team+"_"+D.data.national_seasons[e.season].games_played[c].season_id+"_r1.jpg"},i.push(B)}else if(e.type=="historic"){const D="https://fxtcaw9tw6.execute-api.us-east-2.amazonaws.com/prod/historic/games/"+e.game;if(this.lastHistoricGamesUrl===D)return;this.lastHistoricGamesUrl=D;const c=await r.get(D);for(let a=0;a<c.data.plays.length;a++)B={teamId:c.data.plays[a][2],player:"Jornada "+c.data.plays[a][6],player_name:c.data.plays[a][4],season_id:c.data.plays[a][31],game_id:c.data.plays[a][3],img:"https://img1.wallspic.com/previews/0/9/1/0/20190/20190-football_player-football-fun-player-sports-x750.jpg"},i.length>0?this.privilegesTeamId==0?!i.filter(y=>y.game_id===c.data.plays[a][3]).length>0&&i.push(B):!i.filter(y=>y.game_id===c.data.plays[a][3]).length>0&&c.data.plays[a][2]===this.privilegesTeamId&&i.push(B):(this.privilegesTeamId==0||c.data.plays[a][2]===this.privilegesTeamId)&&i.push(B);const m=c.data.thumbnails;for(let a=0;a<i.length;a++){const y=Math.floor(Math.random()*m[i[a].game_id].info_thumbnails.images.background_default_games.length);i[a].background="https://golstatsimages.blob.core.windows.net/images-library/"+m[i[a].game_id].info_thumbnails.images.background_default_games[y],i[a].backgroundhome=m[i[a].game_id].info_thumbnails.home_colors.background_color,i[a].backgroundaway=m[i[a].game_id].info_thumbnails.away_colors.background_color,i[a].logoaway="https://az755631.vo.msecnd.net/teams-150/"+m[i[a].game_id].info_thumbnails.away_colors.team_id+".png",i[a].logohome="https://az755631.vo.msecnd.net/teams-150/"+m[i[a].game_id].info_thumbnails.home_colors.team_id+".png",i[a].match=m[i[a].game_id].matchday_name.replace("Matchday","Jor"),i[a].playingAs=m[i[a].game_id].info_thumbnails.home_colors.team_id===i[a].teamId?1:2,i[a].seasonname=m[i[a].game_id].season_name,i[a].score=m[i[a].game_id].score[0]+" - "+m[i[a].game_id].score[1],i[a].category=0}}else{const D=await r.get("https://ws8d8ye2ii.execute-api.us-west-2.amazonaws.com/prod/v4/seasonsByTeam/"+e.team);for(let c=0;c<D.data.seasons[e.season].games.length;c++){const m=Math.floor(Math.random()*D.data.seasons[e.season].games[c].info_thumbnails.images.background_default_games.length);B={playingAs:this.getPlayingAs(D.data.seasons[e.season].games[c],D.data.team_id),category:0,game_id:D.data.seasons[e.season].games[c].game_id,photo_profile:"https://az755631.vo.msecnd.net/teams-150/"+D.data.seasons[e.season].games[c].visiting_team+".png",team_logo:"https://az755631.vo.msecnd.net/teams-150/"+D.data.seasons[e.season].games[c].home_team+".png",player_name:D.data.seasons[e.season].games[c].home_team_acronym+" "+D.data.seasons[e.season].games[c].home_team_score+" : "+D.data.seasons[e.season].games[c].visiting_team_score+" "+D.data.seasons[e.season].games[c].visiting_team_acronym,team_id_b:D.data.seasons[e.season].games[c].home_team,team_id:D.data.team_id,season_id:D.data.seasons[e.season].games[c].season_id,name:"",seasonname:D.data.seasons[e.season].name,match:D.data.seasons[e.season].games[c].matchday_name.replace("Matchday","Jor"),score:D.data.seasons[e.season].games[c].home_team_score+" : "+D.data.seasons[e.season].games[c].visiting_team_score,background:"https://golstatsimages.blob.core.windows.net/images-library/"+D.data.seasons[e.season].games[c].info_thumbnails.images.background_default_games[m],backgroundhome:D.data.seasons[e.season].games[c].info_thumbnails.home_colors.background_color,backgroundaway:D.data.seasons[e.season].games[c].info_thumbnails.away_colors.background_color,logohome:"https://az755631.vo.msecnd.net/teams-150/"+D.data.seasons[e.season].games[c].home_team+".png",logoaway:"https://az755631.vo.msecnd.net/teams-150/"+D.data.seasons[e.season].games[c].visiting_team+".png",total:D.data.seasons[e.season].games[c].matchday_abbreviation.replace("M","Jor "),background_card:"https://az755631.vo.msecnd.net/golstats2-teams/"+D.data.seasons[e.season].games[c].home_team+"_"+D.data.seasons[e.season].games[c].season_id+"_r1.jpg"},i.push(B)}}this.printData=i,this.$emit("loading",!1)},setUpResizeObserver(){this.resizeObserverGSCH=new ResizeObserver(e=>{for(const r of e)this.highlightsWidth=r.contentRect.width}),this.resizeObserverGSCH.observe(this.$refs.highlights)}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},1e3)}},AUe={key:0,ref:"highlights",class:"carousel-high-lights",id:"carousel-high-lights"};function MUe(e,r,i,B,D,c){const m=t.resolveComponent("GSCThumbnailHighlightGameHistoric"),a=t.resolveComponent("GSCThumbnailHighlightGamePlayer"),y=t.resolveComponent("GSCCarousel");return c.printDataFiltered.length>0&&i.canPlayVideos?(t.openBlock(),t.createElementBlock("div",AUe,[t.createVNode(y,t.mergeProps(c.carouselProps,{items:c.printDataFiltered,arrowsMaxWidth:"65px",slideLeftArrowBackgroundImage:"linear-gradient(to right, rgba(22, 37, 49, 1), rgba(0, 0, 0, 0))",slideRightArrowBackgroundImage:"linear-gradient(to left, rgba(22, 37, 49, 1), rgba(0, 0, 0, 0))",secondarySlidesOpacity:.2}),{default:t.withCtx(({item:f})=>[i.data.type=="team"||i.data.type=="historic"?(t.openBlock(),t.createBlock(m,{key:0,items:f,"color-background-home":f.backgroundhome,"color-background-away":f.backgroundaway,"logo-home":f.logohome,"logo-away":f.logoaway,background:f.background,matchday:f.match,onOnclickPlayVideos:n=>c.onclickPlayVideos({data:f,type:1}),"season-name":f.seasonname,score:f.score},null,8,["items","color-background-home","color-background-away","logo-home","logo-away","background","matchday","onOnclickPlayVideos","season-name","score"])):(t.openBlock(),t.createBlock(a,{key:1,type:"player","name-player":f.name,"type-style":"game","color-background-home":f.backgroundhome,"color-background-away":f.backgroundaway,"type-img":"0",date:f.date,"season-name":f.seasonname,matchday:f.match,background:f.background,"name-home-team":f.hometeamacronym,"name-away-team":f.visitingteamacronym,"name-category":i.title,onOnclickPlayVideos:n=>c.onclickPlayVideos({data:f,type:2}),"logo-away":f.logoaway,"logo-home":f.logohome,"score-home":f.scorehome,"photo-profile":f.photo_profile,"score-away":f.scoreaway},null,8,["name-player","color-background-home","color-background-away","date","season-name","matchday","background","name-home-team","name-away-team","name-category","onOnclickPlayVideos","logo-away","logo-home","score-home","photo-profile","score-away"]))]),_:1},16,["items"])],512)):t.createCommentVNode("",!0)}const IUe=dC(EUe,[["render",MUe]]);let ER=null;const PUe={components:{GSCHighlights:IUe,GSCPlayerTeamGame:L9,GSCCard:U9},props:{isWidget:{type:Boolean,default:!1},teamWidget:{type:Number,default:0},config:{type:Object,default:()=>{}},videoPrivilegesPlayingAs:{type:Set,default:()=>new Set([1,2])},tournamentSelected:{type:Object,default:()=>({})},playVideosPrivileges:{type:Object,default:null}},computed:{vpPlayingAs(){let e=new Set([]);return this.canPlayVideos.home&&!this.canPlayVideos.away&&(e=new Set([1])),!this.canPlayVideos.home&&this.canPlayVideos.away&&(e=new Set([2])),this.canPlayVideos.home&&this.canPlayVideos.away&&(e=new Set([1,2])),e},canPlayVideos(){let e={home:!0,away:!0};return this.playVideosPrivileges&&(this.playVideosPrivileges.canPrivilegesTeamPlayVideos?this.playVideosPrivileges.isPrivilegesTeamOnly?e={home:this.playVideosPrivileges.isPrivilegesTeamHome,away:!this.playVideosPrivileges.isPrivilegesTeamHome}:e={home:!0,away:!0}:e={home:!1,away:!1}),e},gridcarrouselesitemsClass(){return this.gamesContainerWidth<=900?"grid-carrouseles-items900":"grid-carrouseles-items"},gridcarrouselesitemsitemunoClass(){return this.gamesContainerWidth<=900?"grid-carrouseles-items-itemuno900":"grid-carrouseles-items-itemuno"},gridcarrouselesitemsitemdosClass(){return this.gamesContainerWidth<=900?"grid-carrouseles-items-itemdos900":"grid-carrouseles-items-itemdos"},videopartidopltegadatosClass(){return this.gamesContainerWidth<=900?"video-partido-pltega-datos900":"video-partido-pltega-datos"},videopartidopltegaplayersClass(){return this.gamesContainerWidth<=900?"video-partido-pltega-players620":"video-partido-pltega-players"}},data(){return{gamesContainerWidth:0,token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",gameInfo:{},printData:[],teamsInfoResponse:null,gamesBySeasonResponse:null,bestPlaysBySeasonAndGameResponse:null,bestPlaysBySeasonAndHomeTeamResponse:null,bestPlaysBySeasonAndAwayTeamResponse:null}},async mounted(){setTimeout(()=>{this.setUpResizeObserver()},100),await this.fillData()},methods:{setGameInfo(e){const r=e.data.games.findIndex(i=>i.game_id===this.config.game);this.gameInfo=e.data.games[r]},onclickPlayVideos(e){var r=[];e.type==2?e.data.position_id==1?e.data.category==0?r=[55,324,323,608,39,774,802,52,53,40,54]:r=e.data.category:e.data.category==0?r=[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]:r=e.data.category:e.type==3?e.data.category==0?r=[607,608,12,55,54,35,14,52,15,53,466,477,40,257,39]:r=e.data.category:e.data.category!=0?r=e.data.category:r=[607,608,12,55,54,35,14,52,15,53,466,477];const i=[1,2,3];let B={seasonId:e.data.season_id,mainSectionType:1,playListType:e.type,categoryIds:r,gameIds:null,playerIds:e.data.position_id!=1?e.data.player_id?[e.data.player_id]:[]:[],goalkeeperIds:e.data.position_id==1?e.data.player_id?[e.data.player_id]:[]:[],teamId:e.data.team_id?e.data.team_id:0,matchResult:e.data.matchResult?[data.matchResult]:i,playData:{},advancedFilter:{playListTitle:""}};e.data.category!==0&&(B.advancedFilter.mainCategoryId=e.data.category),this.$emit("openmedia",B)},openmedia(e){this.$emit("openmedia",e)},setUpResizeObserver(){if(window.ResizeObserver)ER=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),ER.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")},async fillData(){const e=Jm.create({headers:{Authorization:`${this.token}`}}),r=e.get("https://8tvo5bp9ai.execute-api.us-west-2.amazonaws.com/prod/gamesBySeason/"+this.config.season_id);this.gameInfo={};let i=null;!this.config.homeTeamId&&!this.config.awayTeamId&&(i=await r,this.setGameInfo(i));const B=e.get("https://d2oco6mqmc.execute-api.us-west-2.amazonaws.com/prod/teamsBySeason/"+this.config.season_id),D=e.get("https://wlduw4woy3.execute-api.us-east-2.amazonaws.com/prod/best-plays/seasons/"+this.config.season_id+"/teams/"+this.config.homeTeamId||this.gameInfo.home_team),c=e.get("https://wlduw4woy3.execute-api.us-east-2.amazonaws.com/prod/best-plays/seasons/"+this.config.season_id+"/teams/"+this.config.awayTeamId||this.gameInfo.visiting_team),m=e.get("https://wlduw4woy3.execute-api.us-east-2.amazonaws.com/prod/best-plays/seasons/"+this.config.season_id+"/games/"+this.config.game),a=[D,c,m,B];i||a.push(r);const[y,f,n,v,_]=await Promise.all(a);i||this.setGameInfo(_),this.teamsInfoResponse=v,this.gamesBySeasonResponse=_||i,this.bestPlaysBySeasonAndGameResponse=n,this.bestPlaysBySeasonAndHomeTeamResponse=y,this.bestPlaysBySeasonAndAwayTeamResponse=f;let p=[],l={};for(let o=0;o<n.data.games[0].players.length;o++)Math.floor(Math.random()*n.data.games[0].players[o].info_thumbnails.images.background_player_in_action.length),Math.floor(Math.random()*n.data.games[0].players[o].info_thumbnails.images.player_in_action.length),l={background_color_buttons:n.data.games[0].players[o].info_thumbnails.colors.background_color_buttons,background_color_cards:n.data.games[0].players[o].info_thumbnails.colors.background_color_cards,color_icon_play:n.data.games[0].players[o].info_thumbnails.colors.color_icon_play,color_next_back:n.data.games[0].players[o].info_thumbnails.colors.color_next_back,font_color:n.data.games[0].players[o].info_thumbnails.colors.font_color,font_color_card:n.data.games[0].players[o].info_thumbnails.colors.font_color_cards,colorbackgroundhome:n.data.games[0].players[o].info_thumbnails.colors.background_color,colorbackgroundaway:"",nameplayer:n.data.games[0].players[o].player_name,background:"https://golstatsimages.blob.core.windows.net/images-library/"+n.data.games[0].players[o].info_thumbnails.images.background_default_teams,namecategory:"RESUMEN",namehometeam:"",nameawayteam:"",logohome:n.data.games[0].players[o].team_logo,photoprofile:"https://az755631.vo.msecnd.net/teams-150/"+n.data.games[0].players[o].info_thumbnails.team_logo,logoaway:"",scoreaway:"",scorehome:"",game_id:n.data.games[0].game_id,season_id:n.data.games[0].players[o].season_id,category:0,team_id:n.data.games[0].players[o].team_id},p.push(l);this.printData=p}}},BUe=e=>(t.pushScopeId("data-v-7c17df8c"),e=e(),t.popScopeId(),e),NUe={ref:"gamesContainer",class:"container"},zUe={class:"video-partido-container"},OUe=BUe(()=>t.createElementVNode("div",{class:"title-video-datos"},"Este torneo:",-1)),FUe={key:0},LUe={key:1},DUe={key:1,class:"video-partido-pltega-games"},RUe={key:2,class:"video-partido-pltega-games-team"};function VUe(e,r,i,B,D,c){t.resolveComponent("GSCHighlights");const m=t.resolveComponent("GSCPlayerTeamGame"),a=t.resolveComponent("GSCCard");return t.openBlock(),t.createElementBlock("div",NUe,[t.createElementVNode("div",zUe,[t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(c.videopartidopltegaplayersClass)},[t.createVNode(m,{onOpenmedia:c.openmedia,style:{"margin-top":"0px"},"background-color":"#172531",type:3,"px-scroll":338,"scroll-color":"none","arrows-position":"absolute","arrows-scroll-hide":!0,arrowsBackground:"rgba(255,255,255,.16)",arrowsContainerBgL:"linear-gradient(270deg, rgba(22,37,50,0) 0%, rgba(22,37,50,1) 70%)",arrowsContainerBgR:"linear-gradient(90deg, rgba(22,37,50,0) 0%, rgba(22,37,50,1) 70%)",arrowsMargin:0,arrowsRadius:"50%",arrowsBorder:"#ddd",title:i.tournamentSelected.is_female==1?"Jugadoras (sus mejores jugadas):":"Jugadores (sus mejores jugadas):",data:{season:i.config.season_id,game:i.config.game,isPrematch:1},"video-privileges-playing-as":c.vpPlayingAs,"play-videos-privileges":i.playVideosPrivileges,"await-for-teams-info":"","await-for-best-plays-by-season-and-game":"","teams-info-response":D.teamsInfoResponse,"best-plays-by-season-and-game-response":D.bestPlaysBySeasonAndGameResponse,onOnClickVideos:e.onClickVideos,onOnClickCard:e.onClickCard},null,8,["onOpenmedia","title","data","video-privileges-playing-as","play-videos-privileges","teams-info-response","best-plays-by-season-and-game-response","onOnClickVideos","onOnClickCard"])],2),t.createElementVNode("div",{class:t.normalizeClass(c.videopartidopltegadatosClass)},[OUe,t.createElementVNode("div",{class:t.normalizeClass(c.gridcarrouselesitemsClass)},[t.createElementVNode("div",{class:t.normalizeClass(c.gridcarrouselesitemsitemunoClass)},[i.isWidget?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[D.gameInfo.home_team==i.teamWidget?(t.openBlock(),t.createElementBlock("div",FUe,[c.canPlayVideos.home&&D.printData[0]?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[D.printData[0].team_id==D.gameInfo.home_team?(t.openBlock(),t.createBlock(a,{key:0,type:5,onOnClickVideos:r[0]||(r[0]=y=>c.onclickPlayVideos({data:D.printData[0],type:3})),onOnClickCard:r[1]||(r[1]=y=>c.onclickPlayVideos({data:D.printData[0],type:3})),"click-card":!1,borderColor:"rgba(255, 255, 255, 0.16)",backgroundColor:D.printData[0].colorbackgroundhome,"background-img":D.printData[0].background,data:{team_name:D.gameInfo.home_team_name,player_photo:D.printData[0].photoprofile,team_id:D.gameInfo.home_team,background_color_buttons:D.printData[0].background_color_buttons,background_color_cards:D.printData[0].background_color_cards,color_icon_play:D.printData[0].color_icon_play,color_next_back:D.printData[0].color_next_back,font_color:D.printData[0].font_color,font_color_card:D.printData[0].font_color_card},"can-play-videos":c.canPlayVideos.home},null,8,["backgroundColor","background-img","data","can-play-videos"])):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),D.gameInfo.visiting_team==i.teamWidget?(t.openBlock(),t.createElementBlock("div",LUe,[c.canPlayVideos.away&&D.printData[1]?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[D.printData[1].team_id==D.gameInfo.visiting_team?(t.openBlock(),t.createBlock(a,{key:0,type:5,onOnClickVideos:r[2]||(r[2]=y=>c.onclickPlayVideos({data:D.printData[1],type:3})),onOnClickCard:r[3]||(r[3]=y=>c.onclickPlayVideos({data:D.printData[1],type:3})),"click-card":!1,borderColor:"rgba(255, 255, 255, 0.16)",backgroundColor:D.printData[1].colorbackgroundhome,"background-img":D.printData[1].background,data:{team_name:D.gameInfo.visiting_team_name,player_photo:D.printData[1].photoprofile,team_id:D.gameInfo.visiting_team,background_color_buttons:D.printData[1].background_color_buttons,background_color_cards:D.printData[1].background_color_cards,color_icon_play:D.printData[1].color_icon_play,color_next_back:D.printData[1].color_next_back,font_color:D.printData[1].font_color,font_color_card:D.printData[1].font_color_card},"can-play-videos":c.canPlayVideos.away},null,8,["backgroundColor","background-img","data","can-play-videos"])):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[c.canPlayVideos.home&&D.printData[0]?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[D.printData[0].team_id==D.gameInfo.home_team?(t.openBlock(),t.createBlock(a,{key:0,type:5,onOnClickVideos:r[4]||(r[4]=y=>c.onclickPlayVideos({data:D.printData[0],type:3})),onOnClickCard:r[5]||(r[5]=y=>c.onclickPlayVideos({data:D.printData[0],type:3})),"click-card":!1,borderColor:"rgba(255, 255, 255, 0.16)",backgroundColor:D.printData[0].colorbackgroundhome,"background-img":D.printData[0].background,data:{team_name:D.gameInfo.home_team_name,player_photo:D.printData[0].photoprofile,team_id:D.gameInfo.home_team,background_color_buttons:D.printData[0].background_color_buttons,background_color_cards:D.printData[0].background_color_cards,color_icon_play:D.printData[0].color_icon_play,color_next_back:D.printData[0].color_next_back,font_color:D.printData[0].font_color,font_color_card:D.printData[0].font_color_card},"can-play-videos":c.canPlayVideos.home},null,8,["backgroundColor","background-img","data","can-play-videos"])):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)],64))],2),t.createElementVNode("div",{class:t.normalizeClass(c.gridcarrouselesitemsitemdosClass)},[c.canPlayVideos.away&&D.printData[1]?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[D.printData[1].team_id==D.gameInfo.visiting_team&&!i.isWidget?(t.openBlock(),t.createBlock(a,{key:0,type:5,onOnClickVideos:r[6]||(r[6]=y=>c.onclickPlayVideos({data:D.printData[1],type:3})),onOnClickCard:r[7]||(r[7]=y=>c.onclickPlayVideos({data:D.printData[1],type:3})),"click-card":!1,borderColor:"rgba(255, 255, 255, 0.16)",backgroundColor:D.printData[1].colorbackgroundhome,"background-img":D.printData[1].background,data:{team_name:D.gameInfo.visiting_team_name,player_photo:D.printData[1].photoprofile,team_id:D.gameInfo.visiting_team,background_color_buttons:D.printData[1].background_color_buttons,background_color_cards:D.printData[1].background_color_cards,color_icon_play:D.printData[1].color_icon_play,color_next_back:D.printData[1].color_next_back,font_color:D.printData[1].font_color,font_color_card:D.printData[1].font_color_card},"can-play-videos":c.canPlayVideos.away},null,8,["backgroundColor","background-img","data","can-play-videos"])):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)],2)],2)],2),c.canPlayVideos.home?(t.openBlock(),t.createElementBlock("div",DUe,[t.createVNode(m,{onOpenmedia:c.openmedia,style:{"margin-top":"0px"},"background-color":"#172531",type:1,"px-scroll":338,"scroll-color":"none","arrows-position":"absolute","arrows-scroll-hide":!0,arrowsBackground:"rgba(255,255,255,.16)",arrowsContainerBgL:"linear-gradient(270deg, rgba(22,37,50,0) 0%, rgba(22,37,50,1) 70%)",arrowsContainerBgR:"linear-gradient(90deg, rgba(22,37,50,0) 0%, rgba(22,37,50,1) 70%)",arrowsMargin:0,arrowsRadius:"50%",arrowsBorder:"#ddd",title:"Jugadas específicas "+D.gameInfo.home_team_name+":",data:{season:i.config.season_id,team:D.gameInfo.home_team,isPrematch:1},"video-privileges-playing-as":i.videoPrivilegesPlayingAs,"play-videos-privileges":i.playVideosPrivileges,"await-for-teams-info":"","await-for-best-plays-by-season-and-team":"","teams-info-response":D.teamsInfoResponse,"best-plays-by-season-and-team-response":D.bestPlaysBySeasonAndHomeTeamResponse,onOnClickVideos:e.onClickVideos,onOnClickCard:e.onClickCard},null,8,["onOpenmedia","title","data","video-privileges-playing-as","play-videos-privileges","teams-info-response","best-plays-by-season-and-team-response","onOnClickVideos","onOnClickCard"])])):t.createCommentVNode("",!0),c.canPlayVideos.away?(t.openBlock(),t.createElementBlock("div",RUe,[t.createVNode(m,{onOpenmedia:c.openmedia,style:{"margin-top":"0px"},"background-color":"#172531",type:1,"px-scroll":338,"scroll-color":"none","arrows-position":"absolute","arrows-scroll-hide":!0,arrowsBackground:"rgba(255,255,255,.16)",arrowsContainerBgL:"linear-gradient(270deg, rgba(22,37,50,0) 0%, rgba(22,37,50,1) 70%)",arrowsContainerBgR:"linear-gradient(90deg, rgba(22,37,50,0) 0%, rgba(22,37,50,1) 70%)",arrowsMargin:0,arrowsRadius:"50%",arrowsBorder:"#ddd",title:"Jugadas específicas "+D.gameInfo.visiting_team_name+":",data:{season:i.config.season_id,team:D.gameInfo.visiting_team,isPrematch:1},"video-privileges-playing-as":i.videoPrivilegesPlayingAs,"play-videos-privileges":i.playVideosPrivileges,"await-for-teams-info":"","await-for-best-plays-by-season-and-team":"","teams-info-response":D.teamsInfoResponse,"best-plays-by-season-and-team-response":D.bestPlaysBySeasonAndAwayTeamResponse,onOnClickVideos:e.onClickVideos,onOnClickCard:e.onClickCard},null,8,["onOpenmedia","title","data","video-privileges-playing-as","play-videos-privileges","teams-info-response","best-plays-by-season-and-team-response","onOnClickVideos","onOnClickCard"])])):t.createCommentVNode("",!0)])],512)}const $Ue=C2(PUe,[["render",VUe],["__scopeId","data-v-7c17df8c"]]);let AR=null;const jUe={components:{GSCCard:U9,GSCPlayerTeamGame:L9,GSCThumbnailHighlightGameHistoric:hL},props:{isWidget:{type:Boolean,default:!1},teamWidget:{type:Number,default:0},config:{type:Object,default:()=>{}},tournamentSelected:{type:Object,default:()=>({})},timeLiveVideoGoals:{type:Number,default:6e4},timeLiveVideoBestPlays:{type:Number,default:6e4},timeLiveVideoThisGame:{type:Number,default:6e4},timeLiveVideoSpecificPlays:{type:Number,default:6e4},canPlayVideos:{type:Boolean,default:!0},videoPrivilegesPlayingAs:{type:Set,default:()=>new Set([1,2])},playVideosPrivileges:{type:Object,default:null}},data(){return{printData:[],gameInfo:{},informationBestPlaysPlayers:[],informationBestPlaysTeamHome:[],informationBestPlaysTeamAway:[],gamesContainerWidth:0,tournamentId:0,showHighlight:!1,showHighlightGoals:!1,intervalId:null,item:{backgroundhome:"",backgroundaway:"",logohome:"",logoaway:"",background:"",match:"",seasonname:"",score:""},token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"}},computed:{showComponentHome(){let e=!0;return this.isWidget&&this.gameInfo.home_team!=this.teamWidget&&(e=!1),e},showComponentAway(){let e=!0;return this.isWidget&&this.gameInfo.visiting_team!=this.teamWidget&&(e=!1),e},pgtcontainercardClass(){return this.gamesContainerWidth<=350,"pgtcontainercard"},ptgtitleClass(){return this.gamesContainerWidth<=450?"ptgtitle450":"ptgtitle"},videopartidopltegaplayersClass(){return this.gamesContainerWidth<=900?"video-partido-pltega-players620":"video-partido-pltega-players"},videopartidopltegadatosClass(){return this.gamesContainerWidth<=900?"video-partido-pltega-datos900":"video-partido-pltega-datos"},gridcarrouselesitemsClass(){return this.gamesContainerWidth<=900?"grid-carrouseles-items900":"grid-carrouseles-items"},gridcarrouselesitemsitemunoClass(){return this.gamesContainerWidth<=900?"grid-carrouseles-items-itemuno900":"grid-carrouseles-items-itemuno"},gridcarrouselesitemsitemdosClass(){return this.gamesContainerWidth<=900?"grid-carrouseles-items-itemdos900":"grid-carrouseles-items-itemdos"}},watch:{config:{handler:function(e){e.game_status==0?this.fetchLiveData():(this.intervalId=setInterval(()=>{this.fetchLiveData()},this.timeLiveVideoGoals),this.$emit("intervalid",this.intervalId))},immediate:!0}},methods:{async fetchLiveData(){await this.getLiveHighlights(),await this.getLiveBestPlays(),await this.getStatsBestPlaysPlayers(),await this.getStatsBestPlaysTeamHome(),await this.getStatsBestPlaysTeamAway()},async getLiveBestPlays(){const e=Jm.create({headers:{Authorization:`${this.token}`}});var r=[],i={},B=await e.get("https://wlduw4woy3.execute-api.us-east-2.amazonaws.com/prod/live/best-plays/seasons/"+this.config.season_id+"/games/"+this.config.game);for(let D=0;D<B.data.games[0].players.length;D++){const c=Math.floor(Math.random()*B.data.games[0].players[D].info_thumbnails.images.background_player_in_action.length),m=Math.floor(Math.random()*B.data.games[0].players[D].info_thumbnails.images.player_in_action.length);i={background_color_buttons:B.data.games[0].players[D].info_thumbnails.colors.background_color_buttons,background_color_cards:B.data.games[0].players[D].info_thumbnails.colors.background_color_cards,color_icon_play:B.data.games[0].players[D].info_thumbnails.colors.color_icon_play,color_next_back:B.data.games[0].players[D].info_thumbnails.colors.color_next_back,font_color:B.data.games[0].players[D].info_thumbnails.colors.font_color,font_color_card:B.data.games[0].players[D].info_thumbnails.colors.font_color_cards,colorbackgroundhome:B.data.games[0].players[D].info_thumbnails.colors.background_color,colorbackgroundaway:"",nameplayer:B.data.games[0].players[D].player_name,background:B.data.games[0].players[D].info_thumbnails.images.background_player_in_action[c]?"https://golstatsimages.blob.core.windows.net/images-library/"+B.data.games[0].players[D].info_thumbnails.images.background_player_in_action[c]:"https://golstatsimages.blob.core.windows.net/images-library/"+B.data.games[0].players[D].info_thumbnails.images.background_default_players[0],namecategory:"RESUMEN",namehometeam:"",nameawayteam:"",logohome:B.data.games[0].players[D].team_logo,photoprofile:B.data.games[0].players[D].info_thumbnails.images.player_in_action[m]?"https://golstatsimages.blob.core.windows.net/images-library/"+B.data.games[0].players[D].info_thumbnails.images.player_in_action[m]:`https://az755631.vo.msecnd.net/players-profile/${B.data.games[0].players[D].player_id}.png`,logoaway:"",scoreaway:"",scorehome:"",game_id:B.data.games[0].game_id,season_id:B.data.games[0].players[D].season_id,category:0,team_id:B.data.games[0].players[D].team_id},r.push(i)}this.printData=r},async getLiveHighlights(){const e=await Jm.create({headers:{Authorization:`${this.token}`}}).get("https://fxtcaw9tw6.execute-api.us-east-2.amazonaws.com/prod/live/historic/games/"+this.config.game);e.data!=""&&(this.showHighlight=e.data==""?!1:e.data.plays.length>0,this.showHighlightGoals=e.data==""?!1:e.data.plays.filter(r=>r[0]===12).length>0,this.item.category=0,this.item.game_id=e.data.game_id,this.item.season_id=this.config.season_id,this.item.score=e.data.thumbnails[e.data.game_id].score,this.item.backgroundhome=e.data.thumbnails[e.data.game_id].info_thumbnails.home_colors.background_color,this.item.backgroundaway=e.data.thumbnails[e.data.game_id].info_thumbnails.away_colors.background_color,this.item.logohome="https://az755631.vo.msecnd.net/teams-150/"+e.data.thumbnails[e.data.game_id].home_team+".png",this.item.logoaway="https://az755631.vo.msecnd.net/teams-150/"+e.data.thumbnails[e.data.game_id].visiting_team+".png",this.item.background="https://golstatsimages.blob.core.windows.net/images-library/"+e.data.thumbnails[e.data.game_id].info_thumbnails.images.background_default_games[0])},onclickPlayVideos(e){var r=[];e.type==2?e.data.position_id==1?e.data.category==0?r=[55,324,323,608,39,774,802,52,53,40,54]:r=e.data.category:e.data.category==0?r=[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]:r=e.data.category:e.type==3?e.data.category==0?r=[607,608,12,55,54,35,14,52,15,53,466,477,40,257,39]:r=e.data.category:e.type==4?r=[12,55,"35_r","54_r"]:e.data.category!=0?r=e.data.category:r=[607,608,12,55,54,35,14,52,15,53,466,477];const i=[1,2,3];let B={seasonId:e.data.season_id,mainSectionType:1,playListType:e.type==4?1:e.type,categoryIds:r,gameIds:e.data.game_id?[e.data.game_id]:null,playerIds:e.data.position_id!=1?e.data.player_id?[e.data.player_id]:[]:[],goalkeeperIds:e.data.position_id==1?e.data.player_id?[e.data.player_id]:[]:[],teamId:e.data.team_id?e.data.team_id:0,matchResult:e.data.matchResult?[e.matchResult]:i,playData:{},advancedFilter:{playListTitle:""}};e.data.category!==0&&(B.advancedFilter.mainCategoryId=e.data.category),this.$emit("openmedia",B)},openmedia(e){this.$emit("openmedia",e)},setUpResizeObserver(){if(window.ResizeObserver)AR=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),AR.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")},async fillData(){const e=Jm.create({headers:{Authorization:`${this.token}`}}),r=await e.get("https://d2oco6mqmc.execute-api.us-west-2.amazonaws.com/prod/teamsBySeason/"+this.config.season_id),i=await e.get("https://8tvo5bp9ai.execute-api.us-west-2.amazonaws.com/prod/gamesBySeason/"+this.config.season_id),B=await e.get("https://fxtcaw9tw6.execute-api.us-east-2.amazonaws.com/prod/live/historic/games/"+this.config.game);this.tournamentId=r.data.tournament_id,B.data!=""&&(this.showHighlight=B.data==""?!1:B.data.plays.length>0,this.showHighlightGoals=B.data==""?!1:B.data.plays.filter(y=>y[0]===12).length>0,this.item.category=0,this.item.game_id=B.data.game_id,this.item.season_id=this.config.season_id,this.item.score=B.data.thumbnails[B.data.game_id].score,this.item.backgroundhome=B.data.thumbnails[B.data.game_id].info_thumbnails.home_colors.background_color,this.item.backgroundaway=B.data.thumbnails[B.data.game_id].info_thumbnails.away_colors.background_color,this.item.logohome="https://az755631.vo.msecnd.net/teams-150/"+B.data.thumbnails[B.data.game_id].home_team+".png",this.item.logoaway="https://az755631.vo.msecnd.net/teams-150/"+B.data.thumbnails[B.data.game_id].visiting_team+".png",this.item.background="https://golstatsimages.blob.core.windows.net/images-library/"+B.data.thumbnails[B.data.game_id].info_thumbnails.images.background_default_games[0]);const D=i.data.games.findIndex(y=>y.game_id===this.config.game);this.gameInfo=i.data.games[D];var c=[],m={},a=await e.get("https://wlduw4woy3.execute-api.us-east-2.amazonaws.com/prod/live/best-plays/seasons/"+this.config.season_id+"/games/"+this.config.game);for(let y=0;y<a.data.games[0].players.length;y++)Math.floor(Math.random()*a.data.games[0].players[y].info_thumbnails.images.background_player_in_action.length),Math.floor(Math.random()*a.data.games[0].players[y].info_thumbnails.images.player_in_action.length),m={background_color_buttons:a.data.games[0].players[y].info_thumbnails.colors.background_color_buttons,background_color_cards:a.data.games[0].players[y].info_thumbnails.colors.background_color_cards,color_icon_play:a.data.games[0].players[y].info_thumbnails.colors.color_icon_play,color_next_back:a.data.games[0].players[y].info_thumbnails.colors.color_next_back,font_color:a.data.games[0].players[y].info_thumbnails.colors.font_color,font_color_card:a.data.games[0].players[y].info_thumbnails.colors.font_color_cards,colorbackgroundhome:a.data.games[0].players[y].info_thumbnails.colors.background_color,colorbackgroundaway:"",nameplayer:a.data.games[0].players[y].player_name,background:"https://golstatsimages.blob.core.windows.net/images-library/"+a.data.games[0].players[y].info_thumbnails.images.background_default_teams,namecategory:"RESUMEN",namehometeam:"",nameawayteam:"",logohome:a.data.games[0].players[y].team_logo,photoprofile:"https://az755631.vo.msecnd.net/teams-150/"+a.data.games[0].players[y].info_thumbnails.team_logo,logoaway:"",scoreaway:"",scorehome:"",game_id:a.data.games[0].game_id,season_id:a.data.games[0].players[y].season_id,category:0,team_id:a.data.games[0].players[y].team_id},c.push(m);this.printData=c},getBestPlaysUrl({season:e,player:r,team:i,game:B,category:D}){let c="https://wlduw4woy3.execute-api.us-east-2.amazonaws.com/prod/live/best-plays/seasons/";return e&&(c+=`${e}`),r&&(c+=`/players/${r}`),i&&(c+=`/teams/${i}`),B&&(c+=`/games/${B}`),D&&(c+=`/categories/${D}`),this.videoPrivilegesPlayingAs.has(1)&&!this.videoPrivilegesPlayingAs.has(2)?c+="?isLocal=1":this.videoPrivilegesPlayingAs.has(2)&&!this.videoPrivilegesPlayingAs.has(1)&&(c+="?isVisitor=1"),c},async getStatsBestPlaysTeamHome(){const e=Jm.create({headers:{Authorization:`${this.token}`}});var r={},i={};this.informationBestPlaysTeamHome=[],this.playerPhoto=!1,r=await e.get("https://wlduw4woy3.execute-api.us-east-2.amazonaws.com/prod/live/best-plays/seasons/"+this.config.season_id+"/games/"+this.config.game+"/teams/"+this.gameInfo.home_team);for(let B=0;B<r.data.categories.length;B++){const D=Math.floor(Math.random()*r.data.categories[B].info_thumbnails.images.background_default_teams.length);i={game_id:r.data.game_id,has_mxm:r.data.has_mxm,season_id:this.config.season_id,team_id:r.data.team_id,category:r.data.categories[B].categories.concat(r.data.categories[B].rival_categories),background_action:"https://golstatsimages.blob.core.windows.net/images-library/"+r.data.categories[B].info_thumbnails.images.background_default_categories[D],player_action:"https://golstatsimages.blob.core.windows.net/images-library/"+r.data.categories[B].info_thumbnails.images.background_default_categories[D],team_logo:"https://az755631.vo.msecnd.net/teams-150/"+r.data.team_id+".png",color:r.data.categories[B].info_thumbnails.colors.background_color,colorfont:r.data.categories[B].info_thumbnails.colors.font_color,player_name:r.data.categories[B].category_name,total:r.data.categories[B].total,team_name:"",background_card:"https://az755631.vo.msecnd.net/golstats2-teams/"+r.data.team_id+"_"+r.data.season_id+"_r1.jpg"},this.informationBestPlaysTeamHome.push(i)}},async getStatsBestPlaysTeamAway(){const e=Jm.create({headers:{Authorization:`${this.token}`}});var r={},i={};this.informationBestPlaysTeamAway=[],this.playerPhoto=!1,r=await e.get("https://wlduw4woy3.execute-api.us-east-2.amazonaws.com/prod/live/best-plays/seasons/"+this.config.season_id+"/games/"+this.config.game+"/teams/"+this.gameInfo.visiting_team);for(let B=0;B<r.data.categories.length;B++){const D=Math.floor(Math.random()*r.data.categories[B].info_thumbnails.images.background_default_teams.length);i={game_id:r.data.game_id,has_mxm:r.data.has_mxm,season_id:this.config.season_id,team_id:r.data.team_id,category:r.data.categories[B].categories.concat(r.data.categories[B].rival_categories),background_action:"https://golstatsimages.blob.core.windows.net/images-library/"+r.data.categories[B].info_thumbnails.images.background_default_categories[D],player_action:"https://golstatsimages.blob.core.windows.net/images-library/"+r.data.categories[B].info_thumbnails.images.background_default_categories[D],team_logo:"https://az755631.vo.msecnd.net/teams-150/"+r.data.team_id+".png",color:r.data.categories[B].info_thumbnails.colors.background_color,colorfont:r.data.categories[B].info_thumbnails.colors.font_color,player_name:r.data.categories[B].category_name,total:r.data.categories[B].total,team_name:"",background_card:"https://az755631.vo.msecnd.net/golstats2-teams/"+r.data.team_id+"_"+r.data.season_id+"_r1.jpg"},this.informationBestPlaysTeamAway.push(i)}},async getStatsBestPlaysPlayers(){const e=Jm.create({headers:{Authorization:`${this.token}`}});var r={},i={};this.informationBestPlaysPlayers=[],this.playerPhoto=!1,r=await e.get(this.getBestPlaysUrl({season:this.config.season_id,game:this.config.game})),this.playVideosPrivileges&&(this.playVideosPrivileges.canPrivilegesTeamPlayVideos?r.data.games[0].game_status!==1&&(r.data.games[0].players=r.data.games[0].players.filter(B=>B.team_id==this.playVideosPrivileges.seasonAndPrivileges.teamId)):r.data.games[0].players=[]);for(let B=0;B<r.data.games[0].players.length;B++){const D=Math.floor(Math.random()*r.data.games[0].players[B].info_thumbnails.images.background_player_in_action.length),c=Math.floor(Math.random()*r.data.games[0].players[B].info_thumbnails.images.player_in_action.length);i={colorbackgroundhome:r.data.games[0].players[B].info_thumbnails.colors.background_color,colorbackgroundaway:"",nameplayer:r.data.games[0].players[B].player_name,background:"https://golstatsimages.blob.core.windows.net/images-library/"+r.data.games[0].players[B].info_thumbnails.images.background_player_in_action[D],namecategory:"RESUMEN",namehometeam:"",nameawayteam:"",category:0,colorfont:r.data.games[0].players[B].info_thumbnails.colors.font_color,team_id:r.data.games[0].players[B].team_id,player_id:r.data.games[0].players[B].player_id,game_id:r.data.games[0].game_id,has_mxm:r.data.games[0].has_mxm,season_id:r.data.season_id,logohome:r.data.games[0].players[B].team_logo,photoprofile:r.data.games[0].players[B].info_thumbnails.images.player_in_action[c]?"https://golstatsimages.blob.core.windows.net/images-library/"+r.data.games[0].players[B].info_thumbnails.images.player_in_action[c]:"https://az755631.vo.msecnd.net/players-profile/"+r.data.games[0].players[B].player_id+".png",logoaway:"",scoreaway:"",scorehome:""},this.informationBestPlaysPlayers.push(i)}}},beforeDestroy(){clearInterval(this.intervalId)},async mounted(){setTimeout(()=>{this.setUpResizeObserver()},100),await this.fillData(),await this.getStatsBestPlaysPlayers(),await this.getStatsBestPlaysTeamHome(),await this.getStatsBestPlaysTeamAway()}},UUe=e=>(t.pushScopeId("data-v-7bf619f3"),e=e(),t.popScopeId(),e),GUe={ref:"gamesContainer",class:"container",style:{}},HUe={class:"video-partido-container"},WUe=UUe(()=>t.createElementVNode("div",{class:"title-video-datos"},"Este partido:",-1)),qUe={key:0},YUe={key:1},XUe={key:2,class:"video-partido-pltega-games"},ZUe={key:3,class:"video-partido-pltega-games-team"};function JUe(e,r,i,B,D,c){t.resolveComponent("GSCThumbnailHighlightGameHistoric");const m=t.resolveComponent("GSCPlayerTeamGame"),a=t.resolveComponent("GSCCard");return t.openBlock(),t.createElementBlock("div",GUe,[t.createElementVNode("div",HUe,[t.createCommentVNode("",!0),t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(c.videopartidopltegaplayersClass)},[t.createVNode(m,{onOpenmedia:c.openmedia,"background-color":"#172531","px-scroll":338,"scroll-color":"none","arrows-position":"absolute",data:{isPrematch:0},"arrows-scroll-hide":!0,"receive-data":!0,information:D.informationBestPlaysPlayers,arrowsBackground:"rgba(255,255,255,.16)",arrowsContainerBgL:"linear-gradient(270deg, rgba(22,37,50,0) 0%, rgba(22,37,50,1) 70%)",arrowsContainerBgR:"linear-gradient(90deg, rgba(22,37,50,0) 0%, rgba(22,37,50,1) 70%)",arrowsMargin:0,arrowsRadius:"50%",arrowsBorder:"#ddd",style:{"margin-top":"10px"},type:3e3,title:i.tournamentSelected.is_female==1?"Jugadoras (sus mejores jugadas):":"Jugadores (sus mejores jugadas):","video-privileges-playing-as":i.videoPrivilegesPlayingAs,onOnClickVideos:e.onClickVideos,onOnClickCard:e.onClickCard},null,8,["onOpenmedia","information","title","video-privileges-playing-as","onOnClickVideos","onOnClickCard"])],2),t.createElementVNode("div",{class:t.normalizeClass(c.videopartidopltegadatosClass)},[WUe,t.createElementVNode("div",{class:t.normalizeClass(c.gridcarrouselesitemsClass)},[t.createElementVNode("div",{class:t.normalizeClass(c.gridcarrouselesitemsitemunoClass)},[i.isWidget?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[D.gameInfo.home_team==i.teamWidget?(t.openBlock(),t.createElementBlock("div",qUe,[D.printData[0]?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[D.printData[0].team_id==D.gameInfo.home_team?(t.openBlock(),t.createBlock(a,{key:0,type:5,onOnClickVideos:r[3]||(r[3]=y=>c.onclickPlayVideos({data:D.printData[0],type:3})),onOnClickCard:r[4]||(r[4]=y=>c.onclickPlayVideos({data:D.printData[0],type:3})),"click-card":!1,borderColor:"rgba(255, 255, 255, 0.16)",backgroundColor:D.printData[0].colorbackgroundhome,"background-img":D.printData[0].background,data:{team_name:D.gameInfo.home_team_name,player_photo:D.printData[0].photoprofile,team_id:D.gameInfo.home_team,background_color_buttons:D.printData[0].background_color_buttons,background_color_cards:D.printData[0].background_color_cards,color_icon_play:D.printData[0].color_icon_play,color_next_back:D.printData[0].color_next_back,font_color:D.printData[0].font_color,font_color_card:D.printData[0].font_color_card},"can-play-videos":i.canPlayVideos},null,8,["backgroundColor","background-img","data","can-play-videos"])):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),D.gameInfo.visiting_team==i.teamWidget?(t.openBlock(),t.createElementBlock("div",YUe,[D.printData[1]?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[D.printData[1].team_id==D.gameInfo.visiting_team?(t.openBlock(),t.createBlock(a,{key:0,type:5,onOnClickVideos:r[5]||(r[5]=y=>c.onclickPlayVideos({data:D.printData[1],type:3})),onOnClickCard:r[6]||(r[6]=y=>c.onclickPlayVideos({data:D.printData[1],type:3})),"click-card":!1,borderColor:"rgba(255, 255, 255, 0.16)",backgroundColor:D.printData[1].colorbackgroundhome,"background-img":D.printData[1].background,data:{team_name:D.gameInfo.visiting_team_name,player_photo:D.printData[1].photoprofile,team_id:D.gameInfo.visiting_team,background_color_buttons:D.printData[1].background_color_buttons,background_color_cards:D.printData[1].background_color_cards,color_icon_play:D.printData[1].color_icon_play,color_next_back:D.printData[1].color_next_back,font_color:D.printData[1].font_color,font_color_card:D.printData[1].font_color_card},"can-play-videos":i.canPlayVideos},null,8,["backgroundColor","background-img","data","can-play-videos"])):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[D.printData[0]?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[D.printData[0].team_id==D.gameInfo.home_team?(t.openBlock(),t.createBlock(a,{key:0,type:5,onOnClickVideos:r[7]||(r[7]=y=>c.onclickPlayVideos({data:D.printData[0],type:3})),onOnClickCard:r[8]||(r[8]=y=>c.onclickPlayVideos({data:D.printData[0],type:3})),"click-card":!1,borderColor:"rgba(255, 255, 255, 0.16)",backgroundColor:D.printData[0].colorbackgroundhome,"background-img":D.printData[0].background,data:{team_name:D.gameInfo.home_team_name,player_photo:D.printData[0].photoprofile,team_id:D.gameInfo.home_team,background_color_buttons:D.printData[0].background_color_buttons,background_color_cards:D.printData[0].background_color_cards,color_icon_play:D.printData[0].color_icon_play,color_next_back:D.printData[0].color_next_back,font_color:D.printData[0].font_color,font_color_card:D.printData[0].font_color_card},"can-play-videos":i.canPlayVideos},null,8,["backgroundColor","background-img","data","can-play-videos"])):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)],64))],2),t.createElementVNode("div",{class:t.normalizeClass(c.gridcarrouselesitemsitemdosClass)},[D.printData[1]&&!i.isWidget?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[D.printData[1].team_id==D.gameInfo.visiting_team?(t.openBlock(),t.createBlock(a,{key:0,type:5,onOnClickVideos:r[9]||(r[9]=y=>c.onclickPlayVideos({data:D.printData[1],type:3})),onOnClickCard:r[10]||(r[10]=y=>c.onclickPlayVideos({data:D.printData[1],type:3})),"click-card":!1,borderColor:"rgba(255, 255, 255, 0.16)",backgroundColor:D.printData[1].colorbackgroundhome,"background-img":D.printData[1].background,data:{team_name:D.gameInfo.visiting_team_name,player_photo:D.printData[1].photoprofile,team_id:D.gameInfo.visiting_team,background_color_buttons:D.printData[1].background_color_buttons,background_color_cards:D.printData[1].background_color_cards,color_icon_play:D.printData[1].color_icon_play,color_next_back:D.printData[1].color_next_back,font_color:D.printData[1].font_color,font_color_card:D.printData[1].font_color_card},"can-play-videos":i.canPlayVideos},null,8,["backgroundColor","background-img","data","can-play-videos"])):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)],2)],2)],2),c.showComponentHome?(t.openBlock(),t.createElementBlock("div",XUe,[t.createVNode(m,{onOpenmedia:c.openmedia,"background-color":"#172531","px-scroll":338,"scroll-color":"none","arrows-position":"absolute","arrows-scroll-hide":!0,information:D.informationBestPlaysTeamHome,arrowsBackground:"rgba(255,255,255,.16)",arrowsContainerBgL:"linear-gradient(270deg, rgba(22,37,50,0) 0%, rgba(22,37,50,1) 70%)",arrowsContainerBgR:"linear-gradient(90deg, rgba(22,37,50,0) 0%, rgba(22,37,50,1) 70%)",arrowsMargin:0,arrowsRadius:"50%",arrowsBorder:"#ddd",style:{"margin-top":"10px"},"receive-data":!0,type:4e3,data:{isPrematch:0},title:"Jugadas específicas "+D.gameInfo.home_team_name+":",onOnClickVideos:e.onClickVideos,onOnClickCard:e.onClickCard},null,8,["onOpenmedia","information","title","onOnClickVideos","onOnClickCard"])])):t.createCommentVNode("",!0),c.showComponentAway?(t.openBlock(),t.createElementBlock("div",ZUe,[t.createVNode(m,{onOpenmedia:c.openmedia,"background-color":"#172531","px-scroll":338,"scroll-color":"none","arrows-position":"absolute","arrows-scroll-hide":!0,arrowsBackground:"rgba(255,255,255,.16)",arrowsContainerBgL:"linear-gradient(270deg, rgba(22,37,50,0) 0%, rgba(22,37,50,1) 70%)",arrowsContainerBgR:"linear-gradient(90deg, rgba(22,37,50,0) 0%, rgba(22,37,50,1) 70%)",arrowsMargin:0,arrowsRadius:"50%",arrowsBorder:"#ddd",style:{"margin-top":"10px"},data:{isPrematch:0},type:5e3,"receive-data":!0,information:D.informationBestPlaysTeamAway,title:"Jugadas específicas "+D.gameInfo.visiting_team_name+":",onOnClickVideos:e.onClickVideos,onOnClickCard:e.onClickCard},null,8,["onOpenmedia","information","title","onOnClickVideos","onOnClickCard"])])):t.createCommentVNode("",!0)])],512)}const KUe={components:{GSCVideoGamePreMatch:$Ue,GSCVideoGamePostMatch:YVe,GSCVideoGameLive:C2(jUe,[["render",JUe],["__scopeId","data-v-7bf619f3"]])},props:{isWidget:{type:Boolean,default:!1},teamWidget:{type:Number,default:0},type:{type:String,default:"Prematch"},timeLiveVideoGoals:{type:Number,default:6e4},timeLiveVideoBestPlays:{type:Number,default:6e4},tournamentSelected:{type:Object,default:()=>({})},timeLiveVideoThisGame:{type:Number,default:6e4},timeLiveVideoSpecificPlays:{type:Number,default:6e4},config:{type:Object,default:()=>{}},canPlayVideos:{type:Boolean,default:!0},videoPrivilegesPlayingAs:{type:Set,default:()=>new Set([1,2])},playVideosPrivileges:{type:Object,default:null}},data(){return{}},computed:{},methods:{intervalid(e){this.$emit("intervalid",e)},openmedia(e){this.$emit("openmedia",e)}}},QUe={style:{margin:"0 auto"}};function eGe(e,r,i,B,D,c){const m=t.resolveComponent("GSCVideoGamePreMatch"),a=t.resolveComponent("GSCVideoGamePostMatch"),y=t.resolveComponent("GSCVideoGameLive");return t.openBlock(),t.createElementBlock("div",QUe,[i.type==="Prematch"?(t.openBlock(),t.createBlock(m,{key:0,"can-play-videos":i.canPlayVideos,"video-privileges-playing-as":i.videoPrivilegesPlayingAs,"play-videos-privileges":i.playVideosPrivileges,config:i.config,"is-widget":i.isWidget,"team-widget":i.teamWidget,"tournament-selected":i.tournamentSelected,onOpenmedia:c.openmedia},null,8,["can-play-videos","video-privileges-playing-as","play-videos-privileges","config","is-widget","team-widget","tournament-selected","onOpenmedia"])):t.createCommentVNode("",!0),i.type==="Postmatch"?(t.openBlock(),t.createBlock(a,{key:1,"can-play-videos":i.canPlayVideos,"video-privileges-playing-as":i.videoPrivilegesPlayingAs,"play-videos-privileges":i.playVideosPrivileges,config:i.config,"is-widget":i.isWidget,"team-widget":i.teamWidget,"tournament-selected":i.tournamentSelected,onOpenmedia:c.openmedia},null,8,["can-play-videos","video-privileges-playing-as","play-videos-privileges","config","is-widget","team-widget","tournament-selected","onOpenmedia"])):t.createCommentVNode("",!0),i.type==="Live"?(t.openBlock(),t.createBlock(y,{key:2,"time-live-video-goals":i.timeLiveVideoGoals,"time-live-video-best-plays":i.timeLiveVideoBestPlays,"time-live-video-this-game":i.timeLiveVideoThisGame,"time-live-video-specific-plays":i.timeLiveVideoSpecificPlays,"can-play-videos":i.canPlayVideos,"is-widget":i.isWidget,"team-widget":i.teamWidget,"tournament-selected":i.tournamentSelected,"video-privileges-playing-as":i.videoPrivilegesPlayingAs,"play-videos-privileges":i.playVideosPrivileges,config:i.config,onIntervalid:c.intervalid,onOpenmedia:c.openmedia},null,8,["time-live-video-goals","time-live-video-best-plays","time-live-video-this-game","time-live-video-specific-plays","can-play-videos","is-widget","team-widget","tournament-selected","video-privileges-playing-as","play-videos-privileges","config","onIntervalid","onOpenmedia"])):t.createCommentVNode("",!0)])}const pC=C2(KUe,[["render",eGe],["__scopeId","data-v-0560804f"]]),Dma="",Rma="",tGe={class:"datagame-container"},aGe=$i({__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://az755631.vo.msecnd.net/teams-80/18.png",team_id:10,provisional_logo:"https://az755631.vo.msecnd.net/teams-provisional/18.png",colloquial_name:"Toluca",acronym:"TOL",team_name:"Toluca"},awayTeam:{logo:"https://az755631.vo.msecnd.net/teams-80/1.png",team_id:1,provisional_logo:"https://az755631.vo.msecnd.net/teams-provisional/1.png",colloquial_name:"Chivas",acronym:"CHI",team_name:"Guadalajara"}})},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:r}){const i=e,B=t.ref(0);t.watch(()=>i.game,m=>{B.value=m.gameId},{deep:!0,immediate:!0});function D(m){r("openmedia",m)}function c(m){r("intervalid",m)}return(m,a)=>(t.openBlock(),t.createElementBlock("div",tGe,[e.game.is_live==1||e.game.game_status==0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[Object.keys(e.game).length>0?(t.openBlock(),t.createBlock(t.unref(pC),{onOpenmedia:D,key:B.value,"can-play-videos":e.canPlayVideos,"tournament-selected":e.tournamentSelected,onIntervalid:c,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},[e.game.game_status===4?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[Object.keys(e.game).length>0?(t.openBlock(),t.createBlock(t.unref(pC),{onOpenmedia:D,key:B.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(pC),{onOpenmedia:D,key:B.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-1c72e0de"]]),$ma="",nGe={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")}},Kh=e=>(t.pushScopeId("data-v-dc3632e6"),e=e(),t.popScopeId(),e),rGe={class:"home_team-events"},iGe={class:"home_team-events__title"},oGe=["src"],sGe=Kh(()=>t.createElementVNode("img",{width:"13",height:"13",src:"https://az755631.vo.msecnd.net/todoelfut/players-goals-con-goles.png"},null,-1)),lGe=Kh(()=>t.createElementVNode("img",{width:"13",height:"13",src:"https://az755631.vo.msecnd.net/todoelfut/red_card.png"},null,-1)),cGe=Kh(()=>t.createElementVNode("img",{width:"13",height:"13",src:"https://az755631.vo.msecnd.net/todoelfut/yellow_card.png"},null,-1)),dGe={class:"away_team-events"},uGe={class:"away_team-events__title"},hGe=["src"],pGe=Kh(()=>t.createElementVNode("img",{width:"13",height:"13",src:"https://az755631.vo.msecnd.net/todoelfut/players-goals-con-goles.png"},null,-1)),fGe=Kh(()=>t.createElementVNode("img",{width:"13",height:"13",src:"https://az755631.vo.msecnd.net/todoelfut/red_card.png"},null,-1)),mGe=Kh(()=>t.createElementVNode("img",{width:"13",height:"13",src:"https://az755631.vo.msecnd.net/todoelfut/yellow_card.png"},null,-1)),gGe={class:"home_team-events"},yGe={class:"home_team-events__title"},vGe=["src"],_Ge=Kh(()=>t.createElementVNode("img",{width:"13",height:"13",src:"https://az755631.vo.msecnd.net/todoelfut/players-goals-con-goles.png"},null,-1)),bGe=Kh(()=>t.createElementVNode("img",{width:"13",height:"13",src:"https://az755631.vo.msecnd.net/todoelfut/red_card.png"},null,-1)),xGe=Kh(()=>t.createElementVNode("img",{width:"13",height:"13",src:"https://az755631.vo.msecnd.net/todoelfut/yellow_card.png"},null,-1)),wGe={class:"away_team-events"},kGe={class:"away_team-events__title"},CGe=["src"],SGe=Kh(()=>t.createElementVNode("img",{width:"13",height:"13",src:"https://az755631.vo.msecnd.net/todoelfut/players-goals-con-goles.png"},null,-1)),TGe=Kh(()=>t.createElementVNode("img",{width:"13",height:"13",src:"https://az755631.vo.msecnd.net/todoelfut/red_card.png"},null,-1)),EGe=Kh(()=>t.createElementVNode("img",{width:"13",height:"13",src:"https://az755631.vo.msecnd.net/todoelfut/yellow_card.png"},null,-1));function AGe(e,r,i,B,D,c){return t.openBlock(),t.createElementBlock("div",null,[t.createElementVNode("div",{class:"modal-events",onClick:r[1]||(r[1]=(...m)=>c.handleOutsideClick&&c.handleOutsideClick(...m))},[t.createElementVNode("div",{class:"modal-events__modal",onClick:r[0]||(r[0]=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")},[i.type==0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",rGe,[t.createElementVNode("div",iGe,[t.createElementVNode("img",{width:"24",height:"24",src:i.plays[i.game.home_team.team_id].team.logo},null,8,oGe),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),(m,a)=>(t.openBlock(),t.createElementBlock("div",{key:a,class:t.normalizeClass(i.width>420?"home_team-events__event":"home_team-events__eventsm")},[sGe,t.createElementVNode("div",null,t.toDisplayString(i.plays[i.game.home_team.team_id].goals[m].name),1),t.createElementVNode("div",null,t.toDisplayString(i.plays[i.game.home_team.team_id].goals[m].event.map(y=>`${y}'`).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),(m,a)=>(t.openBlock(),t.createElementBlock("div",{key:a,class:t.normalizeClass(i.width>420?"home_team-events__event":"home_team-events__eventsm")},[lGe,t.createElementVNode("div",null,t.toDisplayString(i.plays[i.game.home_team.team_id].red[m].name),1),t.createElementVNode("div",null,t.toDisplayString(i.plays[i.game.home_team.team_id].red[m].event.map(y=>`${y}'`).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),(m,a)=>(t.openBlock(),t.createElementBlock("div",{key:a,class:t.normalizeClass(i.width>420?"home_team-events__event":"home_team-events__eventsm")},[cGe,t.createElementVNode("div",null,t.toDisplayString(i.plays[i.game.home_team.team_id].yellow[m].name),1),t.createElementVNode("div",null,t.toDisplayString(i.plays[i.game.home_team.team_id].yellow[m].event.map(y=>`${y}'`).join(", ")),1)],2))),128))]),t.createElementVNode("div",dGe,[t.createElementVNode("div",uGe,[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,hGe)]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(Object.keys(i.plays[i.game.visiting_team.team_id].goals),(m,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[m].event.map(y=>`${y}'`).join(", ")),1),t.createElementVNode("div",null,t.toDisplayString(i.plays[i.game.visiting_team.team_id].goals[m].name),1),pGe],2))),128)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(Object.keys(i.plays[i.game.visiting_team.team_id].red),(m,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[m].event.map(y=>`${y}'`).join(", ")),1),t.createElementVNode("div",null,t.toDisplayString(i.plays[i.game.visiting_team.team_id].red[m].name),1),fGe],2))),128)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(Object.keys(i.plays[i.game.visiting_team.team_id].yellow),(m,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[m].event.map(y=>`${y}'`).join(", ")),1),t.createElementVNode("div",null,t.toDisplayString(i.plays[i.game.visiting_team.team_id].yellow[m].name),1),mGe],2))),128))])],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("div",gGe,[t.createElementVNode("div",yGe,[t.createElementVNode("img",{width:"24",height:"24",src:i.plays.home_team.logo},null,8,vGe),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,(m,a)=>(t.openBlock(),t.createElementBlock("div",{key:a,class:t.normalizeClass(i.width>420?"home_team-events__event":"home_team-events__eventsm")},[_Ge,t.createElementVNode("div",null,t.toDisplayString(m),1)],2))),128)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i.plays.plays.home_red_cards_minutes,(m,a)=>(t.openBlock(),t.createElementBlock("div",{key:a,class:t.normalizeClass(i.width>420?"home_team-events__event":"home_team-events__eventsm")},[bGe,t.createElementVNode("div",null,t.toDisplayString(m),1)],2))),128)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i.plays.plays.home_yellow_cards_minutes,(m,a)=>(t.openBlock(),t.createElementBlock("div",{key:a,class:t.normalizeClass(i.width>420?"home_team-events__event":"home_team-events__eventsm")},[xGe,t.createElementVNode("div",null,t.toDisplayString(m),1)],2))),128))]),t.createElementVNode("div",wGe,[t.createElementVNode("div",kGe,[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,CGe)]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i.plays.plays.visiting_goals_minutes,(m,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(m),1),SGe],2))),128)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i.plays.plays.away_red_cards_minutes,(m,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(m),1),TGe],2))),128)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i.plays.plays.away_yellow_cards_minutes,(m,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(m),1),EGe],2))),128))])],64))],2)):t.createCommentVNode("",!0)])])])}const MR=$i(nGe,[["render",AGe],["__scopeId","data-v-dc3632e6"]]),MGe=(e,r)=>{const i=e.__vccOpts||e;for(const[B,D]of r)i[B]=D;return i},fC={name:"ScrollableContainer",props:{backgroundColor:{type:String,default:"#0D1D29"},pxScroll:{type:Number,default:100},arrows:{type:Boolean,default:!0},arrowsHideOnNoScroll:{type:Boolean,default:!1},arrowsScrollHide:{type:Boolean,default:!1},arrowsColor:{type:String,default:"#CBEE6B"},arrowsHeight:{type:Number,default:15},arrowsWidth:{type:Number,default:15},arrowsPadding:{type:Number,default:5},arrowsMargin:{type:Number,default:10},arrowsRadius:{type:String,default:"0%"},arrowsBorder:{type:String,default:"none"},arrowsBackground:{type:String,default:"#0D1D29"},arrowsContainerBgL:{type:String,default:"#0D1D29"},arrowsContainerBgR:{type:String,default:"#0D1D29"},scrollColor:{type:String,default:"#c3e569"},arrowsPosition:{type:String,default:"relative"},height:{type:String,default:"100%"}},data(){return{showLeftArrow:!1,showRightArrow:!0,intervalid1:""}},mounted(){this.getScroll(),this.arrowsHideOnNoScroll&&window.addEventListener("resize",this.resizeSlider),this.arrowsHideOnNoScroll&&this.listenerLoad()},beforeUnmount(){this.arrowsHideOnNoScroll&&window.removeEventListener("resize",this.resizeSlider),this.arrowsHideOnNoScroll&&clearInterval(this.intervalid1)},computed:{getViewBox(){return`-2 0 ${this.arrowsWidth} ${this.arrowsHeight}`},hideShowLeftArrow(){let e="";return this.arrowsPosition=="absolute"?e="leftAbsolute":e="leftRelative",this.arrowsScrollHide?this.showLeftArrow?e+=" showArrowSlide":e+=" hideArrowSlide":e+=" showArrowSlide",e},hideShowRightArrow(){let e="";return this.arrowsPosition=="absolute"?e="rightAbsolute":e="rightRelative",this.arrowsScrollHide?this.showRightArrow?e+=" showArrowSlide":e+=" hideArrowSlide":e+=" showArrowSlide",e}},methods:{scrollLeft(){this.$refs.content.scrollLeft-=this.pxScroll},scrollRight(){this.$refs.content.scrollLeft+=this.pxScroll},getScroll(){let e=0;this.arrowsPosition=="relative"?e=this.$refs.content.scrollWidth-this.$el.clientWidth+this.arrowsMargin*2+this.arrowsWidth*4:e=this.$refs.content.scrollWidth-this.$el.clientWidth,this.$refs.content.scrollLeft==0?this.showLeftArrow=!1:this.showLeftArrow=!0,e>0&&(this.$refs.content.scrollLeft==e?this.showRightArrow=!1:this.showRightArrow=!0),this.arrowsHideOnNoScroll&&this.$refs.content.clientWidth===this.$refs.content.scrollWidth&&(this.showRightArrow=!1)},resizeSlider(){this.getScroll();let e;clearTimeout(e),e=setTimeout(this.getScroll,1e3)},listenerLoad(){this.intervalid1=setInterval((function(){var e=this.$el.clientWidth,r=this.$refs.content.scrollWidth;r>0&&e>0&&(r>e?(this.showRightArrow=!0,clearInterval(this.intervalid1)):clearInterval(this.intervalid1))}).bind(this),3e3)}}},IR=()=>{t.useCssVars(e=>({"42d3dba6":e.backgroundColor,"4de5d2cf":e.height,"67bafa7b":e.arrowsPosition,"61e1032e":e.arrowsPadding+"px","79a4ac00":e.arrowsBackground,"6b8355c6":e.arrowsHeight*2+"px","29a58368":e.arrowsWidth*2+"px","3622fa64":e.arrowsRadius,"1ba101fe":e.arrowsBorder,"0bafb5e6":e.arrowsMargin+"px","423a44b8":e.arrowsContainerBgL,"423a44be":e.arrowsContainerBgR,"10b117ee":e.scrollColor}))},PR=fC.setup;fC.setup=PR?(e,r)=>(IR(),PR(e,r)):IR;const IGe={ref:"gscScrollableContainer",class:"scrollable-container"},PGe={class:"scrollable-arrows"},BGe=["width","height","viewBox"],NGe=["stroke"],zGe={class:"scrollable-wrapper"},OGe={class:"scrollable-arrows"},FGe=["width","height","viewBox"],LGe=["stroke"];function DGe(e,r,i,B,D,c){return t.openBlock(),t.createElementBlock("div",IGe,[i.arrows?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["arrows-container",c.hideShowLeftArrow]),onClick:r[0]||(r[0]=(...m)=>c.scrollLeft&&c.scrollLeft(...m))},[t.createElementVNode("div",PGe,[(t.openBlock(),t.createElementBlock("svg",{width:i.arrowsWidth,height:i.arrowsHeight,viewBox:c.getViewBox,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M6.36523 13.788L1.10146 8.52429C0.479824 7.90265 0.479824 6.88541 1.10147 6.26377L6.36523 1",stroke:i.arrowsColor},null,8,NGe)],8,BGe))])],2)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"scrollable-content scrollable-content-slider",ref:"content",onScroll:r[1]||(r[1]=(...m)=>c.getScroll&&c.getScroll(...m))},[t.createElementVNode("div",zGe,[t.renderSlot(e.$slots,"default",{},void 0,!0)])],544),i.arrows?(t.openBlock(),t.createElementBlock("div",{key:1,id:"arrows-container-right",class:t.normalizeClass(["arrows-container",c.hideShowRightArrow]),onClick:r[2]||(r[2]=(...m)=>c.scrollRight&&c.scrollRight(...m))},[t.createElementVNode("div",OGe,[(t.openBlock(),t.createElementBlock("svg",{width:i.arrowsWidth,height:i.arrowsHeight,viewBox:c.getViewBox,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M0.634765 1.21195L5.89853 6.47571C6.52018 7.09735 6.52018 8.11459 5.89853 8.73623L0.634766 14",stroke:i.arrowsColor},null,8,LGe)],8,FGe))])],2)):t.createCommentVNode("",!0)],512)}const RGe=MGe(fC,[["render",DGe],["__scopeId","data-v-b548a08d"]]);function BR(e,r){return function(){return e.apply(r,arguments)}}const{toString:VGe}=Object.prototype,{getPrototypeOf:mC}=Object,Tw=(e=>r=>{const i=VGe.call(r);return e[i]||(e[i]=i.slice(8,-1).toLowerCase())})(Object.create(null)),Mf=e=>(e=e.toLowerCase(),r=>Tw(r)===e),Ew=e=>r=>typeof r===e,{isArray:_y}=Array,B2=Ew("undefined");function $Ge(e){return e!==null&&!B2(e)&&e.constructor!==null&&!B2(e.constructor)&&Qh(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const NR=Mf("ArrayBuffer");function jGe(e){let r;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?r=ArrayBuffer.isView(e):r=e&&e.buffer&&NR(e.buffer),r}const UGe=Ew("string"),Qh=Ew("function"),zR=Ew("number"),Aw=e=>e!==null&&typeof e=="object",GGe=e=>e===!0||e===!1,Mw=e=>{if(Tw(e)!=="object")return!1;const r=mC(e);return(r===null||r===Object.prototype||Object.getPrototypeOf(r)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},HGe=Mf("Date"),WGe=Mf("File"),qGe=Mf("Blob"),YGe=Mf("FileList"),XGe=e=>Aw(e)&&Qh(e.pipe),ZGe=e=>{let r;return e&&(typeof FormData=="function"&&e instanceof FormData||Qh(e.append)&&((r=Tw(e))==="formdata"||r==="object"&&Qh(e.toString)&&e.toString()==="[object FormData]"))},JGe=Mf("URLSearchParams"),KGe=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function N2(e,r,{allOwnKeys:i=!1}={}){if(e===null||typeof e>"u")return;let B,D;if(typeof e!="object"&&(e=[e]),_y(e))for(B=0,D=e.length;B<D;B++)r.call(null,e[B],B,e);else{const c=i?Object.getOwnPropertyNames(e):Object.keys(e),m=c.length;let a;for(B=0;B<m;B++)a=c[B],r.call(null,e[a],a,e)}}function OR(e,r){r=r.toLowerCase();const i=Object.keys(e);let B=i.length,D;for(;B-- >0;)if(D=i[B],r===D.toLowerCase())return D;return null}const FR=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),LR=e=>!B2(e)&&e!==FR;function gC(){const{caseless:e}=LR(this)&&this||{},r={},i=(B,D)=>{const c=e&&OR(r,D)||D;Mw(r[c])&&Mw(B)?r[c]=gC(r[c],B):Mw(B)?r[c]=gC({},B):_y(B)?r[c]=B.slice():r[c]=B};for(let B=0,D=arguments.length;B<D;B++)arguments[B]&&N2(arguments[B],i);return r}const QGe=(e,r,i,{allOwnKeys:B}={})=>(N2(r,(D,c)=>{i&&Qh(D)?e[c]=BR(D,i):e[c]=D},{allOwnKeys:B}),e),eHe=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),tHe=(e,r,i,B)=>{e.prototype=Object.create(r.prototype,B),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:r.prototype}),i&&Object.assign(e.prototype,i)},aHe=(e,r,i,B)=>{let D,c,m;const a={};if(r=r||{},e==null)return r;do{for(D=Object.getOwnPropertyNames(e),c=D.length;c-- >0;)m=D[c],(!B||B(m,e,r))&&!a[m]&&(r[m]=e[m],a[m]=!0);e=i!==!1&&mC(e)}while(e&&(!i||i(e,r))&&e!==Object.prototype);return r},nHe=(e,r,i)=>{e=String(e),(i===void 0||i>e.length)&&(i=e.length),i-=r.length;const B=e.indexOf(r,i);return B!==-1&&B===i},rHe=e=>{if(!e)return null;if(_y(e))return e;let r=e.length;if(!zR(r))return null;const i=new Array(r);for(;r-- >0;)i[r]=e[r];return i},iHe=(e=>r=>e&&r instanceof e)(typeof Uint8Array<"u"&&mC(Uint8Array)),oHe=(e,r)=>{const i=(e&&e[Symbol.iterator]).call(e);let B;for(;(B=i.next())&&!B.done;){const D=B.value;r.call(e,D[0],D[1])}},sHe=(e,r)=>{let i;const B=[];for(;(i=e.exec(r))!==null;)B.push(i);return B},lHe=Mf("HTMLFormElement"),cHe=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,i,B){return i.toUpperCase()+B}),DR=(({hasOwnProperty:e})=>(r,i)=>e.call(r,i))(Object.prototype),dHe=Mf("RegExp"),RR=(e,r)=>{const i=Object.getOwnPropertyDescriptors(e),B={};N2(i,(D,c)=>{let m;(m=r(D,c,e))!==!1&&(B[c]=m||D)}),Object.defineProperties(e,B)},uHe=e=>{RR(e,(r,i)=>{if(Qh(e)&&["arguments","caller","callee"].indexOf(i)!==-1)return!1;const B=e[i];if(Qh(B)){if(r.enumerable=!1,"writable"in r){r.writable=!1;return}r.set||(r.set=()=>{throw Error("Can not rewrite read-only method '"+i+"'")})}})},hHe=(e,r)=>{const i={},B=D=>{D.forEach(c=>{i[c]=!0})};return _y(e)?B(e):B(String(e).split(r)),i},pHe=()=>{},fHe=(e,r)=>(e=+e,Number.isFinite(e)?e:r),yC="abcdefghijklmnopqrstuvwxyz",VR="0123456789",$R={DIGIT:VR,ALPHA:yC,ALPHA_DIGIT:yC+yC.toUpperCase()+VR},mHe=(e=16,r=$R.ALPHA_DIGIT)=>{let i="";const{length:B}=r;for(;e--;)i+=r[Math.random()*B|0];return i};function gHe(e){return!!(e&&Qh(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const yHe=e=>{const r=new Array(10),i=(B,D)=>{if(Aw(B)){if(r.indexOf(B)>=0)return;if(!("toJSON"in B)){r[D]=B;const c=_y(B)?[]:{};return N2(B,(m,a)=>{const y=i(m,D+1);!B2(y)&&(c[a]=y)}),r[D]=void 0,c}}return B};return i(e,0)},vHe=Mf("AsyncFunction"),_He=e=>e&&(Aw(e)||Qh(e))&&Qh(e.then)&&Qh(e.catch),Ar={isArray:_y,isArrayBuffer:NR,isBuffer:$Ge,isFormData:ZGe,isArrayBufferView:jGe,isString:UGe,isNumber:zR,isBoolean:GGe,isObject:Aw,isPlainObject:Mw,isUndefined:B2,isDate:HGe,isFile:WGe,isBlob:qGe,isRegExp:dHe,isFunction:Qh,isStream:XGe,isURLSearchParams:JGe,isTypedArray:iHe,isFileList:YGe,forEach:N2,merge:gC,extend:QGe,trim:KGe,stripBOM:eHe,inherits:tHe,toFlatObject:aHe,kindOf:Tw,kindOfTest:Mf,endsWith:nHe,toArray:rHe,forEachEntry:oHe,matchAll:sHe,isHTMLForm:lHe,hasOwnProperty:DR,hasOwnProp:DR,reduceDescriptors:RR,freezeMethods:uHe,toObjectSet:hHe,toCamelCase:cHe,noop:pHe,toFiniteNumber:fHe,findKey:OR,global:FR,isContextDefined:LR,ALPHABET:$R,generateString:mHe,isSpecCompliantForm:gHe,toJSONObject:yHe,isAsyncFn:vHe,isThenable:_He};function Pl(e,r,i,B,D){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",r&&(this.code=r),i&&(this.config=i),B&&(this.request=B),D&&(this.response=D)}Ar.inherits(Pl,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Ar.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const jR=Pl.prototype,UR={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{UR[e]={value:e}}),Object.defineProperties(Pl,UR),Object.defineProperty(jR,"isAxiosError",{value:!0}),Pl.from=(e,r,i,B,D,c)=>{const m=Object.create(jR);return Ar.toFlatObject(e,m,function(a){return a!==Error.prototype},a=>a!=="isAxiosError"),Pl.call(m,e.message,r,i,B,D),m.cause=e,m.name=e.name,c&&Object.assign(m,c),m};const bHe=null;function vC(e){return Ar.isPlainObject(e)||Ar.isArray(e)}function GR(e){return Ar.endsWith(e,"[]")?e.slice(0,-2):e}function HR(e,r,i){return e?e.concat(r).map(function(B,D){return B=GR(B),!i&&D?"["+B+"]":B}).join(i?".":""):r}function xHe(e){return Ar.isArray(e)&&!e.some(vC)}const wHe=Ar.toFlatObject(Ar,{},null,function(e){return/^is[A-Z]/.test(e)});function Iw(e,r,i){if(!Ar.isObject(e))throw new TypeError("target must be an object");r=r||new FormData,i=Ar.toFlatObject(i,{metaTokens:!0,dots:!1,indexes:!1},!1,function(p,l){return!Ar.isUndefined(l[p])});const B=i.metaTokens,D=i.visitor||f,c=i.dots,m=i.indexes,a=(i.Blob||typeof Blob<"u"&&Blob)&&Ar.isSpecCompliantForm(r);if(!Ar.isFunction(D))throw new TypeError("visitor must be a function");function y(p){if(p===null)return"";if(Ar.isDate(p))return p.toISOString();if(!a&&Ar.isBlob(p))throw new Pl("Blob is not supported. Use a Buffer instead.");return Ar.isArrayBuffer(p)||Ar.isTypedArray(p)?a&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function f(p,l,o){let s=p;if(p&&!o&&typeof p=="object"){if(Ar.endsWith(l,"{}"))l=B?l:l.slice(0,-2),p=JSON.stringify(p);else if(Ar.isArray(p)&&xHe(p)||(Ar.isFileList(p)||Ar.endsWith(l,"[]"))&&(s=Ar.toArray(p)))return l=GR(l),s.forEach(function(u,d){!(Ar.isUndefined(u)||u===null)&&r.append(m===!0?HR([l],d,c):m===null?l:l+"[]",y(u))}),!1}return vC(p)?!0:(r.append(HR(o,l,c),y(p)),!1)}const n=[],v=Object.assign(wHe,{defaultVisitor:f,convertValue:y,isVisitable:vC});function _(p,l){if(!Ar.isUndefined(p)){if(n.indexOf(p)!==-1)throw Error("Circular reference detected in "+l.join("."));n.push(p),Ar.forEach(p,function(o,s){(!(Ar.isUndefined(o)||o===null)&&D.call(r,o,Ar.isString(s)?s.trim():s,l,v))===!0&&_(o,l?l.concat(s):[s])}),n.pop()}}if(!Ar.isObject(e))throw new TypeError("data must be an object");return _(e),r}function WR(e){const r={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(i){return r[i]})}function _C(e,r){this._pairs=[],e&&Iw(e,this,r)}const qR=_C.prototype;qR.append=function(e,r){this._pairs.push([e,r])},qR.toString=function(e){const r=e?function(i){return e.call(this,i,WR)}:WR;return this._pairs.map(function(i){return r(i[0])+"="+r(i[1])},"").join("&")};function kHe(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function YR(e,r,i){if(!r)return e;const B=i&&i.encode||kHe,D=i&&i.serialize;let c;if(D?c=D(r,i):c=Ar.isURLSearchParams(r)?r.toString():new _C(r,i).toString(B),c){const m=e.indexOf("#");m!==-1&&(e=e.slice(0,m)),e+=(e.indexOf("?")===-1?"?":"&")+c}return e}const XR=class{constructor(){this.handlers=[]}use(r,i,B){return this.handlers.push({fulfilled:r,rejected:i,synchronous:B?B.synchronous:!1,runWhen:B?B.runWhen:null}),this.handlers.length-1}eject(r){this.handlers[r]&&(this.handlers[r]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(r){Ar.forEach(this.handlers,function(i){i!==null&&r(i)})}},ZR={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},CHe=typeof URLSearchParams<"u"?URLSearchParams:_C,SHe=typeof FormData<"u"?FormData:null,THe=typeof Blob<"u"?Blob:null,EHe={isBrowser:!0,classes:{URLSearchParams:CHe,FormData:SHe,Blob:THe},protocols:["http","https","file","blob","url","data"]},JR=typeof window<"u"&&typeof document<"u",AHe=(e=>JR&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),MHe=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),IHe=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:JR,hasStandardBrowserEnv:AHe,hasStandardBrowserWebWorkerEnv:MHe},Symbol.toStringTag,{value:"Module"})),If={...IHe,...EHe};function PHe(e,r){return Iw(e,new If.classes.URLSearchParams,Object.assign({visitor:function(i,B,D,c){return If.isNode&&Ar.isBuffer(i)?(this.append(B,i.toString("base64")),!1):c.defaultVisitor.apply(this,arguments)}},r))}function BHe(e){return Ar.matchAll(/\w+|\[(\w*)]/g,e).map(r=>r[0]==="[]"?"":r[1]||r[0])}function NHe(e){const r={},i=Object.keys(e);let B;const D=i.length;let c;for(B=0;B<D;B++)c=i[B],r[c]=e[c];return r}function KR(e){function r(i,B,D,c){let m=i[c++];if(m==="__proto__")return!0;const a=Number.isFinite(+m),y=c>=i.length;return m=!m&&Ar.isArray(D)?D.length:m,y?(Ar.hasOwnProp(D,m)?D[m]=[D[m],B]:D[m]=B,!a):((!D[m]||!Ar.isObject(D[m]))&&(D[m]=[]),r(i,B,D[m],c)&&Ar.isArray(D[m])&&(D[m]=NHe(D[m])),!a)}if(Ar.isFormData(e)&&Ar.isFunction(e.entries)){const i={};return Ar.forEachEntry(e,(B,D)=>{r(BHe(B),D,i,0)}),i}return null}function zHe(e,r,i){if(Ar.isString(e))try{return(r||JSON.parse)(e),Ar.trim(e)}catch(B){if(B.name!=="SyntaxError")throw B}return(i||JSON.stringify)(e)}const bC={transitional:ZR,adapter:["xhr","http"],transformRequest:[function(e,r){const i=r.getContentType()||"",B=i.indexOf("application/json")>-1,D=Ar.isObject(e);if(D&&Ar.isHTMLForm(e)&&(e=new FormData(e)),Ar.isFormData(e))return B?JSON.stringify(KR(e)):e;if(Ar.isArrayBuffer(e)||Ar.isBuffer(e)||Ar.isStream(e)||Ar.isFile(e)||Ar.isBlob(e))return e;if(Ar.isArrayBufferView(e))return e.buffer;if(Ar.isURLSearchParams(e))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let c;if(D){if(i.indexOf("application/x-www-form-urlencoded")>-1)return PHe(e,this.formSerializer).toString();if((c=Ar.isFileList(e))||i.indexOf("multipart/form-data")>-1){const m=this.env&&this.env.FormData;return Iw(c?{"files[]":e}:e,m&&new m,this.formSerializer)}}return D||B?(r.setContentType("application/json",!1),zHe(e)):e}],transformResponse:[function(e){const r=this.transitional||bC.transitional,i=r&&r.forcedJSONParsing,B=this.responseType==="json";if(e&&Ar.isString(e)&&(i&&!this.responseType||B)){const D=!(r&&r.silentJSONParsing)&&B;try{return JSON.parse(e)}catch(c){if(D)throw c.name==="SyntaxError"?Pl.from(c,Pl.ERR_BAD_RESPONSE,this,null,this.response):c}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:If.classes.FormData,Blob:If.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Ar.forEach(["delete","get","head","post","put","patch"],e=>{bC.headers[e]={}});const xC=bC,OHe=Ar.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),FHe=e=>{const r={};let i,B,D;return e&&e.split(`
78
78
  `).forEach(function(c){D=c.indexOf(":"),i=c.substring(0,D).trim().toLowerCase(),B=c.substring(D+1).trim(),!(!i||r[i]&&OHe[i])&&(i==="set-cookie"?r[i]?r[i].push(B):r[i]=[B]:r[i]=r[i]?r[i]+", "+B:B)}),r},QR=Symbol("internals");function z2(e){return e&&String(e).trim().toLowerCase()}function Pw(e){return e===!1||e==null?e:Ar.isArray(e)?e.map(Pw):String(e)}function LHe(e){const r=Object.create(null),i=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let B;for(;B=i.exec(e);)r[B[1]]=B[2];return r}const DHe=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function wC(e,r,i,B,D){if(Ar.isFunction(B))return B.call(this,r,i);if(D&&(r=i),!!Ar.isString(r)){if(Ar.isString(B))return r.indexOf(B)!==-1;if(Ar.isRegExp(B))return B.test(r)}}function RHe(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(r,i,B)=>i.toUpperCase()+B)}function VHe(e,r){const i=Ar.toCamelCase(" "+r);["get","set","has"].forEach(B=>{Object.defineProperty(e,B+i,{value:function(D,c,m){return this[B].call(this,r,D,c,m)},configurable:!0})})}let Bw=class{constructor(r){r&&this.set(r)}set(r,i,B){const D=this;function c(a,y,f){const n=z2(y);if(!n)throw new Error("header name must be a non-empty string");const v=Ar.findKey(D,n);(!v||D[v]===void 0||f===!0||f===void 0&&D[v]!==!1)&&(D[v||y]=Pw(a))}const m=(a,y)=>Ar.forEach(a,(f,n)=>c(f,n,y));return Ar.isPlainObject(r)||r instanceof this.constructor?m(r,i):Ar.isString(r)&&(r=r.trim())&&!DHe(r)?m(FHe(r),i):r!=null&&c(i,r,B),this}get(r,i){if(r=z2(r),r){const B=Ar.findKey(this,r);if(B){const D=this[B];if(!i)return D;if(i===!0)return LHe(D);if(Ar.isFunction(i))return i.call(this,D,B);if(Ar.isRegExp(i))return i.exec(D);throw new TypeError("parser must be boolean|regexp|function")}}}has(r,i){if(r=z2(r),r){const B=Ar.findKey(this,r);return!!(B&&this[B]!==void 0&&(!i||wC(this,this[B],B,i)))}return!1}delete(r,i){const B=this;let D=!1;function c(m){if(m=z2(m),m){const a=Ar.findKey(B,m);a&&(!i||wC(B,B[a],a,i))&&(delete B[a],D=!0)}}return Ar.isArray(r)?r.forEach(c):c(r),D}clear(r){const i=Object.keys(this);let B=i.length,D=!1;for(;B--;){const c=i[B];(!r||wC(this,this[c],c,r,!0))&&(delete this[c],D=!0)}return D}normalize(r){const i=this,B={};return Ar.forEach(this,(D,c)=>{const m=Ar.findKey(B,c);if(m){i[m]=Pw(D),delete i[c];return}const a=r?RHe(c):String(c).trim();a!==c&&delete i[c],i[a]=Pw(D),B[a]=!0}),this}concat(...r){return this.constructor.concat(this,...r)}toJSON(r){const i=Object.create(null);return Ar.forEach(this,(B,D)=>{B!=null&&B!==!1&&(i[D]=r&&Ar.isArray(B)?B.join(", "):B)}),i}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([r,i])=>r+": "+i).join(`
79
79
  `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(r){return r instanceof this?r:new this(r)}static concat(r,...i){const B=new this(r);return i.forEach(D=>B.set(D)),B}static accessor(r){const i=(this[QR]=this[QR]={accessors:{}}).accessors,B=this.prototype;function D(c){const m=z2(c);i[m]||(VHe(B,c),i[m]=!0)}return Ar.isArray(r)?r.forEach(D):D(r),this}};Bw.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Ar.reduceDescriptors(Bw.prototype,({value:e},r)=>{let i=r[0].toUpperCase()+r.slice(1);return{get:()=>e,set(B){this[i]=B}}}),Ar.freezeMethods(Bw);const tm=Bw;function kC(e,r){const i=this||xC,B=r||i,D=tm.from(B.headers);let c=B.data;return Ar.forEach(e,function(m){c=m.call(i,c,D.normalize(),r?r.status:void 0)}),D.normalize(),c}function eV(e){return!!(e&&e.__CANCEL__)}function O2(e,r,i){Pl.call(this,e??"canceled",Pl.ERR_CANCELED,r,i),this.name="CanceledError"}Ar.inherits(O2,Pl,{__CANCEL__:!0});function $He(e,r,i){const B=i.config.validateStatus;!i.status||!B||B(i.status)?e(i):r(new Pl("Request failed with status code "+i.status,[Pl.ERR_BAD_REQUEST,Pl.ERR_BAD_RESPONSE][Math.floor(i.status/100)-4],i.config,i.request,i))}const jHe=If.hasStandardBrowserEnv?{write(e,r,i,B,D,c){const m=[e+"="+encodeURIComponent(r)];Ar.isNumber(i)&&m.push("expires="+new Date(i).toGMTString()),Ar.isString(B)&&m.push("path="+B),Ar.isString(D)&&m.push("domain="+D),c===!0&&m.push("secure"),document.cookie=m.join("; ")},read(e){const r=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return r?decodeURIComponent(r[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function UHe(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function GHe(e,r){return r?e.replace(/\/?\/$/,"")+"/"+r.replace(/^\/+/,""):e}function tV(e,r){return e&&!UHe(r)?GHe(e,r):r}const HHe=If.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");let i;function B(D){let c=D;return e&&(r.setAttribute("href",c),c=r.href),r.setAttribute("href",c),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return i=B(window.location.href),function(D){const c=Ar.isString(D)?B(D):D;return c.protocol===i.protocol&&c.host===i.host}}():function(){return function(){return!0}}();function WHe(e){const r=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return r&&r[1]||""}function qHe(e,r){e=e||10;const i=new Array(e),B=new Array(e);let D=0,c=0,m;return r=r!==void 0?r:1e3,function(a){const y=Date.now(),f=B[c];m||(m=y),i[D]=a,B[D]=y;let n=c,v=0;for(;n!==D;)v+=i[n++],n=n%e;if(D=(D+1)%e,D===c&&(c=(c+1)%e),y-m<r)return;const _=f&&y-f;return _?Math.round(v*1e3/_):void 0}}function aV(e,r){let i=0;const B=qHe(50,250);return D=>{const c=D.loaded,m=D.lengthComputable?D.total:void 0,a=c-i,y=B(a),f=c<=m;i=c;const n={loaded:c,total:m,progress:m?c/m:void 0,bytes:a,rate:y||void 0,estimated:y&&m&&f?(m-c)/y:void 0,event:D};n[r?"download":"upload"]=!0,e(n)}}const YHe=typeof XMLHttpRequest<"u",XHe=YHe&&function(e){return new Promise(function(r,i){let B=e.data;const D=tm.from(e.headers).normalize();let{responseType:c,withXSRFToken:m}=e,a;function y(){e.cancelToken&&e.cancelToken.unsubscribe(a),e.signal&&e.signal.removeEventListener("abort",a)}let f;if(Ar.isFormData(B)){if(If.hasStandardBrowserEnv||If.hasStandardBrowserWebWorkerEnv)D.setContentType(!1);else if((f=D.getContentType())!==!1){const[l,...o]=f?f.split(";").map(s=>s.trim()).filter(Boolean):[];D.setContentType([l||"multipart/form-data",...o].join("; "))}}let n=new XMLHttpRequest;if(e.auth){const l=e.auth.username||"",o=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";D.set("Authorization","Basic "+btoa(l+":"+o))}const v=tV(e.baseURL,e.url);n.open(e.method.toUpperCase(),YR(v,e.params,e.paramsSerializer),!0),n.timeout=e.timeout;function _(){if(!n)return;const l=tm.from("getAllResponseHeaders"in n&&n.getAllResponseHeaders()),o={data:!c||c==="text"||c==="json"?n.responseText:n.response,status:n.status,statusText:n.statusText,headers:l,config:e,request:n};$He(function(s){r(s),y()},function(s){i(s),y()},o),n=null}if("onloadend"in n?n.onloadend=_:n.onreadystatechange=function(){!n||n.readyState!==4||n.status===0&&!(n.responseURL&&n.responseURL.indexOf("file:")===0)||setTimeout(_)},n.onabort=function(){n&&(i(new Pl("Request aborted",Pl.ECONNABORTED,e,n)),n=null)},n.onerror=function(){i(new Pl("Network Error",Pl.ERR_NETWORK,e,n)),n=null},n.ontimeout=function(){let l=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const o=e.transitional||ZR;e.timeoutErrorMessage&&(l=e.timeoutErrorMessage),i(new Pl(l,o.clarifyTimeoutError?Pl.ETIMEDOUT:Pl.ECONNABORTED,e,n)),n=null},If.hasStandardBrowserEnv&&(m&&Ar.isFunction(m)&&(m=m(e)),m||m!==!1&&HHe(v))){const l=e.xsrfHeaderName&&e.xsrfCookieName&&jHe.read(e.xsrfCookieName);l&&D.set(e.xsrfHeaderName,l)}B===void 0&&D.setContentType(null),"setRequestHeader"in n&&Ar.forEach(D.toJSON(),function(l,o){n.setRequestHeader(o,l)}),Ar.isUndefined(e.withCredentials)||(n.withCredentials=!!e.withCredentials),c&&c!=="json"&&(n.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&n.addEventListener("progress",aV(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&n.upload&&n.upload.addEventListener("progress",aV(e.onUploadProgress)),(e.cancelToken||e.signal)&&(a=l=>{n&&(i(!l||l.type?new O2(null,e,n):l),n.abort(),n=null)},e.cancelToken&&e.cancelToken.subscribe(a),e.signal&&(e.signal.aborted?a():e.signal.addEventListener("abort",a)));const p=WHe(v);if(p&&If.protocols.indexOf(p)===-1){i(new Pl("Unsupported protocol "+p+":",Pl.ERR_BAD_REQUEST,e));return}n.send(B||null)})},CC={http:bHe,xhr:XHe};Ar.forEach(CC,(e,r)=>{if(e){try{Object.defineProperty(e,"name",{value:r})}catch{}Object.defineProperty(e,"adapterName",{value:r})}});const nV=e=>`- ${e}`,ZHe=e=>Ar.isFunction(e)||e===null||e===!1,rV={getAdapter:e=>{e=Ar.isArray(e)?e:[e];const{length:r}=e;let i,B;const D={};for(let c=0;c<r;c++){i=e[c];let m;if(B=i,!ZHe(i)&&(B=CC[(m=String(i)).toLowerCase()],B===void 0))throw new Pl(`Unknown adapter '${m}'`);if(B)break;D[m||"#"+c]=B}if(!B){const c=Object.entries(D).map(([a,y])=>`adapter ${a} `+(y===!1?"is not supported by the environment":"is not available in the build"));let m=r?c.length>1?`since :
80
80
  `+c.map(nV).join(`
@@ -7624,4 +7624,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
7624
7624
  * vuex v4.0.2
7625
7625
  * (c) 2021 Evan You
7626
7626
  * @license MIT
7627
- */var qda="store";function F1(e,r){Object.keys(e).forEach(function(i){return r(e[i],i)})}function sJ(e){return e!==null&&typeof e=="object"}function Yda(e){return e&&typeof e.then=="function"}function hf(e,r){if(!e)throw new Error("[vuex] "+r)}function Xda(e,r){return function(){return e(r)}}function lJ(e,r,i){return r.indexOf(e)<0&&(i&&i.prepend?r.unshift(e):r.push(e)),function(){var B=r.indexOf(e);B>-1&&r.splice(B,1)}}function cJ(e,r){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var i=e.state;v6(e,i,[],e._modules.root,!0),AM(e,i,r)}function AM(e,r,i){var B=e._state;e.getters={},e._makeLocalGettersCache=Object.create(null);var D=e._wrappedGetters,c={};F1(D,function(m,a){c[a]=Xda(m,e),Object.defineProperty(e.getters,a,{get:function(){return c[a]()},enumerable:!0})}),e._state=t.reactive({data:r}),e.strict&&eua(e),B&&i&&e._withCommit(function(){B.data=null})}function v6(e,r,i,B,D){var c=!i.length,m=e._modules.getNamespace(i);if(B.namespaced&&(e._modulesNamespaceMap[m]&&process.env.NODE_ENV!=="production"&&console.error("[vuex] duplicate namespace "+m+" for the namespaced module "+i.join("/")),e._modulesNamespaceMap[m]=B),!c&&!D){var a=MM(r,i.slice(0,-1)),y=i[i.length-1];e._withCommit(function(){process.env.NODE_ENV!=="production"&&y in a&&console.warn('[vuex] state field "'+y+'" was overridden by a module with the same name at "'+i.join(".")+'"'),a[y]=B.state})}var f=B.context=Zda(e,m,i);B.forEachMutation(function(n,v){var _=m+v;Jda(e,_,n,f)}),B.forEachAction(function(n,v){var _=n.root?v:m+v,p=n.handler||n;Kda(e,_,p,f)}),B.forEachGetter(function(n,v){var _=m+v;Qda(e,_,n,f)}),B.forEachChild(function(n,v){v6(e,r,i.concat(v),n,D)})}function Zda(e,r,i){var B=r==="",D={dispatch:B?e.dispatch:function(c,m,a){var y=_6(c,m,a),f=y.payload,n=y.options,v=y.type;if((!n||!n.root)&&(v=r+v,process.env.NODE_ENV!=="production"&&!e._actions[v])){console.error("[vuex] unknown local action type: "+y.type+", global type: "+v);return}return e.dispatch(v,f)},commit:B?e.commit:function(c,m,a){var y=_6(c,m,a),f=y.payload,n=y.options,v=y.type;if((!n||!n.root)&&(v=r+v,process.env.NODE_ENV!=="production"&&!e._mutations[v])){console.error("[vuex] unknown local mutation type: "+y.type+", global type: "+v);return}e.commit(v,f,n)}};return Object.defineProperties(D,{getters:{get:B?function(){return e.getters}:function(){return dJ(e,r)}},state:{get:function(){return MM(e.state,i)}}}),D}function dJ(e,r){if(!e._makeLocalGettersCache[r]){var i={},B=r.length;Object.keys(e.getters).forEach(function(D){if(D.slice(0,B)===r){var c=D.slice(B);Object.defineProperty(i,c,{get:function(){return e.getters[D]},enumerable:!0})}}),e._makeLocalGettersCache[r]=i}return e._makeLocalGettersCache[r]}function Jda(e,r,i,B){var D=e._mutations[r]||(e._mutations[r]=[]);D.push(function(c){i.call(e,B.state,c)})}function Kda(e,r,i,B){var D=e._actions[r]||(e._actions[r]=[]);D.push(function(c){var m=i.call(e,{dispatch:B.dispatch,commit:B.commit,getters:B.getters,state:B.state,rootGetters:e.getters,rootState:e.state},c);return Yda(m)||(m=Promise.resolve(m)),e._devtoolHook?m.catch(function(a){throw e._devtoolHook.emit("vuex:error",a),a}):m})}function Qda(e,r,i,B){if(e._wrappedGetters[r]){process.env.NODE_ENV!=="production"&&console.error("[vuex] duplicate getter key: "+r);return}e._wrappedGetters[r]=function(D){return i(B.state,B.getters,D.state,D.getters)}}function eua(e){t.watch(function(){return e._state.data},function(){process.env.NODE_ENV!=="production"&&hf(e._committing,"do not mutate vuex store state outside mutation handlers.")},{deep:!0,flush:"sync"})}function MM(e,r){return r.reduce(function(i,B){return i[B]},e)}function _6(e,r,i){return sJ(e)&&e.type&&(i=r,r=e,e=e.type),process.env.NODE_ENV!=="production"&&hf(typeof e=="string","expects string as the type, but found "+typeof e+"."),{type:e,payload:r,options:i}}var tua="vuex bindings",uJ="vuex:mutations",IM="vuex:actions",lv="vuex",aua=0;function nua(e,r){Wda({id:"org.vuejs.vuex",app:e,label:"Vuex",homepage:"https://next.vuex.vuejs.org/",logo:"https://vuejs.org/images/icons/favicon-96x96.png",packageName:"vuex",componentStateTypes:[tua]},function(i){i.addTimelineLayer({id:uJ,label:"Vuex Mutations",color:hJ}),i.addTimelineLayer({id:IM,label:"Vuex Actions",color:hJ}),i.addInspector({id:lv,label:"Vuex",icon:"storage",treeFilterPlaceholder:"Filter stores..."}),i.on.getInspectorTree(function(B){if(B.app===e&&B.inspectorId===lv)if(B.filter){var D=[];gJ(D,r._modules.root,B.filter,""),B.rootNodes=D}else B.rootNodes=[mJ(r._modules.root,"")]}),i.on.getInspectorState(function(B){if(B.app===e&&B.inspectorId===lv){var D=B.nodeId;dJ(r,D),B.state=oua(lua(r._modules,D),D==="root"?r.getters:r._makeLocalGettersCache,D)}}),i.on.editInspectorState(function(B){if(B.app===e&&B.inspectorId===lv){var D=B.nodeId,c=B.path;D!=="root"&&(c=D.split("/").filter(Boolean).concat(c)),r._withCommit(function(){B.set(r._state.data,c,B.state.value)})}}),r.subscribe(function(B,D){var c={};B.payload&&(c.payload=B.payload),c.state=D,i.notifyComponentUpdate(),i.sendInspectorTree(lv),i.sendInspectorState(lv),i.addTimelineEvent({layerId:uJ,event:{time:Date.now(),title:B.type,data:c}})}),r.subscribeAction({before:function(B,D){var c={};B.payload&&(c.payload=B.payload),B._id=aua++,B._time=Date.now(),c.state=D,i.addTimelineEvent({layerId:IM,event:{time:B._time,title:B.type,groupId:B._id,subtitle:"start",data:c}})},after:function(B,D){var c={},m=Date.now()-B._time;c.duration={_custom:{type:"duration",display:m+"ms",tooltip:"Action duration",value:m}},B.payload&&(c.payload=B.payload),c.state=D,i.addTimelineEvent({layerId:IM,event:{time:Date.now(),title:B.type,groupId:B._id,subtitle:"end",data:c}})}})})}var hJ=8702998,rua=6710886,iua=16777215,pJ={label:"namespaced",textColor:iua,backgroundColor:rua};function fJ(e){return e&&e!=="root"?e.split("/").slice(-2,-1)[0]:"Root"}function mJ(e,r){return{id:r||"root",label:fJ(r),tags:e.namespaced?[pJ]:[],children:Object.keys(e._children).map(function(i){return mJ(e._children[i],r+i+"/")})}}function gJ(e,r,i,B){B.includes(i)&&e.push({id:B||"root",label:B.endsWith("/")?B.slice(0,B.length-1):B||"Root",tags:r.namespaced?[pJ]:[]}),Object.keys(r._children).forEach(function(D){gJ(e,r._children[D],i,B+D+"/")})}function oua(e,r,i){r=i==="root"?r:r[i];var B=Object.keys(r),D={state:Object.keys(e.state).map(function(m){return{key:m,editable:!0,value:e.state[m]}})};if(B.length){var c=sua(r);D.getters=Object.keys(c).map(function(m){return{key:m.endsWith("/")?fJ(m):m,editable:!1,value:PM(function(){return c[m]})}})}return D}function sua(e){var r={};return Object.keys(e).forEach(function(i){var B=i.split("/");if(B.length>1){var D=r,c=B.pop();B.forEach(function(m){D[m]||(D[m]={_custom:{value:{},display:m,tooltip:"Module",abstract:!0}}),D=D[m]._custom.value}),D[c]=PM(function(){return e[i]})}else r[i]=PM(function(){return e[i]})}),r}function lua(e,r){var i=r.split("/").filter(function(B){return B});return i.reduce(function(B,D,c){var m=B[D];if(!m)throw new Error('Missing module "'+D+'" for path "'+r+'".');return c===i.length-1?m:m._children},r==="root"?e:e.root._children)}function PM(e){try{return e()}catch(r){return r}}var pf=function(e,r){this.runtime=r,this._children=Object.create(null),this._rawModule=e;var i=e.state;this.state=(typeof i=="function"?i():i)||{}},yJ={namespaced:{configurable:!0}};yJ.namespaced.get=function(){return!!this._rawModule.namespaced},pf.prototype.addChild=function(e,r){this._children[e]=r},pf.prototype.removeChild=function(e){delete this._children[e]},pf.prototype.getChild=function(e){return this._children[e]},pf.prototype.hasChild=function(e){return e in this._children},pf.prototype.update=function(e){this._rawModule.namespaced=e.namespaced,e.actions&&(this._rawModule.actions=e.actions),e.mutations&&(this._rawModule.mutations=e.mutations),e.getters&&(this._rawModule.getters=e.getters)},pf.prototype.forEachChild=function(e){F1(this._children,e)},pf.prototype.forEachGetter=function(e){this._rawModule.getters&&F1(this._rawModule.getters,e)},pf.prototype.forEachAction=function(e){this._rawModule.actions&&F1(this._rawModule.actions,e)},pf.prototype.forEachMutation=function(e){this._rawModule.mutations&&F1(this._rawModule.mutations,e)},Object.defineProperties(pf.prototype,yJ);var L1=function(e){this.register([],e,!1)};L1.prototype.get=function(e){return e.reduce(function(r,i){return r.getChild(i)},this.root)},L1.prototype.getNamespace=function(e){var r=this.root;return e.reduce(function(i,B){return r=r.getChild(B),i+(r.namespaced?B+"/":"")},"")},L1.prototype.update=function(e){vJ([],this.root,e)},L1.prototype.register=function(e,r,i){var B=this;i===void 0&&(i=!0),process.env.NODE_ENV!=="production"&&xJ(e,r);var D=new pf(r,i);if(e.length===0)this.root=D;else{var c=this.get(e.slice(0,-1));c.addChild(e[e.length-1],D)}r.modules&&F1(r.modules,function(m,a){B.register(e.concat(a),m,i)})},L1.prototype.unregister=function(e){var r=this.get(e.slice(0,-1)),i=e[e.length-1],B=r.getChild(i);if(!B){process.env.NODE_ENV!=="production"&&console.warn("[vuex] trying to unregister module '"+i+"', which is not registered");return}B.runtime&&r.removeChild(i)},L1.prototype.isRegistered=function(e){var r=this.get(e.slice(0,-1)),i=e[e.length-1];return r?r.hasChild(i):!1};function vJ(e,r,i){if(process.env.NODE_ENV!=="production"&&xJ(e,i),r.update(i),i.modules)for(var B in i.modules){if(!r.getChild(B)){process.env.NODE_ENV!=="production"&&console.warn("[vuex] trying to add a new module '"+B+"' on hot reloading, manual reload is needed");return}vJ(e.concat(B),r.getChild(B),i.modules[B])}}var _J={assert:function(e){return typeof e=="function"},expected:"function"},cua={assert:function(e){return typeof e=="function"||typeof e=="object"&&typeof e.handler=="function"},expected:'function or object with "handler" function'},bJ={getters:_J,mutations:_J,actions:cua};function xJ(e,r){Object.keys(bJ).forEach(function(i){if(r[i]){var B=bJ[i];F1(r[i],function(D,c){hf(B.assert(D),dua(e,i,c,D,B.expected))})}})}function dua(e,r,i,B,D){var c=r+" should be "+D+' but "'+r+"."+i+'"';return e.length>0&&(c+=' in module "'+e.join(".")+'"'),c+=" is "+JSON.stringify(B)+".",c}var Bh=function e(r){var i=this;r===void 0&&(r={}),process.env.NODE_ENV!=="production"&&(hf(typeof Promise<"u","vuex requires a Promise polyfill in this browser."),hf(this instanceof e,"store must be called with the new operator."));var B=r.plugins;B===void 0&&(B=[]);var D=r.strict;D===void 0&&(D=!1);var c=r.devtools;this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new L1(r),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._makeLocalGettersCache=Object.create(null),this._devtools=c;var m=this,a=this,y=a.dispatch,f=a.commit;this.dispatch=function(v,_){return y.call(m,v,_)},this.commit=function(v,_,p){return f.call(m,v,_,p)},this.strict=D;var n=this._modules.root.state;v6(this,n,[],this._modules.root),AM(this,n),B.forEach(function(v){return v(i)})},BM={state:{configurable:!0}};Bh.prototype.install=function(e,r){e.provide(r||qda,this),e.config.globalProperties.$store=this;var i=this._devtools!==void 0?this._devtools:process.env.NODE_ENV!=="production"||!1;i&&nua(e,this)},BM.state.get=function(){return this._state.data},BM.state.set=function(e){process.env.NODE_ENV!=="production"&&hf(!1,"use store.replaceState() to explicit replace store state.")},Bh.prototype.commit=function(e,r,i){var B=this,D=_6(e,r,i),c=D.type,m=D.payload,a=D.options,y={type:c,payload:m},f=this._mutations[c];if(!f){process.env.NODE_ENV!=="production"&&console.error("[vuex] unknown mutation type: "+c);return}this._withCommit(function(){f.forEach(function(n){n(m)})}),this._subscribers.slice().forEach(function(n){return n(y,B.state)}),process.env.NODE_ENV!=="production"&&a&&a.silent&&console.warn("[vuex] mutation type: "+c+". Silent option has been removed. Use the filter functionality in the vue-devtools")},Bh.prototype.dispatch=function(e,r){var i=this,B=_6(e,r),D=B.type,c=B.payload,m={type:D,payload:c},a=this._actions[D];if(!a){process.env.NODE_ENV!=="production"&&console.error("[vuex] unknown action type: "+D);return}try{this._actionSubscribers.slice().filter(function(f){return f.before}).forEach(function(f){return f.before(m,i.state)})}catch(f){process.env.NODE_ENV!=="production"&&(console.warn("[vuex] error in before action subscribers: "),console.error(f))}var y=a.length>1?Promise.all(a.map(function(f){return f(c)})):a[0](c);return new Promise(function(f,n){y.then(function(v){try{i._actionSubscribers.filter(function(_){return _.after}).forEach(function(_){return _.after(m,i.state)})}catch(_){process.env.NODE_ENV!=="production"&&(console.warn("[vuex] error in after action subscribers: "),console.error(_))}f(v)},function(v){try{i._actionSubscribers.filter(function(_){return _.error}).forEach(function(_){return _.error(m,i.state,v)})}catch(_){process.env.NODE_ENV!=="production"&&(console.warn("[vuex] error in error action subscribers: "),console.error(_))}n(v)})})},Bh.prototype.subscribe=function(e,r){return lJ(e,this._subscribers,r)},Bh.prototype.subscribeAction=function(e,r){var i=typeof e=="function"?{before:e}:e;return lJ(i,this._actionSubscribers,r)},Bh.prototype.watch=function(e,r,i){var B=this;return process.env.NODE_ENV!=="production"&&hf(typeof e=="function","store.watch only accepts a function."),t.watch(function(){return e(B.state,B.getters)},r,Object.assign({},i))},Bh.prototype.replaceState=function(e){var r=this;this._withCommit(function(){r._state.data=e})},Bh.prototype.registerModule=function(e,r,i){i===void 0&&(i={}),typeof e=="string"&&(e=[e]),process.env.NODE_ENV!=="production"&&(hf(Array.isArray(e),"module path must be a string or an Array."),hf(e.length>0,"cannot register the root module by using registerModule.")),this._modules.register(e,r),v6(this,this.state,e,this._modules.get(e),i.preserveState),AM(this,this.state)},Bh.prototype.unregisterModule=function(e){var r=this;typeof e=="string"&&(e=[e]),process.env.NODE_ENV!=="production"&&hf(Array.isArray(e),"module path must be a string or an Array."),this._modules.unregister(e),this._withCommit(function(){var i=MM(r.state,e.slice(0,-1));delete i[e[e.length-1]]}),cJ(this)},Bh.prototype.hasModule=function(e){return typeof e=="string"&&(e=[e]),process.env.NODE_ENV!=="production"&&hf(Array.isArray(e),"module path must be a string or an Array."),this._modules.isRegistered(e)},Bh.prototype.hotUpdate=function(e){this._modules.update(e),cJ(this,!0)},Bh.prototype._withCommit=function(e){var r=this._committing;this._committing=!0,e(),this._committing=r},Object.defineProperties(Bh.prototype,BM);var uua=pua(function(e,r){var i={};return process.env.NODE_ENV!=="production"&&!wJ(r)&&console.error("[vuex] mapMutations: mapper parameter must be either an Array or an Object"),hua(r).forEach(function(B){var D=B.key,c=B.val;i[D]=function(){for(var m=[],a=arguments.length;a--;)m[a]=arguments[a];var y=this.$store.commit;if(e){var f=fua(this.$store,"mapMutations",e);if(!f)return;y=f.context.commit}return typeof c=="function"?c.apply(this,[y].concat(m)):y.apply(this.$store,[c].concat(m))}}),i});function hua(e){return wJ(e)?Array.isArray(e)?e.map(function(r){return{key:r,val:r}}):Object.keys(e).map(function(r){return{key:r,val:e[r]}}):[]}function wJ(e){return Array.isArray(e)||sJ(e)}function pua(e){return function(r,i){return typeof r!="string"?(i=r,r=""):r.charAt(r.length-1)!=="/"&&(r+="/"),e(r,i)}}function fua(e,r,i){var B=e._modulesNamespaceMap[i];return process.env.NODE_ENV!=="production"&&!B&&console.error("[vuex] module namespace not found in "+r+"(): "+i),B}const mua="/icn-play.svg",gua="/icn-tiros-de-esquina.svg",yua="/icn-tiro-a-porteria.svg",vua="/icn-cambio.svg",_ua="/icn-falta.svg",bua="/atajada.svg",xua="/fuera-de-lugar.svg",NM="/gol.svg",wua="/var.png",kua="/tiempo-agregado.svg",Cua="/jugada-peligrosa.svg",Sua="/penal-marcado.svg",Tua="/penal-fallado.svg",Eua="/inicia-el-partido.svg",Aua="/fin-del-partido.svg",Mua="/icn-tarjeta-amarilla.svg",Iua="/icn-tarjeta-roja.svg",Pua=[1,2,3,4,6],Bua={name:"TimeLineEvent",props:{gameEvent:{type:Object,required:!0},isMobile:{type:Boolean,default:!1},width:{type:Number,default:352},timeLineWidth:{type:Number,default:0},canPlayVideos:{type:Boolean,default:!0}},data(){return{lastHeight:0,gameEventKey:0}},computed:{nameClasses(){const e=[],r=`${this.gameEvent.event_type_id}-${this.gameEvent.category_id}`;return TM.GOAL_IDS.includes(r)?(e.push("is-main-event"),e.push("goal")):TM.YELLOW_CARD_IDS.includes(r)?(e.push("is-main-event"),e.push("yellow-card")):TM.RED_CARD_IDS.includes(r)?(e.push("is-main-event"),e.push("red-card")):this.gameEvent.video_link!=="-"&&(e.push("is-main-event"),e.push("normal-video")),this.gameEvent.teamType===1?e.push("time-line-event--home-team"):e.push("time-line-event--away-team"),e},srcImgPlayers(){let e=null;return this.gameEvent.player_id&&this.gameEvent.player_id!=="-"&&(e=this.gameEvent.player_id.split("@"),e=e.map(r=>Dda(r))),e},teamTypeClasses(){const e=`time-line-event--${this.gameEvent.teamType===1?"home":"away"}-team`;return[e,`${e}-desktop`]},teamTypeClasses2(){return[`time-line-event--info--${this.gameEvent.teamType===1?"home":"away"}-team`]},minuteClasses(){const e=[`time-line-event__minute--desktop-${this.gameEvent.teamType===1?"home":"away"}-team`];return e.push("time-line-event__minute--desktop"),e},playerName(){return this.gameEvent.category_id===28||Pua.includes(this.gameEvent.event_type_id)?"":this.gameEvent.player_name}},watch:{width(){this.emitHeight()},gameEvent:{deep:!0,handler(){this.gameEventKey++}}},methods:{...uua("general",["setVideoModalVisibility","setVideoSrc"]),thumbnailClick(e){e!=="-"&&this.$emit("thumbnail-click",e)},showVideoTimeline(e){this.setVideoSrc(e),this.setVideoModalVisibility(!0)},getIconClasses(){return["time-line-event__icon--desktop",`time-line-event__icon--desktop-${this.gameEvent.teamType===1?"home":"away"}-team`]},emitHeight(){setTimeout(()=>{this.$refs.timeLineEvent&&this.$refs.timeLineEvent.clientHeight&&this.$refs.timeLineEvent.clientHeight!==this.lastHeight&&(this.lastHeight=this.$refs.timeLineEvent.clientHeight,this.$emit("event-height",this.lastHeight))},500)}},mounted(){if(this.emitHeight(),this.gameEvent.event_type_id===3){const[e,r]=this.gameEvent.player_id.split("@");this.$emit("player-changed",{playerOut:Number(e),playerIn:Number(r),teamId:this.gameEvent.team_id})}}},Nua=e=>(t.pushScopeId("data-v-84fd3fef"),e=e(),t.popScopeId(),e),zua={class:"time-line-event__details"},Oua={width:"127",preload:"metadata",style:{"border-radius":"8px"}},Fua=["src"],Lua=Nua(()=>t.createElementVNode("div",{class:"time-line-event__details__video-thumbnail__gradient"},[t.createElementVNode("div",{class:"time-line-event__details__video-thumbnail__gradient__button-play"},[t.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",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)),Dua={class:"time-line-event__details__info"},Rua={key:0,class:"time-line-event__details__info__header__players"},Vua={class:"time-line-event__details__info__header__players__div-img"},$ua=["src"],jua={class:"time-line-event__details__info__body"},Uua={class:"time-line-event__details__info__body__comment"},Gua={class:"time-line-event__minute__container"},Hua={class:"time-line-event__minute__container__text"},Wua={class:"time-line-event__minute__container__icon-container"},qua={class:"time-line-event__minute__container__icon-container__icon"},Yua={key:0,src:gua,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},Xua={key:1,src:yua,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},Zua={key:2,src:vua,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},Jua={key:3,src:_ua,class:"time-line-event__minute__container__icon-container__icon__img",alt:"Event icon"},Kua={key:4,src:bua,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},Qua={key:5,src:xua,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},eha={key:6,src:NM,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},tha={key:7,src:NM,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},aha={key:8,src:NM,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},nha={key:9,src:wua,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},rha={key:10,src:kua,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},iha={key:11,src:Cua,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},oha={key:12,src:Sua,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},sha={key:13,src:Tua,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},lha={key:14,src:Eua,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},cha={key:15,src:Aua,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},dha={key:16,src:Mua,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},uha={key:17,src:Iua,class:"time-line-event__minute__container__icon-container__icon__img",alt:"Event icon"},hha={key:18,src:"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg id='Layer_2' data-name='Layer 2' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cdefs%3E%3Cstyle%3E .cls-1 %7B fill: %23fff; %7D .cls-2 %7B fill: %23172531; %7D %3C/style%3E%3C/defs%3E%3Cg id='Layer_1-2' data-name='Layer 1'%3E%3Cg%3E%3Cg id='Oval'%3E%3Ccircle class='cls-2' cx='24' cy='24' r='24'/%3E%3C/g%3E%3Cg id='Group-19'%3E%3Cg id='Path-16'%3E%3Cpath class='cls-1' d='M32.85,36.6H15.15c-.41,0-.75-.34-.75-.75s.34-.75,.75-.75h17.69c.41,0,.75,.34,.75,.75s-.34,.75-.75,.75Z'/%3E%3C/g%3E%3C/g%3E%3Cg id='Rectangle'%3E%3Cg id='path-1'%3E%3Cpath class='cls-1' d='M38.02,32.62H9.98V13.43h28.04v19.19Zm-26.54-1.5h25.04V14.93H11.48V31.12Z'/%3E%3C/g%3E%3C/g%3E%3C/g%3E%3C/g%3E%3C/svg%3E",alt:"Event icon"};function pha(e,r,i,B,D,c){return t.openBlock(),t.createElementBlock("div",{ref:"timeLineEvent",class:t.normalizeClass(["time-line-event",c.teamTypeClasses]),style:t.normalizeStyle({width:`${i.width}px`}),key:D.gameEventKey},[t.createElementVNode("div",zua,[i.canPlayVideos&&i.gameEvent.video_link!=="-"&&i.timeLineWidth>700?(t.openBlock(),t.createElementBlock("div",{key:0,class:"time-line-event__details__video-thumbnail",onClick:r[0]||(r[0]=m=>c.thumbnailClick(i.gameEvent.video_link,i.gameEvent.event_type_name))},[t.createElementVNode("video",Oua,[t.createElementVNode("source",{src:i.gameEvent.video_link+"#t=0.1",type:"video/mp4"},null,8,Fua)]),Lua])):t.createCommentVNode("",!0),t.createElementVNode("div",Dua,[t.createElementVNode("div",{class:t.normalizeClass(["time-line-event__details__info__header",c.teamTypeClasses2])},[i.gameEvent.video_link=="-"?(t.openBlock(),t.createElementBlock("div",Rua,[c.srcImgPlayers?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(c.srcImgPlayers,(m,a)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["img-player",{"second-player":a===1}]),key:a},[t.createElementVNode("div",Vua,[t.createElementVNode("img",{src:m,alt:""},null,8,$ua)])],2))),128)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(["time-line-event__details__info__header__event-name",c.nameClasses]),onClick:r[1]||(r[1]=m=>c.thumbnailClick(i.gameEvent.video_link,i.gameEvent.event_type_name))},[i.canPlayVideos&&i.gameEvent.video_link!=="-"?(t.openBlock(),t.createElementBlock("img",{key:0,src:mua,class:t.normalizeClass(`time-line-event__details__info__header__event-play ${[1,2].includes(i.gameEvent.event_type_id)?`time-line-event__details__info__header__event-play__${i.gameEvent.event_type_name}`:i.gameEvent.video_link!=="-"?"time-line-event__details__info__header__event-play__normal-video":""}`)},null,2)):t.createCommentVNode("",!0),t.createTextVNode(" "+t.toDisplayString(i.gameEvent.category_id?i.gameEvent.event_type_id===5?i.gameEvent.category_name:i.gameEvent.event_type_name==="Gol"?`${[13,16].includes(i.gameEvent.category_id)?"Autogol":"Gol"} de `+i.gameEvent.team_name:i.gameEvent.event_type_name:i.gameEvent.comments),1)],2)],2),t.createElementVNode("div",jua,[t.createElementVNode("div",Uua,t.toDisplayString(this.gameEvent.category_id?`${this.gameEvent.comments}`:""),1)])])]),t.createElementVNode("div",{class:t.normalizeClass(["time-line-event__minute",c.minuteClasses])},[t.createElementVNode("div",Gua,[t.createElementVNode("div",Hua,t.toDisplayString(i.gameEvent.minute)+"'",1),t.createElementVNode("div",Wua,[t.createElementVNode("div",qua,[i.gameEvent.category_id==18?(t.openBlock(),t.createElementBlock("img",Yua)):i.gameEvent.category_id==20?(t.openBlock(),t.createElementBlock("img",Xua)):i.gameEvent.category_id==10?(t.openBlock(),t.createElementBlock("img",Zua)):i.gameEvent.category_id==21?(t.openBlock(),t.createElementBlock("img",Jua)):i.gameEvent.category_id==27?(t.openBlock(),t.createElementBlock("img",Kua)):i.gameEvent.category_id==17?(t.openBlock(),t.createElementBlock("img",Qua)):i.gameEvent.category_id==6&&i.gameEvent.event_type_id==1||i.gameEvent.category_id==5&&i.gameEvent.event_type_id==1||i.gameEvent.category_id==1&&i.gameEvent.event_type_id==1||i.gameEvent.category_id==2&&i.gameEvent.event_type_id==1||i.gameEvent.category_id==3&&i.gameEvent.event_type_id==1||i.gameEvent.category_id==7&&i.gameEvent.event_type_id==1||i.gameEvent.category_id==12&&i.gameEvent.event_type_id==1?(t.openBlock(),t.createElementBlock("img",eha)):i.gameEvent.category_id==4?(t.openBlock(),t.createElementBlock("img",tha)):i.gameEvent.category_id==13||i.gameEvent.category_id==16?(t.openBlock(),t.createElementBlock("img",aha)):i.gameEvent.category_id==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?(t.openBlock(),t.createElementBlock("img",nha)):i.gameEvent.category_id==28?(t.openBlock(),t.createElementBlock("img",rha)):i.gameEvent.category_id==26?(t.openBlock(),t.createElementBlock("img",iha)):i.gameEvent.category_id==22?(t.openBlock(),t.createElementBlock("img",oha)):i.gameEvent.category_id==15||i.gameEvent.category_id==23?(t.openBlock(),t.createElementBlock("img",sha)):i.gameEvent.category_id==0&&i.gameEvent.game_status_id==16||i.gameEvent.category_id==0&&i.gameEvent.game_status_id==18||i.gameEvent.category_id==0&&i.gameEvent.game_status_id==20||i.gameEvent.category_id==0&&i.gameEvent.game_status_id==22?(t.openBlock(),t.createElementBlock("img",lha)):i.gameEvent.category_id==0&&i.gameEvent.game_status_id==13||i.gameEvent.category_id==0&&i.gameEvent.game_status_id==17||i.gameEvent.category_id==0&&i.gameEvent.game_status_id==19||i.gameEvent.category_id==0&&i.gameEvent.game_status_id==21||i.gameEvent.category_id==0&&i.gameEvent.game_status_id==23?(t.openBlock(),t.createElementBlock("img",cha)):i.gameEvent.category_id==8?(t.openBlock(),t.createElementBlock("img",dha)):i.gameEvent.category_id==9?(t.openBlock(),t.createElementBlock("img",uha)):(t.openBlock(),t.createElementBlock("img",hha))])])])],2)],6)}const fha=G_(Bua,[["render",pha],["__scopeId","data-v-84fd3fef"]]),mha={"1-1":"gol","1-2":"gol","1-3":"gol","1-4":"gol","1-5":"gol","1-6":"gol","1-7":"gol","1-12":"gol","1-13":"gol","1-16":"gol","2-8":"amonestacion","2-9":"expulsion","3-10":"cambio_de_jugador","3-11":"cambio_de_jugador","4-14":"gol","4-15":"penal_fallado","5-17":"fuera_de_lugar","5-18":"tiro_de_esquina","5-20":"tiro_a_gol","5-21":"falta_cometida","5-22":"penal_marcado","5-23":"penal_fallado","5-24":"","5-25":"","5-26":"jugada_peligro_dentro_area","5-27":"atajada","5-28":"tiempo_agregado","5-29":"presion_para_anotar","7-30":"revision_var","7-31":"revision_var","7-32":"revision_var","7-33":"revision_var","7-34":"revision_var"},gha={3:{name:"Inicia Primer Tiempo",weight:1,playTimer:1,abbreviation:"1T:"},4:{name:"Final Primer Tiempo",weight:2,playTimer:0,abbreviation:"1T:"},5:{name:"Inicia Segundo Tiempo",weight:3,playTimer:1,abbreviation:"2T:"},8:{name:"Final Segundo Tiempo",weight:4,playTimer:0,abbreviation:"2T:"},9:{name:"Inicia Primer Tiempo Extra",weight:5,playTimer:1,abbreviation:"1T extra:"},12:{name:"Final Primer Tiempo Extra",weight:6,playTimer:0,abbreviation:"1T extra:"},10:{name:"Inicia Segundo Tiempo Extra",weight:7,playTimer:1,abbreviation:"2T extra:"},13:{name:"Final Segundo Tiempo Extra",weight:8,playTimer:0,abbreviation:"2T extra:"},11:{name:"Inicia Tanda de Penales",weight:9,playTimer:1,abbreviation:"Penales:"},15:{name:"Final Tanda de Penales",weight:10,playTimer:0,abbreviation:"Penales:"},6:{name:"Marcador Final",weight:11,playTimer:0,abbreviation:"Final"}};let b6=null;const yha={name:"TimeLine",components:{Tooltip:zda,TimeLineEvent:fha},mixins:[Fda],props:{gameData:{type:Object,required:!0},timeLinePeriod:{type:String,default:"all"},socket:{type:Object,default:()=>({})},canPlayVideos:{type:Boolean,default:!0}},data(){return{gameEvents:[],gameEventsByPeriod:{firstHalf:[],secondHalf:[]},dataVideo:{visible:!1,link:""},gameEventsQueue:[],gameEventsUrl:"https://al2nv2dmkc.execute-api.us-west-2.amazonaws.com/prod/mxm/",transitionName:"",subscriptionInfo:{gameId:0,isSubscribed:!1},areGameEventsFilled:!1,timeLineWidth:812,eventContainerWidth:0,channelName:"",timeLineStatus:"awaiting",timeLeft:"",lastMinute:0,timeLineStatuses:[],currentStatus:{abbreviation:""},timer:"00:00"}},computed:{isMobile(){return this.timeLineWidth<580},gameEventWidth(){return this.timeLineWidth/2-30},gameEventsToShow(){return this.timeLinePeriod==="all"?this.gameEvents:this.gameEventsByPeriod[this.timeLinePeriod]}},watch:{gameData:{deep:!0,immediate:!0,handler(e){e&&e.id&&(this.gameDateTime=new Date(this.gameData.dateTimeUTC),this.gameEventsQueue=[],this.timeLineStatuses=[],this.transitionName="",this.checkTimeLeft(),e.status!==1&&this.socket&&this.socket.connected?this.subscribeToMXMChannel():this.timeLineStatus="finished",this.fillGameEvents(e.id))}},"socket.connected":{immediate:!0,handler(e){e&&this.gameData.id&&this.gameData.status!==1&&this.subscribeToMXMChannel()}},gameEvents(e){e.length&&this.gameData.status!==1&&(this.timeLineStatus="live")}},methods:{async fillGameEvents(e){try{const r=await this.fetchGameEvents(e);r?(this.gameEvents=[...r],this.checkGameEventsQueue(),this.sortGameEvents(),setTimeout(()=>{this.transitionName="list"},500)):this.gameEvents=[],this.gameData.status===1?this.lastMinute=`${this.gameEvents[this.gameEvents.length-1].minute}'`:this.checkTimeLineStatus()}catch(r){throw new Error(r)}},getGameEventClassAndSetIcon(e,r){return e.icon=r===0?"inicio_del_partido":mha[`${e.event_type_id}-${e.category_id}`],e.team_id===this.gameData.homeTeam.team_id||!e.team_id?(e.teamType=1,["home-team-event"]):(e.teamType=2,["away-team-event"])},getEventContainerClass(){return this.isMobile,["time-line-event__container--desktop"]},async fetchGameEvents(e){try{const{data:{plays:r}}=await nJ.get(`${this.gameEventsUrl}${e}`);return r}catch(r){throw new Error(r)}},subscribeToMXMChannel(){this.channelName=`mxm.game.${this.gameData.id}`,this.socket.emit("subscribe",{channel:this.channelName}),this.isSubscribed=!0},checkGameEventsQueue(){this.gameEventsQueue.length&&this.gameEvents.push(...this.gameEventsQueue),this.areGameEventsFilled=!0},setUpResizeObserver(){if(window.ResizeObserver)b6=new ResizeObserver(()=>{this.timeLineWidth=this.$refs.timeLine.clientWidth}),b6.observe(this.$refs.timeLine);else throw new Error("Resize observer not supported!")},updateContainerHeight(e,r){const i=this.$refs[`gameEventDiv${r}`][0],B=this.$refs[`gameEventLine${r}`]?this.$refs[`gameEventLine${r}`][0]:null,D=e+12;i&&(i.style.height=`${D}px`),B&&(B.style.height=`${D}px`)},sortGameEvents(){this.gameEvents.sort((e,r)=>this.getMatchLapseMinutes(e.match_lapse)+Number(e.minute)-(this.getMatchLapseMinutes(r.match_lapse)+Number(r.minute))),this.gameEventsByPeriod={firstHalf:[],secondHalf:[]},this.gameEvents.forEach(e=>{this.gameEventsByPeriod[e.match_lapse===1?"firstHalf":"secondHalf"].push(e)})},getMatchLapseMinutes(e){let r=0;switch(e){case 1:r=0;break;case 2:r=45;break;case 3:r=90;break;case 4:r=105;break;case 5:r=120;break}return r},addGameEventFromChannel(e){this.areGameEventsFilled?(this.gameEvents.push(e),this.sortGameEvents()):this.gameEventsQueue.push(e)},deleteGameEventFromChannel(e){const r=this.gameEvents.findIndex(i=>i.play_id===e.play_id);r&&this.gameEvents.splice(r,1)},checkTimeLineStatus(){this.gameEvents.forEach(r=>{const i=gha[r.game_status];i&&this.timeLineStatuses.push({...i,gameEvent:r})}),this.timeLineStatuses.sort((r,i)=>i.weight-r.weight);const e=this.timeLineStatuses[0];e&&(this.currentStatus=e,e.playTimer&&this.startTimer())},startTimer(){},getTeamLogoSrc(e="homeTeam"){const r=this.gameData[e].team_id;return Lda(r)},thumbnailClick(e){this.canPlayVideos&&(this.dataVideo.link=e,this.dataVideo.visible=!0)}},mounted(){this.$nextTick(()=>{this.setUpResizeObserver()})},beforeUnmount(){b6&&b6.unobserve(this.$refs.timeLine)},sockets:{new_mxm([e,r]){this.channelName===e&&this.addGameEventFromChannel(r)},update_mxm([e,r]){this.channelName===e&&(this.deleteGameEventFromChannel(r),this.addGameEventFromChannel(r))},delete_mxm([e,r]){this.channelName===e&&this.deleteGameEventFromChannel(r)}}},kJ=e=>(t.pushScopeId("data-v-2574e576"),e=e(),t.popScopeId(),e),vha={ref:"timeLine",class:"time-line"},_ha={class:"time-line__header"},bha={class:"time-line__header__dot"},xha={class:"time-line__header__dot__home-team team-logo"},wha=["src"],kha={class:"time-line__header__dot__away-team team-logo"},Cha=["src"],Sha={key:1,class:"start-line"},Tha=kJ(()=>t.createElementVNode("div",null,null,-1)),Eha=kJ(()=>t.createElementVNode("div",null,null,-1)),Aha=[Tha,Eha],Mha={key:1,class:"noEventText"},Iha={class:"tooltip-data"},Pha=["src"];function Bha(e,r,i,B,D,c){const m=t.resolveComponent("TimeLineEvent"),a=t.resolveComponent("Tooltip");return t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createElementVNode("div",vha,[t.createElementVNode("div",_ha,[t.createElementVNode("div",bha,[t.createElementVNode("div",xha,[t.createElementVNode("img",{src:c.getTeamLogoSrc("homeTeam"),alt:""},null,8,wha)]),t.createElementVNode("div",kha,[t.createElementVNode("img",{src:c.getTeamLogoSrc("awayTeam"),alt:""},null,8,Cha)])])]),(t.openBlock(),t.createElementBlock("div",{class:"time-line__game-events",key:`tlk-${D.gameEvents.length}`},[i.gameData.status!==4||i.gameData.is_live?(t.openBlock(),t.createBlock(t.TransitionGroup,{key:0,name:D.transitionName,tag:"div"},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(c.gameEventsToShow,(y,f)=>(t.openBlock(),t.createElementBlock("div",{class:"time-line__game-events__grid",key:y.play_id},[t.createElementVNode("div",{ref_for:!0,ref:`gameEventDiv${f}`,class:t.normalizeClass(c.getGameEventClassAndSetIcon(y,f))},[t.createElementVNode("div",{class:t.normalizeClass(c.getEventContainerClass(y))},[t.createVNode(m,{"game-event":y,"is-mobile":c.isMobile,"time-line-width":D.timeLineWidth,width:c.gameEventWidth,"can-play-videos":i.canPlayVideos,onEventHeight:n=>c.updateContainerHeight(n,f),onPlayerChanged:r[0]||(r[0]=n=>e.$emit("player-changed",n)),onThumbnailClick:c.thumbnailClick},null,8,["game-event","is-mobile","time-line-width","width","can-play-videos","onEventHeight","onThumbnailClick"])],2),f>0?(t.openBlock(),t.createElementBlock("div",{key:0,ref_for:!0,ref:`gameEventLine${f}`,class:"line"},null,512)):t.createCommentVNode("",!0),i.gameData.status===1&&f===c.gameEventsToShow.length-1?(t.openBlock(),t.createElementBlock("div",Sha,Aha)):t.createCommentVNode("",!0)],2)]))),128))]),_:1},8,["name"])):(t.openBlock(),t.createElementBlock("div",Mha,"Aún no comienza el partido"))]))],512),t.createVNode(a,{data:D.dataVideo},{default:t.withCtx(()=>[t.createElementVNode("div",Iha,[t.createElementVNode("div",null,[t.createElementVNode("video",{class:"tooltip-video",controls:"",autoplay:"",src:D.dataVideo.link,format:"video/mp4"},null,8,Pha)])])]),_:1},8,["data"])],64)}const Nha=G_(yha,[["render",Bha],["__scopeId","data-v-2574e576"]]),zha={class:"game-time-line__options"},Oha={class:"game-time-line__timeline"},Fha={__name:"GSC-GameTimeLine",props:{game:{type:Object,default:()=>({id:79601,seasonId:1772,status:1,dateTimeUTC:"2023-10-01T22:20:00Z",is_live:0,homeTeam:{logo:"https://az755631.vo.msecnd.net/teams-80/18.png",team_id:18,provisional_logo:"https://az755631.vo.msecnd.net/teams-provisional/18.png",colloquial_name:"Toluca",acronym:"TOL",team_name:"Toluca"},awayTeam:{logo:"https://az755631.vo.msecnd.net/teams-80/1.png",team_id:1,provisional_logo:"https://az755631.vo.msecnd.net/teams-provisional/1.png",colloquial_name:"Chivas",acronym:"CHI",team_name:"Guadalajara"}})},socket:{type:Object,default:()=>({})},canPlayVideos:{type:Boolean,default:!0}},setup(e){nJ.defaults.headers.common.Authorization="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE";const r=t.ref({width:"103px",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"}),i=t.ref({width:"auto",height:"30px",padding:"0px 20px",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"});let B=null;const D=t.ref(["Todo","1er tiempo","2do tiempo"]),c=t.ref("Todo"),m=t.ref({}),a=t.ref(null),y=t.ref(0),f=t.computed(()=>{let l="all";return c.value==="1er tiempo"||c.value==="1er"?l="firstHalf":(c.value==="2do tiempo"||c.value==="2do")&&(l="secondHalf"),l}),n=t.computed(()=>y.value<500);function v(l){c.value=l}function _(l){m.value=l}function p(){if(window.ResizeObserver)B=new ResizeObserver(()=>{y.value=a.value.clientWidth}),B.observe(a.value);else throw new Error("Resize observer not supported!")}return t.onMounted(()=>{p()}),t.onBeforeUnmount(()=>{B&&B.unobserve(a.value)}),(l,o)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"gameTimeLine",ref:a,class:"game-time-line"},[t.createElementVNode("div",zha,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(D.value,s=>(t.openBlock(),t.createElementBlock("div",{key:s,class:"game-time-line__options__option"},[t.createVNode(fca,t.mergeProps(y.value<390?i.value:r.value,{text:s=="Todo"?s:y.value<390?s.substring(0,3):s,"is-active":c.value===s,onClick:u=>v(s)}),null,16,["text","is-active","onClick"])]))),128))]),t.createElementVNode("div",Oha,[t.createVNode(Nha,{"game-data":e.game,"time-line-period":f.value,"is-mobile":n.value,socket:e.socket,"can-play-videos":e.canPlayVideos,onGameEventsByPeriodFilled:_},null,8,["game-data","time-line-period","is-mobile","socket","can-play-videos"])])],512))}},Lha=G_(Fha,[["__scopeId","data-v-f42d0c90"]]),h3a="",Dha={class:"game-data__header"},Rha={class:"game-data__header__tournament-season-dropdown"},Vha={class:"game-data__header__teams-carousel"},$ha={class:"game-data__body"},jha={class:"game-data__body__menu"},Uha={class:"game-data__body__menu__contmenuswitch"};$c.defaults.headers.common.Authorization="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE";const Gha=t.defineComponent({name:"GSC-GameData",components:{StatisticsMain:Dpe,GSCGameTimeLine:Lha,GscSwitchComponent:rA,GSCLineupsMain:o8e,GSCDatosGSMain:TIe,GSCVideoGame:aGe,ModalEvents:MR,GSCSummaryMain:e_t,GSCTacticaFijaMain:hca,GSCProminentMain:QBt,GSCComparative:NFt}}),Hha=$i(Object.assign(Gha,{props:{tournamentsApiUrl:{type:String,default:""},currentSeasonId:{type:Number,default:0},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:r}){const i=e,B=Qb();Yh.on("socket-connected",()=>{B.commit("nextGeneral/updateIsSocketConnected",i.socket.connected)});const D=t.ref("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"),c=t.ref({season:[]}),m=t.ref({}),a=t.ref(!1),y=t.ref({}),f=t.ref(1),n=t.ref(0),v=3e4,_=3e4,p=3e4,l=3e4,o=3e4,s=3e4,u=3e4,d=3e4,h=3e4,g=t.ref(null),b=t.ref(null),w=t.ref(null),x=t.ref([]),S=t.ref(null),C=t.ref(!0),T=t.ref(new Set([1,2])),k=t.ref({}),A=t.ref({minute:"",recent_lapse:0,score:{}}),E=t.ref(0),M=t.ref("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"),I=t.ref(i.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:i.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:i.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}]),N=t.ref(i.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:i.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:i.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}]),z=t.ref(i.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:i.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:i.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(i.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:i.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:i.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 F=t.ref(0);let R=null;const V=t.ref(null),$=t.ref(0),U=t.ref(N.value[0]),Z=t.ref([]);let q=t.ref("");const W={seasonAndPrivileges:null,canPrivilegesTeamPlayVideos:!1,homeTeamDetails:{canPlayVideos:!1,team:{}},awayTeamDetails:{canPlayVideos:!1,team:{}}},Q=t.computed(()=>{const xe=[];return m.value&&m.value.id&&(xe.push({id:m.value.id,name:m.value.name,type:m.value.type}),m.value.related_seasons&&m.value.related_seasons.forEach(ze=>{xe.push({id:ze.id,type:ze.type})})),xe}),X=t.computed(()=>{if(i.clientPrivilegesBySeasons){const xe=i.clientPrivilegesBySeasons.seasonsAndPrivileges.get(m.value.id);if(xe)return xe.teamId}return 0});function J(){a.value=!1}function ee(xe){const ze=xe.split(",");return!(ze.length<2||ze[1].split(" ").length<2)}function le(xe){g.value=xe}function oe(xe){x.value.push(xe)}function se(xe){S.value=xe}function ce(xe){w.value=xe}function ae(xe){b.value=xe}function ne(xe){if(!ee(xe))return"";const ze=ue(xe);return`${ie(xe)}. ${ze}`}function ie(xe){return xe.split(",")[1].split(" ")[1][0]}function ue(xe){const ze=xe.split(",")[0].split(" ");return ze[0].length<=3&&ze.length>1?`${ze[0]} ${ze[1]}`:ze[0]}async function he(xe){try{const ze=$c.create({headers:{Authorization:`${D.value}`}});k.value={};const De=await ze.get("https://al2nv2dmkc.execute-api.us-west-2.amazonaws.com/prod/mxm/"+xe.game_id);if(k.value[xe.home_team.team_id]=[],k.value[xe.home_team.team_id].team={name:xe.home_team.acronym,logo:xe.home_team.logo},k.value[xe.home_team.team_id].goals=[],k.value[xe.home_team.team_id].red=[],k.value[xe.home_team.team_id].yellow=[],k.value[xe.visiting_team.team_id]=[],k.value[xe.visiting_team.team_id].team={name:xe.visiting_team.acronym,logo:xe.visiting_team.logo},k.value[xe.visiting_team.team_id].goals=[],k.value[xe.visiting_team.team_id].red=[],k.value[xe.visiting_team.team_id].yellow=[],De.data.minute!=null&&(A.value={minute:De.data.minute,recent_lapse:De.data.recent_lapse,score:De.data.score}),De.data.plays)for(let Ve=0;Ve<De.data.plays.length;Ve++)De.data.plays[Ve].category_name=="Roja"&&De.data.plays[Ve].status==1&&(xe.home_team.team_id==De.data.plays[Ve].team_id?(ne(De.data.plays[Ve].player_name)in k.value[xe.home_team.team_id].red||(k.value[xe.home_team.team_id].red[ne(De.data.plays[Ve].player_name)]={},k.value[xe.home_team.team_id].red[ne(De.data.plays[Ve].player_name)].event=[],k.value[xe.home_team.team_id].red[ne(De.data.plays[Ve].player_name)].name=ne(De.data.plays[Ve].player_name)),k.value[xe.home_team.team_id].red[ne(De.data.plays[Ve].player_name)].event.push(De.data.plays[Ve].minute)):(ne(De.data.plays[Ve].player_name)in k.value[xe.visiting_team.team_id].red||(k.value[xe.visiting_team.team_id].red[ne(De.data.plays[Ve].player_name)]={},k.value[xe.visiting_team.team_id].red[ne(De.data.plays[Ve].player_name)].event=[],k.value[xe.visiting_team.team_id].red[ne(De.data.plays[Ve].player_name)].name=ne(De.data.plays[Ve].player_name)),k.value[xe.visiting_team.team_id].red[ne(De.data.plays[Ve].player_name)].event.push(De.data.plays[Ve].minute))),De.data.plays[Ve].category_name=="Amarilla"&&De.data.plays[Ve].status==1&&(xe.home_team.team_id==De.data.plays[Ve].team_id?(ne(De.data.plays[Ve].player_name)in k.value[xe.home_team.team_id].yellow||(k.value[xe.home_team.team_id].yellow[ne(De.data.plays[Ve].player_name)]={},k.value[xe.home_team.team_id].yellow[ne(De.data.plays[Ve].player_name)].event=[],k.value[xe.home_team.team_id].yellow[ne(De.data.plays[Ve].player_name)].name=ne(De.data.plays[Ve].player_name)),k.value[xe.home_team.team_id].yellow[ne(De.data.plays[Ve].player_name)].event.push(De.data.plays[Ve].minute)):(ne(De.data.plays[Ve].player_name)in k.value[xe.visiting_team.team_id].yellow||(k.value[xe.visiting_team.team_id].yellow[ne(De.data.plays[Ve].player_name)]={},k.value[xe.visiting_team.team_id].yellow[ne(De.data.plays[Ve].player_name)].event=[],k.value[xe.visiting_team.team_id].yellow[ne(De.data.plays[Ve].player_name)].name=ne(De.data.plays[Ve].player_name)),k.value[xe.visiting_team.team_id].yellow[ne(De.data.plays[Ve].player_name)].event.push(De.data.plays[Ve].minute))),De.data.plays[Ve].event_type_name=="Gol"&&De.data.plays[Ve].status==1&&(xe.home_team.team_id==De.data.plays[Ve].team_id?De.data.plays[Ve].category_name=="Autogol"?(ne(De.data.plays[Ve].player_name)in k.value[xe.visiting_team.team_id].goals||(k.value[xe.visiting_team.team_id].goals[ne(De.data.plays[Ve].player_name)]={},k.value[xe.visiting_team.team_id].goals[ne(De.data.plays[Ve].player_name)].event=[],k.value[xe.visiting_team.team_id].goals[ne(De.data.plays[Ve].player_name)].name=ne(De.data.plays[Ve].player_name)),k.value[xe.visiting_team.team_id].goals[ne(De.data.plays[Ve].player_name)].event.push(De.data.plays[Ve].minute)):(ne(De.data.plays[Ve].player_name)in k.value[xe.home_team.team_id].goals||(k.value[xe.home_team.team_id].goals[ne(De.data.plays[Ve].player_name)]={},k.value[xe.home_team.team_id].goals[ne(De.data.plays[Ve].player_name)].event=[],k.value[xe.home_team.team_id].goals[ne(De.data.plays[Ve].player_name)].name=ne(De.data.plays[Ve].player_name)),k.value[xe.home_team.team_id].goals[ne(De.data.plays[Ve].player_name)].event.push(De.data.plays[Ve].minute)):De.data.plays[Ve].category_name=="Autogol"?(ne(De.data.plays[Ve].player_name)in k.value[xe.home_team.team_id].goals||(k.value[xe.home_team.team_id].goals[ne(De.data.plays[Ve].player_name)]={},k.value[xe.home_team.team_id].goals[ne(De.data.plays[Ve].player_name)].event=[],k.value[xe.home_team.team_id].goals[ne(De.data.plays[Ve].player_name)].name=ne(De.data.plays[Ve].player_name)),k.value[xe.home_team.team_id].goals[ne(De.data.plays[Ve].player_name)].event.push(De.data.plays[Ve].minute)):(ne(De.data.plays[Ve].player_name)in k.value[xe.visiting_team.team_id].goals||(k.value[xe.visiting_team.team_id].goals[ne(De.data.plays[Ve].player_name)]={},k.value[xe.visiting_team.team_id].goals[ne(De.data.plays[Ve].player_name)].event=[],k.value[xe.visiting_team.team_id].goals[ne(De.data.plays[Ve].player_name)].name=ne(De.data.plays[Ve].player_name)),k.value[xe.visiting_team.team_id].goals[ne(De.data.plays[Ve].player_name)].event.push(De.data.plays[Ve].minute)))}catch(ze){return Promise.reject(ze)}}function pe(xe){a.value=!0,xe.is_live!=1&&xe.game_status!=0&&(xe.game_status==4||Object.keys(xe.minutes).length>0)?(E.value=1,k.value={plays:xe.minutes,home_team:xe.home_team,visiting_team:xe.visiting_team}):(E.value=0,he(xe))}function me(){R=new ResizeObserver(xe=>{for(const ze of xe)$.value=ze.contentRect.width}),R.observe(V.value)}const _e=t.computed(()=>{let xe={};return y.value&&y.value.game_id&&(xe={gameId:y.value.game_id,id:y.value.game_id,seasonId:y.value.season_id,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}),xe});t.watch(()=>_e,(xe,ze)=>{if(B.commit("nextGeneral/updateShowLiveData",!0),Object.keys(xe.value).length>0){xe.value.gameId===ze.value.gameId&&xe.value.is_live!==ze.value.is_live&&(B.commit("nextGeneral/updateGameForAnalysisByProps",{is_live:xe.value.is_live,game_status:xe.value.game_status}),F.value+=1),N.value=[],xe.value.is_live==1||xe.value.game_status==4?N.value=[...I.value]:N.value=[...z.value],!i.isWidget&&(m.value.is_tactic_available==0||xe.value.is_live==1||xe.value.game_status==0)&&N.value.pop(),i.isWidget&&xe.value.is_live==1&&xe.value.awayTeam.team_id==i.teamWidget,U.value=N.value[0];const De=n.value==1?"Destacados":"Destacadas";N.value.forEach(Ve=>{Ve.name===De&&(Ve.name=n.value==1?"Destacadas":"Destacados")}),F.value+=1,he({game_id:xe.value.gameId,home_team:xe.value.homeTeam,visiting_team:xe.value.awayTeam}),xe.value.is_live==1&&setInterval(()=>{E.value=0,he({game_id:xe.value.gameId,home_team:xe.value.homeTeam,visiting_team:xe.value.awayTeam})},6e4)}},{deep:!0,immediate:!0}),t.watch(()=>B.state.nextGeneral.gameForAnalysis,()=>{B.commit("nextGeneral/updateIsSocketConnected",i.socket.connected)},{deep:!0,immediate:!0}),t.watch(()=>y.value,(xe,ze)=>{if(ze&&xe.game_id===ze.game_id)if(B.commit("nextGeneral/updateGameForAnalysis",{...B.state.nextGeneral.gameForAnalysis,is_live:y.value.is_live,game_status:y.value.game_status}),xe.is_live){const De=F8();De.disconnected?L8():De.connected&&XP(`game.${xe.game_id}.v2`)}else D8()},{deep:!0,immediate:!0});function we(xe){f.value=xe.is_captured,n.value=xe.is_female,C.value=xe.is_captured!==0,c.value.id!==xe.id&&(c.value=xe,B.commit("gameGlobal/setTournamentType",xe.tournament_type))}function ke(xe){!xe.auxwidget&&Ce.value&&!Ce.value.canPrivilegesTeamPlayVideos||((y.value.is_live||y.value.game_status===0||y.value.game_status===1)&&(xe.gameIdsToFilter=[y.value.game_id]),xe.isLiveAccumulated&&(xe.gameIdsToFilter=null),(y.value.is_live||y.value.game_status===0)&&!xe.isLiveAccumulated&&(xe.liveGameConfig={gameId:y.value.game_id}),r("openmedia",xe))}function Ee(xe){r("onOpenProfile",xe)}function Pe(xe){r("openProfileTeam",xe)}function je(xe){r("openProfilePlayer",xe)}function Te(xe){Re(xe),xe=="Estadísticas"&&(q.value="Comparativa")}function Se(){q.value=""}function ye(xe){m.value.id!==xe.id&&(m.value=xe,r("change-season-id",xe.id))}const ge=t.computed(()=>N.value.reduce((xe,ze)=>(i.disabledSectionsIds.includes(ze.id)||Ce.value&&!Ce.value.isVideoTabVisible&&ze.id===2||i.clientPrivilegesBySeasons&&ze.id===7||(C.value||ze.id!==5&&ze.id!==6)&&xe.push(ze.name),xe),[]));function Me(xe){if(y.value.is_live||y.value.game_status===1||y.value.game_status===0){const ze=xe.playingAs.has(y.value.playingAs);return i.clientPrivilegesBySeasons.canPlayVideos&&ze}else{const ze=Oe.value.filter(De=>xe.playingAs.has(De.playingAs));return i.clientPrivilegesBySeasons.canPlayVideos&&ze.length>0}}const Ce=t.computed(()=>{if(i.clientPrivilegesBySeasons){if(m.value&&y.value&&y.value.game_id){const xe=i.clientPrivilegesBySeasons.seasonsAndPrivileges.get(m.value.id);if(xe)if(Fe(xe.playingAs),(y.value.is_live||y.value.game_status===1||y.value.game_status===0)&&B.state.nextGeneral.showLiveData){const ze=xe.playingAs.has(y.value.playingAs);return{seasonAndPrivileges:xe,canPrivilegesTeamPlayVideos:i.clientPrivilegesBySeasons.canPlayVideos&&ze,isPrivilegesTeamOnly:!1,isPrivilegesTeamHome:y.value.home_team.team_id===xe.teamId,homeTeamDetails:{canPlayVideos:ze,team:y.value.home_team},awayTeamDetails:{canPlayVideos:ze,team:y.value.visiting_team},isVideoTabVisible:Me(xe)}}else{const ze=y.value.home_team.team_id===xe.teamId,De=Oe.value.filter(Xe=>xe.playingAs.has(Xe.playingAs));return{seasonAndPrivileges:xe,canPrivilegesTeamPlayVideos:i.clientPrivilegesBySeasons.canPlayVideos&&De.length>0,isPrivilegesTeamOnly:!0,isPrivilegesTeamHome:ze,homeTeamDetails:{canPlayVideos:i.clientPrivilegesBySeasons.canPlayVideos&&ze&&De.length>0,team:y.value.home_team},awayTeamDetails:{canPlayVideos:i.clientPrivilegesBySeasons.canPlayVideos&&!ze&&De.length>0,team:y.value.visiting_team},isVideoTabVisible:Me(xe)}}Fe(new Set)}return W}return null}),Oe=t.computed(()=>{if(i.clientPrivilegesBySeasons){if(m.value){const xe=i.clientPrivilegesBySeasons.seasonsAndPrivileges.get(m.value.id);if(xe)return Z.value.filter(ze=>ze.game_status===1&&xe.playingAs.has(ze.playingAs))}return[]}return[]});t.watch(ge,()=>{Ce.value&&!Ce.value.canPrivilegesTeamPlayVideos&&U.value.id===2&&Re("Resumen")},{deep:!0,immediate:!0});function Fe(xe){T.value=xe}function Re(xe){if(B.commit("nextGeneral/updateShowLiveData",!0),g.value!=null&&(clearInterval(g.value),g.value=null),b.value!=null&&(clearInterval(b.value),b.value=null),w.value!=null&&(clearInterval(w.value),w.value=null),S.value!=null&&(clearInterval(S.value),S.value=null),x.value.length>0){for(let ze of x.value)clearInterval(ze);x.value=[]}i.isWidget?U.value=N.value.find(ze=>ze.name===xe)||N.value[1]:U.value=N.value.find(ze=>ze.name===xe)||N.value[0]}t.onMounted(()=>{me(),t.nextTick(()=>{i.isSynchronization&&Re("Táctica Fija")})}),t.onBeforeUnmount(()=>{if(R&&R.disconnect(),g.value!=null&&(clearInterval(g.value),g.value=null),b.value!=null&&(clearInterval(b.value),b.value=null),w.value!=null&&(clearInterval(w.value),w.value=null),S.value!=null&&(clearInterval(S.value),S.value=null),x.value.length>0){for(let xe of x.value)clearInterval(xe);x.value=[]}R8()});function Ue(xe){if(xe.playingAs||(xe.playingAs=X.value?xe.home_team.team_id===X.value?1:2:0),g.value!=null&&(clearInterval(g.value),g.value=null),b.value!=null&&(clearInterval(b.value),b.value=null),w.value!=null&&(clearInterval(w.value),w.value=null),S.value!=null&&(clearInterval(S.value),S.value=null),x.value.length>0){for(let ze of x.value)clearInterval(ze);x.value=[]}y.value=xe,xe.is_live&&xe.game_status===4?L8():D8()}function Ne(xe){Z.value=xe.map(ze=>{const De={...ze};return X.value&&(De.playingAs=De.home_team.team_id===X.value?1:2),De})}return(xe,ze)=>(t.openBlock(),t.createElementBlock("div",{class:"game-data",ref_key:"gamedata",ref:V},[t.createElementVNode("div",Dha,[t.withDirectives(t.createElementVNode("div",Rha,[t.createVNode(t.unref(JM),{"current-season-id":e.currentSeasonId,onInput:we,onChangeTournaments:we,"tournaments-ids-to-include":e.tournamentsIdsToInclude,"api-url":e.tournamentsApiUrl},null,8,["current-season-id","tournaments-ids-to-include","api-url"]),t.createVNode(t.unref(eI),{"current-season-id":e.currentSeasonId,seasons:c.value.seasons,onInput:ye},null,8,["current-season-id","seasons"])],512),[[t.vShow,e.areTournamentAndSeasonSelectsVisible]]),t.createElementVNode("div",Vha,[t.createVNode(t.unref($ne),{"plays-live":k.value,"info-live":A.value,token:M.value,is_captured:f.value,"await-for-seasons":"",seasons:Q.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":X.value,"only-games-team-id":X.value,"tournament-type":t.unref(B).state.gameGlobal.tournamentType,onChangeGameCarousel:Ue,onOpenModalEvent:pe,onChangeGamesByClientPrivileges:Ne},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"])])]),a.value?(t.openBlock(),t.createBlock(MR,{key:0,width:$.value,onCloseModalEventsLive:J,plays:k.value,game:y.value,type:E.value},null,8,["width","plays","game","type"])):t.createCommentVNode("",!0),t.createElementVNode("div",$ha,[t.createElementVNode("div",jha,[t.createElementVNode("div",Uha,[t.createVNode(t.unref(rA),{type:2,buttons:ge.value,"font-family":"Poppins-Regular","font-size":"16px",width:$.value<400||$.value<700?"max-content":$.value<840||$.value<1050?"155px":"165px","selected-option":U.value.name,borderWidth:"1px",arrow:!1,height:"30px",onInput:Re},null,8,["buttons","width","selected-option"])])]),_e.value&&_e.value.gameId?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(U.value.componentName),{key:F.value,game:_e.value,"is-widget":e.isWidget,"team-widget":e.teamWidget,onIntervalidpossesion:ae,onIntervalidhighlive:ce,onIntervalidtops:oe,onIntervalidgs:se,subsection:t.unref(q),seasonSelected:m.value,tournamentSelected:c.value,showLineups:C.value,socket:e.socket,"time-live-prominent-data":v,"time-live-highlights-prominent-and-video":_,"time-live-possesion":p,"time-live-video-goals":l,"time-live-video-best-plays":o,"time-live-video-this-game":s,"time-live-video-specific-plays":u,"time-live-comparative-best-players":d,"time-live-comparative-avanced":h,is_captured:f.value,"is-tactic-visible":!!m.value.show_tactic,"is-synchronization":e.isSynchronization,"can-play-videos":Ce.value?Ce.value.canPrivilegesTeamPlayVideos:!0,"video-privileges-playing-as":T.value,"client-privileges-team-id":X.value,"play-videos-privileges":Ce.value,token:M.value,"game-events-interval-minutes":e.gameEventsIntervalMinutes,"volumetric-field-interval-minutes":e.volumetricFieldIntervalMinutes,"chalkboard-interval-minutes":e.chalkboardIntervalMinutes,onResetSubsection:Se,onOpenmedia:ke,onOnOpenProfile:Ee,onOpenProfileTeam:Pe,onOpenProfilePlayer:je,onChangeToTab:Te,onOpenMediaPlayer:ke,onIntervalid:le},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)])],512))}}),[["__scopeId","data-v-40e492e9"]]);async function Uu({url:e,options:r={},retries:i=3}){return await $c.get(e,r).then(B=>B).catch(B=>i>0?Uu({url:e,options:r,retries:i-1}):B)}async function CJ({seasonId:e},r=!0){try{return(await(await fetch(`https://golstats-microservices.s3-us-west-2.amazonaws.com/statsLeagueBySeason-${e}.json`)).json()).data}catch(i){if(r)return CJ({seasonId:e},!1);throw new Error(i)}}async function Wha({seasonId:e}){try{return(await Uu({url:`https://iwxfzq6e2h.execute-api.us-west-2.amazonaws.com/prod/v2/statisticsLeagueBySeason/${e}`})).data.data}catch(r){return Promise.reject(r)}}async function qha({seasonId:e}){try{return(await Uu({url:`https://sqf4rkvoge.execute-api.us-west-2.amazonaws.com/prod/v3/statisticsGroupedBySeason/${e}`})).data.data}catch(r){return Promise.reject(r)}}function Yha(e,r,i,B,D,c,m=!1){const a=i.map(y=>y===1?2:y===2?1:3);return e.filter(y=>{const f=c&&y[D.teamId]?y[D.teamId]!==c:!1,n=r===1?2:1;return(m||B.includes(y[D.gameId]))&&(!r||(f?n:r)===y[D.playingAs])&&(i.includes(y[D.matchResult])&&y[D.teamId]===c||a.includes(y[D.matchResult])&&y[D.teamId]!==c)})}function SJ(e,r,i,B,D){return r.length===2&&i.length===3&&B.length===6?e:e.filter(c=>r.includes(c[D.playingAs])&&i.includes(c[D.matchResult])&&B.includes(c[D.section]))}async function TJ({seasonId:e}){try{const r=`https://8tvo5bp9ai.execute-api.us-west-2.amazonaws.com/prod/gamesBySeason/${e}`;return(await Uu({url:r})).data}catch(r){return Promise.reject(r)}}async function Xha({seasonId:e,gameId:r}){try{const i=`https://iwxfzq6e2h.execute-api.us-west-2.amazonaws.com/prod/v2/statisticsLeagueBySeason/${e}/games/${r}`,{data:B}=await Uu({url:i});return B}catch(i){return Promise.reject(i)}}async function Zha({gameId:e}){try{const r=`https://2uj7ojhmt5.execute-api.us-west-2.amazonaws.com/prod/V2/statisticsLive/${e}`;return(await Uu({url:r})).data.data}catch(r){return Promise.reject(r)}}async function Jha({gameId:e}){try{const r=`https://55sbpmq0f5.execute-api.us-west-2.amazonaws.com/prod/specialMentions/${e}`;return(await Uu({url:r})).data.data||[]}catch(r){return Promise.reject(r)}}const Kha=["categoryId","matchLapse","section","matchResult","playingAs","total"];let zM=null;function EJ(){return zM||(zM=Wg(Kha)),zM}async function Qha(e){try{const r=`https://d2oco6mqmc.execute-api.us-west-2.amazonaws.com/prod/teamsBySeason/${e.seasonId}`;return(await Uu({url:r})).data}catch(r){return Promise.reject(r)}}async function AJ({seasonId:e,teamId:r}){try{return await Uu({url:`https://a4dcb6avog.execute-api.us-west-2.amazonaws.com/prod/v2/statisticsTeamBySeason/${e}/${r}`})}catch(i){return Promise.reject(i)}}async function epa(e){try{const r=`https://yjeig444bb.execute-api.us-west-2.amazonaws.com/prod/teamsBySeason/${e.seasonId}`;return await Uu({url:r})}catch(r){return Promise.reject(r)}}async function tpa(e){try{return await Uu({url:`https://nckawv8v3b.execute-api.us-west-2.amazonaws.com/prod/v2/statisticsByGame/${e.gameId}`})}catch(r){return Promise.reject(r)}}const apa={leagueGeneral:{namespaced:!0,state:{seasonPlays:[],currentSeasonGames:[],currentSeasonTeams:[],selectedRound:1,booleanAreLiveGames:!1,booleanIsLiveGamesModalOpen:!1},getters:{seasonPlays:e=>e.seasonPlays,filteredPlaysStack(e,r,i,B){return Yha(e.seasonPlays,B["filterGeneral/getPlayingAs"],B["filterGeneral/getResults"],B["filterGeneral/getSelectedGamesIds"],EJ(),B["teamsGeneral/team"].team_id,!0)},nextGamesSchedule(e){const r=e.currentSeasonGames.reduce((i,B)=>{const D={...B};return D.home_team=e.currentSeasonTeams.find(c=>c.team_id===B.home_team),D.visiting_team=e.currentSeasonTeams.find(c=>c.team_id===B.visiting_team),i[B.matchday_abbreviation]?i[B.matchday_abbreviation][B.game_status===3?"canceled":B.date]?i[B.matchday_abbreviation][B.game_status===3?"canceled":B.date].push(D):i[B.matchday_abbreviation][B.game_status===3?"canceled":B.date]=[D]:i[B.matchday_abbreviation]={[B.game_status===3?"canceled":B.date]:[D]},i},{});for(let[i,B]of Object.entries(r))r[i]=Object.entries(B).map(([D,c])=>({date:D,games:c})),r[i].sort((D,c)=>D.date<c.date?-1:D.date>c.date?1:0);return r},matchdaysDates(e,r){let i=[];if(r.nextGamesSchedule){let B=Object.keys(r.nextGamesSchedule);for(let D of B){let c=Number(D.replace("M","")),m=r.nextGamesSchedule[D].map(a=>({matchday:c,date:new Date(a.date)}));i=i.concat(m)}}return i},closestMatchDay(e,r){let i=new Date,B=0,D=-new Date(0,0,0).valueOf(),c=r.matchdaysDates,m=c.length;for(let a=0;a<c.length;a++)B=Math.abs(c[a].date-i),B<D&&(m=a,D=B);return c[m]?c[m].matchday:1}},mutations:{setBooleanIsLiveGamesModalOpen(e,r){e.booleanIsLiveGamesModalOpen=r},setBooleanAreLiveGames(e,r){e.booleanAreLiveGames=r},updateSeasonPlays(e,r){e.seasonPlays=r},updateCurrentSeasonTeams(e,r){e.currentSeasonTeams=r},updateCurrentSeasonGames(e,r){e.currentSeasonGames=r},updateSelectedRound(e,r){e.selectedRound=r}},actions:{async getSeasonPlays({commit:e,rootGetters:r},i=!1){try{const B=await CJ({seasonId:r["filterGeneral/getSeasonId"]});if(i)return B;e("updateSeasonPlays",B)}catch(B){return Promise.reject(B)}},async getCurrentSeasonGames({commit:e,rootGetters:r}){try{const i=await TJ({seasonId:r["loginGeneral/seasonId"]});e("updateCurrentSeasonGames",i)}catch(i){return Promise.reject(i)}},async getCurrentSeasonTeams({commit:e,rootGetters:r}){try{const i=await Qha({seasonId:r["loginGeneral/seasonId"]});e("updateCurrentSeasonTeams",i.teams)}catch(i){return Promise.reject(i)}},async isDataFilled({state:e,dispatch:r,commit:i}){try{if(e.currentSeasonGames.length>0&&e.currentSeasonTeams.length>0)return i("setIsSectionLoading",!1,{root:!0}),!0;const B=[void 0,void 0];return e.currentSeasonGames.length===0&&(B[0]=r("getCurrentSeasonGames")),e.currentSeasonTeams.length===0&&(B[1]=r("getCurrentSeasonTeams")),await Promise.all(B),!1}catch(B){throw new Error(B)}}}}};async function npa({filter:e}){try{const r=`https://n7ielynjxk.execute-api.us-east-2.amazonaws.com/qa/filters?filters=${e}`,{data:i}=await Uu({url:r});return i}catch(r){return Promise.reject(r)}}const rpa=["categoryId","teamId","matchResult","playingAs","matchLapse","section","total"];let OM=null;function ipa(){return OM||(OM=Wg(rpa)),OM}class x6{constructor(){Vc(this,"maximumLiveSection",1);Vc(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:[]});Vc(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(r){r>this.maximumLiveSection&&(this.maximumLiveSection=r)}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(r,i,B){B&&(this.setMaximumLiveSection(r),this.accomplished.totalLive+=i,this.accomplished.totalsLiveTrendLive.sections[r-1]+=i,this.increaseTrendLiveAccumulatedByOne(this.accomplished.totalsLiveTrendLive,r,i)),this.accomplished.totalPostGame+=i,this.accomplished.avgPostGameTrendLive.sections[r-1]+=i,this.increaseTrendLiveAccumulatedByOne(this.accomplished.avgPostGameTrendLive,r,i)}increaseReceivedByOne(r,i,B){B&&(this.setMaximumLiveSection(r),this.received.totalLive+=i,this.received.totalsLiveTrendLive.sections[r-1]+=i,this.increaseTrendLiveAccumulatedByOne(this.received.totalsLiveTrendLive,r,i)),this.received.totalPostGame+=i,this.received.avgPostGameTrendLive.sections[r-1]+=i,this.increaseTrendLiveAccumulatedByOne(this.received.avgPostGameTrendLive,r,i)}increaseTrendLiveAccumulatedByOne(r,i,B){for(let D=i-1;D<r.accumulated.length;D++)r.accumulated[D]+=B}decreaseAccomplishedLiveByOne(r,i){this.accomplished.totalLive>0&&(this.accomplished.totalLive-=i),this.accomplished.totalsLiveTrendLive.sections[r-1]>0&&(this.accomplished.totalsLiveTrendLive.sections[r-1]-=i,this.decreaseTotalsLiveTrendLiveAccumulatedByOne(this.accomplished.totalsLiveTrendLive,r,i))}decreaseReceivedLiveByOne(r,i){this.received.totalLive>0&&(this.received.totalLive-=i),this.received.totalsLiveTrendLive.sections[r-1]>0&&(this.received.totalsLiveTrendLive.sections[r-1]-=i,this.decreaseTotalsLiveTrendLiveAccumulatedByOne(this.received.totalsLiveTrendLive,r,i))}decreaseTotalsLiveTrendLiveAccumulatedByOne(r,i,B){for(let D=r.accumulated.length-1;D>=i-1;D--)r.accumulated[D]-=B}calculateAvg(r){r&&(this.accomplished.avgPostGame=this.accomplished.totalPostGame/r,this.received.avgPostGame=this.received.totalPostGame/r,this.accomplished.avgPostGameTrendLive.sections=this.getAvgPostGameTrendLiveAvg(this.accomplished.avgPostGameTrendLive.sections,r),this.accomplished.avgPostGameTrendLive.accumulated=this.getAvgPostGameTrendLiveAvg(this.accomplished.avgPostGameTrendLive.accumulated,r),this.received.avgPostGameTrendLive.sections=this.getAvgPostGameTrendLiveAvg(this.received.avgPostGameTrendLive.sections,r),this.received.avgPostGameTrendLive.accumulated=this.getAvgPostGameTrendLiveAvg(this.received.avgPostGameTrendLive.accumulated,r))}getAvgPostGameTrendLiveAvg(r,i){return r.map(B=>B/i)}calculateRanking(r,i,B,D,c,m,a,y){let f=[];D===3&&r&&r.length&&(B.playingAs.length!==2||B.matchResult.length!==3)?f=Array.from(r.reduce((v,_)=>{const p=_[i.playingAs]===1,l=p?"1":"2",o=v.get(_[i.gameId]);if(o)o[l]?o[l].arrayPlays.push(_):o[l]={numberTeamId:_[i.teamId],arrayPlays:[_]};else{const s={numberMatchResult:_[i.matchResult]};p&&(s[1]={numberTeamId:_[i.teamId],arrayPlays:[_]}),v.set(_[i.gameId],s)}return v},new Map).values()).reduce((v,_)=>{const p=B.playingAs.length===2?"both":B.playingAs[0].toString();return(p==="both"&&(_[1].numberTeamId===B.teamId||_[2].numberTeamId===B.teamId)||p!=="both"&&_[p].numberTeamId===B.teamId)&&B.matchResult.includes(_.numberMatchResult)&&v.push(..._[1].arrayPlays,..._[2].arrayPlays),v},[]).filter(v=>B.sections.includes(v[i.section])):(f=r?[...r]:[],a&&r&&(f=r.filter(n=>B.playingAs.includes(n[i.playingAs])&&B.matchResult.includes(n[i.matchResult])&&B.sections.includes(n[i.section])))),this.setTeamRanking(f,D,i,B.teamId,m,"accomplished",y)}setTeamRanking(r,i,B,D,c,m,a){let y=null,f=null;i===3&&(y=new Map,f={},r.forEach(_=>{const p=y.get(_[B.gameId]);p?p[_[B.teamId.toString()]]?p[_[B.teamId.toString()]]+=_[B.total]:p[_[B.teamId.toString()]]=_[B.total]:y.set(_[B.gameId],{[_[B.teamId.toString()]]:_[B.total]})}),Array.from(y.values()).forEach(_=>{const[p,l]=Object.keys(_).map(s=>s),o=_[p]+_[l];this.addPassesAvgByTeam(f,p,o?_[p]/o:0),this.addPassesAvgByTeam(f,l,o?_[l]/o:0)}));const n=c.sort((_,p)=>_.team_id-p.team_id).map(_=>{if(i===3){const p=f[_.team_id.toString()];return{teamId:_.team_id,points:p?p.numberTotalPassesAvg/p.numberGamesCount:0,total:p?p.numberTotalPassesAvg:0}}else{const p=r.reduce((l,o)=>o[B.teamId]===_.team_id&&i===o[B.categoryId]?l+o[B.total]:l,0);return{teamId:_.team_id,points:_[`${a}FilterGames`]?p/_[`${a}FilterGames`]:0,total:p}}}).sort((_,p)=>p.points-_.points);this.accomplished.arrayRankings=n;const v=n.findIndex(_=>_.teamId===D);i===3&&(this.accomplished.avgPreGame=n[v].points),this[m].ranking=v+1,this[m].leader=n[0]}addPassesAvgByTeam(r,i,B){r[i]?(r[i].numberGamesCount+=1,r[i].numberTotalPassesAvg+=B):r[i]={numberGamesCount:1,numberTotalPassesAvg:B}}}class Bs{constructor(r,i,B,D,c,m,a,y,f,n){Vc(this,"id","");Vc(this,"generalId",0);Vc(this,"name","");Vc(this,"names",{"0-0":"","1-1":"","0-1":"","1-0":""});Vc(this,"mentions",{"0-0":"","1-1":"","0-1":"","1-0":""});Vc(this,"accomplishedCategoryIds",[]);Vc(this,"receivedCategoryIds",[]);Vc(this,"generalCategoriesIds",{accomplished:0,received:0});Vc(this,"specialMention","");Vc(this,"homeTeam",new x6);Vc(this,"visitingTeam",new x6);Vc(this,"isLeagueDataCalculated",!1);Vc(this,"leagueAccomplishedMax",0);Vc(this,"leagueReceivedMax",0);Vc(this,"leagueAccomplishedAvg",0);Vc(this,"leagueReceivedAvg",0);Vc(this,"leagueAccomplishedAccumulator",0);Vc(this,"leagueReceivedAccumulator",0);Vc(this,"homeTeamType","homeTeam");Vc(this,"visitingTeamType","visitingTeam");Vc(this,"betOnly",!1);Vc(this,"isPercent",!1);this.id=`${B.accomplished}-${B.received}`,this.accomplishedCategoryIds=r||[],this.receivedCategoryIds=i||[],this.generalCategoriesIds=B||{accomplished:0,received:0},this.name=D,this.names["0-0"]=D||"",this.names["1-1"]=c||"",this.names["0-1"]=m||"",this.names["1-0"]=a||"",this.generalId=y||0,this.betOnly=f||!1,this.isPercent=n||!1}addLeaguePlays(r,i,B){r.length===0||!B||this.isLeagueDataCalculated||(r.forEach(D=>{this.isAccomplishedLeaguePlay(D[i.categoryId])&&(this.leagueAccomplishedAccumulator+=D[i.total]),this.isReceivedLeaguePlay(D[i.categoryId])&&(this.leagueReceivedAccumulator+=D[i.total])}),this.leagueAccomplishedAvg=(this.leagueAccomplishedAccumulator/(2*B)).toFixed(2),this.leagueAccomplishedMax=Math.round(this.leagueAccomplishedAvg*1.5),this.leagueReceivedAvg=(this.leagueReceivedAccumulator/(2*B)).toFixed(2),this.leagueReceivedMax=Math.round(this.leagueReceivedAvg*1.5),this.isLeagueDataCalculated=!0)}addSpecialMention(r,i,B){let D="-";for(const[c,m]of Object.entries(this.generalCategoriesIds))r===m&&(D=`${c==="accomplished"?"0":"1"}${D}`),i===m&&(D=`${D}${c==="accomplished"?"0":"1"}`);D.length===3&&(this.mentions[D]=B)}resetMentions(){this.mentions={"0-0":"","1-1":"","0-1":"","1-0":""}}addTeamPlays(r,i,B,D,c){!B||!c||r!==this.homeTeamType&&r!==this.visitingTeamType||(B.forEach(m=>{this.isAccomplishedPlay(m[D.categoryId])?this[r].increaseAccomplishedByOne(m[D.section],m[D.total]):this.isReceivedPlay(m[D.categoryId])&&this[r].increaseReceivedByOne(m[D.section],m[D.total])}),this[r].calculateAvg(c))}addLivePlay(r,i,B,D,c=!1,m=!1){(r===this.homeTeamType||r===this.visitingTeamType)&&B[D.categoryId].includes(this.generalCategoriesIds.accomplished)&&this[r].increaseAccomplishedByOne(B[D.section],B[D.total],!0)}subtractLivePlay(r,i,B,D,c){(r===this.homeTeamType||r===this.visitingTeamType)&&(this.isAccomplishedPlay(B[D.categoryId])&&!c?this[r].decreaseAccomplishedLiveByOne(B[D.section],B[D.total]):this.isReceivedPlay(B[D.categoryId])&&c&&this[r].decreaseReceivedLiveByOne(B[D.section],B[D.total]))}isAccomplishedLeaguePlay(r){return!!(this.receivedCategoryIds[0]===40?this.receivedCategoryIds:this.accomplishedCategoryIds).find(B=>r===B||`${r}_r`===B)}isReceivedLeaguePlay(r){return!!this.receivedCategoryIds.find(i=>r===i)}isAccomplishedPlay(r){return this.generalCategoriesIds.accomplished===r}isReceivedPlay(r){return this.generalCategoriesIds.received===r}calcRankingLeague(r,i,B,D,c,m=!1){this[this.homeTeamType].calculateRanking(r,i,B,this.generalCategoriesIds.accomplished,this.generalCategoriesIds.received,c,m,this.homeTeamType),this[this.visitingTeamType].calculateRanking(r,i,D,this.generalCategoriesIds.accomplished,this.generalCategoriesIds.received,c,m,this.visitingTeamType)}resetData(){this.homeTeam=new x6,this.visitingTeam=new x6,this.isLeagueDataCalculated=!1,this.leagueAccomplishedMax=0,this.leagueReceivedMax=0,this.leagueAccomplishedAvg=0,this.leagueReceivedAvg=0,this.leagueAccomplishedAccumulator=0,this.leagueReceivedAccumulator=0}isInGeneralCategory(r){return this.generalCategoriesIds.accomplished===r||this.generalCategoriesIds.received===r}}const opa={general:{name:"General",priority:1,parentInfo:{parentAnalysis:[1],analysisTypeBlocks:[1]},subcategories:{goals:new Bs([12,55,"35_r","54_r"],null,{accomplished:1,received:0},"Goles","Goles recibidos","Goles realizados / recibidos","Goles recibidos / realizados",1),shotToGoal:new Bs([91,95,158,167,176,343,330,333,423],null,{accomplished:2,received:0},"Remates a destino","","","",1),possession:new Bs([2,3,20,21],null,{accomplished:3,received:0},"Posesión","","","",1,!1,!0),yellowCards:new Bs([14,52],null,{accomplished:4,received:0},"Tarjetas amarillas","","","",1),redCards:new Bs([15,53],null,{accomplished:5,received:0},"Tarjetas rojas","","","",1),centerCrosses:new Bs([13,25],null,{accomplished:6,received:0},"Centros totales","","","",1)}},offensive:{name:"Ofensivo",priority:2,parentInfo:{parentAnalysis:[1],analysisTypeBlocks:[1]},subcategories:{shotsOnGoal:new Bs([19],null,{accomplished:7,received:0},"Tiros a gol","","","",1),shotsOnGoalDestination:new Bs([91,95],null,{accomplished:8,received:0},"Tiros a gol destino","","","",1),shotToGoal:new Bs([91,95,158,167,176,343,330,333,423],null,{accomplished:2,received:0},"Remates a destino","","","",1),ballsWonOpponentPenaltyBox:new Bs([11],null,{accomplished:10,received:0},"Balones ganados área rival","","","",1),centersFromRight:new Bs([25],null,{accomplished:11,received:0},"Centros por derecha","","","",1),centersFromLeft:new Bs([13],null,{accomplished:12,received:0},"Centros por izquierda","","","",1),success1VS1:new Bs([4],null,{accomplished:13,received:0},"Enfrentamientos ofensivos exitosos","","","",1),unsuccess1VS1:new Bs([209],null,{accomplished:14,received:0},"Enfrentamientos ofensivos no exitosos","","","",1)}},defensive:{name:"Defensivo",priority:3,parentInfo:{parentAnalysis:[1],analysisTypeBlocks:[1]},subcategories:{saves:new Bs([39],null,{accomplished:15,received:0},"Atajadas","","","",1),ballsWonOwnPenaltyBox:new Bs([23],null,{accomplished:16,received:0},"Balones ganados área propia","","","",1),success1VS1:new Bs([5],null,{accomplished:17,received:0},"Enfrentamientos defensivos exitosos","","","",1),unsuccess1VS1:new Bs([209],null,{accomplished:18,received:0},"Enfrentamientos defensivos no exitosos","","","",1),aerialGame:new Bs([24],null,{accomplished:19,received:0},"Juego aéreo resto del campo","","","",1),clearances:new Bs([34],null,{accomplished:20,received:0},"Rechaces","","","",1)}},possession:{name:"Posesión",priority:4,parentInfo:{parentAnalysis:[1],analysisTypeBlocks:[1]},subcategories:{totalPasses:new Bs([2,3,20,21],null,{accomplished:21,received:0},"Pases totales","","","",1),successPasses:new Bs([2,20],null,{accomplished:22,received:0},"Pases acertados","","","",1),successPassesRivalHalf:new Bs([20],null,{accomplished:23,received:0},"Pases acertados en cancha rival","","","",1),ballsRecoveredInChallenge:new Bs([483],null,{accomplished:24,received:0},"Balones recuperados en disputa","","","",1),ballsRecoveredWithoutChallenge:new Bs([484],null,{accomplished:25,received:0},"Balones recuperados sin disputa","","","",1),ballsLostInChallenge:new Bs([494],null,{accomplished:26,received:0},"Balones perdidos en disputa","","","",1),ballsLostWithoutChallenge:new Bs([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 Bs([155,164,173,362,371,380],null,{accomplished:28,received:0},"Tiros libres 4/4","","","",1),freeKick34:new Bs([150,357],null,{accomplished:29,received:0},"Tiros libres 3/4","","","",1),freeKickOwnHalf:new Bs([149,356],null,{accomplished:30,received:0},"Tiros libres cancha propia","","","",1),cornerFromRight:new Bs([32],null,{accomplished:31,received:0},"Tiros de esquina por derecha","","","",1),cornerFromLeft:new Bs([31],null,{accomplished:32,received:0},"Tiros de esquina por izquierda","","","",1),goalKick:new Bs([264,28],null,{accomplished:33,received:0},"Saques de meta","","","",1)}},penalties:{name:"Infracciones",priority:6,parentInfo:{parentAnalysis:[1],analysisTypeBlocks:[1]},subcategories:{totalFouls:new Bs([17,50],null,{accomplished:34,received:0},"Faltas totales","","","",1),foulOwnGoal:new Bs([348,478],null,{accomplished:35,received:0},"Faltas cerca de su propia portería","","","",1),fieldFouls:new Bs([349,350,479,480],null,{accomplished:36,received:0},"Faltas resto del campo","","","",1),penaltyKick:new Bs([461,481],null,{accomplished:37,received:0},"Penales cometidos","","","",1),offside:new Bs([33],null,{accomplished:38,received:0},"Fueras de lugar","","","",1)}}},spa=[{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}],lpa=["teamId","categoryId","matchlapse","section","matchResult","playingAs","total","gameId"];let FM=null;function cpa(){return FM||(FM=Wg(lpa)),FM}const dpa=["playId","gameId","teamId","playerId","momentOfPlay","categoryId","categoryType","matchLapse","section","matchResult","playingAs","total","coordinate1X","coordinate1Y","coordinate2X","coordinate2Y","coordinate3X","coordinate3Y"];let LM=null;function upa(){return LM||(LM=Wg(dpa)),LM}function w6(e,r,i){return[i.get(e[r.categoryId])||[],e[r.teamId],e[r.matchResult],e[r.playingAs],e[r.matchLapse],e[r.section],e[r.total]]}function MJ(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 DM(e,r,i){let B=[...r];return e[i.categoryId]===2&&(B[0]=14),e[i.categoryId]===20&&(B[0]=15),[14,15].includes(B[0])?B:null}const hpa=F8(),ppa=[{name:"Liga MX",id:1},{name:"Liga MX Femenil",id:1001},{name:"Liga Expansión MX",id:1071}],fpa={nextGeneral:{namespaced:!0,state:{seasonId:0,pastSeasonId:0,usePastSeasonId:!1,isSocketConnected:!1,indexesLP:EJ(),indexesTSP:ipa(),indexesLS:cpa(),indexesTLP:upa(),nextGamesDataStructure:opa,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(r=>r.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=>e.gameForAnalysis.game_status===4&&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 spa.filter(r=>r.parentAnalysis.includes(e.selectedAnalysis.id))},homeTeamFilteredPlays(e){if(e.homeTeamFilter.requiresPlaysFiltering)return SJ(e.homeTeamPlays,e.homeTeamFilter.playingAs,e.homeTeamFilter.matchResult,e.homeTeamFilter.sections,e.indexesTSP)},visitingTeamFilteredPlays(e){if(e.visitingTeamFilter.requiresPlaysFiltering)return SJ(e.visitingTeamPlays,e.visitingTeamFilter.playingAs,e.visitingTeamFilter.matchResult,e.visitingTeamFilter.sections,e.indexesTSP)},currentSeasonTeamsIds(e){return e.currentSeasonTeams.map(r=>r.team_id)},canFilledStructure(e){return e.homeTeamFilter.requiresPlaysFiltering||e.visitingTeamFilter.requiresPlaysFiltering},totalFilteredHomeGames(e){return e.homeGames.filter(r=>e.homeTeamFilter.playingAs.includes(r[0])).filter(r=>e.homeTeamFilter.matchResult.includes(r[1])).reduce((r,i)=>r+i[2],0)},totalFilteredVisitingGames(e){return e.visitingGames.filter(r=>e.visitingTeamFilter.playingAs.includes(r[0])).filter(r=>e.visitingTeamFilter.matchResult.includes(r[1])).reduce((r,i)=>r+i[2],0)},filledDataStructure(e,r){if(e.currentSeasonPlays)for(const i of Object.values(e.nextGamesDataStructure))for(const B of Object.values(i.subcategories))e.homeTeamFilter.requiresPlaysFiltering&&B.homeTeam.resetTotals(),e.visitingTeamFilter.requiresPlaysFiltering&&B.visitingTeam.resetTotals(),B.addLeaguePlays(e.currentSeasonPlays,e.indexesLP,e.totalSeasonFinishedGames),B.addTeamPlays(B.homeTeamType,e.gameForAnalysis.home_team,r.homeTeamFilteredPlays,e.indexesTSP,e.showPostMatch?1:r.totalFilteredHomeGames),B.addTeamPlays(B.visitingTeamType,e.gameForAnalysis.visiting_team,r.visitingTeamFilteredPlays,e.indexesTSP,e.showPostMatch?1:r.totalFilteredVisitingGames);return e.nextGamesDataStructure},arrayFilledDataSortedByPriority(e,r){return Object.values(r.filledDataStructure).sort((i,B)=>i.priority-B.priority)},statisticData(e,r){for(const i of Object.values(r.filledDataStructure))if(i.parentInfo.parentAnalysis.includes(e.selectedAnalysis.id)&&i.parentInfo.analysisTypeBlocks.includes(e.selectedStatisticTypeBlock))return i.subcategories;return{}},accomplished(e){return e.homeTeamFilter.statistics===0}},mutations:{updateGameForAnalysisByProps(e,r){for(const[i,B]of Object.entries(r))e.gameForAnalysis[i]=B},setCurrentTournamentName(e,r){e.currentTournamentName=r},setBetSubcategoriesObjects(e,r){e.betSubcategoriesObjects=r},setRegularSeasonName(e,r){e.regularSeasonName=r},setBetSubcategories(e,r){e.betSubcategories=r},setBetDescription(e,r){e.betDescription=r},setSeasonId(e,r){e.seasonId=Number(r)},setHome(e,r){e.homeTeamInfo=r},setAway(e,r){e.awayTeamInfo=r},setMenuOptionActive(e,r){e.menuOptionActive=r},setPastSeasonId(e,r){e.pastSeasonId=r},setUsePastSeasonId(e,r){e.usePastSeasonId=r,r&&(e.oldSeasonId=e.pastSeasonId)},updateShowPostMatchData(e,r){e.showPostMatch=r},setHomeResultGame(e,r){e.homeResultGame=r},setAwayResultGame(e,r){e.awayResultGame=r},updateIsSocketConnected(e,r){e.isSocketConnected=r,r&&e.gameForAnalysis.is_live&&e.gameForAnalysis.game_status===4&&XP(`game.${e.gameForAnalysis.game_id}.v2`)},updateCurrentSeasonTeams(e,r){e.currentSeasonTeams=r,e.currentSeasonTeams.forEach(i=>{i.playedGames=e.currentSeasonGames.reduce((B,D)=>{if(D.game_status===1&&(D.home_team===i.team_id||D.visiting_team===i.team_id)){const c=D.score[0]-D.score[1],m=D.home_team===i.team_id;B.push({playingAs:m?1:2,matchResult:c===0?3:m?c>0?1:2:c<0?1:2})}return B},[])})},updateCurrentSeasonGames(e,r){e.currentSeasonGames=r},updateGameId(e,r){e.gameId=r},updateGameForAnalysis(e,r){e.gameForAnalysis=r,e.isLive=!!r.is_live,e.homeTeamFilter.teamId=e.gameForAnalysis.home_team,e.visitingTeamFilter.teamId=e.gameForAnalysis.visiting_team},updateSelectedAnalysis(e,r){e.selectedAnalysis=r},updateShowLiveData(e,r){e.showLiveData=r},toggleAdvanceFilter(e){e.showAdvanceFilter=!e.showAdvanceFilter},updateIdAssetSelected(e,r){e.idAssetSelected=r},updateStats(e,r){e.currentSeasonPlays=r},updateFilterAux(e){e.filterAux||(e.filterAux={homeTeamFilter:{...e.homeTeamFilter},visitingTeamFilter:{...e.visitingTeamFilter}})},updateFilters(e,{filters:r,needsFormat:i=!1}){if(i){if(!r||!r.local||!r.local.statistics||!r.visit||!r.visit.statistics)return;e.homeTeamFilter=eB(e.homeTeamFilter,r.local,e.gameForAnalysis.home_team),e.visitingTeamFilter=eB(e.visitingTeamFilter,r.visit,e.gameForAnalysis.visiting_team),e.selectedStatisticTypeBlock!==r.local.statistics.block&&(e.selectedStatisticTypeBlock=r.local.statistics.block)}else e.homeTeamFilter={...r.homeTeamFilter,statistics:0},e.visitingTeamFilter={...r.visitingTeamFilter,statistics:0}},updateFinishedGames(e,r){e.totalSeasonFinishedGames=r},updateHomeTeamPlays(e,r){e.homeTeamPlays=r},updateVisitingTeamPlays(e,r){e.visitingTeamPlays=r},addSpecialMentions(e,r){const i=Object.values(e.nextGamesDataStructure);i.forEach(B=>{for(const D of Object.values(B.subcategories))D.resetMentions()}),i.forEach(B=>{for(const D of r)for(const c of Object.values(B.subcategories))c.addSpecialMention(D[0],D[1],D[2])})},setDefaultFilter(e,r){e.defaultFilter={homeTeamFilter:{...r.homeTeamFilter,teamId:e.gameForAnalysis.home_team},visitingTeamFilter:{...r.awayTeamFilter,teamId:e.gameForAnalysis.visiting_team}}},addLiveGamePlay(e,r){if(!e.livePlays.has(r[e.indexesTLP.playId])){e.livePlays.set(r[e.indexesTLP.playId],r);const B=w6(r,e.indexesTLP,e.categoriesMap);for(const D of Object.values(e.nextGamesDataStructure))for(const c of Object.values(D.subcategories))c.addLivePlay(e.gameForAnalysis.home_team===B[e.indexesTSP.teamId]?"homeTeam":"visitingTeam",B[e.indexesTSP.teamId],B,e.indexesTSP,e.isLive,!1)}},updateLiveGamePlay(e,r){const i=!!r[e.indexesTLP.length],B=e.livePlays.get(r[e.indexesTLP.playId]);if(nse(B,r))return;let D="";const c=e.gameForAnalysis.home_team===r[e.indexesTLP.teamId]?"homeTeam":"visitingTeam";B&&(D=e.gameForAnalysis.home_team===B[e.indexesTLP.teamId]?"homeTeam":"visitingTeam");const m=w6(B,e.indexesTLP,e.categoriesMap),a=DM(B,m,e.indexesTLP),y=w6(r,e.indexesTLP,e.categoriesMap),f=DM(r,y,e.indexesTLP);for(const n of Object.values(e.nextGamesDataStructure))for(const v of Object.values(n.subcategories))B&&(v.subtractLivePlay(D,m[e.indexesTSP.teamId],m,e.indexesTSP,i),a&&v.subtractLivePlay(D,a[e.indexesTSP.teamId],a,e.indexesTSP,i)),v.addLivePlay(c,y[e.indexesTSP.teamId],y,e.indexesTSP,e.isLive,i),f&&v.addLivePlay(c,f[e.indexesTSP.teamId],f,e.indexesTSP,e.isLive,i);e.livePlays.set(r[e.indexesTLP.playId],r)},deleteLiveGamePlay(e,r){const i=!!r[e.indexesTLP.length],B=e.livePlays.get(r[e.indexesTLP.playId]);let D="";if(B){D=e.gameForAnalysis.home_team===B[e.indexesTLP.teamId]?"homeTeam":"visitingTeam",e.livePlays.delete(B[e.indexesTLP.playId]);const c=w6(B,e.indexesTLP,e.categoriesMap),m=DM(r,c,e.indexesTLP);for(const a of Object.values(e.nextGamesDataStructure))for(const y of Object.values(a.subcategories))y.subtractLivePlay(D,c[e.indexesTSP.teamId],c,e.indexesTSP,i),m&&y.subtractLivePlay(D,m[e.indexesTSP.teamId],m,e.indexesTSP,i)}},clearLiveTotals(e){for(const r of Object.values(e.nextGamesDataStructure))for(const i of Object.values(r.subcategories))i.homeTeam.resetTotalsLive(),i.visitingTeam.resetTotalsLive()},updateSeasonStatistics(e,r){e.statistics=r},updateOldSeasonId(e,r){e.oldSeasonId=r},addRankingInSubcategories(e,{getters:r,isPremiumAccount:i}){if(!(e.homeTeamFilter.teamId&&e.visitingTeamFilter.teamId))return;e.isRankingCalculating=!1,e.currentSeasonTeams.forEach(c=>{c.homeTeamFilterGames=c.playedGames.filter(m=>e.homeTeamFilter.playingAs.includes(m.playingAs)&&e.homeTeamFilter.matchResult.includes(m.matchResult)).length,c.visitingTeamFilterGames=c.playedGames.filter(m=>e.visitingTeamFilter.playingAs.includes(m.playingAs)&&e.visitingTeamFilter.matchResult.includes(m.matchResult)).length});const B=[],D=new Map;for(const c of Object.values(e.nextGamesDataStructure))for(const m of Object.values(c.subcategories))B.push(m);r.rankingData.forEach(c=>{for(const m of B)if(m.isInGeneralCategory(c[e.indexesLS.categoryId])){D.has(m.id)?D.get(m.id).push(c):D.set(m.id,[c]);break}})},prepareCleanAllStatistics(e){e.homeTeamFilter.requiresPlaysFiltering=!0,e.visitingTeamFilter.requiresPlaysFiltering=!0},setHomeGames(e,r){e.homeGames=MJ(r)},setVisitingGames(e,r){e.visitingGames=MJ(r)},generateCategoriesMap(e){for(const r of Object.values(e.nextGamesDataStructure))for(const i of Object.values(r.subcategories))i.accomplishedCategoryIds.forEach(B=>{const D=e.categoriesMap.get(B);D?D.push(i.generalCategoriesIds.accomplished):e.categoriesMap.set(B,[i.generalCategoriesIds.accomplished])})},resetNextGamesDataStructure(e){for(const r of Object.values(e.nextGamesDataStructure))for(const i of Object.values(r.subcategories))i.resetData()}},actions:{turnOnOffDefaultFilters({state:e,commit:r},{command:i}){i==="on"?r("updateFilters",{filters:e.defaultFilter,needsFormat:!1}):r("updateFilters",{filters:e.filterAux,needsFormat:!1})},async setAndGetStatsPostMatch({commit:e},r){try{const m=await tpa({gameId:r.gameId});if(m){var i=[],B=[],D={season:0,total:0,visit:{total:0,draw:0,win:0,lose:0},played:0,local:{total:0,draw:0,win:0,lose:0}},c={season:0,total:0,visit:{total:0,draw:0,win:0,lose:0},played:0,local:{total:0,draw:0,win:0,lose:0}};Object.keys(m.data).length!==0&&(i=m.data.data.filter(a=>a[1]==r.homeTeam),B=m.data.data.filter(a=>a[1]==r.awayTeam),D=m.data.games,c=m.data.games),e("updateHomeTeamPlays",i),e("updateVisitingTeamPlays",B),e("setHomeGames",D),e("setVisitingGames",c)}else e("updateHomeTeamPlays",[]),e("updateVisitingTeamPlays",[])}catch(m){return Promise.reject(m)}},async fillStatisticDataPostMatch({commit:e,dispatch:r},i){e("prepareCleanAllStatistics"),e("updateHomeTeamPlays",[]),e("updateVisitingTeamPlays",[]),e("setIsSectionLoading",!0,{root:!0});try{let B=[];e("updateGameForAnalysis",i.gameInfo),B.push(r("setAndGetStatsPostMatch",{gameId:i.game,homeTeam:i.homeTeam,awayTeam:i.awayTeam})),await Promise.all(B)}catch(B){throw new Error(B)}finally{e("setIsSectionLoading",!1,{root:!0})}},async checkState({state:e,dispatch:r,commit:i},{gameId:B,isTeamsAnalysis:D,currentSeasonId:c,isLoginChanged:m=!1,defaultFilter:a=null,gameInfo:y=null,isCupGame:f=!1}){try{let n={},v=e.seasonId!==Number(c);const _=[];i("setIsSectionLoading",!0,{root:!0}),i("setUsePastSeasonId",!1),v&&i("setSeasonId",c),i("updateGameId",Number(B)),e.oldSeasonId!==e.seasonId&&i("resetNextGamesDataStructure");const p=await r("getCurrentSeasonGames",Number(B));if(i("leagueGeneral/updateCurrentSeasonGames",p,{root:!0}),n=p.find(l=>l.game_id===Number(B)),!n&&y&&(n=y),n&&i("updateGameForAnalysis",n),n.game_status!==1&&((m||e.categoriesMap.size===0)&&i("generateCategoriesMap"),f||await r("checkTeamsData",{gameId:B,isFromBet:!!a}),(m||e.oldSeasonId!==e.seasonId||e.statistics.length===0)&&_.push(r("getSeasonStatistics"))),e.usePastSeasonId){const l=await r("getCurrentSeasonGamesLast");i("leagueGeneral/updateCurrentSeasonGames",l,{root:!0})}(m||e.currentSeasonTeams.length===0||!e.currentSeasonTeams.find(l=>n.home_team===l.team_id))&&_.push(r("getCurrentSeasonTeams")),i("setHomeResultGame",n.score[0]),i("setAwayResultGame",n.score[1]),D?n.game_status!==1?(await r("fillStatisticData",{gameId:B,gameinfo:n,promises:_,defaultFilter:a}),i("updateShowPostMatchData",!1)):(i("updateStats",[]),i("updateShowPostMatchData",!0),_.push(r("fillStatisticDataPostMatch",{game:B,homeTeam:n.home_team,awayTeam:n.visiting_team,gameInfo:n})),await Promise.all(_)):i("setIsSectionLoading",!1,{root:!0})}catch(n){return Promise.reject(n)}},async fillStatisticData({commit:e,dispatch:r,getters:i,rootGetters:B,state:D},{gameId:c,gameinfo:m,promises:a=[],defaultFilter:y=null}){let f=null;try{e("setIsSectionLoading",!0,{root:!0}),e("prepareCleanAllStatistics"),e("updateHomeTeamPlays",[]),e("updateVisitingTeamPlays",[]),e("updateGameForAnalysis",m),(m.is_live||m.game_status===0)&&a.push(r("getCurrentLiveGamePlays",c)),a.push(r("getSpecialMentionsByGame",c)),a.push(r("getHomeTeamPlays")),a.push(r("getVisitingTeamPlays")),a.push(r("getCurrentSeasonPlays")),y&&a.push(npa(y)),f=await Promise.all(a)}catch(n){throw new Error(n)}finally{setTimeout(()=>{if(e("addRankingInSubcategories",{getters:i,isPremiumAccount:B["loginGeneral/getPremiumAccount"]}),y){const[n]=f.pop();n&&(e("setBetSubcategories",n.categories),e("setBetDescription",n.sectionDescription),e("setDefaultFilter",n.params),e("updateFilterAux"),e("updateFilters",{filters:D.defaultFilter,needsFormat:!1}),r("updateRankingInSubcategories"))}},100),e("setIsSectionLoading",!1,{root:!0})}},async checkTeamsData({state:e,dispatch:r,rootState:i,commit:B},{gameId:D,isFromBet:c}){try{B("setUsePastSeasonId",!1)}catch(m){throw new Error(m)}},async getSpecialMentionsByGame({commit:e},r){try{const i=await Jha({gameId:r});e("addSpecialMentions",i)}catch(i){return Promise.reject(i)}},async getCurrentSeasonGames({commit:e,state:r},i){try{const{teams:B,games:D,past_season_id:c,tournament_id:m}=await Xha({seasonId:r.usePastSeasonId?r.pastSeasonId:r.seasonId,gameId:i}),a=ppa.find(y=>y.id===m);return a&&e("setCurrentTournamentName",a.name),e("setHome",B[0]),e("setAway",B[1]),r.usePastSeasonId||e("setPastSeasonId",c),await e("updateCurrentSeasonGames",D),D&&Array.isArray(D)&&e("updateFinishedGames",D.reduce((y,f)=>(f.game_status===1&&(y+=1),y),0)),D}catch(B){return Promise.reject(B)}},async getCurrentSeasonGamesLast({commit:e,state:r}){try{const{games:i,past_season_id:B}=await TJ({seasonId:r.usePastSeasonId?r.pastSeasonId:r.seasonId});return r.usePastSeasonId||e("setPastSeasonId",B),await e("updateCurrentSeasonGames",i),i&&Array.isArray(i)&&e("updateFinishedGames",i.reduce((D,c)=>(c.game_status===1&&(D+=1),D),0)),i}catch(i){return Promise.reject(i)}},async getCurrentSeasonTeams({commit:e,state:r}){try{const i=await epa({seasonId:r.usePastSeasonId?r.pastSeasonId:r.seasonId});e("updateCurrentSeasonTeams",i.data.teams)}catch{}},async getSeasonStatistics({commit:e,state:r}){try{const i=r.usePastSeasonId?r.pastSeasonId:r.seasonId,B=await qha({seasonId:i});e("updateSeasonStatistics",B),e("updateOldSeasonId",i)}catch(i){return Promise.reject(i)}},updateRankingInSubcategories({state:e,commit:r,getters:i,rootGetters:B}){e.currentSeasonGames.length>0&&r("addRankingInSubcategories",{getters:i,isPremiumAccount:B["loginGeneral/getPremiumAccount"]})},async getHomeTeamPlays({commit:e,state:r}){try{const i=await AJ({seasonId:r.usePastSeasonId?r.pastSeasonId:r.seasonId,teamId:r.gameForAnalysis.home_team});i.data&&(e("updateHomeTeamPlays",i.data.data),e("setHomeGames",i.data.games))}catch(i){return Promise.reject(i)}},async getVisitingTeamPlays({commit:e,state:r}){try{const i=await AJ({seasonId:r.usePastSeasonId?r.pastSeasonId:r.seasonId,teamId:r.gameForAnalysis.visiting_team});i.data&&(e("updateVisitingTeamPlays",i.data.data),e("setVisitingGames",i.data.games))}catch(i){return Promise.reject(i)}},async getCurrentSeasonPlays({commit:e,state:r}){try{const i=await Wha({seasonId:r.usePastSeasonId?r.pastSeasonId:r.seasonId});e("updateStats",i)}catch(i){return Promise.reject(new Error(i))}},async getCurrentLiveGamePlays({state:e,commit:r},i){try{const B=await Zha({gameId:i});e.livePlays=new Map,B.forEach(D=>{e.gameForAnalysis.game_id===D[e.indexesTLP.gameId]&&(e.gameForAnalysis.home_team===D[e.indexesTLP.teamId]||e.gameForAnalysis.visiting_team===D[e.indexesTLP.teamId])&&r("addLiveGamePlay",D)})}catch(B){throw new Error(B)}},socket_new({state:e,commit:r},i){const B=i[1];(e.gameForAnalysis.home_team===B[e.indexesTLP.teamId]||e.gameForAnalysis.visiting_team===B[e.indexesTLP.teamId])&&r("addLiveGamePlay",B)},socket_update({state:e,commit:r},i){const B=i[1];e.gameForAnalysis.game_id===B[e.indexesTLP.gameId]&&(e.gameForAnalysis.home_team===B[e.indexesTLP.teamId]||e.gameForAnalysis.visitingTeam===B[e.indexesTLP.teamId])&&r("updateLiveGamePlay",B)},socket_delete({state:e,commit:r},i){const B=i[1];e.gameForAnalysis.game_id===B[e.indexesTLP.gameId]&&(e.gameForAnalysis.home_team===B[e.indexesTLP.teamId]||e.gameForAnalysis.visiting_team===B[e.indexesTLP.teamId])&&r("deleteLiveGamePlay",B)},exitChannel({state:e,getters:r,rootState:i,rootGetters:B,commit:D}){const c=B["loginGeneral/getPremiumAccount"];r.isLive&&c&&(D("updateShowLiveData",!0),D("clearLiveTotals"),e.livePlays.clear(),hpa.emit("unsubscribe",{channel:`game.${e.gameForAnalysis.game_id}.v2`}))},cleanStats({state:e}){for(const i of Object.values(e.nextGamesDataStructure))for(const B of Object.values(i.subcategories))B.homeTeam.resetTotals(),B.visitingTeam.resetTotals(),B.homeTeam.resetTotalsLive(),B.visitingTeam.resetTotalsLive(),B.isBetMainSubcategory=!1;Object.values(e.nextGamesDataStructure).forEach(i=>{for(const B of Object.values(i.subcategories))B.resetMentions()}),e.currentSeasonPlays=null,e.homeTeamPlays=[],e.visitingTeamPlays=[],e.homeTeamFilter.requiresPlaysFiltering=!0,e.visitingTeamFilter.requiresPlaysFiltering=!0,e.isRankingCalculating=!0},cleanAllStats({state:e}){for(const i of Object.values(e.nextGamesDataStructure))for(const B of Object.values(i.subcategories))B.homeTeam.resetTotals(),B.visitingTeam.resetTotals(),B.isBetMainSubcategory=!1;Object.values(e.nextGamesDataStructure).forEach(i=>{for(const B of Object.values(i.subcategories))B.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}}}};async function mpa(){try{const{data:e}=await Uu({url:"https://kefloixzy1.execute-api.us-west-2.amazonaws.com/prod/tournaments"});return e}catch(e){throw new Error(e)}}const gpa={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,r){e.booleanIsStatisticModalOpen=r},setTournamentType(e,r){e.tournamentType=r},setSectionRef(e,r){e.sectionRef=r},setSectionAnalytics(e,r){e.sectionAnalytics=r},setSeccionBetsGolTipster(e,r){e.seccionBetsGolTipster=r},setPreviewSectionAnalytics(e,r){e.previewSectionAnalytics=r},setVideoSrc(e,r){e.videoSrc=r},setVideoModalVisibility(e,r){e.isVideoModalVisible=r},setSelectedTournament(e,r){e.selectedTournament=r},setTournaments(e,r){e.tournaments=r.map(i=>({...i.tournament,seasons:i.seasons})),e.tournamentSelected=e.tournaments[0]},setTournamentSelected(e,r){e.tournamentSelected=r}},actions:{async fetchTournaments({state:e,commit:r}){try{if(e.tournaments.length===0){const i=await mpa();r("setTournaments",i)}}catch(i){throw new Error(i)}}}}};async function ypa({seasonId:e,localTeamId:r,visitingTeamId:i}){try{const B=`https://bzznnzehtf.execute-api.us-west-2.amazonaws.com/prod/xg/seasons/${e}/teams/${r}/${i}`;return(await Uu({url:B})).data}catch(B){return Promise.reject(B)}}async function vpa({seasonId:e,localTeamId:r,visitingTeamId:i}){try{const B=`https://bzznnzehtf.execute-api.us-west-2.amazonaws.com/prod/xg/game/${e}/teams/${r}/${i}`;return(await Uu({url:B})).data}catch(B){return Promise.reject(B)}}const IJ=(e,r)=>{let i={};return e.forEach((B,D)=>{D==3&&(r[0]==35||r[0]==54)&&(r[D]==2?r[D]=1:r[D]=2),D==2&&(r[0]==35||r[0]==54)&&(r[D]==1?r[D]=2:r[D]==2&&(r[D]=1)),i[B]=r[D]}),i},PJ=(e,r)=>e.filter(B=>{const D=r.playingAs.includes(B.playing_as),c=r.matchResult.includes(B.match_result),m=r.sections.includes(B.section);return D&&c&&m}),BJ=[{name:"Goles",color:"#4A90E2",points:[1,2,3],categories:[12,55,35,54],invert:[35,54],negative:!1},{name:"Tiros a gol",color:"#FF8000",points:[1,2,3],categories:[12,55,35,54,510]}];(function(){function e(r,i,B){return typeof B>"u"||+B==0?Math[r](i):(i=+i,B=+B,isNaN(i)||!(typeof B=="number"&&B%1===0)?NaN:(i=i.toString().split("e"),i=Math[r](+(i[0]+"e"+(i[1]?+i[1]-B:-B))),i=i.toString().split("e"),+(i[0]+"e"+(i[1]?+i[1]+B:B))))}Math.ceil10||(Math.ceil10=function(r,i){return e("ceil",r,i)})})();function NJ(e,r){let i=r*-1;return Math.ceil10(e,i)}const _pa={...gpa,...apa,...fpa,...{xgGeneral:{namespaced:!0,state:{teamSelected:"Local",xGLocalPlays:[],xGVisitingPlays:[]},getters:{playsLocal:(e,r,i)=>{const B=e.xGLocalPlays,D="homeTeamFilter",c=i.nextGeneral[D];return PJ(B,c)||[]},playsAway:(e,r,i)=>{const B=e.xGVisitingPlays,D="visitingTeamFilter",c=i.nextGeneral[D];return PJ(B,c)},goalsQtyLocal:(e,r)=>{const i=BJ.find(B=>B.name==="Goles");return r.playsLocal.filter(B=>i.categories.includes(B.category_id)).length},goalsQtyAway:(e,r)=>{const i=BJ.find(B=>B.name==="Goles");return r.playsAway.filter(B=>i.categories.includes(B.category_id)).length},shotsOnGoalQtyLocal:(e,r)=>r.playsLocal.filter(i=>i.category_id===510).length,shotsOnGoalQtyAway:(e,r)=>r.playsAway.filter(i=>i.category_id===510).length,xGLocal:(e,r)=>{const i=new Set;let B=r.playsLocal.reduce((D,c)=>(i.has(c.moment_of_play)||(i.add(c.moment_of_play),D+=c.xG2),D),0);return NJ(B,2)},xGAway:(e,r)=>{const i=new Set;let B=r.playsAway.reduce((D,c)=>(i.has(c.moment_of_play)||(i.add(c.moment_of_play),D+=c.xG2),D),0);return NJ(B,2)}},mutations:{setTeamSelected(e,r){e.teamSelected=r},setPlays(e,r){e.xGLocalPlays=r.local_team.map(i=>IJ(r.data_headers,i)),e.xGVisitingPlays=r.visiting_team.map(i=>IJ(r.data_headers,i))},cleanXgStore(e){e.localStorage="Local",e.xGLocalPlays=[],e.xGVisitingPlays=[]}},actions:{async getXgPlays({commit:e},{seasonId:r,localTeamId:i,visitingTeamId:B,postMatch:D=!1}){try{let c={};D?c=await vpa({seasonId:r,localTeamId:i,visitingTeamId:B}):c=await ypa({seasonId:r,localTeamId:i,visitingTeamId:B}),e("setPlays",c)}catch(c){return Promise.reject(c)}}}}}};function bpa(e){for(const[r,i]of Object.entries(_pa))e.hasModule(r)||e.registerModule(r,i)}const xpa={class:"subcategory-group"},wpa={__name:"SubcategoryGroup",props:{subcategoryGroup:{type:Array,default:()=>[]}},setup(e){return(r,i)=>(t.openBlock(),t.createElementBlock("div",xpa,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.subcategoryGroup,B=>(t.openBlock(),t.createBlock(t.unref(Is),{key:B.id,modelValue:B.isSelected,"onUpdate:modelValue":D=>B.isSelected=D,label:B.name},null,8,["modelValue","onUpdate:modelValue","label"]))),128))]))}},kpa=ml(wpa,[["__scopeId","data-v-ae6f3d72"]]),Cpa={class:"filter-subcategories"},Spa=Object.freeze(Object.defineProperty({__proto__:null,default:ml({__name:"FilterSubcategories",props:{subcategoryGroups:{type:Array,default:()=>[]}},setup(e){return(r,i)=>(t.openBlock(),t.createElementBlock("div",Cpa,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.subcategoryGroups,B=>(t.openBlock(),t.createElementBlock("div",{key:B.id,class:"filter-subcategories__group"},[t.createVNode(kpa,{subcategoryGroup:B},null,8,["subcategoryGroup"])]))),128))]))}},[["__scopeId","data-v-5edaefc2"]])},Symbol.toStringTag,{value:"Module"})),k6=e=>(t.pushScopeId("data-v-80d9c265"),e=e(),t.popScopeId(),e),Tpa={class:"details__header"},Epa=k6(()=>t.createElementVNode("div",{class:"details__header__title"},"Jugando como",-1)),Apa={class:"details__header__checkbox"},Mpa={class:"details__body"},Ipa={class:"details__body__playing-as"},Ppa=["onClick"],Bpa={class:"details__header"},Npa=k6(()=>t.createElementVNode("div",{class:"details__header__title"},"En: (Elige el lapso de tiempo)",-1)),zpa={class:"details__header__checkbox"},Opa={class:"details__body"},Fpa=k6(()=>t.createElementVNode("div",{class:"details__body__title"},"1er tiempo",-1)),Lpa={class:"details__body__game-section"},Dpa=["onClick"],Rpa={class:"details__body"},Vpa=k6(()=>t.createElementVNode("div",{class:"details__body__title"},"2do tiempo",-1)),$pa={class:"details__body__game-section"},jpa=["onClick"],Upa=Object.freeze(Object.defineProperty({__proto__:null,default:ml({__name:"FilterConditions",props:{playingAs:{type:Array,default:()=>[{name:"Local",isSelected:!0},{name:"Visitante",isSelected:!0}]},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 r=e;t.useCssVars(n=>({"49cba245":e.buttonsBackgroundColor,"52f02da6":e.buttonsTextColor,"7d3f686a":e.buttonsBorderWidth,"7c286a07":e.buttonsBorderColor,"24a6f4aa":e.buttonsBackgroundColorActive,cd8d7768:e.buttonsTextColorActive,"35fa5c10":e.buttonsBorderWidthActive,"0cde1826":e.buttonsBorderColorActive}));const i=t.computed(()=>r.playingAs.every(n=>n.isSelected)),B=t.computed(()=>r.gameSections.every(n=>n.isSelected)),D=t.computed(()=>r.gameSections.reduce((n,v)=>(v.value<=3?n.firstHalf.push(v):n.secondHalf.push(v),n),{firstHalf:[],secondHalf:[]})),c=t.computed(()=>({"--border-radius-first-button":`${r.buttonsBorderRadius} 0 0 ${r.buttonsBorderRadius}`,"--border-radius-last-button":`0 ${r.buttonsBorderRadius} ${r.buttonsBorderRadius} 0`}));function m(n){n?r.playingAs.forEach(v=>{v.isSelected=!0}):r.playingAs.forEach((v,_)=>{v.isSelected=_===0})}function a(n){r.playingAs.filter(v=>v.isSelected).length===1&&n.isSelected||(n.isSelected=!n.isSelected)}function y(n){r.gameSections.filter(v=>v.isSelected).length===1&&n.isSelected||(n.isSelected=!n.isSelected)}function f(n){n?r.gameSections.forEach(v=>{v.isSelected=!0}):r.gameSections.forEach((v,_)=>{v.isSelected=_===0})}return(n,v)=>(t.openBlock(),t.createElementBlock("div",{class:"details",style:t.normalizeStyle(c.value)},[t.createElementVNode("div",Tpa,[Epa,t.createElementVNode("div",Apa,[t.createVNode(t.unref(Is),{label:"Todos","model-value":i.value,"onUpdate:modelValue":m},null,8,["model-value"])])]),t.createElementVNode("div",Mpa,[t.createElementVNode("div",Ipa,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r.playingAs,(_,p)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${p}`,class:t.normalizeClass(["details__body__button",{active:_.isSelected}]),onClick:l=>a(_)},t.toDisplayString(_.name),11,Ppa))),128))])]),t.createElementVNode("div",Bpa,[Npa,t.createElementVNode("div",zpa,[t.createVNode(t.unref(Is),{label:"Todos","model-value":B.value,"onUpdate:modelValue":f},null,8,["model-value"])])]),t.createElementVNode("div",Opa,[Fpa,t.createElementVNode("div",Lpa,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(D.value.firstHalf,(_,p)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${p}`,class:t.normalizeClass(["details__body__button",{active:_.isSelected}]),onClick:l=>y(_)},t.toDisplayString(_.text),11,Dpa))),128))])]),t.createElementVNode("div",Rpa,[Vpa,t.createElementVNode("div",$pa,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(D.value.secondHalf,(_,p)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${p}`,class:t.normalizeClass(["details__body__button",{active:_.isSelected}]),onClick:l=>y(_)},t.toDisplayString(_.text),11,jpa))),128))])])],4))}},[["__scopeId","data-v-80d9c265"]])},Symbol.toStringTag,{value:"Module"})),Gpa={class:"filter-field"},Hpa=Object.freeze(Object.defineProperty({__proto__:null,default:ml({__name:"FilterField",setup(e){const r=t.ref(Array.from({length:16},(B,D)=>D+1));function i(){}return(B,D)=>(t.openBlock(),t.createElementBlock("div",Gpa,[t.createVNode(t.unref(nW),{width:"100%","background-color":"#2E3B46",value:r.value,"onUpdate:modelValue":i},null,8,["value"])]))}},[["__scopeId","data-v-8103c3e1"]])},Symbol.toStringTag,{value:"Module"})),Wpa={class:"subcategory-group"},qpa={__name:"SubcategoryGroup",props:{subcategoryGroup:{type:Array,default:()=>[]}},setup(e){return(r,i)=>(t.openBlock(),t.createElementBlock("div",Wpa,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.subcategoryGroup,B=>(t.openBlock(),t.createBlock(t.unref(Ps),{key:B.id,modelValue:B.isSelected,"onUpdate:modelValue":D=>B.isSelected=D,label:B.name},null,8,["modelValue","onUpdate:modelValue","label"]))),128))]))}},Ypa=yl(qpa,[["__scopeId","data-v-ae6f3d72"]]),Xpa={class:"filter-subcategories"},Zpa=Object.freeze(Object.defineProperty({__proto__:null,default:yl({__name:"FilterSubcategories",props:{subcategoryGroups:{type:Array,default:()=>[]}},setup(e){return(r,i)=>(t.openBlock(),t.createElementBlock("div",Xpa,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.subcategoryGroups,B=>(t.openBlock(),t.createElementBlock("div",{key:B.id,class:"filter-subcategories__group"},[t.createVNode(Ypa,{subcategoryGroup:B},null,8,["subcategoryGroup"])]))),128))]))}},[["__scopeId","data-v-5edaefc2"]])},Symbol.toStringTag,{value:"Module"})),C6=e=>(t.pushScopeId("data-v-80d9c265"),e=e(),t.popScopeId(),e),Jpa={class:"details__header"},Kpa=C6(()=>t.createElementVNode("div",{class:"details__header__title"},"Jugando como",-1)),Qpa={class:"details__header__checkbox"},efa={class:"details__body"},tfa={class:"details__body__playing-as"},afa=["onClick"],nfa={class:"details__header"},rfa=C6(()=>t.createElementVNode("div",{class:"details__header__title"},"En: (Elige el lapso de tiempo)",-1)),ifa={class:"details__header__checkbox"},ofa={class:"details__body"},sfa=C6(()=>t.createElementVNode("div",{class:"details__body__title"},"1er tiempo",-1)),lfa={class:"details__body__game-section"},cfa=["onClick"],dfa={class:"details__body"},ufa=C6(()=>t.createElementVNode("div",{class:"details__body__title"},"2do tiempo",-1)),hfa={class:"details__body__game-section"},pfa=["onClick"],ffa=Object.freeze(Object.defineProperty({__proto__:null,default:yl({__name:"FilterConditions",props:{playingAs:{type:Array,default:()=>[{name:"Local",isSelected:!0},{name:"Visitante",isSelected:!0}]},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 r=e;t.useCssVars(n=>({"49cba245":e.buttonsBackgroundColor,"52f02da6":e.buttonsTextColor,"7d3f686a":e.buttonsBorderWidth,"7c286a07":e.buttonsBorderColor,"24a6f4aa":e.buttonsBackgroundColorActive,cd8d7768:e.buttonsTextColorActive,"35fa5c10":e.buttonsBorderWidthActive,"0cde1826":e.buttonsBorderColorActive}));const i=t.computed(()=>r.playingAs.every(n=>n.isSelected)),B=t.computed(()=>r.gameSections.every(n=>n.isSelected)),D=t.computed(()=>r.gameSections.reduce((n,v)=>(v.value<=3?n.firstHalf.push(v):n.secondHalf.push(v),n),{firstHalf:[],secondHalf:[]})),c=t.computed(()=>({"--border-radius-first-button":`${r.buttonsBorderRadius} 0 0 ${r.buttonsBorderRadius}`,"--border-radius-last-button":`0 ${r.buttonsBorderRadius} ${r.buttonsBorderRadius} 0`}));function m(n){n?r.playingAs.forEach(v=>{v.isSelected=!0}):r.playingAs.forEach((v,_)=>{v.isSelected=_===0})}function a(n){r.playingAs.filter(v=>v.isSelected).length===1&&n.isSelected||(n.isSelected=!n.isSelected)}function y(n){r.gameSections.filter(v=>v.isSelected).length===1&&n.isSelected||(n.isSelected=!n.isSelected)}function f(n){n?r.gameSections.forEach(v=>{v.isSelected=!0}):r.gameSections.forEach((v,_)=>{v.isSelected=_===0})}return(n,v)=>(t.openBlock(),t.createElementBlock("div",{class:"details",style:t.normalizeStyle(c.value)},[t.createElementVNode("div",Jpa,[Kpa,t.createElementVNode("div",Qpa,[t.createVNode(t.unref(Ps),{label:"Todos","model-value":i.value,"onUpdate:modelValue":m},null,8,["model-value"])])]),t.createElementVNode("div",efa,[t.createElementVNode("div",tfa,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r.playingAs,(_,p)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${p}`,class:t.normalizeClass(["details__body__button",{active:_.isSelected}]),onClick:l=>a(_)},t.toDisplayString(_.name),11,afa))),128))])]),t.createElementVNode("div",nfa,[rfa,t.createElementVNode("div",ifa,[t.createVNode(t.unref(Ps),{label:"Todos","model-value":B.value,"onUpdate:modelValue":f},null,8,["model-value"])])]),t.createElementVNode("div",ofa,[sfa,t.createElementVNode("div",lfa,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(D.value.firstHalf,(_,p)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${p}`,class:t.normalizeClass(["details__body__button",{active:_.isSelected}]),onClick:l=>y(_)},t.toDisplayString(_.text),11,cfa))),128))])]),t.createElementVNode("div",dfa,[ufa,t.createElementVNode("div",hfa,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(D.value.secondHalf,(_,p)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${p}`,class:t.normalizeClass(["details__body__button",{active:_.isSelected}]),onClick:l=>y(_)},t.toDisplayString(_.text),11,pfa))),128))])])],4))}},[["__scopeId","data-v-80d9c265"]])},Symbol.toStringTag,{value:"Module"})),mfa={class:"filter-field"},gfa=Object.freeze(Object.defineProperty({__proto__:null,default:yl({__name:"FilterField",setup(e){const r=t.ref(Array.from({length:16},(B,D)=>D+1));function i(){}return(B,D)=>(t.openBlock(),t.createElementBlock("div",mfa,[t.createVNode(t.unref(XY),{width:"100%","background-color":"#2E3B46",value:r.value,"onUpdate:modelValue":i},null,8,["value"])]))}},[["__scopeId","data-v-8103c3e1"]])},Symbol.toStringTag,{value:"Module"}));yu.GSCGameData=Hha,yu.connectSocket=L8,yu.disconnectSocket=D8,yu.getSocket=F8,yu.registerStoreModules=bpa,Object.defineProperty(yu,Symbol.toStringTag,{value:"Module"})});
7627
+ */var qda="store";function F1(e,r){Object.keys(e).forEach(function(i){return r(e[i],i)})}function sJ(e){return e!==null&&typeof e=="object"}function Yda(e){return e&&typeof e.then=="function"}function hf(e,r){if(!e)throw new Error("[vuex] "+r)}function Xda(e,r){return function(){return e(r)}}function lJ(e,r,i){return r.indexOf(e)<0&&(i&&i.prepend?r.unshift(e):r.push(e)),function(){var B=r.indexOf(e);B>-1&&r.splice(B,1)}}function cJ(e,r){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var i=e.state;v6(e,i,[],e._modules.root,!0),AM(e,i,r)}function AM(e,r,i){var B=e._state;e.getters={},e._makeLocalGettersCache=Object.create(null);var D=e._wrappedGetters,c={};F1(D,function(m,a){c[a]=Xda(m,e),Object.defineProperty(e.getters,a,{get:function(){return c[a]()},enumerable:!0})}),e._state=t.reactive({data:r}),e.strict&&eua(e),B&&i&&e._withCommit(function(){B.data=null})}function v6(e,r,i,B,D){var c=!i.length,m=e._modules.getNamespace(i);if(B.namespaced&&(e._modulesNamespaceMap[m]&&process.env.NODE_ENV!=="production"&&console.error("[vuex] duplicate namespace "+m+" for the namespaced module "+i.join("/")),e._modulesNamespaceMap[m]=B),!c&&!D){var a=MM(r,i.slice(0,-1)),y=i[i.length-1];e._withCommit(function(){process.env.NODE_ENV!=="production"&&y in a&&console.warn('[vuex] state field "'+y+'" was overridden by a module with the same name at "'+i.join(".")+'"'),a[y]=B.state})}var f=B.context=Zda(e,m,i);B.forEachMutation(function(n,v){var _=m+v;Jda(e,_,n,f)}),B.forEachAction(function(n,v){var _=n.root?v:m+v,p=n.handler||n;Kda(e,_,p,f)}),B.forEachGetter(function(n,v){var _=m+v;Qda(e,_,n,f)}),B.forEachChild(function(n,v){v6(e,r,i.concat(v),n,D)})}function Zda(e,r,i){var B=r==="",D={dispatch:B?e.dispatch:function(c,m,a){var y=_6(c,m,a),f=y.payload,n=y.options,v=y.type;if((!n||!n.root)&&(v=r+v,process.env.NODE_ENV!=="production"&&!e._actions[v])){console.error("[vuex] unknown local action type: "+y.type+", global type: "+v);return}return e.dispatch(v,f)},commit:B?e.commit:function(c,m,a){var y=_6(c,m,a),f=y.payload,n=y.options,v=y.type;if((!n||!n.root)&&(v=r+v,process.env.NODE_ENV!=="production"&&!e._mutations[v])){console.error("[vuex] unknown local mutation type: "+y.type+", global type: "+v);return}e.commit(v,f,n)}};return Object.defineProperties(D,{getters:{get:B?function(){return e.getters}:function(){return dJ(e,r)}},state:{get:function(){return MM(e.state,i)}}}),D}function dJ(e,r){if(!e._makeLocalGettersCache[r]){var i={},B=r.length;Object.keys(e.getters).forEach(function(D){if(D.slice(0,B)===r){var c=D.slice(B);Object.defineProperty(i,c,{get:function(){return e.getters[D]},enumerable:!0})}}),e._makeLocalGettersCache[r]=i}return e._makeLocalGettersCache[r]}function Jda(e,r,i,B){var D=e._mutations[r]||(e._mutations[r]=[]);D.push(function(c){i.call(e,B.state,c)})}function Kda(e,r,i,B){var D=e._actions[r]||(e._actions[r]=[]);D.push(function(c){var m=i.call(e,{dispatch:B.dispatch,commit:B.commit,getters:B.getters,state:B.state,rootGetters:e.getters,rootState:e.state},c);return Yda(m)||(m=Promise.resolve(m)),e._devtoolHook?m.catch(function(a){throw e._devtoolHook.emit("vuex:error",a),a}):m})}function Qda(e,r,i,B){if(e._wrappedGetters[r]){process.env.NODE_ENV!=="production"&&console.error("[vuex] duplicate getter key: "+r);return}e._wrappedGetters[r]=function(D){return i(B.state,B.getters,D.state,D.getters)}}function eua(e){t.watch(function(){return e._state.data},function(){process.env.NODE_ENV!=="production"&&hf(e._committing,"do not mutate vuex store state outside mutation handlers.")},{deep:!0,flush:"sync"})}function MM(e,r){return r.reduce(function(i,B){return i[B]},e)}function _6(e,r,i){return sJ(e)&&e.type&&(i=r,r=e,e=e.type),process.env.NODE_ENV!=="production"&&hf(typeof e=="string","expects string as the type, but found "+typeof e+"."),{type:e,payload:r,options:i}}var tua="vuex bindings",uJ="vuex:mutations",IM="vuex:actions",lv="vuex",aua=0;function nua(e,r){Wda({id:"org.vuejs.vuex",app:e,label:"Vuex",homepage:"https://next.vuex.vuejs.org/",logo:"https://vuejs.org/images/icons/favicon-96x96.png",packageName:"vuex",componentStateTypes:[tua]},function(i){i.addTimelineLayer({id:uJ,label:"Vuex Mutations",color:hJ}),i.addTimelineLayer({id:IM,label:"Vuex Actions",color:hJ}),i.addInspector({id:lv,label:"Vuex",icon:"storage",treeFilterPlaceholder:"Filter stores..."}),i.on.getInspectorTree(function(B){if(B.app===e&&B.inspectorId===lv)if(B.filter){var D=[];gJ(D,r._modules.root,B.filter,""),B.rootNodes=D}else B.rootNodes=[mJ(r._modules.root,"")]}),i.on.getInspectorState(function(B){if(B.app===e&&B.inspectorId===lv){var D=B.nodeId;dJ(r,D),B.state=oua(lua(r._modules,D),D==="root"?r.getters:r._makeLocalGettersCache,D)}}),i.on.editInspectorState(function(B){if(B.app===e&&B.inspectorId===lv){var D=B.nodeId,c=B.path;D!=="root"&&(c=D.split("/").filter(Boolean).concat(c)),r._withCommit(function(){B.set(r._state.data,c,B.state.value)})}}),r.subscribe(function(B,D){var c={};B.payload&&(c.payload=B.payload),c.state=D,i.notifyComponentUpdate(),i.sendInspectorTree(lv),i.sendInspectorState(lv),i.addTimelineEvent({layerId:uJ,event:{time:Date.now(),title:B.type,data:c}})}),r.subscribeAction({before:function(B,D){var c={};B.payload&&(c.payload=B.payload),B._id=aua++,B._time=Date.now(),c.state=D,i.addTimelineEvent({layerId:IM,event:{time:B._time,title:B.type,groupId:B._id,subtitle:"start",data:c}})},after:function(B,D){var c={},m=Date.now()-B._time;c.duration={_custom:{type:"duration",display:m+"ms",tooltip:"Action duration",value:m}},B.payload&&(c.payload=B.payload),c.state=D,i.addTimelineEvent({layerId:IM,event:{time:Date.now(),title:B.type,groupId:B._id,subtitle:"end",data:c}})}})})}var hJ=8702998,rua=6710886,iua=16777215,pJ={label:"namespaced",textColor:iua,backgroundColor:rua};function fJ(e){return e&&e!=="root"?e.split("/").slice(-2,-1)[0]:"Root"}function mJ(e,r){return{id:r||"root",label:fJ(r),tags:e.namespaced?[pJ]:[],children:Object.keys(e._children).map(function(i){return mJ(e._children[i],r+i+"/")})}}function gJ(e,r,i,B){B.includes(i)&&e.push({id:B||"root",label:B.endsWith("/")?B.slice(0,B.length-1):B||"Root",tags:r.namespaced?[pJ]:[]}),Object.keys(r._children).forEach(function(D){gJ(e,r._children[D],i,B+D+"/")})}function oua(e,r,i){r=i==="root"?r:r[i];var B=Object.keys(r),D={state:Object.keys(e.state).map(function(m){return{key:m,editable:!0,value:e.state[m]}})};if(B.length){var c=sua(r);D.getters=Object.keys(c).map(function(m){return{key:m.endsWith("/")?fJ(m):m,editable:!1,value:PM(function(){return c[m]})}})}return D}function sua(e){var r={};return Object.keys(e).forEach(function(i){var B=i.split("/");if(B.length>1){var D=r,c=B.pop();B.forEach(function(m){D[m]||(D[m]={_custom:{value:{},display:m,tooltip:"Module",abstract:!0}}),D=D[m]._custom.value}),D[c]=PM(function(){return e[i]})}else r[i]=PM(function(){return e[i]})}),r}function lua(e,r){var i=r.split("/").filter(function(B){return B});return i.reduce(function(B,D,c){var m=B[D];if(!m)throw new Error('Missing module "'+D+'" for path "'+r+'".');return c===i.length-1?m:m._children},r==="root"?e:e.root._children)}function PM(e){try{return e()}catch(r){return r}}var pf=function(e,r){this.runtime=r,this._children=Object.create(null),this._rawModule=e;var i=e.state;this.state=(typeof i=="function"?i():i)||{}},yJ={namespaced:{configurable:!0}};yJ.namespaced.get=function(){return!!this._rawModule.namespaced},pf.prototype.addChild=function(e,r){this._children[e]=r},pf.prototype.removeChild=function(e){delete this._children[e]},pf.prototype.getChild=function(e){return this._children[e]},pf.prototype.hasChild=function(e){return e in this._children},pf.prototype.update=function(e){this._rawModule.namespaced=e.namespaced,e.actions&&(this._rawModule.actions=e.actions),e.mutations&&(this._rawModule.mutations=e.mutations),e.getters&&(this._rawModule.getters=e.getters)},pf.prototype.forEachChild=function(e){F1(this._children,e)},pf.prototype.forEachGetter=function(e){this._rawModule.getters&&F1(this._rawModule.getters,e)},pf.prototype.forEachAction=function(e){this._rawModule.actions&&F1(this._rawModule.actions,e)},pf.prototype.forEachMutation=function(e){this._rawModule.mutations&&F1(this._rawModule.mutations,e)},Object.defineProperties(pf.prototype,yJ);var L1=function(e){this.register([],e,!1)};L1.prototype.get=function(e){return e.reduce(function(r,i){return r.getChild(i)},this.root)},L1.prototype.getNamespace=function(e){var r=this.root;return e.reduce(function(i,B){return r=r.getChild(B),i+(r.namespaced?B+"/":"")},"")},L1.prototype.update=function(e){vJ([],this.root,e)},L1.prototype.register=function(e,r,i){var B=this;i===void 0&&(i=!0),process.env.NODE_ENV!=="production"&&xJ(e,r);var D=new pf(r,i);if(e.length===0)this.root=D;else{var c=this.get(e.slice(0,-1));c.addChild(e[e.length-1],D)}r.modules&&F1(r.modules,function(m,a){B.register(e.concat(a),m,i)})},L1.prototype.unregister=function(e){var r=this.get(e.slice(0,-1)),i=e[e.length-1],B=r.getChild(i);if(!B){process.env.NODE_ENV!=="production"&&console.warn("[vuex] trying to unregister module '"+i+"', which is not registered");return}B.runtime&&r.removeChild(i)},L1.prototype.isRegistered=function(e){var r=this.get(e.slice(0,-1)),i=e[e.length-1];return r?r.hasChild(i):!1};function vJ(e,r,i){if(process.env.NODE_ENV!=="production"&&xJ(e,i),r.update(i),i.modules)for(var B in i.modules){if(!r.getChild(B)){process.env.NODE_ENV!=="production"&&console.warn("[vuex] trying to add a new module '"+B+"' on hot reloading, manual reload is needed");return}vJ(e.concat(B),r.getChild(B),i.modules[B])}}var _J={assert:function(e){return typeof e=="function"},expected:"function"},cua={assert:function(e){return typeof e=="function"||typeof e=="object"&&typeof e.handler=="function"},expected:'function or object with "handler" function'},bJ={getters:_J,mutations:_J,actions:cua};function xJ(e,r){Object.keys(bJ).forEach(function(i){if(r[i]){var B=bJ[i];F1(r[i],function(D,c){hf(B.assert(D),dua(e,i,c,D,B.expected))})}})}function dua(e,r,i,B,D){var c=r+" should be "+D+' but "'+r+"."+i+'"';return e.length>0&&(c+=' in module "'+e.join(".")+'"'),c+=" is "+JSON.stringify(B)+".",c}var Bh=function e(r){var i=this;r===void 0&&(r={}),process.env.NODE_ENV!=="production"&&(hf(typeof Promise<"u","vuex requires a Promise polyfill in this browser."),hf(this instanceof e,"store must be called with the new operator."));var B=r.plugins;B===void 0&&(B=[]);var D=r.strict;D===void 0&&(D=!1);var c=r.devtools;this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new L1(r),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._makeLocalGettersCache=Object.create(null),this._devtools=c;var m=this,a=this,y=a.dispatch,f=a.commit;this.dispatch=function(v,_){return y.call(m,v,_)},this.commit=function(v,_,p){return f.call(m,v,_,p)},this.strict=D;var n=this._modules.root.state;v6(this,n,[],this._modules.root),AM(this,n),B.forEach(function(v){return v(i)})},BM={state:{configurable:!0}};Bh.prototype.install=function(e,r){e.provide(r||qda,this),e.config.globalProperties.$store=this;var i=this._devtools!==void 0?this._devtools:process.env.NODE_ENV!=="production"||!1;i&&nua(e,this)},BM.state.get=function(){return this._state.data},BM.state.set=function(e){process.env.NODE_ENV!=="production"&&hf(!1,"use store.replaceState() to explicit replace store state.")},Bh.prototype.commit=function(e,r,i){var B=this,D=_6(e,r,i),c=D.type,m=D.payload,a=D.options,y={type:c,payload:m},f=this._mutations[c];if(!f){process.env.NODE_ENV!=="production"&&console.error("[vuex] unknown mutation type: "+c);return}this._withCommit(function(){f.forEach(function(n){n(m)})}),this._subscribers.slice().forEach(function(n){return n(y,B.state)}),process.env.NODE_ENV!=="production"&&a&&a.silent&&console.warn("[vuex] mutation type: "+c+". Silent option has been removed. Use the filter functionality in the vue-devtools")},Bh.prototype.dispatch=function(e,r){var i=this,B=_6(e,r),D=B.type,c=B.payload,m={type:D,payload:c},a=this._actions[D];if(!a){process.env.NODE_ENV!=="production"&&console.error("[vuex] unknown action type: "+D);return}try{this._actionSubscribers.slice().filter(function(f){return f.before}).forEach(function(f){return f.before(m,i.state)})}catch(f){process.env.NODE_ENV!=="production"&&(console.warn("[vuex] error in before action subscribers: "),console.error(f))}var y=a.length>1?Promise.all(a.map(function(f){return f(c)})):a[0](c);return new Promise(function(f,n){y.then(function(v){try{i._actionSubscribers.filter(function(_){return _.after}).forEach(function(_){return _.after(m,i.state)})}catch(_){process.env.NODE_ENV!=="production"&&(console.warn("[vuex] error in after action subscribers: "),console.error(_))}f(v)},function(v){try{i._actionSubscribers.filter(function(_){return _.error}).forEach(function(_){return _.error(m,i.state,v)})}catch(_){process.env.NODE_ENV!=="production"&&(console.warn("[vuex] error in error action subscribers: "),console.error(_))}n(v)})})},Bh.prototype.subscribe=function(e,r){return lJ(e,this._subscribers,r)},Bh.prototype.subscribeAction=function(e,r){var i=typeof e=="function"?{before:e}:e;return lJ(i,this._actionSubscribers,r)},Bh.prototype.watch=function(e,r,i){var B=this;return process.env.NODE_ENV!=="production"&&hf(typeof e=="function","store.watch only accepts a function."),t.watch(function(){return e(B.state,B.getters)},r,Object.assign({},i))},Bh.prototype.replaceState=function(e){var r=this;this._withCommit(function(){r._state.data=e})},Bh.prototype.registerModule=function(e,r,i){i===void 0&&(i={}),typeof e=="string"&&(e=[e]),process.env.NODE_ENV!=="production"&&(hf(Array.isArray(e),"module path must be a string or an Array."),hf(e.length>0,"cannot register the root module by using registerModule.")),this._modules.register(e,r),v6(this,this.state,e,this._modules.get(e),i.preserveState),AM(this,this.state)},Bh.prototype.unregisterModule=function(e){var r=this;typeof e=="string"&&(e=[e]),process.env.NODE_ENV!=="production"&&hf(Array.isArray(e),"module path must be a string or an Array."),this._modules.unregister(e),this._withCommit(function(){var i=MM(r.state,e.slice(0,-1));delete i[e[e.length-1]]}),cJ(this)},Bh.prototype.hasModule=function(e){return typeof e=="string"&&(e=[e]),process.env.NODE_ENV!=="production"&&hf(Array.isArray(e),"module path must be a string or an Array."),this._modules.isRegistered(e)},Bh.prototype.hotUpdate=function(e){this._modules.update(e),cJ(this,!0)},Bh.prototype._withCommit=function(e){var r=this._committing;this._committing=!0,e(),this._committing=r},Object.defineProperties(Bh.prototype,BM);var uua=pua(function(e,r){var i={};return process.env.NODE_ENV!=="production"&&!wJ(r)&&console.error("[vuex] mapMutations: mapper parameter must be either an Array or an Object"),hua(r).forEach(function(B){var D=B.key,c=B.val;i[D]=function(){for(var m=[],a=arguments.length;a--;)m[a]=arguments[a];var y=this.$store.commit;if(e){var f=fua(this.$store,"mapMutations",e);if(!f)return;y=f.context.commit}return typeof c=="function"?c.apply(this,[y].concat(m)):y.apply(this.$store,[c].concat(m))}}),i});function hua(e){return wJ(e)?Array.isArray(e)?e.map(function(r){return{key:r,val:r}}):Object.keys(e).map(function(r){return{key:r,val:e[r]}}):[]}function wJ(e){return Array.isArray(e)||sJ(e)}function pua(e){return function(r,i){return typeof r!="string"?(i=r,r=""):r.charAt(r.length-1)!=="/"&&(r+="/"),e(r,i)}}function fua(e,r,i){var B=e._modulesNamespaceMap[i];return process.env.NODE_ENV!=="production"&&!B&&console.error("[vuex] module namespace not found in "+r+"(): "+i),B}const mua="/icn-play.svg",gua="/icn-tiros-de-esquina.svg",yua="/icn-tiro-a-porteria.svg",vua="/icn-cambio.svg",_ua="/icn-falta.svg",bua="/atajada.svg",xua="/fuera-de-lugar.svg",NM="/gol.svg",wua="/var.png",kua="/tiempo-agregado.svg",Cua="/jugada-peligrosa.svg",Sua="/penal-marcado.svg",Tua="/penal-fallado.svg",Eua="/inicia-el-partido.svg",Aua="/fin-del-partido.svg",Mua="/icn-tarjeta-amarilla.svg",Iua="/icn-tarjeta-roja.svg",Pua=[1,2,3,4,6],Bua={name:"TimeLineEvent",props:{gameEvent:{type:Object,required:!0},isMobile:{type:Boolean,default:!1},width:{type:Number,default:352},timeLineWidth:{type:Number,default:0},canPlayVideos:{type:Boolean,default:!0}},data(){return{lastHeight:0,gameEventKey:0}},computed:{nameClasses(){const e=[],r=`${this.gameEvent.event_type_id}-${this.gameEvent.category_id}`;return TM.GOAL_IDS.includes(r)?(e.push("is-main-event"),e.push("goal")):TM.YELLOW_CARD_IDS.includes(r)?(e.push("is-main-event"),e.push("yellow-card")):TM.RED_CARD_IDS.includes(r)?(e.push("is-main-event"),e.push("red-card")):this.gameEvent.video_link!=="-"&&(e.push("is-main-event"),e.push("normal-video")),this.gameEvent.teamType===1?e.push("time-line-event--home-team"):e.push("time-line-event--away-team"),e},srcImgPlayers(){let e=null;return this.gameEvent.player_id&&this.gameEvent.player_id!=="-"&&(e=this.gameEvent.player_id.split("@"),e=e.map(r=>Dda(r))),e},teamTypeClasses(){const e=`time-line-event--${this.gameEvent.teamType===1?"home":"away"}-team`;return[e,`${e}-desktop`]},teamTypeClasses2(){return[`time-line-event--info--${this.gameEvent.teamType===1?"home":"away"}-team`]},minuteClasses(){const e=[`time-line-event__minute--desktop-${this.gameEvent.teamType===1?"home":"away"}-team`];return e.push("time-line-event__minute--desktop"),e},playerName(){return this.gameEvent.category_id===28||Pua.includes(this.gameEvent.event_type_id)?"":this.gameEvent.player_name}},watch:{width(){this.emitHeight()},gameEvent:{deep:!0,handler(){this.gameEventKey++}}},methods:{...uua("general",["setVideoModalVisibility","setVideoSrc"]),thumbnailClick(e){e!=="-"&&this.$emit("thumbnail-click",e)},showVideoTimeline(e){this.setVideoSrc(e),this.setVideoModalVisibility(!0)},getIconClasses(){return["time-line-event__icon--desktop",`time-line-event__icon--desktop-${this.gameEvent.teamType===1?"home":"away"}-team`]},emitHeight(){setTimeout(()=>{this.$refs.timeLineEvent&&this.$refs.timeLineEvent.clientHeight&&this.$refs.timeLineEvent.clientHeight!==this.lastHeight&&(this.lastHeight=this.$refs.timeLineEvent.clientHeight,this.$emit("event-height",this.lastHeight))},500)}},mounted(){if(this.emitHeight(),this.gameEvent.event_type_id===3){const[e,r]=this.gameEvent.player_id.split("@");this.$emit("player-changed",{playerOut:Number(e),playerIn:Number(r),teamId:this.gameEvent.team_id})}}},Nua=e=>(t.pushScopeId("data-v-84fd3fef"),e=e(),t.popScopeId(),e),zua={class:"time-line-event__details"},Oua={width:"127",preload:"metadata",style:{"border-radius":"8px"}},Fua=["src"],Lua=Nua(()=>t.createElementVNode("div",{class:"time-line-event__details__video-thumbnail__gradient"},[t.createElementVNode("div",{class:"time-line-event__details__video-thumbnail__gradient__button-play"},[t.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",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)),Dua={class:"time-line-event__details__info"},Rua={key:0,class:"time-line-event__details__info__header__players"},Vua={class:"time-line-event__details__info__header__players__div-img"},$ua=["src"],jua={class:"time-line-event__details__info__body"},Uua={class:"time-line-event__details__info__body__comment"},Gua={class:"time-line-event__minute__container"},Hua={class:"time-line-event__minute__container__text"},Wua={class:"time-line-event__minute__container__icon-container"},qua={class:"time-line-event__minute__container__icon-container__icon"},Yua={key:0,src:gua,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},Xua={key:1,src:yua,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},Zua={key:2,src:vua,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},Jua={key:3,src:_ua,class:"time-line-event__minute__container__icon-container__icon__img",alt:"Event icon"},Kua={key:4,src:bua,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},Qua={key:5,src:xua,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},eha={key:6,src:NM,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},tha={key:7,src:NM,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},aha={key:8,src:NM,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},nha={key:9,src:wua,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},rha={key:10,src:kua,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},iha={key:11,src:Cua,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},oha={key:12,src:Sua,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},sha={key:13,src:Tua,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},lha={key:14,src:Eua,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},cha={key:15,src:Aua,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},dha={key:16,src:Mua,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},uha={key:17,src:Iua,class:"time-line-event__minute__container__icon-container__icon__img",alt:"Event icon"},hha={key:18,src:"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg id='Layer_2' data-name='Layer 2' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cdefs%3E%3Cstyle%3E .cls-1 %7B fill: %23fff; %7D .cls-2 %7B fill: %23172531; %7D %3C/style%3E%3C/defs%3E%3Cg id='Layer_1-2' data-name='Layer 1'%3E%3Cg%3E%3Cg id='Oval'%3E%3Ccircle class='cls-2' cx='24' cy='24' r='24'/%3E%3C/g%3E%3Cg id='Group-19'%3E%3Cg id='Path-16'%3E%3Cpath class='cls-1' d='M32.85,36.6H15.15c-.41,0-.75-.34-.75-.75s.34-.75,.75-.75h17.69c.41,0,.75,.34,.75,.75s-.34,.75-.75,.75Z'/%3E%3C/g%3E%3C/g%3E%3Cg id='Rectangle'%3E%3Cg id='path-1'%3E%3Cpath class='cls-1' d='M38.02,32.62H9.98V13.43h28.04v19.19Zm-26.54-1.5h25.04V14.93H11.48V31.12Z'/%3E%3C/g%3E%3C/g%3E%3C/g%3E%3C/g%3E%3C/svg%3E",alt:"Event icon"};function pha(e,r,i,B,D,c){return t.openBlock(),t.createElementBlock("div",{ref:"timeLineEvent",class:t.normalizeClass(["time-line-event",c.teamTypeClasses]),style:t.normalizeStyle({width:`${i.width}px`}),key:D.gameEventKey},[t.createElementVNode("div",zua,[i.canPlayVideos&&i.gameEvent.video_link!=="-"&&i.timeLineWidth>700?(t.openBlock(),t.createElementBlock("div",{key:0,class:"time-line-event__details__video-thumbnail",onClick:r[0]||(r[0]=m=>c.thumbnailClick(i.gameEvent.video_link,i.gameEvent.event_type_name))},[t.createElementVNode("video",Oua,[t.createElementVNode("source",{src:i.gameEvent.video_link+"#t=0.1",type:"video/mp4"},null,8,Fua)]),Lua])):t.createCommentVNode("",!0),t.createElementVNode("div",Dua,[t.createElementVNode("div",{class:t.normalizeClass(["time-line-event__details__info__header",c.teamTypeClasses2])},[i.gameEvent.video_link=="-"?(t.openBlock(),t.createElementBlock("div",Rua,[c.srcImgPlayers?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(c.srcImgPlayers,(m,a)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["img-player",{"second-player":a===1}]),key:a},[t.createElementVNode("div",Vua,[t.createElementVNode("img",{src:m,alt:""},null,8,$ua)])],2))),128)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(["time-line-event__details__info__header__event-name",c.nameClasses]),onClick:r[1]||(r[1]=m=>c.thumbnailClick(i.gameEvent.video_link,i.gameEvent.event_type_name))},[i.canPlayVideos&&i.gameEvent.video_link!=="-"?(t.openBlock(),t.createElementBlock("img",{key:0,src:mua,class:t.normalizeClass(`time-line-event__details__info__header__event-play ${[1,2].includes(i.gameEvent.event_type_id)?`time-line-event__details__info__header__event-play__${i.gameEvent.event_type_name}`:i.gameEvent.video_link!=="-"?"time-line-event__details__info__header__event-play__normal-video":""}`)},null,2)):t.createCommentVNode("",!0),t.createTextVNode(" "+t.toDisplayString(i.gameEvent.category_id?i.gameEvent.event_type_id===5?i.gameEvent.category_name:i.gameEvent.event_type_name==="Gol"?`${[13,16].includes(i.gameEvent.category_id)?"Autogol":"Gol"} de `+i.gameEvent.team_name:i.gameEvent.event_type_name:i.gameEvent.comments),1)],2)],2),t.createElementVNode("div",jua,[t.createElementVNode("div",Uua,t.toDisplayString(this.gameEvent.category_id?`${this.gameEvent.comments}`:""),1)])])]),t.createElementVNode("div",{class:t.normalizeClass(["time-line-event__minute",c.minuteClasses])},[t.createElementVNode("div",Gua,[t.createElementVNode("div",Hua,t.toDisplayString(i.gameEvent.minute)+"'",1),t.createElementVNode("div",Wua,[t.createElementVNode("div",qua,[i.gameEvent.category_id==18?(t.openBlock(),t.createElementBlock("img",Yua)):i.gameEvent.category_id==20?(t.openBlock(),t.createElementBlock("img",Xua)):i.gameEvent.category_id==10?(t.openBlock(),t.createElementBlock("img",Zua)):i.gameEvent.category_id==21?(t.openBlock(),t.createElementBlock("img",Jua)):i.gameEvent.category_id==27?(t.openBlock(),t.createElementBlock("img",Kua)):i.gameEvent.category_id==17?(t.openBlock(),t.createElementBlock("img",Qua)):i.gameEvent.category_id==6&&i.gameEvent.event_type_id==1||i.gameEvent.category_id==5&&i.gameEvent.event_type_id==1||i.gameEvent.category_id==1&&i.gameEvent.event_type_id==1||i.gameEvent.category_id==2&&i.gameEvent.event_type_id==1||i.gameEvent.category_id==3&&i.gameEvent.event_type_id==1||i.gameEvent.category_id==7&&i.gameEvent.event_type_id==1||i.gameEvent.category_id==12&&i.gameEvent.event_type_id==1?(t.openBlock(),t.createElementBlock("img",eha)):i.gameEvent.category_id==4?(t.openBlock(),t.createElementBlock("img",tha)):i.gameEvent.category_id==13||i.gameEvent.category_id==16?(t.openBlock(),t.createElementBlock("img",aha)):i.gameEvent.category_id==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?(t.openBlock(),t.createElementBlock("img",nha)):i.gameEvent.category_id==28?(t.openBlock(),t.createElementBlock("img",rha)):i.gameEvent.category_id==26?(t.openBlock(),t.createElementBlock("img",iha)):i.gameEvent.category_id==22?(t.openBlock(),t.createElementBlock("img",oha)):i.gameEvent.category_id==15||i.gameEvent.category_id==23?(t.openBlock(),t.createElementBlock("img",sha)):i.gameEvent.category_id==0&&i.gameEvent.game_status_id==16||i.gameEvent.category_id==0&&i.gameEvent.game_status_id==18||i.gameEvent.category_id==0&&i.gameEvent.game_status_id==20||i.gameEvent.category_id==0&&i.gameEvent.game_status_id==22?(t.openBlock(),t.createElementBlock("img",lha)):i.gameEvent.category_id==0&&i.gameEvent.game_status_id==13||i.gameEvent.category_id==0&&i.gameEvent.game_status_id==17||i.gameEvent.category_id==0&&i.gameEvent.game_status_id==19||i.gameEvent.category_id==0&&i.gameEvent.game_status_id==21||i.gameEvent.category_id==0&&i.gameEvent.game_status_id==23?(t.openBlock(),t.createElementBlock("img",cha)):i.gameEvent.category_id==8?(t.openBlock(),t.createElementBlock("img",dha)):i.gameEvent.category_id==9?(t.openBlock(),t.createElementBlock("img",uha)):(t.openBlock(),t.createElementBlock("img",hha))])])])],2)],6)}const fha=G_(Bua,[["render",pha],["__scopeId","data-v-84fd3fef"]]),mha={"1-1":"gol","1-2":"gol","1-3":"gol","1-4":"gol","1-5":"gol","1-6":"gol","1-7":"gol","1-12":"gol","1-13":"gol","1-16":"gol","2-8":"amonestacion","2-9":"expulsion","3-10":"cambio_de_jugador","3-11":"cambio_de_jugador","4-14":"gol","4-15":"penal_fallado","5-17":"fuera_de_lugar","5-18":"tiro_de_esquina","5-20":"tiro_a_gol","5-21":"falta_cometida","5-22":"penal_marcado","5-23":"penal_fallado","5-24":"","5-25":"","5-26":"jugada_peligro_dentro_area","5-27":"atajada","5-28":"tiempo_agregado","5-29":"presion_para_anotar","7-30":"revision_var","7-31":"revision_var","7-32":"revision_var","7-33":"revision_var","7-34":"revision_var"},gha={3:{name:"Inicia Primer Tiempo",weight:1,playTimer:1,abbreviation:"1T:"},4:{name:"Final Primer Tiempo",weight:2,playTimer:0,abbreviation:"1T:"},5:{name:"Inicia Segundo Tiempo",weight:3,playTimer:1,abbreviation:"2T:"},8:{name:"Final Segundo Tiempo",weight:4,playTimer:0,abbreviation:"2T:"},9:{name:"Inicia Primer Tiempo Extra",weight:5,playTimer:1,abbreviation:"1T extra:"},12:{name:"Final Primer Tiempo Extra",weight:6,playTimer:0,abbreviation:"1T extra:"},10:{name:"Inicia Segundo Tiempo Extra",weight:7,playTimer:1,abbreviation:"2T extra:"},13:{name:"Final Segundo Tiempo Extra",weight:8,playTimer:0,abbreviation:"2T extra:"},11:{name:"Inicia Tanda de Penales",weight:9,playTimer:1,abbreviation:"Penales:"},15:{name:"Final Tanda de Penales",weight:10,playTimer:0,abbreviation:"Penales:"},6:{name:"Marcador Final",weight:11,playTimer:0,abbreviation:"Final"}};let b6=null;const yha={name:"TimeLine",components:{Tooltip:zda,TimeLineEvent:fha},mixins:[Fda],props:{gameData:{type:Object,required:!0},timeLinePeriod:{type:String,default:"all"},socket:{type:Object,default:()=>({})},canPlayVideos:{type:Boolean,default:!0}},data(){return{gameEvents:[],gameEventsByPeriod:{firstHalf:[],secondHalf:[]},dataVideo:{visible:!1,link:""},gameEventsQueue:[],gameEventsUrl:"https://al2nv2dmkc.execute-api.us-west-2.amazonaws.com/prod/mxm/",transitionName:"",subscriptionInfo:{gameId:0,isSubscribed:!1},areGameEventsFilled:!1,timeLineWidth:812,eventContainerWidth:0,channelName:"",timeLineStatus:"awaiting",timeLeft:"",lastMinute:0,timeLineStatuses:[],currentStatus:{abbreviation:""},timer:"00:00"}},computed:{isMobile(){return this.timeLineWidth<580},gameEventWidth(){return this.timeLineWidth/2-30},gameEventsToShow(){return this.timeLinePeriod==="all"?this.gameEvents:this.gameEventsByPeriod[this.timeLinePeriod]}},watch:{gameData:{deep:!0,immediate:!0,handler(e){e&&e.id&&(this.gameDateTime=new Date(this.gameData.dateTimeUTC),this.gameEventsQueue=[],this.timeLineStatuses=[],this.transitionName="",this.checkTimeLeft(),e.status!==1&&this.socket&&this.socket.connected?this.subscribeToMXMChannel():this.timeLineStatus="finished",this.fillGameEvents(e.id))}},"socket.connected":{immediate:!0,handler(e){e&&this.gameData.id&&this.gameData.status!==1&&this.subscribeToMXMChannel()}},gameEvents(e){e.length&&this.gameData.status!==1&&(this.timeLineStatus="live")}},methods:{async fillGameEvents(e){try{const r=await this.fetchGameEvents(e);r?(this.gameEvents=[...r],this.checkGameEventsQueue(),this.sortGameEvents(),setTimeout(()=>{this.transitionName="list"},500)):this.gameEvents=[],this.gameData.status===1?this.lastMinute=`${this.gameEvents[this.gameEvents.length-1].minute}'`:this.checkTimeLineStatus()}catch(r){throw new Error(r)}},getGameEventClassAndSetIcon(e,r){return e.icon=r===0?"inicio_del_partido":mha[`${e.event_type_id}-${e.category_id}`],e.team_id===this.gameData.homeTeam.team_id||!e.team_id?(e.teamType=1,["home-team-event"]):(e.teamType=2,["away-team-event"])},getEventContainerClass(){return this.isMobile,["time-line-event__container--desktop"]},async fetchGameEvents(e){try{const{data:{plays:r}}=await nJ.get(`${this.gameEventsUrl}${e}`);return r}catch(r){throw new Error(r)}},subscribeToMXMChannel(){this.channelName=`mxm.game.${this.gameData.id}`,this.socket.emit("subscribe",{channel:this.channelName}),this.isSubscribed=!0},checkGameEventsQueue(){this.gameEventsQueue.length&&this.gameEvents.push(...this.gameEventsQueue),this.areGameEventsFilled=!0},setUpResizeObserver(){if(window.ResizeObserver)b6=new ResizeObserver(()=>{this.timeLineWidth=this.$refs.timeLine.clientWidth}),b6.observe(this.$refs.timeLine);else throw new Error("Resize observer not supported!")},updateContainerHeight(e,r){const i=this.$refs[`gameEventDiv${r}`][0],B=this.$refs[`gameEventLine${r}`]?this.$refs[`gameEventLine${r}`][0]:null,D=e+12;i&&(i.style.height=`${D}px`),B&&(B.style.height=`${D}px`)},sortGameEvents(){this.gameEvents.sort((e,r)=>this.getMatchLapseMinutes(e.match_lapse)+Number(e.minute)-(this.getMatchLapseMinutes(r.match_lapse)+Number(r.minute))),this.gameEventsByPeriod={firstHalf:[],secondHalf:[]},this.gameEvents.forEach(e=>{this.gameEventsByPeriod[e.match_lapse===1?"firstHalf":"secondHalf"].push(e)})},getMatchLapseMinutes(e){let r=0;switch(e){case 1:r=0;break;case 2:r=45;break;case 3:r=90;break;case 4:r=105;break;case 5:r=120;break}return r},addGameEventFromChannel(e){this.areGameEventsFilled?(this.gameEvents.push(e),this.sortGameEvents()):this.gameEventsQueue.push(e)},deleteGameEventFromChannel(e){const r=this.gameEvents.findIndex(i=>i.play_id===e.play_id);r&&this.gameEvents.splice(r,1)},checkTimeLineStatus(){this.gameEvents.forEach(r=>{const i=gha[r.game_status];i&&this.timeLineStatuses.push({...i,gameEvent:r})}),this.timeLineStatuses.sort((r,i)=>i.weight-r.weight);const e=this.timeLineStatuses[0];e&&(this.currentStatus=e,e.playTimer&&this.startTimer())},startTimer(){},getTeamLogoSrc(e="homeTeam"){const r=this.gameData[e].team_id;return Lda(r)},thumbnailClick(e){this.canPlayVideos&&(this.dataVideo.link=e,this.dataVideo.visible=!0)}},mounted(){this.$nextTick(()=>{this.setUpResizeObserver()})},beforeUnmount(){b6&&b6.unobserve(this.$refs.timeLine)},sockets:{new_mxm([e,r]){this.channelName===e&&this.addGameEventFromChannel(r)},update_mxm([e,r]){this.channelName===e&&(this.deleteGameEventFromChannel(r),this.addGameEventFromChannel(r))},delete_mxm([e,r]){this.channelName===e&&this.deleteGameEventFromChannel(r)}}},kJ=e=>(t.pushScopeId("data-v-2574e576"),e=e(),t.popScopeId(),e),vha={ref:"timeLine",class:"time-line"},_ha={class:"time-line__header"},bha={class:"time-line__header__dot"},xha={class:"time-line__header__dot__home-team team-logo"},wha=["src"],kha={class:"time-line__header__dot__away-team team-logo"},Cha=["src"],Sha={key:1,class:"start-line"},Tha=kJ(()=>t.createElementVNode("div",null,null,-1)),Eha=kJ(()=>t.createElementVNode("div",null,null,-1)),Aha=[Tha,Eha],Mha={key:1,class:"noEventText"},Iha={class:"tooltip-data"},Pha=["src"];function Bha(e,r,i,B,D,c){const m=t.resolveComponent("TimeLineEvent"),a=t.resolveComponent("Tooltip");return t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createElementVNode("div",vha,[t.createElementVNode("div",_ha,[t.createElementVNode("div",bha,[t.createElementVNode("div",xha,[t.createElementVNode("img",{src:c.getTeamLogoSrc("homeTeam"),alt:""},null,8,wha)]),t.createElementVNode("div",kha,[t.createElementVNode("img",{src:c.getTeamLogoSrc("awayTeam"),alt:""},null,8,Cha)])])]),(t.openBlock(),t.createElementBlock("div",{class:"time-line__game-events",key:`tlk-${D.gameEvents.length}`},[i.gameData.status!==4||i.gameData.is_live?(t.openBlock(),t.createBlock(t.TransitionGroup,{key:0,name:D.transitionName,tag:"div"},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(c.gameEventsToShow,(y,f)=>(t.openBlock(),t.createElementBlock("div",{class:"time-line__game-events__grid",key:y.play_id},[t.createElementVNode("div",{ref_for:!0,ref:`gameEventDiv${f}`,class:t.normalizeClass(c.getGameEventClassAndSetIcon(y,f))},[t.createElementVNode("div",{class:t.normalizeClass(c.getEventContainerClass(y))},[t.createVNode(m,{"game-event":y,"is-mobile":c.isMobile,"time-line-width":D.timeLineWidth,width:c.gameEventWidth,"can-play-videos":i.canPlayVideos,onEventHeight:n=>c.updateContainerHeight(n,f),onPlayerChanged:r[0]||(r[0]=n=>e.$emit("player-changed",n)),onThumbnailClick:c.thumbnailClick},null,8,["game-event","is-mobile","time-line-width","width","can-play-videos","onEventHeight","onThumbnailClick"])],2),f>0?(t.openBlock(),t.createElementBlock("div",{key:0,ref_for:!0,ref:`gameEventLine${f}`,class:"line"},null,512)):t.createCommentVNode("",!0),i.gameData.status===1&&f===c.gameEventsToShow.length-1?(t.openBlock(),t.createElementBlock("div",Sha,Aha)):t.createCommentVNode("",!0)],2)]))),128))]),_:1},8,["name"])):(t.openBlock(),t.createElementBlock("div",Mha,"Aún no comienza el partido"))]))],512),t.createVNode(a,{data:D.dataVideo},{default:t.withCtx(()=>[t.createElementVNode("div",Iha,[t.createElementVNode("div",null,[t.createElementVNode("video",{class:"tooltip-video",controls:"",autoplay:"",src:D.dataVideo.link,format:"video/mp4"},null,8,Pha)])])]),_:1},8,["data"])],64)}const Nha=G_(yha,[["render",Bha],["__scopeId","data-v-2574e576"]]),zha={class:"game-time-line__options"},Oha={class:"game-time-line__timeline"},Fha={__name:"GSC-GameTimeLine",props:{game:{type:Object,default:()=>({id:79601,seasonId:1772,status:1,dateTimeUTC:"2023-10-01T22:20:00Z",is_live:0,homeTeam:{logo:"https://az755631.vo.msecnd.net/teams-80/18.png",team_id:18,provisional_logo:"https://az755631.vo.msecnd.net/teams-provisional/18.png",colloquial_name:"Toluca",acronym:"TOL",team_name:"Toluca"},awayTeam:{logo:"https://az755631.vo.msecnd.net/teams-80/1.png",team_id:1,provisional_logo:"https://az755631.vo.msecnd.net/teams-provisional/1.png",colloquial_name:"Chivas",acronym:"CHI",team_name:"Guadalajara"}})},socket:{type:Object,default:()=>({})},canPlayVideos:{type:Boolean,default:!0}},setup(e){nJ.defaults.headers.common.Authorization="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE";const r=t.ref({width:"103px",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"}),i=t.ref({width:"auto",height:"30px",padding:"0px 20px",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"});let B=null;const D=t.ref(["Todo","1er tiempo","2do tiempo"]),c=t.ref("Todo"),m=t.ref({}),a=t.ref(null),y=t.ref(0),f=t.computed(()=>{let l="all";return c.value==="1er tiempo"||c.value==="1er"?l="firstHalf":(c.value==="2do tiempo"||c.value==="2do")&&(l="secondHalf"),l}),n=t.computed(()=>y.value<500);function v(l){c.value=l}function _(l){m.value=l}function p(){if(window.ResizeObserver)B=new ResizeObserver(()=>{y.value=a.value.clientWidth}),B.observe(a.value);else throw new Error("Resize observer not supported!")}return t.onMounted(()=>{p()}),t.onBeforeUnmount(()=>{B&&B.unobserve(a.value)}),(l,o)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"gameTimeLine",ref:a,class:"game-time-line"},[t.createElementVNode("div",zha,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(D.value,s=>(t.openBlock(),t.createElementBlock("div",{key:s,class:"game-time-line__options__option"},[t.createVNode(fca,t.mergeProps(y.value<390?i.value:r.value,{text:s=="Todo"?s:y.value<390?s.substring(0,3):s,"is-active":c.value===s,onClick:u=>v(s)}),null,16,["text","is-active","onClick"])]))),128))]),t.createElementVNode("div",Oha,[t.createVNode(Nha,{"game-data":e.game,"time-line-period":f.value,"is-mobile":n.value,socket:e.socket,"can-play-videos":e.canPlayVideos,onGameEventsByPeriodFilled:_},null,8,["game-data","time-line-period","is-mobile","socket","can-play-videos"])])],512))}},Lha=G_(Fha,[["__scopeId","data-v-f42d0c90"]]),h3a="",Dha={class:"game-data__header"},Rha={class:"game-data__header__tournament-season-dropdown"},Vha={class:"game-data__header__teams-carousel"},$ha={class:"game-data__body"},jha={class:"game-data__body__menu"},Uha={class:"game-data__body__menu__contmenuswitch"};$c.defaults.headers.common.Authorization="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE";const Gha=t.defineComponent({name:"GSC-GameData",components:{StatisticsMain:Dpe,GSCGameTimeLine:Lha,GscSwitchComponent:rA,GSCLineupsMain:o8e,GSCDatosGSMain:TIe,GSCVideoGame:aGe,ModalEvents:MR,GSCSummaryMain:e_t,GSCTacticaFijaMain:hca,GSCProminentMain:QBt,GSCComparative:NFt}}),Hha=$i(Object.assign(Gha,{props:{tournamentsApiUrl:{type:String,default:""},currentSeasonId:{type:Number,default:0},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:r}){const i=e,B=Qb();Yh.on("socket-connected",()=>{B.commit("nextGeneral/updateIsSocketConnected",i.socket.connected)});const D=t.ref("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"),c=t.ref({season:[]}),m=t.ref({}),a=t.ref(!1),y=t.ref({}),f=t.ref(1),n=t.ref(0),v=3e4,_=3e4,p=3e4,l=3e4,o=3e4,s=3e4,u=3e4,d=3e4,h=6e4,g=t.ref(null),b=t.ref(null),w=t.ref(null),x=t.ref([]),S=t.ref(null),C=t.ref(!0),T=t.ref(new Set([1,2])),k=t.ref({}),A=t.ref({minute:"",recent_lapse:0,score:{}}),E=t.ref(0),M=t.ref("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"),I=t.ref(i.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:i.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:i.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}]),N=t.ref(i.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:i.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:i.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}]),z=t.ref(i.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:i.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:i.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(i.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:i.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:i.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 F=t.ref(0);let R=null;const V=t.ref(null),$=t.ref(0),U=t.ref(N.value[0]),Z=t.ref([]);let q=t.ref("");const W={seasonAndPrivileges:null,canPrivilegesTeamPlayVideos:!1,homeTeamDetails:{canPlayVideos:!1,team:{}},awayTeamDetails:{canPlayVideos:!1,team:{}}},Q=t.computed(()=>{const xe=[];return m.value&&m.value.id&&(xe.push({id:m.value.id,name:m.value.name,type:m.value.type}),m.value.related_seasons&&m.value.related_seasons.forEach(ze=>{xe.push({id:ze.id,type:ze.type})})),xe}),X=t.computed(()=>{if(i.clientPrivilegesBySeasons){const xe=i.clientPrivilegesBySeasons.seasonsAndPrivileges.get(m.value.id);if(xe)return xe.teamId}return 0});function J(){a.value=!1}function ee(xe){const ze=xe.split(",");return!(ze.length<2||ze[1].split(" ").length<2)}function le(xe){g.value=xe}function oe(xe){x.value.push(xe)}function se(xe){S.value=xe}function ce(xe){w.value=xe}function ae(xe){b.value=xe}function ne(xe){if(!ee(xe))return"";const ze=ue(xe);return`${ie(xe)}. ${ze}`}function ie(xe){return xe.split(",")[1].split(" ")[1][0]}function ue(xe){const ze=xe.split(",")[0].split(" ");return ze[0].length<=3&&ze.length>1?`${ze[0]} ${ze[1]}`:ze[0]}async function he(xe){try{const ze=$c.create({headers:{Authorization:`${D.value}`}});k.value={};const De=await ze.get("https://al2nv2dmkc.execute-api.us-west-2.amazonaws.com/prod/mxm/"+xe.game_id);if(k.value[xe.home_team.team_id]=[],k.value[xe.home_team.team_id].team={name:xe.home_team.acronym,logo:xe.home_team.logo},k.value[xe.home_team.team_id].goals=[],k.value[xe.home_team.team_id].red=[],k.value[xe.home_team.team_id].yellow=[],k.value[xe.visiting_team.team_id]=[],k.value[xe.visiting_team.team_id].team={name:xe.visiting_team.acronym,logo:xe.visiting_team.logo},k.value[xe.visiting_team.team_id].goals=[],k.value[xe.visiting_team.team_id].red=[],k.value[xe.visiting_team.team_id].yellow=[],De.data.minute!=null&&(A.value={minute:De.data.minute,recent_lapse:De.data.recent_lapse,score:De.data.score}),De.data.plays)for(let Ve=0;Ve<De.data.plays.length;Ve++)De.data.plays[Ve].category_name=="Roja"&&De.data.plays[Ve].status==1&&(xe.home_team.team_id==De.data.plays[Ve].team_id?(ne(De.data.plays[Ve].player_name)in k.value[xe.home_team.team_id].red||(k.value[xe.home_team.team_id].red[ne(De.data.plays[Ve].player_name)]={},k.value[xe.home_team.team_id].red[ne(De.data.plays[Ve].player_name)].event=[],k.value[xe.home_team.team_id].red[ne(De.data.plays[Ve].player_name)].name=ne(De.data.plays[Ve].player_name)),k.value[xe.home_team.team_id].red[ne(De.data.plays[Ve].player_name)].event.push(De.data.plays[Ve].minute)):(ne(De.data.plays[Ve].player_name)in k.value[xe.visiting_team.team_id].red||(k.value[xe.visiting_team.team_id].red[ne(De.data.plays[Ve].player_name)]={},k.value[xe.visiting_team.team_id].red[ne(De.data.plays[Ve].player_name)].event=[],k.value[xe.visiting_team.team_id].red[ne(De.data.plays[Ve].player_name)].name=ne(De.data.plays[Ve].player_name)),k.value[xe.visiting_team.team_id].red[ne(De.data.plays[Ve].player_name)].event.push(De.data.plays[Ve].minute))),De.data.plays[Ve].category_name=="Amarilla"&&De.data.plays[Ve].status==1&&(xe.home_team.team_id==De.data.plays[Ve].team_id?(ne(De.data.plays[Ve].player_name)in k.value[xe.home_team.team_id].yellow||(k.value[xe.home_team.team_id].yellow[ne(De.data.plays[Ve].player_name)]={},k.value[xe.home_team.team_id].yellow[ne(De.data.plays[Ve].player_name)].event=[],k.value[xe.home_team.team_id].yellow[ne(De.data.plays[Ve].player_name)].name=ne(De.data.plays[Ve].player_name)),k.value[xe.home_team.team_id].yellow[ne(De.data.plays[Ve].player_name)].event.push(De.data.plays[Ve].minute)):(ne(De.data.plays[Ve].player_name)in k.value[xe.visiting_team.team_id].yellow||(k.value[xe.visiting_team.team_id].yellow[ne(De.data.plays[Ve].player_name)]={},k.value[xe.visiting_team.team_id].yellow[ne(De.data.plays[Ve].player_name)].event=[],k.value[xe.visiting_team.team_id].yellow[ne(De.data.plays[Ve].player_name)].name=ne(De.data.plays[Ve].player_name)),k.value[xe.visiting_team.team_id].yellow[ne(De.data.plays[Ve].player_name)].event.push(De.data.plays[Ve].minute))),De.data.plays[Ve].event_type_name=="Gol"&&De.data.plays[Ve].status==1&&(xe.home_team.team_id==De.data.plays[Ve].team_id?De.data.plays[Ve].category_name=="Autogol"?(ne(De.data.plays[Ve].player_name)in k.value[xe.visiting_team.team_id].goals||(k.value[xe.visiting_team.team_id].goals[ne(De.data.plays[Ve].player_name)]={},k.value[xe.visiting_team.team_id].goals[ne(De.data.plays[Ve].player_name)].event=[],k.value[xe.visiting_team.team_id].goals[ne(De.data.plays[Ve].player_name)].name=ne(De.data.plays[Ve].player_name)),k.value[xe.visiting_team.team_id].goals[ne(De.data.plays[Ve].player_name)].event.push(De.data.plays[Ve].minute)):(ne(De.data.plays[Ve].player_name)in k.value[xe.home_team.team_id].goals||(k.value[xe.home_team.team_id].goals[ne(De.data.plays[Ve].player_name)]={},k.value[xe.home_team.team_id].goals[ne(De.data.plays[Ve].player_name)].event=[],k.value[xe.home_team.team_id].goals[ne(De.data.plays[Ve].player_name)].name=ne(De.data.plays[Ve].player_name)),k.value[xe.home_team.team_id].goals[ne(De.data.plays[Ve].player_name)].event.push(De.data.plays[Ve].minute)):De.data.plays[Ve].category_name=="Autogol"?(ne(De.data.plays[Ve].player_name)in k.value[xe.home_team.team_id].goals||(k.value[xe.home_team.team_id].goals[ne(De.data.plays[Ve].player_name)]={},k.value[xe.home_team.team_id].goals[ne(De.data.plays[Ve].player_name)].event=[],k.value[xe.home_team.team_id].goals[ne(De.data.plays[Ve].player_name)].name=ne(De.data.plays[Ve].player_name)),k.value[xe.home_team.team_id].goals[ne(De.data.plays[Ve].player_name)].event.push(De.data.plays[Ve].minute)):(ne(De.data.plays[Ve].player_name)in k.value[xe.visiting_team.team_id].goals||(k.value[xe.visiting_team.team_id].goals[ne(De.data.plays[Ve].player_name)]={},k.value[xe.visiting_team.team_id].goals[ne(De.data.plays[Ve].player_name)].event=[],k.value[xe.visiting_team.team_id].goals[ne(De.data.plays[Ve].player_name)].name=ne(De.data.plays[Ve].player_name)),k.value[xe.visiting_team.team_id].goals[ne(De.data.plays[Ve].player_name)].event.push(De.data.plays[Ve].minute)))}catch(ze){return Promise.reject(ze)}}function pe(xe){a.value=!0,xe.is_live!=1&&xe.game_status!=0&&(xe.game_status==4||Object.keys(xe.minutes).length>0)?(E.value=1,k.value={plays:xe.minutes,home_team:xe.home_team,visiting_team:xe.visiting_team}):(E.value=0,he(xe))}function me(){R=new ResizeObserver(xe=>{for(const ze of xe)$.value=ze.contentRect.width}),R.observe(V.value)}const _e=t.computed(()=>{let xe={};return y.value&&y.value.game_id&&(xe={gameId:y.value.game_id,id:y.value.game_id,seasonId:y.value.season_id,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}),xe});t.watch(()=>_e,(xe,ze)=>{if(B.commit("nextGeneral/updateShowLiveData",!0),Object.keys(xe.value).length>0){xe.value.gameId===ze.value.gameId&&xe.value.is_live!==ze.value.is_live&&(B.commit("nextGeneral/updateGameForAnalysisByProps",{is_live:xe.value.is_live,game_status:xe.value.game_status}),F.value+=1),N.value=[],xe.value.is_live==1||xe.value.game_status==4?N.value=[...I.value]:N.value=[...z.value],!i.isWidget&&(m.value.is_tactic_available==0||xe.value.is_live==1||xe.value.game_status==0)&&N.value.pop(),i.isWidget&&xe.value.is_live==1&&xe.value.awayTeam.team_id==i.teamWidget,U.value=N.value[0];const De=n.value==1?"Destacados":"Destacadas";N.value.forEach(Ve=>{Ve.name===De&&(Ve.name=n.value==1?"Destacadas":"Destacados")}),F.value+=1,he({game_id:xe.value.gameId,home_team:xe.value.homeTeam,visiting_team:xe.value.awayTeam}),xe.value.is_live==1&&setInterval(()=>{E.value=0,he({game_id:xe.value.gameId,home_team:xe.value.homeTeam,visiting_team:xe.value.awayTeam})},6e4)}},{deep:!0,immediate:!0}),t.watch(()=>B.state.nextGeneral.gameForAnalysis,()=>{B.commit("nextGeneral/updateIsSocketConnected",i.socket.connected)},{deep:!0,immediate:!0}),t.watch(()=>y.value,(xe,ze)=>{if(ze&&xe.game_id===ze.game_id)if(B.commit("nextGeneral/updateGameForAnalysis",{...B.state.nextGeneral.gameForAnalysis,is_live:y.value.is_live,game_status:y.value.game_status}),xe.is_live){const De=F8();De.disconnected?L8():De.connected&&XP(`game.${xe.game_id}.v2`)}else D8()},{deep:!0,immediate:!0});function we(xe){f.value=xe.is_captured,n.value=xe.is_female,C.value=xe.is_captured!==0,c.value.id!==xe.id&&(c.value=xe,B.commit("gameGlobal/setTournamentType",xe.tournament_type))}function ke(xe){!xe.auxwidget&&Ce.value&&!Ce.value.canPrivilegesTeamPlayVideos||((y.value.is_live||y.value.game_status===0||y.value.game_status===1)&&(xe.gameIdsToFilter=[y.value.game_id]),xe.isLiveAccumulated&&(xe.gameIdsToFilter=null),(y.value.is_live||y.value.game_status===0)&&!xe.isLiveAccumulated&&(xe.liveGameConfig={gameId:y.value.game_id}),r("openmedia",xe))}function Ee(xe){r("onOpenProfile",xe)}function Pe(xe){r("openProfileTeam",xe)}function je(xe){r("openProfilePlayer",xe)}function Te(xe){Re(xe),xe=="Estadísticas"&&(q.value="Comparativa")}function Se(){q.value=""}function ye(xe){m.value.id!==xe.id&&(m.value=xe,r("change-season-id",xe.id))}const ge=t.computed(()=>N.value.reduce((xe,ze)=>(i.disabledSectionsIds.includes(ze.id)||Ce.value&&!Ce.value.isVideoTabVisible&&ze.id===2||i.clientPrivilegesBySeasons&&ze.id===7||(C.value||ze.id!==5&&ze.id!==6)&&xe.push(ze.name),xe),[]));function Me(xe){if(y.value.is_live||y.value.game_status===1||y.value.game_status===0){const ze=xe.playingAs.has(y.value.playingAs);return i.clientPrivilegesBySeasons.canPlayVideos&&ze}else{const ze=Oe.value.filter(De=>xe.playingAs.has(De.playingAs));return i.clientPrivilegesBySeasons.canPlayVideos&&ze.length>0}}const Ce=t.computed(()=>{if(i.clientPrivilegesBySeasons){if(m.value&&y.value&&y.value.game_id){const xe=i.clientPrivilegesBySeasons.seasonsAndPrivileges.get(m.value.id);if(xe)if(Fe(xe.playingAs),(y.value.is_live||y.value.game_status===1||y.value.game_status===0)&&B.state.nextGeneral.showLiveData){const ze=xe.playingAs.has(y.value.playingAs);return{seasonAndPrivileges:xe,canPrivilegesTeamPlayVideos:i.clientPrivilegesBySeasons.canPlayVideos&&ze,isPrivilegesTeamOnly:!1,isPrivilegesTeamHome:y.value.home_team.team_id===xe.teamId,homeTeamDetails:{canPlayVideos:ze,team:y.value.home_team},awayTeamDetails:{canPlayVideos:ze,team:y.value.visiting_team},isVideoTabVisible:Me(xe)}}else{const ze=y.value.home_team.team_id===xe.teamId,De=Oe.value.filter(Xe=>xe.playingAs.has(Xe.playingAs));return{seasonAndPrivileges:xe,canPrivilegesTeamPlayVideos:i.clientPrivilegesBySeasons.canPlayVideos&&De.length>0,isPrivilegesTeamOnly:!0,isPrivilegesTeamHome:ze,homeTeamDetails:{canPlayVideos:i.clientPrivilegesBySeasons.canPlayVideos&&ze&&De.length>0,team:y.value.home_team},awayTeamDetails:{canPlayVideos:i.clientPrivilegesBySeasons.canPlayVideos&&!ze&&De.length>0,team:y.value.visiting_team},isVideoTabVisible:Me(xe)}}Fe(new Set)}return W}return null}),Oe=t.computed(()=>{if(i.clientPrivilegesBySeasons){if(m.value){const xe=i.clientPrivilegesBySeasons.seasonsAndPrivileges.get(m.value.id);if(xe)return Z.value.filter(ze=>ze.game_status===1&&xe.playingAs.has(ze.playingAs))}return[]}return[]});t.watch(ge,()=>{Ce.value&&!Ce.value.canPrivilegesTeamPlayVideos&&U.value.id===2&&Re("Resumen")},{deep:!0,immediate:!0});function Fe(xe){T.value=xe}function Re(xe){if(B.commit("nextGeneral/updateShowLiveData",!0),g.value!=null&&(clearInterval(g.value),g.value=null),b.value!=null&&(clearInterval(b.value),b.value=null),w.value!=null&&(clearInterval(w.value),w.value=null),S.value!=null&&(clearInterval(S.value),S.value=null),x.value.length>0){for(let ze of x.value)clearInterval(ze);x.value=[]}i.isWidget?U.value=N.value.find(ze=>ze.name===xe)||N.value[1]:U.value=N.value.find(ze=>ze.name===xe)||N.value[0]}t.onMounted(()=>{me(),t.nextTick(()=>{i.isSynchronization&&Re("Táctica Fija")})}),t.onBeforeUnmount(()=>{if(R&&R.disconnect(),g.value!=null&&(clearInterval(g.value),g.value=null),b.value!=null&&(clearInterval(b.value),b.value=null),w.value!=null&&(clearInterval(w.value),w.value=null),S.value!=null&&(clearInterval(S.value),S.value=null),x.value.length>0){for(let xe of x.value)clearInterval(xe);x.value=[]}R8()});function Ue(xe){if(xe.playingAs||(xe.playingAs=X.value?xe.home_team.team_id===X.value?1:2:0),g.value!=null&&(clearInterval(g.value),g.value=null),b.value!=null&&(clearInterval(b.value),b.value=null),w.value!=null&&(clearInterval(w.value),w.value=null),S.value!=null&&(clearInterval(S.value),S.value=null),x.value.length>0){for(let ze of x.value)clearInterval(ze);x.value=[]}y.value=xe,xe.is_live&&xe.game_status===4?L8():D8()}function Ne(xe){Z.value=xe.map(ze=>{const De={...ze};return X.value&&(De.playingAs=De.home_team.team_id===X.value?1:2),De})}return(xe,ze)=>(t.openBlock(),t.createElementBlock("div",{class:"game-data",ref_key:"gamedata",ref:V},[t.createElementVNode("div",Dha,[t.withDirectives(t.createElementVNode("div",Rha,[t.createVNode(t.unref(JM),{"current-season-id":e.currentSeasonId,onInput:we,onChangeTournaments:we,"tournaments-ids-to-include":e.tournamentsIdsToInclude,"api-url":e.tournamentsApiUrl},null,8,["current-season-id","tournaments-ids-to-include","api-url"]),t.createVNode(t.unref(eI),{"current-season-id":e.currentSeasonId,seasons:c.value.seasons,onInput:ye},null,8,["current-season-id","seasons"])],512),[[t.vShow,e.areTournamentAndSeasonSelectsVisible]]),t.createElementVNode("div",Vha,[t.createVNode(t.unref($ne),{"plays-live":k.value,"info-live":A.value,token:M.value,is_captured:f.value,"await-for-seasons":"",seasons:Q.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":X.value,"only-games-team-id":X.value,"tournament-type":t.unref(B).state.gameGlobal.tournamentType,onChangeGameCarousel:Ue,onOpenModalEvent:pe,onChangeGamesByClientPrivileges:Ne},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"])])]),a.value?(t.openBlock(),t.createBlock(MR,{key:0,width:$.value,onCloseModalEventsLive:J,plays:k.value,game:y.value,type:E.value},null,8,["width","plays","game","type"])):t.createCommentVNode("",!0),t.createElementVNode("div",$ha,[t.createElementVNode("div",jha,[t.createElementVNode("div",Uha,[t.createVNode(t.unref(rA),{type:2,buttons:ge.value,"font-family":"Poppins-Regular","font-size":"16px",width:$.value<400||$.value<700?"max-content":$.value<840||$.value<1050?"155px":"165px","selected-option":U.value.name,borderWidth:"1px",arrow:!1,height:"30px",onInput:Re},null,8,["buttons","width","selected-option"])])]),_e.value&&_e.value.gameId?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(U.value.componentName),{key:F.value,game:_e.value,"is-widget":e.isWidget,"team-widget":e.teamWidget,onIntervalidpossesion:ae,onIntervalidhighlive:ce,onIntervalidtops:oe,onIntervalidgs:se,subsection:t.unref(q),seasonSelected:m.value,tournamentSelected:c.value,showLineups:C.value,socket:e.socket,"time-live-prominent-data":v,"time-live-highlights-prominent-and-video":_,"time-live-possesion":p,"time-live-video-goals":l,"time-live-video-best-plays":o,"time-live-video-this-game":s,"time-live-video-specific-plays":u,"time-live-comparative-best-players":d,"time-live-comparative-avanced":h,is_captured:f.value,"is-tactic-visible":!!m.value.show_tactic,"is-synchronization":e.isSynchronization,"can-play-videos":Ce.value?Ce.value.canPrivilegesTeamPlayVideos:!0,"video-privileges-playing-as":T.value,"client-privileges-team-id":X.value,"play-videos-privileges":Ce.value,token:M.value,"game-events-interval-minutes":e.gameEventsIntervalMinutes,"volumetric-field-interval-minutes":e.volumetricFieldIntervalMinutes,"chalkboard-interval-minutes":e.chalkboardIntervalMinutes,onResetSubsection:Se,onOpenmedia:ke,onOnOpenProfile:Ee,onOpenProfileTeam:Pe,onOpenProfilePlayer:je,onChangeToTab:Te,onOpenMediaPlayer:ke,onIntervalid:le},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)])],512))}}),[["__scopeId","data-v-8bd22690"]]);async function Uu({url:e,options:r={},retries:i=3}){return await $c.get(e,r).then(B=>B).catch(B=>i>0?Uu({url:e,options:r,retries:i-1}):B)}async function CJ({seasonId:e},r=!0){try{return(await(await fetch(`https://golstats-microservices.s3-us-west-2.amazonaws.com/statsLeagueBySeason-${e}.json`)).json()).data}catch(i){if(r)return CJ({seasonId:e},!1);throw new Error(i)}}async function Wha({seasonId:e}){try{return(await Uu({url:`https://iwxfzq6e2h.execute-api.us-west-2.amazonaws.com/prod/v2/statisticsLeagueBySeason/${e}`})).data.data}catch(r){return Promise.reject(r)}}async function qha({seasonId:e}){try{return(await Uu({url:`https://sqf4rkvoge.execute-api.us-west-2.amazonaws.com/prod/v3/statisticsGroupedBySeason/${e}`})).data.data}catch(r){return Promise.reject(r)}}function Yha(e,r,i,B,D,c,m=!1){const a=i.map(y=>y===1?2:y===2?1:3);return e.filter(y=>{const f=c&&y[D.teamId]?y[D.teamId]!==c:!1,n=r===1?2:1;return(m||B.includes(y[D.gameId]))&&(!r||(f?n:r)===y[D.playingAs])&&(i.includes(y[D.matchResult])&&y[D.teamId]===c||a.includes(y[D.matchResult])&&y[D.teamId]!==c)})}function SJ(e,r,i,B,D){return r.length===2&&i.length===3&&B.length===6?e:e.filter(c=>r.includes(c[D.playingAs])&&i.includes(c[D.matchResult])&&B.includes(c[D.section]))}async function TJ({seasonId:e}){try{const r=`https://8tvo5bp9ai.execute-api.us-west-2.amazonaws.com/prod/gamesBySeason/${e}`;return(await Uu({url:r})).data}catch(r){return Promise.reject(r)}}async function Xha({seasonId:e,gameId:r}){try{const i=`https://iwxfzq6e2h.execute-api.us-west-2.amazonaws.com/prod/v2/statisticsLeagueBySeason/${e}/games/${r}`,{data:B}=await Uu({url:i});return B}catch(i){return Promise.reject(i)}}async function Zha({gameId:e}){try{const r=`https://2uj7ojhmt5.execute-api.us-west-2.amazonaws.com/prod/V2/statisticsLive/${e}`;return(await Uu({url:r})).data.data}catch(r){return Promise.reject(r)}}async function Jha({gameId:e}){try{const r=`https://55sbpmq0f5.execute-api.us-west-2.amazonaws.com/prod/specialMentions/${e}`;return(await Uu({url:r})).data.data||[]}catch(r){return Promise.reject(r)}}const Kha=["categoryId","matchLapse","section","matchResult","playingAs","total"];let zM=null;function EJ(){return zM||(zM=Wg(Kha)),zM}async function Qha(e){try{const r=`https://d2oco6mqmc.execute-api.us-west-2.amazonaws.com/prod/teamsBySeason/${e.seasonId}`;return(await Uu({url:r})).data}catch(r){return Promise.reject(r)}}async function AJ({seasonId:e,teamId:r}){try{return await Uu({url:`https://a4dcb6avog.execute-api.us-west-2.amazonaws.com/prod/v2/statisticsTeamBySeason/${e}/${r}`})}catch(i){return Promise.reject(i)}}async function epa(e){try{const r=`https://yjeig444bb.execute-api.us-west-2.amazonaws.com/prod/teamsBySeason/${e.seasonId}`;return await Uu({url:r})}catch(r){return Promise.reject(r)}}async function tpa(e){try{return await Uu({url:`https://nckawv8v3b.execute-api.us-west-2.amazonaws.com/prod/v2/statisticsByGame/${e.gameId}`})}catch(r){return Promise.reject(r)}}const apa={leagueGeneral:{namespaced:!0,state:{seasonPlays:[],currentSeasonGames:[],currentSeasonTeams:[],selectedRound:1,booleanAreLiveGames:!1,booleanIsLiveGamesModalOpen:!1},getters:{seasonPlays:e=>e.seasonPlays,filteredPlaysStack(e,r,i,B){return Yha(e.seasonPlays,B["filterGeneral/getPlayingAs"],B["filterGeneral/getResults"],B["filterGeneral/getSelectedGamesIds"],EJ(),B["teamsGeneral/team"].team_id,!0)},nextGamesSchedule(e){const r=e.currentSeasonGames.reduce((i,B)=>{const D={...B};return D.home_team=e.currentSeasonTeams.find(c=>c.team_id===B.home_team),D.visiting_team=e.currentSeasonTeams.find(c=>c.team_id===B.visiting_team),i[B.matchday_abbreviation]?i[B.matchday_abbreviation][B.game_status===3?"canceled":B.date]?i[B.matchday_abbreviation][B.game_status===3?"canceled":B.date].push(D):i[B.matchday_abbreviation][B.game_status===3?"canceled":B.date]=[D]:i[B.matchday_abbreviation]={[B.game_status===3?"canceled":B.date]:[D]},i},{});for(let[i,B]of Object.entries(r))r[i]=Object.entries(B).map(([D,c])=>({date:D,games:c})),r[i].sort((D,c)=>D.date<c.date?-1:D.date>c.date?1:0);return r},matchdaysDates(e,r){let i=[];if(r.nextGamesSchedule){let B=Object.keys(r.nextGamesSchedule);for(let D of B){let c=Number(D.replace("M","")),m=r.nextGamesSchedule[D].map(a=>({matchday:c,date:new Date(a.date)}));i=i.concat(m)}}return i},closestMatchDay(e,r){let i=new Date,B=0,D=-new Date(0,0,0).valueOf(),c=r.matchdaysDates,m=c.length;for(let a=0;a<c.length;a++)B=Math.abs(c[a].date-i),B<D&&(m=a,D=B);return c[m]?c[m].matchday:1}},mutations:{setBooleanIsLiveGamesModalOpen(e,r){e.booleanIsLiveGamesModalOpen=r},setBooleanAreLiveGames(e,r){e.booleanAreLiveGames=r},updateSeasonPlays(e,r){e.seasonPlays=r},updateCurrentSeasonTeams(e,r){e.currentSeasonTeams=r},updateCurrentSeasonGames(e,r){e.currentSeasonGames=r},updateSelectedRound(e,r){e.selectedRound=r}},actions:{async getSeasonPlays({commit:e,rootGetters:r},i=!1){try{const B=await CJ({seasonId:r["filterGeneral/getSeasonId"]});if(i)return B;e("updateSeasonPlays",B)}catch(B){return Promise.reject(B)}},async getCurrentSeasonGames({commit:e,rootGetters:r}){try{const i=await TJ({seasonId:r["loginGeneral/seasonId"]});e("updateCurrentSeasonGames",i)}catch(i){return Promise.reject(i)}},async getCurrentSeasonTeams({commit:e,rootGetters:r}){try{const i=await Qha({seasonId:r["loginGeneral/seasonId"]});e("updateCurrentSeasonTeams",i.teams)}catch(i){return Promise.reject(i)}},async isDataFilled({state:e,dispatch:r,commit:i}){try{if(e.currentSeasonGames.length>0&&e.currentSeasonTeams.length>0)return i("setIsSectionLoading",!1,{root:!0}),!0;const B=[void 0,void 0];return e.currentSeasonGames.length===0&&(B[0]=r("getCurrentSeasonGames")),e.currentSeasonTeams.length===0&&(B[1]=r("getCurrentSeasonTeams")),await Promise.all(B),!1}catch(B){throw new Error(B)}}}}};async function npa({filter:e}){try{const r=`https://n7ielynjxk.execute-api.us-east-2.amazonaws.com/qa/filters?filters=${e}`,{data:i}=await Uu({url:r});return i}catch(r){return Promise.reject(r)}}const rpa=["categoryId","teamId","matchResult","playingAs","matchLapse","section","total"];let OM=null;function ipa(){return OM||(OM=Wg(rpa)),OM}class x6{constructor(){Vc(this,"maximumLiveSection",1);Vc(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:[]});Vc(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(r){r>this.maximumLiveSection&&(this.maximumLiveSection=r)}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(r,i,B){B&&(this.setMaximumLiveSection(r),this.accomplished.totalLive+=i,this.accomplished.totalsLiveTrendLive.sections[r-1]+=i,this.increaseTrendLiveAccumulatedByOne(this.accomplished.totalsLiveTrendLive,r,i)),this.accomplished.totalPostGame+=i,this.accomplished.avgPostGameTrendLive.sections[r-1]+=i,this.increaseTrendLiveAccumulatedByOne(this.accomplished.avgPostGameTrendLive,r,i)}increaseReceivedByOne(r,i,B){B&&(this.setMaximumLiveSection(r),this.received.totalLive+=i,this.received.totalsLiveTrendLive.sections[r-1]+=i,this.increaseTrendLiveAccumulatedByOne(this.received.totalsLiveTrendLive,r,i)),this.received.totalPostGame+=i,this.received.avgPostGameTrendLive.sections[r-1]+=i,this.increaseTrendLiveAccumulatedByOne(this.received.avgPostGameTrendLive,r,i)}increaseTrendLiveAccumulatedByOne(r,i,B){for(let D=i-1;D<r.accumulated.length;D++)r.accumulated[D]+=B}decreaseAccomplishedLiveByOne(r,i){this.accomplished.totalLive>0&&(this.accomplished.totalLive-=i),this.accomplished.totalsLiveTrendLive.sections[r-1]>0&&(this.accomplished.totalsLiveTrendLive.sections[r-1]-=i,this.decreaseTotalsLiveTrendLiveAccumulatedByOne(this.accomplished.totalsLiveTrendLive,r,i))}decreaseReceivedLiveByOne(r,i){this.received.totalLive>0&&(this.received.totalLive-=i),this.received.totalsLiveTrendLive.sections[r-1]>0&&(this.received.totalsLiveTrendLive.sections[r-1]-=i,this.decreaseTotalsLiveTrendLiveAccumulatedByOne(this.received.totalsLiveTrendLive,r,i))}decreaseTotalsLiveTrendLiveAccumulatedByOne(r,i,B){for(let D=r.accumulated.length-1;D>=i-1;D--)r.accumulated[D]-=B}calculateAvg(r){r&&(this.accomplished.avgPostGame=this.accomplished.totalPostGame/r,this.received.avgPostGame=this.received.totalPostGame/r,this.accomplished.avgPostGameTrendLive.sections=this.getAvgPostGameTrendLiveAvg(this.accomplished.avgPostGameTrendLive.sections,r),this.accomplished.avgPostGameTrendLive.accumulated=this.getAvgPostGameTrendLiveAvg(this.accomplished.avgPostGameTrendLive.accumulated,r),this.received.avgPostGameTrendLive.sections=this.getAvgPostGameTrendLiveAvg(this.received.avgPostGameTrendLive.sections,r),this.received.avgPostGameTrendLive.accumulated=this.getAvgPostGameTrendLiveAvg(this.received.avgPostGameTrendLive.accumulated,r))}getAvgPostGameTrendLiveAvg(r,i){return r.map(B=>B/i)}calculateRanking(r,i,B,D,c,m,a,y){let f=[];D===3&&r&&r.length&&(B.playingAs.length!==2||B.matchResult.length!==3)?f=Array.from(r.reduce((v,_)=>{const p=_[i.playingAs]===1,l=p?"1":"2",o=v.get(_[i.gameId]);if(o)o[l]?o[l].arrayPlays.push(_):o[l]={numberTeamId:_[i.teamId],arrayPlays:[_]};else{const s={numberMatchResult:_[i.matchResult]};p&&(s[1]={numberTeamId:_[i.teamId],arrayPlays:[_]}),v.set(_[i.gameId],s)}return v},new Map).values()).reduce((v,_)=>{const p=B.playingAs.length===2?"both":B.playingAs[0].toString();return(p==="both"&&(_[1].numberTeamId===B.teamId||_[2].numberTeamId===B.teamId)||p!=="both"&&_[p].numberTeamId===B.teamId)&&B.matchResult.includes(_.numberMatchResult)&&v.push(..._[1].arrayPlays,..._[2].arrayPlays),v},[]).filter(v=>B.sections.includes(v[i.section])):(f=r?[...r]:[],a&&r&&(f=r.filter(n=>B.playingAs.includes(n[i.playingAs])&&B.matchResult.includes(n[i.matchResult])&&B.sections.includes(n[i.section])))),this.setTeamRanking(f,D,i,B.teamId,m,"accomplished",y)}setTeamRanking(r,i,B,D,c,m,a){let y=null,f=null;i===3&&(y=new Map,f={},r.forEach(_=>{const p=y.get(_[B.gameId]);p?p[_[B.teamId.toString()]]?p[_[B.teamId.toString()]]+=_[B.total]:p[_[B.teamId.toString()]]=_[B.total]:y.set(_[B.gameId],{[_[B.teamId.toString()]]:_[B.total]})}),Array.from(y.values()).forEach(_=>{const[p,l]=Object.keys(_).map(s=>s),o=_[p]+_[l];this.addPassesAvgByTeam(f,p,o?_[p]/o:0),this.addPassesAvgByTeam(f,l,o?_[l]/o:0)}));const n=c.sort((_,p)=>_.team_id-p.team_id).map(_=>{if(i===3){const p=f[_.team_id.toString()];return{teamId:_.team_id,points:p?p.numberTotalPassesAvg/p.numberGamesCount:0,total:p?p.numberTotalPassesAvg:0}}else{const p=r.reduce((l,o)=>o[B.teamId]===_.team_id&&i===o[B.categoryId]?l+o[B.total]:l,0);return{teamId:_.team_id,points:_[`${a}FilterGames`]?p/_[`${a}FilterGames`]:0,total:p}}}).sort((_,p)=>p.points-_.points);this.accomplished.arrayRankings=n;const v=n.findIndex(_=>_.teamId===D);i===3&&(this.accomplished.avgPreGame=n[v].points),this[m].ranking=v+1,this[m].leader=n[0]}addPassesAvgByTeam(r,i,B){r[i]?(r[i].numberGamesCount+=1,r[i].numberTotalPassesAvg+=B):r[i]={numberGamesCount:1,numberTotalPassesAvg:B}}}class Bs{constructor(r,i,B,D,c,m,a,y,f,n){Vc(this,"id","");Vc(this,"generalId",0);Vc(this,"name","");Vc(this,"names",{"0-0":"","1-1":"","0-1":"","1-0":""});Vc(this,"mentions",{"0-0":"","1-1":"","0-1":"","1-0":""});Vc(this,"accomplishedCategoryIds",[]);Vc(this,"receivedCategoryIds",[]);Vc(this,"generalCategoriesIds",{accomplished:0,received:0});Vc(this,"specialMention","");Vc(this,"homeTeam",new x6);Vc(this,"visitingTeam",new x6);Vc(this,"isLeagueDataCalculated",!1);Vc(this,"leagueAccomplishedMax",0);Vc(this,"leagueReceivedMax",0);Vc(this,"leagueAccomplishedAvg",0);Vc(this,"leagueReceivedAvg",0);Vc(this,"leagueAccomplishedAccumulator",0);Vc(this,"leagueReceivedAccumulator",0);Vc(this,"homeTeamType","homeTeam");Vc(this,"visitingTeamType","visitingTeam");Vc(this,"betOnly",!1);Vc(this,"isPercent",!1);this.id=`${B.accomplished}-${B.received}`,this.accomplishedCategoryIds=r||[],this.receivedCategoryIds=i||[],this.generalCategoriesIds=B||{accomplished:0,received:0},this.name=D,this.names["0-0"]=D||"",this.names["1-1"]=c||"",this.names["0-1"]=m||"",this.names["1-0"]=a||"",this.generalId=y||0,this.betOnly=f||!1,this.isPercent=n||!1}addLeaguePlays(r,i,B){r.length===0||!B||this.isLeagueDataCalculated||(r.forEach(D=>{this.isAccomplishedLeaguePlay(D[i.categoryId])&&(this.leagueAccomplishedAccumulator+=D[i.total]),this.isReceivedLeaguePlay(D[i.categoryId])&&(this.leagueReceivedAccumulator+=D[i.total])}),this.leagueAccomplishedAvg=(this.leagueAccomplishedAccumulator/(2*B)).toFixed(2),this.leagueAccomplishedMax=Math.round(this.leagueAccomplishedAvg*1.5),this.leagueReceivedAvg=(this.leagueReceivedAccumulator/(2*B)).toFixed(2),this.leagueReceivedMax=Math.round(this.leagueReceivedAvg*1.5),this.isLeagueDataCalculated=!0)}addSpecialMention(r,i,B){let D="-";for(const[c,m]of Object.entries(this.generalCategoriesIds))r===m&&(D=`${c==="accomplished"?"0":"1"}${D}`),i===m&&(D=`${D}${c==="accomplished"?"0":"1"}`);D.length===3&&(this.mentions[D]=B)}resetMentions(){this.mentions={"0-0":"","1-1":"","0-1":"","1-0":""}}addTeamPlays(r,i,B,D,c){!B||!c||r!==this.homeTeamType&&r!==this.visitingTeamType||(B.forEach(m=>{this.isAccomplishedPlay(m[D.categoryId])?this[r].increaseAccomplishedByOne(m[D.section],m[D.total]):this.isReceivedPlay(m[D.categoryId])&&this[r].increaseReceivedByOne(m[D.section],m[D.total])}),this[r].calculateAvg(c))}addLivePlay(r,i,B,D,c=!1,m=!1){(r===this.homeTeamType||r===this.visitingTeamType)&&B[D.categoryId].includes(this.generalCategoriesIds.accomplished)&&this[r].increaseAccomplishedByOne(B[D.section],B[D.total],!0)}subtractLivePlay(r,i,B,D,c){(r===this.homeTeamType||r===this.visitingTeamType)&&(this.isAccomplishedPlay(B[D.categoryId])&&!c?this[r].decreaseAccomplishedLiveByOne(B[D.section],B[D.total]):this.isReceivedPlay(B[D.categoryId])&&c&&this[r].decreaseReceivedLiveByOne(B[D.section],B[D.total]))}isAccomplishedLeaguePlay(r){return!!(this.receivedCategoryIds[0]===40?this.receivedCategoryIds:this.accomplishedCategoryIds).find(B=>r===B||`${r}_r`===B)}isReceivedLeaguePlay(r){return!!this.receivedCategoryIds.find(i=>r===i)}isAccomplishedPlay(r){return this.generalCategoriesIds.accomplished===r}isReceivedPlay(r){return this.generalCategoriesIds.received===r}calcRankingLeague(r,i,B,D,c,m=!1){this[this.homeTeamType].calculateRanking(r,i,B,this.generalCategoriesIds.accomplished,this.generalCategoriesIds.received,c,m,this.homeTeamType),this[this.visitingTeamType].calculateRanking(r,i,D,this.generalCategoriesIds.accomplished,this.generalCategoriesIds.received,c,m,this.visitingTeamType)}resetData(){this.homeTeam=new x6,this.visitingTeam=new x6,this.isLeagueDataCalculated=!1,this.leagueAccomplishedMax=0,this.leagueReceivedMax=0,this.leagueAccomplishedAvg=0,this.leagueReceivedAvg=0,this.leagueAccomplishedAccumulator=0,this.leagueReceivedAccumulator=0}isInGeneralCategory(r){return this.generalCategoriesIds.accomplished===r||this.generalCategoriesIds.received===r}}const opa={general:{name:"General",priority:1,parentInfo:{parentAnalysis:[1],analysisTypeBlocks:[1]},subcategories:{goals:new Bs([12,55,"35_r","54_r"],null,{accomplished:1,received:0},"Goles","Goles recibidos","Goles realizados / recibidos","Goles recibidos / realizados",1),shotToGoal:new Bs([91,95,158,167,176,343,330,333,423],null,{accomplished:2,received:0},"Remates a destino","","","",1),possession:new Bs([2,3,20,21],null,{accomplished:3,received:0},"Posesión","","","",1,!1,!0),yellowCards:new Bs([14,52],null,{accomplished:4,received:0},"Tarjetas amarillas","","","",1),redCards:new Bs([15,53],null,{accomplished:5,received:0},"Tarjetas rojas","","","",1),centerCrosses:new Bs([13,25],null,{accomplished:6,received:0},"Centros totales","","","",1)}},offensive:{name:"Ofensivo",priority:2,parentInfo:{parentAnalysis:[1],analysisTypeBlocks:[1]},subcategories:{shotsOnGoal:new Bs([19],null,{accomplished:7,received:0},"Tiros a gol","","","",1),shotsOnGoalDestination:new Bs([91,95],null,{accomplished:8,received:0},"Tiros a gol destino","","","",1),shotToGoal:new Bs([91,95,158,167,176,343,330,333,423],null,{accomplished:2,received:0},"Remates a destino","","","",1),ballsWonOpponentPenaltyBox:new Bs([11],null,{accomplished:10,received:0},"Balones ganados área rival","","","",1),centersFromRight:new Bs([25],null,{accomplished:11,received:0},"Centros por derecha","","","",1),centersFromLeft:new Bs([13],null,{accomplished:12,received:0},"Centros por izquierda","","","",1),success1VS1:new Bs([4],null,{accomplished:13,received:0},"Enfrentamientos ofensivos exitosos","","","",1),unsuccess1VS1:new Bs([209],null,{accomplished:14,received:0},"Enfrentamientos ofensivos no exitosos","","","",1)}},defensive:{name:"Defensivo",priority:3,parentInfo:{parentAnalysis:[1],analysisTypeBlocks:[1]},subcategories:{saves:new Bs([39],null,{accomplished:15,received:0},"Atajadas","","","",1),ballsWonOwnPenaltyBox:new Bs([23],null,{accomplished:16,received:0},"Balones ganados área propia","","","",1),success1VS1:new Bs([5],null,{accomplished:17,received:0},"Enfrentamientos defensivos exitosos","","","",1),unsuccess1VS1:new Bs([209],null,{accomplished:18,received:0},"Enfrentamientos defensivos no exitosos","","","",1),aerialGame:new Bs([24],null,{accomplished:19,received:0},"Juego aéreo resto del campo","","","",1),clearances:new Bs([34],null,{accomplished:20,received:0},"Rechaces","","","",1)}},possession:{name:"Posesión",priority:4,parentInfo:{parentAnalysis:[1],analysisTypeBlocks:[1]},subcategories:{totalPasses:new Bs([2,3,20,21],null,{accomplished:21,received:0},"Pases totales","","","",1),successPasses:new Bs([2,20],null,{accomplished:22,received:0},"Pases acertados","","","",1),successPassesRivalHalf:new Bs([20],null,{accomplished:23,received:0},"Pases acertados en cancha rival","","","",1),ballsRecoveredInChallenge:new Bs([483],null,{accomplished:24,received:0},"Balones recuperados en disputa","","","",1),ballsRecoveredWithoutChallenge:new Bs([484],null,{accomplished:25,received:0},"Balones recuperados sin disputa","","","",1),ballsLostInChallenge:new Bs([494],null,{accomplished:26,received:0},"Balones perdidos en disputa","","","",1),ballsLostWithoutChallenge:new Bs([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 Bs([155,164,173,362,371,380],null,{accomplished:28,received:0},"Tiros libres 4/4","","","",1),freeKick34:new Bs([150,357],null,{accomplished:29,received:0},"Tiros libres 3/4","","","",1),freeKickOwnHalf:new Bs([149,356],null,{accomplished:30,received:0},"Tiros libres cancha propia","","","",1),cornerFromRight:new Bs([32],null,{accomplished:31,received:0},"Tiros de esquina por derecha","","","",1),cornerFromLeft:new Bs([31],null,{accomplished:32,received:0},"Tiros de esquina por izquierda","","","",1),goalKick:new Bs([264,28],null,{accomplished:33,received:0},"Saques de meta","","","",1)}},penalties:{name:"Infracciones",priority:6,parentInfo:{parentAnalysis:[1],analysisTypeBlocks:[1]},subcategories:{totalFouls:new Bs([17,50],null,{accomplished:34,received:0},"Faltas totales","","","",1),foulOwnGoal:new Bs([348,478],null,{accomplished:35,received:0},"Faltas cerca de su propia portería","","","",1),fieldFouls:new Bs([349,350,479,480],null,{accomplished:36,received:0},"Faltas resto del campo","","","",1),penaltyKick:new Bs([461,481],null,{accomplished:37,received:0},"Penales cometidos","","","",1),offside:new Bs([33],null,{accomplished:38,received:0},"Fueras de lugar","","","",1)}}},spa=[{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}],lpa=["teamId","categoryId","matchlapse","section","matchResult","playingAs","total","gameId"];let FM=null;function cpa(){return FM||(FM=Wg(lpa)),FM}const dpa=["playId","gameId","teamId","playerId","momentOfPlay","categoryId","categoryType","matchLapse","section","matchResult","playingAs","total","coordinate1X","coordinate1Y","coordinate2X","coordinate2Y","coordinate3X","coordinate3Y"];let LM=null;function upa(){return LM||(LM=Wg(dpa)),LM}function w6(e,r,i){return[i.get(e[r.categoryId])||[],e[r.teamId],e[r.matchResult],e[r.playingAs],e[r.matchLapse],e[r.section],e[r.total]]}function MJ(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 DM(e,r,i){let B=[...r];return e[i.categoryId]===2&&(B[0]=14),e[i.categoryId]===20&&(B[0]=15),[14,15].includes(B[0])?B:null}const hpa=F8(),ppa=[{name:"Liga MX",id:1},{name:"Liga MX Femenil",id:1001},{name:"Liga Expansión MX",id:1071}],fpa={nextGeneral:{namespaced:!0,state:{seasonId:0,pastSeasonId:0,usePastSeasonId:!1,isSocketConnected:!1,indexesLP:EJ(),indexesTSP:ipa(),indexesLS:cpa(),indexesTLP:upa(),nextGamesDataStructure:opa,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(r=>r.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=>e.gameForAnalysis.game_status===4&&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 spa.filter(r=>r.parentAnalysis.includes(e.selectedAnalysis.id))},homeTeamFilteredPlays(e){if(e.homeTeamFilter.requiresPlaysFiltering)return SJ(e.homeTeamPlays,e.homeTeamFilter.playingAs,e.homeTeamFilter.matchResult,e.homeTeamFilter.sections,e.indexesTSP)},visitingTeamFilteredPlays(e){if(e.visitingTeamFilter.requiresPlaysFiltering)return SJ(e.visitingTeamPlays,e.visitingTeamFilter.playingAs,e.visitingTeamFilter.matchResult,e.visitingTeamFilter.sections,e.indexesTSP)},currentSeasonTeamsIds(e){return e.currentSeasonTeams.map(r=>r.team_id)},canFilledStructure(e){return e.homeTeamFilter.requiresPlaysFiltering||e.visitingTeamFilter.requiresPlaysFiltering},totalFilteredHomeGames(e){return e.homeGames.filter(r=>e.homeTeamFilter.playingAs.includes(r[0])).filter(r=>e.homeTeamFilter.matchResult.includes(r[1])).reduce((r,i)=>r+i[2],0)},totalFilteredVisitingGames(e){return e.visitingGames.filter(r=>e.visitingTeamFilter.playingAs.includes(r[0])).filter(r=>e.visitingTeamFilter.matchResult.includes(r[1])).reduce((r,i)=>r+i[2],0)},filledDataStructure(e,r){if(e.currentSeasonPlays)for(const i of Object.values(e.nextGamesDataStructure))for(const B of Object.values(i.subcategories))e.homeTeamFilter.requiresPlaysFiltering&&B.homeTeam.resetTotals(),e.visitingTeamFilter.requiresPlaysFiltering&&B.visitingTeam.resetTotals(),B.addLeaguePlays(e.currentSeasonPlays,e.indexesLP,e.totalSeasonFinishedGames),B.addTeamPlays(B.homeTeamType,e.gameForAnalysis.home_team,r.homeTeamFilteredPlays,e.indexesTSP,e.showPostMatch?1:r.totalFilteredHomeGames),B.addTeamPlays(B.visitingTeamType,e.gameForAnalysis.visiting_team,r.visitingTeamFilteredPlays,e.indexesTSP,e.showPostMatch?1:r.totalFilteredVisitingGames);return e.nextGamesDataStructure},arrayFilledDataSortedByPriority(e,r){return Object.values(r.filledDataStructure).sort((i,B)=>i.priority-B.priority)},statisticData(e,r){for(const i of Object.values(r.filledDataStructure))if(i.parentInfo.parentAnalysis.includes(e.selectedAnalysis.id)&&i.parentInfo.analysisTypeBlocks.includes(e.selectedStatisticTypeBlock))return i.subcategories;return{}},accomplished(e){return e.homeTeamFilter.statistics===0}},mutations:{updateGameForAnalysisByProps(e,r){for(const[i,B]of Object.entries(r))e.gameForAnalysis[i]=B},setCurrentTournamentName(e,r){e.currentTournamentName=r},setBetSubcategoriesObjects(e,r){e.betSubcategoriesObjects=r},setRegularSeasonName(e,r){e.regularSeasonName=r},setBetSubcategories(e,r){e.betSubcategories=r},setBetDescription(e,r){e.betDescription=r},setSeasonId(e,r){e.seasonId=Number(r)},setHome(e,r){e.homeTeamInfo=r},setAway(e,r){e.awayTeamInfo=r},setMenuOptionActive(e,r){e.menuOptionActive=r},setPastSeasonId(e,r){e.pastSeasonId=r},setUsePastSeasonId(e,r){e.usePastSeasonId=r,r&&(e.oldSeasonId=e.pastSeasonId)},updateShowPostMatchData(e,r){e.showPostMatch=r},setHomeResultGame(e,r){e.homeResultGame=r},setAwayResultGame(e,r){e.awayResultGame=r},updateIsSocketConnected(e,r){e.isSocketConnected=r,r&&e.gameForAnalysis.is_live&&e.gameForAnalysis.game_status===4&&XP(`game.${e.gameForAnalysis.game_id}.v2`)},updateCurrentSeasonTeams(e,r){e.currentSeasonTeams=r,e.currentSeasonTeams.forEach(i=>{i.playedGames=e.currentSeasonGames.reduce((B,D)=>{if(D.game_status===1&&(D.home_team===i.team_id||D.visiting_team===i.team_id)){const c=D.score[0]-D.score[1],m=D.home_team===i.team_id;B.push({playingAs:m?1:2,matchResult:c===0?3:m?c>0?1:2:c<0?1:2})}return B},[])})},updateCurrentSeasonGames(e,r){e.currentSeasonGames=r},updateGameId(e,r){e.gameId=r},updateGameForAnalysis(e,r){e.gameForAnalysis=r,e.isLive=!!r.is_live,e.homeTeamFilter.teamId=e.gameForAnalysis.home_team,e.visitingTeamFilter.teamId=e.gameForAnalysis.visiting_team},updateSelectedAnalysis(e,r){e.selectedAnalysis=r},updateShowLiveData(e,r){e.showLiveData=r},toggleAdvanceFilter(e){e.showAdvanceFilter=!e.showAdvanceFilter},updateIdAssetSelected(e,r){e.idAssetSelected=r},updateStats(e,r){e.currentSeasonPlays=r},updateFilterAux(e){e.filterAux||(e.filterAux={homeTeamFilter:{...e.homeTeamFilter},visitingTeamFilter:{...e.visitingTeamFilter}})},updateFilters(e,{filters:r,needsFormat:i=!1}){if(i){if(!r||!r.local||!r.local.statistics||!r.visit||!r.visit.statistics)return;e.homeTeamFilter=eB(e.homeTeamFilter,r.local,e.gameForAnalysis.home_team),e.visitingTeamFilter=eB(e.visitingTeamFilter,r.visit,e.gameForAnalysis.visiting_team),e.selectedStatisticTypeBlock!==r.local.statistics.block&&(e.selectedStatisticTypeBlock=r.local.statistics.block)}else e.homeTeamFilter={...r.homeTeamFilter,statistics:0},e.visitingTeamFilter={...r.visitingTeamFilter,statistics:0}},updateFinishedGames(e,r){e.totalSeasonFinishedGames=r},updateHomeTeamPlays(e,r){e.homeTeamPlays=r},updateVisitingTeamPlays(e,r){e.visitingTeamPlays=r},addSpecialMentions(e,r){const i=Object.values(e.nextGamesDataStructure);i.forEach(B=>{for(const D of Object.values(B.subcategories))D.resetMentions()}),i.forEach(B=>{for(const D of r)for(const c of Object.values(B.subcategories))c.addSpecialMention(D[0],D[1],D[2])})},setDefaultFilter(e,r){e.defaultFilter={homeTeamFilter:{...r.homeTeamFilter,teamId:e.gameForAnalysis.home_team},visitingTeamFilter:{...r.awayTeamFilter,teamId:e.gameForAnalysis.visiting_team}}},addLiveGamePlay(e,r){if(!e.livePlays.has(r[e.indexesTLP.playId])){e.livePlays.set(r[e.indexesTLP.playId],r);const B=w6(r,e.indexesTLP,e.categoriesMap);for(const D of Object.values(e.nextGamesDataStructure))for(const c of Object.values(D.subcategories))c.addLivePlay(e.gameForAnalysis.home_team===B[e.indexesTSP.teamId]?"homeTeam":"visitingTeam",B[e.indexesTSP.teamId],B,e.indexesTSP,e.isLive,!1)}},updateLiveGamePlay(e,r){const i=!!r[e.indexesTLP.length],B=e.livePlays.get(r[e.indexesTLP.playId]);if(nse(B,r))return;let D="";const c=e.gameForAnalysis.home_team===r[e.indexesTLP.teamId]?"homeTeam":"visitingTeam";B&&(D=e.gameForAnalysis.home_team===B[e.indexesTLP.teamId]?"homeTeam":"visitingTeam");const m=w6(B,e.indexesTLP,e.categoriesMap),a=DM(B,m,e.indexesTLP),y=w6(r,e.indexesTLP,e.categoriesMap),f=DM(r,y,e.indexesTLP);for(const n of Object.values(e.nextGamesDataStructure))for(const v of Object.values(n.subcategories))B&&(v.subtractLivePlay(D,m[e.indexesTSP.teamId],m,e.indexesTSP,i),a&&v.subtractLivePlay(D,a[e.indexesTSP.teamId],a,e.indexesTSP,i)),v.addLivePlay(c,y[e.indexesTSP.teamId],y,e.indexesTSP,e.isLive,i),f&&v.addLivePlay(c,f[e.indexesTSP.teamId],f,e.indexesTSP,e.isLive,i);e.livePlays.set(r[e.indexesTLP.playId],r)},deleteLiveGamePlay(e,r){const i=!!r[e.indexesTLP.length],B=e.livePlays.get(r[e.indexesTLP.playId]);let D="";if(B){D=e.gameForAnalysis.home_team===B[e.indexesTLP.teamId]?"homeTeam":"visitingTeam",e.livePlays.delete(B[e.indexesTLP.playId]);const c=w6(B,e.indexesTLP,e.categoriesMap),m=DM(r,c,e.indexesTLP);for(const a of Object.values(e.nextGamesDataStructure))for(const y of Object.values(a.subcategories))y.subtractLivePlay(D,c[e.indexesTSP.teamId],c,e.indexesTSP,i),m&&y.subtractLivePlay(D,m[e.indexesTSP.teamId],m,e.indexesTSP,i)}},clearLiveTotals(e){for(const r of Object.values(e.nextGamesDataStructure))for(const i of Object.values(r.subcategories))i.homeTeam.resetTotalsLive(),i.visitingTeam.resetTotalsLive()},updateSeasonStatistics(e,r){e.statistics=r},updateOldSeasonId(e,r){e.oldSeasonId=r},addRankingInSubcategories(e,{getters:r,isPremiumAccount:i}){if(!(e.homeTeamFilter.teamId&&e.visitingTeamFilter.teamId))return;e.isRankingCalculating=!1,e.currentSeasonTeams.forEach(c=>{c.homeTeamFilterGames=c.playedGames.filter(m=>e.homeTeamFilter.playingAs.includes(m.playingAs)&&e.homeTeamFilter.matchResult.includes(m.matchResult)).length,c.visitingTeamFilterGames=c.playedGames.filter(m=>e.visitingTeamFilter.playingAs.includes(m.playingAs)&&e.visitingTeamFilter.matchResult.includes(m.matchResult)).length});const B=[],D=new Map;for(const c of Object.values(e.nextGamesDataStructure))for(const m of Object.values(c.subcategories))B.push(m);r.rankingData.forEach(c=>{for(const m of B)if(m.isInGeneralCategory(c[e.indexesLS.categoryId])){D.has(m.id)?D.get(m.id).push(c):D.set(m.id,[c]);break}})},prepareCleanAllStatistics(e){e.homeTeamFilter.requiresPlaysFiltering=!0,e.visitingTeamFilter.requiresPlaysFiltering=!0},setHomeGames(e,r){e.homeGames=MJ(r)},setVisitingGames(e,r){e.visitingGames=MJ(r)},generateCategoriesMap(e){for(const r of Object.values(e.nextGamesDataStructure))for(const i of Object.values(r.subcategories))i.accomplishedCategoryIds.forEach(B=>{const D=e.categoriesMap.get(B);D?D.push(i.generalCategoriesIds.accomplished):e.categoriesMap.set(B,[i.generalCategoriesIds.accomplished])})},resetNextGamesDataStructure(e){for(const r of Object.values(e.nextGamesDataStructure))for(const i of Object.values(r.subcategories))i.resetData()}},actions:{turnOnOffDefaultFilters({state:e,commit:r},{command:i}){i==="on"?r("updateFilters",{filters:e.defaultFilter,needsFormat:!1}):r("updateFilters",{filters:e.filterAux,needsFormat:!1})},async setAndGetStatsPostMatch({commit:e},r){try{const m=await tpa({gameId:r.gameId});if(m){var i=[],B=[],D={season:0,total:0,visit:{total:0,draw:0,win:0,lose:0},played:0,local:{total:0,draw:0,win:0,lose:0}},c={season:0,total:0,visit:{total:0,draw:0,win:0,lose:0},played:0,local:{total:0,draw:0,win:0,lose:0}};Object.keys(m.data).length!==0&&(i=m.data.data.filter(a=>a[1]==r.homeTeam),B=m.data.data.filter(a=>a[1]==r.awayTeam),D=m.data.games,c=m.data.games),e("updateHomeTeamPlays",i),e("updateVisitingTeamPlays",B),e("setHomeGames",D),e("setVisitingGames",c)}else e("updateHomeTeamPlays",[]),e("updateVisitingTeamPlays",[])}catch(m){return Promise.reject(m)}},async fillStatisticDataPostMatch({commit:e,dispatch:r},i){e("prepareCleanAllStatistics"),e("updateHomeTeamPlays",[]),e("updateVisitingTeamPlays",[]),e("setIsSectionLoading",!0,{root:!0});try{let B=[];e("updateGameForAnalysis",i.gameInfo),B.push(r("setAndGetStatsPostMatch",{gameId:i.game,homeTeam:i.homeTeam,awayTeam:i.awayTeam})),await Promise.all(B)}catch(B){throw new Error(B)}finally{e("setIsSectionLoading",!1,{root:!0})}},async checkState({state:e,dispatch:r,commit:i},{gameId:B,isTeamsAnalysis:D,currentSeasonId:c,isLoginChanged:m=!1,defaultFilter:a=null,gameInfo:y=null,isCupGame:f=!1}){try{let n={},v=e.seasonId!==Number(c);const _=[];i("setIsSectionLoading",!0,{root:!0}),i("setUsePastSeasonId",!1),v&&i("setSeasonId",c),i("updateGameId",Number(B)),e.oldSeasonId!==e.seasonId&&i("resetNextGamesDataStructure");const p=await r("getCurrentSeasonGames",Number(B));if(i("leagueGeneral/updateCurrentSeasonGames",p,{root:!0}),n=p.find(l=>l.game_id===Number(B)),!n&&y&&(n=y),n&&i("updateGameForAnalysis",n),n.game_status!==1&&((m||e.categoriesMap.size===0)&&i("generateCategoriesMap"),f||await r("checkTeamsData",{gameId:B,isFromBet:!!a}),(m||e.oldSeasonId!==e.seasonId||e.statistics.length===0)&&_.push(r("getSeasonStatistics"))),e.usePastSeasonId){const l=await r("getCurrentSeasonGamesLast");i("leagueGeneral/updateCurrentSeasonGames",l,{root:!0})}(m||e.currentSeasonTeams.length===0||!e.currentSeasonTeams.find(l=>n.home_team===l.team_id))&&_.push(r("getCurrentSeasonTeams")),i("setHomeResultGame",n.score[0]),i("setAwayResultGame",n.score[1]),D?n.game_status!==1?(await r("fillStatisticData",{gameId:B,gameinfo:n,promises:_,defaultFilter:a}),i("updateShowPostMatchData",!1)):(i("updateStats",[]),i("updateShowPostMatchData",!0),_.push(r("fillStatisticDataPostMatch",{game:B,homeTeam:n.home_team,awayTeam:n.visiting_team,gameInfo:n})),await Promise.all(_)):i("setIsSectionLoading",!1,{root:!0})}catch(n){return Promise.reject(n)}},async fillStatisticData({commit:e,dispatch:r,getters:i,rootGetters:B,state:D},{gameId:c,gameinfo:m,promises:a=[],defaultFilter:y=null}){let f=null;try{e("setIsSectionLoading",!0,{root:!0}),e("prepareCleanAllStatistics"),e("updateHomeTeamPlays",[]),e("updateVisitingTeamPlays",[]),e("updateGameForAnalysis",m),(m.is_live||m.game_status===0)&&a.push(r("getCurrentLiveGamePlays",c)),a.push(r("getSpecialMentionsByGame",c)),a.push(r("getHomeTeamPlays")),a.push(r("getVisitingTeamPlays")),a.push(r("getCurrentSeasonPlays")),y&&a.push(npa(y)),f=await Promise.all(a)}catch(n){throw new Error(n)}finally{setTimeout(()=>{if(e("addRankingInSubcategories",{getters:i,isPremiumAccount:B["loginGeneral/getPremiumAccount"]}),y){const[n]=f.pop();n&&(e("setBetSubcategories",n.categories),e("setBetDescription",n.sectionDescription),e("setDefaultFilter",n.params),e("updateFilterAux"),e("updateFilters",{filters:D.defaultFilter,needsFormat:!1}),r("updateRankingInSubcategories"))}},100),e("setIsSectionLoading",!1,{root:!0})}},async checkTeamsData({state:e,dispatch:r,rootState:i,commit:B},{gameId:D,isFromBet:c}){try{B("setUsePastSeasonId",!1)}catch(m){throw new Error(m)}},async getSpecialMentionsByGame({commit:e},r){try{const i=await Jha({gameId:r});e("addSpecialMentions",i)}catch(i){return Promise.reject(i)}},async getCurrentSeasonGames({commit:e,state:r},i){try{const{teams:B,games:D,past_season_id:c,tournament_id:m}=await Xha({seasonId:r.usePastSeasonId?r.pastSeasonId:r.seasonId,gameId:i}),a=ppa.find(y=>y.id===m);return a&&e("setCurrentTournamentName",a.name),e("setHome",B[0]),e("setAway",B[1]),r.usePastSeasonId||e("setPastSeasonId",c),await e("updateCurrentSeasonGames",D),D&&Array.isArray(D)&&e("updateFinishedGames",D.reduce((y,f)=>(f.game_status===1&&(y+=1),y),0)),D}catch(B){return Promise.reject(B)}},async getCurrentSeasonGamesLast({commit:e,state:r}){try{const{games:i,past_season_id:B}=await TJ({seasonId:r.usePastSeasonId?r.pastSeasonId:r.seasonId});return r.usePastSeasonId||e("setPastSeasonId",B),await e("updateCurrentSeasonGames",i),i&&Array.isArray(i)&&e("updateFinishedGames",i.reduce((D,c)=>(c.game_status===1&&(D+=1),D),0)),i}catch(i){return Promise.reject(i)}},async getCurrentSeasonTeams({commit:e,state:r}){try{const i=await epa({seasonId:r.usePastSeasonId?r.pastSeasonId:r.seasonId});e("updateCurrentSeasonTeams",i.data.teams)}catch{}},async getSeasonStatistics({commit:e,state:r}){try{const i=r.usePastSeasonId?r.pastSeasonId:r.seasonId,B=await qha({seasonId:i});e("updateSeasonStatistics",B),e("updateOldSeasonId",i)}catch(i){return Promise.reject(i)}},updateRankingInSubcategories({state:e,commit:r,getters:i,rootGetters:B}){e.currentSeasonGames.length>0&&r("addRankingInSubcategories",{getters:i,isPremiumAccount:B["loginGeneral/getPremiumAccount"]})},async getHomeTeamPlays({commit:e,state:r}){try{const i=await AJ({seasonId:r.usePastSeasonId?r.pastSeasonId:r.seasonId,teamId:r.gameForAnalysis.home_team});i.data&&(e("updateHomeTeamPlays",i.data.data),e("setHomeGames",i.data.games))}catch(i){return Promise.reject(i)}},async getVisitingTeamPlays({commit:e,state:r}){try{const i=await AJ({seasonId:r.usePastSeasonId?r.pastSeasonId:r.seasonId,teamId:r.gameForAnalysis.visiting_team});i.data&&(e("updateVisitingTeamPlays",i.data.data),e("setVisitingGames",i.data.games))}catch(i){return Promise.reject(i)}},async getCurrentSeasonPlays({commit:e,state:r}){try{const i=await Wha({seasonId:r.usePastSeasonId?r.pastSeasonId:r.seasonId});e("updateStats",i)}catch(i){return Promise.reject(new Error(i))}},async getCurrentLiveGamePlays({state:e,commit:r},i){try{const B=await Zha({gameId:i});e.livePlays=new Map,B.forEach(D=>{e.gameForAnalysis.game_id===D[e.indexesTLP.gameId]&&(e.gameForAnalysis.home_team===D[e.indexesTLP.teamId]||e.gameForAnalysis.visiting_team===D[e.indexesTLP.teamId])&&r("addLiveGamePlay",D)})}catch(B){throw new Error(B)}},socket_new({state:e,commit:r},i){const B=i[1];(e.gameForAnalysis.home_team===B[e.indexesTLP.teamId]||e.gameForAnalysis.visiting_team===B[e.indexesTLP.teamId])&&r("addLiveGamePlay",B)},socket_update({state:e,commit:r},i){const B=i[1];e.gameForAnalysis.game_id===B[e.indexesTLP.gameId]&&(e.gameForAnalysis.home_team===B[e.indexesTLP.teamId]||e.gameForAnalysis.visitingTeam===B[e.indexesTLP.teamId])&&r("updateLiveGamePlay",B)},socket_delete({state:e,commit:r},i){const B=i[1];e.gameForAnalysis.game_id===B[e.indexesTLP.gameId]&&(e.gameForAnalysis.home_team===B[e.indexesTLP.teamId]||e.gameForAnalysis.visiting_team===B[e.indexesTLP.teamId])&&r("deleteLiveGamePlay",B)},exitChannel({state:e,getters:r,rootState:i,rootGetters:B,commit:D}){const c=B["loginGeneral/getPremiumAccount"];r.isLive&&c&&(D("updateShowLiveData",!0),D("clearLiveTotals"),e.livePlays.clear(),hpa.emit("unsubscribe",{channel:`game.${e.gameForAnalysis.game_id}.v2`}))},cleanStats({state:e}){for(const i of Object.values(e.nextGamesDataStructure))for(const B of Object.values(i.subcategories))B.homeTeam.resetTotals(),B.visitingTeam.resetTotals(),B.homeTeam.resetTotalsLive(),B.visitingTeam.resetTotalsLive(),B.isBetMainSubcategory=!1;Object.values(e.nextGamesDataStructure).forEach(i=>{for(const B of Object.values(i.subcategories))B.resetMentions()}),e.currentSeasonPlays=null,e.homeTeamPlays=[],e.visitingTeamPlays=[],e.homeTeamFilter.requiresPlaysFiltering=!0,e.visitingTeamFilter.requiresPlaysFiltering=!0,e.isRankingCalculating=!0},cleanAllStats({state:e}){for(const i of Object.values(e.nextGamesDataStructure))for(const B of Object.values(i.subcategories))B.homeTeam.resetTotals(),B.visitingTeam.resetTotals(),B.isBetMainSubcategory=!1;Object.values(e.nextGamesDataStructure).forEach(i=>{for(const B of Object.values(i.subcategories))B.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}}}};async function mpa(){try{const{data:e}=await Uu({url:"https://kefloixzy1.execute-api.us-west-2.amazonaws.com/prod/tournaments"});return e}catch(e){throw new Error(e)}}const gpa={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,r){e.booleanIsStatisticModalOpen=r},setTournamentType(e,r){e.tournamentType=r},setSectionRef(e,r){e.sectionRef=r},setSectionAnalytics(e,r){e.sectionAnalytics=r},setSeccionBetsGolTipster(e,r){e.seccionBetsGolTipster=r},setPreviewSectionAnalytics(e,r){e.previewSectionAnalytics=r},setVideoSrc(e,r){e.videoSrc=r},setVideoModalVisibility(e,r){e.isVideoModalVisible=r},setSelectedTournament(e,r){e.selectedTournament=r},setTournaments(e,r){e.tournaments=r.map(i=>({...i.tournament,seasons:i.seasons})),e.tournamentSelected=e.tournaments[0]},setTournamentSelected(e,r){e.tournamentSelected=r}},actions:{async fetchTournaments({state:e,commit:r}){try{if(e.tournaments.length===0){const i=await mpa();r("setTournaments",i)}}catch(i){throw new Error(i)}}}}};async function ypa({seasonId:e,localTeamId:r,visitingTeamId:i}){try{const B=`https://bzznnzehtf.execute-api.us-west-2.amazonaws.com/prod/xg/seasons/${e}/teams/${r}/${i}`;return(await Uu({url:B})).data}catch(B){return Promise.reject(B)}}async function vpa({seasonId:e,localTeamId:r,visitingTeamId:i}){try{const B=`https://bzznnzehtf.execute-api.us-west-2.amazonaws.com/prod/xg/game/${e}/teams/${r}/${i}`;return(await Uu({url:B})).data}catch(B){return Promise.reject(B)}}const IJ=(e,r)=>{let i={};return e.forEach((B,D)=>{D==3&&(r[0]==35||r[0]==54)&&(r[D]==2?r[D]=1:r[D]=2),D==2&&(r[0]==35||r[0]==54)&&(r[D]==1?r[D]=2:r[D]==2&&(r[D]=1)),i[B]=r[D]}),i},PJ=(e,r)=>e.filter(B=>{const D=r.playingAs.includes(B.playing_as),c=r.matchResult.includes(B.match_result),m=r.sections.includes(B.section);return D&&c&&m}),BJ=[{name:"Goles",color:"#4A90E2",points:[1,2,3],categories:[12,55,35,54],invert:[35,54],negative:!1},{name:"Tiros a gol",color:"#FF8000",points:[1,2,3],categories:[12,55,35,54,510]}];(function(){function e(r,i,B){return typeof B>"u"||+B==0?Math[r](i):(i=+i,B=+B,isNaN(i)||!(typeof B=="number"&&B%1===0)?NaN:(i=i.toString().split("e"),i=Math[r](+(i[0]+"e"+(i[1]?+i[1]-B:-B))),i=i.toString().split("e"),+(i[0]+"e"+(i[1]?+i[1]+B:B))))}Math.ceil10||(Math.ceil10=function(r,i){return e("ceil",r,i)})})();function NJ(e,r){let i=r*-1;return Math.ceil10(e,i)}const _pa={...gpa,...apa,...fpa,...{xgGeneral:{namespaced:!0,state:{teamSelected:"Local",xGLocalPlays:[],xGVisitingPlays:[]},getters:{playsLocal:(e,r,i)=>{const B=e.xGLocalPlays,D="homeTeamFilter",c=i.nextGeneral[D];return PJ(B,c)||[]},playsAway:(e,r,i)=>{const B=e.xGVisitingPlays,D="visitingTeamFilter",c=i.nextGeneral[D];return PJ(B,c)},goalsQtyLocal:(e,r)=>{const i=BJ.find(B=>B.name==="Goles");return r.playsLocal.filter(B=>i.categories.includes(B.category_id)).length},goalsQtyAway:(e,r)=>{const i=BJ.find(B=>B.name==="Goles");return r.playsAway.filter(B=>i.categories.includes(B.category_id)).length},shotsOnGoalQtyLocal:(e,r)=>r.playsLocal.filter(i=>i.category_id===510).length,shotsOnGoalQtyAway:(e,r)=>r.playsAway.filter(i=>i.category_id===510).length,xGLocal:(e,r)=>{const i=new Set;let B=r.playsLocal.reduce((D,c)=>(i.has(c.moment_of_play)||(i.add(c.moment_of_play),D+=c.xG2),D),0);return NJ(B,2)},xGAway:(e,r)=>{const i=new Set;let B=r.playsAway.reduce((D,c)=>(i.has(c.moment_of_play)||(i.add(c.moment_of_play),D+=c.xG2),D),0);return NJ(B,2)}},mutations:{setTeamSelected(e,r){e.teamSelected=r},setPlays(e,r){e.xGLocalPlays=r.local_team.map(i=>IJ(r.data_headers,i)),e.xGVisitingPlays=r.visiting_team.map(i=>IJ(r.data_headers,i))},cleanXgStore(e){e.localStorage="Local",e.xGLocalPlays=[],e.xGVisitingPlays=[]}},actions:{async getXgPlays({commit:e},{seasonId:r,localTeamId:i,visitingTeamId:B,postMatch:D=!1}){try{let c={};D?c=await vpa({seasonId:r,localTeamId:i,visitingTeamId:B}):c=await ypa({seasonId:r,localTeamId:i,visitingTeamId:B}),e("setPlays",c)}catch(c){return Promise.reject(c)}}}}}};function bpa(e){for(const[r,i]of Object.entries(_pa))e.hasModule(r)||e.registerModule(r,i)}const xpa={class:"subcategory-group"},wpa={__name:"SubcategoryGroup",props:{subcategoryGroup:{type:Array,default:()=>[]}},setup(e){return(r,i)=>(t.openBlock(),t.createElementBlock("div",xpa,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.subcategoryGroup,B=>(t.openBlock(),t.createBlock(t.unref(Is),{key:B.id,modelValue:B.isSelected,"onUpdate:modelValue":D=>B.isSelected=D,label:B.name},null,8,["modelValue","onUpdate:modelValue","label"]))),128))]))}},kpa=ml(wpa,[["__scopeId","data-v-ae6f3d72"]]),Cpa={class:"filter-subcategories"},Spa=Object.freeze(Object.defineProperty({__proto__:null,default:ml({__name:"FilterSubcategories",props:{subcategoryGroups:{type:Array,default:()=>[]}},setup(e){return(r,i)=>(t.openBlock(),t.createElementBlock("div",Cpa,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.subcategoryGroups,B=>(t.openBlock(),t.createElementBlock("div",{key:B.id,class:"filter-subcategories__group"},[t.createVNode(kpa,{subcategoryGroup:B},null,8,["subcategoryGroup"])]))),128))]))}},[["__scopeId","data-v-5edaefc2"]])},Symbol.toStringTag,{value:"Module"})),k6=e=>(t.pushScopeId("data-v-80d9c265"),e=e(),t.popScopeId(),e),Tpa={class:"details__header"},Epa=k6(()=>t.createElementVNode("div",{class:"details__header__title"},"Jugando como",-1)),Apa={class:"details__header__checkbox"},Mpa={class:"details__body"},Ipa={class:"details__body__playing-as"},Ppa=["onClick"],Bpa={class:"details__header"},Npa=k6(()=>t.createElementVNode("div",{class:"details__header__title"},"En: (Elige el lapso de tiempo)",-1)),zpa={class:"details__header__checkbox"},Opa={class:"details__body"},Fpa=k6(()=>t.createElementVNode("div",{class:"details__body__title"},"1er tiempo",-1)),Lpa={class:"details__body__game-section"},Dpa=["onClick"],Rpa={class:"details__body"},Vpa=k6(()=>t.createElementVNode("div",{class:"details__body__title"},"2do tiempo",-1)),$pa={class:"details__body__game-section"},jpa=["onClick"],Upa=Object.freeze(Object.defineProperty({__proto__:null,default:ml({__name:"FilterConditions",props:{playingAs:{type:Array,default:()=>[{name:"Local",isSelected:!0},{name:"Visitante",isSelected:!0}]},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 r=e;t.useCssVars(n=>({"49cba245":e.buttonsBackgroundColor,"52f02da6":e.buttonsTextColor,"7d3f686a":e.buttonsBorderWidth,"7c286a07":e.buttonsBorderColor,"24a6f4aa":e.buttonsBackgroundColorActive,cd8d7768:e.buttonsTextColorActive,"35fa5c10":e.buttonsBorderWidthActive,"0cde1826":e.buttonsBorderColorActive}));const i=t.computed(()=>r.playingAs.every(n=>n.isSelected)),B=t.computed(()=>r.gameSections.every(n=>n.isSelected)),D=t.computed(()=>r.gameSections.reduce((n,v)=>(v.value<=3?n.firstHalf.push(v):n.secondHalf.push(v),n),{firstHalf:[],secondHalf:[]})),c=t.computed(()=>({"--border-radius-first-button":`${r.buttonsBorderRadius} 0 0 ${r.buttonsBorderRadius}`,"--border-radius-last-button":`0 ${r.buttonsBorderRadius} ${r.buttonsBorderRadius} 0`}));function m(n){n?r.playingAs.forEach(v=>{v.isSelected=!0}):r.playingAs.forEach((v,_)=>{v.isSelected=_===0})}function a(n){r.playingAs.filter(v=>v.isSelected).length===1&&n.isSelected||(n.isSelected=!n.isSelected)}function y(n){r.gameSections.filter(v=>v.isSelected).length===1&&n.isSelected||(n.isSelected=!n.isSelected)}function f(n){n?r.gameSections.forEach(v=>{v.isSelected=!0}):r.gameSections.forEach((v,_)=>{v.isSelected=_===0})}return(n,v)=>(t.openBlock(),t.createElementBlock("div",{class:"details",style:t.normalizeStyle(c.value)},[t.createElementVNode("div",Tpa,[Epa,t.createElementVNode("div",Apa,[t.createVNode(t.unref(Is),{label:"Todos","model-value":i.value,"onUpdate:modelValue":m},null,8,["model-value"])])]),t.createElementVNode("div",Mpa,[t.createElementVNode("div",Ipa,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r.playingAs,(_,p)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${p}`,class:t.normalizeClass(["details__body__button",{active:_.isSelected}]),onClick:l=>a(_)},t.toDisplayString(_.name),11,Ppa))),128))])]),t.createElementVNode("div",Bpa,[Npa,t.createElementVNode("div",zpa,[t.createVNode(t.unref(Is),{label:"Todos","model-value":B.value,"onUpdate:modelValue":f},null,8,["model-value"])])]),t.createElementVNode("div",Opa,[Fpa,t.createElementVNode("div",Lpa,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(D.value.firstHalf,(_,p)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${p}`,class:t.normalizeClass(["details__body__button",{active:_.isSelected}]),onClick:l=>y(_)},t.toDisplayString(_.text),11,Dpa))),128))])]),t.createElementVNode("div",Rpa,[Vpa,t.createElementVNode("div",$pa,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(D.value.secondHalf,(_,p)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${p}`,class:t.normalizeClass(["details__body__button",{active:_.isSelected}]),onClick:l=>y(_)},t.toDisplayString(_.text),11,jpa))),128))])])],4))}},[["__scopeId","data-v-80d9c265"]])},Symbol.toStringTag,{value:"Module"})),Gpa={class:"filter-field"},Hpa=Object.freeze(Object.defineProperty({__proto__:null,default:ml({__name:"FilterField",setup(e){const r=t.ref(Array.from({length:16},(B,D)=>D+1));function i(){}return(B,D)=>(t.openBlock(),t.createElementBlock("div",Gpa,[t.createVNode(t.unref(nW),{width:"100%","background-color":"#2E3B46",value:r.value,"onUpdate:modelValue":i},null,8,["value"])]))}},[["__scopeId","data-v-8103c3e1"]])},Symbol.toStringTag,{value:"Module"})),Wpa={class:"subcategory-group"},qpa={__name:"SubcategoryGroup",props:{subcategoryGroup:{type:Array,default:()=>[]}},setup(e){return(r,i)=>(t.openBlock(),t.createElementBlock("div",Wpa,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.subcategoryGroup,B=>(t.openBlock(),t.createBlock(t.unref(Ps),{key:B.id,modelValue:B.isSelected,"onUpdate:modelValue":D=>B.isSelected=D,label:B.name},null,8,["modelValue","onUpdate:modelValue","label"]))),128))]))}},Ypa=yl(qpa,[["__scopeId","data-v-ae6f3d72"]]),Xpa={class:"filter-subcategories"},Zpa=Object.freeze(Object.defineProperty({__proto__:null,default:yl({__name:"FilterSubcategories",props:{subcategoryGroups:{type:Array,default:()=>[]}},setup(e){return(r,i)=>(t.openBlock(),t.createElementBlock("div",Xpa,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.subcategoryGroups,B=>(t.openBlock(),t.createElementBlock("div",{key:B.id,class:"filter-subcategories__group"},[t.createVNode(Ypa,{subcategoryGroup:B},null,8,["subcategoryGroup"])]))),128))]))}},[["__scopeId","data-v-5edaefc2"]])},Symbol.toStringTag,{value:"Module"})),C6=e=>(t.pushScopeId("data-v-80d9c265"),e=e(),t.popScopeId(),e),Jpa={class:"details__header"},Kpa=C6(()=>t.createElementVNode("div",{class:"details__header__title"},"Jugando como",-1)),Qpa={class:"details__header__checkbox"},efa={class:"details__body"},tfa={class:"details__body__playing-as"},afa=["onClick"],nfa={class:"details__header"},rfa=C6(()=>t.createElementVNode("div",{class:"details__header__title"},"En: (Elige el lapso de tiempo)",-1)),ifa={class:"details__header__checkbox"},ofa={class:"details__body"},sfa=C6(()=>t.createElementVNode("div",{class:"details__body__title"},"1er tiempo",-1)),lfa={class:"details__body__game-section"},cfa=["onClick"],dfa={class:"details__body"},ufa=C6(()=>t.createElementVNode("div",{class:"details__body__title"},"2do tiempo",-1)),hfa={class:"details__body__game-section"},pfa=["onClick"],ffa=Object.freeze(Object.defineProperty({__proto__:null,default:yl({__name:"FilterConditions",props:{playingAs:{type:Array,default:()=>[{name:"Local",isSelected:!0},{name:"Visitante",isSelected:!0}]},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 r=e;t.useCssVars(n=>({"49cba245":e.buttonsBackgroundColor,"52f02da6":e.buttonsTextColor,"7d3f686a":e.buttonsBorderWidth,"7c286a07":e.buttonsBorderColor,"24a6f4aa":e.buttonsBackgroundColorActive,cd8d7768:e.buttonsTextColorActive,"35fa5c10":e.buttonsBorderWidthActive,"0cde1826":e.buttonsBorderColorActive}));const i=t.computed(()=>r.playingAs.every(n=>n.isSelected)),B=t.computed(()=>r.gameSections.every(n=>n.isSelected)),D=t.computed(()=>r.gameSections.reduce((n,v)=>(v.value<=3?n.firstHalf.push(v):n.secondHalf.push(v),n),{firstHalf:[],secondHalf:[]})),c=t.computed(()=>({"--border-radius-first-button":`${r.buttonsBorderRadius} 0 0 ${r.buttonsBorderRadius}`,"--border-radius-last-button":`0 ${r.buttonsBorderRadius} ${r.buttonsBorderRadius} 0`}));function m(n){n?r.playingAs.forEach(v=>{v.isSelected=!0}):r.playingAs.forEach((v,_)=>{v.isSelected=_===0})}function a(n){r.playingAs.filter(v=>v.isSelected).length===1&&n.isSelected||(n.isSelected=!n.isSelected)}function y(n){r.gameSections.filter(v=>v.isSelected).length===1&&n.isSelected||(n.isSelected=!n.isSelected)}function f(n){n?r.gameSections.forEach(v=>{v.isSelected=!0}):r.gameSections.forEach((v,_)=>{v.isSelected=_===0})}return(n,v)=>(t.openBlock(),t.createElementBlock("div",{class:"details",style:t.normalizeStyle(c.value)},[t.createElementVNode("div",Jpa,[Kpa,t.createElementVNode("div",Qpa,[t.createVNode(t.unref(Ps),{label:"Todos","model-value":i.value,"onUpdate:modelValue":m},null,8,["model-value"])])]),t.createElementVNode("div",efa,[t.createElementVNode("div",tfa,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r.playingAs,(_,p)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${p}`,class:t.normalizeClass(["details__body__button",{active:_.isSelected}]),onClick:l=>a(_)},t.toDisplayString(_.name),11,afa))),128))])]),t.createElementVNode("div",nfa,[rfa,t.createElementVNode("div",ifa,[t.createVNode(t.unref(Ps),{label:"Todos","model-value":B.value,"onUpdate:modelValue":f},null,8,["model-value"])])]),t.createElementVNode("div",ofa,[sfa,t.createElementVNode("div",lfa,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(D.value.firstHalf,(_,p)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${p}`,class:t.normalizeClass(["details__body__button",{active:_.isSelected}]),onClick:l=>y(_)},t.toDisplayString(_.text),11,cfa))),128))])]),t.createElementVNode("div",dfa,[ufa,t.createElementVNode("div",hfa,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(D.value.secondHalf,(_,p)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${p}`,class:t.normalizeClass(["details__body__button",{active:_.isSelected}]),onClick:l=>y(_)},t.toDisplayString(_.text),11,pfa))),128))])])],4))}},[["__scopeId","data-v-80d9c265"]])},Symbol.toStringTag,{value:"Module"})),mfa={class:"filter-field"},gfa=Object.freeze(Object.defineProperty({__proto__:null,default:yl({__name:"FilterField",setup(e){const r=t.ref(Array.from({length:16},(B,D)=>D+1));function i(){}return(B,D)=>(t.openBlock(),t.createElementBlock("div",mfa,[t.createVNode(t.unref(XY),{width:"100%","background-color":"#2E3B46",value:r.value,"onUpdate:modelValue":i},null,8,["value"])]))}},[["__scopeId","data-v-8103c3e1"]])},Symbol.toStringTag,{value:"Module"}));yu.GSCGameData=Hha,yu.connectSocket=L8,yu.disconnectSocket=D8,yu.getSocket=F8,yu.registerStoreModules=bpa,Object.defineProperty(yu,Symbol.toStringTag,{value:"Module"})});