@golstats/gsc-game-data 1.1.13 → 1.1.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{FilterConditions-019536c4-CIuzW83P-8451e475.js → FilterConditions-019536c4-CIuzW83P-cdcaa744.js} +1 -1
- package/dist/{FilterConditions-019536c4-e6837c2a.js → FilterConditions-019536c4-c50593bd.js} +1 -1
- package/dist/{FilterField-bf053092-CcxiAJZz-1f6dc6cd.js → FilterField-bf053092-CcxiAJZz-cdffd5f1.js} +1 -1
- package/dist/{FilterField-bf053092-e5eadadd.js → FilterField-bf053092-b0d3ba53.js} +1 -1
- package/dist/{FilterSubcategories-9d8abc8b-e91dd373.js → FilterSubcategories-9d8abc8b-f69d1b7a.js} +1 -1
- package/dist/{FilterSubcategories-9d8abc8b-qTJ93bGs-807806ae.js → FilterSubcategories-9d8abc8b-qTJ93bGs-88d8e62c.js} +1 -1
- package/dist/gsc-game-data.js +1 -1
- package/dist/gsc-game-data.umd.cjs +1 -1
- package/dist/{index-2d478844.js → index-e9ee12ea.js} +617 -617
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
* Vue 3 Carousel 0.3.1
|
|
87
87
|
* (c) 2023
|
|
88
88
|
* @license MIT
|
|
89
|
-
*/const Hu={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"}},TN={itemsToShow:{default:Hu.itemsToShow,type:Number},itemsToScroll:{default:Hu.itemsToScroll,type:Number},wrapAround:{default:Hu.wrapAround,type:Boolean},throttle:{default:Hu.throttle,type:Number},snapAlign:{default:Hu.snapAlign,validator(e){return["start","end","center","center-even","center-odd"].includes(e)}},transition:{default:Hu.transition,type:Number},breakpoints:{default:Hu.breakpoints,type:Object},autoplay:{default:Hu.autoplay,type:Number},pauseAutoplayOnHover:{default:Hu.pauseAutoplayOnHover,type:Boolean},modelValue:{default:void 0,type:Number},mouseDrag:{default:Hu.mouseDrag,type:Boolean},touchDrag:{default:Hu.touchDrag,type:Boolean},dir:{default:Hu.dir,validator(e){return["rtl","ltr"].includes(e)}},i18n:{default:Hu.i18n,type:Object},settings:{default(){return{}},type:Object}};function Zje({config:e,slidesCount:o}){const{snapAlign:s,wrapAround:z,itemsToShow:Z=1}=e;if(z)return Math.max(o-1,0);let m;switch(s){case"start":m=o-Z;break;case"end":m=o-1;break;case"center":case"center-odd":m=o-Math.ceil((Z-.5)/2);break;case"center-even":m=o-Math.ceil(Z/2);break;default:m=0;break}return Math.max(m,0)}function Wje({config:e,slidesCount:o}){const{wrapAround:s,snapAlign:z,itemsToShow:Z=1}=e;let m=0;if(s||Z>o)return m;switch(z){case"start":m=0;break;case"end":m=Z-1;break;case"center":case"center-odd":m=Math.floor((Z-1)/2);break;case"center-even":m=Math.floor((Z-2)/2);break;default:m=0;break}return m}function xk({val:e,max:o,min:s}){return o<s?e:Math.min(Math.max(e,s),o)}function qje({config:e,currentSlide:o,slidesCount:s}){const{snapAlign:z,wrapAround:Z,itemsToShow:m=1}=e;let g=o;switch(z){case"center":case"center-odd":g-=(m-1)/2;break;case"center-even":g-=(m-2)/2;break;case"end":g-=m-1;break}return Z?g:xk({val:g,max:s-m,min:0})}function AN(e){return e?e.reduce((o,s)=>{var z;return s.type===t.Fragment?[...o,...AN(s.children)]:((z=s.type)===null||z===void 0?void 0:z.name)==="CarouselSlide"?[...o,s]:o},[]):[]}function _k({val:e,max:o,min:s=0}){return e>o?_k({val:e-(o+1),max:o,min:s}):e<s?_k({val:e+(o+1),max:o,min:s}):e}function Jje(e,o){let s;return o?function(...z){const Z=this;s||(e.apply(Z,z),s=!0,setTimeout(()=>s=!1,o))}:e}function Yje(e,o){let s;return function(...z){s&&clearTimeout(s),s=setTimeout(()=>{e(...z),s=null},o)}}function Xje(e="",o={}){return Object.entries(o).reduce((s,[z,Z])=>s.replace(`{${z}}`,String(Z)),e)}var $je=t.defineComponent({name:"ARIA",setup(){const e=t.inject("config",t.reactive(Object.assign({},Hu))),o=t.inject("currentSlide",t.ref(0)),s=t.inject("slidesCount",t.ref(0));return()=>t.h("div",{class:["carousel__liveregion","carousel__sr-only"],"aria-live":"polite","aria-atomic":"true"},Xje(e.i18n.itemXofY,{currentSlide:o.value+1,slidesCount:s.value}))}}),Kje=t.defineComponent({name:"Carousel",props:TN,setup(e,{slots:o,emit:s,expose:z}){var Z;const m=t.ref(null),g=t.ref([]),r=t.ref(0),b=t.ref(0),p=t.reactive(Object.assign({},Hu));let a=Object.assign({},Hu),_;const y=t.ref((Z=e.modelValue)!==null&&Z!==void 0?Z:0),x=t.ref(0),h=t.ref(0),n=t.ref(0),i=t.ref(0);let d,l;t.provide("config",p),t.provide("slidesCount",b),t.provide("currentSlide",y),t.provide("maxSlide",n),t.provide("minSlide",i),t.provide("slideWidth",r);function u(){_=Object.assign({},e.breakpoints),a=Object.assign(Object.assign(Object.assign({},a),e),{i18n:Object.assign(Object.assign({},a.i18n),e.i18n),breakpoints:void 0}),w(a)}function v(){if(!_||!Object.keys(_).length)return;const re=Object.keys(_).map(ie=>Number(ie)).sort((ie,me)=>+me-+ie);let le=Object.assign({},a);re.some(ie=>{const me=window.matchMedia(`(min-width: ${ie}px)`).matches;return me&&(le=Object.assign(Object.assign({},le),_[ie])),me}),w(le)}function w(re){Object.entries(re).forEach(([le,ie])=>p[le]=ie)}const C=Yje(()=>{v(),E()},16);function E(){if(!m.value)return;const re=m.value.getBoundingClientRect();r.value=re.width/p.itemsToShow}function A(){b.value<=0||(h.value=Math.ceil((b.value-1)/2),n.value=Zje({config:p,slidesCount:b.value}),i.value=Wje({config:p,slidesCount:b.value}),p.wrapAround||(y.value=xk({val:y.value,max:n.value,min:i.value})))}t.onMounted(()=>{t.nextTick(()=>E()),setTimeout(()=>E(),1e3),v(),U(),window.addEventListener("resize",C,{passive:!0}),s("init")}),t.onUnmounted(()=>{l&&clearTimeout(l),d&&clearInterval(d),window.removeEventListener("resize",C,{passive:!0})});let P=!1;const L={x:0,y:0},T={x:0,y:0},I=t.reactive({x:0,y:0}),M=t.ref(!1),S=t.ref(!1),B=()=>{M.value=!0},k=()=>{M.value=!1};function D(re){["INPUT","TEXTAREA","SELECT"].includes(re.target.tagName)||(P=re.type==="touchstart",P||re.preventDefault(),!(!P&&re.button!==0||G.value)&&(L.x=P?re.touches[0].clientX:re.clientX,L.y=P?re.touches[0].clientY:re.clientY,document.addEventListener(P?"touchmove":"mousemove",N,!0),document.addEventListener(P?"touchend":"mouseup",j,!0)))}const N=Jje(re=>{S.value=!0,T.x=P?re.touches[0].clientX:re.clientX,T.y=P?re.touches[0].clientY:re.clientY;const le=T.x-L.x,ie=T.y-L.y;I.y=ie,I.x=le},p.throttle);function j(){const re=p.dir==="rtl"?-1:1,le=Math.sign(I.x)*.4,ie=Math.round(I.x/r.value+le)*re;if(ie&&!P){const me=ye=>{ye.stopPropagation(),window.removeEventListener("click",me,!0)};window.addEventListener("click",me,!0)}$(y.value-ie),I.x=0,I.y=0,S.value=!1,document.removeEventListener(P?"touchmove":"mousemove",N,!0),document.removeEventListener(P?"touchend":"mouseup",j,!0)}function U(){!p.autoplay||p.autoplay<=0||(d=setInterval(()=>{p.pauseAutoplayOnHover&&M.value||ne()},p.autoplay))}function H(){d&&(clearInterval(d),d=null),U()}const G=t.ref(!1);function $(re){const le=p.wrapAround?re:xk({val:re,max:n.value,min:i.value});y.value===le||G.value||(s("slide-start",{slidingToIndex:re,currentSlideIndex:y.value,prevSlideIndex:x.value,slidesCount:b.value}),G.value=!0,x.value=y.value,y.value=le,l=setTimeout(()=>{if(p.wrapAround){const ie=_k({val:le,max:n.value,min:0});ie!==y.value&&(y.value=ie,s("loop",{currentSlideIndex:y.value,slidingToIndex:re}))}s("update:modelValue",y.value),s("slide-end",{currentSlideIndex:y.value,prevSlideIndex:x.value,slidesCount:b.value}),G.value=!1,H()},p.transition))}function ne(){$(y.value+p.itemsToScroll)}function q(){$(y.value-p.itemsToScroll)}const Q={slideTo:$,next:ne,prev:q};t.provide("nav",Q),t.provide("isSliding",G);const ee=t.computed(()=>qje({config:p,currentSlide:y.value,slidesCount:b.value}));t.provide("slidesToScroll",ee);const X=t.computed(()=>{const re=p.dir==="rtl"?-1:1,le=ee.value*r.value*re;return{transform:`translateX(${I.x-le}px)`,transition:`${G.value?p.transition:0}ms`,margin:p.wrapAround?`0 -${b.value*r.value}px`:"",width:"100%"}});function K(){u(),v(),A(),E(),H()}Object.keys(TN).forEach(re=>{["modelValue"].includes(re)||t.watch(()=>e[re],K)}),t.watch(()=>e.modelValue,re=>{re!==y.value&&$(Number(re))}),t.watch(b,A),s("before-init"),u();const ce={config:p,slidesCount:b,slideWidth:r,next:ne,prev:q,slideTo:$,currentSlide:y,maxSlide:n,minSlide:i,middleSlide:h};z({updateBreakpointsConfigs:v,updateSlidesData:A,updateSlideWidth:E,initDefaultConfigs:u,restartCarousel:K,slideTo:$,next:ne,prev:q,nav:Q,data:ce});const ue=o.default||o.slides,he=o.addons,pe=t.reactive(ce);return()=>{const re=AN(ue==null?void 0:ue(pe)),le=(he==null?void 0:he(pe))||[];re.forEach((ve,we)=>ve.props.index=we);let ie=re;if(p.wrapAround){const ve=re.map((Se,Te)=>t.cloneVNode(Se,{index:-re.length+Te,isClone:!0,key:`clone-before-${Te}`})),we=re.map((Se,Te)=>t.cloneVNode(Se,{index:re.length+Te,isClone:!0,key:`clone-after-${Te}`}));ie=[...ve,...re,...we]}g.value=re,b.value=Math.max(re.length,1);const me=t.h("ol",{class:"carousel__track",style:X.value,onMousedownCapture:p.mouseDrag?D:null,onTouchstartPassiveCapture:p.touchDrag?D:null},ie),ye=t.h("div",{class:"carousel__viewport"},me);return t.h("section",{ref:m,class:{carousel:!0,"is-sliding":G.value,"is-dragging":S.value,"is-hover":M.value,"carousel--rtl":p.dir==="rtl"},dir:p.dir,"aria-label":p.i18n.ariaGallery,tabindex:"0",onMouseenter:B,onMouseleave:k},[ye,le,t.h($je)])}}}),EN;(function(e){e.arrowUp="arrowUp",e.arrowDown="arrowDown",e.arrowRight="arrowRight",e.arrowLeft="arrowLeft"})(EN||(EN={}));var Qje=t.defineComponent({name:"CarouselSlide",props:{index:{type:Number,default:1},isClone:{type:Boolean,default:!1}},setup(e,{slots:o}){const s=t.inject("config",t.reactive(Object.assign({},Hu))),z=t.inject("currentSlide",t.ref(0)),Z=t.inject("slidesToScroll",t.ref(0)),m=t.inject("isSliding",t.ref(!1)),g=()=>e.index===z.value,r=()=>e.index===z.value-1,b=()=>e.index===z.value+1,p=()=>{const a=Math.floor(Z.value),_=Math.ceil(Z.value+s.itemsToShow-1);return e.index>=a&&e.index<=_};return()=>{var a;return t.h("li",{style:{width:`${100/s.itemsToShow}%`},class:{carousel__slide:!0,"carousel__slide--clone":e.isClone,"carousel__slide--visible":p(),"carousel__slide--active":g(),"carousel__slide--prev":r(),"carousel__slide--next":b(),"carousel__slide--sliding":m.value},"aria-hidden":!p()},(a=o.default)===null||a===void 0?void 0:a.call(o))}}});const eUe=(e,o)=>{const s=e.__vccOpts||e;for(const[z,Z]of o)s[z]=Z;return s},tUe=e=>(t.pushScopeId("data-v-54620d25"),e=e(),t.popScopeId(),e),aUe={class:"gsc-carousel"},rUe={key:0},nUe=tUe(()=>t.createElementVNode("div",null,"no hay",-1)),iUe=[nUe],oUe={class:"gsc-carousel__2d__slides"},sUe={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},lUe=["fill"],cUe={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},dUe=["fill"],uUe={class:"gsc-carousel__2d__navigation"},hUe={width:"8",height:"15",viewBox:"0 0 8 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},pUe=["stroke"],fUe={key:1,class:"gsc-carousel__2d__navigation__pagination"},mUe=["onClick"],gUe={width:"7",height:"15",viewBox:"0 0 7 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},yUe=["stroke"],vUe={__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(o=>o 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:o,emit:s}){const z=e;t.useCssVars(n=>({"2c72d674":e.slideLeftArrowBackgroundImage,"90a63f40":e.slidesArrowsLeftAndRight,"2627d097":e.slideRightArrowBackgroundImage,"1904d43f":e.marginTop,cfb58986:e.secondarySlidesOpacity}));const Z=t.ref(null),m=t.ref({}),g=t.ref(0),r=t.ref(!1);t.watch(Z,n=>{n&&r.value?(r.value=!1,b(z.items)):n&&n.slideTo&&n.slideTo(g.value)},{deep:!0}),t.watch(()=>z.currentItemIndex,n=>{g.value!==n&&y(n)}),t.watch(()=>z.defaultItemByIndex,n=>{g.value!==n&&y(n)}),t.watch(()=>z.items,n=>{Z.value?b(n):r.value=!0},{immediate:!0});function b(n){n&&n.length&&Z.value&&setTimeout(()=>{if(z.defaultItemByProp){const i=z.items.findIndex(d=>d[z.defaultItemByProp.propName]===z.defaultItemByProp.value);i!==-1?(g.value=i,m.value=n[i]):(g.value=0,m.value=n[0])}else g.value=z.defaultItemByIndex,m.value=n[z.defaultItemByIndex];Z.value.slideTo&&Z.value.slideTo(g.value),m.value&&g.value===0&&s("input",{selectedItem:m.value,selectedItemIndex:g.value})},500)}function p(){Z.value&&Z.value.next()}function a(){Z.value&&Z.value.prev()}function _(){Z.value&&Z.value.updateSlideWidth()}function y(n){Z.value&&Z.value.slideTo(n)}function x(n){Z.value.slideTo(n)}function h(n){const i=n.slidingToIndex<0?z.items.length-1:n.slidingToIndex===z.items.length?0:n.slidingToIndex;g.value=i,m.value=z.items[i],s("update:currentItemIndex",i),s("input",{selectedItem:m.value,selectedItemIndex:g.value})}return o({prev:a,next:p,updateSlideWidth:_,slideTo:y}),(n,i)=>(t.openBlock(),t.createElementBlock("div",aUe,[z.is3d?(t.openBlock(),t.createElementBlock("div",rUe,iUe)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(["gsc-carousel__2d",{"main-slide-priority":e.isMainSlidePriority}])},[t.createElementVNode("div",oUe,[t.createVNode(t.unref(Kje),{ref_key:"carousel2d",ref:Z,"items-to-show":e.itemsToShow,"wrap-around":e.wrapAround,onSlideStart:h},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(d,l)=>(t.openBlock(),t.createBlock(t.unref(Qje),{key:l},{default:t.withCtx(()=>[t.renderSlot(n.$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:i[0]||(i[0]=d=>Z.value.prev())},[t.createElementVNode("div",{class:t.normalizeClass(["gsc-carousel__2d__slide-button",{rounded:e.areSlidesArrowsRounded}])},[(t.openBlock(),t.createElementBlock("svg",sUe,[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,lUe)]))],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:i[1]||(i[1]=d=>p())},[t.createElementVNode("div",{class:t.normalizeClass(["gsc-carousel__2d__slide-button",{rounded:e.areSlidesArrowsRounded}])},[(t.openBlock(),t.createElementBlock("svg",cUe,[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,dUe)]))],2)],4)):t.createCommentVNode("",!0),t.createElementVNode("div",uUe,[e.areNavigationArrowsVisible?(t.openBlock(),t.createElementBlock("div",{key:0,class:"gsc-carousel__2d__navigation__arrow-left",onClick:i[2]||(i[2]=d=>a())},[(t.openBlock(),t.createElementBlock("svg",hUe,[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:z.arrowsColor},null,8,pUe)]))])):t.createCommentVNode("",!0),e.isPaginationVisible?(t.openBlock(),t.createElementBlock("div",fUe,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(d,l)=>(t.openBlock(),t.createElementBlock("div",{key:`i-${l}`,class:"gsc-carousel__2d__navigation__pagination__item",style:t.normalizeStyle({height:`${z.navigationHeight}px`,width:`${g.value===l?z.navigationActiveWidth:z.navigationActiveWidth/2}px`,borderRadius:`${z.navigationBorderRadius}px`,backgroundColor:`${g.value===l?z.navigationActiveColor:z.navigationColor}`,transition:"all 0.1s ease-in-out"}),onClick:u=>x(l)},null,12,mUe))),128))])):t.createCommentVNode("",!0),e.areNavigationArrowsVisible?(t.openBlock(),t.createElementBlock("div",{key:2,class:"gsc-carousel__2d__navigation__arrow-right",onClick:i[3]||(i[3]=d=>Z.value.next())},[(t.openBlock(),t.createElementBlock("svg",gUe,[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:z.arrowsColor},null,8,yUe)]))])):t.createCommentVNode("",!0)])],2))]))}},bUe=eUe(vUe,[["__scopeId","data-v-54620d25"]]),wk=(e,o)=>{const s=e.__vccOpts||e;for(const[z,Z]of o)s[z]=Z;return s};let MN=null;const kk={components:{},props:{isSafari:{type:Boolean,default:!1},titleCategory:{type:String,default:"RESUMEN"},dateGame:{type:String,default:""},colorBackgroundHome:{type:String,default:"#000000"},colorBackgroundAway:{type:String,default:"#FFFFFF"},logoHome:{type:String,default:""},matchday:{type:String,default:""},seasonName:{type:String,default:""},logoAway:{type:String,default:""},score:{type:String,default:""},background:{type:String,default:""}},data(){return{gamesContainerWidth:0}},computed:{date(){const e=this.gamesContainerWidth;return e<=400?"date400":e<=540?"date540":e<=650?"date650":"date"},seasoncontainer(){const e=this.gamesContainerWidth;return e<=400?"season-container400":e<=540?"season-container540":e<=650?"season-container650":"season-container"},matchcontainer(){const e=this.gamesContainerWidth;return e<=400?"match-container400":e<=540?"match-container540":e<=650?"match-container650":"match-container"},containerinfogame(){const e=this.gamesContainerWidth;return e<=400?"container-info-game400":e<=540?"container-info-game540":e<=650?"container-info-game650":"container-info-game"},playbutton(){const e=this.gamesContainerWidth;return e<=400?"play-button400":e<=540?"play-button540":e<=650?"play-button650":"play-button"},baselogo(){const e=this.gamesContainerWidth;return e<=400?"base-logo400":e<=540?"base-logo540":e<=650?"base-logo650":"base-logo"},baselogoright(){const e=this.gamesContainerWidth;return e<=400?"base-logo-right400":e<=540?"base-logo-right540":e<=650?"base-logo-right650":"base-logo-right"},thumbnailhighlights(){const e=this.gamesContainerWidth;return e<=400?"thumbnail-highlights400":e<=540?"thumbnail-highlights540":e<=650?"thumbnail-highlights650":"thumbnail-highlights"},teamlogo(){const e=this.gamesContainerWidth;return e<=400?"team-logo400":e<=540?"team-logo540":e<=650?"team-logo650":"team-logo"},logoright(){const e=this.gamesContainerWidth;return e<=400?"logo-right400":e<=540?"logo-right540":e<=650?"logo-right650":"logo-right"},secondline(){const e=this.gamesContainerWidth;return e<=400?"second-line400":e<=540?"second-line540":e<=650?"second-line650":"second-line"},titlename(){const e=this.gamesContainerWidth;return e<=400?"title-name400":e<=540?"title-name540":e<=650?"title-name650":"title-name"}},methods:{onclickPlayVideos(){this.$emit("onclickPlayVideos")},setUpResizeObserver(){if(window.ResizeObserver)MN=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),MN.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},IN=()=>{t.useCssVars(e=>({"1f42efa3":e.colorBackgroundHome+"45","10791a18":e.colorBackgroundAway+"45",f55d90b2:e.colorBackgroundHome,f563b494:e.colorBackgroundAway}))},PN=kk.setup;kk.setup=PN?(e,o)=>(IN(),PN(e,o)):IN;const v5=e=>(t.pushScopeId("data-v-b7ce7993"),e=e(),t.popScopeId(),e),xUe=v5(()=>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)),_Ue=[xUe],wUe=v5(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/paper-texture.png",alt:"",class:"paper-texture position-image"},null,-1)),kUe=["src"],SUe=v5(()=>t.createElementVNode("div",{class:"gradient-back position-image"},null,-1)),CUe=v5(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/halftone-texture.png",alt:"",class:"halftone-texture position-image"},null,-1)),TUe=["src"],AUe=["src"],EUe={class:"text-container"};function MUe(e,o,s,z,Z,m){return t.openBlock(),t.createElementBlock("div",{ref:"gamesContainer",class:t.normalizeClass(m.thumbnailhighlights)},[t.createElementVNode("div",{class:t.normalizeClass(m.playbutton),onClick:o[0]||(o[0]=(...g)=>m.onclickPlayVideos&&m.onclickPlayVideos(...g))},_Ue,2),s.dateGame!=""?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(m.date)},t.toDisplayString(s.dateGame),3)):t.createCommentVNode("",!0),s.matchday!=""&&s.seasonName!=""?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(m.containerinfogame)},[s.matchday!=""?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(m.matchcontainer)},t.toDisplayString(s.matchday),3)):t.createCommentVNode("",!0),s.seasonName!=""?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(m.seasoncontainer)},t.toDisplayString(s.seasonName),3)):t.createCommentVNode("",!0)],2)):t.createCommentVNode("",!0),wUe,t.createElementVNode("img",{src:s.background,alt:"",class:"bkg-blackwhite position-image",style:t.normalizeStyle({filter:s.isSafari?"none":""})},null,12,kUe),t.createElementVNode("div",{class:t.normalizeClass([m.baselogo,"position-image"])},null,2),t.createElementVNode("div",{class:t.normalizeClass(m.baselogoright)},null,2),SUe,CUe,t.createElementVNode("img",{src:s.logoHome,alt:"",class:t.normalizeClass(m.teamlogo)},null,10,TUe),t.createElementVNode("img",{src:s.logoAway,alt:"",class:t.normalizeClass(m.logoright)},null,10,AUe),t.createElementVNode("div",EUe,[t.createElementVNode("span",{class:t.normalizeClass(m.secondline)},t.toDisplayString(s.score),3),t.createElementVNode("div",{class:t.normalizeClass(m.titlename)},t.toDisplayString(s.titleCategory),3)])],2)}const IUe=wk(kk,[["render",MUe],["__scopeId","data-v-b7ce7993"]]);let LN=null;const Sk={components:{},props:{isSafari:{type:Boolean,default:!1},type:{type:Number,default:0},colorBackgroundHome:{type:String,default:"#000000"},colorBackgroundAway:{type:String,default:"#FFFFFF"},nameCategory:{type:String,default:""},date:{type:String,default:""},seasonName:{type:String,default:""},matchday:{type:String,default:""},photoProfile:{type:String,default:""},logoHome:{type:String,default:""},logoAway:{type:String,default:""},scoreHome:{type:String,default:""},scoreAway:{type:String,default:""},background:{type:String,default:""},typeImg:{type:Number,default:0},nameHomeTeam:{type:String,default:""},nameAwayTeam:{type:String,default:""},namePlayer:{type:String,default:""}},data(){return{gamesContainerWidth:0}},computed:{playbutton(){const e=this.gamesContainerWidth;return e<=400?"play-button400":e<=540?"play-button540":e<=650?"play-button650":"play-button"},points(){const e=this.gamesContainerWidth;return e<=400?"points400":e<=540?"points540":e<=650?"points650":"points"},containerinfogame(){const e=this.gamesContainerWidth;return e<=400?"container-info-game400":e<=540?"container-info-game540":e<=650?"container-info-game650":"container-info-game"},teamname(){const e=this.gamesContainerWidth;return e<=400?"team-name400":e<=540?"team-name540":e<=650?"team-name650":"team-name"},teamscore(){const e=this.gamesContainerWidth;return e<=400?"team-score400":e<=540?"team-score540":e<=650?"team-score650":"team-score"},teamlogo(){const e=this.gamesContainerWidth;return e<=400?"team-logo400":e<=540?"team-logo540":e<=650?"team-logo650":"team-logo"},hometeam(){const e=this.gamesContainerWidth;return e<=400?"home-team400":e<=540?"home-team540":e<=650?"home-team650":"home-team"},awayteam(){const e=this.gamesContainerWidth;return e<=400?"away-team400":e<=540?"away-team540":e<=650?"away-team650":"away-team"},texttitle(){const e=this.gamesContainerWidth;return e<=400?"text-title400":e<=540?"text-title540":e<=650?"text-title650":"text-title"},matchcontainer(){const e=this.gamesContainerWidth;return e<=400?"match-container400":e<=540?"match-container540":e<=650?"match-container650":"match-container"},seasonnameContainer(){const e=this.gamesContainerWidth;return e<=280?"seasonname280":e<=400?"seasonname400":e<=540?"seasonname540":e<=650?"seasonname650":"seasonname"},matchboxContainer(){const e=this.gamesContainerWidth;return e<=400?"matchbox400":e<=540?"matchbox540":e<=650?"matchbox650":"matchbox"},seasoncontainer(){const e=this.gamesContainerWidth;return e<=400?"season-container400":e<=540?"season-container540":e<=650?"season-container650":"season-container"},texttitle2(){const e=this.gamesContainerWidth;return e<=300?"text-title2400":e<=540?"text-title2540":e<=650?"text-title2650":"text-title2"},playerimage(){const e=this.gamesContainerWidth;return e<=400?"player-image400":e<=540?"player-image540":e<=650?"player-image650":"player-image"},thumbnailhighlights(){const e=this.gamesContainerWidth;return e<=400?"thumbnail-highlights400":e<=540?"thumbnail-highlights540":e<=650?"thumbnail-highlights650":"thumbnail-highlights"}},methods:{onclickPlayVideos(){this.$emit("onclickPlayVideos")},setUpResizeObserver(){if(window.ResizeObserver)LN=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),LN.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},BN=()=>{t.useCssVars(e=>({"686a0b6a":e.colorBackgroundHome,"68702f4c":e.colorBackgroundAway,"0e248416":e.colorBackgroundAway+"62","206d2fdd":e.colorBackgroundHome+"36"}))},zN=Sk.setup;Sk.setup=zN?(e,o)=>(BN(),zN(e,o)):BN;const b5=e=>(t.pushScopeId("data-v-771c3583"),e=e(),t.popScopeId(),e),PUe=b5(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/paper-texture.png",alt:"",class:"paper-texture position-image"},null,-1)),LUe=b5(()=>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)),BUe=[LUe],zUe={class:"player-container"},DUe=["src"],OUe=["src"],NUe=["src"],FUe={class:"container-score"},RUe=["src"],VUe=["src"],jUe=["src"],UUe=b5(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/halftone-texture.png",alt:"",class:"halftone-texture position-image"},null,-1)),GUe=b5(()=>t.createElementVNode("div",{class:"gradient-color"},null,-1));function HUe(e,o,s,z,Z,m){return t.openBlock(),t.createElementBlock("div",{ref:"gamesContainer",class:t.normalizeClass(m.thumbnailhighlights)},[PUe,t.createElementVNode("div",{class:t.normalizeClass(m.playbutton),onClick:o[0]||(o[0]=(...g)=>m.onclickPlayVideos&&m.onclickPlayVideos(...g))},BUe,2),t.createElementVNode("div",zUe,[t.createElementVNode("div",{class:t.normalizeClass(m.containerinfogame)},[t.createElementVNode("div",{class:t.normalizeClass(m.matchcontainer)},[t.createElementVNode("div",{class:t.normalizeClass(m.matchboxContainer)},t.toDisplayString(s.matchday),3),t.createElementVNode("div",{class:t.normalizeClass(m.seasonnameContainer)},t.toDisplayString(s.seasonName),3)],2),t.createElementVNode("div",{class:t.normalizeClass(m.seasoncontainer)},t.toDisplayString(s.date),3)],2),s.type==0?(t.openBlock(),t.createElementBlock("span",{key:0,class:t.normalizeClass(m.texttitle)},t.toDisplayString(s.nameCategory),3)):(t.openBlock(),t.createElementBlock("span",{key:1,class:t.normalizeClass(m.texttitle2)},t.toDisplayString(s.nameCategory),3)),s.typeImg==0?(t.openBlock(),t.createElementBlock("img",{key:2,src:s.photoProfile,class:t.normalizeClass(m.playerimage)},null,10,DUe)):t.createCommentVNode("",!0),s.typeImg==1?(t.openBlock(),t.createElementBlock("img",{key:3,src:s.photoProfile,alt:""},null,8,OUe)):t.createCommentVNode("",!0),s.typeImg==2?(t.openBlock(),t.createElementBlock("img",{key:4,src:s.photoProfile,class:"img-number"},null,8,NUe)):t.createCommentVNode("",!0),t.createElementVNode("div",FUe,[t.createElementVNode("div",{class:t.normalizeClass(m.hometeam)},[t.createElementVNode("span",{class:t.normalizeClass(m.teamname)},t.toDisplayString(s.nameHomeTeam),3),t.createElementVNode("img",{src:s.logoHome,alt:"",class:t.normalizeClass(m.teamlogo)},null,10,RUe),t.createElementVNode("span",{class:t.normalizeClass(m.teamscore)},t.toDisplayString(s.scoreHome),3)],2),t.createElementVNode("span",{class:t.normalizeClass(m.points)},":",2),t.createElementVNode("div",{class:t.normalizeClass(m.awayteam)},[t.createElementVNode("span",{class:t.normalizeClass(m.teamscore)},t.toDisplayString(s.scoreAway),3),t.createElementVNode("img",{src:s.logoAway,alt:"",class:t.normalizeClass(m.teamlogo)},null,10,VUe),t.createElementVNode("span",{class:t.normalizeClass(m.teamname)},t.toDisplayString(s.nameAwayTeam),3)],2)])]),t.createElementVNode("img",{src:s.background,alt:"",class:"bkg-blackwhite position-image",style:t.normalizeStyle({filter:(s.isSafari,"")})},null,12,jUe),UUe,GUe],2)}const ZUe=wk(Sk,[["render",HUe],["__scopeId","data-v-771c3583"]]);function Ck(e,o,s){const z=Number(o);if(o===null||z===0||z===1||!e||!e.startsWith("http"))return e;const Z=s?`https://dev-apis.golstats.com/${z}`:`https://apis.golstats.com/${z}`,m=new URL(e),g=m.pathname.split("/").filter(b=>b!==""&&b!=="prod"&&b!=="qa").join("/");let r=`${Z}/${g}`;return m.search&&(r+=m.search),m.hash&&(r+=m.hash),r}function bf(e,o){if(!o||o<=1)return e;const s=new URL(e),z=s.pathname.split("/").filter(r=>r!=="");if(z.length===0)return e;const[Z,...m]=z,g=[Z,o,...m].join("/");return`${s.origin}/${g}${s.search}`}const WUe={components:{GSCCarousel:bUe,GSCThumbnailHighlightGameHistoric:IUe,GSCThumbnailHighlightGamePlayer:ZUe},props:{items:{type:Array,default:()=>[1,2,3]},data:{type:Object,default:()=>{}},title:{type:String,default:"TODAS SUS JUGADAS"},canPlayVideos:{type:Boolean,default:!0},videoPrivilegesPlayingAs:{type:Set,default:()=>new Set([1,2])},privilegesTeamId:{type:Number,default:0},provider:{type:Number,default:1},isDevApis:{type:Boolean,default:!1}},data(){return{highlightsWidth:0,printData:[],resizeObserverGSCH:null,token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",lastHistoricGamesUrl:""}},watch:{data:{immediate:!0,handler(e){this.getData(e)}}},computed:{isSafari(){const e=navigator.userAgent||navigator.vendor||window.opera;return/^((?!chrome|android|Edg|Chromium).)*safari/i.test(e)},printDataFiltered(){return this.canPlayVideos?this.printData.filter(e=>this.videoPrivilegesPlayingAs.has(e.playingAs)):[]},isMobile(){return this.highlightsWidth<580},carouselProps(){return this.isMobile?{wrapAround:!0,itemsToShow:1.2,isMainSlidePriority:!0,areSlidesArrowsVisible:!1,areSlidesArrowsRounded:!1,areNavigationArrowsVisible:!1,isPaginationVisible:!0}:{wrapAround:!0,itemsToShow:1.8,isMainSlidePriority:!0,areSlidesArrowsVisible:!0,areSlidesArrowsRounded:!0,areNavigationArrowsVisible:!1}}},methods:{getPlayingAs(e,o){return e.home_team===(o||this.data.team)?1:2},obtenerNombreCompletoFecha(e){if(e){const o=new Date(e),s=["Domingo","Lunes","Martes","Miércoles","Jueves","Viernes","Sábado"][o.getUTCDay()],z=o.getUTCDate(),Z=["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"][o.getUTCMonth()];return`${s} ${z} de ${Z}`}else return""},onclickPlayVideos(e){var o=[];e.type==2?e.data.position_id==1?e.data.has_relevants==1?e.data.category==0?o=[55,324,323,608,39,774,802,52,53,40,42,54]:o=e.data.category:o=[55,324,323,608,39,774,802,52,53,40,42,54]:e.data.has_relevants==1?e.data.category==0?o=[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]:o=e.data.category:o=[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?o=[607,608,12,55,54,35,14,52,15,53,466,477,40,257,39]:o=e.data.category:e.data.category!=0?o=e.data.category:o=[607,608,12,55,54,35,14,52,15,53,466,477];const s=[1,2,3];let z={seasonId:e.data.season_id,mainSectionType:1,playListType:e.type,categoryIds:o,gameIdsToFilter:e.data.game_id?[e.data.game_id]:null,playerIds:e.data.position_id!=1?e.data.player_id?[e.data.player_id]:[]:[],goalkeeperIds:e.data.position_id==1?e.data.player_id?[e.data.player_id]:[]:[],teamId:e.data.team_id?e.data.team_id:e.data.team_id_b?e.data.team_id_b:0,matchResult:e.data.matchResult?[e.data.matchResult]:s,advancedFilter:{playListTitle:""}};e.data.category!==0&&(z.advancedFilter.mainCategoryId=e.data.category),this.$emit("openmedia",z)},play(e){this.$emit("play",e)},async getData(e){this.$emit("loading",!0);const o=Hje.create({headers:{Authorization:`${this.token}`}});var s=[],z={};if(e.type=="player"){const Z=await o.get(Ck("https://uof4tt5l46.execute-api.us-west-2.amazonaws.com/prod/v3/playerInfo/"+e.season+"/"+e.player,this.provider,this.isDevApis));if(Z.data.seasons[e.season])for(let m=0;m<Z.data.seasons[e.season].games_played.length;m++)z={playingAs:this.getPlayingAs(Z.data.seasons[e.season].games_played[m],Z.data.team_id),category:0,player_id:Z.data.player_id,position_id:Z.data.position_id,color:Z.data.info_thumbnails.colors.background_color,photo_profile:Z.data.info_thumbnails.images.player_in_action[0]?"https://golstatsimages.blob.core.windows.net/images-library/"+Z.data.info_thumbnails.images.player_in_action[0]:Z.data.info_thumbnails.player_profile,team_logo:bf("https://golstatsimages.blob.core.windows.net/teams-150/"+Z.data.seasons[e.season].games_played[m].home_team+".png",this.provider),player_name:Z.data.seasons[e.season].games_played[m].home_team_acronym+" "+Z.data.seasons[e.season].games_played[m].home_team_score+" : "+Z.data.seasons[e.season].games_played[m].visiting_team_score+" "+Z.data.seasons[e.season].games_played[m].visiting_team_acronym,team_id:Z.data.team_id,has_relevants:Z.data.seasons[e.season].games_played[m].has_relevants,team_id_b:Z.data.seasons[e.season].games_played[m].home_team,season_id:Z.data.seasons[e.season].games_played[m].season_id,name:Z.data.seasons[e.season].games_played[m].player_name,seasonname:Z.data.seasons[e.season].name.replace("Clausura","CL ").replace("Apertura","AP "),game_id:Z.data.seasons[e.season].games_played[m].game_id,match:Z.data.seasons[e.season].games_played[m].matchday_name.replace("Matchday","JOR").replace("de Final","").replace("Playoffs 1","CFI").replace("Playoffs 2","CFV").replace("Playoffs 3","SFI").replace("Playoffs 4","SFV").replace("Playoffs 5","FI").replace("Playoffs 6","FV"),date:this.obtenerNombreCompletoFecha(Z.data.seasons[e.season].games_played[m].date),scorehome:Z.data.seasons[e.season].games_played[m].home_team_score,scoreaway:Z.data.seasons[e.season].games_played[m].visiting_team_score,hometeamacronym:Z.data.seasons[e.season].games_played[m].home_team_acronym,visitingteamacronym:Z.data.seasons[e.season].games_played[m].visiting_team_acronym,background:Z.data.info_thumbnails.images.background_player_in_action[0]?"https://golstatsimages.blob.core.windows.net/images-library/"+Z.data.info_thumbnails.images.background_player_in_action[0]:Z.data.info_thumbnails.player_profile,backgroundhome:Z.data.seasons[e.season].games_played[m].info_thumbnails.home_colors.background_color,backgroundaway:Z.data.seasons[e.season].games_played[m].info_thumbnails.away_colors.background_color,logohome:bf("https://golstatsimages.blob.core.windows.net/teams-150/"+Z.data.seasons[e.season].games_played[m].home_team+".png",this.provider),logoaway:bf("https://golstatsimages.blob.core.windows.net/teams-150/"+Z.data.seasons[e.season].games_played[m].visiting_team+".png",this.provider),total:Z.data.seasons[e.season].games_played[m].matchday_abbreviation.replace("M","Jor "),background_card:"https://golstatsimages.blob.core.windows.net/golstats2-teams/"+Z.data.seasons[e.season].games_played[m].home_team+"_"+Z.data.seasons[e.season].games_played[m].season_id+"_r1.jpg"},s.push(z);else for(let m=0;m<Z.data.national_seasons[e.season].games_played.length;m++)z={playingAs:this.getPlayingAs(Z.data.national_seasons[e.season].games_played[m],Z.data.team_id),category:0,player_id:Z.data.player_id,position_id:Z.data.position_id,color:Z.data.info_thumbnails.colors.background_color,photo_profile:Z.data.info_thumbnails.images.player_in_action[0]?"https://golstatsimages.blob.core.windows.net/images-library/"+Z.data.info_thumbnails.images.player_in_action[0]:Z.data.info_thumbnails.player_profile,team_logo:bf("https://golstatsimages.blob.core.windows.net/teams-150/"+Z.data.national_seasons[e.season].games_played[m].home_team+".png",this.provider),player_name:Z.data.national_seasons[e.season].games_played[m].home_team_acronym+" "+Z.data.national_seasons[e.season].games_played[m].home_team_score+" : "+Z.data.national_seasons[e.season].games_played[m].visiting_team_score+" "+Z.data.national_seasons[e.season].games_played[m].visiting_team_acronym,team_id:Z.data.team_id,has_relevants:Z.data.national_seasons[e.season].games_played[m].has_relevants,team_id_b:Z.data.national_seasons[e.season].games_played[m].home_team,season_id:Z.data.national_seasons[e.season].games_played[m].season_id,name:Z.data.national_seasons[e.season].games_played[m].player_name,seasonname:Z.data.national_seasons[e.season].name.replace("Clausura","CL ").replace("Apertura","AP "),game_id:Z.data.national_seasons[e.season].games_played[m].game_id,match:Z.data.national_seasons[e.season].games_played[m].matchday_name.replace("Matchday","JOR").replace("de Final","").replace("Playoffs 1","CFI").replace("Playoffs 2","CFV").replace("Playoffs 3","SFI").replace("Playoffs 4","SFV").replace("Playoffs 5","FI").replace("Playoffs 6","FV"),date:this.obtenerNombreCompletoFecha(Z.data.national_seasons[e.season].games_played[m].date),scorehome:Z.data.national_seasons[e.season].games_played[m].home_team_score,scoreaway:Z.data.national_seasons[e.season].games_played[m].visiting_team_score,hometeamacronym:Z.data.national_seasons[e.season].games_played[m].home_team_acronym,visitingteamacronym:Z.data.national_seasons[e.season].games_played[m].visiting_team_acronym,background:Z.data.info_thumbnails.images.background_player_in_action[0]?"https://golstatsimages.blob.core.windows.net/images-library/"+Z.data.info_thumbnails.images.background_player_in_action[0]:Z.data.info_thumbnails.player_profile,backgroundhome:Z.data.national_seasons[e.season].games_played[m].info_thumbnails.home_colors.background_color,backgroundaway:Z.data.national_seasons[e.season].games_played[m].info_thumbnails.away_colors.background_color,logohome:bf("https://golstatsimages.blob.core.windows.net/teams-150/"+Z.data.national_seasons[e.season].games_played[m].home_team+".png",this.provider),logoaway:bf("https://golstatsimages.blob.core.windows.net/teams-150/"+Z.data.national_seasons[e.season].games_played[m].visiting_team+".png",this.provider),total:Z.data.national_seasons[e.season].games_played[m].matchday_abbreviation.replace("M","Jor "),background_card:"https://golstatsimages.blob.core.windows.net/golstats2-teams/"+Z.data.national_seasons[e.season].games_played[m].home_team+"_"+Z.data.national_seasons[e.season].games_played[m].season_id+"_r1.jpg"},s.push(z)}else if(e.type=="historic"){const Z=Ck("https://fxtcaw9tw6.execute-api.us-east-2.amazonaws.com/prod/historic/games/"+e.game,this.provider,this.isDevApis);if(this.lastHistoricGamesUrl===Z)return;this.lastHistoricGamesUrl=Z;const m=await o.get(Z);for(let r=0;r<m.data.plays.length;r++)z={teamId:m.data.plays[r][2],player:"Jornada "+m.data.plays[r][6],player_name:m.data.plays[r][4],season_id:m.data.plays[r][31],game_id:m.data.plays[r][3],img:"https://img1.wallspic.com/previews/0/9/1/0/20190/20190-football_player-football-fun-player-sports-x750.jpg"},s.length>0?this.privilegesTeamId==0?!s.filter(b=>b.game_id===m.data.plays[r][3]).length>0&&s.push(z):!s.filter(b=>b.game_id===m.data.plays[r][3]).length>0&&m.data.plays[r][2]===this.privilegesTeamId&&s.push(z):(this.privilegesTeamId==0||m.data.plays[r][2]===this.privilegesTeamId)&&s.push(z);const g=m.data.thumbnails;for(let r=0;r<s.length;r++){const b=Math.floor(Math.random()*g[s[r].game_id].info_thumbnails.images.background_default_games.length);s[r].background="https://golstatsimages.blob.core.windows.net/images-library/"+g[s[r].game_id].info_thumbnails.images.background_default_games[b],s[r].backgroundhome=g[s[r].game_id].info_thumbnails.home_colors.background_color,s[r].backgroundaway=g[s[r].game_id].info_thumbnails.away_colors.background_color,s[r].logoaway=bf("https://golstatsimages.blob.core.windows.net/teams-150/"+g[s[r].game_id].info_thumbnails.away_colors.team_id+".png",this.provider),s[r].logohome=bf("https://golstatsimages.blob.core.windows.net/teams-150/"+g[s[r].game_id].info_thumbnails.home_colors.team_id+".png",this.provider),s[r].match=g[s[r].game_id].matchday_name.replace("Matchday","Jor"),s[r].playingAs=g[s[r].game_id].info_thumbnails.home_colors.team_id===s[r].teamId?1:2,s[r].seasonname=g[s[r].game_id].season_name,s[r].score=g[s[r].game_id].score[0]+" - "+g[s[r].game_id].score[1],s[r].category=0}}else{const Z=await o.get(Ck("https://ws8d8ye2ii.execute-api.us-west-2.amazonaws.com/prod/v4/seasonsByTeam/"+e.team,this.provider,this.isDevApis));for(let m=0;m<Z.data.seasons[e.season].games.length;m++){const g=Math.floor(Math.random()*Z.data.seasons[e.season].games[m].info_thumbnails.images.background_default_games.length);z={playingAs:this.getPlayingAs(Z.data.seasons[e.season].games[m],Z.data.team_id),category:0,game_id:Z.data.seasons[e.season].games[m].game_id,photo_profile:bf("https://golstatsimages.blob.core.windows.net/teams-150/"+Z.data.seasons[e.season].games[m].visiting_team+".png",this.provider),team_logo:bf("https://golstatsimages.blob.core.windows.net/teams-150/"+Z.data.seasons[e.season].games[m].home_team+".png",this.provider),player_name:Z.data.seasons[e.season].games[m].home_team_acronym+" "+Z.data.seasons[e.season].games[m].home_team_score+" : "+Z.data.seasons[e.season].games[m].visiting_team_score+" "+Z.data.seasons[e.season].games[m].visiting_team_acronym,team_id_b:Z.data.seasons[e.season].games[m].home_team,team_id:Z.data.team_id,season_id:Z.data.seasons[e.season].games[m].season_id,name:"",seasonname:Z.data.seasons[e.season].name,match:Z.data.seasons[e.season].games[m].matchday_name.replace("Matchday","Jor"),score:Z.data.seasons[e.season].games[m].home_team_score+" : "+Z.data.seasons[e.season].games[m].visiting_team_score,background:"https://golstatsimages.blob.core.windows.net/images-library/"+Z.data.seasons[e.season].games[m].info_thumbnails.images.background_default_games[g],backgroundhome:Z.data.seasons[e.season].games[m].info_thumbnails.home_colors.background_color,backgroundaway:Z.data.seasons[e.season].games[m].info_thumbnails.away_colors.background_color,logohome:bf("https://golstatsimages.blob.core.windows.net/teams-150/"+Z.data.seasons[e.season].games[m].home_team+".png",this.provider),logoaway:bf("https://golstatsimages.blob.core.windows.net/teams-150/"+Z.data.seasons[e.season].games[m].visiting_team+".png",this.provider),total:Z.data.seasons[e.season].games[m].matchday_abbreviation.replace("M","Jor "),background_card:"https://golstatsimages.blob.core.windows.net/golstats2-teams/"+Z.data.seasons[e.season].games[m].home_team+"_"+Z.data.seasons[e.season].games[m].season_id+"_r1.jpg"},s.push(z)}}this.printData=s,this.$emit("loading",!1)},setUpResizeObserver(){this.resizeObserverGSCH=new ResizeObserver(e=>{for(const o of e)this.highlightsWidth=o.contentRect.width}),this.resizeObserverGSCH.observe(this.$refs.highlights)}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},1e3)}},qUe={key:0,ref:"highlights",class:"carousel-high-lights",id:"carousel-high-lights"};function JUe(e,o,s,z,Z,m){const g=t.resolveComponent("GSCThumbnailHighlightGameHistoric"),r=t.resolveComponent("GSCThumbnailHighlightGamePlayer"),b=t.resolveComponent("GSCCarousel");return m.printDataFiltered.length>0&&s.canPlayVideos?(t.openBlock(),t.createElementBlock("div",qUe,[t.createVNode(b,t.mergeProps(m.carouselProps,{items:m.printDataFiltered,arrowsMaxWidth:"65px",slideLeftArrowBackgroundImage:"linear-gradient(to right, rgba(22, 37, 49, 1), rgba(0, 0, 0, 0))",slideRightArrowBackgroundImage:"linear-gradient(to left, rgba(22, 37, 49, 1), rgba(0, 0, 0, 0))",secondarySlidesOpacity:.2}),{default:t.withCtx(({item:p})=>[s.data.type=="team"||s.data.type=="historic"?(t.openBlock(),t.createBlock(g,{key:0,"is-safari":m.isSafari,items:p,"color-background-home":p.backgroundhome,"color-background-away":p.backgroundaway,"logo-home":p.logohome,"logo-away":p.logoaway,background:p.background,matchday:p.match,onOnclickPlayVideos:a=>m.onclickPlayVideos({data:p,type:1}),"season-name":p.seasonname,score:p.score},null,8,["is-safari","items","color-background-home","color-background-away","logo-home","logo-away","background","matchday","onOnclickPlayVideos","season-name","score"])):(t.openBlock(),t.createBlock(r,{key:1,"is-safari":m.isSafari,type:"player","name-player":p.name,"type-style":"game","color-background-home":p.backgroundhome,"color-background-away":p.backgroundaway,"type-img":"0",date:p.date,"season-name":p.seasonname,matchday:p.match,background:p.background,"name-home-team":p.hometeamacronym,"name-away-team":p.visitingteamacronym,"name-category":s.title,onOnclickPlayVideos:a=>m.onclickPlayVideos({data:p,type:2}),"logo-away":p.logoaway,"logo-home":p.logohome,"score-home":p.scorehome,"photo-profile":p.photo_profile,"score-away":p.scoreaway},null,8,["is-safari","name-player","color-background-home","color-background-away","date","season-name","matchday","background","name-home-team","name-away-team","name-category","onOnclickPlayVideos","logo-away","logo-home","score-home","photo-profile","score-away"]))]),_:1},16,["items"])],512)):t.createCommentVNode("",!0)}const YUe=wk(WUe,[["render",JUe]]),jHt="",UHt="",GHt="",XUe={components:{GSCSlider:x2},props:{isWidget:{type:Boolean,default:!1},teamWidget:{type:Number,default:0},timeLiveProminentData:{type:Number,default:6e4},game:{type:Object,default:()=>{}},canPlayVideos:{type:Boolean,default:!1}},watch:{game:{deep:!0,immediate:!0,handler(e){e.is_live==1?(this.getDataProminent(e.gameId),setInterval(()=>{this.getDataProminent(e.gameId)},this.timeLiveProminentData)):e.game_status==1||e.game_status==0?this.getDataProminent(e.gameId):this.getDataProminentPrematch(e.gameId)}}},data(){return{lastDataProminentUrl:"",dataProminent:[],dataProminentAll:[],tokenPremium:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"}},computed:{},methods:{getImageUrl:Ef,onclickPlayVideos(e){const o=[1,2,3];let s={seasonId:this.game.is_live==1?this.dataProminentAll.season_id:this.game.regularSeasonId,mainSectionType:1,playListType:e.data.is_team==1?3:2,categoryIds:e.data.categories,gameIdsToFilter:this.game.game_status==1?[this.dataProminentAll._id]:null,playerIds:e.data.is_team!=1?[e.data.player_id]:[],goalkeeperIds:[],teamId:e.data.is_team==1?e.data.team_id:0,matchResult:o,playData:{},advancedFilter:{playListTitle:""}};this.$emit("openmedia",s)},hasDecimal(e){return typeof e!="number"?!1:e.toString().includes(".")},formatNumber(e){if(typeof e=="number")if(this.hasDecimal(e)){const o=Math.round(e*10)/10;return Number.isInteger(o)?o.toString()+"%":o.toFixed(1)+"%"}else return e+"%";else return"0"},formatNumber2(e){if(typeof e=="number")if(this.hasDecimal(e)){const o=Math.round(e*10)/10;return Number.isInteger(o)?o.toString()+"%":o.toFixed(1)+"%"}else return e;else return"0"},textoConNegritas(e){if(!e)return"";const o=e.split(/(\*.*?\*)/g).filter(Z=>Z.trim()!=="");let s=Math.ceil(o.length/2),z="";return o.forEach((Z,m)=>{m===s&&(z+="<br/>"),Z.startsWith("*")&&Z.endsWith("*")?z+=`<span class="text-bold-prominent">${Z.slice(1,-1)}</span>`:Z.trim()!==""&&(z+=`<span class="text-prominent">${Z}</span>`)}),z},async getDataProminentPrematch(){try{const e=this.$store.getters.getProviderId,o=this.$store.getters.getIsDevApis;let s="";if(this.isWidget&&this.teamWidget!=0?s=hd("https://1qvtl1japi.execute-api.us-east-2.amazonaws.com/prod/highlights/seasons/"+this.game.seasonId+"/games/"+this.game.gameId+"/prematch",e,o)+"?t="+this.teamWidget:s=hd("https://1qvtl1japi.execute-api.us-east-2.amazonaws.com/prod/highlights/seasons/"+this.game.seasonId+"/games/"+this.game.gameId+"/prematch",e,o),this.lastDataProminentUrl!==s){this.$emit("loading",!0);const Z=await _d.create({headers:{Authorization:`${this.tokenPremium}`}}).get(s);this.dataProminent=Z.data.data,this.dataProminentAll=Z.data,this.$emit("loading",!1)}}catch(e){return Promise.reject(e)}},async getDataProminent(){try{const e=this.$store.getters.getProviderId,o=this.$store.getters.getIsDevApis;let s="";if(this.isWidget&&this.teamWidget!=0?s=hd("https://1qvtl1japi.execute-api.us-east-2.amazonaws.com/prod/highlights/seasons/"+this.game.seasonId+"/games/"+this.game.gameId,e,o)+"?t="+this.teamWidget:s=hd("https://1qvtl1japi.execute-api.us-east-2.amazonaws.com/prod/highlights/seasons/"+this.game.seasonId+"/games/"+this.game.gameId,e,o),this.lastDataProminentUrl!==s){this.$emit("loading",!0);const Z=await _d.create({headers:{Authorization:`${this.tokenPremium}`}}).get(s);this.dataProminent=Z.data.data,this.dataProminentAll=Z.data,setTimeout(()=>{this.$emit("loading",!1)},500)}}catch(e){return Promise.reject(e)}}}},$Ue={class:"data-prominent-game"},KUe={class:"title-data"},QUe={class:"item-data-text"},eGe=["innerHTML"],tGe={class:"contain-stats-control"},aGe={key:0,class:"title-total"},rGe={key:1,class:"item-total"},nGe=["onClick"],iGe={"data-v-83c7df16":"",style:{"margin-left":"-1px"},xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none"};function oGe(e,o,s,z,Z,m){const g=t.resolveComponent("GSCSlider");return t.openBlock(),t.createElementBlock("div",$Ue,[t.createElementVNode("div",KUe,[s.game.game_status!=4||s.game.is_live==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Este partido:")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("Este torneo:")],64))]),t.createVNode(g,{height:"115px",pxScroll:272,scrollColor:"none",arrowsPosition:"absolute",arrowsScrollHide:!0,arrowsHideOnNoScroll:!0,arrowsBackground:"rgba(255,255,255,.16)",arrowsContainerBgL:"linear-gradient(270deg, rgba(13,29,42,0.1) 0%, rgba(13,29,42,1) 70%)",arrowsContainerBgR:"linear-gradient(90deg, rgba(13,29,42,0.1) 0%, rgba(13,29,42,1) 70%)",arrowsMargin:0,arrowsRadius:"50%",arrowsBorder:"#ddd"},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(Z.dataProminent,(r,b)=>(t.openBlock(),t.createElementBlock("div",{key:b,class:"item-prominent-data"},[t.createElementVNode("div",{class:"item-percent-shield",style:t.normalizeStyle("background:"+r.custom_colors.background_color)},[t.createElementVNode("div",{class:"item-team",style:t.normalizeStyle(r.player_id?"background-image:url(https://golstatsimages.blob.core.windows.net/players-profile/"+r.player_id+".png); border: solid 1.4px "+r.custom_colors.background_color:"background-image:url("+m.getImageUrl("https://golstatsimages.blob.core.windows.net/teams-80/"+r.team_id+".png",e.$store.getters.getProviderId)+");border: solid 1.4px "+r.custom_colors.background_color)},null,4),r.show_value==1?(t.openBlock(),t.createElementBlock("div",{key:0,class:"item-percent",style:t.normalizeStyle("color:"+r.custom_colors.font_color)},[r.is_percentage==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[r.title=="Distancia recorrida"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(m.formatNumber(r.percent)),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(m.formatNumber(r.percent)),1)],64))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(r.total),1)],64))],4)):t.createCommentVNode("",!0)],4),t.createElementVNode("div",QUe,[t.createElementVNode("div",{class:"container-text",innerHTML:m.textoConNegritas(r.description)},null,8,eGe),t.createElementVNode("div",tGe,[r.show_value==1?(t.openBlock(),t.createElementBlock("div",aGe,"TOTAL: ")):t.createCommentVNode("",!0),r.show_value==1?(t.openBlock(),t.createElementBlock("div",rGe,[r.is_percentage==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(m.formatNumber(r.percent)),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[r.title=="Distancia recorrida"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(r.total)+" km",1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(r.total),1)],64))],64))])):t.createCommentVNode("",!0),s.canPlayVideos&&r.show_video==1&&r.show_value==1?(t.openBlock(),t.createElementBlock("div",{key:2,class:"btn-play",style:t.normalizeStyle(r.title=="Productividad"?"margin-left: 0px !important;":""),onClick:p=>m.onclickPlayVideos({data:r})},[(t.openBlock(),t.createElementBlock("svg",iGe,o[0]||(o[0]=[t.createElementVNode("path",{"data-v-83c7df16":"",d:"M6.6041 22.8554C6.42105 22.7512 6.26805 22.5956 6.1616 22.4053C6.05515 22.215 5.99927 21.9973 6.00001 21.7755V2.22137C6.00026 2.00039 6.0565 1.78362 6.16274 1.59409C6.26899 1.40456 6.42127 1.24936 6.6034 1.14499C6.78553 1.04062 6.9907 0.990981 7.1971 1.00135C7.4035 1.01171 7.60342 1.0817 7.77561 1.20386L21.4907 10.9821C21.6473 11.0935 21.7758 11.2446 21.8646 11.4219C21.9535 11.5992 22 11.7973 22 11.9985C22 12.1996 21.9535 12.3977 21.8646 12.575C21.7758 12.7523 21.6473 12.9034 21.4907 13.0148L7.77561 22.7954C7.60369 22.9178 7.40392 22.988 7.19761 22.9986C6.9913 23.0092 6.78617 22.9597 6.6041 22.8554ZM7.14347 21.7779L20.8585 11.9996L7.14347 21.7779Z",fill:"#CBEE6B"},null,-1)])))],12,nGe)):t.createCommentVNode("",!0)])])]))),128))]),_:1})])}const sGe=Ki(XUe,[["render",oGe],["__scopeId","data-v-9ab98aea"]]),HHt="",lGe={components:{GSCCheckbox:O1},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:{...ip("nextGeneral",["gameForAnalysis","seasonId"]),...Ld("nextGeneral",["arrayFilledDataSortedByPriority"])},methods:{async getStatsData(e){await this.$store.dispatch("nextGeneral/cleanStats"),await this.$store.dispatch("nextGeneral/checkState",{gameId:e.gameId,currentSeasonId:e.seasonId,isTeamsAnalysis:!0,defaultFilter:null,gameInfo:e})},async getDataPosession(){try{const o=await _d.create({headers:{Authorization:`${this.tokenPremium}`}}).get(hd(this.url+this.game.gameId,this.$store.getters.getProviderId,this.$store.getters.getIsDevApis));this.dataPosession=o.data}catch(e){return Promise.reject(e)}},async getDataPosessionPrematch(e){try{const s=await _d.create({headers:{Authorization:`${this.tokenPremium}`}}).get(hd(this.urlPrematch+e+"/posessions",this.$store.getters.getProviderId,this.$store.getters.getIsDevApis));for(const z in s.data.teams)s.data.teams.hasOwnProperty(z)&&(this.arrTeams[z]=s.data.teams[z])}catch(o){return Promise.reject(o)}},onCheckInactive(e){e?this.areInactiveVisible=!0:this.areInactiveVisible=!1},deleteDecimalZero(e){const o=typeof e=="string"?parseFloat(e):e;return typeof o=="number"&&!isNaN(o)?o%1===0?o:o%1===0?Math.floor(o):o: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,o,s){if(!o.game_id)return this.objectZeroValues;const z=e.homeTeam.accomplished.avgPostGame+e.visitingTeam.accomplished.avgPostGame,Z=e[s].accomplished.avgPostGame/z;return e[s].accomplished.avgPostGame?{numberValue:Z<1?Z*100:Z,numberBarPercent:e[s].accomplished.avgPostGame/z}:this.objectZeroValues}},created(){this.$store.commit("nextGeneral/updateFilters",{filters:{local:{playingAs:[1,2],statistics:{},matchResult:[1,2,3],firstHalf:[1,2,3],secondHalf:[4,5,6]},visit:{playingAs:[1,2],statistics:{},matchResult:[1,2,3],firstHalf:[1,2,3],secondHalf:[4,5,6]}},needsFormat:!0})},beforeUnmount(){clearInterval(this.intervalIdPossesion)}},cGe={key:0,class:"field-posesion-prominent"},dGe={key:0,class:"title"},uGe={class:"info-data-item"},hGe={class:"item-indicador"},pGe={class:"item-indicador-value"},fGe={key:0,class:"inactiveInfo"},mGe={class:"info-data-item"},gGe={class:"item-indicador"},yGe={class:"item-indicador-value"},vGe={class:"info-data-item"},bGe={class:"item-indicador"},xGe={class:"item-indicador-value"},_Ge={class:"info-data-item"},wGe={class:"item-indicador"},kGe={class:"item-indicador-value"},SGe={key:0,class:"inactiveInfo"},CGe={class:"info-data-item"},TGe={class:"item-indicador"},AGe={class:"item-indicador-value"},EGe={class:"info-data-item"},MGe={class:"item-indicador"},IGe={class:"item-indicador-value"};function PGe(e,o,s,z,Z,m){const g=t.resolveComponent("GSCCheckbox");return e.arrayFilledDataSortedByPriority.length>0?(t.openBlock(),t.createElementBlock("div",cGe,[s.widthSection>760?(t.openBlock(),t.createElementBlock("div",dGe,"Porcentajes")):t.createCommentVNode("",!0),s.game.game_status==1||s.game.game_status==0||s.game.is_live==1?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(s.widthSection>760?"field-container":s.widthSection>520?"field-container-movil":s.widthSection>440?"field-container-movil-2":s.widthSection>360?"field-container-movil-3":"field-container-movil-4")},[Z.dataPosession.has_posession==1?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(s.widthSection>1020?"time-show":s.widthSection>920?"time-show-table-xl":s.widthSection>880?"time-show-table-xl-2":s.widthSection>820?"time-show-table-xl-3":s.widthSection>760?"time-show-table-xl-4":"time-show-movil")},[t.createVNode(g,{label:"Mostrar tiempo inactivo",fontFamily:"Poppins-Regular","onUpdate:modelValue":m.onCheckInactive,"label-color":"#8c9399"},null,8,["onUpdate:modelValue"])],2)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(s.widthSection>1020?"field-data-container":s.widthSection>920?"field-data-container-xl":s.widthSection>880?"field-data-container-xl-2":s.widthSection>820?"field-data-container-xl-3":s.widthSection>760?"field-data-container-xl-4":"field-data-container-movil")},[t.createElementVNode("div",{class:t.normalizeClass(Z.areInactiveVisible?"container-data-img-home":"container-data-img-home50")},[t.createElementVNode("div",{class:t.normalizeClass(Z.areInactiveVisible?"homeInfo":"homeInfo50"),style:t.normalizeStyle("background-image:url("+s.game.homeTeam.logo.replace("80","150")+")")},null,6),t.createElementVNode("div",uGe,[t.createElementVNode("div",{class:t.normalizeClass(s.widthSection>580?"item-ref-data":"item-ref-data-movil")},[t.createElementVNode("div",hGe,[t.createElementVNode("div",pGe,[Z.areInactiveVisible?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(Z.dataPosession.active_time.home),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(Z.dataPosession.home),1)],64))]),o[0]||(o[0]=t.createElementVNode("div",{class:"item-indicador-img"},[t.createElementVNode("svg",{width:"8",height:"6",viewBox:"0 0 8 6",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M3.87817 5.92969L0.506034 0.0889796L7.2503 0.0889802L3.87817 5.92969Z",fill:"#38CFFF"})])],-1))]),t.createElementVNode("div",{class:t.normalizeClass(s.widthSection>580?"title-indicador":"title-indicador-movil")}," Pos. "+t.toDisplayString(s.game.homeTeam.acronym),3)],2)])],2),Z.areInactiveVisible&&Z.dataPosession.has_posession==1?(t.openBlock(),t.createElementBlock("div",fGe,[t.createElementVNode("div",mGe,[t.createElementVNode("div",{class:t.normalizeClass(s.widthSection>580?"item-ref-data":"item-ref-data-movil")},[t.createElementVNode("div",gGe,[t.createElementVNode("div",yGe,t.toDisplayString(Z.dataPosession.active_time.inactive_time),1),o[1]||(o[1]=t.createElementVNode("div",{class:"item-indicador-img"},[t.createElementVNode("svg",{width:"8",height:"6",viewBox:"0 0 8 6",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M3.87817 5.92969L0.506034 0.0889796L7.2503 0.0889802L3.87817 5.92969Z",fill:"#38CFFF"})])],-1))]),t.createElementVNode("div",{class:t.normalizeClass(s.widthSection>580?"title-indicador":"title-indicador-movil")},[s.widthSection>580?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("T. Inactivo")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("T. Inactivo")],64))],2)],2)])])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(Z.areInactiveVisible?"container-data-img-away":"container-data-img-away50")},[t.createElementVNode("div",{class:t.normalizeClass(Z.areInactiveVisible?"awayInfo":"awayInfo50"),style:t.normalizeStyle("background-image:url("+s.game.awayTeam.logo.replace("80","150")+")")},null,6),t.createElementVNode("div",vGe,[t.createElementVNode("div",{class:t.normalizeClass(s.widthSection>580?"item-ref-data":"item-ref-data-movil")},[t.createElementVNode("div",bGe,[t.createElementVNode("div",xGe,[Z.areInactiveVisible?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(Z.dataPosession.active_time.away),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(Z.dataPosession.away),1)],64))]),o[2]||(o[2]=t.createElementVNode("div",{class:"item-indicador-img"},[t.createElementVNode("svg",{width:"8",height:"6",viewBox:"0 0 8 6",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M3.87817 5.92969L0.506034 0.0889796L7.2503 0.0889802L3.87817 5.92969Z",fill:"#38CFFF"})])],-1))]),t.createElementVNode("div",{class:t.normalizeClass(s.widthSection>580?"title-indicador":"title-indicador-movil")}," Pos. "+t.toDisplayString(s.game.awayTeam.acronym),3)],2)])],2)],2)],2)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[Z.arrTeams.length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(s.widthSection>760?"field-container":s.widthSection>520?"field-container-movil":s.widthSection>440?"field-container-movil-2":s.widthSection>360?"field-container-movil-3":"field-container-movil-4")},[Z.arrTeams[s.teamSelected.teamId].has_posession==1?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(s.widthSection>1020?"time-show":s.widthSection>920?"time-show-table-xl":s.widthSection>880?"time-show-table-xl-2":s.widthSection>820?"time-show-table-xl-3":s.widthSection>760?"time-show-table-xl-4":"time-show-movil")},[t.createVNode(g,{label:"Mostrar tiempo inactivo",fontFamily:"Poppins-Regular","onUpdate:modelValue":m.onCheckInactive,"label-color":"#8c9399"},null,8,["onUpdate:modelValue"])],2)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(s.widthSection>1020?"field-data-container":s.widthSection>920?"field-data-container-xl":s.widthSection>880?"field-data-container-xl-2":s.widthSection>820?"field-data-container-xl-3":s.widthSection>760?"field-data-container-xl-4":"field-data-container-movil")},[t.createElementVNode("div",{class:t.normalizeClass(Z.areInactiveVisible?"container-data-img-home":"container-data-img-home50")},[s.game.homeTeam.team_id==s.teamSelected.teamId?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(Z.areInactiveVisible?"homeInfo":"homeInfo50"),style:t.normalizeStyle("background-image:url("+s.game.homeTeam.logo.replace("80","150")+")")},null,6)):t.createCommentVNode("",!0),t.createElementVNode("div",_Ge,[t.createElementVNode("div",{class:t.normalizeClass(s.widthSection>580?"item-ref-data":"item-ref-data-movil")},[t.createElementVNode("div",wGe,[t.createElementVNode("div",kGe,[Z.areInactiveVisible?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[s.game.awayTeam.team_id==s.teamSelected.teamId?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(Z.arrTeams[s.teamSelected.teamId].active_time.away),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(Z.arrTeams[s.teamSelected.teamId].active_time.home),1)],64))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[s.game.awayTeam.team_id==s.teamSelected.teamId?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(Z.arrTeams[s.teamSelected.teamId].away),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(Z.arrTeams[s.teamSelected.teamId].home),1)],64))],64))]),o[3]||(o[3]=t.createElementVNode("div",{class:"item-indicador-img"},[t.createElementVNode("svg",{width:"8",height:"6",viewBox:"0 0 8 6",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M3.87817 5.92969L0.506034 0.0889796L7.2503 0.0889802L3.87817 5.92969Z",fill:"#38CFFF"})])],-1))]),s.game.homeTeam.team_id==s.teamSelected.teamId?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(s.widthSection>580?"title-indicador":"title-indicador-movil")}," Pos. "+t.toDisplayString(s.game.homeTeam.acronym),3)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(s.widthSection>580?"title-indicador":"title-indicador-movil")}," Pos. Rival ",2))],2)])],2),Z.areInactiveVisible&&Z.arrTeams[s.teamSelected.teamId].has_posession==1?(t.openBlock(),t.createElementBlock("div",SGe,[t.createElementVNode("div",CGe,[t.createElementVNode("div",{class:t.normalizeClass(s.widthSection>580?"item-ref-data":"item-ref-data-movil")},[t.createElementVNode("div",TGe,[t.createElementVNode("div",AGe,t.toDisplayString(Z.arrTeams[s.teamSelected.teamId].active_time.inactive_time),1),o[4]||(o[4]=t.createElementVNode("div",{class:"item-indicador-img"},[t.createElementVNode("svg",{width:"8",height:"6",viewBox:"0 0 8 6",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M3.87817 5.92969L0.506034 0.0889796L7.2503 0.0889802L3.87817 5.92969Z",fill:"#38CFFF"})])],-1))]),t.createElementVNode("div",{class:t.normalizeClass(s.widthSection>580?"title-indicador":"title-indicador-movil")},[s.widthSection>580?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("T. Inactivo")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("T. Inactivo")],64))],2)],2)])])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(Z.areInactiveVisible?"container-data-img-away":"container-data-img-away50")},[s.game.awayTeam.team_id==s.teamSelected.teamId?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(Z.areInactiveVisible?"awayInfo":"awayInfo50"),style:t.normalizeStyle("background-image:url("+s.game.awayTeam.logo.replace("80","150")+")")},null,6)):t.createCommentVNode("",!0),t.createElementVNode("div",EGe,[t.createElementVNode("div",{class:t.normalizeClass(s.widthSection>580?"item-ref-data":"item-ref-data-movil")},[t.createElementVNode("div",MGe,[t.createElementVNode("div",IGe,[Z.areInactiveVisible?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[s.game.homeTeam.team_id==s.teamSelected.teamId?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(Z.arrTeams[s.teamSelected.teamId].active_time.away),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(Z.arrTeams[s.teamSelected.teamId].active_time.home),1)],64))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[s.game.homeTeam.team_id==s.teamSelected.teamId?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(Z.arrTeams[s.teamSelected.teamId].away),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(Z.arrTeams[s.teamSelected.teamId].home),1)],64))],64))]),o[5]||(o[5]=t.createElementVNode("div",{class:"item-indicador-img"},[t.createElementVNode("svg",{width:"8",height:"6",viewBox:"0 0 8 6",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M3.87817 5.92969L0.506034 0.0889796L7.2503 0.0889802L3.87817 5.92969Z",fill:"#38CFFF"})])],-1))]),s.game.awayTeam.team_id==s.teamSelected.teamId?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(s.widthSection>580?"title-indicador":"title-indicador-movil")}," Pos. "+t.toDisplayString(s.game.awayTeam.acronym),3)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(s.widthSection>580?"title-indicador":"title-indicador-movil")}," Pos. Rival ",2))],2)])],2)],2)],2)):t.createCommentVNode("",!0)],64))])):t.createCommentVNode("",!0)}const LGe=Ki(lGe,[["render",PGe],["__scopeId","data-v-c10866cc"]]),ZHt="",Tk={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(o){throw new Error(o)}}}},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)}}},DN=()=>{t.useCssVars(e=>({"0fd788f0":e.backgroundColor,"65d48069":e.widthCircle,ab129df8:e.heightCircle}))},ON=Tk.setup;Tk.setup=ON?(e,o)=>(DN(),ON(e,o)):DN;const BGe={key:0,class:"text-left"},zGe=["width","src"],DGe=["checked"],OGe=["width","src"],NGe={key:3,class:"text-right"};function FGe(e,o,s,z,Z,m){return t.openBlock(),t.createElementBlock("div",{class:"gsc-switch-radio",style:t.normalizeStyle(m.customText)},[s.textOptionLeft!=""&&!s.hiddenLabels?(t.openBlock(),t.createElementBlock("span",BGe,t.toDisplayString(s.textOptionLeft),1)):t.createCommentVNode("",!0),s.iconA!=""?(t.openBlock(),t.createElementBlock("img",{key:1,width:s.widthIcons,src:s.iconA},null,8,zGe)):t.createCommentVNode("",!0),t.createElementVNode("input",{type:"checkbox",id:"toggle-btn",onChange:o[0]||(o[0]=(...g)=>m.handleSwitchChange&&m.handleSwitchChange(...g)),checked:Z.OptionDefault},null,40,DGe),t.createElementVNode("label",{for:"toggle-btn",style:t.normalizeStyle([m.customStyle,{"--circle-color":s.circleColorSwitch}])},null,4),s.iconB!=""?(t.openBlock(),t.createElementBlock("img",{key:2,width:s.widthIcons,src:s.iconB},null,8,OGe)):t.createCommentVNode("",!0),s.textOptionRight!=""&&!s.hiddenLabels?(t.openBlock(),t.createElementBlock("span",NGe,t.toDisplayString(s.textOptionRight),1)):t.createCommentVNode("",!0)],4)}const NN=Ki(Tk,[["render",FGe],["__scopeId","data-v-c17e5be3"]]),WHt="";let FN=null;const Ak={components:{},props:{canPlayVideos:{type:Boolean,default:!1},titleCategory:{type:String,default:"RESUMEN"},dateGame:{type:String,default:""},colorBackgroundHome:{type:String,default:"#000000"},colorBackgroundAway:{type:String,default:"#FFFFFF"},logoHome:{type:String,default:""},isLive:{type:Boolean,default:!0},matchday:{type:String,default:""},seasonName:{type:String,default:""},logoAway:{type:String,default:""},score:{type:String,default:""},background:{type:String,default:""}},data(){return{gamesContainerWidth:0}},computed:{isSafari(){return ZM()},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)FN=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),FN.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},RN=()=>{t.useCssVars(e=>({"546f95da":e.colorBackgroundHome+"45",a36e8f38:e.colorBackgroundAway+"45","36124c37":e.colorBackgroundHome,"360f3a46":e.colorBackgroundAway}))},VN=Ak.setup;Ak.setup=VN?(e,o)=>(RN(),VN(e,o)):RN;const RGe=["src"],VGe=["src"],jGe=["src"],UGe={class:"text-container"};function GGe(e,o,s,z,Z,m){return t.openBlock(),t.createElementBlock("div",{ref:"gamesContainer",class:t.normalizeClass(m.thumbnailhighlights)},[s.canPlayVideos?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(m.playbutton),onClick:o[0]||(o[0]=(...g)=>m.onclickPlayVideos&&m.onclickPlayVideos(...g))},o[1]||(o[1]=[t.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},[t.createElementVNode("path",{d:"M6.6041 22.8554C6.42105 22.7512 6.26805 22.5956 6.1616 22.4053C6.05515 22.215 5.99927 21.9973 6.00001 21.7755V2.22137C6.00026 2.00039 6.0565 1.78362 6.16274 1.59409C6.26899 1.40456 6.42127 1.24936 6.6034 1.14499C6.78553 1.04062 6.9907 0.990981 7.1971 1.00135C7.4035 1.01171 7.60342 1.0817 7.77561 1.20386L21.4907 10.9821C21.6473 11.0935 21.7758 11.2446 21.8646 11.4219C21.9535 11.5992 22 11.7973 22 11.9985C22 12.1996 21.9535 12.3977 21.8646 12.575C21.7758 12.7523 21.6473 12.9034 21.4907 13.0148L7.77561 22.7954C7.60369 22.9178 7.40392 22.988 7.19761 22.9986C6.9913 23.0092 6.78617 22.9597 6.6041 22.8554ZM7.14347 21.7779L20.8585 11.9996L7.14347 21.7779Z",fill:"#CBEE6B"})],-1)]),2)):t.createCommentVNode("",!0),s.dateGame!=""?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(m.date)},t.toDisplayString(s.dateGame),3)):t.createCommentVNode("",!0),s.matchday!=""&&s.seasonName!=""?(t.openBlock(),t.createElementBlock("div",{key:2,class:t.normalizeClass(m.containerinfogame)},[s.matchday!=""?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(m.matchcontainer)},t.toDisplayString(s.matchday),3)):t.createCommentVNode("",!0),s.seasonName!=""?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(m.seasoncontainer)},t.toDisplayString(s.seasonName),3)):t.createCommentVNode("",!0)],2)):t.createCommentVNode("",!0),o[2]||(o[2]=t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/paper-texture.png",alt:"",class:"paper-texture position-image"},null,-1)),t.createElementVNode("img",{src:s.background,alt:"",class:"bkg-blackwhite position-image",style:t.normalizeStyle({filter:m.isSafari?"none":""})},null,12,RGe),t.createElementVNode("div",{class:t.normalizeClass([m.baselogo,"position-image"])},null,2),t.createElementVNode("div",{class:t.normalizeClass(m.baselogoright)},null,2),o[3]||(o[3]=t.createElementVNode("div",{class:"gradient-back position-image"},null,-1)),o[4]||(o[4]=t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/halftone-texture.png",alt:"",class:"halftone-texture position-image"},null,-1)),t.createElementVNode("img",{src:s.logoHome,alt:"",class:t.normalizeClass(m.teamlogo)},null,10,VGe),t.createElementVNode("img",{src:s.logoAway,alt:"",class:t.normalizeClass(m.logoright)},null,10,jGe),t.createElementVNode("div",UGe,[t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(m.titlename)},t.toDisplayString(s.titleCategory),3)])],2)}const HGe=Ki(Ak,[["render",GGe],["__scopeId","data-v-f047ea82"]]),qHt="";let jN=null;const ZGe={components:{GSCThumbnailHighlightGameHistoric:HGe},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 o=[];e.type==2?e.data.position_id==1?e.data.category==0?o=[55,324,323,608,39,774,802,52,53,40,54]:o=e.data.category:e.data.category==0?o=[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]:o=e.data.category:e.type==3?e.data.category==0?o=[607,608,12,55,54,35,14,52,15,53,466,477,40,257,39]:o=e.data.category:e.data.category!=0?o=e.data.category:this.titleCard=="RESUMEN"?o=[607,608,12,55,54,35,14,52,15,53,466,477]:o=[12,55,54,35];const s=[1,2,3];let z={seasonId:e.data.season_id,mainSectionType:1,playListType:e.type,categoryIds:o,gameIdsToFilter:e.data.game_id?[e.data.game_id]:null,playerIds:e.data.position_id!=1?e.data.player_id?[e.data.player_id]:[]:[],goalkeeperIds:e.data.position_id==1?e.data.player_id?[e.data.player_id]:[]:[],teamId:e.data.team_id?e.data.team_id:0,matchResult:e.data.matchResult?[e.data.matchResult]:s,playData:{},advancedFilter:{playListTitle:""}};e.data.category!==0&&(z.advancedFilter.mainCategoryId=e.data.category),this.$emit("openmedia",z)},async fillData(){const e=this.$store.getters.getProviderId,o=this.$store.getters.getIsDevApis,s=hd("https://fxtcaw9tw6.execute-api.us-east-2.amazonaws.com/prod/historic/games/"+this.game.gameId,e,o);if(this.lastDataGameUrl!==s){this.$emit("loading",!0),this.lastDataGameUrl=s;const z=_d.create({headers:{Authorization:`${this.token}`}}),Z=await z.get(hd("https://8tvo5bp9ai.execute-api.us-west-2.amazonaws.com/prod/gamesBySeason/"+this.game.seasonId,e,o)),m=await z.get(hd("https://d2oco6mqmc.execute-api.us-west-2.amazonaws.com/prod/teamsBySeason/"+this.game.seasonId,e,o));this.tournamentId=m.data.tournament_id;const g=Z.data.games.findIndex(b=>b.game_id===this.game.gameId);this.gameInfo=Z.data.games[g];const r=await z.get(s);this.showHighlight=r.data==""?!1:r.data.plays.length>0,this.showHighlightGoals=r.data==""?!1:r.data.plays.filter(b=>b[0]===12||b[0]===55||b[0]===54||b[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]?r.data.thumbnails[r.data.game_id].score[0]+" - "+r.data.thumbnails[r.data.game_id].score[1]:"0 - 0",this.item.backgroundhome=r.data.thumbnails[r.data.game_id]?r.data.thumbnails[r.data.game_id].info_thumbnails.home_colors.background_color:"",this.item.backgroundaway=r.data.thumbnails[r.data.game_id]?r.data.thumbnails[r.data.game_id].info_thumbnails.away_colors.background_color:"",this.item.logohome=r.data.thumbnails[r.data.game_id]?Ef("https://golstatsimages.blob.core.windows.net/teams-150/"+r.data.thumbnails[r.data.game_id].home_team+".png",e):"",this.item.logoaway=r.data.thumbnails[r.data.game_id]?Ef("https://golstatsimages.blob.core.windows.net/teams-150/"+r.data.thumbnails[r.data.game_id].visiting_team+".png",e):"",this.item.background=r.data.thumbnails[r.data.game_id]?this.titleCard=="RESUMEN"?"https://golstatsimages.blob.core.windows.net/images-library/"+r.data.thumbnails[r.data.game_id].info_thumbnails.images.background_default_games[0]:"https://golstatsimages.blob.core.windows.net/images-library/Goles_CAT.jpg":"",this.$emit("showleyendlive",!!(this.showHighlight||this.showHighlightGoals)),this.$emit("showsummarylive",this.showHighlight),this.$emit("showgoalslive",this.showHighlightGoals),this.$emit("loading",!1)}},setUpResizeObserver(){if(window.ResizeObserver)jN=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),jN.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},async mounted(){setTimeout(()=>{this.setUpResizeObserver()},1e3),await this.fillData()}},WGe={class:"highlights-prominent-game",ref:"gamesContainer"},qGe={class:"video-partido-container__highlight"};function JGe(e,o,s,z,Z,m){const g=t.resolveComponent("GSCThumbnailHighlightGameHistoric");return t.openBlock(),t.createElementBlock("div",WGe,[t.withDirectives(t.createElementVNode("div",qGe,[t.createCommentVNode("",!0),t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(Z.gamesContainerWidth>865?"video-partido-container__image":"video-partido-container__image2")},[Z.item.background!=""?(t.openBlock(),t.createBlock(g,{key:0,"color-background-home":Z.item.backgroundhome,"color-background-away":Z.item.backgroundaway,"logo-home":Z.item.logohome,"logo-away":Z.item.logoaway,"is-live":!0,"title-category":s.titleCard,"can-play-videos":s.canPlayVideos,background:Z.item.background,matchday:Z.item.match,"season-name":Z.item.seasonname,onOnclickPlayVideos:o[0]||(o[0]=r=>m.onclickPlayVideos({data:Z.item,type:1})),score:Z.item.score},null,8,["color-background-home","color-background-away","logo-home","logo-away","title-category","can-play-videos","background","matchday","season-name","score"])):t.createCommentVNode("",!0)],2)],512),[[t.vShow,s.titleCard=="RESUMEN"&&s.canPlayVideos&&Z.showHighlight||s.titleCard=="GOLES"&&s.canPlayVideos&&Z.showHighlightGoals]])],512)}const YGe=Ki(ZGe,[["render",JGe],["__scopeId","data-v-bab21881"]]),JHt="";let UN=null;const Ek={components:{},props:{titleCategory:{type:String,default:"RESUMEN"},dateGame:{type:String,default:""},colorBackgroundHome:{type:String,default:"#000000"},colorBackgroundAway:{type:String,default:"#FFFFFF"},isLive:{type:Boolean,default:!1},logoHome:{type:String,default:""},game:{type:Object,default:()=>{}},matchday:{type:String,default:""},seasonName:{type:String,default:""},logoAway:{type:String,default:""},score:{type:String,default:""},background:{type:String,default:""}},data(){return{gamesContainerWidth:0}},computed:{isSafari(){return ZM()},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)UN=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),UN.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},GN=()=>{t.useCssVars(e=>({"4ad16d8d":e.colorBackgroundHome+"45","053e609e":e.colorBackgroundAway+"45","288253c7":e.colorBackgroundHome,"287f41d6":e.colorBackgroundAway}))},HN=Ek.setup;Ek.setup=HN?(e,o)=>(GN(),HN(e,o)):GN;const XGe=["src"],$Ge=["src"],KGe=["src"],QGe={class:"text-container"};function eHe(e,o,s,z,Z,m){return t.openBlock(),t.createElementBlock("div",{ref:"gamesContainer",class:t.normalizeClass(m.thumbnailhighlights)},[s.isLive&&s.game.game_status!=0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(Z.gamesContainerWidth>340?Z.gamesContainerWidth>480?"icon-live":"icon-live-tablet":"icon-live-mobile")},o[1]||(o[1]=[t.createElementVNode("span",{class:"circle-live"},null,-1),t.createElementVNode("span",{style:{"margin-left":"3px"}},"LIVE",-1)]),2)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(m.playbutton),onClick:o[0]||(o[0]=(...g)=>m.onclickPlayVideos&&m.onclickPlayVideos(...g))},o[2]||(o[2]=[t.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},[t.createElementVNode("path",{d:"M6.6041 22.8554C6.42105 22.7512 6.26805 22.5956 6.1616 22.4053C6.05515 22.215 5.99927 21.9973 6.00001 21.7755V2.22137C6.00026 2.00039 6.0565 1.78362 6.16274 1.59409C6.26899 1.40456 6.42127 1.24936 6.6034 1.14499C6.78553 1.04062 6.9907 0.990981 7.1971 1.00135C7.4035 1.01171 7.60342 1.0817 7.77561 1.20386L21.4907 10.9821C21.6473 11.0935 21.7758 11.2446 21.8646 11.4219C21.9535 11.5992 22 11.7973 22 11.9985C22 12.1996 21.9535 12.3977 21.8646 12.575C21.7758 12.7523 21.6473 12.9034 21.4907 13.0148L7.77561 22.7954C7.60369 22.9178 7.40392 22.988 7.19761 22.9986C6.9913 23.0092 6.78617 22.9597 6.6041 22.8554ZM7.14347 21.7779L20.8585 11.9996L7.14347 21.7779Z",fill:"#CBEE6B"})],-1)]),2),s.dateGame!=""?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(m.date)},t.toDisplayString(s.dateGame),3)):t.createCommentVNode("",!0),s.matchday!=""&&s.seasonName!=""?(t.openBlock(),t.createElementBlock("div",{key:2,class:t.normalizeClass(m.containerinfogame)},[s.matchday!=""?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(m.matchcontainer)},t.toDisplayString(s.matchday),3)):t.createCommentVNode("",!0),s.seasonName!=""?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(m.seasoncontainer)},t.toDisplayString(s.seasonName),3)):t.createCommentVNode("",!0)],2)):t.createCommentVNode("",!0),o[3]||(o[3]=t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/paper-texture.png",alt:"",class:"paper-texture position-image"},null,-1)),t.createElementVNode("img",{src:s.background,alt:"",class:"bkg-blackwhite position-image",style:t.normalizeStyle({filter:m.isSafari?"none":""})},null,12,XGe),t.createElementVNode("div",{class:t.normalizeClass([m.baselogo,"position-image"])},null,2),t.createElementVNode("div",{class:t.normalizeClass(m.baselogoright)},null,2),o[4]||(o[4]=t.createElementVNode("div",{class:"gradient-back position-image"},null,-1)),o[5]||(o[5]=t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/halftone-texture.png",alt:"",class:"halftone-texture position-image"},null,-1)),t.createElementVNode("img",{src:s.logoHome,alt:"",class:t.normalizeClass(m.teamlogo)},null,10,$Ge),t.createElementVNode("img",{src:s.logoAway,alt:"",class:t.normalizeClass(m.logoright)},null,10,KGe),t.createElementVNode("div",QGe,[t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(m.titlename)},t.toDisplayString(s.titleCategory),3)])],2)}const tHe=Ki(Ek,[["render",eHe],["__scopeId","data-v-9894dd92"]]),YHt="";let ZN=null;const aHe={components:{GSCThumbnailHighlightGameHistoricLive:tHe},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 o=[];e.type==2?e.data.position_id==1?e.data.category==0?o=[55,324,323,608,39,774,802,52,53,40,54]:o=e.data.category:e.data.category==0?o=[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]:o=e.data.category:e.type==3?e.data.category==0?o=[607,608,12,55,54,35,14,52,15,53,466,477,40,257,39]:o=e.data.category:e.type==4?o=[12,55,"35_r","54_r"]:e.data.category!=0?o=e.data.category:this.titleCard=="RESUMEN"?o=[607,608,12,55,54,35,14,52,15,53,466,477]:o=[12,55,54,35];const s=[1,2,3];let z={seasonId:e.data.season_id,mainSectionType:1,playListType:e.type,categoryIds:o,gameIdsToFilter:e.data.game_id?[e.data.game_id]:null,playerIds:e.data.position_id!=1?e.data.player_id?[e.data.player_id]:[]:[],goalkeeperIds:e.data.position_id==1?e.data.player_id?[e.data.player_id]:[]:[],teamId:e.data.team_id?e.data.team_id:0,matchResult:e.data.matchResult?[data.matchResult]:s,playData:{},advancedFilter:{playListTitle:""}};e.data.category!==0&&(z.advancedFilter.mainCategoryId=e.data.category),this.$emit("openmedia",z)},async getLiveHighlights(){const e=this.$store.getters.getProviderId,o=this.$store.getters.getIsDevApis,z=await _d.create({headers:{Authorization:`${this.token}`}}).get(hd("https://fxtcaw9tw6.execute-api.us-east-2.amazonaws.com/prod/live/historic/games/"+this.game.gameId,e,o));z.data!=""&&(this.showHighlight=z.data==""?!1:z.data.plays.length>0,this.showHighlightGoals=z.data==""?!1:z.data.plays.filter(Z=>Z[0]===12||Z[0]===55||Z[0]===54||Z[0]===35).length>0,this.item.category=0,this.item.game_id=z.data.game_id,this.item.season_id=this.game.seasonId,this.item.score=z.data.thumbnails[z.data.game_id].score,this.item.backgroundhome=z.data.thumbnails[z.data.game_id].info_thumbnails.home_colors.background_color,this.item.backgroundaway=z.data.thumbnails[z.data.game_id].info_thumbnails.away_colors.background_color,this.item.logohome=Ef("https://golstatsimages.blob.core.windows.net/teams-150/"+z.data.thumbnails[z.data.game_id].home_team+".png",e),this.item.logoaway=Ef("https://golstatsimages.blob.core.windows.net/teams-150/"+z.data.thumbnails[z.data.game_id].visiting_team+".png",e),this.item.background=this.titleCard=="RESUMEN"?"https://golstatsimages.blob.core.windows.net/images-library/"+z.data.thumbnails[z.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)ZN=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainerlivehigh.clientWidth}),ZN.observe(this.$refs.gamesContainerlivehigh);else throw new Error("Resize observer not supported!")}},async mounted(){setTimeout(()=>{this.setUpResizeObserver()},1e3)}},rHe={class:"highlights-prominent-game",ref:"gamesContainerlivehigh"},nHe={class:"video-partido-container__highlight"},iHe={class:"video-partido-container__image"};function oHe(e,o,s,z,Z,m){const g=t.resolveComponent("GSCThumbnailHighlightGameHistoricLive");return t.openBlock(),t.createElementBlock("div",rHe,[t.withDirectives(t.createElementVNode("div",nHe,[t.createCommentVNode("",!0),t.createElementVNode("div",iHe,[t.createVNode(g,{"is-live":!0,game:s.game,"color-background-home":Z.item.backgroundhome,"color-background-away":Z.item.backgroundaway,"logo-home":Z.item.logohome,"logo-away":Z.item.logoaway,"title-category":s.titleCard,background:Z.item.background,onOnclickPlayVideos:o[1]||(o[1]=r=>m.onclickPlayVideos({data:Z.item,type:1})),matchday:Z.item.match,"season-name":Z.item.seasonname,score:Z.item.score},null,8,["game","color-background-home","color-background-away","logo-home","logo-away","title-category","background","matchday","season-name","score"])])],512),[[t.vShow,s.titleCard=="RESUMEN"&&s.canPlayVideos&&Z.showHighlight||s.titleCard=="GOLES"&&s.canPlayVideos&&Z.showHighlightGoals]])],512)}const sHe=Ki(aHe,[["render",oHe],["__scopeId","data-v-fa5b4721"]]),Mk="/play-icn.svg",XHt="",lHe={name:"TooltipEmpty",props:{data:{type:Object,required:!0}},computed:{showTooltip(){return{visible:this.data.visible}}},methods:{tooltipClick:function(){},closeClick:function(){this.$emit("close")}}};function cHe(e,o,s,z,Z,m){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["back-tooltip",m.showTooltip])},[t.createElementVNode("div",{class:t.normalizeClass(["box-tooltip",m.showTooltip]),onClick:o[1]||(o[1]=(...g)=>m.tooltipClick&&m.tooltipClick(...g))},[t.createElementVNode("span",{role:"button",class:"box-tooltip-close",onClick:o[0]||(o[0]=(...g)=>m.closeClick&&m.closeClick(...g))},"×"),t.renderSlot(e.$slots,"default",{},void 0,!0)],2)],2)}const dHe=Ki(lHe,[["render",cHe],["__scopeId","data-v-5ec23081"]]),$Ht="",uHe=["id"],hHe={class:"game-event__minute"},pHe={class:"game-event__icon"},fHe=["src"],mHe="/images/events/",gHe=Ki({__name:"GameEvent",props:{gameEvent:{type:Object,default:()=>{}}},emits:["click-event"],setup(e,{emit:o}){const s=e,z=o,Z=t.computed(()=>({"--icon-bottom":s.gameEvent.isHomeTeam?"30px":"-5px","--border-color":s.gameEvent.isSelected?"#336dff":"#747c83","--background-color":s.gameEvent.isSelected?"#336dff":"#0d1d29"})),m=t.computed(()=>{let r="";return s.gameEvent.category_id===18?r="icn-tiros-de-esquina.svg":s.gameEvent.category_id===20?r="icn-tiro-a-porteria.svg":s.gameEvent.category_id===10?r="icn-cambio.svg":s.gameEvent.category_id===21?r="icn-falta.svg":s.gameEvent.category_id===27?r="atajada.svg":s.gameEvent.category_id===17?r="fuera-de-lugar.svg":s.gameEvent.category_id===4||s.gameEvent.category_id===13||s.gameEvent.category_id===14||s.gameEvent.category_id===16||s.gameEvent.category_id===6&&s.gameEvent.event_type_id===1||s.gameEvent.category_id===5&&s.gameEvent.event_type_id===1||s.gameEvent.category_id===1&&s.gameEvent.event_type_id===1||s.gameEvent.category_id===2&&s.gameEvent.event_type_id===1||s.gameEvent.category_id===3&&s.gameEvent.event_type_id===1||s.gameEvent.category_id===7&&s.gameEvent.event_type_id===1||s.gameEvent.category_id===12&&s.gameEvent.event_type_id===1?r="gol.svg":s.gameEvent.category_id==30||s.gameEvent.category_id==31||s.gameEvent.category_id==32||s.gameEvent.category_id==33||s.gameEvent.category_id==34||s.gameEvent.category_id==35||s.gameEvent.category_id==36||s.gameEvent.category_id==37||s.gameEvent.category_id==38||s.gameEvent.category_id==39||s.gameEvent.category_id==40?r="var.png":s.gameEvent.category_id===28?r="tiempo-agregado.svg":s.gameEvent.category_id===26?r="jugada-peligrosa.svg":s.gameEvent.category_id===22?r="penal-marcado.svg":s.gameEvent.category_id===15||s.gameEvent.category_id===23?r="penal-fallado.svg":s.gameEvent.category_id===8?r="icn-tarjeta-amarilla.svg":s.gameEvent.category_id===9?r="icn-tarjeta-roja.svg":r="generic.svg",`${mHe}${r}`});function g(){z("click-event",s.gameEvent)}return(r,b)=>(t.openBlock(),t.createElementBlock("div",{id:s.gameEvent.play_id,class:"game-event",onClick:g,style:t.normalizeStyle(Z.value)},[t.createElementVNode("div",hHe,[t.createElementVNode("div",null,t.toDisplayString(e.gameEvent.minute)+"'",1)]),t.createElementVNode("div",pHe,[t.createElementVNode("img",{src:m.value},null,8,fHe)])],12,uHe))}},[["__scopeId","data-v-cb3d6917"]]),QHt="",yHe={class:"events-line"},vHe={class:"events-line__events"},bHe=Ki({__name:"EventsLine",props:{gameEvents:{type:Array,default:()=>[]}},emits:["click-event"],setup(e,{emit:o}){const s=o;function z(Z){s("click-event",Z)}return(Z,m)=>(t.openBlock(),t.createElementBlock("div",yHe,[t.createVNode(t.unref(x2),{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",vHe,[m[0]||(m[0]=t.createElementVNode("div",{class:"events-line__events__line"},null,-1)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.gameEvents,g=>(t.openBlock(),t.createBlock(gHe,{key:g.id,"game-event":g,onClickEvent:z},null,8,["game-event"]))),128))])]),_:1})]))}},[["__scopeId","data-v-f5698f0e"]]),tZt="",xHe={class:"tooltip-data"},_He=["src"],wHe={class:"game-events__team-logo"},kHe=["src"],SHe={class:"game-events__event-info"},CHe={key:0,class:"game-events__event-info__line"},THe={key:1,class:"game-events__event-info__info"},AHe={class:"game-events__event-info__info__player-photo"},EHe={key:0,class:"game-events__event-info__info__player-photo__img"},MHe=["src"],IHe={class:"game-events__event-info__info__event-name"},PHe={class:"game-events__event-info__info__player-name"},LHe={class:"game-events__events"},BHe={class:"game-events__team-logo"},zHe=["src"],DHe={class:"game-events__event-info"},OHe={key:0,class:"game-events__event-info__line"},NHe={key:1,class:"game-events__event-info__info"},FHe={class:"game-events__event-info__info__player-photo"},RHe={key:0,class:"game-events__event-info__info__player-photo__img"},VHe=["src"],jHe={class:"game-events__event-info__info__event-name"},UHe={class:"game-events__event-info__info__player-name"},GHe="https://11rcgkydx3.execute-api.us-east-2.amazonaws.com/prod/games/",HHe=Ki({__name:"GameEvents",props:{game:{type:Object,default:()=>({})},widthScreen:{type:Number,default:0},token:{type:String,default:""},canPlayVideos:{type:Boolean,default:!0},gameEventsIntervalMinutes:{type:Number,default:1}},emits:["play-video"],setup(e,{emit:o}){let s=null,z=0;const Z=kp(),m=e,g=o,r=t.ref([]),b=t.ref(new Map),p=t.ref(""),a=t.ref(null),_=t.ref({visible:!1,link:""}),y=t.ref(new Set),x=t.ref(0),h=t.computed(()=>m.game.is_live||m.game.game_status===0);t.watch(()=>m.game,(A,P)=>{A&&A.gameId!==z?(y.value.clear(),z=A.gameId,d(),i(A.gameId,A.is_live&&A.game_status===4)):A&&A.is_live&&(!P||!P.is_live)?i(A.gameId,!0):A&&!A.is_live&&P.is_live&&d()},{deep:!0,immediate:!0}),t.watch(()=>p.value,(A,P)=>{if(A!==P){const L=b.value.get(P),T=b.value.get(A);if(L&&(L.isSelected=!1),T){if(!T.playerShortName){const[I,M]=T.player_name.split(","),S=I.split(" ");let B="";for(const k of S)if(B+=` ${k}`,k.length>3)break;T.playerShortName=M&&I?`${M.trim().charAt(0)}.${B}`:""}T.isSelected=!0,a.value=T}}});function n(A){s=setInterval(()=>{i(A)},1e3*60*m.gameEventsIntervalMinutes)}async function i(A,P=!1){try{let L=await v(A),T=!1;A!==x.value&&(r.value=[],b.value=new Map,p.value="",y.value.clear(),x.value=A),console.log("events",L);let I=L.filter(M=>{const S=y.value.has(M.play_id);return S||y.value.add(M.play_id),!S});if(I){I=I.reduce((S,B)=>(T=B.game_finished,B.team_id&&(B.isHomeTeam=B.team_id===m.game.homeTeam.team_id,S.push(B),b.value.set(B.play_id,B)),S),[]);const M=[...r.value];l(I).forEach(S=>{h.value?M.unshift(S):M.push(S)}),r.value=h.value?l(M).reverse():l(M)}r.value&&r.value.length&&(h.value||!p.value&&r.value.length)&&(p.value=r.value[0].play_id),P&&!T?n(A):T&&d()}catch(L){console.error(L)}}function d(){s&&(clearInterval(s),s=null)}function l(A){return A.sort((P,L)=>u(P.matchlapse)+Number(P.minute)-(u(L.matchlapse)+Number(L.minute)))}function u(A){let P=0;switch(A){case 1:P=0;break;case 2:P=45;break;case 3:P=90;break;case 4:P=105;break;case 5:P=120;break}return P}async function v(A){try{const P=hd(`${GHe}${A}/timeline`,Z.getters.getProviderId,Z.getters.getIsDevApis),T=(await _d.get(P,{headers:{Authorization:m.token}})).data;return T?T.plays||[]:[]}catch(P){throw new Error(P)}}function w(A){p.value=A.play_id}function C(){m.canPlayVideos&&a.value.play_id&&g("play-video",{categoryId:a.value.main_category_id,playId:a.value.play_id})}function E(){_.value.visible=!1,_.value.link=""}return t.onBeforeUnmount(()=>{d()}),(A,P)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createVNode(dHe,{data:_.value,onClose:E},{default:t.withCtx(()=>[t.createElementVNode("div",xHe,[t.createElementVNode("div",null,[t.createElementVNode("video",{class:"tooltip-video",controls:"",autoplay:"",src:_.value.link,format:"video/mp4"},null,8,_He)])])]),_:1},8,["data"]),t.createElementVNode("div",{class:t.normalizeClass(e.widthScreen>920?"game-events":"game-events__mobile")},[P[2]||(P[2]=t.createElementVNode("div",{class:"game-events__title-left-padding"},null,-1)),P[3]||(P[3]=t.createElementVNode("div",{class:"game-events__title"},"Eventos",-1)),t.createElementVNode("div",wHe,[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,kHe)):t.createCommentVNode("",!0)]),t.createElementVNode("div",SHe,[a.value&&a.value.isHomeTeam?(t.openBlock(),t.createElementBlock("div",CHe)):t.createCommentVNode("",!0),a.value&&a.value.isHomeTeam?(t.openBlock(),t.createElementBlock("div",THe,[t.createElementVNode("div",AHe,[a.value.player_id?(t.openBlock(),t.createElementBlock("div",EHe,[t.createElementVNode("img",{src:`https://golstatsimages.blob.core.windows.net/players-profile/${a.value.player_id}.png`,alt:""},null,8,MHe)])):t.createCommentVNode("",!0)]),t.createElementVNode("div",IHe,t.toDisplayString(a.value.event_type_id===1?a.value.event_type_name:a.value.category_name),1),t.createElementVNode("div",PHe," | "+t.toDisplayString(a.value.playerShortName),1),e.canPlayVideos&&a.value.play_id?(t.openBlock(),t.createElementBlock("div",{key:0,role:"button",class:"game-events__event-info__info__button-play",onClick:C},P[0]||(P[0]=[t.createElementVNode("img",{src:Mk,alt:""},null,-1)]))):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)]),P[4]||(P[4]=t.createElementVNode("div",{class:"game-events__events-padding"},null,-1)),t.createElementVNode("div",LHe,[t.createVNode(bHe,{"game-events":r.value,onClickEvent:w},null,8,["game-events"])]),t.createElementVNode("div",BHe,[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,zHe)):t.createCommentVNode("",!0)]),t.createElementVNode("div",DHe,[a.value&&!a.value.isHomeTeam?(t.openBlock(),t.createElementBlock("div",OHe)):t.createCommentVNode("",!0),a.value&&!a.value.isHomeTeam?(t.openBlock(),t.createElementBlock("div",NHe,[t.createElementVNode("div",FHe,[a.value.player_id?(t.openBlock(),t.createElementBlock("div",RHe,[t.createElementVNode("img",{src:`https://golstatsimages.blob.core.windows.net/players-profile/${a.value.player_id}.png`,alt:""},null,8,VHe)])):t.createCommentVNode("",!0)]),t.createElementVNode("div",jHe,t.toDisplayString(a.value.event_type_id===1?a.value.event_type_name:a.value.category_name),1),t.createElementVNode("div",UHe," | "+t.toDisplayString(a.value.playerShortName),1),e.canPlayVideos&&a.value.play_id?(t.openBlock(),t.createElementBlock("div",{key:0,role:"button",class:"game-events__event-info__info__button-play",onClick:C},P[1]||(P[1]=[t.createElementVNode("img",{src:Mk,alt:""},null,-1)]))):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)])],2)],64))}},[["__scopeId","data-v-dd946b7d"]]),rZt="",ZHe={class:"toggle-buttons__background"},WHe=["onClick"],qHe={key:0,class:"toggle-buttons__button__img"},JHe=["src"],x5=Ki({__name:"ToggleButtons",props:{buttons:{type:Array,required:!0},selectedButtonIndex:{type:Number,default:0},height:{type:String,default:"29px"},width:{type:String,default:"100%"},fontSize:{type:String,default:"12px"},fontFamily:{type:String,default:"Poppins-Medium"},borderRadius:{type:String,default:"8px"},mainBackgroundColor:{type:String,default:"#364448"},mainBorderColor:{type:String,default:"#9AA1A3"},mainBorderWidth:{type:String,default:"0.5px"},activeBorderColor:{type:String,default:"#cbee6b"},activeBorderWidth:{type:String,default:"1px"},activeBackgroundColor:{type:String,default:"#2e3b46"},activeFontColor:{type:String,default:"#FFFFFF"}},emits:["change"],setup(e,{emit:o}){t.useCssVars(r=>({64265112:e.height,df19770a:e.width,"6caf15d1":e.mainBackgroundColor,"2d25df89":e.borderRadius,"21a281f6":e.mainBorderWidth,"208b8393":e.mainBorderColor,94332204:e.fontFamily,"3e48121b":e.fontSize,"37a2dd49":e.activeBorderWidth,"368bdee6":e.activeBorderColor,ecc8e0b8:e.activeBackgroundColor,"5528ac63":e.activeFontColor}));const s=e,z=o,Z=t.ref(s.selectedButtonIndex),m=t.computed(()=>({"--grid-template-columns":`repeat(${s.buttons.length}, 1fr)`}));t.watch(()=>s.selectedButtonIndex,r=>{Z.value=r}),t.watch(Z,(r,b)=>{r!==b&&z("change",{index:r,button:s.buttons[r]})});function g(r){Z.value=r}return(r,b)=>(t.openBlock(),t.createElementBlock("div",ZHe,[t.createElementVNode("div",{class:"toggle-buttons",style:t.normalizeStyle(m.value)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.buttons,(p,a)=>(t.openBlock(),t.createElementBlock("div",{key:`b${a}`,class:t.normalizeClass(["toggle-buttons__button",{active:Z.value===a,right:p.img&&a>0}]),onClick:_=>g(a)},[p.img?(t.openBlock(),t.createElementBlock("div",qHe,[t.createElementVNode("img",{src:p.img,alt:""},null,8,JHe)])):t.createCommentVNode("",!0),t.createElementVNode("div",null,t.toDisplayString(p.text||p),1)],10,WHe))),128))],4)]))}},[["__scopeId","data-v-8c3c29c6"]]),iZt="",oZt="",YHe={class:"tooltip__content"},XHe={key:0,class:"tooltip__content__category"},$He={class:"tooltip__content__player"},KHe={class:"tooltip__content__player__name"},QHe={class:"tooltip__content__player__photo"},eZe=["src"],tZe={class:"tooltip__content__minute"},aZe={key:1,class:"tooltip__content__game"},rZe={class:"tooltip__content__game__round-abbreviation"},nZe={class:"tooltip__content__game__logo"},iZe=["src"],oZe={class:"tooltip__content__game__logo"},sZe=["src"],lZe={key:2,class:"tooltip__content__team"},cZe={class:"tooltip__content__team__logo"},dZe=["src"],uZe=Ki({__name:"TooltipChalkboard",props:{event:{type:Object,default:()=>({})},position:{type:Object,default:()=>({x:"0",y:"0"})}},emits:["close"],setup(e,{emit:o}){const s=e,z=o,Z=t.computed(()=>({"--top":s.position.y,"--left":s.position.x})),m=t.computed(()=>`${s.event.player.player_name} ${s.event.player.player_lastname}`),g=t.computed(()=>{const[b]=s.event.momentOfPlay.split(":");return`${Number(b)}'`});function r(){z("close")}return(b,p)=>(t.openBlock(),t.createElementBlock("div",{class:"tooltip",onClick:r,style:t.normalizeStyle(Z.value)},[t.createElementVNode("div",YHe,[e.event.categoryName?(t.openBlock(),t.createElementBlock("div",XHe,t.toDisplayString(e.event.categoryName),1)):t.createCommentVNode("",!0),t.createElementVNode("div",$He,[t.createElementVNode("div",KHe,t.toDisplayString(m.value),1),t.createElementVNode("div",QHe,[t.createElementVNode("img",{src:e.event.player.photo,alt:""},null,8,eZe)])]),t.createElementVNode("div",tZe,"Minuto: "+t.toDisplayString(g.value),1),e.event.game?(t.openBlock(),t.createElementBlock("div",aZe,[p[0]||(p[0]=t.createElementVNode("div",{class:"tooltip__content__game__name"},"Partido:",-1)),t.createElementVNode("div",rZe,t.toDisplayString(e.event.game.roundAbbreviation),1),t.createElementVNode("div",nZe,[t.createElementVNode("img",{src:e.event.game.homeTeam.logo,alt:""},null,8,iZe)]),p[1]||(p[1]=t.createElementVNode("div",{class:"tooltip__content__game__vs"},"VS",-1)),t.createElementVNode("div",oZe,[t.createElementVNode("img",{src:e.event.game.awayTeam.logo,alt:""},null,8,sZe)])])):(t.openBlock(),t.createElementBlock("div",lZe,[p[2]||(p[2]=t.createElementVNode("div",{class:"tooltip__content__team__name"},"Equipo:",-1)),t.createElementVNode("div",cZe,[t.createElementVNode("img",{src:e.event.team.logo,alt:""},null,8,dZe)])]))])],4))}},[["__scopeId","data-v-b3a94cf2"]]),hZe=["id"],pZe=["fill"],fZe=["id"],mZe=["fill"],gZe=["stroke-dasharray","x1","y1","x2","y2","marker-end"],yZe=["x","y","stroke-width","fill","stroke"],vZe=["x","y"],bZe={__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 o=e,s=t.computed(()=>{const n=[];if(o.eventConnection.hasConnectionPath){const i=o.eventConnection.x1===o.eventConnection.x2&&o.eventConnection.y1===o.eventConnection.y2?1:2;let d=r(o.eventConnection.previousEvent?o.eventConnection.previousEvent.y3:o.eventConnection.y1);const l=b(o.eventConnection.previousEvent?o.eventConnection.previousEvent.x3:o.eventConnection.x1);let u=0,v=0;i===2&&(u=r(o.eventConnection.y2),v=b(o.eventConnection.x2));const w=r(o.eventConnection.y3),C=b(o.eventConnection.x3);i===1?n.push({x1:l,y1:d,x2:C,y2:w}):(n.push({x1:l,y1:d,x2:v,y2:u}),n.push({x1:v,y1:u,x2:C,y2:w}))}return n}),z=t.computed(()=>o.mainEventIdSelected!==0?o.eventConnection.relatedPlayId===o.mainEventIdSelected?1:.1:1),Z=t.computed(()=>o.mainEventIdSelected!==0?o.eventConnection.relatedPlayId===o.mainEventIdSelected:!0),m=t.computed(()=>r(o.eventConnection.previousEvent?o.eventConnection.previousEvent.y3:o.eventConnection.y1)),g=t.computed(()=>b(o.eventConnection.previousEvent?o.eventConnection.previousEvent.x3:o.eventConnection.x1));function r(n){return(1-n)*100}function b(n){return n*100}function p(n){Fu.emit("mouse-over-event",{mouseEvent:n,eventConnection:o.eventConnection,position:{x:g.value,y:m.value}})}let a=null,_=null;function y(n){!a||_!==n.relatedPlayId?(a&&x(),_=n.relatedPlayId,a=setTimeout(()=>{Fu.emit("mouse-click-time-event",n.relatedPlayId),x()},1e3)):(Fu.emit("mouse-double-click-time-event",{categoriesIds:n.categoriesIds,playId:n.relatedPlayId}),x())}function x(){a&&(clearTimeout(a),a=null)}function h(){Fu.emit("mouse-leave-event",{mainEventId:o.eventConnection.relatedPlayId,eventId:o.eventConnection.playId})}return(n,i)=>(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:z.value})},[t.createElementVNode("path",{d:"M0,0 L0,6 L9,3 z",fill:e.color},null,8,pZe)],12,hZe),[[t.vShow,Z.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:z.value})},[t.createElementVNode("circle",{cx:"2",cy:"2",r:"2",fill:e.color},null,8,mZe)],12,fZe),[[t.vShow,Z.value]])]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.value,(d,l)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[d.x1&&d.y1?t.withDirectives((t.openBlock(),t.createElementBlock("line",{key:`${e.eventConnection.playId}-${l}`,style:t.normalizeStyle({stroke:e.color,"stroke-width":2,opacity:z.value}),"stroke-dasharray":l===0&&s.value.length===2?"none":"5,5",x1:`${d.x1}%`,y1:`${d.y1}%`,x2:`${d.x2}%`,y2:`${d.y2}%`,"marker-start":"`url(`#b-${eventConnection.playId}`)`","marker-end":`url(${e.isLastEvent&&l===s.value.length-1?`#a-${e.eventConnection.playId}`:""})`},null,12,gZe)),[[t.vShow,Z.value]]):t.createCommentVNode("",!0)],64))),256)),t.withDirectives(t.createElementVNode("g",{onMouseover:t.withModifiers(p,["stop"]),onMouseleave:t.withModifiers(h,["stop"]),onClick:i[0]||(i[0]=t.withModifiers(d=>y(e.eventConnection),["stop"])),style:t.normalizeStyle({cursor:"pointer",opacity:z.value})},[t.createElementVNode("rect",{x:`${g.value}%`,y:`${m.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:z.value}),rx:"14",ry:"14"},null,12,yZe),t.createElementVNode("text",{x:`${g.value}%`,y:`${m.value}%`,"text-anchor":"middle","dominant-baseline":"middle",dy:"1","font-size":"15",fill:"#fff","font-family":"'Poppins-SemiBold', sans-serif",style:t.normalizeStyle({opacity:z.value})},t.toDisplayString(e.eventConnection.player?e.eventConnection.player.jersey:""),13,vZe)],36),[[t.vShow,Z.value]])],64))}},xZe={__name:"EventConnections",props:{eventConnections:{type:Object,required:!0},mainEventIdSelected:{type:Number,default:0}},setup(e){const o=e,s=t.computed(()=>o.eventConnections.getEventsConnectionsByEventType());return(z,Z)=>(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.value,(m,g)=>(t.openBlock(),t.createBlock(bZe,{key:m.id,color:e.eventConnections.getEventColor(m),"is-last-event":g===s.value.length-1,"event-connection":m,"main-event-id-selected":e.mainEventIdSelected},null,8,["color","is-last-event","event-connection","main-event-id-selected"]))),128))}},lZt="",_Ze={class:"soccer-chalkboard"},wZe={id:"soccerChalkboardField",class:"soccer-chalkboard__field"},kZe=["src"],SZe={viewBox:"0 0 547 340",fill:"none",xmlns:"http://www.w3.org/2000/svg"},CZe=Ki({__name:"SoccerChalkboard",props:{eventsConnections:{type:Array,default:()=>[]},listType:{type:String,default:"events"},playersSelected:{type:Set,default:()=>new Set},teamsSelected:{type:Set,default:()=>new Set},isAssistantZoneVisible:{type:Boolean,default:!1}},emits:["click-play","change-main-event"],setup(e,{expose:o,emit:s}){const z=s,m=Une()?0:1e3;Fu.on("mouse-over-time-event",d=>{x(d),setTimeout(()=>{x(d)},m)}),Fu.on("mouse-click-time-event",d=>{x(d)}),Fu.on("mouse-double-click-time-event",d=>{z("click-play",{categoriesIds:d.categoriesIds,playId:d.playId})}),Fu.on("mouse-leave-time-event",d=>{setTimeout(()=>{p.value==d&&!r.value&&x(0)},m)}),Fu.on("mouse-over-event",d=>{n(d)}),Fu.on("mouse-leave-event",d=>{setTimeout(()=>{d.eventId===a.value&&i()},m)});const g=e,r=t.ref(!1),b=t.ref({}),p=t.ref(0),a=t.ref(0),_=t.ref({x:0,y:0}),y=t.computed(()=>g.isAssistantZoneVisible?"https://golstatsimages.blob.core.windows.net/todoelfut/pizarra.jpg":"https://golstatsimages.blob.core.windows.net/todoelfut/field-green-posesion.jpg");function x(d){p.value=d,z("change-main-event",d)}function h(){r.value=!1}function n(d){var C,E;const l={...d.eventConnection};if([12,55,"35_r","54_r"].includes(l.categoryId)&&((C=l.player)==null?void 0:C.team_id)!==l.teamId){const A=l.gameAux||l.game,P=A.homeTeam.team_id===((E=l.player)==null?void 0:E.team_id)?A.homeTeam:A.awayTeam;l.categoryName="Autogol",l.team=P}const v=170,w=document.getElementById("soccerChalkboardField");if(w){const A=w.getBoundingClientRect(),P=d.position.x/100*A.width+14,L=d.position.y/100*A.height+14,T=P+v>A.width?A.width-v:P,I=L;a.value=d.eventConnection.playId,b.value=l,_.value={x:`${T}px`,y:`${I}px`},r.value=!0}}function i(){r.value=!1}return o({setMainEventIdSelected:x}),(d,l)=>(t.openBlock(),t.createElementBlock("div",_Ze,[t.createElementVNode("div",wZe,[t.createElementVNode("img",{src:y.value,alt:""},null,8,kZe),(t.openBlock(),t.createElementBlock("svg",SZe,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.eventsConnections,(u,v)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[e.listType==="events"&&u.hasTeam(e.teamsSelected)||e.listType==="players"&&u.hasPlayer(e.playersSelected)?(t.openBlock(),t.createBlock(xZe,{key:v,"event-connections":u,"main-event-id-selected":p.value},null,8,["event-connections","main-event-id-selected"])):t.createCommentVNode("",!0)],64))),256))]))]),r.value?(t.openBlock(),t.createBlock(uZe,{key:0,position:_.value,event:b.value,onClose:h},null,8,["position","event"])):t.createCommentVNode("",!0)]))}},[["__scopeId","data-v-4a9d851d"]]),dZt="",TZe={class:"events-timeline"},AZe=["id","onClick","onMouseover","onMouseleave"],EZe=["id"],MZe=["fill"],IZe=["fill","mask"],PZe=["stroke"],LZe=Ki({__name:"EventsTimeLine",props:{eventsConnections:{type:Array,default:()=>[]},listType:{type:String,default:"events"},playersSelected:{type:Set,default:()=>new Set},teamsSelected:{type:Set,default:()=>new Set},mainEventIdSelected:{type:Number,default:0}},setup(e){const o=["0'","45'","90'"],s=e,z=t.computed(()=>s.eventsConnections.reduce((a,_)=>{const y={minute:"0'",left:"0%",color:_.getTeamColor(),fontColor:_.getTeamFontColor(),playId:_.mainPlay.playId,playerId:_.mainPlay.playerId,teamId:_.mainPlay.teamId,relatedPlayId:_.relatedPlayId,categoriesIds:_.categoriesIds},[x]=_.mainPlay.momentOfPlay.split(":"),h=parseInt(x);return h>=90?(y.minute=`${h}'`,y.left="100%"):(y.minute=`${h}'`,y.left=`${h/90*100}%`),a.push(y),a},[]));let Z=null,m=null;function g(a){!Z||m!==a.playId?(Z&&r(),m=a.playId,Z=setTimeout(()=>{Fu.emit("mouse-click-time-event",a.playId),r()},1e3)):(Fu.emit("mouse-double-click-time-event",a),r())}function r(){Z&&(clearTimeout(Z),Z=null)}function b(a){const _=document.getElementById(a);_&&(_.style["z-index"]=1)}function p(a){const _=document.getElementById(a);_&&(_.style["z-index"]="auto")}return(a,_)=>(t.openBlock(),t.createElementBlock("div",TZe,[(t.openBlock(),t.createElementBlock(t.Fragment,null,t.renderList(o,(y,x)=>t.createElementVNode("div",{class:"events-timeline__game-time",key:x},t.toDisplayString(y),1)),64)),_[1]||(_[1]=t.createElementVNode("div",{class:"events-timeline__back-line"},null,-1)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(z.value,(y,x)=>(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",{id:`svg-${y.playId}`,key:x,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",opacity:e.mainEventIdSelected?e.mainEventIdSelected===y.playId?"1":"0.2":"1"}),onClick:h=>g(y),onMouseover:h=>b(`svg-${y.playId}`),onMouseleave:h=>p(`svg-${y.playId}`)},[t.createElementVNode("mask",{id:y.playId.toString(),fill:"white"},_[0]||(_[0]=[t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.77234 0.45166C2.11548 0.45166 0.772339 1.79481 0.772339 3.45166V14.4517C0.772339 16.1085 2.11548 17.4517 3.77234 17.4517H7.96294L10.2723 21.4517L12.5817 17.4517H16.7723C18.4292 17.4517 19.7723 16.1085 19.7723 14.4517V3.45166C19.7723 1.79481 18.4292 0.45166 16.7723 0.45166H3.77234Z"},null,-1)]),8,EZe),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,MZe),t.createElementVNode("path",{d:"M7.96294 17.4517L8.82896 16.9517L8.54029 16.4517H7.96294V17.4517ZM10.2723 21.4517L9.40631 21.9517L10.2723 23.4517L11.1384 21.9517L10.2723 21.4517ZM12.5817 17.4517V16.4517H12.0044L11.7157 16.9517L12.5817 17.4517ZM1.77234 3.45166C1.77234 2.34709 2.66777 1.45166 3.77234 1.45166V-0.54834C1.5632 -0.54834 -0.227661 1.24252 -0.227661 3.45166H1.77234ZM1.77234 14.4517V3.45166H-0.227661V14.4517H1.77234ZM3.77234 16.4517C2.66777 16.4517 1.77234 15.5562 1.77234 14.4517H-0.227661C-0.227661 16.6608 1.5632 18.4517 3.77234 18.4517V16.4517ZM7.96294 16.4517H3.77234V18.4517H7.96294V16.4517ZM7.09691 17.9517L9.40631 21.9517L11.1384 20.9517L8.82896 16.9517L7.09691 17.9517ZM11.1384 21.9517L13.4478 17.9517L11.7157 16.9517L9.40631 20.9517L11.1384 21.9517ZM16.7723 16.4517H12.5817V18.4517H16.7723V16.4517ZM18.7723 14.4517C18.7723 15.5562 17.8769 16.4517 16.7723 16.4517V18.4517C18.9815 18.4517 20.7723 16.6608 20.7723 14.4517H18.7723ZM18.7723 3.45166V14.4517H20.7723V3.45166H18.7723ZM16.7723 1.45166C17.8769 1.45166 18.7723 2.34709 18.7723 3.45166H20.7723C20.7723 1.24252 18.9815 -0.54834 16.7723 -0.54834V1.45166ZM3.77234 1.45166H16.7723V-0.54834H3.77234V1.45166Z",fill:e.mainEventIdSelected&&e.mainEventIdSelected===y.playId?"white":"#172531",mask:`url(#${y.playId})`},null,8,IZe),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,PZe)])],44,AZe)):t.createCommentVNode("",!0)],64))),256))]))}},[["__scopeId","data-v-057ea4de"]]),jd={All:1,YEAR:2,AGE_RANGE:3,NATIONALITY:4,POSITION:5,ELIGIBILITY:6},BZe=(e,o)=>{const s=e.__vccOpts||e;for(const[z,Z]of o)s[z]=Z;return s},zZe={key:1},DZe={width:"10",height:"8",viewBox:"0 0 10 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},OZe=["fill"],NZe={key:0,class:"checkbox__teams"},FZe={class:"checkbox__teams__logo"},RZe=["src"],VZe={class:"checkbox__teams__logo"},jZe=["src"],UZe={__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:o}){const s=e;t.useCssVars(p=>({"7bd9d47b":e.width,"34dc7ddc":e.height}));const z=t.ref(!1),Z=t.computed(()=>{const p={color:s.boxValueColor,"font-family":s.fontFamily,height:s.boxWidthAndHeight,width:s.boxWidthAndHeight,minWidth:s.boxWidthAndHeight,"border-radius":s.boxBorderRadius,"margin-top":s.boxMarginTop};return z.value?(p["background-color"]=s.boxBackgroundColor,p.border=`solid ${s.boxBorderWidth} ${s.boxBackgroundColor}`):p.border=`solid ${s.boxBorderWidth} ${s.boxBorderColor}`,p}),m=t.computed(()=>({"font-family":s.boxValueFontFamily,"font-size":s.boxValueFontSize,color:s.boxValueColor,"line-height":1})),g=t.computed(()=>{const p={color:s.labelColor,"font-family":s.fontFamily,"font-size":s.labelFontSize,"white-space":s.labelWhiteSpace,"text-align":s.boxPosition==="top"||s.boxPosition==="bottom"?"center":s.boxPosition};return(s.boxPosition==="left"||s.boxPosition==="right")&&(p[`margin-${s.boxPosition}`]=s.isBoxOnly?"0":s.teamsIds?"8px":"10px"),p});t.watch(()=>s.modelValue,p=>{p!==z.value&&(z.value=p)},{immediate:!0});function r(){s.avoidInteraction||!z.value&&s.avoidToCheck||(z.value=!z.value,o("update:modelValue",z.value))}function b(p){return`${{}.TEAM_LOGOS_URL||"https://golstatsimages.blob.core.windows.net/teams-80/"}${p}.png`}return(p,a)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["checkbox",`box-${e.boxPosition}`]),onClick:r},[t.createElementVNode("div",{class:"checkbox__box",style:t.normalizeStyle(Z.value)},[z.value?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[s.boxValue?(t.openBlock(),t.createElementBlock("div",{key:0,class:"checkbox__box__value",style:t.normalizeStyle(m.value)},t.toDisplayString(e.boxValue),5)):(t.openBlock(),t.createElementBlock("div",zZe,[(t.openBlock(),t.createElementBlock("svg",DZe,[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,OZe)]))]))],64)):t.createCommentVNode("",!0)],4),e.teamsIds&&e.teamsIds.length?(t.openBlock(),t.createElementBlock("div",NZe,[t.createElementVNode("div",FZe,[t.createElementVNode("img",{src:b(e.teamsIds[0]),alt:""},null,8,RZe)]),t.createElementVNode("div",VZe,[t.createElementVNode("img",{src:b(e.teamsIds[1]),alt:""},null,8,jZe)])])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"checkbox__label",style:t.normalizeStyle(g.value)},t.toDisplayString(e.label),5)],2))}},Zl=BZe(UZe,[["__scopeId","data-v-b6f124d8"]]),ic=(e,o)=>{const s=e.__vccOpts||e;for(const[z,Z]of o)s[z]=Z;return s},GZe={class:"container"},HZe={key:0,width:"11",height:"2",viewBox:"0 0 11 2",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ZZe=["fill"],WZe={key:1,width:"11",height:"11",viewBox:"0 0 11 11",fill:"none",xmlns:"http://www.w3.org/2000/svg"},qZe=["fill"],JZe={__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(o=>({"2c438f73":e.width,"425f651a":e.height})),(o,s)=>(t.openBlock(),t.createElementBlock("div",GZe,[e.isExpanded?(t.openBlock(),t.createElementBlock("svg",HZe,[t.createElementVNode("rect",{width:"11",height:"1.7",fill:e.collapseIconColor},null,8,ZZe)])):(t.openBlock(),t.createElementBlock("svg",WZe,[t.createElementVNode("path",{d:"M11 6.28571H6.28571V11H4.71429V6.28571H0V4.71429H4.71429V0H6.28571V4.71429H11V6.28571Z",fill:e.expandIconColor},null,8,qZe)]))]))}},Q1=ic(JZe,[["__scopeId","data-v-e633864b"]]),hv=e=>(t.pushScopeId("data-v-9f942989"),e=e(),t.popScopeId(),e),YZe={key:0,class:"productivity__body__offensive"},XZe={class:"productivity__body__title"},$Ze={class:"productivity__body__title__info"},KZe={class:"number-of-categories"},QZe={class:"productivity__body__categories"},eWe={key:1,class:"productivity__body__defensive-possession"},tWe={key:0,class:"block"},aWe={class:"productivity__body__title"},rWe={class:"productivity__body__title__info"},nWe={class:"number-of-categories"},iWe={class:"productivity__body__categories"},oWe={key:1,class:"block"},sWe={class:"productivity__body__title"},lWe={class:"productivity__body__title__info"},cWe={class:"number-of-categories"},dWe={class:"productivity__body__categories"},uWe=["onClick"],hWe=hv(()=>t.createElementVNode("svg",{width:"11",height:"12",viewBox:"0 0 11 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M7.50558 0C6.78112 0 6.10558 0.475441 5.89478 1.14401L1.21987 1.14286C0.904267 1.14286 0.648438 1.39886 0.648438 1.71429C0.648438 2.02972 0.904267 2.28572 1.21987 2.28572L5.89478 2.28516C6.15083 2.98516 6.78112 3.42858 7.50558 3.42858C8.23004 3.42858 8.86678 2.98402 9.1273 2.28059L10.3627 2.28572C10.6783 2.28572 10.9342 2.02972 10.9342 1.71429C10.9342 1.39886 10.6783 1.14286 10.3627 1.14286H9.12244C8.8473 0.446287 8.23004 0 7.50558 0ZM7.50558 1.14286C7.82118 1.14286 8.07701 1.39886 8.07701 1.71429C8.07701 2.02972 7.82118 2.28572 7.50558 2.28572C7.18998 2.28572 6.93415 2.02972 6.93415 1.71429C6.93415 1.39886 7.18998 1.14286 7.50558 1.14286ZM4.07701 4.28572C3.32387 4.28572 2.69347 4.7543 2.4633 5.42971C2.38295 5.43485 1.21987 5.42856 1.21987 5.42856C0.904267 5.42856 0.648438 5.68456 0.648438 5.99999C0.648438 6.31542 0.904267 6.57142 1.21987 6.57142C1.21987 6.57142 2.39267 6.55942 2.46575 6.56685C2.69593 7.24228 3.32387 7.71428 4.07701 7.71428C4.80146 7.71428 5.42226 7.27028 5.69381 6.57314L10.3627 6.57142C10.6783 6.57142 10.9342 6.31542 10.9342 5.99999C10.9342 5.68456 10.6783 5.42856 10.3627 5.42856L5.69083 5.42348C5.44038 4.74174 4.80146 4.28572 4.07701 4.28572ZM4.07701 5.42856C4.39261 5.42856 4.64844 5.68456 4.64844 5.99999C4.64844 6.31542 4.39261 6.57142 4.07701 6.57142C3.76141 6.57142 3.50558 6.31542 3.50558 5.99999C3.50558 5.68456 3.76141 5.42856 4.07701 5.42856ZM7.50558 8.57142C6.78112 8.57142 6.11844 9.04857 5.89438 9.70857L1.21987 9.71428C0.904267 9.71428 0.648438 9.97028 0.648438 10.2857C0.648438 10.6011 0.904267 10.8571 1.21987 10.8571L5.88592 10.8577C6.12301 11.5349 6.78112 12 7.50558 12C8.23004 12 8.85467 11.5469 9.12987 10.8577L10.3627 10.8571C10.6783 10.8571 10.9342 10.6011 10.9342 10.2857C10.9342 9.97028 10.6783 9.71428 10.3627 9.71428L9.12467 9.71091C8.87798 9.03491 8.23004 8.57142 7.50558 8.57142ZM7.50558 9.71428C7.82118 9.71428 8.07701 9.97028 8.07701 10.2857C8.07701 10.6011 7.82118 10.8571 7.50558 10.8571C7.18998 10.8571 6.93415 10.6011 6.93415 10.2857C6.93415 9.97028 7.18998 9.71428 7.50558 9.71428Z",fill:"white"})],-1)),pWe=[hWe],fWe={key:0,class:"productivity__footer"},mWe={class:"productivity__footer__offenses"},gWe=hv(()=>t.createElementVNode("div",{class:"productivity__footer__offenses__title"}," ¿Debemos quitarle puntos a jugadores que hayan cometido las siguientes infracciones? ",-1)),yWe={class:"productivity__footer__offenses__table"},vWe=hv(()=>t.createElementVNode("div",{class:"productivity__footer__offenses__table__row"},[t.createElementVNode("div"),t.createElementVNode("div",null,"Sí"),t.createElementVNode("div",null,"No")],-1)),bWe={class:"productivity__footer__offenses__table__row has-bottom-border has-padding"},xWe=hv(()=>t.createElementVNode("div",{class:"productivity__footer__offenses__table__row__text"},"Faltas cometidas",-1)),_We={class:"productivity__footer__offenses__table__row has-bottom-border has-padding"},wWe=hv(()=>t.createElementVNode("div",{class:"productivity__footer__offenses__table__row__text"},"Tarjetas amarillas",-1)),kWe={class:"productivity__footer__offenses__table__row has-padding"},SWe=hv(()=>t.createElementVNode("div",{class:"productivity__footer__offenses__table__row__text"},"Tarjetas rojas",-1)),CWe={__name:"TemplateProductivity",props:{componentWidth:{type:Number,default:0},productivityCategories:{type:Object,required:!0},numberOfCategoriesSelected:{type:Number,default:0},areMaxCategoriesReached:{type:Boolean,default:!1},areMinCategoriesReached:{type:Boolean,default:!1},isExpansionMode:{type:Boolean,default:!1},fontFamily:{type:String,default:"'Poppins-Regular'"},isFromTemplates:{type:Boolean,default:!1},isForTemplateForm:{type:Boolean,default:!1},areProductivityButtonsVisible:{type:Boolean,default:!0},areOffensesConditionsVisible:{type:Boolean,default:!0}},emits:["update:offensesConditions","click-parameters"],setup(e,{emit:o}){const s=e,z=t.ref(!1),Z=t.ref(!1),m=t.ref(!1),g=t.ref({areYellowCardsSelected:!1,areRedCardsSelected:!1,areFoulsCommittedSelected:!1}),r=t.computed(()=>Array.isArray(s.productivityCategories)),b=t.computed(()=>({"--template-columns":s.isExpansionMode||r.value||!s.productivityCategories.offensive||!s.productivityCategories.defensive&&!s.productivityCategories.possession?"1fr":s.isForTemplateForm?"30% 1fr":"1fr 1fr","--flex-direction-defensive-possession":s.isForTemplateForm?"row-reverse":"column","--gap-defensive-possession":s.isForTemplateForm?"32px":"0","--width-block":s.isForTemplateForm?"unset":"100%"})),p=t.computed(()=>{var i;return(i=s.productivityCategories)==null?void 0:i.offensive.categories.reduce((d,l)=>(l.isSelected&&d++,d),0)}),a=t.computed(()=>{var i;return(i=s.productivityCategories)==null?void 0:i.defensive.categories.reduce((d,l)=>(l.isSelected&&d++,d),0)}),_=t.computed(()=>{var i;return(i=s.productivityCategories)==null?void 0:i.possession.categories.reduce((d,l)=>(l.isSelected&&d++,d),0)}),y=t.computed(()=>s.isFromTemplates||s.isForTemplateForm);t.watch(()=>s.productivityCategories,i=>{i.offensesConditions&&(g.value.areYellowCardsSelected=i.offensesConditions.areYellowCardsSelected,g.value.areRedCardsSelected=i.offensesConditions.areRedCardsSelected,g.value.areFoulsCommittedSelected=i.offensesConditions.areFoulsCommittedSelected)},{deep:!0,immediate:!0}),t.watch(g,i=>{o("update:offensesConditions",i)},{deep:!0,immediate:!0});function x(i,d){d.isSelected=i,setTimeout(()=>{d.priority=s.numberOfCategoriesSelected},10)}function h(i){o("click-parameters",i)}function n(i){i==="offensive"?z.value=!z.value:i==="defensive"?Z.value=!Z.value:i==="possession"&&(m.value=!m.value)}return(i,d)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["productivity",{"is-array":r.value}])},[t.createElementVNode("div",{class:"productivity__body",style:t.normalizeStyle(b.value)},[r.value?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(e.productivityCategories,l=>(t.openBlock(),t.createElementBlock("div",{key:l.id,class:"productivity__checkbox"},[t.createVNode(t.unref(Zl),{label:l.name,fontFamily:e.fontFamily,"model-value":l.isSelected,"avoid-interaction":e.areMinCategoriesReached&&l.isSelected,"avoid-to-check":e.areMaxCategoriesReached,"box-value":y.value?null:l.priority||0,"onUpdate:modelValue":u=>x(u,l)},null,8,["label","fontFamily","model-value","avoid-interaction","avoid-to-check","box-value","onUpdate:modelValue"])]))),128)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[e.productivityCategories.offensive?(t.openBlock(),t.createElementBlock("div",YZe,[t.createElementVNode("div",XZe,[t.createElementVNode("div",$Ze,[t.createElementVNode("span",null,t.toDisplayString(e.productivityCategories.offensive.title),1),t.createElementVNode("span",KZe,"("+t.toDisplayString(p.value)+")",1)]),t.createElementVNode("div",{class:"productivity__body__title__expand-button",onClick:d[0]||(d[0]=l=>n("offensive"))},[t.withDirectives(t.createVNode(Q1,{"is-expanded":z.value},null,8,["is-expanded"]),[[t.vShow,e.isExpansionMode]])])]),t.withDirectives(t.createElementVNode("div",QZe,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.productivityCategories.offensive.categories,l=>(t.openBlock(),t.createElementBlock("div",{key:l.id,class:"productivity__checkbox"},[t.createVNode(t.unref(Zl),{label:l.name,fontFamily:e.fontFamily,"model-value":l.isSelected,"avoid-to-check":e.areMaxCategoriesReached,"avoid-interaction":e.areMinCategoriesReached&&l.isSelected,"box-value":y.value?null:l.priority||0,"onUpdate:modelValue":u=>x(u,l)},null,8,["label","fontFamily","model-value","avoid-to-check","avoid-interaction","box-value","onUpdate:modelValue"])]))),128))],512),[[t.vShow,!e.isExpansionMode||z.value]])])):t.createCommentVNode("",!0),e.productivityCategories.defensive||e.productivityCategories.possession?(t.openBlock(),t.createElementBlock("div",eWe,[e.productivityCategories.defensive?(t.openBlock(),t.createElementBlock("div",tWe,[t.createElementVNode("div",aWe,[t.createElementVNode("div",rWe,[t.createElementVNode("span",null,t.toDisplayString(e.productivityCategories.defensive.title),1),t.createElementVNode("span",nWe,"("+t.toDisplayString(a.value)+")",1)]),t.createElementVNode("div",{class:"productivity__body__title__expand-button",onClick:d[1]||(d[1]=l=>n("defensive"))},[t.withDirectives(t.createVNode(Q1,{"is-expanded":Z.value},null,8,["is-expanded"]),[[t.vShow,e.isExpansionMode]])])]),t.withDirectives(t.createElementVNode("div",iWe,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.productivityCategories.defensive.categories,l=>(t.openBlock(),t.createElementBlock("div",{key:l.id,class:"productivity__checkbox"},[t.createVNode(t.unref(Zl),{label:l.name,fontFamily:e.fontFamily,"model-value":l.isSelected,"avoid-to-check":e.areMaxCategoriesReached,"avoid-interaction":e.areMinCategoriesReached&&l.isSelected,"box-value":y.value?null:l.priority||0,"onUpdate:modelValue":u=>x(u,l)},null,8,["label","fontFamily","model-value","avoid-to-check","avoid-interaction","box-value","onUpdate:modelValue"])]))),128))],512),[[t.vShow,!e.isExpansionMode||Z.value]])])):t.createCommentVNode("",!0),e.productivityCategories.possession?(t.openBlock(),t.createElementBlock("div",oWe,[t.createElementVNode("div",sWe,[t.createElementVNode("div",lWe,[t.createElementVNode("span",null,t.toDisplayString(e.productivityCategories.possession.title),1),t.createElementVNode("span",cWe,"("+t.toDisplayString(_.value)+")",1)]),t.createElementVNode("div",{class:"productivity__body__title__expand-button",onClick:d[2]||(d[2]=l=>n("possession"))},[t.withDirectives(t.createVNode(Q1,{"is-expanded":m.value},null,8,["is-expanded"]),[[t.vShow,e.isExpansionMode]])])]),t.withDirectives(t.createElementVNode("div",dWe,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.productivityCategories.possession.categories,l=>(t.openBlock(),t.createElementBlock("div",{key:l.id,class:"productivity__checkbox"},[t.createVNode(t.unref(Zl),{label:l.name,fontFamily:e.fontFamily,"model-value":l.isSelected,"avoid-to-check":e.areMaxCategoriesReached,"avoid-interaction":e.areMinCategoriesReached&&l.isSelected,"box-value":y.value?null:l.priority||0,"onUpdate:modelValue":u=>x(u,l)},null,8,["label","fontFamily","model-value","avoid-to-check","avoid-interaction","box-value","onUpdate:modelValue"]),l.parameters&&e.areProductivityButtonsVisible?(t.openBlock(),t.createElementBlock("div",{key:0,class:"options",role:"button",onClick:u=>h(l)},pWe,8,uWe)):t.createCommentVNode("",!0)]))),128))],512),[[t.vShow,!e.isExpansionMode||m.value]])])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)],64))],4),!y.value&&e.productivityCategories.offensesConditions&&e.areOffensesConditionsVisible?(t.openBlock(),t.createElementBlock("div",fWe,[t.createElementVNode("div",mWe,[gWe,t.createElementVNode("div",yWe,[vWe,t.createElementVNode("div",bWe,[xWe,t.createElementVNode("div",null,[t.createVNode(t.unref(Zl),{"model-value":g.value.areFoulsCommittedSelected,"avoid-interaction":g.value.areFoulsCommittedSelected,"is-box-only":"","onUpdate:modelValue":d[3]||(d[3]=l=>g.value.areFoulsCommittedSelected=l)},null,8,["model-value","avoid-interaction"])]),t.createElementVNode("div",null,[t.createVNode(t.unref(Zl),{"model-value":!g.value.areFoulsCommittedSelected,"avoid-interaction":!g.value.areFoulsCommittedSelected,"is-box-only":"","onUpdate:modelValue":d[4]||(d[4]=l=>g.value.areFoulsCommittedSelected=!l)},null,8,["model-value","avoid-interaction"])])]),t.createElementVNode("div",_We,[wWe,t.createElementVNode("div",null,[t.createVNode(t.unref(Zl),{"model-value":g.value.areYellowCardsSelected,"avoid-interaction":g.value.areYellowCardsSelected,"is-box-only":"","onUpdate:modelValue":d[5]||(d[5]=l=>g.value.areYellowCardsSelected=l)},null,8,["model-value","avoid-interaction"])]),t.createElementVNode("div",null,[t.createVNode(t.unref(Zl),{"model-value":!g.value.areYellowCardsSelected,"avoid-interaction":!g.value.areYellowCardsSelected,"is-box-only":"","onUpdate:modelValue":d[6]||(d[6]=l=>g.value.areYellowCardsSelected=!l)},null,8,["model-value","avoid-interaction"])])]),t.createElementVNode("div",kWe,[SWe,t.createElementVNode("div",null,[t.createVNode(t.unref(Zl),{"model-value":g.value.areRedCardsSelected,"avoid-interaction":g.value.areRedCardsSelected,"is-box-only":"","onUpdate:modelValue":d[7]||(d[7]=l=>g.value.areRedCardsSelected=l)},null,8,["model-value","avoid-interaction"])]),t.createElementVNode("div",null,[t.createVNode(t.unref(Zl),{"model-value":!g.value.areRedCardsSelected,"avoid-interaction":!g.value.areRedCardsSelected,"is-box-only":"","onUpdate:modelValue":d[8]||(d[8]=l=>g.value.areRedCardsSelected=!l)},null,8,["model-value","avoid-interaction"])])])])])])):t.createCommentVNode("",!0)],2))}},TWe=ic(CWe,[["__scopeId","data-v-9f942989"]]),b1=e=>(t.pushScopeId("data-v-e2ded643"),e=e(),t.popScopeId(),e),AWe={class:"details__header"},EWe=b1(()=>t.createElementVNode("div",{class:"details__header__title"},"Jugando como",-1)),MWe={class:"details__header__checkbox"},IWe={class:"details__body"},PWe={class:"details__body__playing-as"},LWe=["onClick"],BWe={class:"details__header"},zWe=b1(()=>t.createElementVNode("div",{class:"details__header__title"},[t.createTextVNode(" En: "),t.createElementVNode("span",{class:"details__header__title-sm"},"(Elige el lapso de tiempo)")],-1)),DWe={class:"details__header__checkbox"},OWe={class:"details__body"},NWe=b1(()=>t.createElementVNode("div",{class:"details__body__title"},"1er tiempo",-1)),FWe={class:"details__body__game-section"},RWe=["onClick"],VWe={class:"details__body"},jWe=b1(()=>t.createElementVNode("div",{class:"details__body__title"},"2do tiempo",-1)),UWe={class:"details__body__game-section"},GWe=["onClick"],HWe={key:0,class:"details_body"},ZWe=b1(()=>t.createElementVNode("div",{class:"details__body__title"},"Tipo de estadística",-1)),WWe={class:"radios"},qWe={class:"radio-input"},JWe={class:"radio-input__radio"},YWe=b1(()=>t.createElementVNode("label",{for:"total"},"Totales",-1)),XWe={class:"radio-input"},$We={class:"radio-input__radio"},KWe=b1(()=>t.createElementVNode("label",{for:"average"},"Promedio por partido",-1)),QWe={class:"radio-input"},eqe={class:"radio-input__radio"},tqe=b1(()=>t.createElementVNode("label",{for:"every"},"Cada 90 mins.",-1)),aqe={__name:"TemplateDetails",props:{isPlayingAsHidden:{type:Boolean,default:!1},playingAs:{type:Array,default:()=>[{name:"Local",isSelected:!0},{name:"Visitante",isSelected:!0}]},gameSections:{type:Array,default:()=>[{text:"0-15",value:1,isSelected:!0},{text:"16-30",value:2,isSelected:!0},{text:"31-45",value:3,isSelected:!0},{text:"46-60",value:4,isSelected:!0},{text:"61-75",value:5,isSelected:!0},{text:"76-90",value:6,isSelected:!0}]},statisticType:{type:String,default:"average"},isStatisticTypeVisible:{type:Boolean,default:!1},fontFamily:{type:String,default:"'Poppins-Regular'"},buttonsBackgroundColor:{type:String,default:"rgba(255, 255, 255, 0)"},buttonsBackgroundColorActive:{type:String,default:"rgba(203, 238, 107, 0.05)"},buttonsTextColor:{type:String,default:"rgba(255, 255, 255, 0.8)"},buttonsTextColorActive:{type:String,default:"rgba(255, 255, 255, 1)"},buttonsBorderColor:{type:String,default:"#8ea2ab"},buttonsBorderColorActive:{type:String,default:"#cbee6b"},buttonsBorderWidth:{type:String,default:"0.8px"},buttonsBorderWidthActive:{type:String,default:"1px"},buttonsBorderRadius:{type:String,default:"4px"}},emits:["change-statistic-type"],setup(e,{emit:o}){const s=e;t.useCssVars(y=>({"1ae8ae49":e.buttonsBackgroundColor,"51b78caa":e.buttonsTextColor,"30a9d324":e.buttonsBorderWidth,"32d7cfea":e.buttonsBorderColor,"53697eaf":e.buttonsBackgroundColorActive,"6a565050":e.buttonsTextColorActive,34047714:e.buttonsBorderWidthActive,"10c9e21e":e.buttonsBorderColorActive}));const z=t.ref("");t.watch(()=>s.statisticType,y=>{z.value=y},{immediate:!0}),t.watch(()=>z.value,y=>{s.statisticType=y,o("change-statistic-type",y)});const Z=t.computed(()=>s.playingAs.every(y=>y.isSelected)),m=t.computed(()=>s.gameSections.every(y=>y.isSelected)),g=t.computed(()=>s.gameSections.reduce((y,x)=>(x.value<=3?y.firstHalf.push(x):y.secondHalf.push(x),y),{firstHalf:[],secondHalf:[]})),r=t.computed(()=>({"--border-radius-first-button":`${s.buttonsBorderRadius} 0 0 ${s.buttonsBorderRadius}`,"--border-radius-last-button":`0 ${s.buttonsBorderRadius} ${s.buttonsBorderRadius} 0`}));function b(y){y?s.playingAs.forEach(x=>{x.isSelected=!0}):s.playingAs.forEach((x,h)=>{x.isSelected=h===0})}function p(y){s.playingAs.filter(x=>x.isSelected).length===1&&y.isSelected||(y.isSelected=!y.isSelected)}function a(y){s.gameSections.filter(x=>x.isSelected).length===1&&y.isSelected||(y.isSelected=!y.isSelected)}function _(y){y?s.gameSections.forEach(x=>{x.isSelected=!0}):s.gameSections.forEach((x,h)=>{x.isSelected=h===0})}return(y,x)=>(t.openBlock(),t.createElementBlock("div",{class:"details",style:t.normalizeStyle(r.value)},[t.withDirectives(t.createElementVNode("div",AWe,[EWe,t.createElementVNode("div",MWe,[t.createVNode(t.unref(Zl),{label:"Todos",fontFamily:e.fontFamily,"model-value":Z.value,"onUpdate:modelValue":b},null,8,["fontFamily","model-value"])])],512),[[t.vShow,!e.isPlayingAsHidden]]),t.withDirectives(t.createElementVNode("div",IWe,[t.createElementVNode("div",PWe,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.playingAs,(h,n)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${n}`,class:t.normalizeClass(["details__body__button",{active:h.isSelected}]),onClick:i=>p(h)},t.toDisplayString(h.name),11,LWe))),128))])],512),[[t.vShow,!e.isPlayingAsHidden]]),t.createElementVNode("div",BWe,[zWe,t.createElementVNode("div",DWe,[t.createVNode(t.unref(Zl),{label:"Todos",fontFamily:e.fontFamily,"model-value":m.value,"onUpdate:modelValue":_},null,8,["fontFamily","model-value"])])]),t.createElementVNode("div",OWe,[NWe,t.createElementVNode("div",FWe,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(g.value.firstHalf,(h,n)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${n}`,class:t.normalizeClass(["details__body__button",{active:h.isSelected}]),onClick:i=>a(h)},t.toDisplayString(h.text),11,RWe))),128))])]),t.createElementVNode("div",VWe,[jWe,t.createElementVNode("div",UWe,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(g.value.secondHalf,(h,n)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${n}`,class:t.normalizeClass(["details__body__button",{active:h.isSelected}]),onClick:i=>a(h)},t.toDisplayString(h.text),11,GWe))),128))])]),e.isStatisticTypeVisible?(t.openBlock(),t.createElementBlock("div",HWe,[ZWe,t.createElementVNode("div",WWe,[t.createElementVNode("div",qWe,[t.createElementVNode("div",JWe,[t.withDirectives(t.createElementVNode("input",{"onUpdate:modelValue":x[0]||(x[0]=h=>z.value=h),type:"radio",id:"total",value:"total",name:"statistic"},null,512),[[t.vModelRadio,z.value]]),YWe])]),t.createElementVNode("div",XWe,[t.createElementVNode("div",$We,[t.withDirectives(t.createElementVNode("input",{"onUpdate:modelValue":x[1]||(x[1]=h=>z.value=h),type:"radio",id:"average",value:"average",name:"statistic"},null,512),[[t.vModelRadio,z.value]]),KWe])]),t.createElementVNode("div",QWe,[t.createElementVNode("div",eqe,[t.withDirectives(t.createElementVNode("input",{"onUpdate:modelValue":x[2]||(x[2]=h=>z.value=h),type:"radio",id:"every",value:"every90",name:"statistic"},null,512),[[t.vModelRadio,z.value]]),tqe])])])])):t.createCommentVNode("",!0)],4))}},rqe=ic(aqe,[["__scopeId","data-v-e2ded643"]]),nqe={class:"scroll-container"},iqe={__name:"ScrollContainer",props:{width:{type:String,default:"100%"},height:{type:String,default:"100%"}},setup(e){return t.useCssVars(o=>({fc5d629e:e.height,"8a9ad208":e.width})),(o,s)=>(t.openBlock(),t.createElementBlock("div",nqe,[t.renderSlot(o.$slots,"default",{},void 0,!0)]))}},pv=ic(iqe,[["__scopeId","data-v-9f29c69f"]]),oqe={class:"tournaments"},sqe={key:0,class:"tournaments__tournament"},lqe={__name:"TemplateTournaments",props:{tournamentsUrl:{type:String,default:""},tournaments:{type:Array,default:()=>[]},fontFamily:{type:String,default:"'Poppins-Regular'"},isOneTournamentOnly:{type:Boolean,default:!1},token:{type:String,default:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"}},emits:["change-filters-selected","update:filters"],setup(e,{emit:o}){const s=e,z=t.ref(!1),Z=t.ref([]),m=t.computed(()=>g.value.filter(a=>a.isSelected).length),g=t.computed(()=>s.tournamentsUrl?Z.value:s.tournaments);async function r(){if(s.tournamentsUrl)try{const a=await(await fetch(s.tournamentsUrl,{headers:{Authorization:s.token}})).json();Z.value=a.map(_=>({..._.tournament,seasons:_.seasons,isSelected:!0}))}catch(a){console.error("Error fetching tournaments:",a)}}t.watch(()=>s.tournamentsUrl,()=>{r()},{immediate:!0}),t.watch(()=>s.token,()=>{r()}),t.watch(()=>g.value,a=>{const _=a.filter(y=>y.isSelected);z.value=_.length===a.length,o("change-filters-selected",_.length),o("update:filters",g.value)},{immediate:!0,deep:!0});function b(a){g.value.forEach((_,y)=>{_.isSelected=a||(y!==0?a:!0)})}function p(a,_){s.isOneTournamentOnly&&s.tournaments.forEach(y=>{y.isSelected=!1}),_.isSelected=a}return(a,_)=>(t.openBlock(),t.createElementBlock("div",oqe,[t.createVNode(pv,{height:"200px"},{default:t.withCtx(()=>[e.isOneTournamentOnly?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",sqe,[t.createVNode(t.unref(Zl),{"model-value":z.value,label:"Todas las ligas",fontFamily:e.fontFamily,width:"100%","onUpdate:modelValue":b},null,8,["model-value","fontFamily"])])),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(g.value,y=>(t.openBlock(),t.createElementBlock("div",{key:y.id||y._id,class:"tournaments__tournament"},[t.createVNode(t.unref(Zl),{"model-value":y.isSelected,label:y.name,fontFamily:e.fontFamily,width:"100%","avoid-interaction":m.value===1&&y.isSelected,"onUpdate:modelValue":x=>p(x,y)},null,8,["model-value","label","fontFamily","avoid-interaction","onUpdate:modelValue"])]))),128))]),_:1})]))}},cqe=ic(lqe,[["__scopeId","data-v-15ddb449"]]),Xr={PLAYS:"plays",PRODUCTIVITY:"productivity",FIELD:"field",UNIVERSE:"universe",DETAILS:"details",TOURNAMENTS:"tournaments",PERSONAL_DATA:"personalData",PLAYS_TYPES:"playsTypes",GOLSTATS:"golstats",DISTANCE:"distance",RESULTS:"results",RESULTS_BY_TIME:"resultsByTime",VIDEOS:"videos",GAMES:"games",TAKEN_CORNERS:"takenCorners",HOW_WAS_CORNER:"howWasCorner",ZONE:"zone",WHAT_HAPPENED:"whatHappened",POSITIONS:"positions",YEARS:"years",NATIONALITIES:"nationalities",TEAMS:"teams",POSSESSION_VISUALISATIONS:"visualisations"},dqe={key:0,class:"plays-golstats__placeholder"},uqe=["onClick"],hqe={key:0,class:"plays-golstats__item__value"},pqe={class:"plays-golstats__item__text"},fqe={class:"plays-golstats__item__svg"},mqe={width:"10",height:"8",viewBox:"0 0 10 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},gqe=["fill"],yqe={__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:o}){const s=e,z=t.computed(()=>({"--grid-template-columns":s.type===Xr.PLAYS_TYPES?"1fr min-content":"min-content 1fr min-content","--svg-width":`${s.svgWidth}px`,"--svg-height":`${s.svgHeight}px`}));t.watch(()=>s.categories,m=>{const g=m.filter(r=>r.isSelected);o("update:filters",g)},{immediate:!0,deep:!0});function Z(m){m.isSelected||(s.categories.forEach(g=>{g.isSelected=!1}),m.isSelected=!0,s.type===Xr.GOLSTATS&&o("change-filters-selected",m.value))}return(m,g)=>(t.openBlock(),t.createElementBlock("div",{class:"plays-golstats",style:t.normalizeStyle(z.value)},[t.createVNode(pv,{height:e.height},{default:t.withCtx(()=>[e.type===t.unref(Xr).PLAYS_TYPES?(t.openBlock(),t.createElementBlock("div",dqe," Elige un tipo de jugada para filtrar: ")):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.categories,(r,b)=>(t.openBlock(),t.createElementBlock("div",{key:`k${b}`,class:"plays-golstats__item",onClick:p=>Z(r)},[e.type===t.unref(Xr).GOLSTATS?(t.openBlock(),t.createElementBlock("div",hqe,t.toDisplayString(r.value),1)):t.createCommentVNode("",!0),t.createElementVNode("div",pqe,t.toDisplayString(r.name),1),t.createElementVNode("div",fqe,[t.withDirectives((t.openBlock(),t.createElementBlock("svg",mqe,[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,gqe)],512)),[[t.vShow,r.isSelected]])])],8,uqe))),128))]),_:1},8,["height"])],4))}},WN=ic(yqe,[["__scopeId","data-v-ef99052c"]]),vqe=(e,o)=>{const s=e.__vccOpts||e;for(const[z,Z]of o)s[z]=Z;return s},Ik={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 o=e.which?e.which:e.keyCode();!e.code.startsWith("Numpad")&&o>31&&(o<48||o>57)&&e.preventDefault()}}}},qN=()=>{t.useCssVars(e=>({"71e38669":e.textRightColor,d0c4b7ac:e.textRightFontSize,"101fb94d":e.textRightFontFamily}))},JN=Ik.setup;Ik.setup=JN?(e,o)=>(qN(),JN(e,o)):qN;const bqe={class:"input-container"},xqe=["type","placeholder","value"],_qe={class:"right-text"};function wqe(e,o,s,z,Z,m){return t.openBlock(),t.createElementBlock("div",bqe,[t.createElementVNode("input",{type:s.inputType,placeholder:s.placeholder,value:s.value,style:t.normalizeStyle(m.inputStyle),onKeydown:o[0]||(o[0]=(...g)=>m.onKeyDown&&m.onKeyDown(...g)),onInput:o[1]||(o[1]=(...g)=>m.updateInputValue&&m.updateInputValue(...g))},null,44,xqe),t.createElementVNode("div",_qe,t.toDisplayString(s.textRight),1)])}const kqe=vqe(Ik,[["render",wqe],["__scopeId","data-v-76f92928"]]),Sqe=(e,o)=>{const s=e.__vccOpts||e;for(const[z,Z]of o)s[z]=Z;return s},Pk={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))}}},YN=()=>{t.useCssVars(e=>({"9d01acb4":e.height,"14e95081":e.borderWidthBtn,"38fec285":e.borderType,34353510:e.borderColor,"20d20dc6":e.borderRadius,17130967:e.width,"4ccb7d36":e.backgroundColor,"5d1e86a2":e.cursorType,ce65d4a2:e.fontSize,fe4ac47a:e.fontStyle,f98e44dc:e.fontFamily,"93b87770":e.marginLeftStat,c7f7beba:e.fontSizeStat}))},XN=Pk.setup;Pk.setup=XN?(e,o)=>(YN(),XN(e,o)):YN;const Cqe=e=>(t.pushScopeId("data-v-f3ee6b2b"),e=e(),t.popScopeId(),e),Tqe=["src"],Aqe={key:1,class:"text"},Eqe=["src"],Mqe={class:"stats"},Iqe=Cqe(()=>t.createElementVNode("img",{class:"iconstats",src:"https://golstatsimages.blob.core.windows.net/todoelfut/playdes.png"},null,-1)),Pqe={class:"numstats"},Lqe={class:"leyend"};function Bqe(e,o,s,z,Z,m){return t.openBlock(),t.createElementBlock("div",null,[s.type==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["button",Z.status&&s.typeOnOff&&"button-active"]),style:t.normalizeStyle([m.customStyle,Z.status&&s.typeOnOff&&m.customActive]),onClick:o[0]||(o[0]=(...g)=>m.btnClick&&m.btnClick(...g))},[s.icon&&s.iconPosition.toLowerCase()==="left"?(t.openBlock(),t.createElementBlock("img",{key:0,class:"icon",style:t.normalizeStyle({width:s.iconSize}),src:s.icon},null,12,Tqe)):t.createCommentVNode("",!0),s.textValue?(t.openBlock(),t.createElementBlock("div",Aqe,t.toDisplayString(s.textValue),1)):t.createCommentVNode("",!0),s.icon&&s.iconPosition.toLowerCase()==="right"?(t.openBlock(),t.createElementBlock("img",{key:2,class:"icon",style:t.normalizeStyle({width:s.iconSize}),src:s.icon},null,12,Eqe)):t.createCommentVNode("",!0)],6)):t.createCommentVNode("",!0),s.type==1?(t.openBlock(),t.createElementBlock("div",{key:1,class:"button-target",onClick:o[1]||(o[1]=(...g)=>m.btnClick&&m.btnClick(...g))},[t.createElementVNode("div",Mqe,[Iqe,t.createElementVNode("div",Pqe,t.toDisplayString(s.textStat),1)]),t.createElementVNode("div",Lqe,t.toDisplayString(s.textCategory),1)])):t.createCommentVNode("",!0)])}const zqe=Sqe(Pk,[["render",Bqe],["__scopeId","data-v-f3ee6b2b"]]),Dqe={class:"gsc-dropdown__main-container__item-selected"},Oqe=["height","width"],Nqe=["stroke"],Fqe={key:1,width:"8",height:"4",viewBox:"0 0 8 4",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Rqe=["fill"],Vqe={class:"gsc-dropdown__items-container"},jqe=["onClick"],Uqe={key:0,class:"gsc-dropdown__items-footer"},x1={__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(o=>o in e)},listBackgroundColor:{type:String,default:"white"},hoverBackgroundColor:{type:String,default:"#f1f1f1"},listMarginTop:{type:String,default:"0"},listContainerPadding:{type:String,default:"0"},listItemPadding:{type:String,default:"10px 12px"},listItemMargin:{type:String,default:"0"},listHeight:{type:String,default:"fit-content"},listItemSelectedColor:{type:String,default:"white"},listItemSelectedBackgroundColor:{type:String,default:"#399cfd"},listItemColor:{type:String,default:"black"},listBorderRadius:{type:String,default:"0"},listBorderColor:{type:String,default:""},listBorderWidth:{type:Number,default:1},listItemBorderRadius:{type:String,default:"0"},listAlignment:{type:String,default:"left"},isListSameWidth:{type:Boolean,default:!1},isMultipleOption:{type:Boolean,default:!1},footerBorderColor:{type:String,default:"#626970"},footerBorderWidth:{type:Number,default:1},isFooterVisible:{type:Boolean,default:!1},isDisabled:{type:Boolean,default:!1},onlyFirstTime:{type:Boolean,default:!1},iconType:{type:Number,default:1,validator:function(e){return[1,2].includes(e)}}},emits:["input","click-ready","update:modelValue"],setup(e,{emit:o}){const s=e,z=t.ref({}),Z=t.ref(null),m=t.ref(s.isMultipleOption?-1:0),g=t.ref(!1);t.watch(()=>s.items,(x,h)=>{if(!s.modelValue&&(!s.onlyFirstTime||!h||!h.length)&&x&&x.length){if(s.defaultItemByProp){const n=s.items.findIndex(i=>i[s.defaultItemByProp.propName]===s.defaultItemByProp.value);n!==-1?(m.value=n,z.value=x[n]):(m.value=0,z.value=x[0])}else z.value=x[s.defaultItemByIndex];o("input",z.value)}},{immediate:!0}),t.watch(()=>s.modelValue,x=>{if(x){const h=s.items.findIndex(n=>typeof x=="object"?JSON.stringify(n)===JSON.stringify(x):n===x);h!==-1&&(m.value=h,z.value=s.items[h],o("update:modelValue",z.value))}},{immediate:!0});const r=t.computed(()=>({height:s.height,width:s.width,backgroundColor:s.backgroundColor,borderRadius:`${s.borderRadius}px`,border:`${s.borderType} ${s.borderWidth}px ${s.borderColor}`,color:s.color,"--hover-background-color":s.hoverBackgroundColor,"--list-container-padding":s.listContainerPadding,"--list-item-padding":s.listItemPadding,"--list-item-margin":s.listItemMargin,"--list-background-color":s.listBackgroundColor,"--list-height":s.listHeight,"--list-item-border-radius":s.listItemBorderRadius,"--list-item-selected-color":s.listItemSelectedColor,"--list-item-selected-background-color":s.listItemSelectedBackgroundColor,"--list-item-color":s.listItemColor,"--list-border-radius":`${s.listBorderRadius}`,"--list-border-color":s.listBorderColor,"--list-width":s.isListSameWidth?s.width:"fit-content","--list-border-width":`${s.listBorderWidth}px`,"--list-margin-top":s.listMarginTop,"--list-left":s.listAlignment==="left"?"0":"auto","--list-right":s.listAlignment==="right"?"0":"auto","--footer-border":`${s.footerBorderWidth}px solid ${s.footerBorderColor}`,"--dropdown-opacity":s.isDisabled?"0.5":"1","--dropdown-cursor":s.isDisabled?"not-allowed":"pointer","--dropdown-font-size":s.fontSize?s.fontSize:"14px"})),b=t.computed(()=>({height:`${s.arrowHeight}px`,width:`${s.arrowWidth}px`}));function p(){s.isDisabled||(g.value=!g.value)}function a(x){Z.value&&!Z.value.contains(x.target)&&(g.value=!1)}function _(x,h){s.isMultipleOption?m.value=-1:(m.value=h,g.value=!1),z.value=x,o("input",z.value),o("update:modelValue",z.value)}function y(){g.value=!1,o("click-ready")}return t.onMounted(()=>{document.addEventListener("click",a)}),t.onBeforeMount(()=>{document.removeEventListener("click",a)}),(x,h)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"dropDown",ref:Z,class:"gsc-dropdown",style:t.normalizeStyle(r.value)},[t.createElementVNode("div",{class:"gsc-dropdown__main-container",style:t.normalizeStyle({"padding-right":`${e.arrowWidth+8}px`}),onClick:p},[t.createElementVNode("div",Dqe,[t.renderSlot(x.$slots,"default",{selectedItem:z.value})]),t.createElementVNode("div",{class:t.normalizeClass(["gsc-dropdown__main-container__icon",{"rotated-180":g.value}]),style:t.normalizeStyle(b.value)},[e.iconType===1?(t.openBlock(),t.createElementBlock("svg",{key:0,height:e.arrowHeight,width:e.arrowWidth,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M18.394 9.13501L13.1302 14.3988C12.5086 15.0204 11.4914 15.0204 10.8697 14.3988L5.60596 9.13501",stroke:e.arrowColor},null,8,Nqe)],8,Oqe)):(t.openBlock(),t.createElementBlock("svg",Fqe,[t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M4 2.62045L6.86193 0.167368C7.12228 -0.0557892 7.54439 -0.0557892 7.80474 0.167368C8.06509 0.390524 8.06509 0.752333 7.80474 0.97549L4.4714 3.83263C4.21105 4.05579 3.78895 4.05579 3.5286 3.83263L0.195262 0.97549C-0.0650874 0.752333 -0.0650874 0.390524 0.195262 0.167368C0.455612 -0.0557892 0.877722 -0.0557892 1.13807 0.167368L4 2.62045Z",fill:e.arrowColor},null,8,Rqe)]))],6)],4),t.createVNode(t.Transition,null,{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("div",Vqe,[t.createElementVNode("div",null,[t.createElementVNode("div",{class:"gsc-dropdown__items",style:t.normalizeStyle({"margin-top":`${s.borderWidth}px`})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(n,i)=>(t.openBlock(),t.createElementBlock("div",null,[t.withDirectives((t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["gsc-dropdown__items__item",{selected:i===m.value}]),key:i,onClick:d=>_(n,i)},[t.renderSlot(x.$slots,"availableItem",{item:n})],10,jqe)),[[t.vShow,!n.isHidden]])]))),256))],4),e.isFooterVisible?(t.openBlock(),t.createElementBlock("div",Uqe,[t.createVNode(t.unref(zqe),{"text-value":"Listo","border-color":"#cbee6b","font-size":"12px",width:"72px",height:"22px","border-radius":"62px","border-width":.8,onClick:y})])):t.createCommentVNode("",!0)])],512),[[t.vShow,g.value]])]),_:3})],4))}},lb={borderType:"solid",listBackgroundColor:"#2E3B46",listBorderColor:"rgba(255, 255, 255, 0.2)",listBorderRadius:"5px",height:"38px",borderWidth:.8,borderColor:"rgba(255, 255, 255, 0.2)",backgroundColor:"#2E3B46",color:"white",listItemColor:"white",listItemSelectedBackgroundColor:"#2E3B46",arrowColor:"#fff",width:"100%",listHeight:"200px",isListSameWidth:!0,isFooterVisible:!0,hoverBackgroundColor:"#2E3B46",iconType:2},eg=e=>(t.pushScopeId("data-v-7a29901a"),e=e(),t.popScopeId(),e),Gqe={class:"universe"},Hqe=eg(()=>t.createElementVNode("div",{class:"universe__sub-header"},"Tipo de estádisticas:",-1)),Zqe={class:"radios"},Wqe={class:"radio-input"},qqe={class:"radio-input__radio"},Jqe=eg(()=>t.createElementVNode("label",{for:"total"},"Totales",-1)),Yqe={class:"radio-input"},Xqe={class:"radio-input__radio"},$qe=eg(()=>t.createElementVNode("label",{for:"every"},"Cada 90 mins.",-1)),Kqe=eg(()=>t.createElementVNode("div",{class:"universe__sub-header"},"Escribe los minutos jugados",-1)),Qqe=eg(()=>t.createElementVNode("div",{class:"universe__label"},"Igual o mayor que:",-1)),eJe={class:"universe__inputs"},tJe={class:"universe__inputs__input"},aJe=eg(()=>t.createElementVNode("div",{class:"universe__sub-header"},"Selecciona el lapso de tiempo",-1)),rJe=eg(()=>t.createElementVNode("div",{class:"universe__label"},"Considerando los últimos:",-1)),nJe={class:"universe__dropdown"},iJe={class:"selected-item"},oJe={__name:"TemplateUniverse",props:{universeFilters:{type:Object,default:()=>({minutesPlayed:360,percentMinutesPlayed:0,lastMonths:Array.from({length:24},(e,o)=>o+1),statistics:{totals:!0,averagePerGame:!1,averagePerMinute:!1},statisticsRadios:"total"})},fontFamily:{type:String,default:"'Poppins-Regular'"},defaultMonthIndex:{type:Number,default:5}},emits:["update:universeFilters"],setup(e,{expose:o,emit:s}){const z=e,Z=t.ref(!1),m=t.ref(!1),g=t.ref(!1),r=t.ref({statistics:{}});t.watch(()=>z.universeFilters,_=>{r.value={..._,lastMonths:_.selectedMonth?_.selectedMonth:_.lastMonths[z.defaultMonthIndex],statistics:{..._.statistics},statisticsRadios:_.statisticsRadios||"total"}},{deep:!0,immediate:!0}),t.watch(()=>r,_=>{Z.value=!_.value.minutesPlayed||Number(_.value.minutesPlayed)===0,m.value=!_.value.percentMinutesPlayed||Number(_.value.percentMinutesPlayed)===0,g.value=!_.value.lastMonths||Number(_.value.lastMonths)===0,s("update:universeFilters",_)},{deep:!0,immediate:!0});function b(_){_&&_<1&&(_=1),r.value.minutesPlayed=_}function p(){r.value={...z.universeFilters,lastMonths:z.universeFilters.lastMonths[z.defaultMonthIndex],statistics:{...z.universeFilters.statistics}}}function a(_){r.value.lastMonths=_}return o({resetFilters:p}),(_,y)=>(t.openBlock(),t.createElementBlock("div",Gqe,[Hqe,t.createElementVNode("div",Zqe,[t.createElementVNode("div",Wqe,[t.createElementVNode("div",qqe,[t.withDirectives(t.createElementVNode("input",{"onUpdate:modelValue":y[0]||(y[0]=x=>r.value.statisticsRadios=x),type:"radio",id:"total",value:"total",name:"statistics"},null,512),[[t.vModelRadio,r.value.statisticsRadios]]),Jqe])]),t.createElementVNode("div",Yqe,[t.createElementVNode("div",Xqe,[t.withDirectives(t.createElementVNode("input",{"onUpdate:modelValue":y[1]||(y[1]=x=>r.value.statisticsRadios=x),type:"radio",id:"every",value:"every90",name:"statistics"},null,512),[[t.vModelRadio,r.value.statisticsRadios]]),$qe])])]),Kqe,Qqe,t.createElementVNode("div",eJe,[t.createElementVNode("div",tJe,[t.createVNode(t.unref(kqe),{value:r.value.minutesPlayed,type:"text",inputmode:"numeric","border-radius":"4px",border:"solid 0.8px #8ea2ab","text-right":"Min","is-numbers-only":"",onInputval:b},null,8,["value"])])]),aJe,rJe,t.createElementVNode("div",nJe,[t.createVNode(t.unref(x1),t.mergeProps(t.unref(lb),{items:e.universeFilters.lastMonths,"model-value":r.value.lastMonths,onInput:a}),{default:t.withCtx(({selectedItem:x})=>[t.createElementVNode("div",iJe,t.toDisplayString(x)+" "+t.toDisplayString(x===1?"mes":"meses"),1)]),availableItem:t.withCtx(({item:x})=>[t.createElementVNode("div",null,t.toDisplayString(x)+" "+t.toDisplayString(x===1?"mes":"meses"),1)]),_:1},16,["items","model-value"])]),t.createCommentVNode("",!0),t.createCommentVNode("",!0)]))}},sJe=ic(oJe,[["__scopeId","data-v-7a29901a"]]),$N=(e,o)=>{const s=e.__vccOpts||e;for(const[z,Z]of o)s[z]=Z;return s},lJe={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||[],o=this.min===void 0?0:this.min,s=e.length?e.length-1:100,z=this.max===void 0?s:this.max,Z=this.minValue===void 0?25:this.minValue;e.length&&this.minValue===void 0&&(Z=1);let m=this.maxValue||75;if(e.length&&this.maxValue===void 0&&(m=e.length-2),z<=o)throw new Error("Invalid props min or max");if(Z>m)throw new Error("Invalid props minValue or maxValue");let g=this.rangeMargin===void 0?this.step:this.rangeMargin,r=g%this.step;return r&&(g=g+this.step-r),{valueMin:Z<o?o:Z,valueMax:m>z?z:m,interVal:null,startX:null,mouseMoveCounter:null,barBox:null,barValue:0,rangeMarginValue:g}},methods:{onBarLeftClick(){this.valueMin-this.step>=this.minimum?this.valueMin-=this.step:this.valueMin=this.minimum},onInnerBarLeftClick(){this.valueMin+this.rangeMarginValue<this.valueMax&&(this.valueMin+=this.step)},onBarRightClick(){this.valueMax+this.step<=this.maximum?this.valueMax+=this.step:this.valueMax=this.maximum},onInnerBarRightClick(){this.valueMax-this.rangeMarginValue>this.valueMin&&(this.valueMax-=this.step)},onInputMinChange(e){let o=parseFloat(e.target.value);o<=this.valueMax-this.rangeMarginValue&&o>=this.minimum?this.valueMin=o:e.target.value=this.valueMin},onInputMaxChange(e){let o=parseFloat(e.target.value);o>=this.valueMin+this.rangeMarginValue&&o<=this.maximum?this.valueMax=o: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 o=e.clientX;e.type==="touchmove"&&(o=e.touches[0].clientX);let s=(o-this.startX)/this.barBox.width,z=this.barValue+(this.maximum-this.minimum)*s,Z=z%this.step;z-=Z,z<this.minimum?z=this.minimum:z>this.valueMax-this.rangeMarginValue&&(z=this.valueMax-this.rangeMarginValue),this.valueMin=z},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 o=e.clientX;e.type==="touchmove"&&(o=e.touches[0].clientX);let s=(o-this.startX)/this.barBox.width,z=this.barValue+(this.maximum-this.minimum)*s,Z=z%this.step;z-=Z,z<this.valueMin+this.rangeMarginValue?z=this.valueMin+this.rangeMarginValue:z>this.maximum&&(z=this.maximum),this.valueMax=z},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 o=this.step;e.deltaY<0&&(o=-o),e.shiftKey&&e.ctrlKey?this.valueMin+o>=this.minimum&&this.valueMax+o<=this.maximum&&(this.valueMin=this.valueMin+o,this.valueMax=this.valueMax+o):e.ctrlKey?(o=this.valueMax+o,o<this.valueMin+this.rangeMarginValue?o=this.valueMin+this.rangeMarginValue:o>this.maximum&&(o=this.maximum),this.valueMax=o):e.shiftKey&&(o=this.valueMin+o,o<this.minimum?o=this.minimum:o>this.valueMax-this.rangeMarginValue&&(o=this.valueMax-this.rangeMarginValue),this.valueMin=o)},triggerInput(){let e=0;this.step.toString().includes(".")&&(e=2);let o={min:this.minimum,max:this.maximum,minValue:parseFloat(this.valueMin.toFixed(e)),maxValue:parseFloat(this.valueMax.toFixed(e))};this.$emit("input",o)}},computed:{minimum(){return this.min===void 0?0:this.min},maximum(){let e=this.labels||[],o=e.length?e.length-1:100;return this.max===void 0?o: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(){}},cJe={class:"bar"},dJe=["min","max","step","value"],uJe={class:"caption"},hJe={class:"min-caption"},pJe={class:"bar-inner"},fJe=["min","max","step","value"],mJe={class:"caption"},gJe={class:"max-caption"},yJe={key:0,class:"ruler"},vJe={key:1,class:"sub-ruler"},bJe={key:2,class:"labels"};function xJe(e,o,s,z,Z,m){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass([s.baseClassName,Z.rangeMarginValue===0?"zero-ranage-margin":""]),onMousewheel:o[10]||(o[10]=t.withModifiers((...g)=>m.onMouseWheel&&m.onMouseWheel(...g),["prevent","stop"]))},[t.createElementVNode("div",cJe,[t.createElementVNode("div",{class:"bar-left",style:t.normalizeStyle({width:m.barMin+"%"}),onClick:o[0]||(o[0]=(...g)=>m.onBarLeftClick&&m.onBarLeftClick(...g))},null,4),t.createElementVNode("input",{class:"input-type-range input-type-range-min",type:"range",min:m.minimum,max:m.maximum,step:s.step,value:Z.valueMin,onInput:o[1]||(o[1]=t.withModifiers((...g)=>m.onInputMinChange&&m.onInputMinChange(...g),["stop","prevent"]))},null,40,dJe),t.createElementVNode("div",{class:"thumb thumb-left",onMousedown:o[2]||(o[2]=(...g)=>m.onLeftThumbMousedown&&m.onLeftThumbMousedown(...g)),onTouchstart:o[3]||(o[3]=(...g)=>m.onLeftThumbMousedown&&m.onLeftThumbMousedown(...g))},[t.createElementVNode("div",uJe,[t.createElementVNode("span",hJe,t.toDisplayString(s.minCaption||m.barMinVal),1)])],32),t.createElementVNode("div",pJe,[t.createElementVNode("div",{class:"bar-inner-left",onClick:o[4]||(o[4]=(...g)=>m.onInnerBarLeftClick&&m.onInnerBarLeftClick(...g))}),t.createElementVNode("div",{class:"bar-inner-right",onClick:o[5]||(o[5]=(...g)=>m.onInnerBarRightClick&&m.onInnerBarRightClick(...g))})]),t.createElementVNode("input",{class:"input-type-range input-type-range-max",type:"range",min:m.minimum,max:m.maximum,step:s.step,value:Z.valueMax,onInput:o[6]||(o[6]=t.withModifiers((...g)=>m.onInputMaxChange&&m.onInputMaxChange(...g),["stop","prevent"]))},null,40,fJe),t.createElementVNode("div",{class:"thumb thumb-right",onMousedown:o[7]||(o[7]=(...g)=>m.onRightThumbMousedown&&m.onRightThumbMousedown(...g)),onTouchstart:o[8]||(o[8]=(...g)=>m.onRightThumbMousedown&&m.onRightThumbMousedown(...g))},[t.createElementVNode("div",mJe,[t.createElementVNode("span",gJe,t.toDisplayString(s.maxCaption||m.barMaxVal),1)])],32),t.createElementVNode("div",{class:"bar-right",style:t.normalizeStyle({width:m.barMax+"%"}),onClick:o[9]||(o[9]=(...g)=>m.onBarRightClick&&m.onBarRightClick(...g))},null,4)]),s.ruler?(t.openBlock(),t.createElementBlock("div",yJe,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(m.stepCount,g=>(t.openBlock(),t.createElementBlock("div",{key:g,class:"ruler-rule"}))),128))])):t.createCommentVNode("",!0),m.subStepCount?(t.openBlock(),t.createElementBlock("div",vJe,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(m.subStepCount,g=>(t.openBlock(),t.createElementBlock("div",{key:g,class:"ruler-sub-rule"}))),128))])):t.createCommentVNode("",!0),s.label?(t.openBlock(),t.createElementBlock("div",bJe,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(m.scaleLabels,g=>(t.openBlock(),t.createElementBlock("div",{class:"label",key:g},t.toDisplayString(g),1))),128))])):t.createCommentVNode("",!0)],34)}const _Je=$N(lJe,[["render",xJe]]),Lk={components:{MultiRangeSlider:_Je},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)}}},KN=()=>{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}))},QN=Lk.setup;Lk.setup=QN?(e,o)=>(KN(),QN(e,o)):KN;const wJe={class:"center"},kJe={class:"bar-ref"},SJe={class:"bar-ref-element-left"},CJe={class:"bar-ref-element-right"};function TJe(e,o,s,z,Z,m){const g=t.resolveComponent("MultiRangeSlider");return t.openBlock(),t.createElementBlock("div",{class:"custom-range-slider",style:t.normalizeStyle(m.customStyle)},[t.createElementVNode("div",wJe,[t.createElementVNode("div",kJe,[t.createElementVNode("div",SJe,[t.createElementVNode("div",{class:"text",style:t.normalizeStyle(m.customStyleText)},"De:",4),t.createElementVNode("div",{class:"value",style:t.normalizeStyle(m.customStyleValue)},t.toDisplayString(Z.minValueLocal)+t.toDisplayString(s.minSuffix),5)]),t.createElementVNode("div",CJe,[t.createElementVNode("div",{class:"text",style:t.normalizeStyle(m.customStyleText)},"A:",4),t.createElementVNode("div",{class:"value",style:t.normalizeStyle(m.customStyleValue)},t.toDisplayString(Z.maxValueLocal)+t.toDisplayString(s.maxSuffix),5)])]),t.createVNode(g,{baseClassName:"multi-range-slider",min:s.minLimit,max:s.maxLimit,step:1,ruler:!1,label:!1,"min-value":Z.minValueLocal,"max-value":Z.maxValueLocal,"range-margin":0,onInput:m.onInput},null,8,["min","max","min-value","max-value","onInput"])])],4)}const eF=$N(Lk,[["render",TJe]]),AJe={class:"template-distance"},EJe={__name:"TemplateDistance",props:{distance:{type:Object,default:()=>({minLimit:5,maxLimit:30,minValue:5,maxValue:30})}},emits:["update:distanceFilters"],setup(e,{emit:o}){const s=e,z=t.ref({minValue:0,maxValue:0,minLimit:0,maxLimit:0});t.watch(()=>z.value,m=>{o("update:distanceFilters",m)},{deep:!0}),t.watch(()=>s.distance,m=>{z.value.minValue=m.minValue,z.value.maxValue=m.maxValue,z.value.minLimit=m.minLimit,z.value.maxLimit=m.maxLimit},{immediate:!0,deep:!0});function Z(m){z.value.minValue=m.minValue,z.value.maxValue=m.maxValue}return(m,g)=>(t.openBlock(),t.createElementBlock("div",AJe,[t.createVNode(t.unref(eF),{"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":z.value.minLimit,"max-limit":z.value.maxLimit,"min-value":z.value.minValue,"max-value":z.value.maxValue,"min-suffix":"m","max-suffix":"+",onInput:Z},null,8,["min-limit","max-limit","min-value","max-value"])]))}},MJe=e=>(t.pushScopeId("data-v-63087438"),e=e(),t.popScopeId(),e),IJe={class:"template-games"},PJe={class:"template-games__header"},LJe=MJe(()=>t.createElementVNode("div",{class:"template-games__header__title"},"Partidos jugados:",-1)),BJe={class:"template-games__header__all-games"},zJe={__name:"TemplateGames",props:{gamesFilters:{type:Array,default:()=>[]}},emits:["update:gamesFilters"],setup(e,{emit:o}){const s=e,z=t.ref(!1),Z=t.computed(()=>s.gamesFilters.filter(g=>g.isSelected).length);t.watch(Z,g=>{z.value=g===s.gamesFilters.length,o("update:gamesFilters",s.gamesFilters)},{immediate:!0});const m=g=>{g?s.gamesFilters.forEach(r=>{r.isSelected=g}):s.gamesFilters.forEach((r,b)=>{r.isSelected=b===0}),z.value=g};return(g,r)=>(t.openBlock(),t.createElementBlock("div",IJe,[t.createElementVNode("div",PJe,[LJe,t.createElementVNode("div",BJe,[t.createVNode(t.unref(Zl),{modelValue:z.value,label:"Todos","box-position":"right","font-family":"Roboto-Regular, sans-serif","label-font-size":"12px","onUpdate:modelValue":m},null,8,["modelValue"])])]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.gamesFilters,(b,p)=>(t.openBlock(),t.createElementBlock("div",{key:p,class:"template-games__game"},[t.createVNode(t.unref(Zl),{modelValue:b.isSelected,"onUpdate:modelValue":a=>b.isSelected=a,label:b.label,"teams-ids":b.teamsIds,"avoid-interaction":Z.value===1&&b.isSelected},null,8,["modelValue","onUpdate:modelValue","label","teams-ids","avoid-interaction"])]))),128))]))}},DJe=ic(zJe,[["__scopeId","data-v-63087438"]]),OJe=(e,o)=>{const s=e.__vccOpts||e;for(const[z,Z]of o)s[z]=Z;return s},Bk={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))}}},tF=()=>{t.useCssVars(e=>({"9d01acb4":e.height,"14e95081":e.borderWidthBtn,"38fec285":e.borderType,34353510:e.borderColor,"20d20dc6":e.borderRadius,17130967:e.width,"4ccb7d36":e.backgroundColor,"5d1e86a2":e.cursorType,ce65d4a2:e.fontSize,fe4ac47a:e.fontStyle,f98e44dc:e.fontFamily,"93b87770":e.marginLeftStat,c7f7beba:e.fontSizeStat}))},aF=Bk.setup;Bk.setup=aF?(e,o)=>(tF(),aF(e,o)):tF;const NJe=e=>(t.pushScopeId("data-v-f3ee6b2b"),e=e(),t.popScopeId(),e),FJe=["src"],RJe={key:1,class:"text"},VJe=["src"],jJe={class:"stats"},UJe=NJe(()=>t.createElementVNode("img",{class:"iconstats",src:"https://golstatsimages.blob.core.windows.net/todoelfut/playdes.png"},null,-1)),GJe={class:"numstats"},HJe={class:"leyend"};function ZJe(e,o,s,z,Z,m){return t.openBlock(),t.createElementBlock("div",null,[s.type==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["button",Z.status&&s.typeOnOff&&"button-active"]),style:t.normalizeStyle([m.customStyle,Z.status&&s.typeOnOff&&m.customActive]),onClick:o[0]||(o[0]=(...g)=>m.btnClick&&m.btnClick(...g))},[s.icon&&s.iconPosition.toLowerCase()==="left"?(t.openBlock(),t.createElementBlock("img",{key:0,class:"icon",style:t.normalizeStyle({width:s.iconSize}),src:s.icon},null,12,FJe)):t.createCommentVNode("",!0),s.textValue?(t.openBlock(),t.createElementBlock("div",RJe,t.toDisplayString(s.textValue),1)):t.createCommentVNode("",!0),s.icon&&s.iconPosition.toLowerCase()==="right"?(t.openBlock(),t.createElementBlock("img",{key:2,class:"icon",style:t.normalizeStyle({width:s.iconSize}),src:s.icon},null,12,VJe)):t.createCommentVNode("",!0)],6)):t.createCommentVNode("",!0),s.type==1?(t.openBlock(),t.createElementBlock("div",{key:1,class:"button-target",onClick:o[1]||(o[1]=(...g)=>m.btnClick&&m.btnClick(...g))},[t.createElementVNode("div",jJe,[UJe,t.createElementVNode("div",GJe,t.toDisplayString(s.textStat),1)]),t.createElementVNode("div",HJe,t.toDisplayString(s.textCategory),1)])):t.createCommentVNode("",!0)])}const _5=OJe(Bk,[["render",ZJe],["__scopeId","data-v-f3ee6b2b"]]),WJe=(e,o)=>{const s=e.__vccOpts||e;for(const[z,Z]of o)s[z]=Z;return s},zk={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))}}},rF=()=>{t.useCssVars(e=>({"9d01acb4":e.height,"14e95081":e.borderWidthBtn,"38fec285":e.borderType,34353510:e.borderColor,"20d20dc6":e.borderRadius,17130967:e.width,"4ccb7d36":e.backgroundColor,"5d1e86a2":e.cursorType,ce65d4a2:e.fontSize,fe4ac47a:e.fontStyle,f98e44dc:e.fontFamily,"93b87770":e.marginLeftStat,c7f7beba:e.fontSizeStat}))},nF=zk.setup;zk.setup=nF?(e,o)=>(rF(),nF(e,o)):rF;const qJe=e=>(t.pushScopeId("data-v-f3ee6b2b"),e=e(),t.popScopeId(),e),JJe=["src"],YJe={key:1,class:"text"},XJe=["src"],$Je={class:"stats"},KJe=qJe(()=>t.createElementVNode("img",{class:"iconstats",src:"https://golstatsimages.blob.core.windows.net/todoelfut/playdes.png"},null,-1)),QJe={class:"numstats"},eYe={class:"leyend"};function tYe(e,o,s,z,Z,m){return t.openBlock(),t.createElementBlock("div",null,[s.type==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["button",Z.status&&s.typeOnOff&&"button-active"]),style:t.normalizeStyle([m.customStyle,Z.status&&s.typeOnOff&&m.customActive]),onClick:o[0]||(o[0]=(...g)=>m.btnClick&&m.btnClick(...g))},[s.icon&&s.iconPosition.toLowerCase()==="left"?(t.openBlock(),t.createElementBlock("img",{key:0,class:"icon",style:t.normalizeStyle({width:s.iconSize}),src:s.icon},null,12,JJe)):t.createCommentVNode("",!0),s.textValue?(t.openBlock(),t.createElementBlock("div",YJe,t.toDisplayString(s.textValue),1)):t.createCommentVNode("",!0),s.icon&&s.iconPosition.toLowerCase()==="right"?(t.openBlock(),t.createElementBlock("img",{key:2,class:"icon",style:t.normalizeStyle({width:s.iconSize}),src:s.icon},null,12,XJe)):t.createCommentVNode("",!0)],6)):t.createCommentVNode("",!0),s.type==1?(t.openBlock(),t.createElementBlock("div",{key:1,class:"button-target",onClick:o[1]||(o[1]=(...g)=>m.btnClick&&m.btnClick(...g))},[t.createElementVNode("div",$Je,[KJe,t.createElementVNode("div",QJe,t.toDisplayString(s.textStat),1)]),t.createElementVNode("div",eYe,t.toDisplayString(s.textCategory),1)])):t.createCommentVNode("",!0)])}const aYe=WJe(zk,[["render",tYe],["__scopeId","data-v-f3ee6b2b"]]),rYe=(e,o)=>{const s=e.__vccOpts||e;for(const[z,Z]of o)s[z]=Z;return s},nYe={key:1},iYe={width:"10",height:"8",viewBox:"0 0 10 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},oYe=["fill"],sYe={key:0,class:"checkbox__teams"},lYe={class:"checkbox__teams__logo"},cYe=["src"],dYe={class:"checkbox__teams__logo"},uYe=["src"],hYe={__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:o}){const s=e;t.useCssVars(p=>({"7bd9d47b":e.width,"34dc7ddc":e.height}));const z=t.ref(!1),Z=t.computed(()=>{const p={color:s.boxValueColor,"font-family":s.fontFamily,height:s.boxWidthAndHeight,width:s.boxWidthAndHeight,minWidth:s.boxWidthAndHeight,"border-radius":s.boxBorderRadius,"margin-top":s.boxMarginTop};return z.value?(p["background-color"]=s.boxBackgroundColor,p.border=`solid ${s.boxBorderWidth} ${s.boxBackgroundColor}`):p.border=`solid ${s.boxBorderWidth} ${s.boxBorderColor}`,p}),m=t.computed(()=>({"font-family":s.boxValueFontFamily,"font-size":s.boxValueFontSize,color:s.boxValueColor,"line-height":1})),g=t.computed(()=>{const p={color:s.labelColor,"font-family":s.fontFamily,"font-size":s.labelFontSize,"white-space":s.labelWhiteSpace,"text-align":s.boxPosition==="top"||s.boxPosition==="bottom"?"center":s.boxPosition};return(s.boxPosition==="left"||s.boxPosition==="right")&&(p[`margin-${s.boxPosition}`]=s.isBoxOnly?"0":s.teamsIds?"8px":"10px"),p});t.watch(()=>s.modelValue,p=>{p!==z.value&&(z.value=p)},{immediate:!0});function r(){s.avoidInteraction||!z.value&&s.avoidToCheck||(z.value=!z.value,o("update:modelValue",z.value))}function b(p){return`${{}.TEAM_LOGOS_URL||"https://golstatsimages.blob.core.windows.net/teams-80/"}${p}.png`}return(p,a)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["checkbox",`box-${e.boxPosition}`]),onClick:r},[t.createElementVNode("div",{class:"checkbox__box",style:t.normalizeStyle(Z.value)},[z.value?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[s.boxValue?(t.openBlock(),t.createElementBlock("div",{key:0,class:"checkbox__box__value",style:t.normalizeStyle(m.value)},t.toDisplayString(e.boxValue),5)):(t.openBlock(),t.createElementBlock("div",nYe,[(t.openBlock(),t.createElementBlock("svg",iYe,[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,oYe)]))]))],64)):t.createCommentVNode("",!0)],4),e.teamsIds&&e.teamsIds.length?(t.openBlock(),t.createElementBlock("div",sYe,[t.createElementVNode("div",lYe,[t.createElementVNode("img",{src:b(e.teamsIds[0]),alt:""},null,8,cYe)]),t.createElementVNode("div",dYe,[t.createElementVNode("img",{src:b(e.teamsIds[1]),alt:""},null,8,uYe)])])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"checkbox__label",style:t.normalizeStyle(g.value)},t.toDisplayString(e.label),5)],2))}},pYe=rYe(hYe,[["__scopeId","data-v-b6f124d8"]]),fYe=(e,o)=>{const s=e.__vccOpts||e;for(const[z,Z]of o)s[z]=Z;return s},Dk={components:{GSCButton:aYe,GSCCheckbox:pYe},data(){return{update:0,all:!1,refreshBtn14:0,refreshBtn24:0,refreshBtn34:0,refreshBtn44:0,sectors:Array.from({length:16},(e,o)=>({sector:o+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 o=e.sort();JSON.stringify(o)!==JSON.stringify(this.lastUpdatedValue)&&(this.lastUpdatedValue=o,this.sectors.forEach((s,z)=>{s.active=e.includes(z+1),this.validateField(z)}),this.$emit("update:modelValue",e))}},sectors:{handler(e){var o=[];for(let s=0;s<e.length;s++)e[s].active&&o.push(s+1);this.$emit("update:modelValue",o)},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 o=0;o<this.sectors.length;o++)this.sectors[o].active=!0,this.validateField(o);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 o=0;o<this.sectors.length;o++)this.sectors[o].active=!1,this.validateField(o),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 o=0;this.sectors[e].active=!this.sectors[e].active;for(let s=0;s<this.sectors.length;s++)this.sectors[s].active&&(o+=1);o==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 o=0;for(let s=0;s<this.sectors.length;s++)this.sectors[s].active&&(o+=1);o==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,o==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 o=0;for(let s=0;s<this.sectors.length;s++)this.sectors[s].active&&(o+=1);o==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,o==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 o=0;for(let s=0;s<this.sectors.length;s++)this.sectors[s].active&&(o+=1);o==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,o==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 o=0;for(let s=0;s<this.sectors.length;s++)this.sectors[s].active&&(o+=1);o==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,o==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)}}},iF=()=>{t.useCssVars(e=>({"4fe806fe":e.widthContainer,"91de7c52":e.heightContainer,"266afcdc":e.backgroundColor,"2b853536":e.titleFontSize,"986b6446":e.widthFieldGrid,"1af308b6":e.heightFieldGrid}))},oF=Dk.setup;Dk.setup=oF?(e,o)=>(iF(),oF(e,o)):iF;const mYe={class:"gsc-field"},gYe={class:"gsc-field__title-checked"},yYe={class:"gsc-field__title-checked__title"},vYe={class:"gsc-field__container-field"},bYe={class:"gsc-field__container-field__field"},xYe={width:"100%",height:"100%",fill:"#2e3b46",xmlns:"http://www.w3.org/2000/svg"},_Ye=["stroke"],wYe=["stroke","stroke-width"],kYe=["stroke","stroke-width"],SYe=["stroke-width","stroke"],CYe=["fill","fill-opacity","stroke","stroke-width"],TYe=["fill","fill-opacity","stroke","stroke-width"],AYe=["fill","fill-opacity","stroke","stroke-width"],EYe=["fill","fill-opacity","stroke","stroke-width"],MYe=["fill","fill-opacity","stroke","stroke-width"],IYe=["fill","fill-opacity","stroke","stroke-width"],PYe=["fill","fill-opacity","stroke","stroke-width"],LYe=["fill","fill-opacity","stroke","stroke-width"],BYe=["fill","fill-opacity","stroke","stroke-width"],zYe=["fill","fill-opacity","stroke","stroke-width"],DYe=["fill","fill-opacity","stroke","stroke-width"],OYe=["fill","fill-opacity","stroke","stroke-width"],NYe=["fill","fill-opacity","stroke","stroke-width"],FYe=["fill","fill-opacity","stroke","stroke-width"],RYe=["fill","fill-opacity","stroke","stroke-width"],VYe=["fill","fill-opacity","stroke","stroke-width"],jYe={class:"gsc-field__container-field__bar-buttons"};function UYe(e,o,s,z,Z,m){const g=t.resolveComponent("GSCCheckbox"),r=t.resolveComponent("GSCButton");return t.openBlock(),t.createElementBlock("div",mYe,[t.createElementVNode("div",gYe,[t.createElementVNode("div",yYe,t.toDisplayString(s.title),1),t.createElementVNode("div",{class:"gsc-field__title-checked__check-cont",style:t.normalizeStyle(s.widthField>=350?"min-width: 123px":"")},[(t.openBlock(),t.createBlock(g,{label:s.widthField<350?"Todas":"Todas las zonas","font-family":"Poppins-Regular","box-value-font-family":"Poppins-Regular","box-position":"right","label-font-size":s.titleFontSize,"label-white-space":"nowrap","box-margin-top":"0.4em",value:Z.all,key:Z.update,"model-value":Z.all,"onUpdate:modelValue":m.clickAll},null,8,["label","label-font-size","value","model-value","onUpdate:modelValue"]))],4)]),t.createElementVNode("div",vYe,[t.createElementVNode("div",bYe,[(t.openBlock(),t.createElementBlock("svg",xYe,[t.createElementVNode("rect",{x:"1.5",y:"0.5",width:"100%",height:"100%",rx:"1.5",stroke:s.colorLineField},null,8,_Ye),t.createElementVNode("path",{style:t.normalizeStyle("transform: translate("+m.translx+"px, "+m.transly+"px);"),d:"M303.597 39.9799H263.371C262.817 39.9799 262.369 40.4301 262.371 40.984L262.842 155.176C262.845 155.726 263.292 156.172 263.842 156.172H302.884",stroke:s.colorLineField,"stroke-width":s.borderWidthLineField,"stroke-linecap":"square"},null,12,wYe),t.createElementVNode("path",{style:t.normalizeStyle("transform: translateY("+m.transly+"px);"),class:"porteria1",d:"M1.09097 156.172L41.3162 156.172C41.8701 156.172 42.3185 155.722 42.3162 155.168L41.845 40.9758C41.8427 40.4252 41.3957 39.98 40.845 39.98L1.80338 39.98",stroke:s.colorLineField,"stroke-width":s.borderWidthLineField,"stroke-linecap":"square"},null,12,kYe),t.createElementVNode("path",{style:t.normalizeStyle("transform: translate("+m.translxcircle+"px, "+m.transly+"px);"),class:"circle",d:"M182.911 97.4512C182.911 113.726 169.44 126.936 152.801 126.936C136.162 126.936 122.691 113.726 122.691 97.4512C122.691 81.1767 136.162 67.9662 152.801 67.9662C169.44 67.9662 182.911 81.1767 182.911 97.4512Z","stroke-width":s.borderWidthLineField,stroke:s.colorLineField},null,12,SYe),t.createElementVNode("rect",{x:"0%",y:"0%",width:"25%",height:"25%",fill:Z.sectors[0].active?s.backgroundSectorActive:s.backgroundSectorDisabled,"fill-opacity":s.opacitySector,stroke:s.borderColor,"stroke-width":s.borderWidth,onClick:o[0]||(o[0]=b=>m.selectSector(0))},null,8,CYe),t.createElementVNode("rect",{x:"0%",y:"25%",width:"25%",height:"25%",fill:Z.sectors[1].active?s.backgroundSectorActive:s.backgroundSectorDisabled,"fill-opacity":s.opacitySector,stroke:s.borderColor,"stroke-width":s.borderWidth,onClick:o[1]||(o[1]=b=>m.selectSector(1))},null,8,TYe),t.createElementVNode("rect",{x:"0%",y:"50%",width:"25%",height:"25%",fill:Z.sectors[2].active?s.backgroundSectorActive:s.backgroundSectorDisabled,"fill-opacity":s.opacitySector,stroke:s.borderColor,"stroke-width":s.borderWidth,onClick:o[2]||(o[2]=b=>m.selectSector(2))},null,8,AYe),t.createElementVNode("rect",{x:"0%",y:"75%",width:"25%",height:"25%",fill:Z.sectors[3].active?s.backgroundSectorActive:s.backgroundSectorDisabled,"fill-opacity":s.opacitySector,stroke:s.borderColor,"stroke-width":s.borderWidth,onClick:o[3]||(o[3]=b=>m.selectSector(3))},null,8,EYe),t.createElementVNode("rect",{x:"25%",y:"0%",width:"25%",height:"25%",fill:Z.sectors[4].active?s.backgroundSectorActive:s.backgroundSectorDisabled,"fill-opacity":s.opacitySector,stroke:s.borderColor,"stroke-width":s.borderWidth,onClick:o[4]||(o[4]=b=>m.selectSector(4))},null,8,MYe),t.createElementVNode("rect",{x:"25%",y:"25%",width:"25%",height:"25%",fill:Z.sectors[5].active?s.backgroundSectorActive:s.backgroundSectorDisabled,"fill-opacity":s.opacitySector,stroke:s.borderColor,"stroke-width":s.borderWidth,onClick:o[5]||(o[5]=b=>m.selectSector(5))},null,8,IYe),t.createElementVNode("rect",{x:"25%",y:"50%",width:"25%",height:"25%",fill:Z.sectors[6].active?s.backgroundSectorActive:s.backgroundSectorDisabled,"fill-opacity":s.opacitySector,stroke:s.borderColor,"stroke-width":s.borderWidth,onClick:o[6]||(o[6]=b=>m.selectSector(6))},null,8,PYe),t.createElementVNode("rect",{x:"25%",y:"75%",width:"25%",height:"25%",fill:Z.sectors[7].active?s.backgroundSectorActive:s.backgroundSectorDisabled,"fill-opacity":s.opacitySector,stroke:s.borderColor,"stroke-width":s.borderWidth,onClick:o[7]||(o[7]=b=>m.selectSector(7))},null,8,LYe),t.createElementVNode("rect",{x:"50%",y:"0%",width:"25%",height:"25%",fill:Z.sectors[8].active?s.backgroundSectorActive:s.backgroundSectorDisabled,"fill-opacity":s.opacitySector,stroke:s.borderColor,"stroke-width":s.borderWidth,onClick:o[8]||(o[8]=b=>m.selectSector(8))},null,8,BYe),t.createElementVNode("rect",{x:"50%",y:"25%",width:"25%",height:"25%",fill:Z.sectors[9].active?s.backgroundSectorActive:s.backgroundSectorDisabled,"fill-opacity":s.opacitySector,stroke:s.borderColor,"stroke-width":s.borderWidth,onClick:o[9]||(o[9]=b=>m.selectSector(9))},null,8,zYe),t.createElementVNode("rect",{x:"50%",y:"50%",width:"25%",height:"25%",fill:Z.sectors[10].active?s.backgroundSectorActive:s.backgroundSectorDisabled,"fill-opacity":s.opacitySector,stroke:s.borderColor,"stroke-width":s.borderWidth,onClick:o[10]||(o[10]=b=>m.selectSector(10))},null,8,DYe),t.createElementVNode("rect",{x:"50%",y:"75%",width:"25%",height:"25%",fill:Z.sectors[11].active?s.backgroundSectorActive:s.backgroundSectorDisabled,"fill-opacity":s.opacitySector,stroke:s.borderColor,"stroke-width":s.borderWidth,onClick:o[11]||(o[11]=b=>m.selectSector(11))},null,8,OYe),t.createElementVNode("rect",{x:"75%",y:"0%",width:"25%",height:"25%",fill:Z.sectors[12].active?s.backgroundSectorActive:s.backgroundSectorDisabled,"fill-opacity":s.opacitySector,stroke:s.borderColor,"stroke-width":s.borderWidth,onClick:o[12]||(o[12]=b=>m.selectSector(12))},null,8,NYe),t.createElementVNode("rect",{x:"75%",y:"25%",width:"25%",height:"25%",fill:Z.sectors[13].active?s.backgroundSectorActive:s.backgroundSectorDisabled,"fill-opacity":s.opacitySector,stroke:s.borderColor,"stroke-width":s.borderWidth,onClick:o[13]||(o[13]=b=>m.selectSector(13))},null,8,FYe),t.createElementVNode("rect",{x:"75%",y:"50%",width:"25%",height:"25%",fill:Z.sectors[14].active?s.backgroundSectorActive:s.backgroundSectorDisabled,"fill-opacity":s.opacitySector,stroke:s.borderColor,"stroke-width":s.borderWidth,onClick:o[14]||(o[14]=b=>m.selectSector(14))},null,8,RYe),t.createElementVNode("rect",{x:"75%",y:"75%",width:"25%",height:"25%",fill:Z.sectors[15].active?s.backgroundSectorActive:s.backgroundSectorDisabled,"fill-opacity":s.opacitySector,stroke:s.borderColor,"stroke-width":s.borderWidth,onClick:o[15]||(o[15]=b=>m.selectSector(15))},null,8,VYe)]))]),t.createElementVNode("div",jYe,[(t.openBlock(),t.createBlock(r,{"text-value":"1/4 tos","font-size":"12px",height:"26px",width:"65px","type-on-off":!0,"border-width":1,"font-color":"#bfc2c5","border-color":"#8c9399","border-radius":"4px","font-family":"Poppins-Medium","active-border-width":1,"background-color":"","active-background-color":"#cbee6b33",ref:"btn14",onStatus:m.btn14,key:Z.refreshBtn14,value:e.status14},null,8,["onStatus","value"])),(t.openBlock(),t.createBlock(r,{"text-value":"2/4 tos","font-size":"12px",height:"26px",width:"65px","type-on-off":!0,"border-width":1,"font-color":"#bfc2c5","border-color":"#8c9399","border-radius":"4px","font-family":"Poppins-Medium","active-border-width":1,"background-color":"","active-background-color":"#cbee6b33",ref:"btn24",onStatus:m.btn24,key:Z.refreshBtn24,value:e.status24},null,8,["onStatus","value"])),(t.openBlock(),t.createBlock(r,{"text-value":"3/4 tos","font-size":"12px",height:"26px",width:"65px","type-on-off":!0,"border-width":1,"font-color":"#bfc2c5","border-color":"#8c9399","border-radius":"4px","font-family":"Poppins-Medium","active-border-width":1,"background-color":"","active-background-color":"#cbee6b33",ref:"btn34",onStatus:m.btn34,key:Z.refreshBtn34,value:e.status34},null,8,["onStatus","value"])),(t.openBlock(),t.createBlock(r,{"text-value":"4/4 tos","font-size":"12px",height:"26px",width:"65px","type-on-off":!0,"border-width":1,"font-color":"#bfc2c5","border-color":"#8c9399","border-radius":"4px","font-family":"Poppins-Medium","active-border-width":1,"background-color":"","active-background-color":"#cbee6b33",ref:"btn44",onStatus:m.btn44,key:Z.refreshBtn44,value:e.status44},null,8,["onStatus","value"]))])])])}const sF=fYe(Dk,[["render",UYe],["__scopeId","data-v-b85699b8"]]),GYe={class:"toggle-buttons__background"},HYe=["onClick"],ZYe={__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:o}){const s=e;t.useCssVars(g=>({"93d865f4":e.height,"34a70bf2":e.width,"3b25a65d":e.mainBackgroundColor,b988d706:e.borderRadius,"6ca18efc":e.mainBorderWidth,"6ecf8bc2":e.mainBorderColor,"1c0cd0f2":e.fontFamily,"6a733de2":e.fontSize,"0f5c20d5":e.activeBorderWidth,"0e452272":e.activeBorderColor,d69fa5a0:e.activeBackgroundColor}));const z=t.ref(s.selectedButtonIndex),Z=t.computed(()=>({"--grid-template-columns":`repeat(${s.buttons.length}, 1fr)`}));t.watch(()=>s.selectedButtonIndex,g=>{z.value=g}),t.watch(z,(g,r)=>{g!==r&&o("change",{index:g,button:s.buttons[g]})});function m(g){z.value=g}return(g,r)=>(t.openBlock(),t.createElementBlock("div",GYe,[t.createElementVNode("div",{class:"toggle-buttons",style:t.normalizeStyle(Z.value)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.buttons,(b,p)=>(t.openBlock(),t.createElementBlock("div",{key:`b${p}`,class:t.normalizeClass(["toggle-buttons__button",{active:z.value===p}]),onClick:a=>m(p)},t.toDisplayString(b.text||b),11,HYe))),128))],4)]))}},WYe=ic(ZYe,[["__scopeId","data-v-f34a7e56"]]);function lF(e,o){return function(){return e.apply(o,arguments)}}const{toString:qYe}=Object.prototype,{getPrototypeOf:fv}=Object,{iterator:cb,toStringTag:cF}=Symbol,w5=(({hasOwnProperty:e})=>(o,s)=>e.call(o,s))(Object.prototype),db=(e,o)=>{let s=e;const z=[];for(;s!=null&&s!==Object.prototype;){if(z.indexOf(s)!==-1)return!1;if(z.push(s),w5(s,o))return!0;s=fv(s)}return!1},JYe=(e,o)=>e!=null&&db(e,o)?e[o]:void 0,Ok=(e=>o=>{const s=qYe.call(o);return e[s]||(e[s]=s.slice(8,-1).toLowerCase())})(Object.create(null)),Uf=e=>(e=e.toLowerCase(),o=>Ok(o)===e),k5=e=>o=>typeof o===e,{isArray:tg}=Array,mv=k5("undefined");function gv(e){return e!==null&&!mv(e)&&e.constructor!==null&&!mv(e.constructor)&&hp(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const dF=Uf("ArrayBuffer");function YYe(e){let o;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?o=ArrayBuffer.isView(e):o=e&&e.buffer&&dF(e.buffer),o}const XYe=k5("string"),hp=k5("function"),uF=k5("number"),yv=e=>e!==null&&typeof e=="object",$Ye=e=>e===!0||e===!1,S5=e=>{if(!yv(e))return!1;const o=fv(e);return(o===null||o===Object.prototype||fv(o)===null)&&!db(e,cF)&&!db(e,cb)},KYe=e=>{if(!yv(e)||gv(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},QYe=Uf("Date"),eXe=Uf("File"),tXe=e=>!!(e&&typeof e.uri<"u"),aXe=e=>e&&typeof e.getParts<"u",rXe=Uf("Blob"),nXe=Uf("FileList"),iXe=e=>yv(e)&&hp(e.pipe);function oXe(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const hF=oXe(),pF=typeof hF.FormData<"u"?hF.FormData:void 0,sXe=e=>{if(!e)return!1;if(pF&&e instanceof pF)return!0;const o=fv(e);if(!o||o===Object.prototype||!hp(e.append))return!1;const s=Ok(e);return s==="formdata"||s==="object"&&hp(e.toString)&&e.toString()==="[object FormData]"},lXe=Uf("URLSearchParams"),[cXe,dXe,uXe,hXe]=["ReadableStream","Request","Response","Headers"].map(Uf),pXe=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ub(e,o,{allOwnKeys:s=!1}={}){if(e===null||typeof e>"u")return;let z,Z;if(typeof e!="object"&&(e=[e]),tg(e))for(z=0,Z=e.length;z<Z;z++)o.call(null,e[z],z,e);else{if(gv(e))return;const m=s?Object.getOwnPropertyNames(e):Object.keys(e),g=m.length;let r;for(z=0;z<g;z++)r=m[z],o.call(null,e[r],r,e)}}function fF(e,o){if(gv(e))return null;o=o.toLowerCase();const s=Object.keys(e);let z=s.length,Z;for(;z-- >0;)if(Z=s[z],o===Z.toLowerCase())return Z;return null}const ag=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),mF=e=>!mv(e)&&e!==ag;function Nk(...e){const{caseless:o,skipUndefined:s}=mF(this)&&this||{},z={},Z=(m,g)=>{if(g==="__proto__"||g==="constructor"||g==="prototype")return;const r=o&&typeof g=="string"&&fF(z,g)||g,b=w5(z,r)?z[r]:void 0;S5(b)&&S5(m)?z[r]=Nk(b,m):S5(m)?z[r]=Nk({},m):tg(m)?z[r]=m.slice():(!s||!mv(m))&&(z[r]=m)};for(let m=0,g=e.length;m<g;m++){const r=e[m];if(!r||gv(r)||(ub(r,Z),typeof r!="object"||tg(r)))continue;const b=Object.getOwnPropertySymbols(r);for(let p=0;p<b.length;p++){const a=b[p];CXe.call(r,a)&&Z(r[a],a)}}return z}const fXe=(e,o,s,{allOwnKeys:z}={})=>(ub(o,(Z,m)=>{s&&hp(Z)?Object.defineProperty(e,m,{__proto__:null,value:lF(Z,s),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,m,{__proto__:null,value:Z,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:z}),e),mXe=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),gXe=(e,o,s,z)=>{e.prototype=Object.create(o.prototype,z),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:o.prototype}),s&&Object.assign(e.prototype,s)},yXe=(e,o,s,z)=>{let Z,m,g;const r={};if(o=o||{},e==null)return o;do{for(Z=Object.getOwnPropertyNames(e),m=Z.length;m-- >0;)g=Z[m],(!z||z(g,e,o))&&!r[g]&&(o[g]=e[g],r[g]=!0);e=s!==!1&&fv(e)}while(e&&(!s||s(e,o))&&e!==Object.prototype);return o},vXe=(e,o,s)=>{e=String(e),(s===void 0||s>e.length)&&(s=e.length),s-=o.length;const z=e.indexOf(o,s);return z!==-1&&z===s},bXe=e=>{if(!e)return null;if(tg(e))return e;let o=e.length;if(!uF(o))return null;const s=new Array(o);for(;o-- >0;)s[o]=e[o];return s},xXe=(e=>o=>e&&o instanceof e)(typeof Uint8Array<"u"&&fv(Uint8Array)),_Xe=(e,o)=>{const s=(e&&e[cb]).call(e);let z;for(;(z=s.next())&&!z.done;){const Z=z.value;o.call(e,Z[0],Z[1])}},wXe=(e,o)=>{let s;const z=[];for(;(s=e.exec(o))!==null;)z.push(s);return z},kXe=Uf("HTMLFormElement"),SXe=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(o,s,z){return s.toUpperCase()+z}),{propertyIsEnumerable:CXe}=Object.prototype,TXe=Uf("RegExp"),gF=(e,o)=>{const s=Object.getOwnPropertyDescriptors(e),z={};ub(s,(Z,m)=>{let g;(g=o(Z,m,e))!==!1&&(z[m]=g||Z)}),Object.defineProperties(e,z)},AXe=e=>{gF(e,(o,s)=>{if(hp(e)&&["arguments","caller","callee"].includes(s))return!1;const z=e[s];if(hp(z)){if(o.enumerable=!1,"writable"in o){o.writable=!1;return}o.set||(o.set=()=>{throw Error("Can not rewrite read-only method '"+s+"'")})}})},EXe=(e,o)=>{const s={},z=Z=>{Z.forEach(m=>{s[m]=!0})};return tg(e)?z(e):z(String(e).split(o)),s},MXe=()=>{},IXe=(e,o)=>e!=null&&Number.isFinite(e=+e)?e:o;function PXe(e){return!!(e&&hp(e.append)&&e[cF]==="FormData"&&e[cb])}const LXe=e=>{const o=new WeakSet,s=z=>{if(yv(z)){if(o.has(z))return;if(gv(z))return z;if(!("toJSON"in z)){o.add(z);const Z=tg(z)?[]:{};return ub(z,(m,g)=>{const r=s(m);!mv(r)&&(Z[g]=r)}),o.delete(z),Z}}return z};return s(e)},BXe=Uf("AsyncFunction"),zXe=e=>e&&(yv(e)||hp(e))&&hp(e.then)&&hp(e.catch),yF=((e,o)=>e?setImmediate:o?((s,z)=>(ag.addEventListener("message",({source:Z,data:m})=>{Z===ag&&m===s&&z.length&&z.shift()()},!1),Z=>{z.push(Z),ag.postMessage(s,"*")}))(`axios@${Math.random()}`,[]):s=>setTimeout(s))(typeof setImmediate=="function",hp(ag.postMessage)),DXe=typeof queueMicrotask<"u"?queueMicrotask.bind(ag):typeof process<"u"&&process.nextTick||yF,vF=e=>e!=null&&hp(e[cb]),OXe=e=>e!=null&&db(e,cb)&&vF(e),on={isArray:tg,isArrayBuffer:dF,isBuffer:gv,isFormData:sXe,isArrayBufferView:YYe,isString:XYe,isNumber:uF,isBoolean:$Ye,isObject:yv,isPlainObject:S5,isEmptyObject:KYe,isReadableStream:cXe,isRequest:dXe,isResponse:uXe,isHeaders:hXe,isUndefined:mv,isDate:QYe,isFile:eXe,isReactNativeBlob:tXe,isReactNative:aXe,isBlob:rXe,isRegExp:TXe,isFunction:hp,isStream:iXe,isURLSearchParams:lXe,isTypedArray:xXe,isFileList:nXe,forEach:ub,merge:Nk,extend:fXe,trim:pXe,stripBOM:mXe,inherits:gXe,toFlatObject:yXe,kindOf:Ok,kindOfTest:Uf,endsWith:vXe,toArray:bXe,forEachEntry:_Xe,matchAll:wXe,isHTMLForm:kXe,hasOwnProperty:w5,hasOwnProp:w5,hasOwnInPrototypeChain:db,getSafeProp:JYe,reduceDescriptors:gF,freezeMethods:AXe,toObjectSet:EXe,toCamelCase:SXe,noop:MXe,toFiniteNumber:IXe,findKey:fF,global:ag,isContextDefined:mF,isSpecCompliantForm:PXe,toJSONObject:LXe,isAsyncFn:BXe,isThenable:zXe,setImmediate:yF,asap:DXe,isIterable:vF,isSafeIterable:OXe},NXe=on.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"]),FXe=e=>{const o={};let s,z,Z;return e&&e.split(`
|
|
89
|
+
*/const Hu={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"}},TN={itemsToShow:{default:Hu.itemsToShow,type:Number},itemsToScroll:{default:Hu.itemsToScroll,type:Number},wrapAround:{default:Hu.wrapAround,type:Boolean},throttle:{default:Hu.throttle,type:Number},snapAlign:{default:Hu.snapAlign,validator(e){return["start","end","center","center-even","center-odd"].includes(e)}},transition:{default:Hu.transition,type:Number},breakpoints:{default:Hu.breakpoints,type:Object},autoplay:{default:Hu.autoplay,type:Number},pauseAutoplayOnHover:{default:Hu.pauseAutoplayOnHover,type:Boolean},modelValue:{default:void 0,type:Number},mouseDrag:{default:Hu.mouseDrag,type:Boolean},touchDrag:{default:Hu.touchDrag,type:Boolean},dir:{default:Hu.dir,validator(e){return["rtl","ltr"].includes(e)}},i18n:{default:Hu.i18n,type:Object},settings:{default(){return{}},type:Object}};function Zje({config:e,slidesCount:o}){const{snapAlign:s,wrapAround:z,itemsToShow:Z=1}=e;if(z)return Math.max(o-1,0);let m;switch(s){case"start":m=o-Z;break;case"end":m=o-1;break;case"center":case"center-odd":m=o-Math.ceil((Z-.5)/2);break;case"center-even":m=o-Math.ceil(Z/2);break;default:m=0;break}return Math.max(m,0)}function Wje({config:e,slidesCount:o}){const{wrapAround:s,snapAlign:z,itemsToShow:Z=1}=e;let m=0;if(s||Z>o)return m;switch(z){case"start":m=0;break;case"end":m=Z-1;break;case"center":case"center-odd":m=Math.floor((Z-1)/2);break;case"center-even":m=Math.floor((Z-2)/2);break;default:m=0;break}return m}function xk({val:e,max:o,min:s}){return o<s?e:Math.min(Math.max(e,s),o)}function qje({config:e,currentSlide:o,slidesCount:s}){const{snapAlign:z,wrapAround:Z,itemsToShow:m=1}=e;let g=o;switch(z){case"center":case"center-odd":g-=(m-1)/2;break;case"center-even":g-=(m-2)/2;break;case"end":g-=m-1;break}return Z?g:xk({val:g,max:s-m,min:0})}function AN(e){return e?e.reduce((o,s)=>{var z;return s.type===t.Fragment?[...o,...AN(s.children)]:((z=s.type)===null||z===void 0?void 0:z.name)==="CarouselSlide"?[...o,s]:o},[]):[]}function _k({val:e,max:o,min:s=0}){return e>o?_k({val:e-(o+1),max:o,min:s}):e<s?_k({val:e+(o+1),max:o,min:s}):e}function Jje(e,o){let s;return o?function(...z){const Z=this;s||(e.apply(Z,z),s=!0,setTimeout(()=>s=!1,o))}:e}function Yje(e,o){let s;return function(...z){s&&clearTimeout(s),s=setTimeout(()=>{e(...z),s=null},o)}}function Xje(e="",o={}){return Object.entries(o).reduce((s,[z,Z])=>s.replace(`{${z}}`,String(Z)),e)}var $je=t.defineComponent({name:"ARIA",setup(){const e=t.inject("config",t.reactive(Object.assign({},Hu))),o=t.inject("currentSlide",t.ref(0)),s=t.inject("slidesCount",t.ref(0));return()=>t.h("div",{class:["carousel__liveregion","carousel__sr-only"],"aria-live":"polite","aria-atomic":"true"},Xje(e.i18n.itemXofY,{currentSlide:o.value+1,slidesCount:s.value}))}}),Kje=t.defineComponent({name:"Carousel",props:TN,setup(e,{slots:o,emit:s,expose:z}){var Z;const m=t.ref(null),g=t.ref([]),r=t.ref(0),b=t.ref(0),p=t.reactive(Object.assign({},Hu));let a=Object.assign({},Hu),_;const y=t.ref((Z=e.modelValue)!==null&&Z!==void 0?Z:0),x=t.ref(0),h=t.ref(0),n=t.ref(0),i=t.ref(0);let d,l;t.provide("config",p),t.provide("slidesCount",b),t.provide("currentSlide",y),t.provide("maxSlide",n),t.provide("minSlide",i),t.provide("slideWidth",r);function u(){_=Object.assign({},e.breakpoints),a=Object.assign(Object.assign(Object.assign({},a),e),{i18n:Object.assign(Object.assign({},a.i18n),e.i18n),breakpoints:void 0}),w(a)}function v(){if(!_||!Object.keys(_).length)return;const re=Object.keys(_).map(ie=>Number(ie)).sort((ie,me)=>+me-+ie);let le=Object.assign({},a);re.some(ie=>{const me=window.matchMedia(`(min-width: ${ie}px)`).matches;return me&&(le=Object.assign(Object.assign({},le),_[ie])),me}),w(le)}function w(re){Object.entries(re).forEach(([le,ie])=>p[le]=ie)}const C=Yje(()=>{v(),E()},16);function E(){if(!m.value)return;const re=m.value.getBoundingClientRect();r.value=re.width/p.itemsToShow}function A(){b.value<=0||(h.value=Math.ceil((b.value-1)/2),n.value=Zje({config:p,slidesCount:b.value}),i.value=Wje({config:p,slidesCount:b.value}),p.wrapAround||(y.value=xk({val:y.value,max:n.value,min:i.value})))}t.onMounted(()=>{t.nextTick(()=>E()),setTimeout(()=>E(),1e3),v(),U(),window.addEventListener("resize",C,{passive:!0}),s("init")}),t.onUnmounted(()=>{l&&clearTimeout(l),d&&clearInterval(d),window.removeEventListener("resize",C,{passive:!0})});let P=!1;const L={x:0,y:0},T={x:0,y:0},I=t.reactive({x:0,y:0}),M=t.ref(!1),S=t.ref(!1),B=()=>{M.value=!0},k=()=>{M.value=!1};function D(re){["INPUT","TEXTAREA","SELECT"].includes(re.target.tagName)||(P=re.type==="touchstart",P||re.preventDefault(),!(!P&&re.button!==0||G.value)&&(L.x=P?re.touches[0].clientX:re.clientX,L.y=P?re.touches[0].clientY:re.clientY,document.addEventListener(P?"touchmove":"mousemove",N,!0),document.addEventListener(P?"touchend":"mouseup",j,!0)))}const N=Jje(re=>{S.value=!0,T.x=P?re.touches[0].clientX:re.clientX,T.y=P?re.touches[0].clientY:re.clientY;const le=T.x-L.x,ie=T.y-L.y;I.y=ie,I.x=le},p.throttle);function j(){const re=p.dir==="rtl"?-1:1,le=Math.sign(I.x)*.4,ie=Math.round(I.x/r.value+le)*re;if(ie&&!P){const me=ye=>{ye.stopPropagation(),window.removeEventListener("click",me,!0)};window.addEventListener("click",me,!0)}$(y.value-ie),I.x=0,I.y=0,S.value=!1,document.removeEventListener(P?"touchmove":"mousemove",N,!0),document.removeEventListener(P?"touchend":"mouseup",j,!0)}function U(){!p.autoplay||p.autoplay<=0||(d=setInterval(()=>{p.pauseAutoplayOnHover&&M.value||ne()},p.autoplay))}function H(){d&&(clearInterval(d),d=null),U()}const G=t.ref(!1);function $(re){const le=p.wrapAround?re:xk({val:re,max:n.value,min:i.value});y.value===le||G.value||(s("slide-start",{slidingToIndex:re,currentSlideIndex:y.value,prevSlideIndex:x.value,slidesCount:b.value}),G.value=!0,x.value=y.value,y.value=le,l=setTimeout(()=>{if(p.wrapAround){const ie=_k({val:le,max:n.value,min:0});ie!==y.value&&(y.value=ie,s("loop",{currentSlideIndex:y.value,slidingToIndex:re}))}s("update:modelValue",y.value),s("slide-end",{currentSlideIndex:y.value,prevSlideIndex:x.value,slidesCount:b.value}),G.value=!1,H()},p.transition))}function ne(){$(y.value+p.itemsToScroll)}function q(){$(y.value-p.itemsToScroll)}const Q={slideTo:$,next:ne,prev:q};t.provide("nav",Q),t.provide("isSliding",G);const ee=t.computed(()=>qje({config:p,currentSlide:y.value,slidesCount:b.value}));t.provide("slidesToScroll",ee);const X=t.computed(()=>{const re=p.dir==="rtl"?-1:1,le=ee.value*r.value*re;return{transform:`translateX(${I.x-le}px)`,transition:`${G.value?p.transition:0}ms`,margin:p.wrapAround?`0 -${b.value*r.value}px`:"",width:"100%"}});function K(){u(),v(),A(),E(),H()}Object.keys(TN).forEach(re=>{["modelValue"].includes(re)||t.watch(()=>e[re],K)}),t.watch(()=>e.modelValue,re=>{re!==y.value&&$(Number(re))}),t.watch(b,A),s("before-init"),u();const ce={config:p,slidesCount:b,slideWidth:r,next:ne,prev:q,slideTo:$,currentSlide:y,maxSlide:n,minSlide:i,middleSlide:h};z({updateBreakpointsConfigs:v,updateSlidesData:A,updateSlideWidth:E,initDefaultConfigs:u,restartCarousel:K,slideTo:$,next:ne,prev:q,nav:Q,data:ce});const ue=o.default||o.slides,he=o.addons,pe=t.reactive(ce);return()=>{const re=AN(ue==null?void 0:ue(pe)),le=(he==null?void 0:he(pe))||[];re.forEach((ve,we)=>ve.props.index=we);let ie=re;if(p.wrapAround){const ve=re.map((Se,Te)=>t.cloneVNode(Se,{index:-re.length+Te,isClone:!0,key:`clone-before-${Te}`})),we=re.map((Se,Te)=>t.cloneVNode(Se,{index:re.length+Te,isClone:!0,key:`clone-after-${Te}`}));ie=[...ve,...re,...we]}g.value=re,b.value=Math.max(re.length,1);const me=t.h("ol",{class:"carousel__track",style:X.value,onMousedownCapture:p.mouseDrag?D:null,onTouchstartPassiveCapture:p.touchDrag?D:null},ie),ye=t.h("div",{class:"carousel__viewport"},me);return t.h("section",{ref:m,class:{carousel:!0,"is-sliding":G.value,"is-dragging":S.value,"is-hover":M.value,"carousel--rtl":p.dir==="rtl"},dir:p.dir,"aria-label":p.i18n.ariaGallery,tabindex:"0",onMouseenter:B,onMouseleave:k},[ye,le,t.h($je)])}}}),EN;(function(e){e.arrowUp="arrowUp",e.arrowDown="arrowDown",e.arrowRight="arrowRight",e.arrowLeft="arrowLeft"})(EN||(EN={}));var Qje=t.defineComponent({name:"CarouselSlide",props:{index:{type:Number,default:1},isClone:{type:Boolean,default:!1}},setup(e,{slots:o}){const s=t.inject("config",t.reactive(Object.assign({},Hu))),z=t.inject("currentSlide",t.ref(0)),Z=t.inject("slidesToScroll",t.ref(0)),m=t.inject("isSliding",t.ref(!1)),g=()=>e.index===z.value,r=()=>e.index===z.value-1,b=()=>e.index===z.value+1,p=()=>{const a=Math.floor(Z.value),_=Math.ceil(Z.value+s.itemsToShow-1);return e.index>=a&&e.index<=_};return()=>{var a;return t.h("li",{style:{width:`${100/s.itemsToShow}%`},class:{carousel__slide:!0,"carousel__slide--clone":e.isClone,"carousel__slide--visible":p(),"carousel__slide--active":g(),"carousel__slide--prev":r(),"carousel__slide--next":b(),"carousel__slide--sliding":m.value},"aria-hidden":!p()},(a=o.default)===null||a===void 0?void 0:a.call(o))}}});const eUe=(e,o)=>{const s=e.__vccOpts||e;for(const[z,Z]of o)s[z]=Z;return s},tUe=e=>(t.pushScopeId("data-v-54620d25"),e=e(),t.popScopeId(),e),aUe={class:"gsc-carousel"},rUe={key:0},nUe=tUe(()=>t.createElementVNode("div",null,"no hay",-1)),iUe=[nUe],oUe={class:"gsc-carousel__2d__slides"},sUe={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},lUe=["fill"],cUe={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},dUe=["fill"],uUe={class:"gsc-carousel__2d__navigation"},hUe={width:"8",height:"15",viewBox:"0 0 8 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},pUe=["stroke"],fUe={key:1,class:"gsc-carousel__2d__navigation__pagination"},mUe=["onClick"],gUe={width:"7",height:"15",viewBox:"0 0 7 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},yUe=["stroke"],vUe={__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(o=>o 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:o,emit:s}){const z=e;t.useCssVars(n=>({"2c72d674":e.slideLeftArrowBackgroundImage,"90a63f40":e.slidesArrowsLeftAndRight,"2627d097":e.slideRightArrowBackgroundImage,"1904d43f":e.marginTop,cfb58986:e.secondarySlidesOpacity}));const Z=t.ref(null),m=t.ref({}),g=t.ref(0),r=t.ref(!1);t.watch(Z,n=>{n&&r.value?(r.value=!1,b(z.items)):n&&n.slideTo&&n.slideTo(g.value)},{deep:!0}),t.watch(()=>z.currentItemIndex,n=>{g.value!==n&&y(n)}),t.watch(()=>z.defaultItemByIndex,n=>{g.value!==n&&y(n)}),t.watch(()=>z.items,n=>{Z.value?b(n):r.value=!0},{immediate:!0});function b(n){n&&n.length&&Z.value&&setTimeout(()=>{if(z.defaultItemByProp){const i=z.items.findIndex(d=>d[z.defaultItemByProp.propName]===z.defaultItemByProp.value);i!==-1?(g.value=i,m.value=n[i]):(g.value=0,m.value=n[0])}else g.value=z.defaultItemByIndex,m.value=n[z.defaultItemByIndex];Z.value.slideTo&&Z.value.slideTo(g.value),m.value&&g.value===0&&s("input",{selectedItem:m.value,selectedItemIndex:g.value})},500)}function p(){Z.value&&Z.value.next()}function a(){Z.value&&Z.value.prev()}function _(){Z.value&&Z.value.updateSlideWidth()}function y(n){Z.value&&Z.value.slideTo(n)}function x(n){Z.value.slideTo(n)}function h(n){const i=n.slidingToIndex<0?z.items.length-1:n.slidingToIndex===z.items.length?0:n.slidingToIndex;g.value=i,m.value=z.items[i],s("update:currentItemIndex",i),s("input",{selectedItem:m.value,selectedItemIndex:g.value})}return o({prev:a,next:p,updateSlideWidth:_,slideTo:y}),(n,i)=>(t.openBlock(),t.createElementBlock("div",aUe,[z.is3d?(t.openBlock(),t.createElementBlock("div",rUe,iUe)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(["gsc-carousel__2d",{"main-slide-priority":e.isMainSlidePriority}])},[t.createElementVNode("div",oUe,[t.createVNode(t.unref(Kje),{ref_key:"carousel2d",ref:Z,"items-to-show":e.itemsToShow,"wrap-around":e.wrapAround,onSlideStart:h},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(d,l)=>(t.openBlock(),t.createBlock(t.unref(Qje),{key:l},{default:t.withCtx(()=>[t.renderSlot(n.$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:i[0]||(i[0]=d=>Z.value.prev())},[t.createElementVNode("div",{class:t.normalizeClass(["gsc-carousel__2d__slide-button",{rounded:e.areSlidesArrowsRounded}])},[(t.openBlock(),t.createElementBlock("svg",sUe,[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,lUe)]))],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:i[1]||(i[1]=d=>p())},[t.createElementVNode("div",{class:t.normalizeClass(["gsc-carousel__2d__slide-button",{rounded:e.areSlidesArrowsRounded}])},[(t.openBlock(),t.createElementBlock("svg",cUe,[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,dUe)]))],2)],4)):t.createCommentVNode("",!0),t.createElementVNode("div",uUe,[e.areNavigationArrowsVisible?(t.openBlock(),t.createElementBlock("div",{key:0,class:"gsc-carousel__2d__navigation__arrow-left",onClick:i[2]||(i[2]=d=>a())},[(t.openBlock(),t.createElementBlock("svg",hUe,[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:z.arrowsColor},null,8,pUe)]))])):t.createCommentVNode("",!0),e.isPaginationVisible?(t.openBlock(),t.createElementBlock("div",fUe,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(d,l)=>(t.openBlock(),t.createElementBlock("div",{key:`i-${l}`,class:"gsc-carousel__2d__navigation__pagination__item",style:t.normalizeStyle({height:`${z.navigationHeight}px`,width:`${g.value===l?z.navigationActiveWidth:z.navigationActiveWidth/2}px`,borderRadius:`${z.navigationBorderRadius}px`,backgroundColor:`${g.value===l?z.navigationActiveColor:z.navigationColor}`,transition:"all 0.1s ease-in-out"}),onClick:u=>x(l)},null,12,mUe))),128))])):t.createCommentVNode("",!0),e.areNavigationArrowsVisible?(t.openBlock(),t.createElementBlock("div",{key:2,class:"gsc-carousel__2d__navigation__arrow-right",onClick:i[3]||(i[3]=d=>Z.value.next())},[(t.openBlock(),t.createElementBlock("svg",gUe,[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:z.arrowsColor},null,8,yUe)]))])):t.createCommentVNode("",!0)])],2))]))}},bUe=eUe(vUe,[["__scopeId","data-v-54620d25"]]),wk=(e,o)=>{const s=e.__vccOpts||e;for(const[z,Z]of o)s[z]=Z;return s};let MN=null;const kk={components:{},props:{isSafari:{type:Boolean,default:!1},titleCategory:{type:String,default:"RESUMEN"},dateGame:{type:String,default:""},colorBackgroundHome:{type:String,default:"#000000"},colorBackgroundAway:{type:String,default:"#FFFFFF"},logoHome:{type:String,default:""},matchday:{type:String,default:""},seasonName:{type:String,default:""},logoAway:{type:String,default:""},score:{type:String,default:""},background:{type:String,default:""}},data(){return{gamesContainerWidth:0}},computed:{date(){const e=this.gamesContainerWidth;return e<=400?"date400":e<=540?"date540":e<=650?"date650":"date"},seasoncontainer(){const e=this.gamesContainerWidth;return e<=400?"season-container400":e<=540?"season-container540":e<=650?"season-container650":"season-container"},matchcontainer(){const e=this.gamesContainerWidth;return e<=400?"match-container400":e<=540?"match-container540":e<=650?"match-container650":"match-container"},containerinfogame(){const e=this.gamesContainerWidth;return e<=400?"container-info-game400":e<=540?"container-info-game540":e<=650?"container-info-game650":"container-info-game"},playbutton(){const e=this.gamesContainerWidth;return e<=400?"play-button400":e<=540?"play-button540":e<=650?"play-button650":"play-button"},baselogo(){const e=this.gamesContainerWidth;return e<=400?"base-logo400":e<=540?"base-logo540":e<=650?"base-logo650":"base-logo"},baselogoright(){const e=this.gamesContainerWidth;return e<=400?"base-logo-right400":e<=540?"base-logo-right540":e<=650?"base-logo-right650":"base-logo-right"},thumbnailhighlights(){const e=this.gamesContainerWidth;return e<=400?"thumbnail-highlights400":e<=540?"thumbnail-highlights540":e<=650?"thumbnail-highlights650":"thumbnail-highlights"},teamlogo(){const e=this.gamesContainerWidth;return e<=400?"team-logo400":e<=540?"team-logo540":e<=650?"team-logo650":"team-logo"},logoright(){const e=this.gamesContainerWidth;return e<=400?"logo-right400":e<=540?"logo-right540":e<=650?"logo-right650":"logo-right"},secondline(){const e=this.gamesContainerWidth;return e<=400?"second-line400":e<=540?"second-line540":e<=650?"second-line650":"second-line"},titlename(){const e=this.gamesContainerWidth;return e<=400?"title-name400":e<=540?"title-name540":e<=650?"title-name650":"title-name"}},methods:{onclickPlayVideos(){this.$emit("onclickPlayVideos")},setUpResizeObserver(){if(window.ResizeObserver)MN=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),MN.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},IN=()=>{t.useCssVars(e=>({"1f42efa3":e.colorBackgroundHome+"45","10791a18":e.colorBackgroundAway+"45",f55d90b2:e.colorBackgroundHome,f563b494:e.colorBackgroundAway}))},PN=kk.setup;kk.setup=PN?(e,o)=>(IN(),PN(e,o)):IN;const v5=e=>(t.pushScopeId("data-v-b7ce7993"),e=e(),t.popScopeId(),e),xUe=v5(()=>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)),_Ue=[xUe],wUe=v5(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/paper-texture.png",alt:"",class:"paper-texture position-image"},null,-1)),kUe=["src"],SUe=v5(()=>t.createElementVNode("div",{class:"gradient-back position-image"},null,-1)),CUe=v5(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/halftone-texture.png",alt:"",class:"halftone-texture position-image"},null,-1)),TUe=["src"],AUe=["src"],EUe={class:"text-container"};function MUe(e,o,s,z,Z,m){return t.openBlock(),t.createElementBlock("div",{ref:"gamesContainer",class:t.normalizeClass(m.thumbnailhighlights)},[t.createElementVNode("div",{class:t.normalizeClass(m.playbutton),onClick:o[0]||(o[0]=(...g)=>m.onclickPlayVideos&&m.onclickPlayVideos(...g))},_Ue,2),s.dateGame!=""?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(m.date)},t.toDisplayString(s.dateGame),3)):t.createCommentVNode("",!0),s.matchday!=""&&s.seasonName!=""?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(m.containerinfogame)},[s.matchday!=""?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(m.matchcontainer)},t.toDisplayString(s.matchday),3)):t.createCommentVNode("",!0),s.seasonName!=""?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(m.seasoncontainer)},t.toDisplayString(s.seasonName),3)):t.createCommentVNode("",!0)],2)):t.createCommentVNode("",!0),wUe,t.createElementVNode("img",{src:s.background,alt:"",class:"bkg-blackwhite position-image",style:t.normalizeStyle({filter:s.isSafari?"none":""})},null,12,kUe),t.createElementVNode("div",{class:t.normalizeClass([m.baselogo,"position-image"])},null,2),t.createElementVNode("div",{class:t.normalizeClass(m.baselogoright)},null,2),SUe,CUe,t.createElementVNode("img",{src:s.logoHome,alt:"",class:t.normalizeClass(m.teamlogo)},null,10,TUe),t.createElementVNode("img",{src:s.logoAway,alt:"",class:t.normalizeClass(m.logoright)},null,10,AUe),t.createElementVNode("div",EUe,[t.createElementVNode("span",{class:t.normalizeClass(m.secondline)},t.toDisplayString(s.score),3),t.createElementVNode("div",{class:t.normalizeClass(m.titlename)},t.toDisplayString(s.titleCategory),3)])],2)}const IUe=wk(kk,[["render",MUe],["__scopeId","data-v-b7ce7993"]]);let LN=null;const Sk={components:{},props:{isSafari:{type:Boolean,default:!1},type:{type:Number,default:0},colorBackgroundHome:{type:String,default:"#000000"},colorBackgroundAway:{type:String,default:"#FFFFFF"},nameCategory:{type:String,default:""},date:{type:String,default:""},seasonName:{type:String,default:""},matchday:{type:String,default:""},photoProfile:{type:String,default:""},logoHome:{type:String,default:""},logoAway:{type:String,default:""},scoreHome:{type:String,default:""},scoreAway:{type:String,default:""},background:{type:String,default:""},typeImg:{type:Number,default:0},nameHomeTeam:{type:String,default:""},nameAwayTeam:{type:String,default:""},namePlayer:{type:String,default:""}},data(){return{gamesContainerWidth:0}},computed:{playbutton(){const e=this.gamesContainerWidth;return e<=400?"play-button400":e<=540?"play-button540":e<=650?"play-button650":"play-button"},points(){const e=this.gamesContainerWidth;return e<=400?"points400":e<=540?"points540":e<=650?"points650":"points"},containerinfogame(){const e=this.gamesContainerWidth;return e<=400?"container-info-game400":e<=540?"container-info-game540":e<=650?"container-info-game650":"container-info-game"},teamname(){const e=this.gamesContainerWidth;return e<=400?"team-name400":e<=540?"team-name540":e<=650?"team-name650":"team-name"},teamscore(){const e=this.gamesContainerWidth;return e<=400?"team-score400":e<=540?"team-score540":e<=650?"team-score650":"team-score"},teamlogo(){const e=this.gamesContainerWidth;return e<=400?"team-logo400":e<=540?"team-logo540":e<=650?"team-logo650":"team-logo"},hometeam(){const e=this.gamesContainerWidth;return e<=400?"home-team400":e<=540?"home-team540":e<=650?"home-team650":"home-team"},awayteam(){const e=this.gamesContainerWidth;return e<=400?"away-team400":e<=540?"away-team540":e<=650?"away-team650":"away-team"},texttitle(){const e=this.gamesContainerWidth;return e<=400?"text-title400":e<=540?"text-title540":e<=650?"text-title650":"text-title"},matchcontainer(){const e=this.gamesContainerWidth;return e<=400?"match-container400":e<=540?"match-container540":e<=650?"match-container650":"match-container"},seasonnameContainer(){const e=this.gamesContainerWidth;return e<=280?"seasonname280":e<=400?"seasonname400":e<=540?"seasonname540":e<=650?"seasonname650":"seasonname"},matchboxContainer(){const e=this.gamesContainerWidth;return e<=400?"matchbox400":e<=540?"matchbox540":e<=650?"matchbox650":"matchbox"},seasoncontainer(){const e=this.gamesContainerWidth;return e<=400?"season-container400":e<=540?"season-container540":e<=650?"season-container650":"season-container"},texttitle2(){const e=this.gamesContainerWidth;return e<=300?"text-title2400":e<=540?"text-title2540":e<=650?"text-title2650":"text-title2"},playerimage(){const e=this.gamesContainerWidth;return e<=400?"player-image400":e<=540?"player-image540":e<=650?"player-image650":"player-image"},thumbnailhighlights(){const e=this.gamesContainerWidth;return e<=400?"thumbnail-highlights400":e<=540?"thumbnail-highlights540":e<=650?"thumbnail-highlights650":"thumbnail-highlights"}},methods:{onclickPlayVideos(){this.$emit("onclickPlayVideos")},setUpResizeObserver(){if(window.ResizeObserver)LN=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),LN.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},BN=()=>{t.useCssVars(e=>({"686a0b6a":e.colorBackgroundHome,"68702f4c":e.colorBackgroundAway,"0e248416":e.colorBackgroundAway+"62","206d2fdd":e.colorBackgroundHome+"36"}))},zN=Sk.setup;Sk.setup=zN?(e,o)=>(BN(),zN(e,o)):BN;const b5=e=>(t.pushScopeId("data-v-771c3583"),e=e(),t.popScopeId(),e),PUe=b5(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/paper-texture.png",alt:"",class:"paper-texture position-image"},null,-1)),LUe=b5(()=>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)),BUe=[LUe],zUe={class:"player-container"},DUe=["src"],OUe=["src"],NUe=["src"],FUe={class:"container-score"},RUe=["src"],VUe=["src"],jUe=["src"],UUe=b5(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/halftone-texture.png",alt:"",class:"halftone-texture position-image"},null,-1)),GUe=b5(()=>t.createElementVNode("div",{class:"gradient-color"},null,-1));function HUe(e,o,s,z,Z,m){return t.openBlock(),t.createElementBlock("div",{ref:"gamesContainer",class:t.normalizeClass(m.thumbnailhighlights)},[PUe,t.createElementVNode("div",{class:t.normalizeClass(m.playbutton),onClick:o[0]||(o[0]=(...g)=>m.onclickPlayVideos&&m.onclickPlayVideos(...g))},BUe,2),t.createElementVNode("div",zUe,[t.createElementVNode("div",{class:t.normalizeClass(m.containerinfogame)},[t.createElementVNode("div",{class:t.normalizeClass(m.matchcontainer)},[t.createElementVNode("div",{class:t.normalizeClass(m.matchboxContainer)},t.toDisplayString(s.matchday),3),t.createElementVNode("div",{class:t.normalizeClass(m.seasonnameContainer)},t.toDisplayString(s.seasonName),3)],2),t.createElementVNode("div",{class:t.normalizeClass(m.seasoncontainer)},t.toDisplayString(s.date),3)],2),s.type==0?(t.openBlock(),t.createElementBlock("span",{key:0,class:t.normalizeClass(m.texttitle)},t.toDisplayString(s.nameCategory),3)):(t.openBlock(),t.createElementBlock("span",{key:1,class:t.normalizeClass(m.texttitle2)},t.toDisplayString(s.nameCategory),3)),s.typeImg==0?(t.openBlock(),t.createElementBlock("img",{key:2,src:s.photoProfile,class:t.normalizeClass(m.playerimage)},null,10,DUe)):t.createCommentVNode("",!0),s.typeImg==1?(t.openBlock(),t.createElementBlock("img",{key:3,src:s.photoProfile,alt:""},null,8,OUe)):t.createCommentVNode("",!0),s.typeImg==2?(t.openBlock(),t.createElementBlock("img",{key:4,src:s.photoProfile,class:"img-number"},null,8,NUe)):t.createCommentVNode("",!0),t.createElementVNode("div",FUe,[t.createElementVNode("div",{class:t.normalizeClass(m.hometeam)},[t.createElementVNode("span",{class:t.normalizeClass(m.teamname)},t.toDisplayString(s.nameHomeTeam),3),t.createElementVNode("img",{src:s.logoHome,alt:"",class:t.normalizeClass(m.teamlogo)},null,10,RUe),t.createElementVNode("span",{class:t.normalizeClass(m.teamscore)},t.toDisplayString(s.scoreHome),3)],2),t.createElementVNode("span",{class:t.normalizeClass(m.points)},":",2),t.createElementVNode("div",{class:t.normalizeClass(m.awayteam)},[t.createElementVNode("span",{class:t.normalizeClass(m.teamscore)},t.toDisplayString(s.scoreAway),3),t.createElementVNode("img",{src:s.logoAway,alt:"",class:t.normalizeClass(m.teamlogo)},null,10,VUe),t.createElementVNode("span",{class:t.normalizeClass(m.teamname)},t.toDisplayString(s.nameAwayTeam),3)],2)])]),t.createElementVNode("img",{src:s.background,alt:"",class:"bkg-blackwhite position-image",style:t.normalizeStyle({filter:(s.isSafari,"")})},null,12,jUe),UUe,GUe],2)}const ZUe=wk(Sk,[["render",HUe],["__scopeId","data-v-771c3583"]]);function Ck(e,o,s){const z=Number(o);if(o===null||z===0||z===1||!e||!e.startsWith("http"))return e;const Z=s?`https://dev-apis.golstats.com/${z}`:`https://apis.golstats.com/${z}`,m=new URL(e),g=m.pathname.split("/").filter(b=>b!==""&&b!=="prod"&&b!=="qa").join("/");let r=`${Z}/${g}`;return m.search&&(r+=m.search),m.hash&&(r+=m.hash),r}function bf(e,o){if(!o||o<=1)return e;const s=new URL(e),z=s.pathname.split("/").filter(r=>r!=="");if(z.length===0)return e;const[Z,...m]=z,g=[Z,o,...m].join("/");return`${s.origin}/${g}${s.search}`}const WUe={components:{GSCCarousel:bUe,GSCThumbnailHighlightGameHistoric:IUe,GSCThumbnailHighlightGamePlayer:ZUe},props:{items:{type:Array,default:()=>[1,2,3]},data:{type:Object,default:()=>{}},title:{type:String,default:"TODAS SUS JUGADAS"},canPlayVideos:{type:Boolean,default:!0},videoPrivilegesPlayingAs:{type:Set,default:()=>new Set([1,2])},privilegesTeamId:{type:Number,default:0},provider:{type:Number,default:1},isDevApis:{type:Boolean,default:!1}},data(){return{highlightsWidth:0,printData:[],resizeObserverGSCH:null,token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",lastHistoricGamesUrl:""}},watch:{data:{immediate:!0,handler(e){this.getData(e)}}},computed:{isSafari(){const e=navigator.userAgent||navigator.vendor||window.opera;return/^((?!chrome|android|Edg|Chromium).)*safari/i.test(e)},printDataFiltered(){return this.canPlayVideos?this.printData.filter(e=>this.videoPrivilegesPlayingAs.has(e.playingAs)):[]},isMobile(){return this.highlightsWidth<580},carouselProps(){return this.isMobile?{wrapAround:!0,itemsToShow:1.2,isMainSlidePriority:!0,areSlidesArrowsVisible:!1,areSlidesArrowsRounded:!1,areNavigationArrowsVisible:!1,isPaginationVisible:!0}:{wrapAround:!0,itemsToShow:1.8,isMainSlidePriority:!0,areSlidesArrowsVisible:!0,areSlidesArrowsRounded:!0,areNavigationArrowsVisible:!1}}},methods:{getPlayingAs(e,o){return e.home_team===(o||this.data.team)?1:2},obtenerNombreCompletoFecha(e){if(e){const o=new Date(e),s=["Domingo","Lunes","Martes","Miércoles","Jueves","Viernes","Sábado"][o.getUTCDay()],z=o.getUTCDate(),Z=["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"][o.getUTCMonth()];return`${s} ${z} de ${Z}`}else return""},onclickPlayVideos(e){var o=[];e.type==2?e.data.position_id==1?e.data.has_relevants==1?e.data.category==0?o=[55,324,323,608,39,774,802,52,53,40,42,54]:o=e.data.category:o=[55,324,323,608,39,774,802,52,53,40,42,54]:e.data.has_relevants==1?e.data.category==0?o=[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]:o=e.data.category:o=[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?o=[607,608,12,55,54,35,14,52,15,53,466,477,40,257,39]:o=e.data.category:e.data.category!=0?o=e.data.category:o=[607,608,12,55,54,35,14,52,15,53,466,477];const s=[1,2,3];let z={seasonId:e.data.season_id,mainSectionType:1,playListType:e.type,categoryIds:o,gameIdsToFilter:e.data.game_id?[e.data.game_id]:null,playerIds:e.data.position_id!=1?e.data.player_id?[e.data.player_id]:[]:[],goalkeeperIds:e.data.position_id==1?e.data.player_id?[e.data.player_id]:[]:[],teamId:e.data.team_id?e.data.team_id:e.data.team_id_b?e.data.team_id_b:0,matchResult:e.data.matchResult?[e.data.matchResult]:s,advancedFilter:{playListTitle:""}};e.data.category!==0&&(z.advancedFilter.mainCategoryId=e.data.category),this.$emit("openmedia",z)},play(e){this.$emit("play",e)},async getData(e){this.$emit("loading",!0);const o=Hje.create({headers:{Authorization:`${this.token}`}});var s=[],z={};if(e.type=="player"){const Z=await o.get(Ck("https://uof4tt5l46.execute-api.us-west-2.amazonaws.com/prod/v3/playerInfo/"+e.season+"/"+e.player,this.provider,this.isDevApis));if(Z.data.seasons[e.season])for(let m=0;m<Z.data.seasons[e.season].games_played.length;m++)z={playingAs:this.getPlayingAs(Z.data.seasons[e.season].games_played[m],Z.data.team_id),category:0,player_id:Z.data.player_id,position_id:Z.data.position_id,color:Z.data.info_thumbnails.colors.background_color,photo_profile:Z.data.info_thumbnails.images.player_in_action[0]?"https://golstatsimages.blob.core.windows.net/images-library/"+Z.data.info_thumbnails.images.player_in_action[0]:Z.data.info_thumbnails.player_profile,team_logo:bf("https://golstatsimages.blob.core.windows.net/teams-150/"+Z.data.seasons[e.season].games_played[m].home_team+".png",this.provider),player_name:Z.data.seasons[e.season].games_played[m].home_team_acronym+" "+Z.data.seasons[e.season].games_played[m].home_team_score+" : "+Z.data.seasons[e.season].games_played[m].visiting_team_score+" "+Z.data.seasons[e.season].games_played[m].visiting_team_acronym,team_id:Z.data.team_id,has_relevants:Z.data.seasons[e.season].games_played[m].has_relevants,team_id_b:Z.data.seasons[e.season].games_played[m].home_team,season_id:Z.data.seasons[e.season].games_played[m].season_id,name:Z.data.seasons[e.season].games_played[m].player_name,seasonname:Z.data.seasons[e.season].name.replace("Clausura","CL ").replace("Apertura","AP "),game_id:Z.data.seasons[e.season].games_played[m].game_id,match:Z.data.seasons[e.season].games_played[m].matchday_name.replace("Matchday","JOR").replace("de Final","").replace("Playoffs 1","CFI").replace("Playoffs 2","CFV").replace("Playoffs 3","SFI").replace("Playoffs 4","SFV").replace("Playoffs 5","FI").replace("Playoffs 6","FV"),date:this.obtenerNombreCompletoFecha(Z.data.seasons[e.season].games_played[m].date),scorehome:Z.data.seasons[e.season].games_played[m].home_team_score,scoreaway:Z.data.seasons[e.season].games_played[m].visiting_team_score,hometeamacronym:Z.data.seasons[e.season].games_played[m].home_team_acronym,visitingteamacronym:Z.data.seasons[e.season].games_played[m].visiting_team_acronym,background:Z.data.info_thumbnails.images.background_player_in_action[0]?"https://golstatsimages.blob.core.windows.net/images-library/"+Z.data.info_thumbnails.images.background_player_in_action[0]:Z.data.info_thumbnails.player_profile,backgroundhome:Z.data.seasons[e.season].games_played[m].info_thumbnails.home_colors.background_color,backgroundaway:Z.data.seasons[e.season].games_played[m].info_thumbnails.away_colors.background_color,logohome:bf("https://golstatsimages.blob.core.windows.net/teams-150/"+Z.data.seasons[e.season].games_played[m].home_team+".png",this.provider),logoaway:bf("https://golstatsimages.blob.core.windows.net/teams-150/"+Z.data.seasons[e.season].games_played[m].visiting_team+".png",this.provider),total:Z.data.seasons[e.season].games_played[m].matchday_abbreviation.replace("M","Jor "),background_card:"https://golstatsimages.blob.core.windows.net/golstats2-teams/"+Z.data.seasons[e.season].games_played[m].home_team+"_"+Z.data.seasons[e.season].games_played[m].season_id+"_r1.jpg"},s.push(z);else for(let m=0;m<Z.data.national_seasons[e.season].games_played.length;m++)z={playingAs:this.getPlayingAs(Z.data.national_seasons[e.season].games_played[m],Z.data.team_id),category:0,player_id:Z.data.player_id,position_id:Z.data.position_id,color:Z.data.info_thumbnails.colors.background_color,photo_profile:Z.data.info_thumbnails.images.player_in_action[0]?"https://golstatsimages.blob.core.windows.net/images-library/"+Z.data.info_thumbnails.images.player_in_action[0]:Z.data.info_thumbnails.player_profile,team_logo:bf("https://golstatsimages.blob.core.windows.net/teams-150/"+Z.data.national_seasons[e.season].games_played[m].home_team+".png",this.provider),player_name:Z.data.national_seasons[e.season].games_played[m].home_team_acronym+" "+Z.data.national_seasons[e.season].games_played[m].home_team_score+" : "+Z.data.national_seasons[e.season].games_played[m].visiting_team_score+" "+Z.data.national_seasons[e.season].games_played[m].visiting_team_acronym,team_id:Z.data.team_id,has_relevants:Z.data.national_seasons[e.season].games_played[m].has_relevants,team_id_b:Z.data.national_seasons[e.season].games_played[m].home_team,season_id:Z.data.national_seasons[e.season].games_played[m].season_id,name:Z.data.national_seasons[e.season].games_played[m].player_name,seasonname:Z.data.national_seasons[e.season].name.replace("Clausura","CL ").replace("Apertura","AP "),game_id:Z.data.national_seasons[e.season].games_played[m].game_id,match:Z.data.national_seasons[e.season].games_played[m].matchday_name.replace("Matchday","JOR").replace("de Final","").replace("Playoffs 1","CFI").replace("Playoffs 2","CFV").replace("Playoffs 3","SFI").replace("Playoffs 4","SFV").replace("Playoffs 5","FI").replace("Playoffs 6","FV"),date:this.obtenerNombreCompletoFecha(Z.data.national_seasons[e.season].games_played[m].date),scorehome:Z.data.national_seasons[e.season].games_played[m].home_team_score,scoreaway:Z.data.national_seasons[e.season].games_played[m].visiting_team_score,hometeamacronym:Z.data.national_seasons[e.season].games_played[m].home_team_acronym,visitingteamacronym:Z.data.national_seasons[e.season].games_played[m].visiting_team_acronym,background:Z.data.info_thumbnails.images.background_player_in_action[0]?"https://golstatsimages.blob.core.windows.net/images-library/"+Z.data.info_thumbnails.images.background_player_in_action[0]:Z.data.info_thumbnails.player_profile,backgroundhome:Z.data.national_seasons[e.season].games_played[m].info_thumbnails.home_colors.background_color,backgroundaway:Z.data.national_seasons[e.season].games_played[m].info_thumbnails.away_colors.background_color,logohome:bf("https://golstatsimages.blob.core.windows.net/teams-150/"+Z.data.national_seasons[e.season].games_played[m].home_team+".png",this.provider),logoaway:bf("https://golstatsimages.blob.core.windows.net/teams-150/"+Z.data.national_seasons[e.season].games_played[m].visiting_team+".png",this.provider),total:Z.data.national_seasons[e.season].games_played[m].matchday_abbreviation.replace("M","Jor "),background_card:"https://golstatsimages.blob.core.windows.net/golstats2-teams/"+Z.data.national_seasons[e.season].games_played[m].home_team+"_"+Z.data.national_seasons[e.season].games_played[m].season_id+"_r1.jpg"},s.push(z)}else if(e.type=="historic"){const Z=Ck("https://fxtcaw9tw6.execute-api.us-east-2.amazonaws.com/prod/historic/games/"+e.game,this.provider,this.isDevApis);if(this.lastHistoricGamesUrl===Z)return;this.lastHistoricGamesUrl=Z;const m=await o.get(Z);for(let r=0;r<m.data.plays.length;r++)z={teamId:m.data.plays[r][2],player:"Jornada "+m.data.plays[r][6],player_name:m.data.plays[r][4],season_id:m.data.plays[r][31],game_id:m.data.plays[r][3],img:"https://img1.wallspic.com/previews/0/9/1/0/20190/20190-football_player-football-fun-player-sports-x750.jpg"},s.length>0?this.privilegesTeamId==0?!s.filter(b=>b.game_id===m.data.plays[r][3]).length>0&&s.push(z):!s.filter(b=>b.game_id===m.data.plays[r][3]).length>0&&m.data.plays[r][2]===this.privilegesTeamId&&s.push(z):(this.privilegesTeamId==0||m.data.plays[r][2]===this.privilegesTeamId)&&s.push(z);const g=m.data.thumbnails;for(let r=0;r<s.length;r++){const b=Math.floor(Math.random()*g[s[r].game_id].info_thumbnails.images.background_default_games.length);s[r].background="https://golstatsimages.blob.core.windows.net/images-library/"+g[s[r].game_id].info_thumbnails.images.background_default_games[b],s[r].backgroundhome=g[s[r].game_id].info_thumbnails.home_colors.background_color,s[r].backgroundaway=g[s[r].game_id].info_thumbnails.away_colors.background_color,s[r].logoaway=bf("https://golstatsimages.blob.core.windows.net/teams-150/"+g[s[r].game_id].info_thumbnails.away_colors.team_id+".png",this.provider),s[r].logohome=bf("https://golstatsimages.blob.core.windows.net/teams-150/"+g[s[r].game_id].info_thumbnails.home_colors.team_id+".png",this.provider),s[r].match=g[s[r].game_id].matchday_name.replace("Matchday","Jor"),s[r].playingAs=g[s[r].game_id].info_thumbnails.home_colors.team_id===s[r].teamId?1:2,s[r].seasonname=g[s[r].game_id].season_name,s[r].score=g[s[r].game_id].score[0]+" - "+g[s[r].game_id].score[1],s[r].category=0}}else{const Z=await o.get(Ck("https://ws8d8ye2ii.execute-api.us-west-2.amazonaws.com/prod/v4/seasonsByTeam/"+e.team,this.provider,this.isDevApis));for(let m=0;m<Z.data.seasons[e.season].games.length;m++){const g=Math.floor(Math.random()*Z.data.seasons[e.season].games[m].info_thumbnails.images.background_default_games.length);z={playingAs:this.getPlayingAs(Z.data.seasons[e.season].games[m],Z.data.team_id),category:0,game_id:Z.data.seasons[e.season].games[m].game_id,photo_profile:bf("https://golstatsimages.blob.core.windows.net/teams-150/"+Z.data.seasons[e.season].games[m].visiting_team+".png",this.provider),team_logo:bf("https://golstatsimages.blob.core.windows.net/teams-150/"+Z.data.seasons[e.season].games[m].home_team+".png",this.provider),player_name:Z.data.seasons[e.season].games[m].home_team_acronym+" "+Z.data.seasons[e.season].games[m].home_team_score+" : "+Z.data.seasons[e.season].games[m].visiting_team_score+" "+Z.data.seasons[e.season].games[m].visiting_team_acronym,team_id_b:Z.data.seasons[e.season].games[m].home_team,team_id:Z.data.team_id,season_id:Z.data.seasons[e.season].games[m].season_id,name:"",seasonname:Z.data.seasons[e.season].name,match:Z.data.seasons[e.season].games[m].matchday_name.replace("Matchday","Jor"),score:Z.data.seasons[e.season].games[m].home_team_score+" : "+Z.data.seasons[e.season].games[m].visiting_team_score,background:"https://golstatsimages.blob.core.windows.net/images-library/"+Z.data.seasons[e.season].games[m].info_thumbnails.images.background_default_games[g],backgroundhome:Z.data.seasons[e.season].games[m].info_thumbnails.home_colors.background_color,backgroundaway:Z.data.seasons[e.season].games[m].info_thumbnails.away_colors.background_color,logohome:bf("https://golstatsimages.blob.core.windows.net/teams-150/"+Z.data.seasons[e.season].games[m].home_team+".png",this.provider),logoaway:bf("https://golstatsimages.blob.core.windows.net/teams-150/"+Z.data.seasons[e.season].games[m].visiting_team+".png",this.provider),total:Z.data.seasons[e.season].games[m].matchday_abbreviation.replace("M","Jor "),background_card:"https://golstatsimages.blob.core.windows.net/golstats2-teams/"+Z.data.seasons[e.season].games[m].home_team+"_"+Z.data.seasons[e.season].games[m].season_id+"_r1.jpg"},s.push(z)}}this.printData=s,this.$emit("loading",!1)},setUpResizeObserver(){this.resizeObserverGSCH=new ResizeObserver(e=>{for(const o of e)this.highlightsWidth=o.contentRect.width}),this.resizeObserverGSCH.observe(this.$refs.highlights)}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},1e3)}},qUe={key:0,ref:"highlights",class:"carousel-high-lights",id:"carousel-high-lights"};function JUe(e,o,s,z,Z,m){const g=t.resolveComponent("GSCThumbnailHighlightGameHistoric"),r=t.resolveComponent("GSCThumbnailHighlightGamePlayer"),b=t.resolveComponent("GSCCarousel");return m.printDataFiltered.length>0&&s.canPlayVideos?(t.openBlock(),t.createElementBlock("div",qUe,[t.createVNode(b,t.mergeProps(m.carouselProps,{items:m.printDataFiltered,arrowsMaxWidth:"65px",slideLeftArrowBackgroundImage:"linear-gradient(to right, rgba(22, 37, 49, 1), rgba(0, 0, 0, 0))",slideRightArrowBackgroundImage:"linear-gradient(to left, rgba(22, 37, 49, 1), rgba(0, 0, 0, 0))",secondarySlidesOpacity:.2}),{default:t.withCtx(({item:p})=>[s.data.type=="team"||s.data.type=="historic"?(t.openBlock(),t.createBlock(g,{key:0,"is-safari":m.isSafari,items:p,"color-background-home":p.backgroundhome,"color-background-away":p.backgroundaway,"logo-home":p.logohome,"logo-away":p.logoaway,background:p.background,matchday:p.match,onOnclickPlayVideos:a=>m.onclickPlayVideos({data:p,type:1}),"season-name":p.seasonname,score:p.score},null,8,["is-safari","items","color-background-home","color-background-away","logo-home","logo-away","background","matchday","onOnclickPlayVideos","season-name","score"])):(t.openBlock(),t.createBlock(r,{key:1,"is-safari":m.isSafari,type:"player","name-player":p.name,"type-style":"game","color-background-home":p.backgroundhome,"color-background-away":p.backgroundaway,"type-img":"0",date:p.date,"season-name":p.seasonname,matchday:p.match,background:p.background,"name-home-team":p.hometeamacronym,"name-away-team":p.visitingteamacronym,"name-category":s.title,onOnclickPlayVideos:a=>m.onclickPlayVideos({data:p,type:2}),"logo-away":p.logoaway,"logo-home":p.logohome,"score-home":p.scorehome,"photo-profile":p.photo_profile,"score-away":p.scoreaway},null,8,["is-safari","name-player","color-background-home","color-background-away","date","season-name","matchday","background","name-home-team","name-away-team","name-category","onOnclickPlayVideos","logo-away","logo-home","score-home","photo-profile","score-away"]))]),_:1},16,["items"])],512)):t.createCommentVNode("",!0)}const YUe=wk(WUe,[["render",JUe]]),jHt="",UHt="",GHt="",XUe={components:{GSCSlider:x2},props:{isWidget:{type:Boolean,default:!1},teamWidget:{type:Number,default:0},timeLiveProminentData:{type:Number,default:6e4},game:{type:Object,default:()=>{}},canPlayVideos:{type:Boolean,default:!1}},watch:{game:{deep:!0,immediate:!0,handler(e){e.is_live==1?(this.getDataProminent(e.gameId),setInterval(()=>{this.getDataProminent(e.gameId)},this.timeLiveProminentData)):e.game_status==1||e.game_status==0?this.getDataProminent(e.gameId):this.getDataProminentPrematch(e.gameId)}}},data(){return{lastDataProminentUrl:"",dataProminent:[],dataProminentAll:[],tokenPremium:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"}},computed:{},methods:{getImageUrl:Ef,onclickPlayVideos(e){const o=[1,2,3];let s={seasonId:this.game.is_live==1?this.dataProminentAll.season_id:this.game.regularSeasonId,mainSectionType:1,playListType:e.data.is_team==1?3:2,categoryIds:e.data.categories,gameIdsToFilter:this.game.game_status==1?[this.dataProminentAll._id]:null,playerIds:e.data.is_team!=1?[e.data.player_id]:[],goalkeeperIds:[],teamId:e.data.is_team==1?e.data.team_id:0,matchResult:o,playData:{},advancedFilter:{playListTitle:""}};this.$emit("openmedia",s)},hasDecimal(e){return typeof e!="number"?!1:e.toString().includes(".")},formatNumber(e){if(typeof e=="number")if(this.hasDecimal(e)){const o=Math.round(e*10)/10;return Number.isInteger(o)?o.toString()+"%":o.toFixed(1)+"%"}else return e+"%";else return"0"},formatNumber2(e){if(typeof e=="number")if(this.hasDecimal(e)){const o=Math.round(e*10)/10;return Number.isInteger(o)?o.toString()+"%":o.toFixed(1)+"%"}else return e;else return"0"},textoConNegritas(e){if(!e)return"";const o=e.split(/(\*.*?\*)/g).filter(Z=>Z.trim()!=="");let s=Math.ceil(o.length/2),z="";return o.forEach((Z,m)=>{m===s&&(z+="<br/>"),Z.startsWith("*")&&Z.endsWith("*")?z+=`<span class="text-bold-prominent">${Z.slice(1,-1)}</span>`:Z.trim()!==""&&(z+=`<span class="text-prominent">${Z}</span>`)}),z},async getDataProminentPrematch(){try{const e=this.$store.getters.getProviderId,o=this.$store.getters.getIsDevApis;let s="";if(this.isWidget&&this.teamWidget!=0?s=hd("https://1qvtl1japi.execute-api.us-east-2.amazonaws.com/prod/highlights/seasons/"+this.game.seasonId+"/games/"+this.game.gameId+"/prematch",e,o)+"?t="+this.teamWidget:s=hd("https://1qvtl1japi.execute-api.us-east-2.amazonaws.com/prod/highlights/seasons/"+this.game.seasonId+"/games/"+this.game.gameId+"/prematch",e,o),this.lastDataProminentUrl!==s){this.$emit("loading",!0);const Z=await _d.create({headers:{Authorization:`${this.tokenPremium}`}}).get(s);this.dataProminent=Z.data.data,this.dataProminentAll=Z.data,this.$emit("loading",!1)}}catch(e){return Promise.reject(e)}},async getDataProminent(){try{const e=this.$store.getters.getProviderId,o=this.$store.getters.getIsDevApis;let s="";if(this.isWidget&&this.teamWidget!=0?s=hd("https://1qvtl1japi.execute-api.us-east-2.amazonaws.com/prod/highlights/seasons/"+this.game.seasonId+"/games/"+this.game.gameId,e,o)+"?t="+this.teamWidget:s=hd("https://1qvtl1japi.execute-api.us-east-2.amazonaws.com/prod/highlights/seasons/"+this.game.seasonId+"/games/"+this.game.gameId,e,o),this.lastDataProminentUrl!==s){this.$emit("loading",!0);const Z=await _d.create({headers:{Authorization:`${this.tokenPremium}`}}).get(s);this.dataProminent=Z.data.data,this.dataProminentAll=Z.data,setTimeout(()=>{this.$emit("loading",!1)},500)}}catch(e){return Promise.reject(e)}}}},$Ue={class:"data-prominent-game"},KUe={class:"title-data"},QUe={class:"item-data-text"},eGe=["innerHTML"],tGe={class:"contain-stats-control"},aGe={key:0,class:"title-total"},rGe={key:1,class:"item-total"},nGe=["onClick"],iGe={"data-v-83c7df16":"",style:{"margin-left":"-1px"},xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none"};function oGe(e,o,s,z,Z,m){const g=t.resolveComponent("GSCSlider");return t.openBlock(),t.createElementBlock("div",$Ue,[t.createElementVNode("div",KUe,[s.game.game_status!=4||s.game.is_live==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Este partido:")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("Este torneo:")],64))]),t.createVNode(g,{height:"115px",pxScroll:272,scrollColor:"none",arrowsPosition:"absolute",arrowsScrollHide:!0,arrowsHideOnNoScroll:!0,arrowsBackground:"rgba(255,255,255,.16)",arrowsContainerBgL:"linear-gradient(270deg, rgba(13,29,42,0.1) 0%, rgba(13,29,42,1) 70%)",arrowsContainerBgR:"linear-gradient(90deg, rgba(13,29,42,0.1) 0%, rgba(13,29,42,1) 70%)",arrowsMargin:0,arrowsRadius:"50%",arrowsBorder:"#ddd"},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(Z.dataProminent,(r,b)=>(t.openBlock(),t.createElementBlock("div",{key:b,class:"item-prominent-data"},[t.createElementVNode("div",{class:"item-percent-shield",style:t.normalizeStyle("background:"+r.custom_colors.background_color)},[t.createElementVNode("div",{class:"item-team",style:t.normalizeStyle(r.player_id?e.$store.getters.getProviderId==1?"background-image:url(https://golstatsimages.blob.core.windows.net/players-profile/"+r.player_id+".png);":"background-image:url(https://golstatsimages.blob.core.windows.net/players-profile/"+e.$store.getters.getProviderId+"/"+r.player_id+".png);border: solid 1.4px "+r.custom_colors.background_color:"background-image:url("+m.getImageUrl("https://golstatsimages.blob.core.windows.net/teams-80/"+r.team_id+".png",e.$store.getters.getProviderId)+");border: solid 1.4px "+r.custom_colors.background_color)},null,4),r.show_value==1?(t.openBlock(),t.createElementBlock("div",{key:0,class:"item-percent",style:t.normalizeStyle("color:"+r.custom_colors.font_color)},[r.is_percentage==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[r.title=="Distancia recorrida"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(m.formatNumber(r.percent)),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(m.formatNumber(r.percent)),1)],64))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(r.total),1)],64))],4)):t.createCommentVNode("",!0)],4),t.createElementVNode("div",QUe,[t.createElementVNode("div",{class:"container-text",innerHTML:m.textoConNegritas(r.description)},null,8,eGe),t.createElementVNode("div",tGe,[r.show_value==1?(t.openBlock(),t.createElementBlock("div",aGe,"TOTAL: ")):t.createCommentVNode("",!0),r.show_value==1?(t.openBlock(),t.createElementBlock("div",rGe,[r.is_percentage==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(m.formatNumber(r.percent)),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[r.title=="Distancia recorrida"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(r.total)+" km",1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(r.total),1)],64))],64))])):t.createCommentVNode("",!0),s.canPlayVideos&&r.show_video==1&&r.show_value==1?(t.openBlock(),t.createElementBlock("div",{key:2,class:"btn-play",style:t.normalizeStyle(r.title=="Productividad"?"margin-left: 0px !important;":""),onClick:p=>m.onclickPlayVideos({data:r})},[(t.openBlock(),t.createElementBlock("svg",iGe,o[0]||(o[0]=[t.createElementVNode("path",{"data-v-83c7df16":"",d:"M6.6041 22.8554C6.42105 22.7512 6.26805 22.5956 6.1616 22.4053C6.05515 22.215 5.99927 21.9973 6.00001 21.7755V2.22137C6.00026 2.00039 6.0565 1.78362 6.16274 1.59409C6.26899 1.40456 6.42127 1.24936 6.6034 1.14499C6.78553 1.04062 6.9907 0.990981 7.1971 1.00135C7.4035 1.01171 7.60342 1.0817 7.77561 1.20386L21.4907 10.9821C21.6473 11.0935 21.7758 11.2446 21.8646 11.4219C21.9535 11.5992 22 11.7973 22 11.9985C22 12.1996 21.9535 12.3977 21.8646 12.575C21.7758 12.7523 21.6473 12.9034 21.4907 13.0148L7.77561 22.7954C7.60369 22.9178 7.40392 22.988 7.19761 22.9986C6.9913 23.0092 6.78617 22.9597 6.6041 22.8554ZM7.14347 21.7779L20.8585 11.9996L7.14347 21.7779Z",fill:"#CBEE6B"},null,-1)])))],12,nGe)):t.createCommentVNode("",!0)])])]))),128))]),_:1})])}const sGe=Ki(XUe,[["render",oGe],["__scopeId","data-v-5e5a080e"]]),HHt="",lGe={components:{GSCCheckbox:O1},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:{...ip("nextGeneral",["gameForAnalysis","seasonId"]),...Ld("nextGeneral",["arrayFilledDataSortedByPriority"])},methods:{async getStatsData(e){await this.$store.dispatch("nextGeneral/cleanStats"),await this.$store.dispatch("nextGeneral/checkState",{gameId:e.gameId,currentSeasonId:e.seasonId,isTeamsAnalysis:!0,defaultFilter:null,gameInfo:e})},async getDataPosession(){try{const o=await _d.create({headers:{Authorization:`${this.tokenPremium}`}}).get(hd(this.url+this.game.gameId,this.$store.getters.getProviderId,this.$store.getters.getIsDevApis));this.dataPosession=o.data}catch(e){return Promise.reject(e)}},async getDataPosessionPrematch(e){try{const s=await _d.create({headers:{Authorization:`${this.tokenPremium}`}}).get(hd(this.urlPrematch+e+"/posessions",this.$store.getters.getProviderId,this.$store.getters.getIsDevApis));for(const z in s.data.teams)s.data.teams.hasOwnProperty(z)&&(this.arrTeams[z]=s.data.teams[z])}catch(o){return Promise.reject(o)}},onCheckInactive(e){e?this.areInactiveVisible=!0:this.areInactiveVisible=!1},deleteDecimalZero(e){const o=typeof e=="string"?parseFloat(e):e;return typeof o=="number"&&!isNaN(o)?o%1===0?o:o%1===0?Math.floor(o):o: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,o,s){if(!o.game_id)return this.objectZeroValues;const z=e.homeTeam.accomplished.avgPostGame+e.visitingTeam.accomplished.avgPostGame,Z=e[s].accomplished.avgPostGame/z;return e[s].accomplished.avgPostGame?{numberValue:Z<1?Z*100:Z,numberBarPercent:e[s].accomplished.avgPostGame/z}:this.objectZeroValues}},created(){this.$store.commit("nextGeneral/updateFilters",{filters:{local:{playingAs:[1,2],statistics:{},matchResult:[1,2,3],firstHalf:[1,2,3],secondHalf:[4,5,6]},visit:{playingAs:[1,2],statistics:{},matchResult:[1,2,3],firstHalf:[1,2,3],secondHalf:[4,5,6]}},needsFormat:!0})},beforeUnmount(){clearInterval(this.intervalIdPossesion)}},cGe={key:0,class:"field-posesion-prominent"},dGe={key:0,class:"title"},uGe={class:"info-data-item"},hGe={class:"item-indicador"},pGe={class:"item-indicador-value"},fGe={key:0,class:"inactiveInfo"},mGe={class:"info-data-item"},gGe={class:"item-indicador"},yGe={class:"item-indicador-value"},vGe={class:"info-data-item"},bGe={class:"item-indicador"},xGe={class:"item-indicador-value"},_Ge={class:"info-data-item"},wGe={class:"item-indicador"},kGe={class:"item-indicador-value"},SGe={key:0,class:"inactiveInfo"},CGe={class:"info-data-item"},TGe={class:"item-indicador"},AGe={class:"item-indicador-value"},EGe={class:"info-data-item"},MGe={class:"item-indicador"},IGe={class:"item-indicador-value"};function PGe(e,o,s,z,Z,m){const g=t.resolveComponent("GSCCheckbox");return e.arrayFilledDataSortedByPriority.length>0?(t.openBlock(),t.createElementBlock("div",cGe,[s.widthSection>760?(t.openBlock(),t.createElementBlock("div",dGe,"Porcentajes")):t.createCommentVNode("",!0),s.game.game_status==1||s.game.game_status==0||s.game.is_live==1?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(s.widthSection>760?"field-container":s.widthSection>520?"field-container-movil":s.widthSection>440?"field-container-movil-2":s.widthSection>360?"field-container-movil-3":"field-container-movil-4")},[Z.dataPosession.has_posession==1?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(s.widthSection>1020?"time-show":s.widthSection>920?"time-show-table-xl":s.widthSection>880?"time-show-table-xl-2":s.widthSection>820?"time-show-table-xl-3":s.widthSection>760?"time-show-table-xl-4":"time-show-movil")},[t.createVNode(g,{label:"Mostrar tiempo inactivo",fontFamily:"Poppins-Regular","onUpdate:modelValue":m.onCheckInactive,"label-color":"#8c9399"},null,8,["onUpdate:modelValue"])],2)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(s.widthSection>1020?"field-data-container":s.widthSection>920?"field-data-container-xl":s.widthSection>880?"field-data-container-xl-2":s.widthSection>820?"field-data-container-xl-3":s.widthSection>760?"field-data-container-xl-4":"field-data-container-movil")},[t.createElementVNode("div",{class:t.normalizeClass(Z.areInactiveVisible?"container-data-img-home":"container-data-img-home50")},[t.createElementVNode("div",{class:t.normalizeClass(Z.areInactiveVisible?"homeInfo":"homeInfo50"),style:t.normalizeStyle("background-image:url("+s.game.homeTeam.logo.replace("80","150")+")")},null,6),t.createElementVNode("div",uGe,[t.createElementVNode("div",{class:t.normalizeClass(s.widthSection>580?"item-ref-data":"item-ref-data-movil")},[t.createElementVNode("div",hGe,[t.createElementVNode("div",pGe,[Z.areInactiveVisible?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(Z.dataPosession.active_time.home),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(Z.dataPosession.home),1)],64))]),o[0]||(o[0]=t.createElementVNode("div",{class:"item-indicador-img"},[t.createElementVNode("svg",{width:"8",height:"6",viewBox:"0 0 8 6",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M3.87817 5.92969L0.506034 0.0889796L7.2503 0.0889802L3.87817 5.92969Z",fill:"#38CFFF"})])],-1))]),t.createElementVNode("div",{class:t.normalizeClass(s.widthSection>580?"title-indicador":"title-indicador-movil")}," Pos. "+t.toDisplayString(s.game.homeTeam.acronym),3)],2)])],2),Z.areInactiveVisible&&Z.dataPosession.has_posession==1?(t.openBlock(),t.createElementBlock("div",fGe,[t.createElementVNode("div",mGe,[t.createElementVNode("div",{class:t.normalizeClass(s.widthSection>580?"item-ref-data":"item-ref-data-movil")},[t.createElementVNode("div",gGe,[t.createElementVNode("div",yGe,t.toDisplayString(Z.dataPosession.active_time.inactive_time),1),o[1]||(o[1]=t.createElementVNode("div",{class:"item-indicador-img"},[t.createElementVNode("svg",{width:"8",height:"6",viewBox:"0 0 8 6",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M3.87817 5.92969L0.506034 0.0889796L7.2503 0.0889802L3.87817 5.92969Z",fill:"#38CFFF"})])],-1))]),t.createElementVNode("div",{class:t.normalizeClass(s.widthSection>580?"title-indicador":"title-indicador-movil")},[s.widthSection>580?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("T. Inactivo")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("T. Inactivo")],64))],2)],2)])])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(Z.areInactiveVisible?"container-data-img-away":"container-data-img-away50")},[t.createElementVNode("div",{class:t.normalizeClass(Z.areInactiveVisible?"awayInfo":"awayInfo50"),style:t.normalizeStyle("background-image:url("+s.game.awayTeam.logo.replace("80","150")+")")},null,6),t.createElementVNode("div",vGe,[t.createElementVNode("div",{class:t.normalizeClass(s.widthSection>580?"item-ref-data":"item-ref-data-movil")},[t.createElementVNode("div",bGe,[t.createElementVNode("div",xGe,[Z.areInactiveVisible?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(Z.dataPosession.active_time.away),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(Z.dataPosession.away),1)],64))]),o[2]||(o[2]=t.createElementVNode("div",{class:"item-indicador-img"},[t.createElementVNode("svg",{width:"8",height:"6",viewBox:"0 0 8 6",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M3.87817 5.92969L0.506034 0.0889796L7.2503 0.0889802L3.87817 5.92969Z",fill:"#38CFFF"})])],-1))]),t.createElementVNode("div",{class:t.normalizeClass(s.widthSection>580?"title-indicador":"title-indicador-movil")}," Pos. "+t.toDisplayString(s.game.awayTeam.acronym),3)],2)])],2)],2)],2)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[Z.arrTeams.length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(s.widthSection>760?"field-container":s.widthSection>520?"field-container-movil":s.widthSection>440?"field-container-movil-2":s.widthSection>360?"field-container-movil-3":"field-container-movil-4")},[Z.arrTeams[s.teamSelected.teamId].has_posession==1?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(s.widthSection>1020?"time-show":s.widthSection>920?"time-show-table-xl":s.widthSection>880?"time-show-table-xl-2":s.widthSection>820?"time-show-table-xl-3":s.widthSection>760?"time-show-table-xl-4":"time-show-movil")},[t.createVNode(g,{label:"Mostrar tiempo inactivo",fontFamily:"Poppins-Regular","onUpdate:modelValue":m.onCheckInactive,"label-color":"#8c9399"},null,8,["onUpdate:modelValue"])],2)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(s.widthSection>1020?"field-data-container":s.widthSection>920?"field-data-container-xl":s.widthSection>880?"field-data-container-xl-2":s.widthSection>820?"field-data-container-xl-3":s.widthSection>760?"field-data-container-xl-4":"field-data-container-movil")},[t.createElementVNode("div",{class:t.normalizeClass(Z.areInactiveVisible?"container-data-img-home":"container-data-img-home50")},[s.game.homeTeam.team_id==s.teamSelected.teamId?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(Z.areInactiveVisible?"homeInfo":"homeInfo50"),style:t.normalizeStyle("background-image:url("+s.game.homeTeam.logo.replace("80","150")+")")},null,6)):t.createCommentVNode("",!0),t.createElementVNode("div",_Ge,[t.createElementVNode("div",{class:t.normalizeClass(s.widthSection>580?"item-ref-data":"item-ref-data-movil")},[t.createElementVNode("div",wGe,[t.createElementVNode("div",kGe,[Z.areInactiveVisible?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[s.game.awayTeam.team_id==s.teamSelected.teamId?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(Z.arrTeams[s.teamSelected.teamId].active_time.away),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(Z.arrTeams[s.teamSelected.teamId].active_time.home),1)],64))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[s.game.awayTeam.team_id==s.teamSelected.teamId?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(Z.arrTeams[s.teamSelected.teamId].away),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(Z.arrTeams[s.teamSelected.teamId].home),1)],64))],64))]),o[3]||(o[3]=t.createElementVNode("div",{class:"item-indicador-img"},[t.createElementVNode("svg",{width:"8",height:"6",viewBox:"0 0 8 6",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M3.87817 5.92969L0.506034 0.0889796L7.2503 0.0889802L3.87817 5.92969Z",fill:"#38CFFF"})])],-1))]),s.game.homeTeam.team_id==s.teamSelected.teamId?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(s.widthSection>580?"title-indicador":"title-indicador-movil")}," Pos. "+t.toDisplayString(s.game.homeTeam.acronym),3)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(s.widthSection>580?"title-indicador":"title-indicador-movil")}," Pos. Rival ",2))],2)])],2),Z.areInactiveVisible&&Z.arrTeams[s.teamSelected.teamId].has_posession==1?(t.openBlock(),t.createElementBlock("div",SGe,[t.createElementVNode("div",CGe,[t.createElementVNode("div",{class:t.normalizeClass(s.widthSection>580?"item-ref-data":"item-ref-data-movil")},[t.createElementVNode("div",TGe,[t.createElementVNode("div",AGe,t.toDisplayString(Z.arrTeams[s.teamSelected.teamId].active_time.inactive_time),1),o[4]||(o[4]=t.createElementVNode("div",{class:"item-indicador-img"},[t.createElementVNode("svg",{width:"8",height:"6",viewBox:"0 0 8 6",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M3.87817 5.92969L0.506034 0.0889796L7.2503 0.0889802L3.87817 5.92969Z",fill:"#38CFFF"})])],-1))]),t.createElementVNode("div",{class:t.normalizeClass(s.widthSection>580?"title-indicador":"title-indicador-movil")},[s.widthSection>580?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("T. Inactivo")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("T. Inactivo")],64))],2)],2)])])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(Z.areInactiveVisible?"container-data-img-away":"container-data-img-away50")},[s.game.awayTeam.team_id==s.teamSelected.teamId?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(Z.areInactiveVisible?"awayInfo":"awayInfo50"),style:t.normalizeStyle("background-image:url("+s.game.awayTeam.logo.replace("80","150")+")")},null,6)):t.createCommentVNode("",!0),t.createElementVNode("div",EGe,[t.createElementVNode("div",{class:t.normalizeClass(s.widthSection>580?"item-ref-data":"item-ref-data-movil")},[t.createElementVNode("div",MGe,[t.createElementVNode("div",IGe,[Z.areInactiveVisible?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[s.game.homeTeam.team_id==s.teamSelected.teamId?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(Z.arrTeams[s.teamSelected.teamId].active_time.away),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(Z.arrTeams[s.teamSelected.teamId].active_time.home),1)],64))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[s.game.homeTeam.team_id==s.teamSelected.teamId?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(Z.arrTeams[s.teamSelected.teamId].away),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(Z.arrTeams[s.teamSelected.teamId].home),1)],64))],64))]),o[5]||(o[5]=t.createElementVNode("div",{class:"item-indicador-img"},[t.createElementVNode("svg",{width:"8",height:"6",viewBox:"0 0 8 6",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M3.87817 5.92969L0.506034 0.0889796L7.2503 0.0889802L3.87817 5.92969Z",fill:"#38CFFF"})])],-1))]),s.game.awayTeam.team_id==s.teamSelected.teamId?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(s.widthSection>580?"title-indicador":"title-indicador-movil")}," Pos. "+t.toDisplayString(s.game.awayTeam.acronym),3)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(s.widthSection>580?"title-indicador":"title-indicador-movil")}," Pos. Rival ",2))],2)])],2)],2)],2)):t.createCommentVNode("",!0)],64))])):t.createCommentVNode("",!0)}const LGe=Ki(lGe,[["render",PGe],["__scopeId","data-v-c10866cc"]]),ZHt="",Tk={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(o){throw new Error(o)}}}},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)}}},DN=()=>{t.useCssVars(e=>({"0fd788f0":e.backgroundColor,"65d48069":e.widthCircle,ab129df8:e.heightCircle}))},ON=Tk.setup;Tk.setup=ON?(e,o)=>(DN(),ON(e,o)):DN;const BGe={key:0,class:"text-left"},zGe=["width","src"],DGe=["checked"],OGe=["width","src"],NGe={key:3,class:"text-right"};function FGe(e,o,s,z,Z,m){return t.openBlock(),t.createElementBlock("div",{class:"gsc-switch-radio",style:t.normalizeStyle(m.customText)},[s.textOptionLeft!=""&&!s.hiddenLabels?(t.openBlock(),t.createElementBlock("span",BGe,t.toDisplayString(s.textOptionLeft),1)):t.createCommentVNode("",!0),s.iconA!=""?(t.openBlock(),t.createElementBlock("img",{key:1,width:s.widthIcons,src:s.iconA},null,8,zGe)):t.createCommentVNode("",!0),t.createElementVNode("input",{type:"checkbox",id:"toggle-btn",onChange:o[0]||(o[0]=(...g)=>m.handleSwitchChange&&m.handleSwitchChange(...g)),checked:Z.OptionDefault},null,40,DGe),t.createElementVNode("label",{for:"toggle-btn",style:t.normalizeStyle([m.customStyle,{"--circle-color":s.circleColorSwitch}])},null,4),s.iconB!=""?(t.openBlock(),t.createElementBlock("img",{key:2,width:s.widthIcons,src:s.iconB},null,8,OGe)):t.createCommentVNode("",!0),s.textOptionRight!=""&&!s.hiddenLabels?(t.openBlock(),t.createElementBlock("span",NGe,t.toDisplayString(s.textOptionRight),1)):t.createCommentVNode("",!0)],4)}const NN=Ki(Tk,[["render",FGe],["__scopeId","data-v-c17e5be3"]]),WHt="";let FN=null;const Ak={components:{},props:{canPlayVideos:{type:Boolean,default:!1},titleCategory:{type:String,default:"RESUMEN"},dateGame:{type:String,default:""},colorBackgroundHome:{type:String,default:"#000000"},colorBackgroundAway:{type:String,default:"#FFFFFF"},logoHome:{type:String,default:""},isLive:{type:Boolean,default:!0},matchday:{type:String,default:""},seasonName:{type:String,default:""},logoAway:{type:String,default:""},score:{type:String,default:""},background:{type:String,default:""}},data(){return{gamesContainerWidth:0}},computed:{isSafari(){return ZM()},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)FN=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),FN.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},RN=()=>{t.useCssVars(e=>({"546f95da":e.colorBackgroundHome+"45",a36e8f38:e.colorBackgroundAway+"45","36124c37":e.colorBackgroundHome,"360f3a46":e.colorBackgroundAway}))},VN=Ak.setup;Ak.setup=VN?(e,o)=>(RN(),VN(e,o)):RN;const RGe=["src"],VGe=["src"],jGe=["src"],UGe={class:"text-container"};function GGe(e,o,s,z,Z,m){return t.openBlock(),t.createElementBlock("div",{ref:"gamesContainer",class:t.normalizeClass(m.thumbnailhighlights)},[s.canPlayVideos?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(m.playbutton),onClick:o[0]||(o[0]=(...g)=>m.onclickPlayVideos&&m.onclickPlayVideos(...g))},o[1]||(o[1]=[t.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},[t.createElementVNode("path",{d:"M6.6041 22.8554C6.42105 22.7512 6.26805 22.5956 6.1616 22.4053C6.05515 22.215 5.99927 21.9973 6.00001 21.7755V2.22137C6.00026 2.00039 6.0565 1.78362 6.16274 1.59409C6.26899 1.40456 6.42127 1.24936 6.6034 1.14499C6.78553 1.04062 6.9907 0.990981 7.1971 1.00135C7.4035 1.01171 7.60342 1.0817 7.77561 1.20386L21.4907 10.9821C21.6473 11.0935 21.7758 11.2446 21.8646 11.4219C21.9535 11.5992 22 11.7973 22 11.9985C22 12.1996 21.9535 12.3977 21.8646 12.575C21.7758 12.7523 21.6473 12.9034 21.4907 13.0148L7.77561 22.7954C7.60369 22.9178 7.40392 22.988 7.19761 22.9986C6.9913 23.0092 6.78617 22.9597 6.6041 22.8554ZM7.14347 21.7779L20.8585 11.9996L7.14347 21.7779Z",fill:"#CBEE6B"})],-1)]),2)):t.createCommentVNode("",!0),s.dateGame!=""?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(m.date)},t.toDisplayString(s.dateGame),3)):t.createCommentVNode("",!0),s.matchday!=""&&s.seasonName!=""?(t.openBlock(),t.createElementBlock("div",{key:2,class:t.normalizeClass(m.containerinfogame)},[s.matchday!=""?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(m.matchcontainer)},t.toDisplayString(s.matchday),3)):t.createCommentVNode("",!0),s.seasonName!=""?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(m.seasoncontainer)},t.toDisplayString(s.seasonName),3)):t.createCommentVNode("",!0)],2)):t.createCommentVNode("",!0),o[2]||(o[2]=t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/paper-texture.png",alt:"",class:"paper-texture position-image"},null,-1)),t.createElementVNode("img",{src:s.background,alt:"",class:"bkg-blackwhite position-image",style:t.normalizeStyle({filter:m.isSafari?"none":""})},null,12,RGe),t.createElementVNode("div",{class:t.normalizeClass([m.baselogo,"position-image"])},null,2),t.createElementVNode("div",{class:t.normalizeClass(m.baselogoright)},null,2),o[3]||(o[3]=t.createElementVNode("div",{class:"gradient-back position-image"},null,-1)),o[4]||(o[4]=t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/halftone-texture.png",alt:"",class:"halftone-texture position-image"},null,-1)),t.createElementVNode("img",{src:s.logoHome,alt:"",class:t.normalizeClass(m.teamlogo)},null,10,VGe),t.createElementVNode("img",{src:s.logoAway,alt:"",class:t.normalizeClass(m.logoright)},null,10,jGe),t.createElementVNode("div",UGe,[t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(m.titlename)},t.toDisplayString(s.titleCategory),3)])],2)}const HGe=Ki(Ak,[["render",GGe],["__scopeId","data-v-f047ea82"]]),qHt="";let jN=null;const ZGe={components:{GSCThumbnailHighlightGameHistoric:HGe},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 o=[];e.type==2?e.data.position_id==1?e.data.category==0?o=[55,324,323,608,39,774,802,52,53,40,54]:o=e.data.category:e.data.category==0?o=[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]:o=e.data.category:e.type==3?e.data.category==0?o=[607,608,12,55,54,35,14,52,15,53,466,477,40,257,39]:o=e.data.category:e.data.category!=0?o=e.data.category:this.titleCard=="RESUMEN"?o=[607,608,12,55,54,35,14,52,15,53,466,477]:o=[12,55,54,35];const s=[1,2,3];let z={seasonId:e.data.season_id,mainSectionType:1,playListType:e.type,categoryIds:o,gameIdsToFilter:e.data.game_id?[e.data.game_id]:null,playerIds:e.data.position_id!=1?e.data.player_id?[e.data.player_id]:[]:[],goalkeeperIds:e.data.position_id==1?e.data.player_id?[e.data.player_id]:[]:[],teamId:e.data.team_id?e.data.team_id:0,matchResult:e.data.matchResult?[e.data.matchResult]:s,playData:{},advancedFilter:{playListTitle:""}};e.data.category!==0&&(z.advancedFilter.mainCategoryId=e.data.category),this.$emit("openmedia",z)},async fillData(){const e=this.$store.getters.getProviderId,o=this.$store.getters.getIsDevApis,s=hd("https://fxtcaw9tw6.execute-api.us-east-2.amazonaws.com/prod/historic/games/"+this.game.gameId,e,o);if(this.lastDataGameUrl!==s){this.$emit("loading",!0),this.lastDataGameUrl=s;const z=_d.create({headers:{Authorization:`${this.token}`}}),Z=await z.get(hd("https://8tvo5bp9ai.execute-api.us-west-2.amazonaws.com/prod/gamesBySeason/"+this.game.seasonId,e,o)),m=await z.get(hd("https://d2oco6mqmc.execute-api.us-west-2.amazonaws.com/prod/teamsBySeason/"+this.game.seasonId,e,o));this.tournamentId=m.data.tournament_id;const g=Z.data.games.findIndex(b=>b.game_id===this.game.gameId);this.gameInfo=Z.data.games[g];const r=await z.get(s);this.showHighlight=r.data==""?!1:r.data.plays.length>0,this.showHighlightGoals=r.data==""?!1:r.data.plays.filter(b=>b[0]===12||b[0]===55||b[0]===54||b[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]?r.data.thumbnails[r.data.game_id].score[0]+" - "+r.data.thumbnails[r.data.game_id].score[1]:"0 - 0",this.item.backgroundhome=r.data.thumbnails[r.data.game_id]?r.data.thumbnails[r.data.game_id].info_thumbnails.home_colors.background_color:"",this.item.backgroundaway=r.data.thumbnails[r.data.game_id]?r.data.thumbnails[r.data.game_id].info_thumbnails.away_colors.background_color:"",this.item.logohome=r.data.thumbnails[r.data.game_id]?Ef("https://golstatsimages.blob.core.windows.net/teams-150/"+r.data.thumbnails[r.data.game_id].home_team+".png",e):"",this.item.logoaway=r.data.thumbnails[r.data.game_id]?Ef("https://golstatsimages.blob.core.windows.net/teams-150/"+r.data.thumbnails[r.data.game_id].visiting_team+".png",e):"",this.item.background=r.data.thumbnails[r.data.game_id]?this.titleCard=="RESUMEN"?"https://golstatsimages.blob.core.windows.net/images-library/"+r.data.thumbnails[r.data.game_id].info_thumbnails.images.background_default_games[0]:"https://golstatsimages.blob.core.windows.net/images-library/Goles_CAT.jpg":"",this.$emit("showleyendlive",!!(this.showHighlight||this.showHighlightGoals)),this.$emit("showsummarylive",this.showHighlight),this.$emit("showgoalslive",this.showHighlightGoals),this.$emit("loading",!1)}},setUpResizeObserver(){if(window.ResizeObserver)jN=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),jN.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},async mounted(){setTimeout(()=>{this.setUpResizeObserver()},1e3),await this.fillData()}},WGe={class:"highlights-prominent-game",ref:"gamesContainer"},qGe={class:"video-partido-container__highlight"};function JGe(e,o,s,z,Z,m){const g=t.resolveComponent("GSCThumbnailHighlightGameHistoric");return t.openBlock(),t.createElementBlock("div",WGe,[t.withDirectives(t.createElementVNode("div",qGe,[t.createCommentVNode("",!0),t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(Z.gamesContainerWidth>865?"video-partido-container__image":"video-partido-container__image2")},[Z.item.background!=""?(t.openBlock(),t.createBlock(g,{key:0,"color-background-home":Z.item.backgroundhome,"color-background-away":Z.item.backgroundaway,"logo-home":Z.item.logohome,"logo-away":Z.item.logoaway,"is-live":!0,"title-category":s.titleCard,"can-play-videos":s.canPlayVideos,background:Z.item.background,matchday:Z.item.match,"season-name":Z.item.seasonname,onOnclickPlayVideos:o[0]||(o[0]=r=>m.onclickPlayVideos({data:Z.item,type:1})),score:Z.item.score},null,8,["color-background-home","color-background-away","logo-home","logo-away","title-category","can-play-videos","background","matchday","season-name","score"])):t.createCommentVNode("",!0)],2)],512),[[t.vShow,s.titleCard=="RESUMEN"&&s.canPlayVideos&&Z.showHighlight||s.titleCard=="GOLES"&&s.canPlayVideos&&Z.showHighlightGoals]])],512)}const YGe=Ki(ZGe,[["render",JGe],["__scopeId","data-v-bab21881"]]),JHt="";let UN=null;const Ek={components:{},props:{titleCategory:{type:String,default:"RESUMEN"},dateGame:{type:String,default:""},colorBackgroundHome:{type:String,default:"#000000"},colorBackgroundAway:{type:String,default:"#FFFFFF"},isLive:{type:Boolean,default:!1},logoHome:{type:String,default:""},game:{type:Object,default:()=>{}},matchday:{type:String,default:""},seasonName:{type:String,default:""},logoAway:{type:String,default:""},score:{type:String,default:""},background:{type:String,default:""}},data(){return{gamesContainerWidth:0}},computed:{isSafari(){return ZM()},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)UN=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),UN.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},GN=()=>{t.useCssVars(e=>({"4ad16d8d":e.colorBackgroundHome+"45","053e609e":e.colorBackgroundAway+"45","288253c7":e.colorBackgroundHome,"287f41d6":e.colorBackgroundAway}))},HN=Ek.setup;Ek.setup=HN?(e,o)=>(GN(),HN(e,o)):GN;const XGe=["src"],$Ge=["src"],KGe=["src"],QGe={class:"text-container"};function eHe(e,o,s,z,Z,m){return t.openBlock(),t.createElementBlock("div",{ref:"gamesContainer",class:t.normalizeClass(m.thumbnailhighlights)},[s.isLive&&s.game.game_status!=0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(Z.gamesContainerWidth>340?Z.gamesContainerWidth>480?"icon-live":"icon-live-tablet":"icon-live-mobile")},o[1]||(o[1]=[t.createElementVNode("span",{class:"circle-live"},null,-1),t.createElementVNode("span",{style:{"margin-left":"3px"}},"LIVE",-1)]),2)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(m.playbutton),onClick:o[0]||(o[0]=(...g)=>m.onclickPlayVideos&&m.onclickPlayVideos(...g))},o[2]||(o[2]=[t.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},[t.createElementVNode("path",{d:"M6.6041 22.8554C6.42105 22.7512 6.26805 22.5956 6.1616 22.4053C6.05515 22.215 5.99927 21.9973 6.00001 21.7755V2.22137C6.00026 2.00039 6.0565 1.78362 6.16274 1.59409C6.26899 1.40456 6.42127 1.24936 6.6034 1.14499C6.78553 1.04062 6.9907 0.990981 7.1971 1.00135C7.4035 1.01171 7.60342 1.0817 7.77561 1.20386L21.4907 10.9821C21.6473 11.0935 21.7758 11.2446 21.8646 11.4219C21.9535 11.5992 22 11.7973 22 11.9985C22 12.1996 21.9535 12.3977 21.8646 12.575C21.7758 12.7523 21.6473 12.9034 21.4907 13.0148L7.77561 22.7954C7.60369 22.9178 7.40392 22.988 7.19761 22.9986C6.9913 23.0092 6.78617 22.9597 6.6041 22.8554ZM7.14347 21.7779L20.8585 11.9996L7.14347 21.7779Z",fill:"#CBEE6B"})],-1)]),2),s.dateGame!=""?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(m.date)},t.toDisplayString(s.dateGame),3)):t.createCommentVNode("",!0),s.matchday!=""&&s.seasonName!=""?(t.openBlock(),t.createElementBlock("div",{key:2,class:t.normalizeClass(m.containerinfogame)},[s.matchday!=""?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(m.matchcontainer)},t.toDisplayString(s.matchday),3)):t.createCommentVNode("",!0),s.seasonName!=""?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(m.seasoncontainer)},t.toDisplayString(s.seasonName),3)):t.createCommentVNode("",!0)],2)):t.createCommentVNode("",!0),o[3]||(o[3]=t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/paper-texture.png",alt:"",class:"paper-texture position-image"},null,-1)),t.createElementVNode("img",{src:s.background,alt:"",class:"bkg-blackwhite position-image",style:t.normalizeStyle({filter:m.isSafari?"none":""})},null,12,XGe),t.createElementVNode("div",{class:t.normalizeClass([m.baselogo,"position-image"])},null,2),t.createElementVNode("div",{class:t.normalizeClass(m.baselogoright)},null,2),o[4]||(o[4]=t.createElementVNode("div",{class:"gradient-back position-image"},null,-1)),o[5]||(o[5]=t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/halftone-texture.png",alt:"",class:"halftone-texture position-image"},null,-1)),t.createElementVNode("img",{src:s.logoHome,alt:"",class:t.normalizeClass(m.teamlogo)},null,10,$Ge),t.createElementVNode("img",{src:s.logoAway,alt:"",class:t.normalizeClass(m.logoright)},null,10,KGe),t.createElementVNode("div",QGe,[t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(m.titlename)},t.toDisplayString(s.titleCategory),3)])],2)}const tHe=Ki(Ek,[["render",eHe],["__scopeId","data-v-9894dd92"]]),YHt="";let ZN=null;const aHe={components:{GSCThumbnailHighlightGameHistoricLive:tHe},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 o=[];e.type==2?e.data.position_id==1?e.data.category==0?o=this.$store.getters.getProviderId==1?[55,324,323,608,39,774,802,52,53,40,54]:[393,447,472,1075,893,470,866,985,986,474,905,907]:o=e.data.category:e.data.category==0?o=this.$store.getters.getProviderId==1?[12,35,10,27,607,61,519,98,101,109,112,121,122,127,128,135,136,141,142,161,170,179,702,730,466,217,211,232,235,239,242,282,284,289,291,296,485,486,487,488,14,15,257]:[393,447,472,1075,992,1036,1155,1156,470,866,1035,33,873,871,38,46,985,986]:o=e.data.category:e.type==3?e.data.category==0?o=this.$store.getters.getProviderId==1?[607,608,12,55,54,35,14,52,15,53,466,477,40,257,39]:[1075,393,1415,1035,985,986,474,893]:o=e.data.category:e.type==4?o=this.$store.getters.getProviderId==1?[12,55,"35_r","54_r"]:[393,444]:e.data.category!=0?o=e.data.category:this.titleCard=="RESUMEN"?o=this.$store.getters.getProviderId==1?[607,608,12,55,54,35,14,52,15,53,466,477]:[393,444,985,986,1035,1075,473]:o=this.$store.getters.getProviderId==1?[12,55,54,35]:[393,1415];const s=[1,2,3];let z={seasonId:e.data.season_id,mainSectionType:1,playListType:e.type,categoryIds:o,gameIdsToFilter:e.data.game_id?[e.data.game_id]:null,playerIds:e.data.position_id!=1?e.data.player_id?[e.data.player_id]:[]:[],goalkeeperIds:e.data.position_id==1?e.data.player_id?[e.data.player_id]:[]:[],teamId:e.data.team_id?e.data.team_id:0,matchResult:e.data.matchResult?[data.matchResult]:s,playData:{},advancedFilter:{playListTitle:""}};e.data.category!==0&&(z.advancedFilter.mainCategoryId=e.data.category),this.$emit("openmedia",z)},async getLiveHighlights(){const e=this.$store.getters.getProviderId,o=this.$store.getters.getIsDevApis,z=await _d.create({headers:{Authorization:`${this.token}`}}).get(hd("https://fxtcaw9tw6.execute-api.us-east-2.amazonaws.com/prod/live/historic/games/"+this.game.gameId,e,o));z.data!=""&&(this.showHighlight=z.data==""?!1:z.data.plays.length>0,this.showHighlightGoals=z.data==""?!1:z.data.plays.filter(Z=>Z[0]===12||Z[0]===55||Z[0]===54||Z[0]===35).length>0,this.item.category=0,this.item.game_id=z.data.game_id,this.item.season_id=this.game.seasonId,this.item.score=z.data.thumbnails[z.data.game_id].score,this.item.backgroundhome=z.data.thumbnails[z.data.game_id].info_thumbnails.home_colors.background_color,this.item.backgroundaway=z.data.thumbnails[z.data.game_id].info_thumbnails.away_colors.background_color,this.item.logohome=Ef("https://golstatsimages.blob.core.windows.net/teams-150/"+z.data.thumbnails[z.data.game_id].home_team+".png",e),this.item.logoaway=Ef("https://golstatsimages.blob.core.windows.net/teams-150/"+z.data.thumbnails[z.data.game_id].visiting_team+".png",e),this.item.background=this.titleCard=="RESUMEN"?"https://golstatsimages.blob.core.windows.net/images-library/"+z.data.thumbnails[z.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)ZN=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainerlivehigh.clientWidth}),ZN.observe(this.$refs.gamesContainerlivehigh);else throw new Error("Resize observer not supported!")}},async mounted(){setTimeout(()=>{this.setUpResizeObserver()},1e3)}},rHe={class:"highlights-prominent-game",ref:"gamesContainerlivehigh"},nHe={class:"video-partido-container__highlight"},iHe={class:"video-partido-container__image"};function oHe(e,o,s,z,Z,m){const g=t.resolveComponent("GSCThumbnailHighlightGameHistoricLive");return t.openBlock(),t.createElementBlock("div",rHe,[t.withDirectives(t.createElementVNode("div",nHe,[t.createCommentVNode("",!0),t.createElementVNode("div",iHe,[t.createVNode(g,{"is-live":!0,game:s.game,"color-background-home":Z.item.backgroundhome,"color-background-away":Z.item.backgroundaway,"logo-home":Z.item.logohome,"logo-away":Z.item.logoaway,"title-category":s.titleCard,background:Z.item.background,onOnclickPlayVideos:o[1]||(o[1]=r=>m.onclickPlayVideos({data:Z.item,type:1})),matchday:Z.item.match,"season-name":Z.item.seasonname,score:Z.item.score},null,8,["game","color-background-home","color-background-away","logo-home","logo-away","title-category","background","matchday","season-name","score"])])],512),[[t.vShow,s.titleCard=="RESUMEN"&&s.canPlayVideos&&Z.showHighlight||s.titleCard=="GOLES"&&s.canPlayVideos&&Z.showHighlightGoals]])],512)}const sHe=Ki(aHe,[["render",oHe],["__scopeId","data-v-80ae2df5"]]),Mk="/play-icn.svg",XHt="",lHe={name:"TooltipEmpty",props:{data:{type:Object,required:!0}},computed:{showTooltip(){return{visible:this.data.visible}}},methods:{tooltipClick:function(){},closeClick:function(){this.$emit("close")}}};function cHe(e,o,s,z,Z,m){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["back-tooltip",m.showTooltip])},[t.createElementVNode("div",{class:t.normalizeClass(["box-tooltip",m.showTooltip]),onClick:o[1]||(o[1]=(...g)=>m.tooltipClick&&m.tooltipClick(...g))},[t.createElementVNode("span",{role:"button",class:"box-tooltip-close",onClick:o[0]||(o[0]=(...g)=>m.closeClick&&m.closeClick(...g))},"×"),t.renderSlot(e.$slots,"default",{},void 0,!0)],2)],2)}const dHe=Ki(lHe,[["render",cHe],["__scopeId","data-v-5ec23081"]]),$Ht="",uHe=["id"],hHe={class:"game-event__minute"},pHe={class:"game-event__icon"},fHe=["src"],mHe="/images/events/",gHe=Ki({__name:"GameEvent",props:{gameEvent:{type:Object,default:()=>{}}},emits:["click-event"],setup(e,{emit:o}){const s=e,z=o,Z=t.computed(()=>({"--icon-bottom":s.gameEvent.isHomeTeam?"30px":"-5px","--border-color":s.gameEvent.isSelected?"#336dff":"#747c83","--background-color":s.gameEvent.isSelected?"#336dff":"#0d1d29"})),m=t.computed(()=>{let r="";return s.gameEvent.category_id===18?r="icn-tiros-de-esquina.svg":s.gameEvent.category_id===20?r="icn-tiro-a-porteria.svg":s.gameEvent.category_id===10?r="icn-cambio.svg":s.gameEvent.category_id===21?r="icn-falta.svg":s.gameEvent.category_id===27?r="atajada.svg":s.gameEvent.category_id===17?r="fuera-de-lugar.svg":s.gameEvent.category_id===4||s.gameEvent.category_id===13||s.gameEvent.category_id===14||s.gameEvent.category_id===16||s.gameEvent.category_id===6&&s.gameEvent.event_type_id===1||s.gameEvent.category_id===5&&s.gameEvent.event_type_id===1||s.gameEvent.category_id===1&&s.gameEvent.event_type_id===1||s.gameEvent.category_id===2&&s.gameEvent.event_type_id===1||s.gameEvent.category_id===3&&s.gameEvent.event_type_id===1||s.gameEvent.category_id===7&&s.gameEvent.event_type_id===1||s.gameEvent.category_id===12&&s.gameEvent.event_type_id===1?r="gol.svg":s.gameEvent.category_id==30||s.gameEvent.category_id==31||s.gameEvent.category_id==32||s.gameEvent.category_id==33||s.gameEvent.category_id==34||s.gameEvent.category_id==35||s.gameEvent.category_id==36||s.gameEvent.category_id==37||s.gameEvent.category_id==38||s.gameEvent.category_id==39||s.gameEvent.category_id==40?r="var.png":s.gameEvent.category_id===28?r="tiempo-agregado.svg":s.gameEvent.category_id===26?r="jugada-peligrosa.svg":s.gameEvent.category_id===22?r="penal-marcado.svg":s.gameEvent.category_id===15||s.gameEvent.category_id===23?r="penal-fallado.svg":s.gameEvent.category_id===8?r="icn-tarjeta-amarilla.svg":s.gameEvent.category_id===9?r="icn-tarjeta-roja.svg":r="generic.svg",`${mHe}${r}`});function g(){z("click-event",s.gameEvent)}return(r,b)=>(t.openBlock(),t.createElementBlock("div",{id:s.gameEvent.play_id,class:"game-event",onClick:g,style:t.normalizeStyle(Z.value)},[t.createElementVNode("div",hHe,[t.createElementVNode("div",null,t.toDisplayString(e.gameEvent.minute)+"'",1)]),t.createElementVNode("div",pHe,[t.createElementVNode("img",{src:m.value},null,8,fHe)])],12,uHe))}},[["__scopeId","data-v-cb3d6917"]]),QHt="",yHe={class:"events-line"},vHe={class:"events-line__events"},bHe=Ki({__name:"EventsLine",props:{gameEvents:{type:Array,default:()=>[]}},emits:["click-event"],setup(e,{emit:o}){const s=o;function z(Z){s("click-event",Z)}return(Z,m)=>(t.openBlock(),t.createElementBlock("div",yHe,[t.createVNode(t.unref(x2),{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",vHe,[m[0]||(m[0]=t.createElementVNode("div",{class:"events-line__events__line"},null,-1)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.gameEvents,g=>(t.openBlock(),t.createBlock(gHe,{key:g.id,"game-event":g,onClickEvent:z},null,8,["game-event"]))),128))])]),_:1})]))}},[["__scopeId","data-v-f5698f0e"]]),tZt="",xHe={class:"tooltip-data"},_He=["src"],wHe={class:"game-events__team-logo"},kHe=["src"],SHe={class:"game-events__event-info"},CHe={key:0,class:"game-events__event-info__line"},THe={key:1,class:"game-events__event-info__info"},AHe={class:"game-events__event-info__info__player-photo"},EHe={key:0,class:"game-events__event-info__info__player-photo__img"},MHe=["src"],IHe={class:"game-events__event-info__info__event-name"},PHe={class:"game-events__event-info__info__player-name"},LHe={class:"game-events__events"},BHe={class:"game-events__team-logo"},zHe=["src"],DHe={class:"game-events__event-info"},OHe={key:0,class:"game-events__event-info__line"},NHe={key:1,class:"game-events__event-info__info"},FHe={class:"game-events__event-info__info__player-photo"},RHe={key:0,class:"game-events__event-info__info__player-photo__img"},VHe=["src"],jHe={class:"game-events__event-info__info__event-name"},UHe={class:"game-events__event-info__info__player-name"},GHe="https://11rcgkydx3.execute-api.us-east-2.amazonaws.com/prod/games/",HHe=Ki({__name:"GameEvents",props:{game:{type:Object,default:()=>({})},widthScreen:{type:Number,default:0},token:{type:String,default:""},canPlayVideos:{type:Boolean,default:!0},gameEventsIntervalMinutes:{type:Number,default:1}},emits:["play-video"],setup(e,{emit:o}){let s=null,z=0;const Z=kp(),m=e,g=o,r=t.ref([]),b=t.ref(new Map),p=t.ref(""),a=t.ref(null),_=t.ref({visible:!1,link:""}),y=t.ref(new Set),x=t.ref(0),h=t.computed(()=>m.game.is_live||m.game.game_status===0);t.watch(()=>m.game,(A,P)=>{A&&A.gameId!==z?(y.value.clear(),z=A.gameId,d(),i(A.gameId,A.is_live&&A.game_status===4)):A&&A.is_live&&(!P||!P.is_live)?i(A.gameId,!0):A&&!A.is_live&&P.is_live&&d()},{deep:!0,immediate:!0}),t.watch(()=>p.value,(A,P)=>{if(A!==P){const L=b.value.get(P),T=b.value.get(A);if(L&&(L.isSelected=!1),T){if(!T.playerShortName){const[I,M]=T.player_name.split(","),S=I.split(" ");let B="";for(const k of S)if(B+=` ${k}`,k.length>3)break;T.playerShortName=M&&I?`${M.trim().charAt(0)}.${B}`:""}T.isSelected=!0,a.value=T}}});function n(A){s=setInterval(()=>{i(A)},1e3*60*m.gameEventsIntervalMinutes)}async function i(A,P=!1){try{let L=await v(A),T=!1;A!==x.value&&(r.value=[],b.value=new Map,p.value="",y.value.clear(),x.value=A),console.log("events",L);let I=L.filter(M=>{const S=y.value.has(M.play_id);return S||y.value.add(M.play_id),!S});if(I){I=I.reduce((S,B)=>(T=B.game_finished,B.team_id&&(B.isHomeTeam=B.team_id===m.game.homeTeam.team_id,S.push(B),b.value.set(B.play_id,B)),S),[]);const M=[...r.value];l(I).forEach(S=>{h.value?M.unshift(S):M.push(S)}),r.value=h.value?l(M).reverse():l(M)}r.value&&r.value.length&&(h.value||!p.value&&r.value.length)&&(p.value=r.value[0].play_id),P&&!T?n(A):T&&d()}catch(L){console.error(L)}}function d(){s&&(clearInterval(s),s=null)}function l(A){return A.sort((P,L)=>u(P.matchlapse)+Number(P.minute)-(u(L.matchlapse)+Number(L.minute)))}function u(A){let P=0;switch(A){case 1:P=0;break;case 2:P=45;break;case 3:P=90;break;case 4:P=105;break;case 5:P=120;break}return P}async function v(A){try{const P=hd(`${GHe}${A}/timeline`,Z.getters.getProviderId,Z.getters.getIsDevApis),T=(await _d.get(P,{headers:{Authorization:m.token}})).data;return T?T.plays||[]:[]}catch(P){throw new Error(P)}}function w(A){p.value=A.play_id}function C(){m.canPlayVideos&&a.value.play_id&&g("play-video",{categoryId:Z.getters.getProviderId==1?a.value.main_category_id:a.value.category_id,playId:a.value.play_id})}function E(){_.value.visible=!1,_.value.link=""}return t.onBeforeUnmount(()=>{d()}),(A,P)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createVNode(dHe,{data:_.value,onClose:E},{default:t.withCtx(()=>[t.createElementVNode("div",xHe,[t.createElementVNode("div",null,[t.createElementVNode("video",{class:"tooltip-video",controls:"",autoplay:"",src:_.value.link,format:"video/mp4"},null,8,_He)])])]),_:1},8,["data"]),t.createElementVNode("div",{class:t.normalizeClass(e.widthScreen>920?"game-events":"game-events__mobile")},[P[2]||(P[2]=t.createElementVNode("div",{class:"game-events__title-left-padding"},null,-1)),P[3]||(P[3]=t.createElementVNode("div",{class:"game-events__title"},"Eventos",-1)),t.createElementVNode("div",wHe,[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,kHe)):t.createCommentVNode("",!0)]),t.createElementVNode("div",SHe,[a.value&&a.value.isHomeTeam?(t.openBlock(),t.createElementBlock("div",CHe)):t.createCommentVNode("",!0),a.value&&a.value.isHomeTeam?(t.openBlock(),t.createElementBlock("div",THe,[t.createElementVNode("div",AHe,[a.value.player_id?(t.openBlock(),t.createElementBlock("div",EHe,[t.createElementVNode("img",{src:t.unref(Z).getters.getProviderId==1?`https://golstatsimages.blob.core.windows.net/players-profile/${a.value.player_id}.png`:`https://golstatsimages.blob.core.windows.net/players-profile/${t.unref(Z).getters.getProviderId}/${a.value.player_id}.png`,alt:""},null,8,MHe)])):t.createCommentVNode("",!0)]),t.createElementVNode("div",IHe,t.toDisplayString(a.value.event_type_id===1?a.value.event_type_name:a.value.category_name),1),t.createElementVNode("div",PHe," | "+t.toDisplayString(a.value.playerShortName),1),e.canPlayVideos&&a.value.play_id?(t.openBlock(),t.createElementBlock("div",{key:0,role:"button",class:"game-events__event-info__info__button-play",onClick:C},P[0]||(P[0]=[t.createElementVNode("img",{src:Mk,alt:""},null,-1)]))):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)]),P[4]||(P[4]=t.createElementVNode("div",{class:"game-events__events-padding"},null,-1)),t.createElementVNode("div",LHe,[t.createVNode(bHe,{"game-events":r.value,onClickEvent:w},null,8,["game-events"])]),t.createElementVNode("div",BHe,[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,zHe)):t.createCommentVNode("",!0)]),t.createElementVNode("div",DHe,[a.value&&!a.value.isHomeTeam?(t.openBlock(),t.createElementBlock("div",OHe)):t.createCommentVNode("",!0),a.value&&!a.value.isHomeTeam?(t.openBlock(),t.createElementBlock("div",NHe,[t.createElementVNode("div",FHe,[a.value.player_id?(t.openBlock(),t.createElementBlock("div",RHe,[t.createElementVNode("img",{src:t.unref(Z).getters.getProviderId==1?`https://golstatsimages.blob.core.windows.net/players-profile/${a.value.player_id}.png`:`https://golstatsimages.blob.core.windows.net/players-profile/${t.unref(Z).getters.getProviderId}/${a.value.player_id}.png`,alt:""},null,8,VHe)])):t.createCommentVNode("",!0)]),t.createElementVNode("div",jHe,t.toDisplayString(a.value.event_type_id===1?a.value.event_type_name:a.value.category_name),1),t.createElementVNode("div",UHe," | "+t.toDisplayString(a.value.playerShortName),1),e.canPlayVideos&&a.value.play_id?(t.openBlock(),t.createElementBlock("div",{key:0,role:"button",class:"game-events__event-info__info__button-play",onClick:C},P[1]||(P[1]=[t.createElementVNode("img",{src:Mk,alt:""},null,-1)]))):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)])],2)],64))}},[["__scopeId","data-v-c9848892"]]),rZt="",ZHe={class:"toggle-buttons__background"},WHe=["onClick"],qHe={key:0,class:"toggle-buttons__button__img"},JHe=["src"],x5=Ki({__name:"ToggleButtons",props:{buttons:{type:Array,required:!0},selectedButtonIndex:{type:Number,default:0},height:{type:String,default:"29px"},width:{type:String,default:"100%"},fontSize:{type:String,default:"12px"},fontFamily:{type:String,default:"Poppins-Medium"},borderRadius:{type:String,default:"8px"},mainBackgroundColor:{type:String,default:"#364448"},mainBorderColor:{type:String,default:"#9AA1A3"},mainBorderWidth:{type:String,default:"0.5px"},activeBorderColor:{type:String,default:"#cbee6b"},activeBorderWidth:{type:String,default:"1px"},activeBackgroundColor:{type:String,default:"#2e3b46"},activeFontColor:{type:String,default:"#FFFFFF"}},emits:["change"],setup(e,{emit:o}){t.useCssVars(r=>({64265112:e.height,df19770a:e.width,"6caf15d1":e.mainBackgroundColor,"2d25df89":e.borderRadius,"21a281f6":e.mainBorderWidth,"208b8393":e.mainBorderColor,94332204:e.fontFamily,"3e48121b":e.fontSize,"37a2dd49":e.activeBorderWidth,"368bdee6":e.activeBorderColor,ecc8e0b8:e.activeBackgroundColor,"5528ac63":e.activeFontColor}));const s=e,z=o,Z=t.ref(s.selectedButtonIndex),m=t.computed(()=>({"--grid-template-columns":`repeat(${s.buttons.length}, 1fr)`}));t.watch(()=>s.selectedButtonIndex,r=>{Z.value=r}),t.watch(Z,(r,b)=>{r!==b&&z("change",{index:r,button:s.buttons[r]})});function g(r){Z.value=r}return(r,b)=>(t.openBlock(),t.createElementBlock("div",ZHe,[t.createElementVNode("div",{class:"toggle-buttons",style:t.normalizeStyle(m.value)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.buttons,(p,a)=>(t.openBlock(),t.createElementBlock("div",{key:`b${a}`,class:t.normalizeClass(["toggle-buttons__button",{active:Z.value===a,right:p.img&&a>0}]),onClick:_=>g(a)},[p.img?(t.openBlock(),t.createElementBlock("div",qHe,[t.createElementVNode("img",{src:p.img,alt:""},null,8,JHe)])):t.createCommentVNode("",!0),t.createElementVNode("div",null,t.toDisplayString(p.text||p),1)],10,WHe))),128))],4)]))}},[["__scopeId","data-v-8c3c29c6"]]),iZt="",oZt="",YHe={class:"tooltip__content"},XHe={key:0,class:"tooltip__content__category"},$He={class:"tooltip__content__player"},KHe={class:"tooltip__content__player__name"},QHe={class:"tooltip__content__player__photo"},eZe=["src"],tZe={class:"tooltip__content__minute"},aZe={key:1,class:"tooltip__content__game"},rZe={class:"tooltip__content__game__round-abbreviation"},nZe={class:"tooltip__content__game__logo"},iZe=["src"],oZe={class:"tooltip__content__game__logo"},sZe=["src"],lZe={key:2,class:"tooltip__content__team"},cZe={class:"tooltip__content__team__logo"},dZe=["src"],uZe=Ki({__name:"TooltipChalkboard",props:{event:{type:Object,default:()=>({})},position:{type:Object,default:()=>({x:"0",y:"0"})}},emits:["close"],setup(e,{emit:o}){const s=e,z=o,Z=t.computed(()=>({"--top":s.position.y,"--left":s.position.x})),m=t.computed(()=>`${s.event.player.player_name} ${s.event.player.player_lastname}`),g=t.computed(()=>{const[b]=s.event.momentOfPlay.split(":");return`${Number(b)}'`});function r(){z("close")}return(b,p)=>(t.openBlock(),t.createElementBlock("div",{class:"tooltip",onClick:r,style:t.normalizeStyle(Z.value)},[t.createElementVNode("div",YHe,[e.event.categoryName?(t.openBlock(),t.createElementBlock("div",XHe,t.toDisplayString(e.event.categoryName),1)):t.createCommentVNode("",!0),t.createElementVNode("div",$He,[t.createElementVNode("div",KHe,t.toDisplayString(m.value),1),t.createElementVNode("div",QHe,[t.createElementVNode("img",{src:e.event.player.photo,alt:""},null,8,eZe)])]),t.createElementVNode("div",tZe,"Minuto: "+t.toDisplayString(g.value),1),e.event.game?(t.openBlock(),t.createElementBlock("div",aZe,[p[0]||(p[0]=t.createElementVNode("div",{class:"tooltip__content__game__name"},"Partido:",-1)),t.createElementVNode("div",rZe,t.toDisplayString(e.event.game.roundAbbreviation),1),t.createElementVNode("div",nZe,[t.createElementVNode("img",{src:e.event.game.homeTeam.logo,alt:""},null,8,iZe)]),p[1]||(p[1]=t.createElementVNode("div",{class:"tooltip__content__game__vs"},"VS",-1)),t.createElementVNode("div",oZe,[t.createElementVNode("img",{src:e.event.game.awayTeam.logo,alt:""},null,8,sZe)])])):(t.openBlock(),t.createElementBlock("div",lZe,[p[2]||(p[2]=t.createElementVNode("div",{class:"tooltip__content__team__name"},"Equipo:",-1)),t.createElementVNode("div",cZe,[t.createElementVNode("img",{src:e.event.team.logo,alt:""},null,8,dZe)])]))])],4))}},[["__scopeId","data-v-b3a94cf2"]]),hZe=["id"],pZe=["fill"],fZe=["id"],mZe=["fill"],gZe=["stroke-dasharray","x1","y1","x2","y2","marker-end"],yZe=["x","y","stroke-width","fill","stroke"],vZe=["x","y"],bZe={__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 o=e,s=t.computed(()=>{const n=[];if(o.eventConnection.hasConnectionPath){const i=o.eventConnection.x1===o.eventConnection.x2&&o.eventConnection.y1===o.eventConnection.y2?1:2;let d=r(o.eventConnection.previousEvent?o.eventConnection.previousEvent.y3:o.eventConnection.y1);const l=b(o.eventConnection.previousEvent?o.eventConnection.previousEvent.x3:o.eventConnection.x1);let u=0,v=0;i===2&&(u=r(o.eventConnection.y2),v=b(o.eventConnection.x2));const w=r(o.eventConnection.y3),C=b(o.eventConnection.x3);i===1?n.push({x1:l,y1:d,x2:C,y2:w}):(n.push({x1:l,y1:d,x2:v,y2:u}),n.push({x1:v,y1:u,x2:C,y2:w}))}return n}),z=t.computed(()=>o.mainEventIdSelected!==0?o.eventConnection.relatedPlayId===o.mainEventIdSelected?1:.1:1),Z=t.computed(()=>o.mainEventIdSelected!==0?o.eventConnection.relatedPlayId===o.mainEventIdSelected:!0),m=t.computed(()=>r(o.eventConnection.previousEvent?o.eventConnection.previousEvent.y3:o.eventConnection.y1)),g=t.computed(()=>b(o.eventConnection.previousEvent?o.eventConnection.previousEvent.x3:o.eventConnection.x1));function r(n){return(1-n)*100}function b(n){return n*100}function p(n){Fu.emit("mouse-over-event",{mouseEvent:n,eventConnection:o.eventConnection,position:{x:g.value,y:m.value}})}let a=null,_=null;function y(n){!a||_!==n.relatedPlayId?(a&&x(),_=n.relatedPlayId,a=setTimeout(()=>{Fu.emit("mouse-click-time-event",n.relatedPlayId),x()},1e3)):(Fu.emit("mouse-double-click-time-event",{categoriesIds:n.categoriesIds,playId:n.relatedPlayId}),x())}function x(){a&&(clearTimeout(a),a=null)}function h(){Fu.emit("mouse-leave-event",{mainEventId:o.eventConnection.relatedPlayId,eventId:o.eventConnection.playId})}return(n,i)=>(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:z.value})},[t.createElementVNode("path",{d:"M0,0 L0,6 L9,3 z",fill:e.color},null,8,pZe)],12,hZe),[[t.vShow,Z.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:z.value})},[t.createElementVNode("circle",{cx:"2",cy:"2",r:"2",fill:e.color},null,8,mZe)],12,fZe),[[t.vShow,Z.value]])]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.value,(d,l)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[d.x1&&d.y1?t.withDirectives((t.openBlock(),t.createElementBlock("line",{key:`${e.eventConnection.playId}-${l}`,style:t.normalizeStyle({stroke:e.color,"stroke-width":2,opacity:z.value}),"stroke-dasharray":l===0&&s.value.length===2?"none":"5,5",x1:`${d.x1}%`,y1:`${d.y1}%`,x2:`${d.x2}%`,y2:`${d.y2}%`,"marker-start":"`url(`#b-${eventConnection.playId}`)`","marker-end":`url(${e.isLastEvent&&l===s.value.length-1?`#a-${e.eventConnection.playId}`:""})`},null,12,gZe)),[[t.vShow,Z.value]]):t.createCommentVNode("",!0)],64))),256)),t.withDirectives(t.createElementVNode("g",{onMouseover:t.withModifiers(p,["stop"]),onMouseleave:t.withModifiers(h,["stop"]),onClick:i[0]||(i[0]=t.withModifiers(d=>y(e.eventConnection),["stop"])),style:t.normalizeStyle({cursor:"pointer",opacity:z.value})},[t.createElementVNode("rect",{x:`${g.value}%`,y:`${m.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:z.value}),rx:"14",ry:"14"},null,12,yZe),t.createElementVNode("text",{x:`${g.value}%`,y:`${m.value}%`,"text-anchor":"middle","dominant-baseline":"middle",dy:"1","font-size":"15",fill:"#fff","font-family":"'Poppins-SemiBold', sans-serif",style:t.normalizeStyle({opacity:z.value})},t.toDisplayString(e.eventConnection.player?e.eventConnection.player.jersey:""),13,vZe)],36),[[t.vShow,Z.value]])],64))}},xZe={__name:"EventConnections",props:{eventConnections:{type:Object,required:!0},mainEventIdSelected:{type:Number,default:0}},setup(e){const o=e,s=t.computed(()=>o.eventConnections.getEventsConnectionsByEventType());return(z,Z)=>(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.value,(m,g)=>(t.openBlock(),t.createBlock(bZe,{key:m.id,color:e.eventConnections.getEventColor(m),"is-last-event":g===s.value.length-1,"event-connection":m,"main-event-id-selected":e.mainEventIdSelected},null,8,["color","is-last-event","event-connection","main-event-id-selected"]))),128))}},lZt="",_Ze={class:"soccer-chalkboard"},wZe={id:"soccerChalkboardField",class:"soccer-chalkboard__field"},kZe=["src"],SZe={viewBox:"0 0 547 340",fill:"none",xmlns:"http://www.w3.org/2000/svg"},CZe=Ki({__name:"SoccerChalkboard",props:{eventsConnections:{type:Array,default:()=>[]},listType:{type:String,default:"events"},playersSelected:{type:Set,default:()=>new Set},teamsSelected:{type:Set,default:()=>new Set},isAssistantZoneVisible:{type:Boolean,default:!1}},emits:["click-play","change-main-event"],setup(e,{expose:o,emit:s}){const z=s,m=Une()?0:1e3;Fu.on("mouse-over-time-event",d=>{x(d),setTimeout(()=>{x(d)},m)}),Fu.on("mouse-click-time-event",d=>{x(d)}),Fu.on("mouse-double-click-time-event",d=>{z("click-play",{categoriesIds:d.categoriesIds,playId:d.playId})}),Fu.on("mouse-leave-time-event",d=>{setTimeout(()=>{p.value==d&&!r.value&&x(0)},m)}),Fu.on("mouse-over-event",d=>{n(d)}),Fu.on("mouse-leave-event",d=>{setTimeout(()=>{d.eventId===a.value&&i()},m)});const g=e,r=t.ref(!1),b=t.ref({}),p=t.ref(0),a=t.ref(0),_=t.ref({x:0,y:0}),y=t.computed(()=>g.isAssistantZoneVisible?"https://golstatsimages.blob.core.windows.net/todoelfut/pizarra.jpg":"https://golstatsimages.blob.core.windows.net/todoelfut/field-green-posesion.jpg");function x(d){p.value=d,z("change-main-event",d)}function h(){r.value=!1}function n(d){var C,E;const l={...d.eventConnection};if([12,55,"35_r","54_r"].includes(l.categoryId)&&((C=l.player)==null?void 0:C.team_id)!==l.teamId){const A=l.gameAux||l.game,P=A.homeTeam.team_id===((E=l.player)==null?void 0:E.team_id)?A.homeTeam:A.awayTeam;l.categoryName="Autogol",l.team=P}const v=170,w=document.getElementById("soccerChalkboardField");if(w){const A=w.getBoundingClientRect(),P=d.position.x/100*A.width+14,L=d.position.y/100*A.height+14,T=P+v>A.width?A.width-v:P,I=L;a.value=d.eventConnection.playId,b.value=l,_.value={x:`${T}px`,y:`${I}px`},r.value=!0}}function i(){r.value=!1}return o({setMainEventIdSelected:x}),(d,l)=>(t.openBlock(),t.createElementBlock("div",_Ze,[t.createElementVNode("div",wZe,[t.createElementVNode("img",{src:y.value,alt:""},null,8,kZe),(t.openBlock(),t.createElementBlock("svg",SZe,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.eventsConnections,(u,v)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[e.listType==="events"&&u.hasTeam(e.teamsSelected)||e.listType==="players"&&u.hasPlayer(e.playersSelected)?(t.openBlock(),t.createBlock(xZe,{key:v,"event-connections":u,"main-event-id-selected":p.value},null,8,["event-connections","main-event-id-selected"])):t.createCommentVNode("",!0)],64))),256))]))]),r.value?(t.openBlock(),t.createBlock(uZe,{key:0,position:_.value,event:b.value,onClose:h},null,8,["position","event"])):t.createCommentVNode("",!0)]))}},[["__scopeId","data-v-4a9d851d"]]),dZt="",TZe={class:"events-timeline"},AZe=["id","onClick","onMouseover","onMouseleave"],EZe=["id"],MZe=["fill"],IZe=["fill","mask"],PZe=["stroke"],LZe=Ki({__name:"EventsTimeLine",props:{eventsConnections:{type:Array,default:()=>[]},listType:{type:String,default:"events"},playersSelected:{type:Set,default:()=>new Set},teamsSelected:{type:Set,default:()=>new Set},mainEventIdSelected:{type:Number,default:0}},setup(e){const o=["0'","45'","90'"],s=e,z=t.computed(()=>s.eventsConnections.reduce((a,_)=>{const y={minute:"0'",left:"0%",color:_.getTeamColor(),fontColor:_.getTeamFontColor(),playId:_.mainPlay.playId,playerId:_.mainPlay.playerId,teamId:_.mainPlay.teamId,relatedPlayId:_.relatedPlayId,categoriesIds:_.categoriesIds},[x]=_.mainPlay.momentOfPlay.split(":"),h=parseInt(x);return h>=90?(y.minute=`${h}'`,y.left="100%"):(y.minute=`${h}'`,y.left=`${h/90*100}%`),a.push(y),a},[]));let Z=null,m=null;function g(a){!Z||m!==a.playId?(Z&&r(),m=a.playId,Z=setTimeout(()=>{Fu.emit("mouse-click-time-event",a.playId),r()},1e3)):(Fu.emit("mouse-double-click-time-event",a),r())}function r(){Z&&(clearTimeout(Z),Z=null)}function b(a){const _=document.getElementById(a);_&&(_.style["z-index"]=1)}function p(a){const _=document.getElementById(a);_&&(_.style["z-index"]="auto")}return(a,_)=>(t.openBlock(),t.createElementBlock("div",TZe,[(t.openBlock(),t.createElementBlock(t.Fragment,null,t.renderList(o,(y,x)=>t.createElementVNode("div",{class:"events-timeline__game-time",key:x},t.toDisplayString(y),1)),64)),_[1]||(_[1]=t.createElementVNode("div",{class:"events-timeline__back-line"},null,-1)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(z.value,(y,x)=>(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",{id:`svg-${y.playId}`,key:x,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",opacity:e.mainEventIdSelected?e.mainEventIdSelected===y.playId?"1":"0.2":"1"}),onClick:h=>g(y),onMouseover:h=>b(`svg-${y.playId}`),onMouseleave:h=>p(`svg-${y.playId}`)},[t.createElementVNode("mask",{id:y.playId.toString(),fill:"white"},_[0]||(_[0]=[t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.77234 0.45166C2.11548 0.45166 0.772339 1.79481 0.772339 3.45166V14.4517C0.772339 16.1085 2.11548 17.4517 3.77234 17.4517H7.96294L10.2723 21.4517L12.5817 17.4517H16.7723C18.4292 17.4517 19.7723 16.1085 19.7723 14.4517V3.45166C19.7723 1.79481 18.4292 0.45166 16.7723 0.45166H3.77234Z"},null,-1)]),8,EZe),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,MZe),t.createElementVNode("path",{d:"M7.96294 17.4517L8.82896 16.9517L8.54029 16.4517H7.96294V17.4517ZM10.2723 21.4517L9.40631 21.9517L10.2723 23.4517L11.1384 21.9517L10.2723 21.4517ZM12.5817 17.4517V16.4517H12.0044L11.7157 16.9517L12.5817 17.4517ZM1.77234 3.45166C1.77234 2.34709 2.66777 1.45166 3.77234 1.45166V-0.54834C1.5632 -0.54834 -0.227661 1.24252 -0.227661 3.45166H1.77234ZM1.77234 14.4517V3.45166H-0.227661V14.4517H1.77234ZM3.77234 16.4517C2.66777 16.4517 1.77234 15.5562 1.77234 14.4517H-0.227661C-0.227661 16.6608 1.5632 18.4517 3.77234 18.4517V16.4517ZM7.96294 16.4517H3.77234V18.4517H7.96294V16.4517ZM7.09691 17.9517L9.40631 21.9517L11.1384 20.9517L8.82896 16.9517L7.09691 17.9517ZM11.1384 21.9517L13.4478 17.9517L11.7157 16.9517L9.40631 20.9517L11.1384 21.9517ZM16.7723 16.4517H12.5817V18.4517H16.7723V16.4517ZM18.7723 14.4517C18.7723 15.5562 17.8769 16.4517 16.7723 16.4517V18.4517C18.9815 18.4517 20.7723 16.6608 20.7723 14.4517H18.7723ZM18.7723 3.45166V14.4517H20.7723V3.45166H18.7723ZM16.7723 1.45166C17.8769 1.45166 18.7723 2.34709 18.7723 3.45166H20.7723C20.7723 1.24252 18.9815 -0.54834 16.7723 -0.54834V1.45166ZM3.77234 1.45166H16.7723V-0.54834H3.77234V1.45166Z",fill:e.mainEventIdSelected&&e.mainEventIdSelected===y.playId?"white":"#172531",mask:`url(#${y.playId})`},null,8,IZe),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,PZe)])],44,AZe)):t.createCommentVNode("",!0)],64))),256))]))}},[["__scopeId","data-v-057ea4de"]]),jd={All:1,YEAR:2,AGE_RANGE:3,NATIONALITY:4,POSITION:5,ELIGIBILITY:6},BZe=(e,o)=>{const s=e.__vccOpts||e;for(const[z,Z]of o)s[z]=Z;return s},zZe={key:1},DZe={width:"10",height:"8",viewBox:"0 0 10 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},OZe=["fill"],NZe={key:0,class:"checkbox__teams"},FZe={class:"checkbox__teams__logo"},RZe=["src"],VZe={class:"checkbox__teams__logo"},jZe=["src"],UZe={__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:o}){const s=e;t.useCssVars(p=>({"7bd9d47b":e.width,"34dc7ddc":e.height}));const z=t.ref(!1),Z=t.computed(()=>{const p={color:s.boxValueColor,"font-family":s.fontFamily,height:s.boxWidthAndHeight,width:s.boxWidthAndHeight,minWidth:s.boxWidthAndHeight,"border-radius":s.boxBorderRadius,"margin-top":s.boxMarginTop};return z.value?(p["background-color"]=s.boxBackgroundColor,p.border=`solid ${s.boxBorderWidth} ${s.boxBackgroundColor}`):p.border=`solid ${s.boxBorderWidth} ${s.boxBorderColor}`,p}),m=t.computed(()=>({"font-family":s.boxValueFontFamily,"font-size":s.boxValueFontSize,color:s.boxValueColor,"line-height":1})),g=t.computed(()=>{const p={color:s.labelColor,"font-family":s.fontFamily,"font-size":s.labelFontSize,"white-space":s.labelWhiteSpace,"text-align":s.boxPosition==="top"||s.boxPosition==="bottom"?"center":s.boxPosition};return(s.boxPosition==="left"||s.boxPosition==="right")&&(p[`margin-${s.boxPosition}`]=s.isBoxOnly?"0":s.teamsIds?"8px":"10px"),p});t.watch(()=>s.modelValue,p=>{p!==z.value&&(z.value=p)},{immediate:!0});function r(){s.avoidInteraction||!z.value&&s.avoidToCheck||(z.value=!z.value,o("update:modelValue",z.value))}function b(p){return`${{}.TEAM_LOGOS_URL||"https://golstatsimages.blob.core.windows.net/teams-80/"}${p}.png`}return(p,a)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["checkbox",`box-${e.boxPosition}`]),onClick:r},[t.createElementVNode("div",{class:"checkbox__box",style:t.normalizeStyle(Z.value)},[z.value?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[s.boxValue?(t.openBlock(),t.createElementBlock("div",{key:0,class:"checkbox__box__value",style:t.normalizeStyle(m.value)},t.toDisplayString(e.boxValue),5)):(t.openBlock(),t.createElementBlock("div",zZe,[(t.openBlock(),t.createElementBlock("svg",DZe,[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,OZe)]))]))],64)):t.createCommentVNode("",!0)],4),e.teamsIds&&e.teamsIds.length?(t.openBlock(),t.createElementBlock("div",NZe,[t.createElementVNode("div",FZe,[t.createElementVNode("img",{src:b(e.teamsIds[0]),alt:""},null,8,RZe)]),t.createElementVNode("div",VZe,[t.createElementVNode("img",{src:b(e.teamsIds[1]),alt:""},null,8,jZe)])])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"checkbox__label",style:t.normalizeStyle(g.value)},t.toDisplayString(e.label),5)],2))}},Zl=BZe(UZe,[["__scopeId","data-v-b6f124d8"]]),ic=(e,o)=>{const s=e.__vccOpts||e;for(const[z,Z]of o)s[z]=Z;return s},GZe={class:"container"},HZe={key:0,width:"11",height:"2",viewBox:"0 0 11 2",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ZZe=["fill"],WZe={key:1,width:"11",height:"11",viewBox:"0 0 11 11",fill:"none",xmlns:"http://www.w3.org/2000/svg"},qZe=["fill"],JZe={__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(o=>({"2c438f73":e.width,"425f651a":e.height})),(o,s)=>(t.openBlock(),t.createElementBlock("div",GZe,[e.isExpanded?(t.openBlock(),t.createElementBlock("svg",HZe,[t.createElementVNode("rect",{width:"11",height:"1.7",fill:e.collapseIconColor},null,8,ZZe)])):(t.openBlock(),t.createElementBlock("svg",WZe,[t.createElementVNode("path",{d:"M11 6.28571H6.28571V11H4.71429V6.28571H0V4.71429H4.71429V0H6.28571V4.71429H11V6.28571Z",fill:e.expandIconColor},null,8,qZe)]))]))}},Q1=ic(JZe,[["__scopeId","data-v-e633864b"]]),hv=e=>(t.pushScopeId("data-v-9f942989"),e=e(),t.popScopeId(),e),YZe={key:0,class:"productivity__body__offensive"},XZe={class:"productivity__body__title"},$Ze={class:"productivity__body__title__info"},KZe={class:"number-of-categories"},QZe={class:"productivity__body__categories"},eWe={key:1,class:"productivity__body__defensive-possession"},tWe={key:0,class:"block"},aWe={class:"productivity__body__title"},rWe={class:"productivity__body__title__info"},nWe={class:"number-of-categories"},iWe={class:"productivity__body__categories"},oWe={key:1,class:"block"},sWe={class:"productivity__body__title"},lWe={class:"productivity__body__title__info"},cWe={class:"number-of-categories"},dWe={class:"productivity__body__categories"},uWe=["onClick"],hWe=hv(()=>t.createElementVNode("svg",{width:"11",height:"12",viewBox:"0 0 11 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M7.50558 0C6.78112 0 6.10558 0.475441 5.89478 1.14401L1.21987 1.14286C0.904267 1.14286 0.648438 1.39886 0.648438 1.71429C0.648438 2.02972 0.904267 2.28572 1.21987 2.28572L5.89478 2.28516C6.15083 2.98516 6.78112 3.42858 7.50558 3.42858C8.23004 3.42858 8.86678 2.98402 9.1273 2.28059L10.3627 2.28572C10.6783 2.28572 10.9342 2.02972 10.9342 1.71429C10.9342 1.39886 10.6783 1.14286 10.3627 1.14286H9.12244C8.8473 0.446287 8.23004 0 7.50558 0ZM7.50558 1.14286C7.82118 1.14286 8.07701 1.39886 8.07701 1.71429C8.07701 2.02972 7.82118 2.28572 7.50558 2.28572C7.18998 2.28572 6.93415 2.02972 6.93415 1.71429C6.93415 1.39886 7.18998 1.14286 7.50558 1.14286ZM4.07701 4.28572C3.32387 4.28572 2.69347 4.7543 2.4633 5.42971C2.38295 5.43485 1.21987 5.42856 1.21987 5.42856C0.904267 5.42856 0.648438 5.68456 0.648438 5.99999C0.648438 6.31542 0.904267 6.57142 1.21987 6.57142C1.21987 6.57142 2.39267 6.55942 2.46575 6.56685C2.69593 7.24228 3.32387 7.71428 4.07701 7.71428C4.80146 7.71428 5.42226 7.27028 5.69381 6.57314L10.3627 6.57142C10.6783 6.57142 10.9342 6.31542 10.9342 5.99999C10.9342 5.68456 10.6783 5.42856 10.3627 5.42856L5.69083 5.42348C5.44038 4.74174 4.80146 4.28572 4.07701 4.28572ZM4.07701 5.42856C4.39261 5.42856 4.64844 5.68456 4.64844 5.99999C4.64844 6.31542 4.39261 6.57142 4.07701 6.57142C3.76141 6.57142 3.50558 6.31542 3.50558 5.99999C3.50558 5.68456 3.76141 5.42856 4.07701 5.42856ZM7.50558 8.57142C6.78112 8.57142 6.11844 9.04857 5.89438 9.70857L1.21987 9.71428C0.904267 9.71428 0.648438 9.97028 0.648438 10.2857C0.648438 10.6011 0.904267 10.8571 1.21987 10.8571L5.88592 10.8577C6.12301 11.5349 6.78112 12 7.50558 12C8.23004 12 8.85467 11.5469 9.12987 10.8577L10.3627 10.8571C10.6783 10.8571 10.9342 10.6011 10.9342 10.2857C10.9342 9.97028 10.6783 9.71428 10.3627 9.71428L9.12467 9.71091C8.87798 9.03491 8.23004 8.57142 7.50558 8.57142ZM7.50558 9.71428C7.82118 9.71428 8.07701 9.97028 8.07701 10.2857C8.07701 10.6011 7.82118 10.8571 7.50558 10.8571C7.18998 10.8571 6.93415 10.6011 6.93415 10.2857C6.93415 9.97028 7.18998 9.71428 7.50558 9.71428Z",fill:"white"})],-1)),pWe=[hWe],fWe={key:0,class:"productivity__footer"},mWe={class:"productivity__footer__offenses"},gWe=hv(()=>t.createElementVNode("div",{class:"productivity__footer__offenses__title"}," ¿Debemos quitarle puntos a jugadores que hayan cometido las siguientes infracciones? ",-1)),yWe={class:"productivity__footer__offenses__table"},vWe=hv(()=>t.createElementVNode("div",{class:"productivity__footer__offenses__table__row"},[t.createElementVNode("div"),t.createElementVNode("div",null,"Sí"),t.createElementVNode("div",null,"No")],-1)),bWe={class:"productivity__footer__offenses__table__row has-bottom-border has-padding"},xWe=hv(()=>t.createElementVNode("div",{class:"productivity__footer__offenses__table__row__text"},"Faltas cometidas",-1)),_We={class:"productivity__footer__offenses__table__row has-bottom-border has-padding"},wWe=hv(()=>t.createElementVNode("div",{class:"productivity__footer__offenses__table__row__text"},"Tarjetas amarillas",-1)),kWe={class:"productivity__footer__offenses__table__row has-padding"},SWe=hv(()=>t.createElementVNode("div",{class:"productivity__footer__offenses__table__row__text"},"Tarjetas rojas",-1)),CWe={__name:"TemplateProductivity",props:{componentWidth:{type:Number,default:0},productivityCategories:{type:Object,required:!0},numberOfCategoriesSelected:{type:Number,default:0},areMaxCategoriesReached:{type:Boolean,default:!1},areMinCategoriesReached:{type:Boolean,default:!1},isExpansionMode:{type:Boolean,default:!1},fontFamily:{type:String,default:"'Poppins-Regular'"},isFromTemplates:{type:Boolean,default:!1},isForTemplateForm:{type:Boolean,default:!1},areProductivityButtonsVisible:{type:Boolean,default:!0},areOffensesConditionsVisible:{type:Boolean,default:!0}},emits:["update:offensesConditions","click-parameters"],setup(e,{emit:o}){const s=e,z=t.ref(!1),Z=t.ref(!1),m=t.ref(!1),g=t.ref({areYellowCardsSelected:!1,areRedCardsSelected:!1,areFoulsCommittedSelected:!1}),r=t.computed(()=>Array.isArray(s.productivityCategories)),b=t.computed(()=>({"--template-columns":s.isExpansionMode||r.value||!s.productivityCategories.offensive||!s.productivityCategories.defensive&&!s.productivityCategories.possession?"1fr":s.isForTemplateForm?"30% 1fr":"1fr 1fr","--flex-direction-defensive-possession":s.isForTemplateForm?"row-reverse":"column","--gap-defensive-possession":s.isForTemplateForm?"32px":"0","--width-block":s.isForTemplateForm?"unset":"100%"})),p=t.computed(()=>{var i;return(i=s.productivityCategories)==null?void 0:i.offensive.categories.reduce((d,l)=>(l.isSelected&&d++,d),0)}),a=t.computed(()=>{var i;return(i=s.productivityCategories)==null?void 0:i.defensive.categories.reduce((d,l)=>(l.isSelected&&d++,d),0)}),_=t.computed(()=>{var i;return(i=s.productivityCategories)==null?void 0:i.possession.categories.reduce((d,l)=>(l.isSelected&&d++,d),0)}),y=t.computed(()=>s.isFromTemplates||s.isForTemplateForm);t.watch(()=>s.productivityCategories,i=>{i.offensesConditions&&(g.value.areYellowCardsSelected=i.offensesConditions.areYellowCardsSelected,g.value.areRedCardsSelected=i.offensesConditions.areRedCardsSelected,g.value.areFoulsCommittedSelected=i.offensesConditions.areFoulsCommittedSelected)},{deep:!0,immediate:!0}),t.watch(g,i=>{o("update:offensesConditions",i)},{deep:!0,immediate:!0});function x(i,d){d.isSelected=i,setTimeout(()=>{d.priority=s.numberOfCategoriesSelected},10)}function h(i){o("click-parameters",i)}function n(i){i==="offensive"?z.value=!z.value:i==="defensive"?Z.value=!Z.value:i==="possession"&&(m.value=!m.value)}return(i,d)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["productivity",{"is-array":r.value}])},[t.createElementVNode("div",{class:"productivity__body",style:t.normalizeStyle(b.value)},[r.value?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(e.productivityCategories,l=>(t.openBlock(),t.createElementBlock("div",{key:l.id,class:"productivity__checkbox"},[t.createVNode(t.unref(Zl),{label:l.name,fontFamily:e.fontFamily,"model-value":l.isSelected,"avoid-interaction":e.areMinCategoriesReached&&l.isSelected,"avoid-to-check":e.areMaxCategoriesReached,"box-value":y.value?null:l.priority||0,"onUpdate:modelValue":u=>x(u,l)},null,8,["label","fontFamily","model-value","avoid-interaction","avoid-to-check","box-value","onUpdate:modelValue"])]))),128)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[e.productivityCategories.offensive?(t.openBlock(),t.createElementBlock("div",YZe,[t.createElementVNode("div",XZe,[t.createElementVNode("div",$Ze,[t.createElementVNode("span",null,t.toDisplayString(e.productivityCategories.offensive.title),1),t.createElementVNode("span",KZe,"("+t.toDisplayString(p.value)+")",1)]),t.createElementVNode("div",{class:"productivity__body__title__expand-button",onClick:d[0]||(d[0]=l=>n("offensive"))},[t.withDirectives(t.createVNode(Q1,{"is-expanded":z.value},null,8,["is-expanded"]),[[t.vShow,e.isExpansionMode]])])]),t.withDirectives(t.createElementVNode("div",QZe,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.productivityCategories.offensive.categories,l=>(t.openBlock(),t.createElementBlock("div",{key:l.id,class:"productivity__checkbox"},[t.createVNode(t.unref(Zl),{label:l.name,fontFamily:e.fontFamily,"model-value":l.isSelected,"avoid-to-check":e.areMaxCategoriesReached,"avoid-interaction":e.areMinCategoriesReached&&l.isSelected,"box-value":y.value?null:l.priority||0,"onUpdate:modelValue":u=>x(u,l)},null,8,["label","fontFamily","model-value","avoid-to-check","avoid-interaction","box-value","onUpdate:modelValue"])]))),128))],512),[[t.vShow,!e.isExpansionMode||z.value]])])):t.createCommentVNode("",!0),e.productivityCategories.defensive||e.productivityCategories.possession?(t.openBlock(),t.createElementBlock("div",eWe,[e.productivityCategories.defensive?(t.openBlock(),t.createElementBlock("div",tWe,[t.createElementVNode("div",aWe,[t.createElementVNode("div",rWe,[t.createElementVNode("span",null,t.toDisplayString(e.productivityCategories.defensive.title),1),t.createElementVNode("span",nWe,"("+t.toDisplayString(a.value)+")",1)]),t.createElementVNode("div",{class:"productivity__body__title__expand-button",onClick:d[1]||(d[1]=l=>n("defensive"))},[t.withDirectives(t.createVNode(Q1,{"is-expanded":Z.value},null,8,["is-expanded"]),[[t.vShow,e.isExpansionMode]])])]),t.withDirectives(t.createElementVNode("div",iWe,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.productivityCategories.defensive.categories,l=>(t.openBlock(),t.createElementBlock("div",{key:l.id,class:"productivity__checkbox"},[t.createVNode(t.unref(Zl),{label:l.name,fontFamily:e.fontFamily,"model-value":l.isSelected,"avoid-to-check":e.areMaxCategoriesReached,"avoid-interaction":e.areMinCategoriesReached&&l.isSelected,"box-value":y.value?null:l.priority||0,"onUpdate:modelValue":u=>x(u,l)},null,8,["label","fontFamily","model-value","avoid-to-check","avoid-interaction","box-value","onUpdate:modelValue"])]))),128))],512),[[t.vShow,!e.isExpansionMode||Z.value]])])):t.createCommentVNode("",!0),e.productivityCategories.possession?(t.openBlock(),t.createElementBlock("div",oWe,[t.createElementVNode("div",sWe,[t.createElementVNode("div",lWe,[t.createElementVNode("span",null,t.toDisplayString(e.productivityCategories.possession.title),1),t.createElementVNode("span",cWe,"("+t.toDisplayString(_.value)+")",1)]),t.createElementVNode("div",{class:"productivity__body__title__expand-button",onClick:d[2]||(d[2]=l=>n("possession"))},[t.withDirectives(t.createVNode(Q1,{"is-expanded":m.value},null,8,["is-expanded"]),[[t.vShow,e.isExpansionMode]])])]),t.withDirectives(t.createElementVNode("div",dWe,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.productivityCategories.possession.categories,l=>(t.openBlock(),t.createElementBlock("div",{key:l.id,class:"productivity__checkbox"},[t.createVNode(t.unref(Zl),{label:l.name,fontFamily:e.fontFamily,"model-value":l.isSelected,"avoid-to-check":e.areMaxCategoriesReached,"avoid-interaction":e.areMinCategoriesReached&&l.isSelected,"box-value":y.value?null:l.priority||0,"onUpdate:modelValue":u=>x(u,l)},null,8,["label","fontFamily","model-value","avoid-to-check","avoid-interaction","box-value","onUpdate:modelValue"]),l.parameters&&e.areProductivityButtonsVisible?(t.openBlock(),t.createElementBlock("div",{key:0,class:"options",role:"button",onClick:u=>h(l)},pWe,8,uWe)):t.createCommentVNode("",!0)]))),128))],512),[[t.vShow,!e.isExpansionMode||m.value]])])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)],64))],4),!y.value&&e.productivityCategories.offensesConditions&&e.areOffensesConditionsVisible?(t.openBlock(),t.createElementBlock("div",fWe,[t.createElementVNode("div",mWe,[gWe,t.createElementVNode("div",yWe,[vWe,t.createElementVNode("div",bWe,[xWe,t.createElementVNode("div",null,[t.createVNode(t.unref(Zl),{"model-value":g.value.areFoulsCommittedSelected,"avoid-interaction":g.value.areFoulsCommittedSelected,"is-box-only":"","onUpdate:modelValue":d[3]||(d[3]=l=>g.value.areFoulsCommittedSelected=l)},null,8,["model-value","avoid-interaction"])]),t.createElementVNode("div",null,[t.createVNode(t.unref(Zl),{"model-value":!g.value.areFoulsCommittedSelected,"avoid-interaction":!g.value.areFoulsCommittedSelected,"is-box-only":"","onUpdate:modelValue":d[4]||(d[4]=l=>g.value.areFoulsCommittedSelected=!l)},null,8,["model-value","avoid-interaction"])])]),t.createElementVNode("div",_We,[wWe,t.createElementVNode("div",null,[t.createVNode(t.unref(Zl),{"model-value":g.value.areYellowCardsSelected,"avoid-interaction":g.value.areYellowCardsSelected,"is-box-only":"","onUpdate:modelValue":d[5]||(d[5]=l=>g.value.areYellowCardsSelected=l)},null,8,["model-value","avoid-interaction"])]),t.createElementVNode("div",null,[t.createVNode(t.unref(Zl),{"model-value":!g.value.areYellowCardsSelected,"avoid-interaction":!g.value.areYellowCardsSelected,"is-box-only":"","onUpdate:modelValue":d[6]||(d[6]=l=>g.value.areYellowCardsSelected=!l)},null,8,["model-value","avoid-interaction"])])]),t.createElementVNode("div",kWe,[SWe,t.createElementVNode("div",null,[t.createVNode(t.unref(Zl),{"model-value":g.value.areRedCardsSelected,"avoid-interaction":g.value.areRedCardsSelected,"is-box-only":"","onUpdate:modelValue":d[7]||(d[7]=l=>g.value.areRedCardsSelected=l)},null,8,["model-value","avoid-interaction"])]),t.createElementVNode("div",null,[t.createVNode(t.unref(Zl),{"model-value":!g.value.areRedCardsSelected,"avoid-interaction":!g.value.areRedCardsSelected,"is-box-only":"","onUpdate:modelValue":d[8]||(d[8]=l=>g.value.areRedCardsSelected=!l)},null,8,["model-value","avoid-interaction"])])])])])])):t.createCommentVNode("",!0)],2))}},TWe=ic(CWe,[["__scopeId","data-v-9f942989"]]),b1=e=>(t.pushScopeId("data-v-e2ded643"),e=e(),t.popScopeId(),e),AWe={class:"details__header"},EWe=b1(()=>t.createElementVNode("div",{class:"details__header__title"},"Jugando como",-1)),MWe={class:"details__header__checkbox"},IWe={class:"details__body"},PWe={class:"details__body__playing-as"},LWe=["onClick"],BWe={class:"details__header"},zWe=b1(()=>t.createElementVNode("div",{class:"details__header__title"},[t.createTextVNode(" En: "),t.createElementVNode("span",{class:"details__header__title-sm"},"(Elige el lapso de tiempo)")],-1)),DWe={class:"details__header__checkbox"},OWe={class:"details__body"},NWe=b1(()=>t.createElementVNode("div",{class:"details__body__title"},"1er tiempo",-1)),FWe={class:"details__body__game-section"},RWe=["onClick"],VWe={class:"details__body"},jWe=b1(()=>t.createElementVNode("div",{class:"details__body__title"},"2do tiempo",-1)),UWe={class:"details__body__game-section"},GWe=["onClick"],HWe={key:0,class:"details_body"},ZWe=b1(()=>t.createElementVNode("div",{class:"details__body__title"},"Tipo de estadística",-1)),WWe={class:"radios"},qWe={class:"radio-input"},JWe={class:"radio-input__radio"},YWe=b1(()=>t.createElementVNode("label",{for:"total"},"Totales",-1)),XWe={class:"radio-input"},$We={class:"radio-input__radio"},KWe=b1(()=>t.createElementVNode("label",{for:"average"},"Promedio por partido",-1)),QWe={class:"radio-input"},eqe={class:"radio-input__radio"},tqe=b1(()=>t.createElementVNode("label",{for:"every"},"Cada 90 mins.",-1)),aqe={__name:"TemplateDetails",props:{isPlayingAsHidden:{type:Boolean,default:!1},playingAs:{type:Array,default:()=>[{name:"Local",isSelected:!0},{name:"Visitante",isSelected:!0}]},gameSections:{type:Array,default:()=>[{text:"0-15",value:1,isSelected:!0},{text:"16-30",value:2,isSelected:!0},{text:"31-45",value:3,isSelected:!0},{text:"46-60",value:4,isSelected:!0},{text:"61-75",value:5,isSelected:!0},{text:"76-90",value:6,isSelected:!0}]},statisticType:{type:String,default:"average"},isStatisticTypeVisible:{type:Boolean,default:!1},fontFamily:{type:String,default:"'Poppins-Regular'"},buttonsBackgroundColor:{type:String,default:"rgba(255, 255, 255, 0)"},buttonsBackgroundColorActive:{type:String,default:"rgba(203, 238, 107, 0.05)"},buttonsTextColor:{type:String,default:"rgba(255, 255, 255, 0.8)"},buttonsTextColorActive:{type:String,default:"rgba(255, 255, 255, 1)"},buttonsBorderColor:{type:String,default:"#8ea2ab"},buttonsBorderColorActive:{type:String,default:"#cbee6b"},buttonsBorderWidth:{type:String,default:"0.8px"},buttonsBorderWidthActive:{type:String,default:"1px"},buttonsBorderRadius:{type:String,default:"4px"}},emits:["change-statistic-type"],setup(e,{emit:o}){const s=e;t.useCssVars(y=>({"1ae8ae49":e.buttonsBackgroundColor,"51b78caa":e.buttonsTextColor,"30a9d324":e.buttonsBorderWidth,"32d7cfea":e.buttonsBorderColor,"53697eaf":e.buttonsBackgroundColorActive,"6a565050":e.buttonsTextColorActive,34047714:e.buttonsBorderWidthActive,"10c9e21e":e.buttonsBorderColorActive}));const z=t.ref("");t.watch(()=>s.statisticType,y=>{z.value=y},{immediate:!0}),t.watch(()=>z.value,y=>{s.statisticType=y,o("change-statistic-type",y)});const Z=t.computed(()=>s.playingAs.every(y=>y.isSelected)),m=t.computed(()=>s.gameSections.every(y=>y.isSelected)),g=t.computed(()=>s.gameSections.reduce((y,x)=>(x.value<=3?y.firstHalf.push(x):y.secondHalf.push(x),y),{firstHalf:[],secondHalf:[]})),r=t.computed(()=>({"--border-radius-first-button":`${s.buttonsBorderRadius} 0 0 ${s.buttonsBorderRadius}`,"--border-radius-last-button":`0 ${s.buttonsBorderRadius} ${s.buttonsBorderRadius} 0`}));function b(y){y?s.playingAs.forEach(x=>{x.isSelected=!0}):s.playingAs.forEach((x,h)=>{x.isSelected=h===0})}function p(y){s.playingAs.filter(x=>x.isSelected).length===1&&y.isSelected||(y.isSelected=!y.isSelected)}function a(y){s.gameSections.filter(x=>x.isSelected).length===1&&y.isSelected||(y.isSelected=!y.isSelected)}function _(y){y?s.gameSections.forEach(x=>{x.isSelected=!0}):s.gameSections.forEach((x,h)=>{x.isSelected=h===0})}return(y,x)=>(t.openBlock(),t.createElementBlock("div",{class:"details",style:t.normalizeStyle(r.value)},[t.withDirectives(t.createElementVNode("div",AWe,[EWe,t.createElementVNode("div",MWe,[t.createVNode(t.unref(Zl),{label:"Todos",fontFamily:e.fontFamily,"model-value":Z.value,"onUpdate:modelValue":b},null,8,["fontFamily","model-value"])])],512),[[t.vShow,!e.isPlayingAsHidden]]),t.withDirectives(t.createElementVNode("div",IWe,[t.createElementVNode("div",PWe,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.playingAs,(h,n)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${n}`,class:t.normalizeClass(["details__body__button",{active:h.isSelected}]),onClick:i=>p(h)},t.toDisplayString(h.name),11,LWe))),128))])],512),[[t.vShow,!e.isPlayingAsHidden]]),t.createElementVNode("div",BWe,[zWe,t.createElementVNode("div",DWe,[t.createVNode(t.unref(Zl),{label:"Todos",fontFamily:e.fontFamily,"model-value":m.value,"onUpdate:modelValue":_},null,8,["fontFamily","model-value"])])]),t.createElementVNode("div",OWe,[NWe,t.createElementVNode("div",FWe,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(g.value.firstHalf,(h,n)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${n}`,class:t.normalizeClass(["details__body__button",{active:h.isSelected}]),onClick:i=>a(h)},t.toDisplayString(h.text),11,RWe))),128))])]),t.createElementVNode("div",VWe,[jWe,t.createElementVNode("div",UWe,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(g.value.secondHalf,(h,n)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${n}`,class:t.normalizeClass(["details__body__button",{active:h.isSelected}]),onClick:i=>a(h)},t.toDisplayString(h.text),11,GWe))),128))])]),e.isStatisticTypeVisible?(t.openBlock(),t.createElementBlock("div",HWe,[ZWe,t.createElementVNode("div",WWe,[t.createElementVNode("div",qWe,[t.createElementVNode("div",JWe,[t.withDirectives(t.createElementVNode("input",{"onUpdate:modelValue":x[0]||(x[0]=h=>z.value=h),type:"radio",id:"total",value:"total",name:"statistic"},null,512),[[t.vModelRadio,z.value]]),YWe])]),t.createElementVNode("div",XWe,[t.createElementVNode("div",$We,[t.withDirectives(t.createElementVNode("input",{"onUpdate:modelValue":x[1]||(x[1]=h=>z.value=h),type:"radio",id:"average",value:"average",name:"statistic"},null,512),[[t.vModelRadio,z.value]]),KWe])]),t.createElementVNode("div",QWe,[t.createElementVNode("div",eqe,[t.withDirectives(t.createElementVNode("input",{"onUpdate:modelValue":x[2]||(x[2]=h=>z.value=h),type:"radio",id:"every",value:"every90",name:"statistic"},null,512),[[t.vModelRadio,z.value]]),tqe])])])])):t.createCommentVNode("",!0)],4))}},rqe=ic(aqe,[["__scopeId","data-v-e2ded643"]]),nqe={class:"scroll-container"},iqe={__name:"ScrollContainer",props:{width:{type:String,default:"100%"},height:{type:String,default:"100%"}},setup(e){return t.useCssVars(o=>({fc5d629e:e.height,"8a9ad208":e.width})),(o,s)=>(t.openBlock(),t.createElementBlock("div",nqe,[t.renderSlot(o.$slots,"default",{},void 0,!0)]))}},pv=ic(iqe,[["__scopeId","data-v-9f29c69f"]]),oqe={class:"tournaments"},sqe={key:0,class:"tournaments__tournament"},lqe={__name:"TemplateTournaments",props:{tournamentsUrl:{type:String,default:""},tournaments:{type:Array,default:()=>[]},fontFamily:{type:String,default:"'Poppins-Regular'"},isOneTournamentOnly:{type:Boolean,default:!1},token:{type:String,default:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"}},emits:["change-filters-selected","update:filters"],setup(e,{emit:o}){const s=e,z=t.ref(!1),Z=t.ref([]),m=t.computed(()=>g.value.filter(a=>a.isSelected).length),g=t.computed(()=>s.tournamentsUrl?Z.value:s.tournaments);async function r(){if(s.tournamentsUrl)try{const a=await(await fetch(s.tournamentsUrl,{headers:{Authorization:s.token}})).json();Z.value=a.map(_=>({..._.tournament,seasons:_.seasons,isSelected:!0}))}catch(a){console.error("Error fetching tournaments:",a)}}t.watch(()=>s.tournamentsUrl,()=>{r()},{immediate:!0}),t.watch(()=>s.token,()=>{r()}),t.watch(()=>g.value,a=>{const _=a.filter(y=>y.isSelected);z.value=_.length===a.length,o("change-filters-selected",_.length),o("update:filters",g.value)},{immediate:!0,deep:!0});function b(a){g.value.forEach((_,y)=>{_.isSelected=a||(y!==0?a:!0)})}function p(a,_){s.isOneTournamentOnly&&s.tournaments.forEach(y=>{y.isSelected=!1}),_.isSelected=a}return(a,_)=>(t.openBlock(),t.createElementBlock("div",oqe,[t.createVNode(pv,{height:"200px"},{default:t.withCtx(()=>[e.isOneTournamentOnly?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",sqe,[t.createVNode(t.unref(Zl),{"model-value":z.value,label:"Todas las ligas",fontFamily:e.fontFamily,width:"100%","onUpdate:modelValue":b},null,8,["model-value","fontFamily"])])),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(g.value,y=>(t.openBlock(),t.createElementBlock("div",{key:y.id||y._id,class:"tournaments__tournament"},[t.createVNode(t.unref(Zl),{"model-value":y.isSelected,label:y.name,fontFamily:e.fontFamily,width:"100%","avoid-interaction":m.value===1&&y.isSelected,"onUpdate:modelValue":x=>p(x,y)},null,8,["model-value","label","fontFamily","avoid-interaction","onUpdate:modelValue"])]))),128))]),_:1})]))}},cqe=ic(lqe,[["__scopeId","data-v-15ddb449"]]),Xr={PLAYS:"plays",PRODUCTIVITY:"productivity",FIELD:"field",UNIVERSE:"universe",DETAILS:"details",TOURNAMENTS:"tournaments",PERSONAL_DATA:"personalData",PLAYS_TYPES:"playsTypes",GOLSTATS:"golstats",DISTANCE:"distance",RESULTS:"results",RESULTS_BY_TIME:"resultsByTime",VIDEOS:"videos",GAMES:"games",TAKEN_CORNERS:"takenCorners",HOW_WAS_CORNER:"howWasCorner",ZONE:"zone",WHAT_HAPPENED:"whatHappened",POSITIONS:"positions",YEARS:"years",NATIONALITIES:"nationalities",TEAMS:"teams",POSSESSION_VISUALISATIONS:"visualisations"},dqe={key:0,class:"plays-golstats__placeholder"},uqe=["onClick"],hqe={key:0,class:"plays-golstats__item__value"},pqe={class:"plays-golstats__item__text"},fqe={class:"plays-golstats__item__svg"},mqe={width:"10",height:"8",viewBox:"0 0 10 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},gqe=["fill"],yqe={__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:o}){const s=e,z=t.computed(()=>({"--grid-template-columns":s.type===Xr.PLAYS_TYPES?"1fr min-content":"min-content 1fr min-content","--svg-width":`${s.svgWidth}px`,"--svg-height":`${s.svgHeight}px`}));t.watch(()=>s.categories,m=>{const g=m.filter(r=>r.isSelected);o("update:filters",g)},{immediate:!0,deep:!0});function Z(m){m.isSelected||(s.categories.forEach(g=>{g.isSelected=!1}),m.isSelected=!0,s.type===Xr.GOLSTATS&&o("change-filters-selected",m.value))}return(m,g)=>(t.openBlock(),t.createElementBlock("div",{class:"plays-golstats",style:t.normalizeStyle(z.value)},[t.createVNode(pv,{height:e.height},{default:t.withCtx(()=>[e.type===t.unref(Xr).PLAYS_TYPES?(t.openBlock(),t.createElementBlock("div",dqe," Elige un tipo de jugada para filtrar: ")):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.categories,(r,b)=>(t.openBlock(),t.createElementBlock("div",{key:`k${b}`,class:"plays-golstats__item",onClick:p=>Z(r)},[e.type===t.unref(Xr).GOLSTATS?(t.openBlock(),t.createElementBlock("div",hqe,t.toDisplayString(r.value),1)):t.createCommentVNode("",!0),t.createElementVNode("div",pqe,t.toDisplayString(r.name),1),t.createElementVNode("div",fqe,[t.withDirectives((t.openBlock(),t.createElementBlock("svg",mqe,[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,gqe)],512)),[[t.vShow,r.isSelected]])])],8,uqe))),128))]),_:1},8,["height"])],4))}},WN=ic(yqe,[["__scopeId","data-v-ef99052c"]]),vqe=(e,o)=>{const s=e.__vccOpts||e;for(const[z,Z]of o)s[z]=Z;return s},Ik={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 o=e.which?e.which:e.keyCode();!e.code.startsWith("Numpad")&&o>31&&(o<48||o>57)&&e.preventDefault()}}}},qN=()=>{t.useCssVars(e=>({"71e38669":e.textRightColor,d0c4b7ac:e.textRightFontSize,"101fb94d":e.textRightFontFamily}))},JN=Ik.setup;Ik.setup=JN?(e,o)=>(qN(),JN(e,o)):qN;const bqe={class:"input-container"},xqe=["type","placeholder","value"],_qe={class:"right-text"};function wqe(e,o,s,z,Z,m){return t.openBlock(),t.createElementBlock("div",bqe,[t.createElementVNode("input",{type:s.inputType,placeholder:s.placeholder,value:s.value,style:t.normalizeStyle(m.inputStyle),onKeydown:o[0]||(o[0]=(...g)=>m.onKeyDown&&m.onKeyDown(...g)),onInput:o[1]||(o[1]=(...g)=>m.updateInputValue&&m.updateInputValue(...g))},null,44,xqe),t.createElementVNode("div",_qe,t.toDisplayString(s.textRight),1)])}const kqe=vqe(Ik,[["render",wqe],["__scopeId","data-v-76f92928"]]),Sqe=(e,o)=>{const s=e.__vccOpts||e;for(const[z,Z]of o)s[z]=Z;return s},Pk={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))}}},YN=()=>{t.useCssVars(e=>({"9d01acb4":e.height,"14e95081":e.borderWidthBtn,"38fec285":e.borderType,34353510:e.borderColor,"20d20dc6":e.borderRadius,17130967:e.width,"4ccb7d36":e.backgroundColor,"5d1e86a2":e.cursorType,ce65d4a2:e.fontSize,fe4ac47a:e.fontStyle,f98e44dc:e.fontFamily,"93b87770":e.marginLeftStat,c7f7beba:e.fontSizeStat}))},XN=Pk.setup;Pk.setup=XN?(e,o)=>(YN(),XN(e,o)):YN;const Cqe=e=>(t.pushScopeId("data-v-f3ee6b2b"),e=e(),t.popScopeId(),e),Tqe=["src"],Aqe={key:1,class:"text"},Eqe=["src"],Mqe={class:"stats"},Iqe=Cqe(()=>t.createElementVNode("img",{class:"iconstats",src:"https://golstatsimages.blob.core.windows.net/todoelfut/playdes.png"},null,-1)),Pqe={class:"numstats"},Lqe={class:"leyend"};function Bqe(e,o,s,z,Z,m){return t.openBlock(),t.createElementBlock("div",null,[s.type==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["button",Z.status&&s.typeOnOff&&"button-active"]),style:t.normalizeStyle([m.customStyle,Z.status&&s.typeOnOff&&m.customActive]),onClick:o[0]||(o[0]=(...g)=>m.btnClick&&m.btnClick(...g))},[s.icon&&s.iconPosition.toLowerCase()==="left"?(t.openBlock(),t.createElementBlock("img",{key:0,class:"icon",style:t.normalizeStyle({width:s.iconSize}),src:s.icon},null,12,Tqe)):t.createCommentVNode("",!0),s.textValue?(t.openBlock(),t.createElementBlock("div",Aqe,t.toDisplayString(s.textValue),1)):t.createCommentVNode("",!0),s.icon&&s.iconPosition.toLowerCase()==="right"?(t.openBlock(),t.createElementBlock("img",{key:2,class:"icon",style:t.normalizeStyle({width:s.iconSize}),src:s.icon},null,12,Eqe)):t.createCommentVNode("",!0)],6)):t.createCommentVNode("",!0),s.type==1?(t.openBlock(),t.createElementBlock("div",{key:1,class:"button-target",onClick:o[1]||(o[1]=(...g)=>m.btnClick&&m.btnClick(...g))},[t.createElementVNode("div",Mqe,[Iqe,t.createElementVNode("div",Pqe,t.toDisplayString(s.textStat),1)]),t.createElementVNode("div",Lqe,t.toDisplayString(s.textCategory),1)])):t.createCommentVNode("",!0)])}const zqe=Sqe(Pk,[["render",Bqe],["__scopeId","data-v-f3ee6b2b"]]),Dqe={class:"gsc-dropdown__main-container__item-selected"},Oqe=["height","width"],Nqe=["stroke"],Fqe={key:1,width:"8",height:"4",viewBox:"0 0 8 4",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Rqe=["fill"],Vqe={class:"gsc-dropdown__items-container"},jqe=["onClick"],Uqe={key:0,class:"gsc-dropdown__items-footer"},x1={__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(o=>o in e)},listBackgroundColor:{type:String,default:"white"},hoverBackgroundColor:{type:String,default:"#f1f1f1"},listMarginTop:{type:String,default:"0"},listContainerPadding:{type:String,default:"0"},listItemPadding:{type:String,default:"10px 12px"},listItemMargin:{type:String,default:"0"},listHeight:{type:String,default:"fit-content"},listItemSelectedColor:{type:String,default:"white"},listItemSelectedBackgroundColor:{type:String,default:"#399cfd"},listItemColor:{type:String,default:"black"},listBorderRadius:{type:String,default:"0"},listBorderColor:{type:String,default:""},listBorderWidth:{type:Number,default:1},listItemBorderRadius:{type:String,default:"0"},listAlignment:{type:String,default:"left"},isListSameWidth:{type:Boolean,default:!1},isMultipleOption:{type:Boolean,default:!1},footerBorderColor:{type:String,default:"#626970"},footerBorderWidth:{type:Number,default:1},isFooterVisible:{type:Boolean,default:!1},isDisabled:{type:Boolean,default:!1},onlyFirstTime:{type:Boolean,default:!1},iconType:{type:Number,default:1,validator:function(e){return[1,2].includes(e)}}},emits:["input","click-ready","update:modelValue"],setup(e,{emit:o}){const s=e,z=t.ref({}),Z=t.ref(null),m=t.ref(s.isMultipleOption?-1:0),g=t.ref(!1);t.watch(()=>s.items,(x,h)=>{if(!s.modelValue&&(!s.onlyFirstTime||!h||!h.length)&&x&&x.length){if(s.defaultItemByProp){const n=s.items.findIndex(i=>i[s.defaultItemByProp.propName]===s.defaultItemByProp.value);n!==-1?(m.value=n,z.value=x[n]):(m.value=0,z.value=x[0])}else z.value=x[s.defaultItemByIndex];o("input",z.value)}},{immediate:!0}),t.watch(()=>s.modelValue,x=>{if(x){const h=s.items.findIndex(n=>typeof x=="object"?JSON.stringify(n)===JSON.stringify(x):n===x);h!==-1&&(m.value=h,z.value=s.items[h],o("update:modelValue",z.value))}},{immediate:!0});const r=t.computed(()=>({height:s.height,width:s.width,backgroundColor:s.backgroundColor,borderRadius:`${s.borderRadius}px`,border:`${s.borderType} ${s.borderWidth}px ${s.borderColor}`,color:s.color,"--hover-background-color":s.hoverBackgroundColor,"--list-container-padding":s.listContainerPadding,"--list-item-padding":s.listItemPadding,"--list-item-margin":s.listItemMargin,"--list-background-color":s.listBackgroundColor,"--list-height":s.listHeight,"--list-item-border-radius":s.listItemBorderRadius,"--list-item-selected-color":s.listItemSelectedColor,"--list-item-selected-background-color":s.listItemSelectedBackgroundColor,"--list-item-color":s.listItemColor,"--list-border-radius":`${s.listBorderRadius}`,"--list-border-color":s.listBorderColor,"--list-width":s.isListSameWidth?s.width:"fit-content","--list-border-width":`${s.listBorderWidth}px`,"--list-margin-top":s.listMarginTop,"--list-left":s.listAlignment==="left"?"0":"auto","--list-right":s.listAlignment==="right"?"0":"auto","--footer-border":`${s.footerBorderWidth}px solid ${s.footerBorderColor}`,"--dropdown-opacity":s.isDisabled?"0.5":"1","--dropdown-cursor":s.isDisabled?"not-allowed":"pointer","--dropdown-font-size":s.fontSize?s.fontSize:"14px"})),b=t.computed(()=>({height:`${s.arrowHeight}px`,width:`${s.arrowWidth}px`}));function p(){s.isDisabled||(g.value=!g.value)}function a(x){Z.value&&!Z.value.contains(x.target)&&(g.value=!1)}function _(x,h){s.isMultipleOption?m.value=-1:(m.value=h,g.value=!1),z.value=x,o("input",z.value),o("update:modelValue",z.value)}function y(){g.value=!1,o("click-ready")}return t.onMounted(()=>{document.addEventListener("click",a)}),t.onBeforeMount(()=>{document.removeEventListener("click",a)}),(x,h)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"dropDown",ref:Z,class:"gsc-dropdown",style:t.normalizeStyle(r.value)},[t.createElementVNode("div",{class:"gsc-dropdown__main-container",style:t.normalizeStyle({"padding-right":`${e.arrowWidth+8}px`}),onClick:p},[t.createElementVNode("div",Dqe,[t.renderSlot(x.$slots,"default",{selectedItem:z.value})]),t.createElementVNode("div",{class:t.normalizeClass(["gsc-dropdown__main-container__icon",{"rotated-180":g.value}]),style:t.normalizeStyle(b.value)},[e.iconType===1?(t.openBlock(),t.createElementBlock("svg",{key:0,height:e.arrowHeight,width:e.arrowWidth,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M18.394 9.13501L13.1302 14.3988C12.5086 15.0204 11.4914 15.0204 10.8697 14.3988L5.60596 9.13501",stroke:e.arrowColor},null,8,Nqe)],8,Oqe)):(t.openBlock(),t.createElementBlock("svg",Fqe,[t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M4 2.62045L6.86193 0.167368C7.12228 -0.0557892 7.54439 -0.0557892 7.80474 0.167368C8.06509 0.390524 8.06509 0.752333 7.80474 0.97549L4.4714 3.83263C4.21105 4.05579 3.78895 4.05579 3.5286 3.83263L0.195262 0.97549C-0.0650874 0.752333 -0.0650874 0.390524 0.195262 0.167368C0.455612 -0.0557892 0.877722 -0.0557892 1.13807 0.167368L4 2.62045Z",fill:e.arrowColor},null,8,Rqe)]))],6)],4),t.createVNode(t.Transition,null,{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("div",Vqe,[t.createElementVNode("div",null,[t.createElementVNode("div",{class:"gsc-dropdown__items",style:t.normalizeStyle({"margin-top":`${s.borderWidth}px`})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(n,i)=>(t.openBlock(),t.createElementBlock("div",null,[t.withDirectives((t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["gsc-dropdown__items__item",{selected:i===m.value}]),key:i,onClick:d=>_(n,i)},[t.renderSlot(x.$slots,"availableItem",{item:n})],10,jqe)),[[t.vShow,!n.isHidden]])]))),256))],4),e.isFooterVisible?(t.openBlock(),t.createElementBlock("div",Uqe,[t.createVNode(t.unref(zqe),{"text-value":"Listo","border-color":"#cbee6b","font-size":"12px",width:"72px",height:"22px","border-radius":"62px","border-width":.8,onClick:y})])):t.createCommentVNode("",!0)])],512),[[t.vShow,g.value]])]),_:3})],4))}},lb={borderType:"solid",listBackgroundColor:"#2E3B46",listBorderColor:"rgba(255, 255, 255, 0.2)",listBorderRadius:"5px",height:"38px",borderWidth:.8,borderColor:"rgba(255, 255, 255, 0.2)",backgroundColor:"#2E3B46",color:"white",listItemColor:"white",listItemSelectedBackgroundColor:"#2E3B46",arrowColor:"#fff",width:"100%",listHeight:"200px",isListSameWidth:!0,isFooterVisible:!0,hoverBackgroundColor:"#2E3B46",iconType:2},eg=e=>(t.pushScopeId("data-v-7a29901a"),e=e(),t.popScopeId(),e),Gqe={class:"universe"},Hqe=eg(()=>t.createElementVNode("div",{class:"universe__sub-header"},"Tipo de estádisticas:",-1)),Zqe={class:"radios"},Wqe={class:"radio-input"},qqe={class:"radio-input__radio"},Jqe=eg(()=>t.createElementVNode("label",{for:"total"},"Totales",-1)),Yqe={class:"radio-input"},Xqe={class:"radio-input__radio"},$qe=eg(()=>t.createElementVNode("label",{for:"every"},"Cada 90 mins.",-1)),Kqe=eg(()=>t.createElementVNode("div",{class:"universe__sub-header"},"Escribe los minutos jugados",-1)),Qqe=eg(()=>t.createElementVNode("div",{class:"universe__label"},"Igual o mayor que:",-1)),eJe={class:"universe__inputs"},tJe={class:"universe__inputs__input"},aJe=eg(()=>t.createElementVNode("div",{class:"universe__sub-header"},"Selecciona el lapso de tiempo",-1)),rJe=eg(()=>t.createElementVNode("div",{class:"universe__label"},"Considerando los últimos:",-1)),nJe={class:"universe__dropdown"},iJe={class:"selected-item"},oJe={__name:"TemplateUniverse",props:{universeFilters:{type:Object,default:()=>({minutesPlayed:360,percentMinutesPlayed:0,lastMonths:Array.from({length:24},(e,o)=>o+1),statistics:{totals:!0,averagePerGame:!1,averagePerMinute:!1},statisticsRadios:"total"})},fontFamily:{type:String,default:"'Poppins-Regular'"},defaultMonthIndex:{type:Number,default:5}},emits:["update:universeFilters"],setup(e,{expose:o,emit:s}){const z=e,Z=t.ref(!1),m=t.ref(!1),g=t.ref(!1),r=t.ref({statistics:{}});t.watch(()=>z.universeFilters,_=>{r.value={..._,lastMonths:_.selectedMonth?_.selectedMonth:_.lastMonths[z.defaultMonthIndex],statistics:{..._.statistics},statisticsRadios:_.statisticsRadios||"total"}},{deep:!0,immediate:!0}),t.watch(()=>r,_=>{Z.value=!_.value.minutesPlayed||Number(_.value.minutesPlayed)===0,m.value=!_.value.percentMinutesPlayed||Number(_.value.percentMinutesPlayed)===0,g.value=!_.value.lastMonths||Number(_.value.lastMonths)===0,s("update:universeFilters",_)},{deep:!0,immediate:!0});function b(_){_&&_<1&&(_=1),r.value.minutesPlayed=_}function p(){r.value={...z.universeFilters,lastMonths:z.universeFilters.lastMonths[z.defaultMonthIndex],statistics:{...z.universeFilters.statistics}}}function a(_){r.value.lastMonths=_}return o({resetFilters:p}),(_,y)=>(t.openBlock(),t.createElementBlock("div",Gqe,[Hqe,t.createElementVNode("div",Zqe,[t.createElementVNode("div",Wqe,[t.createElementVNode("div",qqe,[t.withDirectives(t.createElementVNode("input",{"onUpdate:modelValue":y[0]||(y[0]=x=>r.value.statisticsRadios=x),type:"radio",id:"total",value:"total",name:"statistics"},null,512),[[t.vModelRadio,r.value.statisticsRadios]]),Jqe])]),t.createElementVNode("div",Yqe,[t.createElementVNode("div",Xqe,[t.withDirectives(t.createElementVNode("input",{"onUpdate:modelValue":y[1]||(y[1]=x=>r.value.statisticsRadios=x),type:"radio",id:"every",value:"every90",name:"statistics"},null,512),[[t.vModelRadio,r.value.statisticsRadios]]),$qe])])]),Kqe,Qqe,t.createElementVNode("div",eJe,[t.createElementVNode("div",tJe,[t.createVNode(t.unref(kqe),{value:r.value.minutesPlayed,type:"text",inputmode:"numeric","border-radius":"4px",border:"solid 0.8px #8ea2ab","text-right":"Min","is-numbers-only":"",onInputval:b},null,8,["value"])])]),aJe,rJe,t.createElementVNode("div",nJe,[t.createVNode(t.unref(x1),t.mergeProps(t.unref(lb),{items:e.universeFilters.lastMonths,"model-value":r.value.lastMonths,onInput:a}),{default:t.withCtx(({selectedItem:x})=>[t.createElementVNode("div",iJe,t.toDisplayString(x)+" "+t.toDisplayString(x===1?"mes":"meses"),1)]),availableItem:t.withCtx(({item:x})=>[t.createElementVNode("div",null,t.toDisplayString(x)+" "+t.toDisplayString(x===1?"mes":"meses"),1)]),_:1},16,["items","model-value"])]),t.createCommentVNode("",!0),t.createCommentVNode("",!0)]))}},sJe=ic(oJe,[["__scopeId","data-v-7a29901a"]]),$N=(e,o)=>{const s=e.__vccOpts||e;for(const[z,Z]of o)s[z]=Z;return s},lJe={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||[],o=this.min===void 0?0:this.min,s=e.length?e.length-1:100,z=this.max===void 0?s:this.max,Z=this.minValue===void 0?25:this.minValue;e.length&&this.minValue===void 0&&(Z=1);let m=this.maxValue||75;if(e.length&&this.maxValue===void 0&&(m=e.length-2),z<=o)throw new Error("Invalid props min or max");if(Z>m)throw new Error("Invalid props minValue or maxValue");let g=this.rangeMargin===void 0?this.step:this.rangeMargin,r=g%this.step;return r&&(g=g+this.step-r),{valueMin:Z<o?o:Z,valueMax:m>z?z:m,interVal:null,startX:null,mouseMoveCounter:null,barBox:null,barValue:0,rangeMarginValue:g}},methods:{onBarLeftClick(){this.valueMin-this.step>=this.minimum?this.valueMin-=this.step:this.valueMin=this.minimum},onInnerBarLeftClick(){this.valueMin+this.rangeMarginValue<this.valueMax&&(this.valueMin+=this.step)},onBarRightClick(){this.valueMax+this.step<=this.maximum?this.valueMax+=this.step:this.valueMax=this.maximum},onInnerBarRightClick(){this.valueMax-this.rangeMarginValue>this.valueMin&&(this.valueMax-=this.step)},onInputMinChange(e){let o=parseFloat(e.target.value);o<=this.valueMax-this.rangeMarginValue&&o>=this.minimum?this.valueMin=o:e.target.value=this.valueMin},onInputMaxChange(e){let o=parseFloat(e.target.value);o>=this.valueMin+this.rangeMarginValue&&o<=this.maximum?this.valueMax=o: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 o=e.clientX;e.type==="touchmove"&&(o=e.touches[0].clientX);let s=(o-this.startX)/this.barBox.width,z=this.barValue+(this.maximum-this.minimum)*s,Z=z%this.step;z-=Z,z<this.minimum?z=this.minimum:z>this.valueMax-this.rangeMarginValue&&(z=this.valueMax-this.rangeMarginValue),this.valueMin=z},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 o=e.clientX;e.type==="touchmove"&&(o=e.touches[0].clientX);let s=(o-this.startX)/this.barBox.width,z=this.barValue+(this.maximum-this.minimum)*s,Z=z%this.step;z-=Z,z<this.valueMin+this.rangeMarginValue?z=this.valueMin+this.rangeMarginValue:z>this.maximum&&(z=this.maximum),this.valueMax=z},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 o=this.step;e.deltaY<0&&(o=-o),e.shiftKey&&e.ctrlKey?this.valueMin+o>=this.minimum&&this.valueMax+o<=this.maximum&&(this.valueMin=this.valueMin+o,this.valueMax=this.valueMax+o):e.ctrlKey?(o=this.valueMax+o,o<this.valueMin+this.rangeMarginValue?o=this.valueMin+this.rangeMarginValue:o>this.maximum&&(o=this.maximum),this.valueMax=o):e.shiftKey&&(o=this.valueMin+o,o<this.minimum?o=this.minimum:o>this.valueMax-this.rangeMarginValue&&(o=this.valueMax-this.rangeMarginValue),this.valueMin=o)},triggerInput(){let e=0;this.step.toString().includes(".")&&(e=2);let o={min:this.minimum,max:this.maximum,minValue:parseFloat(this.valueMin.toFixed(e)),maxValue:parseFloat(this.valueMax.toFixed(e))};this.$emit("input",o)}},computed:{minimum(){return this.min===void 0?0:this.min},maximum(){let e=this.labels||[],o=e.length?e.length-1:100;return this.max===void 0?o: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(){}},cJe={class:"bar"},dJe=["min","max","step","value"],uJe={class:"caption"},hJe={class:"min-caption"},pJe={class:"bar-inner"},fJe=["min","max","step","value"],mJe={class:"caption"},gJe={class:"max-caption"},yJe={key:0,class:"ruler"},vJe={key:1,class:"sub-ruler"},bJe={key:2,class:"labels"};function xJe(e,o,s,z,Z,m){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass([s.baseClassName,Z.rangeMarginValue===0?"zero-ranage-margin":""]),onMousewheel:o[10]||(o[10]=t.withModifiers((...g)=>m.onMouseWheel&&m.onMouseWheel(...g),["prevent","stop"]))},[t.createElementVNode("div",cJe,[t.createElementVNode("div",{class:"bar-left",style:t.normalizeStyle({width:m.barMin+"%"}),onClick:o[0]||(o[0]=(...g)=>m.onBarLeftClick&&m.onBarLeftClick(...g))},null,4),t.createElementVNode("input",{class:"input-type-range input-type-range-min",type:"range",min:m.minimum,max:m.maximum,step:s.step,value:Z.valueMin,onInput:o[1]||(o[1]=t.withModifiers((...g)=>m.onInputMinChange&&m.onInputMinChange(...g),["stop","prevent"]))},null,40,dJe),t.createElementVNode("div",{class:"thumb thumb-left",onMousedown:o[2]||(o[2]=(...g)=>m.onLeftThumbMousedown&&m.onLeftThumbMousedown(...g)),onTouchstart:o[3]||(o[3]=(...g)=>m.onLeftThumbMousedown&&m.onLeftThumbMousedown(...g))},[t.createElementVNode("div",uJe,[t.createElementVNode("span",hJe,t.toDisplayString(s.minCaption||m.barMinVal),1)])],32),t.createElementVNode("div",pJe,[t.createElementVNode("div",{class:"bar-inner-left",onClick:o[4]||(o[4]=(...g)=>m.onInnerBarLeftClick&&m.onInnerBarLeftClick(...g))}),t.createElementVNode("div",{class:"bar-inner-right",onClick:o[5]||(o[5]=(...g)=>m.onInnerBarRightClick&&m.onInnerBarRightClick(...g))})]),t.createElementVNode("input",{class:"input-type-range input-type-range-max",type:"range",min:m.minimum,max:m.maximum,step:s.step,value:Z.valueMax,onInput:o[6]||(o[6]=t.withModifiers((...g)=>m.onInputMaxChange&&m.onInputMaxChange(...g),["stop","prevent"]))},null,40,fJe),t.createElementVNode("div",{class:"thumb thumb-right",onMousedown:o[7]||(o[7]=(...g)=>m.onRightThumbMousedown&&m.onRightThumbMousedown(...g)),onTouchstart:o[8]||(o[8]=(...g)=>m.onRightThumbMousedown&&m.onRightThumbMousedown(...g))},[t.createElementVNode("div",mJe,[t.createElementVNode("span",gJe,t.toDisplayString(s.maxCaption||m.barMaxVal),1)])],32),t.createElementVNode("div",{class:"bar-right",style:t.normalizeStyle({width:m.barMax+"%"}),onClick:o[9]||(o[9]=(...g)=>m.onBarRightClick&&m.onBarRightClick(...g))},null,4)]),s.ruler?(t.openBlock(),t.createElementBlock("div",yJe,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(m.stepCount,g=>(t.openBlock(),t.createElementBlock("div",{key:g,class:"ruler-rule"}))),128))])):t.createCommentVNode("",!0),m.subStepCount?(t.openBlock(),t.createElementBlock("div",vJe,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(m.subStepCount,g=>(t.openBlock(),t.createElementBlock("div",{key:g,class:"ruler-sub-rule"}))),128))])):t.createCommentVNode("",!0),s.label?(t.openBlock(),t.createElementBlock("div",bJe,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(m.scaleLabels,g=>(t.openBlock(),t.createElementBlock("div",{class:"label",key:g},t.toDisplayString(g),1))),128))])):t.createCommentVNode("",!0)],34)}const _Je=$N(lJe,[["render",xJe]]),Lk={components:{MultiRangeSlider:_Je},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)}}},KN=()=>{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}))},QN=Lk.setup;Lk.setup=QN?(e,o)=>(KN(),QN(e,o)):KN;const wJe={class:"center"},kJe={class:"bar-ref"},SJe={class:"bar-ref-element-left"},CJe={class:"bar-ref-element-right"};function TJe(e,o,s,z,Z,m){const g=t.resolveComponent("MultiRangeSlider");return t.openBlock(),t.createElementBlock("div",{class:"custom-range-slider",style:t.normalizeStyle(m.customStyle)},[t.createElementVNode("div",wJe,[t.createElementVNode("div",kJe,[t.createElementVNode("div",SJe,[t.createElementVNode("div",{class:"text",style:t.normalizeStyle(m.customStyleText)},"De:",4),t.createElementVNode("div",{class:"value",style:t.normalizeStyle(m.customStyleValue)},t.toDisplayString(Z.minValueLocal)+t.toDisplayString(s.minSuffix),5)]),t.createElementVNode("div",CJe,[t.createElementVNode("div",{class:"text",style:t.normalizeStyle(m.customStyleText)},"A:",4),t.createElementVNode("div",{class:"value",style:t.normalizeStyle(m.customStyleValue)},t.toDisplayString(Z.maxValueLocal)+t.toDisplayString(s.maxSuffix),5)])]),t.createVNode(g,{baseClassName:"multi-range-slider",min:s.minLimit,max:s.maxLimit,step:1,ruler:!1,label:!1,"min-value":Z.minValueLocal,"max-value":Z.maxValueLocal,"range-margin":0,onInput:m.onInput},null,8,["min","max","min-value","max-value","onInput"])])],4)}const eF=$N(Lk,[["render",TJe]]),AJe={class:"template-distance"},EJe={__name:"TemplateDistance",props:{distance:{type:Object,default:()=>({minLimit:5,maxLimit:30,minValue:5,maxValue:30})}},emits:["update:distanceFilters"],setup(e,{emit:o}){const s=e,z=t.ref({minValue:0,maxValue:0,minLimit:0,maxLimit:0});t.watch(()=>z.value,m=>{o("update:distanceFilters",m)},{deep:!0}),t.watch(()=>s.distance,m=>{z.value.minValue=m.minValue,z.value.maxValue=m.maxValue,z.value.minLimit=m.minLimit,z.value.maxLimit=m.maxLimit},{immediate:!0,deep:!0});function Z(m){z.value.minValue=m.minValue,z.value.maxValue=m.maxValue}return(m,g)=>(t.openBlock(),t.createElementBlock("div",AJe,[t.createVNode(t.unref(eF),{"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":z.value.minLimit,"max-limit":z.value.maxLimit,"min-value":z.value.minValue,"max-value":z.value.maxValue,"min-suffix":"m","max-suffix":"+",onInput:Z},null,8,["min-limit","max-limit","min-value","max-value"])]))}},MJe=e=>(t.pushScopeId("data-v-63087438"),e=e(),t.popScopeId(),e),IJe={class:"template-games"},PJe={class:"template-games__header"},LJe=MJe(()=>t.createElementVNode("div",{class:"template-games__header__title"},"Partidos jugados:",-1)),BJe={class:"template-games__header__all-games"},zJe={__name:"TemplateGames",props:{gamesFilters:{type:Array,default:()=>[]}},emits:["update:gamesFilters"],setup(e,{emit:o}){const s=e,z=t.ref(!1),Z=t.computed(()=>s.gamesFilters.filter(g=>g.isSelected).length);t.watch(Z,g=>{z.value=g===s.gamesFilters.length,o("update:gamesFilters",s.gamesFilters)},{immediate:!0});const m=g=>{g?s.gamesFilters.forEach(r=>{r.isSelected=g}):s.gamesFilters.forEach((r,b)=>{r.isSelected=b===0}),z.value=g};return(g,r)=>(t.openBlock(),t.createElementBlock("div",IJe,[t.createElementVNode("div",PJe,[LJe,t.createElementVNode("div",BJe,[t.createVNode(t.unref(Zl),{modelValue:z.value,label:"Todos","box-position":"right","font-family":"Roboto-Regular, sans-serif","label-font-size":"12px","onUpdate:modelValue":m},null,8,["modelValue"])])]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.gamesFilters,(b,p)=>(t.openBlock(),t.createElementBlock("div",{key:p,class:"template-games__game"},[t.createVNode(t.unref(Zl),{modelValue:b.isSelected,"onUpdate:modelValue":a=>b.isSelected=a,label:b.label,"teams-ids":b.teamsIds,"avoid-interaction":Z.value===1&&b.isSelected},null,8,["modelValue","onUpdate:modelValue","label","teams-ids","avoid-interaction"])]))),128))]))}},DJe=ic(zJe,[["__scopeId","data-v-63087438"]]),OJe=(e,o)=>{const s=e.__vccOpts||e;for(const[z,Z]of o)s[z]=Z;return s},Bk={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))}}},tF=()=>{t.useCssVars(e=>({"9d01acb4":e.height,"14e95081":e.borderWidthBtn,"38fec285":e.borderType,34353510:e.borderColor,"20d20dc6":e.borderRadius,17130967:e.width,"4ccb7d36":e.backgroundColor,"5d1e86a2":e.cursorType,ce65d4a2:e.fontSize,fe4ac47a:e.fontStyle,f98e44dc:e.fontFamily,"93b87770":e.marginLeftStat,c7f7beba:e.fontSizeStat}))},aF=Bk.setup;Bk.setup=aF?(e,o)=>(tF(),aF(e,o)):tF;const NJe=e=>(t.pushScopeId("data-v-f3ee6b2b"),e=e(),t.popScopeId(),e),FJe=["src"],RJe={key:1,class:"text"},VJe=["src"],jJe={class:"stats"},UJe=NJe(()=>t.createElementVNode("img",{class:"iconstats",src:"https://golstatsimages.blob.core.windows.net/todoelfut/playdes.png"},null,-1)),GJe={class:"numstats"},HJe={class:"leyend"};function ZJe(e,o,s,z,Z,m){return t.openBlock(),t.createElementBlock("div",null,[s.type==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["button",Z.status&&s.typeOnOff&&"button-active"]),style:t.normalizeStyle([m.customStyle,Z.status&&s.typeOnOff&&m.customActive]),onClick:o[0]||(o[0]=(...g)=>m.btnClick&&m.btnClick(...g))},[s.icon&&s.iconPosition.toLowerCase()==="left"?(t.openBlock(),t.createElementBlock("img",{key:0,class:"icon",style:t.normalizeStyle({width:s.iconSize}),src:s.icon},null,12,FJe)):t.createCommentVNode("",!0),s.textValue?(t.openBlock(),t.createElementBlock("div",RJe,t.toDisplayString(s.textValue),1)):t.createCommentVNode("",!0),s.icon&&s.iconPosition.toLowerCase()==="right"?(t.openBlock(),t.createElementBlock("img",{key:2,class:"icon",style:t.normalizeStyle({width:s.iconSize}),src:s.icon},null,12,VJe)):t.createCommentVNode("",!0)],6)):t.createCommentVNode("",!0),s.type==1?(t.openBlock(),t.createElementBlock("div",{key:1,class:"button-target",onClick:o[1]||(o[1]=(...g)=>m.btnClick&&m.btnClick(...g))},[t.createElementVNode("div",jJe,[UJe,t.createElementVNode("div",GJe,t.toDisplayString(s.textStat),1)]),t.createElementVNode("div",HJe,t.toDisplayString(s.textCategory),1)])):t.createCommentVNode("",!0)])}const _5=OJe(Bk,[["render",ZJe],["__scopeId","data-v-f3ee6b2b"]]),WJe=(e,o)=>{const s=e.__vccOpts||e;for(const[z,Z]of o)s[z]=Z;return s},zk={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))}}},rF=()=>{t.useCssVars(e=>({"9d01acb4":e.height,"14e95081":e.borderWidthBtn,"38fec285":e.borderType,34353510:e.borderColor,"20d20dc6":e.borderRadius,17130967:e.width,"4ccb7d36":e.backgroundColor,"5d1e86a2":e.cursorType,ce65d4a2:e.fontSize,fe4ac47a:e.fontStyle,f98e44dc:e.fontFamily,"93b87770":e.marginLeftStat,c7f7beba:e.fontSizeStat}))},nF=zk.setup;zk.setup=nF?(e,o)=>(rF(),nF(e,o)):rF;const qJe=e=>(t.pushScopeId("data-v-f3ee6b2b"),e=e(),t.popScopeId(),e),JJe=["src"],YJe={key:1,class:"text"},XJe=["src"],$Je={class:"stats"},KJe=qJe(()=>t.createElementVNode("img",{class:"iconstats",src:"https://golstatsimages.blob.core.windows.net/todoelfut/playdes.png"},null,-1)),QJe={class:"numstats"},eYe={class:"leyend"};function tYe(e,o,s,z,Z,m){return t.openBlock(),t.createElementBlock("div",null,[s.type==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["button",Z.status&&s.typeOnOff&&"button-active"]),style:t.normalizeStyle([m.customStyle,Z.status&&s.typeOnOff&&m.customActive]),onClick:o[0]||(o[0]=(...g)=>m.btnClick&&m.btnClick(...g))},[s.icon&&s.iconPosition.toLowerCase()==="left"?(t.openBlock(),t.createElementBlock("img",{key:0,class:"icon",style:t.normalizeStyle({width:s.iconSize}),src:s.icon},null,12,JJe)):t.createCommentVNode("",!0),s.textValue?(t.openBlock(),t.createElementBlock("div",YJe,t.toDisplayString(s.textValue),1)):t.createCommentVNode("",!0),s.icon&&s.iconPosition.toLowerCase()==="right"?(t.openBlock(),t.createElementBlock("img",{key:2,class:"icon",style:t.normalizeStyle({width:s.iconSize}),src:s.icon},null,12,XJe)):t.createCommentVNode("",!0)],6)):t.createCommentVNode("",!0),s.type==1?(t.openBlock(),t.createElementBlock("div",{key:1,class:"button-target",onClick:o[1]||(o[1]=(...g)=>m.btnClick&&m.btnClick(...g))},[t.createElementVNode("div",$Je,[KJe,t.createElementVNode("div",QJe,t.toDisplayString(s.textStat),1)]),t.createElementVNode("div",eYe,t.toDisplayString(s.textCategory),1)])):t.createCommentVNode("",!0)])}const aYe=WJe(zk,[["render",tYe],["__scopeId","data-v-f3ee6b2b"]]),rYe=(e,o)=>{const s=e.__vccOpts||e;for(const[z,Z]of o)s[z]=Z;return s},nYe={key:1},iYe={width:"10",height:"8",viewBox:"0 0 10 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},oYe=["fill"],sYe={key:0,class:"checkbox__teams"},lYe={class:"checkbox__teams__logo"},cYe=["src"],dYe={class:"checkbox__teams__logo"},uYe=["src"],hYe={__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:o}){const s=e;t.useCssVars(p=>({"7bd9d47b":e.width,"34dc7ddc":e.height}));const z=t.ref(!1),Z=t.computed(()=>{const p={color:s.boxValueColor,"font-family":s.fontFamily,height:s.boxWidthAndHeight,width:s.boxWidthAndHeight,minWidth:s.boxWidthAndHeight,"border-radius":s.boxBorderRadius,"margin-top":s.boxMarginTop};return z.value?(p["background-color"]=s.boxBackgroundColor,p.border=`solid ${s.boxBorderWidth} ${s.boxBackgroundColor}`):p.border=`solid ${s.boxBorderWidth} ${s.boxBorderColor}`,p}),m=t.computed(()=>({"font-family":s.boxValueFontFamily,"font-size":s.boxValueFontSize,color:s.boxValueColor,"line-height":1})),g=t.computed(()=>{const p={color:s.labelColor,"font-family":s.fontFamily,"font-size":s.labelFontSize,"white-space":s.labelWhiteSpace,"text-align":s.boxPosition==="top"||s.boxPosition==="bottom"?"center":s.boxPosition};return(s.boxPosition==="left"||s.boxPosition==="right")&&(p[`margin-${s.boxPosition}`]=s.isBoxOnly?"0":s.teamsIds?"8px":"10px"),p});t.watch(()=>s.modelValue,p=>{p!==z.value&&(z.value=p)},{immediate:!0});function r(){s.avoidInteraction||!z.value&&s.avoidToCheck||(z.value=!z.value,o("update:modelValue",z.value))}function b(p){return`${{}.TEAM_LOGOS_URL||"https://golstatsimages.blob.core.windows.net/teams-80/"}${p}.png`}return(p,a)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["checkbox",`box-${e.boxPosition}`]),onClick:r},[t.createElementVNode("div",{class:"checkbox__box",style:t.normalizeStyle(Z.value)},[z.value?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[s.boxValue?(t.openBlock(),t.createElementBlock("div",{key:0,class:"checkbox__box__value",style:t.normalizeStyle(m.value)},t.toDisplayString(e.boxValue),5)):(t.openBlock(),t.createElementBlock("div",nYe,[(t.openBlock(),t.createElementBlock("svg",iYe,[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,oYe)]))]))],64)):t.createCommentVNode("",!0)],4),e.teamsIds&&e.teamsIds.length?(t.openBlock(),t.createElementBlock("div",sYe,[t.createElementVNode("div",lYe,[t.createElementVNode("img",{src:b(e.teamsIds[0]),alt:""},null,8,cYe)]),t.createElementVNode("div",dYe,[t.createElementVNode("img",{src:b(e.teamsIds[1]),alt:""},null,8,uYe)])])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"checkbox__label",style:t.normalizeStyle(g.value)},t.toDisplayString(e.label),5)],2))}},pYe=rYe(hYe,[["__scopeId","data-v-b6f124d8"]]),fYe=(e,o)=>{const s=e.__vccOpts||e;for(const[z,Z]of o)s[z]=Z;return s},Dk={components:{GSCButton:aYe,GSCCheckbox:pYe},data(){return{update:0,all:!1,refreshBtn14:0,refreshBtn24:0,refreshBtn34:0,refreshBtn44:0,sectors:Array.from({length:16},(e,o)=>({sector:o+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 o=e.sort();JSON.stringify(o)!==JSON.stringify(this.lastUpdatedValue)&&(this.lastUpdatedValue=o,this.sectors.forEach((s,z)=>{s.active=e.includes(z+1),this.validateField(z)}),this.$emit("update:modelValue",e))}},sectors:{handler(e){var o=[];for(let s=0;s<e.length;s++)e[s].active&&o.push(s+1);this.$emit("update:modelValue",o)},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 o=0;o<this.sectors.length;o++)this.sectors[o].active=!0,this.validateField(o);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 o=0;o<this.sectors.length;o++)this.sectors[o].active=!1,this.validateField(o),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 o=0;this.sectors[e].active=!this.sectors[e].active;for(let s=0;s<this.sectors.length;s++)this.sectors[s].active&&(o+=1);o==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 o=0;for(let s=0;s<this.sectors.length;s++)this.sectors[s].active&&(o+=1);o==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,o==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 o=0;for(let s=0;s<this.sectors.length;s++)this.sectors[s].active&&(o+=1);o==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,o==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 o=0;for(let s=0;s<this.sectors.length;s++)this.sectors[s].active&&(o+=1);o==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,o==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 o=0;for(let s=0;s<this.sectors.length;s++)this.sectors[s].active&&(o+=1);o==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,o==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)}}},iF=()=>{t.useCssVars(e=>({"4fe806fe":e.widthContainer,"91de7c52":e.heightContainer,"266afcdc":e.backgroundColor,"2b853536":e.titleFontSize,"986b6446":e.widthFieldGrid,"1af308b6":e.heightFieldGrid}))},oF=Dk.setup;Dk.setup=oF?(e,o)=>(iF(),oF(e,o)):iF;const mYe={class:"gsc-field"},gYe={class:"gsc-field__title-checked"},yYe={class:"gsc-field__title-checked__title"},vYe={class:"gsc-field__container-field"},bYe={class:"gsc-field__container-field__field"},xYe={width:"100%",height:"100%",fill:"#2e3b46",xmlns:"http://www.w3.org/2000/svg"},_Ye=["stroke"],wYe=["stroke","stroke-width"],kYe=["stroke","stroke-width"],SYe=["stroke-width","stroke"],CYe=["fill","fill-opacity","stroke","stroke-width"],TYe=["fill","fill-opacity","stroke","stroke-width"],AYe=["fill","fill-opacity","stroke","stroke-width"],EYe=["fill","fill-opacity","stroke","stroke-width"],MYe=["fill","fill-opacity","stroke","stroke-width"],IYe=["fill","fill-opacity","stroke","stroke-width"],PYe=["fill","fill-opacity","stroke","stroke-width"],LYe=["fill","fill-opacity","stroke","stroke-width"],BYe=["fill","fill-opacity","stroke","stroke-width"],zYe=["fill","fill-opacity","stroke","stroke-width"],DYe=["fill","fill-opacity","stroke","stroke-width"],OYe=["fill","fill-opacity","stroke","stroke-width"],NYe=["fill","fill-opacity","stroke","stroke-width"],FYe=["fill","fill-opacity","stroke","stroke-width"],RYe=["fill","fill-opacity","stroke","stroke-width"],VYe=["fill","fill-opacity","stroke","stroke-width"],jYe={class:"gsc-field__container-field__bar-buttons"};function UYe(e,o,s,z,Z,m){const g=t.resolveComponent("GSCCheckbox"),r=t.resolveComponent("GSCButton");return t.openBlock(),t.createElementBlock("div",mYe,[t.createElementVNode("div",gYe,[t.createElementVNode("div",yYe,t.toDisplayString(s.title),1),t.createElementVNode("div",{class:"gsc-field__title-checked__check-cont",style:t.normalizeStyle(s.widthField>=350?"min-width: 123px":"")},[(t.openBlock(),t.createBlock(g,{label:s.widthField<350?"Todas":"Todas las zonas","font-family":"Poppins-Regular","box-value-font-family":"Poppins-Regular","box-position":"right","label-font-size":s.titleFontSize,"label-white-space":"nowrap","box-margin-top":"0.4em",value:Z.all,key:Z.update,"model-value":Z.all,"onUpdate:modelValue":m.clickAll},null,8,["label","label-font-size","value","model-value","onUpdate:modelValue"]))],4)]),t.createElementVNode("div",vYe,[t.createElementVNode("div",bYe,[(t.openBlock(),t.createElementBlock("svg",xYe,[t.createElementVNode("rect",{x:"1.5",y:"0.5",width:"100%",height:"100%",rx:"1.5",stroke:s.colorLineField},null,8,_Ye),t.createElementVNode("path",{style:t.normalizeStyle("transform: translate("+m.translx+"px, "+m.transly+"px);"),d:"M303.597 39.9799H263.371C262.817 39.9799 262.369 40.4301 262.371 40.984L262.842 155.176C262.845 155.726 263.292 156.172 263.842 156.172H302.884",stroke:s.colorLineField,"stroke-width":s.borderWidthLineField,"stroke-linecap":"square"},null,12,wYe),t.createElementVNode("path",{style:t.normalizeStyle("transform: translateY("+m.transly+"px);"),class:"porteria1",d:"M1.09097 156.172L41.3162 156.172C41.8701 156.172 42.3185 155.722 42.3162 155.168L41.845 40.9758C41.8427 40.4252 41.3957 39.98 40.845 39.98L1.80338 39.98",stroke:s.colorLineField,"stroke-width":s.borderWidthLineField,"stroke-linecap":"square"},null,12,kYe),t.createElementVNode("path",{style:t.normalizeStyle("transform: translate("+m.translxcircle+"px, "+m.transly+"px);"),class:"circle",d:"M182.911 97.4512C182.911 113.726 169.44 126.936 152.801 126.936C136.162 126.936 122.691 113.726 122.691 97.4512C122.691 81.1767 136.162 67.9662 152.801 67.9662C169.44 67.9662 182.911 81.1767 182.911 97.4512Z","stroke-width":s.borderWidthLineField,stroke:s.colorLineField},null,12,SYe),t.createElementVNode("rect",{x:"0%",y:"0%",width:"25%",height:"25%",fill:Z.sectors[0].active?s.backgroundSectorActive:s.backgroundSectorDisabled,"fill-opacity":s.opacitySector,stroke:s.borderColor,"stroke-width":s.borderWidth,onClick:o[0]||(o[0]=b=>m.selectSector(0))},null,8,CYe),t.createElementVNode("rect",{x:"0%",y:"25%",width:"25%",height:"25%",fill:Z.sectors[1].active?s.backgroundSectorActive:s.backgroundSectorDisabled,"fill-opacity":s.opacitySector,stroke:s.borderColor,"stroke-width":s.borderWidth,onClick:o[1]||(o[1]=b=>m.selectSector(1))},null,8,TYe),t.createElementVNode("rect",{x:"0%",y:"50%",width:"25%",height:"25%",fill:Z.sectors[2].active?s.backgroundSectorActive:s.backgroundSectorDisabled,"fill-opacity":s.opacitySector,stroke:s.borderColor,"stroke-width":s.borderWidth,onClick:o[2]||(o[2]=b=>m.selectSector(2))},null,8,AYe),t.createElementVNode("rect",{x:"0%",y:"75%",width:"25%",height:"25%",fill:Z.sectors[3].active?s.backgroundSectorActive:s.backgroundSectorDisabled,"fill-opacity":s.opacitySector,stroke:s.borderColor,"stroke-width":s.borderWidth,onClick:o[3]||(o[3]=b=>m.selectSector(3))},null,8,EYe),t.createElementVNode("rect",{x:"25%",y:"0%",width:"25%",height:"25%",fill:Z.sectors[4].active?s.backgroundSectorActive:s.backgroundSectorDisabled,"fill-opacity":s.opacitySector,stroke:s.borderColor,"stroke-width":s.borderWidth,onClick:o[4]||(o[4]=b=>m.selectSector(4))},null,8,MYe),t.createElementVNode("rect",{x:"25%",y:"25%",width:"25%",height:"25%",fill:Z.sectors[5].active?s.backgroundSectorActive:s.backgroundSectorDisabled,"fill-opacity":s.opacitySector,stroke:s.borderColor,"stroke-width":s.borderWidth,onClick:o[5]||(o[5]=b=>m.selectSector(5))},null,8,IYe),t.createElementVNode("rect",{x:"25%",y:"50%",width:"25%",height:"25%",fill:Z.sectors[6].active?s.backgroundSectorActive:s.backgroundSectorDisabled,"fill-opacity":s.opacitySector,stroke:s.borderColor,"stroke-width":s.borderWidth,onClick:o[6]||(o[6]=b=>m.selectSector(6))},null,8,PYe),t.createElementVNode("rect",{x:"25%",y:"75%",width:"25%",height:"25%",fill:Z.sectors[7].active?s.backgroundSectorActive:s.backgroundSectorDisabled,"fill-opacity":s.opacitySector,stroke:s.borderColor,"stroke-width":s.borderWidth,onClick:o[7]||(o[7]=b=>m.selectSector(7))},null,8,LYe),t.createElementVNode("rect",{x:"50%",y:"0%",width:"25%",height:"25%",fill:Z.sectors[8].active?s.backgroundSectorActive:s.backgroundSectorDisabled,"fill-opacity":s.opacitySector,stroke:s.borderColor,"stroke-width":s.borderWidth,onClick:o[8]||(o[8]=b=>m.selectSector(8))},null,8,BYe),t.createElementVNode("rect",{x:"50%",y:"25%",width:"25%",height:"25%",fill:Z.sectors[9].active?s.backgroundSectorActive:s.backgroundSectorDisabled,"fill-opacity":s.opacitySector,stroke:s.borderColor,"stroke-width":s.borderWidth,onClick:o[9]||(o[9]=b=>m.selectSector(9))},null,8,zYe),t.createElementVNode("rect",{x:"50%",y:"50%",width:"25%",height:"25%",fill:Z.sectors[10].active?s.backgroundSectorActive:s.backgroundSectorDisabled,"fill-opacity":s.opacitySector,stroke:s.borderColor,"stroke-width":s.borderWidth,onClick:o[10]||(o[10]=b=>m.selectSector(10))},null,8,DYe),t.createElementVNode("rect",{x:"50%",y:"75%",width:"25%",height:"25%",fill:Z.sectors[11].active?s.backgroundSectorActive:s.backgroundSectorDisabled,"fill-opacity":s.opacitySector,stroke:s.borderColor,"stroke-width":s.borderWidth,onClick:o[11]||(o[11]=b=>m.selectSector(11))},null,8,OYe),t.createElementVNode("rect",{x:"75%",y:"0%",width:"25%",height:"25%",fill:Z.sectors[12].active?s.backgroundSectorActive:s.backgroundSectorDisabled,"fill-opacity":s.opacitySector,stroke:s.borderColor,"stroke-width":s.borderWidth,onClick:o[12]||(o[12]=b=>m.selectSector(12))},null,8,NYe),t.createElementVNode("rect",{x:"75%",y:"25%",width:"25%",height:"25%",fill:Z.sectors[13].active?s.backgroundSectorActive:s.backgroundSectorDisabled,"fill-opacity":s.opacitySector,stroke:s.borderColor,"stroke-width":s.borderWidth,onClick:o[13]||(o[13]=b=>m.selectSector(13))},null,8,FYe),t.createElementVNode("rect",{x:"75%",y:"50%",width:"25%",height:"25%",fill:Z.sectors[14].active?s.backgroundSectorActive:s.backgroundSectorDisabled,"fill-opacity":s.opacitySector,stroke:s.borderColor,"stroke-width":s.borderWidth,onClick:o[14]||(o[14]=b=>m.selectSector(14))},null,8,RYe),t.createElementVNode("rect",{x:"75%",y:"75%",width:"25%",height:"25%",fill:Z.sectors[15].active?s.backgroundSectorActive:s.backgroundSectorDisabled,"fill-opacity":s.opacitySector,stroke:s.borderColor,"stroke-width":s.borderWidth,onClick:o[15]||(o[15]=b=>m.selectSector(15))},null,8,VYe)]))]),t.createElementVNode("div",jYe,[(t.openBlock(),t.createBlock(r,{"text-value":"1/4 tos","font-size":"12px",height:"26px",width:"65px","type-on-off":!0,"border-width":1,"font-color":"#bfc2c5","border-color":"#8c9399","border-radius":"4px","font-family":"Poppins-Medium","active-border-width":1,"background-color":"","active-background-color":"#cbee6b33",ref:"btn14",onStatus:m.btn14,key:Z.refreshBtn14,value:e.status14},null,8,["onStatus","value"])),(t.openBlock(),t.createBlock(r,{"text-value":"2/4 tos","font-size":"12px",height:"26px",width:"65px","type-on-off":!0,"border-width":1,"font-color":"#bfc2c5","border-color":"#8c9399","border-radius":"4px","font-family":"Poppins-Medium","active-border-width":1,"background-color":"","active-background-color":"#cbee6b33",ref:"btn24",onStatus:m.btn24,key:Z.refreshBtn24,value:e.status24},null,8,["onStatus","value"])),(t.openBlock(),t.createBlock(r,{"text-value":"3/4 tos","font-size":"12px",height:"26px",width:"65px","type-on-off":!0,"border-width":1,"font-color":"#bfc2c5","border-color":"#8c9399","border-radius":"4px","font-family":"Poppins-Medium","active-border-width":1,"background-color":"","active-background-color":"#cbee6b33",ref:"btn34",onStatus:m.btn34,key:Z.refreshBtn34,value:e.status34},null,8,["onStatus","value"])),(t.openBlock(),t.createBlock(r,{"text-value":"4/4 tos","font-size":"12px",height:"26px",width:"65px","type-on-off":!0,"border-width":1,"font-color":"#bfc2c5","border-color":"#8c9399","border-radius":"4px","font-family":"Poppins-Medium","active-border-width":1,"background-color":"","active-background-color":"#cbee6b33",ref:"btn44",onStatus:m.btn44,key:Z.refreshBtn44,value:e.status44},null,8,["onStatus","value"]))])])])}const sF=fYe(Dk,[["render",UYe],["__scopeId","data-v-b85699b8"]]),GYe={class:"toggle-buttons__background"},HYe=["onClick"],ZYe={__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:o}){const s=e;t.useCssVars(g=>({"93d865f4":e.height,"34a70bf2":e.width,"3b25a65d":e.mainBackgroundColor,b988d706:e.borderRadius,"6ca18efc":e.mainBorderWidth,"6ecf8bc2":e.mainBorderColor,"1c0cd0f2":e.fontFamily,"6a733de2":e.fontSize,"0f5c20d5":e.activeBorderWidth,"0e452272":e.activeBorderColor,d69fa5a0:e.activeBackgroundColor}));const z=t.ref(s.selectedButtonIndex),Z=t.computed(()=>({"--grid-template-columns":`repeat(${s.buttons.length}, 1fr)`}));t.watch(()=>s.selectedButtonIndex,g=>{z.value=g}),t.watch(z,(g,r)=>{g!==r&&o("change",{index:g,button:s.buttons[g]})});function m(g){z.value=g}return(g,r)=>(t.openBlock(),t.createElementBlock("div",GYe,[t.createElementVNode("div",{class:"toggle-buttons",style:t.normalizeStyle(Z.value)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.buttons,(b,p)=>(t.openBlock(),t.createElementBlock("div",{key:`b${p}`,class:t.normalizeClass(["toggle-buttons__button",{active:z.value===p}]),onClick:a=>m(p)},t.toDisplayString(b.text||b),11,HYe))),128))],4)]))}},WYe=ic(ZYe,[["__scopeId","data-v-f34a7e56"]]);function lF(e,o){return function(){return e.apply(o,arguments)}}const{toString:qYe}=Object.prototype,{getPrototypeOf:fv}=Object,{iterator:cb,toStringTag:cF}=Symbol,w5=(({hasOwnProperty:e})=>(o,s)=>e.call(o,s))(Object.prototype),db=(e,o)=>{let s=e;const z=[];for(;s!=null&&s!==Object.prototype;){if(z.indexOf(s)!==-1)return!1;if(z.push(s),w5(s,o))return!0;s=fv(s)}return!1},JYe=(e,o)=>e!=null&&db(e,o)?e[o]:void 0,Ok=(e=>o=>{const s=qYe.call(o);return e[s]||(e[s]=s.slice(8,-1).toLowerCase())})(Object.create(null)),Uf=e=>(e=e.toLowerCase(),o=>Ok(o)===e),k5=e=>o=>typeof o===e,{isArray:tg}=Array,mv=k5("undefined");function gv(e){return e!==null&&!mv(e)&&e.constructor!==null&&!mv(e.constructor)&&hp(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const dF=Uf("ArrayBuffer");function YYe(e){let o;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?o=ArrayBuffer.isView(e):o=e&&e.buffer&&dF(e.buffer),o}const XYe=k5("string"),hp=k5("function"),uF=k5("number"),yv=e=>e!==null&&typeof e=="object",$Ye=e=>e===!0||e===!1,S5=e=>{if(!yv(e))return!1;const o=fv(e);return(o===null||o===Object.prototype||fv(o)===null)&&!db(e,cF)&&!db(e,cb)},KYe=e=>{if(!yv(e)||gv(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},QYe=Uf("Date"),eXe=Uf("File"),tXe=e=>!!(e&&typeof e.uri<"u"),aXe=e=>e&&typeof e.getParts<"u",rXe=Uf("Blob"),nXe=Uf("FileList"),iXe=e=>yv(e)&&hp(e.pipe);function oXe(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const hF=oXe(),pF=typeof hF.FormData<"u"?hF.FormData:void 0,sXe=e=>{if(!e)return!1;if(pF&&e instanceof pF)return!0;const o=fv(e);if(!o||o===Object.prototype||!hp(e.append))return!1;const s=Ok(e);return s==="formdata"||s==="object"&&hp(e.toString)&&e.toString()==="[object FormData]"},lXe=Uf("URLSearchParams"),[cXe,dXe,uXe,hXe]=["ReadableStream","Request","Response","Headers"].map(Uf),pXe=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ub(e,o,{allOwnKeys:s=!1}={}){if(e===null||typeof e>"u")return;let z,Z;if(typeof e!="object"&&(e=[e]),tg(e))for(z=0,Z=e.length;z<Z;z++)o.call(null,e[z],z,e);else{if(gv(e))return;const m=s?Object.getOwnPropertyNames(e):Object.keys(e),g=m.length;let r;for(z=0;z<g;z++)r=m[z],o.call(null,e[r],r,e)}}function fF(e,o){if(gv(e))return null;o=o.toLowerCase();const s=Object.keys(e);let z=s.length,Z;for(;z-- >0;)if(Z=s[z],o===Z.toLowerCase())return Z;return null}const ag=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),mF=e=>!mv(e)&&e!==ag;function Nk(...e){const{caseless:o,skipUndefined:s}=mF(this)&&this||{},z={},Z=(m,g)=>{if(g==="__proto__"||g==="constructor"||g==="prototype")return;const r=o&&typeof g=="string"&&fF(z,g)||g,b=w5(z,r)?z[r]:void 0;S5(b)&&S5(m)?z[r]=Nk(b,m):S5(m)?z[r]=Nk({},m):tg(m)?z[r]=m.slice():(!s||!mv(m))&&(z[r]=m)};for(let m=0,g=e.length;m<g;m++){const r=e[m];if(!r||gv(r)||(ub(r,Z),typeof r!="object"||tg(r)))continue;const b=Object.getOwnPropertySymbols(r);for(let p=0;p<b.length;p++){const a=b[p];CXe.call(r,a)&&Z(r[a],a)}}return z}const fXe=(e,o,s,{allOwnKeys:z}={})=>(ub(o,(Z,m)=>{s&&hp(Z)?Object.defineProperty(e,m,{__proto__:null,value:lF(Z,s),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,m,{__proto__:null,value:Z,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:z}),e),mXe=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),gXe=(e,o,s,z)=>{e.prototype=Object.create(o.prototype,z),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:o.prototype}),s&&Object.assign(e.prototype,s)},yXe=(e,o,s,z)=>{let Z,m,g;const r={};if(o=o||{},e==null)return o;do{for(Z=Object.getOwnPropertyNames(e),m=Z.length;m-- >0;)g=Z[m],(!z||z(g,e,o))&&!r[g]&&(o[g]=e[g],r[g]=!0);e=s!==!1&&fv(e)}while(e&&(!s||s(e,o))&&e!==Object.prototype);return o},vXe=(e,o,s)=>{e=String(e),(s===void 0||s>e.length)&&(s=e.length),s-=o.length;const z=e.indexOf(o,s);return z!==-1&&z===s},bXe=e=>{if(!e)return null;if(tg(e))return e;let o=e.length;if(!uF(o))return null;const s=new Array(o);for(;o-- >0;)s[o]=e[o];return s},xXe=(e=>o=>e&&o instanceof e)(typeof Uint8Array<"u"&&fv(Uint8Array)),_Xe=(e,o)=>{const s=(e&&e[cb]).call(e);let z;for(;(z=s.next())&&!z.done;){const Z=z.value;o.call(e,Z[0],Z[1])}},wXe=(e,o)=>{let s;const z=[];for(;(s=e.exec(o))!==null;)z.push(s);return z},kXe=Uf("HTMLFormElement"),SXe=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(o,s,z){return s.toUpperCase()+z}),{propertyIsEnumerable:CXe}=Object.prototype,TXe=Uf("RegExp"),gF=(e,o)=>{const s=Object.getOwnPropertyDescriptors(e),z={};ub(s,(Z,m)=>{let g;(g=o(Z,m,e))!==!1&&(z[m]=g||Z)}),Object.defineProperties(e,z)},AXe=e=>{gF(e,(o,s)=>{if(hp(e)&&["arguments","caller","callee"].includes(s))return!1;const z=e[s];if(hp(z)){if(o.enumerable=!1,"writable"in o){o.writable=!1;return}o.set||(o.set=()=>{throw Error("Can not rewrite read-only method '"+s+"'")})}})},EXe=(e,o)=>{const s={},z=Z=>{Z.forEach(m=>{s[m]=!0})};return tg(e)?z(e):z(String(e).split(o)),s},MXe=()=>{},IXe=(e,o)=>e!=null&&Number.isFinite(e=+e)?e:o;function PXe(e){return!!(e&&hp(e.append)&&e[cF]==="FormData"&&e[cb])}const LXe=e=>{const o=new WeakSet,s=z=>{if(yv(z)){if(o.has(z))return;if(gv(z))return z;if(!("toJSON"in z)){o.add(z);const Z=tg(z)?[]:{};return ub(z,(m,g)=>{const r=s(m);!mv(r)&&(Z[g]=r)}),o.delete(z),Z}}return z};return s(e)},BXe=Uf("AsyncFunction"),zXe=e=>e&&(yv(e)||hp(e))&&hp(e.then)&&hp(e.catch),yF=((e,o)=>e?setImmediate:o?((s,z)=>(ag.addEventListener("message",({source:Z,data:m})=>{Z===ag&&m===s&&z.length&&z.shift()()},!1),Z=>{z.push(Z),ag.postMessage(s,"*")}))(`axios@${Math.random()}`,[]):s=>setTimeout(s))(typeof setImmediate=="function",hp(ag.postMessage)),DXe=typeof queueMicrotask<"u"?queueMicrotask.bind(ag):typeof process<"u"&&process.nextTick||yF,vF=e=>e!=null&&hp(e[cb]),OXe=e=>e!=null&&db(e,cb)&&vF(e),on={isArray:tg,isArrayBuffer:dF,isBuffer:gv,isFormData:sXe,isArrayBufferView:YYe,isString:XYe,isNumber:uF,isBoolean:$Ye,isObject:yv,isPlainObject:S5,isEmptyObject:KYe,isReadableStream:cXe,isRequest:dXe,isResponse:uXe,isHeaders:hXe,isUndefined:mv,isDate:QYe,isFile:eXe,isReactNativeBlob:tXe,isReactNative:aXe,isBlob:rXe,isRegExp:TXe,isFunction:hp,isStream:iXe,isURLSearchParams:lXe,isTypedArray:xXe,isFileList:nXe,forEach:ub,merge:Nk,extend:fXe,trim:pXe,stripBOM:mXe,inherits:gXe,toFlatObject:yXe,kindOf:Ok,kindOfTest:Uf,endsWith:vXe,toArray:bXe,forEachEntry:_Xe,matchAll:wXe,isHTMLForm:kXe,hasOwnProperty:w5,hasOwnProp:w5,hasOwnInPrototypeChain:db,getSafeProp:JYe,reduceDescriptors:gF,freezeMethods:AXe,toObjectSet:EXe,toCamelCase:SXe,noop:MXe,toFiniteNumber:IXe,findKey:fF,global:ag,isContextDefined:mF,isSpecCompliantForm:PXe,toJSONObject:LXe,isAsyncFn:BXe,isThenable:zXe,setImmediate:yF,asap:DXe,isIterable:vF,isSafeIterable:OXe},NXe=on.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"]),FXe=e=>{const o={};let s,z,Z;return e&&e.split(`
|
|
90
90
|
`).forEach(function(m){Z=m.indexOf(":"),s=m.substring(0,Z).trim().toLowerCase(),z=m.substring(Z+1).trim(),!(!s||o[s]&&NXe[s])&&(s==="set-cookie"?o[s]?o[s].push(z):o[s]=[z]:o[s]=o[s]?o[s]+", "+z:z)}),o};function RXe(e){let o=0,s=e.length;for(;o<s;){const z=e.charCodeAt(o);if(z!==9&&z!==32)break;o+=1}for(;s>o;){const z=e.charCodeAt(s-1);if(z!==9&&z!==32)break;s-=1}return o===0&&s===e.length?e:e.slice(o,s)}const VXe=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),jXe=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function Fk(e,o){return on.isArray(e)?e.map(s=>Fk(s,o)):RXe(String(e).replace(o,""))}const UXe=e=>Fk(e,VXe),GXe=e=>Fk(e,jXe);function bF(e){const o=Object.create(null);return on.forEach(e.toJSON(),(s,z)=>{o[z]=GXe(s)}),o}const xF=Symbol("internals");function hb(e){return e&&String(e).trim().toLowerCase()}function C5(e){return e===!1||e==null?e:on.isArray(e)?e.map(C5):UXe(String(e))}function HXe(e){const o=Object.create(null),s=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let z;for(;z=s.exec(e);)o[z[1]]=z[2];return o}const ZXe=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Rk(e,o,s,z,Z){if(on.isFunction(z))return z.call(this,o,s);if(Z&&(o=s),!!on.isString(o)){if(on.isString(z))return o.indexOf(z)!==-1;if(on.isRegExp(z))return z.test(o)}}function WXe(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(o,s,z)=>s.toUpperCase()+z)}function qXe(e,o){const s=on.toCamelCase(" "+o);["get","set","has"].forEach(z=>{Object.defineProperty(e,z+s,{__proto__:null,value:function(Z,m,g){return this[z].call(this,o,Z,m,g)},configurable:!0})})}let T5=class{constructor(o){o&&this.set(o)}set(o,s,z){const Z=this;function m(r,b,p){const a=hb(b);if(!a)return;const _=on.findKey(Z,a);(!_||Z[_]===void 0||p===!0||p===void 0&&Z[_]!==!1)&&(Z[_||b]=C5(r))}const g=(r,b)=>on.forEach(r,(p,a)=>m(p,a,b));if(on.isPlainObject(o)||o instanceof this.constructor)g(o,s);else if(on.isString(o)&&(o=o.trim())&&!ZXe(o))g(FXe(o),s);else if(on.isObject(o)&&on.isSafeIterable(o)){let r=Object.create(null),b,p;for(const a of o){if(!on.isArray(a))throw new TypeError("Object iterator must return a key-value pair");p=a[0],on.hasOwnProp(r,p)?(b=r[p],r[p]=on.isArray(b)?[...b,a[1]]:[b,a[1]]):r[p]=a[1]}g(r,s)}else o!=null&&m(s,o,z);return this}get(o,s){if(o=hb(o),o){const z=on.findKey(this,o);if(z){const Z=this[z];if(!s)return Z;if(s===!0)return HXe(Z);if(on.isFunction(s))return s.call(this,Z,z);if(on.isRegExp(s))return s.exec(Z);throw new TypeError("parser must be boolean|regexp|function")}}}has(o,s){if(o=hb(o),o){const z=on.findKey(this,o);return!!(z&&this[z]!==void 0&&(!s||Rk(this,this[z],z,s)))}return!1}delete(o,s){const z=this;let Z=!1;function m(g){if(g=hb(g),g){const r=on.findKey(z,g);r&&(!s||Rk(z,z[r],r,s))&&(delete z[r],Z=!0)}}return on.isArray(o)?o.forEach(m):m(o),Z}clear(o){const s=Object.keys(this);let z=s.length,Z=!1;for(;z--;){const m=s[z];(!o||Rk(this,this[m],m,o,!0))&&(delete this[m],Z=!0)}return Z}normalize(o){const s=this,z={};return on.forEach(this,(Z,m)=>{const g=on.findKey(z,m);if(g){s[g]=C5(Z),delete s[m];return}const r=o?WXe(m):String(m).trim();r!==m&&delete s[m],s[r]=C5(Z),z[r]=!0}),this}concat(...o){return this.constructor.concat(this,...o)}toJSON(o){const s=Object.create(null);return on.forEach(this,(z,Z)=>{z!=null&&z!==!1&&(s[Z]=o&&on.isArray(z)?z.join(", "):z)}),s}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([o,s])=>o+": "+s).join(`
|
|
91
91
|
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(o){return o instanceof this?o:new this(o)}static concat(o,...s){const z=new this(o);return s.forEach(Z=>z.set(Z)),z}static accessor(o){const s=(this[xF]=this[xF]={accessors:{}}).accessors,z=this.prototype;function Z(m){const g=hb(m);s[g]||(qXe(z,m),s[g]=!0)}return on.isArray(o)?o.forEach(Z):Z(o),this}};T5.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),on.reduceDescriptors(T5.prototype,({value:e},o)=>{let s=o[0].toUpperCase()+o.slice(1);return{get:()=>e,set(z){this[s]=z}}}),on.freezeMethods(T5);const Lp=T5,JXe="[REDACTED ****]";function YXe(e){if(on.hasOwnProp(e,"toJSON"))return!0;let o=Object.getPrototypeOf(e);for(;o&&o!==Object.prototype;){if(on.hasOwnProp(o,"toJSON"))return!0;o=Object.getPrototypeOf(o)}return!1}function XXe(e,o){const s=new Set(o.map(m=>String(m).toLowerCase())),z=[],Z=m=>{if(m===null||typeof m!="object"||on.isBuffer(m))return m;if(z.indexOf(m)!==-1)return;m instanceof Lp&&(m=m.toJSON()),z.push(m);let g;if(on.isArray(m))g=[],m.forEach((r,b)=>{const p=Z(r);on.isUndefined(p)||(g[b]=p)});else{if(!on.isPlainObject(m)&&YXe(m))return z.pop(),m;g=Object.create(null);for(const[r,b]of Object.entries(m)){const p=s.has(r.toLowerCase())?JXe:Z(b);on.isUndefined(p)||(g[r]=p)}}return z.pop(),g};return Z(e)}let zh=class lW extends Error{static from(o,s,z,Z,m,g){const r=new lW(o.message,s||o.code,z,Z,m);return Object.defineProperty(r,"cause",{__proto__:null,value:o,writable:!0,enumerable:!1,configurable:!0}),r.name=o.name,o.status!=null&&r.status==null&&(r.status=o.status),g&&Object.assign(r,g),r}constructor(o,s,z,Z,m){super(o),Object.defineProperty(this,"message",{__proto__:null,value:o,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,s&&(this.code=s),z&&(this.config=z),Z&&(this.request=Z),m&&(this.response=m,this.status=m.status)}toJSON(){const o=this.config,s=o&&on.hasOwnProp(o,"redact")?o.redact:void 0,z=on.isArray(s)&&s.length>0?XXe(o,s):on.toJSONObject(o);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:z,code:this.code,status:this.status}}};zh.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",zh.ERR_BAD_OPTION="ERR_BAD_OPTION",zh.ECONNABORTED="ECONNABORTED",zh.ETIMEDOUT="ETIMEDOUT",zh.ECONNREFUSED="ECONNREFUSED",zh.ERR_NETWORK="ERR_NETWORK",zh.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",zh.ERR_DEPRECATED="ERR_DEPRECATED",zh.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",zh.ERR_BAD_REQUEST="ERR_BAD_REQUEST",zh.ERR_CANCELED="ERR_CANCELED",zh.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",zh.ERR_INVALID_URL="ERR_INVALID_URL",zh.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";const lo=zh,$Xe=null,_F=100;function Vk(e){return on.isPlainObject(e)||on.isArray(e)}function wF(e){return on.endsWith(e,"[]")?e.slice(0,-2):e}function jk(e,o,s){return e?e.concat(o).map(function(z,Z){return z=wF(z),!s&&Z?"["+z+"]":z}).join(s?".":""):o}function KXe(e){return on.isArray(e)&&!e.some(Vk)}const QXe=on.toFlatObject(on,{},null,function(e){return/^is[A-Z]/.test(e)});function A5(e,o,s){if(!on.isObject(e))throw new TypeError("target must be an object");o=o||new FormData,s=on.toFlatObject(s,{metaTokens:!0,dots:!1,indexes:!1},!1,function(d,l){return!on.isUndefined(l[d])});const z=s.metaTokens,Z=s.visitor||h,m=s.dots,g=s.indexes,r=s.Blob||typeof Blob<"u"&&Blob,b=s.maxDepth===void 0?_F:s.maxDepth,p=r&&on.isSpecCompliantForm(o),a=[];if(!on.isFunction(Z))throw new TypeError("visitor must be a function");function _(d){if(d===null)return"";if(on.isDate(d))return d.toISOString();if(on.isBoolean(d))return d.toString();if(!p&&on.isBlob(d))throw new lo("Blob is not supported. Use a Buffer instead.");if(on.isArrayBuffer(d)||on.isTypedArray(d)){if(p&&typeof r=="function")return new r([d]);if(typeof Buffer<"u")return Buffer.from(d);throw new lo("Blob is not supported. Use a Buffer instead.",lo.ERR_NOT_SUPPORT)}return d}function y(d){if(d>b)throw new lo("Object is too deeply nested ("+d+" levels). Max depth: "+b,lo.ERR_FORM_DATA_DEPTH_EXCEEDED)}function x(d,l){if(b===1/0)return JSON.stringify(d);const u=[];return JSON.stringify(d,function(v,w){if(!on.isObject(w))return w;for(;u.length&&u[u.length-1]!==this;)u.pop();return u.push(w),y(l+u.length-1),w})}function h(d,l,u){let v=d;if(on.isReactNative(o)&&on.isReactNativeBlob(d))return o.append(jk(u,l,m),_(d)),!1;if(d&&!u&&typeof d=="object"){if(on.endsWith(l,"{}"))l=z?l:l.slice(0,-2),d=x(d,1);else if(on.isArray(d)&&KXe(d)||(on.isFileList(d)||on.endsWith(l,"[]"))&&(v=on.toArray(d)))return l=wF(l),v.forEach(function(w,C){!(on.isUndefined(w)||w===null)&&o.append(g===!0?jk([l],C,m):g===null?l:l+"[]",_(w))}),!1}return Vk(d)?!0:(o.append(jk(u,l,m),_(d)),!1)}const n=Object.assign(QXe,{defaultVisitor:h,convertValue:_,isVisitable:Vk});function i(d,l,u=0){if(!on.isUndefined(d)){if(y(u),a.indexOf(d)!==-1)throw new Error("Circular reference detected in "+l.join("."));a.push(d),on.forEach(d,function(v,w){(!(on.isUndefined(v)||v===null)&&Z.call(o,v,on.isString(w)?w.trim():w,l,n))===!0&&i(v,l?l.concat(w):[w],u+1)}),a.pop()}}if(!on.isObject(e))throw new TypeError("data must be an object");return i(e),o}function kF(e){const o={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(s){return o[s]})}function Uk(e,o){this._pairs=[],e&&A5(e,this,o)}const SF=Uk.prototype;SF.append=function(e,o){this._pairs.push([e,o])},SF.toString=function(e){const o=e?s=>e.call(this,s,kF):kF;return this._pairs.map(function(s){return o(s[0])+"="+o(s[1])},"").join("&")};function e$e(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function CF(e,o,s){if(!o)return e;e=e||"";const z=on.isFunction(s)?{serialize:s}:s,Z=on.getSafeProp(z,"encode")||e$e,m=on.getSafeProp(z,"serialize");let g;if(m?g=m(o,z):g=on.isURLSearchParams(o)?o.toString():new Uk(o,z).toString(Z),g){const r=e.indexOf("#");r!==-1&&(e=e.slice(0,r)),e+=(e.indexOf("?")===-1?"?":"&")+g}return e}const TF=class{constructor(){this.handlers=[]}use(o,s,z){return this.handlers.push({fulfilled:o,rejected:s,synchronous:z?z.synchronous:!1,runWhen:z?z.runWhen:null}),this.handlers.length-1}eject(o){this.handlers[o]&&(this.handlers[o]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(o){on.forEach(this.handlers,function(s){s!==null&&o(s)})}},Gk={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},t$e=typeof URLSearchParams<"u"?URLSearchParams:Uk,a$e=typeof FormData<"u"?FormData:null,r$e=typeof Blob<"u"?Blob:null,n$e={isBrowser:!0,classes:{URLSearchParams:t$e,FormData:a$e,Blob:r$e},protocols:["http","https","file","blob","url","data"]},Hk=typeof window<"u"&&typeof document<"u",Zk=typeof navigator=="object"&&navigator||void 0,i$e=Hk&&(!Zk||["ReactNative","NativeScript","NS"].indexOf(Zk.product)<0),o$e=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),s$e=Hk&&window.location.href||"http://localhost",l$e=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Hk,hasStandardBrowserEnv:i$e,hasStandardBrowserWebWorkerEnv:o$e,navigator:Zk,origin:s$e},Symbol.toStringTag,{value:"Module"})),Zu={...l$e,...n$e};function c$e(e,o){return A5(e,new Zu.classes.URLSearchParams,{visitor:function(s,z,Z,m){return Zu.isNode&&on.isBuffer(s)?(this.append(z,s.toString("base64")),!1):m.defaultVisitor.apply(this,arguments)},...o})}const AF=_F;function EF(e){if(e>AF)throw new lo("FormData field is too deeply nested ("+e+" levels). Max depth: "+AF,lo.ERR_FORM_DATA_DEPTH_EXCEEDED)}function d$e(e){const o=[],s=/\w+|\[(\w*)]/g;let z;for(;(z=s.exec(e))!==null;)EF(o.length),o.push(z[0]==="[]"?"":z[1]||z[0]);return o}function u$e(e){const o={},s=Object.keys(e);let z;const Z=s.length;let m;for(z=0;z<Z;z++)m=s[z],o[m]=e[m];return o}function MF(e){function o(s,z,Z,m){EF(m);let g=s[m++];if(g==="__proto__")return!0;const r=Number.isFinite(+g),b=m>=s.length;return g=!g&&on.isArray(Z)?Z.length:g,b?(on.hasOwnProp(Z,g)?Z[g]=on.isArray(Z[g])?Z[g].concat(z):[Z[g],z]:Z[g]=z,!r):((!on.hasOwnProp(Z,g)||!on.isObject(Z[g]))&&(Z[g]=[]),o(s,z,Z[g],m)&&on.isArray(Z[g])&&(Z[g]=u$e(Z[g])),!r)}if(on.isFormData(e)&&on.isFunction(e.entries)){const s={};return on.forEachEntry(e,(z,Z)=>{o(d$e(z),Z,s,0)}),s}return null}const vv=(e,o)=>e!=null&&on.hasOwnProp(e,o)?e[o]:void 0;function h$e(e,o,s){if(on.isString(e))try{return(o||JSON.parse)(e),on.trim(e)}catch(z){if(z.name!=="SyntaxError")throw z}return(s||JSON.stringify)(e)}const Wk={transitional:Gk,adapter:["xhr","http","fetch"],transformRequest:[function(e,o){const s=o.getContentType()||"",z=s.indexOf("application/json")>-1,Z=on.isObject(e);if(Z&&on.isHTMLForm(e)&&(e=new FormData(e)),on.isFormData(e))return z?JSON.stringify(MF(e)):e;if(on.isArrayBuffer(e)||on.isBuffer(e)||on.isStream(e)||on.isFile(e)||on.isBlob(e)||on.isReadableStream(e))return e;if(on.isArrayBufferView(e))return e.buffer;if(on.isURLSearchParams(e))return o.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let m;if(Z){const g=vv(this,"formSerializer");if(s.indexOf("application/x-www-form-urlencoded")>-1)return c$e(e,g).toString();if((m=on.isFileList(e))||s.indexOf("multipart/form-data")>-1){const r=vv(this,"env"),b=r&&r.FormData;return A5(m?{"files[]":e}:e,b&&new b,g)}}return Z||z?(o.setContentType("application/json",!1),h$e(e)):e}],transformResponse:[function(e){const o=vv(this,"transitional")||Wk.transitional,s=o&&o.forcedJSONParsing,z=vv(this,"responseType"),Z=z==="json";if(on.isResponse(e)||on.isReadableStream(e))return e;if(e&&on.isString(e)&&(s&&!z||Z)){const m=!(o&&o.silentJSONParsing)&&Z;try{return JSON.parse(e,vv(this,"parseReviver"))}catch(g){if(m)throw g.name==="SyntaxError"?lo.from(g,lo.ERR_BAD_RESPONSE,this,null,vv(this,"response")):g}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Zu.classes.FormData,Blob:Zu.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};on.forEach(["delete","get","head","post","put","patch","query"],e=>{Wk.headers[e]={}});const qk=Wk;function Jk(e,o){const s=this||qk,z=o||s,Z=Lp.from(z.headers);let m=z.data;return on.forEach(e,function(g){m=g.call(s,m,Z.normalize(),o?o.status:void 0)}),Z.normalize(),m}function IF(e){return!!(e&&e.__CANCEL__)}const pb=class extends lo{constructor(o,s,z){super(o??"canceled",lo.ERR_CANCELED,s,z),this.name="CanceledError",this.__CANCEL__=!0}};function PF(e,o,s){const z=s.config.validateStatus;!s.status||!z||z(s.status)?e(s):o(new lo("Request failed with status code "+s.status,s.status>=400&&s.status<500?lo.ERR_BAD_REQUEST:lo.ERR_BAD_RESPONSE,s.config,s.request,s))}function p$e(e){const o=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return o&&o[1]||""}function f$e(e,o){e=e||10;const s=new Array(e),z=new Array(e);let Z=0,m=0,g;return o=o!==void 0?o:1e3,function(r){const b=Date.now(),p=z[m];g||(g=b),s[Z]=r,z[Z]=b;let a=m,_=0;for(;a!==Z;)_+=s[a++],a=a%e;if(Z=(Z+1)%e,Z===m&&(m=(m+1)%e),b-g<o)return;const y=p&&b-p;return y?Math.round(_*1e3/y):void 0}}function m$e(e,o){let s=0,z=1e3/o,Z,m;const g=(r,b=Date.now())=>{s=b,Z=null,m&&(clearTimeout(m),m=null),e(...r)};return[(...r)=>{const b=Date.now(),p=b-s;p>=z?g(r,b):(Z=r,m||(m=setTimeout(()=>{m=null,g(Z)},z-p)))},()=>Z&&g(Z)]}const E5=(e,o,s=3)=>{let z=0;const Z=f$e(50,250);return m$e(m=>{if(!m||typeof m.loaded!="number")return;const g=m.loaded,r=m.lengthComputable?m.total:void 0,b=r!=null?Math.min(g,r):g,p=Math.max(0,b-z),a=Z(p);z=Math.max(z,b);const _={loaded:b,total:r,progress:r?b/r:void 0,bytes:p,rate:a||void 0,estimated:a&&r?(r-b)/a:void 0,event:m,lengthComputable:r!=null,[o?"download":"upload"]:!0};e(_)},s)},LF=(e,o)=>{const s=e!=null;return[z=>o[0]({lengthComputable:s,total:e,loaded:z}),o[1]]},BF=e=>(...o)=>on.asap(()=>e(...o)),g$e=Zu.hasStandardBrowserEnv?((e,o)=>s=>(s=new URL(s,Zu.origin),e.protocol===s.protocol&&e.host===s.host&&(o||e.port===s.port)))(new URL(Zu.origin),Zu.navigator&&/(msie|trident)/i.test(Zu.navigator.userAgent)):()=>!0,y$e=Zu.hasStandardBrowserEnv?{write(e,o,s,z,Z,m,g){if(typeof document>"u")return;const r=[`${e}=${encodeURIComponent(o)}`];on.isNumber(s)&&r.push(`expires=${new Date(s).toUTCString()}`),on.isString(z)&&r.push(`path=${z}`),on.isString(Z)&&r.push(`domain=${Z}`),m===!0&&r.push("secure"),on.isString(g)&&r.push(`SameSite=${g}`),document.cookie=r.join("; ")},read(e){if(typeof document>"u")return null;const o=document.cookie.split(";");for(let s=0;s<o.length;s++){const z=o[s].replace(/^\s+/,""),Z=z.indexOf("=");if(Z!==-1&&z.slice(0,Z)===e)try{return decodeURIComponent(z.slice(Z+1))}catch{return z.slice(Z+1)}}return null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function v$e(e){return typeof e!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function b$e(e,o){return o?e.replace(/\/?\/$/,"")+"/"+o.replace(/^\/+/,""):e}const x$e=/^https?:(?!\/\/)/i,_$e=/[\t\n\r]/g;function w$e(e){let o=0;for(;o<e.length&&e.charCodeAt(o)<=32;)o++;return e.slice(o)}function k$e(e){return w$e(e).replace(_$e,"")}function zF(e,o){if(typeof e=="string"&&x$e.test(k$e(e)))throw new lo('Invalid URL: missing "//" after protocol',lo.ERR_INVALID_URL,o)}function DF(e,o,s,z){zF(o,z);let Z=!v$e(o);return e&&(Z||s===!1)?(zF(e,z),b$e(e,o)):o}const OF=e=>e instanceof Lp?{...e}:e;function rg(e,o){e=e||{},o=o||{};const s=Object.create(null);Object.defineProperty(s,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});function z(a,_,y,x){return on.isPlainObject(a)&&on.isPlainObject(_)?on.merge.call({caseless:x},a,_):on.isPlainObject(_)?on.merge({},_):on.isArray(_)?_.slice():_}function Z(a,_,y,x){if(on.isUndefined(_)){if(!on.isUndefined(a))return z(void 0,a,y,x)}else return z(a,_,y,x)}function m(a,_){if(!on.isUndefined(_))return z(void 0,_)}function g(a,_){if(on.isUndefined(_)){if(!on.isUndefined(a))return z(void 0,a)}else return z(void 0,_)}function r(a){const _=on.hasOwnProp(o,"transitional")?o.transitional:void 0;if(!on.isUndefined(_))if(on.isPlainObject(_)){if(on.hasOwnProp(_,a))return _[a]}else return;const y=on.hasOwnProp(e,"transitional")?e.transitional:void 0;if(on.isPlainObject(y)&&on.hasOwnProp(y,a))return y[a]}function b(a,_,y){if(on.hasOwnProp(o,y))return z(a,_);if(on.hasOwnProp(e,y))return z(void 0,a)}const p={url:m,method:m,data:m,baseURL:g,transformRequest:g,transformResponse:g,paramsSerializer:g,timeout:g,timeoutMessage:g,withCredentials:g,withXSRFToken:g,adapter:g,responseType:g,xsrfCookieName:g,xsrfHeaderName:g,onUploadProgress:g,onDownloadProgress:g,decompress:g,maxContentLength:g,maxBodyLength:g,beforeRedirect:g,transport:g,httpAgent:g,httpsAgent:g,cancelToken:g,socketPath:g,allowedSocketPaths:g,responseEncoding:g,validateStatus:b,headers:(a,_,y)=>Z(OF(a),OF(_),y,!0)};return on.forEach(Object.keys({...e,...o}),function(a){if(a==="__proto__"||a==="constructor"||a==="prototype")return;const _=on.hasOwnProp(p,a)?p[a]:Z,y=on.hasOwnProp(e,a)?e[a]:void 0,x=on.hasOwnProp(o,a)?o[a]:void 0,h=_(y,x,a);on.isUndefined(h)&&_!==b||(s[a]=h)}),on.hasOwnProp(o,"validateStatus")&&on.isUndefined(o.validateStatus)&&r("validateStatusUndefinedResolves")===!1&&(on.hasOwnProp(e,"validateStatus")?s.validateStatus=z(void 0,e.validateStatus):delete s.validateStatus),s}const S$e=["content-type","content-length"];function C$e(e,o,s){if(s!=="content-only"){e.set(o);return}Object.entries(o||{}).forEach(([z,Z])=>{S$e.includes(z.toLowerCase())&&e.set(z,Z)})}const T$e=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(o,s)=>String.fromCharCode(parseInt(s,16)));function NF(e){const o=rg({},e),s=y=>on.hasOwnProp(o,y)?o[y]:void 0,z=s("data");let Z=s("withXSRFToken");const m=s("xsrfHeaderName"),g=s("xsrfCookieName");let r=s("headers");const b=s("auth"),p=s("baseURL"),a=s("allowAbsoluteUrls"),_=s("url");if(o.headers=r=Lp.from(r),o.url=CF(DF(p,_,a,o),s("params"),s("paramsSerializer")),b){const y=on.getSafeProp(b,"username")||"",x=on.getSafeProp(b,"password")||"";try{r.set("Authorization","Basic "+btoa(y+":"+(x?T$e(x):"")))}catch(h){throw lo.from(h,lo.ERR_BAD_OPTION_VALUE,e)}}if(on.isFormData(z)&&(Zu.hasStandardBrowserEnv||Zu.hasStandardBrowserWebWorkerEnv||on.isReactNative(z)?r.setContentType(void 0):on.isFunction(z.getHeaders)&&C$e(r,z.getHeaders(),s("formDataHeaderPolicy"))),Zu.hasStandardBrowserEnv&&(on.isFunction(Z)&&(Z=Z(o)),Z===!0||Z==null&&g$e(o.url))){const y=m&&g&&y$e.read(g);y&&r.set(m,y)}return o}const A$e=typeof XMLHttpRequest<"u",E$e=A$e&&function(e){return new Promise(function(o,s){const z=NF(e);let Z=z.data;const m=Lp.from(z.headers).normalize();let{responseType:g,onUploadProgress:r,onDownloadProgress:b}=z,p,a,_,y,x;function h(){y&&y(),x&&x(),z.cancelToken&&z.cancelToken.unsubscribe(p),z.signal&&z.signal.removeEventListener("abort",p)}let n=new XMLHttpRequest;n.open(z.method.toUpperCase(),z.url,!0),n.timeout=z.timeout;function i(){if(!n)return;const l=Lp.from("getAllResponseHeaders"in n&&n.getAllResponseHeaders()),u={data:!g||g==="text"||g==="json"?n.responseText:n.response,status:n.status,statusText:n.statusText,headers:l,config:e,request:n};PF(function(v){o(v),h()},function(v){s(v),h()},u),n=null}"onloadend"in n?n.onloadend=i:n.onreadystatechange=function(){!n||n.readyState!==4||n.status===0&&!(n.responseURL&&n.responseURL.startsWith("file:"))||setTimeout(i)},n.onabort=function(){n&&(s(new lo("Request aborted",lo.ECONNABORTED,e,n)),h(),n=null)},n.onerror=function(l){const u=l&&l.message?l.message:"Network Error",v=new lo(u,lo.ERR_NETWORK,e,n);v.event=l||null,s(v),h(),n=null},n.ontimeout=function(){let l=z.timeout?"timeout of "+z.timeout+"ms exceeded":"timeout exceeded";const u=z.transitional||Gk;z.timeoutErrorMessage&&(l=z.timeoutErrorMessage),s(new lo(l,u.clarifyTimeoutError?lo.ETIMEDOUT:lo.ECONNABORTED,e,n)),h(),n=null},Z===void 0&&m.setContentType(null),"setRequestHeader"in n&&on.forEach(bF(m),function(l,u){n.setRequestHeader(u,l)}),on.isUndefined(z.withCredentials)||(n.withCredentials=!!z.withCredentials),g&&g!=="json"&&(n.responseType=z.responseType),b&&([_,x]=E5(b,!0),n.addEventListener("progress",_)),r&&n.upload&&([a,y]=E5(r),n.upload.addEventListener("progress",a),n.upload.addEventListener("loadend",y)),(z.cancelToken||z.signal)&&(p=l=>{n&&(s(!l||l.type?new pb(null,e,n):l),n.abort(),h(),n=null)},z.cancelToken&&z.cancelToken.subscribe(p),z.signal&&(z.signal.aborted?p():z.signal.addEventListener("abort",p)));const d=p$e(z.url);if(d&&!Zu.protocols.includes(d)){s(new lo("Unsupported protocol "+d+":",lo.ERR_BAD_REQUEST,e)),h();return}n.send(Z||null)})},M$e=(e,o)=>{if(e=e?e.filter(Boolean):[],!o&&!e.length)return;const s=new AbortController;let z=!1;const Z=function(b){if(!z){z=!0,g();const p=b instanceof Error?b:this.reason;s.abort(p instanceof lo?p:new pb(p instanceof Error?p.message:p))}};let m=o&&setTimeout(()=>{m=null,Z(new lo(`timeout of ${o}ms exceeded`,lo.ETIMEDOUT))},o);const g=()=>{e&&(m&&clearTimeout(m),m=null,e.forEach(b=>{b.unsubscribe?b.unsubscribe(Z):b.removeEventListener("abort",Z)}),e=null)};e.forEach(b=>b.addEventListener("abort",Z,{once:!0}));const{signal:r}=s;return r.unsubscribe=()=>on.asap(g),r},I$e=M$e,P$e=function*(e,o){let s=e.byteLength;if(!o||s<o){yield e;return}let z=0,Z;for(;z<s;)Z=z+o,yield e.slice(z,Z),z=Z},L$e=async function*(e,o){for await(const s of B$e(e))yield*P$e(s,o)},B$e=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const o=e.getReader();try{for(;;){const{done:s,value:z}=await o.read();if(s)break;yield z}}finally{await o.cancel()}},FF=(e,o,s,z)=>{const Z=L$e(e,o);let m=0,g,r=b=>{g||(g=!0,z&&z(b))};return new ReadableStream({async pull(b){try{const{done:p,value:a}=await Z.next();if(p){r(),b.close();return}let _=a.byteLength;if(s){let y=m+=_;s(y)}b.enqueue(new Uint8Array(a))}catch(p){throw r(p),p}},cancel(b){return r(b),Z.return()}},{highWaterMark:2})},M5=e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102,z$e=(e,o,s)=>o+2<s&&M5(e.charCodeAt(o+1))&&M5(e.charCodeAt(o+2));function D$e(e){if(!e||typeof e!="string"||!e.startsWith("data:"))return 0;const o=e.indexOf(",");if(o<0)return 0;const s=e.slice(5,o),z=e.slice(o+1);if(/;base64/i.test(s)){let m=z.length;const g=z.length;for(let _=0;_<g;_++)if(z.charCodeAt(_)===37&&_+2<g){const y=z.charCodeAt(_+1),x=z.charCodeAt(_+2);M5(y)&&M5(x)&&(m-=2,_+=2)}let r=0,b=g-1;const p=_=>_>=2&&z.charCodeAt(_-2)===37&&z.charCodeAt(_-1)===51&&(z.charCodeAt(_)===68||z.charCodeAt(_)===100);b>=0&&(z.charCodeAt(b)===61?(r++,b--):p(b)&&(r++,b-=3)),r===1&&b>=0&&(z.charCodeAt(b)===61||p(b))&&r++;const a=Math.floor(m/4)*3-(r||0);return a>0?a:0}let Z=0;for(let m=0,g=z.length;m<g;m++){const r=z.charCodeAt(m);if(r===37&&z$e(z,m,g))Z+=1,m+=2;else if(r<128)Z+=1;else if(r<2048)Z+=2;else if(r>=55296&&r<=56319&&m+1<g){const b=z.charCodeAt(m+1);b>=56320&&b<=57343?(Z+=4,m++):Z+=3}else Z+=3}return Z}const Yk="1.18.1",RF=64*1024,{isFunction:I5}=on,O$e=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(o,s)=>String.fromCharCode(parseInt(s,16))),VF=e=>{if(!on.isString(e))return e;try{return decodeURIComponent(e)}catch{return e}},jF=(e,...o)=>{try{return!!e(...o)}catch{return!1}},N$e=e=>{const o=e.indexOf("://");let s=e;return o!==-1&&(s=s.slice(o+3)),s.includes("@")||s.includes(":")},F$e=e=>{const o=on.global!==void 0&&on.global!==null?on.global:globalThis,{ReadableStream:s,TextEncoder:z}=o;e=on.merge.call({skipUndefined:!0},{Request:o.Request,Response:o.Response},e);const{fetch:Z,Request:m,Response:g}=e,r=Z?I5(Z):typeof fetch=="function",b=I5(m),p=I5(g);if(!r)return!1;const a=r&&I5(s),_=r&&(typeof z=="function"?(d=>l=>d.encode(l))(new z):async d=>new Uint8Array(await new m(d).arrayBuffer())),y=b&&a&&jF(()=>{let d=!1;const l=new m(Zu.origin,{body:new s,method:"POST",get duplex(){return d=!0,"half"}}),u=l.headers.has("Content-Type");return l.body!=null&&l.body.cancel(),d&&!u}),x=p&&a&&jF(()=>on.isReadableStream(new g("").body)),h={stream:x&&(d=>d.body)};r&&["text","arrayBuffer","blob","formData","stream"].forEach(d=>{!h[d]&&(h[d]=(l,u)=>{let v=l&&l[d];if(v)return v.call(l);throw new lo(`Response type '${d}' is not supported`,lo.ERR_NOT_SUPPORT,u)})});const n=async d=>{if(d==null)return 0;if(on.isBlob(d))return d.size;if(on.isSpecCompliantForm(d))return(await new m(Zu.origin,{method:"POST",body:d}).arrayBuffer()).byteLength;if(on.isArrayBufferView(d)||on.isArrayBuffer(d))return d.byteLength;if(on.isURLSearchParams(d)&&(d=d+""),on.isString(d))return(await _(d)).byteLength},i=async(d,l)=>on.toFiniteNumber(d.getContentLength())??n(l);return async d=>{let{url:l,method:u,data:v,signal:w,cancelToken:C,timeout:E,onDownloadProgress:A,onUploadProgress:P,responseType:L,headers:T,withCredentials:I="same-origin",fetchOptions:M,maxContentLength:S,maxBodyLength:B}=NF(d);const k=on.isNumber(S)&&S>-1,D=on.isNumber(B)&&B>-1,N=Q=>on.hasOwnProp(d,Q)?d[Q]:void 0;let j=Z||fetch;L=L?(L+"").toLowerCase():"text";let U=I$e([w,C&&C.toAbortSignal()],E),H=null;const G=U&&U.unsubscribe&&(()=>{U.unsubscribe()});let $,ne=null;const q=()=>new lo("Request body larger than maxBodyLength limit",lo.ERR_BAD_REQUEST,d,H);try{let Q;const ee=N("auth");if(ee){const ie=on.getSafeProp(ee,"username")||"",me=on.getSafeProp(ee,"password")||"";Q={username:ie,password:me}}if(N$e(l)){const ie=new URL(l,Zu.origin);if(!Q&&(ie.username||ie.password)){const me=VF(ie.username),ye=VF(ie.password);Q={username:me,password:ye}}(ie.username||ie.password)&&(ie.username="",ie.password="",l=ie.href)}if(Q&&(T.delete("authorization"),T.set("Authorization","Basic "+btoa(O$e((Q.username||"")+":"+(Q.password||""))))),k&&typeof l=="string"&&l.startsWith("data:")&&D$e(l)>S)throw new lo("maxContentLength size of "+S+" exceeded",lo.ERR_BAD_RESPONSE,d,H);if(D&&u!=="get"&&u!=="head"){const ie=await n(v);if(typeof ie=="number"&&isFinite(ie)&&($=ie,ie>B))throw q()}const X=D&&(on.isReadableStream(v)||on.isStream(v)),K=(ie,me,ye)=>FF(ie,RF,ve=>{if(D&&ve>B)throw ne=q();me&&me(ve)},ye);if(y&&u!=="get"&&u!=="head"&&(P||X)){if($=$??await i(T,v),$!==0||X){let ie=new m(l,{method:"POST",body:v,duplex:"half"}),me;if(on.isFormData(v)&&(me=ie.headers.get("content-type"))&&T.setContentType(me),ie.body){const[ye,ve]=P&&LF($,E5(BF(P)))||[];v=K(ie.body,ye,ve)}}}else if(X&&!b&&a&&u!=="get"&&u!=="head")v=K(v);else if(X&&b&&!y&&u!=="get"&&u!=="head")throw new lo("Stream request bodies are not supported by the current fetch implementation",lo.ERR_NOT_SUPPORT,d,H);on.isString(I)||(I=I?"include":"omit");const ce=b&&"credentials"in m.prototype;if(on.isFormData(v)){const ie=T.getContentType();ie&&/^multipart\/form-data/i.test(ie)&&!/boundary=/i.test(ie)&&T.delete("content-type")}T.set("User-Agent","axios/"+Yk,!1);const ue={...M,signal:U,method:u.toUpperCase(),headers:bF(T.normalize()),body:v,duplex:"half",credentials:ce?I:void 0};H=b&&new m(l,ue);let he=await(b?j(H,M):j(l,ue));const pe=Lp.from(he.headers);if(k){const ie=on.toFiniteNumber(pe.getContentLength());if(ie!=null&&ie>S)throw new lo("maxContentLength size of "+S+" exceeded",lo.ERR_BAD_RESPONSE,d,H)}const re=x&&(L==="stream"||L==="response");if(x&&he.body&&(A||k||re&&G)){const ie={};["status","statusText","headers"].forEach(Te=>{ie[Te]=he[Te]});const me=on.toFiniteNumber(pe.getContentLength()),[ye,ve]=A&&LF(me,E5(BF(A),!0))||[];let we=0;const Se=Te=>{if(k&&(we=Te,we>S))throw new lo("maxContentLength size of "+S+" exceeded",lo.ERR_BAD_RESPONSE,d,H);ye&&ye(Te)};he=new g(FF(he.body,RF,Se,()=>{ve&&ve(),G&&G()}),ie)}L=L||"text";let le=await h[on.findKey(h,L)||"text"](he,d);if(k&&!x&&!re){let ie;if(le!=null&&(typeof le.byteLength=="number"?ie=le.byteLength:typeof le.size=="number"?ie=le.size:typeof le=="string"&&(ie=typeof z=="function"?new z().encode(le).byteLength:le.length)),typeof ie=="number"&&ie>S)throw new lo("maxContentLength size of "+S+" exceeded",lo.ERR_BAD_RESPONSE,d,H)}return!re&&G&&G(),await new Promise((ie,me)=>{PF(ie,me,{data:le,headers:Lp.from(he.headers),status:he.status,statusText:he.statusText,config:d,request:H})})}catch(Q){if(G&&G(),U&&U.aborted&&U.reason instanceof lo){const ee=U.reason;throw ee.config=d,H&&(ee.request=H),Q!==ee&&Object.defineProperty(ee,"cause",{__proto__:null,value:Q,writable:!0,enumerable:!1,configurable:!0}),ee}if(ne)throw H&&!ne.request&&(ne.request=H),ne;if(Q instanceof lo)throw H&&!Q.request&&(Q.request=H),Q;if(Q&&Q.name==="TypeError"&&/Load failed|fetch/i.test(Q.message)){const ee=new lo("Network Error",lo.ERR_NETWORK,d,H,Q&&Q.response);throw Object.defineProperty(ee,"cause",{__proto__:null,value:Q.cause||Q,writable:!0,enumerable:!1,configurable:!0}),ee}throw lo.from(Q,Q&&Q.code,d,H,Q&&Q.response)}}},R$e=new Map,UF=e=>{let o=e&&e.env||{};const{fetch:s,Request:z,Response:Z}=o,m=[z,Z,s];let g=m.length,r=g,b,p,a=R$e;for(;r--;)b=m[r],p=a.get(b),p===void 0&&a.set(b,p=r?new Map:F$e(o)),a=p;return p};UF();const Xk={http:$Xe,xhr:E$e,fetch:{get:UF}};on.forEach(Xk,(e,o)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:o})}catch{}Object.defineProperty(e,"adapterName",{__proto__:null,value:o})}});const GF=e=>`- ${e}`,V$e=e=>on.isFunction(e)||e===null||e===!1;function j$e(e,o){e=on.isArray(e)?e:[e];const{length:s}=e;let z,Z;const m={};for(let g=0;g<s;g++){z=e[g];let r;if(Z=z,!V$e(z)&&(Z=Xk[(r=String(z)).toLowerCase()],Z===void 0))throw new lo(`Unknown adapter '${r}'`);if(Z&&(on.isFunction(Z)||(Z=Z.get(o))))break;m[r||"#"+g]=Z}if(!Z){const g=Object.entries(m).map(([b,p])=>`adapter ${b} `+(p===!1?"is not supported by the environment":"is not available in the build"));let r=s?g.length>1?`since :
|
|
92
92
|
`+g.map(GF).join(`
|