@golstats/gsc-game-data 1.1.46 → 1.1.47

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.
@@ -95,7 +95,7 @@
95
95
  * Vue 3 Carousel 0.3.1
96
96
  * (c) 2023
97
97
  * @license MIT
98
- */const Wu={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"}},gF={itemsToShow:{default:Wu.itemsToShow,type:Number},itemsToScroll:{default:Wu.itemsToScroll,type:Number},wrapAround:{default:Wu.wrapAround,type:Boolean},throttle:{default:Wu.throttle,type:Number},snapAlign:{default:Wu.snapAlign,validator(e){return["start","end","center","center-even","center-odd"].includes(e)}},transition:{default:Wu.transition,type:Number},breakpoints:{default:Wu.breakpoints,type:Object},autoplay:{default:Wu.autoplay,type:Number},pauseAutoplayOnHover:{default:Wu.pauseAutoplayOnHover,type:Boolean},modelValue:{default:void 0,type:Number},mouseDrag:{default:Wu.mouseDrag,type:Boolean},touchDrag:{default:Wu.touchDrag,type:Boolean},dir:{default:Wu.dir,validator(e){return["rtl","ltr"].includes(e)}},i18n:{default:Wu.i18n,type:Object},settings:{default(){return{}},type:Object}};function pHe({config:e,slidesCount:i}){const{snapAlign:s,wrapAround:B,itemsToShow:U=1}=e;if(B)return Math.max(i-1,0);let m;switch(s){case"start":m=i-U;break;case"end":m=i-1;break;case"center":case"center-odd":m=i-Math.ceil((U-.5)/2);break;case"center-even":m=i-Math.ceil(U/2);break;default:m=0;break}return Math.max(m,0)}function fHe({config:e,slidesCount:i}){const{wrapAround:s,snapAlign:B,itemsToShow:U=1}=e;let m=0;if(s||U>i)return m;switch(B){case"start":m=0;break;case"end":m=U-1;break;case"center":case"center-odd":m=Math.floor((U-1)/2);break;case"center-even":m=Math.floor((U-2)/2);break;default:m=0;break}return m}function tS({val:e,max:i,min:s}){return i<s?e:Math.min(Math.max(e,s),i)}function mHe({config:e,currentSlide:i,slidesCount:s}){const{snapAlign:B,wrapAround:U,itemsToShow:m=1}=e;let g=i;switch(B){case"center":case"center-odd":g-=(m-1)/2;break;case"center-even":g-=(m-2)/2;break;case"end":g-=m-1;break}return U?g:tS({val:g,max:s-m,min:0})}function yF(e){return e?e.reduce((i,s)=>{var B;return s.type===t.Fragment?[...i,...yF(s.children)]:((B=s.type)===null||B===void 0?void 0:B.name)==="CarouselSlide"?[...i,s]:i},[]):[]}function aS({val:e,max:i,min:s=0}){return e>i?aS({val:e-(i+1),max:i,min:s}):e<s?aS({val:e+(i+1),max:i,min:s}):e}function gHe(e,i){let s;return i?function(...B){const U=this;s||(e.apply(U,B),s=!0,setTimeout(()=>s=!1,i))}:e}function yHe(e,i){let s;return function(...B){s&&clearTimeout(s),s=setTimeout(()=>{e(...B),s=null},i)}}function vHe(e="",i={}){return Object.entries(i).reduce((s,[B,U])=>s.replace(`{${B}}`,String(U)),e)}var bHe=t.defineComponent({name:"ARIA",setup(){const e=t.inject("config",t.reactive(Object.assign({},Wu))),i=t.inject("currentSlide",t.ref(0)),s=t.inject("slidesCount",t.ref(0));return()=>t.h("div",{class:["carousel__liveregion","carousel__sr-only"],"aria-live":"polite","aria-atomic":"true"},vHe(e.i18n.itemXofY,{currentSlide:i.value+1,slidesCount:s.value}))}}),xHe=t.defineComponent({name:"Carousel",props:gF,setup(e,{slots:i,emit:s,expose:B}){var U;const m=t.ref(null),g=t.ref([]),r=t.ref(0),y=t.ref(0),u=t.reactive(Object.assign({},Wu));let a=Object.assign({},Wu),x;const v=t.ref((U=e.modelValue)!==null&&U!==void 0?U:0),_=t.ref(0),p=t.ref(0),n=t.ref(0),o=t.ref(0);let c,l;t.provide("config",u),t.provide("slidesCount",y),t.provide("currentSlide",v),t.provide("maxSlide",n),t.provide("minSlide",o),t.provide("slideWidth",r);function h(){x=Object.assign({},e.breakpoints),a=Object.assign(Object.assign(Object.assign({},a),e),{i18n:Object.assign(Object.assign({},a.i18n),e.i18n),breakpoints:void 0}),w(a)}function b(){if(!x||!Object.keys(x).length)return;const re=Object.keys(x).map(ie=>Number(ie)).sort((ie,me)=>+me-+ie);let se=Object.assign({},a);re.some(ie=>{const me=window.matchMedia(`(min-width: ${ie}px)`).matches;return me&&(se=Object.assign(Object.assign({},se),x[ie])),me}),w(se)}function w(re){Object.entries(re).forEach(([se,ie])=>u[se]=ie)}const C=yHe(()=>{b(),E()},16);function E(){if(!m.value)return;const re=m.value.getBoundingClientRect();r.value=re.width/u.itemsToShow}function A(){y.value<=0||(p.value=Math.ceil((y.value-1)/2),n.value=pHe({config:u,slidesCount:y.value}),o.value=fHe({config:u,slidesCount:y.value}),u.wrapAround||(v.value=tS({val:v.value,max:n.value,min:o.value})))}t.onMounted(()=>{t.nextTick(()=>E()),setTimeout(()=>E(),1e3),b(),H(),window.addEventListener("resize",C,{passive:!0}),s("init")}),t.onUnmounted(()=>{l&&clearTimeout(l),c&&clearInterval(c),window.removeEventListener("resize",C,{passive:!0})});let P=!1;const L={x:0,y:0},T={x:0,y:0},I=t.reactive({x:0,y:0}),M=t.ref(!1),S=t.ref(!1),z=()=>{M.value=!0},k=()=>{M.value=!1};function O(re){["INPUT","TEXTAREA","SELECT"].includes(re.target.tagName)||(P=re.type==="touchstart",P||re.preventDefault(),!(!P&&re.button!==0||G.value)&&(L.x=P?re.touches[0].clientX:re.clientX,L.y=P?re.touches[0].clientY:re.clientY,document.addEventListener(P?"touchmove":"mousemove",N,!0),document.addEventListener(P?"touchend":"mouseup",j,!0)))}const N=gHe(re=>{S.value=!0,T.x=P?re.touches[0].clientX:re.clientX,T.y=P?re.touches[0].clientY:re.clientY;const se=T.x-L.x,ie=T.y-L.y;I.y=ie,I.x=se},u.throttle);function j(){const re=u.dir==="rtl"?-1:1,se=Math.sign(I.x)*.4,ie=Math.round(I.x/r.value+se)*re;if(ie&&!P){const me=ye=>{ye.stopPropagation(),window.removeEventListener("click",me,!0)};window.addEventListener("click",me,!0)}$(v.value-ie),I.x=0,I.y=0,S.value=!1,document.removeEventListener(P?"touchmove":"mousemove",N,!0),document.removeEventListener(P?"touchend":"mouseup",j,!0)}function H(){!u.autoplay||u.autoplay<=0||(c=setInterval(()=>{u.pauseAutoplayOnHover&&M.value||ne()},u.autoplay))}function Z(){c&&(clearInterval(c),c=null),H()}const G=t.ref(!1);function $(re){const se=u.wrapAround?re:tS({val:re,max:n.value,min:o.value});v.value===se||G.value||(s("slide-start",{slidingToIndex:re,currentSlideIndex:v.value,prevSlideIndex:_.value,slidesCount:y.value}),G.value=!0,_.value=v.value,v.value=se,l=setTimeout(()=>{if(u.wrapAround){const ie=aS({val:se,max:n.value,min:0});ie!==v.value&&(v.value=ie,s("loop",{currentSlideIndex:v.value,slidingToIndex:re}))}s("update:modelValue",v.value),s("slide-end",{currentSlideIndex:v.value,prevSlideIndex:_.value,slidesCount:y.value}),G.value=!1,Z()},u.transition))}function ne(){$(v.value+u.itemsToScroll)}function W(){$(v.value-u.itemsToScroll)}const K={slideTo:$,next:ne,prev:W};t.provide("nav",K),t.provide("isSliding",G);const Q=t.computed(()=>mHe({config:u,currentSlide:v.value,slidesCount:y.value}));t.provide("slidesToScroll",Q);const J=t.computed(()=>{const re=u.dir==="rtl"?-1:1,se=Q.value*r.value*re;return{transform:`translateX(${I.x-se}px)`,transition:`${G.value?u.transition:0}ms`,margin:u.wrapAround?`0 -${y.value*r.value}px`:"",width:"100%"}});function ee(){h(),b(),A(),E(),Z()}Object.keys(gF).forEach(re=>{["modelValue"].includes(re)||t.watch(()=>e[re],ee)}),t.watch(()=>e.modelValue,re=>{re!==v.value&&$(Number(re))}),t.watch(y,A),s("before-init"),h();const ce={config:u,slidesCount:y,slideWidth:r,next:ne,prev:W,slideTo:$,currentSlide:v,maxSlide:n,minSlide:o,middleSlide:p};B({updateBreakpointsConfigs:b,updateSlidesData:A,updateSlideWidth:E,initDefaultConfigs:h,restartCarousel:ee,slideTo:$,next:ne,prev:W,nav:K,data:ce});const ue=i.default||i.slides,he=i.addons,pe=t.reactive(ce);return()=>{const re=yF(ue==null?void 0:ue(pe)),se=(he==null?void 0:he(pe))||[];re.forEach((ve,we)=>ve.props.index=we);let ie=re;if(u.wrapAround){const ve=re.map((Se,Ce)=>t.cloneVNode(Se,{index:-re.length+Ce,isClone:!0,key:`clone-before-${Ce}`})),we=re.map((Se,Ce)=>t.cloneVNode(Se,{index:re.length+Ce,isClone:!0,key:`clone-after-${Ce}`}));ie=[...ve,...re,...we]}g.value=re,y.value=Math.max(re.length,1);const me=t.h("ol",{class:"carousel__track",style:J.value,onMousedownCapture:u.mouseDrag?O:null,onTouchstartPassiveCapture:u.touchDrag?O:null},ie),ye=t.h("div",{class:"carousel__viewport"},me);return t.h("section",{ref:m,class:{carousel:!0,"is-sliding":G.value,"is-dragging":S.value,"is-hover":M.value,"carousel--rtl":u.dir==="rtl"},dir:u.dir,"aria-label":u.i18n.ariaGallery,tabindex:"0",onMouseenter:z,onMouseleave:k},[ye,se,t.h(bHe)])}}}),vF;(function(e){e.arrowUp="arrowUp",e.arrowDown="arrowDown",e.arrowRight="arrowRight",e.arrowLeft="arrowLeft"})(vF||(vF={}));var _He=t.defineComponent({name:"CarouselSlide",props:{index:{type:Number,default:1},isClone:{type:Boolean,default:!1}},setup(e,{slots:i}){const s=t.inject("config",t.reactive(Object.assign({},Wu))),B=t.inject("currentSlide",t.ref(0)),U=t.inject("slidesToScroll",t.ref(0)),m=t.inject("isSliding",t.ref(!1)),g=()=>e.index===B.value,r=()=>e.index===B.value-1,y=()=>e.index===B.value+1,u=()=>{const a=Math.floor(U.value),x=Math.ceil(U.value+s.itemsToShow-1);return e.index>=a&&e.index<=x};return()=>{var a;return t.h("li",{style:{width:`${100/s.itemsToShow}%`},class:{carousel__slide:!0,"carousel__slide--clone":e.isClone,"carousel__slide--visible":u(),"carousel__slide--active":g(),"carousel__slide--prev":r(),"carousel__slide--next":y(),"carousel__slide--sliding":m.value},"aria-hidden":!u()},(a=i.default)===null||a===void 0?void 0:a.call(i))}}});const wHe=(e,i)=>{const s=e.__vccOpts||e;for(const[B,U]of i)s[B]=U;return s},kHe=e=>(t.pushScopeId("data-v-54620d25"),e=e(),t.popScopeId(),e),SHe={class:"gsc-carousel"},CHe={key:0},THe=kHe(()=>t.createElementVNode("div",null,"no hay",-1)),AHe=[THe],EHe={class:"gsc-carousel__2d__slides"},MHe={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},IHe=["fill"],PHe={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},LHe=["fill"],BHe={class:"gsc-carousel__2d__navigation"},zHe={width:"8",height:"15",viewBox:"0 0 8 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},OHe=["stroke"],DHe={key:1,class:"gsc-carousel__2d__navigation__pagination"},NHe=["onClick"],FHe={width:"7",height:"15",viewBox:"0 0 7 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},RHe=["stroke"],VHe={__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(i=>i 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:i,emit:s}){const B=e;t.useCssVars(n=>({"2c72d674":e.slideLeftArrowBackgroundImage,"90a63f40":e.slidesArrowsLeftAndRight,"2627d097":e.slideRightArrowBackgroundImage,"1904d43f":e.marginTop,cfb58986:e.secondarySlidesOpacity}));const U=t.ref(null),m=t.ref({}),g=t.ref(0),r=t.ref(!1);t.watch(U,n=>{n&&r.value?(r.value=!1,y(B.items)):n&&n.slideTo&&n.slideTo(g.value)},{deep:!0}),t.watch(()=>B.currentItemIndex,n=>{g.value!==n&&v(n)}),t.watch(()=>B.defaultItemByIndex,n=>{g.value!==n&&v(n)}),t.watch(()=>B.items,n=>{U.value?y(n):r.value=!0},{immediate:!0});function y(n){n&&n.length&&U.value&&setTimeout(()=>{if(B.defaultItemByProp){const o=B.items.findIndex(c=>c[B.defaultItemByProp.propName]===B.defaultItemByProp.value);o!==-1?(g.value=o,m.value=n[o]):(g.value=0,m.value=n[0])}else g.value=B.defaultItemByIndex,m.value=n[B.defaultItemByIndex];U.value.slideTo&&U.value.slideTo(g.value),m.value&&g.value===0&&s("input",{selectedItem:m.value,selectedItemIndex:g.value})},500)}function u(){U.value&&U.value.next()}function a(){U.value&&U.value.prev()}function x(){U.value&&U.value.updateSlideWidth()}function v(n){U.value&&U.value.slideTo(n)}function _(n){U.value.slideTo(n)}function p(n){const o=n.slidingToIndex<0?B.items.length-1:n.slidingToIndex===B.items.length?0:n.slidingToIndex;g.value=o,m.value=B.items[o],s("update:currentItemIndex",o),s("input",{selectedItem:m.value,selectedItemIndex:g.value})}return i({prev:a,next:u,updateSlideWidth:x,slideTo:v}),(n,o)=>(t.openBlock(),t.createElementBlock("div",SHe,[B.is3d?(t.openBlock(),t.createElementBlock("div",CHe,AHe)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(["gsc-carousel__2d",{"main-slide-priority":e.isMainSlidePriority}])},[t.createElementVNode("div",EHe,[t.createVNode(t.unref(xHe),{ref_key:"carousel2d",ref:U,"items-to-show":e.itemsToShow,"wrap-around":e.wrapAround,onSlideStart:p},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(c,l)=>(t.openBlock(),t.createBlock(t.unref(_He),{key:l},{default:t.withCtx(()=>[t.renderSlot(n.$slots,"default",{item:c},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:o[0]||(o[0]=c=>U.value.prev())},[t.createElementVNode("div",{class:t.normalizeClass(["gsc-carousel__2d__slide-button",{rounded:e.areSlidesArrowsRounded}])},[(t.openBlock(),t.createElementBlock("svg",MHe,[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,IHe)]))],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:o[1]||(o[1]=c=>u())},[t.createElementVNode("div",{class:t.normalizeClass(["gsc-carousel__2d__slide-button",{rounded:e.areSlidesArrowsRounded}])},[(t.openBlock(),t.createElementBlock("svg",PHe,[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,LHe)]))],2)],4)):t.createCommentVNode("",!0),t.createElementVNode("div",BHe,[e.areNavigationArrowsVisible?(t.openBlock(),t.createElementBlock("div",{key:0,class:"gsc-carousel__2d__navigation__arrow-left",onClick:o[2]||(o[2]=c=>a())},[(t.openBlock(),t.createElementBlock("svg",zHe,[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,OHe)]))])):t.createCommentVNode("",!0),e.isPaginationVisible?(t.openBlock(),t.createElementBlock("div",DHe,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(c,l)=>(t.openBlock(),t.createElementBlock("div",{key:`i-${l}`,class:"gsc-carousel__2d__navigation__pagination__item",style:t.normalizeStyle({height:`${B.navigationHeight}px`,width:`${g.value===l?B.navigationActiveWidth:B.navigationActiveWidth/2}px`,borderRadius:`${B.navigationBorderRadius}px`,backgroundColor:`${g.value===l?B.navigationActiveColor:B.navigationColor}`,transition:"all 0.1s ease-in-out"}),onClick:h=>_(l)},null,12,NHe))),128))])):t.createCommentVNode("",!0),e.areNavigationArrowsVisible?(t.openBlock(),t.createElementBlock("div",{key:2,class:"gsc-carousel__2d__navigation__arrow-right",onClick:o[3]||(o[3]=c=>U.value.next())},[(t.openBlock(),t.createElementBlock("svg",FHe,[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,RHe)]))])):t.createCommentVNode("",!0)])],2))]))}},jHe=wHe(VHe,[["__scopeId","data-v-54620d25"]]),rS=(e,i)=>{const s=e.__vccOpts||e;for(const[B,U]of i)s[B]=U;return s};let bF=null;const nS={components:{},props:{isSafari:{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:""},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)bF=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),bF.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},xF=()=>{t.useCssVars(e=>({"48b403d6":e.colorBackgroundHome+"45",21348727:e.colorBackgroundAway+"45","0049e0d8":e.colorBackgroundHome,"005004ba":e.colorBackgroundAway}))},_F=nS.setup;nS.setup=_F?(e,i)=>(xF(),_F(e,i)):xF;const UHe=["src"],GHe=["src"],HHe=["src"],ZHe={class:"text-container"};function XHe(e,i,s,B,U,m){return t.openBlock(),t.createElementBlock("div",{ref:"gamesContainer",class:t.normalizeClass(m.thumbnailhighlights)},[t.createElementVNode("div",{class:t.normalizeClass(m.playbutton),onClick:i[0]||(i[0]=(...g)=>m.onclickPlayVideos&&m.onclickPlayVideos(...g))},i[1]||(i[1]=[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)]),2),s.dateGame!=""?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(m.date)},t.toDisplayString(s.dateGame),3)):t.createCommentVNode("",!0),s.matchday!=""&&s.seasonName!=""?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(m.containerinfogame)},[s.matchday!=""?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(m.matchcontainer)},t.toDisplayString(s.matchday),3)):t.createCommentVNode("",!0),s.seasonName!=""?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(m.seasoncontainer)},t.toDisplayString(s.seasonName),3)):t.createCommentVNode("",!0)],2)):t.createCommentVNode("",!0),i[2]||(i[2]=t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/paper-texture.png",alt:"",class:"paper-texture position-image"},null,-1)),t.createElementVNode("img",{src:s.background,alt:"",class:"bkg-blackwhite position-image",style:t.normalizeStyle({filter:s.isSafari?"none":""})},null,12,UHe),t.createElementVNode("div",{class:t.normalizeClass([m.baselogo,"position-image"])},null,2),t.createElementVNode("div",{class:t.normalizeClass(m.baselogoright)},null,2),i[3]||(i[3]=t.createElementVNode("div",{class:"gradient-back position-image"},null,-1)),i[4]||(i[4]=t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/halftone-texture.png",alt:"",class:"halftone-texture position-image"},null,-1)),t.createElementVNode("img",{src:s.logoHome,alt:"",class:t.normalizeClass(m.teamlogo)},null,10,GHe),t.createElementVNode("img",{src:s.logoAway,alt:"",class:t.normalizeClass(m.logoright)},null,10,HHe),t.createElementVNode("div",ZHe,[t.createElementVNode("span",{class:t.normalizeClass(m.secondline)},t.toDisplayString(s.score),3),t.createElementVNode("div",{class:t.normalizeClass(m.titlename)},t.toDisplayString(s.titleCategory),3)])],2)}const WHe=rS(nS,[["render",XHe],["__scopeId","data-v-e4a5fe26"]]);let wF=null;const iS={components:{},props:{isSafari:{type:Boolean,default:!1},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)wF=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),wF.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},kF=()=>{t.useCssVars(e=>({"3e78ee50":e.colorBackgroundHome,"3e7f1232":e.colorBackgroundAway,"7fb93f88":e.colorBackgroundAway+"62",b18e9d20:e.colorBackgroundHome+"36"}))},SF=iS.setup;iS.setup=SF?(e,i)=>(kF(),SF(e,i)):kF;const YHe={class:"player-container"},qHe=["src"],JHe=["src"],$He=["src"],KHe={class:"container-score"},QHe=["src"],eZe=["src"],tZe=["src"];function aZe(e,i,s,B,U,m){return t.openBlock(),t.createElementBlock("div",{ref:"gamesContainer",class:t.normalizeClass(m.thumbnailhighlights)},[i[2]||(i[2]=t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/paper-texture.png",alt:"",class:"paper-texture position-image"},null,-1)),t.createElementVNode("div",{class:t.normalizeClass(m.playbutton),onClick:i[0]||(i[0]=(...g)=>m.onclickPlayVideos&&m.onclickPlayVideos(...g))},i[1]||(i[1]=[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)]),2),t.createElementVNode("div",YHe,[t.createElementVNode("div",{class:t.normalizeClass(m.containerinfogame)},[t.createElementVNode("div",{class:t.normalizeClass(m.matchcontainer)},[t.createElementVNode("div",{class:t.normalizeClass(m.matchboxContainer)},t.toDisplayString(s.matchday),3),t.createElementVNode("div",{class:t.normalizeClass(m.seasonnameContainer)},t.toDisplayString(s.seasonName),3)],2),t.createElementVNode("div",{class:t.normalizeClass(m.seasoncontainer)},t.toDisplayString(s.date),3)],2),s.type==0?(t.openBlock(),t.createElementBlock("span",{key:0,class:t.normalizeClass(m.texttitle)},t.toDisplayString(s.nameCategory),3)):(t.openBlock(),t.createElementBlock("span",{key:1,class:t.normalizeClass(m.texttitle2)},t.toDisplayString(s.nameCategory),3)),s.typeImg==0?(t.openBlock(),t.createElementBlock("img",{key:2,src:s.photoProfile,class:t.normalizeClass(m.playerimage)},null,10,qHe)):t.createCommentVNode("",!0),s.typeImg==1?(t.openBlock(),t.createElementBlock("img",{key:3,src:s.photoProfile,alt:""},null,8,JHe)):t.createCommentVNode("",!0),s.typeImg==2?(t.openBlock(),t.createElementBlock("img",{key:4,src:s.photoProfile,class:"img-number"},null,8,$He)):t.createCommentVNode("",!0),t.createElementVNode("div",KHe,[t.createElementVNode("div",{class:t.normalizeClass(m.hometeam)},[t.createElementVNode("span",{class:t.normalizeClass(m.teamname)},t.toDisplayString(s.nameHomeTeam),3),t.createElementVNode("img",{src:s.logoHome,alt:"",class:t.normalizeClass(m.teamlogo)},null,10,QHe),t.createElementVNode("span",{class:t.normalizeClass(m.teamscore)},t.toDisplayString(s.scoreHome),3)],2),t.createElementVNode("span",{class:t.normalizeClass(m.points)},":",2),t.createElementVNode("div",{class:t.normalizeClass(m.awayteam)},[t.createElementVNode("span",{class:t.normalizeClass(m.teamscore)},t.toDisplayString(s.scoreAway),3),t.createElementVNode("img",{src:s.logoAway,alt:"",class:t.normalizeClass(m.teamlogo)},null,10,eZe),t.createElementVNode("span",{class:t.normalizeClass(m.teamname)},t.toDisplayString(s.nameAwayTeam),3)],2)])]),t.createElementVNode("img",{src:s.background,alt:"",class:"bkg-blackwhite position-image",style:t.normalizeStyle({filter:(s.isSafari,"")})},null,12,tZe),i[3]||(i[3]=t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/halftone-texture.png",alt:"",class:"halftone-texture position-image"},null,-1)),i[4]||(i[4]=t.createElementVNode("div",{class:"gradient-color"},null,-1))],2)}const rZe=rS(iS,[["render",aZe],["__scopeId","data-v-3dc666ca"]]);function oS(e,i,s){const B=Number(i);if(i===null||B===0||B===1||!e||!e.startsWith("http"))return e;const U=s?`https://dev-apis.golstats.com/${B}`:`https://apis.golstats.com/${B}`,m=new URL(e),g=m.pathname.split("/").filter(y=>y!==""&&y!=="prod"&&y!=="qa").join("/");let r=`${U}/${g}`;return m.search&&(r+=m.search),m.hash&&(r+=m.hash),r}function Ph(e,i){if(!i||i<=1)return e;const s=new URL(e),B=s.pathname.split("/").filter(r=>r!=="");if(B.length===0)return e;const[U,...m]=B,g=[U,i,...m].join("/");return`${s.origin}/${g}${s.search}`}const nZe={components:{GSCCarousel:jHe,GSCThumbnailHighlightGameHistoric:WHe,GSCThumbnailHighlightGamePlayer:rZe},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},provider:{type:Number,default:1},isDevApis:{type:Boolean,default:!1}},data(){return{highlightsWidth:0,printData:[],resizeObserverGSCH:null,token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",lastHistoricGamesUrl:""}},watch:{data:{immediate:!0,handler(e){this.getData(e)}}},computed:{isSafari(){const e=navigator.userAgent||navigator.vendor||window.opera;return/^((?!chrome|android|Edg|Chromium).)*safari/i.test(e)},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,i){return e.home_team===(i||this.data.team)?1:2},obtenerNombreCompletoFecha(e){if(e){const i=new Date(e),s=["Domingo","Lunes","Martes","Miércoles","Jueves","Viernes","Sábado"][i.getUTCDay()],B=i.getUTCDate(),U=["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"][i.getUTCMonth()];return`${s} ${B} de ${U}`}else return""},onclickPlayVideos(e){var i=[];e.type==2?e.data.position_id==1?e.data.has_relevants==1?e.data.category==0?i=this.provider==1?[55,324,323,608,39,774,802,52,53,40,42,54]:[393,447,472,1075,893,469,866,985,986,474,905,907,55]:i=e.data.category:i=[55,324,323,608,39,774,802,52,53,40,42,54]:e.data.has_relevants==1?e.data.category==0?i=this.provider==1?[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]:[393,447,472,1075,992,1036,1155,1156,470,866,1035,33,873,871,38,46,985,986,55]:i=e.data.category:i=[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?i=[607,608,12,55,54,35,14,52,15,53,466,477,40,257,39]:i=e.data.category:e.data.category!=0?i=e.data.category:i=[607,608,12,55,54,35,14,52,15,53,466,477];const s=[1,2,3];let B={seasonId:e.data.season_id,mainSectionType:1,playListType:e.type,categoryIds:i,gameIdsToFilter:e.data.game_id?[e.data.game_id]:null,playerIds:e.data.position_id!=1?e.data.player_id?[e.data.player_id]:[]:[],goalkeeperIds:e.data.position_id==1?e.data.player_id?[e.data.player_id]:[]:[],teamId:e.data.team_id?e.data.team_id:e.data.team_id_b?e.data.team_id_b:0,matchResult:e.data.matchResult?[e.data.matchResult]:s,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 i=hHe.create({headers:{Authorization:`${this.token}`}});var s=[],B={};if(e.type=="player"){const U=await i.get(oS("https://uof4tt5l46.execute-api.us-west-2.amazonaws.com/prod/v3/playerInfo/"+e.season+"/"+e.player,this.provider,this.isDevApis));if(U.data.seasons[e.season])for(let m=0;m<U.data.seasons[e.season].games_played.length;m++)B={playingAs:this.getPlayingAs(U.data.seasons[e.season].games_played[m],U.data.team_id),category:0,player_id:U.data.player_id,position_id:U.data.position_id,color:U.data.info_thumbnails.colors.background_color,photo_profile:U.data.info_thumbnails.images.player_in_action[0]?Ph("https://golstatsimages.blob.core.windows.net/images-library/"+U.data.info_thumbnails.images.player_in_action[0],this.provider):U.data.info_thumbnails.player_profile,team_logo:Ph("https://golstatsimages.blob.core.windows.net/teams-150/"+U.data.seasons[e.season].games_played[m].home_team+".png",this.provider),player_name:U.data.seasons[e.season].games_played[m].home_team_acronym+" "+U.data.seasons[e.season].games_played[m].home_team_score+" : "+U.data.seasons[e.season].games_played[m].visiting_team_score+" "+U.data.seasons[e.season].games_played[m].visiting_team_acronym,team_id:U.data.team_id,has_relevants:U.data.seasons[e.season].games_played[m].has_relevants,team_id_b:U.data.seasons[e.season].games_played[m].home_team,season_id:U.data.seasons[e.season].games_played[m].season_id,name:U.data.seasons[e.season].games_played[m].player_name,seasonname:U.data.seasons[e.season].name.replace("Clausura","CL ").replace("Apertura","AP "),game_id:U.data.seasons[e.season].games_played[m].game_id,match:U.data.seasons[e.season].games_played[m].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(U.data.seasons[e.season].games_played[m].date),scorehome:U.data.seasons[e.season].games_played[m].home_team_score,scoreaway:U.data.seasons[e.season].games_played[m].visiting_team_score,hometeamacronym:U.data.seasons[e.season].games_played[m].home_team_acronym,visitingteamacronym:U.data.seasons[e.season].games_played[m].visiting_team_acronym,background:U.data.info_thumbnails.images.background_player_in_action[0]?Ph("https://golstatsimages.blob.core.windows.net/images-library/"+U.data.info_thumbnails.images.background_player_in_action[0],this.provider):U.data.info_thumbnails.player_profile,backgroundhome:U.data.seasons[e.season].games_played[m].info_thumbnails.home_colors.background_color,backgroundaway:U.data.seasons[e.season].games_played[m].info_thumbnails.away_colors.background_color,logohome:Ph("https://golstatsimages.blob.core.windows.net/teams-150/"+U.data.seasons[e.season].games_played[m].home_team+".png",this.provider),logoaway:Ph("https://golstatsimages.blob.core.windows.net/teams-150/"+U.data.seasons[e.season].games_played[m].visiting_team+".png",this.provider),total:U.data.seasons[e.season].games_played[m].matchday_abbreviation.replace("M","Jor "),background_card:"https://golstatsimages.blob.core.windows.net/golstats2-teams/"+U.data.seasons[e.season].games_played[m].home_team+"_"+U.data.seasons[e.season].games_played[m].season_id+"_r1.jpg"},s.push(B);else for(let m=0;m<U.data.national_seasons[e.season].games_played.length;m++)B={playingAs:this.getPlayingAs(U.data.national_seasons[e.season].games_played[m],U.data.team_id),category:0,player_id:U.data.player_id,position_id:U.data.position_id,color:U.data.info_thumbnails.colors.background_color,photo_profile:U.data.info_thumbnails.images.player_in_action[0]?Ph("https://golstatsimages.blob.core.windows.net/images-library/"+U.data.info_thumbnails.images.player_in_action[0],this.provider):U.data.info_thumbnails.player_profile,team_logo:Ph("https://golstatsimages.blob.core.windows.net/teams-150/"+U.data.national_seasons[e.season].games_played[m].home_team+".png",this.provider),player_name:U.data.national_seasons[e.season].games_played[m].home_team_acronym+" "+U.data.national_seasons[e.season].games_played[m].home_team_score+" : "+U.data.national_seasons[e.season].games_played[m].visiting_team_score+" "+U.data.national_seasons[e.season].games_played[m].visiting_team_acronym,team_id:U.data.team_id,has_relevants:U.data.national_seasons[e.season].games_played[m].has_relevants,team_id_b:U.data.national_seasons[e.season].games_played[m].home_team,season_id:U.data.national_seasons[e.season].games_played[m].season_id,name:U.data.national_seasons[e.season].games_played[m].player_name,seasonname:U.data.national_seasons[e.season].name.replace("Clausura","CL ").replace("Apertura","AP "),game_id:U.data.national_seasons[e.season].games_played[m].game_id,match:U.data.national_seasons[e.season].games_played[m].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(U.data.national_seasons[e.season].games_played[m].date),scorehome:U.data.national_seasons[e.season].games_played[m].home_team_score,scoreaway:U.data.national_seasons[e.season].games_played[m].visiting_team_score,hometeamacronym:U.data.national_seasons[e.season].games_played[m].home_team_acronym,visitingteamacronym:U.data.national_seasons[e.season].games_played[m].visiting_team_acronym,background:U.data.info_thumbnails.images.background_player_in_action[0]?Ph("https://golstatsimages.blob.core.windows.net/images-library/"+U.data.info_thumbnails.images.background_player_in_action[0],this.provider):U.data.info_thumbnails.player_profile,backgroundhome:U.data.national_seasons[e.season].games_played[m].info_thumbnails.home_colors.background_color,backgroundaway:U.data.national_seasons[e.season].games_played[m].info_thumbnails.away_colors.background_color,logohome:Ph("https://golstatsimages.blob.core.windows.net/teams-150/"+U.data.national_seasons[e.season].games_played[m].home_team+".png",this.provider),logoaway:Ph("https://golstatsimages.blob.core.windows.net/teams-150/"+U.data.national_seasons[e.season].games_played[m].visiting_team+".png",this.provider),total:U.data.national_seasons[e.season].games_played[m].matchday_abbreviation.replace("M","Jor "),background_card:"https://golstatsimages.blob.core.windows.net/golstats2-teams/"+U.data.national_seasons[e.season].games_played[m].home_team+"_"+U.data.national_seasons[e.season].games_played[m].season_id+"_r1.jpg"},s.push(B)}else if(e.type=="historic"){const U=oS("https://fxtcaw9tw6.execute-api.us-east-2.amazonaws.com/prod/historic/games/"+e.game,this.provider,this.isDevApis);if(this.lastHistoricGamesUrl===U)return;this.lastHistoricGamesUrl=U;const m=await i.get(U);for(let r=0;r<m.data.plays.length;r++)B={teamId:m.data.plays[r][2],player:"Jornada "+m.data.plays[r][6],player_name:m.data.plays[r][4],season_id:m.data.plays[r][31],game_id:m.data.plays[r][3],img:"https://img1.wallspic.com/previews/0/9/1/0/20190/20190-football_player-football-fun-player-sports-x750.jpg"},s.length>0?this.privilegesTeamId==0?!s.filter(y=>y.game_id===m.data.plays[r][3]).length>0&&s.push(B):!s.filter(y=>y.game_id===m.data.plays[r][3]).length>0&&m.data.plays[r][2]===this.privilegesTeamId&&s.push(B):(this.privilegesTeamId==0||m.data.plays[r][2]===this.privilegesTeamId)&&s.push(B);const g=m.data.thumbnails;for(let r=0;r<s.length;r++){const y=Math.floor(Math.random()*g[s[r].game_id].info_thumbnails.images.background_default_games.length);s[r].background="https://golstatsimages.blob.core.windows.net/images-library/"+g[s[r].game_id].info_thumbnails.images.background_default_games[y],s[r].backgroundhome=g[s[r].game_id].info_thumbnails.home_colors.background_color,s[r].backgroundaway=g[s[r].game_id].info_thumbnails.away_colors.background_color,s[r].logoaway=Ph("https://golstatsimages.blob.core.windows.net/teams-150/"+g[s[r].game_id].info_thumbnails.away_colors.team_id+".png",this.provider),s[r].logohome=Ph("https://golstatsimages.blob.core.windows.net/teams-150/"+g[s[r].game_id].info_thumbnails.home_colors.team_id+".png",this.provider),s[r].match=g[s[r].game_id].matchday_name.replace("Matchday","Jor"),s[r].playingAs=g[s[r].game_id].info_thumbnails.home_colors.team_id===s[r].teamId?1:2,s[r].seasonname=g[s[r].game_id].season_name,s[r].score=g[s[r].game_id].score[0]+" - "+g[s[r].game_id].score[1],s[r].category=0}}else{const U=await i.get(oS("https://ws8d8ye2ii.execute-api.us-west-2.amazonaws.com/prod/v4/seasonsByTeam/"+e.team,this.provider,this.isDevApis));for(let m=0;m<U.data.seasons[e.season].games.length;m++){const g=Math.floor(Math.random()*U.data.seasons[e.season].games[m].info_thumbnails.images.background_default_games.length);B={playingAs:this.getPlayingAs(U.data.seasons[e.season].games[m],U.data.team_id),category:0,game_id:U.data.seasons[e.season].games[m].game_id,photo_profile:Ph("https://golstatsimages.blob.core.windows.net/teams-150/"+U.data.seasons[e.season].games[m].visiting_team+".png",this.provider),team_logo:Ph("https://golstatsimages.blob.core.windows.net/teams-150/"+U.data.seasons[e.season].games[m].home_team+".png",this.provider),player_name:U.data.seasons[e.season].games[m].home_team_acronym+" "+U.data.seasons[e.season].games[m].home_team_score+" : "+U.data.seasons[e.season].games[m].visiting_team_score+" "+U.data.seasons[e.season].games[m].visiting_team_acronym,team_id_b:U.data.seasons[e.season].games[m].home_team,team_id:U.data.team_id,season_id:U.data.seasons[e.season].games[m].season_id,name:"",seasonname:U.data.seasons[e.season].name,match:U.data.seasons[e.season].games[m].matchday_name.replace("Matchday","Jor"),score:U.data.seasons[e.season].games[m].home_team_score+" : "+U.data.seasons[e.season].games[m].visiting_team_score,background:"https://golstatsimages.blob.core.windows.net/images-library/"+U.data.seasons[e.season].games[m].info_thumbnails.images.background_default_games[g],backgroundhome:U.data.seasons[e.season].games[m].info_thumbnails.home_colors.background_color,backgroundaway:U.data.seasons[e.season].games[m].info_thumbnails.away_colors.background_color,logohome:Ph("https://golstatsimages.blob.core.windows.net/teams-150/"+U.data.seasons[e.season].games[m].home_team+".png",this.provider),logoaway:Ph("https://golstatsimages.blob.core.windows.net/teams-150/"+U.data.seasons[e.season].games[m].visiting_team+".png",this.provider),total:U.data.seasons[e.season].games[m].matchday_abbreviation.replace("M","Jor "),background_card:"https://golstatsimages.blob.core.windows.net/golstats2-teams/"+U.data.seasons[e.season].games[m].home_team+"_"+U.data.seasons[e.season].games[m].season_id+"_r1.jpg"},s.push(B)}}this.printData=s,this.$emit("loading",!1)},setUpResizeObserver(){this.resizeObserverGSCH=new ResizeObserver(e=>{for(const i of e)this.highlightsWidth=i.contentRect.width}),this.resizeObserverGSCH.observe(this.$refs.highlights)}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},1e3)}},iZe={key:0,ref:"highlights",class:"carousel-high-lights",id:"carousel-high-lights"};function oZe(e,i,s,B,U,m){const g=t.resolveComponent("GSCThumbnailHighlightGameHistoric"),r=t.resolveComponent("GSCThumbnailHighlightGamePlayer"),y=t.resolveComponent("GSCCarousel");return m.printDataFiltered.length>0&&s.canPlayVideos?(t.openBlock(),t.createElementBlock("div",iZe,[t.createVNode(y,t.mergeProps(m.carouselProps,{items:m.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:u})=>[s.data.type=="team"||s.data.type=="historic"?(t.openBlock(),t.createBlock(g,{key:0,"is-safari":m.isSafari,items:u,"color-background-home":u.backgroundhome,"color-background-away":u.backgroundaway,"logo-home":u.logohome,"logo-away":u.logoaway,background:u.background,matchday:u.match,onOnclickPlayVideos:a=>m.onclickPlayVideos({data:u,type:1}),"season-name":u.seasonname,score:u.score},null,8,["is-safari","items","color-background-home","color-background-away","logo-home","logo-away","background","matchday","onOnclickPlayVideos","season-name","score"])):(t.openBlock(),t.createBlock(r,{key:1,"is-safari":m.isSafari,type:"player","name-player":u.name,"type-style":"game","color-background-home":u.backgroundhome,"color-background-away":u.backgroundaway,"type-img":"0",date:u.date,"season-name":u.seasonname,matchday:u.match,background:u.background,"name-home-team":u.hometeamacronym,"name-away-team":u.visitingteamacronym,"name-category":s.title,onOnclickPlayVideos:a=>m.onclickPlayVideos({data:u,type:2}),"logo-away":u.logoaway,"logo-home":u.logohome,"score-home":u.scorehome,"photo-profile":u.photo_profile,"score-away":u.scoreaway},null,8,["is-safari","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 sZe=rS(nZe,[["render",oZe]]),fYt="",mYt="",gYt="",lZe={components:{GSCSlider:R2},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.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"}},computed:{},methods:{getImageUrl:Mf,onclickPlayVideos(e){const i=[1,2,3];let s={seasonId:this.game.is_live==1?this.dataProminentAll.season_id:this.game.regularSeasonId,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:i,playData:{},advancedFilter:{playListTitle:""}};this.$emit("openmedia",s)},hasDecimal(e){return typeof e!="number"?!1:e.toString().includes(".")},formatNumber(e){if(typeof e=="number")if(this.hasDecimal(e)){const i=Math.round(e*10)/10;return Number.isInteger(i)?i.toString()+"%":i.toFixed(1)+"%"}else return e+"%";else return"0"},formatNumber2(e){if(typeof e=="number")if(this.hasDecimal(e)){const i=Math.round(e*10)/10;return Number.isInteger(i)?i.toString()+"%":i.toFixed(1)+"%"}else return e;else return"0"},textoConNegritas(e){if(!e)return"";const i=e.split(/(\*.*?\*)/g).filter(U=>U.trim()!=="");let s=Math.ceil(i.length/2),B="";return i.forEach((U,m)=>{m===s&&(B+="<br/>"),U.startsWith("*")&&U.endsWith("*")?B+=`<span class="text-bold-prominent">${U.slice(1,-1)}</span>`:U.trim()!==""&&(B+=`<span class="text-prominent">${U}</span>`)}),B},async getDataProminentPrematch(){try{const e=this.$store.getters.getProviderId,i=this.$store.getters.getIsDevApis;let s="";if(this.isWidget&&this.teamWidget!=0?s=dd("https://1qvtl1japi.execute-api.us-east-2.amazonaws.com/prod/highlights/seasons/"+this.game.seasonId+"/games/"+this.game.gameId+"/prematch",e,i)+"?t="+this.teamWidget:s=dd("https://1qvtl1japi.execute-api.us-east-2.amazonaws.com/prod/highlights/seasons/"+this.game.seasonId+"/games/"+this.game.gameId+"/prematch",e,i),this.lastDataProminentUrl!==s){this.$emit("loading",!0);const U=await pd.create({headers:{Authorization:`${this.tokenPremium}`}}).get(s);this.dataProminent=U.data.data,this.dataProminentAll=U.data,this.$emit("loading",!1)}}catch(e){return Promise.reject(e)}},async getDataProminent(){try{const e=this.$store.getters.getProviderId,i=this.$store.getters.getIsDevApis;let s="";if(this.isWidget&&this.teamWidget!=0?s=dd("https://1qvtl1japi.execute-api.us-east-2.amazonaws.com/prod/highlights/seasons/"+this.game.seasonId+"/games/"+this.game.gameId,e,i)+"?t="+this.teamWidget:s=dd("https://1qvtl1japi.execute-api.us-east-2.amazonaws.com/prod/highlights/seasons/"+this.game.seasonId+"/games/"+this.game.gameId,e,i),this.lastDataProminentUrl!==s){this.$emit("loading",!0);const U=await pd.create({headers:{Authorization:`${this.tokenPremium}`}}).get(s);this.dataProminent=U.data.data,this.dataProminentAll=U.data,setTimeout(()=>{this.$emit("loading",!1)},500)}}catch(e){return Promise.reject(e)}}}},cZe={class:"data-prominent-game"},dZe={class:"title-data"},uZe={class:"item-data-text"},hZe=["innerHTML"],pZe={class:"contain-stats-control"},fZe={key:0,class:"title-total"},mZe={key:1,class:"item-total"},gZe=["onClick"],yZe={"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"};function vZe(e,i,s,B,U,m){const g=t.resolveComponent("GSCSlider");return t.openBlock(),t.createElementBlock("div",cZe,[t.createElementVNode("div",dZe,[s.game.game_status!=4||s.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(U.dataProminent,(r,y)=>(t.openBlock(),t.createElementBlock("div",{key:y,class:"item-prominent-data"},[t.createElementVNode("div",{class:"item-percent-shield",style:t.normalizeStyle("background:"+r.custom_colors.background_color)},[t.createElementVNode("div",{class:"item-team",style:t.normalizeStyle(r.player_id?e.$store.getters.getProviderId==1?"background-image:url(https://golstatsimages.blob.core.windows.net/players-profile/"+r.player_id+".png);":"background-image:url(https://golstatsimages.blob.core.windows.net/players-profile/"+e.$store.getters.getProviderId+"/"+r.player_id+".png);border: solid 1.4px "+r.custom_colors.background_color:"background-image:url("+m.getImageUrl("https://golstatsimages.blob.core.windows.net/teams-80/"+r.team_id+".png",e.$store.getters.getProviderId)+");border: solid 1.4px "+r.custom_colors.background_color)},null,4),r.show_value==1?(t.openBlock(),t.createElementBlock("div",{key:0,class:"item-percent",style:t.normalizeStyle("color:"+r.custom_colors.font_color)},[r.is_percentage==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[r.title=="Distancia recorrida"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(m.formatNumber(r.percent)),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(m.formatNumber(r.percent)),1)],64))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(r.total),1)],64))],4)):t.createCommentVNode("",!0)],4),t.createElementVNode("div",uZe,[t.createElementVNode("div",{class:"container-text",innerHTML:m.textoConNegritas(r.description)},null,8,hZe),t.createElementVNode("div",pZe,[r.show_value==1?(t.openBlock(),t.createElementBlock("div",fZe,"TOTAL: ")):t.createCommentVNode("",!0),r.show_value==1?(t.openBlock(),t.createElementBlock("div",mZe,[r.is_percentage==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(m.formatNumber(r.percent)),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[r.title=="Distancia recorrida"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(r.total)+" km",1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(r.total),1)],64))],64))])):t.createCommentVNode("",!0),s.canPlayVideos&&r.show_video==1&&r.show_value==1?(t.openBlock(),t.createElementBlock("div",{key:2,class:"btn-play",style:t.normalizeStyle(r.title=="Productividad"?"margin-left: 0px !important;":""),onClick:u=>m.onclickPlayVideos({data:r})},[(t.openBlock(),t.createElementBlock("svg",yZe,i[0]||(i[0]=[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)])))],12,gZe)):t.createCommentVNode("",!0)])])]))),128))]),_:1})])}const bZe=Ki(lZe,[["render",vZe],["__scopeId","data-v-27c955f7"]]),yYt="",xZe={components:{GSCCheckbox:H1},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.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",objectZeroValues:{numberValue:0,numberBarPercent:0}}},computed:{...gp("nextGeneral",["gameForAnalysis","seasonId"]),...Ld("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 i=await pd.create({headers:{Authorization:`${this.tokenPremium}`}}).get(dd(this.url+this.game.gameId,this.$store.getters.getProviderId,this.$store.getters.getIsDevApis));this.dataPosession=i.data}catch(e){return Promise.reject(e)}},async getDataPosessionPrematch(e){try{const s=await pd.create({headers:{Authorization:`${this.tokenPremium}`}}).get(dd(this.urlPrematch+e+"/posessions",this.$store.getters.getProviderId,this.$store.getters.getIsDevApis));for(const B in s.data.teams)s.data.teams.hasOwnProperty(B)&&(this.arrTeams[B]=s.data.teams[B])}catch(i){return Promise.reject(i)}},onCheckInactive(e){e?this.areInactiveVisible=!0:this.areInactiveVisible=!1},posesionValue(e){return e==null||e===""?"-":e},deleteDecimalZero(e){const i=typeof e=="string"?parseFloat(e):e;return typeof i=="number"&&!isNaN(i)?i%1===0?i:i%1===0?Math.floor(i):i: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,i,s){if(!i.game_id)return this.objectZeroValues;const B=e.homeTeam.accomplished.avgPostGame+e.visitingTeam.accomplished.avgPostGame,U=e[s].accomplished.avgPostGame/B;return e[s].accomplished.avgPostGame?{numberValue:U<1?U*100:U,numberBarPercent:e[s].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})},beforeUnmount(){clearInterval(this.intervalIdPossesion)}},_Ze={key:0,class:"field-posesion-prominent"},wZe={key:0,class:"title"},kZe={class:"info-data-item"},SZe={class:"item-indicador"},CZe={class:"item-indicador-value"},TZe={key:0,class:"inactiveInfo"},AZe={class:"info-data-item"},EZe={class:"item-indicador"},MZe={class:"item-indicador-value"},IZe={class:"info-data-item"},PZe={class:"item-indicador"},LZe={class:"item-indicador-value"},BZe={class:"info-data-item"},zZe={class:"item-indicador"},OZe={class:"item-indicador-value"},DZe={key:0,class:"inactiveInfo"},NZe={class:"info-data-item"},FZe={class:"item-indicador"},RZe={class:"item-indicador-value"},VZe={class:"info-data-item"},jZe={class:"item-indicador"},UZe={class:"item-indicador-value"};function GZe(e,i,s,B,U,m){var r,y,u,a,x,v,_,p,n,o,c,l,h,b,w,C;const g=t.resolveComponent("GSCCheckbox");return(s.game.game_status==1||s.game.game_status==0||s.game.is_live==1?e.arrayFilledDataSortedByPriority.length>0:U.arrTeams.length>0)?(t.openBlock(),t.createElementBlock("div",_Ze,[s.widthSection>760?(t.openBlock(),t.createElementBlock("div",wZe,"Porcentajes")):t.createCommentVNode("",!0),s.game.game_status==1||s.game.game_status==0||s.game.is_live==1?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(s.widthSection>760?"field-container":s.widthSection>520?"field-container-movil":s.widthSection>440?"field-container-movil-2":s.widthSection>360?"field-container-movil-3":"field-container-movil-4")},[U.dataPosession.has_posession==1?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(s.widthSection>1020?"time-show":s.widthSection>920?"time-show-table-xl":s.widthSection>880?"time-show-table-xl-2":s.widthSection>820?"time-show-table-xl-3":s.widthSection>760?"time-show-table-xl-4":"time-show-movil")},[t.createVNode(g,{label:"Mostrar tiempo inactivo",fontFamily:"Poppins-Regular","onUpdate:modelValue":m.onCheckInactive,"label-color":"#8c9399"},null,8,["onUpdate:modelValue"])],2)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(s.widthSection>1020?"field-data-container":s.widthSection>920?"field-data-container-xl":s.widthSection>880?"field-data-container-xl-2":s.widthSection>820?"field-data-container-xl-3":s.widthSection>760?"field-data-container-xl-4":"field-data-container-movil")},[t.createElementVNode("div",{class:t.normalizeClass(U.areInactiveVisible?"container-data-img-home":"container-data-img-home50")},[t.createElementVNode("div",{class:t.normalizeClass(U.areInactiveVisible?"homeInfo":"homeInfo50"),style:t.normalizeStyle("background-image:url("+s.game.homeTeam.logo.replace("80","150")+")")},null,6),t.createElementVNode("div",kZe,[t.createElementVNode("div",{class:t.normalizeClass(s.widthSection>580?"item-ref-data":"item-ref-data-movil")},[t.createElementVNode("div",SZe,[t.createElementVNode("div",CZe,[U.areInactiveVisible?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(U.dataPosession.active_time.home),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(U.dataPosession.home),1)],64))]),i[0]||(i[0]=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))]),t.createElementVNode("div",{class:t.normalizeClass(s.widthSection>580?"title-indicador":"title-indicador-movil")}," Pos. "+t.toDisplayString(s.game.homeTeam.acronym),3)],2)])],2),U.areInactiveVisible&&U.dataPosession.has_posession==1?(t.openBlock(),t.createElementBlock("div",TZe,[t.createElementVNode("div",AZe,[t.createElementVNode("div",{class:t.normalizeClass(s.widthSection>580?"item-ref-data":"item-ref-data-movil")},[t.createElementVNode("div",EZe,[t.createElementVNode("div",MZe,t.toDisplayString(U.dataPosession.active_time.inactive_time),1),i[1]||(i[1]=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))]),t.createElementVNode("div",{class:t.normalizeClass(s.widthSection>580?"title-indicador":"title-indicador-movil")},[s.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(U.areInactiveVisible?"container-data-img-away":"container-data-img-away50")},[t.createElementVNode("div",{class:t.normalizeClass(U.areInactiveVisible?"awayInfo":"awayInfo50"),style:t.normalizeStyle("background-image:url("+s.game.awayTeam.logo.replace("80","150")+")")},null,6),t.createElementVNode("div",IZe,[t.createElementVNode("div",{class:t.normalizeClass(s.widthSection>580?"item-ref-data":"item-ref-data-movil")},[t.createElementVNode("div",PZe,[t.createElementVNode("div",LZe,[U.areInactiveVisible?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(U.dataPosession.active_time.away),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(U.dataPosession.away),1)],64))]),i[2]||(i[2]=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))]),t.createElementVNode("div",{class:t.normalizeClass(s.widthSection>580?"title-indicador":"title-indicador-movil")}," Pos. "+t.toDisplayString(s.game.awayTeam.acronym),3)],2)])],2)],2)],2)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[U.arrTeams.length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(s.widthSection>760?"field-container":s.widthSection>520?"field-container-movil":s.widthSection>440?"field-container-movil-2":s.widthSection>360?"field-container-movil-3":"field-container-movil-4")},[((r=U.arrTeams[s.teamSelected.teamId])==null?void 0:r.has_posession)==1?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(s.widthSection>1020?"time-show":s.widthSection>920?"time-show-table-xl":s.widthSection>880?"time-show-table-xl-2":s.widthSection>820?"time-show-table-xl-3":s.widthSection>760?"time-show-table-xl-4":"time-show-movil")},[t.createVNode(g,{label:"Mostrar tiempo inactivo",fontFamily:"Poppins-Regular","onUpdate:modelValue":m.onCheckInactive,"label-color":"#8c9399"},null,8,["onUpdate:modelValue"])],2)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(s.widthSection>1020?"field-data-container":s.widthSection>920?"field-data-container-xl":s.widthSection>880?"field-data-container-xl-2":s.widthSection>820?"field-data-container-xl-3":s.widthSection>760?"field-data-container-xl-4":"field-data-container-movil")},[t.createElementVNode("div",{class:t.normalizeClass(U.areInactiveVisible?"container-data-img-home":"container-data-img-home50")},[s.game.homeTeam.team_id==s.teamSelected.teamId?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(U.areInactiveVisible?"homeInfo":"homeInfo50"),style:t.normalizeStyle("background-image:url("+s.game.homeTeam.logo.replace("80","150")+")")},null,6)):t.createCommentVNode("",!0),t.createElementVNode("div",BZe,[t.createElementVNode("div",{class:t.normalizeClass(s.widthSection>580?"item-ref-data":"item-ref-data-movil")},[t.createElementVNode("div",zZe,[t.createElementVNode("div",OZe,[U.areInactiveVisible?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[s.game.awayTeam.team_id==s.teamSelected.teamId?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(m.posesionValue((u=(y=U.arrTeams[s.teamSelected.teamId])==null?void 0:y.active_time)==null?void 0:u.away)),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(m.posesionValue((x=(a=U.arrTeams[s.teamSelected.teamId])==null?void 0:a.active_time)==null?void 0:x.home)),1)],64))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[s.game.awayTeam.team_id==s.teamSelected.teamId?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(m.posesionValue((v=U.arrTeams[s.teamSelected.teamId])==null?void 0:v.away)),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(m.posesionValue((_=U.arrTeams[s.teamSelected.teamId])==null?void 0:_.home)),1)],64))],64))]),i[3]||(i[3]=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))]),s.game.homeTeam.team_id==s.teamSelected.teamId?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(s.widthSection>580?"title-indicador":"title-indicador-movil")}," Pos. "+t.toDisplayString(s.game.homeTeam.acronym),3)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(s.widthSection>580?"title-indicador":"title-indicador-movil")}," Pos. Rival ",2))],2)])],2),U.areInactiveVisible&&((p=U.arrTeams[s.teamSelected.teamId])==null?void 0:p.has_posession)==1?(t.openBlock(),t.createElementBlock("div",DZe,[t.createElementVNode("div",NZe,[t.createElementVNode("div",{class:t.normalizeClass(s.widthSection>580?"item-ref-data":"item-ref-data-movil")},[t.createElementVNode("div",FZe,[t.createElementVNode("div",RZe,t.toDisplayString(m.posesionValue((o=(n=U.arrTeams[s.teamSelected.teamId])==null?void 0:n.active_time)==null?void 0:o.inactive_time)),1),i[4]||(i[4]=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))]),t.createElementVNode("div",{class:t.normalizeClass(s.widthSection>580?"title-indicador":"title-indicador-movil")},[s.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(U.areInactiveVisible?"container-data-img-away":"container-data-img-away50")},[s.game.awayTeam.team_id==s.teamSelected.teamId?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(U.areInactiveVisible?"awayInfo":"awayInfo50"),style:t.normalizeStyle("background-image:url("+s.game.awayTeam.logo.replace("80","150")+")")},null,6)):t.createCommentVNode("",!0),t.createElementVNode("div",VZe,[t.createElementVNode("div",{class:t.normalizeClass(s.widthSection>580?"item-ref-data":"item-ref-data-movil")},[t.createElementVNode("div",jZe,[t.createElementVNode("div",UZe,[U.areInactiveVisible?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[s.game.homeTeam.team_id==s.teamSelected.teamId?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(m.posesionValue((l=(c=U.arrTeams[s.teamSelected.teamId])==null?void 0:c.active_time)==null?void 0:l.away)),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(m.posesionValue((b=(h=U.arrTeams[s.teamSelected.teamId])==null?void 0:h.active_time)==null?void 0:b.home)),1)],64))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[s.game.homeTeam.team_id==s.teamSelected.teamId?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(m.posesionValue((w=U.arrTeams[s.teamSelected.teamId])==null?void 0:w.away)),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(m.posesionValue((C=U.arrTeams[s.teamSelected.teamId])==null?void 0:C.home)),1)],64))],64))]),i[5]||(i[5]=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))]),s.game.awayTeam.team_id==s.teamSelected.teamId?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(s.widthSection>580?"title-indicador":"title-indicador-movil")}," Pos. "+t.toDisplayString(s.game.awayTeam.acronym),3)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(s.widthSection>580?"title-indicador":"title-indicador-movil")}," Pos. Rival ",2))],2)])],2)],2)],2)):t.createCommentVNode("",!0)],64))])):t.createCommentVNode("",!0)}const HZe=Ki(xZe,[["render",GZe],["__scopeId","data-v-5314f1ba"]]),vYt="",sS={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(i){throw new Error(i)}}}},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)}}},CF=()=>{t.useCssVars(e=>({ec641b3a:e.backgroundColor,"66cc4678":e.widthCircle,"1c5ce009":e.heightCircle}))},TF=sS.setup;sS.setup=TF?(e,i)=>(CF(),TF(e,i)):CF;const ZZe={key:0,class:"text-left"},XZe=["width","src"],WZe=["checked"],YZe=["width","src"],qZe={key:3,class:"text-right"};function JZe(e,i,s,B,U,m){return t.openBlock(),t.createElementBlock("div",{class:"gsc-switch-radio",style:t.normalizeStyle(m.customText)},[s.textOptionLeft!=""&&!s.hiddenLabels?(t.openBlock(),t.createElementBlock("span",ZZe,t.toDisplayString(s.textOptionLeft),1)):t.createCommentVNode("",!0),s.iconA!=""?(t.openBlock(),t.createElementBlock("img",{key:1,width:s.widthIcons,src:s.iconA},null,8,XZe)):t.createCommentVNode("",!0),t.createElementVNode("input",{type:"checkbox",id:"toggle-btn",onChange:i[0]||(i[0]=(...g)=>m.handleSwitchChange&&m.handleSwitchChange(...g)),checked:U.OptionDefault},null,40,WZe),t.createElementVNode("label",{for:"toggle-btn",style:t.normalizeStyle([m.customStyle,{"--circle-color":s.circleColorSwitch}])},null,4),s.iconB!=""?(t.openBlock(),t.createElementBlock("img",{key:2,width:s.widthIcons,src:s.iconB},null,8,YZe)):t.createCommentVNode("",!0),s.textOptionRight!=""&&!s.hiddenLabels?(t.openBlock(),t.createElementBlock("span",qZe,t.toDisplayString(s.textOptionRight),1)):t.createCommentVNode("",!0)],4)}const AF=Ki(sS,[["render",JZe],["__scopeId","data-v-62d6b055"]]),bYt="";let EF=null;const lS={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:{isSafari(){return jI()},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<=360?"play-button360":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<=320?"thumbnail-highlights300":e<=330?"thumbnail-highlights310":e<=340?"thumbnail-highlights320":e<=360?"thumbnail-highlights330":e<=395?"thumbnail-highlights350":e<=430?"thumbnail-highlights400":e<=470?"thumbnail-highlights470":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)EF=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),this.$refs.gamesContainer&&EF.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},MF=()=>{t.useCssVars(e=>({"62b2f5a6":e.colorBackgroundHome+"45","3b3378f7":e.colorBackgroundAway+"45","9fbf8878":e.colorBackgroundHome,"9fc5ac5a":e.colorBackgroundAway}))},IF=lS.setup;lS.setup=IF?(e,i)=>(MF(),IF(e,i)):MF;const $Ze=["src"],KZe=["src"],QZe=["src"],eXe={class:"text-container"};function tXe(e,i,s,B,U,m){return t.openBlock(),t.createElementBlock("div",{ref:"gamesContainer",class:t.normalizeClass(m.thumbnailhighlights)},[s.canPlayVideos?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(m.playbutton),onClick:i[0]||(i[0]=(...g)=>m.onclickPlayVideos&&m.onclickPlayVideos(...g))},i[1]||(i[1]=[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)]),2)):t.createCommentVNode("",!0),s.dateGame!=""?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(m.date)},t.toDisplayString(s.dateGame),3)):t.createCommentVNode("",!0),s.matchday!=""&&s.seasonName!=""?(t.openBlock(),t.createElementBlock("div",{key:2,class:t.normalizeClass(m.containerinfogame)},[s.matchday!=""?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(m.matchcontainer)},t.toDisplayString(s.matchday),3)):t.createCommentVNode("",!0),s.seasonName!=""?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(m.seasoncontainer)},t.toDisplayString(s.seasonName),3)):t.createCommentVNode("",!0)],2)):t.createCommentVNode("",!0),i[2]||(i[2]=t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/paper-texture.png",alt:"",class:"paper-texture position-image"},null,-1)),t.createElementVNode("img",{src:s.background,alt:"",class:"bkg-blackwhite position-image",style:t.normalizeStyle({filter:m.isSafari?"none":""})},null,12,$Ze),t.createElementVNode("div",{class:t.normalizeClass([m.baselogo,"position-image"])},null,2),t.createElementVNode("div",{class:t.normalizeClass(m.baselogoright)},null,2),i[3]||(i[3]=t.createElementVNode("div",{class:"gradient-back position-image"},null,-1)),i[4]||(i[4]=t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/halftone-texture.png",alt:"",class:"halftone-texture position-image"},null,-1)),t.createElementVNode("img",{src:s.logoHome,alt:"",class:t.normalizeClass(m.teamlogo)},null,10,KZe),t.createElementVNode("img",{src:s.logoAway,alt:"",class:t.normalizeClass(m.logoright)},null,10,QZe),t.createElementVNode("div",eXe,[t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(m.titlename)},t.toDisplayString(s.titleCategory),3)])],2)}const aXe=Ki(lS,[["render",tXe],["__scopeId","data-v-ae14b353"]]),xYt="";let PF=null;const rXe={components:{GSCThumbnailHighlightGameHistoric:aXe},props:{game:{type:Object,default:()=>{}},titleCard:{type:String,default:"RESUMEN"},canPlayVideos:{type:Boolean,default:!1}},watch:{},data(){return{lastDataGameUrl:"",dataProminent:[],gameInfo:{},gamesContainerWidth:0,showHighlight:!1,showHighlightGoals:!1,item:{backgroundhome:"",backgroundaway:"",logohome:"",logoaway:"",background:"",match:"",seasonname:"",score:""},tournamentId:0,token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"}},computed:{},methods:{onclickPlayVideos(e){var i=[];e.type==2?e.data.position_id==1?e.data.category==0?i=this.$store.getters.getProviderId==1?[55,324,323,608,39,774,802,52,53,40,54]:[393,447,472,1075,893,470,866,985,986,474,905,907,389]:i=e.data.category:e.data.category==0?i=this.$store.getters.getProviderId==1?[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]:[393,447,472,1075,992,1036,1155,1156,470,866,1035,33,873,871,38,46,985,986,389]:i=e.data.category:e.type==3?e.data.category==0?i=this.$store.getters.getProviderId==1?[607,608,12,55,54,35,14,52,15,53,466,477,40,257,39]:[1075,393,1415,1035,985,986,474,893,389]:i=e.data.category:e.data.category!=0?i=e.data.category:this.titleCard=="RESUMEN"?i=this.$store.getters.getProviderId==1?[607,608,12,55,54,35,14,52,15,53,466,477]:[393,1415,985,986,1035,1075,473,389]:i=this.$store.getters.getProviderId==1?[12,55,54,35]:[393,1415];const s=[1,2,3];let B={seasonId:e.data.season_id,mainSectionType:1,playListType:e.type,categoryIds:i,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]:s,playData:{},advancedFilter:{playListTitle:""}};e.data.category!==0&&(B.advancedFilter.mainCategoryId=e.data.category),this.$emit("openmedia",B)},async fillData(){const e=this.$store.getters.getProviderId,i=this.$store.getters.getIsDevApis,s=dd("https://fxtcaw9tw6.execute-api.us-east-2.amazonaws.com/prod/historic/games/"+this.game.gameId,e,i);if(this.lastDataGameUrl!==s){this.$emit("loading",!0),this.lastDataGameUrl=s;const B=pd.create({headers:{Authorization:`${this.token}`}}),U=await B.get(dd("https://8tvo5bp9ai.execute-api.us-west-2.amazonaws.com/prod/gamesBySeason/"+this.game.seasonId,e,i)),m=await B.get(dd("https://d2oco6mqmc.execute-api.us-west-2.amazonaws.com/prod/teamsBySeason/"+this.game.seasonId,e,i));this.tournamentId=m.data.tournament_id;const g=U.data.games.findIndex(u=>u.game_id===this.game.gameId);this.gameInfo=U.data.games[g];const r=await B.get(s);this.showHighlight=r.data==""?!1:r.data.plays.length>0;const y=this.$store.getters.getProviderId==1?[12,55,54,35]:[393,1415];this.showHighlightGoals=r.data==""?!1:r.data.plays.filter(u=>y.includes(u[0])).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]?r.data.thumbnails[r.data.game_id].score[0]+" - "+r.data.thumbnails[r.data.game_id].score[1]:"0 - 0",this.item.backgroundhome=r.data.thumbnails[r.data.game_id]?r.data.thumbnails[r.data.game_id].info_thumbnails.home_colors.background_color:"",this.item.backgroundaway=r.data.thumbnails[r.data.game_id]?r.data.thumbnails[r.data.game_id].info_thumbnails.away_colors.background_color:"",this.item.logohome=r.data.thumbnails[r.data.game_id]?Mf("https://golstatsimages.blob.core.windows.net/teams-150/"+r.data.thumbnails[r.data.game_id].home_team+".png",e):"",this.item.logoaway=r.data.thumbnails[r.data.game_id]?Mf("https://golstatsimages.blob.core.windows.net/teams-150/"+r.data.thumbnails[r.data.game_id].visiting_team+".png",e):"",this.item.background=r.data.thumbnails[r.data.game_id]?this.titleCard=="RESUMEN"?"https://golstatsimages.blob.core.windows.net/images-library/"+r.data.thumbnails[r.data.game_id].info_thumbnails.images.background_default_games[0]:"https://golstatsimages.blob.core.windows.net/images-library/Goles_CAT.jpg":"",this.$emit("showleyendlive",!!(this.showHighlight||this.showHighlightGoals)),this.$emit("showsummarylive",this.showHighlight),this.$emit("showgoalslive",this.showHighlightGoals),this.$emit("loading",!1)}},setUpResizeObserver(){if(window.ResizeObserver)PF=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),this.$refs.gamesContainer&&PF.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},async mounted(){setTimeout(()=>{this.setUpResizeObserver()},1e3),await this.fillData()}},nXe={class:"highlights-prominent-game",ref:"gamesContainer"},iXe={class:"video-partido-container__highlight"};function oXe(e,i,s,B,U,m){const g=t.resolveComponent("GSCThumbnailHighlightGameHistoric");return t.openBlock(),t.createElementBlock("div",nXe,[t.withDirectives(t.createElementVNode("div",iXe,[t.createCommentVNode("",!0),t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(U.gamesContainerWidth>865?"video-partido-container__image":"video-partido-container__image2")},[U.item.background!=""?(t.openBlock(),t.createBlock(g,{key:0,"color-background-home":U.item.backgroundhome,"color-background-away":U.item.backgroundaway,"logo-home":U.item.logohome,"logo-away":U.item.logoaway,"is-live":!0,"title-category":s.titleCard,"can-play-videos":s.canPlayVideos,background:U.item.background,matchday:U.item.match,"season-name":U.item.seasonname,onOnclickPlayVideos:i[0]||(i[0]=r=>m.onclickPlayVideos({data:U.item,type:1})),score:U.item.score},null,8,["color-background-home","color-background-away","logo-home","logo-away","title-category","can-play-videos","background","matchday","season-name","score"])):t.createCommentVNode("",!0)],2)],512),[[t.vShow,s.titleCard=="RESUMEN"&&s.canPlayVideos&&U.showHighlight||s.titleCard=="GOLES"&&s.canPlayVideos&&U.showHighlightGoals]])],512)}const sXe=Ki(rXe,[["render",oXe],["__scopeId","data-v-fcef1724"]]),_Yt="";let LF=null;const cS={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:{isSafari(){return jI()},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<=360?"play-button360":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<=320?"thumbnail-highlights300":e<=330?"thumbnail-highlights310":e<=340?"thumbnail-highlights320":e<=360?"thumbnail-highlights330":e<=395?"thumbnail-highlights350":e<=430?"thumbnail-highlights400":e<=470?"thumbnail-highlights470":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)LF=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),this.$refs.gamesContainer&&LF.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},BF=()=>{t.useCssVars(e=>({a29dd7ea:e.colorBackgroundHome+"45","691e071c":e.colorBackgroundAway+"45","39addf09":e.colorBackgroundHome,"39aacd18":e.colorBackgroundAway}))},zF=cS.setup;cS.setup=zF?(e,i)=>(BF(),zF(e,i)):BF;const lXe=["src"],cXe=["src"],dXe=["src"],uXe={class:"text-container"};function hXe(e,i,s,B,U,m){return t.openBlock(),t.createElementBlock("div",{ref:"gamesContainer",class:t.normalizeClass(m.thumbnailhighlights)},[s.isLive&&s.game.game_status!=0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(U.gamesContainerWidth>340?U.gamesContainerWidth>480?"icon-live":"icon-live-tablet":"icon-live-mobile")},i[1]||(i[1]=[t.createElementVNode("span",{class:"circle-live"},null,-1),t.createElementVNode("span",{style:{"margin-left":"3px"}},"LIVE",-1)]),2)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(m.playbutton),onClick:i[0]||(i[0]=(...g)=>m.onclickPlayVideos&&m.onclickPlayVideos(...g))},i[2]||(i[2]=[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)]),2),s.dateGame!=""?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(m.date)},t.toDisplayString(s.dateGame),3)):t.createCommentVNode("",!0),s.matchday!=""&&s.seasonName!=""?(t.openBlock(),t.createElementBlock("div",{key:2,class:t.normalizeClass(m.containerinfogame)},[s.matchday!=""?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(m.matchcontainer)},t.toDisplayString(s.matchday),3)):t.createCommentVNode("",!0),s.seasonName!=""?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(m.seasoncontainer)},t.toDisplayString(s.seasonName),3)):t.createCommentVNode("",!0)],2)):t.createCommentVNode("",!0),i[3]||(i[3]=t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/paper-texture.png",alt:"",class:"paper-texture position-image"},null,-1)),t.createElementVNode("img",{src:s.background,alt:"",class:"bkg-blackwhite position-image",style:t.normalizeStyle({filter:m.isSafari?"none":""})},null,12,lXe),t.createElementVNode("div",{class:t.normalizeClass([m.baselogo,"position-image"])},null,2),t.createElementVNode("div",{class:t.normalizeClass(m.baselogoright)},null,2),i[4]||(i[4]=t.createElementVNode("div",{class:"gradient-back position-image"},null,-1)),i[5]||(i[5]=t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/halftone-texture.png",alt:"",class:"halftone-texture position-image"},null,-1)),t.createElementVNode("img",{src:s.logoHome,alt:"",class:t.normalizeClass(m.teamlogo)},null,10,cXe),t.createElementVNode("img",{src:s.logoAway,alt:"",class:t.normalizeClass(m.logoright)},null,10,dXe),t.createElementVNode("div",uXe,[t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(m.titlename)},t.toDisplayString(s.titleCategory),3)])],2)}const pXe=Ki(cS,[["render",hXe],["__scopeId","data-v-d9d70ba8"]]),wYt="";let OF=null;const fXe={components:{GSCThumbnailHighlightGameHistoricLive:pXe},props:{timeLiveHighlightsProminentAndVideo:{type:Number,default:6e4},game:{type:Object,default:()=>{}},titleCard:{type:String,default:"RESUMEN"},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 i=[];e.type==2?e.data.position_id==1?e.data.category==0?i=this.$store.getters.getProviderId==1?[55,324,323,608,39,774,802,52,53,40,54]:[393,447,472,1075,893,470,866,985,986,474,905,907,389]:i=e.data.category:e.data.category==0?i=this.$store.getters.getProviderId==1?[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]:[393,447,472,1075,992,1036,1155,1156,470,866,1035,33,873,871,38,46,985,986,389]:i=e.data.category:e.type==3?e.data.category==0?i=this.$store.getters.getProviderId==1?[607,608,12,55,54,35,14,52,15,53,466,477,40,257,39]:[1075,393,1415,1035,985,986,474,893,389]:i=e.data.category:e.type==4?i=this.$store.getters.getProviderId==1?[12,55,"35_r","54_r"]:[393,1415]:e.data.category!=0?i=e.data.category:this.titleCard=="RESUMEN"?i=this.$store.getters.getProviderId==1?[607,608,12,55,54,35,14,52,15,53,466,477]:[393,1415,985,986,1035,1075,473,389]:i=this.$store.getters.getProviderId==1?[12,55,54,35]:[393,1415];const s=[1,2,3];let B={seasonId:e.data.season_id,mainSectionType:1,playListType:e.type,categoryIds:i,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]:s,playData:{},advancedFilter:{playListTitle:""}};e.data.category!==0&&(B.advancedFilter.mainCategoryId=e.data.category),this.$emit("openmedia",B)},async getLiveHighlights(){const e=this.$store.getters.getProviderId,i=this.$store.getters.getIsDevApis,B=await pd.create({headers:{Authorization:`${this.token}`}}).get(dd("https://fxtcaw9tw6.execute-api.us-east-2.amazonaws.com/prod/live/historic/games/"+this.game.gameId,e,i));if(B.data!=""){this.showHighlight=B.data==""?!1:B.data.plays.length>0;const U=this.$store.getters.getProviderId==1?[12,55,54,35]:[393,1415];this.showHighlightGoals=B.data==""?!1:B.data.plays.filter(m=>U.includes(m[0])).length>0,this.item.category=0,this.item.game_id=B.data.game_id,this.item.season_id=this.game.seasonId,this.item.score=B.data.thumbnails[B.data.game_id].score,this.item.backgroundhome=B.data.thumbnails[B.data.game_id].info_thumbnails.home_colors.background_color,this.item.backgroundaway=B.data.thumbnails[B.data.game_id].info_thumbnails.away_colors.background_color,this.item.logohome=Mf("https://golstatsimages.blob.core.windows.net/teams-150/"+B.data.thumbnails[B.data.game_id].home_team+".png",e),this.item.logoaway=Mf("https://golstatsimages.blob.core.windows.net/teams-150/"+B.data.thumbnails[B.data.game_id].visiting_team+".png",e),this.item.background=this.titleCard=="RESUMEN"?"https://golstatsimages.blob.core.windows.net/images-library/"+B.data.thumbnails[B.data.game_id].info_thumbnails.images.background_default_games[0]:"https://golstatsimages.blob.core.windows.net/images-library/Goles_CAT.jpg",this.$emit("showleyendlive",!!(this.showHighlight||this.showHighlightGoals)),this.$emit("showsummarylive",this.showHighlight),this.$emit("showgoalslive",this.showHighlightGoals)}},setUpResizeObserver(){if(window.ResizeObserver)OF=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainerlivehigh.clientWidth}),this.$refs.gamesContainerlivehigh&&OF.observe(this.$refs.gamesContainerlivehigh);else throw new Error("Resize observer not supported!")}},async mounted(){setTimeout(()=>{this.setUpResizeObserver()},1e3)}},mXe={class:"highlights-prominent-game",ref:"gamesContainerlivehigh"},gXe={class:"video-partido-container__highlight"},yXe={class:"video-partido-container__image"};function vXe(e,i,s,B,U,m){const g=t.resolveComponent("GSCThumbnailHighlightGameHistoricLive");return t.openBlock(),t.createElementBlock("div",mXe,[t.withDirectives(t.createElementVNode("div",gXe,[t.createCommentVNode("",!0),t.createElementVNode("div",yXe,[t.createVNode(g,{"is-live":!0,game:s.game,"color-background-home":U.item.backgroundhome,"color-background-away":U.item.backgroundaway,"logo-home":U.item.logohome,"logo-away":U.item.logoaway,"title-category":s.titleCard,background:U.item.background,onOnclickPlayVideos:i[1]||(i[1]=r=>m.onclickPlayVideos({data:U.item,type:1})),matchday:U.item.match,"season-name":U.item.seasonname,score:U.item.score},null,8,["game","color-background-home","color-background-away","logo-home","logo-away","title-category","background","matchday","season-name","score"])])],512),[[t.vShow,s.titleCard=="RESUMEN"&&s.canPlayVideos&&U.showHighlight||s.titleCard=="GOLES"&&s.canPlayVideos&&U.showHighlightGoals]])],512)}const bXe=Ki(fXe,[["render",vXe],["__scopeId","data-v-70e03fae"]]),dS="/play-icn.svg",kYt="",xXe={name:"TooltipEmpty",props:{data:{type:Object,required:!0}},computed:{showTooltip(){return{visible:this.data.visible}}},methods:{tooltipClick:function(){},closeClick:function(){this.$emit("close")}}};function _Xe(e,i,s,B,U,m){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["back-tooltip",m.showTooltip])},[t.createElementVNode("div",{class:t.normalizeClass(["box-tooltip",m.showTooltip]),onClick:i[1]||(i[1]=(...g)=>m.tooltipClick&&m.tooltipClick(...g))},[t.createElementVNode("span",{role:"button",class:"box-tooltip-close",onClick:i[0]||(i[0]=(...g)=>m.closeClick&&m.closeClick(...g))},"×"),t.renderSlot(e.$slots,"default",{},void 0,!0)],2)],2)}const wXe=Ki(xXe,[["render",_Xe],["__scopeId","data-v-b5f07af8"]]),kXe="https://golstatsimages.blob.core.windows.net/timeline/",SXe="/images/events/",CXe="generic.svg";function TXe(e,i){var U,m;const s=i==null?void 0:i.category_id,B=i==null?void 0:i.event_type_id;for(const g of e??[])if((U=g.categoryIds)!=null&&U.includes(s)||B===1&&((m=g.orWithEventType1)!=null&&m.includes(s)))return g.icon;return CXe}function AXe(e,i){return Mf(`${kXe}${e}`,i)}function EXe(e){return`${SXe}${e}`}const SYt="",MXe=["id"],IXe={class:"game-event__minute"},PXe={class:"game-event__icon"},LXe=["src"],BXe=Ki({__name:"GameEvent",props:{gameEvent:{type:Object,default:()=>{}}},emits:["click-event"],setup(e,{emit:i}){const s=e,B=i,U=jh(),m=t.inject("timelineIconsStructure",t.ref([])),g=t.computed(()=>({"--icon-bottom":s.gameEvent.isHomeTeam?"30px":"-5px","--border-color":s.gameEvent.isSelected?"#336dff":"#747c83","--background-color":s.gameEvent.isSelected?"#336dff":"#0d1d29"})),r=t.computed(()=>TXe(m.value,s.gameEvent)),y=t.computed(()=>AXe(r.value,U.getters.getProviderId));function u(x){const v=EXe(r.value);x.target.src.endsWith(v)||(x.target.src=v)}function a(){B("click-event",s.gameEvent)}return(x,v)=>(t.openBlock(),t.createElementBlock("div",{id:s.gameEvent.play_id,class:"game-event",onClick:a,style:t.normalizeStyle(g.value)},[t.createElementVNode("div",IXe,[t.createElementVNode("div",null,t.toDisplayString(e.gameEvent.minute)+"'",1)]),t.createElementVNode("div",PXe,[t.createElementVNode("img",{src:y.value,onError:u},null,40,LXe)])],12,MXe))}},[["__scopeId","data-v-4c46dc1b"]]),TYt="",zXe={class:"events-line"},OXe={class:"events-line__events"},DXe=Ki({__name:"EventsLine",props:{gameEvents:{type:Array,default:()=>[]}},emits:["click-event"],setup(e,{emit:i}){const s=i;function B(U){s("click-event",U)}return(U,m)=>(t.openBlock(),t.createElementBlock("div",zXe,[t.createVNode(t.unref(R2),{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",OXe,[m[0]||(m[0]=t.createElementVNode("div",{class:"events-line__events__line"},null,-1)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.gameEvents,g=>(t.openBlock(),t.createBlock(BXe,{key:g.id,"game-event":g,onClickEvent:B},null,8,["game-event"]))),128))])]),_:1})]))}},[["__scopeId","data-v-df0b18c7"]]),EYt="",NXe={class:"tooltip-data"},FXe=["src"],RXe={class:"game-events__team-logo"},VXe=["src"],jXe={class:"game-events__event-info"},UXe={key:0,class:"game-events__event-info__line"},GXe={key:1,class:"game-events__event-info__info"},HXe={class:"game-events__event-info__info__player-photo"},ZXe={key:0,class:"game-events__event-info__info__player-photo__img"},XXe=["src"],WXe={class:"game-events__event-info__info__event-name"},YXe={class:"game-events__event-info__info__player-name"},qXe={class:"game-events__events"},JXe={class:"game-events__team-logo"},$Xe=["src"],KXe={class:"game-events__event-info"},QXe={key:0,class:"game-events__event-info__line"},eWe={key:1,class:"game-events__event-info__info"},tWe={class:"game-events__event-info__info__player-photo"},aWe={key:0,class:"game-events__event-info__info__player-photo__img"},rWe=["src"],nWe={class:"game-events__event-info__info__event-name"},iWe={class:"game-events__event-info__info__player-name"},oWe="https://11rcgkydx3.execute-api.us-east-2.amazonaws.com/prod/games/",sWe=Ki({__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:i}){let s=null,B=0;const U=jh(),m=e,g=i,r=t.ref([]),y=t.ref(new Map),u=t.ref(""),a=t.ref(null),x=t.ref({visible:!1,link:""}),v=t.ref(new Set),_=t.ref(0),p=t.computed(()=>m.game.is_live||m.game.game_status===0),n=t.ref([]);t.provide("timelineIconsStructure",n),t.watch(()=>U.getters.getProviderId,async P=>{n.value=await vie(P)},{immediate:!0}),t.watch(()=>m.game,(P,L)=>{P&&P.gameId!==B?(v.value.clear(),B=P.gameId,l(),c(P.gameId,P.is_live&&P.game_status===4)):P&&P.is_live&&(!L||!L.is_live)?c(P.gameId,!0):P&&!P.is_live&&L.is_live&&l()},{deep:!0,immediate:!0}),t.watch(()=>u.value,(P,L)=>{if(P!==L){const T=y.value.get(L),I=y.value.get(P);if(T&&(T.isSelected=!1),I){if(!I.playerShortName){const[M,S]=I.player_name.split(","),z=M.split(" ");let k="";for(const O of z)if(k+=` ${O}`,O.length>3)break;I.playerShortName=S&&M?`${S.trim().charAt(0)}.${k}`:""}I.isSelected=!0,a.value=I}}});function o(P){s=setInterval(()=>{c(P)},1e3*60*m.gameEventsIntervalMinutes)}async function c(P,L=!1){try{let T=await w(P),I=!1;P!==_.value&&(r.value=[],y.value=new Map,u.value="",v.value.clear(),_.value=P);let M=T.filter(S=>{const z=v.value.has(S.play_id);return z||v.value.add(S.play_id),!z});if(M){M=M.reduce((z,k)=>(I=k.game_finished,k.team_id&&(k.isHomeTeam=k.team_id===m.game.homeTeam.team_id,z.push(k),y.value.set(k.play_id,k)),z),[]);const S=[...r.value];h(M).forEach(z=>{p.value?S.unshift(z):S.push(z)}),r.value=p.value?h(S).reverse():h(S)}r.value&&r.value.length&&(p.value||!u.value&&r.value.length)&&(u.value=r.value[0].play_id),L&&!I?o(P):I&&l()}catch(T){console.error(T)}}function l(){s&&(clearInterval(s),s=null)}function h(P){return P.sort((L,T)=>b(L.matchlapse)+Number(L.minute)-(b(T.matchlapse)+Number(T.minute)))}function b(P){let L=0;switch(P){case 1:L=0;break;case 2:L=45;break;case 3:L=90;break;case 4:L=105;break;case 5:L=120;break}return L}async function w(P){try{const L=dd(`${oWe}${P}/timeline`,U.getters.getProviderId,U.getters.getIsDevApis),I=(await pd.get(L,{headers:{Authorization:m.token}})).data;return I?I.plays||[]:[]}catch(L){throw new Error(L)}}function C(P){u.value=P.play_id}function E(){m.canPlayVideos&&a.value.play_id&&g("play-video",{categoryId:U.getters.getProviderId==1?a.value.main_category_id:a.value.category_id,playId:a.value.play_id})}function A(){x.value.visible=!1,x.value.link=""}return t.onBeforeUnmount(()=>{l()}),(P,L)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createVNode(wXe,{data:x.value,onClose:A},{default:t.withCtx(()=>[t.createElementVNode("div",NXe,[t.createElementVNode("div",null,[t.createElementVNode("video",{class:"tooltip-video",controls:"",autoplay:"",src:x.value.link,format:"video/mp4"},null,8,FXe)])])]),_:1},8,["data"]),t.createElementVNode("div",{class:t.normalizeClass(e.widthScreen>920?"game-events":"game-events__mobile")},[L[2]||(L[2]=t.createElementVNode("div",{class:"game-events__title-left-padding"},null,-1)),L[3]||(L[3]=t.createElementVNode("div",{class:"game-events__title"},"Eventos",-1)),t.createElementVNode("div",RXe,[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,VXe)):t.createCommentVNode("",!0)]),t.createElementVNode("div",jXe,[a.value&&a.value.isHomeTeam?(t.openBlock(),t.createElementBlock("div",UXe)):t.createCommentVNode("",!0),a.value&&a.value.isHomeTeam?(t.openBlock(),t.createElementBlock("div",GXe,[t.createElementVNode("div",HXe,[a.value.player_id?(t.openBlock(),t.createElementBlock("div",ZXe,[t.createElementVNode("img",{src:t.unref(U).getters.getProviderId==1?`https://golstatsimages.blob.core.windows.net/players-profile/${a.value.player_id}.png`:`https://golstatsimages.blob.core.windows.net/players-profile/${t.unref(U).getters.getProviderId}/${a.value.player_id}.png`,alt:""},null,8,XXe)])):t.createCommentVNode("",!0)]),t.createElementVNode("div",WXe,t.toDisplayString(a.value.event_type_id===1?a.value.event_type_name:a.value.category_name),1),t.createElementVNode("div",YXe," | "+t.toDisplayString(a.value.playerShortName),1),e.canPlayVideos&&a.value.play_id?(t.openBlock(),t.createElementBlock("div",{key:0,role:"button",class:"game-events__event-info__info__button-play",onClick:E},L[0]||(L[0]=[t.createElementVNode("img",{src:dS,alt:""},null,-1)]))):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)]),L[4]||(L[4]=t.createElementVNode("div",{class:"game-events__events-padding"},null,-1)),t.createElementVNode("div",qXe,[t.createVNode(DXe,{"game-events":r.value,onClickEvent:C},null,8,["game-events"])]),t.createElementVNode("div",JXe,[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,$Xe)):t.createCommentVNode("",!0)]),t.createElementVNode("div",KXe,[a.value&&!a.value.isHomeTeam?(t.openBlock(),t.createElementBlock("div",QXe)):t.createCommentVNode("",!0),a.value&&!a.value.isHomeTeam?(t.openBlock(),t.createElementBlock("div",eWe,[t.createElementVNode("div",tWe,[a.value.player_id?(t.openBlock(),t.createElementBlock("div",aWe,[t.createElementVNode("img",{src:t.unref(U).getters.getProviderId==1?`https://golstatsimages.blob.core.windows.net/players-profile/${a.value.player_id}.png`:`https://golstatsimages.blob.core.windows.net/players-profile/${t.unref(U).getters.getProviderId}/${a.value.player_id}.png`,alt:""},null,8,rWe)])):t.createCommentVNode("",!0)]),t.createElementVNode("div",nWe,t.toDisplayString(a.value.event_type_id===1?a.value.event_type_name:a.value.category_name),1),t.createElementVNode("div",iWe," | "+t.toDisplayString(a.value.playerShortName),1),e.canPlayVideos&&a.value.play_id?(t.openBlock(),t.createElementBlock("div",{key:0,role:"button",class:"game-events__event-info__info__button-play",onClick:E},L[1]||(L[1]=[t.createElementVNode("img",{src:dS,alt:""},null,-1)]))):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)])],2)],64))}},[["__scopeId","data-v-d6b23946"]]),IYt="",lWe={class:"toggle-buttons__background"},cWe=["onClick"],dWe={key:0,class:"toggle-buttons__button__img"},uWe=["src"],Z5=Ki({__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:i}){t.useCssVars(r=>({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 s=e,B=i,U=t.ref(s.selectedButtonIndex),m=t.computed(()=>({"--grid-template-columns":`repeat(${s.buttons.length}, 1fr)`}));t.watch(()=>s.selectedButtonIndex,r=>{U.value=r}),t.watch(U,(r,y)=>{r!==y&&B("change",{index:r,button:s.buttons[r]})});function g(r){U.value=r}return(r,y)=>(t.openBlock(),t.createElementBlock("div",lWe,[t.createElementVNode("div",{class:"toggle-buttons",style:t.normalizeStyle(m.value)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.buttons,(u,a)=>(t.openBlock(),t.createElementBlock("div",{key:`b${a}`,class:t.normalizeClass(["toggle-buttons__button",{active:U.value===a,right:u.img&&a>0}]),onClick:x=>g(a)},[u.img?(t.openBlock(),t.createElementBlock("div",dWe,[t.createElementVNode("img",{src:u.img,alt:""},null,8,uWe)])):t.createCommentVNode("",!0),t.createElementVNode("div",null,t.toDisplayString(u.text||u),1)],10,cWe))),128))],4)]))}},[["__scopeId","data-v-ad07815f"]]),LYt="",BYt="",hWe={class:"tooltip__content"},pWe={key:0,class:"tooltip__content__category"},fWe={class:"tooltip__content__player"},mWe={class:"tooltip__content__player__name"},gWe={class:"tooltip__content__player__photo"},yWe=["src"],vWe={class:"tooltip__content__minute"},bWe={key:1,class:"tooltip__content__game"},xWe={class:"tooltip__content__game__round-abbreviation"},_We={class:"tooltip__content__game__logo"},wWe=["src"],kWe={class:"tooltip__content__game__logo"},SWe=["src"],CWe={key:2,class:"tooltip__content__team"},TWe={class:"tooltip__content__team__logo"},AWe=["src"],EWe=Ki({__name:"TooltipChalkboard",props:{event:{type:Object,default:()=>({})},position:{type:Object,default:()=>({x:"0",y:"0"})}},emits:["close"],setup(e,{emit:i}){const s=e,B=i,U=t.computed(()=>({"--top":s.position.y,"--left":s.position.x})),m=t.computed(()=>`${s.event.player.player_name} ${s.event.player.player_lastname}`),g=t.computed(()=>{const[y]=s.event.momentOfPlay.split(":");return`${Number(y)}'`});function r(){B("close")}return(y,u)=>(t.openBlock(),t.createElementBlock("div",{class:"tooltip",onClick:r,style:t.normalizeStyle(U.value)},[t.createElementVNode("div",hWe,[e.event.categoryName?(t.openBlock(),t.createElementBlock("div",pWe,t.toDisplayString(e.event.categoryName),1)):t.createCommentVNode("",!0),t.createElementVNode("div",fWe,[t.createElementVNode("div",mWe,t.toDisplayString(m.value),1),t.createElementVNode("div",gWe,[t.createElementVNode("img",{src:e.event.player.photo,alt:""},null,8,yWe)])]),t.createElementVNode("div",vWe,"Minuto: "+t.toDisplayString(g.value),1),e.event.game?(t.openBlock(),t.createElementBlock("div",bWe,[u[0]||(u[0]=t.createElementVNode("div",{class:"tooltip__content__game__name"},"Partido:",-1)),t.createElementVNode("div",xWe,t.toDisplayString(e.event.game.roundAbbreviation),1),t.createElementVNode("div",_We,[t.createElementVNode("img",{src:e.event.game.homeTeam.logo,alt:""},null,8,wWe)]),u[1]||(u[1]=t.createElementVNode("div",{class:"tooltip__content__game__vs"},"VS",-1)),t.createElementVNode("div",kWe,[t.createElementVNode("img",{src:e.event.game.awayTeam.logo,alt:""},null,8,SWe)])])):(t.openBlock(),t.createElementBlock("div",CWe,[u[2]||(u[2]=t.createElementVNode("div",{class:"tooltip__content__team__name"},"Equipo:",-1)),t.createElementVNode("div",TWe,[t.createElementVNode("img",{src:e.event.team.logo,alt:""},null,8,AWe)])]))])],4))}},[["__scopeId","data-v-cb12065f"]]),MWe=["id"],IWe=["fill"],PWe=["id"],LWe=["fill"],BWe=["stroke-dasharray","x1","y1","x2","y2","marker-end"],zWe=["x","y","stroke-width","fill","stroke"],OWe=["x","y"],DWe={__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 i=e,s=t.computed(()=>{const c=i.eventConnection.previousEvent;return c&&c.x3!==null&&c.x3!==void 0&&c.y3!==null&&c.y3!==void 0?{x:c.x3,y:c.y3}:{x:i.eventConnection.x1,y:i.eventConnection.y1}}),B=t.computed(()=>{const c=[];if(i.eventConnection.hasConnectionPath){const l=i.eventConnection.x1===i.eventConnection.x2&&i.eventConnection.y1===i.eventConnection.y2?1:2;let h=u(s.value.y);const b=a(s.value.x);let w=0,C=0;l===2&&(w=u(i.eventConnection.y2),C=a(i.eventConnection.x2));const E=u(i.eventConnection.y3),A=a(i.eventConnection.x3);l===1?c.push({x1:b,y1:h,x2:A,y2:E}):(c.push({x1:b,y1:h,x2:C,y2:w}),c.push({x1:C,y1:w,x2:A,y2:E}))}return c}),U=t.computed(()=>i.mainEventIdSelected!==0?i.eventConnection.relatedPlayId===i.mainEventIdSelected?1:.1:1),m=t.computed(()=>i.mainEventIdSelected!==0?i.eventConnection.relatedPlayId===i.mainEventIdSelected:!0),g=t.computed(()=>i.eventConnection.drawPoint||s.value),r=t.computed(()=>u(g.value.y)),y=t.computed(()=>a(g.value.x));function u(c){return(1-c)*100}function a(c){return c*100}function x(c){Ru.emit("mouse-over-event",{mouseEvent:c,eventConnection:i.eventConnection,position:{x:y.value,y:r.value}})}let v=null,_=null;function p(c){!v||_!==c.relatedPlayId?(v&&n(),_=c.relatedPlayId,v=setTimeout(()=>{Ru.emit("mouse-click-time-event",c.relatedPlayId),n()},1e3)):(Ru.emit("mouse-double-click-time-event",{categoriesIds:c.categoriesIds,playId:c.relatedPlayId}),n())}function n(){v&&(clearTimeout(v),v=null)}function o(){Ru.emit("mouse-leave-event",{mainEventId:i.eventConnection.relatedPlayId,eventId:i.eventConnection.playId})}return(c,l)=>(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:U.value})},[t.createElementVNode("path",{d:"M0,0 L0,6 L9,3 z",fill:e.color},null,8,IWe)],12,MWe),[[t.vShow,m.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:U.value})},[t.createElementVNode("circle",{cx:"2",cy:"2",r:"2",fill:e.color},null,8,LWe)],12,PWe),[[t.vShow,m.value]])]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(B.value,(h,b)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[h.x1&&h.y1?t.withDirectives((t.openBlock(),t.createElementBlock("line",{key:`${e.eventConnection.playId}-${b}`,style:t.normalizeStyle({stroke:e.color,"stroke-width":2,opacity:U.value}),"stroke-dasharray":b===0&&B.value.length===2?"none":"5,5",x1:`${h.x1}%`,y1:`${h.y1}%`,x2:`${h.x2}%`,y2:`${h.y2}%`,"marker-start":"`url(`#b-${eventConnection.playId}`)`","marker-end":`url(${e.isLastEvent&&b===B.value.length-1?`#a-${e.eventConnection.playId}`:""})`},null,12,BWe)),[[t.vShow,m.value]]):t.createCommentVNode("",!0)],64))),256)),t.withDirectives(t.createElementVNode("g",{onMouseover:t.withModifiers(x,["stop"]),onMouseleave:t.withModifiers(o,["stop"]),onClick:l[0]||(l[0]=t.withModifiers(h=>p(e.eventConnection),["stop"])),style:t.normalizeStyle({cursor:"pointer",opacity:U.value})},[t.createElementVNode("rect",{x:`${y.value}%`,y:`${r.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:U.value}),rx:"14",ry:"14"},null,12,zWe),t.createElementVNode("text",{x:`${y.value}%`,y:`${r.value}%`,"text-anchor":"middle","dominant-baseline":"middle",dy:"1","font-size":"15",fill:"#fff","font-family":"'Poppins-SemiBold', sans-serif",style:t.normalizeStyle({opacity:U.value})},t.toDisplayString(e.eventConnection.player?e.eventConnection.player.jersey:""),13,OWe)],36),[[t.vShow,m.value]])],64))}},NWe={__name:"EventConnections",props:{eventConnections:{type:Object,required:!0},mainEventIdSelected:{type:Number,default:0}},setup(e){const i=e,s=t.computed(()=>i.eventConnections.getEventsConnectionsByEventType());return(B,U)=>(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.value,(m,g)=>(t.openBlock(),t.createBlock(DWe,{key:m.id,color:e.eventConnections.getEventColor(m),"is-last-event":g===s.value.length-1,"event-connection":m,"main-event-id-selected":e.mainEventIdSelected},null,8,["color","is-last-event","event-connection","main-event-id-selected"]))),128))}},DF={1:new Set([35,54]),2:new Set([444])};function X5(e){return DF[e]||DF[1]}const W5={homeTeam:"#336dff",awayTeam:"#7ed321"},NF={homeTeam:"#fff",awayTeam:"#000"};function FF(e,i){return e!=null&&i!==null&&i!==void 0}function FWe(e,i){const s=e.previousEvent,B=s&&FF(s.x3,s.y3)?{x:s.x3,y:s.y3}:{x:e.x1,y:e.y1};return i&&i.x===B.x&&i.y===B.y&&FF(e.x1,e.y1)?{x:e.x1,y:e.y1}:B}class RF{constructor(i={},s=[],B=new Set,U=new Set,m=null,g=null,r=1){xd(this,"categoriesIds",[]);this.providerId=r||1;const y=X5(this.providerId).has(i.categoryId);this.mainPlay=i,this.playEvents=s.sort((x,v)=>v.order-x.order),this.categoriesIds=B,this.playersIds=U,this.teamForAnalysis=g;let u=y?`${i.categoryId}_r`:i.categoryId||0,a=i.playId;if(this.providerId!==1&&!y){const x=s.find(v=>X5(this.providerId).has(v.categoryId));x&&(u=`${x.categoryId}_r`,a=x.playId)}this.mainCategoryId=u,this.mainEventPlayId=a,this.mainPlay.isMainPlay=!0,this.playEvents.forEach(x=>{x.game=m})}setCategoriesIds(i=[]){this.categoriesIds=i?[...i]:[],this.playEvents.forEach(s=>{s.categoriesIds=this.categoriesIds})}setEventType(i){this.eventType=i,this.mainPlay.categoryName=i.singleName,this.playEvents.forEach(s=>{s.hasConnectionPath=this.eventType.prev!==0||this.eventType.post!==0})}getEventsConnectionsByEventType(){const i=this.playEvents.findIndex(s=>s.playId===this.mainPlay.playId);if(i>-1&&this.eventType){let s=i-this.eventType.post,B=i+this.eventType.prev;s<0&&(s=0),B>this.playEvents.length-1&&(B=this.playEvents.length-1);const U=this.playEvents.slice(s,B+1).reverse();let m=null;return U.forEach((g,r)=>{r>0&&(g.previousEvent=U[r-1]),g.drawPoint=FWe(g,m),m=g.drawPoint}),U}return[]}hasMainCategory(i=new Set){return i.has(this.mainCategoryId)}hasCategories(i=new Set,s={homeTeamId:0,awayTeamId:0}){const B=[];return i.forEach(U=>{B.push(`${s.homeTeamId}-${U}`),B.push(`${s.awayTeamId}-${U}`)}),B.some(U=>this.teamEventsIndex.has(U))}hasPlayer(i=new Set){return i.has(this.mainPlay.playerId)}hasPlayers(i=new Set){return Array.from(i.values()).some(s=>this.playersIds.has(s))}hasTeam(i=new Set){return i.has(this.mainPlay.teamId)}shouldInvertTeamSide(){return this.providerId!==1&&X5(this.providerId).has(this.mainPlay.categoryId)}getTeamColor(){let i=this.teamForAnalysis?this.teamForAnalysis.isHomeTeam?this.mainPlay.teamId===this.teamForAnalysis.teamId:this.mainPlay.teamId!==this.teamForAnalysis.teamId:this.mainPlay.team.isHomeTeam;return this.shouldInvertTeamSide()&&(i=!i),i?W5.homeTeam:W5.awayTeam}getEventColor(i){return(this.teamForAnalysis?this.teamForAnalysis.isHomeTeam?i.teamId===this.teamForAnalysis.teamId:i.teamId!==this.teamForAnalysis.teamId:i.team.isHomeTeam)?W5.homeTeam:W5.awayTeam}getTeamFontColor(){let i=this.teamForAnalysis?this.teamForAnalysis.isHomeTeam?this.mainPlay.teamId===this.teamForAnalysis.teamId:this.mainPlay.teamId!==this.teamForAnalysis.teamId:this.mainPlay.team.isHomeTeam;return this.shouldInvertTeamSide()&&(i=!i),i?NF.homeTeam:NF.awayTeam}getSingleName(i){return i.split(" ").reduce((B,U)=>{let m=U;return U.endsWith("minaron")?m=U.replace("minaron","minó"):U.endsWith("vocan")?m=U.replace("vocan","voca"):U.endsWith("lones")?m=U.replace("lones","lón"):U.endsWith("oles")?m=U.replace("oles","ol"):(U.endsWith("os")||U.endsWith("as")||U.endsWith("es"))&&(m=U.slice(0,U.length-1)),B.push(m),B},[]).join(" ")}}const OYt="",RWe={class:"soccer-chalkboard"},VWe={id:"soccerChalkboardField",class:"soccer-chalkboard__field"},jWe=["src"],UWe={viewBox:"0 0 547 340",fill:"none",xmlns:"http://www.w3.org/2000/svg"},GWe=Ki({__name:"SoccerChalkboard",props:{eventsConnections:{type:Array,default:()=>[]},listType:{type:String,default:"events"},playersSelected:{type:Set,default:()=>new Set},teamsSelected:{type:Set,default:()=>new Set},isAssistantZoneVisible:{type:Boolean,default:!1}},emits:["click-play","change-main-event"],setup(e,{expose:i,emit:s}){const B=s,U=jh(),g=hoe()?0:1e3;Ru.on("mouse-over-time-event",l=>{p(l),setTimeout(()=>{p(l)},g)}),Ru.on("mouse-click-time-event",l=>{p(l)}),Ru.on("mouse-double-click-time-event",l=>{B("click-play",{categoriesIds:l.categoriesIds,playId:l.playId})}),Ru.on("mouse-leave-time-event",l=>{setTimeout(()=>{a.value==l&&!y.value&&p(0)},g)}),Ru.on("mouse-over-event",l=>{o(l)}),Ru.on("mouse-leave-event",l=>{setTimeout(()=>{l.eventId===x.value&&c()},g)});const r=e,y=t.ref(!1),u=t.ref({}),a=t.ref(0),x=t.ref(0),v=t.ref({x:0,y:0}),_=t.computed(()=>r.isAssistantZoneVisible?"https://golstatsimages.blob.core.windows.net/todoelfut/pizarra.jpg":"https://golstatsimages.blob.core.windows.net/todoelfut/field-green-posesion.jpg");function p(l){a.value=l,B("change-main-event",l)}function n(){y.value=!1}function o(l){var E,A;const h={...l.eventConnection},b=U.getters.getProviderId;if(b!==1)X5(b).has(h.categoryId)&&(h.categoryName="Autogol");else if([12,55,"35_r","54_r"].includes(h.categoryId)&&((E=h.player)==null?void 0:E.team_id)!==h.teamId){const L=h.gameAux||h.game,T=L.homeTeam.team_id===((A=h.player)==null?void 0:A.team_id)?L.homeTeam:L.awayTeam;h.categoryName="Autogol",h.team=T}const w=170,C=document.getElementById("soccerChalkboardField");if(C){const P=C.getBoundingClientRect(),L=l.position.x/100*P.width+14,T=l.position.y/100*P.height+14,I=L+w>P.width?P.width-w:L,M=T;x.value=l.eventConnection.playId,u.value=h,v.value={x:`${I}px`,y:`${M}px`},y.value=!0}}function c(){y.value=!1}return i({setMainEventIdSelected:p}),(l,h)=>(t.openBlock(),t.createElementBlock("div",RWe,[t.createElementVNode("div",VWe,[t.createElementVNode("img",{src:_.value,alt:""},null,8,jWe),(t.openBlock(),t.createElementBlock("svg",UWe,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.eventsConnections,(b,w)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[e.listType==="events"&&b.hasTeam(e.teamsSelected)||e.listType==="players"&&b.hasPlayer(e.playersSelected)?(t.openBlock(),t.createBlock(NWe,{key:w,"event-connections":b,"main-event-id-selected":a.value},null,8,["event-connections","main-event-id-selected"])):t.createCommentVNode("",!0)],64))),256))]))]),y.value?(t.openBlock(),t.createBlock(EWe,{key:0,position:v.value,event:u.value,onClose:n},null,8,["position","event"])):t.createCommentVNode("",!0)]))}},[["__scopeId","data-v-09d50ada"]]),NYt="",HWe={class:"events-timeline"},ZWe=["id","onClick","onMouseover","onMouseleave"],XWe=["id"],WWe=["fill"],YWe=["fill","mask"],qWe=["stroke"],JWe=Ki({__name:"EventsTimeLine",props:{eventsConnections:{type:Array,default:()=>[]},listType:{type:String,default:"events"},playersSelected:{type:Set,default:()=>new Set},teamsSelected:{type:Set,default:()=>new Set},mainEventIdSelected:{type:Number,default:0}},setup(e){const i=["0'","45'","90'"],s=e,B=t.computed(()=>s.eventsConnections.reduce((a,x)=>{const v={minute:"0'",left:"0%",color:x.getTeamColor(),fontColor:x.getTeamFontColor(),playId:x.mainPlay.playId,playerId:x.mainPlay.playerId,teamId:x.mainPlay.teamId,relatedPlayId:x.relatedPlayId,categoriesIds:x.categoriesIds},[_]=x.mainPlay.momentOfPlay.split(":"),p=parseInt(_);return p>=90?(v.minute=`${p}'`,v.left="100%"):(v.minute=`${p}'`,v.left=`${p/90*100}%`),a.push(v),a},[]));let U=null,m=null;function g(a){!U||m!==a.playId?(U&&r(),m=a.playId,U=setTimeout(()=>{Ru.emit("mouse-click-time-event",a.playId),r()},1e3)):(Ru.emit("mouse-double-click-time-event",a),r())}function r(){U&&(clearTimeout(U),U=null)}function y(a){const x=document.getElementById(a);x&&(x.style["z-index"]=1)}function u(a){const x=document.getElementById(a);x&&(x.style["z-index"]="auto")}return(a,x)=>(t.openBlock(),t.createElementBlock("div",HWe,[(t.openBlock(),t.createElementBlock(t.Fragment,null,t.renderList(i,(v,_)=>t.createElementVNode("div",{class:"events-timeline__game-time",key:_},t.toDisplayString(v),1)),64)),x[1]||(x[1]=t.createElementVNode("div",{class:"events-timeline__back-line"},null,-1)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(B.value,(v,_)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[e.listType==="events"&&e.teamsSelected.has(v.teamId)||e.listType==="players"&&e.playersSelected.has(v.playerId)?(t.openBlock(),t.createElementBlock("svg",{id:`svg-${v.playId}`,key:_,width:"20",height:"22",viewBox:"0 0 20 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:t.normalizeStyle({left:v.left,cursor:"pointer",opacity:e.mainEventIdSelected?e.mainEventIdSelected===v.playId?"1":"0.2":"1"}),onClick:p=>g(v),onMouseover:p=>y(`svg-${v.playId}`),onMouseleave:p=>u(`svg-${v.playId}`)},[t.createElementVNode("mask",{id:v.playId.toString(),fill:"white"},x[0]||(x[0]=[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)]),8,XWe),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:v.color},null,8,WWe),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:e.mainEventIdSelected&&e.mainEventIdSelected===v.playId?"white":"#172531",mask:`url(#${v.playId})`},null,8,YWe),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:v.fontColor,"stroke-width":"0.7"},t.toDisplayString(v.minute),9,qWe)])],44,ZWe)):t.createCommentVNode("",!0)],64))),256))]))}},[["__scopeId","data-v-d2d4c119"]]),jd={All:1,YEAR:2,AGE_RANGE:3,NATIONALITY:4,POSITION:5,ELIGIBILITY:6},$We=(e,i)=>{const s=e.__vccOpts||e;for(const[B,U]of i)s[B]=U;return s},KWe={key:1},QWe={width:"10",height:"8",viewBox:"0 0 10 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},eYe=["fill"],tYe={key:0,class:"checkbox__teams"},aYe={class:"checkbox__teams__logo"},rYe=["src"],nYe={class:"checkbox__teams__logo"},iYe=["src"],oYe={__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},provider:{type:Number,default:0}},emits:["update:modelValue"],setup(e,{emit:i}){const s=e;t.useCssVars(u=>({"70bd45d8":e.width,"12bb4b99":e.height}));const B=t.ref(!1),U=t.computed(()=>{const u={color:s.boxValueColor,"font-family":s.fontFamily,height:s.boxWidthAndHeight,width:s.boxWidthAndHeight,minWidth:s.boxWidthAndHeight,"border-radius":s.boxBorderRadius,"margin-top":s.boxMarginTop};return B.value?(u["background-color"]=s.boxBackgroundColor,u.border=`solid ${s.boxBorderWidth} ${s.boxBackgroundColor}`):u.border=`solid ${s.boxBorderWidth} ${s.boxBorderColor}`,u}),m=t.computed(()=>({"font-family":s.boxValueFontFamily,"font-size":s.boxValueFontSize,color:s.boxValueColor,"line-height":1})),g=t.computed(()=>{const u={color:s.labelColor,"font-family":s.fontFamily,"font-size":s.labelFontSize,"white-space":s.labelWhiteSpace,"text-align":s.boxPosition==="top"||s.boxPosition==="bottom"?"center":s.boxPosition};return(s.boxPosition==="left"||s.boxPosition==="right")&&(u[`margin-${s.boxPosition}`]=s.isBoxOnly?"0":s.teamsIds?"8px":"10px"),u});t.watch(()=>s.modelValue,u=>{u!==B.value&&(B.value=u)},{immediate:!0});function r(){s.avoidInteraction||!B.value&&s.avoidToCheck||(B.value=!B.value,i("update:modelValue",B.value))}function y(u){const a={}.TEAM_LOGOS_URL||"https://golstatsimages.blob.core.windows.net/teams-80/";return s.provider&&s.provider>=2?`${a}${s.provider}/${u}.png`:`${a}${u}.png`}return(u,a)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["checkbox",`box-${e.boxPosition}`]),onClick:r},[t.createElementVNode("div",{class:"checkbox__box",style:t.normalizeStyle(U.value)},[B.value?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[s.boxValue?(t.openBlock(),t.createElementBlock("div",{key:0,class:"checkbox__box__value",style:t.normalizeStyle(m.value)},t.toDisplayString(e.boxValue),5)):(t.openBlock(),t.createElementBlock("div",KWe,[(t.openBlock(),t.createElementBlock("svg",QWe,[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,eYe)]))]))],64)):t.createCommentVNode("",!0)],4),e.teamsIds&&e.teamsIds.length?(t.openBlock(),t.createElementBlock("div",tYe,[t.createElementVNode("div",aYe,[t.createElementVNode("img",{src:y(e.teamsIds[0]),alt:""},null,8,rYe)]),t.createElementVNode("div",nYe,[t.createElementVNode("img",{src:y(e.teamsIds[1]),alt:""},null,8,iYe)])])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"checkbox__label",style:t.normalizeStyle(g.value)},t.toDisplayString(e.label),5)],2))}},Hl=$We(oYe,[["__scopeId","data-v-4ea8394b"]]),nc=(e,i)=>{const s=e.__vccOpts||e;for(const[B,U]of i)s[B]=U;return s},sYe={class:"container"},lYe={key:0,width:"11",height:"2",viewBox:"0 0 11 2",fill:"none",xmlns:"http://www.w3.org/2000/svg"},cYe=["fill"],dYe={key:1,width:"11",height:"11",viewBox:"0 0 11 11",fill:"none",xmlns:"http://www.w3.org/2000/svg"},uYe=["fill"],hYe={__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(i=>({"2c438f73":e.width,"425f651a":e.height})),(i,s)=>(t.openBlock(),t.createElementBlock("div",sYe,[e.isExpanded?(t.openBlock(),t.createElementBlock("svg",lYe,[t.createElementVNode("rect",{width:"11",height:"1.7",fill:e.collapseIconColor},null,8,cYe)])):(t.openBlock(),t.createElementBlock("svg",dYe,[t.createElementVNode("path",{d:"M11 6.28571H6.28571V11H4.71429V6.28571H0V4.71429H4.71429V0H6.28571V4.71429H11V6.28571Z",fill:e.expandIconColor},null,8,uYe)]))]))}},dg=nc(hYe,[["__scopeId","data-v-e633864b"]]),Iv=e=>(t.pushScopeId("data-v-9f942989"),e=e(),t.popScopeId(),e),pYe={key:0,class:"productivity__body__offensive"},fYe={class:"productivity__body__title"},mYe={class:"productivity__body__title__info"},gYe={class:"number-of-categories"},yYe={class:"productivity__body__categories"},vYe={key:1,class:"productivity__body__defensive-possession"},bYe={key:0,class:"block"},xYe={class:"productivity__body__title"},_Ye={class:"productivity__body__title__info"},wYe={class:"number-of-categories"},kYe={class:"productivity__body__categories"},SYe={key:1,class:"block"},CYe={class:"productivity__body__title"},TYe={class:"productivity__body__title__info"},AYe={class:"number-of-categories"},EYe={class:"productivity__body__categories"},MYe=["onClick"],IYe=Iv(()=>t.createElementVNode("svg",{width:"11",height:"12",viewBox:"0 0 11 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M7.50558 0C6.78112 0 6.10558 0.475441 5.89478 1.14401L1.21987 1.14286C0.904267 1.14286 0.648438 1.39886 0.648438 1.71429C0.648438 2.02972 0.904267 2.28572 1.21987 2.28572L5.89478 2.28516C6.15083 2.98516 6.78112 3.42858 7.50558 3.42858C8.23004 3.42858 8.86678 2.98402 9.1273 2.28059L10.3627 2.28572C10.6783 2.28572 10.9342 2.02972 10.9342 1.71429C10.9342 1.39886 10.6783 1.14286 10.3627 1.14286H9.12244C8.8473 0.446287 8.23004 0 7.50558 0ZM7.50558 1.14286C7.82118 1.14286 8.07701 1.39886 8.07701 1.71429C8.07701 2.02972 7.82118 2.28572 7.50558 2.28572C7.18998 2.28572 6.93415 2.02972 6.93415 1.71429C6.93415 1.39886 7.18998 1.14286 7.50558 1.14286ZM4.07701 4.28572C3.32387 4.28572 2.69347 4.7543 2.4633 5.42971C2.38295 5.43485 1.21987 5.42856 1.21987 5.42856C0.904267 5.42856 0.648438 5.68456 0.648438 5.99999C0.648438 6.31542 0.904267 6.57142 1.21987 6.57142C1.21987 6.57142 2.39267 6.55942 2.46575 6.56685C2.69593 7.24228 3.32387 7.71428 4.07701 7.71428C4.80146 7.71428 5.42226 7.27028 5.69381 6.57314L10.3627 6.57142C10.6783 6.57142 10.9342 6.31542 10.9342 5.99999C10.9342 5.68456 10.6783 5.42856 10.3627 5.42856L5.69083 5.42348C5.44038 4.74174 4.80146 4.28572 4.07701 4.28572ZM4.07701 5.42856C4.39261 5.42856 4.64844 5.68456 4.64844 5.99999C4.64844 6.31542 4.39261 6.57142 4.07701 6.57142C3.76141 6.57142 3.50558 6.31542 3.50558 5.99999C3.50558 5.68456 3.76141 5.42856 4.07701 5.42856ZM7.50558 8.57142C6.78112 8.57142 6.11844 9.04857 5.89438 9.70857L1.21987 9.71428C0.904267 9.71428 0.648438 9.97028 0.648438 10.2857C0.648438 10.6011 0.904267 10.8571 1.21987 10.8571L5.88592 10.8577C6.12301 11.5349 6.78112 12 7.50558 12C8.23004 12 8.85467 11.5469 9.12987 10.8577L10.3627 10.8571C10.6783 10.8571 10.9342 10.6011 10.9342 10.2857C10.9342 9.97028 10.6783 9.71428 10.3627 9.71428L9.12467 9.71091C8.87798 9.03491 8.23004 8.57142 7.50558 8.57142ZM7.50558 9.71428C7.82118 9.71428 8.07701 9.97028 8.07701 10.2857C8.07701 10.6011 7.82118 10.8571 7.50558 10.8571C7.18998 10.8571 6.93415 10.6011 6.93415 10.2857C6.93415 9.97028 7.18998 9.71428 7.50558 9.71428Z",fill:"white"})],-1)),PYe=[IYe],LYe={key:0,class:"productivity__footer"},BYe={class:"productivity__footer__offenses"},zYe=Iv(()=>t.createElementVNode("div",{class:"productivity__footer__offenses__title"}," ¿Debemos quitarle puntos a jugadores que hayan cometido las siguientes infracciones? ",-1)),OYe={class:"productivity__footer__offenses__table"},DYe=Iv(()=>t.createElementVNode("div",{class:"productivity__footer__offenses__table__row"},[t.createElementVNode("div"),t.createElementVNode("div",null,"Sí"),t.createElementVNode("div",null,"No")],-1)),NYe={class:"productivity__footer__offenses__table__row has-bottom-border has-padding"},FYe=Iv(()=>t.createElementVNode("div",{class:"productivity__footer__offenses__table__row__text"},"Faltas cometidas",-1)),RYe={class:"productivity__footer__offenses__table__row has-bottom-border has-padding"},VYe=Iv(()=>t.createElementVNode("div",{class:"productivity__footer__offenses__table__row__text"},"Tarjetas amarillas",-1)),jYe={class:"productivity__footer__offenses__table__row has-padding"},UYe=Iv(()=>t.createElementVNode("div",{class:"productivity__footer__offenses__table__row__text"},"Tarjetas rojas",-1)),GYe={__name:"TemplateProductivity",props:{componentWidth:{type:Number,default:0},productivityCategories:{type:Object,required:!0},numberOfCategoriesSelected:{type:Number,default:0},areMaxCategoriesReached:{type:Boolean,default:!1},areMinCategoriesReached:{type:Boolean,default:!1},isExpansionMode:{type:Boolean,default:!1},fontFamily:{type:String,default:"'Poppins-Regular'"},isFromTemplates:{type:Boolean,default:!1},isForTemplateForm:{type:Boolean,default:!1},areProductivityButtonsVisible:{type:Boolean,default:!0},areOffensesConditionsVisible:{type:Boolean,default:!0}},emits:["update:offensesConditions","click-parameters"],setup(e,{emit:i}){const s=e,B=t.ref(!1),U=t.ref(!1),m=t.ref(!1),g=t.ref({areYellowCardsSelected:!1,areRedCardsSelected:!1,areFoulsCommittedSelected:!1}),r=t.computed(()=>Array.isArray(s.productivityCategories)),y=t.computed(()=>({"--template-columns":s.isExpansionMode||r.value||!s.productivityCategories.offensive||!s.productivityCategories.defensive&&!s.productivityCategories.possession?"1fr":s.isForTemplateForm?"30% 1fr":"1fr 1fr","--flex-direction-defensive-possession":s.isForTemplateForm?"row-reverse":"column","--gap-defensive-possession":s.isForTemplateForm?"32px":"0","--width-block":s.isForTemplateForm?"unset":"100%"})),u=t.computed(()=>{var o;return(o=s.productivityCategories)==null?void 0:o.offensive.categories.reduce((c,l)=>(l.isSelected&&c++,c),0)}),a=t.computed(()=>{var o;return(o=s.productivityCategories)==null?void 0:o.defensive.categories.reduce((c,l)=>(l.isSelected&&c++,c),0)}),x=t.computed(()=>{var o;return(o=s.productivityCategories)==null?void 0:o.possession.categories.reduce((c,l)=>(l.isSelected&&c++,c),0)}),v=t.computed(()=>s.isFromTemplates||s.isForTemplateForm);t.watch(()=>s.productivityCategories,o=>{o.offensesConditions&&(g.value.areYellowCardsSelected=o.offensesConditions.areYellowCardsSelected,g.value.areRedCardsSelected=o.offensesConditions.areRedCardsSelected,g.value.areFoulsCommittedSelected=o.offensesConditions.areFoulsCommittedSelected)},{deep:!0,immediate:!0}),t.watch(g,o=>{i("update:offensesConditions",o)},{deep:!0,immediate:!0});function _(o,c){c.isSelected=o,setTimeout(()=>{c.priority=s.numberOfCategoriesSelected},10)}function p(o){i("click-parameters",o)}function n(o){o==="offensive"?B.value=!B.value:o==="defensive"?U.value=!U.value:o==="possession"&&(m.value=!m.value)}return(o,c)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["productivity",{"is-array":r.value}])},[t.createElementVNode("div",{class:"productivity__body",style:t.normalizeStyle(y.value)},[r.value?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(e.productivityCategories,l=>(t.openBlock(),t.createElementBlock("div",{key:l.id,class:"productivity__checkbox"},[t.createVNode(t.unref(Hl),{label:l.name,fontFamily:e.fontFamily,"model-value":l.isSelected,"avoid-interaction":e.areMinCategoriesReached&&l.isSelected,"avoid-to-check":e.areMaxCategoriesReached,"box-value":v.value?null:l.priority||0,"onUpdate:modelValue":h=>_(h,l)},null,8,["label","fontFamily","model-value","avoid-interaction","avoid-to-check","box-value","onUpdate:modelValue"])]))),128)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[e.productivityCategories.offensive?(t.openBlock(),t.createElementBlock("div",pYe,[t.createElementVNode("div",fYe,[t.createElementVNode("div",mYe,[t.createElementVNode("span",null,t.toDisplayString(e.productivityCategories.offensive.title),1),t.createElementVNode("span",gYe,"("+t.toDisplayString(u.value)+")",1)]),t.createElementVNode("div",{class:"productivity__body__title__expand-button",onClick:c[0]||(c[0]=l=>n("offensive"))},[t.withDirectives(t.createVNode(dg,{"is-expanded":B.value},null,8,["is-expanded"]),[[t.vShow,e.isExpansionMode]])])]),t.withDirectives(t.createElementVNode("div",yYe,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.productivityCategories.offensive.categories,l=>(t.openBlock(),t.createElementBlock("div",{key:l.id,class:"productivity__checkbox"},[t.createVNode(t.unref(Hl),{label:l.name,fontFamily:e.fontFamily,"model-value":l.isSelected,"avoid-to-check":e.areMaxCategoriesReached,"avoid-interaction":e.areMinCategoriesReached&&l.isSelected,"box-value":v.value?null:l.priority||0,"onUpdate:modelValue":h=>_(h,l)},null,8,["label","fontFamily","model-value","avoid-to-check","avoid-interaction","box-value","onUpdate:modelValue"])]))),128))],512),[[t.vShow,!e.isExpansionMode||B.value]])])):t.createCommentVNode("",!0),e.productivityCategories.defensive||e.productivityCategories.possession?(t.openBlock(),t.createElementBlock("div",vYe,[e.productivityCategories.defensive?(t.openBlock(),t.createElementBlock("div",bYe,[t.createElementVNode("div",xYe,[t.createElementVNode("div",_Ye,[t.createElementVNode("span",null,t.toDisplayString(e.productivityCategories.defensive.title),1),t.createElementVNode("span",wYe,"("+t.toDisplayString(a.value)+")",1)]),t.createElementVNode("div",{class:"productivity__body__title__expand-button",onClick:c[1]||(c[1]=l=>n("defensive"))},[t.withDirectives(t.createVNode(dg,{"is-expanded":U.value},null,8,["is-expanded"]),[[t.vShow,e.isExpansionMode]])])]),t.withDirectives(t.createElementVNode("div",kYe,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.productivityCategories.defensive.categories,l=>(t.openBlock(),t.createElementBlock("div",{key:l.id,class:"productivity__checkbox"},[t.createVNode(t.unref(Hl),{label:l.name,fontFamily:e.fontFamily,"model-value":l.isSelected,"avoid-to-check":e.areMaxCategoriesReached,"avoid-interaction":e.areMinCategoriesReached&&l.isSelected,"box-value":v.value?null:l.priority||0,"onUpdate:modelValue":h=>_(h,l)},null,8,["label","fontFamily","model-value","avoid-to-check","avoid-interaction","box-value","onUpdate:modelValue"])]))),128))],512),[[t.vShow,!e.isExpansionMode||U.value]])])):t.createCommentVNode("",!0),e.productivityCategories.possession?(t.openBlock(),t.createElementBlock("div",SYe,[t.createElementVNode("div",CYe,[t.createElementVNode("div",TYe,[t.createElementVNode("span",null,t.toDisplayString(e.productivityCategories.possession.title),1),t.createElementVNode("span",AYe,"("+t.toDisplayString(x.value)+")",1)]),t.createElementVNode("div",{class:"productivity__body__title__expand-button",onClick:c[2]||(c[2]=l=>n("possession"))},[t.withDirectives(t.createVNode(dg,{"is-expanded":m.value},null,8,["is-expanded"]),[[t.vShow,e.isExpansionMode]])])]),t.withDirectives(t.createElementVNode("div",EYe,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.productivityCategories.possession.categories,l=>(t.openBlock(),t.createElementBlock("div",{key:l.id,class:"productivity__checkbox"},[t.createVNode(t.unref(Hl),{label:l.name,fontFamily:e.fontFamily,"model-value":l.isSelected,"avoid-to-check":e.areMaxCategoriesReached,"avoid-interaction":e.areMinCategoriesReached&&l.isSelected,"box-value":v.value?null:l.priority||0,"onUpdate:modelValue":h=>_(h,l)},null,8,["label","fontFamily","model-value","avoid-to-check","avoid-interaction","box-value","onUpdate:modelValue"]),l.parameters&&e.areProductivityButtonsVisible?(t.openBlock(),t.createElementBlock("div",{key:0,class:"options",role:"button",onClick:h=>p(l)},PYe,8,MYe)):t.createCommentVNode("",!0)]))),128))],512),[[t.vShow,!e.isExpansionMode||m.value]])])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)],64))],4),!v.value&&e.productivityCategories.offensesConditions&&e.areOffensesConditionsVisible?(t.openBlock(),t.createElementBlock("div",LYe,[t.createElementVNode("div",BYe,[zYe,t.createElementVNode("div",OYe,[DYe,t.createElementVNode("div",NYe,[FYe,t.createElementVNode("div",null,[t.createVNode(t.unref(Hl),{"model-value":g.value.areFoulsCommittedSelected,"avoid-interaction":g.value.areFoulsCommittedSelected,"is-box-only":"","onUpdate:modelValue":c[3]||(c[3]=l=>g.value.areFoulsCommittedSelected=l)},null,8,["model-value","avoid-interaction"])]),t.createElementVNode("div",null,[t.createVNode(t.unref(Hl),{"model-value":!g.value.areFoulsCommittedSelected,"avoid-interaction":!g.value.areFoulsCommittedSelected,"is-box-only":"","onUpdate:modelValue":c[4]||(c[4]=l=>g.value.areFoulsCommittedSelected=!l)},null,8,["model-value","avoid-interaction"])])]),t.createElementVNode("div",RYe,[VYe,t.createElementVNode("div",null,[t.createVNode(t.unref(Hl),{"model-value":g.value.areYellowCardsSelected,"avoid-interaction":g.value.areYellowCardsSelected,"is-box-only":"","onUpdate:modelValue":c[5]||(c[5]=l=>g.value.areYellowCardsSelected=l)},null,8,["model-value","avoid-interaction"])]),t.createElementVNode("div",null,[t.createVNode(t.unref(Hl),{"model-value":!g.value.areYellowCardsSelected,"avoid-interaction":!g.value.areYellowCardsSelected,"is-box-only":"","onUpdate:modelValue":c[6]||(c[6]=l=>g.value.areYellowCardsSelected=!l)},null,8,["model-value","avoid-interaction"])])]),t.createElementVNode("div",jYe,[UYe,t.createElementVNode("div",null,[t.createVNode(t.unref(Hl),{"model-value":g.value.areRedCardsSelected,"avoid-interaction":g.value.areRedCardsSelected,"is-box-only":"","onUpdate:modelValue":c[7]||(c[7]=l=>g.value.areRedCardsSelected=l)},null,8,["model-value","avoid-interaction"])]),t.createElementVNode("div",null,[t.createVNode(t.unref(Hl),{"model-value":!g.value.areRedCardsSelected,"avoid-interaction":!g.value.areRedCardsSelected,"is-box-only":"","onUpdate:modelValue":c[8]||(c[8]=l=>g.value.areRedCardsSelected=!l)},null,8,["model-value","avoid-interaction"])])])])])])):t.createCommentVNode("",!0)],2))}},HYe=nc(GYe,[["__scopeId","data-v-9f942989"]]),S1=e=>(t.pushScopeId("data-v-e2ded643"),e=e(),t.popScopeId(),e),ZYe={class:"details__header"},XYe=S1(()=>t.createElementVNode("div",{class:"details__header__title"},"Jugando como",-1)),WYe={class:"details__header__checkbox"},YYe={class:"details__body"},qYe={class:"details__body__playing-as"},JYe=["onClick"],$Ye={class:"details__header"},KYe=S1(()=>t.createElementVNode("div",{class:"details__header__title"},[t.createTextVNode(" En: "),t.createElementVNode("span",{class:"details__header__title-sm"},"(Elige el lapso de tiempo)")],-1)),QYe={class:"details__header__checkbox"},eqe={class:"details__body"},tqe=S1(()=>t.createElementVNode("div",{class:"details__body__title"},"1er tiempo",-1)),aqe={class:"details__body__game-section"},rqe=["onClick"],nqe={class:"details__body"},iqe=S1(()=>t.createElementVNode("div",{class:"details__body__title"},"2do tiempo",-1)),oqe={class:"details__body__game-section"},sqe=["onClick"],lqe={key:0,class:"details_body"},cqe=S1(()=>t.createElementVNode("div",{class:"details__body__title"},"Tipo de estadística",-1)),dqe={class:"radios"},uqe={class:"radio-input"},hqe={class:"radio-input__radio"},pqe=S1(()=>t.createElementVNode("label",{for:"total"},"Totales",-1)),fqe={class:"radio-input"},mqe={class:"radio-input__radio"},gqe=S1(()=>t.createElementVNode("label",{for:"average"},"Promedio por partido",-1)),yqe={class:"radio-input"},vqe={class:"radio-input__radio"},bqe=S1(()=>t.createElementVNode("label",{for:"every"},"Cada 90 mins.",-1)),xqe={__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}]},statisticType:{type:String,default:"average"},isStatisticTypeVisible:{type:Boolean,default:!1},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"}},emits:["change-statistic-type"],setup(e,{emit:i}){const s=e;t.useCssVars(v=>({"1ae8ae49":e.buttonsBackgroundColor,"51b78caa":e.buttonsTextColor,"30a9d324":e.buttonsBorderWidth,"32d7cfea":e.buttonsBorderColor,"53697eaf":e.buttonsBackgroundColorActive,"6a565050":e.buttonsTextColorActive,34047714:e.buttonsBorderWidthActive,"10c9e21e":e.buttonsBorderColorActive}));const B=t.ref("");t.watch(()=>s.statisticType,v=>{B.value=v},{immediate:!0}),t.watch(()=>B.value,v=>{s.statisticType=v,i("change-statistic-type",v)});const U=t.computed(()=>s.playingAs.every(v=>v.isSelected)),m=t.computed(()=>s.gameSections.every(v=>v.isSelected)),g=t.computed(()=>s.gameSections.reduce((v,_)=>(_.value<=3?v.firstHalf.push(_):v.secondHalf.push(_),v),{firstHalf:[],secondHalf:[]})),r=t.computed(()=>({"--border-radius-first-button":`${s.buttonsBorderRadius} 0 0 ${s.buttonsBorderRadius}`,"--border-radius-last-button":`0 ${s.buttonsBorderRadius} ${s.buttonsBorderRadius} 0`}));function y(v){v?s.playingAs.forEach(_=>{_.isSelected=!0}):s.playingAs.forEach((_,p)=>{_.isSelected=p===0})}function u(v){s.playingAs.filter(_=>_.isSelected).length===1&&v.isSelected||(v.isSelected=!v.isSelected)}function a(v){s.gameSections.filter(_=>_.isSelected).length===1&&v.isSelected||(v.isSelected=!v.isSelected)}function x(v){v?s.gameSections.forEach(_=>{_.isSelected=!0}):s.gameSections.forEach((_,p)=>{_.isSelected=p===0})}return(v,_)=>(t.openBlock(),t.createElementBlock("div",{class:"details",style:t.normalizeStyle(r.value)},[t.withDirectives(t.createElementVNode("div",ZYe,[XYe,t.createElementVNode("div",WYe,[t.createVNode(t.unref(Hl),{label:"Todos",fontFamily:e.fontFamily,"model-value":U.value,"onUpdate:modelValue":y},null,8,["fontFamily","model-value"])])],512),[[t.vShow,!e.isPlayingAsHidden]]),t.withDirectives(t.createElementVNode("div",YYe,[t.createElementVNode("div",qYe,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.playingAs,(p,n)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${n}`,class:t.normalizeClass(["details__body__button",{active:p.isSelected}]),onClick:o=>u(p)},t.toDisplayString(p.name),11,JYe))),128))])],512),[[t.vShow,!e.isPlayingAsHidden]]),t.createElementVNode("div",$Ye,[KYe,t.createElementVNode("div",QYe,[t.createVNode(t.unref(Hl),{label:"Todos",fontFamily:e.fontFamily,"model-value":m.value,"onUpdate:modelValue":x},null,8,["fontFamily","model-value"])])]),t.createElementVNode("div",eqe,[tqe,t.createElementVNode("div",aqe,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(g.value.firstHalf,(p,n)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${n}`,class:t.normalizeClass(["details__body__button",{active:p.isSelected}]),onClick:o=>a(p)},t.toDisplayString(p.text),11,rqe))),128))])]),t.createElementVNode("div",nqe,[iqe,t.createElementVNode("div",oqe,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(g.value.secondHalf,(p,n)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${n}`,class:t.normalizeClass(["details__body__button",{active:p.isSelected}]),onClick:o=>a(p)},t.toDisplayString(p.text),11,sqe))),128))])]),e.isStatisticTypeVisible?(t.openBlock(),t.createElementBlock("div",lqe,[cqe,t.createElementVNode("div",dqe,[t.createElementVNode("div",uqe,[t.createElementVNode("div",hqe,[t.withDirectives(t.createElementVNode("input",{"onUpdate:modelValue":_[0]||(_[0]=p=>B.value=p),type:"radio",id:"total",value:"total",name:"statistic"},null,512),[[t.vModelRadio,B.value]]),pqe])]),t.createElementVNode("div",fqe,[t.createElementVNode("div",mqe,[t.withDirectives(t.createElementVNode("input",{"onUpdate:modelValue":_[1]||(_[1]=p=>B.value=p),type:"radio",id:"average",value:"average",name:"statistic"},null,512),[[t.vModelRadio,B.value]]),gqe])]),t.createElementVNode("div",yqe,[t.createElementVNode("div",vqe,[t.withDirectives(t.createElementVNode("input",{"onUpdate:modelValue":_[2]||(_[2]=p=>B.value=p),type:"radio",id:"every",value:"every90",name:"statistic"},null,512),[[t.vModelRadio,B.value]]),bqe])])])])):t.createCommentVNode("",!0)],4))}},_qe=nc(xqe,[["__scopeId","data-v-e2ded643"]]),wqe={class:"scroll-container"},kqe={__name:"ScrollContainer",props:{width:{type:String,default:"100%"},height:{type:String,default:"100%"}},setup(e){return t.useCssVars(i=>({fc5d629e:e.height,"8a9ad208":e.width})),(i,s)=>(t.openBlock(),t.createElementBlock("div",wqe,[t.renderSlot(i.$slots,"default",{},void 0,!0)]))}},Pv=nc(kqe,[["__scopeId","data-v-9f29c69f"]]),Sqe={class:"tournaments"},Cqe={key:0,class:"tournaments__tournament"},Tqe={__name:"TemplateTournaments",props:{tournamentsUrl:{type:String,default:""},tournaments:{type:Array,default:()=>[]},fontFamily:{type:String,default:"'Poppins-Regular'"},isOneTournamentOnly:{type:Boolean,default:!1},token:{type:String,default:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"}},emits:["change-filters-selected","update:filters"],setup(e,{emit:i}){const s=e,B=t.ref(!1),U=t.ref([]),m=t.computed(()=>g.value.filter(a=>a.isSelected).length),g=t.computed(()=>s.tournamentsUrl?U.value:s.tournaments);async function r(){if(s.tournamentsUrl)try{const a=await(await fetch(s.tournamentsUrl,{headers:{Authorization:s.token}})).json();U.value=a.map(x=>({...x.tournament,seasons:x.seasons,isSelected:!0}))}catch(a){console.error("Error fetching tournaments:",a)}}t.watch(()=>s.tournamentsUrl,()=>{r()},{immediate:!0}),t.watch(()=>s.token,()=>{r()}),t.watch(()=>g.value,a=>{const x=a.filter(v=>v.isSelected);B.value=x.length===a.length,i("change-filters-selected",x.length),i("update:filters",g.value)},{immediate:!0,deep:!0});function y(a){g.value.forEach((x,v)=>{x.isSelected=a||(v!==0?a:!0)})}function u(a,x){s.isOneTournamentOnly&&s.tournaments.forEach(v=>{v.isSelected=!1}),x.isSelected=a}return(a,x)=>(t.openBlock(),t.createElementBlock("div",Sqe,[t.createVNode(Pv,{height:"200px"},{default:t.withCtx(()=>[e.isOneTournamentOnly?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",Cqe,[t.createVNode(t.unref(Hl),{"model-value":B.value,label:"Todas las ligas",fontFamily:e.fontFamily,width:"100%","onUpdate:modelValue":y},null,8,["model-value","fontFamily"])])),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(g.value,v=>(t.openBlock(),t.createElementBlock("div",{key:v.id||v._id,class:"tournaments__tournament"},[t.createVNode(t.unref(Hl),{"model-value":v.isSelected,label:v.name,fontFamily:e.fontFamily,width:"100%","avoid-interaction":m.value===1&&v.isSelected,"onUpdate:modelValue":_=>u(_,v)},null,8,["model-value","label","fontFamily","avoid-interaction","onUpdate:modelValue"])]))),128))]),_:1})]))}},Aqe=nc(Tqe,[["__scopeId","data-v-15ddb449"]]),Jr={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",POSITIONS:"positions",YEARS:"years",NATIONALITIES:"nationalities",TEAMS:"teams",POSSESSION_VISUALISATIONS:"visualisations"},Eqe={key:0,class:"plays-golstats__placeholder"},Mqe=["onClick"],Iqe={key:0,class:"plays-golstats__item__value"},Pqe={class:"plays-golstats__item__text"},Lqe={class:"plays-golstats__item__svg"},Bqe={width:"10",height:"8",viewBox:"0 0 10 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},zqe=["fill"],Oqe={__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:i}){const s=e,B=t.computed(()=>({"--grid-template-columns":s.type===Jr.PLAYS_TYPES?"1fr min-content":"min-content 1fr min-content","--svg-width":`${s.svgWidth}px`,"--svg-height":`${s.svgHeight}px`}));t.watch(()=>s.categories,m=>{const g=m.filter(r=>r.isSelected);i("update:filters",g)},{immediate:!0,deep:!0});function U(m){m.isSelected||(s.categories.forEach(g=>{g.isSelected=!1}),m.isSelected=!0,s.type===Jr.GOLSTATS&&i("change-filters-selected",m.value))}return(m,g)=>(t.openBlock(),t.createElementBlock("div",{class:"plays-golstats",style:t.normalizeStyle(B.value)},[t.createVNode(Pv,{height:e.height},{default:t.withCtx(()=>[e.type===t.unref(Jr).PLAYS_TYPES?(t.openBlock(),t.createElementBlock("div",Eqe," Elige un tipo de jugada para filtrar: ")):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.categories,(r,y)=>(t.openBlock(),t.createElementBlock("div",{key:`k${y}`,class:"plays-golstats__item",onClick:u=>U(r)},[e.type===t.unref(Jr).GOLSTATS?(t.openBlock(),t.createElementBlock("div",Iqe,t.toDisplayString(r.value),1)):t.createCommentVNode("",!0),t.createElementVNode("div",Pqe,t.toDisplayString(r.name),1),t.createElementVNode("div",Lqe,[t.withDirectives((t.openBlock(),t.createElementBlock("svg",Bqe,[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,zqe)],512)),[[t.vShow,r.isSelected]])])],8,Mqe))),128))]),_:1},8,["height"])],4))}},VF=nc(Oqe,[["__scopeId","data-v-ef99052c"]]),Dqe=(e,i)=>{const s=e.__vccOpts||e;for(const[B,U]of i)s[B]=U;return s},uS={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 i=e.which?e.which:e.keyCode();!e.code.startsWith("Numpad")&&i>31&&(i<48||i>57)&&e.preventDefault()}}}},jF=()=>{t.useCssVars(e=>({"71e38669":e.textRightColor,d0c4b7ac:e.textRightFontSize,"101fb94d":e.textRightFontFamily}))},UF=uS.setup;uS.setup=UF?(e,i)=>(jF(),UF(e,i)):jF;const Nqe={class:"input-container"},Fqe=["type","placeholder","value"],Rqe={class:"right-text"};function Vqe(e,i,s,B,U,m){return t.openBlock(),t.createElementBlock("div",Nqe,[t.createElementVNode("input",{type:s.inputType,placeholder:s.placeholder,value:s.value,style:t.normalizeStyle(m.inputStyle),onKeydown:i[0]||(i[0]=(...g)=>m.onKeyDown&&m.onKeyDown(...g)),onInput:i[1]||(i[1]=(...g)=>m.updateInputValue&&m.updateInputValue(...g))},null,44,Fqe),t.createElementVNode("div",Rqe,t.toDisplayString(s.textRight),1)])}const jqe=Dqe(uS,[["render",Vqe],["__scopeId","data-v-76f92928"]]),Uqe=(e,i)=>{const s=e.__vccOpts||e;for(const[B,U]of i)s[B]=U;return s},hS={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))}}},GF=()=>{t.useCssVars(e=>({"9d01acb4":e.height,"14e95081":e.borderWidthBtn,"38fec285":e.borderType,34353510:e.borderColor,"20d20dc6":e.borderRadius,17130967:e.width,"4ccb7d36":e.backgroundColor,"5d1e86a2":e.cursorType,ce65d4a2:e.fontSize,fe4ac47a:e.fontStyle,f98e44dc:e.fontFamily,"93b87770":e.marginLeftStat,c7f7beba:e.fontSizeStat}))},HF=hS.setup;hS.setup=HF?(e,i)=>(GF(),HF(e,i)):GF;const Gqe=e=>(t.pushScopeId("data-v-f3ee6b2b"),e=e(),t.popScopeId(),e),Hqe=["src"],Zqe={key:1,class:"text"},Xqe=["src"],Wqe={class:"stats"},Yqe=Gqe(()=>t.createElementVNode("img",{class:"iconstats",src:"https://golstatsimages.blob.core.windows.net/todoelfut/playdes.png"},null,-1)),qqe={class:"numstats"},Jqe={class:"leyend"};function $qe(e,i,s,B,U,m){return t.openBlock(),t.createElementBlock("div",null,[s.type==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["button",U.status&&s.typeOnOff&&"button-active"]),style:t.normalizeStyle([m.customStyle,U.status&&s.typeOnOff&&m.customActive]),onClick:i[0]||(i[0]=(...g)=>m.btnClick&&m.btnClick(...g))},[s.icon&&s.iconPosition.toLowerCase()==="left"?(t.openBlock(),t.createElementBlock("img",{key:0,class:"icon",style:t.normalizeStyle({width:s.iconSize}),src:s.icon},null,12,Hqe)):t.createCommentVNode("",!0),s.textValue?(t.openBlock(),t.createElementBlock("div",Zqe,t.toDisplayString(s.textValue),1)):t.createCommentVNode("",!0),s.icon&&s.iconPosition.toLowerCase()==="right"?(t.openBlock(),t.createElementBlock("img",{key:2,class:"icon",style:t.normalizeStyle({width:s.iconSize}),src:s.icon},null,12,Xqe)):t.createCommentVNode("",!0)],6)):t.createCommentVNode("",!0),s.type==1?(t.openBlock(),t.createElementBlock("div",{key:1,class:"button-target",onClick:i[1]||(i[1]=(...g)=>m.btnClick&&m.btnClick(...g))},[t.createElementVNode("div",Wqe,[Yqe,t.createElementVNode("div",qqe,t.toDisplayString(s.textStat),1)]),t.createElementVNode("div",Jqe,t.toDisplayString(s.textCategory),1)])):t.createCommentVNode("",!0)])}const Kqe=Uqe(hS,[["render",$qe],["__scopeId","data-v-f3ee6b2b"]]),Qqe={class:"gsc-dropdown__main-container__item-selected"},eJe=["height","width"],tJe=["stroke"],aJe={key:1,width:"8",height:"4",viewBox:"0 0 8 4",fill:"none",xmlns:"http://www.w3.org/2000/svg"},rJe=["fill"],nJe={class:"gsc-dropdown__items-container"},iJe=["onClick"],oJe={key:0,class:"gsc-dropdown__items-footer"},C1={__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(i=>i in e)},listBackgroundColor:{type:String,default:"white"},hoverBackgroundColor:{type:String,default:"#f1f1f1"},listMarginTop:{type:String,default:"0"},listContainerPadding:{type:String,default:"0"},listItemPadding:{type:String,default:"10px 12px"},listItemMargin:{type:String,default:"0"},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},listItemBorderRadius:{type:String,default:"0"},listAlignment:{type:String,default:"left"},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},iconType:{type:Number,default:1,validator:function(e){return[1,2].includes(e)}}},emits:["input","click-ready","update:modelValue"],setup(e,{emit:i}){const s=e,B=t.ref({}),U=t.ref(null),m=t.ref(s.isMultipleOption?-1:0),g=t.ref(!1);t.watch(()=>s.items,(_,p)=>{if(!s.modelValue&&(!s.onlyFirstTime||!p||!p.length)&&_&&_.length){if(s.defaultItemByProp){const n=s.items.findIndex(o=>o[s.defaultItemByProp.propName]===s.defaultItemByProp.value);n!==-1?(m.value=n,B.value=_[n]):(m.value=0,B.value=_[0])}else B.value=_[s.defaultItemByIndex];i("input",B.value)}},{immediate:!0}),t.watch(()=>s.modelValue,_=>{if(_){const p=s.items.findIndex(n=>typeof _=="object"?JSON.stringify(n)===JSON.stringify(_):n===_);p!==-1&&(m.value=p,B.value=s.items[p],i("update:modelValue",B.value))}},{immediate:!0});const r=t.computed(()=>({height:s.height,width:s.width,backgroundColor:s.backgroundColor,borderRadius:`${s.borderRadius}px`,border:`${s.borderType} ${s.borderWidth}px ${s.borderColor}`,color:s.color,"--hover-background-color":s.hoverBackgroundColor,"--list-container-padding":s.listContainerPadding,"--list-item-padding":s.listItemPadding,"--list-item-margin":s.listItemMargin,"--list-background-color":s.listBackgroundColor,"--list-height":s.listHeight,"--list-item-border-radius":s.listItemBorderRadius,"--list-item-selected-color":s.listItemSelectedColor,"--list-item-selected-background-color":s.listItemSelectedBackgroundColor,"--list-item-color":s.listItemColor,"--list-border-radius":`${s.listBorderRadius}`,"--list-border-color":s.listBorderColor,"--list-width":s.isListSameWidth?s.width:"fit-content","--list-border-width":`${s.listBorderWidth}px`,"--list-margin-top":s.listMarginTop,"--list-left":s.listAlignment==="left"?"0":"auto","--list-right":s.listAlignment==="right"?"0":"auto","--footer-border":`${s.footerBorderWidth}px solid ${s.footerBorderColor}`,"--dropdown-opacity":s.isDisabled?"0.5":"1","--dropdown-cursor":s.isDisabled?"not-allowed":"pointer","--dropdown-font-size":s.fontSize?s.fontSize:"14px"})),y=t.computed(()=>({height:`${s.arrowHeight}px`,width:`${s.arrowWidth}px`}));function u(){s.isDisabled||(g.value=!g.value)}function a(_){U.value&&!U.value.contains(_.target)&&(g.value=!1)}function x(_,p){s.isMultipleOption?m.value=-1:(m.value=p,g.value=!1),B.value=_,i("input",B.value),i("update:modelValue",B.value)}function v(){g.value=!1,i("click-ready")}return t.onMounted(()=>{document.addEventListener("click",a)}),t.onBeforeMount(()=>{document.removeEventListener("click",a)}),(_,p)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"dropDown",ref:U,class:"gsc-dropdown",style:t.normalizeStyle(r.value)},[t.createElementVNode("div",{class:"gsc-dropdown__main-container",style:t.normalizeStyle({"padding-right":`${e.arrowWidth+8}px`}),onClick:u},[t.createElementVNode("div",Qqe,[t.renderSlot(_.$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)},[e.iconType===1?(t.openBlock(),t.createElementBlock("svg",{key:0,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,tJe)],8,eJe)):(t.openBlock(),t.createElementBlock("svg",aJe,[t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M4 2.62045L6.86193 0.167368C7.12228 -0.0557892 7.54439 -0.0557892 7.80474 0.167368C8.06509 0.390524 8.06509 0.752333 7.80474 0.97549L4.4714 3.83263C4.21105 4.05579 3.78895 4.05579 3.5286 3.83263L0.195262 0.97549C-0.0650874 0.752333 -0.0650874 0.390524 0.195262 0.167368C0.455612 -0.0557892 0.877722 -0.0557892 1.13807 0.167368L4 2.62045Z",fill:e.arrowColor},null,8,rJe)]))],6)],4),t.createVNode(t.Transition,null,{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("div",nJe,[t.createElementVNode("div",null,[t.createElementVNode("div",{class:"gsc-dropdown__items",style:t.normalizeStyle({"margin-top":`${s.borderWidth}px`})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(n,o)=>(t.openBlock(),t.createElementBlock("div",null,[t.withDirectives((t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["gsc-dropdown__items__item",{selected:o===m.value}]),key:o,onClick:c=>x(n,o)},[t.renderSlot(_.$slots,"availableItem",{item:n})],10,iJe)),[[t.vShow,!n.isHidden]])]))),256))],4),e.isFooterVisible?(t.openBlock(),t.createElementBlock("div",oJe,[t.createVNode(t.unref(Kqe),{"text-value":"Listo","border-color":"#cbee6b","font-size":"12px",width:"72px",height:"22px","border-radius":"62px","border-width":.8,onClick:v})])):t.createCommentVNode("",!0)])],512),[[t.vShow,g.value]])]),_:3})],4))}},Pb={borderType:"solid",listBackgroundColor:"#2E3B46",listBorderColor:"rgba(255, 255, 255, 0.2)",listBorderRadius:"5px",height:"38px",borderWidth:.8,borderColor:"rgba(255, 255, 255, 0.2)",backgroundColor:"#2E3B46",color:"white",listItemColor:"white",listItemSelectedBackgroundColor:"#2E3B46",arrowColor:"#fff",width:"100%",listHeight:"200px",isListSameWidth:!0,isFooterVisible:!0,hoverBackgroundColor:"#2E3B46",iconType:2},ug=e=>(t.pushScopeId("data-v-7a29901a"),e=e(),t.popScopeId(),e),sJe={class:"universe"},lJe=ug(()=>t.createElementVNode("div",{class:"universe__sub-header"},"Tipo de estádisticas:",-1)),cJe={class:"radios"},dJe={class:"radio-input"},uJe={class:"radio-input__radio"},hJe=ug(()=>t.createElementVNode("label",{for:"total"},"Totales",-1)),pJe={class:"radio-input"},fJe={class:"radio-input__radio"},mJe=ug(()=>t.createElementVNode("label",{for:"every"},"Cada 90 mins.",-1)),gJe=ug(()=>t.createElementVNode("div",{class:"universe__sub-header"},"Escribe los minutos jugados",-1)),yJe=ug(()=>t.createElementVNode("div",{class:"universe__label"},"Igual o mayor que:",-1)),vJe={class:"universe__inputs"},bJe={class:"universe__inputs__input"},xJe=ug(()=>t.createElementVNode("div",{class:"universe__sub-header"},"Selecciona el lapso de tiempo",-1)),_Je=ug(()=>t.createElementVNode("div",{class:"universe__label"},"Considerando los últimos:",-1)),wJe={class:"universe__dropdown"},kJe={class:"selected-item"},SJe={__name:"TemplateUniverse",props:{universeFilters:{type:Object,default:()=>({minutesPlayed:360,percentMinutesPlayed:0,lastMonths:Array.from({length:24},(e,i)=>i+1),statistics:{totals:!0,averagePerGame:!1,averagePerMinute:!1},statisticsRadios:"total"})},fontFamily:{type:String,default:"'Poppins-Regular'"},defaultMonthIndex:{type:Number,default:5}},emits:["update:universeFilters"],setup(e,{expose:i,emit:s}){const B=e,U=t.ref(!1),m=t.ref(!1),g=t.ref(!1),r=t.ref({statistics:{}});t.watch(()=>B.universeFilters,x=>{r.value={...x,lastMonths:x.selectedMonth?x.selectedMonth:x.lastMonths[B.defaultMonthIndex],statistics:{...x.statistics},statisticsRadios:x.statisticsRadios||"total"}},{deep:!0,immediate:!0}),t.watch(()=>r,x=>{U.value=!x.value.minutesPlayed||Number(x.value.minutesPlayed)===0,m.value=!x.value.percentMinutesPlayed||Number(x.value.percentMinutesPlayed)===0,g.value=!x.value.lastMonths||Number(x.value.lastMonths)===0,s("update:universeFilters",x)},{deep:!0,immediate:!0});function y(x){x&&x<1&&(x=1),r.value.minutesPlayed=x}function u(){r.value={...B.universeFilters,lastMonths:B.universeFilters.lastMonths[B.defaultMonthIndex],statistics:{...B.universeFilters.statistics}}}function a(x){r.value.lastMonths=x}return i({resetFilters:u}),(x,v)=>(t.openBlock(),t.createElementBlock("div",sJe,[lJe,t.createElementVNode("div",cJe,[t.createElementVNode("div",dJe,[t.createElementVNode("div",uJe,[t.withDirectives(t.createElementVNode("input",{"onUpdate:modelValue":v[0]||(v[0]=_=>r.value.statisticsRadios=_),type:"radio",id:"total",value:"total",name:"statistics"},null,512),[[t.vModelRadio,r.value.statisticsRadios]]),hJe])]),t.createElementVNode("div",pJe,[t.createElementVNode("div",fJe,[t.withDirectives(t.createElementVNode("input",{"onUpdate:modelValue":v[1]||(v[1]=_=>r.value.statisticsRadios=_),type:"radio",id:"every",value:"every90",name:"statistics"},null,512),[[t.vModelRadio,r.value.statisticsRadios]]),mJe])])]),gJe,yJe,t.createElementVNode("div",vJe,[t.createElementVNode("div",bJe,[t.createVNode(t.unref(jqe),{value:r.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"])])]),xJe,_Je,t.createElementVNode("div",wJe,[t.createVNode(t.unref(C1),t.mergeProps(t.unref(Pb),{items:e.universeFilters.lastMonths,"model-value":r.value.lastMonths,onInput:a}),{default:t.withCtx(({selectedItem:_})=>[t.createElementVNode("div",kJe,t.toDisplayString(_)+" "+t.toDisplayString(_===1?"mes":"meses"),1)]),availableItem:t.withCtx(({item:_})=>[t.createElementVNode("div",null,t.toDisplayString(_)+" "+t.toDisplayString(_===1?"mes":"meses"),1)]),_:1},16,["items","model-value"])]),t.createCommentVNode("",!0),t.createCommentVNode("",!0)]))}},CJe=nc(SJe,[["__scopeId","data-v-7a29901a"]]),ZF=(e,i)=>{const s=e.__vccOpts||e;for(const[B,U]of i)s[B]=U;return s},TJe={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||[],i=this.min===void 0?0:this.min,s=e.length?e.length-1:100,B=this.max===void 0?s:this.max,U=this.minValue===void 0?25:this.minValue;e.length&&this.minValue===void 0&&(U=1);let m=this.maxValue||75;if(e.length&&this.maxValue===void 0&&(m=e.length-2),B<=i)throw new Error("Invalid props min or max");if(U>m)throw new Error("Invalid props minValue or maxValue");let g=this.rangeMargin===void 0?this.step:this.rangeMargin,r=g%this.step;return r&&(g=g+this.step-r),{valueMin:U<i?i:U,valueMax:m>B?B:m,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 i=parseFloat(e.target.value);i<=this.valueMax-this.rangeMarginValue&&i>=this.minimum?this.valueMin=i:e.target.value=this.valueMin},onInputMaxChange(e){let i=parseFloat(e.target.value);i>=this.valueMin+this.rangeMarginValue&&i<=this.maximum?this.valueMax=i: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 i=e.clientX;e.type==="touchmove"&&(i=e.touches[0].clientX);let s=(i-this.startX)/this.barBox.width,B=this.barValue+(this.maximum-this.minimum)*s,U=B%this.step;B-=U,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 i=e.clientX;e.type==="touchmove"&&(i=e.touches[0].clientX);let s=(i-this.startX)/this.barBox.width,B=this.barValue+(this.maximum-this.minimum)*s,U=B%this.step;B-=U,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 i=this.step;e.deltaY<0&&(i=-i),e.shiftKey&&e.ctrlKey?this.valueMin+i>=this.minimum&&this.valueMax+i<=this.maximum&&(this.valueMin=this.valueMin+i,this.valueMax=this.valueMax+i):e.ctrlKey?(i=this.valueMax+i,i<this.valueMin+this.rangeMarginValue?i=this.valueMin+this.rangeMarginValue:i>this.maximum&&(i=this.maximum),this.valueMax=i):e.shiftKey&&(i=this.valueMin+i,i<this.minimum?i=this.minimum:i>this.valueMax-this.rangeMarginValue&&(i=this.valueMax-this.rangeMarginValue),this.valueMin=i)},triggerInput(){let e=0;this.step.toString().includes(".")&&(e=2);let i={min:this.minimum,max:this.maximum,minValue:parseFloat(this.valueMin.toFixed(e)),maxValue:parseFloat(this.valueMax.toFixed(e))};this.$emit("input",i)}},computed:{minimum(){return this.min===void 0?0:this.min},maximum(){let e=this.labels||[],i=e.length?e.length-1:100;return this.max===void 0?i: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(){}},AJe={class:"bar"},EJe=["min","max","step","value"],MJe={class:"caption"},IJe={class:"min-caption"},PJe={class:"bar-inner"},LJe=["min","max","step","value"],BJe={class:"caption"},zJe={class:"max-caption"},OJe={key:0,class:"ruler"},DJe={key:1,class:"sub-ruler"},NJe={key:2,class:"labels"};function FJe(e,i,s,B,U,m){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass([s.baseClassName,U.rangeMarginValue===0?"zero-ranage-margin":""]),onMousewheel:i[10]||(i[10]=t.withModifiers((...g)=>m.onMouseWheel&&m.onMouseWheel(...g),["prevent","stop"]))},[t.createElementVNode("div",AJe,[t.createElementVNode("div",{class:"bar-left",style:t.normalizeStyle({width:m.barMin+"%"}),onClick:i[0]||(i[0]=(...g)=>m.onBarLeftClick&&m.onBarLeftClick(...g))},null,4),t.createElementVNode("input",{class:"input-type-range input-type-range-min",type:"range",min:m.minimum,max:m.maximum,step:s.step,value:U.valueMin,onInput:i[1]||(i[1]=t.withModifiers((...g)=>m.onInputMinChange&&m.onInputMinChange(...g),["stop","prevent"]))},null,40,EJe),t.createElementVNode("div",{class:"thumb thumb-left",onMousedown:i[2]||(i[2]=(...g)=>m.onLeftThumbMousedown&&m.onLeftThumbMousedown(...g)),onTouchstart:i[3]||(i[3]=(...g)=>m.onLeftThumbMousedown&&m.onLeftThumbMousedown(...g))},[t.createElementVNode("div",MJe,[t.createElementVNode("span",IJe,t.toDisplayString(s.minCaption||m.barMinVal),1)])],32),t.createElementVNode("div",PJe,[t.createElementVNode("div",{class:"bar-inner-left",onClick:i[4]||(i[4]=(...g)=>m.onInnerBarLeftClick&&m.onInnerBarLeftClick(...g))}),t.createElementVNode("div",{class:"bar-inner-right",onClick:i[5]||(i[5]=(...g)=>m.onInnerBarRightClick&&m.onInnerBarRightClick(...g))})]),t.createElementVNode("input",{class:"input-type-range input-type-range-max",type:"range",min:m.minimum,max:m.maximum,step:s.step,value:U.valueMax,onInput:i[6]||(i[6]=t.withModifiers((...g)=>m.onInputMaxChange&&m.onInputMaxChange(...g),["stop","prevent"]))},null,40,LJe),t.createElementVNode("div",{class:"thumb thumb-right",onMousedown:i[7]||(i[7]=(...g)=>m.onRightThumbMousedown&&m.onRightThumbMousedown(...g)),onTouchstart:i[8]||(i[8]=(...g)=>m.onRightThumbMousedown&&m.onRightThumbMousedown(...g))},[t.createElementVNode("div",BJe,[t.createElementVNode("span",zJe,t.toDisplayString(s.maxCaption||m.barMaxVal),1)])],32),t.createElementVNode("div",{class:"bar-right",style:t.normalizeStyle({width:m.barMax+"%"}),onClick:i[9]||(i[9]=(...g)=>m.onBarRightClick&&m.onBarRightClick(...g))},null,4)]),s.ruler?(t.openBlock(),t.createElementBlock("div",OJe,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(m.stepCount,g=>(t.openBlock(),t.createElementBlock("div",{key:g,class:"ruler-rule"}))),128))])):t.createCommentVNode("",!0),m.subStepCount?(t.openBlock(),t.createElementBlock("div",DJe,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(m.subStepCount,g=>(t.openBlock(),t.createElementBlock("div",{key:g,class:"ruler-sub-rule"}))),128))])):t.createCommentVNode("",!0),s.label?(t.openBlock(),t.createElementBlock("div",NJe,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(m.scaleLabels,g=>(t.openBlock(),t.createElementBlock("div",{class:"label",key:g},t.toDisplayString(g),1))),128))])):t.createCommentVNode("",!0)],34)}const RJe=ZF(TJe,[["render",FJe]]),pS={components:{MultiRangeSlider:RJe},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)}}},XF=()=>{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}))},WF=pS.setup;pS.setup=WF?(e,i)=>(XF(),WF(e,i)):XF;const VJe={class:"center"},jJe={class:"bar-ref"},UJe={class:"bar-ref-element-left"},GJe={class:"bar-ref-element-right"};function HJe(e,i,s,B,U,m){const g=t.resolveComponent("MultiRangeSlider");return t.openBlock(),t.createElementBlock("div",{class:"custom-range-slider",style:t.normalizeStyle(m.customStyle)},[t.createElementVNode("div",VJe,[t.createElementVNode("div",jJe,[t.createElementVNode("div",UJe,[t.createElementVNode("div",{class:"text",style:t.normalizeStyle(m.customStyleText)},"De:",4),t.createElementVNode("div",{class:"value",style:t.normalizeStyle(m.customStyleValue)},t.toDisplayString(U.minValueLocal)+t.toDisplayString(s.minSuffix),5)]),t.createElementVNode("div",GJe,[t.createElementVNode("div",{class:"text",style:t.normalizeStyle(m.customStyleText)},"A:",4),t.createElementVNode("div",{class:"value",style:t.normalizeStyle(m.customStyleValue)},t.toDisplayString(U.maxValueLocal)+t.toDisplayString(s.maxSuffix),5)])]),t.createVNode(g,{baseClassName:"multi-range-slider",min:s.minLimit,max:s.maxLimit,step:1,ruler:!1,label:!1,"min-value":U.minValueLocal,"max-value":U.maxValueLocal,"range-margin":0,onInput:m.onInput},null,8,["min","max","min-value","max-value","onInput"])])],4)}const YF=ZF(pS,[["render",HJe]]),ZJe={class:"template-distance"},XJe={__name:"TemplateDistance",props:{distance:{type:Object,default:()=>({minLimit:5,maxLimit:30,minValue:5,maxValue:30})}},emits:["update:distanceFilters"],setup(e,{emit:i}){const s=e,B=t.ref({minValue:0,maxValue:0,minLimit:0,maxLimit:0});t.watch(()=>B.value,m=>{i("update:distanceFilters",m)},{deep:!0}),t.watch(()=>s.distance,m=>{B.value.minValue=m.minValue,B.value.maxValue=m.maxValue,B.value.minLimit=m.minLimit,B.value.maxLimit=m.maxLimit},{immediate:!0,deep:!0});function U(m){B.value.minValue=m.minValue,B.value.maxValue=m.maxValue}return(m,g)=>(t.openBlock(),t.createElementBlock("div",ZJe,[t.createVNode(t.unref(YF),{"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:U},null,8,["min-limit","max-limit","min-value","max-value"])]))}},WJe=e=>(t.pushScopeId("data-v-aa104b3c"),e=e(),t.popScopeId(),e),YJe={class:"template-games"},qJe={class:"template-games__header"},JJe=WJe(()=>t.createElementVNode("div",{class:"template-games__header__title"},"Partidos jugados:",-1)),$Je={class:"template-games__header__all-games"},KJe={__name:"TemplateGames",props:{gamesFilters:{type:Array,default:()=>[]},providerId:{type:Number,default:0}},emits:["update:gamesFilters"],setup(e,{emit:i}){const s=e,B=t.ref(!1),U=t.computed(()=>s.gamesFilters.filter(g=>g.isSelected).length);t.watch(U,g=>{B.value=g===s.gamesFilters.length,i("update:gamesFilters",s.gamesFilters)},{immediate:!0});const m=g=>{g?s.gamesFilters.forEach(r=>{r.isSelected=g}):s.gamesFilters.forEach((r,y)=>{r.isSelected=y===0}),B.value=g};return(g,r)=>(t.openBlock(),t.createElementBlock("div",YJe,[t.createElementVNode("div",qJe,[JJe,t.createElementVNode("div",$Je,[t.createVNode(t.unref(Hl),{modelValue:B.value,label:"Todos","box-position":"right","font-family":"Roboto-Regular, sans-serif","label-font-size":"12px","onUpdate:modelValue":m},null,8,["modelValue"])])]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.gamesFilters,(y,u)=>(t.openBlock(),t.createElementBlock("div",{key:u,class:"template-games__game"},[t.createVNode(t.unref(Hl),{modelValue:y.isSelected,"onUpdate:modelValue":a=>y.isSelected=a,label:y.label,"teams-ids":y.teamsIds,provider:e.providerId,"avoid-interaction":U.value===1&&y.isSelected},null,8,["modelValue","onUpdate:modelValue","label","teams-ids","provider","avoid-interaction"])]))),128))]))}},QJe=nc(KJe,[["__scopeId","data-v-aa104b3c"]]),e$e=(e,i)=>{const s=e.__vccOpts||e;for(const[B,U]of i)s[B]=U;return s},fS={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))}}},qF=()=>{t.useCssVars(e=>({"9d01acb4":e.height,"14e95081":e.borderWidthBtn,"38fec285":e.borderType,34353510:e.borderColor,"20d20dc6":e.borderRadius,17130967:e.width,"4ccb7d36":e.backgroundColor,"5d1e86a2":e.cursorType,ce65d4a2:e.fontSize,fe4ac47a:e.fontStyle,f98e44dc:e.fontFamily,"93b87770":e.marginLeftStat,c7f7beba:e.fontSizeStat}))},JF=fS.setup;fS.setup=JF?(e,i)=>(qF(),JF(e,i)):qF;const t$e=e=>(t.pushScopeId("data-v-f3ee6b2b"),e=e(),t.popScopeId(),e),a$e=["src"],r$e={key:1,class:"text"},n$e=["src"],i$e={class:"stats"},o$e=t$e(()=>t.createElementVNode("img",{class:"iconstats",src:"https://golstatsimages.blob.core.windows.net/todoelfut/playdes.png"},null,-1)),s$e={class:"numstats"},l$e={class:"leyend"};function c$e(e,i,s,B,U,m){return t.openBlock(),t.createElementBlock("div",null,[s.type==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["button",U.status&&s.typeOnOff&&"button-active"]),style:t.normalizeStyle([m.customStyle,U.status&&s.typeOnOff&&m.customActive]),onClick:i[0]||(i[0]=(...g)=>m.btnClick&&m.btnClick(...g))},[s.icon&&s.iconPosition.toLowerCase()==="left"?(t.openBlock(),t.createElementBlock("img",{key:0,class:"icon",style:t.normalizeStyle({width:s.iconSize}),src:s.icon},null,12,a$e)):t.createCommentVNode("",!0),s.textValue?(t.openBlock(),t.createElementBlock("div",r$e,t.toDisplayString(s.textValue),1)):t.createCommentVNode("",!0),s.icon&&s.iconPosition.toLowerCase()==="right"?(t.openBlock(),t.createElementBlock("img",{key:2,class:"icon",style:t.normalizeStyle({width:s.iconSize}),src:s.icon},null,12,n$e)):t.createCommentVNode("",!0)],6)):t.createCommentVNode("",!0),s.type==1?(t.openBlock(),t.createElementBlock("div",{key:1,class:"button-target",onClick:i[1]||(i[1]=(...g)=>m.btnClick&&m.btnClick(...g))},[t.createElementVNode("div",i$e,[o$e,t.createElementVNode("div",s$e,t.toDisplayString(s.textStat),1)]),t.createElementVNode("div",l$e,t.toDisplayString(s.textCategory),1)])):t.createCommentVNode("",!0)])}const Y5=e$e(fS,[["render",c$e],["__scopeId","data-v-f3ee6b2b"]]),d$e=(e,i)=>{const s=e.__vccOpts||e;for(const[B,U]of i)s[B]=U;return s},mS={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))}}},$F=()=>{t.useCssVars(e=>({"9d01acb4":e.height,"14e95081":e.borderWidthBtn,"38fec285":e.borderType,34353510:e.borderColor,"20d20dc6":e.borderRadius,17130967:e.width,"4ccb7d36":e.backgroundColor,"5d1e86a2":e.cursorType,ce65d4a2:e.fontSize,fe4ac47a:e.fontStyle,f98e44dc:e.fontFamily,"93b87770":e.marginLeftStat,c7f7beba:e.fontSizeStat}))},KF=mS.setup;mS.setup=KF?(e,i)=>($F(),KF(e,i)):$F;const u$e=e=>(t.pushScopeId("data-v-f3ee6b2b"),e=e(),t.popScopeId(),e),h$e=["src"],p$e={key:1,class:"text"},f$e=["src"],m$e={class:"stats"},g$e=u$e(()=>t.createElementVNode("img",{class:"iconstats",src:"https://golstatsimages.blob.core.windows.net/todoelfut/playdes.png"},null,-1)),y$e={class:"numstats"},v$e={class:"leyend"};function b$e(e,i,s,B,U,m){return t.openBlock(),t.createElementBlock("div",null,[s.type==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["button",U.status&&s.typeOnOff&&"button-active"]),style:t.normalizeStyle([m.customStyle,U.status&&s.typeOnOff&&m.customActive]),onClick:i[0]||(i[0]=(...g)=>m.btnClick&&m.btnClick(...g))},[s.icon&&s.iconPosition.toLowerCase()==="left"?(t.openBlock(),t.createElementBlock("img",{key:0,class:"icon",style:t.normalizeStyle({width:s.iconSize}),src:s.icon},null,12,h$e)):t.createCommentVNode("",!0),s.textValue?(t.openBlock(),t.createElementBlock("div",p$e,t.toDisplayString(s.textValue),1)):t.createCommentVNode("",!0),s.icon&&s.iconPosition.toLowerCase()==="right"?(t.openBlock(),t.createElementBlock("img",{key:2,class:"icon",style:t.normalizeStyle({width:s.iconSize}),src:s.icon},null,12,f$e)):t.createCommentVNode("",!0)],6)):t.createCommentVNode("",!0),s.type==1?(t.openBlock(),t.createElementBlock("div",{key:1,class:"button-target",onClick:i[1]||(i[1]=(...g)=>m.btnClick&&m.btnClick(...g))},[t.createElementVNode("div",m$e,[g$e,t.createElementVNode("div",y$e,t.toDisplayString(s.textStat),1)]),t.createElementVNode("div",v$e,t.toDisplayString(s.textCategory),1)])):t.createCommentVNode("",!0)])}const x$e=d$e(mS,[["render",b$e],["__scopeId","data-v-f3ee6b2b"]]),_$e=(e,i)=>{const s=e.__vccOpts||e;for(const[B,U]of i)s[B]=U;return s},w$e={key:1},k$e={width:"10",height:"8",viewBox:"0 0 10 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},S$e=["fill"],C$e={key:0,class:"checkbox__teams"},T$e={class:"checkbox__teams__logo"},A$e=["src"],E$e={class:"checkbox__teams__logo"},M$e=["src"],I$e={__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:i}){const s=e;t.useCssVars(u=>({"7bd9d47b":e.width,"34dc7ddc":e.height}));const B=t.ref(!1),U=t.computed(()=>{const u={color:s.boxValueColor,"font-family":s.fontFamily,height:s.boxWidthAndHeight,width:s.boxWidthAndHeight,minWidth:s.boxWidthAndHeight,"border-radius":s.boxBorderRadius,"margin-top":s.boxMarginTop};return B.value?(u["background-color"]=s.boxBackgroundColor,u.border=`solid ${s.boxBorderWidth} ${s.boxBackgroundColor}`):u.border=`solid ${s.boxBorderWidth} ${s.boxBorderColor}`,u}),m=t.computed(()=>({"font-family":s.boxValueFontFamily,"font-size":s.boxValueFontSize,color:s.boxValueColor,"line-height":1})),g=t.computed(()=>{const u={color:s.labelColor,"font-family":s.fontFamily,"font-size":s.labelFontSize,"white-space":s.labelWhiteSpace,"text-align":s.boxPosition==="top"||s.boxPosition==="bottom"?"center":s.boxPosition};return(s.boxPosition==="left"||s.boxPosition==="right")&&(u[`margin-${s.boxPosition}`]=s.isBoxOnly?"0":s.teamsIds?"8px":"10px"),u});t.watch(()=>s.modelValue,u=>{u!==B.value&&(B.value=u)},{immediate:!0});function r(){s.avoidInteraction||!B.value&&s.avoidToCheck||(B.value=!B.value,i("update:modelValue",B.value))}function y(u){return`${{}.TEAM_LOGOS_URL||"https://golstatsimages.blob.core.windows.net/teams-80/"}${u}.png`}return(u,a)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["checkbox",`box-${e.boxPosition}`]),onClick:r},[t.createElementVNode("div",{class:"checkbox__box",style:t.normalizeStyle(U.value)},[B.value?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[s.boxValue?(t.openBlock(),t.createElementBlock("div",{key:0,class:"checkbox__box__value",style:t.normalizeStyle(m.value)},t.toDisplayString(e.boxValue),5)):(t.openBlock(),t.createElementBlock("div",w$e,[(t.openBlock(),t.createElementBlock("svg",k$e,[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,S$e)]))]))],64)):t.createCommentVNode("",!0)],4),e.teamsIds&&e.teamsIds.length?(t.openBlock(),t.createElementBlock("div",C$e,[t.createElementVNode("div",T$e,[t.createElementVNode("img",{src:y(e.teamsIds[0]),alt:""},null,8,A$e)]),t.createElementVNode("div",E$e,[t.createElementVNode("img",{src:y(e.teamsIds[1]),alt:""},null,8,M$e)])])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"checkbox__label",style:t.normalizeStyle(g.value)},t.toDisplayString(e.label),5)],2))}},P$e=_$e(I$e,[["__scopeId","data-v-b6f124d8"]]),L$e=(e,i)=>{const s=e.__vccOpts||e;for(const[B,U]of i)s[B]=U;return s},gS={components:{GSCButton:x$e,GSCCheckbox:P$e},data(){return{update:0,all:!1,refreshBtn14:0,refreshBtn24:0,refreshBtn34:0,refreshBtn44:0,sectors:Array.from({length:16},(e,i)=>({sector:i+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 i=e.sort();JSON.stringify(i)!==JSON.stringify(this.lastUpdatedValue)&&(this.lastUpdatedValue=i,this.sectors.forEach((s,B)=>{s.active=e.includes(B+1),this.validateField(B)}),this.$emit("update:modelValue",e))}},sectors:{handler(e){var i=[];for(let s=0;s<e.length;s++)e[s].active&&i.push(s+1);this.$emit("update:modelValue",i)},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 i=0;i<this.sectors.length;i++)this.sectors[i].active=!0,this.validateField(i);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 i=0;i<this.sectors.length;i++)this.sectors[i].active=!1,this.validateField(i),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 i=0;this.sectors[e].active=!this.sectors[e].active;for(let s=0;s<this.sectors.length;s++)this.sectors[s].active&&(i+=1);i==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 i=0;for(let s=0;s<this.sectors.length;s++)this.sectors[s].active&&(i+=1);i==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,i==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 i=0;for(let s=0;s<this.sectors.length;s++)this.sectors[s].active&&(i+=1);i==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,i==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 i=0;for(let s=0;s<this.sectors.length;s++)this.sectors[s].active&&(i+=1);i==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,i==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 i=0;for(let s=0;s<this.sectors.length;s++)this.sectors[s].active&&(i+=1);i==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,i==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)}}},QF=()=>{t.useCssVars(e=>({"4fe806fe":e.widthContainer,"91de7c52":e.heightContainer,"266afcdc":e.backgroundColor,"2b853536":e.titleFontSize,"986b6446":e.widthFieldGrid,"1af308b6":e.heightFieldGrid}))},eR=gS.setup;gS.setup=eR?(e,i)=>(QF(),eR(e,i)):QF;const B$e={class:"gsc-field"},z$e={class:"gsc-field__title-checked"},O$e={class:"gsc-field__title-checked__title"},D$e={class:"gsc-field__container-field"},N$e={class:"gsc-field__container-field__field"},F$e={width:"100%",height:"100%",fill:"#2e3b46",xmlns:"http://www.w3.org/2000/svg"},R$e=["stroke"],V$e=["stroke","stroke-width"],j$e=["stroke","stroke-width"],U$e=["stroke-width","stroke"],G$e=["fill","fill-opacity","stroke","stroke-width"],H$e=["fill","fill-opacity","stroke","stroke-width"],Z$e=["fill","fill-opacity","stroke","stroke-width"],X$e=["fill","fill-opacity","stroke","stroke-width"],W$e=["fill","fill-opacity","stroke","stroke-width"],Y$e=["fill","fill-opacity","stroke","stroke-width"],q$e=["fill","fill-opacity","stroke","stroke-width"],J$e=["fill","fill-opacity","stroke","stroke-width"],$$e=["fill","fill-opacity","stroke","stroke-width"],K$e=["fill","fill-opacity","stroke","stroke-width"],Q$e=["fill","fill-opacity","stroke","stroke-width"],eKe=["fill","fill-opacity","stroke","stroke-width"],tKe=["fill","fill-opacity","stroke","stroke-width"],aKe=["fill","fill-opacity","stroke","stroke-width"],rKe=["fill","fill-opacity","stroke","stroke-width"],nKe=["fill","fill-opacity","stroke","stroke-width"],iKe={class:"gsc-field__container-field__bar-buttons"};function oKe(e,i,s,B,U,m){const g=t.resolveComponent("GSCCheckbox"),r=t.resolveComponent("GSCButton");return t.openBlock(),t.createElementBlock("div",B$e,[t.createElementVNode("div",z$e,[t.createElementVNode("div",O$e,t.toDisplayString(s.title),1),t.createElementVNode("div",{class:"gsc-field__title-checked__check-cont",style:t.normalizeStyle(s.widthField>=350?"min-width: 123px":"")},[(t.openBlock(),t.createBlock(g,{label:s.widthField<350?"Todas":"Todas las zonas","font-family":"Poppins-Regular","box-value-font-family":"Poppins-Regular","box-position":"right","label-font-size":s.titleFontSize,"label-white-space":"nowrap","box-margin-top":"0.4em",value:U.all,key:U.update,"model-value":U.all,"onUpdate:modelValue":m.clickAll},null,8,["label","label-font-size","value","model-value","onUpdate:modelValue"]))],4)]),t.createElementVNode("div",D$e,[t.createElementVNode("div",N$e,[(t.openBlock(),t.createElementBlock("svg",F$e,[t.createElementVNode("rect",{x:"1.5",y:"0.5",width:"100%",height:"100%",rx:"1.5",stroke:s.colorLineField},null,8,R$e),t.createElementVNode("path",{style:t.normalizeStyle("transform: translate("+m.translx+"px, "+m.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:s.colorLineField,"stroke-width":s.borderWidthLineField,"stroke-linecap":"square"},null,12,V$e),t.createElementVNode("path",{style:t.normalizeStyle("transform: translateY("+m.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:s.colorLineField,"stroke-width":s.borderWidthLineField,"stroke-linecap":"square"},null,12,j$e),t.createElementVNode("path",{style:t.normalizeStyle("transform: translate("+m.translxcircle+"px, "+m.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":s.borderWidthLineField,stroke:s.colorLineField},null,12,U$e),t.createElementVNode("rect",{x:"0%",y:"0%",width:"25%",height:"25%",fill:U.sectors[0].active?s.backgroundSectorActive:s.backgroundSectorDisabled,"fill-opacity":s.opacitySector,stroke:s.borderColor,"stroke-width":s.borderWidth,onClick:i[0]||(i[0]=y=>m.selectSector(0))},null,8,G$e),t.createElementVNode("rect",{x:"0%",y:"25%",width:"25%",height:"25%",fill:U.sectors[1].active?s.backgroundSectorActive:s.backgroundSectorDisabled,"fill-opacity":s.opacitySector,stroke:s.borderColor,"stroke-width":s.borderWidth,onClick:i[1]||(i[1]=y=>m.selectSector(1))},null,8,H$e),t.createElementVNode("rect",{x:"0%",y:"50%",width:"25%",height:"25%",fill:U.sectors[2].active?s.backgroundSectorActive:s.backgroundSectorDisabled,"fill-opacity":s.opacitySector,stroke:s.borderColor,"stroke-width":s.borderWidth,onClick:i[2]||(i[2]=y=>m.selectSector(2))},null,8,Z$e),t.createElementVNode("rect",{x:"0%",y:"75%",width:"25%",height:"25%",fill:U.sectors[3].active?s.backgroundSectorActive:s.backgroundSectorDisabled,"fill-opacity":s.opacitySector,stroke:s.borderColor,"stroke-width":s.borderWidth,onClick:i[3]||(i[3]=y=>m.selectSector(3))},null,8,X$e),t.createElementVNode("rect",{x:"25%",y:"0%",width:"25%",height:"25%",fill:U.sectors[4].active?s.backgroundSectorActive:s.backgroundSectorDisabled,"fill-opacity":s.opacitySector,stroke:s.borderColor,"stroke-width":s.borderWidth,onClick:i[4]||(i[4]=y=>m.selectSector(4))},null,8,W$e),t.createElementVNode("rect",{x:"25%",y:"25%",width:"25%",height:"25%",fill:U.sectors[5].active?s.backgroundSectorActive:s.backgroundSectorDisabled,"fill-opacity":s.opacitySector,stroke:s.borderColor,"stroke-width":s.borderWidth,onClick:i[5]||(i[5]=y=>m.selectSector(5))},null,8,Y$e),t.createElementVNode("rect",{x:"25%",y:"50%",width:"25%",height:"25%",fill:U.sectors[6].active?s.backgroundSectorActive:s.backgroundSectorDisabled,"fill-opacity":s.opacitySector,stroke:s.borderColor,"stroke-width":s.borderWidth,onClick:i[6]||(i[6]=y=>m.selectSector(6))},null,8,q$e),t.createElementVNode("rect",{x:"25%",y:"75%",width:"25%",height:"25%",fill:U.sectors[7].active?s.backgroundSectorActive:s.backgroundSectorDisabled,"fill-opacity":s.opacitySector,stroke:s.borderColor,"stroke-width":s.borderWidth,onClick:i[7]||(i[7]=y=>m.selectSector(7))},null,8,J$e),t.createElementVNode("rect",{x:"50%",y:"0%",width:"25%",height:"25%",fill:U.sectors[8].active?s.backgroundSectorActive:s.backgroundSectorDisabled,"fill-opacity":s.opacitySector,stroke:s.borderColor,"stroke-width":s.borderWidth,onClick:i[8]||(i[8]=y=>m.selectSector(8))},null,8,$$e),t.createElementVNode("rect",{x:"50%",y:"25%",width:"25%",height:"25%",fill:U.sectors[9].active?s.backgroundSectorActive:s.backgroundSectorDisabled,"fill-opacity":s.opacitySector,stroke:s.borderColor,"stroke-width":s.borderWidth,onClick:i[9]||(i[9]=y=>m.selectSector(9))},null,8,K$e),t.createElementVNode("rect",{x:"50%",y:"50%",width:"25%",height:"25%",fill:U.sectors[10].active?s.backgroundSectorActive:s.backgroundSectorDisabled,"fill-opacity":s.opacitySector,stroke:s.borderColor,"stroke-width":s.borderWidth,onClick:i[10]||(i[10]=y=>m.selectSector(10))},null,8,Q$e),t.createElementVNode("rect",{x:"50%",y:"75%",width:"25%",height:"25%",fill:U.sectors[11].active?s.backgroundSectorActive:s.backgroundSectorDisabled,"fill-opacity":s.opacitySector,stroke:s.borderColor,"stroke-width":s.borderWidth,onClick:i[11]||(i[11]=y=>m.selectSector(11))},null,8,eKe),t.createElementVNode("rect",{x:"75%",y:"0%",width:"25%",height:"25%",fill:U.sectors[12].active?s.backgroundSectorActive:s.backgroundSectorDisabled,"fill-opacity":s.opacitySector,stroke:s.borderColor,"stroke-width":s.borderWidth,onClick:i[12]||(i[12]=y=>m.selectSector(12))},null,8,tKe),t.createElementVNode("rect",{x:"75%",y:"25%",width:"25%",height:"25%",fill:U.sectors[13].active?s.backgroundSectorActive:s.backgroundSectorDisabled,"fill-opacity":s.opacitySector,stroke:s.borderColor,"stroke-width":s.borderWidth,onClick:i[13]||(i[13]=y=>m.selectSector(13))},null,8,aKe),t.createElementVNode("rect",{x:"75%",y:"50%",width:"25%",height:"25%",fill:U.sectors[14].active?s.backgroundSectorActive:s.backgroundSectorDisabled,"fill-opacity":s.opacitySector,stroke:s.borderColor,"stroke-width":s.borderWidth,onClick:i[14]||(i[14]=y=>m.selectSector(14))},null,8,rKe),t.createElementVNode("rect",{x:"75%",y:"75%",width:"25%",height:"25%",fill:U.sectors[15].active?s.backgroundSectorActive:s.backgroundSectorDisabled,"fill-opacity":s.opacitySector,stroke:s.borderColor,"stroke-width":s.borderWidth,onClick:i[15]||(i[15]=y=>m.selectSector(15))},null,8,nKe)]))]),t.createElementVNode("div",iKe,[(t.openBlock(),t.createBlock(r,{"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:m.btn14,key:U.refreshBtn14,value:e.status14},null,8,["onStatus","value"])),(t.openBlock(),t.createBlock(r,{"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:m.btn24,key:U.refreshBtn24,value:e.status24},null,8,["onStatus","value"])),(t.openBlock(),t.createBlock(r,{"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:m.btn34,key:U.refreshBtn34,value:e.status34},null,8,["onStatus","value"])),(t.openBlock(),t.createBlock(r,{"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:m.btn44,key:U.refreshBtn44,value:e.status44},null,8,["onStatus","value"]))])])])}const tR=L$e(gS,[["render",oKe],["__scopeId","data-v-b85699b8"]]),sKe={class:"toggle-buttons__background"},lKe=["onClick"],cKe={__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:i}){const s=e;t.useCssVars(g=>({"93d865f4":e.height,"34a70bf2":e.width,"3b25a65d":e.mainBackgroundColor,b988d706:e.borderRadius,"6ca18efc":e.mainBorderWidth,"6ecf8bc2":e.mainBorderColor,"1c0cd0f2":e.fontFamily,"6a733de2":e.fontSize,"0f5c20d5":e.activeBorderWidth,"0e452272":e.activeBorderColor,d69fa5a0:e.activeBackgroundColor}));const B=t.ref(s.selectedButtonIndex),U=t.computed(()=>({"--grid-template-columns":`repeat(${s.buttons.length}, 1fr)`}));t.watch(()=>s.selectedButtonIndex,g=>{B.value=g}),t.watch(B,(g,r)=>{g!==r&&i("change",{index:g,button:s.buttons[g]})});function m(g){B.value=g}return(g,r)=>(t.openBlock(),t.createElementBlock("div",sKe,[t.createElementVNode("div",{class:"toggle-buttons",style:t.normalizeStyle(U.value)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.buttons,(y,u)=>(t.openBlock(),t.createElementBlock("div",{key:`b${u}`,class:t.normalizeClass(["toggle-buttons__button",{active:B.value===u}]),onClick:a=>m(u)},t.toDisplayString(y.text||y),11,lKe))),128))],4)]))}},dKe=nc(cKe,[["__scopeId","data-v-f34a7e56"]]);function aR(e,i){return function(){return e.apply(i,arguments)}}const{toString:uKe}=Object.prototype,{getPrototypeOf:Lv}=Object,{iterator:Lb,toStringTag:rR}=Symbol,q5=(({hasOwnProperty:e})=>(i,s)=>e.call(i,s))(Object.prototype),Bb=(e,i)=>{let s=e;const B=[];for(;s!=null&&s!==Object.prototype;){if(B.indexOf(s)!==-1)return!1;if(B.push(s),q5(s,i))return!0;s=Lv(s)}return!1},hKe=(e,i)=>e!=null&&Bb(e,i)?e[i]:void 0,yS=(e=>i=>{const s=uKe.call(i);return e[s]||(e[s]=s.slice(8,-1).toLowerCase())})(Object.create(null)),Bf=e=>(e=e.toLowerCase(),i=>yS(i)===e),J5=e=>i=>typeof i===e,{isArray:hg}=Array,pg=J5("undefined");function Bv(e){return e!==null&&!pg(e)&&e.constructor!==null&&!pg(e.constructor)&&Sp(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const nR=Bf("ArrayBuffer");function pKe(e){let i;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?i=ArrayBuffer.isView(e):i=e&&e.buffer&&nR(e.buffer),i}const fKe=J5("string"),Sp=J5("function"),iR=J5("number"),zv=e=>e!==null&&typeof e=="object",mKe=e=>e===!0||e===!1,$5=e=>{if(!zv(e))return!1;const i=Lv(e);return(i===null||i===Object.prototype||Lv(i)===null)&&!Bb(e,rR)&&!Bb(e,Lb)},gKe=e=>{if(!zv(e)||Bv(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},yKe=Bf("Date"),vKe=Bf("File"),bKe=e=>!!(e&&typeof e.uri<"u"),xKe=e=>e&&typeof e.getParts<"u",_Ke=Bf("Blob"),wKe=Bf("FileList"),kKe=Bf("Set"),SKe=e=>zv(e)&&Sp(e.pipe);function CKe(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const oR=CKe(),sR=typeof oR.FormData<"u"?oR.FormData:void 0,TKe=e=>{if(!e)return!1;if(sR&&e instanceof sR)return!0;const i=Lv(e);if(!i||i===Object.prototype||!Sp(e.append))return!1;const s=yS(e);return s==="formdata"||s==="object"&&Sp(e.toString)&&e.toString()==="[object FormData]"},AKe=Bf("URLSearchParams"),[EKe,MKe,IKe,PKe]=["ReadableStream","Request","Response","Headers"].map(Bf),LKe=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function zb(e,i,{allOwnKeys:s=!1}={}){if(e===null||typeof e>"u")return;let B,U;if(typeof e!="object"&&(e=[e]),hg(e))for(B=0,U=e.length;B<U;B++)i.call(null,e[B],B,e);else{if(Bv(e))return;const m=s?Object.getOwnPropertyNames(e):Object.keys(e),g=m.length;let r;for(B=0;B<g;B++)r=m[B],i.call(null,e[r],r,e)}}function lR(e,i){if(Bv(e))return null;i=i.toLowerCase();const s=Object.keys(e);let B=s.length,U;for(;B-- >0;)if(U=s[B],i===U.toLowerCase())return U;return null}const fg=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),cR=e=>!pg(e)&&e!==fg;function vS(...e){const{caseless:i,skipUndefined:s}=cR(this)&&this||{},B={},U=(m,g)=>{if(g==="__proto__"||g==="constructor"||g==="prototype")return;const r=i&&typeof g=="string"&&lR(B,g)||g,y=q5(B,r)?B[r]:void 0;$5(y)&&$5(m)?B[r]=vS(y,m):$5(m)?B[r]=vS({},m):hg(m)?B[r]=m.slice():(!s||!pg(m))&&(B[r]=m)};for(let m=0,g=e.length;m<g;m++){const r=e[m];if(!r||Bv(r)||(zb(r,U),typeof r!="object"||hg(r)))continue;const y=Object.getOwnPropertySymbols(r);for(let u=0;u<y.length;u++){const a=y[u];HKe.call(r,a)&&U(r[a],a)}}return B}const BKe=(e,i,s,{allOwnKeys:B}={})=>(zb(i,(U,m)=>{s&&Sp(U)?Object.defineProperty(e,m,{__proto__:null,value:aR(U,s),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,m,{__proto__:null,value:U,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:B}),e),zKe=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),OKe=(e,i,s,B)=>{e.prototype=Object.create(i.prototype,B),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:i.prototype}),s&&Object.assign(e.prototype,s)},DKe=(e,i,s,B)=>{let U,m,g;const r={};if(i=i||{},e==null)return i;do{for(U=Object.getOwnPropertyNames(e),m=U.length;m-- >0;)g=U[m],(!B||B(g,e,i))&&!r[g]&&(i[g]=e[g],r[g]=!0);e=s!==!1&&Lv(e)}while(e&&(!s||s(e,i))&&e!==Object.prototype);return i},NKe=(e,i,s)=>{e=String(e),(s===void 0||s>e.length)&&(s=e.length),s-=i.length;const B=e.indexOf(i,s);return B!==-1&&B===s},FKe=e=>{if(!e)return null;if(hg(e))return e;let i=e.length;if(!iR(i))return null;const s=new Array(i);for(;i-- >0;)s[i]=e[i];return s},RKe=(e=>i=>e&&i instanceof e)(typeof Uint8Array<"u"&&Lv(Uint8Array)),VKe=(e,i)=>{const s=(e&&e[Lb]).call(e);let B;for(;(B=s.next())&&!B.done;){const U=B.value;i.call(e,U[0],U[1])}},jKe=(e,i)=>{let s;const B=[];for(;(s=e.exec(i))!==null;)B.push(s);return B},UKe=Bf("HTMLFormElement"),GKe=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(i,s,B){return s.toUpperCase()+B}),{propertyIsEnumerable:HKe}=Object.prototype,ZKe=Bf("RegExp"),dR=(e,i)=>{const s=Object.getOwnPropertyDescriptors(e),B={};zb(s,(U,m)=>{let g;(g=i(U,m,e))!==!1&&(B[m]=g||U)}),Object.defineProperties(e,B)},XKe=e=>{dR(e,(i,s)=>{if(Sp(e)&&["arguments","caller","callee"].includes(s))return!1;const B=e[s];if(Sp(B)){if(i.enumerable=!1,"writable"in i){i.writable=!1;return}i.set||(i.set=()=>{throw Error("Can not rewrite read-only method '"+s+"'")})}})},WKe=(e,i)=>{const s={},B=U=>{U.forEach(m=>{s[m]=!0})};return hg(e)?B(e):B(String(e).split(i)),s},YKe=()=>{},qKe=(e,i)=>e!=null&&Number.isFinite(e=+e)?e:i;function JKe(e){return!!(e&&Sp(e.append)&&e[rR]==="FormData"&&e[Lb])}const $Ke=e=>{const i=new WeakSet,s=B=>{if(zv(B)){if(i.has(B))return;if(Bv(B))return B;if(!("toJSON"in B)){i.add(B);let U;if(kKe(B)){U=[];for(const m of B){const g=s(m);!pg(g)&&U.push(g)}}else U=hg(B)?[]:{},zb(B,(m,g)=>{const r=s(m);!pg(r)&&(U[g]=r)});return i.delete(B),U}}return B};return s(e)},KKe=Bf("AsyncFunction"),QKe=e=>e&&(zv(e)||Sp(e))&&Sp(e.then)&&Sp(e.catch),uR=((e,i)=>e?setImmediate:i?((s,B)=>(fg.addEventListener("message",({source:U,data:m})=>{U===fg&&m===s&&B.length&&B.shift()()},!1),U=>{B.push(U),fg.postMessage(s,"*")}))(`axios@${Math.random()}`,[]):s=>setTimeout(s))(typeof setImmediate=="function",Sp(fg.postMessage)),eQe=typeof queueMicrotask<"u"?queueMicrotask.bind(fg):typeof process<"u"&&process.nextTick||uR,hR=e=>e!=null&&Sp(e[Lb]),tQe=e=>e!=null&&Bb(e,Lb)&&hR(e),tn={isArray:hg,isArrayBuffer:nR,isBuffer:Bv,isFormData:TKe,isArrayBufferView:pKe,isString:fKe,isNumber:iR,isBoolean:mKe,isObject:zv,isPlainObject:$5,isEmptyObject:gKe,isReadableStream:EKe,isRequest:MKe,isResponse:IKe,isHeaders:PKe,isUndefined:pg,isDate:yKe,isFile:vKe,isReactNativeBlob:bKe,isReactNative:xKe,isBlob:_Ke,isRegExp:ZKe,isFunction:Sp,isStream:SKe,isURLSearchParams:AKe,isTypedArray:RKe,isFileList:wKe,forEach:zb,merge:vS,extend:BKe,trim:LKe,stripBOM:zKe,inherits:OKe,toFlatObject:DKe,kindOf:yS,kindOfTest:Bf,endsWith:NKe,toArray:FKe,forEachEntry:VKe,matchAll:jKe,isHTMLForm:UKe,hasOwnProperty:q5,hasOwnProp:q5,hasOwnInPrototypeChain:Bb,getSafeProp:hKe,reduceDescriptors:dR,freezeMethods:XKe,toObjectSet:WKe,toCamelCase:GKe,noop:YKe,toFiniteNumber:qKe,findKey:lR,global:fg,isContextDefined:cR,isSpecCompliantForm:JKe,toJSONObject:$Ke,isAsyncFn:KKe,isThenable:QKe,setImmediate:uR,asap:eQe,isIterable:hR,isSafeIterable:tQe},aQe=tn.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"]),rQe=e=>{const i={};let s,B,U;return e&&e.split(`
98
+ */const Wu={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"}},gF={itemsToShow:{default:Wu.itemsToShow,type:Number},itemsToScroll:{default:Wu.itemsToScroll,type:Number},wrapAround:{default:Wu.wrapAround,type:Boolean},throttle:{default:Wu.throttle,type:Number},snapAlign:{default:Wu.snapAlign,validator(e){return["start","end","center","center-even","center-odd"].includes(e)}},transition:{default:Wu.transition,type:Number},breakpoints:{default:Wu.breakpoints,type:Object},autoplay:{default:Wu.autoplay,type:Number},pauseAutoplayOnHover:{default:Wu.pauseAutoplayOnHover,type:Boolean},modelValue:{default:void 0,type:Number},mouseDrag:{default:Wu.mouseDrag,type:Boolean},touchDrag:{default:Wu.touchDrag,type:Boolean},dir:{default:Wu.dir,validator(e){return["rtl","ltr"].includes(e)}},i18n:{default:Wu.i18n,type:Object},settings:{default(){return{}},type:Object}};function pHe({config:e,slidesCount:i}){const{snapAlign:s,wrapAround:B,itemsToShow:U=1}=e;if(B)return Math.max(i-1,0);let m;switch(s){case"start":m=i-U;break;case"end":m=i-1;break;case"center":case"center-odd":m=i-Math.ceil((U-.5)/2);break;case"center-even":m=i-Math.ceil(U/2);break;default:m=0;break}return Math.max(m,0)}function fHe({config:e,slidesCount:i}){const{wrapAround:s,snapAlign:B,itemsToShow:U=1}=e;let m=0;if(s||U>i)return m;switch(B){case"start":m=0;break;case"end":m=U-1;break;case"center":case"center-odd":m=Math.floor((U-1)/2);break;case"center-even":m=Math.floor((U-2)/2);break;default:m=0;break}return m}function tS({val:e,max:i,min:s}){return i<s?e:Math.min(Math.max(e,s),i)}function mHe({config:e,currentSlide:i,slidesCount:s}){const{snapAlign:B,wrapAround:U,itemsToShow:m=1}=e;let g=i;switch(B){case"center":case"center-odd":g-=(m-1)/2;break;case"center-even":g-=(m-2)/2;break;case"end":g-=m-1;break}return U?g:tS({val:g,max:s-m,min:0})}function yF(e){return e?e.reduce((i,s)=>{var B;return s.type===t.Fragment?[...i,...yF(s.children)]:((B=s.type)===null||B===void 0?void 0:B.name)==="CarouselSlide"?[...i,s]:i},[]):[]}function aS({val:e,max:i,min:s=0}){return e>i?aS({val:e-(i+1),max:i,min:s}):e<s?aS({val:e+(i+1),max:i,min:s}):e}function gHe(e,i){let s;return i?function(...B){const U=this;s||(e.apply(U,B),s=!0,setTimeout(()=>s=!1,i))}:e}function yHe(e,i){let s;return function(...B){s&&clearTimeout(s),s=setTimeout(()=>{e(...B),s=null},i)}}function vHe(e="",i={}){return Object.entries(i).reduce((s,[B,U])=>s.replace(`{${B}}`,String(U)),e)}var bHe=t.defineComponent({name:"ARIA",setup(){const e=t.inject("config",t.reactive(Object.assign({},Wu))),i=t.inject("currentSlide",t.ref(0)),s=t.inject("slidesCount",t.ref(0));return()=>t.h("div",{class:["carousel__liveregion","carousel__sr-only"],"aria-live":"polite","aria-atomic":"true"},vHe(e.i18n.itemXofY,{currentSlide:i.value+1,slidesCount:s.value}))}}),xHe=t.defineComponent({name:"Carousel",props:gF,setup(e,{slots:i,emit:s,expose:B}){var U;const m=t.ref(null),g=t.ref([]),r=t.ref(0),y=t.ref(0),u=t.reactive(Object.assign({},Wu));let a=Object.assign({},Wu),x;const v=t.ref((U=e.modelValue)!==null&&U!==void 0?U:0),_=t.ref(0),p=t.ref(0),n=t.ref(0),o=t.ref(0);let c,l;t.provide("config",u),t.provide("slidesCount",y),t.provide("currentSlide",v),t.provide("maxSlide",n),t.provide("minSlide",o),t.provide("slideWidth",r);function h(){x=Object.assign({},e.breakpoints),a=Object.assign(Object.assign(Object.assign({},a),e),{i18n:Object.assign(Object.assign({},a.i18n),e.i18n),breakpoints:void 0}),w(a)}function b(){if(!x||!Object.keys(x).length)return;const re=Object.keys(x).map(ie=>Number(ie)).sort((ie,me)=>+me-+ie);let se=Object.assign({},a);re.some(ie=>{const me=window.matchMedia(`(min-width: ${ie}px)`).matches;return me&&(se=Object.assign(Object.assign({},se),x[ie])),me}),w(se)}function w(re){Object.entries(re).forEach(([se,ie])=>u[se]=ie)}const C=yHe(()=>{b(),E()},16);function E(){if(!m.value)return;const re=m.value.getBoundingClientRect();r.value=re.width/u.itemsToShow}function A(){y.value<=0||(p.value=Math.ceil((y.value-1)/2),n.value=pHe({config:u,slidesCount:y.value}),o.value=fHe({config:u,slidesCount:y.value}),u.wrapAround||(v.value=tS({val:v.value,max:n.value,min:o.value})))}t.onMounted(()=>{t.nextTick(()=>E()),setTimeout(()=>E(),1e3),b(),H(),window.addEventListener("resize",C,{passive:!0}),s("init")}),t.onUnmounted(()=>{l&&clearTimeout(l),c&&clearInterval(c),window.removeEventListener("resize",C,{passive:!0})});let P=!1;const L={x:0,y:0},T={x:0,y:0},I=t.reactive({x:0,y:0}),M=t.ref(!1),S=t.ref(!1),z=()=>{M.value=!0},k=()=>{M.value=!1};function O(re){["INPUT","TEXTAREA","SELECT"].includes(re.target.tagName)||(P=re.type==="touchstart",P||re.preventDefault(),!(!P&&re.button!==0||G.value)&&(L.x=P?re.touches[0].clientX:re.clientX,L.y=P?re.touches[0].clientY:re.clientY,document.addEventListener(P?"touchmove":"mousemove",N,!0),document.addEventListener(P?"touchend":"mouseup",j,!0)))}const N=gHe(re=>{S.value=!0,T.x=P?re.touches[0].clientX:re.clientX,T.y=P?re.touches[0].clientY:re.clientY;const se=T.x-L.x,ie=T.y-L.y;I.y=ie,I.x=se},u.throttle);function j(){const re=u.dir==="rtl"?-1:1,se=Math.sign(I.x)*.4,ie=Math.round(I.x/r.value+se)*re;if(ie&&!P){const me=ye=>{ye.stopPropagation(),window.removeEventListener("click",me,!0)};window.addEventListener("click",me,!0)}$(v.value-ie),I.x=0,I.y=0,S.value=!1,document.removeEventListener(P?"touchmove":"mousemove",N,!0),document.removeEventListener(P?"touchend":"mouseup",j,!0)}function H(){!u.autoplay||u.autoplay<=0||(c=setInterval(()=>{u.pauseAutoplayOnHover&&M.value||ne()},u.autoplay))}function Z(){c&&(clearInterval(c),c=null),H()}const G=t.ref(!1);function $(re){const se=u.wrapAround?re:tS({val:re,max:n.value,min:o.value});v.value===se||G.value||(s("slide-start",{slidingToIndex:re,currentSlideIndex:v.value,prevSlideIndex:_.value,slidesCount:y.value}),G.value=!0,_.value=v.value,v.value=se,l=setTimeout(()=>{if(u.wrapAround){const ie=aS({val:se,max:n.value,min:0});ie!==v.value&&(v.value=ie,s("loop",{currentSlideIndex:v.value,slidingToIndex:re}))}s("update:modelValue",v.value),s("slide-end",{currentSlideIndex:v.value,prevSlideIndex:_.value,slidesCount:y.value}),G.value=!1,Z()},u.transition))}function ne(){$(v.value+u.itemsToScroll)}function W(){$(v.value-u.itemsToScroll)}const K={slideTo:$,next:ne,prev:W};t.provide("nav",K),t.provide("isSliding",G);const Q=t.computed(()=>mHe({config:u,currentSlide:v.value,slidesCount:y.value}));t.provide("slidesToScroll",Q);const J=t.computed(()=>{const re=u.dir==="rtl"?-1:1,se=Q.value*r.value*re;return{transform:`translateX(${I.x-se}px)`,transition:`${G.value?u.transition:0}ms`,margin:u.wrapAround?`0 -${y.value*r.value}px`:"",width:"100%"}});function ee(){h(),b(),A(),E(),Z()}Object.keys(gF).forEach(re=>{["modelValue"].includes(re)||t.watch(()=>e[re],ee)}),t.watch(()=>e.modelValue,re=>{re!==v.value&&$(Number(re))}),t.watch(y,A),s("before-init"),h();const ce={config:u,slidesCount:y,slideWidth:r,next:ne,prev:W,slideTo:$,currentSlide:v,maxSlide:n,minSlide:o,middleSlide:p};B({updateBreakpointsConfigs:b,updateSlidesData:A,updateSlideWidth:E,initDefaultConfigs:h,restartCarousel:ee,slideTo:$,next:ne,prev:W,nav:K,data:ce});const ue=i.default||i.slides,he=i.addons,pe=t.reactive(ce);return()=>{const re=yF(ue==null?void 0:ue(pe)),se=(he==null?void 0:he(pe))||[];re.forEach((ve,we)=>ve.props.index=we);let ie=re;if(u.wrapAround){const ve=re.map((Se,Ce)=>t.cloneVNode(Se,{index:-re.length+Ce,isClone:!0,key:`clone-before-${Ce}`})),we=re.map((Se,Ce)=>t.cloneVNode(Se,{index:re.length+Ce,isClone:!0,key:`clone-after-${Ce}`}));ie=[...ve,...re,...we]}g.value=re,y.value=Math.max(re.length,1);const me=t.h("ol",{class:"carousel__track",style:J.value,onMousedownCapture:u.mouseDrag?O:null,onTouchstartPassiveCapture:u.touchDrag?O:null},ie),ye=t.h("div",{class:"carousel__viewport"},me);return t.h("section",{ref:m,class:{carousel:!0,"is-sliding":G.value,"is-dragging":S.value,"is-hover":M.value,"carousel--rtl":u.dir==="rtl"},dir:u.dir,"aria-label":u.i18n.ariaGallery,tabindex:"0",onMouseenter:z,onMouseleave:k},[ye,se,t.h(bHe)])}}}),vF;(function(e){e.arrowUp="arrowUp",e.arrowDown="arrowDown",e.arrowRight="arrowRight",e.arrowLeft="arrowLeft"})(vF||(vF={}));var _He=t.defineComponent({name:"CarouselSlide",props:{index:{type:Number,default:1},isClone:{type:Boolean,default:!1}},setup(e,{slots:i}){const s=t.inject("config",t.reactive(Object.assign({},Wu))),B=t.inject("currentSlide",t.ref(0)),U=t.inject("slidesToScroll",t.ref(0)),m=t.inject("isSliding",t.ref(!1)),g=()=>e.index===B.value,r=()=>e.index===B.value-1,y=()=>e.index===B.value+1,u=()=>{const a=Math.floor(U.value),x=Math.ceil(U.value+s.itemsToShow-1);return e.index>=a&&e.index<=x};return()=>{var a;return t.h("li",{style:{width:`${100/s.itemsToShow}%`},class:{carousel__slide:!0,"carousel__slide--clone":e.isClone,"carousel__slide--visible":u(),"carousel__slide--active":g(),"carousel__slide--prev":r(),"carousel__slide--next":y(),"carousel__slide--sliding":m.value},"aria-hidden":!u()},(a=i.default)===null||a===void 0?void 0:a.call(i))}}});const wHe=(e,i)=>{const s=e.__vccOpts||e;for(const[B,U]of i)s[B]=U;return s},kHe=e=>(t.pushScopeId("data-v-54620d25"),e=e(),t.popScopeId(),e),SHe={class:"gsc-carousel"},CHe={key:0},THe=kHe(()=>t.createElementVNode("div",null,"no hay",-1)),AHe=[THe],EHe={class:"gsc-carousel__2d__slides"},MHe={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},IHe=["fill"],PHe={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},LHe=["fill"],BHe={class:"gsc-carousel__2d__navigation"},zHe={width:"8",height:"15",viewBox:"0 0 8 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},OHe=["stroke"],DHe={key:1,class:"gsc-carousel__2d__navigation__pagination"},NHe=["onClick"],FHe={width:"7",height:"15",viewBox:"0 0 7 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},RHe=["stroke"],VHe={__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(i=>i 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:i,emit:s}){const B=e;t.useCssVars(n=>({"2c72d674":e.slideLeftArrowBackgroundImage,"90a63f40":e.slidesArrowsLeftAndRight,"2627d097":e.slideRightArrowBackgroundImage,"1904d43f":e.marginTop,cfb58986:e.secondarySlidesOpacity}));const U=t.ref(null),m=t.ref({}),g=t.ref(0),r=t.ref(!1);t.watch(U,n=>{n&&r.value?(r.value=!1,y(B.items)):n&&n.slideTo&&n.slideTo(g.value)},{deep:!0}),t.watch(()=>B.currentItemIndex,n=>{g.value!==n&&v(n)}),t.watch(()=>B.defaultItemByIndex,n=>{g.value!==n&&v(n)}),t.watch(()=>B.items,n=>{U.value?y(n):r.value=!0},{immediate:!0});function y(n){n&&n.length&&U.value&&setTimeout(()=>{if(B.defaultItemByProp){const o=B.items.findIndex(c=>c[B.defaultItemByProp.propName]===B.defaultItemByProp.value);o!==-1?(g.value=o,m.value=n[o]):(g.value=0,m.value=n[0])}else g.value=B.defaultItemByIndex,m.value=n[B.defaultItemByIndex];U.value.slideTo&&U.value.slideTo(g.value),m.value&&g.value===0&&s("input",{selectedItem:m.value,selectedItemIndex:g.value})},500)}function u(){U.value&&U.value.next()}function a(){U.value&&U.value.prev()}function x(){U.value&&U.value.updateSlideWidth()}function v(n){U.value&&U.value.slideTo(n)}function _(n){U.value.slideTo(n)}function p(n){const o=n.slidingToIndex<0?B.items.length-1:n.slidingToIndex===B.items.length?0:n.slidingToIndex;g.value=o,m.value=B.items[o],s("update:currentItemIndex",o),s("input",{selectedItem:m.value,selectedItemIndex:g.value})}return i({prev:a,next:u,updateSlideWidth:x,slideTo:v}),(n,o)=>(t.openBlock(),t.createElementBlock("div",SHe,[B.is3d?(t.openBlock(),t.createElementBlock("div",CHe,AHe)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(["gsc-carousel__2d",{"main-slide-priority":e.isMainSlidePriority}])},[t.createElementVNode("div",EHe,[t.createVNode(t.unref(xHe),{ref_key:"carousel2d",ref:U,"items-to-show":e.itemsToShow,"wrap-around":e.wrapAround,onSlideStart:p},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(c,l)=>(t.openBlock(),t.createBlock(t.unref(_He),{key:l},{default:t.withCtx(()=>[t.renderSlot(n.$slots,"default",{item:c},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:o[0]||(o[0]=c=>U.value.prev())},[t.createElementVNode("div",{class:t.normalizeClass(["gsc-carousel__2d__slide-button",{rounded:e.areSlidesArrowsRounded}])},[(t.openBlock(),t.createElementBlock("svg",MHe,[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,IHe)]))],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:o[1]||(o[1]=c=>u())},[t.createElementVNode("div",{class:t.normalizeClass(["gsc-carousel__2d__slide-button",{rounded:e.areSlidesArrowsRounded}])},[(t.openBlock(),t.createElementBlock("svg",PHe,[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,LHe)]))],2)],4)):t.createCommentVNode("",!0),t.createElementVNode("div",BHe,[e.areNavigationArrowsVisible?(t.openBlock(),t.createElementBlock("div",{key:0,class:"gsc-carousel__2d__navigation__arrow-left",onClick:o[2]||(o[2]=c=>a())},[(t.openBlock(),t.createElementBlock("svg",zHe,[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,OHe)]))])):t.createCommentVNode("",!0),e.isPaginationVisible?(t.openBlock(),t.createElementBlock("div",DHe,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(c,l)=>(t.openBlock(),t.createElementBlock("div",{key:`i-${l}`,class:"gsc-carousel__2d__navigation__pagination__item",style:t.normalizeStyle({height:`${B.navigationHeight}px`,width:`${g.value===l?B.navigationActiveWidth:B.navigationActiveWidth/2}px`,borderRadius:`${B.navigationBorderRadius}px`,backgroundColor:`${g.value===l?B.navigationActiveColor:B.navigationColor}`,transition:"all 0.1s ease-in-out"}),onClick:h=>_(l)},null,12,NHe))),128))])):t.createCommentVNode("",!0),e.areNavigationArrowsVisible?(t.openBlock(),t.createElementBlock("div",{key:2,class:"gsc-carousel__2d__navigation__arrow-right",onClick:o[3]||(o[3]=c=>U.value.next())},[(t.openBlock(),t.createElementBlock("svg",FHe,[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,RHe)]))])):t.createCommentVNode("",!0)])],2))]))}},jHe=wHe(VHe,[["__scopeId","data-v-54620d25"]]),rS=(e,i)=>{const s=e.__vccOpts||e;for(const[B,U]of i)s[B]=U;return s};let bF=null;const nS={components:{},props:{isSafari:{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:""},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)bF=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),bF.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},xF=()=>{t.useCssVars(e=>({"48b403d6":e.colorBackgroundHome+"45",21348727:e.colorBackgroundAway+"45","0049e0d8":e.colorBackgroundHome,"005004ba":e.colorBackgroundAway}))},_F=nS.setup;nS.setup=_F?(e,i)=>(xF(),_F(e,i)):xF;const UHe=["src"],GHe=["src"],HHe=["src"],ZHe={class:"text-container"};function XHe(e,i,s,B,U,m){return t.openBlock(),t.createElementBlock("div",{ref:"gamesContainer",class:t.normalizeClass(m.thumbnailhighlights)},[t.createElementVNode("div",{class:t.normalizeClass(m.playbutton),onClick:i[0]||(i[0]=(...g)=>m.onclickPlayVideos&&m.onclickPlayVideos(...g))},i[1]||(i[1]=[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)]),2),s.dateGame!=""?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(m.date)},t.toDisplayString(s.dateGame),3)):t.createCommentVNode("",!0),s.matchday!=""&&s.seasonName!=""?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(m.containerinfogame)},[s.matchday!=""?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(m.matchcontainer)},t.toDisplayString(s.matchday),3)):t.createCommentVNode("",!0),s.seasonName!=""?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(m.seasoncontainer)},t.toDisplayString(s.seasonName),3)):t.createCommentVNode("",!0)],2)):t.createCommentVNode("",!0),i[2]||(i[2]=t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/paper-texture.png",alt:"",class:"paper-texture position-image"},null,-1)),t.createElementVNode("img",{src:s.background,alt:"",class:"bkg-blackwhite position-image",style:t.normalizeStyle({filter:s.isSafari?"none":""})},null,12,UHe),t.createElementVNode("div",{class:t.normalizeClass([m.baselogo,"position-image"])},null,2),t.createElementVNode("div",{class:t.normalizeClass(m.baselogoright)},null,2),i[3]||(i[3]=t.createElementVNode("div",{class:"gradient-back position-image"},null,-1)),i[4]||(i[4]=t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/halftone-texture.png",alt:"",class:"halftone-texture position-image"},null,-1)),t.createElementVNode("img",{src:s.logoHome,alt:"",class:t.normalizeClass(m.teamlogo)},null,10,GHe),t.createElementVNode("img",{src:s.logoAway,alt:"",class:t.normalizeClass(m.logoright)},null,10,HHe),t.createElementVNode("div",ZHe,[t.createElementVNode("span",{class:t.normalizeClass(m.secondline)},t.toDisplayString(s.score),3),t.createElementVNode("div",{class:t.normalizeClass(m.titlename)},t.toDisplayString(s.titleCategory),3)])],2)}const WHe=rS(nS,[["render",XHe],["__scopeId","data-v-e4a5fe26"]]);let wF=null;const iS={components:{},props:{isSafari:{type:Boolean,default:!1},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)wF=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),wF.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},kF=()=>{t.useCssVars(e=>({"3e78ee50":e.colorBackgroundHome,"3e7f1232":e.colorBackgroundAway,"7fb93f88":e.colorBackgroundAway+"62",b18e9d20:e.colorBackgroundHome+"36"}))},SF=iS.setup;iS.setup=SF?(e,i)=>(kF(),SF(e,i)):kF;const YHe={class:"player-container"},qHe=["src"],JHe=["src"],$He=["src"],KHe={class:"container-score"},QHe=["src"],eZe=["src"],tZe=["src"];function aZe(e,i,s,B,U,m){return t.openBlock(),t.createElementBlock("div",{ref:"gamesContainer",class:t.normalizeClass(m.thumbnailhighlights)},[i[2]||(i[2]=t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/paper-texture.png",alt:"",class:"paper-texture position-image"},null,-1)),t.createElementVNode("div",{class:t.normalizeClass(m.playbutton),onClick:i[0]||(i[0]=(...g)=>m.onclickPlayVideos&&m.onclickPlayVideos(...g))},i[1]||(i[1]=[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)]),2),t.createElementVNode("div",YHe,[t.createElementVNode("div",{class:t.normalizeClass(m.containerinfogame)},[t.createElementVNode("div",{class:t.normalizeClass(m.matchcontainer)},[t.createElementVNode("div",{class:t.normalizeClass(m.matchboxContainer)},t.toDisplayString(s.matchday),3),t.createElementVNode("div",{class:t.normalizeClass(m.seasonnameContainer)},t.toDisplayString(s.seasonName),3)],2),t.createElementVNode("div",{class:t.normalizeClass(m.seasoncontainer)},t.toDisplayString(s.date),3)],2),s.type==0?(t.openBlock(),t.createElementBlock("span",{key:0,class:t.normalizeClass(m.texttitle)},t.toDisplayString(s.nameCategory),3)):(t.openBlock(),t.createElementBlock("span",{key:1,class:t.normalizeClass(m.texttitle2)},t.toDisplayString(s.nameCategory),3)),s.typeImg==0?(t.openBlock(),t.createElementBlock("img",{key:2,src:s.photoProfile,class:t.normalizeClass(m.playerimage)},null,10,qHe)):t.createCommentVNode("",!0),s.typeImg==1?(t.openBlock(),t.createElementBlock("img",{key:3,src:s.photoProfile,alt:""},null,8,JHe)):t.createCommentVNode("",!0),s.typeImg==2?(t.openBlock(),t.createElementBlock("img",{key:4,src:s.photoProfile,class:"img-number"},null,8,$He)):t.createCommentVNode("",!0),t.createElementVNode("div",KHe,[t.createElementVNode("div",{class:t.normalizeClass(m.hometeam)},[t.createElementVNode("span",{class:t.normalizeClass(m.teamname)},t.toDisplayString(s.nameHomeTeam),3),t.createElementVNode("img",{src:s.logoHome,alt:"",class:t.normalizeClass(m.teamlogo)},null,10,QHe),t.createElementVNode("span",{class:t.normalizeClass(m.teamscore)},t.toDisplayString(s.scoreHome),3)],2),t.createElementVNode("span",{class:t.normalizeClass(m.points)},":",2),t.createElementVNode("div",{class:t.normalizeClass(m.awayteam)},[t.createElementVNode("span",{class:t.normalizeClass(m.teamscore)},t.toDisplayString(s.scoreAway),3),t.createElementVNode("img",{src:s.logoAway,alt:"",class:t.normalizeClass(m.teamlogo)},null,10,eZe),t.createElementVNode("span",{class:t.normalizeClass(m.teamname)},t.toDisplayString(s.nameAwayTeam),3)],2)])]),t.createElementVNode("img",{src:s.background,alt:"",class:"bkg-blackwhite position-image",style:t.normalizeStyle({filter:(s.isSafari,"")})},null,12,tZe),i[3]||(i[3]=t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/halftone-texture.png",alt:"",class:"halftone-texture position-image"},null,-1)),i[4]||(i[4]=t.createElementVNode("div",{class:"gradient-color"},null,-1))],2)}const rZe=rS(iS,[["render",aZe],["__scopeId","data-v-3dc666ca"]]);function oS(e,i,s){const B=Number(i);if(i===null||B===0||B===1||!e||!e.startsWith("http"))return e;const U=s?`https://dev-apis.golstats.com/${B}`:`https://apis.golstats.com/${B}`,m=new URL(e),g=m.pathname.split("/").filter(y=>y!==""&&y!=="prod"&&y!=="qa").join("/");let r=`${U}/${g}`;return m.search&&(r+=m.search),m.hash&&(r+=m.hash),r}function Ph(e,i){if(!i||i<=1)return e;const s=new URL(e),B=s.pathname.split("/").filter(r=>r!=="");if(B.length===0)return e;const[U,...m]=B,g=[U,i,...m].join("/");return`${s.origin}/${g}${s.search}`}const nZe={components:{GSCCarousel:jHe,GSCThumbnailHighlightGameHistoric:WHe,GSCThumbnailHighlightGamePlayer:rZe},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},provider:{type:Number,default:1},isDevApis:{type:Boolean,default:!1}},data(){return{highlightsWidth:0,printData:[],resizeObserverGSCH:null,token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",lastHistoricGamesUrl:""}},watch:{data:{immediate:!0,handler(e){this.getData(e)}}},computed:{isSafari(){const e=navigator.userAgent||navigator.vendor||window.opera;return/^((?!chrome|android|Edg|Chromium).)*safari/i.test(e)},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,i){return e.home_team===(i||this.data.team)?1:2},obtenerNombreCompletoFecha(e){if(e){const i=new Date(e),s=["Domingo","Lunes","Martes","Miércoles","Jueves","Viernes","Sábado"][i.getUTCDay()],B=i.getUTCDate(),U=["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"][i.getUTCMonth()];return`${s} ${B} de ${U}`}else return""},onclickPlayVideos(e){var i=[];e.type==2?e.data.position_id==1?e.data.has_relevants==1?e.data.category==0?i=this.provider==1?[55,324,323,608,39,774,802,52,53,40,42,54]:[393,447,472,1075,893,469,866,985,986,474,905,907,55]:i=e.data.category:i=[55,324,323,608,39,774,802,52,53,40,42,54]:e.data.has_relevants==1?e.data.category==0?i=this.provider==1?[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]:[393,447,472,1075,992,1036,1155,1156,470,866,1035,33,873,871,38,46,985,986,55]:i=e.data.category:i=[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?i=[607,608,12,55,54,35,14,52,15,53,466,477,40,257,39]:i=e.data.category:e.data.category!=0?i=e.data.category:i=[607,608,12,55,54,35,14,52,15,53,466,477];const s=[1,2,3];let B={seasonId:e.data.season_id,mainSectionType:1,playListType:e.type,categoryIds:i,gameIdsToFilter:e.data.game_id?[e.data.game_id]:null,playerIds:e.data.position_id!=1?e.data.player_id?[e.data.player_id]:[]:[],goalkeeperIds:e.data.position_id==1?e.data.player_id?[e.data.player_id]:[]:[],teamId:e.data.team_id?e.data.team_id:e.data.team_id_b?e.data.team_id_b:0,matchResult:e.data.matchResult?[e.data.matchResult]:s,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 i=hHe.create({headers:{Authorization:`${this.token}`}});var s=[],B={};if(e.type=="player"){const U=await i.get(oS("https://uof4tt5l46.execute-api.us-west-2.amazonaws.com/prod/v3/playerInfo/"+e.season+"/"+e.player,this.provider,this.isDevApis));if(U.data.seasons[e.season])for(let m=0;m<U.data.seasons[e.season].games_played.length;m++)B={playingAs:this.getPlayingAs(U.data.seasons[e.season].games_played[m],U.data.team_id),category:0,player_id:U.data.player_id,position_id:U.data.position_id,color:U.data.info_thumbnails.colors.background_color,photo_profile:U.data.info_thumbnails.images.player_in_action[0]?Ph("https://golstatsimages.blob.core.windows.net/images-library/"+U.data.info_thumbnails.images.player_in_action[0],this.provider):U.data.info_thumbnails.player_profile,team_logo:Ph("https://golstatsimages.blob.core.windows.net/teams-150/"+U.data.seasons[e.season].games_played[m].home_team+".png",this.provider),player_name:U.data.seasons[e.season].games_played[m].home_team_acronym+" "+U.data.seasons[e.season].games_played[m].home_team_score+" : "+U.data.seasons[e.season].games_played[m].visiting_team_score+" "+U.data.seasons[e.season].games_played[m].visiting_team_acronym,team_id:U.data.team_id,has_relevants:U.data.seasons[e.season].games_played[m].has_relevants,team_id_b:U.data.seasons[e.season].games_played[m].home_team,season_id:U.data.seasons[e.season].games_played[m].season_id,name:U.data.seasons[e.season].games_played[m].player_name,seasonname:U.data.seasons[e.season].name.replace("Clausura","CL ").replace("Apertura","AP "),game_id:U.data.seasons[e.season].games_played[m].game_id,match:U.data.seasons[e.season].games_played[m].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(U.data.seasons[e.season].games_played[m].date),scorehome:U.data.seasons[e.season].games_played[m].home_team_score,scoreaway:U.data.seasons[e.season].games_played[m].visiting_team_score,hometeamacronym:U.data.seasons[e.season].games_played[m].home_team_acronym,visitingteamacronym:U.data.seasons[e.season].games_played[m].visiting_team_acronym,background:U.data.info_thumbnails.images.background_player_in_action[0]?Ph("https://golstatsimages.blob.core.windows.net/images-library/"+U.data.info_thumbnails.images.background_player_in_action[0],this.provider):U.data.info_thumbnails.player_profile,backgroundhome:U.data.seasons[e.season].games_played[m].info_thumbnails.home_colors.background_color,backgroundaway:U.data.seasons[e.season].games_played[m].info_thumbnails.away_colors.background_color,logohome:Ph("https://golstatsimages.blob.core.windows.net/teams-150/"+U.data.seasons[e.season].games_played[m].home_team+".png",this.provider),logoaway:Ph("https://golstatsimages.blob.core.windows.net/teams-150/"+U.data.seasons[e.season].games_played[m].visiting_team+".png",this.provider),total:U.data.seasons[e.season].games_played[m].matchday_abbreviation.replace("M","Jor "),background_card:"https://golstatsimages.blob.core.windows.net/golstats2-teams/"+U.data.seasons[e.season].games_played[m].home_team+"_"+U.data.seasons[e.season].games_played[m].season_id+"_r1.jpg"},s.push(B);else for(let m=0;m<U.data.national_seasons[e.season].games_played.length;m++)B={playingAs:this.getPlayingAs(U.data.national_seasons[e.season].games_played[m],U.data.team_id),category:0,player_id:U.data.player_id,position_id:U.data.position_id,color:U.data.info_thumbnails.colors.background_color,photo_profile:U.data.info_thumbnails.images.player_in_action[0]?Ph("https://golstatsimages.blob.core.windows.net/images-library/"+U.data.info_thumbnails.images.player_in_action[0],this.provider):U.data.info_thumbnails.player_profile,team_logo:Ph("https://golstatsimages.blob.core.windows.net/teams-150/"+U.data.national_seasons[e.season].games_played[m].home_team+".png",this.provider),player_name:U.data.national_seasons[e.season].games_played[m].home_team_acronym+" "+U.data.national_seasons[e.season].games_played[m].home_team_score+" : "+U.data.national_seasons[e.season].games_played[m].visiting_team_score+" "+U.data.national_seasons[e.season].games_played[m].visiting_team_acronym,team_id:U.data.team_id,has_relevants:U.data.national_seasons[e.season].games_played[m].has_relevants,team_id_b:U.data.national_seasons[e.season].games_played[m].home_team,season_id:U.data.national_seasons[e.season].games_played[m].season_id,name:U.data.national_seasons[e.season].games_played[m].player_name,seasonname:U.data.national_seasons[e.season].name.replace("Clausura","CL ").replace("Apertura","AP "),game_id:U.data.national_seasons[e.season].games_played[m].game_id,match:U.data.national_seasons[e.season].games_played[m].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(U.data.national_seasons[e.season].games_played[m].date),scorehome:U.data.national_seasons[e.season].games_played[m].home_team_score,scoreaway:U.data.national_seasons[e.season].games_played[m].visiting_team_score,hometeamacronym:U.data.national_seasons[e.season].games_played[m].home_team_acronym,visitingteamacronym:U.data.national_seasons[e.season].games_played[m].visiting_team_acronym,background:U.data.info_thumbnails.images.background_player_in_action[0]?Ph("https://golstatsimages.blob.core.windows.net/images-library/"+U.data.info_thumbnails.images.background_player_in_action[0],this.provider):U.data.info_thumbnails.player_profile,backgroundhome:U.data.national_seasons[e.season].games_played[m].info_thumbnails.home_colors.background_color,backgroundaway:U.data.national_seasons[e.season].games_played[m].info_thumbnails.away_colors.background_color,logohome:Ph("https://golstatsimages.blob.core.windows.net/teams-150/"+U.data.national_seasons[e.season].games_played[m].home_team+".png",this.provider),logoaway:Ph("https://golstatsimages.blob.core.windows.net/teams-150/"+U.data.national_seasons[e.season].games_played[m].visiting_team+".png",this.provider),total:U.data.national_seasons[e.season].games_played[m].matchday_abbreviation.replace("M","Jor "),background_card:"https://golstatsimages.blob.core.windows.net/golstats2-teams/"+U.data.national_seasons[e.season].games_played[m].home_team+"_"+U.data.national_seasons[e.season].games_played[m].season_id+"_r1.jpg"},s.push(B)}else if(e.type=="historic"){const U=oS("https://fxtcaw9tw6.execute-api.us-east-2.amazonaws.com/prod/historic/games/"+e.game,this.provider,this.isDevApis);if(this.lastHistoricGamesUrl===U)return;this.lastHistoricGamesUrl=U;const m=await i.get(U);for(let r=0;r<m.data.plays.length;r++)B={teamId:m.data.plays[r][2],player:"Jornada "+m.data.plays[r][6],player_name:m.data.plays[r][4],season_id:m.data.plays[r][31],game_id:m.data.plays[r][3],img:"https://img1.wallspic.com/previews/0/9/1/0/20190/20190-football_player-football-fun-player-sports-x750.jpg"},s.length>0?this.privilegesTeamId==0?!s.filter(y=>y.game_id===m.data.plays[r][3]).length>0&&s.push(B):!s.filter(y=>y.game_id===m.data.plays[r][3]).length>0&&m.data.plays[r][2]===this.privilegesTeamId&&s.push(B):(this.privilegesTeamId==0||m.data.plays[r][2]===this.privilegesTeamId)&&s.push(B);const g=m.data.thumbnails;for(let r=0;r<s.length;r++){const y=Math.floor(Math.random()*g[s[r].game_id].info_thumbnails.images.background_default_games.length);s[r].background="https://golstatsimages.blob.core.windows.net/images-library/"+g[s[r].game_id].info_thumbnails.images.background_default_games[y],s[r].backgroundhome=g[s[r].game_id].info_thumbnails.home_colors.background_color,s[r].backgroundaway=g[s[r].game_id].info_thumbnails.away_colors.background_color,s[r].logoaway=Ph("https://golstatsimages.blob.core.windows.net/teams-150/"+g[s[r].game_id].info_thumbnails.away_colors.team_id+".png",this.provider),s[r].logohome=Ph("https://golstatsimages.blob.core.windows.net/teams-150/"+g[s[r].game_id].info_thumbnails.home_colors.team_id+".png",this.provider),s[r].match=g[s[r].game_id].matchday_name.replace("Matchday","Jor"),s[r].playingAs=g[s[r].game_id].info_thumbnails.home_colors.team_id===s[r].teamId?1:2,s[r].seasonname=g[s[r].game_id].season_name,s[r].score=g[s[r].game_id].score[0]+" - "+g[s[r].game_id].score[1],s[r].category=0}}else{const U=await i.get(oS("https://ws8d8ye2ii.execute-api.us-west-2.amazonaws.com/prod/v4/seasonsByTeam/"+e.team,this.provider,this.isDevApis));for(let m=0;m<U.data.seasons[e.season].games.length;m++){const g=Math.floor(Math.random()*U.data.seasons[e.season].games[m].info_thumbnails.images.background_default_games.length);B={playingAs:this.getPlayingAs(U.data.seasons[e.season].games[m],U.data.team_id),category:0,game_id:U.data.seasons[e.season].games[m].game_id,photo_profile:Ph("https://golstatsimages.blob.core.windows.net/teams-150/"+U.data.seasons[e.season].games[m].visiting_team+".png",this.provider),team_logo:Ph("https://golstatsimages.blob.core.windows.net/teams-150/"+U.data.seasons[e.season].games[m].home_team+".png",this.provider),player_name:U.data.seasons[e.season].games[m].home_team_acronym+" "+U.data.seasons[e.season].games[m].home_team_score+" : "+U.data.seasons[e.season].games[m].visiting_team_score+" "+U.data.seasons[e.season].games[m].visiting_team_acronym,team_id_b:U.data.seasons[e.season].games[m].home_team,team_id:U.data.team_id,season_id:U.data.seasons[e.season].games[m].season_id,name:"",seasonname:U.data.seasons[e.season].name,match:U.data.seasons[e.season].games[m].matchday_name.replace("Matchday","Jor"),score:U.data.seasons[e.season].games[m].home_team_score+" : "+U.data.seasons[e.season].games[m].visiting_team_score,background:"https://golstatsimages.blob.core.windows.net/images-library/"+U.data.seasons[e.season].games[m].info_thumbnails.images.background_default_games[g],backgroundhome:U.data.seasons[e.season].games[m].info_thumbnails.home_colors.background_color,backgroundaway:U.data.seasons[e.season].games[m].info_thumbnails.away_colors.background_color,logohome:Ph("https://golstatsimages.blob.core.windows.net/teams-150/"+U.data.seasons[e.season].games[m].home_team+".png",this.provider),logoaway:Ph("https://golstatsimages.blob.core.windows.net/teams-150/"+U.data.seasons[e.season].games[m].visiting_team+".png",this.provider),total:U.data.seasons[e.season].games[m].matchday_abbreviation.replace("M","Jor "),background_card:"https://golstatsimages.blob.core.windows.net/golstats2-teams/"+U.data.seasons[e.season].games[m].home_team+"_"+U.data.seasons[e.season].games[m].season_id+"_r1.jpg"},s.push(B)}}this.printData=s,this.$emit("loading",!1)},setUpResizeObserver(){this.resizeObserverGSCH=new ResizeObserver(e=>{for(const i of e)this.highlightsWidth=i.contentRect.width}),this.resizeObserverGSCH.observe(this.$refs.highlights)}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},1e3)}},iZe={key:0,ref:"highlights",class:"carousel-high-lights",id:"carousel-high-lights"};function oZe(e,i,s,B,U,m){const g=t.resolveComponent("GSCThumbnailHighlightGameHistoric"),r=t.resolveComponent("GSCThumbnailHighlightGamePlayer"),y=t.resolveComponent("GSCCarousel");return m.printDataFiltered.length>0&&s.canPlayVideos?(t.openBlock(),t.createElementBlock("div",iZe,[t.createVNode(y,t.mergeProps(m.carouselProps,{items:m.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:u})=>[s.data.type=="team"||s.data.type=="historic"?(t.openBlock(),t.createBlock(g,{key:0,"is-safari":m.isSafari,items:u,"color-background-home":u.backgroundhome,"color-background-away":u.backgroundaway,"logo-home":u.logohome,"logo-away":u.logoaway,background:u.background,matchday:u.match,onOnclickPlayVideos:a=>m.onclickPlayVideos({data:u,type:1}),"season-name":u.seasonname,score:u.score},null,8,["is-safari","items","color-background-home","color-background-away","logo-home","logo-away","background","matchday","onOnclickPlayVideos","season-name","score"])):(t.openBlock(),t.createBlock(r,{key:1,"is-safari":m.isSafari,type:"player","name-player":u.name,"type-style":"game","color-background-home":u.backgroundhome,"color-background-away":u.backgroundaway,"type-img":"0",date:u.date,"season-name":u.seasonname,matchday:u.match,background:u.background,"name-home-team":u.hometeamacronym,"name-away-team":u.visitingteamacronym,"name-category":s.title,onOnclickPlayVideos:a=>m.onclickPlayVideos({data:u,type:2}),"logo-away":u.logoaway,"logo-home":u.logohome,"score-home":u.scorehome,"photo-profile":u.photo_profile,"score-away":u.scoreaway},null,8,["is-safari","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 sZe=rS(nZe,[["render",oZe]]),fYt="",mYt="",gYt="",lZe={components:{GSCSlider:R2},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.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"}},computed:{},methods:{getImageUrl:Mf,onclickPlayVideos(e){const i=[1,2,3];let s={seasonId:this.game.is_live==1?this.dataProminentAll.season_id:this.game.regularSeasonId,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:i,playData:{},advancedFilter:{playListTitle:""}};this.$emit("openmedia",s)},hasDecimal(e){return typeof e!="number"?!1:e.toString().includes(".")},formatNumber(e){if(typeof e=="number")if(this.hasDecimal(e)){const i=Math.round(e*10)/10;return Number.isInteger(i)?i.toString()+"%":i.toFixed(1)+"%"}else return e+"%";else return"0"},formatNumber2(e){if(typeof e=="number")if(this.hasDecimal(e)){const i=Math.round(e*10)/10;return Number.isInteger(i)?i.toString()+"%":i.toFixed(1)+"%"}else return e;else return"0"},textoConNegritas(e){if(!e)return"";const i=e.split(/(\*.*?\*)/g).filter(U=>U.trim()!=="");let s=Math.ceil(i.length/2),B="";return i.forEach((U,m)=>{m===s&&(B+="<br/>"),U.startsWith("*")&&U.endsWith("*")?B+=`<span class="text-bold-prominent">${U.slice(1,-1)}</span>`:U.trim()!==""&&(B+=`<span class="text-prominent">${U}</span>`)}),B},async getDataProminentPrematch(){try{const e=this.$store.getters.getProviderId,i=this.$store.getters.getIsDevApis;let s="";if(this.isWidget&&this.teamWidget!=0?s=dd("https://1qvtl1japi.execute-api.us-east-2.amazonaws.com/prod/highlights/seasons/"+this.game.seasonId+"/games/"+this.game.gameId+"/prematch",e,i)+"?t="+this.teamWidget:s=dd("https://1qvtl1japi.execute-api.us-east-2.amazonaws.com/prod/highlights/seasons/"+this.game.seasonId+"/games/"+this.game.gameId+"/prematch",e,i),this.lastDataProminentUrl!==s){this.$emit("loading",!0);const U=await pd.create({headers:{Authorization:`${this.tokenPremium}`}}).get(s);this.dataProminent=U.data.data,this.dataProminentAll=U.data,this.$emit("loading",!1)}}catch(e){return Promise.reject(e)}},async getDataProminent(){try{const e=this.$store.getters.getProviderId,i=this.$store.getters.getIsDevApis;let s="";if(this.isWidget&&this.teamWidget!=0?s=dd("https://1qvtl1japi.execute-api.us-east-2.amazonaws.com/prod/highlights/seasons/"+this.game.seasonId+"/games/"+this.game.gameId,e,i)+"?t="+this.teamWidget:s=dd("https://1qvtl1japi.execute-api.us-east-2.amazonaws.com/prod/highlights/seasons/"+this.game.seasonId+"/games/"+this.game.gameId,e,i),this.lastDataProminentUrl!==s){this.$emit("loading",!0);const U=await pd.create({headers:{Authorization:`${this.tokenPremium}`}}).get(s);this.dataProminent=U.data.data,this.dataProminentAll=U.data,setTimeout(()=>{this.$emit("loading",!1)},500)}}catch(e){return Promise.reject(e)}}}},cZe={class:"data-prominent-game"},dZe={class:"title-data"},uZe={class:"item-data-text"},hZe=["innerHTML"],pZe={class:"contain-stats-control"},fZe={key:0,class:"title-total"},mZe={key:1,class:"item-total"},gZe=["onClick"],yZe={"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"};function vZe(e,i,s,B,U,m){const g=t.resolveComponent("GSCSlider");return t.openBlock(),t.createElementBlock("div",cZe,[t.createElementVNode("div",dZe,[s.game.game_status!=4||s.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(U.dataProminent,(r,y)=>(t.openBlock(),t.createElementBlock("div",{key:y,class:"item-prominent-data"},[t.createElementVNode("div",{class:"item-percent-shield",style:t.normalizeStyle("background:"+r.custom_colors.background_color)},[t.createElementVNode("div",{class:"item-team",style:t.normalizeStyle(r.player_id?e.$store.getters.getProviderId==1?"background-image:url(https://golstatsimages.blob.core.windows.net/players-profile/"+r.player_id+".png);":"background-image:url(https://golstatsimages.blob.core.windows.net/players-profile/"+e.$store.getters.getProviderId+"/"+r.player_id+".png);border: solid 1.4px "+r.custom_colors.background_color:"background-image:url("+m.getImageUrl("https://golstatsimages.blob.core.windows.net/teams-80/"+r.team_id+".png",e.$store.getters.getProviderId)+");border: solid 1.4px "+r.custom_colors.background_color)},null,4),r.show_value==1?(t.openBlock(),t.createElementBlock("div",{key:0,class:"item-percent",style:t.normalizeStyle("color:"+r.custom_colors.font_color)},[r.is_percentage==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[r.title=="Distancia recorrida"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(m.formatNumber(r.percent)),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(m.formatNumber(r.percent)),1)],64))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(r.total),1)],64))],4)):t.createCommentVNode("",!0)],4),t.createElementVNode("div",uZe,[t.createElementVNode("div",{class:"container-text",innerHTML:m.textoConNegritas(r.description)},null,8,hZe),t.createElementVNode("div",pZe,[r.show_value==1?(t.openBlock(),t.createElementBlock("div",fZe,"TOTAL: ")):t.createCommentVNode("",!0),r.show_value==1?(t.openBlock(),t.createElementBlock("div",mZe,[r.is_percentage==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(m.formatNumber(r.percent)),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[r.title=="Distancia recorrida"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(r.total)+" km",1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(r.total),1)],64))],64))])):t.createCommentVNode("",!0),s.canPlayVideos&&r.show_video==1&&r.show_value==1?(t.openBlock(),t.createElementBlock("div",{key:2,class:"btn-play",style:t.normalizeStyle(r.title=="Productividad"?"margin-left: 0px !important;":""),onClick:u=>m.onclickPlayVideos({data:r})},[(t.openBlock(),t.createElementBlock("svg",yZe,i[0]||(i[0]=[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)])))],12,gZe)):t.createCommentVNode("",!0)])])]))),128))]),_:1})])}const bZe=Ki(lZe,[["render",vZe],["__scopeId","data-v-27c955f7"]]),yYt="",xZe={components:{GSCCheckbox:H1},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.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",objectZeroValues:{numberValue:0,numberBarPercent:0}}},computed:{...gp("nextGeneral",["gameForAnalysis","seasonId"]),...Ld("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 i=await pd.create({headers:{Authorization:`${this.tokenPremium}`}}).get(dd(this.url+this.game.gameId,this.$store.getters.getProviderId,this.$store.getters.getIsDevApis));this.dataPosession=i.data}catch(e){return Promise.reject(e)}},async getDataPosessionPrematch(e){try{const s=await pd.create({headers:{Authorization:`${this.tokenPremium}`}}).get(dd(this.urlPrematch+e+"/posessions",this.$store.getters.getProviderId,this.$store.getters.getIsDevApis));for(const B in s.data.teams)s.data.teams.hasOwnProperty(B)&&(this.arrTeams[B]=s.data.teams[B])}catch(i){return Promise.reject(i)}},onCheckInactive(e){e?this.areInactiveVisible=!0:this.areInactiveVisible=!1},posesionValue(e){return e==null||e===""?"-":e},deleteDecimalZero(e){const i=typeof e=="string"?parseFloat(e):e;return typeof i=="number"&&!isNaN(i)?i%1===0?i:i%1===0?Math.floor(i):i: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,i,s){if(!i.game_id)return this.objectZeroValues;const B=e.homeTeam.accomplished.avgPostGame+e.visitingTeam.accomplished.avgPostGame,U=e[s].accomplished.avgPostGame/B;return e[s].accomplished.avgPostGame?{numberValue:U<1?U*100:U,numberBarPercent:e[s].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})},beforeUnmount(){clearInterval(this.intervalIdPossesion)}},_Ze={key:0,class:"field-posesion-prominent"},wZe={key:0,class:"title"},kZe={class:"info-data-item"},SZe={class:"item-indicador"},CZe={class:"item-indicador-value"},TZe={key:0,class:"inactiveInfo"},AZe={class:"info-data-item"},EZe={class:"item-indicador"},MZe={class:"item-indicador-value"},IZe={class:"info-data-item"},PZe={class:"item-indicador"},LZe={class:"item-indicador-value"},BZe={class:"info-data-item"},zZe={class:"item-indicador"},OZe={class:"item-indicador-value"},DZe={key:0,class:"inactiveInfo"},NZe={class:"info-data-item"},FZe={class:"item-indicador"},RZe={class:"item-indicador-value"},VZe={class:"info-data-item"},jZe={class:"item-indicador"},UZe={class:"item-indicador-value"};function GZe(e,i,s,B,U,m){var r,y,u,a,x,v,_,p,n,o,c,l,h,b,w,C;const g=t.resolveComponent("GSCCheckbox");return(s.game.game_status==1||s.game.game_status==0||s.game.is_live==1?e.arrayFilledDataSortedByPriority.length>0:U.arrTeams.length>0)?(t.openBlock(),t.createElementBlock("div",_Ze,[s.widthSection>760?(t.openBlock(),t.createElementBlock("div",wZe,"Porcentajes")):t.createCommentVNode("",!0),s.game.game_status==1||s.game.game_status==0||s.game.is_live==1?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(s.widthSection>760?"field-container":s.widthSection>520?"field-container-movil":s.widthSection>440?"field-container-movil-2":s.widthSection>360?"field-container-movil-3":"field-container-movil-4")},[U.dataPosession.has_posession==1?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(s.widthSection>1020?"time-show":s.widthSection>920?"time-show-table-xl":s.widthSection>880?"time-show-table-xl-2":s.widthSection>820?"time-show-table-xl-3":s.widthSection>760?"time-show-table-xl-4":"time-show-movil")},[t.createVNode(g,{label:"Mostrar tiempo inactivo",fontFamily:"Poppins-Regular","onUpdate:modelValue":m.onCheckInactive,"label-color":"#8c9399"},null,8,["onUpdate:modelValue"])],2)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(s.widthSection>1020?"field-data-container":s.widthSection>920?"field-data-container-xl":s.widthSection>880?"field-data-container-xl-2":s.widthSection>820?"field-data-container-xl-3":s.widthSection>760?"field-data-container-xl-4":"field-data-container-movil")},[t.createElementVNode("div",{class:t.normalizeClass(U.areInactiveVisible?"container-data-img-home":"container-data-img-home50")},[t.createElementVNode("div",{class:t.normalizeClass(U.areInactiveVisible?"homeInfo":"homeInfo50"),style:t.normalizeStyle("background-image:url("+s.game.homeTeam.logo.replace("80","150")+")")},null,6),t.createElementVNode("div",kZe,[t.createElementVNode("div",{class:t.normalizeClass(s.widthSection>580?"item-ref-data":"item-ref-data-movil")},[t.createElementVNode("div",SZe,[t.createElementVNode("div",CZe,[U.areInactiveVisible?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(U.dataPosession.active_time.home),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(U.dataPosession.home),1)],64))]),i[0]||(i[0]=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))]),t.createElementVNode("div",{class:t.normalizeClass(s.widthSection>580?"title-indicador":"title-indicador-movil")}," Pos. "+t.toDisplayString(s.game.homeTeam.acronym),3)],2)])],2),U.areInactiveVisible&&U.dataPosession.has_posession==1?(t.openBlock(),t.createElementBlock("div",TZe,[t.createElementVNode("div",AZe,[t.createElementVNode("div",{class:t.normalizeClass(s.widthSection>580?"item-ref-data":"item-ref-data-movil")},[t.createElementVNode("div",EZe,[t.createElementVNode("div",MZe,t.toDisplayString(U.dataPosession.active_time.inactive_time),1),i[1]||(i[1]=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))]),t.createElementVNode("div",{class:t.normalizeClass(s.widthSection>580?"title-indicador":"title-indicador-movil")},[s.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(U.areInactiveVisible?"container-data-img-away":"container-data-img-away50")},[t.createElementVNode("div",{class:t.normalizeClass(U.areInactiveVisible?"awayInfo":"awayInfo50"),style:t.normalizeStyle("background-image:url("+s.game.awayTeam.logo.replace("80","150")+")")},null,6),t.createElementVNode("div",IZe,[t.createElementVNode("div",{class:t.normalizeClass(s.widthSection>580?"item-ref-data":"item-ref-data-movil")},[t.createElementVNode("div",PZe,[t.createElementVNode("div",LZe,[U.areInactiveVisible?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(U.dataPosession.active_time.away),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(U.dataPosession.away),1)],64))]),i[2]||(i[2]=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))]),t.createElementVNode("div",{class:t.normalizeClass(s.widthSection>580?"title-indicador":"title-indicador-movil")}," Pos. "+t.toDisplayString(s.game.awayTeam.acronym),3)],2)])],2)],2)],2)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[U.arrTeams.length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(s.widthSection>760?"field-container":s.widthSection>520?"field-container-movil":s.widthSection>440?"field-container-movil-2":s.widthSection>360?"field-container-movil-3":"field-container-movil-4")},[((r=U.arrTeams[s.teamSelected.teamId])==null?void 0:r.has_posession)==1?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(s.widthSection>1020?"time-show":s.widthSection>920?"time-show-table-xl":s.widthSection>880?"time-show-table-xl-2":s.widthSection>820?"time-show-table-xl-3":s.widthSection>760?"time-show-table-xl-4":"time-show-movil")},[t.createVNode(g,{label:"Mostrar tiempo inactivo",fontFamily:"Poppins-Regular","onUpdate:modelValue":m.onCheckInactive,"label-color":"#8c9399"},null,8,["onUpdate:modelValue"])],2)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(s.widthSection>1020?"field-data-container":s.widthSection>920?"field-data-container-xl":s.widthSection>880?"field-data-container-xl-2":s.widthSection>820?"field-data-container-xl-3":s.widthSection>760?"field-data-container-xl-4":"field-data-container-movil")},[t.createElementVNode("div",{class:t.normalizeClass(U.areInactiveVisible?"container-data-img-home":"container-data-img-home50")},[s.game.homeTeam.team_id==s.teamSelected.teamId?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(U.areInactiveVisible?"homeInfo":"homeInfo50"),style:t.normalizeStyle("background-image:url("+s.game.homeTeam.logo.replace("80","150")+")")},null,6)):t.createCommentVNode("",!0),t.createElementVNode("div",BZe,[t.createElementVNode("div",{class:t.normalizeClass(s.widthSection>580?"item-ref-data":"item-ref-data-movil")},[t.createElementVNode("div",zZe,[t.createElementVNode("div",OZe,[U.areInactiveVisible?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[s.game.awayTeam.team_id==s.teamSelected.teamId?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(m.posesionValue((u=(y=U.arrTeams[s.teamSelected.teamId])==null?void 0:y.active_time)==null?void 0:u.away)),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(m.posesionValue((x=(a=U.arrTeams[s.teamSelected.teamId])==null?void 0:a.active_time)==null?void 0:x.home)),1)],64))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[s.game.awayTeam.team_id==s.teamSelected.teamId?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(m.posesionValue((v=U.arrTeams[s.teamSelected.teamId])==null?void 0:v.away)),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(m.posesionValue((_=U.arrTeams[s.teamSelected.teamId])==null?void 0:_.home)),1)],64))],64))]),i[3]||(i[3]=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))]),s.game.homeTeam.team_id==s.teamSelected.teamId?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(s.widthSection>580?"title-indicador":"title-indicador-movil")}," Pos. "+t.toDisplayString(s.game.homeTeam.acronym),3)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(s.widthSection>580?"title-indicador":"title-indicador-movil")}," Pos. Rival ",2))],2)])],2),U.areInactiveVisible&&((p=U.arrTeams[s.teamSelected.teamId])==null?void 0:p.has_posession)==1?(t.openBlock(),t.createElementBlock("div",DZe,[t.createElementVNode("div",NZe,[t.createElementVNode("div",{class:t.normalizeClass(s.widthSection>580?"item-ref-data":"item-ref-data-movil")},[t.createElementVNode("div",FZe,[t.createElementVNode("div",RZe,t.toDisplayString(m.posesionValue((o=(n=U.arrTeams[s.teamSelected.teamId])==null?void 0:n.active_time)==null?void 0:o.inactive_time)),1),i[4]||(i[4]=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))]),t.createElementVNode("div",{class:t.normalizeClass(s.widthSection>580?"title-indicador":"title-indicador-movil")},[s.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(U.areInactiveVisible?"container-data-img-away":"container-data-img-away50")},[s.game.awayTeam.team_id==s.teamSelected.teamId?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(U.areInactiveVisible?"awayInfo":"awayInfo50"),style:t.normalizeStyle("background-image:url("+s.game.awayTeam.logo.replace("80","150")+")")},null,6)):t.createCommentVNode("",!0),t.createElementVNode("div",VZe,[t.createElementVNode("div",{class:t.normalizeClass(s.widthSection>580?"item-ref-data":"item-ref-data-movil")},[t.createElementVNode("div",jZe,[t.createElementVNode("div",UZe,[U.areInactiveVisible?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[s.game.homeTeam.team_id==s.teamSelected.teamId?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(m.posesionValue((l=(c=U.arrTeams[s.teamSelected.teamId])==null?void 0:c.active_time)==null?void 0:l.away)),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(m.posesionValue((b=(h=U.arrTeams[s.teamSelected.teamId])==null?void 0:h.active_time)==null?void 0:b.home)),1)],64))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[s.game.homeTeam.team_id==s.teamSelected.teamId?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(m.posesionValue((w=U.arrTeams[s.teamSelected.teamId])==null?void 0:w.away)),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(m.posesionValue((C=U.arrTeams[s.teamSelected.teamId])==null?void 0:C.home)),1)],64))],64))]),i[5]||(i[5]=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))]),s.game.awayTeam.team_id==s.teamSelected.teamId?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(s.widthSection>580?"title-indicador":"title-indicador-movil")}," Pos. "+t.toDisplayString(s.game.awayTeam.acronym),3)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(s.widthSection>580?"title-indicador":"title-indicador-movil")}," Pos. Rival ",2))],2)])],2)],2)],2)):t.createCommentVNode("",!0)],64))])):t.createCommentVNode("",!0)}const HZe=Ki(xZe,[["render",GZe],["__scopeId","data-v-5314f1ba"]]),vYt="",sS={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(i){throw new Error(i)}}}},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)}}},CF=()=>{t.useCssVars(e=>({ec641b3a:e.backgroundColor,"66cc4678":e.widthCircle,"1c5ce009":e.heightCircle}))},TF=sS.setup;sS.setup=TF?(e,i)=>(CF(),TF(e,i)):CF;const ZZe={key:0,class:"text-left"},XZe=["width","src"],WZe=["checked"],YZe=["width","src"],qZe={key:3,class:"text-right"};function JZe(e,i,s,B,U,m){return t.openBlock(),t.createElementBlock("div",{class:"gsc-switch-radio",style:t.normalizeStyle(m.customText)},[s.textOptionLeft!=""&&!s.hiddenLabels?(t.openBlock(),t.createElementBlock("span",ZZe,t.toDisplayString(s.textOptionLeft),1)):t.createCommentVNode("",!0),s.iconA!=""?(t.openBlock(),t.createElementBlock("img",{key:1,width:s.widthIcons,src:s.iconA},null,8,XZe)):t.createCommentVNode("",!0),t.createElementVNode("input",{type:"checkbox",id:"toggle-btn",onChange:i[0]||(i[0]=(...g)=>m.handleSwitchChange&&m.handleSwitchChange(...g)),checked:U.OptionDefault},null,40,WZe),t.createElementVNode("label",{for:"toggle-btn",style:t.normalizeStyle([m.customStyle,{"--circle-color":s.circleColorSwitch}])},null,4),s.iconB!=""?(t.openBlock(),t.createElementBlock("img",{key:2,width:s.widthIcons,src:s.iconB},null,8,YZe)):t.createCommentVNode("",!0),s.textOptionRight!=""&&!s.hiddenLabels?(t.openBlock(),t.createElementBlock("span",qZe,t.toDisplayString(s.textOptionRight),1)):t.createCommentVNode("",!0)],4)}const AF=Ki(sS,[["render",JZe],["__scopeId","data-v-62d6b055"]]),bYt="";let EF=null;const lS={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:{isSafari(){return jI()},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<=360?"play-button360":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<=320?"thumbnail-highlights300":e<=330?"thumbnail-highlights310":e<=340?"thumbnail-highlights320":e<=360?"thumbnail-highlights330":e<=395?"thumbnail-highlights350":e<=430?"thumbnail-highlights400":e<=470?"thumbnail-highlights470":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)EF=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),this.$refs.gamesContainer&&EF.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},MF=()=>{t.useCssVars(e=>({"62b2f5a6":e.colorBackgroundHome+"45","3b3378f7":e.colorBackgroundAway+"45","9fbf8878":e.colorBackgroundHome,"9fc5ac5a":e.colorBackgroundAway}))},IF=lS.setup;lS.setup=IF?(e,i)=>(MF(),IF(e,i)):MF;const $Ze=["src"],KZe=["src"],QZe=["src"],eXe={class:"text-container"};function tXe(e,i,s,B,U,m){return t.openBlock(),t.createElementBlock("div",{ref:"gamesContainer",class:t.normalizeClass(m.thumbnailhighlights)},[s.canPlayVideos?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(m.playbutton),onClick:i[0]||(i[0]=(...g)=>m.onclickPlayVideos&&m.onclickPlayVideos(...g))},i[1]||(i[1]=[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)]),2)):t.createCommentVNode("",!0),s.dateGame!=""?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(m.date)},t.toDisplayString(s.dateGame),3)):t.createCommentVNode("",!0),s.matchday!=""&&s.seasonName!=""?(t.openBlock(),t.createElementBlock("div",{key:2,class:t.normalizeClass(m.containerinfogame)},[s.matchday!=""?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(m.matchcontainer)},t.toDisplayString(s.matchday),3)):t.createCommentVNode("",!0),s.seasonName!=""?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(m.seasoncontainer)},t.toDisplayString(s.seasonName),3)):t.createCommentVNode("",!0)],2)):t.createCommentVNode("",!0),i[2]||(i[2]=t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/paper-texture.png",alt:"",class:"paper-texture position-image"},null,-1)),t.createElementVNode("img",{src:s.background,alt:"",class:"bkg-blackwhite position-image",style:t.normalizeStyle({filter:m.isSafari?"none":""})},null,12,$Ze),t.createElementVNode("div",{class:t.normalizeClass([m.baselogo,"position-image"])},null,2),t.createElementVNode("div",{class:t.normalizeClass(m.baselogoright)},null,2),i[3]||(i[3]=t.createElementVNode("div",{class:"gradient-back position-image"},null,-1)),i[4]||(i[4]=t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/halftone-texture.png",alt:"",class:"halftone-texture position-image"},null,-1)),t.createElementVNode("img",{src:s.logoHome,alt:"",class:t.normalizeClass(m.teamlogo)},null,10,KZe),t.createElementVNode("img",{src:s.logoAway,alt:"",class:t.normalizeClass(m.logoright)},null,10,QZe),t.createElementVNode("div",eXe,[t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(m.titlename)},t.toDisplayString(s.titleCategory),3)])],2)}const aXe=Ki(lS,[["render",tXe],["__scopeId","data-v-ae14b353"]]),xYt="";let PF=null;const rXe={components:{GSCThumbnailHighlightGameHistoric:aXe},props:{game:{type:Object,default:()=>{}},titleCard:{type:String,default:"RESUMEN"},canPlayVideos:{type:Boolean,default:!1}},watch:{},data(){return{lastDataGameUrl:"",dataProminent:[],gameInfo:{},gamesContainerWidth:0,showHighlight:!1,showHighlightGoals:!1,item:{backgroundhome:"",backgroundaway:"",logohome:"",logoaway:"",background:"",match:"",seasonname:"",score:""},tournamentId:0,token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"}},computed:{},methods:{onclickPlayVideos(e){var i=[];e.type==2?e.data.position_id==1?e.data.category==0?i=this.$store.getters.getProviderId==1?[55,324,323,608,39,774,802,52,53,40,54]:[393,447,472,1075,893,470,866,985,986,474,905,907,389]:i=e.data.category:e.data.category==0?i=this.$store.getters.getProviderId==1?[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]:[393,447,472,1075,992,1036,1155,1156,470,866,1035,33,873,871,38,46,985,986,389]:i=e.data.category:e.type==3?e.data.category==0?i=this.$store.getters.getProviderId==1?[607,608,12,55,54,35,14,52,15,53,466,477,40,257,39]:[1075,393,1415,1035,985,986,474,893,389]:i=e.data.category:e.data.category!=0?i=e.data.category:this.titleCard=="RESUMEN"?i=this.$store.getters.getProviderId==1?[607,608,12,55,54,35,14,52,15,53,466,477]:[393,1415,985,986,1035,1075,473,389]:i=this.$store.getters.getProviderId==1?[12,55,54,35]:[393,1415];const s=[1,2,3];let B={seasonId:e.data.season_id,mainSectionType:1,playListType:e.type,categoryIds:i,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]:s,playData:{},advancedFilter:{playListTitle:""}};e.data.category!==0&&(B.advancedFilter.mainCategoryId=e.data.category),this.$emit("openmedia",B)},async fillData(){const e=this.$store.getters.getProviderId,i=this.$store.getters.getIsDevApis,s=dd("https://fxtcaw9tw6.execute-api.us-east-2.amazonaws.com/prod/historic/games/"+this.game.gameId,e,i);if(this.lastDataGameUrl!==s){this.$emit("loading",!0),this.lastDataGameUrl=s;const B=pd.create({headers:{Authorization:`${this.token}`}}),U=await B.get(dd("https://8tvo5bp9ai.execute-api.us-west-2.amazonaws.com/prod/gamesBySeason/"+this.game.seasonId,e,i)),m=await B.get(dd("https://d2oco6mqmc.execute-api.us-west-2.amazonaws.com/prod/teamsBySeason/"+this.game.seasonId,e,i));this.tournamentId=m.data.tournament_id;const g=U.data.games.findIndex(u=>u.game_id===this.game.gameId);this.gameInfo=U.data.games[g];const r=await B.get(s);this.showHighlight=r.data==""?!1:r.data.plays.length>0;const y=this.$store.getters.getProviderId==1?[12,55,54,35]:[393,1415];this.showHighlightGoals=r.data==""?!1:r.data.plays.filter(u=>y.includes(u[0])).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]?r.data.thumbnails[r.data.game_id].score[0]+" - "+r.data.thumbnails[r.data.game_id].score[1]:"0 - 0",this.item.backgroundhome=r.data.thumbnails[r.data.game_id]?r.data.thumbnails[r.data.game_id].info_thumbnails.home_colors.background_color:"",this.item.backgroundaway=r.data.thumbnails[r.data.game_id]?r.data.thumbnails[r.data.game_id].info_thumbnails.away_colors.background_color:"",this.item.logohome=r.data.thumbnails[r.data.game_id]?Mf("https://golstatsimages.blob.core.windows.net/teams-150/"+r.data.thumbnails[r.data.game_id].home_team+".png",e):"",this.item.logoaway=r.data.thumbnails[r.data.game_id]?Mf("https://golstatsimages.blob.core.windows.net/teams-150/"+r.data.thumbnails[r.data.game_id].visiting_team+".png",e):"",this.item.background=r.data.thumbnails[r.data.game_id]?this.titleCard=="RESUMEN"?"https://golstatsimages.blob.core.windows.net/images-library/"+r.data.thumbnails[r.data.game_id].info_thumbnails.images.background_default_games[0]:"https://golstatsimages.blob.core.windows.net/images-library/Goles_CAT.jpg":"",this.$emit("showleyendlive",!!(this.showHighlight||this.showHighlightGoals)),this.$emit("showsummarylive",this.showHighlight),this.$emit("showgoalslive",this.showHighlightGoals),this.$emit("loading",!1)}},setUpResizeObserver(){if(window.ResizeObserver)PF=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),this.$refs.gamesContainer&&PF.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},async mounted(){setTimeout(()=>{this.setUpResizeObserver()},1e3),await this.fillData()}},nXe={class:"highlights-prominent-game",ref:"gamesContainer"},iXe={class:"video-partido-container__highlight"};function oXe(e,i,s,B,U,m){const g=t.resolveComponent("GSCThumbnailHighlightGameHistoric");return t.openBlock(),t.createElementBlock("div",nXe,[t.withDirectives(t.createElementVNode("div",iXe,[t.createCommentVNode("",!0),t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(U.gamesContainerWidth>865?"video-partido-container__image":"video-partido-container__image2")},[U.item.background!=""?(t.openBlock(),t.createBlock(g,{key:0,"color-background-home":U.item.backgroundhome,"color-background-away":U.item.backgroundaway,"logo-home":U.item.logohome,"logo-away":U.item.logoaway,"is-live":!0,"title-category":s.titleCard,"can-play-videos":s.canPlayVideos,background:U.item.background,matchday:U.item.match,"season-name":U.item.seasonname,onOnclickPlayVideos:i[0]||(i[0]=r=>m.onclickPlayVideos({data:U.item,type:1})),score:U.item.score},null,8,["color-background-home","color-background-away","logo-home","logo-away","title-category","can-play-videos","background","matchday","season-name","score"])):t.createCommentVNode("",!0)],2)],512),[[t.vShow,s.titleCard=="RESUMEN"&&s.canPlayVideos&&U.showHighlight||s.titleCard=="GOLES"&&s.canPlayVideos&&U.showHighlightGoals]])],512)}const sXe=Ki(rXe,[["render",oXe],["__scopeId","data-v-fcef1724"]]),_Yt="";let LF=null;const cS={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:{isSafari(){return jI()},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<=360?"play-button360":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<=320?"thumbnail-highlights300":e<=330?"thumbnail-highlights310":e<=340?"thumbnail-highlights320":e<=360?"thumbnail-highlights330":e<=395?"thumbnail-highlights350":e<=430?"thumbnail-highlights400":e<=470?"thumbnail-highlights470":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)LF=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),this.$refs.gamesContainer&&LF.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},BF=()=>{t.useCssVars(e=>({a29dd7ea:e.colorBackgroundHome+"45","691e071c":e.colorBackgroundAway+"45","39addf09":e.colorBackgroundHome,"39aacd18":e.colorBackgroundAway}))},zF=cS.setup;cS.setup=zF?(e,i)=>(BF(),zF(e,i)):BF;const lXe=["src"],cXe=["src"],dXe=["src"],uXe={class:"text-container"};function hXe(e,i,s,B,U,m){return t.openBlock(),t.createElementBlock("div",{ref:"gamesContainer",class:t.normalizeClass(m.thumbnailhighlights)},[s.isLive&&s.game.game_status!=0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(U.gamesContainerWidth>340?U.gamesContainerWidth>480?"icon-live":"icon-live-tablet":"icon-live-mobile")},i[1]||(i[1]=[t.createElementVNode("span",{class:"circle-live"},null,-1),t.createElementVNode("span",{style:{"margin-left":"3px"}},"LIVE",-1)]),2)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(m.playbutton),onClick:i[0]||(i[0]=(...g)=>m.onclickPlayVideos&&m.onclickPlayVideos(...g))},i[2]||(i[2]=[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)]),2),s.dateGame!=""?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(m.date)},t.toDisplayString(s.dateGame),3)):t.createCommentVNode("",!0),s.matchday!=""&&s.seasonName!=""?(t.openBlock(),t.createElementBlock("div",{key:2,class:t.normalizeClass(m.containerinfogame)},[s.matchday!=""?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(m.matchcontainer)},t.toDisplayString(s.matchday),3)):t.createCommentVNode("",!0),s.seasonName!=""?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(m.seasoncontainer)},t.toDisplayString(s.seasonName),3)):t.createCommentVNode("",!0)],2)):t.createCommentVNode("",!0),i[3]||(i[3]=t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/paper-texture.png",alt:"",class:"paper-texture position-image"},null,-1)),t.createElementVNode("img",{src:s.background,alt:"",class:"bkg-blackwhite position-image",style:t.normalizeStyle({filter:m.isSafari?"none":""})},null,12,lXe),t.createElementVNode("div",{class:t.normalizeClass([m.baselogo,"position-image"])},null,2),t.createElementVNode("div",{class:t.normalizeClass(m.baselogoright)},null,2),i[4]||(i[4]=t.createElementVNode("div",{class:"gradient-back position-image"},null,-1)),i[5]||(i[5]=t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/halftone-texture.png",alt:"",class:"halftone-texture position-image"},null,-1)),t.createElementVNode("img",{src:s.logoHome,alt:"",class:t.normalizeClass(m.teamlogo)},null,10,cXe),t.createElementVNode("img",{src:s.logoAway,alt:"",class:t.normalizeClass(m.logoright)},null,10,dXe),t.createElementVNode("div",uXe,[t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(m.titlename)},t.toDisplayString(s.titleCategory),3)])],2)}const pXe=Ki(cS,[["render",hXe],["__scopeId","data-v-d9d70ba8"]]),wYt="";let OF=null;const fXe={components:{GSCThumbnailHighlightGameHistoricLive:pXe},props:{timeLiveHighlightsProminentAndVideo:{type:Number,default:6e4},game:{type:Object,default:()=>{}},titleCard:{type:String,default:"RESUMEN"},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 i=[];e.type==2?e.data.position_id==1?e.data.category==0?i=this.$store.getters.getProviderId==1?[55,324,323,608,39,774,802,52,53,40,54]:[393,447,472,1075,893,470,866,985,986,474,905,907,389]:i=e.data.category:e.data.category==0?i=this.$store.getters.getProviderId==1?[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]:[393,447,472,1075,992,1036,1155,1156,470,866,1035,33,873,871,38,46,985,986,389]:i=e.data.category:e.type==3?e.data.category==0?i=this.$store.getters.getProviderId==1?[607,608,12,55,54,35,14,52,15,53,466,477,40,257,39]:[1075,393,1415,1035,985,986,474,893,389]:i=e.data.category:e.type==4?i=this.$store.getters.getProviderId==1?[12,55,"35_r","54_r"]:[393,1415]:e.data.category!=0?i=e.data.category:this.titleCard=="RESUMEN"?i=this.$store.getters.getProviderId==1?[607,608,12,55,54,35,14,52,15,53,466,477]:[393,1415,985,986,1035,1075,473,389]:i=this.$store.getters.getProviderId==1?[12,55,54,35]:[393,1415];const s=[1,2,3];let B={seasonId:e.data.season_id,mainSectionType:1,playListType:e.type,categoryIds:i,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]:s,playData:{},advancedFilter:{playListTitle:""}};e.data.category!==0&&(B.advancedFilter.mainCategoryId=e.data.category),this.$emit("openmedia",B)},async getLiveHighlights(){const e=this.$store.getters.getProviderId,i=this.$store.getters.getIsDevApis,B=await pd.create({headers:{Authorization:`${this.token}`}}).get(dd("https://fxtcaw9tw6.execute-api.us-east-2.amazonaws.com/prod/live/historic/games/"+this.game.gameId,e,i));if(B.data!=""){this.showHighlight=B.data==""?!1:B.data.plays.length>0;const U=this.$store.getters.getProviderId==1?[12,55,54,35]:[393,1415];this.showHighlightGoals=B.data==""?!1:B.data.plays.filter(m=>U.includes(m[0])).length>0,this.item.category=0,this.item.game_id=B.data.game_id,this.item.season_id=this.game.seasonId,this.item.score=B.data.thumbnails[B.data.game_id].score,this.item.backgroundhome=B.data.thumbnails[B.data.game_id].info_thumbnails.home_colors.background_color,this.item.backgroundaway=B.data.thumbnails[B.data.game_id].info_thumbnails.away_colors.background_color,this.item.logohome=Mf("https://golstatsimages.blob.core.windows.net/teams-150/"+B.data.thumbnails[B.data.game_id].home_team+".png",e),this.item.logoaway=Mf("https://golstatsimages.blob.core.windows.net/teams-150/"+B.data.thumbnails[B.data.game_id].visiting_team+".png",e),this.item.background=this.titleCard=="RESUMEN"?"https://golstatsimages.blob.core.windows.net/images-library/"+B.data.thumbnails[B.data.game_id].info_thumbnails.images.background_default_games[0]:"https://golstatsimages.blob.core.windows.net/images-library/Goles_CAT.jpg",this.$emit("showleyendlive",!!(this.showHighlight||this.showHighlightGoals)),this.$emit("showsummarylive",this.showHighlight),this.$emit("showgoalslive",this.showHighlightGoals)}},setUpResizeObserver(){if(window.ResizeObserver)OF=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainerlivehigh.clientWidth}),this.$refs.gamesContainerlivehigh&&OF.observe(this.$refs.gamesContainerlivehigh);else throw new Error("Resize observer not supported!")}},async mounted(){setTimeout(()=>{this.setUpResizeObserver()},1e3)}},mXe={class:"highlights-prominent-game",ref:"gamesContainerlivehigh"},gXe={class:"video-partido-container__highlight"},yXe={class:"video-partido-container__image"};function vXe(e,i,s,B,U,m){const g=t.resolveComponent("GSCThumbnailHighlightGameHistoricLive");return t.openBlock(),t.createElementBlock("div",mXe,[t.withDirectives(t.createElementVNode("div",gXe,[t.createCommentVNode("",!0),t.createElementVNode("div",yXe,[t.createVNode(g,{"is-live":!0,game:s.game,"color-background-home":U.item.backgroundhome,"color-background-away":U.item.backgroundaway,"logo-home":U.item.logohome,"logo-away":U.item.logoaway,"title-category":s.titleCard,background:U.item.background,onOnclickPlayVideos:i[1]||(i[1]=r=>m.onclickPlayVideos({data:U.item,type:1})),matchday:U.item.match,"season-name":U.item.seasonname,score:U.item.score},null,8,["game","color-background-home","color-background-away","logo-home","logo-away","title-category","background","matchday","season-name","score"])])],512),[[t.vShow,s.titleCard=="RESUMEN"&&s.canPlayVideos&&U.showHighlight||s.titleCard=="GOLES"&&s.canPlayVideos&&U.showHighlightGoals]])],512)}const bXe=Ki(fXe,[["render",vXe],["__scopeId","data-v-70e03fae"]]),dS="/play-icn.svg",kYt="",xXe={name:"TooltipEmpty",props:{data:{type:Object,required:!0}},computed:{showTooltip(){return{visible:this.data.visible}}},methods:{tooltipClick:function(){},closeClick:function(){this.$emit("close")}}};function _Xe(e,i,s,B,U,m){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["back-tooltip",m.showTooltip])},[t.createElementVNode("div",{class:t.normalizeClass(["box-tooltip",m.showTooltip]),onClick:i[1]||(i[1]=(...g)=>m.tooltipClick&&m.tooltipClick(...g))},[t.createElementVNode("span",{role:"button",class:"box-tooltip-close",onClick:i[0]||(i[0]=(...g)=>m.closeClick&&m.closeClick(...g))},"×"),t.renderSlot(e.$slots,"default",{},void 0,!0)],2)],2)}const wXe=Ki(xXe,[["render",_Xe],["__scopeId","data-v-b5f07af8"]]),kXe="https://golstatsimages.blob.core.windows.net/timeline/",SXe="/images/events/",CXe="generic.svg";function TXe(e,i){var U,m;const s=i==null?void 0:i.category_id,B=i==null?void 0:i.event_type_id;for(const g of e??[])if((U=g.categoryIds)!=null&&U.includes(s)||B===1&&((m=g.orWithEventType1)!=null&&m.includes(s)))return g.icon;return CXe}function AXe(e,i){return Mf(`${kXe}${e}`,i)}function EXe(e){return`${SXe}${e}`}const SYt="",MXe=["id"],IXe={class:"game-event__minute"},PXe={class:"game-event__icon"},LXe=["src"],BXe=Ki({__name:"GameEvent",props:{gameEvent:{type:Object,default:()=>{}}},emits:["click-event"],setup(e,{emit:i}){const s=e,B=i,U=jh(),m=t.inject("timelineIconsStructure",t.ref([])),g=t.computed(()=>({"--icon-bottom":s.gameEvent.isHomeTeam?"30px":"-5px","--border-color":s.gameEvent.isSelected?"#336dff":"#747c83","--background-color":s.gameEvent.isSelected?"#336dff":"#0d1d29"})),r=t.computed(()=>TXe(m.value,s.gameEvent)),y=t.computed(()=>AXe(r.value,U.getters.getProviderId));function u(x){const v=EXe(r.value);x.target.src.endsWith(v)||(x.target.src=v)}function a(){B("click-event",s.gameEvent)}return(x,v)=>(t.openBlock(),t.createElementBlock("div",{id:s.gameEvent.play_id,class:"game-event",onClick:a,style:t.normalizeStyle(g.value)},[t.createElementVNode("div",IXe,[t.createElementVNode("div",null,t.toDisplayString(e.gameEvent.minute)+"'",1)]),t.createElementVNode("div",PXe,[t.createElementVNode("img",{src:y.value,onError:u},null,40,LXe)])],12,MXe))}},[["__scopeId","data-v-4c46dc1b"]]),TYt="",zXe={class:"events-line"},OXe={class:"events-line__events"},DXe=Ki({__name:"EventsLine",props:{gameEvents:{type:Array,default:()=>[]}},emits:["click-event"],setup(e,{emit:i}){const s=i;function B(U){s("click-event",U)}return(U,m)=>(t.openBlock(),t.createElementBlock("div",zXe,[t.createVNode(t.unref(R2),{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",OXe,[m[0]||(m[0]=t.createElementVNode("div",{class:"events-line__events__line"},null,-1)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.gameEvents,g=>(t.openBlock(),t.createBlock(BXe,{key:g.id,"game-event":g,onClickEvent:B},null,8,["game-event"]))),128))])]),_:1})]))}},[["__scopeId","data-v-df0b18c7"]]),EYt="",NXe={class:"tooltip-data"},FXe=["src"],RXe={class:"game-events__team-logo"},VXe=["src"],jXe={class:"game-events__event-info"},UXe={key:0,class:"game-events__event-info__line"},GXe={key:1,class:"game-events__event-info__info"},HXe={class:"game-events__event-info__info__player-photo"},ZXe={key:0,class:"game-events__event-info__info__player-photo__img"},XXe=["src"],WXe={class:"game-events__event-info__info__event-name"},YXe={class:"game-events__event-info__info__player-name"},qXe={class:"game-events__events"},JXe={class:"game-events__team-logo"},$Xe=["src"],KXe={class:"game-events__event-info"},QXe={key:0,class:"game-events__event-info__line"},eWe={key:1,class:"game-events__event-info__info"},tWe={class:"game-events__event-info__info__player-photo"},aWe={key:0,class:"game-events__event-info__info__player-photo__img"},rWe=["src"],nWe={class:"game-events__event-info__info__event-name"},iWe={class:"game-events__event-info__info__player-name"},oWe="https://11rcgkydx3.execute-api.us-east-2.amazonaws.com/prod/games/",sWe=Ki({__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:i}){let s=null,B=0;const U=jh(),m=e,g=i,r=t.ref([]),y=L=>{const T=String(L||"").trim();if(!T)return"";const I=T.split(" ").filter(Boolean),[M,S]=T.includes(",")?T.split(","):[I.slice(1).join(" "),I[0]],z=(M||"").trim(),k=(S||"").trim();if(!k||!z)return T;let O="";for(const N of z.split(" "))if(O+=` ${N}`,N.length>3)break;return`${k.charAt(0)}.${O}`},u=t.ref(new Map),a=t.ref(""),x=t.ref(null),v=t.ref({visible:!1,link:""}),_=t.ref(new Set),p=t.ref(0),n=t.computed(()=>m.game.is_live||m.game.game_status===0),o=t.ref([]);t.provide("timelineIconsStructure",o),t.watch(()=>U.getters.getProviderId,async L=>{o.value=await vie(L)},{immediate:!0}),t.watch(()=>m.game,(L,T)=>{L&&L.gameId!==B?(_.value.clear(),B=L.gameId,h(),l(L.gameId,L.is_live&&L.game_status===4)):L&&L.is_live&&(!T||!T.is_live)?l(L.gameId,!0):L&&!L.is_live&&T.is_live&&h()},{deep:!0,immediate:!0}),t.watch(()=>a.value,(L,T)=>{if(L!==T){const I=u.value.get(T),M=u.value.get(L);I&&(I.isSelected=!1),M&&(M.playerShortName||(M.playerShortName=y(M.player_name)),M.isSelected=!0,x.value=M)}});function c(L){s=setInterval(()=>{l(L)},1e3*60*m.gameEventsIntervalMinutes)}async function l(L,T=!1){try{let I=await C(L),M=!1;L!==p.value&&(r.value=[],u.value=new Map,a.value="",_.value.clear(),p.value=L);let S=I.filter(z=>{const k=_.value.has(z.play_id);return k||_.value.add(z.play_id),!k});if(S){S=S.reduce((k,O)=>(M=O.game_finished,O.team_id&&(O.isHomeTeam=O.team_id===m.game.homeTeam.team_id,k.push(O),u.value.set(O.play_id,O)),k),[]);const z=[...r.value];b(S).forEach(k=>{n.value?z.unshift(k):z.push(k)}),r.value=n.value?b(z).reverse():b(z)}r.value&&r.value.length&&(n.value||!a.value&&r.value.length)&&(a.value=r.value[0].play_id),T&&!M?c(L):M&&h()}catch(I){console.error(I)}}function h(){s&&(clearInterval(s),s=null)}function b(L){return L.sort((T,I)=>w(T.matchlapse)+Number(T.minute)-(w(I.matchlapse)+Number(I.minute)))}function w(L){let T=0;switch(L){case 1:T=0;break;case 2:T=45;break;case 3:T=90;break;case 4:T=105;break;case 5:T=120;break}return T}async function C(L){try{const T=dd(`${oWe}${L}/timeline`,U.getters.getProviderId,U.getters.getIsDevApis),M=(await pd.get(T,{headers:{Authorization:m.token}})).data;return M?M.plays||[]:[]}catch(T){throw new Error(T)}}function E(L){a.value=L.play_id}function A(){m.canPlayVideos&&x.value.play_id&&g("play-video",{categoryId:U.getters.getProviderId==1?x.value.main_category_id:x.value.category_id,playId:x.value.play_id})}function P(){v.value.visible=!1,v.value.link=""}return t.onBeforeUnmount(()=>{h()}),(L,T)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createVNode(wXe,{data:v.value,onClose:P},{default:t.withCtx(()=>[t.createElementVNode("div",NXe,[t.createElementVNode("div",null,[t.createElementVNode("video",{class:"tooltip-video",controls:"",autoplay:"",src:v.value.link,format:"video/mp4"},null,8,FXe)])])]),_:1},8,["data"]),t.createElementVNode("div",{class:t.normalizeClass(e.widthScreen>920?"game-events":"game-events__mobile")},[T[2]||(T[2]=t.createElementVNode("div",{class:"game-events__title-left-padding"},null,-1)),T[3]||(T[3]=t.createElementVNode("div",{class:"game-events__title"},"Eventos",-1)),t.createElementVNode("div",RXe,[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,VXe)):t.createCommentVNode("",!0)]),t.createElementVNode("div",jXe,[x.value&&x.value.isHomeTeam?(t.openBlock(),t.createElementBlock("div",UXe)):t.createCommentVNode("",!0),x.value&&x.value.isHomeTeam?(t.openBlock(),t.createElementBlock("div",GXe,[t.createElementVNode("div",HXe,[x.value.player_id?(t.openBlock(),t.createElementBlock("div",ZXe,[t.createElementVNode("img",{src:t.unref(U).getters.getProviderId==1?`https://golstatsimages.blob.core.windows.net/players-profile/${x.value.player_id}.png`:`https://golstatsimages.blob.core.windows.net/players-profile/${t.unref(U).getters.getProviderId}/${x.value.player_id}.png`,alt:""},null,8,XXe)])):t.createCommentVNode("",!0)]),t.createElementVNode("div",WXe,t.toDisplayString(x.value.event_type_id===1?x.value.event_type_name:x.value.category_name),1),t.createElementVNode("div",YXe," | "+t.toDisplayString(x.value.playerShortName),1),e.canPlayVideos&&x.value.play_id?(t.openBlock(),t.createElementBlock("div",{key:0,role:"button",class:"game-events__event-info__info__button-play",onClick:A},T[0]||(T[0]=[t.createElementVNode("img",{src:dS,alt:""},null,-1)]))):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)]),T[4]||(T[4]=t.createElementVNode("div",{class:"game-events__events-padding"},null,-1)),t.createElementVNode("div",qXe,[t.createVNode(DXe,{"game-events":r.value,onClickEvent:E},null,8,["game-events"])]),t.createElementVNode("div",JXe,[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,$Xe)):t.createCommentVNode("",!0)]),t.createElementVNode("div",KXe,[x.value&&!x.value.isHomeTeam?(t.openBlock(),t.createElementBlock("div",QXe)):t.createCommentVNode("",!0),x.value&&!x.value.isHomeTeam?(t.openBlock(),t.createElementBlock("div",eWe,[t.createElementVNode("div",tWe,[x.value.player_id?(t.openBlock(),t.createElementBlock("div",aWe,[t.createElementVNode("img",{src:t.unref(U).getters.getProviderId==1?`https://golstatsimages.blob.core.windows.net/players-profile/${x.value.player_id}.png`:`https://golstatsimages.blob.core.windows.net/players-profile/${t.unref(U).getters.getProviderId}/${x.value.player_id}.png`,alt:""},null,8,rWe)])):t.createCommentVNode("",!0)]),t.createElementVNode("div",nWe,t.toDisplayString(x.value.event_type_id===1?x.value.event_type_name:x.value.category_name),1),t.createElementVNode("div",iWe," | "+t.toDisplayString(x.value.playerShortName),1),e.canPlayVideos&&x.value.play_id?(t.openBlock(),t.createElementBlock("div",{key:0,role:"button",class:"game-events__event-info__info__button-play",onClick:A},T[1]||(T[1]=[t.createElementVNode("img",{src:dS,alt:""},null,-1)]))):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)])],2)],64))}},[["__scopeId","data-v-04ac678a"]]),IYt="",lWe={class:"toggle-buttons__background"},cWe=["onClick"],dWe={key:0,class:"toggle-buttons__button__img"},uWe=["src"],Z5=Ki({__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:i}){t.useCssVars(r=>({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 s=e,B=i,U=t.ref(s.selectedButtonIndex),m=t.computed(()=>({"--grid-template-columns":`repeat(${s.buttons.length}, 1fr)`}));t.watch(()=>s.selectedButtonIndex,r=>{U.value=r}),t.watch(U,(r,y)=>{r!==y&&B("change",{index:r,button:s.buttons[r]})});function g(r){U.value=r}return(r,y)=>(t.openBlock(),t.createElementBlock("div",lWe,[t.createElementVNode("div",{class:"toggle-buttons",style:t.normalizeStyle(m.value)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.buttons,(u,a)=>(t.openBlock(),t.createElementBlock("div",{key:`b${a}`,class:t.normalizeClass(["toggle-buttons__button",{active:U.value===a,right:u.img&&a>0}]),onClick:x=>g(a)},[u.img?(t.openBlock(),t.createElementBlock("div",dWe,[t.createElementVNode("img",{src:u.img,alt:""},null,8,uWe)])):t.createCommentVNode("",!0),t.createElementVNode("div",null,t.toDisplayString(u.text||u),1)],10,cWe))),128))],4)]))}},[["__scopeId","data-v-ad07815f"]]),LYt="",BYt="",hWe={class:"tooltip__content"},pWe={key:0,class:"tooltip__content__category"},fWe={class:"tooltip__content__player"},mWe={class:"tooltip__content__player__name"},gWe={class:"tooltip__content__player__photo"},yWe=["src"],vWe={class:"tooltip__content__minute"},bWe={key:1,class:"tooltip__content__game"},xWe={class:"tooltip__content__game__round-abbreviation"},_We={class:"tooltip__content__game__logo"},wWe=["src"],kWe={class:"tooltip__content__game__logo"},SWe=["src"],CWe={key:2,class:"tooltip__content__team"},TWe={class:"tooltip__content__team__logo"},AWe=["src"],EWe=Ki({__name:"TooltipChalkboard",props:{event:{type:Object,default:()=>({})},position:{type:Object,default:()=>({x:"0",y:"0"})}},emits:["close"],setup(e,{emit:i}){const s=e,B=i,U=t.computed(()=>({"--top":s.position.y,"--left":s.position.x})),m=t.computed(()=>`${s.event.player.player_name} ${s.event.player.player_lastname}`),g=t.computed(()=>{const[y]=s.event.momentOfPlay.split(":");return`${Number(y)}'`});function r(){B("close")}return(y,u)=>(t.openBlock(),t.createElementBlock("div",{class:"tooltip",onClick:r,style:t.normalizeStyle(U.value)},[t.createElementVNode("div",hWe,[e.event.categoryName?(t.openBlock(),t.createElementBlock("div",pWe,t.toDisplayString(e.event.categoryName),1)):t.createCommentVNode("",!0),t.createElementVNode("div",fWe,[t.createElementVNode("div",mWe,t.toDisplayString(m.value),1),t.createElementVNode("div",gWe,[t.createElementVNode("img",{src:e.event.player.photo,alt:""},null,8,yWe)])]),t.createElementVNode("div",vWe,"Minuto: "+t.toDisplayString(g.value),1),e.event.game?(t.openBlock(),t.createElementBlock("div",bWe,[u[0]||(u[0]=t.createElementVNode("div",{class:"tooltip__content__game__name"},"Partido:",-1)),t.createElementVNode("div",xWe,t.toDisplayString(e.event.game.roundAbbreviation),1),t.createElementVNode("div",_We,[t.createElementVNode("img",{src:e.event.game.homeTeam.logo,alt:""},null,8,wWe)]),u[1]||(u[1]=t.createElementVNode("div",{class:"tooltip__content__game__vs"},"VS",-1)),t.createElementVNode("div",kWe,[t.createElementVNode("img",{src:e.event.game.awayTeam.logo,alt:""},null,8,SWe)])])):(t.openBlock(),t.createElementBlock("div",CWe,[u[2]||(u[2]=t.createElementVNode("div",{class:"tooltip__content__team__name"},"Equipo:",-1)),t.createElementVNode("div",TWe,[t.createElementVNode("img",{src:e.event.team.logo,alt:""},null,8,AWe)])]))])],4))}},[["__scopeId","data-v-cb12065f"]]),MWe=["id"],IWe=["fill"],PWe=["id"],LWe=["fill"],BWe=["stroke-dasharray","x1","y1","x2","y2","marker-end"],zWe=["x","y","stroke-width","fill","stroke"],OWe=["x","y"],DWe={__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 i=e,s=t.computed(()=>{const c=i.eventConnection.previousEvent;return c&&c.x3!==null&&c.x3!==void 0&&c.y3!==null&&c.y3!==void 0?{x:c.x3,y:c.y3}:{x:i.eventConnection.x1,y:i.eventConnection.y1}}),B=t.computed(()=>{const c=[];if(i.eventConnection.hasConnectionPath){const l=i.eventConnection.x1===i.eventConnection.x2&&i.eventConnection.y1===i.eventConnection.y2?1:2;let h=u(s.value.y);const b=a(s.value.x);let w=0,C=0;l===2&&(w=u(i.eventConnection.y2),C=a(i.eventConnection.x2));const E=u(i.eventConnection.y3),A=a(i.eventConnection.x3);l===1?c.push({x1:b,y1:h,x2:A,y2:E}):(c.push({x1:b,y1:h,x2:C,y2:w}),c.push({x1:C,y1:w,x2:A,y2:E}))}return c}),U=t.computed(()=>i.mainEventIdSelected!==0?i.eventConnection.relatedPlayId===i.mainEventIdSelected?1:.1:1),m=t.computed(()=>i.mainEventIdSelected!==0?i.eventConnection.relatedPlayId===i.mainEventIdSelected:!0),g=t.computed(()=>i.eventConnection.drawPoint||s.value),r=t.computed(()=>u(g.value.y)),y=t.computed(()=>a(g.value.x));function u(c){return(1-c)*100}function a(c){return c*100}function x(c){Ru.emit("mouse-over-event",{mouseEvent:c,eventConnection:i.eventConnection,position:{x:y.value,y:r.value}})}let v=null,_=null;function p(c){!v||_!==c.relatedPlayId?(v&&n(),_=c.relatedPlayId,v=setTimeout(()=>{Ru.emit("mouse-click-time-event",c.relatedPlayId),n()},1e3)):(Ru.emit("mouse-double-click-time-event",{categoriesIds:c.categoriesIds,playId:c.relatedPlayId}),n())}function n(){v&&(clearTimeout(v),v=null)}function o(){Ru.emit("mouse-leave-event",{mainEventId:i.eventConnection.relatedPlayId,eventId:i.eventConnection.playId})}return(c,l)=>(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:U.value})},[t.createElementVNode("path",{d:"M0,0 L0,6 L9,3 z",fill:e.color},null,8,IWe)],12,MWe),[[t.vShow,m.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:U.value})},[t.createElementVNode("circle",{cx:"2",cy:"2",r:"2",fill:e.color},null,8,LWe)],12,PWe),[[t.vShow,m.value]])]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(B.value,(h,b)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[h.x1&&h.y1?t.withDirectives((t.openBlock(),t.createElementBlock("line",{key:`${e.eventConnection.playId}-${b}`,style:t.normalizeStyle({stroke:e.color,"stroke-width":2,opacity:U.value}),"stroke-dasharray":b===0&&B.value.length===2?"none":"5,5",x1:`${h.x1}%`,y1:`${h.y1}%`,x2:`${h.x2}%`,y2:`${h.y2}%`,"marker-start":"`url(`#b-${eventConnection.playId}`)`","marker-end":`url(${e.isLastEvent&&b===B.value.length-1?`#a-${e.eventConnection.playId}`:""})`},null,12,BWe)),[[t.vShow,m.value]]):t.createCommentVNode("",!0)],64))),256)),t.withDirectives(t.createElementVNode("g",{onMouseover:t.withModifiers(x,["stop"]),onMouseleave:t.withModifiers(o,["stop"]),onClick:l[0]||(l[0]=t.withModifiers(h=>p(e.eventConnection),["stop"])),style:t.normalizeStyle({cursor:"pointer",opacity:U.value})},[t.createElementVNode("rect",{x:`${y.value}%`,y:`${r.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:U.value}),rx:"14",ry:"14"},null,12,zWe),t.createElementVNode("text",{x:`${y.value}%`,y:`${r.value}%`,"text-anchor":"middle","dominant-baseline":"middle",dy:"1","font-size":"15",fill:"#fff","font-family":"'Poppins-SemiBold', sans-serif",style:t.normalizeStyle({opacity:U.value})},t.toDisplayString(e.eventConnection.player?e.eventConnection.player.jersey:""),13,OWe)],36),[[t.vShow,m.value]])],64))}},NWe={__name:"EventConnections",props:{eventConnections:{type:Object,required:!0},mainEventIdSelected:{type:Number,default:0}},setup(e){const i=e,s=t.computed(()=>i.eventConnections.getEventsConnectionsByEventType());return(B,U)=>(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.value,(m,g)=>(t.openBlock(),t.createBlock(DWe,{key:m.id,color:e.eventConnections.getEventColor(m),"is-last-event":g===s.value.length-1,"event-connection":m,"main-event-id-selected":e.mainEventIdSelected},null,8,["color","is-last-event","event-connection","main-event-id-selected"]))),128))}},DF={1:new Set([35,54]),2:new Set([444])};function X5(e){return DF[e]||DF[1]}const W5={homeTeam:"#336dff",awayTeam:"#7ed321"},NF={homeTeam:"#fff",awayTeam:"#000"};function FF(e,i){return e!=null&&i!==null&&i!==void 0}function FWe(e,i){const s=e.previousEvent,B=s&&FF(s.x3,s.y3)?{x:s.x3,y:s.y3}:{x:e.x1,y:e.y1};return i&&i.x===B.x&&i.y===B.y&&FF(e.x1,e.y1)?{x:e.x1,y:e.y1}:B}class RF{constructor(i={},s=[],B=new Set,U=new Set,m=null,g=null,r=1){xd(this,"categoriesIds",[]);this.providerId=r||1;const y=X5(this.providerId).has(i.categoryId);this.mainPlay=i,this.playEvents=s.sort((x,v)=>v.order-x.order),this.categoriesIds=B,this.playersIds=U,this.teamForAnalysis=g;let u=y?`${i.categoryId}_r`:i.categoryId||0,a=i.playId;if(this.providerId!==1&&!y){const x=s.find(v=>X5(this.providerId).has(v.categoryId));x&&(u=`${x.categoryId}_r`,a=x.playId)}this.mainCategoryId=u,this.mainEventPlayId=a,this.mainPlay.isMainPlay=!0,this.playEvents.forEach(x=>{x.game=m})}setCategoriesIds(i=[]){this.categoriesIds=i?[...i]:[],this.playEvents.forEach(s=>{s.categoriesIds=this.categoriesIds})}setEventType(i){this.eventType=i,this.mainPlay.categoryName=i.singleName,this.playEvents.forEach(s=>{s.hasConnectionPath=this.eventType.prev!==0||this.eventType.post!==0})}getEventsConnectionsByEventType(){const i=this.playEvents.findIndex(s=>s.playId===this.mainPlay.playId);if(i>-1&&this.eventType){let s=i-this.eventType.post,B=i+this.eventType.prev;s<0&&(s=0),B>this.playEvents.length-1&&(B=this.playEvents.length-1);const U=this.playEvents.slice(s,B+1).reverse();let m=null;return U.forEach((g,r)=>{r>0&&(g.previousEvent=U[r-1]),g.drawPoint=FWe(g,m),m=g.drawPoint}),U}return[]}hasMainCategory(i=new Set){return i.has(this.mainCategoryId)}hasCategories(i=new Set,s={homeTeamId:0,awayTeamId:0}){const B=[];return i.forEach(U=>{B.push(`${s.homeTeamId}-${U}`),B.push(`${s.awayTeamId}-${U}`)}),B.some(U=>this.teamEventsIndex.has(U))}hasPlayer(i=new Set){return i.has(this.mainPlay.playerId)}hasPlayers(i=new Set){return Array.from(i.values()).some(s=>this.playersIds.has(s))}hasTeam(i=new Set){return i.has(this.mainPlay.teamId)}shouldInvertTeamSide(){return this.providerId!==1&&X5(this.providerId).has(this.mainPlay.categoryId)}getTeamColor(){let i=this.teamForAnalysis?this.teamForAnalysis.isHomeTeam?this.mainPlay.teamId===this.teamForAnalysis.teamId:this.mainPlay.teamId!==this.teamForAnalysis.teamId:this.mainPlay.team.isHomeTeam;return this.shouldInvertTeamSide()&&(i=!i),i?W5.homeTeam:W5.awayTeam}getEventColor(i){return(this.teamForAnalysis?this.teamForAnalysis.isHomeTeam?i.teamId===this.teamForAnalysis.teamId:i.teamId!==this.teamForAnalysis.teamId:i.team.isHomeTeam)?W5.homeTeam:W5.awayTeam}getTeamFontColor(){let i=this.teamForAnalysis?this.teamForAnalysis.isHomeTeam?this.mainPlay.teamId===this.teamForAnalysis.teamId:this.mainPlay.teamId!==this.teamForAnalysis.teamId:this.mainPlay.team.isHomeTeam;return this.shouldInvertTeamSide()&&(i=!i),i?NF.homeTeam:NF.awayTeam}getSingleName(i){return i.split(" ").reduce((B,U)=>{let m=U;return U.endsWith("minaron")?m=U.replace("minaron","minó"):U.endsWith("vocan")?m=U.replace("vocan","voca"):U.endsWith("lones")?m=U.replace("lones","lón"):U.endsWith("oles")?m=U.replace("oles","ol"):(U.endsWith("os")||U.endsWith("as")||U.endsWith("es"))&&(m=U.slice(0,U.length-1)),B.push(m),B},[]).join(" ")}}const OYt="",RWe={class:"soccer-chalkboard"},VWe={id:"soccerChalkboardField",class:"soccer-chalkboard__field"},jWe=["src"],UWe={viewBox:"0 0 547 340",fill:"none",xmlns:"http://www.w3.org/2000/svg"},GWe=Ki({__name:"SoccerChalkboard",props:{eventsConnections:{type:Array,default:()=>[]},listType:{type:String,default:"events"},playersSelected:{type:Set,default:()=>new Set},teamsSelected:{type:Set,default:()=>new Set},isAssistantZoneVisible:{type:Boolean,default:!1}},emits:["click-play","change-main-event"],setup(e,{expose:i,emit:s}){const B=s,U=jh(),g=hoe()?0:1e3;Ru.on("mouse-over-time-event",l=>{p(l),setTimeout(()=>{p(l)},g)}),Ru.on("mouse-click-time-event",l=>{p(l)}),Ru.on("mouse-double-click-time-event",l=>{B("click-play",{categoriesIds:l.categoriesIds,playId:l.playId})}),Ru.on("mouse-leave-time-event",l=>{setTimeout(()=>{a.value==l&&!y.value&&p(0)},g)}),Ru.on("mouse-over-event",l=>{o(l)}),Ru.on("mouse-leave-event",l=>{setTimeout(()=>{l.eventId===x.value&&c()},g)});const r=e,y=t.ref(!1),u=t.ref({}),a=t.ref(0),x=t.ref(0),v=t.ref({x:0,y:0}),_=t.computed(()=>r.isAssistantZoneVisible?"https://golstatsimages.blob.core.windows.net/todoelfut/pizarra.jpg":"https://golstatsimages.blob.core.windows.net/todoelfut/field-green-posesion.jpg");function p(l){a.value=l,B("change-main-event",l)}function n(){y.value=!1}function o(l){var E,A;const h={...l.eventConnection},b=U.getters.getProviderId;if(b!==1)X5(b).has(h.categoryId)&&(h.categoryName="Autogol");else if([12,55,"35_r","54_r"].includes(h.categoryId)&&((E=h.player)==null?void 0:E.team_id)!==h.teamId){const L=h.gameAux||h.game,T=L.homeTeam.team_id===((A=h.player)==null?void 0:A.team_id)?L.homeTeam:L.awayTeam;h.categoryName="Autogol",h.team=T}const w=170,C=document.getElementById("soccerChalkboardField");if(C){const P=C.getBoundingClientRect(),L=l.position.x/100*P.width+14,T=l.position.y/100*P.height+14,I=L+w>P.width?P.width-w:L,M=T;x.value=l.eventConnection.playId,u.value=h,v.value={x:`${I}px`,y:`${M}px`},y.value=!0}}function c(){y.value=!1}return i({setMainEventIdSelected:p}),(l,h)=>(t.openBlock(),t.createElementBlock("div",RWe,[t.createElementVNode("div",VWe,[t.createElementVNode("img",{src:_.value,alt:""},null,8,jWe),(t.openBlock(),t.createElementBlock("svg",UWe,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.eventsConnections,(b,w)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[e.listType==="events"&&b.hasTeam(e.teamsSelected)||e.listType==="players"&&b.hasPlayer(e.playersSelected)?(t.openBlock(),t.createBlock(NWe,{key:w,"event-connections":b,"main-event-id-selected":a.value},null,8,["event-connections","main-event-id-selected"])):t.createCommentVNode("",!0)],64))),256))]))]),y.value?(t.openBlock(),t.createBlock(EWe,{key:0,position:v.value,event:u.value,onClose:n},null,8,["position","event"])):t.createCommentVNode("",!0)]))}},[["__scopeId","data-v-09d50ada"]]),NYt="",HWe={class:"events-timeline"},ZWe=["id","onClick","onMouseover","onMouseleave"],XWe=["id"],WWe=["fill"],YWe=["fill","mask"],qWe=["stroke"],JWe=Ki({__name:"EventsTimeLine",props:{eventsConnections:{type:Array,default:()=>[]},listType:{type:String,default:"events"},playersSelected:{type:Set,default:()=>new Set},teamsSelected:{type:Set,default:()=>new Set},mainEventIdSelected:{type:Number,default:0}},setup(e){const i=["0'","45'","90'"],s=e,B=t.computed(()=>s.eventsConnections.reduce((a,x)=>{const v={minute:"0'",left:"0%",color:x.getTeamColor(),fontColor:x.getTeamFontColor(),playId:x.mainPlay.playId,playerId:x.mainPlay.playerId,teamId:x.mainPlay.teamId,relatedPlayId:x.relatedPlayId,categoriesIds:x.categoriesIds},[_]=x.mainPlay.momentOfPlay.split(":"),p=parseInt(_);return p>=90?(v.minute=`${p}'`,v.left="100%"):(v.minute=`${p}'`,v.left=`${p/90*100}%`),a.push(v),a},[]));let U=null,m=null;function g(a){!U||m!==a.playId?(U&&r(),m=a.playId,U=setTimeout(()=>{Ru.emit("mouse-click-time-event",a.playId),r()},1e3)):(Ru.emit("mouse-double-click-time-event",a),r())}function r(){U&&(clearTimeout(U),U=null)}function y(a){const x=document.getElementById(a);x&&(x.style["z-index"]=1)}function u(a){const x=document.getElementById(a);x&&(x.style["z-index"]="auto")}return(a,x)=>(t.openBlock(),t.createElementBlock("div",HWe,[(t.openBlock(),t.createElementBlock(t.Fragment,null,t.renderList(i,(v,_)=>t.createElementVNode("div",{class:"events-timeline__game-time",key:_},t.toDisplayString(v),1)),64)),x[1]||(x[1]=t.createElementVNode("div",{class:"events-timeline__back-line"},null,-1)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(B.value,(v,_)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[e.listType==="events"&&e.teamsSelected.has(v.teamId)||e.listType==="players"&&e.playersSelected.has(v.playerId)?(t.openBlock(),t.createElementBlock("svg",{id:`svg-${v.playId}`,key:_,width:"20",height:"22",viewBox:"0 0 20 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:t.normalizeStyle({left:v.left,cursor:"pointer",opacity:e.mainEventIdSelected?e.mainEventIdSelected===v.playId?"1":"0.2":"1"}),onClick:p=>g(v),onMouseover:p=>y(`svg-${v.playId}`),onMouseleave:p=>u(`svg-${v.playId}`)},[t.createElementVNode("mask",{id:v.playId.toString(),fill:"white"},x[0]||(x[0]=[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)]),8,XWe),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:v.color},null,8,WWe),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:e.mainEventIdSelected&&e.mainEventIdSelected===v.playId?"white":"#172531",mask:`url(#${v.playId})`},null,8,YWe),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:v.fontColor,"stroke-width":"0.7"},t.toDisplayString(v.minute),9,qWe)])],44,ZWe)):t.createCommentVNode("",!0)],64))),256))]))}},[["__scopeId","data-v-d2d4c119"]]),jd={All:1,YEAR:2,AGE_RANGE:3,NATIONALITY:4,POSITION:5,ELIGIBILITY:6},$We=(e,i)=>{const s=e.__vccOpts||e;for(const[B,U]of i)s[B]=U;return s},KWe={key:1},QWe={width:"10",height:"8",viewBox:"0 0 10 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},eYe=["fill"],tYe={key:0,class:"checkbox__teams"},aYe={class:"checkbox__teams__logo"},rYe=["src"],nYe={class:"checkbox__teams__logo"},iYe=["src"],oYe={__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},provider:{type:Number,default:0}},emits:["update:modelValue"],setup(e,{emit:i}){const s=e;t.useCssVars(u=>({"70bd45d8":e.width,"12bb4b99":e.height}));const B=t.ref(!1),U=t.computed(()=>{const u={color:s.boxValueColor,"font-family":s.fontFamily,height:s.boxWidthAndHeight,width:s.boxWidthAndHeight,minWidth:s.boxWidthAndHeight,"border-radius":s.boxBorderRadius,"margin-top":s.boxMarginTop};return B.value?(u["background-color"]=s.boxBackgroundColor,u.border=`solid ${s.boxBorderWidth} ${s.boxBackgroundColor}`):u.border=`solid ${s.boxBorderWidth} ${s.boxBorderColor}`,u}),m=t.computed(()=>({"font-family":s.boxValueFontFamily,"font-size":s.boxValueFontSize,color:s.boxValueColor,"line-height":1})),g=t.computed(()=>{const u={color:s.labelColor,"font-family":s.fontFamily,"font-size":s.labelFontSize,"white-space":s.labelWhiteSpace,"text-align":s.boxPosition==="top"||s.boxPosition==="bottom"?"center":s.boxPosition};return(s.boxPosition==="left"||s.boxPosition==="right")&&(u[`margin-${s.boxPosition}`]=s.isBoxOnly?"0":s.teamsIds?"8px":"10px"),u});t.watch(()=>s.modelValue,u=>{u!==B.value&&(B.value=u)},{immediate:!0});function r(){s.avoidInteraction||!B.value&&s.avoidToCheck||(B.value=!B.value,i("update:modelValue",B.value))}function y(u){const a={}.TEAM_LOGOS_URL||"https://golstatsimages.blob.core.windows.net/teams-80/";return s.provider&&s.provider>=2?`${a}${s.provider}/${u}.png`:`${a}${u}.png`}return(u,a)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["checkbox",`box-${e.boxPosition}`]),onClick:r},[t.createElementVNode("div",{class:"checkbox__box",style:t.normalizeStyle(U.value)},[B.value?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[s.boxValue?(t.openBlock(),t.createElementBlock("div",{key:0,class:"checkbox__box__value",style:t.normalizeStyle(m.value)},t.toDisplayString(e.boxValue),5)):(t.openBlock(),t.createElementBlock("div",KWe,[(t.openBlock(),t.createElementBlock("svg",QWe,[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,eYe)]))]))],64)):t.createCommentVNode("",!0)],4),e.teamsIds&&e.teamsIds.length?(t.openBlock(),t.createElementBlock("div",tYe,[t.createElementVNode("div",aYe,[t.createElementVNode("img",{src:y(e.teamsIds[0]),alt:""},null,8,rYe)]),t.createElementVNode("div",nYe,[t.createElementVNode("img",{src:y(e.teamsIds[1]),alt:""},null,8,iYe)])])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"checkbox__label",style:t.normalizeStyle(g.value)},t.toDisplayString(e.label),5)],2))}},Hl=$We(oYe,[["__scopeId","data-v-4ea8394b"]]),nc=(e,i)=>{const s=e.__vccOpts||e;for(const[B,U]of i)s[B]=U;return s},sYe={class:"container"},lYe={key:0,width:"11",height:"2",viewBox:"0 0 11 2",fill:"none",xmlns:"http://www.w3.org/2000/svg"},cYe=["fill"],dYe={key:1,width:"11",height:"11",viewBox:"0 0 11 11",fill:"none",xmlns:"http://www.w3.org/2000/svg"},uYe=["fill"],hYe={__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(i=>({"2c438f73":e.width,"425f651a":e.height})),(i,s)=>(t.openBlock(),t.createElementBlock("div",sYe,[e.isExpanded?(t.openBlock(),t.createElementBlock("svg",lYe,[t.createElementVNode("rect",{width:"11",height:"1.7",fill:e.collapseIconColor},null,8,cYe)])):(t.openBlock(),t.createElementBlock("svg",dYe,[t.createElementVNode("path",{d:"M11 6.28571H6.28571V11H4.71429V6.28571H0V4.71429H4.71429V0H6.28571V4.71429H11V6.28571Z",fill:e.expandIconColor},null,8,uYe)]))]))}},dg=nc(hYe,[["__scopeId","data-v-e633864b"]]),Iv=e=>(t.pushScopeId("data-v-9f942989"),e=e(),t.popScopeId(),e),pYe={key:0,class:"productivity__body__offensive"},fYe={class:"productivity__body__title"},mYe={class:"productivity__body__title__info"},gYe={class:"number-of-categories"},yYe={class:"productivity__body__categories"},vYe={key:1,class:"productivity__body__defensive-possession"},bYe={key:0,class:"block"},xYe={class:"productivity__body__title"},_Ye={class:"productivity__body__title__info"},wYe={class:"number-of-categories"},kYe={class:"productivity__body__categories"},SYe={key:1,class:"block"},CYe={class:"productivity__body__title"},TYe={class:"productivity__body__title__info"},AYe={class:"number-of-categories"},EYe={class:"productivity__body__categories"},MYe=["onClick"],IYe=Iv(()=>t.createElementVNode("svg",{width:"11",height:"12",viewBox:"0 0 11 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M7.50558 0C6.78112 0 6.10558 0.475441 5.89478 1.14401L1.21987 1.14286C0.904267 1.14286 0.648438 1.39886 0.648438 1.71429C0.648438 2.02972 0.904267 2.28572 1.21987 2.28572L5.89478 2.28516C6.15083 2.98516 6.78112 3.42858 7.50558 3.42858C8.23004 3.42858 8.86678 2.98402 9.1273 2.28059L10.3627 2.28572C10.6783 2.28572 10.9342 2.02972 10.9342 1.71429C10.9342 1.39886 10.6783 1.14286 10.3627 1.14286H9.12244C8.8473 0.446287 8.23004 0 7.50558 0ZM7.50558 1.14286C7.82118 1.14286 8.07701 1.39886 8.07701 1.71429C8.07701 2.02972 7.82118 2.28572 7.50558 2.28572C7.18998 2.28572 6.93415 2.02972 6.93415 1.71429C6.93415 1.39886 7.18998 1.14286 7.50558 1.14286ZM4.07701 4.28572C3.32387 4.28572 2.69347 4.7543 2.4633 5.42971C2.38295 5.43485 1.21987 5.42856 1.21987 5.42856C0.904267 5.42856 0.648438 5.68456 0.648438 5.99999C0.648438 6.31542 0.904267 6.57142 1.21987 6.57142C1.21987 6.57142 2.39267 6.55942 2.46575 6.56685C2.69593 7.24228 3.32387 7.71428 4.07701 7.71428C4.80146 7.71428 5.42226 7.27028 5.69381 6.57314L10.3627 6.57142C10.6783 6.57142 10.9342 6.31542 10.9342 5.99999C10.9342 5.68456 10.6783 5.42856 10.3627 5.42856L5.69083 5.42348C5.44038 4.74174 4.80146 4.28572 4.07701 4.28572ZM4.07701 5.42856C4.39261 5.42856 4.64844 5.68456 4.64844 5.99999C4.64844 6.31542 4.39261 6.57142 4.07701 6.57142C3.76141 6.57142 3.50558 6.31542 3.50558 5.99999C3.50558 5.68456 3.76141 5.42856 4.07701 5.42856ZM7.50558 8.57142C6.78112 8.57142 6.11844 9.04857 5.89438 9.70857L1.21987 9.71428C0.904267 9.71428 0.648438 9.97028 0.648438 10.2857C0.648438 10.6011 0.904267 10.8571 1.21987 10.8571L5.88592 10.8577C6.12301 11.5349 6.78112 12 7.50558 12C8.23004 12 8.85467 11.5469 9.12987 10.8577L10.3627 10.8571C10.6783 10.8571 10.9342 10.6011 10.9342 10.2857C10.9342 9.97028 10.6783 9.71428 10.3627 9.71428L9.12467 9.71091C8.87798 9.03491 8.23004 8.57142 7.50558 8.57142ZM7.50558 9.71428C7.82118 9.71428 8.07701 9.97028 8.07701 10.2857C8.07701 10.6011 7.82118 10.8571 7.50558 10.8571C7.18998 10.8571 6.93415 10.6011 6.93415 10.2857C6.93415 9.97028 7.18998 9.71428 7.50558 9.71428Z",fill:"white"})],-1)),PYe=[IYe],LYe={key:0,class:"productivity__footer"},BYe={class:"productivity__footer__offenses"},zYe=Iv(()=>t.createElementVNode("div",{class:"productivity__footer__offenses__title"}," ¿Debemos quitarle puntos a jugadores que hayan cometido las siguientes infracciones? ",-1)),OYe={class:"productivity__footer__offenses__table"},DYe=Iv(()=>t.createElementVNode("div",{class:"productivity__footer__offenses__table__row"},[t.createElementVNode("div"),t.createElementVNode("div",null,"Sí"),t.createElementVNode("div",null,"No")],-1)),NYe={class:"productivity__footer__offenses__table__row has-bottom-border has-padding"},FYe=Iv(()=>t.createElementVNode("div",{class:"productivity__footer__offenses__table__row__text"},"Faltas cometidas",-1)),RYe={class:"productivity__footer__offenses__table__row has-bottom-border has-padding"},VYe=Iv(()=>t.createElementVNode("div",{class:"productivity__footer__offenses__table__row__text"},"Tarjetas amarillas",-1)),jYe={class:"productivity__footer__offenses__table__row has-padding"},UYe=Iv(()=>t.createElementVNode("div",{class:"productivity__footer__offenses__table__row__text"},"Tarjetas rojas",-1)),GYe={__name:"TemplateProductivity",props:{componentWidth:{type:Number,default:0},productivityCategories:{type:Object,required:!0},numberOfCategoriesSelected:{type:Number,default:0},areMaxCategoriesReached:{type:Boolean,default:!1},areMinCategoriesReached:{type:Boolean,default:!1},isExpansionMode:{type:Boolean,default:!1},fontFamily:{type:String,default:"'Poppins-Regular'"},isFromTemplates:{type:Boolean,default:!1},isForTemplateForm:{type:Boolean,default:!1},areProductivityButtonsVisible:{type:Boolean,default:!0},areOffensesConditionsVisible:{type:Boolean,default:!0}},emits:["update:offensesConditions","click-parameters"],setup(e,{emit:i}){const s=e,B=t.ref(!1),U=t.ref(!1),m=t.ref(!1),g=t.ref({areYellowCardsSelected:!1,areRedCardsSelected:!1,areFoulsCommittedSelected:!1}),r=t.computed(()=>Array.isArray(s.productivityCategories)),y=t.computed(()=>({"--template-columns":s.isExpansionMode||r.value||!s.productivityCategories.offensive||!s.productivityCategories.defensive&&!s.productivityCategories.possession?"1fr":s.isForTemplateForm?"30% 1fr":"1fr 1fr","--flex-direction-defensive-possession":s.isForTemplateForm?"row-reverse":"column","--gap-defensive-possession":s.isForTemplateForm?"32px":"0","--width-block":s.isForTemplateForm?"unset":"100%"})),u=t.computed(()=>{var o;return(o=s.productivityCategories)==null?void 0:o.offensive.categories.reduce((c,l)=>(l.isSelected&&c++,c),0)}),a=t.computed(()=>{var o;return(o=s.productivityCategories)==null?void 0:o.defensive.categories.reduce((c,l)=>(l.isSelected&&c++,c),0)}),x=t.computed(()=>{var o;return(o=s.productivityCategories)==null?void 0:o.possession.categories.reduce((c,l)=>(l.isSelected&&c++,c),0)}),v=t.computed(()=>s.isFromTemplates||s.isForTemplateForm);t.watch(()=>s.productivityCategories,o=>{o.offensesConditions&&(g.value.areYellowCardsSelected=o.offensesConditions.areYellowCardsSelected,g.value.areRedCardsSelected=o.offensesConditions.areRedCardsSelected,g.value.areFoulsCommittedSelected=o.offensesConditions.areFoulsCommittedSelected)},{deep:!0,immediate:!0}),t.watch(g,o=>{i("update:offensesConditions",o)},{deep:!0,immediate:!0});function _(o,c){c.isSelected=o,setTimeout(()=>{c.priority=s.numberOfCategoriesSelected},10)}function p(o){i("click-parameters",o)}function n(o){o==="offensive"?B.value=!B.value:o==="defensive"?U.value=!U.value:o==="possession"&&(m.value=!m.value)}return(o,c)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["productivity",{"is-array":r.value}])},[t.createElementVNode("div",{class:"productivity__body",style:t.normalizeStyle(y.value)},[r.value?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(e.productivityCategories,l=>(t.openBlock(),t.createElementBlock("div",{key:l.id,class:"productivity__checkbox"},[t.createVNode(t.unref(Hl),{label:l.name,fontFamily:e.fontFamily,"model-value":l.isSelected,"avoid-interaction":e.areMinCategoriesReached&&l.isSelected,"avoid-to-check":e.areMaxCategoriesReached,"box-value":v.value?null:l.priority||0,"onUpdate:modelValue":h=>_(h,l)},null,8,["label","fontFamily","model-value","avoid-interaction","avoid-to-check","box-value","onUpdate:modelValue"])]))),128)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[e.productivityCategories.offensive?(t.openBlock(),t.createElementBlock("div",pYe,[t.createElementVNode("div",fYe,[t.createElementVNode("div",mYe,[t.createElementVNode("span",null,t.toDisplayString(e.productivityCategories.offensive.title),1),t.createElementVNode("span",gYe,"("+t.toDisplayString(u.value)+")",1)]),t.createElementVNode("div",{class:"productivity__body__title__expand-button",onClick:c[0]||(c[0]=l=>n("offensive"))},[t.withDirectives(t.createVNode(dg,{"is-expanded":B.value},null,8,["is-expanded"]),[[t.vShow,e.isExpansionMode]])])]),t.withDirectives(t.createElementVNode("div",yYe,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.productivityCategories.offensive.categories,l=>(t.openBlock(),t.createElementBlock("div",{key:l.id,class:"productivity__checkbox"},[t.createVNode(t.unref(Hl),{label:l.name,fontFamily:e.fontFamily,"model-value":l.isSelected,"avoid-to-check":e.areMaxCategoriesReached,"avoid-interaction":e.areMinCategoriesReached&&l.isSelected,"box-value":v.value?null:l.priority||0,"onUpdate:modelValue":h=>_(h,l)},null,8,["label","fontFamily","model-value","avoid-to-check","avoid-interaction","box-value","onUpdate:modelValue"])]))),128))],512),[[t.vShow,!e.isExpansionMode||B.value]])])):t.createCommentVNode("",!0),e.productivityCategories.defensive||e.productivityCategories.possession?(t.openBlock(),t.createElementBlock("div",vYe,[e.productivityCategories.defensive?(t.openBlock(),t.createElementBlock("div",bYe,[t.createElementVNode("div",xYe,[t.createElementVNode("div",_Ye,[t.createElementVNode("span",null,t.toDisplayString(e.productivityCategories.defensive.title),1),t.createElementVNode("span",wYe,"("+t.toDisplayString(a.value)+")",1)]),t.createElementVNode("div",{class:"productivity__body__title__expand-button",onClick:c[1]||(c[1]=l=>n("defensive"))},[t.withDirectives(t.createVNode(dg,{"is-expanded":U.value},null,8,["is-expanded"]),[[t.vShow,e.isExpansionMode]])])]),t.withDirectives(t.createElementVNode("div",kYe,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.productivityCategories.defensive.categories,l=>(t.openBlock(),t.createElementBlock("div",{key:l.id,class:"productivity__checkbox"},[t.createVNode(t.unref(Hl),{label:l.name,fontFamily:e.fontFamily,"model-value":l.isSelected,"avoid-to-check":e.areMaxCategoriesReached,"avoid-interaction":e.areMinCategoriesReached&&l.isSelected,"box-value":v.value?null:l.priority||0,"onUpdate:modelValue":h=>_(h,l)},null,8,["label","fontFamily","model-value","avoid-to-check","avoid-interaction","box-value","onUpdate:modelValue"])]))),128))],512),[[t.vShow,!e.isExpansionMode||U.value]])])):t.createCommentVNode("",!0),e.productivityCategories.possession?(t.openBlock(),t.createElementBlock("div",SYe,[t.createElementVNode("div",CYe,[t.createElementVNode("div",TYe,[t.createElementVNode("span",null,t.toDisplayString(e.productivityCategories.possession.title),1),t.createElementVNode("span",AYe,"("+t.toDisplayString(x.value)+")",1)]),t.createElementVNode("div",{class:"productivity__body__title__expand-button",onClick:c[2]||(c[2]=l=>n("possession"))},[t.withDirectives(t.createVNode(dg,{"is-expanded":m.value},null,8,["is-expanded"]),[[t.vShow,e.isExpansionMode]])])]),t.withDirectives(t.createElementVNode("div",EYe,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.productivityCategories.possession.categories,l=>(t.openBlock(),t.createElementBlock("div",{key:l.id,class:"productivity__checkbox"},[t.createVNode(t.unref(Hl),{label:l.name,fontFamily:e.fontFamily,"model-value":l.isSelected,"avoid-to-check":e.areMaxCategoriesReached,"avoid-interaction":e.areMinCategoriesReached&&l.isSelected,"box-value":v.value?null:l.priority||0,"onUpdate:modelValue":h=>_(h,l)},null,8,["label","fontFamily","model-value","avoid-to-check","avoid-interaction","box-value","onUpdate:modelValue"]),l.parameters&&e.areProductivityButtonsVisible?(t.openBlock(),t.createElementBlock("div",{key:0,class:"options",role:"button",onClick:h=>p(l)},PYe,8,MYe)):t.createCommentVNode("",!0)]))),128))],512),[[t.vShow,!e.isExpansionMode||m.value]])])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)],64))],4),!v.value&&e.productivityCategories.offensesConditions&&e.areOffensesConditionsVisible?(t.openBlock(),t.createElementBlock("div",LYe,[t.createElementVNode("div",BYe,[zYe,t.createElementVNode("div",OYe,[DYe,t.createElementVNode("div",NYe,[FYe,t.createElementVNode("div",null,[t.createVNode(t.unref(Hl),{"model-value":g.value.areFoulsCommittedSelected,"avoid-interaction":g.value.areFoulsCommittedSelected,"is-box-only":"","onUpdate:modelValue":c[3]||(c[3]=l=>g.value.areFoulsCommittedSelected=l)},null,8,["model-value","avoid-interaction"])]),t.createElementVNode("div",null,[t.createVNode(t.unref(Hl),{"model-value":!g.value.areFoulsCommittedSelected,"avoid-interaction":!g.value.areFoulsCommittedSelected,"is-box-only":"","onUpdate:modelValue":c[4]||(c[4]=l=>g.value.areFoulsCommittedSelected=!l)},null,8,["model-value","avoid-interaction"])])]),t.createElementVNode("div",RYe,[VYe,t.createElementVNode("div",null,[t.createVNode(t.unref(Hl),{"model-value":g.value.areYellowCardsSelected,"avoid-interaction":g.value.areYellowCardsSelected,"is-box-only":"","onUpdate:modelValue":c[5]||(c[5]=l=>g.value.areYellowCardsSelected=l)},null,8,["model-value","avoid-interaction"])]),t.createElementVNode("div",null,[t.createVNode(t.unref(Hl),{"model-value":!g.value.areYellowCardsSelected,"avoid-interaction":!g.value.areYellowCardsSelected,"is-box-only":"","onUpdate:modelValue":c[6]||(c[6]=l=>g.value.areYellowCardsSelected=!l)},null,8,["model-value","avoid-interaction"])])]),t.createElementVNode("div",jYe,[UYe,t.createElementVNode("div",null,[t.createVNode(t.unref(Hl),{"model-value":g.value.areRedCardsSelected,"avoid-interaction":g.value.areRedCardsSelected,"is-box-only":"","onUpdate:modelValue":c[7]||(c[7]=l=>g.value.areRedCardsSelected=l)},null,8,["model-value","avoid-interaction"])]),t.createElementVNode("div",null,[t.createVNode(t.unref(Hl),{"model-value":!g.value.areRedCardsSelected,"avoid-interaction":!g.value.areRedCardsSelected,"is-box-only":"","onUpdate:modelValue":c[8]||(c[8]=l=>g.value.areRedCardsSelected=!l)},null,8,["model-value","avoid-interaction"])])])])])])):t.createCommentVNode("",!0)],2))}},HYe=nc(GYe,[["__scopeId","data-v-9f942989"]]),S1=e=>(t.pushScopeId("data-v-e2ded643"),e=e(),t.popScopeId(),e),ZYe={class:"details__header"},XYe=S1(()=>t.createElementVNode("div",{class:"details__header__title"},"Jugando como",-1)),WYe={class:"details__header__checkbox"},YYe={class:"details__body"},qYe={class:"details__body__playing-as"},JYe=["onClick"],$Ye={class:"details__header"},KYe=S1(()=>t.createElementVNode("div",{class:"details__header__title"},[t.createTextVNode(" En: "),t.createElementVNode("span",{class:"details__header__title-sm"},"(Elige el lapso de tiempo)")],-1)),QYe={class:"details__header__checkbox"},eqe={class:"details__body"},tqe=S1(()=>t.createElementVNode("div",{class:"details__body__title"},"1er tiempo",-1)),aqe={class:"details__body__game-section"},rqe=["onClick"],nqe={class:"details__body"},iqe=S1(()=>t.createElementVNode("div",{class:"details__body__title"},"2do tiempo",-1)),oqe={class:"details__body__game-section"},sqe=["onClick"],lqe={key:0,class:"details_body"},cqe=S1(()=>t.createElementVNode("div",{class:"details__body__title"},"Tipo de estadística",-1)),dqe={class:"radios"},uqe={class:"radio-input"},hqe={class:"radio-input__radio"},pqe=S1(()=>t.createElementVNode("label",{for:"total"},"Totales",-1)),fqe={class:"radio-input"},mqe={class:"radio-input__radio"},gqe=S1(()=>t.createElementVNode("label",{for:"average"},"Promedio por partido",-1)),yqe={class:"radio-input"},vqe={class:"radio-input__radio"},bqe=S1(()=>t.createElementVNode("label",{for:"every"},"Cada 90 mins.",-1)),xqe={__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}]},statisticType:{type:String,default:"average"},isStatisticTypeVisible:{type:Boolean,default:!1},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"}},emits:["change-statistic-type"],setup(e,{emit:i}){const s=e;t.useCssVars(v=>({"1ae8ae49":e.buttonsBackgroundColor,"51b78caa":e.buttonsTextColor,"30a9d324":e.buttonsBorderWidth,"32d7cfea":e.buttonsBorderColor,"53697eaf":e.buttonsBackgroundColorActive,"6a565050":e.buttonsTextColorActive,34047714:e.buttonsBorderWidthActive,"10c9e21e":e.buttonsBorderColorActive}));const B=t.ref("");t.watch(()=>s.statisticType,v=>{B.value=v},{immediate:!0}),t.watch(()=>B.value,v=>{s.statisticType=v,i("change-statistic-type",v)});const U=t.computed(()=>s.playingAs.every(v=>v.isSelected)),m=t.computed(()=>s.gameSections.every(v=>v.isSelected)),g=t.computed(()=>s.gameSections.reduce((v,_)=>(_.value<=3?v.firstHalf.push(_):v.secondHalf.push(_),v),{firstHalf:[],secondHalf:[]})),r=t.computed(()=>({"--border-radius-first-button":`${s.buttonsBorderRadius} 0 0 ${s.buttonsBorderRadius}`,"--border-radius-last-button":`0 ${s.buttonsBorderRadius} ${s.buttonsBorderRadius} 0`}));function y(v){v?s.playingAs.forEach(_=>{_.isSelected=!0}):s.playingAs.forEach((_,p)=>{_.isSelected=p===0})}function u(v){s.playingAs.filter(_=>_.isSelected).length===1&&v.isSelected||(v.isSelected=!v.isSelected)}function a(v){s.gameSections.filter(_=>_.isSelected).length===1&&v.isSelected||(v.isSelected=!v.isSelected)}function x(v){v?s.gameSections.forEach(_=>{_.isSelected=!0}):s.gameSections.forEach((_,p)=>{_.isSelected=p===0})}return(v,_)=>(t.openBlock(),t.createElementBlock("div",{class:"details",style:t.normalizeStyle(r.value)},[t.withDirectives(t.createElementVNode("div",ZYe,[XYe,t.createElementVNode("div",WYe,[t.createVNode(t.unref(Hl),{label:"Todos",fontFamily:e.fontFamily,"model-value":U.value,"onUpdate:modelValue":y},null,8,["fontFamily","model-value"])])],512),[[t.vShow,!e.isPlayingAsHidden]]),t.withDirectives(t.createElementVNode("div",YYe,[t.createElementVNode("div",qYe,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.playingAs,(p,n)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${n}`,class:t.normalizeClass(["details__body__button",{active:p.isSelected}]),onClick:o=>u(p)},t.toDisplayString(p.name),11,JYe))),128))])],512),[[t.vShow,!e.isPlayingAsHidden]]),t.createElementVNode("div",$Ye,[KYe,t.createElementVNode("div",QYe,[t.createVNode(t.unref(Hl),{label:"Todos",fontFamily:e.fontFamily,"model-value":m.value,"onUpdate:modelValue":x},null,8,["fontFamily","model-value"])])]),t.createElementVNode("div",eqe,[tqe,t.createElementVNode("div",aqe,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(g.value.firstHalf,(p,n)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${n}`,class:t.normalizeClass(["details__body__button",{active:p.isSelected}]),onClick:o=>a(p)},t.toDisplayString(p.text),11,rqe))),128))])]),t.createElementVNode("div",nqe,[iqe,t.createElementVNode("div",oqe,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(g.value.secondHalf,(p,n)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${n}`,class:t.normalizeClass(["details__body__button",{active:p.isSelected}]),onClick:o=>a(p)},t.toDisplayString(p.text),11,sqe))),128))])]),e.isStatisticTypeVisible?(t.openBlock(),t.createElementBlock("div",lqe,[cqe,t.createElementVNode("div",dqe,[t.createElementVNode("div",uqe,[t.createElementVNode("div",hqe,[t.withDirectives(t.createElementVNode("input",{"onUpdate:modelValue":_[0]||(_[0]=p=>B.value=p),type:"radio",id:"total",value:"total",name:"statistic"},null,512),[[t.vModelRadio,B.value]]),pqe])]),t.createElementVNode("div",fqe,[t.createElementVNode("div",mqe,[t.withDirectives(t.createElementVNode("input",{"onUpdate:modelValue":_[1]||(_[1]=p=>B.value=p),type:"radio",id:"average",value:"average",name:"statistic"},null,512),[[t.vModelRadio,B.value]]),gqe])]),t.createElementVNode("div",yqe,[t.createElementVNode("div",vqe,[t.withDirectives(t.createElementVNode("input",{"onUpdate:modelValue":_[2]||(_[2]=p=>B.value=p),type:"radio",id:"every",value:"every90",name:"statistic"},null,512),[[t.vModelRadio,B.value]]),bqe])])])])):t.createCommentVNode("",!0)],4))}},_qe=nc(xqe,[["__scopeId","data-v-e2ded643"]]),wqe={class:"scroll-container"},kqe={__name:"ScrollContainer",props:{width:{type:String,default:"100%"},height:{type:String,default:"100%"}},setup(e){return t.useCssVars(i=>({fc5d629e:e.height,"8a9ad208":e.width})),(i,s)=>(t.openBlock(),t.createElementBlock("div",wqe,[t.renderSlot(i.$slots,"default",{},void 0,!0)]))}},Pv=nc(kqe,[["__scopeId","data-v-9f29c69f"]]),Sqe={class:"tournaments"},Cqe={key:0,class:"tournaments__tournament"},Tqe={__name:"TemplateTournaments",props:{tournamentsUrl:{type:String,default:""},tournaments:{type:Array,default:()=>[]},fontFamily:{type:String,default:"'Poppins-Regular'"},isOneTournamentOnly:{type:Boolean,default:!1},token:{type:String,default:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"}},emits:["change-filters-selected","update:filters"],setup(e,{emit:i}){const s=e,B=t.ref(!1),U=t.ref([]),m=t.computed(()=>g.value.filter(a=>a.isSelected).length),g=t.computed(()=>s.tournamentsUrl?U.value:s.tournaments);async function r(){if(s.tournamentsUrl)try{const a=await(await fetch(s.tournamentsUrl,{headers:{Authorization:s.token}})).json();U.value=a.map(x=>({...x.tournament,seasons:x.seasons,isSelected:!0}))}catch(a){console.error("Error fetching tournaments:",a)}}t.watch(()=>s.tournamentsUrl,()=>{r()},{immediate:!0}),t.watch(()=>s.token,()=>{r()}),t.watch(()=>g.value,a=>{const x=a.filter(v=>v.isSelected);B.value=x.length===a.length,i("change-filters-selected",x.length),i("update:filters",g.value)},{immediate:!0,deep:!0});function y(a){g.value.forEach((x,v)=>{x.isSelected=a||(v!==0?a:!0)})}function u(a,x){s.isOneTournamentOnly&&s.tournaments.forEach(v=>{v.isSelected=!1}),x.isSelected=a}return(a,x)=>(t.openBlock(),t.createElementBlock("div",Sqe,[t.createVNode(Pv,{height:"200px"},{default:t.withCtx(()=>[e.isOneTournamentOnly?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",Cqe,[t.createVNode(t.unref(Hl),{"model-value":B.value,label:"Todas las ligas",fontFamily:e.fontFamily,width:"100%","onUpdate:modelValue":y},null,8,["model-value","fontFamily"])])),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(g.value,v=>(t.openBlock(),t.createElementBlock("div",{key:v.id||v._id,class:"tournaments__tournament"},[t.createVNode(t.unref(Hl),{"model-value":v.isSelected,label:v.name,fontFamily:e.fontFamily,width:"100%","avoid-interaction":m.value===1&&v.isSelected,"onUpdate:modelValue":_=>u(_,v)},null,8,["model-value","label","fontFamily","avoid-interaction","onUpdate:modelValue"])]))),128))]),_:1})]))}},Aqe=nc(Tqe,[["__scopeId","data-v-15ddb449"]]),Jr={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",POSITIONS:"positions",YEARS:"years",NATIONALITIES:"nationalities",TEAMS:"teams",POSSESSION_VISUALISATIONS:"visualisations"},Eqe={key:0,class:"plays-golstats__placeholder"},Mqe=["onClick"],Iqe={key:0,class:"plays-golstats__item__value"},Pqe={class:"plays-golstats__item__text"},Lqe={class:"plays-golstats__item__svg"},Bqe={width:"10",height:"8",viewBox:"0 0 10 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},zqe=["fill"],Oqe={__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:i}){const s=e,B=t.computed(()=>({"--grid-template-columns":s.type===Jr.PLAYS_TYPES?"1fr min-content":"min-content 1fr min-content","--svg-width":`${s.svgWidth}px`,"--svg-height":`${s.svgHeight}px`}));t.watch(()=>s.categories,m=>{const g=m.filter(r=>r.isSelected);i("update:filters",g)},{immediate:!0,deep:!0});function U(m){m.isSelected||(s.categories.forEach(g=>{g.isSelected=!1}),m.isSelected=!0,s.type===Jr.GOLSTATS&&i("change-filters-selected",m.value))}return(m,g)=>(t.openBlock(),t.createElementBlock("div",{class:"plays-golstats",style:t.normalizeStyle(B.value)},[t.createVNode(Pv,{height:e.height},{default:t.withCtx(()=>[e.type===t.unref(Jr).PLAYS_TYPES?(t.openBlock(),t.createElementBlock("div",Eqe," Elige un tipo de jugada para filtrar: ")):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.categories,(r,y)=>(t.openBlock(),t.createElementBlock("div",{key:`k${y}`,class:"plays-golstats__item",onClick:u=>U(r)},[e.type===t.unref(Jr).GOLSTATS?(t.openBlock(),t.createElementBlock("div",Iqe,t.toDisplayString(r.value),1)):t.createCommentVNode("",!0),t.createElementVNode("div",Pqe,t.toDisplayString(r.name),1),t.createElementVNode("div",Lqe,[t.withDirectives((t.openBlock(),t.createElementBlock("svg",Bqe,[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,zqe)],512)),[[t.vShow,r.isSelected]])])],8,Mqe))),128))]),_:1},8,["height"])],4))}},VF=nc(Oqe,[["__scopeId","data-v-ef99052c"]]),Dqe=(e,i)=>{const s=e.__vccOpts||e;for(const[B,U]of i)s[B]=U;return s},uS={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 i=e.which?e.which:e.keyCode();!e.code.startsWith("Numpad")&&i>31&&(i<48||i>57)&&e.preventDefault()}}}},jF=()=>{t.useCssVars(e=>({"71e38669":e.textRightColor,d0c4b7ac:e.textRightFontSize,"101fb94d":e.textRightFontFamily}))},UF=uS.setup;uS.setup=UF?(e,i)=>(jF(),UF(e,i)):jF;const Nqe={class:"input-container"},Fqe=["type","placeholder","value"],Rqe={class:"right-text"};function Vqe(e,i,s,B,U,m){return t.openBlock(),t.createElementBlock("div",Nqe,[t.createElementVNode("input",{type:s.inputType,placeholder:s.placeholder,value:s.value,style:t.normalizeStyle(m.inputStyle),onKeydown:i[0]||(i[0]=(...g)=>m.onKeyDown&&m.onKeyDown(...g)),onInput:i[1]||(i[1]=(...g)=>m.updateInputValue&&m.updateInputValue(...g))},null,44,Fqe),t.createElementVNode("div",Rqe,t.toDisplayString(s.textRight),1)])}const jqe=Dqe(uS,[["render",Vqe],["__scopeId","data-v-76f92928"]]),Uqe=(e,i)=>{const s=e.__vccOpts||e;for(const[B,U]of i)s[B]=U;return s},hS={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))}}},GF=()=>{t.useCssVars(e=>({"9d01acb4":e.height,"14e95081":e.borderWidthBtn,"38fec285":e.borderType,34353510:e.borderColor,"20d20dc6":e.borderRadius,17130967:e.width,"4ccb7d36":e.backgroundColor,"5d1e86a2":e.cursorType,ce65d4a2:e.fontSize,fe4ac47a:e.fontStyle,f98e44dc:e.fontFamily,"93b87770":e.marginLeftStat,c7f7beba:e.fontSizeStat}))},HF=hS.setup;hS.setup=HF?(e,i)=>(GF(),HF(e,i)):GF;const Gqe=e=>(t.pushScopeId("data-v-f3ee6b2b"),e=e(),t.popScopeId(),e),Hqe=["src"],Zqe={key:1,class:"text"},Xqe=["src"],Wqe={class:"stats"},Yqe=Gqe(()=>t.createElementVNode("img",{class:"iconstats",src:"https://golstatsimages.blob.core.windows.net/todoelfut/playdes.png"},null,-1)),qqe={class:"numstats"},Jqe={class:"leyend"};function $qe(e,i,s,B,U,m){return t.openBlock(),t.createElementBlock("div",null,[s.type==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["button",U.status&&s.typeOnOff&&"button-active"]),style:t.normalizeStyle([m.customStyle,U.status&&s.typeOnOff&&m.customActive]),onClick:i[0]||(i[0]=(...g)=>m.btnClick&&m.btnClick(...g))},[s.icon&&s.iconPosition.toLowerCase()==="left"?(t.openBlock(),t.createElementBlock("img",{key:0,class:"icon",style:t.normalizeStyle({width:s.iconSize}),src:s.icon},null,12,Hqe)):t.createCommentVNode("",!0),s.textValue?(t.openBlock(),t.createElementBlock("div",Zqe,t.toDisplayString(s.textValue),1)):t.createCommentVNode("",!0),s.icon&&s.iconPosition.toLowerCase()==="right"?(t.openBlock(),t.createElementBlock("img",{key:2,class:"icon",style:t.normalizeStyle({width:s.iconSize}),src:s.icon},null,12,Xqe)):t.createCommentVNode("",!0)],6)):t.createCommentVNode("",!0),s.type==1?(t.openBlock(),t.createElementBlock("div",{key:1,class:"button-target",onClick:i[1]||(i[1]=(...g)=>m.btnClick&&m.btnClick(...g))},[t.createElementVNode("div",Wqe,[Yqe,t.createElementVNode("div",qqe,t.toDisplayString(s.textStat),1)]),t.createElementVNode("div",Jqe,t.toDisplayString(s.textCategory),1)])):t.createCommentVNode("",!0)])}const Kqe=Uqe(hS,[["render",$qe],["__scopeId","data-v-f3ee6b2b"]]),Qqe={class:"gsc-dropdown__main-container__item-selected"},eJe=["height","width"],tJe=["stroke"],aJe={key:1,width:"8",height:"4",viewBox:"0 0 8 4",fill:"none",xmlns:"http://www.w3.org/2000/svg"},rJe=["fill"],nJe={class:"gsc-dropdown__items-container"},iJe=["onClick"],oJe={key:0,class:"gsc-dropdown__items-footer"},C1={__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(i=>i in e)},listBackgroundColor:{type:String,default:"white"},hoverBackgroundColor:{type:String,default:"#f1f1f1"},listMarginTop:{type:String,default:"0"},listContainerPadding:{type:String,default:"0"},listItemPadding:{type:String,default:"10px 12px"},listItemMargin:{type:String,default:"0"},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},listItemBorderRadius:{type:String,default:"0"},listAlignment:{type:String,default:"left"},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},iconType:{type:Number,default:1,validator:function(e){return[1,2].includes(e)}}},emits:["input","click-ready","update:modelValue"],setup(e,{emit:i}){const s=e,B=t.ref({}),U=t.ref(null),m=t.ref(s.isMultipleOption?-1:0),g=t.ref(!1);t.watch(()=>s.items,(_,p)=>{if(!s.modelValue&&(!s.onlyFirstTime||!p||!p.length)&&_&&_.length){if(s.defaultItemByProp){const n=s.items.findIndex(o=>o[s.defaultItemByProp.propName]===s.defaultItemByProp.value);n!==-1?(m.value=n,B.value=_[n]):(m.value=0,B.value=_[0])}else B.value=_[s.defaultItemByIndex];i("input",B.value)}},{immediate:!0}),t.watch(()=>s.modelValue,_=>{if(_){const p=s.items.findIndex(n=>typeof _=="object"?JSON.stringify(n)===JSON.stringify(_):n===_);p!==-1&&(m.value=p,B.value=s.items[p],i("update:modelValue",B.value))}},{immediate:!0});const r=t.computed(()=>({height:s.height,width:s.width,backgroundColor:s.backgroundColor,borderRadius:`${s.borderRadius}px`,border:`${s.borderType} ${s.borderWidth}px ${s.borderColor}`,color:s.color,"--hover-background-color":s.hoverBackgroundColor,"--list-container-padding":s.listContainerPadding,"--list-item-padding":s.listItemPadding,"--list-item-margin":s.listItemMargin,"--list-background-color":s.listBackgroundColor,"--list-height":s.listHeight,"--list-item-border-radius":s.listItemBorderRadius,"--list-item-selected-color":s.listItemSelectedColor,"--list-item-selected-background-color":s.listItemSelectedBackgroundColor,"--list-item-color":s.listItemColor,"--list-border-radius":`${s.listBorderRadius}`,"--list-border-color":s.listBorderColor,"--list-width":s.isListSameWidth?s.width:"fit-content","--list-border-width":`${s.listBorderWidth}px`,"--list-margin-top":s.listMarginTop,"--list-left":s.listAlignment==="left"?"0":"auto","--list-right":s.listAlignment==="right"?"0":"auto","--footer-border":`${s.footerBorderWidth}px solid ${s.footerBorderColor}`,"--dropdown-opacity":s.isDisabled?"0.5":"1","--dropdown-cursor":s.isDisabled?"not-allowed":"pointer","--dropdown-font-size":s.fontSize?s.fontSize:"14px"})),y=t.computed(()=>({height:`${s.arrowHeight}px`,width:`${s.arrowWidth}px`}));function u(){s.isDisabled||(g.value=!g.value)}function a(_){U.value&&!U.value.contains(_.target)&&(g.value=!1)}function x(_,p){s.isMultipleOption?m.value=-1:(m.value=p,g.value=!1),B.value=_,i("input",B.value),i("update:modelValue",B.value)}function v(){g.value=!1,i("click-ready")}return t.onMounted(()=>{document.addEventListener("click",a)}),t.onBeforeMount(()=>{document.removeEventListener("click",a)}),(_,p)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"dropDown",ref:U,class:"gsc-dropdown",style:t.normalizeStyle(r.value)},[t.createElementVNode("div",{class:"gsc-dropdown__main-container",style:t.normalizeStyle({"padding-right":`${e.arrowWidth+8}px`}),onClick:u},[t.createElementVNode("div",Qqe,[t.renderSlot(_.$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)},[e.iconType===1?(t.openBlock(),t.createElementBlock("svg",{key:0,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,tJe)],8,eJe)):(t.openBlock(),t.createElementBlock("svg",aJe,[t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M4 2.62045L6.86193 0.167368C7.12228 -0.0557892 7.54439 -0.0557892 7.80474 0.167368C8.06509 0.390524 8.06509 0.752333 7.80474 0.97549L4.4714 3.83263C4.21105 4.05579 3.78895 4.05579 3.5286 3.83263L0.195262 0.97549C-0.0650874 0.752333 -0.0650874 0.390524 0.195262 0.167368C0.455612 -0.0557892 0.877722 -0.0557892 1.13807 0.167368L4 2.62045Z",fill:e.arrowColor},null,8,rJe)]))],6)],4),t.createVNode(t.Transition,null,{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("div",nJe,[t.createElementVNode("div",null,[t.createElementVNode("div",{class:"gsc-dropdown__items",style:t.normalizeStyle({"margin-top":`${s.borderWidth}px`})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(n,o)=>(t.openBlock(),t.createElementBlock("div",null,[t.withDirectives((t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["gsc-dropdown__items__item",{selected:o===m.value}]),key:o,onClick:c=>x(n,o)},[t.renderSlot(_.$slots,"availableItem",{item:n})],10,iJe)),[[t.vShow,!n.isHidden]])]))),256))],4),e.isFooterVisible?(t.openBlock(),t.createElementBlock("div",oJe,[t.createVNode(t.unref(Kqe),{"text-value":"Listo","border-color":"#cbee6b","font-size":"12px",width:"72px",height:"22px","border-radius":"62px","border-width":.8,onClick:v})])):t.createCommentVNode("",!0)])],512),[[t.vShow,g.value]])]),_:3})],4))}},Pb={borderType:"solid",listBackgroundColor:"#2E3B46",listBorderColor:"rgba(255, 255, 255, 0.2)",listBorderRadius:"5px",height:"38px",borderWidth:.8,borderColor:"rgba(255, 255, 255, 0.2)",backgroundColor:"#2E3B46",color:"white",listItemColor:"white",listItemSelectedBackgroundColor:"#2E3B46",arrowColor:"#fff",width:"100%",listHeight:"200px",isListSameWidth:!0,isFooterVisible:!0,hoverBackgroundColor:"#2E3B46",iconType:2},ug=e=>(t.pushScopeId("data-v-7a29901a"),e=e(),t.popScopeId(),e),sJe={class:"universe"},lJe=ug(()=>t.createElementVNode("div",{class:"universe__sub-header"},"Tipo de estádisticas:",-1)),cJe={class:"radios"},dJe={class:"radio-input"},uJe={class:"radio-input__radio"},hJe=ug(()=>t.createElementVNode("label",{for:"total"},"Totales",-1)),pJe={class:"radio-input"},fJe={class:"radio-input__radio"},mJe=ug(()=>t.createElementVNode("label",{for:"every"},"Cada 90 mins.",-1)),gJe=ug(()=>t.createElementVNode("div",{class:"universe__sub-header"},"Escribe los minutos jugados",-1)),yJe=ug(()=>t.createElementVNode("div",{class:"universe__label"},"Igual o mayor que:",-1)),vJe={class:"universe__inputs"},bJe={class:"universe__inputs__input"},xJe=ug(()=>t.createElementVNode("div",{class:"universe__sub-header"},"Selecciona el lapso de tiempo",-1)),_Je=ug(()=>t.createElementVNode("div",{class:"universe__label"},"Considerando los últimos:",-1)),wJe={class:"universe__dropdown"},kJe={class:"selected-item"},SJe={__name:"TemplateUniverse",props:{universeFilters:{type:Object,default:()=>({minutesPlayed:360,percentMinutesPlayed:0,lastMonths:Array.from({length:24},(e,i)=>i+1),statistics:{totals:!0,averagePerGame:!1,averagePerMinute:!1},statisticsRadios:"total"})},fontFamily:{type:String,default:"'Poppins-Regular'"},defaultMonthIndex:{type:Number,default:5}},emits:["update:universeFilters"],setup(e,{expose:i,emit:s}){const B=e,U=t.ref(!1),m=t.ref(!1),g=t.ref(!1),r=t.ref({statistics:{}});t.watch(()=>B.universeFilters,x=>{r.value={...x,lastMonths:x.selectedMonth?x.selectedMonth:x.lastMonths[B.defaultMonthIndex],statistics:{...x.statistics},statisticsRadios:x.statisticsRadios||"total"}},{deep:!0,immediate:!0}),t.watch(()=>r,x=>{U.value=!x.value.minutesPlayed||Number(x.value.minutesPlayed)===0,m.value=!x.value.percentMinutesPlayed||Number(x.value.percentMinutesPlayed)===0,g.value=!x.value.lastMonths||Number(x.value.lastMonths)===0,s("update:universeFilters",x)},{deep:!0,immediate:!0});function y(x){x&&x<1&&(x=1),r.value.minutesPlayed=x}function u(){r.value={...B.universeFilters,lastMonths:B.universeFilters.lastMonths[B.defaultMonthIndex],statistics:{...B.universeFilters.statistics}}}function a(x){r.value.lastMonths=x}return i({resetFilters:u}),(x,v)=>(t.openBlock(),t.createElementBlock("div",sJe,[lJe,t.createElementVNode("div",cJe,[t.createElementVNode("div",dJe,[t.createElementVNode("div",uJe,[t.withDirectives(t.createElementVNode("input",{"onUpdate:modelValue":v[0]||(v[0]=_=>r.value.statisticsRadios=_),type:"radio",id:"total",value:"total",name:"statistics"},null,512),[[t.vModelRadio,r.value.statisticsRadios]]),hJe])]),t.createElementVNode("div",pJe,[t.createElementVNode("div",fJe,[t.withDirectives(t.createElementVNode("input",{"onUpdate:modelValue":v[1]||(v[1]=_=>r.value.statisticsRadios=_),type:"radio",id:"every",value:"every90",name:"statistics"},null,512),[[t.vModelRadio,r.value.statisticsRadios]]),mJe])])]),gJe,yJe,t.createElementVNode("div",vJe,[t.createElementVNode("div",bJe,[t.createVNode(t.unref(jqe),{value:r.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"])])]),xJe,_Je,t.createElementVNode("div",wJe,[t.createVNode(t.unref(C1),t.mergeProps(t.unref(Pb),{items:e.universeFilters.lastMonths,"model-value":r.value.lastMonths,onInput:a}),{default:t.withCtx(({selectedItem:_})=>[t.createElementVNode("div",kJe,t.toDisplayString(_)+" "+t.toDisplayString(_===1?"mes":"meses"),1)]),availableItem:t.withCtx(({item:_})=>[t.createElementVNode("div",null,t.toDisplayString(_)+" "+t.toDisplayString(_===1?"mes":"meses"),1)]),_:1},16,["items","model-value"])]),t.createCommentVNode("",!0),t.createCommentVNode("",!0)]))}},CJe=nc(SJe,[["__scopeId","data-v-7a29901a"]]),ZF=(e,i)=>{const s=e.__vccOpts||e;for(const[B,U]of i)s[B]=U;return s},TJe={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||[],i=this.min===void 0?0:this.min,s=e.length?e.length-1:100,B=this.max===void 0?s:this.max,U=this.minValue===void 0?25:this.minValue;e.length&&this.minValue===void 0&&(U=1);let m=this.maxValue||75;if(e.length&&this.maxValue===void 0&&(m=e.length-2),B<=i)throw new Error("Invalid props min or max");if(U>m)throw new Error("Invalid props minValue or maxValue");let g=this.rangeMargin===void 0?this.step:this.rangeMargin,r=g%this.step;return r&&(g=g+this.step-r),{valueMin:U<i?i:U,valueMax:m>B?B:m,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 i=parseFloat(e.target.value);i<=this.valueMax-this.rangeMarginValue&&i>=this.minimum?this.valueMin=i:e.target.value=this.valueMin},onInputMaxChange(e){let i=parseFloat(e.target.value);i>=this.valueMin+this.rangeMarginValue&&i<=this.maximum?this.valueMax=i: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 i=e.clientX;e.type==="touchmove"&&(i=e.touches[0].clientX);let s=(i-this.startX)/this.barBox.width,B=this.barValue+(this.maximum-this.minimum)*s,U=B%this.step;B-=U,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 i=e.clientX;e.type==="touchmove"&&(i=e.touches[0].clientX);let s=(i-this.startX)/this.barBox.width,B=this.barValue+(this.maximum-this.minimum)*s,U=B%this.step;B-=U,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 i=this.step;e.deltaY<0&&(i=-i),e.shiftKey&&e.ctrlKey?this.valueMin+i>=this.minimum&&this.valueMax+i<=this.maximum&&(this.valueMin=this.valueMin+i,this.valueMax=this.valueMax+i):e.ctrlKey?(i=this.valueMax+i,i<this.valueMin+this.rangeMarginValue?i=this.valueMin+this.rangeMarginValue:i>this.maximum&&(i=this.maximum),this.valueMax=i):e.shiftKey&&(i=this.valueMin+i,i<this.minimum?i=this.minimum:i>this.valueMax-this.rangeMarginValue&&(i=this.valueMax-this.rangeMarginValue),this.valueMin=i)},triggerInput(){let e=0;this.step.toString().includes(".")&&(e=2);let i={min:this.minimum,max:this.maximum,minValue:parseFloat(this.valueMin.toFixed(e)),maxValue:parseFloat(this.valueMax.toFixed(e))};this.$emit("input",i)}},computed:{minimum(){return this.min===void 0?0:this.min},maximum(){let e=this.labels||[],i=e.length?e.length-1:100;return this.max===void 0?i: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(){}},AJe={class:"bar"},EJe=["min","max","step","value"],MJe={class:"caption"},IJe={class:"min-caption"},PJe={class:"bar-inner"},LJe=["min","max","step","value"],BJe={class:"caption"},zJe={class:"max-caption"},OJe={key:0,class:"ruler"},DJe={key:1,class:"sub-ruler"},NJe={key:2,class:"labels"};function FJe(e,i,s,B,U,m){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass([s.baseClassName,U.rangeMarginValue===0?"zero-ranage-margin":""]),onMousewheel:i[10]||(i[10]=t.withModifiers((...g)=>m.onMouseWheel&&m.onMouseWheel(...g),["prevent","stop"]))},[t.createElementVNode("div",AJe,[t.createElementVNode("div",{class:"bar-left",style:t.normalizeStyle({width:m.barMin+"%"}),onClick:i[0]||(i[0]=(...g)=>m.onBarLeftClick&&m.onBarLeftClick(...g))},null,4),t.createElementVNode("input",{class:"input-type-range input-type-range-min",type:"range",min:m.minimum,max:m.maximum,step:s.step,value:U.valueMin,onInput:i[1]||(i[1]=t.withModifiers((...g)=>m.onInputMinChange&&m.onInputMinChange(...g),["stop","prevent"]))},null,40,EJe),t.createElementVNode("div",{class:"thumb thumb-left",onMousedown:i[2]||(i[2]=(...g)=>m.onLeftThumbMousedown&&m.onLeftThumbMousedown(...g)),onTouchstart:i[3]||(i[3]=(...g)=>m.onLeftThumbMousedown&&m.onLeftThumbMousedown(...g))},[t.createElementVNode("div",MJe,[t.createElementVNode("span",IJe,t.toDisplayString(s.minCaption||m.barMinVal),1)])],32),t.createElementVNode("div",PJe,[t.createElementVNode("div",{class:"bar-inner-left",onClick:i[4]||(i[4]=(...g)=>m.onInnerBarLeftClick&&m.onInnerBarLeftClick(...g))}),t.createElementVNode("div",{class:"bar-inner-right",onClick:i[5]||(i[5]=(...g)=>m.onInnerBarRightClick&&m.onInnerBarRightClick(...g))})]),t.createElementVNode("input",{class:"input-type-range input-type-range-max",type:"range",min:m.minimum,max:m.maximum,step:s.step,value:U.valueMax,onInput:i[6]||(i[6]=t.withModifiers((...g)=>m.onInputMaxChange&&m.onInputMaxChange(...g),["stop","prevent"]))},null,40,LJe),t.createElementVNode("div",{class:"thumb thumb-right",onMousedown:i[7]||(i[7]=(...g)=>m.onRightThumbMousedown&&m.onRightThumbMousedown(...g)),onTouchstart:i[8]||(i[8]=(...g)=>m.onRightThumbMousedown&&m.onRightThumbMousedown(...g))},[t.createElementVNode("div",BJe,[t.createElementVNode("span",zJe,t.toDisplayString(s.maxCaption||m.barMaxVal),1)])],32),t.createElementVNode("div",{class:"bar-right",style:t.normalizeStyle({width:m.barMax+"%"}),onClick:i[9]||(i[9]=(...g)=>m.onBarRightClick&&m.onBarRightClick(...g))},null,4)]),s.ruler?(t.openBlock(),t.createElementBlock("div",OJe,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(m.stepCount,g=>(t.openBlock(),t.createElementBlock("div",{key:g,class:"ruler-rule"}))),128))])):t.createCommentVNode("",!0),m.subStepCount?(t.openBlock(),t.createElementBlock("div",DJe,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(m.subStepCount,g=>(t.openBlock(),t.createElementBlock("div",{key:g,class:"ruler-sub-rule"}))),128))])):t.createCommentVNode("",!0),s.label?(t.openBlock(),t.createElementBlock("div",NJe,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(m.scaleLabels,g=>(t.openBlock(),t.createElementBlock("div",{class:"label",key:g},t.toDisplayString(g),1))),128))])):t.createCommentVNode("",!0)],34)}const RJe=ZF(TJe,[["render",FJe]]),pS={components:{MultiRangeSlider:RJe},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)}}},XF=()=>{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}))},WF=pS.setup;pS.setup=WF?(e,i)=>(XF(),WF(e,i)):XF;const VJe={class:"center"},jJe={class:"bar-ref"},UJe={class:"bar-ref-element-left"},GJe={class:"bar-ref-element-right"};function HJe(e,i,s,B,U,m){const g=t.resolveComponent("MultiRangeSlider");return t.openBlock(),t.createElementBlock("div",{class:"custom-range-slider",style:t.normalizeStyle(m.customStyle)},[t.createElementVNode("div",VJe,[t.createElementVNode("div",jJe,[t.createElementVNode("div",UJe,[t.createElementVNode("div",{class:"text",style:t.normalizeStyle(m.customStyleText)},"De:",4),t.createElementVNode("div",{class:"value",style:t.normalizeStyle(m.customStyleValue)},t.toDisplayString(U.minValueLocal)+t.toDisplayString(s.minSuffix),5)]),t.createElementVNode("div",GJe,[t.createElementVNode("div",{class:"text",style:t.normalizeStyle(m.customStyleText)},"A:",4),t.createElementVNode("div",{class:"value",style:t.normalizeStyle(m.customStyleValue)},t.toDisplayString(U.maxValueLocal)+t.toDisplayString(s.maxSuffix),5)])]),t.createVNode(g,{baseClassName:"multi-range-slider",min:s.minLimit,max:s.maxLimit,step:1,ruler:!1,label:!1,"min-value":U.minValueLocal,"max-value":U.maxValueLocal,"range-margin":0,onInput:m.onInput},null,8,["min","max","min-value","max-value","onInput"])])],4)}const YF=ZF(pS,[["render",HJe]]),ZJe={class:"template-distance"},XJe={__name:"TemplateDistance",props:{distance:{type:Object,default:()=>({minLimit:5,maxLimit:30,minValue:5,maxValue:30})}},emits:["update:distanceFilters"],setup(e,{emit:i}){const s=e,B=t.ref({minValue:0,maxValue:0,minLimit:0,maxLimit:0});t.watch(()=>B.value,m=>{i("update:distanceFilters",m)},{deep:!0}),t.watch(()=>s.distance,m=>{B.value.minValue=m.minValue,B.value.maxValue=m.maxValue,B.value.minLimit=m.minLimit,B.value.maxLimit=m.maxLimit},{immediate:!0,deep:!0});function U(m){B.value.minValue=m.minValue,B.value.maxValue=m.maxValue}return(m,g)=>(t.openBlock(),t.createElementBlock("div",ZJe,[t.createVNode(t.unref(YF),{"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:U},null,8,["min-limit","max-limit","min-value","max-value"])]))}},WJe=e=>(t.pushScopeId("data-v-aa104b3c"),e=e(),t.popScopeId(),e),YJe={class:"template-games"},qJe={class:"template-games__header"},JJe=WJe(()=>t.createElementVNode("div",{class:"template-games__header__title"},"Partidos jugados:",-1)),$Je={class:"template-games__header__all-games"},KJe={__name:"TemplateGames",props:{gamesFilters:{type:Array,default:()=>[]},providerId:{type:Number,default:0}},emits:["update:gamesFilters"],setup(e,{emit:i}){const s=e,B=t.ref(!1),U=t.computed(()=>s.gamesFilters.filter(g=>g.isSelected).length);t.watch(U,g=>{B.value=g===s.gamesFilters.length,i("update:gamesFilters",s.gamesFilters)},{immediate:!0});const m=g=>{g?s.gamesFilters.forEach(r=>{r.isSelected=g}):s.gamesFilters.forEach((r,y)=>{r.isSelected=y===0}),B.value=g};return(g,r)=>(t.openBlock(),t.createElementBlock("div",YJe,[t.createElementVNode("div",qJe,[JJe,t.createElementVNode("div",$Je,[t.createVNode(t.unref(Hl),{modelValue:B.value,label:"Todos","box-position":"right","font-family":"Roboto-Regular, sans-serif","label-font-size":"12px","onUpdate:modelValue":m},null,8,["modelValue"])])]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.gamesFilters,(y,u)=>(t.openBlock(),t.createElementBlock("div",{key:u,class:"template-games__game"},[t.createVNode(t.unref(Hl),{modelValue:y.isSelected,"onUpdate:modelValue":a=>y.isSelected=a,label:y.label,"teams-ids":y.teamsIds,provider:e.providerId,"avoid-interaction":U.value===1&&y.isSelected},null,8,["modelValue","onUpdate:modelValue","label","teams-ids","provider","avoid-interaction"])]))),128))]))}},QJe=nc(KJe,[["__scopeId","data-v-aa104b3c"]]),e$e=(e,i)=>{const s=e.__vccOpts||e;for(const[B,U]of i)s[B]=U;return s},fS={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))}}},qF=()=>{t.useCssVars(e=>({"9d01acb4":e.height,"14e95081":e.borderWidthBtn,"38fec285":e.borderType,34353510:e.borderColor,"20d20dc6":e.borderRadius,17130967:e.width,"4ccb7d36":e.backgroundColor,"5d1e86a2":e.cursorType,ce65d4a2:e.fontSize,fe4ac47a:e.fontStyle,f98e44dc:e.fontFamily,"93b87770":e.marginLeftStat,c7f7beba:e.fontSizeStat}))},JF=fS.setup;fS.setup=JF?(e,i)=>(qF(),JF(e,i)):qF;const t$e=e=>(t.pushScopeId("data-v-f3ee6b2b"),e=e(),t.popScopeId(),e),a$e=["src"],r$e={key:1,class:"text"},n$e=["src"],i$e={class:"stats"},o$e=t$e(()=>t.createElementVNode("img",{class:"iconstats",src:"https://golstatsimages.blob.core.windows.net/todoelfut/playdes.png"},null,-1)),s$e={class:"numstats"},l$e={class:"leyend"};function c$e(e,i,s,B,U,m){return t.openBlock(),t.createElementBlock("div",null,[s.type==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["button",U.status&&s.typeOnOff&&"button-active"]),style:t.normalizeStyle([m.customStyle,U.status&&s.typeOnOff&&m.customActive]),onClick:i[0]||(i[0]=(...g)=>m.btnClick&&m.btnClick(...g))},[s.icon&&s.iconPosition.toLowerCase()==="left"?(t.openBlock(),t.createElementBlock("img",{key:0,class:"icon",style:t.normalizeStyle({width:s.iconSize}),src:s.icon},null,12,a$e)):t.createCommentVNode("",!0),s.textValue?(t.openBlock(),t.createElementBlock("div",r$e,t.toDisplayString(s.textValue),1)):t.createCommentVNode("",!0),s.icon&&s.iconPosition.toLowerCase()==="right"?(t.openBlock(),t.createElementBlock("img",{key:2,class:"icon",style:t.normalizeStyle({width:s.iconSize}),src:s.icon},null,12,n$e)):t.createCommentVNode("",!0)],6)):t.createCommentVNode("",!0),s.type==1?(t.openBlock(),t.createElementBlock("div",{key:1,class:"button-target",onClick:i[1]||(i[1]=(...g)=>m.btnClick&&m.btnClick(...g))},[t.createElementVNode("div",i$e,[o$e,t.createElementVNode("div",s$e,t.toDisplayString(s.textStat),1)]),t.createElementVNode("div",l$e,t.toDisplayString(s.textCategory),1)])):t.createCommentVNode("",!0)])}const Y5=e$e(fS,[["render",c$e],["__scopeId","data-v-f3ee6b2b"]]),d$e=(e,i)=>{const s=e.__vccOpts||e;for(const[B,U]of i)s[B]=U;return s},mS={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))}}},$F=()=>{t.useCssVars(e=>({"9d01acb4":e.height,"14e95081":e.borderWidthBtn,"38fec285":e.borderType,34353510:e.borderColor,"20d20dc6":e.borderRadius,17130967:e.width,"4ccb7d36":e.backgroundColor,"5d1e86a2":e.cursorType,ce65d4a2:e.fontSize,fe4ac47a:e.fontStyle,f98e44dc:e.fontFamily,"93b87770":e.marginLeftStat,c7f7beba:e.fontSizeStat}))},KF=mS.setup;mS.setup=KF?(e,i)=>($F(),KF(e,i)):$F;const u$e=e=>(t.pushScopeId("data-v-f3ee6b2b"),e=e(),t.popScopeId(),e),h$e=["src"],p$e={key:1,class:"text"},f$e=["src"],m$e={class:"stats"},g$e=u$e(()=>t.createElementVNode("img",{class:"iconstats",src:"https://golstatsimages.blob.core.windows.net/todoelfut/playdes.png"},null,-1)),y$e={class:"numstats"},v$e={class:"leyend"};function b$e(e,i,s,B,U,m){return t.openBlock(),t.createElementBlock("div",null,[s.type==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["button",U.status&&s.typeOnOff&&"button-active"]),style:t.normalizeStyle([m.customStyle,U.status&&s.typeOnOff&&m.customActive]),onClick:i[0]||(i[0]=(...g)=>m.btnClick&&m.btnClick(...g))},[s.icon&&s.iconPosition.toLowerCase()==="left"?(t.openBlock(),t.createElementBlock("img",{key:0,class:"icon",style:t.normalizeStyle({width:s.iconSize}),src:s.icon},null,12,h$e)):t.createCommentVNode("",!0),s.textValue?(t.openBlock(),t.createElementBlock("div",p$e,t.toDisplayString(s.textValue),1)):t.createCommentVNode("",!0),s.icon&&s.iconPosition.toLowerCase()==="right"?(t.openBlock(),t.createElementBlock("img",{key:2,class:"icon",style:t.normalizeStyle({width:s.iconSize}),src:s.icon},null,12,f$e)):t.createCommentVNode("",!0)],6)):t.createCommentVNode("",!0),s.type==1?(t.openBlock(),t.createElementBlock("div",{key:1,class:"button-target",onClick:i[1]||(i[1]=(...g)=>m.btnClick&&m.btnClick(...g))},[t.createElementVNode("div",m$e,[g$e,t.createElementVNode("div",y$e,t.toDisplayString(s.textStat),1)]),t.createElementVNode("div",v$e,t.toDisplayString(s.textCategory),1)])):t.createCommentVNode("",!0)])}const x$e=d$e(mS,[["render",b$e],["__scopeId","data-v-f3ee6b2b"]]),_$e=(e,i)=>{const s=e.__vccOpts||e;for(const[B,U]of i)s[B]=U;return s},w$e={key:1},k$e={width:"10",height:"8",viewBox:"0 0 10 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},S$e=["fill"],C$e={key:0,class:"checkbox__teams"},T$e={class:"checkbox__teams__logo"},A$e=["src"],E$e={class:"checkbox__teams__logo"},M$e=["src"],I$e={__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:i}){const s=e;t.useCssVars(u=>({"7bd9d47b":e.width,"34dc7ddc":e.height}));const B=t.ref(!1),U=t.computed(()=>{const u={color:s.boxValueColor,"font-family":s.fontFamily,height:s.boxWidthAndHeight,width:s.boxWidthAndHeight,minWidth:s.boxWidthAndHeight,"border-radius":s.boxBorderRadius,"margin-top":s.boxMarginTop};return B.value?(u["background-color"]=s.boxBackgroundColor,u.border=`solid ${s.boxBorderWidth} ${s.boxBackgroundColor}`):u.border=`solid ${s.boxBorderWidth} ${s.boxBorderColor}`,u}),m=t.computed(()=>({"font-family":s.boxValueFontFamily,"font-size":s.boxValueFontSize,color:s.boxValueColor,"line-height":1})),g=t.computed(()=>{const u={color:s.labelColor,"font-family":s.fontFamily,"font-size":s.labelFontSize,"white-space":s.labelWhiteSpace,"text-align":s.boxPosition==="top"||s.boxPosition==="bottom"?"center":s.boxPosition};return(s.boxPosition==="left"||s.boxPosition==="right")&&(u[`margin-${s.boxPosition}`]=s.isBoxOnly?"0":s.teamsIds?"8px":"10px"),u});t.watch(()=>s.modelValue,u=>{u!==B.value&&(B.value=u)},{immediate:!0});function r(){s.avoidInteraction||!B.value&&s.avoidToCheck||(B.value=!B.value,i("update:modelValue",B.value))}function y(u){return`${{}.TEAM_LOGOS_URL||"https://golstatsimages.blob.core.windows.net/teams-80/"}${u}.png`}return(u,a)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["checkbox",`box-${e.boxPosition}`]),onClick:r},[t.createElementVNode("div",{class:"checkbox__box",style:t.normalizeStyle(U.value)},[B.value?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[s.boxValue?(t.openBlock(),t.createElementBlock("div",{key:0,class:"checkbox__box__value",style:t.normalizeStyle(m.value)},t.toDisplayString(e.boxValue),5)):(t.openBlock(),t.createElementBlock("div",w$e,[(t.openBlock(),t.createElementBlock("svg",k$e,[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,S$e)]))]))],64)):t.createCommentVNode("",!0)],4),e.teamsIds&&e.teamsIds.length?(t.openBlock(),t.createElementBlock("div",C$e,[t.createElementVNode("div",T$e,[t.createElementVNode("img",{src:y(e.teamsIds[0]),alt:""},null,8,A$e)]),t.createElementVNode("div",E$e,[t.createElementVNode("img",{src:y(e.teamsIds[1]),alt:""},null,8,M$e)])])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"checkbox__label",style:t.normalizeStyle(g.value)},t.toDisplayString(e.label),5)],2))}},P$e=_$e(I$e,[["__scopeId","data-v-b6f124d8"]]),L$e=(e,i)=>{const s=e.__vccOpts||e;for(const[B,U]of i)s[B]=U;return s},gS={components:{GSCButton:x$e,GSCCheckbox:P$e},data(){return{update:0,all:!1,refreshBtn14:0,refreshBtn24:0,refreshBtn34:0,refreshBtn44:0,sectors:Array.from({length:16},(e,i)=>({sector:i+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 i=e.sort();JSON.stringify(i)!==JSON.stringify(this.lastUpdatedValue)&&(this.lastUpdatedValue=i,this.sectors.forEach((s,B)=>{s.active=e.includes(B+1),this.validateField(B)}),this.$emit("update:modelValue",e))}},sectors:{handler(e){var i=[];for(let s=0;s<e.length;s++)e[s].active&&i.push(s+1);this.$emit("update:modelValue",i)},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 i=0;i<this.sectors.length;i++)this.sectors[i].active=!0,this.validateField(i);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 i=0;i<this.sectors.length;i++)this.sectors[i].active=!1,this.validateField(i),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 i=0;this.sectors[e].active=!this.sectors[e].active;for(let s=0;s<this.sectors.length;s++)this.sectors[s].active&&(i+=1);i==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 i=0;for(let s=0;s<this.sectors.length;s++)this.sectors[s].active&&(i+=1);i==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,i==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 i=0;for(let s=0;s<this.sectors.length;s++)this.sectors[s].active&&(i+=1);i==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,i==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 i=0;for(let s=0;s<this.sectors.length;s++)this.sectors[s].active&&(i+=1);i==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,i==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 i=0;for(let s=0;s<this.sectors.length;s++)this.sectors[s].active&&(i+=1);i==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,i==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)}}},QF=()=>{t.useCssVars(e=>({"4fe806fe":e.widthContainer,"91de7c52":e.heightContainer,"266afcdc":e.backgroundColor,"2b853536":e.titleFontSize,"986b6446":e.widthFieldGrid,"1af308b6":e.heightFieldGrid}))},eR=gS.setup;gS.setup=eR?(e,i)=>(QF(),eR(e,i)):QF;const B$e={class:"gsc-field"},z$e={class:"gsc-field__title-checked"},O$e={class:"gsc-field__title-checked__title"},D$e={class:"gsc-field__container-field"},N$e={class:"gsc-field__container-field__field"},F$e={width:"100%",height:"100%",fill:"#2e3b46",xmlns:"http://www.w3.org/2000/svg"},R$e=["stroke"],V$e=["stroke","stroke-width"],j$e=["stroke","stroke-width"],U$e=["stroke-width","stroke"],G$e=["fill","fill-opacity","stroke","stroke-width"],H$e=["fill","fill-opacity","stroke","stroke-width"],Z$e=["fill","fill-opacity","stroke","stroke-width"],X$e=["fill","fill-opacity","stroke","stroke-width"],W$e=["fill","fill-opacity","stroke","stroke-width"],Y$e=["fill","fill-opacity","stroke","stroke-width"],q$e=["fill","fill-opacity","stroke","stroke-width"],J$e=["fill","fill-opacity","stroke","stroke-width"],$$e=["fill","fill-opacity","stroke","stroke-width"],K$e=["fill","fill-opacity","stroke","stroke-width"],Q$e=["fill","fill-opacity","stroke","stroke-width"],eKe=["fill","fill-opacity","stroke","stroke-width"],tKe=["fill","fill-opacity","stroke","stroke-width"],aKe=["fill","fill-opacity","stroke","stroke-width"],rKe=["fill","fill-opacity","stroke","stroke-width"],nKe=["fill","fill-opacity","stroke","stroke-width"],iKe={class:"gsc-field__container-field__bar-buttons"};function oKe(e,i,s,B,U,m){const g=t.resolveComponent("GSCCheckbox"),r=t.resolveComponent("GSCButton");return t.openBlock(),t.createElementBlock("div",B$e,[t.createElementVNode("div",z$e,[t.createElementVNode("div",O$e,t.toDisplayString(s.title),1),t.createElementVNode("div",{class:"gsc-field__title-checked__check-cont",style:t.normalizeStyle(s.widthField>=350?"min-width: 123px":"")},[(t.openBlock(),t.createBlock(g,{label:s.widthField<350?"Todas":"Todas las zonas","font-family":"Poppins-Regular","box-value-font-family":"Poppins-Regular","box-position":"right","label-font-size":s.titleFontSize,"label-white-space":"nowrap","box-margin-top":"0.4em",value:U.all,key:U.update,"model-value":U.all,"onUpdate:modelValue":m.clickAll},null,8,["label","label-font-size","value","model-value","onUpdate:modelValue"]))],4)]),t.createElementVNode("div",D$e,[t.createElementVNode("div",N$e,[(t.openBlock(),t.createElementBlock("svg",F$e,[t.createElementVNode("rect",{x:"1.5",y:"0.5",width:"100%",height:"100%",rx:"1.5",stroke:s.colorLineField},null,8,R$e),t.createElementVNode("path",{style:t.normalizeStyle("transform: translate("+m.translx+"px, "+m.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:s.colorLineField,"stroke-width":s.borderWidthLineField,"stroke-linecap":"square"},null,12,V$e),t.createElementVNode("path",{style:t.normalizeStyle("transform: translateY("+m.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:s.colorLineField,"stroke-width":s.borderWidthLineField,"stroke-linecap":"square"},null,12,j$e),t.createElementVNode("path",{style:t.normalizeStyle("transform: translate("+m.translxcircle+"px, "+m.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":s.borderWidthLineField,stroke:s.colorLineField},null,12,U$e),t.createElementVNode("rect",{x:"0%",y:"0%",width:"25%",height:"25%",fill:U.sectors[0].active?s.backgroundSectorActive:s.backgroundSectorDisabled,"fill-opacity":s.opacitySector,stroke:s.borderColor,"stroke-width":s.borderWidth,onClick:i[0]||(i[0]=y=>m.selectSector(0))},null,8,G$e),t.createElementVNode("rect",{x:"0%",y:"25%",width:"25%",height:"25%",fill:U.sectors[1].active?s.backgroundSectorActive:s.backgroundSectorDisabled,"fill-opacity":s.opacitySector,stroke:s.borderColor,"stroke-width":s.borderWidth,onClick:i[1]||(i[1]=y=>m.selectSector(1))},null,8,H$e),t.createElementVNode("rect",{x:"0%",y:"50%",width:"25%",height:"25%",fill:U.sectors[2].active?s.backgroundSectorActive:s.backgroundSectorDisabled,"fill-opacity":s.opacitySector,stroke:s.borderColor,"stroke-width":s.borderWidth,onClick:i[2]||(i[2]=y=>m.selectSector(2))},null,8,Z$e),t.createElementVNode("rect",{x:"0%",y:"75%",width:"25%",height:"25%",fill:U.sectors[3].active?s.backgroundSectorActive:s.backgroundSectorDisabled,"fill-opacity":s.opacitySector,stroke:s.borderColor,"stroke-width":s.borderWidth,onClick:i[3]||(i[3]=y=>m.selectSector(3))},null,8,X$e),t.createElementVNode("rect",{x:"25%",y:"0%",width:"25%",height:"25%",fill:U.sectors[4].active?s.backgroundSectorActive:s.backgroundSectorDisabled,"fill-opacity":s.opacitySector,stroke:s.borderColor,"stroke-width":s.borderWidth,onClick:i[4]||(i[4]=y=>m.selectSector(4))},null,8,W$e),t.createElementVNode("rect",{x:"25%",y:"25%",width:"25%",height:"25%",fill:U.sectors[5].active?s.backgroundSectorActive:s.backgroundSectorDisabled,"fill-opacity":s.opacitySector,stroke:s.borderColor,"stroke-width":s.borderWidth,onClick:i[5]||(i[5]=y=>m.selectSector(5))},null,8,Y$e),t.createElementVNode("rect",{x:"25%",y:"50%",width:"25%",height:"25%",fill:U.sectors[6].active?s.backgroundSectorActive:s.backgroundSectorDisabled,"fill-opacity":s.opacitySector,stroke:s.borderColor,"stroke-width":s.borderWidth,onClick:i[6]||(i[6]=y=>m.selectSector(6))},null,8,q$e),t.createElementVNode("rect",{x:"25%",y:"75%",width:"25%",height:"25%",fill:U.sectors[7].active?s.backgroundSectorActive:s.backgroundSectorDisabled,"fill-opacity":s.opacitySector,stroke:s.borderColor,"stroke-width":s.borderWidth,onClick:i[7]||(i[7]=y=>m.selectSector(7))},null,8,J$e),t.createElementVNode("rect",{x:"50%",y:"0%",width:"25%",height:"25%",fill:U.sectors[8].active?s.backgroundSectorActive:s.backgroundSectorDisabled,"fill-opacity":s.opacitySector,stroke:s.borderColor,"stroke-width":s.borderWidth,onClick:i[8]||(i[8]=y=>m.selectSector(8))},null,8,$$e),t.createElementVNode("rect",{x:"50%",y:"25%",width:"25%",height:"25%",fill:U.sectors[9].active?s.backgroundSectorActive:s.backgroundSectorDisabled,"fill-opacity":s.opacitySector,stroke:s.borderColor,"stroke-width":s.borderWidth,onClick:i[9]||(i[9]=y=>m.selectSector(9))},null,8,K$e),t.createElementVNode("rect",{x:"50%",y:"50%",width:"25%",height:"25%",fill:U.sectors[10].active?s.backgroundSectorActive:s.backgroundSectorDisabled,"fill-opacity":s.opacitySector,stroke:s.borderColor,"stroke-width":s.borderWidth,onClick:i[10]||(i[10]=y=>m.selectSector(10))},null,8,Q$e),t.createElementVNode("rect",{x:"50%",y:"75%",width:"25%",height:"25%",fill:U.sectors[11].active?s.backgroundSectorActive:s.backgroundSectorDisabled,"fill-opacity":s.opacitySector,stroke:s.borderColor,"stroke-width":s.borderWidth,onClick:i[11]||(i[11]=y=>m.selectSector(11))},null,8,eKe),t.createElementVNode("rect",{x:"75%",y:"0%",width:"25%",height:"25%",fill:U.sectors[12].active?s.backgroundSectorActive:s.backgroundSectorDisabled,"fill-opacity":s.opacitySector,stroke:s.borderColor,"stroke-width":s.borderWidth,onClick:i[12]||(i[12]=y=>m.selectSector(12))},null,8,tKe),t.createElementVNode("rect",{x:"75%",y:"25%",width:"25%",height:"25%",fill:U.sectors[13].active?s.backgroundSectorActive:s.backgroundSectorDisabled,"fill-opacity":s.opacitySector,stroke:s.borderColor,"stroke-width":s.borderWidth,onClick:i[13]||(i[13]=y=>m.selectSector(13))},null,8,aKe),t.createElementVNode("rect",{x:"75%",y:"50%",width:"25%",height:"25%",fill:U.sectors[14].active?s.backgroundSectorActive:s.backgroundSectorDisabled,"fill-opacity":s.opacitySector,stroke:s.borderColor,"stroke-width":s.borderWidth,onClick:i[14]||(i[14]=y=>m.selectSector(14))},null,8,rKe),t.createElementVNode("rect",{x:"75%",y:"75%",width:"25%",height:"25%",fill:U.sectors[15].active?s.backgroundSectorActive:s.backgroundSectorDisabled,"fill-opacity":s.opacitySector,stroke:s.borderColor,"stroke-width":s.borderWidth,onClick:i[15]||(i[15]=y=>m.selectSector(15))},null,8,nKe)]))]),t.createElementVNode("div",iKe,[(t.openBlock(),t.createBlock(r,{"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:m.btn14,key:U.refreshBtn14,value:e.status14},null,8,["onStatus","value"])),(t.openBlock(),t.createBlock(r,{"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:m.btn24,key:U.refreshBtn24,value:e.status24},null,8,["onStatus","value"])),(t.openBlock(),t.createBlock(r,{"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:m.btn34,key:U.refreshBtn34,value:e.status34},null,8,["onStatus","value"])),(t.openBlock(),t.createBlock(r,{"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:m.btn44,key:U.refreshBtn44,value:e.status44},null,8,["onStatus","value"]))])])])}const tR=L$e(gS,[["render",oKe],["__scopeId","data-v-b85699b8"]]),sKe={class:"toggle-buttons__background"},lKe=["onClick"],cKe={__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:i}){const s=e;t.useCssVars(g=>({"93d865f4":e.height,"34a70bf2":e.width,"3b25a65d":e.mainBackgroundColor,b988d706:e.borderRadius,"6ca18efc":e.mainBorderWidth,"6ecf8bc2":e.mainBorderColor,"1c0cd0f2":e.fontFamily,"6a733de2":e.fontSize,"0f5c20d5":e.activeBorderWidth,"0e452272":e.activeBorderColor,d69fa5a0:e.activeBackgroundColor}));const B=t.ref(s.selectedButtonIndex),U=t.computed(()=>({"--grid-template-columns":`repeat(${s.buttons.length}, 1fr)`}));t.watch(()=>s.selectedButtonIndex,g=>{B.value=g}),t.watch(B,(g,r)=>{g!==r&&i("change",{index:g,button:s.buttons[g]})});function m(g){B.value=g}return(g,r)=>(t.openBlock(),t.createElementBlock("div",sKe,[t.createElementVNode("div",{class:"toggle-buttons",style:t.normalizeStyle(U.value)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.buttons,(y,u)=>(t.openBlock(),t.createElementBlock("div",{key:`b${u}`,class:t.normalizeClass(["toggle-buttons__button",{active:B.value===u}]),onClick:a=>m(u)},t.toDisplayString(y.text||y),11,lKe))),128))],4)]))}},dKe=nc(cKe,[["__scopeId","data-v-f34a7e56"]]);function aR(e,i){return function(){return e.apply(i,arguments)}}const{toString:uKe}=Object.prototype,{getPrototypeOf:Lv}=Object,{iterator:Lb,toStringTag:rR}=Symbol,q5=(({hasOwnProperty:e})=>(i,s)=>e.call(i,s))(Object.prototype),Bb=(e,i)=>{let s=e;const B=[];for(;s!=null&&s!==Object.prototype;){if(B.indexOf(s)!==-1)return!1;if(B.push(s),q5(s,i))return!0;s=Lv(s)}return!1},hKe=(e,i)=>e!=null&&Bb(e,i)?e[i]:void 0,yS=(e=>i=>{const s=uKe.call(i);return e[s]||(e[s]=s.slice(8,-1).toLowerCase())})(Object.create(null)),Bf=e=>(e=e.toLowerCase(),i=>yS(i)===e),J5=e=>i=>typeof i===e,{isArray:hg}=Array,pg=J5("undefined");function Bv(e){return e!==null&&!pg(e)&&e.constructor!==null&&!pg(e.constructor)&&Sp(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const nR=Bf("ArrayBuffer");function pKe(e){let i;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?i=ArrayBuffer.isView(e):i=e&&e.buffer&&nR(e.buffer),i}const fKe=J5("string"),Sp=J5("function"),iR=J5("number"),zv=e=>e!==null&&typeof e=="object",mKe=e=>e===!0||e===!1,$5=e=>{if(!zv(e))return!1;const i=Lv(e);return(i===null||i===Object.prototype||Lv(i)===null)&&!Bb(e,rR)&&!Bb(e,Lb)},gKe=e=>{if(!zv(e)||Bv(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},yKe=Bf("Date"),vKe=Bf("File"),bKe=e=>!!(e&&typeof e.uri<"u"),xKe=e=>e&&typeof e.getParts<"u",_Ke=Bf("Blob"),wKe=Bf("FileList"),kKe=Bf("Set"),SKe=e=>zv(e)&&Sp(e.pipe);function CKe(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const oR=CKe(),sR=typeof oR.FormData<"u"?oR.FormData:void 0,TKe=e=>{if(!e)return!1;if(sR&&e instanceof sR)return!0;const i=Lv(e);if(!i||i===Object.prototype||!Sp(e.append))return!1;const s=yS(e);return s==="formdata"||s==="object"&&Sp(e.toString)&&e.toString()==="[object FormData]"},AKe=Bf("URLSearchParams"),[EKe,MKe,IKe,PKe]=["ReadableStream","Request","Response","Headers"].map(Bf),LKe=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function zb(e,i,{allOwnKeys:s=!1}={}){if(e===null||typeof e>"u")return;let B,U;if(typeof e!="object"&&(e=[e]),hg(e))for(B=0,U=e.length;B<U;B++)i.call(null,e[B],B,e);else{if(Bv(e))return;const m=s?Object.getOwnPropertyNames(e):Object.keys(e),g=m.length;let r;for(B=0;B<g;B++)r=m[B],i.call(null,e[r],r,e)}}function lR(e,i){if(Bv(e))return null;i=i.toLowerCase();const s=Object.keys(e);let B=s.length,U;for(;B-- >0;)if(U=s[B],i===U.toLowerCase())return U;return null}const fg=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),cR=e=>!pg(e)&&e!==fg;function vS(...e){const{caseless:i,skipUndefined:s}=cR(this)&&this||{},B={},U=(m,g)=>{if(g==="__proto__"||g==="constructor"||g==="prototype")return;const r=i&&typeof g=="string"&&lR(B,g)||g,y=q5(B,r)?B[r]:void 0;$5(y)&&$5(m)?B[r]=vS(y,m):$5(m)?B[r]=vS({},m):hg(m)?B[r]=m.slice():(!s||!pg(m))&&(B[r]=m)};for(let m=0,g=e.length;m<g;m++){const r=e[m];if(!r||Bv(r)||(zb(r,U),typeof r!="object"||hg(r)))continue;const y=Object.getOwnPropertySymbols(r);for(let u=0;u<y.length;u++){const a=y[u];HKe.call(r,a)&&U(r[a],a)}}return B}const BKe=(e,i,s,{allOwnKeys:B}={})=>(zb(i,(U,m)=>{s&&Sp(U)?Object.defineProperty(e,m,{__proto__:null,value:aR(U,s),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,m,{__proto__:null,value:U,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:B}),e),zKe=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),OKe=(e,i,s,B)=>{e.prototype=Object.create(i.prototype,B),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:i.prototype}),s&&Object.assign(e.prototype,s)},DKe=(e,i,s,B)=>{let U,m,g;const r={};if(i=i||{},e==null)return i;do{for(U=Object.getOwnPropertyNames(e),m=U.length;m-- >0;)g=U[m],(!B||B(g,e,i))&&!r[g]&&(i[g]=e[g],r[g]=!0);e=s!==!1&&Lv(e)}while(e&&(!s||s(e,i))&&e!==Object.prototype);return i},NKe=(e,i,s)=>{e=String(e),(s===void 0||s>e.length)&&(s=e.length),s-=i.length;const B=e.indexOf(i,s);return B!==-1&&B===s},FKe=e=>{if(!e)return null;if(hg(e))return e;let i=e.length;if(!iR(i))return null;const s=new Array(i);for(;i-- >0;)s[i]=e[i];return s},RKe=(e=>i=>e&&i instanceof e)(typeof Uint8Array<"u"&&Lv(Uint8Array)),VKe=(e,i)=>{const s=(e&&e[Lb]).call(e);let B;for(;(B=s.next())&&!B.done;){const U=B.value;i.call(e,U[0],U[1])}},jKe=(e,i)=>{let s;const B=[];for(;(s=e.exec(i))!==null;)B.push(s);return B},UKe=Bf("HTMLFormElement"),GKe=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(i,s,B){return s.toUpperCase()+B}),{propertyIsEnumerable:HKe}=Object.prototype,ZKe=Bf("RegExp"),dR=(e,i)=>{const s=Object.getOwnPropertyDescriptors(e),B={};zb(s,(U,m)=>{let g;(g=i(U,m,e))!==!1&&(B[m]=g||U)}),Object.defineProperties(e,B)},XKe=e=>{dR(e,(i,s)=>{if(Sp(e)&&["arguments","caller","callee"].includes(s))return!1;const B=e[s];if(Sp(B)){if(i.enumerable=!1,"writable"in i){i.writable=!1;return}i.set||(i.set=()=>{throw Error("Can not rewrite read-only method '"+s+"'")})}})},WKe=(e,i)=>{const s={},B=U=>{U.forEach(m=>{s[m]=!0})};return hg(e)?B(e):B(String(e).split(i)),s},YKe=()=>{},qKe=(e,i)=>e!=null&&Number.isFinite(e=+e)?e:i;function JKe(e){return!!(e&&Sp(e.append)&&e[rR]==="FormData"&&e[Lb])}const $Ke=e=>{const i=new WeakSet,s=B=>{if(zv(B)){if(i.has(B))return;if(Bv(B))return B;if(!("toJSON"in B)){i.add(B);let U;if(kKe(B)){U=[];for(const m of B){const g=s(m);!pg(g)&&U.push(g)}}else U=hg(B)?[]:{},zb(B,(m,g)=>{const r=s(m);!pg(r)&&(U[g]=r)});return i.delete(B),U}}return B};return s(e)},KKe=Bf("AsyncFunction"),QKe=e=>e&&(zv(e)||Sp(e))&&Sp(e.then)&&Sp(e.catch),uR=((e,i)=>e?setImmediate:i?((s,B)=>(fg.addEventListener("message",({source:U,data:m})=>{U===fg&&m===s&&B.length&&B.shift()()},!1),U=>{B.push(U),fg.postMessage(s,"*")}))(`axios@${Math.random()}`,[]):s=>setTimeout(s))(typeof setImmediate=="function",Sp(fg.postMessage)),eQe=typeof queueMicrotask<"u"?queueMicrotask.bind(fg):typeof process<"u"&&process.nextTick||uR,hR=e=>e!=null&&Sp(e[Lb]),tQe=e=>e!=null&&Bb(e,Lb)&&hR(e),tn={isArray:hg,isArrayBuffer:nR,isBuffer:Bv,isFormData:TKe,isArrayBufferView:pKe,isString:fKe,isNumber:iR,isBoolean:mKe,isObject:zv,isPlainObject:$5,isEmptyObject:gKe,isReadableStream:EKe,isRequest:MKe,isResponse:IKe,isHeaders:PKe,isUndefined:pg,isDate:yKe,isFile:vKe,isReactNativeBlob:bKe,isReactNative:xKe,isBlob:_Ke,isRegExp:ZKe,isFunction:Sp,isStream:SKe,isURLSearchParams:AKe,isTypedArray:RKe,isFileList:wKe,forEach:zb,merge:vS,extend:BKe,trim:LKe,stripBOM:zKe,inherits:OKe,toFlatObject:DKe,kindOf:yS,kindOfTest:Bf,endsWith:NKe,toArray:FKe,forEachEntry:VKe,matchAll:jKe,isHTMLForm:UKe,hasOwnProperty:q5,hasOwnProp:q5,hasOwnInPrototypeChain:Bb,getSafeProp:hKe,reduceDescriptors:dR,freezeMethods:XKe,toObjectSet:WKe,toCamelCase:GKe,noop:YKe,toFiniteNumber:qKe,findKey:lR,global:fg,isContextDefined:cR,isSpecCompliantForm:JKe,toJSONObject:$Ke,isAsyncFn:KKe,isThenable:QKe,setImmediate:uR,asap:eQe,isIterable:hR,isSafeIterable:tQe},aQe=tn.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"]),rQe=e=>{const i={};let s,B,U;return e&&e.split(`
99
99
  `).forEach(function(m){U=m.indexOf(":"),s=m.substring(0,U).trim().toLowerCase(),B=m.substring(U+1).trim();const g=tn.hasOwnProp(i,s);!s||g&&tn.hasOwnProp(aQe,s)||(s==="set-cookie"?g?i[s].push(B):i[s]=[B]:i[s]=g?i[s]+", "+B:B)}),i};function nQe(e){let i=0,s=e.length;for(;i<s;){const B=e.charCodeAt(i);if(B!==9&&B!==32)break;i+=1}for(;s>i;){const B=e.charCodeAt(s-1);if(B!==9&&B!==32)break;s-=1}return i===0&&s===e.length?e:e.slice(i,s)}const iQe=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),oQe=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function bS(e,i){return tn.isArray(e)?e.map(s=>bS(s,i)):nQe(String(e).replace(i,""))}const sQe=e=>bS(e,iQe),lQe=e=>bS(e,oQe);function pR(e){const i=Object.create(null);return tn.forEach(e.toJSON(),(s,B)=>{i[B]=lQe(s)}),i}const fR=Symbol("internals");function Ob(e){return e&&String(e).trim().toLowerCase()}function K5(e){return e===!1||e==null?e:tn.isArray(e)?e.map(K5):sQe(String(e))}function cQe(e){const i=Object.create(null),s=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let B;for(;B=s.exec(e);)i[B[1]]=B[2];return i}const dQe=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;function xS(e){let i=0,s=e.length;for(;i<s;){const B=e.charCodeAt(i);if(B!==9&&B!==32)break;i+=1}for(;s>i;){const B=e.charCodeAt(s-1);if(B!==9&&B!==32)break;s-=1}return i===0&&s===e.length?e:e.slice(i,s)}function uQe(e){const i=e.length-1;if(i<1||e.charCodeAt(0)!==34||e.charCodeAt(i)!==34)return e;let s="";for(let B=1;B<i;B++){const U=e.charCodeAt(B);if(U===34||U===92&&(B+=1,B>=i))return e;s+=e[B]}return s}function hQe(e){const i=Object.create(null),s=String(e);let B=0,U=!1,m=!1;function g(r){const y=xS(s.slice(B,r)),u=y.indexOf("=");if(u<1)return;const a=xS(y.slice(0,u));if(!dQe.test(a))return;const x=a.toLowerCase();if(x==="__proto__"||x==="constructor"||x==="prototype")return;const v=xS(y.slice(u+1));i[x]=uQe(v)}for(let r=0;r<s.length;r++){const y=s.charCodeAt(r);U?m?m=!1:y===92?m=!0:y===34&&(U=!1):y===34?U=!0:(y===44||y===59)&&(g(r),B=r+1)}return g(s.length),i}const pQe=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function _S(e,i,s,B,U){if(tn.isFunction(B))return B.call(this,i,s);if(U&&(i=s),!!tn.isString(i)){if(tn.isString(B))return i.indexOf(B)!==-1;if(tn.isRegExp(B))return B.test(i)}}function fQe(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(i,s,B)=>s.toUpperCase()+B)}function mQe(e,i){const s=tn.toCamelCase(" "+i);["get","set","has"].forEach(B=>{Object.defineProperty(e,B+s,{__proto__:null,value:function(U,m,g){return this[B].call(this,i,U,m,g)},configurable:!0})})}let Q5=class{constructor(i){i&&this.set(i)}set(i,s,B){const U=this;function m(r,y,u){const a=Ob(y);if(!a)return;const x=tn.findKey(U,a);(!x||U[x]===void 0||u===!0||u===void 0&&U[x]!==!1)&&(U[x||y]=K5(r))}const g=(r,y)=>tn.forEach(r,(u,a)=>m(u,a,y));if(tn.isPlainObject(i)||i instanceof this.constructor)g(i,s);else if(tn.isString(i)&&(i=i.trim())&&!pQe(i))g(rQe(i),s);else if(tn.isObject(i)&&tn.isSafeIterable(i)){let r=Object.create(null),y,u;for(const a of i){if(!tn.isArray(a))throw new TypeError("Object iterator must return a key-value pair");u=a[0],tn.hasOwnProp(r,u)?(y=r[u],r[u]=tn.isArray(y)?[...y,a[1]]:[y,a[1]]):r[u]=a[1]}g(r,s)}else i!=null&&m(s,i,B);return this}get(i,s){if(i=Ob(i),i){const B=tn.findKey(this,i);if(B){const U=this[B];if(!s)return U;if(s===!0)return cQe(U);if(tn.isFunction(s))return s.call(this,U,B);if(tn.isRegExp(s))return s.exec(U);throw new TypeError("parser must be boolean|regexp|function")}}}has(i,s){if(i=Ob(i),i){const B=tn.findKey(this,i);return!!(B&&this[B]!==void 0&&(!s||_S(this,this[B],B,s)))}return!1}delete(i,s){const B=this;let U=!1;function m(g){if(g=Ob(g),g){const r=tn.findKey(B,g);r&&(!s||_S(B,B[r],r,s))&&(delete B[r],U=!0)}}return tn.isArray(i)?i.forEach(m):m(i),U}clear(i){const s=Object.keys(this);let B=s.length,U=!1;for(;B--;){const m=s[B];(!i||_S(this,this[m],m,i,!0))&&(delete this[m],U=!0)}return U}normalize(i){const s=this,B={};return tn.forEach(this,(U,m)=>{const g=tn.findKey(B,m);if(g){s[g]=K5(U),delete s[m];return}const r=i?fQe(m):String(m).trim();r!==m&&delete s[m],s[r]=K5(U),B[r]=!0}),this}concat(...i){return this.constructor.concat(this,...i)}toJSON(i){const s=Object.create(null);return tn.forEach(this,(B,U)=>{B!=null&&B!==!1&&(s[U]=i&&tn.isArray(B)?B.join(", "):B)}),s}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([i,s])=>i+": "+s).join(`
100
100
  `)}getSetCookie(){const i=this.get("set-cookie");return tn.isArray(i)?i:i==null||i===!1?[]:[i]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(i){return i instanceof this?i:new this(i)}static parseParameters(i){return hQe(i)}static concat(i,...s){const B=new this(i);return s.forEach(U=>B.set(U)),B}static accessor(i){const s=(this[fR]=this[fR]={accessors:{}}).accessors,B=this.prototype;function U(m){const g=Ob(m);s[g]||(mQe(B,m),s[g]=!0)}return tn.isArray(i)?i.forEach(U):U(i),this}};Q5.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),tn.reduceDescriptors(Q5.prototype,({value:e},i)=>{let s=i[0].toUpperCase()+i.slice(1);return{get:()=>e,set(B){this[s]=B}}}),tn.freezeMethods(Q5);const Zp=Q5,e4="[REDACTED ****]";function gQe(e){if(tn.hasOwnProp(e,"toJSON"))return!0;let i=Object.getPrototypeOf(e);for(;i&&i!==Object.prototype;){if(tn.hasOwnProp(i,"toJSON"))return!0;i=Object.getPrototypeOf(i)}return!1}function yQe(e,i){const s=new Set(i.map(m=>String(m).toLowerCase())),B=[],U=m=>{if(m===null||typeof m!="object"||tn.isBuffer(m))return m;if(B.indexOf(m)!==-1)return;m instanceof Zp&&(m=m.toJSON()),B.push(m);let g;if(tn.isArray(m))g=[],m.forEach((r,y)=>{const u=U(r);tn.isUndefined(u)||(g[y]=u)});else{if(!tn.isPlainObject(m)&&gQe(m))return B.pop(),m;g=Object.create(null);for(const[r,y]of Object.entries(m)){const u=s.has(r.toLowerCase())?e4:U(y);tn.isUndefined(u)||(g[r]=u)}}return B.pop(),g};return U(e)}function mR(e){try{return String(e)}catch{return""}}function vQe(e){return e.errors.map(i=>{try{return i&&i.message?mR(i.message):mR(i)}catch{return""}}).filter(Boolean).join("; ")||e.name||"AggregateError"}let Hh=class mW extends Error{static from(i,s,B,U,m,g){let r=i.message;!r&&tn.isArray(i.errors)&&i.errors.length&&(r=vQe(i));const y=new mW(r,s||i.code,B,U,m);return Object.defineProperty(y,"cause",{__proto__:null,value:i,writable:!0,enumerable:!1,configurable:!0}),y.name=i.name,i.status!=null&&y.status==null&&(y.status=i.status),g&&Object.assign(y,g),y}constructor(i,s,B,U,m){super(i),Object.defineProperty(this,"message",{__proto__:null,value:i,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,s&&(this.code=s),B&&(this.config=B),U&&(this.request=U),m&&(this.response=m,this.status=m.status)}toJSON(){const i=this.config,s=i&&tn.hasOwnProp(i,"redact")?i.redact:void 0,B=tn.isArray(s)&&s.length>0?yQe(i,s):tn.toJSONObject(i);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:B,code:this.code,status:this.status}}};Hh.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",Hh.ERR_BAD_OPTION="ERR_BAD_OPTION",Hh.ECONNABORTED="ECONNABORTED",Hh.ETIMEDOUT="ETIMEDOUT",Hh.ECONNREFUSED="ECONNREFUSED",Hh.ERR_NETWORK="ERR_NETWORK",Hh.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",Hh.ERR_DEPRECATED="ERR_DEPRECATED",Hh.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",Hh.ERR_BAD_REQUEST="ERR_BAD_REQUEST",Hh.ERR_CANCELED="ERR_CANCELED",Hh.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",Hh.ERR_INVALID_URL="ERR_INVALID_URL",Hh.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";const uo=Hh,bQe=null,gR=100;function wS(e){return tn.isPlainObject(e)||tn.isArray(e)}function yR(e){return tn.endsWith(e,"[]")?e.slice(0,-2):e}function kS(e,i,s){return e?e.concat(i).map(function(B,U){return B=yR(B),!s&&U?"["+B+"]":B}).join(s?".":""):i}function xQe(e){return tn.isArray(e)&&!e.some(wS)}const _Qe=tn.toFlatObject(tn,{},null,function(e){return/^is[A-Z]/.test(e)});function t4(e,i,s){if(!tn.isObject(e))throw new TypeError("target must be an object");i=i||new FormData,s=tn.toFlatObject(s,{metaTokens:!0,dots:!1,indexes:!1},!1,function(c,l){return!tn.isUndefined(l[c])});const B=s.metaTokens,U=s.visitor||p,m=s.dots,g=s.indexes,r=s.Blob||typeof Blob<"u"&&Blob,y=s.maxDepth===void 0?gR:s.maxDepth,u=r&&tn.isSpecCompliantForm(i),a=[];if(!tn.isFunction(U))throw new TypeError("visitor must be a function");function x(c){if(c===null)return"";if(tn.isDate(c))return c.toISOString();if(tn.isBoolean(c))return c.toString();if(!u&&tn.isBlob(c))throw new uo("Blob is not supported. Use a Buffer instead.");if(tn.isArrayBuffer(c)||tn.isTypedArray(c)){if(u&&typeof r=="function")return new r([c]);throw new uo("Blob is not supported. Use a Buffer instead.",uo.ERR_NOT_SUPPORT)}return c}function v(c){if(c>y)throw new uo("Object is too deeply nested ("+c+" levels). Max depth: "+y,uo.ERR_FORM_DATA_DEPTH_EXCEEDED)}function _(c,l){if(y===1/0)return JSON.stringify(c);const h=[];return JSON.stringify(c,function(b,w){if(!tn.isObject(w))return w;for(;h.length&&h[h.length-1]!==this;)h.pop();return h.push(w),v(l+h.length-1),w})}function p(c,l,h){let b=c;if(tn.isReactNative(i)&&tn.isReactNativeBlob(c))return i.append(kS(h,l,m),x(c)),!1;if(c&&!h&&typeof c=="object"){if(tn.endsWith(l,"{}"))l=B?l:l.slice(0,-2),c=_(c,1);else if(tn.isArray(c)&&xQe(c)||(tn.isFileList(c)||tn.endsWith(l,"[]"))&&(b=tn.toArray(c)))return l=yR(l),b.forEach(function(w,C){!(tn.isUndefined(w)||w===null)&&i.append(g===!0?kS([l],C,m):g===null?l:l+"[]",x(w))}),!1}return wS(c)?!0:(i.append(kS(h,l,m),x(c)),!1)}const n=Object.assign(_Qe,{defaultVisitor:p,convertValue:x,isVisitable:wS});function o(c,l,h=0){if(!tn.isUndefined(c)){if(v(h),a.indexOf(c)!==-1)throw new Error("Circular reference detected in "+l.join("."));a.push(c),tn.forEach(c,function(b,w){(!(tn.isUndefined(b)||b===null)&&U.call(i,b,tn.isString(w)?w.trim():w,l,n))===!0&&o(b,l?l.concat(w):[w],h+1)}),a.pop()}}if(!tn.isObject(e))throw new TypeError("data must be an object");return o(e),i}function vR(e){const i={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(s){return i[s]})}function SS(e,i){this._pairs=[],e&&t4(e,this,i)}const bR=SS.prototype;bR.append=function(e,i){this._pairs.push([e,i])},bR.toString=function(e){const i=e?s=>e.call(this,s,vR):vR;return this._pairs.map(function(s){return i(s[0])+"="+i(s[1])},"").join("&")};function wQe(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function xR(e,i,s){if(!i)return e;e=e||"";const B=tn.isFunction(s)?{serialize:s}:s,U=tn.getSafeProp(B,"encode")||wQe,m=tn.getSafeProp(B,"serialize");let g;if(m?g=m(i,B):g=tn.isURLSearchParams(i)?i.toString():new SS(i,B).toString(U),g){const r=e.indexOf("#");r!==-1&&(e=e.slice(0,r)),e+=(e.indexOf("?")===-1?"?":"&")+g}return e}const _R=class{constructor(){this.handlers=[]}use(i,s,B){return this.handlers.push({fulfilled:i,rejected:s,synchronous:B?B.synchronous:!1,runWhen:B?B.runWhen:null}),this.handlers.length-1}eject(i){this.handlers[i]&&(this.handlers[i]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(i){tn.forEach(this.handlers,function(s){s!==null&&i(s)})}},CS={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},kQe=typeof URLSearchParams<"u"?URLSearchParams:SS,SQe=typeof FormData<"u"?FormData:null,CQe=typeof Blob<"u"?Blob:null,TQe={isBrowser:!0,classes:{URLSearchParams:kQe,FormData:SQe,Blob:CQe},protocols:["http","https","file","blob","url","data"]},TS=typeof window<"u"&&typeof document<"u",AS=typeof navigator=="object"&&navigator||void 0,AQe=TS&&(!AS||["ReactNative","NativeScript","NS"].indexOf(AS.product)<0),EQe=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),MQe=TS&&window.location.href||"http://localhost",IQe=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:TS,hasStandardBrowserEnv:AQe,hasStandardBrowserWebWorkerEnv:EQe,navigator:AS,origin:MQe},Symbol.toStringTag,{value:"Module"})),Yu={...IQe,...TQe};function PQe(e,i){return t4(e,new Yu.classes.URLSearchParams,{visitor:function(s,B,U,m){return Yu.isNode&&tn.isBuffer(s)?(this.append(B,s.toString("base64")),!1):m.defaultVisitor.apply(this,arguments)},...i})}const wR=gR;function kR(e){if(e>wR)throw new uo("FormData field is too deeply nested ("+e+" levels). Max depth: "+wR,uo.ERR_FORM_DATA_DEPTH_EXCEEDED)}function LQe(e){const i=[],s=/[^.[\]]+|\[([^.[\]]*)]/g;let B;for(;(B=s.exec(e))!==null;)kR(i.length),i.push(B[0]==="[]"?"":B[1]||B[0]);return i}function BQe(e){const i={},s=Object.keys(e);let B;const U=s.length;let m;for(B=0;B<U;B++)m=s[B],i[m]=e[m];return i}function SR(e){function i(s,B,U,m){kR(m);let g=s[m++];if(g==="__proto__")return!0;const r=Number.isFinite(+g),y=m>=s.length;return g=!g&&tn.isArray(U)?U.length:g,y?(tn.hasOwnProp(U,g)?U[g]=tn.isArray(U[g])?U[g].concat(B):[U[g],B]:U[g]=B,!r):((!tn.hasOwnProp(U,g)||!tn.isObject(U[g]))&&(U[g]=[]),i(s,B,U[g],m)&&tn.isArray(U[g])&&(U[g]=BQe(U[g])),!r)}if(tn.isFormData(e)&&tn.isFunction(e.entries)){const s={};return tn.forEachEntry(e,(B,U)=>{i(LQe(B),U,s,0)}),s}return null}const Ov=(e,i)=>e!=null&&tn.hasOwnProp(e,i)?e[i]:void 0;function zQe(e,i,s){if(tn.isString(e))try{return(i||JSON.parse)(e),tn.trim(e)}catch(B){if(B.name!=="SyntaxError")throw B}return(s||JSON.stringify)(e)}const ES={transitional:CS,adapter:["xhr","http","fetch"],transformRequest:[function(e,i){const s=i.getContentType()||"",B=s.indexOf("application/json")>-1,U=tn.isObject(e);if(U&&tn.isHTMLForm(e)&&(e=new FormData(e)),tn.isFormData(e))return B?JSON.stringify(SR(e)):e;if(tn.isArrayBuffer(e)||tn.isBuffer(e)||tn.isStream(e)||tn.isFile(e)||tn.isBlob(e)||tn.isReadableStream(e))return e;if(tn.isArrayBufferView(e))return e.buffer;if(tn.isURLSearchParams(e))return i.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let m;if(U){const g=Ov(this,"formSerializer");if(s.indexOf("application/x-www-form-urlencoded")>-1)return PQe(e,g).toString();if((m=tn.isFileList(e))||s.indexOf("multipart/form-data")>-1){const r=Ov(this,"env"),y=r&&r.FormData;return t4(m?{"files[]":e}:e,y&&new y,g)}}return U||B?(i.setContentType("application/json",!1),zQe(e)):e}],transformResponse:[function(e){const i=Ov(this,"transitional")||ES.transitional,s=i&&i.forcedJSONParsing,B=Ov(this,"responseType"),U=B==="json";if(tn.isResponse(e)||tn.isReadableStream(e))return e;if(e&&tn.isString(e)&&(s&&!B||U)){const m=!(i&&i.silentJSONParsing)&&U;try{return JSON.parse(e,Ov(this,"parseReviver"))}catch(g){if(m)throw g.name==="SyntaxError"?uo.from(g,uo.ERR_BAD_RESPONSE,this,null,Ov(this,"response")):g}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Yu.classes.FormData,Blob:Yu.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};tn.forEach(["delete","get","head","post","put","patch","query"],e=>{ES.headers[e]={}});const MS=ES;function IS(e,i){const s=this||MS,B=i||s,U=Zp.from(B.headers);let m=B.data;return tn.forEach(e,function(g){m=g.call(s,m,U.normalize(),i?i.status:void 0)}),U.normalize(),m}function CR(e){return!!(e&&e.__CANCEL__)}const Db=class extends uo{constructor(i,s,B){super(i??"canceled",uo.ERR_CANCELED,s,B),this.name="CanceledError",this.__CANCEL__=!0}};function TR(e,i,s){const B=s.config.validateStatus;!s.status||!B||B(s.status)?e(s):i(new uo("Request failed with status code "+s.status,s.status>=400&&s.status<500?uo.ERR_BAD_REQUEST:uo.ERR_BAD_RESPONSE,s.config,s.request,s))}function OQe(e){const i=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return i&&i[1]||""}function DQe(e,i){e=e||10;const s=new Array(e),B=new Array(e);let U=0,m=0,g;return i=i!==void 0?i:1e3,function(r){const y=Date.now(),u=B[m];g||(g=y),s[U]=r,B[U]=y;let a=m,x=0;for(;a!==U;)x+=s[a++],a=a%e;if(U=(U+1)%e,U===m&&(m=(m+1)%e),y-g<i)return;const v=u&&y-u;return v?Math.round(x*1e3/v):void 0}}function NQe(e,i){let s=0,B=1e3/i,U,m;const g=(r,y=Date.now())=>{s=y,U=null,m&&(clearTimeout(m),m=null),e(...r)};return[(...r)=>{const y=Date.now(),u=y-s;u>=B?g(r,y):(U=r,m||(m=setTimeout(()=>{m=null,g(U)},B-u)))},()=>U&&g(U)]}const a4=(e,i,s=3)=>{let B=0;const U=DQe(50,250);return NQe(m=>{if(!m||typeof m.loaded!="number")return;const g=m.loaded,r=m.lengthComputable?m.total:void 0,y=Math.max(0,r!=null?Math.min(g,r):g),u=Math.max(0,y-B),a=U(u);B=Math.max(B,y);const x={loaded:y,total:r,progress:r?y/r:void 0,bytes:u,rate:a||void 0,estimated:a&&r?(r-y)/a:void 0,event:m,lengthComputable:r!=null,[i?"download":"upload"]:!0};e(x)},s)},AR=(e,i)=>{const s=e!=null;return[B=>i[0]({lengthComputable:s,total:e,loaded:B}),i[1]]},ER=(e,i=tn.asap)=>(...s)=>i(()=>e(...s)),FQe=Yu.hasStandardBrowserEnv?((e,i)=>s=>(s=new URL(s,Yu.origin),e.protocol===s.protocol&&e.host===s.host&&(i||e.port===s.port)))(new URL(Yu.origin),Yu.navigator&&/(msie|trident)/i.test(Yu.navigator.userAgent)):()=>!0,RQe=Yu.hasStandardBrowserEnv?{write(e,i,s,B,U,m,g){if(typeof document>"u")return;const r=[`${e}=${encodeURIComponent(i)}`];tn.isNumber(s)&&r.push(`expires=${new Date(s).toUTCString()}`),tn.isString(B)&&r.push(`path=${B}`),tn.isString(U)&&r.push(`domain=${U}`),m===!0&&r.push("secure"),tn.isString(g)&&r.push(`SameSite=${g}`),document.cookie=r.join("; ")},read(e){if(typeof document>"u")return null;const i=document.cookie.split(";");for(let s=0;s<i.length;s++){const B=i[s].replace(/^\s+/,""),U=B.indexOf("=");if(U!==-1&&B.slice(0,U)===e)try{return decodeURIComponent(B.slice(U+1))}catch{return B.slice(U+1)}}return null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function VQe(e){return typeof e!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function jQe(e,i){if(!i)return e;let s=e.length;for(;s>0&&e.charCodeAt(s-1)===47;)s--;return e.slice(0,s)+"/"+i.replace(/^\/+/,"")}const UQe=/^https?:(?!\/\/)/i,GQe=/[\t\n\r]/g;function HQe(e){let i=0;for(;i<e.length&&e.charCodeAt(i)<=32;)i++;return e.slice(i)}function ZQe(e){return HQe(e).replace(GQe,"")}function XQe(e){return e&&e.replace(/(^|&)([^=&]*=)?[^&]+/g,(i,s,B="")=>`${s}${B}${e4}`)}function WQe(e){const i=e.replace(/^(https?:\/{0,2})[^/?#]*@/i,`$1${e4}@`),s=i.indexOf("#"),B=(s===-1?i:i.slice(0,s)).replace(/([?&][^=&#]*=)[^&#]*/g,`$1${e4}`);return s===-1?B:`${B}#${XQe(i.slice(s+1))}`}function MR(e,i){if(typeof e=="string"){const s=ZQe(e);if(UQe.test(s))throw new uo(`Invalid URL ${JSON.stringify(WQe(s))}: missing "//" after protocol`,uo.ERR_INVALID_URL,i)}}function IR(e,i,s,B){MR(i,B);let U=!VQe(i);return e&&(U||s===!1)?(MR(e,B),jQe(e,i)):i}const PR=e=>e instanceof Zp?{...e}:e,YQe=e=>Object.getOwnPropertySymbols&&Object.getOwnPropertyDescriptor?Object.keys(e).concat(Object.getOwnPropertySymbols(e).filter(i=>Object.getOwnPropertyDescriptor(e,i).enumerable)):Object.keys(e);function mg(e,i){e=e||{},i=i||{};const s=Object.create(null);Object.defineProperty(s,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});function B(a,x,v,_){return tn.isPlainObject(a)&&tn.isPlainObject(x)?tn.merge.call({caseless:_},a,x):tn.isPlainObject(x)?tn.merge({},x):tn.isArray(x)?x.slice():x}function U(a,x,v,_){if(tn.isUndefined(x)){if(!tn.isUndefined(a))return B(void 0,a,v,_)}else return B(a,x,v,_)}function m(a,x){if(!tn.isUndefined(x))return B(void 0,x)}function g(a,x){if(tn.isUndefined(x)){if(!tn.isUndefined(a))return B(void 0,a)}else return B(void 0,x)}function r(a){const x=tn.hasOwnProp(i,"transitional")?i.transitional:void 0;if(!tn.isUndefined(x))if(tn.isPlainObject(x)){if(tn.hasOwnProp(x,a))return x[a]}else return;const v=tn.hasOwnProp(e,"transitional")?e.transitional:void 0;if(tn.isPlainObject(v)&&tn.hasOwnProp(v,a))return v[a]}function y(a,x,v){if(tn.hasOwnProp(i,v))return B(a,x);if(tn.hasOwnProp(e,v))return B(void 0,a)}const u={url:m,method:m,data:m,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,allowedSocketPaths:g,responseEncoding:g,validateStatus:y,headers:(a,x,v)=>U(PR(a),PR(x),v,!0)};return tn.forEach(YQe({...e,...i}),function(a){if(a==="__proto__"||a==="constructor"||a==="prototype")return;const x=tn.hasOwnProp(u,a)?u[a]:U,v=tn.hasOwnProp(e,a)?e[a]:void 0,_=tn.hasOwnProp(i,a)?i[a]:void 0,p=x(v,_,a);tn.isUndefined(p)&&x!==y||(s[a]=p)}),tn.hasOwnProp(i,"validateStatus")&&tn.isUndefined(i.validateStatus)&&r("validateStatusUndefinedResolves")===!1&&(tn.hasOwnProp(e,"validateStatus")?s.validateStatus=B(void 0,e.validateStatus):delete s.validateStatus),s}const qQe=["content-type","content-length"];function JQe(e,i,s){if(s!=="content-only"){e.set(i);return}Object.entries(i||{}).forEach(([B,U])=>{qQe.includes(B.toLowerCase())&&e.set(B,U)})}const $Qe=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(i,s)=>String.fromCharCode(parseInt(s,16)));function LR(e){const i=mg({},e),s=v=>tn.hasOwnProp(i,v)?i[v]:void 0,B=s("data");let U=s("withXSRFToken");const m=s("xsrfHeaderName"),g=s("xsrfCookieName");let r=s("headers");const y=s("auth"),u=s("baseURL"),a=s("allowAbsoluteUrls"),x=s("url");if(i.headers=r=Zp.from(r),i.url=xR(IR(u,x,a,i),s("params"),s("paramsSerializer")),y){const v=tn.getSafeProp(y,"username")||"",_=tn.getSafeProp(y,"password")||"";try{r.set("Authorization","Basic "+btoa(v+":"+(_?$Qe(_):"")))}catch(p){throw uo.from(p,uo.ERR_BAD_OPTION_VALUE,e)}}if(tn.isFormData(B)&&(Yu.hasStandardBrowserEnv||Yu.hasStandardBrowserWebWorkerEnv||tn.isReactNative(B)?r.setContentType(void 0):tn.isFunction(B.getHeaders)&&JQe(r,B.getHeaders(),s("formDataHeaderPolicy"))),Yu.hasStandardBrowserEnv&&(tn.isFunction(U)&&(U=U(i)),U===!0||U==null&&FQe(i.url))){const v=m&&g&&RQe.read(g);v&&r.set(m,v)}return i}const KQe=typeof XMLHttpRequest<"u",QQe=KQe&&function(e){return new Promise(function(i,s){const B=LR(e);let U=B.data;const m=Zp.from(B.headers).normalize();let{responseType:g,onUploadProgress:r,onDownloadProgress:y}=B,u,a,x,v,_;function p(){v&&v(),_&&_(),B.cancelToken&&B.cancelToken.unsubscribe(u),B.signal&&B.signal.removeEventListener("abort",u)}let n=new XMLHttpRequest;n.open(B.method.toUpperCase(),B.url,!0),n.timeout=B.timeout;function o(){if(!n)return;const l=Zp.from("getAllResponseHeaders"in n&&n.getAllResponseHeaders()),h={data:!g||g==="text"||g==="json"?n.responseText:n.response,status:n.status,statusText:n.statusText,headers:l,config:e,request:n};TR(function(b){i(b),p()},function(b){s(b),p()},h),n=null}"onloadend"in n?n.onloadend=o:n.onreadystatechange=function(){!n||n.readyState!==4||n.status===0&&!(n.responseURL&&n.responseURL.startsWith("file:"))||setTimeout(o)},n.onabort=function(){n&&(s(new uo("Request aborted",uo.ECONNABORTED,e,n)),p(),n=null)},n.onerror=function(l){const h=l&&l.message?l.message:"Network Error",b=new uo(h,uo.ERR_NETWORK,e,n);b.event=l||null,s(b),p(),n=null},n.ontimeout=function(){let l=B.timeout?"timeout of "+B.timeout+"ms exceeded":"timeout exceeded";const h=B.transitional||CS;B.timeoutErrorMessage&&(l=B.timeoutErrorMessage),s(new uo(l,h.clarifyTimeoutError?uo.ETIMEDOUT:uo.ECONNABORTED,e,n)),p(),n=null},U===void 0&&m.setContentType(null),"setRequestHeader"in n&&tn.forEach(pR(m),function(l,h){n.setRequestHeader(h,l)}),tn.isUndefined(B.withCredentials)||(n.withCredentials=!!B.withCredentials),g&&g!=="json"&&(n.responseType=B.responseType),y&&([x,_]=a4(y,!0),n.addEventListener("progress",x)),r&&n.upload&&([a,v]=a4(r),n.upload.addEventListener("progress",a),n.upload.addEventListener("loadend",v)),(B.cancelToken||B.signal)&&(u=l=>{n&&(s(!l||l.type?new Db(null,e,n):l),n.abort(),p(),n=null)},B.cancelToken&&B.cancelToken.subscribe(u),B.signal&&(B.signal.aborted?u():B.signal.addEventListener("abort",u)));const c=OQe(B.url);if(c&&!Yu.protocols.includes(c)){s(new uo("Unsupported protocol "+c+":",uo.ERR_BAD_REQUEST,e)),p();return}n.send(U||null)})},eet=(e,i)=>{if(e=e?e.filter(Boolean):[],!i&&!e.length)return;const s=new AbortController;let B=!1;const U=function(y){if(!B){B=!0,g();const u=y instanceof Error?y:this.reason;s.abort(u instanceof uo?u:new Db(u instanceof Error?u.message:u))}};let m=i&&setTimeout(()=>{m=null,U(new uo(`timeout of ${i}ms exceeded`,uo.ETIMEDOUT))},i);const g=()=>{e&&(m&&clearTimeout(m),m=null,e.forEach(y=>{y.unsubscribe?y.unsubscribe(U):y.removeEventListener("abort",U)}),e=null)};e.forEach(y=>{if(!B){if(y.aborted){U.call(y);return}y.addEventListener("abort",U,{once:!0})}});const{signal:r}=s;return r.unsubscribe=()=>tn.asap(g),r},tet=eet,aet=function*(e,i){let s=e.byteLength;if(!i||s<i){yield e;return}let B=0,U;for(;B<s;)U=B+i,yield e.slice(B,U),B=U},ret=async function*(e,i){for await(const s of net(e))yield*aet(s,i)},net=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const i=e.getReader();try{for(;;){const{done:s,value:B}=await i.read();if(s)break;yield B}}finally{await i.cancel()}},BR=(e,i,s,B)=>{const U=ret(e,i);let m=0,g,r=y=>{g||(g=!0,B&&B(y))};return new ReadableStream({async pull(y){try{const{done:u,value:a}=await U.next();if(u){r(),y.close();return}let x=a.byteLength;if(s){let v=m+=x;s(v)}y.enqueue(new Uint8Array(a))}catch(u){throw r(u),u}},cancel(y){return r(y),U.return()}},{highWaterMark:2})},zR=e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102,OR=(e,i,s)=>i+2<s&&zR(e.charCodeAt(i+1))&&zR(e.charCodeAt(i+2)),DR=e=>e<=57?e-48:(e&223)-55,iet=e=>e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||e===43||e===47||e===45||e===95,oet=e=>e===9||e===10||e===12||e===13||e===32,set=e=>{const i=Math.floor(e/4),s=e%4;return i*3+(s===2?1:s===3?2:0)},cet=e=>{const i=e.length;let s=0;return i>0&&e.charCodeAt(i-1)===61&&(s++,i>1&&e.charCodeAt(i-2)===61&&s++),Math.floor((i-s)*3/4)},det=e=>{const i=e.length;let s=0,B=0,U=!1;for(let m=0;m<i;m++){let g=e.charCodeAt(m);if(g===37&&OR(e,m,i)&&(g=DR(e.charCodeAt(m+1))*16+DR(e.charCodeAt(m+2)),m+=2),!oet(g)){if(g===61){B++;continue}if(!iet(g)||B>0){U=!0;continue}s++}}return U||B>2||B>0&&(s+B)%4!==0||s%4===1?cet(e):set(s)},uet=(e,i)=>{if(!e||typeof e!="string"||!e.startsWith("data:"))return 0;const s=e.indexOf(",");if(s<0)return 0;const B=e.slice(5,s),U=e.slice(s+1);if(/;base64/i.test(B))return i(U);let m=0;for(let g=0,r=U.length;g<r;g++){const y=U.charCodeAt(g);if(y===37&&OR(U,g,r))m+=1,g+=2;else if(y<128)m+=1;else if(y<2048)m+=2;else if(y>=55296&&y<=56319&&g+1<r){const u=U.charCodeAt(g+1);u>=56320&&u<=57343?(m+=4,g++):m+=3}else m+=3}return m};function het(e){const i=typeof e=="string"?e.indexOf("#"):-1;return uet(i===-1?e:e.slice(0,i),det)}const PS="1.19.0",NR=64*1024,{isFunction:r4}=tn,pet=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(i,s)=>String.fromCharCode(parseInt(s,16))),FR=e=>{if(!tn.isString(e))return e;try{return decodeURIComponent(e)}catch{return e}},RR=(e,...i)=>{try{return!!e(...i)}catch{return!1}},fet=e=>{const i=e.indexOf("://");let s=e;return i!==-1&&(s=s.slice(i+3)),s.includes("@")||s.includes(":")},met=e=>{const i=tn.global!==void 0&&tn.global!==null?tn.global:globalThis,{ReadableStream:s,TextEncoder:B}=i;e=tn.merge.call({skipUndefined:!0},{Request:i.Request,Response:i.Response},e);const{fetch:U,Request:m,Response:g}=e,r=U?r4(U):typeof fetch=="function",y=r4(m),u=r4(g);if(!r)return!1;const a=r&&r4(s),x=r&&(typeof B=="function"?(c=>l=>c.encode(l))(new B):async c=>new Uint8Array(await new m(c).arrayBuffer())),v=y&&a&&RR(()=>{let c=!1;const l=new m(Yu.origin,{body:new s,method:"POST",get duplex(){return c=!0,"half"}}),h=l.headers.has("Content-Type");return l.body!=null&&l.body.cancel(),c&&!h}),_=u&&a&&RR(()=>tn.isReadableStream(new g("").body)),p={stream:_&&(c=>c.body)};r&&["text","arrayBuffer","blob","formData","stream"].forEach(c=>{!p[c]&&(p[c]=(l,h)=>{let b=l&&l[c];if(b)return b.call(l);throw new uo(`Response type '${c}' is not supported`,uo.ERR_NOT_SUPPORT,h)})});const n=async c=>{if(c==null)return 0;if(tn.isBlob(c))return c.size;if(tn.isSpecCompliantForm(c))return(await new m(Yu.origin,{method:"POST",body:c}).arrayBuffer()).byteLength;if(tn.isArrayBufferView(c)||tn.isArrayBuffer(c))return c.byteLength;if(tn.isURLSearchParams(c)&&(c=c+""),tn.isString(c))return(await x(c)).byteLength},o=async(c,l)=>tn.toFiniteNumber(c.getContentLength())??n(l);return async c=>{let{url:l,method:h,data:b,signal:w,cancelToken:C,timeout:E,onDownloadProgress:A,onUploadProgress:P,responseType:L,headers:T,withCredentials:I="same-origin",fetchOptions:M,maxContentLength:S,maxBodyLength:z}=LR(c);const k=tn.isNumber(S)&&S>-1,O=tn.isNumber(z)&&z>-1,N=K=>tn.hasOwnProp(c,K)?c[K]:void 0;let j=U||fetch;L=L?(L+"").toLowerCase():"text";let H=tet([w,C&&C.toAbortSignal()],E),Z=null;const G=H&&H.unsubscribe&&(()=>{H.unsubscribe()});let $,ne=null;const W=()=>new uo("Request body larger than maxBodyLength limit",uo.ERR_BAD_REQUEST,c,Z);try{let K;const Q=N("auth");if(Q){const ie=tn.getSafeProp(Q,"username")||"",me=tn.getSafeProp(Q,"password")||"";K={username:ie,password:me}}if(fet(l)){const ie=new URL(l,Yu.origin);if(!K&&(ie.username||ie.password)){const me=FR(ie.username),ye=FR(ie.password);K={username:me,password:ye}}(ie.username||ie.password)&&(ie.username="",ie.password="",l=ie.href)}if(K&&(T.delete("authorization"),T.set("Authorization","Basic "+btoa(pet((K.username||"")+":"+(K.password||""))))),k&&typeof l=="string"&&l.startsWith("data:")&&het(l)>S)throw new uo("maxContentLength size of "+S+" exceeded",uo.ERR_BAD_RESPONSE,c,Z);if(O&&h!=="get"&&h!=="head"){const ie=await n(b);if(typeof ie=="number"&&isFinite(ie)&&($=ie,ie>z))throw W()}const J=O&&(tn.isReadableStream(b)||tn.isStream(b)),ee=(ie,me,ye)=>BR(ie,NR,ve=>{if(O&&ve>z)throw ne=W();me&&me(ve)},ye);if(v&&h!=="get"&&h!=="head"&&(P||J)){if($=$??await o(T,b),$!==0||J){let ie=new m(l,{method:"POST",body:b,duplex:"half"}),me;if(tn.isFormData(b)&&(me=ie.headers.get("content-type"))&&T.setContentType(me),ie.body){const[ye,ve]=P&&AR($,a4(ER(P)))||[];b=ee(ie.body,ye,ve)}}}else if(J&&!y&&a&&h!=="get"&&h!=="head")b=ee(b);else if(J&&y&&!v&&h!=="get"&&h!=="head")throw new uo("Stream request bodies are not supported by the current fetch implementation",uo.ERR_NOT_SUPPORT,c,Z);tn.isString(I)||(I=I?"include":"omit");const ce=y&&"credentials"in m.prototype;if(tn.isFormData(b)){const ie=T.getContentType();ie&&/^multipart\/form-data/i.test(ie)&&!/boundary=/i.test(ie)&&T.delete("content-type")}T.set("User-Agent","axios/"+PS,!1);const ue={...M,signal:H,method:h.toUpperCase(),headers:pR(T.normalize()),body:b,duplex:"half",credentials:ce?I:void 0};Z=y&&new m(l,ue);let he=await(y?j(Z,M):j(l,ue));const pe=Zp.from(he.headers);if(k){const ie=tn.toFiniteNumber(pe.getContentLength());if(ie!=null&&ie>S)throw new uo("maxContentLength size of "+S+" exceeded",uo.ERR_BAD_RESPONSE,c,Z)}const re=_&&(L==="stream"||L==="response");if(_&&he.body&&(A||k||re&&G)){const ie={};["status","statusText","headers"].forEach(Ce=>{ie[Ce]=he[Ce]});const me=tn.toFiniteNumber(pe.getContentLength()),[ye,ve]=A&&AR(me,a4(ER(A),!0))||[];let we=0;const Se=Ce=>{if(k&&(we=Ce,we>S))throw new uo("maxContentLength size of "+S+" exceeded",uo.ERR_BAD_RESPONSE,c,Z);ye&&ye(Ce)};he=new g(BR(he.body,NR,Se,()=>{ve&&ve(),G&&G()}),ie)}L=L||"text";let se=await p[tn.findKey(p,L)||"text"](he,c);if(k&&!_&&!re){let ie;if(se!=null&&(typeof se.byteLength=="number"?ie=se.byteLength:typeof se.size=="number"?ie=se.size:typeof se=="string"&&(ie=typeof B=="function"?new B().encode(se).byteLength:se.length)),typeof ie=="number"&&ie>S)throw new uo("maxContentLength size of "+S+" exceeded",uo.ERR_BAD_RESPONSE,c,Z)}return!re&&G&&G(),await new Promise((ie,me)=>{TR(ie,me,{data:se,headers:Zp.from(he.headers),status:he.status,statusText:he.statusText,config:c,request:Z})})}catch(K){if(G&&G(),H&&H.aborted&&H.reason instanceof uo){const Q=H.reason;throw Q.config=c,Z&&(Q.request=Z),K!==Q&&Object.defineProperty(Q,"cause",{__proto__:null,value:K,writable:!0,enumerable:!1,configurable:!0}),Q}if(ne)throw Z&&!ne.request&&(ne.request=Z),ne;if(K instanceof uo)throw Z&&!K.request&&(K.request=Z),K;if(K&&K.name==="TypeError"&&/Load failed|fetch/i.test(K.message)){const Q=new uo("Network Error",uo.ERR_NETWORK,c,Z,K&&K.response);throw Object.defineProperty(Q,"cause",{__proto__:null,value:K.cause||K,writable:!0,enumerable:!1,configurable:!0}),Q}throw uo.from(K,K&&K.code,c,Z,K&&K.response)}}},get=new Map,VR=e=>{let i=e&&e.env||{};const{fetch:s,Request:B,Response:U}=i,m=[B,U,s];let g=m.length,r=g,y,u,a=get;for(;r--;)y=m[r],u=a.get(y),u===void 0&&a.set(y,u=r?new Map:met(i)),a=u;return u};VR();const LS={http:bQe,xhr:QQe,fetch:{get:VR}};tn.forEach(LS,(e,i)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:i})}catch{}Object.defineProperty(e,"adapterName",{__proto__:null,value:i})}});const jR=e=>`- ${e}`,yet=e=>tn.isFunction(e)||e===null||e===!1;function vet(e,i){e=tn.isArray(e)?e:[e];const{length:s}=e;let B,U;const m={};for(let g=0;g<s;g++){B=e[g];let r;if(U=B,!yet(B)&&(U=LS[(r=String(B)).toLowerCase()],U===void 0))throw new uo(`Unknown adapter '${r}'`);if(U&&(tn.isFunction(U)||(U=U.get(i))))break;m[r||"#"+g]=U}if(!U){const g=Object.entries(m).map(([y,u])=>`adapter ${y} `+(u===!1?"is not supported by the environment":"is not available in the build"));let r=s?g.length>1?`since :
101
101
  `+g.map(jR).join(`