@golstats/gsc-landing 1.0.18 → 1.0.19

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.
@@ -16,11 +16,11 @@
16
16
  * Vue 3 Carousel 0.3.1
17
17
  * (c) 2023
18
18
  * @license MIT
19
- */const ga={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"}},gT={itemsToShow:{default:ga.itemsToShow,type:Number},itemsToScroll:{default:ga.itemsToScroll,type:Number},wrapAround:{default:ga.wrapAround,type:Boolean},throttle:{default:ga.throttle,type:Number},snapAlign:{default:ga.snapAlign,validator(e){return["start","end","center","center-even","center-odd"].includes(e)}},transition:{default:ga.transition,type:Number},breakpoints:{default:ga.breakpoints,type:Object},autoplay:{default:ga.autoplay,type:Number},pauseAutoplayOnHover:{default:ga.pauseAutoplayOnHover,type:Boolean},modelValue:{default:void 0,type:Number},mouseDrag:{default:ga.mouseDrag,type:Boolean},touchDrag:{default:ga.touchDrag,type:Boolean},dir:{default:ga.dir,validator(e){return["rtl","ltr"].includes(e)}},i18n:{default:ga.i18n,type:Object},settings:{default(){return{}},type:Object}};function VM({config:e,slidesCount:t}){const{snapAlign:a,wrapAround:i,itemsToShow:n=1}=e;if(i)return Math.max(t-1,0);let r;switch(a){case"start":r=t-n;break;case"end":r=t-1;break;case"center":case"center-odd":r=t-Math.ceil((n-.5)/2);break;case"center-even":r=t-Math.ceil(n/2);break;default:r=0;break}return Math.max(r,0)}function UM({config:e,slidesCount:t}){const{wrapAround:a,snapAlign:i,itemsToShow:n=1}=e;let r=0;if(a||n>t)return r;switch(i){case"start":r=0;break;case"end":r=n-1;break;case"center":case"center-odd":r=Math.floor((n-1)/2);break;case"center-even":r=Math.floor((n-2)/2);break;default:r=0;break}return r}function $g({val:e,max:t,min:a}){return t<a?e:Math.min(Math.max(e,a),t)}function jM({config:e,currentSlide:t,slidesCount:a}){const{snapAlign:i,wrapAround:n,itemsToShow:r=1}=e;let o=t;switch(i){case"center":case"center-odd":o-=(r-1)/2;break;case"center-even":o-=(r-2)/2;break;case"end":o-=r-1;break}return n?o:$g({val:o,max:a-r,min:0})}function yT(e){return e?e.reduce((t,a)=>{var i;return a.type===s.Fragment?[...t,...yT(a.children)]:((i=a.type)===null||i===void 0?void 0:i.name)==="CarouselSlide"?[...t,a]:t},[]):[]}function ey({val:e,max:t,min:a=0}){return e>t?ey({val:e-(t+1),max:t,min:a}):e<a?ey({val:e+(t+1),max:t,min:a}):e}function zM(e,t){let a;return t?function(...i){const n=this;a||(e.apply(n,i),a=!0,setTimeout(()=>a=!1,t))}:e}function HM(e,t){let a;return function(...i){a&&clearTimeout(a),a=setTimeout(()=>{e(...i),a=null},t)}}function qM(e="",t={}){return Object.entries(t).reduce((a,[i,n])=>a.replace(`{${i}}`,String(n)),e)}var WM=s.defineComponent({name:"ARIA",setup(){const e=s.inject("config",s.reactive(Object.assign({},ga))),t=s.inject("currentSlide",s.ref(0)),a=s.inject("slidesCount",s.ref(0));return()=>s.h("div",{class:["carousel__liveregion","carousel__sr-only"],"aria-live":"polite","aria-atomic":"true"},qM(e.i18n.itemXofY,{currentSlide:t.value+1,slidesCount:a.value}))}}),GM=s.defineComponent({name:"Carousel",props:gT,setup(e,{slots:t,emit:a,expose:i}){var n;const r=s.ref(null),o=s.ref([]),l=s.ref(0),c=s.ref(0),d=s.reactive(Object.assign({},ga));let u=Object.assign({},ga),h;const p=s.ref((n=e.modelValue)!==null&&n!==void 0?n:0),m=s.ref(0),f=s.ref(0),b=s.ref(0),_=s.ref(0);let x,D;s.provide("config",d),s.provide("slidesCount",c),s.provide("currentSlide",p),s.provide("maxSlide",b),s.provide("minSlide",_),s.provide("slideWidth",l);function j(){h=Object.assign({},e.breakpoints),u=Object.assign(Object.assign(Object.assign({},u),e),{i18n:Object.assign(Object.assign({},u.i18n),e.i18n),breakpoints:void 0}),B(u)}function O(){if(!h||!Object.keys(h).length)return;const W=Object.keys(h).map(Se=>Number(Se)).sort((Se,Ge)=>+Ge-+Se);let ke=Object.assign({},u);W.some(Se=>{const Ge=window.matchMedia(`(min-width: ${Se}px)`).matches;return Ge&&(ke=Object.assign(Object.assign({},ke),h[Se])),Ge}),B(ke)}function B(W){Object.entries(W).forEach(([ke,Se])=>d[ke]=Se)}const M=HM(()=>{O(),L()},16);function L(){if(!r.value)return;const W=r.value.getBoundingClientRect();l.value=W.width/d.itemsToShow}function J(){c.value<=0||(f.value=Math.ceil((c.value-1)/2),b.value=VM({config:d,slidesCount:c.value}),_.value=UM({config:d,slidesCount:c.value}),d.wrapAround||(p.value=$g({val:p.value,max:b.value,min:_.value})))}s.onMounted(()=>{s.nextTick(()=>L()),setTimeout(()=>L(),1e3),O(),Fe(),window.addEventListener("resize",M,{passive:!0}),a("init")}),s.onUnmounted(()=>{D&&clearTimeout(D),x&&clearInterval(x),window.removeEventListener("resize",M,{passive:!0})});let U=!1;const ne={x:0,y:0},le={x:0,y:0},Z=s.reactive({x:0,y:0}),re=s.ref(!1),Ce=s.ref(!1),ve=()=>{re.value=!0},pe=()=>{re.value=!1};function z(W){["INPUT","TEXTAREA","SELECT"].includes(W.target.tagName)||(U=W.type==="touchstart",U||W.preventDefault(),!(!U&&W.button!==0||te.value)&&(ne.x=U?W.touches[0].clientX:W.clientX,ne.y=U?W.touches[0].clientY:W.clientY,document.addEventListener(U?"touchmove":"mousemove",$,!0),document.addEventListener(U?"touchend":"mouseup",ae,!0)))}const $=zM(W=>{Ce.value=!0,le.x=U?W.touches[0].clientX:W.clientX,le.y=U?W.touches[0].clientY:W.clientY;const ke=le.x-ne.x,Se=le.y-ne.y;Z.y=Se,Z.x=ke},d.throttle);function ae(){const W=d.dir==="rtl"?-1:1,ke=Math.sign(Z.x)*.4,Se=Math.round(Z.x/l.value+ke)*W;if(Se&&!U){const Ge=gt=>{gt.stopPropagation(),window.removeEventListener("click",Ge,!0)};window.addEventListener("click",Ge,!0)}_e(p.value-Se),Z.x=0,Z.y=0,Ce.value=!1,document.removeEventListener(U?"touchmove":"mousemove",$,!0),document.removeEventListener(U?"touchend":"mouseup",ae,!0)}function Fe(){!d.autoplay||d.autoplay<=0||(x=setInterval(()=>{d.pauseAutoplayOnHover&&re.value||we()},d.autoplay))}function se(){x&&(clearInterval(x),x=null),Fe()}const te=s.ref(!1);function _e(W){const ke=d.wrapAround?W:$g({val:W,max:b.value,min:_.value});p.value===ke||te.value||(a("slide-start",{slidingToIndex:W,currentSlideIndex:p.value,prevSlideIndex:m.value,slidesCount:c.value}),te.value=!0,m.value=p.value,p.value=ke,D=setTimeout(()=>{if(d.wrapAround){const Se=ey({val:ke,max:b.value,min:0});Se!==p.value&&(p.value=Se,a("loop",{currentSlideIndex:p.value,slidingToIndex:W}))}a("update:modelValue",p.value),a("slide-end",{currentSlideIndex:p.value,prevSlideIndex:m.value,slidesCount:c.value}),te.value=!1,se()},d.transition))}function we(){_e(p.value+d.itemsToScroll)}function ge(){_e(p.value-d.itemsToScroll)}const ee={slideTo:_e,next:we,prev:ge};s.provide("nav",ee),s.provide("isSliding",te);const ce=s.computed(()=>jM({config:d,currentSlide:p.value,slidesCount:c.value}));s.provide("slidesToScroll",ce);const X=s.computed(()=>{const W=d.dir==="rtl"?-1:1,ke=ce.value*l.value*W;return{transform:`translateX(${Z.x-ke}px)`,transition:`${te.value?d.transition:0}ms`,margin:d.wrapAround?`0 -${c.value*l.value}px`:"",width:"100%"}});function R(){j(),O(),J(),L(),se()}Object.keys(gT).forEach(W=>{["modelValue"].includes(W)||s.watch(()=>e[W],R)}),s.watch(()=>e.modelValue,W=>{W!==p.value&&_e(Number(W))}),s.watch(c,J),a("before-init"),j();const he={config:d,slidesCount:c,slideWidth:l,next:we,prev:ge,slideTo:_e,currentSlide:p,maxSlide:b,minSlide:_,middleSlide:f};i({updateBreakpointsConfigs:O,updateSlidesData:J,updateSlideWidth:L,initDefaultConfigs:j,restartCarousel:R,slideTo:_e,next:we,prev:ge,nav:ee,data:he});const be=t.default||t.slides,Me=t.addons,We=s.reactive(he);return()=>{const W=yT(be==null?void 0:be(We)),ke=(Me==null?void 0:Me(We))||[];W.forEach((Ye,Ze)=>Ye.props.index=Ze);let Se=W;if(d.wrapAround){const Ye=W.map((Bt,rt)=>s.cloneVNode(Bt,{index:-W.length+rt,isClone:!0,key:`clone-before-${rt}`})),Ze=W.map((Bt,rt)=>s.cloneVNode(Bt,{index:W.length+rt,isClone:!0,key:`clone-after-${rt}`}));Se=[...Ye,...W,...Ze]}o.value=W,c.value=Math.max(W.length,1);const Ge=s.h("ol",{class:"carousel__track",style:X.value,onMousedownCapture:d.mouseDrag?z:null,onTouchstartPassiveCapture:d.touchDrag?z:null},Se),gt=s.h("div",{class:"carousel__viewport"},Ge);return s.h("section",{ref:r,class:{carousel:!0,"is-sliding":te.value,"is-dragging":Ce.value,"is-hover":re.value,"carousel--rtl":d.dir==="rtl"},dir:d.dir,"aria-label":d.i18n.ariaGallery,tabindex:"0",onMouseenter:ve,onMouseleave:pe},[gt,ke,s.h(WM)])}}}),_T;(function(e){e.arrowUp="arrowUp",e.arrowDown="arrowDown",e.arrowRight="arrowRight",e.arrowLeft="arrowLeft"})(_T||(_T={}));var KM=s.defineComponent({name:"CarouselSlide",props:{index:{type:Number,default:1},isClone:{type:Boolean,default:!1}},setup(e,{slots:t}){const a=s.inject("config",s.reactive(Object.assign({},ga))),i=s.inject("currentSlide",s.ref(0)),n=s.inject("slidesToScroll",s.ref(0)),r=s.inject("isSliding",s.ref(!1)),o=()=>e.index===i.value,l=()=>e.index===i.value-1,c=()=>e.index===i.value+1,d=()=>{const u=Math.floor(n.value),h=Math.ceil(n.value+a.itemsToShow-1);return e.index>=u&&e.index<=h};return()=>{var u;return s.h("li",{style:{width:`${100/a.itemsToShow}%`},class:{carousel__slide:!0,"carousel__slide--clone":e.isClone,"carousel__slide--visible":d(),"carousel__slide--active":o(),"carousel__slide--prev":l(),"carousel__slide--next":c(),"carousel__slide--sliding":r.value},"aria-hidden":!d()},(u=t.default)===null||u===void 0?void 0:u.call(t))}}});const XM=(e,t)=>{const a=e.__vccOpts||e;for(const[i,n]of t)a[i]=n;return a},JM=e=>(s.pushScopeId("data-v-786335f9"),e=e(),s.popScopeId(),e),YM={class:"gsc-carousel"},QM={key:0},ZM=JM(()=>s.createElementVNode("div",null,"no hay",-1)),$M=[ZM],eR={class:"gsc-carousel__2d__slides"},tR={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},aR=["fill"],iR={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},nR=["fill"],rR={class:"gsc-carousel__2d__navigation"},sR={width:"8",height:"15",viewBox:"0 0 8 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},oR=["stroke"],lR={key:1,class:"gsc-carousel__2d__navigation__pagination"},cR=["onClick"],dR={width:"7",height:"15",viewBox:"0 0 7 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},uR=["stroke"],hR={__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(t=>t 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"},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:t,emit:a}){const i=e;s.useCssVars(f=>({"1c85f8d3":e.slideLeftArrowBackgroundImage,"02777ea1":e.slidesArrowsLeftAndRight,"3878fa18":e.slideRightArrowBackgroundImage,d7f8c7c4:e.marginTop,dc571484:e.secondarySlidesOpacity}));const n=s.ref(null),r=s.ref({}),o=s.ref(0),l=s.ref(!1);s.watch(n,f=>{f&&l.value?(l.value=!1,c(i.items)):f&&f.slideTo&&f.slideTo(o.value)},{deep:!0}),s.watch(()=>i.currentItemIndex,f=>{o.value!==f&&h(f)}),s.watch(()=>i.items,f=>{n.value?c(f):l.value=!0},{immediate:!0});function c(f){if(f&&f.length&&n.value){if(i.defaultItemByProp){const b=i.items.findIndex(_=>_[i.defaultItemByProp.propName]===i.defaultItemByProp.value);b!==-1?(o.value=b,r.value=f[b]):(o.value=0,r.value=f[0])}else o.value=i.defaultItemByIndex,r.value=f[i.defaultItemByIndex];n.value.slideTo&&n.value.slideTo(o.value),a("input",{selectedItem:r.value,selectedItemIndex:o.value})}}function d(){n.value&&n.value.next()}function u(){n.value&&n.value.prev()}function h(f){n.value&&n.value.slideTo(f)}function p(f){n.value.slideTo(f)}function m(f){const b=f.slidingToIndex<0?i.items.length-1:f.slidingToIndex===i.items.length?0:f.slidingToIndex;o.value=b,r.value=i.items[b],a("update:currentItemIndex",b),a("input",{selectedItem:r.value,selectedItemIndex:o.value})}return t({prev:u,next:d,slideTo:h}),(f,b)=>(s.openBlock(),s.createElementBlock("div",YM,[i.is3d?(s.openBlock(),s.createElementBlock("div",QM,$M)):(s.openBlock(),s.createElementBlock("div",{key:1,class:s.normalizeClass(["gsc-carousel__2d",{"main-slide-priority":e.isMainSlidePriority}])},[s.createElementVNode("div",eR,[s.createVNode(s.unref(GM),{ref_key:"carousel2d",ref:n,"items-to-show":e.itemsToShow,"wrap-around":e.wrapAround,onSlideStart:m},{default:s.withCtx(()=>[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(e.items,(_,x)=>(s.openBlock(),s.createBlock(s.unref(KM),{key:x},{default:s.withCtx(()=>[s.renderSlot(f.$slots,"default",{item:_},void 0,!0)]),_:2},1024))),128))]),_:3},8,["items-to-show","wrap-around"])]),e.areSlidesArrowsVisible?(s.openBlock(),s.createElementBlock("div",{key:0,class:"gsc-carousel__2d__arrow-left",onClick:b[0]||(b[0]=_=>n.value.prev())},[s.createElementVNode("div",{class:s.normalizeClass(["gsc-carousel__2d__slide-button",{rounded:e.areSlidesArrowsRounded}])},[(s.openBlock(),s.createElementBlock("svg",tR,[s.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,aR)]))],2)])):s.createCommentVNode("",!0),e.areSlidesArrowsVisible?(s.openBlock(),s.createElementBlock("div",{key:1,class:"gsc-carousel__2d__arrow-right",onClick:b[1]||(b[1]=_=>d())},[s.createElementVNode("div",{class:s.normalizeClass(["gsc-carousel__2d__slide-button",{rounded:e.areSlidesArrowsRounded}])},[(s.openBlock(),s.createElementBlock("svg",iR,[s.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,nR)]))],2)])):s.createCommentVNode("",!0),s.createElementVNode("div",rR,[e.areNavigationArrowsVisible?(s.openBlock(),s.createElementBlock("div",{key:0,class:"gsc-carousel__2d__navigation__arrow-left",onClick:b[2]||(b[2]=_=>u())},[(s.openBlock(),s.createElementBlock("svg",sR,[s.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:i.arrowsColor},null,8,oR)]))])):s.createCommentVNode("",!0),e.isPaginationVisible?(s.openBlock(),s.createElementBlock("div",lR,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(e.items,(_,x)=>(s.openBlock(),s.createElementBlock("div",{key:`i-${x}`,class:"gsc-carousel__2d__navigation__pagination__item",style:s.normalizeStyle({height:`${i.navigationHeight}px`,width:`${o.value===x?i.navigationActiveWidth:i.navigationActiveWidth/2}px`,borderRadius:`${i.navigationBorderRadius}px`,backgroundColor:`${o.value===x?i.navigationActiveColor:i.navigationColor}`,transition:"all 0.1s ease-in-out"}),onClick:D=>p(x)},null,12,cR))),128))])):s.createCommentVNode("",!0),e.areNavigationArrowsVisible?(s.openBlock(),s.createElementBlock("div",{key:2,class:"gsc-carousel__2d__navigation__arrow-right",onClick:b[3]||(b[3]=_=>n.value.next())},[(s.openBlock(),s.createElementBlock("svg",dR,[s.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:i.arrowsColor},null,8,uR)]))])):s.createCommentVNode("",!0)])],2))]))}},bT=XM(hR,[["__scopeId","data-v-786335f9"]]),pR={PO1:"CFI",PO2:"CFV",PO3:"SFI",PO4:"SFV",PO5:"FI",PO6:"FV"},mR={DF:"Dieciseisavos",OF:"Octavos",CF:"Cuartos",SF:"Semifinales","3ER":"Tercer lugar",FINAL:"Final"},fR={4:"Octavos",5:"Cuartos",6:"Semifinales",7:"Final"};/**
19
+ */const ga={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"}},gT={itemsToShow:{default:ga.itemsToShow,type:Number},itemsToScroll:{default:ga.itemsToScroll,type:Number},wrapAround:{default:ga.wrapAround,type:Boolean},throttle:{default:ga.throttle,type:Number},snapAlign:{default:ga.snapAlign,validator(e){return["start","end","center","center-even","center-odd"].includes(e)}},transition:{default:ga.transition,type:Number},breakpoints:{default:ga.breakpoints,type:Object},autoplay:{default:ga.autoplay,type:Number},pauseAutoplayOnHover:{default:ga.pauseAutoplayOnHover,type:Boolean},modelValue:{default:void 0,type:Number},mouseDrag:{default:ga.mouseDrag,type:Boolean},touchDrag:{default:ga.touchDrag,type:Boolean},dir:{default:ga.dir,validator(e){return["rtl","ltr"].includes(e)}},i18n:{default:ga.i18n,type:Object},settings:{default(){return{}},type:Object}};function VM({config:e,slidesCount:t}){const{snapAlign:a,wrapAround:i,itemsToShow:n=1}=e;if(i)return Math.max(t-1,0);let r;switch(a){case"start":r=t-n;break;case"end":r=t-1;break;case"center":case"center-odd":r=t-Math.ceil((n-.5)/2);break;case"center-even":r=t-Math.ceil(n/2);break;default:r=0;break}return Math.max(r,0)}function UM({config:e,slidesCount:t}){const{wrapAround:a,snapAlign:i,itemsToShow:n=1}=e;let r=0;if(a||n>t)return r;switch(i){case"start":r=0;break;case"end":r=n-1;break;case"center":case"center-odd":r=Math.floor((n-1)/2);break;case"center-even":r=Math.floor((n-2)/2);break;default:r=0;break}return r}function $g({val:e,max:t,min:a}){return t<a?e:Math.min(Math.max(e,a),t)}function jM({config:e,currentSlide:t,slidesCount:a}){const{snapAlign:i,wrapAround:n,itemsToShow:r=1}=e;let o=t;switch(i){case"center":case"center-odd":o-=(r-1)/2;break;case"center-even":o-=(r-2)/2;break;case"end":o-=r-1;break}return n?o:$g({val:o,max:a-r,min:0})}function yT(e){return e?e.reduce((t,a)=>{var i;return a.type===s.Fragment?[...t,...yT(a.children)]:((i=a.type)===null||i===void 0?void 0:i.name)==="CarouselSlide"?[...t,a]:t},[]):[]}function ey({val:e,max:t,min:a=0}){return e>t?ey({val:e-(t+1),max:t,min:a}):e<a?ey({val:e+(t+1),max:t,min:a}):e}function zM(e,t){let a;return t?function(...i){const n=this;a||(e.apply(n,i),a=!0,setTimeout(()=>a=!1,t))}:e}function HM(e,t){let a;return function(...i){a&&clearTimeout(a),a=setTimeout(()=>{e(...i),a=null},t)}}function qM(e="",t={}){return Object.entries(t).reduce((a,[i,n])=>a.replace(`{${i}}`,String(n)),e)}var WM=s.defineComponent({name:"ARIA",setup(){const e=s.inject("config",s.reactive(Object.assign({},ga))),t=s.inject("currentSlide",s.ref(0)),a=s.inject("slidesCount",s.ref(0));return()=>s.h("div",{class:["carousel__liveregion","carousel__sr-only"],"aria-live":"polite","aria-atomic":"true"},qM(e.i18n.itemXofY,{currentSlide:t.value+1,slidesCount:a.value}))}}),GM=s.defineComponent({name:"Carousel",props:gT,setup(e,{slots:t,emit:a,expose:i}){var n;const r=s.ref(null),o=s.ref([]),l=s.ref(0),c=s.ref(0),d=s.reactive(Object.assign({},ga));let u=Object.assign({},ga),h;const p=s.ref((n=e.modelValue)!==null&&n!==void 0?n:0),m=s.ref(0),f=s.ref(0),b=s.ref(0),_=s.ref(0);let x,D;s.provide("config",d),s.provide("slidesCount",c),s.provide("currentSlide",p),s.provide("maxSlide",b),s.provide("minSlide",_),s.provide("slideWidth",l);function j(){h=Object.assign({},e.breakpoints),u=Object.assign(Object.assign(Object.assign({},u),e),{i18n:Object.assign(Object.assign({},u.i18n),e.i18n),breakpoints:void 0}),B(u)}function O(){if(!h||!Object.keys(h).length)return;const W=Object.keys(h).map(Se=>Number(Se)).sort((Se,Ge)=>+Ge-+Se);let ke=Object.assign({},u);W.some(Se=>{const Ge=window.matchMedia(`(min-width: ${Se}px)`).matches;return Ge&&(ke=Object.assign(Object.assign({},ke),h[Se])),Ge}),B(ke)}function B(W){Object.entries(W).forEach(([ke,Se])=>d[ke]=Se)}const M=HM(()=>{O(),L()},16);function L(){if(!r.value)return;const W=r.value.getBoundingClientRect();l.value=W.width/d.itemsToShow}function J(){c.value<=0||(f.value=Math.ceil((c.value-1)/2),b.value=VM({config:d,slidesCount:c.value}),_.value=UM({config:d,slidesCount:c.value}),d.wrapAround||(p.value=$g({val:p.value,max:b.value,min:_.value})))}s.onMounted(()=>{s.nextTick(()=>L()),setTimeout(()=>L(),1e3),O(),Fe(),window.addEventListener("resize",M,{passive:!0}),a("init")}),s.onUnmounted(()=>{D&&clearTimeout(D),x&&clearInterval(x),window.removeEventListener("resize",M,{passive:!0})});let U=!1;const ne={x:0,y:0},le={x:0,y:0},Z=s.reactive({x:0,y:0}),re=s.ref(!1),Ce=s.ref(!1),ve=()=>{re.value=!0},pe=()=>{re.value=!1};function z(W){["INPUT","TEXTAREA","SELECT"].includes(W.target.tagName)||(U=W.type==="touchstart",U||W.preventDefault(),!(!U&&W.button!==0||te.value)&&(ne.x=U?W.touches[0].clientX:W.clientX,ne.y=U?W.touches[0].clientY:W.clientY,document.addEventListener(U?"touchmove":"mousemove",$,!0),document.addEventListener(U?"touchend":"mouseup",ae,!0)))}const $=zM(W=>{Ce.value=!0,le.x=U?W.touches[0].clientX:W.clientX,le.y=U?W.touches[0].clientY:W.clientY;const ke=le.x-ne.x,Se=le.y-ne.y;Z.y=Se,Z.x=ke},d.throttle);function ae(){const W=d.dir==="rtl"?-1:1,ke=Math.sign(Z.x)*.4,Se=Math.round(Z.x/l.value+ke)*W;if(Se&&!U){const Ge=gt=>{gt.stopPropagation(),window.removeEventListener("click",Ge,!0)};window.addEventListener("click",Ge,!0)}_e(p.value-Se),Z.x=0,Z.y=0,Ce.value=!1,document.removeEventListener(U?"touchmove":"mousemove",$,!0),document.removeEventListener(U?"touchend":"mouseup",ae,!0)}function Fe(){!d.autoplay||d.autoplay<=0||(x=setInterval(()=>{d.pauseAutoplayOnHover&&re.value||we()},d.autoplay))}function se(){x&&(clearInterval(x),x=null),Fe()}const te=s.ref(!1);function _e(W){const ke=d.wrapAround?W:$g({val:W,max:b.value,min:_.value});p.value===ke||te.value||(a("slide-start",{slidingToIndex:W,currentSlideIndex:p.value,prevSlideIndex:m.value,slidesCount:c.value}),te.value=!0,m.value=p.value,p.value=ke,D=setTimeout(()=>{if(d.wrapAround){const Se=ey({val:ke,max:b.value,min:0});Se!==p.value&&(p.value=Se,a("loop",{currentSlideIndex:p.value,slidingToIndex:W}))}a("update:modelValue",p.value),a("slide-end",{currentSlideIndex:p.value,prevSlideIndex:m.value,slidesCount:c.value}),te.value=!1,se()},d.transition))}function we(){_e(p.value+d.itemsToScroll)}function ge(){_e(p.value-d.itemsToScroll)}const ee={slideTo:_e,next:we,prev:ge};s.provide("nav",ee),s.provide("isSliding",te);const ce=s.computed(()=>jM({config:d,currentSlide:p.value,slidesCount:c.value}));s.provide("slidesToScroll",ce);const X=s.computed(()=>{const W=d.dir==="rtl"?-1:1,ke=ce.value*l.value*W;return{transform:`translateX(${Z.x-ke}px)`,transition:`${te.value?d.transition:0}ms`,margin:d.wrapAround?`0 -${c.value*l.value}px`:"",width:"100%"}});function R(){j(),O(),J(),L(),se()}Object.keys(gT).forEach(W=>{["modelValue"].includes(W)||s.watch(()=>e[W],R)}),s.watch(()=>e.modelValue,W=>{W!==p.value&&_e(Number(W))}),s.watch(c,J),a("before-init"),j();const he={config:d,slidesCount:c,slideWidth:l,next:we,prev:ge,slideTo:_e,currentSlide:p,maxSlide:b,minSlide:_,middleSlide:f};i({updateBreakpointsConfigs:O,updateSlidesData:J,updateSlideWidth:L,initDefaultConfigs:j,restartCarousel:R,slideTo:_e,next:we,prev:ge,nav:ee,data:he});const be=t.default||t.slides,Me=t.addons,We=s.reactive(he);return()=>{const W=yT(be==null?void 0:be(We)),ke=(Me==null?void 0:Me(We))||[];W.forEach((Ye,Ze)=>Ye.props.index=Ze);let Se=W;if(d.wrapAround){const Ye=W.map((Bt,rt)=>s.cloneVNode(Bt,{index:-W.length+rt,isClone:!0,key:`clone-before-${rt}`})),Ze=W.map((Bt,rt)=>s.cloneVNode(Bt,{index:W.length+rt,isClone:!0,key:`clone-after-${rt}`}));Se=[...Ye,...W,...Ze]}o.value=W,c.value=Math.max(W.length,1);const Ge=s.h("ol",{class:"carousel__track",style:X.value,onMousedownCapture:d.mouseDrag?z:null,onTouchstartPassiveCapture:d.touchDrag?z:null},Se),gt=s.h("div",{class:"carousel__viewport"},Ge);return s.h("section",{ref:r,class:{carousel:!0,"is-sliding":te.value,"is-dragging":Ce.value,"is-hover":re.value,"carousel--rtl":d.dir==="rtl"},dir:d.dir,"aria-label":d.i18n.ariaGallery,tabindex:"0",onMouseenter:ve,onMouseleave:pe},[gt,ke,s.h(WM)])}}}),_T;(function(e){e.arrowUp="arrowUp",e.arrowDown="arrowDown",e.arrowRight="arrowRight",e.arrowLeft="arrowLeft"})(_T||(_T={}));var KM=s.defineComponent({name:"CarouselSlide",props:{index:{type:Number,default:1},isClone:{type:Boolean,default:!1}},setup(e,{slots:t}){const a=s.inject("config",s.reactive(Object.assign({},ga))),i=s.inject("currentSlide",s.ref(0)),n=s.inject("slidesToScroll",s.ref(0)),r=s.inject("isSliding",s.ref(!1)),o=()=>e.index===i.value,l=()=>e.index===i.value-1,c=()=>e.index===i.value+1,d=()=>{const u=Math.floor(n.value),h=Math.ceil(n.value+a.itemsToShow-1);return e.index>=u&&e.index<=h};return()=>{var u;return s.h("li",{style:{width:`${100/a.itemsToShow}%`},class:{carousel__slide:!0,"carousel__slide--clone":e.isClone,"carousel__slide--visible":d(),"carousel__slide--active":o(),"carousel__slide--prev":l(),"carousel__slide--next":c(),"carousel__slide--sliding":r.value},"aria-hidden":!d()},(u=t.default)===null||u===void 0?void 0:u.call(t))}}});const XM=(e,t)=>{const a=e.__vccOpts||e;for(const[i,n]of t)a[i]=n;return a},JM=e=>(s.pushScopeId("data-v-295ffea1"),e=e(),s.popScopeId(),e),YM={class:"gsc-carousel"},QM={key:0},ZM=JM(()=>s.createElementVNode("div",null,"no hay",-1)),$M=[ZM],eR={class:"gsc-carousel__2d__slides"},tR={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},aR=["fill"],iR={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},nR=["fill"],rR={class:"gsc-carousel__2d__navigation"},sR={width:"8",height:"15",viewBox:"0 0 8 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},oR=["stroke"],lR={key:1,class:"gsc-carousel__2d__navigation__pagination"},cR=["onClick"],dR={width:"7",height:"15",viewBox:"0 0 7 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},uR=["stroke"],hR={__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(t=>t 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"},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:t,emit:a}){const i=e;s.useCssVars(f=>({"220e89df":e.slideLeftArrowBackgroundImage,"36c37615":e.slidesArrowsLeftAndRight,"37faeae8":e.slideRightArrowBackgroundImage,"1b83a9ac":e.marginTop,"1bdfba32":e.secondarySlidesOpacity}));const n=s.ref(null),r=s.ref({}),o=s.ref(0),l=s.ref(!1);s.watch(n,f=>{f&&l.value?(l.value=!1,c(i.items)):f&&f.slideTo&&f.slideTo(o.value)},{deep:!0}),s.watch(()=>i.currentItemIndex,f=>{o.value!==f&&h(f)}),s.watch(()=>i.items,f=>{n.value?c(f):l.value=!0},{immediate:!0});function c(f){if(f&&f.length&&n.value){if(i.defaultItemByProp){const b=i.items.findIndex(_=>_[i.defaultItemByProp.propName]===i.defaultItemByProp.value);b!==-1?(o.value=b,r.value=f[b]):(o.value=0,r.value=f[0])}else o.value=i.defaultItemByIndex,r.value=f[i.defaultItemByIndex];n.value.slideTo&&n.value.slideTo(o.value),a("input",{selectedItem:r.value,selectedItemIndex:o.value})}}function d(){n.value&&n.value.next()}function u(){n.value&&n.value.prev()}function h(f){n.value&&n.value.slideTo(f)}function p(f){n.value.slideTo(f)}function m(f){const b=f.slidingToIndex<0?i.items.length-1:f.slidingToIndex===i.items.length?0:f.slidingToIndex;o.value=b,r.value=i.items[b],a("update:currentItemIndex",b),a("input",{selectedItem:r.value,selectedItemIndex:o.value})}return t({prev:u,next:d,slideTo:h}),(f,b)=>(s.openBlock(),s.createElementBlock("div",YM,[i.is3d?(s.openBlock(),s.createElementBlock("div",QM,$M)):(s.openBlock(),s.createElementBlock("div",{key:1,class:s.normalizeClass(["gsc-carousel__2d",{"main-slide-priority":e.isMainSlidePriority}])},[s.createElementVNode("div",eR,[s.createVNode(s.unref(GM),{ref_key:"carousel2d",ref:n,"items-to-show":e.itemsToShow,"wrap-around":e.wrapAround,onSlideStart:m},{default:s.withCtx(()=>[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(e.items,(_,x)=>(s.openBlock(),s.createBlock(s.unref(KM),{key:x},{default:s.withCtx(()=>[s.renderSlot(f.$slots,"default",{item:_},void 0,!0)]),_:2},1024))),128))]),_:3},8,["items-to-show","wrap-around"])]),e.areSlidesArrowsVisible?(s.openBlock(),s.createElementBlock("div",{key:0,class:"gsc-carousel__2d__arrow-left",onClick:b[0]||(b[0]=_=>n.value.prev())},[s.createElementVNode("div",{class:s.normalizeClass(["gsc-carousel__2d__slide-button",{rounded:e.areSlidesArrowsRounded}])},[(s.openBlock(),s.createElementBlock("svg",tR,[s.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,aR)]))],2)])):s.createCommentVNode("",!0),e.areSlidesArrowsVisible?(s.openBlock(),s.createElementBlock("div",{key:1,class:"gsc-carousel__2d__arrow-right",onClick:b[1]||(b[1]=_=>d())},[s.createElementVNode("div",{class:s.normalizeClass(["gsc-carousel__2d__slide-button",{rounded:e.areSlidesArrowsRounded}])},[(s.openBlock(),s.createElementBlock("svg",iR,[s.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,nR)]))],2)])):s.createCommentVNode("",!0),s.createElementVNode("div",rR,[e.areNavigationArrowsVisible?(s.openBlock(),s.createElementBlock("div",{key:0,class:"gsc-carousel__2d__navigation__arrow-left",onClick:b[2]||(b[2]=_=>u())},[(s.openBlock(),s.createElementBlock("svg",sR,[s.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:i.arrowsColor},null,8,oR)]))])):s.createCommentVNode("",!0),e.isPaginationVisible?(s.openBlock(),s.createElementBlock("div",lR,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(e.items,(_,x)=>(s.openBlock(),s.createElementBlock("div",{key:`i-${x}`,class:"gsc-carousel__2d__navigation__pagination__item",style:s.normalizeStyle({height:`${i.navigationHeight}px`,width:`${o.value===x?i.navigationActiveWidth:i.navigationActiveWidth/2}px`,borderRadius:`${i.navigationBorderRadius}px`,backgroundColor:`${o.value===x?i.navigationActiveColor:i.navigationColor}`,transition:"all 0.1s ease-in-out"}),onClick:D=>p(x)},null,12,cR))),128))])):s.createCommentVNode("",!0),e.areNavigationArrowsVisible?(s.openBlock(),s.createElementBlock("div",{key:2,class:"gsc-carousel__2d__navigation__arrow-right",onClick:b[3]||(b[3]=_=>n.value.next())},[(s.openBlock(),s.createElementBlock("svg",dR,[s.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:i.arrowsColor},null,8,uR)]))])):s.createCommentVNode("",!0)])],2))]))}},bT=XM(hR,[["__scopeId","data-v-295ffea1"]]),pR={PO1:"CFI",PO2:"CFV",PO3:"SFI",PO4:"SFV",PO5:"FI",PO6:"FV"},mR={DF:"Dieciseisavos",OF:"Octavos",CF:"Cuartos",SF:"Semifinales","3ER":"Tercer lugar",FINAL:"Final"},fR={4:"Octavos",5:"Cuartos",6:"Semifinales",7:"Final"};/**
20
20
  * Vue 3 Carousel 0.3.1
21
21
  * (c) 2023
22
22
  * @license MIT
23
- */const na={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"}},vT={itemsToShow:{default:na.itemsToShow,type:Number},itemsToScroll:{default:na.itemsToScroll,type:Number},wrapAround:{default:na.wrapAround,type:Boolean},throttle:{default:na.throttle,type:Number},snapAlign:{default:na.snapAlign,validator(e){return["start","end","center","center-even","center-odd"].includes(e)}},transition:{default:na.transition,type:Number},breakpoints:{default:na.breakpoints,type:Object},autoplay:{default:na.autoplay,type:Number},pauseAutoplayOnHover:{default:na.pauseAutoplayOnHover,type:Boolean},modelValue:{default:void 0,type:Number},mouseDrag:{default:na.mouseDrag,type:Boolean},touchDrag:{default:na.touchDrag,type:Boolean},dir:{default:na.dir,validator(e){return["rtl","ltr"].includes(e)}},i18n:{default:na.i18n,type:Object},settings:{default(){return{}},type:Object}};function gR({config:e,slidesCount:t}){const{snapAlign:a,wrapAround:i,itemsToShow:n=1}=e;if(i)return Math.max(t-1,0);let r;switch(a){case"start":r=t-n;break;case"end":r=t-1;break;case"center":case"center-odd":r=t-Math.ceil((n-.5)/2);break;case"center-even":r=t-Math.ceil(n/2);break;default:r=0;break}return Math.max(r,0)}function yR({config:e,slidesCount:t}){const{wrapAround:a,snapAlign:i,itemsToShow:n=1}=e;let r=0;if(a||n>t)return r;switch(i){case"start":r=0;break;case"end":r=n-1;break;case"center":case"center-odd":r=Math.floor((n-1)/2);break;case"center-even":r=Math.floor((n-2)/2);break;default:r=0;break}return r}function ty({val:e,max:t,min:a}){return t<a?e:Math.min(Math.max(e,a),t)}function _R({config:e,currentSlide:t,slidesCount:a}){const{snapAlign:i,wrapAround:n,itemsToShow:r=1}=e;let o=t;switch(i){case"center":case"center-odd":o-=(r-1)/2;break;case"center-even":o-=(r-2)/2;break;case"end":o-=r-1;break}return n?o:ty({val:o,max:a-r,min:0})}function ST(e){return e?e.reduce((t,a)=>{var i;return a.type===s.Fragment?[...t,...ST(a.children)]:((i=a.type)===null||i===void 0?void 0:i.name)==="CarouselSlide"?[...t,a]:t},[]):[]}function ay({val:e,max:t,min:a=0}){return e>t?ay({val:e-(t+1),max:t,min:a}):e<a?ay({val:e+(t+1),max:t,min:a}):e}function bR(e,t){let a;return t?function(...i){const n=this;a||(e.apply(n,i),a=!0,setTimeout(()=>a=!1,t))}:e}function vR(e,t){let a;return function(...i){a&&clearTimeout(a),a=setTimeout(()=>{e(...i),a=null},t)}}function SR(e="",t={}){return Object.entries(t).reduce((a,[i,n])=>a.replace(`{${i}}`,String(n)),e)}var wR=s.defineComponent({name:"ARIA",setup(){const e=s.inject("config",s.reactive(Object.assign({},na))),t=s.inject("currentSlide",s.ref(0)),a=s.inject("slidesCount",s.ref(0));return()=>s.h("div",{class:["carousel__liveregion","carousel__sr-only"],"aria-live":"polite","aria-atomic":"true"},SR(e.i18n.itemXofY,{currentSlide:t.value+1,slidesCount:a.value}))}}),TR=s.defineComponent({name:"Carousel",props:vT,setup(e,{slots:t,emit:a,expose:i}){var n;const r=s.ref(null),o=s.ref([]),l=s.ref(0),c=s.ref(0),d=s.reactive(Object.assign({},na));let u=Object.assign({},na),h;const p=s.ref((n=e.modelValue)!==null&&n!==void 0?n:0),m=s.ref(0),f=s.ref(0),b=s.ref(0),_=s.ref(0);let x,D;s.provide("config",d),s.provide("slidesCount",c),s.provide("currentSlide",p),s.provide("maxSlide",b),s.provide("minSlide",_),s.provide("slideWidth",l);function j(){h=Object.assign({},e.breakpoints),u=Object.assign(Object.assign(Object.assign({},u),e),{i18n:Object.assign(Object.assign({},u.i18n),e.i18n),breakpoints:void 0}),B(u)}function O(){if(!h||!Object.keys(h).length)return;const W=Object.keys(h).map(Se=>Number(Se)).sort((Se,Ge)=>+Ge-+Se);let ke=Object.assign({},u);W.some(Se=>{const Ge=window.matchMedia(`(min-width: ${Se}px)`).matches;return Ge&&(ke=Object.assign(Object.assign({},ke),h[Se])),Ge}),B(ke)}function B(W){Object.entries(W).forEach(([ke,Se])=>d[ke]=Se)}const M=vR(()=>{O(),L()},16);function L(){if(!r.value)return;const W=r.value.getBoundingClientRect();l.value=W.width/d.itemsToShow}function J(){c.value<=0||(f.value=Math.ceil((c.value-1)/2),b.value=gR({config:d,slidesCount:c.value}),_.value=yR({config:d,slidesCount:c.value}),d.wrapAround||(p.value=ty({val:p.value,max:b.value,min:_.value})))}s.onMounted(()=>{s.nextTick(()=>L()),setTimeout(()=>L(),1e3),O(),Fe(),window.addEventListener("resize",M,{passive:!0}),a("init")}),s.onUnmounted(()=>{D&&clearTimeout(D),x&&clearInterval(x),window.removeEventListener("resize",M,{passive:!0})});let U=!1;const ne={x:0,y:0},le={x:0,y:0},Z=s.reactive({x:0,y:0}),re=s.ref(!1),Ce=s.ref(!1),ve=()=>{re.value=!0},pe=()=>{re.value=!1};function z(W){["INPUT","TEXTAREA","SELECT"].includes(W.target.tagName)||(U=W.type==="touchstart",U||W.preventDefault(),!(!U&&W.button!==0||te.value)&&(ne.x=U?W.touches[0].clientX:W.clientX,ne.y=U?W.touches[0].clientY:W.clientY,document.addEventListener(U?"touchmove":"mousemove",$,!0),document.addEventListener(U?"touchend":"mouseup",ae,!0)))}const $=bR(W=>{Ce.value=!0,le.x=U?W.touches[0].clientX:W.clientX,le.y=U?W.touches[0].clientY:W.clientY;const ke=le.x-ne.x,Se=le.y-ne.y;Z.y=Se,Z.x=ke},d.throttle);function ae(){const W=d.dir==="rtl"?-1:1,ke=Math.sign(Z.x)*.4,Se=Math.round(Z.x/l.value+ke)*W;if(Se&&!U){const Ge=gt=>{gt.stopPropagation(),window.removeEventListener("click",Ge,!0)};window.addEventListener("click",Ge,!0)}_e(p.value-Se),Z.x=0,Z.y=0,Ce.value=!1,document.removeEventListener(U?"touchmove":"mousemove",$,!0),document.removeEventListener(U?"touchend":"mouseup",ae,!0)}function Fe(){!d.autoplay||d.autoplay<=0||(x=setInterval(()=>{d.pauseAutoplayOnHover&&re.value||we()},d.autoplay))}function se(){x&&(clearInterval(x),x=null),Fe()}const te=s.ref(!1);function _e(W){const ke=d.wrapAround?W:ty({val:W,max:b.value,min:_.value});p.value===ke||te.value||(a("slide-start",{slidingToIndex:W,currentSlideIndex:p.value,prevSlideIndex:m.value,slidesCount:c.value}),te.value=!0,m.value=p.value,p.value=ke,D=setTimeout(()=>{if(d.wrapAround){const Se=ay({val:ke,max:b.value,min:0});Se!==p.value&&(p.value=Se,a("loop",{currentSlideIndex:p.value,slidingToIndex:W}))}a("update:modelValue",p.value),a("slide-end",{currentSlideIndex:p.value,prevSlideIndex:m.value,slidesCount:c.value}),te.value=!1,se()},d.transition))}function we(){_e(p.value+d.itemsToScroll)}function ge(){_e(p.value-d.itemsToScroll)}const ee={slideTo:_e,next:we,prev:ge};s.provide("nav",ee),s.provide("isSliding",te);const ce=s.computed(()=>_R({config:d,currentSlide:p.value,slidesCount:c.value}));s.provide("slidesToScroll",ce);const X=s.computed(()=>{const W=d.dir==="rtl"?-1:1,ke=ce.value*l.value*W;return{transform:`translateX(${Z.x-ke}px)`,transition:`${te.value?d.transition:0}ms`,margin:d.wrapAround?`0 -${c.value*l.value}px`:"",width:"100%"}});function R(){j(),O(),J(),L(),se()}Object.keys(vT).forEach(W=>{["modelValue"].includes(W)||s.watch(()=>e[W],R)}),s.watch(()=>e.modelValue,W=>{W!==p.value&&_e(Number(W))}),s.watch(c,J),a("before-init"),j();const he={config:d,slidesCount:c,slideWidth:l,next:we,prev:ge,slideTo:_e,currentSlide:p,maxSlide:b,minSlide:_,middleSlide:f};i({updateBreakpointsConfigs:O,updateSlidesData:J,updateSlideWidth:L,initDefaultConfigs:j,restartCarousel:R,slideTo:_e,next:we,prev:ge,nav:ee,data:he});const be=t.default||t.slides,Me=t.addons,We=s.reactive(he);return()=>{const W=ST(be==null?void 0:be(We)),ke=(Me==null?void 0:Me(We))||[];W.forEach((Ye,Ze)=>Ye.props.index=Ze);let Se=W;if(d.wrapAround){const Ye=W.map((Bt,rt)=>s.cloneVNode(Bt,{index:-W.length+rt,isClone:!0,key:`clone-before-${rt}`})),Ze=W.map((Bt,rt)=>s.cloneVNode(Bt,{index:W.length+rt,isClone:!0,key:`clone-after-${rt}`}));Se=[...Ye,...W,...Ze]}o.value=W,c.value=Math.max(W.length,1);const Ge=s.h("ol",{class:"carousel__track",style:X.value,onMousedownCapture:d.mouseDrag?z:null,onTouchstartPassiveCapture:d.touchDrag?z:null},Se),gt=s.h("div",{class:"carousel__viewport"},Ge);return s.h("section",{ref:r,class:{carousel:!0,"is-sliding":te.value,"is-dragging":Ce.value,"is-hover":re.value,"carousel--rtl":d.dir==="rtl"},dir:d.dir,"aria-label":d.i18n.ariaGallery,tabindex:"0",onMouseenter:ve,onMouseleave:pe},[gt,ke,s.h(wR)])}}}),iy;(function(e){e.arrowUp="arrowUp",e.arrowDown="arrowDown",e.arrowRight="arrowRight",e.arrowLeft="arrowLeft"})(iy||(iy={}));const CR={arrowUp:"M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6-6 6z",arrowDown:"M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z",arrowRight:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z",arrowLeft:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"};function kR(e){return e in iy}const ny=e=>{const t=s.inject("config",s.reactive(Object.assign({},na))),a=String(e.name),i=`icon${a.charAt(0).toUpperCase()+a.slice(1)}`;if(!a||typeof a!="string"||!kR(a))return;const n=CR[a],r=s.h("path",{d:n}),o=t.i18n[i]||e.title||a,l=s.h("title",o);return s.h("svg",{class:"carousel__icon",viewBox:"0 0 24 24",role:"img","aria-label":o},[l,r])};ny.props={name:String,title:String};const ER=(e,{slots:t,attrs:a})=>{const{next:i,prev:n}=t||{},r=s.inject("config",s.reactive(Object.assign({},na))),o=s.inject("maxSlide",s.ref(1)),l=s.inject("minSlide",s.ref(1)),c=s.inject("currentSlide",s.ref(1)),d=s.inject("nav",{}),{dir:u,wrapAround:h,i18n:p}=r,m=u==="rtl",f=s.h("button",{type:"button",class:["carousel__prev",!h&&c.value<=l.value&&"carousel__prev--disabled",a==null?void 0:a.class],"aria-label":p.ariaPreviousSlide,onClick:d.prev},(n==null?void 0:n())||s.h(ny,{name:m?"arrowRight":"arrowLeft"})),b=s.h("button",{type:"button",class:["carousel__next",!h&&c.value>=o.value&&"carousel__next--disabled",a==null?void 0:a.class],"aria-label":p.ariaNextSlide,onClick:d.next},(i==null?void 0:i())||s.h(ny,{name:m?"arrowLeft":"arrowRight"}));return[f,b]};var IR=s.defineComponent({name:"CarouselSlide",props:{index:{type:Number,default:1},isClone:{type:Boolean,default:!1}},setup(e,{slots:t}){const a=s.inject("config",s.reactive(Object.assign({},na))),i=s.inject("currentSlide",s.ref(0)),n=s.inject("slidesToScroll",s.ref(0)),r=s.inject("isSliding",s.ref(!1)),o=()=>e.index===i.value,l=()=>e.index===i.value-1,c=()=>e.index===i.value+1,d=()=>{const u=Math.floor(n.value),h=Math.ceil(n.value+a.itemsToShow-1);return e.index>=u&&e.index<=h};return()=>{var u;return s.h("li",{style:{width:`${100/a.itemsToShow}%`},class:{carousel__slide:!0,"carousel__slide--clone":e.isClone,"carousel__slide--visible":d(),"carousel__slide--active":o(),"carousel__slide--prev":l(),"carousel__slide--next":c(),"carousel__slide--sliding":r.value},"aria-hidden":!d()},(u=t.default)===null||u===void 0?void 0:u.call(t))}}});const Mi=(e,t)=>{const a=e.__vccOpts||e;for(const[i,n]of t)a[i]=n;return a},xR={__name:"MatchDay",props:{isLandingMode:{type:Boolean,default:!1},backgroundColor:{type:String,default:"#183143"},numberColor:{type:String,default:"white"},numberFontFamily:{type:String,default:"sans-serif"},numberFontSize:{type:String,default:"14px"},textColor:{type:String,default:"rgba(255, 255, 255, 0.5)"},textFontFamily:{type:String,default:"sans-serif"},textFontSize:{type:String,default:"8px"},bottomLineColor:{type:String,default:"#cbee6b"},selectedMatchDayBackgroundColor:{type:String,default:"#243b4c"},height:{type:String,default:"fit-content"},matchDay:{type:Object,default:()=>{}},matchDaySelected:{type:Object,default:()=>{}},componentWidth:{type:Number,default:0}},emits:["change-match-day"],setup(e,{emit:t}){const a=e,i=s.computed(()=>{const l={"background-color":a.backgroundColor,height:a.height};return a.matchDay.key===a.matchDaySelected.key&&(l["border-bottom"]=`solid 1px ${a.bottomLineColor}`,l["background-color"]=a.selectedMatchDayBackgroundColor),a.isLandingMode||(l["border-right"]="solid 1px rgba(255, 255, 255, 0.1)"),l}),n=s.computed(()=>({color:a.numberColor,"font-family":a.numberFontFamily,"font-size":a.numberFontSize})),r=s.computed(()=>({color:a.textColor,"font-family":a.textFontFamily,"font-size":a.textFontSize}));function o(l){t("click-match-day",l)}return(l,c)=>(s.openBlock(),s.createElementBlock("div",{class:"match-day",style:s.normalizeStyle({...i.value}),onClick:c[0]||(c[0]=d=>o(e.matchDay))},[s.createElementVNode("div",{class:"match-day__value",style:s.normalizeStyle(n.value)},s.toDisplayString(e.matchDay.valueText),5),Number.isNaN(e.matchDay.value)?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("div",{key:0,class:"match-day__text",style:s.normalizeStyle([e.isLandingMode?"margin-top:3px":"",r.value])},s.toDisplayString(e.isLandingMode||e.componentWidth<=425?"JOR":"JORNADA"),5))],4))}},NR=Mi(xR,[["__scopeId","data-v-7ba462ee"]]),AR={class:"match-day-picker"},PR={__name:"MatchDayPicker",props:{matchDays:{type:Array,default:()=>[]},isLandingMode:{type:Boolean,default:!1},backgroundColor:{type:String,default:"#183143"},numberColor:{type:String,default:"white"},numberFontFamily:{type:String,default:"sans-serif"},numberFontSize:{type:String,default:"14px"},textColor:{type:String,default:"rgba(255, 255, 255, 0.5)"},textFontFamily:{type:String,default:"sans-serif"},textFontSize:{type:String,default:"8px"},bottomLineColor:{type:String,default:"#cbee6b"},selectedMatchDayBackgroundColor:{type:String,default:"#243b4c"},height:{type:String,default:"fit-content"},itemsToShow:{type:Number,default:9},itemsToScroll:{type:Number,default:9},defaultMatchDayKey:{type:[String,null],default:""},componentWidth:{type:Number,default:0}},emits:["change-match-day"],setup(e,{emit:t}){const a=e,i=s.computed(()=>({itemsToShow:a.itemsToShow,itemsToScroll:a.itemsToScroll,snapAlign:"start"})),n=s.ref({});s.watch(()=>a.matchDays,o=>{if(o&&o.length){const l=o.find(c=>c.key===a.defaultMatchDayKey);n.value=l||o[0],t("change-match-day",n.value)}},{immediate:!0});function r(o){n.value=o,t("change-match-day",n.value)}return(o,l)=>(s.openBlock(),s.createElementBlock("div",AR,[s.createVNode(s.unref(TR),s.normalizeProps(s.guardReactiveProps(i.value)),{addons:s.withCtx(()=>[s.createVNode(s.unref(ER))]),default:s.withCtx(()=>[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(e.matchDays,c=>(s.openBlock(),s.createBlock(s.unref(IR),{key:c.key},{default:s.withCtx(()=>[s.createVNode(NR,s.mergeProps(a,{"match-day":c,"match-day-selected":n.value,"is-landing-mode":e.isLandingMode,"component-width":e.componentWidth,onClickMatchDay:r}),null,16,["match-day","match-day-selected","is-landing-mode","component-width"])]),_:2},1024))),128))]),_:1},16)]))}},OR=Mi(PR,[["__scopeId","data-v-86701f56"]]);function go(e,t=80){return`${{}.TEAM_LOGOS_URL||"https://az755631.vo.msecnd.net/teams-"}${t}/${e}.png`}function wT(e){let t=e.replace("M","J ");return t=t.replace("PO1","CFI"),t=t.replace("PO2","CFV"),t=t.replace("PO3","SFI"),t=t.replace("PO4","SFV"),t=t.replace("PO5","FI"),t=t.replace("PO6","FV"),t}function BR(e){let t="";return e.game_status!=4&&(t+="Finalizado"),(e.penalties_score_home_team!=0||e.penalties_score_visiting_team!=0)&&(t+=" - Penales "+e.penalties_score_home_team+" - "+e.penalties_score_visiting_team),t}const DR={class:"game-info__teams"},LR={class:"game-info__teams__team__logo"},MR=["src"],RR={class:"game-info__teams__detail"},FR={key:0,class:"game-info__teams__detail__pre-game"},VR={class:"game-info__teams__team__logo away"},UR=["src"],jR={key:0},zR={key:0},HR={key:1},qR={__name:"GameInfo",props:{isLandingMode:{type:Boolean,default:!1},isAcronymVisible:{type:Boolean,default:!1},isTelevisionVisible:{type:Boolean,default:!0},game:{type:Object,required:!0},colorPrimary:{type:String,default:"white"},colorSecondary:{type:String,default:"grey"},namesFontSize:{type:String,default:"12px"},timeFontSize:{type:String,default:"12px"},timeZoneFontSize:{type:String,default:"8px"},scoreFontSize:{type:String,default:"13px"},namesFontFamily:{type:String,default:"sans-serif"},scoreFontFamily:{type:String,default:"sans-serif"},additionalInfoFontFamily:{type:String,default:"sans-serif"},additionalInfoFontSize:{type:String,default:"9px"}},setup(e){const t=e,a=s.computed(()=>{const d=new Date(t.game.dateTimeMillis),u=d.getHours(),h=d.getMinutes();return`${u<10?`0${u}`:u}:${h<10?`0${h}`:h}`}),i=s.computed(()=>{let d="120px";return(t.isLandingMode||t.isAcronymVisible)&&(d="70px"),{"min-width":d}}),n=s.computed(()=>({"font-size":t.namesFontSize,"font-family":t.namesFontFamily,color:t.colorPrimary})),r=s.computed(()=>({"font-size":t.additionalInfoFontSize,"font-family":t.additionalInfoFontFamily,color:t.colorSecondary})),o=s.computed(()=>({"font-size":t.scoreFontSize,"font-family":t.scoreFontFamily,color:t.colorPrimary})),l=s.computed(()=>({"font-size":t.timeZoneFontSize,"font-family":t.namesFontFamily,color:t.colorPrimary})),c=s.computed(()=>({"font-size":t.timeFontSize,"font-family":t.namesFontFamily,color:t.colorPrimary}));return(d,u)=>(s.openBlock(),s.createElementBlock("div",{class:"game-info",style:s.normalizeStyle(e.isLandingMode?"gap:5px":"")},[s.createElementVNode("div",DR,[s.createElementVNode("div",{class:"game-info__teams__team",style:s.normalizeStyle(i.value)},[s.createElementVNode("div",{class:"game-info__teams__team__name",style:s.normalizeStyle(n.value)},s.toDisplayString(e.isLandingMode||e.isAcronymVisible?e.game.home_team.acronym:e.game.home_team.colloquial_name),5),s.createElementVNode("div",LR,[s.createElementVNode("img",{src:s.unref(go)(e.game.home_team.team_id),alt:""},null,8,MR)])],4),s.createElementVNode("div",RR,[e.game.game_status===4&&!e.game.is_live?(s.openBlock(),s.createElementBlock("div",FR,[s.createElementVNode("div",null,[s.createElementVNode("span",{style:s.normalizeStyle(c.value)},s.toDisplayString(a.value),5),s.createTextVNode(),s.createElementVNode("span",{style:s.normalizeStyle(l.value)},"CST",4)])])):(s.openBlock(),s.createElementBlock("div",{key:1,class:"game-info__teams__detail__score",style:s.normalizeStyle(o.value)},[s.createElementVNode("span",null,s.toDisplayString(e.game.score[0])+" - "+s.toDisplayString(e.game.score[1]),1)],4))]),s.createElementVNode("div",{class:"game-info__teams__team away",style:s.normalizeStyle(i.value)},[s.createElementVNode("div",VR,[s.createElementVNode("img",{src:s.unref(go)(e.game.visiting_team.team_id),alt:""},null,8,UR)]),s.createElementVNode("div",{class:"game-info__teams__team__name",style:s.normalizeStyle(n.value)},s.toDisplayString(e.isLandingMode||e.isAcronymVisible?e.game.visiting_team.acronym:e.game.visiting_team.colloquial_name),5)],4)]),s.createElementVNode("div",{class:"game-info__status",style:s.normalizeStyle([r.value,e.isLandingMode?"line-height: normal":""])},[e.game.game_status===4&&!e.game.is_live?(s.openBlock(),s.createElementBlock("span",jR,[e.isTelevisionVisible?(s.openBlock(),s.createElementBlock("span",zR,s.toDisplayString(e.game.tv_stations.join(", ")),1)):s.createCommentVNode("",!0)])):(s.openBlock(),s.createElementBlock("span",HR,s.toDisplayString(s.unref(BR)(e.game)),1))],4)],4))}},TT=Mi(qR,[["__scopeId","data-v-2b206f6a"]]),CT=e=>(s.pushScopeId("data-v-e2fc9ed0"),e=e(),s.popScopeId(),e),WR={class:"game-status"},GR={key:0,class:"game-status__day__live"},KR=CT(()=>s.createElementVNode("span",null,"LIVE",-1)),XR=CT(()=>s.createElementVNode("span",{class:"dot"},null,-1)),JR=[KR,XR],YR={key:0,class:"game-status__round"},QR={__name:"GameStatus",props:{isLandingMode:{type:Boolean,default:!1},isRoundMode:{type:Boolean,default:!1},status:{type:Number,default:4},isLive:{type:Boolean,default:!1},dateTimeMillis:{type:Number,default:0},roundAbbreviation:{type:String,default:""},fontSize:{type:String,default:"10px"}},setup(e){const t=e,a=["Ene","Feb","Mar","Abr","May","Jun","Jul","Ago","Sep","Oct","Nov","Dic"],i=s.computed(()=>{let o="";if(t.dateTimeMillis){const l=new Date(t.dateTimeMillis);o=`${l.getDate()} ${a[l.getMonth()]}`}return o}),n=s.computed(()=>({"font-size":t.fontSize})),r=s.computed(()=>{let o=[];return t.isLive?o.push("live"):t.status!==1&&o.push("pre-match"),o});return(o,l)=>(s.openBlock(),s.createElementBlock("div",WR,[s.createElementVNode("div",{class:s.normalizeClass(["game-status__day",r.value]),style:s.normalizeStyle(n.value)},[e.isLive?(s.openBlock(),s.createElementBlock("div",GR,JR)):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[s.createTextVNode(s.toDisplayString(i.value),1)],64))],6),e.isRoundMode?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("div",YR,s.toDisplayString(e.roundAbbreviation),1))]))}},kT=Mi(QR,[["__scopeId","data-v-e2fc9ed0"]]),Ri={SHOW_GAME_EVENTS:"SHOW_GAME_EVENTS",PLAY_GOALS:"PLAY_GOALS",PLAY_RESUME:"PLAY_RESUME",NOTIFICATION:"NOTIFICATION",STATISTICS:"STATISTICS"},ZR=e=>(s.pushScopeId("data-v-5711c5a6"),e=e(),s.popScopeId(),e),$R={class:"actions"},eF={class:"actions__row"},tF=ZR(()=>s.createElementVNode("svg",{width:"10",height:"12",viewBox:"0 0 10 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[s.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M8.87471 3.35132C9.31653 3.35132 9.67471 3.70949 9.67471 4.15132V10.4531C9.67471 10.8949 9.31653 11.2531 8.87471 11.2531C8.43288 11.2531 8.07471 10.8949 8.07471 10.4531V4.15132C8.07471 3.70949 8.43288 3.35132 8.87471 3.35132Z",fill:"#EEEC6B"}),s.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M4.67549 0.199951C5.11732 0.199951 5.47549 0.558123 5.47549 0.999951V10.4526C5.47549 10.8944 5.11732 11.2526 4.67549 11.2526C4.23366 11.2526 3.87549 10.8944 3.87549 10.4526V0.999951C3.87549 0.558123 4.23366 0.199951 4.67549 0.199951Z",fill:"#EEEC6B"}),s.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M1.0002 5.45154C1.44202 5.45154 1.8002 5.80971 1.8002 6.25154V10.4527C1.8002 10.8945 1.44202 11.2527 1.0002 11.2527C0.558368 11.2527 0.200195 10.8945 0.200195 10.4527V6.25154C0.200195 5.80971 0.558368 5.45154 1.0002 5.45154Z",fill:"#EEEC6B"})],-1)),aF=[tF],iF={width:"6",height:"8",viewBox:"0 0 6 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},nF=["fill"],rF={width:"13",height:"16",viewBox:"0 0 13 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},sF=["fill"],oF={__name:"GameActionsLanding",props:{gameStatus:{type:Number,default:4},isLive:{type:Boolean,default:!1},hasVideo:{type:Boolean,default:!1},iconColor:{type:String,default:"#CBEE6B"},iconBackgroundColor:{type:String,default:"rgba(255, 255, 255, 0.2)"},iconBorderColor:{type:String,default:"rgba(255, 255, 255, 0.1)"},showPlayButton:{type:Boolean,default:!1}},emits:["action"],setup(e,{emit:t}){const a=e,i=s.computed(()=>({backgroundColor:a.iconBackgroundColor,borderColor:a.iconBorderColor}));function n(r){t("action",r)}return(r,o)=>(s.openBlock(),s.createElementBlock("div",$R,[s.createElementVNode("div",eF,[s.createElementVNode("div",{class:"actions__button rounded",style:s.normalizeStyle(i.value),onClick:o[0]||(o[0]=l=>n(s.unref(Ri).STATISTICS))},aF,4),e.showPlayButton&&e.hasVideo?(s.openBlock(),s.createElementBlock("div",{key:0,class:"actions__button rounded",style:s.normalizeStyle(i.value),onClick:o[1]||(o[1]=l=>n(s.unref(Ri).PLAY_RESUME))},[(s.openBlock(),s.createElementBlock("svg",iF,[s.createElementVNode("path",{d:"M0.442694 7.9474C0.385489 7.90953 0.337676 7.85295 0.304408 7.78375C0.27114 7.71456 0.25368 7.63538 0.253908 7.55475V0.444134C0.253987 0.363779 0.271562 0.284951 0.304765 0.216032C0.337968 0.147113 0.385557 0.090677 0.442475 0.0527243C0.499393 0.0147716 0.563511 -0.00327964 0.628014 0.000489552C0.692517 0.00425874 0.754994 0.0297075 0.808803 0.0741304L5.09491 3.62986C5.14387 3.67036 5.18401 3.7253 5.21178 3.78978C5.23955 3.85426 5.25409 3.92628 5.25409 3.99944C5.25409 4.0726 5.23955 4.14462 5.21178 4.2091C5.18401 4.27358 5.14387 4.32852 5.09491 4.36902L0.808803 7.92559C0.755077 7.97011 0.692648 7.99565 0.628173 7.99949C0.563698 8.00333 0.499593 7.98533 0.442694 7.9474Z",fill:a.iconColor},null,8,nF)]))],4)):s.createCommentVNode("",!0),e.gameStatus===4444&&!e.isLive?(s.openBlock(),s.createElementBlock("div",{key:1,class:"actions__button",onClick:o[2]||(o[2]=l=>n(s.unref(Ri).NOTIFICATION))},[(s.openBlock(),s.createElementBlock("svg",rF,[s.createElementVNode("path",{d:"M5.056 14.476h2.888c0 .838-.65 1.524-1.444 1.524-.794 0-1.444-.686-1.444-1.524zM13 12.952v.762H0v-.762l1.444-1.523V6.857c0-2.362 1.445-4.419 3.612-5.105v-.228C5.056.686 5.706 0 6.5 0c.794 0 1.444.686 1.444 1.524v.228c2.167.686 3.612 2.743 3.612 5.105v4.572L13 12.952zm-2.889-6.095c0-2.133-1.589-3.81-3.611-3.81-2.022 0-3.611 1.677-3.611 3.81v5.333h7.222V6.857z",fill:a.iconColor},null,8,sF)]))])):s.createCommentVNode("",!0)])]))}},lF=Mi(oF,[["__scopeId","data-v-5711c5a6"]]),ry=e=>(s.pushScopeId("data-v-1c3d5a08"),e=e(),s.popScopeId(),e),cF={class:"actions"},dF={width:"13",height:"16",viewBox:"0 0 13 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},uF=["fill"],hF={width:"6",height:"8",viewBox:"0 0 6 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},pF=["fill"],mF=ry(()=>s.createElementVNode("svg",{width:"10",height:"12",viewBox:"0 0 10 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[s.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M8.87471 3.35132C9.31653 3.35132 9.67471 3.70949 9.67471 4.15132V10.4531C9.67471 10.8949 9.31653 11.2531 8.87471 11.2531C8.43288 11.2531 8.07471 10.8949 8.07471 10.4531V4.15132C8.07471 3.70949 8.43288 3.35132 8.87471 3.35132Z",fill:"#EEEC6B"}),s.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M4.67549 0.199951C5.11732 0.199951 5.47549 0.558123 5.47549 0.999951V10.4526C5.47549 10.8944 5.11732 11.2526 4.67549 11.2526C4.23366 11.2526 3.87549 10.8944 3.87549 10.4526V0.999951C3.87549 0.558123 4.23366 0.199951 4.67549 0.199951Z",fill:"#EEEC6B"}),s.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M1.0002 5.45154C1.44202 5.45154 1.8002 5.80971 1.8002 6.25154V10.4527C1.8002 10.8945 1.44202 11.2527 1.0002 11.2527C0.558368 11.2527 0.200195 10.8945 0.200195 10.4527V6.25154C0.200195 5.80971 0.558368 5.45154 1.0002 5.45154Z",fill:"#EEEC6B"})],-1)),fF=[mF],gF={key:0,class:"actions__videos"},yF={width:"13",height:"16",viewBox:"0 0 13 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},_F=["fill"],bF={key:1,class:"actions__videos__thumbnails"},vF=ry(()=>s.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail__img"},null,-1)),SF=ry(()=>s.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail__img"},null,-1)),wF={height:24,width:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},TF=["stroke"],CF={__name:"GameActionsFull",props:{gameStatus:{type:Number,default:4},isLive:{type:Boolean,default:!1},hasVideo:{type:Boolean,default:!1},areEventsVisible:{type:Boolean,default:!1},iconColor:{type:String,default:"#CBEE6B"},iconBackgroundColor:{type:String,default:"rgba(255, 255, 255, 0.2)"},iconBorderColor:{type:String,default:"rgba(255, 255, 255, 0.1)"},showPlayButton:{type:Boolean,default:!1},arrowColor:{type:String,default:"white"},thumbnailFontFamily:{type:String,default:"sans-serif"},thumbnailFontSize:{type:String,default:"8px"},thumbnailColor:{type:String,default:"rgba(255, 255, 255, 0.5)"},componentWidth:{type:Number,default:400,validator(e){return e>0}}},emits:["action"],setup(e,{emit:t}){const a=e,i=s.computed(()=>({backgroundColor:a.iconBackgroundColor,borderColor:a.iconBorderColor})),n=s.computed(()=>{const c=[];return a.componentWidth<540&&c.push("mobile"),c}),r=s.computed(()=>a.componentWidth>730),o=s.computed(()=>({color:a.thumbnailColor,fontFamily:a.thumbnailFontFamily,fontSize:a.thumbnailFontSize}));function l(c){t("action",c)}return(c,d)=>(s.openBlock(),s.createElementBlock("div",cF,[s.createElementVNode("div",{class:s.normalizeClass(["actions__buttons",n.value])},[e.gameStatus===4444&&!e.isLive&&!r.value?(s.openBlock(),s.createElementBlock("div",{key:0,class:"actions__button",onClick:d[0]||(d[0]=u=>l(s.unref(Ri).NOTIFICATION))},[(s.openBlock(),s.createElementBlock("svg",dF,[s.createElementVNode("path",{d:"M5.056 14.476h2.888c0 .838-.65 1.524-1.444 1.524-.794 0-1.444-.686-1.444-1.524zM13 12.952v.762H0v-.762l1.444-1.523V6.857c0-2.362 1.445-4.419 3.612-5.105v-.228C5.056.686 5.706 0 6.5 0c.794 0 1.444.686 1.444 1.524v.228c2.167.686 3.612 2.743 3.612 5.105v4.572L13 12.952zm-2.889-6.095c0-2.133-1.589-3.81-3.611-3.81-2.022 0-3.611 1.677-3.611 3.81v5.333h7.222V6.857z",fill:a.iconColor},null,8,uF)]))])):s.createCommentVNode("",!0),e.showPlayButton&&e.hasVideo&&!r.value?(s.openBlock(),s.createElementBlock("div",{key:1,class:"actions__button rounded",style:s.normalizeStyle(i.value),onClick:d[1]||(d[1]=u=>l(s.unref(Ri).PLAY_RESUME))},[(s.openBlock(),s.createElementBlock("svg",hF,[s.createElementVNode("path",{d:"M0.442694 7.9474C0.385489 7.90953 0.337676 7.85295 0.304408 7.78375C0.27114 7.71456 0.25368 7.63538 0.253908 7.55475V0.444134C0.253987 0.363779 0.271562 0.284951 0.304765 0.216032C0.337968 0.147113 0.385557 0.090677 0.442475 0.0527243C0.499393 0.0147716 0.563511 -0.00327964 0.628014 0.000489552C0.692517 0.00425874 0.754994 0.0297075 0.808803 0.0741304L5.09491 3.62986C5.14387 3.67036 5.18401 3.7253 5.21178 3.78978C5.23955 3.85426 5.25409 3.92628 5.25409 3.99944C5.25409 4.0726 5.23955 4.14462 5.21178 4.2091C5.18401 4.27358 5.14387 4.32852 5.09491 4.36902L0.808803 7.92559C0.755077 7.97011 0.692648 7.99565 0.628173 7.99949C0.563698 8.00333 0.499593 7.98533 0.442694 7.9474Z",fill:a.iconColor},null,8,pF)]))],4)):s.createCommentVNode("",!0),s.createElementVNode("div",{class:"actions__button rounded",style:s.normalizeStyle(i.value),onClick:d[2]||(d[2]=u=>l(s.unref(Ri).STATISTICS))},fF,4)],2),r.value?(s.openBlock(),s.createElementBlock("div",gF,[e.gameStatus===4444&&!e.isLive?(s.openBlock(),s.createElementBlock("div",{key:0,class:"actions__button",onClick:d[3]||(d[3]=u=>l(s.unref(Ri).NOTIFICATION))},[(s.openBlock(),s.createElementBlock("svg",yF,[s.createElementVNode("path",{d:"M5.056 14.476h2.888c0 .838-.65 1.524-1.444 1.524-.794 0-1.444-.686-1.444-1.524zM13 12.952v.762H0v-.762l1.444-1.523V6.857c0-2.362 1.445-4.419 3.612-5.105v-.228C5.056.686 5.706 0 6.5 0c.794 0 1.444.686 1.444 1.524v.228c2.167.686 3.612 2.743 3.612 5.105v4.572L13 12.952zm-2.889-6.095c0-2.133-1.589-3.81-3.611-3.81-2.022 0-3.611 1.677-3.611 3.81v5.333h7.222V6.857z",fill:a.iconColor},null,8,_F)]))])):s.createCommentVNode("",!0),e.showPlayButton&&e.hasVideo?(s.openBlock(),s.createElementBlock("div",bF,[s.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail",onClick:d[4]||(d[4]=u=>l(s.unref(Ri).PLAY_GOALS))},[vF,s.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail__text",style:s.normalizeStyle(o.value)}," Goles ",4)]),s.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail",onClick:d[5]||(d[5]=u=>l(s.unref(Ri).PLAY_RESUME))},[SF,s.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail__text",style:s.normalizeStyle(o.value)}," Resumen ",4)])])):s.createCommentVNode("",!0)])):s.createCommentVNode("",!0),e.gameStatus!==4||e.isLive?(s.openBlock(),s.createElementBlock("div",{key:1,class:s.normalizeClass(["actions__button expand",{"rotated-180":e.areEventsVisible,mobile:e.componentWidth<540}]),onClick:d[6]||(d[6]=u=>l(s.unref(Ri).SHOW_GAME_EVENTS))},[(s.openBlock(),s.createElementBlock("svg",wF,[s.createElementVNode("path",{d:"M18.394 9.13501L13.1302 14.3988C12.5086 15.0204 11.4914 15.0204 10.8697 14.3988L5.60596 9.13501",stroke:e.arrowColor},null,8,TF)]))],2)):(s.openBlock(),s.createElementBlock("div",{key:2,class:s.normalizeClass(["actions__button expand",{"rotated-180":!1,mobile:e.componentWidth<540}])},null,2))]))}},kF=Mi(CF,[["__scopeId","data-v-1c3d5a08"]]),nh=e=>(s.pushScopeId("data-v-1c09ec06"),e=e(),s.popScopeId(),e),EF={class:"row-landing__game-status"},IF={class:"row-landing__game-actions"},xF={class:"row-full__game-status"},NF={class:"row-full__game-info"},AF={key:0},PF={class:"row-full__game-actions"},OF={class:"game-events-container"},BF=nh(()=>s.createElementVNode("div",{class:"separator"},null,-1)),DF=nh(()=>s.createElementVNode("div",null,null,-1)),LF={class:"game-events__data"},MF={class:"game-events__data__team"},RF=["src"],FF={class:"game-events__data__team__event__text"},VF={class:"game-events__data__team away"},UF={class:"game-events__data__team__event__text"},jF=["src"],zF=nh(()=>s.createElementVNode("div",null,null,-1)),HF=nh(()=>s.createElementVNode("div",null,null,-1)),qF={__name:"CalendarRow",props:{isLandingMode:{type:Boolean,default:!1},isRoundMode:{type:Boolean,default:!1},game:{type:Object,required:!0},height:{type:String,default:"fit-content"},backgroundColor:{type:String,default:"#172531"},showPlayButton:{type:Boolean,default:!1},componentWidth:{type:Number,default:400,validator(e){return e>0}},televisionFontSize:{type:String,default:"12px"},televisionFontFamily:{type:String,default:"sans-serif"},televisionColor:{type:String,default:"rgba(255, 255, 255, 0.5)"}},emits:["action"],setup(e,{emit:t}){const a=e,i={GOAL:{}.GAME_EVENTS_ICONS_GOAL||"/icn-gol.svg",RED_CARD:{}.GAME_EVENTS_ICONS_RED_CARD||"/icn-expulsion.svg",YELLOW_CARD:{}.GAME_EVENTS_ICONS_YELLOW_CARD||"/icn-amarilla.svg"},n=s.ref(!1),r=s.ref(!1),o=s.computed(()=>{const f={homeTeam:[],awayTeam:[]};return a.game&&a.game.game_status!==4&&!a.game.is_live&&a.game.minutes&&(f.homeTeam.push(...p(a.game.minutes.home_goals_minutes,i.GOAL)),f.homeTeam.push(...p(a.game.minutes.home_red_cards_minutes,i.RED_CARD)),f.homeTeam.push(...p(a.game.minutes.home_yellow_cards_minutes,i.YELLOW_CARD)),f.awayTeam.push(...p(a.game.minutes.visiting_goals_minutes,i.GOAL)),f.awayTeam.push(...p(a.game.minutes.away_red_cards_minutes,i.RED_CARD)),f.awayTeam.push(...p(a.game.minutes.away_yellow_cards_minutes,i.YELLOW_CARD))),f}),l=s.computed(()=>({"background-color":a.backgroundColor})),c=s.computed(()=>({height:a.height})),d=s.computed(()=>{const f={game:[],events:[]};return a.componentWidth<500?(f.events.push("break-point-3"),f.game.push("break-point-2")):a.componentWidth<730?(f.game.push("break-point-2"),f.events.push("break-point-2")):a.componentWidth<910&&(f.game.push("break-point-1"),f.events.push("break-point-1")),f}),u=s.computed(()=>({isLandingMode:a.isLandingMode,game:a.game,colorPrimary:"#fff",colorSecondary:"#fff",namesFontSize:"12px",timeFontSize:"12px",timeZoneFontSize:"8px",scoreFontSize:"13px",namesFontFamily:"sans-serif",scoreFontFamily:"sans-serif",additionalInfoFontFamily:"sans-serif",additionalInfoFontSize:"9px"})),h=s.computed(()=>({"font-size":a.televisionFontSize,"font-family":a.televisionFontFamily,color:a.televisionColor}));s.watch(()=>a.componentWidth,f=>{r.value=f<910});function p(f,b){return f.map(_=>({iconUrl:b,text:_}))}function m(f){f===Ri.SHOW_GAME_EVENTS?n.value=!n.value:t("action",{action:f,game:a.game})}return(f,b)=>e.isLandingMode?(s.openBlock(),s.createElementBlock("div",{key:0,class:"row-landing",style:s.normalizeStyle(l.value)},[s.createVNode(TT,{game:e.game,"is-landing-mode":e.isLandingMode},null,8,["game","is-landing-mode"]),s.createElementVNode("div",EF,[s.createVNode(kT,{status:e.game.game_status,"is-live":!!e.game.is_live,"date-time-millis":e.game.dateTimeMillis,"round-abbreviation":s.unref(wT)(e.game.roundAbbreviation),"is-landing-mode":e.isLandingMode,"is-round-mode":e.isRoundMode,"font-size":"10px"},null,8,["status","is-live","date-time-millis","round-abbreviation","is-landing-mode","is-round-mode"])]),s.createElementVNode("div",IF,[s.createVNode(lF,{"is-live":!!e.game.is_live,"has-video":!!e.game.has_video,"game-status":e.game.game_status,"show-play-button":!0,onAction:m},null,8,["is-live","has-video","game-status"])])],4)):(s.openBlock(),s.createElementBlock("div",{key:1,class:"row-full-container",style:s.normalizeStyle(l.value)},[s.createElementVNode("div",{class:s.normalizeClass(["row-full",d.value.game]),style:s.normalizeStyle(c.value)},[s.createElementVNode("div",xF,[s.createVNode(kT,{status:e.game.game_status,"is-live":!!e.game.is_live,"date-time-millis":e.game.dateTimeMillis,"round-abbreviation":s.unref(wT)(e.game.matchday_abbreviation),"is-landing-mode":e.isLandingMode,"is-round-mode":e.isRoundMode,"font-size":"10px"},null,8,["status","is-live","date-time-millis","round-abbreviation","is-landing-mode","is-round-mode"])]),s.createElementVNode("div",NF,[s.createVNode(TT,s.mergeProps(u.value,{"is-television-visible":r.value,game:e.game,"is-landing-mode":e.isLandingMode,"is-acronym-visible":e.componentWidth<540}),null,16,["is-television-visible","game","is-landing-mode","is-acronym-visible"])]),e.componentWidth>=910?(s.openBlock(),s.createElementBlock("div",{key:0,class:"row-full__television",style:s.normalizeStyle(h.value)},[!r.value&&(e.game.game_status===4||e.game.is_live)?(s.openBlock(),s.createElementBlock("span",AF,s.toDisplayString(e.game.tv_stations.join(", ")),1)):s.createCommentVNode("",!0)],4)):s.createCommentVNode("",!0),s.createElementVNode("div",PF,[s.createVNode(kF,{"is-live":!!e.game.is_live,"has-video":!!e.game.has_video,"game-status":e.game.game_status,"show-play-button":!0,"are-events-visible":n.value,"component-width":e.componentWidth,onAction:m},null,8,["is-live","has-video","game-status","are-events-visible","component-width"])])],6),s.createVNode(s.Transition,null,{default:s.withCtx(()=>[s.withDirectives(s.createElementVNode("div",OF,[BF,s.createElementVNode("div",{class:s.normalizeClass(["game-events",d.value.events])},[DF,s.createElementVNode("div",LF,[s.createElementVNode("div",MF,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(o.value.homeTeam,(_,x)=>(s.openBlock(),s.createElementBlock("div",{key:`h${x}`,class:"game-events__data__team__event"},[s.createElementVNode("img",{src:_.iconUrl},null,8,RF),s.createElementVNode("div",FF,s.toDisplayString(_.text),1)]))),128))]),s.createElementVNode("div",VF,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(o.value.awayTeam,(_,x)=>(s.openBlock(),s.createElementBlock("div",{key:`a${x}`,class:"game-events__data__team__event"},[s.createElementVNode("div",UF,s.toDisplayString(_.text),1),s.createElementVNode("img",{src:_.iconUrl},null,8,jF)]))),128))])]),zF,HF],2)],512),[[s.vShow,n.value]])]),_:1})],4))}},ET=Mi(qF,[["__scopeId","data-v-1c09ec06"]]),WF={class:"calendar-table"},GF={__name:"CalendarTable",props:{isLandingMode:{type:Boolean,default:!1},isRoundMode:{type:Boolean,default:!1},gamesPerPage:{type:Array,default:()=>[]},rowHeight:{type:String,default:"fit-content"},oddRowColor:{type:String,default:"#172531"},evenRowColor:{type:String,default:"#0D1D29"},componentWidth:{type:Number,default:400,validator(e){return e>0}}},emits:["action"],setup(e,{emit:t}){const a=e;function i(r){return r%2===0?a.evenRowColor:a.oddRowColor}function n(r){t("action",r)}return(r,o)=>(s.openBlock(),s.createElementBlock("div",WF,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(e.gamesPerPage,(l,c)=>(s.openBlock(),s.createBlock(ET,{key:l.game_id,game:l,"is-landing-mode":e.isLandingMode,height:e.rowHeight,"background-color":i(c),"component-width":e.componentWidth,"is-round-mode":e.isRoundMode,onAction:n},null,8,["game","is-landing-mode","height","background-color","component-width","is-round-mode"]))),128))]))}},KF=Mi(GF,[["__scopeId","data-v-c8583c72"]]),XF={class:"calendar-by-team"},JF={class:"playing-as-picker"},YF={class:"calendar-by-team__page"},QF={__name:"CalendarTableByTeam",props:{teamId:{type:Number,default:0},isPaginationVisible:{type:Boolean,default:!0},gamesPages:{type:Map,default:()=>new Map},isLandingMode:{type:Boolean,default:!1},isRoundMode:{type:Boolean,default:!1},rowHeight:{type:String,default:"fit-content"},nameRowColor:{type:String,default:"#172531"},gameRowColor:{type:String,default:"#0D1D29"},componentWidth:{type:Number,default:400,validator(e){return e>0}}},emits:["action"],setup(e,{emit:t}){const a=e,i=s.ref(0),n=s.computed(()=>{let c=[];if(a.gamesPages.size>0){const d=Array.from(a.gamesPages.entries()).reduce((u,[h,p])=>{const m=Number(h),f=Number.isNaN(m)?h:`Jornada ${m<10?"0":""}${m}`,b=p.reduce((_,x)=>(_.push(...x),_),[]).filter(_=>i.value===0||i.value===1&&_.visiting_team.team_id===a.teamId?!0:i.value===2&&_.home_team.team_id===a.teamId);return b.length>0&&u.push({roundName:f,games:b}),u},[]);c.push(d)}return c});function r(c){t("action",c)}function o(c){document.querySelector("#opc0").classList.remove("selected"),document.querySelector("#opc1").classList.remove("selected"),document.querySelector("#opc2").classList.remove("selected"),i.value=c,document.querySelector("#opc"+c).classList.add("selected")}function l(c){let d=c;switch(c){case"PI1":d="Play In 1";break;case"PI2":d="Play In 2";break;case"R1":d="Repechaje";break;case"CFI":d="Cuartos de final - Ida";break;case"CFV":d="Cuartos de final - Vuelta";break;case"SFI":d="Semifinal - Ida";break;case"SFV":d="Semifinal - Vuelta";break;case"FI":d="Final - Ida";break;case"FV":d="Final - Vuelta";break}return d}return(c,d)=>(s.openBlock(),s.createElementBlock("div",XF,[s.createElementVNode("div",JF,[s.createElementVNode("div",{class:"playing-as-picker__type selected",id:"opc0",onClick:d[0]||(d[0]=u=>o(0))},"Todas"),s.createElementVNode("div",{class:"playing-as-picker__type",id:"opc1",onClick:d[1]||(d[1]=u=>o(1))},"Visitante"),s.createElementVNode("div",{class:"playing-as-picker__type",id:"opc2",onClick:d[2]||(d[2]=u=>o(2))},"Local")]),s.createVNode(s.unref(bT),{"is-pagination-visible":e.isPaginationVisible,items:n.value},{default:s.withCtx(({item:u})=>[s.createElementVNode("div",YF,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(u,(h,p)=>(s.openBlock(),s.createElementBlock("div",{key:p,class:"calendar-by-team__page__round"},[s.createElementVNode("div",{class:"calendar-by-team__page__round__round-name",style:s.normalizeStyle([{color:"white"},e.componentWidth<=425?"padding: 5px 10px":""])},s.toDisplayString(l(h.roundName)),5),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(h.games,m=>(s.openBlock(),s.createBlock(ET,{key:m.game_id,game:m,"is-landing-mode":e.isLandingMode,height:e.rowHeight,"background-color":e.gameRowColor,"component-width":e.componentWidth,"is-round-mode":e.isRoundMode,onAction:r},null,8,["game","is-landing-mode","height","background-color","component-width","is-round-mode"]))),128))]))),128))])]),_:1},8,["is-pagination-visible","items"])]))}},ZF=Mi(QF,[["__scopeId","data-v-875ef70b"]]),$F="_image62Icon_1ybd3_2",eV="_imgChivasIcon_1ybd3_11",tV="_nameDesktop_1ybd3_18",aV="_nameMobile_1ybd3_31",iV="_homeTeam_1ybd3_43",nV="_sbado16De_1ybd3_54",rV="_gameDate_1ybd3_63",sV="_sab16092023_1ybd3_67",oV="_div_1ybd3_80",lV="_divscore_1ybd3_89",cV="_cst_1ybd3_99",dV="_hour_1ybd3_108",uV="_score_1ybd3_109",hV="_chivasTvCanal_1ybd3_120",pV="_gameStatus_1ybd3_132",mV="_matchInfo_1ybd3_143",fV="_image62Icon1_1ybd3_156",gV="_name_1ybd3_18",yV="_imgAtlasIcon_1ybd3_178",_V="_name1_1ybd3_185",bV="_awayTeam_1ybd3_197",vV="_matchCard_1ybd3_208",SV={image62Icon:$F,imgChivasIcon:eV,nameDesktop:tV,nameMobile:aV,homeTeam:iV,sbado16De:nV,gameDate:rV,sab16092023:sV,div:oV,divscore:lV,cst:cV,hour:dV,score:uV,chivasTvCanal:hV,gameStatus:pV,matchInfo:mV,image62Icon1:fV,name:gV,imgAtlasIcon:yV,name1:_V,awayTeam:bV,matchCard:vV},wV=["src"],TV=["src"],CV={key:0},kV=["src"],EV=["src"],IV={__name:"CardPreMatch",props:{game:{type:Object,default:()=>{}}},setup(e){const t=e,a=s.computed(()=>{const n={...t.game};return n.gameSchedule=t.game.schedule.split(":"),n.gameSchedule.pop(),n.gameSchedule=n.gameSchedule.join(":"),n});function i(n,r){const o=new Date(n);if(r==1){const l=["Domingo","Lunes","Martes","Miércoles","Jueves","Viernes","Sábado"],c=["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"];return`${l[o.getDay()]} ${o.getDate()} de ${c[o.getMonth()]}`}else return`${o.getDate()}-${o.getMonth()}-${o.getFullYear()}`}return(n,r)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(n.$style.matchCard)},[s.createElementVNode("div",{class:s.normalizeClass(n.$style.homeTeam),id:"container-home-team"},[s.createElementVNode("img",{class:s.normalizeClass(n.$style.image62Icon),alt:"",src:s.unref(go)(a.value.home_team.team_id,150)},null,10,wV),s.createElementVNode("img",{class:s.normalizeClass(n.$style.imgChivasIcon),alt:"",src:s.unref(go)(a.value.home_team.team_id)},null,10,TV),s.createElementVNode("h3",{class:s.normalizeClass(n.$style.nameDesktop),id:"team-name"},s.toDisplayString(a.value.home_team.colloquial_name),3),s.createElementVNode("h3",{class:s.normalizeClass(n.$style.nameMobile),id:"team-name"},s.toDisplayString(a.value.home_team.acronym),3)],2),a.value.game_status==4?(s.openBlock(),s.createElementBlock("div",{key:0,class:s.normalizeClass(n.$style.matchInfo),id:"container-match-info"},[s.createElementVNode("div",{class:s.normalizeClass(n.$style.sbado16De)},s.toDisplayString(i(a.value.date,1)),3),s.createElementVNode("div",{class:s.normalizeClass(n.$style.sab16092023)},s.toDisplayString(i(a.value.date,0)),3),s.createElementVNode("div",{class:s.normalizeClass(n.$style.hour)},[s.createElementVNode("div",{class:s.normalizeClass(n.$style.div)},s.toDisplayString(a.value.gameSchedule),3),s.createElementVNode("div",{class:s.normalizeClass(n.$style.cst)},"CST",2)],2),s.createElementVNode("div",{class:s.normalizeClass(n.$style.chivasTvCanal)},s.toDisplayString(a.value.tv_stations.join(", ")),3)],2)):(s.openBlock(),s.createElementBlock("div",{key:1,class:s.normalizeClass(n.$style.matchInfo),id:"container-match-info"},[s.createElementVNode("div",{class:s.normalizeClass([n.$style.sbado16De,n.$style.gameDate])},s.toDisplayString(i(a.value.date,1)),3),s.createElementVNode("div",{class:s.normalizeClass([n.$style.sab16092023,n.$style.gameDate])},s.toDisplayString(i(a.value.date,0)),3),s.createElementVNode("div",{class:s.normalizeClass(n.$style.score)},[s.createElementVNode("div",{class:s.normalizeClass(n.$style.divscore)},s.toDisplayString(a.value.score.join(" - ")),3)],2),s.createElementVNode("div",{class:s.normalizeClass(n.$style.gameStatus)},[s.createTextVNode(" Finalizado "),a.value.penalties_score_home_team!=0||a.value.penalties_score_visiting_team!=0?(s.openBlock(),s.createElementBlock("span",CV," - Penales "+s.toDisplayString(a.value.penalties_score_home_team)+" - "+s.toDisplayString(a.value.penalties_score_visiting_team),1)):s.createCommentVNode("",!0)],2)],2)),s.createElementVNode("div",{class:s.normalizeClass(n.$style.awayTeam),id:"container-away-team"},[s.createElementVNode("img",{class:s.normalizeClass(n.$style.image62Icon1),alt:"",src:s.unref(go)(a.value.visiting_team.team_id,150)},null,10,kV),s.createElementVNode("h3",{class:s.normalizeClass(n.$style.name),id:"team-name"},s.toDisplayString(a.value.visiting_team.colloquial_name),3),s.createElementVNode("img",{class:s.normalizeClass(n.$style.imgAtlasIcon),alt:"",src:s.unref(go)(a.value.visiting_team.team_id)},null,10,EV),s.createElementVNode("h3",{class:s.normalizeClass(n.$style.name1),id:"team-name"},s.toDisplayString(a.value.visiting_team.acronym),3)],2)],2))}},xV={$style:SV},NV=Mi(IV,[["__cssModules",xV]]),AV={class:"calendar-by-game__carousel"},PV={components:{GscSwitchComponent:Vw,GSCGeneraltable:aL,GSCCalendarByGame:Mi({__name:"GSC-CalendarByGame",props:{height:{type:String,default:"fit-content"},width:{type:String,default:"100%"},rowHeight:{type:String,default:"fit-content"},oddRowColor:{type:String,default:"#172531"},evenRowColor:{type:String,default:"#0D1D29"},isLandingMode:{type:Boolean,default:!1},isRoundMode:{type:Boolean,default:!1},isRoundPickerVisible:{type:Boolean,default:!0},isPaginationVisible:{type:Boolean,default:!0},awaitForSeasons:{type:Boolean,default:!1},seasons:{type:Array,default:()=>[]},isCup:{type:Boolean,default:!1},isCupLegacy:{type:Boolean,default:!1},token:{type:String,default:""},pagesWithGames:{type:Array,default:()=>[]},maxGamesToShow:{type:Number,default:0,validator(e){return!Number.isNaN(e)&&e>=0}},areRoundsVisible:{type:Boolean,default:!0},gamesPerMatchDay:{type:Number,default:0,validator(e){return!Number.isNaN(e)&&e>=0}},itemsToShow:{type:Number,default:9},itemsToScroll:{type:Number,default:9},games:{type:Array,default:()=>null},teamId:{type:Number,default:0,validator(e){return!Number.isNaN(e)&&e>=0}},avoidTeamIdFilter:{type:Boolean,default:!1},areGamesCarouselType:{type:Boolean,default:!1},defaultGameId:{type:Number,default:0,validator(e){return!Number.isNaN(e)&&e>=0}}},emits:["tournament-selected","change-teams","change-round","change-game-carousel","action"],setup(e,{emit:t}){const a=e;let i=null;const n=s.ref([]),r=s.ref({}),o=s.ref([]),l=s.ref(0),c=s.ref(null),d=s.ref({}),u=s.ref(new Map),h=s.ref(!1),p=s.ref(null),m=s.ref(null),f=s.ref(null),b=s.computed(()=>a.isCup),_=s.computed(()=>a.isCupLegacy),x=s.computed(()=>({height:a.height,width:a.width})),D=s.computed(()=>a.games?L(a.games):u.value.get(d.value.key)||[]);s.watch(()=>a.seasons,ve=>{ve&&ve.length&&(h.value=!0,n.value=ve.map(pe=>pe.id),B(ve,!0))},{immediate:!0,deep:!0}),s.watch(()=>a.teamId,()=>{M()});async function j(ve,pe,z=""){let $=z;try{const ae={};a.token&&(ae.Authorization=a.token),$||($="https://qyyibs1w0d.execute-api.us-west-2.amazonaws.com/prod/calendar/gamesBySeason?",ve.forEach((te,_e)=>{$+=`${_e===0?"":"&"}seasons=${te}`}));const{data:{data:Fe,teams:se}}=await fT.get($,{headers:ae});return{seasonsAndGames:Fe,seasonsAndTeams:se}}catch(ae){if(pe>0)return j(ve,pe-1,$);throw new Error(ae)}}function O(ve){for(const pe of ve)if(!n.value.includes(pe.season_id))return!0;return!1}async function B(ve,pe){try{r.value={};let z=0;const{seasonsAndGames:$,seasonsAndTeams:ae}=await j(ve.map(se=>se.id),3);if(pe&&O($))return;$.forEach(se=>{const{type:te}=ve.find(_e=>_e.id===se.season_id);se.type=te,se.games.forEach(_e=>{_e.season_id=se.season_id}),te===0&&(z=se.season_id)}),p.value={seasonsGames:$};const{teams:Fe}=ae.find(se=>se.season_id===z);m.value=Fe,t("change-teams",Fe),M()}catch(z){throw new Error(z)}}function M(){if(!m.value)return;const ve=p.value&&p.value.seasonsGames?p.value.seasonsGames.map(pe=>{const z=pe.games.reduce(($,ae)=>{const Fe={...ae};return Fe.dateTimeMillis=new Date(Fe.date_time_utc).valueOf(),Fe.home_team=m.value.find(se=>se.team_id===ae.home_team),Fe.visiting_team=m.value.find(se=>se.team_id===ae.visiting_team),a.teamId&&Fe.home_team.team_id!==a.teamId&&Fe.visiting_team.team_id!==a.teamId||($[ae.matchday_abbreviation]?$[ae.matchday_abbreviation][ae.game_status===3?"canceled":ae.date]?$[ae.matchday_abbreviation][ae.game_status===3?"canceled":ae.date].push(Fe):$[ae.matchday_abbreviation][ae.game_status===3?"canceled":ae.date]=[Fe]:$[ae.matchday_abbreviation]={[ae.game_status===3?"canceled":ae.date]:[Fe]}),$},{});for(let[$,ae]of Object.entries(z))z[$]=Object.entries(ae).map(([Fe,se])=>({date:Fe,games:se.sort((te,_e)=>te.dateTimeMillis-_e.dateTimeMillis)})),z[$].sort((Fe,se)=>Fe.date<se.date?-1:Fe.date>se.date?1:0);return{type:pe.type,weight:pe.type===0?0:pe.type===2?1:2,schedule:z}}):[];ve.sort((pe,z)=>pe.weight-z.weight),r.value=ve.reduce((pe,z)=>{for(const[$,ae]of Object.entries(z.schedule))if(z.type===0)if(b.value){const Fe=$.replace("M",""),se=Fe;_.value?pe[fR[Fe]||se]=ae:pe[mR[$]||se]=ae}else pe[Number($.replace("M","")).toString()]=ae;else z.type===2?$.charAt(1)=="I"?pe[`PI${Number($.replace("PI",""))}`]=ae:pe[`R${Number($.replace("PO",""))}`]=ae:z.type===1&&(pe[pR[$]]=ae);return pe},{}),u.value=new Map,o.value=Array.from(Object.entries(r.value).reduce((pe,[z,$])=>{const ae=Number(z);let Fe="";Number.isNaN(ae)?Fe=z:Fe=ae<10?`0${ae}`:z,pe.set(z,{key:z,value:ae,valueText:Fe});const se=$.reduce((_e,we)=>(we.games.forEach(ge=>{ge.game_id===a.defaultGameId&&(f.value=z),ge.roundAbbreviation=Number.isNaN(ae)?ae:`J ${ae}`}),_e=_e.concat(we.games),_e),[]),te=L(se);return u.value.set(z,te),pe},new Map).values())}function L(ve){const pe=[];if(a.gamesPerMatchDay>0){let z=[];ve.forEach(($,ae)=>{z.push($),(ae+1)%a.gamesPerMatchDay===0&&(pe.push([...z]),z=[])}),z.length&&pe.push([...z])}else pe.push(ve);return pe}async function J(ve){try{const{data:pe}=await fT.get("https://kefloixzy1.execute-api.us-west-2.amazonaws.com/prod/tournaments");return pe}catch(pe){if(ve>0)return J(ve-1);throw new Error(pe)}}function U(){if(window.ResizeObserver)i=new ResizeObserver(()=>{l.value=c.value.clientWidth}),i.observe(c.value);else throw new Error("Resize observer not supported!")}function ne(ve){d.value=ve,t("change-round",ve)}function le(ve){a.areGamesCarouselType&&t("change-game-carousel",ve.selectedItem)}function Z(ve){t("action",ve),re(ve)}function re(ve){const pe="PLAY_RESUME",z="PLAY_GOALS",$=[607,608,12,55,54,35,14,52,15,53,466,477],ae=[12,55,"35_r","54_r"],{game_id:Fe,season_id:se}=ve.game;let te={seasonId:se,tournaments:[],isFeaturedPlayers:!1,mainSectionType:1,playListType:1,gameIds:[Fe],playerIds:[],goalkeeperIds:[],categoryIds:[],teamId:0,matchResult:[],categorySingleName:"",avoidCategorySingleName:!1,currentPlayIndex:0,playData:null,lastClashedGameId:null,tournamentsLastClashes:null,advancedFilter:{playListTitle:""},objectPlaySync:null};ve.action===pe?(te.categoryIds=$,te.advancedFilter.playListTitle="Resumen",t("openmedia",te)):ve.action===z&&(te.categoryIds=ae,te.advancedFilter.playListTitle="Goles",t("openmedia",te))}async function Ce(){try{if(!a.awaitForSeasons&&!a.games){const ve=(await J(3)).find($=>$._id===1),pe=ve.seasons[0],z=[{id:pe.id,type:pe.type}];ve&&ve.tournament&&t("tournament-selected",ve.tournament),pe.related_seasons&&pe.related_seasons.length&&z.push(...pe.related_seasons.map($=>({id:$.id,type:$.type}))),await B(z,!1)}}catch(ve){throw new Error(ve)}}return s.onMounted(()=>{U()}),Ce(),(ve,pe)=>(s.openBlock(),s.createElementBlock("div",{ref_key:"calendarByGame",ref:c,class:"calendar-by-game",style:s.normalizeStyle(x.value)},[e.teamId&&!e.avoidTeamIdFilter?(s.openBlock(),s.createBlock(ZF,{key:0,"full-tournament-schedule":r.value,"team-id":e.teamId,"is-landing-mode":!1,"row-height":e.rowHeight,"component-width":l.value,"games-pages":u.value,"is-pagination-visible":e.isPaginationVisible,"is-round-mode":e.isRoundMode,onAction:Z},null,8,["full-tournament-schedule","team-id","row-height","component-width","games-pages","is-pagination-visible","is-round-mode"])):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[e.areRoundsVisible&&o.value?(s.openBlock(),s.createBlock(OR,{key:0,"match-days":o.value,"is-landing-mode":e.isLandingMode,height:"48px","items-to-show":e.itemsToShow,"items-to-scroll":e.itemsToScroll,"component-width":l.value,"default-match-day-key":f.value,onChangeMatchDay:ne},null,8,["match-days","is-landing-mode","items-to-show","items-to-scroll","component-width","default-match-day-key"])):s.createCommentVNode("",!0),s.createElementVNode("div",AV,[D.value?(s.openBlock(),s.createBlock(s.unref(bT),{key:0,"is-pagination-visible":e.isPaginationVisible&&!e.areGamesCarouselType,items:e.areGamesCarouselType?D.value[0]:D.value,"are-navigation-arrows-visible":e.areGamesCarouselType?!e.areGamesCarouselType:e.isPaginationVisible,"wrap-around":e.areGamesCarouselType,"items-to-show":e.areGamesCarouselType?1.2:1,"is-main-slide-priority":e.areGamesCarouselType,"are-slides-arrows-visible":e.areGamesCarouselType,"slides-arrows-left-and-right":e.areGamesCarouselType?"30px":"0px","default-item-by-prop":e.areGamesCarouselType?{propName:"game_id",value:e.defaultGameId}:{},onInput:le},{default:s.withCtx(({item:z})=>[e.areGamesCarouselType?(s.openBlock(),s.createBlock(NV,{key:0,game:z},null,8,["game"])):(s.openBlock(),s.createBlock(KF,{key:1,"games-per-page":z,"is-landing-mode":e.isLandingMode,"row-height":e.rowHeight,"component-width":l.value,"is-round-mode":e.isRoundMode,onAction:Z},null,8,["games-per-page","is-landing-mode","row-height","component-width","is-round-mode"]))]),_:1},8,["is-pagination-visible","items","are-navigation-arrows-visible","wrap-around","items-to-show","is-main-slide-priority","are-slides-arrows-visible","slides-arrows-left-and-right","default-item-by-prop"])):s.createCommentVNode("",!0)])],64))],4))}},[["__scopeId","data-v-7f065e14"]])},props:{season:{type:Object,default:()=>{}},componentWidth:{type:Number,default:768,validator(e){return e>0}}},data(){return{selectedOpt:"Mi posición",tokenFree:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"}},computed:{},methods:{onAction(e){this.$emit("action",e)},changeCategory(e){this.selectedOpt=e},onOpenMedia(e){this.$emit("openmedia",e)},onOpenProfile(e){this.$emit("onOpenProfile",e)}}},OV={class:"gsc-calendar-table"},BV={class:"gsc-switch-container"},DV={class:"gsc-app-component"};function LV(e,t,a,i,n,r){const o=s.resolveComponent("GscSwitchComponent"),l=s.resolveComponent("GSCGeneraltable"),c=s.resolveComponent("GSCCalendarByGame");return s.openBlock(),s.createElementBlock("div",OV,[s.createElementVNode("div",BV,[s.createVNode(o,{type:0,"font-family":"Poppins-Regular",buttons:["Mi posición","Calendario"],height:"40px","selected-option":n.selectedOpt,"font-size":a.componentWidth>=768?"16px":"14px",width:"355px",onInput:r.changeCategory},null,8,["selected-option","font-size","onInput"])]),s.createElementVNode("div",DV,[n.selectedOpt=="Mi posición"?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[s.createVNode(l,{isPaginationVisible:!0,"current-season-id":a.season.id,type:1,"await-for-season":!0,onOpenmedia:r.onOpenMedia,onOpenTableProfile:r.onOpenProfile},null,8,["current-season-id","onOpenmedia","onOpenTableProfile"]),s.createElementVNode("div",{onClick:t[0]||(t[0]=d=>this.$router.push({name:"table"})),class:"gsc-app-component-view-all"}," Ver todo ")],64)):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[s.createVNode(c,{onAction:r.onAction,onOpenmedia:r.onOpenMedia,width:"100%",token:n.tokenFree,seasons:[a.season],"row-height":"90px","is-landing-mode":!0,"is-pagination-visible":!0,isRoundPickerVisible:!0,"await-for-seasons":"","items-to-show":9,"items-to-scroll":5,"max-games-to-show":5,"games-per-match-day":5},null,8,["onAction","onOpenmedia","token","seasons"]),s.createElementVNode("div",{onClick:t[1]||(t[1]=d=>this.$router.push({name:"calendar"})),class:"gsc-app-component-view-all"}," Ver todo ")],64))])])}const MV=ri(PV,[["render",LV],["__scopeId","data-v-313ba0cc"]]),RV={class:"match"},FV={class:"match__header"},VV={key:0,class:"match__final-tag"},UV={key:1,class:"match__final-tag__no-border"},jV={class:"match__tag"},zV={class:"match__body"},HV={class:"match__data"},qV={class:"match__acronym"},WV=["src"],GV={class:"match__score"},KV=["src"],XV={class:"match__acronym"},JV={class:"match__status"},rh=ri({__name:"PreviousMatch",props:{visitTeam:{type:Object,default:()=>{}},data:{type:Object,default:()=>{}},homeTeam:{type:Object,default:()=>{}},score:{type:String,default:"2 - 1"},journey:{type:[String,Number],default:2},penalScore:{type:String,default:""},infoType:{type:String,default:"postmatch"}},setup(e){return(t,a)=>{var i,n,r;return s.openBlock(),s.createElementBlock("section",RV,[s.createElementVNode("div",FV,[e.infoType=="postmatch"?(s.openBlock(),s.createElementBlock("div",VV,"FINAL ")):(s.openBlock(),s.createElementBlock("div",UV)),s.createElementVNode("div",jV,s.toDisplayString(e.data.matchday_abbreviation.replace("M","J")),1)]),s.createElementVNode("div",zV,[s.createElementVNode("div",HV,[s.createElementVNode("div",qV,s.toDisplayString((i=e.data)==null?void 0:i.home_team_acronym),1),s.createElementVNode("img",{class:"match__img",src:"https://az755631.vo.msecnd.net/teams-80/"+e.data.home_team+".png",alt:"team-img"},null,8,WV),s.createElementVNode("div",GV,[e.infoType=="postmatch"?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[s.createTextVNode(s.toDisplayString(e.data.score[0])+" - "+s.toDisplayString(e.data.score[1]),1)],64)):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[s.createTextVNode(s.toDisplayString((n=e.data)==null?void 0:n.schedule.replace(":00","")),1)],64))]),s.createElementVNode("img",{class:"match__img",src:"https://az755631.vo.msecnd.net/teams-80/"+e.data.visiting_team+".png",alt:"team-img"},null,8,KV),s.createElementVNode("div",XV,s.toDisplayString((r=e.data)==null?void 0:r.visiting_team_acronym),1)]),s.createElementVNode("div",JV,[e.infoType=="postmatch"?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[s.createTextVNode("Finalizado"+s.toDisplayString(e.penalScore?` - Penales ${e.penalScore}`:""),1)],64)):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[s.createTextVNode("CST")],64))])]),s.createElementVNode("div",{class:"match__button",onClick:a[0]||(a[0]=o=>t.$emit("clickMatch"))},"Analizar partido →")])}}},[["__scopeId","data-v-19fa994a"]]),YV=e=>(s.pushScopeId("data-v-48fd3198"),e=e(),s.popScopeId(),e),QV={class:"match"},ZV={class:"match__header"},$V=YV(()=>s.createElementVNode("div",{class:"match__final-tag"},"FINAL",-1)),eU={class:"match__tag"},tU={class:"match__body"},aU={class:"match__data"},iU={class:"match__acronym"},nU=["src"],rU={class:"match__score"},sU=["src"],oU={class:"match__acronym"},lU={class:"match__status"},IT=ri({__name:"PreviousMatchGame",props:{visitTeam:{type:Object,default:()=>{}},data:{type:Object,default:()=>{}},homeTeam:{type:Object,default:()=>{}},score:{type:String,default:"2 - 1"},journey:{type:[String,Number],default:2},penalScore:{type:String,default:""}},setup(e){return(t,a)=>(s.openBlock(),s.createElementBlock("section",QV,[s.createElementVNode("div",ZV,[$V,s.createElementVNode("div",eU,s.toDisplayString(e.data.matchday_abbreviation.replace("M","J")),1)]),s.createElementVNode("div",tU,[s.createElementVNode("div",aU,[s.createElementVNode("div",iU,s.toDisplayString(e.data.home_team.acronym),1),s.createElementVNode("img",{class:"match__img",src:"https://az755631.vo.msecnd.net/teams-80/"+e.data.home_team.team_id+".png",alt:"team-img"},null,8,nU),s.createElementVNode("div",rU,s.toDisplayString(e.data.score[0])+" - "+s.toDisplayString(e.data.score[1]),1),s.createElementVNode("img",{class:"match__img",src:"https://az755631.vo.msecnd.net/teams-80/"+e.data.visiting_team.team_id+".png",alt:"team-img"},null,8,sU),s.createElementVNode("div",oU,s.toDisplayString(e.data.visiting_team.acronym),1)]),s.createElementVNode("div",lU,"Finalizado"+s.toDisplayString(e.penalScore?` - Penales ${e.penalScore}`:""),1)]),s.createElementVNode("div",{class:"match__button",onClick:a[0]||(a[0]=i=>t.$emit("clickMatch"))},"Analizar partido →")]))}},[["__scopeId","data-v-48fd3198"]]),cU=e=>(s.pushScopeId("data-v-1bb62bcb"),e=e(),s.popScopeId(),e),dU=["src"],uU=["src"],hU={class:"coming-match__body"},pU={class:"coming-match__data"},mU=["src"],fU={style:{"margin-top":"16px"}},gU={class:"coming-match__time"},yU=cU(()=>s.createElementVNode("div",{class:"coming-match__cst"},"CST",-1)),_U=["src"],sy=ri({__name:"ComingMatch",props:{small:{type:Boolean,default:!1},visitTeam:{type:Object,default:()=>{}},data:{type:Object,default:()=>{}},homeTeam:{type:Object,default:()=>{}},date:{type:String,default:"Jueves 7 de Abril"},time:{type:String,default:"5: 00"}},setup(e){return(t,a)=>{var i,n,r,o,l,c,d,u,h,p,m,f,b;return s.openBlock(),s.createElementBlock("section",{class:s.normalizeClass(["coming-match",{small:e.small}])},[s.createElementVNode("img",{class:s.normalizeClass(["coming-match__bg",{small:e.small}]),src:typeof e.data.home_team=="object"?"https://az755631.vo.msecnd.net/teams-150/"+((i=e.data)==null?void 0:i.home_team.team_id)+".png":"https://az755631.vo.msecnd.net/teams-150/"+((n=e.data)==null?void 0:n.home_team)+".png",alt:"team-img"},null,10,dU),s.createElementVNode("img",{class:s.normalizeClass(["coming-match__bg",{small:e.small}]),src:typeof e.data.visiting_team=="object"?"https://az755631.vo.msecnd.net/teams-150/"+((r=e.data)==null?void 0:r.visiting_team.team_id)+".png":"https://az755631.vo.msecnd.net/teams-150/"+((o=e.data)==null?void 0:o.visiting_team)+".png",alt:"team-img"},null,10,uU),s.createElementVNode("div",hU,[s.createElementVNode("div",{class:s.normalizeClass(["coming-match__date",{small:e.small}])},s.toDisplayString(e.data.matchday_abbreviation.replace("M","J")),3),s.createElementVNode("div",pU,[s.createElementVNode("div",{class:s.normalizeClass(["coming-match__team",{small:e.small}])},[s.createElementVNode("img",{class:s.normalizeClass(["coming-match__img",{small:e.small}]),src:typeof e.data.home_team=="object"?"https://az755631.vo.msecnd.net/teams-80/"+((l=e.data)==null?void 0:l.home_team.team_id)+".png":"https://az755631.vo.msecnd.net/teams-80/"+((c=e.data)==null?void 0:c.home_team)+".png",alt:"team-img"},null,10,mU),s.createElementVNode("div",{class:s.normalizeClass(["coming-match__acronym",{small:e.small}])},s.toDisplayString((d=e.data)==null?void 0:d.home_team_name),3)],2),s.createElementVNode("div",fU,[s.createElementVNode("div",gU,[e.data.game_status==1?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[s.createTextVNode(s.toDisplayString((u=e.data)==null?void 0:u.score[0])+" - "+s.toDisplayString((h=e.data)==null?void 0:h.score[1]),1)],64)):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[s.createTextVNode(s.toDisplayString((p=e.data)==null?void 0:p.schedule.replace(":00","")),1)],64))]),yU]),s.createElementVNode("div",{class:s.normalizeClass(["coming-match__team",{small:e.small}])},[s.createElementVNode("div",{class:s.normalizeClass(["coming-match__acronym",{small:e.small}])},s.toDisplayString((m=e.data)==null?void 0:m.visiting_team_name),3),s.createElementVNode("img",{class:s.normalizeClass(["coming-match__img",{small:e.small}]),src:typeof e.data.visiting_team=="object"?"https://az755631.vo.msecnd.net/teams-80/"+((f=e.data)==null?void 0:f.visiting_team.team_id)+".png":"https://az755631.vo.msecnd.net/teams-80/"+((b=e.data)==null?void 0:b.visiting_team)+".png",alt:"team-img"},null,10,_U)],2)])]),s.createElementVNode("div",{class:s.normalizeClass(["coming-match__button",{small:e.small}]),onClick:a[0]||(a[0]=_=>t.$emit("clickMatch"))},"Analizar partido →",2)],2)}}},[["__scopeId","data-v-1bb62bcb"]]),bU=e=>(s.pushScopeId("data-v-fd22358e"),e=e(),s.popScopeId(),e),vU=["src"],SU=["src"],wU={class:"coming-match__body"},TU={class:"coming-match__data"},CU=["src"],kU={style:{"margin-top":"16px"}},EU={class:"coming-match__time"},IU=bU(()=>s.createElementVNode("div",{class:"coming-match__cst"},"CST",-1)),xU=["src"],xT=ri({__name:"ComingMatchGame",props:{small:{type:Boolean,default:!1},visitTeam:{type:Object,default:()=>{}},data:{type:Object,default:()=>{}},homeTeam:{type:Object,default:()=>{}},date:{type:String,default:"Jueves 7 de Abril"},time:{type:String,default:"5: 00"}},setup(e){return(t,a)=>{var i,n,r,o,l,c,d,u,h,p,m,f,b;return s.openBlock(),s.createElementBlock("section",{class:s.normalizeClass(["coming-match",{small:e.small}])},[s.createElementVNode("img",{class:s.normalizeClass(["coming-match__bg",{small:e.small}]),src:typeof e.data.home_team=="object"?"https://az755631.vo.msecnd.net/teams-80/"+((i=e.data)==null?void 0:i.home_team.team_id)+".png":"https://az755631.vo.msecnd.net/teams-80/"+((n=e.data)==null?void 0:n.home_team)+".png",alt:"team-img"},null,10,vU),s.createElementVNode("img",{class:s.normalizeClass(["coming-match__bg",{small:e.small}]),src:typeof e.data.visiting_team=="object"?"https://az755631.vo.msecnd.net/teams-80/"+((r=e.data)==null?void 0:r.visiting_team.team_id)+".png":"https://az755631.vo.msecnd.net/teams-80/"+((o=e.data)==null?void 0:o.visiting_team)+".png",alt:"team-img"},null,10,SU),s.createElementVNode("div",wU,[s.createElementVNode("div",{class:s.normalizeClass(["coming-match__date",{small:e.small}])},s.toDisplayString(e.data.matchday_abbreviation.replace("M","J")),3),s.createElementVNode("div",TU,[s.createElementVNode("div",{class:s.normalizeClass(["coming-match__team",{small:e.small}])},[s.createElementVNode("img",{class:s.normalizeClass(["coming-match__img",{small:e.small}]),src:typeof e.data.home_team=="object"?"https://az755631.vo.msecnd.net/teams-80/"+((l=e.data)==null?void 0:l.home_team.team_id)+".png":"https://az755631.vo.msecnd.net/teams-80/"+((c=e.data)==null?void 0:c.home_team)+".png",alt:"team-img"},null,10,CU),s.createElementVNode("div",{class:s.normalizeClass(["coming-match__acronym",{small:e.small}])},s.toDisplayString((d=e.data)==null?void 0:d.home_team_name),3)],2),s.createElementVNode("div",kU,[s.createElementVNode("div",EU,[e.data.game_status==1?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[s.createTextVNode(s.toDisplayString((u=e.data)==null?void 0:u.score[0])+" - "+s.toDisplayString((h=e.data)==null?void 0:h.score[1]),1)],64)):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[s.createTextVNode(s.toDisplayString((p=e.data)==null?void 0:p.schedule.replace(":00","")),1)],64))]),IU]),s.createElementVNode("div",{class:s.normalizeClass(["coming-match__team",{small:e.small}])},[s.createElementVNode("div",{class:s.normalizeClass(["coming-match__acronym",{small:e.small}])},s.toDisplayString((m=e.data)==null?void 0:m.visiting_team_name),3),s.createElementVNode("img",{class:s.normalizeClass(["coming-match__img",{small:e.small}]),src:typeof e.data.visiting_team=="object"?"https://az755631.vo.msecnd.net/teams-80/"+((f=e.data)==null?void 0:f.visiting_team.team_id)+".png":"https://az755631.vo.msecnd.net/teams-80/"+((b=e.data)==null?void 0:b.visiting_team)+".png",alt:"team-img"},null,10,xU)],2)])]),s.createElementVNode("div",{class:s.normalizeClass(["coming-match__button",{small:e.small}]),onClick:a[0]||(a[0]=_=>t.$emit("clickMatch"))},"Analizar partido →",2)],2)}}},[["__scopeId","data-v-fd22358e"]]),NU=e=>(s.pushScopeId("data-v-7fbf71af"),e=e(),s.popScopeId(),e),AU={class:"quadrant-matches"},PU={class:"quadrant-matches__header"},OU={class:"quadrant-matches__title"},BU=NU(()=>s.createElementVNode("span",null," →",-1)),DU={key:0,class:"quadrant-matches__body"},LU={class:"quadrant-matches__body",style:{"column-gap":"16px"}},MU={class:"quadrant-matches__body matches"},RU={key:0,class:"quadrant-matches__body"},FU={class:"quadrant-matches__body",style:{"column-gap":"16px"}},VU=ri({__name:"GSCQuadrantGames",props:{isUserPro:{type:Boolean,default:!1},hasTeam:{type:Boolean,default:!1},isFull:{type:Boolean,default:!1},comingMatches:{type:Array,default:()=>[]},data:{type:Object,default:()=>{}},previousMatches:{type:Array,default:()=>[]},componentWidth:{type:Number,default:768,validator(e){return e>0}}},setup(e){const t=e;s.computed(()=>t.comingMatches[0]||{}),s.computed(()=>t.previousMatches[0]||{});const a=s.toRef(t,"componentWidth"),i=s.computed(()=>a.value<768);return(n,r)=>(s.openBlock(),s.createElementBlock("section",AU,[s.createElementVNode("div",PU,[s.createElementVNode("h2",OU,s.toDisplayString(e.isFull?"Partidos":"Mis partidos"),1),s.createElementVNode("button",{class:"quadrant-matches__button",onClick:r[0]||(r[0]=o=>n.$emit("clickCalendar"))},[s.createElementVNode("span",null,s.toDisplayString(e.isFull?"Calendario completo":"Mi calendario completo"),1),BU])]),e.isFull?(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[e.data.length>1?(s.openBlock(),s.createBlock(s.unref(Sc),{key:0,pxScroll:348,"background-color":"none",scrollColor:"none",arrowsPosition:"absolute",arrowsScrollHide:!0,arrowsBackground:"rgba(255,255,255,.16)",arrowsContainerBgL:"linear-gradient(270deg, rgba(13,29,41,0) 100%, rgba(13,29,41,1) 100%)",arrowsContainerBgR:"linear-gradient(270deg, rgba(13,29,41,0) 100%, rgba(13,29,41,1) 100%)",arrowsMargin:0,arrowsRadius:"50%",arrowsBorder:"#ddd"},{default:s.withCtx(()=>[s.createElementVNode("div",MU,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(e.data,(o,l)=>(s.openBlock(),s.createBlock(sy,{key:l,data:o,small:"",onClickMatch:c=>n.$emit("clickMatch",o)},null,8,["data","onClickMatch"]))),128))])]),_:1})):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[i.value?(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[Object.keys(e.data).length>0?(s.openBlock(),s.createBlock(s.unref(Sc),{key:0,pxScroll:348,"background-color":"none",scrollColor:"none",arrowsPosition:"absolute",arrowsScrollHide:!0,arrowsBackground:"rgba(255,255,255,.16)",arrowsContainerBgL:"linear-gradient(270deg, rgba(13,29,41,0) 100%, rgba(13,29,41,1) 100%)",arrowsContainerBgR:"linear-gradient(270deg, rgba(13,29,41,0) 100%, rgba(13,29,41,1) 100%)",arrowsMargin:0,arrowsRadius:"50%",arrowsBorder:"#ddd"},{default:s.withCtx(()=>[s.createElementVNode("div",FU,[e.data[0].game_status==4?(s.openBlock(),s.createBlock(xT,{key:0,data:e.data[0],onClickMatch:r[9]||(r[9]=o=>n.$emit("clickMatch",e.data[0]))},null,8,["data"])):s.createCommentVNode("",!0),e.data[0].game_status!=4?(s.openBlock(),s.createBlock(IT,{key:1,data:e.data[0],onClickMatch:r[10]||(r[10]=o=>n.$emit("clickMatch",e.data[0]))},null,8,["data"])):s.createCommentVNode("",!0)])]),_:1})):s.createCommentVNode("",!0)],64)):(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[Object.keys(e.data).length>0?(s.openBlock(),s.createElementBlock("div",RU,[e.data[0].game_status==4?(s.openBlock(),s.createBlock(xT,{key:0,data:e.data[0],onClickMatch:r[7]||(r[7]=o=>n.$emit("clickMatch",e.data[0]))},null,8,["data"])):s.createCommentVNode("",!0),e.data[0].game_status!=4?(s.openBlock(),s.createBlock(IT,{key:1,data:e.data[0],onClickMatch:r[8]||(r[8]=o=>n.$emit("clickMatch",e.data[0]))},null,8,["data"])):s.createCommentVNode("",!0)])):s.createCommentVNode("",!0)],64))],64))],64)):(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[i.value?(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[Object.keys(e.data).length>0?(s.openBlock(),s.createBlock(s.unref(Sc),{key:0,pxScroll:348,"background-color":"none",scrollColor:"none",arrowsPosition:"absolute",arrowsScrollHide:!0,arrowsBackground:"rgba(255,255,255,.16)",arrowsContainerBgL:"linear-gradient(270deg, rgba(13,29,41,0) 100%, rgba(13,29,41,1) 100%)",arrowsContainerBgR:"linear-gradient(90deg, rgba(13,29,41,0) 100%, rgba(13,29,41,1) 100%)",arrowsMargin:0,arrowsRadius:"50%",arrowsBorder:"#ddd"},{default:s.withCtx(()=>[s.createElementVNode("div",LU,[s.createVNode(sy,{small:"",data:e.data.data.prematch,onClickMatch:r[4]||(r[4]=o=>n.$emit("clickMatch",e.data.data.prematch))},null,8,["data"]),e.data.data.postmatch&&e.data.data.postmatch.game_status&&e.data.data.postmatch.game_status!==4?(s.openBlock(),s.createBlock(rh,{key:0,data:e.data.data.postmatch,onClickMatch:r[5]||(r[5]=o=>n.$emit("clickMatch",e.data.data.postmatch))},null,8,["data"])):(s.openBlock(),s.createBlock(rh,{key:1,"info-type":"prematch",data:e.data.data.postmatch,onClickMatch:r[6]||(r[6]=o=>n.$emit("clickMatch",e.data.data.postmatch))},null,8,["data"]))])]),_:1})):s.createCommentVNode("",!0)],64)):(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[Object.keys(e.data).length>0?(s.openBlock(),s.createElementBlock("div",DU,[s.createVNode(sy,{data:e.data.data.prematch,onClickMatch:r[1]||(r[1]=o=>n.$emit("clickMatch",e.data.data.prematch))},null,8,["data"]),e.data.data.postmatch&&e.data.data.postmatch.game_status&&e.data.data.postmatch.game_status!==4?(s.openBlock(),s.createBlock(rh,{key:0,data:e.data.data.postmatch,onClickMatch:r[2]||(r[2]=o=>n.$emit("clickMatch",e.data.data.postmatch))},null,8,["data"])):(s.openBlock(),s.createBlock(rh,{key:1,"info-type":"prematch",data:e.data.data.postmatch,onClickMatch:r[3]||(r[3]=o=>n.$emit("clickMatch",e.data.data.postmatch))},null,8,["data"]))])):s.createCommentVNode("",!0)],64))],64))]))}},[["__scopeId","data-v-7fbf71af"]]),UU={__name:"gsc-games",props:{componentWidth:{type:Number,default:768,validator(e){return e>0}},isplayer:{type:Boolean,default:!1},isFull:{type:Boolean,default:!1},data:{type:Object,default:()=>{}}},setup(e){return(t,a)=>(s.openBlock(),s.createElementBlock("main",null,[s.createVNode(VU,{data:e.data,"component-width":e.componentWidth,"is-full":e.isFull,onClickCalendar:a[0]||(a[0]=i=>t.$emit("clickCalendar")),onClickMatch:a[1]||(a[1]=i=>t.$emit("clickMatch",i)),"has-team":!e.isplayer},null,8,["data","component-width","is-full","has-team"])]))}},jU="_toniKroos_1pe59_35",zU="_centralMidfielder_1pe59_55",HU="_icnPlayIcon_1pe59_75",qU="_verVideos_1pe59_89",WU="_btnVideosOptions_1pe59_109",GU="_info_1pe59_147",KU="_goalUnlock_1pe59_171",XU="_teamsAmerica_1pe59_197",JU="_imageIcon_1pe59_217",YU="_playerTops_1pe59_237",QU={toniKroos:jU,centralMidfielder:zU,icnPlayIcon:HU,verVideos:qU,btnVideosOptions:WU,info:GU,goalUnlock:KU,teamsAmerica:XU,imageIcon:JU,playerTops:YU},ZU=(e,t)=>{const a=e.__vccOpts||e;for(const[i,n]of t)a[i]=n;return a},$U={props:{height:{type:String,default:"194px"},background:{type:String,default:"#122735"},borderRadius:{type:String,default:"4px"},borderWidth:{type:Number,default:0},borderColor:{type:String,default:"#ffffff"},namePlayerFont:{type:String,default:"Montserrat-SemiBold"},namePlayerFontColor:{type:String,default:"#ffffff"},namePlayerFontSize:{type:String,default:"18px"},namePlayerFontStyle:{type:String,default:"Normal"},namePositionFont:{type:String,default:"Poppins-Regular"},namePositionFontColor:{type:String,default:"#8ea2ab"},namePositionFontSize:{type:String,default:"14px"},namePositionFontStyle:{type:String,default:"Normal"},totalFont:{type:String,default:"Poppins-Regular"},totalFontColor:{type:String,default:"#ffffff"},totalFontSize:{type:String,default:"8px"},totalFontStyle:{type:String,default:"Normal"},totalHeight:{type:String,default:"22px"},totalWidth:{type:String,default:"75px"},totalBorderRadius:{type:String,default:"64px"},totalBorderWidth:{type:Number,default:1},totalBorderColor:{type:String,default:"#cbee6b"},iconPlay:{type:String,default:"/icnplay1.svg"},teamWidth:{type:String,default:"34px"},teamPositionLeft:{type:String,default:"12px"},teamPositionTop:{type:String,default:""},playerOrTeamPhotoWidth:{type:String,default:"99px"},numbertopLeft:{type:String,default:"-8px"},numbertopBottom:{type:String,default:"-25px"},numbertopTop:{type:String},numbertopRight:{type:String},numbertopColor:{type:String,default:"#ffffff"},numbertopFontSize:{type:String,default:"98px"},numbertopOpacity:{type:String,default:"0.18"},numberFontFamily:{type:String,default:"Montserrat-SemiBold"},showShieldTeam:{type:Boolean,default:!0},showIconVideo:{type:Boolean,default:!0},showPositionPlayer:{type:Boolean,default:!0},activeVideos:{type:Boolean,default:!0},freemiumActive:{type:Boolean,default:!1},data:{type:Object,default:()=>{}}},computed:{customMosaic(){return{height:this.height,background:this.background,borderRadius:`${this.borderRadius} !important`,border:`solid ${this.borderWidth}px ${this.borderColor}`}},customNamePlayer(){return{fontFamily:this.namePlayerFont,fontSize:this.namePlayerFontSize,color:this.namePlayerFontColor,fontStyle:this.namePlayerFontStyle}},customNamePosition(){return{fontFamily:this.namePositionFont,fontSize:this.namePositionFontSize,color:this.namePositionFontColor,fontStyle:this.namePositionFontStyle}},customTotal(){return{fontFamily:this.totalFont,fontSize:this.totalFontSize,color:this.totalFontColor,fontStyle:this.totalFontStyle}},customTotalCont(){return{MinHeight:this.totalHeight,width:this.totalWidth,borderRadius:`${this.totalBorderRadius} !important`,border:`solid ${this.totalBorderWidth}px ${this.totalBorderColor}`}},customShieldTeam(){return{width:this.teamWidth,top:this.teamPositionTop,left:this.teamPositionLeft}},customPhotoPlayerOrTeam(){return{width:this.playerOrTeamPhotoWidth}},customNumberTop(){return{fontSize:this.numbertopFontSize,color:this.numbertopColor,left:this.numbertopLeft,right:this.numbertopRight,top:this.numbertopTop,bottom:this.numbertopBottom,opacity:this.numbertopOpacity,fontFamily:this.numberFontFamily}}},methods:{onPlayerTopsClick(e){this.activeVideos&&(this.$emit("clickMosaic",e),this.$emit("freemium",this.freemiumActive))},onButtonVideos(e){this.activeVideos&&(this.$emit("openmedia",e),this.$emit("clickvideos",e.id),this.$emit("freemium",this.freemiumActive))}}},ej=["src"],tj=["src"],aj=["src"];function ij(e,t,a,i,n,r){return s.openBlock(),s.createElementBlock("section",{class:s.normalizeClass(e.$style.playerTops),style:s.normalizeStyle(r.customMosaic),id:"player-mosaico",onClick:t[1]||(t[1]=o=>r.onPlayerTopsClick(a.data.player_id))},[s.createElementVNode("div",{class:s.normalizeClass(e.$style.info)},[s.createElementVNode("h3",{class:s.normalizeClass(e.$style.toniKroos),style:s.normalizeStyle(r.customNamePlayer)},s.toDisplayString(a.data.player_name),7),a.showPositionPlayer?(s.openBlock(),s.createElementBlock("div",{key:0,class:s.normalizeClass(e.$style.centralMidfielder),style:s.normalizeStyle(r.customNamePosition)},s.toDisplayString(a.data.player_position),7)):s.createCommentVNode("",!0),s.createElementVNode("button",{class:s.normalizeClass(e.$style.btnVideosOptions),style:s.normalizeStyle(r.customTotalCont),id:"button-actions",onClick:t[0]||(t[0]=o=>r.onButtonVideos(a.data))},[a.showIconVideo?(s.openBlock(),s.createElementBlock("img",{key:0,class:s.normalizeClass(e.$style.icnPlayIcon),src:a.iconPlay},null,10,ej)):s.createCommentVNode("",!0),s.createElementVNode("div",{class:s.normalizeClass(e.$style.verVideos),style:s.normalizeStyle(r.customTotal)},s.toDisplayString(a.data.player_stat)+" "+s.toDisplayString(a.data.category),7)],6)],2),s.createElementVNode("b",{style:s.normalizeStyle(r.customNumberTop),class:s.normalizeClass(e.$style.goalUnlock)},s.toDisplayString(a.data.top),7),a.showShieldTeam?(s.openBlock(),s.createElementBlock("img",{key:0,class:s.normalizeClass(e.$style.teamsAmerica),style:s.normalizeStyle(r.customShieldTeam),loading:"lazy",src:a.data.team_logo},null,14,tj)):s.createCommentVNode("",!0),s.createElementVNode("img",{style:s.normalizeStyle(r.customPhotoPlayerOrTeam),class:s.normalizeClass(e.$style.imageIcon),loading:"lazy",src:a.data.player_photo},null,14,aj)],6)}const nj={$style:QU},rj=ZU($U,[["render",ij],["__cssModules",nj]]),sj=(e,t)=>{const a=e.__vccOpts||e;for(const[i,n]of t)a[i]=n;return a},oy={props:{type:{type:Number,default:0},value:{type:Boolean,default:!1},textValue:String,icon:String,iconPosition:{type:String,default:"left"},iconSize:String,fontColor:{type:String,default:"#FFFFFF"},textDecoration:String,fontSize:{type:String,default:"16px"},fontSizeStat:{type:String,default:"16px"},fontStyle:String,fontFamily:{type:String,default:"Poppins-Regular"},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},borderRadius:{type:String,default:"0px"},borderType:{type:String,default:"solid"},borderWidth:{type:Number,default:0},borderWidthBtn:{type:String,default:"2px"},borderColor:String,backgroundColor:{type:String,default:"none"},activeBackgroundColor:{type:String,default:"#000000"},activeBorderWidth:{type:Number,default:2},activeBorderType:{type:String,default:"solid"},activeBorderColor:{type:String,default:"#cbee6b"},activeColorText:{type:String,default:"#FFFFFF"},cursorType:{type:String,default:"default"},typeOnOff:{type:Boolean,default:!1},textCategory:String,textStat:String,marginLeftStat:{type:String,default:"15%"}},watch:{value:{deep:!0,immediate:!0,handler(e){this.status=e}}},data(){return{status:!1}},computed:{customStyle(){return{height:this.height,width:this.width,backgroundColor:this.backgroundColor,borderRadius:this.borderRadius,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`,color:this.fontColor,textDecoration:this.textDecoration,cursor:this.cursorType,fontSize:this.fontSize,fontStyle:this.fontStyle,fontFamily:`${this.fontFamily} !important`}},customActive(){return{backgroundColor:this.activeBackgroundColor,color:this.activeColorText,border:`${this.activeBorderType} ${this.activeBorderWidth}px ${this.activeBorderColor}`}}},methods:{btnClick(e){this.$emit("click",e),this.typeOnOff&&(this.status=!this.status,this.$emit("status",this.status))}}},NT=()=>{s.useCssVars(e=>({"1c960139":e.height,b2f635d8:e.borderWidthBtn,"06e99898":e.borderType,"55555c76":e.borderColor,"23b6d320":e.borderRadius,"22c97374":e.width,"22bb09fa":e.backgroundColor,c148da7c:e.cursorType,cce756fc:e.fontSize,cff98d60:e.fontStyle,"5123b3a5":e.fontFamily,"47bf58db":e.marginLeftStat,cadc8414:e.fontSizeStat}))},AT=oy.setup;oy.setup=AT?(e,t)=>(NT(),AT(e,t)):NT;const oj=e=>(s.pushScopeId("data-v-fb269a1e"),e=e(),s.popScopeId(),e),lj=["src"],cj={key:1,class:"text"},dj=["src"],uj={class:"stats"},hj=oj(()=>s.createElementVNode("img",{class:"iconstats",src:"https://az755631.vo.msecnd.net/todoelfut/playdes.png"},null,-1)),pj={class:"numstats"},mj={class:"leyend"};function fj(e,t,a,i,n,r){return s.openBlock(),s.createElementBlock("div",null,[a.type==0?(s.openBlock(),s.createElementBlock("div",{key:0,class:s.normalizeClass(["button",n.status&&a.typeOnOff&&"button-active"]),style:s.normalizeStyle([r.customStyle,n.status&&a.typeOnOff&&r.customActive]),onClick:t[0]||(t[0]=(...o)=>r.btnClick&&r.btnClick(...o))},[a.icon&&a.iconPosition.toLowerCase()==="left"?(s.openBlock(),s.createElementBlock("img",{key:0,class:"icon",style:s.normalizeStyle({width:a.iconSize}),src:a.icon},null,12,lj)):s.createCommentVNode("",!0),a.textValue?(s.openBlock(),s.createElementBlock("div",cj,s.toDisplayString(a.textValue),1)):s.createCommentVNode("",!0),a.icon&&a.iconPosition.toLowerCase()==="right"?(s.openBlock(),s.createElementBlock("img",{key:2,class:"icon",style:s.normalizeStyle({width:a.iconSize}),src:a.icon},null,12,dj)):s.createCommentVNode("",!0)],6)):s.createCommentVNode("",!0),a.type==1?(s.openBlock(),s.createElementBlock("div",{key:1,class:"button-target",onClick:t[1]||(t[1]=(...o)=>r.btnClick&&r.btnClick(...o))},[s.createElementVNode("div",uj,[hj,s.createElementVNode("div",pj,s.toDisplayString(a.textStat),1)]),s.createElementVNode("div",mj,s.toDisplayString(a.textCategory),1)])):s.createCommentVNode("",!0)])}const gj=sj(oy,[["render",fj],["__scopeId","data-v-fb269a1e"]]);function yj(e){const t=s.ref({width:0,height:0});function a(){const i=e.value.getBoundingClientRect();t.value.width=i.width,t.value.height=i.height}return s.onMounted(()=>{a(),window.addEventListener("resize",a)}),s.onUnmounted(()=>{window.removeEventListener("resize",a)}),{elementSize:t}}const ly={props:{textOptionLeft:String,valueDefault:{type:String,default:""},textOptionRight:String,hiddenLabels:{type:Boolean,default:!1},width:{type:String,default:"50px"},height:{type:String,default:"32px"},heightCircle:{type:String,default:"24px"},widthCircle:{type:String,default:"24px"},widthIcons:{type:String,default:"22"},borderRadius:{type:String,default:"30px"},borderType:{type:String,default:"solid"},borderWidth:{type:Number,default:1},borderColor:{type:String,default:"#FFFFFF"},fontSize:{type:String,default:"14px"},fontColor:{type:String,default:"#000000"},iconA:{type:String,default:""},iconB:{type:String,default:""},fontFamily:{type:String,default:"Poppins-Regular"},backgroundColor:{type:String,default:"#2e3b46"},circleColorSwitch:{type:String,default:"#FFFFFF"}},data(){return{OptionDefault:!1}},watch:{valueDefault:{immediate:!0,handler:async function(e){try{e==this.textOptionLeft&&(this.OptionDefault=!1),e==this.textOptionRight&&(this.OptionDefault=!0)}catch(t){throw new Error(t)}}}},computed:{customStyle(){return{width:this.width,height:this.height,borderRadius:this.borderRadius,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`,backgroundColor:this.backgroundColor,circleColor:this.circleColorSwitch}},customText(){return{color:this.fontColor,fontSize:this.fontSize,fontFamily:`${this.fontFamily} !important`}}},methods:{handleSwitchChange(e){e.target.checked?this.$emit("change",this.textOptionRight):this.$emit("change",this.textOptionLeft)}}},PT=()=>{s.useCssVars(e=>({"0b58fe62":e.backgroundColor,"1350c043":e.widthCircle,a6fb272c:e.heightCircle}))},OT=ly.setup;ly.setup=OT?(e,t)=>(PT(),OT(e,t)):PT;const _j={key:0,class:"text-left"},bj=["width","src"],vj=["checked"],Sj=["width","src"],wj={key:3,class:"text-right"};function Tj(e,t,a,i,n,r){return s.openBlock(),s.createElementBlock("div",{class:"gsc-switch-radio",style:s.normalizeStyle(r.customText)},[a.textOptionLeft!=""&&!a.hiddenLabels?(s.openBlock(),s.createElementBlock("span",_j,s.toDisplayString(a.textOptionLeft),1)):s.createCommentVNode("",!0),a.iconA!=""?(s.openBlock(),s.createElementBlock("img",{key:1,width:a.widthIcons,src:a.iconA},null,8,bj)):s.createCommentVNode("",!0),s.createElementVNode("input",{type:"checkbox",id:"toggle-btn",onChange:t[0]||(t[0]=(...o)=>r.handleSwitchChange&&r.handleSwitchChange(...o)),checked:n.OptionDefault},null,40,vj),s.createElementVNode("label",{for:"toggle-btn",style:s.normalizeStyle([r.customStyle,{"--circle-color":a.circleColorSwitch}])},null,4),a.iconB!=""?(s.openBlock(),s.createElementBlock("img",{key:2,width:a.widthIcons,src:a.iconB},null,8,Sj)):s.createCommentVNode("",!0),a.textOptionRight!=""&&!a.hiddenLabels?(s.openBlock(),s.createElementBlock("span",wj,s.toDisplayString(a.textOptionRight),1)):s.createCommentVNode("",!0)],4)}const cy={components:{GSCSlider:Sc,GSCMosaicthebest:rj,GscSwitchComponent:Vw,GSCButton:gj,GSCRadioToggle:ri(ly,[["render",Tj],["__scopeId","data-v-d33948ae"]])},setup(){const e=s.ref("myDivRef"),{elementSize:t}=yj(e);return{myDivRef:e,elementSize:t}},props:{backgroundColor:{type:String,default:"#0D1D29"},showSwitch:{type:Boolean,default:!0},fontFamily:{type:String,default:"Poppins-Semibold"},fontColor:{type:String,default:"#FFFFFF"},fontSize:{type:String,default:"24px"},marginMosaic:{type:String,default:"24px"},season:{type:Number,default:1772},teamId:{type:Number,default:0}},watch:{async season(e,t){await this.getCategoryStats(e,1)}},data:()=>({url:"https://kgfaxdv624.execute-api.us-east-2.amazonaws.com/prod/tops/seasons/",token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",categoriesDefault:["Goles","Pases acertados","Balones recuperados en disputa","Asistencias","Participaciones en gol","Tiros a gol","Tiros a gol que llegaron a la portería","Cabeceos en área rival","Cabeceos en área propia","Centros","Centros acertados","1vs1 exitosos ofensivos","1vs1 exitosos ofensivos que terminaron en gol","1vs1 defensivos exitoso","Rechaces","Balones ganados en área propia","Balones ganados en área rival","Faltas cometidas","Faltas recibidas","Tarjetas amarillas","Tarjetas rojas","Atajadas","Tiros de Esquina"],categories:[{id:1,name:"Goles"},{id:2,name:"Pases acertados"},{id:3,name:"Balones recuperados en disputa"},{id:4,name:"Asistencias"},{id:5,name:"Participaciones en gol"},{id:6,name:"Tiros a gol"},{id:7,name:"Tiros a gol que llegaron a la portería"},{id:8,name:"Cabeceos en área rival"},{id:9,name:"Cabeceos en área propia"},{id:10,name:"Centros"},{id:11,name:"Centros acertados"},{id:12,name:"1vs1 exitosos ofensivos"},{id:13,name:"1vs1 exitosos ofensivos que terminaron en gol"},{id:14,name:"1vs1 defensivos exitoso"},{id:15,name:"Rechaces"},{id:16,name:"Balones ganados en área propia"},{id:17,name:"Balones ganados en área rival"},{id:18,name:"Faltas cometidas"},{id:19,name:"Faltas recibidas"},{id:20,name:"Tarjetas amarillas"},{id:21,name:"Tarjetas rojas"},{id:22,name:"Atajadas"},{id:23,name:"Tiros de Esquina"}],categoryData:[],categorySelected:null,isTeam:!1,categoryName:"Goles",optionSelected:"Jugadores",positions:[{name:"Portero"},{name:"Defensa central"},{name:"Lateral por izquierda"},{name:"Lateral por derecha"},{name:"Volante por izquierda"},{name:"Volante por derecha"},{name:"Volante defensivo"},{name:"Volante ofensivo"},{name:"Delantero"},{name:"Desconocida"}]}),async created(){await this.getCategoryStats(this.season,1)},computed:{topData(){var e=[];return this.categorySelected!=null&&this.categoryData[this.categorySelected]!==void 0&&(this.isTeam?e=this.categoryData[this.categorySelected].top__teams:e=this.categoryData[this.categorySelected].top__players),e}},methods:{translateTopCategories(e){return{1:[12,55,"35_r","54_r"],2:[2,20],3:[485,486,487,488],4:[10,324],5:[27,323],6:[510],7:[537,540,544,547],8:[328],9:[231,238,280,287,294,406],10:[13,25],11:[98,101,104,105,109,112,115,116],12:[4],13:[88],14:[5],15:[34],16:[23],17:[11],18:[17,50],19:[18,49],20:[14,52],21:[15,53],22:[39],23:[31,32]}[e]||[]},onOpenMedia(e){const t=this.translateTopCategories(this.categorySelected),a=2,i=3;let n=[],r=0,o=0;this.isTeam?(r=e.player_id,o=i):(n=[e.player_id],o=a);const l={seasonId:this.season,tournaments:[],isFeaturedPlayers:!1,mainSectionType:1,playListType:o,gameIds:null,playerIds:n,goalkeeperIds:[],categoryIds:t,teamId:r,matchResult:[1,2,3],categorySingleName:"",avoidCategorySingleName:!1,currentPlayIndex:0,playData:null,lastClashedGameId:null,tournamentsLastClashes:null,advancedFilter:{playListTitle:e.category},objectPlaySync:null};this.$emit("openmedia",l)},async ChangeRadio(e){e==="Mi equipo"&&await this.getCategoryStats(this.season,0),e==="Liga MX"&&await this.getCategoryStats(this.season,1)},clickMosaic(e){this.$emit("boxinput",e)},clickMore(){this.$emit("more")},async changeType(e){this.optionSelected=e,e=="Equipos"?(await this.getCategoryStats(this.season,1),this.isTeam=!0):this.isTeam=!1},changeCategory(e){this.categoryName=e;const t=this.categories.find(a=>a.name===e);this.categorySelected=t.id},async getCategoryStats(e,t){try{let n={},r={},o=[];const l=vc.create({headers:{Authorization:`${this.token}`}});var a={};if(t==0&&(a=await l.get(this.url+this.season+"/teams/"+this.teamId)),t==1&&(a=await l.get(this.url+e)),a&&a.data){a.data.teams.map(c=>{n[c[0]]={},n[c[0]].id=c[0],n[c[0]].name=c[2],n[c[0]].img=c[3],n[c[0]].abrv=c[2],n[c[0]].logo=c[3]}),a.data.players.map(c=>{r[c[0]]={},r[c[0]].id=c[0],r[c[0]].name=c[1],r[c[0]].img=c[2],r[c[0]].position=c[6],r[c[0]].logo="https://az755631.vo.msecnd.net/teams-150/"+c[10][0].team_id+".png"});var i=1;a.data.tops.map(c=>{o[c.category?c.category:i]={};var d={},u={};c.teams.map(m=>{d[m[0]]={},d[m[0]].total=m[1],d[m[0]].id=n[m[0]].id,d[m[0]].name=n[m[0]].name,d[m[0]].img="https://az755631.vo.msecnd.net/teams-150/"+m[0]+".png",d[m[0]].logo="https://az755631.vo.msecnd.net/teams-150/"+m[0]+".png"}),c.players.map(m=>{u[m[0]]={},u[m[0]].total=m[1],u[m[0]].name=r[m[0]].name,u[m[0]].img=r[m[0]].img.replace("players-profile/","players-profile/"),u[m[0]].id=r[m[0]].id,u[m[0]].position=this.positions[r[m[0]].position-1].name,u[m[0]].logo=r[m[0]].logo});var h=[],p=[];for(const m in d)h.push(d[m]);for(const m in u)p.push(u[m]);h.sort((m,f)=>m.total<f.total?1:-1),p.sort((m,f)=>m.total<f.total?1:-1),o[c.category?c.category:i].top__players=p,o[c.category?c.category:i].top__teams=h,i++})}this.categorySelected=1,this.categoryData=o}catch(n){return Promise.reject(n)}}}},BT=()=>{s.useCssVars(e=>({"30069cac":e.backgroundColor,"4cd96c5c":e.fontFamily,"05f6cef9":e.fontSize,"8ff7c12a":e.fontColor,f727b53e:e.marginMosaic}))},DT=cy.setup;cy.setup=DT?(e,t)=>(BT(),DT(e,t)):BT;const Cj=e=>(s.pushScopeId("data-v-33144a58"),e=e(),s.popScopeId(),e),kj={class:"gsc-best",ref:"myDivRef"},Ej={class:"gsc-best__line-bar-tools"},Ij={key:0,class:"gsc-best__line-bar-tools__title"},xj=Cj(()=>s.createElementVNode("span",null,"Los mejores ",-1)),Nj={key:1,class:"gsc-best__line-bar-tools__titlefull"},Aj={class:"unit-items"},Pj={key:2,class:"gsc-best__line-bar-tools__tools"},Oj={key:0,class:"gsc-best__line-bar-tools__tools__tabs"},Bj={class:"gsc-best__line-bar-tools__tools__btn"},Dj={key:0,class:"gsc-best__line-bar-tools-movil"},Lj={class:"gsc-best__line-bar-tools-movil__tabs"},Mj={class:"gsc-best__categories"},Rj={class:"gsc-best__players"};function Fj(e,t,a,i,n,r){const o=s.resolveComponent("GSCRadioToggle"),l=s.resolveComponent("GSCButton"),c=s.resolveComponent("GscSwitchComponent"),d=s.resolveComponent("GSCMosaicthebest"),u=s.resolveComponent("GSCSlider");return s.openBlock(),s.createElementBlock("div",kj,[s.createElementVNode("div",Ej,[i.elementSize.width>900?(s.openBlock(),s.createElementBlock("div",Ij,[xj,e.optionSelected!=="Equipos"&&a.showSwitch?(s.openBlock(),s.createBlock(o,{key:0,height:"20px",width:"41px","background-color":"none","width-circle":"15px","height-circle":"15px","circle-color-switch":"#CBEE6B","font-color":"#ffffff","value-default":"Liga MX",iconA:"https://az755631.vo.msecnd.net/teams-150/"+a.teamId+".png",iconB:"https://az755631.vo.msecnd.net/todoelfut/1.png",textOptionLeft:"Mi equipo",textOptionRight:"Liga MX",onChange:r.ChangeRadio},null,8,["iconA","onChange"])):s.createCommentVNode("",!0)])):s.createCommentVNode("",!0),i.elementSize.width<=900?(s.openBlock(),s.createElementBlock("div",Nj,[s.createElementVNode("span",{style:s.normalizeStyle(i.elementSize.width<=380?"font-size: 15px; margin-top:0px; width:60px;":"")},"Los mejores ",4),s.createElementVNode("span",Aj,[e.optionSelected!=="Equipos"&&a.showSwitch?(s.openBlock(),s.createBlock(o,{key:0,height:"20px",width:"41px","background-color":"none","width-circle":"15px","height-circle":"15px","circle-color-switch":"#CBEE6B","font-color":"#ffffff","hidden-labels":!0,"value-default":"Liga MX",iconA:"https://az755631.vo.msecnd.net/teams-150/"+a.teamId+".png",iconB:"https://az755631.vo.msecnd.net/todoelfut/1.png",textOptionLeft:"Mi equipo",textOptionRight:"Liga MX",onChange:r.ChangeRadio},null,8,["iconA","onChange"])):s.createCommentVNode("",!0),s.createVNode(l,{style:{"margin-top":"4px"},width:"75px","text-value":"Ver más","font-color":i.elementSize.width<=680?"rgba(255,255,255, 0.7)":"#fff","font-size":i.elementSize.width<=680?"11px":"14px","text-decoration":"underline",onClick:r.clickMore},null,8,["font-color","font-size","onClick"])])])):s.createCommentVNode("",!0),i.elementSize.width>900?(s.openBlock(),s.createElementBlock("div",Pj,[i.elementSize.width>900?(s.openBlock(),s.createElementBlock("div",Oj,[s.createVNode(c,{type:1,buttons:["Jugadores","Equipos"],"selected-option":e.optionSelected,"border-radius":"32px",height:"28px","border-width":"1px","border-width-container":"0.5px","background-option-active":"#0d1d29","color-option-active":"#FFFFFF","font-size":"12px",width:"270px",fontFamily:"Poppins-Regular",onInput:r.changeType,arrowsScrollHide:!1,arrowsPosition:"absolute"},null,8,["selected-option","onInput"])])):s.createCommentVNode("",!0),s.createElementVNode("div",Bj,[s.createVNode(l,{width:"75px","text-value":"Ver más","font-size":"14px","text-decoration":"underline",onClick:r.clickMore},null,8,["onClick"]),s.createVNode(l,{width:"10px","text-value":"→","font-size":"14px","font-color":"#cbee6b",onClick:r.clickMore},null,8,["onClick"])])])):s.createCommentVNode("",!0)]),i.elementSize.width<=900?(s.openBlock(),s.createElementBlock("div",Dj,[s.createElementVNode("div",Lj,[s.createVNode(c,{type:1,buttons:["Jugadores","Equipos"],"selected-option":e.optionSelected,"border-radius":"32px",height:"28px","border-width":"1px","border-width-container":"0.5px","background-option-active":"#0d1d29","color-option-active":"#FFFFFF","font-size":"10px",width:"270px",fontFamily:"Poppins-Regular",onInput:r.changeType},null,8,["selected-option","onInput"])])])):s.createCommentVNode("",!0),s.createElementVNode("div",Mj,[s.createVNode(c,{type:2,arrow:!0,"font-family":"Poppins-Regular",buttons:e.categoriesDefault,height:"40px","selected-option":"Goles","font-size":i.elementSize.width<=900?"12px":"14px",width:"max-content",onInput:r.changeCategory,pxScroll:200,scrollColor:"none",arrowsScrollHide:!1,arrowsMargin:0},null,8,["buttons","font-size","onInput"])]),s.createElementVNode("div",Rj,[s.createVNode(u,{pxScroll:777,scrollColor:"none",arrowsPosition:"absolute",arrowsScrollHide:!0,arrowsBackground:"rgba(255,255,255,.16)",arrowsContainerBgL:"linear-gradient(270deg, rgba(13,29,41,0) 0%, rgba(13,29,41,1) 70%)",arrowsContainerBgR:"linear-gradient(90deg, rgba(13,29,41,0) 0%, rgba(13,29,41,1) 70%)",arrowsMargin:0,arrowsRadius:"50%",arrowsBorder:"#ddd"},{default:s.withCtx(()=>[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(r.topData,(h,p)=>(s.openBlock(),s.createElementBlock("div",{key:p,class:s.normalizeClass(["gsc-best__players__item",p==0?"margin-none":""])},[s.createVNode(d,{data:{player_id:h.id,player_name:h.name,player_position:h.position,player_stat:h.total,category:"Total",top:p<9?"0"+(p+1):p+1,team_logo:h.logo,player_photo:h.img},"show-shield-team":!0,"active-videos":!0,onClickMosaic:r.clickMosaic,onOpenmedia:r.onOpenMedia,namePlayerFontSize:"14px",namePositionFontSize:"10px",numbertopLeft:"-15px",numberFontFamily:"Oswald-SemiBold",totalFontSize:"12px",totalFont:"Poppins-SemiBold!important",totalHeight:"21px"},null,8,["data","onClickMosaic","onOpenmedia"])],2))),128))]),_:1})])],512)}const Vj=ri(cy,[["render",Fj],["__scopeId","data-v-33144a58"]]),_t=(e,t)=>{const a=e.__vccOpts||e;for(const[i,n]of t)a[i]=n;return a},Uj=e=>(s.pushScopeId("data-v-b9c574d2"),e=e(),s.popScopeId(),e),jj={key:0,class:"match-header__left"},zj={class:"match-header__img-container"},Hj=["src"],qj={class:"match-header__img-container overlap"},Wj=["src"],Gj={class:"match-header__score"},Kj={class:"match-header__date"},Xj={key:0,xmlns:"http://www.w3.org/2000/svg",width:"12",height:"7",viewBox:"0 0 12 7",fill:"none"},Jj=Uj(()=>s.createElementVNode("path",{d:"M11 1L6 6L1 0.999999",stroke:"#9CA3AF","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)),Yj=[Jj],Qj={__name:"MatchHeader",props:{match:{type:Object,default:()=>({})},mobileClass:{type:String,default:""},clientWidth:{type:Number,default:0},hideArrow:{type:Boolean,default:!1}},setup(e){const t=e,a=s.computed(()=>{let r=[];return t.clientWidth>0&&(t.clientWidth<=450?r.push("match-header__acronyms__450"):t.clientWidth<=750?r.push("match-header__acronyms__750"):t.clientWidth<=850?r.push("match-header__acronyms__850"):r.push("match-header__acronyms")),r}),{match:i,mobileClass:n}=s.toRefs(t);return(r,o)=>{var l,c,d,u,h,p,m,f;return s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["match-header",s.unref(n)])},[s.unref(i)?(s.openBlock(),s.createElementBlock("div",jj,[s.createElementVNode("div",zj,[s.createElementVNode("img",{class:"match-header__img",src:(c=(l=s.unref(i))==null?void 0:l.homeTeam)==null?void 0:c.logo},null,8,Hj)]),s.createElementVNode("div",qj,[s.createElementVNode("img",{class:"match-header__img",src:(u=(d=s.unref(i))==null?void 0:d.awayTeam)==null?void 0:u.logo},null,8,Wj)]),s.createElementVNode("div",{class:s.normalizeClass(["match-header__acronyms",a.value])},s.toDisplayString(`${(p=(h=s.unref(i))==null?void 0:h.homeTeam)==null?void 0:p.acronym} VS ${(f=(m=s.unref(i))==null?void 0:m.awayTeam)==null?void 0:f.acronym}`),3)])):s.createCommentVNode("",!0),s.createElementVNode("div",Gj,s.toDisplayString(`${s.unref(i).score[0]} - ${s.unref(i).score[1]}`),1),s.createElementVNode("div",Kj,[s.createElementVNode("span",null,s.toDisplayString(s.unref(i).date.split("-").reverse().join("/")),1),e.hideArrow?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("svg",Xj,Yj))])],2)}}},LT=_t(Qj,[["__scopeId","data-v-b9c574d2"]]);function Zj(){return MT().__VUE_DEVTOOLS_GLOBAL_HOOK__}function MT(){return typeof navigator<"u"&&typeof window<"u"?window:typeof global<"u"?global:{}}const $j=typeof Proxy=="function",ez="devtools-plugin:setup",tz="plugin:settings:set";let Ac,dy;function az(){var e;return Ac!==void 0||(typeof window<"u"&&window.performance?(Ac=!0,dy=window.performance):typeof global<"u"&&!((e=global.perf_hooks)===null||e===void 0)&&e.performance?(Ac=!0,dy=global.perf_hooks.performance):Ac=!1),Ac}function iz(){return az()?dy.now():Date.now()}class nz{constructor(t,a){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=t,this.hook=a;const i={};if(t.settings)for(const o in t.settings){const l=t.settings[o];i[o]=l.defaultValue}const n=`__vue-devtools-plugin-settings__${t.id}`;let r=Object.assign({},i);try{const o=localStorage.getItem(n),l=JSON.parse(o);Object.assign(r,l)}catch{}this.fallbacks={getSettings(){return r},setSettings(o){try{localStorage.setItem(n,JSON.stringify(o))}catch{}r=o},now(){return iz()}},a&&a.on(tz,(o,l)=>{o===this.plugin.id&&this.fallbacks.setSettings(l)}),this.proxiedOn=new Proxy({},{get:(o,l)=>this.target?this.target.on[l]:(...c)=>{this.onQueue.push({method:l,args:c})}}),this.proxiedTarget=new Proxy({},{get:(o,l)=>this.target?this.target[l]:l==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(l)?(...c)=>(this.targetQueue.push({method:l,args:c,resolve:()=>{}}),this.fallbacks[l](...c)):(...c)=>new Promise(d=>{this.targetQueue.push({method:l,args:c,resolve:d})})})}async setRealTarget(t){this.target=t;for(const a of this.onQueue)this.target.on[a.method](...a.args);for(const a of this.targetQueue)a.resolve(await this.target[a.method](...a.args))}}function rz(e,t){const a=e,i=MT(),n=Zj(),r=$j&&a.enableEarlyProxy;if(n&&(i.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!r))n.emit(ez,e,t);else{const o=r?new nz(a,n):null;(i.__VUE_DEVTOOLS_PLUGINS__=i.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:a,setupFn:t,proxy:o}),o&&t(o.proxiedTarget)}}/*!
23
+ */const na={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"}},vT={itemsToShow:{default:na.itemsToShow,type:Number},itemsToScroll:{default:na.itemsToScroll,type:Number},wrapAround:{default:na.wrapAround,type:Boolean},throttle:{default:na.throttle,type:Number},snapAlign:{default:na.snapAlign,validator(e){return["start","end","center","center-even","center-odd"].includes(e)}},transition:{default:na.transition,type:Number},breakpoints:{default:na.breakpoints,type:Object},autoplay:{default:na.autoplay,type:Number},pauseAutoplayOnHover:{default:na.pauseAutoplayOnHover,type:Boolean},modelValue:{default:void 0,type:Number},mouseDrag:{default:na.mouseDrag,type:Boolean},touchDrag:{default:na.touchDrag,type:Boolean},dir:{default:na.dir,validator(e){return["rtl","ltr"].includes(e)}},i18n:{default:na.i18n,type:Object},settings:{default(){return{}},type:Object}};function gR({config:e,slidesCount:t}){const{snapAlign:a,wrapAround:i,itemsToShow:n=1}=e;if(i)return Math.max(t-1,0);let r;switch(a){case"start":r=t-n;break;case"end":r=t-1;break;case"center":case"center-odd":r=t-Math.ceil((n-.5)/2);break;case"center-even":r=t-Math.ceil(n/2);break;default:r=0;break}return Math.max(r,0)}function yR({config:e,slidesCount:t}){const{wrapAround:a,snapAlign:i,itemsToShow:n=1}=e;let r=0;if(a||n>t)return r;switch(i){case"start":r=0;break;case"end":r=n-1;break;case"center":case"center-odd":r=Math.floor((n-1)/2);break;case"center-even":r=Math.floor((n-2)/2);break;default:r=0;break}return r}function ty({val:e,max:t,min:a}){return t<a?e:Math.min(Math.max(e,a),t)}function _R({config:e,currentSlide:t,slidesCount:a}){const{snapAlign:i,wrapAround:n,itemsToShow:r=1}=e;let o=t;switch(i){case"center":case"center-odd":o-=(r-1)/2;break;case"center-even":o-=(r-2)/2;break;case"end":o-=r-1;break}return n?o:ty({val:o,max:a-r,min:0})}function ST(e){return e?e.reduce((t,a)=>{var i;return a.type===s.Fragment?[...t,...ST(a.children)]:((i=a.type)===null||i===void 0?void 0:i.name)==="CarouselSlide"?[...t,a]:t},[]):[]}function ay({val:e,max:t,min:a=0}){return e>t?ay({val:e-(t+1),max:t,min:a}):e<a?ay({val:e+(t+1),max:t,min:a}):e}function bR(e,t){let a;return t?function(...i){const n=this;a||(e.apply(n,i),a=!0,setTimeout(()=>a=!1,t))}:e}function vR(e,t){let a;return function(...i){a&&clearTimeout(a),a=setTimeout(()=>{e(...i),a=null},t)}}function SR(e="",t={}){return Object.entries(t).reduce((a,[i,n])=>a.replace(`{${i}}`,String(n)),e)}var wR=s.defineComponent({name:"ARIA",setup(){const e=s.inject("config",s.reactive(Object.assign({},na))),t=s.inject("currentSlide",s.ref(0)),a=s.inject("slidesCount",s.ref(0));return()=>s.h("div",{class:["carousel__liveregion","carousel__sr-only"],"aria-live":"polite","aria-atomic":"true"},SR(e.i18n.itemXofY,{currentSlide:t.value+1,slidesCount:a.value}))}}),TR=s.defineComponent({name:"Carousel",props:vT,setup(e,{slots:t,emit:a,expose:i}){var n;const r=s.ref(null),o=s.ref([]),l=s.ref(0),c=s.ref(0),d=s.reactive(Object.assign({},na));let u=Object.assign({},na),h;const p=s.ref((n=e.modelValue)!==null&&n!==void 0?n:0),m=s.ref(0),f=s.ref(0),b=s.ref(0),_=s.ref(0);let x,D;s.provide("config",d),s.provide("slidesCount",c),s.provide("currentSlide",p),s.provide("maxSlide",b),s.provide("minSlide",_),s.provide("slideWidth",l);function j(){h=Object.assign({},e.breakpoints),u=Object.assign(Object.assign(Object.assign({},u),e),{i18n:Object.assign(Object.assign({},u.i18n),e.i18n),breakpoints:void 0}),B(u)}function O(){if(!h||!Object.keys(h).length)return;const W=Object.keys(h).map(Se=>Number(Se)).sort((Se,Ge)=>+Ge-+Se);let ke=Object.assign({},u);W.some(Se=>{const Ge=window.matchMedia(`(min-width: ${Se}px)`).matches;return Ge&&(ke=Object.assign(Object.assign({},ke),h[Se])),Ge}),B(ke)}function B(W){Object.entries(W).forEach(([ke,Se])=>d[ke]=Se)}const M=vR(()=>{O(),L()},16);function L(){if(!r.value)return;const W=r.value.getBoundingClientRect();l.value=W.width/d.itemsToShow}function J(){c.value<=0||(f.value=Math.ceil((c.value-1)/2),b.value=gR({config:d,slidesCount:c.value}),_.value=yR({config:d,slidesCount:c.value}),d.wrapAround||(p.value=ty({val:p.value,max:b.value,min:_.value})))}s.onMounted(()=>{s.nextTick(()=>L()),setTimeout(()=>L(),1e3),O(),Fe(),window.addEventListener("resize",M,{passive:!0}),a("init")}),s.onUnmounted(()=>{D&&clearTimeout(D),x&&clearInterval(x),window.removeEventListener("resize",M,{passive:!0})});let U=!1;const ne={x:0,y:0},le={x:0,y:0},Z=s.reactive({x:0,y:0}),re=s.ref(!1),Ce=s.ref(!1),ve=()=>{re.value=!0},pe=()=>{re.value=!1};function z(W){["INPUT","TEXTAREA","SELECT"].includes(W.target.tagName)||(U=W.type==="touchstart",U||W.preventDefault(),!(!U&&W.button!==0||te.value)&&(ne.x=U?W.touches[0].clientX:W.clientX,ne.y=U?W.touches[0].clientY:W.clientY,document.addEventListener(U?"touchmove":"mousemove",$,!0),document.addEventListener(U?"touchend":"mouseup",ae,!0)))}const $=bR(W=>{Ce.value=!0,le.x=U?W.touches[0].clientX:W.clientX,le.y=U?W.touches[0].clientY:W.clientY;const ke=le.x-ne.x,Se=le.y-ne.y;Z.y=Se,Z.x=ke},d.throttle);function ae(){const W=d.dir==="rtl"?-1:1,ke=Math.sign(Z.x)*.4,Se=Math.round(Z.x/l.value+ke)*W;if(Se&&!U){const Ge=gt=>{gt.stopPropagation(),window.removeEventListener("click",Ge,!0)};window.addEventListener("click",Ge,!0)}_e(p.value-Se),Z.x=0,Z.y=0,Ce.value=!1,document.removeEventListener(U?"touchmove":"mousemove",$,!0),document.removeEventListener(U?"touchend":"mouseup",ae,!0)}function Fe(){!d.autoplay||d.autoplay<=0||(x=setInterval(()=>{d.pauseAutoplayOnHover&&re.value||we()},d.autoplay))}function se(){x&&(clearInterval(x),x=null),Fe()}const te=s.ref(!1);function _e(W){const ke=d.wrapAround?W:ty({val:W,max:b.value,min:_.value});p.value===ke||te.value||(a("slide-start",{slidingToIndex:W,currentSlideIndex:p.value,prevSlideIndex:m.value,slidesCount:c.value}),te.value=!0,m.value=p.value,p.value=ke,D=setTimeout(()=>{if(d.wrapAround){const Se=ay({val:ke,max:b.value,min:0});Se!==p.value&&(p.value=Se,a("loop",{currentSlideIndex:p.value,slidingToIndex:W}))}a("update:modelValue",p.value),a("slide-end",{currentSlideIndex:p.value,prevSlideIndex:m.value,slidesCount:c.value}),te.value=!1,se()},d.transition))}function we(){_e(p.value+d.itemsToScroll)}function ge(){_e(p.value-d.itemsToScroll)}const ee={slideTo:_e,next:we,prev:ge};s.provide("nav",ee),s.provide("isSliding",te);const ce=s.computed(()=>_R({config:d,currentSlide:p.value,slidesCount:c.value}));s.provide("slidesToScroll",ce);const X=s.computed(()=>{const W=d.dir==="rtl"?-1:1,ke=ce.value*l.value*W;return{transform:`translateX(${Z.x-ke}px)`,transition:`${te.value?d.transition:0}ms`,margin:d.wrapAround?`0 -${c.value*l.value}px`:"",width:"100%"}});function R(){j(),O(),J(),L(),se()}Object.keys(vT).forEach(W=>{["modelValue"].includes(W)||s.watch(()=>e[W],R)}),s.watch(()=>e.modelValue,W=>{W!==p.value&&_e(Number(W))}),s.watch(c,J),a("before-init"),j();const he={config:d,slidesCount:c,slideWidth:l,next:we,prev:ge,slideTo:_e,currentSlide:p,maxSlide:b,minSlide:_,middleSlide:f};i({updateBreakpointsConfigs:O,updateSlidesData:J,updateSlideWidth:L,initDefaultConfigs:j,restartCarousel:R,slideTo:_e,next:we,prev:ge,nav:ee,data:he});const be=t.default||t.slides,Me=t.addons,We=s.reactive(he);return()=>{const W=ST(be==null?void 0:be(We)),ke=(Me==null?void 0:Me(We))||[];W.forEach((Ye,Ze)=>Ye.props.index=Ze);let Se=W;if(d.wrapAround){const Ye=W.map((Bt,rt)=>s.cloneVNode(Bt,{index:-W.length+rt,isClone:!0,key:`clone-before-${rt}`})),Ze=W.map((Bt,rt)=>s.cloneVNode(Bt,{index:W.length+rt,isClone:!0,key:`clone-after-${rt}`}));Se=[...Ye,...W,...Ze]}o.value=W,c.value=Math.max(W.length,1);const Ge=s.h("ol",{class:"carousel__track",style:X.value,onMousedownCapture:d.mouseDrag?z:null,onTouchstartPassiveCapture:d.touchDrag?z:null},Se),gt=s.h("div",{class:"carousel__viewport"},Ge);return s.h("section",{ref:r,class:{carousel:!0,"is-sliding":te.value,"is-dragging":Ce.value,"is-hover":re.value,"carousel--rtl":d.dir==="rtl"},dir:d.dir,"aria-label":d.i18n.ariaGallery,tabindex:"0",onMouseenter:ve,onMouseleave:pe},[gt,ke,s.h(wR)])}}}),iy;(function(e){e.arrowUp="arrowUp",e.arrowDown="arrowDown",e.arrowRight="arrowRight",e.arrowLeft="arrowLeft"})(iy||(iy={}));const CR={arrowUp:"M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6-6 6z",arrowDown:"M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z",arrowRight:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z",arrowLeft:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"};function kR(e){return e in iy}const ny=e=>{const t=s.inject("config",s.reactive(Object.assign({},na))),a=String(e.name),i=`icon${a.charAt(0).toUpperCase()+a.slice(1)}`;if(!a||typeof a!="string"||!kR(a))return;const n=CR[a],r=s.h("path",{d:n}),o=t.i18n[i]||e.title||a,l=s.h("title",o);return s.h("svg",{class:"carousel__icon",viewBox:"0 0 24 24",role:"img","aria-label":o},[l,r])};ny.props={name:String,title:String};const ER=(e,{slots:t,attrs:a})=>{const{next:i,prev:n}=t||{},r=s.inject("config",s.reactive(Object.assign({},na))),o=s.inject("maxSlide",s.ref(1)),l=s.inject("minSlide",s.ref(1)),c=s.inject("currentSlide",s.ref(1)),d=s.inject("nav",{}),{dir:u,wrapAround:h,i18n:p}=r,m=u==="rtl",f=s.h("button",{type:"button",class:["carousel__prev",!h&&c.value<=l.value&&"carousel__prev--disabled",a==null?void 0:a.class],"aria-label":p.ariaPreviousSlide,onClick:d.prev},(n==null?void 0:n())||s.h(ny,{name:m?"arrowRight":"arrowLeft"})),b=s.h("button",{type:"button",class:["carousel__next",!h&&c.value>=o.value&&"carousel__next--disabled",a==null?void 0:a.class],"aria-label":p.ariaNextSlide,onClick:d.next},(i==null?void 0:i())||s.h(ny,{name:m?"arrowLeft":"arrowRight"}));return[f,b]};var IR=s.defineComponent({name:"CarouselSlide",props:{index:{type:Number,default:1},isClone:{type:Boolean,default:!1}},setup(e,{slots:t}){const a=s.inject("config",s.reactive(Object.assign({},na))),i=s.inject("currentSlide",s.ref(0)),n=s.inject("slidesToScroll",s.ref(0)),r=s.inject("isSliding",s.ref(!1)),o=()=>e.index===i.value,l=()=>e.index===i.value-1,c=()=>e.index===i.value+1,d=()=>{const u=Math.floor(n.value),h=Math.ceil(n.value+a.itemsToShow-1);return e.index>=u&&e.index<=h};return()=>{var u;return s.h("li",{style:{width:`${100/a.itemsToShow}%`},class:{carousel__slide:!0,"carousel__slide--clone":e.isClone,"carousel__slide--visible":d(),"carousel__slide--active":o(),"carousel__slide--prev":l(),"carousel__slide--next":c(),"carousel__slide--sliding":r.value},"aria-hidden":!d()},(u=t.default)===null||u===void 0?void 0:u.call(t))}}});const Mi=(e,t)=>{const a=e.__vccOpts||e;for(const[i,n]of t)a[i]=n;return a},xR={__name:"MatchDay",props:{isLandingMode:{type:Boolean,default:!1},backgroundColor:{type:String,default:"#183143"},numberColor:{type:String,default:"white"},numberFontFamily:{type:String,default:"sans-serif"},numberFontSize:{type:String,default:"14px"},textColor:{type:String,default:"rgba(255, 255, 255, 0.5)"},textFontFamily:{type:String,default:"sans-serif"},textFontSize:{type:String,default:"8px"},bottomLineColor:{type:String,default:"#cbee6b"},selectedMatchDayBackgroundColor:{type:String,default:"#243b4c"},height:{type:String,default:"fit-content"},matchDay:{type:Object,default:()=>{}},matchDaySelected:{type:Object,default:()=>{}},componentWidth:{type:Number,default:0}},emits:["change-match-day"],setup(e,{emit:t}){const a=e,i=s.computed(()=>{const l={"background-color":a.backgroundColor,height:a.height};return a.matchDay.key===a.matchDaySelected.key&&(l["border-bottom"]=`solid 1px ${a.bottomLineColor}`,l["background-color"]=a.selectedMatchDayBackgroundColor),a.isLandingMode||(l["border-right"]="solid 1px rgba(255, 255, 255, 0.1)"),l}),n=s.computed(()=>({color:a.numberColor,"font-family":a.numberFontFamily,"font-size":a.numberFontSize})),r=s.computed(()=>({color:a.textColor,"font-family":a.textFontFamily,"font-size":a.textFontSize}));function o(l){t("click-match-day",l)}return(l,c)=>(s.openBlock(),s.createElementBlock("div",{class:"match-day",style:s.normalizeStyle({...i.value}),onClick:c[0]||(c[0]=d=>o(e.matchDay))},[s.createElementVNode("div",{class:"match-day__value",style:s.normalizeStyle(n.value)},s.toDisplayString(e.matchDay.valueText),5),Number.isNaN(e.matchDay.value)?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("div",{key:0,class:"match-day__text",style:s.normalizeStyle([e.isLandingMode?"margin-top:3px":"",r.value])},s.toDisplayString(e.isLandingMode||e.componentWidth<=425?"JOR":"JORNADA"),5))],4))}},NR=Mi(xR,[["__scopeId","data-v-d6d61722"]]),AR={class:"match-day-picker"},PR={__name:"MatchDayPicker",props:{matchDays:{type:Array,default:()=>[]},isLandingMode:{type:Boolean,default:!1},backgroundColor:{type:String,default:"#183143"},numberColor:{type:String,default:"white"},numberFontFamily:{type:String,default:"sans-serif"},numberFontSize:{type:String,default:"14px"},textColor:{type:String,default:"rgba(255, 255, 255, 0.5)"},textFontFamily:{type:String,default:"sans-serif"},textFontSize:{type:String,default:"8px"},bottomLineColor:{type:String,default:"#cbee6b"},selectedMatchDayBackgroundColor:{type:String,default:"#243b4c"},height:{type:String,default:"fit-content"},itemsToShow:{type:Number,default:9},itemsToScroll:{type:Number,default:9},defaultMatchDayKey:{type:[String,null],default:""},componentWidth:{type:Number,default:0}},emits:["change-match-day"],setup(e,{emit:t}){const a=e,i=s.computed(()=>({itemsToShow:a.itemsToShow,itemsToScroll:a.itemsToScroll,snapAlign:"start"})),n=s.ref({});s.watch(()=>a.matchDays,o=>{if(o&&o.length){const l=o.find(c=>c.key===a.defaultMatchDayKey);n.value=l||o[0],t("change-match-day",n.value)}},{immediate:!0});function r(o){n.value=o,t("change-match-day",n.value)}return(o,l)=>(s.openBlock(),s.createElementBlock("div",AR,[s.createVNode(s.unref(TR),s.normalizeProps(s.guardReactiveProps(i.value)),{addons:s.withCtx(()=>[s.createVNode(s.unref(ER))]),default:s.withCtx(()=>[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(e.matchDays,c=>(s.openBlock(),s.createBlock(s.unref(IR),{key:c.key},{default:s.withCtx(()=>[s.createVNode(NR,s.mergeProps(a,{"match-day":c,"match-day-selected":n.value,"is-landing-mode":e.isLandingMode,"component-width":e.componentWidth,onClickMatchDay:r}),null,16,["match-day","match-day-selected","is-landing-mode","component-width"])]),_:2},1024))),128))]),_:1},16)]))}},OR=Mi(PR,[["__scopeId","data-v-9f7cba2a"]]);function go(e,t=80){return`${{}.TEAM_LOGOS_URL||"https://az755631.vo.msecnd.net/teams-"}${t}/${e}.png`}function wT(e){if(typeof e=="string"){let t=e.replace("M","J ");return t=t.replace("PO1","CFI"),t=t.replace("PO2","CFV"),t=t.replace("PO3","SFI"),t=t.replace("PO4","SFV"),t=t.replace("PO5","FI"),t=t.replace("PO6","FV"),t}}function BR(e){let t="";return e.game_status!=4&&(t+="Finalizado"),(e.penalties_score_home_team!=0||e.penalties_score_visiting_team!=0)&&(t+=" - Penales "+e.penalties_score_home_team+" - "+e.penalties_score_visiting_team),t}const DR={class:"game-info__teams"},LR={class:"game-info__teams__team__logo"},MR=["src"],RR={class:"game-info__teams__detail"},FR={key:0,class:"game-info__teams__detail__pre-game"},VR={class:"game-info__teams__team__logo away"},UR=["src"],jR={key:0},zR={key:0},HR={key:1},qR={__name:"GameInfo",props:{isLandingMode:{type:Boolean,default:!1},isAcronymVisible:{type:Boolean,default:!1},isTelevisionVisible:{type:Boolean,default:!0},game:{type:Object,required:!0},colorPrimary:{type:String,default:"white"},colorSecondary:{type:String,default:"grey"},namesFontSize:{type:String,default:"12px"},timeFontSize:{type:String,default:"12px"},timeZoneFontSize:{type:String,default:"8px"},scoreFontSize:{type:String,default:"13px"},namesFontFamily:{type:String,default:"sans-serif"},scoreFontFamily:{type:String,default:"sans-serif"},additionalInfoFontFamily:{type:String,default:"sans-serif"},additionalInfoFontSize:{type:String,default:"9px"}},setup(e){const t=e,a=s.computed(()=>{const d=new Date(t.game.dateTimeMillis),u=d.getHours(),h=d.getMinutes();return`${u<10?`0${u}`:u}:${h<10?`0${h}`:h}`}),i=s.computed(()=>{let d="120px";return(t.isLandingMode||t.isAcronymVisible)&&(d="70px"),{"min-width":d}}),n=s.computed(()=>({"font-size":t.namesFontSize,"font-family":t.namesFontFamily,color:t.colorPrimary})),r=s.computed(()=>({"font-size":t.additionalInfoFontSize,"font-family":t.additionalInfoFontFamily,color:t.colorSecondary})),o=s.computed(()=>({"font-size":t.scoreFontSize,"font-family":t.scoreFontFamily,color:t.colorPrimary})),l=s.computed(()=>({"font-size":t.timeZoneFontSize,"font-family":t.namesFontFamily,color:t.colorPrimary})),c=s.computed(()=>({"font-size":t.timeFontSize,"font-family":t.namesFontFamily,color:t.colorPrimary}));return(d,u)=>(s.openBlock(),s.createElementBlock("div",{class:"game-info",style:s.normalizeStyle(e.isLandingMode?"gap:5px":"")},[s.createElementVNode("div",DR,[s.createElementVNode("div",{class:"game-info__teams__team",style:s.normalizeStyle(i.value)},[s.createElementVNode("div",{class:"game-info__teams__team__name",style:s.normalizeStyle(n.value)},s.toDisplayString(e.isLandingMode||e.isAcronymVisible?e.game.home_team.acronym:e.game.home_team.colloquial_name),5),s.createElementVNode("div",LR,[s.createElementVNode("img",{src:s.unref(go)(e.game.home_team.team_id),alt:""},null,8,MR)])],4),s.createElementVNode("div",RR,[e.game.game_status===4&&!e.game.is_live?(s.openBlock(),s.createElementBlock("div",FR,[s.createElementVNode("div",null,[s.createElementVNode("span",{style:s.normalizeStyle(c.value)},s.toDisplayString(a.value),5),s.createTextVNode(),s.createElementVNode("span",{style:s.normalizeStyle(l.value)},"CST",4)])])):(s.openBlock(),s.createElementBlock("div",{key:1,class:"game-info__teams__detail__score",style:s.normalizeStyle(o.value)},[s.createElementVNode("span",null,s.toDisplayString(e.game.score[0])+" - "+s.toDisplayString(e.game.score[1]),1)],4))]),s.createElementVNode("div",{class:"game-info__teams__team away",style:s.normalizeStyle(i.value)},[s.createElementVNode("div",VR,[s.createElementVNode("img",{src:s.unref(go)(e.game.visiting_team.team_id),alt:""},null,8,UR)]),s.createElementVNode("div",{class:"game-info__teams__team__name",style:s.normalizeStyle(n.value)},s.toDisplayString(e.isLandingMode||e.isAcronymVisible?e.game.visiting_team.acronym:e.game.visiting_team.colloquial_name),5)],4)]),s.createElementVNode("div",{class:"game-info__status",style:s.normalizeStyle([r.value,e.isLandingMode?"line-height: normal":""])},[e.game.game_status===4&&!e.game.is_live?(s.openBlock(),s.createElementBlock("span",jR,[e.isTelevisionVisible?(s.openBlock(),s.createElementBlock("span",zR,s.toDisplayString(e.game.tv_stations.join(", ")),1)):s.createCommentVNode("",!0)])):(s.openBlock(),s.createElementBlock("span",HR,s.toDisplayString(s.unref(BR)(e.game)),1))],4)],4))}},TT=Mi(qR,[["__scopeId","data-v-afb1954b"]]),CT=e=>(s.pushScopeId("data-v-8839c56d"),e=e(),s.popScopeId(),e),WR={class:"game-status"},GR={key:0,class:"game-status__day__live"},KR=CT(()=>s.createElementVNode("span",null,"LIVE",-1)),XR=CT(()=>s.createElementVNode("span",{class:"dot"},null,-1)),JR=[KR,XR],YR={key:0,class:"game-status__round"},QR={__name:"GameStatus",props:{isLandingMode:{type:Boolean,default:!1},isRoundMode:{type:Boolean,default:!1},status:{type:Number,default:4},isLive:{type:Boolean,default:!1},dateTimeMillis:{type:Number,default:0},roundAbbreviation:{type:String,default:""},fontSize:{type:String,default:"10px"}},setup(e){const t=e,a=["Ene","Feb","Mar","Abr","May","Jun","Jul","Ago","Sep","Oct","Nov","Dic"],i=s.computed(()=>{let o="";if(t.dateTimeMillis){const l=new Date(t.dateTimeMillis);o=`${l.getDate()} ${a[l.getMonth()]}`}return o}),n=s.computed(()=>({"font-size":t.fontSize})),r=s.computed(()=>{let o=[];return t.isLive?o.push("live"):t.status!==1&&o.push("pre-match"),o});return(o,l)=>(s.openBlock(),s.createElementBlock("div",WR,[s.createElementVNode("div",{class:s.normalizeClass(["game-status__day",r.value]),style:s.normalizeStyle(n.value)},[e.isLive?(s.openBlock(),s.createElementBlock("div",GR,JR)):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[s.createTextVNode(s.toDisplayString(i.value),1)],64))],6),e.isRoundMode?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("div",YR,s.toDisplayString(e.roundAbbreviation),1))]))}},kT=Mi(QR,[["__scopeId","data-v-8839c56d"]]),Ri={SHOW_GAME_EVENTS:"SHOW_GAME_EVENTS",PLAY_GOALS:"PLAY_GOALS",PLAY_RESUME:"PLAY_RESUME",NOTIFICATION:"NOTIFICATION",STATISTICS:"STATISTICS"},ZR=e=>(s.pushScopeId("data-v-0d97b1a8"),e=e(),s.popScopeId(),e),$R={class:"actions"},eF={class:"actions__row"},tF=ZR(()=>s.createElementVNode("svg",{width:"10",height:"12",viewBox:"0 0 10 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[s.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M8.87471 3.35132C9.31653 3.35132 9.67471 3.70949 9.67471 4.15132V10.4531C9.67471 10.8949 9.31653 11.2531 8.87471 11.2531C8.43288 11.2531 8.07471 10.8949 8.07471 10.4531V4.15132C8.07471 3.70949 8.43288 3.35132 8.87471 3.35132Z",fill:"#EEEC6B"}),s.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M4.67549 0.199951C5.11732 0.199951 5.47549 0.558123 5.47549 0.999951V10.4526C5.47549 10.8944 5.11732 11.2526 4.67549 11.2526C4.23366 11.2526 3.87549 10.8944 3.87549 10.4526V0.999951C3.87549 0.558123 4.23366 0.199951 4.67549 0.199951Z",fill:"#EEEC6B"}),s.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M1.0002 5.45154C1.44202 5.45154 1.8002 5.80971 1.8002 6.25154V10.4527C1.8002 10.8945 1.44202 11.2527 1.0002 11.2527C0.558368 11.2527 0.200195 10.8945 0.200195 10.4527V6.25154C0.200195 5.80971 0.558368 5.45154 1.0002 5.45154Z",fill:"#EEEC6B"})],-1)),aF=[tF],iF={width:"6",height:"8",viewBox:"0 0 6 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},nF=["fill"],rF={width:"13",height:"16",viewBox:"0 0 13 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},sF=["fill"],oF={__name:"GameActionsLanding",props:{gameStatus:{type:Number,default:4},isLive:{type:Boolean,default:!1},hasVideo:{type:Boolean,default:!1},iconColor:{type:String,default:"#CBEE6B"},iconBackgroundColor:{type:String,default:"rgba(255, 255, 255, 0.2)"},iconBorderColor:{type:String,default:"rgba(255, 255, 255, 0.1)"},showPlayButton:{type:Boolean,default:!1}},emits:["action"],setup(e,{emit:t}){const a=e,i=s.computed(()=>({backgroundColor:a.iconBackgroundColor,borderColor:a.iconBorderColor}));function n(r){t("action",r)}return(r,o)=>(s.openBlock(),s.createElementBlock("div",$R,[s.createElementVNode("div",eF,[s.createElementVNode("div",{class:"actions__button rounded",style:s.normalizeStyle(i.value),onClick:o[0]||(o[0]=l=>n(s.unref(Ri).STATISTICS))},aF,4),e.showPlayButton&&e.hasVideo?(s.openBlock(),s.createElementBlock("div",{key:0,class:"actions__button rounded",style:s.normalizeStyle(i.value),onClick:o[1]||(o[1]=l=>n(s.unref(Ri).PLAY_RESUME))},[(s.openBlock(),s.createElementBlock("svg",iF,[s.createElementVNode("path",{d:"M0.442694 7.9474C0.385489 7.90953 0.337676 7.85295 0.304408 7.78375C0.27114 7.71456 0.25368 7.63538 0.253908 7.55475V0.444134C0.253987 0.363779 0.271562 0.284951 0.304765 0.216032C0.337968 0.147113 0.385557 0.090677 0.442475 0.0527243C0.499393 0.0147716 0.563511 -0.00327964 0.628014 0.000489552C0.692517 0.00425874 0.754994 0.0297075 0.808803 0.0741304L5.09491 3.62986C5.14387 3.67036 5.18401 3.7253 5.21178 3.78978C5.23955 3.85426 5.25409 3.92628 5.25409 3.99944C5.25409 4.0726 5.23955 4.14462 5.21178 4.2091C5.18401 4.27358 5.14387 4.32852 5.09491 4.36902L0.808803 7.92559C0.755077 7.97011 0.692648 7.99565 0.628173 7.99949C0.563698 8.00333 0.499593 7.98533 0.442694 7.9474Z",fill:a.iconColor},null,8,nF)]))],4)):s.createCommentVNode("",!0),e.gameStatus===4444&&!e.isLive?(s.openBlock(),s.createElementBlock("div",{key:1,class:"actions__button",onClick:o[2]||(o[2]=l=>n(s.unref(Ri).NOTIFICATION))},[(s.openBlock(),s.createElementBlock("svg",rF,[s.createElementVNode("path",{d:"M5.056 14.476h2.888c0 .838-.65 1.524-1.444 1.524-.794 0-1.444-.686-1.444-1.524zM13 12.952v.762H0v-.762l1.444-1.523V6.857c0-2.362 1.445-4.419 3.612-5.105v-.228C5.056.686 5.706 0 6.5 0c.794 0 1.444.686 1.444 1.524v.228c2.167.686 3.612 2.743 3.612 5.105v4.572L13 12.952zm-2.889-6.095c0-2.133-1.589-3.81-3.611-3.81-2.022 0-3.611 1.677-3.611 3.81v5.333h7.222V6.857z",fill:a.iconColor},null,8,sF)]))])):s.createCommentVNode("",!0)])]))}},lF=Mi(oF,[["__scopeId","data-v-0d97b1a8"]]),ry=e=>(s.pushScopeId("data-v-837bb703"),e=e(),s.popScopeId(),e),cF={class:"actions"},dF={width:"13",height:"16",viewBox:"0 0 13 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},uF=["fill"],hF={width:"6",height:"8",viewBox:"0 0 6 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},pF=["fill"],mF=ry(()=>s.createElementVNode("svg",{width:"10",height:"12",viewBox:"0 0 10 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[s.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M8.87471 3.35132C9.31653 3.35132 9.67471 3.70949 9.67471 4.15132V10.4531C9.67471 10.8949 9.31653 11.2531 8.87471 11.2531C8.43288 11.2531 8.07471 10.8949 8.07471 10.4531V4.15132C8.07471 3.70949 8.43288 3.35132 8.87471 3.35132Z",fill:"#EEEC6B"}),s.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M4.67549 0.199951C5.11732 0.199951 5.47549 0.558123 5.47549 0.999951V10.4526C5.47549 10.8944 5.11732 11.2526 4.67549 11.2526C4.23366 11.2526 3.87549 10.8944 3.87549 10.4526V0.999951C3.87549 0.558123 4.23366 0.199951 4.67549 0.199951Z",fill:"#EEEC6B"}),s.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M1.0002 5.45154C1.44202 5.45154 1.8002 5.80971 1.8002 6.25154V10.4527C1.8002 10.8945 1.44202 11.2527 1.0002 11.2527C0.558368 11.2527 0.200195 10.8945 0.200195 10.4527V6.25154C0.200195 5.80971 0.558368 5.45154 1.0002 5.45154Z",fill:"#EEEC6B"})],-1)),fF=[mF],gF={key:0,class:"actions__videos"},yF={width:"13",height:"16",viewBox:"0 0 13 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},_F=["fill"],bF={key:1,class:"actions__videos__thumbnails"},vF=ry(()=>s.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail__goals"},null,-1)),SF=ry(()=>s.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail__summary"},null,-1)),wF={height:24,width:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},TF=["stroke"],CF={__name:"GameActionsFull",props:{gameStatus:{type:Number,default:4},isLive:{type:Boolean,default:!1},hasVideo:{type:Boolean,default:!1},areEventsVisible:{type:Boolean,default:!1},iconColor:{type:String,default:"#CBEE6B"},iconBackgroundColor:{type:String,default:"rgba(255, 255, 255, 0.2)"},iconBorderColor:{type:String,default:"rgba(255, 255, 255, 0.1)"},showPlayButton:{type:Boolean,default:!1},arrowColor:{type:String,default:"white"},thumbnailFontFamily:{type:String,default:"sans-serif"},thumbnailFontSize:{type:String,default:"8px"},thumbnailColor:{type:String,default:"rgba(255, 255, 255, 0.5)"},componentWidth:{type:Number,default:400,validator(e){return e>0}}},emits:["action"],setup(e,{emit:t}){const a=e,i=s.computed(()=>({backgroundColor:a.iconBackgroundColor,borderColor:a.iconBorderColor})),n=s.computed(()=>{const c=[];return a.componentWidth<540&&c.push("mobile"),c}),r=s.computed(()=>a.componentWidth>730),o=s.computed(()=>({color:a.thumbnailColor,fontFamily:a.thumbnailFontFamily,fontSize:a.thumbnailFontSize}));function l(c){t("action",c)}return(c,d)=>(s.openBlock(),s.createElementBlock("div",cF,[s.createElementVNode("div",{class:s.normalizeClass(["actions__buttons",n.value])},[e.gameStatus===4444&&!e.isLive&&!r.value?(s.openBlock(),s.createElementBlock("div",{key:0,class:"actions__button",onClick:d[0]||(d[0]=u=>l(s.unref(Ri).NOTIFICATION))},[(s.openBlock(),s.createElementBlock("svg",dF,[s.createElementVNode("path",{d:"M5.056 14.476h2.888c0 .838-.65 1.524-1.444 1.524-.794 0-1.444-.686-1.444-1.524zM13 12.952v.762H0v-.762l1.444-1.523V6.857c0-2.362 1.445-4.419 3.612-5.105v-.228C5.056.686 5.706 0 6.5 0c.794 0 1.444.686 1.444 1.524v.228c2.167.686 3.612 2.743 3.612 5.105v4.572L13 12.952zm-2.889-6.095c0-2.133-1.589-3.81-3.611-3.81-2.022 0-3.611 1.677-3.611 3.81v5.333h7.222V6.857z",fill:a.iconColor},null,8,uF)]))])):s.createCommentVNode("",!0),e.showPlayButton&&e.hasVideo&&!r.value?(s.openBlock(),s.createElementBlock("div",{key:1,class:"actions__button rounded",style:s.normalizeStyle(i.value),onClick:d[1]||(d[1]=u=>l(s.unref(Ri).PLAY_RESUME))},[(s.openBlock(),s.createElementBlock("svg",hF,[s.createElementVNode("path",{d:"M0.442694 7.9474C0.385489 7.90953 0.337676 7.85295 0.304408 7.78375C0.27114 7.71456 0.25368 7.63538 0.253908 7.55475V0.444134C0.253987 0.363779 0.271562 0.284951 0.304765 0.216032C0.337968 0.147113 0.385557 0.090677 0.442475 0.0527243C0.499393 0.0147716 0.563511 -0.00327964 0.628014 0.000489552C0.692517 0.00425874 0.754994 0.0297075 0.808803 0.0741304L5.09491 3.62986C5.14387 3.67036 5.18401 3.7253 5.21178 3.78978C5.23955 3.85426 5.25409 3.92628 5.25409 3.99944C5.25409 4.0726 5.23955 4.14462 5.21178 4.2091C5.18401 4.27358 5.14387 4.32852 5.09491 4.36902L0.808803 7.92559C0.755077 7.97011 0.692648 7.99565 0.628173 7.99949C0.563698 8.00333 0.499593 7.98533 0.442694 7.9474Z",fill:a.iconColor},null,8,pF)]))],4)):s.createCommentVNode("",!0),s.createElementVNode("div",{class:"actions__button rounded",style:s.normalizeStyle(i.value),onClick:d[2]||(d[2]=u=>l(s.unref(Ri).STATISTICS))},fF,4)],2),r.value?(s.openBlock(),s.createElementBlock("div",gF,[e.gameStatus===4444&&!e.isLive?(s.openBlock(),s.createElementBlock("div",{key:0,class:"actions__button",onClick:d[3]||(d[3]=u=>l(s.unref(Ri).NOTIFICATION))},[(s.openBlock(),s.createElementBlock("svg",yF,[s.createElementVNode("path",{d:"M5.056 14.476h2.888c0 .838-.65 1.524-1.444 1.524-.794 0-1.444-.686-1.444-1.524zM13 12.952v.762H0v-.762l1.444-1.523V6.857c0-2.362 1.445-4.419 3.612-5.105v-.228C5.056.686 5.706 0 6.5 0c.794 0 1.444.686 1.444 1.524v.228c2.167.686 3.612 2.743 3.612 5.105v4.572L13 12.952zm-2.889-6.095c0-2.133-1.589-3.81-3.611-3.81-2.022 0-3.611 1.677-3.611 3.81v5.333h7.222V6.857z",fill:a.iconColor},null,8,_F)]))])):s.createCommentVNode("",!0),e.showPlayButton&&e.hasVideo?(s.openBlock(),s.createElementBlock("div",bF,[s.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail",onClick:d[4]||(d[4]=u=>l(s.unref(Ri).PLAY_GOALS))},[vF,s.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail__text",style:s.normalizeStyle(o.value)}," Goles ",4)]),s.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail",onClick:d[5]||(d[5]=u=>l(s.unref(Ri).PLAY_RESUME))},[SF,s.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail__text",style:s.normalizeStyle(o.value)}," Resumen ",4)])])):s.createCommentVNode("",!0)])):s.createCommentVNode("",!0),e.gameStatus!==4||e.isLive?(s.openBlock(),s.createElementBlock("div",{key:1,class:s.normalizeClass(["actions__button expand",{"rotated-180":e.areEventsVisible,mobile:e.componentWidth<540}]),onClick:d[6]||(d[6]=u=>l(s.unref(Ri).SHOW_GAME_EVENTS))},[(s.openBlock(),s.createElementBlock("svg",wF,[s.createElementVNode("path",{d:"M18.394 9.13501L13.1302 14.3988C12.5086 15.0204 11.4914 15.0204 10.8697 14.3988L5.60596 9.13501",stroke:e.arrowColor},null,8,TF)]))],2)):(s.openBlock(),s.createElementBlock("div",{key:2,class:s.normalizeClass(["actions__button expand",{"rotated-180":!1,mobile:e.componentWidth<540}])},null,2))]))}},kF=Mi(CF,[["__scopeId","data-v-837bb703"]]),nh=e=>(s.pushScopeId("data-v-477f842f"),e=e(),s.popScopeId(),e),EF={class:"row-landing__game-status"},IF={class:"row-landing__game-actions"},xF={class:"row-full__game-status"},NF={class:"row-full__game-info"},AF={key:0},PF={class:"row-full__game-actions"},OF={class:"game-events-container"},BF=nh(()=>s.createElementVNode("div",{class:"separator"},null,-1)),DF=nh(()=>s.createElementVNode("div",null,null,-1)),LF={class:"game-events__data"},MF={class:"game-events__data__team"},RF=["src"],FF={class:"game-events__data__team__event__text"},VF={class:"game-events__data__team away"},UF={class:"game-events__data__team__event__text"},jF=["src"],zF=nh(()=>s.createElementVNode("div",null,null,-1)),HF=nh(()=>s.createElementVNode("div",null,null,-1)),qF={__name:"CalendarRow",props:{isLandingMode:{type:Boolean,default:!1},isRoundMode:{type:Boolean,default:!1},game:{type:Object,required:!0},height:{type:String,default:"fit-content"},backgroundColor:{type:String,default:"#172531"},showPlayButton:{type:Boolean,default:!1},componentWidth:{type:Number,default:400,validator(e){return e>0}},televisionFontSize:{type:String,default:"12px"},televisionFontFamily:{type:String,default:"sans-serif"},televisionColor:{type:String,default:"rgba(255, 255, 255, 0.5)"}},emits:["action"],setup(e,{emit:t}){const a=e,i={GOAL:{}.GAME_EVENTS_ICONS_GOAL||"/icn-gol.svg",RED_CARD:{}.GAME_EVENTS_ICONS_RED_CARD||"/icn-expulsion.svg",YELLOW_CARD:{}.GAME_EVENTS_ICONS_YELLOW_CARD||"/icn-amarilla.svg"},n=s.ref(!1),r=s.ref(!1),o=s.computed(()=>{const f={homeTeam:[],awayTeam:[]};return a.game&&a.game.game_status!==4&&!a.game.is_live&&a.game.minutes&&(f.homeTeam.push(...p(a.game.minutes.home_goals_minutes,i.GOAL)),f.homeTeam.push(...p(a.game.minutes.home_red_cards_minutes,i.RED_CARD)),f.homeTeam.push(...p(a.game.minutes.home_yellow_cards_minutes,i.YELLOW_CARD)),f.awayTeam.push(...p(a.game.minutes.visiting_goals_minutes,i.GOAL)),f.awayTeam.push(...p(a.game.minutes.away_red_cards_minutes,i.RED_CARD)),f.awayTeam.push(...p(a.game.minutes.away_yellow_cards_minutes,i.YELLOW_CARD))),f}),l=s.computed(()=>({"background-color":a.backgroundColor})),c=s.computed(()=>({height:a.height})),d=s.computed(()=>{const f={game:[],events:[]};return a.componentWidth<500?(f.events.push("break-point-3"),f.game.push("break-point-2")):a.componentWidth<730?(f.game.push("break-point-2"),f.events.push("break-point-2")):a.componentWidth<910&&(f.game.push("break-point-1"),f.events.push("break-point-1")),f}),u=s.computed(()=>({isLandingMode:a.isLandingMode,game:a.game,colorPrimary:"#fff",colorSecondary:"#fff",namesFontSize:"12px",timeFontSize:"12px",timeZoneFontSize:"8px",scoreFontSize:"13px",namesFontFamily:"sans-serif",scoreFontFamily:"sans-serif",additionalInfoFontFamily:"sans-serif",additionalInfoFontSize:"9px"})),h=s.computed(()=>({"font-size":a.televisionFontSize,"font-family":a.televisionFontFamily,color:a.televisionColor}));s.watch(()=>a.componentWidth,f=>{r.value=f<910});function p(f,b){return f.map(_=>({iconUrl:b,text:_}))}function m(f){f===Ri.SHOW_GAME_EVENTS?n.value=!n.value:t("action",{action:f,game:a.game})}return(f,b)=>e.isLandingMode?(s.openBlock(),s.createElementBlock("div",{key:0,class:"row-landing",style:s.normalizeStyle(l.value)},[s.createVNode(TT,{game:e.game,"is-landing-mode":e.isLandingMode},null,8,["game","is-landing-mode"]),s.createElementVNode("div",EF,[s.createVNode(kT,{status:e.game.game_status,"is-live":!!e.game.is_live,"date-time-millis":e.game.dateTimeMillis,"round-abbreviation":s.unref(wT)(e.game.matchday_abbreviation),"is-landing-mode":e.isLandingMode,"is-round-mode":e.isRoundMode,"font-size":"10px"},null,8,["status","is-live","date-time-millis","round-abbreviation","is-landing-mode","is-round-mode"])]),s.createElementVNode("div",IF,[s.createVNode(lF,{"is-live":!!e.game.is_live,"has-video":!!e.game.has_video,"game-status":e.game.game_status,"show-play-button":!0,onAction:m},null,8,["is-live","has-video","game-status"])])],4)):(s.openBlock(),s.createElementBlock("div",{key:1,class:"row-full-container",style:s.normalizeStyle(l.value)},[s.createElementVNode("div",{class:s.normalizeClass(["row-full",d.value.game]),style:s.normalizeStyle(c.value)},[s.createElementVNode("div",xF,[s.createVNode(kT,{status:e.game.game_status,"is-live":!!e.game.is_live,"date-time-millis":e.game.dateTimeMillis,"round-abbreviation":s.unref(wT)(e.game.matchday_abbreviation),"is-landing-mode":e.isLandingMode,"is-round-mode":e.isRoundMode,"font-size":"10px"},null,8,["status","is-live","date-time-millis","round-abbreviation","is-landing-mode","is-round-mode"])]),s.createElementVNode("div",NF,[s.createVNode(TT,s.mergeProps(u.value,{"is-television-visible":r.value,game:e.game,"is-landing-mode":e.isLandingMode,"is-acronym-visible":e.componentWidth<540}),null,16,["is-television-visible","game","is-landing-mode","is-acronym-visible"])]),e.componentWidth>=910?(s.openBlock(),s.createElementBlock("div",{key:0,class:"row-full__television",style:s.normalizeStyle(h.value)},[!r.value&&(e.game.game_status===4||e.game.is_live)?(s.openBlock(),s.createElementBlock("span",AF,s.toDisplayString(e.game.tv_stations.join(", ")),1)):s.createCommentVNode("",!0)],4)):s.createCommentVNode("",!0),s.createElementVNode("div",PF,[s.createVNode(kF,{"is-live":!!e.game.is_live,"has-video":!!e.game.has_video,"game-status":e.game.game_status,"show-play-button":!0,"are-events-visible":n.value,"component-width":e.componentWidth,onAction:m},null,8,["is-live","has-video","game-status","are-events-visible","component-width"])])],6),s.createVNode(s.Transition,null,{default:s.withCtx(()=>[s.withDirectives(s.createElementVNode("div",OF,[BF,s.createElementVNode("div",{class:s.normalizeClass(["game-events",d.value.events])},[DF,s.createElementVNode("div",LF,[s.createElementVNode("div",MF,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(o.value.homeTeam,(_,x)=>(s.openBlock(),s.createElementBlock("div",{key:`h${x}`,class:"game-events__data__team__event"},[s.createElementVNode("img",{src:_.iconUrl},null,8,RF),s.createElementVNode("div",FF,s.toDisplayString(_.text),1)]))),128))]),s.createElementVNode("div",VF,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(o.value.awayTeam,(_,x)=>(s.openBlock(),s.createElementBlock("div",{key:`a${x}`,class:"game-events__data__team__event"},[s.createElementVNode("div",UF,s.toDisplayString(_.text),1),s.createElementVNode("img",{src:_.iconUrl},null,8,jF)]))),128))])]),zF,HF],2)],512),[[s.vShow,n.value]])]),_:1})],4))}},ET=Mi(qF,[["__scopeId","data-v-477f842f"]]),WF={class:"calendar-table"},GF={__name:"CalendarTable",props:{isLandingMode:{type:Boolean,default:!1},isRoundMode:{type:Boolean,default:!1},gamesPerPage:{type:Array,default:()=>[]},rowHeight:{type:String,default:"fit-content"},oddRowColor:{type:String,default:"#172531"},evenRowColor:{type:String,default:"#0D1D29"},componentWidth:{type:Number,default:400,validator(e){return e>0}}},emits:["action"],setup(e,{emit:t}){const a=e;function i(r){return r%2===0?a.evenRowColor:a.oddRowColor}function n(r){t("action",r)}return(r,o)=>(s.openBlock(),s.createElementBlock("div",WF,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(e.gamesPerPage,(l,c)=>(s.openBlock(),s.createBlock(ET,{key:l.game_id,game:l,"is-landing-mode":e.isLandingMode,height:e.rowHeight,"background-color":i(c),"component-width":e.componentWidth,"is-round-mode":e.isRoundMode,onAction:n},null,8,["game","is-landing-mode","height","background-color","component-width","is-round-mode"]))),128))]))}},KF=Mi(GF,[["__scopeId","data-v-47b333f0"]]),XF={class:"calendar-by-team"},JF={class:"playing-as-picker"},YF={class:"calendar-by-team__page"},QF={__name:"CalendarTableByTeam",props:{teamId:{type:Number,default:0},isPaginationVisible:{type:Boolean,default:!0},gamesPages:{type:Map,default:()=>new Map},isLandingMode:{type:Boolean,default:!1},isRoundMode:{type:Boolean,default:!1},rowHeight:{type:String,default:"fit-content"},nameRowColor:{type:String,default:"#172531"},gameRowColor:{type:String,default:"#0D1D29"},componentWidth:{type:Number,default:400,validator(e){return e>0}}},emits:["action"],setup(e,{emit:t}){const a=e,i=s.ref(0),n=s.computed(()=>{let c=[];if(a.gamesPages.size>0){const d=Array.from(a.gamesPages.entries()).reduce((u,[h,p])=>{const m=Number(h),f=Number.isNaN(m)?h:`Jornada ${m<10?"0":""}${m}`,b=p.reduce((_,x)=>(_.push(...x),_),[]).filter(_=>i.value===0||i.value===1&&_.visiting_team.team_id===a.teamId?!0:i.value===2&&_.home_team.team_id===a.teamId);return b.length>0&&u.push({roundName:f,games:b}),u},[]);c.push(d)}return c});function r(c){t("action",c)}function o(c){document.querySelector("#opc0").classList.remove("selected"),document.querySelector("#opc1").classList.remove("selected"),document.querySelector("#opc2").classList.remove("selected"),i.value=c,document.querySelector("#opc"+c).classList.add("selected")}function l(c){let d=c;switch(c){case"PI1":d="Play In 1";break;case"PI2":d="Play In 2";break;case"R1":d="Repechaje";break;case"CFI":d="Cuartos de final - Ida";break;case"CFV":d="Cuartos de final - Vuelta";break;case"SFI":d="Semifinal - Ida";break;case"SFV":d="Semifinal - Vuelta";break;case"FI":d="Final - Ida";break;case"FV":d="Final - Vuelta";break}return d}return(c,d)=>(s.openBlock(),s.createElementBlock("div",XF,[s.createElementVNode("div",JF,[s.createElementVNode("div",{class:"playing-as-picker__type selected",id:"opc0",onClick:d[0]||(d[0]=u=>o(0))},"Todas"),s.createElementVNode("div",{class:"playing-as-picker__type",id:"opc1",onClick:d[1]||(d[1]=u=>o(1))},"Visitante"),s.createElementVNode("div",{class:"playing-as-picker__type",id:"opc2",onClick:d[2]||(d[2]=u=>o(2))},"Local")]),s.createVNode(s.unref(bT),{"is-pagination-visible":e.isPaginationVisible,items:n.value},{default:s.withCtx(({item:u})=>[s.createElementVNode("div",YF,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(u,(h,p)=>(s.openBlock(),s.createElementBlock("div",{key:p,class:"calendar-by-team__page__round"},[s.createElementVNode("div",{class:"calendar-by-team__page__round__round-name",style:s.normalizeStyle([{color:"white"},e.componentWidth<=425?"padding: 5px 10px":""])},s.toDisplayString(l(h.roundName)),5),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(h.games,m=>(s.openBlock(),s.createBlock(ET,{key:m.game_id,game:m,"is-landing-mode":e.isLandingMode,height:e.rowHeight,"background-color":e.gameRowColor,"component-width":e.componentWidth,"is-round-mode":e.isRoundMode,onAction:r},null,8,["game","is-landing-mode","height","background-color","component-width","is-round-mode"]))),128))]))),128))])]),_:1},8,["is-pagination-visible","items"])]))}},ZF=Mi(QF,[["__scopeId","data-v-aae4ad84"]]),$F="_image62Icon_1lvdf_3",eV="_imgChivasIcon_1lvdf_21",tV="_nameDesktop_1lvdf_35",aV="_nameMobile_1lvdf_61",iV="_homeTeam_1lvdf_85",nV="_sbado16De_1lvdf_107",rV="_gameDate_1lvdf_125",sV="_sab16092023_1lvdf_133",oV="_div_1lvdf_159",lV="_divscore_1lvdf_177",cV="_cst_1lvdf_197",dV="_hour_1lvdf_215",uV="_score_1lvdf_217",hV="_chivasTvCanal_1lvdf_239",pV="_gameStatus_1lvdf_263",mV="_matchInfo_1lvdf_285",fV="_image62Icon1_1lvdf_311",gV="_name_1lvdf_35",yV="_imgAtlasIcon_1lvdf_355",_V="_name1_1lvdf_369",bV="_awayTeam_1lvdf_393",vV="_matchCard_1lvdf_415",SV={image62Icon:$F,imgChivasIcon:eV,nameDesktop:tV,nameMobile:aV,homeTeam:iV,sbado16De:nV,gameDate:rV,sab16092023:sV,div:oV,divscore:lV,cst:cV,hour:dV,score:uV,chivasTvCanal:hV,gameStatus:pV,matchInfo:mV,image62Icon1:fV,name:gV,imgAtlasIcon:yV,name1:_V,awayTeam:bV,matchCard:vV},wV=["src"],TV=["src"],CV={key:0},kV=["src"],EV=["src"],IV={__name:"CardPreMatch",props:{game:{type:Object,default:()=>{}}},setup(e){const t=e,a=s.computed(()=>{const n={...t.game};return n.gameSchedule=t.game.schedule.split(":"),n.gameSchedule.pop(),n.gameSchedule=n.gameSchedule.join(":"),n});function i(n,r){const o=new Date(n);if(r==1){const l=["Domingo","Lunes","Martes","Miércoles","Jueves","Viernes","Sábado"],c=["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"];return`${l[o.getDay()]} ${o.getDate()} de ${c[o.getMonth()]}`}else return`${o.getDate()}-${o.getMonth()}-${o.getFullYear()}`}return(n,r)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(n.$style.matchCard)},[s.createElementVNode("div",{class:s.normalizeClass(n.$style.homeTeam),id:"container-home-team"},[s.createElementVNode("img",{class:s.normalizeClass(n.$style.image62Icon),alt:"",src:s.unref(go)(a.value.home_team.team_id,150)},null,10,wV),s.createElementVNode("img",{class:s.normalizeClass(n.$style.imgChivasIcon),alt:"",src:s.unref(go)(a.value.home_team.team_id)},null,10,TV),s.createElementVNode("h3",{class:s.normalizeClass(n.$style.nameDesktop),id:"team-name"},s.toDisplayString(a.value.home_team.colloquial_name),3),s.createElementVNode("h3",{class:s.normalizeClass(n.$style.nameMobile),id:"team-name"},s.toDisplayString(a.value.home_team.acronym),3)],2),a.value.game_status==4?(s.openBlock(),s.createElementBlock("div",{key:0,class:s.normalizeClass(n.$style.matchInfo),id:"container-match-info"},[s.createElementVNode("div",{class:s.normalizeClass(n.$style.sbado16De)},s.toDisplayString(i(a.value.date,1)),3),s.createElementVNode("div",{class:s.normalizeClass(n.$style.sab16092023)},s.toDisplayString(i(a.value.date,0)),3),s.createElementVNode("div",{class:s.normalizeClass(n.$style.hour)},[s.createElementVNode("div",{class:s.normalizeClass(n.$style.div)},s.toDisplayString(a.value.gameSchedule),3),s.createElementVNode("div",{class:s.normalizeClass(n.$style.cst)},"CST",2)],2),s.createElementVNode("div",{class:s.normalizeClass(n.$style.chivasTvCanal)},s.toDisplayString(a.value.tv_stations.join(", ")),3)],2)):(s.openBlock(),s.createElementBlock("div",{key:1,class:s.normalizeClass(n.$style.matchInfo),id:"container-match-info"},[s.createElementVNode("div",{class:s.normalizeClass([n.$style.sbado16De,n.$style.gameDate])},s.toDisplayString(i(a.value.date,1)),3),s.createElementVNode("div",{class:s.normalizeClass([n.$style.sab16092023,n.$style.gameDate])},s.toDisplayString(i(a.value.date,0)),3),s.createElementVNode("div",{class:s.normalizeClass(n.$style.score)},[s.createElementVNode("div",{class:s.normalizeClass(n.$style.divscore)},s.toDisplayString(a.value.score.join(" - ")),3)],2),s.createElementVNode("div",{class:s.normalizeClass(n.$style.gameStatus)},[s.createTextVNode(" Finalizado "),a.value.penalties_score_home_team!=0||a.value.penalties_score_visiting_team!=0?(s.openBlock(),s.createElementBlock("span",CV," - Penales "+s.toDisplayString(a.value.penalties_score_home_team)+" - "+s.toDisplayString(a.value.penalties_score_visiting_team),1)):s.createCommentVNode("",!0)],2)],2)),s.createElementVNode("div",{class:s.normalizeClass(n.$style.awayTeam),id:"container-away-team"},[s.createElementVNode("img",{class:s.normalizeClass(n.$style.image62Icon1),alt:"",src:s.unref(go)(a.value.visiting_team.team_id,150)},null,10,kV),s.createElementVNode("h3",{class:s.normalizeClass(n.$style.name),id:"team-name"},s.toDisplayString(a.value.visiting_team.colloquial_name),3),s.createElementVNode("img",{class:s.normalizeClass(n.$style.imgAtlasIcon),alt:"",src:s.unref(go)(a.value.visiting_team.team_id)},null,10,EV),s.createElementVNode("h3",{class:s.normalizeClass(n.$style.name1),id:"team-name"},s.toDisplayString(a.value.visiting_team.acronym),3)],2)],2))}},xV={$style:SV},NV=Mi(IV,[["__cssModules",xV]]),AV={class:"calendar-by-game__carousel"},PV={components:{GscSwitchComponent:Vw,GSCGeneraltable:aL,GSCCalendarByGame:Mi({__name:"GSC-CalendarByGame",props:{height:{type:String,default:"fit-content"},width:{type:String,default:"100%"},rowHeight:{type:String,default:"fit-content"},oddRowColor:{type:String,default:"#172531"},evenRowColor:{type:String,default:"#0D1D29"},isLandingMode:{type:Boolean,default:!1},isRoundMode:{type:Boolean,default:!1},isRoundPickerVisible:{type:Boolean,default:!0},isPaginationVisible:{type:Boolean,default:!0},awaitForSeasons:{type:Boolean,default:!1},seasons:{type:Array,default:()=>[]},isCup:{type:Boolean,default:!1},isCupLegacy:{type:Boolean,default:!1},token:{type:String,default:""},pagesWithGames:{type:Array,default:()=>[]},maxGamesToShow:{type:Number,default:0,validator(e){return!Number.isNaN(e)&&e>=0}},areRoundsVisible:{type:Boolean,default:!0},gamesPerMatchDay:{type:Number,default:0,validator(e){return!Number.isNaN(e)&&e>=0}},itemsToShow:{type:Number,default:9},itemsToScroll:{type:Number,default:9},games:{type:Array,default:()=>null},teamId:{type:Number,default:0,validator(e){return!Number.isNaN(e)&&e>=0}},avoidTeamIdFilter:{type:Boolean,default:!1},areGamesCarouselType:{type:Boolean,default:!1},defaultGameId:{type:Number,default:0,validator(e){return!Number.isNaN(e)&&e>=0}}},emits:["tournament-selected","change-teams","change-round","change-game-carousel","action"],setup(e,{emit:t}){const a=e;let i=null;const n=s.ref([]),r=s.ref({}),o=s.ref([]),l=s.ref(0),c=s.ref(null),d=s.ref({}),u=s.ref(new Map),h=s.ref(!1),p=s.ref(null),m=s.ref(null),f=s.ref(null),b=s.computed(()=>a.isCup),_=s.computed(()=>a.isCupLegacy),x=s.computed(()=>({height:a.height,width:a.width})),D=s.computed(()=>a.games?L(a.games):u.value.get(d.value.key)||[]);s.watch(()=>a.seasons,ve=>{ve&&ve.length&&(h.value=!0,n.value=ve.map(pe=>pe.id),B(ve,!0))},{immediate:!0,deep:!0}),s.watch(()=>a.teamId,()=>{M()});async function j(ve,pe,z=""){let $=z;try{const ae={};a.token&&(ae.Authorization=a.token),$||($="https://qyyibs1w0d.execute-api.us-west-2.amazonaws.com/prod/calendar/gamesBySeason?",ve.forEach((te,_e)=>{$+=`${_e===0?"":"&"}seasons=${te}`}));const{data:{data:Fe,teams:se}}=await fT.get($,{headers:ae});return{seasonsAndGames:Fe,seasonsAndTeams:se}}catch(ae){if(pe>0)return j(ve,pe-1,$);throw new Error(ae)}}function O(ve){for(const pe of ve)if(!n.value.includes(pe.season_id))return!0;return!1}async function B(ve,pe){try{r.value={};let z=0;const{seasonsAndGames:$,seasonsAndTeams:ae}=await j(ve.map(se=>se.id),3);if(pe&&O($))return;$.forEach(se=>{const{type:te}=ve.find(_e=>_e.id===se.season_id);se.type=te,se.games.forEach(_e=>{_e.season_id=se.season_id}),te===0&&(z=se.season_id)}),p.value={seasonsGames:$};const{teams:Fe}=ae.find(se=>se.season_id===z);m.value=Fe,t("change-teams",Fe),M()}catch(z){throw new Error(z)}}function M(){if(!m.value)return;const ve=p.value&&p.value.seasonsGames?p.value.seasonsGames.map(pe=>{const z=pe.games.reduce(($,ae)=>{const Fe={...ae};return Fe.dateTimeMillis=new Date(Fe.date_time_utc).valueOf(),Fe.home_team=m.value.find(se=>se.team_id===ae.home_team),Fe.visiting_team=m.value.find(se=>se.team_id===ae.visiting_team),a.teamId&&Fe.home_team.team_id!==a.teamId&&Fe.visiting_team.team_id!==a.teamId||($[ae.matchday_abbreviation]?$[ae.matchday_abbreviation][ae.game_status===3?"canceled":ae.date]?$[ae.matchday_abbreviation][ae.game_status===3?"canceled":ae.date].push(Fe):$[ae.matchday_abbreviation][ae.game_status===3?"canceled":ae.date]=[Fe]:$[ae.matchday_abbreviation]={[ae.game_status===3?"canceled":ae.date]:[Fe]}),$},{});for(let[$,ae]of Object.entries(z))z[$]=Object.entries(ae).map(([Fe,se])=>({date:Fe,games:se.sort((te,_e)=>te.dateTimeMillis-_e.dateTimeMillis)})),z[$].sort((Fe,se)=>Fe.date<se.date?-1:Fe.date>se.date?1:0);return{type:pe.type,weight:pe.type===0?0:pe.type===2?1:2,schedule:z}}):[];ve.sort((pe,z)=>pe.weight-z.weight),r.value=ve.reduce((pe,z)=>{for(const[$,ae]of Object.entries(z.schedule))if(z.type===0)if(b.value){const Fe=$.replace("M",""),se=Fe;_.value?pe[fR[Fe]||se]=ae:pe[mR[$]||se]=ae}else pe[Number($.replace("M","")).toString()]=ae;else z.type===2?$.charAt(1)=="I"?pe[`PI${Number($.replace("PI",""))}`]=ae:pe[`R${Number($.replace("PO",""))}`]=ae:z.type===1&&(pe[pR[$]]=ae);return pe},{}),u.value=new Map,o.value=Array.from(Object.entries(r.value).reduce((pe,[z,$])=>{const ae=Number(z);let Fe="";Number.isNaN(ae)?Fe=z:Fe=ae<10?`0${ae}`:z,pe.set(z,{key:z,value:ae,valueText:Fe});const se=$.reduce((_e,we)=>(we.games.forEach(ge=>{ge.game_id===a.defaultGameId&&(f.value=z),ge.roundAbbreviation=Number.isNaN(ae)?ae:`J ${ae}`}),_e=_e.concat(we.games),_e),[]),te=L(se);return u.value.set(z,te),pe},new Map).values())}function L(ve){const pe=[];if(a.gamesPerMatchDay>0){let z=[];ve.forEach(($,ae)=>{z.push($),(ae+1)%a.gamesPerMatchDay===0&&(pe.push([...z]),z=[])}),z.length&&pe.push([...z])}else pe.push(ve);return pe}async function J(ve){try{const{data:pe}=await fT.get("https://kefloixzy1.execute-api.us-west-2.amazonaws.com/prod/tournaments");return pe}catch(pe){if(ve>0)return J(ve-1);throw new Error(pe)}}function U(){if(window.ResizeObserver)i=new ResizeObserver(()=>{l.value=c.value.clientWidth}),i.observe(c.value);else throw new Error("Resize observer not supported!")}function ne(ve){d.value=ve,t("change-round",ve)}function le(ve){a.areGamesCarouselType&&t("change-game-carousel",ve.selectedItem)}function Z(ve){t("action",ve),re(ve)}function re(ve){const pe="PLAY_RESUME",z="PLAY_GOALS",$=[607,608,12,55,54,35,14,52,15,53,466,477],ae=[12,55,"35_r","54_r"],{game_id:Fe,season_id:se}=ve.game;let te={seasonId:se,tournaments:[],isFeaturedPlayers:!1,mainSectionType:1,playListType:1,gameIds:[Fe],playerIds:[],goalkeeperIds:[],categoryIds:[],teamId:0,matchResult:[],categorySingleName:"",avoidCategorySingleName:!1,currentPlayIndex:0,playData:null,lastClashedGameId:null,tournamentsLastClashes:null,advancedFilter:{playListTitle:""},objectPlaySync:null};ve.action===pe?(te.categoryIds=$,te.advancedFilter.playListTitle="Resumen",t("openmedia",te)):ve.action===z&&(te.categoryIds=ae,te.advancedFilter.playListTitle="Goles",t("openmedia",te))}async function Ce(){try{if(!a.awaitForSeasons&&!a.games){const ve=(await J(3)).find($=>$._id===1),pe=ve.seasons[0],z=[{id:pe.id,type:pe.type}];ve&&ve.tournament&&t("tournament-selected",ve.tournament),pe.related_seasons&&pe.related_seasons.length&&z.push(...pe.related_seasons.map($=>({id:$.id,type:$.type}))),await B(z,!1)}}catch(ve){throw new Error(ve)}}return s.onMounted(()=>{U()}),Ce(),(ve,pe)=>(s.openBlock(),s.createElementBlock("div",{ref_key:"calendarByGame",ref:c,class:"calendar-by-game",style:s.normalizeStyle(x.value)},[e.teamId&&!e.avoidTeamIdFilter?(s.openBlock(),s.createBlock(ZF,{key:0,"full-tournament-schedule":r.value,"team-id":e.teamId,"is-landing-mode":!1,"row-height":e.rowHeight,"component-width":l.value,"games-pages":u.value,"is-pagination-visible":e.isPaginationVisible,"is-round-mode":e.isRoundMode,onAction:Z},null,8,["full-tournament-schedule","team-id","row-height","component-width","games-pages","is-pagination-visible","is-round-mode"])):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[e.areRoundsVisible&&o.value?(s.openBlock(),s.createBlock(OR,{key:0,"match-days":o.value,"is-landing-mode":e.isLandingMode,height:"48px","items-to-show":e.itemsToShow,"items-to-scroll":e.itemsToScroll,"component-width":l.value,"default-match-day-key":f.value,onChangeMatchDay:ne},null,8,["match-days","is-landing-mode","items-to-show","items-to-scroll","component-width","default-match-day-key"])):s.createCommentVNode("",!0),s.createElementVNode("div",AV,[D.value?(s.openBlock(),s.createBlock(s.unref(bT),{key:0,"is-pagination-visible":e.isPaginationVisible&&!e.areGamesCarouselType,items:e.areGamesCarouselType?D.value[0]:D.value,"are-navigation-arrows-visible":e.areGamesCarouselType?!e.areGamesCarouselType:e.isPaginationVisible,"wrap-around":e.areGamesCarouselType,"items-to-show":e.areGamesCarouselType?1.2:1,"is-main-slide-priority":e.areGamesCarouselType,"are-slides-arrows-visible":e.areGamesCarouselType,"slides-arrows-left-and-right":e.areGamesCarouselType?"30px":"0px","default-item-by-prop":e.areGamesCarouselType?{propName:"game_id",value:e.defaultGameId}:{},onInput:le},{default:s.withCtx(({item:z})=>[e.areGamesCarouselType?(s.openBlock(),s.createBlock(NV,{key:0,game:z},null,8,["game"])):(s.openBlock(),s.createBlock(KF,{key:1,"games-per-page":z,"is-landing-mode":e.isLandingMode,"row-height":e.rowHeight,"component-width":l.value,"is-round-mode":e.isRoundMode,onAction:Z},null,8,["games-per-page","is-landing-mode","row-height","component-width","is-round-mode"]))]),_:1},8,["is-pagination-visible","items","are-navigation-arrows-visible","wrap-around","items-to-show","is-main-slide-priority","are-slides-arrows-visible","slides-arrows-left-and-right","default-item-by-prop"])):s.createCommentVNode("",!0)])],64))],4))}},[["__scopeId","data-v-3a52cb83"]])},props:{season:{type:Object,default:()=>{}},seasons:{type:Array,default:()=>[]},componentWidth:{type:Number,default:768,validator(e){return e>0}}},data(){return{selectedOpt:"Mi posición",tokenFree:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"}},computed:{},methods:{onAction(e){this.$emit("action",e)},changeCategory(e){this.selectedOpt=e},onOpenMedia(e){this.$emit("openmedia",e)},onOpenProfile(e){this.$emit("onOpenProfile",e)}}},OV={class:"gsc-calendar-table"},BV={class:"gsc-switch-container"},DV={class:"gsc-app-component"};function LV(e,t,a,i,n,r){const o=s.resolveComponent("GscSwitchComponent"),l=s.resolveComponent("GSCGeneraltable"),c=s.resolveComponent("GSCCalendarByGame");return s.openBlock(),s.createElementBlock("div",OV,[s.createElementVNode("div",BV,[s.createVNode(o,{type:0,"font-family":"Poppins-Regular",buttons:["Mi posición","Calendario"],height:"40px","selected-option":n.selectedOpt,"font-size":a.componentWidth>=768?"16px":"14px",width:"355px",onInput:r.changeCategory},null,8,["selected-option","font-size","onInput"])]),s.createElementVNode("div",DV,[n.selectedOpt=="Mi posición"?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[s.createVNode(l,{isPaginationVisible:!0,"current-season-id":a.season.id,type:1,"await-for-season":!0,onOpenmedia:r.onOpenMedia,onOpenTableProfile:r.onOpenProfile},null,8,["current-season-id","onOpenmedia","onOpenTableProfile"]),s.createElementVNode("div",{onClick:t[0]||(t[0]=d=>this.$router.push({name:"table"})),class:"gsc-app-component-view-all"}," Ver todo ")],64)):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[s.createVNode(c,{onAction:r.onAction,onOpenmedia:r.onOpenMedia,width:"100%",token:n.tokenFree,seasons:a.seasons,"row-height":"90px","is-landing-mode":!0,"is-pagination-visible":!0,isRoundPickerVisible:!0,"await-for-seasons":"","items-to-show":9,"items-to-scroll":5,"max-games-to-show":5,"games-per-match-day":5},null,8,["onAction","onOpenmedia","token","seasons"]),s.createElementVNode("div",{onClick:t[1]||(t[1]=d=>this.$router.push({name:"calendar"})),class:"gsc-app-component-view-all"}," Ver todo ")],64))])])}const MV=ri(PV,[["render",LV],["__scopeId","data-v-46b2c6d3"]]),RV={class:"match"},FV={class:"match__header"},VV={key:0,class:"match__final-tag"},UV={key:1,class:"match__final-tag__no-border"},jV={class:"match__tag"},zV={class:"match__body"},HV={class:"match__data"},qV={class:"match__acronym"},WV=["src"],GV={class:"match__score"},KV=["src"],XV={class:"match__acronym"},JV={class:"match__status"},rh=ri({__name:"PreviousMatch",props:{visitTeam:{type:Object,default:()=>{}},data:{type:Object,default:()=>{}},homeTeam:{type:Object,default:()=>{}},score:{type:String,default:"2 - 1"},journey:{type:[String,Number],default:2},penalScore:{type:String,default:""},infoType:{type:String,default:"postmatch"}},setup(e){return(t,a)=>{var i,n,r;return s.openBlock(),s.createElementBlock("section",RV,[s.createElementVNode("div",FV,[e.infoType=="postmatch"?(s.openBlock(),s.createElementBlock("div",VV,"FINAL ")):(s.openBlock(),s.createElementBlock("div",UV)),s.createElementVNode("div",jV,s.toDisplayString(e.data.matchday_abbreviation.replace("M","J")),1)]),s.createElementVNode("div",zV,[s.createElementVNode("div",HV,[s.createElementVNode("div",qV,s.toDisplayString((i=e.data)==null?void 0:i.home_team_acronym),1),s.createElementVNode("img",{class:"match__img",src:"https://az755631.vo.msecnd.net/teams-80/"+e.data.home_team+".png",alt:"team-img"},null,8,WV),s.createElementVNode("div",GV,[e.infoType=="postmatch"?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[s.createTextVNode(s.toDisplayString(e.data.score[0])+" - "+s.toDisplayString(e.data.score[1]),1)],64)):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[s.createTextVNode(s.toDisplayString((n=e.data)==null?void 0:n.schedule.replace(":00","")),1)],64))]),s.createElementVNode("img",{class:"match__img",src:"https://az755631.vo.msecnd.net/teams-80/"+e.data.visiting_team+".png",alt:"team-img"},null,8,KV),s.createElementVNode("div",XV,s.toDisplayString((r=e.data)==null?void 0:r.visiting_team_acronym),1)]),s.createElementVNode("div",JV,[e.infoType=="postmatch"?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[s.createTextVNode("Finalizado"+s.toDisplayString(e.penalScore?` - Penales ${e.penalScore}`:""),1)],64)):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[s.createTextVNode("CST")],64))])]),s.createElementVNode("div",{class:"match__button",onClick:a[0]||(a[0]=o=>t.$emit("clickMatch"))},"Analizar partido →")])}}},[["__scopeId","data-v-19fa994a"]]),YV=e=>(s.pushScopeId("data-v-48fd3198"),e=e(),s.popScopeId(),e),QV={class:"match"},ZV={class:"match__header"},$V=YV(()=>s.createElementVNode("div",{class:"match__final-tag"},"FINAL",-1)),eU={class:"match__tag"},tU={class:"match__body"},aU={class:"match__data"},iU={class:"match__acronym"},nU=["src"],rU={class:"match__score"},sU=["src"],oU={class:"match__acronym"},lU={class:"match__status"},IT=ri({__name:"PreviousMatchGame",props:{visitTeam:{type:Object,default:()=>{}},data:{type:Object,default:()=>{}},homeTeam:{type:Object,default:()=>{}},score:{type:String,default:"2 - 1"},journey:{type:[String,Number],default:2},penalScore:{type:String,default:""}},setup(e){return(t,a)=>(s.openBlock(),s.createElementBlock("section",QV,[s.createElementVNode("div",ZV,[$V,s.createElementVNode("div",eU,s.toDisplayString(e.data.matchday_abbreviation.replace("M","J")),1)]),s.createElementVNode("div",tU,[s.createElementVNode("div",aU,[s.createElementVNode("div",iU,s.toDisplayString(e.data.home_team.acronym),1),s.createElementVNode("img",{class:"match__img",src:"https://az755631.vo.msecnd.net/teams-80/"+e.data.home_team.team_id+".png",alt:"team-img"},null,8,nU),s.createElementVNode("div",rU,s.toDisplayString(e.data.score[0])+" - "+s.toDisplayString(e.data.score[1]),1),s.createElementVNode("img",{class:"match__img",src:"https://az755631.vo.msecnd.net/teams-80/"+e.data.visiting_team.team_id+".png",alt:"team-img"},null,8,sU),s.createElementVNode("div",oU,s.toDisplayString(e.data.visiting_team.acronym),1)]),s.createElementVNode("div",lU,"Finalizado"+s.toDisplayString(e.penalScore?` - Penales ${e.penalScore}`:""),1)]),s.createElementVNode("div",{class:"match__button",onClick:a[0]||(a[0]=i=>t.$emit("clickMatch"))},"Analizar partido →")]))}},[["__scopeId","data-v-48fd3198"]]),cU=e=>(s.pushScopeId("data-v-1bb62bcb"),e=e(),s.popScopeId(),e),dU=["src"],uU=["src"],hU={class:"coming-match__body"},pU={class:"coming-match__data"},mU=["src"],fU={style:{"margin-top":"16px"}},gU={class:"coming-match__time"},yU=cU(()=>s.createElementVNode("div",{class:"coming-match__cst"},"CST",-1)),_U=["src"],sy=ri({__name:"ComingMatch",props:{small:{type:Boolean,default:!1},visitTeam:{type:Object,default:()=>{}},data:{type:Object,default:()=>{}},homeTeam:{type:Object,default:()=>{}},date:{type:String,default:"Jueves 7 de Abril"},time:{type:String,default:"5: 00"}},setup(e){return(t,a)=>{var i,n,r,o,l,c,d,u,h,p,m,f,b;return s.openBlock(),s.createElementBlock("section",{class:s.normalizeClass(["coming-match",{small:e.small}])},[s.createElementVNode("img",{class:s.normalizeClass(["coming-match__bg",{small:e.small}]),src:typeof e.data.home_team=="object"?"https://az755631.vo.msecnd.net/teams-150/"+((i=e.data)==null?void 0:i.home_team.team_id)+".png":"https://az755631.vo.msecnd.net/teams-150/"+((n=e.data)==null?void 0:n.home_team)+".png",alt:"team-img"},null,10,dU),s.createElementVNode("img",{class:s.normalizeClass(["coming-match__bg",{small:e.small}]),src:typeof e.data.visiting_team=="object"?"https://az755631.vo.msecnd.net/teams-150/"+((r=e.data)==null?void 0:r.visiting_team.team_id)+".png":"https://az755631.vo.msecnd.net/teams-150/"+((o=e.data)==null?void 0:o.visiting_team)+".png",alt:"team-img"},null,10,uU),s.createElementVNode("div",hU,[s.createElementVNode("div",{class:s.normalizeClass(["coming-match__date",{small:e.small}])},s.toDisplayString(e.data.matchday_abbreviation.replace("M","J")),3),s.createElementVNode("div",pU,[s.createElementVNode("div",{class:s.normalizeClass(["coming-match__team",{small:e.small}])},[s.createElementVNode("img",{class:s.normalizeClass(["coming-match__img",{small:e.small}]),src:typeof e.data.home_team=="object"?"https://az755631.vo.msecnd.net/teams-80/"+((l=e.data)==null?void 0:l.home_team.team_id)+".png":"https://az755631.vo.msecnd.net/teams-80/"+((c=e.data)==null?void 0:c.home_team)+".png",alt:"team-img"},null,10,mU),s.createElementVNode("div",{class:s.normalizeClass(["coming-match__acronym",{small:e.small}])},s.toDisplayString((d=e.data)==null?void 0:d.home_team_name),3)],2),s.createElementVNode("div",fU,[s.createElementVNode("div",gU,[e.data.game_status==1?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[s.createTextVNode(s.toDisplayString((u=e.data)==null?void 0:u.score[0])+" - "+s.toDisplayString((h=e.data)==null?void 0:h.score[1]),1)],64)):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[s.createTextVNode(s.toDisplayString((p=e.data)==null?void 0:p.schedule.replace(":00","")),1)],64))]),yU]),s.createElementVNode("div",{class:s.normalizeClass(["coming-match__team",{small:e.small}])},[s.createElementVNode("div",{class:s.normalizeClass(["coming-match__acronym",{small:e.small}])},s.toDisplayString((m=e.data)==null?void 0:m.visiting_team_name),3),s.createElementVNode("img",{class:s.normalizeClass(["coming-match__img",{small:e.small}]),src:typeof e.data.visiting_team=="object"?"https://az755631.vo.msecnd.net/teams-80/"+((f=e.data)==null?void 0:f.visiting_team.team_id)+".png":"https://az755631.vo.msecnd.net/teams-80/"+((b=e.data)==null?void 0:b.visiting_team)+".png",alt:"team-img"},null,10,_U)],2)])]),s.createElementVNode("div",{class:s.normalizeClass(["coming-match__button",{small:e.small}]),onClick:a[0]||(a[0]=_=>t.$emit("clickMatch"))},"Analizar partido →",2)],2)}}},[["__scopeId","data-v-1bb62bcb"]]),bU=e=>(s.pushScopeId("data-v-fd22358e"),e=e(),s.popScopeId(),e),vU=["src"],SU=["src"],wU={class:"coming-match__body"},TU={class:"coming-match__data"},CU=["src"],kU={style:{"margin-top":"16px"}},EU={class:"coming-match__time"},IU=bU(()=>s.createElementVNode("div",{class:"coming-match__cst"},"CST",-1)),xU=["src"],xT=ri({__name:"ComingMatchGame",props:{small:{type:Boolean,default:!1},visitTeam:{type:Object,default:()=>{}},data:{type:Object,default:()=>{}},homeTeam:{type:Object,default:()=>{}},date:{type:String,default:"Jueves 7 de Abril"},time:{type:String,default:"5: 00"}},setup(e){return(t,a)=>{var i,n,r,o,l,c,d,u,h,p,m,f,b;return s.openBlock(),s.createElementBlock("section",{class:s.normalizeClass(["coming-match",{small:e.small}])},[s.createElementVNode("img",{class:s.normalizeClass(["coming-match__bg",{small:e.small}]),src:typeof e.data.home_team=="object"?"https://az755631.vo.msecnd.net/teams-80/"+((i=e.data)==null?void 0:i.home_team.team_id)+".png":"https://az755631.vo.msecnd.net/teams-80/"+((n=e.data)==null?void 0:n.home_team)+".png",alt:"team-img"},null,10,vU),s.createElementVNode("img",{class:s.normalizeClass(["coming-match__bg",{small:e.small}]),src:typeof e.data.visiting_team=="object"?"https://az755631.vo.msecnd.net/teams-80/"+((r=e.data)==null?void 0:r.visiting_team.team_id)+".png":"https://az755631.vo.msecnd.net/teams-80/"+((o=e.data)==null?void 0:o.visiting_team)+".png",alt:"team-img"},null,10,SU),s.createElementVNode("div",wU,[s.createElementVNode("div",{class:s.normalizeClass(["coming-match__date",{small:e.small}])},s.toDisplayString(e.data.matchday_abbreviation.replace("M","J")),3),s.createElementVNode("div",TU,[s.createElementVNode("div",{class:s.normalizeClass(["coming-match__team",{small:e.small}])},[s.createElementVNode("img",{class:s.normalizeClass(["coming-match__img",{small:e.small}]),src:typeof e.data.home_team=="object"?"https://az755631.vo.msecnd.net/teams-80/"+((l=e.data)==null?void 0:l.home_team.team_id)+".png":"https://az755631.vo.msecnd.net/teams-80/"+((c=e.data)==null?void 0:c.home_team)+".png",alt:"team-img"},null,10,CU),s.createElementVNode("div",{class:s.normalizeClass(["coming-match__acronym",{small:e.small}])},s.toDisplayString((d=e.data)==null?void 0:d.home_team_name),3)],2),s.createElementVNode("div",kU,[s.createElementVNode("div",EU,[e.data.game_status==1?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[s.createTextVNode(s.toDisplayString((u=e.data)==null?void 0:u.score[0])+" - "+s.toDisplayString((h=e.data)==null?void 0:h.score[1]),1)],64)):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[s.createTextVNode(s.toDisplayString((p=e.data)==null?void 0:p.schedule.replace(":00","")),1)],64))]),IU]),s.createElementVNode("div",{class:s.normalizeClass(["coming-match__team",{small:e.small}])},[s.createElementVNode("div",{class:s.normalizeClass(["coming-match__acronym",{small:e.small}])},s.toDisplayString((m=e.data)==null?void 0:m.visiting_team_name),3),s.createElementVNode("img",{class:s.normalizeClass(["coming-match__img",{small:e.small}]),src:typeof e.data.visiting_team=="object"?"https://az755631.vo.msecnd.net/teams-80/"+((f=e.data)==null?void 0:f.visiting_team.team_id)+".png":"https://az755631.vo.msecnd.net/teams-80/"+((b=e.data)==null?void 0:b.visiting_team)+".png",alt:"team-img"},null,10,xU)],2)])]),s.createElementVNode("div",{class:s.normalizeClass(["coming-match__button",{small:e.small}]),onClick:a[0]||(a[0]=_=>t.$emit("clickMatch"))},"Analizar partido →",2)],2)}}},[["__scopeId","data-v-fd22358e"]]),NU=e=>(s.pushScopeId("data-v-7fbf71af"),e=e(),s.popScopeId(),e),AU={class:"quadrant-matches"},PU={class:"quadrant-matches__header"},OU={class:"quadrant-matches__title"},BU=NU(()=>s.createElementVNode("span",null," →",-1)),DU={key:0,class:"quadrant-matches__body"},LU={class:"quadrant-matches__body",style:{"column-gap":"16px"}},MU={class:"quadrant-matches__body matches"},RU={key:0,class:"quadrant-matches__body"},FU={class:"quadrant-matches__body",style:{"column-gap":"16px"}},VU=ri({__name:"GSCQuadrantGames",props:{isUserPro:{type:Boolean,default:!1},hasTeam:{type:Boolean,default:!1},isFull:{type:Boolean,default:!1},comingMatches:{type:Array,default:()=>[]},data:{type:Object,default:()=>{}},previousMatches:{type:Array,default:()=>[]},componentWidth:{type:Number,default:768,validator(e){return e>0}}},setup(e){const t=e;s.computed(()=>t.comingMatches[0]||{}),s.computed(()=>t.previousMatches[0]||{});const a=s.toRef(t,"componentWidth"),i=s.computed(()=>a.value<768);return(n,r)=>(s.openBlock(),s.createElementBlock("section",AU,[s.createElementVNode("div",PU,[s.createElementVNode("h2",OU,s.toDisplayString(e.isFull?"Partidos":"Mis partidos"),1),s.createElementVNode("button",{class:"quadrant-matches__button",onClick:r[0]||(r[0]=o=>n.$emit("clickCalendar"))},[s.createElementVNode("span",null,s.toDisplayString(e.isFull?"Calendario completo":"Mi calendario completo"),1),BU])]),e.isFull?(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[e.data.length>1?(s.openBlock(),s.createBlock(s.unref(Sc),{key:0,pxScroll:348,"background-color":"none",scrollColor:"none",arrowsPosition:"absolute",arrowsScrollHide:!0,arrowsBackground:"rgba(255,255,255,.16)",arrowsContainerBgL:"linear-gradient(270deg, rgba(13,29,41,0) 100%, rgba(13,29,41,1) 100%)",arrowsContainerBgR:"linear-gradient(270deg, rgba(13,29,41,0) 100%, rgba(13,29,41,1) 100%)",arrowsMargin:0,arrowsRadius:"50%",arrowsBorder:"#ddd"},{default:s.withCtx(()=>[s.createElementVNode("div",MU,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(e.data,(o,l)=>(s.openBlock(),s.createBlock(sy,{key:l,data:o,small:"",onClickMatch:c=>n.$emit("clickMatch",o)},null,8,["data","onClickMatch"]))),128))])]),_:1})):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[i.value?(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[Object.keys(e.data).length>0?(s.openBlock(),s.createBlock(s.unref(Sc),{key:0,pxScroll:348,"background-color":"none",scrollColor:"none",arrowsPosition:"absolute",arrowsScrollHide:!0,arrowsBackground:"rgba(255,255,255,.16)",arrowsContainerBgL:"linear-gradient(270deg, rgba(13,29,41,0) 100%, rgba(13,29,41,1) 100%)",arrowsContainerBgR:"linear-gradient(270deg, rgba(13,29,41,0) 100%, rgba(13,29,41,1) 100%)",arrowsMargin:0,arrowsRadius:"50%",arrowsBorder:"#ddd"},{default:s.withCtx(()=>[s.createElementVNode("div",FU,[e.data[0].game_status==4?(s.openBlock(),s.createBlock(xT,{key:0,data:e.data[0],onClickMatch:r[9]||(r[9]=o=>n.$emit("clickMatch",e.data[0]))},null,8,["data"])):s.createCommentVNode("",!0),e.data[0].game_status!=4?(s.openBlock(),s.createBlock(IT,{key:1,data:e.data[0],onClickMatch:r[10]||(r[10]=o=>n.$emit("clickMatch",e.data[0]))},null,8,["data"])):s.createCommentVNode("",!0)])]),_:1})):s.createCommentVNode("",!0)],64)):(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[Object.keys(e.data).length>0?(s.openBlock(),s.createElementBlock("div",RU,[e.data[0].game_status==4?(s.openBlock(),s.createBlock(xT,{key:0,data:e.data[0],onClickMatch:r[7]||(r[7]=o=>n.$emit("clickMatch",e.data[0]))},null,8,["data"])):s.createCommentVNode("",!0),e.data[0].game_status!=4?(s.openBlock(),s.createBlock(IT,{key:1,data:e.data[0],onClickMatch:r[8]||(r[8]=o=>n.$emit("clickMatch",e.data[0]))},null,8,["data"])):s.createCommentVNode("",!0)])):s.createCommentVNode("",!0)],64))],64))],64)):(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[i.value?(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[Object.keys(e.data).length>0?(s.openBlock(),s.createBlock(s.unref(Sc),{key:0,pxScroll:348,"background-color":"none",scrollColor:"none",arrowsPosition:"absolute",arrowsScrollHide:!0,arrowsBackground:"rgba(255,255,255,.16)",arrowsContainerBgL:"linear-gradient(270deg, rgba(13,29,41,0) 100%, rgba(13,29,41,1) 100%)",arrowsContainerBgR:"linear-gradient(90deg, rgba(13,29,41,0) 100%, rgba(13,29,41,1) 100%)",arrowsMargin:0,arrowsRadius:"50%",arrowsBorder:"#ddd"},{default:s.withCtx(()=>[s.createElementVNode("div",LU,[s.createVNode(sy,{small:"",data:e.data.data.prematch,onClickMatch:r[4]||(r[4]=o=>n.$emit("clickMatch",e.data.data.prematch))},null,8,["data"]),e.data.data.postmatch&&e.data.data.postmatch.game_status&&e.data.data.postmatch.game_status!==4?(s.openBlock(),s.createBlock(rh,{key:0,data:e.data.data.postmatch,onClickMatch:r[5]||(r[5]=o=>n.$emit("clickMatch",e.data.data.postmatch))},null,8,["data"])):(s.openBlock(),s.createBlock(rh,{key:1,"info-type":"prematch",data:e.data.data.postmatch,onClickMatch:r[6]||(r[6]=o=>n.$emit("clickMatch",e.data.data.postmatch))},null,8,["data"]))])]),_:1})):s.createCommentVNode("",!0)],64)):(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[Object.keys(e.data).length>0?(s.openBlock(),s.createElementBlock("div",DU,[s.createVNode(sy,{data:e.data.data.prematch,onClickMatch:r[1]||(r[1]=o=>n.$emit("clickMatch",e.data.data.prematch))},null,8,["data"]),e.data.data.postmatch&&e.data.data.postmatch.game_status&&e.data.data.postmatch.game_status!==4?(s.openBlock(),s.createBlock(rh,{key:0,data:e.data.data.postmatch,onClickMatch:r[2]||(r[2]=o=>n.$emit("clickMatch",e.data.data.postmatch))},null,8,["data"])):(s.openBlock(),s.createBlock(rh,{key:1,"info-type":"prematch",data:e.data.data.postmatch,onClickMatch:r[3]||(r[3]=o=>n.$emit("clickMatch",e.data.data.postmatch))},null,8,["data"]))])):s.createCommentVNode("",!0)],64))],64))]))}},[["__scopeId","data-v-7fbf71af"]]),UU={__name:"gsc-games",props:{componentWidth:{type:Number,default:768,validator(e){return e>0}},isplayer:{type:Boolean,default:!1},isFull:{type:Boolean,default:!1},data:{type:Object,default:()=>{}}},setup(e){return(t,a)=>(s.openBlock(),s.createElementBlock("main",null,[s.createVNode(VU,{data:e.data,"component-width":e.componentWidth,"is-full":e.isFull,onClickCalendar:a[0]||(a[0]=i=>t.$emit("clickCalendar")),onClickMatch:a[1]||(a[1]=i=>t.$emit("clickMatch",i)),"has-team":!e.isplayer},null,8,["data","component-width","is-full","has-team"])]))}},jU="_toniKroos_1pe59_35",zU="_centralMidfielder_1pe59_55",HU="_icnPlayIcon_1pe59_75",qU="_verVideos_1pe59_89",WU="_btnVideosOptions_1pe59_109",GU="_info_1pe59_147",KU="_goalUnlock_1pe59_171",XU="_teamsAmerica_1pe59_197",JU="_imageIcon_1pe59_217",YU="_playerTops_1pe59_237",QU={toniKroos:jU,centralMidfielder:zU,icnPlayIcon:HU,verVideos:qU,btnVideosOptions:WU,info:GU,goalUnlock:KU,teamsAmerica:XU,imageIcon:JU,playerTops:YU},ZU=(e,t)=>{const a=e.__vccOpts||e;for(const[i,n]of t)a[i]=n;return a},$U={props:{height:{type:String,default:"194px"},background:{type:String,default:"#122735"},borderRadius:{type:String,default:"4px"},borderWidth:{type:Number,default:0},borderColor:{type:String,default:"#ffffff"},namePlayerFont:{type:String,default:"Montserrat-SemiBold"},namePlayerFontColor:{type:String,default:"#ffffff"},namePlayerFontSize:{type:String,default:"18px"},namePlayerFontStyle:{type:String,default:"Normal"},namePositionFont:{type:String,default:"Poppins-Regular"},namePositionFontColor:{type:String,default:"#8ea2ab"},namePositionFontSize:{type:String,default:"14px"},namePositionFontStyle:{type:String,default:"Normal"},totalFont:{type:String,default:"Poppins-Regular"},totalFontColor:{type:String,default:"#ffffff"},totalFontSize:{type:String,default:"8px"},totalFontStyle:{type:String,default:"Normal"},totalHeight:{type:String,default:"22px"},totalWidth:{type:String,default:"75px"},totalBorderRadius:{type:String,default:"64px"},totalBorderWidth:{type:Number,default:1},totalBorderColor:{type:String,default:"#cbee6b"},iconPlay:{type:String,default:"/icnplay1.svg"},teamWidth:{type:String,default:"34px"},teamPositionLeft:{type:String,default:"12px"},teamPositionTop:{type:String,default:""},playerOrTeamPhotoWidth:{type:String,default:"99px"},numbertopLeft:{type:String,default:"-8px"},numbertopBottom:{type:String,default:"-25px"},numbertopTop:{type:String},numbertopRight:{type:String},numbertopColor:{type:String,default:"#ffffff"},numbertopFontSize:{type:String,default:"98px"},numbertopOpacity:{type:String,default:"0.18"},numberFontFamily:{type:String,default:"Montserrat-SemiBold"},showShieldTeam:{type:Boolean,default:!0},showIconVideo:{type:Boolean,default:!0},showPositionPlayer:{type:Boolean,default:!0},activeVideos:{type:Boolean,default:!0},freemiumActive:{type:Boolean,default:!1},data:{type:Object,default:()=>{}}},computed:{customMosaic(){return{height:this.height,background:this.background,borderRadius:`${this.borderRadius} !important`,border:`solid ${this.borderWidth}px ${this.borderColor}`}},customNamePlayer(){return{fontFamily:this.namePlayerFont,fontSize:this.namePlayerFontSize,color:this.namePlayerFontColor,fontStyle:this.namePlayerFontStyle}},customNamePosition(){return{fontFamily:this.namePositionFont,fontSize:this.namePositionFontSize,color:this.namePositionFontColor,fontStyle:this.namePositionFontStyle}},customTotal(){return{fontFamily:this.totalFont,fontSize:this.totalFontSize,color:this.totalFontColor,fontStyle:this.totalFontStyle}},customTotalCont(){return{MinHeight:this.totalHeight,width:this.totalWidth,borderRadius:`${this.totalBorderRadius} !important`,border:`solid ${this.totalBorderWidth}px ${this.totalBorderColor}`}},customShieldTeam(){return{width:this.teamWidth,top:this.teamPositionTop,left:this.teamPositionLeft}},customPhotoPlayerOrTeam(){return{width:this.playerOrTeamPhotoWidth}},customNumberTop(){return{fontSize:this.numbertopFontSize,color:this.numbertopColor,left:this.numbertopLeft,right:this.numbertopRight,top:this.numbertopTop,bottom:this.numbertopBottom,opacity:this.numbertopOpacity,fontFamily:this.numberFontFamily}}},methods:{onPlayerTopsClick(e){this.activeVideos&&(this.$emit("clickMosaic",e),this.$emit("freemium",this.freemiumActive))},onButtonVideos(e){this.activeVideos&&(this.$emit("openmedia",e),this.$emit("clickvideos",e.id),this.$emit("freemium",this.freemiumActive))}}},ej=["src"],tj=["src"],aj=["src"];function ij(e,t,a,i,n,r){return s.openBlock(),s.createElementBlock("section",{class:s.normalizeClass(e.$style.playerTops),style:s.normalizeStyle(r.customMosaic),id:"player-mosaico",onClick:t[1]||(t[1]=o=>r.onPlayerTopsClick(a.data.player_id))},[s.createElementVNode("div",{class:s.normalizeClass(e.$style.info)},[s.createElementVNode("h3",{class:s.normalizeClass(e.$style.toniKroos),style:s.normalizeStyle(r.customNamePlayer)},s.toDisplayString(a.data.player_name),7),a.showPositionPlayer?(s.openBlock(),s.createElementBlock("div",{key:0,class:s.normalizeClass(e.$style.centralMidfielder),style:s.normalizeStyle(r.customNamePosition)},s.toDisplayString(a.data.player_position),7)):s.createCommentVNode("",!0),s.createElementVNode("button",{class:s.normalizeClass(e.$style.btnVideosOptions),style:s.normalizeStyle(r.customTotalCont),id:"button-actions",onClick:t[0]||(t[0]=o=>r.onButtonVideos(a.data))},[a.showIconVideo?(s.openBlock(),s.createElementBlock("img",{key:0,class:s.normalizeClass(e.$style.icnPlayIcon),src:a.iconPlay},null,10,ej)):s.createCommentVNode("",!0),s.createElementVNode("div",{class:s.normalizeClass(e.$style.verVideos),style:s.normalizeStyle(r.customTotal)},s.toDisplayString(a.data.player_stat)+" "+s.toDisplayString(a.data.category),7)],6)],2),s.createElementVNode("b",{style:s.normalizeStyle(r.customNumberTop),class:s.normalizeClass(e.$style.goalUnlock)},s.toDisplayString(a.data.top),7),a.showShieldTeam?(s.openBlock(),s.createElementBlock("img",{key:0,class:s.normalizeClass(e.$style.teamsAmerica),style:s.normalizeStyle(r.customShieldTeam),loading:"lazy",src:a.data.team_logo},null,14,tj)):s.createCommentVNode("",!0),s.createElementVNode("img",{style:s.normalizeStyle(r.customPhotoPlayerOrTeam),class:s.normalizeClass(e.$style.imageIcon),loading:"lazy",src:a.data.player_photo},null,14,aj)],6)}const nj={$style:QU},rj=ZU($U,[["render",ij],["__cssModules",nj]]),sj=(e,t)=>{const a=e.__vccOpts||e;for(const[i,n]of t)a[i]=n;return a},oy={props:{type:{type:Number,default:0},value:{type:Boolean,default:!1},textValue:String,icon:String,iconPosition:{type:String,default:"left"},iconSize:String,fontColor:{type:String,default:"#FFFFFF"},textDecoration:String,fontSize:{type:String,default:"16px"},fontSizeStat:{type:String,default:"16px"},fontStyle:String,fontFamily:{type:String,default:"Poppins-Regular"},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},borderRadius:{type:String,default:"0px"},borderType:{type:String,default:"solid"},borderWidth:{type:Number,default:0},borderWidthBtn:{type:String,default:"2px"},borderColor:String,backgroundColor:{type:String,default:"none"},activeBackgroundColor:{type:String,default:"#000000"},activeBorderWidth:{type:Number,default:2},activeBorderType:{type:String,default:"solid"},activeBorderColor:{type:String,default:"#cbee6b"},activeColorText:{type:String,default:"#FFFFFF"},cursorType:{type:String,default:"default"},typeOnOff:{type:Boolean,default:!1},textCategory:String,textStat:String,marginLeftStat:{type:String,default:"15%"}},watch:{value:{deep:!0,immediate:!0,handler(e){this.status=e}}},data(){return{status:!1}},computed:{customStyle(){return{height:this.height,width:this.width,backgroundColor:this.backgroundColor,borderRadius:this.borderRadius,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`,color:this.fontColor,textDecoration:this.textDecoration,cursor:this.cursorType,fontSize:this.fontSize,fontStyle:this.fontStyle,fontFamily:`${this.fontFamily} !important`}},customActive(){return{backgroundColor:this.activeBackgroundColor,color:this.activeColorText,border:`${this.activeBorderType} ${this.activeBorderWidth}px ${this.activeBorderColor}`}}},methods:{btnClick(e){this.$emit("click",e),this.typeOnOff&&(this.status=!this.status,this.$emit("status",this.status))}}},NT=()=>{s.useCssVars(e=>({"1c960139":e.height,b2f635d8:e.borderWidthBtn,"06e99898":e.borderType,"55555c76":e.borderColor,"23b6d320":e.borderRadius,"22c97374":e.width,"22bb09fa":e.backgroundColor,c148da7c:e.cursorType,cce756fc:e.fontSize,cff98d60:e.fontStyle,"5123b3a5":e.fontFamily,"47bf58db":e.marginLeftStat,cadc8414:e.fontSizeStat}))},AT=oy.setup;oy.setup=AT?(e,t)=>(NT(),AT(e,t)):NT;const oj=e=>(s.pushScopeId("data-v-fb269a1e"),e=e(),s.popScopeId(),e),lj=["src"],cj={key:1,class:"text"},dj=["src"],uj={class:"stats"},hj=oj(()=>s.createElementVNode("img",{class:"iconstats",src:"https://az755631.vo.msecnd.net/todoelfut/playdes.png"},null,-1)),pj={class:"numstats"},mj={class:"leyend"};function fj(e,t,a,i,n,r){return s.openBlock(),s.createElementBlock("div",null,[a.type==0?(s.openBlock(),s.createElementBlock("div",{key:0,class:s.normalizeClass(["button",n.status&&a.typeOnOff&&"button-active"]),style:s.normalizeStyle([r.customStyle,n.status&&a.typeOnOff&&r.customActive]),onClick:t[0]||(t[0]=(...o)=>r.btnClick&&r.btnClick(...o))},[a.icon&&a.iconPosition.toLowerCase()==="left"?(s.openBlock(),s.createElementBlock("img",{key:0,class:"icon",style:s.normalizeStyle({width:a.iconSize}),src:a.icon},null,12,lj)):s.createCommentVNode("",!0),a.textValue?(s.openBlock(),s.createElementBlock("div",cj,s.toDisplayString(a.textValue),1)):s.createCommentVNode("",!0),a.icon&&a.iconPosition.toLowerCase()==="right"?(s.openBlock(),s.createElementBlock("img",{key:2,class:"icon",style:s.normalizeStyle({width:a.iconSize}),src:a.icon},null,12,dj)):s.createCommentVNode("",!0)],6)):s.createCommentVNode("",!0),a.type==1?(s.openBlock(),s.createElementBlock("div",{key:1,class:"button-target",onClick:t[1]||(t[1]=(...o)=>r.btnClick&&r.btnClick(...o))},[s.createElementVNode("div",uj,[hj,s.createElementVNode("div",pj,s.toDisplayString(a.textStat),1)]),s.createElementVNode("div",mj,s.toDisplayString(a.textCategory),1)])):s.createCommentVNode("",!0)])}const gj=sj(oy,[["render",fj],["__scopeId","data-v-fb269a1e"]]);function yj(e){const t=s.ref({width:0,height:0});function a(){const i=e.value.getBoundingClientRect();t.value.width=i.width,t.value.height=i.height}return s.onMounted(()=>{a(),window.addEventListener("resize",a)}),s.onUnmounted(()=>{window.removeEventListener("resize",a)}),{elementSize:t}}const ly={props:{textOptionLeft:String,valueDefault:{type:String,default:""},textOptionRight:String,hiddenLabels:{type:Boolean,default:!1},width:{type:String,default:"50px"},height:{type:String,default:"32px"},heightCircle:{type:String,default:"24px"},widthCircle:{type:String,default:"24px"},widthIcons:{type:String,default:"22"},borderRadius:{type:String,default:"30px"},borderType:{type:String,default:"solid"},borderWidth:{type:Number,default:1},borderColor:{type:String,default:"#FFFFFF"},fontSize:{type:String,default:"14px"},fontColor:{type:String,default:"#000000"},iconA:{type:String,default:""},iconB:{type:String,default:""},fontFamily:{type:String,default:"Poppins-Regular"},backgroundColor:{type:String,default:"#2e3b46"},circleColorSwitch:{type:String,default:"#FFFFFF"}},data(){return{OptionDefault:!1}},watch:{valueDefault:{immediate:!0,handler:async function(e){try{e==this.textOptionLeft&&(this.OptionDefault=!1),e==this.textOptionRight&&(this.OptionDefault=!0)}catch(t){throw new Error(t)}}}},computed:{customStyle(){return{width:this.width,height:this.height,borderRadius:this.borderRadius,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`,backgroundColor:this.backgroundColor,circleColor:this.circleColorSwitch}},customText(){return{color:this.fontColor,fontSize:this.fontSize,fontFamily:`${this.fontFamily} !important`}}},methods:{handleSwitchChange(e){e.target.checked?this.$emit("change",this.textOptionRight):this.$emit("change",this.textOptionLeft)}}},PT=()=>{s.useCssVars(e=>({"0b58fe62":e.backgroundColor,"1350c043":e.widthCircle,a6fb272c:e.heightCircle}))},OT=ly.setup;ly.setup=OT?(e,t)=>(PT(),OT(e,t)):PT;const _j={key:0,class:"text-left"},bj=["width","src"],vj=["checked"],Sj=["width","src"],wj={key:3,class:"text-right"};function Tj(e,t,a,i,n,r){return s.openBlock(),s.createElementBlock("div",{class:"gsc-switch-radio",style:s.normalizeStyle(r.customText)},[a.textOptionLeft!=""&&!a.hiddenLabels?(s.openBlock(),s.createElementBlock("span",_j,s.toDisplayString(a.textOptionLeft),1)):s.createCommentVNode("",!0),a.iconA!=""?(s.openBlock(),s.createElementBlock("img",{key:1,width:a.widthIcons,src:a.iconA},null,8,bj)):s.createCommentVNode("",!0),s.createElementVNode("input",{type:"checkbox",id:"toggle-btn",onChange:t[0]||(t[0]=(...o)=>r.handleSwitchChange&&r.handleSwitchChange(...o)),checked:n.OptionDefault},null,40,vj),s.createElementVNode("label",{for:"toggle-btn",style:s.normalizeStyle([r.customStyle,{"--circle-color":a.circleColorSwitch}])},null,4),a.iconB!=""?(s.openBlock(),s.createElementBlock("img",{key:2,width:a.widthIcons,src:a.iconB},null,8,Sj)):s.createCommentVNode("",!0),a.textOptionRight!=""&&!a.hiddenLabels?(s.openBlock(),s.createElementBlock("span",wj,s.toDisplayString(a.textOptionRight),1)):s.createCommentVNode("",!0)],4)}const cy={components:{GSCSlider:Sc,GSCMosaicthebest:rj,GscSwitchComponent:Vw,GSCButton:gj,GSCRadioToggle:ri(ly,[["render",Tj],["__scopeId","data-v-d33948ae"]])},setup(){const e=s.ref("myDivRef"),{elementSize:t}=yj(e);return{myDivRef:e,elementSize:t}},props:{backgroundColor:{type:String,default:"#0D1D29"},showSwitch:{type:Boolean,default:!0},fontFamily:{type:String,default:"Poppins-Semibold"},fontColor:{type:String,default:"#FFFFFF"},fontSize:{type:String,default:"24px"},marginMosaic:{type:String,default:"24px"},season:{type:Number,default:1772},teamId:{type:Number,default:0}},watch:{async season(e,t){await this.getCategoryStats(e,1)}},data:()=>({url:"https://kgfaxdv624.execute-api.us-east-2.amazonaws.com/prod/tops/seasons/",token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",categoriesDefault:["Goles","Pases acertados","Balones recuperados en disputa","Asistencias","Participaciones en gol","Tiros a gol","Tiros a gol que llegaron a la portería","Cabeceos en área rival","Cabeceos en área propia","Centros","Centros acertados","1vs1 exitosos ofensivos","1vs1 exitosos ofensivos que terminaron en gol","1vs1 defensivos exitoso","Rechaces","Balones ganados en área propia","Balones ganados en área rival","Faltas cometidas","Faltas recibidas","Tarjetas amarillas","Tarjetas rojas","Atajadas","Tiros de Esquina"],categories:[{id:1,name:"Goles"},{id:2,name:"Pases acertados"},{id:3,name:"Balones recuperados en disputa"},{id:4,name:"Asistencias"},{id:5,name:"Participaciones en gol"},{id:6,name:"Tiros a gol"},{id:7,name:"Tiros a gol que llegaron a la portería"},{id:8,name:"Cabeceos en área rival"},{id:9,name:"Cabeceos en área propia"},{id:10,name:"Centros"},{id:11,name:"Centros acertados"},{id:12,name:"1vs1 exitosos ofensivos"},{id:13,name:"1vs1 exitosos ofensivos que terminaron en gol"},{id:14,name:"1vs1 defensivos exitoso"},{id:15,name:"Rechaces"},{id:16,name:"Balones ganados en área propia"},{id:17,name:"Balones ganados en área rival"},{id:18,name:"Faltas cometidas"},{id:19,name:"Faltas recibidas"},{id:20,name:"Tarjetas amarillas"},{id:21,name:"Tarjetas rojas"},{id:22,name:"Atajadas"},{id:23,name:"Tiros de Esquina"}],categoryData:[],categorySelected:null,isTeam:!1,categoryName:"Goles",optionSelected:"Jugadores",positions:[{name:"Portero"},{name:"Defensa central"},{name:"Lateral por izquierda"},{name:"Lateral por derecha"},{name:"Volante por izquierda"},{name:"Volante por derecha"},{name:"Volante defensivo"},{name:"Volante ofensivo"},{name:"Delantero"},{name:"Desconocida"}]}),async created(){await this.getCategoryStats(this.season,1)},computed:{topData(){var e=[];return this.categorySelected!=null&&this.categoryData[this.categorySelected]!==void 0&&(this.isTeam?e=this.categoryData[this.categorySelected].top__teams:e=this.categoryData[this.categorySelected].top__players),e}},methods:{translateTopCategories(e){return{1:[12,55,"35_r","54_r"],2:[2,20],3:[485,486,487,488],4:[10,324],5:[27,323],6:[510],7:[537,540,544,547],8:[328],9:[231,238,280,287,294,406],10:[13,25],11:[98,101,104,105,109,112,115,116],12:[4],13:[88],14:[5],15:[34],16:[23],17:[11],18:[17,50],19:[18,49],20:[14,52],21:[15,53],22:[39],23:[31,32]}[e]||[]},onOpenMedia(e){const t=this.translateTopCategories(this.categorySelected),a=2,i=3;let n=[],r=0,o=0;this.isTeam?(r=e.player_id,o=i):(n=[e.player_id],o=a);const l={seasonId:this.season,tournaments:[],isFeaturedPlayers:!1,mainSectionType:1,playListType:o,gameIds:null,playerIds:n,goalkeeperIds:[],categoryIds:t,teamId:r,matchResult:[1,2,3],categorySingleName:"",avoidCategorySingleName:!1,currentPlayIndex:0,playData:null,lastClashedGameId:null,tournamentsLastClashes:null,advancedFilter:{playListTitle:e.category},objectPlaySync:null};this.$emit("openmedia",l)},async ChangeRadio(e){e==="Mi equipo"&&await this.getCategoryStats(this.season,0),e==="Liga MX"&&await this.getCategoryStats(this.season,1)},clickMosaic(e){this.$emit("boxinput",e)},clickMore(){this.$emit("more")},async changeType(e){this.optionSelected=e,e=="Equipos"?(await this.getCategoryStats(this.season,1),this.isTeam=!0):this.isTeam=!1},changeCategory(e){this.categoryName=e;const t=this.categories.find(a=>a.name===e);this.categorySelected=t.id},async getCategoryStats(e,t){try{let n={},r={},o=[];const l=vc.create({headers:{Authorization:`${this.token}`}});var a={};if(t==0&&(a=await l.get(this.url+this.season+"/teams/"+this.teamId)),t==1&&(a=await l.get(this.url+e)),a&&a.data){a.data.teams.map(c=>{n[c[0]]={},n[c[0]].id=c[0],n[c[0]].name=c[2],n[c[0]].img=c[3],n[c[0]].abrv=c[2],n[c[0]].logo=c[3]}),a.data.players.map(c=>{r[c[0]]={},r[c[0]].id=c[0],r[c[0]].name=c[1],r[c[0]].img=c[2],r[c[0]].position=c[6],r[c[0]].logo="https://az755631.vo.msecnd.net/teams-150/"+c[10][0].team_id+".png"});var i=1;a.data.tops.map(c=>{o[c.category?c.category:i]={};var d={},u={};c.teams.map(m=>{d[m[0]]={},d[m[0]].total=m[1],d[m[0]].id=n[m[0]].id,d[m[0]].name=n[m[0]].name,d[m[0]].img="https://az755631.vo.msecnd.net/teams-150/"+m[0]+".png",d[m[0]].logo="https://az755631.vo.msecnd.net/teams-150/"+m[0]+".png"}),c.players.map(m=>{u[m[0]]={},u[m[0]].total=m[1],u[m[0]].name=r[m[0]].name,u[m[0]].img=r[m[0]].img.replace("players-profile/","players-profile/"),u[m[0]].id=r[m[0]].id,u[m[0]].position=this.positions[r[m[0]].position-1].name,u[m[0]].logo=r[m[0]].logo});var h=[],p=[];for(const m in d)h.push(d[m]);for(const m in u)p.push(u[m]);h.sort((m,f)=>m.total<f.total?1:-1),p.sort((m,f)=>m.total<f.total?1:-1),o[c.category?c.category:i].top__players=p,o[c.category?c.category:i].top__teams=h,i++})}this.categorySelected=1,this.categoryData=o}catch(n){return Promise.reject(n)}}}},BT=()=>{s.useCssVars(e=>({"30069cac":e.backgroundColor,"4cd96c5c":e.fontFamily,"05f6cef9":e.fontSize,"8ff7c12a":e.fontColor,f727b53e:e.marginMosaic}))},DT=cy.setup;cy.setup=DT?(e,t)=>(BT(),DT(e,t)):BT;const Cj=e=>(s.pushScopeId("data-v-33144a58"),e=e(),s.popScopeId(),e),kj={class:"gsc-best",ref:"myDivRef"},Ej={class:"gsc-best__line-bar-tools"},Ij={key:0,class:"gsc-best__line-bar-tools__title"},xj=Cj(()=>s.createElementVNode("span",null,"Los mejores ",-1)),Nj={key:1,class:"gsc-best__line-bar-tools__titlefull"},Aj={class:"unit-items"},Pj={key:2,class:"gsc-best__line-bar-tools__tools"},Oj={key:0,class:"gsc-best__line-bar-tools__tools__tabs"},Bj={class:"gsc-best__line-bar-tools__tools__btn"},Dj={key:0,class:"gsc-best__line-bar-tools-movil"},Lj={class:"gsc-best__line-bar-tools-movil__tabs"},Mj={class:"gsc-best__categories"},Rj={class:"gsc-best__players"};function Fj(e,t,a,i,n,r){const o=s.resolveComponent("GSCRadioToggle"),l=s.resolveComponent("GSCButton"),c=s.resolveComponent("GscSwitchComponent"),d=s.resolveComponent("GSCMosaicthebest"),u=s.resolveComponent("GSCSlider");return s.openBlock(),s.createElementBlock("div",kj,[s.createElementVNode("div",Ej,[i.elementSize.width>900?(s.openBlock(),s.createElementBlock("div",Ij,[xj,e.optionSelected!=="Equipos"&&a.showSwitch?(s.openBlock(),s.createBlock(o,{key:0,height:"20px",width:"41px","background-color":"none","width-circle":"15px","height-circle":"15px","circle-color-switch":"#CBEE6B","font-color":"#ffffff","value-default":"Liga MX",iconA:"https://az755631.vo.msecnd.net/teams-150/"+a.teamId+".png",iconB:"https://az755631.vo.msecnd.net/todoelfut/1.png",textOptionLeft:"Mi equipo",textOptionRight:"Liga MX",onChange:r.ChangeRadio},null,8,["iconA","onChange"])):s.createCommentVNode("",!0)])):s.createCommentVNode("",!0),i.elementSize.width<=900?(s.openBlock(),s.createElementBlock("div",Nj,[s.createElementVNode("span",{style:s.normalizeStyle(i.elementSize.width<=380?"font-size: 15px; margin-top:0px; width:60px;":"")},"Los mejores ",4),s.createElementVNode("span",Aj,[e.optionSelected!=="Equipos"&&a.showSwitch?(s.openBlock(),s.createBlock(o,{key:0,height:"20px",width:"41px","background-color":"none","width-circle":"15px","height-circle":"15px","circle-color-switch":"#CBEE6B","font-color":"#ffffff","hidden-labels":!0,"value-default":"Liga MX",iconA:"https://az755631.vo.msecnd.net/teams-150/"+a.teamId+".png",iconB:"https://az755631.vo.msecnd.net/todoelfut/1.png",textOptionLeft:"Mi equipo",textOptionRight:"Liga MX",onChange:r.ChangeRadio},null,8,["iconA","onChange"])):s.createCommentVNode("",!0),s.createVNode(l,{style:{"margin-top":"4px"},width:"75px","text-value":"Ver más","font-color":i.elementSize.width<=680?"rgba(255,255,255, 0.7)":"#fff","font-size":i.elementSize.width<=680?"11px":"14px","text-decoration":"underline",onClick:r.clickMore},null,8,["font-color","font-size","onClick"])])])):s.createCommentVNode("",!0),i.elementSize.width>900?(s.openBlock(),s.createElementBlock("div",Pj,[i.elementSize.width>900?(s.openBlock(),s.createElementBlock("div",Oj,[s.createVNode(c,{type:1,buttons:["Jugadores","Equipos"],"selected-option":e.optionSelected,"border-radius":"32px",height:"28px","border-width":"1px","border-width-container":"0.5px","background-option-active":"#0d1d29","color-option-active":"#FFFFFF","font-size":"12px",width:"270px",fontFamily:"Poppins-Regular",onInput:r.changeType,arrowsScrollHide:!1,arrowsPosition:"absolute"},null,8,["selected-option","onInput"])])):s.createCommentVNode("",!0),s.createElementVNode("div",Bj,[s.createVNode(l,{width:"75px","text-value":"Ver más","font-size":"14px","text-decoration":"underline",onClick:r.clickMore},null,8,["onClick"]),s.createVNode(l,{width:"10px","text-value":"→","font-size":"14px","font-color":"#cbee6b",onClick:r.clickMore},null,8,["onClick"])])])):s.createCommentVNode("",!0)]),i.elementSize.width<=900?(s.openBlock(),s.createElementBlock("div",Dj,[s.createElementVNode("div",Lj,[s.createVNode(c,{type:1,buttons:["Jugadores","Equipos"],"selected-option":e.optionSelected,"border-radius":"32px",height:"28px","border-width":"1px","border-width-container":"0.5px","background-option-active":"#0d1d29","color-option-active":"#FFFFFF","font-size":"10px",width:"270px",fontFamily:"Poppins-Regular",onInput:r.changeType},null,8,["selected-option","onInput"])])])):s.createCommentVNode("",!0),s.createElementVNode("div",Mj,[s.createVNode(c,{type:2,arrow:!0,"font-family":"Poppins-Regular",buttons:e.categoriesDefault,height:"40px","selected-option":"Goles","font-size":i.elementSize.width<=900?"12px":"14px",width:"max-content",onInput:r.changeCategory,pxScroll:200,scrollColor:"none",arrowsScrollHide:!1,arrowsMargin:0},null,8,["buttons","font-size","onInput"])]),s.createElementVNode("div",Rj,[s.createVNode(u,{pxScroll:777,scrollColor:"none",arrowsPosition:"absolute",arrowsScrollHide:!0,arrowsBackground:"rgba(255,255,255,.16)",arrowsContainerBgL:"linear-gradient(270deg, rgba(13,29,41,0) 0%, rgba(13,29,41,1) 70%)",arrowsContainerBgR:"linear-gradient(90deg, rgba(13,29,41,0) 0%, rgba(13,29,41,1) 70%)",arrowsMargin:0,arrowsRadius:"50%",arrowsBorder:"#ddd"},{default:s.withCtx(()=>[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(r.topData,(h,p)=>(s.openBlock(),s.createElementBlock("div",{key:p,class:s.normalizeClass(["gsc-best__players__item",p==0?"margin-none":""])},[s.createVNode(d,{data:{player_id:h.id,player_name:h.name,player_position:h.position,player_stat:h.total,category:"Total",top:p<9?"0"+(p+1):p+1,team_logo:h.logo,player_photo:h.img},"show-shield-team":!0,"active-videos":!0,onClickMosaic:r.clickMosaic,onOpenmedia:r.onOpenMedia,namePlayerFontSize:"14px",namePositionFontSize:"10px",numbertopLeft:"-15px",numberFontFamily:"Oswald-SemiBold",totalFontSize:"12px",totalFont:"Poppins-SemiBold!important",totalHeight:"21px"},null,8,["data","onClickMosaic","onOpenmedia"])],2))),128))]),_:1})])],512)}const Vj=ri(cy,[["render",Fj],["__scopeId","data-v-33144a58"]]),_t=(e,t)=>{const a=e.__vccOpts||e;for(const[i,n]of t)a[i]=n;return a},Uj=e=>(s.pushScopeId("data-v-b9c574d2"),e=e(),s.popScopeId(),e),jj={key:0,class:"match-header__left"},zj={class:"match-header__img-container"},Hj=["src"],qj={class:"match-header__img-container overlap"},Wj=["src"],Gj={class:"match-header__score"},Kj={class:"match-header__date"},Xj={key:0,xmlns:"http://www.w3.org/2000/svg",width:"12",height:"7",viewBox:"0 0 12 7",fill:"none"},Jj=Uj(()=>s.createElementVNode("path",{d:"M11 1L6 6L1 0.999999",stroke:"#9CA3AF","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)),Yj=[Jj],Qj={__name:"MatchHeader",props:{match:{type:Object,default:()=>({})},mobileClass:{type:String,default:""},clientWidth:{type:Number,default:0},hideArrow:{type:Boolean,default:!1}},setup(e){const t=e,a=s.computed(()=>{let r=[];return t.clientWidth>0&&(t.clientWidth<=450?r.push("match-header__acronyms__450"):t.clientWidth<=750?r.push("match-header__acronyms__750"):t.clientWidth<=850?r.push("match-header__acronyms__850"):r.push("match-header__acronyms")),r}),{match:i,mobileClass:n}=s.toRefs(t);return(r,o)=>{var l,c,d,u,h,p,m,f;return s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["match-header",s.unref(n)])},[s.unref(i)?(s.openBlock(),s.createElementBlock("div",jj,[s.createElementVNode("div",zj,[s.createElementVNode("img",{class:"match-header__img",src:(c=(l=s.unref(i))==null?void 0:l.homeTeam)==null?void 0:c.logo},null,8,Hj)]),s.createElementVNode("div",qj,[s.createElementVNode("img",{class:"match-header__img",src:(u=(d=s.unref(i))==null?void 0:d.awayTeam)==null?void 0:u.logo},null,8,Wj)]),s.createElementVNode("div",{class:s.normalizeClass(["match-header__acronyms",a.value])},s.toDisplayString(`${(p=(h=s.unref(i))==null?void 0:h.homeTeam)==null?void 0:p.acronym} VS ${(f=(m=s.unref(i))==null?void 0:m.awayTeam)==null?void 0:f.acronym}`),3)])):s.createCommentVNode("",!0),s.createElementVNode("div",Gj,s.toDisplayString(`${s.unref(i).score[0]} - ${s.unref(i).score[1]}`),1),s.createElementVNode("div",Kj,[s.createElementVNode("span",null,s.toDisplayString(s.unref(i).date.split("-").reverse().join("/")),1),e.hideArrow?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("svg",Xj,Yj))])],2)}}},LT=_t(Qj,[["__scopeId","data-v-b9c574d2"]]);function Zj(){return MT().__VUE_DEVTOOLS_GLOBAL_HOOK__}function MT(){return typeof navigator<"u"&&typeof window<"u"?window:typeof global<"u"?global:{}}const $j=typeof Proxy=="function",ez="devtools-plugin:setup",tz="plugin:settings:set";let Ac,dy;function az(){var e;return Ac!==void 0||(typeof window<"u"&&window.performance?(Ac=!0,dy=window.performance):typeof global<"u"&&!((e=global.perf_hooks)===null||e===void 0)&&e.performance?(Ac=!0,dy=global.perf_hooks.performance):Ac=!1),Ac}function iz(){return az()?dy.now():Date.now()}class nz{constructor(t,a){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=t,this.hook=a;const i={};if(t.settings)for(const o in t.settings){const l=t.settings[o];i[o]=l.defaultValue}const n=`__vue-devtools-plugin-settings__${t.id}`;let r=Object.assign({},i);try{const o=localStorage.getItem(n),l=JSON.parse(o);Object.assign(r,l)}catch{}this.fallbacks={getSettings(){return r},setSettings(o){try{localStorage.setItem(n,JSON.stringify(o))}catch{}r=o},now(){return iz()}},a&&a.on(tz,(o,l)=>{o===this.plugin.id&&this.fallbacks.setSettings(l)}),this.proxiedOn=new Proxy({},{get:(o,l)=>this.target?this.target.on[l]:(...c)=>{this.onQueue.push({method:l,args:c})}}),this.proxiedTarget=new Proxy({},{get:(o,l)=>this.target?this.target[l]:l==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(l)?(...c)=>(this.targetQueue.push({method:l,args:c,resolve:()=>{}}),this.fallbacks[l](...c)):(...c)=>new Promise(d=>{this.targetQueue.push({method:l,args:c,resolve:d})})})}async setRealTarget(t){this.target=t;for(const a of this.onQueue)this.target.on[a.method](...a.args);for(const a of this.targetQueue)a.resolve(await this.target[a.method](...a.args))}}function rz(e,t){const a=e,i=MT(),n=Zj(),r=$j&&a.enableEarlyProxy;if(n&&(i.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!r))n.emit(ez,e,t);else{const o=r?new nz(a,n):null;(i.__VUE_DEVTOOLS_PLUGINS__=i.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:a,setupFn:t,proxy:o}),o&&t(o.proxiedTarget)}}/*!
24
24
  * vuex v4.1.0
25
25
  * (c) 2022 Evan You
26
26
  * @license MIT
@@ -296,4 +296,4 @@ browserWorkerPolyFill(self);
296
296
  * Vue 3 Carousel 0.3.1
297
297
  * (c) 2023
298
298
  * @license MIT
299
- */const Sa={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"}},jA={itemsToShow:{default:Sa.itemsToShow,type:Number},itemsToScroll:{default:Sa.itemsToScroll,type:Number},wrapAround:{default:Sa.wrapAround,type:Boolean},throttle:{default:Sa.throttle,type:Number},snapAlign:{default:Sa.snapAlign,validator(e){return["start","end","center","center-even","center-odd"].includes(e)}},transition:{default:Sa.transition,type:Number},breakpoints:{default:Sa.breakpoints,type:Object},autoplay:{default:Sa.autoplay,type:Number},pauseAutoplayOnHover:{default:Sa.pauseAutoplayOnHover,type:Boolean},modelValue:{default:void 0,type:Number},mouseDrag:{default:Sa.mouseDrag,type:Boolean},touchDrag:{default:Sa.touchDrag,type:Boolean},dir:{default:Sa.dir,validator(e){return["rtl","ltr"].includes(e)}},i18n:{default:Sa.i18n,type:Object},settings:{default(){return{}},type:Object}};function mke({config:e,slidesCount:t}){const{snapAlign:a,wrapAround:i,itemsToShow:n=1}=e;if(i)return Math.max(t-1,0);let r;switch(a){case"start":r=t-n;break;case"end":r=t-1;break;case"center":case"center-odd":r=t-Math.ceil((n-.5)/2);break;case"center-even":r=t-Math.ceil(n/2);break;default:r=0;break}return Math.max(r,0)}function fke({config:e,slidesCount:t}){const{wrapAround:a,snapAlign:i,itemsToShow:n=1}=e;let r=0;if(a||n>t)return r;switch(i){case"start":r=0;break;case"end":r=n-1;break;case"center":case"center-odd":r=Math.floor((n-1)/2);break;case"center-even":r=Math.floor((n-2)/2);break;default:r=0;break}return r}function ev({val:e,max:t,min:a}){return t<a?e:Math.min(Math.max(e,a),t)}function gke({config:e,currentSlide:t,slidesCount:a}){const{snapAlign:i,wrapAround:n,itemsToShow:r=1}=e;let o=t;switch(i){case"center":case"center-odd":o-=(r-1)/2;break;case"center-even":o-=(r-2)/2;break;case"end":o-=r-1;break}return n?o:ev({val:o,max:a-r,min:0})}function zA(e){return e?e.reduce((t,a)=>{var i;return a.type===s.Fragment?[...t,...zA(a.children)]:((i=a.type)===null||i===void 0?void 0:i.name)==="CarouselSlide"?[...t,a]:t},[]):[]}function tv({val:e,max:t,min:a=0}){return e>t?tv({val:e-(t+1),max:t,min:a}):e<a?tv({val:e+(t+1),max:t,min:a}):e}function yke(e,t){let a;return t?function(...i){const n=this;a||(e.apply(n,i),a=!0,setTimeout(()=>a=!1,t))}:e}function _ke(e,t){let a;return function(...i){a&&clearTimeout(a),a=setTimeout(()=>{e(...i),a=null},t)}}function bke(e="",t={}){return Object.entries(t).reduce((a,[i,n])=>a.replace(`{${i}}`,String(n)),e)}var vke=s.defineComponent({name:"ARIA",setup(){const e=s.inject("config",s.reactive(Object.assign({},Sa))),t=s.inject("currentSlide",s.ref(0)),a=s.inject("slidesCount",s.ref(0));return()=>s.h("div",{class:["carousel__liveregion","carousel__sr-only"],"aria-live":"polite","aria-atomic":"true"},bke(e.i18n.itemXofY,{currentSlide:t.value+1,slidesCount:a.value}))}}),Ske=s.defineComponent({name:"Carousel",props:jA,setup(e,{slots:t,emit:a,expose:i}){var n;const r=s.ref(null),o=s.ref([]),l=s.ref(0),c=s.ref(0),d=s.reactive(Object.assign({},Sa));let u=Object.assign({},Sa),h;const p=s.ref((n=e.modelValue)!==null&&n!==void 0?n:0),m=s.ref(0),f=s.ref(0),b=s.ref(0),_=s.ref(0);let x,D;s.provide("config",d),s.provide("slidesCount",c),s.provide("currentSlide",p),s.provide("maxSlide",b),s.provide("minSlide",_),s.provide("slideWidth",l);function j(){h=Object.assign({},e.breakpoints),u=Object.assign(Object.assign(Object.assign({},u),e),{i18n:Object.assign(Object.assign({},u.i18n),e.i18n),breakpoints:void 0}),B(u)}function O(){if(!h||!Object.keys(h).length)return;const W=Object.keys(h).map(Se=>Number(Se)).sort((Se,Ge)=>+Ge-+Se);let ke=Object.assign({},u);W.some(Se=>{const Ge=window.matchMedia(`(min-width: ${Se}px)`).matches;return Ge&&(ke=Object.assign(Object.assign({},ke),h[Se])),Ge}),B(ke)}function B(W){Object.entries(W).forEach(([ke,Se])=>d[ke]=Se)}const M=_ke(()=>{O(),L()},16);function L(){if(!r.value)return;const W=r.value.getBoundingClientRect();l.value=W.width/d.itemsToShow}function J(){c.value<=0||(f.value=Math.ceil((c.value-1)/2),b.value=mke({config:d,slidesCount:c.value}),_.value=fke({config:d,slidesCount:c.value}),d.wrapAround||(p.value=ev({val:p.value,max:b.value,min:_.value})))}s.onMounted(()=>{s.nextTick(()=>L()),setTimeout(()=>L(),1e3),O(),Fe(),window.addEventListener("resize",M,{passive:!0}),a("init")}),s.onUnmounted(()=>{D&&clearTimeout(D),x&&clearInterval(x),window.removeEventListener("resize",M,{passive:!0})});let U=!1;const ne={x:0,y:0},le={x:0,y:0},Z=s.reactive({x:0,y:0}),re=s.ref(!1),Ce=s.ref(!1),ve=()=>{re.value=!0},pe=()=>{re.value=!1};function z(W){["INPUT","TEXTAREA","SELECT"].includes(W.target.tagName)||(U=W.type==="touchstart",U||W.preventDefault(),!(!U&&W.button!==0||te.value)&&(ne.x=U?W.touches[0].clientX:W.clientX,ne.y=U?W.touches[0].clientY:W.clientY,document.addEventListener(U?"touchmove":"mousemove",$,!0),document.addEventListener(U?"touchend":"mouseup",ae,!0)))}const $=yke(W=>{Ce.value=!0,le.x=U?W.touches[0].clientX:W.clientX,le.y=U?W.touches[0].clientY:W.clientY;const ke=le.x-ne.x,Se=le.y-ne.y;Z.y=Se,Z.x=ke},d.throttle);function ae(){const W=d.dir==="rtl"?-1:1,ke=Math.sign(Z.x)*.4,Se=Math.round(Z.x/l.value+ke)*W;if(Se&&!U){const Ge=gt=>{gt.stopPropagation(),window.removeEventListener("click",Ge,!0)};window.addEventListener("click",Ge,!0)}_e(p.value-Se),Z.x=0,Z.y=0,Ce.value=!1,document.removeEventListener(U?"touchmove":"mousemove",$,!0),document.removeEventListener(U?"touchend":"mouseup",ae,!0)}function Fe(){!d.autoplay||d.autoplay<=0||(x=setInterval(()=>{d.pauseAutoplayOnHover&&re.value||we()},d.autoplay))}function se(){x&&(clearInterval(x),x=null),Fe()}const te=s.ref(!1);function _e(W){const ke=d.wrapAround?W:ev({val:W,max:b.value,min:_.value});p.value===ke||te.value||(a("slide-start",{slidingToIndex:W,currentSlideIndex:p.value,prevSlideIndex:m.value,slidesCount:c.value}),te.value=!0,m.value=p.value,p.value=ke,D=setTimeout(()=>{if(d.wrapAround){const Se=tv({val:ke,max:b.value,min:0});Se!==p.value&&(p.value=Se,a("loop",{currentSlideIndex:p.value,slidingToIndex:W}))}a("update:modelValue",p.value),a("slide-end",{currentSlideIndex:p.value,prevSlideIndex:m.value,slidesCount:c.value}),te.value=!1,se()},d.transition))}function we(){_e(p.value+d.itemsToScroll)}function ge(){_e(p.value-d.itemsToScroll)}const ee={slideTo:_e,next:we,prev:ge};s.provide("nav",ee),s.provide("isSliding",te);const ce=s.computed(()=>gke({config:d,currentSlide:p.value,slidesCount:c.value}));s.provide("slidesToScroll",ce);const X=s.computed(()=>{const W=d.dir==="rtl"?-1:1,ke=ce.value*l.value*W;return{transform:`translateX(${Z.x-ke}px)`,transition:`${te.value?d.transition:0}ms`,margin:d.wrapAround?`0 -${c.value*l.value}px`:"",width:"100%"}});function R(){j(),O(),J(),L(),se()}Object.keys(jA).forEach(W=>{["modelValue"].includes(W)||s.watch(()=>e[W],R)}),s.watch(()=>e.modelValue,W=>{W!==p.value&&_e(Number(W))}),s.watch(c,J),a("before-init"),j();const he={config:d,slidesCount:c,slideWidth:l,next:we,prev:ge,slideTo:_e,currentSlide:p,maxSlide:b,minSlide:_,middleSlide:f};i({updateBreakpointsConfigs:O,updateSlidesData:J,updateSlideWidth:L,initDefaultConfigs:j,restartCarousel:R,slideTo:_e,next:we,prev:ge,nav:ee,data:he});const be=t.default||t.slides,Me=t.addons,We=s.reactive(he);return()=>{const W=zA(be==null?void 0:be(We)),ke=(Me==null?void 0:Me(We))||[];W.forEach((Ye,Ze)=>Ye.props.index=Ze);let Se=W;if(d.wrapAround){const Ye=W.map((Bt,rt)=>s.cloneVNode(Bt,{index:-W.length+rt,isClone:!0,key:`clone-before-${rt}`})),Ze=W.map((Bt,rt)=>s.cloneVNode(Bt,{index:W.length+rt,isClone:!0,key:`clone-after-${rt}`}));Se=[...Ye,...W,...Ze]}o.value=W,c.value=Math.max(W.length,1);const Ge=s.h("ol",{class:"carousel__track",style:X.value,onMousedownCapture:d.mouseDrag?z:null,onTouchstartPassiveCapture:d.touchDrag?z:null},Se),gt=s.h("div",{class:"carousel__viewport"},Ge);return s.h("section",{ref:r,class:{carousel:!0,"is-sliding":te.value,"is-dragging":Ce.value,"is-hover":re.value,"carousel--rtl":d.dir==="rtl"},dir:d.dir,"aria-label":d.i18n.ariaGallery,tabindex:"0",onMouseenter:ve,onMouseleave:pe},[gt,ke,s.h(vke)])}}}),HA;(function(e){e.arrowUp="arrowUp",e.arrowDown="arrowDown",e.arrowRight="arrowRight",e.arrowLeft="arrowLeft"})(HA||(HA={}));var wke=s.defineComponent({name:"CarouselSlide",props:{index:{type:Number,default:1},isClone:{type:Boolean,default:!1}},setup(e,{slots:t}){const a=s.inject("config",s.reactive(Object.assign({},Sa))),i=s.inject("currentSlide",s.ref(0)),n=s.inject("slidesToScroll",s.ref(0)),r=s.inject("isSliding",s.ref(!1)),o=()=>e.index===i.value,l=()=>e.index===i.value-1,c=()=>e.index===i.value+1,d=()=>{const u=Math.floor(n.value),h=Math.ceil(n.value+a.itemsToShow-1);return e.index>=u&&e.index<=h};return()=>{var u;return s.h("li",{style:{width:`${100/a.itemsToShow}%`},class:{carousel__slide:!0,"carousel__slide--clone":e.isClone,"carousel__slide--visible":d(),"carousel__slide--active":o(),"carousel__slide--prev":l(),"carousel__slide--next":c(),"carousel__slide--sliding":r.value},"aria-hidden":!d()},(u=t.default)===null||u===void 0?void 0:u.call(t))}}});const Tke=(e,t)=>{const a=e.__vccOpts||e;for(const[i,n]of t)a[i]=n;return a},Cke=e=>(s.pushScopeId("data-v-786335f9"),e=e(),s.popScopeId(),e),kke={class:"gsc-carousel"},Eke={key:0},Ike=Cke(()=>s.createElementVNode("div",null,"no hay",-1)),xke=[Ike],Nke={class:"gsc-carousel__2d__slides"},Ake={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Pke=["fill"],Oke={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Bke=["fill"],Dke={class:"gsc-carousel__2d__navigation"},Lke={width:"8",height:"15",viewBox:"0 0 8 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Mke=["stroke"],Rke={key:1,class:"gsc-carousel__2d__navigation__pagination"},Fke=["onClick"],Vke={width:"7",height:"15",viewBox:"0 0 7 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Uke=["stroke"],jke={__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(t=>t 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"},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:t,emit:a}){const i=e;s.useCssVars(f=>({"1c85f8d3":e.slideLeftArrowBackgroundImage,"02777ea1":e.slidesArrowsLeftAndRight,"3878fa18":e.slideRightArrowBackgroundImage,d7f8c7c4:e.marginTop,dc571484:e.secondarySlidesOpacity}));const n=s.ref(null),r=s.ref({}),o=s.ref(0),l=s.ref(!1);s.watch(n,f=>{f&&l.value?(l.value=!1,c(i.items)):f&&f.slideTo&&f.slideTo(o.value)},{deep:!0}),s.watch(()=>i.currentItemIndex,f=>{o.value!==f&&h(f)}),s.watch(()=>i.items,f=>{n.value?c(f):l.value=!0},{immediate:!0});function c(f){if(f&&f.length&&n.value){if(i.defaultItemByProp){const b=i.items.findIndex(_=>_[i.defaultItemByProp.propName]===i.defaultItemByProp.value);b!==-1?(o.value=b,r.value=f[b]):(o.value=0,r.value=f[0])}else o.value=i.defaultItemByIndex,r.value=f[i.defaultItemByIndex];n.value.slideTo&&n.value.slideTo(o.value),a("input",{selectedItem:r.value,selectedItemIndex:o.value})}}function d(){n.value&&n.value.next()}function u(){n.value&&n.value.prev()}function h(f){n.value&&n.value.slideTo(f)}function p(f){n.value.slideTo(f)}function m(f){const b=f.slidingToIndex<0?i.items.length-1:f.slidingToIndex===i.items.length?0:f.slidingToIndex;o.value=b,r.value=i.items[b],a("update:currentItemIndex",b),a("input",{selectedItem:r.value,selectedItemIndex:o.value})}return t({prev:u,next:d,slideTo:h}),(f,b)=>(s.openBlock(),s.createElementBlock("div",kke,[i.is3d?(s.openBlock(),s.createElementBlock("div",Eke,xke)):(s.openBlock(),s.createElementBlock("div",{key:1,class:s.normalizeClass(["gsc-carousel__2d",{"main-slide-priority":e.isMainSlidePriority}])},[s.createElementVNode("div",Nke,[s.createVNode(s.unref(Ske),{ref_key:"carousel2d",ref:n,"items-to-show":e.itemsToShow,"wrap-around":e.wrapAround,onSlideStart:m},{default:s.withCtx(()=>[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(e.items,(_,x)=>(s.openBlock(),s.createBlock(s.unref(wke),{key:x},{default:s.withCtx(()=>[s.renderSlot(f.$slots,"default",{item:_},void 0,!0)]),_:2},1024))),128))]),_:3},8,["items-to-show","wrap-around"])]),e.areSlidesArrowsVisible?(s.openBlock(),s.createElementBlock("div",{key:0,class:"gsc-carousel__2d__arrow-left",onClick:b[0]||(b[0]=_=>n.value.prev())},[s.createElementVNode("div",{class:s.normalizeClass(["gsc-carousel__2d__slide-button",{rounded:e.areSlidesArrowsRounded}])},[(s.openBlock(),s.createElementBlock("svg",Ake,[s.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,Pke)]))],2)])):s.createCommentVNode("",!0),e.areSlidesArrowsVisible?(s.openBlock(),s.createElementBlock("div",{key:1,class:"gsc-carousel__2d__arrow-right",onClick:b[1]||(b[1]=_=>d())},[s.createElementVNode("div",{class:s.normalizeClass(["gsc-carousel__2d__slide-button",{rounded:e.areSlidesArrowsRounded}])},[(s.openBlock(),s.createElementBlock("svg",Oke,[s.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,Bke)]))],2)])):s.createCommentVNode("",!0),s.createElementVNode("div",Dke,[e.areNavigationArrowsVisible?(s.openBlock(),s.createElementBlock("div",{key:0,class:"gsc-carousel__2d__navigation__arrow-left",onClick:b[2]||(b[2]=_=>u())},[(s.openBlock(),s.createElementBlock("svg",Lke,[s.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:i.arrowsColor},null,8,Mke)]))])):s.createCommentVNode("",!0),e.isPaginationVisible?(s.openBlock(),s.createElementBlock("div",Rke,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(e.items,(_,x)=>(s.openBlock(),s.createElementBlock("div",{key:`i-${x}`,class:"gsc-carousel__2d__navigation__pagination__item",style:s.normalizeStyle({height:`${i.navigationHeight}px`,width:`${o.value===x?i.navigationActiveWidth:i.navigationActiveWidth/2}px`,borderRadius:`${i.navigationBorderRadius}px`,backgroundColor:`${o.value===x?i.navigationActiveColor:i.navigationColor}`,transition:"all 0.1s ease-in-out"}),onClick:D=>p(x)},null,12,Fke))),128))])):s.createCommentVNode("",!0),e.areNavigationArrowsVisible?(s.openBlock(),s.createElementBlock("div",{key:2,class:"gsc-carousel__2d__navigation__arrow-right",onClick:b[3]||(b[3]=_=>n.value.next())},[(s.openBlock(),s.createElementBlock("svg",Vke,[s.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:i.arrowsColor},null,8,Uke)]))])):s.createCommentVNode("",!0)])],2))]))}},zke=Tke(jke,[["__scopeId","data-v-786335f9"]]),Hke={class:"carousel-video-player"},qke={class:"video-container"},Wke=["id"],Gke={__name:"CarouselVideoPlayer",props:{play:{type:Object,required:!0},videojs:{type:Function,required:!0}},emits:["play-ended"],setup(e,{emit:t}){const a=e,i=t,n=s.ref(null),r=s.computed(()=>`p-${a.play.playId}`);function o(){n.value=a.videojs(r.value,{controlBar:{fullscreenToggle:!1}}),n.value.src({type:"video/mp4",src:`https://golstatsbets.blob.core.windows.net/video-player/${a.play.gameId}_1.mp4`}),n.value.offset({start:a.play.startSeconds,end:a.play.endSeconds}),n.value.on("ended",()=>{i("play-ended")}),a.play.videoPlayer=n}return s.onMounted(()=>{setTimeout(()=>{o()},10)}),(l,c)=>(s.openBlock(),s.createElementBlock("div",Hke,[s.createElementVNode("div",qke,[s.createElementVNode("video",{id:r.value,class:"video-js",controls:"",preload:"auto","data-setup":"{}"},null,8,Wke)])]))}},Kke=_t(Gke,[["__scopeId","data-v-94cf8cdf"]]),Xke=e=>(s.pushScopeId("data-v-ef0e226a"),e=e(),s.popScopeId(),e),Jke=Xke(()=>s.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},[s.createElementVNode("path",{d:"M5 15L15 5",stroke:"white","stroke-width":"1.7","stroke-miterlimit":"10","stroke-linecap":"round","stroke-linejoin":"round"}),s.createElementVNode("path",{d:"M15 15L5 5",stroke:"white","stroke-width":"1.7","stroke-miterlimit":"10","stroke-linecap":"round","stroke-linejoin":"round"})],-1)),Yke=[Jke],Qke={class:"carousel-full-screen__carousel"},Zke={class:"carousel-full-screen__carousel__video-player"},$ke={__name:"CarouselFullScreen",props:{playerQueue:{type:Array,default:()=>[]},playlistIndex:{type:Number,default:0},initialPlay:{type:Object,default:()=>({})},videojs:{type:Function,required:!0}},emits:["close"],setup(e,{emit:t}){const a=e,i=t,n=s.ref({wrapAround:!1,itemsToShow:1.2,isMainSlidePriority:!0,areSlidesArrowsVisible:!0,areNavigationArrowsVisible:!1,slideLeftArrowBackgroundImage:"none",slideRightArrowBackgroundImage:"none"}),r=s.ref(0),o=s.ref(0),l=s.ref(null);function c(){return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}function d(){const m=document.getElementById("carousel-swipe"),f=window.screen.orientation;f.angle==90&&c()||window.innerWidth<window.innerHeight&&c()?m.classList.remove("landscape"):(f.angle==0&&c()||window.innerWidth>window.innerHeight&&c())&&m.classList.add("landscape")}function u({selectedItemIndex:m}){const f=m-r.value;o.value+=f;const b=a.playerQueue[r.value],_=a.playerQueue[m];b.videoPlayer&&b.videoPlayer.pause(),_.videoPlayer&&_.videoPlayer.play(),r.value=m}function h(){l.value&&l.value.next()}function p(){const m=a.playlistIndex+o.value;o.value=0,r.value=0,i("close",m)}return s.onMounted(()=>{window.addEventListener("orientationchange",d),setTimeout(()=>{const m=document.getElementsByClassName("video-element");m&&m.length&&Array.from(m).forEach((f,b)=>{f.id=`plyrFS${b+1}`})},100)}),s.onBeforeUnmount(()=>{a.playerQueue.forEach(m=>{m.videoPlayer&&(m.videoPlayer.pause(),m.videoPlayer.dispose())})}),(m,f)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["carousel-full-screen",{landscape:c()}]),id:"carousel-swipe"},[s.createElementVNode("div",{class:"carousel-full-screen__close",onClick:p},Yke),s.createElementVNode("div",Qke,[s.createVNode(s.unref(zke),s.mergeProps({ref_key:"gscCarousel",ref:l},n.value,{items:e.playerQueue,"default-item-by-prop":{propName:"playId",value:e.initialPlay.playId},onInput:u}),{default:s.withCtx(({item:b})=>[s.createElementVNode("div",Zke,[s.createVNode(Kke,{videojs:e.videojs,play:b,onPlayEnded:h},null,8,["videojs","play"])])]),_:1},16,["items","default-item-by-prop"])])],2))}},eEe=_t($ke,[["__scopeId","data-v-ef0e226a"]]),tEe=zd(),Ji=Jye();let mu=null;const fu=["goals","bestPlays"],ze={1:{name:"Oportunidad de Gol",weighing:3},2:{name:"Gol",weighing:1},3:{name:"Autogol",weighing:2},4:{name:"Tarjeta Amarilla",weighing:5},5:{name:"Tarjeta Roja",weighing:4},6:{name:"Penal Recibido",weighing:6},7:{name:"Atajada",weighing:8},8:{name:"Asistencia",weighing:9},9:{name:"Participación en Gol",weighing:14},10:{name:"Sobresaliente",weighing:20},11:{name:"Centro Rematado",weighing:11},12:{name:"Corner Rematado",weighing:12},13:{name:"Tiro Libre Rematado",weighing:13},14:{name:"1vs1 Exitoso Ofensivo",weighing:16},15:{name:"1vs1 Exitoso Defensivo",weighing:18},16:{name:"Pase Filtrado",weighing:15},17:{name:"Balón ganado en Área Propia",weighing:19},18:{name:"Balón Recuperado",weighing:17},19:{name:"Gol Recibido",weighing:7},20:{name:"Pases acertados",weighing:100},21:{name:"Balones recuperados en disputa",weighing:100},22:{name:"Asistencias",weighing:100},23:{name:"Participaciones en gol",weighing:100},24:{name:"Tiros a gol",weighing:100},25:{name:"Tiros a gol que llegaron a la portería",weighing:100},26:{name:"Cabeceos en área rival",weighing:100},27:{name:"Cabeceos en área propia",weighing:100},28:{name:"Centros",weighing:100},29:{name:"Centros acertados",weighing:100},30:{name:"1vs1 exitosos ofensivo",weighing:100},31:{name:"1vs1 exitosos ofensivo que terminaron en gol",weighing:100},32:{name:"1vs1 defensivos exitoso",weighing:100},33:{name:"Rechaces",weighing:100},34:{name:"Balones ganados en área rival",weighing:100},35:{name:"Balones ganados en área propia",weighing:100},36:{name:"Faltas cometidas",weighing:100},37:{name:"Faltas recibidas",weighing:100},38:{name:"Tarjetas amarillas",weighing:100},39:{name:"Tarjetas rojas",weighing:100},40:{name:"Atajadas",weighing:100},41:{name:"Tiros de Esquina",weighing:100,bluer:!0},42:{name:"Balones recuperados en cancha rival",weighing:100},43:{name:"Origen de gol",weighing:10}},av={player:{"12-55":ze[2]},gamesAndTeams:{"12-55":ze[2],"54_r-35_r":ze[3]}},Yi={games:{"607-608":ze[1],"12-55":ze[2],"54-35":ze[3],"14-52":ze[4],"15-53":ze[5],"466-477":ze[6]},team:{"607-608":ze[1],"12-55":ze[2],"54-35":ze[3],"14-52":ze[4],"15-53":ze[5],"466-477":ze[6],"40-257":ze[19],39:ze[7]},player:{regular:{12:ze[2],35:ze[3],10:ze[8],27:ze[9],607:ze[1],61:ze[43],519:ze[10],"98-101-109-112":ze[11],"121-122-127-128-135-136-141-142":ze[12],"161-170-179":ze[13],702:ze[14],730:ze[15],466:ze[6],217:ze[16],"211-232-235-239-242-282-284-289-291-296":ze[17],"485-486-487-488":ze[18],14:ze[4],15:ze[5],257:ze[19]},goalkeeper:{55:ze[2],324:ze[8],323:ze[9],608:ze[1],39:ze[7],774:ze[14],802:ze[15],52:ze[4],53:ze[5],40:ze[19],54:ze[3]}}},aEe={"2-20":ze[20],483:ze[21],10:ze[22],27:ze[23],510:ze[24],"537-540-544-547":ze[25],328:ze[26],"231-280-238-287-406-294":ze[27],"13-25":ze[28],"98-101-104-105-109-112-115-116":ze[29],4:ze[30],88:ze[31],5:ze[32],34:ze[33],11:ze[34],23:ze[35],17:ze[36],18:ze[37],14:ze[38],15:ze[39],39:ze[40],"31-32":ze[41],"225-224":ze[42]},iEe=["Ene","Feb","Mar","Abr","May","Jun","Jul","Ago","Sep","Oct","Nov","Dic"],nEe=1,iv={components:{CarouselFullScreen:eEe,SearchFilters:pke,VideoSearch:KSe,VideoPlayerControls:hde,VideoPlayer:Xde,CurrentMatch:Zse,MatchesList:toe,GSCPlayerTeamGame:ade,GscSwitchComponent:CE},props:{section:{type:Boolean,default:!0},componentWidth:{type:Number,default:767,validator(e){return e>0}},backgroundColor:{type:String,default:"#172531"},user:{type:Object,default:()=>({})},token:{type:String,default:""},isGSUser:{type:Boolean,default:!0},tournamentSelectedId:{type:Number,default:0},seasonSelectedId:{type:Number,default:0},tournamentsForMediaPlayer:{type:[Map],default:()=>new Map},isFromMexico:{type:Boolean,default:!0},gsData:{type:[Object,null],default:null},isFirstRow:{type:Boolean,default:!1},custom:{type:[Object,null],default:null},autoFillVideos:{type:Boolean,default:!1},isPlayerUser:{type:Boolean,default:!1},isGoalkeeper:{type:[Boolean,Number],default:!1},playerId:{type:Number,default:0},isModalMode:{type:Boolean,default:!0},modalInitialData:{type:Object,default:null},isModal:{type:Boolean,default:!1}},data(){return{videojsLocal:null,player:null,lastSearchResult:null,mobileClass:!1,currentMobileTab:"Estás viendo",currentTabMoreVideos:"Resumen",booleanIsFirstIteration:!0,numberCurrentSeasonId:0,numberLastActionId:0,numberPlayerSpeed:1,numberOptionsMenuTop:0,numberOptionsMenuLeft:0,booleanIsVideoPlayerPlaying:!1,booleanIsOptionsMenuVisible:!1,booleanIsSpeedModalVisible:!1,showModalConfirm:!1,showConfirmPlaylist:!0,showModal:!1,seasonId:0,plays:[],playerQueue:[],playsType:fu[0],playsTypeOptions:fu,playInfo:{},teamsMap:new Map,gamesMap:new Map,roundsMap:new Map,mediaPlayerMode:"games",playerPosition:0,playlistTournament:null,showImage:!1,seasonName:"",playlistSeasonIndex:0,playlistSeasonIndexAux:0,playerModeSelected:1,currentTournament:{seasons:[]},mediaPlayerResizeObserver:null,mediaPlayerWidth:0,lastMediaPlayerWidth:0,selectedType:1,roundsAndGamesWithPlaysMap:null,gameIdSelected:0,seasonSearchingCount:0,hasPlayerActivityInTournament:!1,isAutoPlay:!1,storeModule:this.isModalMode?"mediaModal":"mediaGeneral",isFirstTypeChange:!0,rivalCategories:[],counterAux:0,useIdsFromAdvancedFilter:!1,maxGameId:0,tournamentsForModalLauncher:new Map,lastGameIdWatched:0,isSomeListSelected:!1,booleanIsModesModalOpen:!1,arrayCategoriesIdsToFilter:null,arrayRivalCategoriesIdsToFilter:null,arrayCategoriesIdsRaw:null,booleanIsFilterApplied:!1,stringModeTitle:"Estas viendo: Goles de la jornada",objectMediaPlayerModeFilters:this.getEmptyMediaPlayerModeFilters(),playSeekerPlays:[],geoOptions:{enableHighAccuracy:!0,timeout:5e3,maximumAge:0},coords:null,concatPlays:!1,currentPlayIndex:0,firstInteractionToken:"",firstInteractionUrl:"https://playseeker-api-fi.golstats.com",userBehaviorUrl:"https://playseeker-api-ub.golstats.com",gamesUrl:"https://qyyibs1w0d.execute-api.us-west-2.amazonaws.com/prod/calendar/gamesBySeason?",booleanIsPlaySeekerMode:!1,objectLastDataToFilter:null,objectPlaySeekerLastPlay:null,objectPlaySync:null,isCarouselFullScreenVisible:!1}},computed:{...eC("mediaModal",["currentPlaylistPlays","modalSectionSelected","isModalOpen","playlistGameId"]),...eC("mediaGeneral",["playersMapMyPlaylists","teamsMapMyPlaylists","gamesMapMyPlaylists","maxGameIdMyPlaylists","player","mapMinutesPlayedCategoryNames","playSeekerUserId","playSeekerCurrentSessionId"]),...aC("mediaModal",["currentPlayerQueueByGames"]),...aC("mediaGeneral",["userPlaylistsSeasonIds"]),currentMatch(){return this.currentPlayerQueueByGames&&this.currentPlayerQueueByGames.length&&this.playlistGameId?this.currentPlayerQueueByGames.find(e=>e.id===this.playlistGameId):null},dynamicClasses(){let e=[];return this.isModal&&e.push("modal-class"),this.mediaPlayerWidth>0&&(this.mediaPlayerWidth<=420?e.push("modal-video__420"):this.mediaPlayerWidth<=750?e.push("modal-video__750"):this.mediaPlayerWidth<=850?e.push("modal-video__850"):this.mediaPlayerWidth<=1024?e.push("modal-video__1024"):this.mediaPlayerWidth<=1100?e.push("modal-video__1100"):this.mediaPlayerWidth<=1280?e.push("modal-video__1280"):this.mediaPlayerWidth<=1520&&e.push("modal-video__1520")),e},carouselPlayerQueue(){return this.playerQueue?this.playerQueue.filter(e=>e.gameId===this.currentMatch.id):[]},mediaPlayerType(){return"general"},extraCategories(){return[...Fve,...Vve,...Gve,...Jve,...$ve,...iSe,...oSe,...Hve].reduce((e,t)=>(t.categories.forEach(a=>{e.set(a,{id:a,name:this.$t&&t.translationKey&&this.$t(t.translationKey)||t.singleName})}),e),new Map)},isMyPlaylistsActive(){return this.isModalMode&&this.modalSectionSelected===2&&this.isSomeListSelected},modalInitialState(){return this.isModalMode?this.$store.state.mediaModal.modalInitialState:{}},modalSectionSelected(){return this.isModalMode?this.$store.state.mediaModal.modalSectionSelected:{}},playerType(){return this.isModalMode?this.$store.state.mediaModal.playerType:0},advancedFilter(){return this.isModalMode?this.$store.state.mediaModal.advancedFilter:{}},applyAdvancedFilterCounter(){return this.isModalMode?this.$store.state.mediaModal.applyAdvancedFilterCounter:0},selectedSubcategoryIds(){return this.isModalMode?this.$store.state.mediaModal.selectedSubcategoryIds:[]},getSeasonIdOnly(){return this.$store.getters[`${this.storeModule}/getSeasonIdOnly`]},getTeamId(){return this.$store.getters[`${this.storeModule}/getTeamId`]},getPlayerId(){return this.$store.getters[`${this.storeModule}/getPlayerId`]},seasonPlayers(){return this.$store.getters[`${this.storeModule}/seasonPlayers`]},selectedTournament(){return this.$store.getters[`${this.storeModule}/selectedTournament`]},isPlayerGoalkeeper(){return this.$store.getters[`${this.storeModule}/isPlayerGoalkeeper`]},hasPlayerPositionId(){return this.$store.getters[`${this.storeModule}/hasPlayerPositionId`]},playersByTeam(){return this.$store.getters[`${this.storeModule}/playersByTeam`]},tournaments(){return this.$store.state[`${this.storeModule}`].tournaments},seasonID(){return this.$store.state[`${this.storeModule}`].seasonID},playlistIndex(){return this.$store.state[`${this.storeModule}`].playlistIndex},retroSeason(){return this.$store.state[`${this.storeModule}`].retroSeason},objectMediaData(){return this.$store.state[`${this.storeModule}`].objectMediaData},playsSaved(){return this.$store.getters["mediaGeneral/playsSaved"]},summaryData(){return null},isSummaryData(){return!!this.summaryData},profilesSeasonId(){return this.isModalMode?0:this.$store.getters["filterGeneral/getSeasonId"]},currentCategories(){return this.isModalMode?this.modalSectionSelected===1?this.modalInitialState?this.modalInitialState.categoryIds&&this.modalInitialState.categoryIds.length?this.modalInitialState.categoryIds:this.getBestCategoriesIds():[]:this.useIdsFromAdvancedFilter?this.selectedSubcategoryIds:this.modalInitialState?this.modalInitialState.categoryIds:[]:this.summaryData?Object.keys(this.summaryData.isTeam?av.gamesAndTeams:this.summaryData.positionId===1?Yi.player.goalkeeper:Yi.player.regular).reduce((e,t)=>(t.split("-").forEach(a=>{e.push(a)}),e),[]):Object.keys(this.user&&this.user.is_player&&this.hasUserPlayerSelectedSeason?this.user.is_goalkeeper?Yi.player.goalkeeper:Yi.player.regular:av.gamesAndTeams).reduce((e,t)=>(t.split("-").forEach(a=>{e.push(a)}),e),[])},allCategories(){const e=new Map,t={...av.gamesAndTeams,...aEe};return Object.entries(t).forEach(([a,i])=>{a.split("-").forEach(n=>{e.set(n.includes("_r")?n:Number(n),i)})}),this.setBestCategoriesNames(e),e},queryCategories(){let e="";const t=[];return this.currentCategories.forEach((a,i)=>{let n=typeof a=="string"?a:a.toString(),r=!1;n.includes("_")&&(r=!0,n=Number(n.split("_")[0]),t.push(n)),e+=`${i>0?"&":""}${r?"r":""}categories=${n}`}),this.setRivalCategories(t),e},gamesByRound(){const e={};if(this.roundsAndGamesWithPlaysMap)for(const[t,a]of this.roundsAndGamesWithPlaysMap){const[i,n]=t.split(","),r=Array.from(a.values());r.sort((o,l)=>l.dateTimeMillis-o.dateTimeMillis),e[n]={name:i,games:r}}return e},teams(){return this.teamsMap?Array.from(this.teamsMap.values()):[]},isGoalsActive(){return this.playsType===fu[0]},headerResponsiveClass(){const e=[];return this.mediaPlayerWidth<354?e.push("header--width-354"):this.mediaPlayerWidth<440?e.push("header--width-400"):this.mediaPlayerWidth<541?e.push("header--width-540"):this.mediaPlayerWidth<626?e.push("header--width-626"):this.isFirstRow&&this.mediaPlayerWidth<610&&e.push("header--first-row"),e},playInfoStyle(){return!this.gsData&&this.mediaPlayerWidth<871?{padding:"0 0.5em"}:this.isFirstRow?{"margin-top":"0.3em"}:{}},headerIcon(){return this.custom!=null&&Object.keys(this.custom).length?this.custom.logo:"https://az755631.vo.msecnd.net/content/shieldLogoPc.png"},isUserTournament(){return this.gsData&&this.gsData.tournamentId===this.currentTournament._id},hasUserPlayerSelectedSeason(){return this.user.is_player?this.user.related_seasons.includes(this.numberCurrentSeasonId||this.seasonSelectedId):!1},hasUserTeamSelectedTournament(){return!this.user.is_player&&this.user.team?this.user.related_seasons.includes(this.numberCurrentSeasonId||this.seasonSelectedId):!1}},watch:{isModalOpen(e){e||this.applyObjectMediaData()},seasonSelected(){this.setInitialTitle()},tournamentSelectedId(){this.setInitialTitle()},selectedTournament:{deep:!0,handler(e){e&&(this.playlistTournament=e,this.playlistSeasonIndex=0)}},seasonID:{deep:!0,handler(e){e&&(this.playlistSeasonIndexAux=e.index)}},playsType(e){this.isModalMode||this.setPlaysType({mediaPlayerType:this.mediaPlayerType,playsType:e}),this.fetchInfo(!0,this.playlistTournament)},modalSectionSelected(e){e!==1&&(this.isSomeListSelected=!1),[0,1].includes(e)&&(this.playsType!==fu[e]?this.playsType=fu[e]:this.fetchInfo(!0,this.playlistTournament)),this.modalInitialState&&this.modalInitialState.mainSectionType-1===this.modalSectionSelected&&this.checkSeason()},selectedSubcategoryIds(e){e&&e.length&&this.applyAdvancedFilter()},seasonPlayers(e){if(this.getPlayerId&&!this.hasPlayerPositionId){const t=e.get(this.getPlayerId);t&&this.$store.commit(`${this.storeModule}/setPlayer`,t)}},profilesSeasonId:{handler(e){this.setUpData(e)}},tournamentsForMediaPlayer(e){this.seasonSelectedId&&e.size>0&&!this.isModalMode&&this.setUpData(this.seasonSelectedId)},currentPlaylistPlays(e){this.isModalMode&&this.modalSectionSelected===2&&this.setPlaylistPlays(e)},userPlaylistsSeasonIds(e){this.fillMyPlaylistsData(Array.from(e.values()))},seasonId:{immediate:!0,handler(e){this.isModalMode||this.setSeasonId({mediaPlayerType:this.mediaPlayerType,seasonId:e})}},currentCategories:{immediate:!0,handler(e){this.isModalMode||this.setCurrentCategories({mediaPlayerType:this.mediaPlayerType,currentCategories:e})}},selectedType:{immediate:!0,handler(e){this.isModalMode||this.setSelectedType({mediaPlayerType:this.mediaPlayerType,selectedType:e})}},getTeamId:{immediate:!0,handler(e){this.isModalMode||this.setTeamId({mediaPlayerType:this.mediaPlayerType,teamId:e})}},player:{immediate:!0,handler(e){this.isModalMode||this.setModalPlayer({mediaPlayerType:this.mediaPlayerType,player:e})}}},methods:{...tC("mediaModal",["setPlaylistGameId","setPlayerType","setModalInitialState","setIsModalOpen","setIsModalCreatePlayListOpen"]),...tC("mediaGeneral",["setPlayersMapMyPlaylists","setTeamsMapMyPlaylists","setGamesMapMyPlaylists","setMaxGameIdMyPlaylists","setSeasonId","setPlaysType","setCurrentCategories","setSelectedType","setTournamentsForModalLauncher","setTeamId","setModalPlayer","setPlaysToSaveAsFavorites","setPlaySeekerUserId","setPlaySeekerCurrentSessionId"]),applyObjectMediaData(){!this.objectMediaData||this.objectMediaData.booleanAvoidApply||(this.objectMediaData.numberMainSectionType&&this.$store.commit("mediaModal/setModalSectionSelected",this.objectMediaData.numberMainSectionType),this.objectPlaySync=this.objectMediaData.objectPlaySync?{...this.objectMediaData.objectPlaySync,booleanIsApplied:!1}:null,this.stringModeTitle=this.objectMediaData.stringModeTitle,this.playerQueue=[...this.objectMediaData.arrayPlayerQueue],this.$store.commit(`${this.storeModule}/setPlaylistIndex`,{mediaPlayerType:this.isModalMode?null:this.mediaPlayerType,playlistIndex:this.objectMediaData.numberPlaylistIndex}),this.$store.commit(`${this.storeModule}/setCurrentPlayerQueue`,this.playerQueue),this.playlistSeasonIndex=this.objectMediaData.numberPlaylistSeasonIndex,this.booleanIsPlaySeekerMode=this.objectMediaData.booleanIsPlaySeekerMode,this.booleanIsFilterApplied=this.objectMediaData.booleanIsFilterApplied,this.objectMediaData.objectLastDataToFilter&&this.fillDataToFilterData(this.objectMediaData.objectLastDataToFilter))},setPlaylistPlays(e){const t=this.getFormattedPlays(e,!0);this.generatePlayerQueue(null,t,!0)},applyAdvancedFilter(){this.useIdsFromAdvancedFilter=!0,this.fetchInfo(!0,this.playlistTournament)},setRivalCategories(e){this.rivalCategories=e},setUpData(e,t=!1){if(!this.isFromMexico&&!this.isGSUser){this.$emit("finish");return}let a=!1;const i=this.tournamentsForMediaPlayer;e||(a=!0,e=this.seasonSelectedId);const n=Number(e);let r=i.get(n);if(this.tournamentsForModalLauncher=i,this.isModalMode||this.setTournamentsForModalLauncher({mediaPlayerType:this.mediaPlayerType,tournamentsForModalLauncher:i}),!r&&this.isModalMode&&this.modalInitialState&&this.modalInitialState.tournamentsLastClashes&&(r=this.modalInitialState.tournamentsLastClashes.get(e)),this.playlistTournament=r,r){if(this.summaryData&&(this.stringModeTitle=this.summaryData.isTeam?"Estas viendo: Resumen equipo":"Estas viendo: Resumen jugador"),this.playlistSeasonIndex=r.seasons.findIndex(o=>o.id===n),this.playlistSeasonIndexAux=this.playlistSeasonIndex,!t&&!this.summaryData)if(this.isPlayerUser){if(this.hasPlayerActivityInTournament=!!this.getPlayerTournamentBySelectedSeason(n,i),this.hasPlayerActivityInTournament){const o={id:Number(this.user.player)};this.isGoalkeeper&&(o.positionId=1),this.seasonSearchingCount=0,this.$store.commit(`${this.storeModule}/setPlayer`,o),this.$store.commit(`${this.storeModule}/setTeam`,this.gsData.teamId),this.onPlayerSelected();return}!this.hasPlayerActivityInTournament&&this.selectedType!==1&&(this.$store.commit(`${this.storeModule}/setPlayer`,null),this.$store.commit(`${this.storeModule}/setTeam`,null))}else if(this.gsData&&this.gsData.tournamentId===this.playlistTournament._id&&this.gsData.teamId){this.seasonSearchingCount=0,this.$store.commit(`${this.storeModule}/setPlayer`,null),this.$store.commit(`${this.storeModule}/setTeam`,this.gsData.teamId),this.onTeamSelected();return}else this.seasonSearchingCount=0,this.$store.commit(`${this.storeModule}/setPlayer`,null),this.$store.commit(`${this.storeModule}/setTeam`,null);this.fillSeasons([r],a)}},setInitialTitle(){!this.summaryData&&!this.booleanIsFilterApplied&&this.hasUserPlayerSelectedSeason?this.stringModeTitle="Estas viendo: Resumen de jugador":!this.summaryData&&!this.booleanIsFilterApplied&&this.hasUserTeamSelectedTournament?this.stringModeTitle="Estas viendo: Resumen de equipo":this.stringModeTitle="Estas viendo: Goles de la jornada"},closeModalConfirm(){this.showModalConfirm=!1},onModalSpeedClose(){this.booleanIsSpeedModalVisible=!1},onClickSpeed(e){this.numberPlayerSpeed=e,this.$refs.videoPlayer.setSpeedToAllPlayers(e),this.booleanIsSpeedModalVisible=!1},confirmModalConfirm(){this.showModalConfirm=!1,this.$refs.videoPlayer.playCurrentVideoPlayer()},openmodal(){this.$refs.videoPlayer.setAutoPlaysCount(0),this.showModal=!0},closeModal(){this.showModal=!1},getBestCategoriesIds(){let e=null;return this.mediaPlayerMode==="player"?this.isPlayerGoalkeeper?e=Object.keys(Yi.player.goalkeeper):e=Object.keys(Yi.player.regular):e=Object.keys(Yi[this.mediaPlayerMode]),e.reduce((t,a)=>(a.split("-").forEach(i=>{t.push(i)}),t),[])},setBestCategoriesNames(e){[...Object.entries(Yi.player.goalkeeper),...Object.entries(Yi.player.regular),...Object.entries(Yi[this.mediaPlayerMode])].forEach(([t,a])=>{t.split("-").forEach(i=>{e.set(Number(i),a)})})},onPlaysTypeClicked(e){this.playsType=e},getPlayTime(e,t){let a="",i=0;switch(e.matchLapse){case 1:a=e.syncStartFirstTime;break;case 2:a=e.syncStartSecondTime,i=45;break;case 3:a=e.syncStartFirstExtraTime,i=90;break;case 4:a=e.syncStartSecondExtraTime,i=105;break;case 5:a=e.syncStartPenals,i=120;break}return(!a||a==="0")&&(a="00:00"),this.getTimeToSeconds(a)+(this.getTimeToSeconds(e[t])-i*60)},getTimeToSeconds(e){const t=e.indexOf(".")>-1?e.substring(0,e.indexOf(".")):e,[a,i,n]=t.split(":").reverse();return(n?Number(n)*60*60:0)+Number(i)*60+Number(a)},getFormattedPlays(e,t=!1,a=null){this.roundsAndGamesWithPlaysMap=new Map,mu=new Map,e.forEach(n=>{const r=n.reduce((u,h,p)=>(u[tEe[p]]=h,u),{});r.playRaw=n;let o=null,l=null,c=null,d=0;if(t?(c=this.teamsMapMyPlaylists,d=this.maxGameIdMyPlaylists,o=this.gamesMapMyPlaylists.get(r.gameId),l=this.playersMapMyPlaylists.get(r.playerId),r.booleanIsFromMyPlaylists=!0):(c=a?a.mapTeams:this.teamsMap,d=a?a.maxGameId:this.maxGameId,o=a?a.mapGames.get(r.gameId):this.gamesMap.get(r.gameId),l=a?a.mapPlayers.get(r.playerId):this.seasonPlayers.get(r.playerId)),l&&o&&r.gameId<=d){const u=`${o.roundName},${o.roundAbbreviation},${o.seasonId}`,h=this.roundsAndGamesWithPlaysMap.get(u);h?h.set(o.id,o):this.roundsAndGamesWithPlaysMap.set(u,new Map().set(o.id,o)),r.game=o,r.game.awayTeam.id===r.teamId?(r.teamName=r.game.awayTeam.name,r.teamAcronym=r.game.awayTeam.acronym,r.rivalName=r.game.homeTeam.name):(r.teamName=r.game.homeTeam.name,r.teamAcronym=r.game.homeTeam.acronym,r.rivalName=r.game.awayTeam.name),r.playingAs=r.teamId===r.game.homeTeam.id?1:2,r.player=l,r.playerTeamLogo=c.get(r.player.teamId).logo,r.rivalTeamLogo=c.get(r.player.teamId===r.game.homeTeam.id?r.game.awayTeam.id:r.game.homeTeam.id).logo,r.startSeconds=this.getPlayTime(r,"startTime"),r.endSeconds=this.getPlayTime(r,"endTime");const p=new Date(r.gameDate),[m,f]=r.gameHour.split(":");p.setHours(m),p.setMinutes(f),r.dateTimeMillis=p.valueOf(),mu.has(r.gameId)?mu.get(r.gameId).plays.push(r):mu.set(r.gameId,{dateTimeMillis:p.valueOf(),plays:[r]})}});const i=Array.from(mu.values());return i.sort((n,r)=>r.dateTimeMillis-n.dateTimeMillis),i.reduce((n,r)=>(r.plays.sort((o,l)=>+`${o.matchLapse}${o.startTime.replace(/:*\.*/g,"")}`-+`${l.matchLapse}${l.startTime.replace(/:*\.*/g,"")}`),n.push(...r.plays),n),[])},generatePlayerQueue(e,t,a=!1,i=-1,n){if(!t.length)return;const r=new Map,o=this.modalInitialState?this.modalInitialState.advancedFilter||{}:{};o&&o.fieldSections&&(o.fieldSectors=o.fieldSections.map(d=>Xi[`${d}`]));let l=0,c=0;if(this.playerQueue=t.reduce((d,u)=>{const h=`${u.gameId}-${u.playerId}-${u.startTime}`;let p=!1;if(this.lastSearchResult)this.lastSearchResult.team&&(p=u.game.homeTeam.id!==this.lastSearchResult.team.id&&u.game.awayTeam.id!==this.lastSearchResult.team.id),!p&&this.lastSearchResult.game&&(p=u.gameId!==this.lastSearchResult.game.id),!p&&this.lastSearchResult.player&&(p=u.playerId!==this.lastSearchResult.player.id);else if(this.isModalMode&&!a&&!n){this.modalInitialState.lastClashesGameId&&(p=u.gameId!==this.modalInitialState.lastClashesGameId);const b=this.getTeamId||this.modalInitialState.teamId;if(b&&(p=u.game.homeTeam.id!==b&&u.game.awayTeam.id!==b),!p&&this.selectedType===2&&(p=(this.modalInitialState&&this.modalInitialState.playerIds?this.modalInitialState.playerIds[0]:this.getPlayerId)!==u.playerId),!p&&o&&(o.playingAs&&o.playingAs.length&&(p=o.requiresRivalTransform&&o.playingAs.length===1&&u.teamId!==b?o.playingAs.includes(u.playingAs):!o.playingAs.includes(u.playingAs)),!p&&o.timeSections&&o.timeSections.length&&(p=!o.timeSections.includes(u.section)),!p&&o.coordinatePoint&&o.fieldSectors)){const _=_l(u[`x${o.coordinatePoint}`],u[`y${o.coordinatePoint}`])+1;p=!o.fieldSectors.includes(_)}if(!p&&b&&this.modalInitialState.matchResult&&this.modalInitialState.matchResult.length){const _=u.game.gameResult===3?3:u.game.gameResult===1&&b===u.game.homeTeam.id||u.game.gameResult===2&&b===u.game.awayTeam.id?1:2;p=!this.modalInitialState.matchResult.includes(_)}}const m=this.lastSearchResult?this.lastSearchResult.categoryIds:this.arrayCategoriesIdsToFilter||e,f=this.arrayRivalCategoriesIdsToFilter||this.rivalCategories;if(a||(n||!p)&&(m.includes(u.categoryId)||f.includes(u.categoryId)&&(this.booleanIsFilterApplied||!this.getTeamId||u.rivalTeamId===this.getTeamId))&&u.startSeconds!==u.endSeconds){const b=r.get(h);let _=this.modalInitialState&&this.modalInitialState.mainSectionType===this.modalSectionSelected+1&&this.modalInitialState.categorySingleName&&!this.modalInitialState.avoidCategorySingleName&&![35,54].includes(u.categoryId)?{name:this.modalInitialState.categorySingleName}:this.allCategories.get(u.categoryId)||this.allCategories.get(`${u.categoryId}_r`)||this.extraCategories.get(u.categoryId)||this.extraCategories.get(`${u.categoryId}_r`);this.modalInitialState&&this.modalInitialState.avoidCategorySingleName?_={name:this.modalInitialState.categorySingleName,weighing:1}:this.isModalMode&&u.categoryId===33&&(_={name:"Fuera de lugar",weighing:1});let x="";_||(x=this.mapMinutesPlayedCategoryNames.get(u.categoryId),x?_={name:x,weighing:1}:!_&&o&&(_={name:o.playListTitle,weighing:100})),_||(_=this.allCategories.get(u.categoryId)||this.allCategories.get(`${u.categoryId}_r`)||this.extraCategories.get(u.categoryId)||this.extraCategories.get(`${u.categoryId}_r`)),c||(this.lastGameIdWatched===u.gameId&&(c=l),l++),b?(_.weighing<b.mainCategory.weighing&&(b.mainCategory=_),b.categoriesNames.add(_.name)):(u.isSaved=this.playsSaved.has(u.playId),u.mainCategory=_,u.categoriesNames=new Set,u.categoriesNames.add(_.name),r.set(h,u),d.push(u))}return d},[]),this.showImage=!1,this.isModalMode){if(a)this.$store.commit("mediaModal/setPlaylistIndex",{mediaPlayerType:this.isModalMode?null:this.mediaPlayerType,playlistIndex:0});else{if(this.modalInitialState&&this.modalInitialState.playData){const d=this.playerQueue.findIndex(u=>u.playId===this.modalInitialState.playData.playId);d!==-1&&this.$store.commit("mediaModal/setPlaylistIndex",{mediaPlayerType:this.isModalMode?null:this.mediaPlayerType,playlistIndex:d})}if(this.playerQueue.length)if(n&&this.objectMediaPlayerModeFilters.objectGameSelected){const d=this.playerQueue.findIndex(u=>this.objectMediaPlayerModeFilters.objectGameSelected.game_id===u.game.id);d!==-1&&this.$store.commit("mediaModal/setPlaylistIndex",{mediaPlayerType:this.isModalMode?null:this.mediaPlayerType,playlistIndex:d})}else if(this.modalInitialState&&!this.modalInitialState.lastClashesGameId&&this.modalInitialState.gameIds&&this.selectedType===1){const d=this.playerQueue.findIndex(u=>this.modalInitialState.gameIds.includes(u.game.id));d!==-1?this.$store.commit("mediaModal/setPlaylistIndex",{mediaPlayerType:this.isModalMode?null:this.mediaPlayerType,playlistIndex:d}):this.playerQueue=[]}else this.modalInitialState&&this.modalInitialState.currentPlayIndex?this.$store.commit("mediaModal/setPlaylistIndex",{mediaPlayerType:this.isModalMode?null:this.mediaPlayerType,playlistIndex:this.modalInitialState.currentPlayIndex}):i>-1&&this.$store.commit("mediaModal/setPlaylistIndex",{mediaPlayerType:this.isModalMode?null:this.mediaPlayerType,playlistIndex:i})}this.$store.commit(`${this.storeModule}/setCurrentPlayerQueue`,this.playerQueue)}else if(n&&this.objectMediaPlayerModeFilters.objectGameSelected){const d=this.playerQueue.findIndex(u=>this.objectMediaPlayerModeFilters.objectGameSelected.game_id===u.game.id);d!==-1&&this.$store.commit("mediaGeneral/setPlaylistIndex",{mediaPlayerType:this.isModalMode?null:this.mediaPlayerType,playlistIndex:d})}else i>-1?this.$store.commit("mediaGeneral/setPlaylistIndex",{mediaPlayerType:this.isModalMode?null:this.mediaPlayerType,playlistIndex:i}):this.selectedType===1&&c&&this.$store.commit("mediaGeneral/setPlaylistIndex",{mediaPlayerType:this.isModalMode?null:this.mediaPlayerType,playlistIndex:c});this.playerQueue.length||this.emptyListDecision(),this.booleanIsFirstIteration&&(this.booleanIsFirstIteration=!1,this.$emit("finish"))},emptyListDecision(){this.summaryData&&this.summaryData.isTeam&&this.playsType===this.playsTypeOptions[0]?this.playsType=this.playsTypeOptions[1]:!this.summaryData&&!this.isModalMode&&this.onTypeChanged(1)},getGeneralName(e){return e.split(" ").reduce((t,a,i)=>{if(i===0)if(a.includes("."))t.push(a);else{const n=a.toLowerCase().split("");n[0]=n[0].toUpperCase(),t.push(n.join(""))}else t.push(a.toLowerCase());return t},[]).join(" ")},getSingleName(e){return e.split(" ").reduce((t,a)=>{let i=a;return a.endsWith("ciones")?i=a.replace("ciones","ción"):a.endsWith("nales")?i=a.replace("nales","nal"):a.endsWith("vocan")?i=a.replace("vocan","voca"):a.endsWith("lones")?i=a.replace("lones","lón"):a.endsWith("oles")?i=a.replace("oles","ol"):(a.endsWith("os")||a.endsWith("as")||a.endsWith("es"))&&(i=a.slice(0,a.length-1)),t.push(i),t},[]).join(" ")},getCategoryFormat(e=""){const t=this.getGeneralName(e);return this.getSingleName(t)},getPlayerTournamentBySelectedSeason(e,t){const a=this.user.related_seasons.reduce((n,r)=>{const o=t.get(r);return o&&n.push(o._id),n},[]),i=t.get(e);return a.includes(i._id)?i:null},changeTournament(e){},changeSeason(e){},getFilteredPlays(e){return e.reduce((t,a)=>{if(this.objectMediaPlayerModeFilters.objectFilters.numberActionId>1){let i=!0;if(i&&this.objectMediaPlayerModeFilters.objectFilters.objectAdvancedFilters.arrayPlayingAs&&([3,4].includes(this.actionId)?i=!(this.objectMediaPlayerModeFilters.objectFilters.objectAdvancedFilters.booleanRequiresRivalTransform&&this.objectMediaPlayerModeFilters.objectFilters.objectAdvancedFilters.arrayPlayingAs.length===1?a.teamId!==this.objectMediaPlayerModeFilters.objectFilters.objectAdvancedFilters.numberTeamId?this.objectMediaPlayerModeFilters.objectFilters.objectAdvancedFilters.arrayPlayingAs.includes(a.playingAs):!this.objectMediaPlayerModeFilters.objectFilters.objectAdvancedFilters.arrayPlayingAs.includes(a.playingAs):!this.objectMediaPlayerModeFilters.objectFilters.objectAdvancedFilters.arrayPlayingAs.includes(a.playingAs)):i=this.objectMediaPlayerModeFilters.objectFilters.objectAdvancedFilters.arrayPlayingAs.includes(a.playingAs)),i&&this.objectMediaPlayerModeFilters.objectFilters.objectAdvancedFilters.arrayTimeSections&&(i=this.objectMediaPlayerModeFilters.objectFilters.objectAdvancedFilters.arrayTimeSections.includes(a.section)),i&&this.objectMediaPlayerModeFilters.objectFilters.objectAdvancedFilters.coordinatePoint&&this.objectMediaPlayerModeFilters.objectFilters.objectAdvancedFilters.arrayFieldSections){const n=`${_l(a[`x${this.objectMediaPlayerModeFilters.objectFilters.objectAdvancedFilters.coordinatePoint}`],a[`y${this.objectMediaPlayerModeFilters.objectFilters.objectAdvancedFilters.coordinatePoint}`])+1}`,r=Xi[n],o=this.objectMediaPlayerModeFilters.objectFilters.objectAdvancedFilters.requiresRivalTransform&&this.objectMediaPlayerModeFilters.objectFilters.objectAdvancedFilters.arraySelectedSubcategoryIds.includes(`${a.categoryId}_r`)?Xi[`${pu[n]}`]:r;i=!!this.objectMediaPlayerModeFilters.objectFilters.objectAdvancedFilters.arrayFieldSections.find(l=>l.num===o&&l.status)}i&&t.push(a)}else t.push(a);return t},[])},async fillSeasonPlayers(e){try{const t=await this.$store.dispatch("mediaGeneral/getPlayersBySeasons",{seasonId:e.id,returnData:!0});e.mapPlayers=new Map,e.mapPlayersByTeam=t.reduce((a,i)=>{e.mapPlayers.set(i.player_id,{id:i.player_id,name:i.player_name,shortName:i.shortName,photo:i.player_photo,teamId:i.team_id,positionId:i.position_id});const n=a.get(i.team_id);return n?n.push(i):a.set(i.team_id,[i]),a},new Map)}catch(t){throw new Error(t)}},async fillMatchDaysAndGamesV2(e){try{const{seasonsAndGames:t,seasonsAndTeams:a}=await this.fetchSeasonsGamesAndTeamsV2([e.id,...e.related_seasons.map(o=>o.id)],3),i=a.find(o=>o._id===e.id);e.arrayTeams=[],e.mapTeams=new Map;const n=i.teams.reduce((o,l)=>(e.arrayTeams.push(l),e.mapTeams.set(l.team_id,{name:l.colloquial_name,acronym:l.acronym,logo:l.logo,id:l.team_id}),o.set(l.team_id,l),o),new Map);e.mapGames=new Map,e.mapGamesByTeam=new Map;const r=Array.from(t.reduce((o,l)=>(l.games.forEach(c=>{if(c.game_status===1&&c.has_video){(!e.maxGameId||c.game_id>e.maxGameId)&&(e.maxGameId=c.game_id);let d=c.matchday_abbreviation.replace("M","J"),u=c.matchday_abbreviation.replace("M","Jornada ");const h=c.matchday_abbreviation.replace("M","");l.season_type===0?this.objectMediaPlayerModeFilters.objectTournamentSelected.id===33&&(c.seasonId===881?(d=h6[h]||d,u=u6[h]||u):(d=vm[c.matchday_abbreviation]?c.matchday_abbreviation:d,u=vm[c.matchday_abbreviation]||u,d==="FINAL"&&(d="F"))):l.season_type===1?(d=d6[c.matchday_abbreviation],u=d):c.matchday_id===182?(d="PI1",u="Play In 1"):c.matchday_id===183?(d="PI2",u="Play In 2"):(d=c.matchday_abbreviation.replace("PO","R"),u="Repechaje"),c.roundAbbreviation=d,c.roundName=u,e.mapGames.set(c.game_id,{id:c.game_id,date:c.date,dateTimeMillis:new Date(c.date_time_utc).valueOf(),homeTeam:e.mapTeams.get(c.home_team),awayTeam:e.mapTeams.get(c.visiting_team),roundAbbreviation:c.roundAbbreviation,roundName:c.roundName,score:c.score,gameResult:c.score[0]>c.score[1]?1:c.score[0]<c.score[1]?2:3,seasonId:l.season_id});const p=o.get(c.roundAbbreviation);c.numberDateTimeMillis=new Date(c.date_time_utc).getTime(),c.homeTeam=n.get(c.home_team),c.awayTeam=n.get(c.visiting_team);const m=e.mapGamesByTeam.get(c.home_team),f=e.mapGamesByTeam.get(c.visiting_team);m?m.push(c):e.mapGamesByTeam.set(c.home_team,[c]),f?f.push(c):e.mapGamesByTeam.set(c.visiting_team,[c]),p?p.arrayGames.push(c):o.set(c.roundAbbreviation,{stringMatchDayAbbreviation:c.roundAbbreviation,stringMatchDayName:c.roundName,arrayGames:[c]})}}),o),new Map).values());r.reverse(),r.forEach(o=>{o.arrayGames.sort((l,c)=>l.numberDateTimeMillis-c.numberDateTimeMillis)}),e.arrayMatchDays=r,this.objectMatchDaySelected=r[0]||{}}catch(t){throw new Error(t)}},async fetchSeasonsGamesAndTeamsV2(e,t,a=""){let i=a;try{i||(i=this.gamesUrl,e.forEach((o,l)=>{i+=`${l===0?"":"&"}seasons=${o}`}));const{data:{data:n,teams:r}}=await Ci.get(i);return{seasonsAndGames:n,seasonsAndTeams:r}}catch(n){if(t>0)return this.fetchSeasonsGamesAndTeamsV2(e,t-1,i);throw new Error(n)}},async fillNextSeasonPlays(){try{this.showImage=!0,this.playlistSeasonIndex++,this.seasonName=this.objectMediaPlayerModeFilters.objectTournamentSelected.arraySeasons[this.playlistSeasonIndex].name,this.playlistSeasonIndex>this.objectMediaPlayerModeFilters.objectTournamentSelected.arraySeasons.length-1&&(this.playlistSeasonIndex=0);const e=this.objectMediaPlayerModeFilters.objectTournamentSelected.arraySeasons[this.playlistSeasonIndex];e.arrayMatchDays||(await this.fillMatchDaysAndGamesV2(e),await this.fillSeasonPlayers(e));const t=await this.fetchPlays(e.id,this.objectMediaPlayerModeFilters.stringQueryCategoryIds,this.objectMediaPlayerModeFilters.stringQueryParams),a=this.getFormattedPlays(t,!1,e),i=this.getFilteredPlays(a);this.generatePlayerQueue(null,i,!1,0,!0)}catch(e){throw new Error(e)}},onPlaylistEnded(){this.booleanIsPlaySeekerMode||(this.isMyPlaylistsActive?this.$store.commit("mediaModal/setPlaylistIndex",{mediaPlayerType:this.isModalMode?null:this.mediaPlayerType,playlistIndex:0}):this.booleanIsFilterApplied?this.fillNextSeasonPlays():(this.playlistSeasonIndex++,this.playlistSeasonIndex>this.playlistTournament.seasons.length-1&&(this.playlistSeasonIndex=0),this.seasonName=this.playlistTournament.seasons[this.playlistSeasonIndex].name,this.showImage=!0,setTimeout(()=>{this.fetchInfo(!1,this.playlistTournament)},4e3)))},onFullScreenChange(){this.isCarouselFullScreenVisible=!0},onTypeChanged(e=1){if((e!==this.selectedType||this.isModalMode)&&(this.isModalMode&&this.setPlayerType(e),this.selectedType!==e||this.isModalMode&&e===1)){if(this.selectedType=e,this.selectedType===2){this.mediaPlayerMode="player";const t=this.summaryData?{id:this.summaryData.id}:this.isModalMode?this.isFirstTypeChange?this.modalInitialState&&this.modalInitialState.goalkeeperIds?{id:this.modalInitialState.goalkeeperIds[0],positionId:1}:{id:this.modalInitialState.playerIds[0]}:this.playInfo.player:this.isUserTournament?null:this.playInfo.player;this.$store.commit(`${this.storeModule}/setPlayer`,t),this.$store.commit(`${this.storeModule}/setTeam`,this.isModalMode?this.playInfo.teamId:this.isUserTournament?this.gsData.teamId:this.playInfo.teamId),this.onPlayerSelected()}else if(this.selectedType===3){this.mediaPlayerMode="team";const t=this.summaryData?this.summaryData.id:this.isModalMode?this.isFirstTypeChange?this.modalInitialState&&this.modalInitialState.teamId:this.playInfo.teamId:this.hasPlayerActivityInTournament||this.isUserTournament?this.gsData.teamId:this.playInfo.teamId;this.$store.commit(`${this.storeModule}/setPlayer`,null),this.$store.commit(`${this.storeModule}/setTeam`,t),this.onTeamSelected()}else this.selectedType===1&&(this.mediaPlayerMode="games",this.$store.commit(`${this.storeModule}/setPlayer`,null),this.$store.commit(`${this.storeModule}/setTeam`,null),this.checkSeason());e!==0&&(this.isFirstTypeChange=!1)}},onMaxInactivityReached(){this.showModalConfirm=!0},checkSeason(){this.gsData||(this.playlistSeasonIndex=this.playlistSeasonIndexAux);const e=this.getSeasonIdOnly===this.seasonId;this.fetchInfo(e,this.playlistTournament)},onPlayerSelected(){this.mediaPlayerMode="player",this.checkSeason()},onTeamSelected(){this.mediaPlayerMode="team",this.checkSeason()},onGameIdSelected(e){this.gameIdSelected=e},onPlaying(){this.isAutoPlay=!0},onPlayChanged(e){if(this.lastGameIdWatched=e.gameId,e.isPlaySeeker)this.playInfo=e,this.objectPlaySeekerLastPlay={playListId:e.payloadData.playlist_id,groupPlayListId:e.payloadData.group_playlist_id,groupId:e.payloadData.group_id,playIndex:e.payloadData.play_number-1},window.localStorage.setItem("playSeekerLastPlay",JSON.stringify(this.objectPlaySeekerLastPlay));else if(e.booleanIsFullGame)this.playInfo={playId:e.playId,booleanIsFullGame:!0,homeTeamLogo:e.objectGame.homeTeam.logo,homeTeamName:e.objectGame.homeTeam.colloquial_name,awayTeamLogo:e.objectGame.awayTeam.logo,awayTeamName:e.objectGame.awayTeam.colloquial_name,arrayScore:e.objectGame.score,gameId:e.gameId,seasonId:e.objectGame.season_id,teamLogo:e.playerTeamLogo,playerLogo:e.player.photo,dateTimeMillis:new Date(e.objectGame.date_time_utc).getTime()};else if(this.summaryData)this.playInfo={playId:e.playId,homeTeamLogo:e.game.homeTeam.logo,homeTeamName:e.game.homeTeam.colloquial_name||e.game.homeTeam.name,awayTeamLogo:e.game.awayTeam.logo,awayTeamName:e.game.awayTeam.colloquial_name||e.game.awayTeam.name,arrayScore:e.game.score,gameId:e.gameId,seasonId:e.seasonId,mainCategoryName:g0(e.mainCategory.name),playerShortName:e.player.shortName,dateTimeMillis:e.dateTimeMillis,playRaw:e.playRaw,startSeconds:e.startSeconds,endSeconds:e.endSeconds};else{if(this.isModalMode){this.setPlaylistGameId(e.game.id);const t=this.playerType===2?e.player.shortName:this.playerType===3?this.modalInitialState&&this.modalInitialState.isRivalSubject&&this.modalInitialState.mainSectionType===this.modalSectionSelected+1?[35,54].includes(e.categoryId)?e.teamname:e.rivalName:[35,54].includes(e.categoryId)?e.rivalName:e.teamName:"";this.$emit("subject-change",t?` - ${t}`:"")}this.playInfo={playId:e.playId,date:e.gameDate,dateTimeMillis:e.dateTimeMillis,arrayScore:e.game.score,objectHomeTeam:e.game.homeTeam,objectAwayTeam:e.game.awayTeam,playerId:e.player.id,playerName:e.player.name,playerShortName:e.player.shortName,playCategory:e.categoryName,teams:`${e.game.homeTeam.name} vs ${e.game.awayTeam.name}`,playerPhoto:e.player.photo,teamLogo:e.playerTeamLogo,rivalLogo:e.rivalTeamLogo,teamId:e.teamId,categoryId:e.categoryId,jersey:e.jersey,mainCategoryName:g0(e.mainCategory.name||e.stringMainCategoryName||""),categoriesNames:Array.from(e.categoriesNames.values()).reduce((t,a,i)=>(t+=`${i===0?"":", "}${a}`,t),""),gameId:e.game.id,roundAbbreviation:e.game.roundAbbreviation,player:e.player,asLocal:e.game.homeTeam.id===e.teamId,momentOfPlay:e.momentOfPlay,seasonId:e.seasonId,playRaw:e.playRaw,startSeconds:e.startSeconds,endSeconds:e.endSeconds,booleanIsFromMyPlaylists:e.booleanIsFromMyPlaylists,tvStations:e.game.tvStations}}},async fetchPlays(e=null,t=null,a=null){try{this.lastGameIdWatched=0;let i="";if(a===null){const r=this.modalInitialState&&this.modalInitialState.playerIds&&this.modalInitialState.playerIds.length;this.modalInitialState.isFeaturedPlayers?(this.modalInitialState.playerIds.forEach(o=>{i+=`&player=${o}`}),this.modalInitialState.isFeaturedPlayers=!1):this.getPlayerId?(this.hasUserPlayerSelectedSeason&&this.getPlayerId===this.user.player||!this.user.is_player)&&(i+=`&player=${this.getPlayerId}`):r?this.modalInitialState.playerIds.forEach(o=>{i+=`&player=${o}`}):(this.getTeamId||this.modalInitialState.teamId)&&(i+=`&team=${this.getTeamId||this.modalInitialState.teamId}`),this.modalInitialState&&this.modalInitialState.isPost&&(i+="&isPost=1")}const n=await Ci.get(`https://cpj4073446.execute-api.us-east-2.amazonaws.com/prod/videos/plays/seasons/${e||this.seasonId}?${t||this.queryCategories}${a||i}`);if(n.data&&n.data.plays){const r=[...n.data.plays];return n.data.plays_rival?r.concat(n.data.plays_rival):r}return[]}catch(i){throw new Error(i)}},async fetchInfo(e,t){try{if(!t)return;let a=this.playlistSeasonIndex;this.playlistTournament=t,this.seasonId=t.seasons[a].id;const i=[this.fetchPlays()];if(!e&&t.seasons[a]){const l=[this.seasonId];t.seasons[a].related_seasons&&t.seasons[a].related_seasons.length&&l.push(...t.seasons[a].related_seasons.map(c=>c.id)),i.push(this.$store.dispatch(`${this.storeModule}/fetchSeasonsGamesAndTeams`,{seasons:l})),i.push(this.$store.dispatch(`${this.storeModule}/getPlayersBySeasons`,{seasonId:this.seasonId}))}const[n,r]=await Promise.all(i);if(this.plays=n||[],this.hasPlayerActivityInTournament&&!this.plays.length)if(this.playlistSeasonIndex<this.playlistTournament.seasons.length-1&&this.seasonSearchingCount<1)this.playlistSeasonIndex++,this.seasonSearchingCount++,await this.fetchInfo(!1,t);else return;e||this.formatGamesAndTeams(r);const o=this.getFormattedPlays(this.plays);this.generatePlayerQueue(this.currentCategories.reduce((l,c)=>(typeof c=="string"&&c.includes("_")||l.push(Number(c)),l),[]),o),this.showImage=!1}catch(a){throw new Error(a)}},async fillSeasons(e,t=!1){try{if(e){let a=null;if(this.autoFillVideos?a=e.find(i=>i._id===1):a=e[0],a){if(this.currentTournament=a,this.isModalMode&&!t&&!this.lastSearchResult)return;await this.fetchInfo(!1,this.currentTournament)}}}catch(a){throw new Error(a)}},async fillMyPlaylistsData(e){if(e.length){const t=[this.$store.dispatch("mediaGeneral/fetchSeasonsGamesAndTeams",{seasons:e})];e.forEach(r=>{t.push(this.$store.dispatch("mediaGeneral/getPlayersBySeasons",{seasonId:r,returnData:!0}))});const a=await Promise.all(t),i=a.shift();this.formatGamesAndTeamsForMyPlaylists(i);const n=a.reduce((r,o)=>(o.forEach(l=>{r.set(l.player_id,{id:l.player_id,name:l.player_name,shortName:l.shortName,photo:l.player_photo,teamId:l.team_id,positionId:l.position_id})}),r),new Map);this.setPlayersMapMyPlaylists(n)}},getBestPlaysCategoriesIds(){return Object.keys(Yi[this.mediaPlayerMode]).reduce((e,t)=>(t.split("-").forEach(a=>{e.push(Number(a))}),e),[])},setUpMediaGeneralData(){const{objectCurrentPlay:e,numberCurrentTime:t}=this.$refs.videoPlayer.getCurrentPlayerPlayInfo(),a={numberPlayId:e.playId,numberCurrentTime:t},i={arrayPlayerQueue:[...this.playerQueue],stringModeTitle:this.stringModeTitle,numberPlaylistIndex:this.playlistIndex,numberPlaylistSeasonIndex:this.playlistSeasonIndex,booleanIsFilterApplied:this.booleanIsFilterApplied,booleanIsPlaySeekerMode:this.booleanIsPlaySeekerMode,booleanAvoidApply:this.isModalMode&&this.modalInitialState&&this.modalInitialState.avoidApply&&!this.booleanIsFilterApplied,objectPlaySync:a};this.booleanIsFilterApplied&&(i.objectLastDataToFilter=this.objectLastDataToFilter),this.$store.commit("mediaGeneral/setObjectMediaData",i)},formatGamesAndTeams(e){this.roundsMap=new Map,this.teamsMap=e.seasonsAndTeams.reduce((t,a)=>(a&&a.teams.forEach(i=>{t.has(i.team_id)||t.set(i.team_id,{name:i.colloquial_name,acronym:i.acronym,logo:i.logo,id:i.team_id,players:this.playersByTeam.get(i.team_id)})}),t),new Map),this.gamesMap=e.seasonsAndGames.reduce((t,a)=>{const i=!!(this.currentTournament&&this.currentTournament.tournament&&this.currentTournament.tournament.tournament_type);return a.games.forEach(n=>{n.seasonType=a.season_type,n.seasonId=a.season_id,n.game_id>this.maxGameId&&(this.maxGameId=n.game_id);let r=n.matchday_abbreviation.replace("M","J"),o=n.matchday_abbreviation.replace("M","Jornada ");const l=n.matchday_abbreviation.replace("M","");n.seasonType===0?i&&(n.seasonId===881?(r=h6[l]||r,o=u6[l]||o):(r=vm[n.matchday_abbreviation]?n.matchday_abbreviation:r,o=vm[n.matchday_abbreviation]||o,r==="FINAL"&&(r="F"))):n.seasonType===1?(r=d6[n.matchday_abbreviation],o=r):n.matchday_id===182?(r="PI1",o="Play In 1"):n.matchday_id===183?(r="PI2",o="Play In 2"):(r=n.matchday_abbreviation.replace("PO","R"),o="Repechaje"),n.roundAbbreviation=r,n.roundName=o;const c=n.date.split("-"),d={id:n.game_id,date:n.date,dateTimeMillis:new Date(n.date_time_utc).valueOf(),homeTeam:this.teamsMap.get(n.home_team),awayTeam:this.teamsMap.get(n.visiting_team),roundAbbreviation:n.roundAbbreviation,roundName:n.roundName,score:n.score,gameResult:n.score[0]>n.score[1]?1:n.score[0]<n.score[1]?2:3,seasonId:a.season_id,dateFormatted:`${Number(c[2])} ${iEe[Number(c[1])-1]}, ${c[0]}`,tvStations:n.tv_stations?n.tv_stations.join(", "):null},u=this.roundsMap.get(n.roundAbbreviation);u?u.push(d):this.roundsMap.set(n.roundAbbreviation,[d]),t.has(n.game_id)||t.set(n.game_id,d)}),t},new Map)},formatGamesAndTeamsForMyPlaylists(e){const t=e.seasonsAndTeams.reduce((n,r)=>(r&&r.teams.forEach(o=>{n.has(o.team_id)||n.set(o.team_id,{name:o.colloquial_name,acronym:o.acronym,logo:o.logo,id:o.team_id,players:this.playersByTeam.get(o.team_id)})}),n),new Map);let a=0;const i=e.seasonsAndGames.reduce((n,r)=>(r.games.forEach(o=>{o.seasonType=r.season_type,o.seasonId=r.season_id,o.game_id>a&&(a=o.game_id);const l={id:o.game_id,date:o.date,dateTimeMillis:new Date(o.date_time_utc).valueOf(),homeTeam:t.get(o.home_team),awayTeam:t.get(o.visiting_team),roundAbbreviation:o.matchday_abbreviation,roundName:o.matchday_abbreviation.replace("M","MatchDay "),score:o.score,gameResult:o.score[0]>o.score[1]?1:o.score[0]<o.score[1]?2:3,seasonId:r.season_id};n.has(o.game_id)||n.set(o.game_id,l)}),n),new Map);this.setTeamsMapMyPlaylists(t),this.setGamesMapMyPlaylists(i),this.setMaxGameIdMyPlaylists(a)},onPlayerModeClicked(e){this.playerModeSelected=e},onClickModalLauncher(e=1){const{objectCurrentPlay:t,numberCurrentTime:a}=this.$refs.videoPlayer.getCurrentPlayerPlayInfo(),i={numberPlayId:t.playId,numberCurrentTime:a};this.$refs.videoPlayer.pausePlayers();let n=null;if(!e&&this.booleanIsFilterApplied||this.objectMediaPlayerModeFilters.objectSeasonSelected||this.booleanIsPlaySeekerMode||this.booleanIsFilterApplied){const r={arrayPlayerQueue:[...this.playerQueue],stringModeTitle:this.stringModeTitle,numberPlaylistIndex:this.playlistIndex,numberPlaylistSeasonIndex:this.playlistSeasonIndex,booleanIsPlaySeekerMode:this.booleanIsPlaySeekerMode,numberMainSectionType:e,objectPlaySync:i};r.booleanIsFilterApplied=this.booleanIsFilterApplied,this.booleanIsFilterApplied&&(r.objectLastDataToFilter=this.objectLastDataToFilter),this.$store.commit("mediaModal/setModalInitialState",null),this.$store.commit("mediaModal/setObjectMediaData",r)}else n={seasonId:this.seasonId,tournaments:this.tournamentsForModalLauncher,categoryIds:[...this.currentCategories],mainSectionType:e,matchResult:[1,2,3],currentPlayIndex:this.playlistIndex,objectPlaySync:i},this.getPlayerId?this.isPlayerGoalkeeper?n.goalkeeperIds=[this.getPlayerId]:n.playerIds=[this.getPlayerId]:this.getTeamId&&(n.teamId=this.getTeamId),this.$store.commit("mediaModal/setObjectMediaData",null),this.$store.commit("mediaModal/setModalInitialState",n);this.$store.commit("mediaModal/setIsModalOpen",!0)},setUpResizeObserver(){if(window.ResizeObserver)this.mediaPlayerResizeObserver=new window.ResizeObserver(()=>{this.mediaPlayerWidth=this.$refs.mediaPlayer.clientWidth}),this.mediaPlayerResizeObserver.observe(this.$refs.mediaPlayer);else throw new Error("Resize observer not supported!")},onClickMyPlaylists(){this.isModalMode?this.$store.commit("mediaModal/setModalSectionSelected",2):this.onClickModalLauncher(2)},getEmptyMediaPlayerModeFilters(){return{objectTournamentSelected:null,objectSeasonSelected:null,stringQueryCategoryIds:"",stringQueryParams:"",objectFilters:{numberActionId:0,numberMediaPlayerType:null,objectCategorySelected:null,objectAdvancedFilters:{numberTeamId:null,numberPlayerId:null,arraySelectedSubcategoryIds:[],booleanRequiresRivalTransform:!1,numberCoordinatePoint:2,arrayPlayingAs:[],arrayTimeSections:[],arrayFieldSections:[]}}}},fillDataToFilterData(e){this.objectLastDataToFilter=e,this.arrayCategoriesIdsToFilter=e.arrayCategoriesIds,this.arrayRivalCategoriesIdsToFilter=e.arrayRivalCategoriesIds,this.arrayCategoriesIdsRaw=e.arrayCategoriesIdsRaw,this.objectMediaPlayerModeFilters.stringQueryCategoryIds=e.stringQueryCategoryIds,this.objectMediaPlayerModeFilters.stringQueryParams=e.stringQueryParams,this.objectMediaPlayerModeFilters.objectTournamentSelected=e.objectTournamentSelected,this.objectMediaPlayerModeFilters.objectSeasonSelected=e.objectSeasonSelected,this.objectMediaPlayerModeFilters.objectGameSelected=e.objectGameSelected,this.objectMediaPlayerModeFilters.objectFilters.numberMediaPlayerType=e.objectFilters.numberMediaPlayerType,this.objectMediaPlayerModeFilters.objectFilters.objectCategorySelected=e.objectFilters.objectCategorySelected,this.objectMediaPlayerModeFilters.objectFilters.numberActionId=e.objectFilters.numberActionId,this.objectMediaPlayerModeFilters.objectFilters.objectAdvancedFilters.numberTeamId=e.objectFilters.objectAdvancedFilters.numberTeamId,this.objectMediaPlayerModeFilters.objectFilters.objectAdvancedFilters.numberPlayerId=e.objectFilters.objectAdvancedFilters.numberPlayerId,this.objectMediaPlayerModeFilters.objectFilters.objectAdvancedFilters.booleanIsPlayerGoalKeeper=e.objectFilters.objectAdvancedFilters.booleanIsPlayerGoalKeeper,this.objectMediaPlayerModeFilters.objectFilters.objectAdvancedFilters.arraySelectedSubcategoryIds=e.objectFilters.objectAdvancedFilters.arraySelectedSubcategoryIds,this.objectMediaPlayerModeFilters.objectFilters.objectAdvancedFilters.booleanRequiresRivalTransform=e.objectFilters.objectAdvancedFilters.booleanRequiresRivalTransform,this.objectMediaPlayerModeFilters.objectFilters.objectAdvancedFilters.numberCoordinatePoint=e.objectFilters.objectAdvancedFilters.numberCoordinatePoint,this.objectMediaPlayerModeFilters.objectFilters.objectAdvancedFilters.arrayPlayingAs=e.objectFilters.objectAdvancedFilters.arrayPlayingAs,this.objectMediaPlayerModeFilters.objectFilters.objectAdvancedFilters.arrayTimeSections=e.objectFilters.objectAdvancedFilters.arrayTimeSections,this.objectMediaPlayerModeFilters.objectFilters.objectAdvancedFilters.arrayFieldSections=e.objectFilters.objectAdvancedFilters.arrayFieldSections,this.selectedType=e.numberSelectedType},onApplyFilters(e){this.stringModeTitle=`Estas viendo: ${e.stringControlsTitle}`,this.booleanIsPlaySeekerMode=!1,this.booleanIsFilterApplied=!0,this.fillDataToFilterData(e),this.playlistSeasonIndex=e.objectTournamentSelected.numberSeasonSelectedIndex,this.generatePlayerQueue(null,e.arrayFormattedPlays,!1,e.numberPlaylistIndex,!0)},onClickOptions(e){this.booleanIsOptionsMenuVisible=!0,this.numberOptionsMenuTop=e.numberY,this.numberOptionsMenuLeft=e.numberX},onClickOpenModes(){this.$refs.videoPlayer.pausePlayers(),this.booleanIsModesModalOpen=!0},onClickFullGame(e){this.booleanIsPlaySeekerMode=!1,this.booleanIsFilterApplied=!0;const t=e.arrayMatchDayGames.findIndex(a=>a.game_id===e.objectGame.game_id);t!==-1&&(this.stringModeTitle=`Estas viendo: ${e.stringControlsTitle}`,this.booleanIsPlaySeekerMode=!1,this.playerQueue=e.arrayMatchDayGames.map(a=>(a.homeTeam.name=a.homeTeam.colloquial_name,a.awayTeam.name=a.awayTeam.colloquial_name,{booleanIsFullGame:!0,objectGame:a,gameId:a.game_id,startSeconds:0,endSeconds:null})),this.$store.commit(`${this.storeModule}/setPlaylistIndex`,{mediaPlayerType:this.isModalMode?null:this.mediaPlayerType,playlistIndex:t}),this.$store.commit(`${this.storeModule}/setCurrentPlayerQueue`,this.playerQueue))},onModesModalClose(){this.booleanIsModesModalOpen=!1,this.onClickSpeed(1)},onClickMode(){this.$refs.videoPlayer.setSpeedToAllPlayers(1)},onClickSurpriseMe(){this.booleanIsFilterApplied=!1,this.booleanIsPlaySeekerMode=!0,this.fillPlaySeekerPlays()},getPlaySeekerCategoryName(e){if(e.categoryId===33)return"Fuera de lugar";if([35,54].includes(e.categoryId))return"Auto gol";{const t=this.allCategories.get(e.categoryId)||this.allCategories.get(`${e.categoryId}_r`)||this.extraCategories.get(e.categoryId)||this.extraCategories.get(`${e.categoryId}_r`);return t?t.name:"S/N"}},async setUpTokens(){try{const e=await(await fetch(`${this.firstInteractionUrl}/token`,{method:"POST",mode:"cors",headers:{Authorization:"Basic bXN1c2VyQWRtaW46bXN1c2VycGFzc3dvcmRBZG1pbg=="},referrerPolicy:"no-referrer"})).json();this.firstInteractionToken=e.token}catch(e){throw new Error(e)}},async fillPlaySeekerPlays(){try{if(this.stringModeTitle="Sorpréndeme",this.booleanIsPlaySeekerMode){const e=await(await fetch(`${this.firstInteractionUrl}/firstInteraction/${nEe}/${this.user.username}/playlist`,{method:"GET",headers:{Authorization:`Bearer ${this.firstInteractionToken}`},referrerPolicy:"no-referrer"})).json();e&&(this.setPlaySeekerUserId(e.user_id),this.setPlaySeekerCurrentSessionId(this.getPlaySeekerSessionId(this.playSeekerUserId)),this.$emit("change-user-id",this.playSeekerUserId),window.localStorage.setItem("playSeekerUserId",this.playSeekerUserId),this.formatPlaySeekerPlays(e))}}catch(e){throw new Error(e)}},formatPlaySeekerPlays(e){let t=[];e&&e.playlist&&e.playlist.length&&(t=e.playlist.reduce((i,n,r)=>{const o={...Object.entries(Ji).reduce((h,[p,m])=>(h[p]=n[m],h),{}),isPlaySeeker:!0,startSeconds:n[Ji.startTime],endSeconds:n[Ji.endTime],totalSeconds:Math.floor(n[Ji.endTime]-n[Ji.startTime]),payloadData:{play_id:n[Ji.playId],total_plays:e.total_plays,play_number:r+1,group_playlist_id:e.group_playlist_id,playlist_id:e.playlist_id,group_id:e.group_id,moment_of_play:n[Ji.momentOfPlay],play_type:n[Ji.categoryId],viewer_second_start:Math.floor(n[Ji.startTime]),intended_second_start:Math.floor(n[Ji.startTime]),intended_second_end:Math.floor(n[Ji.endTime]),latitude_of_user:null,longitude_of_user:null}},[l,c]=o.playerName.split(","),d=l.split(" ");let u="";for(const h of d)if(u+=` ${h}`,h.length>3)break;if(o.playerShortName=c&&l?`${c.trim().charAt(0)}.${u}`:"",!o.mainCategoryName){o.mainCategoryName=g0(this.getPlaySeekerCategoryName(o));const[h,p]=o.finalScore.split(" - ");o.arrayScore=[Number(h),Number(p)]}return i.push(o),i},[]));let a=[];this.concatPlays?a=[...this.playerQueue.splice(0,this.currentPlayIndex+1),...t]:a=t,this.playerQueue=a,this.objectPlaySeekerLastPlay&&this.objectPlaySeekerLastPlay.playListId===e.playlist_id&&this.objectPlaySeekerLastPlay.groupPlayListId===e.group_playlist_id&&this.objectPlaySeekerLastPlay.groupId===e.group_id&&this.$store.commit(`${this.storeModule}/setPlaylistIndex`,{mediaPlayerType:this.isModalMode?null:this.mediaPlayerType,playlistIndex:this.objectPlaySeekerLastPlay.playIndex}),this.$store.commit(`${this.storeModule}/setCurrentPlayerQueue`,this.playerQueue)},getPlaySeekerSessionId(e){return e?`S_${e}${Date.now()}`:null},getRandomPercentage(){return Math.floor(Math.random()*60+20)},async sendUserBehavior(e,t,a){try{if(this.playInfo.isPlaySeeker){const i={user_id:this.playSeekerUserId,current_session_id:this.playSeekerCurrentSessionId,last_play:{...this.playInfo.payloadData}};i&&(i.last_play.action=t,i.last_play.percentage_viewed=t===1?100:this.getRandomPercentage(),i.last_play.viewer_second_end=e||this.playInfo.endSeconds,i.last_play.date_time_of_user_action=a,this.coords&&(i.last_play.latitude_of_user=this.coords.latitude,i.last_play.longitude_of_user=this.coords.latitude));const n=await fetch(`${this.userBehaviorUrl}/user-behavior`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(i)});if(n.status===200){const r=await n.json();r&&(this.concatPlays=!0,this.formatPlaySeekerPlays(r))}else this.concatPlays=!1}}catch(i){throw new Error(i)}},onGeoSuccess(e){this.coords=e.coords},onGeoError(e){throw new Error(e)},onClickTimeButton(e){e.numberType===1?this.$refs.videoPlayer.addSecondsToCurrentPlayer(e.numberValue*e.numberValueFactor):e.numberType===2?this.booleanIsSpeedModalVisible=!0:this.booleanIsVideoPlayerPlaying?this.$refs.videoPlayer.pausePlayers():this.$refs.videoPlayer.playCurrentPlayer()},onClickOption(e){this.$refs.videoPlayer.pausePlayers(),e===1?lp.emit("click-game",{gameId:this.playInfo.gameId,gameStatus:1,dateTimeUTC:new Date(this.playInfo.dateTimeMillis).toISOString(),seasonId:this.playInfo.seasonId,stringSectionName:"lineups"}):e===2?this.onClickDownload():e===3?(this.setPlaysToSaveAsFavorites([this.playInfo.playRaw]),this.setIsModalCreatePlayListOpen(!0)):e===4&&(this.isModalMode?this.$emit("show-list"):this.onClickModalLauncher())},onClickNextBack(e){this.$refs.videoPlayer.onMoveToPlayClicked(e)},onPlayIteration({iterationTime:e,userAction:t,dateTimeIsoString:a}){this.booleanIsPlaySeekerMode&&this.sendUserBehavior(e,t,a)},onClickAnalyst(){this.onClickModalLauncher()},onClickFullscreen(){this.isCarouselFullScreenVisible=!0},onChangeSeason(e){this.numberCurrentSeasonId=Number(e),this.isAutoPlay=!1,this.objectMediaPlayerModeFilters=this.getEmptyMediaPlayerModeFilters(),this.setUpData(e)},onUpdateSearchResult(e){this.lastSearchResult=e,this.setUpData(e.seasonId)},onClickClose(){this.$emit("close")},onClickCloseCarousel(e){e&&this.$store.commit("mediaModal/setPlaylistIndex",{mediaPlayerType:null,playlistIndex:e}),this.isCarouselFullScreenVisible=!1},getPlayerOptions(){return{playbackRates:[.5,1,1.5,2],autoplay:!1,controls:!0,controlBar:{children:["playToggle","volumePanel","playbackRateMenuButton","CurrentTimeDisplay","progressControl","remainingTimeDisplay","fullscreenToggle"],pictureInPictureToggle:!1,volumePanel:{inline:!1}},liveui:!0,preload:"auto",fluid:!0}},videoJsInit(){fe.registerPlugin("offset",W2),this.videojsLocal=fe}},async created(){try{this.videoJsInit(),Ci.defaults.headers.common.Authorization=this.token,this.modalInitialData&&this.$store.commit("mediaModal/setModalInitialState",this.modalInitialData),lp.on("change-season",this.onChangeSeason),await this.setUpTokens(),lp.on("some-list-selected",()=>{this.isSomeListSelected=!0}),this.autoFillVideos&&await this.$store.dispatch(`${this.storeModule}/fetchTournaments`)}catch(e){throw new Error(e)}},mounted(){this.isModalMode?setTimeout(()=>{this.modalInitialState?(this.objectPlaySync=this.modalInitialState.objectPlaySync?{...this.modalInitialState.objectPlaySync,booleanIsApplied:!1}:null,this.setUpData(this.modalInitialState.seasonId),this.onTypeChanged(this.modalInitialState.playListType),this.$store.commit("mediaModal/setModalSectionSelected",this.modalInitialState.mainSectionType||1),this.stringModeTitle=`Estas viendo: ${this.modalInitialState.teamId?"Resumen de equipo":this.modalInitialState.playerIds&&this.modalInitialState.playerIds.length?"Resumen de jugador":this.modalInitialState.gameIds&&this.modalInitialState.gameIds.length?"Resumen de partido":""}`):this.objectMediaData&&(this.$store.commit("mediaModal/setModalSectionSelected",1),this.applyObjectMediaData())},100):this.seasonSelectedId&&this.tournamentsForMediaPlayer.size>0&&(this.setUpData(this.seasonSelectedId),this.setInitialTitle()),setTimeout(()=>{this.setUpResizeObserver()},1e3)},beforeUnmount(){this.isSomeListSelected=!1,this.mediaPlayerResizeObserver&&(this.mediaPlayerResizeObserver.disconnect(),this.mediaPlayerResizeObserver=null),this.$store.commit(`${this.storeModule}/setPlayer`,null),this.$store.commit(`${this.storeModule}/setTeam`,null),this.setPlaylistGameId(0)}},qA=()=>{s.useCssVars(e=>({"35a7d400":e.backgroundColor}))},WA=iv.setup;iv.setup=WA?(e,t)=>(qA(),WA(e,t)):qA;const gu=e=>(s.pushScopeId("data-v-5dcd2d74"),e=e(),s.popScopeId(),e),rEe={class:"modal-video__videos"},sEe=gu(()=>s.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},[s.createElementVNode("path",{d:"M5 15L15 5",stroke:"white","stroke-width":"1.7","stroke-miterlimit":"10","stroke-linecap":"round","stroke-linejoin":"round"}),s.createElementVNode("path",{d:"M15 15L5 5",stroke:"white","stroke-width":"1.7","stroke-miterlimit":"10","stroke-linecap":"round","stroke-linejoin":"round"})],-1)),oEe=[sEe],lEe={class:"modal-video__videos__search-and-filters"},cEe={class:"modal-video__search-and-filters__search"},dEe={class:"modal-video__search-and-filters__advanced"},uEe={class:"modal-video__videos__video"},hEe={key:1,class:"modal-video__detail"},pEe={class:"modal-video__img-container"},mEe=["src"],fEe={class:"modal-video__img-container overlap"},gEe=["src"],yEe={class:"modal-video__description"},_Ee={key:2,class:"modal-video__date"},bEe={class:"discover-container"},vEe=gu(()=>s.createElementVNode("div",{class:"title-value"},"Descubre videos",-1)),SEe={class:"modal-video__matches"},wEe={class:"current-match-info"},TEe=gu(()=>s.createElementVNode("h4",null,"Estás viendo:",-1)),CEe={key:0},kEe={class:"modal-video__game-list"},EEe=gu(()=>s.createElementVNode("div",{class:"modal-video__game-list__title"},"Otros partidos",-1)),IEe={class:"discover-videos"},xEe=gu(()=>s.createElementVNode("div",{class:"title-value"},"Descubre videos",-1));function NEe(e,t,a,i,n,r){const o=s.resolveComponent("CarouselFullScreen"),l=s.resolveComponent("VideoSearch"),c=s.resolveComponent("SearchFilters"),d=s.resolveComponent("VideoPlayer"),u=s.resolveComponent("VideoPlayerControls"),h=s.resolveComponent("GscSwitchComponent"),p=s.resolveComponent("GSCPlayerTeamGame"),m=s.resolveComponent("CurrentMatch"),f=s.resolveComponent("MatchesList");return s.openBlock(),s.createElementBlock(s.Fragment,null,[n.isCarouselFullScreenVisible?(s.openBlock(),s.createBlock(o,{key:0,videojs:n.videojsLocal,"player-queue":r.carouselPlayerQueue,"playlist-index":r.playlistIndex,"initial-play":n.playInfo,onClose:r.onClickCloseCarousel},null,8,["videojs","player-queue","playlist-index","initial-play","onClose"])):s.createCommentVNode("",!0),s.createElementVNode("div",{ref:"mediaPlayer",class:s.normalizeClass(["modal-video",r.dynamicClasses])},[s.createElementVNode("div",rEe,[a.isModal?(s.openBlock(),s.createElementBlock("div",{key:0,class:"modal-video__close",onClick:t[0]||(t[0]=(...b)=>r.onClickClose&&r.onClickClose(...b))},oEe)):s.createCommentVNode("",!0),s.createElementVNode("div",lEe,[s.createElementVNode("div",cEe,[s.createVNode(l,{"onUpdate:searchResult":r.onUpdateSearchResult,clientWidth:this.mediaPlayerWidth},null,8,["onUpdate:searchResult","clientWidth"])]),s.createElementVNode("div",dEe,[s.createVNode(c,{onApplyFilters:r.onApplyFilters,clientWidth:this.mediaPlayerWidth},null,8,["onApplyFilters","clientWidth"])])]),s.createElementVNode("div",uEe,[s.createVNode(d,{ref:"videoPlayer","player-queue":n.playerQueue,"is-v2":"","is-gs":"","is-from-mexico":a.isFromMexico,"is-gs-user":a.isGSUser,"container-width":n.mediaPlayerWidth,"game-id-selected":n.gameIdSelected,"is-first-row":!1,"plays-type-selected":n.selectedType,"is-auto-play":n.isAutoPlay,"is-modal-mode":a.isModalMode,"are-types-hidden":r.isSummaryData||r.isMyPlaylistsActive,"is-play-seeker-mode":n.booleanIsPlaySeekerMode,"play-sync":n.objectPlaySync,onPlayIteration:r.onPlayIteration,onPlaying:r.onPlaying,onPlayChanged:r.onPlayChanged,onMaxInactivityReached:r.onMaxInactivityReached,onPlaylistEnded:r.onPlaylistEnded,onChangeType:r.onTypeChanged,onPlay:t[1]||(t[1]=b=>n.booleanIsVideoPlayerPlaying=!0),onPause:t[2]||(t[2]=b=>n.booleanIsVideoPlayerPlaying=!1),onClickFullScreen:r.onClickFullscreen},null,8,["player-queue","is-from-mexico","is-gs-user","container-width","game-id-selected","plays-type-selected","is-auto-play","is-modal-mode","are-types-hidden","is-play-seeker-mode","play-sync","onPlayIteration","onPlaying","onPlayChanged","onMaxInactivityReached","onPlaylistEnded","onChangeType","onClickFullScreen"]),s.createVNode(u,{"play-info":n.playInfo,onClickNextBack:r.onClickNextBack,clientWidth:this.mediaPlayerWidth},null,8,["play-info","onClickNextBack","clientWidth"])]),n.playInfo&&n.playInfo.objectHomeTeam?(s.openBlock(),s.createElementBlock("div",hEe,[s.createElementVNode("div",pEe,[s.createElementVNode("img",{class:"modal-video__img",src:n.playInfo.teamLogo},null,8,mEe)]),s.createElementVNode("div",fEe,[s.createElementVNode("img",{class:"modal-video__img",src:n.playInfo.playerPhoto},null,8,gEe)]),s.createElementVNode("div",yEe,s.toDisplayString(n.playInfo.objectHomeTeam.acronym)+" "+s.toDisplayString(n.playInfo.arrayScore[0])+" : "+s.toDisplayString(n.playInfo.arrayScore[1])+" "+s.toDisplayString(n.playInfo.objectAwayTeam.acronym)+" I "+s.toDisplayString(n.playInfo.roundAbbreviation)+" "+s.toDisplayString(n.playInfo.tvStations||""),1)])):s.createCommentVNode("",!0),!n.mobileClass&&n.playInfo?(s.openBlock(),s.createElementBlock("div",_Ee,s.toDisplayString(n.playInfo.date),1)):s.createCommentVNode("",!0),s.createElementVNode("div",bEe,[vEe,n.mobileClass?(s.openBlock(),s.createBlock(h,{key:0,buttons:["Estás viendo","Otros partidos","Descubre videos"],class:"current-match__tabs",selectedOption:n.currentMobileTab,arrow:!1,borderRadius:"32px",height:"28px",fontSize:"11px;",backgroundOptionActive:"transparent",onInput:t[3]||(t[3]=b=>n.currentMobileTab=b)},null,8,["selectedOption"])):s.createCommentVNode("",!0),a.section?(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[s.createVNode(h,{style:{"margin-left":"25px"},buttons:["Resumen","Proximo rival"],onInput:t[4]||(t[4]=b=>n.currentTabMoreVideos=b),background:"trasparent",height:"28px",width:"160px","font-family":"Poppins-Regular",type:2,arrow:!1,selectedOption:n.currentTabMoreVideos},null,8,["selectedOption"]),this.user.is_player?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[n.currentTabMoreVideos=="Resumen"?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[!n.mobileClass||n.currentMobileTab==="Resumen"?(s.openBlock(),s.createBlock(p,{key:0,type:8,style:{"margin-top":"-30px"},title:"",backgroundColor:"#172531",data:{season:a.user.season,player:a.user.player,category:1255e3},width:"100%"},null,8,["data"])):s.createCommentVNode("",!0)],64)):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[!n.mobileClass||n.currentMobileTab==="Resumen"?(s.openBlock(),s.createBlock(p,{key:0,type:8,style:{"margin-top":"-30px"},title:"",backgroundColor:"#172531",data:{season:a.user.season,player:a.user.player,category:1255e3},width:"100%"},null,8,["data"])):s.createCommentVNode("",!0)],64))],64)):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[n.currentTabMoreVideos=="Resumen"?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[!n.mobileClass||n.currentMobileTab==="Resumen"?(s.openBlock(),s.createBlock(p,{key:0,type:7,title:"",style:{"margin-top":"-30px"},backgroundColor:"#172531",data:{season:a.user.season,team:a.user.team,category:1255e3},width:"100%"},null,8,["data"])):s.createCommentVNode("",!0)],64)):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[!n.mobileClass||n.currentMobileTab==="Resumen"?(s.openBlock(),s.createBlock(p,{key:0,type:7,style:{"margin-top":"-30px"},title:"",backgroundColor:"#172531",data:{season:a.user.season,team:0,category:1255e3},width:"100%"},null,8,["data"])):s.createCommentVNode("",!0)],64))],64))],64)):(s.openBlock(),s.createElementBlock(s.Fragment,{key:2},[!n.mobileClass||n.currentMobileTab==="Resumen"?(s.openBlock(),s.createBlock(p,{key:0,style:{"margin-top":"-30px"},type:13,data:{season:a.user.season,category:1255e3},width:"100%",backgroundColor:"#172531",title:""},null,8,["data"])):s.createCommentVNode("",!0)],64))])]),s.createElementVNode("div",SEe,[s.createElementVNode("div",wEe,[n.mobileClass?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[TEe,n.playInfo?(s.openBlock(),s.createElementBlock("h3",CEe,s.toDisplayString(n.playInfo.mainCategoryName),1)):s.createCommentVNode("",!0)],64)),r.currentMatch&&(!n.mobileClass||n.currentMobileTab==="Estás viendo")?(s.openBlock(),s.createBlock(m,{key:1,currentMatch:r.currentMatch,mobileClass:"",clientWidth:this.mediaPlayerWidth},null,8,["currentMatch","clientWidth"])):s.createCommentVNode("",!0)]),s.createElementVNode("div",kEe,[EEe,!n.mobileClass||n.currentMobileTab==="Otros partidos"?(s.openBlock(),s.createBlock(f,{key:0,matches:e.currentPlayerQueueByGames,mobileClass:"",clientWidth:this.mediaPlayerWidth},null,8,["matches","clientWidth"])):s.createCommentVNode("",!0)])]),s.createElementVNode("div",IEe,[xEe,n.mobileClass?(s.openBlock(),s.createBlock(h,{key:0,buttons:["Estás viendo","Otros partidos","Descubre videos"],class:"current-match__tabs",selectedOption:n.currentMobileTab,arrow:!1,borderRadius:"32px",height:"28px",fontSize:"11px;",backgroundOptionActive:"transparent",onInput:t[5]||(t[5]=b=>n.currentMobileTab=b)},null,8,["selectedOption"])):s.createCommentVNode("",!0),a.section?(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[s.createVNode(h,{style:{"margin-left":"25px"},buttons:["Resumen","Proximo rival"],onInput:t[6]||(t[6]=b=>n.currentTabMoreVideos=b),background:"trasparent",height:"28px",width:"160px","font-family":"Poppins-Regular",type:2,arrow:!1,selectedOption:n.currentTabMoreVideos},null,8,["selectedOption"]),this.user.is_player?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[n.currentTabMoreVideos=="Resumen"?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[!n.mobileClass||n.currentMobileTab==="Resumen"?(s.openBlock(),s.createBlock(p,{key:0,type:8,style:{"margin-top":"-30px"},title:"",backgroundColor:"#172531",data:{season:a.user.season,player:a.user.player,category:1255e3},width:"100%"},null,8,["data"])):s.createCommentVNode("",!0)],64)):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[!n.mobileClass||n.currentMobileTab==="Resumen"?(s.openBlock(),s.createBlock(p,{key:0,type:8,style:{"margin-top":"-30px"},title:"",backgroundColor:"#172531",data:{season:a.user.season,player:a.user.player,category:1255e3},width:"100%"},null,8,["data"])):s.createCommentVNode("",!0)],64))],64)):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[n.currentTabMoreVideos=="Resumen"?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[!n.mobileClass||n.currentMobileTab==="Resumen"?(s.openBlock(),s.createBlock(p,{key:0,type:7,title:"",style:{"margin-top":"-30px"},backgroundColor:"#172531",data:{season:a.user.season,team:a.user.team,category:1255e3},width:"100%"},null,8,["data"])):s.createCommentVNode("",!0)],64)):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[!n.mobileClass||n.currentMobileTab==="Resumen"?(s.openBlock(),s.createBlock(p,{key:0,type:7,style:{"margin-top":"-30px"},title:"",backgroundColor:"#172531",data:{season:a.user.season,team:0,category:1255e3},width:"100%"},null,8,["data"])):s.createCommentVNode("",!0)],64))],64))],64)):(s.openBlock(),s.createElementBlock(s.Fragment,{key:2},[!n.mobileClass||n.currentMobileTab==="Resumen"?(s.openBlock(),s.createBlock(p,{key:0,style:{"margin-top":"-30px"},type:13,data:{season:a.user.season,category:1255e3},width:"100%",backgroundColor:"#172531",title:""},null,8,["data"])):s.createCommentVNode("",!0)],64))])],2)],64)}const AEe=_t(iv,[["render",NEe],["__scopeId","data-v-5dcd2d74"]]);Kye();const PEe={class:"container"},OEe=!1,BEe=ri({__name:"GSCMediaPlayer",setup(e){const t=s.ref("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE");vc.defaults.headers.common.Authorization=t.value;const a=[{_id:44,seasons:[{name:"Clausura 2023",related_seasons:[{type:1,id:1752}],id:1713,type:0},{name:"Apertura 2022",related_seasons:[{type:1,id:1592}],id:1542,type:0},{name:"Grita Mexico C22",related_seasons:[{type:1,id:1521}],id:1486,type:0}],tournament:{show_logos:0,tournament_type:0,name:"Sub-20",logo:null,id:44,tournament_status:0,order:5}},{_id:1095,seasons:[{name:"Apertura 2023",related_seasons:[{type:1,id:1831}],id:1783,type:0},{name:"Clausura 2023",related_seasons:[{type:1,id:1750}],id:1715,type:0},{name:"Apertura 2022",related_seasons:[{type:1,id:1652}],id:1541,type:0},{name:"Grita Mexico C22",related_seasons:[{type:1,id:1527}],id:1488,type:0}],tournament:{show_logos:0,tournament_type:0,name:"Sub-16",logo:null,id:1095,tournament_status:0,order:7}},{_id:1001,seasons:[{name:"Clausura 2024",related_seasons:[],id:1838,type:0},{name:"Apertura 2023",related_seasons:[{type:1,id:1825}],id:1777,type:0},{name:"Clausura 2023",related_seasons:[{type:1,id:1747}],id:1696,type:0},{name:"Apertura 2022",related_seasons:[{type:1,id:1655}],id:1539,type:0},{name:"Grita Mexico C22",related_seasons:[{type:1,id:1523}],id:1485,type:0},{name:"Grita Mexico A21",related_seasons:[{type:1,id:1458}],id:1402,type:0},{name:"Guard1anes Clausura 2021",related_seasons:[{type:1,id:1384}],id:1323,type:0},{name:"Guard1anes 2020",related_seasons:[{type:1,id:1318}],id:1283,type:0},{name:"Clausura 2020",related_seasons:[],id:1241,type:0},{name:"Apertura 2019",related_seasons:[{type:1,id:1227}],id:1157,type:0},{name:"Clausura 2019",related_seasons:[{type:1,id:1132}],id:1095,type:0},{name:"Apertura 2018",related_seasons:[{type:1,id:1072}],id:1004,type:0},{name:"Clausura 2018",related_seasons:[{type:1,id:1237}],id:1236,type:0}],tournament:{show_logos:1,tournament_type:0,name:"Liga MX Femenil",logo:"https://az755631.vo.msecnd.net/tournaments/femenil_mx.png",id:1001,tournament_status:0,order:2}},{_id:1143,seasons:[{name:"Apertura 2023",related_seasons:[{type:1,id:1829}],id:1785,type:0}],tournament:{show_logos:0,tournament_type:0,name:"Sub-23",logo:null,id:1143,tournament_status:0,order:4}},{_id:1,seasons:[{name:"Clausura 2024",related_seasons:[],id:1836,type:0},{name:"Apertura 2023",related_seasons:[{type:2,id:1826},{type:1,id:1827}],id:1772,type:0},{name:"Clausura 2023",related_seasons:[{type:2,id:1745},{type:1,id:1746}],id:1694,type:0},{name:"Apertura 2022",related_seasons:[{type:2,id:1591},{type:1,id:1594}],id:1535,type:0},{name:"Grita Mexico C22",related_seasons:[{type:2,id:1520},{type:1,id:1525}],id:1476,type:0},{name:"Grita Mexico A21",related_seasons:[{type:2,id:1446},{type:1,id:1456}],id:1401,type:0},{name:"Guard1anes Clausura 2021",related_seasons:[{type:2,id:1382},{type:1,id:1383}],id:1325,type:0},{name:"Guard1anes 2020",related_seasons:[{type:2,id:1311},{type:1,id:1316}],id:1275,type:0},{name:"Clausura 2020",related_seasons:[],id:1239,type:0},{name:"Apertura 2019",related_seasons:[{type:1,id:1231}],id:1155,type:0},{name:"Clausura 2019",related_seasons:[{type:1,id:1135}],id:1093,type:0},{name:"Apertura 2018",related_seasons:[{type:1,id:1075}],id:1002,type:0}],tournament:{show_logos:1,tournament_type:0,name:"Liga MX",logo:"https://az755631.vo.msecnd.net/tournaments/liga_mx.png",id:1,tournament_status:0,order:1}},{_id:1071,seasons:[{name:"Clausura 2024",related_seasons:[],id:1837,type:0},{name:"Apertura 2023",related_seasons:[{type:2,id:1822},{type:1,id:1828}],id:1776,type:0},{name:"Clausura 2023",related_seasons:[{type:2,id:1742},{type:1,id:1748}],id:1695,type:0},{name:"Apertura 2022",related_seasons:[{type:2,id:1598},{type:1,id:1618}],id:1544,type:0},{name:"Grita Mexico C22",related_seasons:[{type:2,id:1515},{type:1,id:1519}],id:1484,type:0},{name:"Grita Mexico A21",related_seasons:[{type:2,id:1454},{type:1,id:1463}],id:1408,type:0},{name:"Guard1anes Clausura 2021",related_seasons:[{type:2,id:1378},{type:1,id:1380}],id:1327,type:0},{name:"Guard1anes 2020",related_seasons:[{type:2,id:1315},{type:1,id:1317}],id:1287,type:0}],tournament:{show_logos:1,tournament_type:0,name:"Liga Expansion MX",logo:"https://az755631.vo.msecnd.net/tournaments/expansion_mx.png",id:1071,tournament_status:0,order:3}},{_id:1096,seasons:[{name:"Apertura 2023",related_seasons:[{type:1,id:1830}],id:1782,type:0},{name:"Clausura 2023",related_seasons:[{type:1,id:1751}],id:1714,type:0},{name:"Apertura 2022",related_seasons:[{type:1,id:1593}],id:1543,type:0},{name:"Grita Mexico C22",related_seasons:[{type:1,id:1522}],id:1487,type:0}],tournament:{show_logos:0,tournament_type:0,name:"Sub-18",logo:null,id:1096,tournament_status:0,order:6}}],i={token:"",token_b2c:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MjQyNTQsIm5hbWUiOiJHb2xTdGF0cyIsInVzZXJuYW1lIjoiZ29sdGVzdGluZyIsImVtYWlsIjoiIiwicHJvdmlkZXJfaWQiOjEsImxvZ2luX2dvbHN0YXRzIjoxLCJpYXQiOjE3MDA3ODkyNTcsImV4cCI6MTczMjMyNTI1N30.4iVGU3Q8rcNFRkYiPEmEYj1pB_UoYr1L5virEIpmGhs",id:24254,username:"goltesting",name:"GolStats",team:1,player:0,tournament:1,type_system:"presidents",language:"es",active_time:1,season:1772,is_player:0,related_seasons:[],is_goalkeeper:0,show_dashboard:1,user_type:1,premiumAccount:!0,userType:1,accessVideos:!0,sessionExpiration:1701869305930},n=s.computed(()=>a.reduce((r,o)=>{const l={...o.tournament,seasons:o.seasons};return l.seasons.forEach(c=>{r.set(c.id,l)}),r},new Map));return(r,o)=>(s.openBlock(),s.createElementBlock("div",PEe,[s.createVNode(s.unref(AEe),{"season-selected-id":1772,user:i,section:OEe,token:t.value,"tournaments-for-media-player":n.value,"background-color":""},null,8,["token","tournaments-for-media-player"])]))}},[["__scopeId","data-v-6fdc2bb3"]]),DEe={PO1:"CFI",PO2:"CFV",PO3:"SFI",PO4:"SFV",PO5:"FI",PO6:"FV"},LEe={DF:"Dieciseisavos",OF:"Octavos",CF:"Cuartos",SF:"Semifinales","3ER":"Tercer lugar",FINAL:"Final"},MEe={4:"Octavos",5:"Cuartos",6:"Semifinales",7:"Final"},REe=(e,t)=>{const a=e.__vccOpts||e;for(const[i,n]of t)a[i]=n;return a},nv={props:{type:{type:Number,default:0},value:{type:Boolean,default:!1},textValue:String,icon:String,iconPosition:{type:String,default:"left"},iconSize:String,fontColor:{type:String,default:"#FFFFFF"},textDecoration:String,fontSize:{type:String,default:"16px"},fontSizeStat:{type:String,default:"16px"},fontStyle:String,fontFamily:{type:String,default:"Poppins-Regular"},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},borderRadius:{type:String,default:"0px"},borderType:{type:String,default:"solid"},borderWidth:{type:Number,default:0},borderWidthBtn:{type:String,default:"2px"},borderColor:String,backgroundColor:{type:String,default:"none"},activeBackgroundColor:{type:String,default:"#000000"},activeBorderWidth:{type:Number,default:2},activeBorderType:{type:String,default:"solid"},activeBorderColor:{type:String,default:"#cbee6b"},activeColorText:{type:String,default:"#FFFFFF"},cursorType:{type:String,default:"default"},typeOnOff:{type:Boolean,default:!1},textCategory:String,textStat:String,marginLeftStat:{type:String,default:"15%"}},watch:{value:{deep:!0,immediate:!0,handler(e){this.status=e}}},data(){return{status:!1}},computed:{customStyle(){return{height:this.height,width:this.width,backgroundColor:this.backgroundColor,borderRadius:this.borderRadius,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`,color:this.fontColor,textDecoration:this.textDecoration,cursor:this.cursorType,fontSize:this.fontSize,fontStyle:this.fontStyle,fontFamily:`${this.fontFamily} !important`}},customActive(){return{backgroundColor:this.activeBackgroundColor,color:this.activeColorText,border:`${this.activeBorderType} ${this.activeBorderWidth}px ${this.activeBorderColor}`}}},methods:{btnClick(e){this.$emit("click",e),this.typeOnOff&&(this.status=!this.status,this.$emit("status",this.status))}}},GA=()=>{s.useCssVars(e=>({"1c960139":e.height,b2f635d8:e.borderWidthBtn,"06e99898":e.borderType,"55555c76":e.borderColor,"23b6d320":e.borderRadius,"22c97374":e.width,"22bb09fa":e.backgroundColor,c148da7c:e.cursorType,cce756fc:e.fontSize,cff98d60:e.fontStyle,"5123b3a5":e.fontFamily,"47bf58db":e.marginLeftStat,cadc8414:e.fontSizeStat}))},KA=nv.setup;nv.setup=KA?(e,t)=>(GA(),KA(e,t)):GA;const FEe=e=>(s.pushScopeId("data-v-fb269a1e"),e=e(),s.popScopeId(),e),VEe=["src"],UEe={key:1,class:"text"},jEe=["src"],zEe={class:"stats"},HEe=FEe(()=>s.createElementVNode("img",{class:"iconstats",src:"https://az755631.vo.msecnd.net/todoelfut/playdes.png"},null,-1)),qEe={class:"numstats"},WEe={class:"leyend"};function GEe(e,t,a,i,n,r){return s.openBlock(),s.createElementBlock("div",null,[a.type==0?(s.openBlock(),s.createElementBlock("div",{key:0,class:s.normalizeClass(["button",n.status&&a.typeOnOff&&"button-active"]),style:s.normalizeStyle([r.customStyle,n.status&&a.typeOnOff&&r.customActive]),onClick:t[0]||(t[0]=(...o)=>r.btnClick&&r.btnClick(...o))},[a.icon&&a.iconPosition.toLowerCase()==="left"?(s.openBlock(),s.createElementBlock("img",{key:0,class:"icon",style:s.normalizeStyle({width:a.iconSize}),src:a.icon},null,12,VEe)):s.createCommentVNode("",!0),a.textValue?(s.openBlock(),s.createElementBlock("div",UEe,s.toDisplayString(a.textValue),1)):s.createCommentVNode("",!0),a.icon&&a.iconPosition.toLowerCase()==="right"?(s.openBlock(),s.createElementBlock("img",{key:2,class:"icon",style:s.normalizeStyle({width:a.iconSize}),src:a.icon},null,12,jEe)):s.createCommentVNode("",!0)],6)):s.createCommentVNode("",!0),a.type==1?(s.openBlock(),s.createElementBlock("div",{key:1,class:"button-target",onClick:t[1]||(t[1]=(...o)=>r.btnClick&&r.btnClick(...o))},[s.createElementVNode("div",zEe,[HEe,s.createElementVNode("div",qEe,s.toDisplayString(a.textStat),1)]),s.createElementVNode("div",WEe,s.toDisplayString(a.textCategory),1)])):s.createCommentVNode("",!0)])}const KEe=REe(nv,[["render",GEe],["__scopeId","data-v-fb269a1e"]]),XEe={class:"gsc-dropdown__main-container__item-selected"},JEe=["height","width"],YEe=["stroke"],QEe={class:"gsc-dropdown__items-container"},ZEe=["onClick"],$Ee={key:0,class:"gsc-dropdown__items-footer"},e5e={__name:"GSC-Dropdown",props:{modelValue:{type:[Object,Number,String],default:()=>null},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},fontSize:{type:String,default:"14px"},borderRadius:{type:Number,default:5},arrowHeight:{type:Number,default:24},arrowWidth:{type:Number,default:24},borderType:{type:String,default:"solid",validator:function(e){return["solid","dotted","dashed"].includes(e)}},borderWidth:{type:Number,default:1},borderColor:{type:String,default:"black"},backgroundColor:{type:String,default:"grey"},color:{type:String,default:"black"},arrowColor:{type:String,default:"#CBEE6B"},items:{type:Array,default:()=>[]},defaultItemByIndex:{type:Number,default:0},defaultItemByProp:{type:Object,default:null,validator:e=>["propName","value"].every(t=>t in e)},listBackgroundColor:{type:String,default:"white"},hoverBackgroundColor:{type:String,default:"#f1f1f1"},listItemPadding:{type:String,default:"10px 12px"},listHeight:{type:String,default:"fit-content"},listItemSelectedColor:{type:String,default:"white"},listItemSelectedBackgroundColor:{type:String,default:"#399cfd"},listItemColor:{type:String,default:"black"},listBorderRadius:{type:String,default:"0"},listBorderColor:{type:String,default:""},listBorderWidth:{type:Number,default:1},isListSameWidth:{type:Boolean,default:!1},isMultipleOption:{type:Boolean,default:!1},footerBorderColor:{type:String,default:"#626970"},footerBorderWidth:{type:Number,default:1},isFooterVisible:{type:Boolean,default:!1},isDisabled:{type:Boolean,default:!1},onlyFirstTime:{type:Boolean,default:!1}},emits:["input","click-ready","update:modelValue"],setup(e,{emit:t}){const a=e,i=s.ref({}),n=s.ref(a.isMultipleOption?-1:0),r=s.ref(!1);s.watch(()=>a.items,(h,p)=>{if(!a.modelValue&&(!a.onlyFirstTime||!p||!p.length)&&h&&h.length){if(a.defaultItemByProp){const m=a.items.findIndex(f=>f[a.defaultItemByProp.propName]===a.defaultItemByProp.value);m!==-1?(n.value=m,i.value=h[m]):(n.value=0,i.value=h[0])}else i.value=h[a.defaultItemByIndex];t("input",i.value)}},{immediate:!0}),s.watch(()=>a.modelValue,h=>{if(h){const p=a.items.findIndex(m=>typeof h=="object"?JSON.stringify(m)===JSON.stringify(h):m===h);p!==-1&&(n.value=p,i.value=a.items[p],t("update:modelValue",i.value))}},{immediate:!0});const o=s.computed(()=>({height:a.height,width:a.width,backgroundColor:a.backgroundColor,borderRadius:`${a.borderRadius}px`,border:`${a.borderType} ${a.borderWidth}px ${a.borderColor}`,color:a.color,"--hover-background-color":a.hoverBackgroundColor,"--list-item-padding":a.listItemPadding,"--list-background-color":a.listBackgroundColor,"--list-height":a.listHeight,"--list-item-selected-color":a.listItemSelectedColor,"--list-item-selected-background-color":a.listItemSelectedBackgroundColor,"--list-item-color":a.listItemColor,"--list-border-radius":`${a.listBorderRadius}`,"--list-border-color":a.listBorderColor,"--list-width":a.isListSameWidth?a.width:"fit-content","--list-border-width":`${a.listBorderWidth}px`,"--footer-border":`${a.footerBorderWidth}px solid ${a.footerBorderColor}`,"--dropdown-opacity":a.isDisabled?"0.5":"1","--dropdown-cursor":a.isDisabled?"not-allowed":"pointer","--dropdown-font-size":a.fontSize?a.fontSize:"14px"})),l=s.computed(()=>({height:`${a.arrowHeight}px`,width:`${a.arrowWidth}px`}));function c(){a.isDisabled||(r.value=!r.value)}function d(h,p){a.isMultipleOption?n.value=-1:(n.value=p,r.value=!1),i.value=h,t("input",i.value),t("update:modelValue",i.value)}function u(){r.value=!1,t("click-ready")}return(h,p)=>(s.openBlock(),s.createElementBlock("div",{class:"gsc-dropdown",style:s.normalizeStyle(o.value)},[s.createElementVNode("div",{class:"gsc-dropdown__main-container",style:s.normalizeStyle({"padding-right":`${e.arrowWidth+8}px`}),onClick:c},[s.createElementVNode("div",XEe,[s.renderSlot(h.$slots,"default",{selectedItem:i.value})]),s.createElementVNode("div",{class:s.normalizeClass(["gsc-dropdown__main-container__icon",{"rotated-180":r.value}]),style:s.normalizeStyle(l.value)},[(s.openBlock(),s.createElementBlock("svg",{height:e.arrowHeight,width:e.arrowWidth,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[s.createElementVNode("path",{d:"M18.394 9.13501L13.1302 14.3988C12.5086 15.0204 11.4914 15.0204 10.8697 14.3988L5.60596 9.13501",stroke:e.arrowColor},null,8,YEe)],8,JEe))],6)],4),s.createVNode(s.Transition,null,{default:s.withCtx(()=>[s.withDirectives(s.createElementVNode("div",QEe,[s.createElementVNode("div",null,[s.createElementVNode("div",{class:"gsc-dropdown__items",style:s.normalizeStyle({"margin-top":`${a.borderWidth}px`})},[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(e.items,(m,f)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["gsc-dropdown__items__item",{selected:f===n.value}]),key:f,onClick:b=>d(m,f)},[s.renderSlot(h.$slots,"availableItem",{item:m})],10,ZEe))),128))],4),e.isFooterVisible?(s.openBlock(),s.createElementBlock("div",$Ee,[s.createVNode(s.unref(KEe),{"text-value":"Listo","border-color":"#cbee6b","font-size":"12px",width:"72px",height:"22px","border-radius":"62px","border-width":.8,onClick:u})])):s.createCommentVNode("",!0)])],512),[[s.vShow,r.value]])]),_:3})],4))}},t5e=(e,t)=>{const a=e.__vccOpts||e;for(const[i,n]of t)a[i]=n;return a},a5e={class:"tournament-select__selected-tournament"},i5e={class:"tournament-select__selected-tournament__logo"},n5e=["src"],r5e={class:"tournament-select__selected-tournament__name"},s5e={__name:"GSCTournamentSelect",props:{apiUrl:{type:String,default:"https://kefloixzy1.execute-api.us-west-2.amazonaws.com/prod/gs3/tournaments"},fontFamily:{type:String,default:"sans-serif"},logosUrl:{type:String,default:"https://az755631.vo.msecnd.net/todoelfut/"},logoFileType:{type:String,default:"png"},height:{type:String,default:"40px"},width:{type:String,default:"179px"},borderRadius:{type:Number,default:8},arrowHeight:{type:Number,default:24},arrowWidth:{type:Number,default:24},borderType:{type:String,default:"solid",validator:function(e){return["solid","dotted","dashed"].includes(e)}},borderWidth:{type:Number,default:1},borderColor:{type:String,default:"rgba(255, 255, 255, 0.2)"},backgroundColor:{type:String,default:"#0d1d29"},color:{type:String,default:"white"},arrowColor:{type:String,default:"#CBEE6B"},items:{type:Array,default:()=>[]},defaultItemByIndex:{type:Number,default:0},defaultItemByProp:{type:Object,default:null,validator:e=>["propName","value"].every(t=>t in e)},currentSeasonId:{type:Number,default:0}},emits:["input"],setup(e,{emit:t}){const a=e,i=s.ref([]),n=s.computed(()=>{const h={};return a.fontFamily&&(h["font-family"]=`${a.fontFamily}`),h}),r=s.computed(()=>i.value.find(h=>h.seasonsIds.has(a.currentSeasonId))||i.value[0]);async function o(){try{if(a.items&&a.items.length)i.value=[...a.items];else if(a.apiUrl){const h=await c();i.value=h.map(p=>({...p.tournament,seasons:p.seasons,seasonsIds:p.seasons.reduce((m,f)=>(m.add(f.id),m),new Set)})).sort((p,m)=>p.order-m.order)}}catch(h){throw new Error(h)}}function l(h){const p=new XMLHttpRequest,m=`${a.logosUrl}${h}.${a.logoFileType}`;return p.open("HEAD",m,!1),p.send(),p.status!==404}async function c(){try{return(await fetch(a.apiUrl)).json()}catch(h){return Promise.reject(h)}}function d(h){t("input",h)}function u(h){t("input",h)}return s.onMounted(()=>{o()}),(h,p)=>(s.openBlock(),s.createElementBlock("div",{class:"tournament-select",style:s.normalizeStyle(n.value)},[s.createVNode(s.unref(e5e),s.mergeProps(a,{"model-value":r.value,items:i.value,onInput:d,"onUpdate:modelValue":u}),{default:s.withCtx(({selectedItem:m})=>[s.createElementVNode("div",a5e,[s.createElementVNode("div",i5e,[l(m.id)?(s.openBlock(),s.createElementBlock("img",{key:0,src:`${a.logosUrl}${m.id}.${a.logoFileType}`,alt:""},null,8,n5e)):s.createCommentVNode("",!0)]),s.createElementVNode("div",r5e,s.toDisplayString(m.name),1)])]),availableItem:s.withCtx(({item:m})=>[s.createElementVNode("div",null,s.toDisplayString(m.name),1)]),_:1},16,["model-value","items"])],4))}},o5e=t5e(s5e,[["__scopeId","data-v-0426ea5e"]]),l5e=(e,t)=>{const a=e.__vccOpts||e;for(const[i,n]of t)a[i]=n;return a},rv={props:{type:{type:Number,default:0},value:{type:Boolean,default:!1},textValue:String,icon:String,iconPosition:{type:String,default:"left"},iconSize:String,fontColor:{type:String,default:"#FFFFFF"},textDecoration:String,fontSize:{type:String,default:"16px"},fontSizeStat:{type:String,default:"16px"},fontStyle:String,fontFamily:{type:String,default:"Poppins-Regular"},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},borderRadius:{type:String,default:"0px"},borderType:{type:String,default:"solid"},borderWidth:{type:Number,default:0},borderWidthBtn:{type:String,default:"2px"},borderColor:String,backgroundColor:{type:String,default:"none"},activeBackgroundColor:{type:String,default:"#000000"},activeBorderWidth:{type:Number,default:2},activeBorderType:{type:String,default:"solid"},activeBorderColor:{type:String,default:"#cbee6b"},activeColorText:{type:String,default:"#FFFFFF"},cursorType:{type:String,default:"default"},typeOnOff:{type:Boolean,default:!1},textCategory:String,textStat:String,marginLeftStat:{type:String,default:"15%"}},watch:{value:{deep:!0,immediate:!0,handler(e){this.status=e}}},data(){return{status:!1}},computed:{customStyle(){return{height:this.height,width:this.width,backgroundColor:this.backgroundColor,borderRadius:this.borderRadius,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`,color:this.fontColor,textDecoration:this.textDecoration,cursor:this.cursorType,fontSize:this.fontSize,fontStyle:this.fontStyle,fontFamily:`${this.fontFamily} !important`}},customActive(){return{backgroundColor:this.activeBackgroundColor,color:this.activeColorText,border:`${this.activeBorderType} ${this.activeBorderWidth}px ${this.activeBorderColor}`}}},methods:{btnClick(e){this.$emit("click",e),this.typeOnOff&&(this.status=!this.status,this.$emit("status",this.status))}}},XA=()=>{s.useCssVars(e=>({"1c960139":e.height,b2f635d8:e.borderWidthBtn,"06e99898":e.borderType,"55555c76":e.borderColor,"23b6d320":e.borderRadius,"22c97374":e.width,"22bb09fa":e.backgroundColor,c148da7c:e.cursorType,cce756fc:e.fontSize,cff98d60:e.fontStyle,"5123b3a5":e.fontFamily,"47bf58db":e.marginLeftStat,cadc8414:e.fontSizeStat}))},JA=rv.setup;rv.setup=JA?(e,t)=>(XA(),JA(e,t)):XA;const c5e=e=>(s.pushScopeId("data-v-fb269a1e"),e=e(),s.popScopeId(),e),d5e=["src"],u5e={key:1,class:"text"},h5e=["src"],p5e={class:"stats"},m5e=c5e(()=>s.createElementVNode("img",{class:"iconstats",src:"https://az755631.vo.msecnd.net/todoelfut/playdes.png"},null,-1)),f5e={class:"numstats"},g5e={class:"leyend"};function y5e(e,t,a,i,n,r){return s.openBlock(),s.createElementBlock("div",null,[a.type==0?(s.openBlock(),s.createElementBlock("div",{key:0,class:s.normalizeClass(["button",n.status&&a.typeOnOff&&"button-active"]),style:s.normalizeStyle([r.customStyle,n.status&&a.typeOnOff&&r.customActive]),onClick:t[0]||(t[0]=(...o)=>r.btnClick&&r.btnClick(...o))},[a.icon&&a.iconPosition.toLowerCase()==="left"?(s.openBlock(),s.createElementBlock("img",{key:0,class:"icon",style:s.normalizeStyle({width:a.iconSize}),src:a.icon},null,12,d5e)):s.createCommentVNode("",!0),a.textValue?(s.openBlock(),s.createElementBlock("div",u5e,s.toDisplayString(a.textValue),1)):s.createCommentVNode("",!0),a.icon&&a.iconPosition.toLowerCase()==="right"?(s.openBlock(),s.createElementBlock("img",{key:2,class:"icon",style:s.normalizeStyle({width:a.iconSize}),src:a.icon},null,12,h5e)):s.createCommentVNode("",!0)],6)):s.createCommentVNode("",!0),a.type==1?(s.openBlock(),s.createElementBlock("div",{key:1,class:"button-target",onClick:t[1]||(t[1]=(...o)=>r.btnClick&&r.btnClick(...o))},[s.createElementVNode("div",p5e,[m5e,s.createElementVNode("div",f5e,s.toDisplayString(a.textStat),1)]),s.createElementVNode("div",g5e,s.toDisplayString(a.textCategory),1)])):s.createCommentVNode("",!0)])}const _5e=l5e(rv,[["render",y5e],["__scopeId","data-v-fb269a1e"]]),b5e={class:"gsc-dropdown__main-container__item-selected"},v5e=["height","width"],S5e=["stroke"],w5e={class:"gsc-dropdown__items-container"},T5e=["onClick"],C5e={key:0,class:"gsc-dropdown__items-footer"},k5e={__name:"GSC-Dropdown",props:{modelValue:{type:[Object,Number,String],default:()=>null},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},fontSize:{type:String,default:"14px"},borderRadius:{type:Number,default:5},arrowHeight:{type:Number,default:24},arrowWidth:{type:Number,default:24},borderType:{type:String,default:"solid",validator:function(e){return["solid","dotted","dashed"].includes(e)}},borderWidth:{type:Number,default:1},borderColor:{type:String,default:"black"},backgroundColor:{type:String,default:"grey"},color:{type:String,default:"black"},arrowColor:{type:String,default:"#CBEE6B"},items:{type:Array,default:()=>[]},defaultItemByIndex:{type:Number,default:0},defaultItemByProp:{type:Object,default:null,validator:e=>["propName","value"].every(t=>t in e)},listBackgroundColor:{type:String,default:"white"},hoverBackgroundColor:{type:String,default:"#f1f1f1"},listItemPadding:{type:String,default:"10px 12px"},listHeight:{type:String,default:"fit-content"},listItemSelectedColor:{type:String,default:"white"},listItemSelectedBackgroundColor:{type:String,default:"#399cfd"},listItemColor:{type:String,default:"black"},listBorderRadius:{type:String,default:"0"},listBorderColor:{type:String,default:""},listBorderWidth:{type:Number,default:1},isListSameWidth:{type:Boolean,default:!1},isMultipleOption:{type:Boolean,default:!1},footerBorderColor:{type:String,default:"#626970"},footerBorderWidth:{type:Number,default:1},isFooterVisible:{type:Boolean,default:!1},isDisabled:{type:Boolean,default:!1},onlyFirstTime:{type:Boolean,default:!1}},emits:["input","click-ready","update:modelValue"],setup(e,{emit:t}){const a=e,i=s.ref({}),n=s.ref(a.isMultipleOption?-1:0),r=s.ref(!1);s.watch(()=>a.items,(h,p)=>{if(!a.modelValue&&(!a.onlyFirstTime||!p||!p.length)&&h&&h.length){if(a.defaultItemByProp){const m=a.items.findIndex(f=>f[a.defaultItemByProp.propName]===a.defaultItemByProp.value);m!==-1?(n.value=m,i.value=h[m]):(n.value=0,i.value=h[0])}else i.value=h[a.defaultItemByIndex];t("input",i.value)}},{immediate:!0}),s.watch(()=>a.modelValue,h=>{if(h){const p=a.items.findIndex(m=>typeof h=="object"?JSON.stringify(m)===JSON.stringify(h):m===h);p!==-1&&(n.value=p,i.value=a.items[p],t("update:modelValue",i.value))}},{immediate:!0});const o=s.computed(()=>({height:a.height,width:a.width,backgroundColor:a.backgroundColor,borderRadius:`${a.borderRadius}px`,border:`${a.borderType} ${a.borderWidth}px ${a.borderColor}`,color:a.color,"--hover-background-color":a.hoverBackgroundColor,"--list-item-padding":a.listItemPadding,"--list-background-color":a.listBackgroundColor,"--list-height":a.listHeight,"--list-item-selected-color":a.listItemSelectedColor,"--list-item-selected-background-color":a.listItemSelectedBackgroundColor,"--list-item-color":a.listItemColor,"--list-border-radius":`${a.listBorderRadius}`,"--list-border-color":a.listBorderColor,"--list-width":a.isListSameWidth?a.width:"fit-content","--list-border-width":`${a.listBorderWidth}px`,"--footer-border":`${a.footerBorderWidth}px solid ${a.footerBorderColor}`,"--dropdown-opacity":a.isDisabled?"0.5":"1","--dropdown-cursor":a.isDisabled?"not-allowed":"pointer","--dropdown-font-size":a.fontSize?a.fontSize:"14px"})),l=s.computed(()=>({height:`${a.arrowHeight}px`,width:`${a.arrowWidth}px`}));function c(){a.isDisabled||(r.value=!r.value)}function d(h,p){a.isMultipleOption?n.value=-1:(n.value=p,r.value=!1),i.value=h,t("input",i.value),t("update:modelValue",i.value)}function u(){r.value=!1,t("click-ready")}return(h,p)=>(s.openBlock(),s.createElementBlock("div",{class:"gsc-dropdown",style:s.normalizeStyle(o.value)},[s.createElementVNode("div",{class:"gsc-dropdown__main-container",style:s.normalizeStyle({"padding-right":`${e.arrowWidth+8}px`}),onClick:c},[s.createElementVNode("div",b5e,[s.renderSlot(h.$slots,"default",{selectedItem:i.value})]),s.createElementVNode("div",{class:s.normalizeClass(["gsc-dropdown__main-container__icon",{"rotated-180":r.value}]),style:s.normalizeStyle(l.value)},[(s.openBlock(),s.createElementBlock("svg",{height:e.arrowHeight,width:e.arrowWidth,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[s.createElementVNode("path",{d:"M18.394 9.13501L13.1302 14.3988C12.5086 15.0204 11.4914 15.0204 10.8697 14.3988L5.60596 9.13501",stroke:e.arrowColor},null,8,S5e)],8,v5e))],6)],4),s.createVNode(s.Transition,null,{default:s.withCtx(()=>[s.withDirectives(s.createElementVNode("div",w5e,[s.createElementVNode("div",null,[s.createElementVNode("div",{class:"gsc-dropdown__items",style:s.normalizeStyle({"margin-top":`${a.borderWidth}px`})},[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(e.items,(m,f)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["gsc-dropdown__items__item",{selected:f===n.value}]),key:f,onClick:b=>d(m,f)},[s.renderSlot(h.$slots,"availableItem",{item:m})],10,T5e))),128))],4),e.isFooterVisible?(s.openBlock(),s.createElementBlock("div",C5e,[s.createVNode(s.unref(_5e),{"text-value":"Listo","border-color":"#cbee6b","font-size":"12px",width:"72px",height:"22px","border-radius":"62px","border-width":.8,onClick:u})])):s.createCommentVNode("",!0)])],512),[[s.vShow,r.value]])]),_:3})],4))}},E5e=(e,t)=>{const a=e.__vccOpts||e;for(const[i,n]of t)a[i]=n;return a},I5e={class:"season-name"},x5e={components:{GSCSeasonSelect:E5e({__name:"GSC-SeasonSelect",props:{seasons:{type:Array,default:()=>[]},currentSeasonId:{type:Number,default:0}},emits:["input"],setup(e,{emit:t}){const a=e,i=t,n=s.computed(()=>a.seasons.find(l=>l.id===a.currentSeasonId));function r(l){i("input",l)}function o(l){i("input",l)}return(l,c)=>(s.openBlock(),s.createBlock(s.unref(k5e),{items:e.seasons,"model-value":n.value,height:"40px",width:"179px","background-color":"#0d1d29",color:"white","border-color":"rgba(255, 255, 255, 0.2)","font-family":"Poppins-Regular","border-radius":8,onInput:o,"onUpdate:modelValue":r},{default:s.withCtx(({selectedItem:d})=>[s.createElementVNode("div",I5e,[s.createElementVNode("span",null,s.toDisplayString(d.name),1)])]),availableItem:s.withCtx(({item:d})=>[s.createElementVNode("span",null,s.toDisplayString(d.name),1)]),_:1},8,["items","model-value"]))}},[["__scopeId","data-v-cb91d262"]]),GSCTournamentSelect:o5e,GSCGames:UU,GSCGridTeamsMatches:ZO,GSCPlayersLanding:WO,GSCTops:Vj,GSCTableCalendar:MV,GSCMediaPlayer:BEe},setup(){const e=s.ref("landingref"),{elementSize:t}=vO(e);return{landingref:e,elementSize:t}},watch:{team:{immediate:!0,deep:!0,async handler(e){if(Object.keys(this.seasonSelected).length!==0){const t=await this.generateSeasons(this.seasonSelected);this.fetchGames(e,t)}}},closestRound(e){this.selectedRoundKeyIndex=this.tournamentScheduleKeys.findIndex(t=>t===e),this.selectedRound=e}},props:{currentSeasonId:{type:Number,default:0},season:{type:Number,default:1772},isplayer:{type:Boolean,default:!1},user:{type:Object,default:()=>{}},team:{type:Number,default:0},player:{type:Number,default:0},gamesPerMatchDay:{type:Number,default:0,validator(e){return!Number.isNaN(e)&&e>=0}}},data(){return{defaultGameId:0,lastSeasonsIds:[],gamesPages:new Map,selectedRoundKeyIndex:0,selectedRound:0,fullTournamentScheduleFull:[],defaultMatchDayKey:null,isCupTournament:!1,retries:3,userTeamGames:[],isCupLegacyTournament:!1,tournamentScheduleKeys:[],currentTournamentGames:null,currentTournamentTeams:null,gamesUrl:"https://qyyibs1w0d.execute-api.us-west-2.amazonaws.com/prod/calendar/gamesBySeason/",gamesUrl2:"https://qyyibs1w0d.execute-api.us-west-2.amazonaws.com/prod/calendar/gamesBySeason?",seasonSelected:{},seasonSelectedDropDowns:{},fullTournamentSchedule:{},tournamentSelected:{},tournamentSelectedDropDowns:{seasons:[]},playersLength:0,tokenFree:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"}},computed:{gamesFullLeague(){var e=[];for(let t=0;t<this.fullTournamentScheduleFull[this.selectedRound].length;t++)for(let a=0;a<this.fullTournamentScheduleFull[this.selectedRound][t].games.length;a++)e.push(this.fullTournamentScheduleFull[this.selectedRound][t].games[a]);return e},closestRound(){return this.userTeamGames&&this.userTeamGames.length?this.getUserTeamClosestRound(this.fullTournamentScheduleFull):this.getNormalClosestRound(this.fullTournamentScheduleFull)},containerGridCalendarTable(){return this.elementSize.width<=1e3?"container-grid-calendar-table-mobile":"container-grid-calendar-table"},containerbackground(){return this.elementSize.width<=680?"container-background-movil":"container-background"},containerdata(){return this.elementSize.width<=680?"container-data-movil":"container-data"}},methods:{onAction(e){this.$emit("action",e)},onOpenMedia(e){this.$emit("openmedia",e)},onOpenProfile(e){this.$emit("onOpenProfile",e)},onClickMatch(e){this.$emit("openGame",e)},onClickCalendar(){const e={type:this.tournamentSelected.id==this.user.tournament?1:0,team:this.team,season:this.seasonSelectedDropDowns};this.$emit("onClickMyCalendar",e)},moreTops(){const e={team:this.team,season:this.seasonSelectedDropDowns};this.$emit("openTops",e)},clickProfileBtn(e){this.$emit("openProfile",e)},viewAll(){const e={team:this.team,season:this.seasonSelectedDropDowns};this.$emit("openAllPlayers",e)},getTotalPlayers(e){this.playersLength=e},clickCard(e){const t={data:e,isPlayer:this.isplayer};this.$emit("clickOnMainCards",t)},async fetchGames(e,t){const a=t.map(n=>`seasons=${n.id}`).join("&"),i=vc.create({headers:{Authorization:`${this.tokenFree}`}});this.fullTournamentSchedule=await i.get(this.gamesUrl+e+"?"+a)},async generateSeasons(e){const t=[{id:e.id,type:e.type}];return e.related_seasons&&e.related_seasons.length&&t.push(...e.related_seasons.map(a=>({id:a.id,type:a.type}))),t},async onInputTournament(e){this.tournamentSelected=e,this.tournamentSelectedDropDowns.id!==e.id&&(this.tournamentSelectedDropDowns=e)},async onInputSeason(e){if(this.seasonSelected=e,this.tournamentSelected.id!=this.user.tournament){const t=await this.generateSeasons(this.seasonSelected);await this.createFullTournamentScheme(t,!1)}else{const t=await this.generateSeasons(this.seasonSelected);await this.fetchGames(this.user.team,t)}this.seasonSelectedDropDowns!==e.id&&(this.seasonSelectedDropDowns=e.id,this.$emit("change-season-id",e.id))},async fetchTournaments(e){try{const{data:t}=await vc.get("https://kefloixzy1.execute-api.us-west-2.amazonaws.com/prod/tournaments");return t}catch(t){if(e>0)return this.fetchTournaments(e-1);throw new Error(t)}},async fetchSeasonsGamesAndTeams(e,t,a=""){let i=a;try{i||(i=this.gamesUrl2,e.forEach((l,c)=>{i+=`${c===0?"":"&"}seasons=${l}`}));const n=vc.create({headers:{Authorization:`${this.tokenFree}`}}),{data:{data:r,teams:o}}=await n.get(i);return{seasonsAndGames:r,seasonsAndTeams:o}}catch(n){if(t>0)return this.fetchSeasonsGamesAndTeams(e,t-1,i);throw new Error(n)}},areSeasonsDifferent(e){for(const t of e)if(!this.lastSeasonsIds.includes(t.season_id))return!0;return!1},async createFullTournamentScheme(e,t){try{this.fullTournamentSchedule={},this.userTeamGames=[];let a=0;const{seasonsAndGames:i,seasonsAndTeams:n}=await this.fetchSeasonsGamesAndTeams(e.map(c=>c.id),3);if(t&&this.areSeasonsDifferent(i))return;i.forEach(c=>{const{type:d}=e.find(u=>u.id===c.season_id);c.type=d,c.games.forEach(u=>{u.season_id=c.season_id}),d===0&&(a=c.season_id)});const r={seasonsGames:i},{teams:o}=n.find(c=>c.season_id===a),l=r&&r.seasonsGames?r.seasonsGames.map(c=>{const d=c.games.reduce((u,h)=>{const p={...h};return p.dateTimeMillis=new Date(p.date_time_utc).valueOf(),p.home_team=o.find(m=>m.team_id===h.home_team),p.visiting_team=o.find(m=>m.team_id===h.visiting_team),u[h.matchday_abbreviation]?u[h.matchday_abbreviation][h.game_status===3?"canceled":h.date]?u[h.matchday_abbreviation][h.game_status===3?"canceled":h.date].push(p):u[h.matchday_abbreviation][h.game_status===3?"canceled":h.date]=[p]:u[h.matchday_abbreviation]={[h.game_status===3?"canceled":h.date]:[p]},this.gsData&&this.gsData.teamId&&p.game_status===4&&(p.home_team.team_id===this.gsData.teamId||p.visiting_team.team_id===this.gsData.teamId)&&this.userTeamGames.push(p),u},{});this.userTeamGames.sort((u,h)=>u.dateTimeMillis-h.dateTimeMillis);for(let[u,h]of Object.entries(d))d[u]=Object.entries(h).map(([p,m])=>({date:p,games:m.sort((f,b)=>f.dateTimeMillis-b.dateTimeMillis)})),d[u].sort((p,m)=>p.date<m.date?-1:p.date>m.date?1:0);return{type:c.type,weight:c.type===0?0:c.type===2?1:2,schedule:d}}):[];l.sort((c,d)=>c.weight-d.weight),this.fullTournamentScheduleFull=l.reduce((c,d)=>{for(const[u,h]of Object.entries(d.schedule))if(d.type===0)if(this.isCup){const p=u.replace("M",""),m=`Jornada ${p}`;this.isCupLegacy?c[MEe[p]||m]=h:c[LEe[u]||m]=h}else c[Number(u.replace("M","")).toString()]=h;else d.type===2?["PI1","PI2"].includes(u)?c[u]=h:c[`R${Number(u.replace("PO",""))}`]=h:d.type===1&&(c[DEe[u]]=h);return c},{}),this.tournamentScheduleKeys=Object.keys(this.fullTournamentScheduleFull)}catch(a){throw new Error(a)}finally{this.loadingFlag=!1}},getNormalClosestRound(e){const a=Object.entries(Object.entries(e).reduce((r,[o,l])=>(r[o]=[],l.forEach(c=>{c.games.forEach(d=>{const u=new Date(d.date_time_utc).getTime()+66e5;r[o].push(u)})}),r),{}));if(!a.length)return"1";const i=new Date().getTime(),n=a.reduce((r,[o,l])=>{let c=null;return l.forEach(d=>{const u=d-i;u>=0&&(c===null||u<c)&&(c=u)}),c&&(r.shortestTime===null||c<r.shortestTime)&&(r.round=o,r.shortestTime=c),r},{round:"",shortestTime:null});return n.shortestTime!==null?n.round:a[a.length-1][0]},getUserTeamClosestRound(e){let t=1;if(this.userTeamGames.length){const a=this.userTeamGames[0];for(const[i,n]of Object.entries(e))for(const r of n)if(r.games.find(l=>l.game_id===a.game_id))return i}return t}},async created(){const a=(await this.fetchTournaments(3)).find(n=>n._id===1).seasons[1],i=[{id:a.id,type:a.type}];a.related_seasons&&a.related_seasons.length&&i.push(...a.related_seasons.map(n=>({id:n.id,type:n.type}))),await this.createFullTournamentScheme(i,!1)}},N5e=e=>(s.pushScopeId("data-v-4254ff87"),e=e(),s.popScopeId(),e),A5e={class:"gsclanding",ref:"landingref"},P5e={key:0,class:"container-selectors-mobile"},O5e={class:"container-selectors-mobile-tournament"},B5e={class:"container-selectors-mobile-season"},D5e={key:0,class:"home-item-movil"},L5e=N5e(()=>s.createElementVNode("div",{class:"home-movil"},"Inicio",-1)),M5e={class:"name-user-movil"},R5e={key:1,class:"home-item"},F5e={key:2,class:"bar-settings"},V5e={class:"name-user"},U5e={class:"container-selectors"},j5e={class:"selector-tournament"},z5e={class:"selector-seasons"},H5e={key:3,class:"container-games"},q5e={key:4,class:"container-players"},W5e={class:"container-tops"},G5e={class:"container-vr"};function K5e(e,t,a,i,n,r){const o=s.resolveComponent("GSCTournamentSelect"),l=s.resolveComponent("GSCSeasonSelect"),c=s.resolveComponent("GSCGames"),d=s.resolveComponent("GSCGridTeamsMatches"),u=s.resolveComponent("GSCTableCalendar"),h=s.resolveComponent("GSCPlayersLanding"),p=s.resolveComponent("GSCTops"),m=s.resolveComponent("GSCMediaPlayer");return s.openBlock(),s.createElementBlock("div",A5e,[i.elementSize.width<=680?(s.openBlock(),s.createElementBlock("div",P5e,[s.createElementVNode("div",O5e,[s.createVNode(o,{"current-season-id":a.currentSeasonId,width:"100%",onInput:r.onInputTournament},null,8,["current-season-id","onInput"])]),s.createElementVNode("div",B5e,[s.createVNode(l,{"current-season-id":a.currentSeasonId,width:"100%",seasons:n.tournamentSelectedDropDowns.seasons,onInput:r.onInputSeason},null,8,["current-season-id","seasons","onInput"])])])):s.createCommentVNode("",!0),s.createElementVNode("div",{class:s.normalizeClass(r.containerbackground)},[s.createElementVNode("div",{class:s.normalizeClass(r.containerdata)},[i.elementSize.width<=680?(s.openBlock(),s.createElementBlock("div",D5e,[L5e,s.createElementVNode("div",M5e,[s.createTextVNode("Bienvenido "),a.user.name.split(",").length!=0?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[a.user.name.split(",").length==1?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[a.user.name.split(",")[0]!=""?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[s.createTextVNode(", ")],64)):s.createCommentVNode("",!0),s.createTextVNode(s.toDisplayString(a.user.name.split(",")[0]),1)],64)):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[a.user.name.split(",")[0]!=""?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[s.createTextVNode(", ")],64)):s.createCommentVNode("",!0),s.createTextVNode(s.toDisplayString(a.user.name.split(",")[1]),1)],64))],64)):s.createCommentVNode("",!0)])])):s.createCommentVNode("",!0),i.elementSize.width>680?(s.openBlock(),s.createElementBlock("div",R5e,"Inicio")):s.createCommentVNode("",!0),i.elementSize.width>680?(s.openBlock(),s.createElementBlock("div",F5e,[s.createElementVNode("div",V5e,[s.createTextVNode("Bienvenido "),a.user.name.split(",").length!=0?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[a.user.name.split(",").length==1?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[a.user.name.split(",")[0]!=""?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[s.createTextVNode(", ")],64)):s.createCommentVNode("",!0),s.createTextVNode(s.toDisplayString(a.user.name.split(",")[0]),1)],64)):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[a.user.name.split(",")[0]!=""?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[s.createTextVNode(", ")],64)):s.createCommentVNode("",!0),s.createTextVNode(s.toDisplayString(a.user.name.split(",")[1]),1)],64))],64)):s.createCommentVNode("",!0)]),s.createElementVNode("div",U5e,[s.createElementVNode("div",j5e,[s.createVNode(o,{"current-season-id":a.currentSeasonId,onInput:r.onInputTournament},null,8,["current-season-id","onInput"])]),s.createElementVNode("div",z5e,[s.createVNode(l,{"current-season-id":a.currentSeasonId,seasons:n.tournamentSelectedDropDowns.seasons,onInput:r.onInputSeason},null,8,["current-season-id","seasons","onInput"])])])])):s.createCommentVNode("",!0),Object.keys(n.tournamentSelected).length>0?(s.openBlock(),s.createElementBlock("div",H5e,[s.createVNode(c,{"component-width":i.elementSize.width,isplayer:a.isplayer,"is-full":n.tournamentSelected.id!=a.user.tournament,onClickMatch:r.onClickMatch,onClickCalendar:r.onClickCalendar,data:n.tournamentSelected.id==a.user.tournament?n.fullTournamentSchedule:r.gamesFullLeague},null,8,["component-width","isplayer","is-full","onClickMatch","onClickCalendar","data"])])):s.createCommentVNode("",!0),s.createElementVNode("div",{class:s.normalizeClass(r.containerGridCalendarTable)},[s.createElementVNode("div",{class:"container-grid",style:s.normalizeStyle(i.elementSize.width<1e3?"width: 100%":"")},[s.createVNode(d,{isPlayer:a.isplayer?n.tournamentSelected.id==a.user.tournament:!1,"player-id":a.user.player,"team-id":a.user.team,"season-selected":n.seasonSelected.id,"next-rival-id":Object.keys(n.fullTournamentSchedule).length>0?a.user.team==n.fullTournamentSchedule.data.prematch.home_team?n.fullTournamentSchedule.data.prematch.visiting_team:n.fullTournamentSchedule.data.prematch.home_team:0,"team-img":"https://az755631.vo.msecnd.net/teams-150/"+a.user.team+".png","player-img":"https://az755631.vo.msecnd.net/players-profile/"+a.user.player+".png","rival-img":Object.keys(n.fullTournamentSchedule).length>0?a.user.team==n.fullTournamentSchedule.data.prematch.home_team?"https://az755631.vo.msecnd.net/teams-150/"+n.fullTournamentSchedule.data.prematch.visiting_team+".png":"https://az755631.vo.msecnd.net/teams-150/"+n.fullTournamentSchedule.data.prematch.home_team+".png":"","has-team":a.isplayer?!1:n.tournamentSelected.id==a.user.tournament,"component-width":i.elementSize.width,onAction:r.clickCard},null,8,["isPlayer","player-id","team-id","season-selected","next-rival-id","team-img","player-img","rival-img","has-team","component-width","onAction"])],4),s.createElementVNode("div",{class:"container-calendar-table",style:s.normalizeStyle(i.elementSize.width<1e3?"width: 100%; margin-top: 30px;":"")},[s.createVNode(u,{onAction:r.onAction,season:n.seasonSelected,onOpenmedia:r.onOpenMedia,onOnOpenProfile:r.onOpenProfile,componentWidth:i.elementSize.width},null,8,["onAction","season","onOpenmedia","onOnOpenProfile","componentWidth"])],4)],2),n.tournamentSelected.id==a.user.tournament?s.withDirectives((s.openBlock(),s.createElementBlock("div",q5e,[s.createVNode(h,{onClickProfileBtn:r.clickProfileBtn,onViewAll:r.viewAll,onTotalPlayers:r.getTotalPlayers,"team-id":a.user.team,"season-id":n.seasonSelected.id,"is-player":a.user.player!=0},null,8,["onClickProfileBtn","onViewAll","onTotalPlayers","team-id","season-id","is-player"])],512)),[[s.vShow,n.playersLength>0]]):s.createCommentVNode("",!0),s.createElementVNode("div",W5e,[s.createVNode(p,{onMore:r.moreTops,"show-switch":n.tournamentSelected.id==a.user.tournament,season:n.seasonSelected.id,"team-id":a.user.team,onOpenmedia:r.onOpenMedia},null,8,["onMore","show-switch","season","team-id","onOpenmedia"])]),s.createElementVNode("div",G5e,[s.createVNode(m)])],2)],2)],512)}const X5e=ri(x5e,[["render",K5e],["__scopeId","data-v-4254ff87"]]),J5e=(e,t)=>{const a=e.__vccOpts||e;for(const[i,n]of t)a[i]=n;return a},Y5e={key:1},Q5e={width:"10",height:"8",viewBox:"0 0 10 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Z5e=["fill"],$5e={key:0,class:"checkbox__teams"},e4e={class:"checkbox__teams__logo"},t4e=["src"],a4e={class:"checkbox__teams__logo"},i4e=["src"],n4e={__name:"GSC-Checkbox",props:{width:{type:String,default:"fit-content"},height:{type:String,default:"fit-content"},label:{type:String,default:""},labelColor:{type:String,default:"white"},fontFamily:{type:String,default:"sans-serif"},labelFontSize:{type:String,default:"12px"},modelValue:{type:Boolean,default:!1},justifyContent:{type:String,default:"flex-start"},alignItems:{type:String,default:"center"},boxBackgroundColor:{type:String,default:"#CBEE6B"},boxValueColor:{type:String,default:"#0d1d29"},boxValue:{type:[String,Number],default:""},boxPosition:{type:String,default:"left",validator(e){return["left","right","top","bottom"].includes(e)}},boxWidthAndHeight:{type:String,default:"16px"},boxBorderColor:{type:String,default:"#969da2"},boxBorderWidth:{type:String,default:"2px"},boxBorderRadius:{type:String,default:"4px"},boxValueFontSize:{type:String,default:"10px"},boxValueFontFamily:{type:String,default:"sans-serif"},avoidInteraction:{type:Boolean,default:!1},avoidToCheck:{type:Boolean,default:!1},isBoxOnly:{type:Boolean,default:!1},teamsIds:{type:Array,default:()=>null}},emits:["update:modelValue"],setup(e,{emit:t}){const a=e;s.useCssVars(d=>({"6f1f9c87":e.width,"5b04fa86":e.height}));const i=s.ref(!1),n=s.computed(()=>{const d={color:a.boxValueColor,"font-family":a.fontFamily,height:a.boxWidthAndHeight,width:a.boxWidthAndHeight,minWidth:a.boxWidthAndHeight,"border-radius":a.boxBorderRadius};return i.value?(d["background-color"]=a.boxBackgroundColor,d.border=`solid ${a.boxBorderWidth} ${a.boxBackgroundColor}`):d.border=`solid ${a.boxBorderWidth} ${a.boxBorderColor}`,d}),r=s.computed(()=>({"font-family":a.boxValueFontFamily,"font-size":a.boxValueFontSize,color:a.boxValueColor,"line-height":1})),o=s.computed(()=>{const d={color:a.labelColor,"font-family":a.fontFamily,"font-size":a.labelFontSize,"text-align":a.boxPosition==="top"||a.boxPosition==="bottom"?"center":a.boxPosition};return(a.boxPosition==="left"||a.boxPosition==="right")&&(d[`margin-${a.boxPosition}`]=a.isBoxOnly?"0":a.teamsIds?"8px":"10px"),d});s.watch(()=>a.modelValue,d=>{d!==i.value&&(i.value=d)},{immediate:!0});function l(){a.avoidInteraction||!i.value&&a.avoidToCheck||(i.value=!i.value,t("update:modelValue",i.value))}function c(d){return`${{}.TEAM_LOGOS_URL||"https://az755631.vo.msecnd.net/teams-80/"}${d}.png`}return(d,u)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["checkbox",`box-${e.boxPosition}`]),onClick:l},[s.createElementVNode("div",{class:"checkbox__box",style:s.normalizeStyle(n.value)},[i.value?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[a.boxValue?(s.openBlock(),s.createElementBlock("div",{key:0,class:"checkbox__box__value",style:s.normalizeStyle(r.value)},s.toDisplayString(e.boxValue),5)):(s.openBlock(),s.createElementBlock("div",Y5e,[(s.openBlock(),s.createElementBlock("svg",Q5e,[s.createElementVNode("path",{d:"M9.77994 1.70133L4.10994 7.37133C3.96994 7.51133 3.77994 7.59133 3.57994 7.59133C3.37994 7.59133 3.18994 7.51133 3.04994 7.37133L0.219941 4.54133C-0.0700586 4.25133 -0.0700586 3.77133 0.219941 3.48133C0.509941 3.19133 0.989941 3.19133 1.27994 3.48133L3.57994 5.78133L8.71994 0.641328C9.00994 0.351328 9.48994 0.351328 9.77994 0.641328C10.0699 0.931328 10.0699 1.40133 9.77994 1.70133Z",fill:e.boxValueColor},null,8,Z5e)]))]))],64)):s.createCommentVNode("",!0)],4),e.teamsIds&&e.teamsIds.length?(s.openBlock(),s.createElementBlock("div",$5e,[s.createElementVNode("div",e4e,[s.createElementVNode("img",{src:c(e.teamsIds[0]),alt:""},null,8,t4e)]),s.createElementVNode("div",a4e,[s.createElementVNode("img",{src:c(e.teamsIds[1]),alt:""},null,8,i4e)])])):s.createCommentVNode("",!0),s.createElementVNode("div",{class:"checkbox__label",style:s.normalizeStyle(o.value)},s.toDisplayString(e.label),5)],2))}},sv=J5e(n4e,[["__scopeId","data-v-c33c3628"]]),r4e={class:"subcategory-group"},s4e={__name:"SubcategoryGroup",props:{subcategoryGroup:{type:Array,default:()=>[]}},setup(e){return(t,a)=>(s.openBlock(),s.createElementBlock("div",r4e,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(e.subcategoryGroup,i=>(s.openBlock(),s.createBlock(s.unref(sv),{key:i.id,modelValue:i.isSelected,"onUpdate:modelValue":n=>i.isSelected=n,label:i.name},null,8,["modelValue","onUpdate:modelValue","label"]))),128))]))}},o4e=_t(s4e,[["__scopeId","data-v-6c6e0261"]]),l4e={class:"filter-subcategories"},c4e=Object.freeze(Object.defineProperty({__proto__:null,default:_t({__name:"FilterSubcategories",props:{subcategoryGroups:{type:Array,default:()=>[]}},setup(e){return(t,a)=>(s.openBlock(),s.createElementBlock("div",l4e,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(e.subcategoryGroups,i=>(s.openBlock(),s.createElementBlock("div",{key:i.id,class:"filter-subcategories__group"},[s.createVNode(o4e,{subcategoryGroup:i},null,8,["subcategoryGroup"])]))),128))]))}},[["__scopeId","data-v-feeb6f0d"]])},Symbol.toStringTag,{value:"Module"})),vf=e=>(s.pushScopeId("data-v-209a8861"),e=e(),s.popScopeId(),e),d4e={class:"details__header"},u4e=vf(()=>s.createElementVNode("div",{class:"details__header__title"},"Jugando como",-1)),h4e={class:"details__header__checkbox"},p4e={class:"details__body"},m4e={class:"details__body__playing-as"},f4e=["onClick"],g4e={class:"details__header"},y4e=vf(()=>s.createElementVNode("div",{class:"details__header__title"},"En: (Elige el lapso de tiempo)",-1)),_4e={class:"details__header__checkbox"},b4e={class:"details__body"},v4e=vf(()=>s.createElementVNode("div",{class:"details__body__title"},"1er tiempo",-1)),S4e={class:"details__body__game-section"},w4e=["onClick"],T4e={class:"details__body"},C4e=vf(()=>s.createElementVNode("div",{class:"details__body__title"},"2do tiempo",-1)),k4e={class:"details__body__game-section"},E4e=["onClick"],I4e=Object.freeze(Object.defineProperty({__proto__:null,default:_t({__name:"FilterConditions",props:{conditions:{type:Object,default:()=>({playingAs:[{name:"Local",value:1,isSelected:!0},{name:"Visitante",value:2,isSelected:!0}],gameSections:[{text:"0-15",value:1,isSelected:!0},{text:"16-30",value:2,isSelected:!0},{text:"31-45",value:3,isSelected:!0},{text:"46-60",value:4,isSelected:!0},{text:"61-75",value:5,isSelected:!0},{text:"76-90",value:6,isSelected:!0}]})},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){s.useCssVars(u=>({"6828708b":e.buttonsBackgroundColor,"717ea86c":e.buttonsTextColor,"321a49b0":e.buttonsBorderWidth,"31034b4d":e.buttonsBorderColor,dca9f11e:e.buttonsBackgroundColorActive,"90d3dadc":e.buttonsTextColorActive,"305cb0d6":e.buttonsBorderWidthActive,"18196e9a":e.buttonsBorderColorActive}));const t=e,a=s.computed(()=>t.conditions.playingAs.every(u=>u.isSelected)),i=s.computed(()=>t.conditions.gameSections.every(u=>u.isSelected)),n=s.computed(()=>t.conditions.gameSections.reduce((u,h)=>(h.value<=3?u.firstHalf.push(h):u.secondHalf.push(h),u),{firstHalf:[],secondHalf:[]})),r=s.computed(()=>({"--border-radius-first-button":`${t.buttonsBorderRadius} 0 0 ${t.buttonsBorderRadius}`,"--border-radius-last-button":`0 ${t.buttonsBorderRadius} ${t.buttonsBorderRadius} 0`}));function o(u){u?t.conditions.playingAs.forEach(h=>{h.isSelected=!0}):t.conditions.playingAs.forEach((h,p)=>{h.isSelected=p===0})}function l(u){t.conditions.playingAs.filter(h=>h.isSelected).length===1&&u.isSelected||(u.isSelected=!u.isSelected)}function c(u){t.conditions.gameSections.filter(h=>h.isSelected).length===1&&u.isSelected||(u.isSelected=!u.isSelected)}function d(u){u?t.conditions.gameSections.forEach(h=>{h.isSelected=!0}):t.conditions.gameSections.forEach((h,p)=>{h.isSelected=p===0})}return(u,h)=>(s.openBlock(),s.createElementBlock("div",{class:"details",style:s.normalizeStyle(r.value)},[s.createElementVNode("div",d4e,[u4e,s.createElementVNode("div",h4e,[s.createVNode(s.unref(sv),{label:"Todos","model-value":a.value,"onUpdate:modelValue":o},null,8,["model-value"])])]),s.createElementVNode("div",p4e,[s.createElementVNode("div",m4e,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(e.conditions.playingAs,(p,m)=>(s.openBlock(),s.createElementBlock("div",{key:`pa${m}`,class:s.normalizeClass(["details__body__button",{active:p.isSelected}]),onClick:f=>l(p)},s.toDisplayString(p.name),11,f4e))),128))])]),s.createElementVNode("div",g4e,[y4e,s.createElementVNode("div",_4e,[s.createVNode(s.unref(sv),{label:"Todos","model-value":i.value,"onUpdate:modelValue":d},null,8,["model-value"])])]),s.createElementVNode("div",b4e,[v4e,s.createElementVNode("div",S4e,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(n.value.firstHalf,(p,m)=>(s.openBlock(),s.createElementBlock("div",{key:`pa${m}`,class:s.normalizeClass(["details__body__button",{active:p.isSelected}]),onClick:f=>c(p)},s.toDisplayString(p.text),11,w4e))),128))])]),s.createElementVNode("div",T4e,[C4e,s.createElementVNode("div",k4e,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(n.value.secondHalf,(p,m)=>(s.openBlock(),s.createElementBlock("div",{key:`pa${m}`,class:s.normalizeClass(["details__body__button",{active:p.isSelected}]),onClick:f=>c(p)},s.toDisplayString(p.text),11,E4e))),128))])])],4))}},[["__scopeId","data-v-209a8861"]])},Symbol.toStringTag,{value:"Module"})),x4e=(e,t)=>{const a=e.__vccOpts||e;for(const[i,n]of t)a[i]=n;return a},N4e={props:{value:{type:Boolean,default:!1},textValue:String,icon:String,iconPosition:{type:String,default:"left"},iconSize:String,fontColor:{type:String,default:"#FFFFFF"},textDecoration:String,fontSize:{type:String,default:"16px"},fontStyle:String,fontFamily:{type:String,default:"Poppins-Regular"},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},borderRadius:{type:String,default:"0px"},borderType:{type:String,default:"solid"},borderWidth:{type:Number,default:0},borderColor:String,backgroundColor:{type:String,default:"none"},activeBackgroundColor:{type:String,default:"#000000"},activeBorderWidth:{type:Number,default:2},activeBorderType:{type:String,default:"solid"},activeBorderColor:{type:String,default:"#cbee6b"},activeColorText:{type:String,default:"#FFFFFF"},cursorType:{type:String,default:"default"},typeOnOff:{type:Boolean,default:!1}},watch:{value:{deep:!0,immediate:!0,handler(e){this.status=e}}},data(){return{status:!1}},computed:{customStyle(){return{height:this.height,width:this.width,backgroundColor:this.backgroundColor,borderRadius:this.borderRadius,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`,color:this.fontColor,textDecoration:this.textDecoration,cursor:this.cursorType,fontSize:this.fontSize,fontStyle:this.fontStyle,fontFamily:`${this.fontFamily} !important`}},customActive(){return{backgroundColor:this.activeBackgroundColor,color:this.activeColorText,border:`${this.activeBorderType} ${this.activeBorderWidth}px ${this.activeBorderColor}`}}},methods:{btnClick(e){this.$emit("click",e),this.typeOnOff&&(this.status=!this.status,this.$emit("status",this.status))}}},A4e=["src"],P4e={key:1,class:"text"},O4e=["src"];function B4e(e,t,a,i,n,r){return s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["button",n.status&&a.typeOnOff&&"button-active"]),style:s.normalizeStyle([r.customStyle,n.status&&a.typeOnOff&&r.customActive]),onClick:t[0]||(t[0]=(...o)=>r.btnClick&&r.btnClick(...o))},[a.icon&&a.iconPosition.toLowerCase()==="left"?(s.openBlock(),s.createElementBlock("img",{key:0,class:"icon",style:s.normalizeStyle({width:a.iconSize}),src:a.icon},null,12,A4e)):s.createCommentVNode("",!0),a.textValue?(s.openBlock(),s.createElementBlock("div",P4e,s.toDisplayString(a.textValue),1)):s.createCommentVNode("",!0),a.icon&&a.iconPosition.toLowerCase()==="right"?(s.openBlock(),s.createElementBlock("img",{key:2,class:"icon",style:s.normalizeStyle({width:a.iconSize}),src:a.icon},null,12,O4e)):s.createCommentVNode("",!0)],6)}const D4e=x4e(N4e,[["render",B4e],["__scopeId","data-v-1bfd444b"]]),L4e=(e,t)=>{const a=e.__vccOpts||e;for(const[i,n]of t)a[i]=n;return a},M4e={key:1},R4e={width:"10",height:"8",viewBox:"0 0 10 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},F4e=["fill"],V4e={__name:"GSC-Checkbox",props:{width:{type:String,default:"fit-content"},height:{type:String,default:"fit-content"},label:{type:String,default:""},labelColor:{type:String,default:"white"},fontFamily:{type:String,default:"sans-serif"},labelFontSize:{type:String,default:"12px"},modelValue:{type:Boolean,default:!1},justifyContent:{type:String,default:"flex-start"},alignItems:{type:String,default:"center"},boxBackgroundColor:{type:String,default:"#CBEE6B"},boxValueColor:{type:String,default:"#0d1d29"},boxValue:{type:[String,Number],default:""},boxPosition:{type:String,default:"left",validator(e){return["left","right","top","bottom"].includes(e)}},boxWidthAndHeight:{type:String,default:"16px"},boxBorderColor:{type:String,default:"#969da2"},boxBorderWidth:{type:String,default:"2px"},boxBorderRadius:{type:String,default:"4px"},boxValueFontSize:{type:String,default:"10px"},boxValueFontFamily:{type:String,default:"sans-serif"},avoidInteraction:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(e,{emit:t}){const a=e,i=s.ref(!1),n=s.computed(()=>{const c={color:a.boxValueColor,"font-family":a.fontFamily,height:a.boxWidthAndHeight,width:a.boxWidthAndHeight,minWidth:a.boxWidthAndHeight,"border-radius":a.boxBorderRadius};return i.value?(c["background-color"]=a.boxBackgroundColor,c.border=`solid ${a.boxBorderWidth} ${a.boxBackgroundColor}`):c.border=`solid ${a.boxBorderWidth} ${a.boxBorderColor}`,c}),r=s.computed(()=>({"font-family":a.boxValueFontFamily,"font-size":a.boxValueFontSize,color:a.boxValueColor,"line-height":1})),o=s.computed(()=>{const c={color:a.labelColor,"font-family":a.fontFamily,"font-size":a.labelFontSize};return(a.boxPosition==="left"||a.boxPosition==="right")&&(c[`margin-${a.boxPosition}`]="10px"),c});s.watch(()=>a.modelValue,c=>{c!==i.value&&(i.value=c)},{immediate:!0});function l(){a.avoidInteraction||(i.value=!i.value,t("update:modelValue",i.value))}return(c,d)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["checkbox",e.boxPosition]),onClick:l},[s.createElementVNode("div",{class:"checkbox__box",style:s.normalizeStyle(n.value)},[i.value?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[a.boxValue?(s.openBlock(),s.createElementBlock("div",{key:0,class:"checkbox__box__value",style:s.normalizeStyle(r.value)},s.toDisplayString(e.boxValue),5)):(s.openBlock(),s.createElementBlock("div",M4e,[(s.openBlock(),s.createElementBlock("svg",R4e,[s.createElementVNode("path",{d:"M9.77994 1.70133L4.10994 7.37133C3.96994 7.51133 3.77994 7.59133 3.57994 7.59133C3.37994 7.59133 3.18994 7.51133 3.04994 7.37133L0.219941 4.54133C-0.0700586 4.25133 -0.0700586 3.77133 0.219941 3.48133C0.509941 3.19133 0.989941 3.19133 1.27994 3.48133L3.57994 5.78133L8.71994 0.641328C9.00994 0.351328 9.48994 0.351328 9.77994 0.641328C10.0699 0.931328 10.0699 1.40133 9.77994 1.70133Z",fill:e.boxValueColor},null,8,F4e)]))]))],64)):s.createCommentVNode("",!0)],4),s.createElementVNode("div",{class:"checkbox__label",style:s.normalizeStyle(o.value)},s.toDisplayString(e.label),5)],2))}},U4e=L4e(V4e,[["__scopeId","data-v-dcd61b4d"]]),j4e=(e,t)=>{const a=e.__vccOpts||e;for(const[i,n]of t)a[i]=n;return a},ov={components:{GSCButton:D4e,GSCCheckbox:U4e},data(){return{update:0,all:!1,refreshBtn14:0,refreshBtn24:0,refreshBtn34:0,refreshBtn44:0,sectors:Array.from({length:16},(e,t)=>({sector:t+1,active:!1}))}},props:{backgroundColor:{type:String,default:"#2e3b46"},heightContainer:{type:String,default:"370px"},widthContainer:{type:String,default:"455px"},heightField:{type:Number,default:230},widthField:{type:Number,default:350},heightFieldGrid:{type:String,default:"230px"},widthFieldGrid:{type:String,default:"350px"},backgroundSectorActive:{type:String,default:"#cbee6b"},backgroundSectorDisabled:{type:String,default:"#2e3b46"},borderWidth:{type:Number,default:1},opacitySector:{type:Number,default:.5},borderColor:{type:String,default:"#FFFFFF"},colorLineField:{type:String,default:"#bfc2c5"},borderWidthLineField:{type:Number,default:2},value:{type:Array,default:()=>[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16]}},watch:{value:{deep:!0,immediate:!0,handler(e){this.sectors.forEach((t,a)=>{t.active=e.includes(a+1),this.validateField(a)}),this.$emit("update:modelValue",e)}},sectors:{handler(e){var t=[];for(let a=0;a<e.length;a++)e[a].active&&t.push(a+1);this.$emit("update:modelValue",t)},deep:!0}},computed:{translx(){var e=0;return this.widthField>305&&(e=this.widthField-305),e},transly(){var e=0;return this.heightField>195&&(e=this.heightField-195,e=e/2),e},translxcircle(){var e=0;return this.widthField>305&&(e=this.widthField-305,e=e/2),e}},methods:{clickAll(e){if(e)for(let t=0;t<this.sectors.length;t++)this.sectors[t].active=!0,this.validateField(t);else for(let t=0;t<this.sectors.length;t++)this.sectors[t].active=!0,this.validateField(t);this.status14=!0,this.status24=!0,this.status34=!0,this.status44=!0,this.refreshBtn14+=1,this.refreshBtn24+=1,this.refreshBtn34+=1,this.refreshBtn44+=1},selectSector(e){var t=0;this.sectors[e].active=!this.sectors[e].active;for(let a=0;a<this.sectors.length;a++)this.sectors[a].active&&(t+=1);t==0&&(this.sectors[e].active=!0),this.validateField(e)},btn14(e){this.sectors[0].active=e?this.sectors[0].active=!0:this.sectors[0].active=!1,this.sectors[1].active=e?this.sectors[1].active=!0:this.sectors[1].active=!1,this.sectors[2].active=e?this.sectors[2].active=!0:this.sectors[2].active=!1,this.sectors[3].active=e?this.sectors[3].active=!0:this.sectors[3].active=!1;var t=0;for(let a=0;a<this.sectors.length;a++)this.sectors[a].active&&(t+=1);t==0?(this.sectors[0].active=!0,this.sectors[1].active=!0,this.sectors[2].active=!0,this.sectors[3].active=!0,this.status14=!0,this.refreshBtn14+=1):this.status14=!1,t==16&&(this.all=!0,this.update+=1)},btn24(e){this.sectors[4].active=e?this.sectors[4].active=!0:this.sectors[4].active=!1,this.sectors[5].active=e?this.sectors[5].active=!0:this.sectors[5].active=!1,this.sectors[6].active=e?this.sectors[6].active=!0:this.sectors[6].active=!1,this.sectors[7].active=e?this.sectors[7].active=!0:this.sectors[7].active=!1;var t=0;for(let a=0;a<this.sectors.length;a++)this.sectors[a].active&&(t+=1);t==0?(this.sectors[4].active=!0,this.sectors[5].active=!0,this.sectors[6].active=!0,this.sectors[7].active=!0,this.status24=!0,this.refreshBtn24+=1):this.status24=!1,t==16&&(this.all=!0,this.update+=1)},btn34(e){this.sectors[8].active=e?this.sectors[8].active=!0:this.sectors[8].active=!1,this.sectors[9].active=e?this.sectors[9].active=!0:this.sectors[9].active=!1,this.sectors[10].active=e?this.sectors[10].active=!0:this.sectors[10].active=!1,this.sectors[11].active=e?this.sectors[11].active=!0:this.sectors[11].active=!1;var t=0;for(let a=0;a<this.sectors.length;a++)this.sectors[a].active&&(t+=1);t==0?(this.sectors[8].active=!0,this.sectors[9].active=!0,this.sectors[10].active=!0,this.sectors[11].active=!0,this.status34=!0,this.refreshBtn34+=1):this.status34=!1,t==16&&(this.all=!0,this.update+=1)},btn44(e){this.sectors[12].active=e?this.sectors[12].active=!0:this.sectors[12].active=!1,this.sectors[13].active=e?this.sectors[13].active=!0:this.sectors[13].active=!1,this.sectors[14].active=e?this.sectors[14].active=!0:this.sectors[14].active=!1,this.sectors[15].active=e?this.sectors[15].active=!0:this.sectors[15].active=!1;var t=0;for(let a=0;a<this.sectors.length;a++)this.sectors[a].active&&(t+=1);t==0?(this.sectors[12].active=!0,this.sectors[13].active=!0,this.sectors[14].active=!0,this.sectors[15].active=!0,this.status44=!0,this.refreshBtn44+=1):this.status44=!1,t==16&&(this.all=!0,this.update+=1)},validateField(e){(e===0||e===1||e===2||e===3)&&(this.status14=!!(this.sectors[0].active&&this.sectors[1].active&&this.sectors[2].active&&this.sectors[3].active)),(e===4||e===5||e===6||e===7)&&(this.status24=!!(this.sectors[4].active&&this.sectors[5].active&&this.sectors[6].active&&this.sectors[7].active)),(e===8||e===9||e===10||e===11)&&(this.status34=!!(this.sectors[8].active&&this.sectors[9].active&&this.sectors[10].active&&this.sectors[11].active)),(e===12||e===13||e===14||e===15)&&(this.status44=!!(this.sectors[12].active&&this.sectors[13].active&&this.sectors[14].active&&this.sectors[15].active)),this.status14&&this.status34&&this.status24&&this.status44?this.all=!0:this.all=!1,this.update+=1,this.status14&&(this.refreshBtn14+=1),this.status24&&(this.refreshBtn24+=1),this.status34&&(this.refreshBtn34+=1),this.status44&&(this.refreshBtn44+=1)}}},YA=()=>{s.useCssVars(e=>({"5d18a1c4":e.widthContainer,"4ff37fd1":e.heightContainer,f4a580e8:e.backgroundColor,"7e0a2eba":e.widthFieldGrid,"985472a0":e.heightFieldGrid}))},QA=ov.setup;ov.setup=QA?(e,t)=>(YA(),QA(e,t)):YA;const z4e=e=>(s.pushScopeId("data-v-6929519f"),e=e(),s.popScopeId(),e),H4e={class:"gsc-field"},q4e={class:"gsc-field__title-checked"},W4e=z4e(()=>s.createElementVNode("div",{class:"gsc-field__title-checked__title"},"Elige el area o zona de cancha",-1)),G4e={class:"gsc-field__title-checked__check-cont"},K4e={class:"gsc-field__container-field"},X4e={class:"gsc-field__container-field__field"},J4e={width:"100%",height:"100%",fill:"#2e3b46",xmlns:"http://www.w3.org/2000/svg"},Y4e=["stroke"],Q4e=["stroke","stroke-width"],Z4e=["stroke","stroke-width"],$4e=["stroke-width","stroke"],e3e=["fill","fill-opacity","stroke","stroke-width"],t3e=["fill","fill-opacity","stroke","stroke-width"],a3e=["fill","fill-opacity","stroke","stroke-width"],i3e=["fill","fill-opacity","stroke","stroke-width"],n3e=["fill","fill-opacity","stroke","stroke-width"],r3e=["fill","fill-opacity","stroke","stroke-width"],s3e=["fill","fill-opacity","stroke","stroke-width"],o3e=["fill","fill-opacity","stroke","stroke-width"],l3e=["fill","fill-opacity","stroke","stroke-width"],c3e=["fill","fill-opacity","stroke","stroke-width"],d3e=["fill","fill-opacity","stroke","stroke-width"],u3e=["fill","fill-opacity","stroke","stroke-width"],h3e=["fill","fill-opacity","stroke","stroke-width"],p3e=["fill","fill-opacity","stroke","stroke-width"],m3e=["fill","fill-opacity","stroke","stroke-width"],f3e=["fill","fill-opacity","stroke","stroke-width"],g3e={class:"gsc-field__container-field__bar-buttons"};function y3e(e,t,a,i,n,r){const o=s.resolveComponent("GSCCheckbox"),l=s.resolveComponent("GSCButton");return s.openBlock(),s.createElementBlock("div",H4e,[s.createElementVNode("div",q4e,[W4e,s.createElementVNode("div",G4e,[(s.openBlock(),s.createBlock(o,{label:"Todas las zonas","box-value-font-family":"Poppins-Regular","box-position":"right","onUpdate:modelValue":r.clickAll,value:n.all,key:n.update,"model-value":n.all},null,8,["onUpdate:modelValue","value","model-value"]))])]),s.createElementVNode("div",K4e,[s.createElementVNode("div",X4e,[(s.openBlock(),s.createElementBlock("svg",J4e,[s.createElementVNode("rect",{x:"1.5",y:"0.5",width:"100%",height:"100%",rx:"1.5",stroke:a.colorLineField},null,8,Y4e),s.createElementVNode("path",{style:s.normalizeStyle("transform: translate("+r.translx+"px, "+r.transly+"px);"),d:"M303.597 39.9799H263.371C262.817 39.9799 262.369 40.4301 262.371 40.984L262.842 155.176C262.845 155.726 263.292 156.172 263.842 156.172H302.884",stroke:a.colorLineField,"stroke-width":a.borderWidthLineField,"stroke-linecap":"square"},null,12,Q4e),s.createElementVNode("path",{style:s.normalizeStyle("transform: translateY("+r.transly+"px);"),class:"porteria1",d:"M1.09097 156.172L41.3162 156.172C41.8701 156.172 42.3185 155.722 42.3162 155.168L41.845 40.9758C41.8427 40.4252 41.3957 39.98 40.845 39.98L1.80338 39.98",stroke:a.colorLineField,"stroke-width":a.borderWidthLineField,"stroke-linecap":"square"},null,12,Z4e),s.createElementVNode("path",{style:s.normalizeStyle("transform: translate("+r.translxcircle+"px, "+r.transly+"px);"),class:"circle",d:"M182.911 97.4512C182.911 113.726 169.44 126.936 152.801 126.936C136.162 126.936 122.691 113.726 122.691 97.4512C122.691 81.1767 136.162 67.9662 152.801 67.9662C169.44 67.9662 182.911 81.1767 182.911 97.4512Z","stroke-width":a.borderWidthLineField,stroke:a.colorLineField},null,12,$4e),s.createElementVNode("rect",{x:"0%",y:"0%",width:"25%",height:"25%",fill:n.sectors[0].active?a.backgroundSectorActive:a.backgroundSectorDisabled,"fill-opacity":a.opacitySector,stroke:a.borderColor,"stroke-width":a.borderWidth,onClick:t[0]||(t[0]=c=>r.selectSector(0))},null,8,e3e),s.createElementVNode("rect",{x:"0%",y:"25%",width:"25%",height:"25%",fill:n.sectors[1].active?a.backgroundSectorActive:a.backgroundSectorDisabled,"fill-opacity":a.opacitySector,stroke:a.borderColor,"stroke-width":a.borderWidth,onClick:t[1]||(t[1]=c=>r.selectSector(1))},null,8,t3e),s.createElementVNode("rect",{x:"0%",y:"50%",width:"25%",height:"25%",fill:n.sectors[2].active?a.backgroundSectorActive:a.backgroundSectorDisabled,"fill-opacity":a.opacitySector,stroke:a.borderColor,"stroke-width":a.borderWidth,onClick:t[2]||(t[2]=c=>r.selectSector(2))},null,8,a3e),s.createElementVNode("rect",{x:"0%",y:"75%",width:"25%",height:"25%",fill:n.sectors[3].active?a.backgroundSectorActive:a.backgroundSectorDisabled,"fill-opacity":a.opacitySector,stroke:a.borderColor,"stroke-width":a.borderWidth,onClick:t[3]||(t[3]=c=>r.selectSector(3))},null,8,i3e),s.createElementVNode("rect",{x:"25%",y:"0%",width:"25%",height:"25%",fill:n.sectors[4].active?a.backgroundSectorActive:a.backgroundSectorDisabled,"fill-opacity":a.opacitySector,stroke:a.borderColor,"stroke-width":a.borderWidth,onClick:t[4]||(t[4]=c=>r.selectSector(4))},null,8,n3e),s.createElementVNode("rect",{x:"25%",y:"25%",width:"25%",height:"25%",fill:n.sectors[5].active?a.backgroundSectorActive:a.backgroundSectorDisabled,"fill-opacity":a.opacitySector,stroke:a.borderColor,"stroke-width":a.borderWidth,onClick:t[5]||(t[5]=c=>r.selectSector(5))},null,8,r3e),s.createElementVNode("rect",{x:"25%",y:"50%",width:"25%",height:"25%",fill:n.sectors[6].active?a.backgroundSectorActive:a.backgroundSectorDisabled,"fill-opacity":a.opacitySector,stroke:a.borderColor,"stroke-width":a.borderWidth,onClick:t[6]||(t[6]=c=>r.selectSector(6))},null,8,s3e),s.createElementVNode("rect",{x:"25%",y:"75%",width:"25%",height:"25%",fill:n.sectors[7].active?a.backgroundSectorActive:a.backgroundSectorDisabled,"fill-opacity":a.opacitySector,stroke:a.borderColor,"stroke-width":a.borderWidth,onClick:t[7]||(t[7]=c=>r.selectSector(7))},null,8,o3e),s.createElementVNode("rect",{x:"50%",y:"0%",width:"25%",height:"25%",fill:n.sectors[8].active?a.backgroundSectorActive:a.backgroundSectorDisabled,"fill-opacity":a.opacitySector,stroke:a.borderColor,"stroke-width":a.borderWidth,onClick:t[8]||(t[8]=c=>r.selectSector(8))},null,8,l3e),s.createElementVNode("rect",{x:"50%",y:"25%",width:"25%",height:"25%",fill:n.sectors[9].active?a.backgroundSectorActive:a.backgroundSectorDisabled,"fill-opacity":a.opacitySector,stroke:a.borderColor,"stroke-width":a.borderWidth,onClick:t[9]||(t[9]=c=>r.selectSector(9))},null,8,c3e),s.createElementVNode("rect",{x:"50%",y:"50%",width:"25%",height:"25%",fill:n.sectors[10].active?a.backgroundSectorActive:a.backgroundSectorDisabled,"fill-opacity":a.opacitySector,stroke:a.borderColor,"stroke-width":a.borderWidth,onClick:t[10]||(t[10]=c=>r.selectSector(10))},null,8,d3e),s.createElementVNode("rect",{x:"50%",y:"75%",width:"25%",height:"25%",fill:n.sectors[11].active?a.backgroundSectorActive:a.backgroundSectorDisabled,"fill-opacity":a.opacitySector,stroke:a.borderColor,"stroke-width":a.borderWidth,onClick:t[11]||(t[11]=c=>r.selectSector(11))},null,8,u3e),s.createElementVNode("rect",{x:"75%",y:"0%",width:"25%",height:"25%",fill:n.sectors[12].active?a.backgroundSectorActive:a.backgroundSectorDisabled,"fill-opacity":a.opacitySector,stroke:a.borderColor,"stroke-width":a.borderWidth,onClick:t[12]||(t[12]=c=>r.selectSector(12))},null,8,h3e),s.createElementVNode("rect",{x:"75%",y:"25%",width:"25%",height:"25%",fill:n.sectors[13].active?a.backgroundSectorActive:a.backgroundSectorDisabled,"fill-opacity":a.opacitySector,stroke:a.borderColor,"stroke-width":a.borderWidth,onClick:t[13]||(t[13]=c=>r.selectSector(13))},null,8,p3e),s.createElementVNode("rect",{x:"75%",y:"50%",width:"25%",height:"25%",fill:n.sectors[14].active?a.backgroundSectorActive:a.backgroundSectorDisabled,"fill-opacity":a.opacitySector,stroke:a.borderColor,"stroke-width":a.borderWidth,onClick:t[14]||(t[14]=c=>r.selectSector(14))},null,8,m3e),s.createElementVNode("rect",{x:"75%",y:"75%",width:"25%",height:"25%",fill:n.sectors[15].active?a.backgroundSectorActive:a.backgroundSectorDisabled,"fill-opacity":a.opacitySector,stroke:a.borderColor,"stroke-width":a.borderWidth,onClick:t[15]||(t[15]=c=>r.selectSector(15))},null,8,f3e)]))]),s.createElementVNode("div",g3e,[(s.openBlock(),s.createBlock(l,{"text-value":"1/4 tos","font-size":"12px",height:"26px",width:"65px","type-on-off":!0,"border-width":1,"font-color":"#bfc2c5","border-color":"#8c9399","border-radius":"4px","font-family":"Poppins-Medium","active-border-width":1,"background-color":"","active-background-color":"#cbee6b33",ref:"btn14",onStatus:r.btn14,key:n.refreshBtn14,value:e.status14},null,8,["onStatus","value"])),(s.openBlock(),s.createBlock(l,{"text-value":"2/4 tos","font-size":"12px",height:"26px",width:"65px","type-on-off":!0,"border-width":1,"font-color":"#bfc2c5","border-color":"#8c9399","border-radius":"4px","font-family":"Poppins-Medium","active-border-width":1,"background-color":"","active-background-color":"#cbee6b33",ref:"btn24",onStatus:r.btn24,key:n.refreshBtn24,value:e.status24},null,8,["onStatus","value"])),(s.openBlock(),s.createBlock(l,{"text-value":"3/4 tos","font-size":"12px",height:"26px",width:"65px","type-on-off":!0,"border-width":1,"font-color":"#bfc2c5","border-color":"#8c9399","border-radius":"4px","font-family":"Poppins-Medium","active-border-width":1,"background-color":"","active-background-color":"#cbee6b33",ref:"btn34",onStatus:r.btn34,key:n.refreshBtn34,value:e.status34},null,8,["onStatus","value"])),(s.openBlock(),s.createBlock(l,{"text-value":"4/4 tos","font-size":"12px",height:"26px",width:"65px","type-on-off":!0,"border-width":1,"font-color":"#bfc2c5","border-color":"#8c9399","border-radius":"4px","font-family":"Poppins-Medium","active-border-width":1,"background-color":"","active-background-color":"#cbee6b33",ref:"btn44",onStatus:r.btn44,key:n.refreshBtn44,value:e.status44},null,8,["onStatus","value"]))])])])}const _3e=j4e(ov,[["render",y3e],["__scopeId","data-v-6929519f"]]),b3e={class:"filter-field"},v3e=Object.freeze(Object.defineProperty({__proto__:null,default:_t({__name:"FilterField",setup(e){const t=s.ref(Array.from({length:16},(i,n)=>n+1));function a(i){}return(i,n)=>(s.openBlock(),s.createElementBlock("div",b3e,[s.createVNode(s.unref(_3e),{width:"100%","background-color":"#2E3B46",value:t.value,"onUpdate:modelValue":a},null,8,["value"])]))}},[["__scopeId","data-v-95dd6111"]])},Symbol.toStringTag,{value:"Module"}));ps.GSCLanding=X5e,Object.defineProperty(ps,Symbol.toStringTag,{value:"Module"})});
299
+ */const Sa={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"}},jA={itemsToShow:{default:Sa.itemsToShow,type:Number},itemsToScroll:{default:Sa.itemsToScroll,type:Number},wrapAround:{default:Sa.wrapAround,type:Boolean},throttle:{default:Sa.throttle,type:Number},snapAlign:{default:Sa.snapAlign,validator(e){return["start","end","center","center-even","center-odd"].includes(e)}},transition:{default:Sa.transition,type:Number},breakpoints:{default:Sa.breakpoints,type:Object},autoplay:{default:Sa.autoplay,type:Number},pauseAutoplayOnHover:{default:Sa.pauseAutoplayOnHover,type:Boolean},modelValue:{default:void 0,type:Number},mouseDrag:{default:Sa.mouseDrag,type:Boolean},touchDrag:{default:Sa.touchDrag,type:Boolean},dir:{default:Sa.dir,validator(e){return["rtl","ltr"].includes(e)}},i18n:{default:Sa.i18n,type:Object},settings:{default(){return{}},type:Object}};function mke({config:e,slidesCount:t}){const{snapAlign:a,wrapAround:i,itemsToShow:n=1}=e;if(i)return Math.max(t-1,0);let r;switch(a){case"start":r=t-n;break;case"end":r=t-1;break;case"center":case"center-odd":r=t-Math.ceil((n-.5)/2);break;case"center-even":r=t-Math.ceil(n/2);break;default:r=0;break}return Math.max(r,0)}function fke({config:e,slidesCount:t}){const{wrapAround:a,snapAlign:i,itemsToShow:n=1}=e;let r=0;if(a||n>t)return r;switch(i){case"start":r=0;break;case"end":r=n-1;break;case"center":case"center-odd":r=Math.floor((n-1)/2);break;case"center-even":r=Math.floor((n-2)/2);break;default:r=0;break}return r}function ev({val:e,max:t,min:a}){return t<a?e:Math.min(Math.max(e,a),t)}function gke({config:e,currentSlide:t,slidesCount:a}){const{snapAlign:i,wrapAround:n,itemsToShow:r=1}=e;let o=t;switch(i){case"center":case"center-odd":o-=(r-1)/2;break;case"center-even":o-=(r-2)/2;break;case"end":o-=r-1;break}return n?o:ev({val:o,max:a-r,min:0})}function zA(e){return e?e.reduce((t,a)=>{var i;return a.type===s.Fragment?[...t,...zA(a.children)]:((i=a.type)===null||i===void 0?void 0:i.name)==="CarouselSlide"?[...t,a]:t},[]):[]}function tv({val:e,max:t,min:a=0}){return e>t?tv({val:e-(t+1),max:t,min:a}):e<a?tv({val:e+(t+1),max:t,min:a}):e}function yke(e,t){let a;return t?function(...i){const n=this;a||(e.apply(n,i),a=!0,setTimeout(()=>a=!1,t))}:e}function _ke(e,t){let a;return function(...i){a&&clearTimeout(a),a=setTimeout(()=>{e(...i),a=null},t)}}function bke(e="",t={}){return Object.entries(t).reduce((a,[i,n])=>a.replace(`{${i}}`,String(n)),e)}var vke=s.defineComponent({name:"ARIA",setup(){const e=s.inject("config",s.reactive(Object.assign({},Sa))),t=s.inject("currentSlide",s.ref(0)),a=s.inject("slidesCount",s.ref(0));return()=>s.h("div",{class:["carousel__liveregion","carousel__sr-only"],"aria-live":"polite","aria-atomic":"true"},bke(e.i18n.itemXofY,{currentSlide:t.value+1,slidesCount:a.value}))}}),Ske=s.defineComponent({name:"Carousel",props:jA,setup(e,{slots:t,emit:a,expose:i}){var n;const r=s.ref(null),o=s.ref([]),l=s.ref(0),c=s.ref(0),d=s.reactive(Object.assign({},Sa));let u=Object.assign({},Sa),h;const p=s.ref((n=e.modelValue)!==null&&n!==void 0?n:0),m=s.ref(0),f=s.ref(0),b=s.ref(0),_=s.ref(0);let x,D;s.provide("config",d),s.provide("slidesCount",c),s.provide("currentSlide",p),s.provide("maxSlide",b),s.provide("minSlide",_),s.provide("slideWidth",l);function j(){h=Object.assign({},e.breakpoints),u=Object.assign(Object.assign(Object.assign({},u),e),{i18n:Object.assign(Object.assign({},u.i18n),e.i18n),breakpoints:void 0}),B(u)}function O(){if(!h||!Object.keys(h).length)return;const W=Object.keys(h).map(Se=>Number(Se)).sort((Se,Ge)=>+Ge-+Se);let ke=Object.assign({},u);W.some(Se=>{const Ge=window.matchMedia(`(min-width: ${Se}px)`).matches;return Ge&&(ke=Object.assign(Object.assign({},ke),h[Se])),Ge}),B(ke)}function B(W){Object.entries(W).forEach(([ke,Se])=>d[ke]=Se)}const M=_ke(()=>{O(),L()},16);function L(){if(!r.value)return;const W=r.value.getBoundingClientRect();l.value=W.width/d.itemsToShow}function J(){c.value<=0||(f.value=Math.ceil((c.value-1)/2),b.value=mke({config:d,slidesCount:c.value}),_.value=fke({config:d,slidesCount:c.value}),d.wrapAround||(p.value=ev({val:p.value,max:b.value,min:_.value})))}s.onMounted(()=>{s.nextTick(()=>L()),setTimeout(()=>L(),1e3),O(),Fe(),window.addEventListener("resize",M,{passive:!0}),a("init")}),s.onUnmounted(()=>{D&&clearTimeout(D),x&&clearInterval(x),window.removeEventListener("resize",M,{passive:!0})});let U=!1;const ne={x:0,y:0},le={x:0,y:0},Z=s.reactive({x:0,y:0}),re=s.ref(!1),Ce=s.ref(!1),ve=()=>{re.value=!0},pe=()=>{re.value=!1};function z(W){["INPUT","TEXTAREA","SELECT"].includes(W.target.tagName)||(U=W.type==="touchstart",U||W.preventDefault(),!(!U&&W.button!==0||te.value)&&(ne.x=U?W.touches[0].clientX:W.clientX,ne.y=U?W.touches[0].clientY:W.clientY,document.addEventListener(U?"touchmove":"mousemove",$,!0),document.addEventListener(U?"touchend":"mouseup",ae,!0)))}const $=yke(W=>{Ce.value=!0,le.x=U?W.touches[0].clientX:W.clientX,le.y=U?W.touches[0].clientY:W.clientY;const ke=le.x-ne.x,Se=le.y-ne.y;Z.y=Se,Z.x=ke},d.throttle);function ae(){const W=d.dir==="rtl"?-1:1,ke=Math.sign(Z.x)*.4,Se=Math.round(Z.x/l.value+ke)*W;if(Se&&!U){const Ge=gt=>{gt.stopPropagation(),window.removeEventListener("click",Ge,!0)};window.addEventListener("click",Ge,!0)}_e(p.value-Se),Z.x=0,Z.y=0,Ce.value=!1,document.removeEventListener(U?"touchmove":"mousemove",$,!0),document.removeEventListener(U?"touchend":"mouseup",ae,!0)}function Fe(){!d.autoplay||d.autoplay<=0||(x=setInterval(()=>{d.pauseAutoplayOnHover&&re.value||we()},d.autoplay))}function se(){x&&(clearInterval(x),x=null),Fe()}const te=s.ref(!1);function _e(W){const ke=d.wrapAround?W:ev({val:W,max:b.value,min:_.value});p.value===ke||te.value||(a("slide-start",{slidingToIndex:W,currentSlideIndex:p.value,prevSlideIndex:m.value,slidesCount:c.value}),te.value=!0,m.value=p.value,p.value=ke,D=setTimeout(()=>{if(d.wrapAround){const Se=tv({val:ke,max:b.value,min:0});Se!==p.value&&(p.value=Se,a("loop",{currentSlideIndex:p.value,slidingToIndex:W}))}a("update:modelValue",p.value),a("slide-end",{currentSlideIndex:p.value,prevSlideIndex:m.value,slidesCount:c.value}),te.value=!1,se()},d.transition))}function we(){_e(p.value+d.itemsToScroll)}function ge(){_e(p.value-d.itemsToScroll)}const ee={slideTo:_e,next:we,prev:ge};s.provide("nav",ee),s.provide("isSliding",te);const ce=s.computed(()=>gke({config:d,currentSlide:p.value,slidesCount:c.value}));s.provide("slidesToScroll",ce);const X=s.computed(()=>{const W=d.dir==="rtl"?-1:1,ke=ce.value*l.value*W;return{transform:`translateX(${Z.x-ke}px)`,transition:`${te.value?d.transition:0}ms`,margin:d.wrapAround?`0 -${c.value*l.value}px`:"",width:"100%"}});function R(){j(),O(),J(),L(),se()}Object.keys(jA).forEach(W=>{["modelValue"].includes(W)||s.watch(()=>e[W],R)}),s.watch(()=>e.modelValue,W=>{W!==p.value&&_e(Number(W))}),s.watch(c,J),a("before-init"),j();const he={config:d,slidesCount:c,slideWidth:l,next:we,prev:ge,slideTo:_e,currentSlide:p,maxSlide:b,minSlide:_,middleSlide:f};i({updateBreakpointsConfigs:O,updateSlidesData:J,updateSlideWidth:L,initDefaultConfigs:j,restartCarousel:R,slideTo:_e,next:we,prev:ge,nav:ee,data:he});const be=t.default||t.slides,Me=t.addons,We=s.reactive(he);return()=>{const W=zA(be==null?void 0:be(We)),ke=(Me==null?void 0:Me(We))||[];W.forEach((Ye,Ze)=>Ye.props.index=Ze);let Se=W;if(d.wrapAround){const Ye=W.map((Bt,rt)=>s.cloneVNode(Bt,{index:-W.length+rt,isClone:!0,key:`clone-before-${rt}`})),Ze=W.map((Bt,rt)=>s.cloneVNode(Bt,{index:W.length+rt,isClone:!0,key:`clone-after-${rt}`}));Se=[...Ye,...W,...Ze]}o.value=W,c.value=Math.max(W.length,1);const Ge=s.h("ol",{class:"carousel__track",style:X.value,onMousedownCapture:d.mouseDrag?z:null,onTouchstartPassiveCapture:d.touchDrag?z:null},Se),gt=s.h("div",{class:"carousel__viewport"},Ge);return s.h("section",{ref:r,class:{carousel:!0,"is-sliding":te.value,"is-dragging":Ce.value,"is-hover":re.value,"carousel--rtl":d.dir==="rtl"},dir:d.dir,"aria-label":d.i18n.ariaGallery,tabindex:"0",onMouseenter:ve,onMouseleave:pe},[gt,ke,s.h(vke)])}}}),HA;(function(e){e.arrowUp="arrowUp",e.arrowDown="arrowDown",e.arrowRight="arrowRight",e.arrowLeft="arrowLeft"})(HA||(HA={}));var wke=s.defineComponent({name:"CarouselSlide",props:{index:{type:Number,default:1},isClone:{type:Boolean,default:!1}},setup(e,{slots:t}){const a=s.inject("config",s.reactive(Object.assign({},Sa))),i=s.inject("currentSlide",s.ref(0)),n=s.inject("slidesToScroll",s.ref(0)),r=s.inject("isSliding",s.ref(!1)),o=()=>e.index===i.value,l=()=>e.index===i.value-1,c=()=>e.index===i.value+1,d=()=>{const u=Math.floor(n.value),h=Math.ceil(n.value+a.itemsToShow-1);return e.index>=u&&e.index<=h};return()=>{var u;return s.h("li",{style:{width:`${100/a.itemsToShow}%`},class:{carousel__slide:!0,"carousel__slide--clone":e.isClone,"carousel__slide--visible":d(),"carousel__slide--active":o(),"carousel__slide--prev":l(),"carousel__slide--next":c(),"carousel__slide--sliding":r.value},"aria-hidden":!d()},(u=t.default)===null||u===void 0?void 0:u.call(t))}}});const Tke=(e,t)=>{const a=e.__vccOpts||e;for(const[i,n]of t)a[i]=n;return a},Cke=e=>(s.pushScopeId("data-v-786335f9"),e=e(),s.popScopeId(),e),kke={class:"gsc-carousel"},Eke={key:0},Ike=Cke(()=>s.createElementVNode("div",null,"no hay",-1)),xke=[Ike],Nke={class:"gsc-carousel__2d__slides"},Ake={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Pke=["fill"],Oke={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Bke=["fill"],Dke={class:"gsc-carousel__2d__navigation"},Lke={width:"8",height:"15",viewBox:"0 0 8 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Mke=["stroke"],Rke={key:1,class:"gsc-carousel__2d__navigation__pagination"},Fke=["onClick"],Vke={width:"7",height:"15",viewBox:"0 0 7 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Uke=["stroke"],jke={__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(t=>t 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"},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:t,emit:a}){const i=e;s.useCssVars(f=>({"1c85f8d3":e.slideLeftArrowBackgroundImage,"02777ea1":e.slidesArrowsLeftAndRight,"3878fa18":e.slideRightArrowBackgroundImage,d7f8c7c4:e.marginTop,dc571484:e.secondarySlidesOpacity}));const n=s.ref(null),r=s.ref({}),o=s.ref(0),l=s.ref(!1);s.watch(n,f=>{f&&l.value?(l.value=!1,c(i.items)):f&&f.slideTo&&f.slideTo(o.value)},{deep:!0}),s.watch(()=>i.currentItemIndex,f=>{o.value!==f&&h(f)}),s.watch(()=>i.items,f=>{n.value?c(f):l.value=!0},{immediate:!0});function c(f){if(f&&f.length&&n.value){if(i.defaultItemByProp){const b=i.items.findIndex(_=>_[i.defaultItemByProp.propName]===i.defaultItemByProp.value);b!==-1?(o.value=b,r.value=f[b]):(o.value=0,r.value=f[0])}else o.value=i.defaultItemByIndex,r.value=f[i.defaultItemByIndex];n.value.slideTo&&n.value.slideTo(o.value),a("input",{selectedItem:r.value,selectedItemIndex:o.value})}}function d(){n.value&&n.value.next()}function u(){n.value&&n.value.prev()}function h(f){n.value&&n.value.slideTo(f)}function p(f){n.value.slideTo(f)}function m(f){const b=f.slidingToIndex<0?i.items.length-1:f.slidingToIndex===i.items.length?0:f.slidingToIndex;o.value=b,r.value=i.items[b],a("update:currentItemIndex",b),a("input",{selectedItem:r.value,selectedItemIndex:o.value})}return t({prev:u,next:d,slideTo:h}),(f,b)=>(s.openBlock(),s.createElementBlock("div",kke,[i.is3d?(s.openBlock(),s.createElementBlock("div",Eke,xke)):(s.openBlock(),s.createElementBlock("div",{key:1,class:s.normalizeClass(["gsc-carousel__2d",{"main-slide-priority":e.isMainSlidePriority}])},[s.createElementVNode("div",Nke,[s.createVNode(s.unref(Ske),{ref_key:"carousel2d",ref:n,"items-to-show":e.itemsToShow,"wrap-around":e.wrapAround,onSlideStart:m},{default:s.withCtx(()=>[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(e.items,(_,x)=>(s.openBlock(),s.createBlock(s.unref(wke),{key:x},{default:s.withCtx(()=>[s.renderSlot(f.$slots,"default",{item:_},void 0,!0)]),_:2},1024))),128))]),_:3},8,["items-to-show","wrap-around"])]),e.areSlidesArrowsVisible?(s.openBlock(),s.createElementBlock("div",{key:0,class:"gsc-carousel__2d__arrow-left",onClick:b[0]||(b[0]=_=>n.value.prev())},[s.createElementVNode("div",{class:s.normalizeClass(["gsc-carousel__2d__slide-button",{rounded:e.areSlidesArrowsRounded}])},[(s.openBlock(),s.createElementBlock("svg",Ake,[s.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,Pke)]))],2)])):s.createCommentVNode("",!0),e.areSlidesArrowsVisible?(s.openBlock(),s.createElementBlock("div",{key:1,class:"gsc-carousel__2d__arrow-right",onClick:b[1]||(b[1]=_=>d())},[s.createElementVNode("div",{class:s.normalizeClass(["gsc-carousel__2d__slide-button",{rounded:e.areSlidesArrowsRounded}])},[(s.openBlock(),s.createElementBlock("svg",Oke,[s.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,Bke)]))],2)])):s.createCommentVNode("",!0),s.createElementVNode("div",Dke,[e.areNavigationArrowsVisible?(s.openBlock(),s.createElementBlock("div",{key:0,class:"gsc-carousel__2d__navigation__arrow-left",onClick:b[2]||(b[2]=_=>u())},[(s.openBlock(),s.createElementBlock("svg",Lke,[s.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:i.arrowsColor},null,8,Mke)]))])):s.createCommentVNode("",!0),e.isPaginationVisible?(s.openBlock(),s.createElementBlock("div",Rke,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(e.items,(_,x)=>(s.openBlock(),s.createElementBlock("div",{key:`i-${x}`,class:"gsc-carousel__2d__navigation__pagination__item",style:s.normalizeStyle({height:`${i.navigationHeight}px`,width:`${o.value===x?i.navigationActiveWidth:i.navigationActiveWidth/2}px`,borderRadius:`${i.navigationBorderRadius}px`,backgroundColor:`${o.value===x?i.navigationActiveColor:i.navigationColor}`,transition:"all 0.1s ease-in-out"}),onClick:D=>p(x)},null,12,Fke))),128))])):s.createCommentVNode("",!0),e.areNavigationArrowsVisible?(s.openBlock(),s.createElementBlock("div",{key:2,class:"gsc-carousel__2d__navigation__arrow-right",onClick:b[3]||(b[3]=_=>n.value.next())},[(s.openBlock(),s.createElementBlock("svg",Vke,[s.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:i.arrowsColor},null,8,Uke)]))])):s.createCommentVNode("",!0)])],2))]))}},zke=Tke(jke,[["__scopeId","data-v-786335f9"]]),Hke={class:"carousel-video-player"},qke={class:"video-container"},Wke=["id"],Gke={__name:"CarouselVideoPlayer",props:{play:{type:Object,required:!0},videojs:{type:Function,required:!0}},emits:["play-ended"],setup(e,{emit:t}){const a=e,i=t,n=s.ref(null),r=s.computed(()=>`p-${a.play.playId}`);function o(){n.value=a.videojs(r.value,{controlBar:{fullscreenToggle:!1}}),n.value.src({type:"video/mp4",src:`https://golstatsbets.blob.core.windows.net/video-player/${a.play.gameId}_1.mp4`}),n.value.offset({start:a.play.startSeconds,end:a.play.endSeconds}),n.value.on("ended",()=>{i("play-ended")}),a.play.videoPlayer=n}return s.onMounted(()=>{setTimeout(()=>{o()},10)}),(l,c)=>(s.openBlock(),s.createElementBlock("div",Hke,[s.createElementVNode("div",qke,[s.createElementVNode("video",{id:r.value,class:"video-js",controls:"",preload:"auto","data-setup":"{}"},null,8,Wke)])]))}},Kke=_t(Gke,[["__scopeId","data-v-94cf8cdf"]]),Xke=e=>(s.pushScopeId("data-v-ef0e226a"),e=e(),s.popScopeId(),e),Jke=Xke(()=>s.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},[s.createElementVNode("path",{d:"M5 15L15 5",stroke:"white","stroke-width":"1.7","stroke-miterlimit":"10","stroke-linecap":"round","stroke-linejoin":"round"}),s.createElementVNode("path",{d:"M15 15L5 5",stroke:"white","stroke-width":"1.7","stroke-miterlimit":"10","stroke-linecap":"round","stroke-linejoin":"round"})],-1)),Yke=[Jke],Qke={class:"carousel-full-screen__carousel"},Zke={class:"carousel-full-screen__carousel__video-player"},$ke={__name:"CarouselFullScreen",props:{playerQueue:{type:Array,default:()=>[]},playlistIndex:{type:Number,default:0},initialPlay:{type:Object,default:()=>({})},videojs:{type:Function,required:!0}},emits:["close"],setup(e,{emit:t}){const a=e,i=t,n=s.ref({wrapAround:!1,itemsToShow:1.2,isMainSlidePriority:!0,areSlidesArrowsVisible:!0,areNavigationArrowsVisible:!1,slideLeftArrowBackgroundImage:"none",slideRightArrowBackgroundImage:"none"}),r=s.ref(0),o=s.ref(0),l=s.ref(null);function c(){return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}function d(){const m=document.getElementById("carousel-swipe"),f=window.screen.orientation;f.angle==90&&c()||window.innerWidth<window.innerHeight&&c()?m.classList.remove("landscape"):(f.angle==0&&c()||window.innerWidth>window.innerHeight&&c())&&m.classList.add("landscape")}function u({selectedItemIndex:m}){const f=m-r.value;o.value+=f;const b=a.playerQueue[r.value],_=a.playerQueue[m];b.videoPlayer&&b.videoPlayer.pause(),_.videoPlayer&&_.videoPlayer.play(),r.value=m}function h(){l.value&&l.value.next()}function p(){const m=a.playlistIndex+o.value;o.value=0,r.value=0,i("close",m)}return s.onMounted(()=>{window.addEventListener("orientationchange",d),setTimeout(()=>{const m=document.getElementsByClassName("video-element");m&&m.length&&Array.from(m).forEach((f,b)=>{f.id=`plyrFS${b+1}`})},100)}),s.onBeforeUnmount(()=>{a.playerQueue.forEach(m=>{m.videoPlayer&&(m.videoPlayer.pause(),m.videoPlayer.dispose())})}),(m,f)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["carousel-full-screen",{landscape:c()}]),id:"carousel-swipe"},[s.createElementVNode("div",{class:"carousel-full-screen__close",onClick:p},Yke),s.createElementVNode("div",Qke,[s.createVNode(s.unref(zke),s.mergeProps({ref_key:"gscCarousel",ref:l},n.value,{items:e.playerQueue,"default-item-by-prop":{propName:"playId",value:e.initialPlay.playId},onInput:u}),{default:s.withCtx(({item:b})=>[s.createElementVNode("div",Zke,[s.createVNode(Kke,{videojs:e.videojs,play:b,onPlayEnded:h},null,8,["videojs","play"])])]),_:1},16,["items","default-item-by-prop"])])],2))}},eEe=_t($ke,[["__scopeId","data-v-ef0e226a"]]),tEe=zd(),Ji=Jye();let mu=null;const fu=["goals","bestPlays"],ze={1:{name:"Oportunidad de Gol",weighing:3},2:{name:"Gol",weighing:1},3:{name:"Autogol",weighing:2},4:{name:"Tarjeta Amarilla",weighing:5},5:{name:"Tarjeta Roja",weighing:4},6:{name:"Penal Recibido",weighing:6},7:{name:"Atajada",weighing:8},8:{name:"Asistencia",weighing:9},9:{name:"Participación en Gol",weighing:14},10:{name:"Sobresaliente",weighing:20},11:{name:"Centro Rematado",weighing:11},12:{name:"Corner Rematado",weighing:12},13:{name:"Tiro Libre Rematado",weighing:13},14:{name:"1vs1 Exitoso Ofensivo",weighing:16},15:{name:"1vs1 Exitoso Defensivo",weighing:18},16:{name:"Pase Filtrado",weighing:15},17:{name:"Balón ganado en Área Propia",weighing:19},18:{name:"Balón Recuperado",weighing:17},19:{name:"Gol Recibido",weighing:7},20:{name:"Pases acertados",weighing:100},21:{name:"Balones recuperados en disputa",weighing:100},22:{name:"Asistencias",weighing:100},23:{name:"Participaciones en gol",weighing:100},24:{name:"Tiros a gol",weighing:100},25:{name:"Tiros a gol que llegaron a la portería",weighing:100},26:{name:"Cabeceos en área rival",weighing:100},27:{name:"Cabeceos en área propia",weighing:100},28:{name:"Centros",weighing:100},29:{name:"Centros acertados",weighing:100},30:{name:"1vs1 exitosos ofensivo",weighing:100},31:{name:"1vs1 exitosos ofensivo que terminaron en gol",weighing:100},32:{name:"1vs1 defensivos exitoso",weighing:100},33:{name:"Rechaces",weighing:100},34:{name:"Balones ganados en área rival",weighing:100},35:{name:"Balones ganados en área propia",weighing:100},36:{name:"Faltas cometidas",weighing:100},37:{name:"Faltas recibidas",weighing:100},38:{name:"Tarjetas amarillas",weighing:100},39:{name:"Tarjetas rojas",weighing:100},40:{name:"Atajadas",weighing:100},41:{name:"Tiros de Esquina",weighing:100,bluer:!0},42:{name:"Balones recuperados en cancha rival",weighing:100},43:{name:"Origen de gol",weighing:10}},av={player:{"12-55":ze[2]},gamesAndTeams:{"12-55":ze[2],"54_r-35_r":ze[3]}},Yi={games:{"607-608":ze[1],"12-55":ze[2],"54-35":ze[3],"14-52":ze[4],"15-53":ze[5],"466-477":ze[6]},team:{"607-608":ze[1],"12-55":ze[2],"54-35":ze[3],"14-52":ze[4],"15-53":ze[5],"466-477":ze[6],"40-257":ze[19],39:ze[7]},player:{regular:{12:ze[2],35:ze[3],10:ze[8],27:ze[9],607:ze[1],61:ze[43],519:ze[10],"98-101-109-112":ze[11],"121-122-127-128-135-136-141-142":ze[12],"161-170-179":ze[13],702:ze[14],730:ze[15],466:ze[6],217:ze[16],"211-232-235-239-242-282-284-289-291-296":ze[17],"485-486-487-488":ze[18],14:ze[4],15:ze[5],257:ze[19]},goalkeeper:{55:ze[2],324:ze[8],323:ze[9],608:ze[1],39:ze[7],774:ze[14],802:ze[15],52:ze[4],53:ze[5],40:ze[19],54:ze[3]}}},aEe={"2-20":ze[20],483:ze[21],10:ze[22],27:ze[23],510:ze[24],"537-540-544-547":ze[25],328:ze[26],"231-280-238-287-406-294":ze[27],"13-25":ze[28],"98-101-104-105-109-112-115-116":ze[29],4:ze[30],88:ze[31],5:ze[32],34:ze[33],11:ze[34],23:ze[35],17:ze[36],18:ze[37],14:ze[38],15:ze[39],39:ze[40],"31-32":ze[41],"225-224":ze[42]},iEe=["Ene","Feb","Mar","Abr","May","Jun","Jul","Ago","Sep","Oct","Nov","Dic"],nEe=1,iv={components:{CarouselFullScreen:eEe,SearchFilters:pke,VideoSearch:KSe,VideoPlayerControls:hde,VideoPlayer:Xde,CurrentMatch:Zse,MatchesList:toe,GSCPlayerTeamGame:ade,GscSwitchComponent:CE},props:{section:{type:Boolean,default:!0},componentWidth:{type:Number,default:767,validator(e){return e>0}},backgroundColor:{type:String,default:"#172531"},user:{type:Object,default:()=>({})},token:{type:String,default:""},isGSUser:{type:Boolean,default:!0},tournamentSelectedId:{type:Number,default:0},seasonSelectedId:{type:Number,default:0},tournamentsForMediaPlayer:{type:[Map],default:()=>new Map},isFromMexico:{type:Boolean,default:!0},gsData:{type:[Object,null],default:null},isFirstRow:{type:Boolean,default:!1},custom:{type:[Object,null],default:null},autoFillVideos:{type:Boolean,default:!1},isPlayerUser:{type:Boolean,default:!1},isGoalkeeper:{type:[Boolean,Number],default:!1},playerId:{type:Number,default:0},isModalMode:{type:Boolean,default:!0},modalInitialData:{type:Object,default:null},isModal:{type:Boolean,default:!1}},data(){return{videojsLocal:null,player:null,lastSearchResult:null,mobileClass:!1,currentMobileTab:"Estás viendo",currentTabMoreVideos:"Resumen",booleanIsFirstIteration:!0,numberCurrentSeasonId:0,numberLastActionId:0,numberPlayerSpeed:1,numberOptionsMenuTop:0,numberOptionsMenuLeft:0,booleanIsVideoPlayerPlaying:!1,booleanIsOptionsMenuVisible:!1,booleanIsSpeedModalVisible:!1,showModalConfirm:!1,showConfirmPlaylist:!0,showModal:!1,seasonId:0,plays:[],playerQueue:[],playsType:fu[0],playsTypeOptions:fu,playInfo:{},teamsMap:new Map,gamesMap:new Map,roundsMap:new Map,mediaPlayerMode:"games",playerPosition:0,playlistTournament:null,showImage:!1,seasonName:"",playlistSeasonIndex:0,playlistSeasonIndexAux:0,playerModeSelected:1,currentTournament:{seasons:[]},mediaPlayerResizeObserver:null,mediaPlayerWidth:0,lastMediaPlayerWidth:0,selectedType:1,roundsAndGamesWithPlaysMap:null,gameIdSelected:0,seasonSearchingCount:0,hasPlayerActivityInTournament:!1,isAutoPlay:!1,storeModule:this.isModalMode?"mediaModal":"mediaGeneral",isFirstTypeChange:!0,rivalCategories:[],counterAux:0,useIdsFromAdvancedFilter:!1,maxGameId:0,tournamentsForModalLauncher:new Map,lastGameIdWatched:0,isSomeListSelected:!1,booleanIsModesModalOpen:!1,arrayCategoriesIdsToFilter:null,arrayRivalCategoriesIdsToFilter:null,arrayCategoriesIdsRaw:null,booleanIsFilterApplied:!1,stringModeTitle:"Estas viendo: Goles de la jornada",objectMediaPlayerModeFilters:this.getEmptyMediaPlayerModeFilters(),playSeekerPlays:[],geoOptions:{enableHighAccuracy:!0,timeout:5e3,maximumAge:0},coords:null,concatPlays:!1,currentPlayIndex:0,firstInteractionToken:"",firstInteractionUrl:"https://playseeker-api-fi.golstats.com",userBehaviorUrl:"https://playseeker-api-ub.golstats.com",gamesUrl:"https://qyyibs1w0d.execute-api.us-west-2.amazonaws.com/prod/calendar/gamesBySeason?",booleanIsPlaySeekerMode:!1,objectLastDataToFilter:null,objectPlaySeekerLastPlay:null,objectPlaySync:null,isCarouselFullScreenVisible:!1}},computed:{...eC("mediaModal",["currentPlaylistPlays","modalSectionSelected","isModalOpen","playlistGameId"]),...eC("mediaGeneral",["playersMapMyPlaylists","teamsMapMyPlaylists","gamesMapMyPlaylists","maxGameIdMyPlaylists","player","mapMinutesPlayedCategoryNames","playSeekerUserId","playSeekerCurrentSessionId"]),...aC("mediaModal",["currentPlayerQueueByGames"]),...aC("mediaGeneral",["userPlaylistsSeasonIds"]),currentMatch(){return this.currentPlayerQueueByGames&&this.currentPlayerQueueByGames.length&&this.playlistGameId?this.currentPlayerQueueByGames.find(e=>e.id===this.playlistGameId):null},dynamicClasses(){let e=[];return this.isModal&&e.push("modal-class"),this.mediaPlayerWidth>0&&(this.mediaPlayerWidth<=420?e.push("modal-video__420"):this.mediaPlayerWidth<=750?e.push("modal-video__750"):this.mediaPlayerWidth<=850?e.push("modal-video__850"):this.mediaPlayerWidth<=1024?e.push("modal-video__1024"):this.mediaPlayerWidth<=1100?e.push("modal-video__1100"):this.mediaPlayerWidth<=1280?e.push("modal-video__1280"):this.mediaPlayerWidth<=1520&&e.push("modal-video__1520")),e},carouselPlayerQueue(){return this.playerQueue?this.playerQueue.filter(e=>e.gameId===this.currentMatch.id):[]},mediaPlayerType(){return"general"},extraCategories(){return[...Fve,...Vve,...Gve,...Jve,...$ve,...iSe,...oSe,...Hve].reduce((e,t)=>(t.categories.forEach(a=>{e.set(a,{id:a,name:this.$t&&t.translationKey&&this.$t(t.translationKey)||t.singleName})}),e),new Map)},isMyPlaylistsActive(){return this.isModalMode&&this.modalSectionSelected===2&&this.isSomeListSelected},modalInitialState(){return this.isModalMode?this.$store.state.mediaModal.modalInitialState:{}},modalSectionSelected(){return this.isModalMode?this.$store.state.mediaModal.modalSectionSelected:{}},playerType(){return this.isModalMode?this.$store.state.mediaModal.playerType:0},advancedFilter(){return this.isModalMode?this.$store.state.mediaModal.advancedFilter:{}},applyAdvancedFilterCounter(){return this.isModalMode?this.$store.state.mediaModal.applyAdvancedFilterCounter:0},selectedSubcategoryIds(){return this.isModalMode?this.$store.state.mediaModal.selectedSubcategoryIds:[]},getSeasonIdOnly(){return this.$store.getters[`${this.storeModule}/getSeasonIdOnly`]},getTeamId(){return this.$store.getters[`${this.storeModule}/getTeamId`]},getPlayerId(){return this.$store.getters[`${this.storeModule}/getPlayerId`]},seasonPlayers(){return this.$store.getters[`${this.storeModule}/seasonPlayers`]},selectedTournament(){return this.$store.getters[`${this.storeModule}/selectedTournament`]},isPlayerGoalkeeper(){return this.$store.getters[`${this.storeModule}/isPlayerGoalkeeper`]},hasPlayerPositionId(){return this.$store.getters[`${this.storeModule}/hasPlayerPositionId`]},playersByTeam(){return this.$store.getters[`${this.storeModule}/playersByTeam`]},tournaments(){return this.$store.state[`${this.storeModule}`].tournaments},seasonID(){return this.$store.state[`${this.storeModule}`].seasonID},playlistIndex(){return this.$store.state[`${this.storeModule}`].playlistIndex},retroSeason(){return this.$store.state[`${this.storeModule}`].retroSeason},objectMediaData(){return this.$store.state[`${this.storeModule}`].objectMediaData},playsSaved(){return this.$store.getters["mediaGeneral/playsSaved"]},summaryData(){return null},isSummaryData(){return!!this.summaryData},profilesSeasonId(){return this.isModalMode?0:this.$store.getters["filterGeneral/getSeasonId"]},currentCategories(){return this.isModalMode?this.modalSectionSelected===1?this.modalInitialState?this.modalInitialState.categoryIds&&this.modalInitialState.categoryIds.length?this.modalInitialState.categoryIds:this.getBestCategoriesIds():[]:this.useIdsFromAdvancedFilter?this.selectedSubcategoryIds:this.modalInitialState?this.modalInitialState.categoryIds:[]:this.summaryData?Object.keys(this.summaryData.isTeam?av.gamesAndTeams:this.summaryData.positionId===1?Yi.player.goalkeeper:Yi.player.regular).reduce((e,t)=>(t.split("-").forEach(a=>{e.push(a)}),e),[]):Object.keys(this.user&&this.user.is_player&&this.hasUserPlayerSelectedSeason?this.user.is_goalkeeper?Yi.player.goalkeeper:Yi.player.regular:av.gamesAndTeams).reduce((e,t)=>(t.split("-").forEach(a=>{e.push(a)}),e),[])},allCategories(){const e=new Map,t={...av.gamesAndTeams,...aEe};return Object.entries(t).forEach(([a,i])=>{a.split("-").forEach(n=>{e.set(n.includes("_r")?n:Number(n),i)})}),this.setBestCategoriesNames(e),e},queryCategories(){let e="";const t=[];return this.currentCategories.forEach((a,i)=>{let n=typeof a=="string"?a:a.toString(),r=!1;n.includes("_")&&(r=!0,n=Number(n.split("_")[0]),t.push(n)),e+=`${i>0?"&":""}${r?"r":""}categories=${n}`}),this.setRivalCategories(t),e},gamesByRound(){const e={};if(this.roundsAndGamesWithPlaysMap)for(const[t,a]of this.roundsAndGamesWithPlaysMap){const[i,n]=t.split(","),r=Array.from(a.values());r.sort((o,l)=>l.dateTimeMillis-o.dateTimeMillis),e[n]={name:i,games:r}}return e},teams(){return this.teamsMap?Array.from(this.teamsMap.values()):[]},isGoalsActive(){return this.playsType===fu[0]},headerResponsiveClass(){const e=[];return this.mediaPlayerWidth<354?e.push("header--width-354"):this.mediaPlayerWidth<440?e.push("header--width-400"):this.mediaPlayerWidth<541?e.push("header--width-540"):this.mediaPlayerWidth<626?e.push("header--width-626"):this.isFirstRow&&this.mediaPlayerWidth<610&&e.push("header--first-row"),e},playInfoStyle(){return!this.gsData&&this.mediaPlayerWidth<871?{padding:"0 0.5em"}:this.isFirstRow?{"margin-top":"0.3em"}:{}},headerIcon(){return this.custom!=null&&Object.keys(this.custom).length?this.custom.logo:"https://az755631.vo.msecnd.net/content/shieldLogoPc.png"},isUserTournament(){return this.gsData&&this.gsData.tournamentId===this.currentTournament._id},hasUserPlayerSelectedSeason(){return this.user.is_player?this.user.related_seasons.includes(this.numberCurrentSeasonId||this.seasonSelectedId):!1},hasUserTeamSelectedTournament(){return!this.user.is_player&&this.user.team?this.user.related_seasons.includes(this.numberCurrentSeasonId||this.seasonSelectedId):!1}},watch:{isModalOpen(e){e||this.applyObjectMediaData()},seasonSelected(){this.setInitialTitle()},tournamentSelectedId(){this.setInitialTitle()},selectedTournament:{deep:!0,handler(e){e&&(this.playlistTournament=e,this.playlistSeasonIndex=0)}},seasonID:{deep:!0,handler(e){e&&(this.playlistSeasonIndexAux=e.index)}},playsType(e){this.isModalMode||this.setPlaysType({mediaPlayerType:this.mediaPlayerType,playsType:e}),this.fetchInfo(!0,this.playlistTournament)},modalSectionSelected(e){e!==1&&(this.isSomeListSelected=!1),[0,1].includes(e)&&(this.playsType!==fu[e]?this.playsType=fu[e]:this.fetchInfo(!0,this.playlistTournament)),this.modalInitialState&&this.modalInitialState.mainSectionType-1===this.modalSectionSelected&&this.checkSeason()},selectedSubcategoryIds(e){e&&e.length&&this.applyAdvancedFilter()},seasonPlayers(e){if(this.getPlayerId&&!this.hasPlayerPositionId){const t=e.get(this.getPlayerId);t&&this.$store.commit(`${this.storeModule}/setPlayer`,t)}},profilesSeasonId:{handler(e){this.setUpData(e)}},tournamentsForMediaPlayer(e){this.seasonSelectedId&&e.size>0&&!this.isModalMode&&this.setUpData(this.seasonSelectedId)},currentPlaylistPlays(e){this.isModalMode&&this.modalSectionSelected===2&&this.setPlaylistPlays(e)},userPlaylistsSeasonIds(e){this.fillMyPlaylistsData(Array.from(e.values()))},seasonId:{immediate:!0,handler(e){this.isModalMode||this.setSeasonId({mediaPlayerType:this.mediaPlayerType,seasonId:e})}},currentCategories:{immediate:!0,handler(e){this.isModalMode||this.setCurrentCategories({mediaPlayerType:this.mediaPlayerType,currentCategories:e})}},selectedType:{immediate:!0,handler(e){this.isModalMode||this.setSelectedType({mediaPlayerType:this.mediaPlayerType,selectedType:e})}},getTeamId:{immediate:!0,handler(e){this.isModalMode||this.setTeamId({mediaPlayerType:this.mediaPlayerType,teamId:e})}},player:{immediate:!0,handler(e){this.isModalMode||this.setModalPlayer({mediaPlayerType:this.mediaPlayerType,player:e})}}},methods:{...tC("mediaModal",["setPlaylistGameId","setPlayerType","setModalInitialState","setIsModalOpen","setIsModalCreatePlayListOpen"]),...tC("mediaGeneral",["setPlayersMapMyPlaylists","setTeamsMapMyPlaylists","setGamesMapMyPlaylists","setMaxGameIdMyPlaylists","setSeasonId","setPlaysType","setCurrentCategories","setSelectedType","setTournamentsForModalLauncher","setTeamId","setModalPlayer","setPlaysToSaveAsFavorites","setPlaySeekerUserId","setPlaySeekerCurrentSessionId"]),applyObjectMediaData(){!this.objectMediaData||this.objectMediaData.booleanAvoidApply||(this.objectMediaData.numberMainSectionType&&this.$store.commit("mediaModal/setModalSectionSelected",this.objectMediaData.numberMainSectionType),this.objectPlaySync=this.objectMediaData.objectPlaySync?{...this.objectMediaData.objectPlaySync,booleanIsApplied:!1}:null,this.stringModeTitle=this.objectMediaData.stringModeTitle,this.playerQueue=[...this.objectMediaData.arrayPlayerQueue],this.$store.commit(`${this.storeModule}/setPlaylistIndex`,{mediaPlayerType:this.isModalMode?null:this.mediaPlayerType,playlistIndex:this.objectMediaData.numberPlaylistIndex}),this.$store.commit(`${this.storeModule}/setCurrentPlayerQueue`,this.playerQueue),this.playlistSeasonIndex=this.objectMediaData.numberPlaylistSeasonIndex,this.booleanIsPlaySeekerMode=this.objectMediaData.booleanIsPlaySeekerMode,this.booleanIsFilterApplied=this.objectMediaData.booleanIsFilterApplied,this.objectMediaData.objectLastDataToFilter&&this.fillDataToFilterData(this.objectMediaData.objectLastDataToFilter))},setPlaylistPlays(e){const t=this.getFormattedPlays(e,!0);this.generatePlayerQueue(null,t,!0)},applyAdvancedFilter(){this.useIdsFromAdvancedFilter=!0,this.fetchInfo(!0,this.playlistTournament)},setRivalCategories(e){this.rivalCategories=e},setUpData(e,t=!1){if(!this.isFromMexico&&!this.isGSUser){this.$emit("finish");return}let a=!1;const i=this.tournamentsForMediaPlayer;e||(a=!0,e=this.seasonSelectedId);const n=Number(e);let r=i.get(n);if(this.tournamentsForModalLauncher=i,this.isModalMode||this.setTournamentsForModalLauncher({mediaPlayerType:this.mediaPlayerType,tournamentsForModalLauncher:i}),!r&&this.isModalMode&&this.modalInitialState&&this.modalInitialState.tournamentsLastClashes&&(r=this.modalInitialState.tournamentsLastClashes.get(e)),this.playlistTournament=r,r){if(this.summaryData&&(this.stringModeTitle=this.summaryData.isTeam?"Estas viendo: Resumen equipo":"Estas viendo: Resumen jugador"),this.playlistSeasonIndex=r.seasons.findIndex(o=>o.id===n),this.playlistSeasonIndexAux=this.playlistSeasonIndex,!t&&!this.summaryData)if(this.isPlayerUser){if(this.hasPlayerActivityInTournament=!!this.getPlayerTournamentBySelectedSeason(n,i),this.hasPlayerActivityInTournament){const o={id:Number(this.user.player)};this.isGoalkeeper&&(o.positionId=1),this.seasonSearchingCount=0,this.$store.commit(`${this.storeModule}/setPlayer`,o),this.$store.commit(`${this.storeModule}/setTeam`,this.gsData.teamId),this.onPlayerSelected();return}!this.hasPlayerActivityInTournament&&this.selectedType!==1&&(this.$store.commit(`${this.storeModule}/setPlayer`,null),this.$store.commit(`${this.storeModule}/setTeam`,null))}else if(this.gsData&&this.gsData.tournamentId===this.playlistTournament._id&&this.gsData.teamId){this.seasonSearchingCount=0,this.$store.commit(`${this.storeModule}/setPlayer`,null),this.$store.commit(`${this.storeModule}/setTeam`,this.gsData.teamId),this.onTeamSelected();return}else this.seasonSearchingCount=0,this.$store.commit(`${this.storeModule}/setPlayer`,null),this.$store.commit(`${this.storeModule}/setTeam`,null);this.fillSeasons([r],a)}},setInitialTitle(){!this.summaryData&&!this.booleanIsFilterApplied&&this.hasUserPlayerSelectedSeason?this.stringModeTitle="Estas viendo: Resumen de jugador":!this.summaryData&&!this.booleanIsFilterApplied&&this.hasUserTeamSelectedTournament?this.stringModeTitle="Estas viendo: Resumen de equipo":this.stringModeTitle="Estas viendo: Goles de la jornada"},closeModalConfirm(){this.showModalConfirm=!1},onModalSpeedClose(){this.booleanIsSpeedModalVisible=!1},onClickSpeed(e){this.numberPlayerSpeed=e,this.$refs.videoPlayer.setSpeedToAllPlayers(e),this.booleanIsSpeedModalVisible=!1},confirmModalConfirm(){this.showModalConfirm=!1,this.$refs.videoPlayer.playCurrentVideoPlayer()},openmodal(){this.$refs.videoPlayer.setAutoPlaysCount(0),this.showModal=!0},closeModal(){this.showModal=!1},getBestCategoriesIds(){let e=null;return this.mediaPlayerMode==="player"?this.isPlayerGoalkeeper?e=Object.keys(Yi.player.goalkeeper):e=Object.keys(Yi.player.regular):e=Object.keys(Yi[this.mediaPlayerMode]),e.reduce((t,a)=>(a.split("-").forEach(i=>{t.push(i)}),t),[])},setBestCategoriesNames(e){[...Object.entries(Yi.player.goalkeeper),...Object.entries(Yi.player.regular),...Object.entries(Yi[this.mediaPlayerMode])].forEach(([t,a])=>{t.split("-").forEach(i=>{e.set(Number(i),a)})})},onPlaysTypeClicked(e){this.playsType=e},getPlayTime(e,t){let a="",i=0;switch(e.matchLapse){case 1:a=e.syncStartFirstTime;break;case 2:a=e.syncStartSecondTime,i=45;break;case 3:a=e.syncStartFirstExtraTime,i=90;break;case 4:a=e.syncStartSecondExtraTime,i=105;break;case 5:a=e.syncStartPenals,i=120;break}return(!a||a==="0")&&(a="00:00"),this.getTimeToSeconds(a)+(this.getTimeToSeconds(e[t])-i*60)},getTimeToSeconds(e){const t=e.indexOf(".")>-1?e.substring(0,e.indexOf(".")):e,[a,i,n]=t.split(":").reverse();return(n?Number(n)*60*60:0)+Number(i)*60+Number(a)},getFormattedPlays(e,t=!1,a=null){this.roundsAndGamesWithPlaysMap=new Map,mu=new Map,e.forEach(n=>{const r=n.reduce((u,h,p)=>(u[tEe[p]]=h,u),{});r.playRaw=n;let o=null,l=null,c=null,d=0;if(t?(c=this.teamsMapMyPlaylists,d=this.maxGameIdMyPlaylists,o=this.gamesMapMyPlaylists.get(r.gameId),l=this.playersMapMyPlaylists.get(r.playerId),r.booleanIsFromMyPlaylists=!0):(c=a?a.mapTeams:this.teamsMap,d=a?a.maxGameId:this.maxGameId,o=a?a.mapGames.get(r.gameId):this.gamesMap.get(r.gameId),l=a?a.mapPlayers.get(r.playerId):this.seasonPlayers.get(r.playerId)),l&&o&&r.gameId<=d){const u=`${o.roundName},${o.roundAbbreviation},${o.seasonId}`,h=this.roundsAndGamesWithPlaysMap.get(u);h?h.set(o.id,o):this.roundsAndGamesWithPlaysMap.set(u,new Map().set(o.id,o)),r.game=o,r.game.awayTeam.id===r.teamId?(r.teamName=r.game.awayTeam.name,r.teamAcronym=r.game.awayTeam.acronym,r.rivalName=r.game.homeTeam.name):(r.teamName=r.game.homeTeam.name,r.teamAcronym=r.game.homeTeam.acronym,r.rivalName=r.game.awayTeam.name),r.playingAs=r.teamId===r.game.homeTeam.id?1:2,r.player=l,r.playerTeamLogo=c.get(r.player.teamId).logo,r.rivalTeamLogo=c.get(r.player.teamId===r.game.homeTeam.id?r.game.awayTeam.id:r.game.homeTeam.id).logo,r.startSeconds=this.getPlayTime(r,"startTime"),r.endSeconds=this.getPlayTime(r,"endTime");const p=new Date(r.gameDate),[m,f]=r.gameHour.split(":");p.setHours(m),p.setMinutes(f),r.dateTimeMillis=p.valueOf(),mu.has(r.gameId)?mu.get(r.gameId).plays.push(r):mu.set(r.gameId,{dateTimeMillis:p.valueOf(),plays:[r]})}});const i=Array.from(mu.values());return i.sort((n,r)=>r.dateTimeMillis-n.dateTimeMillis),i.reduce((n,r)=>(r.plays.sort((o,l)=>+`${o.matchLapse}${o.startTime.replace(/:*\.*/g,"")}`-+`${l.matchLapse}${l.startTime.replace(/:*\.*/g,"")}`),n.push(...r.plays),n),[])},generatePlayerQueue(e,t,a=!1,i=-1,n){if(!t.length)return;const r=new Map,o=this.modalInitialState?this.modalInitialState.advancedFilter||{}:{};o&&o.fieldSections&&(o.fieldSectors=o.fieldSections.map(d=>Xi[`${d}`]));let l=0,c=0;if(this.playerQueue=t.reduce((d,u)=>{const h=`${u.gameId}-${u.playerId}-${u.startTime}`;let p=!1;if(this.lastSearchResult)this.lastSearchResult.team&&(p=u.game.homeTeam.id!==this.lastSearchResult.team.id&&u.game.awayTeam.id!==this.lastSearchResult.team.id),!p&&this.lastSearchResult.game&&(p=u.gameId!==this.lastSearchResult.game.id),!p&&this.lastSearchResult.player&&(p=u.playerId!==this.lastSearchResult.player.id);else if(this.isModalMode&&!a&&!n){this.modalInitialState.lastClashesGameId&&(p=u.gameId!==this.modalInitialState.lastClashesGameId);const b=this.getTeamId||this.modalInitialState.teamId;if(b&&(p=u.game.homeTeam.id!==b&&u.game.awayTeam.id!==b),!p&&this.selectedType===2&&(p=(this.modalInitialState&&this.modalInitialState.playerIds?this.modalInitialState.playerIds[0]:this.getPlayerId)!==u.playerId),!p&&o&&(o.playingAs&&o.playingAs.length&&(p=o.requiresRivalTransform&&o.playingAs.length===1&&u.teamId!==b?o.playingAs.includes(u.playingAs):!o.playingAs.includes(u.playingAs)),!p&&o.timeSections&&o.timeSections.length&&(p=!o.timeSections.includes(u.section)),!p&&o.coordinatePoint&&o.fieldSectors)){const _=_l(u[`x${o.coordinatePoint}`],u[`y${o.coordinatePoint}`])+1;p=!o.fieldSectors.includes(_)}if(!p&&b&&this.modalInitialState.matchResult&&this.modalInitialState.matchResult.length){const _=u.game.gameResult===3?3:u.game.gameResult===1&&b===u.game.homeTeam.id||u.game.gameResult===2&&b===u.game.awayTeam.id?1:2;p=!this.modalInitialState.matchResult.includes(_)}}const m=this.lastSearchResult?this.lastSearchResult.categoryIds:this.arrayCategoriesIdsToFilter||e,f=this.arrayRivalCategoriesIdsToFilter||this.rivalCategories;if(a||(n||!p)&&(m.includes(u.categoryId)||f.includes(u.categoryId)&&(this.booleanIsFilterApplied||!this.getTeamId||u.rivalTeamId===this.getTeamId))&&u.startSeconds!==u.endSeconds){const b=r.get(h);let _=this.modalInitialState&&this.modalInitialState.mainSectionType===this.modalSectionSelected+1&&this.modalInitialState.categorySingleName&&!this.modalInitialState.avoidCategorySingleName&&![35,54].includes(u.categoryId)?{name:this.modalInitialState.categorySingleName}:this.allCategories.get(u.categoryId)||this.allCategories.get(`${u.categoryId}_r`)||this.extraCategories.get(u.categoryId)||this.extraCategories.get(`${u.categoryId}_r`);this.modalInitialState&&this.modalInitialState.avoidCategorySingleName?_={name:this.modalInitialState.categorySingleName,weighing:1}:this.isModalMode&&u.categoryId===33&&(_={name:"Fuera de lugar",weighing:1});let x="";_||(x=this.mapMinutesPlayedCategoryNames.get(u.categoryId),x?_={name:x,weighing:1}:!_&&o&&(_={name:o.playListTitle,weighing:100})),_||(_=this.allCategories.get(u.categoryId)||this.allCategories.get(`${u.categoryId}_r`)||this.extraCategories.get(u.categoryId)||this.extraCategories.get(`${u.categoryId}_r`)),c||(this.lastGameIdWatched===u.gameId&&(c=l),l++),b?(_.weighing<b.mainCategory.weighing&&(b.mainCategory=_),b.categoriesNames.add(_.name)):(u.isSaved=this.playsSaved.has(u.playId),u.mainCategory=_,u.categoriesNames=new Set,u.categoriesNames.add(_.name),r.set(h,u),d.push(u))}return d},[]),this.showImage=!1,this.isModalMode){if(a)this.$store.commit("mediaModal/setPlaylistIndex",{mediaPlayerType:this.isModalMode?null:this.mediaPlayerType,playlistIndex:0});else{if(this.modalInitialState&&this.modalInitialState.playData){const d=this.playerQueue.findIndex(u=>u.playId===this.modalInitialState.playData.playId);d!==-1&&this.$store.commit("mediaModal/setPlaylistIndex",{mediaPlayerType:this.isModalMode?null:this.mediaPlayerType,playlistIndex:d})}if(this.playerQueue.length)if(n&&this.objectMediaPlayerModeFilters.objectGameSelected){const d=this.playerQueue.findIndex(u=>this.objectMediaPlayerModeFilters.objectGameSelected.game_id===u.game.id);d!==-1&&this.$store.commit("mediaModal/setPlaylistIndex",{mediaPlayerType:this.isModalMode?null:this.mediaPlayerType,playlistIndex:d})}else if(this.modalInitialState&&!this.modalInitialState.lastClashesGameId&&this.modalInitialState.gameIds&&this.selectedType===1){const d=this.playerQueue.findIndex(u=>this.modalInitialState.gameIds.includes(u.game.id));d!==-1?this.$store.commit("mediaModal/setPlaylistIndex",{mediaPlayerType:this.isModalMode?null:this.mediaPlayerType,playlistIndex:d}):this.playerQueue=[]}else this.modalInitialState&&this.modalInitialState.currentPlayIndex?this.$store.commit("mediaModal/setPlaylistIndex",{mediaPlayerType:this.isModalMode?null:this.mediaPlayerType,playlistIndex:this.modalInitialState.currentPlayIndex}):i>-1&&this.$store.commit("mediaModal/setPlaylistIndex",{mediaPlayerType:this.isModalMode?null:this.mediaPlayerType,playlistIndex:i})}this.$store.commit(`${this.storeModule}/setCurrentPlayerQueue`,this.playerQueue)}else if(n&&this.objectMediaPlayerModeFilters.objectGameSelected){const d=this.playerQueue.findIndex(u=>this.objectMediaPlayerModeFilters.objectGameSelected.game_id===u.game.id);d!==-1&&this.$store.commit("mediaGeneral/setPlaylistIndex",{mediaPlayerType:this.isModalMode?null:this.mediaPlayerType,playlistIndex:d})}else i>-1?this.$store.commit("mediaGeneral/setPlaylistIndex",{mediaPlayerType:this.isModalMode?null:this.mediaPlayerType,playlistIndex:i}):this.selectedType===1&&c&&this.$store.commit("mediaGeneral/setPlaylistIndex",{mediaPlayerType:this.isModalMode?null:this.mediaPlayerType,playlistIndex:c});this.playerQueue.length||this.emptyListDecision(),this.booleanIsFirstIteration&&(this.booleanIsFirstIteration=!1,this.$emit("finish"))},emptyListDecision(){this.summaryData&&this.summaryData.isTeam&&this.playsType===this.playsTypeOptions[0]?this.playsType=this.playsTypeOptions[1]:!this.summaryData&&!this.isModalMode&&this.onTypeChanged(1)},getGeneralName(e){return e.split(" ").reduce((t,a,i)=>{if(i===0)if(a.includes("."))t.push(a);else{const n=a.toLowerCase().split("");n[0]=n[0].toUpperCase(),t.push(n.join(""))}else t.push(a.toLowerCase());return t},[]).join(" ")},getSingleName(e){return e.split(" ").reduce((t,a)=>{let i=a;return a.endsWith("ciones")?i=a.replace("ciones","ción"):a.endsWith("nales")?i=a.replace("nales","nal"):a.endsWith("vocan")?i=a.replace("vocan","voca"):a.endsWith("lones")?i=a.replace("lones","lón"):a.endsWith("oles")?i=a.replace("oles","ol"):(a.endsWith("os")||a.endsWith("as")||a.endsWith("es"))&&(i=a.slice(0,a.length-1)),t.push(i),t},[]).join(" ")},getCategoryFormat(e=""){const t=this.getGeneralName(e);return this.getSingleName(t)},getPlayerTournamentBySelectedSeason(e,t){const a=this.user.related_seasons.reduce((n,r)=>{const o=t.get(r);return o&&n.push(o._id),n},[]),i=t.get(e);return a.includes(i._id)?i:null},changeTournament(e){},changeSeason(e){},getFilteredPlays(e){return e.reduce((t,a)=>{if(this.objectMediaPlayerModeFilters.objectFilters.numberActionId>1){let i=!0;if(i&&this.objectMediaPlayerModeFilters.objectFilters.objectAdvancedFilters.arrayPlayingAs&&([3,4].includes(this.actionId)?i=!(this.objectMediaPlayerModeFilters.objectFilters.objectAdvancedFilters.booleanRequiresRivalTransform&&this.objectMediaPlayerModeFilters.objectFilters.objectAdvancedFilters.arrayPlayingAs.length===1?a.teamId!==this.objectMediaPlayerModeFilters.objectFilters.objectAdvancedFilters.numberTeamId?this.objectMediaPlayerModeFilters.objectFilters.objectAdvancedFilters.arrayPlayingAs.includes(a.playingAs):!this.objectMediaPlayerModeFilters.objectFilters.objectAdvancedFilters.arrayPlayingAs.includes(a.playingAs):!this.objectMediaPlayerModeFilters.objectFilters.objectAdvancedFilters.arrayPlayingAs.includes(a.playingAs)):i=this.objectMediaPlayerModeFilters.objectFilters.objectAdvancedFilters.arrayPlayingAs.includes(a.playingAs)),i&&this.objectMediaPlayerModeFilters.objectFilters.objectAdvancedFilters.arrayTimeSections&&(i=this.objectMediaPlayerModeFilters.objectFilters.objectAdvancedFilters.arrayTimeSections.includes(a.section)),i&&this.objectMediaPlayerModeFilters.objectFilters.objectAdvancedFilters.coordinatePoint&&this.objectMediaPlayerModeFilters.objectFilters.objectAdvancedFilters.arrayFieldSections){const n=`${_l(a[`x${this.objectMediaPlayerModeFilters.objectFilters.objectAdvancedFilters.coordinatePoint}`],a[`y${this.objectMediaPlayerModeFilters.objectFilters.objectAdvancedFilters.coordinatePoint}`])+1}`,r=Xi[n],o=this.objectMediaPlayerModeFilters.objectFilters.objectAdvancedFilters.requiresRivalTransform&&this.objectMediaPlayerModeFilters.objectFilters.objectAdvancedFilters.arraySelectedSubcategoryIds.includes(`${a.categoryId}_r`)?Xi[`${pu[n]}`]:r;i=!!this.objectMediaPlayerModeFilters.objectFilters.objectAdvancedFilters.arrayFieldSections.find(l=>l.num===o&&l.status)}i&&t.push(a)}else t.push(a);return t},[])},async fillSeasonPlayers(e){try{const t=await this.$store.dispatch("mediaGeneral/getPlayersBySeasons",{seasonId:e.id,returnData:!0});e.mapPlayers=new Map,e.mapPlayersByTeam=t.reduce((a,i)=>{e.mapPlayers.set(i.player_id,{id:i.player_id,name:i.player_name,shortName:i.shortName,photo:i.player_photo,teamId:i.team_id,positionId:i.position_id});const n=a.get(i.team_id);return n?n.push(i):a.set(i.team_id,[i]),a},new Map)}catch(t){throw new Error(t)}},async fillMatchDaysAndGamesV2(e){try{const{seasonsAndGames:t,seasonsAndTeams:a}=await this.fetchSeasonsGamesAndTeamsV2([e.id,...e.related_seasons.map(o=>o.id)],3),i=a.find(o=>o._id===e.id);e.arrayTeams=[],e.mapTeams=new Map;const n=i.teams.reduce((o,l)=>(e.arrayTeams.push(l),e.mapTeams.set(l.team_id,{name:l.colloquial_name,acronym:l.acronym,logo:l.logo,id:l.team_id}),o.set(l.team_id,l),o),new Map);e.mapGames=new Map,e.mapGamesByTeam=new Map;const r=Array.from(t.reduce((o,l)=>(l.games.forEach(c=>{if(c.game_status===1&&c.has_video){(!e.maxGameId||c.game_id>e.maxGameId)&&(e.maxGameId=c.game_id);let d=c.matchday_abbreviation.replace("M","J"),u=c.matchday_abbreviation.replace("M","Jornada ");const h=c.matchday_abbreviation.replace("M","");l.season_type===0?this.objectMediaPlayerModeFilters.objectTournamentSelected.id===33&&(c.seasonId===881?(d=h6[h]||d,u=u6[h]||u):(d=vm[c.matchday_abbreviation]?c.matchday_abbreviation:d,u=vm[c.matchday_abbreviation]||u,d==="FINAL"&&(d="F"))):l.season_type===1?(d=d6[c.matchday_abbreviation],u=d):c.matchday_id===182?(d="PI1",u="Play In 1"):c.matchday_id===183?(d="PI2",u="Play In 2"):(d=c.matchday_abbreviation.replace("PO","R"),u="Repechaje"),c.roundAbbreviation=d,c.roundName=u,e.mapGames.set(c.game_id,{id:c.game_id,date:c.date,dateTimeMillis:new Date(c.date_time_utc).valueOf(),homeTeam:e.mapTeams.get(c.home_team),awayTeam:e.mapTeams.get(c.visiting_team),roundAbbreviation:c.roundAbbreviation,roundName:c.roundName,score:c.score,gameResult:c.score[0]>c.score[1]?1:c.score[0]<c.score[1]?2:3,seasonId:l.season_id});const p=o.get(c.roundAbbreviation);c.numberDateTimeMillis=new Date(c.date_time_utc).getTime(),c.homeTeam=n.get(c.home_team),c.awayTeam=n.get(c.visiting_team);const m=e.mapGamesByTeam.get(c.home_team),f=e.mapGamesByTeam.get(c.visiting_team);m?m.push(c):e.mapGamesByTeam.set(c.home_team,[c]),f?f.push(c):e.mapGamesByTeam.set(c.visiting_team,[c]),p?p.arrayGames.push(c):o.set(c.roundAbbreviation,{stringMatchDayAbbreviation:c.roundAbbreviation,stringMatchDayName:c.roundName,arrayGames:[c]})}}),o),new Map).values());r.reverse(),r.forEach(o=>{o.arrayGames.sort((l,c)=>l.numberDateTimeMillis-c.numberDateTimeMillis)}),e.arrayMatchDays=r,this.objectMatchDaySelected=r[0]||{}}catch(t){throw new Error(t)}},async fetchSeasonsGamesAndTeamsV2(e,t,a=""){let i=a;try{i||(i=this.gamesUrl,e.forEach((o,l)=>{i+=`${l===0?"":"&"}seasons=${o}`}));const{data:{data:n,teams:r}}=await Ci.get(i);return{seasonsAndGames:n,seasonsAndTeams:r}}catch(n){if(t>0)return this.fetchSeasonsGamesAndTeamsV2(e,t-1,i);throw new Error(n)}},async fillNextSeasonPlays(){try{this.showImage=!0,this.playlistSeasonIndex++,this.seasonName=this.objectMediaPlayerModeFilters.objectTournamentSelected.arraySeasons[this.playlistSeasonIndex].name,this.playlistSeasonIndex>this.objectMediaPlayerModeFilters.objectTournamentSelected.arraySeasons.length-1&&(this.playlistSeasonIndex=0);const e=this.objectMediaPlayerModeFilters.objectTournamentSelected.arraySeasons[this.playlistSeasonIndex];e.arrayMatchDays||(await this.fillMatchDaysAndGamesV2(e),await this.fillSeasonPlayers(e));const t=await this.fetchPlays(e.id,this.objectMediaPlayerModeFilters.stringQueryCategoryIds,this.objectMediaPlayerModeFilters.stringQueryParams),a=this.getFormattedPlays(t,!1,e),i=this.getFilteredPlays(a);this.generatePlayerQueue(null,i,!1,0,!0)}catch(e){throw new Error(e)}},onPlaylistEnded(){this.booleanIsPlaySeekerMode||(this.isMyPlaylistsActive?this.$store.commit("mediaModal/setPlaylistIndex",{mediaPlayerType:this.isModalMode?null:this.mediaPlayerType,playlistIndex:0}):this.booleanIsFilterApplied?this.fillNextSeasonPlays():(this.playlistSeasonIndex++,this.playlistSeasonIndex>this.playlistTournament.seasons.length-1&&(this.playlistSeasonIndex=0),this.seasonName=this.playlistTournament.seasons[this.playlistSeasonIndex].name,this.showImage=!0,setTimeout(()=>{this.fetchInfo(!1,this.playlistTournament)},4e3)))},onFullScreenChange(){this.isCarouselFullScreenVisible=!0},onTypeChanged(e=1){if((e!==this.selectedType||this.isModalMode)&&(this.isModalMode&&this.setPlayerType(e),this.selectedType!==e||this.isModalMode&&e===1)){if(this.selectedType=e,this.selectedType===2){this.mediaPlayerMode="player";const t=this.summaryData?{id:this.summaryData.id}:this.isModalMode?this.isFirstTypeChange?this.modalInitialState&&this.modalInitialState.goalkeeperIds?{id:this.modalInitialState.goalkeeperIds[0],positionId:1}:{id:this.modalInitialState.playerIds[0]}:this.playInfo.player:this.isUserTournament?null:this.playInfo.player;this.$store.commit(`${this.storeModule}/setPlayer`,t),this.$store.commit(`${this.storeModule}/setTeam`,this.isModalMode?this.playInfo.teamId:this.isUserTournament?this.gsData.teamId:this.playInfo.teamId),this.onPlayerSelected()}else if(this.selectedType===3){this.mediaPlayerMode="team";const t=this.summaryData?this.summaryData.id:this.isModalMode?this.isFirstTypeChange?this.modalInitialState&&this.modalInitialState.teamId:this.playInfo.teamId:this.hasPlayerActivityInTournament||this.isUserTournament?this.gsData.teamId:this.playInfo.teamId;this.$store.commit(`${this.storeModule}/setPlayer`,null),this.$store.commit(`${this.storeModule}/setTeam`,t),this.onTeamSelected()}else this.selectedType===1&&(this.mediaPlayerMode="games",this.$store.commit(`${this.storeModule}/setPlayer`,null),this.$store.commit(`${this.storeModule}/setTeam`,null),this.checkSeason());e!==0&&(this.isFirstTypeChange=!1)}},onMaxInactivityReached(){this.showModalConfirm=!0},checkSeason(){this.gsData||(this.playlistSeasonIndex=this.playlistSeasonIndexAux);const e=this.getSeasonIdOnly===this.seasonId;this.fetchInfo(e,this.playlistTournament)},onPlayerSelected(){this.mediaPlayerMode="player",this.checkSeason()},onTeamSelected(){this.mediaPlayerMode="team",this.checkSeason()},onGameIdSelected(e){this.gameIdSelected=e},onPlaying(){this.isAutoPlay=!0},onPlayChanged(e){if(this.lastGameIdWatched=e.gameId,e.isPlaySeeker)this.playInfo=e,this.objectPlaySeekerLastPlay={playListId:e.payloadData.playlist_id,groupPlayListId:e.payloadData.group_playlist_id,groupId:e.payloadData.group_id,playIndex:e.payloadData.play_number-1},window.localStorage.setItem("playSeekerLastPlay",JSON.stringify(this.objectPlaySeekerLastPlay));else if(e.booleanIsFullGame)this.playInfo={playId:e.playId,booleanIsFullGame:!0,homeTeamLogo:e.objectGame.homeTeam.logo,homeTeamName:e.objectGame.homeTeam.colloquial_name,awayTeamLogo:e.objectGame.awayTeam.logo,awayTeamName:e.objectGame.awayTeam.colloquial_name,arrayScore:e.objectGame.score,gameId:e.gameId,seasonId:e.objectGame.season_id,teamLogo:e.playerTeamLogo,playerLogo:e.player.photo,dateTimeMillis:new Date(e.objectGame.date_time_utc).getTime()};else if(this.summaryData)this.playInfo={playId:e.playId,homeTeamLogo:e.game.homeTeam.logo,homeTeamName:e.game.homeTeam.colloquial_name||e.game.homeTeam.name,awayTeamLogo:e.game.awayTeam.logo,awayTeamName:e.game.awayTeam.colloquial_name||e.game.awayTeam.name,arrayScore:e.game.score,gameId:e.gameId,seasonId:e.seasonId,mainCategoryName:g0(e.mainCategory.name),playerShortName:e.player.shortName,dateTimeMillis:e.dateTimeMillis,playRaw:e.playRaw,startSeconds:e.startSeconds,endSeconds:e.endSeconds};else{if(this.isModalMode){this.setPlaylistGameId(e.game.id);const t=this.playerType===2?e.player.shortName:this.playerType===3?this.modalInitialState&&this.modalInitialState.isRivalSubject&&this.modalInitialState.mainSectionType===this.modalSectionSelected+1?[35,54].includes(e.categoryId)?e.teamname:e.rivalName:[35,54].includes(e.categoryId)?e.rivalName:e.teamName:"";this.$emit("subject-change",t?` - ${t}`:"")}this.playInfo={playId:e.playId,date:e.gameDate,dateTimeMillis:e.dateTimeMillis,arrayScore:e.game.score,objectHomeTeam:e.game.homeTeam,objectAwayTeam:e.game.awayTeam,playerId:e.player.id,playerName:e.player.name,playerShortName:e.player.shortName,playCategory:e.categoryName,teams:`${e.game.homeTeam.name} vs ${e.game.awayTeam.name}`,playerPhoto:e.player.photo,teamLogo:e.playerTeamLogo,rivalLogo:e.rivalTeamLogo,teamId:e.teamId,categoryId:e.categoryId,jersey:e.jersey,mainCategoryName:g0(e.mainCategory.name||e.stringMainCategoryName||""),categoriesNames:Array.from(e.categoriesNames.values()).reduce((t,a,i)=>(t+=`${i===0?"":", "}${a}`,t),""),gameId:e.game.id,roundAbbreviation:e.game.roundAbbreviation,player:e.player,asLocal:e.game.homeTeam.id===e.teamId,momentOfPlay:e.momentOfPlay,seasonId:e.seasonId,playRaw:e.playRaw,startSeconds:e.startSeconds,endSeconds:e.endSeconds,booleanIsFromMyPlaylists:e.booleanIsFromMyPlaylists,tvStations:e.game.tvStations}}},async fetchPlays(e=null,t=null,a=null){try{this.lastGameIdWatched=0;let i="";if(a===null){const r=this.modalInitialState&&this.modalInitialState.playerIds&&this.modalInitialState.playerIds.length;this.modalInitialState.isFeaturedPlayers?(this.modalInitialState.playerIds.forEach(o=>{i+=`&player=${o}`}),this.modalInitialState.isFeaturedPlayers=!1):this.getPlayerId?(this.hasUserPlayerSelectedSeason&&this.getPlayerId===this.user.player||!this.user.is_player)&&(i+=`&player=${this.getPlayerId}`):r?this.modalInitialState.playerIds.forEach(o=>{i+=`&player=${o}`}):(this.getTeamId||this.modalInitialState.teamId)&&(i+=`&team=${this.getTeamId||this.modalInitialState.teamId}`),this.modalInitialState&&this.modalInitialState.isPost&&(i+="&isPost=1")}const n=await Ci.get(`https://cpj4073446.execute-api.us-east-2.amazonaws.com/prod/videos/plays/seasons/${e||this.seasonId}?${t||this.queryCategories}${a||i}`);if(n.data&&n.data.plays){const r=[...n.data.plays];return n.data.plays_rival?r.concat(n.data.plays_rival):r}return[]}catch(i){throw new Error(i)}},async fetchInfo(e,t){try{if(!t)return;let a=this.playlistSeasonIndex;this.playlistTournament=t,this.seasonId=t.seasons[a].id;const i=[this.fetchPlays()];if(!e&&t.seasons[a]){const l=[this.seasonId];t.seasons[a].related_seasons&&t.seasons[a].related_seasons.length&&l.push(...t.seasons[a].related_seasons.map(c=>c.id)),i.push(this.$store.dispatch(`${this.storeModule}/fetchSeasonsGamesAndTeams`,{seasons:l})),i.push(this.$store.dispatch(`${this.storeModule}/getPlayersBySeasons`,{seasonId:this.seasonId}))}const[n,r]=await Promise.all(i);if(this.plays=n||[],this.hasPlayerActivityInTournament&&!this.plays.length)if(this.playlistSeasonIndex<this.playlistTournament.seasons.length-1&&this.seasonSearchingCount<1)this.playlistSeasonIndex++,this.seasonSearchingCount++,await this.fetchInfo(!1,t);else return;e||this.formatGamesAndTeams(r);const o=this.getFormattedPlays(this.plays);this.generatePlayerQueue(this.currentCategories.reduce((l,c)=>(typeof c=="string"&&c.includes("_")||l.push(Number(c)),l),[]),o),this.showImage=!1}catch(a){throw new Error(a)}},async fillSeasons(e,t=!1){try{if(e){let a=null;if(this.autoFillVideos?a=e.find(i=>i._id===1):a=e[0],a){if(this.currentTournament=a,this.isModalMode&&!t&&!this.lastSearchResult)return;await this.fetchInfo(!1,this.currentTournament)}}}catch(a){throw new Error(a)}},async fillMyPlaylistsData(e){if(e.length){const t=[this.$store.dispatch("mediaGeneral/fetchSeasonsGamesAndTeams",{seasons:e})];e.forEach(r=>{t.push(this.$store.dispatch("mediaGeneral/getPlayersBySeasons",{seasonId:r,returnData:!0}))});const a=await Promise.all(t),i=a.shift();this.formatGamesAndTeamsForMyPlaylists(i);const n=a.reduce((r,o)=>(o.forEach(l=>{r.set(l.player_id,{id:l.player_id,name:l.player_name,shortName:l.shortName,photo:l.player_photo,teamId:l.team_id,positionId:l.position_id})}),r),new Map);this.setPlayersMapMyPlaylists(n)}},getBestPlaysCategoriesIds(){return Object.keys(Yi[this.mediaPlayerMode]).reduce((e,t)=>(t.split("-").forEach(a=>{e.push(Number(a))}),e),[])},setUpMediaGeneralData(){const{objectCurrentPlay:e,numberCurrentTime:t}=this.$refs.videoPlayer.getCurrentPlayerPlayInfo(),a={numberPlayId:e.playId,numberCurrentTime:t},i={arrayPlayerQueue:[...this.playerQueue],stringModeTitle:this.stringModeTitle,numberPlaylistIndex:this.playlistIndex,numberPlaylistSeasonIndex:this.playlistSeasonIndex,booleanIsFilterApplied:this.booleanIsFilterApplied,booleanIsPlaySeekerMode:this.booleanIsPlaySeekerMode,booleanAvoidApply:this.isModalMode&&this.modalInitialState&&this.modalInitialState.avoidApply&&!this.booleanIsFilterApplied,objectPlaySync:a};this.booleanIsFilterApplied&&(i.objectLastDataToFilter=this.objectLastDataToFilter),this.$store.commit("mediaGeneral/setObjectMediaData",i)},formatGamesAndTeams(e){this.roundsMap=new Map,this.teamsMap=e.seasonsAndTeams.reduce((t,a)=>(a&&a.teams.forEach(i=>{t.has(i.team_id)||t.set(i.team_id,{name:i.colloquial_name,acronym:i.acronym,logo:i.logo,id:i.team_id,players:this.playersByTeam.get(i.team_id)})}),t),new Map),this.gamesMap=e.seasonsAndGames.reduce((t,a)=>{const i=!!(this.currentTournament&&this.currentTournament.tournament&&this.currentTournament.tournament.tournament_type);return a.games.forEach(n=>{n.seasonType=a.season_type,n.seasonId=a.season_id,n.game_id>this.maxGameId&&(this.maxGameId=n.game_id);let r=n.matchday_abbreviation.replace("M","J"),o=n.matchday_abbreviation.replace("M","Jornada ");const l=n.matchday_abbreviation.replace("M","");n.seasonType===0?i&&(n.seasonId===881?(r=h6[l]||r,o=u6[l]||o):(r=vm[n.matchday_abbreviation]?n.matchday_abbreviation:r,o=vm[n.matchday_abbreviation]||o,r==="FINAL"&&(r="F"))):n.seasonType===1?(r=d6[n.matchday_abbreviation],o=r):n.matchday_id===182?(r="PI1",o="Play In 1"):n.matchday_id===183?(r="PI2",o="Play In 2"):(r=n.matchday_abbreviation.replace("PO","R"),o="Repechaje"),n.roundAbbreviation=r,n.roundName=o;const c=n.date.split("-"),d={id:n.game_id,date:n.date,dateTimeMillis:new Date(n.date_time_utc).valueOf(),homeTeam:this.teamsMap.get(n.home_team),awayTeam:this.teamsMap.get(n.visiting_team),roundAbbreviation:n.roundAbbreviation,roundName:n.roundName,score:n.score,gameResult:n.score[0]>n.score[1]?1:n.score[0]<n.score[1]?2:3,seasonId:a.season_id,dateFormatted:`${Number(c[2])} ${iEe[Number(c[1])-1]}, ${c[0]}`,tvStations:n.tv_stations?n.tv_stations.join(", "):null},u=this.roundsMap.get(n.roundAbbreviation);u?u.push(d):this.roundsMap.set(n.roundAbbreviation,[d]),t.has(n.game_id)||t.set(n.game_id,d)}),t},new Map)},formatGamesAndTeamsForMyPlaylists(e){const t=e.seasonsAndTeams.reduce((n,r)=>(r&&r.teams.forEach(o=>{n.has(o.team_id)||n.set(o.team_id,{name:o.colloquial_name,acronym:o.acronym,logo:o.logo,id:o.team_id,players:this.playersByTeam.get(o.team_id)})}),n),new Map);let a=0;const i=e.seasonsAndGames.reduce((n,r)=>(r.games.forEach(o=>{o.seasonType=r.season_type,o.seasonId=r.season_id,o.game_id>a&&(a=o.game_id);const l={id:o.game_id,date:o.date,dateTimeMillis:new Date(o.date_time_utc).valueOf(),homeTeam:t.get(o.home_team),awayTeam:t.get(o.visiting_team),roundAbbreviation:o.matchday_abbreviation,roundName:o.matchday_abbreviation.replace("M","MatchDay "),score:o.score,gameResult:o.score[0]>o.score[1]?1:o.score[0]<o.score[1]?2:3,seasonId:r.season_id};n.has(o.game_id)||n.set(o.game_id,l)}),n),new Map);this.setTeamsMapMyPlaylists(t),this.setGamesMapMyPlaylists(i),this.setMaxGameIdMyPlaylists(a)},onPlayerModeClicked(e){this.playerModeSelected=e},onClickModalLauncher(e=1){const{objectCurrentPlay:t,numberCurrentTime:a}=this.$refs.videoPlayer.getCurrentPlayerPlayInfo(),i={numberPlayId:t.playId,numberCurrentTime:a};this.$refs.videoPlayer.pausePlayers();let n=null;if(!e&&this.booleanIsFilterApplied||this.objectMediaPlayerModeFilters.objectSeasonSelected||this.booleanIsPlaySeekerMode||this.booleanIsFilterApplied){const r={arrayPlayerQueue:[...this.playerQueue],stringModeTitle:this.stringModeTitle,numberPlaylistIndex:this.playlistIndex,numberPlaylistSeasonIndex:this.playlistSeasonIndex,booleanIsPlaySeekerMode:this.booleanIsPlaySeekerMode,numberMainSectionType:e,objectPlaySync:i};r.booleanIsFilterApplied=this.booleanIsFilterApplied,this.booleanIsFilterApplied&&(r.objectLastDataToFilter=this.objectLastDataToFilter),this.$store.commit("mediaModal/setModalInitialState",null),this.$store.commit("mediaModal/setObjectMediaData",r)}else n={seasonId:this.seasonId,tournaments:this.tournamentsForModalLauncher,categoryIds:[...this.currentCategories],mainSectionType:e,matchResult:[1,2,3],currentPlayIndex:this.playlistIndex,objectPlaySync:i},this.getPlayerId?this.isPlayerGoalkeeper?n.goalkeeperIds=[this.getPlayerId]:n.playerIds=[this.getPlayerId]:this.getTeamId&&(n.teamId=this.getTeamId),this.$store.commit("mediaModal/setObjectMediaData",null),this.$store.commit("mediaModal/setModalInitialState",n);this.$store.commit("mediaModal/setIsModalOpen",!0)},setUpResizeObserver(){if(window.ResizeObserver)this.mediaPlayerResizeObserver=new window.ResizeObserver(()=>{this.mediaPlayerWidth=this.$refs.mediaPlayer.clientWidth}),this.mediaPlayerResizeObserver.observe(this.$refs.mediaPlayer);else throw new Error("Resize observer not supported!")},onClickMyPlaylists(){this.isModalMode?this.$store.commit("mediaModal/setModalSectionSelected",2):this.onClickModalLauncher(2)},getEmptyMediaPlayerModeFilters(){return{objectTournamentSelected:null,objectSeasonSelected:null,stringQueryCategoryIds:"",stringQueryParams:"",objectFilters:{numberActionId:0,numberMediaPlayerType:null,objectCategorySelected:null,objectAdvancedFilters:{numberTeamId:null,numberPlayerId:null,arraySelectedSubcategoryIds:[],booleanRequiresRivalTransform:!1,numberCoordinatePoint:2,arrayPlayingAs:[],arrayTimeSections:[],arrayFieldSections:[]}}}},fillDataToFilterData(e){this.objectLastDataToFilter=e,this.arrayCategoriesIdsToFilter=e.arrayCategoriesIds,this.arrayRivalCategoriesIdsToFilter=e.arrayRivalCategoriesIds,this.arrayCategoriesIdsRaw=e.arrayCategoriesIdsRaw,this.objectMediaPlayerModeFilters.stringQueryCategoryIds=e.stringQueryCategoryIds,this.objectMediaPlayerModeFilters.stringQueryParams=e.stringQueryParams,this.objectMediaPlayerModeFilters.objectTournamentSelected=e.objectTournamentSelected,this.objectMediaPlayerModeFilters.objectSeasonSelected=e.objectSeasonSelected,this.objectMediaPlayerModeFilters.objectGameSelected=e.objectGameSelected,this.objectMediaPlayerModeFilters.objectFilters.numberMediaPlayerType=e.objectFilters.numberMediaPlayerType,this.objectMediaPlayerModeFilters.objectFilters.objectCategorySelected=e.objectFilters.objectCategorySelected,this.objectMediaPlayerModeFilters.objectFilters.numberActionId=e.objectFilters.numberActionId,this.objectMediaPlayerModeFilters.objectFilters.objectAdvancedFilters.numberTeamId=e.objectFilters.objectAdvancedFilters.numberTeamId,this.objectMediaPlayerModeFilters.objectFilters.objectAdvancedFilters.numberPlayerId=e.objectFilters.objectAdvancedFilters.numberPlayerId,this.objectMediaPlayerModeFilters.objectFilters.objectAdvancedFilters.booleanIsPlayerGoalKeeper=e.objectFilters.objectAdvancedFilters.booleanIsPlayerGoalKeeper,this.objectMediaPlayerModeFilters.objectFilters.objectAdvancedFilters.arraySelectedSubcategoryIds=e.objectFilters.objectAdvancedFilters.arraySelectedSubcategoryIds,this.objectMediaPlayerModeFilters.objectFilters.objectAdvancedFilters.booleanRequiresRivalTransform=e.objectFilters.objectAdvancedFilters.booleanRequiresRivalTransform,this.objectMediaPlayerModeFilters.objectFilters.objectAdvancedFilters.numberCoordinatePoint=e.objectFilters.objectAdvancedFilters.numberCoordinatePoint,this.objectMediaPlayerModeFilters.objectFilters.objectAdvancedFilters.arrayPlayingAs=e.objectFilters.objectAdvancedFilters.arrayPlayingAs,this.objectMediaPlayerModeFilters.objectFilters.objectAdvancedFilters.arrayTimeSections=e.objectFilters.objectAdvancedFilters.arrayTimeSections,this.objectMediaPlayerModeFilters.objectFilters.objectAdvancedFilters.arrayFieldSections=e.objectFilters.objectAdvancedFilters.arrayFieldSections,this.selectedType=e.numberSelectedType},onApplyFilters(e){this.stringModeTitle=`Estas viendo: ${e.stringControlsTitle}`,this.booleanIsPlaySeekerMode=!1,this.booleanIsFilterApplied=!0,this.fillDataToFilterData(e),this.playlistSeasonIndex=e.objectTournamentSelected.numberSeasonSelectedIndex,this.generatePlayerQueue(null,e.arrayFormattedPlays,!1,e.numberPlaylistIndex,!0)},onClickOptions(e){this.booleanIsOptionsMenuVisible=!0,this.numberOptionsMenuTop=e.numberY,this.numberOptionsMenuLeft=e.numberX},onClickOpenModes(){this.$refs.videoPlayer.pausePlayers(),this.booleanIsModesModalOpen=!0},onClickFullGame(e){this.booleanIsPlaySeekerMode=!1,this.booleanIsFilterApplied=!0;const t=e.arrayMatchDayGames.findIndex(a=>a.game_id===e.objectGame.game_id);t!==-1&&(this.stringModeTitle=`Estas viendo: ${e.stringControlsTitle}`,this.booleanIsPlaySeekerMode=!1,this.playerQueue=e.arrayMatchDayGames.map(a=>(a.homeTeam.name=a.homeTeam.colloquial_name,a.awayTeam.name=a.awayTeam.colloquial_name,{booleanIsFullGame:!0,objectGame:a,gameId:a.game_id,startSeconds:0,endSeconds:null})),this.$store.commit(`${this.storeModule}/setPlaylistIndex`,{mediaPlayerType:this.isModalMode?null:this.mediaPlayerType,playlistIndex:t}),this.$store.commit(`${this.storeModule}/setCurrentPlayerQueue`,this.playerQueue))},onModesModalClose(){this.booleanIsModesModalOpen=!1,this.onClickSpeed(1)},onClickMode(){this.$refs.videoPlayer.setSpeedToAllPlayers(1)},onClickSurpriseMe(){this.booleanIsFilterApplied=!1,this.booleanIsPlaySeekerMode=!0,this.fillPlaySeekerPlays()},getPlaySeekerCategoryName(e){if(e.categoryId===33)return"Fuera de lugar";if([35,54].includes(e.categoryId))return"Auto gol";{const t=this.allCategories.get(e.categoryId)||this.allCategories.get(`${e.categoryId}_r`)||this.extraCategories.get(e.categoryId)||this.extraCategories.get(`${e.categoryId}_r`);return t?t.name:"S/N"}},async setUpTokens(){try{const e=await(await fetch(`${this.firstInteractionUrl}/token`,{method:"POST",mode:"cors",headers:{Authorization:"Basic bXN1c2VyQWRtaW46bXN1c2VycGFzc3dvcmRBZG1pbg=="},referrerPolicy:"no-referrer"})).json();this.firstInteractionToken=e.token}catch(e){throw new Error(e)}},async fillPlaySeekerPlays(){try{if(this.stringModeTitle="Sorpréndeme",this.booleanIsPlaySeekerMode){const e=await(await fetch(`${this.firstInteractionUrl}/firstInteraction/${nEe}/${this.user.username}/playlist`,{method:"GET",headers:{Authorization:`Bearer ${this.firstInteractionToken}`},referrerPolicy:"no-referrer"})).json();e&&(this.setPlaySeekerUserId(e.user_id),this.setPlaySeekerCurrentSessionId(this.getPlaySeekerSessionId(this.playSeekerUserId)),this.$emit("change-user-id",this.playSeekerUserId),window.localStorage.setItem("playSeekerUserId",this.playSeekerUserId),this.formatPlaySeekerPlays(e))}}catch(e){throw new Error(e)}},formatPlaySeekerPlays(e){let t=[];e&&e.playlist&&e.playlist.length&&(t=e.playlist.reduce((i,n,r)=>{const o={...Object.entries(Ji).reduce((h,[p,m])=>(h[p]=n[m],h),{}),isPlaySeeker:!0,startSeconds:n[Ji.startTime],endSeconds:n[Ji.endTime],totalSeconds:Math.floor(n[Ji.endTime]-n[Ji.startTime]),payloadData:{play_id:n[Ji.playId],total_plays:e.total_plays,play_number:r+1,group_playlist_id:e.group_playlist_id,playlist_id:e.playlist_id,group_id:e.group_id,moment_of_play:n[Ji.momentOfPlay],play_type:n[Ji.categoryId],viewer_second_start:Math.floor(n[Ji.startTime]),intended_second_start:Math.floor(n[Ji.startTime]),intended_second_end:Math.floor(n[Ji.endTime]),latitude_of_user:null,longitude_of_user:null}},[l,c]=o.playerName.split(","),d=l.split(" ");let u="";for(const h of d)if(u+=` ${h}`,h.length>3)break;if(o.playerShortName=c&&l?`${c.trim().charAt(0)}.${u}`:"",!o.mainCategoryName){o.mainCategoryName=g0(this.getPlaySeekerCategoryName(o));const[h,p]=o.finalScore.split(" - ");o.arrayScore=[Number(h),Number(p)]}return i.push(o),i},[]));let a=[];this.concatPlays?a=[...this.playerQueue.splice(0,this.currentPlayIndex+1),...t]:a=t,this.playerQueue=a,this.objectPlaySeekerLastPlay&&this.objectPlaySeekerLastPlay.playListId===e.playlist_id&&this.objectPlaySeekerLastPlay.groupPlayListId===e.group_playlist_id&&this.objectPlaySeekerLastPlay.groupId===e.group_id&&this.$store.commit(`${this.storeModule}/setPlaylistIndex`,{mediaPlayerType:this.isModalMode?null:this.mediaPlayerType,playlistIndex:this.objectPlaySeekerLastPlay.playIndex}),this.$store.commit(`${this.storeModule}/setCurrentPlayerQueue`,this.playerQueue)},getPlaySeekerSessionId(e){return e?`S_${e}${Date.now()}`:null},getRandomPercentage(){return Math.floor(Math.random()*60+20)},async sendUserBehavior(e,t,a){try{if(this.playInfo.isPlaySeeker){const i={user_id:this.playSeekerUserId,current_session_id:this.playSeekerCurrentSessionId,last_play:{...this.playInfo.payloadData}};i&&(i.last_play.action=t,i.last_play.percentage_viewed=t===1?100:this.getRandomPercentage(),i.last_play.viewer_second_end=e||this.playInfo.endSeconds,i.last_play.date_time_of_user_action=a,this.coords&&(i.last_play.latitude_of_user=this.coords.latitude,i.last_play.longitude_of_user=this.coords.latitude));const n=await fetch(`${this.userBehaviorUrl}/user-behavior`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(i)});if(n.status===200){const r=await n.json();r&&(this.concatPlays=!0,this.formatPlaySeekerPlays(r))}else this.concatPlays=!1}}catch(i){throw new Error(i)}},onGeoSuccess(e){this.coords=e.coords},onGeoError(e){throw new Error(e)},onClickTimeButton(e){e.numberType===1?this.$refs.videoPlayer.addSecondsToCurrentPlayer(e.numberValue*e.numberValueFactor):e.numberType===2?this.booleanIsSpeedModalVisible=!0:this.booleanIsVideoPlayerPlaying?this.$refs.videoPlayer.pausePlayers():this.$refs.videoPlayer.playCurrentPlayer()},onClickOption(e){this.$refs.videoPlayer.pausePlayers(),e===1?lp.emit("click-game",{gameId:this.playInfo.gameId,gameStatus:1,dateTimeUTC:new Date(this.playInfo.dateTimeMillis).toISOString(),seasonId:this.playInfo.seasonId,stringSectionName:"lineups"}):e===2?this.onClickDownload():e===3?(this.setPlaysToSaveAsFavorites([this.playInfo.playRaw]),this.setIsModalCreatePlayListOpen(!0)):e===4&&(this.isModalMode?this.$emit("show-list"):this.onClickModalLauncher())},onClickNextBack(e){this.$refs.videoPlayer.onMoveToPlayClicked(e)},onPlayIteration({iterationTime:e,userAction:t,dateTimeIsoString:a}){this.booleanIsPlaySeekerMode&&this.sendUserBehavior(e,t,a)},onClickAnalyst(){this.onClickModalLauncher()},onClickFullscreen(){this.isCarouselFullScreenVisible=!0},onChangeSeason(e){this.numberCurrentSeasonId=Number(e),this.isAutoPlay=!1,this.objectMediaPlayerModeFilters=this.getEmptyMediaPlayerModeFilters(),this.setUpData(e)},onUpdateSearchResult(e){this.lastSearchResult=e,this.setUpData(e.seasonId)},onClickClose(){this.$emit("close")},onClickCloseCarousel(e){e&&this.$store.commit("mediaModal/setPlaylistIndex",{mediaPlayerType:null,playlistIndex:e}),this.isCarouselFullScreenVisible=!1},getPlayerOptions(){return{playbackRates:[.5,1,1.5,2],autoplay:!1,controls:!0,controlBar:{children:["playToggle","volumePanel","playbackRateMenuButton","CurrentTimeDisplay","progressControl","remainingTimeDisplay","fullscreenToggle"],pictureInPictureToggle:!1,volumePanel:{inline:!1}},liveui:!0,preload:"auto",fluid:!0}},videoJsInit(){fe.registerPlugin("offset",W2),this.videojsLocal=fe}},async created(){try{this.videoJsInit(),Ci.defaults.headers.common.Authorization=this.token,this.modalInitialData&&this.$store.commit("mediaModal/setModalInitialState",this.modalInitialData),lp.on("change-season",this.onChangeSeason),await this.setUpTokens(),lp.on("some-list-selected",()=>{this.isSomeListSelected=!0}),this.autoFillVideos&&await this.$store.dispatch(`${this.storeModule}/fetchTournaments`)}catch(e){throw new Error(e)}},mounted(){this.isModalMode?setTimeout(()=>{this.modalInitialState?(this.objectPlaySync=this.modalInitialState.objectPlaySync?{...this.modalInitialState.objectPlaySync,booleanIsApplied:!1}:null,this.setUpData(this.modalInitialState.seasonId),this.onTypeChanged(this.modalInitialState.playListType),this.$store.commit("mediaModal/setModalSectionSelected",this.modalInitialState.mainSectionType||1),this.stringModeTitle=`Estas viendo: ${this.modalInitialState.teamId?"Resumen de equipo":this.modalInitialState.playerIds&&this.modalInitialState.playerIds.length?"Resumen de jugador":this.modalInitialState.gameIds&&this.modalInitialState.gameIds.length?"Resumen de partido":""}`):this.objectMediaData&&(this.$store.commit("mediaModal/setModalSectionSelected",1),this.applyObjectMediaData())},100):this.seasonSelectedId&&this.tournamentsForMediaPlayer.size>0&&(this.setUpData(this.seasonSelectedId),this.setInitialTitle()),setTimeout(()=>{this.setUpResizeObserver()},1e3)},beforeUnmount(){this.isSomeListSelected=!1,this.mediaPlayerResizeObserver&&(this.mediaPlayerResizeObserver.disconnect(),this.mediaPlayerResizeObserver=null),this.$store.commit(`${this.storeModule}/setPlayer`,null),this.$store.commit(`${this.storeModule}/setTeam`,null),this.setPlaylistGameId(0)}},qA=()=>{s.useCssVars(e=>({"35a7d400":e.backgroundColor}))},WA=iv.setup;iv.setup=WA?(e,t)=>(qA(),WA(e,t)):qA;const gu=e=>(s.pushScopeId("data-v-5dcd2d74"),e=e(),s.popScopeId(),e),rEe={class:"modal-video__videos"},sEe=gu(()=>s.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},[s.createElementVNode("path",{d:"M5 15L15 5",stroke:"white","stroke-width":"1.7","stroke-miterlimit":"10","stroke-linecap":"round","stroke-linejoin":"round"}),s.createElementVNode("path",{d:"M15 15L5 5",stroke:"white","stroke-width":"1.7","stroke-miterlimit":"10","stroke-linecap":"round","stroke-linejoin":"round"})],-1)),oEe=[sEe],lEe={class:"modal-video__videos__search-and-filters"},cEe={class:"modal-video__search-and-filters__search"},dEe={class:"modal-video__search-and-filters__advanced"},uEe={class:"modal-video__videos__video"},hEe={key:1,class:"modal-video__detail"},pEe={class:"modal-video__img-container"},mEe=["src"],fEe={class:"modal-video__img-container overlap"},gEe=["src"],yEe={class:"modal-video__description"},_Ee={key:2,class:"modal-video__date"},bEe={class:"discover-container"},vEe=gu(()=>s.createElementVNode("div",{class:"title-value"},"Descubre videos",-1)),SEe={class:"modal-video__matches"},wEe={class:"current-match-info"},TEe=gu(()=>s.createElementVNode("h4",null,"Estás viendo:",-1)),CEe={key:0},kEe={class:"modal-video__game-list"},EEe=gu(()=>s.createElementVNode("div",{class:"modal-video__game-list__title"},"Otros partidos",-1)),IEe={class:"discover-videos"},xEe=gu(()=>s.createElementVNode("div",{class:"title-value"},"Descubre videos",-1));function NEe(e,t,a,i,n,r){const o=s.resolveComponent("CarouselFullScreen"),l=s.resolveComponent("VideoSearch"),c=s.resolveComponent("SearchFilters"),d=s.resolveComponent("VideoPlayer"),u=s.resolveComponent("VideoPlayerControls"),h=s.resolveComponent("GscSwitchComponent"),p=s.resolveComponent("GSCPlayerTeamGame"),m=s.resolveComponent("CurrentMatch"),f=s.resolveComponent("MatchesList");return s.openBlock(),s.createElementBlock(s.Fragment,null,[n.isCarouselFullScreenVisible?(s.openBlock(),s.createBlock(o,{key:0,videojs:n.videojsLocal,"player-queue":r.carouselPlayerQueue,"playlist-index":r.playlistIndex,"initial-play":n.playInfo,onClose:r.onClickCloseCarousel},null,8,["videojs","player-queue","playlist-index","initial-play","onClose"])):s.createCommentVNode("",!0),s.createElementVNode("div",{ref:"mediaPlayer",class:s.normalizeClass(["modal-video",r.dynamicClasses])},[s.createElementVNode("div",rEe,[a.isModal?(s.openBlock(),s.createElementBlock("div",{key:0,class:"modal-video__close",onClick:t[0]||(t[0]=(...b)=>r.onClickClose&&r.onClickClose(...b))},oEe)):s.createCommentVNode("",!0),s.createElementVNode("div",lEe,[s.createElementVNode("div",cEe,[s.createVNode(l,{"onUpdate:searchResult":r.onUpdateSearchResult,clientWidth:this.mediaPlayerWidth},null,8,["onUpdate:searchResult","clientWidth"])]),s.createElementVNode("div",dEe,[s.createVNode(c,{onApplyFilters:r.onApplyFilters,clientWidth:this.mediaPlayerWidth},null,8,["onApplyFilters","clientWidth"])])]),s.createElementVNode("div",uEe,[s.createVNode(d,{ref:"videoPlayer","player-queue":n.playerQueue,"is-v2":"","is-gs":"","is-from-mexico":a.isFromMexico,"is-gs-user":a.isGSUser,"container-width":n.mediaPlayerWidth,"game-id-selected":n.gameIdSelected,"is-first-row":!1,"plays-type-selected":n.selectedType,"is-auto-play":n.isAutoPlay,"is-modal-mode":a.isModalMode,"are-types-hidden":r.isSummaryData||r.isMyPlaylistsActive,"is-play-seeker-mode":n.booleanIsPlaySeekerMode,"play-sync":n.objectPlaySync,onPlayIteration:r.onPlayIteration,onPlaying:r.onPlaying,onPlayChanged:r.onPlayChanged,onMaxInactivityReached:r.onMaxInactivityReached,onPlaylistEnded:r.onPlaylistEnded,onChangeType:r.onTypeChanged,onPlay:t[1]||(t[1]=b=>n.booleanIsVideoPlayerPlaying=!0),onPause:t[2]||(t[2]=b=>n.booleanIsVideoPlayerPlaying=!1),onClickFullScreen:r.onClickFullscreen},null,8,["player-queue","is-from-mexico","is-gs-user","container-width","game-id-selected","plays-type-selected","is-auto-play","is-modal-mode","are-types-hidden","is-play-seeker-mode","play-sync","onPlayIteration","onPlaying","onPlayChanged","onMaxInactivityReached","onPlaylistEnded","onChangeType","onClickFullScreen"]),s.createVNode(u,{"play-info":n.playInfo,onClickNextBack:r.onClickNextBack,clientWidth:this.mediaPlayerWidth},null,8,["play-info","onClickNextBack","clientWidth"])]),n.playInfo&&n.playInfo.objectHomeTeam?(s.openBlock(),s.createElementBlock("div",hEe,[s.createElementVNode("div",pEe,[s.createElementVNode("img",{class:"modal-video__img",src:n.playInfo.teamLogo},null,8,mEe)]),s.createElementVNode("div",fEe,[s.createElementVNode("img",{class:"modal-video__img",src:n.playInfo.playerPhoto},null,8,gEe)]),s.createElementVNode("div",yEe,s.toDisplayString(n.playInfo.objectHomeTeam.acronym)+" "+s.toDisplayString(n.playInfo.arrayScore[0])+" : "+s.toDisplayString(n.playInfo.arrayScore[1])+" "+s.toDisplayString(n.playInfo.objectAwayTeam.acronym)+" I "+s.toDisplayString(n.playInfo.roundAbbreviation)+" "+s.toDisplayString(n.playInfo.tvStations||""),1)])):s.createCommentVNode("",!0),!n.mobileClass&&n.playInfo?(s.openBlock(),s.createElementBlock("div",_Ee,s.toDisplayString(n.playInfo.date),1)):s.createCommentVNode("",!0),s.createElementVNode("div",bEe,[vEe,n.mobileClass?(s.openBlock(),s.createBlock(h,{key:0,buttons:["Estás viendo","Otros partidos","Descubre videos"],class:"current-match__tabs",selectedOption:n.currentMobileTab,arrow:!1,borderRadius:"32px",height:"28px",fontSize:"11px;",backgroundOptionActive:"transparent",onInput:t[3]||(t[3]=b=>n.currentMobileTab=b)},null,8,["selectedOption"])):s.createCommentVNode("",!0),a.section?(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[s.createVNode(h,{style:{"margin-left":"25px"},buttons:["Resumen","Proximo rival"],onInput:t[4]||(t[4]=b=>n.currentTabMoreVideos=b),background:"trasparent",height:"28px",width:"160px","font-family":"Poppins-Regular",type:2,arrow:!1,selectedOption:n.currentTabMoreVideos},null,8,["selectedOption"]),this.user.is_player?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[n.currentTabMoreVideos=="Resumen"?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[!n.mobileClass||n.currentMobileTab==="Resumen"?(s.openBlock(),s.createBlock(p,{key:0,type:8,style:{"margin-top":"-30px"},title:"",backgroundColor:"#172531",data:{season:a.user.season,player:a.user.player,category:1255e3},width:"100%"},null,8,["data"])):s.createCommentVNode("",!0)],64)):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[!n.mobileClass||n.currentMobileTab==="Resumen"?(s.openBlock(),s.createBlock(p,{key:0,type:8,style:{"margin-top":"-30px"},title:"",backgroundColor:"#172531",data:{season:a.user.season,player:a.user.player,category:1255e3},width:"100%"},null,8,["data"])):s.createCommentVNode("",!0)],64))],64)):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[n.currentTabMoreVideos=="Resumen"?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[!n.mobileClass||n.currentMobileTab==="Resumen"?(s.openBlock(),s.createBlock(p,{key:0,type:7,title:"",style:{"margin-top":"-30px"},backgroundColor:"#172531",data:{season:a.user.season,team:a.user.team,category:1255e3},width:"100%"},null,8,["data"])):s.createCommentVNode("",!0)],64)):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[!n.mobileClass||n.currentMobileTab==="Resumen"?(s.openBlock(),s.createBlock(p,{key:0,type:7,style:{"margin-top":"-30px"},title:"",backgroundColor:"#172531",data:{season:a.user.season,team:0,category:1255e3},width:"100%"},null,8,["data"])):s.createCommentVNode("",!0)],64))],64))],64)):(s.openBlock(),s.createElementBlock(s.Fragment,{key:2},[!n.mobileClass||n.currentMobileTab==="Resumen"?(s.openBlock(),s.createBlock(p,{key:0,style:{"margin-top":"-30px"},type:13,data:{season:a.user.season,category:1255e3},width:"100%",backgroundColor:"#172531",title:""},null,8,["data"])):s.createCommentVNode("",!0)],64))])]),s.createElementVNode("div",SEe,[s.createElementVNode("div",wEe,[n.mobileClass?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[TEe,n.playInfo?(s.openBlock(),s.createElementBlock("h3",CEe,s.toDisplayString(n.playInfo.mainCategoryName),1)):s.createCommentVNode("",!0)],64)),r.currentMatch&&(!n.mobileClass||n.currentMobileTab==="Estás viendo")?(s.openBlock(),s.createBlock(m,{key:1,currentMatch:r.currentMatch,mobileClass:"",clientWidth:this.mediaPlayerWidth},null,8,["currentMatch","clientWidth"])):s.createCommentVNode("",!0)]),s.createElementVNode("div",kEe,[EEe,!n.mobileClass||n.currentMobileTab==="Otros partidos"?(s.openBlock(),s.createBlock(f,{key:0,matches:e.currentPlayerQueueByGames,mobileClass:"",clientWidth:this.mediaPlayerWidth},null,8,["matches","clientWidth"])):s.createCommentVNode("",!0)])]),s.createElementVNode("div",IEe,[xEe,n.mobileClass?(s.openBlock(),s.createBlock(h,{key:0,buttons:["Estás viendo","Otros partidos","Descubre videos"],class:"current-match__tabs",selectedOption:n.currentMobileTab,arrow:!1,borderRadius:"32px",height:"28px",fontSize:"11px;",backgroundOptionActive:"transparent",onInput:t[5]||(t[5]=b=>n.currentMobileTab=b)},null,8,["selectedOption"])):s.createCommentVNode("",!0),a.section?(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[s.createVNode(h,{style:{"margin-left":"25px"},buttons:["Resumen","Proximo rival"],onInput:t[6]||(t[6]=b=>n.currentTabMoreVideos=b),background:"trasparent",height:"28px",width:"160px","font-family":"Poppins-Regular",type:2,arrow:!1,selectedOption:n.currentTabMoreVideos},null,8,["selectedOption"]),this.user.is_player?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[n.currentTabMoreVideos=="Resumen"?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[!n.mobileClass||n.currentMobileTab==="Resumen"?(s.openBlock(),s.createBlock(p,{key:0,type:8,style:{"margin-top":"-30px"},title:"",backgroundColor:"#172531",data:{season:a.user.season,player:a.user.player,category:1255e3},width:"100%"},null,8,["data"])):s.createCommentVNode("",!0)],64)):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[!n.mobileClass||n.currentMobileTab==="Resumen"?(s.openBlock(),s.createBlock(p,{key:0,type:8,style:{"margin-top":"-30px"},title:"",backgroundColor:"#172531",data:{season:a.user.season,player:a.user.player,category:1255e3},width:"100%"},null,8,["data"])):s.createCommentVNode("",!0)],64))],64)):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[n.currentTabMoreVideos=="Resumen"?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[!n.mobileClass||n.currentMobileTab==="Resumen"?(s.openBlock(),s.createBlock(p,{key:0,type:7,title:"",style:{"margin-top":"-30px"},backgroundColor:"#172531",data:{season:a.user.season,team:a.user.team,category:1255e3},width:"100%"},null,8,["data"])):s.createCommentVNode("",!0)],64)):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[!n.mobileClass||n.currentMobileTab==="Resumen"?(s.openBlock(),s.createBlock(p,{key:0,type:7,style:{"margin-top":"-30px"},title:"",backgroundColor:"#172531",data:{season:a.user.season,team:0,category:1255e3},width:"100%"},null,8,["data"])):s.createCommentVNode("",!0)],64))],64))],64)):(s.openBlock(),s.createElementBlock(s.Fragment,{key:2},[!n.mobileClass||n.currentMobileTab==="Resumen"?(s.openBlock(),s.createBlock(p,{key:0,style:{"margin-top":"-30px"},type:13,data:{season:a.user.season,category:1255e3},width:"100%",backgroundColor:"#172531",title:""},null,8,["data"])):s.createCommentVNode("",!0)],64))])],2)],64)}const AEe=_t(iv,[["render",NEe],["__scopeId","data-v-5dcd2d74"]]);Kye();const PEe={class:"container"},OEe=!1,BEe=ri({__name:"GSCMediaPlayer",setup(e){const t=s.ref("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE");vc.defaults.headers.common.Authorization=t.value;const a=[{_id:44,seasons:[{name:"Clausura 2023",related_seasons:[{type:1,id:1752}],id:1713,type:0},{name:"Apertura 2022",related_seasons:[{type:1,id:1592}],id:1542,type:0},{name:"Grita Mexico C22",related_seasons:[{type:1,id:1521}],id:1486,type:0}],tournament:{show_logos:0,tournament_type:0,name:"Sub-20",logo:null,id:44,tournament_status:0,order:5}},{_id:1095,seasons:[{name:"Apertura 2023",related_seasons:[{type:1,id:1831}],id:1783,type:0},{name:"Clausura 2023",related_seasons:[{type:1,id:1750}],id:1715,type:0},{name:"Apertura 2022",related_seasons:[{type:1,id:1652}],id:1541,type:0},{name:"Grita Mexico C22",related_seasons:[{type:1,id:1527}],id:1488,type:0}],tournament:{show_logos:0,tournament_type:0,name:"Sub-16",logo:null,id:1095,tournament_status:0,order:7}},{_id:1001,seasons:[{name:"Clausura 2024",related_seasons:[],id:1838,type:0},{name:"Apertura 2023",related_seasons:[{type:1,id:1825}],id:1777,type:0},{name:"Clausura 2023",related_seasons:[{type:1,id:1747}],id:1696,type:0},{name:"Apertura 2022",related_seasons:[{type:1,id:1655}],id:1539,type:0},{name:"Grita Mexico C22",related_seasons:[{type:1,id:1523}],id:1485,type:0},{name:"Grita Mexico A21",related_seasons:[{type:1,id:1458}],id:1402,type:0},{name:"Guard1anes Clausura 2021",related_seasons:[{type:1,id:1384}],id:1323,type:0},{name:"Guard1anes 2020",related_seasons:[{type:1,id:1318}],id:1283,type:0},{name:"Clausura 2020",related_seasons:[],id:1241,type:0},{name:"Apertura 2019",related_seasons:[{type:1,id:1227}],id:1157,type:0},{name:"Clausura 2019",related_seasons:[{type:1,id:1132}],id:1095,type:0},{name:"Apertura 2018",related_seasons:[{type:1,id:1072}],id:1004,type:0},{name:"Clausura 2018",related_seasons:[{type:1,id:1237}],id:1236,type:0}],tournament:{show_logos:1,tournament_type:0,name:"Liga MX Femenil",logo:"https://az755631.vo.msecnd.net/tournaments/femenil_mx.png",id:1001,tournament_status:0,order:2}},{_id:1143,seasons:[{name:"Apertura 2023",related_seasons:[{type:1,id:1829}],id:1785,type:0}],tournament:{show_logos:0,tournament_type:0,name:"Sub-23",logo:null,id:1143,tournament_status:0,order:4}},{_id:1,seasons:[{name:"Clausura 2024",related_seasons:[],id:1836,type:0},{name:"Apertura 2023",related_seasons:[{type:2,id:1826},{type:1,id:1827}],id:1772,type:0},{name:"Clausura 2023",related_seasons:[{type:2,id:1745},{type:1,id:1746}],id:1694,type:0},{name:"Apertura 2022",related_seasons:[{type:2,id:1591},{type:1,id:1594}],id:1535,type:0},{name:"Grita Mexico C22",related_seasons:[{type:2,id:1520},{type:1,id:1525}],id:1476,type:0},{name:"Grita Mexico A21",related_seasons:[{type:2,id:1446},{type:1,id:1456}],id:1401,type:0},{name:"Guard1anes Clausura 2021",related_seasons:[{type:2,id:1382},{type:1,id:1383}],id:1325,type:0},{name:"Guard1anes 2020",related_seasons:[{type:2,id:1311},{type:1,id:1316}],id:1275,type:0},{name:"Clausura 2020",related_seasons:[],id:1239,type:0},{name:"Apertura 2019",related_seasons:[{type:1,id:1231}],id:1155,type:0},{name:"Clausura 2019",related_seasons:[{type:1,id:1135}],id:1093,type:0},{name:"Apertura 2018",related_seasons:[{type:1,id:1075}],id:1002,type:0}],tournament:{show_logos:1,tournament_type:0,name:"Liga MX",logo:"https://az755631.vo.msecnd.net/tournaments/liga_mx.png",id:1,tournament_status:0,order:1}},{_id:1071,seasons:[{name:"Clausura 2024",related_seasons:[],id:1837,type:0},{name:"Apertura 2023",related_seasons:[{type:2,id:1822},{type:1,id:1828}],id:1776,type:0},{name:"Clausura 2023",related_seasons:[{type:2,id:1742},{type:1,id:1748}],id:1695,type:0},{name:"Apertura 2022",related_seasons:[{type:2,id:1598},{type:1,id:1618}],id:1544,type:0},{name:"Grita Mexico C22",related_seasons:[{type:2,id:1515},{type:1,id:1519}],id:1484,type:0},{name:"Grita Mexico A21",related_seasons:[{type:2,id:1454},{type:1,id:1463}],id:1408,type:0},{name:"Guard1anes Clausura 2021",related_seasons:[{type:2,id:1378},{type:1,id:1380}],id:1327,type:0},{name:"Guard1anes 2020",related_seasons:[{type:2,id:1315},{type:1,id:1317}],id:1287,type:0}],tournament:{show_logos:1,tournament_type:0,name:"Liga Expansion MX",logo:"https://az755631.vo.msecnd.net/tournaments/expansion_mx.png",id:1071,tournament_status:0,order:3}},{_id:1096,seasons:[{name:"Apertura 2023",related_seasons:[{type:1,id:1830}],id:1782,type:0},{name:"Clausura 2023",related_seasons:[{type:1,id:1751}],id:1714,type:0},{name:"Apertura 2022",related_seasons:[{type:1,id:1593}],id:1543,type:0},{name:"Grita Mexico C22",related_seasons:[{type:1,id:1522}],id:1487,type:0}],tournament:{show_logos:0,tournament_type:0,name:"Sub-18",logo:null,id:1096,tournament_status:0,order:6}}],i={token:"",token_b2c:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MjQyNTQsIm5hbWUiOiJHb2xTdGF0cyIsInVzZXJuYW1lIjoiZ29sdGVzdGluZyIsImVtYWlsIjoiIiwicHJvdmlkZXJfaWQiOjEsImxvZ2luX2dvbHN0YXRzIjoxLCJpYXQiOjE3MDA3ODkyNTcsImV4cCI6MTczMjMyNTI1N30.4iVGU3Q8rcNFRkYiPEmEYj1pB_UoYr1L5virEIpmGhs",id:24254,username:"goltesting",name:"GolStats",team:1,player:0,tournament:1,type_system:"presidents",language:"es",active_time:1,season:1772,is_player:0,related_seasons:[],is_goalkeeper:0,show_dashboard:1,user_type:1,premiumAccount:!0,userType:1,accessVideos:!0,sessionExpiration:1701869305930},n=s.computed(()=>a.reduce((r,o)=>{const l={...o.tournament,seasons:o.seasons};return l.seasons.forEach(c=>{r.set(c.id,l)}),r},new Map));return(r,o)=>(s.openBlock(),s.createElementBlock("div",PEe,[s.createVNode(s.unref(AEe),{"season-selected-id":1772,user:i,section:OEe,token:t.value,"tournaments-for-media-player":n.value,"background-color":""},null,8,["token","tournaments-for-media-player"])]))}},[["__scopeId","data-v-6fdc2bb3"]]),DEe={PO1:"CFI",PO2:"CFV",PO3:"SFI",PO4:"SFV",PO5:"FI",PO6:"FV"},LEe={DF:"Dieciseisavos",OF:"Octavos",CF:"Cuartos",SF:"Semifinales","3ER":"Tercer lugar",FINAL:"Final"},MEe={4:"Octavos",5:"Cuartos",6:"Semifinales",7:"Final"},REe=(e,t)=>{const a=e.__vccOpts||e;for(const[i,n]of t)a[i]=n;return a},nv={props:{type:{type:Number,default:0},value:{type:Boolean,default:!1},textValue:String,icon:String,iconPosition:{type:String,default:"left"},iconSize:String,fontColor:{type:String,default:"#FFFFFF"},textDecoration:String,fontSize:{type:String,default:"16px"},fontSizeStat:{type:String,default:"16px"},fontStyle:String,fontFamily:{type:String,default:"Poppins-Regular"},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},borderRadius:{type:String,default:"0px"},borderType:{type:String,default:"solid"},borderWidth:{type:Number,default:0},borderWidthBtn:{type:String,default:"2px"},borderColor:String,backgroundColor:{type:String,default:"none"},activeBackgroundColor:{type:String,default:"#000000"},activeBorderWidth:{type:Number,default:2},activeBorderType:{type:String,default:"solid"},activeBorderColor:{type:String,default:"#cbee6b"},activeColorText:{type:String,default:"#FFFFFF"},cursorType:{type:String,default:"default"},typeOnOff:{type:Boolean,default:!1},textCategory:String,textStat:String,marginLeftStat:{type:String,default:"15%"}},watch:{value:{deep:!0,immediate:!0,handler(e){this.status=e}}},data(){return{status:!1}},computed:{customStyle(){return{height:this.height,width:this.width,backgroundColor:this.backgroundColor,borderRadius:this.borderRadius,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`,color:this.fontColor,textDecoration:this.textDecoration,cursor:this.cursorType,fontSize:this.fontSize,fontStyle:this.fontStyle,fontFamily:`${this.fontFamily} !important`}},customActive(){return{backgroundColor:this.activeBackgroundColor,color:this.activeColorText,border:`${this.activeBorderType} ${this.activeBorderWidth}px ${this.activeBorderColor}`}}},methods:{btnClick(e){this.$emit("click",e),this.typeOnOff&&(this.status=!this.status,this.$emit("status",this.status))}}},GA=()=>{s.useCssVars(e=>({"1c960139":e.height,b2f635d8:e.borderWidthBtn,"06e99898":e.borderType,"55555c76":e.borderColor,"23b6d320":e.borderRadius,"22c97374":e.width,"22bb09fa":e.backgroundColor,c148da7c:e.cursorType,cce756fc:e.fontSize,cff98d60:e.fontStyle,"5123b3a5":e.fontFamily,"47bf58db":e.marginLeftStat,cadc8414:e.fontSizeStat}))},KA=nv.setup;nv.setup=KA?(e,t)=>(GA(),KA(e,t)):GA;const FEe=e=>(s.pushScopeId("data-v-fb269a1e"),e=e(),s.popScopeId(),e),VEe=["src"],UEe={key:1,class:"text"},jEe=["src"],zEe={class:"stats"},HEe=FEe(()=>s.createElementVNode("img",{class:"iconstats",src:"https://az755631.vo.msecnd.net/todoelfut/playdes.png"},null,-1)),qEe={class:"numstats"},WEe={class:"leyend"};function GEe(e,t,a,i,n,r){return s.openBlock(),s.createElementBlock("div",null,[a.type==0?(s.openBlock(),s.createElementBlock("div",{key:0,class:s.normalizeClass(["button",n.status&&a.typeOnOff&&"button-active"]),style:s.normalizeStyle([r.customStyle,n.status&&a.typeOnOff&&r.customActive]),onClick:t[0]||(t[0]=(...o)=>r.btnClick&&r.btnClick(...o))},[a.icon&&a.iconPosition.toLowerCase()==="left"?(s.openBlock(),s.createElementBlock("img",{key:0,class:"icon",style:s.normalizeStyle({width:a.iconSize}),src:a.icon},null,12,VEe)):s.createCommentVNode("",!0),a.textValue?(s.openBlock(),s.createElementBlock("div",UEe,s.toDisplayString(a.textValue),1)):s.createCommentVNode("",!0),a.icon&&a.iconPosition.toLowerCase()==="right"?(s.openBlock(),s.createElementBlock("img",{key:2,class:"icon",style:s.normalizeStyle({width:a.iconSize}),src:a.icon},null,12,jEe)):s.createCommentVNode("",!0)],6)):s.createCommentVNode("",!0),a.type==1?(s.openBlock(),s.createElementBlock("div",{key:1,class:"button-target",onClick:t[1]||(t[1]=(...o)=>r.btnClick&&r.btnClick(...o))},[s.createElementVNode("div",zEe,[HEe,s.createElementVNode("div",qEe,s.toDisplayString(a.textStat),1)]),s.createElementVNode("div",WEe,s.toDisplayString(a.textCategory),1)])):s.createCommentVNode("",!0)])}const KEe=REe(nv,[["render",GEe],["__scopeId","data-v-fb269a1e"]]),XEe={class:"gsc-dropdown__main-container__item-selected"},JEe=["height","width"],YEe=["stroke"],QEe={class:"gsc-dropdown__items-container"},ZEe=["onClick"],$Ee={key:0,class:"gsc-dropdown__items-footer"},e5e={__name:"GSC-Dropdown",props:{modelValue:{type:[Object,Number,String],default:()=>null},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},fontSize:{type:String,default:"14px"},borderRadius:{type:Number,default:5},arrowHeight:{type:Number,default:24},arrowWidth:{type:Number,default:24},borderType:{type:String,default:"solid",validator:function(e){return["solid","dotted","dashed"].includes(e)}},borderWidth:{type:Number,default:1},borderColor:{type:String,default:"black"},backgroundColor:{type:String,default:"grey"},color:{type:String,default:"black"},arrowColor:{type:String,default:"#CBEE6B"},items:{type:Array,default:()=>[]},defaultItemByIndex:{type:Number,default:0},defaultItemByProp:{type:Object,default:null,validator:e=>["propName","value"].every(t=>t in e)},listBackgroundColor:{type:String,default:"white"},hoverBackgroundColor:{type:String,default:"#f1f1f1"},listItemPadding:{type:String,default:"10px 12px"},listHeight:{type:String,default:"fit-content"},listItemSelectedColor:{type:String,default:"white"},listItemSelectedBackgroundColor:{type:String,default:"#399cfd"},listItemColor:{type:String,default:"black"},listBorderRadius:{type:String,default:"0"},listBorderColor:{type:String,default:""},listBorderWidth:{type:Number,default:1},isListSameWidth:{type:Boolean,default:!1},isMultipleOption:{type:Boolean,default:!1},footerBorderColor:{type:String,default:"#626970"},footerBorderWidth:{type:Number,default:1},isFooterVisible:{type:Boolean,default:!1},isDisabled:{type:Boolean,default:!1},onlyFirstTime:{type:Boolean,default:!1}},emits:["input","click-ready","update:modelValue"],setup(e,{emit:t}){const a=e,i=s.ref({}),n=s.ref(a.isMultipleOption?-1:0),r=s.ref(!1);s.watch(()=>a.items,(h,p)=>{if(!a.modelValue&&(!a.onlyFirstTime||!p||!p.length)&&h&&h.length){if(a.defaultItemByProp){const m=a.items.findIndex(f=>f[a.defaultItemByProp.propName]===a.defaultItemByProp.value);m!==-1?(n.value=m,i.value=h[m]):(n.value=0,i.value=h[0])}else i.value=h[a.defaultItemByIndex];t("input",i.value)}},{immediate:!0}),s.watch(()=>a.modelValue,h=>{if(h){const p=a.items.findIndex(m=>typeof h=="object"?JSON.stringify(m)===JSON.stringify(h):m===h);p!==-1&&(n.value=p,i.value=a.items[p],t("update:modelValue",i.value))}},{immediate:!0});const o=s.computed(()=>({height:a.height,width:a.width,backgroundColor:a.backgroundColor,borderRadius:`${a.borderRadius}px`,border:`${a.borderType} ${a.borderWidth}px ${a.borderColor}`,color:a.color,"--hover-background-color":a.hoverBackgroundColor,"--list-item-padding":a.listItemPadding,"--list-background-color":a.listBackgroundColor,"--list-height":a.listHeight,"--list-item-selected-color":a.listItemSelectedColor,"--list-item-selected-background-color":a.listItemSelectedBackgroundColor,"--list-item-color":a.listItemColor,"--list-border-radius":`${a.listBorderRadius}`,"--list-border-color":a.listBorderColor,"--list-width":a.isListSameWidth?a.width:"fit-content","--list-border-width":`${a.listBorderWidth}px`,"--footer-border":`${a.footerBorderWidth}px solid ${a.footerBorderColor}`,"--dropdown-opacity":a.isDisabled?"0.5":"1","--dropdown-cursor":a.isDisabled?"not-allowed":"pointer","--dropdown-font-size":a.fontSize?a.fontSize:"14px"})),l=s.computed(()=>({height:`${a.arrowHeight}px`,width:`${a.arrowWidth}px`}));function c(){a.isDisabled||(r.value=!r.value)}function d(h,p){a.isMultipleOption?n.value=-1:(n.value=p,r.value=!1),i.value=h,t("input",i.value),t("update:modelValue",i.value)}function u(){r.value=!1,t("click-ready")}return(h,p)=>(s.openBlock(),s.createElementBlock("div",{class:"gsc-dropdown",style:s.normalizeStyle(o.value)},[s.createElementVNode("div",{class:"gsc-dropdown__main-container",style:s.normalizeStyle({"padding-right":`${e.arrowWidth+8}px`}),onClick:c},[s.createElementVNode("div",XEe,[s.renderSlot(h.$slots,"default",{selectedItem:i.value})]),s.createElementVNode("div",{class:s.normalizeClass(["gsc-dropdown__main-container__icon",{"rotated-180":r.value}]),style:s.normalizeStyle(l.value)},[(s.openBlock(),s.createElementBlock("svg",{height:e.arrowHeight,width:e.arrowWidth,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[s.createElementVNode("path",{d:"M18.394 9.13501L13.1302 14.3988C12.5086 15.0204 11.4914 15.0204 10.8697 14.3988L5.60596 9.13501",stroke:e.arrowColor},null,8,YEe)],8,JEe))],6)],4),s.createVNode(s.Transition,null,{default:s.withCtx(()=>[s.withDirectives(s.createElementVNode("div",QEe,[s.createElementVNode("div",null,[s.createElementVNode("div",{class:"gsc-dropdown__items",style:s.normalizeStyle({"margin-top":`${a.borderWidth}px`})},[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(e.items,(m,f)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["gsc-dropdown__items__item",{selected:f===n.value}]),key:f,onClick:b=>d(m,f)},[s.renderSlot(h.$slots,"availableItem",{item:m})],10,ZEe))),128))],4),e.isFooterVisible?(s.openBlock(),s.createElementBlock("div",$Ee,[s.createVNode(s.unref(KEe),{"text-value":"Listo","border-color":"#cbee6b","font-size":"12px",width:"72px",height:"22px","border-radius":"62px","border-width":.8,onClick:u})])):s.createCommentVNode("",!0)])],512),[[s.vShow,r.value]])]),_:3})],4))}},t5e=(e,t)=>{const a=e.__vccOpts||e;for(const[i,n]of t)a[i]=n;return a},a5e={class:"tournament-select__selected-tournament"},i5e={class:"tournament-select__selected-tournament__logo"},n5e=["src"],r5e={class:"tournament-select__selected-tournament__name"},s5e={__name:"GSCTournamentSelect",props:{apiUrl:{type:String,default:"https://kefloixzy1.execute-api.us-west-2.amazonaws.com/prod/gs3/tournaments"},fontFamily:{type:String,default:"sans-serif"},logosUrl:{type:String,default:"https://az755631.vo.msecnd.net/todoelfut/"},logoFileType:{type:String,default:"png"},height:{type:String,default:"40px"},width:{type:String,default:"179px"},borderRadius:{type:Number,default:8},arrowHeight:{type:Number,default:24},arrowWidth:{type:Number,default:24},borderType:{type:String,default:"solid",validator:function(e){return["solid","dotted","dashed"].includes(e)}},borderWidth:{type:Number,default:1},borderColor:{type:String,default:"rgba(255, 255, 255, 0.2)"},backgroundColor:{type:String,default:"#0d1d29"},color:{type:String,default:"white"},arrowColor:{type:String,default:"#CBEE6B"},items:{type:Array,default:()=>[]},defaultItemByIndex:{type:Number,default:0},defaultItemByProp:{type:Object,default:null,validator:e=>["propName","value"].every(t=>t in e)},currentSeasonId:{type:Number,default:0}},emits:["input"],setup(e,{emit:t}){const a=e,i=s.ref([]),n=s.computed(()=>{const h={};return a.fontFamily&&(h["font-family"]=`${a.fontFamily}`),h}),r=s.computed(()=>i.value.find(h=>h.seasonsIds.has(a.currentSeasonId))||i.value[0]);async function o(){try{if(a.items&&a.items.length)i.value=[...a.items];else if(a.apiUrl){const h=await c();i.value=h.map(p=>({...p.tournament,seasons:p.seasons,seasonsIds:p.seasons.reduce((m,f)=>(m.add(f.id),m),new Set)})).sort((p,m)=>p.order-m.order)}}catch(h){throw new Error(h)}}function l(h){const p=new XMLHttpRequest,m=`${a.logosUrl}${h}.${a.logoFileType}`;return p.open("HEAD",m,!1),p.send(),p.status!==404}async function c(){try{return(await fetch(a.apiUrl)).json()}catch(h){return Promise.reject(h)}}function d(h){t("input",h)}function u(h){t("input",h)}return s.onMounted(()=>{o()}),(h,p)=>(s.openBlock(),s.createElementBlock("div",{class:"tournament-select",style:s.normalizeStyle(n.value)},[s.createVNode(s.unref(e5e),s.mergeProps(a,{"model-value":r.value,items:i.value,onInput:d,"onUpdate:modelValue":u}),{default:s.withCtx(({selectedItem:m})=>[s.createElementVNode("div",a5e,[s.createElementVNode("div",i5e,[l(m.id)?(s.openBlock(),s.createElementBlock("img",{key:0,src:`${a.logosUrl}${m.id}.${a.logoFileType}`,alt:""},null,8,n5e)):s.createCommentVNode("",!0)]),s.createElementVNode("div",r5e,s.toDisplayString(m.name),1)])]),availableItem:s.withCtx(({item:m})=>[s.createElementVNode("div",null,s.toDisplayString(m.name),1)]),_:1},16,["model-value","items"])],4))}},o5e=t5e(s5e,[["__scopeId","data-v-0426ea5e"]]),l5e=(e,t)=>{const a=e.__vccOpts||e;for(const[i,n]of t)a[i]=n;return a},rv={props:{type:{type:Number,default:0},value:{type:Boolean,default:!1},textValue:String,icon:String,iconPosition:{type:String,default:"left"},iconSize:String,fontColor:{type:String,default:"#FFFFFF"},textDecoration:String,fontSize:{type:String,default:"16px"},fontSizeStat:{type:String,default:"16px"},fontStyle:String,fontFamily:{type:String,default:"Poppins-Regular"},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},borderRadius:{type:String,default:"0px"},borderType:{type:String,default:"solid"},borderWidth:{type:Number,default:0},borderWidthBtn:{type:String,default:"2px"},borderColor:String,backgroundColor:{type:String,default:"none"},activeBackgroundColor:{type:String,default:"#000000"},activeBorderWidth:{type:Number,default:2},activeBorderType:{type:String,default:"solid"},activeBorderColor:{type:String,default:"#cbee6b"},activeColorText:{type:String,default:"#FFFFFF"},cursorType:{type:String,default:"default"},typeOnOff:{type:Boolean,default:!1},textCategory:String,textStat:String,marginLeftStat:{type:String,default:"15%"}},watch:{value:{deep:!0,immediate:!0,handler(e){this.status=e}}},data(){return{status:!1}},computed:{customStyle(){return{height:this.height,width:this.width,backgroundColor:this.backgroundColor,borderRadius:this.borderRadius,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`,color:this.fontColor,textDecoration:this.textDecoration,cursor:this.cursorType,fontSize:this.fontSize,fontStyle:this.fontStyle,fontFamily:`${this.fontFamily} !important`}},customActive(){return{backgroundColor:this.activeBackgroundColor,color:this.activeColorText,border:`${this.activeBorderType} ${this.activeBorderWidth}px ${this.activeBorderColor}`}}},methods:{btnClick(e){this.$emit("click",e),this.typeOnOff&&(this.status=!this.status,this.$emit("status",this.status))}}},XA=()=>{s.useCssVars(e=>({"1c960139":e.height,b2f635d8:e.borderWidthBtn,"06e99898":e.borderType,"55555c76":e.borderColor,"23b6d320":e.borderRadius,"22c97374":e.width,"22bb09fa":e.backgroundColor,c148da7c:e.cursorType,cce756fc:e.fontSize,cff98d60:e.fontStyle,"5123b3a5":e.fontFamily,"47bf58db":e.marginLeftStat,cadc8414:e.fontSizeStat}))},JA=rv.setup;rv.setup=JA?(e,t)=>(XA(),JA(e,t)):XA;const c5e=e=>(s.pushScopeId("data-v-fb269a1e"),e=e(),s.popScopeId(),e),d5e=["src"],u5e={key:1,class:"text"},h5e=["src"],p5e={class:"stats"},m5e=c5e(()=>s.createElementVNode("img",{class:"iconstats",src:"https://az755631.vo.msecnd.net/todoelfut/playdes.png"},null,-1)),f5e={class:"numstats"},g5e={class:"leyend"};function y5e(e,t,a,i,n,r){return s.openBlock(),s.createElementBlock("div",null,[a.type==0?(s.openBlock(),s.createElementBlock("div",{key:0,class:s.normalizeClass(["button",n.status&&a.typeOnOff&&"button-active"]),style:s.normalizeStyle([r.customStyle,n.status&&a.typeOnOff&&r.customActive]),onClick:t[0]||(t[0]=(...o)=>r.btnClick&&r.btnClick(...o))},[a.icon&&a.iconPosition.toLowerCase()==="left"?(s.openBlock(),s.createElementBlock("img",{key:0,class:"icon",style:s.normalizeStyle({width:a.iconSize}),src:a.icon},null,12,d5e)):s.createCommentVNode("",!0),a.textValue?(s.openBlock(),s.createElementBlock("div",u5e,s.toDisplayString(a.textValue),1)):s.createCommentVNode("",!0),a.icon&&a.iconPosition.toLowerCase()==="right"?(s.openBlock(),s.createElementBlock("img",{key:2,class:"icon",style:s.normalizeStyle({width:a.iconSize}),src:a.icon},null,12,h5e)):s.createCommentVNode("",!0)],6)):s.createCommentVNode("",!0),a.type==1?(s.openBlock(),s.createElementBlock("div",{key:1,class:"button-target",onClick:t[1]||(t[1]=(...o)=>r.btnClick&&r.btnClick(...o))},[s.createElementVNode("div",p5e,[m5e,s.createElementVNode("div",f5e,s.toDisplayString(a.textStat),1)]),s.createElementVNode("div",g5e,s.toDisplayString(a.textCategory),1)])):s.createCommentVNode("",!0)])}const _5e=l5e(rv,[["render",y5e],["__scopeId","data-v-fb269a1e"]]),b5e={class:"gsc-dropdown__main-container__item-selected"},v5e=["height","width"],S5e=["stroke"],w5e={class:"gsc-dropdown__items-container"},T5e=["onClick"],C5e={key:0,class:"gsc-dropdown__items-footer"},k5e={__name:"GSC-Dropdown",props:{modelValue:{type:[Object,Number,String],default:()=>null},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},fontSize:{type:String,default:"14px"},borderRadius:{type:Number,default:5},arrowHeight:{type:Number,default:24},arrowWidth:{type:Number,default:24},borderType:{type:String,default:"solid",validator:function(e){return["solid","dotted","dashed"].includes(e)}},borderWidth:{type:Number,default:1},borderColor:{type:String,default:"black"},backgroundColor:{type:String,default:"grey"},color:{type:String,default:"black"},arrowColor:{type:String,default:"#CBEE6B"},items:{type:Array,default:()=>[]},defaultItemByIndex:{type:Number,default:0},defaultItemByProp:{type:Object,default:null,validator:e=>["propName","value"].every(t=>t in e)},listBackgroundColor:{type:String,default:"white"},hoverBackgroundColor:{type:String,default:"#f1f1f1"},listItemPadding:{type:String,default:"10px 12px"},listHeight:{type:String,default:"fit-content"},listItemSelectedColor:{type:String,default:"white"},listItemSelectedBackgroundColor:{type:String,default:"#399cfd"},listItemColor:{type:String,default:"black"},listBorderRadius:{type:String,default:"0"},listBorderColor:{type:String,default:""},listBorderWidth:{type:Number,default:1},isListSameWidth:{type:Boolean,default:!1},isMultipleOption:{type:Boolean,default:!1},footerBorderColor:{type:String,default:"#626970"},footerBorderWidth:{type:Number,default:1},isFooterVisible:{type:Boolean,default:!1},isDisabled:{type:Boolean,default:!1},onlyFirstTime:{type:Boolean,default:!1}},emits:["input","click-ready","update:modelValue"],setup(e,{emit:t}){const a=e,i=s.ref({}),n=s.ref(a.isMultipleOption?-1:0),r=s.ref(!1);s.watch(()=>a.items,(h,p)=>{if(!a.modelValue&&(!a.onlyFirstTime||!p||!p.length)&&h&&h.length){if(a.defaultItemByProp){const m=a.items.findIndex(f=>f[a.defaultItemByProp.propName]===a.defaultItemByProp.value);m!==-1?(n.value=m,i.value=h[m]):(n.value=0,i.value=h[0])}else i.value=h[a.defaultItemByIndex];t("input",i.value)}},{immediate:!0}),s.watch(()=>a.modelValue,h=>{if(h){const p=a.items.findIndex(m=>typeof h=="object"?JSON.stringify(m)===JSON.stringify(h):m===h);p!==-1&&(n.value=p,i.value=a.items[p],t("update:modelValue",i.value))}},{immediate:!0});const o=s.computed(()=>({height:a.height,width:a.width,backgroundColor:a.backgroundColor,borderRadius:`${a.borderRadius}px`,border:`${a.borderType} ${a.borderWidth}px ${a.borderColor}`,color:a.color,"--hover-background-color":a.hoverBackgroundColor,"--list-item-padding":a.listItemPadding,"--list-background-color":a.listBackgroundColor,"--list-height":a.listHeight,"--list-item-selected-color":a.listItemSelectedColor,"--list-item-selected-background-color":a.listItemSelectedBackgroundColor,"--list-item-color":a.listItemColor,"--list-border-radius":`${a.listBorderRadius}`,"--list-border-color":a.listBorderColor,"--list-width":a.isListSameWidth?a.width:"fit-content","--list-border-width":`${a.listBorderWidth}px`,"--footer-border":`${a.footerBorderWidth}px solid ${a.footerBorderColor}`,"--dropdown-opacity":a.isDisabled?"0.5":"1","--dropdown-cursor":a.isDisabled?"not-allowed":"pointer","--dropdown-font-size":a.fontSize?a.fontSize:"14px"})),l=s.computed(()=>({height:`${a.arrowHeight}px`,width:`${a.arrowWidth}px`}));function c(){a.isDisabled||(r.value=!r.value)}function d(h,p){a.isMultipleOption?n.value=-1:(n.value=p,r.value=!1),i.value=h,t("input",i.value),t("update:modelValue",i.value)}function u(){r.value=!1,t("click-ready")}return(h,p)=>(s.openBlock(),s.createElementBlock("div",{class:"gsc-dropdown",style:s.normalizeStyle(o.value)},[s.createElementVNode("div",{class:"gsc-dropdown__main-container",style:s.normalizeStyle({"padding-right":`${e.arrowWidth+8}px`}),onClick:c},[s.createElementVNode("div",b5e,[s.renderSlot(h.$slots,"default",{selectedItem:i.value})]),s.createElementVNode("div",{class:s.normalizeClass(["gsc-dropdown__main-container__icon",{"rotated-180":r.value}]),style:s.normalizeStyle(l.value)},[(s.openBlock(),s.createElementBlock("svg",{height:e.arrowHeight,width:e.arrowWidth,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[s.createElementVNode("path",{d:"M18.394 9.13501L13.1302 14.3988C12.5086 15.0204 11.4914 15.0204 10.8697 14.3988L5.60596 9.13501",stroke:e.arrowColor},null,8,S5e)],8,v5e))],6)],4),s.createVNode(s.Transition,null,{default:s.withCtx(()=>[s.withDirectives(s.createElementVNode("div",w5e,[s.createElementVNode("div",null,[s.createElementVNode("div",{class:"gsc-dropdown__items",style:s.normalizeStyle({"margin-top":`${a.borderWidth}px`})},[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(e.items,(m,f)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["gsc-dropdown__items__item",{selected:f===n.value}]),key:f,onClick:b=>d(m,f)},[s.renderSlot(h.$slots,"availableItem",{item:m})],10,T5e))),128))],4),e.isFooterVisible?(s.openBlock(),s.createElementBlock("div",C5e,[s.createVNode(s.unref(_5e),{"text-value":"Listo","border-color":"#cbee6b","font-size":"12px",width:"72px",height:"22px","border-radius":"62px","border-width":.8,onClick:u})])):s.createCommentVNode("",!0)])],512),[[s.vShow,r.value]])]),_:3})],4))}},E5e=(e,t)=>{const a=e.__vccOpts||e;for(const[i,n]of t)a[i]=n;return a},I5e={class:"season-name"},x5e={components:{GSCSeasonSelect:E5e({__name:"GSC-SeasonSelect",props:{seasons:{type:Array,default:()=>[]},currentSeasonId:{type:Number,default:0}},emits:["input"],setup(e,{emit:t}){const a=e,i=t,n=s.computed(()=>a.seasons.find(l=>l.id===a.currentSeasonId));function r(l){i("input",l)}function o(l){i("input",l)}return(l,c)=>(s.openBlock(),s.createBlock(s.unref(k5e),{items:e.seasons,"model-value":n.value,height:"40px",width:"179px","background-color":"#0d1d29",color:"white","border-color":"rgba(255, 255, 255, 0.2)","font-family":"Poppins-Regular","border-radius":8,onInput:o,"onUpdate:modelValue":r},{default:s.withCtx(({selectedItem:d})=>[s.createElementVNode("div",I5e,[s.createElementVNode("span",null,s.toDisplayString(d.name),1)])]),availableItem:s.withCtx(({item:d})=>[s.createElementVNode("span",null,s.toDisplayString(d.name),1)]),_:1},8,["items","model-value"]))}},[["__scopeId","data-v-cb91d262"]]),GSCTournamentSelect:o5e,GSCGames:UU,GSCGridTeamsMatches:ZO,GSCPlayersLanding:WO,GSCTops:Vj,GSCTableCalendar:MV,GSCMediaPlayer:BEe},setup(){const e=s.ref("landingref"),{elementSize:t}=vO(e);return{landingref:e,elementSize:t}},watch:{team:{immediate:!0,deep:!0,async handler(e){if(Object.keys(this.seasonSelected).length!==0){const t=await this.generateSeasons(this.seasonSelected);this.seasonsSelected=t,this.fetchGames(e,t)}}},closestRound(e){this.selectedRoundKeyIndex=this.tournamentScheduleKeys.findIndex(t=>t===e),this.selectedRound=e}},props:{currentSeasonId:{type:Number,default:0},season:{type:Number,default:1772},isplayer:{type:Boolean,default:!1},user:{type:Object,default:()=>{}},team:{type:Number,default:0},player:{type:Number,default:0},gamesPerMatchDay:{type:Number,default:0,validator(e){return!Number.isNaN(e)&&e>=0}}},data(){return{defaultGameId:0,lastSeasonsIds:[],gamesPages:new Map,selectedRoundKeyIndex:0,selectedRound:0,fullTournamentScheduleFull:[],defaultMatchDayKey:null,isCupTournament:!1,retries:3,userTeamGames:[],isCupLegacyTournament:!1,tournamentScheduleKeys:[],currentTournamentGames:null,currentTournamentTeams:null,gamesUrl:"https://qyyibs1w0d.execute-api.us-west-2.amazonaws.com/prod/calendar/gamesBySeason/",gamesUrl2:"https://qyyibs1w0d.execute-api.us-west-2.amazonaws.com/prod/calendar/gamesBySeason?",seasonSelected:{},seasonSelectedDropDowns:{},seasonsSelected:[],fullTournamentSchedule:{},tournamentSelected:{},tournamentSelectedDropDowns:{seasons:[]},playersLength:0,tokenFree:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"}},computed:{gamesFullLeague(){var e=[];for(let t=0;t<this.fullTournamentScheduleFull[this.selectedRound].length;t++)for(let a=0;a<this.fullTournamentScheduleFull[this.selectedRound][t].games.length;a++)e.push(this.fullTournamentScheduleFull[this.selectedRound][t].games[a]);return e},closestRound(){return this.userTeamGames&&this.userTeamGames.length?this.getUserTeamClosestRound(this.fullTournamentScheduleFull):this.getNormalClosestRound(this.fullTournamentScheduleFull)},containerGridCalendarTable(){return this.elementSize.width<=1e3?"container-grid-calendar-table-mobile":"container-grid-calendar-table"},containerbackground(){return this.elementSize.width<=680?"container-background-movil":"container-background"},containerdata(){return this.elementSize.width<=680?"container-data-movil":"container-data"}},methods:{onAction(e){this.$emit("action",e)},onOpenMedia(e){this.$emit("openmedia",e)},onOpenProfile(e){this.$emit("onOpenProfile",e)},onClickMatch(e){this.$emit("openGame",e)},onClickCalendar(){const e={type:this.tournamentSelected.id==this.user.tournament?1:0,team:this.team,season:this.seasonSelectedDropDowns};this.$emit("onClickMyCalendar",e)},moreTops(){const e={team:this.team,season:this.seasonSelectedDropDowns};this.$emit("openTops",e)},clickProfileBtn(e){this.$emit("openProfile",e)},viewAll(){const e={team:this.team,season:this.seasonSelectedDropDowns};this.$emit("openAllPlayers",e)},getTotalPlayers(e){this.playersLength=e},clickCard(e){const t={data:e,isPlayer:this.isplayer};this.$emit("clickOnMainCards",t)},async fetchGames(e,t){const a=t.map(n=>`seasons=${n.id}`).join("&"),i=vc.create({headers:{Authorization:`${this.tokenFree}`}});this.fullTournamentSchedule=await i.get(this.gamesUrl+e+"?"+a)},async generateSeasons(e){const t=[{id:e.id,type:e.type}];return e.related_seasons&&e.related_seasons.length&&t.push(...e.related_seasons.map(a=>({id:a.id,type:a.type}))),t},async onInputTournament(e){this.tournamentSelected=e,this.tournamentSelectedDropDowns.id!==e.id&&(this.tournamentSelectedDropDowns=e)},async onInputSeason(e){if(this.seasonSelected=e,this.tournamentSelected.id!=this.user.tournament){const t=await this.generateSeasons(this.seasonSelected);this.seasonsSelected=t,await this.createFullTournamentScheme(t,!1)}else{const t=await this.generateSeasons(this.seasonSelected);this.seasonsSelected=t,await this.fetchGames(this.user.team,t)}this.seasonSelectedDropDowns!==e.id&&(this.seasonSelectedDropDowns=e.id,this.$emit("change-season-id",e.id))},async fetchTournaments(e){try{const{data:t}=await vc.get("https://kefloixzy1.execute-api.us-west-2.amazonaws.com/prod/tournaments");return t}catch(t){if(e>0)return this.fetchTournaments(e-1);throw new Error(t)}},async fetchSeasonsGamesAndTeams(e,t,a=""){let i=a;try{i||(i=this.gamesUrl2,e.forEach((l,c)=>{i+=`${c===0?"":"&"}seasons=${l}`}));const n=vc.create({headers:{Authorization:`${this.tokenFree}`}}),{data:{data:r,teams:o}}=await n.get(i);return{seasonsAndGames:r,seasonsAndTeams:o}}catch(n){if(t>0)return this.fetchSeasonsGamesAndTeams(e,t-1,i);throw new Error(n)}},areSeasonsDifferent(e){for(const t of e)if(!this.lastSeasonsIds.includes(t.season_id))return!0;return!1},async createFullTournamentScheme(e,t){try{this.fullTournamentSchedule={},this.userTeamGames=[];let a=0;const{seasonsAndGames:i,seasonsAndTeams:n}=await this.fetchSeasonsGamesAndTeams(e.map(c=>c.id),3);if(t&&this.areSeasonsDifferent(i))return;i.forEach(c=>{const{type:d}=e.find(u=>u.id===c.season_id);c.type=d,c.games.forEach(u=>{u.season_id=c.season_id}),d===0&&(a=c.season_id)});const r={seasonsGames:i},{teams:o}=n.find(c=>c.season_id===a),l=r&&r.seasonsGames?r.seasonsGames.map(c=>{const d=c.games.reduce((u,h)=>{const p={...h};return p.dateTimeMillis=new Date(p.date_time_utc).valueOf(),p.home_team=o.find(m=>m.team_id===h.home_team),p.visiting_team=o.find(m=>m.team_id===h.visiting_team),u[h.matchday_abbreviation]?u[h.matchday_abbreviation][h.game_status===3?"canceled":h.date]?u[h.matchday_abbreviation][h.game_status===3?"canceled":h.date].push(p):u[h.matchday_abbreviation][h.game_status===3?"canceled":h.date]=[p]:u[h.matchday_abbreviation]={[h.game_status===3?"canceled":h.date]:[p]},this.gsData&&this.gsData.teamId&&p.game_status===4&&(p.home_team.team_id===this.gsData.teamId||p.visiting_team.team_id===this.gsData.teamId)&&this.userTeamGames.push(p),u},{});this.userTeamGames.sort((u,h)=>u.dateTimeMillis-h.dateTimeMillis);for(let[u,h]of Object.entries(d))d[u]=Object.entries(h).map(([p,m])=>({date:p,games:m.sort((f,b)=>f.dateTimeMillis-b.dateTimeMillis)})),d[u].sort((p,m)=>p.date<m.date?-1:p.date>m.date?1:0);return{type:c.type,weight:c.type===0?0:c.type===2?1:2,schedule:d}}):[];l.sort((c,d)=>c.weight-d.weight),this.fullTournamentScheduleFull=l.reduce((c,d)=>{for(const[u,h]of Object.entries(d.schedule))if(d.type===0)if(this.isCup){const p=u.replace("M",""),m=`Jornada ${p}`;this.isCupLegacy?c[MEe[p]||m]=h:c[LEe[u]||m]=h}else c[Number(u.replace("M","")).toString()]=h;else d.type===2?["PI1","PI2"].includes(u)?c[u]=h:c[`R${Number(u.replace("PO",""))}`]=h:d.type===1&&(c[DEe[u]]=h);return c},{}),this.tournamentScheduleKeys=Object.keys(this.fullTournamentScheduleFull)}catch(a){throw new Error(a)}finally{this.loadingFlag=!1}},getNormalClosestRound(e){const a=Object.entries(Object.entries(e).reduce((r,[o,l])=>(r[o]=[],l.forEach(c=>{c.games.forEach(d=>{const u=new Date(d.date_time_utc).getTime()+66e5;r[o].push(u)})}),r),{}));if(!a.length)return"1";const i=new Date().getTime(),n=a.reduce((r,[o,l])=>{let c=null;return l.forEach(d=>{const u=d-i;u>=0&&(c===null||u<c)&&(c=u)}),c&&(r.shortestTime===null||c<r.shortestTime)&&(r.round=o,r.shortestTime=c),r},{round:"",shortestTime:null});return n.shortestTime!==null?n.round:a[a.length-1][0]},getUserTeamClosestRound(e){let t=1;if(this.userTeamGames.length){const a=this.userTeamGames[0];for(const[i,n]of Object.entries(e))for(const r of n)if(r.games.find(l=>l.game_id===a.game_id))return i}return t}},async created(){const a=(await this.fetchTournaments(3)).find(n=>n._id===1).seasons[1],i=[{id:a.id,type:a.type}];a.related_seasons&&a.related_seasons.length&&i.push(...a.related_seasons.map(n=>({id:n.id,type:n.type}))),await this.createFullTournamentScheme(i,!1)}},N5e=e=>(s.pushScopeId("data-v-1d1c7fb4"),e=e(),s.popScopeId(),e),A5e={class:"gsclanding",ref:"landingref"},P5e={key:0,class:"container-selectors-mobile"},O5e={class:"container-selectors-mobile-tournament"},B5e={class:"container-selectors-mobile-season"},D5e={key:0,class:"home-item-movil"},L5e=N5e(()=>s.createElementVNode("div",{class:"home-movil"},"Inicio",-1)),M5e={class:"name-user-movil"},R5e={key:1,class:"home-item"},F5e={key:2,class:"bar-settings"},V5e={class:"name-user"},U5e={class:"container-selectors"},j5e={class:"selector-tournament"},z5e={class:"selector-seasons"},H5e={key:3,class:"container-games"},q5e={key:4,class:"container-players"},W5e={class:"container-tops"},G5e={class:"container-vr"};function K5e(e,t,a,i,n,r){const o=s.resolveComponent("GSCTournamentSelect"),l=s.resolveComponent("GSCSeasonSelect"),c=s.resolveComponent("GSCGames"),d=s.resolveComponent("GSCGridTeamsMatches"),u=s.resolveComponent("GSCTableCalendar"),h=s.resolveComponent("GSCPlayersLanding"),p=s.resolveComponent("GSCTops"),m=s.resolveComponent("GSCMediaPlayer");return s.openBlock(),s.createElementBlock("div",A5e,[i.elementSize.width<=680?(s.openBlock(),s.createElementBlock("div",P5e,[s.createElementVNode("div",O5e,[s.createVNode(o,{"current-season-id":a.currentSeasonId,width:"100%",onInput:r.onInputTournament},null,8,["current-season-id","onInput"])]),s.createElementVNode("div",B5e,[s.createVNode(l,{"current-season-id":a.currentSeasonId,width:"100%",seasons:n.tournamentSelectedDropDowns.seasons,onInput:r.onInputSeason},null,8,["current-season-id","seasons","onInput"])])])):s.createCommentVNode("",!0),s.createElementVNode("div",{class:s.normalizeClass(r.containerbackground)},[s.createElementVNode("div",{class:s.normalizeClass(r.containerdata)},[i.elementSize.width<=680?(s.openBlock(),s.createElementBlock("div",D5e,[L5e,s.createElementVNode("div",M5e,[s.createTextVNode("Bienvenido "),a.user.name.split(",").length!=0?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[a.user.name.split(",").length==1?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[a.user.name.split(",")[0]!=""?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[s.createTextVNode(", ")],64)):s.createCommentVNode("",!0),s.createTextVNode(s.toDisplayString(a.user.name.split(",")[0]),1)],64)):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[a.user.name.split(",")[0]!=""?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[s.createTextVNode(", ")],64)):s.createCommentVNode("",!0),s.createTextVNode(s.toDisplayString(a.user.name.split(",")[1]),1)],64))],64)):s.createCommentVNode("",!0)])])):s.createCommentVNode("",!0),i.elementSize.width>680?(s.openBlock(),s.createElementBlock("div",R5e,"Inicio")):s.createCommentVNode("",!0),i.elementSize.width>680?(s.openBlock(),s.createElementBlock("div",F5e,[s.createElementVNode("div",V5e,[s.createTextVNode("Bienvenido "),a.user.name.split(",").length!=0?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[a.user.name.split(",").length==1?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[a.user.name.split(",")[0]!=""?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[s.createTextVNode(", ")],64)):s.createCommentVNode("",!0),s.createTextVNode(s.toDisplayString(a.user.name.split(",")[0]),1)],64)):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[a.user.name.split(",")[0]!=""?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[s.createTextVNode(", ")],64)):s.createCommentVNode("",!0),s.createTextVNode(s.toDisplayString(a.user.name.split(",")[1]),1)],64))],64)):s.createCommentVNode("",!0)]),s.createElementVNode("div",U5e,[s.createElementVNode("div",j5e,[s.createVNode(o,{"current-season-id":a.currentSeasonId,onInput:r.onInputTournament},null,8,["current-season-id","onInput"])]),s.createElementVNode("div",z5e,[s.createVNode(l,{"current-season-id":a.currentSeasonId,seasons:n.tournamentSelectedDropDowns.seasons,onInput:r.onInputSeason},null,8,["current-season-id","seasons","onInput"])])])])):s.createCommentVNode("",!0),Object.keys(n.tournamentSelected).length>0?(s.openBlock(),s.createElementBlock("div",H5e,[s.createVNode(c,{"component-width":i.elementSize.width,isplayer:a.isplayer,"is-full":n.tournamentSelected.id!=a.user.tournament,onClickMatch:r.onClickMatch,onClickCalendar:r.onClickCalendar,data:n.tournamentSelected.id==a.user.tournament?n.fullTournamentSchedule:r.gamesFullLeague},null,8,["component-width","isplayer","is-full","onClickMatch","onClickCalendar","data"])])):s.createCommentVNode("",!0),s.createElementVNode("div",{class:s.normalizeClass(r.containerGridCalendarTable)},[s.createElementVNode("div",{class:"container-grid",style:s.normalizeStyle(i.elementSize.width<1e3?"width: 100%":"")},[s.createVNode(d,{isPlayer:a.isplayer?n.tournamentSelected.id==a.user.tournament:!1,"player-id":a.user.player,"team-id":a.user.team,"season-selected":n.seasonSelected.id,"next-rival-id":Object.keys(n.fullTournamentSchedule).length>0?a.user.team==n.fullTournamentSchedule.data.prematch.home_team?n.fullTournamentSchedule.data.prematch.visiting_team:n.fullTournamentSchedule.data.prematch.home_team:0,"team-img":"https://az755631.vo.msecnd.net/teams-150/"+a.user.team+".png","player-img":"https://az755631.vo.msecnd.net/players-profile/"+a.user.player+".png","rival-img":Object.keys(n.fullTournamentSchedule).length>0?a.user.team==n.fullTournamentSchedule.data.prematch.home_team?"https://az755631.vo.msecnd.net/teams-150/"+n.fullTournamentSchedule.data.prematch.visiting_team+".png":"https://az755631.vo.msecnd.net/teams-150/"+n.fullTournamentSchedule.data.prematch.home_team+".png":"","has-team":a.isplayer?!1:n.tournamentSelected.id==a.user.tournament,"component-width":i.elementSize.width,onAction:r.clickCard},null,8,["isPlayer","player-id","team-id","season-selected","next-rival-id","team-img","player-img","rival-img","has-team","component-width","onAction"])],4),s.createElementVNode("div",{class:"container-calendar-table",style:s.normalizeStyle(i.elementSize.width<1e3?"width: 100%; margin-top: 30px;":"")},[s.createVNode(u,{onAction:r.onAction,season:n.seasonSelected,seasons:n.seasonsSelected,onOpenmedia:r.onOpenMedia,onOnOpenProfile:r.onOpenProfile,componentWidth:i.elementSize.width},null,8,["onAction","season","seasons","onOpenmedia","onOnOpenProfile","componentWidth"])],4)],2),n.tournamentSelected.id==a.user.tournament?s.withDirectives((s.openBlock(),s.createElementBlock("div",q5e,[s.createVNode(h,{onClickProfileBtn:r.clickProfileBtn,onViewAll:r.viewAll,onTotalPlayers:r.getTotalPlayers,"team-id":a.user.team,"season-id":n.seasonSelected.id,"is-player":a.user.player!=0},null,8,["onClickProfileBtn","onViewAll","onTotalPlayers","team-id","season-id","is-player"])],512)),[[s.vShow,n.playersLength>0]]):s.createCommentVNode("",!0),s.createElementVNode("div",W5e,[s.createVNode(p,{onMore:r.moreTops,"show-switch":n.tournamentSelected.id==a.user.tournament,season:n.seasonSelected.id,"team-id":a.user.team,onOpenmedia:r.onOpenMedia},null,8,["onMore","show-switch","season","team-id","onOpenmedia"])]),s.createElementVNode("div",G5e,[s.createVNode(m)])],2)],2)],512)}const X5e=ri(x5e,[["render",K5e],["__scopeId","data-v-1d1c7fb4"]]),J5e=(e,t)=>{const a=e.__vccOpts||e;for(const[i,n]of t)a[i]=n;return a},Y5e={key:1},Q5e={width:"10",height:"8",viewBox:"0 0 10 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Z5e=["fill"],$5e={key:0,class:"checkbox__teams"},e4e={class:"checkbox__teams__logo"},t4e=["src"],a4e={class:"checkbox__teams__logo"},i4e=["src"],n4e={__name:"GSC-Checkbox",props:{width:{type:String,default:"fit-content"},height:{type:String,default:"fit-content"},label:{type:String,default:""},labelColor:{type:String,default:"white"},fontFamily:{type:String,default:"sans-serif"},labelFontSize:{type:String,default:"12px"},modelValue:{type:Boolean,default:!1},justifyContent:{type:String,default:"flex-start"},alignItems:{type:String,default:"center"},boxBackgroundColor:{type:String,default:"#CBEE6B"},boxValueColor:{type:String,default:"#0d1d29"},boxValue:{type:[String,Number],default:""},boxPosition:{type:String,default:"left",validator(e){return["left","right","top","bottom"].includes(e)}},boxWidthAndHeight:{type:String,default:"16px"},boxBorderColor:{type:String,default:"#969da2"},boxBorderWidth:{type:String,default:"2px"},boxBorderRadius:{type:String,default:"4px"},boxValueFontSize:{type:String,default:"10px"},boxValueFontFamily:{type:String,default:"sans-serif"},avoidInteraction:{type:Boolean,default:!1},avoidToCheck:{type:Boolean,default:!1},isBoxOnly:{type:Boolean,default:!1},teamsIds:{type:Array,default:()=>null}},emits:["update:modelValue"],setup(e,{emit:t}){const a=e;s.useCssVars(d=>({"6f1f9c87":e.width,"5b04fa86":e.height}));const i=s.ref(!1),n=s.computed(()=>{const d={color:a.boxValueColor,"font-family":a.fontFamily,height:a.boxWidthAndHeight,width:a.boxWidthAndHeight,minWidth:a.boxWidthAndHeight,"border-radius":a.boxBorderRadius};return i.value?(d["background-color"]=a.boxBackgroundColor,d.border=`solid ${a.boxBorderWidth} ${a.boxBackgroundColor}`):d.border=`solid ${a.boxBorderWidth} ${a.boxBorderColor}`,d}),r=s.computed(()=>({"font-family":a.boxValueFontFamily,"font-size":a.boxValueFontSize,color:a.boxValueColor,"line-height":1})),o=s.computed(()=>{const d={color:a.labelColor,"font-family":a.fontFamily,"font-size":a.labelFontSize,"text-align":a.boxPosition==="top"||a.boxPosition==="bottom"?"center":a.boxPosition};return(a.boxPosition==="left"||a.boxPosition==="right")&&(d[`margin-${a.boxPosition}`]=a.isBoxOnly?"0":a.teamsIds?"8px":"10px"),d});s.watch(()=>a.modelValue,d=>{d!==i.value&&(i.value=d)},{immediate:!0});function l(){a.avoidInteraction||!i.value&&a.avoidToCheck||(i.value=!i.value,t("update:modelValue",i.value))}function c(d){return`${{}.TEAM_LOGOS_URL||"https://az755631.vo.msecnd.net/teams-80/"}${d}.png`}return(d,u)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["checkbox",`box-${e.boxPosition}`]),onClick:l},[s.createElementVNode("div",{class:"checkbox__box",style:s.normalizeStyle(n.value)},[i.value?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[a.boxValue?(s.openBlock(),s.createElementBlock("div",{key:0,class:"checkbox__box__value",style:s.normalizeStyle(r.value)},s.toDisplayString(e.boxValue),5)):(s.openBlock(),s.createElementBlock("div",Y5e,[(s.openBlock(),s.createElementBlock("svg",Q5e,[s.createElementVNode("path",{d:"M9.77994 1.70133L4.10994 7.37133C3.96994 7.51133 3.77994 7.59133 3.57994 7.59133C3.37994 7.59133 3.18994 7.51133 3.04994 7.37133L0.219941 4.54133C-0.0700586 4.25133 -0.0700586 3.77133 0.219941 3.48133C0.509941 3.19133 0.989941 3.19133 1.27994 3.48133L3.57994 5.78133L8.71994 0.641328C9.00994 0.351328 9.48994 0.351328 9.77994 0.641328C10.0699 0.931328 10.0699 1.40133 9.77994 1.70133Z",fill:e.boxValueColor},null,8,Z5e)]))]))],64)):s.createCommentVNode("",!0)],4),e.teamsIds&&e.teamsIds.length?(s.openBlock(),s.createElementBlock("div",$5e,[s.createElementVNode("div",e4e,[s.createElementVNode("img",{src:c(e.teamsIds[0]),alt:""},null,8,t4e)]),s.createElementVNode("div",a4e,[s.createElementVNode("img",{src:c(e.teamsIds[1]),alt:""},null,8,i4e)])])):s.createCommentVNode("",!0),s.createElementVNode("div",{class:"checkbox__label",style:s.normalizeStyle(o.value)},s.toDisplayString(e.label),5)],2))}},sv=J5e(n4e,[["__scopeId","data-v-c33c3628"]]),r4e={class:"subcategory-group"},s4e={__name:"SubcategoryGroup",props:{subcategoryGroup:{type:Array,default:()=>[]}},setup(e){return(t,a)=>(s.openBlock(),s.createElementBlock("div",r4e,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(e.subcategoryGroup,i=>(s.openBlock(),s.createBlock(s.unref(sv),{key:i.id,modelValue:i.isSelected,"onUpdate:modelValue":n=>i.isSelected=n,label:i.name},null,8,["modelValue","onUpdate:modelValue","label"]))),128))]))}},o4e=_t(s4e,[["__scopeId","data-v-6c6e0261"]]),l4e={class:"filter-subcategories"},c4e=Object.freeze(Object.defineProperty({__proto__:null,default:_t({__name:"FilterSubcategories",props:{subcategoryGroups:{type:Array,default:()=>[]}},setup(e){return(t,a)=>(s.openBlock(),s.createElementBlock("div",l4e,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(e.subcategoryGroups,i=>(s.openBlock(),s.createElementBlock("div",{key:i.id,class:"filter-subcategories__group"},[s.createVNode(o4e,{subcategoryGroup:i},null,8,["subcategoryGroup"])]))),128))]))}},[["__scopeId","data-v-feeb6f0d"]])},Symbol.toStringTag,{value:"Module"})),vf=e=>(s.pushScopeId("data-v-209a8861"),e=e(),s.popScopeId(),e),d4e={class:"details__header"},u4e=vf(()=>s.createElementVNode("div",{class:"details__header__title"},"Jugando como",-1)),h4e={class:"details__header__checkbox"},p4e={class:"details__body"},m4e={class:"details__body__playing-as"},f4e=["onClick"],g4e={class:"details__header"},y4e=vf(()=>s.createElementVNode("div",{class:"details__header__title"},"En: (Elige el lapso de tiempo)",-1)),_4e={class:"details__header__checkbox"},b4e={class:"details__body"},v4e=vf(()=>s.createElementVNode("div",{class:"details__body__title"},"1er tiempo",-1)),S4e={class:"details__body__game-section"},w4e=["onClick"],T4e={class:"details__body"},C4e=vf(()=>s.createElementVNode("div",{class:"details__body__title"},"2do tiempo",-1)),k4e={class:"details__body__game-section"},E4e=["onClick"],I4e=Object.freeze(Object.defineProperty({__proto__:null,default:_t({__name:"FilterConditions",props:{conditions:{type:Object,default:()=>({playingAs:[{name:"Local",value:1,isSelected:!0},{name:"Visitante",value:2,isSelected:!0}],gameSections:[{text:"0-15",value:1,isSelected:!0},{text:"16-30",value:2,isSelected:!0},{text:"31-45",value:3,isSelected:!0},{text:"46-60",value:4,isSelected:!0},{text:"61-75",value:5,isSelected:!0},{text:"76-90",value:6,isSelected:!0}]})},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){s.useCssVars(u=>({"6828708b":e.buttonsBackgroundColor,"717ea86c":e.buttonsTextColor,"321a49b0":e.buttonsBorderWidth,"31034b4d":e.buttonsBorderColor,dca9f11e:e.buttonsBackgroundColorActive,"90d3dadc":e.buttonsTextColorActive,"305cb0d6":e.buttonsBorderWidthActive,"18196e9a":e.buttonsBorderColorActive}));const t=e,a=s.computed(()=>t.conditions.playingAs.every(u=>u.isSelected)),i=s.computed(()=>t.conditions.gameSections.every(u=>u.isSelected)),n=s.computed(()=>t.conditions.gameSections.reduce((u,h)=>(h.value<=3?u.firstHalf.push(h):u.secondHalf.push(h),u),{firstHalf:[],secondHalf:[]})),r=s.computed(()=>({"--border-radius-first-button":`${t.buttonsBorderRadius} 0 0 ${t.buttonsBorderRadius}`,"--border-radius-last-button":`0 ${t.buttonsBorderRadius} ${t.buttonsBorderRadius} 0`}));function o(u){u?t.conditions.playingAs.forEach(h=>{h.isSelected=!0}):t.conditions.playingAs.forEach((h,p)=>{h.isSelected=p===0})}function l(u){t.conditions.playingAs.filter(h=>h.isSelected).length===1&&u.isSelected||(u.isSelected=!u.isSelected)}function c(u){t.conditions.gameSections.filter(h=>h.isSelected).length===1&&u.isSelected||(u.isSelected=!u.isSelected)}function d(u){u?t.conditions.gameSections.forEach(h=>{h.isSelected=!0}):t.conditions.gameSections.forEach((h,p)=>{h.isSelected=p===0})}return(u,h)=>(s.openBlock(),s.createElementBlock("div",{class:"details",style:s.normalizeStyle(r.value)},[s.createElementVNode("div",d4e,[u4e,s.createElementVNode("div",h4e,[s.createVNode(s.unref(sv),{label:"Todos","model-value":a.value,"onUpdate:modelValue":o},null,8,["model-value"])])]),s.createElementVNode("div",p4e,[s.createElementVNode("div",m4e,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(e.conditions.playingAs,(p,m)=>(s.openBlock(),s.createElementBlock("div",{key:`pa${m}`,class:s.normalizeClass(["details__body__button",{active:p.isSelected}]),onClick:f=>l(p)},s.toDisplayString(p.name),11,f4e))),128))])]),s.createElementVNode("div",g4e,[y4e,s.createElementVNode("div",_4e,[s.createVNode(s.unref(sv),{label:"Todos","model-value":i.value,"onUpdate:modelValue":d},null,8,["model-value"])])]),s.createElementVNode("div",b4e,[v4e,s.createElementVNode("div",S4e,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(n.value.firstHalf,(p,m)=>(s.openBlock(),s.createElementBlock("div",{key:`pa${m}`,class:s.normalizeClass(["details__body__button",{active:p.isSelected}]),onClick:f=>c(p)},s.toDisplayString(p.text),11,w4e))),128))])]),s.createElementVNode("div",T4e,[C4e,s.createElementVNode("div",k4e,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(n.value.secondHalf,(p,m)=>(s.openBlock(),s.createElementBlock("div",{key:`pa${m}`,class:s.normalizeClass(["details__body__button",{active:p.isSelected}]),onClick:f=>c(p)},s.toDisplayString(p.text),11,E4e))),128))])])],4))}},[["__scopeId","data-v-209a8861"]])},Symbol.toStringTag,{value:"Module"})),x4e=(e,t)=>{const a=e.__vccOpts||e;for(const[i,n]of t)a[i]=n;return a},N4e={props:{value:{type:Boolean,default:!1},textValue:String,icon:String,iconPosition:{type:String,default:"left"},iconSize:String,fontColor:{type:String,default:"#FFFFFF"},textDecoration:String,fontSize:{type:String,default:"16px"},fontStyle:String,fontFamily:{type:String,default:"Poppins-Regular"},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},borderRadius:{type:String,default:"0px"},borderType:{type:String,default:"solid"},borderWidth:{type:Number,default:0},borderColor:String,backgroundColor:{type:String,default:"none"},activeBackgroundColor:{type:String,default:"#000000"},activeBorderWidth:{type:Number,default:2},activeBorderType:{type:String,default:"solid"},activeBorderColor:{type:String,default:"#cbee6b"},activeColorText:{type:String,default:"#FFFFFF"},cursorType:{type:String,default:"default"},typeOnOff:{type:Boolean,default:!1}},watch:{value:{deep:!0,immediate:!0,handler(e){this.status=e}}},data(){return{status:!1}},computed:{customStyle(){return{height:this.height,width:this.width,backgroundColor:this.backgroundColor,borderRadius:this.borderRadius,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`,color:this.fontColor,textDecoration:this.textDecoration,cursor:this.cursorType,fontSize:this.fontSize,fontStyle:this.fontStyle,fontFamily:`${this.fontFamily} !important`}},customActive(){return{backgroundColor:this.activeBackgroundColor,color:this.activeColorText,border:`${this.activeBorderType} ${this.activeBorderWidth}px ${this.activeBorderColor}`}}},methods:{btnClick(e){this.$emit("click",e),this.typeOnOff&&(this.status=!this.status,this.$emit("status",this.status))}}},A4e=["src"],P4e={key:1,class:"text"},O4e=["src"];function B4e(e,t,a,i,n,r){return s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["button",n.status&&a.typeOnOff&&"button-active"]),style:s.normalizeStyle([r.customStyle,n.status&&a.typeOnOff&&r.customActive]),onClick:t[0]||(t[0]=(...o)=>r.btnClick&&r.btnClick(...o))},[a.icon&&a.iconPosition.toLowerCase()==="left"?(s.openBlock(),s.createElementBlock("img",{key:0,class:"icon",style:s.normalizeStyle({width:a.iconSize}),src:a.icon},null,12,A4e)):s.createCommentVNode("",!0),a.textValue?(s.openBlock(),s.createElementBlock("div",P4e,s.toDisplayString(a.textValue),1)):s.createCommentVNode("",!0),a.icon&&a.iconPosition.toLowerCase()==="right"?(s.openBlock(),s.createElementBlock("img",{key:2,class:"icon",style:s.normalizeStyle({width:a.iconSize}),src:a.icon},null,12,O4e)):s.createCommentVNode("",!0)],6)}const D4e=x4e(N4e,[["render",B4e],["__scopeId","data-v-1bfd444b"]]),L4e=(e,t)=>{const a=e.__vccOpts||e;for(const[i,n]of t)a[i]=n;return a},M4e={key:1},R4e={width:"10",height:"8",viewBox:"0 0 10 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},F4e=["fill"],V4e={__name:"GSC-Checkbox",props:{width:{type:String,default:"fit-content"},height:{type:String,default:"fit-content"},label:{type:String,default:""},labelColor:{type:String,default:"white"},fontFamily:{type:String,default:"sans-serif"},labelFontSize:{type:String,default:"12px"},modelValue:{type:Boolean,default:!1},justifyContent:{type:String,default:"flex-start"},alignItems:{type:String,default:"center"},boxBackgroundColor:{type:String,default:"#CBEE6B"},boxValueColor:{type:String,default:"#0d1d29"},boxValue:{type:[String,Number],default:""},boxPosition:{type:String,default:"left",validator(e){return["left","right","top","bottom"].includes(e)}},boxWidthAndHeight:{type:String,default:"16px"},boxBorderColor:{type:String,default:"#969da2"},boxBorderWidth:{type:String,default:"2px"},boxBorderRadius:{type:String,default:"4px"},boxValueFontSize:{type:String,default:"10px"},boxValueFontFamily:{type:String,default:"sans-serif"},avoidInteraction:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(e,{emit:t}){const a=e,i=s.ref(!1),n=s.computed(()=>{const c={color:a.boxValueColor,"font-family":a.fontFamily,height:a.boxWidthAndHeight,width:a.boxWidthAndHeight,minWidth:a.boxWidthAndHeight,"border-radius":a.boxBorderRadius};return i.value?(c["background-color"]=a.boxBackgroundColor,c.border=`solid ${a.boxBorderWidth} ${a.boxBackgroundColor}`):c.border=`solid ${a.boxBorderWidth} ${a.boxBorderColor}`,c}),r=s.computed(()=>({"font-family":a.boxValueFontFamily,"font-size":a.boxValueFontSize,color:a.boxValueColor,"line-height":1})),o=s.computed(()=>{const c={color:a.labelColor,"font-family":a.fontFamily,"font-size":a.labelFontSize};return(a.boxPosition==="left"||a.boxPosition==="right")&&(c[`margin-${a.boxPosition}`]="10px"),c});s.watch(()=>a.modelValue,c=>{c!==i.value&&(i.value=c)},{immediate:!0});function l(){a.avoidInteraction||(i.value=!i.value,t("update:modelValue",i.value))}return(c,d)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["checkbox",e.boxPosition]),onClick:l},[s.createElementVNode("div",{class:"checkbox__box",style:s.normalizeStyle(n.value)},[i.value?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[a.boxValue?(s.openBlock(),s.createElementBlock("div",{key:0,class:"checkbox__box__value",style:s.normalizeStyle(r.value)},s.toDisplayString(e.boxValue),5)):(s.openBlock(),s.createElementBlock("div",M4e,[(s.openBlock(),s.createElementBlock("svg",R4e,[s.createElementVNode("path",{d:"M9.77994 1.70133L4.10994 7.37133C3.96994 7.51133 3.77994 7.59133 3.57994 7.59133C3.37994 7.59133 3.18994 7.51133 3.04994 7.37133L0.219941 4.54133C-0.0700586 4.25133 -0.0700586 3.77133 0.219941 3.48133C0.509941 3.19133 0.989941 3.19133 1.27994 3.48133L3.57994 5.78133L8.71994 0.641328C9.00994 0.351328 9.48994 0.351328 9.77994 0.641328C10.0699 0.931328 10.0699 1.40133 9.77994 1.70133Z",fill:e.boxValueColor},null,8,F4e)]))]))],64)):s.createCommentVNode("",!0)],4),s.createElementVNode("div",{class:"checkbox__label",style:s.normalizeStyle(o.value)},s.toDisplayString(e.label),5)],2))}},U4e=L4e(V4e,[["__scopeId","data-v-dcd61b4d"]]),j4e=(e,t)=>{const a=e.__vccOpts||e;for(const[i,n]of t)a[i]=n;return a},ov={components:{GSCButton:D4e,GSCCheckbox:U4e},data(){return{update:0,all:!1,refreshBtn14:0,refreshBtn24:0,refreshBtn34:0,refreshBtn44:0,sectors:Array.from({length:16},(e,t)=>({sector:t+1,active:!1}))}},props:{backgroundColor:{type:String,default:"#2e3b46"},heightContainer:{type:String,default:"370px"},widthContainer:{type:String,default:"455px"},heightField:{type:Number,default:230},widthField:{type:Number,default:350},heightFieldGrid:{type:String,default:"230px"},widthFieldGrid:{type:String,default:"350px"},backgroundSectorActive:{type:String,default:"#cbee6b"},backgroundSectorDisabled:{type:String,default:"#2e3b46"},borderWidth:{type:Number,default:1},opacitySector:{type:Number,default:.5},borderColor:{type:String,default:"#FFFFFF"},colorLineField:{type:String,default:"#bfc2c5"},borderWidthLineField:{type:Number,default:2},value:{type:Array,default:()=>[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16]}},watch:{value:{deep:!0,immediate:!0,handler(e){this.sectors.forEach((t,a)=>{t.active=e.includes(a+1),this.validateField(a)}),this.$emit("update:modelValue",e)}},sectors:{handler(e){var t=[];for(let a=0;a<e.length;a++)e[a].active&&t.push(a+1);this.$emit("update:modelValue",t)},deep:!0}},computed:{translx(){var e=0;return this.widthField>305&&(e=this.widthField-305),e},transly(){var e=0;return this.heightField>195&&(e=this.heightField-195,e=e/2),e},translxcircle(){var e=0;return this.widthField>305&&(e=this.widthField-305,e=e/2),e}},methods:{clickAll(e){if(e)for(let t=0;t<this.sectors.length;t++)this.sectors[t].active=!0,this.validateField(t);else for(let t=0;t<this.sectors.length;t++)this.sectors[t].active=!0,this.validateField(t);this.status14=!0,this.status24=!0,this.status34=!0,this.status44=!0,this.refreshBtn14+=1,this.refreshBtn24+=1,this.refreshBtn34+=1,this.refreshBtn44+=1},selectSector(e){var t=0;this.sectors[e].active=!this.sectors[e].active;for(let a=0;a<this.sectors.length;a++)this.sectors[a].active&&(t+=1);t==0&&(this.sectors[e].active=!0),this.validateField(e)},btn14(e){this.sectors[0].active=e?this.sectors[0].active=!0:this.sectors[0].active=!1,this.sectors[1].active=e?this.sectors[1].active=!0:this.sectors[1].active=!1,this.sectors[2].active=e?this.sectors[2].active=!0:this.sectors[2].active=!1,this.sectors[3].active=e?this.sectors[3].active=!0:this.sectors[3].active=!1;var t=0;for(let a=0;a<this.sectors.length;a++)this.sectors[a].active&&(t+=1);t==0?(this.sectors[0].active=!0,this.sectors[1].active=!0,this.sectors[2].active=!0,this.sectors[3].active=!0,this.status14=!0,this.refreshBtn14+=1):this.status14=!1,t==16&&(this.all=!0,this.update+=1)},btn24(e){this.sectors[4].active=e?this.sectors[4].active=!0:this.sectors[4].active=!1,this.sectors[5].active=e?this.sectors[5].active=!0:this.sectors[5].active=!1,this.sectors[6].active=e?this.sectors[6].active=!0:this.sectors[6].active=!1,this.sectors[7].active=e?this.sectors[7].active=!0:this.sectors[7].active=!1;var t=0;for(let a=0;a<this.sectors.length;a++)this.sectors[a].active&&(t+=1);t==0?(this.sectors[4].active=!0,this.sectors[5].active=!0,this.sectors[6].active=!0,this.sectors[7].active=!0,this.status24=!0,this.refreshBtn24+=1):this.status24=!1,t==16&&(this.all=!0,this.update+=1)},btn34(e){this.sectors[8].active=e?this.sectors[8].active=!0:this.sectors[8].active=!1,this.sectors[9].active=e?this.sectors[9].active=!0:this.sectors[9].active=!1,this.sectors[10].active=e?this.sectors[10].active=!0:this.sectors[10].active=!1,this.sectors[11].active=e?this.sectors[11].active=!0:this.sectors[11].active=!1;var t=0;for(let a=0;a<this.sectors.length;a++)this.sectors[a].active&&(t+=1);t==0?(this.sectors[8].active=!0,this.sectors[9].active=!0,this.sectors[10].active=!0,this.sectors[11].active=!0,this.status34=!0,this.refreshBtn34+=1):this.status34=!1,t==16&&(this.all=!0,this.update+=1)},btn44(e){this.sectors[12].active=e?this.sectors[12].active=!0:this.sectors[12].active=!1,this.sectors[13].active=e?this.sectors[13].active=!0:this.sectors[13].active=!1,this.sectors[14].active=e?this.sectors[14].active=!0:this.sectors[14].active=!1,this.sectors[15].active=e?this.sectors[15].active=!0:this.sectors[15].active=!1;var t=0;for(let a=0;a<this.sectors.length;a++)this.sectors[a].active&&(t+=1);t==0?(this.sectors[12].active=!0,this.sectors[13].active=!0,this.sectors[14].active=!0,this.sectors[15].active=!0,this.status44=!0,this.refreshBtn44+=1):this.status44=!1,t==16&&(this.all=!0,this.update+=1)},validateField(e){(e===0||e===1||e===2||e===3)&&(this.status14=!!(this.sectors[0].active&&this.sectors[1].active&&this.sectors[2].active&&this.sectors[3].active)),(e===4||e===5||e===6||e===7)&&(this.status24=!!(this.sectors[4].active&&this.sectors[5].active&&this.sectors[6].active&&this.sectors[7].active)),(e===8||e===9||e===10||e===11)&&(this.status34=!!(this.sectors[8].active&&this.sectors[9].active&&this.sectors[10].active&&this.sectors[11].active)),(e===12||e===13||e===14||e===15)&&(this.status44=!!(this.sectors[12].active&&this.sectors[13].active&&this.sectors[14].active&&this.sectors[15].active)),this.status14&&this.status34&&this.status24&&this.status44?this.all=!0:this.all=!1,this.update+=1,this.status14&&(this.refreshBtn14+=1),this.status24&&(this.refreshBtn24+=1),this.status34&&(this.refreshBtn34+=1),this.status44&&(this.refreshBtn44+=1)}}},YA=()=>{s.useCssVars(e=>({"5d18a1c4":e.widthContainer,"4ff37fd1":e.heightContainer,f4a580e8:e.backgroundColor,"7e0a2eba":e.widthFieldGrid,"985472a0":e.heightFieldGrid}))},QA=ov.setup;ov.setup=QA?(e,t)=>(YA(),QA(e,t)):YA;const z4e=e=>(s.pushScopeId("data-v-6929519f"),e=e(),s.popScopeId(),e),H4e={class:"gsc-field"},q4e={class:"gsc-field__title-checked"},W4e=z4e(()=>s.createElementVNode("div",{class:"gsc-field__title-checked__title"},"Elige el area o zona de cancha",-1)),G4e={class:"gsc-field__title-checked__check-cont"},K4e={class:"gsc-field__container-field"},X4e={class:"gsc-field__container-field__field"},J4e={width:"100%",height:"100%",fill:"#2e3b46",xmlns:"http://www.w3.org/2000/svg"},Y4e=["stroke"],Q4e=["stroke","stroke-width"],Z4e=["stroke","stroke-width"],$4e=["stroke-width","stroke"],e3e=["fill","fill-opacity","stroke","stroke-width"],t3e=["fill","fill-opacity","stroke","stroke-width"],a3e=["fill","fill-opacity","stroke","stroke-width"],i3e=["fill","fill-opacity","stroke","stroke-width"],n3e=["fill","fill-opacity","stroke","stroke-width"],r3e=["fill","fill-opacity","stroke","stroke-width"],s3e=["fill","fill-opacity","stroke","stroke-width"],o3e=["fill","fill-opacity","stroke","stroke-width"],l3e=["fill","fill-opacity","stroke","stroke-width"],c3e=["fill","fill-opacity","stroke","stroke-width"],d3e=["fill","fill-opacity","stroke","stroke-width"],u3e=["fill","fill-opacity","stroke","stroke-width"],h3e=["fill","fill-opacity","stroke","stroke-width"],p3e=["fill","fill-opacity","stroke","stroke-width"],m3e=["fill","fill-opacity","stroke","stroke-width"],f3e=["fill","fill-opacity","stroke","stroke-width"],g3e={class:"gsc-field__container-field__bar-buttons"};function y3e(e,t,a,i,n,r){const o=s.resolveComponent("GSCCheckbox"),l=s.resolveComponent("GSCButton");return s.openBlock(),s.createElementBlock("div",H4e,[s.createElementVNode("div",q4e,[W4e,s.createElementVNode("div",G4e,[(s.openBlock(),s.createBlock(o,{label:"Todas las zonas","box-value-font-family":"Poppins-Regular","box-position":"right","onUpdate:modelValue":r.clickAll,value:n.all,key:n.update,"model-value":n.all},null,8,["onUpdate:modelValue","value","model-value"]))])]),s.createElementVNode("div",K4e,[s.createElementVNode("div",X4e,[(s.openBlock(),s.createElementBlock("svg",J4e,[s.createElementVNode("rect",{x:"1.5",y:"0.5",width:"100%",height:"100%",rx:"1.5",stroke:a.colorLineField},null,8,Y4e),s.createElementVNode("path",{style:s.normalizeStyle("transform: translate("+r.translx+"px, "+r.transly+"px);"),d:"M303.597 39.9799H263.371C262.817 39.9799 262.369 40.4301 262.371 40.984L262.842 155.176C262.845 155.726 263.292 156.172 263.842 156.172H302.884",stroke:a.colorLineField,"stroke-width":a.borderWidthLineField,"stroke-linecap":"square"},null,12,Q4e),s.createElementVNode("path",{style:s.normalizeStyle("transform: translateY("+r.transly+"px);"),class:"porteria1",d:"M1.09097 156.172L41.3162 156.172C41.8701 156.172 42.3185 155.722 42.3162 155.168L41.845 40.9758C41.8427 40.4252 41.3957 39.98 40.845 39.98L1.80338 39.98",stroke:a.colorLineField,"stroke-width":a.borderWidthLineField,"stroke-linecap":"square"},null,12,Z4e),s.createElementVNode("path",{style:s.normalizeStyle("transform: translate("+r.translxcircle+"px, "+r.transly+"px);"),class:"circle",d:"M182.911 97.4512C182.911 113.726 169.44 126.936 152.801 126.936C136.162 126.936 122.691 113.726 122.691 97.4512C122.691 81.1767 136.162 67.9662 152.801 67.9662C169.44 67.9662 182.911 81.1767 182.911 97.4512Z","stroke-width":a.borderWidthLineField,stroke:a.colorLineField},null,12,$4e),s.createElementVNode("rect",{x:"0%",y:"0%",width:"25%",height:"25%",fill:n.sectors[0].active?a.backgroundSectorActive:a.backgroundSectorDisabled,"fill-opacity":a.opacitySector,stroke:a.borderColor,"stroke-width":a.borderWidth,onClick:t[0]||(t[0]=c=>r.selectSector(0))},null,8,e3e),s.createElementVNode("rect",{x:"0%",y:"25%",width:"25%",height:"25%",fill:n.sectors[1].active?a.backgroundSectorActive:a.backgroundSectorDisabled,"fill-opacity":a.opacitySector,stroke:a.borderColor,"stroke-width":a.borderWidth,onClick:t[1]||(t[1]=c=>r.selectSector(1))},null,8,t3e),s.createElementVNode("rect",{x:"0%",y:"50%",width:"25%",height:"25%",fill:n.sectors[2].active?a.backgroundSectorActive:a.backgroundSectorDisabled,"fill-opacity":a.opacitySector,stroke:a.borderColor,"stroke-width":a.borderWidth,onClick:t[2]||(t[2]=c=>r.selectSector(2))},null,8,a3e),s.createElementVNode("rect",{x:"0%",y:"75%",width:"25%",height:"25%",fill:n.sectors[3].active?a.backgroundSectorActive:a.backgroundSectorDisabled,"fill-opacity":a.opacitySector,stroke:a.borderColor,"stroke-width":a.borderWidth,onClick:t[3]||(t[3]=c=>r.selectSector(3))},null,8,i3e),s.createElementVNode("rect",{x:"25%",y:"0%",width:"25%",height:"25%",fill:n.sectors[4].active?a.backgroundSectorActive:a.backgroundSectorDisabled,"fill-opacity":a.opacitySector,stroke:a.borderColor,"stroke-width":a.borderWidth,onClick:t[4]||(t[4]=c=>r.selectSector(4))},null,8,n3e),s.createElementVNode("rect",{x:"25%",y:"25%",width:"25%",height:"25%",fill:n.sectors[5].active?a.backgroundSectorActive:a.backgroundSectorDisabled,"fill-opacity":a.opacitySector,stroke:a.borderColor,"stroke-width":a.borderWidth,onClick:t[5]||(t[5]=c=>r.selectSector(5))},null,8,r3e),s.createElementVNode("rect",{x:"25%",y:"50%",width:"25%",height:"25%",fill:n.sectors[6].active?a.backgroundSectorActive:a.backgroundSectorDisabled,"fill-opacity":a.opacitySector,stroke:a.borderColor,"stroke-width":a.borderWidth,onClick:t[6]||(t[6]=c=>r.selectSector(6))},null,8,s3e),s.createElementVNode("rect",{x:"25%",y:"75%",width:"25%",height:"25%",fill:n.sectors[7].active?a.backgroundSectorActive:a.backgroundSectorDisabled,"fill-opacity":a.opacitySector,stroke:a.borderColor,"stroke-width":a.borderWidth,onClick:t[7]||(t[7]=c=>r.selectSector(7))},null,8,o3e),s.createElementVNode("rect",{x:"50%",y:"0%",width:"25%",height:"25%",fill:n.sectors[8].active?a.backgroundSectorActive:a.backgroundSectorDisabled,"fill-opacity":a.opacitySector,stroke:a.borderColor,"stroke-width":a.borderWidth,onClick:t[8]||(t[8]=c=>r.selectSector(8))},null,8,l3e),s.createElementVNode("rect",{x:"50%",y:"25%",width:"25%",height:"25%",fill:n.sectors[9].active?a.backgroundSectorActive:a.backgroundSectorDisabled,"fill-opacity":a.opacitySector,stroke:a.borderColor,"stroke-width":a.borderWidth,onClick:t[9]||(t[9]=c=>r.selectSector(9))},null,8,c3e),s.createElementVNode("rect",{x:"50%",y:"50%",width:"25%",height:"25%",fill:n.sectors[10].active?a.backgroundSectorActive:a.backgroundSectorDisabled,"fill-opacity":a.opacitySector,stroke:a.borderColor,"stroke-width":a.borderWidth,onClick:t[10]||(t[10]=c=>r.selectSector(10))},null,8,d3e),s.createElementVNode("rect",{x:"50%",y:"75%",width:"25%",height:"25%",fill:n.sectors[11].active?a.backgroundSectorActive:a.backgroundSectorDisabled,"fill-opacity":a.opacitySector,stroke:a.borderColor,"stroke-width":a.borderWidth,onClick:t[11]||(t[11]=c=>r.selectSector(11))},null,8,u3e),s.createElementVNode("rect",{x:"75%",y:"0%",width:"25%",height:"25%",fill:n.sectors[12].active?a.backgroundSectorActive:a.backgroundSectorDisabled,"fill-opacity":a.opacitySector,stroke:a.borderColor,"stroke-width":a.borderWidth,onClick:t[12]||(t[12]=c=>r.selectSector(12))},null,8,h3e),s.createElementVNode("rect",{x:"75%",y:"25%",width:"25%",height:"25%",fill:n.sectors[13].active?a.backgroundSectorActive:a.backgroundSectorDisabled,"fill-opacity":a.opacitySector,stroke:a.borderColor,"stroke-width":a.borderWidth,onClick:t[13]||(t[13]=c=>r.selectSector(13))},null,8,p3e),s.createElementVNode("rect",{x:"75%",y:"50%",width:"25%",height:"25%",fill:n.sectors[14].active?a.backgroundSectorActive:a.backgroundSectorDisabled,"fill-opacity":a.opacitySector,stroke:a.borderColor,"stroke-width":a.borderWidth,onClick:t[14]||(t[14]=c=>r.selectSector(14))},null,8,m3e),s.createElementVNode("rect",{x:"75%",y:"75%",width:"25%",height:"25%",fill:n.sectors[15].active?a.backgroundSectorActive:a.backgroundSectorDisabled,"fill-opacity":a.opacitySector,stroke:a.borderColor,"stroke-width":a.borderWidth,onClick:t[15]||(t[15]=c=>r.selectSector(15))},null,8,f3e)]))]),s.createElementVNode("div",g3e,[(s.openBlock(),s.createBlock(l,{"text-value":"1/4 tos","font-size":"12px",height:"26px",width:"65px","type-on-off":!0,"border-width":1,"font-color":"#bfc2c5","border-color":"#8c9399","border-radius":"4px","font-family":"Poppins-Medium","active-border-width":1,"background-color":"","active-background-color":"#cbee6b33",ref:"btn14",onStatus:r.btn14,key:n.refreshBtn14,value:e.status14},null,8,["onStatus","value"])),(s.openBlock(),s.createBlock(l,{"text-value":"2/4 tos","font-size":"12px",height:"26px",width:"65px","type-on-off":!0,"border-width":1,"font-color":"#bfc2c5","border-color":"#8c9399","border-radius":"4px","font-family":"Poppins-Medium","active-border-width":1,"background-color":"","active-background-color":"#cbee6b33",ref:"btn24",onStatus:r.btn24,key:n.refreshBtn24,value:e.status24},null,8,["onStatus","value"])),(s.openBlock(),s.createBlock(l,{"text-value":"3/4 tos","font-size":"12px",height:"26px",width:"65px","type-on-off":!0,"border-width":1,"font-color":"#bfc2c5","border-color":"#8c9399","border-radius":"4px","font-family":"Poppins-Medium","active-border-width":1,"background-color":"","active-background-color":"#cbee6b33",ref:"btn34",onStatus:r.btn34,key:n.refreshBtn34,value:e.status34},null,8,["onStatus","value"])),(s.openBlock(),s.createBlock(l,{"text-value":"4/4 tos","font-size":"12px",height:"26px",width:"65px","type-on-off":!0,"border-width":1,"font-color":"#bfc2c5","border-color":"#8c9399","border-radius":"4px","font-family":"Poppins-Medium","active-border-width":1,"background-color":"","active-background-color":"#cbee6b33",ref:"btn44",onStatus:r.btn44,key:n.refreshBtn44,value:e.status44},null,8,["onStatus","value"]))])])])}const _3e=j4e(ov,[["render",y3e],["__scopeId","data-v-6929519f"]]),b3e={class:"filter-field"},v3e=Object.freeze(Object.defineProperty({__proto__:null,default:_t({__name:"FilterField",setup(e){const t=s.ref(Array.from({length:16},(i,n)=>n+1));function a(i){}return(i,n)=>(s.openBlock(),s.createElementBlock("div",b3e,[s.createVNode(s.unref(_3e),{width:"100%","background-color":"#2E3B46",value:t.value,"onUpdate:modelValue":a},null,8,["value"])]))}},[["__scopeId","data-v-95dd6111"]])},Symbol.toStringTag,{value:"Module"}));ps.GSCLanding=X5e,Object.defineProperty(ps,Symbol.toStringTag,{value:"Module"})});