@golstats/gsc-landing 1.0.31 → 1.0.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/gsc-landing.js +9 -8
- package/dist/gsc-landing.umd.cjs +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/gsc-landing.umd.cjs
CHANGED
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
* Vue 3 Carousel 0.3.1
|
|
26
26
|
* (c) 2023
|
|
27
27
|
* @license MIT
|
|
28
|
-
*/const Z={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"}},pi={itemsToShow:{default:Z.itemsToShow,type:Number},itemsToScroll:{default:Z.itemsToScroll,type:Number},wrapAround:{default:Z.wrapAround,type:Boolean},throttle:{default:Z.throttle,type:Number},snapAlign:{default:Z.snapAlign,validator(e){return["start","end","center","center-even","center-odd"].includes(e)}},transition:{default:Z.transition,type:Number},breakpoints:{default:Z.breakpoints,type:Object},autoplay:{default:Z.autoplay,type:Number},pauseAutoplayOnHover:{default:Z.pauseAutoplayOnHover,type:Boolean},modelValue:{default:void 0,type:Number},mouseDrag:{default:Z.mouseDrag,type:Boolean},touchDrag:{default:Z.touchDrag,type:Boolean},dir:{default:Z.dir,validator(e){return["rtl","ltr"].includes(e)}},i18n:{default:Z.i18n,type:Object},settings:{default(){return{}},type:Object}};function Uf({config:e,slidesCount:a}){const{snapAlign:o,wrapAround:n,itemsToShow:i=1}=e;if(n)return Math.max(a-1,0);let r;switch(o){case"start":r=a-i;break;case"end":r=a-1;break;case"center":case"center-odd":r=a-Math.ceil((i-.5)/2);break;case"center-even":r=a-Math.ceil(i/2);break;default:r=0;break}return Math.max(r,0)}function Hf({config:e,slidesCount:a}){const{wrapAround:o,snapAlign:n,itemsToShow:i=1}=e;let r=0;if(o||i>a)return r;switch(n){case"start":r=0;break;case"end":r=i-1;break;case"center":case"center-odd":r=Math.floor((i-1)/2);break;case"center-even":r=Math.floor((i-2)/2);break;default:r=0;break}return r}function fa({val:e,max:a,min:o}){return a<o?e:Math.min(Math.max(e,o),a)}function Gf({config:e,currentSlide:a,slidesCount:o}){const{snapAlign:n,wrapAround:i,itemsToShow:r=1}=e;let s=a;switch(n){case"center":case"center-odd":s-=(r-1)/2;break;case"center-even":s-=(r-2)/2;break;case"end":s-=r-1;break}return i?s:fa({val:s,max:o-r,min:0})}function ui(e){return e?e.reduce((a,o)=>{var n;return o.type===t.Fragment?[...a,...ui(o.children)]:((n=o.type)===null||n===void 0?void 0:n.name)==="CarouselSlide"?[...a,o]:a},[]):[]}function ga({val:e,max:a,min:o=0}){return e>a?ga({val:e-(a+1),max:a,min:o}):e<o?ga({val:e+(a+1),max:a,min:o}):e}function qf(e,a){let o;return a?function(...n){const i=this;o||(e.apply(i,n),o=!0,setTimeout(()=>o=!1,a))}:e}function Jf(e,a){let o;return function(...n){o&&clearTimeout(o),o=setTimeout(()=>{e(...n),o=null},a)}}function Zf(e="",a={}){return Object.entries(a).reduce((o,[n,i])=>o.replace(`{${n}}`,String(i)),e)}var Xf=t.defineComponent({name:"ARIA",setup(){const e=t.inject("config",t.reactive(Object.assign({},Z))),a=t.inject("currentSlide",t.ref(0)),o=t.inject("slidesCount",t.ref(0));return()=>t.h("div",{class:["carousel__liveregion","carousel__sr-only"],"aria-live":"polite","aria-atomic":"true"},Zf(e.i18n.itemXofY,{currentSlide:a.value+1,slidesCount:o.value}))}}),Kf=t.defineComponent({name:"Carousel",props:pi,setup(e,{slots:a,emit:o,expose:n}){var i;const r=t.ref(null),s=t.ref([]),l=t.ref(0),p=t.ref(0),c=t.reactive(Object.assign({},Z));let d=Object.assign({},Z),u;const m=t.ref((i=e.modelValue)!==null&&i!==void 0?i:0),f=t.ref(0),h=t.ref(0),g=t.ref(0),y=t.ref(0);let C,O;t.provide("config",c),t.provide("slidesCount",p),t.provide("currentSlide",m),t.provide("maxSlide",g),t.provide("minSlide",y),t.provide("slideWidth",l);function W(){u=Object.assign({},e.breakpoints),d=Object.assign(Object.assign(Object.assign({},d),e),{i18n:Object.assign(Object.assign({},d.i18n),e.i18n),breakpoints:void 0}),he(d)}function X(){if(!u||!Object.keys(u).length)return;const b=Object.keys(u).map(B=>Number(B)).sort((B,j)=>+j-+B);let N=Object.assign({},d);b.some(B=>{const j=window.matchMedia(`(min-width: ${B}px)`).matches;return j&&(N=Object.assign(Object.assign({},N),u[B])),j}),he(N)}function he(b){Object.entries(b).forEach(([N,B])=>c[N]=B)}const fe=Jf(()=>{X(),J()},16);function J(){if(!r.value)return;const b=r.value.getBoundingClientRect();l.value=b.width/c.itemsToShow}function ne(){p.value<=0||(h.value=Math.ceil((p.value-1)/2),g.value=Uf({config:c,slidesCount:p.value}),y.value=Hf({config:c,slidesCount:p.value}),c.wrapAround||(m.value=fa({val:m.value,max:g.value,min:y.value})))}t.onMounted(()=>{t.nextTick(()=>J()),setTimeout(()=>J(),1e3),X(),R(),window.addEventListener("resize",fe,{passive:!0}),o("init")}),t.onUnmounted(()=>{O&&clearTimeout(O),C&&clearInterval(C),window.removeEventListener("resize",fe,{passive:!0})});let A=!1;const te={x:0,y:0},oe={x:0,y:0},v=t.reactive({x:0,y:0}),ae=t.ref(!1),se=t.ref(!1),V=()=>{ae.value=!0},x=()=>{ae.value=!1};function T(b){["INPUT","TEXTAREA","SELECT"].includes(b.target.tagName)||(A=b.type==="touchstart",A||b.preventDefault(),!(!A&&b.button!==0||z.value)&&(te.x=A?b.touches[0].clientX:b.clientX,te.y=A?b.touches[0].clientY:b.clientY,document.addEventListener(A?"touchmove":"mousemove",$,!0),document.addEventListener(A?"touchend":"mouseup",E,!0)))}const $=qf(b=>{se.value=!0,oe.x=A?b.touches[0].clientX:b.clientX,oe.y=A?b.touches[0].clientY:b.clientY;const N=oe.x-te.x,B=oe.y-te.y;v.y=B,v.x=N},c.throttle);function E(){const b=c.dir==="rtl"?-1:1,N=Math.sign(v.x)*.4,B=Math.round(v.x/l.value+N)*b;if(B&&!A){const j=ge=>{ge.stopPropagation(),window.removeEventListener("click",j,!0)};window.addEventListener("click",j,!0)}F(m.value-B),v.x=0,v.y=0,se.value=!1,document.removeEventListener(A?"touchmove":"mousemove",$,!0),document.removeEventListener(A?"touchend":"mouseup",E,!0)}function R(){!c.autoplay||c.autoplay<=0||(C=setInterval(()=>{c.pauseAutoplayOnHover&&ae.value||Q()},c.autoplay))}function I(){C&&(clearInterval(C),C=null),R()}const z=t.ref(!1);function F(b){const N=c.wrapAround?b:fa({val:b,max:g.value,min:y.value});m.value===N||z.value||(o("slide-start",{slidingToIndex:b,currentSlideIndex:m.value,prevSlideIndex:f.value,slidesCount:p.value}),z.value=!0,f.value=m.value,m.value=N,O=setTimeout(()=>{if(c.wrapAround){const B=ga({val:N,max:g.value,min:0});B!==m.value&&(m.value=B,o("loop",{currentSlideIndex:m.value,slidingToIndex:b}))}o("update:modelValue",m.value),o("slide-end",{currentSlideIndex:m.value,prevSlideIndex:f.value,slidesCount:p.value}),z.value=!1,I()},c.transition))}function Q(){F(m.value+c.itemsToScroll)}function re(){F(m.value-c.itemsToScroll)}const Fe={slideTo:F,next:Q,prev:re};t.provide("nav",Fe),t.provide("isSliding",z);const Pe=t.computed(()=>Gf({config:c,currentSlide:m.value,slidesCount:p.value}));t.provide("slidesToScroll",Pe);const bt=t.computed(()=>{const b=c.dir==="rtl"?-1:1,N=Pe.value*l.value*b;return{transform:`translateX(${v.x-N}px)`,transition:`${z.value?c.transition:0}ms`,margin:c.wrapAround?`0 -${p.value*l.value}px`:"",width:"100%"}});function Le(){W(),X(),ne(),J(),I()}Object.keys(pi).forEach(b=>{["modelValue"].includes(b)||t.watch(()=>e[b],Le)}),t.watch(()=>e.modelValue,b=>{b!==m.value&&F(Number(b))}),t.watch(p,ne),o("before-init"),W();const De={config:c,slidesCount:p,slideWidth:l,next:Q,prev:re,slideTo:F,currentSlide:m,maxSlide:g,minSlide:y,middleSlide:h};n({updateBreakpointsConfigs:X,updateSlidesData:ne,updateSlideWidth:J,initDefaultConfigs:W,restartCarousel:Le,slideTo:F,next:Q,prev:re,nav:Fe,data:De});const Me=a.default||a.slides,je=a.addons,ve=t.reactive(De);return()=>{const b=ui(Me==null?void 0:Me(ve)),N=(je==null?void 0:je(ve))||[];b.forEach((ye,be)=>ye.props.index=be);let B=b;if(c.wrapAround){const ye=b.map((we,ee)=>t.cloneVNode(we,{index:-b.length+ee,isClone:!0,key:`clone-before-${ee}`})),be=b.map((we,ee)=>t.cloneVNode(we,{index:b.length+ee,isClone:!0,key:`clone-after-${ee}`}));B=[...ye,...b,...be]}s.value=b,p.value=Math.max(b.length,1);const j=t.h("ol",{class:"carousel__track",style:bt.value,onMousedownCapture:c.mouseDrag?T:null,onTouchstartPassiveCapture:c.touchDrag?T:null},B),ge=t.h("div",{class:"carousel__viewport"},j);return t.h("section",{ref:r,class:{carousel:!0,"is-sliding":z.value,"is-dragging":se.value,"is-hover":ae.value,"carousel--rtl":c.dir==="rtl"},dir:c.dir,"aria-label":c.i18n.ariaGallery,tabindex:"0",onMouseenter:V,onMouseleave:x},[ge,N,t.h(Xf)])}}}),ya;(function(e){e.arrowUp="arrowUp",e.arrowDown="arrowDown",e.arrowRight="arrowRight",e.arrowLeft="arrowLeft"})(ya||(ya={}));const Yf={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 Qf(e){return e in ya}const ba=e=>{const a=t.inject("config",t.reactive(Object.assign({},Z))),o=String(e.name),n=`icon${o.charAt(0).toUpperCase()+o.slice(1)}`;if(!o||typeof o!="string"||!Qf(o))return;const i=Yf[o],r=t.h("path",{d:i}),s=a.i18n[n]||e.title||o,l=t.h("title",s);return t.h("svg",{class:"carousel__icon",viewBox:"0 0 24 24",role:"img","aria-label":s},[l,r])};ba.props={name:String,title:String};const eg=(e,{slots:a,attrs:o})=>{const{next:n,prev:i}=a||{},r=t.inject("config",t.reactive(Object.assign({},Z))),s=t.inject("maxSlide",t.ref(1)),l=t.inject("minSlide",t.ref(1)),p=t.inject("currentSlide",t.ref(1)),c=t.inject("nav",{}),{dir:d,wrapAround:u,i18n:m}=r,f=d==="rtl",h=t.h("button",{type:"button",class:["carousel__prev",!u&&p.value<=l.value&&"carousel__prev--disabled",o==null?void 0:o.class],"aria-label":m.ariaPreviousSlide,onClick:c.prev},(i==null?void 0:i())||t.h(ba,{name:f?"arrowRight":"arrowLeft"})),g=t.h("button",{type:"button",class:["carousel__next",!u&&p.value>=s.value&&"carousel__next--disabled",o==null?void 0:o.class],"aria-label":m.ariaNextSlide,onClick:c.next},(n==null?void 0:n())||t.h(ba,{name:f?"arrowLeft":"arrowRight"}));return[h,g]};var tg=t.defineComponent({name:"CarouselSlide",props:{index:{type:Number,default:1},isClone:{type:Boolean,default:!1}},setup(e,{slots:a}){const o=t.inject("config",t.reactive(Object.assign({},Z))),n=t.inject("currentSlide",t.ref(0)),i=t.inject("slidesToScroll",t.ref(0)),r=t.inject("isSliding",t.ref(!1)),s=()=>e.index===n.value,l=()=>e.index===n.value-1,p=()=>e.index===n.value+1,c=()=>{const d=Math.floor(i.value),u=Math.ceil(i.value+o.itemsToShow-1);return e.index>=d&&e.index<=u};return()=>{var d;return t.h("li",{style:{width:`${100/o.itemsToShow}%`},class:{carousel__slide:!0,"carousel__slide--clone":e.isClone,"carousel__slide--visible":c(),"carousel__slide--active":s(),"carousel__slide--prev":l(),"carousel__slide--next":p(),"carousel__slide--sliding":r.value},"aria-hidden":!c()},(d=a.default)===null||d===void 0?void 0:d.call(a))}}});const pe=(e,a)=>{const o=e.__vccOpts||e;for(const[n,i]of a)o[n]=i;return o},og={__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:"'Poppins-Regular', 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:a}){const o=e,n=t.computed(()=>{const l={"background-color":o.backgroundColor,height:o.height};return o.matchDay.key===o.matchDaySelected.key&&(l["border-bottom"]=`solid 1px ${o.bottomLineColor}`,l["background-color"]=o.selectedMatchDayBackgroundColor),o.isLandingMode||(l["border-right"]="solid 1px rgba(255, 255, 255, 0.1)"),l}),i=t.computed(()=>({color:o.numberColor,"font-family":o.numberFontFamily,"font-size":o.numberFontSize})),r=t.computed(()=>({color:o.textColor,"font-family":o.textFontFamily,"font-size":o.textFontSize}));function s(l){a("click-match-day",l)}return(l,p)=>(t.openBlock(),t.createElementBlock("div",{class:"match-day",style:t.normalizeStyle({...n.value}),onClick:p[0]||(p[0]=c=>s(e.matchDay))},[t.createElementVNode("div",{class:"match-day__value",style:t.normalizeStyle(i.value)},t.toDisplayString(e.matchDay.valueText),5),Number.isNaN(e.matchDay.value)?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",{key:0,class:"match-day__text",style:t.normalizeStyle([e.isLandingMode?"margin-top:3px":"margin-top:4px",r.value])},t.toDisplayString(e.isLandingMode||e.componentWidth<=425?"JOR":"JORNADA"),5))],4))}},ag=pe(og,[["__scopeId","data-v-89459353"]]),ng={__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:a}){const o=e;t.useCssVars(c=>({"4882fd4e":r.value,"48852bce":s.value}));const n=t.ref(null),i=t.computed(()=>({itemsToShow:o.itemsToShow,itemsToScroll:o.itemsToScroll,snapAlign:"start"})),r=t.computed(()=>n.value.data.currentSlide.value==0?"none":"inline"),s=t.computed(()=>n.value.data.currentSlide.value==n.value.data.maxSlide.value?"none":"inline"),l=t.ref({});t.watch(()=>o.matchDays,c=>{if(c&&c.length){const d=c.find(u=>u.key===o.defaultMatchDayKey);l.value=d||c[0],a("change-match-day",l.value)}},{immediate:!0});function p(c){l.value=c,a("change-match-day",l.value)}return(c,d)=>(t.openBlock(),t.createElementBlock("div",{class:"match-day-picker",style:t.normalizeStyle(e.isLandingMode?"border-top-left-radius: 9px; border-top-right-radius: 9px;":"margin-bottom:12px")},[t.createVNode(t.unref(Kf),t.mergeProps(i.value,{ref_key:"matchDayPickerCarousel",ref:n}),{addons:t.withCtx(()=>[t.createVNode(t.unref(eg))]),default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.matchDays,u=>(t.openBlock(),t.createBlock(t.unref(tg),{key:u.key},{default:t.withCtx(()=>[t.createVNode(ag,t.mergeProps(o,{"match-day":u,"match-day-selected":l.value,"is-landing-mode":e.isLandingMode,"component-width":e.componentWidth,onClickMatchDay:p}),null,16,["match-day","match-day-selected","is-landing-mode","component-width"])]),_:2},1024))),128))]),_:1},16)],4))}},rg=pe(ng,[["__scopeId","data-v-cdc70f61"]]);function Xe(e,a=80){return`${{}.TEAM_LOGOS_URL||"https://az755631.vo.msecnd.net/teams-"}${a}/${e}.png`}function hi(e){if(typeof e=="string"){let a=e.replace("M","J ");return a=a.replace("PO1","CFI"),a=a.replace("PO2","CFV"),a=a.replace("PO3","SFI"),a=a.replace("PO4","SFV"),a=a.replace("PO5","FI"),a=a.replace("PO6","FV"),a}}function ig(e){let a="";return e.game_status!=4&&(a+="Finalizado"),(e.penalties_score_home_team!=0||e.penalties_score_visiting_team!=0)&&(a+=" - Penales "+e.penalties_score_home_team+" - "+e.penalties_score_visiting_team),a}const sg={class:"game-info__teams"},lg={class:"game-info__teams__team__logo"},cg=["src"],dg={class:"game-info__teams__detail"},mg={key:0,class:"game-info__teams__detail__pre-game"},pg={class:"game-info__teams__team__logo away"},ug=["src"],hg={key:0},fg={key:0},gg={key:1},yg={__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 a=e,o=t.computed(()=>{const c=new Date(a.game.dateTimeMillis),d=c.getHours(),u=c.getMinutes();return`${d<10?`0${d}`:d}:${u<10?`0${u}`:u}`}),n=t.computed(()=>{let c="120px";return(a.isLandingMode||a.isAcronymVisible)&&(c="70px"),{"min-width":c}}),i=t.computed(()=>({"font-size":a.namesFontSize,"font-family":a.namesFontFamily,color:a.colorPrimary})),r=t.computed(()=>({"font-size":a.additionalInfoFontSize,"font-family":a.additionalInfoFontFamily,color:a.colorSecondary})),s=t.computed(()=>({"font-size":a.scoreFontSize,"font-family":a.scoreFontFamily,color:a.colorPrimary})),l=t.computed(()=>({"font-size":a.timeZoneFontSize,"font-family":a.namesFontFamily,color:a.colorPrimary})),p=t.computed(()=>({"font-size":a.timeFontSize,"font-family":a.namesFontFamily,color:a.colorPrimary}));return(c,d)=>(t.openBlock(),t.createElementBlock("div",{class:"game-info",style:t.normalizeStyle(e.isLandingMode?"gap:5px":"")},[t.createElementVNode("div",sg,[t.createElementVNode("div",{class:"game-info__teams__team",style:t.normalizeStyle(n.value)},[t.createElementVNode("div",{class:"game-info__teams__team__name",style:t.normalizeStyle(i.value)},t.toDisplayString(e.isLandingMode||e.isAcronymVisible?e.game.home_team.acronym:e.game.home_team.colloquial_name),5),t.createElementVNode("div",lg,[t.createElementVNode("img",{src:t.unref(Xe)(e.game.home_team.team_id),alt:""},null,8,cg)])],4),t.createElementVNode("div",dg,[e.game.game_status===4&&!e.game.is_live?(t.openBlock(),t.createElementBlock("div",mg,[t.createElementVNode("div",null,[t.createElementVNode("span",{style:t.normalizeStyle(p.value)},t.toDisplayString(o.value),5),t.createTextVNode(),t.createElementVNode("span",{style:t.normalizeStyle(l.value)},"CST",4)])])):(t.openBlock(),t.createElementBlock("div",{key:1,class:"game-info__teams__detail__score",style:t.normalizeStyle(s.value)},[t.createElementVNode("span",null,t.toDisplayString(e.game.score[0])+" - "+t.toDisplayString(e.game.score[1]),1)],4))]),t.createElementVNode("div",{class:"game-info__teams__team away",style:t.normalizeStyle(n.value)},[t.createElementVNode("div",pg,[t.createElementVNode("img",{src:t.unref(Xe)(e.game.visiting_team.team_id),alt:""},null,8,ug)]),t.createElementVNode("div",{class:"game-info__teams__team__name",style:t.normalizeStyle(i.value)},t.toDisplayString(e.isLandingMode||e.isAcronymVisible?e.game.visiting_team.acronym:e.game.visiting_team.colloquial_name),5)],4)]),t.createElementVNode("div",{class:"game-info__status",style:t.normalizeStyle([r.value,e.isLandingMode?"line-height: normal":""])},[e.game.game_status===4&&!e.game.is_live?(t.openBlock(),t.createElementBlock("span",hg,[e.isTelevisionVisible?(t.openBlock(),t.createElementBlock("span",fg,t.toDisplayString(e.game.tv_stations.join(", ")),1)):t.createCommentVNode("",!0)])):(t.openBlock(),t.createElementBlock("span",gg,t.toDisplayString(t.unref(ig)(e.game)),1))],4)],4))}},fi=pe(yg,[["__scopeId","data-v-afb1954b"]]),gi=e=>(t.pushScopeId("data-v-8839c56d"),e=e(),t.popScopeId(),e),bg={class:"game-status"},wg={key:0,class:"game-status__day__live"},_g=gi(()=>t.createElementVNode("span",null,"LIVE",-1)),Sg=gi(()=>t.createElementVNode("span",{class:"dot"},null,-1)),kg=[_g,Sg],Cg={key:0,class:"game-status__round"},Bg={__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 a=e,o=["Ene","Feb","Mar","Abr","May","Jun","Jul","Ago","Sep","Oct","Nov","Dic"],n=t.computed(()=>{let s="";if(a.dateTimeMillis){const l=new Date(a.dateTimeMillis);s=`${l.getDate()} ${o[l.getMonth()]}`}return s}),i=t.computed(()=>({"font-size":a.fontSize})),r=t.computed(()=>{let s=[];return a.isLive?s.push("live"):a.status!==1&&s.push("pre-match"),s});return(s,l)=>(t.openBlock(),t.createElementBlock("div",bg,[t.createElementVNode("div",{class:t.normalizeClass(["game-status__day",r.value]),style:t.normalizeStyle(i.value)},[e.isLive?(t.openBlock(),t.createElementBlock("div",wg,kg)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(n.value),1)],64))],6),e.isRoundMode?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",Cg,t.toDisplayString(e.roundAbbreviation),1))]))}},yi=pe(Bg,[["__scopeId","data-v-8839c56d"]]),ue={SHOW_GAME_EVENTS:"SHOW_GAME_EVENTS",PLAY_GOALS:"PLAY_GOALS",PLAY_RESUME:"PLAY_RESUME",NOTIFICATION:"NOTIFICATION",STATISTICS:"STATISTICS"},Eg=e=>(t.pushScopeId("data-v-0d97b1a8"),e=e(),t.popScopeId(),e),Ng={class:"actions"},xg={class:"actions__row"},Tg=Eg(()=>t.createElementVNode("svg",{width:"10",height:"12",viewBox:"0 0 10 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.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"}),t.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"}),t.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)),Og=[Tg],Vg={width:"6",height:"8",viewBox:"0 0 6 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},$g=["fill"],Ag={width:"13",height:"16",viewBox:"0 0 13 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},zg=["fill"],Rg={__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:a}){const o=e,n=t.computed(()=>({backgroundColor:o.iconBackgroundColor,borderColor:o.iconBorderColor}));function i(r){a("action",r)}return(r,s)=>(t.openBlock(),t.createElementBlock("div",Ng,[t.createElementVNode("div",xg,[t.createElementVNode("div",{class:"actions__button rounded",style:t.normalizeStyle(n.value),onClick:s[0]||(s[0]=l=>i(t.unref(ue).STATISTICS))},Og,4),e.showPlayButton&&e.hasVideo?(t.openBlock(),t.createElementBlock("div",{key:0,class:"actions__button rounded",style:t.normalizeStyle(n.value),onClick:s[1]||(s[1]=l=>i(t.unref(ue).PLAY_RESUME))},[(t.openBlock(),t.createElementBlock("svg",Vg,[t.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:o.iconColor},null,8,$g)]))],4)):t.createCommentVNode("",!0),e.gameStatus===4444&&!e.isLive?(t.openBlock(),t.createElementBlock("div",{key:1,class:"actions__button",onClick:s[2]||(s[2]=l=>i(t.unref(ue).NOTIFICATION))},[(t.openBlock(),t.createElementBlock("svg",Ag,[t.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:o.iconColor},null,8,zg)]))])):t.createCommentVNode("",!0)])]))}},Ig=pe(Rg,[["__scopeId","data-v-0d97b1a8"]]),wa=e=>(t.pushScopeId("data-v-af6919bd"),e=e(),t.popScopeId(),e),Fg={class:"actions"},Pg={width:"13",height:"16",viewBox:"0 0 13 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Lg=["fill"],Dg={width:"6",height:"8",viewBox:"0 0 6 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Mg=["fill"],jg=wa(()=>t.createElementVNode("svg",{width:"10",height:"12",viewBox:"0 0 10 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.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"}),t.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"}),t.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)),vg=[jg],Wg={key:0,class:"actions__videos"},Ug={width:"13",height:"16",viewBox:"0 0 13 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Hg=["fill"],Gg={key:1,class:"actions__videos__thumbnails"},qg=wa(()=>t.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail__goals"},null,-1)),Jg=wa(()=>t.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail__summary"},null,-1)),Zg={height:24,width:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Xg=["stroke"],Kg={__name:"GameActionsFull",props:{gameStatus:{type:Number,default:4},isLive:{type:Boolean,default:!1},hasVideo:{type:Boolean,default:!1},hasActions:{type:Boolean,default:!0},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:a}){const o=e,n=t.computed(()=>({backgroundColor:o.iconBackgroundColor,borderColor:o.iconBorderColor})),i=t.computed(()=>{const p=[];return o.componentWidth<540&&p.push("mobile"),p}),r=t.computed(()=>o.componentWidth>730),s=t.computed(()=>({color:o.thumbnailColor,fontFamily:o.thumbnailFontFamily,fontSize:o.thumbnailFontSize}));function l(p){a("action",p)}return(p,c)=>(t.openBlock(),t.createElementBlock("div",Fg,[t.createElementVNode("div",{class:t.normalizeClass(["actions__buttons",i.value])},[e.gameStatus===4444&&!e.isLive&&!r.value?(t.openBlock(),t.createElementBlock("div",{key:0,class:"actions__button",onClick:c[0]||(c[0]=d=>l(t.unref(ue).NOTIFICATION))},[(t.openBlock(),t.createElementBlock("svg",Pg,[t.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:o.iconColor},null,8,Lg)]))])):t.createCommentVNode("",!0),e.showPlayButton&&e.hasVideo&&!r.value?(t.openBlock(),t.createElementBlock("div",{key:1,class:"actions__button rounded",style:t.normalizeStyle(n.value),onClick:c[1]||(c[1]=d=>l(t.unref(ue).PLAY_RESUME))},[(t.openBlock(),t.createElementBlock("svg",Dg,[t.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:o.iconColor},null,8,Mg)]))],4)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"actions__button rounded",style:t.normalizeStyle(n.value),onClick:c[2]||(c[2]=d=>l(t.unref(ue).STATISTICS))},vg,4)],2),r.value?(t.openBlock(),t.createElementBlock("div",Wg,[e.gameStatus===4444&&!e.isLive?(t.openBlock(),t.createElementBlock("div",{key:0,class:"actions__button",onClick:c[3]||(c[3]=d=>l(t.unref(ue).NOTIFICATION))},[(t.openBlock(),t.createElementBlock("svg",Ug,[t.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:o.iconColor},null,8,Hg)]))])):t.createCommentVNode("",!0),e.showPlayButton&&e.hasVideo?(t.openBlock(),t.createElementBlock("div",Gg,[t.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail",onClick:c[4]||(c[4]=d=>l(t.unref(ue).PLAY_GOALS))},[qg,t.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail__text",style:t.normalizeStyle(s.value)}," Goles ",4)]),t.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail",onClick:c[5]||(c[5]=d=>l(t.unref(ue).PLAY_RESUME))},[Jg,t.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail__text",style:t.normalizeStyle(s.value)}," Resumen ",4)])])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),(e.gameStatus!==4||e.isLive)&&e.hasActions?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(["actions__button expand",{"rotated-180":e.areEventsVisible,mobile:e.componentWidth<540}]),onClick:c[6]||(c[6]=d=>l(t.unref(ue).SHOW_GAME_EVENTS))},[(t.openBlock(),t.createElementBlock("svg",Zg,[t.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,Xg)]))],2)):(t.openBlock(),t.createElementBlock("div",{key:2,class:t.normalizeClass(["actions__button expand",{"rotated-180":!1,mobile:e.componentWidth<540}])},null,2))]))}},Yg=pe(Kg,[["__scopeId","data-v-af6919bd"]]),qt=e=>(t.pushScopeId("data-v-43a88f53"),e=e(),t.popScopeId(),e),Qg={class:"row-landing__game-status"},e0={class:"row-landing__game-actions"},t0={class:"row-full__game-status"},o0={class:"row-full__game-info"},a0={key:0},n0={class:"row-full__game-actions"},r0={class:"game-events-container"},i0=qt(()=>t.createElementVNode("div",{class:"separator"},null,-1)),s0=qt(()=>t.createElementVNode("div",null,null,-1)),l0={class:"game-events__data"},c0={class:"game-events__data__team"},d0=["src"],m0={class:"game-events__data__team__event__text"},p0={class:"game-events__data__team away"},u0={class:"game-events__data__team__event__text"},h0=["src"],f0=qt(()=>t.createElementVNode("div",null,null,-1)),g0=qt(()=>t.createElementVNode("div",null,null,-1)),y0={__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:a}){const o=e,n={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"},i=t.ref(!1),r=t.ref(!1),s=t.computed(()=>{const g={homeTeam:[],awayTeam:[]};return o.game&&o.game.game_status!==4&&!o.game.is_live&&o.game.minutes&&(g.homeTeam.push(...f(o.game.minutes.home_goals_minutes,n.GOAL)),g.homeTeam.push(...f(o.game.minutes.home_red_cards_minutes,n.RED_CARD)),g.homeTeam.push(...f(o.game.minutes.home_yellow_cards_minutes,n.YELLOW_CARD)),g.awayTeam.push(...f(o.game.minutes.visiting_goals_minutes,n.GOAL)),g.awayTeam.push(...f(o.game.minutes.away_red_cards_minutes,n.RED_CARD)),g.awayTeam.push(...f(o.game.minutes.away_yellow_cards_minutes,n.YELLOW_CARD))),g}),l=t.computed(()=>{const g=s.value.homeTeam.length,y=s.value.awayTeam.length;return g+y>0}),p=t.computed(()=>({"background-color":o.backgroundColor})),c=t.computed(()=>({height:o.height})),d=t.computed(()=>{const g={game:[],events:[]};return o.componentWidth<500?(g.events.push("break-point-3"),g.game.push("break-point-2")):o.componentWidth<730?(g.game.push("break-point-2"),g.events.push("break-point-2")):o.componentWidth<910&&(g.game.push("break-point-1"),g.events.push("break-point-1")),g}),u=t.computed(()=>({isLandingMode:o.isLandingMode,game:o.game,colorPrimary:"#fff",colorSecondary:"#fff",namesFontSize:"12px",timeFontSize:"12px",timeZoneFontSize:"8px",scoreFontSize:"13px",namesFontFamily:"sans-serif",scoreFontFamily:"sans-serif",additionalInfoFontFamily:"sans-serif",additionalInfoFontSize:"9px"})),m=t.computed(()=>({"font-size":o.televisionFontSize,"font-family":o.televisionFontFamily,color:o.televisionColor}));t.watch(()=>o.componentWidth,g=>{r.value=g<910});function f(g,y){return g.map(C=>({iconUrl:y,text:C}))}function h(g){g===ue.SHOW_GAME_EVENTS?i.value=!i.value:a("action",{action:g,game:o.game})}return(g,y)=>e.isLandingMode?(t.openBlock(),t.createElementBlock("div",{key:0,class:"row-landing",style:t.normalizeStyle(p.value)},[t.createVNode(fi,{game:e.game,"is-landing-mode":e.isLandingMode},null,8,["game","is-landing-mode"]),t.createElementVNode("div",Qg,[t.createVNode(yi,{status:e.game.game_status,"is-live":!!e.game.is_live,"date-time-millis":e.game.dateTimeMillis,"round-abbreviation":t.unref(hi)(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"])]),t.createElementVNode("div",e0,[t.createVNode(Ig,{"is-live":!!e.game.is_live,"has-video":!!e.game.has_video,"game-status":e.game.game_status,"show-play-button":!0,onAction:h},null,8,["is-live","has-video","game-status"])])],4)):(t.openBlock(),t.createElementBlock("div",{key:1,class:"row-full-container",style:t.normalizeStyle(p.value)},[t.createElementVNode("div",{class:t.normalizeClass(["row-full",d.value.game]),style:t.normalizeStyle(c.value)},[t.createElementVNode("div",t0,[t.createVNode(yi,{status:e.game.game_status,"is-live":!!e.game.is_live,"date-time-millis":e.game.dateTimeMillis,"round-abbreviation":t.unref(hi)(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"])]),t.createElementVNode("div",o0,[t.createVNode(fi,t.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?(t.openBlock(),t.createElementBlock("div",{key:0,class:"row-full__television",style:t.normalizeStyle(m.value)},[!r.value&&(e.game.game_status===4||e.game.is_live)?(t.openBlock(),t.createElementBlock("span",a0,t.toDisplayString(e.game.tv_stations.join(", ")),1)):t.createCommentVNode("",!0)],4)):t.createCommentVNode("",!0),t.createElementVNode("div",n0,[t.createVNode(Yg,{"is-live":!!e.game.is_live,"has-video":!!e.game.has_video,"has-actions":l.value,"game-status":e.game.game_status,"show-play-button":!0,"are-events-visible":i.value,"component-width":e.componentWidth,onAction:h},null,8,["is-live","has-video","has-actions","game-status","are-events-visible","component-width"])])],6),t.createVNode(t.Transition,null,{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("div",r0,[i0,t.createElementVNode("div",{class:t.normalizeClass(["game-events",d.value.events])},[s0,t.createElementVNode("div",l0,[t.createElementVNode("div",c0,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.value.homeTeam,(C,O)=>(t.openBlock(),t.createElementBlock("div",{key:`h${O}`,class:"game-events__data__team__event"},[t.createElementVNode("img",{src:C.iconUrl},null,8,d0),t.createElementVNode("div",m0,t.toDisplayString(C.text),1)]))),128))]),t.createElementVNode("div",p0,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.value.awayTeam,(C,O)=>(t.openBlock(),t.createElementBlock("div",{key:`a${O}`,class:"game-events__data__team__event"},[t.createElementVNode("div",u0,t.toDisplayString(C.text),1),t.createElementVNode("img",{src:C.iconUrl},null,8,h0)]))),128))])]),f0,g0],2)],512),[[t.vShow,i.value]])]),_:1})],4))}},bi=pe(y0,[["__scopeId","data-v-43a88f53"]]),b0={class:"calendar-table"},w0={__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:a}){const o=e;function n(r){return r%2===0?o.evenRowColor:o.oddRowColor}function i(r){a("action",r)}return(r,s)=>(t.openBlock(),t.createElementBlock("div",b0,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.gamesPerPage,(l,p)=>(t.openBlock(),t.createBlock(bi,{key:l.game_id,game:l,"is-landing-mode":e.isLandingMode,height:e.rowHeight,"background-color":n(p),"component-width":e.componentWidth,"is-round-mode":e.isRoundMode,onAction:i},null,8,["game","is-landing-mode","height","background-color","component-width","is-round-mode"]))),128))]))}},_0=pe(w0,[["__scopeId","data-v-47b333f0"]]),S0={class:"calendar-by-team"},k0={class:"playing-as-picker"},C0={class:"calendar-by-team__page"},B0={__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:a}){const o=e,n=t.ref(0),i=t.computed(()=>{let p=[];if(o.gamesPages.size>0){const c=Array.from(o.gamesPages.entries()).reduce((d,[u,m])=>{const f=Number(u),h=Number.isNaN(f)?u:`Jornada ${f<10?"0":""}${f}`,g=m.reduce((y,C)=>(y.push(...C),y),[]).filter(y=>n.value===0||n.value===1&&y.visiting_team.team_id===o.teamId?!0:n.value===2&&y.home_team.team_id===o.teamId);return g.length>0&&d.push({roundName:h,games:g}),d},[]);p.push(c)}return p});function r(p){a("action",p)}function s(p){document.querySelector("#opc0").classList.remove("selected"),document.querySelector("#opc1").classList.remove("selected"),document.querySelector("#opc2").classList.remove("selected"),n.value=p,document.querySelector("#opc"+p).classList.add("selected")}function l(p){let c=p;switch(p){case"PI1":c="Play In 1";break;case"PI2":c="Play In 2";break;case"R1":c="Repechaje";break;case"CFI":c="Cuartos de final - Ida";break;case"CFV":c="Cuartos de final - Vuelta";break;case"SFI":c="Semifinal - Ida";break;case"SFV":c="Semifinal - Vuelta";break;case"FI":c="Final - Ida";break;case"FV":c="Final - Vuelta";break}return c}return(p,c)=>(t.openBlock(),t.createElementBlock("div",S0,[t.createElementVNode("div",k0,[t.createElementVNode("div",{class:"playing-as-picker__type selected",id:"opc0",onClick:c[0]||(c[0]=d=>s(0))},"Todas"),t.createElementVNode("div",{class:"playing-as-picker__type",id:"opc1",onClick:c[1]||(c[1]=d=>s(1))},"Visitante"),t.createElementVNode("div",{class:"playing-as-picker__type",id:"opc2",onClick:c[2]||(c[2]=d=>s(2))},"Local")]),t.createVNode(t.unref(mi),{"is-pagination-visible":e.isPaginationVisible,items:i.value},{default:t.withCtx(({item:d})=>[t.createElementVNode("div",C0,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(d,(u,m)=>(t.openBlock(),t.createElementBlock("div",{key:m,class:"calendar-by-team__page__round"},[t.createElementVNode("div",{class:"calendar-by-team__page__round__round-name",style:t.normalizeStyle([{color:"white"},e.componentWidth<=425?"padding: 5px 10px":""])},t.toDisplayString(l(u.roundName)),5),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(u.games,f=>(t.openBlock(),t.createBlock(bi,{key:f.game_id,game:f,"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"])]))}},E0=pe(B0,[["__scopeId","data-v-aae4ad84"]]),N0="_image62Icon_1lvdf_3",x0="_imgChivasIcon_1lvdf_21",T0="_nameDesktop_1lvdf_35",O0="_nameMobile_1lvdf_61",V0="_homeTeam_1lvdf_85",$0="_sbado16De_1lvdf_107",A0="_gameDate_1lvdf_125",z0="_sab16092023_1lvdf_133",R0="_div_1lvdf_159",I0="_divscore_1lvdf_177",F0="_cst_1lvdf_197",P0="_hour_1lvdf_215",L0="_score_1lvdf_217",D0="_chivasTvCanal_1lvdf_239",M0="_gameStatus_1lvdf_263",j0="_matchInfo_1lvdf_285",v0="_image62Icon1_1lvdf_311",W0="_name_1lvdf_35",U0="_imgAtlasIcon_1lvdf_355",H0="_name1_1lvdf_369",G0="_awayTeam_1lvdf_393",q0="_matchCard_1lvdf_415",J0={image62Icon:N0,imgChivasIcon:x0,nameDesktop:T0,nameMobile:O0,homeTeam:V0,sbado16De:$0,gameDate:A0,sab16092023:z0,div:R0,divscore:I0,cst:F0,hour:P0,score:L0,chivasTvCanal:D0,gameStatus:M0,matchInfo:j0,image62Icon1:v0,name:W0,imgAtlasIcon:U0,name1:H0,awayTeam:G0,matchCard:q0},Z0=["src"],X0=["src"],K0={key:0},Y0=["src"],Q0=["src"],ey={__name:"CardPreMatch",props:{game:{type:Object,default:()=>{}}},setup(e){const a=e,o=t.computed(()=>{const i={...a.game};return i.gameSchedule=a.game.schedule.split(":"),i.gameSchedule.pop(),i.gameSchedule=i.gameSchedule.join(":"),i});function n(i,r){const s=new Date(i);if(r==1){const l=["Domingo","Lunes","Martes","Miércoles","Jueves","Viernes","Sábado"],p=["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"];return`${l[s.getDay()]} ${s.getDate()} de ${p[s.getMonth()]}`}else return`${s.getDate()}-${s.getMonth()+1}-${s.getFullYear()}`}return(i,r)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(i.$style.matchCard)},[t.createElementVNode("div",{class:t.normalizeClass(i.$style.homeTeam),id:"container-home-team"},[t.createElementVNode("img",{class:t.normalizeClass(i.$style.image62Icon),alt:"",src:t.unref(Xe)(o.value.home_team.team_id,150)},null,10,Z0),t.createElementVNode("img",{class:t.normalizeClass(i.$style.imgChivasIcon),alt:"",src:t.unref(Xe)(o.value.home_team.team_id)},null,10,X0),t.createElementVNode("h3",{class:t.normalizeClass(i.$style.nameDesktop),id:"team-name"},t.toDisplayString(o.value.home_team.colloquial_name),3),t.createElementVNode("h3",{class:t.normalizeClass(i.$style.nameMobile),id:"team-name"},t.toDisplayString(o.value.home_team.acronym),3)],2),o.value.game_status==4?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(i.$style.matchInfo),id:"container-match-info"},[t.createElementVNode("div",{class:t.normalizeClass(i.$style.sbado16De)},t.toDisplayString(n(o.value.date_time_utc,1)),3),t.createElementVNode("div",{class:t.normalizeClass(i.$style.sab16092023)},t.toDisplayString(n(o.value.date_time_utc,0)),3),t.createElementVNode("div",{class:t.normalizeClass(i.$style.hour)},[t.createElementVNode("div",{class:t.normalizeClass(i.$style.div)},t.toDisplayString(o.value.gameSchedule),3),t.createElementVNode("div",{class:t.normalizeClass(i.$style.cst)},"CST",2)],2),t.createElementVNode("div",{class:t.normalizeClass(i.$style.chivasTvCanal)},t.toDisplayString(o.value.tv_stations.join(", ")),3)],2)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(i.$style.matchInfo),id:"container-match-info"},[t.createElementVNode("div",{class:t.normalizeClass([i.$style.sbado16De,i.$style.gameDate])},t.toDisplayString(n(o.value.date_time_utc,1)),3),t.createElementVNode("div",{class:t.normalizeClass([i.$style.sab16092023,i.$style.gameDate])},t.toDisplayString(n(o.value.date_time_utc,0)),3),t.createElementVNode("div",{class:t.normalizeClass(i.$style.score)},[t.createElementVNode("div",{class:t.normalizeClass(i.$style.divscore)},t.toDisplayString(o.value.score.join(" - ")),3)],2),t.createElementVNode("div",{class:t.normalizeClass(i.$style.gameStatus)},[t.createTextVNode(" Finalizado "),o.value.penalties_score_home_team!=0||o.value.penalties_score_visiting_team!=0?(t.openBlock(),t.createElementBlock("span",K0," - Penales "+t.toDisplayString(o.value.penalties_score_home_team)+" - "+t.toDisplayString(o.value.penalties_score_visiting_team),1)):t.createCommentVNode("",!0)],2)],2)),t.createElementVNode("div",{class:t.normalizeClass(i.$style.awayTeam),id:"container-away-team"},[t.createElementVNode("img",{class:t.normalizeClass(i.$style.image62Icon1),alt:"",src:t.unref(Xe)(o.value.visiting_team.team_id,150)},null,10,Y0),t.createElementVNode("h3",{class:t.normalizeClass(i.$style.name),id:"team-name"},t.toDisplayString(o.value.visiting_team.colloquial_name),3),t.createElementVNode("img",{class:t.normalizeClass(i.$style.imgAtlasIcon),alt:"",src:t.unref(Xe)(o.value.visiting_team.team_id)},null,10,Q0),t.createElementVNode("h3",{class:t.normalizeClass(i.$style.name1),id:"team-name"},t.toDisplayString(o.value.visiting_team.acronym),3)],2)],2))}},ty={$style:J0},oy=pe(ey,[["__cssModules",ty]]),ay={class:"calendar-by-game__carousel"},ny={components:{GscSwitchComponent:Yo,GSCGeneraltable:Tu,GSCCalendarByGame:pe({__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:a}){const o=e;let n=null;const i=t.ref([]),r=t.ref({}),s=t.ref([]),l=t.ref(0),p=t.ref(null),c=t.ref({}),d=t.ref(new Map),u=t.ref(!1),m=t.ref(null),f=t.ref(null),h=t.ref(null),g=t.computed(()=>o.isCup),y=t.computed(()=>o.isCupLegacy),C=t.computed(()=>({height:o.height,width:o.width})),O=t.computed(()=>o.games?J(o.games):d.value.get(c.value.key)||[]);t.watch(()=>o.seasons,V=>{V&&V.length&&(u.value=!0,i.value=V.map(x=>x.id),he(V,!0))},{immediate:!0,deep:!0}),t.watch(()=>o.teamId,()=>{fe()});async function W(V,x,T=""){let $=T;try{const E={};o.token&&(E.Authorization=o.token),$||($="https://qyyibs1w0d.execute-api.us-west-2.amazonaws.com/prod/calendar/gamesBySeason?",V.forEach((z,F)=>{$+=`${F===0?"":"&"}seasons=${z}`}));const{data:{data:R,teams:I}}=await si.get($,{headers:E});return{seasonsAndGames:R,seasonsAndTeams:I}}catch(E){if(x>0)return W(V,x-1,$);throw new Error(E)}}function X(V){for(const x of V)if(!i.value.includes(x.season_id))return!0;return!1}async function he(V,x){try{r.value={};let T=0;const{seasonsAndGames:$,seasonsAndTeams:E}=await W(V.map(I=>I.id),3);if(x&&X($))return;$.forEach(I=>{const{type:z}=V.find(F=>F.id===I.season_id);I.type=z,I.games.forEach(F=>{F.season_id=I.season_id}),z===0&&(T=I.season_id)}),m.value={seasonsGames:$};const{teams:R}=E.find(I=>I.season_id===T);f.value=R,a("change-teams",R),fe()}catch(T){throw new Error(T)}}function fe(){if(!f.value)return;const V=m.value&&m.value.seasonsGames?m.value.seasonsGames.map(x=>{const T=x.games.reduce(($,E)=>{const R={...E};return R.dateTimeMillis=new Date(R.date_time_utc).valueOf(),R.home_team=f.value.find(I=>I.team_id===E.home_team),R.visiting_team=f.value.find(I=>I.team_id===E.visiting_team),o.teamId&&R.home_team.team_id!==o.teamId&&R.visiting_team.team_id!==o.teamId||($[E.matchday_abbreviation]?$[E.matchday_abbreviation][E.game_status===3?"canceled":E.date]?$[E.matchday_abbreviation][E.game_status===3?"canceled":E.date].push(R):$[E.matchday_abbreviation][E.game_status===3?"canceled":E.date]=[R]:$[E.matchday_abbreviation]={[E.game_status===3?"canceled":E.date]:[R]}),$},{});for(let[$,E]of Object.entries(T))T[$]=Object.entries(E).map(([R,I])=>({date:R,games:I.sort((z,F)=>z.dateTimeMillis-F.dateTimeMillis)})),T[$].sort((R,I)=>R.date<I.date?-1:R.date>I.date?1:0);return{type:x.type,weight:x.type===0?0:x.type===2?1:2,schedule:T}}):[];V.sort((x,T)=>x.weight-T.weight),r.value=V.reduce((x,T)=>{for(const[$,E]of Object.entries(T.schedule))if(T.type===0)if(g.value){const R=$.replace("M",""),I=R;y.value?x[Wf[R]||I]=E:x[vf[$]||I]=E}else x[Number($.replace("M","")).toString()]=E;else T.type===2?$.charAt(1)=="I"?x[`PI${Number($.replace("PI",""))}`]=E:x[`R${Number($.replace("PO",""))}`]=E:T.type===1&&(x[jf[$]]=E);return x},{}),d.value=new Map,s.value=Array.from(Object.entries(r.value).reduce((x,[T,$])=>{const E=Number(T);let R="";Number.isNaN(E)?R=T:R=E<10?`0${E}`:T,x.set(T,{key:T,value:E,valueText:R});const I=$.reduce((F,Q)=>(Q.games.forEach(re=>{re.game_id===o.defaultGameId&&(h.value=T),re.roundAbbreviation=Number.isNaN(E)?E:`J ${E}`}),F=F.concat(Q.games),F),[]),z=J(I);return d.value.set(T,z),x},new Map).values())}function J(V){const x=[];if(o.gamesPerMatchDay>0){let T=[];V.forEach(($,E)=>{T.push($),(E+1)%o.gamesPerMatchDay===0&&(x.push([...T]),T=[])}),T.length&&x.push([...T])}else x.push(V);return x}async function ne(V){try{const{data:x}=await si.get("https://kefloixzy1.execute-api.us-west-2.amazonaws.com/prod/tournaments");return x}catch(x){if(V>0)return ne(V-1);throw new Error(x)}}function A(){if(window.ResizeObserver)n=new ResizeObserver(()=>{l.value=p.value.clientWidth}),n.observe(p.value);else throw new Error("Resize observer not supported!")}function te(V){c.value=V,a("change-round",V)}function oe(V){o.areGamesCarouselType&&a("change-game-carousel",V.selectedItem)}function v(V){a("action",V),ae(V)}function ae(V){const x="PLAY_RESUME",T="PLAY_GOALS",$=[607,608,12,55,54,35,14,52,15,53,466,477],E=[12,55,"35_r","54_r"],{game_id:R,season_id:I}=V.game;let z={seasonId:I,tournaments:[],isFeaturedPlayers:!1,mainSectionType:1,playListType:1,gameIds:[R],playerIds:[],goalkeeperIds:[],categoryIds:[],teamId:0,matchResult:[],categorySingleName:"",avoidCategorySingleName:!1,currentPlayIndex:0,playData:null,lastClashedGameId:null,tournamentsLastClashes:null,advancedFilter:{playListTitle:""},objectPlaySync:null};V.action===x?(z.categoryIds=$,z.advancedFilter.playListTitle="Resumen",a("openmedia",z)):V.action===T&&(z.categoryIds=E,z.advancedFilter.playListTitle="Goles",a("openmedia",z))}async function se(){try{if(!o.awaitForSeasons&&!o.games){const V=(await ne(3)).find($=>$._id===1),x=V.seasons[0],T=[{id:x.id,type:x.type}];V&&V.tournament&&a("tournament-selected",V.tournament),x.related_seasons&&x.related_seasons.length&&T.push(...x.related_seasons.map($=>({id:$.id,type:$.type}))),await he(T,!1)}}catch(V){throw new Error(V)}}return t.onMounted(()=>{A()}),se(),(V,x)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"calendarByGame",ref:p,class:"calendar-by-game",style:t.normalizeStyle(C.value)},[e.teamId&&!e.avoidTeamIdFilter?(t.openBlock(),t.createBlock(E0,{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":d.value,"is-pagination-visible":e.isPaginationVisible,"is-round-mode":e.isRoundMode,onAction:v},null,8,["full-tournament-schedule","team-id","row-height","component-width","games-pages","is-pagination-visible","is-round-mode"])):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[e.areRoundsVisible&&s.value?(t.openBlock(),t.createBlock(rg,{key:0,"match-days":s.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":h.value,onChangeMatchDay:te},null,8,["match-days","is-landing-mode","items-to-show","items-to-scroll","component-width","default-match-day-key"])):t.createCommentVNode("",!0),t.createElementVNode("div",ay,[O.value?(t.openBlock(),t.createBlock(t.unref(mi),{key:0,"is-pagination-visible":e.isPaginationVisible&&!e.areGamesCarouselType,items:e.areGamesCarouselType?O.value[0]:O.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:oe},{default:t.withCtx(({item:T})=>[e.areGamesCarouselType?(t.openBlock(),t.createBlock(oy,{key:0,game:T},null,8,["game"])):(t.openBlock(),t.createBlock(_0,{key:1,"games-per-page":T,"is-landing-mode":e.isLandingMode,"row-height":e.rowHeight,"component-width":l.value,"is-round-mode":e.isRoundMode,onAction:v},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"])):t.createCommentVNode("",!0)])],64))],4))}},[["__scopeId","data-v-57f2fc98"]])},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)}}},ry={class:"gsc-calendar-table"},iy={class:"gsc-switch-container"},sy={class:"gsc-app-component"};function ly(e,a,o,n,i,r){const s=t.resolveComponent("GscSwitchComponent"),l=t.resolveComponent("GSCGeneraltable"),p=t.resolveComponent("GSCCalendarByGame");return t.openBlock(),t.createElementBlock("div",ry,[t.createElementVNode("div",iy,[t.createVNode(s,{type:0,"font-family":"Poppins-Light",buttons:["Mi posición","Calendario"],height:"40px","selected-option":i.selectedOpt,"font-size":o.componentWidth>=768?"16px":"14px",width:"355px",onInput:r.changeCategory},null,8,["selected-option","font-size","onInput"])]),t.createElementVNode("div",sy,[i.selectedOpt=="Mi posición"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createVNode(l,{isPaginationVisible:!0,"current-season-id":o.season.id,type:1,"await-for-season":!0,onOpenmedia:r.onOpenMedia,onOpenTableProfile:r.onOpenProfile},null,8,["current-season-id","onOpenmedia","onOpenTableProfile"]),t.createElementVNode("div",{onClick:a[0]||(a[0]=c=>this.$router.push({name:"table"})),class:"gsc-app-component-view-all"}," Ver todo ")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createVNode(p,{onAction:r.onAction,onOpenmedia:r.onOpenMedia,width:"100%",token:i.tokenFree,seasons:o.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"]),t.createElementVNode("div",{onClick:a[1]||(a[1]=c=>this.$router.push({name:"calendar"})),class:"gsc-app-component-view-all"}," Ver todo ")],64))])])}const cy=ie(ny,[["render",ly],["__scopeId","data-v-6b8889ec"]]),dy={class:"match"},my={class:"match__header"},py={key:0,class:"match__final-tag"},uy={key:1,class:"match__final-tag__no-border"},hy={class:"match__tag"},fy={class:"match__body"},gy={class:"match__data"},yy={class:"match__acronym"},by=["src"],wy={class:"match__score"},_y=["src"],Sy={class:"match__acronym"},ky={class:"match__status"},Jt=ie({__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(a,o)=>{var n,i,r;return t.openBlock(),t.createElementBlock("section",dy,[t.createElementVNode("div",my,[e.infoType=="postmatch"?(t.openBlock(),t.createElementBlock("div",py,"FINAL ")):(t.openBlock(),t.createElementBlock("div",uy)),t.createElementVNode("div",hy,t.toDisplayString(e.data.matchday_abbreviation.replace("M","J")),1)]),t.createElementVNode("div",fy,[t.createElementVNode("div",gy,[t.createElementVNode("div",yy,t.toDisplayString((n=e.data)==null?void 0:n.home_team_acronym),1),t.createElementVNode("img",{class:"match__img",src:"https://az755631.vo.msecnd.net/teams-80/"+e.data.home_team+".png",alt:"team-img"},null,8,by),t.createElementVNode("div",wy,[e.infoType=="postmatch"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(e.data.score[0])+" - "+t.toDisplayString(e.data.score[1]),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString((i=e.data)==null?void 0:i.schedule.replace(":00","")),1)],64))]),t.createElementVNode("img",{class:"match__img",src:"https://az755631.vo.msecnd.net/teams-80/"+e.data.visiting_team+".png",alt:"team-img"},null,8,_y),t.createElementVNode("div",Sy,t.toDisplayString((r=e.data)==null?void 0:r.visiting_team_acronym),1)]),t.createElementVNode("div",ky,[e.infoType=="postmatch"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Finalizado"+t.toDisplayString(e.penalScore?` - Penales ${e.penalScore}`:""),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("CST")],64))])]),t.createElementVNode("div",{class:"match__button",onClick:o[0]||(o[0]=s=>a.$emit("clickMatch"))},"Analizar partido →")])}}},[["__scopeId","data-v-c49fa538"]]),Cy=e=>(t.pushScopeId("data-v-8a51a354"),e=e(),t.popScopeId(),e),By={class:"match"},Ey={class:"match__header"},Ny=Cy(()=>t.createElementVNode("div",{class:"match__final-tag"},"FINAL",-1)),xy={class:"match__tag"},Ty={class:"match__body"},Oy={class:"match__data"},Vy={class:"match__acronym"},$y=["src"],Ay={class:"match__score"},zy=["src"],Ry={class:"match__acronym"},Iy={class:"match__status"},wi=ie({__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(a,o)=>(t.openBlock(),t.createElementBlock("section",By,[t.createElementVNode("div",Ey,[Ny,t.createElementVNode("div",xy,t.toDisplayString(e.data.matchday_abbreviation.replace("M","J")),1)]),t.createElementVNode("div",Ty,[t.createElementVNode("div",Oy,[t.createElementVNode("div",Vy,t.toDisplayString(e.data.home_team.acronym),1),t.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,$y),t.createElementVNode("div",Ay,t.toDisplayString(e.data.score[0])+" - "+t.toDisplayString(e.data.score[1]),1),t.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,zy),t.createElementVNode("div",Ry,t.toDisplayString(e.data.visiting_team.acronym),1)]),t.createElementVNode("div",Iy,"Finalizado"+t.toDisplayString(e.penalScore?` - Penales ${e.penalScore}`:""),1)]),t.createElementVNode("div",{class:"match__button",onClick:o[0]||(o[0]=n=>a.$emit("clickMatch"))},"Analizar partido →")]))}},[["__scopeId","data-v-8a51a354"]]),Fy=e=>(t.pushScopeId("data-v-4c9c0afe"),e=e(),t.popScopeId(),e),Py=["src"],Ly=["src"],Dy={class:"coming-match__body"},My={class:"coming-match__data"},jy=["src"],vy={style:{"margin-top":"16px"}},Wy={class:"coming-match__time"},Uy=Fy(()=>t.createElementVNode("div",{class:"coming-match__cst"},"CST",-1)),Hy=["src"],_a=ie({__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(a,o)=>{var n,i,r,s,l,p,c,d,u,m,f,h,g;return t.openBlock(),t.createElementBlock("section",{class:t.normalizeClass(["coming-match",{small:e.small}])},[t.createElementVNode("img",{class:t.normalizeClass(["coming-match__bg",{small:e.small}]),src:typeof e.data.home_team=="object"?"https://az755631.vo.msecnd.net/teams-150/"+((n=e.data)==null?void 0:n.home_team.team_id)+".png":"https://az755631.vo.msecnd.net/teams-150/"+((i=e.data)==null?void 0:i.home_team)+".png",alt:"team-img"},null,10,Py),t.createElementVNode("img",{class:t.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/"+((s=e.data)==null?void 0:s.visiting_team)+".png",alt:"team-img"},null,10,Ly),t.createElementVNode("div",Dy,[t.createElementVNode("div",{class:t.normalizeClass(["coming-match__date",{small:e.small}])},t.toDisplayString(e.data.matchday_abbreviation.replace("M","J")),3),t.createElementVNode("div",My,[t.createElementVNode("div",{class:t.normalizeClass(["coming-match__team",{small:e.small}])},[t.createElementVNode("img",{class:t.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/"+((p=e.data)==null?void 0:p.home_team)+".png",alt:"team-img"},null,10,jy),t.createElementVNode("div",{class:t.normalizeClass(["coming-match__acronym",{small:e.small}])},t.toDisplayString((c=e.data)==null?void 0:c.home_team_name),3)],2),t.createElementVNode("div",vy,[t.createElementVNode("div",Wy,[e.data.game_status==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString((d=e.data)==null?void 0:d.score[0])+" - "+t.toDisplayString((u=e.data)==null?void 0:u.score[1]),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString((m=e.data)==null?void 0:m.schedule.replace(":00","")),1)],64))]),Uy]),t.createElementVNode("div",{class:t.normalizeClass(["coming-match__team",{small:e.small}])},[t.createElementVNode("div",{class:t.normalizeClass(["coming-match__acronym",{small:e.small}])},t.toDisplayString((f=e.data)==null?void 0:f.visiting_team_name),3),t.createElementVNode("img",{class:t.normalizeClass(["coming-match__img",{small:e.small}]),src:typeof e.data.visiting_team=="object"?"https://az755631.vo.msecnd.net/teams-80/"+((h=e.data)==null?void 0:h.visiting_team.team_id)+".png":"https://az755631.vo.msecnd.net/teams-80/"+((g=e.data)==null?void 0:g.visiting_team)+".png",alt:"team-img"},null,10,Hy)],2)])]),t.createElementVNode("div",{class:t.normalizeClass(["coming-match__button",{small:e.small}]),onClick:o[0]||(o[0]=y=>a.$emit("clickMatch"))},"Analizar partido →",2)],2)}}},[["__scopeId","data-v-4c9c0afe"]]),Gy=e=>(t.pushScopeId("data-v-90640930"),e=e(),t.popScopeId(),e),qy=["src"],Jy=["src"],Zy={class:"coming-match__body"},Xy={class:"coming-match__data"},Ky=["src"],Yy={style:{"margin-top":"16px"}},Qy={class:"coming-match__time"},e1=Gy(()=>t.createElementVNode("div",{class:"coming-match__cst"},"CST",-1)),t1=["src"],_i=ie({__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(a,o)=>{var n,i,r,s,l,p,c,d,u,m,f,h,g;return t.openBlock(),t.createElementBlock("section",{class:t.normalizeClass(["coming-match",{small:e.small}])},[t.createElementVNode("img",{class:t.normalizeClass(["coming-match__bg",{small:e.small}]),src:typeof e.data.home_team=="object"?"https://az755631.vo.msecnd.net/teams-80/"+((n=e.data)==null?void 0:n.home_team.team_id)+".png":"https://az755631.vo.msecnd.net/teams-80/"+((i=e.data)==null?void 0:i.home_team)+".png",alt:"team-img"},null,10,qy),t.createElementVNode("img",{class:t.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/"+((s=e.data)==null?void 0:s.visiting_team)+".png",alt:"team-img"},null,10,Jy),t.createElementVNode("div",Zy,[t.createElementVNode("div",{class:t.normalizeClass(["coming-match__date",{small:e.small}])},t.toDisplayString(e.data.matchday_abbreviation.replace("M","J")),3),t.createElementVNode("div",Xy,[t.createElementVNode("div",{class:t.normalizeClass(["coming-match__team",{small:e.small}])},[t.createElementVNode("img",{class:t.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/"+((p=e.data)==null?void 0:p.home_team)+".png",alt:"team-img"},null,10,Ky),t.createElementVNode("div",{class:t.normalizeClass(["coming-match__acronym",{small:e.small}])},t.toDisplayString((c=e.data)==null?void 0:c.home_team_name),3)],2),t.createElementVNode("div",Yy,[t.createElementVNode("div",Qy,[e.data.game_status==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString((d=e.data)==null?void 0:d.score[0])+" - "+t.toDisplayString((u=e.data)==null?void 0:u.score[1]),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString((m=e.data)==null?void 0:m.schedule.replace(":00","")),1)],64))]),e1]),t.createElementVNode("div",{class:t.normalizeClass(["coming-match__team",{small:e.small}])},[t.createElementVNode("div",{class:t.normalizeClass(["coming-match__acronym",{small:e.small}])},t.toDisplayString((f=e.data)==null?void 0:f.visiting_team_name),3),t.createElementVNode("img",{class:t.normalizeClass(["coming-match__img",{small:e.small}]),src:typeof e.data.visiting_team=="object"?"https://az755631.vo.msecnd.net/teams-80/"+((h=e.data)==null?void 0:h.visiting_team.team_id)+".png":"https://az755631.vo.msecnd.net/teams-80/"+((g=e.data)==null?void 0:g.visiting_team)+".png",alt:"team-img"},null,10,t1)],2)])]),t.createElementVNode("div",{class:t.normalizeClass(["coming-match__button",{small:e.small}]),onClick:o[0]||(o[0]=y=>a.$emit("clickMatch"))},"Analizar partido →",2)],2)}}},[["__scopeId","data-v-90640930"]]),o1=e=>(t.pushScopeId("data-v-0c45a1f6"),e=e(),t.popScopeId(),e),a1={class:"quadrant-matches"},n1={class:"quadrant-matches__header"},r1={class:"quadrant-matches__title"},i1=o1(()=>t.createElementVNode("span",null," →",-1)),s1={key:0,class:"quadrant-matches__body"},l1={class:"quadrant-matches__body",style:{"column-gap":"16px"}},c1={class:"quadrant-matches__body matches"},d1={key:0,class:"quadrant-matches__body"},m1={class:"quadrant-matches__body",style:{"column-gap":"16px"}},p1=ie({__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 a=e;t.computed(()=>a.comingMatches[0]||{}),t.computed(()=>a.previousMatches[0]||{});const o=t.toRef(a,"componentWidth"),n=t.computed(()=>o.value<768);return(i,r)=>(t.openBlock(),t.createElementBlock("section",a1,[t.createElementVNode("div",n1,[t.createElementVNode("h2",r1,t.toDisplayString(e.isFull?"Partidos":"Mis partidos"),1),t.createElementVNode("button",{class:"quadrant-matches__button",onClick:r[0]||(r[0]=s=>i.$emit("clickCalendar"))},[t.createElementVNode("span",null,t.toDisplayString(e.isFull?"Calendario completo":"Mi calendario completo"),1),i1])]),e.isFull?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[e.data.length>1?(t.openBlock(),t.createBlock(t.unref(nt),{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:t.withCtx(()=>[t.createElementVNode("div",c1,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.data,(s,l)=>(t.openBlock(),t.createBlock(_a,{key:l,data:s,small:"",onClickMatch:p=>i.$emit("clickMatch",s)},null,8,["data","onClickMatch"]))),128))])]),_:1})):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[n.value?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[Object.keys(e.data).length>0?(t.openBlock(),t.createBlock(t.unref(nt),{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:t.withCtx(()=>[t.createElementVNode("div",m1,[e.data[0].game_status==4?(t.openBlock(),t.createBlock(_i,{key:0,data:e.data[0],onClickMatch:r[9]||(r[9]=s=>i.$emit("clickMatch",e.data[0]))},null,8,["data"])):t.createCommentVNode("",!0),e.data[0].game_status!=4?(t.openBlock(),t.createBlock(wi,{key:1,data:e.data[0],onClickMatch:r[10]||(r[10]=s=>i.$emit("clickMatch",e.data[0]))},null,8,["data"])):t.createCommentVNode("",!0)])]),_:1})):t.createCommentVNode("",!0)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[Object.keys(e.data).length>0?(t.openBlock(),t.createElementBlock("div",d1,[e.data[0].game_status==4?(t.openBlock(),t.createBlock(_i,{key:0,data:e.data[0],onClickMatch:r[7]||(r[7]=s=>i.$emit("clickMatch",e.data[0]))},null,8,["data"])):t.createCommentVNode("",!0),e.data[0].game_status!=4?(t.openBlock(),t.createBlock(wi,{key:1,data:e.data[0],onClickMatch:r[8]||(r[8]=s=>i.$emit("clickMatch",e.data[0]))},null,8,["data"])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)],64))],64))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[n.value?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[Object.keys(e.data).length>0?(t.openBlock(),t.createBlock(t.unref(nt),{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:t.withCtx(()=>[t.createElementVNode("div",l1,[t.createVNode(_a,{small:"",data:e.data.data.prematch,onClickMatch:r[4]||(r[4]=s=>i.$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?(t.openBlock(),t.createBlock(Jt,{key:0,data:e.data.data.postmatch,onClickMatch:r[5]||(r[5]=s=>i.$emit("clickMatch",e.data.data.postmatch))},null,8,["data"])):(t.openBlock(),t.createBlock(Jt,{key:1,"info-type":"prematch",data:e.data.data.postmatch,onClickMatch:r[6]||(r[6]=s=>i.$emit("clickMatch",e.data.data.postmatch))},null,8,["data"]))])]),_:1})):t.createCommentVNode("",!0)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[Object.keys(e.data).length>0?(t.openBlock(),t.createElementBlock("div",s1,[t.createVNode(_a,{data:e.data.data.prematch,onClickMatch:r[1]||(r[1]=s=>i.$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?(t.openBlock(),t.createBlock(Jt,{key:0,data:e.data.data.postmatch,onClickMatch:r[2]||(r[2]=s=>i.$emit("clickMatch",e.data.data.postmatch))},null,8,["data"])):(t.openBlock(),t.createBlock(Jt,{key:1,"info-type":"prematch",data:e.data.data.postmatch,onClickMatch:r[3]||(r[3]=s=>i.$emit("clickMatch",e.data.data.postmatch))},null,8,["data"]))])):t.createCommentVNode("",!0)],64))],64))]))}},[["__scopeId","data-v-0c45a1f6"]]),u1={__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(a,o)=>(t.openBlock(),t.createElementBlock("main",null,[t.createVNode(p1,{data:e.data,"component-width":e.componentWidth,"is-full":e.isFull,onClickCalendar:o[0]||(o[0]=n=>a.$emit("clickCalendar")),onClickMatch:o[1]||(o[1]=n=>a.$emit("clickMatch",n)),"has-team":!e.isplayer},null,8,["data","component-width","is-full","has-team"])]))}},h1="_toniKroos_1mxz1_35",f1="_centralMidfielder_1mxz1_55",g1="_icnPlayIcon_1mxz1_75",y1="_verVideos_1mxz1_89",b1="_btnVideosOptions_1mxz1_109",w1="_btnVideosOptionsTeams_1mxz1_139",_1="_info_1mxz1_179",S1="_goalUnlock_1mxz1_203",k1="_teamsAmerica_1mxz1_229",C1="_imageIcon_1mxz1_249",B1="_imageIconTeam_1mxz1_271",E1="_playerTops_1mxz1_295",N1={toniKroos:h1,centralMidfielder:f1,icnPlayIcon:g1,verVideos:y1,btnVideosOptions:b1,btnVideosOptionsTeams:w1,info:_1,goalUnlock:S1,teamsAmerica:k1,imageIcon:C1,imageIconTeam:B1,playerTops:E1},x1=(e,a)=>{const o=e.__vccOpts||e;for(const[n,i]of a)o[n]=i;return o},T1={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:"80px"},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},isPlayer:{type:Boolean,default:!0},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))}}},O1=["src"],V1=["src"],$1=["src"];function A1(e,a,o,n,i,r){return t.openBlock(),t.createElementBlock("section",{class:t.normalizeClass(e.$style.playerTops),style:t.normalizeStyle(r.customMosaic),id:"player-mosaico",onClick:a[1]||(a[1]=s=>r.onPlayerTopsClick(o.data.player_id))},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.info)},[t.createElementVNode("h3",{class:t.normalizeClass(e.$style.toniKroos),style:t.normalizeStyle(r.customNamePlayer)},t.toDisplayString(o.data.player_name),7),o.showPositionPlayer?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.centralMidfielder),style:t.normalizeStyle(r.customNamePosition)},t.toDisplayString(o.data.player_position),7)):t.createCommentVNode("",!0),t.createElementVNode("button",{class:t.normalizeClass(this.isPlayer?e.$style.btnVideosOptions:e.$style.btnVideosOptionsTeams),style:t.normalizeStyle(r.customTotalCont),id:"button-actions",onClick:a[0]||(a[0]=s=>r.onButtonVideos(o.data))},[o.showIconVideo?(t.openBlock(),t.createElementBlock("img",{key:0,class:t.normalizeClass(e.$style.icnPlayIcon),src:o.iconPlay},null,10,O1)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.verVideos),style:t.normalizeStyle(r.customTotal)},t.toDisplayString(o.data.player_stat)+" "+t.toDisplayString(o.data.category),7)],6)],2),t.createElementVNode("b",{style:t.normalizeStyle(r.customNumberTop),class:t.normalizeClass(e.$style.goalUnlock)},t.toDisplayString(o.data.top),7),o.showShieldTeam?(t.openBlock(),t.createElementBlock("img",{key:0,class:t.normalizeClass(e.$style.teamsAmerica),style:t.normalizeStyle(r.customShieldTeam),loading:"lazy",src:o.data.team_logo},null,14,V1)):t.createCommentVNode("",!0),t.createElementVNode("img",{style:t.normalizeStyle(r.customPhotoPlayerOrTeam),class:t.normalizeClass(this.isPlayer?e.$style.imageIcon:e.$style.imageIconTeam),loading:"lazy",src:o.data.player_photo},null,14,$1)],6)}const z1={$style:N1},R1=x1(T1,[["render",A1],["__cssModules",z1]]),I1=(e,a)=>{const o=e.__vccOpts||e;for(const[n,i]of a)o[n]=i;return o},Sa={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))}}},Si=()=>{t.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}))},ki=Sa.setup;Sa.setup=ki?(e,a)=>(Si(),ki(e,a)):Si;const F1=e=>(t.pushScopeId("data-v-fb269a1e"),e=e(),t.popScopeId(),e),P1=["src"],L1={key:1,class:"text"},D1=["src"],M1={class:"stats"},j1=F1(()=>t.createElementVNode("img",{class:"iconstats",src:"https://az755631.vo.msecnd.net/todoelfut/playdes.png"},null,-1)),v1={class:"numstats"},W1={class:"leyend"};function U1(e,a,o,n,i,r){return t.openBlock(),t.createElementBlock("div",null,[o.type==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["button",i.status&&o.typeOnOff&&"button-active"]),style:t.normalizeStyle([r.customStyle,i.status&&o.typeOnOff&&r.customActive]),onClick:a[0]||(a[0]=(...s)=>r.btnClick&&r.btnClick(...s))},[o.icon&&o.iconPosition.toLowerCase()==="left"?(t.openBlock(),t.createElementBlock("img",{key:0,class:"icon",style:t.normalizeStyle({width:o.iconSize}),src:o.icon},null,12,P1)):t.createCommentVNode("",!0),o.textValue?(t.openBlock(),t.createElementBlock("div",L1,t.toDisplayString(o.textValue),1)):t.createCommentVNode("",!0),o.icon&&o.iconPosition.toLowerCase()==="right"?(t.openBlock(),t.createElementBlock("img",{key:2,class:"icon",style:t.normalizeStyle({width:o.iconSize}),src:o.icon},null,12,D1)):t.createCommentVNode("",!0)],6)):t.createCommentVNode("",!0),o.type==1?(t.openBlock(),t.createElementBlock("div",{key:1,class:"button-target",onClick:a[1]||(a[1]=(...s)=>r.btnClick&&r.btnClick(...s))},[t.createElementVNode("div",M1,[j1,t.createElementVNode("div",v1,t.toDisplayString(o.textStat),1)]),t.createElementVNode("div",W1,t.toDisplayString(o.textCategory),1)])):t.createCommentVNode("",!0)])}const Ci=I1(Sa,[["render",U1],["__scopeId","data-v-fb269a1e"]]);function H1(e){const a=t.ref({width:0,height:0});function o(){const n=e.value.getBoundingClientRect();a.value.width=n.width,a.value.height=n.height}return t.onMounted(()=>{o(),window.addEventListener("resize",o)}),t.onUnmounted(()=>{window.removeEventListener("resize",o)}),{elementSize:a}}const ka={props:{textOptionLeft:String,valueDefault:{type:String,default:""},textOptionRight:String,hiddenLabels:{type:Boolean,default:!1},width:{type:String,default:"50px"},height:{type:String,default:"32px"},heightCircle:{type:String,default:"24px"},widthCircle:{type:String,default:"24px"},widthIcons:{type:String,default:"22"},borderRadius:{type:String,default:"30px"},borderType:{type:String,default:"solid"},borderWidth:{type:Number,default:1},borderColor:{type:String,default:"#FFFFFF"},fontSize:{type:String,default:"14px"},fontColor:{type:String,default:"#000000"},iconA:{type:String,default:""},iconB:{type:String,default:""},fontFamily:{type:String,default:"Poppins-Light"},backgroundColor:{type:String,default:"#2e3b46"},circleColorSwitch:{type:String,default:"#FFFFFF"}},data(){return{OptionDefault:!1}},watch:{valueDefault:{immediate:!0,handler:async function(e){try{e==this.textOptionLeft&&(this.OptionDefault=!1),e==this.textOptionRight&&(this.OptionDefault=!0)}catch(a){throw new Error(a)}}}},computed:{customStyle(){return{width:this.width,height:this.height,borderRadius:this.borderRadius,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`,backgroundColor:this.backgroundColor,circleColor:this.circleColorSwitch}},customText(){return{color:this.fontColor,fontSize:this.fontSize,fontFamily:`${this.fontFamily} !important`}}},methods:{handleSwitchChange(e){e.target.checked?this.$emit("change",this.textOptionRight):this.$emit("change",this.textOptionLeft)}}},Bi=()=>{t.useCssVars(e=>({"2bf57034":e.backgroundColor,b8f32872:e.widthCircle,23023166:e.heightCircle}))},Ei=ka.setup;ka.setup=Ei?(e,a)=>(Bi(),Ei(e,a)):Bi;const G1={key:0,class:"text-left"},q1=["width","src"],J1=["checked"],Z1=["width","src"],X1={key:3,class:"text-right"};function K1(e,a,o,n,i,r){return t.openBlock(),t.createElementBlock("div",{class:"gsc-switch-radio",style:t.normalizeStyle(r.customText)},[o.textOptionLeft!=""&&!o.hiddenLabels?(t.openBlock(),t.createElementBlock("span",G1,t.toDisplayString(o.textOptionLeft),1)):t.createCommentVNode("",!0),o.iconA!=""?(t.openBlock(),t.createElementBlock("img",{key:1,width:o.widthIcons,src:o.iconA},null,8,q1)):t.createCommentVNode("",!0),t.createElementVNode("input",{type:"checkbox",id:"toggle-btn",onChange:a[0]||(a[0]=(...s)=>r.handleSwitchChange&&r.handleSwitchChange(...s)),checked:i.OptionDefault},null,40,J1),t.createElementVNode("label",{for:"toggle-btn",style:t.normalizeStyle([r.customStyle,{"--circle-color":o.circleColorSwitch}])},null,4),o.iconB!=""?(t.openBlock(),t.createElementBlock("img",{key:2,width:o.widthIcons,src:o.iconB},null,8,Z1)):t.createCommentVNode("",!0),o.textOptionRight!=""&&!o.hiddenLabels?(t.openBlock(),t.createElementBlock("span",X1,t.toDisplayString(o.textOptionRight),1)):t.createCommentVNode("",!0)],4)}const Ca={components:{GSCSlider:nt,GSCMosaicthebest:R1,GscSwitchComponent:Yo,GSCButton:Ci,GSCRadioToggle:ie(ka,[["render",K1],["__scopeId","data-v-c2ae0cf9"]])},setup(){const e=t.ref("myDivRef"),{elementSize:a}=H1(e);return{myDivRef:e,elementSize:a}},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"},tournament:{type:Number,default:1},season:{type:Number,default:1772},teamId:{type:Number,default:0}},watch:{async season(e,a){const o=this.categorySelected!==null?this.categorySelected:1;this.showSwitch||(this.filterSelected=1),await this.getCategoryStats(e,this.filterSelected,o)}},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,filterSelected:1,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:{formatPlayerName(e){var n;const a=e.split(",");let o="";if(a[1]&&(o=`${a[1].trim()[0]}.`,a[0])){const i=(n=a[0])==null?void 0:n.trim().split(" ");for(let r of i)if(o=`${o} ${r.trim()}`,r.trim().length>3)break}return o},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 a=this.translateTopCategories(this.categorySelected),o=2,n=3;let i=[],r=0,s=0;this.isTeam?(r=e.player_id,s=n):(i=[e.player_id],s=o);const l={seasonId:this.season,tournaments:[],isFeaturedPlayers:!1,mainSectionType:1,playListType:s,gameIds:null,playerIds:i,goalkeeperIds:[],categoryIds:a,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){const a=this.categorySelected!==null?this.categorySelected:1;e==="Mi equipo"&&(this.filterSelected=0,await this.getCategoryStats(this.season,0,a)),e==="Liga MX"&&(this.filterSelected=1,await this.getCategoryStats(this.season,1,a))},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 a=this.categories.find(o=>o.name===e);this.categorySelected=a.id},async getCategoryStats(e,a,o=0){try{let r={},s={},l=[];const p=Tt.create({headers:{Authorization:`${this.token}`}});var n={};if(a==0&&(n=await p.get(this.url+this.season+"/teams/"+this.teamId)),a==1&&(n=await p.get(this.url+e)),n&&n.data){n.data.teams.map(c=>{r[c[0]]={},r[c[0]].id=c[0],r[c[0]].name=c[1],r[c[0]].img=c[3],r[c[0]].abrv=c[2],r[c[0]].logo=c[3]}),n.data.players.map(c=>{s[c[0]]={},s[c[0]].id=c[0],s[c[0]].name=c[1],s[c[0]].img=c[2],s[c[0]].position=c[6],s[c[0]].logo="https://az755631.vo.msecnd.net/teams-80/"+c[10][0].team_id+".png"});var i=1;n.data.tops.map(c=>{l[c.category?c.category:i]={};var d={},u={};c.teams.map(h=>{d[h[0]]={},d[h[0]].total=h[1],d[h[0]].id=r[h[0]].id,d[h[0]].name=r[h[0]].name,d[h[0]].img="https://az755631.vo.msecnd.net/teams-150/"+h[0]+".png",d[h[0]].logo="https://az755631.vo.msecnd.net/teams-80/"+h[0]+".png"}),c.players.map(h=>{u[h[0]]={},u[h[0]].total=h[1],u[h[0]].name=s[h[0]].name,u[h[0]].img=s[h[0]].img.replace("players-profile/","players-profile/"),u[h[0]].id=s[h[0]].id,u[h[0]].position=this.positions[s[h[0]].position-1].name,u[h[0]].logo=s[h[0]].logo});var m=[],f=[];for(const h in d)m.push(d[h]);for(const h in u)f.push(u[h]);m.sort((h,g)=>h.total<g.total?1:-1),f.sort((h,g)=>h.total<g.total?1:-1),l[c.category?c.category:i].top__players=f,l[c.category?c.category:i].top__teams=m,i++})}o===0?this.categorySelected=1:this.categorySelected=o,this.categoryData=l}catch(r){return Promise.reject(r)}}}},Ni=()=>{t.useCssVars(e=>({"6feb151d":e.backgroundColor,a8549d6a:e.fontFamily,"7fcd83a8":e.fontSize,"7904009c":e.fontColor,"156aea90":e.marginMosaic}))},xi=Ca.setup;Ca.setup=xi?(e,a)=>(Ni(),xi(e,a)):Ni;const Y1=e=>(t.pushScopeId("data-v-536978ff"),e=e(),t.popScopeId(),e),Q1={class:"gsc-best",ref:"myDivRef"},e2={class:"gsc-best__line-bar-tools"},t2={key:0,class:"gsc-best__line-bar-tools__title"},o2=Y1(()=>t.createElementVNode("span",null,"Los mejores ",-1)),a2={key:1,class:"gsc-best__line-bar-tools__titlefull"},n2={class:"unit-items"},r2={key:2,class:"gsc-best__line-bar-tools__tools"},i2={key:0,class:"gsc-best__line-bar-tools__tools__tabs"},s2={class:"gsc-best__line-bar-tools__tools__btn"},l2={key:0,class:"gsc-best__line-bar-tools-movil"},c2={class:"gsc-best__line-bar-tools-movil__tabs"},d2={class:"gsc-best__categories"},m2={class:"gsc-best__players"};function p2(e,a,o,n,i,r){const s=t.resolveComponent("GSCRadioToggle"),l=t.resolveComponent("GSCButton"),p=t.resolveComponent("GscSwitchComponent"),c=t.resolveComponent("GSCMosaicthebest"),d=t.resolveComponent("GSCSlider");return t.openBlock(),t.createElementBlock("div",Q1,[t.createElementVNode("div",e2,[n.elementSize.width>900?(t.openBlock(),t.createElementBlock("div",t2,[o2,e.optionSelected!=="Equipos"&&o.showSwitch?(t.openBlock(),t.createBlock(s,{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/"+o.teamId+".png",iconB:"https://az755631.vo.msecnd.net/todoelfut/1.png",textOptionLeft:"Mi equipo",textOptionRight:"Liga MX",onChange:r.ChangeRadio},null,8,["iconA","onChange"])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),n.elementSize.width<=900?(t.openBlock(),t.createElementBlock("div",a2,[t.createElementVNode("span",{style:t.normalizeStyle(n.elementSize.width<=380?"font-size: 15px; margin-top:0px; width:60px;":"")},"Los mejores ",4),t.createElementVNode("span",n2,[e.optionSelected!=="Equipos"&&o.showSwitch?(t.openBlock(),t.createBlock(s,{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/"+o.teamId+".png",iconB:"https://az755631.vo.msecnd.net/todoelfut/1.png",textOptionLeft:"Mi equipo",textOptionRight:"Liga MX",onChange:r.ChangeRadio},null,8,["iconA","onChange"])):t.createCommentVNode("",!0),t.createVNode(l,{style:{"margin-top":"4px"},width:"75px","text-value":"Ver más","font-color":n.elementSize.width<=680?"rgba(255,255,255, 0.7)":"#fff","font-size":n.elementSize.width<=680?"11px":"14px","text-decoration":"underline",onClick:r.clickMore},null,8,["font-color","font-size","onClick"])])])):t.createCommentVNode("",!0),n.elementSize.width>900?(t.openBlock(),t.createElementBlock("div",r2,[n.elementSize.width>900?(t.openBlock(),t.createElementBlock("div",i2,[t.createVNode(p,{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-Light",onInput:r.changeType,arrowsScrollHide:!1,arrowsPosition:"absolute"},null,8,["selected-option","onInput"])])):t.createCommentVNode("",!0),t.createElementVNode("div",s2,[t.createVNode(l,{width:"75px","text-value":"Ver más","font-size":"14px","text-decoration":"underline",onClick:r.clickMore},null,8,["onClick"]),t.createVNode(l,{width:"10px","text-value":"→","font-size":"14px","font-color":"#cbee6b",onClick:r.clickMore},null,8,["onClick"])])])):t.createCommentVNode("",!0)]),n.elementSize.width<=900?(t.openBlock(),t.createElementBlock("div",l2,[t.createElementVNode("div",c2,[t.createVNode(p,{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-Light",onInput:r.changeType},null,8,["selected-option","onInput"])])])):t.createCommentVNode("",!0),t.createElementVNode("div",d2,[t.createVNode(p,{type:2,arrow:!0,"font-family":"Poppins-Light",buttons:e.categoriesDefault,height:"40px","selected-option":"Goles","font-size":n.elementSize.width<=900?"12px":"14px",width:"max-content",onInput:r.changeCategory,pxScroll:200,scrollColor:"none",arrowsScrollHide:!1,arrowsMargin:0,borderWidth:"2px"},null,8,["buttons","font-size","onInput"])]),t.createElementVNode("div",m2,[t.createVNode(d,{pxScroll:198,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:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r.topData,(u,m)=>(t.openBlock(),t.createElementBlock("div",{key:m,class:t.normalizeClass(["gsc-best__players__item",m==0?"margin-none":""])},[t.createVNode(c,{data:{player_id:u.id,player_name:this.isTeam?u.name:r.formatPlayerName(u.name),player_position:u.position,player_stat:u.total,category:"Total",top:m<9?"0"+(m+1):m+1,team_logo:u.logo,player_photo:u.img},"show-shield-team":!0,"active-videos":!0,onClickMosaic:r.clickMosaic,onOpenmedia:r.onOpenMedia,namePlayerFontSize:"13px",namePositionFontSize:"10px",numbertopLeft:"-15px",numberFontFamily:"Oswald-SemiBold",totalFontSize:"12px",totalFont:"Poppins-Light!important",totalHeight:"21px","is-player":!this.isTeam},null,8,["data","onClickMosaic","onOpenmedia","is-player"])],2))),128))]),_:1})])],512)}const u2=ie(Ca,[["render",p2],["__scopeId","data-v-536978ff"]]),h2={PO1:"CFI",PO2:"CFV",PO3:"SFI",PO4:"SFV",PO5:"FI",PO6:"FV"},f2={DF:"Dieciseisavos",OF:"Octavos",CF:"Cuartos",SF:"Semifinales","3ER":"Tercer lugar",FINAL:"Final"},g2={4:"Octavos",5:"Cuartos",6:"Semifinales",7:"Final"},y2=(e,a)=>{const o=e.__vccOpts||e;for(const[n,i]of a)o[n]=i;return o},Ba={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))}}},Ti=()=>{t.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}))},Oi=Ba.setup;Ba.setup=Oi?(e,a)=>(Ti(),Oi(e,a)):Ti;const b2=e=>(t.pushScopeId("data-v-fb269a1e"),e=e(),t.popScopeId(),e),w2=["src"],_2={key:1,class:"text"},S2=["src"],k2={class:"stats"},C2=b2(()=>t.createElementVNode("img",{class:"iconstats",src:"https://az755631.vo.msecnd.net/todoelfut/playdes.png"},null,-1)),B2={class:"numstats"},E2={class:"leyend"};function N2(e,a,o,n,i,r){return t.openBlock(),t.createElementBlock("div",null,[o.type==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["button",i.status&&o.typeOnOff&&"button-active"]),style:t.normalizeStyle([r.customStyle,i.status&&o.typeOnOff&&r.customActive]),onClick:a[0]||(a[0]=(...s)=>r.btnClick&&r.btnClick(...s))},[o.icon&&o.iconPosition.toLowerCase()==="left"?(t.openBlock(),t.createElementBlock("img",{key:0,class:"icon",style:t.normalizeStyle({width:o.iconSize}),src:o.icon},null,12,w2)):t.createCommentVNode("",!0),o.textValue?(t.openBlock(),t.createElementBlock("div",_2,t.toDisplayString(o.textValue),1)):t.createCommentVNode("",!0),o.icon&&o.iconPosition.toLowerCase()==="right"?(t.openBlock(),t.createElementBlock("img",{key:2,class:"icon",style:t.normalizeStyle({width:o.iconSize}),src:o.icon},null,12,S2)):t.createCommentVNode("",!0)],6)):t.createCommentVNode("",!0),o.type==1?(t.openBlock(),t.createElementBlock("div",{key:1,class:"button-target",onClick:a[1]||(a[1]=(...s)=>r.btnClick&&r.btnClick(...s))},[t.createElementVNode("div",k2,[C2,t.createElementVNode("div",B2,t.toDisplayString(o.textStat),1)]),t.createElementVNode("div",E2,t.toDisplayString(o.textCategory),1)])):t.createCommentVNode("",!0)])}const x2=y2(Ba,[["render",N2],["__scopeId","data-v-fb269a1e"]]),T2={class:"gsc-dropdown__main-container__item-selected"},O2=["height","width"],V2=["stroke"],$2={class:"gsc-dropdown__items-container"},A2=["onClick"],z2={key:0,class:"gsc-dropdown__items-footer"},R2={__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(a=>a 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:a}){const o=e,n=t.ref({}),i=t.ref(null),r=t.ref(o.isMultipleOption?-1:0),s=t.ref(!1);t.watch(()=>o.items,(f,h)=>{if(!o.modelValue&&(!o.onlyFirstTime||!h||!h.length)&&f&&f.length){if(o.defaultItemByProp){const g=o.items.findIndex(y=>y[o.defaultItemByProp.propName]===o.defaultItemByProp.value);g!==-1?(r.value=g,n.value=f[g]):(r.value=0,n.value=f[0])}else n.value=f[o.defaultItemByIndex];a("input",n.value)}},{immediate:!0}),t.watch(()=>o.modelValue,f=>{if(f){const h=o.items.findIndex(g=>typeof f=="object"?JSON.stringify(g)===JSON.stringify(f):g===f);h!==-1&&(r.value=h,n.value=o.items[h],a("update:modelValue",n.value))}},{immediate:!0});const l=t.computed(()=>({height:o.height,width:o.width,backgroundColor:o.backgroundColor,borderRadius:`${o.borderRadius}px`,border:`${o.borderType} ${o.borderWidth}px ${o.borderColor}`,color:o.color,"--hover-background-color":o.hoverBackgroundColor,"--list-item-padding":o.listItemPadding,"--list-background-color":o.listBackgroundColor,"--list-height":o.listHeight,"--list-item-selected-color":o.listItemSelectedColor,"--list-item-selected-background-color":o.listItemSelectedBackgroundColor,"--list-item-color":o.listItemColor,"--list-border-radius":`${o.listBorderRadius}`,"--list-border-color":o.listBorderColor,"--list-width":o.isListSameWidth?o.width:"fit-content","--list-border-width":`${o.listBorderWidth}px`,"--footer-border":`${o.footerBorderWidth}px solid ${o.footerBorderColor}`,"--dropdown-opacity":o.isDisabled?"0.5":"1","--dropdown-cursor":o.isDisabled?"not-allowed":"pointer","--dropdown-font-size":o.fontSize?o.fontSize:"14px"})),p=t.computed(()=>({height:`${o.arrowHeight}px`,width:`${o.arrowWidth}px`}));function c(){o.isDisabled||(s.value=!s.value)}function d(f){i.value&&!i.value.contains(f.target)&&(s.value=!1)}function u(f,h){o.isMultipleOption?r.value=-1:(r.value=h,s.value=!1),n.value=f,a("input",n.value),a("update:modelValue",n.value)}function m(){s.value=!1,a("click-ready")}return t.onMounted(()=>{document.addEventListener("click",d)}),t.onBeforeMount(()=>{document.removeEventListener("click",d)}),(f,h)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"dropDown",ref:i,class:"gsc-dropdown",style:t.normalizeStyle(l.value)},[t.createElementVNode("div",{class:"gsc-dropdown__main-container",style:t.normalizeStyle({"padding-right":`${e.arrowWidth+8}px`}),onClick:c},[t.createElementVNode("div",T2,[t.renderSlot(f.$slots,"default",{selectedItem:n.value})]),t.createElementVNode("div",{class:t.normalizeClass(["gsc-dropdown__main-container__icon",{"rotated-180":s.value}]),style:t.normalizeStyle(p.value)},[(t.openBlock(),t.createElementBlock("svg",{height:e.arrowHeight,width:e.arrowWidth,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.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,V2)],8,O2))],6)],4),t.createVNode(t.Transition,null,{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("div",$2,[t.createElementVNode("div",null,[t.createElementVNode("div",{class:"gsc-dropdown__items",style:t.normalizeStyle({"margin-top":`${o.borderWidth}px`})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(g,y)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["gsc-dropdown__items__item",{selected:y===r.value}]),key:y,onClick:C=>u(g,y)},[t.renderSlot(f.$slots,"availableItem",{item:g})],10,A2))),128))],4),e.isFooterVisible?(t.openBlock(),t.createElementBlock("div",z2,[t.createVNode(t.unref(x2),{"text-value":"Listo","border-color":"#cbee6b","font-size":"12px",width:"72px",height:"22px","border-radius":"62px","border-width":.8,onClick:m})])):t.createCommentVNode("",!0)])],512),[[t.vShow,s.value]])]),_:3})],4))}},I2=(e,a)=>{const o=e.__vccOpts||e;for(const[n,i]of a)o[n]=i;return o},F2={class:"tournament-select__selected-tournament"},P2={class:"tournament-select__selected-tournament__logo"},L2=["src"],D2={class:"tournament-select__selected-tournament__name"},M2={__name:"GSCTournamentSelect",props:{apiUrl:{type:String,default:"https://kefloixzy1.execute-api.us-west-2.amazonaws.com/prod/gs3/tournaments"},fontFamily:{type:String,default:"Poppins-Light"},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(a=>a in e)},currentSeasonId:{type:Number,default:0}},emits:["input"],setup(e,{emit:a}){const o=e,n=t.ref([]),i=t.computed(()=>{const u={};return o.fontFamily&&(u["font-family"]=`${o.fontFamily}`),u}),r=t.computed(()=>n.value.find(u=>u.seasonsIds.has(o.currentSeasonId))||n.value[0]);async function s(){try{if(o.items&&o.items.length)n.value=[...o.items];else if(o.apiUrl){const u=await p();n.value=u.map(m=>({...m.tournament,seasons:m.seasons,seasonsIds:m.seasons.reduce((f,h)=>(f.add(h.id),f),new Set)})).sort((m,f)=>m.order-f.order)}}catch(u){throw new Error(u)}}function l(u){const m=new XMLHttpRequest,f=`${o.logosUrl}${u}.${o.logoFileType}`;return m.open("HEAD",f,!1),m.send(),m.status!==404}async function p(){try{return(await fetch(o.apiUrl)).json()}catch(u){return Promise.reject(u)}}function c(u){a("input",u)}function d(u){a("input",u)}return t.onMounted(()=>{s()}),(u,m)=>(t.openBlock(),t.createElementBlock("div",{class:"tournament-select",style:t.normalizeStyle(i.value)},[t.createVNode(t.unref(R2),t.mergeProps(o,{"model-value":r.value,items:n.value,onInput:c,"onUpdate:modelValue":d}),{default:t.withCtx(({selectedItem:f})=>[t.createElementVNode("div",F2,[t.createElementVNode("div",P2,[l(f.id)?(t.openBlock(),t.createElementBlock("img",{key:0,src:`${o.logosUrl}${f.id}.${o.logoFileType}`,alt:""},null,8,L2)):t.createCommentVNode("",!0)]),t.createElementVNode("div",D2,t.toDisplayString(f.name),1)])]),availableItem:t.withCtx(({item:f})=>[t.createElementVNode("div",null,t.toDisplayString(f.name),1)]),_:1},16,["model-value","items"])],4))}},j2=I2(M2,[["__scopeId","data-v-355af272"]]),v2=(e,a)=>{const o=e.__vccOpts||e;for(const[n,i]of a)o[n]=i;return o},Ea={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))}}},Vi=()=>{t.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}))},$i=Ea.setup;Ea.setup=$i?(e,a)=>(Vi(),$i(e,a)):Vi;const W2=e=>(t.pushScopeId("data-v-fb269a1e"),e=e(),t.popScopeId(),e),U2=["src"],H2={key:1,class:"text"},G2=["src"],q2={class:"stats"},J2=W2(()=>t.createElementVNode("img",{class:"iconstats",src:"https://az755631.vo.msecnd.net/todoelfut/playdes.png"},null,-1)),Z2={class:"numstats"},X2={class:"leyend"};function K2(e,a,o,n,i,r){return t.openBlock(),t.createElementBlock("div",null,[o.type==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["button",i.status&&o.typeOnOff&&"button-active"]),style:t.normalizeStyle([r.customStyle,i.status&&o.typeOnOff&&r.customActive]),onClick:a[0]||(a[0]=(...s)=>r.btnClick&&r.btnClick(...s))},[o.icon&&o.iconPosition.toLowerCase()==="left"?(t.openBlock(),t.createElementBlock("img",{key:0,class:"icon",style:t.normalizeStyle({width:o.iconSize}),src:o.icon},null,12,U2)):t.createCommentVNode("",!0),o.textValue?(t.openBlock(),t.createElementBlock("div",H2,t.toDisplayString(o.textValue),1)):t.createCommentVNode("",!0),o.icon&&o.iconPosition.toLowerCase()==="right"?(t.openBlock(),t.createElementBlock("img",{key:2,class:"icon",style:t.normalizeStyle({width:o.iconSize}),src:o.icon},null,12,G2)):t.createCommentVNode("",!0)],6)):t.createCommentVNode("",!0),o.type==1?(t.openBlock(),t.createElementBlock("div",{key:1,class:"button-target",onClick:a[1]||(a[1]=(...s)=>r.btnClick&&r.btnClick(...s))},[t.createElementVNode("div",q2,[J2,t.createElementVNode("div",Z2,t.toDisplayString(o.textStat),1)]),t.createElementVNode("div",X2,t.toDisplayString(o.textCategory),1)])):t.createCommentVNode("",!0)])}const Y2=v2(Ea,[["render",K2],["__scopeId","data-v-fb269a1e"]]),Q2={class:"gsc-dropdown__main-container__item-selected"},eb=["height","width"],tb=["stroke"],ob={class:"gsc-dropdown__items-container"},ab=["onClick"],nb={key:0,class:"gsc-dropdown__items-footer"},rb={__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(a=>a 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:a}){const o=e,n=t.ref({}),i=t.ref(null),r=t.ref(o.isMultipleOption?-1:0),s=t.ref(!1);t.watch(()=>o.items,(f,h)=>{if(!o.modelValue&&(!o.onlyFirstTime||!h||!h.length)&&f&&f.length){if(o.defaultItemByProp){const g=o.items.findIndex(y=>y[o.defaultItemByProp.propName]===o.defaultItemByProp.value);g!==-1?(r.value=g,n.value=f[g]):(r.value=0,n.value=f[0])}else n.value=f[o.defaultItemByIndex];a("input",n.value)}},{immediate:!0}),t.watch(()=>o.modelValue,f=>{if(f){const h=o.items.findIndex(g=>typeof f=="object"?JSON.stringify(g)===JSON.stringify(f):g===f);h!==-1&&(r.value=h,n.value=o.items[h],a("update:modelValue",n.value))}},{immediate:!0});const l=t.computed(()=>({height:o.height,width:o.width,backgroundColor:o.backgroundColor,borderRadius:`${o.borderRadius}px`,border:`${o.borderType} ${o.borderWidth}px ${o.borderColor}`,color:o.color,"--hover-background-color":o.hoverBackgroundColor,"--list-item-padding":o.listItemPadding,"--list-background-color":o.listBackgroundColor,"--list-height":o.listHeight,"--list-item-selected-color":o.listItemSelectedColor,"--list-item-selected-background-color":o.listItemSelectedBackgroundColor,"--list-item-color":o.listItemColor,"--list-border-radius":`${o.listBorderRadius}`,"--list-border-color":o.listBorderColor,"--list-width":o.isListSameWidth?o.width:"fit-content","--list-border-width":`${o.listBorderWidth}px`,"--footer-border":`${o.footerBorderWidth}px solid ${o.footerBorderColor}`,"--dropdown-opacity":o.isDisabled?"0.5":"1","--dropdown-cursor":o.isDisabled?"not-allowed":"pointer","--dropdown-font-size":o.fontSize?o.fontSize:"14px"})),p=t.computed(()=>({height:`${o.arrowHeight}px`,width:`${o.arrowWidth}px`}));function c(){o.isDisabled||(s.value=!s.value)}function d(f){i.value&&!i.value.contains(f.target)&&(s.value=!1)}function u(f,h){o.isMultipleOption?r.value=-1:(r.value=h,s.value=!1),n.value=f,a("input",n.value),a("update:modelValue",n.value)}function m(){s.value=!1,a("click-ready")}return t.onMounted(()=>{document.addEventListener("click",d)}),t.onBeforeMount(()=>{document.removeEventListener("click",d)}),(f,h)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"dropDown",ref:i,class:"gsc-dropdown",style:t.normalizeStyle(l.value)},[t.createElementVNode("div",{class:"gsc-dropdown__main-container",style:t.normalizeStyle({"padding-right":`${e.arrowWidth+8}px`}),onClick:c},[t.createElementVNode("div",Q2,[t.renderSlot(f.$slots,"default",{selectedItem:n.value})]),t.createElementVNode("div",{class:t.normalizeClass(["gsc-dropdown__main-container__icon",{"rotated-180":s.value}]),style:t.normalizeStyle(p.value)},[(t.openBlock(),t.createElementBlock("svg",{height:e.arrowHeight,width:e.arrowWidth,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.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,tb)],8,eb))],6)],4),t.createVNode(t.Transition,null,{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("div",ob,[t.createElementVNode("div",null,[t.createElementVNode("div",{class:"gsc-dropdown__items",style:t.normalizeStyle({"margin-top":`${o.borderWidth}px`})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(g,y)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["gsc-dropdown__items__item",{selected:y===r.value}]),key:y,onClick:C=>u(g,y)},[t.renderSlot(f.$slots,"availableItem",{item:g})],10,ab))),128))],4),e.isFooterVisible?(t.openBlock(),t.createElementBlock("div",nb,[t.createVNode(t.unref(Y2),{"text-value":"Listo","border-color":"#cbee6b","font-size":"12px",width:"72px",height:"22px","border-radius":"62px","border-width":.8,onClick:m})])):t.createCommentVNode("",!0)])],512),[[t.vShow,s.value]])]),_:3})],4))}},ib=(e,a)=>{const o=e.__vccOpts||e;for(const[n,i]of a)o[n]=i;return o},sb={class:"season-name"},lb={class:"items-list-season"},cb={__name:"GSC-SeasonSelect",props:{seasons:{type:Array,default:()=>[]},currentSeasonId:{type:Number,default:0}},emits:["input"],setup(e,{emit:a}){const o=e,n=t.computed(()=>o.seasons.find(s=>s.id===o.currentSeasonId));function i(s){a("input",s)}function r(s){a("input",s)}return(s,l)=>(t.openBlock(),t.createBlock(t.unref(rb),{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:r,"onUpdate:modelValue":i},{default:t.withCtx(({selectedItem:p})=>[t.createElementVNode("div",sb,[t.createElementVNode("span",null,t.toDisplayString(p.name),1)])]),availableItem:t.withCtx(({item:p})=>[t.createElementVNode("span",lb,t.toDisplayString(p.name),1)]),_:1},8,["items","model-value"]))}},db=ib(cb,[["__scopeId","data-v-3a11087d"]]);function Ai(e,a){return function(){return e.apply(a,arguments)}}const{toString:mb}=Object.prototype,{getPrototypeOf:Na}=Object,Zt=(e=>a=>{const o=mb.call(a);return e[o]||(e[o]=o.slice(8,-1).toLowerCase())})(Object.create(null)),Ne=e=>(e=e.toLowerCase(),a=>Zt(a)===e),Xt=e=>a=>typeof a===e,{isArray:Ke}=Array,ut=Xt("undefined");function pb(e){return e!==null&&!ut(e)&&e.constructor!==null&&!ut(e.constructor)&&me(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const zi=Ne("ArrayBuffer");function ub(e){let a;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?a=ArrayBuffer.isView(e):a=e&&e.buffer&&zi(e.buffer),a}const hb=Xt("string"),me=Xt("function"),Ri=Xt("number"),Kt=e=>e!==null&&typeof e=="object",fb=e=>e===!0||e===!1,Yt=e=>{if(Zt(e)!=="object")return!1;const a=Na(e);return(a===null||a===Object.prototype||Object.getPrototypeOf(a)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},gb=Ne("Date"),yb=Ne("File"),bb=Ne("Blob"),wb=Ne("FileList"),_b=e=>Kt(e)&&me(e.pipe),Sb=e=>{let a;return e&&(typeof FormData=="function"&&e instanceof FormData||me(e.append)&&((a=Zt(e))==="formdata"||a==="object"&&me(e.toString)&&e.toString()==="[object FormData]"))},kb=Ne("URLSearchParams"),Cb=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ht(e,a,{allOwnKeys:o=!1}={}){if(e===null||typeof e>"u")return;let n,i;if(typeof e!="object"&&(e=[e]),Ke(e))for(n=0,i=e.length;n<i;n++)a.call(null,e[n],n,e);else{const r=o?Object.getOwnPropertyNames(e):Object.keys(e),s=r.length;let l;for(n=0;n<s;n++)l=r[n],a.call(null,e[l],l,e)}}function Ii(e,a){a=a.toLowerCase();const o=Object.keys(e);let n=o.length,i;for(;n-- >0;)if(i=o[n],a===i.toLowerCase())return i;return null}const Fi=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Pi=e=>!ut(e)&&e!==Fi;function xa(){const{caseless:e}=Pi(this)&&this||{},a={},o=(n,i)=>{const r=e&&Ii(a,i)||i;Yt(a[r])&&Yt(n)?a[r]=xa(a[r],n):Yt(n)?a[r]=xa({},n):Ke(n)?a[r]=n.slice():a[r]=n};for(let n=0,i=arguments.length;n<i;n++)arguments[n]&&ht(arguments[n],o);return a}const Bb=(e,a,o,{allOwnKeys:n}={})=>(ht(a,(i,r)=>{o&&me(i)?e[r]=Ai(i,o):e[r]=i},{allOwnKeys:n}),e),Eb=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Nb=(e,a,o,n)=>{e.prototype=Object.create(a.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:a.prototype}),o&&Object.assign(e.prototype,o)},xb=(e,a,o,n)=>{let i,r,s;const l={};if(a=a||{},e==null)return a;do{for(i=Object.getOwnPropertyNames(e),r=i.length;r-- >0;)s=i[r],(!n||n(s,e,a))&&!l[s]&&(a[s]=e[s],l[s]=!0);e=o!==!1&&Na(e)}while(e&&(!o||o(e,a))&&e!==Object.prototype);return a},Tb=(e,a,o)=>{e=String(e),(o===void 0||o>e.length)&&(o=e.length),o-=a.length;const n=e.indexOf(a,o);return n!==-1&&n===o},Ob=e=>{if(!e)return null;if(Ke(e))return e;let a=e.length;if(!Ri(a))return null;const o=new Array(a);for(;a-- >0;)o[a]=e[a];return o},Vb=(e=>a=>e&&a instanceof e)(typeof Uint8Array<"u"&&Na(Uint8Array)),$b=(e,a)=>{const o=(e&&e[Symbol.iterator]).call(e);let n;for(;(n=o.next())&&!n.done;){const i=n.value;a.call(e,i[0],i[1])}},Ab=(e,a)=>{let o;const n=[];for(;(o=e.exec(a))!==null;)n.push(o);return n},zb=Ne("HTMLFormElement"),Rb=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(a,o,n){return o.toUpperCase()+n}),Li=(({hasOwnProperty:e})=>(a,o)=>e.call(a,o))(Object.prototype),Ib=Ne("RegExp"),Di=(e,a)=>{const o=Object.getOwnPropertyDescriptors(e),n={};ht(o,(i,r)=>{let s;(s=a(i,r,e))!==!1&&(n[r]=s||i)}),Object.defineProperties(e,n)},Fb=e=>{Di(e,(a,o)=>{if(me(e)&&["arguments","caller","callee"].indexOf(o)!==-1)return!1;const n=e[o];if(me(n)){if(a.enumerable=!1,"writable"in a){a.writable=!1;return}a.set||(a.set=()=>{throw Error("Can not rewrite read-only method '"+o+"'")})}})},Pb=(e,a)=>{const o={},n=i=>{i.forEach(r=>{o[r]=!0})};return Ke(e)?n(e):n(String(e).split(a)),o},Lb=()=>{},Db=(e,a)=>(e=+e,Number.isFinite(e)?e:a),Ta="abcdefghijklmnopqrstuvwxyz",Mi="0123456789",ji={DIGIT:Mi,ALPHA:Ta,ALPHA_DIGIT:Ta+Ta.toUpperCase()+Mi},Mb=(e=16,a=ji.ALPHA_DIGIT)=>{let o="";const{length:n}=a;for(;e--;)o+=a[Math.random()*n|0];return o};function jb(e){return!!(e&&me(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const vb=e=>{const a=new Array(10),o=(n,i)=>{if(Kt(n)){if(a.indexOf(n)>=0)return;if(!("toJSON"in n)){a[i]=n;const r=Ke(n)?[]:{};return ht(n,(s,l)=>{const p=o(s,i+1);!ut(p)&&(r[l]=p)}),a[i]=void 0,r}}return n};return o(e,0)},Wb=Ne("AsyncFunction"),Ub=e=>e&&(Kt(e)||me(e))&&me(e.then)&&me(e.catch),k={isArray:Ke,isArrayBuffer:zi,isBuffer:pb,isFormData:Sb,isArrayBufferView:ub,isString:hb,isNumber:Ri,isBoolean:fb,isObject:Kt,isPlainObject:Yt,isUndefined:ut,isDate:gb,isFile:yb,isBlob:bb,isRegExp:Ib,isFunction:me,isStream:_b,isURLSearchParams:kb,isTypedArray:Vb,isFileList:wb,forEach:ht,merge:xa,extend:Bb,trim:Cb,stripBOM:Eb,inherits:Nb,toFlatObject:xb,kindOf:Zt,kindOfTest:Ne,endsWith:Tb,toArray:Ob,forEachEntry:$b,matchAll:Ab,isHTMLForm:zb,hasOwnProperty:Li,hasOwnProp:Li,reduceDescriptors:Di,freezeMethods:Fb,toObjectSet:Pb,toCamelCase:Rb,noop:Lb,toFiniteNumber:Db,findKey:Ii,global:Fi,isContextDefined:Pi,ALPHABET:ji,generateString:Mb,isSpecCompliantForm:jb,toJSONObject:vb,isAsyncFn:Wb,isThenable:Ub};function M(e,a,o,n,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",a&&(this.code=a),o&&(this.config=o),n&&(this.request=n),i&&(this.response=i)}k.inherits(M,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:k.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const vi=M.prototype,Wi={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Wi[e]={value:e}}),Object.defineProperties(M,Wi),Object.defineProperty(vi,"isAxiosError",{value:!0}),M.from=(e,a,o,n,i,r)=>{const s=Object.create(vi);return k.toFlatObject(e,s,function(l){return l!==Error.prototype},l=>l!=="isAxiosError"),M.call(s,e.message,a,o,n,i),s.cause=e,s.name=e.name,r&&Object.assign(s,r),s};const Hb=null;function Oa(e){return k.isPlainObject(e)||k.isArray(e)}function Ui(e){return k.endsWith(e,"[]")?e.slice(0,-2):e}function Hi(e,a,o){return e?e.concat(a).map(function(n,i){return n=Ui(n),!o&&i?"["+n+"]":n}).join(o?".":""):a}function Gb(e){return k.isArray(e)&&!e.some(Oa)}const qb=k.toFlatObject(k,{},null,function(e){return/^is[A-Z]/.test(e)});function Qt(e,a,o){if(!k.isObject(e))throw new TypeError("target must be an object");a=a||new FormData,o=k.toFlatObject(o,{metaTokens:!0,dots:!1,indexes:!1},!1,function(f,h){return!k.isUndefined(h[f])});const n=o.metaTokens,i=o.visitor||c,r=o.dots,s=o.indexes,l=(o.Blob||typeof Blob<"u"&&Blob)&&k.isSpecCompliantForm(a);if(!k.isFunction(i))throw new TypeError("visitor must be a function");function p(f){if(f===null)return"";if(k.isDate(f))return f.toISOString();if(!l&&k.isBlob(f))throw new M("Blob is not supported. Use a Buffer instead.");return k.isArrayBuffer(f)||k.isTypedArray(f)?l&&typeof Blob=="function"?new Blob([f]):Buffer.from(f):f}function c(f,h,g){let y=f;if(f&&!g&&typeof f=="object"){if(k.endsWith(h,"{}"))h=n?h:h.slice(0,-2),f=JSON.stringify(f);else if(k.isArray(f)&&Gb(f)||(k.isFileList(f)||k.endsWith(h,"[]"))&&(y=k.toArray(f)))return h=Ui(h),y.forEach(function(C,O){!(k.isUndefined(C)||C===null)&&a.append(s===!0?Hi([h],O,r):s===null?h:h+"[]",p(C))}),!1}return Oa(f)?!0:(a.append(Hi(g,h,r),p(f)),!1)}const d=[],u=Object.assign(qb,{defaultVisitor:c,convertValue:p,isVisitable:Oa});function m(f,h){if(!k.isUndefined(f)){if(d.indexOf(f)!==-1)throw Error("Circular reference detected in "+h.join("."));d.push(f),k.forEach(f,function(g,y){(!(k.isUndefined(g)||g===null)&&i.call(a,g,k.isString(y)?y.trim():y,h,u))===!0&&m(g,h?h.concat(y):[y])}),d.pop()}}if(!k.isObject(e))throw new TypeError("data must be an object");return m(e),a}function Gi(e){const a={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(o){return a[o]})}function Va(e,a){this._pairs=[],e&&Qt(e,this,a)}const qi=Va.prototype;qi.append=function(e,a){this._pairs.push([e,a])},qi.toString=function(e){const a=e?function(o){return e.call(this,o,Gi)}:Gi;return this._pairs.map(function(o){return a(o[0])+"="+a(o[1])},"").join("&")};function Jb(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Ji(e,a,o){if(!a)return e;const n=o&&o.encode||Jb,i=o&&o.serialize;let r;if(i?r=i(a,o):r=k.isURLSearchParams(a)?a.toString():new Va(a,o).toString(n),r){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+r}return e}class Zb{constructor(){this.handlers=[]}use(a,o,n){return this.handlers.push({fulfilled:a,rejected:o,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(a){this.handlers[a]&&(this.handlers[a]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(a){k.forEach(this.handlers,function(o){o!==null&&a(o)})}}const Zi=Zb,Xi={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Xb=typeof URLSearchParams<"u"?URLSearchParams:Va,Kb=typeof FormData<"u"?FormData:null,Yb=typeof Blob<"u"?Blob:null,Qb=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),ew=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",xe={isBrowser:!0,classes:{URLSearchParams:Xb,FormData:Kb,Blob:Yb},isStandardBrowserEnv:Qb,isStandardBrowserWebWorkerEnv:ew,protocols:["http","https","file","blob","url","data"]};function tw(e,a){return Qt(e,new xe.classes.URLSearchParams,Object.assign({visitor:function(o,n,i,r){return xe.isNode&&k.isBuffer(o)?(this.append(n,o.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},a))}function ow(e){return k.matchAll(/\w+|\[(\w*)]/g,e).map(a=>a[0]==="[]"?"":a[1]||a[0])}function aw(e){const a={},o=Object.keys(e);let n;const i=o.length;let r;for(n=0;n<i;n++)r=o[n],a[r]=e[r];return a}function Ki(e){function a(o,n,i,r){let s=o[r++];const l=Number.isFinite(+s),p=r>=o.length;return s=!s&&k.isArray(i)?i.length:s,p?(k.hasOwnProp(i,s)?i[s]=[i[s],n]:i[s]=n,!l):((!i[s]||!k.isObject(i[s]))&&(i[s]=[]),a(o,n,i[s],r)&&k.isArray(i[s])&&(i[s]=aw(i[s])),!l)}if(k.isFormData(e)&&k.isFunction(e.entries)){const o={};return k.forEachEntry(e,(n,i)=>{a(ow(n),i,o,0)}),o}return null}function nw(e,a,o){if(k.isString(e))try{return(a||JSON.parse)(e),k.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(o||JSON.stringify)(e)}const $a={transitional:Xi,adapter:["xhr","http"],transformRequest:[function(e,a){const o=a.getContentType()||"",n=o.indexOf("application/json")>-1,i=k.isObject(e);if(i&&k.isHTMLForm(e)&&(e=new FormData(e)),k.isFormData(e))return n&&n?JSON.stringify(Ki(e)):e;if(k.isArrayBuffer(e)||k.isBuffer(e)||k.isStream(e)||k.isFile(e)||k.isBlob(e))return e;if(k.isArrayBufferView(e))return e.buffer;if(k.isURLSearchParams(e))return a.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let r;if(i){if(o.indexOf("application/x-www-form-urlencoded")>-1)return tw(e,this.formSerializer).toString();if((r=k.isFileList(e))||o.indexOf("multipart/form-data")>-1){const s=this.env&&this.env.FormData;return Qt(r?{"files[]":e}:e,s&&new s,this.formSerializer)}}return i||n?(a.setContentType("application/json",!1),nw(e)):e}],transformResponse:[function(e){const a=this.transitional||$a.transitional,o=a&&a.forcedJSONParsing,n=this.responseType==="json";if(e&&k.isString(e)&&(o&&!this.responseType||n)){const i=!(a&&a.silentJSONParsing)&&n;try{return JSON.parse(e)}catch(r){if(i)throw r.name==="SyntaxError"?M.from(r,M.ERR_BAD_RESPONSE,this,null,this.response):r}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:xe.classes.FormData,Blob:xe.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};k.forEach(["delete","get","head","post","put","patch"],e=>{$a.headers[e]={}});const Aa=$a,rw=k.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),iw=e=>{const a={};let o,n,i;return e&&e.split(`
|
|
28
|
+
*/const Z={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"}},pi={itemsToShow:{default:Z.itemsToShow,type:Number},itemsToScroll:{default:Z.itemsToScroll,type:Number},wrapAround:{default:Z.wrapAround,type:Boolean},throttle:{default:Z.throttle,type:Number},snapAlign:{default:Z.snapAlign,validator(e){return["start","end","center","center-even","center-odd"].includes(e)}},transition:{default:Z.transition,type:Number},breakpoints:{default:Z.breakpoints,type:Object},autoplay:{default:Z.autoplay,type:Number},pauseAutoplayOnHover:{default:Z.pauseAutoplayOnHover,type:Boolean},modelValue:{default:void 0,type:Number},mouseDrag:{default:Z.mouseDrag,type:Boolean},touchDrag:{default:Z.touchDrag,type:Boolean},dir:{default:Z.dir,validator(e){return["rtl","ltr"].includes(e)}},i18n:{default:Z.i18n,type:Object},settings:{default(){return{}},type:Object}};function Uf({config:e,slidesCount:a}){const{snapAlign:o,wrapAround:n,itemsToShow:i=1}=e;if(n)return Math.max(a-1,0);let r;switch(o){case"start":r=a-i;break;case"end":r=a-1;break;case"center":case"center-odd":r=a-Math.ceil((i-.5)/2);break;case"center-even":r=a-Math.ceil(i/2);break;default:r=0;break}return Math.max(r,0)}function Hf({config:e,slidesCount:a}){const{wrapAround:o,snapAlign:n,itemsToShow:i=1}=e;let r=0;if(o||i>a)return r;switch(n){case"start":r=0;break;case"end":r=i-1;break;case"center":case"center-odd":r=Math.floor((i-1)/2);break;case"center-even":r=Math.floor((i-2)/2);break;default:r=0;break}return r}function fa({val:e,max:a,min:o}){return a<o?e:Math.min(Math.max(e,o),a)}function Gf({config:e,currentSlide:a,slidesCount:o}){const{snapAlign:n,wrapAround:i,itemsToShow:r=1}=e;let s=a;switch(n){case"center":case"center-odd":s-=(r-1)/2;break;case"center-even":s-=(r-2)/2;break;case"end":s-=r-1;break}return i?s:fa({val:s,max:o-r,min:0})}function ui(e){return e?e.reduce((a,o)=>{var n;return o.type===t.Fragment?[...a,...ui(o.children)]:((n=o.type)===null||n===void 0?void 0:n.name)==="CarouselSlide"?[...a,o]:a},[]):[]}function ga({val:e,max:a,min:o=0}){return e>a?ga({val:e-(a+1),max:a,min:o}):e<o?ga({val:e+(a+1),max:a,min:o}):e}function qf(e,a){let o;return a?function(...n){const i=this;o||(e.apply(i,n),o=!0,setTimeout(()=>o=!1,a))}:e}function Jf(e,a){let o;return function(...n){o&&clearTimeout(o),o=setTimeout(()=>{e(...n),o=null},a)}}function Zf(e="",a={}){return Object.entries(a).reduce((o,[n,i])=>o.replace(`{${n}}`,String(i)),e)}var Xf=t.defineComponent({name:"ARIA",setup(){const e=t.inject("config",t.reactive(Object.assign({},Z))),a=t.inject("currentSlide",t.ref(0)),o=t.inject("slidesCount",t.ref(0));return()=>t.h("div",{class:["carousel__liveregion","carousel__sr-only"],"aria-live":"polite","aria-atomic":"true"},Zf(e.i18n.itemXofY,{currentSlide:a.value+1,slidesCount:o.value}))}}),Kf=t.defineComponent({name:"Carousel",props:pi,setup(e,{slots:a,emit:o,expose:n}){var i;const r=t.ref(null),s=t.ref([]),l=t.ref(0),p=t.ref(0),c=t.reactive(Object.assign({},Z));let d=Object.assign({},Z),u;const m=t.ref((i=e.modelValue)!==null&&i!==void 0?i:0),f=t.ref(0),h=t.ref(0),g=t.ref(0),y=t.ref(0);let C,O;t.provide("config",c),t.provide("slidesCount",p),t.provide("currentSlide",m),t.provide("maxSlide",g),t.provide("minSlide",y),t.provide("slideWidth",l);function W(){u=Object.assign({},e.breakpoints),d=Object.assign(Object.assign(Object.assign({},d),e),{i18n:Object.assign(Object.assign({},d.i18n),e.i18n),breakpoints:void 0}),he(d)}function X(){if(!u||!Object.keys(u).length)return;const b=Object.keys(u).map(B=>Number(B)).sort((B,j)=>+j-+B);let N=Object.assign({},d);b.some(B=>{const j=window.matchMedia(`(min-width: ${B}px)`).matches;return j&&(N=Object.assign(Object.assign({},N),u[B])),j}),he(N)}function he(b){Object.entries(b).forEach(([N,B])=>c[N]=B)}const fe=Jf(()=>{X(),J()},16);function J(){if(!r.value)return;const b=r.value.getBoundingClientRect();l.value=b.width/c.itemsToShow}function ne(){p.value<=0||(h.value=Math.ceil((p.value-1)/2),g.value=Uf({config:c,slidesCount:p.value}),y.value=Hf({config:c,slidesCount:p.value}),c.wrapAround||(m.value=fa({val:m.value,max:g.value,min:y.value})))}t.onMounted(()=>{t.nextTick(()=>J()),setTimeout(()=>J(),1e3),X(),R(),window.addEventListener("resize",fe,{passive:!0}),o("init")}),t.onUnmounted(()=>{O&&clearTimeout(O),C&&clearInterval(C),window.removeEventListener("resize",fe,{passive:!0})});let A=!1;const te={x:0,y:0},oe={x:0,y:0},v=t.reactive({x:0,y:0}),ae=t.ref(!1),se=t.ref(!1),V=()=>{ae.value=!0},x=()=>{ae.value=!1};function T(b){["INPUT","TEXTAREA","SELECT"].includes(b.target.tagName)||(A=b.type==="touchstart",A||b.preventDefault(),!(!A&&b.button!==0||z.value)&&(te.x=A?b.touches[0].clientX:b.clientX,te.y=A?b.touches[0].clientY:b.clientY,document.addEventListener(A?"touchmove":"mousemove",$,!0),document.addEventListener(A?"touchend":"mouseup",E,!0)))}const $=qf(b=>{se.value=!0,oe.x=A?b.touches[0].clientX:b.clientX,oe.y=A?b.touches[0].clientY:b.clientY;const N=oe.x-te.x,B=oe.y-te.y;v.y=B,v.x=N},c.throttle);function E(){const b=c.dir==="rtl"?-1:1,N=Math.sign(v.x)*.4,B=Math.round(v.x/l.value+N)*b;if(B&&!A){const j=ge=>{ge.stopPropagation(),window.removeEventListener("click",j,!0)};window.addEventListener("click",j,!0)}F(m.value-B),v.x=0,v.y=0,se.value=!1,document.removeEventListener(A?"touchmove":"mousemove",$,!0),document.removeEventListener(A?"touchend":"mouseup",E,!0)}function R(){!c.autoplay||c.autoplay<=0||(C=setInterval(()=>{c.pauseAutoplayOnHover&&ae.value||Q()},c.autoplay))}function I(){C&&(clearInterval(C),C=null),R()}const z=t.ref(!1);function F(b){const N=c.wrapAround?b:fa({val:b,max:g.value,min:y.value});m.value===N||z.value||(o("slide-start",{slidingToIndex:b,currentSlideIndex:m.value,prevSlideIndex:f.value,slidesCount:p.value}),z.value=!0,f.value=m.value,m.value=N,O=setTimeout(()=>{if(c.wrapAround){const B=ga({val:N,max:g.value,min:0});B!==m.value&&(m.value=B,o("loop",{currentSlideIndex:m.value,slidingToIndex:b}))}o("update:modelValue",m.value),o("slide-end",{currentSlideIndex:m.value,prevSlideIndex:f.value,slidesCount:p.value}),z.value=!1,I()},c.transition))}function Q(){F(m.value+c.itemsToScroll)}function re(){F(m.value-c.itemsToScroll)}const Fe={slideTo:F,next:Q,prev:re};t.provide("nav",Fe),t.provide("isSliding",z);const Pe=t.computed(()=>Gf({config:c,currentSlide:m.value,slidesCount:p.value}));t.provide("slidesToScroll",Pe);const bt=t.computed(()=>{const b=c.dir==="rtl"?-1:1,N=Pe.value*l.value*b;return{transform:`translateX(${v.x-N}px)`,transition:`${z.value?c.transition:0}ms`,margin:c.wrapAround?`0 -${p.value*l.value}px`:"",width:"100%"}});function Le(){W(),X(),ne(),J(),I()}Object.keys(pi).forEach(b=>{["modelValue"].includes(b)||t.watch(()=>e[b],Le)}),t.watch(()=>e.modelValue,b=>{b!==m.value&&F(Number(b))}),t.watch(p,ne),o("before-init"),W();const De={config:c,slidesCount:p,slideWidth:l,next:Q,prev:re,slideTo:F,currentSlide:m,maxSlide:g,minSlide:y,middleSlide:h};n({updateBreakpointsConfigs:X,updateSlidesData:ne,updateSlideWidth:J,initDefaultConfigs:W,restartCarousel:Le,slideTo:F,next:Q,prev:re,nav:Fe,data:De});const Me=a.default||a.slides,je=a.addons,ve=t.reactive(De);return()=>{const b=ui(Me==null?void 0:Me(ve)),N=(je==null?void 0:je(ve))||[];b.forEach((ye,be)=>ye.props.index=be);let B=b;if(c.wrapAround){const ye=b.map((we,ee)=>t.cloneVNode(we,{index:-b.length+ee,isClone:!0,key:`clone-before-${ee}`})),be=b.map((we,ee)=>t.cloneVNode(we,{index:b.length+ee,isClone:!0,key:`clone-after-${ee}`}));B=[...ye,...b,...be]}s.value=b,p.value=Math.max(b.length,1);const j=t.h("ol",{class:"carousel__track",style:bt.value,onMousedownCapture:c.mouseDrag?T:null,onTouchstartPassiveCapture:c.touchDrag?T:null},B),ge=t.h("div",{class:"carousel__viewport"},j);return t.h("section",{ref:r,class:{carousel:!0,"is-sliding":z.value,"is-dragging":se.value,"is-hover":ae.value,"carousel--rtl":c.dir==="rtl"},dir:c.dir,"aria-label":c.i18n.ariaGallery,tabindex:"0",onMouseenter:V,onMouseleave:x},[ge,N,t.h(Xf)])}}}),ya;(function(e){e.arrowUp="arrowUp",e.arrowDown="arrowDown",e.arrowRight="arrowRight",e.arrowLeft="arrowLeft"})(ya||(ya={}));const Yf={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 Qf(e){return e in ya}const ba=e=>{const a=t.inject("config",t.reactive(Object.assign({},Z))),o=String(e.name),n=`icon${o.charAt(0).toUpperCase()+o.slice(1)}`;if(!o||typeof o!="string"||!Qf(o))return;const i=Yf[o],r=t.h("path",{d:i}),s=a.i18n[n]||e.title||o,l=t.h("title",s);return t.h("svg",{class:"carousel__icon",viewBox:"0 0 24 24",role:"img","aria-label":s},[l,r])};ba.props={name:String,title:String};const eg=(e,{slots:a,attrs:o})=>{const{next:n,prev:i}=a||{},r=t.inject("config",t.reactive(Object.assign({},Z))),s=t.inject("maxSlide",t.ref(1)),l=t.inject("minSlide",t.ref(1)),p=t.inject("currentSlide",t.ref(1)),c=t.inject("nav",{}),{dir:d,wrapAround:u,i18n:m}=r,f=d==="rtl",h=t.h("button",{type:"button",class:["carousel__prev",!u&&p.value<=l.value&&"carousel__prev--disabled",o==null?void 0:o.class],"aria-label":m.ariaPreviousSlide,onClick:c.prev},(i==null?void 0:i())||t.h(ba,{name:f?"arrowRight":"arrowLeft"})),g=t.h("button",{type:"button",class:["carousel__next",!u&&p.value>=s.value&&"carousel__next--disabled",o==null?void 0:o.class],"aria-label":m.ariaNextSlide,onClick:c.next},(n==null?void 0:n())||t.h(ba,{name:f?"arrowLeft":"arrowRight"}));return[h,g]};var tg=t.defineComponent({name:"CarouselSlide",props:{index:{type:Number,default:1},isClone:{type:Boolean,default:!1}},setup(e,{slots:a}){const o=t.inject("config",t.reactive(Object.assign({},Z))),n=t.inject("currentSlide",t.ref(0)),i=t.inject("slidesToScroll",t.ref(0)),r=t.inject("isSliding",t.ref(!1)),s=()=>e.index===n.value,l=()=>e.index===n.value-1,p=()=>e.index===n.value+1,c=()=>{const d=Math.floor(i.value),u=Math.ceil(i.value+o.itemsToShow-1);return e.index>=d&&e.index<=u};return()=>{var d;return t.h("li",{style:{width:`${100/o.itemsToShow}%`},class:{carousel__slide:!0,"carousel__slide--clone":e.isClone,"carousel__slide--visible":c(),"carousel__slide--active":s(),"carousel__slide--prev":l(),"carousel__slide--next":p(),"carousel__slide--sliding":r.value},"aria-hidden":!c()},(d=a.default)===null||d===void 0?void 0:d.call(a))}}});const pe=(e,a)=>{const o=e.__vccOpts||e;for(const[n,i]of a)o[n]=i;return o},og={__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:"'Poppins-Regular', 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:a}){const o=e,n=t.computed(()=>{const l={"background-color":o.backgroundColor,height:o.height};return o.matchDay.key===o.matchDaySelected.key&&(l["border-bottom"]=`solid 1px ${o.bottomLineColor}`,l["background-color"]=o.selectedMatchDayBackgroundColor),o.isLandingMode||(l["border-right"]="solid 1px rgba(255, 255, 255, 0.1)"),l}),i=t.computed(()=>({color:o.numberColor,"font-family":o.numberFontFamily,"font-size":o.numberFontSize})),r=t.computed(()=>({color:o.textColor,"font-family":o.textFontFamily,"font-size":o.textFontSize}));function s(l){a("click-match-day",l)}return(l,p)=>(t.openBlock(),t.createElementBlock("div",{class:"match-day",style:t.normalizeStyle({...n.value}),onClick:p[0]||(p[0]=c=>s(e.matchDay))},[t.createElementVNode("div",{class:"match-day__value",style:t.normalizeStyle(i.value)},t.toDisplayString(e.matchDay.valueText),5),Number.isNaN(e.matchDay.value)?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",{key:0,class:"match-day__text",style:t.normalizeStyle([e.isLandingMode?"margin-top:3px":"margin-top:4px",r.value])},t.toDisplayString(e.isLandingMode||e.componentWidth<=425?"JOR":"JORNADA"),5))],4))}},ag=pe(og,[["__scopeId","data-v-89459353"]]),ng={__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:a}){const o=e;t.useCssVars(c=>({"4882fd4e":r.value,"48852bce":s.value}));const n=t.ref(null),i=t.computed(()=>({itemsToShow:o.itemsToShow,itemsToScroll:o.itemsToScroll,snapAlign:"start"})),r=t.computed(()=>n.value.data.currentSlide.value==0?"none":"inline"),s=t.computed(()=>n.value.data.currentSlide.value==n.value.data.maxSlide.value?"none":"inline"),l=t.ref({});t.watch(()=>o.matchDays,c=>{if(c&&c.length){const d=c.find(u=>u.key===o.defaultMatchDayKey);l.value=d||c[0],a("change-match-day",l.value)}},{immediate:!0});function p(c){l.value=c,a("change-match-day",l.value)}return(c,d)=>(t.openBlock(),t.createElementBlock("div",{class:"match-day-picker",style:t.normalizeStyle(e.isLandingMode?"border-top-left-radius: 9px; border-top-right-radius: 9px;":"margin-bottom:12px")},[t.createVNode(t.unref(Kf),t.mergeProps(i.value,{ref_key:"matchDayPickerCarousel",ref:n}),{addons:t.withCtx(()=>[t.createVNode(t.unref(eg))]),default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.matchDays,u=>(t.openBlock(),t.createBlock(t.unref(tg),{key:u.key},{default:t.withCtx(()=>[t.createVNode(ag,t.mergeProps(o,{"match-day":u,"match-day-selected":l.value,"is-landing-mode":e.isLandingMode,"component-width":e.componentWidth,onClickMatchDay:p}),null,16,["match-day","match-day-selected","is-landing-mode","component-width"])]),_:2},1024))),128))]),_:1},16)],4))}},rg=pe(ng,[["__scopeId","data-v-cdc70f61"]]);function Xe(e,a=80){return`${{}.TEAM_LOGOS_URL||"https://az755631.vo.msecnd.net/teams-"}${a}/${e}.png`}function hi(e){if(typeof e=="string"){let a=e.replace("M","J ");return a=a.replace("PO1","CFI"),a=a.replace("PO2","CFV"),a=a.replace("PO3","SFI"),a=a.replace("PO4","SFV"),a=a.replace("PO5","FI"),a=a.replace("PO6","FV"),a}}function ig(e){let a="";return e.game_status!=4&&(a+="Finalizado"),(e.penalties_score_home_team!=0||e.penalties_score_visiting_team!=0)&&(a+=" - Penales "+e.penalties_score_home_team+" - "+e.penalties_score_visiting_team),a}const sg={class:"game-info__teams"},lg={class:"game-info__teams__team__logo"},cg=["src"],dg={class:"game-info__teams__detail"},mg={key:0,class:"game-info__teams__detail__pre-game"},pg={class:"game-info__teams__team__logo away"},ug=["src"],hg={key:0},fg={key:0},gg={key:1},yg={__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 a=e,o=t.computed(()=>{const c=new Date(a.game.dateTimeMillis),d=c.getHours(),u=c.getMinutes();return`${d<10?`0${d}`:d}:${u<10?`0${u}`:u}`}),n=t.computed(()=>{let c="120px";return(a.isLandingMode||a.isAcronymVisible)&&(c="70px"),{"min-width":c}}),i=t.computed(()=>({"font-size":a.namesFontSize,"font-family":a.namesFontFamily,color:a.colorPrimary})),r=t.computed(()=>({"font-size":a.additionalInfoFontSize,"font-family":a.additionalInfoFontFamily,color:a.colorSecondary})),s=t.computed(()=>({"font-size":a.scoreFontSize,"font-family":a.scoreFontFamily,color:a.colorPrimary})),l=t.computed(()=>({"font-size":a.timeZoneFontSize,"font-family":a.namesFontFamily,color:a.colorPrimary})),p=t.computed(()=>({"font-size":a.timeFontSize,"font-family":a.namesFontFamily,color:a.colorPrimary}));return(c,d)=>(t.openBlock(),t.createElementBlock("div",{class:"game-info",style:t.normalizeStyle(e.isLandingMode?"gap:5px":"")},[t.createElementVNode("div",sg,[t.createElementVNode("div",{class:"game-info__teams__team",style:t.normalizeStyle(n.value)},[t.createElementVNode("div",{class:"game-info__teams__team__name",style:t.normalizeStyle(i.value)},t.toDisplayString(e.isLandingMode||e.isAcronymVisible?e.game.home_team.acronym:e.game.home_team.colloquial_name),5),t.createElementVNode("div",lg,[t.createElementVNode("img",{src:t.unref(Xe)(e.game.home_team.team_id),alt:""},null,8,cg)])],4),t.createElementVNode("div",dg,[e.game.game_status===4&&!e.game.is_live?(t.openBlock(),t.createElementBlock("div",mg,[t.createElementVNode("div",null,[t.createElementVNode("span",{style:t.normalizeStyle(p.value)},t.toDisplayString(o.value),5),t.createTextVNode(),t.createElementVNode("span",{style:t.normalizeStyle(l.value)},"CST",4)])])):(t.openBlock(),t.createElementBlock("div",{key:1,class:"game-info__teams__detail__score",style:t.normalizeStyle(s.value)},[t.createElementVNode("span",null,t.toDisplayString(e.game.score[0])+" - "+t.toDisplayString(e.game.score[1]),1)],4))]),t.createElementVNode("div",{class:"game-info__teams__team away",style:t.normalizeStyle(n.value)},[t.createElementVNode("div",pg,[t.createElementVNode("img",{src:t.unref(Xe)(e.game.visiting_team.team_id),alt:""},null,8,ug)]),t.createElementVNode("div",{class:"game-info__teams__team__name",style:t.normalizeStyle(i.value)},t.toDisplayString(e.isLandingMode||e.isAcronymVisible?e.game.visiting_team.acronym:e.game.visiting_team.colloquial_name),5)],4)]),t.createElementVNode("div",{class:"game-info__status",style:t.normalizeStyle([r.value,e.isLandingMode?"line-height: normal":""])},[e.game.game_status===4&&!e.game.is_live?(t.openBlock(),t.createElementBlock("span",hg,[e.isTelevisionVisible?(t.openBlock(),t.createElementBlock("span",fg,t.toDisplayString(e.game.tv_stations.join(", ")),1)):t.createCommentVNode("",!0)])):(t.openBlock(),t.createElementBlock("span",gg,t.toDisplayString(t.unref(ig)(e.game)),1))],4)],4))}},fi=pe(yg,[["__scopeId","data-v-afb1954b"]]),gi=e=>(t.pushScopeId("data-v-8839c56d"),e=e(),t.popScopeId(),e),bg={class:"game-status"},wg={key:0,class:"game-status__day__live"},_g=gi(()=>t.createElementVNode("span",null,"LIVE",-1)),Sg=gi(()=>t.createElementVNode("span",{class:"dot"},null,-1)),kg=[_g,Sg],Cg={key:0,class:"game-status__round"},Bg={__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 a=e,o=["Ene","Feb","Mar","Abr","May","Jun","Jul","Ago","Sep","Oct","Nov","Dic"],n=t.computed(()=>{let s="";if(a.dateTimeMillis){const l=new Date(a.dateTimeMillis);s=`${l.getDate()} ${o[l.getMonth()]}`}return s}),i=t.computed(()=>({"font-size":a.fontSize})),r=t.computed(()=>{let s=[];return a.isLive?s.push("live"):a.status!==1&&s.push("pre-match"),s});return(s,l)=>(t.openBlock(),t.createElementBlock("div",bg,[t.createElementVNode("div",{class:t.normalizeClass(["game-status__day",r.value]),style:t.normalizeStyle(i.value)},[e.isLive?(t.openBlock(),t.createElementBlock("div",wg,kg)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(n.value),1)],64))],6),e.isRoundMode?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",Cg,t.toDisplayString(e.roundAbbreviation),1))]))}},yi=pe(Bg,[["__scopeId","data-v-8839c56d"]]),ue={SHOW_GAME_EVENTS:"SHOW_GAME_EVENTS",PLAY_GOALS:"PLAY_GOALS",PLAY_RESUME:"PLAY_RESUME",NOTIFICATION:"NOTIFICATION",STATISTICS:"STATISTICS"},Eg=e=>(t.pushScopeId("data-v-0d97b1a8"),e=e(),t.popScopeId(),e),Ng={class:"actions"},xg={class:"actions__row"},Tg=Eg(()=>t.createElementVNode("svg",{width:"10",height:"12",viewBox:"0 0 10 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.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"}),t.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"}),t.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)),Og=[Tg],Vg={width:"6",height:"8",viewBox:"0 0 6 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},$g=["fill"],Ag={width:"13",height:"16",viewBox:"0 0 13 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},zg=["fill"],Rg={__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:a}){const o=e,n=t.computed(()=>({backgroundColor:o.iconBackgroundColor,borderColor:o.iconBorderColor}));function i(r){a("action",r)}return(r,s)=>(t.openBlock(),t.createElementBlock("div",Ng,[t.createElementVNode("div",xg,[t.createElementVNode("div",{class:"actions__button rounded",style:t.normalizeStyle(n.value),onClick:s[0]||(s[0]=l=>i(t.unref(ue).STATISTICS))},Og,4),e.showPlayButton&&e.hasVideo?(t.openBlock(),t.createElementBlock("div",{key:0,class:"actions__button rounded",style:t.normalizeStyle(n.value),onClick:s[1]||(s[1]=l=>i(t.unref(ue).PLAY_RESUME))},[(t.openBlock(),t.createElementBlock("svg",Vg,[t.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:o.iconColor},null,8,$g)]))],4)):t.createCommentVNode("",!0),e.gameStatus===4444&&!e.isLive?(t.openBlock(),t.createElementBlock("div",{key:1,class:"actions__button",onClick:s[2]||(s[2]=l=>i(t.unref(ue).NOTIFICATION))},[(t.openBlock(),t.createElementBlock("svg",Ag,[t.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:o.iconColor},null,8,zg)]))])):t.createCommentVNode("",!0)])]))}},Ig=pe(Rg,[["__scopeId","data-v-0d97b1a8"]]),wa=e=>(t.pushScopeId("data-v-af6919bd"),e=e(),t.popScopeId(),e),Fg={class:"actions"},Pg={width:"13",height:"16",viewBox:"0 0 13 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Lg=["fill"],Dg={width:"6",height:"8",viewBox:"0 0 6 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Mg=["fill"],jg=wa(()=>t.createElementVNode("svg",{width:"10",height:"12",viewBox:"0 0 10 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.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"}),t.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"}),t.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)),vg=[jg],Wg={key:0,class:"actions__videos"},Ug={width:"13",height:"16",viewBox:"0 0 13 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Hg=["fill"],Gg={key:1,class:"actions__videos__thumbnails"},qg=wa(()=>t.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail__goals"},null,-1)),Jg=wa(()=>t.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail__summary"},null,-1)),Zg={height:24,width:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Xg=["stroke"],Kg={__name:"GameActionsFull",props:{gameStatus:{type:Number,default:4},isLive:{type:Boolean,default:!1},hasVideo:{type:Boolean,default:!1},hasActions:{type:Boolean,default:!0},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:a}){const o=e,n=t.computed(()=>({backgroundColor:o.iconBackgroundColor,borderColor:o.iconBorderColor})),i=t.computed(()=>{const p=[];return o.componentWidth<540&&p.push("mobile"),p}),r=t.computed(()=>o.componentWidth>730),s=t.computed(()=>({color:o.thumbnailColor,fontFamily:o.thumbnailFontFamily,fontSize:o.thumbnailFontSize}));function l(p){a("action",p)}return(p,c)=>(t.openBlock(),t.createElementBlock("div",Fg,[t.createElementVNode("div",{class:t.normalizeClass(["actions__buttons",i.value])},[e.gameStatus===4444&&!e.isLive&&!r.value?(t.openBlock(),t.createElementBlock("div",{key:0,class:"actions__button",onClick:c[0]||(c[0]=d=>l(t.unref(ue).NOTIFICATION))},[(t.openBlock(),t.createElementBlock("svg",Pg,[t.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:o.iconColor},null,8,Lg)]))])):t.createCommentVNode("",!0),e.showPlayButton&&e.hasVideo&&!r.value?(t.openBlock(),t.createElementBlock("div",{key:1,class:"actions__button rounded",style:t.normalizeStyle(n.value),onClick:c[1]||(c[1]=d=>l(t.unref(ue).PLAY_RESUME))},[(t.openBlock(),t.createElementBlock("svg",Dg,[t.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:o.iconColor},null,8,Mg)]))],4)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"actions__button rounded",style:t.normalizeStyle(n.value),onClick:c[2]||(c[2]=d=>l(t.unref(ue).STATISTICS))},vg,4)],2),r.value?(t.openBlock(),t.createElementBlock("div",Wg,[e.gameStatus===4444&&!e.isLive?(t.openBlock(),t.createElementBlock("div",{key:0,class:"actions__button",onClick:c[3]||(c[3]=d=>l(t.unref(ue).NOTIFICATION))},[(t.openBlock(),t.createElementBlock("svg",Ug,[t.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:o.iconColor},null,8,Hg)]))])):t.createCommentVNode("",!0),e.showPlayButton&&e.hasVideo?(t.openBlock(),t.createElementBlock("div",Gg,[t.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail",onClick:c[4]||(c[4]=d=>l(t.unref(ue).PLAY_GOALS))},[qg,t.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail__text",style:t.normalizeStyle(s.value)}," Goles ",4)]),t.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail",onClick:c[5]||(c[5]=d=>l(t.unref(ue).PLAY_RESUME))},[Jg,t.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail__text",style:t.normalizeStyle(s.value)}," Resumen ",4)])])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),(e.gameStatus!==4||e.isLive)&&e.hasActions?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(["actions__button expand",{"rotated-180":e.areEventsVisible,mobile:e.componentWidth<540}]),onClick:c[6]||(c[6]=d=>l(t.unref(ue).SHOW_GAME_EVENTS))},[(t.openBlock(),t.createElementBlock("svg",Zg,[t.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,Xg)]))],2)):(t.openBlock(),t.createElementBlock("div",{key:2,class:t.normalizeClass(["actions__button expand",{"rotated-180":!1,mobile:e.componentWidth<540}])},null,2))]))}},Yg=pe(Kg,[["__scopeId","data-v-af6919bd"]]),qt=e=>(t.pushScopeId("data-v-43a88f53"),e=e(),t.popScopeId(),e),Qg={class:"row-landing__game-status"},e0={class:"row-landing__game-actions"},t0={class:"row-full__game-status"},o0={class:"row-full__game-info"},a0={key:0},n0={class:"row-full__game-actions"},r0={class:"game-events-container"},i0=qt(()=>t.createElementVNode("div",{class:"separator"},null,-1)),s0=qt(()=>t.createElementVNode("div",null,null,-1)),l0={class:"game-events__data"},c0={class:"game-events__data__team"},d0=["src"],m0={class:"game-events__data__team__event__text"},p0={class:"game-events__data__team away"},u0={class:"game-events__data__team__event__text"},h0=["src"],f0=qt(()=>t.createElementVNode("div",null,null,-1)),g0=qt(()=>t.createElementVNode("div",null,null,-1)),y0={__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:a}){const o=e,n={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"},i=t.ref(!1),r=t.ref(!1),s=t.computed(()=>{const g={homeTeam:[],awayTeam:[]};return o.game&&o.game.game_status!==4&&!o.game.is_live&&o.game.minutes&&(g.homeTeam.push(...f(o.game.minutes.home_goals_minutes,n.GOAL)),g.homeTeam.push(...f(o.game.minutes.home_red_cards_minutes,n.RED_CARD)),g.homeTeam.push(...f(o.game.minutes.home_yellow_cards_minutes,n.YELLOW_CARD)),g.awayTeam.push(...f(o.game.minutes.visiting_goals_minutes,n.GOAL)),g.awayTeam.push(...f(o.game.minutes.away_red_cards_minutes,n.RED_CARD)),g.awayTeam.push(...f(o.game.minutes.away_yellow_cards_minutes,n.YELLOW_CARD))),g}),l=t.computed(()=>{const g=s.value.homeTeam.length,y=s.value.awayTeam.length;return g+y>0}),p=t.computed(()=>({"background-color":o.backgroundColor})),c=t.computed(()=>({height:o.height})),d=t.computed(()=>{const g={game:[],events:[]};return o.componentWidth<500?(g.events.push("break-point-3"),g.game.push("break-point-2")):o.componentWidth<730?(g.game.push("break-point-2"),g.events.push("break-point-2")):o.componentWidth<910&&(g.game.push("break-point-1"),g.events.push("break-point-1")),g}),u=t.computed(()=>({isLandingMode:o.isLandingMode,game:o.game,colorPrimary:"#fff",colorSecondary:"#fff",namesFontSize:"12px",timeFontSize:"12px",timeZoneFontSize:"8px",scoreFontSize:"13px",namesFontFamily:"sans-serif",scoreFontFamily:"sans-serif",additionalInfoFontFamily:"sans-serif",additionalInfoFontSize:"9px"})),m=t.computed(()=>({"font-size":o.televisionFontSize,"font-family":o.televisionFontFamily,color:o.televisionColor}));t.watch(()=>o.componentWidth,g=>{r.value=g<910});function f(g,y){return g.map(C=>({iconUrl:y,text:C}))}function h(g){g===ue.SHOW_GAME_EVENTS?i.value=!i.value:a("action",{action:g,game:o.game})}return(g,y)=>e.isLandingMode?(t.openBlock(),t.createElementBlock("div",{key:0,class:"row-landing",style:t.normalizeStyle(p.value)},[t.createVNode(fi,{game:e.game,"is-landing-mode":e.isLandingMode},null,8,["game","is-landing-mode"]),t.createElementVNode("div",Qg,[t.createVNode(yi,{status:e.game.game_status,"is-live":!!e.game.is_live,"date-time-millis":e.game.dateTimeMillis,"round-abbreviation":t.unref(hi)(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"])]),t.createElementVNode("div",e0,[t.createVNode(Ig,{"is-live":!!e.game.is_live,"has-video":!!e.game.has_video,"game-status":e.game.game_status,"show-play-button":!0,onAction:h},null,8,["is-live","has-video","game-status"])])],4)):(t.openBlock(),t.createElementBlock("div",{key:1,class:"row-full-container",style:t.normalizeStyle(p.value)},[t.createElementVNode("div",{class:t.normalizeClass(["row-full",d.value.game]),style:t.normalizeStyle(c.value)},[t.createElementVNode("div",t0,[t.createVNode(yi,{status:e.game.game_status,"is-live":!!e.game.is_live,"date-time-millis":e.game.dateTimeMillis,"round-abbreviation":t.unref(hi)(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"])]),t.createElementVNode("div",o0,[t.createVNode(fi,t.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?(t.openBlock(),t.createElementBlock("div",{key:0,class:"row-full__television",style:t.normalizeStyle(m.value)},[!r.value&&(e.game.game_status===4||e.game.is_live)?(t.openBlock(),t.createElementBlock("span",a0,t.toDisplayString(e.game.tv_stations.join(", ")),1)):t.createCommentVNode("",!0)],4)):t.createCommentVNode("",!0),t.createElementVNode("div",n0,[t.createVNode(Yg,{"is-live":!!e.game.is_live,"has-video":!!e.game.has_video,"has-actions":l.value,"game-status":e.game.game_status,"show-play-button":!0,"are-events-visible":i.value,"component-width":e.componentWidth,onAction:h},null,8,["is-live","has-video","has-actions","game-status","are-events-visible","component-width"])])],6),t.createVNode(t.Transition,null,{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("div",r0,[i0,t.createElementVNode("div",{class:t.normalizeClass(["game-events",d.value.events])},[s0,t.createElementVNode("div",l0,[t.createElementVNode("div",c0,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.value.homeTeam,(C,O)=>(t.openBlock(),t.createElementBlock("div",{key:`h${O}`,class:"game-events__data__team__event"},[t.createElementVNode("img",{src:C.iconUrl},null,8,d0),t.createElementVNode("div",m0,t.toDisplayString(C.text),1)]))),128))]),t.createElementVNode("div",p0,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.value.awayTeam,(C,O)=>(t.openBlock(),t.createElementBlock("div",{key:`a${O}`,class:"game-events__data__team__event"},[t.createElementVNode("div",u0,t.toDisplayString(C.text),1),t.createElementVNode("img",{src:C.iconUrl},null,8,h0)]))),128))])]),f0,g0],2)],512),[[t.vShow,i.value]])]),_:1})],4))}},bi=pe(y0,[["__scopeId","data-v-43a88f53"]]),b0={class:"calendar-table"},w0={__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:a}){const o=e;function n(r){return r%2===0?o.evenRowColor:o.oddRowColor}function i(r){a("action",r)}return(r,s)=>(t.openBlock(),t.createElementBlock("div",b0,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.gamesPerPage,(l,p)=>(t.openBlock(),t.createBlock(bi,{key:l.game_id,game:l,"is-landing-mode":e.isLandingMode,height:e.rowHeight,"background-color":n(p),"component-width":e.componentWidth,"is-round-mode":e.isRoundMode,onAction:i},null,8,["game","is-landing-mode","height","background-color","component-width","is-round-mode"]))),128))]))}},_0=pe(w0,[["__scopeId","data-v-47b333f0"]]),S0={class:"calendar-by-team"},k0={class:"playing-as-picker"},C0={class:"calendar-by-team__page"},B0={__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:a}){const o=e,n=t.ref(0),i=t.computed(()=>{let p=[];if(o.gamesPages.size>0){const c=Array.from(o.gamesPages.entries()).reduce((d,[u,m])=>{const f=Number(u),h=Number.isNaN(f)?u:`Jornada ${f<10?"0":""}${f}`,g=m.reduce((y,C)=>(y.push(...C),y),[]).filter(y=>n.value===0||n.value===1&&y.visiting_team.team_id===o.teamId?!0:n.value===2&&y.home_team.team_id===o.teamId);return g.length>0&&d.push({roundName:h,games:g}),d},[]);p.push(c)}return p});function r(p){a("action",p)}function s(p){document.querySelector("#opc0").classList.remove("selected"),document.querySelector("#opc1").classList.remove("selected"),document.querySelector("#opc2").classList.remove("selected"),n.value=p,document.querySelector("#opc"+p).classList.add("selected")}function l(p){let c=p;switch(p){case"PI1":c="Play In 1";break;case"PI2":c="Play In 2";break;case"R1":c="Repechaje";break;case"CFI":c="Cuartos de final - Ida";break;case"CFV":c="Cuartos de final - Vuelta";break;case"SFI":c="Semifinal - Ida";break;case"SFV":c="Semifinal - Vuelta";break;case"FI":c="Final - Ida";break;case"FV":c="Final - Vuelta";break}return c}return(p,c)=>(t.openBlock(),t.createElementBlock("div",S0,[t.createElementVNode("div",k0,[t.createElementVNode("div",{class:"playing-as-picker__type selected",id:"opc0",onClick:c[0]||(c[0]=d=>s(0))},"Todas"),t.createElementVNode("div",{class:"playing-as-picker__type",id:"opc1",onClick:c[1]||(c[1]=d=>s(1))},"Visitante"),t.createElementVNode("div",{class:"playing-as-picker__type",id:"opc2",onClick:c[2]||(c[2]=d=>s(2))},"Local")]),t.createVNode(t.unref(mi),{"is-pagination-visible":e.isPaginationVisible,items:i.value},{default:t.withCtx(({item:d})=>[t.createElementVNode("div",C0,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(d,(u,m)=>(t.openBlock(),t.createElementBlock("div",{key:m,class:"calendar-by-team__page__round"},[t.createElementVNode("div",{class:"calendar-by-team__page__round__round-name",style:t.normalizeStyle([{color:"white"},e.componentWidth<=425?"padding: 5px 10px":""])},t.toDisplayString(l(u.roundName)),5),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(u.games,f=>(t.openBlock(),t.createBlock(bi,{key:f.game_id,game:f,"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"])]))}},E0=pe(B0,[["__scopeId","data-v-aae4ad84"]]),N0="_image62Icon_1lvdf_3",x0="_imgChivasIcon_1lvdf_21",T0="_nameDesktop_1lvdf_35",O0="_nameMobile_1lvdf_61",V0="_homeTeam_1lvdf_85",$0="_sbado16De_1lvdf_107",A0="_gameDate_1lvdf_125",z0="_sab16092023_1lvdf_133",R0="_div_1lvdf_159",I0="_divscore_1lvdf_177",F0="_cst_1lvdf_197",P0="_hour_1lvdf_215",L0="_score_1lvdf_217",D0="_chivasTvCanal_1lvdf_239",M0="_gameStatus_1lvdf_263",j0="_matchInfo_1lvdf_285",v0="_image62Icon1_1lvdf_311",W0="_name_1lvdf_35",U0="_imgAtlasIcon_1lvdf_355",H0="_name1_1lvdf_369",G0="_awayTeam_1lvdf_393",q0="_matchCard_1lvdf_415",J0={image62Icon:N0,imgChivasIcon:x0,nameDesktop:T0,nameMobile:O0,homeTeam:V0,sbado16De:$0,gameDate:A0,sab16092023:z0,div:R0,divscore:I0,cst:F0,hour:P0,score:L0,chivasTvCanal:D0,gameStatus:M0,matchInfo:j0,image62Icon1:v0,name:W0,imgAtlasIcon:U0,name1:H0,awayTeam:G0,matchCard:q0},Z0=["src"],X0=["src"],K0={key:0},Y0=["src"],Q0=["src"],ey={__name:"CardPreMatch",props:{game:{type:Object,default:()=>{}}},setup(e){const a=e,o=t.computed(()=>{const i={...a.game};return i.gameSchedule=a.game.schedule.split(":"),i.gameSchedule.pop(),i.gameSchedule=i.gameSchedule.join(":"),i});function n(i,r){const s=new Date(i);if(r==1){const l=["Domingo","Lunes","Martes","Miércoles","Jueves","Viernes","Sábado"],p=["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"];return`${l[s.getDay()]} ${s.getDate()} de ${p[s.getMonth()]}`}else return`${s.getDate()}-${s.getMonth()+1}-${s.getFullYear()}`}return(i,r)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(i.$style.matchCard)},[t.createElementVNode("div",{class:t.normalizeClass(i.$style.homeTeam),id:"container-home-team"},[t.createElementVNode("img",{class:t.normalizeClass(i.$style.image62Icon),alt:"",src:t.unref(Xe)(o.value.home_team.team_id,150)},null,10,Z0),t.createElementVNode("img",{class:t.normalizeClass(i.$style.imgChivasIcon),alt:"",src:t.unref(Xe)(o.value.home_team.team_id)},null,10,X0),t.createElementVNode("h3",{class:t.normalizeClass(i.$style.nameDesktop),id:"team-name"},t.toDisplayString(o.value.home_team.colloquial_name),3),t.createElementVNode("h3",{class:t.normalizeClass(i.$style.nameMobile),id:"team-name"},t.toDisplayString(o.value.home_team.acronym),3)],2),o.value.game_status==4?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(i.$style.matchInfo),id:"container-match-info"},[t.createElementVNode("div",{class:t.normalizeClass(i.$style.sbado16De)},t.toDisplayString(n(o.value.date_time_utc,1)),3),t.createElementVNode("div",{class:t.normalizeClass(i.$style.sab16092023)},t.toDisplayString(n(o.value.date_time_utc,0)),3),t.createElementVNode("div",{class:t.normalizeClass(i.$style.hour)},[t.createElementVNode("div",{class:t.normalizeClass(i.$style.div)},t.toDisplayString(o.value.gameSchedule),3),t.createElementVNode("div",{class:t.normalizeClass(i.$style.cst)},"CST",2)],2),t.createElementVNode("div",{class:t.normalizeClass(i.$style.chivasTvCanal)},t.toDisplayString(o.value.tv_stations.join(", ")),3)],2)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(i.$style.matchInfo),id:"container-match-info"},[t.createElementVNode("div",{class:t.normalizeClass([i.$style.sbado16De,i.$style.gameDate])},t.toDisplayString(n(o.value.date_time_utc,1)),3),t.createElementVNode("div",{class:t.normalizeClass([i.$style.sab16092023,i.$style.gameDate])},t.toDisplayString(n(o.value.date_time_utc,0)),3),t.createElementVNode("div",{class:t.normalizeClass(i.$style.score)},[t.createElementVNode("div",{class:t.normalizeClass(i.$style.divscore)},t.toDisplayString(o.value.score.join(" - ")),3)],2),t.createElementVNode("div",{class:t.normalizeClass(i.$style.gameStatus)},[t.createTextVNode(" Finalizado "),o.value.penalties_score_home_team!=0||o.value.penalties_score_visiting_team!=0?(t.openBlock(),t.createElementBlock("span",K0," - Penales "+t.toDisplayString(o.value.penalties_score_home_team)+" - "+t.toDisplayString(o.value.penalties_score_visiting_team),1)):t.createCommentVNode("",!0)],2)],2)),t.createElementVNode("div",{class:t.normalizeClass(i.$style.awayTeam),id:"container-away-team"},[t.createElementVNode("img",{class:t.normalizeClass(i.$style.image62Icon1),alt:"",src:t.unref(Xe)(o.value.visiting_team.team_id,150)},null,10,Y0),t.createElementVNode("h3",{class:t.normalizeClass(i.$style.name),id:"team-name"},t.toDisplayString(o.value.visiting_team.colloquial_name),3),t.createElementVNode("img",{class:t.normalizeClass(i.$style.imgAtlasIcon),alt:"",src:t.unref(Xe)(o.value.visiting_team.team_id)},null,10,Q0),t.createElementVNode("h3",{class:t.normalizeClass(i.$style.name1),id:"team-name"},t.toDisplayString(o.value.visiting_team.acronym),3)],2)],2))}},ty={$style:J0},oy=pe(ey,[["__cssModules",ty]]),ay={class:"calendar-by-game__carousel"},ny={components:{GscSwitchComponent:Yo,GSCGeneraltable:Tu,GSCCalendarByGame:pe({__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:a}){const o=e;let n=null;const i=t.ref([]),r=t.ref({}),s=t.ref([]),l=t.ref(0),p=t.ref(null),c=t.ref({}),d=t.ref(new Map),u=t.ref(!1),m=t.ref(null),f=t.ref(null),h=t.ref(null),g=t.computed(()=>o.isCup),y=t.computed(()=>o.isCupLegacy),C=t.computed(()=>({height:o.height,width:o.width})),O=t.computed(()=>o.games?J(o.games):d.value.get(c.value.key)||[]);t.watch(()=>o.seasons,V=>{V&&V.length&&(u.value=!0,i.value=V.map(x=>x.id),he(V,!0))},{immediate:!0,deep:!0}),t.watch(()=>o.teamId,()=>{fe()});async function W(V,x,T=""){let $=T;try{const E={};o.token&&(E.Authorization=o.token),$||($="https://qyyibs1w0d.execute-api.us-west-2.amazonaws.com/prod/calendar/gamesBySeason?",V.forEach((z,F)=>{$+=`${F===0?"":"&"}seasons=${z}`}));const{data:{data:R,teams:I}}=await si.get($,{headers:E});return{seasonsAndGames:R,seasonsAndTeams:I}}catch(E){if(x>0)return W(V,x-1,$);throw new Error(E)}}function X(V){for(const x of V)if(!i.value.includes(x.season_id))return!0;return!1}async function he(V,x){try{r.value={};let T=0;const{seasonsAndGames:$,seasonsAndTeams:E}=await W(V.map(I=>I.id),3);if(x&&X($))return;$.forEach(I=>{const{type:z}=V.find(F=>F.id===I.season_id);I.type=z,I.games.forEach(F=>{F.season_id=I.season_id}),z===0&&(T=I.season_id)}),m.value={seasonsGames:$};const{teams:R}=E.find(I=>I.season_id===T);f.value=R,a("change-teams",R),fe()}catch(T){throw new Error(T)}}function fe(){if(!f.value)return;const V=m.value&&m.value.seasonsGames?m.value.seasonsGames.map(x=>{const T=x.games.reduce(($,E)=>{const R={...E};return R.dateTimeMillis=new Date(R.date_time_utc).valueOf(),R.home_team=f.value.find(I=>I.team_id===E.home_team),R.visiting_team=f.value.find(I=>I.team_id===E.visiting_team),o.teamId&&R.home_team.team_id!==o.teamId&&R.visiting_team.team_id!==o.teamId||($[E.matchday_abbreviation]?$[E.matchday_abbreviation][E.game_status===3?"canceled":E.date]?$[E.matchday_abbreviation][E.game_status===3?"canceled":E.date].push(R):$[E.matchday_abbreviation][E.game_status===3?"canceled":E.date]=[R]:$[E.matchday_abbreviation]={[E.game_status===3?"canceled":E.date]:[R]}),$},{});for(let[$,E]of Object.entries(T))T[$]=Object.entries(E).map(([R,I])=>({date:R,games:I.sort((z,F)=>z.dateTimeMillis-F.dateTimeMillis)})),T[$].sort((R,I)=>R.date<I.date?-1:R.date>I.date?1:0);return{type:x.type,weight:x.type===0?0:x.type===2?1:2,schedule:T}}):[];V.sort((x,T)=>x.weight-T.weight),r.value=V.reduce((x,T)=>{for(const[$,E]of Object.entries(T.schedule))if(T.type===0)if(g.value){const R=$.replace("M",""),I=R;y.value?x[Wf[R]||I]=E:x[vf[$]||I]=E}else x[Number($.replace("M","")).toString()]=E;else T.type===2?$.charAt(1)=="I"?x[`PI${Number($.replace("PI",""))}`]=E:x[`R${Number($.replace("PO",""))}`]=E:T.type===1&&(x[jf[$]]=E);return x},{}),d.value=new Map,s.value=Array.from(Object.entries(r.value).reduce((x,[T,$])=>{const E=Number(T);let R="";Number.isNaN(E)?R=T:R=E<10?`0${E}`:T,x.set(T,{key:T,value:E,valueText:R});const I=$.reduce((F,Q)=>(Q.games.forEach(re=>{re.game_id===o.defaultGameId&&(h.value=T),re.roundAbbreviation=Number.isNaN(E)?E:`J ${E}`}),F=F.concat(Q.games),F),[]),z=J(I);return d.value.set(T,z),x},new Map).values())}function J(V){const x=[];if(o.gamesPerMatchDay>0){let T=[];V.forEach(($,E)=>{T.push($),(E+1)%o.gamesPerMatchDay===0&&(x.push([...T]),T=[])}),T.length&&x.push([...T])}else x.push(V);return x}async function ne(V){try{const{data:x}=await si.get("https://kefloixzy1.execute-api.us-west-2.amazonaws.com/prod/tournaments");return x}catch(x){if(V>0)return ne(V-1);throw new Error(x)}}function A(){if(window.ResizeObserver)n=new ResizeObserver(()=>{l.value=p.value.clientWidth}),n.observe(p.value);else throw new Error("Resize observer not supported!")}function te(V){c.value=V,a("change-round",V)}function oe(V){o.areGamesCarouselType&&a("change-game-carousel",V.selectedItem)}function v(V){a("action",V),ae(V)}function ae(V){const x="PLAY_RESUME",T="PLAY_GOALS",$=[607,608,12,55,54,35,14,52,15,53,466,477],E=[12,55,"35_r","54_r"],{game_id:R,season_id:I}=V.game;let z={seasonId:I,tournaments:[],isFeaturedPlayers:!1,mainSectionType:1,playListType:1,gameIds:[R],playerIds:[],goalkeeperIds:[],categoryIds:[],teamId:0,matchResult:[],categorySingleName:"",avoidCategorySingleName:!1,currentPlayIndex:0,playData:null,lastClashedGameId:null,tournamentsLastClashes:null,advancedFilter:{playListTitle:""},objectPlaySync:null};V.action===x?(z.categoryIds=$,z.advancedFilter.playListTitle="Resumen",a("openmedia",z)):V.action===T&&(z.categoryIds=E,z.advancedFilter.playListTitle="Goles",a("openmedia",z))}async function se(){try{if(!o.awaitForSeasons&&!o.games){const V=(await ne(3)).find($=>$._id===1),x=V.seasons[0],T=[{id:x.id,type:x.type}];V&&V.tournament&&a("tournament-selected",V.tournament),x.related_seasons&&x.related_seasons.length&&T.push(...x.related_seasons.map($=>({id:$.id,type:$.type}))),await he(T,!1)}}catch(V){throw new Error(V)}}return t.onMounted(()=>{A()}),se(),(V,x)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"calendarByGame",ref:p,class:"calendar-by-game",style:t.normalizeStyle(C.value)},[e.teamId&&!e.avoidTeamIdFilter?(t.openBlock(),t.createBlock(E0,{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":d.value,"is-pagination-visible":e.isPaginationVisible,"is-round-mode":e.isRoundMode,onAction:v},null,8,["full-tournament-schedule","team-id","row-height","component-width","games-pages","is-pagination-visible","is-round-mode"])):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[e.areRoundsVisible&&s.value?(t.openBlock(),t.createBlock(rg,{key:0,"match-days":s.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":h.value,onChangeMatchDay:te},null,8,["match-days","is-landing-mode","items-to-show","items-to-scroll","component-width","default-match-day-key"])):t.createCommentVNode("",!0),t.createElementVNode("div",ay,[O.value?(t.openBlock(),t.createBlock(t.unref(mi),{key:0,"is-pagination-visible":e.isPaginationVisible&&!e.areGamesCarouselType,items:e.areGamesCarouselType?O.value[0]:O.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:oe},{default:t.withCtx(({item:T})=>[e.areGamesCarouselType?(t.openBlock(),t.createBlock(oy,{key:0,game:T},null,8,["game"])):(t.openBlock(),t.createBlock(_0,{key:1,"games-per-page":T,"is-landing-mode":e.isLandingMode,"row-height":e.rowHeight,"component-width":l.value,"is-round-mode":e.isRoundMode,onAction:v},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"])):t.createCommentVNode("",!0)])],64))],4))}},[["__scopeId","data-v-57f2fc98"]])},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)}}},ry={class:"gsc-calendar-table"},iy={class:"gsc-switch-container"},sy={class:"gsc-app-component"};function ly(e,a,o,n,i,r){const s=t.resolveComponent("GscSwitchComponent"),l=t.resolveComponent("GSCGeneraltable"),p=t.resolveComponent("GSCCalendarByGame");return t.openBlock(),t.createElementBlock("div",ry,[t.createElementVNode("div",iy,[t.createVNode(s,{type:0,"font-family":"Poppins-Light",buttons:["Mi posición","Calendario"],height:"40px","selected-option":i.selectedOpt,"font-size":o.componentWidth>=768?"16px":"14px",width:"355px",onInput:r.changeCategory},null,8,["selected-option","font-size","onInput"])]),t.createElementVNode("div",sy,[i.selectedOpt=="Mi posición"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createVNode(l,{isPaginationVisible:!0,"current-season-id":o.season.id,type:1,"await-for-season":!0,onOpenmedia:r.onOpenMedia,onOpenTableProfile:r.onOpenProfile},null,8,["current-season-id","onOpenmedia","onOpenTableProfile"]),t.createElementVNode("div",{onClick:a[0]||(a[0]=c=>this.$router.push({name:"table"})),class:"gsc-app-component-view-all"}," Ver todo ")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createVNode(p,{onAction:r.onAction,onOpenmedia:r.onOpenMedia,width:"100%",token:i.tokenFree,seasons:o.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"]),t.createElementVNode("div",{onClick:a[1]||(a[1]=c=>this.$router.push({name:"calendar"})),class:"gsc-app-component-view-all"}," Ver todo ")],64))])])}const cy=ie(ny,[["render",ly],["__scopeId","data-v-6b8889ec"]]),dy={class:"match"},my={class:"match__header"},py={key:0,class:"match__final-tag"},uy={key:1,class:"match__final-tag__no-border"},hy={class:"match__tag"},fy={class:"match__body"},gy={class:"match__data"},yy={class:"match__acronym"},by=["src"],wy={class:"match__score"},_y=["src"],Sy={class:"match__acronym"},ky={class:"match__status"},Jt=ie({__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(a,o)=>{var n,i,r;return t.openBlock(),t.createElementBlock("section",dy,[t.createElementVNode("div",my,[e.infoType=="postmatch"?(t.openBlock(),t.createElementBlock("div",py,"FINAL ")):(t.openBlock(),t.createElementBlock("div",uy)),t.createElementVNode("div",hy,t.toDisplayString(e.data.matchday_abbreviation.replace("M","J")),1)]),t.createElementVNode("div",fy,[t.createElementVNode("div",gy,[t.createElementVNode("div",yy,t.toDisplayString((n=e.data)==null?void 0:n.home_team_acronym),1),t.createElementVNode("img",{class:"match__img",src:"https://az755631.vo.msecnd.net/teams-80/"+e.data.home_team+".png",alt:"team-img"},null,8,by),t.createElementVNode("div",wy,[e.infoType=="postmatch"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(e.data.score[0])+" - "+t.toDisplayString(e.data.score[1]),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString((i=e.data)==null?void 0:i.schedule.replace(":00","")),1)],64))]),t.createElementVNode("img",{class:"match__img",src:"https://az755631.vo.msecnd.net/teams-80/"+e.data.visiting_team+".png",alt:"team-img"},null,8,_y),t.createElementVNode("div",Sy,t.toDisplayString((r=e.data)==null?void 0:r.visiting_team_acronym),1)]),t.createElementVNode("div",ky,[e.infoType=="postmatch"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Finalizado"+t.toDisplayString(e.penalScore?` - Penales ${e.penalScore}`:""),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("CST")],64))])]),t.createElementVNode("div",{class:"match__button",onClick:o[0]||(o[0]=s=>a.$emit("clickMatch"))},"Analizar partido →")])}}},[["__scopeId","data-v-c49fa538"]]),Cy=e=>(t.pushScopeId("data-v-8a51a354"),e=e(),t.popScopeId(),e),By={class:"match"},Ey={class:"match__header"},Ny=Cy(()=>t.createElementVNode("div",{class:"match__final-tag"},"FINAL",-1)),xy={class:"match__tag"},Ty={class:"match__body"},Oy={class:"match__data"},Vy={class:"match__acronym"},$y=["src"],Ay={class:"match__score"},zy=["src"],Ry={class:"match__acronym"},Iy={class:"match__status"},wi=ie({__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(a,o)=>(t.openBlock(),t.createElementBlock("section",By,[t.createElementVNode("div",Ey,[Ny,t.createElementVNode("div",xy,t.toDisplayString(e.data.matchday_abbreviation.replace("M","J")),1)]),t.createElementVNode("div",Ty,[t.createElementVNode("div",Oy,[t.createElementVNode("div",Vy,t.toDisplayString(e.data.home_team.acronym),1),t.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,$y),t.createElementVNode("div",Ay,t.toDisplayString(e.data.score[0])+" - "+t.toDisplayString(e.data.score[1]),1),t.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,zy),t.createElementVNode("div",Ry,t.toDisplayString(e.data.visiting_team.acronym),1)]),t.createElementVNode("div",Iy,"Finalizado"+t.toDisplayString(e.penalScore?` - Penales ${e.penalScore}`:""),1)]),t.createElementVNode("div",{class:"match__button",onClick:o[0]||(o[0]=n=>a.$emit("clickMatch"))},"Analizar partido →")]))}},[["__scopeId","data-v-8a51a354"]]),Fy=e=>(t.pushScopeId("data-v-4c9c0afe"),e=e(),t.popScopeId(),e),Py=["src"],Ly=["src"],Dy={class:"coming-match__body"},My={class:"coming-match__data"},jy=["src"],vy={style:{"margin-top":"16px"}},Wy={class:"coming-match__time"},Uy=Fy(()=>t.createElementVNode("div",{class:"coming-match__cst"},"CST",-1)),Hy=["src"],_a=ie({__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(a,o)=>{var n,i,r,s,l,p,c,d,u,m,f,h,g;return t.openBlock(),t.createElementBlock("section",{class:t.normalizeClass(["coming-match",{small:e.small}])},[t.createElementVNode("img",{class:t.normalizeClass(["coming-match__bg",{small:e.small}]),src:typeof e.data.home_team=="object"?"https://az755631.vo.msecnd.net/teams-150/"+((n=e.data)==null?void 0:n.home_team.team_id)+".png":"https://az755631.vo.msecnd.net/teams-150/"+((i=e.data)==null?void 0:i.home_team)+".png",alt:"team-img"},null,10,Py),t.createElementVNode("img",{class:t.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/"+((s=e.data)==null?void 0:s.visiting_team)+".png",alt:"team-img"},null,10,Ly),t.createElementVNode("div",Dy,[t.createElementVNode("div",{class:t.normalizeClass(["coming-match__date",{small:e.small}])},t.toDisplayString(e.data.matchday_abbreviation.replace("M","J")),3),t.createElementVNode("div",My,[t.createElementVNode("div",{class:t.normalizeClass(["coming-match__team",{small:e.small}])},[t.createElementVNode("img",{class:t.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/"+((p=e.data)==null?void 0:p.home_team)+".png",alt:"team-img"},null,10,jy),t.createElementVNode("div",{class:t.normalizeClass(["coming-match__acronym",{small:e.small}])},t.toDisplayString((c=e.data)==null?void 0:c.home_team_name),3)],2),t.createElementVNode("div",vy,[t.createElementVNode("div",Wy,[e.data.game_status==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString((d=e.data)==null?void 0:d.score[0])+" - "+t.toDisplayString((u=e.data)==null?void 0:u.score[1]),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString((m=e.data)==null?void 0:m.schedule.replace(":00","")),1)],64))]),Uy]),t.createElementVNode("div",{class:t.normalizeClass(["coming-match__team",{small:e.small}])},[t.createElementVNode("div",{class:t.normalizeClass(["coming-match__acronym",{small:e.small}])},t.toDisplayString((f=e.data)==null?void 0:f.visiting_team_name),3),t.createElementVNode("img",{class:t.normalizeClass(["coming-match__img",{small:e.small}]),src:typeof e.data.visiting_team=="object"?"https://az755631.vo.msecnd.net/teams-80/"+((h=e.data)==null?void 0:h.visiting_team.team_id)+".png":"https://az755631.vo.msecnd.net/teams-80/"+((g=e.data)==null?void 0:g.visiting_team)+".png",alt:"team-img"},null,10,Hy)],2)])]),t.createElementVNode("div",{class:t.normalizeClass(["coming-match__button",{small:e.small}]),onClick:o[0]||(o[0]=y=>a.$emit("clickMatch"))},"Analizar partido →",2)],2)}}},[["__scopeId","data-v-4c9c0afe"]]),Gy=e=>(t.pushScopeId("data-v-90640930"),e=e(),t.popScopeId(),e),qy=["src"],Jy=["src"],Zy={class:"coming-match__body"},Xy={class:"coming-match__data"},Ky=["src"],Yy={style:{"margin-top":"16px"}},Qy={class:"coming-match__time"},e1=Gy(()=>t.createElementVNode("div",{class:"coming-match__cst"},"CST",-1)),t1=["src"],_i=ie({__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(a,o)=>{var n,i,r,s,l,p,c,d,u,m,f,h,g;return t.openBlock(),t.createElementBlock("section",{class:t.normalizeClass(["coming-match",{small:e.small}])},[t.createElementVNode("img",{class:t.normalizeClass(["coming-match__bg",{small:e.small}]),src:typeof e.data.home_team=="object"?"https://az755631.vo.msecnd.net/teams-80/"+((n=e.data)==null?void 0:n.home_team.team_id)+".png":"https://az755631.vo.msecnd.net/teams-80/"+((i=e.data)==null?void 0:i.home_team)+".png",alt:"team-img"},null,10,qy),t.createElementVNode("img",{class:t.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/"+((s=e.data)==null?void 0:s.visiting_team)+".png",alt:"team-img"},null,10,Jy),t.createElementVNode("div",Zy,[t.createElementVNode("div",{class:t.normalizeClass(["coming-match__date",{small:e.small}])},t.toDisplayString(e.data.matchday_abbreviation.replace("M","J")),3),t.createElementVNode("div",Xy,[t.createElementVNode("div",{class:t.normalizeClass(["coming-match__team",{small:e.small}])},[t.createElementVNode("img",{class:t.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/"+((p=e.data)==null?void 0:p.home_team)+".png",alt:"team-img"},null,10,Ky),t.createElementVNode("div",{class:t.normalizeClass(["coming-match__acronym",{small:e.small}])},t.toDisplayString((c=e.data)==null?void 0:c.home_team_name),3)],2),t.createElementVNode("div",Yy,[t.createElementVNode("div",Qy,[e.data.game_status==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString((d=e.data)==null?void 0:d.score[0])+" - "+t.toDisplayString((u=e.data)==null?void 0:u.score[1]),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString((m=e.data)==null?void 0:m.schedule.replace(":00","")),1)],64))]),e1]),t.createElementVNode("div",{class:t.normalizeClass(["coming-match__team",{small:e.small}])},[t.createElementVNode("div",{class:t.normalizeClass(["coming-match__acronym",{small:e.small}])},t.toDisplayString((f=e.data)==null?void 0:f.visiting_team_name),3),t.createElementVNode("img",{class:t.normalizeClass(["coming-match__img",{small:e.small}]),src:typeof e.data.visiting_team=="object"?"https://az755631.vo.msecnd.net/teams-80/"+((h=e.data)==null?void 0:h.visiting_team.team_id)+".png":"https://az755631.vo.msecnd.net/teams-80/"+((g=e.data)==null?void 0:g.visiting_team)+".png",alt:"team-img"},null,10,t1)],2)])]),t.createElementVNode("div",{class:t.normalizeClass(["coming-match__button",{small:e.small}]),onClick:o[0]||(o[0]=y=>a.$emit("clickMatch"))},"Analizar partido →",2)],2)}}},[["__scopeId","data-v-90640930"]]),o1=e=>(t.pushScopeId("data-v-0c45a1f6"),e=e(),t.popScopeId(),e),a1={class:"quadrant-matches"},n1={class:"quadrant-matches__header"},r1={class:"quadrant-matches__title"},i1=o1(()=>t.createElementVNode("span",null," →",-1)),s1={key:0,class:"quadrant-matches__body"},l1={class:"quadrant-matches__body",style:{"column-gap":"16px"}},c1={class:"quadrant-matches__body matches"},d1={key:0,class:"quadrant-matches__body"},m1={class:"quadrant-matches__body",style:{"column-gap":"16px"}},p1=ie({__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 a=e;t.computed(()=>a.comingMatches[0]||{}),t.computed(()=>a.previousMatches[0]||{});const o=t.toRef(a,"componentWidth"),n=t.computed(()=>o.value<768);return(i,r)=>(t.openBlock(),t.createElementBlock("section",a1,[t.createElementVNode("div",n1,[t.createElementVNode("h2",r1,t.toDisplayString(e.isFull?"Partidos":"Mis partidos"),1),t.createElementVNode("button",{class:"quadrant-matches__button",onClick:r[0]||(r[0]=s=>i.$emit("clickCalendar"))},[t.createElementVNode("span",null,t.toDisplayString(e.isFull?"Calendario completo":"Mi calendario completo"),1),i1])]),e.isFull?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[e.data.length>1?(t.openBlock(),t.createBlock(t.unref(nt),{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:t.withCtx(()=>[t.createElementVNode("div",c1,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.data,(s,l)=>(t.openBlock(),t.createBlock(_a,{key:l,data:s,small:"",onClickMatch:p=>i.$emit("clickMatch",s)},null,8,["data","onClickMatch"]))),128))])]),_:1})):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[n.value?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[Object.keys(e.data).length>0?(t.openBlock(),t.createBlock(t.unref(nt),{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:t.withCtx(()=>[t.createElementVNode("div",m1,[e.data[0].game_status==4?(t.openBlock(),t.createBlock(_i,{key:0,data:e.data[0],onClickMatch:r[9]||(r[9]=s=>i.$emit("clickMatch",e.data[0]))},null,8,["data"])):t.createCommentVNode("",!0),e.data[0].game_status!=4?(t.openBlock(),t.createBlock(wi,{key:1,data:e.data[0],onClickMatch:r[10]||(r[10]=s=>i.$emit("clickMatch",e.data[0]))},null,8,["data"])):t.createCommentVNode("",!0)])]),_:1})):t.createCommentVNode("",!0)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[Object.keys(e.data).length>0?(t.openBlock(),t.createElementBlock("div",d1,[e.data[0].game_status==4?(t.openBlock(),t.createBlock(_i,{key:0,data:e.data[0],onClickMatch:r[7]||(r[7]=s=>i.$emit("clickMatch",e.data[0]))},null,8,["data"])):t.createCommentVNode("",!0),e.data[0].game_status!=4?(t.openBlock(),t.createBlock(wi,{key:1,data:e.data[0],onClickMatch:r[8]||(r[8]=s=>i.$emit("clickMatch",e.data[0]))},null,8,["data"])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)],64))],64))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[n.value?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[Object.keys(e.data).length>0?(t.openBlock(),t.createBlock(t.unref(nt),{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:t.withCtx(()=>[t.createElementVNode("div",l1,[t.createVNode(_a,{small:"",data:e.data.data.prematch,onClickMatch:r[4]||(r[4]=s=>i.$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?(t.openBlock(),t.createBlock(Jt,{key:0,data:e.data.data.postmatch,onClickMatch:r[5]||(r[5]=s=>i.$emit("clickMatch",e.data.data.postmatch))},null,8,["data"])):(t.openBlock(),t.createBlock(Jt,{key:1,"info-type":"prematch",data:e.data.data.postmatch,onClickMatch:r[6]||(r[6]=s=>i.$emit("clickMatch",e.data.data.postmatch))},null,8,["data"]))])]),_:1})):t.createCommentVNode("",!0)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[Object.keys(e.data).length>0?(t.openBlock(),t.createElementBlock("div",s1,[t.createVNode(_a,{data:e.data.data.prematch,onClickMatch:r[1]||(r[1]=s=>i.$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?(t.openBlock(),t.createBlock(Jt,{key:0,data:e.data.data.postmatch,onClickMatch:r[2]||(r[2]=s=>i.$emit("clickMatch",e.data.data.postmatch))},null,8,["data"])):(t.openBlock(),t.createBlock(Jt,{key:1,"info-type":"prematch",data:e.data.data.postmatch,onClickMatch:r[3]||(r[3]=s=>i.$emit("clickMatch",e.data.data.postmatch))},null,8,["data"]))])):t.createCommentVNode("",!0)],64))],64))]))}},[["__scopeId","data-v-0c45a1f6"]]),u1={__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(a,o)=>(t.openBlock(),t.createElementBlock("main",null,[t.createVNode(p1,{data:e.data,"component-width":e.componentWidth,"is-full":e.isFull,onClickCalendar:o[0]||(o[0]=n=>a.$emit("clickCalendar")),onClickMatch:o[1]||(o[1]=n=>a.$emit("clickMatch",n)),"has-team":!e.isplayer},null,8,["data","component-width","is-full","has-team"])]))}},h1="_toniKroos_1mxz1_35",f1="_centralMidfielder_1mxz1_55",g1="_icnPlayIcon_1mxz1_75",y1="_verVideos_1mxz1_89",b1="_btnVideosOptions_1mxz1_109",w1="_btnVideosOptionsTeams_1mxz1_139",_1="_info_1mxz1_179",S1="_goalUnlock_1mxz1_203",k1="_teamsAmerica_1mxz1_229",C1="_imageIcon_1mxz1_249",B1="_imageIconTeam_1mxz1_271",E1="_playerTops_1mxz1_295",N1={toniKroos:h1,centralMidfielder:f1,icnPlayIcon:g1,verVideos:y1,btnVideosOptions:b1,btnVideosOptionsTeams:w1,info:_1,goalUnlock:S1,teamsAmerica:k1,imageIcon:C1,imageIconTeam:B1,playerTops:E1},x1=(e,a)=>{const o=e.__vccOpts||e;for(const[n,i]of a)o[n]=i;return o},T1={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:"80px"},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},isPlayer:{type:Boolean,default:!0},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))}}},O1=["src"],V1=["src"],$1=["src"];function A1(e,a,o,n,i,r){return t.openBlock(),t.createElementBlock("section",{class:t.normalizeClass(e.$style.playerTops),style:t.normalizeStyle(r.customMosaic),id:"player-mosaico",onClick:a[1]||(a[1]=s=>r.onPlayerTopsClick(o.data.player_id))},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.info)},[t.createElementVNode("h3",{class:t.normalizeClass(e.$style.toniKroos),style:t.normalizeStyle(r.customNamePlayer)},t.toDisplayString(o.data.player_name),7),o.showPositionPlayer?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.centralMidfielder),style:t.normalizeStyle(r.customNamePosition)},t.toDisplayString(o.data.player_position),7)):t.createCommentVNode("",!0),t.createElementVNode("button",{class:t.normalizeClass(this.isPlayer?e.$style.btnVideosOptions:e.$style.btnVideosOptionsTeams),style:t.normalizeStyle(r.customTotalCont),id:"button-actions",onClick:a[0]||(a[0]=s=>r.onButtonVideos(o.data))},[o.showIconVideo?(t.openBlock(),t.createElementBlock("img",{key:0,class:t.normalizeClass(e.$style.icnPlayIcon),src:o.iconPlay},null,10,O1)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.verVideos),style:t.normalizeStyle(r.customTotal)},t.toDisplayString(o.data.player_stat)+" "+t.toDisplayString(o.data.category),7)],6)],2),t.createElementVNode("b",{style:t.normalizeStyle(r.customNumberTop),class:t.normalizeClass(e.$style.goalUnlock)},t.toDisplayString(o.data.top),7),o.showShieldTeam?(t.openBlock(),t.createElementBlock("img",{key:0,class:t.normalizeClass(e.$style.teamsAmerica),style:t.normalizeStyle(r.customShieldTeam),loading:"lazy",src:o.data.team_logo},null,14,V1)):t.createCommentVNode("",!0),t.createElementVNode("img",{style:t.normalizeStyle(r.customPhotoPlayerOrTeam),class:t.normalizeClass(this.isPlayer?e.$style.imageIcon:e.$style.imageIconTeam),loading:"lazy",src:o.data.player_photo},null,14,$1)],6)}const z1={$style:N1},R1=x1(T1,[["render",A1],["__cssModules",z1]]),I1=(e,a)=>{const o=e.__vccOpts||e;for(const[n,i]of a)o[n]=i;return o},Sa={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))}}},Si=()=>{t.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}))},ki=Sa.setup;Sa.setup=ki?(e,a)=>(Si(),ki(e,a)):Si;const F1=e=>(t.pushScopeId("data-v-fb269a1e"),e=e(),t.popScopeId(),e),P1=["src"],L1={key:1,class:"text"},D1=["src"],M1={class:"stats"},j1=F1(()=>t.createElementVNode("img",{class:"iconstats",src:"https://az755631.vo.msecnd.net/todoelfut/playdes.png"},null,-1)),v1={class:"numstats"},W1={class:"leyend"};function U1(e,a,o,n,i,r){return t.openBlock(),t.createElementBlock("div",null,[o.type==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["button",i.status&&o.typeOnOff&&"button-active"]),style:t.normalizeStyle([r.customStyle,i.status&&o.typeOnOff&&r.customActive]),onClick:a[0]||(a[0]=(...s)=>r.btnClick&&r.btnClick(...s))},[o.icon&&o.iconPosition.toLowerCase()==="left"?(t.openBlock(),t.createElementBlock("img",{key:0,class:"icon",style:t.normalizeStyle({width:o.iconSize}),src:o.icon},null,12,P1)):t.createCommentVNode("",!0),o.textValue?(t.openBlock(),t.createElementBlock("div",L1,t.toDisplayString(o.textValue),1)):t.createCommentVNode("",!0),o.icon&&o.iconPosition.toLowerCase()==="right"?(t.openBlock(),t.createElementBlock("img",{key:2,class:"icon",style:t.normalizeStyle({width:o.iconSize}),src:o.icon},null,12,D1)):t.createCommentVNode("",!0)],6)):t.createCommentVNode("",!0),o.type==1?(t.openBlock(),t.createElementBlock("div",{key:1,class:"button-target",onClick:a[1]||(a[1]=(...s)=>r.btnClick&&r.btnClick(...s))},[t.createElementVNode("div",M1,[j1,t.createElementVNode("div",v1,t.toDisplayString(o.textStat),1)]),t.createElementVNode("div",W1,t.toDisplayString(o.textCategory),1)])):t.createCommentVNode("",!0)])}const Ci=I1(Sa,[["render",U1],["__scopeId","data-v-fb269a1e"]]);function H1(e){const a=t.ref({width:0,height:0});function o(){const n=e.value.getBoundingClientRect();a.value.width=n.width,a.value.height=n.height}return t.onMounted(()=>{o(),window.addEventListener("resize",o)}),t.onUnmounted(()=>{window.removeEventListener("resize",o)}),{elementSize:a}}const ka={props:{textOptionLeft:String,valueDefault:{type:String,default:""},textOptionRight:String,hiddenLabels:{type:Boolean,default:!1},width:{type:String,default:"50px"},height:{type:String,default:"32px"},heightCircle:{type:String,default:"24px"},widthCircle:{type:String,default:"24px"},widthIcons:{type:String,default:"22"},borderRadius:{type:String,default:"30px"},borderType:{type:String,default:"solid"},borderWidth:{type:Number,default:1},borderColor:{type:String,default:"#FFFFFF"},fontSize:{type:String,default:"14px"},fontColor:{type:String,default:"#000000"},iconA:{type:String,default:""},iconB:{type:String,default:""},fontFamily:{type:String,default:"Poppins-Light"},backgroundColor:{type:String,default:"#2e3b46"},circleColorSwitch:{type:String,default:"#FFFFFF"}},data(){return{OptionDefault:!1}},watch:{valueDefault:{immediate:!0,handler:async function(e){try{e==this.textOptionLeft&&(this.OptionDefault=!1),e==this.textOptionRight&&(this.OptionDefault=!0)}catch(a){throw new Error(a)}}}},computed:{customStyle(){return{width:this.width,height:this.height,borderRadius:this.borderRadius,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`,backgroundColor:this.backgroundColor,circleColor:this.circleColorSwitch}},customText(){return{color:this.fontColor,fontSize:this.fontSize,fontFamily:`${this.fontFamily} !important`}}},methods:{handleSwitchChange(e){e.target.checked?this.$emit("change",this.textOptionRight):this.$emit("change",this.textOptionLeft)}}},Bi=()=>{t.useCssVars(e=>({"2bf57034":e.backgroundColor,b8f32872:e.widthCircle,23023166:e.heightCircle}))},Ei=ka.setup;ka.setup=Ei?(e,a)=>(Bi(),Ei(e,a)):Bi;const G1={key:0,class:"text-left"},q1=["width","src"],J1=["checked"],Z1=["width","src"],X1={key:3,class:"text-right"};function K1(e,a,o,n,i,r){return t.openBlock(),t.createElementBlock("div",{class:"gsc-switch-radio",style:t.normalizeStyle(r.customText)},[o.textOptionLeft!=""&&!o.hiddenLabels?(t.openBlock(),t.createElementBlock("span",G1,t.toDisplayString(o.textOptionLeft),1)):t.createCommentVNode("",!0),o.iconA!=""?(t.openBlock(),t.createElementBlock("img",{key:1,width:o.widthIcons,src:o.iconA},null,8,q1)):t.createCommentVNode("",!0),t.createElementVNode("input",{type:"checkbox",id:"toggle-btn",onChange:a[0]||(a[0]=(...s)=>r.handleSwitchChange&&r.handleSwitchChange(...s)),checked:i.OptionDefault},null,40,J1),t.createElementVNode("label",{for:"toggle-btn",style:t.normalizeStyle([r.customStyle,{"--circle-color":o.circleColorSwitch}])},null,4),o.iconB!=""?(t.openBlock(),t.createElementBlock("img",{key:2,width:o.widthIcons,src:o.iconB},null,8,Z1)):t.createCommentVNode("",!0),o.textOptionRight!=""&&!o.hiddenLabels?(t.openBlock(),t.createElementBlock("span",X1,t.toDisplayString(o.textOptionRight),1)):t.createCommentVNode("",!0)],4)}const Ca={components:{GSCSlider:nt,GSCMosaicthebest:R1,GscSwitchComponent:Yo,GSCButton:Ci,GSCRadioToggle:ie(ka,[["render",K1],["__scopeId","data-v-c2ae0cf9"]])},setup(){const e=t.ref("myDivRef"),{elementSize:a}=H1(e);return{myDivRef:e,elementSize:a}},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"},tournament:{type:Number,default:1},season:{type:Number,default:1772},teamId:{type:Number,default:0}},watch:{async season(e,a){const o=this.categorySelected!==null?this.categorySelected:1;this.showSwitch||(this.filterSelected=1),await this.getCategoryStats(e,this.filterSelected,o)}},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,filterSelected:1,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:{formatPlayerName(e){var n;const a=e.split(",");let o="";if(a[1]&&(o=`${a[1].trim()[0]}.`,a[0])){const i=(n=a[0])==null?void 0:n.trim().split(" ");for(let r of i)if(o=`${o} ${r.trim()}`,r.trim().length>3)break}return o},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 a=this.translateTopCategories(this.categorySelected),o=2,n=3;let i=[],r=0,s=0;this.isTeam?(r=e.player_id,s=n):(i=[e.player_id],s=o);const l={seasonId:this.season,tournaments:[],isFeaturedPlayers:!1,mainSectionType:1,playListType:s,gameIds:null,playerIds:i,goalkeeperIds:[],categoryIds:a,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){const a=this.categorySelected!==null?this.categorySelected:1;e==="Mi equipo"&&(this.filterSelected=0,await this.getCategoryStats(this.season,0,a)),e==="Liga MX"&&(this.filterSelected=1,await this.getCategoryStats(this.season,1,a))},clickMosaic(e){this.$emit("boxinput",e)},clickMore(){this.$emit("more")},async changeType(e){const a=this.categorySelected!==null?this.categorySelected:1;this.optionSelected=e,e=="Equipos"?(await this.getCategoryStats(this.season,1,a),this.isTeam=!0):this.isTeam=!1},changeCategory(e){this.categoryName=e;const a=this.categories.find(o=>o.name===e);this.categorySelected=a.id},async getCategoryStats(e,a,o=0){try{let r={},s={},l=[];const p=Tt.create({headers:{Authorization:`${this.token}`}});var n={};if(a==0&&(n=await p.get(this.url+this.season+"/teams/"+this.teamId)),a==1&&(n=await p.get(this.url+e)),n&&n.data){n.data.teams.map(c=>{r[c[0]]={},r[c[0]].id=c[0],r[c[0]].name=c[1],r[c[0]].img=c[3],r[c[0]].abrv=c[2],r[c[0]].logo=c[3]}),n.data.players.map(c=>{s[c[0]]={},s[c[0]].id=c[0],s[c[0]].name=c[1],s[c[0]].img=c[2],s[c[0]].position=c[6],s[c[0]].logo="https://az755631.vo.msecnd.net/teams-80/"+c[10][0].team_id+".png"});var i=1;n.data.tops.map(c=>{l[c.category?c.category:i]={};var d={},u={};c.teams.map(h=>{d[h[0]]={},d[h[0]].total=h[1],d[h[0]].id=r[h[0]].id,d[h[0]].name=r[h[0]].name,d[h[0]].img="https://az755631.vo.msecnd.net/teams-150/"+h[0]+".png",d[h[0]].logo="https://az755631.vo.msecnd.net/teams-80/"+h[0]+".png"}),c.players.map(h=>{u[h[0]]={},u[h[0]].total=h[1],u[h[0]].name=s[h[0]].name,u[h[0]].img=s[h[0]].img.replace("players-profile/","players-profile/"),u[h[0]].id=s[h[0]].id,u[h[0]].position=this.positions[s[h[0]].position-1].name,u[h[0]].logo=s[h[0]].logo});var m=[],f=[];for(const h in d)m.push(d[h]);for(const h in u)f.push(u[h]);m.sort((h,g)=>h.total<g.total?1:-1),f.sort((h,g)=>h.total<g.total?1:-1),l[c.category?c.category:i].top__players=f,l[c.category?c.category:i].top__teams=m,i++})}o===0?this.categorySelected=1:this.categorySelected=o,this.categoryData=l}catch(r){return Promise.reject(r)}}}},Ni=()=>{t.useCssVars(e=>({"7a5b0a28":e.backgroundColor,"292ba61c":e.fontFamily,"510c78b9":e.fontSize,"60b8a4aa":e.fontColor,d5d221be:e.marginMosaic}))},xi=Ca.setup;Ca.setup=xi?(e,a)=>(Ni(),xi(e,a)):Ni;const Y1=e=>(t.pushScopeId("data-v-a5fb54bf"),e=e(),t.popScopeId(),e),Q1={class:"gsc-best",ref:"myDivRef"},e2={class:"gsc-best__line-bar-tools"},t2={key:0,class:"gsc-best__line-bar-tools__title"},o2=Y1(()=>t.createElementVNode("span",null,"Los mejores ",-1)),a2={key:1,class:"gsc-best__line-bar-tools__titlefull"},n2={class:"unit-items"},r2={key:2,class:"gsc-best__line-bar-tools__tools"},i2={key:0,class:"gsc-best__line-bar-tools__tools__tabs"},s2={class:"gsc-best__line-bar-tools__tools__btn"},l2={key:0,class:"gsc-best__line-bar-tools-movil"},c2={class:"gsc-best__line-bar-tools-movil__tabs"},d2={class:"gsc-best__categories"},m2={class:"gsc-best__players"};function p2(e,a,o,n,i,r){const s=t.resolveComponent("GSCRadioToggle"),l=t.resolveComponent("GSCButton"),p=t.resolveComponent("GscSwitchComponent"),c=t.resolveComponent("GSCMosaicthebest"),d=t.resolveComponent("GSCSlider");return t.openBlock(),t.createElementBlock("div",Q1,[t.createElementVNode("div",e2,[n.elementSize.width>900?(t.openBlock(),t.createElementBlock("div",t2,[o2,e.optionSelected!=="Equipos"&&o.showSwitch?(t.openBlock(),t.createBlock(s,{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/"+o.teamId+".png",iconB:"https://az755631.vo.msecnd.net/todoelfut/1.png",textOptionLeft:"Mi equipo",textOptionRight:"Liga MX",onChange:r.ChangeRadio},null,8,["iconA","onChange"])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),n.elementSize.width<=900?(t.openBlock(),t.createElementBlock("div",a2,[t.createElementVNode("span",{style:t.normalizeStyle(n.elementSize.width<=380?"font-size: 15px; margin-top:0px; width:60px;":"")},"Los mejores ",4),t.createElementVNode("span",n2,[e.optionSelected!=="Equipos"&&o.showSwitch?(t.openBlock(),t.createBlock(s,{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/"+o.teamId+".png",iconB:"https://az755631.vo.msecnd.net/todoelfut/1.png",textOptionLeft:"Mi equipo",textOptionRight:"Liga MX",onChange:r.ChangeRadio},null,8,["iconA","onChange"])):t.createCommentVNode("",!0),t.createVNode(l,{style:{"margin-top":"4px"},width:"75px","text-value":"Ver más","font-color":n.elementSize.width<=680?"rgba(255,255,255, 0.7)":"#fff","font-size":n.elementSize.width<=680?"11px":"14px","text-decoration":"underline",onClick:r.clickMore},null,8,["font-color","font-size","onClick"])])])):t.createCommentVNode("",!0),n.elementSize.width>900?(t.openBlock(),t.createElementBlock("div",r2,[n.elementSize.width>900?(t.openBlock(),t.createElementBlock("div",i2,[t.createVNode(p,{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-Light",onInput:r.changeType,arrowsScrollHide:!1,arrowsPosition:"absolute"},null,8,["selected-option","onInput"])])):t.createCommentVNode("",!0),t.createElementVNode("div",s2,[t.createVNode(l,{width:"75px","text-value":"Ver más","font-size":"14px","text-decoration":"underline",onClick:r.clickMore},null,8,["onClick"]),t.createVNode(l,{width:"10px","text-value":"→","font-size":"14px","font-color":"#cbee6b",onClick:r.clickMore},null,8,["onClick"])])])):t.createCommentVNode("",!0)]),n.elementSize.width<=900?(t.openBlock(),t.createElementBlock("div",l2,[t.createElementVNode("div",c2,[t.createVNode(p,{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-Light",onInput:r.changeType},null,8,["selected-option","onInput"])])])):t.createCommentVNode("",!0),t.createElementVNode("div",d2,[t.createVNode(p,{type:2,arrow:!0,"font-family":"Poppins-Light",buttons:e.categoriesDefault,height:"40px","selected-option":"Goles","font-size":n.elementSize.width<=900?"12px":"14px",width:"max-content",onInput:r.changeCategory,pxScroll:200,scrollColor:"none",arrowsScrollHide:!1,arrowsMargin:0,borderWidth:"2px"},null,8,["buttons","font-size","onInput"])]),t.createElementVNode("div",m2,[t.createVNode(d,{pxScroll:198,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:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r.topData,(u,m)=>(t.openBlock(),t.createElementBlock("div",{key:m,class:t.normalizeClass(["gsc-best__players__item",m==0?"margin-none":""])},[t.createVNode(c,{data:{player_id:u.id,player_name:this.isTeam?u.name:r.formatPlayerName(u.name),player_position:u.position,player_stat:u.total,category:"Total",top:m<9?"0"+(m+1):m+1,team_logo:u.logo,player_photo:u.img},"show-shield-team":!0,"active-videos":!0,onClickMosaic:r.clickMosaic,onOpenmedia:r.onOpenMedia,namePlayerFontSize:"13px",namePositionFontSize:"10px",numbertopLeft:"-15px",numberFontFamily:"Oswald-SemiBold",totalFontSize:"12px",totalFont:"Poppins-Light!important",totalHeight:"21px","is-player":!this.isTeam},null,8,["data","onClickMosaic","onOpenmedia","is-player"])],2))),128))]),_:1})])],512)}const u2=ie(Ca,[["render",p2],["__scopeId","data-v-a5fb54bf"]]),h2={PO1:"CFI",PO2:"CFV",PO3:"SFI",PO4:"SFV",PO5:"FI",PO6:"FV"},f2={DF:"Dieciseisavos",OF:"Octavos",CF:"Cuartos",SF:"Semifinales","3ER":"Tercer lugar",FINAL:"Final"},g2={4:"Octavos",5:"Cuartos",6:"Semifinales",7:"Final"},y2=(e,a)=>{const o=e.__vccOpts||e;for(const[n,i]of a)o[n]=i;return o},Ba={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))}}},Ti=()=>{t.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}))},Oi=Ba.setup;Ba.setup=Oi?(e,a)=>(Ti(),Oi(e,a)):Ti;const b2=e=>(t.pushScopeId("data-v-fb269a1e"),e=e(),t.popScopeId(),e),w2=["src"],_2={key:1,class:"text"},S2=["src"],k2={class:"stats"},C2=b2(()=>t.createElementVNode("img",{class:"iconstats",src:"https://az755631.vo.msecnd.net/todoelfut/playdes.png"},null,-1)),B2={class:"numstats"},E2={class:"leyend"};function N2(e,a,o,n,i,r){return t.openBlock(),t.createElementBlock("div",null,[o.type==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["button",i.status&&o.typeOnOff&&"button-active"]),style:t.normalizeStyle([r.customStyle,i.status&&o.typeOnOff&&r.customActive]),onClick:a[0]||(a[0]=(...s)=>r.btnClick&&r.btnClick(...s))},[o.icon&&o.iconPosition.toLowerCase()==="left"?(t.openBlock(),t.createElementBlock("img",{key:0,class:"icon",style:t.normalizeStyle({width:o.iconSize}),src:o.icon},null,12,w2)):t.createCommentVNode("",!0),o.textValue?(t.openBlock(),t.createElementBlock("div",_2,t.toDisplayString(o.textValue),1)):t.createCommentVNode("",!0),o.icon&&o.iconPosition.toLowerCase()==="right"?(t.openBlock(),t.createElementBlock("img",{key:2,class:"icon",style:t.normalizeStyle({width:o.iconSize}),src:o.icon},null,12,S2)):t.createCommentVNode("",!0)],6)):t.createCommentVNode("",!0),o.type==1?(t.openBlock(),t.createElementBlock("div",{key:1,class:"button-target",onClick:a[1]||(a[1]=(...s)=>r.btnClick&&r.btnClick(...s))},[t.createElementVNode("div",k2,[C2,t.createElementVNode("div",B2,t.toDisplayString(o.textStat),1)]),t.createElementVNode("div",E2,t.toDisplayString(o.textCategory),1)])):t.createCommentVNode("",!0)])}const x2=y2(Ba,[["render",N2],["__scopeId","data-v-fb269a1e"]]),T2={class:"gsc-dropdown__main-container__item-selected"},O2=["height","width"],V2=["stroke"],$2={class:"gsc-dropdown__items-container"},A2=["onClick"],z2={key:0,class:"gsc-dropdown__items-footer"},R2={__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(a=>a 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:a}){const o=e,n=t.ref({}),i=t.ref(null),r=t.ref(o.isMultipleOption?-1:0),s=t.ref(!1);t.watch(()=>o.items,(f,h)=>{if(!o.modelValue&&(!o.onlyFirstTime||!h||!h.length)&&f&&f.length){if(o.defaultItemByProp){const g=o.items.findIndex(y=>y[o.defaultItemByProp.propName]===o.defaultItemByProp.value);g!==-1?(r.value=g,n.value=f[g]):(r.value=0,n.value=f[0])}else n.value=f[o.defaultItemByIndex];a("input",n.value)}},{immediate:!0}),t.watch(()=>o.modelValue,f=>{if(f){const h=o.items.findIndex(g=>typeof f=="object"?JSON.stringify(g)===JSON.stringify(f):g===f);h!==-1&&(r.value=h,n.value=o.items[h],a("update:modelValue",n.value))}},{immediate:!0});const l=t.computed(()=>({height:o.height,width:o.width,backgroundColor:o.backgroundColor,borderRadius:`${o.borderRadius}px`,border:`${o.borderType} ${o.borderWidth}px ${o.borderColor}`,color:o.color,"--hover-background-color":o.hoverBackgroundColor,"--list-item-padding":o.listItemPadding,"--list-background-color":o.listBackgroundColor,"--list-height":o.listHeight,"--list-item-selected-color":o.listItemSelectedColor,"--list-item-selected-background-color":o.listItemSelectedBackgroundColor,"--list-item-color":o.listItemColor,"--list-border-radius":`${o.listBorderRadius}`,"--list-border-color":o.listBorderColor,"--list-width":o.isListSameWidth?o.width:"fit-content","--list-border-width":`${o.listBorderWidth}px`,"--footer-border":`${o.footerBorderWidth}px solid ${o.footerBorderColor}`,"--dropdown-opacity":o.isDisabled?"0.5":"1","--dropdown-cursor":o.isDisabled?"not-allowed":"pointer","--dropdown-font-size":o.fontSize?o.fontSize:"14px"})),p=t.computed(()=>({height:`${o.arrowHeight}px`,width:`${o.arrowWidth}px`}));function c(){o.isDisabled||(s.value=!s.value)}function d(f){i.value&&!i.value.contains(f.target)&&(s.value=!1)}function u(f,h){o.isMultipleOption?r.value=-1:(r.value=h,s.value=!1),n.value=f,a("input",n.value),a("update:modelValue",n.value)}function m(){s.value=!1,a("click-ready")}return t.onMounted(()=>{document.addEventListener("click",d)}),t.onBeforeMount(()=>{document.removeEventListener("click",d)}),(f,h)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"dropDown",ref:i,class:"gsc-dropdown",style:t.normalizeStyle(l.value)},[t.createElementVNode("div",{class:"gsc-dropdown__main-container",style:t.normalizeStyle({"padding-right":`${e.arrowWidth+8}px`}),onClick:c},[t.createElementVNode("div",T2,[t.renderSlot(f.$slots,"default",{selectedItem:n.value})]),t.createElementVNode("div",{class:t.normalizeClass(["gsc-dropdown__main-container__icon",{"rotated-180":s.value}]),style:t.normalizeStyle(p.value)},[(t.openBlock(),t.createElementBlock("svg",{height:e.arrowHeight,width:e.arrowWidth,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.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,V2)],8,O2))],6)],4),t.createVNode(t.Transition,null,{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("div",$2,[t.createElementVNode("div",null,[t.createElementVNode("div",{class:"gsc-dropdown__items",style:t.normalizeStyle({"margin-top":`${o.borderWidth}px`})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(g,y)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["gsc-dropdown__items__item",{selected:y===r.value}]),key:y,onClick:C=>u(g,y)},[t.renderSlot(f.$slots,"availableItem",{item:g})],10,A2))),128))],4),e.isFooterVisible?(t.openBlock(),t.createElementBlock("div",z2,[t.createVNode(t.unref(x2),{"text-value":"Listo","border-color":"#cbee6b","font-size":"12px",width:"72px",height:"22px","border-radius":"62px","border-width":.8,onClick:m})])):t.createCommentVNode("",!0)])],512),[[t.vShow,s.value]])]),_:3})],4))}},I2=(e,a)=>{const o=e.__vccOpts||e;for(const[n,i]of a)o[n]=i;return o},F2={class:"tournament-select__selected-tournament"},P2={class:"tournament-select__selected-tournament__logo"},L2=["src"],D2={class:"tournament-select__selected-tournament__name"},M2={__name:"GSCTournamentSelect",props:{apiUrl:{type:String,default:"https://kefloixzy1.execute-api.us-west-2.amazonaws.com/prod/gs3/tournaments"},fontFamily:{type:String,default:"Poppins-Light"},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(a=>a in e)},currentSeasonId:{type:Number,default:0}},emits:["input"],setup(e,{emit:a}){const o=e,n=t.ref([]),i=t.computed(()=>{const u={};return o.fontFamily&&(u["font-family"]=`${o.fontFamily}`),u}),r=t.computed(()=>n.value.find(u=>u.seasonsIds.has(o.currentSeasonId))||n.value[0]);async function s(){try{if(o.items&&o.items.length)n.value=[...o.items];else if(o.apiUrl){const u=await p();n.value=u.map(m=>({...m.tournament,seasons:m.seasons,seasonsIds:m.seasons.reduce((f,h)=>(f.add(h.id),f),new Set)})).sort((m,f)=>m.order-f.order)}}catch(u){throw new Error(u)}}function l(u){const m=new XMLHttpRequest,f=`${o.logosUrl}${u}.${o.logoFileType}`;return m.open("HEAD",f,!1),m.send(),m.status!==404}async function p(){try{return(await fetch(o.apiUrl)).json()}catch(u){return Promise.reject(u)}}function c(u){a("input",u)}function d(u){a("input",u)}return t.onMounted(()=>{s()}),(u,m)=>(t.openBlock(),t.createElementBlock("div",{class:"tournament-select",style:t.normalizeStyle(i.value)},[t.createVNode(t.unref(R2),t.mergeProps(o,{"model-value":r.value,items:n.value,onInput:c,"onUpdate:modelValue":d}),{default:t.withCtx(({selectedItem:f})=>[t.createElementVNode("div",F2,[t.createElementVNode("div",P2,[l(f.id)?(t.openBlock(),t.createElementBlock("img",{key:0,src:`${o.logosUrl}${f.id}.${o.logoFileType}`,alt:""},null,8,L2)):t.createCommentVNode("",!0)]),t.createElementVNode("div",D2,t.toDisplayString(f.name),1)])]),availableItem:t.withCtx(({item:f})=>[t.createElementVNode("div",null,t.toDisplayString(f.name),1)]),_:1},16,["model-value","items"])],4))}},j2=I2(M2,[["__scopeId","data-v-355af272"]]),v2=(e,a)=>{const o=e.__vccOpts||e;for(const[n,i]of a)o[n]=i;return o},Ea={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))}}},Vi=()=>{t.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}))},$i=Ea.setup;Ea.setup=$i?(e,a)=>(Vi(),$i(e,a)):Vi;const W2=e=>(t.pushScopeId("data-v-fb269a1e"),e=e(),t.popScopeId(),e),U2=["src"],H2={key:1,class:"text"},G2=["src"],q2={class:"stats"},J2=W2(()=>t.createElementVNode("img",{class:"iconstats",src:"https://az755631.vo.msecnd.net/todoelfut/playdes.png"},null,-1)),Z2={class:"numstats"},X2={class:"leyend"};function K2(e,a,o,n,i,r){return t.openBlock(),t.createElementBlock("div",null,[o.type==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["button",i.status&&o.typeOnOff&&"button-active"]),style:t.normalizeStyle([r.customStyle,i.status&&o.typeOnOff&&r.customActive]),onClick:a[0]||(a[0]=(...s)=>r.btnClick&&r.btnClick(...s))},[o.icon&&o.iconPosition.toLowerCase()==="left"?(t.openBlock(),t.createElementBlock("img",{key:0,class:"icon",style:t.normalizeStyle({width:o.iconSize}),src:o.icon},null,12,U2)):t.createCommentVNode("",!0),o.textValue?(t.openBlock(),t.createElementBlock("div",H2,t.toDisplayString(o.textValue),1)):t.createCommentVNode("",!0),o.icon&&o.iconPosition.toLowerCase()==="right"?(t.openBlock(),t.createElementBlock("img",{key:2,class:"icon",style:t.normalizeStyle({width:o.iconSize}),src:o.icon},null,12,G2)):t.createCommentVNode("",!0)],6)):t.createCommentVNode("",!0),o.type==1?(t.openBlock(),t.createElementBlock("div",{key:1,class:"button-target",onClick:a[1]||(a[1]=(...s)=>r.btnClick&&r.btnClick(...s))},[t.createElementVNode("div",q2,[J2,t.createElementVNode("div",Z2,t.toDisplayString(o.textStat),1)]),t.createElementVNode("div",X2,t.toDisplayString(o.textCategory),1)])):t.createCommentVNode("",!0)])}const Y2=v2(Ea,[["render",K2],["__scopeId","data-v-fb269a1e"]]),Q2={class:"gsc-dropdown__main-container__item-selected"},eb=["height","width"],tb=["stroke"],ob={class:"gsc-dropdown__items-container"},ab=["onClick"],nb={key:0,class:"gsc-dropdown__items-footer"},rb={__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(a=>a 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:a}){const o=e,n=t.ref({}),i=t.ref(null),r=t.ref(o.isMultipleOption?-1:0),s=t.ref(!1);t.watch(()=>o.items,(f,h)=>{if(!o.modelValue&&(!o.onlyFirstTime||!h||!h.length)&&f&&f.length){if(o.defaultItemByProp){const g=o.items.findIndex(y=>y[o.defaultItemByProp.propName]===o.defaultItemByProp.value);g!==-1?(r.value=g,n.value=f[g]):(r.value=0,n.value=f[0])}else n.value=f[o.defaultItemByIndex];a("input",n.value)}},{immediate:!0}),t.watch(()=>o.modelValue,f=>{if(f){const h=o.items.findIndex(g=>typeof f=="object"?JSON.stringify(g)===JSON.stringify(f):g===f);h!==-1&&(r.value=h,n.value=o.items[h],a("update:modelValue",n.value))}},{immediate:!0});const l=t.computed(()=>({height:o.height,width:o.width,backgroundColor:o.backgroundColor,borderRadius:`${o.borderRadius}px`,border:`${o.borderType} ${o.borderWidth}px ${o.borderColor}`,color:o.color,"--hover-background-color":o.hoverBackgroundColor,"--list-item-padding":o.listItemPadding,"--list-background-color":o.listBackgroundColor,"--list-height":o.listHeight,"--list-item-selected-color":o.listItemSelectedColor,"--list-item-selected-background-color":o.listItemSelectedBackgroundColor,"--list-item-color":o.listItemColor,"--list-border-radius":`${o.listBorderRadius}`,"--list-border-color":o.listBorderColor,"--list-width":o.isListSameWidth?o.width:"fit-content","--list-border-width":`${o.listBorderWidth}px`,"--footer-border":`${o.footerBorderWidth}px solid ${o.footerBorderColor}`,"--dropdown-opacity":o.isDisabled?"0.5":"1","--dropdown-cursor":o.isDisabled?"not-allowed":"pointer","--dropdown-font-size":o.fontSize?o.fontSize:"14px"})),p=t.computed(()=>({height:`${o.arrowHeight}px`,width:`${o.arrowWidth}px`}));function c(){o.isDisabled||(s.value=!s.value)}function d(f){i.value&&!i.value.contains(f.target)&&(s.value=!1)}function u(f,h){o.isMultipleOption?r.value=-1:(r.value=h,s.value=!1),n.value=f,a("input",n.value),a("update:modelValue",n.value)}function m(){s.value=!1,a("click-ready")}return t.onMounted(()=>{document.addEventListener("click",d)}),t.onBeforeMount(()=>{document.removeEventListener("click",d)}),(f,h)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"dropDown",ref:i,class:"gsc-dropdown",style:t.normalizeStyle(l.value)},[t.createElementVNode("div",{class:"gsc-dropdown__main-container",style:t.normalizeStyle({"padding-right":`${e.arrowWidth+8}px`}),onClick:c},[t.createElementVNode("div",Q2,[t.renderSlot(f.$slots,"default",{selectedItem:n.value})]),t.createElementVNode("div",{class:t.normalizeClass(["gsc-dropdown__main-container__icon",{"rotated-180":s.value}]),style:t.normalizeStyle(p.value)},[(t.openBlock(),t.createElementBlock("svg",{height:e.arrowHeight,width:e.arrowWidth,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.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,tb)],8,eb))],6)],4),t.createVNode(t.Transition,null,{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("div",ob,[t.createElementVNode("div",null,[t.createElementVNode("div",{class:"gsc-dropdown__items",style:t.normalizeStyle({"margin-top":`${o.borderWidth}px`})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(g,y)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["gsc-dropdown__items__item",{selected:y===r.value}]),key:y,onClick:C=>u(g,y)},[t.renderSlot(f.$slots,"availableItem",{item:g})],10,ab))),128))],4),e.isFooterVisible?(t.openBlock(),t.createElementBlock("div",nb,[t.createVNode(t.unref(Y2),{"text-value":"Listo","border-color":"#cbee6b","font-size":"12px",width:"72px",height:"22px","border-radius":"62px","border-width":.8,onClick:m})])):t.createCommentVNode("",!0)])],512),[[t.vShow,s.value]])]),_:3})],4))}},ib=(e,a)=>{const o=e.__vccOpts||e;for(const[n,i]of a)o[n]=i;return o},sb={class:"season-name"},lb={class:"items-list-season"},cb={__name:"GSC-SeasonSelect",props:{seasons:{type:Array,default:()=>[]},currentSeasonId:{type:Number,default:0}},emits:["input"],setup(e,{emit:a}){const o=e,n=t.computed(()=>o.seasons.find(s=>s.id===o.currentSeasonId));function i(s){a("input",s)}function r(s){a("input",s)}return(s,l)=>(t.openBlock(),t.createBlock(t.unref(rb),{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:r,"onUpdate:modelValue":i},{default:t.withCtx(({selectedItem:p})=>[t.createElementVNode("div",sb,[t.createElementVNode("span",null,t.toDisplayString(p.name),1)])]),availableItem:t.withCtx(({item:p})=>[t.createElementVNode("span",lb,t.toDisplayString(p.name),1)]),_:1},8,["items","model-value"]))}},db=ib(cb,[["__scopeId","data-v-3a11087d"]]);function Ai(e,a){return function(){return e.apply(a,arguments)}}const{toString:mb}=Object.prototype,{getPrototypeOf:Na}=Object,Zt=(e=>a=>{const o=mb.call(a);return e[o]||(e[o]=o.slice(8,-1).toLowerCase())})(Object.create(null)),Ne=e=>(e=e.toLowerCase(),a=>Zt(a)===e),Xt=e=>a=>typeof a===e,{isArray:Ke}=Array,ut=Xt("undefined");function pb(e){return e!==null&&!ut(e)&&e.constructor!==null&&!ut(e.constructor)&&me(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const zi=Ne("ArrayBuffer");function ub(e){let a;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?a=ArrayBuffer.isView(e):a=e&&e.buffer&&zi(e.buffer),a}const hb=Xt("string"),me=Xt("function"),Ri=Xt("number"),Kt=e=>e!==null&&typeof e=="object",fb=e=>e===!0||e===!1,Yt=e=>{if(Zt(e)!=="object")return!1;const a=Na(e);return(a===null||a===Object.prototype||Object.getPrototypeOf(a)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},gb=Ne("Date"),yb=Ne("File"),bb=Ne("Blob"),wb=Ne("FileList"),_b=e=>Kt(e)&&me(e.pipe),Sb=e=>{let a;return e&&(typeof FormData=="function"&&e instanceof FormData||me(e.append)&&((a=Zt(e))==="formdata"||a==="object"&&me(e.toString)&&e.toString()==="[object FormData]"))},kb=Ne("URLSearchParams"),Cb=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ht(e,a,{allOwnKeys:o=!1}={}){if(e===null||typeof e>"u")return;let n,i;if(typeof e!="object"&&(e=[e]),Ke(e))for(n=0,i=e.length;n<i;n++)a.call(null,e[n],n,e);else{const r=o?Object.getOwnPropertyNames(e):Object.keys(e),s=r.length;let l;for(n=0;n<s;n++)l=r[n],a.call(null,e[l],l,e)}}function Ii(e,a){a=a.toLowerCase();const o=Object.keys(e);let n=o.length,i;for(;n-- >0;)if(i=o[n],a===i.toLowerCase())return i;return null}const Fi=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Pi=e=>!ut(e)&&e!==Fi;function xa(){const{caseless:e}=Pi(this)&&this||{},a={},o=(n,i)=>{const r=e&&Ii(a,i)||i;Yt(a[r])&&Yt(n)?a[r]=xa(a[r],n):Yt(n)?a[r]=xa({},n):Ke(n)?a[r]=n.slice():a[r]=n};for(let n=0,i=arguments.length;n<i;n++)arguments[n]&&ht(arguments[n],o);return a}const Bb=(e,a,o,{allOwnKeys:n}={})=>(ht(a,(i,r)=>{o&&me(i)?e[r]=Ai(i,o):e[r]=i},{allOwnKeys:n}),e),Eb=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Nb=(e,a,o,n)=>{e.prototype=Object.create(a.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:a.prototype}),o&&Object.assign(e.prototype,o)},xb=(e,a,o,n)=>{let i,r,s;const l={};if(a=a||{},e==null)return a;do{for(i=Object.getOwnPropertyNames(e),r=i.length;r-- >0;)s=i[r],(!n||n(s,e,a))&&!l[s]&&(a[s]=e[s],l[s]=!0);e=o!==!1&&Na(e)}while(e&&(!o||o(e,a))&&e!==Object.prototype);return a},Tb=(e,a,o)=>{e=String(e),(o===void 0||o>e.length)&&(o=e.length),o-=a.length;const n=e.indexOf(a,o);return n!==-1&&n===o},Ob=e=>{if(!e)return null;if(Ke(e))return e;let a=e.length;if(!Ri(a))return null;const o=new Array(a);for(;a-- >0;)o[a]=e[a];return o},Vb=(e=>a=>e&&a instanceof e)(typeof Uint8Array<"u"&&Na(Uint8Array)),$b=(e,a)=>{const o=(e&&e[Symbol.iterator]).call(e);let n;for(;(n=o.next())&&!n.done;){const i=n.value;a.call(e,i[0],i[1])}},Ab=(e,a)=>{let o;const n=[];for(;(o=e.exec(a))!==null;)n.push(o);return n},zb=Ne("HTMLFormElement"),Rb=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(a,o,n){return o.toUpperCase()+n}),Li=(({hasOwnProperty:e})=>(a,o)=>e.call(a,o))(Object.prototype),Ib=Ne("RegExp"),Di=(e,a)=>{const o=Object.getOwnPropertyDescriptors(e),n={};ht(o,(i,r)=>{let s;(s=a(i,r,e))!==!1&&(n[r]=s||i)}),Object.defineProperties(e,n)},Fb=e=>{Di(e,(a,o)=>{if(me(e)&&["arguments","caller","callee"].indexOf(o)!==-1)return!1;const n=e[o];if(me(n)){if(a.enumerable=!1,"writable"in a){a.writable=!1;return}a.set||(a.set=()=>{throw Error("Can not rewrite read-only method '"+o+"'")})}})},Pb=(e,a)=>{const o={},n=i=>{i.forEach(r=>{o[r]=!0})};return Ke(e)?n(e):n(String(e).split(a)),o},Lb=()=>{},Db=(e,a)=>(e=+e,Number.isFinite(e)?e:a),Ta="abcdefghijklmnopqrstuvwxyz",Mi="0123456789",ji={DIGIT:Mi,ALPHA:Ta,ALPHA_DIGIT:Ta+Ta.toUpperCase()+Mi},Mb=(e=16,a=ji.ALPHA_DIGIT)=>{let o="";const{length:n}=a;for(;e--;)o+=a[Math.random()*n|0];return o};function jb(e){return!!(e&&me(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const vb=e=>{const a=new Array(10),o=(n,i)=>{if(Kt(n)){if(a.indexOf(n)>=0)return;if(!("toJSON"in n)){a[i]=n;const r=Ke(n)?[]:{};return ht(n,(s,l)=>{const p=o(s,i+1);!ut(p)&&(r[l]=p)}),a[i]=void 0,r}}return n};return o(e,0)},Wb=Ne("AsyncFunction"),Ub=e=>e&&(Kt(e)||me(e))&&me(e.then)&&me(e.catch),k={isArray:Ke,isArrayBuffer:zi,isBuffer:pb,isFormData:Sb,isArrayBufferView:ub,isString:hb,isNumber:Ri,isBoolean:fb,isObject:Kt,isPlainObject:Yt,isUndefined:ut,isDate:gb,isFile:yb,isBlob:bb,isRegExp:Ib,isFunction:me,isStream:_b,isURLSearchParams:kb,isTypedArray:Vb,isFileList:wb,forEach:ht,merge:xa,extend:Bb,trim:Cb,stripBOM:Eb,inherits:Nb,toFlatObject:xb,kindOf:Zt,kindOfTest:Ne,endsWith:Tb,toArray:Ob,forEachEntry:$b,matchAll:Ab,isHTMLForm:zb,hasOwnProperty:Li,hasOwnProp:Li,reduceDescriptors:Di,freezeMethods:Fb,toObjectSet:Pb,toCamelCase:Rb,noop:Lb,toFiniteNumber:Db,findKey:Ii,global:Fi,isContextDefined:Pi,ALPHABET:ji,generateString:Mb,isSpecCompliantForm:jb,toJSONObject:vb,isAsyncFn:Wb,isThenable:Ub};function M(e,a,o,n,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",a&&(this.code=a),o&&(this.config=o),n&&(this.request=n),i&&(this.response=i)}k.inherits(M,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:k.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const vi=M.prototype,Wi={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Wi[e]={value:e}}),Object.defineProperties(M,Wi),Object.defineProperty(vi,"isAxiosError",{value:!0}),M.from=(e,a,o,n,i,r)=>{const s=Object.create(vi);return k.toFlatObject(e,s,function(l){return l!==Error.prototype},l=>l!=="isAxiosError"),M.call(s,e.message,a,o,n,i),s.cause=e,s.name=e.name,r&&Object.assign(s,r),s};const Hb=null;function Oa(e){return k.isPlainObject(e)||k.isArray(e)}function Ui(e){return k.endsWith(e,"[]")?e.slice(0,-2):e}function Hi(e,a,o){return e?e.concat(a).map(function(n,i){return n=Ui(n),!o&&i?"["+n+"]":n}).join(o?".":""):a}function Gb(e){return k.isArray(e)&&!e.some(Oa)}const qb=k.toFlatObject(k,{},null,function(e){return/^is[A-Z]/.test(e)});function Qt(e,a,o){if(!k.isObject(e))throw new TypeError("target must be an object");a=a||new FormData,o=k.toFlatObject(o,{metaTokens:!0,dots:!1,indexes:!1},!1,function(f,h){return!k.isUndefined(h[f])});const n=o.metaTokens,i=o.visitor||c,r=o.dots,s=o.indexes,l=(o.Blob||typeof Blob<"u"&&Blob)&&k.isSpecCompliantForm(a);if(!k.isFunction(i))throw new TypeError("visitor must be a function");function p(f){if(f===null)return"";if(k.isDate(f))return f.toISOString();if(!l&&k.isBlob(f))throw new M("Blob is not supported. Use a Buffer instead.");return k.isArrayBuffer(f)||k.isTypedArray(f)?l&&typeof Blob=="function"?new Blob([f]):Buffer.from(f):f}function c(f,h,g){let y=f;if(f&&!g&&typeof f=="object"){if(k.endsWith(h,"{}"))h=n?h:h.slice(0,-2),f=JSON.stringify(f);else if(k.isArray(f)&&Gb(f)||(k.isFileList(f)||k.endsWith(h,"[]"))&&(y=k.toArray(f)))return h=Ui(h),y.forEach(function(C,O){!(k.isUndefined(C)||C===null)&&a.append(s===!0?Hi([h],O,r):s===null?h:h+"[]",p(C))}),!1}return Oa(f)?!0:(a.append(Hi(g,h,r),p(f)),!1)}const d=[],u=Object.assign(qb,{defaultVisitor:c,convertValue:p,isVisitable:Oa});function m(f,h){if(!k.isUndefined(f)){if(d.indexOf(f)!==-1)throw Error("Circular reference detected in "+h.join("."));d.push(f),k.forEach(f,function(g,y){(!(k.isUndefined(g)||g===null)&&i.call(a,g,k.isString(y)?y.trim():y,h,u))===!0&&m(g,h?h.concat(y):[y])}),d.pop()}}if(!k.isObject(e))throw new TypeError("data must be an object");return m(e),a}function Gi(e){const a={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(o){return a[o]})}function Va(e,a){this._pairs=[],e&&Qt(e,this,a)}const qi=Va.prototype;qi.append=function(e,a){this._pairs.push([e,a])},qi.toString=function(e){const a=e?function(o){return e.call(this,o,Gi)}:Gi;return this._pairs.map(function(o){return a(o[0])+"="+a(o[1])},"").join("&")};function Jb(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Ji(e,a,o){if(!a)return e;const n=o&&o.encode||Jb,i=o&&o.serialize;let r;if(i?r=i(a,o):r=k.isURLSearchParams(a)?a.toString():new Va(a,o).toString(n),r){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+r}return e}class Zb{constructor(){this.handlers=[]}use(a,o,n){return this.handlers.push({fulfilled:a,rejected:o,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(a){this.handlers[a]&&(this.handlers[a]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(a){k.forEach(this.handlers,function(o){o!==null&&a(o)})}}const Zi=Zb,Xi={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Xb=typeof URLSearchParams<"u"?URLSearchParams:Va,Kb=typeof FormData<"u"?FormData:null,Yb=typeof Blob<"u"?Blob:null,Qb=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),ew=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",xe={isBrowser:!0,classes:{URLSearchParams:Xb,FormData:Kb,Blob:Yb},isStandardBrowserEnv:Qb,isStandardBrowserWebWorkerEnv:ew,protocols:["http","https","file","blob","url","data"]};function tw(e,a){return Qt(e,new xe.classes.URLSearchParams,Object.assign({visitor:function(o,n,i,r){return xe.isNode&&k.isBuffer(o)?(this.append(n,o.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},a))}function ow(e){return k.matchAll(/\w+|\[(\w*)]/g,e).map(a=>a[0]==="[]"?"":a[1]||a[0])}function aw(e){const a={},o=Object.keys(e);let n;const i=o.length;let r;for(n=0;n<i;n++)r=o[n],a[r]=e[r];return a}function Ki(e){function a(o,n,i,r){let s=o[r++];const l=Number.isFinite(+s),p=r>=o.length;return s=!s&&k.isArray(i)?i.length:s,p?(k.hasOwnProp(i,s)?i[s]=[i[s],n]:i[s]=n,!l):((!i[s]||!k.isObject(i[s]))&&(i[s]=[]),a(o,n,i[s],r)&&k.isArray(i[s])&&(i[s]=aw(i[s])),!l)}if(k.isFormData(e)&&k.isFunction(e.entries)){const o={};return k.forEachEntry(e,(n,i)=>{a(ow(n),i,o,0)}),o}return null}function nw(e,a,o){if(k.isString(e))try{return(a||JSON.parse)(e),k.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(o||JSON.stringify)(e)}const $a={transitional:Xi,adapter:["xhr","http"],transformRequest:[function(e,a){const o=a.getContentType()||"",n=o.indexOf("application/json")>-1,i=k.isObject(e);if(i&&k.isHTMLForm(e)&&(e=new FormData(e)),k.isFormData(e))return n&&n?JSON.stringify(Ki(e)):e;if(k.isArrayBuffer(e)||k.isBuffer(e)||k.isStream(e)||k.isFile(e)||k.isBlob(e))return e;if(k.isArrayBufferView(e))return e.buffer;if(k.isURLSearchParams(e))return a.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let r;if(i){if(o.indexOf("application/x-www-form-urlencoded")>-1)return tw(e,this.formSerializer).toString();if((r=k.isFileList(e))||o.indexOf("multipart/form-data")>-1){const s=this.env&&this.env.FormData;return Qt(r?{"files[]":e}:e,s&&new s,this.formSerializer)}}return i||n?(a.setContentType("application/json",!1),nw(e)):e}],transformResponse:[function(e){const a=this.transitional||$a.transitional,o=a&&a.forcedJSONParsing,n=this.responseType==="json";if(e&&k.isString(e)&&(o&&!this.responseType||n)){const i=!(a&&a.silentJSONParsing)&&n;try{return JSON.parse(e)}catch(r){if(i)throw r.name==="SyntaxError"?M.from(r,M.ERR_BAD_RESPONSE,this,null,this.response):r}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:xe.classes.FormData,Blob:xe.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};k.forEach(["delete","get","head","post","put","patch"],e=>{$a.headers[e]={}});const Aa=$a,rw=k.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),iw=e=>{const a={};let o,n,i;return e&&e.split(`
|
|
29
29
|
`).forEach(function(r){i=r.indexOf(":"),o=r.substring(0,i).trim().toLowerCase(),n=r.substring(i+1).trim(),!(!o||a[o]&&rw[o])&&(o==="set-cookie"?a[o]?a[o].push(n):a[o]=[n]:a[o]=a[o]?a[o]+", "+n:n)}),a},Yi=Symbol("internals");function ft(e){return e&&String(e).trim().toLowerCase()}function eo(e){return e===!1||e==null?e:k.isArray(e)?e.map(eo):String(e)}function sw(e){const a=Object.create(null),o=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=o.exec(e);)a[n[1]]=n[2];return a}const lw=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function za(e,a,o,n,i){if(k.isFunction(n))return n.call(this,a,o);if(i&&(a=o),!!k.isString(a)){if(k.isString(n))return a.indexOf(n)!==-1;if(k.isRegExp(n))return n.test(a)}}function cw(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(a,o,n)=>o.toUpperCase()+n)}function dw(e,a){const o=k.toCamelCase(" "+a);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+o,{value:function(i,r,s){return this[n].call(this,a,i,r,s)},configurable:!0})})}class to{constructor(a){a&&this.set(a)}set(a,o,n){const i=this;function r(l,p,c){const d=ft(p);if(!d)throw new Error("header name must be a non-empty string");const u=k.findKey(i,d);(!u||i[u]===void 0||c===!0||c===void 0&&i[u]!==!1)&&(i[u||p]=eo(l))}const s=(l,p)=>k.forEach(l,(c,d)=>r(c,d,p));return k.isPlainObject(a)||a instanceof this.constructor?s(a,o):k.isString(a)&&(a=a.trim())&&!lw(a)?s(iw(a),o):a!=null&&r(o,a,n),this}get(a,o){if(a=ft(a),a){const n=k.findKey(this,a);if(n){const i=this[n];if(!o)return i;if(o===!0)return sw(i);if(k.isFunction(o))return o.call(this,i,n);if(k.isRegExp(o))return o.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(a,o){if(a=ft(a),a){const n=k.findKey(this,a);return!!(n&&this[n]!==void 0&&(!o||za(this,this[n],n,o)))}return!1}delete(a,o){const n=this;let i=!1;function r(s){if(s=ft(s),s){const l=k.findKey(n,s);l&&(!o||za(n,n[l],l,o))&&(delete n[l],i=!0)}}return k.isArray(a)?a.forEach(r):r(a),i}clear(a){const o=Object.keys(this);let n=o.length,i=!1;for(;n--;){const r=o[n];(!a||za(this,this[r],r,a,!0))&&(delete this[r],i=!0)}return i}normalize(a){const o=this,n={};return k.forEach(this,(i,r)=>{const s=k.findKey(n,r);if(s){o[s]=eo(i),delete o[r];return}const l=a?cw(r):String(r).trim();l!==r&&delete o[r],o[l]=eo(i),n[l]=!0}),this}concat(...a){return this.constructor.concat(this,...a)}toJSON(a){const o=Object.create(null);return k.forEach(this,(n,i)=>{n!=null&&n!==!1&&(o[i]=a&&k.isArray(n)?n.join(", "):n)}),o}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([a,o])=>a+": "+o).join(`
|
|
30
30
|
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(a){return a instanceof this?a:new this(a)}static concat(a,...o){const n=new this(a);return o.forEach(i=>n.set(i)),n}static accessor(a){const o=(this[Yi]=this[Yi]={accessors:{}}).accessors,n=this.prototype;function i(r){const s=ft(r);o[s]||(dw(n,r),o[s]=!0)}return k.isArray(a)?a.forEach(i):i(a),this}}to.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),k.reduceDescriptors(to.prototype,({value:e},a)=>{let o=a[0].toUpperCase()+a.slice(1);return{get:()=>e,set(n){this[o]=n}}}),k.freezeMethods(to);const $e=to;function Ra(e,a){const o=this||Aa,n=a||o,i=$e.from(n.headers);let r=n.data;return k.forEach(e,function(s){r=s.call(o,r,i.normalize(),a?a.status:void 0)}),i.normalize(),r}function Qi(e){return!!(e&&e.__CANCEL__)}function gt(e,a,o){M.call(this,e??"canceled",M.ERR_CANCELED,a,o),this.name="CanceledError"}k.inherits(gt,M,{__CANCEL__:!0});function mw(e,a,o){const n=o.config.validateStatus;!o.status||!n||n(o.status)?e(o):a(new M("Request failed with status code "+o.status,[M.ERR_BAD_REQUEST,M.ERR_BAD_RESPONSE][Math.floor(o.status/100)-4],o.config,o.request,o))}const pw=xe.isStandardBrowserEnv?function(){return{write:function(e,a,o,n,i,r){const s=[];s.push(e+"="+encodeURIComponent(a)),k.isNumber(o)&&s.push("expires="+new Date(o).toGMTString()),k.isString(n)&&s.push("path="+n),k.isString(i)&&s.push("domain="+i),r===!0&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){const a=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return a?decodeURIComponent(a[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function uw(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function hw(e,a){return a?e.replace(/\/+$/,"")+"/"+a.replace(/^\/+/,""):e}function es(e,a){return e&&!uw(a)?hw(e,a):a}const fw=xe.isStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),a=document.createElement("a");let o;function n(i){let r=i;return e&&(a.setAttribute("href",r),r=a.href),a.setAttribute("href",r),{href:a.href,protocol:a.protocol?a.protocol.replace(/:$/,""):"",host:a.host,search:a.search?a.search.replace(/^\?/,""):"",hash:a.hash?a.hash.replace(/^#/,""):"",hostname:a.hostname,port:a.port,pathname:a.pathname.charAt(0)==="/"?a.pathname:"/"+a.pathname}}return o=n(window.location.href),function(i){const r=k.isString(i)?n(i):i;return r.protocol===o.protocol&&r.host===o.host}}():function(){return function(){return!0}}();function gw(e){const a=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return a&&a[1]||""}function yw(e,a){e=e||10;const o=new Array(e),n=new Array(e);let i=0,r=0,s;return a=a!==void 0?a:1e3,function(l){const p=Date.now(),c=n[r];s||(s=p),o[i]=l,n[i]=p;let d=r,u=0;for(;d!==i;)u+=o[d++],d=d%e;if(i=(i+1)%e,i===r&&(r=(r+1)%e),p-s<a)return;const m=c&&p-c;return m?Math.round(u*1e3/m):void 0}}function ts(e,a){let o=0;const n=yw(50,250);return i=>{const r=i.loaded,s=i.lengthComputable?i.total:void 0,l=r-o,p=n(l),c=r<=s;o=r;const d={loaded:r,total:s,progress:s?r/s:void 0,bytes:l,rate:p||void 0,estimated:p&&s&&c?(s-r)/p:void 0,event:i};d[a?"download":"upload"]=!0,e(d)}}const bw=typeof XMLHttpRequest<"u",ww=bw&&function(e){return new Promise(function(a,o){let n=e.data;const i=$e.from(e.headers).normalize(),r=e.responseType;let s;function l(){e.cancelToken&&e.cancelToken.unsubscribe(s),e.signal&&e.signal.removeEventListener("abort",s)}let p;k.isFormData(n)&&(xe.isStandardBrowserEnv||xe.isStandardBrowserWebWorkerEnv?i.setContentType(!1):i.getContentType(/^\s*multipart\/form-data/)?k.isString(p=i.getContentType())&&i.setContentType(p.replace(/^\s*(multipart\/form-data);+/,"$1")):i.setContentType("multipart/form-data"));let c=new XMLHttpRequest;if(e.auth){const f=e.auth.username||"",h=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.set("Authorization","Basic "+btoa(f+":"+h))}const d=es(e.baseURL,e.url);c.open(e.method.toUpperCase(),Ji(d,e.params,e.paramsSerializer),!0),c.timeout=e.timeout;function u(){if(!c)return;const f=$e.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders()),h={data:!r||r==="text"||r==="json"?c.responseText:c.response,status:c.status,statusText:c.statusText,headers:f,config:e,request:c};mw(function(g){a(g),l()},function(g){o(g),l()},h),c=null}if("onloadend"in c?c.onloadend=u:c.onreadystatechange=function(){!c||c.readyState!==4||c.status===0&&!(c.responseURL&&c.responseURL.indexOf("file:")===0)||setTimeout(u)},c.onabort=function(){c&&(o(new M("Request aborted",M.ECONNABORTED,e,c)),c=null)},c.onerror=function(){o(new M("Network Error",M.ERR_NETWORK,e,c)),c=null},c.ontimeout=function(){let f=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const h=e.transitional||Xi;e.timeoutErrorMessage&&(f=e.timeoutErrorMessage),o(new M(f,h.clarifyTimeoutError?M.ETIMEDOUT:M.ECONNABORTED,e,c)),c=null},xe.isStandardBrowserEnv){const f=(e.withCredentials||fw(d))&&e.xsrfCookieName&&pw.read(e.xsrfCookieName);f&&i.set(e.xsrfHeaderName,f)}n===void 0&&i.setContentType(null),"setRequestHeader"in c&&k.forEach(i.toJSON(),function(f,h){c.setRequestHeader(h,f)}),k.isUndefined(e.withCredentials)||(c.withCredentials=!!e.withCredentials),r&&r!=="json"&&(c.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&c.addEventListener("progress",ts(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&c.upload&&c.upload.addEventListener("progress",ts(e.onUploadProgress)),(e.cancelToken||e.signal)&&(s=f=>{c&&(o(!f||f.type?new gt(null,e,c):f),c.abort(),c=null)},e.cancelToken&&e.cancelToken.subscribe(s),e.signal&&(e.signal.aborted?s():e.signal.addEventListener("abort",s)));const m=gw(d);if(m&&xe.protocols.indexOf(m)===-1){o(new M("Unsupported protocol "+m+":",M.ERR_BAD_REQUEST,e));return}c.send(n||null)})},Ia={http:Hb,xhr:ww};k.forEach(Ia,(e,a)=>{if(e){try{Object.defineProperty(e,"name",{value:a})}catch{}Object.defineProperty(e,"adapterName",{value:a})}});const os=e=>`- ${e}`,_w=e=>k.isFunction(e)||e===null||e===!1,as={getAdapter:e=>{e=k.isArray(e)?e:[e];const{length:a}=e;let o,n;const i={};for(let r=0;r<a;r++){o=e[r];let s;if(n=o,!_w(o)&&(n=Ia[(s=String(o)).toLowerCase()],n===void 0))throw new M(`Unknown adapter '${s}'`);if(n)break;i[s||"#"+r]=n}if(!n){const r=Object.entries(i).map(([l,p])=>`adapter ${l} `+(p===!1?"is not supported by the environment":"is not available in the build"));let s=a?r.length>1?`since :
|
|
31
31
|
`+r.map(os).join(`
|