@golstats/gsc-game-data 1.0.269 → 1.0.270

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -121,7 +121,7 @@
121
121
  * Vue 3 Carousel 0.3.1
122
122
  * (c) 2023
123
123
  * @license MIT
124
- */const Sd={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"}},gH={itemsToShow:{default:Sd.itemsToShow,type:Number},itemsToScroll:{default:Sd.itemsToScroll,type:Number},wrapAround:{default:Sd.wrapAround,type:Boolean},throttle:{default:Sd.throttle,type:Number},snapAlign:{default:Sd.snapAlign,validator(e){return["start","end","center","center-even","center-odd"].includes(e)}},transition:{default:Sd.transition,type:Number},breakpoints:{default:Sd.breakpoints,type:Object},autoplay:{default:Sd.autoplay,type:Number},pauseAutoplayOnHover:{default:Sd.pauseAutoplayOnHover,type:Boolean},modelValue:{default:void 0,type:Number},mouseDrag:{default:Sd.mouseDrag,type:Boolean},touchDrag:{default:Sd.touchDrag,type:Boolean},dir:{default:Sd.dir,validator(e){return["rtl","ltr"].includes(e)}},i18n:{default:Sd.i18n,type:Object},settings:{default(){return{}},type:Object}};function ebt({config:e,slidesCount:r}){const{snapAlign:i,wrapAround:B,itemsToShow:D=1}=e;if(B)return Math.max(r-1,0);let c;switch(i){case"start":c=r-D;break;case"end":c=r-1;break;case"center":case"center-odd":c=r-Math.ceil((D-.5)/2);break;case"center-even":c=r-Math.ceil(D/2);break;default:c=0;break}return Math.max(c,0)}function tbt({config:e,slidesCount:r}){const{wrapAround:i,snapAlign:B,itemsToShow:D=1}=e;let c=0;if(i||D>r)return c;switch(B){case"start":c=0;break;case"end":c=D-1;break;case"center":case"center-odd":c=Math.floor((D-1)/2);break;case"center-even":c=Math.floor((D-2)/2);break;default:c=0;break}return c}function rE({val:e,max:r,min:i}){return r<i?e:Math.min(Math.max(e,i),r)}function abt({config:e,currentSlide:r,slidesCount:i}){const{snapAlign:B,wrapAround:D,itemsToShow:c=1}=e;let m=r;switch(B){case"center":case"center-odd":m-=(c-1)/2;break;case"center-even":m-=(c-2)/2;break;case"end":m-=c-1;break}return D?m:rE({val:m,max:i-c,min:0})}function yH(e){return e?e.reduce((r,i)=>{var B;return i.type===t.Fragment?[...r,...yH(i.children)]:((B=i.type)===null||B===void 0?void 0:B.name)==="CarouselSlide"?[...r,i]:r},[]):[]}function iE({val:e,max:r,min:i=0}){return e>r?iE({val:e-(r+1),max:r,min:i}):e<i?iE({val:e+(r+1),max:r,min:i}):e}function nbt(e,r){let i;return r?function(...B){const D=this;i||(e.apply(D,B),i=!0,setTimeout(()=>i=!1,r))}:e}function rbt(e,r){let i;return function(...B){i&&clearTimeout(i),i=setTimeout(()=>{e(...B),i=null},r)}}function ibt(e="",r={}){return Object.entries(r).reduce((i,[B,D])=>i.replace(`{${B}}`,String(D)),e)}var obt=t.defineComponent({name:"ARIA",setup(){const e=t.inject("config",t.reactive(Object.assign({},Sd))),r=t.inject("currentSlide",t.ref(0)),i=t.inject("slidesCount",t.ref(0));return()=>t.h("div",{class:["carousel__liveregion","carousel__sr-only"],"aria-live":"polite","aria-atomic":"true"},ibt(e.i18n.itemXofY,{currentSlide:r.value+1,slidesCount:i.value}))}}),sbt=t.defineComponent({name:"Carousel",props:gH,setup(e,{slots:r,emit:i,expose:B}){var D;const c=t.ref(null),m=t.ref([]),a=t.ref(0),y=t.ref(0),f=t.reactive(Object.assign({},Sd));let n=Object.assign({},Sd),v;const _=t.ref((D=e.modelValue)!==null&&D!==void 0?D:0),p=t.ref(0),l=t.ref(0),o=t.ref(0),s=t.ref(0);let d,u;t.provide("config",f),t.provide("slidesCount",y),t.provide("currentSlide",_),t.provide("maxSlide",o),t.provide("minSlide",s),t.provide("slideWidth",a);function h(){v=Object.assign({},e.breakpoints),n=Object.assign(Object.assign(Object.assign({},n),e),{i18n:Object.assign(Object.assign({},n.i18n),e.i18n),breakpoints:void 0}),b(n)}function g(){if(!v||!Object.keys(v).length)return;const ae=Object.keys(v).map(ie=>Number(ie)).sort((ie,de)=>+de-+ie);let ne=Object.assign({},n);ae.some(ie=>{const de=window.matchMedia(`(min-width: ${ie}px)`).matches;return de&&(ne=Object.assign(Object.assign({},ne),v[ie])),de}),b(ne)}function b(ae){Object.entries(ae).forEach(([ne,ie])=>f[ne]=ie)}const w=rbt(()=>{g(),x()},16);function x(){if(!c.value)return;const ae=c.value.getBoundingClientRect();a.value=ae.width/f.itemsToShow}function S(){y.value<=0||(l.value=Math.ceil((y.value-1)/2),o.value=ebt({config:f,slidesCount:y.value}),s.value=tbt({config:f,slidesCount:y.value}),f.wrapAround||(_.value=rE({val:_.value,max:o.value,min:s.value})))}t.onMounted(()=>{t.nextTick(()=>x()),setTimeout(()=>x(),1e3),g(),V(),window.addEventListener("resize",w,{passive:!0}),i("init")}),t.onUnmounted(()=>{u&&clearTimeout(u),d&&clearInterval(d),window.removeEventListener("resize",w,{passive:!0})});let C=!1;const T={x:0,y:0},k={x:0,y:0},A=t.reactive({x:0,y:0}),E=t.ref(!1),M=t.ref(!1),I=()=>{E.value=!0},N=()=>{E.value=!1};function z(ae){["INPUT","TEXTAREA","SELECT"].includes(ae.target.tagName)||(C=ae.type==="touchstart",C||ae.preventDefault(),!(!C&&ae.button!==0||U.value)&&(T.x=C?ae.touches[0].clientX:ae.clientX,T.y=C?ae.touches[0].clientY:ae.clientY,document.addEventListener(C?"touchmove":"mousemove",F,!0),document.addEventListener(C?"touchend":"mouseup",R,!0)))}const F=nbt(ae=>{M.value=!0,k.x=C?ae.touches[0].clientX:ae.clientX,k.y=C?ae.touches[0].clientY:ae.clientY;const ne=k.x-T.x,ie=k.y-T.y;A.y=ie,A.x=ne},f.throttle);function R(){const ae=f.dir==="rtl"?-1:1,ne=Math.sign(A.x)*.4,ie=Math.round(A.x/a.value+ne)*ae;if(ie&&!C){const de=he=>{he.stopPropagation(),window.removeEventListener("click",de,!0)};window.addEventListener("click",de,!0)}Z(_.value-ie),A.x=0,A.y=0,M.value=!1,document.removeEventListener(C?"touchmove":"mousemove",F,!0),document.removeEventListener(C?"touchend":"mouseup",R,!0)}function V(){!f.autoplay||f.autoplay<=0||(d=setInterval(()=>{f.pauseAutoplayOnHover&&E.value||q()},f.autoplay))}function $(){d&&(clearInterval(d),d=null),V()}const U=t.ref(!1);function Z(ae){const ne=f.wrapAround?ae:rE({val:ae,max:o.value,min:s.value});_.value===ne||U.value||(i("slide-start",{slidingToIndex:ae,currentSlideIndex:_.value,prevSlideIndex:p.value,slidesCount:y.value}),U.value=!0,p.value=_.value,_.value=ne,u=setTimeout(()=>{if(f.wrapAround){const ie=iE({val:ne,max:o.value,min:0});ie!==_.value&&(_.value=ie,i("loop",{currentSlideIndex:_.value,slidingToIndex:ae}))}i("update:modelValue",_.value),i("slide-end",{currentSlideIndex:_.value,prevSlideIndex:p.value,slidesCount:y.value}),U.value=!1,$()},f.transition))}function q(){Z(_.value+f.itemsToScroll)}function W(){Z(_.value-f.itemsToScroll)}const Q={slideTo:Z,next:q,prev:W};t.provide("nav",Q),t.provide("isSliding",U);const X=t.computed(()=>abt({config:f,currentSlide:_.value,slidesCount:y.value}));t.provide("slidesToScroll",X);const J=t.computed(()=>{const ae=f.dir==="rtl"?-1:1,ne=X.value*a.value*ae;return{transform:`translateX(${A.x-ne}px)`,transition:`${U.value?f.transition:0}ms`,margin:f.wrapAround?`0 -${y.value*a.value}px`:"",width:"100%"}});function ee(){h(),g(),S(),x(),$()}Object.keys(gH).forEach(ae=>{["modelValue"].includes(ae)||t.watch(()=>e[ae],ee)}),t.watch(()=>e.modelValue,ae=>{ae!==_.value&&Z(Number(ae))}),t.watch(y,S),i("before-init"),h();const le={config:f,slidesCount:y,slideWidth:a,next:q,prev:W,slideTo:Z,currentSlide:_,maxSlide:o,minSlide:s,middleSlide:l};B({updateBreakpointsConfigs:g,updateSlidesData:S,updateSlideWidth:x,initDefaultConfigs:h,restartCarousel:ee,slideTo:Z,next:q,prev:W,nav:Q,data:le});const oe=r.default||r.slides,se=r.addons,ce=t.reactive(le);return()=>{const ae=yH(oe==null?void 0:oe(ce)),ne=(se==null?void 0:se(ce))||[];ae.forEach((pe,me)=>pe.props.index=me);let ie=ae;if(f.wrapAround){const pe=ae.map((_e,we)=>t.cloneVNode(_e,{index:-ae.length+we,isClone:!0,key:`clone-before-${we}`})),me=ae.map((_e,we)=>t.cloneVNode(_e,{index:ae.length+we,isClone:!0,key:`clone-after-${we}`}));ie=[...pe,...ae,...me]}m.value=ae,y.value=Math.max(ae.length,1);const de=t.h("ol",{class:"carousel__track",style:J.value,onMousedownCapture:f.mouseDrag?z:null,onTouchstartPassiveCapture:f.touchDrag?z:null},ie),he=t.h("div",{class:"carousel__viewport"},de);return t.h("section",{ref:c,class:{carousel:!0,"is-sliding":U.value,"is-dragging":M.value,"is-hover":E.value,"carousel--rtl":f.dir==="rtl"},dir:f.dir,"aria-label":f.i18n.ariaGallery,tabindex:"0",onMouseenter:I,onMouseleave:N},[he,ne,t.h(obt)])}}}),vH;(function(e){e.arrowUp="arrowUp",e.arrowDown="arrowDown",e.arrowRight="arrowRight",e.arrowLeft="arrowLeft"})(vH||(vH={}));var lbt=t.defineComponent({name:"CarouselSlide",props:{index:{type:Number,default:1},isClone:{type:Boolean,default:!1}},setup(e,{slots:r}){const i=t.inject("config",t.reactive(Object.assign({},Sd))),B=t.inject("currentSlide",t.ref(0)),D=t.inject("slidesToScroll",t.ref(0)),c=t.inject("isSliding",t.ref(!1)),m=()=>e.index===B.value,a=()=>e.index===B.value-1,y=()=>e.index===B.value+1,f=()=>{const n=Math.floor(D.value),v=Math.ceil(D.value+i.itemsToShow-1);return e.index>=n&&e.index<=v};return()=>{var n;return t.h("li",{style:{width:`${100/i.itemsToShow}%`},class:{carousel__slide:!0,"carousel__slide--clone":e.isClone,"carousel__slide--visible":f(),"carousel__slide--active":m(),"carousel__slide--prev":a(),"carousel__slide--next":y(),"carousel__slide--sliding":c.value},"aria-hidden":!f()},(n=r.default)===null||n===void 0?void 0:n.call(r))}}});const cbt=(e,r)=>{const i=e.__vccOpts||e;for(const[B,D]of r)i[B]=D;return i},ubt=e=>(t.pushScopeId("data-v-54620d25"),e=e(),t.popScopeId(),e),dbt={class:"gsc-carousel"},hbt={key:0},pbt=ubt(()=>t.createElementVNode("div",null,"no hay",-1)),fbt=[pbt],mbt={class:"gsc-carousel__2d__slides"},gbt={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ybt=["fill"],vbt={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},_bt=["fill"],bbt={class:"gsc-carousel__2d__navigation"},xbt={width:"8",height:"15",viewBox:"0 0 8 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wbt=["stroke"],kbt={key:1,class:"gsc-carousel__2d__navigation__pagination"},Cbt=["onClick"],Sbt={width:"7",height:"15",viewBox:"0 0 7 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Tbt=["stroke"],Ebt={__name:"GSC-Carousel",props:{currentItemIndex:{type:Number,default:0},items:{type:Array,default:()=>[]},is3d:{type:Boolean,default:!1},isPaginationVisible:{type:Boolean,default:!1},areNavigationArrowsVisible:{type:Boolean,default:!0},defaultItemByIndex:{type:Number,default:0},defaultItemByProp:{type:Object,default:null,validator:e=>["propName","value"].every(r=>r in e)},navigationHeight:{type:Number,default:4},navigationBorderRadius:{type:Number,default:4},navigationColor:{type:String,default:"rgba(255, 255, 255, 0.4)"},navigationActiveColor:{type:String,default:"#cbee6b"},navigationActiveWidth:{type:Number,default:30},arrowsColor:{type:String,default:"#cbee6b"},arrowsMaxWidth:{type:String,default:"20px"},wrapAround:{type:Boolean,default:!1},itemsToShow:{type:Number,default:1},isMainSlidePriority:{type:Boolean,default:!1},areSlidesArrowsVisible:{type:Boolean,default:!1},slideLeftArrowBackgroundImage:{type:String,default:"linear-gradient(to right, rgba(13, 29, 41, 1), rgba(0, 0, 0, 0))"},slideRightArrowBackgroundImage:{type:String,default:"linear-gradient(to left, rgba(13, 29, 41, 1), rgba(0, 0, 0, 0))"},areSlidesArrowsRounded:{type:Boolean,default:!1},slidesArrowsLeftAndRight:{type:String,default:"20px"},secondarySlidesOpacity:{type:Number,default:.8},marginTop:{type:String,default:"0"}},emits:["input","update:currentItemIndex"],setup(e,{expose:r,emit:i}){const B=e;t.useCssVars(o=>({"2c72d674":e.slideLeftArrowBackgroundImage,"90a63f40":e.slidesArrowsLeftAndRight,"2627d097":e.slideRightArrowBackgroundImage,"1904d43f":e.marginTop,cfb58986:e.secondarySlidesOpacity}));const D=t.ref(null),c=t.ref({}),m=t.ref(0),a=t.ref(!1);t.watch(D,o=>{o&&a.value?(a.value=!1,y(B.items)):o&&o.slideTo&&o.slideTo(m.value)},{deep:!0}),t.watch(()=>B.currentItemIndex,o=>{m.value!==o&&_(o)}),t.watch(()=>B.defaultItemByIndex,o=>{m.value!==o&&_(o)}),t.watch(()=>B.items,o=>{D.value?y(o):a.value=!0},{immediate:!0});function y(o){o&&o.length&&D.value&&setTimeout(()=>{if(B.defaultItemByProp){const s=B.items.findIndex(d=>d[B.defaultItemByProp.propName]===B.defaultItemByProp.value);s!==-1?(m.value=s,c.value=o[s]):(m.value=0,c.value=o[0])}else m.value=B.defaultItemByIndex,c.value=o[B.defaultItemByIndex];D.value.slideTo&&D.value.slideTo(m.value),c.value&&m.value===0&&i("input",{selectedItem:c.value,selectedItemIndex:m.value})},500)}function f(){D.value&&D.value.next()}function n(){D.value&&D.value.prev()}function v(){D.value&&D.value.updateSlideWidth()}function _(o){D.value&&D.value.slideTo(o)}function p(o){D.value.slideTo(o)}function l(o){const s=o.slidingToIndex<0?B.items.length-1:o.slidingToIndex===B.items.length?0:o.slidingToIndex;m.value=s,c.value=B.items[s],i("update:currentItemIndex",s),i("input",{selectedItem:c.value,selectedItemIndex:m.value})}return r({prev:n,next:f,updateSlideWidth:v,slideTo:_}),(o,s)=>(t.openBlock(),t.createElementBlock("div",dbt,[B.is3d?(t.openBlock(),t.createElementBlock("div",hbt,fbt)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(["gsc-carousel__2d",{"main-slide-priority":e.isMainSlidePriority}])},[t.createElementVNode("div",mbt,[t.createVNode(t.unref(sbt),{ref_key:"carousel2d",ref:D,"items-to-show":e.itemsToShow,"wrap-around":e.wrapAround,onSlideStart:l},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(d,u)=>(t.openBlock(),t.createBlock(t.unref(lbt),{key:u},{default:t.withCtx(()=>[t.renderSlot(o.$slots,"default",{item:d},void 0,!0)]),_:2},1024))),128))]),_:3},8,["items-to-show","wrap-around"])]),e.areSlidesArrowsVisible&&e.items.length>1?(t.openBlock(),t.createElementBlock("div",{key:0,class:"gsc-carousel__2d__arrow-left",style:t.normalizeStyle("max-width:"+e.arrowsMaxWidth+"!important"),onClick:s[0]||(s[0]=d=>D.value.prev())},[t.createElementVNode("div",{class:t.normalizeClass(["gsc-carousel__2d__slide-button",{rounded:e.areSlidesArrowsRounded}])},[(t.openBlock(),t.createElementBlock("svg",gbt,[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,ybt)]))],2)],4)):t.createCommentVNode("",!0),e.areSlidesArrowsVisible&&e.items.length>1?(t.openBlock(),t.createElementBlock("div",{key:1,class:"gsc-carousel__2d__arrow-right",style:t.normalizeStyle("max-width:"+e.arrowsMaxWidth+"!important"),onClick:s[1]||(s[1]=d=>f())},[t.createElementVNode("div",{class:t.normalizeClass(["gsc-carousel__2d__slide-button",{rounded:e.areSlidesArrowsRounded}])},[(t.openBlock(),t.createElementBlock("svg",vbt,[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,_bt)]))],2)],4)):t.createCommentVNode("",!0),t.createElementVNode("div",bbt,[e.areNavigationArrowsVisible?(t.openBlock(),t.createElementBlock("div",{key:0,class:"gsc-carousel__2d__navigation__arrow-left",onClick:s[2]||(s[2]=d=>n())},[(t.openBlock(),t.createElementBlock("svg",xbt,[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,wbt)]))])):t.createCommentVNode("",!0),e.isPaginationVisible?(t.openBlock(),t.createElementBlock("div",kbt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(d,u)=>(t.openBlock(),t.createElementBlock("div",{key:`i-${u}`,class:"gsc-carousel__2d__navigation__pagination__item",style:t.normalizeStyle({height:`${B.navigationHeight}px`,width:`${m.value===u?B.navigationActiveWidth:B.navigationActiveWidth/2}px`,borderRadius:`${B.navigationBorderRadius}px`,backgroundColor:`${m.value===u?B.navigationActiveColor:B.navigationColor}`,transition:"all 0.1s ease-in-out"}),onClick:h=>p(u)},null,12,Cbt))),128))])):t.createCommentVNode("",!0),e.areNavigationArrowsVisible?(t.openBlock(),t.createElementBlock("div",{key:2,class:"gsc-carousel__2d__navigation__arrow-right",onClick:s[3]||(s[3]=d=>D.value.next())},[(t.openBlock(),t.createElementBlock("svg",Sbt,[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,Tbt)]))])):t.createCommentVNode("",!0)])],2))]))}},Abt=cbt(Ebt,[["__scopeId","data-v-54620d25"]]),oE=(e,r)=>{const i=e.__vccOpts||e;for(const[B,D]of r)i[B]=D;return i};let _H=null;const sE={components:{},props:{titleCategory:{type:String,default:"RESUMEN"},dateGame:{type:String,default:""},colorBackgroundHome:{type:String,default:"#000000"},colorBackgroundAway:{type:String,default:"#FFFFFF"},logoHome:{type:String,default:""},matchday:{type:String,default:""},seasonName:{type:String,default:""},logoAway:{type:String,default:""},score:{type:String,default:""},background:{type:String,default:""}},data(){return{gamesContainerWidth:0}},computed:{date(){const e=this.gamesContainerWidth;return e<=400?"date400":e<=540?"date540":e<=650?"date650":"date"},seasoncontainer(){const e=this.gamesContainerWidth;return e<=400?"season-container400":e<=540?"season-container540":e<=650?"season-container650":"season-container"},matchcontainer(){const e=this.gamesContainerWidth;return e<=400?"match-container400":e<=540?"match-container540":e<=650?"match-container650":"match-container"},containerinfogame(){const e=this.gamesContainerWidth;return e<=400?"container-info-game400":e<=540?"container-info-game540":e<=650?"container-info-game650":"container-info-game"},playbutton(){const e=this.gamesContainerWidth;return e<=400?"play-button400":e<=540?"play-button540":e<=650?"play-button650":"play-button"},baselogo(){const e=this.gamesContainerWidth;return e<=400?"base-logo400":e<=540?"base-logo540":e<=650?"base-logo650":"base-logo"},baselogoright(){const e=this.gamesContainerWidth;return e<=400?"base-logo-right400":e<=540?"base-logo-right540":e<=650?"base-logo-right650":"base-logo-right"},thumbnailhighlights(){const e=this.gamesContainerWidth;return e<=400?"thumbnail-highlights400":e<=540?"thumbnail-highlights540":e<=650?"thumbnail-highlights650":"thumbnail-highlights"},teamlogo(){const e=this.gamesContainerWidth;return e<=400?"team-logo400":e<=540?"team-logo540":e<=650?"team-logo650":"team-logo"},logoright(){const e=this.gamesContainerWidth;return e<=400?"logo-right400":e<=540?"logo-right540":e<=650?"logo-right650":"logo-right"},secondline(){const e=this.gamesContainerWidth;return e<=400?"second-line400":e<=540?"second-line540":e<=650?"second-line650":"second-line"},titlename(){const e=this.gamesContainerWidth;return e<=400?"title-name400":e<=540?"title-name540":e<=650?"title-name650":"title-name"}},methods:{onclickPlayVideos(){this.$emit("onclickPlayVideos")},setUpResizeObserver(){if(window.ResizeObserver)_H=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),_H.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},bH=()=>{t.useCssVars(e=>({"41af28e8":e.colorBackgroundHome+"45","90ae2246":e.colorBackgroundAway+"45","1d262e1e":e.colorBackgroundHome,"1d231c2d":e.colorBackgroundAway}))},xH=sE.setup;sE.setup=xH?(e,r)=>(bH(),xH(e,r)):bH;const h4=e=>(t.pushScopeId("data-v-fd9d1e65"),e=e(),t.popScopeId(),e),Mbt=h4(()=>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)),Ibt=[Mbt],Pbt=h4(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/paper-texture.png",alt:"",class:"paper-texture position-image"},null,-1)),Bbt=["src"],Nbt=h4(()=>t.createElementVNode("div",{class:"gradient-back position-image"},null,-1)),zbt=h4(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/halftone-texture.png",alt:"",class:"halftone-texture position-image"},null,-1)),Obt=["src"],Fbt=["src"],Lbt={class:"text-container"};function Dbt(e,r,i,B,D,c){return t.openBlock(),t.createElementBlock("div",{ref:"gamesContainer",class:t.normalizeClass(c.thumbnailhighlights)},[t.createElementVNode("div",{class:t.normalizeClass(c.playbutton),onClick:r[0]||(r[0]=(...m)=>c.onclickPlayVideos&&c.onclickPlayVideos(...m))},Ibt,2),i.dateGame!=""?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(c.date)},t.toDisplayString(i.dateGame),3)):t.createCommentVNode("",!0),i.matchday!=""&&i.seasonName!=""?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(c.containerinfogame)},[i.matchday!=""?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(c.matchcontainer)},t.toDisplayString(i.matchday),3)):t.createCommentVNode("",!0),i.seasonName!=""?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(c.seasoncontainer)},t.toDisplayString(i.seasonName),3)):t.createCommentVNode("",!0)],2)):t.createCommentVNode("",!0),Pbt,t.createElementVNode("img",{src:i.background,alt:"",class:"bkg-blackwhite position-image"},null,8,Bbt),t.createElementVNode("div",{class:t.normalizeClass([c.baselogo,"position-image"])},null,2),t.createElementVNode("div",{class:t.normalizeClass(c.baselogoright)},null,2),Nbt,zbt,t.createElementVNode("img",{src:i.logoHome,alt:"",class:t.normalizeClass(c.teamlogo)},null,10,Obt),t.createElementVNode("img",{src:i.logoAway,alt:"",class:t.normalizeClass(c.logoright)},null,10,Fbt),t.createElementVNode("div",Lbt,[t.createElementVNode("span",{class:t.normalizeClass(c.secondline)},t.toDisplayString(i.score),3),t.createElementVNode("div",{class:t.normalizeClass(c.titlename)},t.toDisplayString(i.titleCategory),3)])],2)}const Rbt=oE(sE,[["render",Dbt],["__scopeId","data-v-fd9d1e65"]]);let wH=null;const lE={components:{},props:{type:{type:Number,default:0},colorBackgroundHome:{type:String,default:"#000000"},colorBackgroundAway:{type:String,default:"#FFFFFF"},nameCategory:{type:String,default:""},date:{type:String,default:""},seasonName:{type:String,default:""},matchday:{type:String,default:""},photoProfile:{type:String,default:""},logoHome:{type:String,default:""},logoAway:{type:String,default:""},scoreHome:{type:String,default:""},scoreAway:{type:String,default:""},background:{type:String,default:""},typeImg:{type:Number,default:0},nameHomeTeam:{type:String,default:""},nameAwayTeam:{type:String,default:""},namePlayer:{type:String,default:""}},data(){return{gamesContainerWidth:0}},computed:{playbutton(){const e=this.gamesContainerWidth;return e<=400?"play-button400":e<=540?"play-button540":e<=650?"play-button650":"play-button"},points(){const e=this.gamesContainerWidth;return e<=400?"points400":e<=540?"points540":e<=650?"points650":"points"},containerinfogame(){const e=this.gamesContainerWidth;return e<=400?"container-info-game400":e<=540?"container-info-game540":e<=650?"container-info-game650":"container-info-game"},teamname(){const e=this.gamesContainerWidth;return e<=400?"team-name400":e<=540?"team-name540":e<=650?"team-name650":"team-name"},teamscore(){const e=this.gamesContainerWidth;return e<=400?"team-score400":e<=540?"team-score540":e<=650?"team-score650":"team-score"},teamlogo(){const e=this.gamesContainerWidth;return e<=400?"team-logo400":e<=540?"team-logo540":e<=650?"team-logo650":"team-logo"},hometeam(){const e=this.gamesContainerWidth;return e<=400?"home-team400":e<=540?"home-team540":e<=650?"home-team650":"home-team"},awayteam(){const e=this.gamesContainerWidth;return e<=400?"away-team400":e<=540?"away-team540":e<=650?"away-team650":"away-team"},texttitle(){const e=this.gamesContainerWidth;return e<=400?"text-title400":e<=540?"text-title540":e<=650?"text-title650":"text-title"},matchcontainer(){const e=this.gamesContainerWidth;return e<=400?"match-container400":e<=540?"match-container540":e<=650?"match-container650":"match-container"},seasonnameContainer(){const e=this.gamesContainerWidth;return e<=280?"seasonname280":e<=400?"seasonname400":e<=540?"seasonname540":e<=650?"seasonname650":"seasonname"},matchboxContainer(){const e=this.gamesContainerWidth;return e<=400?"matchbox400":e<=540?"matchbox540":e<=650?"matchbox650":"matchbox"},seasoncontainer(){const e=this.gamesContainerWidth;return e<=400?"season-container400":e<=540?"season-container540":e<=650?"season-container650":"season-container"},texttitle2(){const e=this.gamesContainerWidth;return e<=300?"text-title2400":e<=540?"text-title2540":e<=650?"text-title2650":"text-title2"},playerimage(){const e=this.gamesContainerWidth;return e<=400?"player-image400":e<=540?"player-image540":e<=650?"player-image650":"player-image"},thumbnailhighlights(){const e=this.gamesContainerWidth;return e<=400?"thumbnail-highlights400":e<=540?"thumbnail-highlights540":e<=650?"thumbnail-highlights650":"thumbnail-highlights"}},methods:{onclickPlayVideos(){this.$emit("onclickPlayVideos")},setUpResizeObserver(){if(window.ResizeObserver)wH=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),wH.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},kH=()=>{t.useCssVars(e=>({"16e4cc48":e.colorBackgroundHome,"16e1ba57":e.colorBackgroundAway,"0a08a218":e.colorBackgroundAway+"62",31881400:e.colorBackgroundHome+"36"}))},CH=lE.setup;lE.setup=CH?(e,r)=>(kH(),CH(e,r)):kH;const p4=e=>(t.pushScopeId("data-v-4fef1a3b"),e=e(),t.popScopeId(),e),Vbt=p4(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/paper-texture.png",alt:"",class:"paper-texture position-image"},null,-1)),$bt=p4(()=>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)),jbt=[$bt],Ubt={class:"player-container"},Gbt=["src"],Hbt=["src"],Wbt=["src"],qbt={class:"container-score"},Ybt=["src"],Xbt=["src"],Zbt=["src"],Jbt=p4(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/halftone-texture.png",alt:"",class:"halftone-texture position-image"},null,-1)),Kbt=p4(()=>t.createElementVNode("div",{class:"gradient-color"},null,-1));function Qbt(e,r,i,B,D,c){return t.openBlock(),t.createElementBlock("div",{ref:"gamesContainer",class:t.normalizeClass(c.thumbnailhighlights)},[Vbt,t.createElementVNode("div",{class:t.normalizeClass(c.playbutton),onClick:r[0]||(r[0]=(...m)=>c.onclickPlayVideos&&c.onclickPlayVideos(...m))},jbt,2),t.createElementVNode("div",Ubt,[t.createElementVNode("div",{class:t.normalizeClass(c.containerinfogame)},[t.createElementVNode("div",{class:t.normalizeClass(c.matchcontainer)},[t.createElementVNode("div",{class:t.normalizeClass(c.matchboxContainer)},t.toDisplayString(i.matchday),3),t.createElementVNode("div",{class:t.normalizeClass(c.seasonnameContainer)},t.toDisplayString(i.seasonName),3)],2),t.createElementVNode("div",{class:t.normalizeClass(c.seasoncontainer)},t.toDisplayString(i.date),3)],2),i.type==0?(t.openBlock(),t.createElementBlock("span",{key:0,class:t.normalizeClass(c.texttitle)},t.toDisplayString(i.nameCategory),3)):(t.openBlock(),t.createElementBlock("span",{key:1,class:t.normalizeClass(c.texttitle2)},t.toDisplayString(i.nameCategory),3)),i.typeImg==0?(t.openBlock(),t.createElementBlock("img",{key:2,src:i.photoProfile,class:t.normalizeClass(c.playerimage)},null,10,Gbt)):t.createCommentVNode("",!0),i.typeImg==1?(t.openBlock(),t.createElementBlock("img",{key:3,src:i.photoProfile,alt:""},null,8,Hbt)):t.createCommentVNode("",!0),i.typeImg==2?(t.openBlock(),t.createElementBlock("img",{key:4,src:i.photoProfile,class:"img-number"},null,8,Wbt)):t.createCommentVNode("",!0),t.createElementVNode("div",qbt,[t.createElementVNode("div",{class:t.normalizeClass(c.hometeam)},[t.createElementVNode("span",{class:t.normalizeClass(c.teamname)},t.toDisplayString(i.nameHomeTeam),3),t.createElementVNode("img",{src:i.logoHome,alt:"",class:t.normalizeClass(c.teamlogo)},null,10,Ybt),t.createElementVNode("span",{class:t.normalizeClass(c.teamscore)},t.toDisplayString(i.scoreHome),3)],2),t.createElementVNode("span",{class:t.normalizeClass(c.points)},":",2),t.createElementVNode("div",{class:t.normalizeClass(c.awayteam)},[t.createElementVNode("span",{class:t.normalizeClass(c.teamscore)},t.toDisplayString(i.scoreAway),3),t.createElementVNode("img",{src:i.logoAway,alt:"",class:t.normalizeClass(c.teamlogo)},null,10,Xbt),t.createElementVNode("span",{class:t.normalizeClass(c.teamname)},t.toDisplayString(i.nameAwayTeam),3)],2)])]),t.createElementVNode("img",{src:i.background,alt:"",class:"bkg-blackwhite position-image"},null,8,Zbt),Jbt,Kbt],2)}const ext={components:{GSCCarousel:Abt,GSCThumbnailHighlightGameHistoric:Rbt,GSCThumbnailHighlightGamePlayer:oE(lE,[["render",Qbt],["__scopeId","data-v-4fef1a3b"]])},props:{items:{type:Array,default:()=>[1,2,3]},data:{type:Object,default:()=>{}},title:{type:String,default:"TODAS SUS JUGADAS"},canPlayVideos:{type:Boolean,default:!0},videoPrivilegesPlayingAs:{type:Set,default:()=>new Set([1,2])},privilegesTeamId:{type:Number,default:0}},data(){return{highlightsWidth:0,printData:[],resizeObserverGSCH:null,token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",lastHistoricGamesUrl:""}},watch:{data:{immediate:!0,handler(e){this.getData(e)}}},computed:{printDataFiltered(){return this.canPlayVideos?this.printData.filter(e=>this.videoPrivilegesPlayingAs.has(e.playingAs)):[]},isMobile(){return this.highlightsWidth<580},carouselProps(){return this.isMobile?{wrapAround:!0,itemsToShow:1.2,isMainSlidePriority:!0,areSlidesArrowsVisible:!1,areSlidesArrowsRounded:!1,areNavigationArrowsVisible:!1,isPaginationVisible:!0}:{wrapAround:!0,itemsToShow:1.8,isMainSlidePriority:!0,areSlidesArrowsVisible:!0,areSlidesArrowsRounded:!0,areNavigationArrowsVisible:!1}}},methods:{getPlayingAs(e,r){return e.home_team===(r||this.data.team)?1:2},obtenerNombreCompletoFecha(e){if(e){const r=new Date(e),i=["Domingo","Lunes","Martes","Miércoles","Jueves","Viernes","Sábado"][r.getUTCDay()],B=r.getUTCDate(),D=["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"][r.getUTCMonth()];return`${i} ${B} de ${D}`}else return""},onclickPlayVideos(e){var r=[];e.type==2?e.data.position_id==1?e.data.has_relevants==1?e.data.category==0?r=[55,324,323,608,39,774,802,52,53,40,42,54]:r=e.data.category:r=[55,324,323,608,39,774,802,52,53,40,42,54]:e.data.has_relevants==1?e.data.category==0?r=[12,35,10,27,607,61,519,98,101,109,112,121,122,127,128,135,136,141,142,161,170,179,702,730,466,217,211,232,235,239,242,282,284,289,291,296,485,486,487,488,14,15,257]:r=e.data.category:r=[56,57,59,60,326,213,214,215,216,583,584,122,123,124,125,585,586,128,129,130,131,133,327,587,588,136,137,138,139,589,590,142,143,144,145,146,147,485,486,487,488,489,490,491,492,10,27,597,598,538,539,599,600,541,542,601,602,545,546,603,604,548,549,561,562,100,563,564,103,104,105,106,107,108,565,566,111,567,568,114,115,116,117,118,119,4,88,5,34,402,459,460,461,233,403,456,457,458,236,404,453,454,455,240,405,450,451,452,243,408,447,448,449,283,409,444,445,446,285,410,441,442,443,290,411,438,439,440,292,412,435,436,437,297,414,415,416,417,244,418,419,420,421,401,581,582,331,506,530,579,580,334,507,531,577,578,344,508,532,575,576,424,509,533,573,574,341,529,534,571,572,340,528,535,569,570,427,527,536,348,349,350,465,352,353,354,466,14,52,15,53,218,219,220,221,496,497,498,499,500,501,502,503,217,504,505,521,522,543,33,209,208,517,206,207,26,325,16,51,463,151,154,156,591,592,159,162,163,429,165,593,594,168,171,172,430,174,595,596,177,180,181,431,467,358,361,363,366,369,370,469,372,376,378,379,470,381,385,387,388,471,607,608,210,212]:e.type==3?e.data.category==0?r=[607,608,12,55,54,35,14,52,15,53,466,477,40,257,39]:r=e.data.category:e.data.category!=0?r=e.data.category:r=[607,608,12,55,54,35,14,52,15,53,466,477];const i=[1,2,3];let B={seasonId:e.data.season_id,mainSectionType:1,playListType:e.type,categoryIds:r,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]:i,advancedFilter:{playListTitle:""}};e.data.category!==0&&(B.advancedFilter.mainCategoryId=e.data.category),this.$emit("openmedia",B)},play(e){this.$emit("play",e)},async getData(e){this.$emit("loading",!0);const r=Q_t.create({headers:{Authorization:`${this.token}`}});var i=[],B={};if(e.type=="player"){const D=await r.get("https://uof4tt5l46.execute-api.us-west-2.amazonaws.com/prod/v3/playerInfo/"+e.season+"/"+e.player);if(D.data.seasons[e.season])for(let c=0;c<D.data.seasons[e.season].games_played.length;c++)B={playingAs:this.getPlayingAs(D.data.seasons[e.season].games_played[c],D.data.team_id),category:0,player_id:D.data.player_id,position_id:D.data.position_id,color:D.data.info_thumbnails.colors.background_color,photo_profile:D.data.info_thumbnails.images.player_in_action[0]?"https://golstatsimages.blob.core.windows.net/images-library/"+D.data.info_thumbnails.images.player_in_action[0]:D.data.info_thumbnails.player_profile,team_logo:"https://az755631.vo.msecnd.net/teams-150/"+D.data.seasons[e.season].games_played[c].home_team+".png",player_name:D.data.seasons[e.season].games_played[c].home_team_acronym+" "+D.data.seasons[e.season].games_played[c].home_team_score+" : "+D.data.seasons[e.season].games_played[c].visiting_team_score+" "+D.data.seasons[e.season].games_played[c].visiting_team_acronym,team_id:D.data.team_id,has_relevants:D.data.seasons[e.season].games_played[c].has_relevants,team_id_b:D.data.seasons[e.season].games_played[c].home_team,season_id:D.data.seasons[e.season].games_played[c].season_id,name:D.data.seasons[e.season].games_played[c].player_name,seasonname:D.data.seasons[e.season].name.replace("Clausura","CL ").replace("Apertura","AP "),game_id:D.data.seasons[e.season].games_played[c].game_id,match:D.data.seasons[e.season].games_played[c].matchday_name.replace("Matchday","JOR").replace("de Final","").replace("Playoffs 1","CFI").replace("Playoffs 2","CFV").replace("Playoffs 3","SFI").replace("Playoffs 4","SFV").replace("Playoffs 5","FI").replace("Playoffs 6","FV"),date:this.obtenerNombreCompletoFecha(D.data.seasons[e.season].games_played[c].date),scorehome:D.data.seasons[e.season].games_played[c].home_team_score,scoreaway:D.data.seasons[e.season].games_played[c].visiting_team_score,hometeamacronym:D.data.seasons[e.season].games_played[c].home_team_acronym,visitingteamacronym:D.data.seasons[e.season].games_played[c].visiting_team_acronym,background:D.data.info_thumbnails.images.background_player_in_action[0]?"https://golstatsimages.blob.core.windows.net/images-library/"+D.data.info_thumbnails.images.background_player_in_action[0]:D.data.info_thumbnails.player_profile,backgroundhome:D.data.seasons[e.season].games_played[c].info_thumbnails.home_colors.background_color,backgroundaway:D.data.seasons[e.season].games_played[c].info_thumbnails.away_colors.background_color,logohome:"https://az755631.vo.msecnd.net/teams-150/"+D.data.seasons[e.season].games_played[c].home_team+".png",logoaway:"https://az755631.vo.msecnd.net/teams-150/"+D.data.seasons[e.season].games_played[c].visiting_team+".png",total:D.data.seasons[e.season].games_played[c].matchday_abbreviation.replace("M","Jor "),background_card:"https://az755631.vo.msecnd.net/golstats2-teams/"+D.data.seasons[e.season].games_played[c].home_team+"_"+D.data.seasons[e.season].games_played[c].season_id+"_r1.jpg"},i.push(B);else for(let c=0;c<D.data.national_seasons[e.season].games_played.length;c++)B={playingAs:this.getPlayingAs(D.data.national_seasons[e.season].games_played[c],D.data.team_id),category:0,player_id:D.data.player_id,position_id:D.data.position_id,color:D.data.info_thumbnails.colors.background_color,photo_profile:D.data.info_thumbnails.images.player_in_action[0]?"https://golstatsimages.blob.core.windows.net/images-library/"+D.data.info_thumbnails.images.player_in_action[0]:D.data.info_thumbnails.player_profile,team_logo:"https://az755631.vo.msecnd.net/teams-150/"+D.data.national_seasons[e.season].games_played[c].home_team+".png",player_name:D.data.national_seasons[e.season].games_played[c].home_team_acronym+" "+D.data.national_seasons[e.season].games_played[c].home_team_score+" : "+D.data.national_seasons[e.season].games_played[c].visiting_team_score+" "+D.data.national_seasons[e.season].games_played[c].visiting_team_acronym,team_id:D.data.team_id,has_relevants:D.data.national_seasons[e.season].games_played[c].has_relevants,team_id_b:D.data.national_seasons[e.season].games_played[c].home_team,season_id:D.data.national_seasons[e.season].games_played[c].season_id,name:D.data.national_seasons[e.season].games_played[c].player_name,seasonname:D.data.national_seasons[e.season].name.replace("Clausura","CL ").replace("Apertura","AP "),game_id:D.data.national_seasons[e.season].games_played[c].game_id,match:D.data.national_seasons[e.season].games_played[c].matchday_name.replace("Matchday","JOR").replace("de Final","").replace("Playoffs 1","CFI").replace("Playoffs 2","CFV").replace("Playoffs 3","SFI").replace("Playoffs 4","SFV").replace("Playoffs 5","FI").replace("Playoffs 6","FV"),date:this.obtenerNombreCompletoFecha(D.data.national_seasons[e.season].games_played[c].date),scorehome:D.data.national_seasons[e.season].games_played[c].home_team_score,scoreaway:D.data.national_seasons[e.season].games_played[c].visiting_team_score,hometeamacronym:D.data.national_seasons[e.season].games_played[c].home_team_acronym,visitingteamacronym:D.data.national_seasons[e.season].games_played[c].visiting_team_acronym,background:D.data.info_thumbnails.images.background_player_in_action[0]?"https://golstatsimages.blob.core.windows.net/images-library/"+D.data.info_thumbnails.images.background_player_in_action[0]:D.data.info_thumbnails.player_profile,backgroundhome:D.data.national_seasons[e.season].games_played[c].info_thumbnails.home_colors.background_color,backgroundaway:D.data.national_seasons[e.season].games_played[c].info_thumbnails.away_colors.background_color,logohome:"https://az755631.vo.msecnd.net/teams-150/"+D.data.national_seasons[e.season].games_played[c].home_team+".png",logoaway:"https://az755631.vo.msecnd.net/teams-150/"+D.data.national_seasons[e.season].games_played[c].visiting_team+".png",total:D.data.national_seasons[e.season].games_played[c].matchday_abbreviation.replace("M","Jor "),background_card:"https://az755631.vo.msecnd.net/golstats2-teams/"+D.data.national_seasons[e.season].games_played[c].home_team+"_"+D.data.national_seasons[e.season].games_played[c].season_id+"_r1.jpg"},i.push(B)}else if(e.type=="historic"){const D="https://fxtcaw9tw6.execute-api.us-east-2.amazonaws.com/prod/historic/games/"+e.game;if(this.lastHistoricGamesUrl===D)return;this.lastHistoricGamesUrl=D;const c=await r.get(D);for(let a=0;a<c.data.plays.length;a++)B={teamId:c.data.plays[a][2],player:"Jornada "+c.data.plays[a][6],player_name:c.data.plays[a][4],season_id:c.data.plays[a][31],game_id:c.data.plays[a][3],img:"https://img1.wallspic.com/previews/0/9/1/0/20190/20190-football_player-football-fun-player-sports-x750.jpg"},i.length>0?this.privilegesTeamId==0?!i.filter(y=>y.game_id===c.data.plays[a][3]).length>0&&i.push(B):!i.filter(y=>y.game_id===c.data.plays[a][3]).length>0&&c.data.plays[a][2]===this.privilegesTeamId&&i.push(B):(this.privilegesTeamId==0||c.data.plays[a][2]===this.privilegesTeamId)&&i.push(B);const m=c.data.thumbnails;for(let a=0;a<i.length;a++){const y=Math.floor(Math.random()*m[i[a].game_id].info_thumbnails.images.background_default_games.length);i[a].background="https://golstatsimages.blob.core.windows.net/images-library/"+m[i[a].game_id].info_thumbnails.images.background_default_games[y],i[a].backgroundhome=m[i[a].game_id].info_thumbnails.home_colors.background_color,i[a].backgroundaway=m[i[a].game_id].info_thumbnails.away_colors.background_color,i[a].logoaway="https://az755631.vo.msecnd.net/teams-150/"+m[i[a].game_id].info_thumbnails.away_colors.team_id+".png",i[a].logohome="https://az755631.vo.msecnd.net/teams-150/"+m[i[a].game_id].info_thumbnails.home_colors.team_id+".png",i[a].match=m[i[a].game_id].matchday_name.replace("Matchday","Jor"),i[a].playingAs=m[i[a].game_id].info_thumbnails.home_colors.team_id===i[a].teamId?1:2,i[a].seasonname=m[i[a].game_id].season_name,i[a].score=m[i[a].game_id].score[0]+" - "+m[i[a].game_id].score[1],i[a].category=0}}else{const D=await r.get("https://ws8d8ye2ii.execute-api.us-west-2.amazonaws.com/prod/v4/seasonsByTeam/"+e.team);for(let c=0;c<D.data.seasons[e.season].games.length;c++){const m=Math.floor(Math.random()*D.data.seasons[e.season].games[c].info_thumbnails.images.background_default_games.length);B={playingAs:this.getPlayingAs(D.data.seasons[e.season].games[c],D.data.team_id),category:0,game_id:D.data.seasons[e.season].games[c].game_id,photo_profile:"https://az755631.vo.msecnd.net/teams-150/"+D.data.seasons[e.season].games[c].visiting_team+".png",team_logo:"https://az755631.vo.msecnd.net/teams-150/"+D.data.seasons[e.season].games[c].home_team+".png",player_name:D.data.seasons[e.season].games[c].home_team_acronym+" "+D.data.seasons[e.season].games[c].home_team_score+" : "+D.data.seasons[e.season].games[c].visiting_team_score+" "+D.data.seasons[e.season].games[c].visiting_team_acronym,team_id_b:D.data.seasons[e.season].games[c].home_team,team_id:D.data.team_id,season_id:D.data.seasons[e.season].games[c].season_id,name:"",seasonname:D.data.seasons[e.season].name,match:D.data.seasons[e.season].games[c].matchday_name.replace("Matchday","Jor"),score:D.data.seasons[e.season].games[c].home_team_score+" : "+D.data.seasons[e.season].games[c].visiting_team_score,background:"https://golstatsimages.blob.core.windows.net/images-library/"+D.data.seasons[e.season].games[c].info_thumbnails.images.background_default_games[m],backgroundhome:D.data.seasons[e.season].games[c].info_thumbnails.home_colors.background_color,backgroundaway:D.data.seasons[e.season].games[c].info_thumbnails.away_colors.background_color,logohome:"https://az755631.vo.msecnd.net/teams-150/"+D.data.seasons[e.season].games[c].home_team+".png",logoaway:"https://az755631.vo.msecnd.net/teams-150/"+D.data.seasons[e.season].games[c].visiting_team+".png",total:D.data.seasons[e.season].games[c].matchday_abbreviation.replace("M","Jor "),background_card:"https://az755631.vo.msecnd.net/golstats2-teams/"+D.data.seasons[e.season].games[c].home_team+"_"+D.data.seasons[e.season].games[c].season_id+"_r1.jpg"},i.push(B)}}this.printData=i,this.$emit("loading",!1)},setUpResizeObserver(){this.resizeObserverGSCH=new ResizeObserver(e=>{for(const r of e)this.highlightsWidth=r.contentRect.width}),this.resizeObserverGSCH.observe(this.$refs.highlights)}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},1e3)}},txt={key:0,ref:"highlights",class:"carousel-high-lights",id:"carousel-high-lights"};function axt(e,r,i,B,D,c){const m=t.resolveComponent("GSCThumbnailHighlightGameHistoric"),a=t.resolveComponent("GSCThumbnailHighlightGamePlayer"),y=t.resolveComponent("GSCCarousel");return c.printDataFiltered.length>0&&i.canPlayVideos?(t.openBlock(),t.createElementBlock("div",txt,[t.createVNode(y,t.mergeProps(c.carouselProps,{items:c.printDataFiltered,arrowsMaxWidth:"65px",slideLeftArrowBackgroundImage:"linear-gradient(to right, rgba(22, 37, 49, 1), rgba(0, 0, 0, 0))",slideRightArrowBackgroundImage:"linear-gradient(to left, rgba(22, 37, 49, 1), rgba(0, 0, 0, 0))",secondarySlidesOpacity:.2}),{default:t.withCtx(({item:f})=>[i.data.type=="team"||i.data.type=="historic"?(t.openBlock(),t.createBlock(m,{key:0,items:f,"color-background-home":f.backgroundhome,"color-background-away":f.backgroundaway,"logo-home":f.logohome,"logo-away":f.logoaway,background:f.background,matchday:f.match,onOnclickPlayVideos:n=>c.onclickPlayVideos({data:f,type:1}),"season-name":f.seasonname,score:f.score},null,8,["items","color-background-home","color-background-away","logo-home","logo-away","background","matchday","onOnclickPlayVideos","season-name","score"])):(t.openBlock(),t.createBlock(a,{key:1,type:"player","name-player":f.name,"type-style":"game","color-background-home":f.backgroundhome,"color-background-away":f.backgroundaway,"type-img":"0",date:f.date,"season-name":f.seasonname,matchday:f.match,background:f.background,"name-home-team":f.hometeamacronym,"name-away-team":f.visitingteamacronym,"name-category":i.title,onOnclickPlayVideos:n=>c.onclickPlayVideos({data:f,type:2}),"logo-away":f.logoaway,"logo-home":f.logohome,"score-home":f.scorehome,"photo-profile":f.photo_profile,"score-away":f.scoreaway},null,8,["name-player","color-background-home","color-background-away","date","season-name","matchday","background","name-home-team","name-away-team","name-category","onOnclickPlayVideos","logo-away","logo-home","score-home","photo-profile","score-away"]))]),_:1},16,["items"])],512)):t.createCommentVNode("",!0)}const nxt=oE(ext,[["render",axt]]),Tma="",Ema="",Ama="",rxt={components:{GSCSlider:Gv},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:{onclickPlayVideos(e){const r=[1,2,3];let i={seasonId:this.dataProminentAll.season_id,mainSectionType:1,playListType:e.data.is_team==1?3:2,categoryIds:e.data.categories,gameIdsToFilter:this.game.game_status==1?[this.dataProminentAll._id]:null,playerIds:e.data.is_team!=1?[e.data.player_id]:[],goalkeeperIds:[],teamId:e.data.is_team==1?e.data.team_id:0,matchResult:r,playData:{},advancedFilter:{playListTitle:""}};this.$emit("openmedia",i)},hasDecimal(e){return typeof e!="number"?!1:e.toString().includes(".")},formatNumber(e){if(typeof e=="number")if(this.hasDecimal(e)){const r=Math.round(e*10)/10;return Number.isInteger(r)?r.toString()+"%":r.toFixed(1)+"%"}else return e+"%";else return"0"},formatNumber2(e){if(typeof e=="number")if(this.hasDecimal(e)){const r=Math.round(e*10)/10;return Number.isInteger(r)?r.toString()+"%":r.toFixed(1)+"%"}else return e;else return"0"},textoConNegritas(e){if(!e)return"";const r=e.split(/(\*.*?\*)/g).filter(D=>D.trim()!=="");let i=Math.ceil(r.length/2),B="";return r.forEach((D,c)=>{c===i&&(B+="<br/>"),D.startsWith("*")&&D.endsWith("*")?B+=`<span class="text-bold-prominent">${D.slice(1,-1)}</span>`:D.trim()!==""&&(B+=`<span class="text-prominent">${D}</span>`)}),B},async getDataProminentPrematch(){try{let e="";if(this.isWidget&&this.teamWidget!=0?e="https://1qvtl1japi.execute-api.us-east-2.amazonaws.com/prod/highlights/seasons/"+this.game.seasonId+"/games/"+this.game.gameId+"/prematch?t="+this.teamWidget:e="https://1qvtl1japi.execute-api.us-east-2.amazonaws.com/prod/highlights/seasons/"+this.game.seasonId+"/games/"+this.game.gameId+"/prematch",this.lastDataProminentUrl!==e){this.$emit("loading",!0);const i=await $c.create({headers:{Authorization:`${this.tokenPremium}`}}).get(e);this.dataProminent=i.data.data,this.dataProminentAll=i.data,this.$emit("loading",!1)}}catch(e){return Promise.reject(e)}},async getDataProminent(){try{let e="";if(this.isWidget&&this.teamWidget!=0?e="https://1qvtl1japi.execute-api.us-east-2.amazonaws.com/prod/highlights/seasons/"+this.game.seasonId+"/games/"+this.game.gameId+"?t="+this.teamWidget:e="https://1qvtl1japi.execute-api.us-east-2.amazonaws.com/prod/highlights/seasons/"+this.game.seasonId+"/games/"+this.game.gameId,this.lastDataProminentUrl!==e||this.game.is_live==1){this.$emit("loading",!0);const i=await $c.create({headers:{Authorization:`${this.tokenPremium}`}}).get(e);this.dataProminent=i.data.data,this.dataProminentAll=i.data,setTimeout(()=>{this.$emit("loading",!1)},500)}}catch(e){return Promise.reject(e)}}}},ixt=e=>(t.pushScopeId("data-v-f151e469"),e=e(),t.popScopeId(),e),oxt={class:"data-prominent-game"},sxt={class:"title-data"},lxt={class:"item-data-text"},cxt=["innerHTML"],uxt={class:"contain-stats-control"},dxt={key:0,class:"title-total"},hxt={key:1,class:"item-total"},pxt=["onClick"],fxt={"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"},mxt=[ixt(()=>t.createElementVNode("path",{"data-v-83c7df16":"",d:"M6.6041 22.8554C6.42105 22.7512 6.26805 22.5956 6.1616 22.4053C6.05515 22.215 5.99927 21.9973 6.00001 21.7755V2.22137C6.00026 2.00039 6.0565 1.78362 6.16274 1.59409C6.26899 1.40456 6.42127 1.24936 6.6034 1.14499C6.78553 1.04062 6.9907 0.990981 7.1971 1.00135C7.4035 1.01171 7.60342 1.0817 7.77561 1.20386L21.4907 10.9821C21.6473 11.0935 21.7758 11.2446 21.8646 11.4219C21.9535 11.5992 22 11.7973 22 11.9985C22 12.1996 21.9535 12.3977 21.8646 12.575C21.7758 12.7523 21.6473 12.9034 21.4907 13.0148L7.77561 22.7954C7.60369 22.9178 7.40392 22.988 7.19761 22.9986C6.9913 23.0092 6.78617 22.9597 6.6041 22.8554ZM7.14347 21.7779L20.8585 11.9996L7.14347 21.7779Z",fill:"#CBEE6B"},null,-1))];function gxt(e,r,i,B,D,c){const m=t.resolveComponent("GSCSlider");return t.openBlock(),t.createElementBlock("div",oxt,[t.createElementVNode("div",sxt,[i.game.game_status!=4||i.game.is_live==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Este partido:")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("Este torneo:")],64))]),t.createVNode(m,{height:"115px",pxScroll:272,scrollColor:"none",arrowsPosition:"absolute",arrowsScrollHide:!0,arrowsHideOnNoScroll:!0,arrowsBackground:"rgba(255,255,255,.16)",arrowsContainerBgL:"linear-gradient(270deg, rgba(13,29,42,0.1) 0%, rgba(13,29,42,1) 70%)",arrowsContainerBgR:"linear-gradient(90deg, rgba(13,29,42,0.1) 0%, rgba(13,29,42,1) 70%)",arrowsMargin:0,arrowsRadius:"50%",arrowsBorder:"#ddd"},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(D.dataProminent,(a,y)=>(t.openBlock(),t.createElementBlock("div",{key:y,class:"item-prominent-data"},[t.createElementVNode("div",{class:"item-percent-shield",style:t.normalizeStyle("background:"+a.custom_colors.background_color)},[t.createElementVNode("div",{class:"item-team",style:t.normalizeStyle(a.player_id?"background-image:url(https://az755631.vo.msecnd.net/players-profile/"+a.player_id+".png); border: solid 1.4px "+a.custom_colors.background_color:"background-image:url(https://az755631.vo.msecnd.net/teams-80/"+a.team_id+".png);border: solid 1.4px "+a.custom_colors.background_color)},null,4),a.show_value==1?(t.openBlock(),t.createElementBlock("div",{key:0,class:"item-percent",style:t.normalizeStyle("color:"+a.custom_colors.font_color)},[a.is_percentage==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[a.title=="Distancia recorrida"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(c.formatNumber(a.percent)),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(c.formatNumber(a.percent)),1)],64))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(a.total),1)],64))],4)):t.createCommentVNode("",!0)],4),t.createElementVNode("div",lxt,[t.createElementVNode("div",{class:"container-text",innerHTML:c.textoConNegritas(a.description)},null,8,cxt),t.createElementVNode("div",uxt,[a.title!="Productividad"?(t.openBlock(),t.createElementBlock("div",dxt,"TOTAL:")):t.createCommentVNode("",!0),a.title!="Productividad"?(t.openBlock(),t.createElementBlock("div",hxt,[a.is_percentage==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(c.formatNumber(a.percent)),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[a.title=="Distancia recorrida"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(a.total)+" km",1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(a.total),1)],64))],64))])):t.createCommentVNode("",!0),i.canPlayVideos&&a.show_video==1?(t.openBlock(),t.createElementBlock("div",{key:2,class:"btn-play",style:t.normalizeStyle(a.title=="Productividad"?"margin-left: 0px !important;":""),onClick:f=>c.onclickPlayVideos({data:a})},[(t.openBlock(),t.createElementBlock("svg",fxt,mxt))],12,pxt)):t.createCommentVNode("",!0)])])]))),128))]),_:1})])}const yxt=$i(rxt,[["render",gxt],["__scopeId","data-v-f151e469"]]),Ima="",vxt={components:{GSCCheckbox:Gg},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:{...eh("nextGeneral",["gameForAnalysis","seasonId"]),...eu("nextGeneral",["arrayFilledDataSortedByPriority"])},methods:{async getStatsData(e){await this.$store.dispatch("nextGeneral/cleanStats"),await this.$store.dispatch("nextGeneral/checkState",{gameId:e.gameId,currentSeasonId:e.seasonId,isTeamsAnalysis:!0,defaultFilter:null,gameInfo:e})},async getDataPosession(){try{const r=await $c.create({headers:{Authorization:`${this.tokenPremium}`}}).get(this.url+this.game.gameId);this.dataPosession=r.data}catch(e){return Promise.reject(e)}},async getDataPosessionPrematch(e){try{const i=await $c.create({headers:{Authorization:`${this.tokenPremium}`}}).get(this.urlPrematch+e+"/posessions");for(const B in i.data.teams)i.data.teams.hasOwnProperty(B)&&(this.arrTeams[B]=i.data.teams[B])}catch(r){return Promise.reject(r)}},onCheckInactive(e){e?this.areInactiveVisible=!0:this.areInactiveVisible=!1},deleteDecimalZero(e){const r=typeof e=="string"?parseFloat(e):e;return typeof r=="number"&&!isNaN(r)?r%1===0?r:r%1===0?Math.floor(r):r:e},formatNumbers(e){return e%1!==0?e.toFixed(1):e},hVal(e){return this.getTeamValue(e,this.gameForAnalysis,"homeTeam")},aVal(e){return this.getTeamValue(e,this.gameForAnalysis,"visitingTeam")},getTeamValue(e,r,i){if(!r.game_id)return this.objectZeroValues;const B=e.homeTeam.accomplished.avgPostGame+e.visitingTeam.accomplished.avgPostGame,D=e[i].accomplished.avgPostGame/B;return e[i].accomplished.avgPostGame?{numberValue:D<1?D*100:D,numberBarPercent:e[i].accomplished.avgPostGame/B}:this.objectZeroValues}},created(){this.$store.commit("nextGeneral/updateFilters",{filters:{local:{playingAs:[1,2],statistics:{},matchResult:[1,2,3],firstHalf:[1,2,3],secondHalf:[4,5,6]},visit:{playingAs:[1,2],statistics:{},matchResult:[1,2,3],firstHalf:[1,2,3],secondHalf:[4,5,6]}},needsFormat:!0})},beforeDestroy(){clearInterval(this.intervalIdPossesion)}},Vy=e=>(t.pushScopeId("data-v-286b1f56"),e=e(),t.popScopeId(),e),_xt={key:0,class:"field-posesion-prominent"},bxt={key:0,class:"title"},xxt={class:"info-data-item"},wxt={class:"item-indicador"},kxt={class:"item-indicador-value"},Cxt={key:0},Sxt=Vy(()=>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)),Txt={key:0,class:"inactiveInfo"},Ext={class:"info-data-item"},Axt={class:"item-indicador"},Mxt={class:"item-indicador-value"},Ixt=Vy(()=>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)),Pxt={class:"info-data-item"},Bxt={class:"item-indicador"},Nxt={class:"item-indicador-value"},zxt={key:0},Oxt=Vy(()=>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)),Fxt={class:"info-data-item"},Lxt={class:"item-indicador"},Dxt={class:"item-indicador-value"},Rxt=Vy(()=>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)),Vxt={key:0,class:"inactiveInfo"},$xt={class:"info-data-item"},jxt={class:"item-indicador"},Uxt={class:"item-indicador-value"},Gxt=Vy(()=>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)),Hxt={class:"info-data-item"},Wxt={class:"item-indicador"},qxt={class:"item-indicador-value"},Yxt=Vy(()=>t.createElementVNode("div",{class:"item-indicador-img"},[t.createElementVNode("svg",{width:"8",height:"6",viewBox:"0 0 8 6",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M3.87817 5.92969L0.506034 0.0889796L7.2503 0.0889802L3.87817 5.92969Z",fill:"#38CFFF"})])],-1));function Xxt(e,r,i,B,D,c){const m=t.resolveComponent("GSCCheckbox");return e.arrayFilledDataSortedByPriority.length>0?(t.openBlock(),t.createElementBlock("div",_xt,[i.widthSection>760?(t.openBlock(),t.createElementBlock("div",bxt,"Porcentajes")):t.createCommentVNode("",!0),i.game.game_status==1||i.game.game_status==0||i.game.is_live==1?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(i.widthSection>760?"field-container":i.widthSection>520?"field-container-movil":i.widthSection>440?"field-container-movil-2":i.widthSection>360?"field-container-movil-3":"field-container-movil-4")},[D.dataPosession.has_posession==1?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(i.widthSection>1020?"time-show":i.widthSection>920?"time-show-table-xl":i.widthSection>880?"time-show-table-xl-2":i.widthSection>820?"time-show-table-xl-3":i.widthSection>760?"time-show-table-xl-4":"time-show-movil")},[t.createVNode(m,{label:"Mostrar tiempo inactivo",fontFamily:"Poppins-Regular","onUpdate:modelValue":c.onCheckInactive,"label-color":"#8c9399"},null,8,["onUpdate:modelValue"])],2)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(i.widthSection>1020?"field-data-container":i.widthSection>920?"field-data-container-xl":i.widthSection>880?"field-data-container-xl-2":i.widthSection>820?"field-data-container-xl-3":i.widthSection>760?"field-data-container-xl-4":"field-data-container-movil")},[t.createElementVNode("div",{class:t.normalizeClass(D.areInactiveVisible?"container-data-img-home":"container-data-img-home50")},[t.createElementVNode("div",{class:t.normalizeClass(D.areInactiveVisible?"homeInfo":"homeInfo50"),style:t.normalizeStyle("background-image:url("+i.game.homeTeam.logo.replace("80","150")+")")},null,6),t.createElementVNode("div",xxt,[t.createElementVNode("div",{class:t.normalizeClass(i.widthSection>580?"item-ref-data":"item-ref-data-movil")},[t.createElementVNode("div",wxt,[t.createElementVNode("div",kxt,[D.dataPosession.has_posession==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[D.areInactiveVisible?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(D.dataPosession.active_time.home),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(D.dataPosession.home),1)],64))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[c.hVal(e.arrayFilledDataSortedByPriority[0].subcategories.possession)?(t.openBlock(),t.createElementBlock("span",Cxt,t.toDisplayString(c.deleteDecimalZero(c.formatNumbers(c.hVal(e.arrayFilledDataSortedByPriority[0].subcategories.possession).numberValue)))+"%",1)):t.createCommentVNode("",!0)],64))]),Sxt]),t.createElementVNode("div",{class:t.normalizeClass(i.widthSection>580?"title-indicador":"title-indicador-movil")}," Pos. "+t.toDisplayString(i.game.homeTeam.acronym),3)],2)])],2),D.areInactiveVisible&&D.dataPosession.has_posession==1?(t.openBlock(),t.createElementBlock("div",Txt,[t.createElementVNode("div",Ext,[t.createElementVNode("div",{class:t.normalizeClass(i.widthSection>580?"item-ref-data":"item-ref-data-movil")},[t.createElementVNode("div",Axt,[t.createElementVNode("div",Mxt,t.toDisplayString(D.dataPosession.active_time.inactive_time),1),Ixt]),t.createElementVNode("div",{class:t.normalizeClass(i.widthSection>580?"title-indicador":"title-indicador-movil")},[i.widthSection>580?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("T. Inactivo")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("T. Inactivo")],64))],2)],2)])])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(D.areInactiveVisible?"container-data-img-away":"container-data-img-away50")},[t.createElementVNode("div",{class:t.normalizeClass(D.areInactiveVisible?"awayInfo":"awayInfo50"),style:t.normalizeStyle("background-image:url("+i.game.awayTeam.logo.replace("80","150")+")")},null,6),t.createElementVNode("div",Pxt,[t.createElementVNode("div",{class:t.normalizeClass(i.widthSection>580?"item-ref-data":"item-ref-data-movil")},[t.createElementVNode("div",Bxt,[t.createElementVNode("div",Nxt,[D.dataPosession.has_posession==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[D.areInactiveVisible?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(D.dataPosession.active_time.away),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(D.dataPosession.away),1)],64))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[c.aVal(e.arrayFilledDataSortedByPriority[0].subcategories.possession)?(t.openBlock(),t.createElementBlock("span",zxt,t.toDisplayString(c.deleteDecimalZero(c.formatNumbers(c.aVal(e.arrayFilledDataSortedByPriority[0].subcategories.possession).numberValue)))+"%",1)):t.createCommentVNode("",!0)],64))]),Oxt]),t.createElementVNode("div",{class:t.normalizeClass(i.widthSection>580?"title-indicador":"title-indicador-movil")}," Pos. "+t.toDisplayString(i.game.awayTeam.acronym),3)],2)])],2)],2)],2)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[D.arrTeams.length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(i.widthSection>760?"field-container":i.widthSection>520?"field-container-movil":i.widthSection>440?"field-container-movil-2":i.widthSection>360?"field-container-movil-3":"field-container-movil-4")},[D.arrTeams[i.teamSelected.teamId].has_posession==1?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(i.widthSection>1020?"time-show":i.widthSection>920?"time-show-table-xl":i.widthSection>880?"time-show-table-xl-2":i.widthSection>820?"time-show-table-xl-3":i.widthSection>760?"time-show-table-xl-4":"time-show-movil")},[t.createVNode(m,{label:"Mostrar tiempo inactivo",fontFamily:"Poppins-Regular","onUpdate:modelValue":c.onCheckInactive,"label-color":"#8c9399"},null,8,["onUpdate:modelValue"])],2)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(i.widthSection>1020?"field-data-container":i.widthSection>920?"field-data-container-xl":i.widthSection>880?"field-data-container-xl-2":i.widthSection>820?"field-data-container-xl-3":i.widthSection>760?"field-data-container-xl-4":"field-data-container-movil")},[t.createElementVNode("div",{class:t.normalizeClass(D.areInactiveVisible?"container-data-img-home":"container-data-img-home50")},[i.game.homeTeam.team_id==i.teamSelected.teamId?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(D.areInactiveVisible?"homeInfo":"homeInfo50"),style:t.normalizeStyle("background-image:url("+i.game.homeTeam.logo.replace("80","150")+")")},null,6)):t.createCommentVNode("",!0),t.createElementVNode("div",Fxt,[t.createElementVNode("div",{class:t.normalizeClass(i.widthSection>580?"item-ref-data":"item-ref-data-movil")},[t.createElementVNode("div",Lxt,[t.createElementVNode("div",Dxt,[D.areInactiveVisible?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[i.game.awayTeam.team_id==i.teamSelected.teamId?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(D.arrTeams[i.teamSelected.teamId].active_time.away),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(D.arrTeams[i.teamSelected.teamId].active_time.home),1)],64))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[i.game.awayTeam.team_id==i.teamSelected.teamId?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(D.arrTeams[i.teamSelected.teamId].away),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(D.arrTeams[i.teamSelected.teamId].home),1)],64))],64))]),Rxt]),i.game.homeTeam.team_id==i.teamSelected.teamId?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(i.widthSection>580?"title-indicador":"title-indicador-movil")}," Pos. "+t.toDisplayString(i.game.homeTeam.acronym),3)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(i.widthSection>580?"title-indicador":"title-indicador-movil")}," Pos. Rival ",2))],2)])],2),D.areInactiveVisible&&D.arrTeams[i.teamSelected.teamId].has_posession==1?(t.openBlock(),t.createElementBlock("div",Vxt,[t.createElementVNode("div",$xt,[t.createElementVNode("div",{class:t.normalizeClass(i.widthSection>580?"item-ref-data":"item-ref-data-movil")},[t.createElementVNode("div",jxt,[t.createElementVNode("div",Uxt,t.toDisplayString(D.arrTeams[i.teamSelected.teamId].active_time.inactive_time),1),Gxt]),t.createElementVNode("div",{class:t.normalizeClass(i.widthSection>580?"title-indicador":"title-indicador-movil")},[i.widthSection>580?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("T. Inactivo")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("T. Inactivo")],64))],2)],2)])])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(D.areInactiveVisible?"container-data-img-away":"container-data-img-away50")},[i.game.awayTeam.team_id==i.teamSelected.teamId?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(D.areInactiveVisible?"awayInfo":"awayInfo50"),style:t.normalizeStyle("background-image:url("+i.game.awayTeam.logo.replace("80","150")+")")},null,6)):t.createCommentVNode("",!0),t.createElementVNode("div",Hxt,[t.createElementVNode("div",{class:t.normalizeClass(i.widthSection>580?"item-ref-data":"item-ref-data-movil")},[t.createElementVNode("div",Wxt,[t.createElementVNode("div",qxt,[D.areInactiveVisible?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[i.game.homeTeam.team_id==i.teamSelected.teamId?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(D.arrTeams[i.teamSelected.teamId].active_time.away),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(D.arrTeams[i.teamSelected.teamId].active_time.home),1)],64))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[i.game.homeTeam.team_id==i.teamSelected.teamId?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(D.arrTeams[i.teamSelected.teamId].away),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(D.arrTeams[i.teamSelected.teamId].home),1)],64))],64))]),Yxt]),i.game.awayTeam.team_id==i.teamSelected.teamId?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(i.widthSection>580?"title-indicador":"title-indicador-movil")}," Pos. "+t.toDisplayString(i.game.awayTeam.acronym),3)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(i.widthSection>580?"title-indicador":"title-indicador-movil")}," Pos. Rival ",2))],2)])],2)],2)],2)):t.createCommentVNode("",!0)],64))])):t.createCommentVNode("",!0)}const Zxt=$i(vxt,[["render",Xxt],["__scopeId","data-v-286b1f56"]]),Pma="",cE={props:{textOptionLeft:String,valueDefault:{type:String,default:""},textOptionRight:String,hiddenLabels:{type:Boolean,default:!1},width:{type:String,default:"50px"},height:{type:String,default:"32px"},heightCircle:{type:String,default:"24px"},widthCircle:{type:String,default:"24px"},widthIcons:{type:String,default:"22"},borderRadius:{type:String,default:"30px"},borderType:{type:String,default:"solid"},borderWidth:{type:Number,default:1},borderColor:{type:String,default:"#FFFFFF"},fontSize:{type:String,default:"14px"},fontColor:{type:String,default:"#000000"},iconA:{type:String,default:""},iconB:{type:String,default:""},fontFamily:{type:String,default:"Poppins-Light"},backgroundColor:{type:String,default:"#2e3b46"},circleColorSwitch:{type:String,default:"#FFFFFF"}},data(){return{OptionDefault:!1}},watch:{valueDefault:{immediate:!0,handler:async function(e){try{e==this.textOptionLeft&&(this.OptionDefault=!1),e==this.textOptionRight&&(this.OptionDefault=!0)}catch(r){throw new Error(r)}}}},computed:{customStyle(){return{width:this.width,height:this.height,borderRadius:this.borderRadius,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`,backgroundColor:this.backgroundColor,circleColor:this.circleColorSwitch}},customText(){return{color:this.fontColor,fontSize:this.fontSize,fontFamily:`${this.fontFamily} !important`}}},methods:{handleSwitchChange(e){e.target.checked?this.$emit("change",this.textOptionRight):this.$emit("change",this.textOptionLeft)}}},SH=()=>{t.useCssVars(e=>({ec641b3a:e.backgroundColor,"66cc4678":e.widthCircle,"1c5ce009":e.heightCircle}))},TH=cE.setup;cE.setup=TH?(e,r)=>(SH(),TH(e,r)):SH;const Jxt={key:0,class:"text-left"},Kxt=["width","src"],Qxt=["checked"],e3t=["width","src"],t3t={key:3,class:"text-right"};function a3t(e,r,i,B,D,c){return t.openBlock(),t.createElementBlock("div",{class:"gsc-switch-radio",style:t.normalizeStyle(c.customText)},[i.textOptionLeft!=""&&!i.hiddenLabels?(t.openBlock(),t.createElementBlock("span",Jxt,t.toDisplayString(i.textOptionLeft),1)):t.createCommentVNode("",!0),i.iconA!=""?(t.openBlock(),t.createElementBlock("img",{key:1,width:i.widthIcons,src:i.iconA},null,8,Kxt)):t.createCommentVNode("",!0),t.createElementVNode("input",{type:"checkbox",id:"toggle-btn",onChange:r[0]||(r[0]=(...m)=>c.handleSwitchChange&&c.handleSwitchChange(...m)),checked:D.OptionDefault},null,40,Qxt),t.createElementVNode("label",{for:"toggle-btn",style:t.normalizeStyle([c.customStyle,{"--circle-color":i.circleColorSwitch}])},null,4),i.iconB!=""?(t.openBlock(),t.createElementBlock("img",{key:2,width:i.widthIcons,src:i.iconB},null,8,e3t)):t.createCommentVNode("",!0),i.textOptionRight!=""&&!i.hiddenLabels?(t.openBlock(),t.createElementBlock("span",t3t,t.toDisplayString(i.textOptionRight),1)):t.createCommentVNode("",!0)],4)}const EH=$i(cE,[["render",a3t],["__scopeId","data-v-62d6b055"]]),Bma="";let AH=null;const uE={components:{},props:{canPlayVideos:{type:Boolean,default:!1},titleCategory:{type:String,default:"RESUMEN"},dateGame:{type:String,default:""},colorBackgroundHome:{type:String,default:"#000000"},colorBackgroundAway:{type:String,default:"#FFFFFF"},logoHome:{type:String,default:""},isLive:{type:Boolean,default:!0},matchday:{type:String,default:""},seasonName:{type:String,default:""},logoAway:{type:String,default:""},score:{type:String,default:""},background:{type:String,default:""}},data(){return{gamesContainerWidth:0}},computed:{date(){const e=this.gamesContainerWidth;return e<=400?"date400":e<=540?"date540":e<=650?"date650":"date"},seasoncontainer(){const e=this.gamesContainerWidth;return e<=400?"season-container400":e<=540?"season-container540":e<=650?"season-container650":"season-container"},matchcontainer(){const e=this.gamesContainerWidth;return e<=400?"match-container400":e<=540?"match-container540":e<=650?"match-container650":"match-container"},containerinfogame(){const e=this.gamesContainerWidth;return e<=400?"container-info-game400":e<=540?"container-info-game540":e<=650?"container-info-game650":"container-info-game"},playbutton(){const e=this.gamesContainerWidth;return e<=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)AH=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),AH.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},MH=()=>{t.useCssVars(e=>({f7da229a:e.colorBackgroundHome+"45","5c937204":e.colorBackgroundAway+"45","6dbbe2d2":e.colorBackgroundHome,"6dc206b4":e.colorBackgroundAway}))},IH=uE.setup;uE.setup=IH?(e,r)=>(MH(),IH(e,r)):MH;const f4=e=>(t.pushScopeId("data-v-4f4f5686"),e=e(),t.popScopeId(),e),n3t=[f4(()=>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))],r3t=f4(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/paper-texture.png",alt:"",class:"paper-texture position-image"},null,-1)),i3t=["src"],o3t=f4(()=>t.createElementVNode("div",{class:"gradient-back position-image"},null,-1)),s3t=f4(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/halftone-texture.png",alt:"",class:"halftone-texture position-image"},null,-1)),l3t=["src"],c3t=["src"],u3t={class:"text-container"};function d3t(e,r,i,B,D,c){return t.openBlock(),t.createElementBlock("div",{ref:"gamesContainer",class:t.normalizeClass(c.thumbnailhighlights)},[i.canPlayVideos?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(c.playbutton),onClick:r[0]||(r[0]=(...m)=>c.onclickPlayVideos&&c.onclickPlayVideos(...m))},n3t,2)):t.createCommentVNode("",!0),i.dateGame!=""?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(c.date)},t.toDisplayString(i.dateGame),3)):t.createCommentVNode("",!0),i.matchday!=""&&i.seasonName!=""?(t.openBlock(),t.createElementBlock("div",{key:2,class:t.normalizeClass(c.containerinfogame)},[i.matchday!=""?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(c.matchcontainer)},t.toDisplayString(i.matchday),3)):t.createCommentVNode("",!0),i.seasonName!=""?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(c.seasoncontainer)},t.toDisplayString(i.seasonName),3)):t.createCommentVNode("",!0)],2)):t.createCommentVNode("",!0),r3t,t.createElementVNode("img",{src:i.background,alt:"",class:"bkg-blackwhite position-image"},null,8,i3t),t.createElementVNode("div",{class:t.normalizeClass([c.baselogo,"position-image"])},null,2),t.createElementVNode("div",{class:t.normalizeClass(c.baselogoright)},null,2),o3t,s3t,t.createElementVNode("img",{src:i.logoHome,alt:"",class:t.normalizeClass(c.teamlogo)},null,10,l3t),t.createElementVNode("img",{src:i.logoAway,alt:"",class:t.normalizeClass(c.logoright)},null,10,c3t),t.createElementVNode("div",u3t,[t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(c.titlename)},t.toDisplayString(i.titleCategory),3)])],2)}const h3t=$i(uE,[["render",d3t],["__scopeId","data-v-4f4f5686"]]),zma="";let PH=null;const p3t={components:{GSCThumbnailHighlightGameHistoric:h3t},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 r=[];e.type==2?e.data.position_id==1?e.data.category==0?r=[55,324,323,608,39,774,802,52,53,40,54]:r=e.data.category:e.data.category==0?r=[12,35,10,27,607,61,519,98,101,109,112,121,122,127,128,135,136,141,142,161,170,179,702,730,466,217,211,232,235,239,242,282,284,289,291,296,485,486,487,488,14,15,257]:r=e.data.category:e.type==3?e.data.category==0?r=[607,608,12,55,54,35,14,52,15,53,466,477,40,257,39]:r=e.data.category:e.data.category!=0?r=e.data.category:this.titleCard=="RESUMEN"?r=[607,608,12,55,54,35,14,52,15,53,466,477]:r=[12,55,54,35];const i=[1,2,3];let B={seasonId:e.data.season_id,mainSectionType:1,playListType:e.type,categoryIds:r,gameIdsToFilter:e.data.game_id?[e.data.game_id]:null,playerIds:e.data.position_id!=1?e.data.player_id?[e.data.player_id]:[]:[],goalkeeperIds:e.data.position_id==1?e.data.player_id?[e.data.player_id]:[]:[],teamId:e.data.team_id?e.data.team_id:0,matchResult:e.data.matchResult?[e.data.matchResult]:i,playData:{},advancedFilter:{playListTitle:""}};e.data.category!==0&&(B.advancedFilter.mainCategoryId=e.data.category),this.$emit("openmedia",B)},async fillData(){const e="https://fxtcaw9tw6.execute-api.us-east-2.amazonaws.com/prod/historic/games/"+this.game.gameId;if(this.lastDataGameUrl!==e){this.$emit("loading",!0),this.lastDataGameUrl=e;const r=$c.create({headers:{Authorization:`${this.token}`}}),i=await r.get("https://8tvo5bp9ai.execute-api.us-west-2.amazonaws.com/prod/gamesBySeason/"+this.game.seasonId),B=await r.get("https://d2oco6mqmc.execute-api.us-west-2.amazonaws.com/prod/teamsBySeason/"+this.game.seasonId);this.tournamentId=B.data.tournament_id;const D=i.data.games.findIndex(m=>m.game_id===this.game.gameId);this.gameInfo=i.data.games[D];const c=await r.get(e);this.showHighlight=c.data==""?!1:c.data.plays.length>0,this.showHighlightGoals=c.data==""?!1:c.data.plays.filter(m=>m[0]===12||m[0]===55||m[0]===54||m[0]===35).length>0,this.item.category=0,this.item.game_id=c.data.game_id,this.item.season_id=this.game.seasonId,this.item.score=c.data.thumbnails[c.data.game_id]?c.data.thumbnails[c.data.game_id].score[0]+" - "+c.data.thumbnails[c.data.game_id].score[1]:"0 - 0",this.item.backgroundhome=c.data.thumbnails[c.data.game_id]?c.data.thumbnails[c.data.game_id].info_thumbnails.home_colors.background_color:"",this.item.backgroundaway=c.data.thumbnails[c.data.game_id]?c.data.thumbnails[c.data.game_id].info_thumbnails.away_colors.background_color:"",this.item.logohome=c.data.thumbnails[c.data.game_id]?"https://az755631.vo.msecnd.net/teams-150/"+c.data.thumbnails[c.data.game_id].home_team+".png":"",this.item.logoaway=c.data.thumbnails[c.data.game_id]?"https://az755631.vo.msecnd.net/teams-150/"+c.data.thumbnails[c.data.game_id].visiting_team+".png":"",this.item.background=c.data.thumbnails[c.data.game_id]?this.titleCard=="RESUMEN"?"https://golstatsimages.blob.core.windows.net/images-library/"+c.data.thumbnails[c.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)PH=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),PH.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},async mounted(){setTimeout(()=>{this.setUpResizeObserver()},1e3),await this.fillData()}},f3t={class:"highlights-prominent-game",ref:"gamesContainer"},m3t={class:"video-partido-container__highlight"};function g3t(e,r,i,B,D,c){const m=t.resolveComponent("GSCThumbnailHighlightGameHistoric");return t.openBlock(),t.createElementBlock("div",f3t,[t.withDirectives(t.createElementVNode("div",m3t,[t.createCommentVNode("",!0),t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(D.gamesContainerWidth>865?"video-partido-container__image":"video-partido-container__image2")},[D.item.background!=""?(t.openBlock(),t.createBlock(m,{key:0,"color-background-home":D.item.backgroundhome,"color-background-away":D.item.backgroundaway,"logo-home":D.item.logohome,"logo-away":D.item.logoaway,"is-live":!0,"title-category":i.titleCard,"can-play-videos":i.canPlayVideos,background:D.item.background,matchday:D.item.match,"season-name":D.item.seasonname,onOnclickPlayVideos:r[0]||(r[0]=a=>c.onclickPlayVideos({data:D.item,type:1})),score:D.item.score},null,8,["color-background-home","color-background-away","logo-home","logo-away","title-category","can-play-videos","background","matchday","season-name","score"])):t.createCommentVNode("",!0)],2)],512),[[t.vShow,i.titleCard=="RESUMEN"&&i.canPlayVideos&&D.showHighlight||i.titleCard=="GOLES"&&i.canPlayVideos&&D.showHighlightGoals]])],512)}const y3t=$i(p3t,[["render",g3t],["__scopeId","data-v-22344d6f"]]),Oma="";let BH=null;const dE={components:{},props:{titleCategory:{type:String,default:"RESUMEN"},dateGame:{type:String,default:""},colorBackgroundHome:{type:String,default:"#000000"},colorBackgroundAway:{type:String,default:"#FFFFFF"},isLive:{type:Boolean,default:!1},logoHome:{type:String,default:""},game:{type:Object,default:()=>{}},matchday:{type:String,default:""},seasonName:{type:String,default:""},logoAway:{type:String,default:""},score:{type:String,default:""},background:{type:String,default:""}},data(){return{gamesContainerWidth:0}},computed:{date(){const e=this.gamesContainerWidth;return e<=400?"date400":e<=540?"date540":e<=650?"date650":"date"},seasoncontainer(){const e=this.gamesContainerWidth;return e<=400?"season-container400":e<=540?"season-container540":e<=650?"season-container650":"season-container"},matchcontainer(){const e=this.gamesContainerWidth;return e<=400?"match-container400":e<=540?"match-container540":e<=650?"match-container650":"match-container"},containerinfogame(){const e=this.gamesContainerWidth;return e<=400?"container-info-game400":e<=540?"container-info-game540":e<=650?"container-info-game650":"container-info-game"},playbutton(){const e=this.gamesContainerWidth;return e<=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)BH=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),BH.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},NH=()=>{t.useCssVars(e=>({"0079ccca":e.colorBackgroundHome+"45","8a32804a":e.colorBackgroundAway+"45","0939ef2a":e.colorBackgroundHome,"0936dd39":e.colorBackgroundAway}))},zH=dE.setup;dE.setup=zH?(e,r)=>(NH(),zH(e,r)):NH;const $y=e=>(t.pushScopeId("data-v-3c641234"),e=e(),t.popScopeId(),e),v3t=[$y(()=>t.createElementVNode("span",{class:"circle-live"},null,-1)),$y(()=>t.createElementVNode("span",{style:{"margin-left":"3px"}},"LIVE",-1))],_3t=[$y(()=>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))],b3t=$y(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/paper-texture.png",alt:"",class:"paper-texture position-image"},null,-1)),x3t=["src"],w3t=$y(()=>t.createElementVNode("div",{class:"gradient-back position-image"},null,-1)),k3t=$y(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/halftone-texture.png",alt:"",class:"halftone-texture position-image"},null,-1)),C3t=["src"],S3t=["src"],T3t={class:"text-container"};function E3t(e,r,i,B,D,c){return t.openBlock(),t.createElementBlock("div",{ref:"gamesContainer",class:t.normalizeClass(c.thumbnailhighlights)},[i.isLive&&i.game.game_status!=0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(D.gamesContainerWidth>340?D.gamesContainerWidth>480?"icon-live":"icon-live-tablet":"icon-live-mobile")},v3t,2)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(c.playbutton),onClick:r[0]||(r[0]=(...m)=>c.onclickPlayVideos&&c.onclickPlayVideos(...m))},_3t,2),i.dateGame!=""?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(c.date)},t.toDisplayString(i.dateGame),3)):t.createCommentVNode("",!0),i.matchday!=""&&i.seasonName!=""?(t.openBlock(),t.createElementBlock("div",{key:2,class:t.normalizeClass(c.containerinfogame)},[i.matchday!=""?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(c.matchcontainer)},t.toDisplayString(i.matchday),3)):t.createCommentVNode("",!0),i.seasonName!=""?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(c.seasoncontainer)},t.toDisplayString(i.seasonName),3)):t.createCommentVNode("",!0)],2)):t.createCommentVNode("",!0),b3t,t.createElementVNode("img",{src:i.background,alt:"",class:"bkg-blackwhite position-image"},null,8,x3t),t.createElementVNode("div",{class:t.normalizeClass([c.baselogo,"position-image"])},null,2),t.createElementVNode("div",{class:t.normalizeClass(c.baselogoright)},null,2),w3t,k3t,t.createElementVNode("img",{src:i.logoHome,alt:"",class:t.normalizeClass(c.teamlogo)},null,10,C3t),t.createElementVNode("img",{src:i.logoAway,alt:"",class:t.normalizeClass(c.logoright)},null,10,S3t),t.createElementVNode("div",T3t,[t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(c.titlename)},t.toDisplayString(i.titleCategory),3)])],2)}const A3t=$i(dE,[["render",E3t],["__scopeId","data-v-3c641234"]]),Rma="";let OH=null;const M3t={components:{GSCThumbnailHighlightGameHistoricLive:A3t},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 r=[];e.type==2?e.data.position_id==1?e.data.category==0?r=[55,324,323,608,39,774,802,52,53,40,54]:r=e.data.category:e.data.category==0?r=[12,35,10,27,607,61,519,98,101,109,112,121,122,127,128,135,136,141,142,161,170,179,702,730,466,217,211,232,235,239,242,282,284,289,291,296,485,486,487,488,14,15,257]:r=e.data.category:e.type==3?e.data.category==0?r=[607,608,12,55,54,35,14,52,15,53,466,477,40,257,39]:r=e.data.category:e.type==4?r=[12,55,"35_r","54_r"]:e.data.category!=0?r=e.data.category:this.titleCard=="RESUMEN"?r=[607,608,12,55,54,35,14,52,15,53,466,477]:r=[12,55,54,35];const i=[1,2,3];let B={seasonId:e.data.season_id,mainSectionType:1,playListType:e.type,categoryIds:r,gameIdsToFilter:e.data.game_id?[e.data.game_id]:null,playerIds:e.data.position_id!=1?e.data.player_id?[e.data.player_id]:[]:[],goalkeeperIds:e.data.position_id==1?e.data.player_id?[e.data.player_id]:[]:[],teamId:e.data.team_id?e.data.team_id:0,matchResult:e.data.matchResult?[data.matchResult]:i,playData:{},advancedFilter:{playListTitle:""}};e.data.category!==0&&(B.advancedFilter.mainCategoryId=e.data.category),this.$emit("openmedia",B)},async getLiveHighlights(){const r=await $c.create({headers:{Authorization:`${this.token}`}}).get("https://fxtcaw9tw6.execute-api.us-east-2.amazonaws.com/prod/live/historic/games/"+this.game.gameId);r.data!=""&&(this.showHighlight=r.data==""?!1:r.data.plays.length>0,this.showHighlightGoals=r.data==""?!1:r.data.plays.filter(i=>i[0]===12||i[0]===55||i[0]===54||i[0]===35).length>0,this.item.category=0,this.item.game_id=r.data.game_id,this.item.season_id=this.game.seasonId,this.item.score=r.data.thumbnails[r.data.game_id].score,this.item.backgroundhome=r.data.thumbnails[r.data.game_id].info_thumbnails.home_colors.background_color,this.item.backgroundaway=r.data.thumbnails[r.data.game_id].info_thumbnails.away_colors.background_color,this.item.logohome="https://az755631.vo.msecnd.net/teams-150/"+r.data.thumbnails[r.data.game_id].home_team+".png",this.item.logoaway="https://az755631.vo.msecnd.net/teams-150/"+r.data.thumbnails[r.data.game_id].visiting_team+".png",this.item.background=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))},setUpResizeObserver(){if(window.ResizeObserver)OH=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainerlivehigh.clientWidth}),OH.observe(this.$refs.gamesContainerlivehigh);else throw new Error("Resize observer not supported!")}},async mounted(){setTimeout(()=>{this.setUpResizeObserver()},1e3)}},I3t={class:"highlights-prominent-game",ref:"gamesContainerlivehigh"},P3t={class:"video-partido-container__highlight"},B3t={class:"video-partido-container__image"};function N3t(e,r,i,B,D,c){const m=t.resolveComponent("GSCThumbnailHighlightGameHistoricLive");return t.openBlock(),t.createElementBlock("div",I3t,[t.withDirectives(t.createElementVNode("div",P3t,[t.createCommentVNode("",!0),t.createElementVNode("div",B3t,[t.createVNode(m,{"is-live":!0,game:i.game,"color-background-home":D.item.backgroundhome,"color-background-away":D.item.backgroundaway,"logo-home":D.item.logohome,"logo-away":D.item.logoaway,"title-category":i.titleCard,background:D.item.background,onOnclickPlayVideos:r[1]||(r[1]=a=>c.onclickPlayVideos({data:D.item,type:1})),matchday:D.item.match,"season-name":D.item.seasonname,score:D.item.score},null,8,["game","color-background-home","color-background-away","logo-home","logo-away","title-category","background","matchday","season-name","score"])])],512),[[t.vShow,i.titleCard=="RESUMEN"&&i.canPlayVideos&&D.showHighlight||i.titleCard=="GOLES"&&i.canPlayVideos&&D.showHighlightGoals]])],512)}const z3t=$i(M3t,[["render",N3t],["__scopeId","data-v-5710fb35"]]),hE="/play-icn.svg",Vma="",O3t={name:"TooltipEmpty",props:{data:{type:Object,required:!0}},computed:{showTooltip(){return{visible:this.data.visible}}},methods:{tooltipClick:function(){},closeClick:function(){this.$emit("close")}}};function F3t(e,r,i,B,D,c){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["back-tooltip",c.showTooltip])},[t.createElementVNode("div",{class:t.normalizeClass(["box-tooltip",c.showTooltip]),onClick:r[1]||(r[1]=(...m)=>c.tooltipClick&&c.tooltipClick(...m))},[t.createElementVNode("span",{role:"button",class:"box-tooltip-close",onClick:r[0]||(r[0]=(...m)=>c.closeClick&&c.closeClick(...m))},"×"),t.renderSlot(e.$slots,"default",{},void 0,!0)],2)],2)}const L3t=$i(O3t,[["render",F3t],["__scopeId","data-v-b5f07af8"]]),$ma="",D3t=["id"],R3t={class:"game-event__minute"},V3t={class:"game-event__icon"},$3t=["src"],j3t="/images/events/",U3t=$i({__name:"GameEvent",props:{gameEvent:{type:Object,default:()=>{}}},emits:["click-event"],setup(e,{emit:r}){const i=e,B=t.computed(()=>({"--icon-bottom":i.gameEvent.isHomeTeam?"30px":"-5px","--border-color":i.gameEvent.isSelected?"#336dff":"#747c83","--background-color":i.gameEvent.isSelected?"#336dff":"#0d1d29"})),D=t.computed(()=>{let m="";return i.gameEvent.category_id===18?m="icn-tiros-de-esquina.svg":i.gameEvent.category_id===20?m="icn-tiro-a-porteria.svg":i.gameEvent.category_id===10?m="icn-cambio.svg":i.gameEvent.category_id===21?m="icn-falta.svg":i.gameEvent.category_id===27?m="atajada.svg":i.gameEvent.category_id===17?m="fuera-de-lugar.svg":i.gameEvent.category_id===4||i.gameEvent.category_id===13||i.gameEvent.category_id===14||i.gameEvent.category_id===16||i.gameEvent.category_id===6&&i.gameEvent.event_type_id===1||i.gameEvent.category_id===5&&i.gameEvent.event_type_id===1||i.gameEvent.category_id===1&&i.gameEvent.event_type_id===1||i.gameEvent.category_id===2&&i.gameEvent.event_type_id===1||i.gameEvent.category_id===3&&i.gameEvent.event_type_id===1||i.gameEvent.category_id===7&&i.gameEvent.event_type_id===1||i.gameEvent.category_id===12&&i.gameEvent.event_type_id===1?m="gol.svg":i.gameEvent.category_id==30||i.gameEvent.category_id==31||i.gameEvent.category_id==32||i.gameEvent.category_id==33||i.gameEvent.category_id==34||i.gameEvent.category_id==35||i.gameEvent.category_id==36||i.gameEvent.category_id==37||i.gameEvent.category_id==38||i.gameEvent.category_id==39||i.gameEvent.category_id==40?m="var.png":i.gameEvent.category_id===28?m="tiempo-agregado.svg":i.gameEvent.category_id===26?m="jugada-peligrosa.svg":i.gameEvent.category_id===22?m="penal-marcado.svg":i.gameEvent.category_id===15||i.gameEvent.category_id===23?m="penal-fallado.svg":i.gameEvent.category_id===8?m="icn-tarjeta-amarilla.svg":i.gameEvent.category_id===9?m="icn-tarjeta-roja.svg":m="generic.svg",`${j3t}${m}`});function c(){r("click-event",i.gameEvent)}return(m,a)=>(t.openBlock(),t.createElementBlock("div",{id:i.gameEvent.play_id,class:"game-event",onClick:c,style:t.normalizeStyle(B.value)},[t.createElementVNode("div",R3t,[t.createElementVNode("div",null,t.toDisplayString(e.gameEvent.minute)+"'",1)]),t.createElementVNode("div",V3t,[t.createElementVNode("img",{src:D.value},null,8,$3t)])],12,D3t))}},[["__scopeId","data-v-f972a06c"]]),Uma="",G3t=e=>(t.pushScopeId("data-v-df0b18c7"),e=e(),t.popScopeId(),e),H3t={class:"events-line"},W3t={class:"events-line__events"},q3t=G3t(()=>t.createElementVNode("div",{class:"events-line__events__line"},null,-1)),Y3t=$i({__name:"EventsLine",props:{gameEvents:{type:Array,default:()=>[]}},emits:["click-event"],setup(e,{emit:r}){function i(B){r("click-event",B)}return(B,D)=>(t.openBlock(),t.createElementBlock("div",H3t,[t.createVNode(t.unref(Gv),{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",W3t,[q3t,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.gameEvents,c=>(t.openBlock(),t.createBlock(U3t,{key:c.id,"game-event":c,onClickEvent:i},null,8,["game-event"]))),128))])]),_:1})]))}},[["__scopeId","data-v-df0b18c7"]]),Hma="",f_=e=>(t.pushScopeId("data-v-17881d53"),e=e(),t.popScopeId(),e),X3t={class:"tooltip-data"},Z3t=["src"],J3t=f_(()=>t.createElementVNode("div",{class:"game-events__title-left-padding"},null,-1)),K3t=f_(()=>t.createElementVNode("div",{class:"game-events__title"},"Eventos",-1)),Q3t={class:"game-events__team-logo"},ewt=["src"],twt={class:"game-events__event-info"},awt={key:0,class:"game-events__event-info__line"},nwt={key:1,class:"game-events__event-info__info"},rwt={class:"game-events__event-info__info__player-photo"},iwt={key:0,class:"game-events__event-info__info__player-photo__img"},owt=["src"],swt={class:"game-events__event-info__info__event-name"},lwt={class:"game-events__event-info__info__player-name"},cwt=[f_(()=>t.createElementVNode("img",{src:hE,alt:""},null,-1))],uwt=f_(()=>t.createElementVNode("div",{class:"game-events__events-padding"},null,-1)),dwt={class:"game-events__events"},hwt={class:"game-events__team-logo"},pwt=["src"],fwt={class:"game-events__event-info"},mwt={key:0,class:"game-events__event-info__line"},gwt={key:1,class:"game-events__event-info__info"},ywt={class:"game-events__event-info__info__player-photo"},vwt={key:0,class:"game-events__event-info__info__player-photo__img"},_wt=["src"],bwt={class:"game-events__event-info__info__event-name"},xwt={class:"game-events__event-info__info__player-name"},wwt=[f_(()=>t.createElementVNode("img",{src:hE,alt:""},null,-1))],kwt="https://11rcgkydx3.execute-api.us-east-2.amazonaws.com/prod/games/",Cwt=$i({__name:"GameEvents",props:{game:{type:Object,default:()=>({})},widthScreen:{type:Number,default:0},token:{type:String,default:""},canPlayVideos:{type:Boolean,default:!0},gameEventsIntervalMinutes:{type:Number,default:1}},emits:["play-video"],setup(e,{emit:r}){const i=e;let B=null,D=0;const c=t.ref([]),m=t.ref(new Map),a=t.ref(""),y=t.ref(null),f=t.ref({visible:!1,link:""}),n=t.ref(new Set),v=t.ref(0),_=t.computed(()=>i.game.is_live||i.game.game_status===0);t.watch(()=>i.game,(w,x)=>{w&&w.gameId!==D?(n.value.clear(),D=w.gameId,o(),l(w.gameId,w.is_live&&w.game_status===4)):w&&w.is_live&&(!x||!x.is_live)?l(w.gameId,!0):w&&!w.is_live&&x.is_live&&o()},{deep:!0,immediate:!0}),t.watch(()=>a.value,(w,x)=>{if(w!==x){const S=m.value.get(x),C=m.value.get(w);if(S&&(S.isSelected=!1),C){if(!C.playerShortName){const[T,k]=C.player_name.split(","),A=T.split(" ");let E="";for(const M of A)if(E+=` ${M}`,M.length>3)break;C.playerShortName=k&&T?`${k.trim().charAt(0)}.${E}`:""}C.isSelected=!0,y.value=C}}});function p(w){B=setInterval(()=>{l(w)},1e3*60*i.gameEventsIntervalMinutes)}async function l(w,x=!1){try{let S=await u(w),C=!1;w!==v.value&&(c.value=[],m.value=new Map,a.value="",n.value.clear(),v.value=w);let T=S.filter(k=>{const A=n.value.has(k.play_id);return A||n.value.add(k.play_id),!A});if(T){T=T.reduce((A,E)=>(C=E.game_finished,E.team_id&&(E.isHomeTeam=E.team_id===i.game.homeTeam.team_id,A.push(E),m.value.set(E.play_id,E)),A),[]);const k=[...c.value];s(T).forEach(A=>{_.value?k.unshift(A):k.push(A)}),c.value=_.value?s(k).reverse():s(k)}c.value&&c.value.length&&(_.value||!a.value&&c.value.length)&&(a.value=c.value[0].play_id),x&&!C?p(w):C&&o()}catch(S){console.error(S)}}function o(){B&&(clearInterval(B),B=null)}function s(w){return w.sort((x,S)=>d(x.matchlapse)+Number(x.minute)-(d(S.matchlapse)+Number(S.minute)))}function d(w){let x=0;switch(w){case 1:x=0;break;case 2:x=45;break;case 3:x=90;break;case 4:x=105;break;case 5:x=120;break}return x}async function u(w){try{const S=(await $c.get(`${kwt}${w}/timeline`,{headers:{Authorization:i.token}})).data;return S?S.plays||[]:[]}catch(x){throw new Error(x)}}function h(w){a.value=w.play_id}function g(){i.canPlayVideos&&y.value.play_id&&r("play-video",{categoryId:y.value.main_category_id,playId:y.value.play_id})}function b(){f.value.visible=!1,f.value.link=""}return t.onBeforeUnmount(()=>{o()}),(w,x)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createVNode(L3t,{data:f.value,onClose:b},{default:t.withCtx(()=>[t.createElementVNode("div",X3t,[t.createElementVNode("div",null,[t.createElementVNode("video",{class:"tooltip-video",controls:"",autoplay:"",src:f.value.link,format:"video/mp4"},null,8,Z3t)])])]),_:1},8,["data"]),t.createElementVNode("div",{class:t.normalizeClass(e.widthScreen>920?"game-events":"game-events__mobile")},[J3t,K3t,t.createElementVNode("div",Q3t,[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,ewt)):t.createCommentVNode("",!0)]),t.createElementVNode("div",twt,[y.value&&y.value.isHomeTeam?(t.openBlock(),t.createElementBlock("div",awt)):t.createCommentVNode("",!0),y.value&&y.value.isHomeTeam?(t.openBlock(),t.createElementBlock("div",nwt,[t.createElementVNode("div",rwt,[y.value.player_id?(t.openBlock(),t.createElementBlock("div",iwt,[t.createElementVNode("img",{src:`https://az755631.vo.msecnd.net/players-profile/${y.value.player_id}.png`,alt:""},null,8,owt)])):t.createCommentVNode("",!0)]),t.createElementVNode("div",swt,t.toDisplayString(y.value.event_type_id===1?y.value.event_type_name:y.value.category_name),1),t.createElementVNode("div",lwt," | "+t.toDisplayString(y.value.playerShortName),1),e.canPlayVideos&&y.value.play_id?(t.openBlock(),t.createElementBlock("div",{key:0,role:"button",class:"game-events__event-info__info__button-play",onClick:g},cwt)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)]),uwt,t.createElementVNode("div",dwt,[t.createVNode(Y3t,{"game-events":c.value,onClickEvent:h},null,8,["game-events"])]),t.createElementVNode("div",hwt,[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,pwt)):t.createCommentVNode("",!0)]),t.createElementVNode("div",fwt,[y.value&&!y.value.isHomeTeam?(t.openBlock(),t.createElementBlock("div",mwt)):t.createCommentVNode("",!0),y.value&&!y.value.isHomeTeam?(t.openBlock(),t.createElementBlock("div",gwt,[t.createElementVNode("div",ywt,[y.value.player_id?(t.openBlock(),t.createElementBlock("div",vwt,[t.createElementVNode("img",{src:`https://az755631.vo.msecnd.net/players-profile/${y.value.player_id}.png`,alt:""},null,8,_wt)])):t.createCommentVNode("",!0)]),t.createElementVNode("div",bwt,t.toDisplayString(y.value.event_type_id===1?y.value.event_type_name:y.value.category_name),1),t.createElementVNode("div",xwt," | "+t.toDisplayString(y.value.playerShortName),1),e.canPlayVideos&&y.value.play_id?(t.openBlock(),t.createElementBlock("div",{key:0,role:"button",class:"game-events__event-info__info__button-play",onClick:g},wwt)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)])],2)],64))}},[["__scopeId","data-v-17881d53"]]),Xma="",Swt={class:"toggle-buttons__background"},Twt=["onClick"],Ewt={key:0,class:"toggle-buttons__button__img"},Awt=["src"],m4=$i({__name:"ToggleButtons",props:{buttons:{type:Array,required:!0},selectedButtonIndex:{type:Number,default:0},height:{type:String,default:"29px"},width:{type:String,default:"100%"},fontSize:{type:String,default:"12px"},fontFamily:{type:String,default:"Poppins-Medium"},borderRadius:{type:String,default:"8px"},mainBackgroundColor:{type:String,default:"#364448"},mainBorderColor:{type:String,default:"#9AA1A3"},mainBorderWidth:{type:String,default:"0.5px"},activeBorderColor:{type:String,default:"#cbee6b"},activeBorderWidth:{type:String,default:"1px"},activeBackgroundColor:{type:String,default:"#2e3b46"},activeFontColor:{type:String,default:"#FFFFFF"}},emits:["change"],setup(e,{emit:r}){const i=e;t.useCssVars(m=>({29153391:e.height,"1aee961c":e.width,"738679b2":e.mainBackgroundColor,f3cab270:e.borderRadius,"0ec0fe57":e.mainBorderWidth,"0da9fff4":e.mainBorderColor,"68dc0c06":e.fontFamily,f9ef5e4c:e.fontSize,"5713c56a":e.activeBorderWidth,"55fcc707":e.activeBorderColor,"38297f45":e.activeBackgroundColor,"424728c4":e.activeFontColor}));const B=t.ref(i.selectedButtonIndex),D=t.computed(()=>({"--grid-template-columns":`repeat(${i.buttons.length}, 1fr)`}));t.watch(()=>i.selectedButtonIndex,m=>{B.value=m}),t.watch(B,(m,a)=>{m!==a&&r("change",{index:m,button:i.buttons[m]})});function c(m){B.value=m}return(m,a)=>(t.openBlock(),t.createElementBlock("div",Swt,[t.createElementVNode("div",{class:"toggle-buttons",style:t.normalizeStyle(D.value)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.buttons,(y,f)=>(t.openBlock(),t.createElementBlock("div",{key:`b${f}`,class:t.normalizeClass(["toggle-buttons__button",{active:B.value===f,right:y.img&&f>0}]),onClick:n=>c(f)},[y.img?(t.openBlock(),t.createElementBlock("div",Ewt,[t.createElementVNode("img",{src:y.img,alt:""},null,8,Awt)])):t.createCommentVNode("",!0),t.createElementVNode("div",null,t.toDisplayString(y.text||y),1)],10,Twt))),128))],4)]))}},[["__scopeId","data-v-ad07815f"]]),Jma="",Kma="",pE=e=>(t.pushScopeId("data-v-cb12065f"),e=e(),t.popScopeId(),e),Mwt={class:"tooltip__content"},Iwt={key:0,class:"tooltip__content__category"},Pwt={class:"tooltip__content__player"},Bwt={class:"tooltip__content__player__name"},Nwt={class:"tooltip__content__player__photo"},zwt=["src"],Owt={class:"tooltip__content__minute"},Fwt={key:1,class:"tooltip__content__game"},Lwt=pE(()=>t.createElementVNode("div",{class:"tooltip__content__game__name"},"Partido:",-1)),Dwt={class:"tooltip__content__game__round-abbreviation"},Rwt={class:"tooltip__content__game__logo"},Vwt=["src"],$wt=pE(()=>t.createElementVNode("div",{class:"tooltip__content__game__vs"},"VS",-1)),jwt={class:"tooltip__content__game__logo"},Uwt=["src"],Gwt={key:2,class:"tooltip__content__team"},Hwt=pE(()=>t.createElementVNode("div",{class:"tooltip__content__team__name"},"Equipo:",-1)),Wwt={class:"tooltip__content__team__logo"},qwt=["src"],Ywt=$i({__name:"TooltipChalkboard",props:{event:{type:Object,default:()=>({})},position:{type:Object,default:()=>({x:"0",y:"0"})}},emits:["close"],setup(e,{emit:r}){const i=e,B=t.computed(()=>({"--top":i.position.y,"--left":i.position.x})),D=t.computed(()=>`${i.event.player.player_name} ${i.event.player.player_lastname}`),c=t.computed(()=>{const[a]=i.event.momentOfPlay.split(":");return`${Number(a)}'`});function m(){r("close")}return(a,y)=>(t.openBlock(),t.createElementBlock("div",{class:"tooltip",onClick:m,style:t.normalizeStyle(B.value)},[t.createElementVNode("div",Mwt,[e.event.categoryName?(t.openBlock(),t.createElementBlock("div",Iwt,t.toDisplayString(e.event.categoryName),1)):t.createCommentVNode("",!0),t.createElementVNode("div",Pwt,[t.createElementVNode("div",Bwt,t.toDisplayString(D.value),1),t.createElementVNode("div",Nwt,[t.createElementVNode("img",{src:e.event.player.photo,alt:""},null,8,zwt)])]),t.createElementVNode("div",Owt,"Minuto: "+t.toDisplayString(c.value),1),e.event.game?(t.openBlock(),t.createElementBlock("div",Fwt,[Lwt,t.createElementVNode("div",Dwt,t.toDisplayString(e.event.game.roundAbbreviation),1),t.createElementVNode("div",Rwt,[t.createElementVNode("img",{src:e.event.game.homeTeam.logo,alt:""},null,8,Vwt)]),$wt,t.createElementVNode("div",jwt,[t.createElementVNode("img",{src:e.event.game.awayTeam.logo,alt:""},null,8,Uwt)])])):(t.openBlock(),t.createElementBlock("div",Gwt,[Hwt,t.createElementVNode("div",Wwt,[t.createElementVNode("img",{src:e.event.team.logo,alt:""},null,8,qwt)])]))])],4))}},[["__scopeId","data-v-cb12065f"]]),Xwt=["id"],Zwt=["fill"],Jwt=["id"],Kwt=["fill"],Qwt=["stroke-dasharray","x1","y1","x2","y2","marker-end"],e5t=["x","y","stroke-width","fill","stroke"],t5t=["x","y"],a5t={__name:"EventConnection",props:{eventConnection:{type:Object,required:!0},color:{type:String,required:!0},isLastEvent:{type:Boolean,default:!1},mainEventIdSelected:{type:Number,default:0}},setup(e){const r=e,i=t.computed(()=>{const v=[];if(r.eventConnection.hasConnectionPath){const _=r.eventConnection.x1===r.eventConnection.x2&&r.eventConnection.y1===r.eventConnection.y2?1:2;let p=a(r.eventConnection.previousEvent?r.eventConnection.previousEvent.y3:r.eventConnection.y1);const l=y(r.eventConnection.previousEvent?r.eventConnection.previousEvent.x3:r.eventConnection.x1);let o=0,s=0;_===2&&(o=a(r.eventConnection.y2),s=y(r.eventConnection.x2));const d=a(r.eventConnection.y3),u=y(r.eventConnection.x3);_===1?v.push({x1:l,y1:p,x2:u,y2:d}):(v.push({x1:l,y1:p,x2:s,y2:o}),v.push({x1:s,y1:o,x2:u,y2:d}))}return v}),B=t.computed(()=>r.mainEventIdSelected!==0?r.eventConnection.relatedPlayId===r.mainEventIdSelected?1:.1:1),D=t.computed(()=>r.mainEventIdSelected!==0?r.eventConnection.relatedPlayId===r.mainEventIdSelected:!0),c=t.computed(()=>a(r.eventConnection.previousEvent?r.eventConnection.previousEvent.y3:r.eventConnection.y1)),m=t.computed(()=>y(r.eventConnection.previousEvent?r.eventConnection.previousEvent.x3:r.eventConnection.x1));function a(v){return(1-v)*100}function y(v){return v*100}function f(v){Yh.emit("mouse-over-event",{mouseEvent:v,eventConnection:r.eventConnection,position:{x:m.value,y:c.value}})}function n(){Yh.emit("mouse-leave-event",{mainEventId:r.eventConnection.relatedPlayId,eventId:r.eventConnection.playId})}return(v,_)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createElementVNode("defs",null,[t.withDirectives(t.createElementVNode("marker",{id:`a-${e.eventConnection.playId}`,markerWidth:"10",markerHeight:"10",refX:"0",refY:"3",orient:"auto",markerUnits:"strokeWidth",style:t.normalizeStyle({opacity:B.value})},[t.createElementVNode("path",{d:"M0,0 L0,6 L9,3 z",fill:e.color},null,8,Zwt)],12,Xwt),[[t.vShow,D.value]]),t.withDirectives(t.createElementVNode("marker",{id:`b-${e.eventConnection.playId}`,markerWidth:"4",markerHeight:"4",refX:"2",refY:"2",orient:"auto",markerUnits:"strokeWidth",style:t.normalizeStyle({opacity:B.value})},[t.createElementVNode("circle",{cx:"2",cy:"2",r:"2",fill:e.color},null,8,Kwt)],12,Jwt),[[t.vShow,D.value]])]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i.value,(p,l)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[p.x1&&p.y1?t.withDirectives((t.openBlock(),t.createElementBlock("line",{key:`${e.eventConnection.playId}-${l}`,style:t.normalizeStyle({stroke:e.color,"stroke-width":2,opacity:B.value}),"stroke-dasharray":l===0&&i.value.length===2?"none":"5,5",x1:`${p.x1}%`,y1:`${p.y1}%`,x2:`${p.x2}%`,y2:`${p.y2}%`,"marker-start":"`url(`#b-${eventConnection.playId}`)`","marker-end":`url(${e.isLastEvent&&l===i.value.length-1?`#a-${e.eventConnection.playId}`:""})`},null,12,Qwt)),[[t.vShow,D.value]]):t.createCommentVNode("",!0)],64))),256)),t.withDirectives(t.createElementVNode("g",{onMouseover:f,onMouseleave:n,style:t.normalizeStyle({cursor:"pointer",opacity:B.value})},[t.createElementVNode("rect",{x:`${m.value}%`,y:`${c.value}%`,transform:"translate(-14, -14)",height:"28",width:"28","stroke-width":e.eventConnection.isMainPlay?2:1,fill:e.color,stroke:e.eventConnection.isMainPlay?"#fff":"#999",style:t.normalizeStyle({opacity:B.value}),rx:"14",ry:"14"},null,12,e5t),t.createElementVNode("text",{x:`${m.value}%`,y:`${c.value}%`,"text-anchor":"middle","dominant-baseline":"middle",dy:"1","font-size":"15",fill:"#fff","font-family":"'Poppins-SemiBold', sans-serif",style:t.normalizeStyle({opacity:B.value})},t.toDisplayString(e.eventConnection.player?e.eventConnection.player.jersey:""),13,t5t)],36),[[t.vShow,D.value]])],64))}},n5t={__name:"EventConnections",props:{eventConnections:{type:Object,required:!0},mainEventIdSelected:{type:Number,default:0}},setup(e){const r=e,i=t.computed(()=>r.eventConnections.getEventsConnectionsByEventType()),B=t.computed(()=>r.eventConnections.getTeamColor());return(D,c)=>(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i.value,(m,a)=>(t.openBlock(),t.createBlock(a5t,{key:m.id,color:B.value,"is-last-event":a===i.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))}},e0a="",r5t=e=>(t.pushScopeId("data-v-9c1367ca"),e=e(),t.popScopeId(),e),i5t={class:"soccer-chalkboard"},o5t={id:"soccerChalkboardField",class:"soccer-chalkboard__field"},s5t=r5t(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/todoelfut/field-green-posesion.jpg",alt:""},null,-1)),l5t={viewBox:"0 0 547 340",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c5t=$i({__name:"SoccerChalkboard",props:{eventsConnections:{type:Array,default:()=>[]},listType:{type:String,default:"events"},playersSelected:{type:Set,default:()=>new Set},teamsSelected:{type:Set,default:()=>new Set}},setup(e){const i=ase()?0:1e3;Yh.on("mouse-over-time-event",_=>{y(_),setTimeout(()=>{y(_)},i)}),Yh.on("mouse-leave-time-event",_=>{setTimeout(()=>{c.value==_&&!B.value&&y(0)},i)}),Yh.on("mouse-over-event",_=>{n(_)}),Yh.on("mouse-leave-event",_=>{setTimeout(()=>{_.eventId===m.value&&v()},i)});const B=t.ref(!1),D=t.ref({}),c=t.ref(0),m=t.ref(0),a=t.ref({x:0,y:0});function y(_){c.value=_}function f(){B.value=!1}function n(_){const l=document.getElementById("soccerChalkboardField");if(l){const o=l.getBoundingClientRect(),s=_.position.x/100*o.width+14,d=_.position.y/100*o.height+14,u=s+170>o.width?o.width-170:s,h=d;c.value=_.eventConnection.relatedPlayId,m.value=_.eventConnection.playId,D.value=_.eventConnection,a.value={x:`${u}px`,y:`${h}px`},B.value=!0}}function v(){B.value=!1,c.value=0}return(_,p)=>(t.openBlock(),t.createElementBlock("div",i5t,[t.createElementVNode("div",o5t,[s5t,(t.openBlock(),t.createElementBlock("svg",l5t,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.eventsConnections,(l,o)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[e.listType==="events"&&l.hasTeam(e.teamsSelected)||e.listType==="players"&&l.hasPlayer(e.playersSelected)?(t.openBlock(),t.createBlock(n5t,{key:o,"event-connections":l,"main-event-id-selected":c.value},null,8,["event-connections","main-event-id-selected"])):t.createCommentVNode("",!0)],64))),256))]))]),B.value?(t.openBlock(),t.createBlock(Ywt,{key:0,position:a.value,event:D.value,onClose:f},null,8,["position","event"])):t.createCommentVNode("",!0)]))}},[["__scopeId","data-v-9c1367ca"]]),a0a="",FH=e=>(t.pushScopeId("data-v-d484e9ef"),e=e(),t.popScopeId(),e),u5t={class:"events-timeline"},d5t=FH(()=>t.createElementVNode("div",{class:"events-timeline__back-line"},null,-1)),h5t=["onMouseover","onMouseleave"],p5t=["id"],f5t=[FH(()=>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))],m5t=["fill"],g5t=["mask"],y5t=["stroke"],v5t=$i({__name:"EventsTimeLine",props:{eventsConnections:{type:Array,default:()=>[]},listType:{type:String,default:"events"},playersSelected:{type:Set,default:()=>new Set},teamsSelected:{type:Set,default:()=>new Set}},setup(e){const r=e,i=["0'","45'","90'"],B=t.computed(()=>r.eventsConnections.reduce((m,a)=>{const y={minute:"0'",left:"0%",color:a.getTeamColor(),fontColor:a.getTeamFontColor(),playId:a.mainPlay.playId,playerId:a.mainPlay.playerId,teamId:a.mainPlay.teamId,relatedPlayId:a.relatedPlayId},[f]=a.mainPlay.momentOfPlay.split(":"),n=parseInt(f);return n>=90?(y.minute=`${n}'`,y.left="100%"):(y.minute=`${n}'`,y.left=`${n/90*100}%`),m.push(y),m},[]));function D(m){Yh.emit("mouse-over-time-event",m.playId)}function c(m){Yh.emit("mouse-leave-time-event",m.playId)}return(m,a)=>(t.openBlock(),t.createElementBlock("div",u5t,[(t.openBlock(),t.createElementBlock(t.Fragment,null,t.renderList(i,(y,f)=>t.createElementVNode("div",{class:"events-timeline__game-time",key:f},t.toDisplayString(y),1)),64)),d5t,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(B.value,(y,f)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[e.listType==="events"&&e.teamsSelected.has(y.teamId)||e.listType==="players"&&e.playersSelected.has(y.playerId)?(t.openBlock(),t.createElementBlock("svg",{key:f,width:"20",height:"22",viewBox:"0 0 20 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:t.normalizeStyle({left:y.left,cursor:"pointer"}),onMouseover:n=>D(y),onMouseleave:n=>c(y)},[t.createElementVNode("mask",{id:y.playId.toString(),fill:"white"},f5t,8,p5t),t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.77234 0.45166C2.11548 0.45166 0.772339 1.79481 0.772339 3.45166V14.4517C0.772339 16.1085 2.11548 17.4517 3.77234 17.4517H7.96294L10.2723 21.4517L12.5817 17.4517H16.7723C18.4292 17.4517 19.7723 16.1085 19.7723 14.4517V3.45166C19.7723 1.79481 18.4292 0.45166 16.7723 0.45166H3.77234Z",fill:y.color},null,8,m5t),t.createElementVNode("path",{d:"M7.96294 17.4517L8.82896 16.9517L8.54029 16.4517H7.96294V17.4517ZM10.2723 21.4517L9.40631 21.9517L10.2723 23.4517L11.1384 21.9517L10.2723 21.4517ZM12.5817 17.4517V16.4517H12.0044L11.7157 16.9517L12.5817 17.4517ZM1.77234 3.45166C1.77234 2.34709 2.66777 1.45166 3.77234 1.45166V-0.54834C1.5632 -0.54834 -0.227661 1.24252 -0.227661 3.45166H1.77234ZM1.77234 14.4517V3.45166H-0.227661V14.4517H1.77234ZM3.77234 16.4517C2.66777 16.4517 1.77234 15.5562 1.77234 14.4517H-0.227661C-0.227661 16.6608 1.5632 18.4517 3.77234 18.4517V16.4517ZM7.96294 16.4517H3.77234V18.4517H7.96294V16.4517ZM7.09691 17.9517L9.40631 21.9517L11.1384 20.9517L8.82896 16.9517L7.09691 17.9517ZM11.1384 21.9517L13.4478 17.9517L11.7157 16.9517L9.40631 20.9517L11.1384 21.9517ZM16.7723 16.4517H12.5817V18.4517H16.7723V16.4517ZM18.7723 14.4517C18.7723 15.5562 17.8769 16.4517 16.7723 16.4517V18.4517C18.9815 18.4517 20.7723 16.6608 20.7723 14.4517H18.7723ZM18.7723 3.45166V14.4517H20.7723V3.45166H18.7723ZM16.7723 1.45166C17.8769 1.45166 18.7723 2.34709 18.7723 3.45166H20.7723C20.7723 1.24252 18.9815 -0.54834 16.7723 -0.54834V1.45166ZM3.77234 1.45166H16.7723V-0.54834H3.77234V1.45166Z",fill:"#172531",mask:`url(#${y.playId})`},null,8,g5t),t.createElementVNode("g",null,[t.createElementVNode("text",{x:"50%",y:"8","text-anchor":"middle","dominant-baseline":"middle",dy:"1","font-size":"9","font-family":"Poppins-Light",stroke:y.fontColor,"stroke-width":"0.7"},t.toDisplayString(y.minute),9,y5t)])],44,h5t)):t.createCommentVNode("",!0)],64))),256))]))}},[["__scopeId","data-v-d484e9ef"]]),hu={All:1,YEAR:2,AGE_RANGE:3,NATIONALITY:4,POSITION:5,ELIGIBILITY:6},_5t=(e,r)=>{const i=e.__vccOpts||e;for(const[B,D]of r)i[B]=D;return i},b5t={key:1},x5t={width:"10",height:"8",viewBox:"0 0 10 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},w5t=["fill"],k5t={key:0,class:"checkbox__teams"},C5t={class:"checkbox__teams__logo"},S5t=["src"],T5t={class:"checkbox__teams__logo"},E5t=["src"],A5t={__name:"GSC-Checkbox",props:{width:{type:String,default:"fit-content"},height:{type:String,default:"fit-content"},label:{type:String,default:""},labelWhiteSpace:{type:String,default:"normal"},labelColor:{type:String,default:"white"},fontFamily:{type:String,default:"sans-serif"},labelFontSize:{type:String,default:"12px"},modelValue:{type:Boolean,default:!1},justifyContent:{type:String,default:"flex-start"},alignItems:{type:String,default:"center"},boxBackgroundColor:{type:String,default:"#CBEE6B"},boxValueColor:{type:String,default:"#0d1d29"},boxValue:{type:[String,Number],default:""},boxPosition:{type:String,default:"left",validator(e){return["left","right","top","bottom"].includes(e)}},boxMarginTop:{type:String,default:"0.2em"},boxWidthAndHeight:{type:String,default:"16px"},boxBorderColor:{type:String,default:"#969da2"},boxBorderWidth:{type:String,default:"2px"},boxBorderRadius:{type:String,default:"4px"},boxValueFontSize:{type:String,default:"10px"},boxValueFontFamily:{type:String,default:"sans-serif"},avoidInteraction:{type:Boolean,default:!1},avoidToCheck:{type:Boolean,default:!1},isBoxOnly:{type:Boolean,default:!1},teamsIds:{type:Array,default:()=>null}},emits:["update:modelValue"],setup(e,{emit:r}){const i=e;t.useCssVars(f=>({"6582e90e":e.width,"310b3edf":e.height}));const B=t.ref(!1),D=t.computed(()=>{const f={color:i.boxValueColor,"font-family":i.fontFamily,height:i.boxWidthAndHeight,width:i.boxWidthAndHeight,minWidth:i.boxWidthAndHeight,"border-radius":i.boxBorderRadius,"margin-top":i.boxMarginTop};return B.value?(f["background-color"]=i.boxBackgroundColor,f.border=`solid ${i.boxBorderWidth} ${i.boxBackgroundColor}`):f.border=`solid ${i.boxBorderWidth} ${i.boxBorderColor}`,f}),c=t.computed(()=>({"font-family":i.boxValueFontFamily,"font-size":i.boxValueFontSize,color:i.boxValueColor,"line-height":1})),m=t.computed(()=>{const f={color:i.labelColor,"font-family":i.fontFamily,"font-size":i.labelFontSize,"white-space":i.labelWhiteSpace,"text-align":i.boxPosition==="top"||i.boxPosition==="bottom"?"center":i.boxPosition};return(i.boxPosition==="left"||i.boxPosition==="right")&&(f[`margin-${i.boxPosition}`]=i.isBoxOnly?"0":i.teamsIds?"8px":"10px"),f});t.watch(()=>i.modelValue,f=>{f!==B.value&&(B.value=f)},{immediate:!0});function a(){i.avoidInteraction||!B.value&&i.avoidToCheck||(B.value=!B.value,r("update:modelValue",B.value))}function y(f){return`${{}.TEAM_LOGOS_URL||"https://az755631.vo.msecnd.net/teams-80/"}${f}.png`}return(f,n)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["checkbox",`box-${e.boxPosition}`]),onClick:a},[t.createElementVNode("div",{class:"checkbox__box",style:t.normalizeStyle(D.value)},[B.value?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[i.boxValue?(t.openBlock(),t.createElementBlock("div",{key:0,class:"checkbox__box__value",style:t.normalizeStyle(c.value)},t.toDisplayString(e.boxValue),5)):(t.openBlock(),t.createElementBlock("div",b5t,[(t.openBlock(),t.createElementBlock("svg",x5t,[t.createElementVNode("path",{d:"M9.77994 1.70133L4.10994 7.37133C3.96994 7.51133 3.77994 7.59133 3.57994 7.59133C3.37994 7.59133 3.18994 7.51133 3.04994 7.37133L0.219941 4.54133C-0.0700586 4.25133 -0.0700586 3.77133 0.219941 3.48133C0.509941 3.19133 0.989941 3.19133 1.27994 3.48133L3.57994 5.78133L8.71994 0.641328C9.00994 0.351328 9.48994 0.351328 9.77994 0.641328C10.0699 0.931328 10.0699 1.40133 9.77994 1.70133Z",fill:e.boxValueColor},null,8,w5t)]))]))],64)):t.createCommentVNode("",!0)],4),e.teamsIds&&e.teamsIds.length?(t.openBlock(),t.createElementBlock("div",k5t,[t.createElementVNode("div",C5t,[t.createElementVNode("img",{src:y(e.teamsIds[0]),alt:""},null,8,S5t)]),t.createElementVNode("div",T5t,[t.createElementVNode("img",{src:y(e.teamsIds[1]),alt:""},null,8,E5t)])])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"checkbox__label",style:t.normalizeStyle(m.value)},t.toDisplayString(e.label),5)],2))}},Is=_5t(A5t,[["__scopeId","data-v-bcf3bcc6"]]),ml=(e,r)=>{const i=e.__vccOpts||e;for(const[B,D]of r)i[B]=D;return i},M5t={class:"container"},I5t={key:0,width:"11",height:"2",viewBox:"0 0 11 2",fill:"none",xmlns:"http://www.w3.org/2000/svg"},P5t=["fill"],B5t={key:1,width:"11",height:"11",viewBox:"0 0 11 11",fill:"none",xmlns:"http://www.w3.org/2000/svg"},N5t=["fill"],z5t={__name:"IconExpand",props:{height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},isExpanded:{type:Boolean,default:!1},expandIconColor:{type:String,default:"white"},collapseIconColor:{type:String,default:"#D9D9D9"}},setup(e){return t.useCssVars(r=>({"563e5242":e.width,a529e9a4:e.height})),(r,i)=>(t.openBlock(),t.createElementBlock("div",M5t,[e.isExpanded?(t.openBlock(),t.createElementBlock("svg",I5t,[t.createElementVNode("rect",{width:"11",height:"1.7",fill:e.collapseIconColor},null,8,P5t)])):(t.openBlock(),t.createElementBlock("svg",B5t,[t.createElementVNode("path",{d:"M11 6.28571H6.28571V11H4.71429V6.28571H0V4.71429H4.71429V0H6.28571V4.71429H11V6.28571Z",fill:e.expandIconColor},null,8,N5t)]))]))}},x1=ml(z5t,[["__scopeId","data-v-166b6226"]]),m_=e=>(t.pushScopeId("data-v-4df743e3"),e=e(),t.popScopeId(),e),O5t={class:"productivity"},F5t={class:"productivity__body__offensive"},L5t={class:"productivity__body__title"},D5t={class:"productivity__body__title__info"},R5t={class:"number-of-categories"},V5t={class:"productivity__body__categories"},$5t={class:"productivity__body__defensive-possession"},j5t={class:"productivity__body__title"},U5t={class:"productivity__body__title__info"},G5t={class:"number-of-categories"},H5t={class:"productivity__body__categories"},W5t={class:"productivity__body__title"},q5t={class:"productivity__body__title__info"},Y5t={class:"number-of-categories"},X5t={class:"productivity__body__categories"},Z5t={class:"productivity__footer"},J5t={class:"productivity__footer__offenses"},K5t=m_(()=>t.createElementVNode("div",{class:"productivity__footer__offenses__title"}," ¿Debemos quitarle puntos a jugadores que hayan cometido las siguientes infracciones? ",-1)),Q5t={class:"productivity__footer__offenses__table"},e4t=m_(()=>t.createElementVNode("div",{class:"productivity__footer__offenses__table__row"},[t.createElementVNode("div"),t.createElementVNode("div",null,"Si"),t.createElementVNode("div",null,"No")],-1)),t4t={class:"productivity__footer__offenses__table__row has-bottom-border has-padding"},a4t=m_(()=>t.createElementVNode("div",{class:"productivity__footer__offenses__table__row__text"},"Faltas cometidas",-1)),n4t={class:"productivity__footer__offenses__table__row has-bottom-border has-padding"},r4t=m_(()=>t.createElementVNode("div",{class:"productivity__footer__offenses__table__row__text"},"Tarjetas amarillas",-1)),i4t={class:"productivity__footer__offenses__table__row has-padding"},o4t=m_(()=>t.createElementVNode("div",{class:"productivity__footer__offenses__table__row__text"},"Tarjetas rojas",-1)),s4t={__name:"TemplateProductivity",props:{componentWidth:{type:Number,default:0},productivityCategories:{type:Object,required:!0},numberOfCategoriesSelected:{type:Number,default:0},areMaxCategoriesReached:{type:Boolean,default:!1},isExpansionMode:{type:Boolean,default:!1},fontFamily:{type:String,default:"'Poppins-Regular'"}},emits:["update:offensesConditions"],setup(e,{emit:r}){const i=e,B=t.ref(!1),D=t.ref(!1),c=t.ref(!1),m=t.ref({areYellowCardsSelected:!1,areRedCardsSelected:!1,areFoulsCommittedSelected:!1}),a=t.computed(()=>({"--template-columns":i.isExpansionMode?"1fr":"1fr 1fr"})),y=t.computed(()=>i.productivityCategories.offensive.categories.reduce((p,l)=>(l.isSelected&&p++,p),0)),f=t.computed(()=>i.productivityCategories.defensive.categories.reduce((p,l)=>(l.isSelected&&p++,p),0)),n=t.computed(()=>i.productivityCategories.possession.categories.reduce((p,l)=>(l.isSelected&&p++,p),0));t.watch(()=>i.productivityCategories,p=>{m.value.areYellowCardsSelected=p.offensesConditions.areYellowCardsSelected,m.value.areRedCardsSelected=p.offensesConditions.areRedCardsSelected,m.value.areFoulsCommittedSelected=p.offensesConditions.areFoulsCommittedSelected},{deep:!0,immediate:!0}),t.watch(m,p=>{r("update:offensesConditions",p)},{deep:!0,immediate:!0});function v(p,l){l.isSelected=p,setTimeout(()=>{l.priority=i.numberOfCategoriesSelected},10)}function _(p){p==="offensive"?B.value=!B.value:p==="defensive"?D.value=!D.value:p==="possession"&&(c.value=!c.value)}return(p,l)=>(t.openBlock(),t.createElementBlock("div",O5t,[t.createElementVNode("div",{class:"productivity__body",style:t.normalizeStyle(a.value)},[t.createElementVNode("div",F5t,[t.createElementVNode("div",L5t,[t.createElementVNode("div",D5t,[t.createElementVNode("span",null,t.toDisplayString(e.productivityCategories.offensive.title),1),t.createElementVNode("span",R5t,"("+t.toDisplayString(y.value)+")",1)]),t.createElementVNode("div",{class:"productivity__body__title__expand-button",onClick:l[0]||(l[0]=o=>_("offensive"))},[t.withDirectives(t.createVNode(x1,{"is-expanded":B.value},null,8,["is-expanded"]),[[t.vShow,e.isExpansionMode]])])]),t.withDirectives(t.createElementVNode("div",V5t,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.productivityCategories.offensive.categories,o=>(t.openBlock(),t.createElementBlock("div",{key:o.id,class:"productivity__checkbox"},[t.createVNode(t.unref(Is),{label:o.name,fontFamily:e.fontFamily,"model-value":o.isSelected,"avoid-to-check":e.areMaxCategoriesReached,"box-value":o.priority||0,"onUpdate:modelValue":s=>v(s,o)},null,8,["label","fontFamily","model-value","avoid-to-check","box-value","onUpdate:modelValue"])]))),128))],512),[[t.vShow,!e.isExpansionMode||B.value]])]),t.createElementVNode("div",$5t,[t.createElementVNode("div",j5t,[t.createElementVNode("div",U5t,[t.createElementVNode("span",null,t.toDisplayString(e.productivityCategories.defensive.title),1),t.createElementVNode("span",G5t,"("+t.toDisplayString(f.value)+")",1)]),t.createElementVNode("div",{class:"productivity__body__title__expand-button",onClick:l[1]||(l[1]=o=>_("defensive"))},[t.withDirectives(t.createVNode(x1,{"is-expanded":D.value},null,8,["is-expanded"]),[[t.vShow,e.isExpansionMode]])])]),t.withDirectives(t.createElementVNode("div",H5t,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.productivityCategories.defensive.categories,o=>(t.openBlock(),t.createElementBlock("div",{key:o.id,class:"productivity__checkbox"},[t.createVNode(t.unref(Is),{label:o.name,fontFamily:e.fontFamily,"model-value":o.isSelected,"avoid-to-check":e.areMaxCategoriesReached,"box-value":o.priority||0,"onUpdate:modelValue":s=>v(s,o)},null,8,["label","fontFamily","model-value","avoid-to-check","box-value","onUpdate:modelValue"])]))),128))],512),[[t.vShow,!e.isExpansionMode||D.value]]),t.createElementVNode("div",W5t,[t.createElementVNode("div",q5t,[t.createElementVNode("span",null,t.toDisplayString(e.productivityCategories.possession.title),1),t.createElementVNode("span",Y5t,"("+t.toDisplayString(n.value)+")",1)]),t.createElementVNode("div",{class:"productivity__body__title__expand-button",onClick:l[2]||(l[2]=o=>_("possession"))},[t.withDirectives(t.createVNode(x1,{"is-expanded":c.value},null,8,["is-expanded"]),[[t.vShow,e.isExpansionMode]])])]),t.withDirectives(t.createElementVNode("div",X5t,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.productivityCategories.possession.categories,o=>(t.openBlock(),t.createElementBlock("div",{key:o.id,class:"productivity__checkbox"},[t.createVNode(t.unref(Is),{label:o.name,fontFamily:e.fontFamily,"model-value":o.isSelected,"avoid-to-check":e.areMaxCategoriesReached,"box-value":o.priority||0,"onUpdate:modelValue":s=>v(s,o)},null,8,["label","fontFamily","model-value","avoid-to-check","box-value","onUpdate:modelValue"])]))),128))],512),[[t.vShow,!e.isExpansionMode||c.value]])])],4),t.createElementVNode("div",Z5t,[t.createElementVNode("div",J5t,[K5t,t.createElementVNode("div",Q5t,[e4t,t.createElementVNode("div",t4t,[a4t,t.createElementVNode("div",null,[t.createVNode(t.unref(Is),{"model-value":m.value.areFoulsCommittedSelected,"avoid-interaction":m.value.areFoulsCommittedSelected,"is-box-only":"","onUpdate:modelValue":l[3]||(l[3]=o=>m.value.areFoulsCommittedSelected=o)},null,8,["model-value","avoid-interaction"])]),t.createElementVNode("div",null,[t.createVNode(t.unref(Is),{"model-value":!m.value.areFoulsCommittedSelected,"avoid-interaction":!m.value.areFoulsCommittedSelected,"is-box-only":"","onUpdate:modelValue":l[4]||(l[4]=o=>m.value.areFoulsCommittedSelected=!o)},null,8,["model-value","avoid-interaction"])])]),t.createElementVNode("div",n4t,[r4t,t.createElementVNode("div",null,[t.createVNode(t.unref(Is),{"model-value":m.value.areYellowCardsSelected,"avoid-interaction":m.value.areYellowCardsSelected,"is-box-only":"","onUpdate:modelValue":l[5]||(l[5]=o=>m.value.areYellowCardsSelected=o)},null,8,["model-value","avoid-interaction"])]),t.createElementVNode("div",null,[t.createVNode(t.unref(Is),{"model-value":!m.value.areYellowCardsSelected,"avoid-interaction":!m.value.areYellowCardsSelected,"is-box-only":"","onUpdate:modelValue":l[6]||(l[6]=o=>m.value.areYellowCardsSelected=!o)},null,8,["model-value","avoid-interaction"])])]),t.createElementVNode("div",i4t,[o4t,t.createElementVNode("div",null,[t.createVNode(t.unref(Is),{"model-value":m.value.areRedCardsSelected,"avoid-interaction":m.value.areRedCardsSelected,"is-box-only":"","onUpdate:modelValue":l[7]||(l[7]=o=>m.value.areRedCardsSelected=o)},null,8,["model-value","avoid-interaction"])]),t.createElementVNode("div",null,[t.createVNode(t.unref(Is),{"model-value":!m.value.areRedCardsSelected,"avoid-interaction":!m.value.areRedCardsSelected,"is-box-only":"","onUpdate:modelValue":l[8]||(l[8]=o=>m.value.areRedCardsSelected=!o)},null,8,["model-value","avoid-interaction"])])])])])])]))}},l4t=ml(s4t,[["__scopeId","data-v-4df743e3"]]),g4=e=>(t.pushScopeId("data-v-9a3af80d"),e=e(),t.popScopeId(),e),c4t={class:"details__header"},u4t=g4(()=>t.createElementVNode("div",{class:"details__header__title"},"Jugando como",-1)),d4t={class:"details__header__checkbox"},h4t={class:"details__body"},p4t={class:"details__body__playing-as"},f4t=["onClick"],m4t={class:"details__header"},g4t=g4(()=>t.createElementVNode("div",{class:"details__header__title"},[t.createTextVNode(" En: "),t.createElementVNode("span",{class:"details__header__title-sm"},"(Elige el lapso de tiempo)")],-1)),y4t={class:"details__header__checkbox"},v4t={class:"details__body"},_4t=g4(()=>t.createElementVNode("div",{class:"details__body__title"},"1er tiempo",-1)),b4t={class:"details__body__game-section"},x4t=["onClick"],w4t={class:"details__body"},k4t=g4(()=>t.createElementVNode("div",{class:"details__body__title"},"2do tiempo",-1)),C4t={class:"details__body__game-section"},S4t=["onClick"],T4t={__name:"TemplateDetails",props:{isPlayingAsHidden:{type:Boolean,default:!1},playingAs:{type:Array,default:()=>[{name:"Local",isSelected:!0},{name:"Visitante",isSelected:!0}]},gameSections:{type:Array,default:()=>[{text:"0-15",value:1,isSelected:!0},{text:"16-30",value:2,isSelected:!0},{text:"31-45",value:3,isSelected:!0},{text:"46-60",value:4,isSelected:!0},{text:"61-75",value:5,isSelected:!0},{text:"76-90",value:6,isSelected:!0}]},fontFamily:{type:String,default:"'Poppins-Regular'"},buttonsBackgroundColor:{type:String,default:"rgba(255, 255, 255, 0)"},buttonsBackgroundColorActive:{type:String,default:"rgba(203, 238, 107, 0.05)"},buttonsTextColor:{type:String,default:"rgba(255, 255, 255, 0.8)"},buttonsTextColorActive:{type:String,default:"rgba(255, 255, 255, 1)"},buttonsBorderColor:{type:String,default:"#8ea2ab"},buttonsBorderColorActive:{type:String,default:"#cbee6b"},buttonsBorderWidth:{type:String,default:"0.8px"},buttonsBorderWidthActive:{type:String,default:"1px"},buttonsBorderRadius:{type:String,default:"4px"}},setup(e){const r=e;t.useCssVars(n=>({"35aa5eb4":e.buttonsBackgroundColor,"7765f8c7":e.buttonsTextColor,"5b6eef4b":e.buttonsBorderWidth,"5a57f0e8":e.buttonsBorderColor,a0a4b168:e.buttonsBackgroundColorActive,"349872ad":e.buttonsTextColorActive,76477631:e.buttonsBorderWidthActive,"39de0e0e":e.buttonsBorderColorActive}));const i=t.computed(()=>r.playingAs.every(n=>n.isSelected)),B=t.computed(()=>r.gameSections.every(n=>n.isSelected)),D=t.computed(()=>r.gameSections.reduce((n,v)=>(v.value<=3?n.firstHalf.push(v):n.secondHalf.push(v),n),{firstHalf:[],secondHalf:[]})),c=t.computed(()=>({"--border-radius-first-button":`${r.buttonsBorderRadius} 0 0 ${r.buttonsBorderRadius}`,"--border-radius-last-button":`0 ${r.buttonsBorderRadius} ${r.buttonsBorderRadius} 0`}));function m(n){n?r.playingAs.forEach(v=>{v.isSelected=!0}):r.playingAs.forEach((v,_)=>{v.isSelected=_===0})}function a(n){r.playingAs.filter(v=>v.isSelected).length===1&&n.isSelected||(n.isSelected=!n.isSelected)}function y(n){r.gameSections.filter(v=>v.isSelected).length===1&&n.isSelected||(n.isSelected=!n.isSelected)}function f(n){n?r.gameSections.forEach(v=>{v.isSelected=!0}):r.gameSections.forEach((v,_)=>{v.isSelected=_===0})}return(n,v)=>(t.openBlock(),t.createElementBlock("div",{class:"details",style:t.normalizeStyle(c.value)},[t.withDirectives(t.createElementVNode("div",c4t,[u4t,t.createElementVNode("div",d4t,[t.createVNode(t.unref(Is),{label:"Todos",fontFamily:e.fontFamily,"model-value":i.value,"onUpdate:modelValue":m},null,8,["fontFamily","model-value"])])],512),[[t.vShow,!e.isPlayingAsHidden]]),t.withDirectives(t.createElementVNode("div",h4t,[t.createElementVNode("div",p4t,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r.playingAs,(_,p)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${p}`,class:t.normalizeClass(["details__body__button",{active:_.isSelected}]),onClick:l=>a(_)},t.toDisplayString(_.name),11,f4t))),128))])],512),[[t.vShow,!e.isPlayingAsHidden]]),t.createElementVNode("div",m4t,[g4t,t.createElementVNode("div",y4t,[t.createVNode(t.unref(Is),{label:"Todos",fontFamily:e.fontFamily,"model-value":B.value,"onUpdate:modelValue":f},null,8,["fontFamily","model-value"])])]),t.createElementVNode("div",v4t,[_4t,t.createElementVNode("div",b4t,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(D.value.firstHalf,(_,p)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${p}`,class:t.normalizeClass(["details__body__button",{active:_.isSelected}]),onClick:l=>y(_)},t.toDisplayString(_.text),11,x4t))),128))])]),t.createElementVNode("div",w4t,[k4t,t.createElementVNode("div",C4t,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(D.value.secondHalf,(_,p)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${p}`,class:t.normalizeClass(["details__body__button",{active:_.isSelected}]),onClick:l=>y(_)},t.toDisplayString(_.text),11,S4t))),128))])])],4))}},E4t=ml(T4t,[["__scopeId","data-v-9a3af80d"]]),A4t={class:"scroll-container"},M4t={__name:"ScrollContainer",props:{width:{type:String,default:"100%"},height:{type:String,default:"100%"}},setup(e){return t.useCssVars(r=>({"6aab424d":e.height,39848040:e.width})),(r,i)=>(t.openBlock(),t.createElementBlock("div",A4t,[t.renderSlot(r.$slots,"default",{},void 0,!0)]))}},LH=ml(M4t,[["__scopeId","data-v-218f5976"]]),I4t={class:"tournaments"},P4t={class:"tournaments__tournament"},B4t={__name:"TemplateTournaments",props:{tournaments:{type:Array,default:()=>[]},fontFamily:{type:String,default:"'Poppins-Regular'"}},emits:["change-filters-selected","update:filters"],setup(e,{emit:r}){const i=e,B=t.ref(!1),D=t.computed(()=>i.tournaments.filter(m=>m.isSelected).length);t.watch(()=>i.tournaments,m=>{const a=m.filter(y=>y.isSelected);B.value=a.length===m.length,r("change-filters-selected",a.length),r("update:filters",i.tournaments)},{immediate:!0,deep:!0});function c(m){i.tournaments.forEach((a,y)=>{a.isSelected=m||(y!==0?m:!0)})}return(m,a)=>(t.openBlock(),t.createElementBlock("div",I4t,[t.createVNode(LH,{height:"200px"},{default:t.withCtx(()=>[t.createElementVNode("div",P4t,[t.createVNode(t.unref(Is),{"model-value":B.value,label:"Todas las ligas",fontFamily:e.fontFamily,width:"100%","onUpdate:modelValue":c},null,8,["model-value","fontFamily"])]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.tournaments,y=>(t.openBlock(),t.createElementBlock("div",{key:y.id||y._id,class:"tournaments__tournament"},[t.createVNode(t.unref(Is),{modelValue:y.isSelected,"onUpdate:modelValue":f=>y.isSelected=f,label:y.name,fontFamily:e.fontFamily,width:"100%","avoid-interaction":D.value===1&&y.isSelected},null,8,["modelValue","onUpdate:modelValue","label","fontFamily","avoid-interaction"])]))),128))]),_:1})]))}},N4t=ml(B4t,[["__scopeId","data-v-590d8ab3"]]),er={PLAYS:"plays",PRODUCTIVITY:"productivity",FIELD:"field",UNIVERSE:"universe",DETAILS:"details",TOURNAMENTS:"tournaments",PERSONAL_DATA:"personalData",PLAYS_TYPES:"playsTypes",GOLSTATS:"golstats",DISTANCE:"distance",RESULTS:"results",RESULTS_BY_TIME:"resultsByTime",VIDEOS:"videos",GAMES:"games",TAKEN_CORNERS:"takenCorners",HOW_WAS_CORNER:"howWasCorner",ZONE:"zone",WHAT_HAPPENED:"whatHappened"},z4t={key:0,class:"plays-golstats__placeholder"},O4t=["onClick"],F4t={key:0,class:"plays-golstats__item__value"},L4t={class:"plays-golstats__item__text"},D4t={class:"plays-golstats__item__svg"},R4t={width:"10",height:"8",viewBox:"0 0 10 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},V4t=["fill"],$4t={__name:"TemplatePlaysTypeAndGolstats",props:{height:{type:String,default:"fit-content"},type:{type:String,default:""},categories:{type:Array,default:()=>[]},svgColor:{type:String,default:"#CBEE6B"},svgWidth:{type:Number,default:10},svgHeight:{type:Number,default:8}},emits:["change-filters-selected","update:filters"],setup(e,{emit:r}){const i=e,B=t.computed(()=>({"--grid-template-columns":i.type===er.PLAYS_TYPES?"1fr min-content":"min-content 1fr min-content","--svg-width":`${i.svgWidth}px`,"--svg-height":`${i.svgHeight}px`}));t.watch(()=>i.categories,c=>{const m=c.filter(a=>a.isSelected);r("update:filters",m)},{immediate:!0,deep:!0});function D(c){c.isSelected||(i.categories.forEach(m=>{m.isSelected=!1}),c.isSelected=!0,i.type===er.GOLSTATS&&r("change-filters-selected",c.value))}return(c,m)=>(t.openBlock(),t.createElementBlock("div",{class:"plays-golstats",style:t.normalizeStyle(B.value)},[t.createVNode(LH,{height:e.height},{default:t.withCtx(()=>[e.type===t.unref(er).PLAYS_TYPES?(t.openBlock(),t.createElementBlock("div",z4t," Elige un tipo de jugada para filtrar: ")):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.categories,(a,y)=>(t.openBlock(),t.createElementBlock("div",{key:`k${y}`,class:"plays-golstats__item",onClick:f=>D(a)},[e.type===t.unref(er).GOLSTATS?(t.openBlock(),t.createElementBlock("div",F4t,t.toDisplayString(a.value),1)):t.createCommentVNode("",!0),t.createElementVNode("div",L4t,t.toDisplayString(a.name),1),t.createElementVNode("div",D4t,[t.withDirectives((t.openBlock(),t.createElementBlock("svg",R4t,[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,V4t)],512)),[[t.vShow,a.isSelected]])])],8,O4t))),128))]),_:1},8,["height"])],4))}},DH=ml($4t,[["__scopeId","data-v-af3c1673"]]),j4t=(e,r)=>{const i=e.__vccOpts||e;for(const[B,D]of r)i[B]=D;return i},fE={props:{textRight:{type:String,default:""},textRightColor:{type:String,default:"#FFFFFF"},textRightFontFamily:{type:String,default:"Poppins-Regular"},textRightFontSize:{type:String,default:"13px"},placeholder:{type:String,default:"Ingresar valor"},value:String,inputType:{type:String,default:"text"},width:{type:String,default:"100%"},height:{type:String,default:"30px"},backgroundColor:{type:String,default:"#2e3b46"},borderRadius:{type:String,default:"10px"},border:{type:String,default:"1px solid #bdc1c4"},color:{type:String,default:"#FFFFFF"},placeholderColor:{type:String,default:"#bdc1c4"},font:{type:String,default:"Poppins-Regular"},fontSize:{type:String,default:"13px"},padding:{type:String,default:"11px"},isNumbersOnly:{type:Boolean,default:!1}},computed:{inputStyle(){return{width:this.width,height:this.height,backgroundColor:this.backgroundColor,borderRadius:this.borderRadius,border:this.border,color:this.color,fontFamily:this.font,fontSize:this.fontSize,placeholderColor:this.placeholderColor,paddingLeft:this.padding}}},methods:{updateInputValue(e){this.$emit("inputval",e.target.value)},onKeyDown(e){if(this.isNumbersOnly){const r=e.which?e.which:e.keyCode();r>31&&(r<48||r>57)&&e.preventDefault()}}}},RH=()=>{t.useCssVars(e=>({"53e1855a":e.textRightColor,da8ee600:e.textRightFontSize,"9fb876ba":e.textRightFontFamily}))},VH=fE.setup;fE.setup=VH?(e,r)=>(RH(),VH(e,r)):RH;const U4t={class:"input-container"},G4t=["type","placeholder","value"],H4t={class:"right-text"};function W4t(e,r,i,B,D,c){return t.openBlock(),t.createElementBlock("div",U4t,[t.createElementVNode("input",{type:i.inputType,placeholder:i.placeholder,value:i.value,style:t.normalizeStyle(c.inputStyle),onKeydown:r[0]||(r[0]=(...m)=>c.onKeyDown&&c.onKeyDown(...m)),onInput:r[1]||(r[1]=(...m)=>c.updateInputValue&&c.updateInputValue(...m))},null,44,G4t),t.createElementVNode("div",H4t,t.toDisplayString(i.textRight),1)])}const $H=j4t(fE,[["render",W4t],["__scopeId","data-v-b73049e7"]]),q4t=(e,r)=>{const i=e.__vccOpts||e;for(const[B,D]of r)i[B]=D;return i},mE={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))}}},jH=()=>{t.useCssVars(e=>({"1c960139":e.height,b2f635d8:e.borderWidthBtn,"06e99898":e.borderType,"55555c76":e.borderColor,"23b6d320":e.borderRadius,"22c97374":e.width,"22bb09fa":e.backgroundColor,c148da7c:e.cursorType,cce756fc:e.fontSize,cff98d60:e.fontStyle,"5123b3a5":e.fontFamily,"47bf58db":e.marginLeftStat,cadc8414:e.fontSizeStat}))},UH=mE.setup;mE.setup=UH?(e,r)=>(jH(),UH(e,r)):jH;const Y4t=e=>(t.pushScopeId("data-v-fb269a1e"),e=e(),t.popScopeId(),e),X4t=["src"],Z4t={key:1,class:"text"},J4t=["src"],K4t={class:"stats"},Q4t=Y4t(()=>t.createElementVNode("img",{class:"iconstats",src:"https://az755631.vo.msecnd.net/todoelfut/playdes.png"},null,-1)),e6t={class:"numstats"},t6t={class:"leyend"};function a6t(e,r,i,B,D,c){return t.openBlock(),t.createElementBlock("div",null,[i.type==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["button",D.status&&i.typeOnOff&&"button-active"]),style:t.normalizeStyle([c.customStyle,D.status&&i.typeOnOff&&c.customActive]),onClick:r[0]||(r[0]=(...m)=>c.btnClick&&c.btnClick(...m))},[i.icon&&i.iconPosition.toLowerCase()==="left"?(t.openBlock(),t.createElementBlock("img",{key:0,class:"icon",style:t.normalizeStyle({width:i.iconSize}),src:i.icon},null,12,X4t)):t.createCommentVNode("",!0),i.textValue?(t.openBlock(),t.createElementBlock("div",Z4t,t.toDisplayString(i.textValue),1)):t.createCommentVNode("",!0),i.icon&&i.iconPosition.toLowerCase()==="right"?(t.openBlock(),t.createElementBlock("img",{key:2,class:"icon",style:t.normalizeStyle({width:i.iconSize}),src:i.icon},null,12,J4t)):t.createCommentVNode("",!0)],6)):t.createCommentVNode("",!0),i.type==1?(t.openBlock(),t.createElementBlock("div",{key:1,class:"button-target",onClick:r[1]||(r[1]=(...m)=>c.btnClick&&c.btnClick(...m))},[t.createElementVNode("div",K4t,[Q4t,t.createElementVNode("div",e6t,t.toDisplayString(i.textStat),1)]),t.createElementVNode("div",t6t,t.toDisplayString(i.textCategory),1)])):t.createCommentVNode("",!0)])}const n6t=q4t(mE,[["render",a6t],["__scopeId","data-v-fb269a1e"]]),r6t={class:"gsc-dropdown__main-container__item-selected"},i6t=["height","width"],o6t=["stroke"],s6t={class:"gsc-dropdown__items-container"},l6t=["onClick"],c6t={key:0,class:"gsc-dropdown__items-footer"},d0={__name:"GSC-Dropdown",props:{modelValue:{type:[Object,Number,String],default:()=>null},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},fontSize:{type:String,default:"14px"},borderRadius:{type:Number,default:5},arrowHeight:{type:Number,default:24},arrowWidth:{type:Number,default:24},borderType:{type:String,default:"solid",validator:function(e){return["solid","dotted","dashed"].includes(e)}},borderWidth:{type:Number,default:1},borderColor:{type:String,default:"black"},backgroundColor:{type:String,default:"grey"},color:{type:String,default:"black"},arrowColor:{type:String,default:"#CBEE6B"},items:{type:Array,default:()=>[]},defaultItemByIndex:{type:Number,default:0},defaultItemByProp:{type:Object,default:null,validator:e=>["propName","value"].every(r=>r in e)},listBackgroundColor:{type:String,default:"white"},hoverBackgroundColor:{type:String,default:"#f1f1f1"},listItemPadding:{type:String,default:"10px 12px"},listHeight:{type:String,default:"fit-content"},listItemSelectedColor:{type:String,default:"white"},listItemSelectedBackgroundColor:{type:String,default:"#399cfd"},listItemColor:{type:String,default:"black"},listBorderRadius:{type:String,default:"0"},listBorderColor:{type:String,default:""},listBorderWidth:{type:Number,default:1},isListSameWidth:{type:Boolean,default:!1},isMultipleOption:{type:Boolean,default:!1},footerBorderColor:{type:String,default:"#626970"},footerBorderWidth:{type:Number,default:1},isFooterVisible:{type:Boolean,default:!1},isDisabled:{type:Boolean,default:!1},onlyFirstTime:{type:Boolean,default:!1}},emits:["input","click-ready","update:modelValue"],setup(e,{emit:r}){const i=e,B=t.ref({}),D=t.ref(null),c=t.ref(i.isMultipleOption?-1:0),m=t.ref(!1);t.watch(()=>i.items,(p,l)=>{if(!i.modelValue&&(!i.onlyFirstTime||!l||!l.length)&&p&&p.length){if(i.defaultItemByProp){const o=i.items.findIndex(s=>s[i.defaultItemByProp.propName]===i.defaultItemByProp.value);o!==-1?(c.value=o,B.value=p[o]):(c.value=0,B.value=p[0])}else B.value=p[i.defaultItemByIndex];r("input",B.value)}},{immediate:!0}),t.watch(()=>i.modelValue,p=>{if(p){const l=i.items.findIndex(o=>typeof p=="object"?JSON.stringify(o)===JSON.stringify(p):o===p);l!==-1&&(c.value=l,B.value=i.items[l],r("update:modelValue",B.value))}},{immediate:!0});const a=t.computed(()=>({height:i.height,width:i.width,backgroundColor:i.backgroundColor,borderRadius:`${i.borderRadius}px`,border:`${i.borderType} ${i.borderWidth}px ${i.borderColor}`,color:i.color,"--hover-background-color":i.hoverBackgroundColor,"--list-item-padding":i.listItemPadding,"--list-background-color":i.listBackgroundColor,"--list-height":i.listHeight,"--list-item-selected-color":i.listItemSelectedColor,"--list-item-selected-background-color":i.listItemSelectedBackgroundColor,"--list-item-color":i.listItemColor,"--list-border-radius":`${i.listBorderRadius}`,"--list-border-color":i.listBorderColor,"--list-width":i.isListSameWidth?i.width:"fit-content","--list-border-width":`${i.listBorderWidth}px`,"--footer-border":`${i.footerBorderWidth}px solid ${i.footerBorderColor}`,"--dropdown-opacity":i.isDisabled?"0.5":"1","--dropdown-cursor":i.isDisabled?"not-allowed":"pointer","--dropdown-font-size":i.fontSize?i.fontSize:"14px"})),y=t.computed(()=>({height:`${i.arrowHeight}px`,width:`${i.arrowWidth}px`}));function f(){i.isDisabled||(m.value=!m.value)}function n(p){D.value&&!D.value.contains(p.target)&&(m.value=!1)}function v(p,l){i.isMultipleOption?c.value=-1:(c.value=l,m.value=!1),B.value=p,r("input",B.value),r("update:modelValue",B.value)}function _(){m.value=!1,r("click-ready")}return t.onMounted(()=>{document.addEventListener("click",n)}),t.onBeforeMount(()=>{document.removeEventListener("click",n)}),(p,l)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"dropDown",ref:D,class:"gsc-dropdown",style:t.normalizeStyle(a.value)},[t.createElementVNode("div",{class:"gsc-dropdown__main-container",style:t.normalizeStyle({"padding-right":`${e.arrowWidth+8}px`}),onClick:f},[t.createElementVNode("div",r6t,[t.renderSlot(p.$slots,"default",{selectedItem:B.value})]),t.createElementVNode("div",{class:t.normalizeClass(["gsc-dropdown__main-container__icon",{"rotated-180":m.value}]),style:t.normalizeStyle(y.value)},[(t.openBlock(),t.createElementBlock("svg",{height:e.arrowHeight,width:e.arrowWidth,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M18.394 9.13501L13.1302 14.3988C12.5086 15.0204 11.4914 15.0204 10.8697 14.3988L5.60596 9.13501",stroke:e.arrowColor},null,8,o6t)],8,i6t))],6)],4),t.createVNode(t.Transition,null,{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("div",s6t,[t.createElementVNode("div",null,[t.createElementVNode("div",{class:"gsc-dropdown__items",style:t.normalizeStyle({"margin-top":`${i.borderWidth}px`})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(o,s)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["gsc-dropdown__items__item",{selected:s===c.value}]),key:s,onClick:d=>v(o,s)},[t.renderSlot(p.$slots,"availableItem",{item:o})],10,l6t))),128))],4),e.isFooterVisible?(t.openBlock(),t.createElementBlock("div",c6t,[t.createVNode(t.unref(n6t),{"text-value":"Listo","border-color":"#cbee6b","font-size":"12px",width:"72px",height:"22px","border-radius":"62px","border-width":.8,onClick:_})])):t.createCommentVNode("",!0)])],512),[[t.vShow,m.value]])]),_:3})],4))}},g_={borderType:"solid",listBackgroundColor:"#2E3B46",listBorderColor:"rgba(255, 255, 255, 0.2)",listBorderRadius:"5px",height:"38px",borderWidth:.8,borderColor:"white",backgroundColor:"#2E3B46",color:"white",listItemColor:"white",listItemSelectedBackgroundColor:"#2E3B46",arrowColor:"#fff",width:"100%",listHeight:"200px",isListSameWidth:!0,isFooterVisible:!0,hoverBackgroundColor:"#2E3B46"},jy=e=>(t.pushScopeId("data-v-b1fc2fa6"),e=e(),t.popScopeId(),e),u6t={class:"universe"},d6t=jy(()=>t.createElementVNode("div",{class:"universe__sub-header"},"Escribe los minutos jugados",-1)),h6t=jy(()=>t.createElementVNode("div",{class:"universe__label"},"Igual o mayor que:",-1)),p6t={class:"universe__inputs"},f6t={class:"universe__inputs__input"},m6t={class:"universe__inputs__checkbox"},g6t=jy(()=>t.createElementVNode("div",{class:"universe__sub-header"},"Escribe el % de minutos jugados contra el total posible",-1)),y6t=jy(()=>t.createElementVNode("div",{class:"universe__label"},"Mayor que:",-1)),v6t={class:"universe__inputs"},_6t={class:"universe__inputs__input"},b6t={class:"universe__inputs__checkbox"},x6t=jy(()=>t.createElementVNode("div",{class:"universe__sub-header"},"Selecciona el lapso de tiempo",-1)),w6t=jy(()=>t.createElementVNode("div",{class:"universe__label"},"Considerando los últimos:",-1)),k6t={class:"universe__dropdown"},C6t={class:"selected-item"},GH=11,S6t={__name:"TemplateUniverse",props:{universeFilters:{type:Object,default:()=>({minutesPlayed:0,percentMinutesPlayed:0,lastMonths:Array.from({length:24},(e,r)=>r+1),statistics:{totals:!0,averagePerGame:!1,averagePerMinute:!1}})},fontFamily:{type:String,default:"'Poppins-Regular'"}},emits:["update:universeFilters"],setup(e,{expose:r,emit:i}){const B=e,D=t.ref(!1),c=t.ref(!1),m=t.ref(!1),a=t.ref({statistics:{}});t.watch(()=>B.universeFilters,p=>{a.value={...p,lastMonths:p.selectedMonth?p.selectedMonth:p.lastMonths[GH],statistics:{...p.statistics}}},{deep:!0,immediate:!0}),t.watch(()=>a,p=>{D.value=!p.value.minutesPlayed||Number(p.value.minutesPlayed)===0,c.value=!p.value.percentMinutesPlayed||Number(p.value.percentMinutesPlayed)===0,m.value=!p.value.lastMonths||Number(p.value.lastMonths)===0,i("update:universeFilters",p)},{deep:!0,immediate:!0});function y(p){a.value.minutesPlayed=p}function f(p){a.value.percentMinutesPlayed=p}function n(p,l){switch(l){case"minutes":D.value=p,p&&(a.value.minutesPlayed=0);break;case"percent":c.value=p,p&&(a.value.percentMinutesPlayed=0);break;case"months":m.value=p,p&&(a.value.lastMonths=0);break}}function v(){a.value={...B.universeFilters,lastMonths:B.universeFilters.lastMonths[GH],statistics:{...B.universeFilters.statistics}}}function _(p){a.value.lastMonths=p}return r({resetFilters:v}),(p,l)=>(t.openBlock(),t.createElementBlock("div",u6t,[d6t,h6t,t.createElementVNode("div",p6t,[t.createElementVNode("div",f6t,[t.createVNode(t.unref($H),{value:a.value.minutesPlayed,type:"text",inputmode:"numeric","border-radius":"4px",border:"solid 0.8px #8ea2ab","text-right":"Min","is-numbers-only":"",onInputval:y},null,8,["value"])]),t.createElementVNode("div",m6t,[t.createVNode(t.unref(Is),{modelValue:D.value,label:"Indistinto",fontFamily:e.fontFamily,"box-position":"right","onUpdate:modelValue":l[0]||(l[0]=o=>n(o,"minutes"))},null,8,["modelValue","fontFamily"])])]),g6t,y6t,t.createElementVNode("div",v6t,[t.createElementVNode("div",_6t,[t.createVNode(t.unref($H),{value:a.value.percentMinutesPlayed,"input-type":"number","border-radius":"4px",border:"solid 0.8px #8ea2ab","text-right":"%","is-numbers-only":"",onInputval:f},null,8,["value"])]),t.createElementVNode("div",b6t,[t.createVNode(t.unref(Is),{modelValue:c.value,label:"Indistinto",fontFamily:e.fontFamily,"box-position":"right","onUpdate:modelValue":l[1]||(l[1]=o=>n(o,"percent"))},null,8,["modelValue","fontFamily"])])]),x6t,w6t,t.createElementVNode("div",k6t,[t.createVNode(t.unref(d0),t.mergeProps(t.unref(g_),{items:e.universeFilters.lastMonths,"model-value":a.value.lastMonths,onInput:_}),{default:t.withCtx(({selectedItem:o})=>[t.createElementVNode("div",C6t,t.toDisplayString(o)+" "+t.toDisplayString(o===1?"mes":"meses"),1)]),availableItem:t.withCtx(({item:o})=>[t.createElementVNode("div",null,t.toDisplayString(o)+" "+t.toDisplayString(o===1?"mes":"meses"),1)]),_:1},16,["items","model-value"])]),t.createCommentVNode("",!0),t.createCommentVNode("",!0)]))}},T6t=ml(S6t,[["__scopeId","data-v-b1fc2fa6"]]),HH=(e,r)=>{const i=e.__vccOpts||e;for(const[B,D]of r)i[B]=D;return i},E6t={name:"MultiRangeSlider",props:{baseClassName:{type:String,default:"multi-range-slider"},min:{type:Number},max:{type:Number},minValue:{type:Number},maxValue:{type:Number},step:{type:Number,default:1},preventWheel:{type:Boolean,default:!1},ruler:{type:Boolean,default:!0},label:{type:Boolean,default:!0},labels:{type:Array},minCaption:{type:String},maxCaption:{type:String},rangeMargin:{type:Number}},data(){let e=this.labels||[],r=this.min===void 0?0:this.min,i=e.length?e.length-1:100,B=this.max===void 0?i:this.max,D=this.minValue===void 0?25:this.minValue;e.length&&this.minValue===void 0&&(D=1);let c=this.maxValue||75;if(e.length&&this.maxValue===void 0&&(c=e.length-2),B<=r)throw new Error("Invalid props min or max");if(D>c)throw new Error("Invalid props minValue or maxValue");let m=this.rangeMargin===void 0?this.step:this.rangeMargin,a=m%this.step;return a&&(m=m+this.step-a),{valueMin:D<r?r:D,valueMax:c>B?B:c,interVal:null,startX:null,mouseMoveCounter:null,barBox:null,barValue:0,rangeMarginValue:m}},methods:{onBarLeftClick(){this.valueMin-this.step>=this.minimum?this.valueMin-=this.step:this.valueMin=this.minimum},onInnerBarLeftClick(){this.valueMin+this.rangeMarginValue<this.valueMax&&(this.valueMin+=this.step)},onBarRightClick(){this.valueMax+this.step<=this.maximum?this.valueMax+=this.step:this.valueMax=this.maximum},onInnerBarRightClick(){this.valueMax-this.rangeMarginValue>this.valueMin&&(this.valueMax-=this.step)},onInputMinChange(e){let r=parseFloat(e.target.value);r<=this.valueMax-this.rangeMarginValue&&r>=this.minimum?this.valueMin=r:e.target.value=this.valueMin},onInputMaxChange(e){let r=parseFloat(e.target.value);r>=this.valueMin+this.rangeMarginValue&&r<=this.maximum?this.valueMax=r:e.target.value=this.valueMax},onLeftThumbMousedown(e){if(e.preventDefault(),this.startX=e.clientX,e.type==="touchstart")if(e.touches.length===1)this.startX=e.touches[0].clientX;else return;this.mouseMoveCounter=0,this.barValue=this.valueMin,this.barBox=e.target.parentNode.getBoundingClientRect(),document.addEventListener("mousemove",this.onLeftThumbMousemove),document.addEventListener("mouseup",this.onLeftThumbMouseup),document.addEventListener("touchmove",this.onLeftThumbMousemove),document.addEventListener("touchend",this.onLeftThumbMouseup)},onLeftThumbMousemove(e){this.mouseMoveCounter++;let r=e.clientX;e.type==="touchmove"&&(r=e.touches[0].clientX);let i=(r-this.startX)/this.barBox.width,B=this.barValue+(this.maximum-this.minimum)*i,D=B%this.step;B-=D,B<this.minimum?B=this.minimum:B>this.valueMax-this.rangeMarginValue&&(B=this.valueMax-this.rangeMarginValue),this.valueMin=B},onLeftThumbMouseup(){document.removeEventListener("mousemove",this.onLeftThumbMousemove),document.removeEventListener("mouseup",this.onLeftThumbMouseup),document.removeEventListener("touchmove",this.onLeftThumbMousemove),document.removeEventListener("touchend",this.onLeftThumbMouseup)},onRightThumbMousedown(e){if(e.preventDefault(),this.startX=e.clientX,e.type==="touchstart")if(e.touches.length===1)this.startX=e.touches[0].clientX;else return;this.mouseMoveCounter=0,this.barValue=this.valueMax,this.barBox=e.target.parentNode.getBoundingClientRect(),document.addEventListener("mousemove",this.onRightThumbMousemove),document.addEventListener("mouseup",this.onRightThumbMouseup),document.addEventListener("touchmove",this.onRightThumbMousemove),document.addEventListener("touchend",this.onRightThumbMouseup)},onRightThumbMousemove(e){this.mouseMoveCounter++;let r=e.clientX;e.type==="touchmove"&&(r=e.touches[0].clientX);let i=(r-this.startX)/this.barBox.width,B=this.barValue+(this.maximum-this.minimum)*i,D=B%this.step;B-=D,B<this.valueMin+this.rangeMarginValue?B=this.valueMin+this.rangeMarginValue:B>this.maximum&&(B=this.maximum),this.valueMax=B},onRightThumbMouseup(){document.removeEventListener("mousemove",this.onRightThumbMousemove),document.removeEventListener("mouseup",this.onRightThumbMouseup),document.removeEventListener("touchmove",this.onRightThumbMousemove),document.removeEventListener("touchend",this.onRightThumbMouseup)},onMouseWheel(e){if(this.preventWheel===!0||!e.shiftKey&&!e.ctrlKey)return;let r=this.step;e.deltaY<0&&(r=-r),e.shiftKey&&e.ctrlKey?this.valueMin+r>=this.minimum&&this.valueMax+r<=this.maximum&&(this.valueMin=this.valueMin+r,this.valueMax=this.valueMax+r):e.ctrlKey?(r=this.valueMax+r,r<this.valueMin+this.rangeMarginValue?r=this.valueMin+this.rangeMarginValue:r>this.maximum&&(r=this.maximum),this.valueMax=r):e.shiftKey&&(r=this.valueMin+r,r<this.minimum?r=this.minimum:r>this.valueMax-this.rangeMarginValue&&(r=this.valueMax-this.rangeMarginValue),this.valueMin=r)},triggerInput(){let e=0;this.step.toString().includes(".")&&(e=2);let r={min:this.minimum,max:this.maximum,minValue:parseFloat(this.valueMin.toFixed(e)),maxValue:parseFloat(this.valueMax.toFixed(e))};this.$emit("input",r)}},computed:{minimum(){return this.min===void 0?0:this.min},maximum(){let e=this.labels||[],r=e.length?e.length-1:100;return this.max===void 0?r:this.max},stepCount(){let e=this.labels||[];return e.length?e.length-1:Math.floor((this.maximum-this.minimum)/this.step)},subStepCount(){return(this.labels||[]).length&&this.step>1?(this.maximum-this.minimum)/this.step:0},barMin(){return(this.valueMin-this.minimum)/(this.maximum-this.minimum)*100},barMax(){return 100-(this.valueMax-this.minimum)/(this.maximum-this.minimum)*100},barMinVal(){let e=0;return this.step.toString().includes(".")&&(e=2),(this.valueMin||0).toFixed(e)},barMaxVal(){let e=0;return this.step.toString().includes(".")&&(e=2),(this.valueMax||100).toFixed(e)},scaleLabels(){let e=this.labels||[];return e.length===0&&(e=[],e.push(this.minimum),e.push(this.maximum)),e}},watch:{valueMin(){this.triggerInput()},valueMax(){this.triggerInput()},minValue(e){this.valueMin=e<this.minimum?this.minimum:e},maxValue(e){this.valueMax=e>this.maximum?this.maximum:e}},mounted(){}},A6t={class:"bar"},M6t=["min","max","step","value"],I6t={class:"caption"},P6t={class:"min-caption"},B6t={class:"bar-inner"},N6t=["min","max","step","value"],z6t={class:"caption"},O6t={class:"max-caption"},F6t={key:0,class:"ruler"},L6t={key:1,class:"sub-ruler"},D6t={key:2,class:"labels"};function R6t(e,r,i,B,D,c){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass([i.baseClassName,D.rangeMarginValue===0?"zero-ranage-margin":""]),onMousewheel:r[10]||(r[10]=t.withModifiers((...m)=>c.onMouseWheel&&c.onMouseWheel(...m),["prevent","stop"]))},[t.createElementVNode("div",A6t,[t.createElementVNode("div",{class:"bar-left",style:t.normalizeStyle({width:c.barMin+"%"}),onClick:r[0]||(r[0]=(...m)=>c.onBarLeftClick&&c.onBarLeftClick(...m))},null,4),t.createElementVNode("input",{class:"input-type-range input-type-range-min",type:"range",min:c.minimum,max:c.maximum,step:i.step,value:D.valueMin,onInput:r[1]||(r[1]=t.withModifiers((...m)=>c.onInputMinChange&&c.onInputMinChange(...m),["stop","prevent"]))},null,40,M6t),t.createElementVNode("div",{class:"thumb thumb-left",onMousedown:r[2]||(r[2]=(...m)=>c.onLeftThumbMousedown&&c.onLeftThumbMousedown(...m)),onTouchstart:r[3]||(r[3]=(...m)=>c.onLeftThumbMousedown&&c.onLeftThumbMousedown(...m))},[t.createElementVNode("div",I6t,[t.createElementVNode("span",P6t,t.toDisplayString(i.minCaption||c.barMinVal),1)])],32),t.createElementVNode("div",B6t,[t.createElementVNode("div",{class:"bar-inner-left",onClick:r[4]||(r[4]=(...m)=>c.onInnerBarLeftClick&&c.onInnerBarLeftClick(...m))}),t.createElementVNode("div",{class:"bar-inner-right",onClick:r[5]||(r[5]=(...m)=>c.onInnerBarRightClick&&c.onInnerBarRightClick(...m))})]),t.createElementVNode("input",{class:"input-type-range input-type-range-max",type:"range",min:c.minimum,max:c.maximum,step:i.step,value:D.valueMax,onInput:r[6]||(r[6]=t.withModifiers((...m)=>c.onInputMaxChange&&c.onInputMaxChange(...m),["stop","prevent"]))},null,40,N6t),t.createElementVNode("div",{class:"thumb thumb-right",onMousedown:r[7]||(r[7]=(...m)=>c.onRightThumbMousedown&&c.onRightThumbMousedown(...m)),onTouchstart:r[8]||(r[8]=(...m)=>c.onRightThumbMousedown&&c.onRightThumbMousedown(...m))},[t.createElementVNode("div",z6t,[t.createElementVNode("span",O6t,t.toDisplayString(i.maxCaption||c.barMaxVal),1)])],32),t.createElementVNode("div",{class:"bar-right",style:t.normalizeStyle({width:c.barMax+"%"}),onClick:r[9]||(r[9]=(...m)=>c.onBarRightClick&&c.onBarRightClick(...m))},null,4)]),i.ruler?(t.openBlock(),t.createElementBlock("div",F6t,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(c.stepCount,m=>(t.openBlock(),t.createElementBlock("div",{key:m,class:"ruler-rule"}))),128))])):t.createCommentVNode("",!0),c.subStepCount?(t.openBlock(),t.createElementBlock("div",L6t,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(c.subStepCount,m=>(t.openBlock(),t.createElementBlock("div",{key:m,class:"ruler-sub-rule"}))),128))])):t.createCommentVNode("",!0),i.label?(t.openBlock(),t.createElementBlock("div",D6t,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(c.scaleLabels,m=>(t.openBlock(),t.createElementBlock("div",{class:"label",key:m},t.toDisplayString(m),1))),128))])):t.createCommentVNode("",!0)],34)}const V6t=HH(E6t,[["render",R6t]]),gE={components:{MultiRangeSlider:V6t},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)}}},WH=()=>{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}))},qH=gE.setup;gE.setup=qH?(e,r)=>(WH(),qH(e,r)):WH;const $6t={class:"center"},j6t={class:"bar-ref"},U6t={class:"bar-ref-element-left"},G6t={class:"bar-ref-element-right"};function H6t(e,r,i,B,D,c){const m=t.resolveComponent("MultiRangeSlider");return t.openBlock(),t.createElementBlock("div",{class:"custom-range-slider",style:t.normalizeStyle(c.customStyle)},[t.createElementVNode("div",$6t,[t.createElementVNode("div",j6t,[t.createElementVNode("div",U6t,[t.createElementVNode("div",{class:"text",style:t.normalizeStyle(c.customStyleText)},"De:",4),t.createElementVNode("div",{class:"value",style:t.normalizeStyle(c.customStyleValue)},t.toDisplayString(D.minValueLocal)+t.toDisplayString(i.minSuffix),5)]),t.createElementVNode("div",G6t,[t.createElementVNode("div",{class:"text",style:t.normalizeStyle(c.customStyleText)},"A:",4),t.createElementVNode("div",{class:"value",style:t.normalizeStyle(c.customStyleValue)},t.toDisplayString(D.maxValueLocal)+t.toDisplayString(i.maxSuffix),5)])]),t.createVNode(m,{baseClassName:"multi-range-slider",min:i.minLimit,max:i.maxLimit,step:1,ruler:!1,label:!1,"min-value":D.minValueLocal,"max-value":D.maxValueLocal,"range-margin":0,onInput:c.onInput},null,8,["min","max","min-value","max-value","onInput"])])],4)}const YH=HH(gE,[["render",H6t]]),W6t={class:"template-distance"},q6t={__name:"TemplateDistance",props:{distance:{type:Object,default:()=>({minLimit:5,maxLimit:30,minValue:5,maxValue:30})}},emits:["update:distanceFilters"],setup(e,{emit:r}){const i=e,B=t.ref({minValue:0,maxValue:0,minLimit:0,maxLimit:0});t.watch(()=>B.value,c=>{r("update:distanceFilters",c)},{deep:!0}),t.watch(()=>i.distance,c=>{B.value.minValue=c.minValue,B.value.maxValue=c.maxValue,B.value.minLimit=c.minLimit,B.value.maxLimit=c.maxLimit},{immediate:!0,deep:!0});function D(c){B.value.minValue=c.minValue,B.value.maxValue=c.maxValue}return(c,m)=>(t.openBlock(),t.createElementBlock("div",W6t,[t.createVNode(t.unref(YH),{"border-width":"0","background-color":"#0D1D29",height:"30px","font-size-value":"12px","font-size":"12px","line-in-range-color":"white","background-indicador":"#CBEE6B","min-limit":B.value.minLimit,"max-limit":B.value.maxLimit,"min-value":B.value.minValue,"max-value":B.value.maxValue,"min-suffix":"m","max-suffix":"+",onInput:D},null,8,["min-limit","max-limit","min-value","max-value"])]))}},Y6t=e=>(t.pushScopeId("data-v-be32e3d8"),e=e(),t.popScopeId(),e),X6t={class:"template-games"},Z6t={class:"template-games__header"},J6t=Y6t(()=>t.createElementVNode("div",{class:"template-games__header__title"},"Partidos jugados:",-1)),K6t={class:"template-games__header__all-games"},Q6t={__name:"TemplateGames",props:{gamesFilters:{type:Array,default:()=>[]}},emits:["update:gamesFilters"],setup(e,{emit:r}){const i=e,B=t.ref(!1),D=t.computed(()=>i.gamesFilters.filter(m=>m.isSelected).length);t.watch(()=>i.gamesFilters,m=>{r("update:gamesFilters",m)},{deep:!0}),t.watch(D,m=>{B.value=m===i.gamesFilters.length,r("update:gamesFilters",i.gamesFilters)},{immediate:!0});const c=m=>{m?i.gamesFilters.forEach(a=>{a.isSelected=m}):i.gamesFilters.forEach((a,y)=>{a.isSelected=y===0}),B.value=m};return(m,a)=>(t.openBlock(),t.createElementBlock("div",X6t,[t.createElementVNode("div",Z6t,[J6t,t.createElementVNode("div",K6t,[t.createVNode(t.unref(Is),{modelValue:B.value,label:"Todos","box-position":"right","font-family":"Roboto-Regular, sans-serif","label-font-size":"12px","onUpdate:modelValue":c},null,8,["modelValue"])])]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.gamesFilters,(y,f)=>(t.openBlock(),t.createElementBlock("div",{key:f,class:"template-games__game"},[t.createVNode(t.unref(Is),{modelValue:y.isSelected,"onUpdate:modelValue":n=>y.isSelected=n,label:y.label,"teams-ids":y.teamsIds,"avoid-interaction":D.value===1&&y.isSelected},null,8,["modelValue","onUpdate:modelValue","label","teams-ids","avoid-interaction"])]))),128))]))}},e8t=ml(Q6t,[["__scopeId","data-v-be32e3d8"]]),t8t=(e,r)=>{const i=e.__vccOpts||e;for(const[B,D]of r)i[B]=D;return i},yE={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))}}},XH=()=>{t.useCssVars(e=>({"1c960139":e.height,b2f635d8:e.borderWidthBtn,"06e99898":e.borderType,"55555c76":e.borderColor,"23b6d320":e.borderRadius,"22c97374":e.width,"22bb09fa":e.backgroundColor,c148da7c:e.cursorType,cce756fc:e.fontSize,cff98d60:e.fontStyle,"5123b3a5":e.fontFamily,"47bf58db":e.marginLeftStat,cadc8414:e.fontSizeStat}))},ZH=yE.setup;yE.setup=ZH?(e,r)=>(XH(),ZH(e,r)):XH;const a8t=e=>(t.pushScopeId("data-v-fb269a1e"),e=e(),t.popScopeId(),e),n8t=["src"],r8t={key:1,class:"text"},i8t=["src"],o8t={class:"stats"},s8t=a8t(()=>t.createElementVNode("img",{class:"iconstats",src:"https://az755631.vo.msecnd.net/todoelfut/playdes.png"},null,-1)),l8t={class:"numstats"},c8t={class:"leyend"};function u8t(e,r,i,B,D,c){return t.openBlock(),t.createElementBlock("div",null,[i.type==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["button",D.status&&i.typeOnOff&&"button-active"]),style:t.normalizeStyle([c.customStyle,D.status&&i.typeOnOff&&c.customActive]),onClick:r[0]||(r[0]=(...m)=>c.btnClick&&c.btnClick(...m))},[i.icon&&i.iconPosition.toLowerCase()==="left"?(t.openBlock(),t.createElementBlock("img",{key:0,class:"icon",style:t.normalizeStyle({width:i.iconSize}),src:i.icon},null,12,n8t)):t.createCommentVNode("",!0),i.textValue?(t.openBlock(),t.createElementBlock("div",r8t,t.toDisplayString(i.textValue),1)):t.createCommentVNode("",!0),i.icon&&i.iconPosition.toLowerCase()==="right"?(t.openBlock(),t.createElementBlock("img",{key:2,class:"icon",style:t.normalizeStyle({width:i.iconSize}),src:i.icon},null,12,i8t)):t.createCommentVNode("",!0)],6)):t.createCommentVNode("",!0),i.type==1?(t.openBlock(),t.createElementBlock("div",{key:1,class:"button-target",onClick:r[1]||(r[1]=(...m)=>c.btnClick&&c.btnClick(...m))},[t.createElementVNode("div",o8t,[s8t,t.createElementVNode("div",l8t,t.toDisplayString(i.textStat),1)]),t.createElementVNode("div",c8t,t.toDisplayString(i.textCategory),1)])):t.createCommentVNode("",!0)])}const vE=t8t(yE,[["render",u8t],["__scopeId","data-v-fb269a1e"]]),d8t=(e,r)=>{const i=e.__vccOpts||e;for(const[B,D]of r)i[B]=D;return i},_E={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))}}},JH=()=>{t.useCssVars(e=>({"1c960139":e.height,b2f635d8:e.borderWidthBtn,"06e99898":e.borderType,"55555c76":e.borderColor,"23b6d320":e.borderRadius,"22c97374":e.width,"22bb09fa":e.backgroundColor,c148da7c:e.cursorType,cce756fc:e.fontSize,cff98d60:e.fontStyle,"5123b3a5":e.fontFamily,"47bf58db":e.marginLeftStat,cadc8414:e.fontSizeStat}))},KH=_E.setup;_E.setup=KH?(e,r)=>(JH(),KH(e,r)):JH;const h8t=e=>(t.pushScopeId("data-v-fb269a1e"),e=e(),t.popScopeId(),e),p8t=["src"],f8t={key:1,class:"text"},m8t=["src"],g8t={class:"stats"},y8t=h8t(()=>t.createElementVNode("img",{class:"iconstats",src:"https://az755631.vo.msecnd.net/todoelfut/playdes.png"},null,-1)),v8t={class:"numstats"},_8t={class:"leyend"};function b8t(e,r,i,B,D,c){return t.openBlock(),t.createElementBlock("div",null,[i.type==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["button",D.status&&i.typeOnOff&&"button-active"]),style:t.normalizeStyle([c.customStyle,D.status&&i.typeOnOff&&c.customActive]),onClick:r[0]||(r[0]=(...m)=>c.btnClick&&c.btnClick(...m))},[i.icon&&i.iconPosition.toLowerCase()==="left"?(t.openBlock(),t.createElementBlock("img",{key:0,class:"icon",style:t.normalizeStyle({width:i.iconSize}),src:i.icon},null,12,p8t)):t.createCommentVNode("",!0),i.textValue?(t.openBlock(),t.createElementBlock("div",f8t,t.toDisplayString(i.textValue),1)):t.createCommentVNode("",!0),i.icon&&i.iconPosition.toLowerCase()==="right"?(t.openBlock(),t.createElementBlock("img",{key:2,class:"icon",style:t.normalizeStyle({width:i.iconSize}),src:i.icon},null,12,m8t)):t.createCommentVNode("",!0)],6)):t.createCommentVNode("",!0),i.type==1?(t.openBlock(),t.createElementBlock("div",{key:1,class:"button-target",onClick:r[1]||(r[1]=(...m)=>c.btnClick&&c.btnClick(...m))},[t.createElementVNode("div",g8t,[y8t,t.createElementVNode("div",v8t,t.toDisplayString(i.textStat),1)]),t.createElementVNode("div",_8t,t.toDisplayString(i.textCategory),1)])):t.createCommentVNode("",!0)])}const x8t=d8t(_E,[["render",b8t],["__scopeId","data-v-fb269a1e"]]),w8t=(e,r)=>{const i=e.__vccOpts||e;for(const[B,D]of r)i[B]=D;return i},k8t={key:1},C8t={width:"10",height:"8",viewBox:"0 0 10 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},S8t=["fill"],T8t={key:0,class:"checkbox__teams"},E8t={class:"checkbox__teams__logo"},A8t=["src"],M8t={class:"checkbox__teams__logo"},I8t=["src"],P8t={__name:"GSC-Checkbox",props:{width:{type:String,default:"fit-content"},height:{type:String,default:"fit-content"},label:{type:String,default:""},labelWhiteSpace:{type:String,default:"normal"},labelColor:{type:String,default:"white"},fontFamily:{type:String,default:"sans-serif"},labelFontSize:{type:String,default:"12px"},modelValue:{type:Boolean,default:!1},justifyContent:{type:String,default:"flex-start"},alignItems:{type:String,default:"center"},boxBackgroundColor:{type:String,default:"#CBEE6B"},boxValueColor:{type:String,default:"#0d1d29"},boxValue:{type:[String,Number],default:""},boxPosition:{type:String,default:"left",validator(e){return["left","right","top","bottom"].includes(e)}},boxMarginTop:{type:String,default:"0.2em"},boxWidthAndHeight:{type:String,default:"16px"},boxBorderColor:{type:String,default:"#969da2"},boxBorderWidth:{type:String,default:"2px"},boxBorderRadius:{type:String,default:"4px"},boxValueFontSize:{type:String,default:"10px"},boxValueFontFamily:{type:String,default:"sans-serif"},avoidInteraction:{type:Boolean,default:!1},avoidToCheck:{type:Boolean,default:!1},isBoxOnly:{type:Boolean,default:!1},teamsIds:{type:Array,default:()=>null}},emits:["update:modelValue"],setup(e,{emit:r}){const i=e;t.useCssVars(f=>({"6582e90e":e.width,"310b3edf":e.height}));const B=t.ref(!1),D=t.computed(()=>{const f={color:i.boxValueColor,"font-family":i.fontFamily,height:i.boxWidthAndHeight,width:i.boxWidthAndHeight,minWidth:i.boxWidthAndHeight,"border-radius":i.boxBorderRadius,"margin-top":i.boxMarginTop};return B.value?(f["background-color"]=i.boxBackgroundColor,f.border=`solid ${i.boxBorderWidth} ${i.boxBackgroundColor}`):f.border=`solid ${i.boxBorderWidth} ${i.boxBorderColor}`,f}),c=t.computed(()=>({"font-family":i.boxValueFontFamily,"font-size":i.boxValueFontSize,color:i.boxValueColor,"line-height":1})),m=t.computed(()=>{const f={color:i.labelColor,"font-family":i.fontFamily,"font-size":i.labelFontSize,"white-space":i.labelWhiteSpace,"text-align":i.boxPosition==="top"||i.boxPosition==="bottom"?"center":i.boxPosition};return(i.boxPosition==="left"||i.boxPosition==="right")&&(f[`margin-${i.boxPosition}`]=i.isBoxOnly?"0":i.teamsIds?"8px":"10px"),f});t.watch(()=>i.modelValue,f=>{f!==B.value&&(B.value=f)},{immediate:!0});function a(){i.avoidInteraction||!B.value&&i.avoidToCheck||(B.value=!B.value,r("update:modelValue",B.value))}function y(f){return`${{}.TEAM_LOGOS_URL||"https://az755631.vo.msecnd.net/teams-80/"}${f}.png`}return(f,n)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["checkbox",`box-${e.boxPosition}`]),onClick:a},[t.createElementVNode("div",{class:"checkbox__box",style:t.normalizeStyle(D.value)},[B.value?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[i.boxValue?(t.openBlock(),t.createElementBlock("div",{key:0,class:"checkbox__box__value",style:t.normalizeStyle(c.value)},t.toDisplayString(e.boxValue),5)):(t.openBlock(),t.createElementBlock("div",k8t,[(t.openBlock(),t.createElementBlock("svg",C8t,[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,S8t)]))]))],64)):t.createCommentVNode("",!0)],4),e.teamsIds&&e.teamsIds.length?(t.openBlock(),t.createElementBlock("div",T8t,[t.createElementVNode("div",E8t,[t.createElementVNode("img",{src:y(e.teamsIds[0]),alt:""},null,8,A8t)]),t.createElementVNode("div",M8t,[t.createElementVNode("img",{src:y(e.teamsIds[1]),alt:""},null,8,I8t)])])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"checkbox__label",style:t.normalizeStyle(m.value)},t.toDisplayString(e.label),5)],2))}},B8t=w8t(P8t,[["__scopeId","data-v-bcf3bcc6"]]),N8t=(e,r)=>{const i=e.__vccOpts||e;for(const[B,D]of r)i[B]=D;return i},bE={components:{GSCButton:x8t,GSCCheckbox:B8t},data(){return{update:0,all:!1,refreshBtn14:0,refreshBtn24:0,refreshBtn34:0,refreshBtn44:0,sectors:Array.from({length:16},(e,r)=>({sector:r+1,active:!1})),lastUpdatedValue:[]}},props:{backgroundColor:{type:String,default:"#2e3b46"},heightContainer:{type:String,default:"340px"},widthContainer:{type:String,default:"455px"},heightField:{type:Number,default:230},widthField:{type:Number,default:350},heightFieldGrid:{type:String,default:"230px"},widthFieldGrid:{type:String,default:"350px"},backgroundSectorActive:{type:String,default:"#cbee6b"},backgroundSectorDisabled:{type:String,default:"#2e3b46"},borderWidth:{type:Number,default:1},opacitySector:{type:Number,default:.5},borderColor:{type:String,default:"#FFFFFF"},colorLineField:{type:String,default:"#bfc2c5"},borderWidthLineField:{type:Number,default:2},value:{type:Array,default:()=>[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16]},title:{type:String,default:"Pase(s) desde la(s) zona(s):"},titleFontSize:{type:String,default:"14px"}},watch:{value:{deep:!0,immediate:!0,handler(e){const r=e.sort();JSON.stringify(r)!==JSON.stringify(this.lastUpdatedValue)&&(this.lastUpdatedValue=r,this.sectors.forEach((i,B)=>{i.active=e.includes(B+1),this.validateField(B)}),this.$emit("update:modelValue",e))}},sectors:{handler(e){var r=[];for(let i=0;i<e.length;i++)e[i].active&&r.push(i+1);this.$emit("update:modelValue",r)},deep:!0}},computed:{translx(){var e=0;return this.widthField>305?e=this.widthField-305:this.widthField==268&&(e=-36),e},transly(){var e=0;return this.heightField>195?(e=this.heightField-195,e=e/2):this.heightField==180&&(e=-7),e},translxcircle(){var e=0;return this.widthField>305?(e=this.widthField-305,e=e/2):this.widthField==268&&(e=-18),e}},methods:{clickAll(e){if(e){for(let r=0;r<this.sectors.length;r++)this.sectors[r].active=!0,this.validateField(r);this.status14=!0,this.status24=!0,this.status34=!0,this.status44=!0,this.refreshBtn14+=1,this.refreshBtn24+=1,this.refreshBtn34+=1,this.refreshBtn44+=1}else for(let r=0;r<this.sectors.length;r++)this.sectors[r].active=!1,this.validateField(r),this.status14=!1,this.status24=!1,this.status34=!1,this.status44=!1,this.refreshBtn14=0,this.refreshBtn24=0,this.refreshBtn34=0,this.refreshBtn44=0},selectSector(e){var r=0;this.sectors[e].active=!this.sectors[e].active;for(let i=0;i<this.sectors.length;i++)this.sectors[i].active&&(r+=1);r==0&&(this.sectors[e].active=!0),this.validateField(e)},btn14(e){this.sectors[0].active=e?this.sectors[0].active=!0:this.sectors[0].active=!1,this.sectors[1].active=e?this.sectors[1].active=!0:this.sectors[1].active=!1,this.sectors[2].active=e?this.sectors[2].active=!0:this.sectors[2].active=!1,this.sectors[3].active=e?this.sectors[3].active=!0:this.sectors[3].active=!1;var r=0;for(let i=0;i<this.sectors.length;i++)this.sectors[i].active&&(r+=1);r==0?(this.sectors[0].active=!0,this.sectors[1].active=!0,this.sectors[2].active=!0,this.sectors[3].active=!0,this.status14=!0,this.refreshBtn14+=1):this.status14=!1,r==16&&(this.all=!0,this.update+=1)},btn24(e){this.sectors[4].active=e?this.sectors[4].active=!0:this.sectors[4].active=!1,this.sectors[5].active=e?this.sectors[5].active=!0:this.sectors[5].active=!1,this.sectors[6].active=e?this.sectors[6].active=!0:this.sectors[6].active=!1,this.sectors[7].active=e?this.sectors[7].active=!0:this.sectors[7].active=!1;var r=0;for(let i=0;i<this.sectors.length;i++)this.sectors[i].active&&(r+=1);r==0?(this.sectors[4].active=!0,this.sectors[5].active=!0,this.sectors[6].active=!0,this.sectors[7].active=!0,this.status24=!0,this.refreshBtn24+=1):this.status24=!1,r==16&&(this.all=!0,this.update+=1)},btn34(e){this.sectors[8].active=e?this.sectors[8].active=!0:this.sectors[8].active=!1,this.sectors[9].active=e?this.sectors[9].active=!0:this.sectors[9].active=!1,this.sectors[10].active=e?this.sectors[10].active=!0:this.sectors[10].active=!1,this.sectors[11].active=e?this.sectors[11].active=!0:this.sectors[11].active=!1;var r=0;for(let i=0;i<this.sectors.length;i++)this.sectors[i].active&&(r+=1);r==0?(this.sectors[8].active=!0,this.sectors[9].active=!0,this.sectors[10].active=!0,this.sectors[11].active=!0,this.status34=!0,this.refreshBtn34+=1):this.status34=!1,r==16&&(this.all=!0,this.update+=1)},btn44(e){this.sectors[12].active=e?this.sectors[12].active=!0:this.sectors[12].active=!1,this.sectors[13].active=e?this.sectors[13].active=!0:this.sectors[13].active=!1,this.sectors[14].active=e?this.sectors[14].active=!0:this.sectors[14].active=!1,this.sectors[15].active=e?this.sectors[15].active=!0:this.sectors[15].active=!1;var r=0;for(let i=0;i<this.sectors.length;i++)this.sectors[i].active&&(r+=1);r==0?(this.sectors[12].active=!0,this.sectors[13].active=!0,this.sectors[14].active=!0,this.sectors[15].active=!0,this.status44=!0,this.refreshBtn44+=1):this.status44=!1,r==16&&(this.all=!0,this.update+=1)},validateField(e){(e===0||e===1||e===2||e===3)&&(this.status14=!!(this.sectors[0].active&&this.sectors[1].active&&this.sectors[2].active&&this.sectors[3].active)),(e===4||e===5||e===6||e===7)&&(this.status24=!!(this.sectors[4].active&&this.sectors[5].active&&this.sectors[6].active&&this.sectors[7].active)),(e===8||e===9||e===10||e===11)&&(this.status34=!!(this.sectors[8].active&&this.sectors[9].active&&this.sectors[10].active&&this.sectors[11].active)),(e===12||e===13||e===14||e===15)&&(this.status44=!!(this.sectors[12].active&&this.sectors[13].active&&this.sectors[14].active&&this.sectors[15].active)),this.all=!!(this.status14&&this.status34&&this.status24&&this.status44),this.update+=1,this.status14&&(this.refreshBtn14+=1),this.status24&&(this.refreshBtn24+=1),this.status34&&(this.refreshBtn34+=1),this.status44&&(this.refreshBtn44+=1)}}},QH=()=>{t.useCssVars(e=>({"4fe806fe":e.widthContainer,"91de7c52":e.heightContainer,"266afcdc":e.backgroundColor,"2b853536":e.titleFontSize,"986b6446":e.widthFieldGrid,"1af308b6":e.heightFieldGrid}))},eW=bE.setup;bE.setup=eW?(e,r)=>(QH(),eW(e,r)):QH;const z8t={class:"gsc-field"},O8t={class:"gsc-field__title-checked"},F8t={class:"gsc-field__title-checked__title"},L8t={class:"gsc-field__container-field"},D8t={class:"gsc-field__container-field__field"},R8t={width:"100%",height:"100%",fill:"#2e3b46",xmlns:"http://www.w3.org/2000/svg"},V8t=["stroke"],$8t=["stroke","stroke-width"],j8t=["stroke","stroke-width"],U8t=["stroke-width","stroke"],G8t=["fill","fill-opacity","stroke","stroke-width"],H8t=["fill","fill-opacity","stroke","stroke-width"],W8t=["fill","fill-opacity","stroke","stroke-width"],q8t=["fill","fill-opacity","stroke","stroke-width"],Y8t=["fill","fill-opacity","stroke","stroke-width"],X8t=["fill","fill-opacity","stroke","stroke-width"],Z8t=["fill","fill-opacity","stroke","stroke-width"],J8t=["fill","fill-opacity","stroke","stroke-width"],K8t=["fill","fill-opacity","stroke","stroke-width"],Q8t=["fill","fill-opacity","stroke","stroke-width"],ekt=["fill","fill-opacity","stroke","stroke-width"],tkt=["fill","fill-opacity","stroke","stroke-width"],akt=["fill","fill-opacity","stroke","stroke-width"],nkt=["fill","fill-opacity","stroke","stroke-width"],rkt=["fill","fill-opacity","stroke","stroke-width"],ikt=["fill","fill-opacity","stroke","stroke-width"],okt={class:"gsc-field__container-field__bar-buttons"};function skt(e,r,i,B,D,c){const m=t.resolveComponent("GSCCheckbox"),a=t.resolveComponent("GSCButton");return t.openBlock(),t.createElementBlock("div",z8t,[t.createElementVNode("div",O8t,[t.createElementVNode("div",F8t,t.toDisplayString(i.title),1),t.createElementVNode("div",{class:"gsc-field__title-checked__check-cont",style:t.normalizeStyle(i.widthField>=350?"min-width: 123px":"")},[(t.openBlock(),t.createBlock(m,{label:i.widthField<350?"Todas":"Todas las zonas","font-family":"Poppins-Regular","box-value-font-family":"Poppins-Regular","box-position":"right","label-font-size":i.titleFontSize,"label-white-space":"nowrap","box-margin-top":"0.4em",value:D.all,key:D.update,"model-value":D.all,"onUpdate:modelValue":c.clickAll},null,8,["label","label-font-size","value","model-value","onUpdate:modelValue"]))],4)]),t.createElementVNode("div",L8t,[t.createElementVNode("div",D8t,[(t.openBlock(),t.createElementBlock("svg",R8t,[t.createElementVNode("rect",{x:"1.5",y:"0.5",width:"100%",height:"100%",rx:"1.5",stroke:i.colorLineField},null,8,V8t),t.createElementVNode("path",{style:t.normalizeStyle("transform: translate("+c.translx+"px, "+c.transly+"px);"),d:"M303.597 39.9799H263.371C262.817 39.9799 262.369 40.4301 262.371 40.984L262.842 155.176C262.845 155.726 263.292 156.172 263.842 156.172H302.884",stroke:i.colorLineField,"stroke-width":i.borderWidthLineField,"stroke-linecap":"square"},null,12,$8t),t.createElementVNode("path",{style:t.normalizeStyle("transform: translateY("+c.transly+"px);"),class:"porteria1",d:"M1.09097 156.172L41.3162 156.172C41.8701 156.172 42.3185 155.722 42.3162 155.168L41.845 40.9758C41.8427 40.4252 41.3957 39.98 40.845 39.98L1.80338 39.98",stroke:i.colorLineField,"stroke-width":i.borderWidthLineField,"stroke-linecap":"square"},null,12,j8t),t.createElementVNode("path",{style:t.normalizeStyle("transform: translate("+c.translxcircle+"px, "+c.transly+"px);"),class:"circle",d:"M182.911 97.4512C182.911 113.726 169.44 126.936 152.801 126.936C136.162 126.936 122.691 113.726 122.691 97.4512C122.691 81.1767 136.162 67.9662 152.801 67.9662C169.44 67.9662 182.911 81.1767 182.911 97.4512Z","stroke-width":i.borderWidthLineField,stroke:i.colorLineField},null,12,U8t),t.createElementVNode("rect",{x:"0%",y:"0%",width:"25%",height:"25%",fill:D.sectors[0].active?i.backgroundSectorActive:i.backgroundSectorDisabled,"fill-opacity":i.opacitySector,stroke:i.borderColor,"stroke-width":i.borderWidth,onClick:r[0]||(r[0]=y=>c.selectSector(0))},null,8,G8t),t.createElementVNode("rect",{x:"0%",y:"25%",width:"25%",height:"25%",fill:D.sectors[1].active?i.backgroundSectorActive:i.backgroundSectorDisabled,"fill-opacity":i.opacitySector,stroke:i.borderColor,"stroke-width":i.borderWidth,onClick:r[1]||(r[1]=y=>c.selectSector(1))},null,8,H8t),t.createElementVNode("rect",{x:"0%",y:"50%",width:"25%",height:"25%",fill:D.sectors[2].active?i.backgroundSectorActive:i.backgroundSectorDisabled,"fill-opacity":i.opacitySector,stroke:i.borderColor,"stroke-width":i.borderWidth,onClick:r[2]||(r[2]=y=>c.selectSector(2))},null,8,W8t),t.createElementVNode("rect",{x:"0%",y:"75%",width:"25%",height:"25%",fill:D.sectors[3].active?i.backgroundSectorActive:i.backgroundSectorDisabled,"fill-opacity":i.opacitySector,stroke:i.borderColor,"stroke-width":i.borderWidth,onClick:r[3]||(r[3]=y=>c.selectSector(3))},null,8,q8t),t.createElementVNode("rect",{x:"25%",y:"0%",width:"25%",height:"25%",fill:D.sectors[4].active?i.backgroundSectorActive:i.backgroundSectorDisabled,"fill-opacity":i.opacitySector,stroke:i.borderColor,"stroke-width":i.borderWidth,onClick:r[4]||(r[4]=y=>c.selectSector(4))},null,8,Y8t),t.createElementVNode("rect",{x:"25%",y:"25%",width:"25%",height:"25%",fill:D.sectors[5].active?i.backgroundSectorActive:i.backgroundSectorDisabled,"fill-opacity":i.opacitySector,stroke:i.borderColor,"stroke-width":i.borderWidth,onClick:r[5]||(r[5]=y=>c.selectSector(5))},null,8,X8t),t.createElementVNode("rect",{x:"25%",y:"50%",width:"25%",height:"25%",fill:D.sectors[6].active?i.backgroundSectorActive:i.backgroundSectorDisabled,"fill-opacity":i.opacitySector,stroke:i.borderColor,"stroke-width":i.borderWidth,onClick:r[6]||(r[6]=y=>c.selectSector(6))},null,8,Z8t),t.createElementVNode("rect",{x:"25%",y:"75%",width:"25%",height:"25%",fill:D.sectors[7].active?i.backgroundSectorActive:i.backgroundSectorDisabled,"fill-opacity":i.opacitySector,stroke:i.borderColor,"stroke-width":i.borderWidth,onClick:r[7]||(r[7]=y=>c.selectSector(7))},null,8,J8t),t.createElementVNode("rect",{x:"50%",y:"0%",width:"25%",height:"25%",fill:D.sectors[8].active?i.backgroundSectorActive:i.backgroundSectorDisabled,"fill-opacity":i.opacitySector,stroke:i.borderColor,"stroke-width":i.borderWidth,onClick:r[8]||(r[8]=y=>c.selectSector(8))},null,8,K8t),t.createElementVNode("rect",{x:"50%",y:"25%",width:"25%",height:"25%",fill:D.sectors[9].active?i.backgroundSectorActive:i.backgroundSectorDisabled,"fill-opacity":i.opacitySector,stroke:i.borderColor,"stroke-width":i.borderWidth,onClick:r[9]||(r[9]=y=>c.selectSector(9))},null,8,Q8t),t.createElementVNode("rect",{x:"50%",y:"50%",width:"25%",height:"25%",fill:D.sectors[10].active?i.backgroundSectorActive:i.backgroundSectorDisabled,"fill-opacity":i.opacitySector,stroke:i.borderColor,"stroke-width":i.borderWidth,onClick:r[10]||(r[10]=y=>c.selectSector(10))},null,8,ekt),t.createElementVNode("rect",{x:"50%",y:"75%",width:"25%",height:"25%",fill:D.sectors[11].active?i.backgroundSectorActive:i.backgroundSectorDisabled,"fill-opacity":i.opacitySector,stroke:i.borderColor,"stroke-width":i.borderWidth,onClick:r[11]||(r[11]=y=>c.selectSector(11))},null,8,tkt),t.createElementVNode("rect",{x:"75%",y:"0%",width:"25%",height:"25%",fill:D.sectors[12].active?i.backgroundSectorActive:i.backgroundSectorDisabled,"fill-opacity":i.opacitySector,stroke:i.borderColor,"stroke-width":i.borderWidth,onClick:r[12]||(r[12]=y=>c.selectSector(12))},null,8,akt),t.createElementVNode("rect",{x:"75%",y:"25%",width:"25%",height:"25%",fill:D.sectors[13].active?i.backgroundSectorActive:i.backgroundSectorDisabled,"fill-opacity":i.opacitySector,stroke:i.borderColor,"stroke-width":i.borderWidth,onClick:r[13]||(r[13]=y=>c.selectSector(13))},null,8,nkt),t.createElementVNode("rect",{x:"75%",y:"50%",width:"25%",height:"25%",fill:D.sectors[14].active?i.backgroundSectorActive:i.backgroundSectorDisabled,"fill-opacity":i.opacitySector,stroke:i.borderColor,"stroke-width":i.borderWidth,onClick:r[14]||(r[14]=y=>c.selectSector(14))},null,8,rkt),t.createElementVNode("rect",{x:"75%",y:"75%",width:"25%",height:"25%",fill:D.sectors[15].active?i.backgroundSectorActive:i.backgroundSectorDisabled,"fill-opacity":i.opacitySector,stroke:i.borderColor,"stroke-width":i.borderWidth,onClick:r[15]||(r[15]=y=>c.selectSector(15))},null,8,ikt)]))]),t.createElementVNode("div",okt,[(t.openBlock(),t.createBlock(a,{"text-value":"1/4 tos","font-size":"12px",height:"26px",width:"65px","type-on-off":!0,"border-width":1,"font-color":"#bfc2c5","border-color":"#8c9399","border-radius":"4px","font-family":"Poppins-Medium","active-border-width":1,"background-color":"","active-background-color":"#cbee6b33",ref:"btn14",onStatus:c.btn14,key:D.refreshBtn14,value:e.status14},null,8,["onStatus","value"])),(t.openBlock(),t.createBlock(a,{"text-value":"2/4 tos","font-size":"12px",height:"26px",width:"65px","type-on-off":!0,"border-width":1,"font-color":"#bfc2c5","border-color":"#8c9399","border-radius":"4px","font-family":"Poppins-Medium","active-border-width":1,"background-color":"","active-background-color":"#cbee6b33",ref:"btn24",onStatus:c.btn24,key:D.refreshBtn24,value:e.status24},null,8,["onStatus","value"])),(t.openBlock(),t.createBlock(a,{"text-value":"3/4 tos","font-size":"12px",height:"26px",width:"65px","type-on-off":!0,"border-width":1,"font-color":"#bfc2c5","border-color":"#8c9399","border-radius":"4px","font-family":"Poppins-Medium","active-border-width":1,"background-color":"","active-background-color":"#cbee6b33",ref:"btn34",onStatus:c.btn34,key:D.refreshBtn34,value:e.status34},null,8,["onStatus","value"])),(t.openBlock(),t.createBlock(a,{"text-value":"4/4 tos","font-size":"12px",height:"26px",width:"65px","type-on-off":!0,"border-width":1,"font-color":"#bfc2c5","border-color":"#8c9399","border-radius":"4px","font-family":"Poppins-Medium","active-border-width":1,"background-color":"","active-background-color":"#cbee6b33",ref:"btn44",onStatus:c.btn44,key:D.refreshBtn44,value:e.status44},null,8,["onStatus","value"]))])])])}const tW=N8t(bE,[["render",skt],["__scopeId","data-v-b85699b8"]]),lkt={class:"toggle-buttons__background"},ckt=["onClick"],ukt={__name:"ToggleButtons",props:{buttons:{type:Array,required:!0},selectedButtonIndex:{type:Number,default:0},height:{type:String,default:"29px"},width:{type:String,default:"100%"},fontSize:{type:String,default:"12px"},fontFamily:{type:String,default:"Poppins-Medium"},borderRadius:{type:String,default:"8px"},mainBackgroundColor:{type:String,default:"#364448"},mainBorderColor:{type:String,default:"#9AA1A3"},mainBorderWidth:{type:String,default:"0.5px"},activeBorderColor:{type:String,default:"#cbee6b"},activeBorderWidth:{type:String,default:"1px"},activeBackgroundColor:{type:String,default:"#2e3b46"}},emits:["change"],setup(e,{emit:r}){const i=e;t.useCssVars(m=>({"0d588b39":e.height,"2a8da974":e.width,"6d34d30a":e.mainBackgroundColor,"3d50bf20":e.borderRadius,e8fc78a2:e.mainBorderWidth,eb2a7568:e.mainBorderColor,acdd84b6:e.fontFamily,"63d45e82":e.fontSize,b28ed67c:e.activeBorderWidth,b4bcd342:e.activeBorderColor,"7fa6e29d":e.activeBackgroundColor}));const B=t.ref(i.selectedButtonIndex),D=t.computed(()=>({"--grid-template-columns":`repeat(${i.buttons.length}, 1fr)`}));t.watch(()=>i.selectedButtonIndex,m=>{B.value=m}),t.watch(B,(m,a)=>{m!==a&&r("change",{index:m,button:i.buttons[m]})});function c(m){B.value=m}return(m,a)=>(t.openBlock(),t.createElementBlock("div",lkt,[t.createElementVNode("div",{class:"toggle-buttons",style:t.normalizeStyle(D.value)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.buttons,(y,f)=>(t.openBlock(),t.createElementBlock("div",{key:`b${f}`,class:t.normalizeClass(["toggle-buttons__button",{active:B.value===f}]),onClick:n=>c(f)},t.toDisplayString(y.text||y),11,ckt))),128))],4)]))}},dkt=ml(ukt,[["__scopeId","data-v-ac2af001"]]);function aW(e,r){return function(){return e.apply(r,arguments)}}const{toString:hkt}=Object.prototype,{getPrototypeOf:xE}=Object,y4=(e=>r=>{const i=hkt.call(r);return e[i]||(e[i]=i.slice(8,-1).toLowerCase())})(Object.create(null)),zf=e=>(e=e.toLowerCase(),r=>y4(r)===e),v4=e=>r=>typeof r===e,{isArray:Uy}=Array,y_=v4("undefined");function pkt(e){return e!==null&&!y_(e)&&e.constructor!==null&&!y_(e.constructor)&&sp(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const nW=zf("ArrayBuffer");function fkt(e){let r;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?r=ArrayBuffer.isView(e):r=e&&e.buffer&&nW(e.buffer),r}const mkt=v4("string"),sp=v4("function"),rW=v4("number"),_4=e=>e!==null&&typeof e=="object",gkt=e=>e===!0||e===!1,b4=e=>{if(y4(e)!=="object")return!1;const r=xE(e);return(r===null||r===Object.prototype||Object.getPrototypeOf(r)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},ykt=zf("Date"),vkt=zf("File"),_kt=zf("Blob"),bkt=zf("FileList"),xkt=e=>_4(e)&&sp(e.pipe),wkt=e=>{let r;return e&&(typeof FormData=="function"&&e instanceof FormData||sp(e.append)&&((r=y4(e))==="formdata"||r==="object"&&sp(e.toString)&&e.toString()==="[object FormData]"))},kkt=zf("URLSearchParams"),Ckt=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function v_(e,r,{allOwnKeys:i=!1}={}){if(e===null||typeof e>"u")return;let B,D;if(typeof e!="object"&&(e=[e]),Uy(e))for(B=0,D=e.length;B<D;B++)r.call(null,e[B],B,e);else{const c=i?Object.getOwnPropertyNames(e):Object.keys(e),m=c.length;let a;for(B=0;B<m;B++)a=c[B],r.call(null,e[a],a,e)}}function iW(e,r){r=r.toLowerCase();const i=Object.keys(e);let B=i.length,D;for(;B-- >0;)if(D=i[B],r===D.toLowerCase())return D;return null}const oW=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),sW=e=>!y_(e)&&e!==oW;function wE(){const{caseless:e}=sW(this)&&this||{},r={},i=(B,D)=>{const c=e&&iW(r,D)||D;b4(r[c])&&b4(B)?r[c]=wE(r[c],B):b4(B)?r[c]=wE({},B):Uy(B)?r[c]=B.slice():r[c]=B};for(let B=0,D=arguments.length;B<D;B++)arguments[B]&&v_(arguments[B],i);return r}const Skt=(e,r,i,{allOwnKeys:B}={})=>(v_(r,(D,c)=>{i&&sp(D)?e[c]=aW(D,i):e[c]=D},{allOwnKeys:B}),e),Tkt=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Ekt=(e,r,i,B)=>{e.prototype=Object.create(r.prototype,B),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:r.prototype}),i&&Object.assign(e.prototype,i)},Akt=(e,r,i,B)=>{let D,c,m;const a={};if(r=r||{},e==null)return r;do{for(D=Object.getOwnPropertyNames(e),c=D.length;c-- >0;)m=D[c],(!B||B(m,e,r))&&!a[m]&&(r[m]=e[m],a[m]=!0);e=i!==!1&&xE(e)}while(e&&(!i||i(e,r))&&e!==Object.prototype);return r},Mkt=(e,r,i)=>{e=String(e),(i===void 0||i>e.length)&&(i=e.length),i-=r.length;const B=e.indexOf(r,i);return B!==-1&&B===i},Ikt=e=>{if(!e)return null;if(Uy(e))return e;let r=e.length;if(!rW(r))return null;const i=new Array(r);for(;r-- >0;)i[r]=e[r];return i},Pkt=(e=>r=>e&&r instanceof e)(typeof Uint8Array<"u"&&xE(Uint8Array)),Bkt=(e,r)=>{const i=(e&&e[Symbol.iterator]).call(e);let B;for(;(B=i.next())&&!B.done;){const D=B.value;r.call(e,D[0],D[1])}},Nkt=(e,r)=>{let i;const B=[];for(;(i=e.exec(r))!==null;)B.push(i);return B},zkt=zf("HTMLFormElement"),Okt=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,i,B){return i.toUpperCase()+B}),lW=(({hasOwnProperty:e})=>(r,i)=>e.call(r,i))(Object.prototype),Fkt=zf("RegExp"),cW=(e,r)=>{const i=Object.getOwnPropertyDescriptors(e),B={};v_(i,(D,c)=>{let m;(m=r(D,c,e))!==!1&&(B[c]=m||D)}),Object.defineProperties(e,B)},Lkt=e=>{cW(e,(r,i)=>{if(sp(e)&&["arguments","caller","callee"].indexOf(i)!==-1)return!1;const B=e[i];if(sp(B)){if(r.enumerable=!1,"writable"in r){r.writable=!1;return}r.set||(r.set=()=>{throw Error("Can not rewrite read-only method '"+i+"'")})}})},Dkt=(e,r)=>{const i={},B=D=>{D.forEach(c=>{i[c]=!0})};return Uy(e)?B(e):B(String(e).split(r)),i},Rkt=()=>{},Vkt=(e,r)=>(e=+e,Number.isFinite(e)?e:r),kE="abcdefghijklmnopqrstuvwxyz",uW="0123456789",dW={DIGIT:uW,ALPHA:kE,ALPHA_DIGIT:kE+kE.toUpperCase()+uW},$kt=(e=16,r=dW.ALPHA_DIGIT)=>{let i="";const{length:B}=r;for(;e--;)i+=r[Math.random()*B|0];return i};function jkt(e){return!!(e&&sp(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Ukt=e=>{const r=new Array(10),i=(B,D)=>{if(_4(B)){if(r.indexOf(B)>=0)return;if(!("toJSON"in B)){r[D]=B;const c=Uy(B)?[]:{};return v_(B,(m,a)=>{const y=i(m,D+1);!y_(y)&&(c[a]=y)}),r[D]=void 0,c}}return B};return i(e,0)},Gkt=zf("AsyncFunction"),Hkt=e=>e&&(_4(e)||sp(e))&&sp(e.then)&&sp(e.catch),Ir={isArray:Uy,isArrayBuffer:nW,isBuffer:pkt,isFormData:wkt,isArrayBufferView:fkt,isString:mkt,isNumber:rW,isBoolean:gkt,isObject:_4,isPlainObject:b4,isUndefined:y_,isDate:ykt,isFile:vkt,isBlob:_kt,isRegExp:Fkt,isFunction:sp,isStream:xkt,isURLSearchParams:kkt,isTypedArray:Pkt,isFileList:bkt,forEach:v_,merge:wE,extend:Skt,trim:Ckt,stripBOM:Tkt,inherits:Ekt,toFlatObject:Akt,kindOf:y4,kindOfTest:zf,endsWith:Mkt,toArray:Ikt,forEachEntry:Bkt,matchAll:Nkt,isHTMLForm:zkt,hasOwnProperty:lW,hasOwnProp:lW,reduceDescriptors:cW,freezeMethods:Lkt,toObjectSet:Dkt,toCamelCase:Okt,noop:Rkt,toFiniteNumber:Vkt,findKey:iW,global:oW,isContextDefined:sW,ALPHABET:dW,generateString:$kt,isSpecCompliantForm:jkt,toJSONObject:Ukt,isAsyncFn:Gkt,isThenable:Hkt};function Nl(e,r,i,B,D){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",r&&(this.code=r),i&&(this.config=i),B&&(this.request=B),D&&(this.response=D)}Ir.inherits(Nl,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Ir.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const hW=Nl.prototype,pW={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{pW[e]={value:e}}),Object.defineProperties(Nl,pW),Object.defineProperty(hW,"isAxiosError",{value:!0}),Nl.from=(e,r,i,B,D,c)=>{const m=Object.create(hW);return Ir.toFlatObject(e,m,function(a){return a!==Error.prototype},a=>a!=="isAxiosError"),Nl.call(m,e.message,r,i,B,D),m.cause=e,m.name=e.name,c&&Object.assign(m,c),m};const Wkt=null;function CE(e){return Ir.isPlainObject(e)||Ir.isArray(e)}function fW(e){return Ir.endsWith(e,"[]")?e.slice(0,-2):e}function mW(e,r,i){return e?e.concat(r).map(function(B,D){return B=fW(B),!i&&D?"["+B+"]":B}).join(i?".":""):r}function qkt(e){return Ir.isArray(e)&&!e.some(CE)}const Ykt=Ir.toFlatObject(Ir,{},null,function(e){return/^is[A-Z]/.test(e)});function x4(e,r,i){if(!Ir.isObject(e))throw new TypeError("target must be an object");r=r||new FormData,i=Ir.toFlatObject(i,{metaTokens:!0,dots:!1,indexes:!1},!1,function(p,l){return!Ir.isUndefined(l[p])});const B=i.metaTokens,D=i.visitor||f,c=i.dots,m=i.indexes,a=(i.Blob||typeof Blob<"u"&&Blob)&&Ir.isSpecCompliantForm(r);if(!Ir.isFunction(D))throw new TypeError("visitor must be a function");function y(p){if(p===null)return"";if(Ir.isDate(p))return p.toISOString();if(!a&&Ir.isBlob(p))throw new Nl("Blob is not supported. Use a Buffer instead.");return Ir.isArrayBuffer(p)||Ir.isTypedArray(p)?a&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function f(p,l,o){let s=p;if(p&&!o&&typeof p=="object"){if(Ir.endsWith(l,"{}"))l=B?l:l.slice(0,-2),p=JSON.stringify(p);else if(Ir.isArray(p)&&qkt(p)||(Ir.isFileList(p)||Ir.endsWith(l,"[]"))&&(s=Ir.toArray(p)))return l=fW(l),s.forEach(function(d,u){!(Ir.isUndefined(d)||d===null)&&r.append(m===!0?mW([l],u,c):m===null?l:l+"[]",y(d))}),!1}return CE(p)?!0:(r.append(mW(o,l,c),y(p)),!1)}const n=[],v=Object.assign(Ykt,{defaultVisitor:f,convertValue:y,isVisitable:CE});function _(p,l){if(!Ir.isUndefined(p)){if(n.indexOf(p)!==-1)throw Error("Circular reference detected in "+l.join("."));n.push(p),Ir.forEach(p,function(o,s){(!(Ir.isUndefined(o)||o===null)&&D.call(r,o,Ir.isString(s)?s.trim():s,l,v))===!0&&_(o,l?l.concat(s):[s])}),n.pop()}}if(!Ir.isObject(e))throw new TypeError("data must be an object");return _(e),r}function gW(e){const r={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(i){return r[i]})}function SE(e,r){this._pairs=[],e&&x4(e,this,r)}const yW=SE.prototype;yW.append=function(e,r){this._pairs.push([e,r])},yW.toString=function(e){const r=e?function(i){return e.call(this,i,gW)}:gW;return this._pairs.map(function(i){return r(i[0])+"="+r(i[1])},"").join("&")};function Xkt(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function vW(e,r,i){if(!r)return e;const B=i&&i.encode||Xkt,D=i&&i.serialize;let c;if(D?c=D(r,i):c=Ir.isURLSearchParams(r)?r.toString():new SE(r,i).toString(B),c){const m=e.indexOf("#");m!==-1&&(e=e.slice(0,m)),e+=(e.indexOf("?")===-1?"?":"&")+c}return e}const _W=class{constructor(){this.handlers=[]}use(r,i,B){return this.handlers.push({fulfilled:r,rejected:i,synchronous:B?B.synchronous:!1,runWhen:B?B.runWhen:null}),this.handlers.length-1}eject(r){this.handlers[r]&&(this.handlers[r]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(r){Ir.forEach(this.handlers,function(i){i!==null&&r(i)})}},bW={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Zkt=typeof URLSearchParams<"u"?URLSearchParams:SE,Jkt=typeof FormData<"u"?FormData:null,Kkt=typeof Blob<"u"?Blob:null,Qkt={isBrowser:!0,classes:{URLSearchParams:Zkt,FormData:Jkt,Blob:Kkt},protocols:["http","https","file","blob","url","data"]},xW=typeof window<"u"&&typeof document<"u",e7t=(e=>xW&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),t7t=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),a7t=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:xW,hasStandardBrowserEnv:e7t,hasStandardBrowserWebWorkerEnv:t7t},Symbol.toStringTag,{value:"Module"})),Of={...a7t,...Qkt};function n7t(e,r){return x4(e,new Of.classes.URLSearchParams,Object.assign({visitor:function(i,B,D,c){return Of.isNode&&Ir.isBuffer(i)?(this.append(B,i.toString("base64")),!1):c.defaultVisitor.apply(this,arguments)}},r))}function r7t(e){return Ir.matchAll(/\w+|\[(\w*)]/g,e).map(r=>r[0]==="[]"?"":r[1]||r[0])}function i7t(e){const r={},i=Object.keys(e);let B;const D=i.length;let c;for(B=0;B<D;B++)c=i[B],r[c]=e[c];return r}function wW(e){function r(i,B,D,c){let m=i[c++];if(m==="__proto__")return!0;const a=Number.isFinite(+m),y=c>=i.length;return m=!m&&Ir.isArray(D)?D.length:m,y?(Ir.hasOwnProp(D,m)?D[m]=[D[m],B]:D[m]=B,!a):((!D[m]||!Ir.isObject(D[m]))&&(D[m]=[]),r(i,B,D[m],c)&&Ir.isArray(D[m])&&(D[m]=i7t(D[m])),!a)}if(Ir.isFormData(e)&&Ir.isFunction(e.entries)){const i={};return Ir.forEachEntry(e,(B,D)=>{r(r7t(B),D,i,0)}),i}return null}function o7t(e,r,i){if(Ir.isString(e))try{return(r||JSON.parse)(e),Ir.trim(e)}catch(B){if(B.name!=="SyntaxError")throw B}return(i||JSON.stringify)(e)}const TE={transitional:bW,adapter:["xhr","http"],transformRequest:[function(e,r){const i=r.getContentType()||"",B=i.indexOf("application/json")>-1,D=Ir.isObject(e);if(D&&Ir.isHTMLForm(e)&&(e=new FormData(e)),Ir.isFormData(e))return B?JSON.stringify(wW(e)):e;if(Ir.isArrayBuffer(e)||Ir.isBuffer(e)||Ir.isStream(e)||Ir.isFile(e)||Ir.isBlob(e))return e;if(Ir.isArrayBufferView(e))return e.buffer;if(Ir.isURLSearchParams(e))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let c;if(D){if(i.indexOf("application/x-www-form-urlencoded")>-1)return n7t(e,this.formSerializer).toString();if((c=Ir.isFileList(e))||i.indexOf("multipart/form-data")>-1){const m=this.env&&this.env.FormData;return x4(c?{"files[]":e}:e,m&&new m,this.formSerializer)}}return D||B?(r.setContentType("application/json",!1),o7t(e)):e}],transformResponse:[function(e){const r=this.transitional||TE.transitional,i=r&&r.forcedJSONParsing,B=this.responseType==="json";if(e&&Ir.isString(e)&&(i&&!this.responseType||B)){const D=!(r&&r.silentJSONParsing)&&B;try{return JSON.parse(e)}catch(c){if(D)throw c.name==="SyntaxError"?Nl.from(c,Nl.ERR_BAD_RESPONSE,this,null,this.response):c}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Of.classes.FormData,Blob:Of.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Ir.forEach(["delete","get","head","post","put","patch"],e=>{TE.headers[e]={}});const EE=TE,s7t=Ir.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),l7t=e=>{const r={};let i,B,D;return e&&e.split(`
124
+ */const Sd={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"}},gH={itemsToShow:{default:Sd.itemsToShow,type:Number},itemsToScroll:{default:Sd.itemsToScroll,type:Number},wrapAround:{default:Sd.wrapAround,type:Boolean},throttle:{default:Sd.throttle,type:Number},snapAlign:{default:Sd.snapAlign,validator(e){return["start","end","center","center-even","center-odd"].includes(e)}},transition:{default:Sd.transition,type:Number},breakpoints:{default:Sd.breakpoints,type:Object},autoplay:{default:Sd.autoplay,type:Number},pauseAutoplayOnHover:{default:Sd.pauseAutoplayOnHover,type:Boolean},modelValue:{default:void 0,type:Number},mouseDrag:{default:Sd.mouseDrag,type:Boolean},touchDrag:{default:Sd.touchDrag,type:Boolean},dir:{default:Sd.dir,validator(e){return["rtl","ltr"].includes(e)}},i18n:{default:Sd.i18n,type:Object},settings:{default(){return{}},type:Object}};function ebt({config:e,slidesCount:r}){const{snapAlign:i,wrapAround:B,itemsToShow:D=1}=e;if(B)return Math.max(r-1,0);let c;switch(i){case"start":c=r-D;break;case"end":c=r-1;break;case"center":case"center-odd":c=r-Math.ceil((D-.5)/2);break;case"center-even":c=r-Math.ceil(D/2);break;default:c=0;break}return Math.max(c,0)}function tbt({config:e,slidesCount:r}){const{wrapAround:i,snapAlign:B,itemsToShow:D=1}=e;let c=0;if(i||D>r)return c;switch(B){case"start":c=0;break;case"end":c=D-1;break;case"center":case"center-odd":c=Math.floor((D-1)/2);break;case"center-even":c=Math.floor((D-2)/2);break;default:c=0;break}return c}function rE({val:e,max:r,min:i}){return r<i?e:Math.min(Math.max(e,i),r)}function abt({config:e,currentSlide:r,slidesCount:i}){const{snapAlign:B,wrapAround:D,itemsToShow:c=1}=e;let m=r;switch(B){case"center":case"center-odd":m-=(c-1)/2;break;case"center-even":m-=(c-2)/2;break;case"end":m-=c-1;break}return D?m:rE({val:m,max:i-c,min:0})}function yH(e){return e?e.reduce((r,i)=>{var B;return i.type===t.Fragment?[...r,...yH(i.children)]:((B=i.type)===null||B===void 0?void 0:B.name)==="CarouselSlide"?[...r,i]:r},[]):[]}function iE({val:e,max:r,min:i=0}){return e>r?iE({val:e-(r+1),max:r,min:i}):e<i?iE({val:e+(r+1),max:r,min:i}):e}function nbt(e,r){let i;return r?function(...B){const D=this;i||(e.apply(D,B),i=!0,setTimeout(()=>i=!1,r))}:e}function rbt(e,r){let i;return function(...B){i&&clearTimeout(i),i=setTimeout(()=>{e(...B),i=null},r)}}function ibt(e="",r={}){return Object.entries(r).reduce((i,[B,D])=>i.replace(`{${B}}`,String(D)),e)}var obt=t.defineComponent({name:"ARIA",setup(){const e=t.inject("config",t.reactive(Object.assign({},Sd))),r=t.inject("currentSlide",t.ref(0)),i=t.inject("slidesCount",t.ref(0));return()=>t.h("div",{class:["carousel__liveregion","carousel__sr-only"],"aria-live":"polite","aria-atomic":"true"},ibt(e.i18n.itemXofY,{currentSlide:r.value+1,slidesCount:i.value}))}}),sbt=t.defineComponent({name:"Carousel",props:gH,setup(e,{slots:r,emit:i,expose:B}){var D;const c=t.ref(null),m=t.ref([]),a=t.ref(0),y=t.ref(0),f=t.reactive(Object.assign({},Sd));let n=Object.assign({},Sd),v;const _=t.ref((D=e.modelValue)!==null&&D!==void 0?D:0),p=t.ref(0),l=t.ref(0),o=t.ref(0),s=t.ref(0);let d,u;t.provide("config",f),t.provide("slidesCount",y),t.provide("currentSlide",_),t.provide("maxSlide",o),t.provide("minSlide",s),t.provide("slideWidth",a);function h(){v=Object.assign({},e.breakpoints),n=Object.assign(Object.assign(Object.assign({},n),e),{i18n:Object.assign(Object.assign({},n.i18n),e.i18n),breakpoints:void 0}),b(n)}function g(){if(!v||!Object.keys(v).length)return;const ae=Object.keys(v).map(ie=>Number(ie)).sort((ie,de)=>+de-+ie);let ne=Object.assign({},n);ae.some(ie=>{const de=window.matchMedia(`(min-width: ${ie}px)`).matches;return de&&(ne=Object.assign(Object.assign({},ne),v[ie])),de}),b(ne)}function b(ae){Object.entries(ae).forEach(([ne,ie])=>f[ne]=ie)}const w=rbt(()=>{g(),x()},16);function x(){if(!c.value)return;const ae=c.value.getBoundingClientRect();a.value=ae.width/f.itemsToShow}function S(){y.value<=0||(l.value=Math.ceil((y.value-1)/2),o.value=ebt({config:f,slidesCount:y.value}),s.value=tbt({config:f,slidesCount:y.value}),f.wrapAround||(_.value=rE({val:_.value,max:o.value,min:s.value})))}t.onMounted(()=>{t.nextTick(()=>x()),setTimeout(()=>x(),1e3),g(),V(),window.addEventListener("resize",w,{passive:!0}),i("init")}),t.onUnmounted(()=>{u&&clearTimeout(u),d&&clearInterval(d),window.removeEventListener("resize",w,{passive:!0})});let C=!1;const T={x:0,y:0},k={x:0,y:0},A=t.reactive({x:0,y:0}),E=t.ref(!1),M=t.ref(!1),I=()=>{E.value=!0},N=()=>{E.value=!1};function z(ae){["INPUT","TEXTAREA","SELECT"].includes(ae.target.tagName)||(C=ae.type==="touchstart",C||ae.preventDefault(),!(!C&&ae.button!==0||U.value)&&(T.x=C?ae.touches[0].clientX:ae.clientX,T.y=C?ae.touches[0].clientY:ae.clientY,document.addEventListener(C?"touchmove":"mousemove",F,!0),document.addEventListener(C?"touchend":"mouseup",R,!0)))}const F=nbt(ae=>{M.value=!0,k.x=C?ae.touches[0].clientX:ae.clientX,k.y=C?ae.touches[0].clientY:ae.clientY;const ne=k.x-T.x,ie=k.y-T.y;A.y=ie,A.x=ne},f.throttle);function R(){const ae=f.dir==="rtl"?-1:1,ne=Math.sign(A.x)*.4,ie=Math.round(A.x/a.value+ne)*ae;if(ie&&!C){const de=he=>{he.stopPropagation(),window.removeEventListener("click",de,!0)};window.addEventListener("click",de,!0)}Z(_.value-ie),A.x=0,A.y=0,M.value=!1,document.removeEventListener(C?"touchmove":"mousemove",F,!0),document.removeEventListener(C?"touchend":"mouseup",R,!0)}function V(){!f.autoplay||f.autoplay<=0||(d=setInterval(()=>{f.pauseAutoplayOnHover&&E.value||q()},f.autoplay))}function $(){d&&(clearInterval(d),d=null),V()}const U=t.ref(!1);function Z(ae){const ne=f.wrapAround?ae:rE({val:ae,max:o.value,min:s.value});_.value===ne||U.value||(i("slide-start",{slidingToIndex:ae,currentSlideIndex:_.value,prevSlideIndex:p.value,slidesCount:y.value}),U.value=!0,p.value=_.value,_.value=ne,u=setTimeout(()=>{if(f.wrapAround){const ie=iE({val:ne,max:o.value,min:0});ie!==_.value&&(_.value=ie,i("loop",{currentSlideIndex:_.value,slidingToIndex:ae}))}i("update:modelValue",_.value),i("slide-end",{currentSlideIndex:_.value,prevSlideIndex:p.value,slidesCount:y.value}),U.value=!1,$()},f.transition))}function q(){Z(_.value+f.itemsToScroll)}function W(){Z(_.value-f.itemsToScroll)}const Q={slideTo:Z,next:q,prev:W};t.provide("nav",Q),t.provide("isSliding",U);const X=t.computed(()=>abt({config:f,currentSlide:_.value,slidesCount:y.value}));t.provide("slidesToScroll",X);const J=t.computed(()=>{const ae=f.dir==="rtl"?-1:1,ne=X.value*a.value*ae;return{transform:`translateX(${A.x-ne}px)`,transition:`${U.value?f.transition:0}ms`,margin:f.wrapAround?`0 -${y.value*a.value}px`:"",width:"100%"}});function ee(){h(),g(),S(),x(),$()}Object.keys(gH).forEach(ae=>{["modelValue"].includes(ae)||t.watch(()=>e[ae],ee)}),t.watch(()=>e.modelValue,ae=>{ae!==_.value&&Z(Number(ae))}),t.watch(y,S),i("before-init"),h();const le={config:f,slidesCount:y,slideWidth:a,next:q,prev:W,slideTo:Z,currentSlide:_,maxSlide:o,minSlide:s,middleSlide:l};B({updateBreakpointsConfigs:g,updateSlidesData:S,updateSlideWidth:x,initDefaultConfigs:h,restartCarousel:ee,slideTo:Z,next:q,prev:W,nav:Q,data:le});const oe=r.default||r.slides,se=r.addons,ce=t.reactive(le);return()=>{const ae=yH(oe==null?void 0:oe(ce)),ne=(se==null?void 0:se(ce))||[];ae.forEach((pe,me)=>pe.props.index=me);let ie=ae;if(f.wrapAround){const pe=ae.map((_e,we)=>t.cloneVNode(_e,{index:-ae.length+we,isClone:!0,key:`clone-before-${we}`})),me=ae.map((_e,we)=>t.cloneVNode(_e,{index:ae.length+we,isClone:!0,key:`clone-after-${we}`}));ie=[...pe,...ae,...me]}m.value=ae,y.value=Math.max(ae.length,1);const de=t.h("ol",{class:"carousel__track",style:J.value,onMousedownCapture:f.mouseDrag?z:null,onTouchstartPassiveCapture:f.touchDrag?z:null},ie),he=t.h("div",{class:"carousel__viewport"},de);return t.h("section",{ref:c,class:{carousel:!0,"is-sliding":U.value,"is-dragging":M.value,"is-hover":E.value,"carousel--rtl":f.dir==="rtl"},dir:f.dir,"aria-label":f.i18n.ariaGallery,tabindex:"0",onMouseenter:I,onMouseleave:N},[he,ne,t.h(obt)])}}}),vH;(function(e){e.arrowUp="arrowUp",e.arrowDown="arrowDown",e.arrowRight="arrowRight",e.arrowLeft="arrowLeft"})(vH||(vH={}));var lbt=t.defineComponent({name:"CarouselSlide",props:{index:{type:Number,default:1},isClone:{type:Boolean,default:!1}},setup(e,{slots:r}){const i=t.inject("config",t.reactive(Object.assign({},Sd))),B=t.inject("currentSlide",t.ref(0)),D=t.inject("slidesToScroll",t.ref(0)),c=t.inject("isSliding",t.ref(!1)),m=()=>e.index===B.value,a=()=>e.index===B.value-1,y=()=>e.index===B.value+1,f=()=>{const n=Math.floor(D.value),v=Math.ceil(D.value+i.itemsToShow-1);return e.index>=n&&e.index<=v};return()=>{var n;return t.h("li",{style:{width:`${100/i.itemsToShow}%`},class:{carousel__slide:!0,"carousel__slide--clone":e.isClone,"carousel__slide--visible":f(),"carousel__slide--active":m(),"carousel__slide--prev":a(),"carousel__slide--next":y(),"carousel__slide--sliding":c.value},"aria-hidden":!f()},(n=r.default)===null||n===void 0?void 0:n.call(r))}}});const cbt=(e,r)=>{const i=e.__vccOpts||e;for(const[B,D]of r)i[B]=D;return i},ubt=e=>(t.pushScopeId("data-v-54620d25"),e=e(),t.popScopeId(),e),dbt={class:"gsc-carousel"},hbt={key:0},pbt=ubt(()=>t.createElementVNode("div",null,"no hay",-1)),fbt=[pbt],mbt={class:"gsc-carousel__2d__slides"},gbt={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ybt=["fill"],vbt={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},_bt=["fill"],bbt={class:"gsc-carousel__2d__navigation"},xbt={width:"8",height:"15",viewBox:"0 0 8 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wbt=["stroke"],kbt={key:1,class:"gsc-carousel__2d__navigation__pagination"},Cbt=["onClick"],Sbt={width:"7",height:"15",viewBox:"0 0 7 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Tbt=["stroke"],Ebt={__name:"GSC-Carousel",props:{currentItemIndex:{type:Number,default:0},items:{type:Array,default:()=>[]},is3d:{type:Boolean,default:!1},isPaginationVisible:{type:Boolean,default:!1},areNavigationArrowsVisible:{type:Boolean,default:!0},defaultItemByIndex:{type:Number,default:0},defaultItemByProp:{type:Object,default:null,validator:e=>["propName","value"].every(r=>r in e)},navigationHeight:{type:Number,default:4},navigationBorderRadius:{type:Number,default:4},navigationColor:{type:String,default:"rgba(255, 255, 255, 0.4)"},navigationActiveColor:{type:String,default:"#cbee6b"},navigationActiveWidth:{type:Number,default:30},arrowsColor:{type:String,default:"#cbee6b"},arrowsMaxWidth:{type:String,default:"20px"},wrapAround:{type:Boolean,default:!1},itemsToShow:{type:Number,default:1},isMainSlidePriority:{type:Boolean,default:!1},areSlidesArrowsVisible:{type:Boolean,default:!1},slideLeftArrowBackgroundImage:{type:String,default:"linear-gradient(to right, rgba(13, 29, 41, 1), rgba(0, 0, 0, 0))"},slideRightArrowBackgroundImage:{type:String,default:"linear-gradient(to left, rgba(13, 29, 41, 1), rgba(0, 0, 0, 0))"},areSlidesArrowsRounded:{type:Boolean,default:!1},slidesArrowsLeftAndRight:{type:String,default:"20px"},secondarySlidesOpacity:{type:Number,default:.8},marginTop:{type:String,default:"0"}},emits:["input","update:currentItemIndex"],setup(e,{expose:r,emit:i}){const B=e;t.useCssVars(o=>({"2c72d674":e.slideLeftArrowBackgroundImage,"90a63f40":e.slidesArrowsLeftAndRight,"2627d097":e.slideRightArrowBackgroundImage,"1904d43f":e.marginTop,cfb58986:e.secondarySlidesOpacity}));const D=t.ref(null),c=t.ref({}),m=t.ref(0),a=t.ref(!1);t.watch(D,o=>{o&&a.value?(a.value=!1,y(B.items)):o&&o.slideTo&&o.slideTo(m.value)},{deep:!0}),t.watch(()=>B.currentItemIndex,o=>{m.value!==o&&_(o)}),t.watch(()=>B.defaultItemByIndex,o=>{m.value!==o&&_(o)}),t.watch(()=>B.items,o=>{D.value?y(o):a.value=!0},{immediate:!0});function y(o){o&&o.length&&D.value&&setTimeout(()=>{if(B.defaultItemByProp){const s=B.items.findIndex(d=>d[B.defaultItemByProp.propName]===B.defaultItemByProp.value);s!==-1?(m.value=s,c.value=o[s]):(m.value=0,c.value=o[0])}else m.value=B.defaultItemByIndex,c.value=o[B.defaultItemByIndex];D.value.slideTo&&D.value.slideTo(m.value),c.value&&m.value===0&&i("input",{selectedItem:c.value,selectedItemIndex:m.value})},500)}function f(){D.value&&D.value.next()}function n(){D.value&&D.value.prev()}function v(){D.value&&D.value.updateSlideWidth()}function _(o){D.value&&D.value.slideTo(o)}function p(o){D.value.slideTo(o)}function l(o){const s=o.slidingToIndex<0?B.items.length-1:o.slidingToIndex===B.items.length?0:o.slidingToIndex;m.value=s,c.value=B.items[s],i("update:currentItemIndex",s),i("input",{selectedItem:c.value,selectedItemIndex:m.value})}return r({prev:n,next:f,updateSlideWidth:v,slideTo:_}),(o,s)=>(t.openBlock(),t.createElementBlock("div",dbt,[B.is3d?(t.openBlock(),t.createElementBlock("div",hbt,fbt)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(["gsc-carousel__2d",{"main-slide-priority":e.isMainSlidePriority}])},[t.createElementVNode("div",mbt,[t.createVNode(t.unref(sbt),{ref_key:"carousel2d",ref:D,"items-to-show":e.itemsToShow,"wrap-around":e.wrapAround,onSlideStart:l},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(d,u)=>(t.openBlock(),t.createBlock(t.unref(lbt),{key:u},{default:t.withCtx(()=>[t.renderSlot(o.$slots,"default",{item:d},void 0,!0)]),_:2},1024))),128))]),_:3},8,["items-to-show","wrap-around"])]),e.areSlidesArrowsVisible&&e.items.length>1?(t.openBlock(),t.createElementBlock("div",{key:0,class:"gsc-carousel__2d__arrow-left",style:t.normalizeStyle("max-width:"+e.arrowsMaxWidth+"!important"),onClick:s[0]||(s[0]=d=>D.value.prev())},[t.createElementVNode("div",{class:t.normalizeClass(["gsc-carousel__2d__slide-button",{rounded:e.areSlidesArrowsRounded}])},[(t.openBlock(),t.createElementBlock("svg",gbt,[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,ybt)]))],2)],4)):t.createCommentVNode("",!0),e.areSlidesArrowsVisible&&e.items.length>1?(t.openBlock(),t.createElementBlock("div",{key:1,class:"gsc-carousel__2d__arrow-right",style:t.normalizeStyle("max-width:"+e.arrowsMaxWidth+"!important"),onClick:s[1]||(s[1]=d=>f())},[t.createElementVNode("div",{class:t.normalizeClass(["gsc-carousel__2d__slide-button",{rounded:e.areSlidesArrowsRounded}])},[(t.openBlock(),t.createElementBlock("svg",vbt,[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,_bt)]))],2)],4)):t.createCommentVNode("",!0),t.createElementVNode("div",bbt,[e.areNavigationArrowsVisible?(t.openBlock(),t.createElementBlock("div",{key:0,class:"gsc-carousel__2d__navigation__arrow-left",onClick:s[2]||(s[2]=d=>n())},[(t.openBlock(),t.createElementBlock("svg",xbt,[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,wbt)]))])):t.createCommentVNode("",!0),e.isPaginationVisible?(t.openBlock(),t.createElementBlock("div",kbt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(d,u)=>(t.openBlock(),t.createElementBlock("div",{key:`i-${u}`,class:"gsc-carousel__2d__navigation__pagination__item",style:t.normalizeStyle({height:`${B.navigationHeight}px`,width:`${m.value===u?B.navigationActiveWidth:B.navigationActiveWidth/2}px`,borderRadius:`${B.navigationBorderRadius}px`,backgroundColor:`${m.value===u?B.navigationActiveColor:B.navigationColor}`,transition:"all 0.1s ease-in-out"}),onClick:h=>p(u)},null,12,Cbt))),128))])):t.createCommentVNode("",!0),e.areNavigationArrowsVisible?(t.openBlock(),t.createElementBlock("div",{key:2,class:"gsc-carousel__2d__navigation__arrow-right",onClick:s[3]||(s[3]=d=>D.value.next())},[(t.openBlock(),t.createElementBlock("svg",Sbt,[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,Tbt)]))])):t.createCommentVNode("",!0)])],2))]))}},Abt=cbt(Ebt,[["__scopeId","data-v-54620d25"]]),oE=(e,r)=>{const i=e.__vccOpts||e;for(const[B,D]of r)i[B]=D;return i};let _H=null;const sE={components:{},props:{titleCategory:{type:String,default:"RESUMEN"},dateGame:{type:String,default:""},colorBackgroundHome:{type:String,default:"#000000"},colorBackgroundAway:{type:String,default:"#FFFFFF"},logoHome:{type:String,default:""},matchday:{type:String,default:""},seasonName:{type:String,default:""},logoAway:{type:String,default:""},score:{type:String,default:""},background:{type:String,default:""}},data(){return{gamesContainerWidth:0}},computed:{date(){const e=this.gamesContainerWidth;return e<=400?"date400":e<=540?"date540":e<=650?"date650":"date"},seasoncontainer(){const e=this.gamesContainerWidth;return e<=400?"season-container400":e<=540?"season-container540":e<=650?"season-container650":"season-container"},matchcontainer(){const e=this.gamesContainerWidth;return e<=400?"match-container400":e<=540?"match-container540":e<=650?"match-container650":"match-container"},containerinfogame(){const e=this.gamesContainerWidth;return e<=400?"container-info-game400":e<=540?"container-info-game540":e<=650?"container-info-game650":"container-info-game"},playbutton(){const e=this.gamesContainerWidth;return e<=400?"play-button400":e<=540?"play-button540":e<=650?"play-button650":"play-button"},baselogo(){const e=this.gamesContainerWidth;return e<=400?"base-logo400":e<=540?"base-logo540":e<=650?"base-logo650":"base-logo"},baselogoright(){const e=this.gamesContainerWidth;return e<=400?"base-logo-right400":e<=540?"base-logo-right540":e<=650?"base-logo-right650":"base-logo-right"},thumbnailhighlights(){const e=this.gamesContainerWidth;return e<=400?"thumbnail-highlights400":e<=540?"thumbnail-highlights540":e<=650?"thumbnail-highlights650":"thumbnail-highlights"},teamlogo(){const e=this.gamesContainerWidth;return e<=400?"team-logo400":e<=540?"team-logo540":e<=650?"team-logo650":"team-logo"},logoright(){const e=this.gamesContainerWidth;return e<=400?"logo-right400":e<=540?"logo-right540":e<=650?"logo-right650":"logo-right"},secondline(){const e=this.gamesContainerWidth;return e<=400?"second-line400":e<=540?"second-line540":e<=650?"second-line650":"second-line"},titlename(){const e=this.gamesContainerWidth;return e<=400?"title-name400":e<=540?"title-name540":e<=650?"title-name650":"title-name"}},methods:{onclickPlayVideos(){this.$emit("onclickPlayVideos")},setUpResizeObserver(){if(window.ResizeObserver)_H=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),_H.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},bH=()=>{t.useCssVars(e=>({"41af28e8":e.colorBackgroundHome+"45","90ae2246":e.colorBackgroundAway+"45","1d262e1e":e.colorBackgroundHome,"1d231c2d":e.colorBackgroundAway}))},xH=sE.setup;sE.setup=xH?(e,r)=>(bH(),xH(e,r)):bH;const h4=e=>(t.pushScopeId("data-v-fd9d1e65"),e=e(),t.popScopeId(),e),Mbt=h4(()=>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)),Ibt=[Mbt],Pbt=h4(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/paper-texture.png",alt:"",class:"paper-texture position-image"},null,-1)),Bbt=["src"],Nbt=h4(()=>t.createElementVNode("div",{class:"gradient-back position-image"},null,-1)),zbt=h4(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/halftone-texture.png",alt:"",class:"halftone-texture position-image"},null,-1)),Obt=["src"],Fbt=["src"],Lbt={class:"text-container"};function Dbt(e,r,i,B,D,c){return t.openBlock(),t.createElementBlock("div",{ref:"gamesContainer",class:t.normalizeClass(c.thumbnailhighlights)},[t.createElementVNode("div",{class:t.normalizeClass(c.playbutton),onClick:r[0]||(r[0]=(...m)=>c.onclickPlayVideos&&c.onclickPlayVideos(...m))},Ibt,2),i.dateGame!=""?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(c.date)},t.toDisplayString(i.dateGame),3)):t.createCommentVNode("",!0),i.matchday!=""&&i.seasonName!=""?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(c.containerinfogame)},[i.matchday!=""?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(c.matchcontainer)},t.toDisplayString(i.matchday),3)):t.createCommentVNode("",!0),i.seasonName!=""?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(c.seasoncontainer)},t.toDisplayString(i.seasonName),3)):t.createCommentVNode("",!0)],2)):t.createCommentVNode("",!0),Pbt,t.createElementVNode("img",{src:i.background,alt:"",class:"bkg-blackwhite position-image"},null,8,Bbt),t.createElementVNode("div",{class:t.normalizeClass([c.baselogo,"position-image"])},null,2),t.createElementVNode("div",{class:t.normalizeClass(c.baselogoright)},null,2),Nbt,zbt,t.createElementVNode("img",{src:i.logoHome,alt:"",class:t.normalizeClass(c.teamlogo)},null,10,Obt),t.createElementVNode("img",{src:i.logoAway,alt:"",class:t.normalizeClass(c.logoright)},null,10,Fbt),t.createElementVNode("div",Lbt,[t.createElementVNode("span",{class:t.normalizeClass(c.secondline)},t.toDisplayString(i.score),3),t.createElementVNode("div",{class:t.normalizeClass(c.titlename)},t.toDisplayString(i.titleCategory),3)])],2)}const Rbt=oE(sE,[["render",Dbt],["__scopeId","data-v-fd9d1e65"]]);let wH=null;const lE={components:{},props:{type:{type:Number,default:0},colorBackgroundHome:{type:String,default:"#000000"},colorBackgroundAway:{type:String,default:"#FFFFFF"},nameCategory:{type:String,default:""},date:{type:String,default:""},seasonName:{type:String,default:""},matchday:{type:String,default:""},photoProfile:{type:String,default:""},logoHome:{type:String,default:""},logoAway:{type:String,default:""},scoreHome:{type:String,default:""},scoreAway:{type:String,default:""},background:{type:String,default:""},typeImg:{type:Number,default:0},nameHomeTeam:{type:String,default:""},nameAwayTeam:{type:String,default:""},namePlayer:{type:String,default:""}},data(){return{gamesContainerWidth:0}},computed:{playbutton(){const e=this.gamesContainerWidth;return e<=400?"play-button400":e<=540?"play-button540":e<=650?"play-button650":"play-button"},points(){const e=this.gamesContainerWidth;return e<=400?"points400":e<=540?"points540":e<=650?"points650":"points"},containerinfogame(){const e=this.gamesContainerWidth;return e<=400?"container-info-game400":e<=540?"container-info-game540":e<=650?"container-info-game650":"container-info-game"},teamname(){const e=this.gamesContainerWidth;return e<=400?"team-name400":e<=540?"team-name540":e<=650?"team-name650":"team-name"},teamscore(){const e=this.gamesContainerWidth;return e<=400?"team-score400":e<=540?"team-score540":e<=650?"team-score650":"team-score"},teamlogo(){const e=this.gamesContainerWidth;return e<=400?"team-logo400":e<=540?"team-logo540":e<=650?"team-logo650":"team-logo"},hometeam(){const e=this.gamesContainerWidth;return e<=400?"home-team400":e<=540?"home-team540":e<=650?"home-team650":"home-team"},awayteam(){const e=this.gamesContainerWidth;return e<=400?"away-team400":e<=540?"away-team540":e<=650?"away-team650":"away-team"},texttitle(){const e=this.gamesContainerWidth;return e<=400?"text-title400":e<=540?"text-title540":e<=650?"text-title650":"text-title"},matchcontainer(){const e=this.gamesContainerWidth;return e<=400?"match-container400":e<=540?"match-container540":e<=650?"match-container650":"match-container"},seasonnameContainer(){const e=this.gamesContainerWidth;return e<=280?"seasonname280":e<=400?"seasonname400":e<=540?"seasonname540":e<=650?"seasonname650":"seasonname"},matchboxContainer(){const e=this.gamesContainerWidth;return e<=400?"matchbox400":e<=540?"matchbox540":e<=650?"matchbox650":"matchbox"},seasoncontainer(){const e=this.gamesContainerWidth;return e<=400?"season-container400":e<=540?"season-container540":e<=650?"season-container650":"season-container"},texttitle2(){const e=this.gamesContainerWidth;return e<=300?"text-title2400":e<=540?"text-title2540":e<=650?"text-title2650":"text-title2"},playerimage(){const e=this.gamesContainerWidth;return e<=400?"player-image400":e<=540?"player-image540":e<=650?"player-image650":"player-image"},thumbnailhighlights(){const e=this.gamesContainerWidth;return e<=400?"thumbnail-highlights400":e<=540?"thumbnail-highlights540":e<=650?"thumbnail-highlights650":"thumbnail-highlights"}},methods:{onclickPlayVideos(){this.$emit("onclickPlayVideos")},setUpResizeObserver(){if(window.ResizeObserver)wH=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),wH.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},kH=()=>{t.useCssVars(e=>({"16e4cc48":e.colorBackgroundHome,"16e1ba57":e.colorBackgroundAway,"0a08a218":e.colorBackgroundAway+"62",31881400:e.colorBackgroundHome+"36"}))},CH=lE.setup;lE.setup=CH?(e,r)=>(kH(),CH(e,r)):kH;const p4=e=>(t.pushScopeId("data-v-4fef1a3b"),e=e(),t.popScopeId(),e),Vbt=p4(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/paper-texture.png",alt:"",class:"paper-texture position-image"},null,-1)),$bt=p4(()=>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)),jbt=[$bt],Ubt={class:"player-container"},Gbt=["src"],Hbt=["src"],Wbt=["src"],qbt={class:"container-score"},Ybt=["src"],Xbt=["src"],Zbt=["src"],Jbt=p4(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/halftone-texture.png",alt:"",class:"halftone-texture position-image"},null,-1)),Kbt=p4(()=>t.createElementVNode("div",{class:"gradient-color"},null,-1));function Qbt(e,r,i,B,D,c){return t.openBlock(),t.createElementBlock("div",{ref:"gamesContainer",class:t.normalizeClass(c.thumbnailhighlights)},[Vbt,t.createElementVNode("div",{class:t.normalizeClass(c.playbutton),onClick:r[0]||(r[0]=(...m)=>c.onclickPlayVideos&&c.onclickPlayVideos(...m))},jbt,2),t.createElementVNode("div",Ubt,[t.createElementVNode("div",{class:t.normalizeClass(c.containerinfogame)},[t.createElementVNode("div",{class:t.normalizeClass(c.matchcontainer)},[t.createElementVNode("div",{class:t.normalizeClass(c.matchboxContainer)},t.toDisplayString(i.matchday),3),t.createElementVNode("div",{class:t.normalizeClass(c.seasonnameContainer)},t.toDisplayString(i.seasonName),3)],2),t.createElementVNode("div",{class:t.normalizeClass(c.seasoncontainer)},t.toDisplayString(i.date),3)],2),i.type==0?(t.openBlock(),t.createElementBlock("span",{key:0,class:t.normalizeClass(c.texttitle)},t.toDisplayString(i.nameCategory),3)):(t.openBlock(),t.createElementBlock("span",{key:1,class:t.normalizeClass(c.texttitle2)},t.toDisplayString(i.nameCategory),3)),i.typeImg==0?(t.openBlock(),t.createElementBlock("img",{key:2,src:i.photoProfile,class:t.normalizeClass(c.playerimage)},null,10,Gbt)):t.createCommentVNode("",!0),i.typeImg==1?(t.openBlock(),t.createElementBlock("img",{key:3,src:i.photoProfile,alt:""},null,8,Hbt)):t.createCommentVNode("",!0),i.typeImg==2?(t.openBlock(),t.createElementBlock("img",{key:4,src:i.photoProfile,class:"img-number"},null,8,Wbt)):t.createCommentVNode("",!0),t.createElementVNode("div",qbt,[t.createElementVNode("div",{class:t.normalizeClass(c.hometeam)},[t.createElementVNode("span",{class:t.normalizeClass(c.teamname)},t.toDisplayString(i.nameHomeTeam),3),t.createElementVNode("img",{src:i.logoHome,alt:"",class:t.normalizeClass(c.teamlogo)},null,10,Ybt),t.createElementVNode("span",{class:t.normalizeClass(c.teamscore)},t.toDisplayString(i.scoreHome),3)],2),t.createElementVNode("span",{class:t.normalizeClass(c.points)},":",2),t.createElementVNode("div",{class:t.normalizeClass(c.awayteam)},[t.createElementVNode("span",{class:t.normalizeClass(c.teamscore)},t.toDisplayString(i.scoreAway),3),t.createElementVNode("img",{src:i.logoAway,alt:"",class:t.normalizeClass(c.teamlogo)},null,10,Xbt),t.createElementVNode("span",{class:t.normalizeClass(c.teamname)},t.toDisplayString(i.nameAwayTeam),3)],2)])]),t.createElementVNode("img",{src:i.background,alt:"",class:"bkg-blackwhite position-image"},null,8,Zbt),Jbt,Kbt],2)}const ext={components:{GSCCarousel:Abt,GSCThumbnailHighlightGameHistoric:Rbt,GSCThumbnailHighlightGamePlayer:oE(lE,[["render",Qbt],["__scopeId","data-v-4fef1a3b"]])},props:{items:{type:Array,default:()=>[1,2,3]},data:{type:Object,default:()=>{}},title:{type:String,default:"TODAS SUS JUGADAS"},canPlayVideos:{type:Boolean,default:!0},videoPrivilegesPlayingAs:{type:Set,default:()=>new Set([1,2])},privilegesTeamId:{type:Number,default:0}},data(){return{highlightsWidth:0,printData:[],resizeObserverGSCH:null,token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",lastHistoricGamesUrl:""}},watch:{data:{immediate:!0,handler(e){this.getData(e)}}},computed:{printDataFiltered(){return this.canPlayVideos?this.printData.filter(e=>this.videoPrivilegesPlayingAs.has(e.playingAs)):[]},isMobile(){return this.highlightsWidth<580},carouselProps(){return this.isMobile?{wrapAround:!0,itemsToShow:1.2,isMainSlidePriority:!0,areSlidesArrowsVisible:!1,areSlidesArrowsRounded:!1,areNavigationArrowsVisible:!1,isPaginationVisible:!0}:{wrapAround:!0,itemsToShow:1.8,isMainSlidePriority:!0,areSlidesArrowsVisible:!0,areSlidesArrowsRounded:!0,areNavigationArrowsVisible:!1}}},methods:{getPlayingAs(e,r){return e.home_team===(r||this.data.team)?1:2},obtenerNombreCompletoFecha(e){if(e){const r=new Date(e),i=["Domingo","Lunes","Martes","Miércoles","Jueves","Viernes","Sábado"][r.getUTCDay()],B=r.getUTCDate(),D=["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"][r.getUTCMonth()];return`${i} ${B} de ${D}`}else return""},onclickPlayVideos(e){var r=[];e.type==2?e.data.position_id==1?e.data.has_relevants==1?e.data.category==0?r=[55,324,323,608,39,774,802,52,53,40,42,54]:r=e.data.category:r=[55,324,323,608,39,774,802,52,53,40,42,54]:e.data.has_relevants==1?e.data.category==0?r=[12,35,10,27,607,61,519,98,101,109,112,121,122,127,128,135,136,141,142,161,170,179,702,730,466,217,211,232,235,239,242,282,284,289,291,296,485,486,487,488,14,15,257]:r=e.data.category:r=[56,57,59,60,326,213,214,215,216,583,584,122,123,124,125,585,586,128,129,130,131,133,327,587,588,136,137,138,139,589,590,142,143,144,145,146,147,485,486,487,488,489,490,491,492,10,27,597,598,538,539,599,600,541,542,601,602,545,546,603,604,548,549,561,562,100,563,564,103,104,105,106,107,108,565,566,111,567,568,114,115,116,117,118,119,4,88,5,34,402,459,460,461,233,403,456,457,458,236,404,453,454,455,240,405,450,451,452,243,408,447,448,449,283,409,444,445,446,285,410,441,442,443,290,411,438,439,440,292,412,435,436,437,297,414,415,416,417,244,418,419,420,421,401,581,582,331,506,530,579,580,334,507,531,577,578,344,508,532,575,576,424,509,533,573,574,341,529,534,571,572,340,528,535,569,570,427,527,536,348,349,350,465,352,353,354,466,14,52,15,53,218,219,220,221,496,497,498,499,500,501,502,503,217,504,505,521,522,543,33,209,208,517,206,207,26,325,16,51,463,151,154,156,591,592,159,162,163,429,165,593,594,168,171,172,430,174,595,596,177,180,181,431,467,358,361,363,366,369,370,469,372,376,378,379,470,381,385,387,388,471,607,608,210,212]:e.type==3?e.data.category==0?r=[607,608,12,55,54,35,14,52,15,53,466,477,40,257,39]:r=e.data.category:e.data.category!=0?r=e.data.category:r=[607,608,12,55,54,35,14,52,15,53,466,477];const i=[1,2,3];let B={seasonId:e.data.season_id,mainSectionType:1,playListType:e.type,categoryIds:r,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]:i,advancedFilter:{playListTitle:""}};e.data.category!==0&&(B.advancedFilter.mainCategoryId=e.data.category),this.$emit("openmedia",B)},play(e){this.$emit("play",e)},async getData(e){this.$emit("loading",!0);const r=Q_t.create({headers:{Authorization:`${this.token}`}});var i=[],B={};if(e.type=="player"){const D=await r.get("https://uof4tt5l46.execute-api.us-west-2.amazonaws.com/prod/v3/playerInfo/"+e.season+"/"+e.player);if(D.data.seasons[e.season])for(let c=0;c<D.data.seasons[e.season].games_played.length;c++)B={playingAs:this.getPlayingAs(D.data.seasons[e.season].games_played[c],D.data.team_id),category:0,player_id:D.data.player_id,position_id:D.data.position_id,color:D.data.info_thumbnails.colors.background_color,photo_profile:D.data.info_thumbnails.images.player_in_action[0]?"https://golstatsimages.blob.core.windows.net/images-library/"+D.data.info_thumbnails.images.player_in_action[0]:D.data.info_thumbnails.player_profile,team_logo:"https://az755631.vo.msecnd.net/teams-150/"+D.data.seasons[e.season].games_played[c].home_team+".png",player_name:D.data.seasons[e.season].games_played[c].home_team_acronym+" "+D.data.seasons[e.season].games_played[c].home_team_score+" : "+D.data.seasons[e.season].games_played[c].visiting_team_score+" "+D.data.seasons[e.season].games_played[c].visiting_team_acronym,team_id:D.data.team_id,has_relevants:D.data.seasons[e.season].games_played[c].has_relevants,team_id_b:D.data.seasons[e.season].games_played[c].home_team,season_id:D.data.seasons[e.season].games_played[c].season_id,name:D.data.seasons[e.season].games_played[c].player_name,seasonname:D.data.seasons[e.season].name.replace("Clausura","CL ").replace("Apertura","AP "),game_id:D.data.seasons[e.season].games_played[c].game_id,match:D.data.seasons[e.season].games_played[c].matchday_name.replace("Matchday","JOR").replace("de Final","").replace("Playoffs 1","CFI").replace("Playoffs 2","CFV").replace("Playoffs 3","SFI").replace("Playoffs 4","SFV").replace("Playoffs 5","FI").replace("Playoffs 6","FV"),date:this.obtenerNombreCompletoFecha(D.data.seasons[e.season].games_played[c].date),scorehome:D.data.seasons[e.season].games_played[c].home_team_score,scoreaway:D.data.seasons[e.season].games_played[c].visiting_team_score,hometeamacronym:D.data.seasons[e.season].games_played[c].home_team_acronym,visitingteamacronym:D.data.seasons[e.season].games_played[c].visiting_team_acronym,background:D.data.info_thumbnails.images.background_player_in_action[0]?"https://golstatsimages.blob.core.windows.net/images-library/"+D.data.info_thumbnails.images.background_player_in_action[0]:D.data.info_thumbnails.player_profile,backgroundhome:D.data.seasons[e.season].games_played[c].info_thumbnails.home_colors.background_color,backgroundaway:D.data.seasons[e.season].games_played[c].info_thumbnails.away_colors.background_color,logohome:"https://az755631.vo.msecnd.net/teams-150/"+D.data.seasons[e.season].games_played[c].home_team+".png",logoaway:"https://az755631.vo.msecnd.net/teams-150/"+D.data.seasons[e.season].games_played[c].visiting_team+".png",total:D.data.seasons[e.season].games_played[c].matchday_abbreviation.replace("M","Jor "),background_card:"https://az755631.vo.msecnd.net/golstats2-teams/"+D.data.seasons[e.season].games_played[c].home_team+"_"+D.data.seasons[e.season].games_played[c].season_id+"_r1.jpg"},i.push(B);else for(let c=0;c<D.data.national_seasons[e.season].games_played.length;c++)B={playingAs:this.getPlayingAs(D.data.national_seasons[e.season].games_played[c],D.data.team_id),category:0,player_id:D.data.player_id,position_id:D.data.position_id,color:D.data.info_thumbnails.colors.background_color,photo_profile:D.data.info_thumbnails.images.player_in_action[0]?"https://golstatsimages.blob.core.windows.net/images-library/"+D.data.info_thumbnails.images.player_in_action[0]:D.data.info_thumbnails.player_profile,team_logo:"https://az755631.vo.msecnd.net/teams-150/"+D.data.national_seasons[e.season].games_played[c].home_team+".png",player_name:D.data.national_seasons[e.season].games_played[c].home_team_acronym+" "+D.data.national_seasons[e.season].games_played[c].home_team_score+" : "+D.data.national_seasons[e.season].games_played[c].visiting_team_score+" "+D.data.national_seasons[e.season].games_played[c].visiting_team_acronym,team_id:D.data.team_id,has_relevants:D.data.national_seasons[e.season].games_played[c].has_relevants,team_id_b:D.data.national_seasons[e.season].games_played[c].home_team,season_id:D.data.national_seasons[e.season].games_played[c].season_id,name:D.data.national_seasons[e.season].games_played[c].player_name,seasonname:D.data.national_seasons[e.season].name.replace("Clausura","CL ").replace("Apertura","AP "),game_id:D.data.national_seasons[e.season].games_played[c].game_id,match:D.data.national_seasons[e.season].games_played[c].matchday_name.replace("Matchday","JOR").replace("de Final","").replace("Playoffs 1","CFI").replace("Playoffs 2","CFV").replace("Playoffs 3","SFI").replace("Playoffs 4","SFV").replace("Playoffs 5","FI").replace("Playoffs 6","FV"),date:this.obtenerNombreCompletoFecha(D.data.national_seasons[e.season].games_played[c].date),scorehome:D.data.national_seasons[e.season].games_played[c].home_team_score,scoreaway:D.data.national_seasons[e.season].games_played[c].visiting_team_score,hometeamacronym:D.data.national_seasons[e.season].games_played[c].home_team_acronym,visitingteamacronym:D.data.national_seasons[e.season].games_played[c].visiting_team_acronym,background:D.data.info_thumbnails.images.background_player_in_action[0]?"https://golstatsimages.blob.core.windows.net/images-library/"+D.data.info_thumbnails.images.background_player_in_action[0]:D.data.info_thumbnails.player_profile,backgroundhome:D.data.national_seasons[e.season].games_played[c].info_thumbnails.home_colors.background_color,backgroundaway:D.data.national_seasons[e.season].games_played[c].info_thumbnails.away_colors.background_color,logohome:"https://az755631.vo.msecnd.net/teams-150/"+D.data.national_seasons[e.season].games_played[c].home_team+".png",logoaway:"https://az755631.vo.msecnd.net/teams-150/"+D.data.national_seasons[e.season].games_played[c].visiting_team+".png",total:D.data.national_seasons[e.season].games_played[c].matchday_abbreviation.replace("M","Jor "),background_card:"https://az755631.vo.msecnd.net/golstats2-teams/"+D.data.national_seasons[e.season].games_played[c].home_team+"_"+D.data.national_seasons[e.season].games_played[c].season_id+"_r1.jpg"},i.push(B)}else if(e.type=="historic"){const D="https://fxtcaw9tw6.execute-api.us-east-2.amazonaws.com/prod/historic/games/"+e.game;if(this.lastHistoricGamesUrl===D)return;this.lastHistoricGamesUrl=D;const c=await r.get(D);for(let a=0;a<c.data.plays.length;a++)B={teamId:c.data.plays[a][2],player:"Jornada "+c.data.plays[a][6],player_name:c.data.plays[a][4],season_id:c.data.plays[a][31],game_id:c.data.plays[a][3],img:"https://img1.wallspic.com/previews/0/9/1/0/20190/20190-football_player-football-fun-player-sports-x750.jpg"},i.length>0?this.privilegesTeamId==0?!i.filter(y=>y.game_id===c.data.plays[a][3]).length>0&&i.push(B):!i.filter(y=>y.game_id===c.data.plays[a][3]).length>0&&c.data.plays[a][2]===this.privilegesTeamId&&i.push(B):(this.privilegesTeamId==0||c.data.plays[a][2]===this.privilegesTeamId)&&i.push(B);const m=c.data.thumbnails;for(let a=0;a<i.length;a++){const y=Math.floor(Math.random()*m[i[a].game_id].info_thumbnails.images.background_default_games.length);i[a].background="https://golstatsimages.blob.core.windows.net/images-library/"+m[i[a].game_id].info_thumbnails.images.background_default_games[y],i[a].backgroundhome=m[i[a].game_id].info_thumbnails.home_colors.background_color,i[a].backgroundaway=m[i[a].game_id].info_thumbnails.away_colors.background_color,i[a].logoaway="https://az755631.vo.msecnd.net/teams-150/"+m[i[a].game_id].info_thumbnails.away_colors.team_id+".png",i[a].logohome="https://az755631.vo.msecnd.net/teams-150/"+m[i[a].game_id].info_thumbnails.home_colors.team_id+".png",i[a].match=m[i[a].game_id].matchday_name.replace("Matchday","Jor"),i[a].playingAs=m[i[a].game_id].info_thumbnails.home_colors.team_id===i[a].teamId?1:2,i[a].seasonname=m[i[a].game_id].season_name,i[a].score=m[i[a].game_id].score[0]+" - "+m[i[a].game_id].score[1],i[a].category=0}}else{const D=await r.get("https://ws8d8ye2ii.execute-api.us-west-2.amazonaws.com/prod/v4/seasonsByTeam/"+e.team);for(let c=0;c<D.data.seasons[e.season].games.length;c++){const m=Math.floor(Math.random()*D.data.seasons[e.season].games[c].info_thumbnails.images.background_default_games.length);B={playingAs:this.getPlayingAs(D.data.seasons[e.season].games[c],D.data.team_id),category:0,game_id:D.data.seasons[e.season].games[c].game_id,photo_profile:"https://az755631.vo.msecnd.net/teams-150/"+D.data.seasons[e.season].games[c].visiting_team+".png",team_logo:"https://az755631.vo.msecnd.net/teams-150/"+D.data.seasons[e.season].games[c].home_team+".png",player_name:D.data.seasons[e.season].games[c].home_team_acronym+" "+D.data.seasons[e.season].games[c].home_team_score+" : "+D.data.seasons[e.season].games[c].visiting_team_score+" "+D.data.seasons[e.season].games[c].visiting_team_acronym,team_id_b:D.data.seasons[e.season].games[c].home_team,team_id:D.data.team_id,season_id:D.data.seasons[e.season].games[c].season_id,name:"",seasonname:D.data.seasons[e.season].name,match:D.data.seasons[e.season].games[c].matchday_name.replace("Matchday","Jor"),score:D.data.seasons[e.season].games[c].home_team_score+" : "+D.data.seasons[e.season].games[c].visiting_team_score,background:"https://golstatsimages.blob.core.windows.net/images-library/"+D.data.seasons[e.season].games[c].info_thumbnails.images.background_default_games[m],backgroundhome:D.data.seasons[e.season].games[c].info_thumbnails.home_colors.background_color,backgroundaway:D.data.seasons[e.season].games[c].info_thumbnails.away_colors.background_color,logohome:"https://az755631.vo.msecnd.net/teams-150/"+D.data.seasons[e.season].games[c].home_team+".png",logoaway:"https://az755631.vo.msecnd.net/teams-150/"+D.data.seasons[e.season].games[c].visiting_team+".png",total:D.data.seasons[e.season].games[c].matchday_abbreviation.replace("M","Jor "),background_card:"https://az755631.vo.msecnd.net/golstats2-teams/"+D.data.seasons[e.season].games[c].home_team+"_"+D.data.seasons[e.season].games[c].season_id+"_r1.jpg"},i.push(B)}}this.printData=i,this.$emit("loading",!1)},setUpResizeObserver(){this.resizeObserverGSCH=new ResizeObserver(e=>{for(const r of e)this.highlightsWidth=r.contentRect.width}),this.resizeObserverGSCH.observe(this.$refs.highlights)}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},1e3)}},txt={key:0,ref:"highlights",class:"carousel-high-lights",id:"carousel-high-lights"};function axt(e,r,i,B,D,c){const m=t.resolveComponent("GSCThumbnailHighlightGameHistoric"),a=t.resolveComponent("GSCThumbnailHighlightGamePlayer"),y=t.resolveComponent("GSCCarousel");return c.printDataFiltered.length>0&&i.canPlayVideos?(t.openBlock(),t.createElementBlock("div",txt,[t.createVNode(y,t.mergeProps(c.carouselProps,{items:c.printDataFiltered,arrowsMaxWidth:"65px",slideLeftArrowBackgroundImage:"linear-gradient(to right, rgba(22, 37, 49, 1), rgba(0, 0, 0, 0))",slideRightArrowBackgroundImage:"linear-gradient(to left, rgba(22, 37, 49, 1), rgba(0, 0, 0, 0))",secondarySlidesOpacity:.2}),{default:t.withCtx(({item:f})=>[i.data.type=="team"||i.data.type=="historic"?(t.openBlock(),t.createBlock(m,{key:0,items:f,"color-background-home":f.backgroundhome,"color-background-away":f.backgroundaway,"logo-home":f.logohome,"logo-away":f.logoaway,background:f.background,matchday:f.match,onOnclickPlayVideos:n=>c.onclickPlayVideos({data:f,type:1}),"season-name":f.seasonname,score:f.score},null,8,["items","color-background-home","color-background-away","logo-home","logo-away","background","matchday","onOnclickPlayVideos","season-name","score"])):(t.openBlock(),t.createBlock(a,{key:1,type:"player","name-player":f.name,"type-style":"game","color-background-home":f.backgroundhome,"color-background-away":f.backgroundaway,"type-img":"0",date:f.date,"season-name":f.seasonname,matchday:f.match,background:f.background,"name-home-team":f.hometeamacronym,"name-away-team":f.visitingteamacronym,"name-category":i.title,onOnclickPlayVideos:n=>c.onclickPlayVideos({data:f,type:2}),"logo-away":f.logoaway,"logo-home":f.logohome,"score-home":f.scorehome,"photo-profile":f.photo_profile,"score-away":f.scoreaway},null,8,["name-player","color-background-home","color-background-away","date","season-name","matchday","background","name-home-team","name-away-team","name-category","onOnclickPlayVideos","logo-away","logo-home","score-home","photo-profile","score-away"]))]),_:1},16,["items"])],512)):t.createCommentVNode("",!0)}const nxt=oE(ext,[["render",axt]]),Tma="",Ema="",Ama="",rxt={components:{GSCSlider:Gv},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:{onclickPlayVideos(e){const r=[1,2,3];let i={seasonId:this.dataProminentAll.season_id,mainSectionType:1,playListType:e.data.is_team==1?3:2,categoryIds:e.data.categories,gameIdsToFilter:this.game.game_status==1?[this.dataProminentAll._id]:null,playerIds:e.data.is_team!=1?[e.data.player_id]:[],goalkeeperIds:[],teamId:e.data.is_team==1?e.data.team_id:0,matchResult:r,playData:{},advancedFilter:{playListTitle:""}};this.$emit("openmedia",i)},hasDecimal(e){return typeof e!="number"?!1:e.toString().includes(".")},formatNumber(e){if(typeof e=="number")if(this.hasDecimal(e)){const r=Math.round(e*10)/10;return Number.isInteger(r)?r.toString()+"%":r.toFixed(1)+"%"}else return e+"%";else return"0"},formatNumber2(e){if(typeof e=="number")if(this.hasDecimal(e)){const r=Math.round(e*10)/10;return Number.isInteger(r)?r.toString()+"%":r.toFixed(1)+"%"}else return e;else return"0"},textoConNegritas(e){if(!e)return"";const r=e.split(/(\*.*?\*)/g).filter(D=>D.trim()!=="");let i=Math.ceil(r.length/2),B="";return r.forEach((D,c)=>{c===i&&(B+="<br/>"),D.startsWith("*")&&D.endsWith("*")?B+=`<span class="text-bold-prominent">${D.slice(1,-1)}</span>`:D.trim()!==""&&(B+=`<span class="text-prominent">${D}</span>`)}),B},async getDataProminentPrematch(){try{let e="";if(this.isWidget&&this.teamWidget!=0?e="https://1qvtl1japi.execute-api.us-east-2.amazonaws.com/prod/highlights/seasons/"+this.game.seasonId+"/games/"+this.game.gameId+"/prematch?t="+this.teamWidget:e="https://1qvtl1japi.execute-api.us-east-2.amazonaws.com/prod/highlights/seasons/"+this.game.seasonId+"/games/"+this.game.gameId+"/prematch",this.lastDataProminentUrl!==e){this.$emit("loading",!0);const i=await $c.create({headers:{Authorization:`${this.tokenPremium}`}}).get(e);this.dataProminent=i.data.data,this.dataProminentAll=i.data,this.$emit("loading",!1)}}catch(e){return Promise.reject(e)}},async getDataProminent(){try{let e="";if(this.isWidget&&this.teamWidget!=0?e="https://1qvtl1japi.execute-api.us-east-2.amazonaws.com/prod/highlights/seasons/"+this.game.seasonId+"/games/"+this.game.gameId+"?t="+this.teamWidget:e="https://1qvtl1japi.execute-api.us-east-2.amazonaws.com/prod/highlights/seasons/"+this.game.seasonId+"/games/"+this.game.gameId,this.lastDataProminentUrl!==e){this.$emit("loading",!0);const i=await $c.create({headers:{Authorization:`${this.tokenPremium}`}}).get(e);this.dataProminent=i.data.data,this.dataProminentAll=i.data,setTimeout(()=>{this.$emit("loading",!1)},500)}}catch(e){return Promise.reject(e)}}}},ixt=e=>(t.pushScopeId("data-v-9669e216"),e=e(),t.popScopeId(),e),oxt={class:"data-prominent-game"},sxt={class:"title-data"},lxt={class:"item-data-text"},cxt=["innerHTML"],uxt={class:"contain-stats-control"},dxt={key:0,class:"title-total"},hxt={key:1,class:"item-total"},pxt=["onClick"],fxt={"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"},mxt=[ixt(()=>t.createElementVNode("path",{"data-v-83c7df16":"",d:"M6.6041 22.8554C6.42105 22.7512 6.26805 22.5956 6.1616 22.4053C6.05515 22.215 5.99927 21.9973 6.00001 21.7755V2.22137C6.00026 2.00039 6.0565 1.78362 6.16274 1.59409C6.26899 1.40456 6.42127 1.24936 6.6034 1.14499C6.78553 1.04062 6.9907 0.990981 7.1971 1.00135C7.4035 1.01171 7.60342 1.0817 7.77561 1.20386L21.4907 10.9821C21.6473 11.0935 21.7758 11.2446 21.8646 11.4219C21.9535 11.5992 22 11.7973 22 11.9985C22 12.1996 21.9535 12.3977 21.8646 12.575C21.7758 12.7523 21.6473 12.9034 21.4907 13.0148L7.77561 22.7954C7.60369 22.9178 7.40392 22.988 7.19761 22.9986C6.9913 23.0092 6.78617 22.9597 6.6041 22.8554ZM7.14347 21.7779L20.8585 11.9996L7.14347 21.7779Z",fill:"#CBEE6B"},null,-1))];function gxt(e,r,i,B,D,c){const m=t.resolveComponent("GSCSlider");return t.openBlock(),t.createElementBlock("div",oxt,[t.createElementVNode("div",sxt,[i.game.game_status!=4||i.game.is_live==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Este partido:")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("Este torneo:")],64))]),t.createVNode(m,{height:"115px",pxScroll:272,scrollColor:"none",arrowsPosition:"absolute",arrowsScrollHide:!0,arrowsHideOnNoScroll:!0,arrowsBackground:"rgba(255,255,255,.16)",arrowsContainerBgL:"linear-gradient(270deg, rgba(13,29,42,0.1) 0%, rgba(13,29,42,1) 70%)",arrowsContainerBgR:"linear-gradient(90deg, rgba(13,29,42,0.1) 0%, rgba(13,29,42,1) 70%)",arrowsMargin:0,arrowsRadius:"50%",arrowsBorder:"#ddd"},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(D.dataProminent,(a,y)=>(t.openBlock(),t.createElementBlock("div",{key:y,class:"item-prominent-data"},[t.createElementVNode("div",{class:"item-percent-shield",style:t.normalizeStyle("background:"+a.custom_colors.background_color)},[t.createElementVNode("div",{class:"item-team",style:t.normalizeStyle(a.player_id?"background-image:url(https://az755631.vo.msecnd.net/players-profile/"+a.player_id+".png); border: solid 1.4px "+a.custom_colors.background_color:"background-image:url(https://az755631.vo.msecnd.net/teams-80/"+a.team_id+".png);border: solid 1.4px "+a.custom_colors.background_color)},null,4),a.show_value==1?(t.openBlock(),t.createElementBlock("div",{key:0,class:"item-percent",style:t.normalizeStyle("color:"+a.custom_colors.font_color)},[a.is_percentage==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[a.title=="Distancia recorrida"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(c.formatNumber(a.percent)),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(c.formatNumber(a.percent)),1)],64))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(a.total),1)],64))],4)):t.createCommentVNode("",!0)],4),t.createElementVNode("div",lxt,[t.createElementVNode("div",{class:"container-text",innerHTML:c.textoConNegritas(a.description)},null,8,cxt),t.createElementVNode("div",uxt,[a.title!="Productividad"?(t.openBlock(),t.createElementBlock("div",dxt,"TOTAL:")):t.createCommentVNode("",!0),a.title!="Productividad"?(t.openBlock(),t.createElementBlock("div",hxt,[a.is_percentage==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(c.formatNumber(a.percent)),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[a.title=="Distancia recorrida"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(a.total)+" km",1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(a.total),1)],64))],64))])):t.createCommentVNode("",!0),i.canPlayVideos&&a.show_video==1?(t.openBlock(),t.createElementBlock("div",{key:2,class:"btn-play",style:t.normalizeStyle(a.title=="Productividad"?"margin-left: 0px !important;":""),onClick:f=>c.onclickPlayVideos({data:a})},[(t.openBlock(),t.createElementBlock("svg",fxt,mxt))],12,pxt)):t.createCommentVNode("",!0)])])]))),128))]),_:1})])}const yxt=$i(rxt,[["render",gxt],["__scopeId","data-v-9669e216"]]),Ima="",vxt={components:{GSCCheckbox:Gg},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:{...eh("nextGeneral",["gameForAnalysis","seasonId"]),...eu("nextGeneral",["arrayFilledDataSortedByPriority"])},methods:{async getStatsData(e){await this.$store.dispatch("nextGeneral/cleanStats"),await this.$store.dispatch("nextGeneral/checkState",{gameId:e.gameId,currentSeasonId:e.seasonId,isTeamsAnalysis:!0,defaultFilter:null,gameInfo:e})},async getDataPosession(){try{const r=await $c.create({headers:{Authorization:`${this.tokenPremium}`}}).get(this.url+this.game.gameId);this.dataPosession=r.data}catch(e){return Promise.reject(e)}},async getDataPosessionPrematch(e){try{const i=await $c.create({headers:{Authorization:`${this.tokenPremium}`}}).get(this.urlPrematch+e+"/posessions");for(const B in i.data.teams)i.data.teams.hasOwnProperty(B)&&(this.arrTeams[B]=i.data.teams[B])}catch(r){return Promise.reject(r)}},onCheckInactive(e){e?this.areInactiveVisible=!0:this.areInactiveVisible=!1},deleteDecimalZero(e){const r=typeof e=="string"?parseFloat(e):e;return typeof r=="number"&&!isNaN(r)?r%1===0?r:r%1===0?Math.floor(r):r:e},formatNumbers(e){return e%1!==0?e.toFixed(1):e},hVal(e){return this.getTeamValue(e,this.gameForAnalysis,"homeTeam")},aVal(e){return this.getTeamValue(e,this.gameForAnalysis,"visitingTeam")},getTeamValue(e,r,i){if(!r.game_id)return this.objectZeroValues;const B=e.homeTeam.accomplished.avgPostGame+e.visitingTeam.accomplished.avgPostGame,D=e[i].accomplished.avgPostGame/B;return e[i].accomplished.avgPostGame?{numberValue:D<1?D*100:D,numberBarPercent:e[i].accomplished.avgPostGame/B}:this.objectZeroValues}},created(){this.$store.commit("nextGeneral/updateFilters",{filters:{local:{playingAs:[1,2],statistics:{},matchResult:[1,2,3],firstHalf:[1,2,3],secondHalf:[4,5,6]},visit:{playingAs:[1,2],statistics:{},matchResult:[1,2,3],firstHalf:[1,2,3],secondHalf:[4,5,6]}},needsFormat:!0})},beforeDestroy(){clearInterval(this.intervalIdPossesion)}},Vy=e=>(t.pushScopeId("data-v-286b1f56"),e=e(),t.popScopeId(),e),_xt={key:0,class:"field-posesion-prominent"},bxt={key:0,class:"title"},xxt={class:"info-data-item"},wxt={class:"item-indicador"},kxt={class:"item-indicador-value"},Cxt={key:0},Sxt=Vy(()=>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)),Txt={key:0,class:"inactiveInfo"},Ext={class:"info-data-item"},Axt={class:"item-indicador"},Mxt={class:"item-indicador-value"},Ixt=Vy(()=>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)),Pxt={class:"info-data-item"},Bxt={class:"item-indicador"},Nxt={class:"item-indicador-value"},zxt={key:0},Oxt=Vy(()=>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)),Fxt={class:"info-data-item"},Lxt={class:"item-indicador"},Dxt={class:"item-indicador-value"},Rxt=Vy(()=>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)),Vxt={key:0,class:"inactiveInfo"},$xt={class:"info-data-item"},jxt={class:"item-indicador"},Uxt={class:"item-indicador-value"},Gxt=Vy(()=>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)),Hxt={class:"info-data-item"},Wxt={class:"item-indicador"},qxt={class:"item-indicador-value"},Yxt=Vy(()=>t.createElementVNode("div",{class:"item-indicador-img"},[t.createElementVNode("svg",{width:"8",height:"6",viewBox:"0 0 8 6",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M3.87817 5.92969L0.506034 0.0889796L7.2503 0.0889802L3.87817 5.92969Z",fill:"#38CFFF"})])],-1));function Xxt(e,r,i,B,D,c){const m=t.resolveComponent("GSCCheckbox");return e.arrayFilledDataSortedByPriority.length>0?(t.openBlock(),t.createElementBlock("div",_xt,[i.widthSection>760?(t.openBlock(),t.createElementBlock("div",bxt,"Porcentajes")):t.createCommentVNode("",!0),i.game.game_status==1||i.game.game_status==0||i.game.is_live==1?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(i.widthSection>760?"field-container":i.widthSection>520?"field-container-movil":i.widthSection>440?"field-container-movil-2":i.widthSection>360?"field-container-movil-3":"field-container-movil-4")},[D.dataPosession.has_posession==1?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(i.widthSection>1020?"time-show":i.widthSection>920?"time-show-table-xl":i.widthSection>880?"time-show-table-xl-2":i.widthSection>820?"time-show-table-xl-3":i.widthSection>760?"time-show-table-xl-4":"time-show-movil")},[t.createVNode(m,{label:"Mostrar tiempo inactivo",fontFamily:"Poppins-Regular","onUpdate:modelValue":c.onCheckInactive,"label-color":"#8c9399"},null,8,["onUpdate:modelValue"])],2)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(i.widthSection>1020?"field-data-container":i.widthSection>920?"field-data-container-xl":i.widthSection>880?"field-data-container-xl-2":i.widthSection>820?"field-data-container-xl-3":i.widthSection>760?"field-data-container-xl-4":"field-data-container-movil")},[t.createElementVNode("div",{class:t.normalizeClass(D.areInactiveVisible?"container-data-img-home":"container-data-img-home50")},[t.createElementVNode("div",{class:t.normalizeClass(D.areInactiveVisible?"homeInfo":"homeInfo50"),style:t.normalizeStyle("background-image:url("+i.game.homeTeam.logo.replace("80","150")+")")},null,6),t.createElementVNode("div",xxt,[t.createElementVNode("div",{class:t.normalizeClass(i.widthSection>580?"item-ref-data":"item-ref-data-movil")},[t.createElementVNode("div",wxt,[t.createElementVNode("div",kxt,[D.dataPosession.has_posession==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[D.areInactiveVisible?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(D.dataPosession.active_time.home),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(D.dataPosession.home),1)],64))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[c.hVal(e.arrayFilledDataSortedByPriority[0].subcategories.possession)?(t.openBlock(),t.createElementBlock("span",Cxt,t.toDisplayString(c.deleteDecimalZero(c.formatNumbers(c.hVal(e.arrayFilledDataSortedByPriority[0].subcategories.possession).numberValue)))+"%",1)):t.createCommentVNode("",!0)],64))]),Sxt]),t.createElementVNode("div",{class:t.normalizeClass(i.widthSection>580?"title-indicador":"title-indicador-movil")}," Pos. "+t.toDisplayString(i.game.homeTeam.acronym),3)],2)])],2),D.areInactiveVisible&&D.dataPosession.has_posession==1?(t.openBlock(),t.createElementBlock("div",Txt,[t.createElementVNode("div",Ext,[t.createElementVNode("div",{class:t.normalizeClass(i.widthSection>580?"item-ref-data":"item-ref-data-movil")},[t.createElementVNode("div",Axt,[t.createElementVNode("div",Mxt,t.toDisplayString(D.dataPosession.active_time.inactive_time),1),Ixt]),t.createElementVNode("div",{class:t.normalizeClass(i.widthSection>580?"title-indicador":"title-indicador-movil")},[i.widthSection>580?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("T. Inactivo")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("T. Inactivo")],64))],2)],2)])])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(D.areInactiveVisible?"container-data-img-away":"container-data-img-away50")},[t.createElementVNode("div",{class:t.normalizeClass(D.areInactiveVisible?"awayInfo":"awayInfo50"),style:t.normalizeStyle("background-image:url("+i.game.awayTeam.logo.replace("80","150")+")")},null,6),t.createElementVNode("div",Pxt,[t.createElementVNode("div",{class:t.normalizeClass(i.widthSection>580?"item-ref-data":"item-ref-data-movil")},[t.createElementVNode("div",Bxt,[t.createElementVNode("div",Nxt,[D.dataPosession.has_posession==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[D.areInactiveVisible?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(D.dataPosession.active_time.away),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(D.dataPosession.away),1)],64))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[c.aVal(e.arrayFilledDataSortedByPriority[0].subcategories.possession)?(t.openBlock(),t.createElementBlock("span",zxt,t.toDisplayString(c.deleteDecimalZero(c.formatNumbers(c.aVal(e.arrayFilledDataSortedByPriority[0].subcategories.possession).numberValue)))+"%",1)):t.createCommentVNode("",!0)],64))]),Oxt]),t.createElementVNode("div",{class:t.normalizeClass(i.widthSection>580?"title-indicador":"title-indicador-movil")}," Pos. "+t.toDisplayString(i.game.awayTeam.acronym),3)],2)])],2)],2)],2)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[D.arrTeams.length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(i.widthSection>760?"field-container":i.widthSection>520?"field-container-movil":i.widthSection>440?"field-container-movil-2":i.widthSection>360?"field-container-movil-3":"field-container-movil-4")},[D.arrTeams[i.teamSelected.teamId].has_posession==1?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(i.widthSection>1020?"time-show":i.widthSection>920?"time-show-table-xl":i.widthSection>880?"time-show-table-xl-2":i.widthSection>820?"time-show-table-xl-3":i.widthSection>760?"time-show-table-xl-4":"time-show-movil")},[t.createVNode(m,{label:"Mostrar tiempo inactivo",fontFamily:"Poppins-Regular","onUpdate:modelValue":c.onCheckInactive,"label-color":"#8c9399"},null,8,["onUpdate:modelValue"])],2)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(i.widthSection>1020?"field-data-container":i.widthSection>920?"field-data-container-xl":i.widthSection>880?"field-data-container-xl-2":i.widthSection>820?"field-data-container-xl-3":i.widthSection>760?"field-data-container-xl-4":"field-data-container-movil")},[t.createElementVNode("div",{class:t.normalizeClass(D.areInactiveVisible?"container-data-img-home":"container-data-img-home50")},[i.game.homeTeam.team_id==i.teamSelected.teamId?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(D.areInactiveVisible?"homeInfo":"homeInfo50"),style:t.normalizeStyle("background-image:url("+i.game.homeTeam.logo.replace("80","150")+")")},null,6)):t.createCommentVNode("",!0),t.createElementVNode("div",Fxt,[t.createElementVNode("div",{class:t.normalizeClass(i.widthSection>580?"item-ref-data":"item-ref-data-movil")},[t.createElementVNode("div",Lxt,[t.createElementVNode("div",Dxt,[D.areInactiveVisible?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[i.game.awayTeam.team_id==i.teamSelected.teamId?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(D.arrTeams[i.teamSelected.teamId].active_time.away),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(D.arrTeams[i.teamSelected.teamId].active_time.home),1)],64))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[i.game.awayTeam.team_id==i.teamSelected.teamId?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(D.arrTeams[i.teamSelected.teamId].away),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(D.arrTeams[i.teamSelected.teamId].home),1)],64))],64))]),Rxt]),i.game.homeTeam.team_id==i.teamSelected.teamId?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(i.widthSection>580?"title-indicador":"title-indicador-movil")}," Pos. "+t.toDisplayString(i.game.homeTeam.acronym),3)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(i.widthSection>580?"title-indicador":"title-indicador-movil")}," Pos. Rival ",2))],2)])],2),D.areInactiveVisible&&D.arrTeams[i.teamSelected.teamId].has_posession==1?(t.openBlock(),t.createElementBlock("div",Vxt,[t.createElementVNode("div",$xt,[t.createElementVNode("div",{class:t.normalizeClass(i.widthSection>580?"item-ref-data":"item-ref-data-movil")},[t.createElementVNode("div",jxt,[t.createElementVNode("div",Uxt,t.toDisplayString(D.arrTeams[i.teamSelected.teamId].active_time.inactive_time),1),Gxt]),t.createElementVNode("div",{class:t.normalizeClass(i.widthSection>580?"title-indicador":"title-indicador-movil")},[i.widthSection>580?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("T. Inactivo")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("T. Inactivo")],64))],2)],2)])])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(D.areInactiveVisible?"container-data-img-away":"container-data-img-away50")},[i.game.awayTeam.team_id==i.teamSelected.teamId?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(D.areInactiveVisible?"awayInfo":"awayInfo50"),style:t.normalizeStyle("background-image:url("+i.game.awayTeam.logo.replace("80","150")+")")},null,6)):t.createCommentVNode("",!0),t.createElementVNode("div",Hxt,[t.createElementVNode("div",{class:t.normalizeClass(i.widthSection>580?"item-ref-data":"item-ref-data-movil")},[t.createElementVNode("div",Wxt,[t.createElementVNode("div",qxt,[D.areInactiveVisible?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[i.game.homeTeam.team_id==i.teamSelected.teamId?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(D.arrTeams[i.teamSelected.teamId].active_time.away),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(D.arrTeams[i.teamSelected.teamId].active_time.home),1)],64))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[i.game.homeTeam.team_id==i.teamSelected.teamId?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(D.arrTeams[i.teamSelected.teamId].away),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(D.arrTeams[i.teamSelected.teamId].home),1)],64))],64))]),Yxt]),i.game.awayTeam.team_id==i.teamSelected.teamId?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(i.widthSection>580?"title-indicador":"title-indicador-movil")}," Pos. "+t.toDisplayString(i.game.awayTeam.acronym),3)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(i.widthSection>580?"title-indicador":"title-indicador-movil")}," Pos. Rival ",2))],2)])],2)],2)],2)):t.createCommentVNode("",!0)],64))])):t.createCommentVNode("",!0)}const Zxt=$i(vxt,[["render",Xxt],["__scopeId","data-v-286b1f56"]]),Pma="",cE={props:{textOptionLeft:String,valueDefault:{type:String,default:""},textOptionRight:String,hiddenLabels:{type:Boolean,default:!1},width:{type:String,default:"50px"},height:{type:String,default:"32px"},heightCircle:{type:String,default:"24px"},widthCircle:{type:String,default:"24px"},widthIcons:{type:String,default:"22"},borderRadius:{type:String,default:"30px"},borderType:{type:String,default:"solid"},borderWidth:{type:Number,default:1},borderColor:{type:String,default:"#FFFFFF"},fontSize:{type:String,default:"14px"},fontColor:{type:String,default:"#000000"},iconA:{type:String,default:""},iconB:{type:String,default:""},fontFamily:{type:String,default:"Poppins-Light"},backgroundColor:{type:String,default:"#2e3b46"},circleColorSwitch:{type:String,default:"#FFFFFF"}},data(){return{OptionDefault:!1}},watch:{valueDefault:{immediate:!0,handler:async function(e){try{e==this.textOptionLeft&&(this.OptionDefault=!1),e==this.textOptionRight&&(this.OptionDefault=!0)}catch(r){throw new Error(r)}}}},computed:{customStyle(){return{width:this.width,height:this.height,borderRadius:this.borderRadius,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`,backgroundColor:this.backgroundColor,circleColor:this.circleColorSwitch}},customText(){return{color:this.fontColor,fontSize:this.fontSize,fontFamily:`${this.fontFamily} !important`}}},methods:{handleSwitchChange(e){e.target.checked?this.$emit("change",this.textOptionRight):this.$emit("change",this.textOptionLeft)}}},SH=()=>{t.useCssVars(e=>({ec641b3a:e.backgroundColor,"66cc4678":e.widthCircle,"1c5ce009":e.heightCircle}))},TH=cE.setup;cE.setup=TH?(e,r)=>(SH(),TH(e,r)):SH;const Jxt={key:0,class:"text-left"},Kxt=["width","src"],Qxt=["checked"],e3t=["width","src"],t3t={key:3,class:"text-right"};function a3t(e,r,i,B,D,c){return t.openBlock(),t.createElementBlock("div",{class:"gsc-switch-radio",style:t.normalizeStyle(c.customText)},[i.textOptionLeft!=""&&!i.hiddenLabels?(t.openBlock(),t.createElementBlock("span",Jxt,t.toDisplayString(i.textOptionLeft),1)):t.createCommentVNode("",!0),i.iconA!=""?(t.openBlock(),t.createElementBlock("img",{key:1,width:i.widthIcons,src:i.iconA},null,8,Kxt)):t.createCommentVNode("",!0),t.createElementVNode("input",{type:"checkbox",id:"toggle-btn",onChange:r[0]||(r[0]=(...m)=>c.handleSwitchChange&&c.handleSwitchChange(...m)),checked:D.OptionDefault},null,40,Qxt),t.createElementVNode("label",{for:"toggle-btn",style:t.normalizeStyle([c.customStyle,{"--circle-color":i.circleColorSwitch}])},null,4),i.iconB!=""?(t.openBlock(),t.createElementBlock("img",{key:2,width:i.widthIcons,src:i.iconB},null,8,e3t)):t.createCommentVNode("",!0),i.textOptionRight!=""&&!i.hiddenLabels?(t.openBlock(),t.createElementBlock("span",t3t,t.toDisplayString(i.textOptionRight),1)):t.createCommentVNode("",!0)],4)}const EH=$i(cE,[["render",a3t],["__scopeId","data-v-62d6b055"]]),Bma="";let AH=null;const uE={components:{},props:{canPlayVideos:{type:Boolean,default:!1},titleCategory:{type:String,default:"RESUMEN"},dateGame:{type:String,default:""},colorBackgroundHome:{type:String,default:"#000000"},colorBackgroundAway:{type:String,default:"#FFFFFF"},logoHome:{type:String,default:""},isLive:{type:Boolean,default:!0},matchday:{type:String,default:""},seasonName:{type:String,default:""},logoAway:{type:String,default:""},score:{type:String,default:""},background:{type:String,default:""}},data(){return{gamesContainerWidth:0}},computed:{date(){const e=this.gamesContainerWidth;return e<=400?"date400":e<=540?"date540":e<=650?"date650":"date"},seasoncontainer(){const e=this.gamesContainerWidth;return e<=400?"season-container400":e<=540?"season-container540":e<=650?"season-container650":"season-container"},matchcontainer(){const e=this.gamesContainerWidth;return e<=400?"match-container400":e<=540?"match-container540":e<=650?"match-container650":"match-container"},containerinfogame(){const e=this.gamesContainerWidth;return e<=400?"container-info-game400":e<=540?"container-info-game540":e<=650?"container-info-game650":"container-info-game"},playbutton(){const e=this.gamesContainerWidth;return e<=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)AH=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),AH.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},MH=()=>{t.useCssVars(e=>({f7da229a:e.colorBackgroundHome+"45","5c937204":e.colorBackgroundAway+"45","6dbbe2d2":e.colorBackgroundHome,"6dc206b4":e.colorBackgroundAway}))},IH=uE.setup;uE.setup=IH?(e,r)=>(MH(),IH(e,r)):MH;const f4=e=>(t.pushScopeId("data-v-4f4f5686"),e=e(),t.popScopeId(),e),n3t=[f4(()=>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))],r3t=f4(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/paper-texture.png",alt:"",class:"paper-texture position-image"},null,-1)),i3t=["src"],o3t=f4(()=>t.createElementVNode("div",{class:"gradient-back position-image"},null,-1)),s3t=f4(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/halftone-texture.png",alt:"",class:"halftone-texture position-image"},null,-1)),l3t=["src"],c3t=["src"],u3t={class:"text-container"};function d3t(e,r,i,B,D,c){return t.openBlock(),t.createElementBlock("div",{ref:"gamesContainer",class:t.normalizeClass(c.thumbnailhighlights)},[i.canPlayVideos?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(c.playbutton),onClick:r[0]||(r[0]=(...m)=>c.onclickPlayVideos&&c.onclickPlayVideos(...m))},n3t,2)):t.createCommentVNode("",!0),i.dateGame!=""?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(c.date)},t.toDisplayString(i.dateGame),3)):t.createCommentVNode("",!0),i.matchday!=""&&i.seasonName!=""?(t.openBlock(),t.createElementBlock("div",{key:2,class:t.normalizeClass(c.containerinfogame)},[i.matchday!=""?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(c.matchcontainer)},t.toDisplayString(i.matchday),3)):t.createCommentVNode("",!0),i.seasonName!=""?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(c.seasoncontainer)},t.toDisplayString(i.seasonName),3)):t.createCommentVNode("",!0)],2)):t.createCommentVNode("",!0),r3t,t.createElementVNode("img",{src:i.background,alt:"",class:"bkg-blackwhite position-image"},null,8,i3t),t.createElementVNode("div",{class:t.normalizeClass([c.baselogo,"position-image"])},null,2),t.createElementVNode("div",{class:t.normalizeClass(c.baselogoright)},null,2),o3t,s3t,t.createElementVNode("img",{src:i.logoHome,alt:"",class:t.normalizeClass(c.teamlogo)},null,10,l3t),t.createElementVNode("img",{src:i.logoAway,alt:"",class:t.normalizeClass(c.logoright)},null,10,c3t),t.createElementVNode("div",u3t,[t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(c.titlename)},t.toDisplayString(i.titleCategory),3)])],2)}const h3t=$i(uE,[["render",d3t],["__scopeId","data-v-4f4f5686"]]),zma="";let PH=null;const p3t={components:{GSCThumbnailHighlightGameHistoric:h3t},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 r=[];e.type==2?e.data.position_id==1?e.data.category==0?r=[55,324,323,608,39,774,802,52,53,40,54]:r=e.data.category:e.data.category==0?r=[12,35,10,27,607,61,519,98,101,109,112,121,122,127,128,135,136,141,142,161,170,179,702,730,466,217,211,232,235,239,242,282,284,289,291,296,485,486,487,488,14,15,257]:r=e.data.category:e.type==3?e.data.category==0?r=[607,608,12,55,54,35,14,52,15,53,466,477,40,257,39]:r=e.data.category:e.data.category!=0?r=e.data.category:this.titleCard=="RESUMEN"?r=[607,608,12,55,54,35,14,52,15,53,466,477]:r=[12,55,54,35];const i=[1,2,3];let B={seasonId:e.data.season_id,mainSectionType:1,playListType:e.type,categoryIds:r,gameIdsToFilter:e.data.game_id?[e.data.game_id]:null,playerIds:e.data.position_id!=1?e.data.player_id?[e.data.player_id]:[]:[],goalkeeperIds:e.data.position_id==1?e.data.player_id?[e.data.player_id]:[]:[],teamId:e.data.team_id?e.data.team_id:0,matchResult:e.data.matchResult?[e.data.matchResult]:i,playData:{},advancedFilter:{playListTitle:""}};e.data.category!==0&&(B.advancedFilter.mainCategoryId=e.data.category),this.$emit("openmedia",B)},async fillData(){const e="https://fxtcaw9tw6.execute-api.us-east-2.amazonaws.com/prod/historic/games/"+this.game.gameId;if(this.lastDataGameUrl!==e){this.$emit("loading",!0),this.lastDataGameUrl=e;const r=$c.create({headers:{Authorization:`${this.token}`}}),i=await r.get("https://8tvo5bp9ai.execute-api.us-west-2.amazonaws.com/prod/gamesBySeason/"+this.game.seasonId),B=await r.get("https://d2oco6mqmc.execute-api.us-west-2.amazonaws.com/prod/teamsBySeason/"+this.game.seasonId);this.tournamentId=B.data.tournament_id;const D=i.data.games.findIndex(m=>m.game_id===this.game.gameId);this.gameInfo=i.data.games[D];const c=await r.get(e);this.showHighlight=c.data==""?!1:c.data.plays.length>0,this.showHighlightGoals=c.data==""?!1:c.data.plays.filter(m=>m[0]===12||m[0]===55||m[0]===54||m[0]===35).length>0,this.item.category=0,this.item.game_id=c.data.game_id,this.item.season_id=this.game.seasonId,this.item.score=c.data.thumbnails[c.data.game_id]?c.data.thumbnails[c.data.game_id].score[0]+" - "+c.data.thumbnails[c.data.game_id].score[1]:"0 - 0",this.item.backgroundhome=c.data.thumbnails[c.data.game_id]?c.data.thumbnails[c.data.game_id].info_thumbnails.home_colors.background_color:"",this.item.backgroundaway=c.data.thumbnails[c.data.game_id]?c.data.thumbnails[c.data.game_id].info_thumbnails.away_colors.background_color:"",this.item.logohome=c.data.thumbnails[c.data.game_id]?"https://az755631.vo.msecnd.net/teams-150/"+c.data.thumbnails[c.data.game_id].home_team+".png":"",this.item.logoaway=c.data.thumbnails[c.data.game_id]?"https://az755631.vo.msecnd.net/teams-150/"+c.data.thumbnails[c.data.game_id].visiting_team+".png":"",this.item.background=c.data.thumbnails[c.data.game_id]?this.titleCard=="RESUMEN"?"https://golstatsimages.blob.core.windows.net/images-library/"+c.data.thumbnails[c.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)PH=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),PH.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},async mounted(){setTimeout(()=>{this.setUpResizeObserver()},1e3),await this.fillData()}},f3t={class:"highlights-prominent-game",ref:"gamesContainer"},m3t={class:"video-partido-container__highlight"};function g3t(e,r,i,B,D,c){const m=t.resolveComponent("GSCThumbnailHighlightGameHistoric");return t.openBlock(),t.createElementBlock("div",f3t,[t.withDirectives(t.createElementVNode("div",m3t,[t.createCommentVNode("",!0),t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(D.gamesContainerWidth>865?"video-partido-container__image":"video-partido-container__image2")},[D.item.background!=""?(t.openBlock(),t.createBlock(m,{key:0,"color-background-home":D.item.backgroundhome,"color-background-away":D.item.backgroundaway,"logo-home":D.item.logohome,"logo-away":D.item.logoaway,"is-live":!0,"title-category":i.titleCard,"can-play-videos":i.canPlayVideos,background:D.item.background,matchday:D.item.match,"season-name":D.item.seasonname,onOnclickPlayVideos:r[0]||(r[0]=a=>c.onclickPlayVideos({data:D.item,type:1})),score:D.item.score},null,8,["color-background-home","color-background-away","logo-home","logo-away","title-category","can-play-videos","background","matchday","season-name","score"])):t.createCommentVNode("",!0)],2)],512),[[t.vShow,i.titleCard=="RESUMEN"&&i.canPlayVideos&&D.showHighlight||i.titleCard=="GOLES"&&i.canPlayVideos&&D.showHighlightGoals]])],512)}const y3t=$i(p3t,[["render",g3t],["__scopeId","data-v-22344d6f"]]),Oma="";let BH=null;const dE={components:{},props:{titleCategory:{type:String,default:"RESUMEN"},dateGame:{type:String,default:""},colorBackgroundHome:{type:String,default:"#000000"},colorBackgroundAway:{type:String,default:"#FFFFFF"},isLive:{type:Boolean,default:!1},logoHome:{type:String,default:""},game:{type:Object,default:()=>{}},matchday:{type:String,default:""},seasonName:{type:String,default:""},logoAway:{type:String,default:""},score:{type:String,default:""},background:{type:String,default:""}},data(){return{gamesContainerWidth:0}},computed:{date(){const e=this.gamesContainerWidth;return e<=400?"date400":e<=540?"date540":e<=650?"date650":"date"},seasoncontainer(){const e=this.gamesContainerWidth;return e<=400?"season-container400":e<=540?"season-container540":e<=650?"season-container650":"season-container"},matchcontainer(){const e=this.gamesContainerWidth;return e<=400?"match-container400":e<=540?"match-container540":e<=650?"match-container650":"match-container"},containerinfogame(){const e=this.gamesContainerWidth;return e<=400?"container-info-game400":e<=540?"container-info-game540":e<=650?"container-info-game650":"container-info-game"},playbutton(){const e=this.gamesContainerWidth;return e<=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)BH=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),BH.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},NH=()=>{t.useCssVars(e=>({"0079ccca":e.colorBackgroundHome+"45","8a32804a":e.colorBackgroundAway+"45","0939ef2a":e.colorBackgroundHome,"0936dd39":e.colorBackgroundAway}))},zH=dE.setup;dE.setup=zH?(e,r)=>(NH(),zH(e,r)):NH;const $y=e=>(t.pushScopeId("data-v-3c641234"),e=e(),t.popScopeId(),e),v3t=[$y(()=>t.createElementVNode("span",{class:"circle-live"},null,-1)),$y(()=>t.createElementVNode("span",{style:{"margin-left":"3px"}},"LIVE",-1))],_3t=[$y(()=>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))],b3t=$y(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/paper-texture.png",alt:"",class:"paper-texture position-image"},null,-1)),x3t=["src"],w3t=$y(()=>t.createElementVNode("div",{class:"gradient-back position-image"},null,-1)),k3t=$y(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/halftone-texture.png",alt:"",class:"halftone-texture position-image"},null,-1)),C3t=["src"],S3t=["src"],T3t={class:"text-container"};function E3t(e,r,i,B,D,c){return t.openBlock(),t.createElementBlock("div",{ref:"gamesContainer",class:t.normalizeClass(c.thumbnailhighlights)},[i.isLive&&i.game.game_status!=0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(D.gamesContainerWidth>340?D.gamesContainerWidth>480?"icon-live":"icon-live-tablet":"icon-live-mobile")},v3t,2)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(c.playbutton),onClick:r[0]||(r[0]=(...m)=>c.onclickPlayVideos&&c.onclickPlayVideos(...m))},_3t,2),i.dateGame!=""?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(c.date)},t.toDisplayString(i.dateGame),3)):t.createCommentVNode("",!0),i.matchday!=""&&i.seasonName!=""?(t.openBlock(),t.createElementBlock("div",{key:2,class:t.normalizeClass(c.containerinfogame)},[i.matchday!=""?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(c.matchcontainer)},t.toDisplayString(i.matchday),3)):t.createCommentVNode("",!0),i.seasonName!=""?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(c.seasoncontainer)},t.toDisplayString(i.seasonName),3)):t.createCommentVNode("",!0)],2)):t.createCommentVNode("",!0),b3t,t.createElementVNode("img",{src:i.background,alt:"",class:"bkg-blackwhite position-image"},null,8,x3t),t.createElementVNode("div",{class:t.normalizeClass([c.baselogo,"position-image"])},null,2),t.createElementVNode("div",{class:t.normalizeClass(c.baselogoright)},null,2),w3t,k3t,t.createElementVNode("img",{src:i.logoHome,alt:"",class:t.normalizeClass(c.teamlogo)},null,10,C3t),t.createElementVNode("img",{src:i.logoAway,alt:"",class:t.normalizeClass(c.logoright)},null,10,S3t),t.createElementVNode("div",T3t,[t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(c.titlename)},t.toDisplayString(i.titleCategory),3)])],2)}const A3t=$i(dE,[["render",E3t],["__scopeId","data-v-3c641234"]]),Rma="";let OH=null;const M3t={components:{GSCThumbnailHighlightGameHistoricLive:A3t},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 r=[];e.type==2?e.data.position_id==1?e.data.category==0?r=[55,324,323,608,39,774,802,52,53,40,54]:r=e.data.category:e.data.category==0?r=[12,35,10,27,607,61,519,98,101,109,112,121,122,127,128,135,136,141,142,161,170,179,702,730,466,217,211,232,235,239,242,282,284,289,291,296,485,486,487,488,14,15,257]:r=e.data.category:e.type==3?e.data.category==0?r=[607,608,12,55,54,35,14,52,15,53,466,477,40,257,39]:r=e.data.category:e.type==4?r=[12,55,"35_r","54_r"]:e.data.category!=0?r=e.data.category:this.titleCard=="RESUMEN"?r=[607,608,12,55,54,35,14,52,15,53,466,477]:r=[12,55,54,35];const i=[1,2,3];let B={seasonId:e.data.season_id,mainSectionType:1,playListType:e.type,categoryIds:r,gameIdsToFilter:e.data.game_id?[e.data.game_id]:null,playerIds:e.data.position_id!=1?e.data.player_id?[e.data.player_id]:[]:[],goalkeeperIds:e.data.position_id==1?e.data.player_id?[e.data.player_id]:[]:[],teamId:e.data.team_id?e.data.team_id:0,matchResult:e.data.matchResult?[data.matchResult]:i,playData:{},advancedFilter:{playListTitle:""}};e.data.category!==0&&(B.advancedFilter.mainCategoryId=e.data.category),this.$emit("openmedia",B)},async getLiveHighlights(){const r=await $c.create({headers:{Authorization:`${this.token}`}}).get("https://fxtcaw9tw6.execute-api.us-east-2.amazonaws.com/prod/live/historic/games/"+this.game.gameId);r.data!=""&&(this.showHighlight=r.data==""?!1:r.data.plays.length>0,this.showHighlightGoals=r.data==""?!1:r.data.plays.filter(i=>i[0]===12||i[0]===55||i[0]===54||i[0]===35).length>0,this.item.category=0,this.item.game_id=r.data.game_id,this.item.season_id=this.game.seasonId,this.item.score=r.data.thumbnails[r.data.game_id].score,this.item.backgroundhome=r.data.thumbnails[r.data.game_id].info_thumbnails.home_colors.background_color,this.item.backgroundaway=r.data.thumbnails[r.data.game_id].info_thumbnails.away_colors.background_color,this.item.logohome="https://az755631.vo.msecnd.net/teams-150/"+r.data.thumbnails[r.data.game_id].home_team+".png",this.item.logoaway="https://az755631.vo.msecnd.net/teams-150/"+r.data.thumbnails[r.data.game_id].visiting_team+".png",this.item.background=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))},setUpResizeObserver(){if(window.ResizeObserver)OH=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainerlivehigh.clientWidth}),OH.observe(this.$refs.gamesContainerlivehigh);else throw new Error("Resize observer not supported!")}},async mounted(){setTimeout(()=>{this.setUpResizeObserver()},1e3)}},I3t={class:"highlights-prominent-game",ref:"gamesContainerlivehigh"},P3t={class:"video-partido-container__highlight"},B3t={class:"video-partido-container__image"};function N3t(e,r,i,B,D,c){const m=t.resolveComponent("GSCThumbnailHighlightGameHistoricLive");return t.openBlock(),t.createElementBlock("div",I3t,[t.withDirectives(t.createElementVNode("div",P3t,[t.createCommentVNode("",!0),t.createElementVNode("div",B3t,[t.createVNode(m,{"is-live":!0,game:i.game,"color-background-home":D.item.backgroundhome,"color-background-away":D.item.backgroundaway,"logo-home":D.item.logohome,"logo-away":D.item.logoaway,"title-category":i.titleCard,background:D.item.background,onOnclickPlayVideos:r[1]||(r[1]=a=>c.onclickPlayVideos({data:D.item,type:1})),matchday:D.item.match,"season-name":D.item.seasonname,score:D.item.score},null,8,["game","color-background-home","color-background-away","logo-home","logo-away","title-category","background","matchday","season-name","score"])])],512),[[t.vShow,i.titleCard=="RESUMEN"&&i.canPlayVideos&&D.showHighlight||i.titleCard=="GOLES"&&i.canPlayVideos&&D.showHighlightGoals]])],512)}const z3t=$i(M3t,[["render",N3t],["__scopeId","data-v-5710fb35"]]),hE="/play-icn.svg",Vma="",O3t={name:"TooltipEmpty",props:{data:{type:Object,required:!0}},computed:{showTooltip(){return{visible:this.data.visible}}},methods:{tooltipClick:function(){},closeClick:function(){this.$emit("close")}}};function F3t(e,r,i,B,D,c){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["back-tooltip",c.showTooltip])},[t.createElementVNode("div",{class:t.normalizeClass(["box-tooltip",c.showTooltip]),onClick:r[1]||(r[1]=(...m)=>c.tooltipClick&&c.tooltipClick(...m))},[t.createElementVNode("span",{role:"button",class:"box-tooltip-close",onClick:r[0]||(r[0]=(...m)=>c.closeClick&&c.closeClick(...m))},"×"),t.renderSlot(e.$slots,"default",{},void 0,!0)],2)],2)}const L3t=$i(O3t,[["render",F3t],["__scopeId","data-v-b5f07af8"]]),$ma="",D3t=["id"],R3t={class:"game-event__minute"},V3t={class:"game-event__icon"},$3t=["src"],j3t="/images/events/",U3t=$i({__name:"GameEvent",props:{gameEvent:{type:Object,default:()=>{}}},emits:["click-event"],setup(e,{emit:r}){const i=e,B=t.computed(()=>({"--icon-bottom":i.gameEvent.isHomeTeam?"30px":"-5px","--border-color":i.gameEvent.isSelected?"#336dff":"#747c83","--background-color":i.gameEvent.isSelected?"#336dff":"#0d1d29"})),D=t.computed(()=>{let m="";return i.gameEvent.category_id===18?m="icn-tiros-de-esquina.svg":i.gameEvent.category_id===20?m="icn-tiro-a-porteria.svg":i.gameEvent.category_id===10?m="icn-cambio.svg":i.gameEvent.category_id===21?m="icn-falta.svg":i.gameEvent.category_id===27?m="atajada.svg":i.gameEvent.category_id===17?m="fuera-de-lugar.svg":i.gameEvent.category_id===4||i.gameEvent.category_id===13||i.gameEvent.category_id===14||i.gameEvent.category_id===16||i.gameEvent.category_id===6&&i.gameEvent.event_type_id===1||i.gameEvent.category_id===5&&i.gameEvent.event_type_id===1||i.gameEvent.category_id===1&&i.gameEvent.event_type_id===1||i.gameEvent.category_id===2&&i.gameEvent.event_type_id===1||i.gameEvent.category_id===3&&i.gameEvent.event_type_id===1||i.gameEvent.category_id===7&&i.gameEvent.event_type_id===1||i.gameEvent.category_id===12&&i.gameEvent.event_type_id===1?m="gol.svg":i.gameEvent.category_id==30||i.gameEvent.category_id==31||i.gameEvent.category_id==32||i.gameEvent.category_id==33||i.gameEvent.category_id==34||i.gameEvent.category_id==35||i.gameEvent.category_id==36||i.gameEvent.category_id==37||i.gameEvent.category_id==38||i.gameEvent.category_id==39||i.gameEvent.category_id==40?m="var.png":i.gameEvent.category_id===28?m="tiempo-agregado.svg":i.gameEvent.category_id===26?m="jugada-peligrosa.svg":i.gameEvent.category_id===22?m="penal-marcado.svg":i.gameEvent.category_id===15||i.gameEvent.category_id===23?m="penal-fallado.svg":i.gameEvent.category_id===8?m="icn-tarjeta-amarilla.svg":i.gameEvent.category_id===9?m="icn-tarjeta-roja.svg":m="generic.svg",`${j3t}${m}`});function c(){r("click-event",i.gameEvent)}return(m,a)=>(t.openBlock(),t.createElementBlock("div",{id:i.gameEvent.play_id,class:"game-event",onClick:c,style:t.normalizeStyle(B.value)},[t.createElementVNode("div",R3t,[t.createElementVNode("div",null,t.toDisplayString(e.gameEvent.minute)+"'",1)]),t.createElementVNode("div",V3t,[t.createElementVNode("img",{src:D.value},null,8,$3t)])],12,D3t))}},[["__scopeId","data-v-f972a06c"]]),Uma="",G3t=e=>(t.pushScopeId("data-v-df0b18c7"),e=e(),t.popScopeId(),e),H3t={class:"events-line"},W3t={class:"events-line__events"},q3t=G3t(()=>t.createElementVNode("div",{class:"events-line__events__line"},null,-1)),Y3t=$i({__name:"EventsLine",props:{gameEvents:{type:Array,default:()=>[]}},emits:["click-event"],setup(e,{emit:r}){function i(B){r("click-event",B)}return(B,D)=>(t.openBlock(),t.createElementBlock("div",H3t,[t.createVNode(t.unref(Gv),{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",W3t,[q3t,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.gameEvents,c=>(t.openBlock(),t.createBlock(U3t,{key:c.id,"game-event":c,onClickEvent:i},null,8,["game-event"]))),128))])]),_:1})]))}},[["__scopeId","data-v-df0b18c7"]]),Hma="",f_=e=>(t.pushScopeId("data-v-17881d53"),e=e(),t.popScopeId(),e),X3t={class:"tooltip-data"},Z3t=["src"],J3t=f_(()=>t.createElementVNode("div",{class:"game-events__title-left-padding"},null,-1)),K3t=f_(()=>t.createElementVNode("div",{class:"game-events__title"},"Eventos",-1)),Q3t={class:"game-events__team-logo"},ewt=["src"],twt={class:"game-events__event-info"},awt={key:0,class:"game-events__event-info__line"},nwt={key:1,class:"game-events__event-info__info"},rwt={class:"game-events__event-info__info__player-photo"},iwt={key:0,class:"game-events__event-info__info__player-photo__img"},owt=["src"],swt={class:"game-events__event-info__info__event-name"},lwt={class:"game-events__event-info__info__player-name"},cwt=[f_(()=>t.createElementVNode("img",{src:hE,alt:""},null,-1))],uwt=f_(()=>t.createElementVNode("div",{class:"game-events__events-padding"},null,-1)),dwt={class:"game-events__events"},hwt={class:"game-events__team-logo"},pwt=["src"],fwt={class:"game-events__event-info"},mwt={key:0,class:"game-events__event-info__line"},gwt={key:1,class:"game-events__event-info__info"},ywt={class:"game-events__event-info__info__player-photo"},vwt={key:0,class:"game-events__event-info__info__player-photo__img"},_wt=["src"],bwt={class:"game-events__event-info__info__event-name"},xwt={class:"game-events__event-info__info__player-name"},wwt=[f_(()=>t.createElementVNode("img",{src:hE,alt:""},null,-1))],kwt="https://11rcgkydx3.execute-api.us-east-2.amazonaws.com/prod/games/",Cwt=$i({__name:"GameEvents",props:{game:{type:Object,default:()=>({})},widthScreen:{type:Number,default:0},token:{type:String,default:""},canPlayVideos:{type:Boolean,default:!0},gameEventsIntervalMinutes:{type:Number,default:1}},emits:["play-video"],setup(e,{emit:r}){const i=e;let B=null,D=0;const c=t.ref([]),m=t.ref(new Map),a=t.ref(""),y=t.ref(null),f=t.ref({visible:!1,link:""}),n=t.ref(new Set),v=t.ref(0),_=t.computed(()=>i.game.is_live||i.game.game_status===0);t.watch(()=>i.game,(w,x)=>{w&&w.gameId!==D?(n.value.clear(),D=w.gameId,o(),l(w.gameId,w.is_live&&w.game_status===4)):w&&w.is_live&&(!x||!x.is_live)?l(w.gameId,!0):w&&!w.is_live&&x.is_live&&o()},{deep:!0,immediate:!0}),t.watch(()=>a.value,(w,x)=>{if(w!==x){const S=m.value.get(x),C=m.value.get(w);if(S&&(S.isSelected=!1),C){if(!C.playerShortName){const[T,k]=C.player_name.split(","),A=T.split(" ");let E="";for(const M of A)if(E+=` ${M}`,M.length>3)break;C.playerShortName=k&&T?`${k.trim().charAt(0)}.${E}`:""}C.isSelected=!0,y.value=C}}});function p(w){B=setInterval(()=>{l(w)},1e3*60*i.gameEventsIntervalMinutes)}async function l(w,x=!1){try{let S=await u(w),C=!1;w!==v.value&&(c.value=[],m.value=new Map,a.value="",n.value.clear(),v.value=w);let T=S.filter(k=>{const A=n.value.has(k.play_id);return A||n.value.add(k.play_id),!A});if(T){T=T.reduce((A,E)=>(C=E.game_finished,E.team_id&&(E.isHomeTeam=E.team_id===i.game.homeTeam.team_id,A.push(E),m.value.set(E.play_id,E)),A),[]);const k=[...c.value];s(T).forEach(A=>{_.value?k.unshift(A):k.push(A)}),c.value=_.value?s(k).reverse():s(k)}c.value&&c.value.length&&(_.value||!a.value&&c.value.length)&&(a.value=c.value[0].play_id),x&&!C?p(w):C&&o()}catch(S){console.error(S)}}function o(){B&&(clearInterval(B),B=null)}function s(w){return w.sort((x,S)=>d(x.matchlapse)+Number(x.minute)-(d(S.matchlapse)+Number(S.minute)))}function d(w){let x=0;switch(w){case 1:x=0;break;case 2:x=45;break;case 3:x=90;break;case 4:x=105;break;case 5:x=120;break}return x}async function u(w){try{const S=(await $c.get(`${kwt}${w}/timeline`,{headers:{Authorization:i.token}})).data;return S?S.plays||[]:[]}catch(x){throw new Error(x)}}function h(w){a.value=w.play_id}function g(){i.canPlayVideos&&y.value.play_id&&r("play-video",{categoryId:y.value.main_category_id,playId:y.value.play_id})}function b(){f.value.visible=!1,f.value.link=""}return t.onBeforeUnmount(()=>{o()}),(w,x)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createVNode(L3t,{data:f.value,onClose:b},{default:t.withCtx(()=>[t.createElementVNode("div",X3t,[t.createElementVNode("div",null,[t.createElementVNode("video",{class:"tooltip-video",controls:"",autoplay:"",src:f.value.link,format:"video/mp4"},null,8,Z3t)])])]),_:1},8,["data"]),t.createElementVNode("div",{class:t.normalizeClass(e.widthScreen>920?"game-events":"game-events__mobile")},[J3t,K3t,t.createElementVNode("div",Q3t,[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,ewt)):t.createCommentVNode("",!0)]),t.createElementVNode("div",twt,[y.value&&y.value.isHomeTeam?(t.openBlock(),t.createElementBlock("div",awt)):t.createCommentVNode("",!0),y.value&&y.value.isHomeTeam?(t.openBlock(),t.createElementBlock("div",nwt,[t.createElementVNode("div",rwt,[y.value.player_id?(t.openBlock(),t.createElementBlock("div",iwt,[t.createElementVNode("img",{src:`https://az755631.vo.msecnd.net/players-profile/${y.value.player_id}.png`,alt:""},null,8,owt)])):t.createCommentVNode("",!0)]),t.createElementVNode("div",swt,t.toDisplayString(y.value.event_type_id===1?y.value.event_type_name:y.value.category_name),1),t.createElementVNode("div",lwt," | "+t.toDisplayString(y.value.playerShortName),1),e.canPlayVideos&&y.value.play_id?(t.openBlock(),t.createElementBlock("div",{key:0,role:"button",class:"game-events__event-info__info__button-play",onClick:g},cwt)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)]),uwt,t.createElementVNode("div",dwt,[t.createVNode(Y3t,{"game-events":c.value,onClickEvent:h},null,8,["game-events"])]),t.createElementVNode("div",hwt,[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,pwt)):t.createCommentVNode("",!0)]),t.createElementVNode("div",fwt,[y.value&&!y.value.isHomeTeam?(t.openBlock(),t.createElementBlock("div",mwt)):t.createCommentVNode("",!0),y.value&&!y.value.isHomeTeam?(t.openBlock(),t.createElementBlock("div",gwt,[t.createElementVNode("div",ywt,[y.value.player_id?(t.openBlock(),t.createElementBlock("div",vwt,[t.createElementVNode("img",{src:`https://az755631.vo.msecnd.net/players-profile/${y.value.player_id}.png`,alt:""},null,8,_wt)])):t.createCommentVNode("",!0)]),t.createElementVNode("div",bwt,t.toDisplayString(y.value.event_type_id===1?y.value.event_type_name:y.value.category_name),1),t.createElementVNode("div",xwt," | "+t.toDisplayString(y.value.playerShortName),1),e.canPlayVideos&&y.value.play_id?(t.openBlock(),t.createElementBlock("div",{key:0,role:"button",class:"game-events__event-info__info__button-play",onClick:g},wwt)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)])],2)],64))}},[["__scopeId","data-v-17881d53"]]),Xma="",Swt={class:"toggle-buttons__background"},Twt=["onClick"],Ewt={key:0,class:"toggle-buttons__button__img"},Awt=["src"],m4=$i({__name:"ToggleButtons",props:{buttons:{type:Array,required:!0},selectedButtonIndex:{type:Number,default:0},height:{type:String,default:"29px"},width:{type:String,default:"100%"},fontSize:{type:String,default:"12px"},fontFamily:{type:String,default:"Poppins-Medium"},borderRadius:{type:String,default:"8px"},mainBackgroundColor:{type:String,default:"#364448"},mainBorderColor:{type:String,default:"#9AA1A3"},mainBorderWidth:{type:String,default:"0.5px"},activeBorderColor:{type:String,default:"#cbee6b"},activeBorderWidth:{type:String,default:"1px"},activeBackgroundColor:{type:String,default:"#2e3b46"},activeFontColor:{type:String,default:"#FFFFFF"}},emits:["change"],setup(e,{emit:r}){const i=e;t.useCssVars(m=>({29153391:e.height,"1aee961c":e.width,"738679b2":e.mainBackgroundColor,f3cab270:e.borderRadius,"0ec0fe57":e.mainBorderWidth,"0da9fff4":e.mainBorderColor,"68dc0c06":e.fontFamily,f9ef5e4c:e.fontSize,"5713c56a":e.activeBorderWidth,"55fcc707":e.activeBorderColor,"38297f45":e.activeBackgroundColor,"424728c4":e.activeFontColor}));const B=t.ref(i.selectedButtonIndex),D=t.computed(()=>({"--grid-template-columns":`repeat(${i.buttons.length}, 1fr)`}));t.watch(()=>i.selectedButtonIndex,m=>{B.value=m}),t.watch(B,(m,a)=>{m!==a&&r("change",{index:m,button:i.buttons[m]})});function c(m){B.value=m}return(m,a)=>(t.openBlock(),t.createElementBlock("div",Swt,[t.createElementVNode("div",{class:"toggle-buttons",style:t.normalizeStyle(D.value)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.buttons,(y,f)=>(t.openBlock(),t.createElementBlock("div",{key:`b${f}`,class:t.normalizeClass(["toggle-buttons__button",{active:B.value===f,right:y.img&&f>0}]),onClick:n=>c(f)},[y.img?(t.openBlock(),t.createElementBlock("div",Ewt,[t.createElementVNode("img",{src:y.img,alt:""},null,8,Awt)])):t.createCommentVNode("",!0),t.createElementVNode("div",null,t.toDisplayString(y.text||y),1)],10,Twt))),128))],4)]))}},[["__scopeId","data-v-ad07815f"]]),Jma="",Kma="",pE=e=>(t.pushScopeId("data-v-cb12065f"),e=e(),t.popScopeId(),e),Mwt={class:"tooltip__content"},Iwt={key:0,class:"tooltip__content__category"},Pwt={class:"tooltip__content__player"},Bwt={class:"tooltip__content__player__name"},Nwt={class:"tooltip__content__player__photo"},zwt=["src"],Owt={class:"tooltip__content__minute"},Fwt={key:1,class:"tooltip__content__game"},Lwt=pE(()=>t.createElementVNode("div",{class:"tooltip__content__game__name"},"Partido:",-1)),Dwt={class:"tooltip__content__game__round-abbreviation"},Rwt={class:"tooltip__content__game__logo"},Vwt=["src"],$wt=pE(()=>t.createElementVNode("div",{class:"tooltip__content__game__vs"},"VS",-1)),jwt={class:"tooltip__content__game__logo"},Uwt=["src"],Gwt={key:2,class:"tooltip__content__team"},Hwt=pE(()=>t.createElementVNode("div",{class:"tooltip__content__team__name"},"Equipo:",-1)),Wwt={class:"tooltip__content__team__logo"},qwt=["src"],Ywt=$i({__name:"TooltipChalkboard",props:{event:{type:Object,default:()=>({})},position:{type:Object,default:()=>({x:"0",y:"0"})}},emits:["close"],setup(e,{emit:r}){const i=e,B=t.computed(()=>({"--top":i.position.y,"--left":i.position.x})),D=t.computed(()=>`${i.event.player.player_name} ${i.event.player.player_lastname}`),c=t.computed(()=>{const[a]=i.event.momentOfPlay.split(":");return`${Number(a)}'`});function m(){r("close")}return(a,y)=>(t.openBlock(),t.createElementBlock("div",{class:"tooltip",onClick:m,style:t.normalizeStyle(B.value)},[t.createElementVNode("div",Mwt,[e.event.categoryName?(t.openBlock(),t.createElementBlock("div",Iwt,t.toDisplayString(e.event.categoryName),1)):t.createCommentVNode("",!0),t.createElementVNode("div",Pwt,[t.createElementVNode("div",Bwt,t.toDisplayString(D.value),1),t.createElementVNode("div",Nwt,[t.createElementVNode("img",{src:e.event.player.photo,alt:""},null,8,zwt)])]),t.createElementVNode("div",Owt,"Minuto: "+t.toDisplayString(c.value),1),e.event.game?(t.openBlock(),t.createElementBlock("div",Fwt,[Lwt,t.createElementVNode("div",Dwt,t.toDisplayString(e.event.game.roundAbbreviation),1),t.createElementVNode("div",Rwt,[t.createElementVNode("img",{src:e.event.game.homeTeam.logo,alt:""},null,8,Vwt)]),$wt,t.createElementVNode("div",jwt,[t.createElementVNode("img",{src:e.event.game.awayTeam.logo,alt:""},null,8,Uwt)])])):(t.openBlock(),t.createElementBlock("div",Gwt,[Hwt,t.createElementVNode("div",Wwt,[t.createElementVNode("img",{src:e.event.team.logo,alt:""},null,8,qwt)])]))])],4))}},[["__scopeId","data-v-cb12065f"]]),Xwt=["id"],Zwt=["fill"],Jwt=["id"],Kwt=["fill"],Qwt=["stroke-dasharray","x1","y1","x2","y2","marker-end"],e5t=["x","y","stroke-width","fill","stroke"],t5t=["x","y"],a5t={__name:"EventConnection",props:{eventConnection:{type:Object,required:!0},color:{type:String,required:!0},isLastEvent:{type:Boolean,default:!1},mainEventIdSelected:{type:Number,default:0}},setup(e){const r=e,i=t.computed(()=>{const v=[];if(r.eventConnection.hasConnectionPath){const _=r.eventConnection.x1===r.eventConnection.x2&&r.eventConnection.y1===r.eventConnection.y2?1:2;let p=a(r.eventConnection.previousEvent?r.eventConnection.previousEvent.y3:r.eventConnection.y1);const l=y(r.eventConnection.previousEvent?r.eventConnection.previousEvent.x3:r.eventConnection.x1);let o=0,s=0;_===2&&(o=a(r.eventConnection.y2),s=y(r.eventConnection.x2));const d=a(r.eventConnection.y3),u=y(r.eventConnection.x3);_===1?v.push({x1:l,y1:p,x2:u,y2:d}):(v.push({x1:l,y1:p,x2:s,y2:o}),v.push({x1:s,y1:o,x2:u,y2:d}))}return v}),B=t.computed(()=>r.mainEventIdSelected!==0?r.eventConnection.relatedPlayId===r.mainEventIdSelected?1:.1:1),D=t.computed(()=>r.mainEventIdSelected!==0?r.eventConnection.relatedPlayId===r.mainEventIdSelected:!0),c=t.computed(()=>a(r.eventConnection.previousEvent?r.eventConnection.previousEvent.y3:r.eventConnection.y1)),m=t.computed(()=>y(r.eventConnection.previousEvent?r.eventConnection.previousEvent.x3:r.eventConnection.x1));function a(v){return(1-v)*100}function y(v){return v*100}function f(v){Yh.emit("mouse-over-event",{mouseEvent:v,eventConnection:r.eventConnection,position:{x:m.value,y:c.value}})}function n(){Yh.emit("mouse-leave-event",{mainEventId:r.eventConnection.relatedPlayId,eventId:r.eventConnection.playId})}return(v,_)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createElementVNode("defs",null,[t.withDirectives(t.createElementVNode("marker",{id:`a-${e.eventConnection.playId}`,markerWidth:"10",markerHeight:"10",refX:"0",refY:"3",orient:"auto",markerUnits:"strokeWidth",style:t.normalizeStyle({opacity:B.value})},[t.createElementVNode("path",{d:"M0,0 L0,6 L9,3 z",fill:e.color},null,8,Zwt)],12,Xwt),[[t.vShow,D.value]]),t.withDirectives(t.createElementVNode("marker",{id:`b-${e.eventConnection.playId}`,markerWidth:"4",markerHeight:"4",refX:"2",refY:"2",orient:"auto",markerUnits:"strokeWidth",style:t.normalizeStyle({opacity:B.value})},[t.createElementVNode("circle",{cx:"2",cy:"2",r:"2",fill:e.color},null,8,Kwt)],12,Jwt),[[t.vShow,D.value]])]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i.value,(p,l)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[p.x1&&p.y1?t.withDirectives((t.openBlock(),t.createElementBlock("line",{key:`${e.eventConnection.playId}-${l}`,style:t.normalizeStyle({stroke:e.color,"stroke-width":2,opacity:B.value}),"stroke-dasharray":l===0&&i.value.length===2?"none":"5,5",x1:`${p.x1}%`,y1:`${p.y1}%`,x2:`${p.x2}%`,y2:`${p.y2}%`,"marker-start":"`url(`#b-${eventConnection.playId}`)`","marker-end":`url(${e.isLastEvent&&l===i.value.length-1?`#a-${e.eventConnection.playId}`:""})`},null,12,Qwt)),[[t.vShow,D.value]]):t.createCommentVNode("",!0)],64))),256)),t.withDirectives(t.createElementVNode("g",{onMouseover:f,onMouseleave:n,style:t.normalizeStyle({cursor:"pointer",opacity:B.value})},[t.createElementVNode("rect",{x:`${m.value}%`,y:`${c.value}%`,transform:"translate(-14, -14)",height:"28",width:"28","stroke-width":e.eventConnection.isMainPlay?2:1,fill:e.color,stroke:e.eventConnection.isMainPlay?"#fff":"#999",style:t.normalizeStyle({opacity:B.value}),rx:"14",ry:"14"},null,12,e5t),t.createElementVNode("text",{x:`${m.value}%`,y:`${c.value}%`,"text-anchor":"middle","dominant-baseline":"middle",dy:"1","font-size":"15",fill:"#fff","font-family":"'Poppins-SemiBold', sans-serif",style:t.normalizeStyle({opacity:B.value})},t.toDisplayString(e.eventConnection.player?e.eventConnection.player.jersey:""),13,t5t)],36),[[t.vShow,D.value]])],64))}},n5t={__name:"EventConnections",props:{eventConnections:{type:Object,required:!0},mainEventIdSelected:{type:Number,default:0}},setup(e){const r=e,i=t.computed(()=>r.eventConnections.getEventsConnectionsByEventType()),B=t.computed(()=>r.eventConnections.getTeamColor());return(D,c)=>(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i.value,(m,a)=>(t.openBlock(),t.createBlock(a5t,{key:m.id,color:B.value,"is-last-event":a===i.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))}},e0a="",r5t=e=>(t.pushScopeId("data-v-9c1367ca"),e=e(),t.popScopeId(),e),i5t={class:"soccer-chalkboard"},o5t={id:"soccerChalkboardField",class:"soccer-chalkboard__field"},s5t=r5t(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/todoelfut/field-green-posesion.jpg",alt:""},null,-1)),l5t={viewBox:"0 0 547 340",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c5t=$i({__name:"SoccerChalkboard",props:{eventsConnections:{type:Array,default:()=>[]},listType:{type:String,default:"events"},playersSelected:{type:Set,default:()=>new Set},teamsSelected:{type:Set,default:()=>new Set}},setup(e){const i=ase()?0:1e3;Yh.on("mouse-over-time-event",_=>{y(_),setTimeout(()=>{y(_)},i)}),Yh.on("mouse-leave-time-event",_=>{setTimeout(()=>{c.value==_&&!B.value&&y(0)},i)}),Yh.on("mouse-over-event",_=>{n(_)}),Yh.on("mouse-leave-event",_=>{setTimeout(()=>{_.eventId===m.value&&v()},i)});const B=t.ref(!1),D=t.ref({}),c=t.ref(0),m=t.ref(0),a=t.ref({x:0,y:0});function y(_){c.value=_}function f(){B.value=!1}function n(_){const l=document.getElementById("soccerChalkboardField");if(l){const o=l.getBoundingClientRect(),s=_.position.x/100*o.width+14,d=_.position.y/100*o.height+14,u=s+170>o.width?o.width-170:s,h=d;c.value=_.eventConnection.relatedPlayId,m.value=_.eventConnection.playId,D.value=_.eventConnection,a.value={x:`${u}px`,y:`${h}px`},B.value=!0}}function v(){B.value=!1,c.value=0}return(_,p)=>(t.openBlock(),t.createElementBlock("div",i5t,[t.createElementVNode("div",o5t,[s5t,(t.openBlock(),t.createElementBlock("svg",l5t,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.eventsConnections,(l,o)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[e.listType==="events"&&l.hasTeam(e.teamsSelected)||e.listType==="players"&&l.hasPlayer(e.playersSelected)?(t.openBlock(),t.createBlock(n5t,{key:o,"event-connections":l,"main-event-id-selected":c.value},null,8,["event-connections","main-event-id-selected"])):t.createCommentVNode("",!0)],64))),256))]))]),B.value?(t.openBlock(),t.createBlock(Ywt,{key:0,position:a.value,event:D.value,onClose:f},null,8,["position","event"])):t.createCommentVNode("",!0)]))}},[["__scopeId","data-v-9c1367ca"]]),a0a="",FH=e=>(t.pushScopeId("data-v-d484e9ef"),e=e(),t.popScopeId(),e),u5t={class:"events-timeline"},d5t=FH(()=>t.createElementVNode("div",{class:"events-timeline__back-line"},null,-1)),h5t=["onMouseover","onMouseleave"],p5t=["id"],f5t=[FH(()=>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))],m5t=["fill"],g5t=["mask"],y5t=["stroke"],v5t=$i({__name:"EventsTimeLine",props:{eventsConnections:{type:Array,default:()=>[]},listType:{type:String,default:"events"},playersSelected:{type:Set,default:()=>new Set},teamsSelected:{type:Set,default:()=>new Set}},setup(e){const r=e,i=["0'","45'","90'"],B=t.computed(()=>r.eventsConnections.reduce((m,a)=>{const y={minute:"0'",left:"0%",color:a.getTeamColor(),fontColor:a.getTeamFontColor(),playId:a.mainPlay.playId,playerId:a.mainPlay.playerId,teamId:a.mainPlay.teamId,relatedPlayId:a.relatedPlayId},[f]=a.mainPlay.momentOfPlay.split(":"),n=parseInt(f);return n>=90?(y.minute=`${n}'`,y.left="100%"):(y.minute=`${n}'`,y.left=`${n/90*100}%`),m.push(y),m},[]));function D(m){Yh.emit("mouse-over-time-event",m.playId)}function c(m){Yh.emit("mouse-leave-time-event",m.playId)}return(m,a)=>(t.openBlock(),t.createElementBlock("div",u5t,[(t.openBlock(),t.createElementBlock(t.Fragment,null,t.renderList(i,(y,f)=>t.createElementVNode("div",{class:"events-timeline__game-time",key:f},t.toDisplayString(y),1)),64)),d5t,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(B.value,(y,f)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[e.listType==="events"&&e.teamsSelected.has(y.teamId)||e.listType==="players"&&e.playersSelected.has(y.playerId)?(t.openBlock(),t.createElementBlock("svg",{key:f,width:"20",height:"22",viewBox:"0 0 20 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:t.normalizeStyle({left:y.left,cursor:"pointer"}),onMouseover:n=>D(y),onMouseleave:n=>c(y)},[t.createElementVNode("mask",{id:y.playId.toString(),fill:"white"},f5t,8,p5t),t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.77234 0.45166C2.11548 0.45166 0.772339 1.79481 0.772339 3.45166V14.4517C0.772339 16.1085 2.11548 17.4517 3.77234 17.4517H7.96294L10.2723 21.4517L12.5817 17.4517H16.7723C18.4292 17.4517 19.7723 16.1085 19.7723 14.4517V3.45166C19.7723 1.79481 18.4292 0.45166 16.7723 0.45166H3.77234Z",fill:y.color},null,8,m5t),t.createElementVNode("path",{d:"M7.96294 17.4517L8.82896 16.9517L8.54029 16.4517H7.96294V17.4517ZM10.2723 21.4517L9.40631 21.9517L10.2723 23.4517L11.1384 21.9517L10.2723 21.4517ZM12.5817 17.4517V16.4517H12.0044L11.7157 16.9517L12.5817 17.4517ZM1.77234 3.45166C1.77234 2.34709 2.66777 1.45166 3.77234 1.45166V-0.54834C1.5632 -0.54834 -0.227661 1.24252 -0.227661 3.45166H1.77234ZM1.77234 14.4517V3.45166H-0.227661V14.4517H1.77234ZM3.77234 16.4517C2.66777 16.4517 1.77234 15.5562 1.77234 14.4517H-0.227661C-0.227661 16.6608 1.5632 18.4517 3.77234 18.4517V16.4517ZM7.96294 16.4517H3.77234V18.4517H7.96294V16.4517ZM7.09691 17.9517L9.40631 21.9517L11.1384 20.9517L8.82896 16.9517L7.09691 17.9517ZM11.1384 21.9517L13.4478 17.9517L11.7157 16.9517L9.40631 20.9517L11.1384 21.9517ZM16.7723 16.4517H12.5817V18.4517H16.7723V16.4517ZM18.7723 14.4517C18.7723 15.5562 17.8769 16.4517 16.7723 16.4517V18.4517C18.9815 18.4517 20.7723 16.6608 20.7723 14.4517H18.7723ZM18.7723 3.45166V14.4517H20.7723V3.45166H18.7723ZM16.7723 1.45166C17.8769 1.45166 18.7723 2.34709 18.7723 3.45166H20.7723C20.7723 1.24252 18.9815 -0.54834 16.7723 -0.54834V1.45166ZM3.77234 1.45166H16.7723V-0.54834H3.77234V1.45166Z",fill:"#172531",mask:`url(#${y.playId})`},null,8,g5t),t.createElementVNode("g",null,[t.createElementVNode("text",{x:"50%",y:"8","text-anchor":"middle","dominant-baseline":"middle",dy:"1","font-size":"9","font-family":"Poppins-Light",stroke:y.fontColor,"stroke-width":"0.7"},t.toDisplayString(y.minute),9,y5t)])],44,h5t)):t.createCommentVNode("",!0)],64))),256))]))}},[["__scopeId","data-v-d484e9ef"]]),hu={All:1,YEAR:2,AGE_RANGE:3,NATIONALITY:4,POSITION:5,ELIGIBILITY:6},_5t=(e,r)=>{const i=e.__vccOpts||e;for(const[B,D]of r)i[B]=D;return i},b5t={key:1},x5t={width:"10",height:"8",viewBox:"0 0 10 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},w5t=["fill"],k5t={key:0,class:"checkbox__teams"},C5t={class:"checkbox__teams__logo"},S5t=["src"],T5t={class:"checkbox__teams__logo"},E5t=["src"],A5t={__name:"GSC-Checkbox",props:{width:{type:String,default:"fit-content"},height:{type:String,default:"fit-content"},label:{type:String,default:""},labelWhiteSpace:{type:String,default:"normal"},labelColor:{type:String,default:"white"},fontFamily:{type:String,default:"sans-serif"},labelFontSize:{type:String,default:"12px"},modelValue:{type:Boolean,default:!1},justifyContent:{type:String,default:"flex-start"},alignItems:{type:String,default:"center"},boxBackgroundColor:{type:String,default:"#CBEE6B"},boxValueColor:{type:String,default:"#0d1d29"},boxValue:{type:[String,Number],default:""},boxPosition:{type:String,default:"left",validator(e){return["left","right","top","bottom"].includes(e)}},boxMarginTop:{type:String,default:"0.2em"},boxWidthAndHeight:{type:String,default:"16px"},boxBorderColor:{type:String,default:"#969da2"},boxBorderWidth:{type:String,default:"2px"},boxBorderRadius:{type:String,default:"4px"},boxValueFontSize:{type:String,default:"10px"},boxValueFontFamily:{type:String,default:"sans-serif"},avoidInteraction:{type:Boolean,default:!1},avoidToCheck:{type:Boolean,default:!1},isBoxOnly:{type:Boolean,default:!1},teamsIds:{type:Array,default:()=>null}},emits:["update:modelValue"],setup(e,{emit:r}){const i=e;t.useCssVars(f=>({"6582e90e":e.width,"310b3edf":e.height}));const B=t.ref(!1),D=t.computed(()=>{const f={color:i.boxValueColor,"font-family":i.fontFamily,height:i.boxWidthAndHeight,width:i.boxWidthAndHeight,minWidth:i.boxWidthAndHeight,"border-radius":i.boxBorderRadius,"margin-top":i.boxMarginTop};return B.value?(f["background-color"]=i.boxBackgroundColor,f.border=`solid ${i.boxBorderWidth} ${i.boxBackgroundColor}`):f.border=`solid ${i.boxBorderWidth} ${i.boxBorderColor}`,f}),c=t.computed(()=>({"font-family":i.boxValueFontFamily,"font-size":i.boxValueFontSize,color:i.boxValueColor,"line-height":1})),m=t.computed(()=>{const f={color:i.labelColor,"font-family":i.fontFamily,"font-size":i.labelFontSize,"white-space":i.labelWhiteSpace,"text-align":i.boxPosition==="top"||i.boxPosition==="bottom"?"center":i.boxPosition};return(i.boxPosition==="left"||i.boxPosition==="right")&&(f[`margin-${i.boxPosition}`]=i.isBoxOnly?"0":i.teamsIds?"8px":"10px"),f});t.watch(()=>i.modelValue,f=>{f!==B.value&&(B.value=f)},{immediate:!0});function a(){i.avoidInteraction||!B.value&&i.avoidToCheck||(B.value=!B.value,r("update:modelValue",B.value))}function y(f){return`${{}.TEAM_LOGOS_URL||"https://az755631.vo.msecnd.net/teams-80/"}${f}.png`}return(f,n)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["checkbox",`box-${e.boxPosition}`]),onClick:a},[t.createElementVNode("div",{class:"checkbox__box",style:t.normalizeStyle(D.value)},[B.value?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[i.boxValue?(t.openBlock(),t.createElementBlock("div",{key:0,class:"checkbox__box__value",style:t.normalizeStyle(c.value)},t.toDisplayString(e.boxValue),5)):(t.openBlock(),t.createElementBlock("div",b5t,[(t.openBlock(),t.createElementBlock("svg",x5t,[t.createElementVNode("path",{d:"M9.77994 1.70133L4.10994 7.37133C3.96994 7.51133 3.77994 7.59133 3.57994 7.59133C3.37994 7.59133 3.18994 7.51133 3.04994 7.37133L0.219941 4.54133C-0.0700586 4.25133 -0.0700586 3.77133 0.219941 3.48133C0.509941 3.19133 0.989941 3.19133 1.27994 3.48133L3.57994 5.78133L8.71994 0.641328C9.00994 0.351328 9.48994 0.351328 9.77994 0.641328C10.0699 0.931328 10.0699 1.40133 9.77994 1.70133Z",fill:e.boxValueColor},null,8,w5t)]))]))],64)):t.createCommentVNode("",!0)],4),e.teamsIds&&e.teamsIds.length?(t.openBlock(),t.createElementBlock("div",k5t,[t.createElementVNode("div",C5t,[t.createElementVNode("img",{src:y(e.teamsIds[0]),alt:""},null,8,S5t)]),t.createElementVNode("div",T5t,[t.createElementVNode("img",{src:y(e.teamsIds[1]),alt:""},null,8,E5t)])])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"checkbox__label",style:t.normalizeStyle(m.value)},t.toDisplayString(e.label),5)],2))}},Is=_5t(A5t,[["__scopeId","data-v-bcf3bcc6"]]),ml=(e,r)=>{const i=e.__vccOpts||e;for(const[B,D]of r)i[B]=D;return i},M5t={class:"container"},I5t={key:0,width:"11",height:"2",viewBox:"0 0 11 2",fill:"none",xmlns:"http://www.w3.org/2000/svg"},P5t=["fill"],B5t={key:1,width:"11",height:"11",viewBox:"0 0 11 11",fill:"none",xmlns:"http://www.w3.org/2000/svg"},N5t=["fill"],z5t={__name:"IconExpand",props:{height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},isExpanded:{type:Boolean,default:!1},expandIconColor:{type:String,default:"white"},collapseIconColor:{type:String,default:"#D9D9D9"}},setup(e){return t.useCssVars(r=>({"563e5242":e.width,a529e9a4:e.height})),(r,i)=>(t.openBlock(),t.createElementBlock("div",M5t,[e.isExpanded?(t.openBlock(),t.createElementBlock("svg",I5t,[t.createElementVNode("rect",{width:"11",height:"1.7",fill:e.collapseIconColor},null,8,P5t)])):(t.openBlock(),t.createElementBlock("svg",B5t,[t.createElementVNode("path",{d:"M11 6.28571H6.28571V11H4.71429V6.28571H0V4.71429H4.71429V0H6.28571V4.71429H11V6.28571Z",fill:e.expandIconColor},null,8,N5t)]))]))}},x1=ml(z5t,[["__scopeId","data-v-166b6226"]]),m_=e=>(t.pushScopeId("data-v-4df743e3"),e=e(),t.popScopeId(),e),O5t={class:"productivity"},F5t={class:"productivity__body__offensive"},L5t={class:"productivity__body__title"},D5t={class:"productivity__body__title__info"},R5t={class:"number-of-categories"},V5t={class:"productivity__body__categories"},$5t={class:"productivity__body__defensive-possession"},j5t={class:"productivity__body__title"},U5t={class:"productivity__body__title__info"},G5t={class:"number-of-categories"},H5t={class:"productivity__body__categories"},W5t={class:"productivity__body__title"},q5t={class:"productivity__body__title__info"},Y5t={class:"number-of-categories"},X5t={class:"productivity__body__categories"},Z5t={class:"productivity__footer"},J5t={class:"productivity__footer__offenses"},K5t=m_(()=>t.createElementVNode("div",{class:"productivity__footer__offenses__title"}," ¿Debemos quitarle puntos a jugadores que hayan cometido las siguientes infracciones? ",-1)),Q5t={class:"productivity__footer__offenses__table"},e4t=m_(()=>t.createElementVNode("div",{class:"productivity__footer__offenses__table__row"},[t.createElementVNode("div"),t.createElementVNode("div",null,"Si"),t.createElementVNode("div",null,"No")],-1)),t4t={class:"productivity__footer__offenses__table__row has-bottom-border has-padding"},a4t=m_(()=>t.createElementVNode("div",{class:"productivity__footer__offenses__table__row__text"},"Faltas cometidas",-1)),n4t={class:"productivity__footer__offenses__table__row has-bottom-border has-padding"},r4t=m_(()=>t.createElementVNode("div",{class:"productivity__footer__offenses__table__row__text"},"Tarjetas amarillas",-1)),i4t={class:"productivity__footer__offenses__table__row has-padding"},o4t=m_(()=>t.createElementVNode("div",{class:"productivity__footer__offenses__table__row__text"},"Tarjetas rojas",-1)),s4t={__name:"TemplateProductivity",props:{componentWidth:{type:Number,default:0},productivityCategories:{type:Object,required:!0},numberOfCategoriesSelected:{type:Number,default:0},areMaxCategoriesReached:{type:Boolean,default:!1},isExpansionMode:{type:Boolean,default:!1},fontFamily:{type:String,default:"'Poppins-Regular'"}},emits:["update:offensesConditions"],setup(e,{emit:r}){const i=e,B=t.ref(!1),D=t.ref(!1),c=t.ref(!1),m=t.ref({areYellowCardsSelected:!1,areRedCardsSelected:!1,areFoulsCommittedSelected:!1}),a=t.computed(()=>({"--template-columns":i.isExpansionMode?"1fr":"1fr 1fr"})),y=t.computed(()=>i.productivityCategories.offensive.categories.reduce((p,l)=>(l.isSelected&&p++,p),0)),f=t.computed(()=>i.productivityCategories.defensive.categories.reduce((p,l)=>(l.isSelected&&p++,p),0)),n=t.computed(()=>i.productivityCategories.possession.categories.reduce((p,l)=>(l.isSelected&&p++,p),0));t.watch(()=>i.productivityCategories,p=>{m.value.areYellowCardsSelected=p.offensesConditions.areYellowCardsSelected,m.value.areRedCardsSelected=p.offensesConditions.areRedCardsSelected,m.value.areFoulsCommittedSelected=p.offensesConditions.areFoulsCommittedSelected},{deep:!0,immediate:!0}),t.watch(m,p=>{r("update:offensesConditions",p)},{deep:!0,immediate:!0});function v(p,l){l.isSelected=p,setTimeout(()=>{l.priority=i.numberOfCategoriesSelected},10)}function _(p){p==="offensive"?B.value=!B.value:p==="defensive"?D.value=!D.value:p==="possession"&&(c.value=!c.value)}return(p,l)=>(t.openBlock(),t.createElementBlock("div",O5t,[t.createElementVNode("div",{class:"productivity__body",style:t.normalizeStyle(a.value)},[t.createElementVNode("div",F5t,[t.createElementVNode("div",L5t,[t.createElementVNode("div",D5t,[t.createElementVNode("span",null,t.toDisplayString(e.productivityCategories.offensive.title),1),t.createElementVNode("span",R5t,"("+t.toDisplayString(y.value)+")",1)]),t.createElementVNode("div",{class:"productivity__body__title__expand-button",onClick:l[0]||(l[0]=o=>_("offensive"))},[t.withDirectives(t.createVNode(x1,{"is-expanded":B.value},null,8,["is-expanded"]),[[t.vShow,e.isExpansionMode]])])]),t.withDirectives(t.createElementVNode("div",V5t,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.productivityCategories.offensive.categories,o=>(t.openBlock(),t.createElementBlock("div",{key:o.id,class:"productivity__checkbox"},[t.createVNode(t.unref(Is),{label:o.name,fontFamily:e.fontFamily,"model-value":o.isSelected,"avoid-to-check":e.areMaxCategoriesReached,"box-value":o.priority||0,"onUpdate:modelValue":s=>v(s,o)},null,8,["label","fontFamily","model-value","avoid-to-check","box-value","onUpdate:modelValue"])]))),128))],512),[[t.vShow,!e.isExpansionMode||B.value]])]),t.createElementVNode("div",$5t,[t.createElementVNode("div",j5t,[t.createElementVNode("div",U5t,[t.createElementVNode("span",null,t.toDisplayString(e.productivityCategories.defensive.title),1),t.createElementVNode("span",G5t,"("+t.toDisplayString(f.value)+")",1)]),t.createElementVNode("div",{class:"productivity__body__title__expand-button",onClick:l[1]||(l[1]=o=>_("defensive"))},[t.withDirectives(t.createVNode(x1,{"is-expanded":D.value},null,8,["is-expanded"]),[[t.vShow,e.isExpansionMode]])])]),t.withDirectives(t.createElementVNode("div",H5t,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.productivityCategories.defensive.categories,o=>(t.openBlock(),t.createElementBlock("div",{key:o.id,class:"productivity__checkbox"},[t.createVNode(t.unref(Is),{label:o.name,fontFamily:e.fontFamily,"model-value":o.isSelected,"avoid-to-check":e.areMaxCategoriesReached,"box-value":o.priority||0,"onUpdate:modelValue":s=>v(s,o)},null,8,["label","fontFamily","model-value","avoid-to-check","box-value","onUpdate:modelValue"])]))),128))],512),[[t.vShow,!e.isExpansionMode||D.value]]),t.createElementVNode("div",W5t,[t.createElementVNode("div",q5t,[t.createElementVNode("span",null,t.toDisplayString(e.productivityCategories.possession.title),1),t.createElementVNode("span",Y5t,"("+t.toDisplayString(n.value)+")",1)]),t.createElementVNode("div",{class:"productivity__body__title__expand-button",onClick:l[2]||(l[2]=o=>_("possession"))},[t.withDirectives(t.createVNode(x1,{"is-expanded":c.value},null,8,["is-expanded"]),[[t.vShow,e.isExpansionMode]])])]),t.withDirectives(t.createElementVNode("div",X5t,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.productivityCategories.possession.categories,o=>(t.openBlock(),t.createElementBlock("div",{key:o.id,class:"productivity__checkbox"},[t.createVNode(t.unref(Is),{label:o.name,fontFamily:e.fontFamily,"model-value":o.isSelected,"avoid-to-check":e.areMaxCategoriesReached,"box-value":o.priority||0,"onUpdate:modelValue":s=>v(s,o)},null,8,["label","fontFamily","model-value","avoid-to-check","box-value","onUpdate:modelValue"])]))),128))],512),[[t.vShow,!e.isExpansionMode||c.value]])])],4),t.createElementVNode("div",Z5t,[t.createElementVNode("div",J5t,[K5t,t.createElementVNode("div",Q5t,[e4t,t.createElementVNode("div",t4t,[a4t,t.createElementVNode("div",null,[t.createVNode(t.unref(Is),{"model-value":m.value.areFoulsCommittedSelected,"avoid-interaction":m.value.areFoulsCommittedSelected,"is-box-only":"","onUpdate:modelValue":l[3]||(l[3]=o=>m.value.areFoulsCommittedSelected=o)},null,8,["model-value","avoid-interaction"])]),t.createElementVNode("div",null,[t.createVNode(t.unref(Is),{"model-value":!m.value.areFoulsCommittedSelected,"avoid-interaction":!m.value.areFoulsCommittedSelected,"is-box-only":"","onUpdate:modelValue":l[4]||(l[4]=o=>m.value.areFoulsCommittedSelected=!o)},null,8,["model-value","avoid-interaction"])])]),t.createElementVNode("div",n4t,[r4t,t.createElementVNode("div",null,[t.createVNode(t.unref(Is),{"model-value":m.value.areYellowCardsSelected,"avoid-interaction":m.value.areYellowCardsSelected,"is-box-only":"","onUpdate:modelValue":l[5]||(l[5]=o=>m.value.areYellowCardsSelected=o)},null,8,["model-value","avoid-interaction"])]),t.createElementVNode("div",null,[t.createVNode(t.unref(Is),{"model-value":!m.value.areYellowCardsSelected,"avoid-interaction":!m.value.areYellowCardsSelected,"is-box-only":"","onUpdate:modelValue":l[6]||(l[6]=o=>m.value.areYellowCardsSelected=!o)},null,8,["model-value","avoid-interaction"])])]),t.createElementVNode("div",i4t,[o4t,t.createElementVNode("div",null,[t.createVNode(t.unref(Is),{"model-value":m.value.areRedCardsSelected,"avoid-interaction":m.value.areRedCardsSelected,"is-box-only":"","onUpdate:modelValue":l[7]||(l[7]=o=>m.value.areRedCardsSelected=o)},null,8,["model-value","avoid-interaction"])]),t.createElementVNode("div",null,[t.createVNode(t.unref(Is),{"model-value":!m.value.areRedCardsSelected,"avoid-interaction":!m.value.areRedCardsSelected,"is-box-only":"","onUpdate:modelValue":l[8]||(l[8]=o=>m.value.areRedCardsSelected=!o)},null,8,["model-value","avoid-interaction"])])])])])])]))}},l4t=ml(s4t,[["__scopeId","data-v-4df743e3"]]),g4=e=>(t.pushScopeId("data-v-9a3af80d"),e=e(),t.popScopeId(),e),c4t={class:"details__header"},u4t=g4(()=>t.createElementVNode("div",{class:"details__header__title"},"Jugando como",-1)),d4t={class:"details__header__checkbox"},h4t={class:"details__body"},p4t={class:"details__body__playing-as"},f4t=["onClick"],m4t={class:"details__header"},g4t=g4(()=>t.createElementVNode("div",{class:"details__header__title"},[t.createTextVNode(" En: "),t.createElementVNode("span",{class:"details__header__title-sm"},"(Elige el lapso de tiempo)")],-1)),y4t={class:"details__header__checkbox"},v4t={class:"details__body"},_4t=g4(()=>t.createElementVNode("div",{class:"details__body__title"},"1er tiempo",-1)),b4t={class:"details__body__game-section"},x4t=["onClick"],w4t={class:"details__body"},k4t=g4(()=>t.createElementVNode("div",{class:"details__body__title"},"2do tiempo",-1)),C4t={class:"details__body__game-section"},S4t=["onClick"],T4t={__name:"TemplateDetails",props:{isPlayingAsHidden:{type:Boolean,default:!1},playingAs:{type:Array,default:()=>[{name:"Local",isSelected:!0},{name:"Visitante",isSelected:!0}]},gameSections:{type:Array,default:()=>[{text:"0-15",value:1,isSelected:!0},{text:"16-30",value:2,isSelected:!0},{text:"31-45",value:3,isSelected:!0},{text:"46-60",value:4,isSelected:!0},{text:"61-75",value:5,isSelected:!0},{text:"76-90",value:6,isSelected:!0}]},fontFamily:{type:String,default:"'Poppins-Regular'"},buttonsBackgroundColor:{type:String,default:"rgba(255, 255, 255, 0)"},buttonsBackgroundColorActive:{type:String,default:"rgba(203, 238, 107, 0.05)"},buttonsTextColor:{type:String,default:"rgba(255, 255, 255, 0.8)"},buttonsTextColorActive:{type:String,default:"rgba(255, 255, 255, 1)"},buttonsBorderColor:{type:String,default:"#8ea2ab"},buttonsBorderColorActive:{type:String,default:"#cbee6b"},buttonsBorderWidth:{type:String,default:"0.8px"},buttonsBorderWidthActive:{type:String,default:"1px"},buttonsBorderRadius:{type:String,default:"4px"}},setup(e){const r=e;t.useCssVars(n=>({"35aa5eb4":e.buttonsBackgroundColor,"7765f8c7":e.buttonsTextColor,"5b6eef4b":e.buttonsBorderWidth,"5a57f0e8":e.buttonsBorderColor,a0a4b168:e.buttonsBackgroundColorActive,"349872ad":e.buttonsTextColorActive,76477631:e.buttonsBorderWidthActive,"39de0e0e":e.buttonsBorderColorActive}));const i=t.computed(()=>r.playingAs.every(n=>n.isSelected)),B=t.computed(()=>r.gameSections.every(n=>n.isSelected)),D=t.computed(()=>r.gameSections.reduce((n,v)=>(v.value<=3?n.firstHalf.push(v):n.secondHalf.push(v),n),{firstHalf:[],secondHalf:[]})),c=t.computed(()=>({"--border-radius-first-button":`${r.buttonsBorderRadius} 0 0 ${r.buttonsBorderRadius}`,"--border-radius-last-button":`0 ${r.buttonsBorderRadius} ${r.buttonsBorderRadius} 0`}));function m(n){n?r.playingAs.forEach(v=>{v.isSelected=!0}):r.playingAs.forEach((v,_)=>{v.isSelected=_===0})}function a(n){r.playingAs.filter(v=>v.isSelected).length===1&&n.isSelected||(n.isSelected=!n.isSelected)}function y(n){r.gameSections.filter(v=>v.isSelected).length===1&&n.isSelected||(n.isSelected=!n.isSelected)}function f(n){n?r.gameSections.forEach(v=>{v.isSelected=!0}):r.gameSections.forEach((v,_)=>{v.isSelected=_===0})}return(n,v)=>(t.openBlock(),t.createElementBlock("div",{class:"details",style:t.normalizeStyle(c.value)},[t.withDirectives(t.createElementVNode("div",c4t,[u4t,t.createElementVNode("div",d4t,[t.createVNode(t.unref(Is),{label:"Todos",fontFamily:e.fontFamily,"model-value":i.value,"onUpdate:modelValue":m},null,8,["fontFamily","model-value"])])],512),[[t.vShow,!e.isPlayingAsHidden]]),t.withDirectives(t.createElementVNode("div",h4t,[t.createElementVNode("div",p4t,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r.playingAs,(_,p)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${p}`,class:t.normalizeClass(["details__body__button",{active:_.isSelected}]),onClick:l=>a(_)},t.toDisplayString(_.name),11,f4t))),128))])],512),[[t.vShow,!e.isPlayingAsHidden]]),t.createElementVNode("div",m4t,[g4t,t.createElementVNode("div",y4t,[t.createVNode(t.unref(Is),{label:"Todos",fontFamily:e.fontFamily,"model-value":B.value,"onUpdate:modelValue":f},null,8,["fontFamily","model-value"])])]),t.createElementVNode("div",v4t,[_4t,t.createElementVNode("div",b4t,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(D.value.firstHalf,(_,p)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${p}`,class:t.normalizeClass(["details__body__button",{active:_.isSelected}]),onClick:l=>y(_)},t.toDisplayString(_.text),11,x4t))),128))])]),t.createElementVNode("div",w4t,[k4t,t.createElementVNode("div",C4t,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(D.value.secondHalf,(_,p)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${p}`,class:t.normalizeClass(["details__body__button",{active:_.isSelected}]),onClick:l=>y(_)},t.toDisplayString(_.text),11,S4t))),128))])])],4))}},E4t=ml(T4t,[["__scopeId","data-v-9a3af80d"]]),A4t={class:"scroll-container"},M4t={__name:"ScrollContainer",props:{width:{type:String,default:"100%"},height:{type:String,default:"100%"}},setup(e){return t.useCssVars(r=>({"6aab424d":e.height,39848040:e.width})),(r,i)=>(t.openBlock(),t.createElementBlock("div",A4t,[t.renderSlot(r.$slots,"default",{},void 0,!0)]))}},LH=ml(M4t,[["__scopeId","data-v-218f5976"]]),I4t={class:"tournaments"},P4t={class:"tournaments__tournament"},B4t={__name:"TemplateTournaments",props:{tournaments:{type:Array,default:()=>[]},fontFamily:{type:String,default:"'Poppins-Regular'"}},emits:["change-filters-selected","update:filters"],setup(e,{emit:r}){const i=e,B=t.ref(!1),D=t.computed(()=>i.tournaments.filter(m=>m.isSelected).length);t.watch(()=>i.tournaments,m=>{const a=m.filter(y=>y.isSelected);B.value=a.length===m.length,r("change-filters-selected",a.length),r("update:filters",i.tournaments)},{immediate:!0,deep:!0});function c(m){i.tournaments.forEach((a,y)=>{a.isSelected=m||(y!==0?m:!0)})}return(m,a)=>(t.openBlock(),t.createElementBlock("div",I4t,[t.createVNode(LH,{height:"200px"},{default:t.withCtx(()=>[t.createElementVNode("div",P4t,[t.createVNode(t.unref(Is),{"model-value":B.value,label:"Todas las ligas",fontFamily:e.fontFamily,width:"100%","onUpdate:modelValue":c},null,8,["model-value","fontFamily"])]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.tournaments,y=>(t.openBlock(),t.createElementBlock("div",{key:y.id||y._id,class:"tournaments__tournament"},[t.createVNode(t.unref(Is),{modelValue:y.isSelected,"onUpdate:modelValue":f=>y.isSelected=f,label:y.name,fontFamily:e.fontFamily,width:"100%","avoid-interaction":D.value===1&&y.isSelected},null,8,["modelValue","onUpdate:modelValue","label","fontFamily","avoid-interaction"])]))),128))]),_:1})]))}},N4t=ml(B4t,[["__scopeId","data-v-590d8ab3"]]),er={PLAYS:"plays",PRODUCTIVITY:"productivity",FIELD:"field",UNIVERSE:"universe",DETAILS:"details",TOURNAMENTS:"tournaments",PERSONAL_DATA:"personalData",PLAYS_TYPES:"playsTypes",GOLSTATS:"golstats",DISTANCE:"distance",RESULTS:"results",RESULTS_BY_TIME:"resultsByTime",VIDEOS:"videos",GAMES:"games",TAKEN_CORNERS:"takenCorners",HOW_WAS_CORNER:"howWasCorner",ZONE:"zone",WHAT_HAPPENED:"whatHappened"},z4t={key:0,class:"plays-golstats__placeholder"},O4t=["onClick"],F4t={key:0,class:"plays-golstats__item__value"},L4t={class:"plays-golstats__item__text"},D4t={class:"plays-golstats__item__svg"},R4t={width:"10",height:"8",viewBox:"0 0 10 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},V4t=["fill"],$4t={__name:"TemplatePlaysTypeAndGolstats",props:{height:{type:String,default:"fit-content"},type:{type:String,default:""},categories:{type:Array,default:()=>[]},svgColor:{type:String,default:"#CBEE6B"},svgWidth:{type:Number,default:10},svgHeight:{type:Number,default:8}},emits:["change-filters-selected","update:filters"],setup(e,{emit:r}){const i=e,B=t.computed(()=>({"--grid-template-columns":i.type===er.PLAYS_TYPES?"1fr min-content":"min-content 1fr min-content","--svg-width":`${i.svgWidth}px`,"--svg-height":`${i.svgHeight}px`}));t.watch(()=>i.categories,c=>{const m=c.filter(a=>a.isSelected);r("update:filters",m)},{immediate:!0,deep:!0});function D(c){c.isSelected||(i.categories.forEach(m=>{m.isSelected=!1}),c.isSelected=!0,i.type===er.GOLSTATS&&r("change-filters-selected",c.value))}return(c,m)=>(t.openBlock(),t.createElementBlock("div",{class:"plays-golstats",style:t.normalizeStyle(B.value)},[t.createVNode(LH,{height:e.height},{default:t.withCtx(()=>[e.type===t.unref(er).PLAYS_TYPES?(t.openBlock(),t.createElementBlock("div",z4t," Elige un tipo de jugada para filtrar: ")):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.categories,(a,y)=>(t.openBlock(),t.createElementBlock("div",{key:`k${y}`,class:"plays-golstats__item",onClick:f=>D(a)},[e.type===t.unref(er).GOLSTATS?(t.openBlock(),t.createElementBlock("div",F4t,t.toDisplayString(a.value),1)):t.createCommentVNode("",!0),t.createElementVNode("div",L4t,t.toDisplayString(a.name),1),t.createElementVNode("div",D4t,[t.withDirectives((t.openBlock(),t.createElementBlock("svg",R4t,[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,V4t)],512)),[[t.vShow,a.isSelected]])])],8,O4t))),128))]),_:1},8,["height"])],4))}},DH=ml($4t,[["__scopeId","data-v-af3c1673"]]),j4t=(e,r)=>{const i=e.__vccOpts||e;for(const[B,D]of r)i[B]=D;return i},fE={props:{textRight:{type:String,default:""},textRightColor:{type:String,default:"#FFFFFF"},textRightFontFamily:{type:String,default:"Poppins-Regular"},textRightFontSize:{type:String,default:"13px"},placeholder:{type:String,default:"Ingresar valor"},value:String,inputType:{type:String,default:"text"},width:{type:String,default:"100%"},height:{type:String,default:"30px"},backgroundColor:{type:String,default:"#2e3b46"},borderRadius:{type:String,default:"10px"},border:{type:String,default:"1px solid #bdc1c4"},color:{type:String,default:"#FFFFFF"},placeholderColor:{type:String,default:"#bdc1c4"},font:{type:String,default:"Poppins-Regular"},fontSize:{type:String,default:"13px"},padding:{type:String,default:"11px"},isNumbersOnly:{type:Boolean,default:!1}},computed:{inputStyle(){return{width:this.width,height:this.height,backgroundColor:this.backgroundColor,borderRadius:this.borderRadius,border:this.border,color:this.color,fontFamily:this.font,fontSize:this.fontSize,placeholderColor:this.placeholderColor,paddingLeft:this.padding}}},methods:{updateInputValue(e){this.$emit("inputval",e.target.value)},onKeyDown(e){if(this.isNumbersOnly){const r=e.which?e.which:e.keyCode();r>31&&(r<48||r>57)&&e.preventDefault()}}}},RH=()=>{t.useCssVars(e=>({"53e1855a":e.textRightColor,da8ee600:e.textRightFontSize,"9fb876ba":e.textRightFontFamily}))},VH=fE.setup;fE.setup=VH?(e,r)=>(RH(),VH(e,r)):RH;const U4t={class:"input-container"},G4t=["type","placeholder","value"],H4t={class:"right-text"};function W4t(e,r,i,B,D,c){return t.openBlock(),t.createElementBlock("div",U4t,[t.createElementVNode("input",{type:i.inputType,placeholder:i.placeholder,value:i.value,style:t.normalizeStyle(c.inputStyle),onKeydown:r[0]||(r[0]=(...m)=>c.onKeyDown&&c.onKeyDown(...m)),onInput:r[1]||(r[1]=(...m)=>c.updateInputValue&&c.updateInputValue(...m))},null,44,G4t),t.createElementVNode("div",H4t,t.toDisplayString(i.textRight),1)])}const $H=j4t(fE,[["render",W4t],["__scopeId","data-v-b73049e7"]]),q4t=(e,r)=>{const i=e.__vccOpts||e;for(const[B,D]of r)i[B]=D;return i},mE={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))}}},jH=()=>{t.useCssVars(e=>({"1c960139":e.height,b2f635d8:e.borderWidthBtn,"06e99898":e.borderType,"55555c76":e.borderColor,"23b6d320":e.borderRadius,"22c97374":e.width,"22bb09fa":e.backgroundColor,c148da7c:e.cursorType,cce756fc:e.fontSize,cff98d60:e.fontStyle,"5123b3a5":e.fontFamily,"47bf58db":e.marginLeftStat,cadc8414:e.fontSizeStat}))},UH=mE.setup;mE.setup=UH?(e,r)=>(jH(),UH(e,r)):jH;const Y4t=e=>(t.pushScopeId("data-v-fb269a1e"),e=e(),t.popScopeId(),e),X4t=["src"],Z4t={key:1,class:"text"},J4t=["src"],K4t={class:"stats"},Q4t=Y4t(()=>t.createElementVNode("img",{class:"iconstats",src:"https://az755631.vo.msecnd.net/todoelfut/playdes.png"},null,-1)),e6t={class:"numstats"},t6t={class:"leyend"};function a6t(e,r,i,B,D,c){return t.openBlock(),t.createElementBlock("div",null,[i.type==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["button",D.status&&i.typeOnOff&&"button-active"]),style:t.normalizeStyle([c.customStyle,D.status&&i.typeOnOff&&c.customActive]),onClick:r[0]||(r[0]=(...m)=>c.btnClick&&c.btnClick(...m))},[i.icon&&i.iconPosition.toLowerCase()==="left"?(t.openBlock(),t.createElementBlock("img",{key:0,class:"icon",style:t.normalizeStyle({width:i.iconSize}),src:i.icon},null,12,X4t)):t.createCommentVNode("",!0),i.textValue?(t.openBlock(),t.createElementBlock("div",Z4t,t.toDisplayString(i.textValue),1)):t.createCommentVNode("",!0),i.icon&&i.iconPosition.toLowerCase()==="right"?(t.openBlock(),t.createElementBlock("img",{key:2,class:"icon",style:t.normalizeStyle({width:i.iconSize}),src:i.icon},null,12,J4t)):t.createCommentVNode("",!0)],6)):t.createCommentVNode("",!0),i.type==1?(t.openBlock(),t.createElementBlock("div",{key:1,class:"button-target",onClick:r[1]||(r[1]=(...m)=>c.btnClick&&c.btnClick(...m))},[t.createElementVNode("div",K4t,[Q4t,t.createElementVNode("div",e6t,t.toDisplayString(i.textStat),1)]),t.createElementVNode("div",t6t,t.toDisplayString(i.textCategory),1)])):t.createCommentVNode("",!0)])}const n6t=q4t(mE,[["render",a6t],["__scopeId","data-v-fb269a1e"]]),r6t={class:"gsc-dropdown__main-container__item-selected"},i6t=["height","width"],o6t=["stroke"],s6t={class:"gsc-dropdown__items-container"},l6t=["onClick"],c6t={key:0,class:"gsc-dropdown__items-footer"},d0={__name:"GSC-Dropdown",props:{modelValue:{type:[Object,Number,String],default:()=>null},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},fontSize:{type:String,default:"14px"},borderRadius:{type:Number,default:5},arrowHeight:{type:Number,default:24},arrowWidth:{type:Number,default:24},borderType:{type:String,default:"solid",validator:function(e){return["solid","dotted","dashed"].includes(e)}},borderWidth:{type:Number,default:1},borderColor:{type:String,default:"black"},backgroundColor:{type:String,default:"grey"},color:{type:String,default:"black"},arrowColor:{type:String,default:"#CBEE6B"},items:{type:Array,default:()=>[]},defaultItemByIndex:{type:Number,default:0},defaultItemByProp:{type:Object,default:null,validator:e=>["propName","value"].every(r=>r in e)},listBackgroundColor:{type:String,default:"white"},hoverBackgroundColor:{type:String,default:"#f1f1f1"},listItemPadding:{type:String,default:"10px 12px"},listHeight:{type:String,default:"fit-content"},listItemSelectedColor:{type:String,default:"white"},listItemSelectedBackgroundColor:{type:String,default:"#399cfd"},listItemColor:{type:String,default:"black"},listBorderRadius:{type:String,default:"0"},listBorderColor:{type:String,default:""},listBorderWidth:{type:Number,default:1},isListSameWidth:{type:Boolean,default:!1},isMultipleOption:{type:Boolean,default:!1},footerBorderColor:{type:String,default:"#626970"},footerBorderWidth:{type:Number,default:1},isFooterVisible:{type:Boolean,default:!1},isDisabled:{type:Boolean,default:!1},onlyFirstTime:{type:Boolean,default:!1}},emits:["input","click-ready","update:modelValue"],setup(e,{emit:r}){const i=e,B=t.ref({}),D=t.ref(null),c=t.ref(i.isMultipleOption?-1:0),m=t.ref(!1);t.watch(()=>i.items,(p,l)=>{if(!i.modelValue&&(!i.onlyFirstTime||!l||!l.length)&&p&&p.length){if(i.defaultItemByProp){const o=i.items.findIndex(s=>s[i.defaultItemByProp.propName]===i.defaultItemByProp.value);o!==-1?(c.value=o,B.value=p[o]):(c.value=0,B.value=p[0])}else B.value=p[i.defaultItemByIndex];r("input",B.value)}},{immediate:!0}),t.watch(()=>i.modelValue,p=>{if(p){const l=i.items.findIndex(o=>typeof p=="object"?JSON.stringify(o)===JSON.stringify(p):o===p);l!==-1&&(c.value=l,B.value=i.items[l],r("update:modelValue",B.value))}},{immediate:!0});const a=t.computed(()=>({height:i.height,width:i.width,backgroundColor:i.backgroundColor,borderRadius:`${i.borderRadius}px`,border:`${i.borderType} ${i.borderWidth}px ${i.borderColor}`,color:i.color,"--hover-background-color":i.hoverBackgroundColor,"--list-item-padding":i.listItemPadding,"--list-background-color":i.listBackgroundColor,"--list-height":i.listHeight,"--list-item-selected-color":i.listItemSelectedColor,"--list-item-selected-background-color":i.listItemSelectedBackgroundColor,"--list-item-color":i.listItemColor,"--list-border-radius":`${i.listBorderRadius}`,"--list-border-color":i.listBorderColor,"--list-width":i.isListSameWidth?i.width:"fit-content","--list-border-width":`${i.listBorderWidth}px`,"--footer-border":`${i.footerBorderWidth}px solid ${i.footerBorderColor}`,"--dropdown-opacity":i.isDisabled?"0.5":"1","--dropdown-cursor":i.isDisabled?"not-allowed":"pointer","--dropdown-font-size":i.fontSize?i.fontSize:"14px"})),y=t.computed(()=>({height:`${i.arrowHeight}px`,width:`${i.arrowWidth}px`}));function f(){i.isDisabled||(m.value=!m.value)}function n(p){D.value&&!D.value.contains(p.target)&&(m.value=!1)}function v(p,l){i.isMultipleOption?c.value=-1:(c.value=l,m.value=!1),B.value=p,r("input",B.value),r("update:modelValue",B.value)}function _(){m.value=!1,r("click-ready")}return t.onMounted(()=>{document.addEventListener("click",n)}),t.onBeforeMount(()=>{document.removeEventListener("click",n)}),(p,l)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"dropDown",ref:D,class:"gsc-dropdown",style:t.normalizeStyle(a.value)},[t.createElementVNode("div",{class:"gsc-dropdown__main-container",style:t.normalizeStyle({"padding-right":`${e.arrowWidth+8}px`}),onClick:f},[t.createElementVNode("div",r6t,[t.renderSlot(p.$slots,"default",{selectedItem:B.value})]),t.createElementVNode("div",{class:t.normalizeClass(["gsc-dropdown__main-container__icon",{"rotated-180":m.value}]),style:t.normalizeStyle(y.value)},[(t.openBlock(),t.createElementBlock("svg",{height:e.arrowHeight,width:e.arrowWidth,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M18.394 9.13501L13.1302 14.3988C12.5086 15.0204 11.4914 15.0204 10.8697 14.3988L5.60596 9.13501",stroke:e.arrowColor},null,8,o6t)],8,i6t))],6)],4),t.createVNode(t.Transition,null,{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("div",s6t,[t.createElementVNode("div",null,[t.createElementVNode("div",{class:"gsc-dropdown__items",style:t.normalizeStyle({"margin-top":`${i.borderWidth}px`})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(o,s)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["gsc-dropdown__items__item",{selected:s===c.value}]),key:s,onClick:d=>v(o,s)},[t.renderSlot(p.$slots,"availableItem",{item:o})],10,l6t))),128))],4),e.isFooterVisible?(t.openBlock(),t.createElementBlock("div",c6t,[t.createVNode(t.unref(n6t),{"text-value":"Listo","border-color":"#cbee6b","font-size":"12px",width:"72px",height:"22px","border-radius":"62px","border-width":.8,onClick:_})])):t.createCommentVNode("",!0)])],512),[[t.vShow,m.value]])]),_:3})],4))}},g_={borderType:"solid",listBackgroundColor:"#2E3B46",listBorderColor:"rgba(255, 255, 255, 0.2)",listBorderRadius:"5px",height:"38px",borderWidth:.8,borderColor:"white",backgroundColor:"#2E3B46",color:"white",listItemColor:"white",listItemSelectedBackgroundColor:"#2E3B46",arrowColor:"#fff",width:"100%",listHeight:"200px",isListSameWidth:!0,isFooterVisible:!0,hoverBackgroundColor:"#2E3B46"},jy=e=>(t.pushScopeId("data-v-b1fc2fa6"),e=e(),t.popScopeId(),e),u6t={class:"universe"},d6t=jy(()=>t.createElementVNode("div",{class:"universe__sub-header"},"Escribe los minutos jugados",-1)),h6t=jy(()=>t.createElementVNode("div",{class:"universe__label"},"Igual o mayor que:",-1)),p6t={class:"universe__inputs"},f6t={class:"universe__inputs__input"},m6t={class:"universe__inputs__checkbox"},g6t=jy(()=>t.createElementVNode("div",{class:"universe__sub-header"},"Escribe el % de minutos jugados contra el total posible",-1)),y6t=jy(()=>t.createElementVNode("div",{class:"universe__label"},"Mayor que:",-1)),v6t={class:"universe__inputs"},_6t={class:"universe__inputs__input"},b6t={class:"universe__inputs__checkbox"},x6t=jy(()=>t.createElementVNode("div",{class:"universe__sub-header"},"Selecciona el lapso de tiempo",-1)),w6t=jy(()=>t.createElementVNode("div",{class:"universe__label"},"Considerando los últimos:",-1)),k6t={class:"universe__dropdown"},C6t={class:"selected-item"},GH=11,S6t={__name:"TemplateUniverse",props:{universeFilters:{type:Object,default:()=>({minutesPlayed:0,percentMinutesPlayed:0,lastMonths:Array.from({length:24},(e,r)=>r+1),statistics:{totals:!0,averagePerGame:!1,averagePerMinute:!1}})},fontFamily:{type:String,default:"'Poppins-Regular'"}},emits:["update:universeFilters"],setup(e,{expose:r,emit:i}){const B=e,D=t.ref(!1),c=t.ref(!1),m=t.ref(!1),a=t.ref({statistics:{}});t.watch(()=>B.universeFilters,p=>{a.value={...p,lastMonths:p.selectedMonth?p.selectedMonth:p.lastMonths[GH],statistics:{...p.statistics}}},{deep:!0,immediate:!0}),t.watch(()=>a,p=>{D.value=!p.value.minutesPlayed||Number(p.value.minutesPlayed)===0,c.value=!p.value.percentMinutesPlayed||Number(p.value.percentMinutesPlayed)===0,m.value=!p.value.lastMonths||Number(p.value.lastMonths)===0,i("update:universeFilters",p)},{deep:!0,immediate:!0});function y(p){a.value.minutesPlayed=p}function f(p){a.value.percentMinutesPlayed=p}function n(p,l){switch(l){case"minutes":D.value=p,p&&(a.value.minutesPlayed=0);break;case"percent":c.value=p,p&&(a.value.percentMinutesPlayed=0);break;case"months":m.value=p,p&&(a.value.lastMonths=0);break}}function v(){a.value={...B.universeFilters,lastMonths:B.universeFilters.lastMonths[GH],statistics:{...B.universeFilters.statistics}}}function _(p){a.value.lastMonths=p}return r({resetFilters:v}),(p,l)=>(t.openBlock(),t.createElementBlock("div",u6t,[d6t,h6t,t.createElementVNode("div",p6t,[t.createElementVNode("div",f6t,[t.createVNode(t.unref($H),{value:a.value.minutesPlayed,type:"text",inputmode:"numeric","border-radius":"4px",border:"solid 0.8px #8ea2ab","text-right":"Min","is-numbers-only":"",onInputval:y},null,8,["value"])]),t.createElementVNode("div",m6t,[t.createVNode(t.unref(Is),{modelValue:D.value,label:"Indistinto",fontFamily:e.fontFamily,"box-position":"right","onUpdate:modelValue":l[0]||(l[0]=o=>n(o,"minutes"))},null,8,["modelValue","fontFamily"])])]),g6t,y6t,t.createElementVNode("div",v6t,[t.createElementVNode("div",_6t,[t.createVNode(t.unref($H),{value:a.value.percentMinutesPlayed,"input-type":"number","border-radius":"4px",border:"solid 0.8px #8ea2ab","text-right":"%","is-numbers-only":"",onInputval:f},null,8,["value"])]),t.createElementVNode("div",b6t,[t.createVNode(t.unref(Is),{modelValue:c.value,label:"Indistinto",fontFamily:e.fontFamily,"box-position":"right","onUpdate:modelValue":l[1]||(l[1]=o=>n(o,"percent"))},null,8,["modelValue","fontFamily"])])]),x6t,w6t,t.createElementVNode("div",k6t,[t.createVNode(t.unref(d0),t.mergeProps(t.unref(g_),{items:e.universeFilters.lastMonths,"model-value":a.value.lastMonths,onInput:_}),{default:t.withCtx(({selectedItem:o})=>[t.createElementVNode("div",C6t,t.toDisplayString(o)+" "+t.toDisplayString(o===1?"mes":"meses"),1)]),availableItem:t.withCtx(({item:o})=>[t.createElementVNode("div",null,t.toDisplayString(o)+" "+t.toDisplayString(o===1?"mes":"meses"),1)]),_:1},16,["items","model-value"])]),t.createCommentVNode("",!0),t.createCommentVNode("",!0)]))}},T6t=ml(S6t,[["__scopeId","data-v-b1fc2fa6"]]),HH=(e,r)=>{const i=e.__vccOpts||e;for(const[B,D]of r)i[B]=D;return i},E6t={name:"MultiRangeSlider",props:{baseClassName:{type:String,default:"multi-range-slider"},min:{type:Number},max:{type:Number},minValue:{type:Number},maxValue:{type:Number},step:{type:Number,default:1},preventWheel:{type:Boolean,default:!1},ruler:{type:Boolean,default:!0},label:{type:Boolean,default:!0},labels:{type:Array},minCaption:{type:String},maxCaption:{type:String},rangeMargin:{type:Number}},data(){let e=this.labels||[],r=this.min===void 0?0:this.min,i=e.length?e.length-1:100,B=this.max===void 0?i:this.max,D=this.minValue===void 0?25:this.minValue;e.length&&this.minValue===void 0&&(D=1);let c=this.maxValue||75;if(e.length&&this.maxValue===void 0&&(c=e.length-2),B<=r)throw new Error("Invalid props min or max");if(D>c)throw new Error("Invalid props minValue or maxValue");let m=this.rangeMargin===void 0?this.step:this.rangeMargin,a=m%this.step;return a&&(m=m+this.step-a),{valueMin:D<r?r:D,valueMax:c>B?B:c,interVal:null,startX:null,mouseMoveCounter:null,barBox:null,barValue:0,rangeMarginValue:m}},methods:{onBarLeftClick(){this.valueMin-this.step>=this.minimum?this.valueMin-=this.step:this.valueMin=this.minimum},onInnerBarLeftClick(){this.valueMin+this.rangeMarginValue<this.valueMax&&(this.valueMin+=this.step)},onBarRightClick(){this.valueMax+this.step<=this.maximum?this.valueMax+=this.step:this.valueMax=this.maximum},onInnerBarRightClick(){this.valueMax-this.rangeMarginValue>this.valueMin&&(this.valueMax-=this.step)},onInputMinChange(e){let r=parseFloat(e.target.value);r<=this.valueMax-this.rangeMarginValue&&r>=this.minimum?this.valueMin=r:e.target.value=this.valueMin},onInputMaxChange(e){let r=parseFloat(e.target.value);r>=this.valueMin+this.rangeMarginValue&&r<=this.maximum?this.valueMax=r:e.target.value=this.valueMax},onLeftThumbMousedown(e){if(e.preventDefault(),this.startX=e.clientX,e.type==="touchstart")if(e.touches.length===1)this.startX=e.touches[0].clientX;else return;this.mouseMoveCounter=0,this.barValue=this.valueMin,this.barBox=e.target.parentNode.getBoundingClientRect(),document.addEventListener("mousemove",this.onLeftThumbMousemove),document.addEventListener("mouseup",this.onLeftThumbMouseup),document.addEventListener("touchmove",this.onLeftThumbMousemove),document.addEventListener("touchend",this.onLeftThumbMouseup)},onLeftThumbMousemove(e){this.mouseMoveCounter++;let r=e.clientX;e.type==="touchmove"&&(r=e.touches[0].clientX);let i=(r-this.startX)/this.barBox.width,B=this.barValue+(this.maximum-this.minimum)*i,D=B%this.step;B-=D,B<this.minimum?B=this.minimum:B>this.valueMax-this.rangeMarginValue&&(B=this.valueMax-this.rangeMarginValue),this.valueMin=B},onLeftThumbMouseup(){document.removeEventListener("mousemove",this.onLeftThumbMousemove),document.removeEventListener("mouseup",this.onLeftThumbMouseup),document.removeEventListener("touchmove",this.onLeftThumbMousemove),document.removeEventListener("touchend",this.onLeftThumbMouseup)},onRightThumbMousedown(e){if(e.preventDefault(),this.startX=e.clientX,e.type==="touchstart")if(e.touches.length===1)this.startX=e.touches[0].clientX;else return;this.mouseMoveCounter=0,this.barValue=this.valueMax,this.barBox=e.target.parentNode.getBoundingClientRect(),document.addEventListener("mousemove",this.onRightThumbMousemove),document.addEventListener("mouseup",this.onRightThumbMouseup),document.addEventListener("touchmove",this.onRightThumbMousemove),document.addEventListener("touchend",this.onRightThumbMouseup)},onRightThumbMousemove(e){this.mouseMoveCounter++;let r=e.clientX;e.type==="touchmove"&&(r=e.touches[0].clientX);let i=(r-this.startX)/this.barBox.width,B=this.barValue+(this.maximum-this.minimum)*i,D=B%this.step;B-=D,B<this.valueMin+this.rangeMarginValue?B=this.valueMin+this.rangeMarginValue:B>this.maximum&&(B=this.maximum),this.valueMax=B},onRightThumbMouseup(){document.removeEventListener("mousemove",this.onRightThumbMousemove),document.removeEventListener("mouseup",this.onRightThumbMouseup),document.removeEventListener("touchmove",this.onRightThumbMousemove),document.removeEventListener("touchend",this.onRightThumbMouseup)},onMouseWheel(e){if(this.preventWheel===!0||!e.shiftKey&&!e.ctrlKey)return;let r=this.step;e.deltaY<0&&(r=-r),e.shiftKey&&e.ctrlKey?this.valueMin+r>=this.minimum&&this.valueMax+r<=this.maximum&&(this.valueMin=this.valueMin+r,this.valueMax=this.valueMax+r):e.ctrlKey?(r=this.valueMax+r,r<this.valueMin+this.rangeMarginValue?r=this.valueMin+this.rangeMarginValue:r>this.maximum&&(r=this.maximum),this.valueMax=r):e.shiftKey&&(r=this.valueMin+r,r<this.minimum?r=this.minimum:r>this.valueMax-this.rangeMarginValue&&(r=this.valueMax-this.rangeMarginValue),this.valueMin=r)},triggerInput(){let e=0;this.step.toString().includes(".")&&(e=2);let r={min:this.minimum,max:this.maximum,minValue:parseFloat(this.valueMin.toFixed(e)),maxValue:parseFloat(this.valueMax.toFixed(e))};this.$emit("input",r)}},computed:{minimum(){return this.min===void 0?0:this.min},maximum(){let e=this.labels||[],r=e.length?e.length-1:100;return this.max===void 0?r:this.max},stepCount(){let e=this.labels||[];return e.length?e.length-1:Math.floor((this.maximum-this.minimum)/this.step)},subStepCount(){return(this.labels||[]).length&&this.step>1?(this.maximum-this.minimum)/this.step:0},barMin(){return(this.valueMin-this.minimum)/(this.maximum-this.minimum)*100},barMax(){return 100-(this.valueMax-this.minimum)/(this.maximum-this.minimum)*100},barMinVal(){let e=0;return this.step.toString().includes(".")&&(e=2),(this.valueMin||0).toFixed(e)},barMaxVal(){let e=0;return this.step.toString().includes(".")&&(e=2),(this.valueMax||100).toFixed(e)},scaleLabels(){let e=this.labels||[];return e.length===0&&(e=[],e.push(this.minimum),e.push(this.maximum)),e}},watch:{valueMin(){this.triggerInput()},valueMax(){this.triggerInput()},minValue(e){this.valueMin=e<this.minimum?this.minimum:e},maxValue(e){this.valueMax=e>this.maximum?this.maximum:e}},mounted(){}},A6t={class:"bar"},M6t=["min","max","step","value"],I6t={class:"caption"},P6t={class:"min-caption"},B6t={class:"bar-inner"},N6t=["min","max","step","value"],z6t={class:"caption"},O6t={class:"max-caption"},F6t={key:0,class:"ruler"},L6t={key:1,class:"sub-ruler"},D6t={key:2,class:"labels"};function R6t(e,r,i,B,D,c){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass([i.baseClassName,D.rangeMarginValue===0?"zero-ranage-margin":""]),onMousewheel:r[10]||(r[10]=t.withModifiers((...m)=>c.onMouseWheel&&c.onMouseWheel(...m),["prevent","stop"]))},[t.createElementVNode("div",A6t,[t.createElementVNode("div",{class:"bar-left",style:t.normalizeStyle({width:c.barMin+"%"}),onClick:r[0]||(r[0]=(...m)=>c.onBarLeftClick&&c.onBarLeftClick(...m))},null,4),t.createElementVNode("input",{class:"input-type-range input-type-range-min",type:"range",min:c.minimum,max:c.maximum,step:i.step,value:D.valueMin,onInput:r[1]||(r[1]=t.withModifiers((...m)=>c.onInputMinChange&&c.onInputMinChange(...m),["stop","prevent"]))},null,40,M6t),t.createElementVNode("div",{class:"thumb thumb-left",onMousedown:r[2]||(r[2]=(...m)=>c.onLeftThumbMousedown&&c.onLeftThumbMousedown(...m)),onTouchstart:r[3]||(r[3]=(...m)=>c.onLeftThumbMousedown&&c.onLeftThumbMousedown(...m))},[t.createElementVNode("div",I6t,[t.createElementVNode("span",P6t,t.toDisplayString(i.minCaption||c.barMinVal),1)])],32),t.createElementVNode("div",B6t,[t.createElementVNode("div",{class:"bar-inner-left",onClick:r[4]||(r[4]=(...m)=>c.onInnerBarLeftClick&&c.onInnerBarLeftClick(...m))}),t.createElementVNode("div",{class:"bar-inner-right",onClick:r[5]||(r[5]=(...m)=>c.onInnerBarRightClick&&c.onInnerBarRightClick(...m))})]),t.createElementVNode("input",{class:"input-type-range input-type-range-max",type:"range",min:c.minimum,max:c.maximum,step:i.step,value:D.valueMax,onInput:r[6]||(r[6]=t.withModifiers((...m)=>c.onInputMaxChange&&c.onInputMaxChange(...m),["stop","prevent"]))},null,40,N6t),t.createElementVNode("div",{class:"thumb thumb-right",onMousedown:r[7]||(r[7]=(...m)=>c.onRightThumbMousedown&&c.onRightThumbMousedown(...m)),onTouchstart:r[8]||(r[8]=(...m)=>c.onRightThumbMousedown&&c.onRightThumbMousedown(...m))},[t.createElementVNode("div",z6t,[t.createElementVNode("span",O6t,t.toDisplayString(i.maxCaption||c.barMaxVal),1)])],32),t.createElementVNode("div",{class:"bar-right",style:t.normalizeStyle({width:c.barMax+"%"}),onClick:r[9]||(r[9]=(...m)=>c.onBarRightClick&&c.onBarRightClick(...m))},null,4)]),i.ruler?(t.openBlock(),t.createElementBlock("div",F6t,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(c.stepCount,m=>(t.openBlock(),t.createElementBlock("div",{key:m,class:"ruler-rule"}))),128))])):t.createCommentVNode("",!0),c.subStepCount?(t.openBlock(),t.createElementBlock("div",L6t,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(c.subStepCount,m=>(t.openBlock(),t.createElementBlock("div",{key:m,class:"ruler-sub-rule"}))),128))])):t.createCommentVNode("",!0),i.label?(t.openBlock(),t.createElementBlock("div",D6t,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(c.scaleLabels,m=>(t.openBlock(),t.createElementBlock("div",{class:"label",key:m},t.toDisplayString(m),1))),128))])):t.createCommentVNode("",!0)],34)}const V6t=HH(E6t,[["render",R6t]]),gE={components:{MultiRangeSlider:V6t},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)}}},WH=()=>{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}))},qH=gE.setup;gE.setup=qH?(e,r)=>(WH(),qH(e,r)):WH;const $6t={class:"center"},j6t={class:"bar-ref"},U6t={class:"bar-ref-element-left"},G6t={class:"bar-ref-element-right"};function H6t(e,r,i,B,D,c){const m=t.resolveComponent("MultiRangeSlider");return t.openBlock(),t.createElementBlock("div",{class:"custom-range-slider",style:t.normalizeStyle(c.customStyle)},[t.createElementVNode("div",$6t,[t.createElementVNode("div",j6t,[t.createElementVNode("div",U6t,[t.createElementVNode("div",{class:"text",style:t.normalizeStyle(c.customStyleText)},"De:",4),t.createElementVNode("div",{class:"value",style:t.normalizeStyle(c.customStyleValue)},t.toDisplayString(D.minValueLocal)+t.toDisplayString(i.minSuffix),5)]),t.createElementVNode("div",G6t,[t.createElementVNode("div",{class:"text",style:t.normalizeStyle(c.customStyleText)},"A:",4),t.createElementVNode("div",{class:"value",style:t.normalizeStyle(c.customStyleValue)},t.toDisplayString(D.maxValueLocal)+t.toDisplayString(i.maxSuffix),5)])]),t.createVNode(m,{baseClassName:"multi-range-slider",min:i.minLimit,max:i.maxLimit,step:1,ruler:!1,label:!1,"min-value":D.minValueLocal,"max-value":D.maxValueLocal,"range-margin":0,onInput:c.onInput},null,8,["min","max","min-value","max-value","onInput"])])],4)}const YH=HH(gE,[["render",H6t]]),W6t={class:"template-distance"},q6t={__name:"TemplateDistance",props:{distance:{type:Object,default:()=>({minLimit:5,maxLimit:30,minValue:5,maxValue:30})}},emits:["update:distanceFilters"],setup(e,{emit:r}){const i=e,B=t.ref({minValue:0,maxValue:0,minLimit:0,maxLimit:0});t.watch(()=>B.value,c=>{r("update:distanceFilters",c)},{deep:!0}),t.watch(()=>i.distance,c=>{B.value.minValue=c.minValue,B.value.maxValue=c.maxValue,B.value.minLimit=c.minLimit,B.value.maxLimit=c.maxLimit},{immediate:!0,deep:!0});function D(c){B.value.minValue=c.minValue,B.value.maxValue=c.maxValue}return(c,m)=>(t.openBlock(),t.createElementBlock("div",W6t,[t.createVNode(t.unref(YH),{"border-width":"0","background-color":"#0D1D29",height:"30px","font-size-value":"12px","font-size":"12px","line-in-range-color":"white","background-indicador":"#CBEE6B","min-limit":B.value.minLimit,"max-limit":B.value.maxLimit,"min-value":B.value.minValue,"max-value":B.value.maxValue,"min-suffix":"m","max-suffix":"+",onInput:D},null,8,["min-limit","max-limit","min-value","max-value"])]))}},Y6t=e=>(t.pushScopeId("data-v-be32e3d8"),e=e(),t.popScopeId(),e),X6t={class:"template-games"},Z6t={class:"template-games__header"},J6t=Y6t(()=>t.createElementVNode("div",{class:"template-games__header__title"},"Partidos jugados:",-1)),K6t={class:"template-games__header__all-games"},Q6t={__name:"TemplateGames",props:{gamesFilters:{type:Array,default:()=>[]}},emits:["update:gamesFilters"],setup(e,{emit:r}){const i=e,B=t.ref(!1),D=t.computed(()=>i.gamesFilters.filter(m=>m.isSelected).length);t.watch(()=>i.gamesFilters,m=>{r("update:gamesFilters",m)},{deep:!0}),t.watch(D,m=>{B.value=m===i.gamesFilters.length,r("update:gamesFilters",i.gamesFilters)},{immediate:!0});const c=m=>{m?i.gamesFilters.forEach(a=>{a.isSelected=m}):i.gamesFilters.forEach((a,y)=>{a.isSelected=y===0}),B.value=m};return(m,a)=>(t.openBlock(),t.createElementBlock("div",X6t,[t.createElementVNode("div",Z6t,[J6t,t.createElementVNode("div",K6t,[t.createVNode(t.unref(Is),{modelValue:B.value,label:"Todos","box-position":"right","font-family":"Roboto-Regular, sans-serif","label-font-size":"12px","onUpdate:modelValue":c},null,8,["modelValue"])])]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.gamesFilters,(y,f)=>(t.openBlock(),t.createElementBlock("div",{key:f,class:"template-games__game"},[t.createVNode(t.unref(Is),{modelValue:y.isSelected,"onUpdate:modelValue":n=>y.isSelected=n,label:y.label,"teams-ids":y.teamsIds,"avoid-interaction":D.value===1&&y.isSelected},null,8,["modelValue","onUpdate:modelValue","label","teams-ids","avoid-interaction"])]))),128))]))}},e8t=ml(Q6t,[["__scopeId","data-v-be32e3d8"]]),t8t=(e,r)=>{const i=e.__vccOpts||e;for(const[B,D]of r)i[B]=D;return i},yE={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))}}},XH=()=>{t.useCssVars(e=>({"1c960139":e.height,b2f635d8:e.borderWidthBtn,"06e99898":e.borderType,"55555c76":e.borderColor,"23b6d320":e.borderRadius,"22c97374":e.width,"22bb09fa":e.backgroundColor,c148da7c:e.cursorType,cce756fc:e.fontSize,cff98d60:e.fontStyle,"5123b3a5":e.fontFamily,"47bf58db":e.marginLeftStat,cadc8414:e.fontSizeStat}))},ZH=yE.setup;yE.setup=ZH?(e,r)=>(XH(),ZH(e,r)):XH;const a8t=e=>(t.pushScopeId("data-v-fb269a1e"),e=e(),t.popScopeId(),e),n8t=["src"],r8t={key:1,class:"text"},i8t=["src"],o8t={class:"stats"},s8t=a8t(()=>t.createElementVNode("img",{class:"iconstats",src:"https://az755631.vo.msecnd.net/todoelfut/playdes.png"},null,-1)),l8t={class:"numstats"},c8t={class:"leyend"};function u8t(e,r,i,B,D,c){return t.openBlock(),t.createElementBlock("div",null,[i.type==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["button",D.status&&i.typeOnOff&&"button-active"]),style:t.normalizeStyle([c.customStyle,D.status&&i.typeOnOff&&c.customActive]),onClick:r[0]||(r[0]=(...m)=>c.btnClick&&c.btnClick(...m))},[i.icon&&i.iconPosition.toLowerCase()==="left"?(t.openBlock(),t.createElementBlock("img",{key:0,class:"icon",style:t.normalizeStyle({width:i.iconSize}),src:i.icon},null,12,n8t)):t.createCommentVNode("",!0),i.textValue?(t.openBlock(),t.createElementBlock("div",r8t,t.toDisplayString(i.textValue),1)):t.createCommentVNode("",!0),i.icon&&i.iconPosition.toLowerCase()==="right"?(t.openBlock(),t.createElementBlock("img",{key:2,class:"icon",style:t.normalizeStyle({width:i.iconSize}),src:i.icon},null,12,i8t)):t.createCommentVNode("",!0)],6)):t.createCommentVNode("",!0),i.type==1?(t.openBlock(),t.createElementBlock("div",{key:1,class:"button-target",onClick:r[1]||(r[1]=(...m)=>c.btnClick&&c.btnClick(...m))},[t.createElementVNode("div",o8t,[s8t,t.createElementVNode("div",l8t,t.toDisplayString(i.textStat),1)]),t.createElementVNode("div",c8t,t.toDisplayString(i.textCategory),1)])):t.createCommentVNode("",!0)])}const vE=t8t(yE,[["render",u8t],["__scopeId","data-v-fb269a1e"]]),d8t=(e,r)=>{const i=e.__vccOpts||e;for(const[B,D]of r)i[B]=D;return i},_E={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))}}},JH=()=>{t.useCssVars(e=>({"1c960139":e.height,b2f635d8:e.borderWidthBtn,"06e99898":e.borderType,"55555c76":e.borderColor,"23b6d320":e.borderRadius,"22c97374":e.width,"22bb09fa":e.backgroundColor,c148da7c:e.cursorType,cce756fc:e.fontSize,cff98d60:e.fontStyle,"5123b3a5":e.fontFamily,"47bf58db":e.marginLeftStat,cadc8414:e.fontSizeStat}))},KH=_E.setup;_E.setup=KH?(e,r)=>(JH(),KH(e,r)):JH;const h8t=e=>(t.pushScopeId("data-v-fb269a1e"),e=e(),t.popScopeId(),e),p8t=["src"],f8t={key:1,class:"text"},m8t=["src"],g8t={class:"stats"},y8t=h8t(()=>t.createElementVNode("img",{class:"iconstats",src:"https://az755631.vo.msecnd.net/todoelfut/playdes.png"},null,-1)),v8t={class:"numstats"},_8t={class:"leyend"};function b8t(e,r,i,B,D,c){return t.openBlock(),t.createElementBlock("div",null,[i.type==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["button",D.status&&i.typeOnOff&&"button-active"]),style:t.normalizeStyle([c.customStyle,D.status&&i.typeOnOff&&c.customActive]),onClick:r[0]||(r[0]=(...m)=>c.btnClick&&c.btnClick(...m))},[i.icon&&i.iconPosition.toLowerCase()==="left"?(t.openBlock(),t.createElementBlock("img",{key:0,class:"icon",style:t.normalizeStyle({width:i.iconSize}),src:i.icon},null,12,p8t)):t.createCommentVNode("",!0),i.textValue?(t.openBlock(),t.createElementBlock("div",f8t,t.toDisplayString(i.textValue),1)):t.createCommentVNode("",!0),i.icon&&i.iconPosition.toLowerCase()==="right"?(t.openBlock(),t.createElementBlock("img",{key:2,class:"icon",style:t.normalizeStyle({width:i.iconSize}),src:i.icon},null,12,m8t)):t.createCommentVNode("",!0)],6)):t.createCommentVNode("",!0),i.type==1?(t.openBlock(),t.createElementBlock("div",{key:1,class:"button-target",onClick:r[1]||(r[1]=(...m)=>c.btnClick&&c.btnClick(...m))},[t.createElementVNode("div",g8t,[y8t,t.createElementVNode("div",v8t,t.toDisplayString(i.textStat),1)]),t.createElementVNode("div",_8t,t.toDisplayString(i.textCategory),1)])):t.createCommentVNode("",!0)])}const x8t=d8t(_E,[["render",b8t],["__scopeId","data-v-fb269a1e"]]),w8t=(e,r)=>{const i=e.__vccOpts||e;for(const[B,D]of r)i[B]=D;return i},k8t={key:1},C8t={width:"10",height:"8",viewBox:"0 0 10 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},S8t=["fill"],T8t={key:0,class:"checkbox__teams"},E8t={class:"checkbox__teams__logo"},A8t=["src"],M8t={class:"checkbox__teams__logo"},I8t=["src"],P8t={__name:"GSC-Checkbox",props:{width:{type:String,default:"fit-content"},height:{type:String,default:"fit-content"},label:{type:String,default:""},labelWhiteSpace:{type:String,default:"normal"},labelColor:{type:String,default:"white"},fontFamily:{type:String,default:"sans-serif"},labelFontSize:{type:String,default:"12px"},modelValue:{type:Boolean,default:!1},justifyContent:{type:String,default:"flex-start"},alignItems:{type:String,default:"center"},boxBackgroundColor:{type:String,default:"#CBEE6B"},boxValueColor:{type:String,default:"#0d1d29"},boxValue:{type:[String,Number],default:""},boxPosition:{type:String,default:"left",validator(e){return["left","right","top","bottom"].includes(e)}},boxMarginTop:{type:String,default:"0.2em"},boxWidthAndHeight:{type:String,default:"16px"},boxBorderColor:{type:String,default:"#969da2"},boxBorderWidth:{type:String,default:"2px"},boxBorderRadius:{type:String,default:"4px"},boxValueFontSize:{type:String,default:"10px"},boxValueFontFamily:{type:String,default:"sans-serif"},avoidInteraction:{type:Boolean,default:!1},avoidToCheck:{type:Boolean,default:!1},isBoxOnly:{type:Boolean,default:!1},teamsIds:{type:Array,default:()=>null}},emits:["update:modelValue"],setup(e,{emit:r}){const i=e;t.useCssVars(f=>({"6582e90e":e.width,"310b3edf":e.height}));const B=t.ref(!1),D=t.computed(()=>{const f={color:i.boxValueColor,"font-family":i.fontFamily,height:i.boxWidthAndHeight,width:i.boxWidthAndHeight,minWidth:i.boxWidthAndHeight,"border-radius":i.boxBorderRadius,"margin-top":i.boxMarginTop};return B.value?(f["background-color"]=i.boxBackgroundColor,f.border=`solid ${i.boxBorderWidth} ${i.boxBackgroundColor}`):f.border=`solid ${i.boxBorderWidth} ${i.boxBorderColor}`,f}),c=t.computed(()=>({"font-family":i.boxValueFontFamily,"font-size":i.boxValueFontSize,color:i.boxValueColor,"line-height":1})),m=t.computed(()=>{const f={color:i.labelColor,"font-family":i.fontFamily,"font-size":i.labelFontSize,"white-space":i.labelWhiteSpace,"text-align":i.boxPosition==="top"||i.boxPosition==="bottom"?"center":i.boxPosition};return(i.boxPosition==="left"||i.boxPosition==="right")&&(f[`margin-${i.boxPosition}`]=i.isBoxOnly?"0":i.teamsIds?"8px":"10px"),f});t.watch(()=>i.modelValue,f=>{f!==B.value&&(B.value=f)},{immediate:!0});function a(){i.avoidInteraction||!B.value&&i.avoidToCheck||(B.value=!B.value,r("update:modelValue",B.value))}function y(f){return`${{}.TEAM_LOGOS_URL||"https://az755631.vo.msecnd.net/teams-80/"}${f}.png`}return(f,n)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["checkbox",`box-${e.boxPosition}`]),onClick:a},[t.createElementVNode("div",{class:"checkbox__box",style:t.normalizeStyle(D.value)},[B.value?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[i.boxValue?(t.openBlock(),t.createElementBlock("div",{key:0,class:"checkbox__box__value",style:t.normalizeStyle(c.value)},t.toDisplayString(e.boxValue),5)):(t.openBlock(),t.createElementBlock("div",k8t,[(t.openBlock(),t.createElementBlock("svg",C8t,[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,S8t)]))]))],64)):t.createCommentVNode("",!0)],4),e.teamsIds&&e.teamsIds.length?(t.openBlock(),t.createElementBlock("div",T8t,[t.createElementVNode("div",E8t,[t.createElementVNode("img",{src:y(e.teamsIds[0]),alt:""},null,8,A8t)]),t.createElementVNode("div",M8t,[t.createElementVNode("img",{src:y(e.teamsIds[1]),alt:""},null,8,I8t)])])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"checkbox__label",style:t.normalizeStyle(m.value)},t.toDisplayString(e.label),5)],2))}},B8t=w8t(P8t,[["__scopeId","data-v-bcf3bcc6"]]),N8t=(e,r)=>{const i=e.__vccOpts||e;for(const[B,D]of r)i[B]=D;return i},bE={components:{GSCButton:x8t,GSCCheckbox:B8t},data(){return{update:0,all:!1,refreshBtn14:0,refreshBtn24:0,refreshBtn34:0,refreshBtn44:0,sectors:Array.from({length:16},(e,r)=>({sector:r+1,active:!1})),lastUpdatedValue:[]}},props:{backgroundColor:{type:String,default:"#2e3b46"},heightContainer:{type:String,default:"340px"},widthContainer:{type:String,default:"455px"},heightField:{type:Number,default:230},widthField:{type:Number,default:350},heightFieldGrid:{type:String,default:"230px"},widthFieldGrid:{type:String,default:"350px"},backgroundSectorActive:{type:String,default:"#cbee6b"},backgroundSectorDisabled:{type:String,default:"#2e3b46"},borderWidth:{type:Number,default:1},opacitySector:{type:Number,default:.5},borderColor:{type:String,default:"#FFFFFF"},colorLineField:{type:String,default:"#bfc2c5"},borderWidthLineField:{type:Number,default:2},value:{type:Array,default:()=>[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16]},title:{type:String,default:"Pase(s) desde la(s) zona(s):"},titleFontSize:{type:String,default:"14px"}},watch:{value:{deep:!0,immediate:!0,handler(e){const r=e.sort();JSON.stringify(r)!==JSON.stringify(this.lastUpdatedValue)&&(this.lastUpdatedValue=r,this.sectors.forEach((i,B)=>{i.active=e.includes(B+1),this.validateField(B)}),this.$emit("update:modelValue",e))}},sectors:{handler(e){var r=[];for(let i=0;i<e.length;i++)e[i].active&&r.push(i+1);this.$emit("update:modelValue",r)},deep:!0}},computed:{translx(){var e=0;return this.widthField>305?e=this.widthField-305:this.widthField==268&&(e=-36),e},transly(){var e=0;return this.heightField>195?(e=this.heightField-195,e=e/2):this.heightField==180&&(e=-7),e},translxcircle(){var e=0;return this.widthField>305?(e=this.widthField-305,e=e/2):this.widthField==268&&(e=-18),e}},methods:{clickAll(e){if(e){for(let r=0;r<this.sectors.length;r++)this.sectors[r].active=!0,this.validateField(r);this.status14=!0,this.status24=!0,this.status34=!0,this.status44=!0,this.refreshBtn14+=1,this.refreshBtn24+=1,this.refreshBtn34+=1,this.refreshBtn44+=1}else for(let r=0;r<this.sectors.length;r++)this.sectors[r].active=!1,this.validateField(r),this.status14=!1,this.status24=!1,this.status34=!1,this.status44=!1,this.refreshBtn14=0,this.refreshBtn24=0,this.refreshBtn34=0,this.refreshBtn44=0},selectSector(e){var r=0;this.sectors[e].active=!this.sectors[e].active;for(let i=0;i<this.sectors.length;i++)this.sectors[i].active&&(r+=1);r==0&&(this.sectors[e].active=!0),this.validateField(e)},btn14(e){this.sectors[0].active=e?this.sectors[0].active=!0:this.sectors[0].active=!1,this.sectors[1].active=e?this.sectors[1].active=!0:this.sectors[1].active=!1,this.sectors[2].active=e?this.sectors[2].active=!0:this.sectors[2].active=!1,this.sectors[3].active=e?this.sectors[3].active=!0:this.sectors[3].active=!1;var r=0;for(let i=0;i<this.sectors.length;i++)this.sectors[i].active&&(r+=1);r==0?(this.sectors[0].active=!0,this.sectors[1].active=!0,this.sectors[2].active=!0,this.sectors[3].active=!0,this.status14=!0,this.refreshBtn14+=1):this.status14=!1,r==16&&(this.all=!0,this.update+=1)},btn24(e){this.sectors[4].active=e?this.sectors[4].active=!0:this.sectors[4].active=!1,this.sectors[5].active=e?this.sectors[5].active=!0:this.sectors[5].active=!1,this.sectors[6].active=e?this.sectors[6].active=!0:this.sectors[6].active=!1,this.sectors[7].active=e?this.sectors[7].active=!0:this.sectors[7].active=!1;var r=0;for(let i=0;i<this.sectors.length;i++)this.sectors[i].active&&(r+=1);r==0?(this.sectors[4].active=!0,this.sectors[5].active=!0,this.sectors[6].active=!0,this.sectors[7].active=!0,this.status24=!0,this.refreshBtn24+=1):this.status24=!1,r==16&&(this.all=!0,this.update+=1)},btn34(e){this.sectors[8].active=e?this.sectors[8].active=!0:this.sectors[8].active=!1,this.sectors[9].active=e?this.sectors[9].active=!0:this.sectors[9].active=!1,this.sectors[10].active=e?this.sectors[10].active=!0:this.sectors[10].active=!1,this.sectors[11].active=e?this.sectors[11].active=!0:this.sectors[11].active=!1;var r=0;for(let i=0;i<this.sectors.length;i++)this.sectors[i].active&&(r+=1);r==0?(this.sectors[8].active=!0,this.sectors[9].active=!0,this.sectors[10].active=!0,this.sectors[11].active=!0,this.status34=!0,this.refreshBtn34+=1):this.status34=!1,r==16&&(this.all=!0,this.update+=1)},btn44(e){this.sectors[12].active=e?this.sectors[12].active=!0:this.sectors[12].active=!1,this.sectors[13].active=e?this.sectors[13].active=!0:this.sectors[13].active=!1,this.sectors[14].active=e?this.sectors[14].active=!0:this.sectors[14].active=!1,this.sectors[15].active=e?this.sectors[15].active=!0:this.sectors[15].active=!1;var r=0;for(let i=0;i<this.sectors.length;i++)this.sectors[i].active&&(r+=1);r==0?(this.sectors[12].active=!0,this.sectors[13].active=!0,this.sectors[14].active=!0,this.sectors[15].active=!0,this.status44=!0,this.refreshBtn44+=1):this.status44=!1,r==16&&(this.all=!0,this.update+=1)},validateField(e){(e===0||e===1||e===2||e===3)&&(this.status14=!!(this.sectors[0].active&&this.sectors[1].active&&this.sectors[2].active&&this.sectors[3].active)),(e===4||e===5||e===6||e===7)&&(this.status24=!!(this.sectors[4].active&&this.sectors[5].active&&this.sectors[6].active&&this.sectors[7].active)),(e===8||e===9||e===10||e===11)&&(this.status34=!!(this.sectors[8].active&&this.sectors[9].active&&this.sectors[10].active&&this.sectors[11].active)),(e===12||e===13||e===14||e===15)&&(this.status44=!!(this.sectors[12].active&&this.sectors[13].active&&this.sectors[14].active&&this.sectors[15].active)),this.all=!!(this.status14&&this.status34&&this.status24&&this.status44),this.update+=1,this.status14&&(this.refreshBtn14+=1),this.status24&&(this.refreshBtn24+=1),this.status34&&(this.refreshBtn34+=1),this.status44&&(this.refreshBtn44+=1)}}},QH=()=>{t.useCssVars(e=>({"4fe806fe":e.widthContainer,"91de7c52":e.heightContainer,"266afcdc":e.backgroundColor,"2b853536":e.titleFontSize,"986b6446":e.widthFieldGrid,"1af308b6":e.heightFieldGrid}))},eW=bE.setup;bE.setup=eW?(e,r)=>(QH(),eW(e,r)):QH;const z8t={class:"gsc-field"},O8t={class:"gsc-field__title-checked"},F8t={class:"gsc-field__title-checked__title"},L8t={class:"gsc-field__container-field"},D8t={class:"gsc-field__container-field__field"},R8t={width:"100%",height:"100%",fill:"#2e3b46",xmlns:"http://www.w3.org/2000/svg"},V8t=["stroke"],$8t=["stroke","stroke-width"],j8t=["stroke","stroke-width"],U8t=["stroke-width","stroke"],G8t=["fill","fill-opacity","stroke","stroke-width"],H8t=["fill","fill-opacity","stroke","stroke-width"],W8t=["fill","fill-opacity","stroke","stroke-width"],q8t=["fill","fill-opacity","stroke","stroke-width"],Y8t=["fill","fill-opacity","stroke","stroke-width"],X8t=["fill","fill-opacity","stroke","stroke-width"],Z8t=["fill","fill-opacity","stroke","stroke-width"],J8t=["fill","fill-opacity","stroke","stroke-width"],K8t=["fill","fill-opacity","stroke","stroke-width"],Q8t=["fill","fill-opacity","stroke","stroke-width"],ekt=["fill","fill-opacity","stroke","stroke-width"],tkt=["fill","fill-opacity","stroke","stroke-width"],akt=["fill","fill-opacity","stroke","stroke-width"],nkt=["fill","fill-opacity","stroke","stroke-width"],rkt=["fill","fill-opacity","stroke","stroke-width"],ikt=["fill","fill-opacity","stroke","stroke-width"],okt={class:"gsc-field__container-field__bar-buttons"};function skt(e,r,i,B,D,c){const m=t.resolveComponent("GSCCheckbox"),a=t.resolveComponent("GSCButton");return t.openBlock(),t.createElementBlock("div",z8t,[t.createElementVNode("div",O8t,[t.createElementVNode("div",F8t,t.toDisplayString(i.title),1),t.createElementVNode("div",{class:"gsc-field__title-checked__check-cont",style:t.normalizeStyle(i.widthField>=350?"min-width: 123px":"")},[(t.openBlock(),t.createBlock(m,{label:i.widthField<350?"Todas":"Todas las zonas","font-family":"Poppins-Regular","box-value-font-family":"Poppins-Regular","box-position":"right","label-font-size":i.titleFontSize,"label-white-space":"nowrap","box-margin-top":"0.4em",value:D.all,key:D.update,"model-value":D.all,"onUpdate:modelValue":c.clickAll},null,8,["label","label-font-size","value","model-value","onUpdate:modelValue"]))],4)]),t.createElementVNode("div",L8t,[t.createElementVNode("div",D8t,[(t.openBlock(),t.createElementBlock("svg",R8t,[t.createElementVNode("rect",{x:"1.5",y:"0.5",width:"100%",height:"100%",rx:"1.5",stroke:i.colorLineField},null,8,V8t),t.createElementVNode("path",{style:t.normalizeStyle("transform: translate("+c.translx+"px, "+c.transly+"px);"),d:"M303.597 39.9799H263.371C262.817 39.9799 262.369 40.4301 262.371 40.984L262.842 155.176C262.845 155.726 263.292 156.172 263.842 156.172H302.884",stroke:i.colorLineField,"stroke-width":i.borderWidthLineField,"stroke-linecap":"square"},null,12,$8t),t.createElementVNode("path",{style:t.normalizeStyle("transform: translateY("+c.transly+"px);"),class:"porteria1",d:"M1.09097 156.172L41.3162 156.172C41.8701 156.172 42.3185 155.722 42.3162 155.168L41.845 40.9758C41.8427 40.4252 41.3957 39.98 40.845 39.98L1.80338 39.98",stroke:i.colorLineField,"stroke-width":i.borderWidthLineField,"stroke-linecap":"square"},null,12,j8t),t.createElementVNode("path",{style:t.normalizeStyle("transform: translate("+c.translxcircle+"px, "+c.transly+"px);"),class:"circle",d:"M182.911 97.4512C182.911 113.726 169.44 126.936 152.801 126.936C136.162 126.936 122.691 113.726 122.691 97.4512C122.691 81.1767 136.162 67.9662 152.801 67.9662C169.44 67.9662 182.911 81.1767 182.911 97.4512Z","stroke-width":i.borderWidthLineField,stroke:i.colorLineField},null,12,U8t),t.createElementVNode("rect",{x:"0%",y:"0%",width:"25%",height:"25%",fill:D.sectors[0].active?i.backgroundSectorActive:i.backgroundSectorDisabled,"fill-opacity":i.opacitySector,stroke:i.borderColor,"stroke-width":i.borderWidth,onClick:r[0]||(r[0]=y=>c.selectSector(0))},null,8,G8t),t.createElementVNode("rect",{x:"0%",y:"25%",width:"25%",height:"25%",fill:D.sectors[1].active?i.backgroundSectorActive:i.backgroundSectorDisabled,"fill-opacity":i.opacitySector,stroke:i.borderColor,"stroke-width":i.borderWidth,onClick:r[1]||(r[1]=y=>c.selectSector(1))},null,8,H8t),t.createElementVNode("rect",{x:"0%",y:"50%",width:"25%",height:"25%",fill:D.sectors[2].active?i.backgroundSectorActive:i.backgroundSectorDisabled,"fill-opacity":i.opacitySector,stroke:i.borderColor,"stroke-width":i.borderWidth,onClick:r[2]||(r[2]=y=>c.selectSector(2))},null,8,W8t),t.createElementVNode("rect",{x:"0%",y:"75%",width:"25%",height:"25%",fill:D.sectors[3].active?i.backgroundSectorActive:i.backgroundSectorDisabled,"fill-opacity":i.opacitySector,stroke:i.borderColor,"stroke-width":i.borderWidth,onClick:r[3]||(r[3]=y=>c.selectSector(3))},null,8,q8t),t.createElementVNode("rect",{x:"25%",y:"0%",width:"25%",height:"25%",fill:D.sectors[4].active?i.backgroundSectorActive:i.backgroundSectorDisabled,"fill-opacity":i.opacitySector,stroke:i.borderColor,"stroke-width":i.borderWidth,onClick:r[4]||(r[4]=y=>c.selectSector(4))},null,8,Y8t),t.createElementVNode("rect",{x:"25%",y:"25%",width:"25%",height:"25%",fill:D.sectors[5].active?i.backgroundSectorActive:i.backgroundSectorDisabled,"fill-opacity":i.opacitySector,stroke:i.borderColor,"stroke-width":i.borderWidth,onClick:r[5]||(r[5]=y=>c.selectSector(5))},null,8,X8t),t.createElementVNode("rect",{x:"25%",y:"50%",width:"25%",height:"25%",fill:D.sectors[6].active?i.backgroundSectorActive:i.backgroundSectorDisabled,"fill-opacity":i.opacitySector,stroke:i.borderColor,"stroke-width":i.borderWidth,onClick:r[6]||(r[6]=y=>c.selectSector(6))},null,8,Z8t),t.createElementVNode("rect",{x:"25%",y:"75%",width:"25%",height:"25%",fill:D.sectors[7].active?i.backgroundSectorActive:i.backgroundSectorDisabled,"fill-opacity":i.opacitySector,stroke:i.borderColor,"stroke-width":i.borderWidth,onClick:r[7]||(r[7]=y=>c.selectSector(7))},null,8,J8t),t.createElementVNode("rect",{x:"50%",y:"0%",width:"25%",height:"25%",fill:D.sectors[8].active?i.backgroundSectorActive:i.backgroundSectorDisabled,"fill-opacity":i.opacitySector,stroke:i.borderColor,"stroke-width":i.borderWidth,onClick:r[8]||(r[8]=y=>c.selectSector(8))},null,8,K8t),t.createElementVNode("rect",{x:"50%",y:"25%",width:"25%",height:"25%",fill:D.sectors[9].active?i.backgroundSectorActive:i.backgroundSectorDisabled,"fill-opacity":i.opacitySector,stroke:i.borderColor,"stroke-width":i.borderWidth,onClick:r[9]||(r[9]=y=>c.selectSector(9))},null,8,Q8t),t.createElementVNode("rect",{x:"50%",y:"50%",width:"25%",height:"25%",fill:D.sectors[10].active?i.backgroundSectorActive:i.backgroundSectorDisabled,"fill-opacity":i.opacitySector,stroke:i.borderColor,"stroke-width":i.borderWidth,onClick:r[10]||(r[10]=y=>c.selectSector(10))},null,8,ekt),t.createElementVNode("rect",{x:"50%",y:"75%",width:"25%",height:"25%",fill:D.sectors[11].active?i.backgroundSectorActive:i.backgroundSectorDisabled,"fill-opacity":i.opacitySector,stroke:i.borderColor,"stroke-width":i.borderWidth,onClick:r[11]||(r[11]=y=>c.selectSector(11))},null,8,tkt),t.createElementVNode("rect",{x:"75%",y:"0%",width:"25%",height:"25%",fill:D.sectors[12].active?i.backgroundSectorActive:i.backgroundSectorDisabled,"fill-opacity":i.opacitySector,stroke:i.borderColor,"stroke-width":i.borderWidth,onClick:r[12]||(r[12]=y=>c.selectSector(12))},null,8,akt),t.createElementVNode("rect",{x:"75%",y:"25%",width:"25%",height:"25%",fill:D.sectors[13].active?i.backgroundSectorActive:i.backgroundSectorDisabled,"fill-opacity":i.opacitySector,stroke:i.borderColor,"stroke-width":i.borderWidth,onClick:r[13]||(r[13]=y=>c.selectSector(13))},null,8,nkt),t.createElementVNode("rect",{x:"75%",y:"50%",width:"25%",height:"25%",fill:D.sectors[14].active?i.backgroundSectorActive:i.backgroundSectorDisabled,"fill-opacity":i.opacitySector,stroke:i.borderColor,"stroke-width":i.borderWidth,onClick:r[14]||(r[14]=y=>c.selectSector(14))},null,8,rkt),t.createElementVNode("rect",{x:"75%",y:"75%",width:"25%",height:"25%",fill:D.sectors[15].active?i.backgroundSectorActive:i.backgroundSectorDisabled,"fill-opacity":i.opacitySector,stroke:i.borderColor,"stroke-width":i.borderWidth,onClick:r[15]||(r[15]=y=>c.selectSector(15))},null,8,ikt)]))]),t.createElementVNode("div",okt,[(t.openBlock(),t.createBlock(a,{"text-value":"1/4 tos","font-size":"12px",height:"26px",width:"65px","type-on-off":!0,"border-width":1,"font-color":"#bfc2c5","border-color":"#8c9399","border-radius":"4px","font-family":"Poppins-Medium","active-border-width":1,"background-color":"","active-background-color":"#cbee6b33",ref:"btn14",onStatus:c.btn14,key:D.refreshBtn14,value:e.status14},null,8,["onStatus","value"])),(t.openBlock(),t.createBlock(a,{"text-value":"2/4 tos","font-size":"12px",height:"26px",width:"65px","type-on-off":!0,"border-width":1,"font-color":"#bfc2c5","border-color":"#8c9399","border-radius":"4px","font-family":"Poppins-Medium","active-border-width":1,"background-color":"","active-background-color":"#cbee6b33",ref:"btn24",onStatus:c.btn24,key:D.refreshBtn24,value:e.status24},null,8,["onStatus","value"])),(t.openBlock(),t.createBlock(a,{"text-value":"3/4 tos","font-size":"12px",height:"26px",width:"65px","type-on-off":!0,"border-width":1,"font-color":"#bfc2c5","border-color":"#8c9399","border-radius":"4px","font-family":"Poppins-Medium","active-border-width":1,"background-color":"","active-background-color":"#cbee6b33",ref:"btn34",onStatus:c.btn34,key:D.refreshBtn34,value:e.status34},null,8,["onStatus","value"])),(t.openBlock(),t.createBlock(a,{"text-value":"4/4 tos","font-size":"12px",height:"26px",width:"65px","type-on-off":!0,"border-width":1,"font-color":"#bfc2c5","border-color":"#8c9399","border-radius":"4px","font-family":"Poppins-Medium","active-border-width":1,"background-color":"","active-background-color":"#cbee6b33",ref:"btn44",onStatus:c.btn44,key:D.refreshBtn44,value:e.status44},null,8,["onStatus","value"]))])])])}const tW=N8t(bE,[["render",skt],["__scopeId","data-v-b85699b8"]]),lkt={class:"toggle-buttons__background"},ckt=["onClick"],ukt={__name:"ToggleButtons",props:{buttons:{type:Array,required:!0},selectedButtonIndex:{type:Number,default:0},height:{type:String,default:"29px"},width:{type:String,default:"100%"},fontSize:{type:String,default:"12px"},fontFamily:{type:String,default:"Poppins-Medium"},borderRadius:{type:String,default:"8px"},mainBackgroundColor:{type:String,default:"#364448"},mainBorderColor:{type:String,default:"#9AA1A3"},mainBorderWidth:{type:String,default:"0.5px"},activeBorderColor:{type:String,default:"#cbee6b"},activeBorderWidth:{type:String,default:"1px"},activeBackgroundColor:{type:String,default:"#2e3b46"}},emits:["change"],setup(e,{emit:r}){const i=e;t.useCssVars(m=>({"0d588b39":e.height,"2a8da974":e.width,"6d34d30a":e.mainBackgroundColor,"3d50bf20":e.borderRadius,e8fc78a2:e.mainBorderWidth,eb2a7568:e.mainBorderColor,acdd84b6:e.fontFamily,"63d45e82":e.fontSize,b28ed67c:e.activeBorderWidth,b4bcd342:e.activeBorderColor,"7fa6e29d":e.activeBackgroundColor}));const B=t.ref(i.selectedButtonIndex),D=t.computed(()=>({"--grid-template-columns":`repeat(${i.buttons.length}, 1fr)`}));t.watch(()=>i.selectedButtonIndex,m=>{B.value=m}),t.watch(B,(m,a)=>{m!==a&&r("change",{index:m,button:i.buttons[m]})});function c(m){B.value=m}return(m,a)=>(t.openBlock(),t.createElementBlock("div",lkt,[t.createElementVNode("div",{class:"toggle-buttons",style:t.normalizeStyle(D.value)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.buttons,(y,f)=>(t.openBlock(),t.createElementBlock("div",{key:`b${f}`,class:t.normalizeClass(["toggle-buttons__button",{active:B.value===f}]),onClick:n=>c(f)},t.toDisplayString(y.text||y),11,ckt))),128))],4)]))}},dkt=ml(ukt,[["__scopeId","data-v-ac2af001"]]);function aW(e,r){return function(){return e.apply(r,arguments)}}const{toString:hkt}=Object.prototype,{getPrototypeOf:xE}=Object,y4=(e=>r=>{const i=hkt.call(r);return e[i]||(e[i]=i.slice(8,-1).toLowerCase())})(Object.create(null)),zf=e=>(e=e.toLowerCase(),r=>y4(r)===e),v4=e=>r=>typeof r===e,{isArray:Uy}=Array,y_=v4("undefined");function pkt(e){return e!==null&&!y_(e)&&e.constructor!==null&&!y_(e.constructor)&&sp(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const nW=zf("ArrayBuffer");function fkt(e){let r;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?r=ArrayBuffer.isView(e):r=e&&e.buffer&&nW(e.buffer),r}const mkt=v4("string"),sp=v4("function"),rW=v4("number"),_4=e=>e!==null&&typeof e=="object",gkt=e=>e===!0||e===!1,b4=e=>{if(y4(e)!=="object")return!1;const r=xE(e);return(r===null||r===Object.prototype||Object.getPrototypeOf(r)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},ykt=zf("Date"),vkt=zf("File"),_kt=zf("Blob"),bkt=zf("FileList"),xkt=e=>_4(e)&&sp(e.pipe),wkt=e=>{let r;return e&&(typeof FormData=="function"&&e instanceof FormData||sp(e.append)&&((r=y4(e))==="formdata"||r==="object"&&sp(e.toString)&&e.toString()==="[object FormData]"))},kkt=zf("URLSearchParams"),Ckt=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function v_(e,r,{allOwnKeys:i=!1}={}){if(e===null||typeof e>"u")return;let B,D;if(typeof e!="object"&&(e=[e]),Uy(e))for(B=0,D=e.length;B<D;B++)r.call(null,e[B],B,e);else{const c=i?Object.getOwnPropertyNames(e):Object.keys(e),m=c.length;let a;for(B=0;B<m;B++)a=c[B],r.call(null,e[a],a,e)}}function iW(e,r){r=r.toLowerCase();const i=Object.keys(e);let B=i.length,D;for(;B-- >0;)if(D=i[B],r===D.toLowerCase())return D;return null}const oW=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),sW=e=>!y_(e)&&e!==oW;function wE(){const{caseless:e}=sW(this)&&this||{},r={},i=(B,D)=>{const c=e&&iW(r,D)||D;b4(r[c])&&b4(B)?r[c]=wE(r[c],B):b4(B)?r[c]=wE({},B):Uy(B)?r[c]=B.slice():r[c]=B};for(let B=0,D=arguments.length;B<D;B++)arguments[B]&&v_(arguments[B],i);return r}const Skt=(e,r,i,{allOwnKeys:B}={})=>(v_(r,(D,c)=>{i&&sp(D)?e[c]=aW(D,i):e[c]=D},{allOwnKeys:B}),e),Tkt=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Ekt=(e,r,i,B)=>{e.prototype=Object.create(r.prototype,B),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:r.prototype}),i&&Object.assign(e.prototype,i)},Akt=(e,r,i,B)=>{let D,c,m;const a={};if(r=r||{},e==null)return r;do{for(D=Object.getOwnPropertyNames(e),c=D.length;c-- >0;)m=D[c],(!B||B(m,e,r))&&!a[m]&&(r[m]=e[m],a[m]=!0);e=i!==!1&&xE(e)}while(e&&(!i||i(e,r))&&e!==Object.prototype);return r},Mkt=(e,r,i)=>{e=String(e),(i===void 0||i>e.length)&&(i=e.length),i-=r.length;const B=e.indexOf(r,i);return B!==-1&&B===i},Ikt=e=>{if(!e)return null;if(Uy(e))return e;let r=e.length;if(!rW(r))return null;const i=new Array(r);for(;r-- >0;)i[r]=e[r];return i},Pkt=(e=>r=>e&&r instanceof e)(typeof Uint8Array<"u"&&xE(Uint8Array)),Bkt=(e,r)=>{const i=(e&&e[Symbol.iterator]).call(e);let B;for(;(B=i.next())&&!B.done;){const D=B.value;r.call(e,D[0],D[1])}},Nkt=(e,r)=>{let i;const B=[];for(;(i=e.exec(r))!==null;)B.push(i);return B},zkt=zf("HTMLFormElement"),Okt=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,i,B){return i.toUpperCase()+B}),lW=(({hasOwnProperty:e})=>(r,i)=>e.call(r,i))(Object.prototype),Fkt=zf("RegExp"),cW=(e,r)=>{const i=Object.getOwnPropertyDescriptors(e),B={};v_(i,(D,c)=>{let m;(m=r(D,c,e))!==!1&&(B[c]=m||D)}),Object.defineProperties(e,B)},Lkt=e=>{cW(e,(r,i)=>{if(sp(e)&&["arguments","caller","callee"].indexOf(i)!==-1)return!1;const B=e[i];if(sp(B)){if(r.enumerable=!1,"writable"in r){r.writable=!1;return}r.set||(r.set=()=>{throw Error("Can not rewrite read-only method '"+i+"'")})}})},Dkt=(e,r)=>{const i={},B=D=>{D.forEach(c=>{i[c]=!0})};return Uy(e)?B(e):B(String(e).split(r)),i},Rkt=()=>{},Vkt=(e,r)=>(e=+e,Number.isFinite(e)?e:r),kE="abcdefghijklmnopqrstuvwxyz",uW="0123456789",dW={DIGIT:uW,ALPHA:kE,ALPHA_DIGIT:kE+kE.toUpperCase()+uW},$kt=(e=16,r=dW.ALPHA_DIGIT)=>{let i="";const{length:B}=r;for(;e--;)i+=r[Math.random()*B|0];return i};function jkt(e){return!!(e&&sp(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Ukt=e=>{const r=new Array(10),i=(B,D)=>{if(_4(B)){if(r.indexOf(B)>=0)return;if(!("toJSON"in B)){r[D]=B;const c=Uy(B)?[]:{};return v_(B,(m,a)=>{const y=i(m,D+1);!y_(y)&&(c[a]=y)}),r[D]=void 0,c}}return B};return i(e,0)},Gkt=zf("AsyncFunction"),Hkt=e=>e&&(_4(e)||sp(e))&&sp(e.then)&&sp(e.catch),Ir={isArray:Uy,isArrayBuffer:nW,isBuffer:pkt,isFormData:wkt,isArrayBufferView:fkt,isString:mkt,isNumber:rW,isBoolean:gkt,isObject:_4,isPlainObject:b4,isUndefined:y_,isDate:ykt,isFile:vkt,isBlob:_kt,isRegExp:Fkt,isFunction:sp,isStream:xkt,isURLSearchParams:kkt,isTypedArray:Pkt,isFileList:bkt,forEach:v_,merge:wE,extend:Skt,trim:Ckt,stripBOM:Tkt,inherits:Ekt,toFlatObject:Akt,kindOf:y4,kindOfTest:zf,endsWith:Mkt,toArray:Ikt,forEachEntry:Bkt,matchAll:Nkt,isHTMLForm:zkt,hasOwnProperty:lW,hasOwnProp:lW,reduceDescriptors:cW,freezeMethods:Lkt,toObjectSet:Dkt,toCamelCase:Okt,noop:Rkt,toFiniteNumber:Vkt,findKey:iW,global:oW,isContextDefined:sW,ALPHABET:dW,generateString:$kt,isSpecCompliantForm:jkt,toJSONObject:Ukt,isAsyncFn:Gkt,isThenable:Hkt};function Nl(e,r,i,B,D){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",r&&(this.code=r),i&&(this.config=i),B&&(this.request=B),D&&(this.response=D)}Ir.inherits(Nl,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Ir.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const hW=Nl.prototype,pW={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{pW[e]={value:e}}),Object.defineProperties(Nl,pW),Object.defineProperty(hW,"isAxiosError",{value:!0}),Nl.from=(e,r,i,B,D,c)=>{const m=Object.create(hW);return Ir.toFlatObject(e,m,function(a){return a!==Error.prototype},a=>a!=="isAxiosError"),Nl.call(m,e.message,r,i,B,D),m.cause=e,m.name=e.name,c&&Object.assign(m,c),m};const Wkt=null;function CE(e){return Ir.isPlainObject(e)||Ir.isArray(e)}function fW(e){return Ir.endsWith(e,"[]")?e.slice(0,-2):e}function mW(e,r,i){return e?e.concat(r).map(function(B,D){return B=fW(B),!i&&D?"["+B+"]":B}).join(i?".":""):r}function qkt(e){return Ir.isArray(e)&&!e.some(CE)}const Ykt=Ir.toFlatObject(Ir,{},null,function(e){return/^is[A-Z]/.test(e)});function x4(e,r,i){if(!Ir.isObject(e))throw new TypeError("target must be an object");r=r||new FormData,i=Ir.toFlatObject(i,{metaTokens:!0,dots:!1,indexes:!1},!1,function(p,l){return!Ir.isUndefined(l[p])});const B=i.metaTokens,D=i.visitor||f,c=i.dots,m=i.indexes,a=(i.Blob||typeof Blob<"u"&&Blob)&&Ir.isSpecCompliantForm(r);if(!Ir.isFunction(D))throw new TypeError("visitor must be a function");function y(p){if(p===null)return"";if(Ir.isDate(p))return p.toISOString();if(!a&&Ir.isBlob(p))throw new Nl("Blob is not supported. Use a Buffer instead.");return Ir.isArrayBuffer(p)||Ir.isTypedArray(p)?a&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function f(p,l,o){let s=p;if(p&&!o&&typeof p=="object"){if(Ir.endsWith(l,"{}"))l=B?l:l.slice(0,-2),p=JSON.stringify(p);else if(Ir.isArray(p)&&qkt(p)||(Ir.isFileList(p)||Ir.endsWith(l,"[]"))&&(s=Ir.toArray(p)))return l=fW(l),s.forEach(function(d,u){!(Ir.isUndefined(d)||d===null)&&r.append(m===!0?mW([l],u,c):m===null?l:l+"[]",y(d))}),!1}return CE(p)?!0:(r.append(mW(o,l,c),y(p)),!1)}const n=[],v=Object.assign(Ykt,{defaultVisitor:f,convertValue:y,isVisitable:CE});function _(p,l){if(!Ir.isUndefined(p)){if(n.indexOf(p)!==-1)throw Error("Circular reference detected in "+l.join("."));n.push(p),Ir.forEach(p,function(o,s){(!(Ir.isUndefined(o)||o===null)&&D.call(r,o,Ir.isString(s)?s.trim():s,l,v))===!0&&_(o,l?l.concat(s):[s])}),n.pop()}}if(!Ir.isObject(e))throw new TypeError("data must be an object");return _(e),r}function gW(e){const r={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(i){return r[i]})}function SE(e,r){this._pairs=[],e&&x4(e,this,r)}const yW=SE.prototype;yW.append=function(e,r){this._pairs.push([e,r])},yW.toString=function(e){const r=e?function(i){return e.call(this,i,gW)}:gW;return this._pairs.map(function(i){return r(i[0])+"="+r(i[1])},"").join("&")};function Xkt(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function vW(e,r,i){if(!r)return e;const B=i&&i.encode||Xkt,D=i&&i.serialize;let c;if(D?c=D(r,i):c=Ir.isURLSearchParams(r)?r.toString():new SE(r,i).toString(B),c){const m=e.indexOf("#");m!==-1&&(e=e.slice(0,m)),e+=(e.indexOf("?")===-1?"?":"&")+c}return e}const _W=class{constructor(){this.handlers=[]}use(r,i,B){return this.handlers.push({fulfilled:r,rejected:i,synchronous:B?B.synchronous:!1,runWhen:B?B.runWhen:null}),this.handlers.length-1}eject(r){this.handlers[r]&&(this.handlers[r]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(r){Ir.forEach(this.handlers,function(i){i!==null&&r(i)})}},bW={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Zkt=typeof URLSearchParams<"u"?URLSearchParams:SE,Jkt=typeof FormData<"u"?FormData:null,Kkt=typeof Blob<"u"?Blob:null,Qkt={isBrowser:!0,classes:{URLSearchParams:Zkt,FormData:Jkt,Blob:Kkt},protocols:["http","https","file","blob","url","data"]},xW=typeof window<"u"&&typeof document<"u",e7t=(e=>xW&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),t7t=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),a7t=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:xW,hasStandardBrowserEnv:e7t,hasStandardBrowserWebWorkerEnv:t7t},Symbol.toStringTag,{value:"Module"})),Of={...a7t,...Qkt};function n7t(e,r){return x4(e,new Of.classes.URLSearchParams,Object.assign({visitor:function(i,B,D,c){return Of.isNode&&Ir.isBuffer(i)?(this.append(B,i.toString("base64")),!1):c.defaultVisitor.apply(this,arguments)}},r))}function r7t(e){return Ir.matchAll(/\w+|\[(\w*)]/g,e).map(r=>r[0]==="[]"?"":r[1]||r[0])}function i7t(e){const r={},i=Object.keys(e);let B;const D=i.length;let c;for(B=0;B<D;B++)c=i[B],r[c]=e[c];return r}function wW(e){function r(i,B,D,c){let m=i[c++];if(m==="__proto__")return!0;const a=Number.isFinite(+m),y=c>=i.length;return m=!m&&Ir.isArray(D)?D.length:m,y?(Ir.hasOwnProp(D,m)?D[m]=[D[m],B]:D[m]=B,!a):((!D[m]||!Ir.isObject(D[m]))&&(D[m]=[]),r(i,B,D[m],c)&&Ir.isArray(D[m])&&(D[m]=i7t(D[m])),!a)}if(Ir.isFormData(e)&&Ir.isFunction(e.entries)){const i={};return Ir.forEachEntry(e,(B,D)=>{r(r7t(B),D,i,0)}),i}return null}function o7t(e,r,i){if(Ir.isString(e))try{return(r||JSON.parse)(e),Ir.trim(e)}catch(B){if(B.name!=="SyntaxError")throw B}return(i||JSON.stringify)(e)}const TE={transitional:bW,adapter:["xhr","http"],transformRequest:[function(e,r){const i=r.getContentType()||"",B=i.indexOf("application/json")>-1,D=Ir.isObject(e);if(D&&Ir.isHTMLForm(e)&&(e=new FormData(e)),Ir.isFormData(e))return B?JSON.stringify(wW(e)):e;if(Ir.isArrayBuffer(e)||Ir.isBuffer(e)||Ir.isStream(e)||Ir.isFile(e)||Ir.isBlob(e))return e;if(Ir.isArrayBufferView(e))return e.buffer;if(Ir.isURLSearchParams(e))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let c;if(D){if(i.indexOf("application/x-www-form-urlencoded")>-1)return n7t(e,this.formSerializer).toString();if((c=Ir.isFileList(e))||i.indexOf("multipart/form-data")>-1){const m=this.env&&this.env.FormData;return x4(c?{"files[]":e}:e,m&&new m,this.formSerializer)}}return D||B?(r.setContentType("application/json",!1),o7t(e)):e}],transformResponse:[function(e){const r=this.transitional||TE.transitional,i=r&&r.forcedJSONParsing,B=this.responseType==="json";if(e&&Ir.isString(e)&&(i&&!this.responseType||B)){const D=!(r&&r.silentJSONParsing)&&B;try{return JSON.parse(e)}catch(c){if(D)throw c.name==="SyntaxError"?Nl.from(c,Nl.ERR_BAD_RESPONSE,this,null,this.response):c}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Of.classes.FormData,Blob:Of.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Ir.forEach(["delete","get","head","post","put","patch"],e=>{TE.headers[e]={}});const EE=TE,s7t=Ir.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),l7t=e=>{const r={};let i,B,D;return e&&e.split(`
125
125
  `).forEach(function(c){D=c.indexOf(":"),i=c.substring(0,D).trim().toLowerCase(),B=c.substring(D+1).trim(),!(!i||r[i]&&s7t[i])&&(i==="set-cookie"?r[i]?r[i].push(B):r[i]=[B]:r[i]=r[i]?r[i]+", "+B:B)}),r},kW=Symbol("internals");function __(e){return e&&String(e).trim().toLowerCase()}function w4(e){return e===!1||e==null?e:Ir.isArray(e)?e.map(w4):String(e)}function c7t(e){const r=Object.create(null),i=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let B;for(;B=i.exec(e);)r[B[1]]=B[2];return r}const u7t=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function AE(e,r,i,B,D){if(Ir.isFunction(B))return B.call(this,r,i);if(D&&(r=i),!!Ir.isString(r)){if(Ir.isString(B))return r.indexOf(B)!==-1;if(Ir.isRegExp(B))return B.test(r)}}function d7t(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(r,i,B)=>i.toUpperCase()+B)}function h7t(e,r){const i=Ir.toCamelCase(" "+r);["get","set","has"].forEach(B=>{Object.defineProperty(e,B+i,{value:function(D,c,m){return this[B].call(this,r,D,c,m)},configurable:!0})})}let k4=class{constructor(r){r&&this.set(r)}set(r,i,B){const D=this;function c(a,y,f){const n=__(y);if(!n)throw new Error("header name must be a non-empty string");const v=Ir.findKey(D,n);(!v||D[v]===void 0||f===!0||f===void 0&&D[v]!==!1)&&(D[v||y]=w4(a))}const m=(a,y)=>Ir.forEach(a,(f,n)=>c(f,n,y));return Ir.isPlainObject(r)||r instanceof this.constructor?m(r,i):Ir.isString(r)&&(r=r.trim())&&!u7t(r)?m(l7t(r),i):r!=null&&c(i,r,B),this}get(r,i){if(r=__(r),r){const B=Ir.findKey(this,r);if(B){const D=this[B];if(!i)return D;if(i===!0)return c7t(D);if(Ir.isFunction(i))return i.call(this,D,B);if(Ir.isRegExp(i))return i.exec(D);throw new TypeError("parser must be boolean|regexp|function")}}}has(r,i){if(r=__(r),r){const B=Ir.findKey(this,r);return!!(B&&this[B]!==void 0&&(!i||AE(this,this[B],B,i)))}return!1}delete(r,i){const B=this;let D=!1;function c(m){if(m=__(m),m){const a=Ir.findKey(B,m);a&&(!i||AE(B,B[a],a,i))&&(delete B[a],D=!0)}}return Ir.isArray(r)?r.forEach(c):c(r),D}clear(r){const i=Object.keys(this);let B=i.length,D=!1;for(;B--;){const c=i[B];(!r||AE(this,this[c],c,r,!0))&&(delete this[c],D=!0)}return D}normalize(r){const i=this,B={};return Ir.forEach(this,(D,c)=>{const m=Ir.findKey(B,c);if(m){i[m]=w4(D),delete i[c];return}const a=r?d7t(c):String(c).trim();a!==c&&delete i[c],i[a]=w4(D),B[a]=!0}),this}concat(...r){return this.constructor.concat(this,...r)}toJSON(r){const i=Object.create(null);return Ir.forEach(this,(B,D)=>{B!=null&&B!==!1&&(i[D]=r&&Ir.isArray(B)?B.join(", "):B)}),i}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([r,i])=>r+": "+i).join(`
126
126
  `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(r){return r instanceof this?r:new this(r)}static concat(r,...i){const B=new this(r);return i.forEach(D=>B.set(D)),B}static accessor(r){const i=(this[kW]=this[kW]={accessors:{}}).accessors,B=this.prototype;function D(c){const m=__(c);i[m]||(h7t(B,c),i[m]=!0)}return Ir.isArray(r)?r.forEach(D):D(r),this}};k4.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Ir.reduceDescriptors(k4.prototype,({value:e},r)=>{let i=r[0].toUpperCase()+r.slice(1);return{get:()=>e,set(B){this[i]=B}}}),Ir.freezeMethods(k4);const nm=k4;function ME(e,r){const i=this||EE,B=r||i,D=nm.from(B.headers);let c=B.data;return Ir.forEach(e,function(m){c=m.call(i,c,D.normalize(),r?r.status:void 0)}),D.normalize(),c}function CW(e){return!!(e&&e.__CANCEL__)}function b_(e,r,i){Nl.call(this,e??"canceled",Nl.ERR_CANCELED,r,i),this.name="CanceledError"}Ir.inherits(b_,Nl,{__CANCEL__:!0});function p7t(e,r,i){const B=i.config.validateStatus;!i.status||!B||B(i.status)?e(i):r(new Nl("Request failed with status code "+i.status,[Nl.ERR_BAD_REQUEST,Nl.ERR_BAD_RESPONSE][Math.floor(i.status/100)-4],i.config,i.request,i))}const f7t=Of.hasStandardBrowserEnv?{write(e,r,i,B,D,c){const m=[e+"="+encodeURIComponent(r)];Ir.isNumber(i)&&m.push("expires="+new Date(i).toGMTString()),Ir.isString(B)&&m.push("path="+B),Ir.isString(D)&&m.push("domain="+D),c===!0&&m.push("secure"),document.cookie=m.join("; ")},read(e){const r=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return r?decodeURIComponent(r[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function m7t(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function g7t(e,r){return r?e.replace(/\/?\/$/,"")+"/"+r.replace(/^\/+/,""):e}function SW(e,r){return e&&!m7t(r)?g7t(e,r):r}const y7t=Of.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");let i;function B(D){let c=D;return e&&(r.setAttribute("href",c),c=r.href),r.setAttribute("href",c),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return i=B(window.location.href),function(D){const c=Ir.isString(D)?B(D):D;return c.protocol===i.protocol&&c.host===i.host}}():function(){return function(){return!0}}();function v7t(e){const r=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return r&&r[1]||""}function _7t(e,r){e=e||10;const i=new Array(e),B=new Array(e);let D=0,c=0,m;return r=r!==void 0?r:1e3,function(a){const y=Date.now(),f=B[c];m||(m=y),i[D]=a,B[D]=y;let n=c,v=0;for(;n!==D;)v+=i[n++],n=n%e;if(D=(D+1)%e,D===c&&(c=(c+1)%e),y-m<r)return;const _=f&&y-f;return _?Math.round(v*1e3/_):void 0}}function TW(e,r){let i=0;const B=_7t(50,250);return D=>{const c=D.loaded,m=D.lengthComputable?D.total:void 0,a=c-i,y=B(a),f=c<=m;i=c;const n={loaded:c,total:m,progress:m?c/m:void 0,bytes:a,rate:y||void 0,estimated:y&&m&&f?(m-c)/y:void 0,event:D};n[r?"download":"upload"]=!0,e(n)}}const b7t=typeof XMLHttpRequest<"u",x7t=b7t&&function(e){return new Promise(function(r,i){let B=e.data;const D=nm.from(e.headers).normalize();let{responseType:c,withXSRFToken:m}=e,a;function y(){e.cancelToken&&e.cancelToken.unsubscribe(a),e.signal&&e.signal.removeEventListener("abort",a)}let f;if(Ir.isFormData(B)){if(Of.hasStandardBrowserEnv||Of.hasStandardBrowserWebWorkerEnv)D.setContentType(!1);else if((f=D.getContentType())!==!1){const[l,...o]=f?f.split(";").map(s=>s.trim()).filter(Boolean):[];D.setContentType([l||"multipart/form-data",...o].join("; "))}}let n=new XMLHttpRequest;if(e.auth){const l=e.auth.username||"",o=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";D.set("Authorization","Basic "+btoa(l+":"+o))}const v=SW(e.baseURL,e.url);n.open(e.method.toUpperCase(),vW(v,e.params,e.paramsSerializer),!0),n.timeout=e.timeout;function _(){if(!n)return;const l=nm.from("getAllResponseHeaders"in n&&n.getAllResponseHeaders()),o={data:!c||c==="text"||c==="json"?n.responseText:n.response,status:n.status,statusText:n.statusText,headers:l,config:e,request:n};p7t(function(s){r(s),y()},function(s){i(s),y()},o),n=null}if("onloadend"in n?n.onloadend=_:n.onreadystatechange=function(){!n||n.readyState!==4||n.status===0&&!(n.responseURL&&n.responseURL.indexOf("file:")===0)||setTimeout(_)},n.onabort=function(){n&&(i(new Nl("Request aborted",Nl.ECONNABORTED,e,n)),n=null)},n.onerror=function(){i(new Nl("Network Error",Nl.ERR_NETWORK,e,n)),n=null},n.ontimeout=function(){let l=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const o=e.transitional||bW;e.timeoutErrorMessage&&(l=e.timeoutErrorMessage),i(new Nl(l,o.clarifyTimeoutError?Nl.ETIMEDOUT:Nl.ECONNABORTED,e,n)),n=null},Of.hasStandardBrowserEnv&&(m&&Ir.isFunction(m)&&(m=m(e)),m||m!==!1&&y7t(v))){const l=e.xsrfHeaderName&&e.xsrfCookieName&&f7t.read(e.xsrfCookieName);l&&D.set(e.xsrfHeaderName,l)}B===void 0&&D.setContentType(null),"setRequestHeader"in n&&Ir.forEach(D.toJSON(),function(l,o){n.setRequestHeader(o,l)}),Ir.isUndefined(e.withCredentials)||(n.withCredentials=!!e.withCredentials),c&&c!=="json"&&(n.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&n.addEventListener("progress",TW(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&n.upload&&n.upload.addEventListener("progress",TW(e.onUploadProgress)),(e.cancelToken||e.signal)&&(a=l=>{n&&(i(!l||l.type?new b_(null,e,n):l),n.abort(),n=null)},e.cancelToken&&e.cancelToken.subscribe(a),e.signal&&(e.signal.aborted?a():e.signal.addEventListener("abort",a)));const p=v7t(v);if(p&&Of.protocols.indexOf(p)===-1){i(new Nl("Unsupported protocol "+p+":",Nl.ERR_BAD_REQUEST,e));return}n.send(B||null)})},IE={http:Wkt,xhr:x7t};Ir.forEach(IE,(e,r)=>{if(e){try{Object.defineProperty(e,"name",{value:r})}catch{}Object.defineProperty(e,"adapterName",{value:r})}});const EW=e=>`- ${e}`,w7t=e=>Ir.isFunction(e)||e===null||e===!1,AW={getAdapter:e=>{e=Ir.isArray(e)?e:[e];const{length:r}=e;let i,B;const D={};for(let c=0;c<r;c++){i=e[c];let m;if(B=i,!w7t(i)&&(B=IE[(m=String(i)).toLowerCase()],B===void 0))throw new Nl(`Unknown adapter '${m}'`);if(B)break;D[m||"#"+c]=B}if(!B){const c=Object.entries(D).map(([a,y])=>`adapter ${a} `+(y===!1?"is not supported by the environment":"is not available in the build"));let m=r?c.length>1?`since :
127
127
  `+c.map(EW).join(`