@golstats/gsc-game-data 1.0.253 → 1.0.254

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.
@@ -121,7 +121,7 @@
121
121
  * Vue 3 Carousel 0.3.1
122
122
  * (c) 2023
123
123
  * @license MIT
124
- */const Su={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"}},_H={itemsToShow:{default:Su.itemsToShow,type:Number},itemsToScroll:{default:Su.itemsToScroll,type:Number},wrapAround:{default:Su.wrapAround,type:Boolean},throttle:{default:Su.throttle,type:Number},snapAlign:{default:Su.snapAlign,validator(e){return["start","end","center","center-even","center-odd"].includes(e)}},transition:{default:Su.transition,type:Number},breakpoints:{default:Su.breakpoints,type:Object},autoplay:{default:Su.autoplay,type:Number},pauseAutoplayOnHover:{default:Su.pauseAutoplayOnHover,type:Boolean},modelValue:{default:void 0,type:Number},mouseDrag:{default:Su.mouseDrag,type:Boolean},touchDrag:{default:Su.touchDrag,type:Boolean},dir:{default:Su.dir,validator(e){return["rtl","ltr"].includes(e)}},i18n:{default:Su.i18n,type:Object},settings:{default(){return{}},type:Object}};function ubt({config:e,slidesCount:r}){const{snapAlign:i,wrapAround:B,itemsToShow:D=1}=e;if(B)return Math.max(r-1,0);let c;switch(i){case"start":c=r-D;break;case"end":c=r-1;break;case"center":case"center-odd":c=r-Math.ceil((D-.5)/2);break;case"center-even":c=r-Math.ceil(D/2);break;default:c=0;break}return Math.max(c,0)}function hbt({config:e,slidesCount:r}){const{wrapAround:i,snapAlign:B,itemsToShow:D=1}=e;let c=0;if(i||D>r)return c;switch(B){case"start":c=0;break;case"end":c=D-1;break;case"center":case"center-odd":c=Math.floor((D-1)/2);break;case"center-even":c=Math.floor((D-2)/2);break;default:c=0;break}return c}function iE({val:e,max:r,min:i}){return r<i?e:Math.min(Math.max(e,i),r)}function pbt({config:e,currentSlide:r,slidesCount:i}){const{snapAlign:B,wrapAround:D,itemsToShow:c=1}=e;let g=r;switch(B){case"center":case"center-odd":g-=(c-1)/2;break;case"center-even":g-=(c-2)/2;break;case"end":g-=c-1;break}return D?g:iE({val:g,max:i-c,min:0})}function bH(e){return e?e.reduce((r,i)=>{var B;return i.type===t.Fragment?[...r,...bH(i.children)]:((B=i.type)===null||B===void 0?void 0:B.name)==="CarouselSlide"?[...r,i]:r},[]):[]}function oE({val:e,max:r,min:i=0}){return e>r?oE({val:e-(r+1),max:r,min:i}):e<i?oE({val:e+(r+1),max:r,min:i}):e}function fbt(e,r){let i;return r?function(...B){const D=this;i||(e.apply(D,B),i=!0,setTimeout(()=>i=!1,r))}:e}function mbt(e,r){let i;return function(...B){i&&clearTimeout(i),i=setTimeout(()=>{e(...B),i=null},r)}}function gbt(e="",r={}){return Object.entries(r).reduce((i,[B,D])=>i.replace(`{${B}}`,String(D)),e)}var ybt=t.defineComponent({name:"ARIA",setup(){const e=t.inject("config",t.reactive(Object.assign({},Su))),r=t.inject("currentSlide",t.ref(0)),i=t.inject("slidesCount",t.ref(0));return()=>t.h("div",{class:["carousel__liveregion","carousel__sr-only"],"aria-live":"polite","aria-atomic":"true"},gbt(e.i18n.itemXofY,{currentSlide:r.value+1,slidesCount:i.value}))}}),vbt=t.defineComponent({name:"Carousel",props:_H,setup(e,{slots:r,emit:i,expose:B}){var D;const c=t.ref(null),g=t.ref([]),a=t.ref(0),y=t.ref(0),f=t.reactive(Object.assign({},Su));let n=Object.assign({},Su),v;const _=t.ref((D=e.modelValue)!==null&&D!==void 0?D:0),p=t.ref(0),l=t.ref(0),o=t.ref(0),s=t.ref(0);let u,d;t.provide("config",f),t.provide("slidesCount",y),t.provide("currentSlide",_),t.provide("maxSlide",o),t.provide("minSlide",s),t.provide("slideWidth",a);function h(){v=Object.assign({},e.breakpoints),n=Object.assign(Object.assign(Object.assign({},n),e),{i18n:Object.assign(Object.assign({},n.i18n),e.i18n),breakpoints:void 0}),b(n)}function m(){if(!v||!Object.keys(v).length)return;const ae=Object.keys(v).map(ie=>Number(ie)).sort((ie,ue)=>+ue-+ie);let ne=Object.assign({},n);ae.some(ie=>{const ue=window.matchMedia(`(min-width: ${ie}px)`).matches;return ue&&(ne=Object.assign(Object.assign({},ne),v[ie])),ue}),b(ne)}function b(ae){Object.entries(ae).forEach(([ne,ie])=>f[ne]=ie)}const w=mbt(()=>{m(),x()},16);function x(){if(!c.value)return;const ae=c.value.getBoundingClientRect();a.value=ae.width/f.itemsToShow}function S(){y.value<=0||(l.value=Math.ceil((y.value-1)/2),o.value=ubt({config:f,slidesCount:y.value}),s.value=hbt({config:f,slidesCount:y.value}),f.wrapAround||(_.value=iE({val:_.value,max:o.value,min:s.value})))}t.onMounted(()=>{t.nextTick(()=>x()),setTimeout(()=>x(),1e3),m(),V(),window.addEventListener("resize",w,{passive:!0}),i("init")}),t.onUnmounted(()=>{d&&clearTimeout(d),u&&clearInterval(u),window.removeEventListener("resize",w,{passive:!0})});let C=!1;const T={x:0,y:0},k={x:0,y:0},A=t.reactive({x:0,y:0}),E=t.ref(!1),M=t.ref(!1),I=()=>{E.value=!0},N=()=>{E.value=!1};function z(ae){["INPUT","TEXTAREA","SELECT"].includes(ae.target.tagName)||(C=ae.type==="touchstart",C||ae.preventDefault(),!(!C&&ae.button!==0||U.value)&&(T.x=C?ae.touches[0].clientX:ae.clientX,T.y=C?ae.touches[0].clientY:ae.clientY,document.addEventListener(C?"touchmove":"mousemove",F,!0),document.addEventListener(C?"touchend":"mouseup",R,!0)))}const F=fbt(ae=>{M.value=!0,k.x=C?ae.touches[0].clientX:ae.clientX,k.y=C?ae.touches[0].clientY:ae.clientY;const ne=k.x-T.x,ie=k.y-T.y;A.y=ie,A.x=ne},f.throttle);function R(){const ae=f.dir==="rtl"?-1:1,ne=Math.sign(A.x)*.4,ie=Math.round(A.x/a.value+ne)*ae;if(ie&&!C){const ue=he=>{he.stopPropagation(),window.removeEventListener("click",ue,!0)};window.addEventListener("click",ue,!0)}Z(_.value-ie),A.x=0,A.y=0,M.value=!1,document.removeEventListener(C?"touchmove":"mousemove",F,!0),document.removeEventListener(C?"touchend":"mouseup",R,!0)}function V(){!f.autoplay||f.autoplay<=0||(u=setInterval(()=>{f.pauseAutoplayOnHover&&E.value||q()},f.autoplay))}function $(){u&&(clearInterval(u),u=null),V()}const U=t.ref(!1);function Z(ae){const ne=f.wrapAround?ae:iE({val:ae,max:o.value,min:s.value});_.value===ne||U.value||(i("slide-start",{slidingToIndex:ae,currentSlideIndex:_.value,prevSlideIndex:p.value,slidesCount:y.value}),U.value=!0,p.value=_.value,_.value=ne,d=setTimeout(()=>{if(f.wrapAround){const ie=oE({val:ne,max:o.value,min:0});ie!==_.value&&(_.value=ie,i("loop",{currentSlideIndex:_.value,slidingToIndex:ae}))}i("update:modelValue",_.value),i("slide-end",{currentSlideIndex:_.value,prevSlideIndex:p.value,slidesCount:y.value}),U.value=!1,$()},f.transition))}function q(){Z(_.value+f.itemsToScroll)}function W(){Z(_.value-f.itemsToScroll)}const Q={slideTo:Z,next:q,prev:W};t.provide("nav",Q),t.provide("isSliding",U);const X=t.computed(()=>pbt({config:f,currentSlide:_.value,slidesCount:y.value}));t.provide("slidesToScroll",X);const J=t.computed(()=>{const ae=f.dir==="rtl"?-1:1,ne=X.value*a.value*ae;return{transform:`translateX(${A.x-ne}px)`,transition:`${U.value?f.transition:0}ms`,margin:f.wrapAround?`0 -${y.value*a.value}px`:"",width:"100%"}});function ee(){h(),m(),S(),x(),$()}Object.keys(_H).forEach(ae=>{["modelValue"].includes(ae)||t.watch(()=>e[ae],ee)}),t.watch(()=>e.modelValue,ae=>{ae!==_.value&&Z(Number(ae))}),t.watch(y,S),i("before-init"),h();const le={config:f,slidesCount:y,slideWidth:a,next:q,prev:W,slideTo:Z,currentSlide:_,maxSlide:o,minSlide:s,middleSlide:l};B({updateBreakpointsConfigs:m,updateSlidesData:S,updateSlideWidth:x,initDefaultConfigs:h,restartCarousel:ee,slideTo:Z,next:q,prev:W,nav:Q,data:le});const oe=r.default||r.slides,se=r.addons,ce=t.reactive(le);return()=>{const ae=bH(oe==null?void 0:oe(ce)),ne=(se==null?void 0:se(ce))||[];ae.forEach((pe,me)=>pe.props.index=me);let ie=ae;if(f.wrapAround){const pe=ae.map((be,we)=>t.cloneVNode(be,{index:-ae.length+we,isClone:!0,key:`clone-before-${we}`})),me=ae.map((be,we)=>t.cloneVNode(be,{index:ae.length+we,isClone:!0,key:`clone-after-${we}`}));ie=[...pe,...ae,...me]}g.value=ae,y.value=Math.max(ae.length,1);const ue=t.h("ol",{class:"carousel__track",style:J.value,onMousedownCapture:f.mouseDrag?z:null,onTouchstartPassiveCapture:f.touchDrag?z:null},ie),he=t.h("div",{class:"carousel__viewport"},ue);return t.h("section",{ref:c,class:{carousel:!0,"is-sliding":U.value,"is-dragging":M.value,"is-hover":E.value,"carousel--rtl":f.dir==="rtl"},dir:f.dir,"aria-label":f.i18n.ariaGallery,tabindex:"0",onMouseenter:I,onMouseleave:N},[he,ne,t.h(ybt)])}}}),xH;(function(e){e.arrowUp="arrowUp",e.arrowDown="arrowDown",e.arrowRight="arrowRight",e.arrowLeft="arrowLeft"})(xH||(xH={}));var _bt=t.defineComponent({name:"CarouselSlide",props:{index:{type:Number,default:1},isClone:{type:Boolean,default:!1}},setup(e,{slots:r}){const i=t.inject("config",t.reactive(Object.assign({},Su))),B=t.inject("currentSlide",t.ref(0)),D=t.inject("slidesToScroll",t.ref(0)),c=t.inject("isSliding",t.ref(!1)),g=()=>e.index===B.value,a=()=>e.index===B.value-1,y=()=>e.index===B.value+1,f=()=>{const n=Math.floor(D.value),v=Math.ceil(D.value+i.itemsToShow-1);return e.index>=n&&e.index<=v};return()=>{var n;return t.h("li",{style:{width:`${100/i.itemsToShow}%`},class:{carousel__slide:!0,"carousel__slide--clone":e.isClone,"carousel__slide--visible":f(),"carousel__slide--active":g(),"carousel__slide--prev":a(),"carousel__slide--next":y(),"carousel__slide--sliding":c.value},"aria-hidden":!f()},(n=r.default)===null||n===void 0?void 0:n.call(r))}}});const bbt=(e,r)=>{const i=e.__vccOpts||e;for(const[B,D]of r)i[B]=D;return i},xbt=e=>(t.pushScopeId("data-v-54620d25"),e=e(),t.popScopeId(),e),wbt={class:"gsc-carousel"},kbt={key:0},Cbt=xbt(()=>t.createElementVNode("div",null,"no hay",-1)),Sbt=[Cbt],Tbt={class:"gsc-carousel__2d__slides"},Ebt={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Abt=["fill"],Mbt={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Ibt=["fill"],Pbt={class:"gsc-carousel__2d__navigation"},Bbt={width:"8",height:"15",viewBox:"0 0 8 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Nbt=["stroke"],zbt={key:1,class:"gsc-carousel__2d__navigation__pagination"},Obt=["onClick"],Fbt={width:"7",height:"15",viewBox:"0 0 7 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Lbt=["stroke"],Dbt={__name:"GSC-Carousel",props:{currentItemIndex:{type:Number,default:0},items:{type:Array,default:()=>[]},is3d:{type:Boolean,default:!1},isPaginationVisible:{type:Boolean,default:!1},areNavigationArrowsVisible:{type:Boolean,default:!0},defaultItemByIndex:{type:Number,default:0},defaultItemByProp:{type:Object,default:null,validator:e=>["propName","value"].every(r=>r in e)},navigationHeight:{type:Number,default:4},navigationBorderRadius:{type:Number,default:4},navigationColor:{type:String,default:"rgba(255, 255, 255, 0.4)"},navigationActiveColor:{type:String,default:"#cbee6b"},navigationActiveWidth:{type:Number,default:30},arrowsColor:{type:String,default:"#cbee6b"},arrowsMaxWidth:{type:String,default:"20px"},wrapAround:{type:Boolean,default:!1},itemsToShow:{type:Number,default:1},isMainSlidePriority:{type:Boolean,default:!1},areSlidesArrowsVisible:{type:Boolean,default:!1},slideLeftArrowBackgroundImage:{type:String,default:"linear-gradient(to right, rgba(13, 29, 41, 1), rgba(0, 0, 0, 0))"},slideRightArrowBackgroundImage:{type:String,default:"linear-gradient(to left, rgba(13, 29, 41, 1), rgba(0, 0, 0, 0))"},areSlidesArrowsRounded:{type:Boolean,default:!1},slidesArrowsLeftAndRight:{type:String,default:"20px"},secondarySlidesOpacity:{type:Number,default:.8},marginTop:{type:String,default:"0"}},emits:["input","update:currentItemIndex"],setup(e,{expose:r,emit:i}){const B=e;t.useCssVars(o=>({"2c72d674":e.slideLeftArrowBackgroundImage,"90a63f40":e.slidesArrowsLeftAndRight,"2627d097":e.slideRightArrowBackgroundImage,"1904d43f":e.marginTop,cfb58986:e.secondarySlidesOpacity}));const D=t.ref(null),c=t.ref({}),g=t.ref(0),a=t.ref(!1);t.watch(D,o=>{o&&a.value?(a.value=!1,y(B.items)):o&&o.slideTo&&o.slideTo(g.value)},{deep:!0}),t.watch(()=>B.currentItemIndex,o=>{g.value!==o&&_(o)}),t.watch(()=>B.defaultItemByIndex,o=>{g.value!==o&&_(o)}),t.watch(()=>B.items,o=>{D.value?y(o):a.value=!0},{immediate:!0});function y(o){o&&o.length&&D.value&&setTimeout(()=>{if(B.defaultItemByProp){const s=B.items.findIndex(u=>u[B.defaultItemByProp.propName]===B.defaultItemByProp.value);s!==-1?(g.value=s,c.value=o[s]):(g.value=0,c.value=o[0])}else g.value=B.defaultItemByIndex,c.value=o[B.defaultItemByIndex];D.value.slideTo&&D.value.slideTo(g.value),c.value&&g.value===0&&i("input",{selectedItem:c.value,selectedItemIndex:g.value})},500)}function f(){D.value&&D.value.next()}function n(){D.value&&D.value.prev()}function v(){D.value&&D.value.updateSlideWidth()}function _(o){D.value&&D.value.slideTo(o)}function p(o){D.value.slideTo(o)}function l(o){const s=o.slidingToIndex<0?B.items.length-1:o.slidingToIndex===B.items.length?0:o.slidingToIndex;g.value=s,c.value=B.items[s],i("update:currentItemIndex",s),i("input",{selectedItem:c.value,selectedItemIndex:g.value})}return r({prev:n,next:f,updateSlideWidth:v,slideTo:_}),(o,s)=>(t.openBlock(),t.createElementBlock("div",wbt,[B.is3d?(t.openBlock(),t.createElementBlock("div",kbt,Sbt)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(["gsc-carousel__2d",{"main-slide-priority":e.isMainSlidePriority}])},[t.createElementVNode("div",Tbt,[t.createVNode(t.unref(vbt),{ref_key:"carousel2d",ref:D,"items-to-show":e.itemsToShow,"wrap-around":e.wrapAround,onSlideStart:l},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(u,d)=>(t.openBlock(),t.createBlock(t.unref(_bt),{key:d},{default:t.withCtx(()=>[t.renderSlot(o.$slots,"default",{item:u},void 0,!0)]),_:2},1024))),128))]),_:3},8,["items-to-show","wrap-around"])]),e.areSlidesArrowsVisible&&e.items.length>1?(t.openBlock(),t.createElementBlock("div",{key:0,class:"gsc-carousel__2d__arrow-left",style:t.normalizeStyle("max-width:"+e.arrowsMaxWidth+"!important"),onClick:s[0]||(s[0]=u=>D.value.prev())},[t.createElementVNode("div",{class:t.normalizeClass(["gsc-carousel__2d__slide-button",{rounded:e.areSlidesArrowsRounded}])},[(t.openBlock(),t.createElementBlock("svg",Ebt,[t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.10399 9L8.62342 15.4393C9.12552 16.0251 9.12552 16.9749 8.62342 17.5607C8.12132 18.1464 7.30725 18.1464 6.80514 17.5607L0.376575 10.0607C-0.125528 9.47487 -0.125528 8.52512 0.376575 7.93934L6.80515 0.439339C7.30725 -0.146447 8.12132 -0.146447 8.62342 0.43934C9.12553 1.02513 9.12553 1.97487 8.62342 2.56066L3.10399 9Z",fill:e.arrowsColor},null,8,Abt)]))],2)],4)):t.createCommentVNode("",!0),e.areSlidesArrowsVisible&&e.items.length>1?(t.openBlock(),t.createElementBlock("div",{key:1,class:"gsc-carousel__2d__arrow-right",style:t.normalizeStyle("max-width:"+e.arrowsMaxWidth+"!important"),onClick:s[1]||(s[1]=u=>f())},[t.createElementVNode("div",{class:t.normalizeClass(["gsc-carousel__2d__slide-button",{rounded:e.areSlidesArrowsRounded}])},[(t.openBlock(),t.createElementBlock("svg",Mbt,[t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5.89601 9L0.376575 2.56066C-0.125528 1.97487 -0.125528 1.02513 0.376575 0.439339C0.878675 -0.146447 1.69275 -0.146447 2.19486 0.43934L8.62343 7.93934C9.12553 8.52513 9.12553 9.47487 8.62343 10.0607L2.19486 17.5607C1.69275 18.1464 0.878675 18.1464 0.376575 17.5607C-0.125528 16.9749 -0.125528 16.0251 0.376575 15.4393L5.89601 9Z",fill:e.arrowsColor},null,8,Ibt)]))],2)],4)):t.createCommentVNode("",!0),t.createElementVNode("div",Pbt,[e.areNavigationArrowsVisible?(t.openBlock(),t.createElementBlock("div",{key:0,class:"gsc-carousel__2d__navigation__arrow-left",onClick:s[2]||(s[2]=u=>n())},[(t.openBlock(),t.createElementBlock("svg",Bbt,[t.createElementVNode("path",{d:"M6.72998 13.894L1.46621 8.63028C0.84457 8.00863 0.84457 6.9914 1.46621 6.36976L6.72998 1.10599",stroke:B.arrowsColor},null,8,Nbt)]))])):t.createCommentVNode("",!0),e.isPaginationVisible?(t.openBlock(),t.createElementBlock("div",zbt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(u,d)=>(t.openBlock(),t.createElementBlock("div",{key:`i-${d}`,class:"gsc-carousel__2d__navigation__pagination__item",style:t.normalizeStyle({height:`${B.navigationHeight}px`,width:`${g.value===d?B.navigationActiveWidth:B.navigationActiveWidth/2}px`,borderRadius:`${B.navigationBorderRadius}px`,backgroundColor:`${g.value===d?B.navigationActiveColor:B.navigationColor}`,transition:"all 0.1s ease-in-out"}),onClick:h=>p(d)},null,12,Obt))),128))])):t.createCommentVNode("",!0),e.areNavigationArrowsVisible?(t.openBlock(),t.createElementBlock("div",{key:2,class:"gsc-carousel__2d__navigation__arrow-right",onClick:s[3]||(s[3]=u=>D.value.next())},[(t.openBlock(),t.createElementBlock("svg",Fbt,[t.createElementVNode("path",{d:"M0.72998 1.10599L5.99375 6.36975C6.61539 6.9914 6.61539 8.00863 5.99375 8.63027L0.72998 13.894",stroke:B.arrowsColor},null,8,Lbt)]))])):t.createCommentVNode("",!0)])],2))]))}},Rbt=bbt(Dbt,[["__scopeId","data-v-54620d25"]]),sE=(e,r)=>{const i=e.__vccOpts||e;for(const[B,D]of r)i[B]=D;return i};let wH=null;const lE={components:{},props:{titleCategory:{type:String,default:"RESUMEN"},dateGame:{type:String,default:""},colorBackgroundHome:{type:String,default:"#000000"},colorBackgroundAway:{type:String,default:"#FFFFFF"},logoHome:{type:String,default:""},matchday:{type:String,default:""},seasonName:{type:String,default:""},logoAway:{type:String,default:""},score:{type:String,default:""},background:{type:String,default:""}},data(){return{gamesContainerWidth:0}},computed:{date(){const e=this.gamesContainerWidth;return e<=400?"date400":e<=540?"date540":e<=650?"date650":"date"},seasoncontainer(){const e=this.gamesContainerWidth;return e<=400?"season-container400":e<=540?"season-container540":e<=650?"season-container650":"season-container"},matchcontainer(){const e=this.gamesContainerWidth;return e<=400?"match-container400":e<=540?"match-container540":e<=650?"match-container650":"match-container"},containerinfogame(){const e=this.gamesContainerWidth;return e<=400?"container-info-game400":e<=540?"container-info-game540":e<=650?"container-info-game650":"container-info-game"},playbutton(){const e=this.gamesContainerWidth;return e<=400?"play-button400":e<=540?"play-button540":e<=650?"play-button650":"play-button"},baselogo(){const e=this.gamesContainerWidth;return e<=400?"base-logo400":e<=540?"base-logo540":e<=650?"base-logo650":"base-logo"},baselogoright(){const e=this.gamesContainerWidth;return e<=400?"base-logo-right400":e<=540?"base-logo-right540":e<=650?"base-logo-right650":"base-logo-right"},thumbnailhighlights(){const e=this.gamesContainerWidth;return e<=400?"thumbnail-highlights400":e<=540?"thumbnail-highlights540":e<=650?"thumbnail-highlights650":"thumbnail-highlights"},teamlogo(){const e=this.gamesContainerWidth;return e<=400?"team-logo400":e<=540?"team-logo540":e<=650?"team-logo650":"team-logo"},logoright(){const e=this.gamesContainerWidth;return e<=400?"logo-right400":e<=540?"logo-right540":e<=650?"logo-right650":"logo-right"},secondline(){const e=this.gamesContainerWidth;return e<=400?"second-line400":e<=540?"second-line540":e<=650?"second-line650":"second-line"},titlename(){const e=this.gamesContainerWidth;return e<=400?"title-name400":e<=540?"title-name540":e<=650?"title-name650":"title-name"}},methods:{onclickPlayVideos(){this.$emit("onclickPlayVideos")},setUpResizeObserver(){if(window.ResizeObserver)wH=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),wH.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},kH=()=>{t.useCssVars(e=>({"41af28e8":e.colorBackgroundHome+"45","90ae2246":e.colorBackgroundAway+"45","1d262e1e":e.colorBackgroundHome,"1d231c2d":e.colorBackgroundAway}))},CH=lE.setup;lE.setup=CH?(e,r)=>(kH(),CH(e,r)):kH;const m4=e=>(t.pushScopeId("data-v-fd9d1e65"),e=e(),t.popScopeId(),e),Vbt=m4(()=>t.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},[t.createElementVNode("path",{d:"M6.6041 22.8554C6.42105 22.7512 6.26805 22.5956 6.1616 22.4053C6.05515 22.215 5.99927 21.9973 6.00001 21.7755V2.22137C6.00026 2.00039 6.0565 1.78362 6.16274 1.59409C6.26899 1.40456 6.42127 1.24936 6.6034 1.14499C6.78553 1.04062 6.9907 0.990981 7.1971 1.00135C7.4035 1.01171 7.60342 1.0817 7.77561 1.20386L21.4907 10.9821C21.6473 11.0935 21.7758 11.2446 21.8646 11.4219C21.9535 11.5992 22 11.7973 22 11.9985C22 12.1996 21.9535 12.3977 21.8646 12.575C21.7758 12.7523 21.6473 12.9034 21.4907 13.0148L7.77561 22.7954C7.60369 22.9178 7.40392 22.988 7.19761 22.9986C6.9913 23.0092 6.78617 22.9597 6.6041 22.8554ZM7.14347 21.7779L20.8585 11.9996L7.14347 21.7779Z",fill:"#CBEE6B"})],-1)),$bt=[Vbt],jbt=m4(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/paper-texture.png",alt:"",class:"paper-texture position-image"},null,-1)),Ubt=["src"],Gbt=m4(()=>t.createElementVNode("div",{class:"gradient-back position-image"},null,-1)),Hbt=m4(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/halftone-texture.png",alt:"",class:"halftone-texture position-image"},null,-1)),Wbt=["src"],qbt=["src"],Ybt={class:"text-container"};function Xbt(e,r,i,B,D,c){return t.openBlock(),t.createElementBlock("div",{ref:"gamesContainer",class:t.normalizeClass(c.thumbnailhighlights)},[t.createElementVNode("div",{class:t.normalizeClass(c.playbutton),onClick:r[0]||(r[0]=(...g)=>c.onclickPlayVideos&&c.onclickPlayVideos(...g))},$bt,2),i.dateGame!=""?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(c.date)},t.toDisplayString(i.dateGame),3)):t.createCommentVNode("",!0),i.matchday!=""&&i.seasonName!=""?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(c.containerinfogame)},[i.matchday!=""?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(c.matchcontainer)},t.toDisplayString(i.matchday),3)):t.createCommentVNode("",!0),i.seasonName!=""?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(c.seasoncontainer)},t.toDisplayString(i.seasonName),3)):t.createCommentVNode("",!0)],2)):t.createCommentVNode("",!0),jbt,t.createElementVNode("img",{src:i.background,alt:"",class:"bkg-blackwhite position-image"},null,8,Ubt),t.createElementVNode("div",{class:t.normalizeClass([c.baselogo,"position-image"])},null,2),t.createElementVNode("div",{class:t.normalizeClass(c.baselogoright)},null,2),Gbt,Hbt,t.createElementVNode("img",{src:i.logoHome,alt:"",class:t.normalizeClass(c.teamlogo)},null,10,Wbt),t.createElementVNode("img",{src:i.logoAway,alt:"",class:t.normalizeClass(c.logoright)},null,10,qbt),t.createElementVNode("div",Ybt,[t.createElementVNode("span",{class:t.normalizeClass(c.secondline)},t.toDisplayString(i.score),3),t.createElementVNode("div",{class:t.normalizeClass(c.titlename)},t.toDisplayString(i.titleCategory),3)])],2)}const Zbt=sE(lE,[["render",Xbt],["__scopeId","data-v-fd9d1e65"]]);let SH=null;const cE={components:{},props:{type:{type:Number,default:0},colorBackgroundHome:{type:String,default:"#000000"},colorBackgroundAway:{type:String,default:"#FFFFFF"},nameCategory:{type:String,default:""},date:{type:String,default:""},seasonName:{type:String,default:""},matchday:{type:String,default:""},photoProfile:{type:String,default:""},logoHome:{type:String,default:""},logoAway:{type:String,default:""},scoreHome:{type:String,default:""},scoreAway:{type:String,default:""},background:{type:String,default:""},typeImg:{type:Number,default:0},nameHomeTeam:{type:String,default:""},nameAwayTeam:{type:String,default:""},namePlayer:{type:String,default:""}},data(){return{gamesContainerWidth:0}},computed:{playbutton(){const e=this.gamesContainerWidth;return e<=400?"play-button400":e<=540?"play-button540":e<=650?"play-button650":"play-button"},points(){const e=this.gamesContainerWidth;return e<=400?"points400":e<=540?"points540":e<=650?"points650":"points"},containerinfogame(){const e=this.gamesContainerWidth;return e<=400?"container-info-game400":e<=540?"container-info-game540":e<=650?"container-info-game650":"container-info-game"},teamname(){const e=this.gamesContainerWidth;return e<=400?"team-name400":e<=540?"team-name540":e<=650?"team-name650":"team-name"},teamscore(){const e=this.gamesContainerWidth;return e<=400?"team-score400":e<=540?"team-score540":e<=650?"team-score650":"team-score"},teamlogo(){const e=this.gamesContainerWidth;return e<=400?"team-logo400":e<=540?"team-logo540":e<=650?"team-logo650":"team-logo"},hometeam(){const e=this.gamesContainerWidth;return e<=400?"home-team400":e<=540?"home-team540":e<=650?"home-team650":"home-team"},awayteam(){const e=this.gamesContainerWidth;return e<=400?"away-team400":e<=540?"away-team540":e<=650?"away-team650":"away-team"},texttitle(){const e=this.gamesContainerWidth;return e<=400?"text-title400":e<=540?"text-title540":e<=650?"text-title650":"text-title"},matchcontainer(){const e=this.gamesContainerWidth;return e<=400?"match-container400":e<=540?"match-container540":e<=650?"match-container650":"match-container"},seasonnameContainer(){const e=this.gamesContainerWidth;return e<=280?"seasonname280":e<=400?"seasonname400":e<=540?"seasonname540":e<=650?"seasonname650":"seasonname"},matchboxContainer(){const e=this.gamesContainerWidth;return e<=400?"matchbox400":e<=540?"matchbox540":e<=650?"matchbox650":"matchbox"},seasoncontainer(){const e=this.gamesContainerWidth;return e<=400?"season-container400":e<=540?"season-container540":e<=650?"season-container650":"season-container"},texttitle2(){const e=this.gamesContainerWidth;return e<=300?"text-title2400":e<=540?"text-title2540":e<=650?"text-title2650":"text-title2"},playerimage(){const e=this.gamesContainerWidth;return e<=400?"player-image400":e<=540?"player-image540":e<=650?"player-image650":"player-image"},thumbnailhighlights(){const e=this.gamesContainerWidth;return e<=400?"thumbnail-highlights400":e<=540?"thumbnail-highlights540":e<=650?"thumbnail-highlights650":"thumbnail-highlights"}},methods:{onclickPlayVideos(){this.$emit("onclickPlayVideos")},setUpResizeObserver(){if(window.ResizeObserver)SH=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),SH.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},TH=()=>{t.useCssVars(e=>({"16e4cc48":e.colorBackgroundHome,"16e1ba57":e.colorBackgroundAway,"0a08a218":e.colorBackgroundAway+"62",31881400:e.colorBackgroundHome+"36"}))},EH=cE.setup;cE.setup=EH?(e,r)=>(TH(),EH(e,r)):TH;const g4=e=>(t.pushScopeId("data-v-4fef1a3b"),e=e(),t.popScopeId(),e),Jbt=g4(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/paper-texture.png",alt:"",class:"paper-texture position-image"},null,-1)),Kbt=g4(()=>t.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},[t.createElementVNode("path",{d:"M6.6041 22.8554C6.42105 22.7512 6.26805 22.5956 6.1616 22.4053C6.05515 22.215 5.99927 21.9973 6.00001 21.7755V2.22137C6.00026 2.00039 6.0565 1.78362 6.16274 1.59409C6.26899 1.40456 6.42127 1.24936 6.6034 1.14499C6.78553 1.04062 6.9907 0.990981 7.1971 1.00135C7.4035 1.01171 7.60342 1.0817 7.77561 1.20386L21.4907 10.9821C21.6473 11.0935 21.7758 11.2446 21.8646 11.4219C21.9535 11.5992 22 11.7973 22 11.9985C22 12.1996 21.9535 12.3977 21.8646 12.575C21.7758 12.7523 21.6473 12.9034 21.4907 13.0148L7.77561 22.7954C7.60369 22.9178 7.40392 22.988 7.19761 22.9986C6.9913 23.0092 6.78617 22.9597 6.6041 22.8554ZM7.14347 21.7779L20.8585 11.9996L7.14347 21.7779Z",fill:"#CBEE6B"})],-1)),Qbt=[Kbt],ext={class:"player-container"},txt=["src"],axt=["src"],nxt=["src"],rxt={class:"container-score"},ixt=["src"],oxt=["src"],sxt=["src"],lxt=g4(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/halftone-texture.png",alt:"",class:"halftone-texture position-image"},null,-1)),cxt=g4(()=>t.createElementVNode("div",{class:"gradient-color"},null,-1));function dxt(e,r,i,B,D,c){return t.openBlock(),t.createElementBlock("div",{ref:"gamesContainer",class:t.normalizeClass(c.thumbnailhighlights)},[Jbt,t.createElementVNode("div",{class:t.normalizeClass(c.playbutton),onClick:r[0]||(r[0]=(...g)=>c.onclickPlayVideos&&c.onclickPlayVideos(...g))},Qbt,2),t.createElementVNode("div",ext,[t.createElementVNode("div",{class:t.normalizeClass(c.containerinfogame)},[t.createElementVNode("div",{class:t.normalizeClass(c.matchcontainer)},[t.createElementVNode("div",{class:t.normalizeClass(c.matchboxContainer)},t.toDisplayString(i.matchday),3),t.createElementVNode("div",{class:t.normalizeClass(c.seasonnameContainer)},t.toDisplayString(i.seasonName),3)],2),t.createElementVNode("div",{class:t.normalizeClass(c.seasoncontainer)},t.toDisplayString(i.date),3)],2),i.type==0?(t.openBlock(),t.createElementBlock("span",{key:0,class:t.normalizeClass(c.texttitle)},t.toDisplayString(i.nameCategory),3)):(t.openBlock(),t.createElementBlock("span",{key:1,class:t.normalizeClass(c.texttitle2)},t.toDisplayString(i.nameCategory),3)),i.typeImg==0?(t.openBlock(),t.createElementBlock("img",{key:2,src:i.photoProfile,class:t.normalizeClass(c.playerimage)},null,10,txt)):t.createCommentVNode("",!0),i.typeImg==1?(t.openBlock(),t.createElementBlock("img",{key:3,src:i.photoProfile,alt:""},null,8,axt)):t.createCommentVNode("",!0),i.typeImg==2?(t.openBlock(),t.createElementBlock("img",{key:4,src:i.photoProfile,class:"img-number"},null,8,nxt)):t.createCommentVNode("",!0),t.createElementVNode("div",rxt,[t.createElementVNode("div",{class:t.normalizeClass(c.hometeam)},[t.createElementVNode("span",{class:t.normalizeClass(c.teamname)},t.toDisplayString(i.nameHomeTeam),3),t.createElementVNode("img",{src:i.logoHome,alt:"",class:t.normalizeClass(c.teamlogo)},null,10,ixt),t.createElementVNode("span",{class:t.normalizeClass(c.teamscore)},t.toDisplayString(i.scoreHome),3)],2),t.createElementVNode("span",{class:t.normalizeClass(c.points)},":",2),t.createElementVNode("div",{class:t.normalizeClass(c.awayteam)},[t.createElementVNode("span",{class:t.normalizeClass(c.teamscore)},t.toDisplayString(i.scoreAway),3),t.createElementVNode("img",{src:i.logoAway,alt:"",class:t.normalizeClass(c.teamlogo)},null,10,oxt),t.createElementVNode("span",{class:t.normalizeClass(c.teamname)},t.toDisplayString(i.nameAwayTeam),3)],2)])]),t.createElementVNode("img",{src:i.background,alt:"",class:"bkg-blackwhite position-image"},null,8,sxt),lxt,cxt],2)}const uxt={components:{GSCCarousel:Rbt,GSCThumbnailHighlightGameHistoric:Zbt,GSCThumbnailHighlightGamePlayer:sE(cE,[["render",dxt],["__scopeId","data-v-4fef1a3b"]])},props:{items:{type:Array,default:()=>[1,2,3]},data:{type:Object,default:()=>{}},title:{type:String,default:"TODAS SUS JUGADAS"},canPlayVideos:{type:Boolean,default:!0},videoPrivilegesPlayingAs:{type:Set,default:()=>new Set([1,2])},privilegesTeamId:{type:Number,default:0}},data(){return{highlightsWidth:0,printData:[],resizeObserverGSCH:null,token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",lastHistoricGamesUrl:""}},watch:{data:{immediate:!0,handler(e){this.getData(e)}}},computed:{printDataFiltered(){return this.canPlayVideos?this.printData.filter(e=>this.videoPrivilegesPlayingAs.has(e.playingAs)):[]},isMobile(){return this.highlightsWidth<580},carouselProps(){return this.isMobile?{wrapAround:!0,itemsToShow:1.2,isMainSlidePriority:!0,areSlidesArrowsVisible:!1,areSlidesArrowsRounded:!1,areNavigationArrowsVisible:!1,isPaginationVisible:!0}:{wrapAround:!0,itemsToShow:1.8,isMainSlidePriority:!0,areSlidesArrowsVisible:!0,areSlidesArrowsRounded:!0,areNavigationArrowsVisible:!1}}},methods:{getPlayingAs(e,r){return e.home_team===(r||this.data.team)?1:2},obtenerNombreCompletoFecha(e){if(e){const r=new Date(e),i=["Domingo","Lunes","Martes","Miércoles","Jueves","Viernes","Sábado"][r.getUTCDay()],B=r.getUTCDate(),D=["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"][r.getUTCMonth()];return`${i} ${B} de ${D}`}else return""},onclickPlayVideos(e){var r=[];e.type==2?e.data.position_id==1?e.data.has_relevants==1?e.data.category==0?r=[55,324,323,608,39,774,802,52,53,40,42,54]:r=e.data.category:r=[55,324,323,608,39,774,802,52,53,40,42,54]:e.data.has_relevants==1?e.data.category==0?r=[12,35,10,27,607,61,519,98,101,109,112,121,122,127,128,135,136,141,142,161,170,179,702,730,466,217,211,232,235,239,242,282,284,289,291,296,485,486,487,488,14,15,257]:r=e.data.category:r=[56,57,59,60,326,213,214,215,216,583,584,122,123,124,125,585,586,128,129,130,131,133,327,587,588,136,137,138,139,589,590,142,143,144,145,146,147,485,486,487,488,489,490,491,492,10,27,597,598,538,539,599,600,541,542,601,602,545,546,603,604,548,549,561,562,100,563,564,103,104,105,106,107,108,565,566,111,567,568,114,115,116,117,118,119,4,88,5,34,402,459,460,461,233,403,456,457,458,236,404,453,454,455,240,405,450,451,452,243,408,447,448,449,283,409,444,445,446,285,410,441,442,443,290,411,438,439,440,292,412,435,436,437,297,414,415,416,417,244,418,419,420,421,401,581,582,331,506,530,579,580,334,507,531,577,578,344,508,532,575,576,424,509,533,573,574,341,529,534,571,572,340,528,535,569,570,427,527,536,348,349,350,465,352,353,354,466,14,52,15,53,218,219,220,221,496,497,498,499,500,501,502,503,217,504,505,521,522,543,33,209,208,517,206,207,26,325,16,51,463,151,154,156,591,592,159,162,163,429,165,593,594,168,171,172,430,174,595,596,177,180,181,431,467,358,361,363,366,369,370,469,372,376,378,379,470,381,385,387,388,471,607,608,210,212]:e.type==3?e.data.category==0?r=[607,608,12,55,54,35,14,52,15,53,466,477,40,257,39]:r=e.data.category:e.data.category!=0?r=e.data.category:r=[607,608,12,55,54,35,14,52,15,53,466,477];const i=[1,2,3];let B={seasonId:e.data.season_id,mainSectionType:1,playListType:e.type,categoryIds:r,gameIds:e.data.game_id?[e.data.game_id]:null,playerIds:e.data.position_id!=1?e.data.player_id?[e.data.player_id]:[]:[],goalkeeperIds:e.data.position_id==1?e.data.player_id?[e.data.player_id]:[]:[],teamId:e.data.team_id?e.data.team_id:e.data.team_id_b?e.data.team_id_b:0,matchResult:e.data.matchResult?[e.data.matchResult]:i,advancedFilter:{playListTitle:""}};e.data.category!==0&&(B.advancedFilter.mainCategoryId=e.data.category),this.$emit("openmedia",B)},play(e){this.$emit("play",e)},async getData(e){this.$emit("loading",!0);const r=dbt.create({headers:{Authorization:`${this.token}`}});var i=[],B={};if(e.type=="player"){const D=await r.get("https://uof4tt5l46.execute-api.us-west-2.amazonaws.com/prod/v3/playerInfo/"+e.season+"/"+e.player);if(D.data.seasons[e.season])for(let c=0;c<D.data.seasons[e.season].games_played.length;c++)B={playingAs:this.getPlayingAs(D.data.seasons[e.season].games_played[c],D.data.team_id),category:0,player_id:D.data.player_id,position_id:D.data.position_id,color:D.data.info_thumbnails.colors.background_color,photo_profile:D.data.info_thumbnails.images.player_in_action[0]?"https://golstatsimages.blob.core.windows.net/images-library/"+D.data.info_thumbnails.images.player_in_action[0]:D.data.info_thumbnails.player_profile,team_logo:"https://az755631.vo.msecnd.net/teams-150/"+D.data.seasons[e.season].games_played[c].home_team+".png",player_name:D.data.seasons[e.season].games_played[c].home_team_acronym+" "+D.data.seasons[e.season].games_played[c].home_team_score+" : "+D.data.seasons[e.season].games_played[c].visiting_team_score+" "+D.data.seasons[e.season].games_played[c].visiting_team_acronym,team_id:D.data.team_id,has_relevants:D.data.seasons[e.season].games_played[c].has_relevants,team_id_b:D.data.seasons[e.season].games_played[c].home_team,season_id:D.data.seasons[e.season].games_played[c].season_id,name:D.data.seasons[e.season].games_played[c].player_name,seasonname:D.data.seasons[e.season].name.replace("Clausura","CL ").replace("Apertura","AP "),game_id:D.data.seasons[e.season].games_played[c].game_id,match:D.data.seasons[e.season].games_played[c].matchday_name.replace("Matchday","JOR").replace("de Final","").replace("Playoffs 1","CFI").replace("Playoffs 2","CFV").replace("Playoffs 3","SFI").replace("Playoffs 4","SFV").replace("Playoffs 5","FI").replace("Playoffs 6","FV"),date:this.obtenerNombreCompletoFecha(D.data.seasons[e.season].games_played[c].date),scorehome:D.data.seasons[e.season].games_played[c].home_team_score,scoreaway:D.data.seasons[e.season].games_played[c].visiting_team_score,hometeamacronym:D.data.seasons[e.season].games_played[c].home_team_acronym,visitingteamacronym:D.data.seasons[e.season].games_played[c].visiting_team_acronym,background:D.data.info_thumbnails.images.background_player_in_action[0]?"https://golstatsimages.blob.core.windows.net/images-library/"+D.data.info_thumbnails.images.background_player_in_action[0]:D.data.info_thumbnails.player_profile,backgroundhome:D.data.seasons[e.season].games_played[c].info_thumbnails.home_colors.background_color,backgroundaway:D.data.seasons[e.season].games_played[c].info_thumbnails.away_colors.background_color,logohome:"https://az755631.vo.msecnd.net/teams-150/"+D.data.seasons[e.season].games_played[c].home_team+".png",logoaway:"https://az755631.vo.msecnd.net/teams-150/"+D.data.seasons[e.season].games_played[c].visiting_team+".png",total:D.data.seasons[e.season].games_played[c].matchday_abbreviation.replace("M","Jor "),background_card:"https://az755631.vo.msecnd.net/golstats2-teams/"+D.data.seasons[e.season].games_played[c].home_team+"_"+D.data.seasons[e.season].games_played[c].season_id+"_r1.jpg"},i.push(B);else for(let c=0;c<D.data.national_seasons[e.season].games_played.length;c++)B={playingAs:this.getPlayingAs(D.data.national_seasons[e.season].games_played[c],D.data.team_id),category:0,player_id:D.data.player_id,position_id:D.data.position_id,color:D.data.info_thumbnails.colors.background_color,photo_profile:D.data.info_thumbnails.images.player_in_action[0]?"https://golstatsimages.blob.core.windows.net/images-library/"+D.data.info_thumbnails.images.player_in_action[0]:D.data.info_thumbnails.player_profile,team_logo:"https://az755631.vo.msecnd.net/teams-150/"+D.data.national_seasons[e.season].games_played[c].home_team+".png",player_name:D.data.national_seasons[e.season].games_played[c].home_team_acronym+" "+D.data.national_seasons[e.season].games_played[c].home_team_score+" : "+D.data.national_seasons[e.season].games_played[c].visiting_team_score+" "+D.data.national_seasons[e.season].games_played[c].visiting_team_acronym,team_id:D.data.team_id,has_relevants:D.data.national_seasons[e.season].games_played[c].has_relevants,team_id_b:D.data.national_seasons[e.season].games_played[c].home_team,season_id:D.data.national_seasons[e.season].games_played[c].season_id,name:D.data.national_seasons[e.season].games_played[c].player_name,seasonname:D.data.national_seasons[e.season].name.replace("Clausura","CL ").replace("Apertura","AP "),game_id:D.data.national_seasons[e.season].games_played[c].game_id,match:D.data.national_seasons[e.season].games_played[c].matchday_name.replace("Matchday","JOR").replace("de Final","").replace("Playoffs 1","CFI").replace("Playoffs 2","CFV").replace("Playoffs 3","SFI").replace("Playoffs 4","SFV").replace("Playoffs 5","FI").replace("Playoffs 6","FV"),date:this.obtenerNombreCompletoFecha(D.data.national_seasons[e.season].games_played[c].date),scorehome:D.data.national_seasons[e.season].games_played[c].home_team_score,scoreaway:D.data.national_seasons[e.season].games_played[c].visiting_team_score,hometeamacronym:D.data.national_seasons[e.season].games_played[c].home_team_acronym,visitingteamacronym:D.data.national_seasons[e.season].games_played[c].visiting_team_acronym,background:D.data.info_thumbnails.images.background_player_in_action[0]?"https://golstatsimages.blob.core.windows.net/images-library/"+D.data.info_thumbnails.images.background_player_in_action[0]:D.data.info_thumbnails.player_profile,backgroundhome:D.data.national_seasons[e.season].games_played[c].info_thumbnails.home_colors.background_color,backgroundaway:D.data.national_seasons[e.season].games_played[c].info_thumbnails.away_colors.background_color,logohome:"https://az755631.vo.msecnd.net/teams-150/"+D.data.national_seasons[e.season].games_played[c].home_team+".png",logoaway:"https://az755631.vo.msecnd.net/teams-150/"+D.data.national_seasons[e.season].games_played[c].visiting_team+".png",total:D.data.national_seasons[e.season].games_played[c].matchday_abbreviation.replace("M","Jor "),background_card:"https://az755631.vo.msecnd.net/golstats2-teams/"+D.data.national_seasons[e.season].games_played[c].home_team+"_"+D.data.national_seasons[e.season].games_played[c].season_id+"_r1.jpg"},i.push(B)}else if(e.type=="historic"){const D="https://fxtcaw9tw6.execute-api.us-east-2.amazonaws.com/prod/historic/games/"+e.game;if(this.lastHistoricGamesUrl===D)return;this.lastHistoricGamesUrl=D;const c=await r.get(D);for(let a=0;a<c.data.plays.length;a++)B={teamId:c.data.plays[a][2],player:"Jornada "+c.data.plays[a][6],player_name:c.data.plays[a][4],season_id:c.data.plays[a][31],game_id:c.data.plays[a][3],img:"https://img1.wallspic.com/previews/0/9/1/0/20190/20190-football_player-football-fun-player-sports-x750.jpg"},i.length>0?this.privilegesTeamId==0?!i.filter(y=>y.game_id===c.data.plays[a][3]).length>0&&i.push(B):!i.filter(y=>y.game_id===c.data.plays[a][3]).length>0&&c.data.plays[a][2]===this.privilegesTeamId&&i.push(B):(this.privilegesTeamId==0||c.data.plays[a][2]===this.privilegesTeamId)&&i.push(B);const g=c.data.thumbnails;for(let a=0;a<i.length;a++){const y=Math.floor(Math.random()*g[i[a].game_id].info_thumbnails.images.background_default_games.length);i[a].background="https://golstatsimages.blob.core.windows.net/images-library/"+g[i[a].game_id].info_thumbnails.images.background_default_games[y],i[a].backgroundhome=g[i[a].game_id].info_thumbnails.home_colors.background_color,i[a].backgroundaway=g[i[a].game_id].info_thumbnails.away_colors.background_color,i[a].logoaway="https://az755631.vo.msecnd.net/teams-150/"+g[i[a].game_id].info_thumbnails.away_colors.team_id+".png",i[a].logohome="https://az755631.vo.msecnd.net/teams-150/"+g[i[a].game_id].info_thumbnails.home_colors.team_id+".png",i[a].match=g[i[a].game_id].matchday_name.replace("Matchday","Jor"),i[a].playingAs=g[i[a].game_id].info_thumbnails.home_colors.team_id===i[a].teamId?1:2,i[a].seasonname=g[i[a].game_id].season_name,i[a].score=g[i[a].game_id].score[0]+" - "+g[i[a].game_id].score[1],i[a].category=0}}else{const D=await r.get("https://ws8d8ye2ii.execute-api.us-west-2.amazonaws.com/prod/v4/seasonsByTeam/"+e.team);for(let c=0;c<D.data.seasons[e.season].games.length;c++){const g=Math.floor(Math.random()*D.data.seasons[e.season].games[c].info_thumbnails.images.background_default_games.length);B={playingAs:this.getPlayingAs(D.data.seasons[e.season].games[c],D.data.team_id),category:0,game_id:D.data.seasons[e.season].games[c].game_id,photo_profile:"https://az755631.vo.msecnd.net/teams-150/"+D.data.seasons[e.season].games[c].visiting_team+".png",team_logo:"https://az755631.vo.msecnd.net/teams-150/"+D.data.seasons[e.season].games[c].home_team+".png",player_name:D.data.seasons[e.season].games[c].home_team_acronym+" "+D.data.seasons[e.season].games[c].home_team_score+" : "+D.data.seasons[e.season].games[c].visiting_team_score+" "+D.data.seasons[e.season].games[c].visiting_team_acronym,team_id_b:D.data.seasons[e.season].games[c].home_team,team_id:D.data.team_id,season_id:D.data.seasons[e.season].games[c].season_id,name:"",seasonname:D.data.seasons[e.season].name,match:D.data.seasons[e.season].games[c].matchday_name.replace("Matchday","Jor"),score:D.data.seasons[e.season].games[c].home_team_score+" : "+D.data.seasons[e.season].games[c].visiting_team_score,background:"https://golstatsimages.blob.core.windows.net/images-library/"+D.data.seasons[e.season].games[c].info_thumbnails.images.background_default_games[g],backgroundhome:D.data.seasons[e.season].games[c].info_thumbnails.home_colors.background_color,backgroundaway:D.data.seasons[e.season].games[c].info_thumbnails.away_colors.background_color,logohome:"https://az755631.vo.msecnd.net/teams-150/"+D.data.seasons[e.season].games[c].home_team+".png",logoaway:"https://az755631.vo.msecnd.net/teams-150/"+D.data.seasons[e.season].games[c].visiting_team+".png",total:D.data.seasons[e.season].games[c].matchday_abbreviation.replace("M","Jor "),background_card:"https://az755631.vo.msecnd.net/golstats2-teams/"+D.data.seasons[e.season].games[c].home_team+"_"+D.data.seasons[e.season].games[c].season_id+"_r1.jpg"},i.push(B)}}this.printData=i,this.$emit("loading",!1)},setUpResizeObserver(){this.resizeObserverGSCH=new ResizeObserver(e=>{for(const r of e)this.highlightsWidth=r.contentRect.width}),this.resizeObserverGSCH.observe(this.$refs.highlights)}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},1e3)}},hxt={key:0,ref:"highlights",class:"carousel-high-lights",id:"carousel-high-lights"};function pxt(e,r,i,B,D,c){const g=t.resolveComponent("GSCThumbnailHighlightGameHistoric"),a=t.resolveComponent("GSCThumbnailHighlightGamePlayer"),y=t.resolveComponent("GSCCarousel");return c.printDataFiltered.length>0&&i.canPlayVideos?(t.openBlock(),t.createElementBlock("div",hxt,[t.createVNode(y,t.mergeProps(c.carouselProps,{items:c.printDataFiltered,arrowsMaxWidth:"65px",slideLeftArrowBackgroundImage:"linear-gradient(to right, rgba(22, 37, 49, 1), rgba(0, 0, 0, 0))",slideRightArrowBackgroundImage:"linear-gradient(to left, rgba(22, 37, 49, 1), rgba(0, 0, 0, 0))",secondarySlidesOpacity:.2}),{default:t.withCtx(({item:f})=>[i.data.type=="team"||i.data.type=="historic"?(t.openBlock(),t.createBlock(g,{key:0,items:f,"color-background-home":f.backgroundhome,"color-background-away":f.backgroundaway,"logo-home":f.logohome,"logo-away":f.logoaway,background:f.background,matchday:f.match,onOnclickPlayVideos:n=>c.onclickPlayVideos({data:f,type:1}),"season-name":f.seasonname,score:f.score},null,8,["items","color-background-home","color-background-away","logo-home","logo-away","background","matchday","onOnclickPlayVideos","season-name","score"])):(t.openBlock(),t.createBlock(a,{key:1,type:"player","name-player":f.name,"type-style":"game","color-background-home":f.backgroundhome,"color-background-away":f.backgroundaway,"type-img":"0",date:f.date,"season-name":f.seasonname,matchday:f.match,background:f.background,"name-home-team":f.hometeamacronym,"name-away-team":f.visitingteamacronym,"name-category":i.title,onOnclickPlayVideos:n=>c.onclickPlayVideos({data:f,type:2}),"logo-away":f.logoaway,"logo-home":f.logohome,"score-home":f.scorehome,"photo-profile":f.photo_profile,"score-away":f.scoreaway},null,8,["name-player","color-background-home","color-background-away","date","season-name","matchday","background","name-home-team","name-away-team","name-category","onOnclickPlayVideos","logo-away","logo-home","score-home","photo-profile","score-away"]))]),_:1},16,["items"])],512)):t.createCommentVNode("",!0)}const fxt=sE(uxt,[["render",pxt]]),Wma="",qma="",Yma="",mxt={components:{GSCSlider:Wv},props:{isWidget:{type:Boolean,default:!1},teamWidget:{type:Number,default:0},timeLiveProminentData:{type:Number,default:6e4},game:{type:Object,default:()=>{}},canPlayVideos:{type:Boolean,default:!1}},watch:{game:{deep:!0,immediate:!0,handler(e){e.is_live==1?(this.getDataProminent(e.gameId),setInterval(()=>{this.getDataProminent(e.gameId)},this.timeLiveProminentData)):e.game_status==1||e.game_status==0?this.getDataProminent(e.gameId):this.getDataProminentPrematch(e.gameId)}}},data(){return{lastDataProminentUrl:"",dataProminent:[],dataProminentAll:[],tokenPremium:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6NTg2LCJuYW1lIjoiSkFTIEdvbFN0YXRzIiwidXNlcm5hbWUiOiJ5YXRlYW1lcmljYSIsImVtYWlsIjoiIiwicHJvdmlkZXJfaWQiOjEsImxvZ2luX2dvbHN0YXRzIjoxLCJpYXQiOjE2OTYzNjU1ODcsImV4cCI6MTcyNzkwMTU4N30.jynRtgtFM8sf8gtqZJ-1gHLc2Ws13TIykXcfrlOvv1g"}},computed:{},methods:{onclickPlayVideos(e){const r=[1,2,3];let i={seasonId:this.dataProminentAll.season_id,mainSectionType:1,playListType:e.data.is_team==1?3:2,categoryIds:e.data.categories,gameIdsToFilter:this.game.game_status==1?[this.dataProminentAll._id]:null,playerIds:e.data.is_team!=1?[e.data.player_id]:[],goalkeeperIds:[],teamId:e.data.is_team==1?e.data.team_id:0,matchResult:r,playData:{},advancedFilter:{playListTitle:""}};this.$emit("openmedia",i)},hasDecimal(e){return typeof e!="number"?!1:e.toString().includes(".")},formatNumber(e){if(typeof e=="number")if(this.hasDecimal(e)){const r=Math.round(e*10)/10;return Number.isInteger(r)?r.toString()+"%":r.toFixed(1)+"%"}else return e+"%";else return"0"},formatNumber2(e){if(typeof e=="number")if(this.hasDecimal(e)){const r=Math.round(e*10)/10;return Number.isInteger(r)?r.toString()+"%":r.toFixed(1)+"%"}else return e;else return"0"},textoConNegritas(e){if(!e)return"";const r=e.split(/(\*.*?\*)/g).filter(D=>D.trim()!=="");let i=Math.ceil(r.length/2),B="";return r.forEach((D,c)=>{c===i&&(B+="<br/>"),D.startsWith("*")&&D.endsWith("*")?B+=`<span class="text-bold-prominent">${D.slice(1,-1)}</span>`:D.trim()!==""&&(B+=`<span class="text-prominent">${D}</span>`)}),B},async getDataProminentPrematch(){try{let e="";if(this.isWidget&&this.teamWidget!=0?e="https://1qvtl1japi.execute-api.us-east-2.amazonaws.com/prod/highlights/seasons/"+this.game.seasonId+"/games/"+this.game.gameId+"/prematch?t="+this.teamWidget:e="https://1qvtl1japi.execute-api.us-east-2.amazonaws.com/prod/highlights/seasons/"+this.game.seasonId+"/games/"+this.game.gameId+"/prematch",this.lastDataProminentUrl!==e){this.$emit("loading",!0);const i=await $c.create({headers:{Authorization:`${this.tokenPremium}`}}).get(e);this.dataProminent=i.data.data,this.dataProminentAll=i.data,this.$emit("loading",!1)}}catch(e){return Promise.reject(e)}},async getDataProminent(){try{let e="";if(this.isWidget&&this.teamWidget!=0?e="https://1qvtl1japi.execute-api.us-east-2.amazonaws.com/prod/highlights/seasons/"+this.game.seasonId+"/games/"+this.game.gameId+"?t="+this.teamWidget:e="https://1qvtl1japi.execute-api.us-east-2.amazonaws.com/prod/highlights/seasons/"+this.game.seasonId+"/games/"+this.game.gameId,this.lastDataProminentUrl!==e){this.$emit("loading",!0);const i=await $c.create({headers:{Authorization:`${this.tokenPremium}`}}).get(e);this.dataProminent=i.data.data,this.dataProminentAll=i.data,setTimeout(()=>{this.$emit("loading",!1)},500)}}catch(e){return Promise.reject(e)}}}},gxt=e=>(t.pushScopeId("data-v-62f00708"),e=e(),t.popScopeId(),e),yxt={class:"data-prominent-game"},vxt={class:"title-data"},_xt={class:"item-data-text"},bxt=["innerHTML"],xxt={class:"contain-stats-control"},wxt={key:0,class:"title-total"},kxt={key:1,class:"item-total"},Cxt=["onClick"],Sxt={"data-v-83c7df16":"",style:{"margin-left":"-1px"},xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none"},Txt=[gxt(()=>t.createElementVNode("path",{"data-v-83c7df16":"",d:"M6.6041 22.8554C6.42105 22.7512 6.26805 22.5956 6.1616 22.4053C6.05515 22.215 5.99927 21.9973 6.00001 21.7755V2.22137C6.00026 2.00039 6.0565 1.78362 6.16274 1.59409C6.26899 1.40456 6.42127 1.24936 6.6034 1.14499C6.78553 1.04062 6.9907 0.990981 7.1971 1.00135C7.4035 1.01171 7.60342 1.0817 7.77561 1.20386L21.4907 10.9821C21.6473 11.0935 21.7758 11.2446 21.8646 11.4219C21.9535 11.5992 22 11.7973 22 11.9985C22 12.1996 21.9535 12.3977 21.8646 12.575C21.7758 12.7523 21.6473 12.9034 21.4907 13.0148L7.77561 22.7954C7.60369 22.9178 7.40392 22.988 7.19761 22.9986C6.9913 23.0092 6.78617 22.9597 6.6041 22.8554ZM7.14347 21.7779L20.8585 11.9996L7.14347 21.7779Z",fill:"#CBEE6B"},null,-1))];function Ext(e,r,i,B,D,c){const g=t.resolveComponent("GSCSlider");return t.openBlock(),t.createElementBlock("div",yxt,[t.createElementVNode("div",vxt,[i.game.game_status!=4||i.game.is_live==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Este partido:")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("Este torneo:")],64))]),t.createVNode(g,{height:"115px",pxScroll:272,scrollColor:"none",arrowsPosition:"absolute",arrowsScrollHide:!0,arrowsHideOnNoScroll:!0,arrowsBackground:"rgba(255,255,255,.16)",arrowsContainerBgL:"linear-gradient(270deg, rgba(13,29,42,0.1) 0%, rgba(13,29,42,1) 70%)",arrowsContainerBgR:"linear-gradient(90deg, rgba(13,29,42,0.1) 0%, rgba(13,29,42,1) 70%)",arrowsMargin:0,arrowsRadius:"50%",arrowsBorder:"#ddd"},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(D.dataProminent,(a,y)=>(t.openBlock(),t.createElementBlock("div",{key:y,class:"item-prominent-data"},[t.createElementVNode("div",{class:"item-percent-shield",style:t.normalizeStyle("background:"+a.custom_colors.background_color)},[t.createElementVNode("div",{class:"item-team",style:t.normalizeStyle(a.player_id?"background-image:url(https://az755631.vo.msecnd.net/players-profile/"+a.player_id+".png); border: solid 1.4px "+a.custom_colors.background_color:"background-image:url(https://az755631.vo.msecnd.net/teams-80/"+a.team_id+".png);border: solid 1.4px "+a.custom_colors.background_color)},null,4),a.show_value==1?(t.openBlock(),t.createElementBlock("div",{key:0,class:"item-percent",style:t.normalizeStyle("color:"+a.custom_colors.font_color)},[a.is_percentage==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[a.title=="Distancia recorrida"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(c.formatNumber(a.percent)),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(c.formatNumber(a.percent)),1)],64))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(a.total),1)],64))],4)):t.createCommentVNode("",!0)],4),t.createElementVNode("div",_xt,[t.createElementVNode("div",{class:"container-text",innerHTML:c.textoConNegritas(a.description)},null,8,bxt),t.createElementVNode("div",xxt,[a.title!="Productividad"?(t.openBlock(),t.createElementBlock("div",wxt,"TOTAL:")):t.createCommentVNode("",!0),a.title!="Productividad"?(t.openBlock(),t.createElementBlock("div",kxt,[a.is_percentage==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(c.formatNumber(a.percent)),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[a.title=="Distancia recorrida"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(a.total)+" km",1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(a.total),1)],64))],64))])):t.createCommentVNode("",!0),i.canPlayVideos&&a.show_video==1?(t.openBlock(),t.createElementBlock("div",{key:2,class:"btn-play",style:t.normalizeStyle(a.title=="Productividad"?"margin-left: 0px !important;":""),onClick:f=>c.onclickPlayVideos({data:a})},[(t.openBlock(),t.createElementBlock("svg",Sxt,Txt))],12,Cxt)):t.createCommentVNode("",!0)])])]))),128))]),_:1})])}const Axt=$i(mxt,[["render",Ext],["__scopeId","data-v-62f00708"]]),Zma="",Mxt={components:{GSCCheckbox:Wg},props:{timeLivePossesion:{type:Number,default:6e4},game:{type:Object,default:()=>{}},widthSection:{type:Number,default:0},teamSelected:{type:Object,default:()=>({})}},watch:{game:{deep:!0,immediate:!0,async handler(e){e.is_live==1?(this.getDataPosession(e.gameId),this.intervalIdPossesion=setInterval(()=>{this.getDataPosession(e.gameId)},this.timeLivePossesion),this.$emit("intervalidpossesion",this.intervalIdPossesion)):e.game_status==1||e.game_status==0?(this.getDataPosession(e.gameId),e.game_status==1&&(await this.$store.dispatch("nextGeneral/cleanStats"),await this.$store.dispatch("nextGeneral/checkState",{gameId:e.gameId,currentSeasonId:e.seasonId,isTeamsAnalysis:!0,defaultFilter:null,gameInfo:e}))):this.getDataPosessionPrematch(e.seasonId)}}},data(){return{areInactiveVisible:!1,dataPosession:[],arrTeams:[],intervalIdPossesion:null,url:"https://rwtfu33saa.execute-api.us-east-2.amazonaws.com/prod/ta/posessions/",urlPrematch:"https://rwtfu33saa.execute-api.us-east-2.amazonaws.com/prod/ta/seasons/",tokenPremium:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6NTg2LCJuYW1lIjoiSkFTIEdvbFN0YXRzIiwidXNlcm5hbWUiOiJ5YXRlYW1lcmljYSIsImVtYWlsIjoiIiwicHJvdmlkZXJfaWQiOjEsImxvZ2luX2dvbHN0YXRzIjoxLCJpYXQiOjE2OTYzNjU1ODcsImV4cCI6MTcyNzkwMTU4N30.jynRtgtFM8sf8gtqZJ-1gHLc2Ws13TIykXcfrlOvv1g",objectZeroValues:{numberValue:0,numberBarPercent:0}}},computed:{...th("nextGeneral",["gameForAnalysis","seasonId"]),...ed("nextGeneral",["arrayFilledDataSortedByPriority"])},methods:{async getStatsData(e){await this.$store.dispatch("nextGeneral/cleanStats"),await this.$store.dispatch("nextGeneral/checkState",{gameId:e.gameId,currentSeasonId:e.seasonId,isTeamsAnalysis:!0,defaultFilter:null,gameInfo:e})},async getDataPosession(){try{const r=await $c.create({headers:{Authorization:`${this.tokenPremium}`}}).get(this.url+this.game.gameId);this.dataPosession=r.data}catch(e){return Promise.reject(e)}},async getDataPosessionPrematch(e){try{const i=await $c.create({headers:{Authorization:`${this.tokenPremium}`}}).get(this.urlPrematch+e+"/posessions");for(const B in i.data.teams)i.data.teams.hasOwnProperty(B)&&(this.arrTeams[B]=i.data.teams[B])}catch(r){return Promise.reject(r)}},onCheckInactive(e){e?this.areInactiveVisible=!0:this.areInactiveVisible=!1},deleteDecimalZero(e){const r=typeof e=="string"?parseFloat(e):e;return typeof r=="number"&&!isNaN(r)?r%1===0?r:r%1===0?Math.floor(r):r:e},formatNumbers(e){return e%1!==0?e.toFixed(1):e},hVal(e){return this.getTeamValue(e,this.gameForAnalysis,"homeTeam")},aVal(e){return this.getTeamValue(e,this.gameForAnalysis,"visitingTeam")},getTeamValue(e,r,i){if(!r.game_id)return this.objectZeroValues;const B=e.homeTeam.accomplished.avgPostGame+e.visitingTeam.accomplished.avgPostGame,D=e[i].accomplished.avgPostGame/B;return e[i].accomplished.avgPostGame?{numberValue:D<1?D*100:D,numberBarPercent:e[i].accomplished.avgPostGame/B}:this.objectZeroValues}},created(){this.$store.commit("nextGeneral/updateFilters",{filters:{local:{playingAs:[1,2],statistics:{},matchResult:[1,2,3],firstHalf:[1,2,3],secondHalf:[4,5,6]},visit:{playingAs:[1,2],statistics:{},matchResult:[1,2,3],firstHalf:[1,2,3],secondHalf:[4,5,6]}},needsFormat:!0})},beforeDestroy(){clearInterval(this.intervalIdPossesion)}},jy=e=>(t.pushScopeId("data-v-3aa0c085"),e=e(),t.popScopeId(),e),Ixt={key:0,class:"field-posesion-prominent"},Pxt={key:0,class:"title"},Bxt={class:"info-data-item"},Nxt={class:"item-indicador"},zxt={class:"item-indicador-value"},Oxt={key:0},Fxt=jy(()=>t.createElementVNode("div",{class:"item-indicador-img"},[t.createElementVNode("svg",{width:"8",height:"6",viewBox:"0 0 8 6",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M3.87817 5.92969L0.506034 0.0889796L7.2503 0.0889802L3.87817 5.92969Z",fill:"#38CFFF"})])],-1)),Lxt={key:0,class:"inactiveInfo"},Dxt={class:"info-data-item"},Rxt={class:"item-indicador"},Vxt={class:"item-indicador-value"},$xt=jy(()=>t.createElementVNode("div",{class:"item-indicador-img"},[t.createElementVNode("svg",{width:"8",height:"6",viewBox:"0 0 8 6",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M3.87817 5.92969L0.506034 0.0889796L7.2503 0.0889802L3.87817 5.92969Z",fill:"#38CFFF"})])],-1)),jxt={class:"info-data-item"},Uxt={class:"item-indicador"},Gxt={class:"item-indicador-value"},Hxt={key:0},Wxt=jy(()=>t.createElementVNode("div",{class:"item-indicador-img"},[t.createElementVNode("svg",{width:"8",height:"6",viewBox:"0 0 8 6",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M3.87817 5.92969L0.506034 0.0889796L7.2503 0.0889802L3.87817 5.92969Z",fill:"#38CFFF"})])],-1)),qxt={class:"info-data-item"},Yxt={class:"item-indicador"},Xxt={class:"item-indicador-value"},Zxt=jy(()=>t.createElementVNode("div",{class:"item-indicador-img"},[t.createElementVNode("svg",{width:"8",height:"6",viewBox:"0 0 8 6",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M3.87817 5.92969L0.506034 0.0889796L7.2503 0.0889802L3.87817 5.92969Z",fill:"#38CFFF"})])],-1)),Jxt={key:0,class:"inactiveInfo"},Kxt={class:"info-data-item"},Qxt={class:"item-indicador"},e3t={class:"item-indicador-value"},t3t=jy(()=>t.createElementVNode("div",{class:"item-indicador-img"},[t.createElementVNode("svg",{width:"8",height:"6",viewBox:"0 0 8 6",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M3.87817 5.92969L0.506034 0.0889796L7.2503 0.0889802L3.87817 5.92969Z",fill:"#38CFFF"})])],-1)),a3t={class:"info-data-item"},n3t={class:"item-indicador"},r3t={class:"item-indicador-value"},i3t=jy(()=>t.createElementVNode("div",{class:"item-indicador-img"},[t.createElementVNode("svg",{width:"8",height:"6",viewBox:"0 0 8 6",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M3.87817 5.92969L0.506034 0.0889796L7.2503 0.0889802L3.87817 5.92969Z",fill:"#38CFFF"})])],-1));function o3t(e,r,i,B,D,c){const g=t.resolveComponent("GSCCheckbox");return e.arrayFilledDataSortedByPriority.length>0?(t.openBlock(),t.createElementBlock("div",Ixt,[i.widthSection>760?(t.openBlock(),t.createElementBlock("div",Pxt,"Porcentajes")):t.createCommentVNode("",!0),i.game.game_status==1||i.game.game_status==0||i.game.is_live==1?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(i.widthSection>760?"field-container":i.widthSection>520?"field-container-movil":i.widthSection>440?"field-container-movil-2":i.widthSection>360?"field-container-movil-3":"field-container-movil-4")},[D.dataPosession.has_posession==1?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(i.widthSection>1020?"time-show":i.widthSection>920?"time-show-table-xl":i.widthSection>880?"time-show-table-xl-2":i.widthSection>820?"time-show-table-xl-3":i.widthSection>760?"time-show-table-xl-4":"time-show-movil")},[t.createVNode(g,{label:"Mostrar tiempo inactivo",fontFamily:"Poppins-Regular","onUpdate:modelValue":c.onCheckInactive,"label-color":"#8c9399"},null,8,["onUpdate:modelValue"])],2)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(i.widthSection>1020?"field-data-container":i.widthSection>920?"field-data-container-xl":i.widthSection>880?"field-data-container-xl-2":i.widthSection>820?"field-data-container-xl-3":i.widthSection>760?"field-data-container-xl-4":"field-data-container-movil")},[t.createElementVNode("div",{class:t.normalizeClass(D.areInactiveVisible?"container-data-img-home":"container-data-img-home50")},[t.createElementVNode("div",{class:t.normalizeClass(D.areInactiveVisible?"homeInfo":"homeInfo50"),style:t.normalizeStyle("background-image:url("+i.game.homeTeam.logo.replace("80","150")+")")},null,6),t.createElementVNode("div",Bxt,[t.createElementVNode("div",{class:t.normalizeClass(i.widthSection>580?"item-ref-data":"item-ref-data-movil")},[t.createElementVNode("div",Nxt,[t.createElementVNode("div",zxt,[D.dataPosession.has_posession==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[D.areInactiveVisible?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(D.dataPosession.active_time.home),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(D.dataPosession.home),1)],64))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[c.hVal(e.arrayFilledDataSortedByPriority[0].subcategories.possession)?(t.openBlock(),t.createElementBlock("span",Oxt,t.toDisplayString(c.deleteDecimalZero(c.formatNumbers(c.hVal(e.arrayFilledDataSortedByPriority[0].subcategories.possession).numberValue)))+"%",1)):t.createCommentVNode("",!0)],64))]),Fxt]),t.createElementVNode("div",{class:t.normalizeClass(i.widthSection>580?"title-indicador":"title-indicador-movil")}," Pos. "+t.toDisplayString(i.game.homeTeam.acronym),3)],2)])],2),D.areInactiveVisible&&D.dataPosession.has_posession==1?(t.openBlock(),t.createElementBlock("div",Lxt,[t.createElementVNode("div",Dxt,[t.createElementVNode("div",{class:t.normalizeClass(i.widthSection>580?"item-ref-data":"item-ref-data-movil")},[t.createElementVNode("div",Rxt,[t.createElementVNode("div",Vxt,t.toDisplayString(D.dataPosession.active_time.inactive_time),1),$xt]),t.createElementVNode("div",{class:t.normalizeClass(i.widthSection>580?"title-indicador":"title-indicador-movil")},[i.widthSection>580?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("T. Inactivo")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("T. Inactivo")],64))],2)],2)])])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(D.areInactiveVisible?"container-data-img-away":"container-data-img-away50")},[t.createElementVNode("div",{class:t.normalizeClass(D.areInactiveVisible?"awayInfo":"awayInfo50"),style:t.normalizeStyle("background-image:url("+i.game.awayTeam.logo.replace("80","150")+")")},null,6),t.createElementVNode("div",jxt,[t.createElementVNode("div",{class:t.normalizeClass(i.widthSection>580?"item-ref-data":"item-ref-data-movil")},[t.createElementVNode("div",Uxt,[t.createElementVNode("div",Gxt,[D.dataPosession.has_posession==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[D.areInactiveVisible?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(D.dataPosession.active_time.away),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(D.dataPosession.away),1)],64))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[c.aVal(e.arrayFilledDataSortedByPriority[0].subcategories.possession)?(t.openBlock(),t.createElementBlock("span",Hxt,t.toDisplayString(c.deleteDecimalZero(c.formatNumbers(c.aVal(e.arrayFilledDataSortedByPriority[0].subcategories.possession).numberValue)))+"%",1)):t.createCommentVNode("",!0)],64))]),Wxt]),t.createElementVNode("div",{class:t.normalizeClass(i.widthSection>580?"title-indicador":"title-indicador-movil")}," Pos. "+t.toDisplayString(i.game.awayTeam.acronym),3)],2)])],2)],2)],2)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[D.arrTeams.length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(i.widthSection>760?"field-container":i.widthSection>520?"field-container-movil":i.widthSection>440?"field-container-movil-2":i.widthSection>360?"field-container-movil-3":"field-container-movil-4")},[D.arrTeams[i.teamSelected.teamId].has_posession==1?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(i.widthSection>1020?"time-show":i.widthSection>920?"time-show-table-xl":i.widthSection>880?"time-show-table-xl-2":i.widthSection>820?"time-show-table-xl-3":i.widthSection>760?"time-show-table-xl-4":"time-show-movil")},[t.createVNode(g,{label:"Mostrar tiempo inactivo",fontFamily:"Poppins-Regular","onUpdate:modelValue":c.onCheckInactive,"label-color":"#8c9399"},null,8,["onUpdate:modelValue"])],2)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(i.widthSection>1020?"field-data-container":i.widthSection>920?"field-data-container-xl":i.widthSection>880?"field-data-container-xl-2":i.widthSection>820?"field-data-container-xl-3":i.widthSection>760?"field-data-container-xl-4":"field-data-container-movil")},[t.createElementVNode("div",{class:t.normalizeClass(D.areInactiveVisible?"container-data-img-home":"container-data-img-home50")},[i.game.homeTeam.team_id==i.teamSelected.teamId?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(D.areInactiveVisible?"homeInfo":"homeInfo50"),style:t.normalizeStyle("background-image:url("+i.game.homeTeam.logo.replace("80","150")+")")},null,6)):t.createCommentVNode("",!0),t.createElementVNode("div",qxt,[t.createElementVNode("div",{class:t.normalizeClass(i.widthSection>580?"item-ref-data":"item-ref-data-movil")},[t.createElementVNode("div",Yxt,[t.createElementVNode("div",Xxt,[D.areInactiveVisible?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[i.game.awayTeam.team_id==i.teamSelected.teamId?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(D.arrTeams[i.teamSelected.teamId].active_time.away),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(D.arrTeams[i.teamSelected.teamId].active_time.home),1)],64))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[i.game.awayTeam.team_id==i.teamSelected.teamId?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(D.arrTeams[i.teamSelected.teamId].away),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(D.arrTeams[i.teamSelected.teamId].home),1)],64))],64))]),Zxt]),i.game.homeTeam.team_id==i.teamSelected.teamId?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(i.widthSection>580?"title-indicador":"title-indicador-movil")}," Pos. "+t.toDisplayString(i.game.homeTeam.acronym),3)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(i.widthSection>580?"title-indicador":"title-indicador-movil")}," Pos. Rival ",2))],2)])],2),D.areInactiveVisible&&D.arrTeams[i.teamSelected.teamId].has_posession==1?(t.openBlock(),t.createElementBlock("div",Jxt,[t.createElementVNode("div",Kxt,[t.createElementVNode("div",{class:t.normalizeClass(i.widthSection>580?"item-ref-data":"item-ref-data-movil")},[t.createElementVNode("div",Qxt,[t.createElementVNode("div",e3t,t.toDisplayString(D.arrTeams[i.teamSelected.teamId].active_time.inactive_time),1),t3t]),t.createElementVNode("div",{class:t.normalizeClass(i.widthSection>580?"title-indicador":"title-indicador-movil")},[i.widthSection>580?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("T. Inactivo")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("T. Inactivo")],64))],2)],2)])])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(D.areInactiveVisible?"container-data-img-away":"container-data-img-away50")},[i.game.awayTeam.team_id==i.teamSelected.teamId?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(D.areInactiveVisible?"awayInfo":"awayInfo50"),style:t.normalizeStyle("background-image:url("+i.game.awayTeam.logo.replace("80","150")+")")},null,6)):t.createCommentVNode("",!0),t.createElementVNode("div",a3t,[t.createElementVNode("div",{class:t.normalizeClass(i.widthSection>580?"item-ref-data":"item-ref-data-movil")},[t.createElementVNode("div",n3t,[t.createElementVNode("div",r3t,[D.areInactiveVisible?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[i.game.homeTeam.team_id==i.teamSelected.teamId?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(D.arrTeams[i.teamSelected.teamId].active_time.away),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(D.arrTeams[i.teamSelected.teamId].active_time.home),1)],64))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[i.game.homeTeam.team_id==i.teamSelected.teamId?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(D.arrTeams[i.teamSelected.teamId].away),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(D.arrTeams[i.teamSelected.teamId].home),1)],64))],64))]),i3t]),i.game.awayTeam.team_id==i.teamSelected.teamId?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(i.widthSection>580?"title-indicador":"title-indicador-movil")}," Pos. "+t.toDisplayString(i.game.awayTeam.acronym),3)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(i.widthSection>580?"title-indicador":"title-indicador-movil")}," Pos. Rival ",2))],2)])],2)],2)],2)):t.createCommentVNode("",!0)],64))])):t.createCommentVNode("",!0)}const s3t=$i(Mxt,[["render",o3t],["__scopeId","data-v-3aa0c085"]]),Jma="",dE={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(r){throw new Error(r)}}}},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)}}},AH=()=>{t.useCssVars(e=>({ec641b3a:e.backgroundColor,"66cc4678":e.widthCircle,"1c5ce009":e.heightCircle}))},MH=dE.setup;dE.setup=MH?(e,r)=>(AH(),MH(e,r)):AH;const l3t={key:0,class:"text-left"},c3t=["width","src"],d3t=["checked"],u3t=["width","src"],h3t={key:3,class:"text-right"};function p3t(e,r,i,B,D,c){return t.openBlock(),t.createElementBlock("div",{class:"gsc-switch-radio",style:t.normalizeStyle(c.customText)},[i.textOptionLeft!=""&&!i.hiddenLabels?(t.openBlock(),t.createElementBlock("span",l3t,t.toDisplayString(i.textOptionLeft),1)):t.createCommentVNode("",!0),i.iconA!=""?(t.openBlock(),t.createElementBlock("img",{key:1,width:i.widthIcons,src:i.iconA},null,8,c3t)):t.createCommentVNode("",!0),t.createElementVNode("input",{type:"checkbox",id:"toggle-btn",onChange:r[0]||(r[0]=(...g)=>c.handleSwitchChange&&c.handleSwitchChange(...g)),checked:D.OptionDefault},null,40,d3t),t.createElementVNode("label",{for:"toggle-btn",style:t.normalizeStyle([c.customStyle,{"--circle-color":i.circleColorSwitch}])},null,4),i.iconB!=""?(t.openBlock(),t.createElementBlock("img",{key:2,width:i.widthIcons,src:i.iconB},null,8,u3t)):t.createCommentVNode("",!0),i.textOptionRight!=""&&!i.hiddenLabels?(t.openBlock(),t.createElementBlock("span",h3t,t.toDisplayString(i.textOptionRight),1)):t.createCommentVNode("",!0)],4)}const IH=$i(dE,[["render",p3t],["__scopeId","data-v-62d6b055"]]),Kma="";let PH=null;const uE={components:{},props:{canPlayVideos:{type:Boolean,default:!1},titleCategory:{type:String,default:"RESUMEN"},dateGame:{type:String,default:""},colorBackgroundHome:{type:String,default:"#000000"},colorBackgroundAway:{type:String,default:"#FFFFFF"},logoHome:{type:String,default:""},isLive:{type:Boolean,default:!0},matchday:{type:String,default:""},seasonName:{type:String,default:""},logoAway:{type:String,default:""},score:{type:String,default:""},background:{type:String,default:""}},data(){return{gamesContainerWidth:0}},computed:{date(){const e=this.gamesContainerWidth;return e<=400?"date400":e<=540?"date540":e<=650?"date650":"date"},seasoncontainer(){const e=this.gamesContainerWidth;return e<=400?"season-container400":e<=540?"season-container540":e<=650?"season-container650":"season-container"},matchcontainer(){const e=this.gamesContainerWidth;return e<=400?"match-container400":e<=540?"match-container540":e<=650?"match-container650":"match-container"},containerinfogame(){const e=this.gamesContainerWidth;return e<=400?"container-info-game400":e<=540?"container-info-game540":e<=650?"container-info-game650":"container-info-game"},playbutton(){const e=this.gamesContainerWidth;return e<=400?"play-button400":e<=540?"play-button540":e<=650?"play-button650":"play-button"},baselogo(){const e=this.gamesContainerWidth;return e<=400?"base-logo400":e<=540?"base-logo540":e<=650?"base-logo650":"base-logo"},baselogoright(){const e=this.gamesContainerWidth;return e<=400?"base-logo-right400":e<=540?"base-logo-right540":e<=650?"base-logo-right650":"base-logo-right"},thumbnailhighlights(){const e=this.gamesContainerWidth;return e<=400?"thumbnail-highlights400":e<=540?"thumbnail-highlights540":e<=650?"thumbnail-highlights650":"thumbnail-highlights"},teamlogo(){const e=this.gamesContainerWidth;return e<=400?"team-logo400":e<=540?"team-logo540":e<=650?"team-logo650":"team-logo"},logoright(){const e=this.gamesContainerWidth;return e<=400?"logo-right400":e<=540?"logo-right540":e<=650?"logo-right650":"logo-right"},secondline(){const e=this.gamesContainerWidth;return e<=400?"second-line400":e<=540?"second-line540":e<=650?"second-line650":"second-line"},titlename(){const e=this.gamesContainerWidth;return e<=400?"title-name400":e<=540?"title-name540":e<=650?"title-name650":"title-name"}},methods:{onclickPlayVideos(){this.$emit("onclickPlayVideos")},setUpResizeObserver(){if(window.ResizeObserver)PH=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),PH.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},BH=()=>{t.useCssVars(e=>({"524d4024":e.colorBackgroundHome+"45","2acdc375":e.colorBackgroundAway+"45","60764af4":e.colorBackgroundHome,"607c6ed6":e.colorBackgroundAway}))},NH=uE.setup;uE.setup=NH?(e,r)=>(BH(),NH(e,r)):BH;const y4=e=>(t.pushScopeId("data-v-ec876074"),e=e(),t.popScopeId(),e),f3t=[y4(()=>t.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},[t.createElementVNode("path",{d:"M6.6041 22.8554C6.42105 22.7512 6.26805 22.5956 6.1616 22.4053C6.05515 22.215 5.99927 21.9973 6.00001 21.7755V2.22137C6.00026 2.00039 6.0565 1.78362 6.16274 1.59409C6.26899 1.40456 6.42127 1.24936 6.6034 1.14499C6.78553 1.04062 6.9907 0.990981 7.1971 1.00135C7.4035 1.01171 7.60342 1.0817 7.77561 1.20386L21.4907 10.9821C21.6473 11.0935 21.7758 11.2446 21.8646 11.4219C21.9535 11.5992 22 11.7973 22 11.9985C22 12.1996 21.9535 12.3977 21.8646 12.575C21.7758 12.7523 21.6473 12.9034 21.4907 13.0148L7.77561 22.7954C7.60369 22.9178 7.40392 22.988 7.19761 22.9986C6.9913 23.0092 6.78617 22.9597 6.6041 22.8554ZM7.14347 21.7779L20.8585 11.9996L7.14347 21.7779Z",fill:"#CBEE6B"})],-1))],m3t=y4(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/paper-texture.png",alt:"",class:"paper-texture position-image"},null,-1)),g3t=["src"],y3t=y4(()=>t.createElementVNode("div",{class:"gradient-back position-image"},null,-1)),v3t=y4(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/halftone-texture.png",alt:"",class:"halftone-texture position-image"},null,-1)),_3t=["src"],b3t=["src"],x3t={class:"text-container"};function w3t(e,r,i,B,D,c){return t.openBlock(),t.createElementBlock("div",{ref:"gamesContainer",class:t.normalizeClass(c.thumbnailhighlights)},[i.canPlayVideos?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(c.playbutton),onClick:r[0]||(r[0]=(...g)=>c.onclickPlayVideos&&c.onclickPlayVideos(...g))},f3t,2)):t.createCommentVNode("",!0),i.dateGame!=""?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(c.date)},t.toDisplayString(i.dateGame),3)):t.createCommentVNode("",!0),i.matchday!=""&&i.seasonName!=""?(t.openBlock(),t.createElementBlock("div",{key:2,class:t.normalizeClass(c.containerinfogame)},[i.matchday!=""?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(c.matchcontainer)},t.toDisplayString(i.matchday),3)):t.createCommentVNode("",!0),i.seasonName!=""?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(c.seasoncontainer)},t.toDisplayString(i.seasonName),3)):t.createCommentVNode("",!0)],2)):t.createCommentVNode("",!0),m3t,t.createElementVNode("img",{src:i.background,alt:"",class:"bkg-blackwhite position-image"},null,8,g3t),t.createElementVNode("div",{class:t.normalizeClass([c.baselogo,"position-image"])},null,2),t.createElementVNode("div",{class:t.normalizeClass(c.baselogoright)},null,2),y3t,v3t,t.createElementVNode("img",{src:i.logoHome,alt:"",class:t.normalizeClass(c.teamlogo)},null,10,_3t),t.createElementVNode("img",{src:i.logoAway,alt:"",class:t.normalizeClass(c.logoright)},null,10,b3t),t.createElementVNode("div",x3t,[t.createElementVNode("span",{class:t.normalizeClass(c.secondline)},t.toDisplayString(i.score),3),t.createElementVNode("div",{class:t.normalizeClass(c.titlename)},t.toDisplayString(i.titleCategory),3)])],2)}const k3t=$i(uE,[["render",w3t],["__scopeId","data-v-ec876074"]]),e0a="";let zH=null;const C3t={components:{GSCThumbnailHighlightGameHistoric:k3t},props:{game:{type:Object,default:()=>{}},canPlayVideos:{type:Boolean,default:!1}},watch:{},data(){return{lastDataGameUrl:"",dataProminent:[],gameInfo:{},gamesContainerWidth:0,item:{backgroundhome:"",backgroundaway:"",logohome:"",logoaway:"",background:"",match:"",seasonname:"",score:""},tournamentId:0,token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"}},computed:{},methods:{onclickPlayVideos(e){var r=[];e.type==2?e.data.position_id==1?e.data.category==0?r=[55,324,323,608,39,774,802,52,53,40,54]:r=e.data.category:e.data.category==0?r=[12,35,10,27,607,61,519,98,101,109,112,121,122,127,128,135,136,141,142,161,170,179,702,730,466,217,211,232,235,239,242,282,284,289,291,296,485,486,487,488,14,15,257]:r=e.data.category:e.type==3?e.data.category==0?r=[607,608,12,55,54,35,14,52,15,53,466,477,40,257,39]:r=e.data.category:e.data.category!=0?r=e.data.category:r=[607,608,12,55,54,35,14,52,15,53,466,477];const i=[1,2,3];let B={seasonId:e.data.season_id,mainSectionType:1,playListType:e.type,categoryIds:r,gameIdsToFilter:e.data.game_id?[e.data.game_id]:null,playerIds:e.data.position_id!=1?e.data.player_id?[e.data.player_id]:[]:[],goalkeeperIds:e.data.position_id==1?e.data.player_id?[e.data.player_id]:[]:[],teamId:e.data.team_id?e.data.team_id:0,matchResult:e.data.matchResult?[e.data.matchResult]:i,playData:{},advancedFilter:{playListTitle:""}};e.data.category!==0&&(B.advancedFilter.mainCategoryId=e.data.category),this.$emit("openmedia",B)},async fillData(){const e="https://fxtcaw9tw6.execute-api.us-east-2.amazonaws.com/prod/historic/games/"+this.game.gameId;if(this.lastDataGameUrl!==e){this.$emit("loading",!0),this.lastDataGameUrl=e;const r=$c.create({headers:{Authorization:`${this.token}`}}),i=await r.get("https://8tvo5bp9ai.execute-api.us-west-2.amazonaws.com/prod/gamesBySeason/"+this.game.seasonId),B=await r.get("https://d2oco6mqmc.execute-api.us-west-2.amazonaws.com/prod/teamsBySeason/"+this.game.seasonId);this.tournamentId=B.data.tournament_id;const D=i.data.games.findIndex(g=>g.game_id===this.game.gameId);this.gameInfo=i.data.games[D];const c=await r.get(e);this.item.category=0,this.item.game_id=c.data.game_id,this.item.season_id=this.game.seasonId,this.item.score=c.data.thumbnails[c.data.game_id]?c.data.thumbnails[c.data.game_id].score[0]+" - "+c.data.thumbnails[c.data.game_id].score[1]:"0 - 0",this.item.backgroundhome=c.data.thumbnails[c.data.game_id]?c.data.thumbnails[c.data.game_id].info_thumbnails.home_colors.background_color:"",this.item.backgroundaway=c.data.thumbnails[c.data.game_id]?c.data.thumbnails[c.data.game_id].info_thumbnails.away_colors.background_color:"",this.item.logohome=c.data.thumbnails[c.data.game_id]?"https://az755631.vo.msecnd.net/teams-150/"+c.data.thumbnails[c.data.game_id].home_team+".png":"",this.item.logoaway=c.data.thumbnails[c.data.game_id]?"https://az755631.vo.msecnd.net/teams-150/"+c.data.thumbnails[c.data.game_id].visiting_team+".png":"",this.item.background=c.data.thumbnails[c.data.game_id]?"https://golstatsimages.blob.core.windows.net/images-library/"+c.data.thumbnails[c.data.game_id].info_thumbnails.images.background_default_games[0]:"",this.$emit("loading",!1)}},setUpResizeObserver(){if(window.ResizeObserver)zH=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),zH.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},async mounted(){setTimeout(()=>{this.setUpResizeObserver()},1e3),await this.fillData()}},S3t={class:"highlights-prominent-game",ref:"gamesContainer"},T3t={class:"video-partido-container__highlight"},E3t={key:0,class:"video-partido-container__ribbon"},A3t={key:1,class:"video-partido-container__description"};function M3t(e,r,i,B,D,c){const g=t.resolveComponent("GSCThumbnailHighlightGameHistoric");return t.openBlock(),t.createElementBlock("div",S3t,[t.createElementVNode("div",T3t,[t.createElementVNode("div",{class:"video-partido-container__content2",style:t.normalizeStyle(D.gamesContainerWidth<=680?"display:block; width: 100%":"display:none")},[D.gamesContainerWidth>0?(t.openBlock(),t.createElementBlock("p",{key:0,class:t.normalizeClass(D.gamesContainerWidth>330?"video-partido-container__description2":"video-partido-container__description3")}," Las jugadas más importantes del partido ",2)):t.createCommentVNode("",!0)],4),D.gamesContainerWidth>680?(t.openBlock(),t.createElementBlock("div",{key:0,class:"video-partido-container__content",style:t.normalizeStyle(D.gamesContainerWidth<680?"margin-bottom: 30px;":"margin-bottom: 18px;")},[Object.keys(D.gameInfo).length>0?(t.openBlock(),t.createElementBlock("div",E3t,t.toDisplayString(D.tournamentId!=41?D.gameInfo.matchday_name.replace("Matchday","Jornada").replace("de Final","").replace("Playoffs 1","Cuartos de Final Ida").replace("Playoffs 2","Cuartos de Final Vuelta").replace("Playoffs 3","Semifinal Ida").replace("Playoffs 4","Semifinal Vuelta").replace("Playoffs 5","Final Ida").replace("Playoffs 6","Final Vuelta"):D.gameInfo.matchday_name=="Matchday 10"?"Final":D.gameInfo.matchday_name.replace("Matchday 1","16vos Ida").replace("Matchday 2","16vos Vuelta").replace("Matchday 3","8vos Ida").replace("Matchday 4","8vos Vuelta").replace("Matchday 5","4tos Ida").replace("Matchday 6","4tos Vuelta").replace("Matchday 7","Semifinal Ida").replace("Matchday 8","Semifinal Vuelta").replace("Matchday 9","Final").replace("Matchday 10","Final")),1)):t.createCommentVNode("",!0),t.createElementVNode("h2",{class:t.normalizeClass(D.gamesContainerWidth>865?"video-partido-container__title":"video-partido-container__titletablet")}," HIGHLIGHTS DEL ",2),t.createElementVNode("h2",{class:t.normalizeClass(D.gamesContainerWidth>865?"video-partido-container__title":"video-partido-container__titletablet")}," PARTIDO ",2),D.gamesContainerWidth>=645?(t.openBlock(),t.createElementBlock("p",A3t," Las jugadas más importantes del partido ")):t.createCommentVNode("",!0)],4)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(D.gamesContainerWidth>865?"video-partido-container__image":"video-partido-container__image2")},[D.item.background!=""?(t.openBlock(),t.createBlock(g,{key:0,"color-background-home":D.item.backgroundhome,"color-background-away":D.item.backgroundaway,"logo-home":D.item.logohome,"logo-away":D.item.logoaway,"is-live":!0,"can-play-videos":i.canPlayVideos,background:D.item.background,matchday:D.item.match,"season-name":D.item.seasonname,onOnclickPlayVideos:r[0]||(r[0]=a=>c.onclickPlayVideos({data:D.item,type:1})),score:D.item.score},null,8,["color-background-home","color-background-away","logo-home","logo-away","can-play-videos","background","matchday","season-name","score"])):t.createCommentVNode("",!0)],2)])],512)}const I3t=$i(C3t,[["render",M3t],["__scopeId","data-v-651fe3fb"]]),t0a="";let OH=null;const hE={components:{},props:{titleCategory:{type:String,default:"RESUMEN"},dateGame:{type:String,default:""},colorBackgroundHome:{type:String,default:"#000000"},colorBackgroundAway:{type:String,default:"#FFFFFF"},isLive:{type:Boolean,default:!1},logoHome:{type:String,default:""},game:{type:Object,default:()=>{}},matchday:{type:String,default:""},seasonName:{type:String,default:""},logoAway:{type:String,default:""},score:{type:String,default:""},background:{type:String,default:""}},data(){return{gamesContainerWidth:0}},computed:{date(){const e=this.gamesContainerWidth;return e<=400?"date400":e<=540?"date540":e<=650?"date650":"date"},seasoncontainer(){const e=this.gamesContainerWidth;return e<=400?"season-container400":e<=540?"season-container540":e<=650?"season-container650":"season-container"},matchcontainer(){const e=this.gamesContainerWidth;return e<=400?"match-container400":e<=540?"match-container540":e<=650?"match-container650":"match-container"},containerinfogame(){const e=this.gamesContainerWidth;return e<=400?"container-info-game400":e<=540?"container-info-game540":e<=650?"container-info-game650":"container-info-game"},playbutton(){const e=this.gamesContainerWidth;return e<=400?"play-button400":e<=540?"play-button540":e<=650?"play-button650":"play-button"},baselogo(){const e=this.gamesContainerWidth;return e<=400?"base-logo400":e<=540?"base-logo540":e<=650?"base-logo650":"base-logo"},baselogoright(){const e=this.gamesContainerWidth;return e<=400?"base-logo-right400":e<=540?"base-logo-right540":e<=650?"base-logo-right650":"base-logo-right"},thumbnailhighlights(){const e=this.gamesContainerWidth;return e<=400?"thumbnail-highlights400":e<=540?"thumbnail-highlights540":e<=650?"thumbnail-highlights650":"thumbnail-highlights"},teamlogo(){const e=this.gamesContainerWidth;return e<=400?"team-logo400":e<=540?"team-logo540":e<=650?"team-logo650":"team-logo"},logoright(){const e=this.gamesContainerWidth;return e<=400?"logo-right400":e<=540?"logo-right540":e<=650?"logo-right650":"logo-right"},secondline(){const e=this.gamesContainerWidth;return e<=400?"second-line400":e<=540?"second-line540":e<=650?"second-line650":"second-line"},titlename(){const e=this.gamesContainerWidth;return e<=400?"title-name400":e<=540?"title-name540":e<=650?"title-name650":"title-name"}},methods:{onclickPlayVideos(){this.$emit("onclickPlayVideos")},setUpResizeObserver(){if(window.ResizeObserver)OH=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),OH.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},FH=()=>{t.useCssVars(e=>({"051a0872":e.colorBackgroundHome+"45","80f208fa":e.colorBackgroundAway+"45","9087fefc":e.colorBackgroundHome,"908e22de":e.colorBackgroundAway}))},LH=hE.setup;hE.setup=LH?(e,r)=>(FH(),LH(e,r)):FH;const Uy=e=>(t.pushScopeId("data-v-84f38fde"),e=e(),t.popScopeId(),e),P3t={key:0,class:"icon-live"},B3t=[Uy(()=>t.createElementVNode("span",{class:"circle-live"},null,-1)),Uy(()=>t.createElementVNode("span",{style:{"margin-left":"3px"}},"LIVE",-1))],N3t=[Uy(()=>t.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},[t.createElementVNode("path",{d:"M6.6041 22.8554C6.42105 22.7512 6.26805 22.5956 6.1616 22.4053C6.05515 22.215 5.99927 21.9973 6.00001 21.7755V2.22137C6.00026 2.00039 6.0565 1.78362 6.16274 1.59409C6.26899 1.40456 6.42127 1.24936 6.6034 1.14499C6.78553 1.04062 6.9907 0.990981 7.1971 1.00135C7.4035 1.01171 7.60342 1.0817 7.77561 1.20386L21.4907 10.9821C21.6473 11.0935 21.7758 11.2446 21.8646 11.4219C21.9535 11.5992 22 11.7973 22 11.9985C22 12.1996 21.9535 12.3977 21.8646 12.575C21.7758 12.7523 21.6473 12.9034 21.4907 13.0148L7.77561 22.7954C7.60369 22.9178 7.40392 22.988 7.19761 22.9986C6.9913 23.0092 6.78617 22.9597 6.6041 22.8554ZM7.14347 21.7779L20.8585 11.9996L7.14347 21.7779Z",fill:"#CBEE6B"})],-1))],z3t=Uy(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/paper-texture.png",alt:"",class:"paper-texture position-image"},null,-1)),O3t=["src"],F3t=Uy(()=>t.createElementVNode("div",{class:"gradient-back position-image"},null,-1)),L3t=Uy(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/halftone-texture.png",alt:"",class:"halftone-texture position-image"},null,-1)),D3t=["src"],R3t=["src"],V3t={class:"text-container"};function $3t(e,r,i,B,D,c){return t.openBlock(),t.createElementBlock("div",{ref:"gamesContainer",class:t.normalizeClass(c.thumbnailhighlights)},[i.isLive&&i.game.game_status!=0?(t.openBlock(),t.createElementBlock("div",P3t,B3t)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(c.playbutton),onClick:r[0]||(r[0]=(...g)=>c.onclickPlayVideos&&c.onclickPlayVideos(...g))},N3t,2),i.dateGame!=""?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(c.date)},t.toDisplayString(i.dateGame),3)):t.createCommentVNode("",!0),i.matchday!=""&&i.seasonName!=""?(t.openBlock(),t.createElementBlock("div",{key:2,class:t.normalizeClass(c.containerinfogame)},[i.matchday!=""?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(c.matchcontainer)},t.toDisplayString(i.matchday),3)):t.createCommentVNode("",!0),i.seasonName!=""?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(c.seasoncontainer)},t.toDisplayString(i.seasonName),3)):t.createCommentVNode("",!0)],2)):t.createCommentVNode("",!0),z3t,t.createElementVNode("img",{src:i.background,alt:"",class:"bkg-blackwhite position-image"},null,8,O3t),t.createElementVNode("div",{class:t.normalizeClass([c.baselogo,"position-image"])},null,2),t.createElementVNode("div",{class:t.normalizeClass(c.baselogoright)},null,2),F3t,L3t,t.createElementVNode("img",{src:i.logoHome,alt:"",class:t.normalizeClass(c.teamlogo)},null,10,D3t),t.createElementVNode("img",{src:i.logoAway,alt:"",class:t.normalizeClass(c.logoright)},null,10,R3t),t.createElementVNode("div",V3t,[t.createElementVNode("span",{class:t.normalizeClass(c.secondline)},t.toDisplayString(i.score),3),t.createElementVNode("div",{class:t.normalizeClass(c.titlename)},t.toDisplayString(i.titleCategory),3)])],2)}const j3t=$i(hE,[["render",$3t],["__scopeId","data-v-84f38fde"]]),i0a="";let DH=null;const U3t={components:{GSCThumbnailHighlightGameHistoricLive:j3t},props:{timeLiveHighlightsProminentAndVideo:{type:Number,default:6e4},game:{type:Object,default:()=>{}},canPlayVideos:{type:Boolean,default:!1}},watch:{game:{deep:!0,immediate:!0,handler(e){this.fetchLiveData(e.gameId),e.is_live==1&&(this.intervalidhighlive=setInterval(()=>{this.fetchLiveData(e.gameId)},this.timeLiveHighlightsProminentAndVideo),this.$emit("intervalidhighlive",this.intervalidhighlive))}}},data(){return{printData:[],gameInfo:{},intervalidhighlive:null,informationBestPlaysPlayers:[],informationBestPlaysTeamHome:[],informationBestPlaysTeamAway:[],gamesContainerWidth:0,tournamentId:0,showHighlight:!1,showHighlightGoals:!1,item:{backgroundhome:"",backgroundaway:"",logohome:"",logoaway:"",background:"",match:"",seasonname:"",score:""},token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"}},computed:{},methods:{async fetchLiveData(){await this.getLiveHighlights()},onclickPlayVideos(e){var r=[];e.type==2?e.data.position_id==1?e.data.category==0?r=[55,324,323,608,39,774,802,52,53,40,54]:r=e.data.category:e.data.category==0?r=[12,35,10,27,607,61,519,98,101,109,112,121,122,127,128,135,136,141,142,161,170,179,702,730,466,217,211,232,235,239,242,282,284,289,291,296,485,486,487,488,14,15,257]:r=e.data.category:e.type==3?e.data.category==0?r=[607,608,12,55,54,35,14,52,15,53,466,477,40,257,39]:r=e.data.category:e.type==4?r=[12,55,"35_r","54_r"]:e.data.category!=0?r=e.data.category:r=[607,608,12,55,54,35,14,52,15,53,466,477];const i=[1,2,3];let B={seasonId:e.data.season_id,mainSectionType:1,playListType:e.type,categoryIds:r,gameIdsToFilter:e.data.game_id?[e.data.game_id]:null,playerIds:e.data.position_id!=1?e.data.player_id?[e.data.player_id]:[]:[],goalkeeperIds:e.data.position_id==1?e.data.player_id?[e.data.player_id]:[]:[],teamId:e.data.team_id?e.data.team_id:0,matchResult:e.data.matchResult?[data.matchResult]:i,playData:{},advancedFilter:{playListTitle:""}};e.data.category!==0&&(B.advancedFilter.mainCategoryId=e.data.category),this.$emit("openmedia",B)},async getLiveHighlights(){const r=await $c.create({headers:{Authorization:`${this.token}`}}).get("https://fxtcaw9tw6.execute-api.us-east-2.amazonaws.com/prod/live/historic/games/"+this.game.gameId);r.data!=""&&(this.showHighlight=r.data==""?!1:r.data.plays.length>0,this.showHighlightGoals=r.data==""?!1:r.data.plays.filter(i=>i[0]===12).length>0,this.item.category=0,this.item.game_id=r.data.game_id,this.item.season_id=this.game.seasonId,this.item.score=r.data.thumbnails[r.data.game_id].score,this.item.backgroundhome=r.data.thumbnails[r.data.game_id].info_thumbnails.home_colors.background_color,this.item.backgroundaway=r.data.thumbnails[r.data.game_id].info_thumbnails.away_colors.background_color,this.item.logohome="https://az755631.vo.msecnd.net/teams-150/"+r.data.thumbnails[r.data.game_id].home_team+".png",this.item.logoaway="https://az755631.vo.msecnd.net/teams-150/"+r.data.thumbnails[r.data.game_id].visiting_team+".png",this.item.background="https://golstatsimages.blob.core.windows.net/images-library/"+r.data.thumbnails[r.data.game_id].info_thumbnails.images.background_default_games[0])},setUpResizeObserver(){if(window.ResizeObserver)DH=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainerlivehigh.clientWidth}),DH.observe(this.$refs.gamesContainerlivehigh);else throw new Error("Resize observer not supported!")}},async mounted(){setTimeout(()=>{this.setUpResizeObserver()},1e3)}},h0=e=>(t.pushScopeId("data-v-7682cbf3"),e=e(),t.popScopeId(),e),G3t={class:"highlights-prominent-game",ref:"gamesContainerlivehigh"},H3t={class:"video-partido-container__highlight"},W3t={class:"video-partido-container__content"},q3t=h0(()=>t.createElementVNode("div",{class:"video-partido-container__ribbon"},"• LIVE",-1)),Y3t=h0(()=>t.createElementVNode("h2",{class:"video-partido-container__title"},"HIGHLIGHTS AL",-1)),X3t=h0(()=>t.createElementVNode("h2",{class:"video-partido-container__title"},"MOMENTO",-1)),Z3t=h0(()=>t.createElementVNode("p",{class:"video-partido-container__description"}," Las jugadas más destacadas hasta el momento ",-1)),J3t=h0(()=>t.createElementVNode("h2",{class:"video-partido-container__title"},"HIGHLIGHTS DEL",-1)),K3t=h0(()=>t.createElementVNode("h2",{class:"video-partido-container__title"},"PARTIDO",-1)),Q3t=h0(()=>t.createElementVNode("p",{class:"video-partido-container__description"},"Las jugadas más destacadas del partido",-1)),ewt=h0(()=>t.createElementVNode("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M2.30205 11.4277C2.21053 11.3756 2.13403 11.2978 2.0808 11.2027C2.02757 11.1075 1.99964 10.9986 2 10.8878V1.11068C2.00013 1.0002 2.02825 0.891808 2.08137 0.797044C2.13449 0.70228 2.21063 0.624681 2.3017 0.572496C2.39276 0.520311 2.49535 0.495491 2.59855 0.500673C2.70175 0.505856 2.80171 0.540848 2.8878 0.601929L9.74533 5.49105C9.82365 5.54675 9.88789 5.62229 9.93232 5.71095C9.97675 5.79961 10 5.89864 10 5.99923C10 6.09982 9.97675 6.19885 9.93232 6.28751C9.88789 6.37617 9.82365 6.45171 9.74533 6.50741L2.8878 11.3977C2.80184 11.4589 2.70196 11.494 2.5988 11.4993C2.49565 11.5046 2.39309 11.4798 2.30205 11.4277ZM2.57173 10.8889L9.42926 5.99981L2.57173 10.8889Z",fill:"#CBEE6B"})],-1)),twt={class:"video-partido-container__image"};function awt(e,r,i,B,D,c){const g=t.resolveComponent("GSCThumbnailHighlightGameHistoricLive");return t.openBlock(),t.createElementBlock("div",G3t,[t.withDirectives(t.createElementVNode("div",H3t,[t.createElementVNode("div",W3t,[i.game.game_status!=0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[q3t,Y3t,X3t,Z3t],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[J3t,K3t,Q3t],64)),t.createElementVNode("button",{class:"video-partido-container__button",onClick:r[0]||(r[0]=a=>c.onclickPlayVideos({data:D.item,type:1}))},[ewt,t.createTextVNode(" Reproducir ahora ")])]),t.createElementVNode("div",twt,[t.createVNode(g,{"is-live":!0,game:i.game,"color-background-home":D.item.backgroundhome,"color-background-away":D.item.backgroundaway,"logo-home":D.item.logohome,"logo-away":D.item.logoaway,background:D.item.background,onOnclickPlayVideos:r[1]||(r[1]=a=>c.onclickPlayVideos({data:D.item,type:1})),matchday:D.item.match,"season-name":D.item.seasonname,score:D.item.score},null,8,["game","color-background-home","color-background-away","logo-home","logo-away","background","matchday","season-name","score"])])],512),[[t.vShow,i.canPlayVideos&&D.showHighlight]])],512)}const nwt=$i(U3t,[["render",awt],["__scopeId","data-v-7682cbf3"]]),pE="/play-icn.svg",o0a="",rwt={name:"TooltipEmpty",props:{data:{type:Object,required:!0}},computed:{showTooltip(){return{visible:this.data.visible}}},methods:{tooltipClick:function(){},closeClick:function(){this.$emit("close")}}};function iwt(e,r,i,B,D,c){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["back-tooltip",c.showTooltip])},[t.createElementVNode("div",{class:t.normalizeClass(["box-tooltip",c.showTooltip]),onClick:r[1]||(r[1]=(...g)=>c.tooltipClick&&c.tooltipClick(...g))},[t.createElementVNode("span",{role:"button",class:"box-tooltip-close",onClick:r[0]||(r[0]=(...g)=>c.closeClick&&c.closeClick(...g))},"×"),t.renderSlot(e.$slots,"default",{},void 0,!0)],2)],2)}const owt=$i(rwt,[["render",iwt],["__scopeId","data-v-b5f07af8"]]),s0a="",swt=["id"],lwt={class:"game-event__minute"},cwt={class:"game-event__icon"},dwt=["src"],uwt="/images/events/",hwt=$i({__name:"GameEvent",props:{gameEvent:{type:Object,default:()=>{}}},emits:["click-event"],setup(e,{emit:r}){const i=e,B=t.computed(()=>({"--icon-bottom":i.gameEvent.isHomeTeam?"30px":"-5px","--border-color":i.gameEvent.isSelected?"#336dff":"#747c83","--background-color":i.gameEvent.isSelected?"#336dff":"#0d1d29"})),D=t.computed(()=>{let g="";return i.gameEvent.category_id===18?g="icn-tiros-de-esquina.svg":i.gameEvent.category_id===20?g="icn-tiro-a-porteria.svg":i.gameEvent.category_id===10?g="icn-cambio.svg":i.gameEvent.category_id===21?g="icn-falta.svg":i.gameEvent.category_id===27?g="atajada.svg":i.gameEvent.category_id===17?g="fuera-de-lugar.svg":i.gameEvent.category_id===4||i.gameEvent.category_id===13||i.gameEvent.category_id===14||i.gameEvent.category_id===16||i.gameEvent.category_id===6&&i.gameEvent.event_type_id===1||i.gameEvent.category_id===5&&i.gameEvent.event_type_id===1||i.gameEvent.category_id===1&&i.gameEvent.event_type_id===1||i.gameEvent.category_id===2&&i.gameEvent.event_type_id===1||i.gameEvent.category_id===3&&i.gameEvent.event_type_id===1||i.gameEvent.category_id===7&&i.gameEvent.event_type_id===1||i.gameEvent.category_id===12&&i.gameEvent.event_type_id===1?g="gol.svg":i.gameEvent.category_id==30||i.gameEvent.category_id==31||i.gameEvent.category_id==32||i.gameEvent.category_id==33||i.gameEvent.category_id==34||i.gameEvent.category_id==35||i.gameEvent.category_id==36||i.gameEvent.category_id==37||i.gameEvent.category_id==38||i.gameEvent.category_id==39||i.gameEvent.category_id==40?g="var.png":i.gameEvent.category_id===28?g="tiempo-agregado.svg":i.gameEvent.category_id===26?g="jugada-peligrosa.svg":i.gameEvent.category_id===22?g="penal-marcado.svg":i.gameEvent.category_id===15||i.gameEvent.category_id===23?g="penal-fallado.svg":i.gameEvent.category_id===8?g="icn-tarjeta-amarilla.svg":i.gameEvent.category_id===9?g="icn-tarjeta-roja.svg":g="generic.svg",`${uwt}${g}`});function c(){r("click-event",i.gameEvent)}return(g,a)=>(t.openBlock(),t.createElementBlock("div",{id:i.gameEvent.play_id,class:"game-event",onClick:c,style:t.normalizeStyle(B.value)},[t.createElementVNode("div",lwt,[t.createElementVNode("div",null,t.toDisplayString(e.gameEvent.minute)+"'",1)]),t.createElementVNode("div",cwt,[t.createElementVNode("img",{src:D.value},null,8,dwt)])],12,swt))}},[["__scopeId","data-v-f972a06c"]]),c0a="",pwt=e=>(t.pushScopeId("data-v-df0b18c7"),e=e(),t.popScopeId(),e),fwt={class:"events-line"},mwt={class:"events-line__events"},gwt=pwt(()=>t.createElementVNode("div",{class:"events-line__events__line"},null,-1)),ywt=$i({__name:"EventsLine",props:{gameEvents:{type:Array,default:()=>[]}},emits:["click-event"],setup(e,{emit:r}){function i(B){r("click-event",B)}return(B,D)=>(t.openBlock(),t.createElementBlock("div",fwt,[t.createVNode(t.unref(Wv),{backgroundColor:"#172531",pxScroll:260,arrowsPosition:"absolute",arrowsScrollHide:!0,arrowsBackground:"rgba(255,255,255,.16)",arrowsContainerBgL:"none",arrowsContainerBgR:"none",arrowsMargin:0,arrowsRadius:"50%",arrowsBorder:"#ddd"},{default:t.withCtx(()=>[t.createElementVNode("div",mwt,[gwt,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.gameEvents,c=>(t.openBlock(),t.createBlock(hwt,{key:c.id,"game-event":c,onClickEvent:i},null,8,["game-event"]))),128))])]),_:1})]))}},[["__scopeId","data-v-df0b18c7"]]),u0a="",y_=e=>(t.pushScopeId("data-v-510b64d7"),e=e(),t.popScopeId(),e),vwt={class:"tooltip-data"},_wt=["src"],bwt=y_(()=>t.createElementVNode("div",{class:"game-events__title-left-padding"},null,-1)),xwt=y_(()=>t.createElementVNode("div",{class:"game-events__title"},"Eventos",-1)),wwt={class:"game-events__team-logo"},kwt=["src"],Cwt={class:"game-events__event-info"},Swt={key:0,class:"game-events__event-info__line"},Twt={key:1,class:"game-events__event-info__info"},Ewt={class:"game-events__event-info__info__player-photo"},Awt={key:0,class:"game-events__event-info__info__player-photo__img"},Mwt=["src"],Iwt={class:"game-events__event-info__info__event-name"},Pwt={class:"game-events__event-info__info__player-name"},Bwt=[y_(()=>t.createElementVNode("img",{src:pE,alt:""},null,-1))],Nwt=y_(()=>t.createElementVNode("div",{class:"game-events__events-padding"},null,-1)),zwt={class:"game-events__events"},Owt={class:"game-events__team-logo"},Fwt=["src"],Lwt={class:"game-events__event-info"},Dwt={key:0,class:"game-events__event-info__line"},Rwt={key:1,class:"game-events__event-info__info"},Vwt={class:"game-events__event-info__info__player-photo"},$wt={key:0,class:"game-events__event-info__info__player-photo__img"},jwt=["src"],Uwt={class:"game-events__event-info__info__event-name"},Gwt={class:"game-events__event-info__info__player-name"},Hwt=[y_(()=>t.createElementVNode("img",{src:pE,alt:""},null,-1))],Wwt="https://11rcgkydx3.execute-api.us-east-2.amazonaws.com/prod/games/",qwt=$i({__name:"GameEvents",props:{game:{type:Object,default:()=>({})},widthScreen:{type:Number,default:0},token:{type:String,default:""},canPlayVideos:{type:Boolean,default:!0},gameEventsIntervalMinutes:{type:Number,default:1}},emits:["play-video"],setup(e,{emit:r}){const i=e;let B=null,D=0;const c=t.ref([]),g=t.ref(new Map),a=t.ref(""),y=t.ref(null),f=t.ref({visible:!1,link:""}),n=t.ref(new Set),v=t.ref(0),_=t.computed(()=>i.game.is_live||i.game.game_status===0);t.watch(()=>i.game,(w,x)=>{w&&w.gameId!==D?(n.value.clear(),D=w.gameId,o(),l(w.gameId,w.is_live&&w.game_status===4)):w&&w.is_live&&(!x||!x.is_live)?l(w.gameId,!0):w&&!w.is_live&&x.is_live&&o()},{deep:!0,immediate:!0}),t.watch(()=>a.value,(w,x)=>{if(w!==x){const S=g.value.get(x),C=g.value.get(w);if(S&&(S.isSelected=!1),C){if(!C.playerShortName){const[T,k]=C.player_name.split(","),A=T.split(" ");let E="";for(const M of A)if(E+=` ${M}`,M.length>3)break;C.playerShortName=k&&T?`${k.trim().charAt(0)}.${E}`:""}C.isSelected=!0,y.value=C}}});function p(w){B=setInterval(()=>{l(w)},1e3*60*i.gameEventsIntervalMinutes)}async function l(w,x=!1){try{let S=await d(w),C=!1;w!==v.value&&(c.value=[],g.value=new Map,a.value="",n.value.clear(),v.value=w);let T=S.filter(k=>{const A=n.value.has(k.play_id);return A||n.value.add(k.play_id),!A});T&&(T=T.reduce((k,A)=>(C=A.game_finished,A.team_id&&(A.isHomeTeam=A.team_id===i.game.homeTeam.team_id,k.push(A),g.value.set(A.play_id,A)),k),[]),s(T).forEach(k=>{_.value?c.value.unshift(k):c.value.push(k)})),(_.value||!a.value&&c.value.length)&&(a.value=c.value[0].play_id),x&&!C?p(w):C&&o()}catch(S){console.error(S)}}function o(){B&&(clearInterval(B),B=null)}function s(w){return w.sort((x,S)=>u(x.matchlapse)+Number(x.minute)-(u(S.matchlapse)+Number(S.minute)))}function u(w){let x=0;switch(w){case 1:x=0;break;case 2:x=45;break;case 3:x=90;break;case 4:x=105;break;case 5:x=120;break}return x}async function d(w){try{const S=(await $c.get(`${Wwt}${w}/timeline`,{headers:{Authorization:i.token}})).data;return S?S.plays||[]:[]}catch(x){throw new Error(x)}}function h(w){a.value=w.play_id}function m(){i.canPlayVideos&&y.value.play_id&&r("play-video",{categoryId:y.value.main_category_id,playId:y.value.play_id})}function b(){f.value.visible=!1,f.value.link=""}return t.onBeforeUnmount(()=>{o()}),(w,x)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createVNode(owt,{data:f.value,onClose:b},{default:t.withCtx(()=>[t.createElementVNode("div",vwt,[t.createElementVNode("div",null,[t.createElementVNode("video",{class:"tooltip-video",controls:"",autoplay:"",src:f.value.link,format:"video/mp4"},null,8,_wt)])])]),_:1},8,["data"]),t.createElementVNode("div",{class:t.normalizeClass(e.widthScreen>920?"game-events":"game-events__mobile")},[bwt,xwt,t.createElementVNode("div",wwt,[e.game&&e.game.homeTeam?(t.openBlock(),t.createElementBlock("img",{key:0,class:"game-events__team-logo__img",src:e.game.homeTeam.logo,alt:"team-logo"},null,8,kwt)):t.createCommentVNode("",!0)]),t.createElementVNode("div",Cwt,[y.value&&y.value.isHomeTeam?(t.openBlock(),t.createElementBlock("div",Swt)):t.createCommentVNode("",!0),y.value&&y.value.isHomeTeam?(t.openBlock(),t.createElementBlock("div",Twt,[t.createElementVNode("div",Ewt,[y.value.player_id?(t.openBlock(),t.createElementBlock("div",Awt,[t.createElementVNode("img",{src:`https://az755631.vo.msecnd.net/players-profile/${y.value.player_id}.png`,alt:""},null,8,Mwt)])):t.createCommentVNode("",!0)]),t.createElementVNode("div",Iwt,t.toDisplayString(y.value.event_type_id===1?y.value.event_type_name:y.value.category_name),1),t.createElementVNode("div",Pwt," | "+t.toDisplayString(y.value.playerShortName),1),e.canPlayVideos&&y.value.play_id?(t.openBlock(),t.createElementBlock("div",{key:0,role:"button",class:"game-events__event-info__info__button-play",onClick:m},Bwt)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)]),Nwt,t.createElementVNode("div",zwt,[t.createVNode(ywt,{"game-events":c.value,onClickEvent:h},null,8,["game-events"])]),t.createElementVNode("div",Owt,[e.game&&e.game.awayTeam?(t.openBlock(),t.createElementBlock("img",{key:0,class:"game-events__team-logo__img",src:e.game.awayTeam.logo,alt:"team-logo"},null,8,Fwt)):t.createCommentVNode("",!0)]),t.createElementVNode("div",Lwt,[y.value&&!y.value.isHomeTeam?(t.openBlock(),t.createElementBlock("div",Dwt)):t.createCommentVNode("",!0),y.value&&!y.value.isHomeTeam?(t.openBlock(),t.createElementBlock("div",Rwt,[t.createElementVNode("div",Vwt,[y.value.player_id?(t.openBlock(),t.createElementBlock("div",$wt,[t.createElementVNode("img",{src:`https://az755631.vo.msecnd.net/players-profile/${y.value.player_id}.png`,alt:""},null,8,jwt)])):t.createCommentVNode("",!0)]),t.createElementVNode("div",Uwt,t.toDisplayString(y.value.event_type_id===1?y.value.event_type_name:y.value.category_name),1),t.createElementVNode("div",Gwt," | "+t.toDisplayString(y.value.playerShortName),1),e.canPlayVideos&&y.value.play_id?(t.openBlock(),t.createElementBlock("div",{key:0,role:"button",class:"game-events__event-info__info__button-play",onClick:m},Hwt)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)])],2)],64))}},[["__scopeId","data-v-510b64d7"]]),m0a="",Ywt={class:"toggle-buttons__background"},Xwt=["onClick"],Zwt={key:0,class:"toggle-buttons__button__img"},Jwt=["src"],v4=$i({__name:"ToggleButtons",props:{buttons:{type:Array,required:!0},selectedButtonIndex:{type:Number,default:0},height:{type:String,default:"29px"},width:{type:String,default:"100%"},fontSize:{type:String,default:"12px"},fontFamily:{type:String,default:"Poppins-Medium"},borderRadius:{type:String,default:"8px"},mainBackgroundColor:{type:String,default:"#364448"},mainBorderColor:{type:String,default:"#9AA1A3"},mainBorderWidth:{type:String,default:"0.5px"},activeBorderColor:{type:String,default:"#cbee6b"},activeBorderWidth:{type:String,default:"1px"},activeBackgroundColor:{type:String,default:"#2e3b46"},activeFontColor:{type:String,default:"#FFFFFF"}},emits:["change"],setup(e,{emit:r}){const i=e;t.useCssVars(g=>({29153391:e.height,"1aee961c":e.width,"738679b2":e.mainBackgroundColor,f3cab270:e.borderRadius,"0ec0fe57":e.mainBorderWidth,"0da9fff4":e.mainBorderColor,"68dc0c06":e.fontFamily,f9ef5e4c:e.fontSize,"5713c56a":e.activeBorderWidth,"55fcc707":e.activeBorderColor,"38297f45":e.activeBackgroundColor,"424728c4":e.activeFontColor}));const B=t.ref(i.selectedButtonIndex),D=t.computed(()=>({"--grid-template-columns":`repeat(${i.buttons.length}, 1fr)`}));t.watch(()=>i.selectedButtonIndex,g=>{B.value=g}),t.watch(B,(g,a)=>{g!==a&&r("change",{index:g,button:i.buttons[g]})});function c(g){B.value=g}return(g,a)=>(t.openBlock(),t.createElementBlock("div",Ywt,[t.createElementVNode("div",{class:"toggle-buttons",style:t.normalizeStyle(D.value)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.buttons,(y,f)=>(t.openBlock(),t.createElementBlock("div",{key:`b${f}`,class:t.normalizeClass(["toggle-buttons__button",{active:B.value===f,right:y.img&&f>0}]),onClick:n=>c(f)},[y.img?(t.openBlock(),t.createElementBlock("div",Zwt,[t.createElementVNode("img",{src:y.img,alt:""},null,8,Jwt)])):t.createCommentVNode("",!0),t.createElementVNode("div",null,t.toDisplayString(y.text||y),1)],10,Xwt))),128))],4)]))}},[["__scopeId","data-v-ad07815f"]]),y0a="",Kwt="/images/cancha-horizontal-raw.jpg",v0a="",fE=e=>(t.pushScopeId("data-v-cb12065f"),e=e(),t.popScopeId(),e),Qwt={class:"tooltip__content"},e5t={key:0,class:"tooltip__content__category"},t5t={class:"tooltip__content__player"},a5t={class:"tooltip__content__player__name"},n5t={class:"tooltip__content__player__photo"},r5t=["src"],i5t={class:"tooltip__content__minute"},o5t={key:1,class:"tooltip__content__game"},s5t=fE(()=>t.createElementVNode("div",{class:"tooltip__content__game__name"},"Partido:",-1)),l5t={class:"tooltip__content__game__round-abbreviation"},c5t={class:"tooltip__content__game__logo"},d5t=["src"],u5t=fE(()=>t.createElementVNode("div",{class:"tooltip__content__game__vs"},"VS",-1)),h5t={class:"tooltip__content__game__logo"},p5t=["src"],f5t={key:2,class:"tooltip__content__team"},m5t=fE(()=>t.createElementVNode("div",{class:"tooltip__content__team__name"},"Equipo:",-1)),g5t={class:"tooltip__content__team__logo"},y5t=["src"],v5t=$i({__name:"TooltipChalkboard",props:{event:{type:Object,default:()=>({})},position:{type:Object,default:()=>({x:"0",y:"0"})}},emits:["close"],setup(e,{emit:r}){const i=e,B=t.computed(()=>({"--top":i.position.y,"--left":i.position.x})),D=t.computed(()=>`${i.event.player.player_name} ${i.event.player.player_lastname}`),c=t.computed(()=>{const[a]=i.event.momentOfPlay.split(":");return`${Number(a)}'`});function g(){r("close")}return(a,y)=>(t.openBlock(),t.createElementBlock("div",{class:"tooltip",onClick:g,style:t.normalizeStyle(B.value)},[t.createElementVNode("div",Qwt,[e.event.categoryName?(t.openBlock(),t.createElementBlock("div",e5t,t.toDisplayString(e.event.categoryName),1)):t.createCommentVNode("",!0),t.createElementVNode("div",t5t,[t.createElementVNode("div",a5t,t.toDisplayString(D.value),1),t.createElementVNode("div",n5t,[t.createElementVNode("img",{src:e.event.player.photo,alt:""},null,8,r5t)])]),t.createElementVNode("div",i5t,"Minuto: "+t.toDisplayString(c.value),1),e.event.game?(t.openBlock(),t.createElementBlock("div",o5t,[s5t,t.createElementVNode("div",l5t,t.toDisplayString(e.event.game.roundAbbreviation),1),t.createElementVNode("div",c5t,[t.createElementVNode("img",{src:e.event.game.homeTeam.logo,alt:""},null,8,d5t)]),u5t,t.createElementVNode("div",h5t,[t.createElementVNode("img",{src:e.event.game.awayTeam.logo,alt:""},null,8,p5t)])])):(t.openBlock(),t.createElementBlock("div",f5t,[m5t,t.createElementVNode("div",g5t,[t.createElementVNode("img",{src:e.event.team.logo,alt:""},null,8,y5t)])]))])],4))}},[["__scopeId","data-v-cb12065f"]]),_5t=["id"],b5t=["fill"],x5t=["id"],w5t=["fill"],k5t=["stroke-dasharray","x1","y1","x2","y2","marker-end"],C5t=["x","y","stroke-width","fill","stroke"],S5t=["x","y"],T5t={__name:"EventConnection",props:{eventConnection:{type:Object,required:!0},color:{type:String,required:!0},isLastEvent:{type:Boolean,default:!1},mainEventIdSelected:{type:Number,default:0}},setup(e){const r=e,i=t.computed(()=>{const v=[];if(r.eventConnection.hasConnectionPath){const _=r.eventConnection.x1===r.eventConnection.x2&&r.eventConnection.y1===r.eventConnection.y2?1:2;let p=a(r.eventConnection.previousEvent?r.eventConnection.previousEvent.y3:r.eventConnection.y1);const l=y(r.eventConnection.previousEvent?r.eventConnection.previousEvent.x3:r.eventConnection.x1);let o=0,s=0;_===2&&(o=a(r.eventConnection.y2),s=y(r.eventConnection.x2));const u=a(r.eventConnection.y3),d=y(r.eventConnection.x3);_===1?v.push({x1:l,y1:p,x2:d,y2:u}):(v.push({x1:l,y1:p,x2:s,y2:o}),v.push({x1:s,y1:o,x2:d,y2:u}))}return v}),B=t.computed(()=>r.mainEventIdSelected!==0?r.eventConnection.relatedPlayId===r.mainEventIdSelected?1:.1:1),D=t.computed(()=>r.mainEventIdSelected!==0?r.eventConnection.relatedPlayId===r.mainEventIdSelected:!0),c=t.computed(()=>a(r.eventConnection.previousEvent?r.eventConnection.previousEvent.y3:r.eventConnection.y1)),g=t.computed(()=>y(r.eventConnection.previousEvent?r.eventConnection.previousEvent.x3:r.eventConnection.x1));function a(v){return(1-v)*100}function y(v){return v*100}function f(v){Xh.emit("mouse-over-event",{mouseEvent:v,eventConnection:r.eventConnection,position:{x:g.value,y:c.value}})}function n(){Xh.emit("mouse-leave-event",{mainEventId:r.eventConnection.relatedPlayId,eventId:r.eventConnection.playId})}return(v,_)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createElementVNode("defs",null,[t.withDirectives(t.createElementVNode("marker",{id:`a-${e.eventConnection.playId}`,markerWidth:"10",markerHeight:"10",refX:"0",refY:"3",orient:"auto",markerUnits:"strokeWidth",style:t.normalizeStyle({opacity:B.value})},[t.createElementVNode("path",{d:"M0,0 L0,6 L9,3 z",fill:e.color},null,8,b5t)],12,_5t),[[t.vShow,D.value]]),t.withDirectives(t.createElementVNode("marker",{id:`b-${e.eventConnection.playId}`,markerWidth:"4",markerHeight:"4",refX:"2",refY:"2",orient:"auto",markerUnits:"strokeWidth",style:t.normalizeStyle({opacity:B.value})},[t.createElementVNode("circle",{cx:"2",cy:"2",r:"2",fill:e.color},null,8,w5t)],12,x5t),[[t.vShow,D.value]])]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i.value,(p,l)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[p.x1&&p.y1?t.withDirectives((t.openBlock(),t.createElementBlock("line",{key:`${e.eventConnection.playId}-${l}`,style:t.normalizeStyle({stroke:e.color,"stroke-width":2,opacity:B.value}),"stroke-dasharray":l===0&&i.value.length===2?"none":"5,5",x1:`${p.x1}%`,y1:`${p.y1}%`,x2:`${p.x2}%`,y2:`${p.y2}%`,"marker-start":"`url(`#b-${eventConnection.playId}`)`","marker-end":`url(${e.isLastEvent&&l===i.value.length-1?`#a-${e.eventConnection.playId}`:""})`},null,12,k5t)),[[t.vShow,D.value]]):t.createCommentVNode("",!0)],64))),256)),t.withDirectives(t.createElementVNode("g",{onMouseover:f,onMouseleave:n,style:t.normalizeStyle({cursor:"pointer",opacity:B.value})},[t.createElementVNode("rect",{x:`${g.value}%`,y:`${c.value}%`,transform:"translate(-14, -14)",height:"28",width:"28","stroke-width":e.eventConnection.isMainPlay?2:1,fill:e.color,stroke:e.eventConnection.isMainPlay?"#fff":"#999",style:t.normalizeStyle({opacity:B.value}),rx:"14",ry:"14"},null,12,C5t),t.createElementVNode("text",{x:`${g.value}%`,y:`${c.value}%`,"text-anchor":"middle","dominant-baseline":"middle",dy:"1","font-size":"15",fill:"#fff","font-family":"'Poppins-SemiBold', sans-serif",style:t.normalizeStyle({opacity:B.value})},t.toDisplayString(e.eventConnection.player?e.eventConnection.player.jersey:""),13,S5t)],36),[[t.vShow,D.value]])],64))}},E5t={__name:"EventConnections",props:{eventConnections:{type:Object,required:!0},mainEventIdSelected:{type:Number,default:0}},setup(e){const r=e,i=t.computed(()=>r.eventConnections.getEventsConnectionsByEventType()),B=t.computed(()=>r.eventConnections.getTeamColor());return(D,c)=>(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i.value,(g,a)=>(t.openBlock(),t.createBlock(T5t,{key:g.id,color:B.value,"is-last-event":a===i.value.length-1,"event-connection":g,"main-event-id-selected":e.mainEventIdSelected},null,8,["color","is-last-event","event-connection","main-event-id-selected"]))),128))}},b0a="",A5t=e=>(t.pushScopeId("data-v-bc874f69"),e=e(),t.popScopeId(),e),M5t={class:"soccer-chalkboard"},I5t={id:"soccerChalkboardField",class:"soccer-chalkboard__field"},P5t=A5t(()=>t.createElementVNode("img",{src:Kwt,alt:""},null,-1)),B5t={viewBox:"0 0 547 340",fill:"none",xmlns:"http://www.w3.org/2000/svg"},N5t=$i({__name:"SoccerChalkboard",props:{eventsConnections:{type:Array,default:()=>[]},listType:{type:String,default:"events"},playersSelected:{type:Set,default:()=>new Set},teamsSelected:{type:Set,default:()=>new Set}},setup(e){const i=ise()?0:1e3;Xh.on("mouse-over-time-event",_=>{y(_),setTimeout(()=>{y(_)},i)}),Xh.on("mouse-leave-time-event",_=>{setTimeout(()=>{c.value==_&&!B.value&&y(0)},i)}),Xh.on("mouse-over-event",_=>{n(_)}),Xh.on("mouse-leave-event",_=>{setTimeout(()=>{_.eventId===g.value&&v()},i)});const B=t.ref(!1),D=t.ref({}),c=t.ref(0),g=t.ref(0),a=t.ref({x:0,y:0});function y(_){c.value=_}function f(){B.value=!1}function n(_){const l=document.getElementById("soccerChalkboardField");if(l){const o=l.getBoundingClientRect(),s=_.position.x/100*o.width+14,u=_.position.y/100*o.height+14,d=s+170>o.width?o.width-170:s,h=u;c.value=_.eventConnection.relatedPlayId,g.value=_.eventConnection.playId,D.value=_.eventConnection,a.value={x:`${d}px`,y:`${h}px`},B.value=!0}}function v(){B.value=!1,c.value=0}return(_,p)=>(t.openBlock(),t.createElementBlock("div",M5t,[t.createElementVNode("div",I5t,[P5t,(t.openBlock(),t.createElementBlock("svg",B5t,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.eventsConnections,(l,o)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[e.listType==="events"&&l.hasTeam(e.teamsSelected)||e.listType==="players"&&l.hasPlayer(e.playersSelected)?(t.openBlock(),t.createBlock(E5t,{key:o,"event-connections":l,"main-event-id-selected":c.value},null,8,["event-connections","main-event-id-selected"])):t.createCommentVNode("",!0)],64))),256))]))]),B.value?(t.openBlock(),t.createBlock(v5t,{key:0,position:a.value,event:D.value,onClose:f},null,8,["position","event"])):t.createCommentVNode("",!0)]))}},[["__scopeId","data-v-bc874f69"]]),w0a="",RH=e=>(t.pushScopeId("data-v-d484e9ef"),e=e(),t.popScopeId(),e),z5t={class:"events-timeline"},O5t=RH(()=>t.createElementVNode("div",{class:"events-timeline__back-line"},null,-1)),F5t=["onMouseover","onMouseleave"],L5t=["id"],D5t=[RH(()=>t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.77234 0.45166C2.11548 0.45166 0.772339 1.79481 0.772339 3.45166V14.4517C0.772339 16.1085 2.11548 17.4517 3.77234 17.4517H7.96294L10.2723 21.4517L12.5817 17.4517H16.7723C18.4292 17.4517 19.7723 16.1085 19.7723 14.4517V3.45166C19.7723 1.79481 18.4292 0.45166 16.7723 0.45166H3.77234Z"},null,-1))],R5t=["fill"],V5t=["mask"],$5t=["stroke"],j5t=$i({__name:"EventsTimeLine",props:{eventsConnections:{type:Array,default:()=>[]},listType:{type:String,default:"events"},playersSelected:{type:Set,default:()=>new Set},teamsSelected:{type:Set,default:()=>new Set}},setup(e){const r=e,i=["0'","45'","90'"],B=t.computed(()=>r.eventsConnections.reduce((g,a)=>{const y={minute:"0'",left:"0%",color:a.getTeamColor(),fontColor:a.getTeamFontColor(),playId:a.mainPlay.playId,playerId:a.mainPlay.playerId,teamId:a.mainPlay.teamId,relatedPlayId:a.relatedPlayId},[f]=a.mainPlay.momentOfPlay.split(":"),n=parseInt(f);return n>=90?(y.minute=`${n}'`,y.left="100%"):(y.minute=`${n}'`,y.left=`${n/90*100}%`),g.push(y),g},[]));function D(g){Xh.emit("mouse-over-time-event",g.playId)}function c(g){Xh.emit("mouse-leave-time-event",g.playId)}return(g,a)=>(t.openBlock(),t.createElementBlock("div",z5t,[(t.openBlock(),t.createElementBlock(t.Fragment,null,t.renderList(i,(y,f)=>t.createElementVNode("div",{class:"events-timeline__game-time",key:f},t.toDisplayString(y),1)),64)),O5t,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(B.value,(y,f)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[e.listType==="events"&&e.teamsSelected.has(y.teamId)||e.listType==="players"&&e.playersSelected.has(y.playerId)?(t.openBlock(),t.createElementBlock("svg",{key:f,width:"20",height:"22",viewBox:"0 0 20 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:t.normalizeStyle({left:y.left,cursor:"pointer"}),onMouseover:n=>D(y),onMouseleave:n=>c(y)},[t.createElementVNode("mask",{id:y.playId.toString(),fill:"white"},D5t,8,L5t),t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.77234 0.45166C2.11548 0.45166 0.772339 1.79481 0.772339 3.45166V14.4517C0.772339 16.1085 2.11548 17.4517 3.77234 17.4517H7.96294L10.2723 21.4517L12.5817 17.4517H16.7723C18.4292 17.4517 19.7723 16.1085 19.7723 14.4517V3.45166C19.7723 1.79481 18.4292 0.45166 16.7723 0.45166H3.77234Z",fill:y.color},null,8,R5t),t.createElementVNode("path",{d:"M7.96294 17.4517L8.82896 16.9517L8.54029 16.4517H7.96294V17.4517ZM10.2723 21.4517L9.40631 21.9517L10.2723 23.4517L11.1384 21.9517L10.2723 21.4517ZM12.5817 17.4517V16.4517H12.0044L11.7157 16.9517L12.5817 17.4517ZM1.77234 3.45166C1.77234 2.34709 2.66777 1.45166 3.77234 1.45166V-0.54834C1.5632 -0.54834 -0.227661 1.24252 -0.227661 3.45166H1.77234ZM1.77234 14.4517V3.45166H-0.227661V14.4517H1.77234ZM3.77234 16.4517C2.66777 16.4517 1.77234 15.5562 1.77234 14.4517H-0.227661C-0.227661 16.6608 1.5632 18.4517 3.77234 18.4517V16.4517ZM7.96294 16.4517H3.77234V18.4517H7.96294V16.4517ZM7.09691 17.9517L9.40631 21.9517L11.1384 20.9517L8.82896 16.9517L7.09691 17.9517ZM11.1384 21.9517L13.4478 17.9517L11.7157 16.9517L9.40631 20.9517L11.1384 21.9517ZM16.7723 16.4517H12.5817V18.4517H16.7723V16.4517ZM18.7723 14.4517C18.7723 15.5562 17.8769 16.4517 16.7723 16.4517V18.4517C18.9815 18.4517 20.7723 16.6608 20.7723 14.4517H18.7723ZM18.7723 3.45166V14.4517H20.7723V3.45166H18.7723ZM16.7723 1.45166C17.8769 1.45166 18.7723 2.34709 18.7723 3.45166H20.7723C20.7723 1.24252 18.9815 -0.54834 16.7723 -0.54834V1.45166ZM3.77234 1.45166H16.7723V-0.54834H3.77234V1.45166Z",fill:"#172531",mask:`url(#${y.playId})`},null,8,V5t),t.createElementVNode("g",null,[t.createElementVNode("text",{x:"50%",y:"8","text-anchor":"middle","dominant-baseline":"middle",dy:"1","font-size":"9","font-family":"Poppins-Light",stroke:y.fontColor,"stroke-width":"0.7"},t.toDisplayString(y.minute),9,$5t)])],44,F5t)):t.createCommentVNode("",!0)],64))),256))]))}},[["__scopeId","data-v-d484e9ef"]]),hd={All:1,YEAR:2,AGE_RANGE:3,NATIONALITY:4,POSITION:5,ELIGIBILITY:6},U5t=(e,r)=>{const i=e.__vccOpts||e;for(const[B,D]of r)i[B]=D;return i},G5t={key:1},H5t={width:"10",height:"8",viewBox:"0 0 10 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},W5t=["fill"],q5t={key:0,class:"checkbox__teams"},Y5t={class:"checkbox__teams__logo"},X5t=["src"],Z5t={class:"checkbox__teams__logo"},J5t=["src"],K5t={__name:"GSC-Checkbox",props:{width:{type:String,default:"fit-content"},height:{type:String,default:"fit-content"},label:{type:String,default:""},labelWhiteSpace:{type:String,default:"normal"},labelColor:{type:String,default:"white"},fontFamily:{type:String,default:"sans-serif"},labelFontSize:{type:String,default:"12px"},modelValue:{type:Boolean,default:!1},justifyContent:{type:String,default:"flex-start"},alignItems:{type:String,default:"center"},boxBackgroundColor:{type:String,default:"#CBEE6B"},boxValueColor:{type:String,default:"#0d1d29"},boxValue:{type:[String,Number],default:""},boxPosition:{type:String,default:"left",validator(e){return["left","right","top","bottom"].includes(e)}},boxMarginTop:{type:String,default:"0.2em"},boxWidthAndHeight:{type:String,default:"16px"},boxBorderColor:{type:String,default:"#969da2"},boxBorderWidth:{type:String,default:"2px"},boxBorderRadius:{type:String,default:"4px"},boxValueFontSize:{type:String,default:"10px"},boxValueFontFamily:{type:String,default:"sans-serif"},avoidInteraction:{type:Boolean,default:!1},avoidToCheck:{type:Boolean,default:!1},isBoxOnly:{type:Boolean,default:!1},teamsIds:{type:Array,default:()=>null}},emits:["update:modelValue"],setup(e,{emit:r}){const i=e;t.useCssVars(f=>({"6582e90e":e.width,"310b3edf":e.height}));const B=t.ref(!1),D=t.computed(()=>{const f={color:i.boxValueColor,"font-family":i.fontFamily,height:i.boxWidthAndHeight,width:i.boxWidthAndHeight,minWidth:i.boxWidthAndHeight,"border-radius":i.boxBorderRadius,"margin-top":i.boxMarginTop};return B.value?(f["background-color"]=i.boxBackgroundColor,f.border=`solid ${i.boxBorderWidth} ${i.boxBackgroundColor}`):f.border=`solid ${i.boxBorderWidth} ${i.boxBorderColor}`,f}),c=t.computed(()=>({"font-family":i.boxValueFontFamily,"font-size":i.boxValueFontSize,color:i.boxValueColor,"line-height":1})),g=t.computed(()=>{const f={color:i.labelColor,"font-family":i.fontFamily,"font-size":i.labelFontSize,"white-space":i.labelWhiteSpace,"text-align":i.boxPosition==="top"||i.boxPosition==="bottom"?"center":i.boxPosition};return(i.boxPosition==="left"||i.boxPosition==="right")&&(f[`margin-${i.boxPosition}`]=i.isBoxOnly?"0":i.teamsIds?"8px":"10px"),f});t.watch(()=>i.modelValue,f=>{f!==B.value&&(B.value=f)},{immediate:!0});function a(){i.avoidInteraction||!B.value&&i.avoidToCheck||(B.value=!B.value,r("update:modelValue",B.value))}function y(f){return`${{}.TEAM_LOGOS_URL||"https://az755631.vo.msecnd.net/teams-80/"}${f}.png`}return(f,n)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["checkbox",`box-${e.boxPosition}`]),onClick:a},[t.createElementVNode("div",{class:"checkbox__box",style:t.normalizeStyle(D.value)},[B.value?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[i.boxValue?(t.openBlock(),t.createElementBlock("div",{key:0,class:"checkbox__box__value",style:t.normalizeStyle(c.value)},t.toDisplayString(e.boxValue),5)):(t.openBlock(),t.createElementBlock("div",G5t,[(t.openBlock(),t.createElementBlock("svg",H5t,[t.createElementVNode("path",{d:"M9.77994 1.70133L4.10994 7.37133C3.96994 7.51133 3.77994 7.59133 3.57994 7.59133C3.37994 7.59133 3.18994 7.51133 3.04994 7.37133L0.219941 4.54133C-0.0700586 4.25133 -0.0700586 3.77133 0.219941 3.48133C0.509941 3.19133 0.989941 3.19133 1.27994 3.48133L3.57994 5.78133L8.71994 0.641328C9.00994 0.351328 9.48994 0.351328 9.77994 0.641328C10.0699 0.931328 10.0699 1.40133 9.77994 1.70133Z",fill:e.boxValueColor},null,8,W5t)]))]))],64)):t.createCommentVNode("",!0)],4),e.teamsIds&&e.teamsIds.length?(t.openBlock(),t.createElementBlock("div",q5t,[t.createElementVNode("div",Y5t,[t.createElementVNode("img",{src:y(e.teamsIds[0]),alt:""},null,8,X5t)]),t.createElementVNode("div",Z5t,[t.createElementVNode("img",{src:y(e.teamsIds[1]),alt:""},null,8,J5t)])])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"checkbox__label",style:t.normalizeStyle(g.value)},t.toDisplayString(e.label),5)],2))}},Is=U5t(K5t,[["__scopeId","data-v-bcf3bcc6"]]),ml=(e,r)=>{const i=e.__vccOpts||e;for(const[B,D]of r)i[B]=D;return i},Q5t={class:"container"},e4t={key:0,width:"11",height:"2",viewBox:"0 0 11 2",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t4t=["fill"],a4t={key:1,width:"11",height:"11",viewBox:"0 0 11 11",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n4t=["fill"],r4t={__name:"IconExpand",props:{height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},isExpanded:{type:Boolean,default:!1},expandIconColor:{type:String,default:"white"},collapseIconColor:{type:String,default:"#D9D9D9"}},setup(e){return t.useCssVars(r=>({"563e5242":e.width,a529e9a4:e.height})),(r,i)=>(t.openBlock(),t.createElementBlock("div",Q5t,[e.isExpanded?(t.openBlock(),t.createElementBlock("svg",e4t,[t.createElementVNode("rect",{width:"11",height:"1.7",fill:e.collapseIconColor},null,8,t4t)])):(t.openBlock(),t.createElementBlock("svg",a4t,[t.createElementVNode("path",{d:"M11 6.28571H6.28571V11H4.71429V6.28571H0V4.71429H4.71429V0H6.28571V4.71429H11V6.28571Z",fill:e.expandIconColor},null,8,n4t)]))]))}},k1=ml(r4t,[["__scopeId","data-v-166b6226"]]),v_=e=>(t.pushScopeId("data-v-4df743e3"),e=e(),t.popScopeId(),e),i4t={class:"productivity"},o4t={class:"productivity__body__offensive"},s4t={class:"productivity__body__title"},l4t={class:"productivity__body__title__info"},c4t={class:"number-of-categories"},d4t={class:"productivity__body__categories"},u4t={class:"productivity__body__defensive-possession"},h4t={class:"productivity__body__title"},p4t={class:"productivity__body__title__info"},f4t={class:"number-of-categories"},m4t={class:"productivity__body__categories"},g4t={class:"productivity__body__title"},y4t={class:"productivity__body__title__info"},v4t={class:"number-of-categories"},_4t={class:"productivity__body__categories"},b4t={class:"productivity__footer"},x4t={class:"productivity__footer__offenses"},w4t=v_(()=>t.createElementVNode("div",{class:"productivity__footer__offenses__title"}," ¿Debemos quitarle puntos a jugadores que hayan cometido las siguientes infracciones? ",-1)),k4t={class:"productivity__footer__offenses__table"},C4t=v_(()=>t.createElementVNode("div",{class:"productivity__footer__offenses__table__row"},[t.createElementVNode("div"),t.createElementVNode("div",null,"Si"),t.createElementVNode("div",null,"No")],-1)),S4t={class:"productivity__footer__offenses__table__row has-bottom-border has-padding"},T4t=v_(()=>t.createElementVNode("div",{class:"productivity__footer__offenses__table__row__text"},"Faltas cometidas",-1)),E4t={class:"productivity__footer__offenses__table__row has-bottom-border has-padding"},A4t=v_(()=>t.createElementVNode("div",{class:"productivity__footer__offenses__table__row__text"},"Tarjetas amarillas",-1)),M4t={class:"productivity__footer__offenses__table__row has-padding"},I4t=v_(()=>t.createElementVNode("div",{class:"productivity__footer__offenses__table__row__text"},"Tarjetas rojas",-1)),P4t={__name:"TemplateProductivity",props:{componentWidth:{type:Number,default:0},productivityCategories:{type:Object,required:!0},numberOfCategoriesSelected:{type:Number,default:0},areMaxCategoriesReached:{type:Boolean,default:!1},isExpansionMode:{type:Boolean,default:!1},fontFamily:{type:String,default:"'Poppins-Regular'"}},emits:["update:offensesConditions"],setup(e,{emit:r}){const i=e,B=t.ref(!1),D=t.ref(!1),c=t.ref(!1),g=t.ref({areYellowCardsSelected:!1,areRedCardsSelected:!1,areFoulsCommittedSelected:!1}),a=t.computed(()=>({"--template-columns":i.isExpansionMode?"1fr":"1fr 1fr"})),y=t.computed(()=>i.productivityCategories.offensive.categories.reduce((p,l)=>(l.isSelected&&p++,p),0)),f=t.computed(()=>i.productivityCategories.defensive.categories.reduce((p,l)=>(l.isSelected&&p++,p),0)),n=t.computed(()=>i.productivityCategories.possession.categories.reduce((p,l)=>(l.isSelected&&p++,p),0));t.watch(()=>i.productivityCategories,p=>{g.value.areYellowCardsSelected=p.offensesConditions.areYellowCardsSelected,g.value.areRedCardsSelected=p.offensesConditions.areRedCardsSelected,g.value.areFoulsCommittedSelected=p.offensesConditions.areFoulsCommittedSelected},{deep:!0,immediate:!0}),t.watch(g,p=>{r("update:offensesConditions",p)},{deep:!0,immediate:!0});function v(p,l){l.isSelected=p,setTimeout(()=>{l.priority=i.numberOfCategoriesSelected},10)}function _(p){p==="offensive"?B.value=!B.value:p==="defensive"?D.value=!D.value:p==="possession"&&(c.value=!c.value)}return(p,l)=>(t.openBlock(),t.createElementBlock("div",i4t,[t.createElementVNode("div",{class:"productivity__body",style:t.normalizeStyle(a.value)},[t.createElementVNode("div",o4t,[t.createElementVNode("div",s4t,[t.createElementVNode("div",l4t,[t.createElementVNode("span",null,t.toDisplayString(e.productivityCategories.offensive.title),1),t.createElementVNode("span",c4t,"("+t.toDisplayString(y.value)+")",1)]),t.createElementVNode("div",{class:"productivity__body__title__expand-button",onClick:l[0]||(l[0]=o=>_("offensive"))},[t.withDirectives(t.createVNode(k1,{"is-expanded":B.value},null,8,["is-expanded"]),[[t.vShow,e.isExpansionMode]])])]),t.withDirectives(t.createElementVNode("div",d4t,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.productivityCategories.offensive.categories,o=>(t.openBlock(),t.createElementBlock("div",{key:o.id,class:"productivity__checkbox"},[t.createVNode(t.unref(Is),{label:o.name,fontFamily:e.fontFamily,"model-value":o.isSelected,"avoid-to-check":e.areMaxCategoriesReached,"box-value":o.priority||0,"onUpdate:modelValue":s=>v(s,o)},null,8,["label","fontFamily","model-value","avoid-to-check","box-value","onUpdate:modelValue"])]))),128))],512),[[t.vShow,!e.isExpansionMode||B.value]])]),t.createElementVNode("div",u4t,[t.createElementVNode("div",h4t,[t.createElementVNode("div",p4t,[t.createElementVNode("span",null,t.toDisplayString(e.productivityCategories.defensive.title),1),t.createElementVNode("span",f4t,"("+t.toDisplayString(f.value)+")",1)]),t.createElementVNode("div",{class:"productivity__body__title__expand-button",onClick:l[1]||(l[1]=o=>_("defensive"))},[t.withDirectives(t.createVNode(k1,{"is-expanded":D.value},null,8,["is-expanded"]),[[t.vShow,e.isExpansionMode]])])]),t.withDirectives(t.createElementVNode("div",m4t,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.productivityCategories.defensive.categories,o=>(t.openBlock(),t.createElementBlock("div",{key:o.id,class:"productivity__checkbox"},[t.createVNode(t.unref(Is),{label:o.name,fontFamily:e.fontFamily,"model-value":o.isSelected,"avoid-to-check":e.areMaxCategoriesReached,"box-value":o.priority||0,"onUpdate:modelValue":s=>v(s,o)},null,8,["label","fontFamily","model-value","avoid-to-check","box-value","onUpdate:modelValue"])]))),128))],512),[[t.vShow,!e.isExpansionMode||D.value]]),t.createElementVNode("div",g4t,[t.createElementVNode("div",y4t,[t.createElementVNode("span",null,t.toDisplayString(e.productivityCategories.possession.title),1),t.createElementVNode("span",v4t,"("+t.toDisplayString(n.value)+")",1)]),t.createElementVNode("div",{class:"productivity__body__title__expand-button",onClick:l[2]||(l[2]=o=>_("possession"))},[t.withDirectives(t.createVNode(k1,{"is-expanded":c.value},null,8,["is-expanded"]),[[t.vShow,e.isExpansionMode]])])]),t.withDirectives(t.createElementVNode("div",_4t,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.productivityCategories.possession.categories,o=>(t.openBlock(),t.createElementBlock("div",{key:o.id,class:"productivity__checkbox"},[t.createVNode(t.unref(Is),{label:o.name,fontFamily:e.fontFamily,"model-value":o.isSelected,"avoid-to-check":e.areMaxCategoriesReached,"box-value":o.priority||0,"onUpdate:modelValue":s=>v(s,o)},null,8,["label","fontFamily","model-value","avoid-to-check","box-value","onUpdate:modelValue"])]))),128))],512),[[t.vShow,!e.isExpansionMode||c.value]])])],4),t.createElementVNode("div",b4t,[t.createElementVNode("div",x4t,[w4t,t.createElementVNode("div",k4t,[C4t,t.createElementVNode("div",S4t,[T4t,t.createElementVNode("div",null,[t.createVNode(t.unref(Is),{"model-value":g.value.areFoulsCommittedSelected,"avoid-interaction":g.value.areFoulsCommittedSelected,"is-box-only":"","onUpdate:modelValue":l[3]||(l[3]=o=>g.value.areFoulsCommittedSelected=o)},null,8,["model-value","avoid-interaction"])]),t.createElementVNode("div",null,[t.createVNode(t.unref(Is),{"model-value":!g.value.areFoulsCommittedSelected,"avoid-interaction":!g.value.areFoulsCommittedSelected,"is-box-only":"","onUpdate:modelValue":l[4]||(l[4]=o=>g.value.areFoulsCommittedSelected=!o)},null,8,["model-value","avoid-interaction"])])]),t.createElementVNode("div",E4t,[A4t,t.createElementVNode("div",null,[t.createVNode(t.unref(Is),{"model-value":g.value.areYellowCardsSelected,"avoid-interaction":g.value.areYellowCardsSelected,"is-box-only":"","onUpdate:modelValue":l[5]||(l[5]=o=>g.value.areYellowCardsSelected=o)},null,8,["model-value","avoid-interaction"])]),t.createElementVNode("div",null,[t.createVNode(t.unref(Is),{"model-value":!g.value.areYellowCardsSelected,"avoid-interaction":!g.value.areYellowCardsSelected,"is-box-only":"","onUpdate:modelValue":l[6]||(l[6]=o=>g.value.areYellowCardsSelected=!o)},null,8,["model-value","avoid-interaction"])])]),t.createElementVNode("div",M4t,[I4t,t.createElementVNode("div",null,[t.createVNode(t.unref(Is),{"model-value":g.value.areRedCardsSelected,"avoid-interaction":g.value.areRedCardsSelected,"is-box-only":"","onUpdate:modelValue":l[7]||(l[7]=o=>g.value.areRedCardsSelected=o)},null,8,["model-value","avoid-interaction"])]),t.createElementVNode("div",null,[t.createVNode(t.unref(Is),{"model-value":!g.value.areRedCardsSelected,"avoid-interaction":!g.value.areRedCardsSelected,"is-box-only":"","onUpdate:modelValue":l[8]||(l[8]=o=>g.value.areRedCardsSelected=!o)},null,8,["model-value","avoid-interaction"])])])])])])]))}},B4t=ml(P4t,[["__scopeId","data-v-4df743e3"]]),_4=e=>(t.pushScopeId("data-v-9a3af80d"),e=e(),t.popScopeId(),e),N4t={class:"details__header"},z4t=_4(()=>t.createElementVNode("div",{class:"details__header__title"},"Jugando como",-1)),O4t={class:"details__header__checkbox"},F4t={class:"details__body"},L4t={class:"details__body__playing-as"},D4t=["onClick"],R4t={class:"details__header"},V4t=_4(()=>t.createElementVNode("div",{class:"details__header__title"},[t.createTextVNode(" En: "),t.createElementVNode("span",{class:"details__header__title-sm"},"(Elige el lapso de tiempo)")],-1)),$4t={class:"details__header__checkbox"},j4t={class:"details__body"},U4t=_4(()=>t.createElementVNode("div",{class:"details__body__title"},"1er tiempo",-1)),G4t={class:"details__body__game-section"},H4t=["onClick"],W4t={class:"details__body"},q4t=_4(()=>t.createElementVNode("div",{class:"details__body__title"},"2do tiempo",-1)),Y4t={class:"details__body__game-section"},X4t=["onClick"],Z4t={__name:"TemplateDetails",props:{isPlayingAsHidden:{type:Boolean,default:!1},playingAs:{type:Array,default:()=>[{name:"Local",isSelected:!0},{name:"Visitante",isSelected:!0}]},gameSections:{type:Array,default:()=>[{text:"0-15",value:1,isSelected:!0},{text:"16-30",value:2,isSelected:!0},{text:"31-45",value:3,isSelected:!0},{text:"46-60",value:4,isSelected:!0},{text:"61-75",value:5,isSelected:!0},{text:"76-90",value:6,isSelected:!0}]},fontFamily:{type:String,default:"'Poppins-Regular'"},buttonsBackgroundColor:{type:String,default:"rgba(255, 255, 255, 0)"},buttonsBackgroundColorActive:{type:String,default:"rgba(203, 238, 107, 0.05)"},buttonsTextColor:{type:String,default:"rgba(255, 255, 255, 0.8)"},buttonsTextColorActive:{type:String,default:"rgba(255, 255, 255, 1)"},buttonsBorderColor:{type:String,default:"#8ea2ab"},buttonsBorderColorActive:{type:String,default:"#cbee6b"},buttonsBorderWidth:{type:String,default:"0.8px"},buttonsBorderWidthActive:{type:String,default:"1px"},buttonsBorderRadius:{type:String,default:"4px"}},setup(e){const r=e;t.useCssVars(n=>({"35aa5eb4":e.buttonsBackgroundColor,"7765f8c7":e.buttonsTextColor,"5b6eef4b":e.buttonsBorderWidth,"5a57f0e8":e.buttonsBorderColor,a0a4b168:e.buttonsBackgroundColorActive,"349872ad":e.buttonsTextColorActive,76477631:e.buttonsBorderWidthActive,"39de0e0e":e.buttonsBorderColorActive}));const i=t.computed(()=>r.playingAs.every(n=>n.isSelected)),B=t.computed(()=>r.gameSections.every(n=>n.isSelected)),D=t.computed(()=>r.gameSections.reduce((n,v)=>(v.value<=3?n.firstHalf.push(v):n.secondHalf.push(v),n),{firstHalf:[],secondHalf:[]})),c=t.computed(()=>({"--border-radius-first-button":`${r.buttonsBorderRadius} 0 0 ${r.buttonsBorderRadius}`,"--border-radius-last-button":`0 ${r.buttonsBorderRadius} ${r.buttonsBorderRadius} 0`}));function g(n){n?r.playingAs.forEach(v=>{v.isSelected=!0}):r.playingAs.forEach((v,_)=>{v.isSelected=_===0})}function a(n){r.playingAs.filter(v=>v.isSelected).length===1&&n.isSelected||(n.isSelected=!n.isSelected)}function y(n){r.gameSections.filter(v=>v.isSelected).length===1&&n.isSelected||(n.isSelected=!n.isSelected)}function f(n){n?r.gameSections.forEach(v=>{v.isSelected=!0}):r.gameSections.forEach((v,_)=>{v.isSelected=_===0})}return(n,v)=>(t.openBlock(),t.createElementBlock("div",{class:"details",style:t.normalizeStyle(c.value)},[t.withDirectives(t.createElementVNode("div",N4t,[z4t,t.createElementVNode("div",O4t,[t.createVNode(t.unref(Is),{label:"Todos",fontFamily:e.fontFamily,"model-value":i.value,"onUpdate:modelValue":g},null,8,["fontFamily","model-value"])])],512),[[t.vShow,!e.isPlayingAsHidden]]),t.withDirectives(t.createElementVNode("div",F4t,[t.createElementVNode("div",L4t,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r.playingAs,(_,p)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${p}`,class:t.normalizeClass(["details__body__button",{active:_.isSelected}]),onClick:l=>a(_)},t.toDisplayString(_.name),11,D4t))),128))])],512),[[t.vShow,!e.isPlayingAsHidden]]),t.createElementVNode("div",R4t,[V4t,t.createElementVNode("div",$4t,[t.createVNode(t.unref(Is),{label:"Todos",fontFamily:e.fontFamily,"model-value":B.value,"onUpdate:modelValue":f},null,8,["fontFamily","model-value"])])]),t.createElementVNode("div",j4t,[U4t,t.createElementVNode("div",G4t,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(D.value.firstHalf,(_,p)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${p}`,class:t.normalizeClass(["details__body__button",{active:_.isSelected}]),onClick:l=>y(_)},t.toDisplayString(_.text),11,H4t))),128))])]),t.createElementVNode("div",W4t,[q4t,t.createElementVNode("div",Y4t,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(D.value.secondHalf,(_,p)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${p}`,class:t.normalizeClass(["details__body__button",{active:_.isSelected}]),onClick:l=>y(_)},t.toDisplayString(_.text),11,X4t))),128))])])],4))}},J4t=ml(Z4t,[["__scopeId","data-v-9a3af80d"]]),K4t={class:"scroll-container"},Q4t={__name:"ScrollContainer",props:{width:{type:String,default:"100%"},height:{type:String,default:"100%"}},setup(e){return t.useCssVars(r=>({"6aab424d":e.height,39848040:e.width})),(r,i)=>(t.openBlock(),t.createElementBlock("div",K4t,[t.renderSlot(r.$slots,"default",{},void 0,!0)]))}},VH=ml(Q4t,[["__scopeId","data-v-218f5976"]]),e6t={class:"tournaments"},t6t={class:"tournaments__tournament"},a6t={__name:"TemplateTournaments",props:{tournaments:{type:Array,default:()=>[]},fontFamily:{type:String,default:"'Poppins-Regular'"}},emits:["change-filters-selected","update:filters"],setup(e,{emit:r}){const i=e,B=t.ref(!1),D=t.computed(()=>i.tournaments.filter(g=>g.isSelected).length);t.watch(()=>i.tournaments,g=>{const a=g.filter(y=>y.isSelected);B.value=a.length===g.length,r("change-filters-selected",a.length),r("update:filters",i.tournaments)},{immediate:!0,deep:!0});function c(g){i.tournaments.forEach((a,y)=>{a.isSelected=g||(y!==0?g:!0)})}return(g,a)=>(t.openBlock(),t.createElementBlock("div",e6t,[t.createVNode(VH,{height:"200px"},{default:t.withCtx(()=>[t.createElementVNode("div",t6t,[t.createVNode(t.unref(Is),{"model-value":B.value,label:"Todas las ligas",fontFamily:e.fontFamily,width:"100%","onUpdate:modelValue":c},null,8,["model-value","fontFamily"])]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.tournaments,y=>(t.openBlock(),t.createElementBlock("div",{key:y.id||y._id,class:"tournaments__tournament"},[t.createVNode(t.unref(Is),{modelValue:y.isSelected,"onUpdate:modelValue":f=>y.isSelected=f,label:y.name,fontFamily:e.fontFamily,width:"100%","avoid-interaction":D.value===1&&y.isSelected},null,8,["modelValue","onUpdate:modelValue","label","fontFamily","avoid-interaction"])]))),128))]),_:1})]))}},n6t=ml(a6t,[["__scopeId","data-v-590d8ab3"]]),er={PLAYS:"plays",PRODUCTIVITY:"productivity",FIELD:"field",UNIVERSE:"universe",DETAILS:"details",TOURNAMENTS:"tournaments",PERSONAL_DATA:"personalData",PLAYS_TYPES:"playsTypes",GOLSTATS:"golstats",DISTANCE:"distance",RESULTS:"results",RESULTS_BY_TIME:"resultsByTime",VIDEOS:"videos",GAMES:"games",TAKEN_CORNERS:"takenCorners",HOW_WAS_CORNER:"howWasCorner",ZONE:"zone",WHAT_HAPPENED:"whatHappened"},r6t={key:0,class:"plays-golstats__placeholder"},i6t=["onClick"],o6t={key:0,class:"plays-golstats__item__value"},s6t={class:"plays-golstats__item__text"},l6t={class:"plays-golstats__item__svg"},c6t={width:"10",height:"8",viewBox:"0 0 10 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},d6t=["fill"],u6t={__name:"TemplatePlaysTypeAndGolstats",props:{height:{type:String,default:"fit-content"},type:{type:String,default:""},categories:{type:Array,default:()=>[]},svgColor:{type:String,default:"#CBEE6B"},svgWidth:{type:Number,default:10},svgHeight:{type:Number,default:8}},emits:["change-filters-selected","update:filters"],setup(e,{emit:r}){const i=e,B=t.computed(()=>({"--grid-template-columns":i.type===er.PLAYS_TYPES?"1fr min-content":"min-content 1fr min-content","--svg-width":`${i.svgWidth}px`,"--svg-height":`${i.svgHeight}px`}));t.watch(()=>i.categories,c=>{const g=c.filter(a=>a.isSelected);r("update:filters",g)},{immediate:!0,deep:!0});function D(c){c.isSelected||(i.categories.forEach(g=>{g.isSelected=!1}),c.isSelected=!0,i.type===er.GOLSTATS&&r("change-filters-selected",c.value))}return(c,g)=>(t.openBlock(),t.createElementBlock("div",{class:"plays-golstats",style:t.normalizeStyle(B.value)},[t.createVNode(VH,{height:e.height},{default:t.withCtx(()=>[e.type===t.unref(er).PLAYS_TYPES?(t.openBlock(),t.createElementBlock("div",r6t," Elige un tipo de jugada para filtrar: ")):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.categories,(a,y)=>(t.openBlock(),t.createElementBlock("div",{key:`k${y}`,class:"plays-golstats__item",onClick:f=>D(a)},[e.type===t.unref(er).GOLSTATS?(t.openBlock(),t.createElementBlock("div",o6t,t.toDisplayString(a.value),1)):t.createCommentVNode("",!0),t.createElementVNode("div",s6t,t.toDisplayString(a.name),1),t.createElementVNode("div",l6t,[t.withDirectives((t.openBlock(),t.createElementBlock("svg",c6t,[t.createElementVNode("path",{d:"M9.77994 1.70133L4.10994 7.37133C3.96994 7.51133 3.77994 7.59133 3.57994 7.59133C3.37994 7.59133 3.18994 7.51133 3.04994 7.37133L0.219941 4.54133C-0.0700586 4.25133 -0.0700586 3.77133 0.219941 3.48133C0.509941 3.19133 0.989941 3.19133 1.27994 3.48133L3.57994 5.78133L8.71994 0.641328C9.00994 0.351328 9.48994 0.351328 9.77994 0.641328C10.0699 0.931328 10.0699 1.40133 9.77994 1.70133Z",fill:e.svgColor},null,8,d6t)],512)),[[t.vShow,a.isSelected]])])],8,i6t))),128))]),_:1},8,["height"])],4))}},$H=ml(u6t,[["__scopeId","data-v-af3c1673"]]),h6t=(e,r)=>{const i=e.__vccOpts||e;for(const[B,D]of r)i[B]=D;return i},mE={props:{textRight:{type:String,default:""},textRightColor:{type:String,default:"#FFFFFF"},textRightFontFamily:{type:String,default:"Poppins-Regular"},textRightFontSize:{type:String,default:"13px"},placeholder:{type:String,default:"Ingresar valor"},value:String,inputType:{type:String,default:"text"},width:{type:String,default:"100%"},height:{type:String,default:"30px"},backgroundColor:{type:String,default:"#2e3b46"},borderRadius:{type:String,default:"10px"},border:{type:String,default:"1px solid #bdc1c4"},color:{type:String,default:"#FFFFFF"},placeholderColor:{type:String,default:"#bdc1c4"},font:{type:String,default:"Poppins-Regular"},fontSize:{type:String,default:"13px"},padding:{type:String,default:"11px"},isNumbersOnly:{type:Boolean,default:!1}},computed:{inputStyle(){return{width:this.width,height:this.height,backgroundColor:this.backgroundColor,borderRadius:this.borderRadius,border:this.border,color:this.color,fontFamily:this.font,fontSize:this.fontSize,placeholderColor:this.placeholderColor,paddingLeft:this.padding}}},methods:{updateInputValue(e){this.$emit("inputval",e.target.value)},onKeyDown(e){if(this.isNumbersOnly){const r=e.which?e.which:e.keyCode();r>31&&(r<48||r>57)&&e.preventDefault()}}}},jH=()=>{t.useCssVars(e=>({"53e1855a":e.textRightColor,da8ee600:e.textRightFontSize,"9fb876ba":e.textRightFontFamily}))},UH=mE.setup;mE.setup=UH?(e,r)=>(jH(),UH(e,r)):jH;const p6t={class:"input-container"},f6t=["type","placeholder","value"],m6t={class:"right-text"};function g6t(e,r,i,B,D,c){return t.openBlock(),t.createElementBlock("div",p6t,[t.createElementVNode("input",{type:i.inputType,placeholder:i.placeholder,value:i.value,style:t.normalizeStyle(c.inputStyle),onKeydown:r[0]||(r[0]=(...g)=>c.onKeyDown&&c.onKeyDown(...g)),onInput:r[1]||(r[1]=(...g)=>c.updateInputValue&&c.updateInputValue(...g))},null,44,f6t),t.createElementVNode("div",m6t,t.toDisplayString(i.textRight),1)])}const GH=h6t(mE,[["render",g6t],["__scopeId","data-v-b73049e7"]]),y6t=(e,r)=>{const i=e.__vccOpts||e;for(const[B,D]of r)i[B]=D;return i},gE={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))}}},HH=()=>{t.useCssVars(e=>({"1c960139":e.height,b2f635d8:e.borderWidthBtn,"06e99898":e.borderType,"55555c76":e.borderColor,"23b6d320":e.borderRadius,"22c97374":e.width,"22bb09fa":e.backgroundColor,c148da7c:e.cursorType,cce756fc:e.fontSize,cff98d60:e.fontStyle,"5123b3a5":e.fontFamily,"47bf58db":e.marginLeftStat,cadc8414:e.fontSizeStat}))},WH=gE.setup;gE.setup=WH?(e,r)=>(HH(),WH(e,r)):HH;const v6t=e=>(t.pushScopeId("data-v-fb269a1e"),e=e(),t.popScopeId(),e),_6t=["src"],b6t={key:1,class:"text"},x6t=["src"],w6t={class:"stats"},k6t=v6t(()=>t.createElementVNode("img",{class:"iconstats",src:"https://az755631.vo.msecnd.net/todoelfut/playdes.png"},null,-1)),C6t={class:"numstats"},S6t={class:"leyend"};function T6t(e,r,i,B,D,c){return t.openBlock(),t.createElementBlock("div",null,[i.type==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["button",D.status&&i.typeOnOff&&"button-active"]),style:t.normalizeStyle([c.customStyle,D.status&&i.typeOnOff&&c.customActive]),onClick:r[0]||(r[0]=(...g)=>c.btnClick&&c.btnClick(...g))},[i.icon&&i.iconPosition.toLowerCase()==="left"?(t.openBlock(),t.createElementBlock("img",{key:0,class:"icon",style:t.normalizeStyle({width:i.iconSize}),src:i.icon},null,12,_6t)):t.createCommentVNode("",!0),i.textValue?(t.openBlock(),t.createElementBlock("div",b6t,t.toDisplayString(i.textValue),1)):t.createCommentVNode("",!0),i.icon&&i.iconPosition.toLowerCase()==="right"?(t.openBlock(),t.createElementBlock("img",{key:2,class:"icon",style:t.normalizeStyle({width:i.iconSize}),src:i.icon},null,12,x6t)):t.createCommentVNode("",!0)],6)):t.createCommentVNode("",!0),i.type==1?(t.openBlock(),t.createElementBlock("div",{key:1,class:"button-target",onClick:r[1]||(r[1]=(...g)=>c.btnClick&&c.btnClick(...g))},[t.createElementVNode("div",w6t,[k6t,t.createElementVNode("div",C6t,t.toDisplayString(i.textStat),1)]),t.createElementVNode("div",S6t,t.toDisplayString(i.textCategory),1)])):t.createCommentVNode("",!0)])}const E6t=y6t(gE,[["render",T6t],["__scopeId","data-v-fb269a1e"]]),A6t={class:"gsc-dropdown__main-container__item-selected"},M6t=["height","width"],I6t=["stroke"],P6t={class:"gsc-dropdown__items-container"},B6t=["onClick"],N6t={key:0,class:"gsc-dropdown__items-footer"},p0={__name:"GSC-Dropdown",props:{modelValue:{type:[Object,Number,String],default:()=>null},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},fontSize:{type:String,default:"14px"},borderRadius:{type:Number,default:5},arrowHeight:{type:Number,default:24},arrowWidth:{type:Number,default:24},borderType:{type:String,default:"solid",validator:function(e){return["solid","dotted","dashed"].includes(e)}},borderWidth:{type:Number,default:1},borderColor:{type:String,default:"black"},backgroundColor:{type:String,default:"grey"},color:{type:String,default:"black"},arrowColor:{type:String,default:"#CBEE6B"},items:{type:Array,default:()=>[]},defaultItemByIndex:{type:Number,default:0},defaultItemByProp:{type:Object,default:null,validator:e=>["propName","value"].every(r=>r in e)},listBackgroundColor:{type:String,default:"white"},hoverBackgroundColor:{type:String,default:"#f1f1f1"},listItemPadding:{type:String,default:"10px 12px"},listHeight:{type:String,default:"fit-content"},listItemSelectedColor:{type:String,default:"white"},listItemSelectedBackgroundColor:{type:String,default:"#399cfd"},listItemColor:{type:String,default:"black"},listBorderRadius:{type:String,default:"0"},listBorderColor:{type:String,default:""},listBorderWidth:{type:Number,default:1},isListSameWidth:{type:Boolean,default:!1},isMultipleOption:{type:Boolean,default:!1},footerBorderColor:{type:String,default:"#626970"},footerBorderWidth:{type:Number,default:1},isFooterVisible:{type:Boolean,default:!1},isDisabled:{type:Boolean,default:!1},onlyFirstTime:{type:Boolean,default:!1}},emits:["input","click-ready","update:modelValue"],setup(e,{emit:r}){const i=e,B=t.ref({}),D=t.ref(null),c=t.ref(i.isMultipleOption?-1:0),g=t.ref(!1);t.watch(()=>i.items,(p,l)=>{if(!i.modelValue&&(!i.onlyFirstTime||!l||!l.length)&&p&&p.length){if(i.defaultItemByProp){const o=i.items.findIndex(s=>s[i.defaultItemByProp.propName]===i.defaultItemByProp.value);o!==-1?(c.value=o,B.value=p[o]):(c.value=0,B.value=p[0])}else B.value=p[i.defaultItemByIndex];r("input",B.value)}},{immediate:!0}),t.watch(()=>i.modelValue,p=>{if(p){const l=i.items.findIndex(o=>typeof p=="object"?JSON.stringify(o)===JSON.stringify(p):o===p);l!==-1&&(c.value=l,B.value=i.items[l],r("update:modelValue",B.value))}},{immediate:!0});const a=t.computed(()=>({height:i.height,width:i.width,backgroundColor:i.backgroundColor,borderRadius:`${i.borderRadius}px`,border:`${i.borderType} ${i.borderWidth}px ${i.borderColor}`,color:i.color,"--hover-background-color":i.hoverBackgroundColor,"--list-item-padding":i.listItemPadding,"--list-background-color":i.listBackgroundColor,"--list-height":i.listHeight,"--list-item-selected-color":i.listItemSelectedColor,"--list-item-selected-background-color":i.listItemSelectedBackgroundColor,"--list-item-color":i.listItemColor,"--list-border-radius":`${i.listBorderRadius}`,"--list-border-color":i.listBorderColor,"--list-width":i.isListSameWidth?i.width:"fit-content","--list-border-width":`${i.listBorderWidth}px`,"--footer-border":`${i.footerBorderWidth}px solid ${i.footerBorderColor}`,"--dropdown-opacity":i.isDisabled?"0.5":"1","--dropdown-cursor":i.isDisabled?"not-allowed":"pointer","--dropdown-font-size":i.fontSize?i.fontSize:"14px"})),y=t.computed(()=>({height:`${i.arrowHeight}px`,width:`${i.arrowWidth}px`}));function f(){i.isDisabled||(g.value=!g.value)}function n(p){D.value&&!D.value.contains(p.target)&&(g.value=!1)}function v(p,l){i.isMultipleOption?c.value=-1:(c.value=l,g.value=!1),B.value=p,r("input",B.value),r("update:modelValue",B.value)}function _(){g.value=!1,r("click-ready")}return t.onMounted(()=>{document.addEventListener("click",n)}),t.onBeforeMount(()=>{document.removeEventListener("click",n)}),(p,l)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"dropDown",ref:D,class:"gsc-dropdown",style:t.normalizeStyle(a.value)},[t.createElementVNode("div",{class:"gsc-dropdown__main-container",style:t.normalizeStyle({"padding-right":`${e.arrowWidth+8}px`}),onClick:f},[t.createElementVNode("div",A6t,[t.renderSlot(p.$slots,"default",{selectedItem:B.value})]),t.createElementVNode("div",{class:t.normalizeClass(["gsc-dropdown__main-container__icon",{"rotated-180":g.value}]),style:t.normalizeStyle(y.value)},[(t.openBlock(),t.createElementBlock("svg",{height:e.arrowHeight,width:e.arrowWidth,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M18.394 9.13501L13.1302 14.3988C12.5086 15.0204 11.4914 15.0204 10.8697 14.3988L5.60596 9.13501",stroke:e.arrowColor},null,8,I6t)],8,M6t))],6)],4),t.createVNode(t.Transition,null,{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("div",P6t,[t.createElementVNode("div",null,[t.createElementVNode("div",{class:"gsc-dropdown__items",style:t.normalizeStyle({"margin-top":`${i.borderWidth}px`})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(o,s)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["gsc-dropdown__items__item",{selected:s===c.value}]),key:s,onClick:u=>v(o,s)},[t.renderSlot(p.$slots,"availableItem",{item:o})],10,B6t))),128))],4),e.isFooterVisible?(t.openBlock(),t.createElementBlock("div",N6t,[t.createVNode(t.unref(E6t),{"text-value":"Listo","border-color":"#cbee6b","font-size":"12px",width:"72px",height:"22px","border-radius":"62px","border-width":.8,onClick:_})])):t.createCommentVNode("",!0)])],512),[[t.vShow,g.value]])]),_:3})],4))}},__={borderType:"solid",listBackgroundColor:"#2E3B46",listBorderColor:"rgba(255, 255, 255, 0.2)",listBorderRadius:"5px",height:"38px",borderWidth:.8,borderColor:"white",backgroundColor:"#2E3B46",color:"white",listItemColor:"white",listItemSelectedBackgroundColor:"#2E3B46",arrowColor:"#fff",width:"100%",listHeight:"200px",isListSameWidth:!0,isFooterVisible:!0,hoverBackgroundColor:"#2E3B46"},Gy=e=>(t.pushScopeId("data-v-b1fc2fa6"),e=e(),t.popScopeId(),e),z6t={class:"universe"},O6t=Gy(()=>t.createElementVNode("div",{class:"universe__sub-header"},"Escribe los minutos jugados",-1)),F6t=Gy(()=>t.createElementVNode("div",{class:"universe__label"},"Igual o mayor que:",-1)),L6t={class:"universe__inputs"},D6t={class:"universe__inputs__input"},R6t={class:"universe__inputs__checkbox"},V6t=Gy(()=>t.createElementVNode("div",{class:"universe__sub-header"},"Escribe el % de minutos jugados contra el total posible",-1)),$6t=Gy(()=>t.createElementVNode("div",{class:"universe__label"},"Mayor que:",-1)),j6t={class:"universe__inputs"},U6t={class:"universe__inputs__input"},G6t={class:"universe__inputs__checkbox"},H6t=Gy(()=>t.createElementVNode("div",{class:"universe__sub-header"},"Selecciona el lapso de tiempo",-1)),W6t=Gy(()=>t.createElementVNode("div",{class:"universe__label"},"Considerando los últimos:",-1)),q6t={class:"universe__dropdown"},Y6t={class:"selected-item"},qH=11,X6t={__name:"TemplateUniverse",props:{universeFilters:{type:Object,default:()=>({minutesPlayed:0,percentMinutesPlayed:0,lastMonths:Array.from({length:24},(e,r)=>r+1),statistics:{totals:!0,averagePerGame:!1,averagePerMinute:!1}})},fontFamily:{type:String,default:"'Poppins-Regular'"}},emits:["update:universeFilters"],setup(e,{expose:r,emit:i}){const B=e,D=t.ref(!1),c=t.ref(!1),g=t.ref(!1),a=t.ref({statistics:{}});t.watch(()=>B.universeFilters,p=>{a.value={...p,lastMonths:p.selectedMonth?p.selectedMonth:p.lastMonths[qH],statistics:{...p.statistics}}},{deep:!0,immediate:!0}),t.watch(()=>a,p=>{D.value=!p.value.minutesPlayed||Number(p.value.minutesPlayed)===0,c.value=!p.value.percentMinutesPlayed||Number(p.value.percentMinutesPlayed)===0,g.value=!p.value.lastMonths||Number(p.value.lastMonths)===0,i("update:universeFilters",p)},{deep:!0,immediate:!0});function y(p){a.value.minutesPlayed=p}function f(p){a.value.percentMinutesPlayed=p}function n(p,l){switch(l){case"minutes":D.value=p,p&&(a.value.minutesPlayed=0);break;case"percent":c.value=p,p&&(a.value.percentMinutesPlayed=0);break;case"months":g.value=p,p&&(a.value.lastMonths=0);break}}function v(){a.value={...B.universeFilters,lastMonths:B.universeFilters.lastMonths[qH],statistics:{...B.universeFilters.statistics}}}function _(p){a.value.lastMonths=p}return r({resetFilters:v}),(p,l)=>(t.openBlock(),t.createElementBlock("div",z6t,[O6t,F6t,t.createElementVNode("div",L6t,[t.createElementVNode("div",D6t,[t.createVNode(t.unref(GH),{value:a.value.minutesPlayed,type:"text",inputmode:"numeric","border-radius":"4px",border:"solid 0.8px #8ea2ab","text-right":"Min","is-numbers-only":"",onInputval:y},null,8,["value"])]),t.createElementVNode("div",R6t,[t.createVNode(t.unref(Is),{modelValue:D.value,label:"Indistinto",fontFamily:e.fontFamily,"box-position":"right","onUpdate:modelValue":l[0]||(l[0]=o=>n(o,"minutes"))},null,8,["modelValue","fontFamily"])])]),V6t,$6t,t.createElementVNode("div",j6t,[t.createElementVNode("div",U6t,[t.createVNode(t.unref(GH),{value:a.value.percentMinutesPlayed,"input-type":"number","border-radius":"4px",border:"solid 0.8px #8ea2ab","text-right":"%","is-numbers-only":"",onInputval:f},null,8,["value"])]),t.createElementVNode("div",G6t,[t.createVNode(t.unref(Is),{modelValue:c.value,label:"Indistinto",fontFamily:e.fontFamily,"box-position":"right","onUpdate:modelValue":l[1]||(l[1]=o=>n(o,"percent"))},null,8,["modelValue","fontFamily"])])]),H6t,W6t,t.createElementVNode("div",q6t,[t.createVNode(t.unref(p0),t.mergeProps(t.unref(__),{items:e.universeFilters.lastMonths,"model-value":a.value.lastMonths,onInput:_}),{default:t.withCtx(({selectedItem:o})=>[t.createElementVNode("div",Y6t,t.toDisplayString(o)+" "+t.toDisplayString(o===1?"mes":"meses"),1)]),availableItem:t.withCtx(({item:o})=>[t.createElementVNode("div",null,t.toDisplayString(o)+" "+t.toDisplayString(o===1?"mes":"meses"),1)]),_:1},16,["items","model-value"])]),t.createCommentVNode("",!0),t.createCommentVNode("",!0)]))}},Z6t=ml(X6t,[["__scopeId","data-v-b1fc2fa6"]]),YH=(e,r)=>{const i=e.__vccOpts||e;for(const[B,D]of r)i[B]=D;return i},J6t={name:"MultiRangeSlider",props:{baseClassName:{type:String,default:"multi-range-slider"},min:{type:Number},max:{type:Number},minValue:{type:Number},maxValue:{type:Number},step:{type:Number,default:1},preventWheel:{type:Boolean,default:!1},ruler:{type:Boolean,default:!0},label:{type:Boolean,default:!0},labels:{type:Array},minCaption:{type:String},maxCaption:{type:String},rangeMargin:{type:Number}},data(){let e=this.labels||[],r=this.min===void 0?0:this.min,i=e.length?e.length-1:100,B=this.max===void 0?i:this.max,D=this.minValue===void 0?25:this.minValue;e.length&&this.minValue===void 0&&(D=1);let c=this.maxValue||75;if(e.length&&this.maxValue===void 0&&(c=e.length-2),B<=r)throw new Error("Invalid props min or max");if(D>c)throw new Error("Invalid props minValue or maxValue");let g=this.rangeMargin===void 0?this.step:this.rangeMargin,a=g%this.step;return a&&(g=g+this.step-a),{valueMin:D<r?r:D,valueMax:c>B?B:c,interVal:null,startX:null,mouseMoveCounter:null,barBox:null,barValue:0,rangeMarginValue:g}},methods:{onBarLeftClick(){this.valueMin-this.step>=this.minimum?this.valueMin-=this.step:this.valueMin=this.minimum},onInnerBarLeftClick(){this.valueMin+this.rangeMarginValue<this.valueMax&&(this.valueMin+=this.step)},onBarRightClick(){this.valueMax+this.step<=this.maximum?this.valueMax+=this.step:this.valueMax=this.maximum},onInnerBarRightClick(){this.valueMax-this.rangeMarginValue>this.valueMin&&(this.valueMax-=this.step)},onInputMinChange(e){let r=parseFloat(e.target.value);r<=this.valueMax-this.rangeMarginValue&&r>=this.minimum?this.valueMin=r:e.target.value=this.valueMin},onInputMaxChange(e){let r=parseFloat(e.target.value);r>=this.valueMin+this.rangeMarginValue&&r<=this.maximum?this.valueMax=r:e.target.value=this.valueMax},onLeftThumbMousedown(e){if(e.preventDefault(),this.startX=e.clientX,e.type==="touchstart")if(e.touches.length===1)this.startX=e.touches[0].clientX;else return;this.mouseMoveCounter=0,this.barValue=this.valueMin,this.barBox=e.target.parentNode.getBoundingClientRect(),document.addEventListener("mousemove",this.onLeftThumbMousemove),document.addEventListener("mouseup",this.onLeftThumbMouseup),document.addEventListener("touchmove",this.onLeftThumbMousemove),document.addEventListener("touchend",this.onLeftThumbMouseup)},onLeftThumbMousemove(e){this.mouseMoveCounter++;let r=e.clientX;e.type==="touchmove"&&(r=e.touches[0].clientX);let i=(r-this.startX)/this.barBox.width,B=this.barValue+(this.maximum-this.minimum)*i,D=B%this.step;B-=D,B<this.minimum?B=this.minimum:B>this.valueMax-this.rangeMarginValue&&(B=this.valueMax-this.rangeMarginValue),this.valueMin=B},onLeftThumbMouseup(){document.removeEventListener("mousemove",this.onLeftThumbMousemove),document.removeEventListener("mouseup",this.onLeftThumbMouseup),document.removeEventListener("touchmove",this.onLeftThumbMousemove),document.removeEventListener("touchend",this.onLeftThumbMouseup)},onRightThumbMousedown(e){if(e.preventDefault(),this.startX=e.clientX,e.type==="touchstart")if(e.touches.length===1)this.startX=e.touches[0].clientX;else return;this.mouseMoveCounter=0,this.barValue=this.valueMax,this.barBox=e.target.parentNode.getBoundingClientRect(),document.addEventListener("mousemove",this.onRightThumbMousemove),document.addEventListener("mouseup",this.onRightThumbMouseup),document.addEventListener("touchmove",this.onRightThumbMousemove),document.addEventListener("touchend",this.onRightThumbMouseup)},onRightThumbMousemove(e){this.mouseMoveCounter++;let r=e.clientX;e.type==="touchmove"&&(r=e.touches[0].clientX);let i=(r-this.startX)/this.barBox.width,B=this.barValue+(this.maximum-this.minimum)*i,D=B%this.step;B-=D,B<this.valueMin+this.rangeMarginValue?B=this.valueMin+this.rangeMarginValue:B>this.maximum&&(B=this.maximum),this.valueMax=B},onRightThumbMouseup(){document.removeEventListener("mousemove",this.onRightThumbMousemove),document.removeEventListener("mouseup",this.onRightThumbMouseup),document.removeEventListener("touchmove",this.onRightThumbMousemove),document.removeEventListener("touchend",this.onRightThumbMouseup)},onMouseWheel(e){if(this.preventWheel===!0||!e.shiftKey&&!e.ctrlKey)return;let r=this.step;e.deltaY<0&&(r=-r),e.shiftKey&&e.ctrlKey?this.valueMin+r>=this.minimum&&this.valueMax+r<=this.maximum&&(this.valueMin=this.valueMin+r,this.valueMax=this.valueMax+r):e.ctrlKey?(r=this.valueMax+r,r<this.valueMin+this.rangeMarginValue?r=this.valueMin+this.rangeMarginValue:r>this.maximum&&(r=this.maximum),this.valueMax=r):e.shiftKey&&(r=this.valueMin+r,r<this.minimum?r=this.minimum:r>this.valueMax-this.rangeMarginValue&&(r=this.valueMax-this.rangeMarginValue),this.valueMin=r)},triggerInput(){let e=0;this.step.toString().includes(".")&&(e=2);let r={min:this.minimum,max:this.maximum,minValue:parseFloat(this.valueMin.toFixed(e)),maxValue:parseFloat(this.valueMax.toFixed(e))};this.$emit("input",r)}},computed:{minimum(){return this.min===void 0?0:this.min},maximum(){let e=this.labels||[],r=e.length?e.length-1:100;return this.max===void 0?r:this.max},stepCount(){let e=this.labels||[];return e.length?e.length-1:Math.floor((this.maximum-this.minimum)/this.step)},subStepCount(){return(this.labels||[]).length&&this.step>1?(this.maximum-this.minimum)/this.step:0},barMin(){return(this.valueMin-this.minimum)/(this.maximum-this.minimum)*100},barMax(){return 100-(this.valueMax-this.minimum)/(this.maximum-this.minimum)*100},barMinVal(){let e=0;return this.step.toString().includes(".")&&(e=2),(this.valueMin||0).toFixed(e)},barMaxVal(){let e=0;return this.step.toString().includes(".")&&(e=2),(this.valueMax||100).toFixed(e)},scaleLabels(){let e=this.labels||[];return e.length===0&&(e=[],e.push(this.minimum),e.push(this.maximum)),e}},watch:{valueMin(){this.triggerInput()},valueMax(){this.triggerInput()},minValue(e){this.valueMin=e<this.minimum?this.minimum:e},maxValue(e){this.valueMax=e>this.maximum?this.maximum:e}},mounted(){}},K6t={class:"bar"},Q6t=["min","max","step","value"],e8t={class:"caption"},t8t={class:"min-caption"},a8t={class:"bar-inner"},n8t=["min","max","step","value"],r8t={class:"caption"},i8t={class:"max-caption"},o8t={key:0,class:"ruler"},s8t={key:1,class:"sub-ruler"},l8t={key:2,class:"labels"};function c8t(e,r,i,B,D,c){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass([i.baseClassName,D.rangeMarginValue===0?"zero-ranage-margin":""]),onMousewheel:r[10]||(r[10]=t.withModifiers((...g)=>c.onMouseWheel&&c.onMouseWheel(...g),["prevent","stop"]))},[t.createElementVNode("div",K6t,[t.createElementVNode("div",{class:"bar-left",style:t.normalizeStyle({width:c.barMin+"%"}),onClick:r[0]||(r[0]=(...g)=>c.onBarLeftClick&&c.onBarLeftClick(...g))},null,4),t.createElementVNode("input",{class:"input-type-range input-type-range-min",type:"range",min:c.minimum,max:c.maximum,step:i.step,value:D.valueMin,onInput:r[1]||(r[1]=t.withModifiers((...g)=>c.onInputMinChange&&c.onInputMinChange(...g),["stop","prevent"]))},null,40,Q6t),t.createElementVNode("div",{class:"thumb thumb-left",onMousedown:r[2]||(r[2]=(...g)=>c.onLeftThumbMousedown&&c.onLeftThumbMousedown(...g)),onTouchstart:r[3]||(r[3]=(...g)=>c.onLeftThumbMousedown&&c.onLeftThumbMousedown(...g))},[t.createElementVNode("div",e8t,[t.createElementVNode("span",t8t,t.toDisplayString(i.minCaption||c.barMinVal),1)])],32),t.createElementVNode("div",a8t,[t.createElementVNode("div",{class:"bar-inner-left",onClick:r[4]||(r[4]=(...g)=>c.onInnerBarLeftClick&&c.onInnerBarLeftClick(...g))}),t.createElementVNode("div",{class:"bar-inner-right",onClick:r[5]||(r[5]=(...g)=>c.onInnerBarRightClick&&c.onInnerBarRightClick(...g))})]),t.createElementVNode("input",{class:"input-type-range input-type-range-max",type:"range",min:c.minimum,max:c.maximum,step:i.step,value:D.valueMax,onInput:r[6]||(r[6]=t.withModifiers((...g)=>c.onInputMaxChange&&c.onInputMaxChange(...g),["stop","prevent"]))},null,40,n8t),t.createElementVNode("div",{class:"thumb thumb-right",onMousedown:r[7]||(r[7]=(...g)=>c.onRightThumbMousedown&&c.onRightThumbMousedown(...g)),onTouchstart:r[8]||(r[8]=(...g)=>c.onRightThumbMousedown&&c.onRightThumbMousedown(...g))},[t.createElementVNode("div",r8t,[t.createElementVNode("span",i8t,t.toDisplayString(i.maxCaption||c.barMaxVal),1)])],32),t.createElementVNode("div",{class:"bar-right",style:t.normalizeStyle({width:c.barMax+"%"}),onClick:r[9]||(r[9]=(...g)=>c.onBarRightClick&&c.onBarRightClick(...g))},null,4)]),i.ruler?(t.openBlock(),t.createElementBlock("div",o8t,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(c.stepCount,g=>(t.openBlock(),t.createElementBlock("div",{key:g,class:"ruler-rule"}))),128))])):t.createCommentVNode("",!0),c.subStepCount?(t.openBlock(),t.createElementBlock("div",s8t,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(c.subStepCount,g=>(t.openBlock(),t.createElementBlock("div",{key:g,class:"ruler-sub-rule"}))),128))])):t.createCommentVNode("",!0),i.label?(t.openBlock(),t.createElementBlock("div",l8t,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(c.scaleLabels,g=>(t.openBlock(),t.createElementBlock("div",{class:"label",key:g},t.toDisplayString(g),1))),128))])):t.createCommentVNode("",!0)],34)}const d8t=YH(J6t,[["render",c8t]]),yE={components:{MultiRangeSlider:d8t},props:{minLimit:{type:Number,default:10},maxLimit:{type:Number,default:100},minValue:{type:Number,default:10},maxValue:{type:Number,default:100},height:{type:String,default:"150px"},borderRadius:{type:String,default:"6px"},borderType:{type:String,default:"solid"},borderWidth:{type:Number,default:2},borderColor:{type:String,default:"#d9d9d9"},fontColor:{type:String,default:"#FFFFFF"},fontSize:{type:String,default:"16px"},fontFamily:{type:String,default:"Poppins-Regular"},fontFamilyValue:{type:String,default:"Poppins-Medium"},fontColorValue:{type:String,default:"#FFFFFF"},fontSizeValue:{type:String,default:"20px"},backgroundIndicador:{type:String,default:"rgb(22, 233, 40)"},heightIndicador:{type:String,default:"15px"},widthIndicador:{type:String,default:"15px"},marginTopIndicador:{type:String,default:"-8px"},borderColorIndicador:{type:String,default:"#FFFFFF"},borderWidthIndicador:{type:String,default:"3px"},lineInRangeColor:{type:String,default:"rgb(22, 233, 40)"},lineOutRangeColor:{type:String,default:"#c7c7c7"},minSuffix:{type:String,default:""},maxSuffix:{type:String,default:""}},data(){return{minValueLocal:0,maxValueLocal:0}},computed:{customStyle(){return{height:this.height,borderRadius:this.borderRadius,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`}},customStyleText(){return{color:this.fontColor,fontSize:this.fontSize,fontFamily:`${this.fontFamily} !important`}},customStyleValue(){return{color:this.fontColorValue,fontSize:this.fontSizeValue,fontFamily:`${this.fontFamilyValue} !important`}}},watch:{minValue:{handler(e){this.minValueLocal=e},immediate:!0},maxValue:{handler(e){this.maxValueLocal=e},immediate:!0}},methods:{onInput(e){this.minValueLocal=e.minValue,this.maxValueLocal=e.maxValue,this.$emit("input",e)}}},XH=()=>{t.useCssVars(e=>({"318dc560":e.lineOutRangeColor,fcb35722:e.lineInRangeColor,"3edd517e":e.backgroundIndicador,"19ee7a09":e.widthIndicador,"482e6b68":e.heightIndicador,"48824d56":e.borderWidthIndicador,a51d4f50:e.borderColorIndicador,deb3b7b0:e.marginTopIndicador}))},ZH=yE.setup;yE.setup=ZH?(e,r)=>(XH(),ZH(e,r)):XH;const u8t={class:"center"},h8t={class:"bar-ref"},p8t={class:"bar-ref-element-left"},f8t={class:"bar-ref-element-right"};function m8t(e,r,i,B,D,c){const g=t.resolveComponent("MultiRangeSlider");return t.openBlock(),t.createElementBlock("div",{class:"custom-range-slider",style:t.normalizeStyle(c.customStyle)},[t.createElementVNode("div",u8t,[t.createElementVNode("div",h8t,[t.createElementVNode("div",p8t,[t.createElementVNode("div",{class:"text",style:t.normalizeStyle(c.customStyleText)},"De:",4),t.createElementVNode("div",{class:"value",style:t.normalizeStyle(c.customStyleValue)},t.toDisplayString(D.minValueLocal)+t.toDisplayString(i.minSuffix),5)]),t.createElementVNode("div",f8t,[t.createElementVNode("div",{class:"text",style:t.normalizeStyle(c.customStyleText)},"A:",4),t.createElementVNode("div",{class:"value",style:t.normalizeStyle(c.customStyleValue)},t.toDisplayString(D.maxValueLocal)+t.toDisplayString(i.maxSuffix),5)])]),t.createVNode(g,{baseClassName:"multi-range-slider",min:i.minLimit,max:i.maxLimit,step:1,ruler:!1,label:!1,"min-value":D.minValueLocal,"max-value":D.maxValueLocal,"range-margin":0,onInput:c.onInput},null,8,["min","max","min-value","max-value","onInput"])])],4)}const JH=YH(yE,[["render",m8t]]),g8t={class:"template-distance"},y8t={__name:"TemplateDistance",props:{distance:{type:Object,default:()=>({minLimit:5,maxLimit:30,minValue:5,maxValue:30})}},emits:["update:distanceFilters"],setup(e,{emit:r}){const i=e,B=t.ref({minValue:0,maxValue:0,minLimit:0,maxLimit:0});t.watch(()=>B.value,c=>{r("update:distanceFilters",c)},{deep:!0}),t.watch(()=>i.distance,c=>{B.value.minValue=c.minValue,B.value.maxValue=c.maxValue,B.value.minLimit=c.minLimit,B.value.maxLimit=c.maxLimit},{immediate:!0,deep:!0});function D(c){B.value.minValue=c.minValue,B.value.maxValue=c.maxValue}return(c,g)=>(t.openBlock(),t.createElementBlock("div",g8t,[t.createVNode(t.unref(JH),{"border-width":"0","background-color":"#0D1D29",height:"30px","font-size-value":"12px","font-size":"12px","line-in-range-color":"white","background-indicador":"#CBEE6B","min-limit":B.value.minLimit,"max-limit":B.value.maxLimit,"min-value":B.value.minValue,"max-value":B.value.maxValue,"min-suffix":"m","max-suffix":"+",onInput:D},null,8,["min-limit","max-limit","min-value","max-value"])]))}},v8t=e=>(t.pushScopeId("data-v-be32e3d8"),e=e(),t.popScopeId(),e),_8t={class:"template-games"},b8t={class:"template-games__header"},x8t=v8t(()=>t.createElementVNode("div",{class:"template-games__header__title"},"Partidos jugados:",-1)),w8t={class:"template-games__header__all-games"},k8t={__name:"TemplateGames",props:{gamesFilters:{type:Array,default:()=>[]}},emits:["update:gamesFilters"],setup(e,{emit:r}){const i=e,B=t.ref(!1),D=t.computed(()=>i.gamesFilters.filter(g=>g.isSelected).length);t.watch(()=>i.gamesFilters,g=>{r("update:gamesFilters",g)},{deep:!0}),t.watch(D,g=>{B.value=g===i.gamesFilters.length,r("update:gamesFilters",i.gamesFilters)},{immediate:!0});const c=g=>{g?i.gamesFilters.forEach(a=>{a.isSelected=g}):i.gamesFilters.forEach((a,y)=>{a.isSelected=y===0}),B.value=g};return(g,a)=>(t.openBlock(),t.createElementBlock("div",_8t,[t.createElementVNode("div",b8t,[x8t,t.createElementVNode("div",w8t,[t.createVNode(t.unref(Is),{modelValue:B.value,label:"Todos","box-position":"right","font-family":"Roboto-Regular, sans-serif","label-font-size":"12px","onUpdate:modelValue":c},null,8,["modelValue"])])]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.gamesFilters,(y,f)=>(t.openBlock(),t.createElementBlock("div",{key:f,class:"template-games__game"},[t.createVNode(t.unref(Is),{modelValue:y.isSelected,"onUpdate:modelValue":n=>y.isSelected=n,label:y.label,"teams-ids":y.teamsIds,"avoid-interaction":D.value===1&&y.isSelected},null,8,["modelValue","onUpdate:modelValue","label","teams-ids","avoid-interaction"])]))),128))]))}},C8t=ml(k8t,[["__scopeId","data-v-be32e3d8"]]),S8t=(e,r)=>{const i=e.__vccOpts||e;for(const[B,D]of r)i[B]=D;return i},vE={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))}}},KH=()=>{t.useCssVars(e=>({"1c960139":e.height,b2f635d8:e.borderWidthBtn,"06e99898":e.borderType,"55555c76":e.borderColor,"23b6d320":e.borderRadius,"22c97374":e.width,"22bb09fa":e.backgroundColor,c148da7c:e.cursorType,cce756fc:e.fontSize,cff98d60:e.fontStyle,"5123b3a5":e.fontFamily,"47bf58db":e.marginLeftStat,cadc8414:e.fontSizeStat}))},QH=vE.setup;vE.setup=QH?(e,r)=>(KH(),QH(e,r)):KH;const T8t=e=>(t.pushScopeId("data-v-fb269a1e"),e=e(),t.popScopeId(),e),E8t=["src"],A8t={key:1,class:"text"},M8t=["src"],I8t={class:"stats"},P8t=T8t(()=>t.createElementVNode("img",{class:"iconstats",src:"https://az755631.vo.msecnd.net/todoelfut/playdes.png"},null,-1)),B8t={class:"numstats"},N8t={class:"leyend"};function z8t(e,r,i,B,D,c){return t.openBlock(),t.createElementBlock("div",null,[i.type==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["button",D.status&&i.typeOnOff&&"button-active"]),style:t.normalizeStyle([c.customStyle,D.status&&i.typeOnOff&&c.customActive]),onClick:r[0]||(r[0]=(...g)=>c.btnClick&&c.btnClick(...g))},[i.icon&&i.iconPosition.toLowerCase()==="left"?(t.openBlock(),t.createElementBlock("img",{key:0,class:"icon",style:t.normalizeStyle({width:i.iconSize}),src:i.icon},null,12,E8t)):t.createCommentVNode("",!0),i.textValue?(t.openBlock(),t.createElementBlock("div",A8t,t.toDisplayString(i.textValue),1)):t.createCommentVNode("",!0),i.icon&&i.iconPosition.toLowerCase()==="right"?(t.openBlock(),t.createElementBlock("img",{key:2,class:"icon",style:t.normalizeStyle({width:i.iconSize}),src:i.icon},null,12,M8t)):t.createCommentVNode("",!0)],6)):t.createCommentVNode("",!0),i.type==1?(t.openBlock(),t.createElementBlock("div",{key:1,class:"button-target",onClick:r[1]||(r[1]=(...g)=>c.btnClick&&c.btnClick(...g))},[t.createElementVNode("div",I8t,[P8t,t.createElementVNode("div",B8t,t.toDisplayString(i.textStat),1)]),t.createElementVNode("div",N8t,t.toDisplayString(i.textCategory),1)])):t.createCommentVNode("",!0)])}const _E=S8t(vE,[["render",z8t],["__scopeId","data-v-fb269a1e"]]),O8t=(e,r)=>{const i=e.__vccOpts||e;for(const[B,D]of r)i[B]=D;return i},bE={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))}}},eW=()=>{t.useCssVars(e=>({"1c960139":e.height,b2f635d8:e.borderWidthBtn,"06e99898":e.borderType,"55555c76":e.borderColor,"23b6d320":e.borderRadius,"22c97374":e.width,"22bb09fa":e.backgroundColor,c148da7c:e.cursorType,cce756fc:e.fontSize,cff98d60:e.fontStyle,"5123b3a5":e.fontFamily,"47bf58db":e.marginLeftStat,cadc8414:e.fontSizeStat}))},tW=bE.setup;bE.setup=tW?(e,r)=>(eW(),tW(e,r)):eW;const F8t=e=>(t.pushScopeId("data-v-fb269a1e"),e=e(),t.popScopeId(),e),L8t=["src"],D8t={key:1,class:"text"},R8t=["src"],V8t={class:"stats"},$8t=F8t(()=>t.createElementVNode("img",{class:"iconstats",src:"https://az755631.vo.msecnd.net/todoelfut/playdes.png"},null,-1)),j8t={class:"numstats"},U8t={class:"leyend"};function G8t(e,r,i,B,D,c){return t.openBlock(),t.createElementBlock("div",null,[i.type==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["button",D.status&&i.typeOnOff&&"button-active"]),style:t.normalizeStyle([c.customStyle,D.status&&i.typeOnOff&&c.customActive]),onClick:r[0]||(r[0]=(...g)=>c.btnClick&&c.btnClick(...g))},[i.icon&&i.iconPosition.toLowerCase()==="left"?(t.openBlock(),t.createElementBlock("img",{key:0,class:"icon",style:t.normalizeStyle({width:i.iconSize}),src:i.icon},null,12,L8t)):t.createCommentVNode("",!0),i.textValue?(t.openBlock(),t.createElementBlock("div",D8t,t.toDisplayString(i.textValue),1)):t.createCommentVNode("",!0),i.icon&&i.iconPosition.toLowerCase()==="right"?(t.openBlock(),t.createElementBlock("img",{key:2,class:"icon",style:t.normalizeStyle({width:i.iconSize}),src:i.icon},null,12,R8t)):t.createCommentVNode("",!0)],6)):t.createCommentVNode("",!0),i.type==1?(t.openBlock(),t.createElementBlock("div",{key:1,class:"button-target",onClick:r[1]||(r[1]=(...g)=>c.btnClick&&c.btnClick(...g))},[t.createElementVNode("div",V8t,[$8t,t.createElementVNode("div",j8t,t.toDisplayString(i.textStat),1)]),t.createElementVNode("div",U8t,t.toDisplayString(i.textCategory),1)])):t.createCommentVNode("",!0)])}const H8t=O8t(bE,[["render",G8t],["__scopeId","data-v-fb269a1e"]]),W8t=(e,r)=>{const i=e.__vccOpts||e;for(const[B,D]of r)i[B]=D;return i},q8t={key:1},Y8t={width:"10",height:"8",viewBox:"0 0 10 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},X8t=["fill"],Z8t={key:0,class:"checkbox__teams"},J8t={class:"checkbox__teams__logo"},K8t=["src"],Q8t={class:"checkbox__teams__logo"},ekt=["src"],tkt={__name:"GSC-Checkbox",props:{width:{type:String,default:"fit-content"},height:{type:String,default:"fit-content"},label:{type:String,default:""},labelWhiteSpace:{type:String,default:"normal"},labelColor:{type:String,default:"white"},fontFamily:{type:String,default:"sans-serif"},labelFontSize:{type:String,default:"12px"},modelValue:{type:Boolean,default:!1},justifyContent:{type:String,default:"flex-start"},alignItems:{type:String,default:"center"},boxBackgroundColor:{type:String,default:"#CBEE6B"},boxValueColor:{type:String,default:"#0d1d29"},boxValue:{type:[String,Number],default:""},boxPosition:{type:String,default:"left",validator(e){return["left","right","top","bottom"].includes(e)}},boxMarginTop:{type:String,default:"0.2em"},boxWidthAndHeight:{type:String,default:"16px"},boxBorderColor:{type:String,default:"#969da2"},boxBorderWidth:{type:String,default:"2px"},boxBorderRadius:{type:String,default:"4px"},boxValueFontSize:{type:String,default:"10px"},boxValueFontFamily:{type:String,default:"sans-serif"},avoidInteraction:{type:Boolean,default:!1},avoidToCheck:{type:Boolean,default:!1},isBoxOnly:{type:Boolean,default:!1},teamsIds:{type:Array,default:()=>null}},emits:["update:modelValue"],setup(e,{emit:r}){const i=e;t.useCssVars(f=>({"6582e90e":e.width,"310b3edf":e.height}));const B=t.ref(!1),D=t.computed(()=>{const f={color:i.boxValueColor,"font-family":i.fontFamily,height:i.boxWidthAndHeight,width:i.boxWidthAndHeight,minWidth:i.boxWidthAndHeight,"border-radius":i.boxBorderRadius,"margin-top":i.boxMarginTop};return B.value?(f["background-color"]=i.boxBackgroundColor,f.border=`solid ${i.boxBorderWidth} ${i.boxBackgroundColor}`):f.border=`solid ${i.boxBorderWidth} ${i.boxBorderColor}`,f}),c=t.computed(()=>({"font-family":i.boxValueFontFamily,"font-size":i.boxValueFontSize,color:i.boxValueColor,"line-height":1})),g=t.computed(()=>{const f={color:i.labelColor,"font-family":i.fontFamily,"font-size":i.labelFontSize,"white-space":i.labelWhiteSpace,"text-align":i.boxPosition==="top"||i.boxPosition==="bottom"?"center":i.boxPosition};return(i.boxPosition==="left"||i.boxPosition==="right")&&(f[`margin-${i.boxPosition}`]=i.isBoxOnly?"0":i.teamsIds?"8px":"10px"),f});t.watch(()=>i.modelValue,f=>{f!==B.value&&(B.value=f)},{immediate:!0});function a(){i.avoidInteraction||!B.value&&i.avoidToCheck||(B.value=!B.value,r("update:modelValue",B.value))}function y(f){return`${{}.TEAM_LOGOS_URL||"https://az755631.vo.msecnd.net/teams-80/"}${f}.png`}return(f,n)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["checkbox",`box-${e.boxPosition}`]),onClick:a},[t.createElementVNode("div",{class:"checkbox__box",style:t.normalizeStyle(D.value)},[B.value?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[i.boxValue?(t.openBlock(),t.createElementBlock("div",{key:0,class:"checkbox__box__value",style:t.normalizeStyle(c.value)},t.toDisplayString(e.boxValue),5)):(t.openBlock(),t.createElementBlock("div",q8t,[(t.openBlock(),t.createElementBlock("svg",Y8t,[t.createElementVNode("path",{d:"M9.77994 1.70133L4.10994 7.37133C3.96994 7.51133 3.77994 7.59133 3.57994 7.59133C3.37994 7.59133 3.18994 7.51133 3.04994 7.37133L0.219941 4.54133C-0.0700586 4.25133 -0.0700586 3.77133 0.219941 3.48133C0.509941 3.19133 0.989941 3.19133 1.27994 3.48133L3.57994 5.78133L8.71994 0.641328C9.00994 0.351328 9.48994 0.351328 9.77994 0.641328C10.0699 0.931328 10.0699 1.40133 9.77994 1.70133Z",fill:e.boxValueColor},null,8,X8t)]))]))],64)):t.createCommentVNode("",!0)],4),e.teamsIds&&e.teamsIds.length?(t.openBlock(),t.createElementBlock("div",Z8t,[t.createElementVNode("div",J8t,[t.createElementVNode("img",{src:y(e.teamsIds[0]),alt:""},null,8,K8t)]),t.createElementVNode("div",Q8t,[t.createElementVNode("img",{src:y(e.teamsIds[1]),alt:""},null,8,ekt)])])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"checkbox__label",style:t.normalizeStyle(g.value)},t.toDisplayString(e.label),5)],2))}},akt=W8t(tkt,[["__scopeId","data-v-bcf3bcc6"]]),nkt=(e,r)=>{const i=e.__vccOpts||e;for(const[B,D]of r)i[B]=D;return i},xE={components:{GSCButton:H8t,GSCCheckbox:akt},data(){return{update:0,all:!1,refreshBtn14:0,refreshBtn24:0,refreshBtn34:0,refreshBtn44:0,sectors:Array.from({length:16},(e,r)=>({sector:r+1,active:!1})),lastUpdatedValue:[]}},props:{backgroundColor:{type:String,default:"#2e3b46"},heightContainer:{type:String,default:"340px"},widthContainer:{type:String,default:"455px"},heightField:{type:Number,default:230},widthField:{type:Number,default:350},heightFieldGrid:{type:String,default:"230px"},widthFieldGrid:{type:String,default:"350px"},backgroundSectorActive:{type:String,default:"#cbee6b"},backgroundSectorDisabled:{type:String,default:"#2e3b46"},borderWidth:{type:Number,default:1},opacitySector:{type:Number,default:.5},borderColor:{type:String,default:"#FFFFFF"},colorLineField:{type:String,default:"#bfc2c5"},borderWidthLineField:{type:Number,default:2},value:{type:Array,default:()=>[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16]},title:{type:String,default:"Pase(s) desde la(s) zona(s):"},titleFontSize:{type:String,default:"14px"}},watch:{value:{deep:!0,immediate:!0,handler(e){const r=e.sort();JSON.stringify(r)!==JSON.stringify(this.lastUpdatedValue)&&(this.lastUpdatedValue=r,this.sectors.forEach((i,B)=>{i.active=e.includes(B+1),this.validateField(B)}),this.$emit("update:modelValue",e))}},sectors:{handler(e){var r=[];for(let i=0;i<e.length;i++)e[i].active&&r.push(i+1);this.$emit("update:modelValue",r)},deep:!0}},computed:{translx(){var e=0;return this.widthField>305?e=this.widthField-305:this.widthField==268&&(e=-36),e},transly(){var e=0;return this.heightField>195?(e=this.heightField-195,e=e/2):this.heightField==180&&(e=-7),e},translxcircle(){var e=0;return this.widthField>305?(e=this.widthField-305,e=e/2):this.widthField==268&&(e=-18),e}},methods:{clickAll(e){if(e){for(let r=0;r<this.sectors.length;r++)this.sectors[r].active=!0,this.validateField(r);this.status14=!0,this.status24=!0,this.status34=!0,this.status44=!0,this.refreshBtn14+=1,this.refreshBtn24+=1,this.refreshBtn34+=1,this.refreshBtn44+=1}else for(let r=0;r<this.sectors.length;r++)this.sectors[r].active=!1,this.validateField(r),this.status14=!1,this.status24=!1,this.status34=!1,this.status44=!1,this.refreshBtn14=0,this.refreshBtn24=0,this.refreshBtn34=0,this.refreshBtn44=0},selectSector(e){var r=0;this.sectors[e].active=!this.sectors[e].active;for(let i=0;i<this.sectors.length;i++)this.sectors[i].active&&(r+=1);r==0&&(this.sectors[e].active=!0),this.validateField(e)},btn14(e){this.sectors[0].active=e?this.sectors[0].active=!0:this.sectors[0].active=!1,this.sectors[1].active=e?this.sectors[1].active=!0:this.sectors[1].active=!1,this.sectors[2].active=e?this.sectors[2].active=!0:this.sectors[2].active=!1,this.sectors[3].active=e?this.sectors[3].active=!0:this.sectors[3].active=!1;var r=0;for(let i=0;i<this.sectors.length;i++)this.sectors[i].active&&(r+=1);r==0?(this.sectors[0].active=!0,this.sectors[1].active=!0,this.sectors[2].active=!0,this.sectors[3].active=!0,this.status14=!0,this.refreshBtn14+=1):this.status14=!1,r==16&&(this.all=!0,this.update+=1)},btn24(e){this.sectors[4].active=e?this.sectors[4].active=!0:this.sectors[4].active=!1,this.sectors[5].active=e?this.sectors[5].active=!0:this.sectors[5].active=!1,this.sectors[6].active=e?this.sectors[6].active=!0:this.sectors[6].active=!1,this.sectors[7].active=e?this.sectors[7].active=!0:this.sectors[7].active=!1;var r=0;for(let i=0;i<this.sectors.length;i++)this.sectors[i].active&&(r+=1);r==0?(this.sectors[4].active=!0,this.sectors[5].active=!0,this.sectors[6].active=!0,this.sectors[7].active=!0,this.status24=!0,this.refreshBtn24+=1):this.status24=!1,r==16&&(this.all=!0,this.update+=1)},btn34(e){this.sectors[8].active=e?this.sectors[8].active=!0:this.sectors[8].active=!1,this.sectors[9].active=e?this.sectors[9].active=!0:this.sectors[9].active=!1,this.sectors[10].active=e?this.sectors[10].active=!0:this.sectors[10].active=!1,this.sectors[11].active=e?this.sectors[11].active=!0:this.sectors[11].active=!1;var r=0;for(let i=0;i<this.sectors.length;i++)this.sectors[i].active&&(r+=1);r==0?(this.sectors[8].active=!0,this.sectors[9].active=!0,this.sectors[10].active=!0,this.sectors[11].active=!0,this.status34=!0,this.refreshBtn34+=1):this.status34=!1,r==16&&(this.all=!0,this.update+=1)},btn44(e){this.sectors[12].active=e?this.sectors[12].active=!0:this.sectors[12].active=!1,this.sectors[13].active=e?this.sectors[13].active=!0:this.sectors[13].active=!1,this.sectors[14].active=e?this.sectors[14].active=!0:this.sectors[14].active=!1,this.sectors[15].active=e?this.sectors[15].active=!0:this.sectors[15].active=!1;var r=0;for(let i=0;i<this.sectors.length;i++)this.sectors[i].active&&(r+=1);r==0?(this.sectors[12].active=!0,this.sectors[13].active=!0,this.sectors[14].active=!0,this.sectors[15].active=!0,this.status44=!0,this.refreshBtn44+=1):this.status44=!1,r==16&&(this.all=!0,this.update+=1)},validateField(e){(e===0||e===1||e===2||e===3)&&(this.status14=!!(this.sectors[0].active&&this.sectors[1].active&&this.sectors[2].active&&this.sectors[3].active)),(e===4||e===5||e===6||e===7)&&(this.status24=!!(this.sectors[4].active&&this.sectors[5].active&&this.sectors[6].active&&this.sectors[7].active)),(e===8||e===9||e===10||e===11)&&(this.status34=!!(this.sectors[8].active&&this.sectors[9].active&&this.sectors[10].active&&this.sectors[11].active)),(e===12||e===13||e===14||e===15)&&(this.status44=!!(this.sectors[12].active&&this.sectors[13].active&&this.sectors[14].active&&this.sectors[15].active)),this.all=!!(this.status14&&this.status34&&this.status24&&this.status44),this.update+=1,this.status14&&(this.refreshBtn14+=1),this.status24&&(this.refreshBtn24+=1),this.status34&&(this.refreshBtn34+=1),this.status44&&(this.refreshBtn44+=1)}}},aW=()=>{t.useCssVars(e=>({"4fe806fe":e.widthContainer,"91de7c52":e.heightContainer,"266afcdc":e.backgroundColor,"2b853536":e.titleFontSize,"986b6446":e.widthFieldGrid,"1af308b6":e.heightFieldGrid}))},nW=xE.setup;xE.setup=nW?(e,r)=>(aW(),nW(e,r)):aW;const rkt={class:"gsc-field"},ikt={class:"gsc-field__title-checked"},okt={class:"gsc-field__title-checked__title"},skt={class:"gsc-field__container-field"},lkt={class:"gsc-field__container-field__field"},ckt={width:"100%",height:"100%",fill:"#2e3b46",xmlns:"http://www.w3.org/2000/svg"},dkt=["stroke"],ukt=["stroke","stroke-width"],hkt=["stroke","stroke-width"],pkt=["stroke-width","stroke"],fkt=["fill","fill-opacity","stroke","stroke-width"],mkt=["fill","fill-opacity","stroke","stroke-width"],gkt=["fill","fill-opacity","stroke","stroke-width"],ykt=["fill","fill-opacity","stroke","stroke-width"],vkt=["fill","fill-opacity","stroke","stroke-width"],_kt=["fill","fill-opacity","stroke","stroke-width"],bkt=["fill","fill-opacity","stroke","stroke-width"],xkt=["fill","fill-opacity","stroke","stroke-width"],wkt=["fill","fill-opacity","stroke","stroke-width"],kkt=["fill","fill-opacity","stroke","stroke-width"],Ckt=["fill","fill-opacity","stroke","stroke-width"],Skt=["fill","fill-opacity","stroke","stroke-width"],Tkt=["fill","fill-opacity","stroke","stroke-width"],Ekt=["fill","fill-opacity","stroke","stroke-width"],Akt=["fill","fill-opacity","stroke","stroke-width"],Mkt=["fill","fill-opacity","stroke","stroke-width"],Ikt={class:"gsc-field__container-field__bar-buttons"};function Pkt(e,r,i,B,D,c){const g=t.resolveComponent("GSCCheckbox"),a=t.resolveComponent("GSCButton");return t.openBlock(),t.createElementBlock("div",rkt,[t.createElementVNode("div",ikt,[t.createElementVNode("div",okt,t.toDisplayString(i.title),1),t.createElementVNode("div",{class:"gsc-field__title-checked__check-cont",style:t.normalizeStyle(i.widthField>=350?"min-width: 123px":"")},[(t.openBlock(),t.createBlock(g,{label:i.widthField<350?"Todas":"Todas las zonas","font-family":"Poppins-Regular","box-value-font-family":"Poppins-Regular","box-position":"right","label-font-size":i.titleFontSize,"label-white-space":"nowrap","box-margin-top":"0.4em",value:D.all,key:D.update,"model-value":D.all,"onUpdate:modelValue":c.clickAll},null,8,["label","label-font-size","value","model-value","onUpdate:modelValue"]))],4)]),t.createElementVNode("div",skt,[t.createElementVNode("div",lkt,[(t.openBlock(),t.createElementBlock("svg",ckt,[t.createElementVNode("rect",{x:"1.5",y:"0.5",width:"100%",height:"100%",rx:"1.5",stroke:i.colorLineField},null,8,dkt),t.createElementVNode("path",{style:t.normalizeStyle("transform: translate("+c.translx+"px, "+c.transly+"px);"),d:"M303.597 39.9799H263.371C262.817 39.9799 262.369 40.4301 262.371 40.984L262.842 155.176C262.845 155.726 263.292 156.172 263.842 156.172H302.884",stroke:i.colorLineField,"stroke-width":i.borderWidthLineField,"stroke-linecap":"square"},null,12,ukt),t.createElementVNode("path",{style:t.normalizeStyle("transform: translateY("+c.transly+"px);"),class:"porteria1",d:"M1.09097 156.172L41.3162 156.172C41.8701 156.172 42.3185 155.722 42.3162 155.168L41.845 40.9758C41.8427 40.4252 41.3957 39.98 40.845 39.98L1.80338 39.98",stroke:i.colorLineField,"stroke-width":i.borderWidthLineField,"stroke-linecap":"square"},null,12,hkt),t.createElementVNode("path",{style:t.normalizeStyle("transform: translate("+c.translxcircle+"px, "+c.transly+"px);"),class:"circle",d:"M182.911 97.4512C182.911 113.726 169.44 126.936 152.801 126.936C136.162 126.936 122.691 113.726 122.691 97.4512C122.691 81.1767 136.162 67.9662 152.801 67.9662C169.44 67.9662 182.911 81.1767 182.911 97.4512Z","stroke-width":i.borderWidthLineField,stroke:i.colorLineField},null,12,pkt),t.createElementVNode("rect",{x:"0%",y:"0%",width:"25%",height:"25%",fill:D.sectors[0].active?i.backgroundSectorActive:i.backgroundSectorDisabled,"fill-opacity":i.opacitySector,stroke:i.borderColor,"stroke-width":i.borderWidth,onClick:r[0]||(r[0]=y=>c.selectSector(0))},null,8,fkt),t.createElementVNode("rect",{x:"0%",y:"25%",width:"25%",height:"25%",fill:D.sectors[1].active?i.backgroundSectorActive:i.backgroundSectorDisabled,"fill-opacity":i.opacitySector,stroke:i.borderColor,"stroke-width":i.borderWidth,onClick:r[1]||(r[1]=y=>c.selectSector(1))},null,8,mkt),t.createElementVNode("rect",{x:"0%",y:"50%",width:"25%",height:"25%",fill:D.sectors[2].active?i.backgroundSectorActive:i.backgroundSectorDisabled,"fill-opacity":i.opacitySector,stroke:i.borderColor,"stroke-width":i.borderWidth,onClick:r[2]||(r[2]=y=>c.selectSector(2))},null,8,gkt),t.createElementVNode("rect",{x:"0%",y:"75%",width:"25%",height:"25%",fill:D.sectors[3].active?i.backgroundSectorActive:i.backgroundSectorDisabled,"fill-opacity":i.opacitySector,stroke:i.borderColor,"stroke-width":i.borderWidth,onClick:r[3]||(r[3]=y=>c.selectSector(3))},null,8,ykt),t.createElementVNode("rect",{x:"25%",y:"0%",width:"25%",height:"25%",fill:D.sectors[4].active?i.backgroundSectorActive:i.backgroundSectorDisabled,"fill-opacity":i.opacitySector,stroke:i.borderColor,"stroke-width":i.borderWidth,onClick:r[4]||(r[4]=y=>c.selectSector(4))},null,8,vkt),t.createElementVNode("rect",{x:"25%",y:"25%",width:"25%",height:"25%",fill:D.sectors[5].active?i.backgroundSectorActive:i.backgroundSectorDisabled,"fill-opacity":i.opacitySector,stroke:i.borderColor,"stroke-width":i.borderWidth,onClick:r[5]||(r[5]=y=>c.selectSector(5))},null,8,_kt),t.createElementVNode("rect",{x:"25%",y:"50%",width:"25%",height:"25%",fill:D.sectors[6].active?i.backgroundSectorActive:i.backgroundSectorDisabled,"fill-opacity":i.opacitySector,stroke:i.borderColor,"stroke-width":i.borderWidth,onClick:r[6]||(r[6]=y=>c.selectSector(6))},null,8,bkt),t.createElementVNode("rect",{x:"25%",y:"75%",width:"25%",height:"25%",fill:D.sectors[7].active?i.backgroundSectorActive:i.backgroundSectorDisabled,"fill-opacity":i.opacitySector,stroke:i.borderColor,"stroke-width":i.borderWidth,onClick:r[7]||(r[7]=y=>c.selectSector(7))},null,8,xkt),t.createElementVNode("rect",{x:"50%",y:"0%",width:"25%",height:"25%",fill:D.sectors[8].active?i.backgroundSectorActive:i.backgroundSectorDisabled,"fill-opacity":i.opacitySector,stroke:i.borderColor,"stroke-width":i.borderWidth,onClick:r[8]||(r[8]=y=>c.selectSector(8))},null,8,wkt),t.createElementVNode("rect",{x:"50%",y:"25%",width:"25%",height:"25%",fill:D.sectors[9].active?i.backgroundSectorActive:i.backgroundSectorDisabled,"fill-opacity":i.opacitySector,stroke:i.borderColor,"stroke-width":i.borderWidth,onClick:r[9]||(r[9]=y=>c.selectSector(9))},null,8,kkt),t.createElementVNode("rect",{x:"50%",y:"50%",width:"25%",height:"25%",fill:D.sectors[10].active?i.backgroundSectorActive:i.backgroundSectorDisabled,"fill-opacity":i.opacitySector,stroke:i.borderColor,"stroke-width":i.borderWidth,onClick:r[10]||(r[10]=y=>c.selectSector(10))},null,8,Ckt),t.createElementVNode("rect",{x:"50%",y:"75%",width:"25%",height:"25%",fill:D.sectors[11].active?i.backgroundSectorActive:i.backgroundSectorDisabled,"fill-opacity":i.opacitySector,stroke:i.borderColor,"stroke-width":i.borderWidth,onClick:r[11]||(r[11]=y=>c.selectSector(11))},null,8,Skt),t.createElementVNode("rect",{x:"75%",y:"0%",width:"25%",height:"25%",fill:D.sectors[12].active?i.backgroundSectorActive:i.backgroundSectorDisabled,"fill-opacity":i.opacitySector,stroke:i.borderColor,"stroke-width":i.borderWidth,onClick:r[12]||(r[12]=y=>c.selectSector(12))},null,8,Tkt),t.createElementVNode("rect",{x:"75%",y:"25%",width:"25%",height:"25%",fill:D.sectors[13].active?i.backgroundSectorActive:i.backgroundSectorDisabled,"fill-opacity":i.opacitySector,stroke:i.borderColor,"stroke-width":i.borderWidth,onClick:r[13]||(r[13]=y=>c.selectSector(13))},null,8,Ekt),t.createElementVNode("rect",{x:"75%",y:"50%",width:"25%",height:"25%",fill:D.sectors[14].active?i.backgroundSectorActive:i.backgroundSectorDisabled,"fill-opacity":i.opacitySector,stroke:i.borderColor,"stroke-width":i.borderWidth,onClick:r[14]||(r[14]=y=>c.selectSector(14))},null,8,Akt),t.createElementVNode("rect",{x:"75%",y:"75%",width:"25%",height:"25%",fill:D.sectors[15].active?i.backgroundSectorActive:i.backgroundSectorDisabled,"fill-opacity":i.opacitySector,stroke:i.borderColor,"stroke-width":i.borderWidth,onClick:r[15]||(r[15]=y=>c.selectSector(15))},null,8,Mkt)]))]),t.createElementVNode("div",Ikt,[(t.openBlock(),t.createBlock(a,{"text-value":"1/4 tos","font-size":"12px",height:"26px",width:"65px","type-on-off":!0,"border-width":1,"font-color":"#bfc2c5","border-color":"#8c9399","border-radius":"4px","font-family":"Poppins-Medium","active-border-width":1,"background-color":"","active-background-color":"#cbee6b33",ref:"btn14",onStatus:c.btn14,key:D.refreshBtn14,value:e.status14},null,8,["onStatus","value"])),(t.openBlock(),t.createBlock(a,{"text-value":"2/4 tos","font-size":"12px",height:"26px",width:"65px","type-on-off":!0,"border-width":1,"font-color":"#bfc2c5","border-color":"#8c9399","border-radius":"4px","font-family":"Poppins-Medium","active-border-width":1,"background-color":"","active-background-color":"#cbee6b33",ref:"btn24",onStatus:c.btn24,key:D.refreshBtn24,value:e.status24},null,8,["onStatus","value"])),(t.openBlock(),t.createBlock(a,{"text-value":"3/4 tos","font-size":"12px",height:"26px",width:"65px","type-on-off":!0,"border-width":1,"font-color":"#bfc2c5","border-color":"#8c9399","border-radius":"4px","font-family":"Poppins-Medium","active-border-width":1,"background-color":"","active-background-color":"#cbee6b33",ref:"btn34",onStatus:c.btn34,key:D.refreshBtn34,value:e.status34},null,8,["onStatus","value"])),(t.openBlock(),t.createBlock(a,{"text-value":"4/4 tos","font-size":"12px",height:"26px",width:"65px","type-on-off":!0,"border-width":1,"font-color":"#bfc2c5","border-color":"#8c9399","border-radius":"4px","font-family":"Poppins-Medium","active-border-width":1,"background-color":"","active-background-color":"#cbee6b33",ref:"btn44",onStatus:c.btn44,key:D.refreshBtn44,value:e.status44},null,8,["onStatus","value"]))])])])}const rW=nkt(xE,[["render",Pkt],["__scopeId","data-v-b85699b8"]]),Bkt={class:"toggle-buttons__background"},Nkt=["onClick"],zkt={__name:"ToggleButtons",props:{buttons:{type:Array,required:!0},selectedButtonIndex:{type:Number,default:0},height:{type:String,default:"29px"},width:{type:String,default:"100%"},fontSize:{type:String,default:"12px"},fontFamily:{type:String,default:"Poppins-Medium"},borderRadius:{type:String,default:"8px"},mainBackgroundColor:{type:String,default:"#364448"},mainBorderColor:{type:String,default:"#9AA1A3"},mainBorderWidth:{type:String,default:"0.5px"},activeBorderColor:{type:String,default:"#cbee6b"},activeBorderWidth:{type:String,default:"1px"},activeBackgroundColor:{type:String,default:"#2e3b46"}},emits:["change"],setup(e,{emit:r}){const i=e;t.useCssVars(g=>({"0d588b39":e.height,"2a8da974":e.width,"6d34d30a":e.mainBackgroundColor,"3d50bf20":e.borderRadius,e8fc78a2:e.mainBorderWidth,eb2a7568:e.mainBorderColor,acdd84b6:e.fontFamily,"63d45e82":e.fontSize,b28ed67c:e.activeBorderWidth,b4bcd342:e.activeBorderColor,"7fa6e29d":e.activeBackgroundColor}));const B=t.ref(i.selectedButtonIndex),D=t.computed(()=>({"--grid-template-columns":`repeat(${i.buttons.length}, 1fr)`}));t.watch(()=>i.selectedButtonIndex,g=>{B.value=g}),t.watch(B,(g,a)=>{g!==a&&r("change",{index:g,button:i.buttons[g]})});function c(g){B.value=g}return(g,a)=>(t.openBlock(),t.createElementBlock("div",Bkt,[t.createElementVNode("div",{class:"toggle-buttons",style:t.normalizeStyle(D.value)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.buttons,(y,f)=>(t.openBlock(),t.createElementBlock("div",{key:`b${f}`,class:t.normalizeClass(["toggle-buttons__button",{active:B.value===f}]),onClick:n=>c(f)},t.toDisplayString(y.text||y),11,Nkt))),128))],4)]))}},Okt=ml(zkt,[["__scopeId","data-v-ac2af001"]]);function iW(e,r){return function(){return e.apply(r,arguments)}}const{toString:Fkt}=Object.prototype,{getPrototypeOf:wE}=Object,b4=(e=>r=>{const i=Fkt.call(r);return e[i]||(e[i]=i.slice(8,-1).toLowerCase())})(Object.create(null)),zf=e=>(e=e.toLowerCase(),r=>b4(r)===e),x4=e=>r=>typeof r===e,{isArray:Hy}=Array,b_=x4("undefined");function Lkt(e){return e!==null&&!b_(e)&&e.constructor!==null&&!b_(e.constructor)&&lp(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const oW=zf("ArrayBuffer");function Dkt(e){let r;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?r=ArrayBuffer.isView(e):r=e&&e.buffer&&oW(e.buffer),r}const Rkt=x4("string"),lp=x4("function"),sW=x4("number"),w4=e=>e!==null&&typeof e=="object",Vkt=e=>e===!0||e===!1,k4=e=>{if(b4(e)!=="object")return!1;const r=wE(e);return(r===null||r===Object.prototype||Object.getPrototypeOf(r)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},$kt=zf("Date"),jkt=zf("File"),Ukt=zf("Blob"),Gkt=zf("FileList"),Hkt=e=>w4(e)&&lp(e.pipe),Wkt=e=>{let r;return e&&(typeof FormData=="function"&&e instanceof FormData||lp(e.append)&&((r=b4(e))==="formdata"||r==="object"&&lp(e.toString)&&e.toString()==="[object FormData]"))},qkt=zf("URLSearchParams"),Ykt=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function x_(e,r,{allOwnKeys:i=!1}={}){if(e===null||typeof e>"u")return;let B,D;if(typeof e!="object"&&(e=[e]),Hy(e))for(B=0,D=e.length;B<D;B++)r.call(null,e[B],B,e);else{const c=i?Object.getOwnPropertyNames(e):Object.keys(e),g=c.length;let a;for(B=0;B<g;B++)a=c[B],r.call(null,e[a],a,e)}}function lW(e,r){r=r.toLowerCase();const i=Object.keys(e);let B=i.length,D;for(;B-- >0;)if(D=i[B],r===D.toLowerCase())return D;return null}const cW=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),dW=e=>!b_(e)&&e!==cW;function kE(){const{caseless:e}=dW(this)&&this||{},r={},i=(B,D)=>{const c=e&&lW(r,D)||D;k4(r[c])&&k4(B)?r[c]=kE(r[c],B):k4(B)?r[c]=kE({},B):Hy(B)?r[c]=B.slice():r[c]=B};for(let B=0,D=arguments.length;B<D;B++)arguments[B]&&x_(arguments[B],i);return r}const Xkt=(e,r,i,{allOwnKeys:B}={})=>(x_(r,(D,c)=>{i&&lp(D)?e[c]=iW(D,i):e[c]=D},{allOwnKeys:B}),e),Zkt=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Jkt=(e,r,i,B)=>{e.prototype=Object.create(r.prototype,B),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:r.prototype}),i&&Object.assign(e.prototype,i)},Kkt=(e,r,i,B)=>{let D,c,g;const a={};if(r=r||{},e==null)return r;do{for(D=Object.getOwnPropertyNames(e),c=D.length;c-- >0;)g=D[c],(!B||B(g,e,r))&&!a[g]&&(r[g]=e[g],a[g]=!0);e=i!==!1&&wE(e)}while(e&&(!i||i(e,r))&&e!==Object.prototype);return r},Qkt=(e,r,i)=>{e=String(e),(i===void 0||i>e.length)&&(i=e.length),i-=r.length;const B=e.indexOf(r,i);return B!==-1&&B===i},e7t=e=>{if(!e)return null;if(Hy(e))return e;let r=e.length;if(!sW(r))return null;const i=new Array(r);for(;r-- >0;)i[r]=e[r];return i},t7t=(e=>r=>e&&r instanceof e)(typeof Uint8Array<"u"&&wE(Uint8Array)),a7t=(e,r)=>{const i=(e&&e[Symbol.iterator]).call(e);let B;for(;(B=i.next())&&!B.done;){const D=B.value;r.call(e,D[0],D[1])}},n7t=(e,r)=>{let i;const B=[];for(;(i=e.exec(r))!==null;)B.push(i);return B},r7t=zf("HTMLFormElement"),i7t=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,i,B){return i.toUpperCase()+B}),uW=(({hasOwnProperty:e})=>(r,i)=>e.call(r,i))(Object.prototype),o7t=zf("RegExp"),hW=(e,r)=>{const i=Object.getOwnPropertyDescriptors(e),B={};x_(i,(D,c)=>{let g;(g=r(D,c,e))!==!1&&(B[c]=g||D)}),Object.defineProperties(e,B)},s7t=e=>{hW(e,(r,i)=>{if(lp(e)&&["arguments","caller","callee"].indexOf(i)!==-1)return!1;const B=e[i];if(lp(B)){if(r.enumerable=!1,"writable"in r){r.writable=!1;return}r.set||(r.set=()=>{throw Error("Can not rewrite read-only method '"+i+"'")})}})},l7t=(e,r)=>{const i={},B=D=>{D.forEach(c=>{i[c]=!0})};return Hy(e)?B(e):B(String(e).split(r)),i},c7t=()=>{},d7t=(e,r)=>(e=+e,Number.isFinite(e)?e:r),CE="abcdefghijklmnopqrstuvwxyz",pW="0123456789",fW={DIGIT:pW,ALPHA:CE,ALPHA_DIGIT:CE+CE.toUpperCase()+pW},u7t=(e=16,r=fW.ALPHA_DIGIT)=>{let i="";const{length:B}=r;for(;e--;)i+=r[Math.random()*B|0];return i};function h7t(e){return!!(e&&lp(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const p7t=e=>{const r=new Array(10),i=(B,D)=>{if(w4(B)){if(r.indexOf(B)>=0)return;if(!("toJSON"in B)){r[D]=B;const c=Hy(B)?[]:{};return x_(B,(g,a)=>{const y=i(g,D+1);!b_(y)&&(c[a]=y)}),r[D]=void 0,c}}return B};return i(e,0)},f7t=zf("AsyncFunction"),m7t=e=>e&&(w4(e)||lp(e))&&lp(e.then)&&lp(e.catch),Ir={isArray:Hy,isArrayBuffer:oW,isBuffer:Lkt,isFormData:Wkt,isArrayBufferView:Dkt,isString:Rkt,isNumber:sW,isBoolean:Vkt,isObject:w4,isPlainObject:k4,isUndefined:b_,isDate:$kt,isFile:jkt,isBlob:Ukt,isRegExp:o7t,isFunction:lp,isStream:Hkt,isURLSearchParams:qkt,isTypedArray:t7t,isFileList:Gkt,forEach:x_,merge:kE,extend:Xkt,trim:Ykt,stripBOM:Zkt,inherits:Jkt,toFlatObject:Kkt,kindOf:b4,kindOfTest:zf,endsWith:Qkt,toArray:e7t,forEachEntry:a7t,matchAll:n7t,isHTMLForm:r7t,hasOwnProperty:uW,hasOwnProp:uW,reduceDescriptors:hW,freezeMethods:s7t,toObjectSet:l7t,toCamelCase:i7t,noop:c7t,toFiniteNumber:d7t,findKey:lW,global:cW,isContextDefined:dW,ALPHABET:fW,generateString:u7t,isSpecCompliantForm:h7t,toJSONObject:p7t,isAsyncFn:f7t,isThenable:m7t};function Nl(e,r,i,B,D){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",r&&(this.code=r),i&&(this.config=i),B&&(this.request=B),D&&(this.response=D)}Ir.inherits(Nl,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Ir.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const mW=Nl.prototype,gW={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{gW[e]={value:e}}),Object.defineProperties(Nl,gW),Object.defineProperty(mW,"isAxiosError",{value:!0}),Nl.from=(e,r,i,B,D,c)=>{const g=Object.create(mW);return Ir.toFlatObject(e,g,function(a){return a!==Error.prototype},a=>a!=="isAxiosError"),Nl.call(g,e.message,r,i,B,D),g.cause=e,g.name=e.name,c&&Object.assign(g,c),g};const g7t=null;function SE(e){return Ir.isPlainObject(e)||Ir.isArray(e)}function yW(e){return Ir.endsWith(e,"[]")?e.slice(0,-2):e}function vW(e,r,i){return e?e.concat(r).map(function(B,D){return B=yW(B),!i&&D?"["+B+"]":B}).join(i?".":""):r}function y7t(e){return Ir.isArray(e)&&!e.some(SE)}const v7t=Ir.toFlatObject(Ir,{},null,function(e){return/^is[A-Z]/.test(e)});function C4(e,r,i){if(!Ir.isObject(e))throw new TypeError("target must be an object");r=r||new FormData,i=Ir.toFlatObject(i,{metaTokens:!0,dots:!1,indexes:!1},!1,function(p,l){return!Ir.isUndefined(l[p])});const B=i.metaTokens,D=i.visitor||f,c=i.dots,g=i.indexes,a=(i.Blob||typeof Blob<"u"&&Blob)&&Ir.isSpecCompliantForm(r);if(!Ir.isFunction(D))throw new TypeError("visitor must be a function");function y(p){if(p===null)return"";if(Ir.isDate(p))return p.toISOString();if(!a&&Ir.isBlob(p))throw new Nl("Blob is not supported. Use a Buffer instead.");return Ir.isArrayBuffer(p)||Ir.isTypedArray(p)?a&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function f(p,l,o){let s=p;if(p&&!o&&typeof p=="object"){if(Ir.endsWith(l,"{}"))l=B?l:l.slice(0,-2),p=JSON.stringify(p);else if(Ir.isArray(p)&&y7t(p)||(Ir.isFileList(p)||Ir.endsWith(l,"[]"))&&(s=Ir.toArray(p)))return l=yW(l),s.forEach(function(u,d){!(Ir.isUndefined(u)||u===null)&&r.append(g===!0?vW([l],d,c):g===null?l:l+"[]",y(u))}),!1}return SE(p)?!0:(r.append(vW(o,l,c),y(p)),!1)}const n=[],v=Object.assign(v7t,{defaultVisitor:f,convertValue:y,isVisitable:SE});function _(p,l){if(!Ir.isUndefined(p)){if(n.indexOf(p)!==-1)throw Error("Circular reference detected in "+l.join("."));n.push(p),Ir.forEach(p,function(o,s){(!(Ir.isUndefined(o)||o===null)&&D.call(r,o,Ir.isString(s)?s.trim():s,l,v))===!0&&_(o,l?l.concat(s):[s])}),n.pop()}}if(!Ir.isObject(e))throw new TypeError("data must be an object");return _(e),r}function _W(e){const r={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(i){return r[i]})}function TE(e,r){this._pairs=[],e&&C4(e,this,r)}const bW=TE.prototype;bW.append=function(e,r){this._pairs.push([e,r])},bW.toString=function(e){const r=e?function(i){return e.call(this,i,_W)}:_W;return this._pairs.map(function(i){return r(i[0])+"="+r(i[1])},"").join("&")};function _7t(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function xW(e,r,i){if(!r)return e;const B=i&&i.encode||_7t,D=i&&i.serialize;let c;if(D?c=D(r,i):c=Ir.isURLSearchParams(r)?r.toString():new TE(r,i).toString(B),c){const g=e.indexOf("#");g!==-1&&(e=e.slice(0,g)),e+=(e.indexOf("?")===-1?"?":"&")+c}return e}const wW=class{constructor(){this.handlers=[]}use(r,i,B){return this.handlers.push({fulfilled:r,rejected:i,synchronous:B?B.synchronous:!1,runWhen:B?B.runWhen:null}),this.handlers.length-1}eject(r){this.handlers[r]&&(this.handlers[r]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(r){Ir.forEach(this.handlers,function(i){i!==null&&r(i)})}},kW={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},b7t=typeof URLSearchParams<"u"?URLSearchParams:TE,x7t=typeof FormData<"u"?FormData:null,w7t=typeof Blob<"u"?Blob:null,k7t={isBrowser:!0,classes:{URLSearchParams:b7t,FormData:x7t,Blob:w7t},protocols:["http","https","file","blob","url","data"]},CW=typeof window<"u"&&typeof document<"u",C7t=(e=>CW&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),S7t=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),T7t=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:CW,hasStandardBrowserEnv:C7t,hasStandardBrowserWebWorkerEnv:S7t},Symbol.toStringTag,{value:"Module"})),Of={...T7t,...k7t};function E7t(e,r){return C4(e,new Of.classes.URLSearchParams,Object.assign({visitor:function(i,B,D,c){return Of.isNode&&Ir.isBuffer(i)?(this.append(B,i.toString("base64")),!1):c.defaultVisitor.apply(this,arguments)}},r))}function A7t(e){return Ir.matchAll(/\w+|\[(\w*)]/g,e).map(r=>r[0]==="[]"?"":r[1]||r[0])}function M7t(e){const r={},i=Object.keys(e);let B;const D=i.length;let c;for(B=0;B<D;B++)c=i[B],r[c]=e[c];return r}function SW(e){function r(i,B,D,c){let g=i[c++];if(g==="__proto__")return!0;const a=Number.isFinite(+g),y=c>=i.length;return g=!g&&Ir.isArray(D)?D.length:g,y?(Ir.hasOwnProp(D,g)?D[g]=[D[g],B]:D[g]=B,!a):((!D[g]||!Ir.isObject(D[g]))&&(D[g]=[]),r(i,B,D[g],c)&&Ir.isArray(D[g])&&(D[g]=M7t(D[g])),!a)}if(Ir.isFormData(e)&&Ir.isFunction(e.entries)){const i={};return Ir.forEachEntry(e,(B,D)=>{r(A7t(B),D,i,0)}),i}return null}function I7t(e,r,i){if(Ir.isString(e))try{return(r||JSON.parse)(e),Ir.trim(e)}catch(B){if(B.name!=="SyntaxError")throw B}return(i||JSON.stringify)(e)}const EE={transitional:kW,adapter:["xhr","http"],transformRequest:[function(e,r){const i=r.getContentType()||"",B=i.indexOf("application/json")>-1,D=Ir.isObject(e);if(D&&Ir.isHTMLForm(e)&&(e=new FormData(e)),Ir.isFormData(e))return B?JSON.stringify(SW(e)):e;if(Ir.isArrayBuffer(e)||Ir.isBuffer(e)||Ir.isStream(e)||Ir.isFile(e)||Ir.isBlob(e))return e;if(Ir.isArrayBufferView(e))return e.buffer;if(Ir.isURLSearchParams(e))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let c;if(D){if(i.indexOf("application/x-www-form-urlencoded")>-1)return E7t(e,this.formSerializer).toString();if((c=Ir.isFileList(e))||i.indexOf("multipart/form-data")>-1){const g=this.env&&this.env.FormData;return C4(c?{"files[]":e}:e,g&&new g,this.formSerializer)}}return D||B?(r.setContentType("application/json",!1),I7t(e)):e}],transformResponse:[function(e){const r=this.transitional||EE.transitional,i=r&&r.forcedJSONParsing,B=this.responseType==="json";if(e&&Ir.isString(e)&&(i&&!this.responseType||B)){const D=!(r&&r.silentJSONParsing)&&B;try{return JSON.parse(e)}catch(c){if(D)throw c.name==="SyntaxError"?Nl.from(c,Nl.ERR_BAD_RESPONSE,this,null,this.response):c}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Of.classes.FormData,Blob:Of.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Ir.forEach(["delete","get","head","post","put","patch"],e=>{EE.headers[e]={}});const AE=EE,P7t=Ir.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),B7t=e=>{const r={};let i,B,D;return e&&e.split(`
124
+ */const Su={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"}},_H={itemsToShow:{default:Su.itemsToShow,type:Number},itemsToScroll:{default:Su.itemsToScroll,type:Number},wrapAround:{default:Su.wrapAround,type:Boolean},throttle:{default:Su.throttle,type:Number},snapAlign:{default:Su.snapAlign,validator(e){return["start","end","center","center-even","center-odd"].includes(e)}},transition:{default:Su.transition,type:Number},breakpoints:{default:Su.breakpoints,type:Object},autoplay:{default:Su.autoplay,type:Number},pauseAutoplayOnHover:{default:Su.pauseAutoplayOnHover,type:Boolean},modelValue:{default:void 0,type:Number},mouseDrag:{default:Su.mouseDrag,type:Boolean},touchDrag:{default:Su.touchDrag,type:Boolean},dir:{default:Su.dir,validator(e){return["rtl","ltr"].includes(e)}},i18n:{default:Su.i18n,type:Object},settings:{default(){return{}},type:Object}};function ubt({config:e,slidesCount:r}){const{snapAlign:i,wrapAround:B,itemsToShow:D=1}=e;if(B)return Math.max(r-1,0);let c;switch(i){case"start":c=r-D;break;case"end":c=r-1;break;case"center":case"center-odd":c=r-Math.ceil((D-.5)/2);break;case"center-even":c=r-Math.ceil(D/2);break;default:c=0;break}return Math.max(c,0)}function hbt({config:e,slidesCount:r}){const{wrapAround:i,snapAlign:B,itemsToShow:D=1}=e;let c=0;if(i||D>r)return c;switch(B){case"start":c=0;break;case"end":c=D-1;break;case"center":case"center-odd":c=Math.floor((D-1)/2);break;case"center-even":c=Math.floor((D-2)/2);break;default:c=0;break}return c}function iE({val:e,max:r,min:i}){return r<i?e:Math.min(Math.max(e,i),r)}function pbt({config:e,currentSlide:r,slidesCount:i}){const{snapAlign:B,wrapAround:D,itemsToShow:c=1}=e;let g=r;switch(B){case"center":case"center-odd":g-=(c-1)/2;break;case"center-even":g-=(c-2)/2;break;case"end":g-=c-1;break}return D?g:iE({val:g,max:i-c,min:0})}function bH(e){return e?e.reduce((r,i)=>{var B;return i.type===t.Fragment?[...r,...bH(i.children)]:((B=i.type)===null||B===void 0?void 0:B.name)==="CarouselSlide"?[...r,i]:r},[]):[]}function oE({val:e,max:r,min:i=0}){return e>r?oE({val:e-(r+1),max:r,min:i}):e<i?oE({val:e+(r+1),max:r,min:i}):e}function fbt(e,r){let i;return r?function(...B){const D=this;i||(e.apply(D,B),i=!0,setTimeout(()=>i=!1,r))}:e}function mbt(e,r){let i;return function(...B){i&&clearTimeout(i),i=setTimeout(()=>{e(...B),i=null},r)}}function gbt(e="",r={}){return Object.entries(r).reduce((i,[B,D])=>i.replace(`{${B}}`,String(D)),e)}var ybt=t.defineComponent({name:"ARIA",setup(){const e=t.inject("config",t.reactive(Object.assign({},Su))),r=t.inject("currentSlide",t.ref(0)),i=t.inject("slidesCount",t.ref(0));return()=>t.h("div",{class:["carousel__liveregion","carousel__sr-only"],"aria-live":"polite","aria-atomic":"true"},gbt(e.i18n.itemXofY,{currentSlide:r.value+1,slidesCount:i.value}))}}),vbt=t.defineComponent({name:"Carousel",props:_H,setup(e,{slots:r,emit:i,expose:B}){var D;const c=t.ref(null),g=t.ref([]),a=t.ref(0),y=t.ref(0),f=t.reactive(Object.assign({},Su));let n=Object.assign({},Su),v;const _=t.ref((D=e.modelValue)!==null&&D!==void 0?D:0),p=t.ref(0),l=t.ref(0),o=t.ref(0),s=t.ref(0);let u,d;t.provide("config",f),t.provide("slidesCount",y),t.provide("currentSlide",_),t.provide("maxSlide",o),t.provide("minSlide",s),t.provide("slideWidth",a);function h(){v=Object.assign({},e.breakpoints),n=Object.assign(Object.assign(Object.assign({},n),e),{i18n:Object.assign(Object.assign({},n.i18n),e.i18n),breakpoints:void 0}),b(n)}function m(){if(!v||!Object.keys(v).length)return;const ae=Object.keys(v).map(ie=>Number(ie)).sort((ie,ue)=>+ue-+ie);let ne=Object.assign({},n);ae.some(ie=>{const ue=window.matchMedia(`(min-width: ${ie}px)`).matches;return ue&&(ne=Object.assign(Object.assign({},ne),v[ie])),ue}),b(ne)}function b(ae){Object.entries(ae).forEach(([ne,ie])=>f[ne]=ie)}const w=mbt(()=>{m(),x()},16);function x(){if(!c.value)return;const ae=c.value.getBoundingClientRect();a.value=ae.width/f.itemsToShow}function S(){y.value<=0||(l.value=Math.ceil((y.value-1)/2),o.value=ubt({config:f,slidesCount:y.value}),s.value=hbt({config:f,slidesCount:y.value}),f.wrapAround||(_.value=iE({val:_.value,max:o.value,min:s.value})))}t.onMounted(()=>{t.nextTick(()=>x()),setTimeout(()=>x(),1e3),m(),V(),window.addEventListener("resize",w,{passive:!0}),i("init")}),t.onUnmounted(()=>{d&&clearTimeout(d),u&&clearInterval(u),window.removeEventListener("resize",w,{passive:!0})});let C=!1;const T={x:0,y:0},k={x:0,y:0},A=t.reactive({x:0,y:0}),E=t.ref(!1),M=t.ref(!1),I=()=>{E.value=!0},N=()=>{E.value=!1};function z(ae){["INPUT","TEXTAREA","SELECT"].includes(ae.target.tagName)||(C=ae.type==="touchstart",C||ae.preventDefault(),!(!C&&ae.button!==0||U.value)&&(T.x=C?ae.touches[0].clientX:ae.clientX,T.y=C?ae.touches[0].clientY:ae.clientY,document.addEventListener(C?"touchmove":"mousemove",F,!0),document.addEventListener(C?"touchend":"mouseup",R,!0)))}const F=fbt(ae=>{M.value=!0,k.x=C?ae.touches[0].clientX:ae.clientX,k.y=C?ae.touches[0].clientY:ae.clientY;const ne=k.x-T.x,ie=k.y-T.y;A.y=ie,A.x=ne},f.throttle);function R(){const ae=f.dir==="rtl"?-1:1,ne=Math.sign(A.x)*.4,ie=Math.round(A.x/a.value+ne)*ae;if(ie&&!C){const ue=he=>{he.stopPropagation(),window.removeEventListener("click",ue,!0)};window.addEventListener("click",ue,!0)}Z(_.value-ie),A.x=0,A.y=0,M.value=!1,document.removeEventListener(C?"touchmove":"mousemove",F,!0),document.removeEventListener(C?"touchend":"mouseup",R,!0)}function V(){!f.autoplay||f.autoplay<=0||(u=setInterval(()=>{f.pauseAutoplayOnHover&&E.value||q()},f.autoplay))}function $(){u&&(clearInterval(u),u=null),V()}const U=t.ref(!1);function Z(ae){const ne=f.wrapAround?ae:iE({val:ae,max:o.value,min:s.value});_.value===ne||U.value||(i("slide-start",{slidingToIndex:ae,currentSlideIndex:_.value,prevSlideIndex:p.value,slidesCount:y.value}),U.value=!0,p.value=_.value,_.value=ne,d=setTimeout(()=>{if(f.wrapAround){const ie=oE({val:ne,max:o.value,min:0});ie!==_.value&&(_.value=ie,i("loop",{currentSlideIndex:_.value,slidingToIndex:ae}))}i("update:modelValue",_.value),i("slide-end",{currentSlideIndex:_.value,prevSlideIndex:p.value,slidesCount:y.value}),U.value=!1,$()},f.transition))}function q(){Z(_.value+f.itemsToScroll)}function W(){Z(_.value-f.itemsToScroll)}const Q={slideTo:Z,next:q,prev:W};t.provide("nav",Q),t.provide("isSliding",U);const X=t.computed(()=>pbt({config:f,currentSlide:_.value,slidesCount:y.value}));t.provide("slidesToScroll",X);const J=t.computed(()=>{const ae=f.dir==="rtl"?-1:1,ne=X.value*a.value*ae;return{transform:`translateX(${A.x-ne}px)`,transition:`${U.value?f.transition:0}ms`,margin:f.wrapAround?`0 -${y.value*a.value}px`:"",width:"100%"}});function ee(){h(),m(),S(),x(),$()}Object.keys(_H).forEach(ae=>{["modelValue"].includes(ae)||t.watch(()=>e[ae],ee)}),t.watch(()=>e.modelValue,ae=>{ae!==_.value&&Z(Number(ae))}),t.watch(y,S),i("before-init"),h();const le={config:f,slidesCount:y,slideWidth:a,next:q,prev:W,slideTo:Z,currentSlide:_,maxSlide:o,minSlide:s,middleSlide:l};B({updateBreakpointsConfigs:m,updateSlidesData:S,updateSlideWidth:x,initDefaultConfigs:h,restartCarousel:ee,slideTo:Z,next:q,prev:W,nav:Q,data:le});const oe=r.default||r.slides,se=r.addons,ce=t.reactive(le);return()=>{const ae=bH(oe==null?void 0:oe(ce)),ne=(se==null?void 0:se(ce))||[];ae.forEach((pe,me)=>pe.props.index=me);let ie=ae;if(f.wrapAround){const pe=ae.map((be,we)=>t.cloneVNode(be,{index:-ae.length+we,isClone:!0,key:`clone-before-${we}`})),me=ae.map((be,we)=>t.cloneVNode(be,{index:ae.length+we,isClone:!0,key:`clone-after-${we}`}));ie=[...pe,...ae,...me]}g.value=ae,y.value=Math.max(ae.length,1);const ue=t.h("ol",{class:"carousel__track",style:J.value,onMousedownCapture:f.mouseDrag?z:null,onTouchstartPassiveCapture:f.touchDrag?z:null},ie),he=t.h("div",{class:"carousel__viewport"},ue);return t.h("section",{ref:c,class:{carousel:!0,"is-sliding":U.value,"is-dragging":M.value,"is-hover":E.value,"carousel--rtl":f.dir==="rtl"},dir:f.dir,"aria-label":f.i18n.ariaGallery,tabindex:"0",onMouseenter:I,onMouseleave:N},[he,ne,t.h(ybt)])}}}),xH;(function(e){e.arrowUp="arrowUp",e.arrowDown="arrowDown",e.arrowRight="arrowRight",e.arrowLeft="arrowLeft"})(xH||(xH={}));var _bt=t.defineComponent({name:"CarouselSlide",props:{index:{type:Number,default:1},isClone:{type:Boolean,default:!1}},setup(e,{slots:r}){const i=t.inject("config",t.reactive(Object.assign({},Su))),B=t.inject("currentSlide",t.ref(0)),D=t.inject("slidesToScroll",t.ref(0)),c=t.inject("isSliding",t.ref(!1)),g=()=>e.index===B.value,a=()=>e.index===B.value-1,y=()=>e.index===B.value+1,f=()=>{const n=Math.floor(D.value),v=Math.ceil(D.value+i.itemsToShow-1);return e.index>=n&&e.index<=v};return()=>{var n;return t.h("li",{style:{width:`${100/i.itemsToShow}%`},class:{carousel__slide:!0,"carousel__slide--clone":e.isClone,"carousel__slide--visible":f(),"carousel__slide--active":g(),"carousel__slide--prev":a(),"carousel__slide--next":y(),"carousel__slide--sliding":c.value},"aria-hidden":!f()},(n=r.default)===null||n===void 0?void 0:n.call(r))}}});const bbt=(e,r)=>{const i=e.__vccOpts||e;for(const[B,D]of r)i[B]=D;return i},xbt=e=>(t.pushScopeId("data-v-54620d25"),e=e(),t.popScopeId(),e),wbt={class:"gsc-carousel"},kbt={key:0},Cbt=xbt(()=>t.createElementVNode("div",null,"no hay",-1)),Sbt=[Cbt],Tbt={class:"gsc-carousel__2d__slides"},Ebt={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Abt=["fill"],Mbt={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Ibt=["fill"],Pbt={class:"gsc-carousel__2d__navigation"},Bbt={width:"8",height:"15",viewBox:"0 0 8 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Nbt=["stroke"],zbt={key:1,class:"gsc-carousel__2d__navigation__pagination"},Obt=["onClick"],Fbt={width:"7",height:"15",viewBox:"0 0 7 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Lbt=["stroke"],Dbt={__name:"GSC-Carousel",props:{currentItemIndex:{type:Number,default:0},items:{type:Array,default:()=>[]},is3d:{type:Boolean,default:!1},isPaginationVisible:{type:Boolean,default:!1},areNavigationArrowsVisible:{type:Boolean,default:!0},defaultItemByIndex:{type:Number,default:0},defaultItemByProp:{type:Object,default:null,validator:e=>["propName","value"].every(r=>r in e)},navigationHeight:{type:Number,default:4},navigationBorderRadius:{type:Number,default:4},navigationColor:{type:String,default:"rgba(255, 255, 255, 0.4)"},navigationActiveColor:{type:String,default:"#cbee6b"},navigationActiveWidth:{type:Number,default:30},arrowsColor:{type:String,default:"#cbee6b"},arrowsMaxWidth:{type:String,default:"20px"},wrapAround:{type:Boolean,default:!1},itemsToShow:{type:Number,default:1},isMainSlidePriority:{type:Boolean,default:!1},areSlidesArrowsVisible:{type:Boolean,default:!1},slideLeftArrowBackgroundImage:{type:String,default:"linear-gradient(to right, rgba(13, 29, 41, 1), rgba(0, 0, 0, 0))"},slideRightArrowBackgroundImage:{type:String,default:"linear-gradient(to left, rgba(13, 29, 41, 1), rgba(0, 0, 0, 0))"},areSlidesArrowsRounded:{type:Boolean,default:!1},slidesArrowsLeftAndRight:{type:String,default:"20px"},secondarySlidesOpacity:{type:Number,default:.8},marginTop:{type:String,default:"0"}},emits:["input","update:currentItemIndex"],setup(e,{expose:r,emit:i}){const B=e;t.useCssVars(o=>({"2c72d674":e.slideLeftArrowBackgroundImage,"90a63f40":e.slidesArrowsLeftAndRight,"2627d097":e.slideRightArrowBackgroundImage,"1904d43f":e.marginTop,cfb58986:e.secondarySlidesOpacity}));const D=t.ref(null),c=t.ref({}),g=t.ref(0),a=t.ref(!1);t.watch(D,o=>{o&&a.value?(a.value=!1,y(B.items)):o&&o.slideTo&&o.slideTo(g.value)},{deep:!0}),t.watch(()=>B.currentItemIndex,o=>{g.value!==o&&_(o)}),t.watch(()=>B.defaultItemByIndex,o=>{g.value!==o&&_(o)}),t.watch(()=>B.items,o=>{D.value?y(o):a.value=!0},{immediate:!0});function y(o){o&&o.length&&D.value&&setTimeout(()=>{if(B.defaultItemByProp){const s=B.items.findIndex(u=>u[B.defaultItemByProp.propName]===B.defaultItemByProp.value);s!==-1?(g.value=s,c.value=o[s]):(g.value=0,c.value=o[0])}else g.value=B.defaultItemByIndex,c.value=o[B.defaultItemByIndex];D.value.slideTo&&D.value.slideTo(g.value),c.value&&g.value===0&&i("input",{selectedItem:c.value,selectedItemIndex:g.value})},500)}function f(){D.value&&D.value.next()}function n(){D.value&&D.value.prev()}function v(){D.value&&D.value.updateSlideWidth()}function _(o){D.value&&D.value.slideTo(o)}function p(o){D.value.slideTo(o)}function l(o){const s=o.slidingToIndex<0?B.items.length-1:o.slidingToIndex===B.items.length?0:o.slidingToIndex;g.value=s,c.value=B.items[s],i("update:currentItemIndex",s),i("input",{selectedItem:c.value,selectedItemIndex:g.value})}return r({prev:n,next:f,updateSlideWidth:v,slideTo:_}),(o,s)=>(t.openBlock(),t.createElementBlock("div",wbt,[B.is3d?(t.openBlock(),t.createElementBlock("div",kbt,Sbt)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(["gsc-carousel__2d",{"main-slide-priority":e.isMainSlidePriority}])},[t.createElementVNode("div",Tbt,[t.createVNode(t.unref(vbt),{ref_key:"carousel2d",ref:D,"items-to-show":e.itemsToShow,"wrap-around":e.wrapAround,onSlideStart:l},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(u,d)=>(t.openBlock(),t.createBlock(t.unref(_bt),{key:d},{default:t.withCtx(()=>[t.renderSlot(o.$slots,"default",{item:u},void 0,!0)]),_:2},1024))),128))]),_:3},8,["items-to-show","wrap-around"])]),e.areSlidesArrowsVisible&&e.items.length>1?(t.openBlock(),t.createElementBlock("div",{key:0,class:"gsc-carousel__2d__arrow-left",style:t.normalizeStyle("max-width:"+e.arrowsMaxWidth+"!important"),onClick:s[0]||(s[0]=u=>D.value.prev())},[t.createElementVNode("div",{class:t.normalizeClass(["gsc-carousel__2d__slide-button",{rounded:e.areSlidesArrowsRounded}])},[(t.openBlock(),t.createElementBlock("svg",Ebt,[t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.10399 9L8.62342 15.4393C9.12552 16.0251 9.12552 16.9749 8.62342 17.5607C8.12132 18.1464 7.30725 18.1464 6.80514 17.5607L0.376575 10.0607C-0.125528 9.47487 -0.125528 8.52512 0.376575 7.93934L6.80515 0.439339C7.30725 -0.146447 8.12132 -0.146447 8.62342 0.43934C9.12553 1.02513 9.12553 1.97487 8.62342 2.56066L3.10399 9Z",fill:e.arrowsColor},null,8,Abt)]))],2)],4)):t.createCommentVNode("",!0),e.areSlidesArrowsVisible&&e.items.length>1?(t.openBlock(),t.createElementBlock("div",{key:1,class:"gsc-carousel__2d__arrow-right",style:t.normalizeStyle("max-width:"+e.arrowsMaxWidth+"!important"),onClick:s[1]||(s[1]=u=>f())},[t.createElementVNode("div",{class:t.normalizeClass(["gsc-carousel__2d__slide-button",{rounded:e.areSlidesArrowsRounded}])},[(t.openBlock(),t.createElementBlock("svg",Mbt,[t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5.89601 9L0.376575 2.56066C-0.125528 1.97487 -0.125528 1.02513 0.376575 0.439339C0.878675 -0.146447 1.69275 -0.146447 2.19486 0.43934L8.62343 7.93934C9.12553 8.52513 9.12553 9.47487 8.62343 10.0607L2.19486 17.5607C1.69275 18.1464 0.878675 18.1464 0.376575 17.5607C-0.125528 16.9749 -0.125528 16.0251 0.376575 15.4393L5.89601 9Z",fill:e.arrowsColor},null,8,Ibt)]))],2)],4)):t.createCommentVNode("",!0),t.createElementVNode("div",Pbt,[e.areNavigationArrowsVisible?(t.openBlock(),t.createElementBlock("div",{key:0,class:"gsc-carousel__2d__navigation__arrow-left",onClick:s[2]||(s[2]=u=>n())},[(t.openBlock(),t.createElementBlock("svg",Bbt,[t.createElementVNode("path",{d:"M6.72998 13.894L1.46621 8.63028C0.84457 8.00863 0.84457 6.9914 1.46621 6.36976L6.72998 1.10599",stroke:B.arrowsColor},null,8,Nbt)]))])):t.createCommentVNode("",!0),e.isPaginationVisible?(t.openBlock(),t.createElementBlock("div",zbt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(u,d)=>(t.openBlock(),t.createElementBlock("div",{key:`i-${d}`,class:"gsc-carousel__2d__navigation__pagination__item",style:t.normalizeStyle({height:`${B.navigationHeight}px`,width:`${g.value===d?B.navigationActiveWidth:B.navigationActiveWidth/2}px`,borderRadius:`${B.navigationBorderRadius}px`,backgroundColor:`${g.value===d?B.navigationActiveColor:B.navigationColor}`,transition:"all 0.1s ease-in-out"}),onClick:h=>p(d)},null,12,Obt))),128))])):t.createCommentVNode("",!0),e.areNavigationArrowsVisible?(t.openBlock(),t.createElementBlock("div",{key:2,class:"gsc-carousel__2d__navigation__arrow-right",onClick:s[3]||(s[3]=u=>D.value.next())},[(t.openBlock(),t.createElementBlock("svg",Fbt,[t.createElementVNode("path",{d:"M0.72998 1.10599L5.99375 6.36975C6.61539 6.9914 6.61539 8.00863 5.99375 8.63027L0.72998 13.894",stroke:B.arrowsColor},null,8,Lbt)]))])):t.createCommentVNode("",!0)])],2))]))}},Rbt=bbt(Dbt,[["__scopeId","data-v-54620d25"]]),sE=(e,r)=>{const i=e.__vccOpts||e;for(const[B,D]of r)i[B]=D;return i};let wH=null;const lE={components:{},props:{titleCategory:{type:String,default:"RESUMEN"},dateGame:{type:String,default:""},colorBackgroundHome:{type:String,default:"#000000"},colorBackgroundAway:{type:String,default:"#FFFFFF"},logoHome:{type:String,default:""},matchday:{type:String,default:""},seasonName:{type:String,default:""},logoAway:{type:String,default:""},score:{type:String,default:""},background:{type:String,default:""}},data(){return{gamesContainerWidth:0}},computed:{date(){const e=this.gamesContainerWidth;return e<=400?"date400":e<=540?"date540":e<=650?"date650":"date"},seasoncontainer(){const e=this.gamesContainerWidth;return e<=400?"season-container400":e<=540?"season-container540":e<=650?"season-container650":"season-container"},matchcontainer(){const e=this.gamesContainerWidth;return e<=400?"match-container400":e<=540?"match-container540":e<=650?"match-container650":"match-container"},containerinfogame(){const e=this.gamesContainerWidth;return e<=400?"container-info-game400":e<=540?"container-info-game540":e<=650?"container-info-game650":"container-info-game"},playbutton(){const e=this.gamesContainerWidth;return e<=400?"play-button400":e<=540?"play-button540":e<=650?"play-button650":"play-button"},baselogo(){const e=this.gamesContainerWidth;return e<=400?"base-logo400":e<=540?"base-logo540":e<=650?"base-logo650":"base-logo"},baselogoright(){const e=this.gamesContainerWidth;return e<=400?"base-logo-right400":e<=540?"base-logo-right540":e<=650?"base-logo-right650":"base-logo-right"},thumbnailhighlights(){const e=this.gamesContainerWidth;return e<=400?"thumbnail-highlights400":e<=540?"thumbnail-highlights540":e<=650?"thumbnail-highlights650":"thumbnail-highlights"},teamlogo(){const e=this.gamesContainerWidth;return e<=400?"team-logo400":e<=540?"team-logo540":e<=650?"team-logo650":"team-logo"},logoright(){const e=this.gamesContainerWidth;return e<=400?"logo-right400":e<=540?"logo-right540":e<=650?"logo-right650":"logo-right"},secondline(){const e=this.gamesContainerWidth;return e<=400?"second-line400":e<=540?"second-line540":e<=650?"second-line650":"second-line"},titlename(){const e=this.gamesContainerWidth;return e<=400?"title-name400":e<=540?"title-name540":e<=650?"title-name650":"title-name"}},methods:{onclickPlayVideos(){this.$emit("onclickPlayVideos")},setUpResizeObserver(){if(window.ResizeObserver)wH=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),wH.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},kH=()=>{t.useCssVars(e=>({"41af28e8":e.colorBackgroundHome+"45","90ae2246":e.colorBackgroundAway+"45","1d262e1e":e.colorBackgroundHome,"1d231c2d":e.colorBackgroundAway}))},CH=lE.setup;lE.setup=CH?(e,r)=>(kH(),CH(e,r)):kH;const m4=e=>(t.pushScopeId("data-v-fd9d1e65"),e=e(),t.popScopeId(),e),Vbt=m4(()=>t.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},[t.createElementVNode("path",{d:"M6.6041 22.8554C6.42105 22.7512 6.26805 22.5956 6.1616 22.4053C6.05515 22.215 5.99927 21.9973 6.00001 21.7755V2.22137C6.00026 2.00039 6.0565 1.78362 6.16274 1.59409C6.26899 1.40456 6.42127 1.24936 6.6034 1.14499C6.78553 1.04062 6.9907 0.990981 7.1971 1.00135C7.4035 1.01171 7.60342 1.0817 7.77561 1.20386L21.4907 10.9821C21.6473 11.0935 21.7758 11.2446 21.8646 11.4219C21.9535 11.5992 22 11.7973 22 11.9985C22 12.1996 21.9535 12.3977 21.8646 12.575C21.7758 12.7523 21.6473 12.9034 21.4907 13.0148L7.77561 22.7954C7.60369 22.9178 7.40392 22.988 7.19761 22.9986C6.9913 23.0092 6.78617 22.9597 6.6041 22.8554ZM7.14347 21.7779L20.8585 11.9996L7.14347 21.7779Z",fill:"#CBEE6B"})],-1)),$bt=[Vbt],jbt=m4(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/paper-texture.png",alt:"",class:"paper-texture position-image"},null,-1)),Ubt=["src"],Gbt=m4(()=>t.createElementVNode("div",{class:"gradient-back position-image"},null,-1)),Hbt=m4(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/halftone-texture.png",alt:"",class:"halftone-texture position-image"},null,-1)),Wbt=["src"],qbt=["src"],Ybt={class:"text-container"};function Xbt(e,r,i,B,D,c){return t.openBlock(),t.createElementBlock("div",{ref:"gamesContainer",class:t.normalizeClass(c.thumbnailhighlights)},[t.createElementVNode("div",{class:t.normalizeClass(c.playbutton),onClick:r[0]||(r[0]=(...g)=>c.onclickPlayVideos&&c.onclickPlayVideos(...g))},$bt,2),i.dateGame!=""?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(c.date)},t.toDisplayString(i.dateGame),3)):t.createCommentVNode("",!0),i.matchday!=""&&i.seasonName!=""?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(c.containerinfogame)},[i.matchday!=""?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(c.matchcontainer)},t.toDisplayString(i.matchday),3)):t.createCommentVNode("",!0),i.seasonName!=""?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(c.seasoncontainer)},t.toDisplayString(i.seasonName),3)):t.createCommentVNode("",!0)],2)):t.createCommentVNode("",!0),jbt,t.createElementVNode("img",{src:i.background,alt:"",class:"bkg-blackwhite position-image"},null,8,Ubt),t.createElementVNode("div",{class:t.normalizeClass([c.baselogo,"position-image"])},null,2),t.createElementVNode("div",{class:t.normalizeClass(c.baselogoright)},null,2),Gbt,Hbt,t.createElementVNode("img",{src:i.logoHome,alt:"",class:t.normalizeClass(c.teamlogo)},null,10,Wbt),t.createElementVNode("img",{src:i.logoAway,alt:"",class:t.normalizeClass(c.logoright)},null,10,qbt),t.createElementVNode("div",Ybt,[t.createElementVNode("span",{class:t.normalizeClass(c.secondline)},t.toDisplayString(i.score),3),t.createElementVNode("div",{class:t.normalizeClass(c.titlename)},t.toDisplayString(i.titleCategory),3)])],2)}const Zbt=sE(lE,[["render",Xbt],["__scopeId","data-v-fd9d1e65"]]);let SH=null;const cE={components:{},props:{type:{type:Number,default:0},colorBackgroundHome:{type:String,default:"#000000"},colorBackgroundAway:{type:String,default:"#FFFFFF"},nameCategory:{type:String,default:""},date:{type:String,default:""},seasonName:{type:String,default:""},matchday:{type:String,default:""},photoProfile:{type:String,default:""},logoHome:{type:String,default:""},logoAway:{type:String,default:""},scoreHome:{type:String,default:""},scoreAway:{type:String,default:""},background:{type:String,default:""},typeImg:{type:Number,default:0},nameHomeTeam:{type:String,default:""},nameAwayTeam:{type:String,default:""},namePlayer:{type:String,default:""}},data(){return{gamesContainerWidth:0}},computed:{playbutton(){const e=this.gamesContainerWidth;return e<=400?"play-button400":e<=540?"play-button540":e<=650?"play-button650":"play-button"},points(){const e=this.gamesContainerWidth;return e<=400?"points400":e<=540?"points540":e<=650?"points650":"points"},containerinfogame(){const e=this.gamesContainerWidth;return e<=400?"container-info-game400":e<=540?"container-info-game540":e<=650?"container-info-game650":"container-info-game"},teamname(){const e=this.gamesContainerWidth;return e<=400?"team-name400":e<=540?"team-name540":e<=650?"team-name650":"team-name"},teamscore(){const e=this.gamesContainerWidth;return e<=400?"team-score400":e<=540?"team-score540":e<=650?"team-score650":"team-score"},teamlogo(){const e=this.gamesContainerWidth;return e<=400?"team-logo400":e<=540?"team-logo540":e<=650?"team-logo650":"team-logo"},hometeam(){const e=this.gamesContainerWidth;return e<=400?"home-team400":e<=540?"home-team540":e<=650?"home-team650":"home-team"},awayteam(){const e=this.gamesContainerWidth;return e<=400?"away-team400":e<=540?"away-team540":e<=650?"away-team650":"away-team"},texttitle(){const e=this.gamesContainerWidth;return e<=400?"text-title400":e<=540?"text-title540":e<=650?"text-title650":"text-title"},matchcontainer(){const e=this.gamesContainerWidth;return e<=400?"match-container400":e<=540?"match-container540":e<=650?"match-container650":"match-container"},seasonnameContainer(){const e=this.gamesContainerWidth;return e<=280?"seasonname280":e<=400?"seasonname400":e<=540?"seasonname540":e<=650?"seasonname650":"seasonname"},matchboxContainer(){const e=this.gamesContainerWidth;return e<=400?"matchbox400":e<=540?"matchbox540":e<=650?"matchbox650":"matchbox"},seasoncontainer(){const e=this.gamesContainerWidth;return e<=400?"season-container400":e<=540?"season-container540":e<=650?"season-container650":"season-container"},texttitle2(){const e=this.gamesContainerWidth;return e<=300?"text-title2400":e<=540?"text-title2540":e<=650?"text-title2650":"text-title2"},playerimage(){const e=this.gamesContainerWidth;return e<=400?"player-image400":e<=540?"player-image540":e<=650?"player-image650":"player-image"},thumbnailhighlights(){const e=this.gamesContainerWidth;return e<=400?"thumbnail-highlights400":e<=540?"thumbnail-highlights540":e<=650?"thumbnail-highlights650":"thumbnail-highlights"}},methods:{onclickPlayVideos(){this.$emit("onclickPlayVideos")},setUpResizeObserver(){if(window.ResizeObserver)SH=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),SH.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},TH=()=>{t.useCssVars(e=>({"16e4cc48":e.colorBackgroundHome,"16e1ba57":e.colorBackgroundAway,"0a08a218":e.colorBackgroundAway+"62",31881400:e.colorBackgroundHome+"36"}))},EH=cE.setup;cE.setup=EH?(e,r)=>(TH(),EH(e,r)):TH;const g4=e=>(t.pushScopeId("data-v-4fef1a3b"),e=e(),t.popScopeId(),e),Jbt=g4(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/paper-texture.png",alt:"",class:"paper-texture position-image"},null,-1)),Kbt=g4(()=>t.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},[t.createElementVNode("path",{d:"M6.6041 22.8554C6.42105 22.7512 6.26805 22.5956 6.1616 22.4053C6.05515 22.215 5.99927 21.9973 6.00001 21.7755V2.22137C6.00026 2.00039 6.0565 1.78362 6.16274 1.59409C6.26899 1.40456 6.42127 1.24936 6.6034 1.14499C6.78553 1.04062 6.9907 0.990981 7.1971 1.00135C7.4035 1.01171 7.60342 1.0817 7.77561 1.20386L21.4907 10.9821C21.6473 11.0935 21.7758 11.2446 21.8646 11.4219C21.9535 11.5992 22 11.7973 22 11.9985C22 12.1996 21.9535 12.3977 21.8646 12.575C21.7758 12.7523 21.6473 12.9034 21.4907 13.0148L7.77561 22.7954C7.60369 22.9178 7.40392 22.988 7.19761 22.9986C6.9913 23.0092 6.78617 22.9597 6.6041 22.8554ZM7.14347 21.7779L20.8585 11.9996L7.14347 21.7779Z",fill:"#CBEE6B"})],-1)),Qbt=[Kbt],ext={class:"player-container"},txt=["src"],axt=["src"],nxt=["src"],rxt={class:"container-score"},ixt=["src"],oxt=["src"],sxt=["src"],lxt=g4(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/halftone-texture.png",alt:"",class:"halftone-texture position-image"},null,-1)),cxt=g4(()=>t.createElementVNode("div",{class:"gradient-color"},null,-1));function dxt(e,r,i,B,D,c){return t.openBlock(),t.createElementBlock("div",{ref:"gamesContainer",class:t.normalizeClass(c.thumbnailhighlights)},[Jbt,t.createElementVNode("div",{class:t.normalizeClass(c.playbutton),onClick:r[0]||(r[0]=(...g)=>c.onclickPlayVideos&&c.onclickPlayVideos(...g))},Qbt,2),t.createElementVNode("div",ext,[t.createElementVNode("div",{class:t.normalizeClass(c.containerinfogame)},[t.createElementVNode("div",{class:t.normalizeClass(c.matchcontainer)},[t.createElementVNode("div",{class:t.normalizeClass(c.matchboxContainer)},t.toDisplayString(i.matchday),3),t.createElementVNode("div",{class:t.normalizeClass(c.seasonnameContainer)},t.toDisplayString(i.seasonName),3)],2),t.createElementVNode("div",{class:t.normalizeClass(c.seasoncontainer)},t.toDisplayString(i.date),3)],2),i.type==0?(t.openBlock(),t.createElementBlock("span",{key:0,class:t.normalizeClass(c.texttitle)},t.toDisplayString(i.nameCategory),3)):(t.openBlock(),t.createElementBlock("span",{key:1,class:t.normalizeClass(c.texttitle2)},t.toDisplayString(i.nameCategory),3)),i.typeImg==0?(t.openBlock(),t.createElementBlock("img",{key:2,src:i.photoProfile,class:t.normalizeClass(c.playerimage)},null,10,txt)):t.createCommentVNode("",!0),i.typeImg==1?(t.openBlock(),t.createElementBlock("img",{key:3,src:i.photoProfile,alt:""},null,8,axt)):t.createCommentVNode("",!0),i.typeImg==2?(t.openBlock(),t.createElementBlock("img",{key:4,src:i.photoProfile,class:"img-number"},null,8,nxt)):t.createCommentVNode("",!0),t.createElementVNode("div",rxt,[t.createElementVNode("div",{class:t.normalizeClass(c.hometeam)},[t.createElementVNode("span",{class:t.normalizeClass(c.teamname)},t.toDisplayString(i.nameHomeTeam),3),t.createElementVNode("img",{src:i.logoHome,alt:"",class:t.normalizeClass(c.teamlogo)},null,10,ixt),t.createElementVNode("span",{class:t.normalizeClass(c.teamscore)},t.toDisplayString(i.scoreHome),3)],2),t.createElementVNode("span",{class:t.normalizeClass(c.points)},":",2),t.createElementVNode("div",{class:t.normalizeClass(c.awayteam)},[t.createElementVNode("span",{class:t.normalizeClass(c.teamscore)},t.toDisplayString(i.scoreAway),3),t.createElementVNode("img",{src:i.logoAway,alt:"",class:t.normalizeClass(c.teamlogo)},null,10,oxt),t.createElementVNode("span",{class:t.normalizeClass(c.teamname)},t.toDisplayString(i.nameAwayTeam),3)],2)])]),t.createElementVNode("img",{src:i.background,alt:"",class:"bkg-blackwhite position-image"},null,8,sxt),lxt,cxt],2)}const uxt={components:{GSCCarousel:Rbt,GSCThumbnailHighlightGameHistoric:Zbt,GSCThumbnailHighlightGamePlayer:sE(cE,[["render",dxt],["__scopeId","data-v-4fef1a3b"]])},props:{items:{type:Array,default:()=>[1,2,3]},data:{type:Object,default:()=>{}},title:{type:String,default:"TODAS SUS JUGADAS"},canPlayVideos:{type:Boolean,default:!0},videoPrivilegesPlayingAs:{type:Set,default:()=>new Set([1,2])},privilegesTeamId:{type:Number,default:0}},data(){return{highlightsWidth:0,printData:[],resizeObserverGSCH:null,token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",lastHistoricGamesUrl:""}},watch:{data:{immediate:!0,handler(e){this.getData(e)}}},computed:{printDataFiltered(){return this.canPlayVideos?this.printData.filter(e=>this.videoPrivilegesPlayingAs.has(e.playingAs)):[]},isMobile(){return this.highlightsWidth<580},carouselProps(){return this.isMobile?{wrapAround:!0,itemsToShow:1.2,isMainSlidePriority:!0,areSlidesArrowsVisible:!1,areSlidesArrowsRounded:!1,areNavigationArrowsVisible:!1,isPaginationVisible:!0}:{wrapAround:!0,itemsToShow:1.8,isMainSlidePriority:!0,areSlidesArrowsVisible:!0,areSlidesArrowsRounded:!0,areNavigationArrowsVisible:!1}}},methods:{getPlayingAs(e,r){return e.home_team===(r||this.data.team)?1:2},obtenerNombreCompletoFecha(e){if(e){const r=new Date(e),i=["Domingo","Lunes","Martes","Miércoles","Jueves","Viernes","Sábado"][r.getUTCDay()],B=r.getUTCDate(),D=["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"][r.getUTCMonth()];return`${i} ${B} de ${D}`}else return""},onclickPlayVideos(e){var r=[];e.type==2?e.data.position_id==1?e.data.has_relevants==1?e.data.category==0?r=[55,324,323,608,39,774,802,52,53,40,42,54]:r=e.data.category:r=[55,324,323,608,39,774,802,52,53,40,42,54]:e.data.has_relevants==1?e.data.category==0?r=[12,35,10,27,607,61,519,98,101,109,112,121,122,127,128,135,136,141,142,161,170,179,702,730,466,217,211,232,235,239,242,282,284,289,291,296,485,486,487,488,14,15,257]:r=e.data.category:r=[56,57,59,60,326,213,214,215,216,583,584,122,123,124,125,585,586,128,129,130,131,133,327,587,588,136,137,138,139,589,590,142,143,144,145,146,147,485,486,487,488,489,490,491,492,10,27,597,598,538,539,599,600,541,542,601,602,545,546,603,604,548,549,561,562,100,563,564,103,104,105,106,107,108,565,566,111,567,568,114,115,116,117,118,119,4,88,5,34,402,459,460,461,233,403,456,457,458,236,404,453,454,455,240,405,450,451,452,243,408,447,448,449,283,409,444,445,446,285,410,441,442,443,290,411,438,439,440,292,412,435,436,437,297,414,415,416,417,244,418,419,420,421,401,581,582,331,506,530,579,580,334,507,531,577,578,344,508,532,575,576,424,509,533,573,574,341,529,534,571,572,340,528,535,569,570,427,527,536,348,349,350,465,352,353,354,466,14,52,15,53,218,219,220,221,496,497,498,499,500,501,502,503,217,504,505,521,522,543,33,209,208,517,206,207,26,325,16,51,463,151,154,156,591,592,159,162,163,429,165,593,594,168,171,172,430,174,595,596,177,180,181,431,467,358,361,363,366,369,370,469,372,376,378,379,470,381,385,387,388,471,607,608,210,212]:e.type==3?e.data.category==0?r=[607,608,12,55,54,35,14,52,15,53,466,477,40,257,39]:r=e.data.category:e.data.category!=0?r=e.data.category:r=[607,608,12,55,54,35,14,52,15,53,466,477];const i=[1,2,3];let B={seasonId:e.data.season_id,mainSectionType:1,playListType:e.type,categoryIds:r,gameIds:e.data.game_id?[e.data.game_id]:null,playerIds:e.data.position_id!=1?e.data.player_id?[e.data.player_id]:[]:[],goalkeeperIds:e.data.position_id==1?e.data.player_id?[e.data.player_id]:[]:[],teamId:e.data.team_id?e.data.team_id:e.data.team_id_b?e.data.team_id_b:0,matchResult:e.data.matchResult?[e.data.matchResult]:i,advancedFilter:{playListTitle:""}};e.data.category!==0&&(B.advancedFilter.mainCategoryId=e.data.category),this.$emit("openmedia",B)},play(e){this.$emit("play",e)},async getData(e){this.$emit("loading",!0);const r=dbt.create({headers:{Authorization:`${this.token}`}});var i=[],B={};if(e.type=="player"){const D=await r.get("https://uof4tt5l46.execute-api.us-west-2.amazonaws.com/prod/v3/playerInfo/"+e.season+"/"+e.player);if(D.data.seasons[e.season])for(let c=0;c<D.data.seasons[e.season].games_played.length;c++)B={playingAs:this.getPlayingAs(D.data.seasons[e.season].games_played[c],D.data.team_id),category:0,player_id:D.data.player_id,position_id:D.data.position_id,color:D.data.info_thumbnails.colors.background_color,photo_profile:D.data.info_thumbnails.images.player_in_action[0]?"https://golstatsimages.blob.core.windows.net/images-library/"+D.data.info_thumbnails.images.player_in_action[0]:D.data.info_thumbnails.player_profile,team_logo:"https://az755631.vo.msecnd.net/teams-150/"+D.data.seasons[e.season].games_played[c].home_team+".png",player_name:D.data.seasons[e.season].games_played[c].home_team_acronym+" "+D.data.seasons[e.season].games_played[c].home_team_score+" : "+D.data.seasons[e.season].games_played[c].visiting_team_score+" "+D.data.seasons[e.season].games_played[c].visiting_team_acronym,team_id:D.data.team_id,has_relevants:D.data.seasons[e.season].games_played[c].has_relevants,team_id_b:D.data.seasons[e.season].games_played[c].home_team,season_id:D.data.seasons[e.season].games_played[c].season_id,name:D.data.seasons[e.season].games_played[c].player_name,seasonname:D.data.seasons[e.season].name.replace("Clausura","CL ").replace("Apertura","AP "),game_id:D.data.seasons[e.season].games_played[c].game_id,match:D.data.seasons[e.season].games_played[c].matchday_name.replace("Matchday","JOR").replace("de Final","").replace("Playoffs 1","CFI").replace("Playoffs 2","CFV").replace("Playoffs 3","SFI").replace("Playoffs 4","SFV").replace("Playoffs 5","FI").replace("Playoffs 6","FV"),date:this.obtenerNombreCompletoFecha(D.data.seasons[e.season].games_played[c].date),scorehome:D.data.seasons[e.season].games_played[c].home_team_score,scoreaway:D.data.seasons[e.season].games_played[c].visiting_team_score,hometeamacronym:D.data.seasons[e.season].games_played[c].home_team_acronym,visitingteamacronym:D.data.seasons[e.season].games_played[c].visiting_team_acronym,background:D.data.info_thumbnails.images.background_player_in_action[0]?"https://golstatsimages.blob.core.windows.net/images-library/"+D.data.info_thumbnails.images.background_player_in_action[0]:D.data.info_thumbnails.player_profile,backgroundhome:D.data.seasons[e.season].games_played[c].info_thumbnails.home_colors.background_color,backgroundaway:D.data.seasons[e.season].games_played[c].info_thumbnails.away_colors.background_color,logohome:"https://az755631.vo.msecnd.net/teams-150/"+D.data.seasons[e.season].games_played[c].home_team+".png",logoaway:"https://az755631.vo.msecnd.net/teams-150/"+D.data.seasons[e.season].games_played[c].visiting_team+".png",total:D.data.seasons[e.season].games_played[c].matchday_abbreviation.replace("M","Jor "),background_card:"https://az755631.vo.msecnd.net/golstats2-teams/"+D.data.seasons[e.season].games_played[c].home_team+"_"+D.data.seasons[e.season].games_played[c].season_id+"_r1.jpg"},i.push(B);else for(let c=0;c<D.data.national_seasons[e.season].games_played.length;c++)B={playingAs:this.getPlayingAs(D.data.national_seasons[e.season].games_played[c],D.data.team_id),category:0,player_id:D.data.player_id,position_id:D.data.position_id,color:D.data.info_thumbnails.colors.background_color,photo_profile:D.data.info_thumbnails.images.player_in_action[0]?"https://golstatsimages.blob.core.windows.net/images-library/"+D.data.info_thumbnails.images.player_in_action[0]:D.data.info_thumbnails.player_profile,team_logo:"https://az755631.vo.msecnd.net/teams-150/"+D.data.national_seasons[e.season].games_played[c].home_team+".png",player_name:D.data.national_seasons[e.season].games_played[c].home_team_acronym+" "+D.data.national_seasons[e.season].games_played[c].home_team_score+" : "+D.data.national_seasons[e.season].games_played[c].visiting_team_score+" "+D.data.national_seasons[e.season].games_played[c].visiting_team_acronym,team_id:D.data.team_id,has_relevants:D.data.national_seasons[e.season].games_played[c].has_relevants,team_id_b:D.data.national_seasons[e.season].games_played[c].home_team,season_id:D.data.national_seasons[e.season].games_played[c].season_id,name:D.data.national_seasons[e.season].games_played[c].player_name,seasonname:D.data.national_seasons[e.season].name.replace("Clausura","CL ").replace("Apertura","AP "),game_id:D.data.national_seasons[e.season].games_played[c].game_id,match:D.data.national_seasons[e.season].games_played[c].matchday_name.replace("Matchday","JOR").replace("de Final","").replace("Playoffs 1","CFI").replace("Playoffs 2","CFV").replace("Playoffs 3","SFI").replace("Playoffs 4","SFV").replace("Playoffs 5","FI").replace("Playoffs 6","FV"),date:this.obtenerNombreCompletoFecha(D.data.national_seasons[e.season].games_played[c].date),scorehome:D.data.national_seasons[e.season].games_played[c].home_team_score,scoreaway:D.data.national_seasons[e.season].games_played[c].visiting_team_score,hometeamacronym:D.data.national_seasons[e.season].games_played[c].home_team_acronym,visitingteamacronym:D.data.national_seasons[e.season].games_played[c].visiting_team_acronym,background:D.data.info_thumbnails.images.background_player_in_action[0]?"https://golstatsimages.blob.core.windows.net/images-library/"+D.data.info_thumbnails.images.background_player_in_action[0]:D.data.info_thumbnails.player_profile,backgroundhome:D.data.national_seasons[e.season].games_played[c].info_thumbnails.home_colors.background_color,backgroundaway:D.data.national_seasons[e.season].games_played[c].info_thumbnails.away_colors.background_color,logohome:"https://az755631.vo.msecnd.net/teams-150/"+D.data.national_seasons[e.season].games_played[c].home_team+".png",logoaway:"https://az755631.vo.msecnd.net/teams-150/"+D.data.national_seasons[e.season].games_played[c].visiting_team+".png",total:D.data.national_seasons[e.season].games_played[c].matchday_abbreviation.replace("M","Jor "),background_card:"https://az755631.vo.msecnd.net/golstats2-teams/"+D.data.national_seasons[e.season].games_played[c].home_team+"_"+D.data.national_seasons[e.season].games_played[c].season_id+"_r1.jpg"},i.push(B)}else if(e.type=="historic"){const D="https://fxtcaw9tw6.execute-api.us-east-2.amazonaws.com/prod/historic/games/"+e.game;if(this.lastHistoricGamesUrl===D)return;this.lastHistoricGamesUrl=D;const c=await r.get(D);for(let a=0;a<c.data.plays.length;a++)B={teamId:c.data.plays[a][2],player:"Jornada "+c.data.plays[a][6],player_name:c.data.plays[a][4],season_id:c.data.plays[a][31],game_id:c.data.plays[a][3],img:"https://img1.wallspic.com/previews/0/9/1/0/20190/20190-football_player-football-fun-player-sports-x750.jpg"},i.length>0?this.privilegesTeamId==0?!i.filter(y=>y.game_id===c.data.plays[a][3]).length>0&&i.push(B):!i.filter(y=>y.game_id===c.data.plays[a][3]).length>0&&c.data.plays[a][2]===this.privilegesTeamId&&i.push(B):(this.privilegesTeamId==0||c.data.plays[a][2]===this.privilegesTeamId)&&i.push(B);const g=c.data.thumbnails;for(let a=0;a<i.length;a++){const y=Math.floor(Math.random()*g[i[a].game_id].info_thumbnails.images.background_default_games.length);i[a].background="https://golstatsimages.blob.core.windows.net/images-library/"+g[i[a].game_id].info_thumbnails.images.background_default_games[y],i[a].backgroundhome=g[i[a].game_id].info_thumbnails.home_colors.background_color,i[a].backgroundaway=g[i[a].game_id].info_thumbnails.away_colors.background_color,i[a].logoaway="https://az755631.vo.msecnd.net/teams-150/"+g[i[a].game_id].info_thumbnails.away_colors.team_id+".png",i[a].logohome="https://az755631.vo.msecnd.net/teams-150/"+g[i[a].game_id].info_thumbnails.home_colors.team_id+".png",i[a].match=g[i[a].game_id].matchday_name.replace("Matchday","Jor"),i[a].playingAs=g[i[a].game_id].info_thumbnails.home_colors.team_id===i[a].teamId?1:2,i[a].seasonname=g[i[a].game_id].season_name,i[a].score=g[i[a].game_id].score[0]+" - "+g[i[a].game_id].score[1],i[a].category=0}}else{const D=await r.get("https://ws8d8ye2ii.execute-api.us-west-2.amazonaws.com/prod/v4/seasonsByTeam/"+e.team);for(let c=0;c<D.data.seasons[e.season].games.length;c++){const g=Math.floor(Math.random()*D.data.seasons[e.season].games[c].info_thumbnails.images.background_default_games.length);B={playingAs:this.getPlayingAs(D.data.seasons[e.season].games[c],D.data.team_id),category:0,game_id:D.data.seasons[e.season].games[c].game_id,photo_profile:"https://az755631.vo.msecnd.net/teams-150/"+D.data.seasons[e.season].games[c].visiting_team+".png",team_logo:"https://az755631.vo.msecnd.net/teams-150/"+D.data.seasons[e.season].games[c].home_team+".png",player_name:D.data.seasons[e.season].games[c].home_team_acronym+" "+D.data.seasons[e.season].games[c].home_team_score+" : "+D.data.seasons[e.season].games[c].visiting_team_score+" "+D.data.seasons[e.season].games[c].visiting_team_acronym,team_id_b:D.data.seasons[e.season].games[c].home_team,team_id:D.data.team_id,season_id:D.data.seasons[e.season].games[c].season_id,name:"",seasonname:D.data.seasons[e.season].name,match:D.data.seasons[e.season].games[c].matchday_name.replace("Matchday","Jor"),score:D.data.seasons[e.season].games[c].home_team_score+" : "+D.data.seasons[e.season].games[c].visiting_team_score,background:"https://golstatsimages.blob.core.windows.net/images-library/"+D.data.seasons[e.season].games[c].info_thumbnails.images.background_default_games[g],backgroundhome:D.data.seasons[e.season].games[c].info_thumbnails.home_colors.background_color,backgroundaway:D.data.seasons[e.season].games[c].info_thumbnails.away_colors.background_color,logohome:"https://az755631.vo.msecnd.net/teams-150/"+D.data.seasons[e.season].games[c].home_team+".png",logoaway:"https://az755631.vo.msecnd.net/teams-150/"+D.data.seasons[e.season].games[c].visiting_team+".png",total:D.data.seasons[e.season].games[c].matchday_abbreviation.replace("M","Jor "),background_card:"https://az755631.vo.msecnd.net/golstats2-teams/"+D.data.seasons[e.season].games[c].home_team+"_"+D.data.seasons[e.season].games[c].season_id+"_r1.jpg"},i.push(B)}}this.printData=i,this.$emit("loading",!1)},setUpResizeObserver(){this.resizeObserverGSCH=new ResizeObserver(e=>{for(const r of e)this.highlightsWidth=r.contentRect.width}),this.resizeObserverGSCH.observe(this.$refs.highlights)}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},1e3)}},hxt={key:0,ref:"highlights",class:"carousel-high-lights",id:"carousel-high-lights"};function pxt(e,r,i,B,D,c){const g=t.resolveComponent("GSCThumbnailHighlightGameHistoric"),a=t.resolveComponent("GSCThumbnailHighlightGamePlayer"),y=t.resolveComponent("GSCCarousel");return c.printDataFiltered.length>0&&i.canPlayVideos?(t.openBlock(),t.createElementBlock("div",hxt,[t.createVNode(y,t.mergeProps(c.carouselProps,{items:c.printDataFiltered,arrowsMaxWidth:"65px",slideLeftArrowBackgroundImage:"linear-gradient(to right, rgba(22, 37, 49, 1), rgba(0, 0, 0, 0))",slideRightArrowBackgroundImage:"linear-gradient(to left, rgba(22, 37, 49, 1), rgba(0, 0, 0, 0))",secondarySlidesOpacity:.2}),{default:t.withCtx(({item:f})=>[i.data.type=="team"||i.data.type=="historic"?(t.openBlock(),t.createBlock(g,{key:0,items:f,"color-background-home":f.backgroundhome,"color-background-away":f.backgroundaway,"logo-home":f.logohome,"logo-away":f.logoaway,background:f.background,matchday:f.match,onOnclickPlayVideos:n=>c.onclickPlayVideos({data:f,type:1}),"season-name":f.seasonname,score:f.score},null,8,["items","color-background-home","color-background-away","logo-home","logo-away","background","matchday","onOnclickPlayVideos","season-name","score"])):(t.openBlock(),t.createBlock(a,{key:1,type:"player","name-player":f.name,"type-style":"game","color-background-home":f.backgroundhome,"color-background-away":f.backgroundaway,"type-img":"0",date:f.date,"season-name":f.seasonname,matchday:f.match,background:f.background,"name-home-team":f.hometeamacronym,"name-away-team":f.visitingteamacronym,"name-category":i.title,onOnclickPlayVideos:n=>c.onclickPlayVideos({data:f,type:2}),"logo-away":f.logoaway,"logo-home":f.logohome,"score-home":f.scorehome,"photo-profile":f.photo_profile,"score-away":f.scoreaway},null,8,["name-player","color-background-home","color-background-away","date","season-name","matchday","background","name-home-team","name-away-team","name-category","onOnclickPlayVideos","logo-away","logo-home","score-home","photo-profile","score-away"]))]),_:1},16,["items"])],512)):t.createCommentVNode("",!0)}const fxt=sE(uxt,[["render",pxt]]),Wma="",qma="",Yma="",mxt={components:{GSCSlider:Wv},props:{isWidget:{type:Boolean,default:!1},teamWidget:{type:Number,default:0},timeLiveProminentData:{type:Number,default:6e4},game:{type:Object,default:()=>{}},canPlayVideos:{type:Boolean,default:!1}},watch:{game:{deep:!0,immediate:!0,handler(e){e.is_live==1?(this.getDataProminent(e.gameId),setInterval(()=>{this.getDataProminent(e.gameId)},this.timeLiveProminentData)):e.game_status==1||e.game_status==0?this.getDataProminent(e.gameId):this.getDataProminentPrematch(e.gameId)}}},data(){return{lastDataProminentUrl:"",dataProminent:[],dataProminentAll:[],tokenPremium:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6NTg2LCJuYW1lIjoiSkFTIEdvbFN0YXRzIiwidXNlcm5hbWUiOiJ5YXRlYW1lcmljYSIsImVtYWlsIjoiIiwicHJvdmlkZXJfaWQiOjEsImxvZ2luX2dvbHN0YXRzIjoxLCJpYXQiOjE2OTYzNjU1ODcsImV4cCI6MTcyNzkwMTU4N30.jynRtgtFM8sf8gtqZJ-1gHLc2Ws13TIykXcfrlOvv1g"}},computed:{},methods:{onclickPlayVideos(e){const r=[1,2,3];let i={seasonId:this.dataProminentAll.season_id,mainSectionType:1,playListType:e.data.is_team==1?3:2,categoryIds:e.data.categories,gameIdsToFilter:this.game.game_status==1?[this.dataProminentAll._id]:null,playerIds:e.data.is_team!=1?[e.data.player_id]:[],goalkeeperIds:[],teamId:e.data.is_team==1?e.data.team_id:0,matchResult:r,playData:{},advancedFilter:{playListTitle:""}};this.$emit("openmedia",i)},hasDecimal(e){return typeof e!="number"?!1:e.toString().includes(".")},formatNumber(e){if(typeof e=="number")if(this.hasDecimal(e)){const r=Math.round(e*10)/10;return Number.isInteger(r)?r.toString()+"%":r.toFixed(1)+"%"}else return e+"%";else return"0"},formatNumber2(e){if(typeof e=="number")if(this.hasDecimal(e)){const r=Math.round(e*10)/10;return Number.isInteger(r)?r.toString()+"%":r.toFixed(1)+"%"}else return e;else return"0"},textoConNegritas(e){if(!e)return"";const r=e.split(/(\*.*?\*)/g).filter(D=>D.trim()!=="");let i=Math.ceil(r.length/2),B="";return r.forEach((D,c)=>{c===i&&(B+="<br/>"),D.startsWith("*")&&D.endsWith("*")?B+=`<span class="text-bold-prominent">${D.slice(1,-1)}</span>`:D.trim()!==""&&(B+=`<span class="text-prominent">${D}</span>`)}),B},async getDataProminentPrematch(){try{let e="";if(this.isWidget&&this.teamWidget!=0?e="https://1qvtl1japi.execute-api.us-east-2.amazonaws.com/prod/highlights/seasons/"+this.game.seasonId+"/games/"+this.game.gameId+"/prematch?t="+this.teamWidget:e="https://1qvtl1japi.execute-api.us-east-2.amazonaws.com/prod/highlights/seasons/"+this.game.seasonId+"/games/"+this.game.gameId+"/prematch",this.lastDataProminentUrl!==e){this.$emit("loading",!0);const i=await $c.create({headers:{Authorization:`${this.tokenPremium}`}}).get(e);this.dataProminent=i.data.data,this.dataProminentAll=i.data,this.$emit("loading",!1)}}catch(e){return Promise.reject(e)}},async getDataProminent(){try{let e="";if(this.isWidget&&this.teamWidget!=0?e="https://1qvtl1japi.execute-api.us-east-2.amazonaws.com/prod/highlights/seasons/"+this.game.seasonId+"/games/"+this.game.gameId+"?t="+this.teamWidget:e="https://1qvtl1japi.execute-api.us-east-2.amazonaws.com/prod/highlights/seasons/"+this.game.seasonId+"/games/"+this.game.gameId,this.lastDataProminentUrl!==e){this.$emit("loading",!0);const i=await $c.create({headers:{Authorization:`${this.tokenPremium}`}}).get(e);this.dataProminent=i.data.data,this.dataProminentAll=i.data,setTimeout(()=>{this.$emit("loading",!1)},500)}}catch(e){return Promise.reject(e)}}}},gxt=e=>(t.pushScopeId("data-v-62f00708"),e=e(),t.popScopeId(),e),yxt={class:"data-prominent-game"},vxt={class:"title-data"},_xt={class:"item-data-text"},bxt=["innerHTML"],xxt={class:"contain-stats-control"},wxt={key:0,class:"title-total"},kxt={key:1,class:"item-total"},Cxt=["onClick"],Sxt={"data-v-83c7df16":"",style:{"margin-left":"-1px"},xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none"},Txt=[gxt(()=>t.createElementVNode("path",{"data-v-83c7df16":"",d:"M6.6041 22.8554C6.42105 22.7512 6.26805 22.5956 6.1616 22.4053C6.05515 22.215 5.99927 21.9973 6.00001 21.7755V2.22137C6.00026 2.00039 6.0565 1.78362 6.16274 1.59409C6.26899 1.40456 6.42127 1.24936 6.6034 1.14499C6.78553 1.04062 6.9907 0.990981 7.1971 1.00135C7.4035 1.01171 7.60342 1.0817 7.77561 1.20386L21.4907 10.9821C21.6473 11.0935 21.7758 11.2446 21.8646 11.4219C21.9535 11.5992 22 11.7973 22 11.9985C22 12.1996 21.9535 12.3977 21.8646 12.575C21.7758 12.7523 21.6473 12.9034 21.4907 13.0148L7.77561 22.7954C7.60369 22.9178 7.40392 22.988 7.19761 22.9986C6.9913 23.0092 6.78617 22.9597 6.6041 22.8554ZM7.14347 21.7779L20.8585 11.9996L7.14347 21.7779Z",fill:"#CBEE6B"},null,-1))];function Ext(e,r,i,B,D,c){const g=t.resolveComponent("GSCSlider");return t.openBlock(),t.createElementBlock("div",yxt,[t.createElementVNode("div",vxt,[i.game.game_status!=4||i.game.is_live==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Este partido:")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("Este torneo:")],64))]),t.createVNode(g,{height:"115px",pxScroll:272,scrollColor:"none",arrowsPosition:"absolute",arrowsScrollHide:!0,arrowsHideOnNoScroll:!0,arrowsBackground:"rgba(255,255,255,.16)",arrowsContainerBgL:"linear-gradient(270deg, rgba(13,29,42,0.1) 0%, rgba(13,29,42,1) 70%)",arrowsContainerBgR:"linear-gradient(90deg, rgba(13,29,42,0.1) 0%, rgba(13,29,42,1) 70%)",arrowsMargin:0,arrowsRadius:"50%",arrowsBorder:"#ddd"},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(D.dataProminent,(a,y)=>(t.openBlock(),t.createElementBlock("div",{key:y,class:"item-prominent-data"},[t.createElementVNode("div",{class:"item-percent-shield",style:t.normalizeStyle("background:"+a.custom_colors.background_color)},[t.createElementVNode("div",{class:"item-team",style:t.normalizeStyle(a.player_id?"background-image:url(https://az755631.vo.msecnd.net/players-profile/"+a.player_id+".png); border: solid 1.4px "+a.custom_colors.background_color:"background-image:url(https://az755631.vo.msecnd.net/teams-80/"+a.team_id+".png);border: solid 1.4px "+a.custom_colors.background_color)},null,4),a.show_value==1?(t.openBlock(),t.createElementBlock("div",{key:0,class:"item-percent",style:t.normalizeStyle("color:"+a.custom_colors.font_color)},[a.is_percentage==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[a.title=="Distancia recorrida"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(c.formatNumber(a.percent)),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(c.formatNumber(a.percent)),1)],64))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(a.total),1)],64))],4)):t.createCommentVNode("",!0)],4),t.createElementVNode("div",_xt,[t.createElementVNode("div",{class:"container-text",innerHTML:c.textoConNegritas(a.description)},null,8,bxt),t.createElementVNode("div",xxt,[a.title!="Productividad"?(t.openBlock(),t.createElementBlock("div",wxt,"TOTAL:")):t.createCommentVNode("",!0),a.title!="Productividad"?(t.openBlock(),t.createElementBlock("div",kxt,[a.is_percentage==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(c.formatNumber(a.percent)),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[a.title=="Distancia recorrida"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(a.total)+" km",1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(a.total),1)],64))],64))])):t.createCommentVNode("",!0),i.canPlayVideos&&a.show_video==1?(t.openBlock(),t.createElementBlock("div",{key:2,class:"btn-play",style:t.normalizeStyle(a.title=="Productividad"?"margin-left: 0px !important;":""),onClick:f=>c.onclickPlayVideos({data:a})},[(t.openBlock(),t.createElementBlock("svg",Sxt,Txt))],12,Cxt)):t.createCommentVNode("",!0)])])]))),128))]),_:1})])}const Axt=$i(mxt,[["render",Ext],["__scopeId","data-v-62f00708"]]),Zma="",Mxt={components:{GSCCheckbox:Wg},props:{timeLivePossesion:{type:Number,default:6e4},game:{type:Object,default:()=>{}},widthSection:{type:Number,default:0},teamSelected:{type:Object,default:()=>({})}},watch:{game:{deep:!0,immediate:!0,async handler(e){e.is_live==1?(this.getDataPosession(e.gameId),this.intervalIdPossesion=setInterval(()=>{this.getDataPosession(e.gameId)},this.timeLivePossesion),this.$emit("intervalidpossesion",this.intervalIdPossesion)):e.game_status==1||e.game_status==0?(this.getDataPosession(e.gameId),e.game_status==1&&(await this.$store.dispatch("nextGeneral/cleanStats"),await this.$store.dispatch("nextGeneral/checkState",{gameId:e.gameId,currentSeasonId:e.seasonId,isTeamsAnalysis:!0,defaultFilter:null,gameInfo:e}))):this.getDataPosessionPrematch(e.seasonId)}}},data(){return{areInactiveVisible:!1,dataPosession:[],arrTeams:[],intervalIdPossesion:null,url:"https://rwtfu33saa.execute-api.us-east-2.amazonaws.com/prod/ta/posessions/",urlPrematch:"https://rwtfu33saa.execute-api.us-east-2.amazonaws.com/prod/ta/seasons/",tokenPremium:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6NTg2LCJuYW1lIjoiSkFTIEdvbFN0YXRzIiwidXNlcm5hbWUiOiJ5YXRlYW1lcmljYSIsImVtYWlsIjoiIiwicHJvdmlkZXJfaWQiOjEsImxvZ2luX2dvbHN0YXRzIjoxLCJpYXQiOjE2OTYzNjU1ODcsImV4cCI6MTcyNzkwMTU4N30.jynRtgtFM8sf8gtqZJ-1gHLc2Ws13TIykXcfrlOvv1g",objectZeroValues:{numberValue:0,numberBarPercent:0}}},computed:{...th("nextGeneral",["gameForAnalysis","seasonId"]),...ed("nextGeneral",["arrayFilledDataSortedByPriority"])},methods:{async getStatsData(e){await this.$store.dispatch("nextGeneral/cleanStats"),await this.$store.dispatch("nextGeneral/checkState",{gameId:e.gameId,currentSeasonId:e.seasonId,isTeamsAnalysis:!0,defaultFilter:null,gameInfo:e})},async getDataPosession(){try{const r=await $c.create({headers:{Authorization:`${this.tokenPremium}`}}).get(this.url+this.game.gameId);this.dataPosession=r.data}catch(e){return Promise.reject(e)}},async getDataPosessionPrematch(e){try{const i=await $c.create({headers:{Authorization:`${this.tokenPremium}`}}).get(this.urlPrematch+e+"/posessions");for(const B in i.data.teams)i.data.teams.hasOwnProperty(B)&&(this.arrTeams[B]=i.data.teams[B])}catch(r){return Promise.reject(r)}},onCheckInactive(e){e?this.areInactiveVisible=!0:this.areInactiveVisible=!1},deleteDecimalZero(e){const r=typeof e=="string"?parseFloat(e):e;return typeof r=="number"&&!isNaN(r)?r%1===0?r:r%1===0?Math.floor(r):r:e},formatNumbers(e){return e%1!==0?e.toFixed(1):e},hVal(e){return this.getTeamValue(e,this.gameForAnalysis,"homeTeam")},aVal(e){return this.getTeamValue(e,this.gameForAnalysis,"visitingTeam")},getTeamValue(e,r,i){if(!r.game_id)return this.objectZeroValues;const B=e.homeTeam.accomplished.avgPostGame+e.visitingTeam.accomplished.avgPostGame,D=e[i].accomplished.avgPostGame/B;return e[i].accomplished.avgPostGame?{numberValue:D<1?D*100:D,numberBarPercent:e[i].accomplished.avgPostGame/B}:this.objectZeroValues}},created(){this.$store.commit("nextGeneral/updateFilters",{filters:{local:{playingAs:[1,2],statistics:{},matchResult:[1,2,3],firstHalf:[1,2,3],secondHalf:[4,5,6]},visit:{playingAs:[1,2],statistics:{},matchResult:[1,2,3],firstHalf:[1,2,3],secondHalf:[4,5,6]}},needsFormat:!0})},beforeDestroy(){clearInterval(this.intervalIdPossesion)}},jy=e=>(t.pushScopeId("data-v-3aa0c085"),e=e(),t.popScopeId(),e),Ixt={key:0,class:"field-posesion-prominent"},Pxt={key:0,class:"title"},Bxt={class:"info-data-item"},Nxt={class:"item-indicador"},zxt={class:"item-indicador-value"},Oxt={key:0},Fxt=jy(()=>t.createElementVNode("div",{class:"item-indicador-img"},[t.createElementVNode("svg",{width:"8",height:"6",viewBox:"0 0 8 6",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M3.87817 5.92969L0.506034 0.0889796L7.2503 0.0889802L3.87817 5.92969Z",fill:"#38CFFF"})])],-1)),Lxt={key:0,class:"inactiveInfo"},Dxt={class:"info-data-item"},Rxt={class:"item-indicador"},Vxt={class:"item-indicador-value"},$xt=jy(()=>t.createElementVNode("div",{class:"item-indicador-img"},[t.createElementVNode("svg",{width:"8",height:"6",viewBox:"0 0 8 6",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M3.87817 5.92969L0.506034 0.0889796L7.2503 0.0889802L3.87817 5.92969Z",fill:"#38CFFF"})])],-1)),jxt={class:"info-data-item"},Uxt={class:"item-indicador"},Gxt={class:"item-indicador-value"},Hxt={key:0},Wxt=jy(()=>t.createElementVNode("div",{class:"item-indicador-img"},[t.createElementVNode("svg",{width:"8",height:"6",viewBox:"0 0 8 6",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M3.87817 5.92969L0.506034 0.0889796L7.2503 0.0889802L3.87817 5.92969Z",fill:"#38CFFF"})])],-1)),qxt={class:"info-data-item"},Yxt={class:"item-indicador"},Xxt={class:"item-indicador-value"},Zxt=jy(()=>t.createElementVNode("div",{class:"item-indicador-img"},[t.createElementVNode("svg",{width:"8",height:"6",viewBox:"0 0 8 6",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M3.87817 5.92969L0.506034 0.0889796L7.2503 0.0889802L3.87817 5.92969Z",fill:"#38CFFF"})])],-1)),Jxt={key:0,class:"inactiveInfo"},Kxt={class:"info-data-item"},Qxt={class:"item-indicador"},e3t={class:"item-indicador-value"},t3t=jy(()=>t.createElementVNode("div",{class:"item-indicador-img"},[t.createElementVNode("svg",{width:"8",height:"6",viewBox:"0 0 8 6",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M3.87817 5.92969L0.506034 0.0889796L7.2503 0.0889802L3.87817 5.92969Z",fill:"#38CFFF"})])],-1)),a3t={class:"info-data-item"},n3t={class:"item-indicador"},r3t={class:"item-indicador-value"},i3t=jy(()=>t.createElementVNode("div",{class:"item-indicador-img"},[t.createElementVNode("svg",{width:"8",height:"6",viewBox:"0 0 8 6",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M3.87817 5.92969L0.506034 0.0889796L7.2503 0.0889802L3.87817 5.92969Z",fill:"#38CFFF"})])],-1));function o3t(e,r,i,B,D,c){const g=t.resolveComponent("GSCCheckbox");return e.arrayFilledDataSortedByPriority.length>0?(t.openBlock(),t.createElementBlock("div",Ixt,[i.widthSection>760?(t.openBlock(),t.createElementBlock("div",Pxt,"Porcentajes")):t.createCommentVNode("",!0),i.game.game_status==1||i.game.game_status==0||i.game.is_live==1?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(i.widthSection>760?"field-container":i.widthSection>520?"field-container-movil":i.widthSection>440?"field-container-movil-2":i.widthSection>360?"field-container-movil-3":"field-container-movil-4")},[D.dataPosession.has_posession==1?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(i.widthSection>1020?"time-show":i.widthSection>920?"time-show-table-xl":i.widthSection>880?"time-show-table-xl-2":i.widthSection>820?"time-show-table-xl-3":i.widthSection>760?"time-show-table-xl-4":"time-show-movil")},[t.createVNode(g,{label:"Mostrar tiempo inactivo",fontFamily:"Poppins-Regular","onUpdate:modelValue":c.onCheckInactive,"label-color":"#8c9399"},null,8,["onUpdate:modelValue"])],2)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(i.widthSection>1020?"field-data-container":i.widthSection>920?"field-data-container-xl":i.widthSection>880?"field-data-container-xl-2":i.widthSection>820?"field-data-container-xl-3":i.widthSection>760?"field-data-container-xl-4":"field-data-container-movil")},[t.createElementVNode("div",{class:t.normalizeClass(D.areInactiveVisible?"container-data-img-home":"container-data-img-home50")},[t.createElementVNode("div",{class:t.normalizeClass(D.areInactiveVisible?"homeInfo":"homeInfo50"),style:t.normalizeStyle("background-image:url("+i.game.homeTeam.logo.replace("80","150")+")")},null,6),t.createElementVNode("div",Bxt,[t.createElementVNode("div",{class:t.normalizeClass(i.widthSection>580?"item-ref-data":"item-ref-data-movil")},[t.createElementVNode("div",Nxt,[t.createElementVNode("div",zxt,[D.dataPosession.has_posession==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[D.areInactiveVisible?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(D.dataPosession.active_time.home),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(D.dataPosession.home),1)],64))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[c.hVal(e.arrayFilledDataSortedByPriority[0].subcategories.possession)?(t.openBlock(),t.createElementBlock("span",Oxt,t.toDisplayString(c.deleteDecimalZero(c.formatNumbers(c.hVal(e.arrayFilledDataSortedByPriority[0].subcategories.possession).numberValue)))+"%",1)):t.createCommentVNode("",!0)],64))]),Fxt]),t.createElementVNode("div",{class:t.normalizeClass(i.widthSection>580?"title-indicador":"title-indicador-movil")}," Pos. "+t.toDisplayString(i.game.homeTeam.acronym),3)],2)])],2),D.areInactiveVisible&&D.dataPosession.has_posession==1?(t.openBlock(),t.createElementBlock("div",Lxt,[t.createElementVNode("div",Dxt,[t.createElementVNode("div",{class:t.normalizeClass(i.widthSection>580?"item-ref-data":"item-ref-data-movil")},[t.createElementVNode("div",Rxt,[t.createElementVNode("div",Vxt,t.toDisplayString(D.dataPosession.active_time.inactive_time),1),$xt]),t.createElementVNode("div",{class:t.normalizeClass(i.widthSection>580?"title-indicador":"title-indicador-movil")},[i.widthSection>580?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("T. Inactivo")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("T. Inactivo")],64))],2)],2)])])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(D.areInactiveVisible?"container-data-img-away":"container-data-img-away50")},[t.createElementVNode("div",{class:t.normalizeClass(D.areInactiveVisible?"awayInfo":"awayInfo50"),style:t.normalizeStyle("background-image:url("+i.game.awayTeam.logo.replace("80","150")+")")},null,6),t.createElementVNode("div",jxt,[t.createElementVNode("div",{class:t.normalizeClass(i.widthSection>580?"item-ref-data":"item-ref-data-movil")},[t.createElementVNode("div",Uxt,[t.createElementVNode("div",Gxt,[D.dataPosession.has_posession==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[D.areInactiveVisible?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(D.dataPosession.active_time.away),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(D.dataPosession.away),1)],64))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[c.aVal(e.arrayFilledDataSortedByPriority[0].subcategories.possession)?(t.openBlock(),t.createElementBlock("span",Hxt,t.toDisplayString(c.deleteDecimalZero(c.formatNumbers(c.aVal(e.arrayFilledDataSortedByPriority[0].subcategories.possession).numberValue)))+"%",1)):t.createCommentVNode("",!0)],64))]),Wxt]),t.createElementVNode("div",{class:t.normalizeClass(i.widthSection>580?"title-indicador":"title-indicador-movil")}," Pos. "+t.toDisplayString(i.game.awayTeam.acronym),3)],2)])],2)],2)],2)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[D.arrTeams.length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(i.widthSection>760?"field-container":i.widthSection>520?"field-container-movil":i.widthSection>440?"field-container-movil-2":i.widthSection>360?"field-container-movil-3":"field-container-movil-4")},[D.arrTeams[i.teamSelected.teamId].has_posession==1?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(i.widthSection>1020?"time-show":i.widthSection>920?"time-show-table-xl":i.widthSection>880?"time-show-table-xl-2":i.widthSection>820?"time-show-table-xl-3":i.widthSection>760?"time-show-table-xl-4":"time-show-movil")},[t.createVNode(g,{label:"Mostrar tiempo inactivo",fontFamily:"Poppins-Regular","onUpdate:modelValue":c.onCheckInactive,"label-color":"#8c9399"},null,8,["onUpdate:modelValue"])],2)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(i.widthSection>1020?"field-data-container":i.widthSection>920?"field-data-container-xl":i.widthSection>880?"field-data-container-xl-2":i.widthSection>820?"field-data-container-xl-3":i.widthSection>760?"field-data-container-xl-4":"field-data-container-movil")},[t.createElementVNode("div",{class:t.normalizeClass(D.areInactiveVisible?"container-data-img-home":"container-data-img-home50")},[i.game.homeTeam.team_id==i.teamSelected.teamId?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(D.areInactiveVisible?"homeInfo":"homeInfo50"),style:t.normalizeStyle("background-image:url("+i.game.homeTeam.logo.replace("80","150")+")")},null,6)):t.createCommentVNode("",!0),t.createElementVNode("div",qxt,[t.createElementVNode("div",{class:t.normalizeClass(i.widthSection>580?"item-ref-data":"item-ref-data-movil")},[t.createElementVNode("div",Yxt,[t.createElementVNode("div",Xxt,[D.areInactiveVisible?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[i.game.awayTeam.team_id==i.teamSelected.teamId?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(D.arrTeams[i.teamSelected.teamId].active_time.away),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(D.arrTeams[i.teamSelected.teamId].active_time.home),1)],64))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[i.game.awayTeam.team_id==i.teamSelected.teamId?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(D.arrTeams[i.teamSelected.teamId].away),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(D.arrTeams[i.teamSelected.teamId].home),1)],64))],64))]),Zxt]),i.game.homeTeam.team_id==i.teamSelected.teamId?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(i.widthSection>580?"title-indicador":"title-indicador-movil")}," Pos. "+t.toDisplayString(i.game.homeTeam.acronym),3)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(i.widthSection>580?"title-indicador":"title-indicador-movil")}," Pos. Rival ",2))],2)])],2),D.areInactiveVisible&&D.arrTeams[i.teamSelected.teamId].has_posession==1?(t.openBlock(),t.createElementBlock("div",Jxt,[t.createElementVNode("div",Kxt,[t.createElementVNode("div",{class:t.normalizeClass(i.widthSection>580?"item-ref-data":"item-ref-data-movil")},[t.createElementVNode("div",Qxt,[t.createElementVNode("div",e3t,t.toDisplayString(D.arrTeams[i.teamSelected.teamId].active_time.inactive_time),1),t3t]),t.createElementVNode("div",{class:t.normalizeClass(i.widthSection>580?"title-indicador":"title-indicador-movil")},[i.widthSection>580?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("T. Inactivo")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("T. Inactivo")],64))],2)],2)])])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(D.areInactiveVisible?"container-data-img-away":"container-data-img-away50")},[i.game.awayTeam.team_id==i.teamSelected.teamId?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(D.areInactiveVisible?"awayInfo":"awayInfo50"),style:t.normalizeStyle("background-image:url("+i.game.awayTeam.logo.replace("80","150")+")")},null,6)):t.createCommentVNode("",!0),t.createElementVNode("div",a3t,[t.createElementVNode("div",{class:t.normalizeClass(i.widthSection>580?"item-ref-data":"item-ref-data-movil")},[t.createElementVNode("div",n3t,[t.createElementVNode("div",r3t,[D.areInactiveVisible?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[i.game.homeTeam.team_id==i.teamSelected.teamId?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(D.arrTeams[i.teamSelected.teamId].active_time.away),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(D.arrTeams[i.teamSelected.teamId].active_time.home),1)],64))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[i.game.homeTeam.team_id==i.teamSelected.teamId?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(D.arrTeams[i.teamSelected.teamId].away),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(D.arrTeams[i.teamSelected.teamId].home),1)],64))],64))]),i3t]),i.game.awayTeam.team_id==i.teamSelected.teamId?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(i.widthSection>580?"title-indicador":"title-indicador-movil")}," Pos. "+t.toDisplayString(i.game.awayTeam.acronym),3)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(i.widthSection>580?"title-indicador":"title-indicador-movil")}," Pos. Rival ",2))],2)])],2)],2)],2)):t.createCommentVNode("",!0)],64))])):t.createCommentVNode("",!0)}const s3t=$i(Mxt,[["render",o3t],["__scopeId","data-v-3aa0c085"]]),Jma="",dE={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(r){throw new Error(r)}}}},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)}}},AH=()=>{t.useCssVars(e=>({ec641b3a:e.backgroundColor,"66cc4678":e.widthCircle,"1c5ce009":e.heightCircle}))},MH=dE.setup;dE.setup=MH?(e,r)=>(AH(),MH(e,r)):AH;const l3t={key:0,class:"text-left"},c3t=["width","src"],d3t=["checked"],u3t=["width","src"],h3t={key:3,class:"text-right"};function p3t(e,r,i,B,D,c){return t.openBlock(),t.createElementBlock("div",{class:"gsc-switch-radio",style:t.normalizeStyle(c.customText)},[i.textOptionLeft!=""&&!i.hiddenLabels?(t.openBlock(),t.createElementBlock("span",l3t,t.toDisplayString(i.textOptionLeft),1)):t.createCommentVNode("",!0),i.iconA!=""?(t.openBlock(),t.createElementBlock("img",{key:1,width:i.widthIcons,src:i.iconA},null,8,c3t)):t.createCommentVNode("",!0),t.createElementVNode("input",{type:"checkbox",id:"toggle-btn",onChange:r[0]||(r[0]=(...g)=>c.handleSwitchChange&&c.handleSwitchChange(...g)),checked:D.OptionDefault},null,40,d3t),t.createElementVNode("label",{for:"toggle-btn",style:t.normalizeStyle([c.customStyle,{"--circle-color":i.circleColorSwitch}])},null,4),i.iconB!=""?(t.openBlock(),t.createElementBlock("img",{key:2,width:i.widthIcons,src:i.iconB},null,8,u3t)):t.createCommentVNode("",!0),i.textOptionRight!=""&&!i.hiddenLabels?(t.openBlock(),t.createElementBlock("span",h3t,t.toDisplayString(i.textOptionRight),1)):t.createCommentVNode("",!0)],4)}const IH=$i(dE,[["render",p3t],["__scopeId","data-v-62d6b055"]]),Kma="";let PH=null;const uE={components:{},props:{canPlayVideos:{type:Boolean,default:!1},titleCategory:{type:String,default:"RESUMEN"},dateGame:{type:String,default:""},colorBackgroundHome:{type:String,default:"#000000"},colorBackgroundAway:{type:String,default:"#FFFFFF"},logoHome:{type:String,default:""},isLive:{type:Boolean,default:!0},matchday:{type:String,default:""},seasonName:{type:String,default:""},logoAway:{type:String,default:""},score:{type:String,default:""},background:{type:String,default:""}},data(){return{gamesContainerWidth:0}},computed:{date(){const e=this.gamesContainerWidth;return e<=400?"date400":e<=540?"date540":e<=650?"date650":"date"},seasoncontainer(){const e=this.gamesContainerWidth;return e<=400?"season-container400":e<=540?"season-container540":e<=650?"season-container650":"season-container"},matchcontainer(){const e=this.gamesContainerWidth;return e<=400?"match-container400":e<=540?"match-container540":e<=650?"match-container650":"match-container"},containerinfogame(){const e=this.gamesContainerWidth;return e<=400?"container-info-game400":e<=540?"container-info-game540":e<=650?"container-info-game650":"container-info-game"},playbutton(){const e=this.gamesContainerWidth;return e<=400?"play-button400":e<=540?"play-button540":e<=650?"play-button650":"play-button"},baselogo(){const e=this.gamesContainerWidth;return e<=400?"base-logo400":e<=540?"base-logo540":e<=650?"base-logo650":"base-logo"},baselogoright(){const e=this.gamesContainerWidth;return e<=400?"base-logo-right400":e<=540?"base-logo-right540":e<=650?"base-logo-right650":"base-logo-right"},thumbnailhighlights(){const e=this.gamesContainerWidth;return e<=400?"thumbnail-highlights400":e<=540?"thumbnail-highlights540":e<=650?"thumbnail-highlights650":"thumbnail-highlights"},teamlogo(){const e=this.gamesContainerWidth;return e<=400?"team-logo400":e<=540?"team-logo540":e<=650?"team-logo650":"team-logo"},logoright(){const e=this.gamesContainerWidth;return e<=400?"logo-right400":e<=540?"logo-right540":e<=650?"logo-right650":"logo-right"},secondline(){const e=this.gamesContainerWidth;return e<=400?"second-line400":e<=540?"second-line540":e<=650?"second-line650":"second-line"},titlename(){const e=this.gamesContainerWidth;return e<=400?"title-name400":e<=540?"title-name540":e<=650?"title-name650":"title-name"}},methods:{onclickPlayVideos(){this.$emit("onclickPlayVideos")},setUpResizeObserver(){if(window.ResizeObserver)PH=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),PH.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},BH=()=>{t.useCssVars(e=>({"524d4024":e.colorBackgroundHome+"45","2acdc375":e.colorBackgroundAway+"45","60764af4":e.colorBackgroundHome,"607c6ed6":e.colorBackgroundAway}))},NH=uE.setup;uE.setup=NH?(e,r)=>(BH(),NH(e,r)):BH;const y4=e=>(t.pushScopeId("data-v-ec876074"),e=e(),t.popScopeId(),e),f3t=[y4(()=>t.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},[t.createElementVNode("path",{d:"M6.6041 22.8554C6.42105 22.7512 6.26805 22.5956 6.1616 22.4053C6.05515 22.215 5.99927 21.9973 6.00001 21.7755V2.22137C6.00026 2.00039 6.0565 1.78362 6.16274 1.59409C6.26899 1.40456 6.42127 1.24936 6.6034 1.14499C6.78553 1.04062 6.9907 0.990981 7.1971 1.00135C7.4035 1.01171 7.60342 1.0817 7.77561 1.20386L21.4907 10.9821C21.6473 11.0935 21.7758 11.2446 21.8646 11.4219C21.9535 11.5992 22 11.7973 22 11.9985C22 12.1996 21.9535 12.3977 21.8646 12.575C21.7758 12.7523 21.6473 12.9034 21.4907 13.0148L7.77561 22.7954C7.60369 22.9178 7.40392 22.988 7.19761 22.9986C6.9913 23.0092 6.78617 22.9597 6.6041 22.8554ZM7.14347 21.7779L20.8585 11.9996L7.14347 21.7779Z",fill:"#CBEE6B"})],-1))],m3t=y4(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/paper-texture.png",alt:"",class:"paper-texture position-image"},null,-1)),g3t=["src"],y3t=y4(()=>t.createElementVNode("div",{class:"gradient-back position-image"},null,-1)),v3t=y4(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/halftone-texture.png",alt:"",class:"halftone-texture position-image"},null,-1)),_3t=["src"],b3t=["src"],x3t={class:"text-container"};function w3t(e,r,i,B,D,c){return t.openBlock(),t.createElementBlock("div",{ref:"gamesContainer",class:t.normalizeClass(c.thumbnailhighlights)},[i.canPlayVideos?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(c.playbutton),onClick:r[0]||(r[0]=(...g)=>c.onclickPlayVideos&&c.onclickPlayVideos(...g))},f3t,2)):t.createCommentVNode("",!0),i.dateGame!=""?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(c.date)},t.toDisplayString(i.dateGame),3)):t.createCommentVNode("",!0),i.matchday!=""&&i.seasonName!=""?(t.openBlock(),t.createElementBlock("div",{key:2,class:t.normalizeClass(c.containerinfogame)},[i.matchday!=""?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(c.matchcontainer)},t.toDisplayString(i.matchday),3)):t.createCommentVNode("",!0),i.seasonName!=""?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(c.seasoncontainer)},t.toDisplayString(i.seasonName),3)):t.createCommentVNode("",!0)],2)):t.createCommentVNode("",!0),m3t,t.createElementVNode("img",{src:i.background,alt:"",class:"bkg-blackwhite position-image"},null,8,g3t),t.createElementVNode("div",{class:t.normalizeClass([c.baselogo,"position-image"])},null,2),t.createElementVNode("div",{class:t.normalizeClass(c.baselogoright)},null,2),y3t,v3t,t.createElementVNode("img",{src:i.logoHome,alt:"",class:t.normalizeClass(c.teamlogo)},null,10,_3t),t.createElementVNode("img",{src:i.logoAway,alt:"",class:t.normalizeClass(c.logoright)},null,10,b3t),t.createElementVNode("div",x3t,[t.createElementVNode("span",{class:t.normalizeClass(c.secondline)},t.toDisplayString(i.score),3),t.createElementVNode("div",{class:t.normalizeClass(c.titlename)},t.toDisplayString(i.titleCategory),3)])],2)}const k3t=$i(uE,[["render",w3t],["__scopeId","data-v-ec876074"]]),e0a="";let zH=null;const C3t={components:{GSCThumbnailHighlightGameHistoric:k3t},props:{game:{type:Object,default:()=>{}},canPlayVideos:{type:Boolean,default:!1}},watch:{},data(){return{lastDataGameUrl:"",dataProminent:[],gameInfo:{},gamesContainerWidth:0,item:{backgroundhome:"",backgroundaway:"",logohome:"",logoaway:"",background:"",match:"",seasonname:"",score:""},tournamentId:0,token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"}},computed:{},methods:{onclickPlayVideos(e){var r=[];e.type==2?e.data.position_id==1?e.data.category==0?r=[55,324,323,608,39,774,802,52,53,40,54]:r=e.data.category:e.data.category==0?r=[12,35,10,27,607,61,519,98,101,109,112,121,122,127,128,135,136,141,142,161,170,179,702,730,466,217,211,232,235,239,242,282,284,289,291,296,485,486,487,488,14,15,257]:r=e.data.category:e.type==3?e.data.category==0?r=[607,608,12,55,54,35,14,52,15,53,466,477,40,257,39]:r=e.data.category:e.data.category!=0?r=e.data.category:r=[607,608,12,55,54,35,14,52,15,53,466,477];const i=[1,2,3];let B={seasonId:e.data.season_id,mainSectionType:1,playListType:e.type,categoryIds:r,gameIdsToFilter:e.data.game_id?[e.data.game_id]:null,playerIds:e.data.position_id!=1?e.data.player_id?[e.data.player_id]:[]:[],goalkeeperIds:e.data.position_id==1?e.data.player_id?[e.data.player_id]:[]:[],teamId:e.data.team_id?e.data.team_id:0,matchResult:e.data.matchResult?[e.data.matchResult]:i,playData:{},advancedFilter:{playListTitle:""}};e.data.category!==0&&(B.advancedFilter.mainCategoryId=e.data.category),this.$emit("openmedia",B)},async fillData(){const e="https://fxtcaw9tw6.execute-api.us-east-2.amazonaws.com/prod/historic/games/"+this.game.gameId;if(this.lastDataGameUrl!==e){this.$emit("loading",!0),this.lastDataGameUrl=e;const r=$c.create({headers:{Authorization:`${this.token}`}}),i=await r.get("https://8tvo5bp9ai.execute-api.us-west-2.amazonaws.com/prod/gamesBySeason/"+this.game.seasonId),B=await r.get("https://d2oco6mqmc.execute-api.us-west-2.amazonaws.com/prod/teamsBySeason/"+this.game.seasonId);this.tournamentId=B.data.tournament_id;const D=i.data.games.findIndex(g=>g.game_id===this.game.gameId);this.gameInfo=i.data.games[D];const c=await r.get(e);this.item.category=0,this.item.game_id=c.data.game_id,this.item.season_id=this.game.seasonId,this.item.score=c.data.thumbnails[c.data.game_id]?c.data.thumbnails[c.data.game_id].score[0]+" - "+c.data.thumbnails[c.data.game_id].score[1]:"0 - 0",this.item.backgroundhome=c.data.thumbnails[c.data.game_id]?c.data.thumbnails[c.data.game_id].info_thumbnails.home_colors.background_color:"",this.item.backgroundaway=c.data.thumbnails[c.data.game_id]?c.data.thumbnails[c.data.game_id].info_thumbnails.away_colors.background_color:"",this.item.logohome=c.data.thumbnails[c.data.game_id]?"https://az755631.vo.msecnd.net/teams-150/"+c.data.thumbnails[c.data.game_id].home_team+".png":"",this.item.logoaway=c.data.thumbnails[c.data.game_id]?"https://az755631.vo.msecnd.net/teams-150/"+c.data.thumbnails[c.data.game_id].visiting_team+".png":"",this.item.background=c.data.thumbnails[c.data.game_id]?"https://golstatsimages.blob.core.windows.net/images-library/"+c.data.thumbnails[c.data.game_id].info_thumbnails.images.background_default_games[0]:"",this.$emit("loading",!1)}},setUpResizeObserver(){if(window.ResizeObserver)zH=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),zH.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},async mounted(){setTimeout(()=>{this.setUpResizeObserver()},1e3),await this.fillData()}},S3t={class:"highlights-prominent-game",ref:"gamesContainer"},T3t={class:"video-partido-container__highlight"},E3t={key:0,class:"video-partido-container__ribbon"},A3t={key:1,class:"video-partido-container__description"};function M3t(e,r,i,B,D,c){const g=t.resolveComponent("GSCThumbnailHighlightGameHistoric");return t.openBlock(),t.createElementBlock("div",S3t,[t.createElementVNode("div",T3t,[t.createElementVNode("div",{class:"video-partido-container__content2",style:t.normalizeStyle(D.gamesContainerWidth<=680?"display:block; width: 100%":"display:none")},[D.gamesContainerWidth>0?(t.openBlock(),t.createElementBlock("p",{key:0,class:t.normalizeClass(D.gamesContainerWidth>330?"video-partido-container__description2":"video-partido-container__description3")}," Las jugadas más importantes del partido ",2)):t.createCommentVNode("",!0)],4),D.gamesContainerWidth>680?(t.openBlock(),t.createElementBlock("div",{key:0,class:"video-partido-container__content",style:t.normalizeStyle(D.gamesContainerWidth<680?"margin-bottom: 30px;":"margin-bottom: 18px;")},[Object.keys(D.gameInfo).length>0?(t.openBlock(),t.createElementBlock("div",E3t,t.toDisplayString(D.tournamentId!=41?D.gameInfo.matchday_name.replace("Matchday","Jornada").replace("de Final","").replace("Playoffs 1","Cuartos de Final Ida").replace("Playoffs 2","Cuartos de Final Vuelta").replace("Playoffs 3","Semifinal Ida").replace("Playoffs 4","Semifinal Vuelta").replace("Playoffs 5","Final Ida").replace("Playoffs 6","Final Vuelta"):D.gameInfo.matchday_name=="Matchday 10"?"Final":D.gameInfo.matchday_name.replace("Matchday 1","16vos Ida").replace("Matchday 2","16vos Vuelta").replace("Matchday 3","8vos Ida").replace("Matchday 4","8vos Vuelta").replace("Matchday 5","4tos Ida").replace("Matchday 6","4tos Vuelta").replace("Matchday 7","Semifinal Ida").replace("Matchday 8","Semifinal Vuelta").replace("Matchday 9","Final").replace("Matchday 10","Final")),1)):t.createCommentVNode("",!0),t.createElementVNode("h2",{class:t.normalizeClass(D.gamesContainerWidth>865?"video-partido-container__title":"video-partido-container__titletablet")}," HIGHLIGHTS DEL ",2),t.createElementVNode("h2",{class:t.normalizeClass(D.gamesContainerWidth>865?"video-partido-container__title":"video-partido-container__titletablet")}," PARTIDO ",2),D.gamesContainerWidth>=645?(t.openBlock(),t.createElementBlock("p",A3t," Las jugadas más importantes del partido ")):t.createCommentVNode("",!0)],4)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(D.gamesContainerWidth>865?"video-partido-container__image":"video-partido-container__image2")},[D.item.background!=""?(t.openBlock(),t.createBlock(g,{key:0,"color-background-home":D.item.backgroundhome,"color-background-away":D.item.backgroundaway,"logo-home":D.item.logohome,"logo-away":D.item.logoaway,"is-live":!0,"can-play-videos":i.canPlayVideos,background:D.item.background,matchday:D.item.match,"season-name":D.item.seasonname,onOnclickPlayVideos:r[0]||(r[0]=a=>c.onclickPlayVideos({data:D.item,type:1})),score:D.item.score},null,8,["color-background-home","color-background-away","logo-home","logo-away","can-play-videos","background","matchday","season-name","score"])):t.createCommentVNode("",!0)],2)])],512)}const I3t=$i(C3t,[["render",M3t],["__scopeId","data-v-651fe3fb"]]),t0a="";let OH=null;const hE={components:{},props:{titleCategory:{type:String,default:"RESUMEN"},dateGame:{type:String,default:""},colorBackgroundHome:{type:String,default:"#000000"},colorBackgroundAway:{type:String,default:"#FFFFFF"},isLive:{type:Boolean,default:!1},logoHome:{type:String,default:""},game:{type:Object,default:()=>{}},matchday:{type:String,default:""},seasonName:{type:String,default:""},logoAway:{type:String,default:""},score:{type:String,default:""},background:{type:String,default:""}},data(){return{gamesContainerWidth:0}},computed:{date(){const e=this.gamesContainerWidth;return e<=400?"date400":e<=540?"date540":e<=650?"date650":"date"},seasoncontainer(){const e=this.gamesContainerWidth;return e<=400?"season-container400":e<=540?"season-container540":e<=650?"season-container650":"season-container"},matchcontainer(){const e=this.gamesContainerWidth;return e<=400?"match-container400":e<=540?"match-container540":e<=650?"match-container650":"match-container"},containerinfogame(){const e=this.gamesContainerWidth;return e<=400?"container-info-game400":e<=540?"container-info-game540":e<=650?"container-info-game650":"container-info-game"},playbutton(){const e=this.gamesContainerWidth;return e<=400?"play-button400":e<=540?"play-button540":e<=650?"play-button650":"play-button"},baselogo(){const e=this.gamesContainerWidth;return e<=400?"base-logo400":e<=540?"base-logo540":e<=650?"base-logo650":"base-logo"},baselogoright(){const e=this.gamesContainerWidth;return e<=400?"base-logo-right400":e<=540?"base-logo-right540":e<=650?"base-logo-right650":"base-logo-right"},thumbnailhighlights(){const e=this.gamesContainerWidth;return e<=400?"thumbnail-highlights400":e<=540?"thumbnail-highlights540":e<=650?"thumbnail-highlights650":"thumbnail-highlights"},teamlogo(){const e=this.gamesContainerWidth;return e<=400?"team-logo400":e<=540?"team-logo540":e<=650?"team-logo650":"team-logo"},logoright(){const e=this.gamesContainerWidth;return e<=400?"logo-right400":e<=540?"logo-right540":e<=650?"logo-right650":"logo-right"},secondline(){const e=this.gamesContainerWidth;return e<=400?"second-line400":e<=540?"second-line540":e<=650?"second-line650":"second-line"},titlename(){const e=this.gamesContainerWidth;return e<=400?"title-name400":e<=540?"title-name540":e<=650?"title-name650":"title-name"}},methods:{onclickPlayVideos(){this.$emit("onclickPlayVideos")},setUpResizeObserver(){if(window.ResizeObserver)OH=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),OH.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},FH=()=>{t.useCssVars(e=>({"051a0872":e.colorBackgroundHome+"45","80f208fa":e.colorBackgroundAway+"45","9087fefc":e.colorBackgroundHome,"908e22de":e.colorBackgroundAway}))},LH=hE.setup;hE.setup=LH?(e,r)=>(FH(),LH(e,r)):FH;const Uy=e=>(t.pushScopeId("data-v-84f38fde"),e=e(),t.popScopeId(),e),P3t={key:0,class:"icon-live"},B3t=[Uy(()=>t.createElementVNode("span",{class:"circle-live"},null,-1)),Uy(()=>t.createElementVNode("span",{style:{"margin-left":"3px"}},"LIVE",-1))],N3t=[Uy(()=>t.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},[t.createElementVNode("path",{d:"M6.6041 22.8554C6.42105 22.7512 6.26805 22.5956 6.1616 22.4053C6.05515 22.215 5.99927 21.9973 6.00001 21.7755V2.22137C6.00026 2.00039 6.0565 1.78362 6.16274 1.59409C6.26899 1.40456 6.42127 1.24936 6.6034 1.14499C6.78553 1.04062 6.9907 0.990981 7.1971 1.00135C7.4035 1.01171 7.60342 1.0817 7.77561 1.20386L21.4907 10.9821C21.6473 11.0935 21.7758 11.2446 21.8646 11.4219C21.9535 11.5992 22 11.7973 22 11.9985C22 12.1996 21.9535 12.3977 21.8646 12.575C21.7758 12.7523 21.6473 12.9034 21.4907 13.0148L7.77561 22.7954C7.60369 22.9178 7.40392 22.988 7.19761 22.9986C6.9913 23.0092 6.78617 22.9597 6.6041 22.8554ZM7.14347 21.7779L20.8585 11.9996L7.14347 21.7779Z",fill:"#CBEE6B"})],-1))],z3t=Uy(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/paper-texture.png",alt:"",class:"paper-texture position-image"},null,-1)),O3t=["src"],F3t=Uy(()=>t.createElementVNode("div",{class:"gradient-back position-image"},null,-1)),L3t=Uy(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/halftone-texture.png",alt:"",class:"halftone-texture position-image"},null,-1)),D3t=["src"],R3t=["src"],V3t={class:"text-container"};function $3t(e,r,i,B,D,c){return t.openBlock(),t.createElementBlock("div",{ref:"gamesContainer",class:t.normalizeClass(c.thumbnailhighlights)},[i.isLive&&i.game.game_status!=0?(t.openBlock(),t.createElementBlock("div",P3t,B3t)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(c.playbutton),onClick:r[0]||(r[0]=(...g)=>c.onclickPlayVideos&&c.onclickPlayVideos(...g))},N3t,2),i.dateGame!=""?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(c.date)},t.toDisplayString(i.dateGame),3)):t.createCommentVNode("",!0),i.matchday!=""&&i.seasonName!=""?(t.openBlock(),t.createElementBlock("div",{key:2,class:t.normalizeClass(c.containerinfogame)},[i.matchday!=""?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(c.matchcontainer)},t.toDisplayString(i.matchday),3)):t.createCommentVNode("",!0),i.seasonName!=""?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(c.seasoncontainer)},t.toDisplayString(i.seasonName),3)):t.createCommentVNode("",!0)],2)):t.createCommentVNode("",!0),z3t,t.createElementVNode("img",{src:i.background,alt:"",class:"bkg-blackwhite position-image"},null,8,O3t),t.createElementVNode("div",{class:t.normalizeClass([c.baselogo,"position-image"])},null,2),t.createElementVNode("div",{class:t.normalizeClass(c.baselogoright)},null,2),F3t,L3t,t.createElementVNode("img",{src:i.logoHome,alt:"",class:t.normalizeClass(c.teamlogo)},null,10,D3t),t.createElementVNode("img",{src:i.logoAway,alt:"",class:t.normalizeClass(c.logoright)},null,10,R3t),t.createElementVNode("div",V3t,[t.createElementVNode("span",{class:t.normalizeClass(c.secondline)},t.toDisplayString(i.score),3),t.createElementVNode("div",{class:t.normalizeClass(c.titlename)},t.toDisplayString(i.titleCategory),3)])],2)}const j3t=$i(hE,[["render",$3t],["__scopeId","data-v-84f38fde"]]),i0a="";let DH=null;const U3t={components:{GSCThumbnailHighlightGameHistoricLive:j3t},props:{timeLiveHighlightsProminentAndVideo:{type:Number,default:6e4},game:{type:Object,default:()=>{}},canPlayVideos:{type:Boolean,default:!1}},watch:{game:{deep:!0,immediate:!0,handler(e){this.fetchLiveData(e.gameId),e.is_live==1&&(this.intervalidhighlive=setInterval(()=>{this.fetchLiveData(e.gameId)},this.timeLiveHighlightsProminentAndVideo),this.$emit("intervalidhighlive",this.intervalidhighlive))}}},data(){return{printData:[],gameInfo:{},intervalidhighlive:null,informationBestPlaysPlayers:[],informationBestPlaysTeamHome:[],informationBestPlaysTeamAway:[],gamesContainerWidth:0,tournamentId:0,showHighlight:!1,showHighlightGoals:!1,item:{backgroundhome:"",backgroundaway:"",logohome:"",logoaway:"",background:"",match:"",seasonname:"",score:""},token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"}},computed:{},methods:{async fetchLiveData(){await this.getLiveHighlights()},onclickPlayVideos(e){var r=[];e.type==2?e.data.position_id==1?e.data.category==0?r=[55,324,323,608,39,774,802,52,53,40,54]:r=e.data.category:e.data.category==0?r=[12,35,10,27,607,61,519,98,101,109,112,121,122,127,128,135,136,141,142,161,170,179,702,730,466,217,211,232,235,239,242,282,284,289,291,296,485,486,487,488,14,15,257]:r=e.data.category:e.type==3?e.data.category==0?r=[607,608,12,55,54,35,14,52,15,53,466,477,40,257,39]:r=e.data.category:e.type==4?r=[12,55,"35_r","54_r"]:e.data.category!=0?r=e.data.category:r=[607,608,12,55,54,35,14,52,15,53,466,477];const i=[1,2,3];let B={seasonId:e.data.season_id,mainSectionType:1,playListType:e.type,categoryIds:r,gameIdsToFilter:e.data.game_id?[e.data.game_id]:null,playerIds:e.data.position_id!=1?e.data.player_id?[e.data.player_id]:[]:[],goalkeeperIds:e.data.position_id==1?e.data.player_id?[e.data.player_id]:[]:[],teamId:e.data.team_id?e.data.team_id:0,matchResult:e.data.matchResult?[data.matchResult]:i,playData:{},advancedFilter:{playListTitle:""}};e.data.category!==0&&(B.advancedFilter.mainCategoryId=e.data.category),this.$emit("openmedia",B)},async getLiveHighlights(){const r=await $c.create({headers:{Authorization:`${this.token}`}}).get("https://fxtcaw9tw6.execute-api.us-east-2.amazonaws.com/prod/live/historic/games/"+this.game.gameId);r.data!=""&&(this.showHighlight=r.data==""?!1:r.data.plays.length>0,this.showHighlightGoals=r.data==""?!1:r.data.plays.filter(i=>i[0]===12).length>0,this.item.category=0,this.item.game_id=r.data.game_id,this.item.season_id=this.game.seasonId,this.item.score=r.data.thumbnails[r.data.game_id].score,this.item.backgroundhome=r.data.thumbnails[r.data.game_id].info_thumbnails.home_colors.background_color,this.item.backgroundaway=r.data.thumbnails[r.data.game_id].info_thumbnails.away_colors.background_color,this.item.logohome="https://az755631.vo.msecnd.net/teams-150/"+r.data.thumbnails[r.data.game_id].home_team+".png",this.item.logoaway="https://az755631.vo.msecnd.net/teams-150/"+r.data.thumbnails[r.data.game_id].visiting_team+".png",this.item.background="https://golstatsimages.blob.core.windows.net/images-library/"+r.data.thumbnails[r.data.game_id].info_thumbnails.images.background_default_games[0])},setUpResizeObserver(){if(window.ResizeObserver)DH=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainerlivehigh.clientWidth}),DH.observe(this.$refs.gamesContainerlivehigh);else throw new Error("Resize observer not supported!")}},async mounted(){setTimeout(()=>{this.setUpResizeObserver()},1e3)}},h0=e=>(t.pushScopeId("data-v-7682cbf3"),e=e(),t.popScopeId(),e),G3t={class:"highlights-prominent-game",ref:"gamesContainerlivehigh"},H3t={class:"video-partido-container__highlight"},W3t={class:"video-partido-container__content"},q3t=h0(()=>t.createElementVNode("div",{class:"video-partido-container__ribbon"},"• LIVE",-1)),Y3t=h0(()=>t.createElementVNode("h2",{class:"video-partido-container__title"},"HIGHLIGHTS AL",-1)),X3t=h0(()=>t.createElementVNode("h2",{class:"video-partido-container__title"},"MOMENTO",-1)),Z3t=h0(()=>t.createElementVNode("p",{class:"video-partido-container__description"}," Las jugadas más destacadas hasta el momento ",-1)),J3t=h0(()=>t.createElementVNode("h2",{class:"video-partido-container__title"},"HIGHLIGHTS DEL",-1)),K3t=h0(()=>t.createElementVNode("h2",{class:"video-partido-container__title"},"PARTIDO",-1)),Q3t=h0(()=>t.createElementVNode("p",{class:"video-partido-container__description"},"Las jugadas más destacadas del partido",-1)),ewt=h0(()=>t.createElementVNode("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M2.30205 11.4277C2.21053 11.3756 2.13403 11.2978 2.0808 11.2027C2.02757 11.1075 1.99964 10.9986 2 10.8878V1.11068C2.00013 1.0002 2.02825 0.891808 2.08137 0.797044C2.13449 0.70228 2.21063 0.624681 2.3017 0.572496C2.39276 0.520311 2.49535 0.495491 2.59855 0.500673C2.70175 0.505856 2.80171 0.540848 2.8878 0.601929L9.74533 5.49105C9.82365 5.54675 9.88789 5.62229 9.93232 5.71095C9.97675 5.79961 10 5.89864 10 5.99923C10 6.09982 9.97675 6.19885 9.93232 6.28751C9.88789 6.37617 9.82365 6.45171 9.74533 6.50741L2.8878 11.3977C2.80184 11.4589 2.70196 11.494 2.5988 11.4993C2.49565 11.5046 2.39309 11.4798 2.30205 11.4277ZM2.57173 10.8889L9.42926 5.99981L2.57173 10.8889Z",fill:"#CBEE6B"})],-1)),twt={class:"video-partido-container__image"};function awt(e,r,i,B,D,c){const g=t.resolveComponent("GSCThumbnailHighlightGameHistoricLive");return t.openBlock(),t.createElementBlock("div",G3t,[t.withDirectives(t.createElementVNode("div",H3t,[t.createElementVNode("div",W3t,[i.game.game_status!=0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[q3t,Y3t,X3t,Z3t],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[J3t,K3t,Q3t],64)),t.createElementVNode("button",{class:"video-partido-container__button",onClick:r[0]||(r[0]=a=>c.onclickPlayVideos({data:D.item,type:1}))},[ewt,t.createTextVNode(" Reproducir ahora ")])]),t.createElementVNode("div",twt,[t.createVNode(g,{"is-live":!0,game:i.game,"color-background-home":D.item.backgroundhome,"color-background-away":D.item.backgroundaway,"logo-home":D.item.logohome,"logo-away":D.item.logoaway,background:D.item.background,onOnclickPlayVideos:r[1]||(r[1]=a=>c.onclickPlayVideos({data:D.item,type:1})),matchday:D.item.match,"season-name":D.item.seasonname,score:D.item.score},null,8,["game","color-background-home","color-background-away","logo-home","logo-away","background","matchday","season-name","score"])])],512),[[t.vShow,i.canPlayVideos&&D.showHighlight]])],512)}const nwt=$i(U3t,[["render",awt],["__scopeId","data-v-7682cbf3"]]),pE="/play-icn.svg",o0a="",rwt={name:"TooltipEmpty",props:{data:{type:Object,required:!0}},computed:{showTooltip(){return{visible:this.data.visible}}},methods:{tooltipClick:function(){},closeClick:function(){this.$emit("close")}}};function iwt(e,r,i,B,D,c){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["back-tooltip",c.showTooltip])},[t.createElementVNode("div",{class:t.normalizeClass(["box-tooltip",c.showTooltip]),onClick:r[1]||(r[1]=(...g)=>c.tooltipClick&&c.tooltipClick(...g))},[t.createElementVNode("span",{role:"button",class:"box-tooltip-close",onClick:r[0]||(r[0]=(...g)=>c.closeClick&&c.closeClick(...g))},"×"),t.renderSlot(e.$slots,"default",{},void 0,!0)],2)],2)}const owt=$i(rwt,[["render",iwt],["__scopeId","data-v-b5f07af8"]]),s0a="",swt=["id"],lwt={class:"game-event__minute"},cwt={class:"game-event__icon"},dwt=["src"],uwt="/images/events/",hwt=$i({__name:"GameEvent",props:{gameEvent:{type:Object,default:()=>{}}},emits:["click-event"],setup(e,{emit:r}){const i=e,B=t.computed(()=>({"--icon-bottom":i.gameEvent.isHomeTeam?"30px":"-5px","--border-color":i.gameEvent.isSelected?"#336dff":"#747c83","--background-color":i.gameEvent.isSelected?"#336dff":"#0d1d29"})),D=t.computed(()=>{let g="";return i.gameEvent.category_id===18?g="icn-tiros-de-esquina.svg":i.gameEvent.category_id===20?g="icn-tiro-a-porteria.svg":i.gameEvent.category_id===10?g="icn-cambio.svg":i.gameEvent.category_id===21?g="icn-falta.svg":i.gameEvent.category_id===27?g="atajada.svg":i.gameEvent.category_id===17?g="fuera-de-lugar.svg":i.gameEvent.category_id===4||i.gameEvent.category_id===13||i.gameEvent.category_id===14||i.gameEvent.category_id===16||i.gameEvent.category_id===6&&i.gameEvent.event_type_id===1||i.gameEvent.category_id===5&&i.gameEvent.event_type_id===1||i.gameEvent.category_id===1&&i.gameEvent.event_type_id===1||i.gameEvent.category_id===2&&i.gameEvent.event_type_id===1||i.gameEvent.category_id===3&&i.gameEvent.event_type_id===1||i.gameEvent.category_id===7&&i.gameEvent.event_type_id===1||i.gameEvent.category_id===12&&i.gameEvent.event_type_id===1?g="gol.svg":i.gameEvent.category_id==30||i.gameEvent.category_id==31||i.gameEvent.category_id==32||i.gameEvent.category_id==33||i.gameEvent.category_id==34||i.gameEvent.category_id==35||i.gameEvent.category_id==36||i.gameEvent.category_id==37||i.gameEvent.category_id==38||i.gameEvent.category_id==39||i.gameEvent.category_id==40?g="var.png":i.gameEvent.category_id===28?g="tiempo-agregado.svg":i.gameEvent.category_id===26?g="jugada-peligrosa.svg":i.gameEvent.category_id===22?g="penal-marcado.svg":i.gameEvent.category_id===15||i.gameEvent.category_id===23?g="penal-fallado.svg":i.gameEvent.category_id===8?g="icn-tarjeta-amarilla.svg":i.gameEvent.category_id===9?g="icn-tarjeta-roja.svg":g="generic.svg",`${uwt}${g}`});function c(){r("click-event",i.gameEvent)}return(g,a)=>(t.openBlock(),t.createElementBlock("div",{id:i.gameEvent.play_id,class:"game-event",onClick:c,style:t.normalizeStyle(B.value)},[t.createElementVNode("div",lwt,[t.createElementVNode("div",null,t.toDisplayString(e.gameEvent.minute)+"'",1)]),t.createElementVNode("div",cwt,[t.createElementVNode("img",{src:D.value},null,8,dwt)])],12,swt))}},[["__scopeId","data-v-f972a06c"]]),c0a="",pwt=e=>(t.pushScopeId("data-v-df0b18c7"),e=e(),t.popScopeId(),e),fwt={class:"events-line"},mwt={class:"events-line__events"},gwt=pwt(()=>t.createElementVNode("div",{class:"events-line__events__line"},null,-1)),ywt=$i({__name:"EventsLine",props:{gameEvents:{type:Array,default:()=>[]}},emits:["click-event"],setup(e,{emit:r}){function i(B){r("click-event",B)}return(B,D)=>(t.openBlock(),t.createElementBlock("div",fwt,[t.createVNode(t.unref(Wv),{backgroundColor:"#172531",pxScroll:260,arrowsPosition:"absolute",arrowsScrollHide:!0,arrowsBackground:"rgba(255,255,255,.16)",arrowsContainerBgL:"none",arrowsContainerBgR:"none",arrowsMargin:0,arrowsRadius:"50%",arrowsBorder:"#ddd"},{default:t.withCtx(()=>[t.createElementVNode("div",mwt,[gwt,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.gameEvents,c=>(t.openBlock(),t.createBlock(hwt,{key:c.id,"game-event":c,onClickEvent:i},null,8,["game-event"]))),128))])]),_:1})]))}},[["__scopeId","data-v-df0b18c7"]]),u0a="",y_=e=>(t.pushScopeId("data-v-e5f783e5"),e=e(),t.popScopeId(),e),vwt={class:"tooltip-data"},_wt=["src"],bwt=y_(()=>t.createElementVNode("div",{class:"game-events__title-left-padding"},null,-1)),xwt=y_(()=>t.createElementVNode("div",{class:"game-events__title"},"Eventos",-1)),wwt={class:"game-events__team-logo"},kwt=["src"],Cwt={class:"game-events__event-info"},Swt={key:0,class:"game-events__event-info__line"},Twt={key:1,class:"game-events__event-info__info"},Ewt={class:"game-events__event-info__info__player-photo"},Awt={key:0,class:"game-events__event-info__info__player-photo__img"},Mwt=["src"],Iwt={class:"game-events__event-info__info__event-name"},Pwt={class:"game-events__event-info__info__player-name"},Bwt=[y_(()=>t.createElementVNode("img",{src:pE,alt:""},null,-1))],Nwt=y_(()=>t.createElementVNode("div",{class:"game-events__events-padding"},null,-1)),zwt={class:"game-events__events"},Owt={class:"game-events__team-logo"},Fwt=["src"],Lwt={class:"game-events__event-info"},Dwt={key:0,class:"game-events__event-info__line"},Rwt={key:1,class:"game-events__event-info__info"},Vwt={class:"game-events__event-info__info__player-photo"},$wt={key:0,class:"game-events__event-info__info__player-photo__img"},jwt=["src"],Uwt={class:"game-events__event-info__info__event-name"},Gwt={class:"game-events__event-info__info__player-name"},Hwt=[y_(()=>t.createElementVNode("img",{src:pE,alt:""},null,-1))],Wwt="https://11rcgkydx3.execute-api.us-east-2.amazonaws.com/prod/games/",qwt=$i({__name:"GameEvents",props:{game:{type:Object,default:()=>({})},widthScreen:{type:Number,default:0},token:{type:String,default:""},canPlayVideos:{type:Boolean,default:!0},gameEventsIntervalMinutes:{type:Number,default:1}},emits:["play-video"],setup(e,{emit:r}){const i=e;let B=null,D=0;const c=t.ref([]),g=t.ref(new Map),a=t.ref(""),y=t.ref(null),f=t.ref({visible:!1,link:""}),n=t.ref(new Set),v=t.ref(0),_=t.computed(()=>i.game.is_live||i.game.game_status===0);t.watch(()=>i.game,(w,x)=>{w&&w.gameId!==D?(n.value.clear(),D=w.gameId,o(),l(w.gameId,w.is_live&&w.game_status===4)):w&&w.is_live&&(!x||!x.is_live)?l(w.gameId,!0):w&&!w.is_live&&x.is_live&&o()},{deep:!0,immediate:!0}),t.watch(()=>a.value,(w,x)=>{if(w!==x){const S=g.value.get(x),C=g.value.get(w);if(S&&(S.isSelected=!1),C){if(!C.playerShortName){const[T,k]=C.player_name.split(","),A=T.split(" ");let E="";for(const M of A)if(E+=` ${M}`,M.length>3)break;C.playerShortName=k&&T?`${k.trim().charAt(0)}.${E}`:""}C.isSelected=!0,y.value=C}}});function p(w){B=setInterval(()=>{l(w)},1e3*60*i.gameEventsIntervalMinutes)}async function l(w,x=!1){try{let S=await d(w),C=!1;w!==v.value&&(c.value=[],g.value=new Map,a.value="",n.value.clear(),v.value=w);let T=S.filter(k=>{const A=n.value.has(k.play_id);return A||n.value.add(k.play_id),!A});T&&(T=T.reduce((k,A)=>(C=A.game_finished,A.team_id&&(A.isHomeTeam=A.team_id===i.game.homeTeam.team_id,k.push(A),g.value.set(A.play_id,A)),k),[]),s(T).forEach(k=>{_.value?c.value.unshift(k):c.value.push(k)})),c.value&&c.value.length&&(_.value||!a.value&&c.value.length)&&(a.value=c.value[0].play_id),x&&!C?p(w):C&&o()}catch(S){console.error(S)}}function o(){B&&(clearInterval(B),B=null)}function s(w){return w.sort((x,S)=>u(x.matchlapse)+Number(x.minute)-(u(S.matchlapse)+Number(S.minute)))}function u(w){let x=0;switch(w){case 1:x=0;break;case 2:x=45;break;case 3:x=90;break;case 4:x=105;break;case 5:x=120;break}return x}async function d(w){try{const S=(await $c.get(`${Wwt}${w}/timeline`,{headers:{Authorization:i.token}})).data;return S?S.plays||[]:[]}catch(x){throw new Error(x)}}function h(w){a.value=w.play_id}function m(){i.canPlayVideos&&y.value.play_id&&r("play-video",{categoryId:y.value.main_category_id,playId:y.value.play_id})}function b(){f.value.visible=!1,f.value.link=""}return t.onBeforeUnmount(()=>{o()}),(w,x)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createVNode(owt,{data:f.value,onClose:b},{default:t.withCtx(()=>[t.createElementVNode("div",vwt,[t.createElementVNode("div",null,[t.createElementVNode("video",{class:"tooltip-video",controls:"",autoplay:"",src:f.value.link,format:"video/mp4"},null,8,_wt)])])]),_:1},8,["data"]),t.createElementVNode("div",{class:t.normalizeClass(e.widthScreen>920?"game-events":"game-events__mobile")},[bwt,xwt,t.createElementVNode("div",wwt,[e.game&&e.game.homeTeam?(t.openBlock(),t.createElementBlock("img",{key:0,class:"game-events__team-logo__img",src:e.game.homeTeam.logo,alt:"team-logo"},null,8,kwt)):t.createCommentVNode("",!0)]),t.createElementVNode("div",Cwt,[y.value&&y.value.isHomeTeam?(t.openBlock(),t.createElementBlock("div",Swt)):t.createCommentVNode("",!0),y.value&&y.value.isHomeTeam?(t.openBlock(),t.createElementBlock("div",Twt,[t.createElementVNode("div",Ewt,[y.value.player_id?(t.openBlock(),t.createElementBlock("div",Awt,[t.createElementVNode("img",{src:`https://az755631.vo.msecnd.net/players-profile/${y.value.player_id}.png`,alt:""},null,8,Mwt)])):t.createCommentVNode("",!0)]),t.createElementVNode("div",Iwt,t.toDisplayString(y.value.event_type_id===1?y.value.event_type_name:y.value.category_name),1),t.createElementVNode("div",Pwt," | "+t.toDisplayString(y.value.playerShortName),1),e.canPlayVideos&&y.value.play_id?(t.openBlock(),t.createElementBlock("div",{key:0,role:"button",class:"game-events__event-info__info__button-play",onClick:m},Bwt)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)]),Nwt,t.createElementVNode("div",zwt,[t.createVNode(ywt,{"game-events":c.value,onClickEvent:h},null,8,["game-events"])]),t.createElementVNode("div",Owt,[e.game&&e.game.awayTeam?(t.openBlock(),t.createElementBlock("img",{key:0,class:"game-events__team-logo__img",src:e.game.awayTeam.logo,alt:"team-logo"},null,8,Fwt)):t.createCommentVNode("",!0)]),t.createElementVNode("div",Lwt,[y.value&&!y.value.isHomeTeam?(t.openBlock(),t.createElementBlock("div",Dwt)):t.createCommentVNode("",!0),y.value&&!y.value.isHomeTeam?(t.openBlock(),t.createElementBlock("div",Rwt,[t.createElementVNode("div",Vwt,[y.value.player_id?(t.openBlock(),t.createElementBlock("div",$wt,[t.createElementVNode("img",{src:`https://az755631.vo.msecnd.net/players-profile/${y.value.player_id}.png`,alt:""},null,8,jwt)])):t.createCommentVNode("",!0)]),t.createElementVNode("div",Uwt,t.toDisplayString(y.value.event_type_id===1?y.value.event_type_name:y.value.category_name),1),t.createElementVNode("div",Gwt," | "+t.toDisplayString(y.value.playerShortName),1),e.canPlayVideos&&y.value.play_id?(t.openBlock(),t.createElementBlock("div",{key:0,role:"button",class:"game-events__event-info__info__button-play",onClick:m},Hwt)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)])],2)],64))}},[["__scopeId","data-v-e5f783e5"]]),m0a="",Ywt={class:"toggle-buttons__background"},Xwt=["onClick"],Zwt={key:0,class:"toggle-buttons__button__img"},Jwt=["src"],v4=$i({__name:"ToggleButtons",props:{buttons:{type:Array,required:!0},selectedButtonIndex:{type:Number,default:0},height:{type:String,default:"29px"},width:{type:String,default:"100%"},fontSize:{type:String,default:"12px"},fontFamily:{type:String,default:"Poppins-Medium"},borderRadius:{type:String,default:"8px"},mainBackgroundColor:{type:String,default:"#364448"},mainBorderColor:{type:String,default:"#9AA1A3"},mainBorderWidth:{type:String,default:"0.5px"},activeBorderColor:{type:String,default:"#cbee6b"},activeBorderWidth:{type:String,default:"1px"},activeBackgroundColor:{type:String,default:"#2e3b46"},activeFontColor:{type:String,default:"#FFFFFF"}},emits:["change"],setup(e,{emit:r}){const i=e;t.useCssVars(g=>({29153391:e.height,"1aee961c":e.width,"738679b2":e.mainBackgroundColor,f3cab270:e.borderRadius,"0ec0fe57":e.mainBorderWidth,"0da9fff4":e.mainBorderColor,"68dc0c06":e.fontFamily,f9ef5e4c:e.fontSize,"5713c56a":e.activeBorderWidth,"55fcc707":e.activeBorderColor,"38297f45":e.activeBackgroundColor,"424728c4":e.activeFontColor}));const B=t.ref(i.selectedButtonIndex),D=t.computed(()=>({"--grid-template-columns":`repeat(${i.buttons.length}, 1fr)`}));t.watch(()=>i.selectedButtonIndex,g=>{B.value=g}),t.watch(B,(g,a)=>{g!==a&&r("change",{index:g,button:i.buttons[g]})});function c(g){B.value=g}return(g,a)=>(t.openBlock(),t.createElementBlock("div",Ywt,[t.createElementVNode("div",{class:"toggle-buttons",style:t.normalizeStyle(D.value)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.buttons,(y,f)=>(t.openBlock(),t.createElementBlock("div",{key:`b${f}`,class:t.normalizeClass(["toggle-buttons__button",{active:B.value===f,right:y.img&&f>0}]),onClick:n=>c(f)},[y.img?(t.openBlock(),t.createElementBlock("div",Zwt,[t.createElementVNode("img",{src:y.img,alt:""},null,8,Jwt)])):t.createCommentVNode("",!0),t.createElementVNode("div",null,t.toDisplayString(y.text||y),1)],10,Xwt))),128))],4)]))}},[["__scopeId","data-v-ad07815f"]]),y0a="",Kwt="/images/cancha-horizontal-raw.jpg",v0a="",fE=e=>(t.pushScopeId("data-v-cb12065f"),e=e(),t.popScopeId(),e),Qwt={class:"tooltip__content"},e5t={key:0,class:"tooltip__content__category"},t5t={class:"tooltip__content__player"},a5t={class:"tooltip__content__player__name"},n5t={class:"tooltip__content__player__photo"},r5t=["src"],i5t={class:"tooltip__content__minute"},o5t={key:1,class:"tooltip__content__game"},s5t=fE(()=>t.createElementVNode("div",{class:"tooltip__content__game__name"},"Partido:",-1)),l5t={class:"tooltip__content__game__round-abbreviation"},c5t={class:"tooltip__content__game__logo"},d5t=["src"],u5t=fE(()=>t.createElementVNode("div",{class:"tooltip__content__game__vs"},"VS",-1)),h5t={class:"tooltip__content__game__logo"},p5t=["src"],f5t={key:2,class:"tooltip__content__team"},m5t=fE(()=>t.createElementVNode("div",{class:"tooltip__content__team__name"},"Equipo:",-1)),g5t={class:"tooltip__content__team__logo"},y5t=["src"],v5t=$i({__name:"TooltipChalkboard",props:{event:{type:Object,default:()=>({})},position:{type:Object,default:()=>({x:"0",y:"0"})}},emits:["close"],setup(e,{emit:r}){const i=e,B=t.computed(()=>({"--top":i.position.y,"--left":i.position.x})),D=t.computed(()=>`${i.event.player.player_name} ${i.event.player.player_lastname}`),c=t.computed(()=>{const[a]=i.event.momentOfPlay.split(":");return`${Number(a)}'`});function g(){r("close")}return(a,y)=>(t.openBlock(),t.createElementBlock("div",{class:"tooltip",onClick:g,style:t.normalizeStyle(B.value)},[t.createElementVNode("div",Qwt,[e.event.categoryName?(t.openBlock(),t.createElementBlock("div",e5t,t.toDisplayString(e.event.categoryName),1)):t.createCommentVNode("",!0),t.createElementVNode("div",t5t,[t.createElementVNode("div",a5t,t.toDisplayString(D.value),1),t.createElementVNode("div",n5t,[t.createElementVNode("img",{src:e.event.player.photo,alt:""},null,8,r5t)])]),t.createElementVNode("div",i5t,"Minuto: "+t.toDisplayString(c.value),1),e.event.game?(t.openBlock(),t.createElementBlock("div",o5t,[s5t,t.createElementVNode("div",l5t,t.toDisplayString(e.event.game.roundAbbreviation),1),t.createElementVNode("div",c5t,[t.createElementVNode("img",{src:e.event.game.homeTeam.logo,alt:""},null,8,d5t)]),u5t,t.createElementVNode("div",h5t,[t.createElementVNode("img",{src:e.event.game.awayTeam.logo,alt:""},null,8,p5t)])])):(t.openBlock(),t.createElementBlock("div",f5t,[m5t,t.createElementVNode("div",g5t,[t.createElementVNode("img",{src:e.event.team.logo,alt:""},null,8,y5t)])]))])],4))}},[["__scopeId","data-v-cb12065f"]]),_5t=["id"],b5t=["fill"],x5t=["id"],w5t=["fill"],k5t=["stroke-dasharray","x1","y1","x2","y2","marker-end"],C5t=["x","y","stroke-width","fill","stroke"],S5t=["x","y"],T5t={__name:"EventConnection",props:{eventConnection:{type:Object,required:!0},color:{type:String,required:!0},isLastEvent:{type:Boolean,default:!1},mainEventIdSelected:{type:Number,default:0}},setup(e){const r=e,i=t.computed(()=>{const v=[];if(r.eventConnection.hasConnectionPath){const _=r.eventConnection.x1===r.eventConnection.x2&&r.eventConnection.y1===r.eventConnection.y2?1:2;let p=a(r.eventConnection.previousEvent?r.eventConnection.previousEvent.y3:r.eventConnection.y1);const l=y(r.eventConnection.previousEvent?r.eventConnection.previousEvent.x3:r.eventConnection.x1);let o=0,s=0;_===2&&(o=a(r.eventConnection.y2),s=y(r.eventConnection.x2));const u=a(r.eventConnection.y3),d=y(r.eventConnection.x3);_===1?v.push({x1:l,y1:p,x2:d,y2:u}):(v.push({x1:l,y1:p,x2:s,y2:o}),v.push({x1:s,y1:o,x2:d,y2:u}))}return v}),B=t.computed(()=>r.mainEventIdSelected!==0?r.eventConnection.relatedPlayId===r.mainEventIdSelected?1:.1:1),D=t.computed(()=>r.mainEventIdSelected!==0?r.eventConnection.relatedPlayId===r.mainEventIdSelected:!0),c=t.computed(()=>a(r.eventConnection.previousEvent?r.eventConnection.previousEvent.y3:r.eventConnection.y1)),g=t.computed(()=>y(r.eventConnection.previousEvent?r.eventConnection.previousEvent.x3:r.eventConnection.x1));function a(v){return(1-v)*100}function y(v){return v*100}function f(v){Xh.emit("mouse-over-event",{mouseEvent:v,eventConnection:r.eventConnection,position:{x:g.value,y:c.value}})}function n(){Xh.emit("mouse-leave-event",{mainEventId:r.eventConnection.relatedPlayId,eventId:r.eventConnection.playId})}return(v,_)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createElementVNode("defs",null,[t.withDirectives(t.createElementVNode("marker",{id:`a-${e.eventConnection.playId}`,markerWidth:"10",markerHeight:"10",refX:"0",refY:"3",orient:"auto",markerUnits:"strokeWidth",style:t.normalizeStyle({opacity:B.value})},[t.createElementVNode("path",{d:"M0,0 L0,6 L9,3 z",fill:e.color},null,8,b5t)],12,_5t),[[t.vShow,D.value]]),t.withDirectives(t.createElementVNode("marker",{id:`b-${e.eventConnection.playId}`,markerWidth:"4",markerHeight:"4",refX:"2",refY:"2",orient:"auto",markerUnits:"strokeWidth",style:t.normalizeStyle({opacity:B.value})},[t.createElementVNode("circle",{cx:"2",cy:"2",r:"2",fill:e.color},null,8,w5t)],12,x5t),[[t.vShow,D.value]])]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i.value,(p,l)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[p.x1&&p.y1?t.withDirectives((t.openBlock(),t.createElementBlock("line",{key:`${e.eventConnection.playId}-${l}`,style:t.normalizeStyle({stroke:e.color,"stroke-width":2,opacity:B.value}),"stroke-dasharray":l===0&&i.value.length===2?"none":"5,5",x1:`${p.x1}%`,y1:`${p.y1}%`,x2:`${p.x2}%`,y2:`${p.y2}%`,"marker-start":"`url(`#b-${eventConnection.playId}`)`","marker-end":`url(${e.isLastEvent&&l===i.value.length-1?`#a-${e.eventConnection.playId}`:""})`},null,12,k5t)),[[t.vShow,D.value]]):t.createCommentVNode("",!0)],64))),256)),t.withDirectives(t.createElementVNode("g",{onMouseover:f,onMouseleave:n,style:t.normalizeStyle({cursor:"pointer",opacity:B.value})},[t.createElementVNode("rect",{x:`${g.value}%`,y:`${c.value}%`,transform:"translate(-14, -14)",height:"28",width:"28","stroke-width":e.eventConnection.isMainPlay?2:1,fill:e.color,stroke:e.eventConnection.isMainPlay?"#fff":"#999",style:t.normalizeStyle({opacity:B.value}),rx:"14",ry:"14"},null,12,C5t),t.createElementVNode("text",{x:`${g.value}%`,y:`${c.value}%`,"text-anchor":"middle","dominant-baseline":"middle",dy:"1","font-size":"15",fill:"#fff","font-family":"'Poppins-SemiBold', sans-serif",style:t.normalizeStyle({opacity:B.value})},t.toDisplayString(e.eventConnection.player?e.eventConnection.player.jersey:""),13,S5t)],36),[[t.vShow,D.value]])],64))}},E5t={__name:"EventConnections",props:{eventConnections:{type:Object,required:!0},mainEventIdSelected:{type:Number,default:0}},setup(e){const r=e,i=t.computed(()=>r.eventConnections.getEventsConnectionsByEventType()),B=t.computed(()=>r.eventConnections.getTeamColor());return(D,c)=>(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i.value,(g,a)=>(t.openBlock(),t.createBlock(T5t,{key:g.id,color:B.value,"is-last-event":a===i.value.length-1,"event-connection":g,"main-event-id-selected":e.mainEventIdSelected},null,8,["color","is-last-event","event-connection","main-event-id-selected"]))),128))}},b0a="",A5t=e=>(t.pushScopeId("data-v-bc874f69"),e=e(),t.popScopeId(),e),M5t={class:"soccer-chalkboard"},I5t={id:"soccerChalkboardField",class:"soccer-chalkboard__field"},P5t=A5t(()=>t.createElementVNode("img",{src:Kwt,alt:""},null,-1)),B5t={viewBox:"0 0 547 340",fill:"none",xmlns:"http://www.w3.org/2000/svg"},N5t=$i({__name:"SoccerChalkboard",props:{eventsConnections:{type:Array,default:()=>[]},listType:{type:String,default:"events"},playersSelected:{type:Set,default:()=>new Set},teamsSelected:{type:Set,default:()=>new Set}},setup(e){const i=ise()?0:1e3;Xh.on("mouse-over-time-event",_=>{y(_),setTimeout(()=>{y(_)},i)}),Xh.on("mouse-leave-time-event",_=>{setTimeout(()=>{c.value==_&&!B.value&&y(0)},i)}),Xh.on("mouse-over-event",_=>{n(_)}),Xh.on("mouse-leave-event",_=>{setTimeout(()=>{_.eventId===g.value&&v()},i)});const B=t.ref(!1),D=t.ref({}),c=t.ref(0),g=t.ref(0),a=t.ref({x:0,y:0});function y(_){c.value=_}function f(){B.value=!1}function n(_){const l=document.getElementById("soccerChalkboardField");if(l){const o=l.getBoundingClientRect(),s=_.position.x/100*o.width+14,u=_.position.y/100*o.height+14,d=s+170>o.width?o.width-170:s,h=u;c.value=_.eventConnection.relatedPlayId,g.value=_.eventConnection.playId,D.value=_.eventConnection,a.value={x:`${d}px`,y:`${h}px`},B.value=!0}}function v(){B.value=!1,c.value=0}return(_,p)=>(t.openBlock(),t.createElementBlock("div",M5t,[t.createElementVNode("div",I5t,[P5t,(t.openBlock(),t.createElementBlock("svg",B5t,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.eventsConnections,(l,o)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[e.listType==="events"&&l.hasTeam(e.teamsSelected)||e.listType==="players"&&l.hasPlayer(e.playersSelected)?(t.openBlock(),t.createBlock(E5t,{key:o,"event-connections":l,"main-event-id-selected":c.value},null,8,["event-connections","main-event-id-selected"])):t.createCommentVNode("",!0)],64))),256))]))]),B.value?(t.openBlock(),t.createBlock(v5t,{key:0,position:a.value,event:D.value,onClose:f},null,8,["position","event"])):t.createCommentVNode("",!0)]))}},[["__scopeId","data-v-bc874f69"]]),w0a="",RH=e=>(t.pushScopeId("data-v-d484e9ef"),e=e(),t.popScopeId(),e),z5t={class:"events-timeline"},O5t=RH(()=>t.createElementVNode("div",{class:"events-timeline__back-line"},null,-1)),F5t=["onMouseover","onMouseleave"],L5t=["id"],D5t=[RH(()=>t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.77234 0.45166C2.11548 0.45166 0.772339 1.79481 0.772339 3.45166V14.4517C0.772339 16.1085 2.11548 17.4517 3.77234 17.4517H7.96294L10.2723 21.4517L12.5817 17.4517H16.7723C18.4292 17.4517 19.7723 16.1085 19.7723 14.4517V3.45166C19.7723 1.79481 18.4292 0.45166 16.7723 0.45166H3.77234Z"},null,-1))],R5t=["fill"],V5t=["mask"],$5t=["stroke"],j5t=$i({__name:"EventsTimeLine",props:{eventsConnections:{type:Array,default:()=>[]},listType:{type:String,default:"events"},playersSelected:{type:Set,default:()=>new Set},teamsSelected:{type:Set,default:()=>new Set}},setup(e){const r=e,i=["0'","45'","90'"],B=t.computed(()=>r.eventsConnections.reduce((g,a)=>{const y={minute:"0'",left:"0%",color:a.getTeamColor(),fontColor:a.getTeamFontColor(),playId:a.mainPlay.playId,playerId:a.mainPlay.playerId,teamId:a.mainPlay.teamId,relatedPlayId:a.relatedPlayId},[f]=a.mainPlay.momentOfPlay.split(":"),n=parseInt(f);return n>=90?(y.minute=`${n}'`,y.left="100%"):(y.minute=`${n}'`,y.left=`${n/90*100}%`),g.push(y),g},[]));function D(g){Xh.emit("mouse-over-time-event",g.playId)}function c(g){Xh.emit("mouse-leave-time-event",g.playId)}return(g,a)=>(t.openBlock(),t.createElementBlock("div",z5t,[(t.openBlock(),t.createElementBlock(t.Fragment,null,t.renderList(i,(y,f)=>t.createElementVNode("div",{class:"events-timeline__game-time",key:f},t.toDisplayString(y),1)),64)),O5t,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(B.value,(y,f)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[e.listType==="events"&&e.teamsSelected.has(y.teamId)||e.listType==="players"&&e.playersSelected.has(y.playerId)?(t.openBlock(),t.createElementBlock("svg",{key:f,width:"20",height:"22",viewBox:"0 0 20 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:t.normalizeStyle({left:y.left,cursor:"pointer"}),onMouseover:n=>D(y),onMouseleave:n=>c(y)},[t.createElementVNode("mask",{id:y.playId.toString(),fill:"white"},D5t,8,L5t),t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.77234 0.45166C2.11548 0.45166 0.772339 1.79481 0.772339 3.45166V14.4517C0.772339 16.1085 2.11548 17.4517 3.77234 17.4517H7.96294L10.2723 21.4517L12.5817 17.4517H16.7723C18.4292 17.4517 19.7723 16.1085 19.7723 14.4517V3.45166C19.7723 1.79481 18.4292 0.45166 16.7723 0.45166H3.77234Z",fill:y.color},null,8,R5t),t.createElementVNode("path",{d:"M7.96294 17.4517L8.82896 16.9517L8.54029 16.4517H7.96294V17.4517ZM10.2723 21.4517L9.40631 21.9517L10.2723 23.4517L11.1384 21.9517L10.2723 21.4517ZM12.5817 17.4517V16.4517H12.0044L11.7157 16.9517L12.5817 17.4517ZM1.77234 3.45166C1.77234 2.34709 2.66777 1.45166 3.77234 1.45166V-0.54834C1.5632 -0.54834 -0.227661 1.24252 -0.227661 3.45166H1.77234ZM1.77234 14.4517V3.45166H-0.227661V14.4517H1.77234ZM3.77234 16.4517C2.66777 16.4517 1.77234 15.5562 1.77234 14.4517H-0.227661C-0.227661 16.6608 1.5632 18.4517 3.77234 18.4517V16.4517ZM7.96294 16.4517H3.77234V18.4517H7.96294V16.4517ZM7.09691 17.9517L9.40631 21.9517L11.1384 20.9517L8.82896 16.9517L7.09691 17.9517ZM11.1384 21.9517L13.4478 17.9517L11.7157 16.9517L9.40631 20.9517L11.1384 21.9517ZM16.7723 16.4517H12.5817V18.4517H16.7723V16.4517ZM18.7723 14.4517C18.7723 15.5562 17.8769 16.4517 16.7723 16.4517V18.4517C18.9815 18.4517 20.7723 16.6608 20.7723 14.4517H18.7723ZM18.7723 3.45166V14.4517H20.7723V3.45166H18.7723ZM16.7723 1.45166C17.8769 1.45166 18.7723 2.34709 18.7723 3.45166H20.7723C20.7723 1.24252 18.9815 -0.54834 16.7723 -0.54834V1.45166ZM3.77234 1.45166H16.7723V-0.54834H3.77234V1.45166Z",fill:"#172531",mask:`url(#${y.playId})`},null,8,V5t),t.createElementVNode("g",null,[t.createElementVNode("text",{x:"50%",y:"8","text-anchor":"middle","dominant-baseline":"middle",dy:"1","font-size":"9","font-family":"Poppins-Light",stroke:y.fontColor,"stroke-width":"0.7"},t.toDisplayString(y.minute),9,$5t)])],44,F5t)):t.createCommentVNode("",!0)],64))),256))]))}},[["__scopeId","data-v-d484e9ef"]]),hd={All:1,YEAR:2,AGE_RANGE:3,NATIONALITY:4,POSITION:5,ELIGIBILITY:6},U5t=(e,r)=>{const i=e.__vccOpts||e;for(const[B,D]of r)i[B]=D;return i},G5t={key:1},H5t={width:"10",height:"8",viewBox:"0 0 10 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},W5t=["fill"],q5t={key:0,class:"checkbox__teams"},Y5t={class:"checkbox__teams__logo"},X5t=["src"],Z5t={class:"checkbox__teams__logo"},J5t=["src"],K5t={__name:"GSC-Checkbox",props:{width:{type:String,default:"fit-content"},height:{type:String,default:"fit-content"},label:{type:String,default:""},labelWhiteSpace:{type:String,default:"normal"},labelColor:{type:String,default:"white"},fontFamily:{type:String,default:"sans-serif"},labelFontSize:{type:String,default:"12px"},modelValue:{type:Boolean,default:!1},justifyContent:{type:String,default:"flex-start"},alignItems:{type:String,default:"center"},boxBackgroundColor:{type:String,default:"#CBEE6B"},boxValueColor:{type:String,default:"#0d1d29"},boxValue:{type:[String,Number],default:""},boxPosition:{type:String,default:"left",validator(e){return["left","right","top","bottom"].includes(e)}},boxMarginTop:{type:String,default:"0.2em"},boxWidthAndHeight:{type:String,default:"16px"},boxBorderColor:{type:String,default:"#969da2"},boxBorderWidth:{type:String,default:"2px"},boxBorderRadius:{type:String,default:"4px"},boxValueFontSize:{type:String,default:"10px"},boxValueFontFamily:{type:String,default:"sans-serif"},avoidInteraction:{type:Boolean,default:!1},avoidToCheck:{type:Boolean,default:!1},isBoxOnly:{type:Boolean,default:!1},teamsIds:{type:Array,default:()=>null}},emits:["update:modelValue"],setup(e,{emit:r}){const i=e;t.useCssVars(f=>({"6582e90e":e.width,"310b3edf":e.height}));const B=t.ref(!1),D=t.computed(()=>{const f={color:i.boxValueColor,"font-family":i.fontFamily,height:i.boxWidthAndHeight,width:i.boxWidthAndHeight,minWidth:i.boxWidthAndHeight,"border-radius":i.boxBorderRadius,"margin-top":i.boxMarginTop};return B.value?(f["background-color"]=i.boxBackgroundColor,f.border=`solid ${i.boxBorderWidth} ${i.boxBackgroundColor}`):f.border=`solid ${i.boxBorderWidth} ${i.boxBorderColor}`,f}),c=t.computed(()=>({"font-family":i.boxValueFontFamily,"font-size":i.boxValueFontSize,color:i.boxValueColor,"line-height":1})),g=t.computed(()=>{const f={color:i.labelColor,"font-family":i.fontFamily,"font-size":i.labelFontSize,"white-space":i.labelWhiteSpace,"text-align":i.boxPosition==="top"||i.boxPosition==="bottom"?"center":i.boxPosition};return(i.boxPosition==="left"||i.boxPosition==="right")&&(f[`margin-${i.boxPosition}`]=i.isBoxOnly?"0":i.teamsIds?"8px":"10px"),f});t.watch(()=>i.modelValue,f=>{f!==B.value&&(B.value=f)},{immediate:!0});function a(){i.avoidInteraction||!B.value&&i.avoidToCheck||(B.value=!B.value,r("update:modelValue",B.value))}function y(f){return`${{}.TEAM_LOGOS_URL||"https://az755631.vo.msecnd.net/teams-80/"}${f}.png`}return(f,n)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["checkbox",`box-${e.boxPosition}`]),onClick:a},[t.createElementVNode("div",{class:"checkbox__box",style:t.normalizeStyle(D.value)},[B.value?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[i.boxValue?(t.openBlock(),t.createElementBlock("div",{key:0,class:"checkbox__box__value",style:t.normalizeStyle(c.value)},t.toDisplayString(e.boxValue),5)):(t.openBlock(),t.createElementBlock("div",G5t,[(t.openBlock(),t.createElementBlock("svg",H5t,[t.createElementVNode("path",{d:"M9.77994 1.70133L4.10994 7.37133C3.96994 7.51133 3.77994 7.59133 3.57994 7.59133C3.37994 7.59133 3.18994 7.51133 3.04994 7.37133L0.219941 4.54133C-0.0700586 4.25133 -0.0700586 3.77133 0.219941 3.48133C0.509941 3.19133 0.989941 3.19133 1.27994 3.48133L3.57994 5.78133L8.71994 0.641328C9.00994 0.351328 9.48994 0.351328 9.77994 0.641328C10.0699 0.931328 10.0699 1.40133 9.77994 1.70133Z",fill:e.boxValueColor},null,8,W5t)]))]))],64)):t.createCommentVNode("",!0)],4),e.teamsIds&&e.teamsIds.length?(t.openBlock(),t.createElementBlock("div",q5t,[t.createElementVNode("div",Y5t,[t.createElementVNode("img",{src:y(e.teamsIds[0]),alt:""},null,8,X5t)]),t.createElementVNode("div",Z5t,[t.createElementVNode("img",{src:y(e.teamsIds[1]),alt:""},null,8,J5t)])])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"checkbox__label",style:t.normalizeStyle(g.value)},t.toDisplayString(e.label),5)],2))}},Is=U5t(K5t,[["__scopeId","data-v-bcf3bcc6"]]),ml=(e,r)=>{const i=e.__vccOpts||e;for(const[B,D]of r)i[B]=D;return i},Q5t={class:"container"},e4t={key:0,width:"11",height:"2",viewBox:"0 0 11 2",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t4t=["fill"],a4t={key:1,width:"11",height:"11",viewBox:"0 0 11 11",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n4t=["fill"],r4t={__name:"IconExpand",props:{height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},isExpanded:{type:Boolean,default:!1},expandIconColor:{type:String,default:"white"},collapseIconColor:{type:String,default:"#D9D9D9"}},setup(e){return t.useCssVars(r=>({"563e5242":e.width,a529e9a4:e.height})),(r,i)=>(t.openBlock(),t.createElementBlock("div",Q5t,[e.isExpanded?(t.openBlock(),t.createElementBlock("svg",e4t,[t.createElementVNode("rect",{width:"11",height:"1.7",fill:e.collapseIconColor},null,8,t4t)])):(t.openBlock(),t.createElementBlock("svg",a4t,[t.createElementVNode("path",{d:"M11 6.28571H6.28571V11H4.71429V6.28571H0V4.71429H4.71429V0H6.28571V4.71429H11V6.28571Z",fill:e.expandIconColor},null,8,n4t)]))]))}},k1=ml(r4t,[["__scopeId","data-v-166b6226"]]),v_=e=>(t.pushScopeId("data-v-4df743e3"),e=e(),t.popScopeId(),e),i4t={class:"productivity"},o4t={class:"productivity__body__offensive"},s4t={class:"productivity__body__title"},l4t={class:"productivity__body__title__info"},c4t={class:"number-of-categories"},d4t={class:"productivity__body__categories"},u4t={class:"productivity__body__defensive-possession"},h4t={class:"productivity__body__title"},p4t={class:"productivity__body__title__info"},f4t={class:"number-of-categories"},m4t={class:"productivity__body__categories"},g4t={class:"productivity__body__title"},y4t={class:"productivity__body__title__info"},v4t={class:"number-of-categories"},_4t={class:"productivity__body__categories"},b4t={class:"productivity__footer"},x4t={class:"productivity__footer__offenses"},w4t=v_(()=>t.createElementVNode("div",{class:"productivity__footer__offenses__title"}," ¿Debemos quitarle puntos a jugadores que hayan cometido las siguientes infracciones? ",-1)),k4t={class:"productivity__footer__offenses__table"},C4t=v_(()=>t.createElementVNode("div",{class:"productivity__footer__offenses__table__row"},[t.createElementVNode("div"),t.createElementVNode("div",null,"Si"),t.createElementVNode("div",null,"No")],-1)),S4t={class:"productivity__footer__offenses__table__row has-bottom-border has-padding"},T4t=v_(()=>t.createElementVNode("div",{class:"productivity__footer__offenses__table__row__text"},"Faltas cometidas",-1)),E4t={class:"productivity__footer__offenses__table__row has-bottom-border has-padding"},A4t=v_(()=>t.createElementVNode("div",{class:"productivity__footer__offenses__table__row__text"},"Tarjetas amarillas",-1)),M4t={class:"productivity__footer__offenses__table__row has-padding"},I4t=v_(()=>t.createElementVNode("div",{class:"productivity__footer__offenses__table__row__text"},"Tarjetas rojas",-1)),P4t={__name:"TemplateProductivity",props:{componentWidth:{type:Number,default:0},productivityCategories:{type:Object,required:!0},numberOfCategoriesSelected:{type:Number,default:0},areMaxCategoriesReached:{type:Boolean,default:!1},isExpansionMode:{type:Boolean,default:!1},fontFamily:{type:String,default:"'Poppins-Regular'"}},emits:["update:offensesConditions"],setup(e,{emit:r}){const i=e,B=t.ref(!1),D=t.ref(!1),c=t.ref(!1),g=t.ref({areYellowCardsSelected:!1,areRedCardsSelected:!1,areFoulsCommittedSelected:!1}),a=t.computed(()=>({"--template-columns":i.isExpansionMode?"1fr":"1fr 1fr"})),y=t.computed(()=>i.productivityCategories.offensive.categories.reduce((p,l)=>(l.isSelected&&p++,p),0)),f=t.computed(()=>i.productivityCategories.defensive.categories.reduce((p,l)=>(l.isSelected&&p++,p),0)),n=t.computed(()=>i.productivityCategories.possession.categories.reduce((p,l)=>(l.isSelected&&p++,p),0));t.watch(()=>i.productivityCategories,p=>{g.value.areYellowCardsSelected=p.offensesConditions.areYellowCardsSelected,g.value.areRedCardsSelected=p.offensesConditions.areRedCardsSelected,g.value.areFoulsCommittedSelected=p.offensesConditions.areFoulsCommittedSelected},{deep:!0,immediate:!0}),t.watch(g,p=>{r("update:offensesConditions",p)},{deep:!0,immediate:!0});function v(p,l){l.isSelected=p,setTimeout(()=>{l.priority=i.numberOfCategoriesSelected},10)}function _(p){p==="offensive"?B.value=!B.value:p==="defensive"?D.value=!D.value:p==="possession"&&(c.value=!c.value)}return(p,l)=>(t.openBlock(),t.createElementBlock("div",i4t,[t.createElementVNode("div",{class:"productivity__body",style:t.normalizeStyle(a.value)},[t.createElementVNode("div",o4t,[t.createElementVNode("div",s4t,[t.createElementVNode("div",l4t,[t.createElementVNode("span",null,t.toDisplayString(e.productivityCategories.offensive.title),1),t.createElementVNode("span",c4t,"("+t.toDisplayString(y.value)+")",1)]),t.createElementVNode("div",{class:"productivity__body__title__expand-button",onClick:l[0]||(l[0]=o=>_("offensive"))},[t.withDirectives(t.createVNode(k1,{"is-expanded":B.value},null,8,["is-expanded"]),[[t.vShow,e.isExpansionMode]])])]),t.withDirectives(t.createElementVNode("div",d4t,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.productivityCategories.offensive.categories,o=>(t.openBlock(),t.createElementBlock("div",{key:o.id,class:"productivity__checkbox"},[t.createVNode(t.unref(Is),{label:o.name,fontFamily:e.fontFamily,"model-value":o.isSelected,"avoid-to-check":e.areMaxCategoriesReached,"box-value":o.priority||0,"onUpdate:modelValue":s=>v(s,o)},null,8,["label","fontFamily","model-value","avoid-to-check","box-value","onUpdate:modelValue"])]))),128))],512),[[t.vShow,!e.isExpansionMode||B.value]])]),t.createElementVNode("div",u4t,[t.createElementVNode("div",h4t,[t.createElementVNode("div",p4t,[t.createElementVNode("span",null,t.toDisplayString(e.productivityCategories.defensive.title),1),t.createElementVNode("span",f4t,"("+t.toDisplayString(f.value)+")",1)]),t.createElementVNode("div",{class:"productivity__body__title__expand-button",onClick:l[1]||(l[1]=o=>_("defensive"))},[t.withDirectives(t.createVNode(k1,{"is-expanded":D.value},null,8,["is-expanded"]),[[t.vShow,e.isExpansionMode]])])]),t.withDirectives(t.createElementVNode("div",m4t,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.productivityCategories.defensive.categories,o=>(t.openBlock(),t.createElementBlock("div",{key:o.id,class:"productivity__checkbox"},[t.createVNode(t.unref(Is),{label:o.name,fontFamily:e.fontFamily,"model-value":o.isSelected,"avoid-to-check":e.areMaxCategoriesReached,"box-value":o.priority||0,"onUpdate:modelValue":s=>v(s,o)},null,8,["label","fontFamily","model-value","avoid-to-check","box-value","onUpdate:modelValue"])]))),128))],512),[[t.vShow,!e.isExpansionMode||D.value]]),t.createElementVNode("div",g4t,[t.createElementVNode("div",y4t,[t.createElementVNode("span",null,t.toDisplayString(e.productivityCategories.possession.title),1),t.createElementVNode("span",v4t,"("+t.toDisplayString(n.value)+")",1)]),t.createElementVNode("div",{class:"productivity__body__title__expand-button",onClick:l[2]||(l[2]=o=>_("possession"))},[t.withDirectives(t.createVNode(k1,{"is-expanded":c.value},null,8,["is-expanded"]),[[t.vShow,e.isExpansionMode]])])]),t.withDirectives(t.createElementVNode("div",_4t,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.productivityCategories.possession.categories,o=>(t.openBlock(),t.createElementBlock("div",{key:o.id,class:"productivity__checkbox"},[t.createVNode(t.unref(Is),{label:o.name,fontFamily:e.fontFamily,"model-value":o.isSelected,"avoid-to-check":e.areMaxCategoriesReached,"box-value":o.priority||0,"onUpdate:modelValue":s=>v(s,o)},null,8,["label","fontFamily","model-value","avoid-to-check","box-value","onUpdate:modelValue"])]))),128))],512),[[t.vShow,!e.isExpansionMode||c.value]])])],4),t.createElementVNode("div",b4t,[t.createElementVNode("div",x4t,[w4t,t.createElementVNode("div",k4t,[C4t,t.createElementVNode("div",S4t,[T4t,t.createElementVNode("div",null,[t.createVNode(t.unref(Is),{"model-value":g.value.areFoulsCommittedSelected,"avoid-interaction":g.value.areFoulsCommittedSelected,"is-box-only":"","onUpdate:modelValue":l[3]||(l[3]=o=>g.value.areFoulsCommittedSelected=o)},null,8,["model-value","avoid-interaction"])]),t.createElementVNode("div",null,[t.createVNode(t.unref(Is),{"model-value":!g.value.areFoulsCommittedSelected,"avoid-interaction":!g.value.areFoulsCommittedSelected,"is-box-only":"","onUpdate:modelValue":l[4]||(l[4]=o=>g.value.areFoulsCommittedSelected=!o)},null,8,["model-value","avoid-interaction"])])]),t.createElementVNode("div",E4t,[A4t,t.createElementVNode("div",null,[t.createVNode(t.unref(Is),{"model-value":g.value.areYellowCardsSelected,"avoid-interaction":g.value.areYellowCardsSelected,"is-box-only":"","onUpdate:modelValue":l[5]||(l[5]=o=>g.value.areYellowCardsSelected=o)},null,8,["model-value","avoid-interaction"])]),t.createElementVNode("div",null,[t.createVNode(t.unref(Is),{"model-value":!g.value.areYellowCardsSelected,"avoid-interaction":!g.value.areYellowCardsSelected,"is-box-only":"","onUpdate:modelValue":l[6]||(l[6]=o=>g.value.areYellowCardsSelected=!o)},null,8,["model-value","avoid-interaction"])])]),t.createElementVNode("div",M4t,[I4t,t.createElementVNode("div",null,[t.createVNode(t.unref(Is),{"model-value":g.value.areRedCardsSelected,"avoid-interaction":g.value.areRedCardsSelected,"is-box-only":"","onUpdate:modelValue":l[7]||(l[7]=o=>g.value.areRedCardsSelected=o)},null,8,["model-value","avoid-interaction"])]),t.createElementVNode("div",null,[t.createVNode(t.unref(Is),{"model-value":!g.value.areRedCardsSelected,"avoid-interaction":!g.value.areRedCardsSelected,"is-box-only":"","onUpdate:modelValue":l[8]||(l[8]=o=>g.value.areRedCardsSelected=!o)},null,8,["model-value","avoid-interaction"])])])])])])]))}},B4t=ml(P4t,[["__scopeId","data-v-4df743e3"]]),_4=e=>(t.pushScopeId("data-v-9a3af80d"),e=e(),t.popScopeId(),e),N4t={class:"details__header"},z4t=_4(()=>t.createElementVNode("div",{class:"details__header__title"},"Jugando como",-1)),O4t={class:"details__header__checkbox"},F4t={class:"details__body"},L4t={class:"details__body__playing-as"},D4t=["onClick"],R4t={class:"details__header"},V4t=_4(()=>t.createElementVNode("div",{class:"details__header__title"},[t.createTextVNode(" En: "),t.createElementVNode("span",{class:"details__header__title-sm"},"(Elige el lapso de tiempo)")],-1)),$4t={class:"details__header__checkbox"},j4t={class:"details__body"},U4t=_4(()=>t.createElementVNode("div",{class:"details__body__title"},"1er tiempo",-1)),G4t={class:"details__body__game-section"},H4t=["onClick"],W4t={class:"details__body"},q4t=_4(()=>t.createElementVNode("div",{class:"details__body__title"},"2do tiempo",-1)),Y4t={class:"details__body__game-section"},X4t=["onClick"],Z4t={__name:"TemplateDetails",props:{isPlayingAsHidden:{type:Boolean,default:!1},playingAs:{type:Array,default:()=>[{name:"Local",isSelected:!0},{name:"Visitante",isSelected:!0}]},gameSections:{type:Array,default:()=>[{text:"0-15",value:1,isSelected:!0},{text:"16-30",value:2,isSelected:!0},{text:"31-45",value:3,isSelected:!0},{text:"46-60",value:4,isSelected:!0},{text:"61-75",value:5,isSelected:!0},{text:"76-90",value:6,isSelected:!0}]},fontFamily:{type:String,default:"'Poppins-Regular'"},buttonsBackgroundColor:{type:String,default:"rgba(255, 255, 255, 0)"},buttonsBackgroundColorActive:{type:String,default:"rgba(203, 238, 107, 0.05)"},buttonsTextColor:{type:String,default:"rgba(255, 255, 255, 0.8)"},buttonsTextColorActive:{type:String,default:"rgba(255, 255, 255, 1)"},buttonsBorderColor:{type:String,default:"#8ea2ab"},buttonsBorderColorActive:{type:String,default:"#cbee6b"},buttonsBorderWidth:{type:String,default:"0.8px"},buttonsBorderWidthActive:{type:String,default:"1px"},buttonsBorderRadius:{type:String,default:"4px"}},setup(e){const r=e;t.useCssVars(n=>({"35aa5eb4":e.buttonsBackgroundColor,"7765f8c7":e.buttonsTextColor,"5b6eef4b":e.buttonsBorderWidth,"5a57f0e8":e.buttonsBorderColor,a0a4b168:e.buttonsBackgroundColorActive,"349872ad":e.buttonsTextColorActive,76477631:e.buttonsBorderWidthActive,"39de0e0e":e.buttonsBorderColorActive}));const i=t.computed(()=>r.playingAs.every(n=>n.isSelected)),B=t.computed(()=>r.gameSections.every(n=>n.isSelected)),D=t.computed(()=>r.gameSections.reduce((n,v)=>(v.value<=3?n.firstHalf.push(v):n.secondHalf.push(v),n),{firstHalf:[],secondHalf:[]})),c=t.computed(()=>({"--border-radius-first-button":`${r.buttonsBorderRadius} 0 0 ${r.buttonsBorderRadius}`,"--border-radius-last-button":`0 ${r.buttonsBorderRadius} ${r.buttonsBorderRadius} 0`}));function g(n){n?r.playingAs.forEach(v=>{v.isSelected=!0}):r.playingAs.forEach((v,_)=>{v.isSelected=_===0})}function a(n){r.playingAs.filter(v=>v.isSelected).length===1&&n.isSelected||(n.isSelected=!n.isSelected)}function y(n){r.gameSections.filter(v=>v.isSelected).length===1&&n.isSelected||(n.isSelected=!n.isSelected)}function f(n){n?r.gameSections.forEach(v=>{v.isSelected=!0}):r.gameSections.forEach((v,_)=>{v.isSelected=_===0})}return(n,v)=>(t.openBlock(),t.createElementBlock("div",{class:"details",style:t.normalizeStyle(c.value)},[t.withDirectives(t.createElementVNode("div",N4t,[z4t,t.createElementVNode("div",O4t,[t.createVNode(t.unref(Is),{label:"Todos",fontFamily:e.fontFamily,"model-value":i.value,"onUpdate:modelValue":g},null,8,["fontFamily","model-value"])])],512),[[t.vShow,!e.isPlayingAsHidden]]),t.withDirectives(t.createElementVNode("div",F4t,[t.createElementVNode("div",L4t,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r.playingAs,(_,p)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${p}`,class:t.normalizeClass(["details__body__button",{active:_.isSelected}]),onClick:l=>a(_)},t.toDisplayString(_.name),11,D4t))),128))])],512),[[t.vShow,!e.isPlayingAsHidden]]),t.createElementVNode("div",R4t,[V4t,t.createElementVNode("div",$4t,[t.createVNode(t.unref(Is),{label:"Todos",fontFamily:e.fontFamily,"model-value":B.value,"onUpdate:modelValue":f},null,8,["fontFamily","model-value"])])]),t.createElementVNode("div",j4t,[U4t,t.createElementVNode("div",G4t,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(D.value.firstHalf,(_,p)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${p}`,class:t.normalizeClass(["details__body__button",{active:_.isSelected}]),onClick:l=>y(_)},t.toDisplayString(_.text),11,H4t))),128))])]),t.createElementVNode("div",W4t,[q4t,t.createElementVNode("div",Y4t,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(D.value.secondHalf,(_,p)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${p}`,class:t.normalizeClass(["details__body__button",{active:_.isSelected}]),onClick:l=>y(_)},t.toDisplayString(_.text),11,X4t))),128))])])],4))}},J4t=ml(Z4t,[["__scopeId","data-v-9a3af80d"]]),K4t={class:"scroll-container"},Q4t={__name:"ScrollContainer",props:{width:{type:String,default:"100%"},height:{type:String,default:"100%"}},setup(e){return t.useCssVars(r=>({"6aab424d":e.height,39848040:e.width})),(r,i)=>(t.openBlock(),t.createElementBlock("div",K4t,[t.renderSlot(r.$slots,"default",{},void 0,!0)]))}},VH=ml(Q4t,[["__scopeId","data-v-218f5976"]]),e6t={class:"tournaments"},t6t={class:"tournaments__tournament"},a6t={__name:"TemplateTournaments",props:{tournaments:{type:Array,default:()=>[]},fontFamily:{type:String,default:"'Poppins-Regular'"}},emits:["change-filters-selected","update:filters"],setup(e,{emit:r}){const i=e,B=t.ref(!1),D=t.computed(()=>i.tournaments.filter(g=>g.isSelected).length);t.watch(()=>i.tournaments,g=>{const a=g.filter(y=>y.isSelected);B.value=a.length===g.length,r("change-filters-selected",a.length),r("update:filters",i.tournaments)},{immediate:!0,deep:!0});function c(g){i.tournaments.forEach((a,y)=>{a.isSelected=g||(y!==0?g:!0)})}return(g,a)=>(t.openBlock(),t.createElementBlock("div",e6t,[t.createVNode(VH,{height:"200px"},{default:t.withCtx(()=>[t.createElementVNode("div",t6t,[t.createVNode(t.unref(Is),{"model-value":B.value,label:"Todas las ligas",fontFamily:e.fontFamily,width:"100%","onUpdate:modelValue":c},null,8,["model-value","fontFamily"])]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.tournaments,y=>(t.openBlock(),t.createElementBlock("div",{key:y.id||y._id,class:"tournaments__tournament"},[t.createVNode(t.unref(Is),{modelValue:y.isSelected,"onUpdate:modelValue":f=>y.isSelected=f,label:y.name,fontFamily:e.fontFamily,width:"100%","avoid-interaction":D.value===1&&y.isSelected},null,8,["modelValue","onUpdate:modelValue","label","fontFamily","avoid-interaction"])]))),128))]),_:1})]))}},n6t=ml(a6t,[["__scopeId","data-v-590d8ab3"]]),er={PLAYS:"plays",PRODUCTIVITY:"productivity",FIELD:"field",UNIVERSE:"universe",DETAILS:"details",TOURNAMENTS:"tournaments",PERSONAL_DATA:"personalData",PLAYS_TYPES:"playsTypes",GOLSTATS:"golstats",DISTANCE:"distance",RESULTS:"results",RESULTS_BY_TIME:"resultsByTime",VIDEOS:"videos",GAMES:"games",TAKEN_CORNERS:"takenCorners",HOW_WAS_CORNER:"howWasCorner",ZONE:"zone",WHAT_HAPPENED:"whatHappened"},r6t={key:0,class:"plays-golstats__placeholder"},i6t=["onClick"],o6t={key:0,class:"plays-golstats__item__value"},s6t={class:"plays-golstats__item__text"},l6t={class:"plays-golstats__item__svg"},c6t={width:"10",height:"8",viewBox:"0 0 10 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},d6t=["fill"],u6t={__name:"TemplatePlaysTypeAndGolstats",props:{height:{type:String,default:"fit-content"},type:{type:String,default:""},categories:{type:Array,default:()=>[]},svgColor:{type:String,default:"#CBEE6B"},svgWidth:{type:Number,default:10},svgHeight:{type:Number,default:8}},emits:["change-filters-selected","update:filters"],setup(e,{emit:r}){const i=e,B=t.computed(()=>({"--grid-template-columns":i.type===er.PLAYS_TYPES?"1fr min-content":"min-content 1fr min-content","--svg-width":`${i.svgWidth}px`,"--svg-height":`${i.svgHeight}px`}));t.watch(()=>i.categories,c=>{const g=c.filter(a=>a.isSelected);r("update:filters",g)},{immediate:!0,deep:!0});function D(c){c.isSelected||(i.categories.forEach(g=>{g.isSelected=!1}),c.isSelected=!0,i.type===er.GOLSTATS&&r("change-filters-selected",c.value))}return(c,g)=>(t.openBlock(),t.createElementBlock("div",{class:"plays-golstats",style:t.normalizeStyle(B.value)},[t.createVNode(VH,{height:e.height},{default:t.withCtx(()=>[e.type===t.unref(er).PLAYS_TYPES?(t.openBlock(),t.createElementBlock("div",r6t," Elige un tipo de jugada para filtrar: ")):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.categories,(a,y)=>(t.openBlock(),t.createElementBlock("div",{key:`k${y}`,class:"plays-golstats__item",onClick:f=>D(a)},[e.type===t.unref(er).GOLSTATS?(t.openBlock(),t.createElementBlock("div",o6t,t.toDisplayString(a.value),1)):t.createCommentVNode("",!0),t.createElementVNode("div",s6t,t.toDisplayString(a.name),1),t.createElementVNode("div",l6t,[t.withDirectives((t.openBlock(),t.createElementBlock("svg",c6t,[t.createElementVNode("path",{d:"M9.77994 1.70133L4.10994 7.37133C3.96994 7.51133 3.77994 7.59133 3.57994 7.59133C3.37994 7.59133 3.18994 7.51133 3.04994 7.37133L0.219941 4.54133C-0.0700586 4.25133 -0.0700586 3.77133 0.219941 3.48133C0.509941 3.19133 0.989941 3.19133 1.27994 3.48133L3.57994 5.78133L8.71994 0.641328C9.00994 0.351328 9.48994 0.351328 9.77994 0.641328C10.0699 0.931328 10.0699 1.40133 9.77994 1.70133Z",fill:e.svgColor},null,8,d6t)],512)),[[t.vShow,a.isSelected]])])],8,i6t))),128))]),_:1},8,["height"])],4))}},$H=ml(u6t,[["__scopeId","data-v-af3c1673"]]),h6t=(e,r)=>{const i=e.__vccOpts||e;for(const[B,D]of r)i[B]=D;return i},mE={props:{textRight:{type:String,default:""},textRightColor:{type:String,default:"#FFFFFF"},textRightFontFamily:{type:String,default:"Poppins-Regular"},textRightFontSize:{type:String,default:"13px"},placeholder:{type:String,default:"Ingresar valor"},value:String,inputType:{type:String,default:"text"},width:{type:String,default:"100%"},height:{type:String,default:"30px"},backgroundColor:{type:String,default:"#2e3b46"},borderRadius:{type:String,default:"10px"},border:{type:String,default:"1px solid #bdc1c4"},color:{type:String,default:"#FFFFFF"},placeholderColor:{type:String,default:"#bdc1c4"},font:{type:String,default:"Poppins-Regular"},fontSize:{type:String,default:"13px"},padding:{type:String,default:"11px"},isNumbersOnly:{type:Boolean,default:!1}},computed:{inputStyle(){return{width:this.width,height:this.height,backgroundColor:this.backgroundColor,borderRadius:this.borderRadius,border:this.border,color:this.color,fontFamily:this.font,fontSize:this.fontSize,placeholderColor:this.placeholderColor,paddingLeft:this.padding}}},methods:{updateInputValue(e){this.$emit("inputval",e.target.value)},onKeyDown(e){if(this.isNumbersOnly){const r=e.which?e.which:e.keyCode();r>31&&(r<48||r>57)&&e.preventDefault()}}}},jH=()=>{t.useCssVars(e=>({"53e1855a":e.textRightColor,da8ee600:e.textRightFontSize,"9fb876ba":e.textRightFontFamily}))},UH=mE.setup;mE.setup=UH?(e,r)=>(jH(),UH(e,r)):jH;const p6t={class:"input-container"},f6t=["type","placeholder","value"],m6t={class:"right-text"};function g6t(e,r,i,B,D,c){return t.openBlock(),t.createElementBlock("div",p6t,[t.createElementVNode("input",{type:i.inputType,placeholder:i.placeholder,value:i.value,style:t.normalizeStyle(c.inputStyle),onKeydown:r[0]||(r[0]=(...g)=>c.onKeyDown&&c.onKeyDown(...g)),onInput:r[1]||(r[1]=(...g)=>c.updateInputValue&&c.updateInputValue(...g))},null,44,f6t),t.createElementVNode("div",m6t,t.toDisplayString(i.textRight),1)])}const GH=h6t(mE,[["render",g6t],["__scopeId","data-v-b73049e7"]]),y6t=(e,r)=>{const i=e.__vccOpts||e;for(const[B,D]of r)i[B]=D;return i},gE={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))}}},HH=()=>{t.useCssVars(e=>({"1c960139":e.height,b2f635d8:e.borderWidthBtn,"06e99898":e.borderType,"55555c76":e.borderColor,"23b6d320":e.borderRadius,"22c97374":e.width,"22bb09fa":e.backgroundColor,c148da7c:e.cursorType,cce756fc:e.fontSize,cff98d60:e.fontStyle,"5123b3a5":e.fontFamily,"47bf58db":e.marginLeftStat,cadc8414:e.fontSizeStat}))},WH=gE.setup;gE.setup=WH?(e,r)=>(HH(),WH(e,r)):HH;const v6t=e=>(t.pushScopeId("data-v-fb269a1e"),e=e(),t.popScopeId(),e),_6t=["src"],b6t={key:1,class:"text"},x6t=["src"],w6t={class:"stats"},k6t=v6t(()=>t.createElementVNode("img",{class:"iconstats",src:"https://az755631.vo.msecnd.net/todoelfut/playdes.png"},null,-1)),C6t={class:"numstats"},S6t={class:"leyend"};function T6t(e,r,i,B,D,c){return t.openBlock(),t.createElementBlock("div",null,[i.type==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["button",D.status&&i.typeOnOff&&"button-active"]),style:t.normalizeStyle([c.customStyle,D.status&&i.typeOnOff&&c.customActive]),onClick:r[0]||(r[0]=(...g)=>c.btnClick&&c.btnClick(...g))},[i.icon&&i.iconPosition.toLowerCase()==="left"?(t.openBlock(),t.createElementBlock("img",{key:0,class:"icon",style:t.normalizeStyle({width:i.iconSize}),src:i.icon},null,12,_6t)):t.createCommentVNode("",!0),i.textValue?(t.openBlock(),t.createElementBlock("div",b6t,t.toDisplayString(i.textValue),1)):t.createCommentVNode("",!0),i.icon&&i.iconPosition.toLowerCase()==="right"?(t.openBlock(),t.createElementBlock("img",{key:2,class:"icon",style:t.normalizeStyle({width:i.iconSize}),src:i.icon},null,12,x6t)):t.createCommentVNode("",!0)],6)):t.createCommentVNode("",!0),i.type==1?(t.openBlock(),t.createElementBlock("div",{key:1,class:"button-target",onClick:r[1]||(r[1]=(...g)=>c.btnClick&&c.btnClick(...g))},[t.createElementVNode("div",w6t,[k6t,t.createElementVNode("div",C6t,t.toDisplayString(i.textStat),1)]),t.createElementVNode("div",S6t,t.toDisplayString(i.textCategory),1)])):t.createCommentVNode("",!0)])}const E6t=y6t(gE,[["render",T6t],["__scopeId","data-v-fb269a1e"]]),A6t={class:"gsc-dropdown__main-container__item-selected"},M6t=["height","width"],I6t=["stroke"],P6t={class:"gsc-dropdown__items-container"},B6t=["onClick"],N6t={key:0,class:"gsc-dropdown__items-footer"},p0={__name:"GSC-Dropdown",props:{modelValue:{type:[Object,Number,String],default:()=>null},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},fontSize:{type:String,default:"14px"},borderRadius:{type:Number,default:5},arrowHeight:{type:Number,default:24},arrowWidth:{type:Number,default:24},borderType:{type:String,default:"solid",validator:function(e){return["solid","dotted","dashed"].includes(e)}},borderWidth:{type:Number,default:1},borderColor:{type:String,default:"black"},backgroundColor:{type:String,default:"grey"},color:{type:String,default:"black"},arrowColor:{type:String,default:"#CBEE6B"},items:{type:Array,default:()=>[]},defaultItemByIndex:{type:Number,default:0},defaultItemByProp:{type:Object,default:null,validator:e=>["propName","value"].every(r=>r in e)},listBackgroundColor:{type:String,default:"white"},hoverBackgroundColor:{type:String,default:"#f1f1f1"},listItemPadding:{type:String,default:"10px 12px"},listHeight:{type:String,default:"fit-content"},listItemSelectedColor:{type:String,default:"white"},listItemSelectedBackgroundColor:{type:String,default:"#399cfd"},listItemColor:{type:String,default:"black"},listBorderRadius:{type:String,default:"0"},listBorderColor:{type:String,default:""},listBorderWidth:{type:Number,default:1},isListSameWidth:{type:Boolean,default:!1},isMultipleOption:{type:Boolean,default:!1},footerBorderColor:{type:String,default:"#626970"},footerBorderWidth:{type:Number,default:1},isFooterVisible:{type:Boolean,default:!1},isDisabled:{type:Boolean,default:!1},onlyFirstTime:{type:Boolean,default:!1}},emits:["input","click-ready","update:modelValue"],setup(e,{emit:r}){const i=e,B=t.ref({}),D=t.ref(null),c=t.ref(i.isMultipleOption?-1:0),g=t.ref(!1);t.watch(()=>i.items,(p,l)=>{if(!i.modelValue&&(!i.onlyFirstTime||!l||!l.length)&&p&&p.length){if(i.defaultItemByProp){const o=i.items.findIndex(s=>s[i.defaultItemByProp.propName]===i.defaultItemByProp.value);o!==-1?(c.value=o,B.value=p[o]):(c.value=0,B.value=p[0])}else B.value=p[i.defaultItemByIndex];r("input",B.value)}},{immediate:!0}),t.watch(()=>i.modelValue,p=>{if(p){const l=i.items.findIndex(o=>typeof p=="object"?JSON.stringify(o)===JSON.stringify(p):o===p);l!==-1&&(c.value=l,B.value=i.items[l],r("update:modelValue",B.value))}},{immediate:!0});const a=t.computed(()=>({height:i.height,width:i.width,backgroundColor:i.backgroundColor,borderRadius:`${i.borderRadius}px`,border:`${i.borderType} ${i.borderWidth}px ${i.borderColor}`,color:i.color,"--hover-background-color":i.hoverBackgroundColor,"--list-item-padding":i.listItemPadding,"--list-background-color":i.listBackgroundColor,"--list-height":i.listHeight,"--list-item-selected-color":i.listItemSelectedColor,"--list-item-selected-background-color":i.listItemSelectedBackgroundColor,"--list-item-color":i.listItemColor,"--list-border-radius":`${i.listBorderRadius}`,"--list-border-color":i.listBorderColor,"--list-width":i.isListSameWidth?i.width:"fit-content","--list-border-width":`${i.listBorderWidth}px`,"--footer-border":`${i.footerBorderWidth}px solid ${i.footerBorderColor}`,"--dropdown-opacity":i.isDisabled?"0.5":"1","--dropdown-cursor":i.isDisabled?"not-allowed":"pointer","--dropdown-font-size":i.fontSize?i.fontSize:"14px"})),y=t.computed(()=>({height:`${i.arrowHeight}px`,width:`${i.arrowWidth}px`}));function f(){i.isDisabled||(g.value=!g.value)}function n(p){D.value&&!D.value.contains(p.target)&&(g.value=!1)}function v(p,l){i.isMultipleOption?c.value=-1:(c.value=l,g.value=!1),B.value=p,r("input",B.value),r("update:modelValue",B.value)}function _(){g.value=!1,r("click-ready")}return t.onMounted(()=>{document.addEventListener("click",n)}),t.onBeforeMount(()=>{document.removeEventListener("click",n)}),(p,l)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"dropDown",ref:D,class:"gsc-dropdown",style:t.normalizeStyle(a.value)},[t.createElementVNode("div",{class:"gsc-dropdown__main-container",style:t.normalizeStyle({"padding-right":`${e.arrowWidth+8}px`}),onClick:f},[t.createElementVNode("div",A6t,[t.renderSlot(p.$slots,"default",{selectedItem:B.value})]),t.createElementVNode("div",{class:t.normalizeClass(["gsc-dropdown__main-container__icon",{"rotated-180":g.value}]),style:t.normalizeStyle(y.value)},[(t.openBlock(),t.createElementBlock("svg",{height:e.arrowHeight,width:e.arrowWidth,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M18.394 9.13501L13.1302 14.3988C12.5086 15.0204 11.4914 15.0204 10.8697 14.3988L5.60596 9.13501",stroke:e.arrowColor},null,8,I6t)],8,M6t))],6)],4),t.createVNode(t.Transition,null,{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("div",P6t,[t.createElementVNode("div",null,[t.createElementVNode("div",{class:"gsc-dropdown__items",style:t.normalizeStyle({"margin-top":`${i.borderWidth}px`})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(o,s)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["gsc-dropdown__items__item",{selected:s===c.value}]),key:s,onClick:u=>v(o,s)},[t.renderSlot(p.$slots,"availableItem",{item:o})],10,B6t))),128))],4),e.isFooterVisible?(t.openBlock(),t.createElementBlock("div",N6t,[t.createVNode(t.unref(E6t),{"text-value":"Listo","border-color":"#cbee6b","font-size":"12px",width:"72px",height:"22px","border-radius":"62px","border-width":.8,onClick:_})])):t.createCommentVNode("",!0)])],512),[[t.vShow,g.value]])]),_:3})],4))}},__={borderType:"solid",listBackgroundColor:"#2E3B46",listBorderColor:"rgba(255, 255, 255, 0.2)",listBorderRadius:"5px",height:"38px",borderWidth:.8,borderColor:"white",backgroundColor:"#2E3B46",color:"white",listItemColor:"white",listItemSelectedBackgroundColor:"#2E3B46",arrowColor:"#fff",width:"100%",listHeight:"200px",isListSameWidth:!0,isFooterVisible:!0,hoverBackgroundColor:"#2E3B46"},Gy=e=>(t.pushScopeId("data-v-b1fc2fa6"),e=e(),t.popScopeId(),e),z6t={class:"universe"},O6t=Gy(()=>t.createElementVNode("div",{class:"universe__sub-header"},"Escribe los minutos jugados",-1)),F6t=Gy(()=>t.createElementVNode("div",{class:"universe__label"},"Igual o mayor que:",-1)),L6t={class:"universe__inputs"},D6t={class:"universe__inputs__input"},R6t={class:"universe__inputs__checkbox"},V6t=Gy(()=>t.createElementVNode("div",{class:"universe__sub-header"},"Escribe el % de minutos jugados contra el total posible",-1)),$6t=Gy(()=>t.createElementVNode("div",{class:"universe__label"},"Mayor que:",-1)),j6t={class:"universe__inputs"},U6t={class:"universe__inputs__input"},G6t={class:"universe__inputs__checkbox"},H6t=Gy(()=>t.createElementVNode("div",{class:"universe__sub-header"},"Selecciona el lapso de tiempo",-1)),W6t=Gy(()=>t.createElementVNode("div",{class:"universe__label"},"Considerando los últimos:",-1)),q6t={class:"universe__dropdown"},Y6t={class:"selected-item"},qH=11,X6t={__name:"TemplateUniverse",props:{universeFilters:{type:Object,default:()=>({minutesPlayed:0,percentMinutesPlayed:0,lastMonths:Array.from({length:24},(e,r)=>r+1),statistics:{totals:!0,averagePerGame:!1,averagePerMinute:!1}})},fontFamily:{type:String,default:"'Poppins-Regular'"}},emits:["update:universeFilters"],setup(e,{expose:r,emit:i}){const B=e,D=t.ref(!1),c=t.ref(!1),g=t.ref(!1),a=t.ref({statistics:{}});t.watch(()=>B.universeFilters,p=>{a.value={...p,lastMonths:p.selectedMonth?p.selectedMonth:p.lastMonths[qH],statistics:{...p.statistics}}},{deep:!0,immediate:!0}),t.watch(()=>a,p=>{D.value=!p.value.minutesPlayed||Number(p.value.minutesPlayed)===0,c.value=!p.value.percentMinutesPlayed||Number(p.value.percentMinutesPlayed)===0,g.value=!p.value.lastMonths||Number(p.value.lastMonths)===0,i("update:universeFilters",p)},{deep:!0,immediate:!0});function y(p){a.value.minutesPlayed=p}function f(p){a.value.percentMinutesPlayed=p}function n(p,l){switch(l){case"minutes":D.value=p,p&&(a.value.minutesPlayed=0);break;case"percent":c.value=p,p&&(a.value.percentMinutesPlayed=0);break;case"months":g.value=p,p&&(a.value.lastMonths=0);break}}function v(){a.value={...B.universeFilters,lastMonths:B.universeFilters.lastMonths[qH],statistics:{...B.universeFilters.statistics}}}function _(p){a.value.lastMonths=p}return r({resetFilters:v}),(p,l)=>(t.openBlock(),t.createElementBlock("div",z6t,[O6t,F6t,t.createElementVNode("div",L6t,[t.createElementVNode("div",D6t,[t.createVNode(t.unref(GH),{value:a.value.minutesPlayed,type:"text",inputmode:"numeric","border-radius":"4px",border:"solid 0.8px #8ea2ab","text-right":"Min","is-numbers-only":"",onInputval:y},null,8,["value"])]),t.createElementVNode("div",R6t,[t.createVNode(t.unref(Is),{modelValue:D.value,label:"Indistinto",fontFamily:e.fontFamily,"box-position":"right","onUpdate:modelValue":l[0]||(l[0]=o=>n(o,"minutes"))},null,8,["modelValue","fontFamily"])])]),V6t,$6t,t.createElementVNode("div",j6t,[t.createElementVNode("div",U6t,[t.createVNode(t.unref(GH),{value:a.value.percentMinutesPlayed,"input-type":"number","border-radius":"4px",border:"solid 0.8px #8ea2ab","text-right":"%","is-numbers-only":"",onInputval:f},null,8,["value"])]),t.createElementVNode("div",G6t,[t.createVNode(t.unref(Is),{modelValue:c.value,label:"Indistinto",fontFamily:e.fontFamily,"box-position":"right","onUpdate:modelValue":l[1]||(l[1]=o=>n(o,"percent"))},null,8,["modelValue","fontFamily"])])]),H6t,W6t,t.createElementVNode("div",q6t,[t.createVNode(t.unref(p0),t.mergeProps(t.unref(__),{items:e.universeFilters.lastMonths,"model-value":a.value.lastMonths,onInput:_}),{default:t.withCtx(({selectedItem:o})=>[t.createElementVNode("div",Y6t,t.toDisplayString(o)+" "+t.toDisplayString(o===1?"mes":"meses"),1)]),availableItem:t.withCtx(({item:o})=>[t.createElementVNode("div",null,t.toDisplayString(o)+" "+t.toDisplayString(o===1?"mes":"meses"),1)]),_:1},16,["items","model-value"])]),t.createCommentVNode("",!0),t.createCommentVNode("",!0)]))}},Z6t=ml(X6t,[["__scopeId","data-v-b1fc2fa6"]]),YH=(e,r)=>{const i=e.__vccOpts||e;for(const[B,D]of r)i[B]=D;return i},J6t={name:"MultiRangeSlider",props:{baseClassName:{type:String,default:"multi-range-slider"},min:{type:Number},max:{type:Number},minValue:{type:Number},maxValue:{type:Number},step:{type:Number,default:1},preventWheel:{type:Boolean,default:!1},ruler:{type:Boolean,default:!0},label:{type:Boolean,default:!0},labels:{type:Array},minCaption:{type:String},maxCaption:{type:String},rangeMargin:{type:Number}},data(){let e=this.labels||[],r=this.min===void 0?0:this.min,i=e.length?e.length-1:100,B=this.max===void 0?i:this.max,D=this.minValue===void 0?25:this.minValue;e.length&&this.minValue===void 0&&(D=1);let c=this.maxValue||75;if(e.length&&this.maxValue===void 0&&(c=e.length-2),B<=r)throw new Error("Invalid props min or max");if(D>c)throw new Error("Invalid props minValue or maxValue");let g=this.rangeMargin===void 0?this.step:this.rangeMargin,a=g%this.step;return a&&(g=g+this.step-a),{valueMin:D<r?r:D,valueMax:c>B?B:c,interVal:null,startX:null,mouseMoveCounter:null,barBox:null,barValue:0,rangeMarginValue:g}},methods:{onBarLeftClick(){this.valueMin-this.step>=this.minimum?this.valueMin-=this.step:this.valueMin=this.minimum},onInnerBarLeftClick(){this.valueMin+this.rangeMarginValue<this.valueMax&&(this.valueMin+=this.step)},onBarRightClick(){this.valueMax+this.step<=this.maximum?this.valueMax+=this.step:this.valueMax=this.maximum},onInnerBarRightClick(){this.valueMax-this.rangeMarginValue>this.valueMin&&(this.valueMax-=this.step)},onInputMinChange(e){let r=parseFloat(e.target.value);r<=this.valueMax-this.rangeMarginValue&&r>=this.minimum?this.valueMin=r:e.target.value=this.valueMin},onInputMaxChange(e){let r=parseFloat(e.target.value);r>=this.valueMin+this.rangeMarginValue&&r<=this.maximum?this.valueMax=r:e.target.value=this.valueMax},onLeftThumbMousedown(e){if(e.preventDefault(),this.startX=e.clientX,e.type==="touchstart")if(e.touches.length===1)this.startX=e.touches[0].clientX;else return;this.mouseMoveCounter=0,this.barValue=this.valueMin,this.barBox=e.target.parentNode.getBoundingClientRect(),document.addEventListener("mousemove",this.onLeftThumbMousemove),document.addEventListener("mouseup",this.onLeftThumbMouseup),document.addEventListener("touchmove",this.onLeftThumbMousemove),document.addEventListener("touchend",this.onLeftThumbMouseup)},onLeftThumbMousemove(e){this.mouseMoveCounter++;let r=e.clientX;e.type==="touchmove"&&(r=e.touches[0].clientX);let i=(r-this.startX)/this.barBox.width,B=this.barValue+(this.maximum-this.minimum)*i,D=B%this.step;B-=D,B<this.minimum?B=this.minimum:B>this.valueMax-this.rangeMarginValue&&(B=this.valueMax-this.rangeMarginValue),this.valueMin=B},onLeftThumbMouseup(){document.removeEventListener("mousemove",this.onLeftThumbMousemove),document.removeEventListener("mouseup",this.onLeftThumbMouseup),document.removeEventListener("touchmove",this.onLeftThumbMousemove),document.removeEventListener("touchend",this.onLeftThumbMouseup)},onRightThumbMousedown(e){if(e.preventDefault(),this.startX=e.clientX,e.type==="touchstart")if(e.touches.length===1)this.startX=e.touches[0].clientX;else return;this.mouseMoveCounter=0,this.barValue=this.valueMax,this.barBox=e.target.parentNode.getBoundingClientRect(),document.addEventListener("mousemove",this.onRightThumbMousemove),document.addEventListener("mouseup",this.onRightThumbMouseup),document.addEventListener("touchmove",this.onRightThumbMousemove),document.addEventListener("touchend",this.onRightThumbMouseup)},onRightThumbMousemove(e){this.mouseMoveCounter++;let r=e.clientX;e.type==="touchmove"&&(r=e.touches[0].clientX);let i=(r-this.startX)/this.barBox.width,B=this.barValue+(this.maximum-this.minimum)*i,D=B%this.step;B-=D,B<this.valueMin+this.rangeMarginValue?B=this.valueMin+this.rangeMarginValue:B>this.maximum&&(B=this.maximum),this.valueMax=B},onRightThumbMouseup(){document.removeEventListener("mousemove",this.onRightThumbMousemove),document.removeEventListener("mouseup",this.onRightThumbMouseup),document.removeEventListener("touchmove",this.onRightThumbMousemove),document.removeEventListener("touchend",this.onRightThumbMouseup)},onMouseWheel(e){if(this.preventWheel===!0||!e.shiftKey&&!e.ctrlKey)return;let r=this.step;e.deltaY<0&&(r=-r),e.shiftKey&&e.ctrlKey?this.valueMin+r>=this.minimum&&this.valueMax+r<=this.maximum&&(this.valueMin=this.valueMin+r,this.valueMax=this.valueMax+r):e.ctrlKey?(r=this.valueMax+r,r<this.valueMin+this.rangeMarginValue?r=this.valueMin+this.rangeMarginValue:r>this.maximum&&(r=this.maximum),this.valueMax=r):e.shiftKey&&(r=this.valueMin+r,r<this.minimum?r=this.minimum:r>this.valueMax-this.rangeMarginValue&&(r=this.valueMax-this.rangeMarginValue),this.valueMin=r)},triggerInput(){let e=0;this.step.toString().includes(".")&&(e=2);let r={min:this.minimum,max:this.maximum,minValue:parseFloat(this.valueMin.toFixed(e)),maxValue:parseFloat(this.valueMax.toFixed(e))};this.$emit("input",r)}},computed:{minimum(){return this.min===void 0?0:this.min},maximum(){let e=this.labels||[],r=e.length?e.length-1:100;return this.max===void 0?r:this.max},stepCount(){let e=this.labels||[];return e.length?e.length-1:Math.floor((this.maximum-this.minimum)/this.step)},subStepCount(){return(this.labels||[]).length&&this.step>1?(this.maximum-this.minimum)/this.step:0},barMin(){return(this.valueMin-this.minimum)/(this.maximum-this.minimum)*100},barMax(){return 100-(this.valueMax-this.minimum)/(this.maximum-this.minimum)*100},barMinVal(){let e=0;return this.step.toString().includes(".")&&(e=2),(this.valueMin||0).toFixed(e)},barMaxVal(){let e=0;return this.step.toString().includes(".")&&(e=2),(this.valueMax||100).toFixed(e)},scaleLabels(){let e=this.labels||[];return e.length===0&&(e=[],e.push(this.minimum),e.push(this.maximum)),e}},watch:{valueMin(){this.triggerInput()},valueMax(){this.triggerInput()},minValue(e){this.valueMin=e<this.minimum?this.minimum:e},maxValue(e){this.valueMax=e>this.maximum?this.maximum:e}},mounted(){}},K6t={class:"bar"},Q6t=["min","max","step","value"],e8t={class:"caption"},t8t={class:"min-caption"},a8t={class:"bar-inner"},n8t=["min","max","step","value"],r8t={class:"caption"},i8t={class:"max-caption"},o8t={key:0,class:"ruler"},s8t={key:1,class:"sub-ruler"},l8t={key:2,class:"labels"};function c8t(e,r,i,B,D,c){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass([i.baseClassName,D.rangeMarginValue===0?"zero-ranage-margin":""]),onMousewheel:r[10]||(r[10]=t.withModifiers((...g)=>c.onMouseWheel&&c.onMouseWheel(...g),["prevent","stop"]))},[t.createElementVNode("div",K6t,[t.createElementVNode("div",{class:"bar-left",style:t.normalizeStyle({width:c.barMin+"%"}),onClick:r[0]||(r[0]=(...g)=>c.onBarLeftClick&&c.onBarLeftClick(...g))},null,4),t.createElementVNode("input",{class:"input-type-range input-type-range-min",type:"range",min:c.minimum,max:c.maximum,step:i.step,value:D.valueMin,onInput:r[1]||(r[1]=t.withModifiers((...g)=>c.onInputMinChange&&c.onInputMinChange(...g),["stop","prevent"]))},null,40,Q6t),t.createElementVNode("div",{class:"thumb thumb-left",onMousedown:r[2]||(r[2]=(...g)=>c.onLeftThumbMousedown&&c.onLeftThumbMousedown(...g)),onTouchstart:r[3]||(r[3]=(...g)=>c.onLeftThumbMousedown&&c.onLeftThumbMousedown(...g))},[t.createElementVNode("div",e8t,[t.createElementVNode("span",t8t,t.toDisplayString(i.minCaption||c.barMinVal),1)])],32),t.createElementVNode("div",a8t,[t.createElementVNode("div",{class:"bar-inner-left",onClick:r[4]||(r[4]=(...g)=>c.onInnerBarLeftClick&&c.onInnerBarLeftClick(...g))}),t.createElementVNode("div",{class:"bar-inner-right",onClick:r[5]||(r[5]=(...g)=>c.onInnerBarRightClick&&c.onInnerBarRightClick(...g))})]),t.createElementVNode("input",{class:"input-type-range input-type-range-max",type:"range",min:c.minimum,max:c.maximum,step:i.step,value:D.valueMax,onInput:r[6]||(r[6]=t.withModifiers((...g)=>c.onInputMaxChange&&c.onInputMaxChange(...g),["stop","prevent"]))},null,40,n8t),t.createElementVNode("div",{class:"thumb thumb-right",onMousedown:r[7]||(r[7]=(...g)=>c.onRightThumbMousedown&&c.onRightThumbMousedown(...g)),onTouchstart:r[8]||(r[8]=(...g)=>c.onRightThumbMousedown&&c.onRightThumbMousedown(...g))},[t.createElementVNode("div",r8t,[t.createElementVNode("span",i8t,t.toDisplayString(i.maxCaption||c.barMaxVal),1)])],32),t.createElementVNode("div",{class:"bar-right",style:t.normalizeStyle({width:c.barMax+"%"}),onClick:r[9]||(r[9]=(...g)=>c.onBarRightClick&&c.onBarRightClick(...g))},null,4)]),i.ruler?(t.openBlock(),t.createElementBlock("div",o8t,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(c.stepCount,g=>(t.openBlock(),t.createElementBlock("div",{key:g,class:"ruler-rule"}))),128))])):t.createCommentVNode("",!0),c.subStepCount?(t.openBlock(),t.createElementBlock("div",s8t,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(c.subStepCount,g=>(t.openBlock(),t.createElementBlock("div",{key:g,class:"ruler-sub-rule"}))),128))])):t.createCommentVNode("",!0),i.label?(t.openBlock(),t.createElementBlock("div",l8t,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(c.scaleLabels,g=>(t.openBlock(),t.createElementBlock("div",{class:"label",key:g},t.toDisplayString(g),1))),128))])):t.createCommentVNode("",!0)],34)}const d8t=YH(J6t,[["render",c8t]]),yE={components:{MultiRangeSlider:d8t},props:{minLimit:{type:Number,default:10},maxLimit:{type:Number,default:100},minValue:{type:Number,default:10},maxValue:{type:Number,default:100},height:{type:String,default:"150px"},borderRadius:{type:String,default:"6px"},borderType:{type:String,default:"solid"},borderWidth:{type:Number,default:2},borderColor:{type:String,default:"#d9d9d9"},fontColor:{type:String,default:"#FFFFFF"},fontSize:{type:String,default:"16px"},fontFamily:{type:String,default:"Poppins-Regular"},fontFamilyValue:{type:String,default:"Poppins-Medium"},fontColorValue:{type:String,default:"#FFFFFF"},fontSizeValue:{type:String,default:"20px"},backgroundIndicador:{type:String,default:"rgb(22, 233, 40)"},heightIndicador:{type:String,default:"15px"},widthIndicador:{type:String,default:"15px"},marginTopIndicador:{type:String,default:"-8px"},borderColorIndicador:{type:String,default:"#FFFFFF"},borderWidthIndicador:{type:String,default:"3px"},lineInRangeColor:{type:String,default:"rgb(22, 233, 40)"},lineOutRangeColor:{type:String,default:"#c7c7c7"},minSuffix:{type:String,default:""},maxSuffix:{type:String,default:""}},data(){return{minValueLocal:0,maxValueLocal:0}},computed:{customStyle(){return{height:this.height,borderRadius:this.borderRadius,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`}},customStyleText(){return{color:this.fontColor,fontSize:this.fontSize,fontFamily:`${this.fontFamily} !important`}},customStyleValue(){return{color:this.fontColorValue,fontSize:this.fontSizeValue,fontFamily:`${this.fontFamilyValue} !important`}}},watch:{minValue:{handler(e){this.minValueLocal=e},immediate:!0},maxValue:{handler(e){this.maxValueLocal=e},immediate:!0}},methods:{onInput(e){this.minValueLocal=e.minValue,this.maxValueLocal=e.maxValue,this.$emit("input",e)}}},XH=()=>{t.useCssVars(e=>({"318dc560":e.lineOutRangeColor,fcb35722:e.lineInRangeColor,"3edd517e":e.backgroundIndicador,"19ee7a09":e.widthIndicador,"482e6b68":e.heightIndicador,"48824d56":e.borderWidthIndicador,a51d4f50:e.borderColorIndicador,deb3b7b0:e.marginTopIndicador}))},ZH=yE.setup;yE.setup=ZH?(e,r)=>(XH(),ZH(e,r)):XH;const u8t={class:"center"},h8t={class:"bar-ref"},p8t={class:"bar-ref-element-left"},f8t={class:"bar-ref-element-right"};function m8t(e,r,i,B,D,c){const g=t.resolveComponent("MultiRangeSlider");return t.openBlock(),t.createElementBlock("div",{class:"custom-range-slider",style:t.normalizeStyle(c.customStyle)},[t.createElementVNode("div",u8t,[t.createElementVNode("div",h8t,[t.createElementVNode("div",p8t,[t.createElementVNode("div",{class:"text",style:t.normalizeStyle(c.customStyleText)},"De:",4),t.createElementVNode("div",{class:"value",style:t.normalizeStyle(c.customStyleValue)},t.toDisplayString(D.minValueLocal)+t.toDisplayString(i.minSuffix),5)]),t.createElementVNode("div",f8t,[t.createElementVNode("div",{class:"text",style:t.normalizeStyle(c.customStyleText)},"A:",4),t.createElementVNode("div",{class:"value",style:t.normalizeStyle(c.customStyleValue)},t.toDisplayString(D.maxValueLocal)+t.toDisplayString(i.maxSuffix),5)])]),t.createVNode(g,{baseClassName:"multi-range-slider",min:i.minLimit,max:i.maxLimit,step:1,ruler:!1,label:!1,"min-value":D.minValueLocal,"max-value":D.maxValueLocal,"range-margin":0,onInput:c.onInput},null,8,["min","max","min-value","max-value","onInput"])])],4)}const JH=YH(yE,[["render",m8t]]),g8t={class:"template-distance"},y8t={__name:"TemplateDistance",props:{distance:{type:Object,default:()=>({minLimit:5,maxLimit:30,minValue:5,maxValue:30})}},emits:["update:distanceFilters"],setup(e,{emit:r}){const i=e,B=t.ref({minValue:0,maxValue:0,minLimit:0,maxLimit:0});t.watch(()=>B.value,c=>{r("update:distanceFilters",c)},{deep:!0}),t.watch(()=>i.distance,c=>{B.value.minValue=c.minValue,B.value.maxValue=c.maxValue,B.value.minLimit=c.minLimit,B.value.maxLimit=c.maxLimit},{immediate:!0,deep:!0});function D(c){B.value.minValue=c.minValue,B.value.maxValue=c.maxValue}return(c,g)=>(t.openBlock(),t.createElementBlock("div",g8t,[t.createVNode(t.unref(JH),{"border-width":"0","background-color":"#0D1D29",height:"30px","font-size-value":"12px","font-size":"12px","line-in-range-color":"white","background-indicador":"#CBEE6B","min-limit":B.value.minLimit,"max-limit":B.value.maxLimit,"min-value":B.value.minValue,"max-value":B.value.maxValue,"min-suffix":"m","max-suffix":"+",onInput:D},null,8,["min-limit","max-limit","min-value","max-value"])]))}},v8t=e=>(t.pushScopeId("data-v-be32e3d8"),e=e(),t.popScopeId(),e),_8t={class:"template-games"},b8t={class:"template-games__header"},x8t=v8t(()=>t.createElementVNode("div",{class:"template-games__header__title"},"Partidos jugados:",-1)),w8t={class:"template-games__header__all-games"},k8t={__name:"TemplateGames",props:{gamesFilters:{type:Array,default:()=>[]}},emits:["update:gamesFilters"],setup(e,{emit:r}){const i=e,B=t.ref(!1),D=t.computed(()=>i.gamesFilters.filter(g=>g.isSelected).length);t.watch(()=>i.gamesFilters,g=>{r("update:gamesFilters",g)},{deep:!0}),t.watch(D,g=>{B.value=g===i.gamesFilters.length,r("update:gamesFilters",i.gamesFilters)},{immediate:!0});const c=g=>{g?i.gamesFilters.forEach(a=>{a.isSelected=g}):i.gamesFilters.forEach((a,y)=>{a.isSelected=y===0}),B.value=g};return(g,a)=>(t.openBlock(),t.createElementBlock("div",_8t,[t.createElementVNode("div",b8t,[x8t,t.createElementVNode("div",w8t,[t.createVNode(t.unref(Is),{modelValue:B.value,label:"Todos","box-position":"right","font-family":"Roboto-Regular, sans-serif","label-font-size":"12px","onUpdate:modelValue":c},null,8,["modelValue"])])]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.gamesFilters,(y,f)=>(t.openBlock(),t.createElementBlock("div",{key:f,class:"template-games__game"},[t.createVNode(t.unref(Is),{modelValue:y.isSelected,"onUpdate:modelValue":n=>y.isSelected=n,label:y.label,"teams-ids":y.teamsIds,"avoid-interaction":D.value===1&&y.isSelected},null,8,["modelValue","onUpdate:modelValue","label","teams-ids","avoid-interaction"])]))),128))]))}},C8t=ml(k8t,[["__scopeId","data-v-be32e3d8"]]),S8t=(e,r)=>{const i=e.__vccOpts||e;for(const[B,D]of r)i[B]=D;return i},vE={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))}}},KH=()=>{t.useCssVars(e=>({"1c960139":e.height,b2f635d8:e.borderWidthBtn,"06e99898":e.borderType,"55555c76":e.borderColor,"23b6d320":e.borderRadius,"22c97374":e.width,"22bb09fa":e.backgroundColor,c148da7c:e.cursorType,cce756fc:e.fontSize,cff98d60:e.fontStyle,"5123b3a5":e.fontFamily,"47bf58db":e.marginLeftStat,cadc8414:e.fontSizeStat}))},QH=vE.setup;vE.setup=QH?(e,r)=>(KH(),QH(e,r)):KH;const T8t=e=>(t.pushScopeId("data-v-fb269a1e"),e=e(),t.popScopeId(),e),E8t=["src"],A8t={key:1,class:"text"},M8t=["src"],I8t={class:"stats"},P8t=T8t(()=>t.createElementVNode("img",{class:"iconstats",src:"https://az755631.vo.msecnd.net/todoelfut/playdes.png"},null,-1)),B8t={class:"numstats"},N8t={class:"leyend"};function z8t(e,r,i,B,D,c){return t.openBlock(),t.createElementBlock("div",null,[i.type==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["button",D.status&&i.typeOnOff&&"button-active"]),style:t.normalizeStyle([c.customStyle,D.status&&i.typeOnOff&&c.customActive]),onClick:r[0]||(r[0]=(...g)=>c.btnClick&&c.btnClick(...g))},[i.icon&&i.iconPosition.toLowerCase()==="left"?(t.openBlock(),t.createElementBlock("img",{key:0,class:"icon",style:t.normalizeStyle({width:i.iconSize}),src:i.icon},null,12,E8t)):t.createCommentVNode("",!0),i.textValue?(t.openBlock(),t.createElementBlock("div",A8t,t.toDisplayString(i.textValue),1)):t.createCommentVNode("",!0),i.icon&&i.iconPosition.toLowerCase()==="right"?(t.openBlock(),t.createElementBlock("img",{key:2,class:"icon",style:t.normalizeStyle({width:i.iconSize}),src:i.icon},null,12,M8t)):t.createCommentVNode("",!0)],6)):t.createCommentVNode("",!0),i.type==1?(t.openBlock(),t.createElementBlock("div",{key:1,class:"button-target",onClick:r[1]||(r[1]=(...g)=>c.btnClick&&c.btnClick(...g))},[t.createElementVNode("div",I8t,[P8t,t.createElementVNode("div",B8t,t.toDisplayString(i.textStat),1)]),t.createElementVNode("div",N8t,t.toDisplayString(i.textCategory),1)])):t.createCommentVNode("",!0)])}const _E=S8t(vE,[["render",z8t],["__scopeId","data-v-fb269a1e"]]),O8t=(e,r)=>{const i=e.__vccOpts||e;for(const[B,D]of r)i[B]=D;return i},bE={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))}}},eW=()=>{t.useCssVars(e=>({"1c960139":e.height,b2f635d8:e.borderWidthBtn,"06e99898":e.borderType,"55555c76":e.borderColor,"23b6d320":e.borderRadius,"22c97374":e.width,"22bb09fa":e.backgroundColor,c148da7c:e.cursorType,cce756fc:e.fontSize,cff98d60:e.fontStyle,"5123b3a5":e.fontFamily,"47bf58db":e.marginLeftStat,cadc8414:e.fontSizeStat}))},tW=bE.setup;bE.setup=tW?(e,r)=>(eW(),tW(e,r)):eW;const F8t=e=>(t.pushScopeId("data-v-fb269a1e"),e=e(),t.popScopeId(),e),L8t=["src"],D8t={key:1,class:"text"},R8t=["src"],V8t={class:"stats"},$8t=F8t(()=>t.createElementVNode("img",{class:"iconstats",src:"https://az755631.vo.msecnd.net/todoelfut/playdes.png"},null,-1)),j8t={class:"numstats"},U8t={class:"leyend"};function G8t(e,r,i,B,D,c){return t.openBlock(),t.createElementBlock("div",null,[i.type==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["button",D.status&&i.typeOnOff&&"button-active"]),style:t.normalizeStyle([c.customStyle,D.status&&i.typeOnOff&&c.customActive]),onClick:r[0]||(r[0]=(...g)=>c.btnClick&&c.btnClick(...g))},[i.icon&&i.iconPosition.toLowerCase()==="left"?(t.openBlock(),t.createElementBlock("img",{key:0,class:"icon",style:t.normalizeStyle({width:i.iconSize}),src:i.icon},null,12,L8t)):t.createCommentVNode("",!0),i.textValue?(t.openBlock(),t.createElementBlock("div",D8t,t.toDisplayString(i.textValue),1)):t.createCommentVNode("",!0),i.icon&&i.iconPosition.toLowerCase()==="right"?(t.openBlock(),t.createElementBlock("img",{key:2,class:"icon",style:t.normalizeStyle({width:i.iconSize}),src:i.icon},null,12,R8t)):t.createCommentVNode("",!0)],6)):t.createCommentVNode("",!0),i.type==1?(t.openBlock(),t.createElementBlock("div",{key:1,class:"button-target",onClick:r[1]||(r[1]=(...g)=>c.btnClick&&c.btnClick(...g))},[t.createElementVNode("div",V8t,[$8t,t.createElementVNode("div",j8t,t.toDisplayString(i.textStat),1)]),t.createElementVNode("div",U8t,t.toDisplayString(i.textCategory),1)])):t.createCommentVNode("",!0)])}const H8t=O8t(bE,[["render",G8t],["__scopeId","data-v-fb269a1e"]]),W8t=(e,r)=>{const i=e.__vccOpts||e;for(const[B,D]of r)i[B]=D;return i},q8t={key:1},Y8t={width:"10",height:"8",viewBox:"0 0 10 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},X8t=["fill"],Z8t={key:0,class:"checkbox__teams"},J8t={class:"checkbox__teams__logo"},K8t=["src"],Q8t={class:"checkbox__teams__logo"},ekt=["src"],tkt={__name:"GSC-Checkbox",props:{width:{type:String,default:"fit-content"},height:{type:String,default:"fit-content"},label:{type:String,default:""},labelWhiteSpace:{type:String,default:"normal"},labelColor:{type:String,default:"white"},fontFamily:{type:String,default:"sans-serif"},labelFontSize:{type:String,default:"12px"},modelValue:{type:Boolean,default:!1},justifyContent:{type:String,default:"flex-start"},alignItems:{type:String,default:"center"},boxBackgroundColor:{type:String,default:"#CBEE6B"},boxValueColor:{type:String,default:"#0d1d29"},boxValue:{type:[String,Number],default:""},boxPosition:{type:String,default:"left",validator(e){return["left","right","top","bottom"].includes(e)}},boxMarginTop:{type:String,default:"0.2em"},boxWidthAndHeight:{type:String,default:"16px"},boxBorderColor:{type:String,default:"#969da2"},boxBorderWidth:{type:String,default:"2px"},boxBorderRadius:{type:String,default:"4px"},boxValueFontSize:{type:String,default:"10px"},boxValueFontFamily:{type:String,default:"sans-serif"},avoidInteraction:{type:Boolean,default:!1},avoidToCheck:{type:Boolean,default:!1},isBoxOnly:{type:Boolean,default:!1},teamsIds:{type:Array,default:()=>null}},emits:["update:modelValue"],setup(e,{emit:r}){const i=e;t.useCssVars(f=>({"6582e90e":e.width,"310b3edf":e.height}));const B=t.ref(!1),D=t.computed(()=>{const f={color:i.boxValueColor,"font-family":i.fontFamily,height:i.boxWidthAndHeight,width:i.boxWidthAndHeight,minWidth:i.boxWidthAndHeight,"border-radius":i.boxBorderRadius,"margin-top":i.boxMarginTop};return B.value?(f["background-color"]=i.boxBackgroundColor,f.border=`solid ${i.boxBorderWidth} ${i.boxBackgroundColor}`):f.border=`solid ${i.boxBorderWidth} ${i.boxBorderColor}`,f}),c=t.computed(()=>({"font-family":i.boxValueFontFamily,"font-size":i.boxValueFontSize,color:i.boxValueColor,"line-height":1})),g=t.computed(()=>{const f={color:i.labelColor,"font-family":i.fontFamily,"font-size":i.labelFontSize,"white-space":i.labelWhiteSpace,"text-align":i.boxPosition==="top"||i.boxPosition==="bottom"?"center":i.boxPosition};return(i.boxPosition==="left"||i.boxPosition==="right")&&(f[`margin-${i.boxPosition}`]=i.isBoxOnly?"0":i.teamsIds?"8px":"10px"),f});t.watch(()=>i.modelValue,f=>{f!==B.value&&(B.value=f)},{immediate:!0});function a(){i.avoidInteraction||!B.value&&i.avoidToCheck||(B.value=!B.value,r("update:modelValue",B.value))}function y(f){return`${{}.TEAM_LOGOS_URL||"https://az755631.vo.msecnd.net/teams-80/"}${f}.png`}return(f,n)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["checkbox",`box-${e.boxPosition}`]),onClick:a},[t.createElementVNode("div",{class:"checkbox__box",style:t.normalizeStyle(D.value)},[B.value?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[i.boxValue?(t.openBlock(),t.createElementBlock("div",{key:0,class:"checkbox__box__value",style:t.normalizeStyle(c.value)},t.toDisplayString(e.boxValue),5)):(t.openBlock(),t.createElementBlock("div",q8t,[(t.openBlock(),t.createElementBlock("svg",Y8t,[t.createElementVNode("path",{d:"M9.77994 1.70133L4.10994 7.37133C3.96994 7.51133 3.77994 7.59133 3.57994 7.59133C3.37994 7.59133 3.18994 7.51133 3.04994 7.37133L0.219941 4.54133C-0.0700586 4.25133 -0.0700586 3.77133 0.219941 3.48133C0.509941 3.19133 0.989941 3.19133 1.27994 3.48133L3.57994 5.78133L8.71994 0.641328C9.00994 0.351328 9.48994 0.351328 9.77994 0.641328C10.0699 0.931328 10.0699 1.40133 9.77994 1.70133Z",fill:e.boxValueColor},null,8,X8t)]))]))],64)):t.createCommentVNode("",!0)],4),e.teamsIds&&e.teamsIds.length?(t.openBlock(),t.createElementBlock("div",Z8t,[t.createElementVNode("div",J8t,[t.createElementVNode("img",{src:y(e.teamsIds[0]),alt:""},null,8,K8t)]),t.createElementVNode("div",Q8t,[t.createElementVNode("img",{src:y(e.teamsIds[1]),alt:""},null,8,ekt)])])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"checkbox__label",style:t.normalizeStyle(g.value)},t.toDisplayString(e.label),5)],2))}},akt=W8t(tkt,[["__scopeId","data-v-bcf3bcc6"]]),nkt=(e,r)=>{const i=e.__vccOpts||e;for(const[B,D]of r)i[B]=D;return i},xE={components:{GSCButton:H8t,GSCCheckbox:akt},data(){return{update:0,all:!1,refreshBtn14:0,refreshBtn24:0,refreshBtn34:0,refreshBtn44:0,sectors:Array.from({length:16},(e,r)=>({sector:r+1,active:!1})),lastUpdatedValue:[]}},props:{backgroundColor:{type:String,default:"#2e3b46"},heightContainer:{type:String,default:"340px"},widthContainer:{type:String,default:"455px"},heightField:{type:Number,default:230},widthField:{type:Number,default:350},heightFieldGrid:{type:String,default:"230px"},widthFieldGrid:{type:String,default:"350px"},backgroundSectorActive:{type:String,default:"#cbee6b"},backgroundSectorDisabled:{type:String,default:"#2e3b46"},borderWidth:{type:Number,default:1},opacitySector:{type:Number,default:.5},borderColor:{type:String,default:"#FFFFFF"},colorLineField:{type:String,default:"#bfc2c5"},borderWidthLineField:{type:Number,default:2},value:{type:Array,default:()=>[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16]},title:{type:String,default:"Pase(s) desde la(s) zona(s):"},titleFontSize:{type:String,default:"14px"}},watch:{value:{deep:!0,immediate:!0,handler(e){const r=e.sort();JSON.stringify(r)!==JSON.stringify(this.lastUpdatedValue)&&(this.lastUpdatedValue=r,this.sectors.forEach((i,B)=>{i.active=e.includes(B+1),this.validateField(B)}),this.$emit("update:modelValue",e))}},sectors:{handler(e){var r=[];for(let i=0;i<e.length;i++)e[i].active&&r.push(i+1);this.$emit("update:modelValue",r)},deep:!0}},computed:{translx(){var e=0;return this.widthField>305?e=this.widthField-305:this.widthField==268&&(e=-36),e},transly(){var e=0;return this.heightField>195?(e=this.heightField-195,e=e/2):this.heightField==180&&(e=-7),e},translxcircle(){var e=0;return this.widthField>305?(e=this.widthField-305,e=e/2):this.widthField==268&&(e=-18),e}},methods:{clickAll(e){if(e){for(let r=0;r<this.sectors.length;r++)this.sectors[r].active=!0,this.validateField(r);this.status14=!0,this.status24=!0,this.status34=!0,this.status44=!0,this.refreshBtn14+=1,this.refreshBtn24+=1,this.refreshBtn34+=1,this.refreshBtn44+=1}else for(let r=0;r<this.sectors.length;r++)this.sectors[r].active=!1,this.validateField(r),this.status14=!1,this.status24=!1,this.status34=!1,this.status44=!1,this.refreshBtn14=0,this.refreshBtn24=0,this.refreshBtn34=0,this.refreshBtn44=0},selectSector(e){var r=0;this.sectors[e].active=!this.sectors[e].active;for(let i=0;i<this.sectors.length;i++)this.sectors[i].active&&(r+=1);r==0&&(this.sectors[e].active=!0),this.validateField(e)},btn14(e){this.sectors[0].active=e?this.sectors[0].active=!0:this.sectors[0].active=!1,this.sectors[1].active=e?this.sectors[1].active=!0:this.sectors[1].active=!1,this.sectors[2].active=e?this.sectors[2].active=!0:this.sectors[2].active=!1,this.sectors[3].active=e?this.sectors[3].active=!0:this.sectors[3].active=!1;var r=0;for(let i=0;i<this.sectors.length;i++)this.sectors[i].active&&(r+=1);r==0?(this.sectors[0].active=!0,this.sectors[1].active=!0,this.sectors[2].active=!0,this.sectors[3].active=!0,this.status14=!0,this.refreshBtn14+=1):this.status14=!1,r==16&&(this.all=!0,this.update+=1)},btn24(e){this.sectors[4].active=e?this.sectors[4].active=!0:this.sectors[4].active=!1,this.sectors[5].active=e?this.sectors[5].active=!0:this.sectors[5].active=!1,this.sectors[6].active=e?this.sectors[6].active=!0:this.sectors[6].active=!1,this.sectors[7].active=e?this.sectors[7].active=!0:this.sectors[7].active=!1;var r=0;for(let i=0;i<this.sectors.length;i++)this.sectors[i].active&&(r+=1);r==0?(this.sectors[4].active=!0,this.sectors[5].active=!0,this.sectors[6].active=!0,this.sectors[7].active=!0,this.status24=!0,this.refreshBtn24+=1):this.status24=!1,r==16&&(this.all=!0,this.update+=1)},btn34(e){this.sectors[8].active=e?this.sectors[8].active=!0:this.sectors[8].active=!1,this.sectors[9].active=e?this.sectors[9].active=!0:this.sectors[9].active=!1,this.sectors[10].active=e?this.sectors[10].active=!0:this.sectors[10].active=!1,this.sectors[11].active=e?this.sectors[11].active=!0:this.sectors[11].active=!1;var r=0;for(let i=0;i<this.sectors.length;i++)this.sectors[i].active&&(r+=1);r==0?(this.sectors[8].active=!0,this.sectors[9].active=!0,this.sectors[10].active=!0,this.sectors[11].active=!0,this.status34=!0,this.refreshBtn34+=1):this.status34=!1,r==16&&(this.all=!0,this.update+=1)},btn44(e){this.sectors[12].active=e?this.sectors[12].active=!0:this.sectors[12].active=!1,this.sectors[13].active=e?this.sectors[13].active=!0:this.sectors[13].active=!1,this.sectors[14].active=e?this.sectors[14].active=!0:this.sectors[14].active=!1,this.sectors[15].active=e?this.sectors[15].active=!0:this.sectors[15].active=!1;var r=0;for(let i=0;i<this.sectors.length;i++)this.sectors[i].active&&(r+=1);r==0?(this.sectors[12].active=!0,this.sectors[13].active=!0,this.sectors[14].active=!0,this.sectors[15].active=!0,this.status44=!0,this.refreshBtn44+=1):this.status44=!1,r==16&&(this.all=!0,this.update+=1)},validateField(e){(e===0||e===1||e===2||e===3)&&(this.status14=!!(this.sectors[0].active&&this.sectors[1].active&&this.sectors[2].active&&this.sectors[3].active)),(e===4||e===5||e===6||e===7)&&(this.status24=!!(this.sectors[4].active&&this.sectors[5].active&&this.sectors[6].active&&this.sectors[7].active)),(e===8||e===9||e===10||e===11)&&(this.status34=!!(this.sectors[8].active&&this.sectors[9].active&&this.sectors[10].active&&this.sectors[11].active)),(e===12||e===13||e===14||e===15)&&(this.status44=!!(this.sectors[12].active&&this.sectors[13].active&&this.sectors[14].active&&this.sectors[15].active)),this.all=!!(this.status14&&this.status34&&this.status24&&this.status44),this.update+=1,this.status14&&(this.refreshBtn14+=1),this.status24&&(this.refreshBtn24+=1),this.status34&&(this.refreshBtn34+=1),this.status44&&(this.refreshBtn44+=1)}}},aW=()=>{t.useCssVars(e=>({"4fe806fe":e.widthContainer,"91de7c52":e.heightContainer,"266afcdc":e.backgroundColor,"2b853536":e.titleFontSize,"986b6446":e.widthFieldGrid,"1af308b6":e.heightFieldGrid}))},nW=xE.setup;xE.setup=nW?(e,r)=>(aW(),nW(e,r)):aW;const rkt={class:"gsc-field"},ikt={class:"gsc-field__title-checked"},okt={class:"gsc-field__title-checked__title"},skt={class:"gsc-field__container-field"},lkt={class:"gsc-field__container-field__field"},ckt={width:"100%",height:"100%",fill:"#2e3b46",xmlns:"http://www.w3.org/2000/svg"},dkt=["stroke"],ukt=["stroke","stroke-width"],hkt=["stroke","stroke-width"],pkt=["stroke-width","stroke"],fkt=["fill","fill-opacity","stroke","stroke-width"],mkt=["fill","fill-opacity","stroke","stroke-width"],gkt=["fill","fill-opacity","stroke","stroke-width"],ykt=["fill","fill-opacity","stroke","stroke-width"],vkt=["fill","fill-opacity","stroke","stroke-width"],_kt=["fill","fill-opacity","stroke","stroke-width"],bkt=["fill","fill-opacity","stroke","stroke-width"],xkt=["fill","fill-opacity","stroke","stroke-width"],wkt=["fill","fill-opacity","stroke","stroke-width"],kkt=["fill","fill-opacity","stroke","stroke-width"],Ckt=["fill","fill-opacity","stroke","stroke-width"],Skt=["fill","fill-opacity","stroke","stroke-width"],Tkt=["fill","fill-opacity","stroke","stroke-width"],Ekt=["fill","fill-opacity","stroke","stroke-width"],Akt=["fill","fill-opacity","stroke","stroke-width"],Mkt=["fill","fill-opacity","stroke","stroke-width"],Ikt={class:"gsc-field__container-field__bar-buttons"};function Pkt(e,r,i,B,D,c){const g=t.resolveComponent("GSCCheckbox"),a=t.resolveComponent("GSCButton");return t.openBlock(),t.createElementBlock("div",rkt,[t.createElementVNode("div",ikt,[t.createElementVNode("div",okt,t.toDisplayString(i.title),1),t.createElementVNode("div",{class:"gsc-field__title-checked__check-cont",style:t.normalizeStyle(i.widthField>=350?"min-width: 123px":"")},[(t.openBlock(),t.createBlock(g,{label:i.widthField<350?"Todas":"Todas las zonas","font-family":"Poppins-Regular","box-value-font-family":"Poppins-Regular","box-position":"right","label-font-size":i.titleFontSize,"label-white-space":"nowrap","box-margin-top":"0.4em",value:D.all,key:D.update,"model-value":D.all,"onUpdate:modelValue":c.clickAll},null,8,["label","label-font-size","value","model-value","onUpdate:modelValue"]))],4)]),t.createElementVNode("div",skt,[t.createElementVNode("div",lkt,[(t.openBlock(),t.createElementBlock("svg",ckt,[t.createElementVNode("rect",{x:"1.5",y:"0.5",width:"100%",height:"100%",rx:"1.5",stroke:i.colorLineField},null,8,dkt),t.createElementVNode("path",{style:t.normalizeStyle("transform: translate("+c.translx+"px, "+c.transly+"px);"),d:"M303.597 39.9799H263.371C262.817 39.9799 262.369 40.4301 262.371 40.984L262.842 155.176C262.845 155.726 263.292 156.172 263.842 156.172H302.884",stroke:i.colorLineField,"stroke-width":i.borderWidthLineField,"stroke-linecap":"square"},null,12,ukt),t.createElementVNode("path",{style:t.normalizeStyle("transform: translateY("+c.transly+"px);"),class:"porteria1",d:"M1.09097 156.172L41.3162 156.172C41.8701 156.172 42.3185 155.722 42.3162 155.168L41.845 40.9758C41.8427 40.4252 41.3957 39.98 40.845 39.98L1.80338 39.98",stroke:i.colorLineField,"stroke-width":i.borderWidthLineField,"stroke-linecap":"square"},null,12,hkt),t.createElementVNode("path",{style:t.normalizeStyle("transform: translate("+c.translxcircle+"px, "+c.transly+"px);"),class:"circle",d:"M182.911 97.4512C182.911 113.726 169.44 126.936 152.801 126.936C136.162 126.936 122.691 113.726 122.691 97.4512C122.691 81.1767 136.162 67.9662 152.801 67.9662C169.44 67.9662 182.911 81.1767 182.911 97.4512Z","stroke-width":i.borderWidthLineField,stroke:i.colorLineField},null,12,pkt),t.createElementVNode("rect",{x:"0%",y:"0%",width:"25%",height:"25%",fill:D.sectors[0].active?i.backgroundSectorActive:i.backgroundSectorDisabled,"fill-opacity":i.opacitySector,stroke:i.borderColor,"stroke-width":i.borderWidth,onClick:r[0]||(r[0]=y=>c.selectSector(0))},null,8,fkt),t.createElementVNode("rect",{x:"0%",y:"25%",width:"25%",height:"25%",fill:D.sectors[1].active?i.backgroundSectorActive:i.backgroundSectorDisabled,"fill-opacity":i.opacitySector,stroke:i.borderColor,"stroke-width":i.borderWidth,onClick:r[1]||(r[1]=y=>c.selectSector(1))},null,8,mkt),t.createElementVNode("rect",{x:"0%",y:"50%",width:"25%",height:"25%",fill:D.sectors[2].active?i.backgroundSectorActive:i.backgroundSectorDisabled,"fill-opacity":i.opacitySector,stroke:i.borderColor,"stroke-width":i.borderWidth,onClick:r[2]||(r[2]=y=>c.selectSector(2))},null,8,gkt),t.createElementVNode("rect",{x:"0%",y:"75%",width:"25%",height:"25%",fill:D.sectors[3].active?i.backgroundSectorActive:i.backgroundSectorDisabled,"fill-opacity":i.opacitySector,stroke:i.borderColor,"stroke-width":i.borderWidth,onClick:r[3]||(r[3]=y=>c.selectSector(3))},null,8,ykt),t.createElementVNode("rect",{x:"25%",y:"0%",width:"25%",height:"25%",fill:D.sectors[4].active?i.backgroundSectorActive:i.backgroundSectorDisabled,"fill-opacity":i.opacitySector,stroke:i.borderColor,"stroke-width":i.borderWidth,onClick:r[4]||(r[4]=y=>c.selectSector(4))},null,8,vkt),t.createElementVNode("rect",{x:"25%",y:"25%",width:"25%",height:"25%",fill:D.sectors[5].active?i.backgroundSectorActive:i.backgroundSectorDisabled,"fill-opacity":i.opacitySector,stroke:i.borderColor,"stroke-width":i.borderWidth,onClick:r[5]||(r[5]=y=>c.selectSector(5))},null,8,_kt),t.createElementVNode("rect",{x:"25%",y:"50%",width:"25%",height:"25%",fill:D.sectors[6].active?i.backgroundSectorActive:i.backgroundSectorDisabled,"fill-opacity":i.opacitySector,stroke:i.borderColor,"stroke-width":i.borderWidth,onClick:r[6]||(r[6]=y=>c.selectSector(6))},null,8,bkt),t.createElementVNode("rect",{x:"25%",y:"75%",width:"25%",height:"25%",fill:D.sectors[7].active?i.backgroundSectorActive:i.backgroundSectorDisabled,"fill-opacity":i.opacitySector,stroke:i.borderColor,"stroke-width":i.borderWidth,onClick:r[7]||(r[7]=y=>c.selectSector(7))},null,8,xkt),t.createElementVNode("rect",{x:"50%",y:"0%",width:"25%",height:"25%",fill:D.sectors[8].active?i.backgroundSectorActive:i.backgroundSectorDisabled,"fill-opacity":i.opacitySector,stroke:i.borderColor,"stroke-width":i.borderWidth,onClick:r[8]||(r[8]=y=>c.selectSector(8))},null,8,wkt),t.createElementVNode("rect",{x:"50%",y:"25%",width:"25%",height:"25%",fill:D.sectors[9].active?i.backgroundSectorActive:i.backgroundSectorDisabled,"fill-opacity":i.opacitySector,stroke:i.borderColor,"stroke-width":i.borderWidth,onClick:r[9]||(r[9]=y=>c.selectSector(9))},null,8,kkt),t.createElementVNode("rect",{x:"50%",y:"50%",width:"25%",height:"25%",fill:D.sectors[10].active?i.backgroundSectorActive:i.backgroundSectorDisabled,"fill-opacity":i.opacitySector,stroke:i.borderColor,"stroke-width":i.borderWidth,onClick:r[10]||(r[10]=y=>c.selectSector(10))},null,8,Ckt),t.createElementVNode("rect",{x:"50%",y:"75%",width:"25%",height:"25%",fill:D.sectors[11].active?i.backgroundSectorActive:i.backgroundSectorDisabled,"fill-opacity":i.opacitySector,stroke:i.borderColor,"stroke-width":i.borderWidth,onClick:r[11]||(r[11]=y=>c.selectSector(11))},null,8,Skt),t.createElementVNode("rect",{x:"75%",y:"0%",width:"25%",height:"25%",fill:D.sectors[12].active?i.backgroundSectorActive:i.backgroundSectorDisabled,"fill-opacity":i.opacitySector,stroke:i.borderColor,"stroke-width":i.borderWidth,onClick:r[12]||(r[12]=y=>c.selectSector(12))},null,8,Tkt),t.createElementVNode("rect",{x:"75%",y:"25%",width:"25%",height:"25%",fill:D.sectors[13].active?i.backgroundSectorActive:i.backgroundSectorDisabled,"fill-opacity":i.opacitySector,stroke:i.borderColor,"stroke-width":i.borderWidth,onClick:r[13]||(r[13]=y=>c.selectSector(13))},null,8,Ekt),t.createElementVNode("rect",{x:"75%",y:"50%",width:"25%",height:"25%",fill:D.sectors[14].active?i.backgroundSectorActive:i.backgroundSectorDisabled,"fill-opacity":i.opacitySector,stroke:i.borderColor,"stroke-width":i.borderWidth,onClick:r[14]||(r[14]=y=>c.selectSector(14))},null,8,Akt),t.createElementVNode("rect",{x:"75%",y:"75%",width:"25%",height:"25%",fill:D.sectors[15].active?i.backgroundSectorActive:i.backgroundSectorDisabled,"fill-opacity":i.opacitySector,stroke:i.borderColor,"stroke-width":i.borderWidth,onClick:r[15]||(r[15]=y=>c.selectSector(15))},null,8,Mkt)]))]),t.createElementVNode("div",Ikt,[(t.openBlock(),t.createBlock(a,{"text-value":"1/4 tos","font-size":"12px",height:"26px",width:"65px","type-on-off":!0,"border-width":1,"font-color":"#bfc2c5","border-color":"#8c9399","border-radius":"4px","font-family":"Poppins-Medium","active-border-width":1,"background-color":"","active-background-color":"#cbee6b33",ref:"btn14",onStatus:c.btn14,key:D.refreshBtn14,value:e.status14},null,8,["onStatus","value"])),(t.openBlock(),t.createBlock(a,{"text-value":"2/4 tos","font-size":"12px",height:"26px",width:"65px","type-on-off":!0,"border-width":1,"font-color":"#bfc2c5","border-color":"#8c9399","border-radius":"4px","font-family":"Poppins-Medium","active-border-width":1,"background-color":"","active-background-color":"#cbee6b33",ref:"btn24",onStatus:c.btn24,key:D.refreshBtn24,value:e.status24},null,8,["onStatus","value"])),(t.openBlock(),t.createBlock(a,{"text-value":"3/4 tos","font-size":"12px",height:"26px",width:"65px","type-on-off":!0,"border-width":1,"font-color":"#bfc2c5","border-color":"#8c9399","border-radius":"4px","font-family":"Poppins-Medium","active-border-width":1,"background-color":"","active-background-color":"#cbee6b33",ref:"btn34",onStatus:c.btn34,key:D.refreshBtn34,value:e.status34},null,8,["onStatus","value"])),(t.openBlock(),t.createBlock(a,{"text-value":"4/4 tos","font-size":"12px",height:"26px",width:"65px","type-on-off":!0,"border-width":1,"font-color":"#bfc2c5","border-color":"#8c9399","border-radius":"4px","font-family":"Poppins-Medium","active-border-width":1,"background-color":"","active-background-color":"#cbee6b33",ref:"btn44",onStatus:c.btn44,key:D.refreshBtn44,value:e.status44},null,8,["onStatus","value"]))])])])}const rW=nkt(xE,[["render",Pkt],["__scopeId","data-v-b85699b8"]]),Bkt={class:"toggle-buttons__background"},Nkt=["onClick"],zkt={__name:"ToggleButtons",props:{buttons:{type:Array,required:!0},selectedButtonIndex:{type:Number,default:0},height:{type:String,default:"29px"},width:{type:String,default:"100%"},fontSize:{type:String,default:"12px"},fontFamily:{type:String,default:"Poppins-Medium"},borderRadius:{type:String,default:"8px"},mainBackgroundColor:{type:String,default:"#364448"},mainBorderColor:{type:String,default:"#9AA1A3"},mainBorderWidth:{type:String,default:"0.5px"},activeBorderColor:{type:String,default:"#cbee6b"},activeBorderWidth:{type:String,default:"1px"},activeBackgroundColor:{type:String,default:"#2e3b46"}},emits:["change"],setup(e,{emit:r}){const i=e;t.useCssVars(g=>({"0d588b39":e.height,"2a8da974":e.width,"6d34d30a":e.mainBackgroundColor,"3d50bf20":e.borderRadius,e8fc78a2:e.mainBorderWidth,eb2a7568:e.mainBorderColor,acdd84b6:e.fontFamily,"63d45e82":e.fontSize,b28ed67c:e.activeBorderWidth,b4bcd342:e.activeBorderColor,"7fa6e29d":e.activeBackgroundColor}));const B=t.ref(i.selectedButtonIndex),D=t.computed(()=>({"--grid-template-columns":`repeat(${i.buttons.length}, 1fr)`}));t.watch(()=>i.selectedButtonIndex,g=>{B.value=g}),t.watch(B,(g,a)=>{g!==a&&r("change",{index:g,button:i.buttons[g]})});function c(g){B.value=g}return(g,a)=>(t.openBlock(),t.createElementBlock("div",Bkt,[t.createElementVNode("div",{class:"toggle-buttons",style:t.normalizeStyle(D.value)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.buttons,(y,f)=>(t.openBlock(),t.createElementBlock("div",{key:`b${f}`,class:t.normalizeClass(["toggle-buttons__button",{active:B.value===f}]),onClick:n=>c(f)},t.toDisplayString(y.text||y),11,Nkt))),128))],4)]))}},Okt=ml(zkt,[["__scopeId","data-v-ac2af001"]]);function iW(e,r){return function(){return e.apply(r,arguments)}}const{toString:Fkt}=Object.prototype,{getPrototypeOf:wE}=Object,b4=(e=>r=>{const i=Fkt.call(r);return e[i]||(e[i]=i.slice(8,-1).toLowerCase())})(Object.create(null)),zf=e=>(e=e.toLowerCase(),r=>b4(r)===e),x4=e=>r=>typeof r===e,{isArray:Hy}=Array,b_=x4("undefined");function Lkt(e){return e!==null&&!b_(e)&&e.constructor!==null&&!b_(e.constructor)&&lp(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const oW=zf("ArrayBuffer");function Dkt(e){let r;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?r=ArrayBuffer.isView(e):r=e&&e.buffer&&oW(e.buffer),r}const Rkt=x4("string"),lp=x4("function"),sW=x4("number"),w4=e=>e!==null&&typeof e=="object",Vkt=e=>e===!0||e===!1,k4=e=>{if(b4(e)!=="object")return!1;const r=wE(e);return(r===null||r===Object.prototype||Object.getPrototypeOf(r)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},$kt=zf("Date"),jkt=zf("File"),Ukt=zf("Blob"),Gkt=zf("FileList"),Hkt=e=>w4(e)&&lp(e.pipe),Wkt=e=>{let r;return e&&(typeof FormData=="function"&&e instanceof FormData||lp(e.append)&&((r=b4(e))==="formdata"||r==="object"&&lp(e.toString)&&e.toString()==="[object FormData]"))},qkt=zf("URLSearchParams"),Ykt=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function x_(e,r,{allOwnKeys:i=!1}={}){if(e===null||typeof e>"u")return;let B,D;if(typeof e!="object"&&(e=[e]),Hy(e))for(B=0,D=e.length;B<D;B++)r.call(null,e[B],B,e);else{const c=i?Object.getOwnPropertyNames(e):Object.keys(e),g=c.length;let a;for(B=0;B<g;B++)a=c[B],r.call(null,e[a],a,e)}}function lW(e,r){r=r.toLowerCase();const i=Object.keys(e);let B=i.length,D;for(;B-- >0;)if(D=i[B],r===D.toLowerCase())return D;return null}const cW=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),dW=e=>!b_(e)&&e!==cW;function kE(){const{caseless:e}=dW(this)&&this||{},r={},i=(B,D)=>{const c=e&&lW(r,D)||D;k4(r[c])&&k4(B)?r[c]=kE(r[c],B):k4(B)?r[c]=kE({},B):Hy(B)?r[c]=B.slice():r[c]=B};for(let B=0,D=arguments.length;B<D;B++)arguments[B]&&x_(arguments[B],i);return r}const Xkt=(e,r,i,{allOwnKeys:B}={})=>(x_(r,(D,c)=>{i&&lp(D)?e[c]=iW(D,i):e[c]=D},{allOwnKeys:B}),e),Zkt=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Jkt=(e,r,i,B)=>{e.prototype=Object.create(r.prototype,B),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:r.prototype}),i&&Object.assign(e.prototype,i)},Kkt=(e,r,i,B)=>{let D,c,g;const a={};if(r=r||{},e==null)return r;do{for(D=Object.getOwnPropertyNames(e),c=D.length;c-- >0;)g=D[c],(!B||B(g,e,r))&&!a[g]&&(r[g]=e[g],a[g]=!0);e=i!==!1&&wE(e)}while(e&&(!i||i(e,r))&&e!==Object.prototype);return r},Qkt=(e,r,i)=>{e=String(e),(i===void 0||i>e.length)&&(i=e.length),i-=r.length;const B=e.indexOf(r,i);return B!==-1&&B===i},e7t=e=>{if(!e)return null;if(Hy(e))return e;let r=e.length;if(!sW(r))return null;const i=new Array(r);for(;r-- >0;)i[r]=e[r];return i},t7t=(e=>r=>e&&r instanceof e)(typeof Uint8Array<"u"&&wE(Uint8Array)),a7t=(e,r)=>{const i=(e&&e[Symbol.iterator]).call(e);let B;for(;(B=i.next())&&!B.done;){const D=B.value;r.call(e,D[0],D[1])}},n7t=(e,r)=>{let i;const B=[];for(;(i=e.exec(r))!==null;)B.push(i);return B},r7t=zf("HTMLFormElement"),i7t=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,i,B){return i.toUpperCase()+B}),uW=(({hasOwnProperty:e})=>(r,i)=>e.call(r,i))(Object.prototype),o7t=zf("RegExp"),hW=(e,r)=>{const i=Object.getOwnPropertyDescriptors(e),B={};x_(i,(D,c)=>{let g;(g=r(D,c,e))!==!1&&(B[c]=g||D)}),Object.defineProperties(e,B)},s7t=e=>{hW(e,(r,i)=>{if(lp(e)&&["arguments","caller","callee"].indexOf(i)!==-1)return!1;const B=e[i];if(lp(B)){if(r.enumerable=!1,"writable"in r){r.writable=!1;return}r.set||(r.set=()=>{throw Error("Can not rewrite read-only method '"+i+"'")})}})},l7t=(e,r)=>{const i={},B=D=>{D.forEach(c=>{i[c]=!0})};return Hy(e)?B(e):B(String(e).split(r)),i},c7t=()=>{},d7t=(e,r)=>(e=+e,Number.isFinite(e)?e:r),CE="abcdefghijklmnopqrstuvwxyz",pW="0123456789",fW={DIGIT:pW,ALPHA:CE,ALPHA_DIGIT:CE+CE.toUpperCase()+pW},u7t=(e=16,r=fW.ALPHA_DIGIT)=>{let i="";const{length:B}=r;for(;e--;)i+=r[Math.random()*B|0];return i};function h7t(e){return!!(e&&lp(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const p7t=e=>{const r=new Array(10),i=(B,D)=>{if(w4(B)){if(r.indexOf(B)>=0)return;if(!("toJSON"in B)){r[D]=B;const c=Hy(B)?[]:{};return x_(B,(g,a)=>{const y=i(g,D+1);!b_(y)&&(c[a]=y)}),r[D]=void 0,c}}return B};return i(e,0)},f7t=zf("AsyncFunction"),m7t=e=>e&&(w4(e)||lp(e))&&lp(e.then)&&lp(e.catch),Ir={isArray:Hy,isArrayBuffer:oW,isBuffer:Lkt,isFormData:Wkt,isArrayBufferView:Dkt,isString:Rkt,isNumber:sW,isBoolean:Vkt,isObject:w4,isPlainObject:k4,isUndefined:b_,isDate:$kt,isFile:jkt,isBlob:Ukt,isRegExp:o7t,isFunction:lp,isStream:Hkt,isURLSearchParams:qkt,isTypedArray:t7t,isFileList:Gkt,forEach:x_,merge:kE,extend:Xkt,trim:Ykt,stripBOM:Zkt,inherits:Jkt,toFlatObject:Kkt,kindOf:b4,kindOfTest:zf,endsWith:Qkt,toArray:e7t,forEachEntry:a7t,matchAll:n7t,isHTMLForm:r7t,hasOwnProperty:uW,hasOwnProp:uW,reduceDescriptors:hW,freezeMethods:s7t,toObjectSet:l7t,toCamelCase:i7t,noop:c7t,toFiniteNumber:d7t,findKey:lW,global:cW,isContextDefined:dW,ALPHABET:fW,generateString:u7t,isSpecCompliantForm:h7t,toJSONObject:p7t,isAsyncFn:f7t,isThenable:m7t};function Nl(e,r,i,B,D){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",r&&(this.code=r),i&&(this.config=i),B&&(this.request=B),D&&(this.response=D)}Ir.inherits(Nl,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Ir.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const mW=Nl.prototype,gW={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{gW[e]={value:e}}),Object.defineProperties(Nl,gW),Object.defineProperty(mW,"isAxiosError",{value:!0}),Nl.from=(e,r,i,B,D,c)=>{const g=Object.create(mW);return Ir.toFlatObject(e,g,function(a){return a!==Error.prototype},a=>a!=="isAxiosError"),Nl.call(g,e.message,r,i,B,D),g.cause=e,g.name=e.name,c&&Object.assign(g,c),g};const g7t=null;function SE(e){return Ir.isPlainObject(e)||Ir.isArray(e)}function yW(e){return Ir.endsWith(e,"[]")?e.slice(0,-2):e}function vW(e,r,i){return e?e.concat(r).map(function(B,D){return B=yW(B),!i&&D?"["+B+"]":B}).join(i?".":""):r}function y7t(e){return Ir.isArray(e)&&!e.some(SE)}const v7t=Ir.toFlatObject(Ir,{},null,function(e){return/^is[A-Z]/.test(e)});function C4(e,r,i){if(!Ir.isObject(e))throw new TypeError("target must be an object");r=r||new FormData,i=Ir.toFlatObject(i,{metaTokens:!0,dots:!1,indexes:!1},!1,function(p,l){return!Ir.isUndefined(l[p])});const B=i.metaTokens,D=i.visitor||f,c=i.dots,g=i.indexes,a=(i.Blob||typeof Blob<"u"&&Blob)&&Ir.isSpecCompliantForm(r);if(!Ir.isFunction(D))throw new TypeError("visitor must be a function");function y(p){if(p===null)return"";if(Ir.isDate(p))return p.toISOString();if(!a&&Ir.isBlob(p))throw new Nl("Blob is not supported. Use a Buffer instead.");return Ir.isArrayBuffer(p)||Ir.isTypedArray(p)?a&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function f(p,l,o){let s=p;if(p&&!o&&typeof p=="object"){if(Ir.endsWith(l,"{}"))l=B?l:l.slice(0,-2),p=JSON.stringify(p);else if(Ir.isArray(p)&&y7t(p)||(Ir.isFileList(p)||Ir.endsWith(l,"[]"))&&(s=Ir.toArray(p)))return l=yW(l),s.forEach(function(u,d){!(Ir.isUndefined(u)||u===null)&&r.append(g===!0?vW([l],d,c):g===null?l:l+"[]",y(u))}),!1}return SE(p)?!0:(r.append(vW(o,l,c),y(p)),!1)}const n=[],v=Object.assign(v7t,{defaultVisitor:f,convertValue:y,isVisitable:SE});function _(p,l){if(!Ir.isUndefined(p)){if(n.indexOf(p)!==-1)throw Error("Circular reference detected in "+l.join("."));n.push(p),Ir.forEach(p,function(o,s){(!(Ir.isUndefined(o)||o===null)&&D.call(r,o,Ir.isString(s)?s.trim():s,l,v))===!0&&_(o,l?l.concat(s):[s])}),n.pop()}}if(!Ir.isObject(e))throw new TypeError("data must be an object");return _(e),r}function _W(e){const r={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(i){return r[i]})}function TE(e,r){this._pairs=[],e&&C4(e,this,r)}const bW=TE.prototype;bW.append=function(e,r){this._pairs.push([e,r])},bW.toString=function(e){const r=e?function(i){return e.call(this,i,_W)}:_W;return this._pairs.map(function(i){return r(i[0])+"="+r(i[1])},"").join("&")};function _7t(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function xW(e,r,i){if(!r)return e;const B=i&&i.encode||_7t,D=i&&i.serialize;let c;if(D?c=D(r,i):c=Ir.isURLSearchParams(r)?r.toString():new TE(r,i).toString(B),c){const g=e.indexOf("#");g!==-1&&(e=e.slice(0,g)),e+=(e.indexOf("?")===-1?"?":"&")+c}return e}const wW=class{constructor(){this.handlers=[]}use(r,i,B){return this.handlers.push({fulfilled:r,rejected:i,synchronous:B?B.synchronous:!1,runWhen:B?B.runWhen:null}),this.handlers.length-1}eject(r){this.handlers[r]&&(this.handlers[r]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(r){Ir.forEach(this.handlers,function(i){i!==null&&r(i)})}},kW={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},b7t=typeof URLSearchParams<"u"?URLSearchParams:TE,x7t=typeof FormData<"u"?FormData:null,w7t=typeof Blob<"u"?Blob:null,k7t={isBrowser:!0,classes:{URLSearchParams:b7t,FormData:x7t,Blob:w7t},protocols:["http","https","file","blob","url","data"]},CW=typeof window<"u"&&typeof document<"u",C7t=(e=>CW&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),S7t=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),T7t=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:CW,hasStandardBrowserEnv:C7t,hasStandardBrowserWebWorkerEnv:S7t},Symbol.toStringTag,{value:"Module"})),Of={...T7t,...k7t};function E7t(e,r){return C4(e,new Of.classes.URLSearchParams,Object.assign({visitor:function(i,B,D,c){return Of.isNode&&Ir.isBuffer(i)?(this.append(B,i.toString("base64")),!1):c.defaultVisitor.apply(this,arguments)}},r))}function A7t(e){return Ir.matchAll(/\w+|\[(\w*)]/g,e).map(r=>r[0]==="[]"?"":r[1]||r[0])}function M7t(e){const r={},i=Object.keys(e);let B;const D=i.length;let c;for(B=0;B<D;B++)c=i[B],r[c]=e[c];return r}function SW(e){function r(i,B,D,c){let g=i[c++];if(g==="__proto__")return!0;const a=Number.isFinite(+g),y=c>=i.length;return g=!g&&Ir.isArray(D)?D.length:g,y?(Ir.hasOwnProp(D,g)?D[g]=[D[g],B]:D[g]=B,!a):((!D[g]||!Ir.isObject(D[g]))&&(D[g]=[]),r(i,B,D[g],c)&&Ir.isArray(D[g])&&(D[g]=M7t(D[g])),!a)}if(Ir.isFormData(e)&&Ir.isFunction(e.entries)){const i={};return Ir.forEachEntry(e,(B,D)=>{r(A7t(B),D,i,0)}),i}return null}function I7t(e,r,i){if(Ir.isString(e))try{return(r||JSON.parse)(e),Ir.trim(e)}catch(B){if(B.name!=="SyntaxError")throw B}return(i||JSON.stringify)(e)}const EE={transitional:kW,adapter:["xhr","http"],transformRequest:[function(e,r){const i=r.getContentType()||"",B=i.indexOf("application/json")>-1,D=Ir.isObject(e);if(D&&Ir.isHTMLForm(e)&&(e=new FormData(e)),Ir.isFormData(e))return B?JSON.stringify(SW(e)):e;if(Ir.isArrayBuffer(e)||Ir.isBuffer(e)||Ir.isStream(e)||Ir.isFile(e)||Ir.isBlob(e))return e;if(Ir.isArrayBufferView(e))return e.buffer;if(Ir.isURLSearchParams(e))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let c;if(D){if(i.indexOf("application/x-www-form-urlencoded")>-1)return E7t(e,this.formSerializer).toString();if((c=Ir.isFileList(e))||i.indexOf("multipart/form-data")>-1){const g=this.env&&this.env.FormData;return C4(c?{"files[]":e}:e,g&&new g,this.formSerializer)}}return D||B?(r.setContentType("application/json",!1),I7t(e)):e}],transformResponse:[function(e){const r=this.transitional||EE.transitional,i=r&&r.forcedJSONParsing,B=this.responseType==="json";if(e&&Ir.isString(e)&&(i&&!this.responseType||B)){const D=!(r&&r.silentJSONParsing)&&B;try{return JSON.parse(e)}catch(c){if(D)throw c.name==="SyntaxError"?Nl.from(c,Nl.ERR_BAD_RESPONSE,this,null,this.response):c}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Of.classes.FormData,Blob:Of.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Ir.forEach(["delete","get","head","post","put","patch"],e=>{EE.headers[e]={}});const AE=EE,P7t=Ir.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),B7t=e=>{const r={};let i,B,D;return e&&e.split(`
125
125
  `).forEach(function(c){D=c.indexOf(":"),i=c.substring(0,D).trim().toLowerCase(),B=c.substring(D+1).trim(),!(!i||r[i]&&P7t[i])&&(i==="set-cookie"?r[i]?r[i].push(B):r[i]=[B]:r[i]=r[i]?r[i]+", "+B:B)}),r},TW=Symbol("internals");function w_(e){return e&&String(e).trim().toLowerCase()}function S4(e){return e===!1||e==null?e:Ir.isArray(e)?e.map(S4):String(e)}function N7t(e){const r=Object.create(null),i=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let B;for(;B=i.exec(e);)r[B[1]]=B[2];return r}const z7t=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function ME(e,r,i,B,D){if(Ir.isFunction(B))return B.call(this,r,i);if(D&&(r=i),!!Ir.isString(r)){if(Ir.isString(B))return r.indexOf(B)!==-1;if(Ir.isRegExp(B))return B.test(r)}}function O7t(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(r,i,B)=>i.toUpperCase()+B)}function F7t(e,r){const i=Ir.toCamelCase(" "+r);["get","set","has"].forEach(B=>{Object.defineProperty(e,B+i,{value:function(D,c,g){return this[B].call(this,r,D,c,g)},configurable:!0})})}let T4=class{constructor(r){r&&this.set(r)}set(r,i,B){const D=this;function c(a,y,f){const n=w_(y);if(!n)throw new Error("header name must be a non-empty string");const v=Ir.findKey(D,n);(!v||D[v]===void 0||f===!0||f===void 0&&D[v]!==!1)&&(D[v||y]=S4(a))}const g=(a,y)=>Ir.forEach(a,(f,n)=>c(f,n,y));return Ir.isPlainObject(r)||r instanceof this.constructor?g(r,i):Ir.isString(r)&&(r=r.trim())&&!z7t(r)?g(B7t(r),i):r!=null&&c(i,r,B),this}get(r,i){if(r=w_(r),r){const B=Ir.findKey(this,r);if(B){const D=this[B];if(!i)return D;if(i===!0)return N7t(D);if(Ir.isFunction(i))return i.call(this,D,B);if(Ir.isRegExp(i))return i.exec(D);throw new TypeError("parser must be boolean|regexp|function")}}}has(r,i){if(r=w_(r),r){const B=Ir.findKey(this,r);return!!(B&&this[B]!==void 0&&(!i||ME(this,this[B],B,i)))}return!1}delete(r,i){const B=this;let D=!1;function c(g){if(g=w_(g),g){const a=Ir.findKey(B,g);a&&(!i||ME(B,B[a],a,i))&&(delete B[a],D=!0)}}return Ir.isArray(r)?r.forEach(c):c(r),D}clear(r){const i=Object.keys(this);let B=i.length,D=!1;for(;B--;){const c=i[B];(!r||ME(this,this[c],c,r,!0))&&(delete this[c],D=!0)}return D}normalize(r){const i=this,B={};return Ir.forEach(this,(D,c)=>{const g=Ir.findKey(B,c);if(g){i[g]=S4(D),delete i[c];return}const a=r?O7t(c):String(c).trim();a!==c&&delete i[c],i[a]=S4(D),B[a]=!0}),this}concat(...r){return this.constructor.concat(this,...r)}toJSON(r){const i=Object.create(null);return Ir.forEach(this,(B,D)=>{B!=null&&B!==!1&&(i[D]=r&&Ir.isArray(B)?B.join(", "):B)}),i}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([r,i])=>r+": "+i).join(`
126
126
  `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(r){return r instanceof this?r:new this(r)}static concat(r,...i){const B=new this(r);return i.forEach(D=>B.set(D)),B}static accessor(r){const i=(this[TW]=this[TW]={accessors:{}}).accessors,B=this.prototype;function D(c){const g=w_(c);i[g]||(F7t(B,c),i[g]=!0)}return Ir.isArray(r)?r.forEach(D):D(r),this}};T4.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Ir.reduceDescriptors(T4.prototype,({value:e},r)=>{let i=r[0].toUpperCase()+r.slice(1);return{get:()=>e,set(B){this[i]=B}}}),Ir.freezeMethods(T4);const rm=T4;function IE(e,r){const i=this||AE,B=r||i,D=rm.from(B.headers);let c=B.data;return Ir.forEach(e,function(g){c=g.call(i,c,D.normalize(),r?r.status:void 0)}),D.normalize(),c}function EW(e){return!!(e&&e.__CANCEL__)}function k_(e,r,i){Nl.call(this,e??"canceled",Nl.ERR_CANCELED,r,i),this.name="CanceledError"}Ir.inherits(k_,Nl,{__CANCEL__:!0});function L7t(e,r,i){const B=i.config.validateStatus;!i.status||!B||B(i.status)?e(i):r(new Nl("Request failed with status code "+i.status,[Nl.ERR_BAD_REQUEST,Nl.ERR_BAD_RESPONSE][Math.floor(i.status/100)-4],i.config,i.request,i))}const D7t=Of.hasStandardBrowserEnv?{write(e,r,i,B,D,c){const g=[e+"="+encodeURIComponent(r)];Ir.isNumber(i)&&g.push("expires="+new Date(i).toGMTString()),Ir.isString(B)&&g.push("path="+B),Ir.isString(D)&&g.push("domain="+D),c===!0&&g.push("secure"),document.cookie=g.join("; ")},read(e){const r=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return r?decodeURIComponent(r[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function R7t(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function V7t(e,r){return r?e.replace(/\/?\/$/,"")+"/"+r.replace(/^\/+/,""):e}function AW(e,r){return e&&!R7t(r)?V7t(e,r):r}const $7t=Of.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");let i;function B(D){let c=D;return e&&(r.setAttribute("href",c),c=r.href),r.setAttribute("href",c),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return i=B(window.location.href),function(D){const c=Ir.isString(D)?B(D):D;return c.protocol===i.protocol&&c.host===i.host}}():function(){return function(){return!0}}();function j7t(e){const r=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return r&&r[1]||""}function U7t(e,r){e=e||10;const i=new Array(e),B=new Array(e);let D=0,c=0,g;return r=r!==void 0?r:1e3,function(a){const y=Date.now(),f=B[c];g||(g=y),i[D]=a,B[D]=y;let n=c,v=0;for(;n!==D;)v+=i[n++],n=n%e;if(D=(D+1)%e,D===c&&(c=(c+1)%e),y-g<r)return;const _=f&&y-f;return _?Math.round(v*1e3/_):void 0}}function MW(e,r){let i=0;const B=U7t(50,250);return D=>{const c=D.loaded,g=D.lengthComputable?D.total:void 0,a=c-i,y=B(a),f=c<=g;i=c;const n={loaded:c,total:g,progress:g?c/g:void 0,bytes:a,rate:y||void 0,estimated:y&&g&&f?(g-c)/y:void 0,event:D};n[r?"download":"upload"]=!0,e(n)}}const G7t=typeof XMLHttpRequest<"u",H7t=G7t&&function(e){return new Promise(function(r,i){let B=e.data;const D=rm.from(e.headers).normalize();let{responseType:c,withXSRFToken:g}=e,a;function y(){e.cancelToken&&e.cancelToken.unsubscribe(a),e.signal&&e.signal.removeEventListener("abort",a)}let f;if(Ir.isFormData(B)){if(Of.hasStandardBrowserEnv||Of.hasStandardBrowserWebWorkerEnv)D.setContentType(!1);else if((f=D.getContentType())!==!1){const[l,...o]=f?f.split(";").map(s=>s.trim()).filter(Boolean):[];D.setContentType([l||"multipart/form-data",...o].join("; "))}}let n=new XMLHttpRequest;if(e.auth){const l=e.auth.username||"",o=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";D.set("Authorization","Basic "+btoa(l+":"+o))}const v=AW(e.baseURL,e.url);n.open(e.method.toUpperCase(),xW(v,e.params,e.paramsSerializer),!0),n.timeout=e.timeout;function _(){if(!n)return;const l=rm.from("getAllResponseHeaders"in n&&n.getAllResponseHeaders()),o={data:!c||c==="text"||c==="json"?n.responseText:n.response,status:n.status,statusText:n.statusText,headers:l,config:e,request:n};L7t(function(s){r(s),y()},function(s){i(s),y()},o),n=null}if("onloadend"in n?n.onloadend=_:n.onreadystatechange=function(){!n||n.readyState!==4||n.status===0&&!(n.responseURL&&n.responseURL.indexOf("file:")===0)||setTimeout(_)},n.onabort=function(){n&&(i(new Nl("Request aborted",Nl.ECONNABORTED,e,n)),n=null)},n.onerror=function(){i(new Nl("Network Error",Nl.ERR_NETWORK,e,n)),n=null},n.ontimeout=function(){let l=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const o=e.transitional||kW;e.timeoutErrorMessage&&(l=e.timeoutErrorMessage),i(new Nl(l,o.clarifyTimeoutError?Nl.ETIMEDOUT:Nl.ECONNABORTED,e,n)),n=null},Of.hasStandardBrowserEnv&&(g&&Ir.isFunction(g)&&(g=g(e)),g||g!==!1&&$7t(v))){const l=e.xsrfHeaderName&&e.xsrfCookieName&&D7t.read(e.xsrfCookieName);l&&D.set(e.xsrfHeaderName,l)}B===void 0&&D.setContentType(null),"setRequestHeader"in n&&Ir.forEach(D.toJSON(),function(l,o){n.setRequestHeader(o,l)}),Ir.isUndefined(e.withCredentials)||(n.withCredentials=!!e.withCredentials),c&&c!=="json"&&(n.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&n.addEventListener("progress",MW(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&n.upload&&n.upload.addEventListener("progress",MW(e.onUploadProgress)),(e.cancelToken||e.signal)&&(a=l=>{n&&(i(!l||l.type?new k_(null,e,n):l),n.abort(),n=null)},e.cancelToken&&e.cancelToken.subscribe(a),e.signal&&(e.signal.aborted?a():e.signal.addEventListener("abort",a)));const p=j7t(v);if(p&&Of.protocols.indexOf(p)===-1){i(new Nl("Unsupported protocol "+p+":",Nl.ERR_BAD_REQUEST,e));return}n.send(B||null)})},PE={http:g7t,xhr:H7t};Ir.forEach(PE,(e,r)=>{if(e){try{Object.defineProperty(e,"name",{value:r})}catch{}Object.defineProperty(e,"adapterName",{value:r})}});const IW=e=>`- ${e}`,W7t=e=>Ir.isFunction(e)||e===null||e===!1,PW={getAdapter:e=>{e=Ir.isArray(e)?e:[e];const{length:r}=e;let i,B;const D={};for(let c=0;c<r;c++){i=e[c];let g;if(B=i,!W7t(i)&&(B=PE[(g=String(i)).toLowerCase()],B===void 0))throw new Nl(`Unknown adapter '${g}'`);if(B)break;D[g||"#"+c]=B}if(!B){const c=Object.entries(D).map(([a,y])=>`adapter ${a} `+(y===!1?"is not supported by the environment":"is not available in the build"));let g=r?c.length>1?`since :
127
127
  `+c.map(IW).join(`
@@ -4159,7 +4159,7 @@ uniform ${Ge} ${qe} u_${at};
4159
4159
  * Vue 3 Carousel 0.3.1
4160
4160
  * (c) 2023
4161
4161
  * @license MIT
4162
- */const Tu={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"}},Pq={itemsToShow:{default:Tu.itemsToShow,type:Number},itemsToScroll:{default:Tu.itemsToScroll,type:Number},wrapAround:{default:Tu.wrapAround,type:Boolean},throttle:{default:Tu.throttle,type:Number},snapAlign:{default:Tu.snapAlign,validator(e){return["start","end","center","center-even","center-odd"].includes(e)}},transition:{default:Tu.transition,type:Number},breakpoints:{default:Tu.breakpoints,type:Object},autoplay:{default:Tu.autoplay,type:Number},pauseAutoplayOnHover:{default:Tu.pauseAutoplayOnHover,type:Boolean},modelValue:{default:void 0,type:Number},mouseDrag:{default:Tu.mouseDrag,type:Boolean},touchDrag:{default:Tu.touchDrag,type:Boolean},dir:{default:Tu.dir,validator(e){return["rtl","ltr"].includes(e)}},i18n:{default:Tu.i18n,type:Object},settings:{default(){return{}},type:Object}};function Mzt({config:e,slidesCount:r}){const{snapAlign:i,wrapAround:B,itemsToShow:D=1}=e;if(B)return Math.max(r-1,0);let c;switch(i){case"start":c=r-D;break;case"end":c=r-1;break;case"center":case"center-odd":c=r-Math.ceil((D-.5)/2);break;case"center-even":c=r-Math.ceil(D/2);break;default:c=0;break}return Math.max(c,0)}function Izt({config:e,slidesCount:r}){const{wrapAround:i,snapAlign:B,itemsToShow:D=1}=e;let c=0;if(i||D>r)return c;switch(B){case"start":c=0;break;case"end":c=D-1;break;case"center":case"center-odd":c=Math.floor((D-1)/2);break;case"center-even":c=Math.floor((D-2)/2);break;default:c=0;break}return c}function eA({val:e,max:r,min:i}){return r<i?e:Math.min(Math.max(e,i),r)}function Pzt({config:e,currentSlide:r,slidesCount:i}){const{snapAlign:B,wrapAround:D,itemsToShow:c=1}=e;let g=r;switch(B){case"center":case"center-odd":g-=(c-1)/2;break;case"center-even":g-=(c-2)/2;break;case"end":g-=c-1;break}return D?g:eA({val:g,max:i-c,min:0})}function Bq(e){return e?e.reduce((r,i)=>{var B;return i.type===t.Fragment?[...r,...Bq(i.children)]:((B=i.type)===null||B===void 0?void 0:B.name)==="CarouselSlide"?[...r,i]:r},[]):[]}function tA({val:e,max:r,min:i=0}){return e>r?tA({val:e-(r+1),max:r,min:i}):e<i?tA({val:e+(r+1),max:r,min:i}):e}function Bzt(e,r){let i;return r?function(...B){const D=this;i||(e.apply(D,B),i=!0,setTimeout(()=>i=!1,r))}:e}function Nzt(e,r){let i;return function(...B){i&&clearTimeout(i),i=setTimeout(()=>{e(...B),i=null},r)}}function zzt(e="",r={}){return Object.entries(r).reduce((i,[B,D])=>i.replace(`{${B}}`,String(D)),e)}var Ozt=t.defineComponent({name:"ARIA",setup(){const e=t.inject("config",t.reactive(Object.assign({},Tu))),r=t.inject("currentSlide",t.ref(0)),i=t.inject("slidesCount",t.ref(0));return()=>t.h("div",{class:["carousel__liveregion","carousel__sr-only"],"aria-live":"polite","aria-atomic":"true"},zzt(e.i18n.itemXofY,{currentSlide:r.value+1,slidesCount:i.value}))}}),Fzt=t.defineComponent({name:"Carousel",props:Pq,setup(e,{slots:r,emit:i,expose:B}){var D;const c=t.ref(null),g=t.ref([]),a=t.ref(0),y=t.ref(0),f=t.reactive(Object.assign({},Tu));let n=Object.assign({},Tu),v;const _=t.ref((D=e.modelValue)!==null&&D!==void 0?D:0),p=t.ref(0),l=t.ref(0),o=t.ref(0),s=t.ref(0);let u,d;t.provide("config",f),t.provide("slidesCount",y),t.provide("currentSlide",_),t.provide("maxSlide",o),t.provide("minSlide",s),t.provide("slideWidth",a);function h(){v=Object.assign({},e.breakpoints),n=Object.assign(Object.assign(Object.assign({},n),e),{i18n:Object.assign(Object.assign({},n.i18n),e.i18n),breakpoints:void 0}),b(n)}function m(){if(!v||!Object.keys(v).length)return;const ae=Object.keys(v).map(ie=>Number(ie)).sort((ie,ue)=>+ue-+ie);let ne=Object.assign({},n);ae.some(ie=>{const ue=window.matchMedia(`(min-width: ${ie}px)`).matches;return ue&&(ne=Object.assign(Object.assign({},ne),v[ie])),ue}),b(ne)}function b(ae){Object.entries(ae).forEach(([ne,ie])=>f[ne]=ie)}const w=Nzt(()=>{m(),x()},16);function x(){if(!c.value)return;const ae=c.value.getBoundingClientRect();a.value=ae.width/f.itemsToShow}function S(){y.value<=0||(l.value=Math.ceil((y.value-1)/2),o.value=Mzt({config:f,slidesCount:y.value}),s.value=Izt({config:f,slidesCount:y.value}),f.wrapAround||(_.value=eA({val:_.value,max:o.value,min:s.value})))}t.onMounted(()=>{t.nextTick(()=>x()),setTimeout(()=>x(),1e3),m(),V(),window.addEventListener("resize",w,{passive:!0}),i("init")}),t.onUnmounted(()=>{d&&clearTimeout(d),u&&clearInterval(u),window.removeEventListener("resize",w,{passive:!0})});let C=!1;const T={x:0,y:0},k={x:0,y:0},A=t.reactive({x:0,y:0}),E=t.ref(!1),M=t.ref(!1),I=()=>{E.value=!0},N=()=>{E.value=!1};function z(ae){["INPUT","TEXTAREA","SELECT"].includes(ae.target.tagName)||(C=ae.type==="touchstart",C||ae.preventDefault(),!(!C&&ae.button!==0||U.value)&&(T.x=C?ae.touches[0].clientX:ae.clientX,T.y=C?ae.touches[0].clientY:ae.clientY,document.addEventListener(C?"touchmove":"mousemove",F,!0),document.addEventListener(C?"touchend":"mouseup",R,!0)))}const F=Bzt(ae=>{M.value=!0,k.x=C?ae.touches[0].clientX:ae.clientX,k.y=C?ae.touches[0].clientY:ae.clientY;const ne=k.x-T.x,ie=k.y-T.y;A.y=ie,A.x=ne},f.throttle);function R(){const ae=f.dir==="rtl"?-1:1,ne=Math.sign(A.x)*.4,ie=Math.round(A.x/a.value+ne)*ae;if(ie&&!C){const ue=he=>{he.stopPropagation(),window.removeEventListener("click",ue,!0)};window.addEventListener("click",ue,!0)}Z(_.value-ie),A.x=0,A.y=0,M.value=!1,document.removeEventListener(C?"touchmove":"mousemove",F,!0),document.removeEventListener(C?"touchend":"mouseup",R,!0)}function V(){!f.autoplay||f.autoplay<=0||(u=setInterval(()=>{f.pauseAutoplayOnHover&&E.value||q()},f.autoplay))}function $(){u&&(clearInterval(u),u=null),V()}const U=t.ref(!1);function Z(ae){const ne=f.wrapAround?ae:eA({val:ae,max:o.value,min:s.value});_.value===ne||U.value||(i("slide-start",{slidingToIndex:ae,currentSlideIndex:_.value,prevSlideIndex:p.value,slidesCount:y.value}),U.value=!0,p.value=_.value,_.value=ne,d=setTimeout(()=>{if(f.wrapAround){const ie=tA({val:ne,max:o.value,min:0});ie!==_.value&&(_.value=ie,i("loop",{currentSlideIndex:_.value,slidingToIndex:ae}))}i("update:modelValue",_.value),i("slide-end",{currentSlideIndex:_.value,prevSlideIndex:p.value,slidesCount:y.value}),U.value=!1,$()},f.transition))}function q(){Z(_.value+f.itemsToScroll)}function W(){Z(_.value-f.itemsToScroll)}const Q={slideTo:Z,next:q,prev:W};t.provide("nav",Q),t.provide("isSliding",U);const X=t.computed(()=>Pzt({config:f,currentSlide:_.value,slidesCount:y.value}));t.provide("slidesToScroll",X);const J=t.computed(()=>{const ae=f.dir==="rtl"?-1:1,ne=X.value*a.value*ae;return{transform:`translateX(${A.x-ne}px)`,transition:`${U.value?f.transition:0}ms`,margin:f.wrapAround?`0 -${y.value*a.value}px`:"",width:"100%"}});function ee(){h(),m(),S(),x(),$()}Object.keys(Pq).forEach(ae=>{["modelValue"].includes(ae)||t.watch(()=>e[ae],ee)}),t.watch(()=>e.modelValue,ae=>{ae!==_.value&&Z(Number(ae))}),t.watch(y,S),i("before-init"),h();const le={config:f,slidesCount:y,slideWidth:a,next:q,prev:W,slideTo:Z,currentSlide:_,maxSlide:o,minSlide:s,middleSlide:l};B({updateBreakpointsConfigs:m,updateSlidesData:S,updateSlideWidth:x,initDefaultConfigs:h,restartCarousel:ee,slideTo:Z,next:q,prev:W,nav:Q,data:le});const oe=r.default||r.slides,se=r.addons,ce=t.reactive(le);return()=>{const ae=Bq(oe==null?void 0:oe(ce)),ne=(se==null?void 0:se(ce))||[];ae.forEach((pe,me)=>pe.props.index=me);let ie=ae;if(f.wrapAround){const pe=ae.map((be,we)=>t.cloneVNode(be,{index:-ae.length+we,isClone:!0,key:`clone-before-${we}`})),me=ae.map((be,we)=>t.cloneVNode(be,{index:ae.length+we,isClone:!0,key:`clone-after-${we}`}));ie=[...pe,...ae,...me]}g.value=ae,y.value=Math.max(ae.length,1);const ue=t.h("ol",{class:"carousel__track",style:J.value,onMousedownCapture:f.mouseDrag?z:null,onTouchstartPassiveCapture:f.touchDrag?z:null},ie),he=t.h("div",{class:"carousel__viewport"},ue);return t.h("section",{ref:c,class:{carousel:!0,"is-sliding":U.value,"is-dragging":M.value,"is-hover":E.value,"carousel--rtl":f.dir==="rtl"},dir:f.dir,"aria-label":f.i18n.ariaGallery,tabindex:"0",onMouseenter:I,onMouseleave:N},[he,ne,t.h(Ozt)])}}}),Nq;(function(e){e.arrowUp="arrowUp",e.arrowDown="arrowDown",e.arrowRight="arrowRight",e.arrowLeft="arrowLeft"})(Nq||(Nq={}));var Lzt=t.defineComponent({name:"CarouselSlide",props:{index:{type:Number,default:1},isClone:{type:Boolean,default:!1}},setup(e,{slots:r}){const i=t.inject("config",t.reactive(Object.assign({},Tu))),B=t.inject("currentSlide",t.ref(0)),D=t.inject("slidesToScroll",t.ref(0)),c=t.inject("isSliding",t.ref(!1)),g=()=>e.index===B.value,a=()=>e.index===B.value-1,y=()=>e.index===B.value+1,f=()=>{const n=Math.floor(D.value),v=Math.ceil(D.value+i.itemsToShow-1);return e.index>=n&&e.index<=v};return()=>{var n;return t.h("li",{style:{width:`${100/i.itemsToShow}%`},class:{carousel__slide:!0,"carousel__slide--clone":e.isClone,"carousel__slide--visible":f(),"carousel__slide--active":g(),"carousel__slide--prev":a(),"carousel__slide--next":y(),"carousel__slide--sliding":c.value},"aria-hidden":!f()},(n=r.default)===null||n===void 0?void 0:n.call(r))}}});const Dzt=(e,r)=>{const i=e.__vccOpts||e;for(const[B,D]of r)i[B]=D;return i},Rzt=e=>(t.pushScopeId("data-v-54620d25"),e=e(),t.popScopeId(),e),Vzt={class:"gsc-carousel"},$zt={key:0},jzt=Rzt(()=>t.createElementVNode("div",null,"no hay",-1)),Uzt=[jzt],Gzt={class:"gsc-carousel__2d__slides"},Hzt={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Wzt=["fill"],qzt={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Yzt=["fill"],Xzt={class:"gsc-carousel__2d__navigation"},Zzt={width:"8",height:"15",viewBox:"0 0 8 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Jzt=["stroke"],Kzt={key:1,class:"gsc-carousel__2d__navigation__pagination"},Qzt=["onClick"],eOt={width:"7",height:"15",viewBox:"0 0 7 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},tOt=["stroke"],aOt={__name:"GSC-Carousel",props:{currentItemIndex:{type:Number,default:0},items:{type:Array,default:()=>[]},is3d:{type:Boolean,default:!1},isPaginationVisible:{type:Boolean,default:!1},areNavigationArrowsVisible:{type:Boolean,default:!0},defaultItemByIndex:{type:Number,default:0},defaultItemByProp:{type:Object,default:null,validator:e=>["propName","value"].every(r=>r in e)},navigationHeight:{type:Number,default:4},navigationBorderRadius:{type:Number,default:4},navigationColor:{type:String,default:"rgba(255, 255, 255, 0.4)"},navigationActiveColor:{type:String,default:"#cbee6b"},navigationActiveWidth:{type:Number,default:30},arrowsColor:{type:String,default:"#cbee6b"},arrowsMaxWidth:{type:String,default:"20px"},wrapAround:{type:Boolean,default:!1},itemsToShow:{type:Number,default:1},isMainSlidePriority:{type:Boolean,default:!1},areSlidesArrowsVisible:{type:Boolean,default:!1},slideLeftArrowBackgroundImage:{type:String,default:"linear-gradient(to right, rgba(13, 29, 41, 1), rgba(0, 0, 0, 0))"},slideRightArrowBackgroundImage:{type:String,default:"linear-gradient(to left, rgba(13, 29, 41, 1), rgba(0, 0, 0, 0))"},areSlidesArrowsRounded:{type:Boolean,default:!1},slidesArrowsLeftAndRight:{type:String,default:"20px"},secondarySlidesOpacity:{type:Number,default:.8},marginTop:{type:String,default:"0"}},emits:["input","update:currentItemIndex"],setup(e,{expose:r,emit:i}){const B=e;t.useCssVars(o=>({"2c72d674":e.slideLeftArrowBackgroundImage,"90a63f40":e.slidesArrowsLeftAndRight,"2627d097":e.slideRightArrowBackgroundImage,"1904d43f":e.marginTop,cfb58986:e.secondarySlidesOpacity}));const D=t.ref(null),c=t.ref({}),g=t.ref(0),a=t.ref(!1);t.watch(D,o=>{o&&a.value?(a.value=!1,y(B.items)):o&&o.slideTo&&o.slideTo(g.value)},{deep:!0}),t.watch(()=>B.currentItemIndex,o=>{g.value!==o&&_(o)}),t.watch(()=>B.defaultItemByIndex,o=>{g.value!==o&&_(o)}),t.watch(()=>B.items,o=>{D.value?y(o):a.value=!0},{immediate:!0});function y(o){o&&o.length&&D.value&&setTimeout(()=>{if(B.defaultItemByProp){const s=B.items.findIndex(u=>u[B.defaultItemByProp.propName]===B.defaultItemByProp.value);s!==-1?(g.value=s,c.value=o[s]):(g.value=0,c.value=o[0])}else g.value=B.defaultItemByIndex,c.value=o[B.defaultItemByIndex];D.value.slideTo&&D.value.slideTo(g.value),c.value&&g.value===0&&i("input",{selectedItem:c.value,selectedItemIndex:g.value})},500)}function f(){D.value&&D.value.next()}function n(){D.value&&D.value.prev()}function v(){D.value&&D.value.updateSlideWidth()}function _(o){D.value&&D.value.slideTo(o)}function p(o){D.value.slideTo(o)}function l(o){const s=o.slidingToIndex<0?B.items.length-1:o.slidingToIndex===B.items.length?0:o.slidingToIndex;g.value=s,c.value=B.items[s],i("update:currentItemIndex",s),i("input",{selectedItem:c.value,selectedItemIndex:g.value})}return r({prev:n,next:f,updateSlideWidth:v,slideTo:_}),(o,s)=>(t.openBlock(),t.createElementBlock("div",Vzt,[B.is3d?(t.openBlock(),t.createElementBlock("div",$zt,Uzt)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(["gsc-carousel__2d",{"main-slide-priority":e.isMainSlidePriority}])},[t.createElementVNode("div",Gzt,[t.createVNode(t.unref(Fzt),{ref_key:"carousel2d",ref:D,"items-to-show":e.itemsToShow,"wrap-around":e.wrapAround,onSlideStart:l},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(u,d)=>(t.openBlock(),t.createBlock(t.unref(Lzt),{key:d},{default:t.withCtx(()=>[t.renderSlot(o.$slots,"default",{item:u},void 0,!0)]),_:2},1024))),128))]),_:3},8,["items-to-show","wrap-around"])]),e.areSlidesArrowsVisible&&e.items.length>1?(t.openBlock(),t.createElementBlock("div",{key:0,class:"gsc-carousel__2d__arrow-left",style:t.normalizeStyle("max-width:"+e.arrowsMaxWidth+"!important"),onClick:s[0]||(s[0]=u=>D.value.prev())},[t.createElementVNode("div",{class:t.normalizeClass(["gsc-carousel__2d__slide-button",{rounded:e.areSlidesArrowsRounded}])},[(t.openBlock(),t.createElementBlock("svg",Hzt,[t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.10399 9L8.62342 15.4393C9.12552 16.0251 9.12552 16.9749 8.62342 17.5607C8.12132 18.1464 7.30725 18.1464 6.80514 17.5607L0.376575 10.0607C-0.125528 9.47487 -0.125528 8.52512 0.376575 7.93934L6.80515 0.439339C7.30725 -0.146447 8.12132 -0.146447 8.62342 0.43934C9.12553 1.02513 9.12553 1.97487 8.62342 2.56066L3.10399 9Z",fill:e.arrowsColor},null,8,Wzt)]))],2)],4)):t.createCommentVNode("",!0),e.areSlidesArrowsVisible&&e.items.length>1?(t.openBlock(),t.createElementBlock("div",{key:1,class:"gsc-carousel__2d__arrow-right",style:t.normalizeStyle("max-width:"+e.arrowsMaxWidth+"!important"),onClick:s[1]||(s[1]=u=>f())},[t.createElementVNode("div",{class:t.normalizeClass(["gsc-carousel__2d__slide-button",{rounded:e.areSlidesArrowsRounded}])},[(t.openBlock(),t.createElementBlock("svg",qzt,[t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5.89601 9L0.376575 2.56066C-0.125528 1.97487 -0.125528 1.02513 0.376575 0.439339C0.878675 -0.146447 1.69275 -0.146447 2.19486 0.43934L8.62343 7.93934C9.12553 8.52513 9.12553 9.47487 8.62343 10.0607L2.19486 17.5607C1.69275 18.1464 0.878675 18.1464 0.376575 17.5607C-0.125528 16.9749 -0.125528 16.0251 0.376575 15.4393L5.89601 9Z",fill:e.arrowsColor},null,8,Yzt)]))],2)],4)):t.createCommentVNode("",!0),t.createElementVNode("div",Xzt,[e.areNavigationArrowsVisible?(t.openBlock(),t.createElementBlock("div",{key:0,class:"gsc-carousel__2d__navigation__arrow-left",onClick:s[2]||(s[2]=u=>n())},[(t.openBlock(),t.createElementBlock("svg",Zzt,[t.createElementVNode("path",{d:"M6.72998 13.894L1.46621 8.63028C0.84457 8.00863 0.84457 6.9914 1.46621 6.36976L6.72998 1.10599",stroke:B.arrowsColor},null,8,Jzt)]))])):t.createCommentVNode("",!0),e.isPaginationVisible?(t.openBlock(),t.createElementBlock("div",Kzt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(u,d)=>(t.openBlock(),t.createElementBlock("div",{key:`i-${d}`,class:"gsc-carousel__2d__navigation__pagination__item",style:t.normalizeStyle({height:`${B.navigationHeight}px`,width:`${g.value===d?B.navigationActiveWidth:B.navigationActiveWidth/2}px`,borderRadius:`${B.navigationBorderRadius}px`,backgroundColor:`${g.value===d?B.navigationActiveColor:B.navigationColor}`,transition:"all 0.1s ease-in-out"}),onClick:h=>p(d)},null,12,Qzt))),128))])):t.createCommentVNode("",!0),e.areNavigationArrowsVisible?(t.openBlock(),t.createElementBlock("div",{key:2,class:"gsc-carousel__2d__navigation__arrow-right",onClick:s[3]||(s[3]=u=>D.value.next())},[(t.openBlock(),t.createElementBlock("svg",eOt,[t.createElementVNode("path",{d:"M0.72998 1.10599L5.99375 6.36975C6.61539 6.9914 6.61539 8.00863 5.99375 8.63027L0.72998 13.894",stroke:B.arrowsColor},null,8,tOt)]))])):t.createCommentVNode("",!0)])],2))]))}},nOt=Dzt(aOt,[["__scopeId","data-v-54620d25"]]),Y_a="",zq={3:"Albanesa",4:"Argelina",6:"Andorrano",7:"Angoleña",8:"Anguillan",9:"Antiguan",10:"Argentina",11:"Armenia",12:"Arubeño",13:"Austríaca",14:"Austríaca",15:"Azerbaiyano",16:"Bahamas",17:"Bareini",18:"Bangladesí",19:"Barbadense",20:"Bielorrusa",21:"Belga",22:"Beliceña",23:"Beninesa",24:"Bermudeña",25:"Butanés",26:"Boliviana",27:"Bosnia",28:"Botsuano",29:"Brasileña",30:"Islas Vírgenes Británicas",31:"Bruneano",32:"Búlgara",33:"Burundés",34:"Burmesa",35:"Burundés",36:"Camboyana",37:"Camerunés",38:"Canadiense",39:"Caboverdiano",40:"Caimanés",41:"Centroafricana",42:"Chadiano",43:"Chilena",44:"China",45:"Isla de Navidad",46:"Cocos Island",47:"Colombiana",48:"Comorense",49:"Congoleña",50:"Cookiano",51:"Costarricense",52:"Marfileña",53:"Croata",54:"Cubana",55:"Chipriota",56:"Checa",57:"Danesa",58:"Djibouti",60:"Dominicana",61:"Timorense",62:"Ecuatoriana",63:"Egipcia",64:"Salvadoreña",65:"Inglesa",66:"Ecuatoguineano",67:"Eritreo",68:"Estoniana",69:"Etíope",70:"Islas Malvinas",71:"Feroés",72:"Fiyiano",73:"Finlandesa",74:"Francesa",75:"Guayana Francesa",76:"Francopolinecio",77:"Gabonesa",78:"Gambiana",79:"Georgiano",80:"Alemana",81:"Ghanesa",82:"Gibraltareño",221:"Británico",84:"Griega",85:"Groenlandés",86:"Granadino",87:"Guadeloupeño",89:"Guatemalteca",90:"Guineana",91:"Guyanés",92:"Haitiana",93:"Hondureña",94:"Hongkongese",95:"Húngaro",96:"Islandesa",97:"Indio",98:"Indonesia",99:"Iraní",100:"Iraquí",101:"Irlandesa",102:"Manés",103:"Israelí",104:"Italiana",105:"Jamaiquina",106:"Japonesa",107:"Jordana",108:"Kazaja",109:"Keniana",110:"Kiribatiano",111:"Coreana",112:"Surcoreana",113:"Kosovan",114:"Kuwaití",115:"Kirguisa",116:"Laosiano",117:"Letona",118:"Libanesa",119:"Basotho",120:"Liberiana",121:"Libia",122:"Liechtenstein",123:"Lituano",124:"Luxemburguesa",125:"Macaneso",126:"Macedonia",127:"Malgache",128:"Malaya",129:"Malaya",130:"Maldivo",131:"Mali",132:"Maltesa",133:"Marshallese",134:"Martiniqueña",135:"Mauritania",136:"Mauriciano",137:"Mahoran",138:"Mexicana",139:"Micronesio",140:"Moldava",141:"Monacan",142:"Mongol",143:"Montenegrina",144:"Montserratiano",145:"Marroqui",146:"Mozambiqueña",147:"Namibio",148:"Nauruan",149:"Nepalí",150:"Holandesa",151:"Neocaledonio",152:"Neozelandesa",153:"Nicaragüense",154:"Niueño",155:"Nigerina",156:"Nigeriana",157:"Noruega",158:"Normariano",159:"Omaní",160:"Palestina",161:"Palestina",162:"Palauan",163:"Panameña",164:"Papú",165:"Paraguaya",166:"Peruana",167:"Filipina",168:"Pitcairnés",169:"Polaca",170:"Portuguesa",171:"Puertorriqueña",172:"Catari",173:"Reunionés",174:"Rumana",175:"Rusa",176:"Ruandés",177:"Santa Elena",178:"Sancristobaleña",179:"Santa Lucía",180:"Miquelonnais",181:"Sanvicentina",182:"Samoano",183:"Sanmariense",184:"Santotomense",185:"Saudí",186:"Escocesa",187:"Senegalense",188:"Serbia",189:"Seychellense",190:"Sierraleonesa",191:"Singapurense",192:"Eslovena",193:"Eslovena",194:"Salomonense",195:"Somalí",196:"Sudafricana",197:"Surosetio",198:"Española",199:"Esrilanques",200:"Sudanés",201:"Surinamés",202:"Swazi",203:"Sueca",204:"Suiza",205:"Sirio",206:"Taiwanesa",207:"Tayiko",208:"Tanzano",209:"Tailandesa",210:"Togo",211:"Tongano",212:"Trinitaria",213:"Tunecina",214:"Turca",215:"Turkmena",216:"none",217:"Tuvaluano",218:"Ugandesa",219:"Ucraniana",220:"Emiratí",222:"Americana",223:"Uruguaya",224:"Uzbeka",225:"Vanuatuense",226:"Venezolana",227:"Vietnamita",228:"Islas Vírgenes",229:"Galesa",230:"Walisiano",231:"Saharaui",232:"Yemení",233:"Zambiana",234:"Zimbabuense",236:"Curazaleña",237:"San Martín",239:"Debutante"},X_a="",aA={components:{GSCCarousel:nOt,GSCLeaders:QNt,GSCRowTable:_q,GSCTableHeader:pq,GSCExpandedInfo:Iq},props:{isTeam:{type:Boolean,default:!1},typeTable:{type:Number,default:0},typeData:{type:Number,default:1},gameId:{type:Number,default:0},filtersProp:{type:[Object,String],default:()=>{}},game:{type:Object,default:()=>({})},isWidget:{type:Boolean,default:!1},teamWidget:{type:Number,default:0},canPlayVideos:{type:Boolean,default:!1},filterTeam:{type:Number,default:0},timeLiveComparativeAvanced:{type:Number,default:6e4},category:{type:Number,default:1},categoryName:{type:String,default:"Goles"},season:{type:Number,default:1772},type:{type:Number,default:0},borderRadius:{type:String,default:"8px"},borderWidth:{type:[String,Number],default:"2px"},borderColor:{type:String,default:"#cfcfcf"},backgroundOdd:{type:String,default:"#172531"},backgroundEven:{type:String,default:"#0d1d29"},numRows:{type:Number,default:5}},setup(){const e=t.ref("myDivRef"),{elementSize:r}=M_(e);return{myDivRef:e,elementSize:r}},watch:{season:{immediate:!1,async handler(e){e&&(this.playersInfo={},this.teamInfo={},this.isloading=!0,this.formatFilterStats=[],await this.getCategoryStats(this.season),this.game.is_live&&(this.intervalIdtops=setInterval(async()=>{await this.getCategoryStats(this.season)},this.timeLiveComparativeAvanced),this.$emit("intervalidtops",this.intervalIdtops)))}},typeData:{immediate:!0,async handler(){await this.getCategoryStats(this.season)}},filtersProp:{immediate:!1,deep:!0,async handler(e,r){e&&(JSON.stringify(e)!==JSON.stringify(r)||this.sonConjuntosDistintos(e.setNationalitiesIds,r.setNationalitiesIds))&&(this.isloading=!0,this.filterEmitAux=e,[1,23,3,4,5,7,6,9,8,11,10,12,13,15,14,17,16,22].includes(this.category)?this.filterEmitAux.typeZone=1:this.filterEmitAux.typeZone=2,this.formatFilterStats=await this.filterRecords(this.filterEmitAux))}}},computed:{topData(){if(this.changeStateLoading(!0),Object.entries(this.statsData).length>0&&this.formatFilterStats.length>0){var e={},r={},i=[],B=[],D=[];return this.formatFilterStats.map(c=>{e[c.team_id]?e[c.team_id].total=e[c.team_id].total+c.total:(e[c.team_id]={},e[c.team_id].total=c.total,e[c.team_id].id=this.teamInfo[c.team_id].id,e[c.team_id].name=this.teamInfo[c.team_id].name.replace(" Femenil",""),e[c.team_id].img="https://az755631.vo.msecnd.net/teams-80/"+c.team_id+".png",e[c.team_id].effectiveness=this.teamInfo[c.team_id].effectiveness,e[c.team_id].frecuency=this.teamInfo[c.team_id].frecuency,e[c.team_id].game_avg=this.teamInfo[c.team_id].game_avg,e[c.team_id].game_avg_last_season=this.teamInfo[c.team_id].game_avg_last_season,e[c.team_id].games_played_lastseason=this.teamInfo[c.team_id].games_played_lastseason,e[c.team_id].games_played=this.teamInfo[c.team_id].games_played,e[c.team_id].positiontable=this.teamInfo[c.team_id].positiontable,e[c.team_id].goals=this.teamInfo[c.team_id].goals,e[c.team_id].goalsrecived=this.teamInfo[c.team_id].goalsrecived,e[c.team_id].xg=this.teamInfo[c.team_id].xg),r[c.player_id]?c.player_id!=0&&c.player_id!=62117&&(r[c.player_id].total=r[c.player_id].total+c.total):c.player_id!=0&&c.player_id!=62117&&(r[c.player_id]={},r[c.player_id].total=c.total,c.player_id&&this.playersInfo[c.player_id]?(r[c.player_id].name=this.playersInfo[c.player_id].name,r[c.player_id].name_short=this.getnameshort(this.playersInfo[c.player_id].name),r[c.player_id].img=this.playersInfo[c.player_id].img,r[c.player_id].id=this.playersInfo[c.player_id].id,r[c.player_id].age=this.playersInfo[c.player_id].age,r[c.player_id].team=this.playersInfo[c.player_id].team,r[c.player_id].teamname=this.playersInfo[c.player_id].teamname,r[c.player_id].teamid=this.playersInfo[c.player_id].teamid,r[c.player_id].position=this.playersInfo[c.player_id].position,r[c.player_id].positionId=this.playersInfo[c.player_id].positionId,r[c.player_id].positionfull=this.playersInfo[c.player_id].positionfull,r[c.player_id].country=this.playersInfo[c.player_id].country,r[c.player_id].effectiveness=this.playersInfo[c.player_id].effectiveness,r[c.player_id].minutes=this.playersInfo[c.player_id].minutes_played,r[c.player_id].games=this.playersInfo[c.player_id].games_played,r[c.player_id].date=this.playersInfo[c.player_id].date,r[c.player_id].nationality=this.playersInfo[c.player_id].nationality,r[c.player_id].player_country_flag=this.playersInfo[c.player_id].player_country_flag,r[c.player_id].categoryName=this.categoryName):(r[c.player_id].id=c.player_id,r[c.player_id].name=c.player_id,r[c.player_id].img="SIN IMAGEN",r[c.player_id].age="",r[c.player_id].teamname="",r[c.player_id].team="",r[c.player_id].teamid=0,r[c.player_id].position="",r[c.player_id].positionId=0,r[c.player_id].positionfull="",r[c.player_id].country="",r[c.player_id].effectiveness="",r[c.player_id].minutes="",r[c.player_id].games="",r[c.player_id].date="00-00-0000",r[c.player_id].nationality="",r[c.player_id].player_country_flag="",r[c.player_id].categoryName=""))}),i.push(...Object.values(e)),B.push(...Object.values(r)),i=this.sortAndSlice(Object.values(e),60),B=B.sort(this.compareObjectsMinutes).slice(0,60),B=B.map((c,g)=>(c.top=g<9?"0"+(g+1):""+(g+1),c)),i=i.map((c,g)=>(c.top=g<9?"0"+(g+1):""+(g+1),c)),this.filterTeam!==0&&!this.isTeam&&(D=B.filter(c=>c.teamid===this.filterTeam)),this.changeStateLoading(!1),this.isTeam?this.formatArrayPaginate(i):this.filterTeam!=0?this.formatArrayPaginate(D):this.formatArrayPaginate(B)}else return this.changeStateLoading(!1),[]}},data:()=>({url:"https://8grl16o77j.execute-api.us-west-2.amazonaws.com/prod/live/tops",urlPrematch:"https://8grl16o77j.execute-api.us-west-2.amazonaws.com/prod/topsBySeasonAndCategory/",data_headers:["team_id","player_id","playing_as","match_result","section","total","origen","destino"],token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",mapPlayers:new Map,setNationalityIds:new Set,arrayAgeRange:[0,0],arePlaysEmpty:!1,teamInfo:{},formatFilterStats:[],formatStats:[],playersInfo:{},isloading:!0,statsData:{},updateSlider:0,intervalIdtops:null,filterEmitAux:{},filtersSelect:{playingAs:[],matchResult:[],sections:[],zone:[],typeZone:[]},filtersValues:{type:1,sections:[1,2,3,4,5,6],matchResult:[1,2,3],playingAs:[1,2],zone:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],typeZone:1,arrayAgeRange:[1,60],setNationalitiesIds:[],setPositionsIds:[1,2,3,4,5,6,7,8,9]},expand:!1,playerexpand:0,positions:[{name:"Portero",fullname:"POR"},{name:"Defensa central",fullname:"DFC"},{name:"Lateral por izquierda",fullname:"LI"},{name:"Lateral por derecha",fullname:"LD"},{name:"Volante por izquierda",fullname:"VI"},{name:"Volante por derecha",fullname:"VD"},{name:"Volante defensivo",fullname:"VDF"},{name:"Volante ofensivo",fullname:"VO"},{name:"Delantero",fullname:"DEL"},{name:"Desconocida",fullname:"Desc"}],categories:[{id:1,name:"Goles"}]}),methods:{changeStateLoading(e){this.isloading=e},compareObjectsMinutes(e,r){return e.total>r.total?-1:e.total<r.total?1:e.minutes<r.minutes?-1:e.minutes>r.minutes?1:0},sonConjuntosDistintos(e,r){const i=Array.from(e),B=Array.from(r);if(i.length!==B.length)return!0;for(let D=0;D<i.length;D++)if(!r.has(i[D]))return!0;return!1},getnameshort(e){var r=e.split(","),i=r[0].split(" "),B=r[1].trim().split(" "),D="";i.length==2||i.length==1?i[0].length<4?D=i[0]+" "+i[1]:D=i[0]:i.length==3?D=i[0]+" "+i[1]:i.length==4&&(D=i[1]+" "+i[2]+" "+i[3]);var c=B[B.length-1]!=""?B[B.length-1].charAt(0):B[B.length-2]?B[B.length-2].charAt(0):"";return D=D.replace(",",""),c+". "+D},changeCarrousel(){this.expand=!1,this.playerexpand=0},compareObjects(e,r){return e.total<r.total?-1:e.total>r.total?1:e.name<r.name?-1:e.name>r.name?1:0},sortAndSlice(e,r){return e.sort((i,B)=>(i.name<B.name?1:-1)&&(i.total<B.total?1:-1)).slice(0,r)},getCategoryName(e){let r="";for(let i=0;i<this.categories.length;i++)e==this.categories[i].id&&(r=this.categories[i].name);return r},translateTopCategories(e){return{1:[12,55,"35_r","54_r"],2:[2,20],3:[485,486,487,488],4:[10,324],5:[27,323],6:[510],7:[537,540,544,547],8:[328],9:[231,238,280,287,294,406],10:[13,25],11:[98,101,104,105,109,112,115,116],12:[4],13:[88],14:[5],15:[34],16:[23],17:[11],18:[17,50],19:[18,49],20:[14,52],21:[15,53],22:[39],23:[31,32]}[e]||[]},getCoordinatePointPerCategory(e){return{1:2,2:3,3:1,4:2,5:1,6:2,7:2,8:1,9:1,10:2,11:2,12:1,13:1,14:1,15:1,16:1,17:1,18:3,19:3,20:3,21:3,22:1,23:1}[e]||0},emitEventMedia(e,r,i){let B=this.filtersValues.matchResult,D=this.filtersValues.playingAs,c=this.filtersValues.sections,g=this.filtersValues.zone,a=this.translateTopCategories(r);Object.keys(this.filterEmitAux).length>0&&(B=this.filterEmitAux.matchResult,D=this.filterEmitAux.playingAs,c=this.filterEmitAux.sections,g=this.filterEmitAux.zone);const y=1,f=2,n=3,v=this.isTeam?n:f,_=e.player_id;let p=[],l=this.isTeam?e.id:this.filterTeam;_?this.isTeam?l=_:(p=[_],a=a.filter(s=>!s.toString().includes("_r"))):this.isTeam?l=e.id:(p=[e.id],a=a.filter(s=>!s.toString().includes("_r")));const o={auxwidget:!!(this.canPlayVideos||this.game.awayTeam.team_id==this.teamWidget&&this.typeData!=1),seasonId:this.season,isFeaturedPlayers:!1,mainSectionType:y,playListType:v,gameIds:null,playerIds:p,goalkeeperIds:[],categoryIds:this.translateTopCategories(r),teamId:l||0,matchResult:B,categorySingleName:"",isRivalSubject:!1,avoidCategorySingleName:!1,currentPlayIndex:0,playData:null,lastClashedGameId:null,tournamentsLastClashes:null,advancedFilter:{playListTitle:i,playingAs:D,timeSections:c,fieldSections:g,coordinatePoint:this.getCoordinatePointPerCategory(r)}};this.$emit("setopenmedia",o)},emitEventMediaFullTable(e,r,i){let B=this.filtersValues.matchResult,D=this.filtersValues.playingAs,c=this.filtersValues.sections,g=this.filtersValues.zone,a=this.translateTopCategories(r);Object.keys(this.filterEmitAux).length>0&&(B=this.filterEmitAux.matchResult,D=this.filterEmitAux.playingAs,c=this.filterEmitAux.sections,g=this.filterEmitAux.zone);const y=1,f=2,n=3,v=this.isTeam?n:f;let _=[],p=this.isTeam?e.id:this.filterTeam;this.isTeam?p=e.id:(_=[e.id],a=a.filter(o=>!o.toString().includes("_r")));const l={seasonId:this.season,isFeaturedPlayers:!1,mainSectionType:y,playListType:v,gameIds:null,playerIds:_,goalkeeperIds:[],categoryIds:a,teamId:p||0,matchResult:B,categorySingleName:"",isRivalSubject:!1,avoidCategorySingleName:!1,currentPlayIndex:0,playData:null,lastClashedGameId:null,tournamentsLastClashes:null,advancedFilter:{playListTitle:i,playingAs:D,timeSections:c,fieldSections:g,coordinatePoint:this.getCoordinatePointPerCategory(r)}};this.$emit("setopenmedia",l)},replaceImgPlayer(e){return e.replace("https://az755631.vo.msecnd.net/players-profile/","https://az755631.vo.msecnd.net/players-profile-no-bg/")},abrevName(e){var r=e.split(","),i=r[0].split(" "),B=r[1].trim().split(" "),D="";i.length==2||i.length==1?i[0].length<4?D=i[0]+" "+i[1]:D=i[0]:i.length==3?D=i[0]+" "+i[1]:i.length==4&&(D=i[1]+" "+i[2]+" "+i[3]);var c=B[B.length-1]!=""?B[B.length-1].charAt(0):B[B.length-2]?B[B.length-2].charAt(0):"";D=D.replace(",","");var g=c+". "+D;return g},clickMore(e){this.$emit("more",{category:e,categoryName:this.categoryName})},morestats(){this.$emit("more",this.category)},viewprofile(e,r){this.$emit("clickprofile",{id:e,teamId:r,isTeam:this.isTeam})},clickexpand(e){this.expand=e.expand,this.playerexpand=e.id},async getCategoryStats(e){this.mapPlayers=new Map;try{if(!e)return;let r=[],i={},B={};this.arePlaysEmpty=!1;const D=$c.create({headers:{Authorization:`${this.token}`}});this.isloading=!0;let c={};if(this.typeData==1?this.isWidget&&this.teamWidget!=0?c=await D.get(this.url+"/"+this.gameId+"/"+this.category+"?t="+this.teamWidget):c=await D.get(this.url+"/"+this.gameId+"/"+this.category):this.game.game_status===1?this.isWidget&&this.teamWidget!=0?c=await D.get(this.url+"/"+this.gameId+"/"+this.category+"?acc=1&t="+this.teamWidget):c=await D.get(this.url+"/"+this.gameId+"/"+this.category+"?acc=1"):this.isWidget&&this.teamWidget!=0?c=await D.get(this.urlPrematch+this.season+"/"+this.category+"?t="+this.teamWidget):c=await D.get(this.urlPrematch+this.season+"/"+this.category+"?t="+this.game.homeTeam.team_id+"&t="+this.game.awayTeam.team_id),c&&c.data&&c.data.data&&c.data.data.length>0){r=c.data.data.map(a=>this.formatStatsData(a)),c.data.teams.forEach(a=>{i[a[0]]={},i[a[0]].id=a[0],i[a[0]].name=a[1],i[a[0]].abrv=a[2],i[a[0]].img=a[3],i[a[0]].effectiveness=a[4],i[a[0]].games_played=a[5],i[a[0]].games_played_lastseason=a[6],i[a[0]].positiontable=a[7],i[a[0]].goals=a[8],i[a[0]].goalsrecived=a[9],i[a[0]].xg=a[10],i[a[0]].frecuency=a[11],i[a[0]].game_avg=a[12],i[a[0]].game_avg_last_season=a[13]});const g=new Set;c.data.players.forEach(a=>{const y=this.getObjectPlayer(a);this.mapPlayers.set(y.numberId,y);const f=y.numberAge,n=y.teamName.length>0?y.teamName[0].acronym:"",v=y.teamName.length>0?i[y.teamName[0].team_id].name:"",_=y.teamName.length>0?y.teamName[0].team_id:"",p=this.positions[y.numberPositionId-1].fullname,l=this.positions[y.numberPositionId-1].name,o=y.countryId.length>0?y.countryId[0].nationality_id:"",s=y.effectiveness,u=y.min,d=y.games,h=y.date;y.arrayNationalities.forEach(m=>{g.add(m.numberId)}),B[a[0]]={id:a[0],name:a[1],img:a[2],age:f,team:n,teamname:v,teamid:_,position:p,positionfull:l,effectiveness:s,country:o,games_played:d,minutes_played:u,date:h,nationality:y.stringNationalityName,player_country_flag:y.player_country_flag,positionId:y.numberPositionId}}),this.setNationalityIds=g,this.arrayAgeRange=[c.data.min_age,c.data.max_age]}else this.arePlaysEmpty=!0;this.teamInfo=i,this.playersInfo=B,this.formatStats=r,this.formatFilterStats=this.filterRecords(this.filtersSelect),this.statsData=c}catch(r){return Promise.reject(r)}},filterRecords(e){return this.formatStats.length>0?this.formatStats.filter(r=>{const i=e.playingAs.includes(r.playing_as),B=e.matchResult.includes(r.match_result),D=e.sections.includes(r.section),c=e.typeZone===1&&e.zone.includes(r.origen)||e.typeZone===2&&e.zone.includes(r.destino);if(e.setPositionsIds&&e.setNationalitiesIds&&e.arrayAgeRange&&e.setYear&&!this.isTeam){const g=this.mapPlayers.get(r.player_id);if(!g)return!1;if(e.booleanAreNationalTeamsVisible){if(e.setAvailableNationalTeamsPlayersIds.size>0&&!e.setAvailableNationalTeamsPlayersIds.has(r.player_id))return!1}else{let a=!1;for(const y of g.arrayNationalitiesIds)if(e.setNationalitiesIds.has(y)){a=!0;break}if(!a)return!1}if(g.numberAge<e.arrayAgeRange[0]||g.numberAge>e.arrayAgeRange[1]||g.date<e.setYear||!e.setPositionsIds.includes(g.numberPositionId))return!1}return(e.playingAs.length===0||i)&&(e.matchResult.length===0||B)&&(e.sections.length===0||D)&&(e.zone.length===0||c)}):[]},updateSliderF(){this.updateSlider+=1},formatStatsData(e){const r={};return e[1]===0&&(e[2]===1||e[2]===2)&&(e[2]=3-e[2]),e[1]===0&&(e[3]===1||e[3]===2)&&(e[3]=3-e[3]),this.data_headers.forEach((i,B)=>{r[i]=e[B]}),r},getObjectPlayer(e){const r=[],i=e[7].map(D=>(r.push(D.nationality_id),{stringName:D.nationality,numberId:D.nationality_id})),B=e[9].split("-");return{numberId:e[0]!==void 0?e[0]:"",stringFullName:e[1]!==void 0?e[1]:"",stringImageUrl:e[2]!==void 0?e[2]:"",numberTeamId:e[3]!==void 0?e[3]:"",player_country_flag:"https://az755631.vo.msecnd.net/flags/"+e[3]+".jpg",stringNationalityName:zq[e[3]],numberAge:e[5]!==void 0?e[5]:"",numberPositionId:e[6]!==void 0?e[6]:"",countryId:e[7]!==void 0?e[7]:"",teamName:e[10]!==void 0?e[10]:"",effectiveness:e[11]!==void 0?e[11]:"",min:e[13]!==void 0?e[13]:"",games:e[12]!==void 0?e[12]:"",date:B.length>0?Number(B[0]):0,arrayNationalities:i,category:this.categoryName,arrayNationalitiesIds:r}},formatArrayPaginate(e){const r=Math.ceil(e.length/this.numRows);return Array.from({length:r},(i,B)=>{const D=B*this.numRows,c=D+this.numRows;return e.slice(D,c)})}},beforeUnmount(){clearInterval(this.intervalIdtops)}},Oq=()=>{t.useCssVars(e=>({"7270acad":e.borderRadius,"6f55fe4b":e.borderWidth,"6e3effe8":e.borderColor}))},Fq=aA.setup;aA.setup=Fq?(e,r)=>(Oq(),Fq(e,r)):Oq;const B4=e=>(t.pushScopeId("data-v-43d490e8"),e=e(),t.popScopeId(),e),rOt={ref:"myDivRef"},iOt={class:"btnViewFullList"},oOt={class:"text"},sOt={class:"groupsLeague"},lOt={class:"row-table-carrousel"},cOt={key:1,class:"container-no-search-result"},dOt={key:0,class:"overlay-loading-top"},uOt=[B4(()=>t.createElementVNode("div",{class:"overlay-loading-top__spinner"},[t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/balon_liga.png",alt:""})],-1)),B4(()=>t.createElementVNode("div",{class:"overlay-loading-top__text"},"Loading...",-1))],hOt=B4(()=>t.createElementVNode("div",{class:"container-no-search-result-title"},"No existen resultados",-1)),pOt=B4(()=>t.createElementVNode("div",{class:"container-no-search-result-subtitle"},[t.createTextVNode(" No existen resultados para este tipo de"),t.createElementVNode("br"),t.createTextVNode(" jugada, considerando el torneo y otros"),t.createElementVNode("br"),t.createTextVNode(" filtros que has seleccionado. ")],-1));function fOt(e,r,i,B,D,c){const g=t.resolveComponent("GSCLeaders"),a=t.resolveComponent("GSCRowTable"),y=t.resolveComponent("GSCExpandedInfo"),f=t.resolveComponent("GSCCarousel"),n=t.resolveComponent("GSCTableHeader");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(i.type==0?"gsc-top":"gsc-top-full")},[t.createElementVNode("div",rOt,[t.createElementVNode("div",iOt,[t.createElementVNode("div",oOt,[t.createElementVNode("div",sOt,t.toDisplayString(i.categoryName),1)])]),i.type==0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[c.topData.length>0?(t.openBlock(),t.createBlock(f,{key:0,items:c.topData,"is-pagination-visible":!0,"are-navigation-arrows-visible":!0,onInput:c.changeCarrousel},{default:t.withCtx(({item:v})=>[t.createElementVNode("div",lOt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(v,(_,p)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:p},[_.top==1?(t.openBlock(),t.createBlock(g,{key:0,onMediadata:r[0]||(r[0]=l=>c.emitEventMedia(l,i.category,i.categoryName)),type:i.typeTable,"type-data":i.typeData,game:i.game,"team-widget":i.teamWidget,"can-play-videos":i.canPlayVideos,"is-expanded":e.playerexpand==_.id&&e.expand,ref_for:!0,ref:"GSCLeaders",data:i.typeTable==0?{top:"01",photo:_.img,logo:"https://az755631.vo.msecnd.net/teams-80/"+_.teamid+".png",name:_.name,player_short:_.name_short,player_id:_.id,categoryId:i.category,total:_.total}:{top:"01",logo:_.img,total:_.total,name_team:_.name,player_id:_.id},"category-name":i.categoryName,buttonMaxWidth:i.typeTable!=0?B.elementSize.width>360?"210px":"130px":B.elementSize.width>360?"180px":"110px",buttonFontSize:"12px",iconSize:"11px",onExpand:c.clickexpand,onMore:c.morestats},null,8,["type","type-data","game","team-widget","can-play-videos","is-expanded","data","category-name","buttonMaxWidth","onExpand","onMore"])):(t.openBlock(),t.createBlock(a,{key:1,"type-data":i.typeData,"team-widget":i.teamWidget,game:i.game,type:i.typeTable,"type-view":i.type,"is-expanded":e.playerexpand==_.id&&e.expand,onMediadata:r[1]||(r[1]=l=>c.emitEventMedia(l,i.category,i.categoryName)),data:i.typeTable==0?{position:_.top,player_name:_.name,player_short:_.name_short,player_photo:_.img,total:_.total,id:_.id,player_age:_.age,team_abrev:_.team,team_logo:"https://az755631.vo.msecnd.net/teams-80/"+_.teamid+".png",player_position:_.position,player_country_flag:"https://az755631.vo.msecnd.net/flags/"+_.country+".jpg",player_games:_.minutes,player_min:_.games,league_name:"          Liga MX          "}:{position:_.top,team_logo:_.img,team_abrev:_.name,frequency:_.frecuency,promthistournament:_.game_avg,promlasttournament:_.game_avg_last_season,teams_games:"-",category:i.category,total:_.total,id:_.id},height:"71px","can-play-videos":i.canPlayVideos,background:p%2===0?i.backgroundEven:i.backgroundOdd,onExpand:c.clickexpand},null,8,["type-data","team-widget","game","type","type-view","is-expanded","data","can-play-videos","background","onExpand"])),e.expand&&e.playerexpand==_.id?(t.openBlock(),t.createBlock(y,{key:2,type:i.typeTable,"is-live":i.game.is_live,"view-effectiveness":_.positionId!==1,data:i.typeTable==0?{teams:_.teamname,age:_.age,dataofbirth:_.date,nationality:_.nationality,countryFlag:_.player_country_flag,position:_.position,games:_.games,min:_.minutes,goals:_.total,effectiveness:_.effectiveness,category:i.categoryName,id:_.id}:{position:_.positiontable,goals:_.goals,goals_received:_.goalsrecived,games_played:_.games_played,category:i.categoryName,effectiveness:_.effectiveness,xg:_.xg,total:_.total,attendance:"-",id:_.id},onViewprofile:l=>c.viewprofile(l,_.teamid),background:p%2===0?i.backgroundEven:i.backgroundOdd},null,8,["type","is-live","view-effectiveness","data","onViewprofile","background"])):t.createCommentVNode("",!0)],64))),128))])]),_:1},8,["items","onInput"])):(t.openBlock(),t.createElementBlock("div",cOt,[e.isloading?(t.openBlock(),t.createElementBlock("div",dOt,uOt)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[hOt,pOt],64))]))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createVNode(n,{background:"#183143",type:i.typeTable},null,8,["type"]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(c.topData,(v,_)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:_},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(v,(p,l)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:l},[t.createVNode(a,{"type-data":i.typeData,"team-widget":i.teamWidget,game:i.game,type:i.typeTable,"type-view":i.type,"can-play-videos":i.canPlayVideos,"is-expanded":e.playerexpand==p.id&&e.expand,onMediadata:r[2]||(r[2]=o=>c.emitEventMediaFullTable(o,i.category,i.categoryName)),data:i.typeTable==0?{position:p.top,player_name:p.name,player_short:p.name_short,player_photo:p.img,total:p.total,id:p.id,player_age:p.age,team_abrev:p.team,team_logo:"https://az755631.vo.msecnd.net/teams-80/"+p.teamid+".png",player_position:p.position,player_country_flag:"https://az755631.vo.msecnd.net/flags/"+p.country+".jpg",player_games:p.games,player_min:p.minutes,league_name:"          Liga MX          "}:{position:p.positiontable,team_logo:p.img,team_abrev:p.name,frequency:p.frecuency,promthistournament:p.game_avg,promlasttournament:p.game_avg_last_season,category:i.category,team_games:p.games_played,total:p.total,id:p.id},height:"71px",background:((_+1)*5+l)%2===0?i.backgroundOdd:i.backgroundEven,onExpand:c.clickexpand},null,8,["type-data","team-widget","game","type","type-view","can-play-videos","is-expanded","data","background","onExpand"]),e.expand&&e.playerexpand==p.id?(t.openBlock(),t.createBlock(y,{key:0,type:i.typeTable,"is-live":i.game.is_live,additionalClass:"fullTable","view-effectiveness":p.positionId!==1,data:i.typeTable==0?{teams:p.teamname,age:p.age,dataofbirth:p.date,nationality:p.nationality,countryFlag:p.player_country_flag,position:p.positionfull,positionfull:p.positionfull,games:p.games,min:p.minutes,goals:p.total,effectiveness:p.effectiveness,category:c.getCategoryName(i.category),id:p.id}:{position:p.positiontable,goals:p.goals,goals_received:p.goalsrecived,games_played:p.games_played,category:i.categoryName,effectiveness:p.effectiveness,xg:p.xg,total:p.total,category:c.getCategoryName(i.category),attendance:"-",id:p.id},onViewprofile:o=>c.viewprofile(o,p.teamid),background:l%2===0?i.backgroundEven:i.backgroundOdd},null,8,["type","is-live","view-effectiveness","data","onViewprofile","background"])):t.createCommentVNode("",!0)],64))),128))],64))),128))],64))],512)],2)}const mOt=$i(aA,[["render",fOt],["__scopeId","data-v-43d490e8"]]),gOt=(e,r)=>{const i=e.__vccOpts||e;for(const[B,D]of r)i[B]=D;return i},yOt={props:{id:Number,textValue:String,icon:String,numFilter:Number,iconVisible:{type:Boolean,default:!0},activeClickLabel:{type:Boolean,default:!1},height:{type:String,default:"35px"},borderRadius:{type:String,default:"30px"},borderType:{type:String,default:"solid"},borderWidth:{type:Number,default:0},borderColor:String,backgroundColor:{type:String,default:"#23303B"},fontSize:{type:String,default:"13px"},fontColor:{type:String,default:"#FFFFFF"},fontFamily:{type:String,default:"Poppins-Regular"},iconSize:{type:String,default:"20px"}},computed:{customStyle(){return{height:this.height,backgroundColor:this.backgroundColor,borderRadius:this.borderRadius,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`,color:this.fontColor,cursor:this.cursorType,fontSize:this.fontSize,fontFamily:`${this.fontFamily} !important`}},customIcon(){return{width:this.iconSize}}},methods:{btnLabel(){this.$emit("clickLabel",this.id)},btnClose(){this.$emit("clickClose",this.id)}}},vOt=["src"],_Ot=["src"];function bOt(e,r,i,B,D,c){return t.openBlock(),t.createElementBlock("div",null,[i.activeClickLabel?(t.openBlock(),t.createElementBlock("div",{key:0,style:t.normalizeStyle(c.customStyle),class:"gsc-label",onClick:r[0]||(r[0]=(...g)=>c.btnLabel&&c.btnLabel(...g))},[t.createTextVNode(t.toDisplayString(i.numFilter)+" "+t.toDisplayString(i.textValue)+" ",1),i.iconVisible?(t.openBlock(),t.createElementBlock("img",{key:0,style:t.normalizeStyle(c.customIcon),class:"icon",src:i.icon},null,12,vOt)):t.createCommentVNode("",!0)],4)):(t.openBlock(),t.createElementBlock("div",{key:1,class:"gsc-label",style:t.normalizeStyle(c.customStyle)},[t.createTextVNode(t.toDisplayString(i.numFilter)+" "+t.toDisplayString(i.textValue)+" ",1),i.iconVisible?(t.openBlock(),t.createElementBlock("img",{key:0,onClick:r[1]||(r[1]=(...g)=>c.btnClose&&c.btnClose(...g)),style:t.normalizeStyle(c.customIcon),class:"icon",src:i.icon},null,12,_Ot)):t.createCommentVNode("",!0)],4))])}const xOt=gOt(yOt,[["render",bOt],["__scopeId","data-v-42ff544a"]]);function wOt(e){const r=t.ref({width:0,height:0});function i(){const B=e.value.getBoundingClientRect();r.value.width=B.width,r.value.height=B.height}return t.onMounted(()=>{i(),window.addEventListener("resize",i)}),t.onUnmounted(()=>{window.removeEventListener("resize",i)}),{elementSize:r}}const kOt=(e,r)=>{const i=e.__vccOpts||e;for(const[B,D]of r)i[B]=D;return i},nA={name:"ScrollableContainer",props:{backgroundColor:{type:String,default:"#0D1D29"},pxScroll:{type:Number,default:100},arrows:{type:Boolean,default:!0},arrowsHideOnNoScroll:{type:Boolean,default:!1},arrowsScrollHide:{type:Boolean,default:!1},arrowsColor:{type:String,default:"#CBEE6B"},arrowsHeight:{type:Number,default:15},arrowsWidth:{type:Number,default:15},arrowsPadding:{type:Number,default:5},arrowsMargin:{type:Number,default:10},arrowsRadius:{type:String,default:"0%"},arrowsBorder:{type:String,default:"none"},arrowsBackground:{type:String,default:"#0D1D29"},arrowsContainerBgL:{type:String,default:"#0D1D29"},arrowsContainerBgR:{type:String,default:"#0D1D29"},scrollColor:{type:String,default:"#c3e569"},arrowsPosition:{type:String,default:"relative"},height:{type:String,default:"100%"}},data(){return{showLeftArrow:!1,showRightArrow:!0,intervalid1:""}},mounted(){this.getScroll(),this.arrowsHideOnNoScroll&&window.addEventListener("resize",this.resizeSlider),this.arrowsHideOnNoScroll&&this.listenerLoad()},beforeUnmount(){this.arrowsHideOnNoScroll&&window.removeEventListener("resize",this.resizeSlider),this.arrowsHideOnNoScroll&&clearInterval(this.intervalid1)},computed:{getViewBox(){return`-2 0 ${this.arrowsWidth} ${this.arrowsHeight}`},hideShowLeftArrow(){let e="";return this.arrowsPosition=="absolute"?e="leftAbsolute":e="leftRelative",this.arrowsScrollHide?this.showLeftArrow?e+=" showArrowSlide":e+=" hideArrowSlide":e+=" showArrowSlide",e},hideShowRightArrow(){let e="";return this.arrowsPosition=="absolute"?e="rightAbsolute":e="rightRelative",this.arrowsScrollHide?this.showRightArrow?e+=" showArrowSlide":e+=" hideArrowSlide":e+=" showArrowSlide",e}},methods:{scrollLeft(){this.$refs.content.scrollLeft-=this.pxScroll},scrollRight(){this.$refs.content.scrollLeft+=this.pxScroll},getScroll(){let e=0;this.arrowsPosition=="relative"?e=this.$refs.content.scrollWidth-this.$el.clientWidth+this.arrowsMargin*2+this.arrowsWidth*4:e=this.$refs.content.scrollWidth-this.$el.clientWidth,this.$refs.content.scrollLeft==0?this.showLeftArrow=!1:this.showLeftArrow=!0,e>0&&(this.$refs.content.scrollLeft==e?this.showRightArrow=!1:this.showRightArrow=!0),this.arrowsHideOnNoScroll&&this.$refs.content.clientWidth===this.$refs.content.scrollWidth&&(this.showRightArrow=!1)},resizeSlider(){this.getScroll();let e;clearTimeout(e),e=setTimeout(this.getScroll,1e3)},listenerLoad(){this.intervalid1=setInterval((function(){var e=this.$el.clientWidth,r=this.$refs.content.scrollWidth;r>0&&e>0&&(r>e?(this.showRightArrow=!0,clearInterval(this.intervalid1)):clearInterval(this.intervalid1))}).bind(this),3e3)}}},Lq=()=>{t.useCssVars(e=>({"42d3dba6":e.backgroundColor,"4de5d2cf":e.height,"67bafa7b":e.arrowsPosition,"61e1032e":e.arrowsPadding+"px","79a4ac00":e.arrowsBackground,"6b8355c6":e.arrowsHeight*2+"px","29a58368":e.arrowsWidth*2+"px","3622fa64":e.arrowsRadius,"1ba101fe":e.arrowsBorder,"0bafb5e6":e.arrowsMargin+"px","423a44b8":e.arrowsContainerBgL,"423a44be":e.arrowsContainerBgR,"10b117ee":e.scrollColor}))},Dq=nA.setup;nA.setup=Dq?(e,r)=>(Lq(),Dq(e,r)):Lq;const COt={ref:"gscScrollableContainer",class:"scrollable-container"},SOt={class:"scrollable-arrows"},TOt=["width","height","viewBox"],EOt=["stroke"],AOt={class:"scrollable-wrapper"},MOt={class:"scrollable-arrows"},IOt=["width","height","viewBox"],POt=["stroke"];function BOt(e,r,i,B,D,c){return t.openBlock(),t.createElementBlock("div",COt,[i.arrows?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["arrows-container",c.hideShowLeftArrow]),onClick:r[0]||(r[0]=(...g)=>c.scrollLeft&&c.scrollLeft(...g))},[t.createElementVNode("div",SOt,[(t.openBlock(),t.createElementBlock("svg",{width:i.arrowsWidth,height:i.arrowsHeight,viewBox:c.getViewBox,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M6.36523 13.788L1.10146 8.52429C0.479824 7.90265 0.479824 6.88541 1.10147 6.26377L6.36523 1",stroke:i.arrowsColor},null,8,EOt)],8,TOt))])],2)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"scrollable-content scrollable-content-slider",ref:"content",onScroll:r[1]||(r[1]=(...g)=>c.getScroll&&c.getScroll(...g))},[t.createElementVNode("div",AOt,[t.renderSlot(e.$slots,"default",{},void 0,!0)])],544),i.arrows?(t.openBlock(),t.createElementBlock("div",{key:1,id:"arrows-container-right",class:t.normalizeClass(["arrows-container",c.hideShowRightArrow]),onClick:r[2]||(r[2]=(...g)=>c.scrollRight&&c.scrollRight(...g))},[t.createElementVNode("div",MOt,[(t.openBlock(),t.createElementBlock("svg",{width:i.arrowsWidth,height:i.arrowsHeight,viewBox:c.getViewBox,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M0.634765 1.21195L5.89853 6.47571C6.52018 7.09735 6.52018 8.11459 5.89853 8.73623L0.634766 14",stroke:i.arrowsColor},null,8,POt)],8,IOt))])],2)):t.createCommentVNode("",!0)],512)}const NOt=kOt(nA,[["render",BOt],["__scopeId","data-v-b548a08d"]]),zOt=(e,r)=>{const i=e.__vccOpts||e;for(const[B,D]of r)i[B]=D;return i},rA={components:{GSCSlider:NOt},props:{arrow:{type:Boolean,required:!0},buttons:{type:Array,required:!0},width:{type:String,default:"300px"},height:{type:String,default:"80px"},fontSize:{type:String,default:"16px"},colorFont:{type:String,default:"#ffffff"},backgroundOptionActive:{type:String,default:"#0d1d29"},colorOptionActive:{type:String,default:"#cbee6b"},colorOptionDisable:{type:String,default:"gray"},backgroundOptionDisable:{type:String,default:"#0d1d29"},fontFamily:{type:String,default:"Poppins-Semibold"},borderWidth:{type:String,default:"3px"},borderRadius:{type:String,default:"0px"},selectedOption:{type:String,default:""},type:{type:Number,default:0},borderWidthContainer:{type:String,default:"1px"},background:{type:String,default:"#0d1d29"},borderColorContainer:{type:String,default:"#505355"},pxScroll:{type:Number,default:100},scrollColor:{type:String,default:"#c3e569"},arrowsPosition:{type:String,default:"relative"},arrowsScrollHide:{type:Boolean,default:!1},arrowsBackground:{type:String,default:"#0D1D29"},arrowsContainerBgL:{type:String,default:"#0D1D29"},arrowsContainerBgR:{type:String,default:"#0D1D29"},arrowsMargin:{type:Number,default:10},arrowsRadius:{type:String,default:"0%"},arrowsBorder:{type:String,default:"none"}},setup(){const e=t.ref("myDivRef"),{elementSize:r}=wOt(e);return{myDivRef:e,elementSize:r}},methods:{clickEmitEvent(e){this.$emit("input",e)},customGrid(e){var r={};return e.width>768?r={fontSize:"16px"}:e.width>480?r={fontSize:"14px"}:r={fontSize:"12px"},r}}},Rq=()=>{t.useCssVars(e=>({cff4a118:e.fontSize,"42aab7f6":e.borderWidth,d29bcbd2:e.fontFamily,df6c5a9c:e.background,"09b32862":e.borderRadius,"8c0d6daa":e.borderWidthContainer,e8a86fa4:e.borderColorContainer,"179494da":e.colorOptionActive,cea5647c:e.width}))},Vq=rA.setup;rA.setup=Vq?(e,r)=>(Rq(),Vq(e,r)):Rq;const OOt={ref:"myDivRef"},FOt={key:0,class:"gs-switch-container"},LOt=["onClick"],DOt={key:1,class:"gs-switch-container-type"},ROt=["onClick"],VOt={key:2,class:"gs-switch-container-carousel"},$Ot=["onClick"];function jOt(e,r,i,B,D,c){const g=t.resolveComponent("GSCSlider");return t.openBlock(),t.createElementBlock("div",OOt,[i.type==0?(t.openBlock(),t.createElementBlock("div",FOt,[t.createElementVNode("div",{class:"gs-switch-container__control",style:t.normalizeStyle([c.customGrid(B.elementSize)])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i.buttons,(a,y)=>(t.openBlock(),t.createElementBlock("div",{class:"gs-switch-container__control__button-option",style:t.normalizeStyle([{height:i.height},i.selectedOption==a?{borderColor:i.colorOptionActive,color:i.colorFont+"!important",background:i.backgroundOptionActive}:{borderColor:i.colorOptionDisable,color:"grey !important"}]),key:y,onClick:f=>(i.selectedOption=a,c.clickEmitEvent(a))},t.toDisplayString(a),13,LOt))),128))],4),t.renderSlot(e.$slots,i.selectedOption,{},void 0,!0)])):t.createCommentVNode("",!0),i.type==1?(t.openBlock(),t.createElementBlock("div",DOt,[t.createElementVNode("div",{class:"gs-switch-container-type__control",style:t.normalizeStyle([c.customGrid(B.elementSize)])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i.buttons,(a,y)=>(t.openBlock(),t.createElementBlock("div",{class:"gs-switch-container-type__control__button-option-type",style:t.normalizeStyle([{height:i.height},i.selectedOption==a?{borderColor:i.colorOptionActive,color:i.colorFont+"!important",background:i.backgroundOptionActive}:{borderColor:i.colorOptionDisable,borderWidth:"0px",borderWidth:"0px !important",color:"grey !important",background:i.backgroundOptionDisable}]),key:y,onClick:f=>(i.selectedOption=a,c.clickEmitEvent(a))},t.toDisplayString(a),13,ROt))),128))],4)])):t.createCommentVNode("",!0),i.type==2?(t.openBlock(),t.createElementBlock("div",VOt,[t.createVNode(g,{arrows:i.arrow,"background-color":i.background,"px-scroll":i.pxScroll,"scroll-color":i.scrollColor,"arrows-position":i.arrowsPosition,arrowsScrollHide:i.arrowsScrollHide,"arrows-background":i.arrowsBackground,"arrows-container-bg-l":i.arrowsContainerBgL,"arrows-container-bg-r":i.arrowsContainerBgR,"arrows-margin":i.arrowsMargin,"arrows-radius":i.arrowsRadius,"arrows-border":i.arrowsBorder},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i.buttons,(a,y)=>(t.openBlock(),t.createElementBlock("div",{class:"button-option-multi",style:t.normalizeStyle([{height:i.height},i.selectedOption==a?{borderColor:i.colorOptionActive,color:i.colorFont+"!important",background:i.backgroundOptionActive}:{borderColor:i.colorOptionDisable,color:"grey !important"}]),key:y,onClick:f=>(i.selectedOption=a,c.clickEmitEvent(a))},t.toDisplayString(a),13,$Ot))),128))]),_:1},8,["arrows","background-color","px-scroll","scroll-color","arrows-position","arrowsScrollHide","arrows-background","arrows-container-bg-l","arrows-container-bg-r","arrows-margin","arrows-radius","arrows-border"])])):t.createCommentVNode("",!0)],512)}const iA=zOt(rA,[["render",jOt],["__scopeId","data-v-8a86dfaf"]]),K_a="",Q_a="";function UOt(){return{backgroundColor:"#2e3b46",borderColor:"rgba(255, 255, 255, 0.20)",infoBorderColor:"rgba(255, 255, 255, 0.20)",height:"40px",padding:"5px 12px",textFontFamily:"'Poppins-Regular'"}}const eba="",GOt={comfiltersContainer:"_comfiltersContainer_xl2as_1",comfiltersContainer1232:"_comfiltersContainer1232_xl2as_1",closeFiltersPc:"_closeFiltersPc_xl2as_1",comtextleyemdmultipleleagues:"_comtextleyemdmultipleleagues_xl2as_1",comtextleyemdmultipleleagues380:"_comtextleyemdmultipleleagues380_xl2as_1",comfiltersContainer760:"_comfiltersContainer760_xl2as_1",comfiltersContainer460:"_comfiltersContainer460_xl2as_1",comcontainerSection:"_comcontainerSection_xl2as_1",comcontainerSection1232:"_comcontainerSection1232_xl2as_1",comcontainerSection960:"_comcontainerSection960_xl2as_1",comcontainerSection320:"_comcontainerSection320_xl2as_1",comcontainerSection350:"_comcontainerSection350_xl2as_1",comtemplateLosMejores1:"_comtemplateLosMejores1_xl2as_1",comtemplateLosMejores11232:"_comtemplateLosMejores11232_xl2as_1",comtemplateLosMejores1960:"_comtemplateLosMejores1960_xl2as_1",comtemplateLosMejores1420:"_comtemplateLosMejores1420_xl2as_1",comtemplateLosMejores1320:"_comtemplateLosMejores1320_xl2as_1",comtemplateLosMejores1540:"_comtemplateLosMejores1540_xl2as_1",comtemplateLosMejores1350:"_comtemplateLosMejores1350_xl2as_1",comtopFiltersParent:"_comtopFiltersParent_xl2as_1",comtopFiltersParent1232:"_comtopFiltersParent1232_xl2as_1",comtopFiltersParent960:"_comtopFiltersParent960_xl2as_1",comtopFiltersParent460:"_comtopFiltersParent460_xl2as_1",comtopFiltersParent420:"_comtopFiltersParent420_xl2as_1",comcontainerTheBest:"_comcontainerTheBest_xl2as_1",comcontainerTheBest1232:"_comcontainerTheBest1232_xl2as_1",comcontainerTheBest960:"_comcontainerTheBest960_xl2as_1",comcontainerTheBest320:"_comcontainerTheBest320_xl2as_1",comtitleSection:"_comtitleSection_xl2as_1",comtitleSection540:"_comtitleSection540_xl2as_1",comcontainerTables:"_comcontainerTables_xl2as_1",comcontainerTables960:"_comcontainerTables960_xl2as_1",comcontainerTables760:"_comcontainerTables760_xl2as_1",comcontainerTables320:"_comcontainerTables320_xl2as_1",comtoniKroosWrapper:"_comtoniKroosWrapper_xl2as_1",comtoniKroosWrapper1080:"_comtoniKroosWrapper1080_xl2as_1",comtoniKroosWrapper975:"_comtoniKroosWrapper975_xl2as_1",comtoniKroosWrapper760:"_comtoniKroosWrapper760_xl2as_1",comtoniKroosWrapper420:"_comtoniKroosWrapper420_xl2as_1",comtoniKroosWrapper320:"_comtoniKroosWrapper320_xl2as_1",frameChild:"_frameChild_xl2as_1",filtros:"_filtros_xl2as_1",groupParent:"_groupParent_xl2as_1",shapeIcon:"_shapeIcon_xl2as_1",btnFilters:"_btnFilters_xl2as_1",btnFiltersPC:"_btnFiltersPC_xl2as_1",comquitarFiltros:"_comquitarFiltros_xl2as_1",comquitarFiltros730:"_comquitarFiltros730_xl2as_1",comquitarFiltros480:"_comquitarFiltros480_xl2as_1",comquitarFiltros380:"_comquitarFiltros380_xl2as_1",btnCloseFilters:"_btnCloseFilters_xl2as_1",commejoresJugadores:"_commejoresJugadores_xl2as_1",commejoresJugadores730:"_commejoresJugadores730_xl2as_1",commejoresJugadores480:"_commejoresJugadores480_xl2as_1",mejoresJugadoresSM:"_mejoresJugadoresSM_xl2as_1",toniKroos:"_toniKroos_xl2as_1",teamBar:"_teamBar_xl2as_1",commenuSection:"_commenuSection_xl2as_1",commenuSection960:"_commenuSection960_xl2as_1",comcontainerMenu:"_comcontainerMenu_xl2as_1",comcontainerMenu760:"_comcontainerMenu760_xl2as_1",containerFilters:"_containerFilters_xl2as_1",teamBarParent:"_teamBarParent_xl2as_1",comtopFilters:"_comtopFilters_xl2as_1",comtopFilters1232:"_comtopFilters1232_xl2as_1",comtopFilters420:"_comtopFilters420_xl2as_1",comtopFilters460:"_comtopFilters460_xl2as_1",comlosMejores:"_comlosMejores_xl2as_1",comlosMejores380:"_comlosMejores380_xl2as_1",comlosMejores530:"_comlosMejores530_xl2as_1",comlosMejores730:"_comlosMejores730_xl2as_1",commenuSectionHeader:"_commenuSectionHeader_xl2as_1",commenuSectionHeader1232:"_commenuSectionHeader1232_xl2as_1",commenuSectionHeader960:"_commenuSectionHeader960_xl2as_1",commenuSectionHeader730:"_commenuSectionHeader730_xl2as_1",comdropdown:"_comdropdown_xl2as_1",comdropdown730:"_comdropdown730_xl2as_1",comdropdown1:"_comdropdown1_xl2as_1",comdropdown1730:"_comdropdown1730_xl2as_1",comdropdownParent:"_comdropdownParent_xl2as_1",comdropdownParent730:"_comdropdownParent730_xl2as_1",commenuSectionParentHeader:"_commenuSectionParentHeader_xl2as_1",commenuSectionParentHeader1232:"_commenuSectionParentHeader1232_xl2as_1",commenuSectionParentHeader960:"_commenuSectionParentHeader960_xl2as_1",commenuSectionParentHeader730:"_commenuSectionParentHeader730_xl2as_1",commenuSectionParentHeader430:"_commenuSectionParentHeader430_xl2as_1",comdescubreVideos:"_comdescubreVideos_xl2as_1",comdescubreVideos1232:"_comdescubreVideos1232_xl2as_1",comdescubreVideos960:"_comdescubreVideos960_xl2as_1",allCategories:"_allCategories_xl2as_1",containerScountingBtncom:"_containerScountingBtncom_xl2as_3",btnDeleteAplicacom:"_btnDeleteAplicacom_xl2as_13",SearchBtnBarcom:"_SearchBtnBarcom_xl2as_33",btnLeyendTxtcom:"_btnLeyendTxtcom_xl2as_52",BtnSearchScountingcom:"_BtnSearchScountingcom_xl2as_61",containerPredefinedcom:"_containerPredefinedcom_xl2as_85",containerPredefinedScountingcom:"_containerPredefinedScountingcom_xl2as_92",titleContainerPredefinedcom:"_titleContainerPredefinedcom_xl2as_100",subtitleContainerPredefinedcom:"_subtitleContainerPredefinedcom_xl2as_111"},HOt=t.ref(UOt()),WOt={components:{GSCTableHeader:pq,GscSwitchComponent:iA,GSCFilterperteam:$Nt,GSCFilters:YW,GSCExpandedInfo:Iq,GSCLabel:xOt,GSCSeasonSelect:tI,GSCTopCategory:mOt,GSCTournamentSelect:KM,GSCRowTable:_q},computed:{...GBt.computed,filterChangePredefined(){return this.filtersPredefinedF},filterChange(){const e={zone:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],playingAs:[1,2],sections:[1,2,3,4,5,6],matchResult:[1,2,3],arrayAgeRange:[1,60],typeZone:1,setNationalitiesIds:this.fVnationalities,setPositionsIds:[1,2,3,4,5,6,7,8,9],booleanAreNationalTeamsVisible:!1,setAvailableNationalTeamsPlayersIds:new Set},r=JSON.stringify(e);if(JSON.stringify(this.filters)!=r)return r},filterGolstats(){return this.FVfilterGolstats},filterButtonProps(){return{...HOt.value}}},props:{timeLiveComparativeAvanced:{type:Number,default:6e4},currentSeasonId:{type:Number,default:0},typeData:{type:Number,default:1},canPlayVideos:{type:Boolean,default:!1},teamId:{type:Number,default:0},gameId:{type:Number,default:0},isWidget:{type:Boolean,default:!1},teamWidget:{type:Number,default:0},game:{type:Object,default:()=>({})},teamselect:{type:Number,default:0},seasonActive:{type:Number,default:0},defaultSection:{type:String,default:"Jugadores"},backgroundOdd:{type:String,default:"#172531"},backgroundEven:{type:String,default:"#0d1d29"},tournamentsApiUrl:{type:String,default:""}},watch:{async seasonActive(){if(this.seasonActive!=0){this.teams=[];const e=await this.fetchTeams();for(let r=0;r<e.teams.length;r++)this.teams.push({id:e.teams[r].team_id,team:e.teams[r].colloquial_name,logo:e.teams[r].logo})}}},setup(){const e=t.ref("myDivRefTopsFull"),{elementSize:r}=M_(e);return{myDivRefTopsFull:e,elementSize:r}},data(){return{elegibilidadArray:[],updateFilterTeamsScouting:0,modifidFiltersFlag:!1,showfiltersPc:!1,positions:[{name:"Portero",fullname:"POR"},{name:"Defensa central",fullname:"DFC"},{name:"Lateral por izquierda",fullname:"LI"},{name:"Lateral por derecha",fullname:"LD"},{name:"Volante por izquierda",fullname:"VI"},{name:"Volante por derecha",fullname:"VD"},{name:"Volante defensivo",fullname:"VDF"},{name:"Volante ofensivo",fullname:"VO"},{name:"Delantero",fullname:"DEL"},{name:"Desconocida",fullname:"Desc"}],universeData:{minutesPlayed:0,percentMinutesPlayed:0,lastMonths:Array.from({length:24},(e,r)=>r+1),selectedMonth:12,statistics:{totals:!0,averagePerGame:!1,averagePerMinute:!1}},FVbooleanAreNationalTeamsVisible:!1,teamsscouting:[],filterScounting:{tournaments:[1],seasonId:0,categories:[{name:"Goles",ids:[12]},{name:"Asistencias",ids:[10]},{name:"Participaciones en gol",ids:[27]},{name:"Cabeceos en área rival",ids:[330,333,423,577,578,331,334,424]},{name:"Tiros a gol totales",ids:[91,95,92,93,96,97]}],range_age:[10,40],age_or_year:1,year:1989,nationalities:[3,4,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,221,84,85,86,87,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,222,223,224,225,226,227,228,229,230,231,232,233,234,236,237,239],elegibles:[],minutes_played:211,minutes_played_avg:40,last_months:12,type_stats:1,positions:[1,2,3,4,5,6,7,8,9,10],fouls:!1,yellow_cards:!1,red_cards:!1},expand:!1,playerexpand:0,arrayFiltersPlays:[],filtersPredefinedF:{},categoryPredefinedActive:!1,categoryPredefined:0,typeTable:0,keyUpdateFilter:0,loadingActive:!1,isTeam:!1,arrayPredefinedFilters:[],arrayCategoryFilter:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23],arrayCategoryFilterFull:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23],FVsetAvailableNationalTeamsPlayersIds:new Set,showOnlyCategories:!1,showFullCategory:0,categoryName:"",showFullTable:!1,expansionPanelModePropsTypePlays:{isExpansionPanel:!1,templateProps:{boxShadow:"0px 4px 4px rgba(0, 0, 0, 0)",width:"400px",maxWidth:"400px"},expansionPanelProps:{width:"400px",borderRadius:"8px"},fieldComponentProps:{widthContainer:"400px"}},expansionPanelModeProps:{isExpansionPanel:!1,templateProps:{boxShadow:"0px 4px 4px rgba(0, 0, 0, 0)"},expansionPanelProps:{width:"400px",borderRadius:"8px",fontFamily:"'Poppins-Regular'"},fieldComponentProps:{widthContainer:"100%",title:"Elige el área o zona de cancha",titleFontSize:"13px"}},expansionPanelModePropsMobil:{isExpansionPanel:!0,templateProps:{boxShadow:"0px 4px 4px rgba(0, 0, 0, 0)",padding:"20px 0"},expansionPanelProps:{width:"300px",borderRadius:"8px",height:"45px",fontColor:"rgba(255,255,255, 0.7)",textFontSize:"14px",textFontFamily:"'Poppins-Regular'",padding:"0px 10px"},fieldComponentProps:{widthContainer:"100%",title:"Elige el área o zona de cancha",titleFontSize:"12px",widthField:268,widthFieldGrid:"268px",heightField:180,heightFieldGrid:"180px",heightContainer:"280px"}},expansionPanelModePropsMobil270:{isExpansionPanel:!0,templateProps:{boxShadow:"0px 4px 4px rgba(0, 0, 0, 0)",padding:"20px 0"},expansionPanelProps:{width:"270px",borderRadius:"8px",height:"45px",fontColor:"rgba(255,255,255, 0.7)",textFontSize:"14px",textFontFamily:"'Poppins-Regular'",padding:"0px 10px"},fieldComponentProps:{widthContainer:"100%",title:"Elige el área o zona de cancha",titleFontSize:"12px",widthField:268,widthFieldGrid:"268px",heightField:180,heightFieldGrid:"180px",heightContainer:"280px"}},filters:{zone:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],playingAs:[1,2],sections:[1,2,3,4,5,6],matchResult:[1,2,3],arrayAgeRange:[1,60],typeZone:1,setNationalitiesIds:this.setNationalitiesIds,setPositionsIds:[1,2,3,4,5,6,7,8,9],booleanAreNationalTeamsVisible:!1,setAvailableNationalTeamsPlayersIds:new Set},detaildProductivityCategories:{offensive:{title:"Ofensivo",categories:[{name:"Goles",isSelected:!1,id:[12]},{name:"Asistencias",isSelected:!1,id:[10]},{name:"Participaciones en gol",isSelected:!1,id:[27]},{name:"Cabeceos en área rival",isSelected:!1,id:[330,333,423,577,578,331,334,424]},{name:"Tiros a gol totales",isSelected:!1,id:[91,95,92,93,96,97]},{name:"Tiros a gol con destino a portería",isSelected:!1,id:[91,95]},{name:"Tiros a gol fuera del área",isSelected:!1,id:[94]},{name:"Tiros a gol fuera del área con destino a portería",isSelected:!1,id:[95]},{name:"Tiros a gol dentro del área",isSelected:!1,id:[90]},{name:"Tiros a gol dentro del área con destino a portería",isSelected:!1,id:[91]},{name:"Centros por izquierda",isSelected:!1,id:[13]},{name:"Centros por izquierda acertados",isSelected:!1,id:[98,101,104,105]},{name:"Centros por derecha",isSelected:!1,id:[25]},{name:"Centros por derecha acertados",isSelected:!1,id:[109,112,115,116]},{name:"1vs1 exitosos ofensivos",isSelected:!1,id:[4]},{name:"1vs1 que terminan en gol",isSelected:!1,id:[88]}]},defensive:{title:"Defensivo",categories:[{name:"Bálones ganados en área propia",isSelected:!1,id:[234,241,281,288,399,401,211,231,238,244,280,287,294]},{name:"Cabeceo en área propia",isSelected:!1,id:[211,231,238,244,280,287,294]},{name:"1vs1 defensivos exitosos",isSelected:!1,id:[5]},{name:"Rechaces",isSelected:!1,id:[34]}]},possession:{title:"Posesión",categories:[{name:"Bálones recuperados totales",isSelected:!1,id:[222,223,224,225]},{name:"Bálones recuperados 1/4 de cancha",isSelected:!1,id:[222]},{name:"Bálones recuperados 2/4 de cancha",isSelected:!1,id:[223]},{name:"Bálones recuperados 3/4 de cancha",isSelected:!1,id:[224]},{name:"Bálones recuperados 4/4 de cancha",isSelected:!1,id:[225]},{name:"Pases acertados",isSelected:!1,id:[213,214,215,216]},{name:"Pases acertados en 1/4 de cancha",isSelected:!1,id:[213]},{name:"Pases acertados en 2/4 de cancha",isSelected:!1,id:[214]},{name:"Pases acertados en 3/4 de cancha",isSelected:!1,id:[215]},{name:"Pases acertados en 4/4 de cancha",isSelected:!1,id:[216]}]},offensesConditions:{areYellowCardSelected:!1,areRedCardSelected:!1,areFoulsCommittedSelected:!1}},detailsObject:{playingAs:[{name:"Local",isSelected:!0},{name:"Visitante",isSelected:!0}],gameSections:[{text:"0-15",value:1,isSelected:!0},{text:"16-30",value:2,isSelected:!0},{text:"31-45",value:3,isSelected:!0},{text:"46-60",value:4,isSelected:!0},{text:"61-75",value:5,isSelected:!0},{text:"76-90",value:6,isSelected:!0}]},nameLeagueSelected:"",categoriesPlaysTypes:{offensive:{title:"Ofensivo",categories:[{name:"Goles",isSelected:!0,id:1},{name:"Tiros a gol",isSelected:!0,id:6},{name:"Tiros a gol con destino a portería",isSelected:!0,id:7},{name:"Asistencias",isSelected:!0,id:4},{name:"Centros",isSelected:!0,id:10},{name:"Centros acertados",isSelected:!0,id:11},{name:"Participaciones en gol",isSelected:!0,id:5},{name:"1vs1 exitosos ofensivos",isSelected:!0,id:12},{name:"1vs1 exitosos ofensivos que terminan en gol",isSelected:!0,id:13},{name:"Balones ganados en área rival",isSelected:!0,id:17},{name:"Cabeceos en área rival",isSelected:!0,id:8},{name:"Tiros de esquina",isSelected:!0,id:23}]},defensive:{title:"Defensivo",categories:[{name:"1vs1 defensivos exitosos",isSelected:!0,id:14},{name:"Cabeceo en área propia",isSelected:!0,id:9},{name:"Balones ganados en área propia",isSelected:!0,id:16},{name:"Rechaces",isSelected:!0,id:15},{name:"Atajadas",isSelected:!0,id:22}]},possession:{title:"Posesión",categories:[{name:"Pases acertados",isSelected:!0,id:2},{name:"Balones recuperados en disputa",isSelected:!0,id:3}]},offenses:{title:"Infracciones",categories:[{name:"Faltas cometidas",isSelected:!0,id:18},{name:"Faltas recibidas",isSelected:!0,id:19},{name:"Tarjetas amarillas",isSelected:!0,id:20},{name:"Tarjetas rojas",isSelected:!0,id:21}]},offensesConditions:{areYellowCardSelected:!1,areRedCardSelected:!1,areFoulsCommittedSelected:!1}},categoriesDefault:[{id:1,name:"Goles",isSelected:!1},{id:2,name:"Pases acertados",isSelected:!1},{id:23,name:"Tiros de Esquina",isSelected:!1},{id:3,name:"Balones recuperados en disputa",isSelected:!1},{id:4,name:"Asistencias",isSelected:!1},{id:5,name:"Participaciones en gol",isSelected:!1},{id:6,name:"Tiros a gol",isSelected:!1},{id:7,name:"Tiros a gol que llegaron a la portería",isSelected:!1},{id:8,name:"Cabeceos en área rival",isSelected:!1},{id:9,name:"Cabeceos en área propia",isSelected:!1},{id:10,name:"Centros",isSelected:!1},{id:11,name:"Centros acertados",isSelected:!1},{id:12,name:"1vs1 exitosos ofensivos",isSelected:!1},{id:13,name:"1vs1 exitosos ofensivos que terminaron en gol",isSelected:!1},{id:14,name:"1vs1 defensivos exitoso",isSelected:!1},{id:15,name:"Rechaces",isSelected:!1},{id:16,name:"Balones ganados en área propia",isSelected:!1},{id:17,name:"Balones ganados en área rival",isSelected:!1},{id:18,name:"Faltas cometidas",isSelected:!1},{id:19,name:"Faltas recibidas",isSelected:!1},{id:20,name:"Tarjetas amarillas",isSelected:!1},{id:21,name:"Tarjetas rojas",isSelected:!1},{id:22,name:"Atajadas",isSelected:!1}],seasonsFilterSelected:0,tournamentsToFilter:[{name:"Liga MX",logo:"https://az755631.vo.msecnd.net/tournaments/liga_mx.png",isSelected:!0,id:1,show_logos:1,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1772,type:0},{name:"Clausura 2023",related_seasons:[{type:2,id:1745},{type:1,id:1746}],id:1694,type:0},{name:"Apertura 2022",related_seasons:[{type:2,id:1591},{type:1,id:1594}],id:1535,type:0},{name:"Grita Mexico C22",related_seasons:[{type:2,id:1520},{type:1,id:1525}],id:1476,type:0},{name:"Grita Mexico A21",related_seasons:[{type:2,id:1446},{type:1,id:1456}],id:1401,type:0},{name:"Guard1anes Clausura 2021",related_seasons:[{type:2,id:1382},{type:1,id:1383}],id:1325,type:0},{name:"Guard1anes 2020",related_seasons:[{type:2,id:1311},{type:1,id:1316}],id:1275,type:0},{name:"Clausura 2020",related_seasons:[],id:1239,type:0},{name:"Apertura 2019",related_seasons:[{type:1,id:1231}],id:1155,type:0},{name:"Clausura 2019",related_seasons:[{type:1,id:1135}],id:1093,type:0},{name:"Apertura 2018",related_seasons:[{type:1,id:1075}],id:1002,type:0}]},{name:"Liga MX Femenil",logo:"https://az755631.vo.msecnd.net/tournaments/femenil_mx.png",isSelected:!0,id:1001,show_logos:1,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1777,type:0},{name:"Clausura 2023",related_seasons:[{type:1,id:1747}],id:1696,type:0},{name:"Apertura 2022",related_seasons:[{type:1,id:1655}],id:1539,type:0},{name:"Grita Mexico C22",related_seasons:[{type:1,id:1523}],id:1485,type:0},{name:"Grita Mexico A21",related_seasons:[{type:1,id:1458}],id:1402,type:0},{name:"Guard1anes Clausura 2021",related_seasons:[{type:1,id:1384}],id:1323,type:0},{name:"Guard1anes 2020",related_seasons:[{type:1,id:1318}],id:1283,type:0},{name:"Clausura 2020",related_seasons:[],id:1241,type:0},{name:"Apertura 2019",related_seasons:[{type:1,id:1227}],id:1157,type:0},{name:"Clausura 2019",related_seasons:[{type:1,id:1132}],id:1095,type:0},{name:"Apertura 2018",related_seasons:[{type:1,id:1072}],id:1004,type:0},{name:"Clausura 2018",related_seasons:[{type:1,id:1237}],id:1236,type:0}]},{name:"Liga Expansion MX",logo:"https://az755631.vo.msecnd.net/tournaments/expansion_mx.png",isSelected:!0,id:1071,show_logos:1,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1776,type:0},{name:"Clausura 2023",related_seasons:[{type:2,id:1742},{type:1,id:1748}],id:1695,type:0},{name:"Apertura 2022",related_seasons:[{type:2,id:1598},{type:1,id:1618}],id:1544,type:0},{name:"Grita Mexico C22",related_seasons:[{type:2,id:1515},{type:1,id:1519}],id:1484,type:0},{name:"Grita Mexico A21",related_seasons:[{type:2,id:1454},{type:1,id:1463}],id:1408,type:0},{name:"Guard1anes Clausura 2021",related_seasons:[{type:2,id:1378},{type:1,id:1380}],id:1327,type:0},{name:"Guard1anes 2020",related_seasons:[{type:2,id:1315},{type:1,id:1317}],id:1287,type:0}]},{name:"Sub-23",logo:null,isSelected:!0,id:1143,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1785,type:0}]},{name:"Sub-18",logo:null,isSelected:!0,id:1096,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1782,type:0},{name:"Clausura 2023",related_seasons:[{type:1,id:1751}],id:1714,type:0},{name:"Apertura 2022",related_seasons:[{type:1,id:1593}],id:1543,type:0},{name:"Grita Mexico C22",related_seasons:[{type:1,id:1522}],id:1487,type:0}]},{name:"Sub-16",logo:null,isSelected:!0,id:1095,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1783,type:0},{name:"Clausura 2023",related_seasons:[{type:1,id:1750}],id:1715,type:0},{name:"Apertura 2022",related_seasons:[{type:1,id:1652}],id:1541,type:0},{name:"Grita Mexico C22",related_seasons:[{type:1,id:1527}],id:1488,type:0}]}],isCup:!1,arrayPredefinedOrigin:[],indexPredefinedFiltersSelected:0,predefinedFiltersMatchLapse:[],predefinedFiltersPlayingAs:[],predefinedFiltersSections:[],updateTables:0,updateTablesfull:0,optionSelected:"Jugadores",optionSelectedSubmenu:"Todas las jugadas",tournamentsUrl:"https://17zyhpyc7c.execute-api.us-west-2.amazonaws.com/prod/tournaments",teamsUrl:"https://d2oco6mqmc.execute-api.us-west-2.amazonaws.com/prod/teamsBySeason/",urlFilter:"https://cqqxaonvm6.execute-api.us-east-2.amazonaws.com/prod/gs2/tops/filters?categories=",retries:3,teams:[],updateFilterGolstats:0,updateFilterPlaytypesGolstats:0,arrayTournaments:[],arraySeasons:{},seasonBytournament:[],updateFilterTeamsScouting:0,filtersTypes:er,token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",fVnationalities:new Set,fVzone:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],fVplayingAs:[1,2],fVsections:[1,2,3,4,5,6],fVmatchResult:[1,2,3],fVarrayAgeRange:[10,40],FVeligible:[],FVYear:1900,keyTournamentValue:0,fVtypeZone:2,fVsetPositionsIds:[1,2,3,4,5,6,7,8,9],currentIndex:-1,delay:800,teamselectrec:0,tournamentSelected:0,tournamentSelectedObj:{},FVfilterGolstats:[],updateFilterField:0,rowScoutingData:[],openMenuMobil:!1,selectedTournament:{seasons:[]},selectedSeasonObj:{}}},methods:{getnameshort(e){var r=e.split(","),i=r[0].split(" "),B=r[1].trim().split(" "),D="";i.length==2||i.length==1?i[0].length<4?D=i[0]+" "+i[1]:D=i[0]:i.length==3?D=i[0]+" "+i[1]:i.length==4&&(D=i[1]+" "+i[2]+" "+i[3]);var c=B[B.length-1]!=""?B[B.length-1].charAt(0):B[B.length-2]?B[B.length-2].charAt(0):"";return D=D.replace(",",""),c+". "+D},setUpTournamentsToFilter(){this.tournamentsToFilter.forEach(e=>{const r=e.id===this.selectedTournament.id;e.isSelected=r,e.isDefaultTournament=r})},async onClickDeleteFilter(){if(this.optionSelectedSubmenu=="Predeterminados")this.resetPredefinedTeamAll();else{this.rowScoutingData=[];for(let B=0;B<this.detaildProductivityCategories.offensive.categories.length;B++)this.detaildProductivityCategories.offensive.categories[B].isSelected=!1;for(let B=0;B<this.detaildProductivityCategories.defensive.categories.length;B++)this.detaildProductivityCategories.defensive.categories[B].isSelected=!1;for(let B=0;B<this.detaildProductivityCategories.possession.categories.length;B++)this.detaildProductivityCategories.possession.categories[B].isSelected=!1;for(let B=0;B<this.detaildProductivityCategories.offensesConditions.length;B++)this.detaildProductivityCategories.offensesConditions[B]=!1;this.setUpTournamentsToFilter();const r=this.$refs.personalDataFilter;r.clearFilters(hd.All),r.clearFilters(hd.AGE_RANGE),r.clearFilters(hd.YEAR),r.clearFilters(hd.NATIONALITY),r.clearFilters(hd.POSITION),this.universeData.minutesPlayed=0,this.universeData.percentMinutesPlayed=0,this.universeData.lastMonths=Array.from({length:24},(B,D)=>D+1),this.universeData.statistics.totals=!0,this.universeData.statistics.averagePerGame=!1,this.universeData.statistics.percentMinutesPlayed=!1;var e=this.arrayFiltersPlays.findIndex(B=>B.type==="onFiltersTournaments");this.arrayFiltersPlays.splice(e,1);const i=await this.fetchTeamsScouting(this.currentSeasonId);this.teamselect=0,this.teamsscouting=[];for(let B=0;B<i.teams.length;B++)this.teamsscouting.push({id:i.teams[B].team_id,team:i.teams[B].colloquial_name,logo:i.teams[B].logo});setTimeout(()=>{this.modifidFiltersFlag=!1},200)}},clickOpenFilters(){this.showfiltersPc=!0},clickCloseFilters(){this.showfiltersPc=!1},async selectedSeason(e){this.seasonActive!==e.id&&(this.seasonActive=e.id,this.resetPredefinedTeamAll(),this.$emit("change-season-id",e.id))},changeTournament(e){e.id!==this.selectedTournament.id&&(this.selectedTournament=e,this.tournamentSelectedObj={propName:"id",value:e.id},this.teamselect=0,this.resetPredefinedTeamAll(),this.setUpTournamentsToFilter())},changeTournamentMovil(e){this.tournamentSelectedObj={propName:"id",value:e.id},this.seasonBytournament=e.seasons,this.teamselect=0},selectedSeasonMovil(e){this.seasonActive=e.id},setRelevantCategoriesPlayer(e){return e===1?[39,40,52,53,54,55,323,324,608,774,802]:[10,12,14,15,27,35,61,217,257,466,519,607,702,730,98,101,109,112,121,122,127,128,135,136,141,142,161,170,179,211,232,235,239,242,282,284,289,291,296,485,486,487,488]},setOpenMedia(e){this.$emit("openmedia",e)},setMediaData(e){let D=[e.id],c=e.team_id;const g={seasonId:e.season_id,isFeaturedPlayers:!1,mainSectionType:1,playListType:2,gameIds:null,playerIds:D,goalkeeperIds:[],categoryIds:this.setRelevantCategoriesPlayer(e.position),teamId:c||0,matchResult:[1,2,3],categorySingleName:"",isRivalSubject:!1,avoidCategorySingleName:!1,currentPlayIndex:0,playData:null,lastClashedGameId:null,tournamentsLastClashes:null,advancedFilter:{playListTitle:"Jugadas Relevantes"}};this.$emit("openmedia",g)},clickprofile(e){e.isTeam?this.$emit("openProfileTeam",{teamId:e.id,seasonId:this.seasonActive}):this.$emit("openProfilePlayer",{playerId:e.id,teamId:e.teamId,seasonId:this.seasonActive})},viewprofile(e,r,i){this.$emit("openProfilePlayer",{playerId:e,teamId:i,seasonId:r||this.seasonActive})},openMenuFilters(){this.openMenuMobil=!this.openMenuMobil,this.showfiltersPc=!0},clickexpand(e){this.expand=e.expand,this.playerexpand=e.id},async getScoutingData(){this.arrayFiltersPlays=[],this.loadingActive=!0;const e=$c.create({headers:{Authorization:`${this.token}`}}),{data:r}=await e.post("https://eh9nhj69z7.execute-api.us-west-2.amazonaws.com/prod/players/productivity",this.filterScounting,{headers:{"Content-Type":"application/json"}});if(this.filterScounting.tournaments.length>0){var i=this.arrayFiltersPlays.findIndex(D=>D.type==="onFiltersTournaments");i!==-1?this.arrayFiltersPlays[i].name=this.filterScounting.tournaments.length>1?"Ligas "+this.filterScounting.tournaments.length:this.nameLeagueSelected!=""?this.nameLeagueSelected:"Liga MX":this.arrayFiltersPlays.push({name:this.filterScounting.tournaments.length>1?"Ligas "+this.filterScounting.tournaments.length:this.nameLeagueSelected!=""?this.nameLeagueSelected:"Liga MX",type:"onFiltersTournaments"})}this.rowScoutingData=[];for(let D=0;D<r.length;D++){r[D];let g=r[D].dob.split("T")[0].split("-");var B={position:D+1,player_name:this.abrevName(r[D].name),player_photo:"https://az755631.vo.msecnd.net/players-profile/"+r[D].player_id+".png",total:r[D].total.toFixed(0),id:r[D].player_id,player_age:this.calcularEdad(r[D].dob),team_abrev:r[D].teams[0].acronym,team_name:r[D].teams[0].team_name,team_logo:"https://az755631.vo.msecnd.net/teams-80/"+r[D].teams[0].team_id+".png",player_position:r[D].position_id,player_country_flag:"https://az755631.vo.msecnd.net/flags/"+r[D].nationality_id+".jpg",date:g[2]+"."+g[1]+"."+g[0].substring(2,4),team_id:r[D].team_id,nationality_name:zq[r[D].nationality_id],player_games:r[D].games_played,player_min:r[D].minutes_played,league_name:r[D].tournament_name,seasons:r[D].seasons,season_id:r[D].seasons[0]};this.rowScoutingData.push(B)}if(this.seasonsFilterSelected!=0){const D=await this.fetchTeamsScouting(this.seasonsFilterSelected);this.teamselect=0,this.teamselectrec=0,this.teamsscouting=[];for(let c=0;c<D.teams.length;c++)this.teamsscouting.push({id:D.teams[c].team_id,team:D.teams[c].colloquial_name,logo:D.teams[c].logo})}this.loadingActive=!1},abrevName(e){var r=e.split(","),i=r[0].split(" "),B=r[1].trim().split(" "),D="";i.length==2||i.length==1?i[0].length<4?D=i[0]+" "+i[1]:D=i[0]:i.length==3?D=i[0]+" "+i[1]:i.length==4&&(D=i[1]+" "+i[2]+" "+i[3]);var c=B[B.length-1]!=""?B[B.length-1].charAt(0):B[B.length-2]?B[B.length-2].charAt(0):"";D=D.replace(",","");var g=c+". "+D;return g},calcularEdad(e){var r=new Date(e),i=new Date,B=i-r,D=Math.floor(B/(1e3*60*60*24*365.25));return D},async onFiltersTournaments(e){this.modifidFiltersFlag=!0;var r=[];for(let i=0;i<e.length;i++)e[i].isSelected&&r.push(e[i].id);if(r.length==0&&(r=[1]),r.length==1)for(let i=0;i<e.length;i++)e[i].isSelected&&(this.nameLeagueSelected=e[i].name,this.seasonsFilterSelected=e[i].seasons[0].id);else this.seasonsFilterSelected=0,r.length>0&&(this.nameLeagueSelected=r.length+" Ligas");this.filterScounting.tournaments=r,this.filterScounting.seasonId=e[0].seasons[0].id},onFiltersPersonalData(e){if(this.modifidFiltersFlag=!0,e.hasOwnProperty("ageByRange")){const B=e.ageByRange.min==0?10:e.ageByRange.min,D=e.ageByRange.max==0?40:e.ageByRange.max;this.filterScounting.range_age=[B,D],this.filterScounting.age_or_year=1}else this.filterScounting.range_age=[];e.hasOwnProperty("year")?(this.filterScounting.year=e.year,this.filterScounting.age_or_year=0):this.filterScounting.year=0;var r=[];if(e.hasOwnProperty("nationalities")){for(let B=0;B<e.nationalities.length;B++)e.nationalities[B].isSelected&&r.push(e.nationalities[B].id);r.length==0&&(r=[3,4,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,221,84,85,86,87,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,222,223,224,225,226,227,228,229,230,231,232,233,234,236,237,239])}this.filterScounting.elegibles=[],e.hasOwnProperty("eligibility")&&(this.filterScounting.elegibles=[e.eligibility[0].id]);var i=[];for(let B=0;B<e.positions.length;B++)e.positions[B].isSelected&&i.push(e.positions[B].id);i.length==0&&(i=[1,2,3,4,5,6,7,8,9,10]),this.filterScounting.positions=i,this.filterScounting.nationalities=r},onFiltersUniverse(e){this.modifidFiltersFlag=!0,this.filterScounting.minutes_played=Number(e.minutesPlayed),this.filterScounting.last_months=Number(e.lastMonths),this.filterScounting.minutes_played_avg=Number(e.percentMinutesPlayed),this.filterScounting.type_stats=e.statistics.averagePerGame?3:e.statistics.averagePerMinute?2:1},onFiltersProductivity(e){this.modifidFiltersFlag=!0;var r=[];for(let i=0;i<e.productivityFilters.length;i++)r[e.productivityFilters[i].priority-1]={name:e.productivityFilters[i].name,ids:e.productivityFilters[i].id};r.length==0&&(r=[]),this.filterScounting.categories=r,this.filterScounting.fouls=e.offensesConditions.areFoulsCommittedSelected,this.filterScounting.yellow_cards=e.offensesConditions.areYellowCardsSelected,this.filterScounting.red_cards=e.offensesConditions.areRedCardsSelected},onFiltersGolStats(e){if(e.length>0){var r=this.arrayFiltersPlays.findIndex(B=>B.type==="onFiltersPredefined");r!==-1?this.arrayFiltersPlays[r].name=e[0].name:this.arrayFiltersPlays.push({name:e[0].name,type:"onFiltersPredefined"}),this.filtersPredefinedF=e[0].filters}else{var i=this.arrayFiltersPlays.findIndex(B=>B.type==="onFiltersPredefined");if(this.FVfilterGolstats.length>0&&i!==-1){this.filtersPredefinedF=this.filters;for(let D=0;D<this.FVfilterGolstats.length;D++)this.FVfilterGolstats[D].isSelected=!1;var i=this.arrayFiltersPlays.findIndex(D=>D.type==="onFiltersPredefined");i!==-1&&this.arrayFiltersPlays.splice(i,1),this.updateFilterGolstats+=1}}},shouldRender(e){return e<=this.currentIndex},renderNext(){this.currentIndex++,this.currentIndex<this.categoriesDefault.length&&setTimeout(()=>{this.$nextTick(()=>{this.renderNext()})},this.delay)},async onFiltersPlaysTypes(e){if(e.length>0){this.categoryPredefinedActive=!0,this.loadingActive=!0,this.categoryPredefined=e[0].id;var r=this.arrayFiltersPlays.findIndex(B=>B.type==="onFiltersPredefined");if(this.categoriesDefault.length>0&&r!==-1){this.FVfilterGolstats=[],this.filtersPredefinedF={},this.arrayFiltersPlays.splice(r,1);var i=this.arrayFiltersPlays.findIndex(B=>B.type==="onFiltersPredefined");if(i!==-1){for(let B=0;B<this.FVfilterGolstats.length;B++)this.FVfilterGolstats[B].isSelected=!1;i!==-1&&this.arrayFiltersPlays.splice(i,1),this.updateFilterGolstats+=1}}this.updateTables+=1,setTimeout(()=>{this.loadingActive=!1},1e3),await this.getPredefinedfilters(e[0]),this.FVfilterGolstats.length>0&&(this.onFiltersGolStats([this.FVfilterGolstats[0]]),this.FVfilterGolstats[0].isSelected=!0)}else{var r=this.arrayFiltersPlays.findIndex(D=>D.type==="onFiltersPredefinedCategory");if(this.categoriesDefault.length>0&&r!==-1){this.categoryPredefinedActive=!1,this.categoryPredefined=0,this.FVfilterGolstats=[],this.filtersPredefinedF=this.filters,this.arrayFiltersPlays.splice(r,1);for(let c=0;c<this.categoriesDefault.length;c++)this.categoriesDefault[c].isSelected=!1;this.updateFilterPlaytypesGolstats+=1;var i=this.arrayFiltersPlays.findIndex(c=>c.type==="onFiltersPredefined");if(this.FVfilterGolstats.length>0&&i!==-1){for(let c=0;c<this.FVfilterGolstats.length;c++)this.FVfilterGolstats[c].isSelected=!1;i!==-1&&this.arrayFiltersPlays.splice(i,1),this.updateFilterGolstats+=1}}}},deleteCategoryFilter(){this.categoryName="",this.showFullCategory=0,this.showFullTable=!1,delete this.filters.aux},onShowFullTable(e){this.categoryName=e.categoryName,this.showFullCategory=e.category,this.showFullTable=!0,this.loadingActive=!0,setTimeout(()=>{this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,aux:this.getRandomNumber(1,1e4),booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds},this.loadingActive=!1},1e3)},getRandomNumber(e,r){return Math.floor(Math.random()*(r-e+1))+e},applyFiltersBtn(e){},onFiltersPlays(e){if(this.arrayCategoryFilter=[],this.arrayCategoryFilterFull=[],e.playsCategories.length==0){for(let i=0;i<this.categoriesPlaysTypes.offensive.categories.length;i++)this.arrayCategoryFilter.push(this.categoriesPlaysTypes.offensive.categories[i].id),this.arrayCategoryFilterFull.push(this.categoriesPlaysTypes.offensive.categories[i]);for(let i=0;i<this.categoriesPlaysTypes.defensive.categories.length;i++)this.arrayCategoryFilter.push(this.categoriesPlaysTypes.defensive.categories[i].id),this.arrayCategoryFilterFull.push(this.categoriesPlaysTypes.offensive.categories[i]);for(let i=0;i<this.categoriesPlaysTypes.possession.categories.length;i++)this.arrayCategoryFilter.push(this.categoriesPlaysTypes.possession.categories[i].id),this.arrayCategoryFilterFull.push(this.categoriesPlaysTypes.offensive.categories[i]);for(let i=0;i<this.categoriesPlaysTypes.offenses.categories.length;i++)this.arrayCategoryFilter.push(this.categoriesPlaysTypes.offenses.categories[i].id),this.arrayCategoryFilterFull.push(this.categoriesPlaysTypes.offensive.categories[i])}else for(let i=0;i<e.playsCategories.length;i++)e.playsCategories[i].isSelected&&(this.arrayCategoryFilter.push(e.playsCategories[i].id),this.arrayCategoryFilterFull.push(e.playsCategories[i]));var r=this.arrayFiltersPlays.findIndex(i=>i.type==="onFiltersPlays");this.arrayCategoryFilter.length>0&&this.arrayCategoryFilter.length!=23?this.arrayCategoryFilter.length==1?r!=-1?this.arrayFiltersPlays[r].name=this.arrayCategoryFilterFull[0].name:this.arrayFiltersPlays.push({name:this.arrayCategoryFilterFull[0].name,type:"onFiltersPlays"}):r!=-1?this.arrayFiltersPlays[r].name=this.arrayCategoryFilterFull.length+" Tipos de jugadas":this.arrayFiltersPlays.push({name:this.arrayCategoryFilterFull.length+" Tipos de jugadas",type:"onFiltersPlays"}):r!==-1&&this.arrayFiltersPlays.splice(r,1)},async deleteLabelFilter(e){var r=this.arrayFiltersPlays.findIndex(B=>B.type===e);if(r!==-1){if(e=="onFiltersTournaments"){this.rowScoutingData=[];for(let D=0;D<this.detaildProductivityCategories.offensive.categories.length;D++)this.detaildProductivityCategories.offensive.categories[D].isSelected=!1;for(let D=0;D<this.detaildProductivityCategories.defensive.categories.length;D++)this.detaildProductivityCategories.defensive.categories[D].isSelected=!1;for(let D=0;D<this.detaildProductivityCategories.possession.categories.length;D++)this.detaildProductivityCategories.possession.categories[D].isSelected=!1;for(let D=0;D<this.detaildProductivityCategories.offensesConditions.length;D++)this.detaildProductivityCategories.offensesConditions[D]=!1;this.setUpTournamentsToFilter(),this.universeData.minutesPlayed=10,this.universeData.percentMinutesPlayed=0,this.universeData.lastMonths=Array.from({length:24},(D,c)=>c+1),this.universeData.statistics.totals=!0,this.universeData.statistics.averagePerGame=!1,this.universeData.statistics.percentMinutesPlayed=!0;const B=await this.fetchTeamsScouting(this.currentSeasonId);this.teamsscouting=[];for(let D=0;D<B.teams.length;D++)this.teamsscouting.push({id:B.teams[D].team_id,team:B.teams[D].colloquial_name,logo:B.teams[D].logo});this.keyTournamentValue+=1,setTimeout(()=>{this.modifidFiltersFlag=!1},200)}if(e=="onFiltersPlays"){for(let B=0;B<this.categoriesPlaysTypes.offensive.categories.length;B++)this.categoriesPlaysTypes.offensive.categories[B].isSelected=!0;for(let B=0;B<this.categoriesPlaysTypes.defensive.categories.length;B++)this.categoriesPlaysTypes.defensive.categories[B].isSelected=!0,this.arrayCategoryFilter.push(),this.arrayCategoryFilterFull.push(this.categoriesPlaysTypes.offensive.categories[B]);for(let B=0;B<this.categoriesPlaysTypes.possession.categories.length;B++)this.categoriesPlaysTypes.possession.categories[B].isSelected=!0;for(let B=0;B<this.categoriesPlaysTypes.offenses.categories.length;B++)this.categoriesPlaysTypes.offenses.categories[B].isSelected=!0}if(e=="onFiltersField"&&(this.fVzone=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds}),e=="onFiltersPredefined"){this.filtersPredefinedF=this.filters;for(let B=0;B<this.FVfilterGolstats.length;B++)this.FVfilterGolstats[B].isSelected=!1;this.updateFilterGolstats+=1,this.resetPredefinedTeamAll()}if(e=="onFiltersPredefinedCategory"){this.categoryPredefinedActive=!1,this.categoryPredefined=0,this.FVfilterGolstats=[],this.filtersPredefinedF=this.filters;var i=this.arrayFiltersPlays.findIndex(B=>B.type==="onFiltersPredefined");i!==-1&&this.arrayFiltersPlays.splice(i,1);for(let B=0;B<this.categoriesDefault.length;B++)this.categoriesDefault[B].isSelected=!1;this.updateFilterPlaytypesGolstats+=1}e=="onFiltersDetailsTime"&&(this.detailsObject.gameSections[0].isSelected=!0,this.detailsObject.gameSections[1].isSelected=!0,this.detailsObject.gameSections[2].isSelected=!0,this.detailsObject.gameSections[3].isSelected=!0,this.detailsObject.gameSections[4].isSelected=!0,this.detailsObject.gameSections[5].isSelected=!0,this.fVsections=[1,2,3,4,5,6],this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds}),e=="onFiltersDetailsPlayingAs"&&(this.detailsObject.playingAs[0].isSelected=!0,this.detailsObject.playingAs[1].isSelected=!0,this.fVplayingAs=[1,2],this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds}),e=="onFiltersNationality"&&(this.fVnationalities.add(138),this.fVnationalities.add(222),this.fVnationalities.add(163),this.fVnationalities.add(51),this.fVnationalities.add(226),this.fVnationalities.add(10),this.fVnationalities.add(223),this.fVnationalities.add(96),this.fVnationalities.add(171),this.fVnationalities.add(198),this.fVnationalities.add(105),this.fVnationalities.add(80),this.fVnationalities.add(29),this.fVnationalities.add(74),this.fVnationalities.add(216),this.fVnationalities.add(196),this.fVnationalities.add(64),this.fVnationalities.add(155),this.fVnationalities.add(156),this.fVnationalities.add(89),this.fVnationalities.add(106),this.fVnationalities.add(81),this.fVnationalities.add(233),this.fVnationalities.add(204),this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds},this.$refs.personalDataFilterPlayers.clearFilters(hd.NATIONALITY)),e=="onFiltersPosition"&&(this.fVsetPositionsIds=[1,2,3,4,5,6,7,8,9],this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds},this.$refs.personalDataFilterPlayers.clearFilters(hd.POSITION)),e=="onFiltersAge"&&(this.fVarrayAgeRange=[10,40],this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds},this.$refs.personalDataFilterPlayers.clearFilters(hd.AGE_RANGE)),e=="onFiltersElegibility"&&this.$refs.personalDataFilterPlayers.clearFilters(hd.ELIGIBILITY),e=="onFiltersYear"&&(this.$refs.personalDataFilterPlayers.clearFilters(hd.YEAR),this.FVYear=1900,this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds})}this.arrayFiltersPlays.splice(r,1)},onFiltersField(e){e.length==0?this.fVzone=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16]:this.fVzone=e;var r=this.arrayFiltersPlays.findIndex(B=>B.type==="onFiltersField");r!=-1?this.arrayFiltersPlays[r].name=this.fVzone.length+" zonas del campo":this.arrayFiltersPlays.push({name:this.fVzone.length+" zonas del campo",type:"onFiltersField"}),[1,23,3,4,5,7,6,9,8,11,10,12,13,15,14,17,16,22].includes(this.category)?this.fVtypeZone=1:this.fVtypeZone=2,this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds},e.length!=16?(this.fVzone.length==4&&this.fVzone.includes(1)&&this.fVzone.includes(2)&&this.fVzone.includes(3)&&this.fVzone.includes(4)&&(r!=-1?this.arrayFiltersPlays[r].name="1/4 de cancha":this.arrayFiltersPlays.push({name:"1/4 de cancha",type:"onFiltersField"})),this.fVzone.length==4&&this.fVzone.includes(5)&&this.fVzone.includes(6)&&this.fVzone.includes(7)&&this.fVzone.includes(8)&&(r!=-1?this.arrayFiltersPlays[r].name="2/4 de cancha":this.arrayFiltersPlays.push({name:"2/4 de cancha",type:"onFiltersField"})),this.fVzone.length==4&&this.fVzone.includes(9)&&this.fVzone.includes(10)&&this.fVzone.includes(11)&&this.fVzone.includes(12)&&(r!=-1?this.arrayFiltersPlays[r].name="3/4 de cancha":this.arrayFiltersPlays.push({name:"3/4 de cancha",type:"onFiltersField"})),this.fVzone.length==4&&this.fVzone.includes(13)&&this.fVzone.includes(14)&&this.fVzone.includes(15)&&this.fVzone.includes(16)&&(r!=-1?this.arrayFiltersPlays[r].name="4/4 de cancha":this.arrayFiltersPlays.push({name:"4/4 de cancha",type:"onFiltersField"})),this.fVzone.length==8&&this.fVzone.includes(1)&&this.fVzone.includes(2)&&this.fVzone.includes(3)&&this.fVzone.includes(4)&&this.fVzone.includes(5)&&this.fVzone.includes(6)&&this.fVzone.includes(7)&&this.fVzone.includes(8)&&(r!=-1?this.arrayFiltersPlays[r].name="cancha propia":this.arrayFiltersPlays.push({name:"cancha propia",type:"onFiltersField"})),this.fVzone.length==8&&this.fVzone.includes(9)&&this.fVzone.includes(10)&&this.fVzone.includes(11)&&this.fVzone.includes(12)&&this.fVzone.includes(13)&&this.fVzone.includes(14)&&this.fVzone.includes(15)&&this.fVzone.includes(16)&&(r!=-1?this.arrayFiltersPlays[r].name="cancha rival":this.arrayFiltersPlays.push({name:"cancha rival",type:"onFiltersField"}))):this.arrayFiltersPlays.splice(r,1)},addFilterPlayingAS(){var e=this.arrayFiltersPlays.findIndex(r=>r.type==="onFiltersDetailsPlayingAs");e!=-1?this.fVplayingAs.length==1?this.arrayFiltersPlays[e].name=this.fVplayingAs.includes(1)?"Local":"Visitante":this.arrayFiltersPlays.splice(e,1):this.fVplayingAs.length==1&&this.arrayFiltersPlays.push({name:this.fVplayingAs.includes(1)?"Local":"Visitante",type:"onFiltersDetailsPlayingAs"})},onFiltersDetails(e){var r=[];this.filters.setNationalitiesIds=this.setNationalitiesIds;var i=[];for(let c=0;c<e.playingAs.length;c++)if(e.playingAs[c].isSelected){const g=e.playingAs[c].name=="Local"?1:2;r.push(g)}for(let c=0;c<e.gameSections.length;c++)e.gameSections[c].isSelected&&i.push(e.gameSections[c].value);this.fVsections=i,this.fVplayingAs=r;var B=this.arrayFiltersPlays.findIndex(c=>c.type==="onFiltersDetailsTime"),D="los minutos del ";this.fVsections.length!=6&&this.fVsections.length>0?(this.fVsections.includes(1)&&(D+=", 0-15"),this.fVsections.includes(2)&&(D+=", 15-30"),this.fVsections.includes(3)&&(D+=", 30-45"),this.fVsections.includes(4)&&(D+=", 45-60"),this.fVsections.includes(5)&&(D+=", 60-75"),this.fVsections.includes(6)&&(D+=", 75-90"),B!=-1?this.arrayFiltersPlays[B].name=D:this.arrayFiltersPlays.push({name:D,type:"onFiltersDetailsTime"}),this.fVsections.length==3&&this.fVsections.includes(1)&&this.fVsections.includes(2)&&this.fVsections.includes(3)&&(B!=-1?this.arrayFiltersPlays[B].name="Primer tiempo":this.arrayFiltersPlays.push({name:"Primer tiempo",type:"onFiltersDetailsTime"})),this.fVsections.length==3&&this.fVsections.includes(4)&&this.fVsections.includes(5)&&this.fVsections.includes(6)&&(B!=-1?this.arrayFiltersPlays[B].name="Segundo tiempo":this.arrayFiltersPlays.push({name:"Segundo tiempo",type:"onFiltersDetailsTime"})),this.fVsections.length==1&&this.fVsections.includes(1)&&(B!=-1?this.arrayFiltersPlays[B].name="los primeros 15 minutos del partido":this.arrayFiltersPlays.push({name:"los primeros 15 minutos del partido",type:"onFiltersDetailsTime"})),this.fVsections.length==1&&this.fVsections.includes(3)&&(B!=-1?this.arrayFiltersPlays[B].name="los últimos 15 minutos del primer tiempo":this.arrayFiltersPlays.push({name:"los últimos 15 minutos del primer tiempo",type:"onFiltersDetailsTime"})),this.fVsections.length==1&&this.fVsections.includes(4)&&(B!=-1?this.arrayFiltersPlays[B].name="los primeros 15 minutos del segundo tiempo":this.arrayFiltersPlays.push({name:"los primeros 15 minutos del segundo tiempo",type:"onFiltersDetailsTime"})),this.fVsections.length==1&&this.fVsections.includes(6)&&(B!=-1?this.arrayFiltersPlays[B].name="los últimos 15 minutos del segundo tiempo":this.arrayFiltersPlays.push({name:"los últimos 15 minutos del segundo tiempo",type:"onFiltersDetailsTime"})),this.fVsections.length==2&&this.fVsections.includes(1)&&this.fVsections.includes(2)&&(B!=-1?this.arrayFiltersPlays[B].name="los primeros 30 minutos del partido":this.arrayFiltersPlays.push({name:"los primeros 30 minutos del partido",type:"onFiltersDetailsTime"})),this.fVsections.length==2&&this.fVsections.includes(5)&&this.fVsections.includes(6)&&(B!=-1?this.arrayFiltersPlays[B].name="los últimos 30 minutos del segundo tiempo":this.arrayFiltersPlays.push({name:"los últimos 30 minutos del segundo tiempo",type:"onFiltersDetailsTime"}))):B!=-1&&this.arrayFiltersPlays.splice(B,1),this.addFilterPlayingAS(),this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds}},async resetScouting(){this.universeData.minutesPlayed=0,this.universeData.percentMinutesPlayed=0,this.universeData.lastMonths=Array.from({length:24},(B,D)=>D+1),this.universeData.statistics.totals=!0,this.universeData.statistics.averagePerGame=!1,this.universeData.statistics.percentMinutesPlayed=!1;const e=this.$refs.personalDataFilter;e.clearFilters(hd.All),e.clearFilters(hd.AGE_RANGE),e.clearFilters(hd.YEAR),e.clearFilters(hd.NATIONALITY),e.clearFilters(hd.POSITION),this.rowScoutingData=[];for(let B=0;B<this.detaildProductivityCategories.offensive.categories.length;B++)this.detaildProductivityCategories.offensive.categories[B].isSelected=!1;for(let B=0;B<this.detaildProductivityCategories.defensive.categories.length;B++)this.detaildProductivityCategories.defensive.categories[B].isSelected=!1;for(let B=0;B<this.detaildProductivityCategories.possession.categories.length;B++)this.detaildProductivityCategories.possession.categories[B].isSelected=!1;for(let B=0;B<this.detaildProductivityCategories.offensesConditions.length;B++)this.detaildProductivityCategories.offensesConditions[B]=!1;var r=this.arrayFiltersPlays.findIndex(B=>B.type==="onFiltersTournaments");this.arrayFiltersPlays.splice(r,1),this.setUpTournamentsToFilter();const i=await this.fetchTeamsScouting(this.currentSeasonId);this.teamselect=0,this.teamsscouting=[];for(let B=0;B<i.teams.length;B++)this.teamsscouting.push({id:i.teams[B].team_id,team:i.teams[B].colloquial_name,logo:i.teams[B].logo})},onFiltersData(e){var r=0,i=0;e.ageByRange&&(e.ageByRange.min==0?r=1:r=e.ageByRange.min,e.ageByRange.max==0?i=40:i=e.ageByRange.max,this.fVarrayAgeRange=[r,i]),e.year&&(this.FVYear=e.year),this.fVnationalities=new Set;let B="",D="";if(this.fVsetPositionsIds=[],e.hasOwnProperty("nationalities")){this.FVbooleanAreNationalTeamsVisible=!1,this.FVsetAvailableNationalTeamsPlayersIds=new Set;for(let _=0;_<e.nationalities.length;_++)e.nationalities[_].isSelected&&this.fVnationalities.add(e.nationalities[_].id)}if(this.FVeligible=[],e.hasOwnProperty("eligibility")){this.FVbooleanAreNationalTeamsVisible=!0;for(let _=0;_<this.elegibilidadArray.length;_++)this.FVsetAvailableNationalTeamsPlayersIds.add(this.elegibilidadArray[_])}for(let _=0;_<e.positions.length;_++)e.positions[_].isSelected&&this.fVsetPositionsIds.push(e.positions[_].id);if(e.hasOwnProperty("nationalities"))var c=e.nationalities.filter(_=>_.isSelected===!0);var g=e.positions.filter(_=>_.isSelected===!0);if(g.length==1&&(B=g[0].name),e.hasOwnProperty("nationalities")&&c.length==1&&(D=c[0].name),setTimeout(()=>{this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,elegible:this.FVeligible,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds}},1e3),this.FVbooleanAreNationalTeamsVisible){var a=this.arrayFiltersPlays.findIndex(_=>_.type==="onFiltersElegibility");a!=-1?this.arrayFiltersPlays[a].name="Elegibles":this.arrayFiltersPlays.push({name:"Elegibles",type:"onFiltersElegibility"})}else{var a=this.arrayFiltersPlays.findIndex(p=>p.type==="onFiltersElegibility");this.arrayFiltersPlays.splice(a,1)}if(this.fVsetPositionsIds.length!=9&&this.fVsetPositionsIds.length>0){var y=this.arrayFiltersPlays.findIndex(_=>_.type==="onFiltersPosition");y!=-1?this.fVsetPositionsIds.length>0?this.arrayFiltersPlays[y].name=this.fVsetPositionsIds.length>1?this.fVsetPositionsIds.length+" Posiciones de juego":"Posicion de juego "+B:this.arrayFiltersPlays.splice(y,1):this.arrayFiltersPlays.push({name:this.fVsetPositionsIds.length>1?this.fVsetPositionsIds.length+" Posiciones de juego":"Posicion de juego "+B,type:"onFiltersPosition"})}if(this.FVYear!=0&&this.FVYear!=1900&&this.FVYear){var f=this.arrayFiltersPlays.findIndex(_=>_.type==="onFiltersYear");f!=-1?this.arrayFiltersPlays[f].name=this.FVYear:this.arrayFiltersPlays.push({name:this.FVYear,type:"onFiltersYear"})}if(this.fVarrayAgeRange[0]>=e.ageLimits.min&&this.fVarrayAgeRange[1]<=e.ageLimits.max)if(this.fVarrayAgeRange[0]>e.ageLimits.min||this.fVarrayAgeRange[1]<e.ageLimits.max){var n=this.arrayFiltersPlays.findIndex(_=>_.type==="onFiltersAge");n!=-1?this.fVarrayAgeRange.length>0?this.arrayFiltersPlays[n].name=this.fVarrayAgeRange[0]!=this.fVarrayAgeRange[1]?this.fVarrayAgeRange[0]+" - "+this.fVarrayAgeRange[1]+" años":this.fVarrayAgeRange[1]+" años":this.arrayFiltersPlays.splice(n,1):this.arrayFiltersPlays.push({name:this.fVarrayAgeRange[0]!=this.fVarrayAgeRange[1]?this.fVarrayAgeRange[0]+" - "+this.fVarrayAgeRange[1]+" años":this.fVarrayAgeRange[1]+" años",type:"onFiltersAge"})}else{var n=this.arrayFiltersPlays.findIndex(p=>p.type==="onFiltersAge");n!=-1&&this.arrayFiltersPlays.splice(n,1)}if(e.hasOwnProperty("nationalities")&&this.fVnationalities.size!=e.nationalities.length&&this.fVnationalities.size>0){var v=this.arrayFiltersPlays.findIndex(_=>_.type==="onFiltersNationality");v!=-1?this.fVnationalities.size>0?this.arrayFiltersPlays[v].name=this.fVnationalities.size>1?this.fVnationalities.size+" Nacionalidades":"Nacionalidad "+D:this.arrayFiltersPlays.splice(v,1):this.arrayFiltersPlays.push({name:this.fVnationalities.size>1?this.fVnationalities.size+" Nacionalidades":"Nacionalidad "+D,type:"onFiltersNationality"})}},clickAll(e){},clickAllAll(e){},clickTeam(e){},clickTeamScouting(e){},resetFilterTeamAndPlayers(){this.filters={zone:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],playingAs:[1,2],sections:[1,2,3,4,5,6],matchResult:[1,2,3],arrayAgeRange:[1,60],typeZone:1,setNationalitiesIds:this.setNationalitiesIds,setPositionsIds:[1,2,3,4,5,6,7,8,9],setYear:this.FVYear,booleanAreNationalTeamsVisible:!1,setAvailableNationalTeamsPlayersIds:new Set}},async changeTabsGeneral(e){if(this.resetPredefinedTeamAll(),this.showfiltersPc=!0,this.optionSelected=e,this.optionSelectedSubmenu="Todas las jugadas",this.filtersPredefinedF={},this.categoryPredefinedActive=!1,this.categoryPredefined=0,e=="Equipos"&&(this.typeTable=1,this.isTeam=!0,this.updateTables+=1,this.rowScoutingData=[],this.arrayFiltersPlays=[],this.teamselect=0,this.resetFilterTeamAndPlayers(),this.resetScouting()),e=="Jugadores"&&(this.typeTable=0,this.isTeam=!1,this.teamselect=0,this.updateTables+=1,this.rowScoutingData=[],this.resetFilterTeamAndPlayers(),this.resetScouting()),e=="Scouting"){this.rowScoutingData=[],this.teamselect=0,this.arrayFiltersPlays=[];const r=await this.fetchTeamsScouting(this.currentSeasonId);this.teamsscouting=[];for(let i=0;i<r.teams.length;i++)this.teamsscouting.push({id:r.teams[i].team_id,team:r.teams[i].colloquial_name,logo:r.teams[i].logo});setTimeout(()=>{this.modifidFiltersFlag=!1},200),this.resetFilterTeamAndPlayers()}},resetPredefinedTeamAll(){var e=this.arrayFiltersPlays.findIndex(i=>i.type==="onFiltersPredefined");if(this.categoriesDefault.length>0&&e!==-1){this.categoryPredefinedActive=!1,this.categoryPredefined=0,this.FVfilterGolstats=[],this.filtersPredefinedF={},this.arrayFiltersPlays.splice(e,1);for(let i=0;i<this.categoriesDefault.length;i++)this.categoriesDefault[i].isSelected=!1;this.updateFilterPlaytypesGolstats+=1;var r=this.arrayFiltersPlays.findIndex(i=>i.type==="onFiltersPredefined");if(r!==-1){for(let i=0;i<this.FVfilterGolstats.length;i++)this.FVfilterGolstats[i].isSelected=!1;r!==-1&&this.arrayFiltersPlays.splice(r,1),this.updateFilterGolstats+=1}}},changeTabsSubmenu(e){e!="Predeterminados"?this.resetPredefinedTeamAll():this.arrayFiltersPlays=[],this.optionSelectedSubmenu=e},async fetchTournaments(){const e=$c.create({headers:{Authorization:`${this.token}`}}),{data:r}=await e.get(this.tournamentsUrl);return r},async fetchTeams(){const e=$c.create({headers:{Authorization:`${this.token}`}}),{data:r}=await e.get(this.teamsUrl+this.seasonActive);return r},async fetchTeamsScouting(e){const r=$c.create({headers:{Authorization:`${this.token}`}}),{data:i}=await r.get(this.teamsUrl+e);return i},async getPredefinedfilters(e){this.arrayPredefinedFilters=[],this.arrayPredefinedOrigin=[];var r="";e.id==1?r=this.urlFilter:r=this.urlFilter;const i=$c.create({headers:{Authorization:`${this.token}`}}),{data:B}=await i.get(r+e.id);if(Object.keys(B[0].match_lapse_combinations).forEach(v=>{this.predefinedFiltersMatchLapse[v.toString()]=B[0].match_lapse_combinations[v]}),Object.keys(B[0].playing_as_combinations).forEach(v=>{this.predefinedFiltersPlayingAs[v.toString()]=B[0].playing_as_combinations[v]}),Object.keys(B[0].field_sections_combinations).forEach(v=>{this.predefinedFiltersSections[v.toString()]=B[0].field_sections_combinations[v]}),B[0]){for(let v=0;v<B[0].filter_records.length;v++){var D=B[0].description;if(B[0].filter_records[v].field_sections!==void 0){const p=B[0].filter_records[v].field_sections.toString();(this.predefinedFiltersSections[p]||this.predefinedFiltersSections[p]=="")&&(this.predefinedFiltersSections[p]==""?D=D.replace(" [en {field_sections}]",this.predefinedFiltersSections[p]):D=D.replace("{field_sections}",this.predefinedFiltersSections[p]))}if(B[0].filter_records[v].match_lapse!==void 0){const p=B[0].filter_records[v].match_lapse.toString();(this.predefinedFiltersMatchLapse[p]||this.predefinedFiltersMatchLapse[p]=="")&&(this.predefinedFiltersMatchLapse[p]==""?D=D.replace(" [durante {match_lapse}]",this.predefinedFiltersMatchLapse[p]):D=D.replace("{match_lapse}",this.predefinedFiltersMatchLapse[p]))}if(B[0].filter_records[v].playing_as!==void 0){const p=B[0].filter_records[v].playing_as.toString();(this.predefinedFiltersPlayingAs[p]||this.predefinedFiltersPlayingAs[p]=="")&&(this.predefinedFiltersPlayingAs[p]==""?D=D.replace(" [jugando como {playing_as}]",this.predefinedFiltersPlayingAs[p]):D=D.replace("{playing_as}",this.predefinedFiltersPlayingAs[p]))}B[0].filter_records[v].section_type!==void 0&&(this.optionSelected=="Jugadores"?D=D.replace("{section_type}","Jugadores"):D=D.replace("{section_type}","Equipos")),D=D.replace(/\[/g,""),D=D.replace(/\]/g,""),D=D.replace("{category_name}",B[0].category_name);const _=D.split(": ");var c=_[1];c.length>129&&this.windowWidth>1358&&(c=c.substring(0,129),c=c+"<span id='showIDtootip' class='dots' style='width: 100px; height: 20px; background: red; z-index: 6;'>...</span>"),(!this.isCup||B[0].filter_records[v].playing_as.length===2)&&this.arrayPredefinedFilters.push({id:v,category_name:e.name,id_category:B[0].id,title:_[0]+":",text:_[1],textOrigin:B[0].description,titledots:c,filtersPredefined:{matchResult:B[0].filter_records[v].match_result,playingAs:B[0].filter_records[v].playing_as,sections:B[0].filter_records[v].match_lapse,type:this.optionSelected=="Equipos"?2:1,typeZone:B[0].type_zone,zone:B[0].filter_records[v].field_sections,end_age:0,start_age:0,nationalities:[],elegible:[],positions:[]}})}var g=[];for(let v=0;v<this.arrayPredefinedFilters.length;v++){var a=0,y=new Set,f={},n=this.arrayPredefinedFilters[v].text.replace(/\*.*?\*/,"");if(n=n.replace(/\*/g,""),n=n.replace(/ +/g," "),this.arrayPredefinedFilters[v].filtersPredefined.elegible.length>0&&(a+=1),(this.arrayPredefinedFilters[v].filtersPredefined.end_age.length!=0||this.arrayPredefinedFilters[v].filtersPredefined.start_age.length!=0)&&(a+=1),this.arrayPredefinedFilters[v].filtersPredefined.end_age!=0&&this.arrayPredefinedFilters[v].filtersPredefined.start_age!=0?f.arrayAgeRange=[this.arrayPredefinedFilters[v].filtersPredefined.start_age,this.arrayPredefinedFilters[v].filtersPredefined.end_age]:this.arrayPredefinedFilters[v].filtersPredefined.end_age==0&&this.arrayPredefinedFilters[v].filtersPredefined.start_age==0?f.arrayAgeRange=[1,60]:this.arrayPredefinedFilters[v].filtersPredefined.start_age!=0&&this.arrayPredefinedFilters[v].filtersPredefined.end_age==0?f.arrayAgeRange=[this.arrayPredefinedFilters[v].filtersPredefined.start_age,60]:f.arrayAgeRange=[1,this.arrayPredefinedFilters[v].filtersPredefined.end_age],this.arrayPredefinedFilters[v].filtersPredefined.matchResult.length!=3&&(a+=1),f.matchResult=this.arrayPredefinedFilters[v].filtersPredefined.matchResult,this.arrayPredefinedFilters[v].filtersPredefined.nationalities.length>0&&(a+=1),this.arrayPredefinedFilters[v].filtersPredefined.nationalities.length!=0){for(let _=0;_<this.arrayPredefinedFilters[v].filtersPredefined.nationalities.length;_++)y.add(this.arrayPredefinedFilters[v].filtersPredefined.nationalities[_]);f.setNationalitiesIds=y}else y.add(138),y.add(222),y.add(163),y.add(51),y.add(226),y.add(10),y.add(223),y.add(96),y.add(171),y.add(198),y.add(105),y.add(80),y.add(29),y.add(74),y.add(216),y.add(196),y.add(64),y.add(155),y.add(156),y.add(89),y.add(106),y.add(81),y.add(233),y.add(204),f.setNationalitiesIds=y;this.arrayPredefinedFilters[v].filtersPredefined.playingAs.length!=2&&(a+=1),f.playingAs=this.arrayPredefinedFilters[v].filtersPredefined.playingAs,this.arrayPredefinedFilters[v].filtersPredefined.positions.length>0&&(a+=1),this.arrayPredefinedFilters[v].filtersPredefined.positions.length>0?f.setPositionsIds=this.arrayPredefinedFilters[v].filtersPredefined.positions:f.setPositionsIds=[1,2,3,4,5,6,7,8,9],this.arrayPredefinedFilters[v].filtersPredefined.sections.length!=6&&(a+=1),this.arrayPredefinedFilters[v].filtersPredefined.sections.length>0?f.sections=this.arrayPredefinedFilters[v].filtersPredefined.sections:f.sections=[1,2,3,4,5,6],this.arrayPredefinedFilters[v].filtersPredefined.zone.length!=16&&(a+=1),this.arrayPredefinedFilters[v].filtersPredefined.zone.length>0?f.zone=this.arrayPredefinedFilters[v].filtersPredefined.zone:f.zone=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],f.typeZone=this.arrayPredefinedFilters[v].filtersPredefined.typeZone,g.push({id:v+1,name:n,isSelected:!1,value:a,filters:f})}this.FVfilterGolstats=g,this.updateFilterGolstats+=1,this.arrayPredefinedOrigin=JSON.parse(JSON.stringify(this.arrayPredefinedFilters))}},getTextFilterPredefinedCustom(){this.setDinamicFilters(this.filterEmitAux);var e=this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].textOrigin;const r=this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.zone.sort((n,v)=>n-v).toString();this.predefinedFiltersSections[r]||this.predefinedFiltersSections[r]==""?this.predefinedFiltersSections[r]==""?e=e.replace(" [en {field_sections}]",this.predefinedFiltersSections[r]):e=e.replace("{field_sections}",this.predefinedFiltersSections[r]):e=e.replace("{field_sections}",this.predefinedFiltersSections.other);var i=!1;this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.nationalities.size>0?this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.nationalities.size==this.setNationalityIds.size?(e=e.replace("[{nationality}]",""),e=e.replace("[de las nacionalidades y posiciones seleccionadas]",""),e=e.replace("[de las nacionalidades seleccionadas]","")):this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.nationalities.size==1?(e=e.replace("[{nationality}]",this.$t(`gentilicios[${[...this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.nationalities][0]}]`)),e=e.replace("[de las nacionalidades y posiciones seleccionadas]",""),e=e.replace("[de las nacionalidades seleccionadas]","")):this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.positions.size>0&&this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.positions.size!=this.setPositionsIds.size?(i=!0,e=e.replace("[{nationality}]",""),e=e.replace("[de las nacionalidades seleccionadas]","")):(e=e.replace("[{nationality}]",""),e=e.replace("[de las nacionalidades y posiciones seleccionadas]","")):(e=e.replace("[{nationality}]",""),e=e.replace("[de las nacionalidades y posiciones seleccionadas]",""),e=e.replace("[de las nacionalidades seleccionadas]","")),this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.nationalities.size>0?(i||this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.positions.size==this.setPositionsIds.size)&&(e=e.replace("[de las posiciones seleccionadas]","")):e=e.replace("[de las posiciones seleccionadas]",""),this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age!=0&&this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.end_age!=0?this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age!=this.arrayAgeRange[0]&&this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.end_age!=this.arrayAgeRange[1]?this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age==this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.end_age?(e=e.replace("[de {min_age} a {max_age} años]",""),e=e.replace("[de {min_age} años]","[de "+this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age+" años]")):(e=e.replace("[de {min_age} años]",""),e=e.replace("[de {min_age} a {max_age} años]","[de "+this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age+" a "+this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.end_age+" años]")):this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age!=this.arrayAgeRange[0]||this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.end_age!=this.arrayAgeRange[1]?this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age==this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.end_age?(e=e.replace("[de {min_age} a {max_age} años]",""),e=e.replace("[de {min_age} años]","[de "+this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age+" años]")):(e=e.replace("[de {min_age} años]",""),e=e.replace("[de {min_age} a {max_age} años]","[de "+this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age+" a "+this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.end_age+" años]")):(e=e.replace("[de {min_age} a {max_age} años]",""),e=e.replace("[de {min_age} años]","")):(e=e.replace("[de {min_age} años]",""),e=e.replace("[de {min_age} a {max_age} años]",""));const B=this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.sections.sort().toString();if(this.predefinedFiltersMatchLapse[B]||this.predefinedFiltersMatchLapse[B]=="")this.predefinedFiltersMatchLapse[B]==""?e=e.replace(" [durante {match_lapse}]",this.predefinedFiltersMatchLapse[B]):e=e.replace("{match_lapse}",this.predefinedFiltersMatchLapse[B]);else{e=e.replace("{match_lapse}"," "+this.predefinedFiltersMatchLapse.other);var D="";B.includes(1)&&(D=D+"0-15, "),B.includes(2)&&(D=D+"16-30, "),B.includes(3)&&(D=D+"31-45, "),B.includes(4)&&(D=D+"46-60, "),B.includes(5)&&(D=D+"61-75, "),B.includes(6)&&(D=D+"76-90, "),D=D.slice(0,-2),D=D.replace(/,([^,]*)$/," y $1"),e=e.replace("{match_lapse_selected}",D)}const c=this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.playingAs.sort().toString();(this.predefinedFiltersPlayingAs[c]||this.predefinedFiltersPlayingAs[c]=="")&&(this.predefinedFiltersPlayingAs[c]==""?e=e.replace(" [jugando como {playing_as}]",this.predefinedFiltersPlayingAs[c]):e=e.replace("{playing_as}",this.predefinedFiltersPlayingAs[c])),this.typeSelected==1?this.getUser.tournament==1001?this.category.id==22?e=e.replace("{section_type}","Porteras"):e=e.replace("{section_type}","Jugadoras"):this.category.id==22?e=e.replace("{section_type}","Porteros"):e=e.replace("{section_type}","Jugadores"):e=e.replace("{section_type}","Equipos"),e=e.replace(/\[/g,""),e=e.replace(/\]/g,""),e=e.replace("{category_name}",this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].category_name);const g=e.split(": ");let a=g[1].charAt(0).toUpperCase()+g[1].toLowerCase().slice(1),y=g[1].charAt(0).toUpperCase()+g[1].toLowerCase().slice(1);this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].text=a,this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].title=g[0]+":";const f=y.match(/\*/g);if(f&&f.length)if(f.length%2===0)for(let n=1;n<=f.length;n++)n%2===0||(y=y.replace("*",'<span style="color: #ffff03" >'));else y=y.replaceAll("*","");this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].titledots=y},intervalidtops(e){this.$emit("intervalidtops",e)}},mounted(){sessionStorage.getItem("sidpdfil")!==null&&sessionStorage.setItem("sidpdfil",0),this.renderNext(),this.teamId!==0&&this.optionSelected!=="Scouting"&&this.clickTeam(this.teamId),this.defaultSection!=="Jugadores"&&(this.defaultSection==="Scouting"&&this.selectedSeason(this.currentSeasonId),this.changeTabsGeneral(this.defaultSection))},async created(){try{const e=$c.create({headers:{"Content-Type":"application/json"}});e.interceptors.request.use(i=>(delete i.headers.Authorization,i));const r=await e.get("https://golstats-microservices.s3.us-west-2.amazonaws.com/eligibles/elegibles.json",{headers:{"Content-Type":"application/json"}});this.elegibilidadArray=r.data,this.fVnationalities.add(138),this.fVnationalities.add(222),this.fVnationalities.add(163),this.fVnationalities.add(51),this.fVnationalities.add(226),this.fVnationalities.add(10),this.fVnationalities.add(223),this.fVnationalities.add(96),this.fVnationalities.add(171),this.fVnationalities.add(198),this.fVnationalities.add(105),this.fVnationalities.add(80),this.fVnationalities.add(29),this.fVnationalities.add(74),this.fVnationalities.add(216),this.fVnationalities.add(196),this.fVnationalities.add(64),this.fVnationalities.add(155),this.fVnationalities.add(156),this.fVnationalities.add(89),this.fVnationalities.add(106),this.fVnationalities.add(81),this.fVnationalities.add(233),this.fVnationalities.add(204)}catch(e){throw new Error(e)}}},qOt={ref:"myDivRefTopsFull"},YOt={key:0,class:"overlay-loading"},XOt=[t.createElementVNode("div",{class:"overlay-loading__spinner"},[t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/balon_liga.png",alt:""})],-1),t.createElementVNode("div",{class:"overlay-loading__text"},"Loading...",-1)],ZOt=[t.createElementVNode("img",{src:"https://az755631.vo.msecnd.net/todoelfut/icn_close.png",style:{width:"10px"}},null,-1)],JOt={key:0,class:"cont-leyemd-multipleleagues"},KOt=t.createElementVNode("img",{class:"img-leyemd-multipleleagues",src:"http://golstatsimages.blob.core.windows.net/images-library/icn-multiples-ligas.png"},null,-1),QOt={key:0,style:{"margin-left":"10px"}},eFt=t.createElementVNode("span",null,"Tipo de Jugada",-1),tFt=t.createElementVNode("span",null,"Filtro GolStats",-1),aFt={key:3,style:{width:"100%",height:"295px"}};function nFt(e,r,i,B,D,c){t.resolveComponent("GSCTournamentSelect"),t.resolveComponent("GSCSeasonSelect");const g=t.resolveComponent("GscSwitchComponent"),a=t.resolveComponent("GSCFilterperteam"),y=t.resolveComponent("GSCFilters"),f=t.resolveComponent("GSCLabel"),n=t.resolveComponent("GSCTopCategory"),v=t.resolveComponent("GSCTableHeader"),_=t.resolveComponent("GSCRowTable"),p=t.resolveComponent("GSCExpandedInfo");return t.openBlock(),t.createElementBlock("div",qOt,[D.loadingActive?(t.openBlock(),t.createElementBlock("div",YOt,XOt)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.templateLosMejoresClass)},[t.createElementVNode("section",{class:t.normalizeClass(e.containerSectionClass),id:"container-section"},[t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.comdescubreVideosClass)},[t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.menuSectionParentHeaderClass)},[t.createCommentVNode("",!0),t.createCommentVNode("",!0)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.topFiltersParentClass)},[t.createElementVNode("div",{class:t.normalizeClass(e.topFiltersClass),id:"top-filters"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamBarParent)},[D.optionSelected!="Scouting"&&D.optionSelected!="Equipos"?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.teamBar),id:"team-bar"},[t.createVNode(a,{data:D.teams,"team-id":i.teamId,"background-color":"#172531","contain-border-radius":"8px",onClickTeam:c.clickTeam,onClickAll:c.clickAll},null,8,["data","team-id","onClickTeam","onClickAll"])],2)):t.createCommentVNode("",!0),t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.containerFilters),id:"container-filters",style:t.normalizeStyle(D.showfiltersPc?"":B.elementSize.width>760?"display: none;":"")},[t.createElementVNode("div",{class:t.normalizeClass(e.menuSectionClass),id:"menu-section"},[B.elementSize.width>760&&D.optionSelected!="Scouting"?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.closeFiltersPc),onClick:r[1]||(r[1]=(...l)=>c.clickCloseFilters&&c.clickCloseFilters(...l))},ZOt,2)):t.createCommentVNode("",!0),D.optionSelected!=="Scouting"?(t.openBlock(),t.createBlock(g,{key:1,type:2,buttons:["Todas las jugadas","Predeterminados"],"font-family":"Poppins-Regular","selected-option":D.optionSelectedSubmenu,"font-size":e.sizeTabsFontMS,width:e.sizeTabsMS,arrow:!1,borderWidth:"1px","background-option-active":"#172531",background:"#172531",height:"28px",onInput:c.changeTabsSubmenu},null,8,["selected-option","font-size","width","onInput"])):t.createCommentVNode("",!0)],2),t.createCommentVNode("",!0),t.withDirectives(t.createElementVNode("div",{class:t.normalizeClass(e.$style.btnCloseFilters),style:t.normalizeStyle(D.optionSelected==="Scouting"?"margin-top: 4%; margin-left: 1%":""),onClick:r[3]||(r[3]=(...l)=>c.openMenuFilters&&c.openMenuFilters(...l))},null,6),[[t.vShow,B.elementSize.width<760&&D.openMenuMobil]]),t.withDirectives(t.createElementVNode("div",{class:t.normalizeClass(e.containerMenuClass),id:"container-menu"},[D.optionSelectedSubmenu=="Todas las jugadas"&&D.optionSelected!="Scouting"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[B.elementSize.width>0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.withDirectives(t.createVNode(y,t.mergeProps({"button-filter-props":c.filterButtonProps},B.elementSize.width<420?D.expansionPanelModePropsMobil270:B.elementSize.width<760?D.expansionPanelModePropsMobil:D.expansionPanelModeProps,{"filter-type":D.filtersTypes.PLAYS,"show-badge-on-filter-full":!1,"onUpdate:filters":c.onFiltersPlays,filters:D.categoriesPlaysTypes,onApply:c.applyFiltersBtn}),null,16,["button-filter-props","filter-type","onUpdate:filters","filters","onApply"]),[[t.vShow,!D.showFullTable]]),(t.openBlock(),t.createBlock(y,t.mergeProps({"button-filter-props":c.filterButtonProps},B.elementSize.width<420?D.expansionPanelModePropsMobil270:B.elementSize.width<760?D.expansionPanelModePropsMobil:D.expansionPanelModeProps,{key:D.updateFilterField,"filter-type":D.filtersTypes.FIELD,"show-badge-on-filter-full":!1,"onUpdate:filters":c.onFiltersField,filters:D.fVzone}),null,16,["button-filter-props","filter-type","onUpdate:filters","filters"])),t.createVNode(y,t.mergeProps({"button-filter-props":c.filterButtonProps},B.elementSize.width<420?D.expansionPanelModePropsMobil270:B.elementSize.width<760?D.expansionPanelModePropsMobil:D.expansionPanelModeProps,{"filter-type":D.filtersTypes.DETAILS,"show-badge-on-filter-full":!1,"onUpdate:filters":c.onFiltersDetails,filters:D.detailsObject}),null,16,["button-filter-props","filter-type","onUpdate:filters","filters"]),D.optionSelected==="Jugadores"?(t.openBlock(),t.createBlock(y,t.mergeProps({key:0,ref:"personalDataFilterPlayers","button-filter-props":c.filterButtonProps},B.elementSize.width<420?D.expansionPanelModePropsMobil270:B.elementSize.width<760?D.expansionPanelModePropsMobil:D.expansionPanelModeProps,{"filter-type":D.filtersTypes.PERSONAL_DATA,"show-badge-on-filter-full":!1,season:{id:i.seasonActive,tournamentId:D.tournamentSelectedObj.value},token:D.token,"onUpdate:filters":c.onFiltersData}),null,16,["button-filter-props","filter-type","season","token","onUpdate:filters"])):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0),D.optionSelected=="Scouting"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[B.elementSize.width>0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[(t.openBlock(),t.createBlock(y,t.mergeProps({"button-filter-props":c.filterButtonProps},B.elementSize.width<420?D.expansionPanelModePropsMobil270:B.elementSize.width<760?D.expansionPanelModePropsMobil:D.expansionPanelModeProps,{"filter-type":D.filtersTypes.TOURNAMENTS,"show-badge-on-filter-full":!1,filters:D.tournamentsToFilter,key:D.keyTournamentValue,"onUpdate:filters":c.onFiltersTournaments}),null,16,["button-filter-props","filter-type","filters","onUpdate:filters"])),t.createVNode(y,t.mergeProps({"button-filter-props":c.filterButtonProps},B.elementSize.width<420?D.expansionPanelModePropsMobil270:B.elementSize.width<760?D.expansionPanelModePropsMobil:D.expansionPanelModeProps,{"filter-type":D.filtersTypes.PERSONAL_DATA,"show-badge-on-filter-full":!1,season:{id:D.filterScounting.seasonId,tournamentId:D.filterScounting.tournaments[0]},ref:"personalDataFilter","onUpdate:filters":c.onFiltersPersonalData}),null,16,["button-filter-props","filter-type","season","onUpdate:filters"]),t.createVNode(y,t.mergeProps({"button-filter-props":c.filterButtonProps},B.elementSize.width<420?D.expansionPanelModePropsMobil270:B.elementSize.width<760?D.expansionPanelModePropsMobil:D.expansionPanelModeProps,{"filter-type":D.filtersTypes.UNIVERSE,"show-badge-on-filter-full":!1,filters:D.universeData,"onUpdate:filters":c.onFiltersUniverse}),null,16,["button-filter-props","filter-type","filters","onUpdate:filters"]),t.createVNode(y,t.mergeProps({"button-filter-props":c.filterButtonProps},B.elementSize.width<420?D.expansionPanelModePropsMobil270:B.elementSize.width<760?D.expansionPanelModePropsMobil:D.expansionPanelModeProps,{"filter-type":D.filtersTypes.PRODUCTIVITY,"show-badge-on-filter-full":!1,"onUpdate:filters":c.onFiltersProductivity,filters:D.detaildProductivityCategories}),null,16,["button-filter-props","filter-type","onUpdate:filters","filters"])],64)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.BtnSearchScountingcom),onClick:r[4]||(r[4]=(...l)=>c.getScoutingData&&c.getScoutingData(...l))},"Buscar",2)],64)):t.createCommentVNode("",!0),D.optionSelectedSubmenu=="Predeterminados"&&D.optionSelected!="Scouting"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[(t.openBlock(),t.createBlock(y,t.mergeProps({"button-filter-props":c.filterButtonProps,modalHeight:"300px"},B.elementSize.width<420?D.expansionPanelModePropsMobil270:B.elementSize.width<760?D.expansionPanelModePropsMobil:D.expansionPanelModePropsTypePlays,{"filter-type":D.filtersTypes.PLAYS_TYPES,"show-badge-on-filter-full":!1,key:D.updateFilterPlaytypesGolstats,"onUpdate:filters":c.onFiltersPlaysTypes,filters:D.categoriesDefault}),null,16,["button-filter-props","filter-type","onUpdate:filters","filters"])),(t.openBlock(),t.createBlock(y,t.mergeProps({"button-filter-props":c.filterButtonProps,modalHeight:"300px"},B.elementSize.width<420?D.expansionPanelModePropsMobil270:B.elementSize.width<760?D.expansionPanelModePropsMobil:D.expansionPanelModeProps,{"filter-type":D.filtersTypes.GOLSTATS,"show-badge-on-filter-full":!1,key:D.updateFilterGolstats,"onUpdate:filters":c.onFiltersGolStats,filters:c.filterGolstats}),null,16,["button-filter-props","filter-type","onUpdate:filters","filters"]))],64)):t.createCommentVNode("",!0)],2),[[t.vShow,B.elementSize.width>760||D.openMenuMobil]]),D.optionSelected=="Scouting"?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.teamBar),id:"team-bar"},[D.filterScounting.tournaments.length>1&&D.rowScoutingData.length>0?(t.openBlock(),t.createElementBlock("div",JOt,[KOt,t.createElementVNode("div",{class:t.normalizeClass(e.comextleyemdmultipleleaguesClass)}," El filtro por equipos solo se pude utilizar cuando se tiene maximo 1 liga seleccionada ",2)])):(t.openBlock(),t.createBlock(a,{data:D.teamsscouting,"team-id":D.teamselectrec,"background-color":"#172531","contain-border-radius":"8px",key:D.updateFilterTeamsScouting,onClickTeam:c.clickTeamScouting,onClickAll:c.clickAllAll},null,8,["data","team-id","onClickTeam","onClickAll"]))],2)):t.createCommentVNode("",!0)],6)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.containerTheBestClass),id:"container-the-best"},[t.createElementVNode("div",{class:t.normalizeClass(e.titleSectionClass)},[D.optionSelectedSubmenu!="Predeterminados"?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.commejoresJugadoresClass)},[D.arrayFiltersPlays.length>0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[D.optionSelected!="Scouting"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Mejores jugadores: ")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("Jugadores más productivos: ")],64))],64)):t.createCommentVNode("",!0)],2)):t.createCommentVNode("",!0),D.optionSelected!="Scouting"&&D.optionSelectedSubmenu!="Predeterminados"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[D.showFullTable?(t.openBlock(),t.createElementBlock("div",QOt,[t.createVNode(f,{"text-value":"Categoría - "+D.categoryName+" ","font-size":"11px","font-color":"rgba(255, 255, 255, 0.7)",onClickClose:c.deleteCategoryFilter,icon:"https://az755631.vo.msecnd.net/todoelfut/icn_close.png","icon-size":"6px",height:"20px"},null,8,["text-value","onClickClose"])])):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(D.arrayFiltersPlays,(l,o)=>(t.openBlock(),t.createElementBlock("div",{key:o,style:{"margin-left":"10px"}},[t.createVNode(f,{"text-value":l.name+" ","font-size":"11px","font-color":"rgba(255, 255, 255, 0.7)",onClickClose:c.deleteLabelFilter,id:l.type,icon:"https://az755631.vo.msecnd.net/todoelfut/icn_close.png","icon-size":"6px",height:B.elementSize.width<768?"auto":"20px"},null,8,["text-value","onClickClose","id","height"])]))),128)),D.rowScoutingData.length!=0||D.optionSelectedSubmenu=="Predeterminados"&&D.arrayFiltersPlays.findIndex(l=>l.type==="onFiltersPredefined")!==-1?(t.openBlock(),t.createElementBlock("div",{key:2,class:t.normalizeClass(e.comquitarFiltrosClass),onClick:r[5]||(r[5]=(...l)=>c.onClickDeleteFilter&&c.onClickDeleteFilter(...l))}," Quitar filtros ",2)):t.createCommentVNode("",!0),t.createCommentVNode("",!0)],2),i.seasonActive!=0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.containerTablesClass),id:"container-tables",style:t.normalizeStyle(D.showFullTable?"gap: 0px!important;":"")},[D.optionSelected!=="Scouting"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[D.optionSelectedSubmenu=="Todas las jugadas"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(D.categoriesDefault,(l,o)=>(t.openBlock(),t.createElementBlock("div",{key:o,style:t.normalizeStyle(!D.showOnlyCategories&&D.arrayCategoryFilter.includes(l.id)?"":"display:none !important;")},[t.withDirectives(t.createElementVNode("div",{class:t.normalizeClass(e.toniKroosWrapperClass)},[(t.openBlock(),t.createBlock(n,{"is-widget":i.isWidget,"team-widget":i.teamWidget,"time-live-comparative-avanced":i.timeLiveComparativeAvanced,"is-team":D.isTeam,onMore:c.onShowFullTable,"border-width":0,onIntervalidtops:c.intervalidtops,"can-play-videos":i.canPlayVideos,"border-radius":"12px","game-id":i.gameId,game:i.game,typeData:i.typeData,"filters-prop":c.filterChange,category:l.id,"type-table":D.typeTable,categoryName:l.name,season:i.seasonActive,"filter-team":i.teamselect,key:D.updateTables,onClickprofile:c.clickprofile,onSetopenmedia:c.setOpenMedia},null,8,["is-widget","team-widget","time-live-comparative-avanced","is-team","onMore","onIntervalidtops","can-play-videos","game-id","game","typeData","filters-prop","category","type-table","categoryName","season","filter-team","onClickprofile","onSetopenmedia"]))],2),[[t.vShow,!D.showOnlyCategories&&D.arrayCategoryFilter.includes(l.id)&&!D.showFullTable]])],4))),128)),D.showFullTable?(t.openBlock(),t.createBlock(n,{"time-live-comparative-avanced":i.timeLiveComparativeAvanced,"is-team":D.isTeam,"is-widget":i.isWidget,"team-widget":i.teamWidget,"border-width":0,"border-radius":"12px","game-id":i.gameId,onIntervalidtops:c.intervalidtops,game:i.game,typeData:i.typeData,category:D.showFullCategory,type:1,"type-table":D.typeTable,categoryName:"","filters-prop":c.filterChange,season:i.seasonActive,"filter-team":i.teamselect,key:D.updateTablesfull,onClickprofile:c.clickprofile,onSetopenmedia:c.setOpenMedia},null,8,["time-live-comparative-avanced","is-team","is-widget","team-widget","game-id","onIntervalidtops","game","typeData","category","type-table","filters-prop","season","filter-team","onClickprofile","onSetopenmedia"])):t.createCommentVNode("",!0)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[D.categoryPredefinedActive?(t.openBlock(),t.createBlock(n,{"is-widget":i.isWidget,"team-widget":i.teamWidget,"is-team":D.isTeam,"time-live-comparative-avanced":i.timeLiveComparativeAvanced,onIntervalidtops:c.intervalidtops,"border-width":0,"border-radius":"12px","can-play-videos":i.canPlayVideos,"game-id":i.gameId,game:i.game,typeData:i.typeData,category:D.categoryPredefined,type:1,"type-table":D.typeTable,categoryName:"","filters-prop":c.filterChangePredefined,season:i.seasonActive,"filter-team":i.teamselect,key:D.updateTables,onClickprofile:c.clickprofile,onSetopenmedia:c.setOpenMedia},null,8,["is-widget","team-widget","is-team","time-live-comparative-avanced","onIntervalidtops","can-play-videos","game-id","game","typeData","category","type-table","filters-prop","season","filter-team","onClickprofile","onSetopenmedia"])):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.containerPredefinedcom)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.titleContainerPredefinedcom)},[D.arrayFiltersPlays.length==0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("No has seleccionado ningún filtro")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("No existen resultados")],64))],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.subtitleContainerPredefinedcom)},[D.arrayFiltersPlays.length==0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Para visualizar resultados selecciona un")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("No existen resultados con los filtros")],64))],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.subtitleContainerPredefinedcom)},[D.arrayFiltersPlays.length==0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[eFt,t.createTextVNode(" y un "),tFt,t.createTextVNode(" en la")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("que has seleccionado.")],64))],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.subtitleContainerPredefinedcom)},[D.arrayFiltersPlays.length==0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("parte superior.")],64)):t.createCommentVNode("",!0)],2)],2))],64))],64)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.containerPredefinedScountingcom),style:t.normalizeStyle(D.rowScoutingData.length>0?"height: auto;":"")},[D.loadingActive?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[D.rowScoutingData.length>0?(t.openBlock(),t.createBlock(v,{key:0,background:"#183143",type:2})):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(D.rowScoutingData,(l,o)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:o},[D.teamselectrec==0||D.teamselectrec==l.team_id?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createVNode(_,{type:2,"is-expanded":D.playerexpand==l.id&&D.expand,onMediadata:c.setMediaData,data:{position:l.position,player_name:l.player_name,player_photo:l.player_photo,total:l.total,id:l.id,player_age:l.player_age,team_abrev:l.team_abrev,team_logo:l.team_logo,player_position:D.positions[l.player_position-1].fullname,player_country_flag:l.player_country_flag,player_games:l.player_games,player_min:l.player_min,league_name:l.league_name,seasons:l.seasons,season_id:l.season_id},height:"71px",background:o%2===0?i.backgroundOdd:i.backgroundEven,onExpand:c.clickexpand},null,8,["is-expanded","onMediadata","data","background","onExpand"]),D.expand&&D.playerexpand==l.id?(t.openBlock(),t.createBlock(p,{key:0,type:0,"view-effectiveness":!1,viewGoals:!1,additionalClass:"fullTable",data:{teams:l.team_name,age:l.player_age,dataofbirth:l.date,nationality:l.nationality_name,countryFlag:l.player_country_flag,position:D.positions[l.player_position-1].name,games:l.player_games,min:l.player_min,goals:l.total,effectiveness:"-",category:"total",id:l.id},onViewprofile:s=>c.viewprofile(s,l.season_id,l.team_id),background:o%2===0?i.backgroundOdd:i.backgroundEven},null,8,["data","onViewprofile","background"])):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)],64))),128))],64)),D.rowScoutingData.length==0&&!D.loadingActive?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.btnLeyendTxtcom)},' Haz click en "Buscar" para aplicar tus filtros ',2)):t.createCommentVNode("",!0),D.rowScoutingData.length==0&&!D.loadingActive?(t.openBlock(),t.createElementBlock("div",{key:2,class:t.normalizeClass(e.$style.containerScountingBtncom)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.btnDeleteAplicacom),onClick:r[6]||(r[6]=(...l)=>c.onClickDeleteFilter&&c.onClickDeleteFilter(...l))}," Eliminar filtros aplicados ",2),D.rowScoutingData.length==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.SearchBtnBarcom),onClick:r[7]||(r[7]=(...l)=>c.getScoutingData&&c.getScoutingData(...l))}," Buscar ",2)):t.createCommentVNode("",!0)],2)):t.createCommentVNode("",!0),D.loadingActive?(t.openBlock(),t.createElementBlock("div",aFt)):t.createCommentVNode("",!0)],6))],6)):t.createCommentVNode("",!0)],2)],2)],2)],2)],512)}const rFt=$i(WOt,[["render",nFt],["__cssModules",{$style:GOt}]]),Zxa="";let $q=null;const iFt={components:{GSCDatosGSMain:UBt,GSCCheckbox:Wg,GSCRadioToggle:IH,GSCTopFull:rFt},props:{isWidget:{type:Boolean,default:!1},teamWidget:{type:Number,default:0},timeLiveComparativeBestPlayers:{type:Number,default:6e4},timeLiveComparativeAvanced:{type:Number,default:6e4},tournamentSelected:{type:Object,default:()=>({})},game:{type:Object,default:()=>{}},playVideosPrivileges:{type:Object,default:null},canPlayVideos:{type:Boolean,default:!1}},data(){return{updateHomeCheck:0,updateAwayCheck:0,activeSection:"destacados",widthSection:0,teamactive:0,update:0,homeTeamCheck:!0,awayTeamCheck:!0,typeViewData:1}},watch:{game:{deep:!0,immediate:!0,handler(e){e&&(e.game_status==1||e.is_live==1||e.game_status==0?this.typeViewData=1:this.typeViewData=0),this.update+=1}}},computed:{},methods:{preventChange(e){e.preventDefault(),this.homeTeamCheck=!0},intervalidgs(e){this.$emit("intervalidgs",e)},onOpenProfileTeam(e){this.$emit("openProfileTeam",e)},intervalidtops(e){this.$emit("intervalidtops",e)},onOpenProfilePlayer(e){this.$emit("onOpenProfile",e)},ChangeRadio(e){typeof e=="string"&&(e=="Este partido"?this.typeViewData=1:this.typeViewData=0)},onCheckInactiveHome(e){e?(this.homeTeamCheck=!0,this.awayTeamCheck?this.teamactive=0:this.teamactive=this.game.homeTeam.team_id):this.awayTeamCheck?(this.homeTeamCheck=!1,this.teamactive=this.game.awayTeam.team_id):(this.updateHomeCheck+=1,this.homeTeamCheck=!0,this.teamactive=this.game.homeTeam.team_id)},onCheckInactiveAway(e){e?(this.awayTeamCheck=!0,this.homeTeamCheck?this.teamactive=0:this.teamactive=this.game.awayTeam.team_id):this.homeTeamCheck?(this.awayTeamCheck=!1,this.teamactive=this.game.homeTeam.team_id):(this.updateAwayCheck+=1,this.teamactive=this.game.awayTeam.team_id,this.awayTeamCheck=!0)},setUpResizeObserver(){if(window.ResizeObserver)$q=new ResizeObserver(()=>{this.widthSection=this.$refs.comparative.clientWidth}),$q.observe(this.$refs.comparative);else throw new Error("Resize observer not supported!")},clickOptSection(e){this.activeSection=e},openmedia(e){this.typeViewData===1?(e.gameIdsToFilter=[this.game.gameId],this.$emit("openmedia",e)):this.$emit("openmedia",e)}},async mounted(){setTimeout(()=>{this.setUpResizeObserver()},1e3)}},oFt=e=>(t.pushScopeId("data-v-c2a09d4a"),e=e(),t.popScopeId(),e),sFt={class:"container-comparative",ref:"comparative"},lFt={class:"container-btn"},cFt={class:"items-container-btn"},dFt={class:"container-sections"},uFt={key:0,class:"container-teams-menu"},hFt={class:"container-team-menu-home"},pFt=["src"],fFt=oFt(()=>t.createElementVNode("div",{class:"container-team-menu-separator"},null,-1)),mFt={class:"container-team-menu-away"},gFt=["src"],yFt={key:1,class:"container-switch-menu"},vFt={class:"container-leyend"},_Ft={class:"container-tops"};function bFt(e,r,i,B,D,c){const g=t.resolveComponent("GSCDatosGSMain"),a=t.resolveComponent("GSCCheckbox"),y=t.resolveComponent("GSCRadioToggle"),f=t.resolveComponent("GSCTopFull");return t.openBlock(),t.createElementBlock("div",sFt,[t.createElementVNode("div",lFt,[t.createElementVNode("div",cFt,[t.createElementVNode("div",{class:t.normalizeClass([D.widthSection>480?"btn-destacados":"btn-destacados-movil",D.activeSection=="destacados"?"active":""]),onClick:r[0]||(r[0]=n=>c.clickOptSection("destacados"))},[i.game.status==1||i.game.is_live==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[i.tournamentSelected.is_female==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Jugadoras destacadas")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("Jugadores destacados")],64))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("General")],64))],2),t.createElementVNode("div",{class:t.normalizeClass([D.widthSection>480?"btn-avanced":"btn-avanced-movil",D.activeSection=="avanzado"?"active":""]),onClick:r[1]||(r[1]=n=>c.clickOptSection("avanzado"))}," Avanzado ",2)])]),t.createElementVNode("div",dFt,[D.activeSection=="destacados"?(t.openBlock(),t.createBlock(g,{key:0,"is-widget":i.isWidget,"team-widget":i.teamWidget,"tournament-selected":i.tournamentSelected,"time-live-comparative-best-players":i.timeLiveComparativeBestPlayers,game:i.game,"play-videos-privileges":i.playVideosPrivileges,onOpenmedia:c.openmedia,onIntervalidgs:c.intervalidgs},null,8,["is-widget","team-widget","tournament-selected","time-live-comparative-best-players","game","play-videos-privileges","onOpenmedia","onIntervalidgs"])):t.createCommentVNode("",!0),D.activeSection=="avanzado"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[i.isWidget?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",uFt,[t.createElementVNode("div",hFt,[(t.openBlock(),t.createBlock(a,{fontFamily:"Poppins-Regular","onUpdate:modelValue":c.onCheckInactiveHome,"label-color":"#8c9399",width:"25",key:D.updateHomeCheck,"model-value":D.homeTeamCheck,height:"25",style:{"margin-top":"-4px"}},null,8,["onUpdate:modelValue","model-value"])),t.createElementVNode("img",{class:"img-teams-selector-home",width:"23",src:i.game.homeTeam.logo},null,8,pFt),t.createElementVNode("div",{class:t.normalizeClass(D.widthSection>390?"label-team-home":"label-team-home-movil")},t.toDisplayString(i.game.homeTeam.colloquial_name),3)]),fFt,t.createElementVNode("div",mFt,[t.createElementVNode("div",{class:t.normalizeClass(D.widthSection>390?"label-team-away":"label-team-away-movil")},t.toDisplayString(i.game.awayTeam.colloquial_name),3),t.createElementVNode("img",{class:"img-teams-selector-away",width:"23",src:i.game.awayTeam.logo},null,8,gFt),(t.openBlock(),t.createBlock(a,{fontFamily:"Poppins-Regular","onUpdate:modelValue":c.onCheckInactiveAway,"label-color":"#8c9399",width:"25",key:D.updateAwayCheck,"model-value":D.awayTeamCheck,height:"25",style:{"margin-top":"-4px"}},null,8,["onUpdate:modelValue","model-value"]))])])),i.game.status==1?(t.openBlock(),t.createElementBlock("div",yFt,[t.createVNode(y,{height:"20px",width:"41px","background-color":"none","width-circle":"15px","height-circle":"15px","circle-color-switch":"#CBEE6B","font-color":"#ffffff","value-default":D.typeViewData==1?"Este partido":"Acumulado",textOptionLeft:"Este partido",textOptionRight:"Acumulado",onChange:c.ChangeRadio},null,8,["value-default","onChange"])])):t.createCommentVNode("",!0),t.createElementVNode("div",vFt,[D.typeViewData==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(" Jugadas destacadas durante este partido ")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[i.game.status==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(" Jugadas destacadas durante el torneo ")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[i.tournamentSelected.is_female==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Jugadoras destacadas durante lo que va del torneo")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("Jugadores destacados durante lo que va del torneo")],64))],64))],64))]),t.createElementVNode("div",_Ft,[t.createVNode(f,{"is-widget":i.isWidget,"team-widget":i.teamWidget,"time-live-comparative-avanced":i.timeLiveComparativeAvanced,"can-play-videos":i.canPlayVideos,onOpenmedia:c.openmedia,onOpenProfileTeam:c.onOpenProfileTeam,onIntervalidtops:c.intervalidtops,onOpenProfilePlayer:c.onOpenProfilePlayer,"type-data":D.typeViewData,"game-id":i.game.gameId,game:i.game,"current-season-id":i.game.seasonId,"team-id":D.teamactive,"season-active":i.game.seasonId,teamselect:D.teamactive},null,8,["is-widget","team-widget","time-live-comparative-avanced","can-play-videos","onOpenmedia","onOpenProfileTeam","onIntervalidtops","onOpenProfilePlayer","type-data","game-id","game","current-season-id","team-id","season-active","teamselect"])])],64)):t.createCommentVNode("",!0)])],512)}const xFt=$i(iFt,[["render",bFt],["__scopeId","data-v-c2a09d4a"]]);function jq(e,r){return function(){return e.apply(r,arguments)}}const{toString:wFt}=Object.prototype,{getPrototypeOf:oA}=Object,N4=(e=>r=>{const i=wFt.call(r);return e[i]||(e[i]=i.slice(8,-1).toLowerCase())})(Object.create(null)),uf=e=>(e=e.toLowerCase(),r=>N4(r)===e),z4=e=>r=>typeof r===e,{isArray:Jy}=Array,I_=z4("undefined");function kFt(e){return e!==null&&!I_(e)&&e.constructor!==null&&!I_(e.constructor)&&Ih(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Uq=uf("ArrayBuffer");function CFt(e){let r;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?r=ArrayBuffer.isView(e):r=e&&e.buffer&&Uq(e.buffer),r}const SFt=z4("string"),Ih=z4("function"),Gq=z4("number"),O4=e=>e!==null&&typeof e=="object",TFt=e=>e===!0||e===!1,F4=e=>{if(N4(e)!=="object")return!1;const r=oA(e);return(r===null||r===Object.prototype||Object.getPrototypeOf(r)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},EFt=uf("Date"),AFt=uf("File"),MFt=uf("Blob"),IFt=uf("FileList"),PFt=e=>O4(e)&&Ih(e.pipe),BFt=e=>{let r;return e&&(typeof FormData=="function"&&e instanceof FormData||Ih(e.append)&&((r=N4(e))==="formdata"||r==="object"&&Ih(e.toString)&&e.toString()==="[object FormData]"))},NFt=uf("URLSearchParams"),[zFt,OFt,FFt,LFt]=["ReadableStream","Request","Response","Headers"].map(uf),DFt=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function P_(e,r,{allOwnKeys:i=!1}={}){if(e===null||typeof e>"u")return;let B,D;if(typeof e!="object"&&(e=[e]),Jy(e))for(B=0,D=e.length;B<D;B++)r.call(null,e[B],B,e);else{const c=i?Object.getOwnPropertyNames(e):Object.keys(e),g=c.length;let a;for(B=0;B<g;B++)a=c[B],r.call(null,e[a],a,e)}}function Hq(e,r){r=r.toLowerCase();const i=Object.keys(e);let B=i.length,D;for(;B-- >0;)if(D=i[B],r===D.toLowerCase())return D;return null}const E1=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Wq=e=>!I_(e)&&e!==E1;function sA(){const{caseless:e}=Wq(this)&&this||{},r={},i=(B,D)=>{const c=e&&Hq(r,D)||D;F4(r[c])&&F4(B)?r[c]=sA(r[c],B):F4(B)?r[c]=sA({},B):Jy(B)?r[c]=B.slice():r[c]=B};for(let B=0,D=arguments.length;B<D;B++)arguments[B]&&P_(arguments[B],i);return r}const RFt=(e,r,i,{allOwnKeys:B}={})=>(P_(r,(D,c)=>{i&&Ih(D)?e[c]=jq(D,i):e[c]=D},{allOwnKeys:B}),e),VFt=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),$Ft=(e,r,i,B)=>{e.prototype=Object.create(r.prototype,B),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:r.prototype}),i&&Object.assign(e.prototype,i)},jFt=(e,r,i,B)=>{let D,c,g;const a={};if(r=r||{},e==null)return r;do{for(D=Object.getOwnPropertyNames(e),c=D.length;c-- >0;)g=D[c],(!B||B(g,e,r))&&!a[g]&&(r[g]=e[g],a[g]=!0);e=i!==!1&&oA(e)}while(e&&(!i||i(e,r))&&e!==Object.prototype);return r},UFt=(e,r,i)=>{e=String(e),(i===void 0||i>e.length)&&(i=e.length),i-=r.length;const B=e.indexOf(r,i);return B!==-1&&B===i},GFt=e=>{if(!e)return null;if(Jy(e))return e;let r=e.length;if(!Gq(r))return null;const i=new Array(r);for(;r-- >0;)i[r]=e[r];return i},HFt=(e=>r=>e&&r instanceof e)(typeof Uint8Array<"u"&&oA(Uint8Array)),WFt=(e,r)=>{const i=(e&&e[Symbol.iterator]).call(e);let B;for(;(B=i.next())&&!B.done;){const D=B.value;r.call(e,D[0],D[1])}},qFt=(e,r)=>{let i;const B=[];for(;(i=e.exec(r))!==null;)B.push(i);return B},YFt=uf("HTMLFormElement"),XFt=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,i,B){return i.toUpperCase()+B}),qq=(({hasOwnProperty:e})=>(r,i)=>e.call(r,i))(Object.prototype),ZFt=uf("RegExp"),Yq=(e,r)=>{const i=Object.getOwnPropertyDescriptors(e),B={};P_(i,(D,c)=>{let g;(g=r(D,c,e))!==!1&&(B[c]=g||D)}),Object.defineProperties(e,B)},JFt=e=>{Yq(e,(r,i)=>{if(Ih(e)&&["arguments","caller","callee"].indexOf(i)!==-1)return!1;const B=e[i];if(Ih(B)){if(r.enumerable=!1,"writable"in r){r.writable=!1;return}r.set||(r.set=()=>{throw Error("Can not rewrite read-only method '"+i+"'")})}})},KFt=(e,r)=>{const i={},B=D=>{D.forEach(c=>{i[c]=!0})};return Jy(e)?B(e):B(String(e).split(r)),i},QFt=()=>{},eLt=(e,r)=>e!=null&&Number.isFinite(e=+e)?e:r,lA="abcdefghijklmnopqrstuvwxyz",Xq="0123456789",Zq={DIGIT:Xq,ALPHA:lA,ALPHA_DIGIT:lA+lA.toUpperCase()+Xq},tLt=(e=16,r=Zq.ALPHA_DIGIT)=>{let i="";const{length:B}=r;for(;e--;)i+=r[Math.random()*B|0];return i};function aLt(e){return!!(e&&Ih(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const nLt=e=>{const r=new Array(10),i=(B,D)=>{if(O4(B)){if(r.indexOf(B)>=0)return;if(!("toJSON"in B)){r[D]=B;const c=Jy(B)?[]:{};return P_(B,(g,a)=>{const y=i(g,D+1);!I_(y)&&(c[a]=y)}),r[D]=void 0,c}}return B};return i(e,0)},rLt=uf("AsyncFunction"),iLt=e=>e&&(O4(e)||Ih(e))&&Ih(e.then)&&Ih(e.catch),Jq=((e,r)=>e?setImmediate:r?((i,B)=>(E1.addEventListener("message",({source:D,data:c})=>{D===E1&&c===i&&B.length&&B.shift()()},!1),D=>{B.push(D),E1.postMessage(i,"*")}))(`axios@${Math.random()}`,[]):i=>setTimeout(i))(typeof setImmediate=="function",Ih(E1.postMessage)),oLt=typeof queueMicrotask<"u"?queueMicrotask.bind(E1):typeof process<"u"&&process.nextTick||Jq,vr={isArray:Jy,isArrayBuffer:Uq,isBuffer:kFt,isFormData:BFt,isArrayBufferView:CFt,isString:SFt,isNumber:Gq,isBoolean:TFt,isObject:O4,isPlainObject:F4,isReadableStream:zFt,isRequest:OFt,isResponse:FFt,isHeaders:LFt,isUndefined:I_,isDate:EFt,isFile:AFt,isBlob:MFt,isRegExp:ZFt,isFunction:Ih,isStream:PFt,isURLSearchParams:NFt,isTypedArray:HFt,isFileList:IFt,forEach:P_,merge:sA,extend:RFt,trim:DFt,stripBOM:VFt,inherits:$Ft,toFlatObject:jFt,kindOf:N4,kindOfTest:uf,endsWith:UFt,toArray:GFt,forEachEntry:WFt,matchAll:qFt,isHTMLForm:YFt,hasOwnProperty:qq,hasOwnProp:qq,reduceDescriptors:Yq,freezeMethods:JFt,toObjectSet:KFt,toCamelCase:XFt,noop:QFt,toFiniteNumber:eLt,findKey:Hq,global:E1,isContextDefined:Wq,ALPHABET:Zq,generateString:tLt,isSpecCompliantForm:aLt,toJSONObject:nLt,isAsyncFn:rLt,isThenable:iLt,setImmediate:Jq,asap:oLt};function ns(e,r,i,B,D){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",r&&(this.code=r),i&&(this.config=i),B&&(this.request=B),D&&(this.response=D,this.status=D.status?D.status:null)}vr.inherits(ns,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:vr.toJSONObject(this.config),code:this.code,status:this.status}}});const Kq=ns.prototype,Qq={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Qq[e]={value:e}}),Object.defineProperties(ns,Qq),Object.defineProperty(Kq,"isAxiosError",{value:!0}),ns.from=(e,r,i,B,D,c)=>{const g=Object.create(Kq);return vr.toFlatObject(e,g,function(a){return a!==Error.prototype},a=>a!=="isAxiosError"),ns.call(g,e.message,r,i,B,D),g.cause=e,g.name=e.name,c&&Object.assign(g,c),g};const sLt=null;function cA(e){return vr.isPlainObject(e)||vr.isArray(e)}function eY(e){return vr.endsWith(e,"[]")?e.slice(0,-2):e}function tY(e,r,i){return e?e.concat(r).map(function(B,D){return B=eY(B),!i&&D?"["+B+"]":B}).join(i?".":""):r}function lLt(e){return vr.isArray(e)&&!e.some(cA)}const cLt=vr.toFlatObject(vr,{},null,function(e){return/^is[A-Z]/.test(e)});function L4(e,r,i){if(!vr.isObject(e))throw new TypeError("target must be an object");r=r||new FormData,i=vr.toFlatObject(i,{metaTokens:!0,dots:!1,indexes:!1},!1,function(p,l){return!vr.isUndefined(l[p])});const B=i.metaTokens,D=i.visitor||f,c=i.dots,g=i.indexes,a=(i.Blob||typeof Blob<"u"&&Blob)&&vr.isSpecCompliantForm(r);if(!vr.isFunction(D))throw new TypeError("visitor must be a function");function y(p){if(p===null)return"";if(vr.isDate(p))return p.toISOString();if(!a&&vr.isBlob(p))throw new ns("Blob is not supported. Use a Buffer instead.");return vr.isArrayBuffer(p)||vr.isTypedArray(p)?a&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function f(p,l,o){let s=p;if(p&&!o&&typeof p=="object"){if(vr.endsWith(l,"{}"))l=B?l:l.slice(0,-2),p=JSON.stringify(p);else if(vr.isArray(p)&&lLt(p)||(vr.isFileList(p)||vr.endsWith(l,"[]"))&&(s=vr.toArray(p)))return l=eY(l),s.forEach(function(u,d){!(vr.isUndefined(u)||u===null)&&r.append(g===!0?tY([l],d,c):g===null?l:l+"[]",y(u))}),!1}return cA(p)?!0:(r.append(tY(o,l,c),y(p)),!1)}const n=[],v=Object.assign(cLt,{defaultVisitor:f,convertValue:y,isVisitable:cA});function _(p,l){if(!vr.isUndefined(p)){if(n.indexOf(p)!==-1)throw Error("Circular reference detected in "+l.join("."));n.push(p),vr.forEach(p,function(o,s){(!(vr.isUndefined(o)||o===null)&&D.call(r,o,vr.isString(s)?s.trim():s,l,v))===!0&&_(o,l?l.concat(s):[s])}),n.pop()}}if(!vr.isObject(e))throw new TypeError("data must be an object");return _(e),r}function aY(e){const r={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(i){return r[i]})}function dA(e,r){this._pairs=[],e&&L4(e,this,r)}const nY=dA.prototype;nY.append=function(e,r){this._pairs.push([e,r])},nY.toString=function(e){const r=e?function(i){return e.call(this,i,aY)}:aY;return this._pairs.map(function(i){return r(i[0])+"="+r(i[1])},"").join("&")};function dLt(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function rY(e,r,i){if(!r)return e;const B=i&&i.encode||dLt,D=i&&i.serialize;let c;if(D?c=D(r,i):c=vr.isURLSearchParams(r)?r.toString():new dA(r,i).toString(B),c){const g=e.indexOf("#");g!==-1&&(e=e.slice(0,g)),e+=(e.indexOf("?")===-1?"?":"&")+c}return e}class iY{constructor(){this.handlers=[]}use(r,i,B){return this.handlers.push({fulfilled:r,rejected:i,synchronous:B?B.synchronous:!1,runWhen:B?B.runWhen:null}),this.handlers.length-1}eject(r){this.handlers[r]&&(this.handlers[r]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(r){vr.forEach(this.handlers,function(i){i!==null&&r(i)})}}const oY={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},uLt=typeof URLSearchParams<"u"?URLSearchParams:dA,hLt=typeof FormData<"u"?FormData:null,pLt=typeof Blob<"u"?Blob:null,fLt={isBrowser:!0,classes:{URLSearchParams:uLt,FormData:hLt,Blob:pLt},protocols:["http","https","file","blob","url","data"]},uA=typeof window<"u"&&typeof document<"u",hA=typeof navigator=="object"&&navigator||void 0,mLt=uA&&(!hA||["ReactNative","NativeScript","NS"].indexOf(hA.product)<0),gLt=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",yLt=uA&&window.location.href||"http://localhost",vLt=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:uA,hasStandardBrowserEnv:mLt,hasStandardBrowserWebWorkerEnv:gLt,navigator:hA,origin:yLt},Symbol.toStringTag,{value:"Module"})),Ph={...vLt,...fLt};function _Lt(e,r){return L4(e,new Ph.classes.URLSearchParams,Object.assign({visitor:function(i,B,D,c){return Ph.isNode&&vr.isBuffer(i)?(this.append(B,i.toString("base64")),!1):c.defaultVisitor.apply(this,arguments)}},r))}function bLt(e){return vr.matchAll(/\w+|\[(\w*)]/g,e).map(r=>r[0]==="[]"?"":r[1]||r[0])}function xLt(e){const r={},i=Object.keys(e);let B;const D=i.length;let c;for(B=0;B<D;B++)c=i[B],r[c]=e[c];return r}function sY(e){function r(i,B,D,c){let g=i[c++];if(g==="__proto__")return!0;const a=Number.isFinite(+g),y=c>=i.length;return g=!g&&vr.isArray(D)?D.length:g,y?(vr.hasOwnProp(D,g)?D[g]=[D[g],B]:D[g]=B,!a):((!D[g]||!vr.isObject(D[g]))&&(D[g]=[]),r(i,B,D[g],c)&&vr.isArray(D[g])&&(D[g]=xLt(D[g])),!a)}if(vr.isFormData(e)&&vr.isFunction(e.entries)){const i={};return vr.forEachEntry(e,(B,D)=>{r(bLt(B),D,i,0)}),i}return null}function wLt(e,r,i){if(vr.isString(e))try{return(r||JSON.parse)(e),vr.trim(e)}catch(B){if(B.name!=="SyntaxError")throw B}return(i||JSON.stringify)(e)}const B_={transitional:oY,adapter:["xhr","http","fetch"],transformRequest:[function(e,r){const i=r.getContentType()||"",B=i.indexOf("application/json")>-1,D=vr.isObject(e);if(D&&vr.isHTMLForm(e)&&(e=new FormData(e)),vr.isFormData(e))return B?JSON.stringify(sY(e)):e;if(vr.isArrayBuffer(e)||vr.isBuffer(e)||vr.isStream(e)||vr.isFile(e)||vr.isBlob(e)||vr.isReadableStream(e))return e;if(vr.isArrayBufferView(e))return e.buffer;if(vr.isURLSearchParams(e))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let c;if(D){if(i.indexOf("application/x-www-form-urlencoded")>-1)return _Lt(e,this.formSerializer).toString();if((c=vr.isFileList(e))||i.indexOf("multipart/form-data")>-1){const g=this.env&&this.env.FormData;return L4(c?{"files[]":e}:e,g&&new g,this.formSerializer)}}return D||B?(r.setContentType("application/json",!1),wLt(e)):e}],transformResponse:[function(e){const r=this.transitional||B_.transitional,i=r&&r.forcedJSONParsing,B=this.responseType==="json";if(vr.isResponse(e)||vr.isReadableStream(e))return e;if(e&&vr.isString(e)&&(i&&!this.responseType||B)){const D=!(r&&r.silentJSONParsing)&&B;try{return JSON.parse(e)}catch(c){if(D)throw c.name==="SyntaxError"?ns.from(c,ns.ERR_BAD_RESPONSE,this,null,this.response):c}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ph.classes.FormData,Blob:Ph.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};vr.forEach(["delete","get","head","post","put","patch"],e=>{B_.headers[e]={}});const kLt=vr.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),CLt=e=>{const r={};let i,B,D;return e&&e.split(`
4162
+ */const Tu={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"}},Pq={itemsToShow:{default:Tu.itemsToShow,type:Number},itemsToScroll:{default:Tu.itemsToScroll,type:Number},wrapAround:{default:Tu.wrapAround,type:Boolean},throttle:{default:Tu.throttle,type:Number},snapAlign:{default:Tu.snapAlign,validator(e){return["start","end","center","center-even","center-odd"].includes(e)}},transition:{default:Tu.transition,type:Number},breakpoints:{default:Tu.breakpoints,type:Object},autoplay:{default:Tu.autoplay,type:Number},pauseAutoplayOnHover:{default:Tu.pauseAutoplayOnHover,type:Boolean},modelValue:{default:void 0,type:Number},mouseDrag:{default:Tu.mouseDrag,type:Boolean},touchDrag:{default:Tu.touchDrag,type:Boolean},dir:{default:Tu.dir,validator(e){return["rtl","ltr"].includes(e)}},i18n:{default:Tu.i18n,type:Object},settings:{default(){return{}},type:Object}};function Mzt({config:e,slidesCount:r}){const{snapAlign:i,wrapAround:B,itemsToShow:D=1}=e;if(B)return Math.max(r-1,0);let c;switch(i){case"start":c=r-D;break;case"end":c=r-1;break;case"center":case"center-odd":c=r-Math.ceil((D-.5)/2);break;case"center-even":c=r-Math.ceil(D/2);break;default:c=0;break}return Math.max(c,0)}function Izt({config:e,slidesCount:r}){const{wrapAround:i,snapAlign:B,itemsToShow:D=1}=e;let c=0;if(i||D>r)return c;switch(B){case"start":c=0;break;case"end":c=D-1;break;case"center":case"center-odd":c=Math.floor((D-1)/2);break;case"center-even":c=Math.floor((D-2)/2);break;default:c=0;break}return c}function eA({val:e,max:r,min:i}){return r<i?e:Math.min(Math.max(e,i),r)}function Pzt({config:e,currentSlide:r,slidesCount:i}){const{snapAlign:B,wrapAround:D,itemsToShow:c=1}=e;let g=r;switch(B){case"center":case"center-odd":g-=(c-1)/2;break;case"center-even":g-=(c-2)/2;break;case"end":g-=c-1;break}return D?g:eA({val:g,max:i-c,min:0})}function Bq(e){return e?e.reduce((r,i)=>{var B;return i.type===t.Fragment?[...r,...Bq(i.children)]:((B=i.type)===null||B===void 0?void 0:B.name)==="CarouselSlide"?[...r,i]:r},[]):[]}function tA({val:e,max:r,min:i=0}){return e>r?tA({val:e-(r+1),max:r,min:i}):e<i?tA({val:e+(r+1),max:r,min:i}):e}function Bzt(e,r){let i;return r?function(...B){const D=this;i||(e.apply(D,B),i=!0,setTimeout(()=>i=!1,r))}:e}function Nzt(e,r){let i;return function(...B){i&&clearTimeout(i),i=setTimeout(()=>{e(...B),i=null},r)}}function zzt(e="",r={}){return Object.entries(r).reduce((i,[B,D])=>i.replace(`{${B}}`,String(D)),e)}var Ozt=t.defineComponent({name:"ARIA",setup(){const e=t.inject("config",t.reactive(Object.assign({},Tu))),r=t.inject("currentSlide",t.ref(0)),i=t.inject("slidesCount",t.ref(0));return()=>t.h("div",{class:["carousel__liveregion","carousel__sr-only"],"aria-live":"polite","aria-atomic":"true"},zzt(e.i18n.itemXofY,{currentSlide:r.value+1,slidesCount:i.value}))}}),Fzt=t.defineComponent({name:"Carousel",props:Pq,setup(e,{slots:r,emit:i,expose:B}){var D;const c=t.ref(null),g=t.ref([]),a=t.ref(0),y=t.ref(0),f=t.reactive(Object.assign({},Tu));let n=Object.assign({},Tu),v;const _=t.ref((D=e.modelValue)!==null&&D!==void 0?D:0),p=t.ref(0),l=t.ref(0),o=t.ref(0),s=t.ref(0);let u,d;t.provide("config",f),t.provide("slidesCount",y),t.provide("currentSlide",_),t.provide("maxSlide",o),t.provide("minSlide",s),t.provide("slideWidth",a);function h(){v=Object.assign({},e.breakpoints),n=Object.assign(Object.assign(Object.assign({},n),e),{i18n:Object.assign(Object.assign({},n.i18n),e.i18n),breakpoints:void 0}),b(n)}function m(){if(!v||!Object.keys(v).length)return;const ae=Object.keys(v).map(ie=>Number(ie)).sort((ie,ue)=>+ue-+ie);let ne=Object.assign({},n);ae.some(ie=>{const ue=window.matchMedia(`(min-width: ${ie}px)`).matches;return ue&&(ne=Object.assign(Object.assign({},ne),v[ie])),ue}),b(ne)}function b(ae){Object.entries(ae).forEach(([ne,ie])=>f[ne]=ie)}const w=Nzt(()=>{m(),x()},16);function x(){if(!c.value)return;const ae=c.value.getBoundingClientRect();a.value=ae.width/f.itemsToShow}function S(){y.value<=0||(l.value=Math.ceil((y.value-1)/2),o.value=Mzt({config:f,slidesCount:y.value}),s.value=Izt({config:f,slidesCount:y.value}),f.wrapAround||(_.value=eA({val:_.value,max:o.value,min:s.value})))}t.onMounted(()=>{t.nextTick(()=>x()),setTimeout(()=>x(),1e3),m(),V(),window.addEventListener("resize",w,{passive:!0}),i("init")}),t.onUnmounted(()=>{d&&clearTimeout(d),u&&clearInterval(u),window.removeEventListener("resize",w,{passive:!0})});let C=!1;const T={x:0,y:0},k={x:0,y:0},A=t.reactive({x:0,y:0}),E=t.ref(!1),M=t.ref(!1),I=()=>{E.value=!0},N=()=>{E.value=!1};function z(ae){["INPUT","TEXTAREA","SELECT"].includes(ae.target.tagName)||(C=ae.type==="touchstart",C||ae.preventDefault(),!(!C&&ae.button!==0||U.value)&&(T.x=C?ae.touches[0].clientX:ae.clientX,T.y=C?ae.touches[0].clientY:ae.clientY,document.addEventListener(C?"touchmove":"mousemove",F,!0),document.addEventListener(C?"touchend":"mouseup",R,!0)))}const F=Bzt(ae=>{M.value=!0,k.x=C?ae.touches[0].clientX:ae.clientX,k.y=C?ae.touches[0].clientY:ae.clientY;const ne=k.x-T.x,ie=k.y-T.y;A.y=ie,A.x=ne},f.throttle);function R(){const ae=f.dir==="rtl"?-1:1,ne=Math.sign(A.x)*.4,ie=Math.round(A.x/a.value+ne)*ae;if(ie&&!C){const ue=he=>{he.stopPropagation(),window.removeEventListener("click",ue,!0)};window.addEventListener("click",ue,!0)}Z(_.value-ie),A.x=0,A.y=0,M.value=!1,document.removeEventListener(C?"touchmove":"mousemove",F,!0),document.removeEventListener(C?"touchend":"mouseup",R,!0)}function V(){!f.autoplay||f.autoplay<=0||(u=setInterval(()=>{f.pauseAutoplayOnHover&&E.value||q()},f.autoplay))}function $(){u&&(clearInterval(u),u=null),V()}const U=t.ref(!1);function Z(ae){const ne=f.wrapAround?ae:eA({val:ae,max:o.value,min:s.value});_.value===ne||U.value||(i("slide-start",{slidingToIndex:ae,currentSlideIndex:_.value,prevSlideIndex:p.value,slidesCount:y.value}),U.value=!0,p.value=_.value,_.value=ne,d=setTimeout(()=>{if(f.wrapAround){const ie=tA({val:ne,max:o.value,min:0});ie!==_.value&&(_.value=ie,i("loop",{currentSlideIndex:_.value,slidingToIndex:ae}))}i("update:modelValue",_.value),i("slide-end",{currentSlideIndex:_.value,prevSlideIndex:p.value,slidesCount:y.value}),U.value=!1,$()},f.transition))}function q(){Z(_.value+f.itemsToScroll)}function W(){Z(_.value-f.itemsToScroll)}const Q={slideTo:Z,next:q,prev:W};t.provide("nav",Q),t.provide("isSliding",U);const X=t.computed(()=>Pzt({config:f,currentSlide:_.value,slidesCount:y.value}));t.provide("slidesToScroll",X);const J=t.computed(()=>{const ae=f.dir==="rtl"?-1:1,ne=X.value*a.value*ae;return{transform:`translateX(${A.x-ne}px)`,transition:`${U.value?f.transition:0}ms`,margin:f.wrapAround?`0 -${y.value*a.value}px`:"",width:"100%"}});function ee(){h(),m(),S(),x(),$()}Object.keys(Pq).forEach(ae=>{["modelValue"].includes(ae)||t.watch(()=>e[ae],ee)}),t.watch(()=>e.modelValue,ae=>{ae!==_.value&&Z(Number(ae))}),t.watch(y,S),i("before-init"),h();const le={config:f,slidesCount:y,slideWidth:a,next:q,prev:W,slideTo:Z,currentSlide:_,maxSlide:o,minSlide:s,middleSlide:l};B({updateBreakpointsConfigs:m,updateSlidesData:S,updateSlideWidth:x,initDefaultConfigs:h,restartCarousel:ee,slideTo:Z,next:q,prev:W,nav:Q,data:le});const oe=r.default||r.slides,se=r.addons,ce=t.reactive(le);return()=>{const ae=Bq(oe==null?void 0:oe(ce)),ne=(se==null?void 0:se(ce))||[];ae.forEach((pe,me)=>pe.props.index=me);let ie=ae;if(f.wrapAround){const pe=ae.map((be,we)=>t.cloneVNode(be,{index:-ae.length+we,isClone:!0,key:`clone-before-${we}`})),me=ae.map((be,we)=>t.cloneVNode(be,{index:ae.length+we,isClone:!0,key:`clone-after-${we}`}));ie=[...pe,...ae,...me]}g.value=ae,y.value=Math.max(ae.length,1);const ue=t.h("ol",{class:"carousel__track",style:J.value,onMousedownCapture:f.mouseDrag?z:null,onTouchstartPassiveCapture:f.touchDrag?z:null},ie),he=t.h("div",{class:"carousel__viewport"},ue);return t.h("section",{ref:c,class:{carousel:!0,"is-sliding":U.value,"is-dragging":M.value,"is-hover":E.value,"carousel--rtl":f.dir==="rtl"},dir:f.dir,"aria-label":f.i18n.ariaGallery,tabindex:"0",onMouseenter:I,onMouseleave:N},[he,ne,t.h(Ozt)])}}}),Nq;(function(e){e.arrowUp="arrowUp",e.arrowDown="arrowDown",e.arrowRight="arrowRight",e.arrowLeft="arrowLeft"})(Nq||(Nq={}));var Lzt=t.defineComponent({name:"CarouselSlide",props:{index:{type:Number,default:1},isClone:{type:Boolean,default:!1}},setup(e,{slots:r}){const i=t.inject("config",t.reactive(Object.assign({},Tu))),B=t.inject("currentSlide",t.ref(0)),D=t.inject("slidesToScroll",t.ref(0)),c=t.inject("isSliding",t.ref(!1)),g=()=>e.index===B.value,a=()=>e.index===B.value-1,y=()=>e.index===B.value+1,f=()=>{const n=Math.floor(D.value),v=Math.ceil(D.value+i.itemsToShow-1);return e.index>=n&&e.index<=v};return()=>{var n;return t.h("li",{style:{width:`${100/i.itemsToShow}%`},class:{carousel__slide:!0,"carousel__slide--clone":e.isClone,"carousel__slide--visible":f(),"carousel__slide--active":g(),"carousel__slide--prev":a(),"carousel__slide--next":y(),"carousel__slide--sliding":c.value},"aria-hidden":!f()},(n=r.default)===null||n===void 0?void 0:n.call(r))}}});const Dzt=(e,r)=>{const i=e.__vccOpts||e;for(const[B,D]of r)i[B]=D;return i},Rzt=e=>(t.pushScopeId("data-v-54620d25"),e=e(),t.popScopeId(),e),Vzt={class:"gsc-carousel"},$zt={key:0},jzt=Rzt(()=>t.createElementVNode("div",null,"no hay",-1)),Uzt=[jzt],Gzt={class:"gsc-carousel__2d__slides"},Hzt={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Wzt=["fill"],qzt={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Yzt=["fill"],Xzt={class:"gsc-carousel__2d__navigation"},Zzt={width:"8",height:"15",viewBox:"0 0 8 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Jzt=["stroke"],Kzt={key:1,class:"gsc-carousel__2d__navigation__pagination"},Qzt=["onClick"],eOt={width:"7",height:"15",viewBox:"0 0 7 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},tOt=["stroke"],aOt={__name:"GSC-Carousel",props:{currentItemIndex:{type:Number,default:0},items:{type:Array,default:()=>[]},is3d:{type:Boolean,default:!1},isPaginationVisible:{type:Boolean,default:!1},areNavigationArrowsVisible:{type:Boolean,default:!0},defaultItemByIndex:{type:Number,default:0},defaultItemByProp:{type:Object,default:null,validator:e=>["propName","value"].every(r=>r in e)},navigationHeight:{type:Number,default:4},navigationBorderRadius:{type:Number,default:4},navigationColor:{type:String,default:"rgba(255, 255, 255, 0.4)"},navigationActiveColor:{type:String,default:"#cbee6b"},navigationActiveWidth:{type:Number,default:30},arrowsColor:{type:String,default:"#cbee6b"},arrowsMaxWidth:{type:String,default:"20px"},wrapAround:{type:Boolean,default:!1},itemsToShow:{type:Number,default:1},isMainSlidePriority:{type:Boolean,default:!1},areSlidesArrowsVisible:{type:Boolean,default:!1},slideLeftArrowBackgroundImage:{type:String,default:"linear-gradient(to right, rgba(13, 29, 41, 1), rgba(0, 0, 0, 0))"},slideRightArrowBackgroundImage:{type:String,default:"linear-gradient(to left, rgba(13, 29, 41, 1), rgba(0, 0, 0, 0))"},areSlidesArrowsRounded:{type:Boolean,default:!1},slidesArrowsLeftAndRight:{type:String,default:"20px"},secondarySlidesOpacity:{type:Number,default:.8},marginTop:{type:String,default:"0"}},emits:["input","update:currentItemIndex"],setup(e,{expose:r,emit:i}){const B=e;t.useCssVars(o=>({"2c72d674":e.slideLeftArrowBackgroundImage,"90a63f40":e.slidesArrowsLeftAndRight,"2627d097":e.slideRightArrowBackgroundImage,"1904d43f":e.marginTop,cfb58986:e.secondarySlidesOpacity}));const D=t.ref(null),c=t.ref({}),g=t.ref(0),a=t.ref(!1);t.watch(D,o=>{o&&a.value?(a.value=!1,y(B.items)):o&&o.slideTo&&o.slideTo(g.value)},{deep:!0}),t.watch(()=>B.currentItemIndex,o=>{g.value!==o&&_(o)}),t.watch(()=>B.defaultItemByIndex,o=>{g.value!==o&&_(o)}),t.watch(()=>B.items,o=>{D.value?y(o):a.value=!0},{immediate:!0});function y(o){o&&o.length&&D.value&&setTimeout(()=>{if(B.defaultItemByProp){const s=B.items.findIndex(u=>u[B.defaultItemByProp.propName]===B.defaultItemByProp.value);s!==-1?(g.value=s,c.value=o[s]):(g.value=0,c.value=o[0])}else g.value=B.defaultItemByIndex,c.value=o[B.defaultItemByIndex];D.value.slideTo&&D.value.slideTo(g.value),c.value&&g.value===0&&i("input",{selectedItem:c.value,selectedItemIndex:g.value})},500)}function f(){D.value&&D.value.next()}function n(){D.value&&D.value.prev()}function v(){D.value&&D.value.updateSlideWidth()}function _(o){D.value&&D.value.slideTo(o)}function p(o){D.value.slideTo(o)}function l(o){const s=o.slidingToIndex<0?B.items.length-1:o.slidingToIndex===B.items.length?0:o.slidingToIndex;g.value=s,c.value=B.items[s],i("update:currentItemIndex",s),i("input",{selectedItem:c.value,selectedItemIndex:g.value})}return r({prev:n,next:f,updateSlideWidth:v,slideTo:_}),(o,s)=>(t.openBlock(),t.createElementBlock("div",Vzt,[B.is3d?(t.openBlock(),t.createElementBlock("div",$zt,Uzt)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(["gsc-carousel__2d",{"main-slide-priority":e.isMainSlidePriority}])},[t.createElementVNode("div",Gzt,[t.createVNode(t.unref(Fzt),{ref_key:"carousel2d",ref:D,"items-to-show":e.itemsToShow,"wrap-around":e.wrapAround,onSlideStart:l},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(u,d)=>(t.openBlock(),t.createBlock(t.unref(Lzt),{key:d},{default:t.withCtx(()=>[t.renderSlot(o.$slots,"default",{item:u},void 0,!0)]),_:2},1024))),128))]),_:3},8,["items-to-show","wrap-around"])]),e.areSlidesArrowsVisible&&e.items.length>1?(t.openBlock(),t.createElementBlock("div",{key:0,class:"gsc-carousel__2d__arrow-left",style:t.normalizeStyle("max-width:"+e.arrowsMaxWidth+"!important"),onClick:s[0]||(s[0]=u=>D.value.prev())},[t.createElementVNode("div",{class:t.normalizeClass(["gsc-carousel__2d__slide-button",{rounded:e.areSlidesArrowsRounded}])},[(t.openBlock(),t.createElementBlock("svg",Hzt,[t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.10399 9L8.62342 15.4393C9.12552 16.0251 9.12552 16.9749 8.62342 17.5607C8.12132 18.1464 7.30725 18.1464 6.80514 17.5607L0.376575 10.0607C-0.125528 9.47487 -0.125528 8.52512 0.376575 7.93934L6.80515 0.439339C7.30725 -0.146447 8.12132 -0.146447 8.62342 0.43934C9.12553 1.02513 9.12553 1.97487 8.62342 2.56066L3.10399 9Z",fill:e.arrowsColor},null,8,Wzt)]))],2)],4)):t.createCommentVNode("",!0),e.areSlidesArrowsVisible&&e.items.length>1?(t.openBlock(),t.createElementBlock("div",{key:1,class:"gsc-carousel__2d__arrow-right",style:t.normalizeStyle("max-width:"+e.arrowsMaxWidth+"!important"),onClick:s[1]||(s[1]=u=>f())},[t.createElementVNode("div",{class:t.normalizeClass(["gsc-carousel__2d__slide-button",{rounded:e.areSlidesArrowsRounded}])},[(t.openBlock(),t.createElementBlock("svg",qzt,[t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5.89601 9L0.376575 2.56066C-0.125528 1.97487 -0.125528 1.02513 0.376575 0.439339C0.878675 -0.146447 1.69275 -0.146447 2.19486 0.43934L8.62343 7.93934C9.12553 8.52513 9.12553 9.47487 8.62343 10.0607L2.19486 17.5607C1.69275 18.1464 0.878675 18.1464 0.376575 17.5607C-0.125528 16.9749 -0.125528 16.0251 0.376575 15.4393L5.89601 9Z",fill:e.arrowsColor},null,8,Yzt)]))],2)],4)):t.createCommentVNode("",!0),t.createElementVNode("div",Xzt,[e.areNavigationArrowsVisible?(t.openBlock(),t.createElementBlock("div",{key:0,class:"gsc-carousel__2d__navigation__arrow-left",onClick:s[2]||(s[2]=u=>n())},[(t.openBlock(),t.createElementBlock("svg",Zzt,[t.createElementVNode("path",{d:"M6.72998 13.894L1.46621 8.63028C0.84457 8.00863 0.84457 6.9914 1.46621 6.36976L6.72998 1.10599",stroke:B.arrowsColor},null,8,Jzt)]))])):t.createCommentVNode("",!0),e.isPaginationVisible?(t.openBlock(),t.createElementBlock("div",Kzt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(u,d)=>(t.openBlock(),t.createElementBlock("div",{key:`i-${d}`,class:"gsc-carousel__2d__navigation__pagination__item",style:t.normalizeStyle({height:`${B.navigationHeight}px`,width:`${g.value===d?B.navigationActiveWidth:B.navigationActiveWidth/2}px`,borderRadius:`${B.navigationBorderRadius}px`,backgroundColor:`${g.value===d?B.navigationActiveColor:B.navigationColor}`,transition:"all 0.1s ease-in-out"}),onClick:h=>p(d)},null,12,Qzt))),128))])):t.createCommentVNode("",!0),e.areNavigationArrowsVisible?(t.openBlock(),t.createElementBlock("div",{key:2,class:"gsc-carousel__2d__navigation__arrow-right",onClick:s[3]||(s[3]=u=>D.value.next())},[(t.openBlock(),t.createElementBlock("svg",eOt,[t.createElementVNode("path",{d:"M0.72998 1.10599L5.99375 6.36975C6.61539 6.9914 6.61539 8.00863 5.99375 8.63027L0.72998 13.894",stroke:B.arrowsColor},null,8,tOt)]))])):t.createCommentVNode("",!0)])],2))]))}},nOt=Dzt(aOt,[["__scopeId","data-v-54620d25"]]),Y_a="",zq={3:"Albanesa",4:"Argelina",6:"Andorrano",7:"Angoleña",8:"Anguillan",9:"Antiguan",10:"Argentina",11:"Armenia",12:"Arubeño",13:"Austríaca",14:"Austríaca",15:"Azerbaiyano",16:"Bahamas",17:"Bareini",18:"Bangladesí",19:"Barbadense",20:"Bielorrusa",21:"Belga",22:"Beliceña",23:"Beninesa",24:"Bermudeña",25:"Butanés",26:"Boliviana",27:"Bosnia",28:"Botsuano",29:"Brasileña",30:"Islas Vírgenes Británicas",31:"Bruneano",32:"Búlgara",33:"Burundés",34:"Burmesa",35:"Burundés",36:"Camboyana",37:"Camerunés",38:"Canadiense",39:"Caboverdiano",40:"Caimanés",41:"Centroafricana",42:"Chadiano",43:"Chilena",44:"China",45:"Isla de Navidad",46:"Cocos Island",47:"Colombiana",48:"Comorense",49:"Congoleña",50:"Cookiano",51:"Costarricense",52:"Marfileña",53:"Croata",54:"Cubana",55:"Chipriota",56:"Checa",57:"Danesa",58:"Djibouti",60:"Dominicana",61:"Timorense",62:"Ecuatoriana",63:"Egipcia",64:"Salvadoreña",65:"Inglesa",66:"Ecuatoguineano",67:"Eritreo",68:"Estoniana",69:"Etíope",70:"Islas Malvinas",71:"Feroés",72:"Fiyiano",73:"Finlandesa",74:"Francesa",75:"Guayana Francesa",76:"Francopolinecio",77:"Gabonesa",78:"Gambiana",79:"Georgiano",80:"Alemana",81:"Ghanesa",82:"Gibraltareño",221:"Británico",84:"Griega",85:"Groenlandés",86:"Granadino",87:"Guadeloupeño",89:"Guatemalteca",90:"Guineana",91:"Guyanés",92:"Haitiana",93:"Hondureña",94:"Hongkongese",95:"Húngaro",96:"Islandesa",97:"Indio",98:"Indonesia",99:"Iraní",100:"Iraquí",101:"Irlandesa",102:"Manés",103:"Israelí",104:"Italiana",105:"Jamaiquina",106:"Japonesa",107:"Jordana",108:"Kazaja",109:"Keniana",110:"Kiribatiano",111:"Coreana",112:"Surcoreana",113:"Kosovan",114:"Kuwaití",115:"Kirguisa",116:"Laosiano",117:"Letona",118:"Libanesa",119:"Basotho",120:"Liberiana",121:"Libia",122:"Liechtenstein",123:"Lituano",124:"Luxemburguesa",125:"Macaneso",126:"Macedonia",127:"Malgache",128:"Malaya",129:"Malaya",130:"Maldivo",131:"Mali",132:"Maltesa",133:"Marshallese",134:"Martiniqueña",135:"Mauritania",136:"Mauriciano",137:"Mahoran",138:"Mexicana",139:"Micronesio",140:"Moldava",141:"Monacan",142:"Mongol",143:"Montenegrina",144:"Montserratiano",145:"Marroqui",146:"Mozambiqueña",147:"Namibio",148:"Nauruan",149:"Nepalí",150:"Holandesa",151:"Neocaledonio",152:"Neozelandesa",153:"Nicaragüense",154:"Niueño",155:"Nigerina",156:"Nigeriana",157:"Noruega",158:"Normariano",159:"Omaní",160:"Palestina",161:"Palestina",162:"Palauan",163:"Panameña",164:"Papú",165:"Paraguaya",166:"Peruana",167:"Filipina",168:"Pitcairnés",169:"Polaca",170:"Portuguesa",171:"Puertorriqueña",172:"Catari",173:"Reunionés",174:"Rumana",175:"Rusa",176:"Ruandés",177:"Santa Elena",178:"Sancristobaleña",179:"Santa Lucía",180:"Miquelonnais",181:"Sanvicentina",182:"Samoano",183:"Sanmariense",184:"Santotomense",185:"Saudí",186:"Escocesa",187:"Senegalense",188:"Serbia",189:"Seychellense",190:"Sierraleonesa",191:"Singapurense",192:"Eslovena",193:"Eslovena",194:"Salomonense",195:"Somalí",196:"Sudafricana",197:"Surosetio",198:"Española",199:"Esrilanques",200:"Sudanés",201:"Surinamés",202:"Swazi",203:"Sueca",204:"Suiza",205:"Sirio",206:"Taiwanesa",207:"Tayiko",208:"Tanzano",209:"Tailandesa",210:"Togo",211:"Tongano",212:"Trinitaria",213:"Tunecina",214:"Turca",215:"Turkmena",216:"none",217:"Tuvaluano",218:"Ugandesa",219:"Ucraniana",220:"Emiratí",222:"Americana",223:"Uruguaya",224:"Uzbeka",225:"Vanuatuense",226:"Venezolana",227:"Vietnamita",228:"Islas Vírgenes",229:"Galesa",230:"Walisiano",231:"Saharaui",232:"Yemení",233:"Zambiana",234:"Zimbabuense",236:"Curazaleña",237:"San Martín",239:"Debutante"},X_a="",aA={components:{GSCCarousel:nOt,GSCLeaders:QNt,GSCRowTable:_q,GSCTableHeader:pq,GSCExpandedInfo:Iq},props:{isTeam:{type:Boolean,default:!1},typeTable:{type:Number,default:0},typeData:{type:Number,default:1},gameId:{type:Number,default:0},filtersProp:{type:[Object,String],default:()=>{}},game:{type:Object,default:()=>({})},isWidget:{type:Boolean,default:!1},teamWidget:{type:Number,default:0},canPlayVideos:{type:Boolean,default:!1},filterTeam:{type:Number,default:0},timeLiveComparativeAvanced:{type:Number,default:6e4},category:{type:Number,default:1},categoryName:{type:String,default:"Goles"},season:{type:Number,default:1772},type:{type:Number,default:0},borderRadius:{type:String,default:"8px"},borderWidth:{type:[String,Number],default:"2px"},borderColor:{type:String,default:"#cfcfcf"},backgroundOdd:{type:String,default:"#172531"},backgroundEven:{type:String,default:"#0d1d29"},numRows:{type:Number,default:5}},setup(){const e=t.ref("myDivRef"),{elementSize:r}=M_(e);return{myDivRef:e,elementSize:r}},watch:{season:{immediate:!1,async handler(e){e&&(this.playersInfo={},this.teamInfo={},this.isloading=!0,this.formatFilterStats=[],await this.getCategoryStats(this.season),this.game.is_live&&(this.intervalIdtops=setInterval(async()=>{await this.getCategoryStats(this.season)},this.timeLiveComparativeAvanced),this.$emit("intervalidtops",this.intervalIdtops)))}},typeData:{immediate:!0,async handler(){await this.getCategoryStats(this.season)}},filtersProp:{immediate:!1,deep:!0,async handler(e,r){e&&(JSON.stringify(e)!==JSON.stringify(r)||this.sonConjuntosDistintos(e.setNationalitiesIds,r.setNationalitiesIds))&&(this.isloading=!0,this.filterEmitAux=e,[1,23,3,4,5,7,6,9,8,11,10,12,13,15,14,17,16,22].includes(this.category)?this.filterEmitAux.typeZone=1:this.filterEmitAux.typeZone=2,this.formatFilterStats=await this.filterRecords(this.filterEmitAux))}}},computed:{topData(){if(this.changeStateLoading(!0),Object.entries(this.statsData).length>0&&this.formatFilterStats.length>0){var e={},r={},i=[],B=[],D=[];return this.formatFilterStats.map(c=>{e[c.team_id]?e[c.team_id].total=e[c.team_id].total+c.total:(e[c.team_id]={},e[c.team_id].total=c.total,e[c.team_id].id=this.teamInfo[c.team_id].id,e[c.team_id].name=this.teamInfo[c.team_id].name.replace(" Femenil",""),e[c.team_id].img="https://az755631.vo.msecnd.net/teams-80/"+c.team_id+".png",e[c.team_id].effectiveness=this.teamInfo[c.team_id].effectiveness,e[c.team_id].frecuency=this.teamInfo[c.team_id].frecuency,e[c.team_id].game_avg=this.teamInfo[c.team_id].game_avg,e[c.team_id].game_avg_last_season=this.teamInfo[c.team_id].game_avg_last_season,e[c.team_id].games_played_lastseason=this.teamInfo[c.team_id].games_played_lastseason,e[c.team_id].games_played=this.teamInfo[c.team_id].games_played,e[c.team_id].positiontable=this.teamInfo[c.team_id].positiontable,e[c.team_id].goals=this.teamInfo[c.team_id].goals,e[c.team_id].goalsrecived=this.teamInfo[c.team_id].goalsrecived,e[c.team_id].xg=this.teamInfo[c.team_id].xg),r[c.player_id]?c.player_id!=0&&c.player_id!=62117&&(r[c.player_id].total=r[c.player_id].total+c.total):c.player_id!=0&&c.player_id!=62117&&(r[c.player_id]={},r[c.player_id].total=c.total,c.player_id&&this.playersInfo[c.player_id]?(r[c.player_id].name=this.playersInfo[c.player_id].name,r[c.player_id].name_short=this.getnameshort(this.playersInfo[c.player_id].name),r[c.player_id].img=this.playersInfo[c.player_id].img,r[c.player_id].id=this.playersInfo[c.player_id].id,r[c.player_id].age=this.playersInfo[c.player_id].age,r[c.player_id].team=this.playersInfo[c.player_id].team,r[c.player_id].teamname=this.playersInfo[c.player_id].teamname,r[c.player_id].teamid=this.playersInfo[c.player_id].teamid,r[c.player_id].position=this.playersInfo[c.player_id].position,r[c.player_id].positionId=this.playersInfo[c.player_id].positionId,r[c.player_id].positionfull=this.playersInfo[c.player_id].positionfull,r[c.player_id].country=this.playersInfo[c.player_id].country,r[c.player_id].effectiveness=this.playersInfo[c.player_id].effectiveness,r[c.player_id].minutes=this.playersInfo[c.player_id].minutes_played,r[c.player_id].games=this.playersInfo[c.player_id].games_played,r[c.player_id].date=this.playersInfo[c.player_id].date,r[c.player_id].nationality=this.playersInfo[c.player_id].nationality,r[c.player_id].player_country_flag=this.playersInfo[c.player_id].player_country_flag,r[c.player_id].categoryName=this.categoryName):(r[c.player_id].id=c.player_id,r[c.player_id].name=c.player_id,r[c.player_id].img="SIN IMAGEN",r[c.player_id].age="",r[c.player_id].teamname="",r[c.player_id].team="",r[c.player_id].teamid=0,r[c.player_id].position="",r[c.player_id].positionId=0,r[c.player_id].positionfull="",r[c.player_id].country="",r[c.player_id].effectiveness="",r[c.player_id].minutes="",r[c.player_id].games="",r[c.player_id].date="00-00-0000",r[c.player_id].nationality="",r[c.player_id].player_country_flag="",r[c.player_id].categoryName=""))}),i.push(...Object.values(e)),B.push(...Object.values(r)),i=this.sortAndSlice(Object.values(e),60),B=B.sort(this.compareObjectsMinutes).slice(0,60),B=B.map((c,g)=>(c.top=g<9?"0"+(g+1):""+(g+1),c)),i=i.map((c,g)=>(c.top=g<9?"0"+(g+1):""+(g+1),c)),this.filterTeam!==0&&!this.isTeam&&(D=B.filter(c=>c.teamid===this.filterTeam)),this.changeStateLoading(!1),this.isTeam?this.formatArrayPaginate(i):this.filterTeam!=0?this.formatArrayPaginate(D):this.formatArrayPaginate(B)}else return this.changeStateLoading(!1),[]}},data:()=>({url:"https://8grl16o77j.execute-api.us-west-2.amazonaws.com/prod/live/tops",urlPrematch:"https://8grl16o77j.execute-api.us-west-2.amazonaws.com/prod/topsBySeasonAndCategory/",data_headers:["team_id","player_id","playing_as","match_result","section","total","origen","destino"],token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",mapPlayers:new Map,setNationalityIds:new Set,arrayAgeRange:[0,0],arePlaysEmpty:!1,teamInfo:{},formatFilterStats:[],formatStats:[],playersInfo:{},isloading:!0,statsData:{},updateSlider:0,intervalIdtops:null,filterEmitAux:{},filtersSelect:{playingAs:[],matchResult:[],sections:[],zone:[],typeZone:[]},filtersValues:{type:1,sections:[1,2,3,4,5,6],matchResult:[1,2,3],playingAs:[1,2],zone:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],typeZone:1,arrayAgeRange:[1,60],setNationalitiesIds:[],setPositionsIds:[1,2,3,4,5,6,7,8,9]},expand:!1,playerexpand:0,positions:[{name:"Portero",fullname:"POR"},{name:"Defensa central",fullname:"DFC"},{name:"Lateral por izquierda",fullname:"LI"},{name:"Lateral por derecha",fullname:"LD"},{name:"Volante por izquierda",fullname:"VI"},{name:"Volante por derecha",fullname:"VD"},{name:"Volante defensivo",fullname:"VDF"},{name:"Volante ofensivo",fullname:"VO"},{name:"Delantero",fullname:"DEL"},{name:"Desconocida",fullname:"Desc"}],categories:[{id:1,name:"Goles"}]}),methods:{changeStateLoading(e){this.isloading=e},compareObjectsMinutes(e,r){return e.total>r.total?-1:e.total<r.total?1:e.minutes<r.minutes?-1:e.minutes>r.minutes?1:0},sonConjuntosDistintos(e,r){const i=Array.from(e),B=Array.from(r);if(i.length!==B.length)return!0;for(let D=0;D<i.length;D++)if(!r.has(i[D]))return!0;return!1},getnameshort(e){var r=e.split(","),i=r[0].split(" "),B=r[1].trim().split(" "),D="";i.length==2||i.length==1?i[0].length<4?D=i[0]+" "+i[1]:D=i[0]:i.length==3?D=i[0]+" "+i[1]:i.length==4&&(D=i[1]+" "+i[2]+" "+i[3]);var c=B[B.length-1]!=""?B[B.length-1].charAt(0):B[B.length-2]?B[B.length-2].charAt(0):"";return D=D.replace(",",""),c+". "+D},changeCarrousel(){this.expand=!1,this.playerexpand=0},compareObjects(e,r){return e.total<r.total?-1:e.total>r.total?1:e.name<r.name?-1:e.name>r.name?1:0},sortAndSlice(e,r){return e.sort((i,B)=>(i.name<B.name?1:-1)&&(i.total<B.total?1:-1)).slice(0,r)},getCategoryName(e){let r="";for(let i=0;i<this.categories.length;i++)e==this.categories[i].id&&(r=this.categories[i].name);return r},translateTopCategories(e){return{1:[12,55,"35_r","54_r"],2:[2,20],3:[485,486,487,488],4:[10,324],5:[27,323],6:[510],7:[537,540,544,547],8:[328],9:[231,238,280,287,294,406],10:[13,25],11:[98,101,104,105,109,112,115,116],12:[4],13:[88],14:[5],15:[34],16:[23],17:[11],18:[17,50],19:[18,49],20:[14,52],21:[15,53],22:[39],23:[31,32]}[e]||[]},getCoordinatePointPerCategory(e){return{1:2,2:3,3:1,4:2,5:1,6:2,7:2,8:1,9:1,10:2,11:2,12:1,13:1,14:1,15:1,16:1,17:1,18:3,19:3,20:3,21:3,22:1,23:1}[e]||0},emitEventMedia(e,r,i){let B=this.filtersValues.matchResult,D=this.filtersValues.playingAs,c=this.filtersValues.sections,g=this.filtersValues.zone,a=this.translateTopCategories(r);Object.keys(this.filterEmitAux).length>0&&(B=this.filterEmitAux.matchResult,D=this.filterEmitAux.playingAs,c=this.filterEmitAux.sections,g=this.filterEmitAux.zone);const y=1,f=2,n=3,v=this.isTeam?n:f,_=e.player_id;let p=[],l=this.isTeam?e.id:this.filterTeam;_?this.isTeam?l=_:(p=[_],a=a.filter(s=>!s.toString().includes("_r"))):this.isTeam?l=e.id:(p=[e.id],a=a.filter(s=>!s.toString().includes("_r")));const o={auxwidget:!!(this.canPlayVideos||this.game.awayTeam.team_id==this.teamWidget&&this.typeData!=1),seasonId:this.season,isFeaturedPlayers:!1,mainSectionType:y,playListType:v,gameIds:null,playerIds:p,goalkeeperIds:[],categoryIds:this.translateTopCategories(r),teamId:l||0,matchResult:B,categorySingleName:"",isRivalSubject:!1,avoidCategorySingleName:!1,currentPlayIndex:0,playData:null,lastClashedGameId:null,tournamentsLastClashes:null,advancedFilter:{playListTitle:i,playingAs:D,timeSections:c,fieldSections:g,coordinatePoint:this.getCoordinatePointPerCategory(r)}};this.$emit("setopenmedia",o)},emitEventMediaFullTable(e,r,i){let B=this.filtersValues.matchResult,D=this.filtersValues.playingAs,c=this.filtersValues.sections,g=this.filtersValues.zone,a=this.translateTopCategories(r);Object.keys(this.filterEmitAux).length>0&&(B=this.filterEmitAux.matchResult,D=this.filterEmitAux.playingAs,c=this.filterEmitAux.sections,g=this.filterEmitAux.zone);const y=1,f=2,n=3,v=this.isTeam?n:f;let _=[],p=this.isTeam?e.id:this.filterTeam;this.isTeam?p=e.id:(_=[e.id],a=a.filter(o=>!o.toString().includes("_r")));const l={seasonId:this.season,isFeaturedPlayers:!1,mainSectionType:y,playListType:v,gameIds:null,playerIds:_,goalkeeperIds:[],categoryIds:a,teamId:p||0,matchResult:B,categorySingleName:"",isRivalSubject:!1,avoidCategorySingleName:!1,currentPlayIndex:0,playData:null,lastClashedGameId:null,tournamentsLastClashes:null,advancedFilter:{playListTitle:i,playingAs:D,timeSections:c,fieldSections:g,coordinatePoint:this.getCoordinatePointPerCategory(r)}};this.$emit("setopenmedia",l)},replaceImgPlayer(e){return e.replace("https://az755631.vo.msecnd.net/players-profile/","https://az755631.vo.msecnd.net/players-profile-no-bg/")},abrevName(e){var r=e.split(","),i=r[0].split(" "),B=r[1].trim().split(" "),D="";i.length==2||i.length==1?i[0].length<4?D=i[0]+" "+i[1]:D=i[0]:i.length==3?D=i[0]+" "+i[1]:i.length==4&&(D=i[1]+" "+i[2]+" "+i[3]);var c=B[B.length-1]!=""?B[B.length-1].charAt(0):B[B.length-2]?B[B.length-2].charAt(0):"";D=D.replace(",","");var g=c+". "+D;return g},clickMore(e){this.$emit("more",{category:e,categoryName:this.categoryName})},morestats(){this.$emit("more",this.category)},viewprofile(e,r){this.$emit("clickprofile",{id:e,teamId:r,isTeam:this.isTeam})},clickexpand(e){this.expand=e.expand,this.playerexpand=e.id},async getCategoryStats(e){this.mapPlayers=new Map;try{if(!e)return;let r=[],i={},B={};this.arePlaysEmpty=!1;const D=$c.create({headers:{Authorization:`${this.token}`}});this.isloading=!0;let c={};if(this.typeData==1?this.isWidget&&this.teamWidget!=0?c=await D.get(this.url+"/"+this.gameId+"/"+this.category+"?t="+this.teamWidget):c=await D.get(this.url+"/"+this.gameId+"/"+this.category):this.game.game_status===1?this.isWidget&&this.teamWidget!=0?c=await D.get(this.url+"/"+this.gameId+"/"+this.category+"?acc=1&t="+this.teamWidget):c=await D.get(this.url+"/"+this.gameId+"/"+this.category+"?acc=1"):this.isWidget&&this.teamWidget!=0?c=await D.get(this.urlPrematch+this.season+"/"+this.category+"?t="+this.teamWidget):c=await D.get(this.urlPrematch+this.season+"/"+this.category+"?t="+this.game.homeTeam.team_id+"&t="+this.game.awayTeam.team_id),c&&c.data&&c.data.data&&c.data.data.length>0){r=c.data.data.map(a=>this.formatStatsData(a)),c.data.teams.forEach(a=>{i[a[0]]={},i[a[0]].id=a[0],i[a[0]].name=a[1],i[a[0]].abrv=a[2],i[a[0]].img=a[3],i[a[0]].effectiveness=a[4],i[a[0]].games_played=a[5],i[a[0]].games_played_lastseason=a[6],i[a[0]].positiontable=a[7],i[a[0]].goals=a[8],i[a[0]].goalsrecived=a[9],i[a[0]].xg=a[10],i[a[0]].frecuency=a[11],i[a[0]].game_avg=a[12],i[a[0]].game_avg_last_season=a[13]});const g=new Set;c.data.players.forEach(a=>{const y=this.getObjectPlayer(a);this.mapPlayers.set(y.numberId,y);const f=y.numberAge,n=y.teamName.length>0?y.teamName[0].acronym:"",v=y.teamName.length>0?i[y.teamName[0].team_id].name:"",_=y.teamName.length>0?y.teamName[0].team_id:"",p=this.positions[y.numberPositionId-1].fullname,l=this.positions[y.numberPositionId-1].name,o=y.countryId.length>0?y.countryId[0].nationality_id:"",s=y.effectiveness,u=y.min,d=y.games,h=y.date;y.arrayNationalities.forEach(m=>{g.add(m.numberId)}),B[a[0]]={id:a[0],name:a[1],img:a[2],age:f,team:n,teamname:v,teamid:_,position:p,positionfull:l,effectiveness:s,country:o,games_played:d,minutes_played:u,date:h,nationality:y.stringNationalityName,player_country_flag:y.player_country_flag,positionId:y.numberPositionId}}),this.setNationalityIds=g,this.arrayAgeRange=[c.data.min_age,c.data.max_age]}else this.arePlaysEmpty=!0;this.teamInfo=i,this.playersInfo=B,this.formatStats=r,this.formatFilterStats=this.filterRecords(this.filtersSelect),this.statsData=c}catch(r){return Promise.reject(r)}},filterRecords(e){return this.formatStats.length>0?this.formatStats.filter(r=>{const i=e.playingAs.includes(r.playing_as),B=e.matchResult.includes(r.match_result),D=e.sections.includes(r.section),c=e.typeZone===1&&e.zone.includes(r.origen)||e.typeZone===2&&e.zone.includes(r.destino);if(e.setPositionsIds&&e.setNationalitiesIds&&e.arrayAgeRange&&e.setYear&&!this.isTeam){const g=this.mapPlayers.get(r.player_id);if(!g)return!1;if(e.booleanAreNationalTeamsVisible){if(e.setAvailableNationalTeamsPlayersIds.size>0&&!e.setAvailableNationalTeamsPlayersIds.has(r.player_id))return!1}else{let a=!1;for(const y of g.arrayNationalitiesIds)if(e.setNationalitiesIds.has(y)){a=!0;break}if(!a)return!1}if(g.numberAge<e.arrayAgeRange[0]||g.numberAge>e.arrayAgeRange[1]||g.date<e.setYear||!e.setPositionsIds.includes(g.numberPositionId))return!1}return(e.playingAs.length===0||i)&&(e.matchResult.length===0||B)&&(e.sections.length===0||D)&&(e.zone.length===0||c)}):[]},updateSliderF(){this.updateSlider+=1},formatStatsData(e){const r={};return e[1]===0&&(e[2]===1||e[2]===2)&&(e[2]=3-e[2]),e[1]===0&&(e[3]===1||e[3]===2)&&(e[3]=3-e[3]),this.data_headers.forEach((i,B)=>{r[i]=e[B]}),r},getObjectPlayer(e){const r=[],i=e[7].map(D=>(r.push(D.nationality_id),{stringName:D.nationality,numberId:D.nationality_id})),B=e[9].split("-");return{numberId:e[0]!==void 0?e[0]:"",stringFullName:e[1]!==void 0?e[1]:"",stringImageUrl:e[2]!==void 0?e[2]:"",numberTeamId:e[3]!==void 0?e[3]:"",player_country_flag:"https://az755631.vo.msecnd.net/flags/"+e[3]+".jpg",stringNationalityName:zq[e[3]],numberAge:e[5]!==void 0?e[5]:"",numberPositionId:e[6]!==void 0?e[6]:"",countryId:e[7]!==void 0?e[7]:"",teamName:e[10]!==void 0?e[10]:"",effectiveness:e[11]!==void 0?e[11]:"",min:e[13]!==void 0?e[13]:"",games:e[12]!==void 0?e[12]:"",date:B.length>0?Number(B[0]):0,arrayNationalities:i,category:this.categoryName,arrayNationalitiesIds:r}},formatArrayPaginate(e){const r=Math.ceil(e.length/this.numRows);return Array.from({length:r},(i,B)=>{const D=B*this.numRows,c=D+this.numRows;return e.slice(D,c)})}},beforeUnmount(){clearInterval(this.intervalIdtops)}},Oq=()=>{t.useCssVars(e=>({"7270acad":e.borderRadius,"6f55fe4b":e.borderWidth,"6e3effe8":e.borderColor}))},Fq=aA.setup;aA.setup=Fq?(e,r)=>(Oq(),Fq(e,r)):Oq;const B4=e=>(t.pushScopeId("data-v-43d490e8"),e=e(),t.popScopeId(),e),rOt={ref:"myDivRef"},iOt={class:"btnViewFullList"},oOt={class:"text"},sOt={class:"groupsLeague"},lOt={class:"row-table-carrousel"},cOt={key:1,class:"container-no-search-result"},dOt={key:0,class:"overlay-loading-top"},uOt=[B4(()=>t.createElementVNode("div",{class:"overlay-loading-top__spinner"},[t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/balon_liga.png",alt:""})],-1)),B4(()=>t.createElementVNode("div",{class:"overlay-loading-top__text"},"Loading...",-1))],hOt=B4(()=>t.createElementVNode("div",{class:"container-no-search-result-title"},"No existen resultados",-1)),pOt=B4(()=>t.createElementVNode("div",{class:"container-no-search-result-subtitle"},[t.createTextVNode(" No existen resultados para este tipo de"),t.createElementVNode("br"),t.createTextVNode(" jugada, considerando el torneo y otros"),t.createElementVNode("br"),t.createTextVNode(" filtros que has seleccionado. ")],-1));function fOt(e,r,i,B,D,c){const g=t.resolveComponent("GSCLeaders"),a=t.resolveComponent("GSCRowTable"),y=t.resolveComponent("GSCExpandedInfo"),f=t.resolveComponent("GSCCarousel"),n=t.resolveComponent("GSCTableHeader");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(i.type==0?"gsc-top":"gsc-top-full")},[t.createElementVNode("div",rOt,[t.createElementVNode("div",iOt,[t.createElementVNode("div",oOt,[t.createElementVNode("div",sOt,t.toDisplayString(i.categoryName),1)])]),i.type==0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[c.topData.length>0?(t.openBlock(),t.createBlock(f,{key:0,items:c.topData,"is-pagination-visible":!0,"are-navigation-arrows-visible":!0,onInput:c.changeCarrousel},{default:t.withCtx(({item:v})=>[t.createElementVNode("div",lOt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(v,(_,p)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:p},[_.top==1?(t.openBlock(),t.createBlock(g,{key:0,onMediadata:r[0]||(r[0]=l=>c.emitEventMedia(l,i.category,i.categoryName)),type:i.typeTable,"type-data":i.typeData,game:i.game,"team-widget":i.teamWidget,"can-play-videos":i.canPlayVideos,"is-expanded":e.playerexpand==_.id&&e.expand,ref_for:!0,ref:"GSCLeaders",data:i.typeTable==0?{top:"01",photo:_.img,logo:"https://az755631.vo.msecnd.net/teams-80/"+_.teamid+".png",name:_.name,player_short:_.name_short,player_id:_.id,categoryId:i.category,total:_.total}:{top:"01",logo:_.img,total:_.total,name_team:_.name,player_id:_.id},"category-name":i.categoryName,buttonMaxWidth:i.typeTable!=0?B.elementSize.width>360?"210px":"130px":B.elementSize.width>360?"180px":"110px",buttonFontSize:"12px",iconSize:"11px",onExpand:c.clickexpand,onMore:c.morestats},null,8,["type","type-data","game","team-widget","can-play-videos","is-expanded","data","category-name","buttonMaxWidth","onExpand","onMore"])):(t.openBlock(),t.createBlock(a,{key:1,"type-data":i.typeData,"team-widget":i.teamWidget,game:i.game,type:i.typeTable,"type-view":i.type,"is-expanded":e.playerexpand==_.id&&e.expand,onMediadata:r[1]||(r[1]=l=>c.emitEventMedia(l,i.category,i.categoryName)),data:i.typeTable==0?{position:_.top,player_name:_.name,player_short:_.name_short,player_photo:_.img,total:_.total,id:_.id,player_age:_.age,team_abrev:_.team,team_logo:"https://az755631.vo.msecnd.net/teams-80/"+_.teamid+".png",player_position:_.position,player_country_flag:"https://az755631.vo.msecnd.net/flags/"+_.country+".jpg",player_games:_.minutes,player_min:_.games,league_name:"          Liga MX          "}:{position:_.top,team_logo:_.img,team_abrev:_.name,frequency:_.frecuency,promthistournament:_.game_avg,promlasttournament:_.game_avg_last_season,teams_games:"-",category:i.category,total:_.total,id:_.id},height:"71px","can-play-videos":i.canPlayVideos,background:p%2===0?i.backgroundEven:i.backgroundOdd,onExpand:c.clickexpand},null,8,["type-data","team-widget","game","type","type-view","is-expanded","data","can-play-videos","background","onExpand"])),e.expand&&e.playerexpand==_.id?(t.openBlock(),t.createBlock(y,{key:2,type:i.typeTable,"is-live":i.game.is_live,"view-effectiveness":_.positionId!==1,data:i.typeTable==0?{teams:_.teamname,age:_.age,dataofbirth:_.date,nationality:_.nationality,countryFlag:_.player_country_flag,position:_.position,games:_.games,min:_.minutes,goals:_.total,effectiveness:_.effectiveness,category:i.categoryName,id:_.id}:{position:_.positiontable,goals:_.goals,goals_received:_.goalsrecived,games_played:_.games_played,category:i.categoryName,effectiveness:_.effectiveness,xg:_.xg,total:_.total,attendance:"-",id:_.id},onViewprofile:l=>c.viewprofile(l,_.teamid),background:p%2===0?i.backgroundEven:i.backgroundOdd},null,8,["type","is-live","view-effectiveness","data","onViewprofile","background"])):t.createCommentVNode("",!0)],64))),128))])]),_:1},8,["items","onInput"])):(t.openBlock(),t.createElementBlock("div",cOt,[e.isloading?(t.openBlock(),t.createElementBlock("div",dOt,uOt)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[hOt,pOt],64))]))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createVNode(n,{background:"#183143",type:i.typeTable},null,8,["type"]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(c.topData,(v,_)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:_},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(v,(p,l)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:l},[t.createVNode(a,{"type-data":i.typeData,"team-widget":i.teamWidget,game:i.game,type:i.typeTable,"type-view":i.type,"can-play-videos":i.canPlayVideos,"is-expanded":e.playerexpand==p.id&&e.expand,onMediadata:r[2]||(r[2]=o=>c.emitEventMediaFullTable(o,i.category,i.categoryName)),data:i.typeTable==0?{position:p.top,player_name:p.name,player_short:p.name_short,player_photo:p.img,total:p.total,id:p.id,player_age:p.age,team_abrev:p.team,team_logo:"https://az755631.vo.msecnd.net/teams-80/"+p.teamid+".png",player_position:p.position,player_country_flag:"https://az755631.vo.msecnd.net/flags/"+p.country+".jpg",player_games:p.games,player_min:p.minutes,league_name:"          Liga MX          "}:{position:p.positiontable,team_logo:p.img,team_abrev:p.name,frequency:p.frecuency,promthistournament:p.game_avg,promlasttournament:p.game_avg_last_season,category:i.category,team_games:p.games_played,total:p.total,id:p.id},height:"71px",background:((_+1)*5+l)%2===0?i.backgroundOdd:i.backgroundEven,onExpand:c.clickexpand},null,8,["type-data","team-widget","game","type","type-view","can-play-videos","is-expanded","data","background","onExpand"]),e.expand&&e.playerexpand==p.id?(t.openBlock(),t.createBlock(y,{key:0,type:i.typeTable,"is-live":i.game.is_live,additionalClass:"fullTable","view-effectiveness":p.positionId!==1,data:i.typeTable==0?{teams:p.teamname,age:p.age,dataofbirth:p.date,nationality:p.nationality,countryFlag:p.player_country_flag,position:p.positionfull,positionfull:p.positionfull,games:p.games,min:p.minutes,goals:p.total,effectiveness:p.effectiveness,category:c.getCategoryName(i.category),id:p.id}:{position:p.positiontable,goals:p.goals,goals_received:p.goalsrecived,games_played:p.games_played,category:i.categoryName,effectiveness:p.effectiveness,xg:p.xg,total:p.total,category:c.getCategoryName(i.category),attendance:"-",id:p.id},onViewprofile:o=>c.viewprofile(o,p.teamid),background:l%2===0?i.backgroundEven:i.backgroundOdd},null,8,["type","is-live","view-effectiveness","data","onViewprofile","background"])):t.createCommentVNode("",!0)],64))),128))],64))),128))],64))],512)],2)}const mOt=$i(aA,[["render",fOt],["__scopeId","data-v-43d490e8"]]),gOt=(e,r)=>{const i=e.__vccOpts||e;for(const[B,D]of r)i[B]=D;return i},yOt={props:{id:Number,textValue:String,icon:String,numFilter:Number,iconVisible:{type:Boolean,default:!0},activeClickLabel:{type:Boolean,default:!1},height:{type:String,default:"35px"},borderRadius:{type:String,default:"30px"},borderType:{type:String,default:"solid"},borderWidth:{type:Number,default:0},borderColor:String,backgroundColor:{type:String,default:"#23303B"},fontSize:{type:String,default:"13px"},fontColor:{type:String,default:"#FFFFFF"},fontFamily:{type:String,default:"Poppins-Regular"},iconSize:{type:String,default:"20px"}},computed:{customStyle(){return{height:this.height,backgroundColor:this.backgroundColor,borderRadius:this.borderRadius,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`,color:this.fontColor,cursor:this.cursorType,fontSize:this.fontSize,fontFamily:`${this.fontFamily} !important`}},customIcon(){return{width:this.iconSize}}},methods:{btnLabel(){this.$emit("clickLabel",this.id)},btnClose(){this.$emit("clickClose",this.id)}}},vOt=["src"],_Ot=["src"];function bOt(e,r,i,B,D,c){return t.openBlock(),t.createElementBlock("div",null,[i.activeClickLabel?(t.openBlock(),t.createElementBlock("div",{key:0,style:t.normalizeStyle(c.customStyle),class:"gsc-label",onClick:r[0]||(r[0]=(...g)=>c.btnLabel&&c.btnLabel(...g))},[t.createTextVNode(t.toDisplayString(i.numFilter)+" "+t.toDisplayString(i.textValue)+" ",1),i.iconVisible?(t.openBlock(),t.createElementBlock("img",{key:0,style:t.normalizeStyle(c.customIcon),class:"icon",src:i.icon},null,12,vOt)):t.createCommentVNode("",!0)],4)):(t.openBlock(),t.createElementBlock("div",{key:1,class:"gsc-label",style:t.normalizeStyle(c.customStyle)},[t.createTextVNode(t.toDisplayString(i.numFilter)+" "+t.toDisplayString(i.textValue)+" ",1),i.iconVisible?(t.openBlock(),t.createElementBlock("img",{key:0,onClick:r[1]||(r[1]=(...g)=>c.btnClose&&c.btnClose(...g)),style:t.normalizeStyle(c.customIcon),class:"icon",src:i.icon},null,12,_Ot)):t.createCommentVNode("",!0)],4))])}const xOt=gOt(yOt,[["render",bOt],["__scopeId","data-v-42ff544a"]]);function wOt(e){const r=t.ref({width:0,height:0});function i(){const B=e.value.getBoundingClientRect();r.value.width=B.width,r.value.height=B.height}return t.onMounted(()=>{i(),window.addEventListener("resize",i)}),t.onUnmounted(()=>{window.removeEventListener("resize",i)}),{elementSize:r}}const kOt=(e,r)=>{const i=e.__vccOpts||e;for(const[B,D]of r)i[B]=D;return i},nA={name:"ScrollableContainer",props:{backgroundColor:{type:String,default:"#0D1D29"},pxScroll:{type:Number,default:100},arrows:{type:Boolean,default:!0},arrowsHideOnNoScroll:{type:Boolean,default:!1},arrowsScrollHide:{type:Boolean,default:!1},arrowsColor:{type:String,default:"#CBEE6B"},arrowsHeight:{type:Number,default:15},arrowsWidth:{type:Number,default:15},arrowsPadding:{type:Number,default:5},arrowsMargin:{type:Number,default:10},arrowsRadius:{type:String,default:"0%"},arrowsBorder:{type:String,default:"none"},arrowsBackground:{type:String,default:"#0D1D29"},arrowsContainerBgL:{type:String,default:"#0D1D29"},arrowsContainerBgR:{type:String,default:"#0D1D29"},scrollColor:{type:String,default:"#c3e569"},arrowsPosition:{type:String,default:"relative"},height:{type:String,default:"100%"}},data(){return{showLeftArrow:!1,showRightArrow:!0,intervalid1:""}},mounted(){this.getScroll(),this.arrowsHideOnNoScroll&&window.addEventListener("resize",this.resizeSlider),this.arrowsHideOnNoScroll&&this.listenerLoad()},beforeUnmount(){this.arrowsHideOnNoScroll&&window.removeEventListener("resize",this.resizeSlider),this.arrowsHideOnNoScroll&&clearInterval(this.intervalid1)},computed:{getViewBox(){return`-2 0 ${this.arrowsWidth} ${this.arrowsHeight}`},hideShowLeftArrow(){let e="";return this.arrowsPosition=="absolute"?e="leftAbsolute":e="leftRelative",this.arrowsScrollHide?this.showLeftArrow?e+=" showArrowSlide":e+=" hideArrowSlide":e+=" showArrowSlide",e},hideShowRightArrow(){let e="";return this.arrowsPosition=="absolute"?e="rightAbsolute":e="rightRelative",this.arrowsScrollHide?this.showRightArrow?e+=" showArrowSlide":e+=" hideArrowSlide":e+=" showArrowSlide",e}},methods:{scrollLeft(){this.$refs.content.scrollLeft-=this.pxScroll},scrollRight(){this.$refs.content.scrollLeft+=this.pxScroll},getScroll(){let e=0;this.arrowsPosition=="relative"?e=this.$refs.content.scrollWidth-this.$el.clientWidth+this.arrowsMargin*2+this.arrowsWidth*4:e=this.$refs.content.scrollWidth-this.$el.clientWidth,this.$refs.content.scrollLeft==0?this.showLeftArrow=!1:this.showLeftArrow=!0,e>0&&(this.$refs.content.scrollLeft==e?this.showRightArrow=!1:this.showRightArrow=!0),this.arrowsHideOnNoScroll&&this.$refs.content.clientWidth===this.$refs.content.scrollWidth&&(this.showRightArrow=!1)},resizeSlider(){this.getScroll();let e;clearTimeout(e),e=setTimeout(this.getScroll,1e3)},listenerLoad(){this.intervalid1=setInterval((function(){var e=this.$el.clientWidth,r=this.$refs.content.scrollWidth;r>0&&e>0&&(r>e?(this.showRightArrow=!0,clearInterval(this.intervalid1)):clearInterval(this.intervalid1))}).bind(this),3e3)}}},Lq=()=>{t.useCssVars(e=>({"42d3dba6":e.backgroundColor,"4de5d2cf":e.height,"67bafa7b":e.arrowsPosition,"61e1032e":e.arrowsPadding+"px","79a4ac00":e.arrowsBackground,"6b8355c6":e.arrowsHeight*2+"px","29a58368":e.arrowsWidth*2+"px","3622fa64":e.arrowsRadius,"1ba101fe":e.arrowsBorder,"0bafb5e6":e.arrowsMargin+"px","423a44b8":e.arrowsContainerBgL,"423a44be":e.arrowsContainerBgR,"10b117ee":e.scrollColor}))},Dq=nA.setup;nA.setup=Dq?(e,r)=>(Lq(),Dq(e,r)):Lq;const COt={ref:"gscScrollableContainer",class:"scrollable-container"},SOt={class:"scrollable-arrows"},TOt=["width","height","viewBox"],EOt=["stroke"],AOt={class:"scrollable-wrapper"},MOt={class:"scrollable-arrows"},IOt=["width","height","viewBox"],POt=["stroke"];function BOt(e,r,i,B,D,c){return t.openBlock(),t.createElementBlock("div",COt,[i.arrows?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["arrows-container",c.hideShowLeftArrow]),onClick:r[0]||(r[0]=(...g)=>c.scrollLeft&&c.scrollLeft(...g))},[t.createElementVNode("div",SOt,[(t.openBlock(),t.createElementBlock("svg",{width:i.arrowsWidth,height:i.arrowsHeight,viewBox:c.getViewBox,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M6.36523 13.788L1.10146 8.52429C0.479824 7.90265 0.479824 6.88541 1.10147 6.26377L6.36523 1",stroke:i.arrowsColor},null,8,EOt)],8,TOt))])],2)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"scrollable-content scrollable-content-slider",ref:"content",onScroll:r[1]||(r[1]=(...g)=>c.getScroll&&c.getScroll(...g))},[t.createElementVNode("div",AOt,[t.renderSlot(e.$slots,"default",{},void 0,!0)])],544),i.arrows?(t.openBlock(),t.createElementBlock("div",{key:1,id:"arrows-container-right",class:t.normalizeClass(["arrows-container",c.hideShowRightArrow]),onClick:r[2]||(r[2]=(...g)=>c.scrollRight&&c.scrollRight(...g))},[t.createElementVNode("div",MOt,[(t.openBlock(),t.createElementBlock("svg",{width:i.arrowsWidth,height:i.arrowsHeight,viewBox:c.getViewBox,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M0.634765 1.21195L5.89853 6.47571C6.52018 7.09735 6.52018 8.11459 5.89853 8.73623L0.634766 14",stroke:i.arrowsColor},null,8,POt)],8,IOt))])],2)):t.createCommentVNode("",!0)],512)}const NOt=kOt(nA,[["render",BOt],["__scopeId","data-v-b548a08d"]]),zOt=(e,r)=>{const i=e.__vccOpts||e;for(const[B,D]of r)i[B]=D;return i},rA={components:{GSCSlider:NOt},props:{arrow:{type:Boolean,required:!0},buttons:{type:Array,required:!0},width:{type:String,default:"300px"},height:{type:String,default:"80px"},fontSize:{type:String,default:"16px"},colorFont:{type:String,default:"#ffffff"},backgroundOptionActive:{type:String,default:"#0d1d29"},colorOptionActive:{type:String,default:"#cbee6b"},colorOptionDisable:{type:String,default:"gray"},backgroundOptionDisable:{type:String,default:"#0d1d29"},fontFamily:{type:String,default:"Poppins-Semibold"},borderWidth:{type:String,default:"3px"},borderRadius:{type:String,default:"0px"},selectedOption:{type:String,default:""},type:{type:Number,default:0},borderWidthContainer:{type:String,default:"1px"},background:{type:String,default:"#0d1d29"},borderColorContainer:{type:String,default:"#505355"},pxScroll:{type:Number,default:100},scrollColor:{type:String,default:"#c3e569"},arrowsPosition:{type:String,default:"relative"},arrowsScrollHide:{type:Boolean,default:!1},arrowsBackground:{type:String,default:"#0D1D29"},arrowsContainerBgL:{type:String,default:"#0D1D29"},arrowsContainerBgR:{type:String,default:"#0D1D29"},arrowsMargin:{type:Number,default:10},arrowsRadius:{type:String,default:"0%"},arrowsBorder:{type:String,default:"none"}},setup(){const e=t.ref("myDivRef"),{elementSize:r}=wOt(e);return{myDivRef:e,elementSize:r}},methods:{clickEmitEvent(e){this.$emit("input",e)},customGrid(e){var r={};return e.width>768?r={fontSize:"16px"}:e.width>480?r={fontSize:"14px"}:r={fontSize:"12px"},r}}},Rq=()=>{t.useCssVars(e=>({cff4a118:e.fontSize,"42aab7f6":e.borderWidth,d29bcbd2:e.fontFamily,df6c5a9c:e.background,"09b32862":e.borderRadius,"8c0d6daa":e.borderWidthContainer,e8a86fa4:e.borderColorContainer,"179494da":e.colorOptionActive,cea5647c:e.width}))},Vq=rA.setup;rA.setup=Vq?(e,r)=>(Rq(),Vq(e,r)):Rq;const OOt={ref:"myDivRef"},FOt={key:0,class:"gs-switch-container"},LOt=["onClick"],DOt={key:1,class:"gs-switch-container-type"},ROt=["onClick"],VOt={key:2,class:"gs-switch-container-carousel"},$Ot=["onClick"];function jOt(e,r,i,B,D,c){const g=t.resolveComponent("GSCSlider");return t.openBlock(),t.createElementBlock("div",OOt,[i.type==0?(t.openBlock(),t.createElementBlock("div",FOt,[t.createElementVNode("div",{class:"gs-switch-container__control",style:t.normalizeStyle([c.customGrid(B.elementSize)])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i.buttons,(a,y)=>(t.openBlock(),t.createElementBlock("div",{class:"gs-switch-container__control__button-option",style:t.normalizeStyle([{height:i.height},i.selectedOption==a?{borderColor:i.colorOptionActive,color:i.colorFont+"!important",background:i.backgroundOptionActive}:{borderColor:i.colorOptionDisable,color:"grey !important"}]),key:y,onClick:f=>(i.selectedOption=a,c.clickEmitEvent(a))},t.toDisplayString(a),13,LOt))),128))],4),t.renderSlot(e.$slots,i.selectedOption,{},void 0,!0)])):t.createCommentVNode("",!0),i.type==1?(t.openBlock(),t.createElementBlock("div",DOt,[t.createElementVNode("div",{class:"gs-switch-container-type__control",style:t.normalizeStyle([c.customGrid(B.elementSize)])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i.buttons,(a,y)=>(t.openBlock(),t.createElementBlock("div",{class:"gs-switch-container-type__control__button-option-type",style:t.normalizeStyle([{height:i.height},i.selectedOption==a?{borderColor:i.colorOptionActive,color:i.colorFont+"!important",background:i.backgroundOptionActive}:{borderColor:i.colorOptionDisable,borderWidth:"0px",borderWidth:"0px !important",color:"grey !important",background:i.backgroundOptionDisable}]),key:y,onClick:f=>(i.selectedOption=a,c.clickEmitEvent(a))},t.toDisplayString(a),13,ROt))),128))],4)])):t.createCommentVNode("",!0),i.type==2?(t.openBlock(),t.createElementBlock("div",VOt,[t.createVNode(g,{arrows:i.arrow,"background-color":i.background,"px-scroll":i.pxScroll,"scroll-color":i.scrollColor,"arrows-position":i.arrowsPosition,arrowsScrollHide:i.arrowsScrollHide,"arrows-background":i.arrowsBackground,"arrows-container-bg-l":i.arrowsContainerBgL,"arrows-container-bg-r":i.arrowsContainerBgR,"arrows-margin":i.arrowsMargin,"arrows-radius":i.arrowsRadius,"arrows-border":i.arrowsBorder},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i.buttons,(a,y)=>(t.openBlock(),t.createElementBlock("div",{class:"button-option-multi",style:t.normalizeStyle([{height:i.height},i.selectedOption==a?{borderColor:i.colorOptionActive,color:i.colorFont+"!important",background:i.backgroundOptionActive}:{borderColor:i.colorOptionDisable,color:"grey !important"}]),key:y,onClick:f=>(i.selectedOption=a,c.clickEmitEvent(a))},t.toDisplayString(a),13,$Ot))),128))]),_:1},8,["arrows","background-color","px-scroll","scroll-color","arrows-position","arrowsScrollHide","arrows-background","arrows-container-bg-l","arrows-container-bg-r","arrows-margin","arrows-radius","arrows-border"])])):t.createCommentVNode("",!0)],512)}const iA=zOt(rA,[["render",jOt],["__scopeId","data-v-8a86dfaf"]]),K_a="",Q_a="";function UOt(){return{backgroundColor:"#2e3b46",borderColor:"rgba(255, 255, 255, 0.20)",infoBorderColor:"rgba(255, 255, 255, 0.20)",height:"40px",padding:"5px 12px",textFontFamily:"'Poppins-Regular'"}}const eba="",GOt={comfiltersContainer:"_comfiltersContainer_xl2as_1",comfiltersContainer1232:"_comfiltersContainer1232_xl2as_1",closeFiltersPc:"_closeFiltersPc_xl2as_1",comtextleyemdmultipleleagues:"_comtextleyemdmultipleleagues_xl2as_1",comtextleyemdmultipleleagues380:"_comtextleyemdmultipleleagues380_xl2as_1",comfiltersContainer760:"_comfiltersContainer760_xl2as_1",comfiltersContainer460:"_comfiltersContainer460_xl2as_1",comcontainerSection:"_comcontainerSection_xl2as_1",comcontainerSection1232:"_comcontainerSection1232_xl2as_1",comcontainerSection960:"_comcontainerSection960_xl2as_1",comcontainerSection320:"_comcontainerSection320_xl2as_1",comcontainerSection350:"_comcontainerSection350_xl2as_1",comtemplateLosMejores1:"_comtemplateLosMejores1_xl2as_1",comtemplateLosMejores11232:"_comtemplateLosMejores11232_xl2as_1",comtemplateLosMejores1960:"_comtemplateLosMejores1960_xl2as_1",comtemplateLosMejores1420:"_comtemplateLosMejores1420_xl2as_1",comtemplateLosMejores1320:"_comtemplateLosMejores1320_xl2as_1",comtemplateLosMejores1540:"_comtemplateLosMejores1540_xl2as_1",comtemplateLosMejores1350:"_comtemplateLosMejores1350_xl2as_1",comtopFiltersParent:"_comtopFiltersParent_xl2as_1",comtopFiltersParent1232:"_comtopFiltersParent1232_xl2as_1",comtopFiltersParent960:"_comtopFiltersParent960_xl2as_1",comtopFiltersParent460:"_comtopFiltersParent460_xl2as_1",comtopFiltersParent420:"_comtopFiltersParent420_xl2as_1",comcontainerTheBest:"_comcontainerTheBest_xl2as_1",comcontainerTheBest1232:"_comcontainerTheBest1232_xl2as_1",comcontainerTheBest960:"_comcontainerTheBest960_xl2as_1",comcontainerTheBest320:"_comcontainerTheBest320_xl2as_1",comtitleSection:"_comtitleSection_xl2as_1",comtitleSection540:"_comtitleSection540_xl2as_1",comcontainerTables:"_comcontainerTables_xl2as_1",comcontainerTables960:"_comcontainerTables960_xl2as_1",comcontainerTables760:"_comcontainerTables760_xl2as_1",comcontainerTables320:"_comcontainerTables320_xl2as_1",comtoniKroosWrapper:"_comtoniKroosWrapper_xl2as_1",comtoniKroosWrapper1080:"_comtoniKroosWrapper1080_xl2as_1",comtoniKroosWrapper975:"_comtoniKroosWrapper975_xl2as_1",comtoniKroosWrapper760:"_comtoniKroosWrapper760_xl2as_1",comtoniKroosWrapper420:"_comtoniKroosWrapper420_xl2as_1",comtoniKroosWrapper320:"_comtoniKroosWrapper320_xl2as_1",frameChild:"_frameChild_xl2as_1",filtros:"_filtros_xl2as_1",groupParent:"_groupParent_xl2as_1",shapeIcon:"_shapeIcon_xl2as_1",btnFilters:"_btnFilters_xl2as_1",btnFiltersPC:"_btnFiltersPC_xl2as_1",comquitarFiltros:"_comquitarFiltros_xl2as_1",comquitarFiltros730:"_comquitarFiltros730_xl2as_1",comquitarFiltros480:"_comquitarFiltros480_xl2as_1",comquitarFiltros380:"_comquitarFiltros380_xl2as_1",btnCloseFilters:"_btnCloseFilters_xl2as_1",commejoresJugadores:"_commejoresJugadores_xl2as_1",commejoresJugadores730:"_commejoresJugadores730_xl2as_1",commejoresJugadores480:"_commejoresJugadores480_xl2as_1",mejoresJugadoresSM:"_mejoresJugadoresSM_xl2as_1",toniKroos:"_toniKroos_xl2as_1",teamBar:"_teamBar_xl2as_1",commenuSection:"_commenuSection_xl2as_1",commenuSection960:"_commenuSection960_xl2as_1",comcontainerMenu:"_comcontainerMenu_xl2as_1",comcontainerMenu760:"_comcontainerMenu760_xl2as_1",containerFilters:"_containerFilters_xl2as_1",teamBarParent:"_teamBarParent_xl2as_1",comtopFilters:"_comtopFilters_xl2as_1",comtopFilters1232:"_comtopFilters1232_xl2as_1",comtopFilters420:"_comtopFilters420_xl2as_1",comtopFilters460:"_comtopFilters460_xl2as_1",comlosMejores:"_comlosMejores_xl2as_1",comlosMejores380:"_comlosMejores380_xl2as_1",comlosMejores530:"_comlosMejores530_xl2as_1",comlosMejores730:"_comlosMejores730_xl2as_1",commenuSectionHeader:"_commenuSectionHeader_xl2as_1",commenuSectionHeader1232:"_commenuSectionHeader1232_xl2as_1",commenuSectionHeader960:"_commenuSectionHeader960_xl2as_1",commenuSectionHeader730:"_commenuSectionHeader730_xl2as_1",comdropdown:"_comdropdown_xl2as_1",comdropdown730:"_comdropdown730_xl2as_1",comdropdown1:"_comdropdown1_xl2as_1",comdropdown1730:"_comdropdown1730_xl2as_1",comdropdownParent:"_comdropdownParent_xl2as_1",comdropdownParent730:"_comdropdownParent730_xl2as_1",commenuSectionParentHeader:"_commenuSectionParentHeader_xl2as_1",commenuSectionParentHeader1232:"_commenuSectionParentHeader1232_xl2as_1",commenuSectionParentHeader960:"_commenuSectionParentHeader960_xl2as_1",commenuSectionParentHeader730:"_commenuSectionParentHeader730_xl2as_1",commenuSectionParentHeader430:"_commenuSectionParentHeader430_xl2as_1",comdescubreVideos:"_comdescubreVideos_xl2as_1",comdescubreVideos1232:"_comdescubreVideos1232_xl2as_1",comdescubreVideos960:"_comdescubreVideos960_xl2as_1",allCategories:"_allCategories_xl2as_1",containerScountingBtncom:"_containerScountingBtncom_xl2as_3",btnDeleteAplicacom:"_btnDeleteAplicacom_xl2as_13",SearchBtnBarcom:"_SearchBtnBarcom_xl2as_33",btnLeyendTxtcom:"_btnLeyendTxtcom_xl2as_52",BtnSearchScountingcom:"_BtnSearchScountingcom_xl2as_61",containerPredefinedcom:"_containerPredefinedcom_xl2as_85",containerPredefinedScountingcom:"_containerPredefinedScountingcom_xl2as_92",titleContainerPredefinedcom:"_titleContainerPredefinedcom_xl2as_100",subtitleContainerPredefinedcom:"_subtitleContainerPredefinedcom_xl2as_111"},HOt=t.ref(UOt()),WOt={components:{GSCTableHeader:pq,GscSwitchComponent:iA,GSCFilterperteam:$Nt,GSCFilters:YW,GSCExpandedInfo:Iq,GSCLabel:xOt,GSCSeasonSelect:tI,GSCTopCategory:mOt,GSCTournamentSelect:KM,GSCRowTable:_q},computed:{...GBt.computed,filterChangePredefined(){return this.filtersPredefinedF},filterChange(){const e={zone:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],playingAs:[1,2],sections:[1,2,3,4,5,6],matchResult:[1,2,3],arrayAgeRange:[1,60],typeZone:1,setNationalitiesIds:this.fVnationalities,setPositionsIds:[1,2,3,4,5,6,7,8,9],booleanAreNationalTeamsVisible:!1,setAvailableNationalTeamsPlayersIds:new Set},r=JSON.stringify(e);if(JSON.stringify(this.filters)!=r)return r},filterGolstats(){return this.FVfilterGolstats},filterButtonProps(){return{...HOt.value}}},props:{timeLiveComparativeAvanced:{type:Number,default:6e4},currentSeasonId:{type:Number,default:0},typeData:{type:Number,default:1},canPlayVideos:{type:Boolean,default:!1},teamId:{type:Number,default:0},gameId:{type:Number,default:0},isWidget:{type:Boolean,default:!1},teamWidget:{type:Number,default:0},game:{type:Object,default:()=>({})},teamselect:{type:Number,default:0},seasonActive:{type:Number,default:0},defaultSection:{type:String,default:"Jugadores"},backgroundOdd:{type:String,default:"#172531"},backgroundEven:{type:String,default:"#0d1d29"},tournamentsApiUrl:{type:String,default:""}},watch:{async seasonActive(){if(this.seasonActive!=0){this.teams=[];const e=await this.fetchTeams();for(let r=0;r<e.teams.length;r++)this.teams.push({id:e.teams[r].team_id,team:e.teams[r].colloquial_name,logo:e.teams[r].logo})}}},setup(){const e=t.ref("myDivRefTopsFull"),{elementSize:r}=M_(e);return{myDivRefTopsFull:e,elementSize:r}},data(){return{elegibilidadArray:[],updateFilterTeamsScouting:0,modifidFiltersFlag:!1,showfiltersPc:!1,positions:[{name:"Portero",fullname:"POR"},{name:"Defensa central",fullname:"DFC"},{name:"Lateral por izquierda",fullname:"LI"},{name:"Lateral por derecha",fullname:"LD"},{name:"Volante por izquierda",fullname:"VI"},{name:"Volante por derecha",fullname:"VD"},{name:"Volante defensivo",fullname:"VDF"},{name:"Volante ofensivo",fullname:"VO"},{name:"Delantero",fullname:"DEL"},{name:"Desconocida",fullname:"Desc"}],universeData:{minutesPlayed:0,percentMinutesPlayed:0,lastMonths:Array.from({length:24},(e,r)=>r+1),selectedMonth:12,statistics:{totals:!0,averagePerGame:!1,averagePerMinute:!1}},FVbooleanAreNationalTeamsVisible:!1,teamsscouting:[],filterScounting:{tournaments:[1],seasonId:0,categories:[{name:"Goles",ids:[12]},{name:"Asistencias",ids:[10]},{name:"Participaciones en gol",ids:[27]},{name:"Cabeceos en área rival",ids:[330,333,423,577,578,331,334,424]},{name:"Tiros a gol totales",ids:[91,95,92,93,96,97]}],range_age:[10,40],age_or_year:1,year:1989,nationalities:[3,4,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,221,84,85,86,87,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,222,223,224,225,226,227,228,229,230,231,232,233,234,236,237,239],elegibles:[],minutes_played:211,minutes_played_avg:40,last_months:12,type_stats:1,positions:[1,2,3,4,5,6,7,8,9,10],fouls:!1,yellow_cards:!1,red_cards:!1},expand:!1,playerexpand:0,arrayFiltersPlays:[],filtersPredefinedF:{},categoryPredefinedActive:!1,categoryPredefined:0,typeTable:0,keyUpdateFilter:0,loadingActive:!1,isTeam:!1,arrayPredefinedFilters:[],arrayCategoryFilter:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23],arrayCategoryFilterFull:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23],FVsetAvailableNationalTeamsPlayersIds:new Set,showOnlyCategories:!1,showFullCategory:0,categoryName:"",showFullTable:!1,expansionPanelModePropsTypePlays:{isExpansionPanel:!1,templateProps:{boxShadow:"0px 4px 4px rgba(0, 0, 0, 0)",width:"400px",maxWidth:"400px"},expansionPanelProps:{width:"400px",borderRadius:"8px"},fieldComponentProps:{widthContainer:"400px"}},expansionPanelModeProps:{isExpansionPanel:!1,templateProps:{boxShadow:"0px 4px 4px rgba(0, 0, 0, 0)"},expansionPanelProps:{width:"400px",borderRadius:"8px",fontFamily:"'Poppins-Regular'"},fieldComponentProps:{widthContainer:"100%",title:"Elige el área o zona de cancha",titleFontSize:"13px"}},expansionPanelModePropsMobil:{isExpansionPanel:!0,templateProps:{boxShadow:"0px 4px 4px rgba(0, 0, 0, 0)",padding:"20px 0"},expansionPanelProps:{width:"300px",borderRadius:"8px",height:"45px",fontColor:"rgba(255,255,255, 0.7)",textFontSize:"14px",textFontFamily:"'Poppins-Regular'",padding:"0px 10px"},fieldComponentProps:{widthContainer:"100%",title:"Elige el área o zona de cancha",titleFontSize:"12px",widthField:268,widthFieldGrid:"268px",heightField:180,heightFieldGrid:"180px",heightContainer:"280px"}},expansionPanelModePropsMobil270:{isExpansionPanel:!0,templateProps:{boxShadow:"0px 4px 4px rgba(0, 0, 0, 0)",padding:"20px 0"},expansionPanelProps:{width:"270px",borderRadius:"8px",height:"45px",fontColor:"rgba(255,255,255, 0.7)",textFontSize:"14px",textFontFamily:"'Poppins-Regular'",padding:"0px 10px"},fieldComponentProps:{widthContainer:"100%",title:"Elige el área o zona de cancha",titleFontSize:"12px",widthField:268,widthFieldGrid:"268px",heightField:180,heightFieldGrid:"180px",heightContainer:"280px"}},filters:{zone:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],playingAs:[1,2],sections:[1,2,3,4,5,6],matchResult:[1,2,3],arrayAgeRange:[1,60],typeZone:1,setNationalitiesIds:this.setNationalitiesIds,setPositionsIds:[1,2,3,4,5,6,7,8,9],booleanAreNationalTeamsVisible:!1,setAvailableNationalTeamsPlayersIds:new Set},detaildProductivityCategories:{offensive:{title:"Ofensivo",categories:[{name:"Goles",isSelected:!1,id:[12]},{name:"Asistencias",isSelected:!1,id:[10]},{name:"Participaciones en gol",isSelected:!1,id:[27]},{name:"Cabeceos en área rival",isSelected:!1,id:[330,333,423,577,578,331,334,424]},{name:"Tiros a gol totales",isSelected:!1,id:[91,95,92,93,96,97]},{name:"Tiros a gol con destino a portería",isSelected:!1,id:[91,95]},{name:"Tiros a gol fuera del área",isSelected:!1,id:[94]},{name:"Tiros a gol fuera del área con destino a portería",isSelected:!1,id:[95]},{name:"Tiros a gol dentro del área",isSelected:!1,id:[90]},{name:"Tiros a gol dentro del área con destino a portería",isSelected:!1,id:[91]},{name:"Centros por izquierda",isSelected:!1,id:[13]},{name:"Centros por izquierda acertados",isSelected:!1,id:[98,101,104,105]},{name:"Centros por derecha",isSelected:!1,id:[25]},{name:"Centros por derecha acertados",isSelected:!1,id:[109,112,115,116]},{name:"1vs1 exitosos ofensivos",isSelected:!1,id:[4]},{name:"1vs1 que terminan en gol",isSelected:!1,id:[88]}]},defensive:{title:"Defensivo",categories:[{name:"Bálones ganados en área propia",isSelected:!1,id:[234,241,281,288,399,401,211,231,238,244,280,287,294]},{name:"Cabeceo en área propia",isSelected:!1,id:[211,231,238,244,280,287,294]},{name:"1vs1 defensivos exitosos",isSelected:!1,id:[5]},{name:"Rechaces",isSelected:!1,id:[34]}]},possession:{title:"Posesión",categories:[{name:"Bálones recuperados totales",isSelected:!1,id:[222,223,224,225]},{name:"Bálones recuperados 1/4 de cancha",isSelected:!1,id:[222]},{name:"Bálones recuperados 2/4 de cancha",isSelected:!1,id:[223]},{name:"Bálones recuperados 3/4 de cancha",isSelected:!1,id:[224]},{name:"Bálones recuperados 4/4 de cancha",isSelected:!1,id:[225]},{name:"Pases acertados",isSelected:!1,id:[213,214,215,216]},{name:"Pases acertados en 1/4 de cancha",isSelected:!1,id:[213]},{name:"Pases acertados en 2/4 de cancha",isSelected:!1,id:[214]},{name:"Pases acertados en 3/4 de cancha",isSelected:!1,id:[215]},{name:"Pases acertados en 4/4 de cancha",isSelected:!1,id:[216]}]},offensesConditions:{areYellowCardSelected:!1,areRedCardSelected:!1,areFoulsCommittedSelected:!1}},detailsObject:{playingAs:[{name:"Local",isSelected:!0},{name:"Visitante",isSelected:!0}],gameSections:[{text:"0-15",value:1,isSelected:!0},{text:"16-30",value:2,isSelected:!0},{text:"31-45",value:3,isSelected:!0},{text:"46-60",value:4,isSelected:!0},{text:"61-75",value:5,isSelected:!0},{text:"76-90",value:6,isSelected:!0}]},nameLeagueSelected:"",categoriesPlaysTypes:{offensive:{title:"Ofensivo",categories:[{name:"Goles",isSelected:!0,id:1},{name:"Tiros a gol",isSelected:!0,id:6},{name:"Tiros a gol con destino a portería",isSelected:!0,id:7},{name:"Asistencias",isSelected:!0,id:4},{name:"Centros",isSelected:!0,id:10},{name:"Centros acertados",isSelected:!0,id:11},{name:"Participaciones en gol",isSelected:!0,id:5},{name:"1vs1 exitosos ofensivos",isSelected:!0,id:12},{name:"1vs1 exitosos ofensivos que terminan en gol",isSelected:!0,id:13},{name:"Balones ganados en área rival",isSelected:!0,id:17},{name:"Cabeceos en área rival",isSelected:!0,id:8},{name:"Tiros de esquina",isSelected:!0,id:23}]},defensive:{title:"Defensivo",categories:[{name:"1vs1 defensivos exitosos",isSelected:!0,id:14},{name:"Cabeceo en área propia",isSelected:!0,id:9},{name:"Balones ganados en área propia",isSelected:!0,id:16},{name:"Rechaces",isSelected:!0,id:15},{name:"Atajadas",isSelected:!0,id:22}]},possession:{title:"Posesión",categories:[{name:"Pases acertados",isSelected:!0,id:2},{name:"Balones recuperados en disputa",isSelected:!0,id:3}]},offenses:{title:"Infracciones",categories:[{name:"Faltas cometidas",isSelected:!0,id:18},{name:"Faltas recibidas",isSelected:!0,id:19},{name:"Tarjetas amarillas",isSelected:!0,id:20},{name:"Tarjetas rojas",isSelected:!0,id:21}]},offensesConditions:{areYellowCardSelected:!1,areRedCardSelected:!1,areFoulsCommittedSelected:!1}},categoriesDefault:[{id:1,name:"Goles",isSelected:!1},{id:2,name:"Pases acertados",isSelected:!1},{id:23,name:"Tiros de Esquina",isSelected:!1},{id:3,name:"Balones recuperados en disputa",isSelected:!1},{id:4,name:"Asistencias",isSelected:!1},{id:5,name:"Participaciones en gol",isSelected:!1},{id:6,name:"Tiros a gol",isSelected:!1},{id:7,name:"Tiros a gol que llegaron a la portería",isSelected:!1},{id:8,name:"Cabeceos en área rival",isSelected:!1},{id:9,name:"Cabeceos en área propia",isSelected:!1},{id:10,name:"Centros",isSelected:!1},{id:11,name:"Centros acertados",isSelected:!1},{id:12,name:"1vs1 exitosos ofensivos",isSelected:!1},{id:13,name:"1vs1 exitosos ofensivos que terminaron en gol",isSelected:!1},{id:14,name:"1vs1 defensivos exitoso",isSelected:!1},{id:15,name:"Rechaces",isSelected:!1},{id:16,name:"Balones ganados en área propia",isSelected:!1},{id:17,name:"Balones ganados en área rival",isSelected:!1},{id:18,name:"Faltas cometidas",isSelected:!1},{id:19,name:"Faltas recibidas",isSelected:!1},{id:20,name:"Tarjetas amarillas",isSelected:!1},{id:21,name:"Tarjetas rojas",isSelected:!1},{id:22,name:"Atajadas",isSelected:!1}],seasonsFilterSelected:0,tournamentsToFilter:[{name:"Liga MX",logo:"https://az755631.vo.msecnd.net/tournaments/liga_mx.png",isSelected:!0,id:1,show_logos:1,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1772,type:0},{name:"Clausura 2023",related_seasons:[{type:2,id:1745},{type:1,id:1746}],id:1694,type:0},{name:"Apertura 2022",related_seasons:[{type:2,id:1591},{type:1,id:1594}],id:1535,type:0},{name:"Grita Mexico C22",related_seasons:[{type:2,id:1520},{type:1,id:1525}],id:1476,type:0},{name:"Grita Mexico A21",related_seasons:[{type:2,id:1446},{type:1,id:1456}],id:1401,type:0},{name:"Guard1anes Clausura 2021",related_seasons:[{type:2,id:1382},{type:1,id:1383}],id:1325,type:0},{name:"Guard1anes 2020",related_seasons:[{type:2,id:1311},{type:1,id:1316}],id:1275,type:0},{name:"Clausura 2020",related_seasons:[],id:1239,type:0},{name:"Apertura 2019",related_seasons:[{type:1,id:1231}],id:1155,type:0},{name:"Clausura 2019",related_seasons:[{type:1,id:1135}],id:1093,type:0},{name:"Apertura 2018",related_seasons:[{type:1,id:1075}],id:1002,type:0}]},{name:"Liga MX Femenil",logo:"https://az755631.vo.msecnd.net/tournaments/femenil_mx.png",isSelected:!0,id:1001,show_logos:1,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1777,type:0},{name:"Clausura 2023",related_seasons:[{type:1,id:1747}],id:1696,type:0},{name:"Apertura 2022",related_seasons:[{type:1,id:1655}],id:1539,type:0},{name:"Grita Mexico C22",related_seasons:[{type:1,id:1523}],id:1485,type:0},{name:"Grita Mexico A21",related_seasons:[{type:1,id:1458}],id:1402,type:0},{name:"Guard1anes Clausura 2021",related_seasons:[{type:1,id:1384}],id:1323,type:0},{name:"Guard1anes 2020",related_seasons:[{type:1,id:1318}],id:1283,type:0},{name:"Clausura 2020",related_seasons:[],id:1241,type:0},{name:"Apertura 2019",related_seasons:[{type:1,id:1227}],id:1157,type:0},{name:"Clausura 2019",related_seasons:[{type:1,id:1132}],id:1095,type:0},{name:"Apertura 2018",related_seasons:[{type:1,id:1072}],id:1004,type:0},{name:"Clausura 2018",related_seasons:[{type:1,id:1237}],id:1236,type:0}]},{name:"Liga Expansion MX",logo:"https://az755631.vo.msecnd.net/tournaments/expansion_mx.png",isSelected:!0,id:1071,show_logos:1,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1776,type:0},{name:"Clausura 2023",related_seasons:[{type:2,id:1742},{type:1,id:1748}],id:1695,type:0},{name:"Apertura 2022",related_seasons:[{type:2,id:1598},{type:1,id:1618}],id:1544,type:0},{name:"Grita Mexico C22",related_seasons:[{type:2,id:1515},{type:1,id:1519}],id:1484,type:0},{name:"Grita Mexico A21",related_seasons:[{type:2,id:1454},{type:1,id:1463}],id:1408,type:0},{name:"Guard1anes Clausura 2021",related_seasons:[{type:2,id:1378},{type:1,id:1380}],id:1327,type:0},{name:"Guard1anes 2020",related_seasons:[{type:2,id:1315},{type:1,id:1317}],id:1287,type:0}]},{name:"Sub-23",logo:null,isSelected:!0,id:1143,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1785,type:0}]},{name:"Sub-18",logo:null,isSelected:!0,id:1096,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1782,type:0},{name:"Clausura 2023",related_seasons:[{type:1,id:1751}],id:1714,type:0},{name:"Apertura 2022",related_seasons:[{type:1,id:1593}],id:1543,type:0},{name:"Grita Mexico C22",related_seasons:[{type:1,id:1522}],id:1487,type:0}]},{name:"Sub-16",logo:null,isSelected:!0,id:1095,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1783,type:0},{name:"Clausura 2023",related_seasons:[{type:1,id:1750}],id:1715,type:0},{name:"Apertura 2022",related_seasons:[{type:1,id:1652}],id:1541,type:0},{name:"Grita Mexico C22",related_seasons:[{type:1,id:1527}],id:1488,type:0}]}],isCup:!1,arrayPredefinedOrigin:[],indexPredefinedFiltersSelected:0,predefinedFiltersMatchLapse:[],predefinedFiltersPlayingAs:[],predefinedFiltersSections:[],updateTables:0,updateTablesfull:0,optionSelected:"Jugadores",optionSelectedSubmenu:"Todas las jugadas",tournamentsUrl:"https://17zyhpyc7c.execute-api.us-west-2.amazonaws.com/prod/tournaments",teamsUrl:"https://d2oco6mqmc.execute-api.us-west-2.amazonaws.com/prod/teamsBySeason/",urlFilter:"https://cqqxaonvm6.execute-api.us-east-2.amazonaws.com/prod/gs2/tops/filters?categories=",retries:3,teams:[],updateFilterGolstats:0,updateFilterPlaytypesGolstats:0,arrayTournaments:[],arraySeasons:{},seasonBytournament:[],updateFilterTeamsScouting:0,filtersTypes:er,token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",fVnationalities:new Set,fVzone:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],fVplayingAs:[1,2],fVsections:[1,2,3,4,5,6],fVmatchResult:[1,2,3],fVarrayAgeRange:[10,40],FVeligible:[],FVYear:1900,keyTournamentValue:0,fVtypeZone:2,fVsetPositionsIds:[1,2,3,4,5,6,7,8,9],currentIndex:-1,delay:800,teamselectrec:0,tournamentSelected:0,tournamentSelectedObj:{},FVfilterGolstats:[],updateFilterField:0,rowScoutingData:[],openMenuMobil:!1,selectedTournament:{seasons:[]},selectedSeasonObj:{}}},methods:{getnameshort(e){var r=e.split(","),i=r[0].split(" "),B=r[1].trim().split(" "),D="";i.length==2||i.length==1?i[0].length<4?D=i[0]+" "+i[1]:D=i[0]:i.length==3?D=i[0]+" "+i[1]:i.length==4&&(D=i[1]+" "+i[2]+" "+i[3]);var c=B[B.length-1]!=""?B[B.length-1].charAt(0):B[B.length-2]?B[B.length-2].charAt(0):"";return D=D.replace(",",""),c+". "+D},setUpTournamentsToFilter(){this.tournamentsToFilter.forEach(e=>{const r=e.id===this.selectedTournament.id;e.isSelected=r,e.isDefaultTournament=r})},async onClickDeleteFilter(){if(this.optionSelectedSubmenu=="Predeterminados")this.resetPredefinedTeamAll();else{this.rowScoutingData=[];for(let B=0;B<this.detaildProductivityCategories.offensive.categories.length;B++)this.detaildProductivityCategories.offensive.categories[B].isSelected=!1;for(let B=0;B<this.detaildProductivityCategories.defensive.categories.length;B++)this.detaildProductivityCategories.defensive.categories[B].isSelected=!1;for(let B=0;B<this.detaildProductivityCategories.possession.categories.length;B++)this.detaildProductivityCategories.possession.categories[B].isSelected=!1;for(let B=0;B<this.detaildProductivityCategories.offensesConditions.length;B++)this.detaildProductivityCategories.offensesConditions[B]=!1;this.setUpTournamentsToFilter();const r=this.$refs.personalDataFilter;r.clearFilters(hd.All),r.clearFilters(hd.AGE_RANGE),r.clearFilters(hd.YEAR),r.clearFilters(hd.NATIONALITY),r.clearFilters(hd.POSITION),this.universeData.minutesPlayed=0,this.universeData.percentMinutesPlayed=0,this.universeData.lastMonths=Array.from({length:24},(B,D)=>D+1),this.universeData.statistics.totals=!0,this.universeData.statistics.averagePerGame=!1,this.universeData.statistics.percentMinutesPlayed=!1;var e=this.arrayFiltersPlays.findIndex(B=>B.type==="onFiltersTournaments");this.arrayFiltersPlays.splice(e,1);const i=await this.fetchTeamsScouting(this.currentSeasonId);this.teamselect=0,this.teamsscouting=[];for(let B=0;B<i.teams.length;B++)this.teamsscouting.push({id:i.teams[B].team_id,team:i.teams[B].colloquial_name,logo:i.teams[B].logo});setTimeout(()=>{this.modifidFiltersFlag=!1},200)}},clickOpenFilters(){this.showfiltersPc=!0},clickCloseFilters(){this.showfiltersPc=!1},async selectedSeason(e){this.seasonActive!==e.id&&(this.seasonActive=e.id,this.resetPredefinedTeamAll(),this.$emit("change-season-id",e.id))},changeTournament(e){e.id!==this.selectedTournament.id&&(this.selectedTournament=e,this.tournamentSelectedObj={propName:"id",value:e.id},this.teamselect=0,this.resetPredefinedTeamAll(),this.setUpTournamentsToFilter())},changeTournamentMovil(e){this.tournamentSelectedObj={propName:"id",value:e.id},this.seasonBytournament=e.seasons,this.teamselect=0},selectedSeasonMovil(e){this.seasonActive=e.id},setRelevantCategoriesPlayer(e){return e===1?[39,40,52,53,54,55,323,324,608,774,802]:[10,12,14,15,27,35,61,217,257,466,519,607,702,730,98,101,109,112,121,122,127,128,135,136,141,142,161,170,179,211,232,235,239,242,282,284,289,291,296,485,486,487,488]},setOpenMedia(e){this.$emit("openmedia",e)},setMediaData(e){let D=[e.id],c=e.team_id;const g={seasonId:e.season_id,isFeaturedPlayers:!1,mainSectionType:1,playListType:2,gameIds:null,playerIds:D,goalkeeperIds:[],categoryIds:this.setRelevantCategoriesPlayer(e.position),teamId:c||0,matchResult:[1,2,3],categorySingleName:"",isRivalSubject:!1,avoidCategorySingleName:!1,currentPlayIndex:0,playData:null,lastClashedGameId:null,tournamentsLastClashes:null,advancedFilter:{playListTitle:"Jugadas Relevantes"}};this.$emit("openmedia",g)},clickprofile(e){e.isTeam?this.$emit("openProfileTeam",{teamId:e.id,seasonId:this.seasonActive}):this.$emit("openProfilePlayer",{playerId:e.id,teamId:e.teamId,seasonId:this.seasonActive})},viewprofile(e,r,i){this.$emit("openProfilePlayer",{playerId:e,teamId:i,seasonId:r||this.seasonActive})},openMenuFilters(){this.openMenuMobil=!this.openMenuMobil,this.showfiltersPc=!0},clickexpand(e){this.expand=e.expand,this.playerexpand=e.id},async getScoutingData(){this.arrayFiltersPlays=[],this.loadingActive=!0;const e=$c.create({headers:{Authorization:`${this.token}`}}),{data:r}=await e.post("https://eh9nhj69z7.execute-api.us-west-2.amazonaws.com/prod/players/productivity",this.filterScounting,{headers:{"Content-Type":"application/json"}});if(this.filterScounting.tournaments.length>0){var i=this.arrayFiltersPlays.findIndex(D=>D.type==="onFiltersTournaments");i!==-1?this.arrayFiltersPlays[i].name=this.filterScounting.tournaments.length>1?"Ligas "+this.filterScounting.tournaments.length:this.nameLeagueSelected!=""?this.nameLeagueSelected:"Liga MX":this.arrayFiltersPlays.push({name:this.filterScounting.tournaments.length>1?"Ligas "+this.filterScounting.tournaments.length:this.nameLeagueSelected!=""?this.nameLeagueSelected:"Liga MX",type:"onFiltersTournaments"})}this.rowScoutingData=[];for(let D=0;D<r.length;D++){r[D];let g=r[D].dob.split("T")[0].split("-");var B={position:D+1,player_name:this.abrevName(r[D].name),player_photo:"https://az755631.vo.msecnd.net/players-profile/"+r[D].player_id+".png",total:r[D].total.toFixed(0),id:r[D].player_id,player_age:this.calcularEdad(r[D].dob),team_abrev:r[D].teams[0].acronym,team_name:r[D].teams[0].team_name,team_logo:"https://az755631.vo.msecnd.net/teams-80/"+r[D].teams[0].team_id+".png",player_position:r[D].position_id,player_country_flag:"https://az755631.vo.msecnd.net/flags/"+r[D].nationality_id+".jpg",date:g[2]+"."+g[1]+"."+g[0].substring(2,4),team_id:r[D].team_id,nationality_name:zq[r[D].nationality_id],player_games:r[D].games_played,player_min:r[D].minutes_played,league_name:r[D].tournament_name,seasons:r[D].seasons,season_id:r[D].seasons[0]};this.rowScoutingData.push(B)}if(this.seasonsFilterSelected!=0){const D=await this.fetchTeamsScouting(this.seasonsFilterSelected);this.teamselect=0,this.teamselectrec=0,this.teamsscouting=[];for(let c=0;c<D.teams.length;c++)this.teamsscouting.push({id:D.teams[c].team_id,team:D.teams[c].colloquial_name,logo:D.teams[c].logo})}this.loadingActive=!1},abrevName(e){var r=e.split(","),i=r[0].split(" "),B=r[1].trim().split(" "),D="";i.length==2||i.length==1?i[0].length<4?D=i[0]+" "+i[1]:D=i[0]:i.length==3?D=i[0]+" "+i[1]:i.length==4&&(D=i[1]+" "+i[2]+" "+i[3]);var c=B[B.length-1]!=""?B[B.length-1].charAt(0):B[B.length-2]?B[B.length-2].charAt(0):"";D=D.replace(",","");var g=c+". "+D;return g},calcularEdad(e){var r=new Date(e),i=new Date,B=i-r,D=Math.floor(B/(1e3*60*60*24*365.25));return D},async onFiltersTournaments(e){this.modifidFiltersFlag=!0;var r=[];for(let i=0;i<e.length;i++)e[i].isSelected&&r.push(e[i].id);if(r.length==0&&(r=[1]),r.length==1)for(let i=0;i<e.length;i++)e[i].isSelected&&(this.nameLeagueSelected=e[i].name,this.seasonsFilterSelected=e[i].seasons[0].id);else this.seasonsFilterSelected=0,r.length>0&&(this.nameLeagueSelected=r.length+" Ligas");this.filterScounting.tournaments=r,this.filterScounting.seasonId=e[0].seasons[0].id},onFiltersPersonalData(e){if(this.modifidFiltersFlag=!0,e.hasOwnProperty("ageByRange")){const B=e.ageByRange.min==0?10:e.ageByRange.min,D=e.ageByRange.max==0?40:e.ageByRange.max;this.filterScounting.range_age=[B,D],this.filterScounting.age_or_year=1}else this.filterScounting.range_age=[];e.hasOwnProperty("year")?(this.filterScounting.year=e.year,this.filterScounting.age_or_year=0):this.filterScounting.year=0;var r=[];if(e.hasOwnProperty("nationalities")){for(let B=0;B<e.nationalities.length;B++)e.nationalities[B].isSelected&&r.push(e.nationalities[B].id);r.length==0&&(r=[3,4,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,221,84,85,86,87,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,222,223,224,225,226,227,228,229,230,231,232,233,234,236,237,239])}this.filterScounting.elegibles=[],e.hasOwnProperty("eligibility")&&(this.filterScounting.elegibles=[e.eligibility[0].id]);var i=[];for(let B=0;B<e.positions.length;B++)e.positions[B].isSelected&&i.push(e.positions[B].id);i.length==0&&(i=[1,2,3,4,5,6,7,8,9,10]),this.filterScounting.positions=i,this.filterScounting.nationalities=r},onFiltersUniverse(e){this.modifidFiltersFlag=!0,this.filterScounting.minutes_played=Number(e.minutesPlayed),this.filterScounting.last_months=Number(e.lastMonths),this.filterScounting.minutes_played_avg=Number(e.percentMinutesPlayed),this.filterScounting.type_stats=e.statistics.averagePerGame?3:e.statistics.averagePerMinute?2:1},onFiltersProductivity(e){this.modifidFiltersFlag=!0;var r=[];for(let i=0;i<e.productivityFilters.length;i++)r[e.productivityFilters[i].priority-1]={name:e.productivityFilters[i].name,ids:e.productivityFilters[i].id};r.length==0&&(r=[]),this.filterScounting.categories=r,this.filterScounting.fouls=e.offensesConditions.areFoulsCommittedSelected,this.filterScounting.yellow_cards=e.offensesConditions.areYellowCardsSelected,this.filterScounting.red_cards=e.offensesConditions.areRedCardsSelected},onFiltersGolStats(e){if(e.length>0){var r=this.arrayFiltersPlays.findIndex(B=>B.type==="onFiltersPredefined");r!==-1?this.arrayFiltersPlays[r].name=e[0].name:this.arrayFiltersPlays.push({name:e[0].name,type:"onFiltersPredefined"}),this.filtersPredefinedF=e[0].filters}else{var i=this.arrayFiltersPlays.findIndex(B=>B.type==="onFiltersPredefined");if(this.FVfilterGolstats.length>0&&i!==-1){this.filtersPredefinedF=this.filters;for(let D=0;D<this.FVfilterGolstats.length;D++)this.FVfilterGolstats[D].isSelected=!1;var i=this.arrayFiltersPlays.findIndex(D=>D.type==="onFiltersPredefined");i!==-1&&this.arrayFiltersPlays.splice(i,1),this.updateFilterGolstats+=1}}},shouldRender(e){return e<=this.currentIndex},renderNext(){this.currentIndex++,this.currentIndex<this.categoriesDefault.length&&setTimeout(()=>{this.$nextTick(()=>{this.renderNext()})},this.delay)},async onFiltersPlaysTypes(e){if(e.length>0){this.categoryPredefinedActive=!0,this.loadingActive=!0,this.categoryPredefined=e[0].id;var r=this.arrayFiltersPlays.findIndex(B=>B.type==="onFiltersPredefined");if(this.categoriesDefault.length>0&&r!==-1){this.FVfilterGolstats=[],this.filtersPredefinedF={},this.arrayFiltersPlays.splice(r,1);var i=this.arrayFiltersPlays.findIndex(B=>B.type==="onFiltersPredefined");if(i!==-1){for(let B=0;B<this.FVfilterGolstats.length;B++)this.FVfilterGolstats[B].isSelected=!1;i!==-1&&this.arrayFiltersPlays.splice(i,1),this.updateFilterGolstats+=1}}this.updateTables+=1,setTimeout(()=>{this.loadingActive=!1},1e3),await this.getPredefinedfilters(e[0]),this.FVfilterGolstats.length>0&&(this.onFiltersGolStats([this.FVfilterGolstats[0]]),this.FVfilterGolstats[0].isSelected=!0)}else{var r=this.arrayFiltersPlays.findIndex(D=>D.type==="onFiltersPredefinedCategory");if(this.categoriesDefault.length>0&&r!==-1){this.categoryPredefinedActive=!1,this.categoryPredefined=0,this.FVfilterGolstats=[],this.filtersPredefinedF=this.filters,this.arrayFiltersPlays.splice(r,1);for(let c=0;c<this.categoriesDefault.length;c++)this.categoriesDefault[c].isSelected=!1;this.updateFilterPlaytypesGolstats+=1;var i=this.arrayFiltersPlays.findIndex(c=>c.type==="onFiltersPredefined");if(this.FVfilterGolstats.length>0&&i!==-1){for(let c=0;c<this.FVfilterGolstats.length;c++)this.FVfilterGolstats[c].isSelected=!1;i!==-1&&this.arrayFiltersPlays.splice(i,1),this.updateFilterGolstats+=1}}}},deleteCategoryFilter(){this.categoryName="",this.showFullCategory=0,this.showFullTable=!1,delete this.filters.aux},onShowFullTable(e){this.categoryName=e.categoryName,this.showFullCategory=e.category,this.showFullTable=!0,this.loadingActive=!0,setTimeout(()=>{this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,aux:this.getRandomNumber(1,1e4),booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds},this.loadingActive=!1},1e3)},getRandomNumber(e,r){return Math.floor(Math.random()*(r-e+1))+e},applyFiltersBtn(e){},onFiltersPlays(e){if(this.arrayCategoryFilter=[],this.arrayCategoryFilterFull=[],e.playsCategories.length==0){for(let i=0;i<this.categoriesPlaysTypes.offensive.categories.length;i++)this.arrayCategoryFilter.push(this.categoriesPlaysTypes.offensive.categories[i].id),this.arrayCategoryFilterFull.push(this.categoriesPlaysTypes.offensive.categories[i]);for(let i=0;i<this.categoriesPlaysTypes.defensive.categories.length;i++)this.arrayCategoryFilter.push(this.categoriesPlaysTypes.defensive.categories[i].id),this.arrayCategoryFilterFull.push(this.categoriesPlaysTypes.offensive.categories[i]);for(let i=0;i<this.categoriesPlaysTypes.possession.categories.length;i++)this.arrayCategoryFilter.push(this.categoriesPlaysTypes.possession.categories[i].id),this.arrayCategoryFilterFull.push(this.categoriesPlaysTypes.offensive.categories[i]);for(let i=0;i<this.categoriesPlaysTypes.offenses.categories.length;i++)this.arrayCategoryFilter.push(this.categoriesPlaysTypes.offenses.categories[i].id),this.arrayCategoryFilterFull.push(this.categoriesPlaysTypes.offensive.categories[i])}else for(let i=0;i<e.playsCategories.length;i++)e.playsCategories[i].isSelected&&(this.arrayCategoryFilter.push(e.playsCategories[i].id),this.arrayCategoryFilterFull.push(e.playsCategories[i]));var r=this.arrayFiltersPlays.findIndex(i=>i.type==="onFiltersPlays");this.arrayCategoryFilter.length>0&&this.arrayCategoryFilter.length!=23?this.arrayCategoryFilter.length==1?r!=-1?this.arrayFiltersPlays[r].name=this.arrayCategoryFilterFull[0].name:this.arrayFiltersPlays.push({name:this.arrayCategoryFilterFull[0].name,type:"onFiltersPlays"}):r!=-1?this.arrayFiltersPlays[r].name=this.arrayCategoryFilterFull.length+" Tipos de jugadas":this.arrayFiltersPlays.push({name:this.arrayCategoryFilterFull.length+" Tipos de jugadas",type:"onFiltersPlays"}):r!==-1&&this.arrayFiltersPlays.splice(r,1)},async deleteLabelFilter(e){var r=this.arrayFiltersPlays.findIndex(B=>B.type===e);if(r!==-1){if(e=="onFiltersTournaments"){this.rowScoutingData=[];for(let D=0;D<this.detaildProductivityCategories.offensive.categories.length;D++)this.detaildProductivityCategories.offensive.categories[D].isSelected=!1;for(let D=0;D<this.detaildProductivityCategories.defensive.categories.length;D++)this.detaildProductivityCategories.defensive.categories[D].isSelected=!1;for(let D=0;D<this.detaildProductivityCategories.possession.categories.length;D++)this.detaildProductivityCategories.possession.categories[D].isSelected=!1;for(let D=0;D<this.detaildProductivityCategories.offensesConditions.length;D++)this.detaildProductivityCategories.offensesConditions[D]=!1;this.setUpTournamentsToFilter(),this.universeData.minutesPlayed=10,this.universeData.percentMinutesPlayed=0,this.universeData.lastMonths=Array.from({length:24},(D,c)=>c+1),this.universeData.statistics.totals=!0,this.universeData.statistics.averagePerGame=!1,this.universeData.statistics.percentMinutesPlayed=!0;const B=await this.fetchTeamsScouting(this.currentSeasonId);this.teamsscouting=[];for(let D=0;D<B.teams.length;D++)this.teamsscouting.push({id:B.teams[D].team_id,team:B.teams[D].colloquial_name,logo:B.teams[D].logo});this.keyTournamentValue+=1,setTimeout(()=>{this.modifidFiltersFlag=!1},200)}if(e=="onFiltersPlays"){for(let B=0;B<this.categoriesPlaysTypes.offensive.categories.length;B++)this.categoriesPlaysTypes.offensive.categories[B].isSelected=!0;for(let B=0;B<this.categoriesPlaysTypes.defensive.categories.length;B++)this.categoriesPlaysTypes.defensive.categories[B].isSelected=!0,this.arrayCategoryFilter.push(),this.arrayCategoryFilterFull.push(this.categoriesPlaysTypes.offensive.categories[B]);for(let B=0;B<this.categoriesPlaysTypes.possession.categories.length;B++)this.categoriesPlaysTypes.possession.categories[B].isSelected=!0;for(let B=0;B<this.categoriesPlaysTypes.offenses.categories.length;B++)this.categoriesPlaysTypes.offenses.categories[B].isSelected=!0}if(e=="onFiltersField"&&(this.fVzone=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds}),e=="onFiltersPredefined"){this.filtersPredefinedF=this.filters;for(let B=0;B<this.FVfilterGolstats.length;B++)this.FVfilterGolstats[B].isSelected=!1;this.updateFilterGolstats+=1,this.resetPredefinedTeamAll()}if(e=="onFiltersPredefinedCategory"){this.categoryPredefinedActive=!1,this.categoryPredefined=0,this.FVfilterGolstats=[],this.filtersPredefinedF=this.filters;var i=this.arrayFiltersPlays.findIndex(B=>B.type==="onFiltersPredefined");i!==-1&&this.arrayFiltersPlays.splice(i,1);for(let B=0;B<this.categoriesDefault.length;B++)this.categoriesDefault[B].isSelected=!1;this.updateFilterPlaytypesGolstats+=1}e=="onFiltersDetailsTime"&&(this.detailsObject.gameSections[0].isSelected=!0,this.detailsObject.gameSections[1].isSelected=!0,this.detailsObject.gameSections[2].isSelected=!0,this.detailsObject.gameSections[3].isSelected=!0,this.detailsObject.gameSections[4].isSelected=!0,this.detailsObject.gameSections[5].isSelected=!0,this.fVsections=[1,2,3,4,5,6],this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds}),e=="onFiltersDetailsPlayingAs"&&(this.detailsObject.playingAs[0].isSelected=!0,this.detailsObject.playingAs[1].isSelected=!0,this.fVplayingAs=[1,2],this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds}),e=="onFiltersNationality"&&(this.fVnationalities.add(138),this.fVnationalities.add(222),this.fVnationalities.add(163),this.fVnationalities.add(51),this.fVnationalities.add(226),this.fVnationalities.add(10),this.fVnationalities.add(223),this.fVnationalities.add(96),this.fVnationalities.add(171),this.fVnationalities.add(198),this.fVnationalities.add(105),this.fVnationalities.add(80),this.fVnationalities.add(29),this.fVnationalities.add(74),this.fVnationalities.add(216),this.fVnationalities.add(196),this.fVnationalities.add(64),this.fVnationalities.add(155),this.fVnationalities.add(156),this.fVnationalities.add(89),this.fVnationalities.add(106),this.fVnationalities.add(81),this.fVnationalities.add(233),this.fVnationalities.add(204),this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds},this.$refs.personalDataFilterPlayers.clearFilters(hd.NATIONALITY)),e=="onFiltersPosition"&&(this.fVsetPositionsIds=[1,2,3,4,5,6,7,8,9],this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds},this.$refs.personalDataFilterPlayers.clearFilters(hd.POSITION)),e=="onFiltersAge"&&(this.fVarrayAgeRange=[10,40],this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds},this.$refs.personalDataFilterPlayers.clearFilters(hd.AGE_RANGE)),e=="onFiltersElegibility"&&this.$refs.personalDataFilterPlayers.clearFilters(hd.ELIGIBILITY),e=="onFiltersYear"&&(this.$refs.personalDataFilterPlayers.clearFilters(hd.YEAR),this.FVYear=1900,this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds})}this.arrayFiltersPlays.splice(r,1)},onFiltersField(e){e.length==0?this.fVzone=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16]:this.fVzone=e;var r=this.arrayFiltersPlays.findIndex(B=>B.type==="onFiltersField");r!=-1?this.arrayFiltersPlays[r].name=this.fVzone.length+" zonas del campo":this.arrayFiltersPlays.push({name:this.fVzone.length+" zonas del campo",type:"onFiltersField"}),[1,23,3,4,5,7,6,9,8,11,10,12,13,15,14,17,16,22].includes(this.category)?this.fVtypeZone=1:this.fVtypeZone=2,this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds},e.length!=16?(this.fVzone.length==4&&this.fVzone.includes(1)&&this.fVzone.includes(2)&&this.fVzone.includes(3)&&this.fVzone.includes(4)&&(r!=-1?this.arrayFiltersPlays[r].name="1/4 de cancha":this.arrayFiltersPlays.push({name:"1/4 de cancha",type:"onFiltersField"})),this.fVzone.length==4&&this.fVzone.includes(5)&&this.fVzone.includes(6)&&this.fVzone.includes(7)&&this.fVzone.includes(8)&&(r!=-1?this.arrayFiltersPlays[r].name="2/4 de cancha":this.arrayFiltersPlays.push({name:"2/4 de cancha",type:"onFiltersField"})),this.fVzone.length==4&&this.fVzone.includes(9)&&this.fVzone.includes(10)&&this.fVzone.includes(11)&&this.fVzone.includes(12)&&(r!=-1?this.arrayFiltersPlays[r].name="3/4 de cancha":this.arrayFiltersPlays.push({name:"3/4 de cancha",type:"onFiltersField"})),this.fVzone.length==4&&this.fVzone.includes(13)&&this.fVzone.includes(14)&&this.fVzone.includes(15)&&this.fVzone.includes(16)&&(r!=-1?this.arrayFiltersPlays[r].name="4/4 de cancha":this.arrayFiltersPlays.push({name:"4/4 de cancha",type:"onFiltersField"})),this.fVzone.length==8&&this.fVzone.includes(1)&&this.fVzone.includes(2)&&this.fVzone.includes(3)&&this.fVzone.includes(4)&&this.fVzone.includes(5)&&this.fVzone.includes(6)&&this.fVzone.includes(7)&&this.fVzone.includes(8)&&(r!=-1?this.arrayFiltersPlays[r].name="cancha propia":this.arrayFiltersPlays.push({name:"cancha propia",type:"onFiltersField"})),this.fVzone.length==8&&this.fVzone.includes(9)&&this.fVzone.includes(10)&&this.fVzone.includes(11)&&this.fVzone.includes(12)&&this.fVzone.includes(13)&&this.fVzone.includes(14)&&this.fVzone.includes(15)&&this.fVzone.includes(16)&&(r!=-1?this.arrayFiltersPlays[r].name="cancha rival":this.arrayFiltersPlays.push({name:"cancha rival",type:"onFiltersField"}))):this.arrayFiltersPlays.splice(r,1)},addFilterPlayingAS(){var e=this.arrayFiltersPlays.findIndex(r=>r.type==="onFiltersDetailsPlayingAs");e!=-1?this.fVplayingAs.length==1?this.arrayFiltersPlays[e].name=this.fVplayingAs.includes(1)?"Local":"Visitante":this.arrayFiltersPlays.splice(e,1):this.fVplayingAs.length==1&&this.arrayFiltersPlays.push({name:this.fVplayingAs.includes(1)?"Local":"Visitante",type:"onFiltersDetailsPlayingAs"})},onFiltersDetails(e){var r=[];this.filters.setNationalitiesIds=this.setNationalitiesIds;var i=[];for(let c=0;c<e.playingAs.length;c++)if(e.playingAs[c].isSelected){const g=e.playingAs[c].name=="Local"?1:2;r.push(g)}for(let c=0;c<e.gameSections.length;c++)e.gameSections[c].isSelected&&i.push(e.gameSections[c].value);this.fVsections=i,this.fVplayingAs=r;var B=this.arrayFiltersPlays.findIndex(c=>c.type==="onFiltersDetailsTime"),D="los minutos del ";this.fVsections.length!=6&&this.fVsections.length>0?(this.fVsections.includes(1)&&(D+=", 0-15"),this.fVsections.includes(2)&&(D+=", 15-30"),this.fVsections.includes(3)&&(D+=", 30-45"),this.fVsections.includes(4)&&(D+=", 45-60"),this.fVsections.includes(5)&&(D+=", 60-75"),this.fVsections.includes(6)&&(D+=", 75-90"),B!=-1?this.arrayFiltersPlays[B].name=D:this.arrayFiltersPlays.push({name:D,type:"onFiltersDetailsTime"}),this.fVsections.length==3&&this.fVsections.includes(1)&&this.fVsections.includes(2)&&this.fVsections.includes(3)&&(B!=-1?this.arrayFiltersPlays[B].name="Primer tiempo":this.arrayFiltersPlays.push({name:"Primer tiempo",type:"onFiltersDetailsTime"})),this.fVsections.length==3&&this.fVsections.includes(4)&&this.fVsections.includes(5)&&this.fVsections.includes(6)&&(B!=-1?this.arrayFiltersPlays[B].name="Segundo tiempo":this.arrayFiltersPlays.push({name:"Segundo tiempo",type:"onFiltersDetailsTime"})),this.fVsections.length==1&&this.fVsections.includes(1)&&(B!=-1?this.arrayFiltersPlays[B].name="los primeros 15 minutos del partido":this.arrayFiltersPlays.push({name:"los primeros 15 minutos del partido",type:"onFiltersDetailsTime"})),this.fVsections.length==1&&this.fVsections.includes(3)&&(B!=-1?this.arrayFiltersPlays[B].name="los últimos 15 minutos del primer tiempo":this.arrayFiltersPlays.push({name:"los últimos 15 minutos del primer tiempo",type:"onFiltersDetailsTime"})),this.fVsections.length==1&&this.fVsections.includes(4)&&(B!=-1?this.arrayFiltersPlays[B].name="los primeros 15 minutos del segundo tiempo":this.arrayFiltersPlays.push({name:"los primeros 15 minutos del segundo tiempo",type:"onFiltersDetailsTime"})),this.fVsections.length==1&&this.fVsections.includes(6)&&(B!=-1?this.arrayFiltersPlays[B].name="los últimos 15 minutos del segundo tiempo":this.arrayFiltersPlays.push({name:"los últimos 15 minutos del segundo tiempo",type:"onFiltersDetailsTime"})),this.fVsections.length==2&&this.fVsections.includes(1)&&this.fVsections.includes(2)&&(B!=-1?this.arrayFiltersPlays[B].name="los primeros 30 minutos del partido":this.arrayFiltersPlays.push({name:"los primeros 30 minutos del partido",type:"onFiltersDetailsTime"})),this.fVsections.length==2&&this.fVsections.includes(5)&&this.fVsections.includes(6)&&(B!=-1?this.arrayFiltersPlays[B].name="los últimos 30 minutos del segundo tiempo":this.arrayFiltersPlays.push({name:"los últimos 30 minutos del segundo tiempo",type:"onFiltersDetailsTime"}))):B!=-1&&this.arrayFiltersPlays.splice(B,1),this.addFilterPlayingAS(),this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds}},async resetScouting(){this.universeData.minutesPlayed=0,this.universeData.percentMinutesPlayed=0,this.universeData.lastMonths=Array.from({length:24},(B,D)=>D+1),this.universeData.statistics.totals=!0,this.universeData.statistics.averagePerGame=!1,this.universeData.statistics.percentMinutesPlayed=!1;const e=this.$refs.personalDataFilter;e.clearFilters(hd.All),e.clearFilters(hd.AGE_RANGE),e.clearFilters(hd.YEAR),e.clearFilters(hd.NATIONALITY),e.clearFilters(hd.POSITION),this.rowScoutingData=[];for(let B=0;B<this.detaildProductivityCategories.offensive.categories.length;B++)this.detaildProductivityCategories.offensive.categories[B].isSelected=!1;for(let B=0;B<this.detaildProductivityCategories.defensive.categories.length;B++)this.detaildProductivityCategories.defensive.categories[B].isSelected=!1;for(let B=0;B<this.detaildProductivityCategories.possession.categories.length;B++)this.detaildProductivityCategories.possession.categories[B].isSelected=!1;for(let B=0;B<this.detaildProductivityCategories.offensesConditions.length;B++)this.detaildProductivityCategories.offensesConditions[B]=!1;var r=this.arrayFiltersPlays.findIndex(B=>B.type==="onFiltersTournaments");this.arrayFiltersPlays.splice(r,1),this.setUpTournamentsToFilter();const i=await this.fetchTeamsScouting(this.currentSeasonId);this.teamselect=0,this.teamsscouting=[];for(let B=0;B<i.teams.length;B++)this.teamsscouting.push({id:i.teams[B].team_id,team:i.teams[B].colloquial_name,logo:i.teams[B].logo})},onFiltersData(e){var r=0,i=0;e.ageByRange&&(e.ageByRange.min==0?r=1:r=e.ageByRange.min,e.ageByRange.max==0?i=40:i=e.ageByRange.max,this.fVarrayAgeRange=[r,i]),e.year&&(this.FVYear=e.year),this.fVnationalities=new Set;let B="",D="";if(this.fVsetPositionsIds=[],e.hasOwnProperty("nationalities")){this.FVbooleanAreNationalTeamsVisible=!1,this.FVsetAvailableNationalTeamsPlayersIds=new Set;for(let _=0;_<e.nationalities.length;_++)e.nationalities[_].isSelected&&this.fVnationalities.add(e.nationalities[_].id)}if(this.FVeligible=[],e.hasOwnProperty("eligibility")){this.FVbooleanAreNationalTeamsVisible=!0;for(let _=0;_<this.elegibilidadArray.length;_++)this.FVsetAvailableNationalTeamsPlayersIds.add(this.elegibilidadArray[_])}for(let _=0;_<e.positions.length;_++)e.positions[_].isSelected&&this.fVsetPositionsIds.push(e.positions[_].id);if(e.hasOwnProperty("nationalities"))var c=e.nationalities.filter(_=>_.isSelected===!0);var g=e.positions.filter(_=>_.isSelected===!0);if(g.length==1&&(B=g[0].name),e.hasOwnProperty("nationalities")&&c.length==1&&(D=c[0].name),setTimeout(()=>{this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,elegible:this.FVeligible,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds}},1e3),this.FVbooleanAreNationalTeamsVisible){var a=this.arrayFiltersPlays.findIndex(_=>_.type==="onFiltersElegibility");a!=-1?this.arrayFiltersPlays[a].name="Elegibles":this.arrayFiltersPlays.push({name:"Elegibles",type:"onFiltersElegibility"})}else{var a=this.arrayFiltersPlays.findIndex(p=>p.type==="onFiltersElegibility");this.arrayFiltersPlays.splice(a,1)}if(this.fVsetPositionsIds.length!=9&&this.fVsetPositionsIds.length>0){var y=this.arrayFiltersPlays.findIndex(_=>_.type==="onFiltersPosition");y!=-1?this.fVsetPositionsIds.length>0?this.arrayFiltersPlays[y].name=this.fVsetPositionsIds.length>1?this.fVsetPositionsIds.length+" Posiciones de juego":"Posicion de juego "+B:this.arrayFiltersPlays.splice(y,1):this.arrayFiltersPlays.push({name:this.fVsetPositionsIds.length>1?this.fVsetPositionsIds.length+" Posiciones de juego":"Posicion de juego "+B,type:"onFiltersPosition"})}if(this.FVYear!=0&&this.FVYear!=1900&&this.FVYear){var f=this.arrayFiltersPlays.findIndex(_=>_.type==="onFiltersYear");f!=-1?this.arrayFiltersPlays[f].name=this.FVYear:this.arrayFiltersPlays.push({name:this.FVYear,type:"onFiltersYear"})}if(this.fVarrayAgeRange[0]>=e.ageLimits.min&&this.fVarrayAgeRange[1]<=e.ageLimits.max)if(this.fVarrayAgeRange[0]>e.ageLimits.min||this.fVarrayAgeRange[1]<e.ageLimits.max){var n=this.arrayFiltersPlays.findIndex(_=>_.type==="onFiltersAge");n!=-1?this.fVarrayAgeRange.length>0?this.arrayFiltersPlays[n].name=this.fVarrayAgeRange[0]!=this.fVarrayAgeRange[1]?this.fVarrayAgeRange[0]+" - "+this.fVarrayAgeRange[1]+" años":this.fVarrayAgeRange[1]+" años":this.arrayFiltersPlays.splice(n,1):this.arrayFiltersPlays.push({name:this.fVarrayAgeRange[0]!=this.fVarrayAgeRange[1]?this.fVarrayAgeRange[0]+" - "+this.fVarrayAgeRange[1]+" años":this.fVarrayAgeRange[1]+" años",type:"onFiltersAge"})}else{var n=this.arrayFiltersPlays.findIndex(p=>p.type==="onFiltersAge");n!=-1&&this.arrayFiltersPlays.splice(n,1)}if(e.hasOwnProperty("nationalities")&&this.fVnationalities.size!=e.nationalities.length&&this.fVnationalities.size>0){var v=this.arrayFiltersPlays.findIndex(_=>_.type==="onFiltersNationality");v!=-1?this.fVnationalities.size>0?this.arrayFiltersPlays[v].name=this.fVnationalities.size>1?this.fVnationalities.size+" Nacionalidades":"Nacionalidad "+D:this.arrayFiltersPlays.splice(v,1):this.arrayFiltersPlays.push({name:this.fVnationalities.size>1?this.fVnationalities.size+" Nacionalidades":"Nacionalidad "+D,type:"onFiltersNationality"})}},clickAll(e){},clickAllAll(e){},clickTeam(e){},clickTeamScouting(e){},resetFilterTeamAndPlayers(){this.filters={zone:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],playingAs:[1,2],sections:[1,2,3,4,5,6],matchResult:[1,2,3],arrayAgeRange:[1,60],typeZone:1,setNationalitiesIds:this.setNationalitiesIds,setPositionsIds:[1,2,3,4,5,6,7,8,9],setYear:this.FVYear,booleanAreNationalTeamsVisible:!1,setAvailableNationalTeamsPlayersIds:new Set}},async changeTabsGeneral(e){if(this.resetPredefinedTeamAll(),this.showfiltersPc=!0,this.optionSelected=e,this.optionSelectedSubmenu="Todas las jugadas",this.filtersPredefinedF={},this.categoryPredefinedActive=!1,this.categoryPredefined=0,e=="Equipos"&&(this.typeTable=1,this.isTeam=!0,this.updateTables+=1,this.rowScoutingData=[],this.arrayFiltersPlays=[],this.teamselect=0,this.resetFilterTeamAndPlayers(),this.resetScouting()),e=="Jugadores"&&(this.typeTable=0,this.isTeam=!1,this.teamselect=0,this.updateTables+=1,this.rowScoutingData=[],this.resetFilterTeamAndPlayers(),this.resetScouting()),e=="Scouting"){this.rowScoutingData=[],this.teamselect=0,this.arrayFiltersPlays=[];const r=await this.fetchTeamsScouting(this.currentSeasonId);this.teamsscouting=[];for(let i=0;i<r.teams.length;i++)this.teamsscouting.push({id:r.teams[i].team_id,team:r.teams[i].colloquial_name,logo:r.teams[i].logo});setTimeout(()=>{this.modifidFiltersFlag=!1},200),this.resetFilterTeamAndPlayers()}},resetPredefinedTeamAll(){var e=this.arrayFiltersPlays.findIndex(i=>i.type==="onFiltersPredefined");if(this.categoriesDefault.length>0&&e!==-1){this.categoryPredefinedActive=!1,this.categoryPredefined=0,this.FVfilterGolstats=[],this.filtersPredefinedF={},this.arrayFiltersPlays.splice(e,1);for(let i=0;i<this.categoriesDefault.length;i++)this.categoriesDefault[i].isSelected=!1;this.updateFilterPlaytypesGolstats+=1;var r=this.arrayFiltersPlays.findIndex(i=>i.type==="onFiltersPredefined");if(r!==-1){for(let i=0;i<this.FVfilterGolstats.length;i++)this.FVfilterGolstats[i].isSelected=!1;r!==-1&&this.arrayFiltersPlays.splice(r,1),this.updateFilterGolstats+=1}}},changeTabsSubmenu(e){e!="Predeterminados"?this.resetPredefinedTeamAll():this.arrayFiltersPlays=[],this.optionSelectedSubmenu=e},async fetchTournaments(){const e=$c.create({headers:{Authorization:`${this.token}`}}),{data:r}=await e.get(this.tournamentsUrl);return r},async fetchTeams(){const e=$c.create({headers:{Authorization:`${this.token}`}}),{data:r}=await e.get(this.teamsUrl+this.seasonActive);return r},async fetchTeamsScouting(e){const r=$c.create({headers:{Authorization:`${this.token}`}}),{data:i}=await r.get(this.teamsUrl+e);return i},async getPredefinedfilters(e){this.arrayPredefinedFilters=[],this.arrayPredefinedOrigin=[];var r="";e.id==1?r=this.urlFilter:r=this.urlFilter;const i=$c.create({headers:{Authorization:`${this.token}`}}),{data:B}=await i.get(r+e.id);if(Object.keys(B[0].match_lapse_combinations).forEach(v=>{this.predefinedFiltersMatchLapse[v.toString()]=B[0].match_lapse_combinations[v]}),Object.keys(B[0].playing_as_combinations).forEach(v=>{this.predefinedFiltersPlayingAs[v.toString()]=B[0].playing_as_combinations[v]}),Object.keys(B[0].field_sections_combinations).forEach(v=>{this.predefinedFiltersSections[v.toString()]=B[0].field_sections_combinations[v]}),B[0]){for(let v=0;v<B[0].filter_records.length;v++){var D=B[0].description;if(B[0].filter_records[v].field_sections!==void 0){const p=B[0].filter_records[v].field_sections.toString();(this.predefinedFiltersSections[p]||this.predefinedFiltersSections[p]=="")&&(this.predefinedFiltersSections[p]==""?D=D.replace(" [en {field_sections}]",this.predefinedFiltersSections[p]):D=D.replace("{field_sections}",this.predefinedFiltersSections[p]))}if(B[0].filter_records[v].match_lapse!==void 0){const p=B[0].filter_records[v].match_lapse.toString();(this.predefinedFiltersMatchLapse[p]||this.predefinedFiltersMatchLapse[p]=="")&&(this.predefinedFiltersMatchLapse[p]==""?D=D.replace(" [durante {match_lapse}]",this.predefinedFiltersMatchLapse[p]):D=D.replace("{match_lapse}",this.predefinedFiltersMatchLapse[p]))}if(B[0].filter_records[v].playing_as!==void 0){const p=B[0].filter_records[v].playing_as.toString();(this.predefinedFiltersPlayingAs[p]||this.predefinedFiltersPlayingAs[p]=="")&&(this.predefinedFiltersPlayingAs[p]==""?D=D.replace(" [jugando como {playing_as}]",this.predefinedFiltersPlayingAs[p]):D=D.replace("{playing_as}",this.predefinedFiltersPlayingAs[p]))}B[0].filter_records[v].section_type!==void 0&&(this.optionSelected=="Jugadores"?D=D.replace("{section_type}","Jugadores"):D=D.replace("{section_type}","Equipos")),D=D.replace(/\[/g,""),D=D.replace(/\]/g,""),D=D.replace("{category_name}",B[0].category_name);const _=D.split(": ");var c=_[1];c.length>129&&this.windowWidth>1358&&(c=c.substring(0,129),c=c+"<span id='showIDtootip' class='dots' style='width: 100px; height: 20px; background: red; z-index: 6;'>...</span>"),(!this.isCup||B[0].filter_records[v].playing_as.length===2)&&this.arrayPredefinedFilters.push({id:v,category_name:e.name,id_category:B[0].id,title:_[0]+":",text:_[1],textOrigin:B[0].description,titledots:c,filtersPredefined:{matchResult:B[0].filter_records[v].match_result,playingAs:B[0].filter_records[v].playing_as,sections:B[0].filter_records[v].match_lapse,type:this.optionSelected=="Equipos"?2:1,typeZone:B[0].type_zone,zone:B[0].filter_records[v].field_sections,end_age:0,start_age:0,nationalities:[],elegible:[],positions:[]}})}var g=[];for(let v=0;v<this.arrayPredefinedFilters.length;v++){var a=0,y=new Set,f={},n=this.arrayPredefinedFilters[v].text.replace(/\*.*?\*/,"");if(n=n.replace(/\*/g,""),n=n.replace(/ +/g," "),this.arrayPredefinedFilters[v].filtersPredefined.elegible.length>0&&(a+=1),(this.arrayPredefinedFilters[v].filtersPredefined.end_age.length!=0||this.arrayPredefinedFilters[v].filtersPredefined.start_age.length!=0)&&(a+=1),this.arrayPredefinedFilters[v].filtersPredefined.end_age!=0&&this.arrayPredefinedFilters[v].filtersPredefined.start_age!=0?f.arrayAgeRange=[this.arrayPredefinedFilters[v].filtersPredefined.start_age,this.arrayPredefinedFilters[v].filtersPredefined.end_age]:this.arrayPredefinedFilters[v].filtersPredefined.end_age==0&&this.arrayPredefinedFilters[v].filtersPredefined.start_age==0?f.arrayAgeRange=[1,60]:this.arrayPredefinedFilters[v].filtersPredefined.start_age!=0&&this.arrayPredefinedFilters[v].filtersPredefined.end_age==0?f.arrayAgeRange=[this.arrayPredefinedFilters[v].filtersPredefined.start_age,60]:f.arrayAgeRange=[1,this.arrayPredefinedFilters[v].filtersPredefined.end_age],this.arrayPredefinedFilters[v].filtersPredefined.matchResult.length!=3&&(a+=1),f.matchResult=this.arrayPredefinedFilters[v].filtersPredefined.matchResult,this.arrayPredefinedFilters[v].filtersPredefined.nationalities.length>0&&(a+=1),this.arrayPredefinedFilters[v].filtersPredefined.nationalities.length!=0){for(let _=0;_<this.arrayPredefinedFilters[v].filtersPredefined.nationalities.length;_++)y.add(this.arrayPredefinedFilters[v].filtersPredefined.nationalities[_]);f.setNationalitiesIds=y}else y.add(138),y.add(222),y.add(163),y.add(51),y.add(226),y.add(10),y.add(223),y.add(96),y.add(171),y.add(198),y.add(105),y.add(80),y.add(29),y.add(74),y.add(216),y.add(196),y.add(64),y.add(155),y.add(156),y.add(89),y.add(106),y.add(81),y.add(233),y.add(204),f.setNationalitiesIds=y;this.arrayPredefinedFilters[v].filtersPredefined.playingAs.length!=2&&(a+=1),f.playingAs=this.arrayPredefinedFilters[v].filtersPredefined.playingAs,this.arrayPredefinedFilters[v].filtersPredefined.positions.length>0&&(a+=1),this.arrayPredefinedFilters[v].filtersPredefined.positions.length>0?f.setPositionsIds=this.arrayPredefinedFilters[v].filtersPredefined.positions:f.setPositionsIds=[1,2,3,4,5,6,7,8,9],this.arrayPredefinedFilters[v].filtersPredefined.sections.length!=6&&(a+=1),this.arrayPredefinedFilters[v].filtersPredefined.sections.length>0?f.sections=this.arrayPredefinedFilters[v].filtersPredefined.sections:f.sections=[1,2,3,4,5,6],this.arrayPredefinedFilters[v].filtersPredefined.zone.length!=16&&(a+=1),this.arrayPredefinedFilters[v].filtersPredefined.zone.length>0?f.zone=this.arrayPredefinedFilters[v].filtersPredefined.zone:f.zone=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],f.typeZone=this.arrayPredefinedFilters[v].filtersPredefined.typeZone,g.push({id:v+1,name:n,isSelected:!1,value:a,filters:f})}this.FVfilterGolstats=g,this.updateFilterGolstats+=1,this.arrayPredefinedOrigin=JSON.parse(JSON.stringify(this.arrayPredefinedFilters))}},getTextFilterPredefinedCustom(){this.setDinamicFilters(this.filterEmitAux);var e=this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].textOrigin;const r=this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.zone.sort((n,v)=>n-v).toString();this.predefinedFiltersSections[r]||this.predefinedFiltersSections[r]==""?this.predefinedFiltersSections[r]==""?e=e.replace(" [en {field_sections}]",this.predefinedFiltersSections[r]):e=e.replace("{field_sections}",this.predefinedFiltersSections[r]):e=e.replace("{field_sections}",this.predefinedFiltersSections.other);var i=!1;this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.nationalities.size>0?this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.nationalities.size==this.setNationalityIds.size?(e=e.replace("[{nationality}]",""),e=e.replace("[de las nacionalidades y posiciones seleccionadas]",""),e=e.replace("[de las nacionalidades seleccionadas]","")):this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.nationalities.size==1?(e=e.replace("[{nationality}]",this.$t(`gentilicios[${[...this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.nationalities][0]}]`)),e=e.replace("[de las nacionalidades y posiciones seleccionadas]",""),e=e.replace("[de las nacionalidades seleccionadas]","")):this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.positions.size>0&&this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.positions.size!=this.setPositionsIds.size?(i=!0,e=e.replace("[{nationality}]",""),e=e.replace("[de las nacionalidades seleccionadas]","")):(e=e.replace("[{nationality}]",""),e=e.replace("[de las nacionalidades y posiciones seleccionadas]","")):(e=e.replace("[{nationality}]",""),e=e.replace("[de las nacionalidades y posiciones seleccionadas]",""),e=e.replace("[de las nacionalidades seleccionadas]","")),this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.nationalities.size>0?(i||this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.positions.size==this.setPositionsIds.size)&&(e=e.replace("[de las posiciones seleccionadas]","")):e=e.replace("[de las posiciones seleccionadas]",""),this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age!=0&&this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.end_age!=0?this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age!=this.arrayAgeRange[0]&&this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.end_age!=this.arrayAgeRange[1]?this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age==this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.end_age?(e=e.replace("[de {min_age} a {max_age} años]",""),e=e.replace("[de {min_age} años]","[de "+this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age+" años]")):(e=e.replace("[de {min_age} años]",""),e=e.replace("[de {min_age} a {max_age} años]","[de "+this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age+" a "+this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.end_age+" años]")):this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age!=this.arrayAgeRange[0]||this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.end_age!=this.arrayAgeRange[1]?this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age==this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.end_age?(e=e.replace("[de {min_age} a {max_age} años]",""),e=e.replace("[de {min_age} años]","[de "+this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age+" años]")):(e=e.replace("[de {min_age} años]",""),e=e.replace("[de {min_age} a {max_age} años]","[de "+this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age+" a "+this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.end_age+" años]")):(e=e.replace("[de {min_age} a {max_age} años]",""),e=e.replace("[de {min_age} años]","")):(e=e.replace("[de {min_age} años]",""),e=e.replace("[de {min_age} a {max_age} años]",""));const B=this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.sections.sort().toString();if(this.predefinedFiltersMatchLapse[B]||this.predefinedFiltersMatchLapse[B]=="")this.predefinedFiltersMatchLapse[B]==""?e=e.replace(" [durante {match_lapse}]",this.predefinedFiltersMatchLapse[B]):e=e.replace("{match_lapse}",this.predefinedFiltersMatchLapse[B]);else{e=e.replace("{match_lapse}"," "+this.predefinedFiltersMatchLapse.other);var D="";B.includes(1)&&(D=D+"0-15, "),B.includes(2)&&(D=D+"16-30, "),B.includes(3)&&(D=D+"31-45, "),B.includes(4)&&(D=D+"46-60, "),B.includes(5)&&(D=D+"61-75, "),B.includes(6)&&(D=D+"76-90, "),D=D.slice(0,-2),D=D.replace(/,([^,]*)$/," y $1"),e=e.replace("{match_lapse_selected}",D)}const c=this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.playingAs.sort().toString();(this.predefinedFiltersPlayingAs[c]||this.predefinedFiltersPlayingAs[c]=="")&&(this.predefinedFiltersPlayingAs[c]==""?e=e.replace(" [jugando como {playing_as}]",this.predefinedFiltersPlayingAs[c]):e=e.replace("{playing_as}",this.predefinedFiltersPlayingAs[c])),this.typeSelected==1?this.getUser.tournament==1001?this.category.id==22?e=e.replace("{section_type}","Porteras"):e=e.replace("{section_type}","Jugadoras"):this.category.id==22?e=e.replace("{section_type}","Porteros"):e=e.replace("{section_type}","Jugadores"):e=e.replace("{section_type}","Equipos"),e=e.replace(/\[/g,""),e=e.replace(/\]/g,""),e=e.replace("{category_name}",this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].category_name);const g=e.split(": ");let a=g[1].charAt(0).toUpperCase()+g[1].toLowerCase().slice(1),y=g[1].charAt(0).toUpperCase()+g[1].toLowerCase().slice(1);this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].text=a,this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].title=g[0]+":";const f=y.match(/\*/g);if(f&&f.length)if(f.length%2===0)for(let n=1;n<=f.length;n++)n%2===0||(y=y.replace("*",'<span style="color: #ffff03" >'));else y=y.replaceAll("*","");this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].titledots=y},intervalidtops(e){this.$emit("intervalidtops",e)}},mounted(){sessionStorage.getItem("sidpdfil")!==null&&sessionStorage.setItem("sidpdfil",0),this.renderNext(),this.teamId!==0&&this.optionSelected!=="Scouting"&&this.clickTeam(this.teamId),this.defaultSection!=="Jugadores"&&(this.defaultSection==="Scouting"&&this.selectedSeason(this.currentSeasonId),this.changeTabsGeneral(this.defaultSection))},async created(){try{const e=$c.create({headers:{"Content-Type":"application/json"}});e.interceptors.request.use(i=>(delete i.headers.Authorization,i));const r=await e.get("https://golstats-microservices.s3.us-west-2.amazonaws.com/eligibles/elegibles.json",{headers:{"Content-Type":"application/json"}});this.elegibilidadArray=r.data,this.fVnationalities.add(138),this.fVnationalities.add(222),this.fVnationalities.add(163),this.fVnationalities.add(51),this.fVnationalities.add(226),this.fVnationalities.add(10),this.fVnationalities.add(223),this.fVnationalities.add(96),this.fVnationalities.add(171),this.fVnationalities.add(198),this.fVnationalities.add(105),this.fVnationalities.add(80),this.fVnationalities.add(29),this.fVnationalities.add(74),this.fVnationalities.add(216),this.fVnationalities.add(196),this.fVnationalities.add(64),this.fVnationalities.add(155),this.fVnationalities.add(156),this.fVnationalities.add(89),this.fVnationalities.add(106),this.fVnationalities.add(81),this.fVnationalities.add(233),this.fVnationalities.add(204)}catch(e){throw new Error(e)}}},qOt={ref:"myDivRefTopsFull"},YOt={key:0,class:"overlay-loading"},XOt=[t.createElementVNode("div",{class:"overlay-loading__spinner"},[t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/balon_liga.png",alt:""})],-1),t.createElementVNode("div",{class:"overlay-loading__text"},"Loading...",-1)],ZOt=[t.createElementVNode("img",{src:"https://az755631.vo.msecnd.net/todoelfut/icn_close.png",style:{width:"10px"}},null,-1)],JOt={key:0,class:"cont-leyemd-multipleleagues"},KOt=t.createElementVNode("img",{class:"img-leyemd-multipleleagues",src:"http://golstatsimages.blob.core.windows.net/images-library/icn-multiples-ligas.png"},null,-1),QOt={key:0,style:{"margin-left":"10px"}},eFt=t.createElementVNode("span",null,"Tipo de Jugada",-1),tFt=t.createElementVNode("span",null,"Filtro GolStats",-1),aFt={key:3,style:{width:"100%",height:"295px"}};function nFt(e,r,i,B,D,c){t.resolveComponent("GSCTournamentSelect"),t.resolveComponent("GSCSeasonSelect");const g=t.resolveComponent("GscSwitchComponent"),a=t.resolveComponent("GSCFilterperteam"),y=t.resolveComponent("GSCFilters"),f=t.resolveComponent("GSCLabel"),n=t.resolveComponent("GSCTopCategory"),v=t.resolveComponent("GSCTableHeader"),_=t.resolveComponent("GSCRowTable"),p=t.resolveComponent("GSCExpandedInfo");return t.openBlock(),t.createElementBlock("div",qOt,[D.loadingActive?(t.openBlock(),t.createElementBlock("div",YOt,XOt)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.templateLosMejoresClass)},[t.createElementVNode("section",{class:t.normalizeClass(e.containerSectionClass),id:"container-section"},[t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.comdescubreVideosClass)},[t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.menuSectionParentHeaderClass)},[t.createCommentVNode("",!0),t.createCommentVNode("",!0)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.topFiltersParentClass)},[t.createElementVNode("div",{class:t.normalizeClass(e.topFiltersClass),id:"top-filters"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamBarParent)},[D.optionSelected!="Scouting"&&D.optionSelected!="Equipos"?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.teamBar),id:"team-bar"},[t.createVNode(a,{data:D.teams,"team-id":i.teamId,"background-color":"#172531","contain-border-radius":"8px",onClickTeam:c.clickTeam,onClickAll:c.clickAll},null,8,["data","team-id","onClickTeam","onClickAll"])],2)):t.createCommentVNode("",!0),t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.containerFilters),id:"container-filters",style:t.normalizeStyle(D.showfiltersPc?"":B.elementSize.width>760?"display: none;":"")},[t.createElementVNode("div",{class:t.normalizeClass(e.menuSectionClass),id:"menu-section"},[B.elementSize.width>760&&D.optionSelected!="Scouting"?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.closeFiltersPc),onClick:r[1]||(r[1]=(...l)=>c.clickCloseFilters&&c.clickCloseFilters(...l))},ZOt,2)):t.createCommentVNode("",!0),D.optionSelected!=="Scouting"?(t.openBlock(),t.createBlock(g,{key:1,type:2,buttons:["Todas las jugadas","Predeterminados"],"font-family":"Poppins-Regular","selected-option":D.optionSelectedSubmenu,"font-size":e.sizeTabsFontMS,width:e.sizeTabsMS,arrow:!1,borderWidth:"1px","background-option-active":"#172531",background:"#172531",height:"28px",onInput:c.changeTabsSubmenu},null,8,["selected-option","font-size","width","onInput"])):t.createCommentVNode("",!0)],2),t.createCommentVNode("",!0),t.withDirectives(t.createElementVNode("div",{class:t.normalizeClass(e.$style.btnCloseFilters),style:t.normalizeStyle(D.optionSelected==="Scouting"?"margin-top: 4%; margin-left: 1%":""),onClick:r[3]||(r[3]=(...l)=>c.openMenuFilters&&c.openMenuFilters(...l))},null,6),[[t.vShow,B.elementSize.width<760&&D.openMenuMobil]]),t.withDirectives(t.createElementVNode("div",{class:t.normalizeClass(e.containerMenuClass),id:"container-menu"},[D.optionSelectedSubmenu=="Todas las jugadas"&&D.optionSelected!="Scouting"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[B.elementSize.width>0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.withDirectives(t.createVNode(y,t.mergeProps({"button-filter-props":c.filterButtonProps},B.elementSize.width<420?D.expansionPanelModePropsMobil270:B.elementSize.width<760?D.expansionPanelModePropsMobil:D.expansionPanelModeProps,{"filter-type":D.filtersTypes.PLAYS,"show-badge-on-filter-full":!1,"onUpdate:filters":c.onFiltersPlays,filters:D.categoriesPlaysTypes,onApply:c.applyFiltersBtn}),null,16,["button-filter-props","filter-type","onUpdate:filters","filters","onApply"]),[[t.vShow,!D.showFullTable]]),(t.openBlock(),t.createBlock(y,t.mergeProps({"button-filter-props":c.filterButtonProps},B.elementSize.width<420?D.expansionPanelModePropsMobil270:B.elementSize.width<760?D.expansionPanelModePropsMobil:D.expansionPanelModeProps,{key:D.updateFilterField,"filter-type":D.filtersTypes.FIELD,"show-badge-on-filter-full":!1,"onUpdate:filters":c.onFiltersField,filters:D.fVzone}),null,16,["button-filter-props","filter-type","onUpdate:filters","filters"])),t.createVNode(y,t.mergeProps({"button-filter-props":c.filterButtonProps},B.elementSize.width<420?D.expansionPanelModePropsMobil270:B.elementSize.width<760?D.expansionPanelModePropsMobil:D.expansionPanelModeProps,{"filter-type":D.filtersTypes.DETAILS,"show-badge-on-filter-full":!1,"onUpdate:filters":c.onFiltersDetails,filters:D.detailsObject}),null,16,["button-filter-props","filter-type","onUpdate:filters","filters"]),D.optionSelected==="Jugadores"?(t.openBlock(),t.createBlock(y,t.mergeProps({key:0,ref:"personalDataFilterPlayers","button-filter-props":c.filterButtonProps},B.elementSize.width<420?D.expansionPanelModePropsMobil270:B.elementSize.width<760?D.expansionPanelModePropsMobil:D.expansionPanelModeProps,{"filter-type":D.filtersTypes.PERSONAL_DATA,"show-badge-on-filter-full":!1,season:{id:i.seasonActive,tournamentId:D.tournamentSelectedObj.value},token:D.token,"onUpdate:filters":c.onFiltersData}),null,16,["button-filter-props","filter-type","season","token","onUpdate:filters"])):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0),D.optionSelected=="Scouting"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[B.elementSize.width>0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[(t.openBlock(),t.createBlock(y,t.mergeProps({"button-filter-props":c.filterButtonProps},B.elementSize.width<420?D.expansionPanelModePropsMobil270:B.elementSize.width<760?D.expansionPanelModePropsMobil:D.expansionPanelModeProps,{"filter-type":D.filtersTypes.TOURNAMENTS,"show-badge-on-filter-full":!1,filters:D.tournamentsToFilter,key:D.keyTournamentValue,"onUpdate:filters":c.onFiltersTournaments}),null,16,["button-filter-props","filter-type","filters","onUpdate:filters"])),t.createVNode(y,t.mergeProps({"button-filter-props":c.filterButtonProps},B.elementSize.width<420?D.expansionPanelModePropsMobil270:B.elementSize.width<760?D.expansionPanelModePropsMobil:D.expansionPanelModeProps,{"filter-type":D.filtersTypes.PERSONAL_DATA,"show-badge-on-filter-full":!1,season:{id:D.filterScounting.seasonId,tournamentId:D.filterScounting.tournaments[0]},ref:"personalDataFilter","onUpdate:filters":c.onFiltersPersonalData}),null,16,["button-filter-props","filter-type","season","onUpdate:filters"]),t.createVNode(y,t.mergeProps({"button-filter-props":c.filterButtonProps},B.elementSize.width<420?D.expansionPanelModePropsMobil270:B.elementSize.width<760?D.expansionPanelModePropsMobil:D.expansionPanelModeProps,{"filter-type":D.filtersTypes.UNIVERSE,"show-badge-on-filter-full":!1,filters:D.universeData,"onUpdate:filters":c.onFiltersUniverse}),null,16,["button-filter-props","filter-type","filters","onUpdate:filters"]),t.createVNode(y,t.mergeProps({"button-filter-props":c.filterButtonProps},B.elementSize.width<420?D.expansionPanelModePropsMobil270:B.elementSize.width<760?D.expansionPanelModePropsMobil:D.expansionPanelModeProps,{"filter-type":D.filtersTypes.PRODUCTIVITY,"show-badge-on-filter-full":!1,"onUpdate:filters":c.onFiltersProductivity,filters:D.detaildProductivityCategories}),null,16,["button-filter-props","filter-type","onUpdate:filters","filters"])],64)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.BtnSearchScountingcom),onClick:r[4]||(r[4]=(...l)=>c.getScoutingData&&c.getScoutingData(...l))},"Buscar",2)],64)):t.createCommentVNode("",!0),D.optionSelectedSubmenu=="Predeterminados"&&D.optionSelected!="Scouting"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[(t.openBlock(),t.createBlock(y,t.mergeProps({"button-filter-props":c.filterButtonProps,modalHeight:"300px"},B.elementSize.width<420?D.expansionPanelModePropsMobil270:B.elementSize.width<760?D.expansionPanelModePropsMobil:D.expansionPanelModePropsTypePlays,{"filter-type":D.filtersTypes.PLAYS_TYPES,"show-badge-on-filter-full":!1,key:D.updateFilterPlaytypesGolstats,"onUpdate:filters":c.onFiltersPlaysTypes,filters:D.categoriesDefault}),null,16,["button-filter-props","filter-type","onUpdate:filters","filters"])),(t.openBlock(),t.createBlock(y,t.mergeProps({"button-filter-props":c.filterButtonProps,modalHeight:"300px"},B.elementSize.width<420?D.expansionPanelModePropsMobil270:B.elementSize.width<760?D.expansionPanelModePropsMobil:D.expansionPanelModeProps,{"filter-type":D.filtersTypes.GOLSTATS,"show-badge-on-filter-full":!1,key:D.updateFilterGolstats,"onUpdate:filters":c.onFiltersGolStats,filters:c.filterGolstats}),null,16,["button-filter-props","filter-type","onUpdate:filters","filters"]))],64)):t.createCommentVNode("",!0)],2),[[t.vShow,B.elementSize.width>760||D.openMenuMobil]]),D.optionSelected=="Scouting"?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.teamBar),id:"team-bar"},[D.filterScounting.tournaments.length>1&&D.rowScoutingData.length>0?(t.openBlock(),t.createElementBlock("div",JOt,[KOt,t.createElementVNode("div",{class:t.normalizeClass(e.comextleyemdmultipleleaguesClass)}," El filtro por equipos solo se pude utilizar cuando se tiene maximo 1 liga seleccionada ",2)])):(t.openBlock(),t.createBlock(a,{data:D.teamsscouting,"team-id":D.teamselectrec,"background-color":"#172531","contain-border-radius":"8px",key:D.updateFilterTeamsScouting,onClickTeam:c.clickTeamScouting,onClickAll:c.clickAllAll},null,8,["data","team-id","onClickTeam","onClickAll"]))],2)):t.createCommentVNode("",!0)],6)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.containerTheBestClass),id:"container-the-best"},[t.createElementVNode("div",{class:t.normalizeClass(e.titleSectionClass)},[D.optionSelectedSubmenu!="Predeterminados"?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.commejoresJugadoresClass)},[D.arrayFiltersPlays.length>0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[D.optionSelected!="Scouting"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Mejores jugadores: ")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("Jugadores más productivos: ")],64))],64)):t.createCommentVNode("",!0)],2)):t.createCommentVNode("",!0),D.optionSelected!="Scouting"&&D.optionSelectedSubmenu!="Predeterminados"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[D.showFullTable?(t.openBlock(),t.createElementBlock("div",QOt,[t.createVNode(f,{"text-value":"Categoría - "+D.categoryName+" ","font-size":"11px","font-color":"rgba(255, 255, 255, 0.7)",onClickClose:c.deleteCategoryFilter,icon:"https://az755631.vo.msecnd.net/todoelfut/icn_close.png","icon-size":"6px",height:"20px"},null,8,["text-value","onClickClose"])])):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(D.arrayFiltersPlays,(l,o)=>(t.openBlock(),t.createElementBlock("div",{key:o,style:{"margin-left":"10px"}},[t.createVNode(f,{"text-value":l.name+" ","font-size":"11px","font-color":"rgba(255, 255, 255, 0.7)",onClickClose:c.deleteLabelFilter,id:l.type,icon:"https://az755631.vo.msecnd.net/todoelfut/icn_close.png","icon-size":"6px",height:B.elementSize.width<768?"auto":"20px"},null,8,["text-value","onClickClose","id","height"])]))),128)),D.rowScoutingData.length!=0||D.optionSelectedSubmenu=="Predeterminados"&&D.arrayFiltersPlays.findIndex(l=>l.type==="onFiltersPredefined")!==-1?(t.openBlock(),t.createElementBlock("div",{key:2,class:t.normalizeClass(e.comquitarFiltrosClass),onClick:r[5]||(r[5]=(...l)=>c.onClickDeleteFilter&&c.onClickDeleteFilter(...l))}," Quitar filtros ",2)):t.createCommentVNode("",!0),t.createCommentVNode("",!0)],2),i.seasonActive!=0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.containerTablesClass),id:"container-tables",style:t.normalizeStyle(D.showFullTable?"gap: 0px!important;":"")},[D.optionSelected!=="Scouting"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[D.optionSelectedSubmenu=="Todas las jugadas"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(D.categoriesDefault,(l,o)=>(t.openBlock(),t.createElementBlock("div",{key:o,style:t.normalizeStyle(!D.showOnlyCategories&&D.arrayCategoryFilter.includes(l.id)?"":"display:none !important;")},[t.withDirectives(t.createElementVNode("div",{class:t.normalizeClass(e.toniKroosWrapperClass)},[(t.openBlock(),t.createBlock(n,{"is-widget":i.isWidget,"team-widget":i.teamWidget,"time-live-comparative-avanced":i.timeLiveComparativeAvanced,"is-team":D.isTeam,onMore:c.onShowFullTable,"border-width":0,onIntervalidtops:c.intervalidtops,"can-play-videos":i.canPlayVideos,"border-radius":"12px","game-id":i.gameId,game:i.game,typeData:i.typeData,"filters-prop":c.filterChange,category:l.id,"type-table":D.typeTable,categoryName:l.name,season:i.seasonActive,"filter-team":i.teamselect,key:D.updateTables,onClickprofile:c.clickprofile,onSetopenmedia:c.setOpenMedia},null,8,["is-widget","team-widget","time-live-comparative-avanced","is-team","onMore","onIntervalidtops","can-play-videos","game-id","game","typeData","filters-prop","category","type-table","categoryName","season","filter-team","onClickprofile","onSetopenmedia"]))],2),[[t.vShow,!D.showOnlyCategories&&D.arrayCategoryFilter.includes(l.id)&&!D.showFullTable]])],4))),128)),D.showFullTable?(t.openBlock(),t.createBlock(n,{"time-live-comparative-avanced":i.timeLiveComparativeAvanced,"is-team":D.isTeam,"is-widget":i.isWidget,"team-widget":i.teamWidget,"border-width":0,"border-radius":"12px","game-id":i.gameId,onIntervalidtops:c.intervalidtops,game:i.game,typeData:i.typeData,category:D.showFullCategory,type:1,"type-table":D.typeTable,categoryName:"","filters-prop":c.filterChange,season:i.seasonActive,"filter-team":i.teamselect,key:D.updateTablesfull,onClickprofile:c.clickprofile,onSetopenmedia:c.setOpenMedia},null,8,["time-live-comparative-avanced","is-team","is-widget","team-widget","game-id","onIntervalidtops","game","typeData","category","type-table","filters-prop","season","filter-team","onClickprofile","onSetopenmedia"])):t.createCommentVNode("",!0)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[D.categoryPredefinedActive?(t.openBlock(),t.createBlock(n,{"is-widget":i.isWidget,"team-widget":i.teamWidget,"is-team":D.isTeam,"time-live-comparative-avanced":i.timeLiveComparativeAvanced,onIntervalidtops:c.intervalidtops,"border-width":0,"border-radius":"12px","can-play-videos":i.canPlayVideos,"game-id":i.gameId,game:i.game,typeData:i.typeData,category:D.categoryPredefined,type:1,"type-table":D.typeTable,categoryName:"","filters-prop":c.filterChangePredefined,season:i.seasonActive,"filter-team":i.teamselect,key:D.updateTables,onClickprofile:c.clickprofile,onSetopenmedia:c.setOpenMedia},null,8,["is-widget","team-widget","is-team","time-live-comparative-avanced","onIntervalidtops","can-play-videos","game-id","game","typeData","category","type-table","filters-prop","season","filter-team","onClickprofile","onSetopenmedia"])):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.containerPredefinedcom)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.titleContainerPredefinedcom)},[D.arrayFiltersPlays.length==0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("No has seleccionado ningún filtro")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("No existen resultados")],64))],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.subtitleContainerPredefinedcom)},[D.arrayFiltersPlays.length==0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Para visualizar resultados selecciona un")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("No existen resultados con los filtros")],64))],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.subtitleContainerPredefinedcom)},[D.arrayFiltersPlays.length==0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[eFt,t.createTextVNode(" y un "),tFt,t.createTextVNode(" en la")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("que has seleccionado.")],64))],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.subtitleContainerPredefinedcom)},[D.arrayFiltersPlays.length==0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("parte superior.")],64)):t.createCommentVNode("",!0)],2)],2))],64))],64)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.containerPredefinedScountingcom),style:t.normalizeStyle(D.rowScoutingData.length>0?"height: auto;":"")},[D.loadingActive?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[D.rowScoutingData.length>0?(t.openBlock(),t.createBlock(v,{key:0,background:"#183143",type:2})):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(D.rowScoutingData,(l,o)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:o},[D.teamselectrec==0||D.teamselectrec==l.team_id?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createVNode(_,{type:2,"is-expanded":D.playerexpand==l.id&&D.expand,onMediadata:c.setMediaData,data:{position:l.position,player_name:l.player_name,player_photo:l.player_photo,total:l.total,id:l.id,player_age:l.player_age,team_abrev:l.team_abrev,team_logo:l.team_logo,player_position:D.positions[l.player_position-1].fullname,player_country_flag:l.player_country_flag,player_games:l.player_games,player_min:l.player_min,league_name:l.league_name,seasons:l.seasons,season_id:l.season_id},height:"71px",background:o%2===0?i.backgroundOdd:i.backgroundEven,onExpand:c.clickexpand},null,8,["is-expanded","onMediadata","data","background","onExpand"]),D.expand&&D.playerexpand==l.id?(t.openBlock(),t.createBlock(p,{key:0,type:0,"view-effectiveness":!1,viewGoals:!1,additionalClass:"fullTable",data:{teams:l.team_name,age:l.player_age,dataofbirth:l.date,nationality:l.nationality_name,countryFlag:l.player_country_flag,position:D.positions[l.player_position-1].name,games:l.player_games,min:l.player_min,goals:l.total,effectiveness:"-",category:"total",id:l.id},onViewprofile:s=>c.viewprofile(s,l.season_id,l.team_id),background:o%2===0?i.backgroundOdd:i.backgroundEven},null,8,["data","onViewprofile","background"])):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)],64))),128))],64)),D.rowScoutingData.length==0&&!D.loadingActive?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.btnLeyendTxtcom)},' Haz click en "Buscar" para aplicar tus filtros ',2)):t.createCommentVNode("",!0),D.rowScoutingData.length==0&&!D.loadingActive?(t.openBlock(),t.createElementBlock("div",{key:2,class:t.normalizeClass(e.$style.containerScountingBtncom)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.btnDeleteAplicacom),onClick:r[6]||(r[6]=(...l)=>c.onClickDeleteFilter&&c.onClickDeleteFilter(...l))}," Eliminar filtros aplicados ",2),D.rowScoutingData.length==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.SearchBtnBarcom),onClick:r[7]||(r[7]=(...l)=>c.getScoutingData&&c.getScoutingData(...l))}," Buscar ",2)):t.createCommentVNode("",!0)],2)):t.createCommentVNode("",!0),D.loadingActive?(t.openBlock(),t.createElementBlock("div",aFt)):t.createCommentVNode("",!0)],6))],6)):t.createCommentVNode("",!0)],2)],2)],2)],2)],512)}const rFt=$i(WOt,[["render",nFt],["__cssModules",{$style:GOt}]]),Zxa="";let $q=null;const iFt={components:{GSCDatosGSMain:UBt,GSCCheckbox:Wg,GSCRadioToggle:IH,GSCTopFull:rFt},props:{isWidget:{type:Boolean,default:!1},teamWidget:{type:Number,default:0},timeLiveComparativeBestPlayers:{type:Number,default:6e4},timeLiveComparativeAvanced:{type:Number,default:6e4},tournamentSelected:{type:Object,default:()=>({})},game:{type:Object,default:()=>{}},playVideosPrivileges:{type:Object,default:null},canPlayVideos:{type:Boolean,default:!1}},data(){return{updateHomeCheck:0,updateAwayCheck:0,activeSection:"destacados",widthSection:0,teamactive:0,update:0,homeTeamCheck:!0,awayTeamCheck:!0,typeViewData:1}},watch:{game:{deep:!0,immediate:!0,handler(e){e&&(e.game_status==1||e.is_live==1||e.game_status==0?this.typeViewData=1:this.typeViewData=0),this.update+=1}}},computed:{},methods:{preventChange(e){e.preventDefault(),this.homeTeamCheck=!0},intervalidgs(e){this.$emit("intervalidgs",e)},onOpenProfileTeam(e){this.$emit("openProfileTeam",e)},intervalidtops(e){this.$emit("intervalidtops",e)},onOpenProfilePlayer(e){this.$emit("onOpenProfile",e)},ChangeRadio(e){typeof e=="string"&&(e=="Este partido"?this.typeViewData=1:this.typeViewData=0)},onCheckInactiveHome(e){e?(this.homeTeamCheck=!0,this.awayTeamCheck?this.teamactive=0:this.teamactive=this.game.homeTeam.team_id):this.awayTeamCheck?(this.homeTeamCheck=!1,this.teamactive=this.game.awayTeam.team_id):(this.updateHomeCheck+=1,this.homeTeamCheck=!0,this.teamactive=this.game.homeTeam.team_id)},onCheckInactiveAway(e){e?(this.awayTeamCheck=!0,this.homeTeamCheck?this.teamactive=0:this.teamactive=this.game.awayTeam.team_id):this.homeTeamCheck?(this.awayTeamCheck=!1,this.teamactive=this.game.homeTeam.team_id):(this.updateAwayCheck+=1,this.teamactive=this.game.awayTeam.team_id,this.awayTeamCheck=!0)},setUpResizeObserver(){if(window.ResizeObserver)$q=new ResizeObserver(()=>{this.widthSection=this.$refs.comparative.clientWidth}),$q.observe(this.$refs.comparative);else throw new Error("Resize observer not supported!")},clickOptSection(e){this.activeSection=e},openmedia(e){this.typeViewData===1?(e.gameIdsToFilter=[this.game.gameId],this.$emit("openmedia",e)):this.$emit("openmedia",e)}},async mounted(){setTimeout(()=>{this.setUpResizeObserver()},1e3)}},oFt=e=>(t.pushScopeId("data-v-ca87117f"),e=e(),t.popScopeId(),e),sFt={class:"container-comparative",ref:"comparative"},lFt={class:"container-btn"},cFt={class:"items-container-btn"},dFt={class:"container-sections"},uFt={key:0,class:"container-teams-menu"},hFt={class:"container-team-menu-home"},pFt=["src"],fFt=oFt(()=>t.createElementVNode("div",{class:"container-team-menu-separator"},null,-1)),mFt={class:"container-team-menu-away"},gFt=["src"],yFt={key:1,class:"container-switch-menu"},vFt={class:"container-leyend"},_Ft={class:"container-tops"};function bFt(e,r,i,B,D,c){const g=t.resolveComponent("GSCDatosGSMain"),a=t.resolveComponent("GSCCheckbox"),y=t.resolveComponent("GSCRadioToggle"),f=t.resolveComponent("GSCTopFull");return t.openBlock(),t.createElementBlock("div",sFt,[t.createElementVNode("div",lFt,[t.createElementVNode("div",cFt,[t.createElementVNode("div",{class:t.normalizeClass([D.widthSection>480?"btn-destacados":"btn-destacados-movil",D.activeSection=="destacados"?"active":""]),onClick:r[0]||(r[0]=n=>c.clickOptSection("destacados"))},[i.game.status==1||i.game.is_live==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[i.tournamentSelected.is_female==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Jugadoras destacadas")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("Jugadores destacados")],64))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("General")],64))],2),t.createElementVNode("div",{class:t.normalizeClass([D.widthSection>480?"btn-avanced":"btn-avanced-movil",D.activeSection=="avanzado"?"active":""]),onClick:r[1]||(r[1]=n=>c.clickOptSection("avanzado"))}," Avanzado ",2)])]),t.createElementVNode("div",dFt,[D.activeSection=="destacados"?(t.openBlock(),t.createBlock(g,{key:0,"is-widget":i.isWidget,"team-widget":i.teamWidget,"tournament-selected":i.tournamentSelected,"time-live-comparative-best-players":i.timeLiveComparativeBestPlayers,game:i.game,"play-videos-privileges":i.playVideosPrivileges,onOpenmedia:c.openmedia,onIntervalidgs:c.intervalidgs},null,8,["is-widget","team-widget","tournament-selected","time-live-comparative-best-players","game","play-videos-privileges","onOpenmedia","onIntervalidgs"])):t.createCommentVNode("",!0),D.activeSection=="avanzado"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[i.isWidget?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",uFt,[t.createElementVNode("div",hFt,[(t.openBlock(),t.createBlock(a,{fontFamily:"Poppins-Regular","onUpdate:modelValue":c.onCheckInactiveHome,"label-color":"#8c9399",width:"25",key:D.updateHomeCheck,"model-value":D.homeTeamCheck,height:"25",style:{"margin-top":"-4px"}},null,8,["onUpdate:modelValue","model-value"])),t.createElementVNode("img",{class:"img-teams-selector-home",width:"23",src:i.game.homeTeam.logo},null,8,pFt),t.createElementVNode("div",{class:t.normalizeClass(D.widthSection>390?"label-team-home":"label-team-home-movil")},t.toDisplayString(i.game.homeTeam.colloquial_name),3)]),fFt,t.createElementVNode("div",mFt,[t.createElementVNode("div",{class:t.normalizeClass(D.widthSection>390?"label-team-away":"label-team-away-movil")},t.toDisplayString(i.game.awayTeam.colloquial_name),3),t.createElementVNode("img",{class:"img-teams-selector-away",width:"23",src:i.game.awayTeam.logo},null,8,gFt),(t.openBlock(),t.createBlock(a,{fontFamily:"Poppins-Regular","onUpdate:modelValue":c.onCheckInactiveAway,"label-color":"#8c9399",width:"25",key:D.updateAwayCheck,"model-value":D.awayTeamCheck,height:"25",style:{"margin-top":"-4px"}},null,8,["onUpdate:modelValue","model-value"]))])])),i.game.is_live||i.game.status===1||i.game.status===0?(t.openBlock(),t.createElementBlock("div",yFt,[t.createVNode(y,{height:"20px",width:"41px","background-color":"none","width-circle":"15px","height-circle":"15px","circle-color-switch":"#CBEE6B","font-color":"#ffffff","value-default":D.typeViewData==1?"Este partido":"Acumulado",textOptionLeft:"Este partido",textOptionRight:"Acumulado",onChange:c.ChangeRadio},null,8,["value-default","onChange"])])):t.createCommentVNode("",!0),t.createElementVNode("div",vFt,[D.typeViewData==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(" Jugadas destacadas durante este partido ")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[i.game.status==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(" Jugadas destacadas durante el torneo ")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[i.tournamentSelected.is_female==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Jugadoras destacadas durante lo que va del torneo")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("Jugadores destacados durante lo que va del torneo")],64))],64))],64))]),t.createElementVNode("div",_Ft,[t.createVNode(f,{"is-widget":i.isWidget,"team-widget":i.teamWidget,"time-live-comparative-avanced":i.timeLiveComparativeAvanced,"can-play-videos":i.canPlayVideos,onOpenmedia:c.openmedia,onOpenProfileTeam:c.onOpenProfileTeam,onIntervalidtops:c.intervalidtops,onOpenProfilePlayer:c.onOpenProfilePlayer,"type-data":D.typeViewData,"game-id":i.game.gameId,game:i.game,"current-season-id":i.game.seasonId,"team-id":D.teamactive,"season-active":i.game.seasonId,teamselect:D.teamactive},null,8,["is-widget","team-widget","time-live-comparative-avanced","can-play-videos","onOpenmedia","onOpenProfileTeam","onIntervalidtops","onOpenProfilePlayer","type-data","game-id","game","current-season-id","team-id","season-active","teamselect"])])],64)):t.createCommentVNode("",!0)])],512)}const xFt=$i(iFt,[["render",bFt],["__scopeId","data-v-ca87117f"]]);function jq(e,r){return function(){return e.apply(r,arguments)}}const{toString:wFt}=Object.prototype,{getPrototypeOf:oA}=Object,N4=(e=>r=>{const i=wFt.call(r);return e[i]||(e[i]=i.slice(8,-1).toLowerCase())})(Object.create(null)),uf=e=>(e=e.toLowerCase(),r=>N4(r)===e),z4=e=>r=>typeof r===e,{isArray:Jy}=Array,I_=z4("undefined");function kFt(e){return e!==null&&!I_(e)&&e.constructor!==null&&!I_(e.constructor)&&Ih(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Uq=uf("ArrayBuffer");function CFt(e){let r;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?r=ArrayBuffer.isView(e):r=e&&e.buffer&&Uq(e.buffer),r}const SFt=z4("string"),Ih=z4("function"),Gq=z4("number"),O4=e=>e!==null&&typeof e=="object",TFt=e=>e===!0||e===!1,F4=e=>{if(N4(e)!=="object")return!1;const r=oA(e);return(r===null||r===Object.prototype||Object.getPrototypeOf(r)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},EFt=uf("Date"),AFt=uf("File"),MFt=uf("Blob"),IFt=uf("FileList"),PFt=e=>O4(e)&&Ih(e.pipe),BFt=e=>{let r;return e&&(typeof FormData=="function"&&e instanceof FormData||Ih(e.append)&&((r=N4(e))==="formdata"||r==="object"&&Ih(e.toString)&&e.toString()==="[object FormData]"))},NFt=uf("URLSearchParams"),[zFt,OFt,FFt,LFt]=["ReadableStream","Request","Response","Headers"].map(uf),DFt=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function P_(e,r,{allOwnKeys:i=!1}={}){if(e===null||typeof e>"u")return;let B,D;if(typeof e!="object"&&(e=[e]),Jy(e))for(B=0,D=e.length;B<D;B++)r.call(null,e[B],B,e);else{const c=i?Object.getOwnPropertyNames(e):Object.keys(e),g=c.length;let a;for(B=0;B<g;B++)a=c[B],r.call(null,e[a],a,e)}}function Hq(e,r){r=r.toLowerCase();const i=Object.keys(e);let B=i.length,D;for(;B-- >0;)if(D=i[B],r===D.toLowerCase())return D;return null}const E1=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Wq=e=>!I_(e)&&e!==E1;function sA(){const{caseless:e}=Wq(this)&&this||{},r={},i=(B,D)=>{const c=e&&Hq(r,D)||D;F4(r[c])&&F4(B)?r[c]=sA(r[c],B):F4(B)?r[c]=sA({},B):Jy(B)?r[c]=B.slice():r[c]=B};for(let B=0,D=arguments.length;B<D;B++)arguments[B]&&P_(arguments[B],i);return r}const RFt=(e,r,i,{allOwnKeys:B}={})=>(P_(r,(D,c)=>{i&&Ih(D)?e[c]=jq(D,i):e[c]=D},{allOwnKeys:B}),e),VFt=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),$Ft=(e,r,i,B)=>{e.prototype=Object.create(r.prototype,B),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:r.prototype}),i&&Object.assign(e.prototype,i)},jFt=(e,r,i,B)=>{let D,c,g;const a={};if(r=r||{},e==null)return r;do{for(D=Object.getOwnPropertyNames(e),c=D.length;c-- >0;)g=D[c],(!B||B(g,e,r))&&!a[g]&&(r[g]=e[g],a[g]=!0);e=i!==!1&&oA(e)}while(e&&(!i||i(e,r))&&e!==Object.prototype);return r},UFt=(e,r,i)=>{e=String(e),(i===void 0||i>e.length)&&(i=e.length),i-=r.length;const B=e.indexOf(r,i);return B!==-1&&B===i},GFt=e=>{if(!e)return null;if(Jy(e))return e;let r=e.length;if(!Gq(r))return null;const i=new Array(r);for(;r-- >0;)i[r]=e[r];return i},HFt=(e=>r=>e&&r instanceof e)(typeof Uint8Array<"u"&&oA(Uint8Array)),WFt=(e,r)=>{const i=(e&&e[Symbol.iterator]).call(e);let B;for(;(B=i.next())&&!B.done;){const D=B.value;r.call(e,D[0],D[1])}},qFt=(e,r)=>{let i;const B=[];for(;(i=e.exec(r))!==null;)B.push(i);return B},YFt=uf("HTMLFormElement"),XFt=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,i,B){return i.toUpperCase()+B}),qq=(({hasOwnProperty:e})=>(r,i)=>e.call(r,i))(Object.prototype),ZFt=uf("RegExp"),Yq=(e,r)=>{const i=Object.getOwnPropertyDescriptors(e),B={};P_(i,(D,c)=>{let g;(g=r(D,c,e))!==!1&&(B[c]=g||D)}),Object.defineProperties(e,B)},JFt=e=>{Yq(e,(r,i)=>{if(Ih(e)&&["arguments","caller","callee"].indexOf(i)!==-1)return!1;const B=e[i];if(Ih(B)){if(r.enumerable=!1,"writable"in r){r.writable=!1;return}r.set||(r.set=()=>{throw Error("Can not rewrite read-only method '"+i+"'")})}})},KFt=(e,r)=>{const i={},B=D=>{D.forEach(c=>{i[c]=!0})};return Jy(e)?B(e):B(String(e).split(r)),i},QFt=()=>{},eLt=(e,r)=>e!=null&&Number.isFinite(e=+e)?e:r,lA="abcdefghijklmnopqrstuvwxyz",Xq="0123456789",Zq={DIGIT:Xq,ALPHA:lA,ALPHA_DIGIT:lA+lA.toUpperCase()+Xq},tLt=(e=16,r=Zq.ALPHA_DIGIT)=>{let i="";const{length:B}=r;for(;e--;)i+=r[Math.random()*B|0];return i};function aLt(e){return!!(e&&Ih(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const nLt=e=>{const r=new Array(10),i=(B,D)=>{if(O4(B)){if(r.indexOf(B)>=0)return;if(!("toJSON"in B)){r[D]=B;const c=Jy(B)?[]:{};return P_(B,(g,a)=>{const y=i(g,D+1);!I_(y)&&(c[a]=y)}),r[D]=void 0,c}}return B};return i(e,0)},rLt=uf("AsyncFunction"),iLt=e=>e&&(O4(e)||Ih(e))&&Ih(e.then)&&Ih(e.catch),Jq=((e,r)=>e?setImmediate:r?((i,B)=>(E1.addEventListener("message",({source:D,data:c})=>{D===E1&&c===i&&B.length&&B.shift()()},!1),D=>{B.push(D),E1.postMessage(i,"*")}))(`axios@${Math.random()}`,[]):i=>setTimeout(i))(typeof setImmediate=="function",Ih(E1.postMessage)),oLt=typeof queueMicrotask<"u"?queueMicrotask.bind(E1):typeof process<"u"&&process.nextTick||Jq,vr={isArray:Jy,isArrayBuffer:Uq,isBuffer:kFt,isFormData:BFt,isArrayBufferView:CFt,isString:SFt,isNumber:Gq,isBoolean:TFt,isObject:O4,isPlainObject:F4,isReadableStream:zFt,isRequest:OFt,isResponse:FFt,isHeaders:LFt,isUndefined:I_,isDate:EFt,isFile:AFt,isBlob:MFt,isRegExp:ZFt,isFunction:Ih,isStream:PFt,isURLSearchParams:NFt,isTypedArray:HFt,isFileList:IFt,forEach:P_,merge:sA,extend:RFt,trim:DFt,stripBOM:VFt,inherits:$Ft,toFlatObject:jFt,kindOf:N4,kindOfTest:uf,endsWith:UFt,toArray:GFt,forEachEntry:WFt,matchAll:qFt,isHTMLForm:YFt,hasOwnProperty:qq,hasOwnProp:qq,reduceDescriptors:Yq,freezeMethods:JFt,toObjectSet:KFt,toCamelCase:XFt,noop:QFt,toFiniteNumber:eLt,findKey:Hq,global:E1,isContextDefined:Wq,ALPHABET:Zq,generateString:tLt,isSpecCompliantForm:aLt,toJSONObject:nLt,isAsyncFn:rLt,isThenable:iLt,setImmediate:Jq,asap:oLt};function ns(e,r,i,B,D){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",r&&(this.code=r),i&&(this.config=i),B&&(this.request=B),D&&(this.response=D,this.status=D.status?D.status:null)}vr.inherits(ns,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:vr.toJSONObject(this.config),code:this.code,status:this.status}}});const Kq=ns.prototype,Qq={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Qq[e]={value:e}}),Object.defineProperties(ns,Qq),Object.defineProperty(Kq,"isAxiosError",{value:!0}),ns.from=(e,r,i,B,D,c)=>{const g=Object.create(Kq);return vr.toFlatObject(e,g,function(a){return a!==Error.prototype},a=>a!=="isAxiosError"),ns.call(g,e.message,r,i,B,D),g.cause=e,g.name=e.name,c&&Object.assign(g,c),g};const sLt=null;function cA(e){return vr.isPlainObject(e)||vr.isArray(e)}function eY(e){return vr.endsWith(e,"[]")?e.slice(0,-2):e}function tY(e,r,i){return e?e.concat(r).map(function(B,D){return B=eY(B),!i&&D?"["+B+"]":B}).join(i?".":""):r}function lLt(e){return vr.isArray(e)&&!e.some(cA)}const cLt=vr.toFlatObject(vr,{},null,function(e){return/^is[A-Z]/.test(e)});function L4(e,r,i){if(!vr.isObject(e))throw new TypeError("target must be an object");r=r||new FormData,i=vr.toFlatObject(i,{metaTokens:!0,dots:!1,indexes:!1},!1,function(p,l){return!vr.isUndefined(l[p])});const B=i.metaTokens,D=i.visitor||f,c=i.dots,g=i.indexes,a=(i.Blob||typeof Blob<"u"&&Blob)&&vr.isSpecCompliantForm(r);if(!vr.isFunction(D))throw new TypeError("visitor must be a function");function y(p){if(p===null)return"";if(vr.isDate(p))return p.toISOString();if(!a&&vr.isBlob(p))throw new ns("Blob is not supported. Use a Buffer instead.");return vr.isArrayBuffer(p)||vr.isTypedArray(p)?a&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function f(p,l,o){let s=p;if(p&&!o&&typeof p=="object"){if(vr.endsWith(l,"{}"))l=B?l:l.slice(0,-2),p=JSON.stringify(p);else if(vr.isArray(p)&&lLt(p)||(vr.isFileList(p)||vr.endsWith(l,"[]"))&&(s=vr.toArray(p)))return l=eY(l),s.forEach(function(u,d){!(vr.isUndefined(u)||u===null)&&r.append(g===!0?tY([l],d,c):g===null?l:l+"[]",y(u))}),!1}return cA(p)?!0:(r.append(tY(o,l,c),y(p)),!1)}const n=[],v=Object.assign(cLt,{defaultVisitor:f,convertValue:y,isVisitable:cA});function _(p,l){if(!vr.isUndefined(p)){if(n.indexOf(p)!==-1)throw Error("Circular reference detected in "+l.join("."));n.push(p),vr.forEach(p,function(o,s){(!(vr.isUndefined(o)||o===null)&&D.call(r,o,vr.isString(s)?s.trim():s,l,v))===!0&&_(o,l?l.concat(s):[s])}),n.pop()}}if(!vr.isObject(e))throw new TypeError("data must be an object");return _(e),r}function aY(e){const r={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(i){return r[i]})}function dA(e,r){this._pairs=[],e&&L4(e,this,r)}const nY=dA.prototype;nY.append=function(e,r){this._pairs.push([e,r])},nY.toString=function(e){const r=e?function(i){return e.call(this,i,aY)}:aY;return this._pairs.map(function(i){return r(i[0])+"="+r(i[1])},"").join("&")};function dLt(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function rY(e,r,i){if(!r)return e;const B=i&&i.encode||dLt,D=i&&i.serialize;let c;if(D?c=D(r,i):c=vr.isURLSearchParams(r)?r.toString():new dA(r,i).toString(B),c){const g=e.indexOf("#");g!==-1&&(e=e.slice(0,g)),e+=(e.indexOf("?")===-1?"?":"&")+c}return e}class iY{constructor(){this.handlers=[]}use(r,i,B){return this.handlers.push({fulfilled:r,rejected:i,synchronous:B?B.synchronous:!1,runWhen:B?B.runWhen:null}),this.handlers.length-1}eject(r){this.handlers[r]&&(this.handlers[r]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(r){vr.forEach(this.handlers,function(i){i!==null&&r(i)})}}const oY={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},uLt=typeof URLSearchParams<"u"?URLSearchParams:dA,hLt=typeof FormData<"u"?FormData:null,pLt=typeof Blob<"u"?Blob:null,fLt={isBrowser:!0,classes:{URLSearchParams:uLt,FormData:hLt,Blob:pLt},protocols:["http","https","file","blob","url","data"]},uA=typeof window<"u"&&typeof document<"u",hA=typeof navigator=="object"&&navigator||void 0,mLt=uA&&(!hA||["ReactNative","NativeScript","NS"].indexOf(hA.product)<0),gLt=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",yLt=uA&&window.location.href||"http://localhost",vLt=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:uA,hasStandardBrowserEnv:mLt,hasStandardBrowserWebWorkerEnv:gLt,navigator:hA,origin:yLt},Symbol.toStringTag,{value:"Module"})),Ph={...vLt,...fLt};function _Lt(e,r){return L4(e,new Ph.classes.URLSearchParams,Object.assign({visitor:function(i,B,D,c){return Ph.isNode&&vr.isBuffer(i)?(this.append(B,i.toString("base64")),!1):c.defaultVisitor.apply(this,arguments)}},r))}function bLt(e){return vr.matchAll(/\w+|\[(\w*)]/g,e).map(r=>r[0]==="[]"?"":r[1]||r[0])}function xLt(e){const r={},i=Object.keys(e);let B;const D=i.length;let c;for(B=0;B<D;B++)c=i[B],r[c]=e[c];return r}function sY(e){function r(i,B,D,c){let g=i[c++];if(g==="__proto__")return!0;const a=Number.isFinite(+g),y=c>=i.length;return g=!g&&vr.isArray(D)?D.length:g,y?(vr.hasOwnProp(D,g)?D[g]=[D[g],B]:D[g]=B,!a):((!D[g]||!vr.isObject(D[g]))&&(D[g]=[]),r(i,B,D[g],c)&&vr.isArray(D[g])&&(D[g]=xLt(D[g])),!a)}if(vr.isFormData(e)&&vr.isFunction(e.entries)){const i={};return vr.forEachEntry(e,(B,D)=>{r(bLt(B),D,i,0)}),i}return null}function wLt(e,r,i){if(vr.isString(e))try{return(r||JSON.parse)(e),vr.trim(e)}catch(B){if(B.name!=="SyntaxError")throw B}return(i||JSON.stringify)(e)}const B_={transitional:oY,adapter:["xhr","http","fetch"],transformRequest:[function(e,r){const i=r.getContentType()||"",B=i.indexOf("application/json")>-1,D=vr.isObject(e);if(D&&vr.isHTMLForm(e)&&(e=new FormData(e)),vr.isFormData(e))return B?JSON.stringify(sY(e)):e;if(vr.isArrayBuffer(e)||vr.isBuffer(e)||vr.isStream(e)||vr.isFile(e)||vr.isBlob(e)||vr.isReadableStream(e))return e;if(vr.isArrayBufferView(e))return e.buffer;if(vr.isURLSearchParams(e))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let c;if(D){if(i.indexOf("application/x-www-form-urlencoded")>-1)return _Lt(e,this.formSerializer).toString();if((c=vr.isFileList(e))||i.indexOf("multipart/form-data")>-1){const g=this.env&&this.env.FormData;return L4(c?{"files[]":e}:e,g&&new g,this.formSerializer)}}return D||B?(r.setContentType("application/json",!1),wLt(e)):e}],transformResponse:[function(e){const r=this.transitional||B_.transitional,i=r&&r.forcedJSONParsing,B=this.responseType==="json";if(vr.isResponse(e)||vr.isReadableStream(e))return e;if(e&&vr.isString(e)&&(i&&!this.responseType||B)){const D=!(r&&r.silentJSONParsing)&&B;try{return JSON.parse(e)}catch(c){if(D)throw c.name==="SyntaxError"?ns.from(c,ns.ERR_BAD_RESPONSE,this,null,this.response):c}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ph.classes.FormData,Blob:Ph.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};vr.forEach(["delete","get","head","post","put","patch"],e=>{B_.headers[e]={}});const kLt=vr.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),CLt=e=>{const r={};let i,B,D;return e&&e.split(`
4163
4163
  `).forEach(function(c){D=c.indexOf(":"),i=c.substring(0,D).trim().toLowerCase(),B=c.substring(D+1).trim(),!(!i||r[i]&&kLt[i])&&(i==="set-cookie"?r[i]?r[i].push(B):r[i]=[B]:r[i]=r[i]?r[i]+", "+B:B)}),r},lY=Symbol("internals");function N_(e){return e&&String(e).trim().toLowerCase()}function D4(e){return e===!1||e==null?e:vr.isArray(e)?e.map(D4):String(e)}function SLt(e){const r=Object.create(null),i=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let B;for(;B=i.exec(e);)r[B[1]]=B[2];return r}const TLt=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function pA(e,r,i,B,D){if(vr.isFunction(B))return B.call(this,r,i);if(D&&(r=i),!!vr.isString(r)){if(vr.isString(B))return r.indexOf(B)!==-1;if(vr.isRegExp(B))return B.test(r)}}function ELt(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(r,i,B)=>i.toUpperCase()+B)}function ALt(e,r){const i=vr.toCamelCase(" "+r);["get","set","has"].forEach(B=>{Object.defineProperty(e,B+i,{value:function(D,c,g){return this[B].call(this,r,D,c,g)},configurable:!0})})}class lh{constructor(r){r&&this.set(r)}set(r,i,B){const D=this;function c(a,y,f){const n=N_(y);if(!n)throw new Error("header name must be a non-empty string");const v=vr.findKey(D,n);(!v||D[v]===void 0||f===!0||f===void 0&&D[v]!==!1)&&(D[v||y]=D4(a))}const g=(a,y)=>vr.forEach(a,(f,n)=>c(f,n,y));if(vr.isPlainObject(r)||r instanceof this.constructor)g(r,i);else if(vr.isString(r)&&(r=r.trim())&&!TLt(r))g(CLt(r),i);else if(vr.isHeaders(r))for(const[a,y]of r.entries())c(y,a,B);else r!=null&&c(i,r,B);return this}get(r,i){if(r=N_(r),r){const B=vr.findKey(this,r);if(B){const D=this[B];if(!i)return D;if(i===!0)return SLt(D);if(vr.isFunction(i))return i.call(this,D,B);if(vr.isRegExp(i))return i.exec(D);throw new TypeError("parser must be boolean|regexp|function")}}}has(r,i){if(r=N_(r),r){const B=vr.findKey(this,r);return!!(B&&this[B]!==void 0&&(!i||pA(this,this[B],B,i)))}return!1}delete(r,i){const B=this;let D=!1;function c(g){if(g=N_(g),g){const a=vr.findKey(B,g);a&&(!i||pA(B,B[a],a,i))&&(delete B[a],D=!0)}}return vr.isArray(r)?r.forEach(c):c(r),D}clear(r){const i=Object.keys(this);let B=i.length,D=!1;for(;B--;){const c=i[B];(!r||pA(this,this[c],c,r,!0))&&(delete this[c],D=!0)}return D}normalize(r){const i=this,B={};return vr.forEach(this,(D,c)=>{const g=vr.findKey(B,c);if(g){i[g]=D4(D),delete i[c];return}const a=r?ELt(c):String(c).trim();a!==c&&delete i[c],i[a]=D4(D),B[a]=!0}),this}concat(...r){return this.constructor.concat(this,...r)}toJSON(r){const i=Object.create(null);return vr.forEach(this,(B,D)=>{B!=null&&B!==!1&&(i[D]=r&&vr.isArray(B)?B.join(", "):B)}),i}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([r,i])=>r+": "+i).join(`
4164
4164
  `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(r){return r instanceof this?r:new this(r)}static concat(r,...i){const B=new this(r);return i.forEach(D=>B.set(D)),B}static accessor(r){const i=(this[lY]=this[lY]={accessors:{}}).accessors,B=this.prototype;function D(c){const g=N_(c);i[g]||(ALt(B,c),i[g]=!0)}return vr.isArray(r)?r.forEach(D):D(r),this}}lh.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),vr.reduceDescriptors(lh.prototype,({value:e},r)=>{let i=r[0].toUpperCase()+r.slice(1);return{get:()=>e,set(B){this[i]=B}}}),vr.freezeMethods(lh);function fA(e,r){const i=this||B_,B=r||i,D=lh.from(B.headers);let c=B.data;return vr.forEach(e,function(g){c=g.call(i,c,D.normalize(),r?r.status:void 0)}),D.normalize(),c}function cY(e){return!!(e&&e.__CANCEL__)}function Ky(e,r,i){ns.call(this,e??"canceled",ns.ERR_CANCELED,r,i),this.name="CanceledError"}vr.inherits(Ky,ns,{__CANCEL__:!0});function dY(e,r,i){const B=i.config.validateStatus;!i.status||!B||B(i.status)?e(i):r(new ns("Request failed with status code "+i.status,[ns.ERR_BAD_REQUEST,ns.ERR_BAD_RESPONSE][Math.floor(i.status/100)-4],i.config,i.request,i))}function MLt(e){const r=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return r&&r[1]||""}function ILt(e,r){e=e||10;const i=new Array(e),B=new Array(e);let D=0,c=0,g;return r=r!==void 0?r:1e3,function(a){const y=Date.now(),f=B[c];g||(g=y),i[D]=a,B[D]=y;let n=c,v=0;for(;n!==D;)v+=i[n++],n=n%e;if(D=(D+1)%e,D===c&&(c=(c+1)%e),y-g<r)return;const _=f&&y-f;return _?Math.round(v*1e3/_):void 0}}function PLt(e,r){let i=0,B=1e3/r,D,c;const g=(a,y=Date.now())=>{i=y,D=null,c&&(clearTimeout(c),c=null),e.apply(null,a)};return[(...a)=>{const y=Date.now(),f=y-i;f>=B?g(a,y):(D=a,c||(c=setTimeout(()=>{c=null,g(D)},B-f)))},()=>D&&g(D)]}const R4=(e,r,i=3)=>{let B=0;const D=ILt(50,250);return PLt(c=>{const g=c.loaded,a=c.lengthComputable?c.total:void 0,y=g-B,f=D(y),n=g<=a;B=g;const v={loaded:g,total:a,progress:a?g/a:void 0,bytes:y,rate:f||void 0,estimated:f&&a&&n?(a-g)/f:void 0,event:c,lengthComputable:a!=null,[r?"download":"upload"]:!0};e(v)},i)},uY=(e,r)=>{const i=e!=null;return[B=>r[0]({lengthComputable:i,total:e,loaded:B}),r[1]]},hY=e=>(...r)=>vr.asap(()=>e(...r)),BLt=Ph.hasStandardBrowserEnv?function(){const e=Ph.navigator&&/(msie|trident)/i.test(Ph.navigator.userAgent),r=document.createElement("a");let i;function B(D){let c=D;return e&&(r.setAttribute("href",c),c=r.href),r.setAttribute("href",c),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return i=B(window.location.href),function(D){const c=vr.isString(D)?B(D):D;return c.protocol===i.protocol&&c.host===i.host}}():function(){return function(){return!0}}(),NLt=Ph.hasStandardBrowserEnv?{write(e,r,i,B,D,c){const g=[e+"="+encodeURIComponent(r)];vr.isNumber(i)&&g.push("expires="+new Date(i).toGMTString()),vr.isString(B)&&g.push("path="+B),vr.isString(D)&&g.push("domain="+D),c===!0&&g.push("secure"),document.cookie=g.join("; ")},read(e){const r=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return r?decodeURIComponent(r[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function zLt(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function OLt(e,r){return r?e.replace(/\/?\/$/,"")+"/"+r.replace(/^\/+/,""):e}function pY(e,r){return e&&!zLt(r)?OLt(e,r):r}const fY=e=>e instanceof lh?{...e}:e;function A1(e,r){r=r||{};const i={};function B(f,n,v){return vr.isPlainObject(f)&&vr.isPlainObject(n)?vr.merge.call({caseless:v},f,n):vr.isPlainObject(n)?vr.merge({},n):vr.isArray(n)?n.slice():n}function D(f,n,v){if(vr.isUndefined(n)){if(!vr.isUndefined(f))return B(void 0,f,v)}else return B(f,n,v)}function c(f,n){if(!vr.isUndefined(n))return B(void 0,n)}function g(f,n){if(vr.isUndefined(n)){if(!vr.isUndefined(f))return B(void 0,f)}else return B(void 0,n)}function a(f,n,v){if(v in r)return B(f,n);if(v in e)return B(void 0,f)}const y={url:c,method:c,data:c,baseURL:g,transformRequest:g,transformResponse:g,paramsSerializer:g,timeout:g,timeoutMessage:g,withCredentials:g,withXSRFToken:g,adapter:g,responseType:g,xsrfCookieName:g,xsrfHeaderName:g,onUploadProgress:g,onDownloadProgress:g,decompress:g,maxContentLength:g,maxBodyLength:g,beforeRedirect:g,transport:g,httpAgent:g,httpsAgent:g,cancelToken:g,socketPath:g,responseEncoding:g,validateStatus:a,headers:(f,n)=>D(fY(f),fY(n),!0)};return vr.forEach(Object.keys(Object.assign({},e,r)),function(f){const n=y[f]||D,v=n(e[f],r[f],f);vr.isUndefined(v)&&n!==a||(i[f]=v)}),i}const mY=e=>{const r=A1({},e);let{data:i,withXSRFToken:B,xsrfHeaderName:D,xsrfCookieName:c,headers:g,auth:a}=r;r.headers=g=lh.from(g),r.url=rY(pY(r.baseURL,r.url),e.params,e.paramsSerializer),a&&g.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):"")));let y;if(vr.isFormData(i)){if(Ph.hasStandardBrowserEnv||Ph.hasStandardBrowserWebWorkerEnv)g.setContentType(void 0);else if((y=g.getContentType())!==!1){const[f,...n]=y?y.split(";").map(v=>v.trim()).filter(Boolean):[];g.setContentType([f||"multipart/form-data",...n].join("; "))}}if(Ph.hasStandardBrowserEnv&&(B&&vr.isFunction(B)&&(B=B(r)),B||B!==!1&&BLt(r.url))){const f=D&&c&&NLt.read(c);f&&g.set(D,f)}return r},FLt=typeof XMLHttpRequest<"u",LLt=FLt&&function(e){return new Promise(function(r,i){const B=mY(e);let D=B.data;const c=lh.from(B.headers).normalize();let{responseType:g,onUploadProgress:a,onDownloadProgress:y}=B,f,n,v,_,p;function l(){_&&_(),p&&p(),B.cancelToken&&B.cancelToken.unsubscribe(f),B.signal&&B.signal.removeEventListener("abort",f)}let o=new XMLHttpRequest;o.open(B.method.toUpperCase(),B.url,!0),o.timeout=B.timeout;function s(){if(!o)return;const d=lh.from("getAllResponseHeaders"in o&&o.getAllResponseHeaders()),h={data:!g||g==="text"||g==="json"?o.responseText:o.response,status:o.status,statusText:o.statusText,headers:d,config:e,request:o};dY(function(m){r(m),l()},function(m){i(m),l()},h),o=null}"onloadend"in o?o.onloadend=s:o.onreadystatechange=function(){!o||o.readyState!==4||o.status===0&&!(o.responseURL&&o.responseURL.indexOf("file:")===0)||setTimeout(s)},o.onabort=function(){o&&(i(new ns("Request aborted",ns.ECONNABORTED,e,o)),o=null)},o.onerror=function(){i(new ns("Network Error",ns.ERR_NETWORK,e,o)),o=null},o.ontimeout=function(){let d=B.timeout?"timeout of "+B.timeout+"ms exceeded":"timeout exceeded";const h=B.transitional||oY;B.timeoutErrorMessage&&(d=B.timeoutErrorMessage),i(new ns(d,h.clarifyTimeoutError?ns.ETIMEDOUT:ns.ECONNABORTED,e,o)),o=null},D===void 0&&c.setContentType(null),"setRequestHeader"in o&&vr.forEach(c.toJSON(),function(d,h){o.setRequestHeader(h,d)}),vr.isUndefined(B.withCredentials)||(o.withCredentials=!!B.withCredentials),g&&g!=="json"&&(o.responseType=B.responseType),y&&([v,p]=R4(y,!0),o.addEventListener("progress",v)),a&&o.upload&&([n,_]=R4(a),o.upload.addEventListener("progress",n),o.upload.addEventListener("loadend",_)),(B.cancelToken||B.signal)&&(f=d=>{o&&(i(!d||d.type?new Ky(null,e,o):d),o.abort(),o=null)},B.cancelToken&&B.cancelToken.subscribe(f),B.signal&&(B.signal.aborted?f():B.signal.addEventListener("abort",f)));const u=MLt(B.url);if(u&&Ph.protocols.indexOf(u)===-1){i(new ns("Unsupported protocol "+u+":",ns.ERR_BAD_REQUEST,e));return}o.send(D||null)})},DLt=(e,r)=>{let i=new AbortController,B;const D=function(y){if(!B){B=!0,g();const f=y instanceof Error?y:this.reason;i.abort(f instanceof ns?f:new Ky(f instanceof Error?f.message:f))}};let c=r&&setTimeout(()=>{D(new ns(`timeout ${r} of ms exceeded`,ns.ETIMEDOUT))},r);const g=()=>{e&&(c&&clearTimeout(c),c=null,e.forEach(y=>{y&&(y.removeEventListener?y.removeEventListener("abort",D):y.unsubscribe(D))}),e=null)};e.forEach(y=>y&&y.addEventListener&&y.addEventListener("abort",D));const{signal:a}=i;return a.unsubscribe=g,[a,()=>{c&&clearTimeout(c),c=null}]},RLt=function*(e,r){let i=e.byteLength;if(!r||i<r){yield e;return}let B=0,D;for(;B<i;)D=B+r,yield e.slice(B,D),B=D},VLt=async function*(e,r,i){for await(const B of e)yield*RLt(ArrayBuffer.isView(B)?B:await i(String(B)),r)},gY=(e,r,i,B,D)=>{const c=VLt(e,r,D);let g=0,a,y=f=>{a||(a=!0,B&&B(f))};return new ReadableStream({async pull(f){try{const{done:n,value:v}=await c.next();if(n){y(),f.close();return}let _=v.byteLength;if(i){let p=g+=_;i(p)}f.enqueue(new Uint8Array(v))}catch(n){throw y(n),n}},cancel(f){return y(f),c.return()}},{highWaterMark:2})},V4=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",yY=V4&&typeof ReadableStream=="function",mA=V4&&(typeof TextEncoder=="function"?(e=>r=>e.encode(r))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),vY=(e,...r)=>{try{return!!e(...r)}catch{return!1}},$Lt=yY&&vY(()=>{let e=!1;const r=new Request(Ph.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!r}),_Y=64*1024,gA=yY&&vY(()=>vr.isReadableStream(new Response("").body)),$4={stream:gA&&(e=>e.body)};V4&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(r=>{!$4[r]&&($4[r]=vr.isFunction(e[r])?i=>i[r]():(i,B)=>{throw new ns(`Response type '${r}' is not supported`,ns.ERR_NOT_SUPPORT,B)})})})(new Response);const jLt=async e=>{if(e==null)return 0;if(vr.isBlob(e))return e.size;if(vr.isSpecCompliantForm(e))return(await new Request(e).arrayBuffer()).byteLength;if(vr.isArrayBufferView(e)||vr.isArrayBuffer(e))return e.byteLength;if(vr.isURLSearchParams(e)&&(e=e+""),vr.isString(e))return(await mA(e)).byteLength},ULt=async(e,r)=>vr.toFiniteNumber(e.getContentLength())??jLt(r),GLt=V4&&(async e=>{let{url:r,method:i,data:B,signal:D,cancelToken:c,timeout:g,onDownloadProgress:a,onUploadProgress:y,responseType:f,headers:n,withCredentials:v="same-origin",fetchOptions:_}=mY(e);f=f?(f+"").toLowerCase():"text";let[p,l]=D||c||g?DLt([D,c],g):[],o,s;const u=()=>{!o&&setTimeout(()=>{p&&p.unsubscribe()}),o=!0};let d;try{if(y&&$Lt&&i!=="get"&&i!=="head"&&(d=await ULt(n,B))!==0){let x=new Request(r,{method:"POST",body:B,duplex:"half"}),S;if(vr.isFormData(B)&&(S=x.headers.get("content-type"))&&n.setContentType(S),x.body){const[C,T]=uY(d,R4(hY(y)));B=gY(x.body,_Y,C,T,mA)}}vr.isString(v)||(v=v?"include":"omit");const h="credentials"in Request.prototype;s=new Request(r,{..._,signal:p,method:i.toUpperCase(),headers:n.normalize().toJSON(),body:B,duplex:"half",credentials:h?v:void 0});let m=await fetch(s);const b=gA&&(f==="stream"||f==="response");if(gA&&(a||b)){const x={};["status","statusText","headers"].forEach(k=>{x[k]=m[k]});const S=vr.toFiniteNumber(m.headers.get("content-length")),[C,T]=a&&uY(S,R4(hY(a),!0))||[];m=new Response(gY(m.body,_Y,C,()=>{T&&T(),b&&u()},mA),x)}f=f||"text";let w=await $4[vr.findKey($4,f)||"text"](m,e);return!b&&u(),l&&l(),await new Promise((x,S)=>{dY(x,S,{data:w,headers:lh.from(m.headers),status:m.status,statusText:m.statusText,config:e,request:s})})}catch(h){throw u(),h&&h.name==="TypeError"&&/fetch/i.test(h.message)?Object.assign(new ns("Network Error",ns.ERR_NETWORK,e,s),{cause:h.cause||h}):ns.from(h,h&&h.code,e,s)}}),yA={http:sLt,xhr:LLt,fetch:GLt};vr.forEach(yA,(e,r)=>{if(e){try{Object.defineProperty(e,"name",{value:r})}catch{}Object.defineProperty(e,"adapterName",{value:r})}});const bY=e=>`- ${e}`,HLt=e=>vr.isFunction(e)||e===null||e===!1,xY={getAdapter:e=>{e=vr.isArray(e)?e:[e];const{length:r}=e;let i,B;const D={};for(let c=0;c<r;c++){i=e[c];let g;if(B=i,!HLt(i)&&(B=yA[(g=String(i)).toLowerCase()],B===void 0))throw new ns(`Unknown adapter '${g}'`);if(B)break;D[g||"#"+c]=B}if(!B){const c=Object.entries(D).map(([a,y])=>`adapter ${a} `+(y===!1?"is not supported by the environment":"is not available in the build"));let g=r?c.length>1?`since :
4165
4165
  `+c.map(bY).join(`