@golstats/gsc-landing 1.0.61 → 1.0.62

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.
@@ -14207,6 +14207,9 @@ const Fw = /* @__PURE__ */ ot(Oi, [["render", Tw], ["__scopeId", "data-v-c2ae0cf
14207
14207
  const a = this.categorySelected !== null ? this.categorySelected : 1;
14208
14208
  this.optionSelected = e, e == "Equipos" ? (await this.getCategoryStats(this.season, 1, a), this.isTeam = !0) : this.isTeam = !1;
14209
14209
  },
14210
+ compareObjectsMinutes(e, a) {
14211
+ return e.total > a.total ? -1 : e.total < a.total ? 1 : e.minutes < a.minutes ? -1 : e.minutes > a.minutes ? 1 : 0;
14212
+ },
14210
14213
  changeCategory(e) {
14211
14214
  this.categoryName = e;
14212
14215
  const a = this.categories.find((t) => t.name === e);
@@ -14225,7 +14228,7 @@ const Fw = /* @__PURE__ */ ot(Oi, [["render", Tw], ["__scopeId", "data-v-c2ae0cf
14225
14228
  o.data.teams.map((l) => {
14226
14229
  n[l[0]] = {}, n[l[0]].id = l[0], n[l[0]].name = l[1], n[l[0]].img = l[3], n[l[0]].abrv = l[2], n[l[0]].logo = l[3];
14227
14230
  }), o.data.players.map((l) => {
14228
- s[l[0]] = {}, s[l[0]].id = l[0], s[l[0]].name = l[1], s[l[0]].img = l[2], s[l[0]].position = l[6], s[l[0]].logo = "https://az755631.vo.msecnd.net/teams-80/" + l[10][0].team_id + ".png";
14231
+ s[l[0]] = {}, s[l[0]].id = l[0], s[l[0]].name = l[1], s[l[0]].img = l[2], s[l[0]].position = l[6], s[l[0]].minutes = l[13], s[l[0]].logo = "https://az755631.vo.msecnd.net/teams-80/" + l[10][0].team_id + ".png";
14229
14232
  });
14230
14233
  var i = 1;
14231
14234
  o.data.tops.map((l) => {
@@ -14234,7 +14237,7 @@ const Fw = /* @__PURE__ */ ot(Oi, [["render", Tw], ["__scopeId", "data-v-c2ae0cf
14234
14237
  l.teams.map((h) => {
14235
14238
  c[h[0]] = {}, c[h[0]].total = h[1], c[h[0]].id = n[h[0]].id, c[h[0]].name = n[h[0]].name, c[h[0]].img = "https://az755631.vo.msecnd.net/teams-150/" + h[0] + ".png", c[h[0]].logo = "https://az755631.vo.msecnd.net/teams-80/" + h[0] + ".png";
14236
14239
  }), l.players.map((h) => {
14237
- p[h[0]] = {}, p[h[0]].total = h[1], p[h[0]].name = s[h[0]].name, p[h[0]].img = s[h[0]].img.replace(
14240
+ p[h[0]] = {}, p[h[0]].minutes = s[h[0]].minutes, p[h[0]].total = h[1], p[h[0]].name = s[h[0]].name, p[h[0]].img = s[h[0]].img.replace(
14238
14241
  "players-profile/",
14239
14242
  "players-profile/"
14240
14243
  ), p[h[0]].id = s[h[0]].id, p[h[0]].position = this.positions[s[h[0]].position - 1].name, p[h[0]].logo = s[h[0]].logo;
@@ -14244,7 +14247,7 @@ const Fw = /* @__PURE__ */ ot(Oi, [["render", Tw], ["__scopeId", "data-v-c2ae0cf
14244
14247
  y.push(c[h]);
14245
14248
  for (const h in p)
14246
14249
  d.push(p[h]);
14247
- y.sort((h, g) => h.total < g.total ? 1 : -1), d.sort((h, g) => h.total < g.total ? 1 : -1), r[l.category ? l.category : i].top__players = d, r[l.category ? l.category : i].top__teams = y, i++;
14250
+ y.sort((h, g) => h.total < g.total ? 1 : -1), d = d.sort(this.compareObjectsMinutes).slice(0, 60), r[l.category ? l.category : i].top__players = d, r[l.category ? l.category : i].top__teams = y, i++;
14248
14251
  });
14249
14252
  }
14250
14253
  t === 0 ? this.categorySelected = 1 : this.categorySelected = t, this.categoryData = r;
@@ -14255,15 +14258,15 @@ const Fw = /* @__PURE__ */ ot(Oi, [["render", Tw], ["__scopeId", "data-v-c2ae0cf
14255
14258
  }
14256
14259
  }, dr = () => {
14257
14260
  Te((e) => ({
14258
- "7a5b0a28": e.backgroundColor,
14259
- "292ba61c": e.fontFamily,
14260
- "510c78b9": e.fontSize,
14261
- "60b8a4aa": e.fontColor,
14262
- d5d221be: e.marginMosaic
14261
+ "5a58e743": e.backgroundColor,
14262
+ "58aac136": e.fontFamily,
14263
+ d7499f7c: e.fontSize,
14264
+ "13a8317c": e.fontColor,
14265
+ c8868bac: e.marginMosaic
14263
14266
  }));
14264
14267
  }, ur = Bi.setup;
14265
14268
  Bi.setup = ur ? (e, a) => (dr(), ur(e, a)) : dr;
14266
- const zw = (e) => (ve("data-v-a5fb54bf"), e = e(), we(), e), Pw = {
14269
+ const zw = (e) => (ve("data-v-22425344"), e = e(), we(), e), Pw = {
14267
14270
  class: "gsc-best",
14268
14271
  ref: "myDivRef"
14269
14272
  }, jw = { class: "gsc-best__line-bar-tools" }, Ew = {
@@ -14462,7 +14465,7 @@ function Zw(e, a, t, o, i, n) {
14462
14465
  ])
14463
14466
  ], 512);
14464
14467
  }
14465
- const Qw = /* @__PURE__ */ ot(Bi, [["render", Zw], ["__scopeId", "data-v-a5fb54bf"]]);
14468
+ const Qw = /* @__PURE__ */ ot(Bi, [["render", Zw], ["__scopeId", "data-v-22425344"]]);
14466
14469
  /**
14467
14470
  * Vue 3 Carousel 0.3.1
14468
14471
  * (c) 2023
@@ -29,7 +29,7 @@
29
29
  * Vue 3 Carousel 0.3.1
30
30
  * (c) 2023
31
31
  * @license MIT
32
- */const ye={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"}},Gr={itemsToShow:{default:ye.itemsToShow,type:Number},itemsToScroll:{default:ye.itemsToScroll,type:Number},wrapAround:{default:ye.wrapAround,type:Boolean},throttle:{default:ye.throttle,type:Number},snapAlign:{default:ye.snapAlign,validator(e){return["start","end","center","center-even","center-odd"].includes(e)}},transition:{default:ye.transition,type:Number},breakpoints:{default:ye.breakpoints,type:Object},autoplay:{default:ye.autoplay,type:Number},pauseAutoplayOnHover:{default:ye.pauseAutoplayOnHover,type:Boolean},modelValue:{default:void 0,type:Number},mouseDrag:{default:ye.mouseDrag,type:Boolean},touchDrag:{default:ye.touchDrag,type:Boolean},dir:{default:ye.dir,validator(e){return["rtl","ltr"].includes(e)}},i18n:{default:ye.i18n,type:Object},settings:{default(){return{}},type:Object}};function g2({config:e,slidesCount:a}){const{snapAlign:t,wrapAround:n,itemsToShow:s=1}=e;if(n)return Math.max(a-1,0);let i;switch(t){case"start":i=a-s;break;case"end":i=a-1;break;case"center":case"center-odd":i=a-Math.ceil((s-.5)/2);break;case"center-even":i=a-Math.ceil(s/2);break;default:i=0;break}return Math.max(i,0)}function f2({config:e,slidesCount:a}){const{wrapAround:t,snapAlign:n,itemsToShow:s=1}=e;let i=0;if(t||s>a)return i;switch(n){case"start":i=0;break;case"end":i=s-1;break;case"center":case"center-odd":i=Math.floor((s-1)/2);break;case"center-even":i=Math.floor((s-2)/2);break;default:i=0;break}return i}function fn({val:e,max:a,min:t}){return a<t?e:Math.min(Math.max(e,t),a)}function y2({config:e,currentSlide:a,slidesCount:t}){const{snapAlign:n,wrapAround:s,itemsToShow:i=1}=e;let r=a;switch(n){case"center":case"center-odd":r-=(i-1)/2;break;case"center-even":r-=(i-2)/2;break;case"end":r-=i-1;break}return s?r:fn({val:r,max:t-i,min:0})}function Hr(e){return e?e.reduce((a,t)=>{var n;return t.type===o.Fragment?[...a,...Hr(t.children)]:((n=t.type)===null||n===void 0?void 0:n.name)==="CarouselSlide"?[...a,t]:a},[]):[]}function yn({val:e,max:a,min:t=0}){return e>a?yn({val:e-(a+1),max:a,min:t}):e<t?yn({val:e+(a+1),max:a,min:t}):e}function b2(e,a){let t;return a?function(...n){const s=this;t||(e.apply(s,n),t=!0,setTimeout(()=>t=!1,a))}:e}function w2(e,a){let t;return function(...n){t&&clearTimeout(t),t=setTimeout(()=>{e(...n),t=null},a)}}function A2(e="",a={}){return Object.entries(a).reduce((t,[n,s])=>t.replace(`{${n}}`,String(s)),e)}var C2=o.defineComponent({name:"ARIA",setup(){const e=o.inject("config",o.reactive(Object.assign({},ye))),a=o.inject("currentSlide",o.ref(0)),t=o.inject("slidesCount",o.ref(0));return()=>o.h("div",{class:["carousel__liveregion","carousel__sr-only"],"aria-live":"polite","aria-atomic":"true"},A2(e.i18n.itemXofY,{currentSlide:a.value+1,slidesCount:t.value}))}}),k2=o.defineComponent({name:"Carousel",props:Gr,setup(e,{slots:a,emit:t,expose:n}){var s;const i=o.ref(null),r=o.ref([]),l=o.ref(0),p=o.ref(0),c=o.reactive(Object.assign({},ye));let d=Object.assign({},ye),u;const f=o.ref((s=e.modelValue)!==null&&s!==void 0?s:0),m=o.ref(0),h=o.ref(0),g=o.ref(0),b=o.ref(0);let A,C;o.provide("config",c),o.provide("slidesCount",p),o.provide("currentSlide",f),o.provide("maxSlide",g),o.provide("minSlide",b),o.provide("slideWidth",l);function z(){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}),K(d)}function P(){if(!u||!Object.keys(u).length)return;const w=Object.keys(u).map(E=>Number(E)).sort((E,H)=>+H-+E);let M=Object.assign({},d);w.some(E=>{const H=window.matchMedia(`(min-width: ${E}px)`).matches;return H&&(M=Object.assign(Object.assign({},M),u[E])),H}),K(M)}function K(w){Object.entries(w).forEach(([M,E])=>c[M]=E)}const Z=w2(()=>{P(),U()},16);function U(){if(!i.value)return;const w=i.value.getBoundingClientRect();l.value=w.width/c.itemsToShow}function ee(){p.value<=0||(h.value=Math.ceil((p.value-1)/2),g.value=g2({config:c,slidesCount:p.value}),b.value=f2({config:c,slidesCount:p.value}),c.wrapAround||(f.value=fn({val:f.value,max:g.value,min:b.value})))}o.onMounted(()=>{o.nextTick(()=>U()),setTimeout(()=>U(),1e3),P(),ve(),window.addEventListener("resize",Z,{passive:!0}),t("init")}),o.onUnmounted(()=>{C&&clearTimeout(C),A&&clearInterval(A),window.removeEventListener("resize",Z,{passive:!0})});let V=!1;const ne={x:0,y:0},se={x:0,y:0},q=o.reactive({x:0,y:0}),re=o.ref(!1),de=o.ref(!1),qe=()=>{re.value=!0},Ze=()=>{re.value=!1};function Ve(w){["INPUT","TEXTAREA","SELECT"].includes(w.target.tagName)||(V=w.type==="touchstart",V||w.preventDefault(),!(!V&&w.button!==0||x.value)&&(ne.x=V?w.touches[0].clientX:w.clientX,ne.y=V?w.touches[0].clientY:w.clientY,document.addEventListener(V?"touchmove":"mousemove",Fe,!0),document.addEventListener(V?"touchend":"mouseup",Ne,!0)))}const Fe=b2(w=>{de.value=!0,se.x=V?w.touches[0].clientX:w.clientX,se.y=V?w.touches[0].clientY:w.clientY;const M=se.x-ne.x,E=se.y-ne.y;q.y=E,q.x=M},c.throttle);function Ne(){const w=c.dir==="rtl"?-1:1,M=Math.sign(q.x)*.4,E=Math.round(q.x/l.value+M)*w;if(E&&!V){const H=we=>{we.stopPropagation(),window.removeEventListener("click",H,!0)};window.addEventListener("click",H,!0)}R(f.value-E),q.x=0,q.y=0,de.value=!1,document.removeEventListener(V?"touchmove":"mousemove",Fe,!0),document.removeEventListener(V?"touchend":"mouseup",Ne,!0)}function ve(){!c.autoplay||c.autoplay<=0||(A=setInterval(()=>{c.pauseAutoplayOnHover&&re.value||v()},c.autoplay))}function j(){A&&(clearInterval(A),A=null),ve()}const x=o.ref(!1);function R(w){const M=c.wrapAround?w:fn({val:w,max:g.value,min:b.value});f.value===M||x.value||(t("slide-start",{slidingToIndex:w,currentSlideIndex:f.value,prevSlideIndex:m.value,slidesCount:p.value}),x.value=!0,m.value=f.value,f.value=M,C=setTimeout(()=>{if(c.wrapAround){const E=yn({val:M,max:g.value,min:0});E!==f.value&&(f.value=E,t("loop",{currentSlideIndex:f.value,slidingToIndex:w}))}t("update:modelValue",f.value),t("slide-end",{currentSlideIndex:f.value,prevSlideIndex:m.value,slidesCount:p.value}),x.value=!1,j()},c.transition))}function v(){R(f.value+c.itemsToScroll)}function N(){R(f.value-c.itemsToScroll)}const I={slideTo:R,next:v,prev:N};o.provide("nav",I),o.provide("isSliding",x);const D=o.computed(()=>y2({config:c,currentSlide:f.value,slidesCount:p.value}));o.provide("slidesToScroll",D);const X=o.computed(()=>{const w=c.dir==="rtl"?-1:1,M=D.value*l.value*w;return{transform:`translateX(${q.x-M}px)`,transition:`${x.value?c.transition:0}ms`,margin:c.wrapAround?`0 -${p.value*l.value}px`:"",width:"100%"}});function ie(){z(),P(),ee(),U(),j()}Object.keys(Gr).forEach(w=>{["modelValue"].includes(w)||o.watch(()=>e[w],ie)}),o.watch(()=>e.modelValue,w=>{w!==f.value&&R(Number(w))}),o.watch(p,ee),t("before-init"),z();const ce={config:c,slidesCount:p,slideWidth:l,next:v,prev:N,slideTo:R,currentSlide:f,maxSlide:g,minSlide:b,middleSlide:h};n({updateBreakpointsConfigs:P,updateSlidesData:ee,updateSlideWidth:U,initDefaultConfigs:z,restartCarousel:ie,slideTo:R,next:v,prev:N,nav:I,data:ce});const Oe=a.default||a.slides,Ee=a.addons,Pe=o.reactive(ce);return()=>{const w=Hr(Oe==null?void 0:Oe(Pe)),M=(Ee==null?void 0:Ee(Pe))||[];w.forEach((Ae,Ce)=>Ae.props.index=Ce);let E=w;if(c.wrapAround){const Ae=w.map((ke,oe)=>o.cloneVNode(ke,{index:-w.length+oe,isClone:!0,key:`clone-before-${oe}`})),Ce=w.map((ke,oe)=>o.cloneVNode(ke,{index:w.length+oe,isClone:!0,key:`clone-after-${oe}`}));E=[...Ae,...w,...Ce]}r.value=w,p.value=Math.max(w.length,1);const H=o.h("ol",{class:"carousel__track",style:X.value,onMousedownCapture:c.mouseDrag?Ve:null,onTouchstartPassiveCapture:c.touchDrag?Ve:null},E),we=o.h("div",{class:"carousel__viewport"},H);return o.h("section",{ref:i,class:{carousel:!0,"is-sliding":x.value,"is-dragging":de.value,"is-hover":re.value,"carousel--rtl":c.dir==="rtl"},dir:c.dir,"aria-label":c.i18n.ariaGallery,tabindex:"0",onMouseenter:qe,onMouseleave:Ze},[we,M,o.h(C2)])}}}),bn;(function(e){e.arrowUp="arrowUp",e.arrowDown="arrowDown",e.arrowRight="arrowRight",e.arrowLeft="arrowLeft"})(bn||(bn={}));const S2={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 B2(e){return e in bn}const wn=e=>{const a=o.inject("config",o.reactive(Object.assign({},ye))),t=String(e.name),n=`icon${t.charAt(0).toUpperCase()+t.slice(1)}`;if(!t||typeof t!="string"||!B2(t))return;const s=S2[t],i=o.h("path",{d:s}),r=a.i18n[n]||e.title||t,l=o.h("title",r);return o.h("svg",{class:"carousel__icon",viewBox:"0 0 24 24",role:"img","aria-label":r},[l,i])};wn.props={name:String,title:String};const O2=(e,{slots:a,attrs:t})=>{const{next:n,prev:s}=a||{},i=o.inject("config",o.reactive(Object.assign({},ye))),r=o.inject("maxSlide",o.ref(1)),l=o.inject("minSlide",o.ref(1)),p=o.inject("currentSlide",o.ref(1)),c=o.inject("nav",{}),{dir:d,wrapAround:u,i18n:f}=i,m=d==="rtl",h=o.h("button",{type:"button",class:["carousel__prev",!u&&p.value<=l.value&&"carousel__prev--disabled",t==null?void 0:t.class],"aria-label":f.ariaPreviousSlide,onClick:c.prev},(s==null?void 0:s())||o.h(wn,{name:m?"arrowRight":"arrowLeft"})),g=o.h("button",{type:"button",class:["carousel__next",!u&&p.value>=r.value&&"carousel__next--disabled",t==null?void 0:t.class],"aria-label":f.ariaNextSlide,onClick:c.next},(n==null?void 0:n())||o.h(wn,{name:m?"arrowLeft":"arrowRight"}));return[h,g]};var E2=o.defineComponent({name:"CarouselSlide",props:{index:{type:Number,default:1},isClone:{type:Boolean,default:!1}},setup(e,{slots:a}){const t=o.inject("config",o.reactive(Object.assign({},ye))),n=o.inject("currentSlide",o.ref(0)),s=o.inject("slidesToScroll",o.ref(0)),i=o.inject("isSliding",o.ref(!1)),r=()=>e.index===n.value,l=()=>e.index===n.value-1,p=()=>e.index===n.value+1,c=()=>{const d=Math.floor(s.value),u=Math.ceil(s.value+t.itemsToShow-1);return e.index>=d&&e.index<=u};return()=>{var d;return o.h("li",{style:{width:`${100/t.itemsToShow}%`},class:{carousel__slide:!0,"carousel__slide--clone":e.isClone,"carousel__slide--visible":c(),"carousel__slide--active":r(),"carousel__slide--prev":l(),"carousel__slide--next":p(),"carousel__slide--sliding":i.value},"aria-hidden":!c()},(d=a.default)===null||d===void 0?void 0:d.call(a))}}});const x2=xe({__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 t=e,n=o.computed(()=>{const l={"background-color":t.backgroundColor,height:t.height};return t.matchDay.key===t.matchDaySelected.key&&(l["border-bottom"]=`solid 1px ${t.bottomLineColor}`,l["background-color"]=t.selectedMatchDayBackgroundColor),t.isLandingMode||(l["border-right"]="solid 1px rgba(255, 255, 255, 0.1)"),l}),s=o.computed(()=>({color:t.numberColor,"font-family":t.numberFontFamily,"font-size":t.numberFontSize})),i=o.computed(()=>({color:t.textColor,"font-family":t.textFontFamily,"font-size":t.textFontSize}));function r(l){a("click-match-day",l)}return(l,p)=>(o.openBlock(),o.createElementBlock("div",{class:"match-day",style:o.normalizeStyle({...n.value}),onClick:p[0]||(p[0]=c=>r(e.matchDay))},[o.createElementVNode("div",{class:"match-day__value",style:o.normalizeStyle(s.value)},o.toDisplayString(e.matchDay.valueText),5),Number.isNaN(e.matchDay.value)?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",{key:0,class:"match-day__text",style:o.normalizeStyle([e.isLandingMode?"margin-top:3px":"margin-top:4px",i.value])},o.toDisplayString(e.isLandingMode||e.componentWidth<=425?"JOR":"JORNADA"),5))],4))}},[["__scopeId","data-v-89459353"]]),Lr=xe({__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"},disableMatchdays:{type:Boolean,default:!1},itemsToShow:{type:Number,default:9},itemsToScroll:{type:Number,default:9},defaultMatchDayKey:{type:[String,null],default:""},componentWidth:{type:Number,default:0},closestMatchDay:{type:[Number,String],default:0}},emits:["change-match-day"],setup(e,{emit:a}){const t=e;o.useCssVars(c=>({"6dc1777e":i.value,"6dc0603e":r.value}));const n=o.ref(null),s=o.computed(()=>({itemsToShow:t.itemsToShow,itemsToScroll:t.itemsToScroll,snapAlign:"start"})),i=o.computed(()=>n.value.data.currentSlide.value==0?"none":"inline"),r=o.computed(()=>n.value.data.currentSlide.value==n.value.data.maxSlide.value?"none":"inline"),l=o.ref({});o.watch(()=>t.closestMatchDay,c=>{if(c){const d=t.matchDays.find(u=>u.key===c);p(d||t.matchDays[0],!0)}}),o.watch(()=>t.matchDays,c=>{if(!t.closestMatchDay&&c&&c.length){const d=c.find(u=>u.key===t.defaultMatchDayKey);l.value=d||c[0],a("change-match-day",l.value)}},{immediate:!0});function p(c,d=!1){d&&n.value.slideTo(c.index),t.disableMatchdays?c.avaible==!0&&(l.value=c,a("change-match-day",l.value)):(l.value=c,a("change-match-day",l.value))}return(c,d)=>(o.openBlock(),o.createElementBlock("div",{class:"match-day-picker",style:o.normalizeStyle(e.isLandingMode?"border-top-left-radius: 9px; border-top-right-radius: 9px;":"margin-bottom:12px")},[o.createVNode(o.unref(k2),o.mergeProps(s.value,{ref_key:"matchDayPickerCarousel",ref:n}),{addons:o.withCtx(()=>[o.createVNode(o.unref(O2))]),default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.matchDays,u=>(o.openBlock(),o.createBlock(o.unref(E2),{key:u.key},{default:o.withCtx(()=>[o.createVNode(x2,o.mergeProps({style:e.disableMatchdays&&!u.avaible?"opacity: 0.6 !important; cursor: default !important;":""},t,{"match-day":u,"match-day-selected":l.value,"is-landing-mode":e.isLandingMode,"component-width":e.componentWidth,onClickMatchDay:p}),null,16,["style","match-day","match-day-selected","is-landing-mode","component-width"])]),_:2},1024))),128))]),_:1},16)],4))}},[["__scopeId","data-v-39d33c84"]]),z2=e=>(o.pushScopeId("data-v-ff4a2f0d"),e=e(),o.popScopeId(),e),M2={class:"quadrant-matches"},R2={class:"quadrant-matches__header"},F2={class:"quadrant-matches__title"},T2=z2(()=>o.createElementVNode("span",null," →",-1)),V2={key:0,class:"quadrant-matches__body"},N2={class:"quadrant-matches__body",style:{"column-gap":"16px"}},v2={class:"quadrant-matches__body matches"},P2={key:0,class:"quadrant-matches__body"},j2={class:"quadrant-matches__body",style:{"column-gap":"16px"}},I2=xe({__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}},tournamentScheduleKeys:{type:Array,default:()=>[]},defaultMatchDayKey:{type:String,default:""}},emits:["change-match-day","change-is-league-selected"],setup(e,{emit:a}){const t=e,n=o.ref(!1);o.computed(()=>t.comingMatches[0]||{}),o.computed(()=>t.previousMatches[0]||{});const s=o.toRef(t,"componentWidth"),i=o.computed(()=>s.value<768);function r(l){a("change-match-day",l)}return(l,p)=>(o.openBlock(),o.createElementBlock("section",M2,[o.createElementVNode("div",R2,[o.createElementVNode("h2",F2,o.toDisplayString(e.isFull?"Partidos":"Mis partidos"),1),o.createCommentVNode("",!0),o.createElementVNode("button",{class:"quadrant-matches__button",onClick:p[0]||(p[0]=c=>l.$emit("clickCalendar"))},[o.createElementVNode("span",null,o.toDisplayString(e.isFull?"Calendario completo":"Mi calendario completo"),1),T2])]),(e.isFull||n.value)&&e.tournamentScheduleKeys&&e.tournamentScheduleKeys.length?(o.openBlock(),o.createBlock(Lr,{key:0,height:"48px","match-days":e.tournamentScheduleKeys,"is-landing-mode":!1,"items-to-show":9,"items-to-scroll":9,"component-width":"100%","default-match-day-key":e.defaultMatchDayKey,onChangeMatchDay:r},null,8,["match-days","default-match-day-key"])):o.createCommentVNode("",!0),!e.isFull&&!n.value?(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[i.value?(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[Object.keys(e.data).length>0?(o.openBlock(),o.createBlock(o.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:o.withCtx(()=>[o.createElementVNode("div",N2,[o.createVNode(gn,{small:"",data:e.data.data.prematch,onClickMatch:p[4]||(p[4]=c=>l.$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?(o.openBlock(),o.createBlock(Vo,{key:0,data:e.data.data.postmatch,onClickMatch:p[5]||(p[5]=c=>l.$emit("clickMatch",e.data.data.postmatch))},null,8,["data"])):(o.openBlock(),o.createBlock(Vo,{key:1,"info-type":"prematch",data:e.data.data.postmatch,onClickMatch:p[6]||(p[6]=c=>l.$emit("clickMatch",e.data.data.postmatch))},null,8,["data"]))])]),_:1})):o.createCommentVNode("",!0)],64)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[Object.keys(e.data).length>0?(o.openBlock(),o.createElementBlock("div",V2,[o.createVNode(gn,{data:e.data.data.prematch,onClickMatch:p[1]||(p[1]=c=>l.$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?(o.openBlock(),o.createBlock(Vo,{key:0,data:e.data.data.postmatch,onClickMatch:p[2]||(p[2]=c=>l.$emit("clickMatch",e.data.data.postmatch))},null,8,["data"])):(o.openBlock(),o.createBlock(Vo,{key:1,"info-type":"prematch",data:e.data.data.postmatch,onClickMatch:p[3]||(p[3]=c=>l.$emit("clickMatch",e.data.data.postmatch))},null,8,["data"]))])):o.createCommentVNode("",!0)],64))],64)):e.data?(o.openBlock(),o.createElementBlock(o.Fragment,{key:2},[e.data.length>1?(o.openBlock(),o.createBlock(o.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:o.withCtx(()=>[o.createElementVNode("div",v2,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.data,(c,d)=>(o.openBlock(),o.createBlock(gn,{key:d,data:c,small:"",onClickMatch:u=>l.$emit("clickMatch",c)},null,8,["data","onClickMatch"]))),128))])]),_:1})):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[i.value?(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[Object.keys(e.data).length>0?(o.openBlock(),o.createBlock(o.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:o.withCtx(()=>[o.createElementVNode("div",j2,[e.data[0].game_status==4?(o.openBlock(),o.createBlock(Dr,{key:0,data:e.data[0],onClickMatch:p[9]||(p[9]=c=>l.$emit("clickMatch",e.data[0]))},null,8,["data"])):o.createCommentVNode("",!0),e.data[0].game_status!=4?(o.openBlock(),o.createBlock(Ur,{key:1,data:e.data[0],onClickMatch:p[10]||(p[10]=c=>l.$emit("clickMatch",e.data[0]))},null,8,["data"])):o.createCommentVNode("",!0)])]),_:1})):o.createCommentVNode("",!0)],64)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[Object.keys(e.data).length>0?(o.openBlock(),o.createElementBlock("div",P2,[e.data[0].game_status==4?(o.openBlock(),o.createBlock(Dr,{key:0,data:e.data[0],onClickMatch:p[7]||(p[7]=c=>l.$emit("clickMatch",e.data[0]))},null,8,["data"])):o.createCommentVNode("",!0),e.data[0].game_status!=4?(o.openBlock(),o.createBlock(Ur,{key:1,data:e.data[0],onClickMatch:p[8]||(p[8]=c=>l.$emit("clickMatch",e.data[0]))},null,8,["data"])):o.createCommentVNode("",!0)])):o.createCommentVNode("",!0)],64))],64))],64)):o.createCommentVNode("",!0)]))}},[["__scopeId","data-v-ff4a2f0d"]]),U2={__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:()=>{}},tournamentScheduleKeys:{type:Array,default:()=>[]},defaultMatchDayKey:{type:String,default:""}},setup(e){return(a,t)=>(o.openBlock(),o.createElementBlock("main",null,[o.createVNode(I2,{data:e.data,"component-width":e.componentWidth,"is-full":e.isFull,"has-team":!e.isplayer,"tournament-schedule-keys":e.tournamentScheduleKeys,"default-match-day-key":e.defaultMatchDayKey,onClickCalendar:t[0]||(t[0]=n=>a.$emit("clickCalendar")),onClickMatch:t[1]||(t[1]=n=>a.$emit("clickMatch",n)),onChangeMatchDay:t[2]||(t[2]=n=>a.$emit("change-match-day",n)),onChangeIsLeagueSelected:t[3]||(t[3]=n=>a.$emit("change-is-league-selected",n))},null,8,["data","component-width","is-full","has-team","tournament-schedule-keys","default-match-day-key"])]))}},D2="_toniKroos_1mxz1_35",G2="_centralMidfielder_1mxz1_55",H2="_icnPlayIcon_1mxz1_75",L2="_verVideos_1mxz1_89",K2="_btnVideosOptions_1mxz1_109",q2="_btnVideosOptionsTeams_1mxz1_139",Z2="_info_1mxz1_179",Q2="_goalUnlock_1mxz1_203",Y2="_teamsAmerica_1mxz1_229",W2="_imageIcon_1mxz1_249",J2="_imageIconTeam_1mxz1_271",X2="_playerTops_1mxz1_295",_2={toniKroos:D2,centralMidfielder:G2,icnPlayIcon:H2,verVideos:L2,btnVideosOptions:K2,btnVideosOptionsTeams:q2,info:Z2,goalUnlock:Q2,teamsAmerica:Y2,imageIcon:W2,imageIconTeam:J2,playerTops:X2},$2=(e,a)=>{const t=e.__vccOpts||e;for(const[n,s]of a)t[n]=s;return t},ew={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))}}},tw=["src"],ow=["src"],aw=["src"];function nw(e,a,t,n,s,i){return o.openBlock(),o.createElementBlock("section",{class:o.normalizeClass(e.$style.playerTops),style:o.normalizeStyle(i.customMosaic),id:"player-mosaico",onClick:a[1]||(a[1]=r=>i.onPlayerTopsClick(t.data.player_id))},[o.createElementVNode("div",{class:o.normalizeClass(e.$style.info)},[o.createElementVNode("h3",{class:o.normalizeClass(e.$style.toniKroos),style:o.normalizeStyle(i.customNamePlayer)},o.toDisplayString(t.data.player_name),7),t.showPositionPlayer?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(e.$style.centralMidfielder),style:o.normalizeStyle(i.customNamePosition)},o.toDisplayString(t.data.player_position),7)):o.createCommentVNode("",!0),o.createElementVNode("button",{class:o.normalizeClass(this.isPlayer?e.$style.btnVideosOptions:e.$style.btnVideosOptionsTeams),style:o.normalizeStyle(i.customTotalCont),id:"button-actions",onClick:a[0]||(a[0]=r=>i.onButtonVideos(t.data))},[t.showIconVideo?(o.openBlock(),o.createElementBlock("img",{key:0,class:o.normalizeClass(e.$style.icnPlayIcon),src:t.iconPlay},null,10,tw)):o.createCommentVNode("",!0),o.createElementVNode("div",{class:o.normalizeClass(e.$style.verVideos),style:o.normalizeStyle(i.customTotal)},o.toDisplayString(t.data.player_stat)+" "+o.toDisplayString(t.data.category),7)],6)],2),o.createElementVNode("b",{style:o.normalizeStyle(i.customNumberTop),class:o.normalizeClass(e.$style.goalUnlock)},o.toDisplayString(t.data.top),7),t.showShieldTeam?(o.openBlock(),o.createElementBlock("img",{key:0,class:o.normalizeClass(e.$style.teamsAmerica),style:o.normalizeStyle(i.customShieldTeam),loading:"lazy",src:t.data.team_logo},null,14,ow)):o.createCommentVNode("",!0),o.createElementVNode("img",{style:o.normalizeStyle(i.customPhotoPlayerOrTeam),class:o.normalizeClass(this.isPlayer?e.$style.imageIcon:e.$style.imageIconTeam),loading:"lazy",src:t.data.player_photo},null,14,aw)],6)}const iw={$style:_2},sw=$2(ew,[["render",nw],["__cssModules",iw]]),rw=(e,a)=>{const t=e.__vccOpts||e;for(const[n,s]of a)t[n]=s;return t},An={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))}}},Kr=()=>{o.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}))},qr=An.setup;An.setup=qr?(e,a)=>(Kr(),qr(e,a)):Kr;const lw=e=>(o.pushScopeId("data-v-fb269a1e"),e=e(),o.popScopeId(),e),cw=["src"],dw={key:1,class:"text"},mw=["src"],pw={class:"stats"},uw=lw(()=>o.createElementVNode("img",{class:"iconstats",src:"https://az755631.vo.msecnd.net/todoelfut/playdes.png"},null,-1)),hw={class:"numstats"},gw={class:"leyend"};function fw(e,a,t,n,s,i){return o.openBlock(),o.createElementBlock("div",null,[t.type==0?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(["button",s.status&&t.typeOnOff&&"button-active"]),style:o.normalizeStyle([i.customStyle,s.status&&t.typeOnOff&&i.customActive]),onClick:a[0]||(a[0]=(...r)=>i.btnClick&&i.btnClick(...r))},[t.icon&&t.iconPosition.toLowerCase()==="left"?(o.openBlock(),o.createElementBlock("img",{key:0,class:"icon",style:o.normalizeStyle({width:t.iconSize}),src:t.icon},null,12,cw)):o.createCommentVNode("",!0),t.textValue?(o.openBlock(),o.createElementBlock("div",dw,o.toDisplayString(t.textValue),1)):o.createCommentVNode("",!0),t.icon&&t.iconPosition.toLowerCase()==="right"?(o.openBlock(),o.createElementBlock("img",{key:2,class:"icon",style:o.normalizeStyle({width:t.iconSize}),src:t.icon},null,12,mw)):o.createCommentVNode("",!0)],6)):o.createCommentVNode("",!0),t.type==1?(o.openBlock(),o.createElementBlock("div",{key:1,class:"button-target",onClick:a[1]||(a[1]=(...r)=>i.btnClick&&i.btnClick(...r))},[o.createElementVNode("div",pw,[uw,o.createElementVNode("div",hw,o.toDisplayString(t.textStat),1)]),o.createElementVNode("div",gw,o.toDisplayString(t.textCategory),1)])):o.createCommentVNode("",!0)])}const Zr=rw(An,[["render",fw],["__scopeId","data-v-fb269a1e"]]);function yw(e){const a=o.ref({width:0,height:0});function t(){const n=e.value.getBoundingClientRect();a.value.width=n.width,a.value.height=n.height}return o.onMounted(()=>{t(),window.addEventListener("resize",t)}),o.onUnmounted(()=>{window.removeEventListener("resize",t)}),{elementSize:a}}const Cn={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)}}},Qr=()=>{o.useCssVars(e=>({"2bf57034":e.backgroundColor,b8f32872:e.widthCircle,23023166:e.heightCircle}))},Yr=Cn.setup;Cn.setup=Yr?(e,a)=>(Qr(),Yr(e,a)):Qr;const bw={key:0,class:"text-left"},ww=["width","src"],Aw=["checked"],Cw=["width","src"],kw={key:3,class:"text-right"};function Sw(e,a,t,n,s,i){return o.openBlock(),o.createElementBlock("div",{class:"gsc-switch-radio",style:o.normalizeStyle(i.customText)},[t.textOptionLeft!=""&&!t.hiddenLabels?(o.openBlock(),o.createElementBlock("span",bw,o.toDisplayString(t.textOptionLeft),1)):o.createCommentVNode("",!0),t.iconA!=""?(o.openBlock(),o.createElementBlock("img",{key:1,width:t.widthIcons,src:t.iconA},null,8,ww)):o.createCommentVNode("",!0),o.createElementVNode("input",{type:"checkbox",id:"toggle-btn",onChange:a[0]||(a[0]=(...r)=>i.handleSwitchChange&&i.handleSwitchChange(...r)),checked:s.OptionDefault},null,40,Aw),o.createElementVNode("label",{for:"toggle-btn",style:o.normalizeStyle([i.customStyle,{"--circle-color":t.circleColorSwitch}])},null,4),t.iconB!=""?(o.openBlock(),o.createElementBlock("img",{key:2,width:t.widthIcons,src:t.iconB},null,8,Cw)):o.createCommentVNode("",!0),t.textOptionRight!=""&&!t.hiddenLabels?(o.openBlock(),o.createElementBlock("span",kw,o.toDisplayString(t.textOptionRight),1)):o.createCommentVNode("",!0)],4)}const kn={components:{GSCSlider:Nt,GSCMosaicthebest:sw,GscSwitchComponent:Za,GSCButton:Zr,GSCRadioToggle:xe(Cn,[["render",Sw],["__scopeId","data-v-c2ae0cf9"]])},setup(){const e=o.ref("myDivRef"),{elementSize:a}=yw(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 t=this.categorySelected!==null?this.categorySelected:1;this.showSwitch||(this.filterSelected=1),await this.getCategoryStats(e,this.filterSelected,t)}},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 t="";if(a[1]&&(t=`${a[1].trim()[0]}.`,a[0])){const s=(n=a[0])==null?void 0:n.trim().split(" ");for(let i of s)if(t=`${t} ${i.trim()}`,i.trim().length>3)break}return t},translateTopCategories(e){return{1:[12,55,"35_r","54_r"],2:[2,20],3:[485,486,487,488],4:[10,324],5:[27,323],6:[510],7:[537,540,544,547],8:[328],9:[231,238,280,287,294,406],10:[13,25],11:[98,101,104,105,109,112,115,116],12:[4],13:[88],14:[5],15:[34],16:[23],17:[11],18:[17,50],19:[18,49],20:[14,52],21:[15,53],22:[39],23:[31,32]}[e]||[]},onOpenMedia(e){const a=this.translateTopCategories(this.categorySelected),t=2,n=3;let s=[],i=0,r=0;this.isTeam?(i=e.player_id,r=n):(s=[e.player_id],r=t);const l={seasonId:this.season,tournaments:[],isFeaturedPlayers:!1,mainSectionType:1,playListType:r,gameIds:null,playerIds:s,goalkeeperIds:[],categoryIds:a,teamId:i,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(t=>t.name===e);this.categorySelected=a.id},async getCategoryStats(e,a,t=0){try{let i={},r={},l=[];const p=le.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=>{i[c[0]]={},i[c[0]].id=c[0],i[c[0]].name=c[1],i[c[0]].img=c[3],i[c[0]].abrv=c[2],i[c[0]].logo=c[3]}),n.data.players.map(c=>{r[c[0]]={},r[c[0]].id=c[0],r[c[0]].name=c[1],r[c[0]].img=c[2],r[c[0]].position=c[6],r[c[0]].logo="https://az755631.vo.msecnd.net/teams-80/"+c[10][0].team_id+".png"});var s=1;n.data.tops.map(c=>{l[c.category?c.category:s]={};var d={},u={};c.teams.map(h=>{d[h[0]]={},d[h[0]].total=h[1],d[h[0]].id=i[h[0]].id,d[h[0]].name=i[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=r[h[0]].name,u[h[0]].img=r[h[0]].img.replace("players-profile/","players-profile/"),u[h[0]].id=r[h[0]].id,u[h[0]].position=this.positions[r[h[0]].position-1].name,u[h[0]].logo=r[h[0]].logo});var f=[],m=[];for(const h in d)f.push(d[h]);for(const h in u)m.push(u[h]);f.sort((h,g)=>h.total<g.total?1:-1),m.sort((h,g)=>h.total<g.total?1:-1),l[c.category?c.category:s].top__players=m,l[c.category?c.category:s].top__teams=f,s++})}t===0?this.categorySelected=1:this.categorySelected=t,this.categoryData=l}catch(i){return Promise.reject(i)}}}},Wr=()=>{o.useCssVars(e=>({"7a5b0a28":e.backgroundColor,"292ba61c":e.fontFamily,"510c78b9":e.fontSize,"60b8a4aa":e.fontColor,d5d221be:e.marginMosaic}))},Jr=kn.setup;kn.setup=Jr?(e,a)=>(Wr(),Jr(e,a)):Wr;const Bw=e=>(o.pushScopeId("data-v-a5fb54bf"),e=e(),o.popScopeId(),e),Ow={class:"gsc-best",ref:"myDivRef"},Ew={class:"gsc-best__line-bar-tools"},xw={key:0,class:"gsc-best__line-bar-tools__title"},zw=Bw(()=>o.createElementVNode("span",null,"Los mejores ",-1)),Mw={key:1,class:"gsc-best__line-bar-tools__titlefull"},Rw={class:"unit-items"},Fw={key:2,class:"gsc-best__line-bar-tools__tools"},Tw={key:0,class:"gsc-best__line-bar-tools__tools__tabs"},Vw={class:"gsc-best__line-bar-tools__tools__btn"},Nw={key:0,class:"gsc-best__line-bar-tools-movil"},vw={class:"gsc-best__line-bar-tools-movil__tabs"},Pw={class:"gsc-best__categories"},jw={class:"gsc-best__players"};function Iw(e,a,t,n,s,i){const r=o.resolveComponent("GSCRadioToggle"),l=o.resolveComponent("GSCButton"),p=o.resolveComponent("GscSwitchComponent"),c=o.resolveComponent("GSCMosaicthebest"),d=o.resolveComponent("GSCSlider");return o.openBlock(),o.createElementBlock("div",Ow,[o.createElementVNode("div",Ew,[n.elementSize.width>900?(o.openBlock(),o.createElementBlock("div",xw,[zw,e.optionSelected!=="Equipos"&&t.showSwitch?(o.openBlock(),o.createBlock(r,{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/"+t.teamId+".png",iconB:"https://az755631.vo.msecnd.net/todoelfut/1.png",textOptionLeft:"Mi equipo",textOptionRight:"Liga MX",onChange:i.ChangeRadio},null,8,["iconA","onChange"])):o.createCommentVNode("",!0)])):o.createCommentVNode("",!0),n.elementSize.width<=900?(o.openBlock(),o.createElementBlock("div",Mw,[o.createElementVNode("span",{style:o.normalizeStyle(n.elementSize.width<=380?"font-size: 15px; margin-top:0px; width:60px;":"")},"Los mejores ",4),o.createElementVNode("span",Rw,[e.optionSelected!=="Equipos"&&t.showSwitch?(o.openBlock(),o.createBlock(r,{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/"+t.teamId+".png",iconB:"https://az755631.vo.msecnd.net/todoelfut/1.png",textOptionLeft:"Mi equipo",textOptionRight:"Liga MX",onChange:i.ChangeRadio},null,8,["iconA","onChange"])):o.createCommentVNode("",!0),o.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:i.clickMore},null,8,["font-color","font-size","onClick"])])])):o.createCommentVNode("",!0),n.elementSize.width>900?(o.openBlock(),o.createElementBlock("div",Fw,[n.elementSize.width>900?(o.openBlock(),o.createElementBlock("div",Tw,[o.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:i.changeType,arrowsScrollHide:!1,arrowsPosition:"absolute"},null,8,["selected-option","onInput"])])):o.createCommentVNode("",!0),o.createElementVNode("div",Vw,[o.createVNode(l,{width:"75px","text-value":"Ver más","font-size":"14px","text-decoration":"underline",onClick:i.clickMore},null,8,["onClick"]),o.createVNode(l,{width:"10px","text-value":"→","font-size":"14px","font-color":"#cbee6b",onClick:i.clickMore},null,8,["onClick"])])])):o.createCommentVNode("",!0)]),n.elementSize.width<=900?(o.openBlock(),o.createElementBlock("div",Nw,[o.createElementVNode("div",vw,[o.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:i.changeType},null,8,["selected-option","onInput"])])])):o.createCommentVNode("",!0),o.createElementVNode("div",Pw,[o.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:i.changeCategory,pxScroll:200,scrollColor:"none",arrowsScrollHide:!1,arrowsMargin:0,borderWidth:"2px"},null,8,["buttons","font-size","onInput"])]),o.createElementVNode("div",jw,[o.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:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(i.topData,(u,f)=>(o.openBlock(),o.createElementBlock("div",{key:f,class:o.normalizeClass(["gsc-best__players__item",f==0?"margin-none":""])},[o.createVNode(c,{data:{player_id:u.id,player_name:this.isTeam?u.name:i.formatPlayerName(u.name),player_position:u.position,player_stat:u.total,category:"Total",top:f<9?"0"+(f+1):f+1,team_logo:u.logo,player_photo:u.img},"show-shield-team":!0,"active-videos":!0,onClickMosaic:i.clickMosaic,onOpenmedia:i.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 Uw=xe(kn,[["render",Iw],["__scopeId","data-v-a5fb54bf"]]);/**
32
+ */const ye={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"}},Gr={itemsToShow:{default:ye.itemsToShow,type:Number},itemsToScroll:{default:ye.itemsToScroll,type:Number},wrapAround:{default:ye.wrapAround,type:Boolean},throttle:{default:ye.throttle,type:Number},snapAlign:{default:ye.snapAlign,validator(e){return["start","end","center","center-even","center-odd"].includes(e)}},transition:{default:ye.transition,type:Number},breakpoints:{default:ye.breakpoints,type:Object},autoplay:{default:ye.autoplay,type:Number},pauseAutoplayOnHover:{default:ye.pauseAutoplayOnHover,type:Boolean},modelValue:{default:void 0,type:Number},mouseDrag:{default:ye.mouseDrag,type:Boolean},touchDrag:{default:ye.touchDrag,type:Boolean},dir:{default:ye.dir,validator(e){return["rtl","ltr"].includes(e)}},i18n:{default:ye.i18n,type:Object},settings:{default(){return{}},type:Object}};function g2({config:e,slidesCount:a}){const{snapAlign:t,wrapAround:n,itemsToShow:s=1}=e;if(n)return Math.max(a-1,0);let i;switch(t){case"start":i=a-s;break;case"end":i=a-1;break;case"center":case"center-odd":i=a-Math.ceil((s-.5)/2);break;case"center-even":i=a-Math.ceil(s/2);break;default:i=0;break}return Math.max(i,0)}function f2({config:e,slidesCount:a}){const{wrapAround:t,snapAlign:n,itemsToShow:s=1}=e;let i=0;if(t||s>a)return i;switch(n){case"start":i=0;break;case"end":i=s-1;break;case"center":case"center-odd":i=Math.floor((s-1)/2);break;case"center-even":i=Math.floor((s-2)/2);break;default:i=0;break}return i}function fn({val:e,max:a,min:t}){return a<t?e:Math.min(Math.max(e,t),a)}function y2({config:e,currentSlide:a,slidesCount:t}){const{snapAlign:n,wrapAround:s,itemsToShow:i=1}=e;let r=a;switch(n){case"center":case"center-odd":r-=(i-1)/2;break;case"center-even":r-=(i-2)/2;break;case"end":r-=i-1;break}return s?r:fn({val:r,max:t-i,min:0})}function Hr(e){return e?e.reduce((a,t)=>{var n;return t.type===o.Fragment?[...a,...Hr(t.children)]:((n=t.type)===null||n===void 0?void 0:n.name)==="CarouselSlide"?[...a,t]:a},[]):[]}function yn({val:e,max:a,min:t=0}){return e>a?yn({val:e-(a+1),max:a,min:t}):e<t?yn({val:e+(a+1),max:a,min:t}):e}function b2(e,a){let t;return a?function(...n){const s=this;t||(e.apply(s,n),t=!0,setTimeout(()=>t=!1,a))}:e}function w2(e,a){let t;return function(...n){t&&clearTimeout(t),t=setTimeout(()=>{e(...n),t=null},a)}}function A2(e="",a={}){return Object.entries(a).reduce((t,[n,s])=>t.replace(`{${n}}`,String(s)),e)}var C2=o.defineComponent({name:"ARIA",setup(){const e=o.inject("config",o.reactive(Object.assign({},ye))),a=o.inject("currentSlide",o.ref(0)),t=o.inject("slidesCount",o.ref(0));return()=>o.h("div",{class:["carousel__liveregion","carousel__sr-only"],"aria-live":"polite","aria-atomic":"true"},A2(e.i18n.itemXofY,{currentSlide:a.value+1,slidesCount:t.value}))}}),k2=o.defineComponent({name:"Carousel",props:Gr,setup(e,{slots:a,emit:t,expose:n}){var s;const i=o.ref(null),r=o.ref([]),l=o.ref(0),p=o.ref(0),c=o.reactive(Object.assign({},ye));let d=Object.assign({},ye),u;const f=o.ref((s=e.modelValue)!==null&&s!==void 0?s:0),m=o.ref(0),h=o.ref(0),g=o.ref(0),b=o.ref(0);let A,C;o.provide("config",c),o.provide("slidesCount",p),o.provide("currentSlide",f),o.provide("maxSlide",g),o.provide("minSlide",b),o.provide("slideWidth",l);function z(){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}),K(d)}function P(){if(!u||!Object.keys(u).length)return;const w=Object.keys(u).map(E=>Number(E)).sort((E,H)=>+H-+E);let M=Object.assign({},d);w.some(E=>{const H=window.matchMedia(`(min-width: ${E}px)`).matches;return H&&(M=Object.assign(Object.assign({},M),u[E])),H}),K(M)}function K(w){Object.entries(w).forEach(([M,E])=>c[M]=E)}const Z=w2(()=>{P(),U()},16);function U(){if(!i.value)return;const w=i.value.getBoundingClientRect();l.value=w.width/c.itemsToShow}function ee(){p.value<=0||(h.value=Math.ceil((p.value-1)/2),g.value=g2({config:c,slidesCount:p.value}),b.value=f2({config:c,slidesCount:p.value}),c.wrapAround||(f.value=fn({val:f.value,max:g.value,min:b.value})))}o.onMounted(()=>{o.nextTick(()=>U()),setTimeout(()=>U(),1e3),P(),ve(),window.addEventListener("resize",Z,{passive:!0}),t("init")}),o.onUnmounted(()=>{C&&clearTimeout(C),A&&clearInterval(A),window.removeEventListener("resize",Z,{passive:!0})});let V=!1;const ne={x:0,y:0},se={x:0,y:0},q=o.reactive({x:0,y:0}),re=o.ref(!1),de=o.ref(!1),qe=()=>{re.value=!0},Ze=()=>{re.value=!1};function Ve(w){["INPUT","TEXTAREA","SELECT"].includes(w.target.tagName)||(V=w.type==="touchstart",V||w.preventDefault(),!(!V&&w.button!==0||x.value)&&(ne.x=V?w.touches[0].clientX:w.clientX,ne.y=V?w.touches[0].clientY:w.clientY,document.addEventListener(V?"touchmove":"mousemove",Fe,!0),document.addEventListener(V?"touchend":"mouseup",Ne,!0)))}const Fe=b2(w=>{de.value=!0,se.x=V?w.touches[0].clientX:w.clientX,se.y=V?w.touches[0].clientY:w.clientY;const M=se.x-ne.x,E=se.y-ne.y;q.y=E,q.x=M},c.throttle);function Ne(){const w=c.dir==="rtl"?-1:1,M=Math.sign(q.x)*.4,E=Math.round(q.x/l.value+M)*w;if(E&&!V){const H=we=>{we.stopPropagation(),window.removeEventListener("click",H,!0)};window.addEventListener("click",H,!0)}R(f.value-E),q.x=0,q.y=0,de.value=!1,document.removeEventListener(V?"touchmove":"mousemove",Fe,!0),document.removeEventListener(V?"touchend":"mouseup",Ne,!0)}function ve(){!c.autoplay||c.autoplay<=0||(A=setInterval(()=>{c.pauseAutoplayOnHover&&re.value||v()},c.autoplay))}function j(){A&&(clearInterval(A),A=null),ve()}const x=o.ref(!1);function R(w){const M=c.wrapAround?w:fn({val:w,max:g.value,min:b.value});f.value===M||x.value||(t("slide-start",{slidingToIndex:w,currentSlideIndex:f.value,prevSlideIndex:m.value,slidesCount:p.value}),x.value=!0,m.value=f.value,f.value=M,C=setTimeout(()=>{if(c.wrapAround){const E=yn({val:M,max:g.value,min:0});E!==f.value&&(f.value=E,t("loop",{currentSlideIndex:f.value,slidingToIndex:w}))}t("update:modelValue",f.value),t("slide-end",{currentSlideIndex:f.value,prevSlideIndex:m.value,slidesCount:p.value}),x.value=!1,j()},c.transition))}function v(){R(f.value+c.itemsToScroll)}function N(){R(f.value-c.itemsToScroll)}const I={slideTo:R,next:v,prev:N};o.provide("nav",I),o.provide("isSliding",x);const D=o.computed(()=>y2({config:c,currentSlide:f.value,slidesCount:p.value}));o.provide("slidesToScroll",D);const X=o.computed(()=>{const w=c.dir==="rtl"?-1:1,M=D.value*l.value*w;return{transform:`translateX(${q.x-M}px)`,transition:`${x.value?c.transition:0}ms`,margin:c.wrapAround?`0 -${p.value*l.value}px`:"",width:"100%"}});function ie(){z(),P(),ee(),U(),j()}Object.keys(Gr).forEach(w=>{["modelValue"].includes(w)||o.watch(()=>e[w],ie)}),o.watch(()=>e.modelValue,w=>{w!==f.value&&R(Number(w))}),o.watch(p,ee),t("before-init"),z();const ce={config:c,slidesCount:p,slideWidth:l,next:v,prev:N,slideTo:R,currentSlide:f,maxSlide:g,minSlide:b,middleSlide:h};n({updateBreakpointsConfigs:P,updateSlidesData:ee,updateSlideWidth:U,initDefaultConfigs:z,restartCarousel:ie,slideTo:R,next:v,prev:N,nav:I,data:ce});const Oe=a.default||a.slides,Ee=a.addons,Pe=o.reactive(ce);return()=>{const w=Hr(Oe==null?void 0:Oe(Pe)),M=(Ee==null?void 0:Ee(Pe))||[];w.forEach((Ae,Ce)=>Ae.props.index=Ce);let E=w;if(c.wrapAround){const Ae=w.map((ke,oe)=>o.cloneVNode(ke,{index:-w.length+oe,isClone:!0,key:`clone-before-${oe}`})),Ce=w.map((ke,oe)=>o.cloneVNode(ke,{index:w.length+oe,isClone:!0,key:`clone-after-${oe}`}));E=[...Ae,...w,...Ce]}r.value=w,p.value=Math.max(w.length,1);const H=o.h("ol",{class:"carousel__track",style:X.value,onMousedownCapture:c.mouseDrag?Ve:null,onTouchstartPassiveCapture:c.touchDrag?Ve:null},E),we=o.h("div",{class:"carousel__viewport"},H);return o.h("section",{ref:i,class:{carousel:!0,"is-sliding":x.value,"is-dragging":de.value,"is-hover":re.value,"carousel--rtl":c.dir==="rtl"},dir:c.dir,"aria-label":c.i18n.ariaGallery,tabindex:"0",onMouseenter:qe,onMouseleave:Ze},[we,M,o.h(C2)])}}}),bn;(function(e){e.arrowUp="arrowUp",e.arrowDown="arrowDown",e.arrowRight="arrowRight",e.arrowLeft="arrowLeft"})(bn||(bn={}));const S2={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 B2(e){return e in bn}const wn=e=>{const a=o.inject("config",o.reactive(Object.assign({},ye))),t=String(e.name),n=`icon${t.charAt(0).toUpperCase()+t.slice(1)}`;if(!t||typeof t!="string"||!B2(t))return;const s=S2[t],i=o.h("path",{d:s}),r=a.i18n[n]||e.title||t,l=o.h("title",r);return o.h("svg",{class:"carousel__icon",viewBox:"0 0 24 24",role:"img","aria-label":r},[l,i])};wn.props={name:String,title:String};const O2=(e,{slots:a,attrs:t})=>{const{next:n,prev:s}=a||{},i=o.inject("config",o.reactive(Object.assign({},ye))),r=o.inject("maxSlide",o.ref(1)),l=o.inject("minSlide",o.ref(1)),p=o.inject("currentSlide",o.ref(1)),c=o.inject("nav",{}),{dir:d,wrapAround:u,i18n:f}=i,m=d==="rtl",h=o.h("button",{type:"button",class:["carousel__prev",!u&&p.value<=l.value&&"carousel__prev--disabled",t==null?void 0:t.class],"aria-label":f.ariaPreviousSlide,onClick:c.prev},(s==null?void 0:s())||o.h(wn,{name:m?"arrowRight":"arrowLeft"})),g=o.h("button",{type:"button",class:["carousel__next",!u&&p.value>=r.value&&"carousel__next--disabled",t==null?void 0:t.class],"aria-label":f.ariaNextSlide,onClick:c.next},(n==null?void 0:n())||o.h(wn,{name:m?"arrowLeft":"arrowRight"}));return[h,g]};var E2=o.defineComponent({name:"CarouselSlide",props:{index:{type:Number,default:1},isClone:{type:Boolean,default:!1}},setup(e,{slots:a}){const t=o.inject("config",o.reactive(Object.assign({},ye))),n=o.inject("currentSlide",o.ref(0)),s=o.inject("slidesToScroll",o.ref(0)),i=o.inject("isSliding",o.ref(!1)),r=()=>e.index===n.value,l=()=>e.index===n.value-1,p=()=>e.index===n.value+1,c=()=>{const d=Math.floor(s.value),u=Math.ceil(s.value+t.itemsToShow-1);return e.index>=d&&e.index<=u};return()=>{var d;return o.h("li",{style:{width:`${100/t.itemsToShow}%`},class:{carousel__slide:!0,"carousel__slide--clone":e.isClone,"carousel__slide--visible":c(),"carousel__slide--active":r(),"carousel__slide--prev":l(),"carousel__slide--next":p(),"carousel__slide--sliding":i.value},"aria-hidden":!c()},(d=a.default)===null||d===void 0?void 0:d.call(a))}}});const x2=xe({__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 t=e,n=o.computed(()=>{const l={"background-color":t.backgroundColor,height:t.height};return t.matchDay.key===t.matchDaySelected.key&&(l["border-bottom"]=`solid 1px ${t.bottomLineColor}`,l["background-color"]=t.selectedMatchDayBackgroundColor),t.isLandingMode||(l["border-right"]="solid 1px rgba(255, 255, 255, 0.1)"),l}),s=o.computed(()=>({color:t.numberColor,"font-family":t.numberFontFamily,"font-size":t.numberFontSize})),i=o.computed(()=>({color:t.textColor,"font-family":t.textFontFamily,"font-size":t.textFontSize}));function r(l){a("click-match-day",l)}return(l,p)=>(o.openBlock(),o.createElementBlock("div",{class:"match-day",style:o.normalizeStyle({...n.value}),onClick:p[0]||(p[0]=c=>r(e.matchDay))},[o.createElementVNode("div",{class:"match-day__value",style:o.normalizeStyle(s.value)},o.toDisplayString(e.matchDay.valueText),5),Number.isNaN(e.matchDay.value)?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",{key:0,class:"match-day__text",style:o.normalizeStyle([e.isLandingMode?"margin-top:3px":"margin-top:4px",i.value])},o.toDisplayString(e.isLandingMode||e.componentWidth<=425?"JOR":"JORNADA"),5))],4))}},[["__scopeId","data-v-89459353"]]),Lr=xe({__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"},disableMatchdays:{type:Boolean,default:!1},itemsToShow:{type:Number,default:9},itemsToScroll:{type:Number,default:9},defaultMatchDayKey:{type:[String,null],default:""},componentWidth:{type:Number,default:0},closestMatchDay:{type:[Number,String],default:0}},emits:["change-match-day"],setup(e,{emit:a}){const t=e;o.useCssVars(c=>({"6dc1777e":i.value,"6dc0603e":r.value}));const n=o.ref(null),s=o.computed(()=>({itemsToShow:t.itemsToShow,itemsToScroll:t.itemsToScroll,snapAlign:"start"})),i=o.computed(()=>n.value.data.currentSlide.value==0?"none":"inline"),r=o.computed(()=>n.value.data.currentSlide.value==n.value.data.maxSlide.value?"none":"inline"),l=o.ref({});o.watch(()=>t.closestMatchDay,c=>{if(c){const d=t.matchDays.find(u=>u.key===c);p(d||t.matchDays[0],!0)}}),o.watch(()=>t.matchDays,c=>{if(!t.closestMatchDay&&c&&c.length){const d=c.find(u=>u.key===t.defaultMatchDayKey);l.value=d||c[0],a("change-match-day",l.value)}},{immediate:!0});function p(c,d=!1){d&&n.value.slideTo(c.index),t.disableMatchdays?c.avaible==!0&&(l.value=c,a("change-match-day",l.value)):(l.value=c,a("change-match-day",l.value))}return(c,d)=>(o.openBlock(),o.createElementBlock("div",{class:"match-day-picker",style:o.normalizeStyle(e.isLandingMode?"border-top-left-radius: 9px; border-top-right-radius: 9px;":"margin-bottom:12px")},[o.createVNode(o.unref(k2),o.mergeProps(s.value,{ref_key:"matchDayPickerCarousel",ref:n}),{addons:o.withCtx(()=>[o.createVNode(o.unref(O2))]),default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.matchDays,u=>(o.openBlock(),o.createBlock(o.unref(E2),{key:u.key},{default:o.withCtx(()=>[o.createVNode(x2,o.mergeProps({style:e.disableMatchdays&&!u.avaible?"opacity: 0.6 !important; cursor: default !important;":""},t,{"match-day":u,"match-day-selected":l.value,"is-landing-mode":e.isLandingMode,"component-width":e.componentWidth,onClickMatchDay:p}),null,16,["style","match-day","match-day-selected","is-landing-mode","component-width"])]),_:2},1024))),128))]),_:1},16)],4))}},[["__scopeId","data-v-39d33c84"]]),z2=e=>(o.pushScopeId("data-v-ff4a2f0d"),e=e(),o.popScopeId(),e),M2={class:"quadrant-matches"},R2={class:"quadrant-matches__header"},F2={class:"quadrant-matches__title"},T2=z2(()=>o.createElementVNode("span",null," →",-1)),V2={key:0,class:"quadrant-matches__body"},N2={class:"quadrant-matches__body",style:{"column-gap":"16px"}},v2={class:"quadrant-matches__body matches"},P2={key:0,class:"quadrant-matches__body"},j2={class:"quadrant-matches__body",style:{"column-gap":"16px"}},I2=xe({__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}},tournamentScheduleKeys:{type:Array,default:()=>[]},defaultMatchDayKey:{type:String,default:""}},emits:["change-match-day","change-is-league-selected"],setup(e,{emit:a}){const t=e,n=o.ref(!1);o.computed(()=>t.comingMatches[0]||{}),o.computed(()=>t.previousMatches[0]||{});const s=o.toRef(t,"componentWidth"),i=o.computed(()=>s.value<768);function r(l){a("change-match-day",l)}return(l,p)=>(o.openBlock(),o.createElementBlock("section",M2,[o.createElementVNode("div",R2,[o.createElementVNode("h2",F2,o.toDisplayString(e.isFull?"Partidos":"Mis partidos"),1),o.createCommentVNode("",!0),o.createElementVNode("button",{class:"quadrant-matches__button",onClick:p[0]||(p[0]=c=>l.$emit("clickCalendar"))},[o.createElementVNode("span",null,o.toDisplayString(e.isFull?"Calendario completo":"Mi calendario completo"),1),T2])]),(e.isFull||n.value)&&e.tournamentScheduleKeys&&e.tournamentScheduleKeys.length?(o.openBlock(),o.createBlock(Lr,{key:0,height:"48px","match-days":e.tournamentScheduleKeys,"is-landing-mode":!1,"items-to-show":9,"items-to-scroll":9,"component-width":"100%","default-match-day-key":e.defaultMatchDayKey,onChangeMatchDay:r},null,8,["match-days","default-match-day-key"])):o.createCommentVNode("",!0),!e.isFull&&!n.value?(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[i.value?(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[Object.keys(e.data).length>0?(o.openBlock(),o.createBlock(o.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:o.withCtx(()=>[o.createElementVNode("div",N2,[o.createVNode(gn,{small:"",data:e.data.data.prematch,onClickMatch:p[4]||(p[4]=c=>l.$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?(o.openBlock(),o.createBlock(Vo,{key:0,data:e.data.data.postmatch,onClickMatch:p[5]||(p[5]=c=>l.$emit("clickMatch",e.data.data.postmatch))},null,8,["data"])):(o.openBlock(),o.createBlock(Vo,{key:1,"info-type":"prematch",data:e.data.data.postmatch,onClickMatch:p[6]||(p[6]=c=>l.$emit("clickMatch",e.data.data.postmatch))},null,8,["data"]))])]),_:1})):o.createCommentVNode("",!0)],64)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[Object.keys(e.data).length>0?(o.openBlock(),o.createElementBlock("div",V2,[o.createVNode(gn,{data:e.data.data.prematch,onClickMatch:p[1]||(p[1]=c=>l.$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?(o.openBlock(),o.createBlock(Vo,{key:0,data:e.data.data.postmatch,onClickMatch:p[2]||(p[2]=c=>l.$emit("clickMatch",e.data.data.postmatch))},null,8,["data"])):(o.openBlock(),o.createBlock(Vo,{key:1,"info-type":"prematch",data:e.data.data.postmatch,onClickMatch:p[3]||(p[3]=c=>l.$emit("clickMatch",e.data.data.postmatch))},null,8,["data"]))])):o.createCommentVNode("",!0)],64))],64)):e.data?(o.openBlock(),o.createElementBlock(o.Fragment,{key:2},[e.data.length>1?(o.openBlock(),o.createBlock(o.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:o.withCtx(()=>[o.createElementVNode("div",v2,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.data,(c,d)=>(o.openBlock(),o.createBlock(gn,{key:d,data:c,small:"",onClickMatch:u=>l.$emit("clickMatch",c)},null,8,["data","onClickMatch"]))),128))])]),_:1})):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[i.value?(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[Object.keys(e.data).length>0?(o.openBlock(),o.createBlock(o.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:o.withCtx(()=>[o.createElementVNode("div",j2,[e.data[0].game_status==4?(o.openBlock(),o.createBlock(Dr,{key:0,data:e.data[0],onClickMatch:p[9]||(p[9]=c=>l.$emit("clickMatch",e.data[0]))},null,8,["data"])):o.createCommentVNode("",!0),e.data[0].game_status!=4?(o.openBlock(),o.createBlock(Ur,{key:1,data:e.data[0],onClickMatch:p[10]||(p[10]=c=>l.$emit("clickMatch",e.data[0]))},null,8,["data"])):o.createCommentVNode("",!0)])]),_:1})):o.createCommentVNode("",!0)],64)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[Object.keys(e.data).length>0?(o.openBlock(),o.createElementBlock("div",P2,[e.data[0].game_status==4?(o.openBlock(),o.createBlock(Dr,{key:0,data:e.data[0],onClickMatch:p[7]||(p[7]=c=>l.$emit("clickMatch",e.data[0]))},null,8,["data"])):o.createCommentVNode("",!0),e.data[0].game_status!=4?(o.openBlock(),o.createBlock(Ur,{key:1,data:e.data[0],onClickMatch:p[8]||(p[8]=c=>l.$emit("clickMatch",e.data[0]))},null,8,["data"])):o.createCommentVNode("",!0)])):o.createCommentVNode("",!0)],64))],64))],64)):o.createCommentVNode("",!0)]))}},[["__scopeId","data-v-ff4a2f0d"]]),U2={__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:()=>{}},tournamentScheduleKeys:{type:Array,default:()=>[]},defaultMatchDayKey:{type:String,default:""}},setup(e){return(a,t)=>(o.openBlock(),o.createElementBlock("main",null,[o.createVNode(I2,{data:e.data,"component-width":e.componentWidth,"is-full":e.isFull,"has-team":!e.isplayer,"tournament-schedule-keys":e.tournamentScheduleKeys,"default-match-day-key":e.defaultMatchDayKey,onClickCalendar:t[0]||(t[0]=n=>a.$emit("clickCalendar")),onClickMatch:t[1]||(t[1]=n=>a.$emit("clickMatch",n)),onChangeMatchDay:t[2]||(t[2]=n=>a.$emit("change-match-day",n)),onChangeIsLeagueSelected:t[3]||(t[3]=n=>a.$emit("change-is-league-selected",n))},null,8,["data","component-width","is-full","has-team","tournament-schedule-keys","default-match-day-key"])]))}},D2="_toniKroos_1mxz1_35",G2="_centralMidfielder_1mxz1_55",H2="_icnPlayIcon_1mxz1_75",L2="_verVideos_1mxz1_89",K2="_btnVideosOptions_1mxz1_109",q2="_btnVideosOptionsTeams_1mxz1_139",Z2="_info_1mxz1_179",Q2="_goalUnlock_1mxz1_203",Y2="_teamsAmerica_1mxz1_229",W2="_imageIcon_1mxz1_249",J2="_imageIconTeam_1mxz1_271",X2="_playerTops_1mxz1_295",_2={toniKroos:D2,centralMidfielder:G2,icnPlayIcon:H2,verVideos:L2,btnVideosOptions:K2,btnVideosOptionsTeams:q2,info:Z2,goalUnlock:Q2,teamsAmerica:Y2,imageIcon:W2,imageIconTeam:J2,playerTops:X2},$2=(e,a)=>{const t=e.__vccOpts||e;for(const[n,s]of a)t[n]=s;return t},ew={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))}}},tw=["src"],ow=["src"],aw=["src"];function nw(e,a,t,n,s,i){return o.openBlock(),o.createElementBlock("section",{class:o.normalizeClass(e.$style.playerTops),style:o.normalizeStyle(i.customMosaic),id:"player-mosaico",onClick:a[1]||(a[1]=r=>i.onPlayerTopsClick(t.data.player_id))},[o.createElementVNode("div",{class:o.normalizeClass(e.$style.info)},[o.createElementVNode("h3",{class:o.normalizeClass(e.$style.toniKroos),style:o.normalizeStyle(i.customNamePlayer)},o.toDisplayString(t.data.player_name),7),t.showPositionPlayer?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(e.$style.centralMidfielder),style:o.normalizeStyle(i.customNamePosition)},o.toDisplayString(t.data.player_position),7)):o.createCommentVNode("",!0),o.createElementVNode("button",{class:o.normalizeClass(this.isPlayer?e.$style.btnVideosOptions:e.$style.btnVideosOptionsTeams),style:o.normalizeStyle(i.customTotalCont),id:"button-actions",onClick:a[0]||(a[0]=r=>i.onButtonVideos(t.data))},[t.showIconVideo?(o.openBlock(),o.createElementBlock("img",{key:0,class:o.normalizeClass(e.$style.icnPlayIcon),src:t.iconPlay},null,10,tw)):o.createCommentVNode("",!0),o.createElementVNode("div",{class:o.normalizeClass(e.$style.verVideos),style:o.normalizeStyle(i.customTotal)},o.toDisplayString(t.data.player_stat)+" "+o.toDisplayString(t.data.category),7)],6)],2),o.createElementVNode("b",{style:o.normalizeStyle(i.customNumberTop),class:o.normalizeClass(e.$style.goalUnlock)},o.toDisplayString(t.data.top),7),t.showShieldTeam?(o.openBlock(),o.createElementBlock("img",{key:0,class:o.normalizeClass(e.$style.teamsAmerica),style:o.normalizeStyle(i.customShieldTeam),loading:"lazy",src:t.data.team_logo},null,14,ow)):o.createCommentVNode("",!0),o.createElementVNode("img",{style:o.normalizeStyle(i.customPhotoPlayerOrTeam),class:o.normalizeClass(this.isPlayer?e.$style.imageIcon:e.$style.imageIconTeam),loading:"lazy",src:t.data.player_photo},null,14,aw)],6)}const iw={$style:_2},sw=$2(ew,[["render",nw],["__cssModules",iw]]),rw=(e,a)=>{const t=e.__vccOpts||e;for(const[n,s]of a)t[n]=s;return t},An={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))}}},Kr=()=>{o.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}))},qr=An.setup;An.setup=qr?(e,a)=>(Kr(),qr(e,a)):Kr;const lw=e=>(o.pushScopeId("data-v-fb269a1e"),e=e(),o.popScopeId(),e),cw=["src"],dw={key:1,class:"text"},mw=["src"],pw={class:"stats"},uw=lw(()=>o.createElementVNode("img",{class:"iconstats",src:"https://az755631.vo.msecnd.net/todoelfut/playdes.png"},null,-1)),hw={class:"numstats"},gw={class:"leyend"};function fw(e,a,t,n,s,i){return o.openBlock(),o.createElementBlock("div",null,[t.type==0?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(["button",s.status&&t.typeOnOff&&"button-active"]),style:o.normalizeStyle([i.customStyle,s.status&&t.typeOnOff&&i.customActive]),onClick:a[0]||(a[0]=(...r)=>i.btnClick&&i.btnClick(...r))},[t.icon&&t.iconPosition.toLowerCase()==="left"?(o.openBlock(),o.createElementBlock("img",{key:0,class:"icon",style:o.normalizeStyle({width:t.iconSize}),src:t.icon},null,12,cw)):o.createCommentVNode("",!0),t.textValue?(o.openBlock(),o.createElementBlock("div",dw,o.toDisplayString(t.textValue),1)):o.createCommentVNode("",!0),t.icon&&t.iconPosition.toLowerCase()==="right"?(o.openBlock(),o.createElementBlock("img",{key:2,class:"icon",style:o.normalizeStyle({width:t.iconSize}),src:t.icon},null,12,mw)):o.createCommentVNode("",!0)],6)):o.createCommentVNode("",!0),t.type==1?(o.openBlock(),o.createElementBlock("div",{key:1,class:"button-target",onClick:a[1]||(a[1]=(...r)=>i.btnClick&&i.btnClick(...r))},[o.createElementVNode("div",pw,[uw,o.createElementVNode("div",hw,o.toDisplayString(t.textStat),1)]),o.createElementVNode("div",gw,o.toDisplayString(t.textCategory),1)])):o.createCommentVNode("",!0)])}const Zr=rw(An,[["render",fw],["__scopeId","data-v-fb269a1e"]]);function yw(e){const a=o.ref({width:0,height:0});function t(){const n=e.value.getBoundingClientRect();a.value.width=n.width,a.value.height=n.height}return o.onMounted(()=>{t(),window.addEventListener("resize",t)}),o.onUnmounted(()=>{window.removeEventListener("resize",t)}),{elementSize:a}}const Cn={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)}}},Qr=()=>{o.useCssVars(e=>({"2bf57034":e.backgroundColor,b8f32872:e.widthCircle,23023166:e.heightCircle}))},Yr=Cn.setup;Cn.setup=Yr?(e,a)=>(Qr(),Yr(e,a)):Qr;const bw={key:0,class:"text-left"},ww=["width","src"],Aw=["checked"],Cw=["width","src"],kw={key:3,class:"text-right"};function Sw(e,a,t,n,s,i){return o.openBlock(),o.createElementBlock("div",{class:"gsc-switch-radio",style:o.normalizeStyle(i.customText)},[t.textOptionLeft!=""&&!t.hiddenLabels?(o.openBlock(),o.createElementBlock("span",bw,o.toDisplayString(t.textOptionLeft),1)):o.createCommentVNode("",!0),t.iconA!=""?(o.openBlock(),o.createElementBlock("img",{key:1,width:t.widthIcons,src:t.iconA},null,8,ww)):o.createCommentVNode("",!0),o.createElementVNode("input",{type:"checkbox",id:"toggle-btn",onChange:a[0]||(a[0]=(...r)=>i.handleSwitchChange&&i.handleSwitchChange(...r)),checked:s.OptionDefault},null,40,Aw),o.createElementVNode("label",{for:"toggle-btn",style:o.normalizeStyle([i.customStyle,{"--circle-color":t.circleColorSwitch}])},null,4),t.iconB!=""?(o.openBlock(),o.createElementBlock("img",{key:2,width:t.widthIcons,src:t.iconB},null,8,Cw)):o.createCommentVNode("",!0),t.textOptionRight!=""&&!t.hiddenLabels?(o.openBlock(),o.createElementBlock("span",kw,o.toDisplayString(t.textOptionRight),1)):o.createCommentVNode("",!0)],4)}const kn={components:{GSCSlider:Nt,GSCMosaicthebest:sw,GscSwitchComponent:Za,GSCButton:Zr,GSCRadioToggle:xe(Cn,[["render",Sw],["__scopeId","data-v-c2ae0cf9"]])},setup(){const e=o.ref("myDivRef"),{elementSize:a}=yw(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 t=this.categorySelected!==null?this.categorySelected:1;this.showSwitch||(this.filterSelected=1),await this.getCategoryStats(e,this.filterSelected,t)}},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 t="";if(a[1]&&(t=`${a[1].trim()[0]}.`,a[0])){const s=(n=a[0])==null?void 0:n.trim().split(" ");for(let i of s)if(t=`${t} ${i.trim()}`,i.trim().length>3)break}return t},translateTopCategories(e){return{1:[12,55,"35_r","54_r"],2:[2,20],3:[485,486,487,488],4:[10,324],5:[27,323],6:[510],7:[537,540,544,547],8:[328],9:[231,238,280,287,294,406],10:[13,25],11:[98,101,104,105,109,112,115,116],12:[4],13:[88],14:[5],15:[34],16:[23],17:[11],18:[17,50],19:[18,49],20:[14,52],21:[15,53],22:[39],23:[31,32]}[e]||[]},onOpenMedia(e){const a=this.translateTopCategories(this.categorySelected),t=2,n=3;let s=[],i=0,r=0;this.isTeam?(i=e.player_id,r=n):(s=[e.player_id],r=t);const l={seasonId:this.season,tournaments:[],isFeaturedPlayers:!1,mainSectionType:1,playListType:r,gameIds:null,playerIds:s,goalkeeperIds:[],categoryIds:a,teamId:i,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},compareObjectsMinutes(e,a){return e.total>a.total?-1:e.total<a.total?1:e.minutes<a.minutes?-1:e.minutes>a.minutes?1:0},changeCategory(e){this.categoryName=e;const a=this.categories.find(t=>t.name===e);this.categorySelected=a.id},async getCategoryStats(e,a,t=0){try{let i={},r={},l=[];const p=le.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=>{i[c[0]]={},i[c[0]].id=c[0],i[c[0]].name=c[1],i[c[0]].img=c[3],i[c[0]].abrv=c[2],i[c[0]].logo=c[3]}),n.data.players.map(c=>{r[c[0]]={},r[c[0]].id=c[0],r[c[0]].name=c[1],r[c[0]].img=c[2],r[c[0]].position=c[6],r[c[0]].minutes=c[13],r[c[0]].logo="https://az755631.vo.msecnd.net/teams-80/"+c[10][0].team_id+".png"});var s=1;n.data.tops.map(c=>{l[c.category?c.category:s]={};var d={},u={};c.teams.map(h=>{d[h[0]]={},d[h[0]].total=h[1],d[h[0]].id=i[h[0]].id,d[h[0]].name=i[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]].minutes=r[h[0]].minutes,u[h[0]].total=h[1],u[h[0]].name=r[h[0]].name,u[h[0]].img=r[h[0]].img.replace("players-profile/","players-profile/"),u[h[0]].id=r[h[0]].id,u[h[0]].position=this.positions[r[h[0]].position-1].name,u[h[0]].logo=r[h[0]].logo});var f=[],m=[];for(const h in d)f.push(d[h]);for(const h in u)m.push(u[h]);f.sort((h,g)=>h.total<g.total?1:-1),m=m.sort(this.compareObjectsMinutes).slice(0,60),l[c.category?c.category:s].top__players=m,l[c.category?c.category:s].top__teams=f,s++})}t===0?this.categorySelected=1:this.categorySelected=t,this.categoryData=l}catch(i){return Promise.reject(i)}}}},Wr=()=>{o.useCssVars(e=>({"5a58e743":e.backgroundColor,"58aac136":e.fontFamily,d7499f7c:e.fontSize,"13a8317c":e.fontColor,c8868bac:e.marginMosaic}))},Jr=kn.setup;kn.setup=Jr?(e,a)=>(Wr(),Jr(e,a)):Wr;const Bw=e=>(o.pushScopeId("data-v-22425344"),e=e(),o.popScopeId(),e),Ow={class:"gsc-best",ref:"myDivRef"},Ew={class:"gsc-best__line-bar-tools"},xw={key:0,class:"gsc-best__line-bar-tools__title"},zw=Bw(()=>o.createElementVNode("span",null,"Los mejores ",-1)),Mw={key:1,class:"gsc-best__line-bar-tools__titlefull"},Rw={class:"unit-items"},Fw={key:2,class:"gsc-best__line-bar-tools__tools"},Tw={key:0,class:"gsc-best__line-bar-tools__tools__tabs"},Vw={class:"gsc-best__line-bar-tools__tools__btn"},Nw={key:0,class:"gsc-best__line-bar-tools-movil"},vw={class:"gsc-best__line-bar-tools-movil__tabs"},Pw={class:"gsc-best__categories"},jw={class:"gsc-best__players"};function Iw(e,a,t,n,s,i){const r=o.resolveComponent("GSCRadioToggle"),l=o.resolveComponent("GSCButton"),p=o.resolveComponent("GscSwitchComponent"),c=o.resolveComponent("GSCMosaicthebest"),d=o.resolveComponent("GSCSlider");return o.openBlock(),o.createElementBlock("div",Ow,[o.createElementVNode("div",Ew,[n.elementSize.width>900?(o.openBlock(),o.createElementBlock("div",xw,[zw,e.optionSelected!=="Equipos"&&t.showSwitch?(o.openBlock(),o.createBlock(r,{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/"+t.teamId+".png",iconB:"https://az755631.vo.msecnd.net/todoelfut/1.png",textOptionLeft:"Mi equipo",textOptionRight:"Liga MX",onChange:i.ChangeRadio},null,8,["iconA","onChange"])):o.createCommentVNode("",!0)])):o.createCommentVNode("",!0),n.elementSize.width<=900?(o.openBlock(),o.createElementBlock("div",Mw,[o.createElementVNode("span",{style:o.normalizeStyle(n.elementSize.width<=380?"font-size: 15px; margin-top:0px; width:60px;":"")},"Los mejores ",4),o.createElementVNode("span",Rw,[e.optionSelected!=="Equipos"&&t.showSwitch?(o.openBlock(),o.createBlock(r,{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/"+t.teamId+".png",iconB:"https://az755631.vo.msecnd.net/todoelfut/1.png",textOptionLeft:"Mi equipo",textOptionRight:"Liga MX",onChange:i.ChangeRadio},null,8,["iconA","onChange"])):o.createCommentVNode("",!0),o.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:i.clickMore},null,8,["font-color","font-size","onClick"])])])):o.createCommentVNode("",!0),n.elementSize.width>900?(o.openBlock(),o.createElementBlock("div",Fw,[n.elementSize.width>900?(o.openBlock(),o.createElementBlock("div",Tw,[o.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:i.changeType,arrowsScrollHide:!1,arrowsPosition:"absolute"},null,8,["selected-option","onInput"])])):o.createCommentVNode("",!0),o.createElementVNode("div",Vw,[o.createVNode(l,{width:"75px","text-value":"Ver más","font-size":"14px","text-decoration":"underline",onClick:i.clickMore},null,8,["onClick"]),o.createVNode(l,{width:"10px","text-value":"→","font-size":"14px","font-color":"#cbee6b",onClick:i.clickMore},null,8,["onClick"])])])):o.createCommentVNode("",!0)]),n.elementSize.width<=900?(o.openBlock(),o.createElementBlock("div",Nw,[o.createElementVNode("div",vw,[o.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:i.changeType},null,8,["selected-option","onInput"])])])):o.createCommentVNode("",!0),o.createElementVNode("div",Pw,[o.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:i.changeCategory,pxScroll:200,scrollColor:"none",arrowsScrollHide:!1,arrowsMargin:0,borderWidth:"2px"},null,8,["buttons","font-size","onInput"])]),o.createElementVNode("div",jw,[o.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:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(i.topData,(u,f)=>(o.openBlock(),o.createElementBlock("div",{key:f,class:o.normalizeClass(["gsc-best__players__item",f==0?"margin-none":""])},[o.createVNode(c,{data:{player_id:u.id,player_name:this.isTeam?u.name:i.formatPlayerName(u.name),player_position:u.position,player_stat:u.total,category:"Total",top:f<9?"0"+(f+1):f+1,team_logo:u.logo,player_photo:u.img},"show-shield-team":!0,"active-videos":!0,onClickMosaic:i.clickMosaic,onOpenmedia:i.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 Uw=xe(kn,[["render",Iw],["__scopeId","data-v-22425344"]]);/**
33
33
  * Vue 3 Carousel 0.3.1
34
34
  * (c) 2023
35
35
  * @license MIT