@golstats/gsc-game-data 1.0.237 → 1.0.239
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-d48a19d8-5ac23e60.js → FilterConditions-d48a19d8-2dc34aff.js} +1 -1
- package/dist/{FilterConditions-d48a19d8-BaOW8wbz-1ba9ab21.js → FilterConditions-d48a19d8-BaOW8wbz-0407ccfb.js} +1 -1
- package/dist/{FilterField-f0b75cf7-8a9843b4.js → FilterField-f0b75cf7-8cd8f271.js} +1 -1
- package/dist/{FilterField-f0b75cf7-Dt2ZN6_r-2192f42e.js → FilterField-f0b75cf7-Dt2ZN6_r-590945ae.js} +1 -1
- package/dist/{FilterSubcategories-0a921721-9cc1e6a9.js → FilterSubcategories-0a921721-45607e1b.js} +1 -1
- package/dist/{FilterSubcategories-0a921721-Da8PVP1K-a3a4f4b8.js → FilterSubcategories-0a921721-Da8PVP1K-b14afe18.js} +1 -1
- package/dist/gsc-game-data.js +1 -1
- package/dist/gsc-game-data.umd.cjs +1 -1
- package/dist/{index-d0ed6a36.js → index-93cb7d8b.js} +13 -13
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -121,7 +121,7 @@
|
|
|
121
121
|
* Vue 3 Carousel 0.3.1
|
|
122
122
|
* (c) 2023
|
|
123
123
|
* @license MIT
|
|
124
|
-
*/const Kc={itemsToShow:1,itemsToScroll:1,modelValue:0,transition:300,autoplay:0,snapAlign:"center",wrapAround:!1,throttle:16,pauseAutoplayOnHover:!1,mouseDrag:!0,touchDrag:!0,dir:"ltr",breakpoints:void 0,i18n:{ariaNextSlide:"Navigate to next slide",ariaPreviousSlide:"Navigate to previous slide",ariaNavigateToSlide:"Navigate to slide {slideNumber}",ariaGallery:"Gallery",itemXofY:"Item {currentSlide} of {slidesCount}",iconArrowUp:"Arrow pointing upwards",iconArrowDown:"Arrow pointing downwards",iconArrowRight:"Arrow pointing to the right",iconArrowLeft:"Arrow pointing to the left"}},GH={itemsToShow:{default:Kc.itemsToShow,type:Number},itemsToScroll:{default:Kc.itemsToScroll,type:Number},wrapAround:{default:Kc.wrapAround,type:Boolean},throttle:{default:Kc.throttle,type:Number},snapAlign:{default:Kc.snapAlign,validator(e){return["start","end","center","center-even","center-odd"].includes(e)}},transition:{default:Kc.transition,type:Number},breakpoints:{default:Kc.breakpoints,type:Object},autoplay:{default:Kc.autoplay,type:Number},pauseAutoplayOnHover:{default:Kc.pauseAutoplayOnHover,type:Boolean},modelValue:{default:void 0,type:Number},mouseDrag:{default:Kc.mouseDrag,type:Boolean},touchDrag:{default:Kc.touchDrag,type:Boolean},dir:{default:Kc.dir,validator(e){return["rtl","ltr"].includes(e)}},i18n:{default:Kc.i18n,type:Object},settings:{default(){return{}},type:Object}};function axt({config:e,slidesCount:n}){const{snapAlign:r,wrapAround:I,itemsToShow:F=1}=e;if(I)return Math.max(n-1,0);let h;switch(r){case"start":h=n-F;break;case"end":h=n-1;break;case"center":case"center-odd":h=n-Math.ceil((F-.5)/2);break;case"center-even":h=n-Math.ceil(F/2);break;default:h=0;break}return Math.max(h,0)}function nxt({config:e,slidesCount:n}){const{wrapAround:r,snapAlign:I,itemsToShow:F=1}=e;let h=0;if(r||F>n)return h;switch(I){case"start":h=0;break;case"end":h=F-1;break;case"center":case"center-odd":h=Math.floor((F-1)/2);break;case"center-even":h=Math.floor((F-2)/2);break;default:h=0;break}return h}function US({val:e,max:n,min:r}){return n<r?e:Math.min(Math.max(e,r),n)}function rxt({config:e,currentSlide:n,slidesCount:r}){const{snapAlign:I,wrapAround:F,itemsToShow:h=1}=e;let m=n;switch(I){case"center":case"center-odd":m-=(h-1)/2;break;case"center-even":m-=(h-2)/2;break;case"end":m-=h-1;break}return F?m:US({val:m,max:r-h,min:0})}function HH(e){return e?e.reduce((n,r)=>{var I;return r.type===t.Fragment?[...n,...HH(r.children)]:((I=r.type)===null||I===void 0?void 0:I.name)==="CarouselSlide"?[...n,r]:n},[]):[]}function GS({val:e,max:n,min:r=0}){return e>n?GS({val:e-(n+1),max:n,min:r}):e<r?GS({val:e+(n+1),max:n,min:r}):e}function ixt(e,n){let r;return n?function(...I){const F=this;r||(e.apply(F,I),r=!0,setTimeout(()=>r=!1,n))}:e}function oxt(e,n){let r;return function(...I){r&&clearTimeout(r),r=setTimeout(()=>{e(...I),r=null},n)}}function sxt(e="",n={}){return Object.entries(n).reduce((r,[I,F])=>r.replace(`{${I}}`,String(F)),e)}var lxt=t.defineComponent({name:"ARIA",setup(){const e=t.inject("config",t.reactive(Object.assign({},Kc))),n=t.inject("currentSlide",t.ref(0)),r=t.inject("slidesCount",t.ref(0));return()=>t.h("div",{class:["carousel__liveregion","carousel__sr-only"],"aria-live":"polite","aria-atomic":"true"},sxt(e.i18n.itemXofY,{currentSlide:n.value+1,slidesCount:r.value}))}}),cxt=t.defineComponent({name:"Carousel",props:GH,setup(e,{slots:n,emit:r,expose:I}){var F;const h=t.ref(null),m=t.ref([]),a=t.ref(0),y=t.ref(0),g=t.reactive(Object.assign({},Kc));let o=Object.assign({},Kc),_;const b=t.ref((F=e.modelValue)!==null&&F!==void 0?F:0),c=t.ref(0),s=t.ref(0),i=t.ref(0),l=t.ref(0);let d,u;t.provide("config",g),t.provide("slidesCount",y),t.provide("currentSlide",b),t.provide("maxSlide",i),t.provide("minSlide",l),t.provide("slideWidth",a);function p(){_=Object.assign({},e.breakpoints),o=Object.assign(Object.assign(Object.assign({},o),e),{i18n:Object.assign(Object.assign({},o.i18n),e.i18n),breakpoints:void 0}),v(o)}function f(){if(!_||!Object.keys(_).length)return;const te=Object.keys(_).map(oe=>Number(oe)).sort((oe,ce)=>+ce-+oe);let ee=Object.assign({},o);te.some(oe=>{const ce=window.matchMedia(`(min-width: ${oe}px)`).matches;return ce&&(ee=Object.assign(Object.assign({},ee),_[oe])),ce}),v(ee)}function v(te){Object.entries(te).forEach(([ee,oe])=>g[ee]=oe)}const w=oxt(()=>{f(),x()},16);function x(){if(!h.value)return;const te=h.value.getBoundingClientRect();a.value=te.width/g.itemsToShow}function M(){y.value<=0||(s.value=Math.ceil((y.value-1)/2),i.value=axt({config:g,slidesCount:y.value}),l.value=nxt({config:g,slidesCount:y.value}),g.wrapAround||(b.value=US({val:b.value,max:i.value,min:l.value})))}t.onMounted(()=>{t.nextTick(()=>x()),setTimeout(()=>x(),1e3),f(),V(),window.addEventListener("resize",w,{passive:!0}),r("init")}),t.onUnmounted(()=>{u&&clearTimeout(u),d&&clearInterval(d),window.removeEventListener("resize",w,{passive:!0})});let k=!1;const C={x:0,y:0},T={x:0,y:0},A=t.reactive({x:0,y:0}),E=t.ref(!1),B=t.ref(!1),S=()=>{E.value=!0},L=()=>{E.value=!1};function N(te){["INPUT","TEXTAREA","SELECT"].includes(te.target.tagName)||(k=te.type==="touchstart",k||te.preventDefault(),!(!k&&te.button!==0||j.value)&&(C.x=k?te.touches[0].clientX:te.clientX,C.y=k?te.touches[0].clientY:te.clientY,document.addEventListener(k?"touchmove":"mousemove",O,!0),document.addEventListener(k?"touchend":"mouseup",z,!0)))}const O=ixt(te=>{B.value=!0,T.x=k?te.touches[0].clientX:te.clientX,T.y=k?te.touches[0].clientY:te.clientY;const ee=T.x-C.x,oe=T.y-C.y;A.y=oe,A.x=ee},g.throttle);function z(){const te=g.dir==="rtl"?-1:1,ee=Math.sign(A.x)*.4,oe=Math.round(A.x/a.value+ee)*te;if(oe&&!k){const ce=he=>{he.stopPropagation(),window.removeEventListener("click",ce,!0)};window.addEventListener("click",ce,!0)}q(b.value-oe),A.x=0,A.y=0,B.value=!1,document.removeEventListener(k?"touchmove":"mousemove",O,!0),document.removeEventListener(k?"touchend":"mouseup",z,!0)}function V(){!g.autoplay||g.autoplay<=0||(d=setInterval(()=>{g.pauseAutoplayOnHover&&E.value||$()},g.autoplay))}function R(){d&&(clearInterval(d),d=null),V()}const j=t.ref(!1);function q(te){const ee=g.wrapAround?te:US({val:te,max:i.value,min:l.value});b.value===ee||j.value||(r("slide-start",{slidingToIndex:te,currentSlideIndex:b.value,prevSlideIndex:c.value,slidesCount:y.value}),j.value=!0,c.value=b.value,b.value=ee,u=setTimeout(()=>{if(g.wrapAround){const oe=GS({val:ee,max:i.value,min:0});oe!==b.value&&(b.value=oe,r("loop",{currentSlideIndex:b.value,slidingToIndex:te}))}r("update:modelValue",b.value),r("slide-end",{currentSlideIndex:b.value,prevSlideIndex:c.value,slidesCount:y.value}),j.value=!1,R()},g.transition))}function $(){q(b.value+g.itemsToScroll)}function H(){q(b.value-g.itemsToScroll)}const X={slideTo:q,next:$,prev:H};t.provide("nav",X),t.provide("isSliding",j);const G=t.computed(()=>rxt({config:g,currentSlide:b.value,slidesCount:y.value}));t.provide("slidesToScroll",G);const Y=t.computed(()=>{const te=g.dir==="rtl"?-1:1,ee=G.value*a.value*te;return{transform:`translateX(${A.x-ee}px)`,transition:`${j.value?g.transition:0}ms`,margin:g.wrapAround?`0 -${y.value*a.value}px`:"",width:"100%"}});function K(){p(),f(),M(),x(),R()}Object.keys(GH).forEach(te=>{["modelValue"].includes(te)||t.watch(()=>e[te],K)}),t.watch(()=>e.modelValue,te=>{te!==b.value&&q(Number(te))}),t.watch(y,M),r("before-init"),p();const le={config:g,slidesCount:y,slideWidth:a,next:$,prev:H,slideTo:q,currentSlide:b,maxSlide:i,minSlide:l,middleSlide:s};I({updateBreakpointsConfigs:f,updateSlidesData:M,updateSlideWidth:x,initDefaultConfigs:p,restartCarousel:K,slideTo:q,next:$,prev:H,nav:X,data:le});const ie=n.default||n.slides,ne=n.addons,se=t.reactive(le);return()=>{const te=HH(ie==null?void 0:ie(se)),ee=(ne==null?void 0:ne(se))||[];te.forEach((fe,me)=>fe.props.index=me);let oe=te;if(g.wrapAround){const fe=te.map((ye,be)=>t.cloneVNode(ye,{index:-te.length+be,isClone:!0,key:`clone-before-${be}`})),me=te.map((ye,be)=>t.cloneVNode(ye,{index:te.length+be,isClone:!0,key:`clone-after-${be}`}));oe=[...fe,...te,...me]}m.value=te,y.value=Math.max(te.length,1);const ce=t.h("ol",{class:"carousel__track",style:Y.value,onMousedownCapture:g.mouseDrag?N:null,onTouchstartPassiveCapture:g.touchDrag?N:null},oe),he=t.h("div",{class:"carousel__viewport"},ce);return t.h("section",{ref:h,class:{carousel:!0,"is-sliding":j.value,"is-dragging":B.value,"is-hover":E.value,"carousel--rtl":g.dir==="rtl"},dir:g.dir,"aria-label":g.i18n.ariaGallery,tabindex:"0",onMouseenter:S,onMouseleave:L},[he,ee,t.h(lxt)])}}}),WH;(function(e){e.arrowUp="arrowUp",e.arrowDown="arrowDown",e.arrowRight="arrowRight",e.arrowLeft="arrowLeft"})(WH||(WH={}));var dxt=t.defineComponent({name:"CarouselSlide",props:{index:{type:Number,default:1},isClone:{type:Boolean,default:!1}},setup(e,{slots:n}){const r=t.inject("config",t.reactive(Object.assign({},Kc))),I=t.inject("currentSlide",t.ref(0)),F=t.inject("slidesToScroll",t.ref(0)),h=t.inject("isSliding",t.ref(!1)),m=()=>e.index===I.value,a=()=>e.index===I.value-1,y=()=>e.index===I.value+1,g=()=>{const o=Math.floor(F.value),_=Math.ceil(F.value+r.itemsToShow-1);return e.index>=o&&e.index<=_};return()=>{var o;return t.h("li",{style:{width:`${100/r.itemsToShow}%`},class:{carousel__slide:!0,"carousel__slide--clone":e.isClone,"carousel__slide--visible":g(),"carousel__slide--active":m(),"carousel__slide--prev":a(),"carousel__slide--next":y(),"carousel__slide--sliding":h.value},"aria-hidden":!g()},(o=n.default)===null||o===void 0?void 0:o.call(n))}}});const uxt=(e,n)=>{const r=e.__vccOpts||e;for(const[I,F]of n)r[I]=F;return r},hxt=e=>(t.pushScopeId("data-v-54620d25"),e=e(),t.popScopeId(),e),pxt={class:"gsc-carousel"},fxt={key:0},mxt=hxt(()=>t.createElementVNode("div",null,"no hay",-1)),gxt=[mxt],yxt={class:"gsc-carousel__2d__slides"},vxt={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},_xt=["fill"],bxt={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},xxt=["fill"],wxt={class:"gsc-carousel__2d__navigation"},kxt={width:"8",height:"15",viewBox:"0 0 8 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Cxt=["stroke"],Sxt={key:1,class:"gsc-carousel__2d__navigation__pagination"},Txt=["onClick"],Ext={width:"7",height:"15",viewBox:"0 0 7 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Axt=["stroke"],Mxt={__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(n=>n 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:n,emit:r}){const I=e;t.useCssVars(i=>({"2c72d674":e.slideLeftArrowBackgroundImage,"90a63f40":e.slidesArrowsLeftAndRight,"2627d097":e.slideRightArrowBackgroundImage,"1904d43f":e.marginTop,cfb58986:e.secondarySlidesOpacity}));const F=t.ref(null),h=t.ref({}),m=t.ref(0),a=t.ref(!1);t.watch(F,i=>{i&&a.value?(a.value=!1,y(I.items)):i&&i.slideTo&&i.slideTo(m.value)},{deep:!0}),t.watch(()=>I.currentItemIndex,i=>{m.value!==i&&b(i)}),t.watch(()=>I.defaultItemByIndex,i=>{m.value!==i&&b(i)}),t.watch(()=>I.items,i=>{F.value?y(i):a.value=!0},{immediate:!0});function y(i){i&&i.length&&F.value&&setTimeout(()=>{if(I.defaultItemByProp){const l=I.items.findIndex(d=>d[I.defaultItemByProp.propName]===I.defaultItemByProp.value);l!==-1?(m.value=l,h.value=i[l]):(m.value=0,h.value=i[0])}else m.value=I.defaultItemByIndex,h.value=i[I.defaultItemByIndex];F.value.slideTo&&F.value.slideTo(m.value),h.value&&m.value===0&&r("input",{selectedItem:h.value,selectedItemIndex:m.value})},500)}function g(){F.value&&F.value.next()}function o(){F.value&&F.value.prev()}function _(){F.value&&F.value.updateSlideWidth()}function b(i){F.value&&F.value.slideTo(i)}function c(i){F.value.slideTo(i)}function s(i){const l=i.slidingToIndex<0?I.items.length-1:i.slidingToIndex===I.items.length?0:i.slidingToIndex;m.value=l,h.value=I.items[l],r("update:currentItemIndex",l),r("input",{selectedItem:h.value,selectedItemIndex:m.value})}return n({prev:o,next:g,updateSlideWidth:_,slideTo:b}),(i,l)=>(t.openBlock(),t.createElementBlock("div",pxt,[I.is3d?(t.openBlock(),t.createElementBlock("div",fxt,gxt)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(["gsc-carousel__2d",{"main-slide-priority":e.isMainSlidePriority}])},[t.createElementVNode("div",yxt,[t.createVNode(t.unref(cxt),{ref_key:"carousel2d",ref:F,"items-to-show":e.itemsToShow,"wrap-around":e.wrapAround,onSlideStart:s},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(d,u)=>(t.openBlock(),t.createBlock(t.unref(dxt),{key:u},{default:t.withCtx(()=>[t.renderSlot(i.$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:l[0]||(l[0]=d=>F.value.prev())},[t.createElementVNode("div",{class:t.normalizeClass(["gsc-carousel__2d__slide-button",{rounded:e.areSlidesArrowsRounded}])},[(t.openBlock(),t.createElementBlock("svg",vxt,[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,_xt)]))],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:l[1]||(l[1]=d=>g())},[t.createElementVNode("div",{class:t.normalizeClass(["gsc-carousel__2d__slide-button",{rounded:e.areSlidesArrowsRounded}])},[(t.openBlock(),t.createElementBlock("svg",bxt,[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,xxt)]))],2)],4)):t.createCommentVNode("",!0),t.createElementVNode("div",wxt,[e.areNavigationArrowsVisible?(t.openBlock(),t.createElementBlock("div",{key:0,class:"gsc-carousel__2d__navigation__arrow-left",onClick:l[2]||(l[2]=d=>o())},[(t.openBlock(),t.createElementBlock("svg",kxt,[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:I.arrowsColor},null,8,Cxt)]))])):t.createCommentVNode("",!0),e.isPaginationVisible?(t.openBlock(),t.createElementBlock("div",Sxt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(d,u)=>(t.openBlock(),t.createElementBlock("div",{key:`i-${u}`,class:"gsc-carousel__2d__navigation__pagination__item",style:t.normalizeStyle({height:`${I.navigationHeight}px`,width:`${m.value===u?I.navigationActiveWidth:I.navigationActiveWidth/2}px`,borderRadius:`${I.navigationBorderRadius}px`,backgroundColor:`${m.value===u?I.navigationActiveColor:I.navigationColor}`,transition:"all 0.1s ease-in-out"}),onClick:p=>c(u)},null,12,Txt))),128))])):t.createCommentVNode("",!0),e.areNavigationArrowsVisible?(t.openBlock(),t.createElementBlock("div",{key:2,class:"gsc-carousel__2d__navigation__arrow-right",onClick:l[3]||(l[3]=d=>F.value.next())},[(t.openBlock(),t.createElementBlock("svg",Ext,[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:I.arrowsColor},null,8,Axt)]))])):t.createCommentVNode("",!0)])],2))]))}},Ixt=uxt(Mxt,[["__scopeId","data-v-54620d25"]]),HS=(e,n)=>{const r=e.__vccOpts||e;for(const[I,F]of n)r[I]=F;return r};let qH=null;const WS={components:{},props:{titleCategory:{type:String,default:"RESUMEN"},dateGame:{type:String,default:""},colorBackgroundHome:{type:String,default:"#000000"},colorBackgroundAway:{type:String,default:"#FFFFFF"},logoHome:{type:String,default:""},matchday:{type:String,default:""},seasonName:{type:String,default:""},logoAway:{type:String,default:""},score:{type:String,default:""},background:{type:String,default:""}},data(){return{gamesContainerWidth:0}},computed:{date(){const e=this.gamesContainerWidth;return e<=400?"date400":e<=540?"date540":e<=650?"date650":"date"},seasoncontainer(){const e=this.gamesContainerWidth;return e<=400?"season-container400":e<=540?"season-container540":e<=650?"season-container650":"season-container"},matchcontainer(){const e=this.gamesContainerWidth;return e<=400?"match-container400":e<=540?"match-container540":e<=650?"match-container650":"match-container"},containerinfogame(){const e=this.gamesContainerWidth;return e<=400?"container-info-game400":e<=540?"container-info-game540":e<=650?"container-info-game650":"container-info-game"},playbutton(){const e=this.gamesContainerWidth;return e<=400?"play-button400":e<=540?"play-button540":e<=650?"play-button650":"play-button"},baselogo(){const e=this.gamesContainerWidth;return e<=400?"base-logo400":e<=540?"base-logo540":e<=650?"base-logo650":"base-logo"},baselogoright(){const e=this.gamesContainerWidth;return e<=400?"base-logo-right400":e<=540?"base-logo-right540":e<=650?"base-logo-right650":"base-logo-right"},thumbnailhighlights(){const e=this.gamesContainerWidth;return e<=400?"thumbnail-highlights400":e<=540?"thumbnail-highlights540":e<=650?"thumbnail-highlights650":"thumbnail-highlights"},teamlogo(){const e=this.gamesContainerWidth;return e<=400?"team-logo400":e<=540?"team-logo540":e<=650?"team-logo650":"team-logo"},logoright(){const e=this.gamesContainerWidth;return e<=400?"logo-right400":e<=540?"logo-right540":e<=650?"logo-right650":"logo-right"},secondline(){const e=this.gamesContainerWidth;return e<=400?"second-line400":e<=540?"second-line540":e<=650?"second-line650":"second-line"},titlename(){const e=this.gamesContainerWidth;return e<=400?"title-name400":e<=540?"title-name540":e<=650?"title-name650":"title-name"}},methods:{onclickPlayVideos(){this.$emit("onclickPlayVideos")},setUpResizeObserver(){if(window.ResizeObserver)qH=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),qH.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},YH=()=>{t.useCssVars(e=>({"41af28e8":e.colorBackgroundHome+"45","90ae2246":e.colorBackgroundAway+"45","1d262e1e":e.colorBackgroundHome,"1d231c2d":e.colorBackgroundAway}))},XH=WS.setup;WS.setup=XH?(e,n)=>(YH(),XH(e,n)):YH;const q4=e=>(t.pushScopeId("data-v-fd9d1e65"),e=e(),t.popScopeId(),e),Nxt=q4(()=>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)),Bxt=[Nxt],Pxt=q4(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/paper-texture.png",alt:"",class:"paper-texture position-image"},null,-1)),Oxt=["src"],Lxt=q4(()=>t.createElementVNode("div",{class:"gradient-back position-image"},null,-1)),Fxt=q4(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/halftone-texture.png",alt:"",class:"halftone-texture position-image"},null,-1)),Dxt=["src"],zxt=["src"],Vxt={class:"text-container"};function Rxt(e,n,r,I,F,h){return t.openBlock(),t.createElementBlock("div",{ref:"gamesContainer",class:t.normalizeClass(h.thumbnailhighlights)},[t.createElementVNode("div",{class:t.normalizeClass(h.playbutton),onClick:n[0]||(n[0]=(...m)=>h.onclickPlayVideos&&h.onclickPlayVideos(...m))},Bxt,2),r.dateGame!=""?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(h.date)},t.toDisplayString(r.dateGame),3)):t.createCommentVNode("",!0),r.matchday!=""&&r.seasonName!=""?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(h.containerinfogame)},[r.matchday!=""?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(h.matchcontainer)},t.toDisplayString(r.matchday),3)):t.createCommentVNode("",!0),r.seasonName!=""?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(h.seasoncontainer)},t.toDisplayString(r.seasonName),3)):t.createCommentVNode("",!0)],2)):t.createCommentVNode("",!0),Pxt,t.createElementVNode("img",{src:r.background,alt:"",class:"bkg-blackwhite position-image"},null,8,Oxt),t.createElementVNode("div",{class:t.normalizeClass([h.baselogo,"position-image"])},null,2),t.createElementVNode("div",{class:t.normalizeClass(h.baselogoright)},null,2),Lxt,Fxt,t.createElementVNode("img",{src:r.logoHome,alt:"",class:t.normalizeClass(h.teamlogo)},null,10,Dxt),t.createElementVNode("img",{src:r.logoAway,alt:"",class:t.normalizeClass(h.logoright)},null,10,zxt),t.createElementVNode("div",Vxt,[t.createElementVNode("span",{class:t.normalizeClass(h.secondline)},t.toDisplayString(r.score),3),t.createElementVNode("div",{class:t.normalizeClass(h.titlename)},t.toDisplayString(r.titleCategory),3)])],2)}const $xt=HS(WS,[["render",Rxt],["__scopeId","data-v-fd9d1e65"]]);let JH=null;const qS={components:{},props:{type:{type:Number,default:0},colorBackgroundHome:{type:String,default:"#000000"},colorBackgroundAway:{type:String,default:"#FFFFFF"},nameCategory:{type:String,default:""},date:{type:String,default:""},seasonName:{type:String,default:""},matchday:{type:String,default:""},photoProfile:{type:String,default:""},logoHome:{type:String,default:""},logoAway:{type:String,default:""},scoreHome:{type:String,default:""},scoreAway:{type:String,default:""},background:{type:String,default:""},typeImg:{type:Number,default:0},nameHomeTeam:{type:String,default:""},nameAwayTeam:{type:String,default:""},namePlayer:{type:String,default:""}},data(){return{gamesContainerWidth:0}},computed:{playbutton(){const e=this.gamesContainerWidth;return e<=400?"play-button400":e<=540?"play-button540":e<=650?"play-button650":"play-button"},points(){const e=this.gamesContainerWidth;return e<=400?"points400":e<=540?"points540":e<=650?"points650":"points"},containerinfogame(){const e=this.gamesContainerWidth;return e<=400?"container-info-game400":e<=540?"container-info-game540":e<=650?"container-info-game650":"container-info-game"},teamname(){const e=this.gamesContainerWidth;return e<=400?"team-name400":e<=540?"team-name540":e<=650?"team-name650":"team-name"},teamscore(){const e=this.gamesContainerWidth;return e<=400?"team-score400":e<=540?"team-score540":e<=650?"team-score650":"team-score"},teamlogo(){const e=this.gamesContainerWidth;return e<=400?"team-logo400":e<=540?"team-logo540":e<=650?"team-logo650":"team-logo"},hometeam(){const e=this.gamesContainerWidth;return e<=400?"home-team400":e<=540?"home-team540":e<=650?"home-team650":"home-team"},awayteam(){const e=this.gamesContainerWidth;return e<=400?"away-team400":e<=540?"away-team540":e<=650?"away-team650":"away-team"},texttitle(){const e=this.gamesContainerWidth;return e<=400?"text-title400":e<=540?"text-title540":e<=650?"text-title650":"text-title"},matchcontainer(){const e=this.gamesContainerWidth;return e<=400?"match-container400":e<=540?"match-container540":e<=650?"match-container650":"match-container"},seasonnameContainer(){const e=this.gamesContainerWidth;return e<=280?"seasonname280":e<=400?"seasonname400":e<=540?"seasonname540":e<=650?"seasonname650":"seasonname"},matchboxContainer(){const e=this.gamesContainerWidth;return e<=400?"matchbox400":e<=540?"matchbox540":e<=650?"matchbox650":"matchbox"},seasoncontainer(){const e=this.gamesContainerWidth;return e<=400?"season-container400":e<=540?"season-container540":e<=650?"season-container650":"season-container"},texttitle2(){const e=this.gamesContainerWidth;return e<=300?"text-title2400":e<=540?"text-title2540":e<=650?"text-title2650":"text-title2"},playerimage(){const e=this.gamesContainerWidth;return e<=400?"player-image400":e<=540?"player-image540":e<=650?"player-image650":"player-image"},thumbnailhighlights(){const e=this.gamesContainerWidth;return e<=400?"thumbnail-highlights400":e<=540?"thumbnail-highlights540":e<=650?"thumbnail-highlights650":"thumbnail-highlights"}},methods:{onclickPlayVideos(){this.$emit("onclickPlayVideos")},setUpResizeObserver(){if(window.ResizeObserver)JH=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),JH.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},ZH=()=>{t.useCssVars(e=>({"16e4cc48":e.colorBackgroundHome,"16e1ba57":e.colorBackgroundAway,"0a08a218":e.colorBackgroundAway+"62",31881400:e.colorBackgroundHome+"36"}))},KH=qS.setup;qS.setup=KH?(e,n)=>(ZH(),KH(e,n)):ZH;const Y4=e=>(t.pushScopeId("data-v-4fef1a3b"),e=e(),t.popScopeId(),e),jxt=Y4(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/paper-texture.png",alt:"",class:"paper-texture position-image"},null,-1)),Uxt=Y4(()=>t.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},[t.createElementVNode("path",{d:"M6.6041 22.8554C6.42105 22.7512 6.26805 22.5956 6.1616 22.4053C6.05515 22.215 5.99927 21.9973 6.00001 21.7755V2.22137C6.00026 2.00039 6.0565 1.78362 6.16274 1.59409C6.26899 1.40456 6.42127 1.24936 6.6034 1.14499C6.78553 1.04062 6.9907 0.990981 7.1971 1.00135C7.4035 1.01171 7.60342 1.0817 7.77561 1.20386L21.4907 10.9821C21.6473 11.0935 21.7758 11.2446 21.8646 11.4219C21.9535 11.5992 22 11.7973 22 11.9985C22 12.1996 21.9535 12.3977 21.8646 12.575C21.7758 12.7523 21.6473 12.9034 21.4907 13.0148L7.77561 22.7954C7.60369 22.9178 7.40392 22.988 7.19761 22.9986C6.9913 23.0092 6.78617 22.9597 6.6041 22.8554ZM7.14347 21.7779L20.8585 11.9996L7.14347 21.7779Z",fill:"#CBEE6B"})],-1)),Gxt=[Uxt],Hxt={class:"player-container"},Wxt=["src"],qxt=["src"],Yxt=["src"],Xxt={class:"container-score"},Jxt=["src"],Zxt=["src"],Kxt=["src"],Qxt=Y4(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/halftone-texture.png",alt:"",class:"halftone-texture position-image"},null,-1)),e3t=Y4(()=>t.createElementVNode("div",{class:"gradient-color"},null,-1));function t3t(e,n,r,I,F,h){return t.openBlock(),t.createElementBlock("div",{ref:"gamesContainer",class:t.normalizeClass(h.thumbnailhighlights)},[jxt,t.createElementVNode("div",{class:t.normalizeClass(h.playbutton),onClick:n[0]||(n[0]=(...m)=>h.onclickPlayVideos&&h.onclickPlayVideos(...m))},Gxt,2),t.createElementVNode("div",Hxt,[t.createElementVNode("div",{class:t.normalizeClass(h.containerinfogame)},[t.createElementVNode("div",{class:t.normalizeClass(h.matchcontainer)},[t.createElementVNode("div",{class:t.normalizeClass(h.matchboxContainer)},t.toDisplayString(r.matchday),3),t.createElementVNode("div",{class:t.normalizeClass(h.seasonnameContainer)},t.toDisplayString(r.seasonName),3)],2),t.createElementVNode("div",{class:t.normalizeClass(h.seasoncontainer)},t.toDisplayString(r.date),3)],2),r.type==0?(t.openBlock(),t.createElementBlock("span",{key:0,class:t.normalizeClass(h.texttitle)},t.toDisplayString(r.nameCategory),3)):(t.openBlock(),t.createElementBlock("span",{key:1,class:t.normalizeClass(h.texttitle2)},t.toDisplayString(r.nameCategory),3)),r.typeImg==0?(t.openBlock(),t.createElementBlock("img",{key:2,src:r.photoProfile,class:t.normalizeClass(h.playerimage)},null,10,Wxt)):t.createCommentVNode("",!0),r.typeImg==1?(t.openBlock(),t.createElementBlock("img",{key:3,src:r.photoProfile,alt:""},null,8,qxt)):t.createCommentVNode("",!0),r.typeImg==2?(t.openBlock(),t.createElementBlock("img",{key:4,src:r.photoProfile,class:"img-number"},null,8,Yxt)):t.createCommentVNode("",!0),t.createElementVNode("div",Xxt,[t.createElementVNode("div",{class:t.normalizeClass(h.hometeam)},[t.createElementVNode("span",{class:t.normalizeClass(h.teamname)},t.toDisplayString(r.nameHomeTeam),3),t.createElementVNode("img",{src:r.logoHome,alt:"",class:t.normalizeClass(h.teamlogo)},null,10,Jxt),t.createElementVNode("span",{class:t.normalizeClass(h.teamscore)},t.toDisplayString(r.scoreHome),3)],2),t.createElementVNode("span",{class:t.normalizeClass(h.points)},":",2),t.createElementVNode("div",{class:t.normalizeClass(h.awayteam)},[t.createElementVNode("span",{class:t.normalizeClass(h.teamscore)},t.toDisplayString(r.scoreAway),3),t.createElementVNode("img",{src:r.logoAway,alt:"",class:t.normalizeClass(h.teamlogo)},null,10,Zxt),t.createElementVNode("span",{class:t.normalizeClass(h.teamname)},t.toDisplayString(r.nameAwayTeam),3)],2)])]),t.createElementVNode("img",{src:r.background,alt:"",class:"bkg-blackwhite position-image"},null,8,Kxt),Qxt,e3t],2)}const a3t={components:{GSCCarousel:Ixt,GSCThumbnailHighlightGameHistoric:$xt,GSCThumbnailHighlightGamePlayer:HS(qS,[["render",t3t],["__scopeId","data-v-4fef1a3b"]])},props:{items:{type:Array,default:()=>[1,2,3]},data:{type:Object,default:()=>{}},title:{type:String,default:"TODAS SUS JUGADAS"},canPlayVideos:{type:Boolean,default:!0},videoPrivilegesPlayingAs:{type:Set,default:()=>new Set([1,2])},privilegesTeamId:{type:Number,default:0}},data(){return{highlightsWidth:0,printData:[],resizeObserverGSCH:null,token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"}},watch:{data:{immediate:!0,handler(e){this.getData(e)}}},computed:{printDataFiltered(){return this.canPlayVideos?this.printData.filter(e=>this.videoPrivilegesPlayingAs.has(e.playingAs)):[]},isMobile(){return this.highlightsWidth<580},carouselProps(){return this.isMobile?{wrapAround:!0,itemsToShow:1.2,isMainSlidePriority:!0,areSlidesArrowsVisible:!1,areSlidesArrowsRounded:!1,areNavigationArrowsVisible:!1,isPaginationVisible:!0}:{wrapAround:!0,itemsToShow:1.8,isMainSlidePriority:!0,areSlidesArrowsVisible:!0,areSlidesArrowsRounded:!0,areNavigationArrowsVisible:!1}}},methods:{getPlayingAs(e,n){return e.home_team===(n||this.data.team)?1:2},obtenerNombreCompletoFecha(e){if(e){const n=new Date(e),r=["Domingo","Lunes","Martes","Miércoles","Jueves","Viernes","Sábado"][n.getUTCDay()],I=n.getUTCDate(),F=["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"][n.getUTCMonth()];return`${r} ${I} de ${F}`}else return""},onclickPlayVideos(e){var n=[];e.type==2?e.data.position_id==1?e.data.has_relevants==1?e.data.category==0?n=[55,324,323,608,39,774,802,52,53,40,42,54]:n=e.data.category:n=[55,324,323,608,39,774,802,52,53,40,42,54]:e.data.has_relevants==1?e.data.category==0?n=[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]:n=e.data.category:n=[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?n=[607,608,12,55,54,35,14,52,15,53,466,477,40,257,39]:n=e.data.category:e.data.category!=0?n=e.data.category:n=[607,608,12,55,54,35,14,52,15,53,466,477];const r=[1,2,3];let I={seasonId:e.data.season_id,mainSectionType:1,playListType:e.type,categoryIds:n,gameIds:e.data.game_id?[e.data.game_id]:null,playerIds:e.data.position_id!=1?e.data.player_id?[e.data.player_id]:[]:[],goalkeeperIds:e.data.position_id==1?e.data.player_id?[e.data.player_id]:[]:[],teamId:e.data.team_id?e.data.team_id:e.data.team_id_b?e.data.team_id_b:0,matchResult:e.data.matchResult?[e.data.matchResult]:r,advancedFilter:{playListTitle:""}};e.data.category!==0&&(I.advancedFilter.mainCategoryId=e.data.category),this.$emit("openmedia",I)},play(e){this.$emit("play",e)},async getData(e){const n=txt.create({headers:{Authorization:`${this.token}`}});var r=[],I={};if(e.type=="player"){const F=await n.get("https://uof4tt5l46.execute-api.us-west-2.amazonaws.com/prod/v3/playerInfo/"+e.season+"/"+e.player);if(F.data.seasons[e.season])for(let h=0;h<F.data.seasons[e.season].games_played.length;h++)I={playingAs:this.getPlayingAs(F.data.seasons[e.season].games_played[h],F.data.team_id),category:0,player_id:F.data.player_id,position_id:F.data.position_id,color:F.data.info_thumbnails.colors.background_color,photo_profile:F.data.info_thumbnails.images.player_in_action[0]?"https://golstatsimages.blob.core.windows.net/images-library/"+F.data.info_thumbnails.images.player_in_action[0]:F.data.info_thumbnails.player_profile,team_logo:"https://az755631.vo.msecnd.net/teams-150/"+F.data.seasons[e.season].games_played[h].home_team+".png",player_name:F.data.seasons[e.season].games_played[h].home_team_acronym+" "+F.data.seasons[e.season].games_played[h].home_team_score+" : "+F.data.seasons[e.season].games_played[h].visiting_team_score+" "+F.data.seasons[e.season].games_played[h].visiting_team_acronym,team_id:F.data.team_id,has_relevants:F.data.seasons[e.season].games_played[h].has_relevants,team_id_b:F.data.seasons[e.season].games_played[h].home_team,season_id:F.data.seasons[e.season].games_played[h].season_id,name:F.data.seasons[e.season].games_played[h].player_name,seasonname:F.data.seasons[e.season].name.replace("Clausura","CL ").replace("Apertura","AP "),game_id:F.data.seasons[e.season].games_played[h].game_id,match:F.data.seasons[e.season].games_played[h].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(F.data.seasons[e.season].games_played[h].date),scorehome:F.data.seasons[e.season].games_played[h].home_team_score,scoreaway:F.data.seasons[e.season].games_played[h].visiting_team_score,hometeamacronym:F.data.seasons[e.season].games_played[h].home_team_acronym,visitingteamacronym:F.data.seasons[e.season].games_played[h].visiting_team_acronym,background:F.data.info_thumbnails.images.background_player_in_action[0]?"https://golstatsimages.blob.core.windows.net/images-library/"+F.data.info_thumbnails.images.background_player_in_action[0]:F.data.info_thumbnails.player_profile,backgroundhome:F.data.seasons[e.season].games_played[h].info_thumbnails.home_colors.background_color,backgroundaway:F.data.seasons[e.season].games_played[h].info_thumbnails.away_colors.background_color,logohome:"https://az755631.vo.msecnd.net/teams-150/"+F.data.seasons[e.season].games_played[h].home_team+".png",logoaway:"https://az755631.vo.msecnd.net/teams-150/"+F.data.seasons[e.season].games_played[h].visiting_team+".png",total:F.data.seasons[e.season].games_played[h].matchday_abbreviation.replace("M","Jor "),background_card:"https://az755631.vo.msecnd.net/golstats2-teams/"+F.data.seasons[e.season].games_played[h].home_team+"_"+F.data.seasons[e.season].games_played[h].season_id+"_r1.jpg"},r.push(I);else for(let h=0;h<F.data.national_seasons[e.season].games_played.length;h++)I={playingAs:this.getPlayingAs(F.data.national_seasons[e.season].games_played[h],F.data.team_id),category:0,player_id:F.data.player_id,position_id:F.data.position_id,color:F.data.info_thumbnails.colors.background_color,photo_profile:F.data.info_thumbnails.images.player_in_action[0]?"https://golstatsimages.blob.core.windows.net/images-library/"+F.data.info_thumbnails.images.player_in_action[0]:F.data.info_thumbnails.player_profile,team_logo:"https://az755631.vo.msecnd.net/teams-150/"+F.data.national_seasons[e.season].games_played[h].home_team+".png",player_name:F.data.national_seasons[e.season].games_played[h].home_team_acronym+" "+F.data.national_seasons[e.season].games_played[h].home_team_score+" : "+F.data.national_seasons[e.season].games_played[h].visiting_team_score+" "+F.data.national_seasons[e.season].games_played[h].visiting_team_acronym,team_id:F.data.team_id,has_relevants:F.data.national_seasons[e.season].games_played[h].has_relevants,team_id_b:F.data.national_seasons[e.season].games_played[h].home_team,season_id:F.data.national_seasons[e.season].games_played[h].season_id,name:F.data.national_seasons[e.season].games_played[h].player_name,seasonname:F.data.national_seasons[e.season].name.replace("Clausura","CL ").replace("Apertura","AP "),game_id:F.data.national_seasons[e.season].games_played[h].game_id,match:F.data.national_seasons[e.season].games_played[h].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(F.data.national_seasons[e.season].games_played[h].date),scorehome:F.data.national_seasons[e.season].games_played[h].home_team_score,scoreaway:F.data.national_seasons[e.season].games_played[h].visiting_team_score,hometeamacronym:F.data.national_seasons[e.season].games_played[h].home_team_acronym,visitingteamacronym:F.data.national_seasons[e.season].games_played[h].visiting_team_acronym,background:F.data.info_thumbnails.images.background_player_in_action[0]?"https://golstatsimages.blob.core.windows.net/images-library/"+F.data.info_thumbnails.images.background_player_in_action[0]:F.data.info_thumbnails.player_profile,backgroundhome:F.data.national_seasons[e.season].games_played[h].info_thumbnails.home_colors.background_color,backgroundaway:F.data.national_seasons[e.season].games_played[h].info_thumbnails.away_colors.background_color,logohome:"https://az755631.vo.msecnd.net/teams-150/"+F.data.national_seasons[e.season].games_played[h].home_team+".png",logoaway:"https://az755631.vo.msecnd.net/teams-150/"+F.data.national_seasons[e.season].games_played[h].visiting_team+".png",total:F.data.national_seasons[e.season].games_played[h].matchday_abbreviation.replace("M","Jor "),background_card:"https://az755631.vo.msecnd.net/golstats2-teams/"+F.data.national_seasons[e.season].games_played[h].home_team+"_"+F.data.national_seasons[e.season].games_played[h].season_id+"_r1.jpg"},r.push(I)}else if(e.type=="historic"){const F=await n.get("https://fxtcaw9tw6.execute-api.us-east-2.amazonaws.com/prod/historic/games/"+e.game);for(let m=0;m<F.data.plays.length;m++)I={teamId:F.data.plays[m][2],player:"Jornada "+F.data.plays[m][6],player_name:F.data.plays[m][4],season_id:F.data.plays[m][31],game_id:F.data.plays[m][3],img:"https://img1.wallspic.com/previews/0/9/1/0/20190/20190-football_player-football-fun-player-sports-x750.jpg"},r.length>0?this.privilegesTeamId==0?!r.filter(a=>a.game_id===F.data.plays[m][3]).length>0&&r.push(I):!r.filter(a=>a.game_id===F.data.plays[m][3]).length>0&&F.data.plays[m][2]===this.privilegesTeamId&&r.push(I):(this.privilegesTeamId==0||F.data.plays[m][2]===this.privilegesTeamId)&&r.push(I);const h=F.data.thumbnails;for(let m=0;m<r.length;m++){const a=Math.floor(Math.random()*h[r[m].game_id].info_thumbnails.images.background_default_games.length);r[m].background="https://golstatsimages.blob.core.windows.net/images-library/"+h[r[m].game_id].info_thumbnails.images.background_default_games[a],r[m].backgroundhome=h[r[m].game_id].info_thumbnails.home_colors.background_color,r[m].backgroundaway=h[r[m].game_id].info_thumbnails.away_colors.background_color,r[m].logoaway="https://az755631.vo.msecnd.net/teams-150/"+h[r[m].game_id].info_thumbnails.away_colors.team_id+".png",r[m].logohome="https://az755631.vo.msecnd.net/teams-150/"+h[r[m].game_id].info_thumbnails.home_colors.team_id+".png",r[m].match=h[r[m].game_id].matchday_name.replace("Matchday","Jor"),r[m].playingAs=h[r[m].game_id].info_thumbnails.home_colors.team_id===r[m].teamId?1:2,r[m].seasonname=h[r[m].game_id].season_name,r[m].score=h[r[m].game_id].score[0]+" - "+h[r[m].game_id].score[1],r[m].category=0}}else{const F=await n.get("https://ws8d8ye2ii.execute-api.us-west-2.amazonaws.com/prod/v4/seasonsByTeam/"+e.team);for(let h=0;h<F.data.seasons[e.season].games.length;h++){const m=Math.floor(Math.random()*F.data.seasons[e.season].games[h].info_thumbnails.images.background_default_games.length);I={playingAs:this.getPlayingAs(F.data.seasons[e.season].games[h],F.data.team_id),category:0,game_id:F.data.seasons[e.season].games[h].game_id,photo_profile:"https://az755631.vo.msecnd.net/teams-150/"+F.data.seasons[e.season].games[h].visiting_team+".png",team_logo:"https://az755631.vo.msecnd.net/teams-150/"+F.data.seasons[e.season].games[h].home_team+".png",player_name:F.data.seasons[e.season].games[h].home_team_acronym+" "+F.data.seasons[e.season].games[h].home_team_score+" : "+F.data.seasons[e.season].games[h].visiting_team_score+" "+F.data.seasons[e.season].games[h].visiting_team_acronym,team_id_b:F.data.seasons[e.season].games[h].home_team,team_id:F.data.team_id,season_id:F.data.seasons[e.season].games[h].season_id,name:"",seasonname:F.data.seasons[e.season].name,match:F.data.seasons[e.season].games[h].matchday_name.replace("Matchday","Jor"),score:F.data.seasons[e.season].games[h].home_team_score+" : "+F.data.seasons[e.season].games[h].visiting_team_score,background:"https://golstatsimages.blob.core.windows.net/images-library/"+F.data.seasons[e.season].games[h].info_thumbnails.images.background_default_games[m],backgroundhome:F.data.seasons[e.season].games[h].info_thumbnails.home_colors.background_color,backgroundaway:F.data.seasons[e.season].games[h].info_thumbnails.away_colors.background_color,logohome:"https://az755631.vo.msecnd.net/teams-150/"+F.data.seasons[e.season].games[h].home_team+".png",logoaway:"https://az755631.vo.msecnd.net/teams-150/"+F.data.seasons[e.season].games[h].visiting_team+".png",total:F.data.seasons[e.season].games[h].matchday_abbreviation.replace("M","Jor "),background_card:"https://az755631.vo.msecnd.net/golstats2-teams/"+F.data.seasons[e.season].games[h].home_team+"_"+F.data.seasons[e.season].games[h].season_id+"_r1.jpg"},r.push(I)}}this.printData=r},setUpResizeObserver(){this.resizeObserverGSCH=new ResizeObserver(e=>{for(const n of e)this.highlightsWidth=n.contentRect.width}),this.resizeObserverGSCH.observe(this.$refs.highlights)}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},1e3)}},n3t={key:0,ref:"highlights",class:"carousel-high-lights",id:"carousel-high-lights"};function r3t(e,n,r,I,F,h){const m=t.resolveComponent("GSCThumbnailHighlightGameHistoric"),a=t.resolveComponent("GSCThumbnailHighlightGamePlayer"),y=t.resolveComponent("GSCCarousel");return h.printDataFiltered.length>0&&r.canPlayVideos?(t.openBlock(),t.createElementBlock("div",n3t,[t.createVNode(y,t.mergeProps(h.carouselProps,{items:h.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:"0.2"}),{default:t.withCtx(({item:g})=>[r.data.type=="team"||r.data.type=="historic"?(t.openBlock(),t.createBlock(m,{key:0,items:g,"color-background-home":g.backgroundhome,"color-background-away":g.backgroundaway,"logo-home":g.logohome,"logo-away":g.logoaway,background:g.background,matchday:g.match,onOnclickPlayVideos:o=>h.onclickPlayVideos({data:g,type:1}),"season-name":g.seasonname,score:g.score},null,8,["items","color-background-home","color-background-away","logo-home","logo-away","background","matchday","onOnclickPlayVideos","season-name","score"])):(t.openBlock(),t.createBlock(a,{key:1,type:"player","name-player":g.name,"type-style":"game","color-background-home":g.backgroundhome,"color-background-away":g.backgroundaway,"type-img":"0",date:g.date,"season-name":g.seasonname,matchday:g.match,background:g.background,"name-home-team":g.hometeamacronym,"name-away-team":g.visitingteamacronym,"name-category":r.title,onOnclickPlayVideos:o=>h.onclickPlayVideos({data:g,type:2}),"logo-away":g.logoaway,"logo-home":g.logohome,"score-home":g.scorehome,"photo-profile":g.photo_profile,"score-away":g.scoreaway},null,8,["name-player","color-background-home","color-background-away","date","season-name","matchday","background","name-home-team","name-away-team","name-category","onOnclickPlayVideos","logo-away","logo-home","score-home","photo-profile","score-away"]))]),_:1},16,["items"])],512)):t.createCommentVNode("",!0)}const i3t=HS(a3t,[["render",r3t]]),u1a="",h1a="",p1a="",o3t={components:{GSCSlider:Lg},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{dataProminent:[],dataProminentAll:[],tokenPremium:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6NTg2LCJuYW1lIjoiSkFTIEdvbFN0YXRzIiwidXNlcm5hbWUiOiJ5YXRlYW1lcmljYSIsImVtYWlsIjoiIiwicHJvdmlkZXJfaWQiOjEsImxvZ2luX2dvbHN0YXRzIjoxLCJpYXQiOjE2OTYzNjU1ODcsImV4cCI6MTcyNzkwMTU4N30.jynRtgtFM8sf8gtqZJ-1gHLc2Ws13TIykXcfrlOvv1g"}},computed:{},methods:{onclickPlayVideos(e){const n=[1,2,3];let r={seasonId:this.dataProminentAll.season_id,mainSectionType:1,playListType:e.data.is_team==1?3:2,categoryIds:e.data.categories,gameIds: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:n,playData:{},advancedFilter:{playListTitle:""}};this.$emit("openmedia",r)},hasDecimal(e){return typeof e!="number"?!1:e.toString().includes(".")},formatNumber(e){if(typeof e=="number")if(this.hasDecimal(e)){const n=Math.round(e*10)/10;return Number.isInteger(n)?n.toString()+"%":n.toFixed(1)+"%"}else return e+"%";else return"0"},formatNumber2(e){if(typeof e=="number")if(this.hasDecimal(e)){const n=Math.round(e*10)/10;return Number.isInteger(n)?n.toString()+"%":n.toFixed(1)+"%"}else return e;else return"0"},textoConNegritas(e){if(!e)return"";const n=e.split(/(\*.*?\*)/g).filter(F=>F.trim()!=="");let r=Math.ceil(n.length/2),I="";return n.forEach((F,h)=>{h===r&&(I+="<br/>"),F.startsWith("*")&&F.endsWith("*")?I+=`<span class="text-bold-prominent">${F.slice(1,-1)}</span>`:F.trim()!==""&&(I+=`<span class="text-prominent">${F}</span>`)}),I},async getDataProminentPrematch(e){try{const n=cl.create({headers:{Authorization:`${this.tokenPremium}`}});let r={};this.isWidget&&this.teamWidget!=0?r=await n.get(" https://1qvtl1japi.execute-api.us-east-2.amazonaws.com/prod/highlights/seasons/"+this.game.seasonId+"/games/"+this.game.gameId+"/prematch?t="+this.teamWidget):r=await n.get(" https://1qvtl1japi.execute-api.us-east-2.amazonaws.com/prod/highlights/seasons/"+this.game.seasonId+"/games/"+this.game.gameId+"/prematch"),this.dataProminent=r.data.data,this.dataProminentAll=r.data}catch(n){return Promise.reject(n)}},async getDataProminent(e){try{const n=cl.create({headers:{Authorization:`${this.tokenPremium}`}});let r={};this.isWidget&&this.teamWidget!=0?r=await n.get("https://1qvtl1japi.execute-api.us-east-2.amazonaws.com/prod/highlights/seasons/"+this.game.seasonId+"/games/"+this.game.gameId+"?t="+this.teamWidget):r=await n.get("https://1qvtl1japi.execute-api.us-east-2.amazonaws.com/prod/highlights/seasons/"+this.game.seasonId+"/games/"+this.game.gameId),this.dataProminent=r.data.data,this.dataProminentAll=r.data}catch(n){return Promise.reject(n)}}}},s3t=e=>(t.pushScopeId("data-v-1a2776f9"),e=e(),t.popScopeId(),e),l3t={class:"data-prominent-game"},c3t={class:"title-data"},d3t={class:"item-data-text"},u3t=["innerHTML"],h3t={class:"contain-stats-control"},p3t={key:0,class:"title-total"},f3t={key:1,class:"item-total"},m3t=["onClick"],g3t={"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"},y3t=[s3t(()=>t.createElementVNode("path",{"data-v-83c7df16":"",d:"M6.6041 22.8554C6.42105 22.7512 6.26805 22.5956 6.1616 22.4053C6.05515 22.215 5.99927 21.9973 6.00001 21.7755V2.22137C6.00026 2.00039 6.0565 1.78362 6.16274 1.59409C6.26899 1.40456 6.42127 1.24936 6.6034 1.14499C6.78553 1.04062 6.9907 0.990981 7.1971 1.00135C7.4035 1.01171 7.60342 1.0817 7.77561 1.20386L21.4907 10.9821C21.6473 11.0935 21.7758 11.2446 21.8646 11.4219C21.9535 11.5992 22 11.7973 22 11.9985C22 12.1996 21.9535 12.3977 21.8646 12.575C21.7758 12.7523 21.6473 12.9034 21.4907 13.0148L7.77561 22.7954C7.60369 22.9178 7.40392 22.988 7.19761 22.9986C6.9913 23.0092 6.78617 22.9597 6.6041 22.8554ZM7.14347 21.7779L20.8585 11.9996L7.14347 21.7779Z",fill:"#CBEE6B"},null,-1))];function v3t(e,n,r,I,F,h){const m=t.resolveComponent("GSCSlider");return t.openBlock(),t.createElementBlock("div",l3t,[t.createElementVNode("div",c3t,[r.game.game_status==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Este partido: ")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("Este torneo:")],64))]),t.createVNode(m,{height:"115px",pxScroll:272,scrollColor:"none",arrowsPosition:"absolute",arrowsScrollHide:!0,arrowsHideOnNoScroll:!0,arrowsBackground:"rgba(255,255,255,.16)",arrowsContainerBgL:"linear-gradient(270deg, rgba(13,29,42,0.1) 0%, rgba(13,29,42,1) 70%)",arrowsContainerBgR:"linear-gradient(90deg, rgba(13,29,42,0.1) 0%, rgba(13,29,42,1) 70%)",arrowsMargin:0,arrowsRadius:"50%",arrowsBorder:"#ddd"},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(F.dataProminent,(a,y)=>(t.openBlock(),t.createElementBlock("div",{key:y,class:"item-prominent-data"},[t.createElementVNode("div",{class:"item-percent-shield",style:t.normalizeStyle("background:"+a.custom_colors.background_color)},[t.createElementVNode("div",{class:"item-team",style:t.normalizeStyle(a.player_id?"background-image:url(https://az755631.vo.msecnd.net/players-profile/"+a.player_id+".png); border: solid 1.4px "+a.custom_colors.background_color:"background-image:url(https://az755631.vo.msecnd.net/teams-80/"+a.team_id+".png);border: solid 1.4px "+a.custom_colors.background_color)},null,4),a.show_value==1?(t.openBlock(),t.createElementBlock("div",{key:0,class:"item-percent",style:t.normalizeStyle("color:"+a.custom_colors.font_color)},[a.is_percentage==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[a.title=="Distancia recorrida"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(h.formatNumber(a.percent)),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(h.formatNumber(a.percent)),1)],64))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(a.total),1)],64))],4)):t.createCommentVNode("",!0)],4),t.createElementVNode("div",d3t,[t.createElementVNode("div",{class:"container-text",innerHTML:h.textoConNegritas(a.description)},null,8,u3t),t.createElementVNode("div",h3t,[a.title!="Productividad"?(t.openBlock(),t.createElementBlock("div",p3t,"TOTAL:")):t.createCommentVNode("",!0),a.title!="Productividad"?(t.openBlock(),t.createElementBlock("div",f3t,[a.is_percentage==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(h.formatNumber(a.percent)),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[a.title=="Distancia recorrida"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(a.total)+" km",1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(a.total),1)],64))],64))])):t.createCommentVNode("",!0),r.canPlayVideos&&a.show_video==1?(t.openBlock(),t.createElementBlock("div",{key:2,class:"btn-play",style:t.normalizeStyle(a.title=="Productividad"?"margin-left: 0px !important;":""),onClick:g=>h.onclickPlayVideos({data:a})},[(t.openBlock(),t.createElementBlock("svg",g3t,y3t))],12,m3t)):t.createCommentVNode("",!0)])])]))),128))]),_:1})])}const _3t=Hr(o3t,[["render",v3t],["__scopeId","data-v-1a2776f9"]]),m1a="",b3t={components:{GSCCheckbox:K0},props:{timeLivePossesion:{type:Number,default:6e4},game:{type:Object,default:()=>{}},widthSection:{type:Number,default:0},teamSelected:{type:Object,default:()=>({})}},watch:{game:{deep:!0,immediate:!0,async handler(e){e.is_live==1?(this.getDataPosession(e.gameId),this.intervalIdPossesion=setInterval(()=>{this.getDataPosession(e.gameId)},this.timeLivePossesion),this.$emit("intervalidpossesion",this.intervalIdPossesion)):e.game_status==1||e.game_status==0?(this.getDataPosession(e.gameId),e.game_status==1&&(await this.$store.dispatch("nextGeneral/cleanStats"),await this.$store.dispatch("nextGeneral/checkState",{gameId:e.gameId,currentSeasonId:e.seasonId,isTeamsAnalysis:!0,defaultFilter:null,gameInfo:e}))):this.getDataPosessionPrematch(e.seasonId)}}},data(){return{areInactiveVisible:!1,dataPosession:[],arrTeams:[],intervalIdPossesion:null,url:"https://rwtfu33saa.execute-api.us-east-2.amazonaws.com/prod/ta/posessions/",urlPrematch:"https://rwtfu33saa.execute-api.us-east-2.amazonaws.com/prod/ta/seasons/",tokenPremium:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6NTg2LCJuYW1lIjoiSkFTIEdvbFN0YXRzIiwidXNlcm5hbWUiOiJ5YXRlYW1lcmljYSIsImVtYWlsIjoiIiwicHJvdmlkZXJfaWQiOjEsImxvZ2luX2dvbHN0YXRzIjoxLCJpYXQiOjE2OTYzNjU1ODcsImV4cCI6MTcyNzkwMTU4N30.jynRtgtFM8sf8gtqZJ-1gHLc2Ws13TIykXcfrlOvv1g",objectZeroValues:{numberValue:0,numberBarPercent:0}}},computed:{...Pd("nextGeneral",["gameForAnalysis","seasonId"]),...Ml("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 n=await cl.create({headers:{Authorization:`${this.tokenPremium}`}}).get(this.url+this.game.gameId);this.dataPosession=n.data}catch(e){return Promise.reject(e)}},async getDataPosessionPrematch(e){try{const r=await cl.create({headers:{Authorization:`${this.tokenPremium}`}}).get(this.urlPrematch+e+"/posessions");for(const I in r.data.teams)r.data.teams.hasOwnProperty(I)&&(this.arrTeams[I]=r.data.teams[I])}catch(n){return Promise.reject(n)}},onCheckInactive(e){e?this.areInactiveVisible=!0:this.areInactiveVisible=!1},deleteDecimalZero(e){const n=typeof e=="string"?parseFloat(e):e;return typeof n=="number"&&!isNaN(n)?n%1===0?n:n%1===0?Math.floor(n):n: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,n,r){if(!n.game_id)return this.objectZeroValues;const I=e.homeTeam.accomplished.avgPostGame+e.visitingTeam.accomplished.avgPostGame,F=e[r].accomplished.avgPostGame/I;return e[r].accomplished.avgPostGame?{numberValue:F<1?F*100:F,numberBarPercent:e[r].accomplished.avgPostGame/I}:this.objectZeroValues}},created(){this.$store.commit("nextGeneral/updateFilters",{filters:{local:{playingAs:[1,2],statistics:{},matchResult:[1,2,3],firstHalf:[1,2,3],secondHalf:[4,5,6]},visit:{playingAs:[1,2],statistics:{},matchResult:[1,2,3],firstHalf:[1,2,3],secondHalf:[4,5,6]}},needsFormat:!0})},beforeDestroy(){clearInterval(this.intervalIdPossesion)}},Y1=e=>(t.pushScopeId("data-v-3aa0c085"),e=e(),t.popScopeId(),e),x3t={key:0,class:"field-posesion-prominent"},w3t={key:0,class:"title"},k3t={class:"info-data-item"},C3t={class:"item-indicador"},S3t={class:"item-indicador-value"},T3t={key:0},E3t=Y1(()=>t.createElementVNode("div",{class:"item-indicador-img"},[t.createElementVNode("svg",{width:"8",height:"6",viewBox:"0 0 8 6",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M3.87817 5.92969L0.506034 0.0889796L7.2503 0.0889802L3.87817 5.92969Z",fill:"#38CFFF"})])],-1)),A3t={key:0,class:"inactiveInfo"},M3t={class:"info-data-item"},I3t={class:"item-indicador"},N3t={class:"item-indicador-value"},B3t=Y1(()=>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)),P3t={class:"info-data-item"},O3t={class:"item-indicador"},L3t={class:"item-indicador-value"},F3t={key:0},D3t=Y1(()=>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)),z3t={class:"info-data-item"},V3t={class:"item-indicador"},R3t={class:"item-indicador-value"},$3t=Y1(()=>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)),j3t={key:0,class:"inactiveInfo"},U3t={class:"info-data-item"},G3t={class:"item-indicador"},H3t={class:"item-indicador-value"},W3t=Y1(()=>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)),q3t={class:"info-data-item"},Y3t={class:"item-indicador"},X3t={class:"item-indicador-value"},J3t=Y1(()=>t.createElementVNode("div",{class:"item-indicador-img"},[t.createElementVNode("svg",{width:"8",height:"6",viewBox:"0 0 8 6",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M3.87817 5.92969L0.506034 0.0889796L7.2503 0.0889802L3.87817 5.92969Z",fill:"#38CFFF"})])],-1));function Z3t(e,n,r,I,F,h){const m=t.resolveComponent("GSCCheckbox");return e.arrayFilledDataSortedByPriority.length>0?(t.openBlock(),t.createElementBlock("div",x3t,[r.widthSection>760?(t.openBlock(),t.createElementBlock("div",w3t,"Porcentajes")):t.createCommentVNode("",!0),r.game.game_status==1||r.game.game_status==0||r.game.is_live==1?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(r.widthSection>760?"field-container":r.widthSection>520?"field-container-movil":r.widthSection>440?"field-container-movil-2":r.widthSection>360?"field-container-movil-3":"field-container-movil-4")},[F.dataPosession.has_posession==1?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(r.widthSection>1020?"time-show":r.widthSection>920?"time-show-table-xl":r.widthSection>880?"time-show-table-xl-2":r.widthSection>820?"time-show-table-xl-3":r.widthSection>760?"time-show-table-xl-4":"time-show-movil")},[t.createVNode(m,{label:"Mostrar tiempo inactivo",fontFamily:"Poppins-Regular","onUpdate:modelValue":h.onCheckInactive,"label-color":"#8c9399"},null,8,["onUpdate:modelValue"])],2)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(r.widthSection>1020?"field-data-container":r.widthSection>920?"field-data-container-xl":r.widthSection>880?"field-data-container-xl-2":r.widthSection>820?"field-data-container-xl-3":r.widthSection>760?"field-data-container-xl-4":"field-data-container-movil")},[t.createElementVNode("div",{class:t.normalizeClass(F.areInactiveVisible?"container-data-img-home":"container-data-img-home50")},[t.createElementVNode("div",{class:t.normalizeClass(F.areInactiveVisible?"homeInfo":"homeInfo50"),style:t.normalizeStyle("background-image:url("+r.game.homeTeam.logo.replace("80","150")+")")},null,6),t.createElementVNode("div",k3t,[t.createElementVNode("div",{class:t.normalizeClass(r.widthSection>580?"item-ref-data":"item-ref-data-movil")},[t.createElementVNode("div",C3t,[t.createElementVNode("div",S3t,[F.dataPosession.has_posession==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[F.areInactiveVisible?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(F.dataPosession.active_time.home),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(F.dataPosession.home),1)],64))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[h.hVal(e.arrayFilledDataSortedByPriority[0].subcategories.possession)?(t.openBlock(),t.createElementBlock("span",T3t,t.toDisplayString(h.deleteDecimalZero(h.formatNumbers(h.hVal(e.arrayFilledDataSortedByPriority[0].subcategories.possession).numberValue)))+"%",1)):t.createCommentVNode("",!0)],64))]),E3t]),t.createElementVNode("div",{class:t.normalizeClass(r.widthSection>580?"title-indicador":"title-indicador-movil")}," Pos. "+t.toDisplayString(r.game.homeTeam.acronym),3)],2)])],2),F.areInactiveVisible&&F.dataPosession.has_posession==1?(t.openBlock(),t.createElementBlock("div",A3t,[t.createElementVNode("div",M3t,[t.createElementVNode("div",{class:t.normalizeClass(r.widthSection>580?"item-ref-data":"item-ref-data-movil")},[t.createElementVNode("div",I3t,[t.createElementVNode("div",N3t,t.toDisplayString(F.dataPosession.active_time.inactive_time),1),B3t]),t.createElementVNode("div",{class:t.normalizeClass(r.widthSection>580?"title-indicador":"title-indicador-movil")},[r.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(F.areInactiveVisible?"container-data-img-away":"container-data-img-away50")},[t.createElementVNode("div",{class:t.normalizeClass(F.areInactiveVisible?"awayInfo":"awayInfo50"),style:t.normalizeStyle("background-image:url("+r.game.awayTeam.logo.replace("80","150")+")")},null,6),t.createElementVNode("div",P3t,[t.createElementVNode("div",{class:t.normalizeClass(r.widthSection>580?"item-ref-data":"item-ref-data-movil")},[t.createElementVNode("div",O3t,[t.createElementVNode("div",L3t,[F.dataPosession.has_posession==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[F.areInactiveVisible?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(F.dataPosession.active_time.away),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(F.dataPosession.away),1)],64))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[h.aVal(e.arrayFilledDataSortedByPriority[0].subcategories.possession)?(t.openBlock(),t.createElementBlock("span",F3t,t.toDisplayString(h.deleteDecimalZero(h.formatNumbers(h.aVal(e.arrayFilledDataSortedByPriority[0].subcategories.possession).numberValue)))+"%",1)):t.createCommentVNode("",!0)],64))]),D3t]),t.createElementVNode("div",{class:t.normalizeClass(r.widthSection>580?"title-indicador":"title-indicador-movil")}," Pos. "+t.toDisplayString(r.game.awayTeam.acronym),3)],2)])],2)],2)],2)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[F.arrTeams.length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(r.widthSection>760?"field-container":r.widthSection>520?"field-container-movil":r.widthSection>440?"field-container-movil-2":r.widthSection>360?"field-container-movil-3":"field-container-movil-4")},[F.arrTeams[r.teamSelected.teamId].has_posession==1?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(r.widthSection>1020?"time-show":r.widthSection>920?"time-show-table-xl":r.widthSection>880?"time-show-table-xl-2":r.widthSection>820?"time-show-table-xl-3":r.widthSection>760?"time-show-table-xl-4":"time-show-movil")},[t.createVNode(m,{label:"Mostrar tiempo inactivo",fontFamily:"Poppins-Regular","onUpdate:modelValue":h.onCheckInactive,"label-color":"#8c9399"},null,8,["onUpdate:modelValue"])],2)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(r.widthSection>1020?"field-data-container":r.widthSection>920?"field-data-container-xl":r.widthSection>880?"field-data-container-xl-2":r.widthSection>820?"field-data-container-xl-3":r.widthSection>760?"field-data-container-xl-4":"field-data-container-movil")},[t.createElementVNode("div",{class:t.normalizeClass(F.areInactiveVisible?"container-data-img-home":"container-data-img-home50")},[r.game.homeTeam.team_id==r.teamSelected.teamId?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(F.areInactiveVisible?"homeInfo":"homeInfo50"),style:t.normalizeStyle("background-image:url("+r.game.homeTeam.logo.replace("80","150")+")")},null,6)):t.createCommentVNode("",!0),t.createElementVNode("div",z3t,[t.createElementVNode("div",{class:t.normalizeClass(r.widthSection>580?"item-ref-data":"item-ref-data-movil")},[t.createElementVNode("div",V3t,[t.createElementVNode("div",R3t,[F.areInactiveVisible?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[r.game.awayTeam.team_id==r.teamSelected.teamId?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(F.arrTeams[r.teamSelected.teamId].active_time.away),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(F.arrTeams[r.teamSelected.teamId].active_time.home),1)],64))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[r.game.awayTeam.team_id==r.teamSelected.teamId?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(F.arrTeams[r.teamSelected.teamId].away),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(F.arrTeams[r.teamSelected.teamId].home),1)],64))],64))]),$3t]),r.game.homeTeam.team_id==r.teamSelected.teamId?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(r.widthSection>580?"title-indicador":"title-indicador-movil")}," Pos. "+t.toDisplayString(r.game.homeTeam.acronym),3)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(r.widthSection>580?"title-indicador":"title-indicador-movil")}," Pos. Rival ",2))],2)])],2),F.areInactiveVisible&&F.arrTeams[r.teamSelected.teamId].has_posession==1?(t.openBlock(),t.createElementBlock("div",j3t,[t.createElementVNode("div",U3t,[t.createElementVNode("div",{class:t.normalizeClass(r.widthSection>580?"item-ref-data":"item-ref-data-movil")},[t.createElementVNode("div",G3t,[t.createElementVNode("div",H3t,t.toDisplayString(F.arrTeams[r.teamSelected.teamId].active_time.inactive_time),1),W3t]),t.createElementVNode("div",{class:t.normalizeClass(r.widthSection>580?"title-indicador":"title-indicador-movil")},[r.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(F.areInactiveVisible?"container-data-img-away":"container-data-img-away50")},[r.game.awayTeam.team_id==r.teamSelected.teamId?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(F.areInactiveVisible?"awayInfo":"awayInfo50"),style:t.normalizeStyle("background-image:url("+r.game.awayTeam.logo.replace("80","150")+")")},null,6)):t.createCommentVNode("",!0),t.createElementVNode("div",q3t,[t.createElementVNode("div",{class:t.normalizeClass(r.widthSection>580?"item-ref-data":"item-ref-data-movil")},[t.createElementVNode("div",Y3t,[t.createElementVNode("div",X3t,[F.areInactiveVisible?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[r.game.homeTeam.team_id==r.teamSelected.teamId?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(F.arrTeams[r.teamSelected.teamId].active_time.away),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(F.arrTeams[r.teamSelected.teamId].active_time.home),1)],64))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[r.game.homeTeam.team_id==r.teamSelected.teamId?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(F.arrTeams[r.teamSelected.teamId].away),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(F.arrTeams[r.teamSelected.teamId].home),1)],64))],64))]),J3t]),r.game.awayTeam.team_id==r.teamSelected.teamId?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(r.widthSection>580?"title-indicador":"title-indicador-movil")}," Pos. "+t.toDisplayString(r.game.awayTeam.acronym),3)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(r.widthSection>580?"title-indicador":"title-indicador-movil")}," Pos. Rival ",2))],2)])],2)],2)],2)):t.createCommentVNode("",!0)],64))])):t.createCommentVNode("",!0)}const K3t=Hr(b3t,[["render",Z3t],["__scopeId","data-v-3aa0c085"]]),g1a="",YS={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(n){throw new Error(n)}}}},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)}}},QH=()=>{t.useCssVars(e=>({ec641b3a:e.backgroundColor,"66cc4678":e.widthCircle,"1c5ce009":e.heightCircle}))},eW=YS.setup;YS.setup=eW?(e,n)=>(QH(),eW(e,n)):QH;const Q3t={key:0,class:"text-left"},e4t=["width","src"],t4t=["checked"],a4t=["width","src"],n4t={key:3,class:"text-right"};function r4t(e,n,r,I,F,h){return t.openBlock(),t.createElementBlock("div",{class:"gsc-switch-radio",style:t.normalizeStyle(h.customText)},[r.textOptionLeft!=""&&!r.hiddenLabels?(t.openBlock(),t.createElementBlock("span",Q3t,t.toDisplayString(r.textOptionLeft),1)):t.createCommentVNode("",!0),r.iconA!=""?(t.openBlock(),t.createElementBlock("img",{key:1,width:r.widthIcons,src:r.iconA},null,8,e4t)):t.createCommentVNode("",!0),t.createElementVNode("input",{type:"checkbox",id:"toggle-btn",onChange:n[0]||(n[0]=(...m)=>h.handleSwitchChange&&h.handleSwitchChange(...m)),checked:F.OptionDefault},null,40,t4t),t.createElementVNode("label",{for:"toggle-btn",style:t.normalizeStyle([h.customStyle,{"--circle-color":r.circleColorSwitch}])},null,4),r.iconB!=""?(t.openBlock(),t.createElementBlock("img",{key:2,width:r.widthIcons,src:r.iconB},null,8,a4t)):t.createCommentVNode("",!0),r.textOptionRight!=""&&!r.hiddenLabels?(t.openBlock(),t.createElementBlock("span",n4t,t.toDisplayString(r.textOptionRight),1)):t.createCommentVNode("",!0)],4)}const tW=Hr(YS,[["render",r4t],["__scopeId","data-v-62d6b055"]]),y1a="";let aW=null;const XS={components:{},props:{canPlayVideos:{type:Boolean,default:!1},titleCategory:{type:String,default:"RESUMEN"},dateGame:{type:String,default:""},colorBackgroundHome:{type:String,default:"#000000"},colorBackgroundAway:{type:String,default:"#FFFFFF"},logoHome:{type:String,default:""},isLive:{type:Boolean,default:!0},matchday:{type:String,default:""},seasonName:{type:String,default:""},logoAway:{type:String,default:""},score:{type:String,default:""},background:{type:String,default:""}},data(){return{gamesContainerWidth:0}},computed:{date(){const e=this.gamesContainerWidth;return e<=400?"date400":e<=540?"date540":e<=650?"date650":"date"},seasoncontainer(){const e=this.gamesContainerWidth;return e<=400?"season-container400":e<=540?"season-container540":e<=650?"season-container650":"season-container"},matchcontainer(){const e=this.gamesContainerWidth;return e<=400?"match-container400":e<=540?"match-container540":e<=650?"match-container650":"match-container"},containerinfogame(){const e=this.gamesContainerWidth;return e<=400?"container-info-game400":e<=540?"container-info-game540":e<=650?"container-info-game650":"container-info-game"},playbutton(){const e=this.gamesContainerWidth;return e<=400?"play-button400":e<=540?"play-button540":e<=650?"play-button650":"play-button"},baselogo(){const e=this.gamesContainerWidth;return e<=400?"base-logo400":e<=540?"base-logo540":e<=650?"base-logo650":"base-logo"},baselogoright(){const e=this.gamesContainerWidth;return e<=400?"base-logo-right400":e<=540?"base-logo-right540":e<=650?"base-logo-right650":"base-logo-right"},thumbnailhighlights(){const e=this.gamesContainerWidth;return e<=400?"thumbnail-highlights400":e<=540?"thumbnail-highlights540":e<=650?"thumbnail-highlights650":"thumbnail-highlights"},teamlogo(){const e=this.gamesContainerWidth;return e<=400?"team-logo400":e<=540?"team-logo540":e<=650?"team-logo650":"team-logo"},logoright(){const e=this.gamesContainerWidth;return e<=400?"logo-right400":e<=540?"logo-right540":e<=650?"logo-right650":"logo-right"},secondline(){const e=this.gamesContainerWidth;return e<=400?"second-line400":e<=540?"second-line540":e<=650?"second-line650":"second-line"},titlename(){const e=this.gamesContainerWidth;return e<=400?"title-name400":e<=540?"title-name540":e<=650?"title-name650":"title-name"}},methods:{onclickPlayVideos(){this.$emit("onclickPlayVideos")},setUpResizeObserver(){if(window.ResizeObserver)aW=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),aW.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},nW=()=>{t.useCssVars(e=>({"524d4024":e.colorBackgroundHome+"45","2acdc375":e.colorBackgroundAway+"45","60764af4":e.colorBackgroundHome,"607c6ed6":e.colorBackgroundAway}))},rW=XS.setup;XS.setup=rW?(e,n)=>(nW(),rW(e,n)):nW;const X4=e=>(t.pushScopeId("data-v-ec876074"),e=e(),t.popScopeId(),e),i4t=[X4(()=>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))],o4t=X4(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/paper-texture.png",alt:"",class:"paper-texture position-image"},null,-1)),s4t=["src"],l4t=X4(()=>t.createElementVNode("div",{class:"gradient-back position-image"},null,-1)),c4t=X4(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/halftone-texture.png",alt:"",class:"halftone-texture position-image"},null,-1)),d4t=["src"],u4t=["src"],h4t={class:"text-container"};function p4t(e,n,r,I,F,h){return t.openBlock(),t.createElementBlock("div",{ref:"gamesContainer",class:t.normalizeClass(h.thumbnailhighlights)},[r.canPlayVideos?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(h.playbutton),onClick:n[0]||(n[0]=(...m)=>h.onclickPlayVideos&&h.onclickPlayVideos(...m))},i4t,2)):t.createCommentVNode("",!0),r.dateGame!=""?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(h.date)},t.toDisplayString(r.dateGame),3)):t.createCommentVNode("",!0),r.matchday!=""&&r.seasonName!=""?(t.openBlock(),t.createElementBlock("div",{key:2,class:t.normalizeClass(h.containerinfogame)},[r.matchday!=""?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(h.matchcontainer)},t.toDisplayString(r.matchday),3)):t.createCommentVNode("",!0),r.seasonName!=""?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(h.seasoncontainer)},t.toDisplayString(r.seasonName),3)):t.createCommentVNode("",!0)],2)):t.createCommentVNode("",!0),o4t,t.createElementVNode("img",{src:r.background,alt:"",class:"bkg-blackwhite position-image"},null,8,s4t),t.createElementVNode("div",{class:t.normalizeClass([h.baselogo,"position-image"])},null,2),t.createElementVNode("div",{class:t.normalizeClass(h.baselogoright)},null,2),l4t,c4t,t.createElementVNode("img",{src:r.logoHome,alt:"",class:t.normalizeClass(h.teamlogo)},null,10,d4t),t.createElementVNode("img",{src:r.logoAway,alt:"",class:t.normalizeClass(h.logoright)},null,10,u4t),t.createElementVNode("div",h4t,[t.createElementVNode("span",{class:t.normalizeClass(h.secondline)},t.toDisplayString(r.score),3),t.createElementVNode("div",{class:t.normalizeClass(h.titlename)},t.toDisplayString(r.titleCategory),3)])],2)}const f4t=Hr(XS,[["render",p4t],["__scopeId","data-v-ec876074"]]),_1a="";let iW=null;const m4t={components:{GSCThumbnailHighlightGameHistoric:f4t},props:{game:{type:Object,default:()=>{}},canPlayVideos:{type:Boolean,default:!1}},watch:{},data(){return{dataProminent:[],gameInfo:{},gamesContainerWidth:0,item:{backgroundhome:"",backgroundaway:"",logohome:"",logoaway:"",background:"",match:"",seasonname:"",score:""},tournamentId:0,token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"}},computed:{},methods:{onclickPlayVideos(e){var n=[];e.type==2?e.data.position_id==1?e.data.category==0?n=[55,324,323,608,39,774,802,52,53,40,54]:n=e.data.category:e.data.category==0?n=[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]:n=e.data.category:e.type==3?e.data.category==0?n=[607,608,12,55,54,35,14,52,15,53,466,477,40,257,39]:n=e.data.category:e.data.category!=0?n=e.data.category:n=[607,608,12,55,54,35,14,52,15,53,466,477];const r=[1,2,3];let I={seasonId:e.data.season_id,mainSectionType:1,playListType:e.type,categoryIds:n,gameIds:e.data.game_id?[e.data.game_id]:null,playerIds:e.data.position_id!=1?e.data.player_id?[e.data.player_id]:[]:[],goalkeeperIds:e.data.position_id==1?e.data.player_id?[e.data.player_id]:[]:[],teamId:e.data.team_id?e.data.team_id:0,matchResult:e.data.matchResult?[e.data.matchResult]:r,playData:{},advancedFilter:{playListTitle:""}};e.data.category!==0&&(I.advancedFilter.mainCategoryId=e.data.category),this.$emit("openmedia",I)},async fillData(){const e=cl.create({headers:{Authorization:`${this.token}`}}),n=await e.get("https://8tvo5bp9ai.execute-api.us-west-2.amazonaws.com/prod/gamesBySeason/"+this.game.seasonId),r=await e.get("https://d2oco6mqmc.execute-api.us-west-2.amazonaws.com/prod/teamsBySeason/"+this.game.seasonId);this.tournamentId=r.data.tournament_id;const I=n.data.games.findIndex(h=>h.game_id===this.game.gameId);this.gameInfo=n.data.games[I];const F=await e.get("https://fxtcaw9tw6.execute-api.us-east-2.amazonaws.com/prod/historic/games/"+this.game.gameId);this.item.category=0,this.item.game_id=F.data.game_id,this.item.season_id=this.game.seasonId,this.item.score=F.data.thumbnails[F.data.game_id]?F.data.thumbnails[F.data.game_id].score[0]+" - "+F.data.thumbnails[F.data.game_id].score[1]:"0 - 0",this.item.backgroundhome=F.data.thumbnails[F.data.game_id]?F.data.thumbnails[F.data.game_id].info_thumbnails.home_colors.background_color:"",this.item.backgroundaway=F.data.thumbnails[F.data.game_id]?F.data.thumbnails[F.data.game_id].info_thumbnails.away_colors.background_color:"",this.item.logohome=F.data.thumbnails[F.data.game_id]?"https://az755631.vo.msecnd.net/teams-150/"+F.data.thumbnails[F.data.game_id].home_team+".png":"",this.item.logoaway=F.data.thumbnails[F.data.game_id]?"https://az755631.vo.msecnd.net/teams-150/"+F.data.thumbnails[F.data.game_id].visiting_team+".png":"",this.item.background=F.data.thumbnails[F.data.game_id]?"https://golstatsimages.blob.core.windows.net/images-library/"+F.data.thumbnails[F.data.game_id].info_thumbnails.images.background_default_games[0]:""},setUpResizeObserver(){if(window.ResizeObserver)iW=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),iW.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},async mounted(){setTimeout(()=>{this.setUpResizeObserver()},1e3),await this.fillData()}},g4t={class:"highlights-prominent-game",ref:"gamesContainer"},y4t={class:"video-partido-container__highlight"},v4t={key:0,class:"video-partido-container__ribbon"},_4t={key:1,class:"video-partido-container__description"};function b4t(e,n,r,I,F,h){const m=t.resolveComponent("GSCThumbnailHighlightGameHistoric");return t.openBlock(),t.createElementBlock("div",g4t,[t.createElementVNode("div",y4t,[t.createElementVNode("div",{class:"video-partido-container__content2",style:t.normalizeStyle(F.gamesContainerWidth<=680?"display:block; width: 100%":"display:none")},[F.gamesContainerWidth>0?(t.openBlock(),t.createElementBlock("p",{key:0,class:t.normalizeClass(F.gamesContainerWidth>330?"video-partido-container__description2":"video-partido-container__description3")}," Las jugadas más importantes del partido ",2)):t.createCommentVNode("",!0)],4),F.gamesContainerWidth>680?(t.openBlock(),t.createElementBlock("div",{key:0,class:"video-partido-container__content",style:t.normalizeStyle(F.gamesContainerWidth<680?"margin-bottom: 30px;":"margin-bottom: 18px;")},[Object.keys(F.gameInfo).length>0?(t.openBlock(),t.createElementBlock("div",v4t,t.toDisplayString(F.tournamentId!=41?F.gameInfo.matchday_name.replace("Matchday","Jornada").replace("de Final","").replace("Playoffs 1","Cuartos de Final Ida").replace("Playoffs 2","Cuartos de Final Vuelta").replace("Playoffs 3","Semifinal Ida").replace("Playoffs 4","Semifinal Vuelta").replace("Playoffs 5","Final Ida").replace("Playoffs 6","Final Vuelta"):F.gameInfo.matchday_name=="Matchday 10"?"Final":F.gameInfo.matchday_name.replace("Matchday 1","16vos Ida").replace("Matchday 2","16vos Vuelta").replace("Matchday 3","8vos Ida").replace("Matchday 4","8vos Vuelta").replace("Matchday 5","4tos Ida").replace("Matchday 6","4tos Vuelta").replace("Matchday 7","Semifinal Ida").replace("Matchday 8","Semifinal Vuelta").replace("Matchday 9","Final").replace("Matchday 10","Final")),1)):t.createCommentVNode("",!0),t.createElementVNode("h2",{class:t.normalizeClass(F.gamesContainerWidth>865?"video-partido-container__title":"video-partido-container__titletablet")},"HIGHLIGHTS DEL",2),t.createElementVNode("h2",{class:t.normalizeClass(F.gamesContainerWidth>865?"video-partido-container__title":"video-partido-container__titletablet")},"PARTIDO",2),F.gamesContainerWidth>=645?(t.openBlock(),t.createElementBlock("p",_4t," Las jugadas más importantes del partido ")):t.createCommentVNode("",!0)],4)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(F.gamesContainerWidth>865?"video-partido-container__image":"video-partido-container__image2")},[F.item.background!=""?(t.openBlock(),t.createBlock(m,{key:0,"color-background-home":F.item.backgroundhome,"color-background-away":F.item.backgroundaway,"logo-home":F.item.logohome,"logo-away":F.item.logoaway,"is-live":!0,"can-play-videos":r.canPlayVideos,background:F.item.background,matchday:F.item.match,"season-name":F.item.seasonname,onOnclickPlayVideos:n[0]||(n[0]=a=>h.onclickPlayVideos({data:F.item,type:1})),score:F.item.score},null,8,["color-background-home","color-background-away","logo-home","logo-away","can-play-videos","background","matchday","season-name","score"])):t.createCommentVNode("",!0)],2)])],512)}const x4t=Hr(m4t,[["render",b4t],["__scopeId","data-v-79ccee9d"]]),b1a="";let oW=null;const JS={components:{},props:{titleCategory:{type:String,default:"RESUMEN"},dateGame:{type:String,default:""},colorBackgroundHome:{type:String,default:"#000000"},colorBackgroundAway:{type:String,default:"#FFFFFF"},isLive:{type:Boolean,default:!1},logoHome:{type:String,default:""},game:{type:Object,default:()=>{}},matchday:{type:String,default:""},seasonName:{type:String,default:""},logoAway:{type:String,default:""},score:{type:String,default:""},background:{type:String,default:""}},data(){return{gamesContainerWidth:0}},computed:{date(){const e=this.gamesContainerWidth;return e<=400?"date400":e<=540?"date540":e<=650?"date650":"date"},seasoncontainer(){const e=this.gamesContainerWidth;return e<=400?"season-container400":e<=540?"season-container540":e<=650?"season-container650":"season-container"},matchcontainer(){const e=this.gamesContainerWidth;return e<=400?"match-container400":e<=540?"match-container540":e<=650?"match-container650":"match-container"},containerinfogame(){const e=this.gamesContainerWidth;return e<=400?"container-info-game400":e<=540?"container-info-game540":e<=650?"container-info-game650":"container-info-game"},playbutton(){const e=this.gamesContainerWidth;return e<=400?"play-button400":e<=540?"play-button540":e<=650?"play-button650":"play-button"},baselogo(){const e=this.gamesContainerWidth;return e<=400?"base-logo400":e<=540?"base-logo540":e<=650?"base-logo650":"base-logo"},baselogoright(){const e=this.gamesContainerWidth;return e<=400?"base-logo-right400":e<=540?"base-logo-right540":e<=650?"base-logo-right650":"base-logo-right"},thumbnailhighlights(){const e=this.gamesContainerWidth;return e<=400?"thumbnail-highlights400":e<=540?"thumbnail-highlights540":e<=650?"thumbnail-highlights650":"thumbnail-highlights"},teamlogo(){const e=this.gamesContainerWidth;return e<=400?"team-logo400":e<=540?"team-logo540":e<=650?"team-logo650":"team-logo"},logoright(){const e=this.gamesContainerWidth;return e<=400?"logo-right400":e<=540?"logo-right540":e<=650?"logo-right650":"logo-right"},secondline(){const e=this.gamesContainerWidth;return e<=400?"second-line400":e<=540?"second-line540":e<=650?"second-line650":"second-line"},titlename(){const e=this.gamesContainerWidth;return e<=400?"title-name400":e<=540?"title-name540":e<=650?"title-name650":"title-name"}},methods:{onclickPlayVideos(){this.$emit("onclickPlayVideos")},setUpResizeObserver(){if(window.ResizeObserver)oW=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),oW.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},sW=()=>{t.useCssVars(e=>({"051a0872":e.colorBackgroundHome+"45","80f208fa":e.colorBackgroundAway+"45","9087fefc":e.colorBackgroundHome,"908e22de":e.colorBackgroundAway}))},lW=JS.setup;JS.setup=lW?(e,n)=>(sW(),lW(e,n)):sW;const X1=e=>(t.pushScopeId("data-v-84f38fde"),e=e(),t.popScopeId(),e),w4t={key:0,class:"icon-live"},k4t=[X1(()=>t.createElementVNode("span",{class:"circle-live"},null,-1)),X1(()=>t.createElementVNode("span",{style:{"margin-left":"3px"}},"LIVE",-1))],C4t=[X1(()=>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))],S4t=X1(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/paper-texture.png",alt:"",class:"paper-texture position-image"},null,-1)),T4t=["src"],E4t=X1(()=>t.createElementVNode("div",{class:"gradient-back position-image"},null,-1)),A4t=X1(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/halftone-texture.png",alt:"",class:"halftone-texture position-image"},null,-1)),M4t=["src"],I4t=["src"],N4t={class:"text-container"};function B4t(e,n,r,I,F,h){return t.openBlock(),t.createElementBlock("div",{ref:"gamesContainer",class:t.normalizeClass(h.thumbnailhighlights)},[r.isLive&&r.game.game_status!=0?(t.openBlock(),t.createElementBlock("div",w4t,k4t)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(h.playbutton),onClick:n[0]||(n[0]=(...m)=>h.onclickPlayVideos&&h.onclickPlayVideos(...m))},C4t,2),r.dateGame!=""?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(h.date)},t.toDisplayString(r.dateGame),3)):t.createCommentVNode("",!0),r.matchday!=""&&r.seasonName!=""?(t.openBlock(),t.createElementBlock("div",{key:2,class:t.normalizeClass(h.containerinfogame)},[r.matchday!=""?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(h.matchcontainer)},t.toDisplayString(r.matchday),3)):t.createCommentVNode("",!0),r.seasonName!=""?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(h.seasoncontainer)},t.toDisplayString(r.seasonName),3)):t.createCommentVNode("",!0)],2)):t.createCommentVNode("",!0),S4t,t.createElementVNode("img",{src:r.background,alt:"",class:"bkg-blackwhite position-image"},null,8,T4t),t.createElementVNode("div",{class:t.normalizeClass([h.baselogo,"position-image"])},null,2),t.createElementVNode("div",{class:t.normalizeClass(h.baselogoright)},null,2),E4t,A4t,t.createElementVNode("img",{src:r.logoHome,alt:"",class:t.normalizeClass(h.teamlogo)},null,10,M4t),t.createElementVNode("img",{src:r.logoAway,alt:"",class:t.normalizeClass(h.logoright)},null,10,I4t),t.createElementVNode("div",N4t,[t.createElementVNode("span",{class:t.normalizeClass(h.secondline)},t.toDisplayString(r.score),3),t.createElementVNode("div",{class:t.normalizeClass(h.titlename)},t.toDisplayString(r.titleCategory),3)])],2)}const P4t=Hr(JS,[["render",B4t],["__scopeId","data-v-84f38fde"]]),C1a="";let cW=null;const O4t={components:{GSCThumbnailHighlightGameHistoricLive:P4t},props:{timeLiveHighlightsProminentAndVideo:{type:Number,default:6e4},game:{type:Object,default:()=>{}},canPlayVideos:{type:Boolean,default:!1}},watch:{game:{deep:!0,immediate:!0,handler(e){this.fetchLiveData(e.gameId),e.is_live==1&&(this.intervalidhighlive=setInterval(()=>{this.fetchLiveData(e.gameId)},this.timeLiveHighlightsProminentAndVideo),this.$emit("intervalidhighlive",this.intervalidhighlive))}}},data(){return{printData:[],gameInfo:{},intervalidhighlive:null,informationBestPlaysPlayers:[],informationBestPlaysTeamHome:[],informationBestPlaysTeamAway:[],gamesContainerWidth:0,tournamentId:0,showHighlight:!1,showHighlightGoals:!1,item:{backgroundhome:"",backgroundaway:"",logohome:"",logoaway:"",background:"",match:"",seasonname:"",score:""},token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"}},computed:{},methods:{async fetchLiveData(){await this.getLiveHighlights()},onclickPlayVideos(e){var n=[];e.type==2?e.data.position_id==1?e.data.category==0?n=[55,324,323,608,39,774,802,52,53,40,54]:n=e.data.category:e.data.category==0?n=[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]:n=e.data.category:e.type==3?e.data.category==0?n=[607,608,12,55,54,35,14,52,15,53,466,477,40,257,39]:n=e.data.category:e.type==4?n=[12,55,"35_r","54_r"]:e.data.category!=0?n=e.data.category:n=[607,608,12,55,54,35,14,52,15,53,466,477];const r=[1,2,3];let I={seasonId:e.data.season_id,mainSectionType:1,playListType:e.type,categoryIds:n,gameIds:e.data.game_id?[e.data.game_id]:null,playerIds:e.data.position_id!=1?e.data.player_id?[e.data.player_id]:[]:[],goalkeeperIds:e.data.position_id==1?e.data.player_id?[e.data.player_id]:[]:[],teamId:e.data.team_id?e.data.team_id:0,matchResult:e.data.matchResult?[data.matchResult]:r,playData:{},advancedFilter:{playListTitle:""}};e.data.category!==0&&(I.advancedFilter.mainCategoryId=e.data.category),this.$emit("openmedia",I)},async getLiveHighlights(){const n=await cl.create({headers:{Authorization:`${this.token}`}}).get("https://fxtcaw9tw6.execute-api.us-east-2.amazonaws.com/prod/live/historic/games/"+this.game.gameId);n.data!=""&&(this.showHighlight=n.data==""?!1:n.data.plays.length>0,this.showHighlightGoals=n.data==""?!1:n.data.plays.filter(r=>r[0]===12).length>0,this.item.category=0,this.item.game_id=n.data.game_id,this.item.season_id=this.game.seasonId,this.item.score=n.data.thumbnails[n.data.game_id].score,this.item.backgroundhome=n.data.thumbnails[n.data.game_id].info_thumbnails.home_colors.background_color,this.item.backgroundaway=n.data.thumbnails[n.data.game_id].info_thumbnails.away_colors.background_color,this.item.logohome="https://az755631.vo.msecnd.net/teams-150/"+n.data.thumbnails[n.data.game_id].home_team+".png",this.item.logoaway="https://az755631.vo.msecnd.net/teams-150/"+n.data.thumbnails[n.data.game_id].visiting_team+".png",this.item.background="https://golstatsimages.blob.core.windows.net/images-library/"+n.data.thumbnails[n.data.game_id].info_thumbnails.images.background_default_games[0])},setUpResizeObserver(){if(window.ResizeObserver)cW=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainerlivehigh.clientWidth}),cW.observe(this.$refs.gamesContainerlivehigh);else throw new Error("Resize observer not supported!")}},async mounted(){setTimeout(()=>{this.setUpResizeObserver()},1e3)}},Wf=e=>(t.pushScopeId("data-v-2e3ebe2c"),e=e(),t.popScopeId(),e),L4t={class:"highlights-prominent-game",ref:"gamesContainerlivehigh"},F4t={class:"video-partido-container__highlight"},D4t={class:"video-partido-container__content"},z4t=Wf(()=>t.createElementVNode("div",{class:"video-partido-container__ribbon"},"• LIVE",-1)),V4t=Wf(()=>t.createElementVNode("h2",{class:"video-partido-container__title"},"HIGHLIGHTS AL",-1)),R4t=Wf(()=>t.createElementVNode("h2",{class:"video-partido-container__title"},"MOMENTO",-1)),$4t=Wf(()=>t.createElementVNode("p",{class:"video-partido-container__description"}," Las jugadas más destacadas hasta el momento ",-1)),j4t=Wf(()=>t.createElementVNode("h2",{class:"video-partido-container__title"},"HIGHLIGHTS DEL",-1)),U4t=Wf(()=>t.createElementVNode("h2",{class:"video-partido-container__title"},"PARTIDO",-1)),G4t=Wf(()=>t.createElementVNode("p",{class:"video-partido-container__description"}," Las jugadas más destacadas del partido ",-1)),H4t=Wf(()=>t.createElementVNode("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M2.30205 11.4277C2.21053 11.3756 2.13403 11.2978 2.0808 11.2027C2.02757 11.1075 1.99964 10.9986 2 10.8878V1.11068C2.00013 1.0002 2.02825 0.891808 2.08137 0.797044C2.13449 0.70228 2.21063 0.624681 2.3017 0.572496C2.39276 0.520311 2.49535 0.495491 2.59855 0.500673C2.70175 0.505856 2.80171 0.540848 2.8878 0.601929L9.74533 5.49105C9.82365 5.54675 9.88789 5.62229 9.93232 5.71095C9.97675 5.79961 10 5.89864 10 5.99923C10 6.09982 9.97675 6.19885 9.93232 6.28751C9.88789 6.37617 9.82365 6.45171 9.74533 6.50741L2.8878 11.3977C2.80184 11.4589 2.70196 11.494 2.5988 11.4993C2.49565 11.5046 2.39309 11.4798 2.30205 11.4277ZM2.57173 10.8889L9.42926 5.99981L2.57173 10.8889Z",fill:"#CBEE6B"})],-1)),W4t={class:"video-partido-container__image"};function q4t(e,n,r,I,F,h){const m=t.resolveComponent("GSCThumbnailHighlightGameHistoricLive");return t.openBlock(),t.createElementBlock("div",L4t,[t.withDirectives(t.createElementVNode("div",F4t,[t.createElementVNode("div",D4t,[r.game.game_status!=0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[z4t,V4t,R4t,$4t],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[j4t,U4t,G4t],64)),t.createElementVNode("button",{class:"video-partido-container__button",onClick:n[0]||(n[0]=a=>h.onclickPlayVideos({data:F.item,type:1}))},[H4t,t.createTextVNode(" Reproducir ahora ")])]),t.createElementVNode("div",W4t,[t.createVNode(m,{"is-live":!0,game:r.game,"color-background-home":F.item.backgroundhome,"color-background-away":F.item.backgroundaway,"logo-home":F.item.logohome,"logo-away":F.item.logoaway,background:F.item.background,onOnclickPlayVideos:n[1]||(n[1]=a=>h.onclickPlayVideos({data:F.item,type:1})),matchday:F.item.match,"season-name":F.item.seasonname,score:F.item.score},null,8,["game","color-background-home","color-background-away","logo-home","logo-away","background","matchday","season-name","score"])])],512),[[t.vShow,r.canPlayVideos&&F.showHighlight]])],512)}const Y4t=Hr(O4t,[["render",q4t],["__scopeId","data-v-2e3ebe2c"]]),ZS="/play-icn.svg",S1a="",X4t={name:"TooltipEmpty",props:{data:{type:Object,required:!0}},computed:{showTooltip(){return{visible:this.data.visible}}},methods:{tooltipClick:function(){},closeClick:function(){this.$emit("close")}}};function J4t(e,n,r,I,F,h){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["back-tooltip",h.showTooltip])},[t.createElementVNode("div",{class:t.normalizeClass(["box-tooltip",h.showTooltip]),onClick:n[1]||(n[1]=(...m)=>h.tooltipClick&&h.tooltipClick(...m))},[t.createElementVNode("span",{role:"button",class:"box-tooltip-close",onClick:n[0]||(n[0]=(...m)=>h.closeClick&&h.closeClick(...m))},"×"),t.renderSlot(e.$slots,"default",{},void 0,!0)],2)],2)}const Z4t=Hr(X4t,[["render",J4t],["__scopeId","data-v-b5f07af8"]]),T1a="",K4t=["id"],Q4t={class:"game-event__minute"},ewt={class:"game-event__icon"},twt=["src"],awt="/images/events/",nwt=Hr({__name:"GameEvent",props:{gameEvent:{type:Object,default:()=>{}}},emits:["click-event"],setup(e,{emit:n}){const r=e,I=t.computed(()=>({"--icon-bottom":r.gameEvent.isHomeTeam?"30px":"-5px","--border-color":r.gameEvent.isSelected?"#336dff":"#747c83","--background-color":r.gameEvent.isSelected?"#336dff":"#0d1d29"})),F=t.computed(()=>{let m="";return r.gameEvent.category_id===18?m="icn-tiros-de-esquina.svg":r.gameEvent.category_id===20?m="icn-tiro-a-porteria.svg":r.gameEvent.category_id===10?m="icn-cambio.svg":r.gameEvent.category_id===21?m="icn-falta.svg":r.gameEvent.category_id===27?m="atajada.svg":r.gameEvent.category_id===17?m="fuera-de-lugar.svg":r.gameEvent.category_id===4||r.gameEvent.category_id===13||r.gameEvent.category_id===14||r.gameEvent.category_id===16||r.gameEvent.category_id===6&&r.gameEvent.event_type_id===1||r.gameEvent.category_id===5&&r.gameEvent.event_type_id===1||r.gameEvent.category_id===1&&r.gameEvent.event_type_id===1||r.gameEvent.category_id===2&&r.gameEvent.event_type_id===1||r.gameEvent.category_id===3&&r.gameEvent.event_type_id===1||r.gameEvent.category_id===7&&r.gameEvent.event_type_id===1||r.gameEvent.category_id===12&&r.gameEvent.event_type_id===1?m="gol.svg":r.gameEvent.category_id==30||r.gameEvent.category_id==31||r.gameEvent.category_id==32||r.gameEvent.category_id==33||r.gameEvent.category_id==34||r.gameEvent.category_id==35||r.gameEvent.category_id==36||r.gameEvent.category_id==37||r.gameEvent.category_id==38||r.gameEvent.category_id==39||r.gameEvent.category_id==40?m="var.png":r.gameEvent.category_id===28?m="tiempo-agregado.svg":r.gameEvent.category_id===26?m="jugada-peligrosa.svg":r.gameEvent.category_id===22?m="penal-marcado.svg":r.gameEvent.category_id===15||r.gameEvent.category_id===23?m="penal-fallado.svg":r.gameEvent.category_id===8?m="icn-tarjeta-amarilla.svg":r.gameEvent.category_id===9?m="icn-tarjeta-roja.svg":m="generic.svg",`${awt}${m}`});function h(){n("click-event",r.gameEvent)}return(m,a)=>(t.openBlock(),t.createElementBlock("div",{id:r.gameEvent.play_id,class:"game-event",onClick:h,style:t.normalizeStyle(I.value)},[t.createElementVNode("div",Q4t,[t.createElementVNode("div",null,t.toDisplayString(e.gameEvent.minute)+"'",1)]),t.createElementVNode("div",ewt,[t.createElementVNode("img",{src:F.value},null,8,twt)])],12,K4t))}},[["__scopeId","data-v-f972a06c"]]),A1a="",rwt=e=>(t.pushScopeId("data-v-df0b18c7"),e=e(),t.popScopeId(),e),iwt={class:"events-line"},owt={class:"events-line__events"},swt=rwt(()=>t.createElementVNode("div",{class:"events-line__events__line"},null,-1)),lwt=Hr({__name:"EventsLine",props:{gameEvents:{type:Array,default:()=>[]}},emits:["click-event"],setup(e,{emit:n}){function r(I){n("click-event",I)}return(I,F)=>(t.openBlock(),t.createElementBlock("div",iwt,[t.createVNode(t.unref(Lg),{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",owt,[swt,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.gameEvents,h=>(t.openBlock(),t.createBlock(nwt,{key:h.id,"game-event":h,onClickEvent:r},null,8,["game-event"]))),128))])]),_:1})]))}},[["__scopeId","data-v-df0b18c7"]]),I1a="",iv=e=>(t.pushScopeId("data-v-66f5d90a"),e=e(),t.popScopeId(),e),cwt={class:"tooltip-data"},dwt=["src"],uwt=iv(()=>t.createElementVNode("div",{class:"game-events__title-left-padding"},null,-1)),hwt=iv(()=>t.createElementVNode("div",{class:"game-events__title"},"Eventos",-1)),pwt={class:"game-events__team-logo"},fwt=["src"],mwt={class:"game-events__event-info"},gwt={key:0,class:"game-events__event-info__line"},ywt={key:1,class:"game-events__event-info__info"},vwt={class:"game-events__event-info__info__player-photo"},_wt={key:0,class:"game-events__event-info__info__player-photo__img"},bwt=["src"],xwt={class:"game-events__event-info__info__event-name"},wwt={class:"game-events__event-info__info__player-name"},kwt=[iv(()=>t.createElementVNode("img",{src:ZS,alt:""},null,-1))],Cwt=iv(()=>t.createElementVNode("div",{class:"game-events__events-padding"},null,-1)),Swt={class:"game-events__events"},Twt={class:"game-events__team-logo"},Ewt=["src"],Awt={class:"game-events__event-info"},Mwt={key:0,class:"game-events__event-info__line"},Iwt={key:1,class:"game-events__event-info__info"},Nwt={class:"game-events__event-info__info__player-photo"},Bwt={key:0,class:"game-events__event-info__info__player-photo__img"},Pwt=["src"],Owt={class:"game-events__event-info__info__event-name"},Lwt={class:"game-events__event-info__info__player-name"},Fwt=[iv(()=>t.createElementVNode("img",{src:ZS,alt:""},null,-1))],Dwt="https://11rcgkydx3.execute-api.us-east-2.amazonaws.com/prod/games/",zwt=Hr({__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:n}){const r=e;let I=null,F=0;const h=t.ref([]),m=t.ref(new Map),a=t.ref(""),y=t.ref(null),g=t.ref({visible:!1,link:""}),o=t.ref(new Set),_=t.ref(0),b=t.computed(()=>r.game.is_live||r.game.game_status===0);t.watch(()=>r.game,w=>{w&&w.gameId!==F&&(o.value.clear(),F=w.gameId,i(),s(w.gameId,w.is_live&&w.game_status===4))},{deep:!0,immediate:!0}),t.watch(()=>a.value,(w,x)=>{if(w!==x){const M=m.value.get(x),k=m.value.get(w);if(M&&(M.isSelected=!1),k){if(!k.playerShortName){const[C,T]=k.player_name.split(","),A=C.split(" ");let E="";for(const B of A)if(E+=` ${B}`,B.length>3)break;k.playerShortName=T&&C?`${T.trim().charAt(0)}.${E}`:""}k.isSelected=!0,y.value=k}}});function c(w){I=setInterval(()=>{s(w)},1e3*60*r.gameEventsIntervalMinutes)}async function s(w,x=!1){try{let M=await u(w),k=!1;w!==_.value&&(h.value=[],m.value=new Map,a.value="",o.value.clear(),_.value=w);let C=M.filter(T=>{const A=o.value.has(T.play_id);return A||o.value.add(T.play_id),!A});C&&(C=C.reduce((T,A)=>(k=A.game_finished,A.team_id&&(A.isHomeTeam=A.team_id===r.game.homeTeam.team_id,T.push(A),m.value.set(A.play_id,A)),T),[]),l(C).forEach(T=>{b.value?h.value.unshift(T):h.value.push(T)})),(b.value||!a.value&&h.value.length)&&(a.value=h.value[0].play_id),x&&!k?c(w):k&&i()}catch(M){console.error(M)}}function i(){I&&(clearInterval(I),I=null)}function l(w){return w.sort((x,M)=>d(x.matchlapse)+Number(x.minute)-(d(M.matchlapse)+Number(M.minute)))}function d(w){let x=0;switch(w){case 1:x=0;break;case 2:x=45;break;case 3:x=90;break;case 4:x=105;break;case 5:x=120;break}return x}async function u(w){try{const M=(await cl.get(`${Dwt}${w}/timeline`,{headers:{Authorization:r.token}})).data;return M?M.plays||[]:[]}catch(x){throw new Error(x)}}function p(w){a.value=w.play_id}function f(){r.canPlayVideos&&y.value.play_id&&n("play-video",{categoryId:y.value.main_category_id,playId:y.value.play_id})}function v(){g.value.visible=!1,g.value.link=""}return t.onBeforeUnmount(()=>{i()}),(w,x)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createVNode(Z4t,{data:g.value,onClose:v},{default:t.withCtx(()=>[t.createElementVNode("div",cwt,[t.createElementVNode("div",null,[t.createElementVNode("video",{class:"tooltip-video",controls:"",autoplay:"",src:g.value.link,format:"video/mp4"},null,8,dwt)])])]),_:1},8,["data"]),t.createElementVNode("div",{class:t.normalizeClass(e.widthScreen>920?"game-events":"game-events__mobile")},[uwt,hwt,t.createElementVNode("div",pwt,[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,fwt)):t.createCommentVNode("",!0)]),t.createElementVNode("div",mwt,[y.value&&y.value.isHomeTeam?(t.openBlock(),t.createElementBlock("div",gwt)):t.createCommentVNode("",!0),y.value&&y.value.isHomeTeam?(t.openBlock(),t.createElementBlock("div",ywt,[t.createElementVNode("div",vwt,[y.value.player_id?(t.openBlock(),t.createElementBlock("div",_wt,[t.createElementVNode("img",{src:`https://az755631.vo.msecnd.net/players-profile/${y.value.player_id}.png`,alt:""},null,8,bwt)])):t.createCommentVNode("",!0)]),t.createElementVNode("div",xwt,t.toDisplayString(y.value.event_type_id===1?y.value.event_type_name:y.value.category_name),1),t.createElementVNode("div",wwt," | "+t.toDisplayString(y.value.playerShortName),1),e.canPlayVideos&&y.value.play_id?(t.openBlock(),t.createElementBlock("div",{key:0,role:"button",class:"game-events__event-info__info__button-play",onClick:f},kwt)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)]),Cwt,t.createElementVNode("div",Swt,[t.createVNode(lwt,{"game-events":h.value,onClickEvent:p},null,8,["game-events"])]),t.createElementVNode("div",Twt,[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,Ewt)):t.createCommentVNode("",!0)]),t.createElementVNode("div",Awt,[y.value&&!y.value.isHomeTeam?(t.openBlock(),t.createElementBlock("div",Mwt)):t.createCommentVNode("",!0),y.value&&!y.value.isHomeTeam?(t.openBlock(),t.createElementBlock("div",Iwt,[t.createElementVNode("div",Nwt,[y.value.player_id?(t.openBlock(),t.createElementBlock("div",Bwt,[t.createElementVNode("img",{src:`https://az755631.vo.msecnd.net/players-profile/${y.value.player_id}.png`,alt:""},null,8,Pwt)])):t.createCommentVNode("",!0)]),t.createElementVNode("div",Owt,t.toDisplayString(y.value.event_type_id===1?y.value.event_type_name:y.value.category_name),1),t.createElementVNode("div",Lwt," | "+t.toDisplayString(y.value.playerShortName),1),e.canPlayVideos&&y.value.play_id?(t.openBlock(),t.createElementBlock("div",{key:0,role:"button",class:"game-events__event-info__info__button-play",onClick:f},Fwt)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)])],2)],64))}},[["__scopeId","data-v-66f5d90a"]]),O1a="",Vwt={class:"toggle-buttons__background"},Rwt=["onClick"],$wt={key:0,class:"toggle-buttons__button__img"},jwt=["src"],J4=Hr({__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:n}){const r=e;t.useCssVars(m=>({29153391:e.height,"1aee961c":e.width,"738679b2":e.mainBackgroundColor,f3cab270:e.borderRadius,"0ec0fe57":e.mainBorderWidth,"0da9fff4":e.mainBorderColor,"68dc0c06":e.fontFamily,f9ef5e4c:e.fontSize,"5713c56a":e.activeBorderWidth,"55fcc707":e.activeBorderColor,"38297f45":e.activeBackgroundColor,"424728c4":e.activeFontColor}));const I=t.ref(r.selectedButtonIndex),F=t.computed(()=>({"--grid-template-columns":`repeat(${r.buttons.length}, 1fr)`}));t.watch(()=>r.selectedButtonIndex,m=>{I.value=m}),t.watch(I,(m,a)=>{m!==a&&n("change",{index:m,button:r.buttons[m]})});function h(m){I.value=m}return(m,a)=>(t.openBlock(),t.createElementBlock("div",Vwt,[t.createElementVNode("div",{class:"toggle-buttons",style:t.normalizeStyle(F.value)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.buttons,(y,g)=>(t.openBlock(),t.createElementBlock("div",{key:`b${g}`,class:t.normalizeClass(["toggle-buttons__button",{active:I.value===g,right:y.img&&g>0}]),onClick:o=>h(g)},[y.img?(t.openBlock(),t.createElementBlock("div",$wt,[t.createElementVNode("img",{src:y.img,alt:""},null,8,jwt)])):t.createCommentVNode("",!0),t.createElementVNode("div",null,t.toDisplayString(y.text||y),1)],10,Rwt))),128))],4)]))}},[["__scopeId","data-v-ad07815f"]]),F1a="",Uwt="/images/cancha-horizontal-raw.jpg",D1a="",KS=e=>(t.pushScopeId("data-v-cb12065f"),e=e(),t.popScopeId(),e),Gwt={class:"tooltip__content"},Hwt={key:0,class:"tooltip__content__category"},Wwt={class:"tooltip__content__player"},qwt={class:"tooltip__content__player__name"},Ywt={class:"tooltip__content__player__photo"},Xwt=["src"],Jwt={class:"tooltip__content__minute"},Zwt={key:1,class:"tooltip__content__game"},Kwt=KS(()=>t.createElementVNode("div",{class:"tooltip__content__game__name"},"Partido:",-1)),Qwt={class:"tooltip__content__game__round-abbreviation"},e5t={class:"tooltip__content__game__logo"},t5t=["src"],a5t=KS(()=>t.createElementVNode("div",{class:"tooltip__content__game__vs"},"VS",-1)),n5t={class:"tooltip__content__game__logo"},r5t=["src"],i5t={key:2,class:"tooltip__content__team"},o5t=KS(()=>t.createElementVNode("div",{class:"tooltip__content__team__name"},"Equipo:",-1)),s5t={class:"tooltip__content__team__logo"},l5t=["src"],c5t=Hr({__name:"TooltipChalkboard",props:{event:{type:Object,default:()=>({})},position:{type:Object,default:()=>({x:"0",y:"0"})}},emits:["close"],setup(e,{emit:n}){const r=e,I=t.computed(()=>({"--top":r.position.y,"--left":r.position.x})),F=t.computed(()=>`${r.event.player.player_name} ${r.event.player.player_lastname}`),h=t.computed(()=>{const[a]=r.event.momentOfPlay.split(":");return`${Number(a)}'`});function m(){n("close")}return(a,y)=>(t.openBlock(),t.createElementBlock("div",{class:"tooltip",onClick:m,style:t.normalizeStyle(I.value)},[t.createElementVNode("div",Gwt,[e.event.categoryName?(t.openBlock(),t.createElementBlock("div",Hwt,t.toDisplayString(e.event.categoryName),1)):t.createCommentVNode("",!0),t.createElementVNode("div",Wwt,[t.createElementVNode("div",qwt,t.toDisplayString(F.value),1),t.createElementVNode("div",Ywt,[t.createElementVNode("img",{src:e.event.player.photo,alt:""},null,8,Xwt)])]),t.createElementVNode("div",Jwt,"Minuto: "+t.toDisplayString(h.value),1),e.event.game?(t.openBlock(),t.createElementBlock("div",Zwt,[Kwt,t.createElementVNode("div",Qwt,t.toDisplayString(e.event.game.roundAbbreviation),1),t.createElementVNode("div",e5t,[t.createElementVNode("img",{src:e.event.game.homeTeam.logo,alt:""},null,8,t5t)]),a5t,t.createElementVNode("div",n5t,[t.createElementVNode("img",{src:e.event.game.awayTeam.logo,alt:""},null,8,r5t)])])):(t.openBlock(),t.createElementBlock("div",i5t,[o5t,t.createElementVNode("div",s5t,[t.createElementVNode("img",{src:e.event.team.logo,alt:""},null,8,l5t)])]))])],4))}},[["__scopeId","data-v-cb12065f"]]),d5t=["id"],u5t=["fill"],h5t=["id"],p5t=["fill"],f5t=["stroke-dasharray","x1","y1","x2","y2","marker-end"],m5t=["x","y","stroke-width","fill","stroke"],g5t=["x","y"],y5t={__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 n=e,r=t.computed(()=>{const _=[];if(n.eventConnection.hasConnectionPath){const b=n.eventConnection.x1===n.eventConnection.x2&&n.eventConnection.y1===n.eventConnection.y2?1:2;let c=a(n.eventConnection.previousEvent?n.eventConnection.previousEvent.y3:n.eventConnection.y1);const s=y(n.eventConnection.previousEvent?n.eventConnection.previousEvent.x3:n.eventConnection.x1);let i=0,l=0;b===2&&(i=a(n.eventConnection.y2),l=y(n.eventConnection.x2));const d=a(n.eventConnection.y3),u=y(n.eventConnection.x3);b===1?_.push({x1:s,y1:c,x2:u,y2:d}):(_.push({x1:s,y1:c,x2:l,y2:i}),_.push({x1:l,y1:i,x2:u,y2:d}))}return _}),I=t.computed(()=>n.mainEventIdSelected!==0?n.eventConnection.relatedPlayId===n.mainEventIdSelected?1:.1:1),F=t.computed(()=>n.mainEventIdSelected!==0?n.eventConnection.relatedPlayId===n.mainEventIdSelected:!0),h=t.computed(()=>a(n.eventConnection.previousEvent?n.eventConnection.previousEvent.y3:n.eventConnection.y1)),m=t.computed(()=>y(n.eventConnection.previousEvent?n.eventConnection.previousEvent.x3:n.eventConnection.x1));function a(_){return(1-_)*100}function y(_){return _*100}function g(_){Iu.emit("mouse-over-event",{mouseEvent:_,eventConnection:n.eventConnection,position:{x:m.value,y:h.value}})}function o(){Iu.emit("mouse-leave-event",{mainEventId:n.eventConnection.relatedPlayId,eventId:n.eventConnection.playId})}return(_,b)=>(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:I.value})},[t.createElementVNode("path",{d:"M0,0 L0,6 L9,3 z",fill:e.color},null,8,u5t)],12,d5t),[[t.vShow,F.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:I.value})},[t.createElementVNode("circle",{cx:"2",cy:"2",r:"2",fill:e.color},null,8,p5t)],12,h5t),[[t.vShow,F.value]])]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r.value,(c,s)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[c.x1&&c.y1?t.withDirectives((t.openBlock(),t.createElementBlock("line",{key:`${e.eventConnection.playId}-${s}`,style:t.normalizeStyle({stroke:e.color,"stroke-width":2,opacity:I.value}),"stroke-dasharray":s===0&&r.value.length===2?"none":"5,5",x1:`${c.x1}%`,y1:`${c.y1}%`,x2:`${c.x2}%`,y2:`${c.y2}%`,"marker-start":"`url(`#b-${eventConnection.playId}`)`","marker-end":`url(${e.isLastEvent&&s===r.value.length-1?`#a-${e.eventConnection.playId}`:""})`},null,12,f5t)),[[t.vShow,F.value]]):t.createCommentVNode("",!0)],64))),256)),t.withDirectives(t.createElementVNode("g",{onMouseover:g,onMouseleave:o,style:t.normalizeStyle({cursor:"pointer",opacity:I.value})},[t.createElementVNode("rect",{x:`${m.value}%`,y:`${h.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:I.value}),rx:"14",ry:"14"},null,12,m5t),t.createElementVNode("text",{x:`${m.value}%`,y:`${h.value}%`,"text-anchor":"middle","dominant-baseline":"middle",dy:"1","font-size":"15",fill:"#fff","font-family":"'Poppins-SemiBold', sans-serif",style:t.normalizeStyle({opacity:I.value})},t.toDisplayString(e.eventConnection.player.jersey),13,g5t)],36),[[t.vShow,F.value]])],64))}},v5t={__name:"EventConnections",props:{eventConnections:{type:Object,required:!0},mainEventIdSelected:{type:Number,default:0}},emits:["click-event","mouse-over-event"],setup(e,{emit:n}){const r=e,I=t.computed(()=>r.eventConnections.getEventsConnectionsByEventType()),F=t.computed(()=>r.eventConnections.getTeamColor());return(h,m)=>(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(I.value,(a,y)=>(t.openBlock(),t.createBlock(y5t,{key:a.id,color:F.value,"is-last-event":y===I.value.length-1,"event-connection":a,"main-event-id-selected":e.mainEventIdSelected},null,8,["color","is-last-event","event-connection","main-event-id-selected"]))),128))}},V1a="",_5t=e=>(t.pushScopeId("data-v-bc874f69"),e=e(),t.popScopeId(),e),b5t={class:"soccer-chalkboard"},x5t={id:"soccerChalkboardField",class:"soccer-chalkboard__field"},w5t=_5t(()=>t.createElementVNode("img",{src:Uwt,alt:""},null,-1)),k5t={viewBox:"0 0 547 340",fill:"none",xmlns:"http://www.w3.org/2000/svg"},C5t=Hr({__name:"SoccerChalkboard",props:{eventsConnections:{type:Array,default:()=>[]},listType:{type:String,default:"events"},playersSelected:{type:Set,default:()=>new Set},teamsSelected:{type:Set,default:()=>new Set}},setup(e){const r=zse()?0:1e3;Iu.on("mouse-over-time-event",b=>{y(b),setTimeout(()=>{y(b)},r)}),Iu.on("mouse-leave-time-event",b=>{setTimeout(()=>{h.value==b&&!I.value&&y(0)},r)}),Iu.on("mouse-over-event",b=>{o(b)}),Iu.on("mouse-leave-event",b=>{setTimeout(()=>{b.eventId===m.value&&_()},r)});const I=t.ref(!1),F=t.ref({}),h=t.ref(0),m=t.ref(0),a=t.ref({x:0,y:0});function y(b){h.value=b}function g(){I.value=!1}function o(b){const s=document.getElementById("soccerChalkboardField");if(s){const i=s.getBoundingClientRect(),l=b.position.x/100*i.width+14,d=b.position.y/100*i.height+14,u=l+170>i.width?i.width-170:l,p=d;h.value=b.eventConnection.relatedPlayId,m.value=b.eventConnection.playId,F.value=b.eventConnection,a.value={x:`${u}px`,y:`${p}px`},I.value=!0}}function _(){I.value=!1,h.value=0}return(b,c)=>(t.openBlock(),t.createElementBlock("div",b5t,[t.createElementVNode("div",x5t,[w5t,(t.openBlock(),t.createElementBlock("svg",k5t,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.eventsConnections,(s,i)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[e.listType==="events"&&s.hasTeam(e.teamsSelected)||e.listType==="players"&&s.hasPlayer(e.playersSelected)?(t.openBlock(),t.createBlock(v5t,{key:i,"event-connections":s,"main-event-id-selected":h.value},null,8,["event-connections","main-event-id-selected"])):t.createCommentVNode("",!0)],64))),256))]))]),I.value?(t.openBlock(),t.createBlock(c5t,{key:0,position:a.value,event:F.value,onClose:g},null,8,["position","event"])):t.createCommentVNode("",!0)]))}},[["__scopeId","data-v-bc874f69"]]),$1a="",dW=e=>(t.pushScopeId("data-v-d484e9ef"),e=e(),t.popScopeId(),e),S5t={class:"events-timeline"},T5t=dW(()=>t.createElementVNode("div",{class:"events-timeline__back-line"},null,-1)),E5t=["onMouseover","onMouseleave"],A5t=["id"],M5t=[dW(()=>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))],I5t=["fill"],N5t=["mask"],B5t=["stroke"],P5t=Hr({__name:"EventsTimeLine",props:{eventsConnections:{type:Array,default:()=>[]},listType:{type:String,default:"events"},playersSelected:{type:Set,default:()=>new Set},teamsSelected:{type:Set,default:()=>new Set}},setup(e){const n=e,r=["0'","45'","90'"],I=t.computed(()=>n.eventsConnections.reduce((m,a)=>{const y={minute:"0'",left:"0%",color:a.getTeamColor(),fontColor:a.getTeamFontColor(),playId:a.mainPlay.playId,playerId:a.mainPlay.playerId,teamId:a.mainPlay.teamId,relatedPlayId:a.relatedPlayId},[g]=a.mainPlay.momentOfPlay.split(":"),o=parseInt(g);return o>=90?(y.minute=`${o}'`,y.left="100%"):(y.minute=`${o}'`,y.left=`${o/90*100}%`),m.push(y),m},[]));function F(m){Iu.emit("mouse-over-time-event",m.playId)}function h(m){Iu.emit("mouse-leave-time-event",m.playId)}return(m,a)=>(t.openBlock(),t.createElementBlock("div",S5t,[(t.openBlock(),t.createElementBlock(t.Fragment,null,t.renderList(r,(y,g)=>t.createElementVNode("div",{class:"events-timeline__game-time",key:g},t.toDisplayString(y),1)),64)),T5t,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(I.value,(y,g)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[e.listType==="events"&&e.teamsSelected.has(y.teamId)||e.listType==="players"&&e.playersSelected.has(y.playerId)?(t.openBlock(),t.createElementBlock("svg",{key:g,width:"20",height:"22",viewBox:"0 0 20 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:t.normalizeStyle({left:y.left,cursor:"pointer"}),onMouseover:o=>F(y),onMouseleave:o=>h(y)},[t.createElementVNode("mask",{id:y.playId.toString(),fill:"white"},M5t,8,A5t),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,I5t),t.createElementVNode("path",{d:"M7.96294 17.4517L8.82896 16.9517L8.54029 16.4517H7.96294V17.4517ZM10.2723 21.4517L9.40631 21.9517L10.2723 23.4517L11.1384 21.9517L10.2723 21.4517ZM12.5817 17.4517V16.4517H12.0044L11.7157 16.9517L12.5817 17.4517ZM1.77234 3.45166C1.77234 2.34709 2.66777 1.45166 3.77234 1.45166V-0.54834C1.5632 -0.54834 -0.227661 1.24252 -0.227661 3.45166H1.77234ZM1.77234 14.4517V3.45166H-0.227661V14.4517H1.77234ZM3.77234 16.4517C2.66777 16.4517 1.77234 15.5562 1.77234 14.4517H-0.227661C-0.227661 16.6608 1.5632 18.4517 3.77234 18.4517V16.4517ZM7.96294 16.4517H3.77234V18.4517H7.96294V16.4517ZM7.09691 17.9517L9.40631 21.9517L11.1384 20.9517L8.82896 16.9517L7.09691 17.9517ZM11.1384 21.9517L13.4478 17.9517L11.7157 16.9517L9.40631 20.9517L11.1384 21.9517ZM16.7723 16.4517H12.5817V18.4517H16.7723V16.4517ZM18.7723 14.4517C18.7723 15.5562 17.8769 16.4517 16.7723 16.4517V18.4517C18.9815 18.4517 20.7723 16.6608 20.7723 14.4517H18.7723ZM18.7723 3.45166V14.4517H20.7723V3.45166H18.7723ZM16.7723 1.45166C17.8769 1.45166 18.7723 2.34709 18.7723 3.45166H20.7723C20.7723 1.24252 18.9815 -0.54834 16.7723 -0.54834V1.45166ZM3.77234 1.45166H16.7723V-0.54834H3.77234V1.45166Z",fill:"#172531",mask:`url(#${y.playId})`},null,8,N5t),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,B5t)])],44,E5t)):t.createCommentVNode("",!0)],64))),256))]))}},[["__scopeId","data-v-d484e9ef"]]),Yl={All:1,YEAR:2,AGE_RANGE:3,NATIONALITY:4,POSITION:5,ELIGIBILITY:6},O5t=(e,n)=>{const r=e.__vccOpts||e;for(const[I,F]of n)r[I]=F;return r},L5t={key:1},F5t={width:"10",height:"8",viewBox:"0 0 10 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},D5t=["fill"],z5t={key:0,class:"checkbox__teams"},V5t={class:"checkbox__teams__logo"},R5t=["src"],$5t={class:"checkbox__teams__logo"},j5t=["src"],U5t={__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:n}){const r=e;t.useCssVars(g=>({"6582e90e":e.width,"310b3edf":e.height}));const I=t.ref(!1),F=t.computed(()=>{const g={color:r.boxValueColor,"font-family":r.fontFamily,height:r.boxWidthAndHeight,width:r.boxWidthAndHeight,minWidth:r.boxWidthAndHeight,"border-radius":r.boxBorderRadius,"margin-top":r.boxMarginTop};return I.value?(g["background-color"]=r.boxBackgroundColor,g.border=`solid ${r.boxBorderWidth} ${r.boxBackgroundColor}`):g.border=`solid ${r.boxBorderWidth} ${r.boxBorderColor}`,g}),h=t.computed(()=>({"font-family":r.boxValueFontFamily,"font-size":r.boxValueFontSize,color:r.boxValueColor,"line-height":1})),m=t.computed(()=>{const g={color:r.labelColor,"font-family":r.fontFamily,"font-size":r.labelFontSize,"white-space":r.labelWhiteSpace,"text-align":r.boxPosition==="top"||r.boxPosition==="bottom"?"center":r.boxPosition};return(r.boxPosition==="left"||r.boxPosition==="right")&&(g[`margin-${r.boxPosition}`]=r.isBoxOnly?"0":r.teamsIds?"8px":"10px"),g});t.watch(()=>r.modelValue,g=>{g!==I.value&&(I.value=g)},{immediate:!0});function a(){r.avoidInteraction||!I.value&&r.avoidToCheck||(I.value=!I.value,n("update:modelValue",I.value))}function y(g){return`${{}.TEAM_LOGOS_URL||"https://az755631.vo.msecnd.net/teams-80/"}${g}.png`}return(g,o)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["checkbox",`box-${e.boxPosition}`]),onClick:a},[t.createElementVNode("div",{class:"checkbox__box",style:t.normalizeStyle(F.value)},[I.value?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[r.boxValue?(t.openBlock(),t.createElementBlock("div",{key:0,class:"checkbox__box__value",style:t.normalizeStyle(h.value)},t.toDisplayString(e.boxValue),5)):(t.openBlock(),t.createElementBlock("div",L5t,[(t.openBlock(),t.createElementBlock("svg",F5t,[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,D5t)]))]))],64)):t.createCommentVNode("",!0)],4),e.teamsIds&&e.teamsIds.length?(t.openBlock(),t.createElementBlock("div",z5t,[t.createElementVNode("div",V5t,[t.createElementVNode("img",{src:y(e.teamsIds[0]),alt:""},null,8,R5t)]),t.createElementVNode("div",$5t,[t.createElementVNode("img",{src:y(e.teamsIds[1]),alt:""},null,8,j5t)])])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"checkbox__label",style:t.normalizeStyle(m.value)},t.toDisplayString(e.label),5)],2))}},yo=O5t(U5t,[["__scopeId","data-v-bcf3bcc6"]]),Bo=(e,n)=>{const r=e.__vccOpts||e;for(const[I,F]of n)r[I]=F;return r},G5t={class:"container"},H5t={key:0,width:"11",height:"2",viewBox:"0 0 11 2",fill:"none",xmlns:"http://www.w3.org/2000/svg"},W5t=["fill"],q5t={key:1,width:"11",height:"11",viewBox:"0 0 11 11",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Y5t=["fill"],X5t={__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(n=>({"2c438f73":e.width,"425f651a":e.height})),(n,r)=>(t.openBlock(),t.createElementBlock("div",G5t,[e.isExpanded?(t.openBlock(),t.createElementBlock("svg",H5t,[t.createElementVNode("rect",{width:"11",height:"1.7",fill:e.collapseIconColor},null,8,W5t)])):(t.openBlock(),t.createElementBlock("svg",q5t,[t.createElementVNode("path",{d:"M11 6.28571H6.28571V11H4.71429V6.28571H0V4.71429H4.71429V0H6.28571V4.71429H11V6.28571Z",fill:e.expandIconColor},null,8,Y5t)]))]))}},Nm=Bo(X5t,[["__scopeId","data-v-e633864b"]]),ov=e=>(t.pushScopeId("data-v-565b4c8d"),e=e(),t.popScopeId(),e),J5t={class:"productivity"},Z5t={class:"productivity__body__offensive"},K5t={class:"productivity__body__title"},Q5t={class:"productivity__body__title__info"},e6t={class:"number-of-categories"},t6t={class:"productivity__body__categories"},a6t={class:"productivity__body__defensive-possession"},n6t={class:"productivity__body__title"},r6t={class:"productivity__body__title__info"},i6t={class:"number-of-categories"},o6t={class:"productivity__body__categories"},s6t={class:"productivity__body__title"},l6t={class:"productivity__body__title__info"},c6t={class:"number-of-categories"},d6t={class:"productivity__body__categories"},u6t={class:"productivity__footer"},h6t={class:"productivity__footer__offenses"},p6t=ov(()=>t.createElementVNode("div",{class:"productivity__footer__offenses__title"}," ¿Debemos quitarle puntos a jugadores que hayan cometido las siguientes infracciones? ",-1)),f6t={class:"productivity__footer__offenses__table"},m6t=ov(()=>t.createElementVNode("div",{class:"productivity__footer__offenses__table__row"},[t.createElementVNode("div"),t.createElementVNode("div",null,"Si"),t.createElementVNode("div",null,"No")],-1)),g6t={class:"productivity__footer__offenses__table__row has-bottom-border has-padding"},y6t=ov(()=>t.createElementVNode("div",{class:"productivity__footer__offenses__table__row__text"},"Faltas cometidas",-1)),v6t={class:"productivity__footer__offenses__table__row has-bottom-border has-padding"},_6t=ov(()=>t.createElementVNode("div",{class:"productivity__footer__offenses__table__row__text"},"Tarjetas amarillas",-1)),b6t={class:"productivity__footer__offenses__table__row has-padding"},x6t=ov(()=>t.createElementVNode("div",{class:"productivity__footer__offenses__table__row__text"},"Tarjetas rojas",-1)),w6t={__name:"TemplateProductivity",props:{componentWidth:{type:Number,default:0},productivityCategories:{type:Object,required:!0},numberOfCategoriesSelected:{type:Number,default:0},areMaxCategoriesReached:{type:Boolean,default:!1},isExpansionMode:{type:Boolean,default:!1},fontFamily:{type:String,default:"'Poppins-Regular'"}},emits:["update:offensesConditions"],setup(e,{emit:n}){const r=e,I=t.ref(!1),F=t.ref(!1),h=t.ref(!1),m=t.ref({areYellowCardsSelected:!1,areRedCardsSelected:!1,areFoulsCommittedSelected:!1}),a=t.computed(()=>({"--template-columns":r.isExpansionMode?"1fr":"1fr 1fr"})),y=t.computed(()=>r.productivityCategories.offensive.categories.reduce((c,s)=>(s.isSelected&&c++,c),0)),g=t.computed(()=>r.productivityCategories.defensive.categories.reduce((c,s)=>(s.isSelected&&c++,c),0)),o=t.computed(()=>r.productivityCategories.possession.categories.reduce((c,s)=>(s.isSelected&&c++,c),0));t.watch(()=>r.productivityCategories,c=>{m.value.areYellowCardsSelected=c.offensesConditions.areYellowCardsSelected,m.value.areRedCardsSelected=c.offensesConditions.areRedCardsSelected,m.value.areFoulsCommittedSelected=c.offensesConditions.areFoulsCommittedSelected},{deep:!0,immediate:!0}),t.watch(m,c=>{n("update:offensesConditions",c)},{deep:!0,immediate:!0});function _(c,s){s.isSelected=c,setTimeout(()=>{s.priority=r.numberOfCategoriesSelected},10)}function b(c){c==="offensive"?I.value=!I.value:c==="defensive"?F.value=!F.value:c==="possession"&&(h.value=!h.value)}return(c,s)=>(t.openBlock(),t.createElementBlock("div",J5t,[t.createElementVNode("div",{class:"productivity__body",style:t.normalizeStyle(a.value)},[t.createElementVNode("div",Z5t,[t.createElementVNode("div",K5t,[t.createElementVNode("div",Q5t,[t.createElementVNode("span",null,t.toDisplayString(e.productivityCategories.offensive.title),1),t.createElementVNode("span",e6t,"("+t.toDisplayString(y.value)+")",1)]),t.createElementVNode("div",{class:"productivity__body__title__expand-button",onClick:s[0]||(s[0]=i=>b("offensive"))},[t.withDirectives(t.createVNode(Nm,{"is-expanded":I.value},null,8,["is-expanded"]),[[t.vShow,e.isExpansionMode]])])]),t.withDirectives(t.createElementVNode("div",t6t,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.productivityCategories.offensive.categories,i=>(t.openBlock(),t.createElementBlock("div",{key:i.id,class:"productivity__checkbox"},[t.createVNode(t.unref(yo),{label:i.name,fontFamily:e.fontFamily,"model-value":i.isSelected,"avoid-to-check":e.areMaxCategoriesReached,"box-value":i.priority||0,"onUpdate:modelValue":l=>_(l,i)},null,8,["label","fontFamily","model-value","avoid-to-check","box-value","onUpdate:modelValue"])]))),128))],512),[[t.vShow,!e.isExpansionMode||I.value]])]),t.createElementVNode("div",a6t,[t.createElementVNode("div",n6t,[t.createElementVNode("div",r6t,[t.createElementVNode("span",null,t.toDisplayString(e.productivityCategories.defensive.title),1),t.createElementVNode("span",i6t,"("+t.toDisplayString(g.value)+")",1)]),t.createElementVNode("div",{class:"productivity__body__title__expand-button",onClick:s[1]||(s[1]=i=>b("defensive"))},[t.withDirectives(t.createVNode(Nm,{"is-expanded":F.value},null,8,["is-expanded"]),[[t.vShow,e.isExpansionMode]])])]),t.withDirectives(t.createElementVNode("div",o6t,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.productivityCategories.defensive.categories,i=>(t.openBlock(),t.createElementBlock("div",{key:i.id,class:"productivity__checkbox"},[t.createVNode(t.unref(yo),{label:i.name,fontFamily:e.fontFamily,"model-value":i.isSelected,"avoid-to-check":e.areMaxCategoriesReached,"box-value":i.priority||0,"onUpdate:modelValue":l=>_(l,i)},null,8,["label","fontFamily","model-value","avoid-to-check","box-value","onUpdate:modelValue"])]))),128))],512),[[t.vShow,!e.isExpansionMode||F.value]]),t.createElementVNode("div",s6t,[t.createElementVNode("div",l6t,[t.createElementVNode("span",null,t.toDisplayString(e.productivityCategories.possession.title),1),t.createElementVNode("span",c6t,"("+t.toDisplayString(o.value)+")",1)]),t.createElementVNode("div",{class:"productivity__body__title__expand-button",onClick:s[2]||(s[2]=i=>b("possession"))},[t.withDirectives(t.createVNode(Nm,{"is-expanded":h.value},null,8,["is-expanded"]),[[t.vShow,e.isExpansionMode]])])]),t.withDirectives(t.createElementVNode("div",d6t,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.productivityCategories.possession.categories,i=>(t.openBlock(),t.createElementBlock("div",{key:i.id,class:"productivity__checkbox"},[t.createVNode(t.unref(yo),{label:i.name,fontFamily:e.fontFamily,"model-value":i.isSelected,"avoid-to-check":e.areMaxCategoriesReached,"box-value":i.priority||0,"onUpdate:modelValue":l=>_(l,i)},null,8,["label","fontFamily","model-value","avoid-to-check","box-value","onUpdate:modelValue"])]))),128))],512),[[t.vShow,!e.isExpansionMode||h.value]])])],4),t.createElementVNode("div",u6t,[t.createElementVNode("div",h6t,[p6t,t.createElementVNode("div",f6t,[m6t,t.createElementVNode("div",g6t,[y6t,t.createElementVNode("div",null,[t.createVNode(t.unref(yo),{"model-value":m.value.areFoulsCommittedSelected,"avoid-interaction":m.value.areFoulsCommittedSelected,"is-box-only":"","onUpdate:modelValue":s[3]||(s[3]=i=>m.value.areFoulsCommittedSelected=i)},null,8,["model-value","avoid-interaction"])]),t.createElementVNode("div",null,[t.createVNode(t.unref(yo),{"model-value":!m.value.areFoulsCommittedSelected,"avoid-interaction":!m.value.areFoulsCommittedSelected,"is-box-only":"","onUpdate:modelValue":s[4]||(s[4]=i=>m.value.areFoulsCommittedSelected=!i)},null,8,["model-value","avoid-interaction"])])]),t.createElementVNode("div",v6t,[_6t,t.createElementVNode("div",null,[t.createVNode(t.unref(yo),{"model-value":m.value.areYellowCardsSelected,"avoid-interaction":m.value.areYellowCardsSelected,"is-box-only":"","onUpdate:modelValue":s[5]||(s[5]=i=>m.value.areYellowCardsSelected=i)},null,8,["model-value","avoid-interaction"])]),t.createElementVNode("div",null,[t.createVNode(t.unref(yo),{"model-value":!m.value.areYellowCardsSelected,"avoid-interaction":!m.value.areYellowCardsSelected,"is-box-only":"","onUpdate:modelValue":s[6]||(s[6]=i=>m.value.areYellowCardsSelected=!i)},null,8,["model-value","avoid-interaction"])])]),t.createElementVNode("div",b6t,[x6t,t.createElementVNode("div",null,[t.createVNode(t.unref(yo),{"model-value":m.value.areRedCardsSelected,"avoid-interaction":m.value.areRedCardsSelected,"is-box-only":"","onUpdate:modelValue":s[7]||(s[7]=i=>m.value.areRedCardsSelected=i)},null,8,["model-value","avoid-interaction"])]),t.createElementVNode("div",null,[t.createVNode(t.unref(yo),{"model-value":!m.value.areRedCardsSelected,"avoid-interaction":!m.value.areRedCardsSelected,"is-box-only":"","onUpdate:modelValue":s[8]||(s[8]=i=>m.value.areRedCardsSelected=!i)},null,8,["model-value","avoid-interaction"])])])])])])]))}},k6t=Bo(w6t,[["__scopeId","data-v-565b4c8d"]]),Z4=e=>(t.pushScopeId("data-v-636bc494"),e=e(),t.popScopeId(),e),C6t={class:"details__header"},S6t=Z4(()=>t.createElementVNode("div",{class:"details__header__title"},"Jugando como",-1)),T6t={class:"details__header__checkbox"},E6t={class:"details__body"},A6t={class:"details__body__playing-as"},M6t=["onClick"],I6t={class:"details__header"},N6t=Z4(()=>t.createElementVNode("div",{class:"details__header__title"},[t.createTextVNode(" En: "),t.createElementVNode("span",{class:"details__header__title-sm"},"(Elige el lapso de tiempo)")],-1)),B6t={class:"details__header__checkbox"},P6t={class:"details__body"},O6t=Z4(()=>t.createElementVNode("div",{class:"details__body__title"},"1er tiempo",-1)),L6t={class:"details__body__game-section"},F6t=["onClick"],D6t={class:"details__body"},z6t=Z4(()=>t.createElementVNode("div",{class:"details__body__title"},"2do tiempo",-1)),V6t={class:"details__body__game-section"},R6t=["onClick"],$6t={__name:"TemplateDetails",props:{isPlayingAsHidden:{type:Boolean,default:!1},playingAs:{type:Array,default:()=>[{name:"Local",isSelected:!0},{name:"Visitante",isSelected:!0}]},gameSections:{type:Array,default:()=>[{text:"0-15",value:1,isSelected:!0},{text:"16-30",value:2,isSelected:!0},{text:"31-45",value:3,isSelected:!0},{text:"46-60",value:4,isSelected:!0},{text:"61-75",value:5,isSelected:!0},{text:"76-90",value:6,isSelected:!0}]},fontFamily:{type:String,default:"'Poppins-Regular'"},buttonsBackgroundColor:{type:String,default:"rgba(255, 255, 255, 0)"},buttonsBackgroundColorActive:{type:String,default:"rgba(203, 238, 107, 0.05)"},buttonsTextColor:{type:String,default:"rgba(255, 255, 255, 0.8)"},buttonsTextColorActive:{type:String,default:"rgba(255, 255, 255, 1)"},buttonsBorderColor:{type:String,default:"#8ea2ab"},buttonsBorderColorActive:{type:String,default:"#cbee6b"},buttonsBorderWidth:{type:String,default:"0.8px"},buttonsBorderWidthActive:{type:String,default:"1px"},buttonsBorderRadius:{type:String,default:"4px"}},setup(e){const n=e;t.useCssVars(o=>({"5f0201bf":e.buttonsBackgroundColor,ab4b9ec0:e.buttonsTextColor,bb96d638:e.buttonsBorderWidth,bdc4d2fe:e.buttonsBorderColor,"6817e1a5":e.buttonsBackgroundColorActive,a320b874:e.buttonsTextColorActive,"51d275ec":e.buttonsBorderWidthActive,caa54632:e.buttonsBorderColorActive}));const r=t.computed(()=>n.playingAs.every(o=>o.isSelected)),I=t.computed(()=>n.gameSections.every(o=>o.isSelected)),F=t.computed(()=>n.gameSections.reduce((o,_)=>(_.value<=3?o.firstHalf.push(_):o.secondHalf.push(_),o),{firstHalf:[],secondHalf:[]})),h=t.computed(()=>({"--border-radius-first-button":`${n.buttonsBorderRadius} 0 0 ${n.buttonsBorderRadius}`,"--border-radius-last-button":`0 ${n.buttonsBorderRadius} ${n.buttonsBorderRadius} 0`}));function m(o){o?n.playingAs.forEach(_=>{_.isSelected=!0}):n.playingAs.forEach((_,b)=>{_.isSelected=b===0})}function a(o){n.playingAs.filter(_=>_.isSelected).length===1&&o.isSelected||(o.isSelected=!o.isSelected)}function y(o){n.gameSections.filter(_=>_.isSelected).length===1&&o.isSelected||(o.isSelected=!o.isSelected)}function g(o){o?n.gameSections.forEach(_=>{_.isSelected=!0}):n.gameSections.forEach((_,b)=>{_.isSelected=b===0})}return(o,_)=>(t.openBlock(),t.createElementBlock("div",{class:"details",style:t.normalizeStyle(h.value)},[t.withDirectives(t.createElementVNode("div",C6t,[S6t,t.createElementVNode("div",T6t,[t.createVNode(t.unref(yo),{label:"Todos",fontFamily:e.fontFamily,"model-value":r.value,"onUpdate:modelValue":m},null,8,["fontFamily","model-value"])])],512),[[t.vShow,!e.isPlayingAsHidden]]),t.withDirectives(t.createElementVNode("div",E6t,[t.createElementVNode("div",A6t,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.playingAs,(b,c)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${c}`,class:t.normalizeClass(["details__body__button",{active:b.isSelected}]),onClick:s=>a(b)},t.toDisplayString(b.name),11,M6t))),128))])],512),[[t.vShow,!e.isPlayingAsHidden]]),t.createElementVNode("div",I6t,[N6t,t.createElementVNode("div",B6t,[t.createVNode(t.unref(yo),{label:"Todos",fontFamily:e.fontFamily,"model-value":I.value,"onUpdate:modelValue":g},null,8,["fontFamily","model-value"])])]),t.createElementVNode("div",P6t,[O6t,t.createElementVNode("div",L6t,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(F.value.firstHalf,(b,c)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${c}`,class:t.normalizeClass(["details__body__button",{active:b.isSelected}]),onClick:s=>y(b)},t.toDisplayString(b.text),11,F6t))),128))])]),t.createElementVNode("div",D6t,[z6t,t.createElementVNode("div",V6t,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(F.value.secondHalf,(b,c)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${c}`,class:t.normalizeClass(["details__body__button",{active:b.isSelected}]),onClick:s=>y(b)},t.toDisplayString(b.text),11,R6t))),128))])])],4))}},j6t=Bo($6t,[["__scopeId","data-v-636bc494"]]),U6t={class:"scroll-container"},G6t={__name:"ScrollContainer",props:{width:{type:String,default:"100%"},height:{type:String,default:"100%"}},setup(e){return t.useCssVars(n=>({fc5d629e:e.height,"8a9ad208":e.width})),(n,r)=>(t.openBlock(),t.createElementBlock("div",U6t,[t.renderSlot(n.$slots,"default",{},void 0,!0)]))}},uW=Bo(G6t,[["__scopeId","data-v-9f29c69f"]]),H6t={class:"tournaments"},W6t={class:"tournaments__tournament"},q6t={__name:"TemplateTournaments",props:{tournaments:{type:Array,default:()=>[]},fontFamily:{type:String,default:"'Poppins-Regular'"}},emits:["change-filters-selected","update:filters"],setup(e,{emit:n}){const r=e,I=t.ref(!1),F=t.computed(()=>r.tournaments.filter(m=>m.isSelected).length);t.watch(()=>r.tournaments,m=>{const a=m.filter(y=>y.isSelected);I.value=a.length===m.length,n("change-filters-selected",a.length),n("update:filters",r.tournaments)},{immediate:!0,deep:!0});function h(m){r.tournaments.forEach((a,y)=>{a.isSelected=m||(y!==0?m:!0)})}return(m,a)=>(t.openBlock(),t.createElementBlock("div",H6t,[t.createVNode(uW,{height:"200px"},{default:t.withCtx(()=>[t.createElementVNode("div",W6t,[t.createVNode(t.unref(yo),{"model-value":I.value,label:"Todas las ligas",fontFamily:e.fontFamily,width:"100%","onUpdate:modelValue":h},null,8,["model-value","fontFamily"])]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.tournaments,y=>(t.openBlock(),t.createElementBlock("div",{key:y.id||y._id,class:"tournaments__tournament"},[t.createVNode(t.unref(yo),{modelValue:y.isSelected,"onUpdate:modelValue":g=>y.isSelected=g,label:y.name,fontFamily:e.fontFamily,width:"100%","avoid-interaction":F.value===1&&y.isSelected},null,8,["modelValue","onUpdate:modelValue","label","fontFamily","avoid-interaction"])]))),128))]),_:1})]))}},Y6t=Bo(q6t,[["__scopeId","data-v-ca9bbe94"]]),Tn={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"},X6t={key:0,class:"plays-golstats__placeholder"},J6t=["onClick"],Z6t={key:0,class:"plays-golstats__item__value"},K6t={class:"plays-golstats__item__text"},Q6t={class:"plays-golstats__item__svg"},e8t={width:"10",height:"8",viewBox:"0 0 10 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t8t=["fill"],a8t={__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:n}){const r=e,I=t.computed(()=>({"--grid-template-columns":r.type===Tn.PLAYS_TYPES?"1fr min-content":"min-content 1fr min-content","--svg-width":`${r.svgWidth}px`,"--svg-height":`${r.svgHeight}px`}));t.watch(()=>r.categories,h=>{const m=h.filter(a=>a.isSelected);n("update:filters",m)},{immediate:!0,deep:!0});function F(h){h.isSelected||(r.categories.forEach(m=>{m.isSelected=!1}),h.isSelected=!0,r.type===Tn.GOLSTATS&&n("change-filters-selected",h.value))}return(h,m)=>(t.openBlock(),t.createElementBlock("div",{class:"plays-golstats",style:t.normalizeStyle(I.value)},[t.createVNode(uW,{height:e.height},{default:t.withCtx(()=>[e.type===t.unref(Tn).PLAYS_TYPES?(t.openBlock(),t.createElementBlock("div",X6t," Elige un tipo de jugada para filtrar: ")):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.categories,(a,y)=>(t.openBlock(),t.createElementBlock("div",{key:`k${y}`,class:"plays-golstats__item",onClick:g=>F(a)},[e.type===t.unref(Tn).GOLSTATS?(t.openBlock(),t.createElementBlock("div",Z6t,t.toDisplayString(a.value),1)):t.createCommentVNode("",!0),t.createElementVNode("div",K6t,t.toDisplayString(a.name),1),t.createElementVNode("div",Q6t,[t.withDirectives((t.openBlock(),t.createElementBlock("svg",e8t,[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,t8t)],512)),[[t.vShow,a.isSelected]])])],8,J6t))),128))]),_:1},8,["height"])],4))}},hW=Bo(a8t,[["__scopeId","data-v-ef99052c"]]),n8t=(e,n)=>{const r=e.__vccOpts||e;for(const[I,F]of n)r[I]=F;return r},QS={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 n=e.which?e.which:e.keyCode();n>31&&(n<48||n>57)&&e.preventDefault()}}}},pW=()=>{t.useCssVars(e=>({"53e1855a":e.textRightColor,da8ee600:e.textRightFontSize,"9fb876ba":e.textRightFontFamily}))},fW=QS.setup;QS.setup=fW?(e,n)=>(pW(),fW(e,n)):pW;const r8t={class:"input-container"},i8t=["type","placeholder","value"],o8t={class:"right-text"};function s8t(e,n,r,I,F,h){return t.openBlock(),t.createElementBlock("div",r8t,[t.createElementVNode("input",{type:r.inputType,placeholder:r.placeholder,value:r.value,style:t.normalizeStyle(h.inputStyle),onKeydown:n[0]||(n[0]=(...m)=>h.onKeyDown&&h.onKeyDown(...m)),onInput:n[1]||(n[1]=(...m)=>h.updateInputValue&&h.updateInputValue(...m))},null,44,i8t),t.createElementVNode("div",o8t,t.toDisplayString(r.textRight),1)])}const mW=n8t(QS,[["render",s8t],["__scopeId","data-v-b73049e7"]]),l8t=(e,n)=>{const r=e.__vccOpts||e;for(const[I,F]of n)r[I]=F;return r},eT={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))}}},gW=()=>{t.useCssVars(e=>({"1c960139":e.height,b2f635d8:e.borderWidthBtn,"06e99898":e.borderType,"55555c76":e.borderColor,"23b6d320":e.borderRadius,"22c97374":e.width,"22bb09fa":e.backgroundColor,c148da7c:e.cursorType,cce756fc:e.fontSize,cff98d60:e.fontStyle,"5123b3a5":e.fontFamily,"47bf58db":e.marginLeftStat,cadc8414:e.fontSizeStat}))},yW=eT.setup;eT.setup=yW?(e,n)=>(gW(),yW(e,n)):gW;const c8t=e=>(t.pushScopeId("data-v-fb269a1e"),e=e(),t.popScopeId(),e),d8t=["src"],u8t={key:1,class:"text"},h8t=["src"],p8t={class:"stats"},f8t=c8t(()=>t.createElementVNode("img",{class:"iconstats",src:"https://az755631.vo.msecnd.net/todoelfut/playdes.png"},null,-1)),m8t={class:"numstats"},g8t={class:"leyend"};function y8t(e,n,r,I,F,h){return t.openBlock(),t.createElementBlock("div",null,[r.type==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["button",F.status&&r.typeOnOff&&"button-active"]),style:t.normalizeStyle([h.customStyle,F.status&&r.typeOnOff&&h.customActive]),onClick:n[0]||(n[0]=(...m)=>h.btnClick&&h.btnClick(...m))},[r.icon&&r.iconPosition.toLowerCase()==="left"?(t.openBlock(),t.createElementBlock("img",{key:0,class:"icon",style:t.normalizeStyle({width:r.iconSize}),src:r.icon},null,12,d8t)):t.createCommentVNode("",!0),r.textValue?(t.openBlock(),t.createElementBlock("div",u8t,t.toDisplayString(r.textValue),1)):t.createCommentVNode("",!0),r.icon&&r.iconPosition.toLowerCase()==="right"?(t.openBlock(),t.createElementBlock("img",{key:2,class:"icon",style:t.normalizeStyle({width:r.iconSize}),src:r.icon},null,12,h8t)):t.createCommentVNode("",!0)],6)):t.createCommentVNode("",!0),r.type==1?(t.openBlock(),t.createElementBlock("div",{key:1,class:"button-target",onClick:n[1]||(n[1]=(...m)=>h.btnClick&&h.btnClick(...m))},[t.createElementVNode("div",p8t,[f8t,t.createElementVNode("div",m8t,t.toDisplayString(r.textStat),1)]),t.createElementVNode("div",g8t,t.toDisplayString(r.textCategory),1)])):t.createCommentVNode("",!0)])}const v8t=l8t(eT,[["render",y8t],["__scopeId","data-v-fb269a1e"]]),_8t={class:"gsc-dropdown__main-container__item-selected"},b8t=["height","width"],x8t=["stroke"],w8t={class:"gsc-dropdown__items-container"},k8t=["onClick"],C8t={key:0,class:"gsc-dropdown__items-footer"},qf={__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(n=>n in e)},listBackgroundColor:{type:String,default:"white"},hoverBackgroundColor:{type:String,default:"#f1f1f1"},listItemPadding:{type:String,default:"10px 12px"},listHeight:{type:String,default:"fit-content"},listItemSelectedColor:{type:String,default:"white"},listItemSelectedBackgroundColor:{type:String,default:"#399cfd"},listItemColor:{type:String,default:"black"},listBorderRadius:{type:String,default:"0"},listBorderColor:{type:String,default:""},listBorderWidth:{type:Number,default:1},isListSameWidth:{type:Boolean,default:!1},isMultipleOption:{type:Boolean,default:!1},footerBorderColor:{type:String,default:"#626970"},footerBorderWidth:{type:Number,default:1},isFooterVisible:{type:Boolean,default:!1},isDisabled:{type:Boolean,default:!1},onlyFirstTime:{type:Boolean,default:!1}},emits:["input","click-ready","update:modelValue"],setup(e,{emit:n}){const r=e,I=t.ref({}),F=t.ref(null),h=t.ref(r.isMultipleOption?-1:0),m=t.ref(!1);t.watch(()=>r.items,(c,s)=>{if(!r.modelValue&&(!r.onlyFirstTime||!s||!s.length)&&c&&c.length){if(r.defaultItemByProp){const i=r.items.findIndex(l=>l[r.defaultItemByProp.propName]===r.defaultItemByProp.value);i!==-1?(h.value=i,I.value=c[i]):(h.value=0,I.value=c[0])}else I.value=c[r.defaultItemByIndex];n("input",I.value)}},{immediate:!0}),t.watch(()=>r.modelValue,c=>{if(c){const s=r.items.findIndex(i=>typeof c=="object"?JSON.stringify(i)===JSON.stringify(c):i===c);s!==-1&&(h.value=s,I.value=r.items[s],n("update:modelValue",I.value))}},{immediate:!0});const a=t.computed(()=>({height:r.height,width:r.width,backgroundColor:r.backgroundColor,borderRadius:`${r.borderRadius}px`,border:`${r.borderType} ${r.borderWidth}px ${r.borderColor}`,color:r.color,"--hover-background-color":r.hoverBackgroundColor,"--list-item-padding":r.listItemPadding,"--list-background-color":r.listBackgroundColor,"--list-height":r.listHeight,"--list-item-selected-color":r.listItemSelectedColor,"--list-item-selected-background-color":r.listItemSelectedBackgroundColor,"--list-item-color":r.listItemColor,"--list-border-radius":`${r.listBorderRadius}`,"--list-border-color":r.listBorderColor,"--list-width":r.isListSameWidth?r.width:"fit-content","--list-border-width":`${r.listBorderWidth}px`,"--footer-border":`${r.footerBorderWidth}px solid ${r.footerBorderColor}`,"--dropdown-opacity":r.isDisabled?"0.5":"1","--dropdown-cursor":r.isDisabled?"not-allowed":"pointer","--dropdown-font-size":r.fontSize?r.fontSize:"14px"})),y=t.computed(()=>({height:`${r.arrowHeight}px`,width:`${r.arrowWidth}px`}));function g(){r.isDisabled||(m.value=!m.value)}function o(c){F.value&&!F.value.contains(c.target)&&(m.value=!1)}function _(c,s){r.isMultipleOption?h.value=-1:(h.value=s,m.value=!1),I.value=c,n("input",I.value),n("update:modelValue",I.value)}function b(){m.value=!1,n("click-ready")}return t.onMounted(()=>{document.addEventListener("click",o)}),t.onBeforeMount(()=>{document.removeEventListener("click",o)}),(c,s)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"dropDown",ref:F,class:"gsc-dropdown",style:t.normalizeStyle(a.value)},[t.createElementVNode("div",{class:"gsc-dropdown__main-container",style:t.normalizeStyle({"padding-right":`${e.arrowWidth+8}px`}),onClick:g},[t.createElementVNode("div",_8t,[t.renderSlot(c.$slots,"default",{selectedItem:I.value})]),t.createElementVNode("div",{class:t.normalizeClass(["gsc-dropdown__main-container__icon",{"rotated-180":m.value}]),style:t.normalizeStyle(y.value)},[(t.openBlock(),t.createElementBlock("svg",{height:e.arrowHeight,width:e.arrowWidth,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M18.394 9.13501L13.1302 14.3988C12.5086 15.0204 11.4914 15.0204 10.8697 14.3988L5.60596 9.13501",stroke:e.arrowColor},null,8,x8t)],8,b8t))],6)],4),t.createVNode(t.Transition,null,{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("div",w8t,[t.createElementVNode("div",null,[t.createElementVNode("div",{class:"gsc-dropdown__items",style:t.normalizeStyle({"margin-top":`${r.borderWidth}px`})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(i,l)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["gsc-dropdown__items__item",{selected:l===h.value}]),key:l,onClick:d=>_(i,l)},[t.renderSlot(c.$slots,"availableItem",{item:i})],10,k8t))),128))],4),e.isFooterVisible?(t.openBlock(),t.createElementBlock("div",C8t,[t.createVNode(t.unref(v8t),{"text-value":"Listo","border-color":"#cbee6b","font-size":"12px",width:"72px",height:"22px","border-radius":"62px","border-width":.8,onClick:b})])):t.createCommentVNode("",!0)])],512),[[t.vShow,m.value]])]),_:3})],4))}},sv={borderType:"solid",listBackgroundColor:"#2E3B46",listBorderColor:"rgba(255, 255, 255, 0.2)",listBorderRadius:"5px",height:"38px",borderWidth:.8,borderColor:"white",backgroundColor:"#2E3B46",color:"white",listItemColor:"white",listItemSelectedBackgroundColor:"#2E3B46",arrowColor:"#fff",width:"100%",listHeight:"200px",isListSameWidth:!0,isFooterVisible:!0,hoverBackgroundColor:"#2E3B46"},J1=e=>(t.pushScopeId("data-v-6b9abee3"),e=e(),t.popScopeId(),e),S8t={class:"universe"},T8t=J1(()=>t.createElementVNode("div",{class:"universe__sub-header"},"Escribe los minutos jugados",-1)),E8t=J1(()=>t.createElementVNode("div",{class:"universe__label"},"Igual o mayor que:",-1)),A8t={class:"universe__inputs"},M8t={class:"universe__inputs__input"},I8t={class:"universe__inputs__checkbox"},N8t=J1(()=>t.createElementVNode("div",{class:"universe__sub-header"},"Escribe el % de minutos jugados contra el total posible",-1)),B8t=J1(()=>t.createElementVNode("div",{class:"universe__label"},"Mayor que:",-1)),P8t={class:"universe__inputs"},O8t={class:"universe__inputs__input"},L8t={class:"universe__inputs__checkbox"},F8t=J1(()=>t.createElementVNode("div",{class:"universe__sub-header"},"Selecciona el lapso de tiempo",-1)),D8t=J1(()=>t.createElementVNode("div",{class:"universe__label"},"Considerando los últimos:",-1)),z8t={class:"universe__dropdown"},V8t={class:"selected-item"},vW=11,R8t={__name:"TemplateUniverse",props:{universeFilters:{type:Object,default:()=>({minutesPlayed:0,percentMinutesPlayed:0,lastMonths:Array.from({length:24},(e,n)=>n+1),statistics:{totals:!0,averagePerGame:!1,averagePerMinute:!1}})},fontFamily:{type:String,default:"'Poppins-Regular'"}},emits:["update:universeFilters"],setup(e,{expose:n,emit:r}){const I=e,F=t.ref(!1),h=t.ref(!1),m=t.ref(!1),a=t.ref({statistics:{}});t.watch(()=>I.universeFilters,c=>{a.value={...c,lastMonths:c.selectedMonth?c.selectedMonth:c.lastMonths[vW],statistics:{...c.statistics}}},{deep:!0,immediate:!0}),t.watch(()=>a,c=>{F.value=!c.value.minutesPlayed||Number(c.value.minutesPlayed)===0,h.value=!c.value.percentMinutesPlayed||Number(c.value.percentMinutesPlayed)===0,m.value=!c.value.lastMonths||Number(c.value.lastMonths)===0,r("update:universeFilters",c)},{deep:!0,immediate:!0});function y(c){a.value.minutesPlayed=c}function g(c){a.value.percentMinutesPlayed=c}function o(c,s){switch(s){case"minutes":F.value=c,c&&(a.value.minutesPlayed=0);break;case"percent":h.value=c,c&&(a.value.percentMinutesPlayed=0);break;case"months":m.value=c,c&&(a.value.lastMonths=0);break}}function _(){a.value={...I.universeFilters,lastMonths:I.universeFilters.lastMonths[vW],statistics:{...I.universeFilters.statistics}}}function b(c){a.value.lastMonths=c}return n({resetFilters:_}),(c,s)=>(t.openBlock(),t.createElementBlock("div",S8t,[T8t,E8t,t.createElementVNode("div",A8t,[t.createElementVNode("div",M8t,[t.createVNode(t.unref(mW),{value:a.value.minutesPlayed,type:"text",inputmode:"numeric","border-radius":"4px",border:"solid 0.8px #8ea2ab","text-right":"Min","is-numbers-only":"",onInputval:y},null,8,["value"])]),t.createElementVNode("div",I8t,[t.createVNode(t.unref(yo),{modelValue:F.value,label:"Indistinto",fontFamily:e.fontFamily,"box-position":"right","onUpdate:modelValue":s[0]||(s[0]=i=>o(i,"minutes"))},null,8,["modelValue","fontFamily"])])]),N8t,B8t,t.createElementVNode("div",P8t,[t.createElementVNode("div",O8t,[t.createVNode(t.unref(mW),{value:a.value.percentMinutesPlayed,"input-type":"number","border-radius":"4px",border:"solid 0.8px #8ea2ab","text-right":"%","is-numbers-only":"",onInputval:g},null,8,["value"])]),t.createElementVNode("div",L8t,[t.createVNode(t.unref(yo),{modelValue:h.value,label:"Indistinto",fontFamily:e.fontFamily,"box-position":"right","onUpdate:modelValue":s[1]||(s[1]=i=>o(i,"percent"))},null,8,["modelValue","fontFamily"])])]),F8t,D8t,t.createElementVNode("div",z8t,[t.createVNode(t.unref(qf),t.mergeProps(t.unref(sv),{items:e.universeFilters.lastMonths,"model-value":a.value.lastMonths,onInput:b}),{default:t.withCtx(({selectedItem:i})=>[t.createElementVNode("div",V8t,t.toDisplayString(i)+" "+t.toDisplayString(i===1?"mes":"meses"),1)]),availableItem:t.withCtx(({item:i})=>[t.createElementVNode("div",null,t.toDisplayString(i)+" "+t.toDisplayString(i===1?"mes":"meses"),1)]),_:1},16,["items","model-value"])]),t.createCommentVNode("",!0),t.createCommentVNode("",!0)]))}},$8t=Bo(R8t,[["__scopeId","data-v-6b9abee3"]]),_W=(e,n)=>{const r=e.__vccOpts||e;for(const[I,F]of n)r[I]=F;return r},j8t={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||[],n=this.min===void 0?0:this.min,r=e.length?e.length-1:100,I=this.max===void 0?r:this.max,F=this.minValue===void 0?25:this.minValue;e.length&&this.minValue===void 0&&(F=1);let h=this.maxValue||75;if(e.length&&this.maxValue===void 0&&(h=e.length-2),I<=n)throw new Error("Invalid props min or max");if(F>h)throw new Error("Invalid props minValue or maxValue");let m=this.rangeMargin===void 0?this.step:this.rangeMargin,a=m%this.step;return a&&(m=m+this.step-a),{valueMin:F<n?n:F,valueMax:h>I?I:h,interVal:null,startX:null,mouseMoveCounter:null,barBox:null,barValue:0,rangeMarginValue:m}},methods:{onBarLeftClick(){this.valueMin-this.step>=this.minimum?this.valueMin-=this.step:this.valueMin=this.minimum},onInnerBarLeftClick(){this.valueMin+this.rangeMarginValue<this.valueMax&&(this.valueMin+=this.step)},onBarRightClick(){this.valueMax+this.step<=this.maximum?this.valueMax+=this.step:this.valueMax=this.maximum},onInnerBarRightClick(){this.valueMax-this.rangeMarginValue>this.valueMin&&(this.valueMax-=this.step)},onInputMinChange(e){let n=parseFloat(e.target.value);n<=this.valueMax-this.rangeMarginValue&&n>=this.minimum?this.valueMin=n:e.target.value=this.valueMin},onInputMaxChange(e){let n=parseFloat(e.target.value);n>=this.valueMin+this.rangeMarginValue&&n<=this.maximum?this.valueMax=n: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 n=e.clientX;e.type==="touchmove"&&(n=e.touches[0].clientX);let r=(n-this.startX)/this.barBox.width,I=this.barValue+(this.maximum-this.minimum)*r,F=I%this.step;I-=F,I<this.minimum?I=this.minimum:I>this.valueMax-this.rangeMarginValue&&(I=this.valueMax-this.rangeMarginValue),this.valueMin=I},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 n=e.clientX;e.type==="touchmove"&&(n=e.touches[0].clientX);let r=(n-this.startX)/this.barBox.width,I=this.barValue+(this.maximum-this.minimum)*r,F=I%this.step;I-=F,I<this.valueMin+this.rangeMarginValue?I=this.valueMin+this.rangeMarginValue:I>this.maximum&&(I=this.maximum),this.valueMax=I},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 n=this.step;e.deltaY<0&&(n=-n),e.shiftKey&&e.ctrlKey?this.valueMin+n>=this.minimum&&this.valueMax+n<=this.maximum&&(this.valueMin=this.valueMin+n,this.valueMax=this.valueMax+n):e.ctrlKey?(n=this.valueMax+n,n<this.valueMin+this.rangeMarginValue?n=this.valueMin+this.rangeMarginValue:n>this.maximum&&(n=this.maximum),this.valueMax=n):e.shiftKey&&(n=this.valueMin+n,n<this.minimum?n=this.minimum:n>this.valueMax-this.rangeMarginValue&&(n=this.valueMax-this.rangeMarginValue),this.valueMin=n)},triggerInput(){let e=0;this.step.toString().includes(".")&&(e=2);let n={min:this.minimum,max:this.maximum,minValue:parseFloat(this.valueMin.toFixed(e)),maxValue:parseFloat(this.valueMax.toFixed(e))};this.$emit("input",n)}},computed:{minimum(){return this.min===void 0?0:this.min},maximum(){let e=this.labels||[],n=e.length?e.length-1:100;return this.max===void 0?n: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(){}},U8t={class:"bar"},G8t=["min","max","step","value"],H8t={class:"caption"},W8t={class:"min-caption"},q8t={class:"bar-inner"},Y8t=["min","max","step","value"],X8t={class:"caption"},J8t={class:"max-caption"},Z8t={key:0,class:"ruler"},K8t={key:1,class:"sub-ruler"},Q8t={key:2,class:"labels"};function ekt(e,n,r,I,F,h){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass([r.baseClassName,F.rangeMarginValue===0?"zero-ranage-margin":""]),onMousewheel:n[10]||(n[10]=t.withModifiers((...m)=>h.onMouseWheel&&h.onMouseWheel(...m),["prevent","stop"]))},[t.createElementVNode("div",U8t,[t.createElementVNode("div",{class:"bar-left",style:t.normalizeStyle({width:h.barMin+"%"}),onClick:n[0]||(n[0]=(...m)=>h.onBarLeftClick&&h.onBarLeftClick(...m))},null,4),t.createElementVNode("input",{class:"input-type-range input-type-range-min",type:"range",min:h.minimum,max:h.maximum,step:r.step,value:F.valueMin,onInput:n[1]||(n[1]=t.withModifiers((...m)=>h.onInputMinChange&&h.onInputMinChange(...m),["stop","prevent"]))},null,40,G8t),t.createElementVNode("div",{class:"thumb thumb-left",onMousedown:n[2]||(n[2]=(...m)=>h.onLeftThumbMousedown&&h.onLeftThumbMousedown(...m)),onTouchstart:n[3]||(n[3]=(...m)=>h.onLeftThumbMousedown&&h.onLeftThumbMousedown(...m))},[t.createElementVNode("div",H8t,[t.createElementVNode("span",W8t,t.toDisplayString(r.minCaption||h.barMinVal),1)])],32),t.createElementVNode("div",q8t,[t.createElementVNode("div",{class:"bar-inner-left",onClick:n[4]||(n[4]=(...m)=>h.onInnerBarLeftClick&&h.onInnerBarLeftClick(...m))}),t.createElementVNode("div",{class:"bar-inner-right",onClick:n[5]||(n[5]=(...m)=>h.onInnerBarRightClick&&h.onInnerBarRightClick(...m))})]),t.createElementVNode("input",{class:"input-type-range input-type-range-max",type:"range",min:h.minimum,max:h.maximum,step:r.step,value:F.valueMax,onInput:n[6]||(n[6]=t.withModifiers((...m)=>h.onInputMaxChange&&h.onInputMaxChange(...m),["stop","prevent"]))},null,40,Y8t),t.createElementVNode("div",{class:"thumb thumb-right",onMousedown:n[7]||(n[7]=(...m)=>h.onRightThumbMousedown&&h.onRightThumbMousedown(...m)),onTouchstart:n[8]||(n[8]=(...m)=>h.onRightThumbMousedown&&h.onRightThumbMousedown(...m))},[t.createElementVNode("div",X8t,[t.createElementVNode("span",J8t,t.toDisplayString(r.maxCaption||h.barMaxVal),1)])],32),t.createElementVNode("div",{class:"bar-right",style:t.normalizeStyle({width:h.barMax+"%"}),onClick:n[9]||(n[9]=(...m)=>h.onBarRightClick&&h.onBarRightClick(...m))},null,4)]),r.ruler?(t.openBlock(),t.createElementBlock("div",Z8t,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(h.stepCount,m=>(t.openBlock(),t.createElementBlock("div",{key:m,class:"ruler-rule"}))),128))])):t.createCommentVNode("",!0),h.subStepCount?(t.openBlock(),t.createElementBlock("div",K8t,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(h.subStepCount,m=>(t.openBlock(),t.createElementBlock("div",{key:m,class:"ruler-sub-rule"}))),128))])):t.createCommentVNode("",!0),r.label?(t.openBlock(),t.createElementBlock("div",Q8t,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(h.scaleLabels,m=>(t.openBlock(),t.createElementBlock("div",{class:"label",key:m},t.toDisplayString(m),1))),128))])):t.createCommentVNode("",!0)],34)}const tkt=_W(j8t,[["render",ekt]]),tT={components:{MultiRangeSlider:tkt},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)}}},bW=()=>{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}))},xW=tT.setup;tT.setup=xW?(e,n)=>(bW(),xW(e,n)):bW;const akt={class:"center"},nkt={class:"bar-ref"},rkt={class:"bar-ref-element-left"},ikt={class:"bar-ref-element-right"};function okt(e,n,r,I,F,h){const m=t.resolveComponent("MultiRangeSlider");return t.openBlock(),t.createElementBlock("div",{class:"custom-range-slider",style:t.normalizeStyle(h.customStyle)},[t.createElementVNode("div",akt,[t.createElementVNode("div",nkt,[t.createElementVNode("div",rkt,[t.createElementVNode("div",{class:"text",style:t.normalizeStyle(h.customStyleText)},"De:",4),t.createElementVNode("div",{class:"value",style:t.normalizeStyle(h.customStyleValue)},t.toDisplayString(F.minValueLocal)+t.toDisplayString(r.minSuffix),5)]),t.createElementVNode("div",ikt,[t.createElementVNode("div",{class:"text",style:t.normalizeStyle(h.customStyleText)},"A:",4),t.createElementVNode("div",{class:"value",style:t.normalizeStyle(h.customStyleValue)},t.toDisplayString(F.maxValueLocal)+t.toDisplayString(r.maxSuffix),5)])]),t.createVNode(m,{baseClassName:"multi-range-slider",min:r.minLimit,max:r.maxLimit,step:1,ruler:!1,label:!1,"min-value":F.minValueLocal,"max-value":F.maxValueLocal,"range-margin":0,onInput:h.onInput},null,8,["min","max","min-value","max-value","onInput"])])],4)}const wW=_W(tT,[["render",okt]]),skt={class:"template-distance"},lkt={__name:"TemplateDistance",props:{distance:{type:Object,default:()=>({minLimit:5,maxLimit:30,minValue:5,maxValue:30})}},emits:["update:distanceFilters"],setup(e,{emit:n}){const r=e,I=t.ref({minValue:0,maxValue:0,minLimit:0,maxLimit:0});t.watch(()=>I.value,h=>{n("update:distanceFilters",h)},{deep:!0}),t.watch(()=>r.distance,h=>{I.value.minValue=h.minValue,I.value.maxValue=h.maxValue,I.value.minLimit=h.minLimit,I.value.maxLimit=h.maxLimit},{immediate:!0,deep:!0});function F(h){I.value.minValue=h.minValue,I.value.maxValue=h.maxValue}return(h,m)=>(t.openBlock(),t.createElementBlock("div",skt,[t.createVNode(t.unref(wW),{"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":I.value.minLimit,"max-limit":I.value.maxLimit,"min-value":I.value.minValue,"max-value":I.value.maxValue,"min-suffix":"m","max-suffix":"+",onInput:F},null,8,["min-limit","max-limit","min-value","max-value"])]))}},ckt=e=>(t.pushScopeId("data-v-5d0cf72a"),e=e(),t.popScopeId(),e),dkt={class:"template-games"},ukt={class:"template-games__header"},hkt=ckt(()=>t.createElementVNode("div",{class:"template-games__header__title"},"Partidos jugados:",-1)),pkt={class:"template-games__header__all-games"},fkt={__name:"TemplateGames",props:{gamesFilters:{type:Array,default:()=>[]}},emits:["update:gamesFilters"],setup(e,{emit:n}){const r=e,I=t.ref(!1),F=t.computed(()=>r.gamesFilters.filter(m=>m.isSelected).length);t.watch(()=>r.gamesFilters,m=>{n("update:gamesFilters",m)},{deep:!0}),t.watch(F,m=>{I.value=m===r.gamesFilters.length,n("update:gamesFilters",r.gamesFilters)},{immediate:!0});const h=m=>{m?r.gamesFilters.forEach(a=>{a.isSelected=m}):r.gamesFilters.forEach((a,y)=>{a.isSelected=y===0}),I.value=m};return(m,a)=>(t.openBlock(),t.createElementBlock("div",dkt,[t.createElementVNode("div",ukt,[hkt,t.createElementVNode("div",pkt,[t.createVNode(t.unref(yo),{modelValue:I.value,label:"Todos","box-position":"right","font-family":"Roboto-Regular, sans-serif","label-font-size":"12px","onUpdate:modelValue":h},null,8,["modelValue"])])]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.gamesFilters,(y,g)=>(t.openBlock(),t.createElementBlock("div",{key:g,class:"template-games__game"},[t.createVNode(t.unref(yo),{modelValue:y.isSelected,"onUpdate:modelValue":o=>y.isSelected=o,label:y.label,"teams-ids":y.teamsIds,"avoid-interaction":F.value===1&&y.isSelected},null,8,["modelValue","onUpdate:modelValue","label","teams-ids","avoid-interaction"])]))),128))]))}},mkt=Bo(fkt,[["__scopeId","data-v-5d0cf72a"]]),gkt=(e,n)=>{const r=e.__vccOpts||e;for(const[I,F]of n)r[I]=F;return r},aT={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))}}},kW=()=>{t.useCssVars(e=>({"1c960139":e.height,b2f635d8:e.borderWidthBtn,"06e99898":e.borderType,"55555c76":e.borderColor,"23b6d320":e.borderRadius,"22c97374":e.width,"22bb09fa":e.backgroundColor,c148da7c:e.cursorType,cce756fc:e.fontSize,cff98d60:e.fontStyle,"5123b3a5":e.fontFamily,"47bf58db":e.marginLeftStat,cadc8414:e.fontSizeStat}))},CW=aT.setup;aT.setup=CW?(e,n)=>(kW(),CW(e,n)):kW;const ykt=e=>(t.pushScopeId("data-v-fb269a1e"),e=e(),t.popScopeId(),e),vkt=["src"],_kt={key:1,class:"text"},bkt=["src"],xkt={class:"stats"},wkt=ykt(()=>t.createElementVNode("img",{class:"iconstats",src:"https://az755631.vo.msecnd.net/todoelfut/playdes.png"},null,-1)),kkt={class:"numstats"},Ckt={class:"leyend"};function Skt(e,n,r,I,F,h){return t.openBlock(),t.createElementBlock("div",null,[r.type==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["button",F.status&&r.typeOnOff&&"button-active"]),style:t.normalizeStyle([h.customStyle,F.status&&r.typeOnOff&&h.customActive]),onClick:n[0]||(n[0]=(...m)=>h.btnClick&&h.btnClick(...m))},[r.icon&&r.iconPosition.toLowerCase()==="left"?(t.openBlock(),t.createElementBlock("img",{key:0,class:"icon",style:t.normalizeStyle({width:r.iconSize}),src:r.icon},null,12,vkt)):t.createCommentVNode("",!0),r.textValue?(t.openBlock(),t.createElementBlock("div",_kt,t.toDisplayString(r.textValue),1)):t.createCommentVNode("",!0),r.icon&&r.iconPosition.toLowerCase()==="right"?(t.openBlock(),t.createElementBlock("img",{key:2,class:"icon",style:t.normalizeStyle({width:r.iconSize}),src:r.icon},null,12,bkt)):t.createCommentVNode("",!0)],6)):t.createCommentVNode("",!0),r.type==1?(t.openBlock(),t.createElementBlock("div",{key:1,class:"button-target",onClick:n[1]||(n[1]=(...m)=>h.btnClick&&h.btnClick(...m))},[t.createElementVNode("div",xkt,[wkt,t.createElementVNode("div",kkt,t.toDisplayString(r.textStat),1)]),t.createElementVNode("div",Ckt,t.toDisplayString(r.textCategory),1)])):t.createCommentVNode("",!0)])}const nT=gkt(aT,[["render",Skt],["__scopeId","data-v-fb269a1e"]]),Tkt=(e,n)=>{const r=e.__vccOpts||e;for(const[I,F]of n)r[I]=F;return r},rT={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))}}},SW=()=>{t.useCssVars(e=>({"1c960139":e.height,b2f635d8:e.borderWidthBtn,"06e99898":e.borderType,"55555c76":e.borderColor,"23b6d320":e.borderRadius,"22c97374":e.width,"22bb09fa":e.backgroundColor,c148da7c:e.cursorType,cce756fc:e.fontSize,cff98d60:e.fontStyle,"5123b3a5":e.fontFamily,"47bf58db":e.marginLeftStat,cadc8414:e.fontSizeStat}))},TW=rT.setup;rT.setup=TW?(e,n)=>(SW(),TW(e,n)):SW;const Ekt=e=>(t.pushScopeId("data-v-fb269a1e"),e=e(),t.popScopeId(),e),Akt=["src"],Mkt={key:1,class:"text"},Ikt=["src"],Nkt={class:"stats"},Bkt=Ekt(()=>t.createElementVNode("img",{class:"iconstats",src:"https://az755631.vo.msecnd.net/todoelfut/playdes.png"},null,-1)),Pkt={class:"numstats"},Okt={class:"leyend"};function Lkt(e,n,r,I,F,h){return t.openBlock(),t.createElementBlock("div",null,[r.type==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["button",F.status&&r.typeOnOff&&"button-active"]),style:t.normalizeStyle([h.customStyle,F.status&&r.typeOnOff&&h.customActive]),onClick:n[0]||(n[0]=(...m)=>h.btnClick&&h.btnClick(...m))},[r.icon&&r.iconPosition.toLowerCase()==="left"?(t.openBlock(),t.createElementBlock("img",{key:0,class:"icon",style:t.normalizeStyle({width:r.iconSize}),src:r.icon},null,12,Akt)):t.createCommentVNode("",!0),r.textValue?(t.openBlock(),t.createElementBlock("div",Mkt,t.toDisplayString(r.textValue),1)):t.createCommentVNode("",!0),r.icon&&r.iconPosition.toLowerCase()==="right"?(t.openBlock(),t.createElementBlock("img",{key:2,class:"icon",style:t.normalizeStyle({width:r.iconSize}),src:r.icon},null,12,Ikt)):t.createCommentVNode("",!0)],6)):t.createCommentVNode("",!0),r.type==1?(t.openBlock(),t.createElementBlock("div",{key:1,class:"button-target",onClick:n[1]||(n[1]=(...m)=>h.btnClick&&h.btnClick(...m))},[t.createElementVNode("div",Nkt,[Bkt,t.createElementVNode("div",Pkt,t.toDisplayString(r.textStat),1)]),t.createElementVNode("div",Okt,t.toDisplayString(r.textCategory),1)])):t.createCommentVNode("",!0)])}const Fkt=Tkt(rT,[["render",Lkt],["__scopeId","data-v-fb269a1e"]]),Dkt=(e,n)=>{const r=e.__vccOpts||e;for(const[I,F]of n)r[I]=F;return r},zkt={key:1},Vkt={width:"10",height:"8",viewBox:"0 0 10 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Rkt=["fill"],$kt={key:0,class:"checkbox__teams"},jkt={class:"checkbox__teams__logo"},Ukt=["src"],Gkt={class:"checkbox__teams__logo"},Hkt=["src"],Wkt={__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:n}){const r=e;t.useCssVars(g=>({"6582e90e":e.width,"310b3edf":e.height}));const I=t.ref(!1),F=t.computed(()=>{const g={color:r.boxValueColor,"font-family":r.fontFamily,height:r.boxWidthAndHeight,width:r.boxWidthAndHeight,minWidth:r.boxWidthAndHeight,"border-radius":r.boxBorderRadius,"margin-top":r.boxMarginTop};return I.value?(g["background-color"]=r.boxBackgroundColor,g.border=`solid ${r.boxBorderWidth} ${r.boxBackgroundColor}`):g.border=`solid ${r.boxBorderWidth} ${r.boxBorderColor}`,g}),h=t.computed(()=>({"font-family":r.boxValueFontFamily,"font-size":r.boxValueFontSize,color:r.boxValueColor,"line-height":1})),m=t.computed(()=>{const g={color:r.labelColor,"font-family":r.fontFamily,"font-size":r.labelFontSize,"white-space":r.labelWhiteSpace,"text-align":r.boxPosition==="top"||r.boxPosition==="bottom"?"center":r.boxPosition};return(r.boxPosition==="left"||r.boxPosition==="right")&&(g[`margin-${r.boxPosition}`]=r.isBoxOnly?"0":r.teamsIds?"8px":"10px"),g});t.watch(()=>r.modelValue,g=>{g!==I.value&&(I.value=g)},{immediate:!0});function a(){r.avoidInteraction||!I.value&&r.avoidToCheck||(I.value=!I.value,n("update:modelValue",I.value))}function y(g){return`${{}.TEAM_LOGOS_URL||"https://az755631.vo.msecnd.net/teams-80/"}${g}.png`}return(g,o)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["checkbox",`box-${e.boxPosition}`]),onClick:a},[t.createElementVNode("div",{class:"checkbox__box",style:t.normalizeStyle(F.value)},[I.value?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[r.boxValue?(t.openBlock(),t.createElementBlock("div",{key:0,class:"checkbox__box__value",style:t.normalizeStyle(h.value)},t.toDisplayString(e.boxValue),5)):(t.openBlock(),t.createElementBlock("div",zkt,[(t.openBlock(),t.createElementBlock("svg",Vkt,[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,Rkt)]))]))],64)):t.createCommentVNode("",!0)],4),e.teamsIds&&e.teamsIds.length?(t.openBlock(),t.createElementBlock("div",$kt,[t.createElementVNode("div",jkt,[t.createElementVNode("img",{src:y(e.teamsIds[0]),alt:""},null,8,Ukt)]),t.createElementVNode("div",Gkt,[t.createElementVNode("img",{src:y(e.teamsIds[1]),alt:""},null,8,Hkt)])])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"checkbox__label",style:t.normalizeStyle(m.value)},t.toDisplayString(e.label),5)],2))}},qkt=Dkt(Wkt,[["__scopeId","data-v-bcf3bcc6"]]),Ykt=(e,n)=>{const r=e.__vccOpts||e;for(const[I,F]of n)r[I]=F;return r},iT={components:{GSCButton:Fkt,GSCCheckbox:qkt},data(){return{update:0,all:!1,refreshBtn14:0,refreshBtn24:0,refreshBtn34:0,refreshBtn44:0,sectors:Array.from({length:16},(e,n)=>({sector:n+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 n=e.sort();JSON.stringify(n)!==JSON.stringify(this.lastUpdatedValue)&&(this.lastUpdatedValue=n,this.sectors.forEach((r,I)=>{r.active=e.includes(I+1),this.validateField(I)}),this.$emit("update:modelValue",e))}},sectors:{handler(e){var n=[];for(let r=0;r<e.length;r++)e[r].active&&n.push(r+1);this.$emit("update:modelValue",n)},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 n=0;n<this.sectors.length;n++)this.sectors[n].active=!0,this.validateField(n);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 n=0;n<this.sectors.length;n++)this.sectors[n].active=!1,this.validateField(n),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 n=0;this.sectors[e].active=!this.sectors[e].active;for(let r=0;r<this.sectors.length;r++)this.sectors[r].active&&(n+=1);n==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 n=0;for(let r=0;r<this.sectors.length;r++)this.sectors[r].active&&(n+=1);n==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,n==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 n=0;for(let r=0;r<this.sectors.length;r++)this.sectors[r].active&&(n+=1);n==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,n==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 n=0;for(let r=0;r<this.sectors.length;r++)this.sectors[r].active&&(n+=1);n==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,n==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 n=0;for(let r=0;r<this.sectors.length;r++)this.sectors[r].active&&(n+=1);n==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,n==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)}}},EW=()=>{t.useCssVars(e=>({"4fe806fe":e.widthContainer,"91de7c52":e.heightContainer,"266afcdc":e.backgroundColor,"2b853536":e.titleFontSize,"986b6446":e.widthFieldGrid,"1af308b6":e.heightFieldGrid}))},AW=iT.setup;iT.setup=AW?(e,n)=>(EW(),AW(e,n)):EW;const Xkt={class:"gsc-field"},Jkt={class:"gsc-field__title-checked"},Zkt={class:"gsc-field__title-checked__title"},Kkt={class:"gsc-field__container-field"},Qkt={class:"gsc-field__container-field__field"},e7t={width:"100%",height:"100%",fill:"#2e3b46",xmlns:"http://www.w3.org/2000/svg"},t7t=["stroke"],a7t=["stroke","stroke-width"],n7t=["stroke","stroke-width"],r7t=["stroke-width","stroke"],i7t=["fill","fill-opacity","stroke","stroke-width"],o7t=["fill","fill-opacity","stroke","stroke-width"],s7t=["fill","fill-opacity","stroke","stroke-width"],l7t=["fill","fill-opacity","stroke","stroke-width"],c7t=["fill","fill-opacity","stroke","stroke-width"],d7t=["fill","fill-opacity","stroke","stroke-width"],u7t=["fill","fill-opacity","stroke","stroke-width"],h7t=["fill","fill-opacity","stroke","stroke-width"],p7t=["fill","fill-opacity","stroke","stroke-width"],f7t=["fill","fill-opacity","stroke","stroke-width"],m7t=["fill","fill-opacity","stroke","stroke-width"],g7t=["fill","fill-opacity","stroke","stroke-width"],y7t=["fill","fill-opacity","stroke","stroke-width"],v7t=["fill","fill-opacity","stroke","stroke-width"],_7t=["fill","fill-opacity","stroke","stroke-width"],b7t=["fill","fill-opacity","stroke","stroke-width"],x7t={class:"gsc-field__container-field__bar-buttons"};function w7t(e,n,r,I,F,h){const m=t.resolveComponent("GSCCheckbox"),a=t.resolveComponent("GSCButton");return t.openBlock(),t.createElementBlock("div",Xkt,[t.createElementVNode("div",Jkt,[t.createElementVNode("div",Zkt,t.toDisplayString(r.title),1),t.createElementVNode("div",{class:"gsc-field__title-checked__check-cont",style:t.normalizeStyle(r.widthField>=350?"min-width: 123px":"")},[(t.openBlock(),t.createBlock(m,{label:r.widthField<350?"Todas":"Todas las zonas","font-family":"Poppins-Regular","box-value-font-family":"Poppins-Regular","box-position":"right","label-font-size":r.titleFontSize,"label-white-space":"nowrap","box-margin-top":"0.4em",value:F.all,key:F.update,"model-value":F.all,"onUpdate:modelValue":h.clickAll},null,8,["label","label-font-size","value","model-value","onUpdate:modelValue"]))],4)]),t.createElementVNode("div",Kkt,[t.createElementVNode("div",Qkt,[(t.openBlock(),t.createElementBlock("svg",e7t,[t.createElementVNode("rect",{x:"1.5",y:"0.5",width:"100%",height:"100%",rx:"1.5",stroke:r.colorLineField},null,8,t7t),t.createElementVNode("path",{style:t.normalizeStyle("transform: translate("+h.translx+"px, "+h.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:r.colorLineField,"stroke-width":r.borderWidthLineField,"stroke-linecap":"square"},null,12,a7t),t.createElementVNode("path",{style:t.normalizeStyle("transform: translateY("+h.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:r.colorLineField,"stroke-width":r.borderWidthLineField,"stroke-linecap":"square"},null,12,n7t),t.createElementVNode("path",{style:t.normalizeStyle("transform: translate("+h.translxcircle+"px, "+h.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":r.borderWidthLineField,stroke:r.colorLineField},null,12,r7t),t.createElementVNode("rect",{x:"0%",y:"0%",width:"25%",height:"25%",fill:F.sectors[0].active?r.backgroundSectorActive:r.backgroundSectorDisabled,"fill-opacity":r.opacitySector,stroke:r.borderColor,"stroke-width":r.borderWidth,onClick:n[0]||(n[0]=y=>h.selectSector(0))},null,8,i7t),t.createElementVNode("rect",{x:"0%",y:"25%",width:"25%",height:"25%",fill:F.sectors[1].active?r.backgroundSectorActive:r.backgroundSectorDisabled,"fill-opacity":r.opacitySector,stroke:r.borderColor,"stroke-width":r.borderWidth,onClick:n[1]||(n[1]=y=>h.selectSector(1))},null,8,o7t),t.createElementVNode("rect",{x:"0%",y:"50%",width:"25%",height:"25%",fill:F.sectors[2].active?r.backgroundSectorActive:r.backgroundSectorDisabled,"fill-opacity":r.opacitySector,stroke:r.borderColor,"stroke-width":r.borderWidth,onClick:n[2]||(n[2]=y=>h.selectSector(2))},null,8,s7t),t.createElementVNode("rect",{x:"0%",y:"75%",width:"25%",height:"25%",fill:F.sectors[3].active?r.backgroundSectorActive:r.backgroundSectorDisabled,"fill-opacity":r.opacitySector,stroke:r.borderColor,"stroke-width":r.borderWidth,onClick:n[3]||(n[3]=y=>h.selectSector(3))},null,8,l7t),t.createElementVNode("rect",{x:"25%",y:"0%",width:"25%",height:"25%",fill:F.sectors[4].active?r.backgroundSectorActive:r.backgroundSectorDisabled,"fill-opacity":r.opacitySector,stroke:r.borderColor,"stroke-width":r.borderWidth,onClick:n[4]||(n[4]=y=>h.selectSector(4))},null,8,c7t),t.createElementVNode("rect",{x:"25%",y:"25%",width:"25%",height:"25%",fill:F.sectors[5].active?r.backgroundSectorActive:r.backgroundSectorDisabled,"fill-opacity":r.opacitySector,stroke:r.borderColor,"stroke-width":r.borderWidth,onClick:n[5]||(n[5]=y=>h.selectSector(5))},null,8,d7t),t.createElementVNode("rect",{x:"25%",y:"50%",width:"25%",height:"25%",fill:F.sectors[6].active?r.backgroundSectorActive:r.backgroundSectorDisabled,"fill-opacity":r.opacitySector,stroke:r.borderColor,"stroke-width":r.borderWidth,onClick:n[6]||(n[6]=y=>h.selectSector(6))},null,8,u7t),t.createElementVNode("rect",{x:"25%",y:"75%",width:"25%",height:"25%",fill:F.sectors[7].active?r.backgroundSectorActive:r.backgroundSectorDisabled,"fill-opacity":r.opacitySector,stroke:r.borderColor,"stroke-width":r.borderWidth,onClick:n[7]||(n[7]=y=>h.selectSector(7))},null,8,h7t),t.createElementVNode("rect",{x:"50%",y:"0%",width:"25%",height:"25%",fill:F.sectors[8].active?r.backgroundSectorActive:r.backgroundSectorDisabled,"fill-opacity":r.opacitySector,stroke:r.borderColor,"stroke-width":r.borderWidth,onClick:n[8]||(n[8]=y=>h.selectSector(8))},null,8,p7t),t.createElementVNode("rect",{x:"50%",y:"25%",width:"25%",height:"25%",fill:F.sectors[9].active?r.backgroundSectorActive:r.backgroundSectorDisabled,"fill-opacity":r.opacitySector,stroke:r.borderColor,"stroke-width":r.borderWidth,onClick:n[9]||(n[9]=y=>h.selectSector(9))},null,8,f7t),t.createElementVNode("rect",{x:"50%",y:"50%",width:"25%",height:"25%",fill:F.sectors[10].active?r.backgroundSectorActive:r.backgroundSectorDisabled,"fill-opacity":r.opacitySector,stroke:r.borderColor,"stroke-width":r.borderWidth,onClick:n[10]||(n[10]=y=>h.selectSector(10))},null,8,m7t),t.createElementVNode("rect",{x:"50%",y:"75%",width:"25%",height:"25%",fill:F.sectors[11].active?r.backgroundSectorActive:r.backgroundSectorDisabled,"fill-opacity":r.opacitySector,stroke:r.borderColor,"stroke-width":r.borderWidth,onClick:n[11]||(n[11]=y=>h.selectSector(11))},null,8,g7t),t.createElementVNode("rect",{x:"75%",y:"0%",width:"25%",height:"25%",fill:F.sectors[12].active?r.backgroundSectorActive:r.backgroundSectorDisabled,"fill-opacity":r.opacitySector,stroke:r.borderColor,"stroke-width":r.borderWidth,onClick:n[12]||(n[12]=y=>h.selectSector(12))},null,8,y7t),t.createElementVNode("rect",{x:"75%",y:"25%",width:"25%",height:"25%",fill:F.sectors[13].active?r.backgroundSectorActive:r.backgroundSectorDisabled,"fill-opacity":r.opacitySector,stroke:r.borderColor,"stroke-width":r.borderWidth,onClick:n[13]||(n[13]=y=>h.selectSector(13))},null,8,v7t),t.createElementVNode("rect",{x:"75%",y:"50%",width:"25%",height:"25%",fill:F.sectors[14].active?r.backgroundSectorActive:r.backgroundSectorDisabled,"fill-opacity":r.opacitySector,stroke:r.borderColor,"stroke-width":r.borderWidth,onClick:n[14]||(n[14]=y=>h.selectSector(14))},null,8,_7t),t.createElementVNode("rect",{x:"75%",y:"75%",width:"25%",height:"25%",fill:F.sectors[15].active?r.backgroundSectorActive:r.backgroundSectorDisabled,"fill-opacity":r.opacitySector,stroke:r.borderColor,"stroke-width":r.borderWidth,onClick:n[15]||(n[15]=y=>h.selectSector(15))},null,8,b7t)]))]),t.createElementVNode("div",x7t,[(t.openBlock(),t.createBlock(a,{"text-value":"1/4 tos","font-size":"12px",height:"26px",width:"65px","type-on-off":!0,"border-width":1,"font-color":"#bfc2c5","border-color":"#8c9399","border-radius":"4px","font-family":"Poppins-Medium","active-border-width":1,"background-color":"","active-background-color":"#cbee6b33",ref:"btn14",onStatus:h.btn14,key:F.refreshBtn14,value:e.status14},null,8,["onStatus","value"])),(t.openBlock(),t.createBlock(a,{"text-value":"2/4 tos","font-size":"12px",height:"26px",width:"65px","type-on-off":!0,"border-width":1,"font-color":"#bfc2c5","border-color":"#8c9399","border-radius":"4px","font-family":"Poppins-Medium","active-border-width":1,"background-color":"","active-background-color":"#cbee6b33",ref:"btn24",onStatus:h.btn24,key:F.refreshBtn24,value:e.status24},null,8,["onStatus","value"])),(t.openBlock(),t.createBlock(a,{"text-value":"3/4 tos","font-size":"12px",height:"26px",width:"65px","type-on-off":!0,"border-width":1,"font-color":"#bfc2c5","border-color":"#8c9399","border-radius":"4px","font-family":"Poppins-Medium","active-border-width":1,"background-color":"","active-background-color":"#cbee6b33",ref:"btn34",onStatus:h.btn34,key:F.refreshBtn34,value:e.status34},null,8,["onStatus","value"])),(t.openBlock(),t.createBlock(a,{"text-value":"4/4 tos","font-size":"12px",height:"26px",width:"65px","type-on-off":!0,"border-width":1,"font-color":"#bfc2c5","border-color":"#8c9399","border-radius":"4px","font-family":"Poppins-Medium","active-border-width":1,"background-color":"","active-background-color":"#cbee6b33",ref:"btn44",onStatus:h.btn44,key:F.refreshBtn44,value:e.status44},null,8,["onStatus","value"]))])])])}const MW=Ykt(iT,[["render",w7t],["__scopeId","data-v-b85699b8"]]),k7t={class:"toggle-buttons__background"},C7t=["onClick"],S7t={__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:n}){const r=e;t.useCssVars(m=>({"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 I=t.ref(r.selectedButtonIndex),F=t.computed(()=>({"--grid-template-columns":`repeat(${r.buttons.length}, 1fr)`}));t.watch(()=>r.selectedButtonIndex,m=>{I.value=m}),t.watch(I,(m,a)=>{m!==a&&n("change",{index:m,button:r.buttons[m]})});function h(m){I.value=m}return(m,a)=>(t.openBlock(),t.createElementBlock("div",k7t,[t.createElementVNode("div",{class:"toggle-buttons",style:t.normalizeStyle(F.value)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.buttons,(y,g)=>(t.openBlock(),t.createElementBlock("div",{key:`b${g}`,class:t.normalizeClass(["toggle-buttons__button",{active:I.value===g}]),onClick:o=>h(g)},t.toDisplayString(y.text||y),11,C7t))),128))],4)]))}},T7t=Bo(S7t,[["__scopeId","data-v-f34a7e56"]]);function IW(e,n){return function(){return e.apply(n,arguments)}}const{toString:E7t}=Object.prototype,{getPrototypeOf:oT}=Object,K4=(e=>n=>{const r=E7t.call(n);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),Mh=e=>(e=e.toLowerCase(),n=>K4(n)===e),Q4=e=>n=>typeof n===e,{isArray:Z1}=Array,lv=Q4("undefined");function A7t(e){return e!==null&&!lv(e)&&e.constructor!==null&&!lv(e.constructor)&&eu(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const NW=Mh("ArrayBuffer");function M7t(e){let n;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?n=ArrayBuffer.isView(e):n=e&&e.buffer&&NW(e.buffer),n}const I7t=Q4("string"),eu=Q4("function"),BW=Q4("number"),ew=e=>e!==null&&typeof e=="object",N7t=e=>e===!0||e===!1,tw=e=>{if(K4(e)!=="object")return!1;const n=oT(e);return(n===null||n===Object.prototype||Object.getPrototypeOf(n)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},B7t=Mh("Date"),P7t=Mh("File"),O7t=Mh("Blob"),L7t=Mh("FileList"),F7t=e=>ew(e)&&eu(e.pipe),D7t=e=>{let n;return e&&(typeof FormData=="function"&&e instanceof FormData||eu(e.append)&&((n=K4(e))==="formdata"||n==="object"&&eu(e.toString)&&e.toString()==="[object FormData]"))},z7t=Mh("URLSearchParams"),[V7t,R7t,$7t,j7t]=["ReadableStream","Request","Response","Headers"].map(Mh),U7t=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function cv(e,n,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let I,F;if(typeof e!="object"&&(e=[e]),Z1(e))for(I=0,F=e.length;I<F;I++)n.call(null,e[I],I,e);else{const h=r?Object.getOwnPropertyNames(e):Object.keys(e),m=h.length;let a;for(I=0;I<m;I++)a=h[I],n.call(null,e[a],a,e)}}function PW(e,n){n=n.toLowerCase();const r=Object.keys(e);let I=r.length,F;for(;I-- >0;)if(F=r[I],n===F.toLowerCase())return F;return null}const Bm=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),OW=e=>!lv(e)&&e!==Bm;function sT(){const{caseless:e}=OW(this)&&this||{},n={},r=(I,F)=>{const h=e&&PW(n,F)||F;tw(n[h])&&tw(I)?n[h]=sT(n[h],I):tw(I)?n[h]=sT({},I):Z1(I)?n[h]=I.slice():n[h]=I};for(let I=0,F=arguments.length;I<F;I++)arguments[I]&&cv(arguments[I],r);return n}const G7t=(e,n,r,{allOwnKeys:I}={})=>(cv(n,(F,h)=>{r&&eu(F)?e[h]=IW(F,r):e[h]=F},{allOwnKeys:I}),e),H7t=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),W7t=(e,n,r,I)=>{e.prototype=Object.create(n.prototype,I),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:n.prototype}),r&&Object.assign(e.prototype,r)},q7t=(e,n,r,I)=>{let F,h,m;const a={};if(n=n||{},e==null)return n;do{for(F=Object.getOwnPropertyNames(e),h=F.length;h-- >0;)m=F[h],(!I||I(m,e,n))&&!a[m]&&(n[m]=e[m],a[m]=!0);e=r!==!1&&oT(e)}while(e&&(!r||r(e,n))&&e!==Object.prototype);return n},Y7t=(e,n,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=n.length;const I=e.indexOf(n,r);return I!==-1&&I===r},X7t=e=>{if(!e)return null;if(Z1(e))return e;let n=e.length;if(!BW(n))return null;const r=new Array(n);for(;n-- >0;)r[n]=e[n];return r},J7t=(e=>n=>e&&n instanceof e)(typeof Uint8Array<"u"&&oT(Uint8Array)),Z7t=(e,n)=>{const r=(e&&e[Symbol.iterator]).call(e);let I;for(;(I=r.next())&&!I.done;){const F=I.value;n.call(e,F[0],F[1])}},K7t=(e,n)=>{let r;const I=[];for(;(r=e.exec(n))!==null;)I.push(r);return I},Q7t=Mh("HTMLFormElement"),e9t=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,I){return r.toUpperCase()+I}),LW=(({hasOwnProperty:e})=>(n,r)=>e.call(n,r))(Object.prototype),t9t=Mh("RegExp"),FW=(e,n)=>{const r=Object.getOwnPropertyDescriptors(e),I={};cv(r,(F,h)=>{let m;(m=n(F,h,e))!==!1&&(I[h]=m||F)}),Object.defineProperties(e,I)},a9t=e=>{FW(e,(n,r)=>{if(eu(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const I=e[r];if(eu(I)){if(n.enumerable=!1,"writable"in n){n.writable=!1;return}n.set||(n.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},n9t=(e,n)=>{const r={},I=F=>{F.forEach(h=>{r[h]=!0})};return Z1(e)?I(e):I(String(e).split(n)),r},r9t=()=>{},i9t=(e,n)=>e!=null&&Number.isFinite(e=+e)?e:n,lT="abcdefghijklmnopqrstuvwxyz",DW="0123456789",zW={DIGIT:DW,ALPHA:lT,ALPHA_DIGIT:lT+lT.toUpperCase()+DW},o9t=(e=16,n=zW.ALPHA_DIGIT)=>{let r="";const{length:I}=n;for(;e--;)r+=n[Math.random()*I|0];return r};function s9t(e){return!!(e&&eu(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const l9t=e=>{const n=new Array(10),r=(I,F)=>{if(ew(I)){if(n.indexOf(I)>=0)return;if(!("toJSON"in I)){n[F]=I;const h=Z1(I)?[]:{};return cv(I,(m,a)=>{const y=r(m,F+1);!lv(y)&&(h[a]=y)}),n[F]=void 0,h}}return I};return r(e,0)},c9t=Mh("AsyncFunction"),d9t=e=>e&&(ew(e)||eu(e))&&eu(e.then)&&eu(e.catch),VW=((e,n)=>e?setImmediate:n?((r,I)=>(Bm.addEventListener("message",({source:F,data:h})=>{F===Bm&&h===r&&I.length&&I.shift()()},!1),F=>{I.push(F),Bm.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",eu(Bm.postMessage)),u9t=typeof queueMicrotask<"u"?queueMicrotask.bind(Bm):typeof process<"u"&&process.nextTick||VW,qn={isArray:Z1,isArrayBuffer:NW,isBuffer:A7t,isFormData:D7t,isArrayBufferView:M7t,isString:I7t,isNumber:BW,isBoolean:N7t,isObject:ew,isPlainObject:tw,isReadableStream:V7t,isRequest:R7t,isResponse:$7t,isHeaders:j7t,isUndefined:lv,isDate:B7t,isFile:P7t,isBlob:O7t,isRegExp:t9t,isFunction:eu,isStream:F7t,isURLSearchParams:z7t,isTypedArray:J7t,isFileList:L7t,forEach:cv,merge:sT,extend:G7t,trim:U7t,stripBOM:H7t,inherits:W7t,toFlatObject:q7t,kindOf:K4,kindOfTest:Mh,endsWith:Y7t,toArray:X7t,forEachEntry:Z7t,matchAll:K7t,isHTMLForm:Q7t,hasOwnProperty:LW,hasOwnProp:LW,reduceDescriptors:FW,freezeMethods:a9t,toObjectSet:n9t,toCamelCase:e9t,noop:r9t,toFiniteNumber:i9t,findKey:PW,global:Bm,isContextDefined:OW,ALPHABET:zW,generateString:o9t,isSpecCompliantForm:s9t,toJSONObject:l9t,isAsyncFn:c9t,isThenable:d9t,setImmediate:VW,asap:u9t};function to(e,n,r,I,F){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",n&&(this.code=n),r&&(this.config=r),I&&(this.request=I),F&&(this.response=F)}qn.inherits(to,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:qn.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const RW=to.prototype,$W={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{$W[e]={value:e}}),Object.defineProperties(to,$W),Object.defineProperty(RW,"isAxiosError",{value:!0}),to.from=(e,n,r,I,F,h)=>{const m=Object.create(RW);return qn.toFlatObject(e,m,function(a){return a!==Error.prototype},a=>a!=="isAxiosError"),to.call(m,e.message,n,r,I,F),m.cause=e,m.name=e.name,h&&Object.assign(m,h),m};const h9t=null;function cT(e){return qn.isPlainObject(e)||qn.isArray(e)}function jW(e){return qn.endsWith(e,"[]")?e.slice(0,-2):e}function UW(e,n,r){return e?e.concat(n).map(function(I,F){return I=jW(I),!r&&F?"["+I+"]":I}).join(r?".":""):n}function p9t(e){return qn.isArray(e)&&!e.some(cT)}const f9t=qn.toFlatObject(qn,{},null,function(e){return/^is[A-Z]/.test(e)});function aw(e,n,r){if(!qn.isObject(e))throw new TypeError("target must be an object");n=n||new FormData,r=qn.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(c,s){return!qn.isUndefined(s[c])});const I=r.metaTokens,F=r.visitor||g,h=r.dots,m=r.indexes,a=(r.Blob||typeof Blob<"u"&&Blob)&&qn.isSpecCompliantForm(n);if(!qn.isFunction(F))throw new TypeError("visitor must be a function");function y(c){if(c===null)return"";if(qn.isDate(c))return c.toISOString();if(!a&&qn.isBlob(c))throw new to("Blob is not supported. Use a Buffer instead.");return qn.isArrayBuffer(c)||qn.isTypedArray(c)?a&&typeof Blob=="function"?new Blob([c]):Buffer.from(c):c}function g(c,s,i){let l=c;if(c&&!i&&typeof c=="object"){if(qn.endsWith(s,"{}"))s=I?s:s.slice(0,-2),c=JSON.stringify(c);else if(qn.isArray(c)&&p9t(c)||(qn.isFileList(c)||qn.endsWith(s,"[]"))&&(l=qn.toArray(c)))return s=jW(s),l.forEach(function(d,u){!(qn.isUndefined(d)||d===null)&&n.append(m===!0?UW([s],u,h):m===null?s:s+"[]",y(d))}),!1}return cT(c)?!0:(n.append(UW(i,s,h),y(c)),!1)}const o=[],_=Object.assign(f9t,{defaultVisitor:g,convertValue:y,isVisitable:cT});function b(c,s){if(!qn.isUndefined(c)){if(o.indexOf(c)!==-1)throw Error("Circular reference detected in "+s.join("."));o.push(c),qn.forEach(c,function(i,l){(!(qn.isUndefined(i)||i===null)&&F.call(n,i,qn.isString(l)?l.trim():l,s,_))===!0&&b(i,s?s.concat(l):[l])}),o.pop()}}if(!qn.isObject(e))throw new TypeError("data must be an object");return b(e),n}function GW(e){const n={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return n[r]})}function dT(e,n){this._pairs=[],e&&aw(e,this,n)}const HW=dT.prototype;HW.append=function(e,n){this._pairs.push([e,n])},HW.toString=function(e){const n=e?function(r){return e.call(this,r,GW)}:GW;return this._pairs.map(function(r){return n(r[0])+"="+n(r[1])},"").join("&")};function m9t(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function WW(e,n,r){if(!n)return e;const I=r&&r.encode||m9t,F=r&&r.serialize;let h;if(F?h=F(n,r):h=qn.isURLSearchParams(n)?n.toString():new dT(n,r).toString(I),h){const m=e.indexOf("#");m!==-1&&(e=e.slice(0,m)),e+=(e.indexOf("?")===-1?"?":"&")+h}return e}const qW=class{constructor(){this.handlers=[]}use(n,r,I){return this.handlers.push({fulfilled:n,rejected:r,synchronous:I?I.synchronous:!1,runWhen:I?I.runWhen:null}),this.handlers.length-1}eject(n){this.handlers[n]&&(this.handlers[n]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(n){qn.forEach(this.handlers,function(r){r!==null&&n(r)})}},YW={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},g9t=typeof URLSearchParams<"u"?URLSearchParams:dT,y9t=typeof FormData<"u"?FormData:null,v9t=typeof Blob<"u"?Blob:null,_9t={isBrowser:!0,classes:{URLSearchParams:g9t,FormData:y9t,Blob:v9t},protocols:["http","https","file","blob","url","data"]},uT=typeof window<"u"&&typeof document<"u",b9t=(e=>uT&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),x9t=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),w9t=uT&&window.location.href||"http://localhost",k9t=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:uT,hasStandardBrowserEnv:b9t,hasStandardBrowserWebWorkerEnv:x9t,origin:w9t},Symbol.toStringTag,{value:"Module"})),Ih={...k9t,..._9t};function C9t(e,n){return aw(e,new Ih.classes.URLSearchParams,Object.assign({visitor:function(r,I,F,h){return Ih.isNode&&qn.isBuffer(r)?(this.append(I,r.toString("base64")),!1):h.defaultVisitor.apply(this,arguments)}},n))}function S9t(e){return qn.matchAll(/\w+|\[(\w*)]/g,e).map(n=>n[0]==="[]"?"":n[1]||n[0])}function T9t(e){const n={},r=Object.keys(e);let I;const F=r.length;let h;for(I=0;I<F;I++)h=r[I],n[h]=e[h];return n}function XW(e){function n(r,I,F,h){let m=r[h++];if(m==="__proto__")return!0;const a=Number.isFinite(+m),y=h>=r.length;return m=!m&&qn.isArray(F)?F.length:m,y?(qn.hasOwnProp(F,m)?F[m]=[F[m],I]:F[m]=I,!a):((!F[m]||!qn.isObject(F[m]))&&(F[m]=[]),n(r,I,F[m],h)&&qn.isArray(F[m])&&(F[m]=T9t(F[m])),!a)}if(qn.isFormData(e)&&qn.isFunction(e.entries)){const r={};return qn.forEachEntry(e,(I,F)=>{n(S9t(I),F,r,0)}),r}return null}function E9t(e,n,r){if(qn.isString(e))try{return(n||JSON.parse)(e),qn.trim(e)}catch(I){if(I.name!=="SyntaxError")throw I}return(r||JSON.stringify)(e)}const hT={transitional:YW,adapter:["xhr","http","fetch"],transformRequest:[function(e,n){const r=n.getContentType()||"",I=r.indexOf("application/json")>-1,F=qn.isObject(e);if(F&&qn.isHTMLForm(e)&&(e=new FormData(e)),qn.isFormData(e))return I?JSON.stringify(XW(e)):e;if(qn.isArrayBuffer(e)||qn.isBuffer(e)||qn.isStream(e)||qn.isFile(e)||qn.isBlob(e)||qn.isReadableStream(e))return e;if(qn.isArrayBufferView(e))return e.buffer;if(qn.isURLSearchParams(e))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let h;if(F){if(r.indexOf("application/x-www-form-urlencoded")>-1)return C9t(e,this.formSerializer).toString();if((h=qn.isFileList(e))||r.indexOf("multipart/form-data")>-1){const m=this.env&&this.env.FormData;return aw(h?{"files[]":e}:e,m&&new m,this.formSerializer)}}return F||I?(n.setContentType("application/json",!1),E9t(e)):e}],transformResponse:[function(e){const n=this.transitional||hT.transitional,r=n&&n.forcedJSONParsing,I=this.responseType==="json";if(qn.isResponse(e)||qn.isReadableStream(e))return e;if(e&&qn.isString(e)&&(r&&!this.responseType||I)){const F=!(n&&n.silentJSONParsing)&&I;try{return JSON.parse(e)}catch(h){if(F)throw h.name==="SyntaxError"?to.from(h,to.ERR_BAD_RESPONSE,this,null,this.response):h}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ih.classes.FormData,Blob:Ih.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};qn.forEach(["delete","get","head","post","put","patch"],e=>{hT.headers[e]={}});const pT=hT,A9t=qn.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"]),M9t=e=>{const n={};let r,I,F;return e&&e.split(`
|
|
124
|
+
*/const Kc={itemsToShow:1,itemsToScroll:1,modelValue:0,transition:300,autoplay:0,snapAlign:"center",wrapAround:!1,throttle:16,pauseAutoplayOnHover:!1,mouseDrag:!0,touchDrag:!0,dir:"ltr",breakpoints:void 0,i18n:{ariaNextSlide:"Navigate to next slide",ariaPreviousSlide:"Navigate to previous slide",ariaNavigateToSlide:"Navigate to slide {slideNumber}",ariaGallery:"Gallery",itemXofY:"Item {currentSlide} of {slidesCount}",iconArrowUp:"Arrow pointing upwards",iconArrowDown:"Arrow pointing downwards",iconArrowRight:"Arrow pointing to the right",iconArrowLeft:"Arrow pointing to the left"}},GH={itemsToShow:{default:Kc.itemsToShow,type:Number},itemsToScroll:{default:Kc.itemsToScroll,type:Number},wrapAround:{default:Kc.wrapAround,type:Boolean},throttle:{default:Kc.throttle,type:Number},snapAlign:{default:Kc.snapAlign,validator(e){return["start","end","center","center-even","center-odd"].includes(e)}},transition:{default:Kc.transition,type:Number},breakpoints:{default:Kc.breakpoints,type:Object},autoplay:{default:Kc.autoplay,type:Number},pauseAutoplayOnHover:{default:Kc.pauseAutoplayOnHover,type:Boolean},modelValue:{default:void 0,type:Number},mouseDrag:{default:Kc.mouseDrag,type:Boolean},touchDrag:{default:Kc.touchDrag,type:Boolean},dir:{default:Kc.dir,validator(e){return["rtl","ltr"].includes(e)}},i18n:{default:Kc.i18n,type:Object},settings:{default(){return{}},type:Object}};function axt({config:e,slidesCount:n}){const{snapAlign:r,wrapAround:I,itemsToShow:F=1}=e;if(I)return Math.max(n-1,0);let h;switch(r){case"start":h=n-F;break;case"end":h=n-1;break;case"center":case"center-odd":h=n-Math.ceil((F-.5)/2);break;case"center-even":h=n-Math.ceil(F/2);break;default:h=0;break}return Math.max(h,0)}function nxt({config:e,slidesCount:n}){const{wrapAround:r,snapAlign:I,itemsToShow:F=1}=e;let h=0;if(r||F>n)return h;switch(I){case"start":h=0;break;case"end":h=F-1;break;case"center":case"center-odd":h=Math.floor((F-1)/2);break;case"center-even":h=Math.floor((F-2)/2);break;default:h=0;break}return h}function US({val:e,max:n,min:r}){return n<r?e:Math.min(Math.max(e,r),n)}function rxt({config:e,currentSlide:n,slidesCount:r}){const{snapAlign:I,wrapAround:F,itemsToShow:h=1}=e;let m=n;switch(I){case"center":case"center-odd":m-=(h-1)/2;break;case"center-even":m-=(h-2)/2;break;case"end":m-=h-1;break}return F?m:US({val:m,max:r-h,min:0})}function HH(e){return e?e.reduce((n,r)=>{var I;return r.type===t.Fragment?[...n,...HH(r.children)]:((I=r.type)===null||I===void 0?void 0:I.name)==="CarouselSlide"?[...n,r]:n},[]):[]}function GS({val:e,max:n,min:r=0}){return e>n?GS({val:e-(n+1),max:n,min:r}):e<r?GS({val:e+(n+1),max:n,min:r}):e}function ixt(e,n){let r;return n?function(...I){const F=this;r||(e.apply(F,I),r=!0,setTimeout(()=>r=!1,n))}:e}function oxt(e,n){let r;return function(...I){r&&clearTimeout(r),r=setTimeout(()=>{e(...I),r=null},n)}}function sxt(e="",n={}){return Object.entries(n).reduce((r,[I,F])=>r.replace(`{${I}}`,String(F)),e)}var lxt=t.defineComponent({name:"ARIA",setup(){const e=t.inject("config",t.reactive(Object.assign({},Kc))),n=t.inject("currentSlide",t.ref(0)),r=t.inject("slidesCount",t.ref(0));return()=>t.h("div",{class:["carousel__liveregion","carousel__sr-only"],"aria-live":"polite","aria-atomic":"true"},sxt(e.i18n.itemXofY,{currentSlide:n.value+1,slidesCount:r.value}))}}),cxt=t.defineComponent({name:"Carousel",props:GH,setup(e,{slots:n,emit:r,expose:I}){var F;const h=t.ref(null),m=t.ref([]),a=t.ref(0),y=t.ref(0),g=t.reactive(Object.assign({},Kc));let o=Object.assign({},Kc),_;const b=t.ref((F=e.modelValue)!==null&&F!==void 0?F:0),c=t.ref(0),s=t.ref(0),i=t.ref(0),l=t.ref(0);let d,u;t.provide("config",g),t.provide("slidesCount",y),t.provide("currentSlide",b),t.provide("maxSlide",i),t.provide("minSlide",l),t.provide("slideWidth",a);function p(){_=Object.assign({},e.breakpoints),o=Object.assign(Object.assign(Object.assign({},o),e),{i18n:Object.assign(Object.assign({},o.i18n),e.i18n),breakpoints:void 0}),v(o)}function f(){if(!_||!Object.keys(_).length)return;const te=Object.keys(_).map(oe=>Number(oe)).sort((oe,ce)=>+ce-+oe);let ee=Object.assign({},o);te.some(oe=>{const ce=window.matchMedia(`(min-width: ${oe}px)`).matches;return ce&&(ee=Object.assign(Object.assign({},ee),_[oe])),ce}),v(ee)}function v(te){Object.entries(te).forEach(([ee,oe])=>g[ee]=oe)}const w=oxt(()=>{f(),x()},16);function x(){if(!h.value)return;const te=h.value.getBoundingClientRect();a.value=te.width/g.itemsToShow}function M(){y.value<=0||(s.value=Math.ceil((y.value-1)/2),i.value=axt({config:g,slidesCount:y.value}),l.value=nxt({config:g,slidesCount:y.value}),g.wrapAround||(b.value=US({val:b.value,max:i.value,min:l.value})))}t.onMounted(()=>{t.nextTick(()=>x()),setTimeout(()=>x(),1e3),f(),V(),window.addEventListener("resize",w,{passive:!0}),r("init")}),t.onUnmounted(()=>{u&&clearTimeout(u),d&&clearInterval(d),window.removeEventListener("resize",w,{passive:!0})});let k=!1;const C={x:0,y:0},T={x:0,y:0},A=t.reactive({x:0,y:0}),E=t.ref(!1),B=t.ref(!1),S=()=>{E.value=!0},L=()=>{E.value=!1};function N(te){["INPUT","TEXTAREA","SELECT"].includes(te.target.tagName)||(k=te.type==="touchstart",k||te.preventDefault(),!(!k&&te.button!==0||j.value)&&(C.x=k?te.touches[0].clientX:te.clientX,C.y=k?te.touches[0].clientY:te.clientY,document.addEventListener(k?"touchmove":"mousemove",O,!0),document.addEventListener(k?"touchend":"mouseup",z,!0)))}const O=ixt(te=>{B.value=!0,T.x=k?te.touches[0].clientX:te.clientX,T.y=k?te.touches[0].clientY:te.clientY;const ee=T.x-C.x,oe=T.y-C.y;A.y=oe,A.x=ee},g.throttle);function z(){const te=g.dir==="rtl"?-1:1,ee=Math.sign(A.x)*.4,oe=Math.round(A.x/a.value+ee)*te;if(oe&&!k){const ce=he=>{he.stopPropagation(),window.removeEventListener("click",ce,!0)};window.addEventListener("click",ce,!0)}q(b.value-oe),A.x=0,A.y=0,B.value=!1,document.removeEventListener(k?"touchmove":"mousemove",O,!0),document.removeEventListener(k?"touchend":"mouseup",z,!0)}function V(){!g.autoplay||g.autoplay<=0||(d=setInterval(()=>{g.pauseAutoplayOnHover&&E.value||$()},g.autoplay))}function R(){d&&(clearInterval(d),d=null),V()}const j=t.ref(!1);function q(te){const ee=g.wrapAround?te:US({val:te,max:i.value,min:l.value});b.value===ee||j.value||(r("slide-start",{slidingToIndex:te,currentSlideIndex:b.value,prevSlideIndex:c.value,slidesCount:y.value}),j.value=!0,c.value=b.value,b.value=ee,u=setTimeout(()=>{if(g.wrapAround){const oe=GS({val:ee,max:i.value,min:0});oe!==b.value&&(b.value=oe,r("loop",{currentSlideIndex:b.value,slidingToIndex:te}))}r("update:modelValue",b.value),r("slide-end",{currentSlideIndex:b.value,prevSlideIndex:c.value,slidesCount:y.value}),j.value=!1,R()},g.transition))}function $(){q(b.value+g.itemsToScroll)}function H(){q(b.value-g.itemsToScroll)}const X={slideTo:q,next:$,prev:H};t.provide("nav",X),t.provide("isSliding",j);const G=t.computed(()=>rxt({config:g,currentSlide:b.value,slidesCount:y.value}));t.provide("slidesToScroll",G);const Y=t.computed(()=>{const te=g.dir==="rtl"?-1:1,ee=G.value*a.value*te;return{transform:`translateX(${A.x-ee}px)`,transition:`${j.value?g.transition:0}ms`,margin:g.wrapAround?`0 -${y.value*a.value}px`:"",width:"100%"}});function K(){p(),f(),M(),x(),R()}Object.keys(GH).forEach(te=>{["modelValue"].includes(te)||t.watch(()=>e[te],K)}),t.watch(()=>e.modelValue,te=>{te!==b.value&&q(Number(te))}),t.watch(y,M),r("before-init"),p();const le={config:g,slidesCount:y,slideWidth:a,next:$,prev:H,slideTo:q,currentSlide:b,maxSlide:i,minSlide:l,middleSlide:s};I({updateBreakpointsConfigs:f,updateSlidesData:M,updateSlideWidth:x,initDefaultConfigs:p,restartCarousel:K,slideTo:q,next:$,prev:H,nav:X,data:le});const ie=n.default||n.slides,ne=n.addons,se=t.reactive(le);return()=>{const te=HH(ie==null?void 0:ie(se)),ee=(ne==null?void 0:ne(se))||[];te.forEach((fe,me)=>fe.props.index=me);let oe=te;if(g.wrapAround){const fe=te.map((ye,be)=>t.cloneVNode(ye,{index:-te.length+be,isClone:!0,key:`clone-before-${be}`})),me=te.map((ye,be)=>t.cloneVNode(ye,{index:te.length+be,isClone:!0,key:`clone-after-${be}`}));oe=[...fe,...te,...me]}m.value=te,y.value=Math.max(te.length,1);const ce=t.h("ol",{class:"carousel__track",style:Y.value,onMousedownCapture:g.mouseDrag?N:null,onTouchstartPassiveCapture:g.touchDrag?N:null},oe),he=t.h("div",{class:"carousel__viewport"},ce);return t.h("section",{ref:h,class:{carousel:!0,"is-sliding":j.value,"is-dragging":B.value,"is-hover":E.value,"carousel--rtl":g.dir==="rtl"},dir:g.dir,"aria-label":g.i18n.ariaGallery,tabindex:"0",onMouseenter:S,onMouseleave:L},[he,ee,t.h(lxt)])}}}),WH;(function(e){e.arrowUp="arrowUp",e.arrowDown="arrowDown",e.arrowRight="arrowRight",e.arrowLeft="arrowLeft"})(WH||(WH={}));var dxt=t.defineComponent({name:"CarouselSlide",props:{index:{type:Number,default:1},isClone:{type:Boolean,default:!1}},setup(e,{slots:n}){const r=t.inject("config",t.reactive(Object.assign({},Kc))),I=t.inject("currentSlide",t.ref(0)),F=t.inject("slidesToScroll",t.ref(0)),h=t.inject("isSliding",t.ref(!1)),m=()=>e.index===I.value,a=()=>e.index===I.value-1,y=()=>e.index===I.value+1,g=()=>{const o=Math.floor(F.value),_=Math.ceil(F.value+r.itemsToShow-1);return e.index>=o&&e.index<=_};return()=>{var o;return t.h("li",{style:{width:`${100/r.itemsToShow}%`},class:{carousel__slide:!0,"carousel__slide--clone":e.isClone,"carousel__slide--visible":g(),"carousel__slide--active":m(),"carousel__slide--prev":a(),"carousel__slide--next":y(),"carousel__slide--sliding":h.value},"aria-hidden":!g()},(o=n.default)===null||o===void 0?void 0:o.call(n))}}});const uxt=(e,n)=>{const r=e.__vccOpts||e;for(const[I,F]of n)r[I]=F;return r},hxt=e=>(t.pushScopeId("data-v-54620d25"),e=e(),t.popScopeId(),e),pxt={class:"gsc-carousel"},fxt={key:0},mxt=hxt(()=>t.createElementVNode("div",null,"no hay",-1)),gxt=[mxt],yxt={class:"gsc-carousel__2d__slides"},vxt={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},_xt=["fill"],bxt={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},xxt=["fill"],wxt={class:"gsc-carousel__2d__navigation"},kxt={width:"8",height:"15",viewBox:"0 0 8 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Cxt=["stroke"],Sxt={key:1,class:"gsc-carousel__2d__navigation__pagination"},Txt=["onClick"],Ext={width:"7",height:"15",viewBox:"0 0 7 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Axt=["stroke"],Mxt={__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(n=>n 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:n,emit:r}){const I=e;t.useCssVars(i=>({"2c72d674":e.slideLeftArrowBackgroundImage,"90a63f40":e.slidesArrowsLeftAndRight,"2627d097":e.slideRightArrowBackgroundImage,"1904d43f":e.marginTop,cfb58986:e.secondarySlidesOpacity}));const F=t.ref(null),h=t.ref({}),m=t.ref(0),a=t.ref(!1);t.watch(F,i=>{i&&a.value?(a.value=!1,y(I.items)):i&&i.slideTo&&i.slideTo(m.value)},{deep:!0}),t.watch(()=>I.currentItemIndex,i=>{m.value!==i&&b(i)}),t.watch(()=>I.defaultItemByIndex,i=>{m.value!==i&&b(i)}),t.watch(()=>I.items,i=>{F.value?y(i):a.value=!0},{immediate:!0});function y(i){i&&i.length&&F.value&&setTimeout(()=>{if(I.defaultItemByProp){const l=I.items.findIndex(d=>d[I.defaultItemByProp.propName]===I.defaultItemByProp.value);l!==-1?(m.value=l,h.value=i[l]):(m.value=0,h.value=i[0])}else m.value=I.defaultItemByIndex,h.value=i[I.defaultItemByIndex];F.value.slideTo&&F.value.slideTo(m.value),h.value&&m.value===0&&r("input",{selectedItem:h.value,selectedItemIndex:m.value})},500)}function g(){F.value&&F.value.next()}function o(){F.value&&F.value.prev()}function _(){F.value&&F.value.updateSlideWidth()}function b(i){F.value&&F.value.slideTo(i)}function c(i){F.value.slideTo(i)}function s(i){const l=i.slidingToIndex<0?I.items.length-1:i.slidingToIndex===I.items.length?0:i.slidingToIndex;m.value=l,h.value=I.items[l],r("update:currentItemIndex",l),r("input",{selectedItem:h.value,selectedItemIndex:m.value})}return n({prev:o,next:g,updateSlideWidth:_,slideTo:b}),(i,l)=>(t.openBlock(),t.createElementBlock("div",pxt,[I.is3d?(t.openBlock(),t.createElementBlock("div",fxt,gxt)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(["gsc-carousel__2d",{"main-slide-priority":e.isMainSlidePriority}])},[t.createElementVNode("div",yxt,[t.createVNode(t.unref(cxt),{ref_key:"carousel2d",ref:F,"items-to-show":e.itemsToShow,"wrap-around":e.wrapAround,onSlideStart:s},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(d,u)=>(t.openBlock(),t.createBlock(t.unref(dxt),{key:u},{default:t.withCtx(()=>[t.renderSlot(i.$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:l[0]||(l[0]=d=>F.value.prev())},[t.createElementVNode("div",{class:t.normalizeClass(["gsc-carousel__2d__slide-button",{rounded:e.areSlidesArrowsRounded}])},[(t.openBlock(),t.createElementBlock("svg",vxt,[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,_xt)]))],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:l[1]||(l[1]=d=>g())},[t.createElementVNode("div",{class:t.normalizeClass(["gsc-carousel__2d__slide-button",{rounded:e.areSlidesArrowsRounded}])},[(t.openBlock(),t.createElementBlock("svg",bxt,[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,xxt)]))],2)],4)):t.createCommentVNode("",!0),t.createElementVNode("div",wxt,[e.areNavigationArrowsVisible?(t.openBlock(),t.createElementBlock("div",{key:0,class:"gsc-carousel__2d__navigation__arrow-left",onClick:l[2]||(l[2]=d=>o())},[(t.openBlock(),t.createElementBlock("svg",kxt,[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:I.arrowsColor},null,8,Cxt)]))])):t.createCommentVNode("",!0),e.isPaginationVisible?(t.openBlock(),t.createElementBlock("div",Sxt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(d,u)=>(t.openBlock(),t.createElementBlock("div",{key:`i-${u}`,class:"gsc-carousel__2d__navigation__pagination__item",style:t.normalizeStyle({height:`${I.navigationHeight}px`,width:`${m.value===u?I.navigationActiveWidth:I.navigationActiveWidth/2}px`,borderRadius:`${I.navigationBorderRadius}px`,backgroundColor:`${m.value===u?I.navigationActiveColor:I.navigationColor}`,transition:"all 0.1s ease-in-out"}),onClick:p=>c(u)},null,12,Txt))),128))])):t.createCommentVNode("",!0),e.areNavigationArrowsVisible?(t.openBlock(),t.createElementBlock("div",{key:2,class:"gsc-carousel__2d__navigation__arrow-right",onClick:l[3]||(l[3]=d=>F.value.next())},[(t.openBlock(),t.createElementBlock("svg",Ext,[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:I.arrowsColor},null,8,Axt)]))])):t.createCommentVNode("",!0)])],2))]))}},Ixt=uxt(Mxt,[["__scopeId","data-v-54620d25"]]),HS=(e,n)=>{const r=e.__vccOpts||e;for(const[I,F]of n)r[I]=F;return r};let qH=null;const WS={components:{},props:{titleCategory:{type:String,default:"RESUMEN"},dateGame:{type:String,default:""},colorBackgroundHome:{type:String,default:"#000000"},colorBackgroundAway:{type:String,default:"#FFFFFF"},logoHome:{type:String,default:""},matchday:{type:String,default:""},seasonName:{type:String,default:""},logoAway:{type:String,default:""},score:{type:String,default:""},background:{type:String,default:""}},data(){return{gamesContainerWidth:0}},computed:{date(){const e=this.gamesContainerWidth;return e<=400?"date400":e<=540?"date540":e<=650?"date650":"date"},seasoncontainer(){const e=this.gamesContainerWidth;return e<=400?"season-container400":e<=540?"season-container540":e<=650?"season-container650":"season-container"},matchcontainer(){const e=this.gamesContainerWidth;return e<=400?"match-container400":e<=540?"match-container540":e<=650?"match-container650":"match-container"},containerinfogame(){const e=this.gamesContainerWidth;return e<=400?"container-info-game400":e<=540?"container-info-game540":e<=650?"container-info-game650":"container-info-game"},playbutton(){const e=this.gamesContainerWidth;return e<=400?"play-button400":e<=540?"play-button540":e<=650?"play-button650":"play-button"},baselogo(){const e=this.gamesContainerWidth;return e<=400?"base-logo400":e<=540?"base-logo540":e<=650?"base-logo650":"base-logo"},baselogoright(){const e=this.gamesContainerWidth;return e<=400?"base-logo-right400":e<=540?"base-logo-right540":e<=650?"base-logo-right650":"base-logo-right"},thumbnailhighlights(){const e=this.gamesContainerWidth;return e<=400?"thumbnail-highlights400":e<=540?"thumbnail-highlights540":e<=650?"thumbnail-highlights650":"thumbnail-highlights"},teamlogo(){const e=this.gamesContainerWidth;return e<=400?"team-logo400":e<=540?"team-logo540":e<=650?"team-logo650":"team-logo"},logoright(){const e=this.gamesContainerWidth;return e<=400?"logo-right400":e<=540?"logo-right540":e<=650?"logo-right650":"logo-right"},secondline(){const e=this.gamesContainerWidth;return e<=400?"second-line400":e<=540?"second-line540":e<=650?"second-line650":"second-line"},titlename(){const e=this.gamesContainerWidth;return e<=400?"title-name400":e<=540?"title-name540":e<=650?"title-name650":"title-name"}},methods:{onclickPlayVideos(){this.$emit("onclickPlayVideos")},setUpResizeObserver(){if(window.ResizeObserver)qH=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),qH.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},YH=()=>{t.useCssVars(e=>({"41af28e8":e.colorBackgroundHome+"45","90ae2246":e.colorBackgroundAway+"45","1d262e1e":e.colorBackgroundHome,"1d231c2d":e.colorBackgroundAway}))},XH=WS.setup;WS.setup=XH?(e,n)=>(YH(),XH(e,n)):YH;const q4=e=>(t.pushScopeId("data-v-fd9d1e65"),e=e(),t.popScopeId(),e),Nxt=q4(()=>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)),Bxt=[Nxt],Pxt=q4(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/paper-texture.png",alt:"",class:"paper-texture position-image"},null,-1)),Oxt=["src"],Lxt=q4(()=>t.createElementVNode("div",{class:"gradient-back position-image"},null,-1)),Fxt=q4(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/halftone-texture.png",alt:"",class:"halftone-texture position-image"},null,-1)),Dxt=["src"],zxt=["src"],Vxt={class:"text-container"};function Rxt(e,n,r,I,F,h){return t.openBlock(),t.createElementBlock("div",{ref:"gamesContainer",class:t.normalizeClass(h.thumbnailhighlights)},[t.createElementVNode("div",{class:t.normalizeClass(h.playbutton),onClick:n[0]||(n[0]=(...m)=>h.onclickPlayVideos&&h.onclickPlayVideos(...m))},Bxt,2),r.dateGame!=""?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(h.date)},t.toDisplayString(r.dateGame),3)):t.createCommentVNode("",!0),r.matchday!=""&&r.seasonName!=""?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(h.containerinfogame)},[r.matchday!=""?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(h.matchcontainer)},t.toDisplayString(r.matchday),3)):t.createCommentVNode("",!0),r.seasonName!=""?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(h.seasoncontainer)},t.toDisplayString(r.seasonName),3)):t.createCommentVNode("",!0)],2)):t.createCommentVNode("",!0),Pxt,t.createElementVNode("img",{src:r.background,alt:"",class:"bkg-blackwhite position-image"},null,8,Oxt),t.createElementVNode("div",{class:t.normalizeClass([h.baselogo,"position-image"])},null,2),t.createElementVNode("div",{class:t.normalizeClass(h.baselogoright)},null,2),Lxt,Fxt,t.createElementVNode("img",{src:r.logoHome,alt:"",class:t.normalizeClass(h.teamlogo)},null,10,Dxt),t.createElementVNode("img",{src:r.logoAway,alt:"",class:t.normalizeClass(h.logoright)},null,10,zxt),t.createElementVNode("div",Vxt,[t.createElementVNode("span",{class:t.normalizeClass(h.secondline)},t.toDisplayString(r.score),3),t.createElementVNode("div",{class:t.normalizeClass(h.titlename)},t.toDisplayString(r.titleCategory),3)])],2)}const $xt=HS(WS,[["render",Rxt],["__scopeId","data-v-fd9d1e65"]]);let JH=null;const qS={components:{},props:{type:{type:Number,default:0},colorBackgroundHome:{type:String,default:"#000000"},colorBackgroundAway:{type:String,default:"#FFFFFF"},nameCategory:{type:String,default:""},date:{type:String,default:""},seasonName:{type:String,default:""},matchday:{type:String,default:""},photoProfile:{type:String,default:""},logoHome:{type:String,default:""},logoAway:{type:String,default:""},scoreHome:{type:String,default:""},scoreAway:{type:String,default:""},background:{type:String,default:""},typeImg:{type:Number,default:0},nameHomeTeam:{type:String,default:""},nameAwayTeam:{type:String,default:""},namePlayer:{type:String,default:""}},data(){return{gamesContainerWidth:0}},computed:{playbutton(){const e=this.gamesContainerWidth;return e<=400?"play-button400":e<=540?"play-button540":e<=650?"play-button650":"play-button"},points(){const e=this.gamesContainerWidth;return e<=400?"points400":e<=540?"points540":e<=650?"points650":"points"},containerinfogame(){const e=this.gamesContainerWidth;return e<=400?"container-info-game400":e<=540?"container-info-game540":e<=650?"container-info-game650":"container-info-game"},teamname(){const e=this.gamesContainerWidth;return e<=400?"team-name400":e<=540?"team-name540":e<=650?"team-name650":"team-name"},teamscore(){const e=this.gamesContainerWidth;return e<=400?"team-score400":e<=540?"team-score540":e<=650?"team-score650":"team-score"},teamlogo(){const e=this.gamesContainerWidth;return e<=400?"team-logo400":e<=540?"team-logo540":e<=650?"team-logo650":"team-logo"},hometeam(){const e=this.gamesContainerWidth;return e<=400?"home-team400":e<=540?"home-team540":e<=650?"home-team650":"home-team"},awayteam(){const e=this.gamesContainerWidth;return e<=400?"away-team400":e<=540?"away-team540":e<=650?"away-team650":"away-team"},texttitle(){const e=this.gamesContainerWidth;return e<=400?"text-title400":e<=540?"text-title540":e<=650?"text-title650":"text-title"},matchcontainer(){const e=this.gamesContainerWidth;return e<=400?"match-container400":e<=540?"match-container540":e<=650?"match-container650":"match-container"},seasonnameContainer(){const e=this.gamesContainerWidth;return e<=280?"seasonname280":e<=400?"seasonname400":e<=540?"seasonname540":e<=650?"seasonname650":"seasonname"},matchboxContainer(){const e=this.gamesContainerWidth;return e<=400?"matchbox400":e<=540?"matchbox540":e<=650?"matchbox650":"matchbox"},seasoncontainer(){const e=this.gamesContainerWidth;return e<=400?"season-container400":e<=540?"season-container540":e<=650?"season-container650":"season-container"},texttitle2(){const e=this.gamesContainerWidth;return e<=300?"text-title2400":e<=540?"text-title2540":e<=650?"text-title2650":"text-title2"},playerimage(){const e=this.gamesContainerWidth;return e<=400?"player-image400":e<=540?"player-image540":e<=650?"player-image650":"player-image"},thumbnailhighlights(){const e=this.gamesContainerWidth;return e<=400?"thumbnail-highlights400":e<=540?"thumbnail-highlights540":e<=650?"thumbnail-highlights650":"thumbnail-highlights"}},methods:{onclickPlayVideos(){this.$emit("onclickPlayVideos")},setUpResizeObserver(){if(window.ResizeObserver)JH=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),JH.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},ZH=()=>{t.useCssVars(e=>({"16e4cc48":e.colorBackgroundHome,"16e1ba57":e.colorBackgroundAway,"0a08a218":e.colorBackgroundAway+"62",31881400:e.colorBackgroundHome+"36"}))},KH=qS.setup;qS.setup=KH?(e,n)=>(ZH(),KH(e,n)):ZH;const Y4=e=>(t.pushScopeId("data-v-4fef1a3b"),e=e(),t.popScopeId(),e),jxt=Y4(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/paper-texture.png",alt:"",class:"paper-texture position-image"},null,-1)),Uxt=Y4(()=>t.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},[t.createElementVNode("path",{d:"M6.6041 22.8554C6.42105 22.7512 6.26805 22.5956 6.1616 22.4053C6.05515 22.215 5.99927 21.9973 6.00001 21.7755V2.22137C6.00026 2.00039 6.0565 1.78362 6.16274 1.59409C6.26899 1.40456 6.42127 1.24936 6.6034 1.14499C6.78553 1.04062 6.9907 0.990981 7.1971 1.00135C7.4035 1.01171 7.60342 1.0817 7.77561 1.20386L21.4907 10.9821C21.6473 11.0935 21.7758 11.2446 21.8646 11.4219C21.9535 11.5992 22 11.7973 22 11.9985C22 12.1996 21.9535 12.3977 21.8646 12.575C21.7758 12.7523 21.6473 12.9034 21.4907 13.0148L7.77561 22.7954C7.60369 22.9178 7.40392 22.988 7.19761 22.9986C6.9913 23.0092 6.78617 22.9597 6.6041 22.8554ZM7.14347 21.7779L20.8585 11.9996L7.14347 21.7779Z",fill:"#CBEE6B"})],-1)),Gxt=[Uxt],Hxt={class:"player-container"},Wxt=["src"],qxt=["src"],Yxt=["src"],Xxt={class:"container-score"},Jxt=["src"],Zxt=["src"],Kxt=["src"],Qxt=Y4(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/halftone-texture.png",alt:"",class:"halftone-texture position-image"},null,-1)),e3t=Y4(()=>t.createElementVNode("div",{class:"gradient-color"},null,-1));function t3t(e,n,r,I,F,h){return t.openBlock(),t.createElementBlock("div",{ref:"gamesContainer",class:t.normalizeClass(h.thumbnailhighlights)},[jxt,t.createElementVNode("div",{class:t.normalizeClass(h.playbutton),onClick:n[0]||(n[0]=(...m)=>h.onclickPlayVideos&&h.onclickPlayVideos(...m))},Gxt,2),t.createElementVNode("div",Hxt,[t.createElementVNode("div",{class:t.normalizeClass(h.containerinfogame)},[t.createElementVNode("div",{class:t.normalizeClass(h.matchcontainer)},[t.createElementVNode("div",{class:t.normalizeClass(h.matchboxContainer)},t.toDisplayString(r.matchday),3),t.createElementVNode("div",{class:t.normalizeClass(h.seasonnameContainer)},t.toDisplayString(r.seasonName),3)],2),t.createElementVNode("div",{class:t.normalizeClass(h.seasoncontainer)},t.toDisplayString(r.date),3)],2),r.type==0?(t.openBlock(),t.createElementBlock("span",{key:0,class:t.normalizeClass(h.texttitle)},t.toDisplayString(r.nameCategory),3)):(t.openBlock(),t.createElementBlock("span",{key:1,class:t.normalizeClass(h.texttitle2)},t.toDisplayString(r.nameCategory),3)),r.typeImg==0?(t.openBlock(),t.createElementBlock("img",{key:2,src:r.photoProfile,class:t.normalizeClass(h.playerimage)},null,10,Wxt)):t.createCommentVNode("",!0),r.typeImg==1?(t.openBlock(),t.createElementBlock("img",{key:3,src:r.photoProfile,alt:""},null,8,qxt)):t.createCommentVNode("",!0),r.typeImg==2?(t.openBlock(),t.createElementBlock("img",{key:4,src:r.photoProfile,class:"img-number"},null,8,Yxt)):t.createCommentVNode("",!0),t.createElementVNode("div",Xxt,[t.createElementVNode("div",{class:t.normalizeClass(h.hometeam)},[t.createElementVNode("span",{class:t.normalizeClass(h.teamname)},t.toDisplayString(r.nameHomeTeam),3),t.createElementVNode("img",{src:r.logoHome,alt:"",class:t.normalizeClass(h.teamlogo)},null,10,Jxt),t.createElementVNode("span",{class:t.normalizeClass(h.teamscore)},t.toDisplayString(r.scoreHome),3)],2),t.createElementVNode("span",{class:t.normalizeClass(h.points)},":",2),t.createElementVNode("div",{class:t.normalizeClass(h.awayteam)},[t.createElementVNode("span",{class:t.normalizeClass(h.teamscore)},t.toDisplayString(r.scoreAway),3),t.createElementVNode("img",{src:r.logoAway,alt:"",class:t.normalizeClass(h.teamlogo)},null,10,Zxt),t.createElementVNode("span",{class:t.normalizeClass(h.teamname)},t.toDisplayString(r.nameAwayTeam),3)],2)])]),t.createElementVNode("img",{src:r.background,alt:"",class:"bkg-blackwhite position-image"},null,8,Kxt),Qxt,e3t],2)}const a3t={components:{GSCCarousel:Ixt,GSCThumbnailHighlightGameHistoric:$xt,GSCThumbnailHighlightGamePlayer:HS(qS,[["render",t3t],["__scopeId","data-v-4fef1a3b"]])},props:{items:{type:Array,default:()=>[1,2,3]},data:{type:Object,default:()=>{}},title:{type:String,default:"TODAS SUS JUGADAS"},canPlayVideos:{type:Boolean,default:!0},videoPrivilegesPlayingAs:{type:Set,default:()=>new Set([1,2])},privilegesTeamId:{type:Number,default:0}},data(){return{highlightsWidth:0,printData:[],resizeObserverGSCH:null,token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"}},watch:{data:{immediate:!0,handler(e){this.getData(e)}}},computed:{printDataFiltered(){return this.canPlayVideos?this.printData.filter(e=>this.videoPrivilegesPlayingAs.has(e.playingAs)):[]},isMobile(){return this.highlightsWidth<580},carouselProps(){return this.isMobile?{wrapAround:!0,itemsToShow:1.2,isMainSlidePriority:!0,areSlidesArrowsVisible:!1,areSlidesArrowsRounded:!1,areNavigationArrowsVisible:!1,isPaginationVisible:!0}:{wrapAround:!0,itemsToShow:1.8,isMainSlidePriority:!0,areSlidesArrowsVisible:!0,areSlidesArrowsRounded:!0,areNavigationArrowsVisible:!1}}},methods:{getPlayingAs(e,n){return e.home_team===(n||this.data.team)?1:2},obtenerNombreCompletoFecha(e){if(e){const n=new Date(e),r=["Domingo","Lunes","Martes","Miércoles","Jueves","Viernes","Sábado"][n.getUTCDay()],I=n.getUTCDate(),F=["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"][n.getUTCMonth()];return`${r} ${I} de ${F}`}else return""},onclickPlayVideos(e){var n=[];e.type==2?e.data.position_id==1?e.data.has_relevants==1?e.data.category==0?n=[55,324,323,608,39,774,802,52,53,40,42,54]:n=e.data.category:n=[55,324,323,608,39,774,802,52,53,40,42,54]:e.data.has_relevants==1?e.data.category==0?n=[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]:n=e.data.category:n=[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?n=[607,608,12,55,54,35,14,52,15,53,466,477,40,257,39]:n=e.data.category:e.data.category!=0?n=e.data.category:n=[607,608,12,55,54,35,14,52,15,53,466,477];const r=[1,2,3];let I={seasonId:e.data.season_id,mainSectionType:1,playListType:e.type,categoryIds:n,gameIds:e.data.game_id?[e.data.game_id]:null,playerIds:e.data.position_id!=1?e.data.player_id?[e.data.player_id]:[]:[],goalkeeperIds:e.data.position_id==1?e.data.player_id?[e.data.player_id]:[]:[],teamId:e.data.team_id?e.data.team_id:e.data.team_id_b?e.data.team_id_b:0,matchResult:e.data.matchResult?[e.data.matchResult]:r,advancedFilter:{playListTitle:""}};e.data.category!==0&&(I.advancedFilter.mainCategoryId=e.data.category),this.$emit("openmedia",I)},play(e){this.$emit("play",e)},async getData(e){const n=txt.create({headers:{Authorization:`${this.token}`}});var r=[],I={};if(e.type=="player"){const F=await n.get("https://uof4tt5l46.execute-api.us-west-2.amazonaws.com/prod/v3/playerInfo/"+e.season+"/"+e.player);if(F.data.seasons[e.season])for(let h=0;h<F.data.seasons[e.season].games_played.length;h++)I={playingAs:this.getPlayingAs(F.data.seasons[e.season].games_played[h],F.data.team_id),category:0,player_id:F.data.player_id,position_id:F.data.position_id,color:F.data.info_thumbnails.colors.background_color,photo_profile:F.data.info_thumbnails.images.player_in_action[0]?"https://golstatsimages.blob.core.windows.net/images-library/"+F.data.info_thumbnails.images.player_in_action[0]:F.data.info_thumbnails.player_profile,team_logo:"https://az755631.vo.msecnd.net/teams-150/"+F.data.seasons[e.season].games_played[h].home_team+".png",player_name:F.data.seasons[e.season].games_played[h].home_team_acronym+" "+F.data.seasons[e.season].games_played[h].home_team_score+" : "+F.data.seasons[e.season].games_played[h].visiting_team_score+" "+F.data.seasons[e.season].games_played[h].visiting_team_acronym,team_id:F.data.team_id,has_relevants:F.data.seasons[e.season].games_played[h].has_relevants,team_id_b:F.data.seasons[e.season].games_played[h].home_team,season_id:F.data.seasons[e.season].games_played[h].season_id,name:F.data.seasons[e.season].games_played[h].player_name,seasonname:F.data.seasons[e.season].name.replace("Clausura","CL ").replace("Apertura","AP "),game_id:F.data.seasons[e.season].games_played[h].game_id,match:F.data.seasons[e.season].games_played[h].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(F.data.seasons[e.season].games_played[h].date),scorehome:F.data.seasons[e.season].games_played[h].home_team_score,scoreaway:F.data.seasons[e.season].games_played[h].visiting_team_score,hometeamacronym:F.data.seasons[e.season].games_played[h].home_team_acronym,visitingteamacronym:F.data.seasons[e.season].games_played[h].visiting_team_acronym,background:F.data.info_thumbnails.images.background_player_in_action[0]?"https://golstatsimages.blob.core.windows.net/images-library/"+F.data.info_thumbnails.images.background_player_in_action[0]:F.data.info_thumbnails.player_profile,backgroundhome:F.data.seasons[e.season].games_played[h].info_thumbnails.home_colors.background_color,backgroundaway:F.data.seasons[e.season].games_played[h].info_thumbnails.away_colors.background_color,logohome:"https://az755631.vo.msecnd.net/teams-150/"+F.data.seasons[e.season].games_played[h].home_team+".png",logoaway:"https://az755631.vo.msecnd.net/teams-150/"+F.data.seasons[e.season].games_played[h].visiting_team+".png",total:F.data.seasons[e.season].games_played[h].matchday_abbreviation.replace("M","Jor "),background_card:"https://az755631.vo.msecnd.net/golstats2-teams/"+F.data.seasons[e.season].games_played[h].home_team+"_"+F.data.seasons[e.season].games_played[h].season_id+"_r1.jpg"},r.push(I);else for(let h=0;h<F.data.national_seasons[e.season].games_played.length;h++)I={playingAs:this.getPlayingAs(F.data.national_seasons[e.season].games_played[h],F.data.team_id),category:0,player_id:F.data.player_id,position_id:F.data.position_id,color:F.data.info_thumbnails.colors.background_color,photo_profile:F.data.info_thumbnails.images.player_in_action[0]?"https://golstatsimages.blob.core.windows.net/images-library/"+F.data.info_thumbnails.images.player_in_action[0]:F.data.info_thumbnails.player_profile,team_logo:"https://az755631.vo.msecnd.net/teams-150/"+F.data.national_seasons[e.season].games_played[h].home_team+".png",player_name:F.data.national_seasons[e.season].games_played[h].home_team_acronym+" "+F.data.national_seasons[e.season].games_played[h].home_team_score+" : "+F.data.national_seasons[e.season].games_played[h].visiting_team_score+" "+F.data.national_seasons[e.season].games_played[h].visiting_team_acronym,team_id:F.data.team_id,has_relevants:F.data.national_seasons[e.season].games_played[h].has_relevants,team_id_b:F.data.national_seasons[e.season].games_played[h].home_team,season_id:F.data.national_seasons[e.season].games_played[h].season_id,name:F.data.national_seasons[e.season].games_played[h].player_name,seasonname:F.data.national_seasons[e.season].name.replace("Clausura","CL ").replace("Apertura","AP "),game_id:F.data.national_seasons[e.season].games_played[h].game_id,match:F.data.national_seasons[e.season].games_played[h].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(F.data.national_seasons[e.season].games_played[h].date),scorehome:F.data.national_seasons[e.season].games_played[h].home_team_score,scoreaway:F.data.national_seasons[e.season].games_played[h].visiting_team_score,hometeamacronym:F.data.national_seasons[e.season].games_played[h].home_team_acronym,visitingteamacronym:F.data.national_seasons[e.season].games_played[h].visiting_team_acronym,background:F.data.info_thumbnails.images.background_player_in_action[0]?"https://golstatsimages.blob.core.windows.net/images-library/"+F.data.info_thumbnails.images.background_player_in_action[0]:F.data.info_thumbnails.player_profile,backgroundhome:F.data.national_seasons[e.season].games_played[h].info_thumbnails.home_colors.background_color,backgroundaway:F.data.national_seasons[e.season].games_played[h].info_thumbnails.away_colors.background_color,logohome:"https://az755631.vo.msecnd.net/teams-150/"+F.data.national_seasons[e.season].games_played[h].home_team+".png",logoaway:"https://az755631.vo.msecnd.net/teams-150/"+F.data.national_seasons[e.season].games_played[h].visiting_team+".png",total:F.data.national_seasons[e.season].games_played[h].matchday_abbreviation.replace("M","Jor "),background_card:"https://az755631.vo.msecnd.net/golstats2-teams/"+F.data.national_seasons[e.season].games_played[h].home_team+"_"+F.data.national_seasons[e.season].games_played[h].season_id+"_r1.jpg"},r.push(I)}else if(e.type=="historic"){const F=await n.get("https://fxtcaw9tw6.execute-api.us-east-2.amazonaws.com/prod/historic/games/"+e.game);for(let m=0;m<F.data.plays.length;m++)I={teamId:F.data.plays[m][2],player:"Jornada "+F.data.plays[m][6],player_name:F.data.plays[m][4],season_id:F.data.plays[m][31],game_id:F.data.plays[m][3],img:"https://img1.wallspic.com/previews/0/9/1/0/20190/20190-football_player-football-fun-player-sports-x750.jpg"},r.length>0?this.privilegesTeamId==0?!r.filter(a=>a.game_id===F.data.plays[m][3]).length>0&&r.push(I):!r.filter(a=>a.game_id===F.data.plays[m][3]).length>0&&F.data.plays[m][2]===this.privilegesTeamId&&r.push(I):(this.privilegesTeamId==0||F.data.plays[m][2]===this.privilegesTeamId)&&r.push(I);const h=F.data.thumbnails;for(let m=0;m<r.length;m++){const a=Math.floor(Math.random()*h[r[m].game_id].info_thumbnails.images.background_default_games.length);r[m].background="https://golstatsimages.blob.core.windows.net/images-library/"+h[r[m].game_id].info_thumbnails.images.background_default_games[a],r[m].backgroundhome=h[r[m].game_id].info_thumbnails.home_colors.background_color,r[m].backgroundaway=h[r[m].game_id].info_thumbnails.away_colors.background_color,r[m].logoaway="https://az755631.vo.msecnd.net/teams-150/"+h[r[m].game_id].info_thumbnails.away_colors.team_id+".png",r[m].logohome="https://az755631.vo.msecnd.net/teams-150/"+h[r[m].game_id].info_thumbnails.home_colors.team_id+".png",r[m].match=h[r[m].game_id].matchday_name.replace("Matchday","Jor"),r[m].playingAs=h[r[m].game_id].info_thumbnails.home_colors.team_id===r[m].teamId?1:2,r[m].seasonname=h[r[m].game_id].season_name,r[m].score=h[r[m].game_id].score[0]+" - "+h[r[m].game_id].score[1],r[m].category=0}}else{const F=await n.get("https://ws8d8ye2ii.execute-api.us-west-2.amazonaws.com/prod/v4/seasonsByTeam/"+e.team);for(let h=0;h<F.data.seasons[e.season].games.length;h++){const m=Math.floor(Math.random()*F.data.seasons[e.season].games[h].info_thumbnails.images.background_default_games.length);I={playingAs:this.getPlayingAs(F.data.seasons[e.season].games[h],F.data.team_id),category:0,game_id:F.data.seasons[e.season].games[h].game_id,photo_profile:"https://az755631.vo.msecnd.net/teams-150/"+F.data.seasons[e.season].games[h].visiting_team+".png",team_logo:"https://az755631.vo.msecnd.net/teams-150/"+F.data.seasons[e.season].games[h].home_team+".png",player_name:F.data.seasons[e.season].games[h].home_team_acronym+" "+F.data.seasons[e.season].games[h].home_team_score+" : "+F.data.seasons[e.season].games[h].visiting_team_score+" "+F.data.seasons[e.season].games[h].visiting_team_acronym,team_id_b:F.data.seasons[e.season].games[h].home_team,team_id:F.data.team_id,season_id:F.data.seasons[e.season].games[h].season_id,name:"",seasonname:F.data.seasons[e.season].name,match:F.data.seasons[e.season].games[h].matchday_name.replace("Matchday","Jor"),score:F.data.seasons[e.season].games[h].home_team_score+" : "+F.data.seasons[e.season].games[h].visiting_team_score,background:"https://golstatsimages.blob.core.windows.net/images-library/"+F.data.seasons[e.season].games[h].info_thumbnails.images.background_default_games[m],backgroundhome:F.data.seasons[e.season].games[h].info_thumbnails.home_colors.background_color,backgroundaway:F.data.seasons[e.season].games[h].info_thumbnails.away_colors.background_color,logohome:"https://az755631.vo.msecnd.net/teams-150/"+F.data.seasons[e.season].games[h].home_team+".png",logoaway:"https://az755631.vo.msecnd.net/teams-150/"+F.data.seasons[e.season].games[h].visiting_team+".png",total:F.data.seasons[e.season].games[h].matchday_abbreviation.replace("M","Jor "),background_card:"https://az755631.vo.msecnd.net/golstats2-teams/"+F.data.seasons[e.season].games[h].home_team+"_"+F.data.seasons[e.season].games[h].season_id+"_r1.jpg"},r.push(I)}}this.printData=r},setUpResizeObserver(){this.resizeObserverGSCH=new ResizeObserver(e=>{for(const n of e)this.highlightsWidth=n.contentRect.width}),this.resizeObserverGSCH.observe(this.$refs.highlights)}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},1e3)}},n3t={key:0,ref:"highlights",class:"carousel-high-lights",id:"carousel-high-lights"};function r3t(e,n,r,I,F,h){const m=t.resolveComponent("GSCThumbnailHighlightGameHistoric"),a=t.resolveComponent("GSCThumbnailHighlightGamePlayer"),y=t.resolveComponent("GSCCarousel");return h.printDataFiltered.length>0&&r.canPlayVideos?(t.openBlock(),t.createElementBlock("div",n3t,[t.createVNode(y,t.mergeProps(h.carouselProps,{items:h.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:"0.2"}),{default:t.withCtx(({item:g})=>[r.data.type=="team"||r.data.type=="historic"?(t.openBlock(),t.createBlock(m,{key:0,items:g,"color-background-home":g.backgroundhome,"color-background-away":g.backgroundaway,"logo-home":g.logohome,"logo-away":g.logoaway,background:g.background,matchday:g.match,onOnclickPlayVideos:o=>h.onclickPlayVideos({data:g,type:1}),"season-name":g.seasonname,score:g.score},null,8,["items","color-background-home","color-background-away","logo-home","logo-away","background","matchday","onOnclickPlayVideos","season-name","score"])):(t.openBlock(),t.createBlock(a,{key:1,type:"player","name-player":g.name,"type-style":"game","color-background-home":g.backgroundhome,"color-background-away":g.backgroundaway,"type-img":"0",date:g.date,"season-name":g.seasonname,matchday:g.match,background:g.background,"name-home-team":g.hometeamacronym,"name-away-team":g.visitingteamacronym,"name-category":r.title,onOnclickPlayVideos:o=>h.onclickPlayVideos({data:g,type:2}),"logo-away":g.logoaway,"logo-home":g.logohome,"score-home":g.scorehome,"photo-profile":g.photo_profile,"score-away":g.scoreaway},null,8,["name-player","color-background-home","color-background-away","date","season-name","matchday","background","name-home-team","name-away-team","name-category","onOnclickPlayVideos","logo-away","logo-home","score-home","photo-profile","score-away"]))]),_:1},16,["items"])],512)):t.createCommentVNode("",!0)}const i3t=HS(a3t,[["render",r3t]]),u1a="",h1a="",p1a="",o3t={components:{GSCSlider:Lg},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{dataProminent:[],dataProminentAll:[],tokenPremium:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6NTg2LCJuYW1lIjoiSkFTIEdvbFN0YXRzIiwidXNlcm5hbWUiOiJ5YXRlYW1lcmljYSIsImVtYWlsIjoiIiwicHJvdmlkZXJfaWQiOjEsImxvZ2luX2dvbHN0YXRzIjoxLCJpYXQiOjE2OTYzNjU1ODcsImV4cCI6MTcyNzkwMTU4N30.jynRtgtFM8sf8gtqZJ-1gHLc2Ws13TIykXcfrlOvv1g"}},computed:{},methods:{onclickPlayVideos(e){const n=[1,2,3];let r={seasonId:this.dataProminentAll.season_id,mainSectionType:1,playListType:e.data.is_team==1?3:2,categoryIds:e.data.categories,gameIds: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:n,playData:{},advancedFilter:{playListTitle:""}};this.$emit("openmedia",r)},hasDecimal(e){return typeof e!="number"?!1:e.toString().includes(".")},formatNumber(e){if(typeof e=="number")if(this.hasDecimal(e)){const n=Math.round(e*10)/10;return Number.isInteger(n)?n.toString()+"%":n.toFixed(1)+"%"}else return e+"%";else return"0"},formatNumber2(e){if(typeof e=="number")if(this.hasDecimal(e)){const n=Math.round(e*10)/10;return Number.isInteger(n)?n.toString()+"%":n.toFixed(1)+"%"}else return e;else return"0"},textoConNegritas(e){if(!e)return"";const n=e.split(/(\*.*?\*)/g).filter(F=>F.trim()!=="");let r=Math.ceil(n.length/2),I="";return n.forEach((F,h)=>{h===r&&(I+="<br/>"),F.startsWith("*")&&F.endsWith("*")?I+=`<span class="text-bold-prominent">${F.slice(1,-1)}</span>`:F.trim()!==""&&(I+=`<span class="text-prominent">${F}</span>`)}),I},async getDataProminentPrematch(e){try{const n=cl.create({headers:{Authorization:`${this.tokenPremium}`}});let r={};this.isWidget&&this.teamWidget!=0?r=await n.get(" https://1qvtl1japi.execute-api.us-east-2.amazonaws.com/prod/highlights/seasons/"+this.game.seasonId+"/games/"+this.game.gameId+"/prematch?t="+this.teamWidget):r=await n.get(" https://1qvtl1japi.execute-api.us-east-2.amazonaws.com/prod/highlights/seasons/"+this.game.seasonId+"/games/"+this.game.gameId+"/prematch"),this.dataProminent=r.data.data,this.dataProminentAll=r.data}catch(n){return Promise.reject(n)}},async getDataProminent(e){try{const n=cl.create({headers:{Authorization:`${this.tokenPremium}`}});let r={};this.isWidget&&this.teamWidget!=0?r=await n.get("https://1qvtl1japi.execute-api.us-east-2.amazonaws.com/prod/highlights/seasons/"+this.game.seasonId+"/games/"+this.game.gameId+"?t="+this.teamWidget):r=await n.get("https://1qvtl1japi.execute-api.us-east-2.amazonaws.com/prod/highlights/seasons/"+this.game.seasonId+"/games/"+this.game.gameId),this.dataProminent=r.data.data,this.dataProminentAll=r.data}catch(n){return Promise.reject(n)}}}},s3t=e=>(t.pushScopeId("data-v-e436b8d4"),e=e(),t.popScopeId(),e),l3t={class:"data-prominent-game"},c3t={class:"title-data"},d3t={class:"item-data-text"},u3t=["innerHTML"],h3t={class:"contain-stats-control"},p3t={key:0,class:"title-total"},f3t={key:1,class:"item-total"},m3t=["onClick"],g3t={"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"},y3t=[s3t(()=>t.createElementVNode("path",{"data-v-83c7df16":"",d:"M6.6041 22.8554C6.42105 22.7512 6.26805 22.5956 6.1616 22.4053C6.05515 22.215 5.99927 21.9973 6.00001 21.7755V2.22137C6.00026 2.00039 6.0565 1.78362 6.16274 1.59409C6.26899 1.40456 6.42127 1.24936 6.6034 1.14499C6.78553 1.04062 6.9907 0.990981 7.1971 1.00135C7.4035 1.01171 7.60342 1.0817 7.77561 1.20386L21.4907 10.9821C21.6473 11.0935 21.7758 11.2446 21.8646 11.4219C21.9535 11.5992 22 11.7973 22 11.9985C22 12.1996 21.9535 12.3977 21.8646 12.575C21.7758 12.7523 21.6473 12.9034 21.4907 13.0148L7.77561 22.7954C7.60369 22.9178 7.40392 22.988 7.19761 22.9986C6.9913 23.0092 6.78617 22.9597 6.6041 22.8554ZM7.14347 21.7779L20.8585 11.9996L7.14347 21.7779Z",fill:"#CBEE6B"},null,-1))];function v3t(e,n,r,I,F,h){const m=t.resolveComponent("GSCSlider");return t.openBlock(),t.createElementBlock("div",l3t,[t.createElementVNode("div",c3t,[r.game.game_status!=4||r.game.is_live==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Este partido: ")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("Este torneo:")],64))]),t.createVNode(m,{height:"115px",pxScroll:272,scrollColor:"none",arrowsPosition:"absolute",arrowsScrollHide:!0,arrowsHideOnNoScroll:!0,arrowsBackground:"rgba(255,255,255,.16)",arrowsContainerBgL:"linear-gradient(270deg, rgba(13,29,42,0.1) 0%, rgba(13,29,42,1) 70%)",arrowsContainerBgR:"linear-gradient(90deg, rgba(13,29,42,0.1) 0%, rgba(13,29,42,1) 70%)",arrowsMargin:0,arrowsRadius:"50%",arrowsBorder:"#ddd"},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(F.dataProminent,(a,y)=>(t.openBlock(),t.createElementBlock("div",{key:y,class:"item-prominent-data"},[t.createElementVNode("div",{class:"item-percent-shield",style:t.normalizeStyle("background:"+a.custom_colors.background_color)},[t.createElementVNode("div",{class:"item-team",style:t.normalizeStyle(a.player_id?"background-image:url(https://az755631.vo.msecnd.net/players-profile/"+a.player_id+".png); border: solid 1.4px "+a.custom_colors.background_color:"background-image:url(https://az755631.vo.msecnd.net/teams-80/"+a.team_id+".png);border: solid 1.4px "+a.custom_colors.background_color)},null,4),a.show_value==1?(t.openBlock(),t.createElementBlock("div",{key:0,class:"item-percent",style:t.normalizeStyle("color:"+a.custom_colors.font_color)},[a.is_percentage==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[a.title=="Distancia recorrida"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(h.formatNumber(a.percent)),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(h.formatNumber(a.percent)),1)],64))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(a.total),1)],64))],4)):t.createCommentVNode("",!0)],4),t.createElementVNode("div",d3t,[t.createElementVNode("div",{class:"container-text",innerHTML:h.textoConNegritas(a.description)},null,8,u3t),t.createElementVNode("div",h3t,[a.title!="Productividad"?(t.openBlock(),t.createElementBlock("div",p3t,"TOTAL:")):t.createCommentVNode("",!0),a.title!="Productividad"?(t.openBlock(),t.createElementBlock("div",f3t,[a.is_percentage==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(h.formatNumber(a.percent)),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[a.title=="Distancia recorrida"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(a.total)+" km",1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(a.total),1)],64))],64))])):t.createCommentVNode("",!0),r.canPlayVideos&&a.show_video==1?(t.openBlock(),t.createElementBlock("div",{key:2,class:"btn-play",style:t.normalizeStyle(a.title=="Productividad"?"margin-left: 0px !important;":""),onClick:g=>h.onclickPlayVideos({data:a})},[(t.openBlock(),t.createElementBlock("svg",g3t,y3t))],12,m3t)):t.createCommentVNode("",!0)])])]))),128))]),_:1})])}const _3t=Hr(o3t,[["render",v3t],["__scopeId","data-v-e436b8d4"]]),m1a="",b3t={components:{GSCCheckbox:K0},props:{timeLivePossesion:{type:Number,default:6e4},game:{type:Object,default:()=>{}},widthSection:{type:Number,default:0},teamSelected:{type:Object,default:()=>({})}},watch:{game:{deep:!0,immediate:!0,async handler(e){e.is_live==1?(this.getDataPosession(e.gameId),this.intervalIdPossesion=setInterval(()=>{this.getDataPosession(e.gameId)},this.timeLivePossesion),this.$emit("intervalidpossesion",this.intervalIdPossesion)):e.game_status==1||e.game_status==0?(this.getDataPosession(e.gameId),e.game_status==1&&(await this.$store.dispatch("nextGeneral/cleanStats"),await this.$store.dispatch("nextGeneral/checkState",{gameId:e.gameId,currentSeasonId:e.seasonId,isTeamsAnalysis:!0,defaultFilter:null,gameInfo:e}))):this.getDataPosessionPrematch(e.seasonId)}}},data(){return{areInactiveVisible:!1,dataPosession:[],arrTeams:[],intervalIdPossesion:null,url:"https://rwtfu33saa.execute-api.us-east-2.amazonaws.com/prod/ta/posessions/",urlPrematch:"https://rwtfu33saa.execute-api.us-east-2.amazonaws.com/prod/ta/seasons/",tokenPremium:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6NTg2LCJuYW1lIjoiSkFTIEdvbFN0YXRzIiwidXNlcm5hbWUiOiJ5YXRlYW1lcmljYSIsImVtYWlsIjoiIiwicHJvdmlkZXJfaWQiOjEsImxvZ2luX2dvbHN0YXRzIjoxLCJpYXQiOjE2OTYzNjU1ODcsImV4cCI6MTcyNzkwMTU4N30.jynRtgtFM8sf8gtqZJ-1gHLc2Ws13TIykXcfrlOvv1g",objectZeroValues:{numberValue:0,numberBarPercent:0}}},computed:{...Pd("nextGeneral",["gameForAnalysis","seasonId"]),...Ml("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 n=await cl.create({headers:{Authorization:`${this.tokenPremium}`}}).get(this.url+this.game.gameId);this.dataPosession=n.data}catch(e){return Promise.reject(e)}},async getDataPosessionPrematch(e){try{const r=await cl.create({headers:{Authorization:`${this.tokenPremium}`}}).get(this.urlPrematch+e+"/posessions");for(const I in r.data.teams)r.data.teams.hasOwnProperty(I)&&(this.arrTeams[I]=r.data.teams[I])}catch(n){return Promise.reject(n)}},onCheckInactive(e){e?this.areInactiveVisible=!0:this.areInactiveVisible=!1},deleteDecimalZero(e){const n=typeof e=="string"?parseFloat(e):e;return typeof n=="number"&&!isNaN(n)?n%1===0?n:n%1===0?Math.floor(n):n: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,n,r){if(!n.game_id)return this.objectZeroValues;const I=e.homeTeam.accomplished.avgPostGame+e.visitingTeam.accomplished.avgPostGame,F=e[r].accomplished.avgPostGame/I;return e[r].accomplished.avgPostGame?{numberValue:F<1?F*100:F,numberBarPercent:e[r].accomplished.avgPostGame/I}:this.objectZeroValues}},created(){this.$store.commit("nextGeneral/updateFilters",{filters:{local:{playingAs:[1,2],statistics:{},matchResult:[1,2,3],firstHalf:[1,2,3],secondHalf:[4,5,6]},visit:{playingAs:[1,2],statistics:{},matchResult:[1,2,3],firstHalf:[1,2,3],secondHalf:[4,5,6]}},needsFormat:!0})},beforeDestroy(){clearInterval(this.intervalIdPossesion)}},Y1=e=>(t.pushScopeId("data-v-3aa0c085"),e=e(),t.popScopeId(),e),x3t={key:0,class:"field-posesion-prominent"},w3t={key:0,class:"title"},k3t={class:"info-data-item"},C3t={class:"item-indicador"},S3t={class:"item-indicador-value"},T3t={key:0},E3t=Y1(()=>t.createElementVNode("div",{class:"item-indicador-img"},[t.createElementVNode("svg",{width:"8",height:"6",viewBox:"0 0 8 6",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M3.87817 5.92969L0.506034 0.0889796L7.2503 0.0889802L3.87817 5.92969Z",fill:"#38CFFF"})])],-1)),A3t={key:0,class:"inactiveInfo"},M3t={class:"info-data-item"},I3t={class:"item-indicador"},N3t={class:"item-indicador-value"},B3t=Y1(()=>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)),P3t={class:"info-data-item"},O3t={class:"item-indicador"},L3t={class:"item-indicador-value"},F3t={key:0},D3t=Y1(()=>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)),z3t={class:"info-data-item"},V3t={class:"item-indicador"},R3t={class:"item-indicador-value"},$3t=Y1(()=>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)),j3t={key:0,class:"inactiveInfo"},U3t={class:"info-data-item"},G3t={class:"item-indicador"},H3t={class:"item-indicador-value"},W3t=Y1(()=>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)),q3t={class:"info-data-item"},Y3t={class:"item-indicador"},X3t={class:"item-indicador-value"},J3t=Y1(()=>t.createElementVNode("div",{class:"item-indicador-img"},[t.createElementVNode("svg",{width:"8",height:"6",viewBox:"0 0 8 6",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M3.87817 5.92969L0.506034 0.0889796L7.2503 0.0889802L3.87817 5.92969Z",fill:"#38CFFF"})])],-1));function Z3t(e,n,r,I,F,h){const m=t.resolveComponent("GSCCheckbox");return e.arrayFilledDataSortedByPriority.length>0?(t.openBlock(),t.createElementBlock("div",x3t,[r.widthSection>760?(t.openBlock(),t.createElementBlock("div",w3t,"Porcentajes")):t.createCommentVNode("",!0),r.game.game_status==1||r.game.game_status==0||r.game.is_live==1?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(r.widthSection>760?"field-container":r.widthSection>520?"field-container-movil":r.widthSection>440?"field-container-movil-2":r.widthSection>360?"field-container-movil-3":"field-container-movil-4")},[F.dataPosession.has_posession==1?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(r.widthSection>1020?"time-show":r.widthSection>920?"time-show-table-xl":r.widthSection>880?"time-show-table-xl-2":r.widthSection>820?"time-show-table-xl-3":r.widthSection>760?"time-show-table-xl-4":"time-show-movil")},[t.createVNode(m,{label:"Mostrar tiempo inactivo",fontFamily:"Poppins-Regular","onUpdate:modelValue":h.onCheckInactive,"label-color":"#8c9399"},null,8,["onUpdate:modelValue"])],2)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(r.widthSection>1020?"field-data-container":r.widthSection>920?"field-data-container-xl":r.widthSection>880?"field-data-container-xl-2":r.widthSection>820?"field-data-container-xl-3":r.widthSection>760?"field-data-container-xl-4":"field-data-container-movil")},[t.createElementVNode("div",{class:t.normalizeClass(F.areInactiveVisible?"container-data-img-home":"container-data-img-home50")},[t.createElementVNode("div",{class:t.normalizeClass(F.areInactiveVisible?"homeInfo":"homeInfo50"),style:t.normalizeStyle("background-image:url("+r.game.homeTeam.logo.replace("80","150")+")")},null,6),t.createElementVNode("div",k3t,[t.createElementVNode("div",{class:t.normalizeClass(r.widthSection>580?"item-ref-data":"item-ref-data-movil")},[t.createElementVNode("div",C3t,[t.createElementVNode("div",S3t,[F.dataPosession.has_posession==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[F.areInactiveVisible?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(F.dataPosession.active_time.home),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(F.dataPosession.home),1)],64))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[h.hVal(e.arrayFilledDataSortedByPriority[0].subcategories.possession)?(t.openBlock(),t.createElementBlock("span",T3t,t.toDisplayString(h.deleteDecimalZero(h.formatNumbers(h.hVal(e.arrayFilledDataSortedByPriority[0].subcategories.possession).numberValue)))+"%",1)):t.createCommentVNode("",!0)],64))]),E3t]),t.createElementVNode("div",{class:t.normalizeClass(r.widthSection>580?"title-indicador":"title-indicador-movil")}," Pos. "+t.toDisplayString(r.game.homeTeam.acronym),3)],2)])],2),F.areInactiveVisible&&F.dataPosession.has_posession==1?(t.openBlock(),t.createElementBlock("div",A3t,[t.createElementVNode("div",M3t,[t.createElementVNode("div",{class:t.normalizeClass(r.widthSection>580?"item-ref-data":"item-ref-data-movil")},[t.createElementVNode("div",I3t,[t.createElementVNode("div",N3t,t.toDisplayString(F.dataPosession.active_time.inactive_time),1),B3t]),t.createElementVNode("div",{class:t.normalizeClass(r.widthSection>580?"title-indicador":"title-indicador-movil")},[r.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(F.areInactiveVisible?"container-data-img-away":"container-data-img-away50")},[t.createElementVNode("div",{class:t.normalizeClass(F.areInactiveVisible?"awayInfo":"awayInfo50"),style:t.normalizeStyle("background-image:url("+r.game.awayTeam.logo.replace("80","150")+")")},null,6),t.createElementVNode("div",P3t,[t.createElementVNode("div",{class:t.normalizeClass(r.widthSection>580?"item-ref-data":"item-ref-data-movil")},[t.createElementVNode("div",O3t,[t.createElementVNode("div",L3t,[F.dataPosession.has_posession==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[F.areInactiveVisible?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(F.dataPosession.active_time.away),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(F.dataPosession.away),1)],64))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[h.aVal(e.arrayFilledDataSortedByPriority[0].subcategories.possession)?(t.openBlock(),t.createElementBlock("span",F3t,t.toDisplayString(h.deleteDecimalZero(h.formatNumbers(h.aVal(e.arrayFilledDataSortedByPriority[0].subcategories.possession).numberValue)))+"%",1)):t.createCommentVNode("",!0)],64))]),D3t]),t.createElementVNode("div",{class:t.normalizeClass(r.widthSection>580?"title-indicador":"title-indicador-movil")}," Pos. "+t.toDisplayString(r.game.awayTeam.acronym),3)],2)])],2)],2)],2)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[F.arrTeams.length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(r.widthSection>760?"field-container":r.widthSection>520?"field-container-movil":r.widthSection>440?"field-container-movil-2":r.widthSection>360?"field-container-movil-3":"field-container-movil-4")},[F.arrTeams[r.teamSelected.teamId].has_posession==1?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(r.widthSection>1020?"time-show":r.widthSection>920?"time-show-table-xl":r.widthSection>880?"time-show-table-xl-2":r.widthSection>820?"time-show-table-xl-3":r.widthSection>760?"time-show-table-xl-4":"time-show-movil")},[t.createVNode(m,{label:"Mostrar tiempo inactivo",fontFamily:"Poppins-Regular","onUpdate:modelValue":h.onCheckInactive,"label-color":"#8c9399"},null,8,["onUpdate:modelValue"])],2)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(r.widthSection>1020?"field-data-container":r.widthSection>920?"field-data-container-xl":r.widthSection>880?"field-data-container-xl-2":r.widthSection>820?"field-data-container-xl-3":r.widthSection>760?"field-data-container-xl-4":"field-data-container-movil")},[t.createElementVNode("div",{class:t.normalizeClass(F.areInactiveVisible?"container-data-img-home":"container-data-img-home50")},[r.game.homeTeam.team_id==r.teamSelected.teamId?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(F.areInactiveVisible?"homeInfo":"homeInfo50"),style:t.normalizeStyle("background-image:url("+r.game.homeTeam.logo.replace("80","150")+")")},null,6)):t.createCommentVNode("",!0),t.createElementVNode("div",z3t,[t.createElementVNode("div",{class:t.normalizeClass(r.widthSection>580?"item-ref-data":"item-ref-data-movil")},[t.createElementVNode("div",V3t,[t.createElementVNode("div",R3t,[F.areInactiveVisible?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[r.game.awayTeam.team_id==r.teamSelected.teamId?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(F.arrTeams[r.teamSelected.teamId].active_time.away),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(F.arrTeams[r.teamSelected.teamId].active_time.home),1)],64))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[r.game.awayTeam.team_id==r.teamSelected.teamId?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(F.arrTeams[r.teamSelected.teamId].away),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(F.arrTeams[r.teamSelected.teamId].home),1)],64))],64))]),$3t]),r.game.homeTeam.team_id==r.teamSelected.teamId?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(r.widthSection>580?"title-indicador":"title-indicador-movil")}," Pos. "+t.toDisplayString(r.game.homeTeam.acronym),3)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(r.widthSection>580?"title-indicador":"title-indicador-movil")}," Pos. Rival ",2))],2)])],2),F.areInactiveVisible&&F.arrTeams[r.teamSelected.teamId].has_posession==1?(t.openBlock(),t.createElementBlock("div",j3t,[t.createElementVNode("div",U3t,[t.createElementVNode("div",{class:t.normalizeClass(r.widthSection>580?"item-ref-data":"item-ref-data-movil")},[t.createElementVNode("div",G3t,[t.createElementVNode("div",H3t,t.toDisplayString(F.arrTeams[r.teamSelected.teamId].active_time.inactive_time),1),W3t]),t.createElementVNode("div",{class:t.normalizeClass(r.widthSection>580?"title-indicador":"title-indicador-movil")},[r.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(F.areInactiveVisible?"container-data-img-away":"container-data-img-away50")},[r.game.awayTeam.team_id==r.teamSelected.teamId?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(F.areInactiveVisible?"awayInfo":"awayInfo50"),style:t.normalizeStyle("background-image:url("+r.game.awayTeam.logo.replace("80","150")+")")},null,6)):t.createCommentVNode("",!0),t.createElementVNode("div",q3t,[t.createElementVNode("div",{class:t.normalizeClass(r.widthSection>580?"item-ref-data":"item-ref-data-movil")},[t.createElementVNode("div",Y3t,[t.createElementVNode("div",X3t,[F.areInactiveVisible?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[r.game.homeTeam.team_id==r.teamSelected.teamId?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(F.arrTeams[r.teamSelected.teamId].active_time.away),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(F.arrTeams[r.teamSelected.teamId].active_time.home),1)],64))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[r.game.homeTeam.team_id==r.teamSelected.teamId?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(F.arrTeams[r.teamSelected.teamId].away),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(F.arrTeams[r.teamSelected.teamId].home),1)],64))],64))]),J3t]),r.game.awayTeam.team_id==r.teamSelected.teamId?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(r.widthSection>580?"title-indicador":"title-indicador-movil")}," Pos. "+t.toDisplayString(r.game.awayTeam.acronym),3)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(r.widthSection>580?"title-indicador":"title-indicador-movil")}," Pos. Rival ",2))],2)])],2)],2)],2)):t.createCommentVNode("",!0)],64))])):t.createCommentVNode("",!0)}const K3t=Hr(b3t,[["render",Z3t],["__scopeId","data-v-3aa0c085"]]),g1a="",YS={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(n){throw new Error(n)}}}},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)}}},QH=()=>{t.useCssVars(e=>({ec641b3a:e.backgroundColor,"66cc4678":e.widthCircle,"1c5ce009":e.heightCircle}))},eW=YS.setup;YS.setup=eW?(e,n)=>(QH(),eW(e,n)):QH;const Q3t={key:0,class:"text-left"},e4t=["width","src"],t4t=["checked"],a4t=["width","src"],n4t={key:3,class:"text-right"};function r4t(e,n,r,I,F,h){return t.openBlock(),t.createElementBlock("div",{class:"gsc-switch-radio",style:t.normalizeStyle(h.customText)},[r.textOptionLeft!=""&&!r.hiddenLabels?(t.openBlock(),t.createElementBlock("span",Q3t,t.toDisplayString(r.textOptionLeft),1)):t.createCommentVNode("",!0),r.iconA!=""?(t.openBlock(),t.createElementBlock("img",{key:1,width:r.widthIcons,src:r.iconA},null,8,e4t)):t.createCommentVNode("",!0),t.createElementVNode("input",{type:"checkbox",id:"toggle-btn",onChange:n[0]||(n[0]=(...m)=>h.handleSwitchChange&&h.handleSwitchChange(...m)),checked:F.OptionDefault},null,40,t4t),t.createElementVNode("label",{for:"toggle-btn",style:t.normalizeStyle([h.customStyle,{"--circle-color":r.circleColorSwitch}])},null,4),r.iconB!=""?(t.openBlock(),t.createElementBlock("img",{key:2,width:r.widthIcons,src:r.iconB},null,8,a4t)):t.createCommentVNode("",!0),r.textOptionRight!=""&&!r.hiddenLabels?(t.openBlock(),t.createElementBlock("span",n4t,t.toDisplayString(r.textOptionRight),1)):t.createCommentVNode("",!0)],4)}const tW=Hr(YS,[["render",r4t],["__scopeId","data-v-62d6b055"]]),y1a="";let aW=null;const XS={components:{},props:{canPlayVideos:{type:Boolean,default:!1},titleCategory:{type:String,default:"RESUMEN"},dateGame:{type:String,default:""},colorBackgroundHome:{type:String,default:"#000000"},colorBackgroundAway:{type:String,default:"#FFFFFF"},logoHome:{type:String,default:""},isLive:{type:Boolean,default:!0},matchday:{type:String,default:""},seasonName:{type:String,default:""},logoAway:{type:String,default:""},score:{type:String,default:""},background:{type:String,default:""}},data(){return{gamesContainerWidth:0}},computed:{date(){const e=this.gamesContainerWidth;return e<=400?"date400":e<=540?"date540":e<=650?"date650":"date"},seasoncontainer(){const e=this.gamesContainerWidth;return e<=400?"season-container400":e<=540?"season-container540":e<=650?"season-container650":"season-container"},matchcontainer(){const e=this.gamesContainerWidth;return e<=400?"match-container400":e<=540?"match-container540":e<=650?"match-container650":"match-container"},containerinfogame(){const e=this.gamesContainerWidth;return e<=400?"container-info-game400":e<=540?"container-info-game540":e<=650?"container-info-game650":"container-info-game"},playbutton(){const e=this.gamesContainerWidth;return e<=400?"play-button400":e<=540?"play-button540":e<=650?"play-button650":"play-button"},baselogo(){const e=this.gamesContainerWidth;return e<=400?"base-logo400":e<=540?"base-logo540":e<=650?"base-logo650":"base-logo"},baselogoright(){const e=this.gamesContainerWidth;return e<=400?"base-logo-right400":e<=540?"base-logo-right540":e<=650?"base-logo-right650":"base-logo-right"},thumbnailhighlights(){const e=this.gamesContainerWidth;return e<=400?"thumbnail-highlights400":e<=540?"thumbnail-highlights540":e<=650?"thumbnail-highlights650":"thumbnail-highlights"},teamlogo(){const e=this.gamesContainerWidth;return e<=400?"team-logo400":e<=540?"team-logo540":e<=650?"team-logo650":"team-logo"},logoright(){const e=this.gamesContainerWidth;return e<=400?"logo-right400":e<=540?"logo-right540":e<=650?"logo-right650":"logo-right"},secondline(){const e=this.gamesContainerWidth;return e<=400?"second-line400":e<=540?"second-line540":e<=650?"second-line650":"second-line"},titlename(){const e=this.gamesContainerWidth;return e<=400?"title-name400":e<=540?"title-name540":e<=650?"title-name650":"title-name"}},methods:{onclickPlayVideos(){this.$emit("onclickPlayVideos")},setUpResizeObserver(){if(window.ResizeObserver)aW=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),aW.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},nW=()=>{t.useCssVars(e=>({"524d4024":e.colorBackgroundHome+"45","2acdc375":e.colorBackgroundAway+"45","60764af4":e.colorBackgroundHome,"607c6ed6":e.colorBackgroundAway}))},rW=XS.setup;XS.setup=rW?(e,n)=>(nW(),rW(e,n)):nW;const X4=e=>(t.pushScopeId("data-v-ec876074"),e=e(),t.popScopeId(),e),i4t=[X4(()=>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))],o4t=X4(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/paper-texture.png",alt:"",class:"paper-texture position-image"},null,-1)),s4t=["src"],l4t=X4(()=>t.createElementVNode("div",{class:"gradient-back position-image"},null,-1)),c4t=X4(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/halftone-texture.png",alt:"",class:"halftone-texture position-image"},null,-1)),d4t=["src"],u4t=["src"],h4t={class:"text-container"};function p4t(e,n,r,I,F,h){return t.openBlock(),t.createElementBlock("div",{ref:"gamesContainer",class:t.normalizeClass(h.thumbnailhighlights)},[r.canPlayVideos?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(h.playbutton),onClick:n[0]||(n[0]=(...m)=>h.onclickPlayVideos&&h.onclickPlayVideos(...m))},i4t,2)):t.createCommentVNode("",!0),r.dateGame!=""?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(h.date)},t.toDisplayString(r.dateGame),3)):t.createCommentVNode("",!0),r.matchday!=""&&r.seasonName!=""?(t.openBlock(),t.createElementBlock("div",{key:2,class:t.normalizeClass(h.containerinfogame)},[r.matchday!=""?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(h.matchcontainer)},t.toDisplayString(r.matchday),3)):t.createCommentVNode("",!0),r.seasonName!=""?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(h.seasoncontainer)},t.toDisplayString(r.seasonName),3)):t.createCommentVNode("",!0)],2)):t.createCommentVNode("",!0),o4t,t.createElementVNode("img",{src:r.background,alt:"",class:"bkg-blackwhite position-image"},null,8,s4t),t.createElementVNode("div",{class:t.normalizeClass([h.baselogo,"position-image"])},null,2),t.createElementVNode("div",{class:t.normalizeClass(h.baselogoright)},null,2),l4t,c4t,t.createElementVNode("img",{src:r.logoHome,alt:"",class:t.normalizeClass(h.teamlogo)},null,10,d4t),t.createElementVNode("img",{src:r.logoAway,alt:"",class:t.normalizeClass(h.logoright)},null,10,u4t),t.createElementVNode("div",h4t,[t.createElementVNode("span",{class:t.normalizeClass(h.secondline)},t.toDisplayString(r.score),3),t.createElementVNode("div",{class:t.normalizeClass(h.titlename)},t.toDisplayString(r.titleCategory),3)])],2)}const f4t=Hr(XS,[["render",p4t],["__scopeId","data-v-ec876074"]]),_1a="";let iW=null;const m4t={components:{GSCThumbnailHighlightGameHistoric:f4t},props:{game:{type:Object,default:()=>{}},canPlayVideos:{type:Boolean,default:!1}},watch:{},data(){return{dataProminent:[],gameInfo:{},gamesContainerWidth:0,item:{backgroundhome:"",backgroundaway:"",logohome:"",logoaway:"",background:"",match:"",seasonname:"",score:""},tournamentId:0,token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"}},computed:{},methods:{onclickPlayVideos(e){var n=[];e.type==2?e.data.position_id==1?e.data.category==0?n=[55,324,323,608,39,774,802,52,53,40,54]:n=e.data.category:e.data.category==0?n=[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]:n=e.data.category:e.type==3?e.data.category==0?n=[607,608,12,55,54,35,14,52,15,53,466,477,40,257,39]:n=e.data.category:e.data.category!=0?n=e.data.category:n=[607,608,12,55,54,35,14,52,15,53,466,477];const r=[1,2,3];let I={seasonId:e.data.season_id,mainSectionType:1,playListType:e.type,categoryIds:n,gameIds:e.data.game_id?[e.data.game_id]:null,playerIds:e.data.position_id!=1?e.data.player_id?[e.data.player_id]:[]:[],goalkeeperIds:e.data.position_id==1?e.data.player_id?[e.data.player_id]:[]:[],teamId:e.data.team_id?e.data.team_id:0,matchResult:e.data.matchResult?[e.data.matchResult]:r,playData:{},advancedFilter:{playListTitle:""}};e.data.category!==0&&(I.advancedFilter.mainCategoryId=e.data.category),this.$emit("openmedia",I)},async fillData(){const e=cl.create({headers:{Authorization:`${this.token}`}}),n=await e.get("https://8tvo5bp9ai.execute-api.us-west-2.amazonaws.com/prod/gamesBySeason/"+this.game.seasonId),r=await e.get("https://d2oco6mqmc.execute-api.us-west-2.amazonaws.com/prod/teamsBySeason/"+this.game.seasonId);this.tournamentId=r.data.tournament_id;const I=n.data.games.findIndex(h=>h.game_id===this.game.gameId);this.gameInfo=n.data.games[I];const F=await e.get("https://fxtcaw9tw6.execute-api.us-east-2.amazonaws.com/prod/historic/games/"+this.game.gameId);this.item.category=0,this.item.game_id=F.data.game_id,this.item.season_id=this.game.seasonId,this.item.score=F.data.thumbnails[F.data.game_id]?F.data.thumbnails[F.data.game_id].score[0]+" - "+F.data.thumbnails[F.data.game_id].score[1]:"0 - 0",this.item.backgroundhome=F.data.thumbnails[F.data.game_id]?F.data.thumbnails[F.data.game_id].info_thumbnails.home_colors.background_color:"",this.item.backgroundaway=F.data.thumbnails[F.data.game_id]?F.data.thumbnails[F.data.game_id].info_thumbnails.away_colors.background_color:"",this.item.logohome=F.data.thumbnails[F.data.game_id]?"https://az755631.vo.msecnd.net/teams-150/"+F.data.thumbnails[F.data.game_id].home_team+".png":"",this.item.logoaway=F.data.thumbnails[F.data.game_id]?"https://az755631.vo.msecnd.net/teams-150/"+F.data.thumbnails[F.data.game_id].visiting_team+".png":"",this.item.background=F.data.thumbnails[F.data.game_id]?"https://golstatsimages.blob.core.windows.net/images-library/"+F.data.thumbnails[F.data.game_id].info_thumbnails.images.background_default_games[0]:""},setUpResizeObserver(){if(window.ResizeObserver)iW=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),iW.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},async mounted(){setTimeout(()=>{this.setUpResizeObserver()},1e3),await this.fillData()}},g4t={class:"highlights-prominent-game",ref:"gamesContainer"},y4t={class:"video-partido-container__highlight"},v4t={key:0,class:"video-partido-container__ribbon"},_4t={key:1,class:"video-partido-container__description"};function b4t(e,n,r,I,F,h){const m=t.resolveComponent("GSCThumbnailHighlightGameHistoric");return t.openBlock(),t.createElementBlock("div",g4t,[t.createElementVNode("div",y4t,[t.createElementVNode("div",{class:"video-partido-container__content2",style:t.normalizeStyle(F.gamesContainerWidth<=680?"display:block; width: 100%":"display:none")},[F.gamesContainerWidth>0?(t.openBlock(),t.createElementBlock("p",{key:0,class:t.normalizeClass(F.gamesContainerWidth>330?"video-partido-container__description2":"video-partido-container__description3")}," Las jugadas más importantes del partido ",2)):t.createCommentVNode("",!0)],4),F.gamesContainerWidth>680?(t.openBlock(),t.createElementBlock("div",{key:0,class:"video-partido-container__content",style:t.normalizeStyle(F.gamesContainerWidth<680?"margin-bottom: 30px;":"margin-bottom: 18px;")},[Object.keys(F.gameInfo).length>0?(t.openBlock(),t.createElementBlock("div",v4t,t.toDisplayString(F.tournamentId!=41?F.gameInfo.matchday_name.replace("Matchday","Jornada").replace("de Final","").replace("Playoffs 1","Cuartos de Final Ida").replace("Playoffs 2","Cuartos de Final Vuelta").replace("Playoffs 3","Semifinal Ida").replace("Playoffs 4","Semifinal Vuelta").replace("Playoffs 5","Final Ida").replace("Playoffs 6","Final Vuelta"):F.gameInfo.matchday_name=="Matchday 10"?"Final":F.gameInfo.matchday_name.replace("Matchday 1","16vos Ida").replace("Matchday 2","16vos Vuelta").replace("Matchday 3","8vos Ida").replace("Matchday 4","8vos Vuelta").replace("Matchday 5","4tos Ida").replace("Matchday 6","4tos Vuelta").replace("Matchday 7","Semifinal Ida").replace("Matchday 8","Semifinal Vuelta").replace("Matchday 9","Final").replace("Matchday 10","Final")),1)):t.createCommentVNode("",!0),t.createElementVNode("h2",{class:t.normalizeClass(F.gamesContainerWidth>865?"video-partido-container__title":"video-partido-container__titletablet")},"HIGHLIGHTS DEL",2),t.createElementVNode("h2",{class:t.normalizeClass(F.gamesContainerWidth>865?"video-partido-container__title":"video-partido-container__titletablet")},"PARTIDO",2),F.gamesContainerWidth>=645?(t.openBlock(),t.createElementBlock("p",_4t," Las jugadas más importantes del partido ")):t.createCommentVNode("",!0)],4)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(F.gamesContainerWidth>865?"video-partido-container__image":"video-partido-container__image2")},[F.item.background!=""?(t.openBlock(),t.createBlock(m,{key:0,"color-background-home":F.item.backgroundhome,"color-background-away":F.item.backgroundaway,"logo-home":F.item.logohome,"logo-away":F.item.logoaway,"is-live":!0,"can-play-videos":r.canPlayVideos,background:F.item.background,matchday:F.item.match,"season-name":F.item.seasonname,onOnclickPlayVideos:n[0]||(n[0]=a=>h.onclickPlayVideos({data:F.item,type:1})),score:F.item.score},null,8,["color-background-home","color-background-away","logo-home","logo-away","can-play-videos","background","matchday","season-name","score"])):t.createCommentVNode("",!0)],2)])],512)}const x4t=Hr(m4t,[["render",b4t],["__scopeId","data-v-79ccee9d"]]),b1a="";let oW=null;const JS={components:{},props:{titleCategory:{type:String,default:"RESUMEN"},dateGame:{type:String,default:""},colorBackgroundHome:{type:String,default:"#000000"},colorBackgroundAway:{type:String,default:"#FFFFFF"},isLive:{type:Boolean,default:!1},logoHome:{type:String,default:""},game:{type:Object,default:()=>{}},matchday:{type:String,default:""},seasonName:{type:String,default:""},logoAway:{type:String,default:""},score:{type:String,default:""},background:{type:String,default:""}},data(){return{gamesContainerWidth:0}},computed:{date(){const e=this.gamesContainerWidth;return e<=400?"date400":e<=540?"date540":e<=650?"date650":"date"},seasoncontainer(){const e=this.gamesContainerWidth;return e<=400?"season-container400":e<=540?"season-container540":e<=650?"season-container650":"season-container"},matchcontainer(){const e=this.gamesContainerWidth;return e<=400?"match-container400":e<=540?"match-container540":e<=650?"match-container650":"match-container"},containerinfogame(){const e=this.gamesContainerWidth;return e<=400?"container-info-game400":e<=540?"container-info-game540":e<=650?"container-info-game650":"container-info-game"},playbutton(){const e=this.gamesContainerWidth;return e<=400?"play-button400":e<=540?"play-button540":e<=650?"play-button650":"play-button"},baselogo(){const e=this.gamesContainerWidth;return e<=400?"base-logo400":e<=540?"base-logo540":e<=650?"base-logo650":"base-logo"},baselogoright(){const e=this.gamesContainerWidth;return e<=400?"base-logo-right400":e<=540?"base-logo-right540":e<=650?"base-logo-right650":"base-logo-right"},thumbnailhighlights(){const e=this.gamesContainerWidth;return e<=400?"thumbnail-highlights400":e<=540?"thumbnail-highlights540":e<=650?"thumbnail-highlights650":"thumbnail-highlights"},teamlogo(){const e=this.gamesContainerWidth;return e<=400?"team-logo400":e<=540?"team-logo540":e<=650?"team-logo650":"team-logo"},logoright(){const e=this.gamesContainerWidth;return e<=400?"logo-right400":e<=540?"logo-right540":e<=650?"logo-right650":"logo-right"},secondline(){const e=this.gamesContainerWidth;return e<=400?"second-line400":e<=540?"second-line540":e<=650?"second-line650":"second-line"},titlename(){const e=this.gamesContainerWidth;return e<=400?"title-name400":e<=540?"title-name540":e<=650?"title-name650":"title-name"}},methods:{onclickPlayVideos(){this.$emit("onclickPlayVideos")},setUpResizeObserver(){if(window.ResizeObserver)oW=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),oW.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},sW=()=>{t.useCssVars(e=>({"051a0872":e.colorBackgroundHome+"45","80f208fa":e.colorBackgroundAway+"45","9087fefc":e.colorBackgroundHome,"908e22de":e.colorBackgroundAway}))},lW=JS.setup;JS.setup=lW?(e,n)=>(sW(),lW(e,n)):sW;const X1=e=>(t.pushScopeId("data-v-84f38fde"),e=e(),t.popScopeId(),e),w4t={key:0,class:"icon-live"},k4t=[X1(()=>t.createElementVNode("span",{class:"circle-live"},null,-1)),X1(()=>t.createElementVNode("span",{style:{"margin-left":"3px"}},"LIVE",-1))],C4t=[X1(()=>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))],S4t=X1(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/paper-texture.png",alt:"",class:"paper-texture position-image"},null,-1)),T4t=["src"],E4t=X1(()=>t.createElementVNode("div",{class:"gradient-back position-image"},null,-1)),A4t=X1(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/halftone-texture.png",alt:"",class:"halftone-texture position-image"},null,-1)),M4t=["src"],I4t=["src"],N4t={class:"text-container"};function B4t(e,n,r,I,F,h){return t.openBlock(),t.createElementBlock("div",{ref:"gamesContainer",class:t.normalizeClass(h.thumbnailhighlights)},[r.isLive&&r.game.game_status!=0?(t.openBlock(),t.createElementBlock("div",w4t,k4t)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(h.playbutton),onClick:n[0]||(n[0]=(...m)=>h.onclickPlayVideos&&h.onclickPlayVideos(...m))},C4t,2),r.dateGame!=""?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(h.date)},t.toDisplayString(r.dateGame),3)):t.createCommentVNode("",!0),r.matchday!=""&&r.seasonName!=""?(t.openBlock(),t.createElementBlock("div",{key:2,class:t.normalizeClass(h.containerinfogame)},[r.matchday!=""?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(h.matchcontainer)},t.toDisplayString(r.matchday),3)):t.createCommentVNode("",!0),r.seasonName!=""?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(h.seasoncontainer)},t.toDisplayString(r.seasonName),3)):t.createCommentVNode("",!0)],2)):t.createCommentVNode("",!0),S4t,t.createElementVNode("img",{src:r.background,alt:"",class:"bkg-blackwhite position-image"},null,8,T4t),t.createElementVNode("div",{class:t.normalizeClass([h.baselogo,"position-image"])},null,2),t.createElementVNode("div",{class:t.normalizeClass(h.baselogoright)},null,2),E4t,A4t,t.createElementVNode("img",{src:r.logoHome,alt:"",class:t.normalizeClass(h.teamlogo)},null,10,M4t),t.createElementVNode("img",{src:r.logoAway,alt:"",class:t.normalizeClass(h.logoright)},null,10,I4t),t.createElementVNode("div",N4t,[t.createElementVNode("span",{class:t.normalizeClass(h.secondline)},t.toDisplayString(r.score),3),t.createElementVNode("div",{class:t.normalizeClass(h.titlename)},t.toDisplayString(r.titleCategory),3)])],2)}const P4t=Hr(JS,[["render",B4t],["__scopeId","data-v-84f38fde"]]),C1a="";let cW=null;const O4t={components:{GSCThumbnailHighlightGameHistoricLive:P4t},props:{timeLiveHighlightsProminentAndVideo:{type:Number,default:6e4},game:{type:Object,default:()=>{}},canPlayVideos:{type:Boolean,default:!1}},watch:{game:{deep:!0,immediate:!0,handler(e){this.fetchLiveData(e.gameId),e.is_live==1&&(this.intervalidhighlive=setInterval(()=>{this.fetchLiveData(e.gameId)},this.timeLiveHighlightsProminentAndVideo),this.$emit("intervalidhighlive",this.intervalidhighlive))}}},data(){return{printData:[],gameInfo:{},intervalidhighlive:null,informationBestPlaysPlayers:[],informationBestPlaysTeamHome:[],informationBestPlaysTeamAway:[],gamesContainerWidth:0,tournamentId:0,showHighlight:!1,showHighlightGoals:!1,item:{backgroundhome:"",backgroundaway:"",logohome:"",logoaway:"",background:"",match:"",seasonname:"",score:""},token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"}},computed:{},methods:{async fetchLiveData(){await this.getLiveHighlights()},onclickPlayVideos(e){var n=[];e.type==2?e.data.position_id==1?e.data.category==0?n=[55,324,323,608,39,774,802,52,53,40,54]:n=e.data.category:e.data.category==0?n=[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]:n=e.data.category:e.type==3?e.data.category==0?n=[607,608,12,55,54,35,14,52,15,53,466,477,40,257,39]:n=e.data.category:e.type==4?n=[12,55,"35_r","54_r"]:e.data.category!=0?n=e.data.category:n=[607,608,12,55,54,35,14,52,15,53,466,477];const r=[1,2,3];let I={seasonId:e.data.season_id,mainSectionType:1,playListType:e.type,categoryIds:n,gameIds:e.data.game_id?[e.data.game_id]:null,playerIds:e.data.position_id!=1?e.data.player_id?[e.data.player_id]:[]:[],goalkeeperIds:e.data.position_id==1?e.data.player_id?[e.data.player_id]:[]:[],teamId:e.data.team_id?e.data.team_id:0,matchResult:e.data.matchResult?[data.matchResult]:r,playData:{},advancedFilter:{playListTitle:""}};e.data.category!==0&&(I.advancedFilter.mainCategoryId=e.data.category),this.$emit("openmedia",I)},async getLiveHighlights(){const n=await cl.create({headers:{Authorization:`${this.token}`}}).get("https://fxtcaw9tw6.execute-api.us-east-2.amazonaws.com/prod/live/historic/games/"+this.game.gameId);n.data!=""&&(this.showHighlight=n.data==""?!1:n.data.plays.length>0,this.showHighlightGoals=n.data==""?!1:n.data.plays.filter(r=>r[0]===12).length>0,this.item.category=0,this.item.game_id=n.data.game_id,this.item.season_id=this.game.seasonId,this.item.score=n.data.thumbnails[n.data.game_id].score,this.item.backgroundhome=n.data.thumbnails[n.data.game_id].info_thumbnails.home_colors.background_color,this.item.backgroundaway=n.data.thumbnails[n.data.game_id].info_thumbnails.away_colors.background_color,this.item.logohome="https://az755631.vo.msecnd.net/teams-150/"+n.data.thumbnails[n.data.game_id].home_team+".png",this.item.logoaway="https://az755631.vo.msecnd.net/teams-150/"+n.data.thumbnails[n.data.game_id].visiting_team+".png",this.item.background="https://golstatsimages.blob.core.windows.net/images-library/"+n.data.thumbnails[n.data.game_id].info_thumbnails.images.background_default_games[0])},setUpResizeObserver(){if(window.ResizeObserver)cW=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainerlivehigh.clientWidth}),cW.observe(this.$refs.gamesContainerlivehigh);else throw new Error("Resize observer not supported!")}},async mounted(){setTimeout(()=>{this.setUpResizeObserver()},1e3)}},Wf=e=>(t.pushScopeId("data-v-2e3ebe2c"),e=e(),t.popScopeId(),e),L4t={class:"highlights-prominent-game",ref:"gamesContainerlivehigh"},F4t={class:"video-partido-container__highlight"},D4t={class:"video-partido-container__content"},z4t=Wf(()=>t.createElementVNode("div",{class:"video-partido-container__ribbon"},"• LIVE",-1)),V4t=Wf(()=>t.createElementVNode("h2",{class:"video-partido-container__title"},"HIGHLIGHTS AL",-1)),R4t=Wf(()=>t.createElementVNode("h2",{class:"video-partido-container__title"},"MOMENTO",-1)),$4t=Wf(()=>t.createElementVNode("p",{class:"video-partido-container__description"}," Las jugadas más destacadas hasta el momento ",-1)),j4t=Wf(()=>t.createElementVNode("h2",{class:"video-partido-container__title"},"HIGHLIGHTS DEL",-1)),U4t=Wf(()=>t.createElementVNode("h2",{class:"video-partido-container__title"},"PARTIDO",-1)),G4t=Wf(()=>t.createElementVNode("p",{class:"video-partido-container__description"}," Las jugadas más destacadas del partido ",-1)),H4t=Wf(()=>t.createElementVNode("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M2.30205 11.4277C2.21053 11.3756 2.13403 11.2978 2.0808 11.2027C2.02757 11.1075 1.99964 10.9986 2 10.8878V1.11068C2.00013 1.0002 2.02825 0.891808 2.08137 0.797044C2.13449 0.70228 2.21063 0.624681 2.3017 0.572496C2.39276 0.520311 2.49535 0.495491 2.59855 0.500673C2.70175 0.505856 2.80171 0.540848 2.8878 0.601929L9.74533 5.49105C9.82365 5.54675 9.88789 5.62229 9.93232 5.71095C9.97675 5.79961 10 5.89864 10 5.99923C10 6.09982 9.97675 6.19885 9.93232 6.28751C9.88789 6.37617 9.82365 6.45171 9.74533 6.50741L2.8878 11.3977C2.80184 11.4589 2.70196 11.494 2.5988 11.4993C2.49565 11.5046 2.39309 11.4798 2.30205 11.4277ZM2.57173 10.8889L9.42926 5.99981L2.57173 10.8889Z",fill:"#CBEE6B"})],-1)),W4t={class:"video-partido-container__image"};function q4t(e,n,r,I,F,h){const m=t.resolveComponent("GSCThumbnailHighlightGameHistoricLive");return t.openBlock(),t.createElementBlock("div",L4t,[t.withDirectives(t.createElementVNode("div",F4t,[t.createElementVNode("div",D4t,[r.game.game_status!=0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[z4t,V4t,R4t,$4t],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[j4t,U4t,G4t],64)),t.createElementVNode("button",{class:"video-partido-container__button",onClick:n[0]||(n[0]=a=>h.onclickPlayVideos({data:F.item,type:1}))},[H4t,t.createTextVNode(" Reproducir ahora ")])]),t.createElementVNode("div",W4t,[t.createVNode(m,{"is-live":!0,game:r.game,"color-background-home":F.item.backgroundhome,"color-background-away":F.item.backgroundaway,"logo-home":F.item.logohome,"logo-away":F.item.logoaway,background:F.item.background,onOnclickPlayVideos:n[1]||(n[1]=a=>h.onclickPlayVideos({data:F.item,type:1})),matchday:F.item.match,"season-name":F.item.seasonname,score:F.item.score},null,8,["game","color-background-home","color-background-away","logo-home","logo-away","background","matchday","season-name","score"])])],512),[[t.vShow,r.canPlayVideos&&F.showHighlight]])],512)}const Y4t=Hr(O4t,[["render",q4t],["__scopeId","data-v-2e3ebe2c"]]),ZS="/play-icn.svg",S1a="",X4t={name:"TooltipEmpty",props:{data:{type:Object,required:!0}},computed:{showTooltip(){return{visible:this.data.visible}}},methods:{tooltipClick:function(){},closeClick:function(){this.$emit("close")}}};function J4t(e,n,r,I,F,h){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["back-tooltip",h.showTooltip])},[t.createElementVNode("div",{class:t.normalizeClass(["box-tooltip",h.showTooltip]),onClick:n[1]||(n[1]=(...m)=>h.tooltipClick&&h.tooltipClick(...m))},[t.createElementVNode("span",{role:"button",class:"box-tooltip-close",onClick:n[0]||(n[0]=(...m)=>h.closeClick&&h.closeClick(...m))},"×"),t.renderSlot(e.$slots,"default",{},void 0,!0)],2)],2)}const Z4t=Hr(X4t,[["render",J4t],["__scopeId","data-v-b5f07af8"]]),T1a="",K4t=["id"],Q4t={class:"game-event__minute"},ewt={class:"game-event__icon"},twt=["src"],awt="/images/events/",nwt=Hr({__name:"GameEvent",props:{gameEvent:{type:Object,default:()=>{}}},emits:["click-event"],setup(e,{emit:n}){const r=e,I=t.computed(()=>({"--icon-bottom":r.gameEvent.isHomeTeam?"30px":"-5px","--border-color":r.gameEvent.isSelected?"#336dff":"#747c83","--background-color":r.gameEvent.isSelected?"#336dff":"#0d1d29"})),F=t.computed(()=>{let m="";return r.gameEvent.category_id===18?m="icn-tiros-de-esquina.svg":r.gameEvent.category_id===20?m="icn-tiro-a-porteria.svg":r.gameEvent.category_id===10?m="icn-cambio.svg":r.gameEvent.category_id===21?m="icn-falta.svg":r.gameEvent.category_id===27?m="atajada.svg":r.gameEvent.category_id===17?m="fuera-de-lugar.svg":r.gameEvent.category_id===4||r.gameEvent.category_id===13||r.gameEvent.category_id===14||r.gameEvent.category_id===16||r.gameEvent.category_id===6&&r.gameEvent.event_type_id===1||r.gameEvent.category_id===5&&r.gameEvent.event_type_id===1||r.gameEvent.category_id===1&&r.gameEvent.event_type_id===1||r.gameEvent.category_id===2&&r.gameEvent.event_type_id===1||r.gameEvent.category_id===3&&r.gameEvent.event_type_id===1||r.gameEvent.category_id===7&&r.gameEvent.event_type_id===1||r.gameEvent.category_id===12&&r.gameEvent.event_type_id===1?m="gol.svg":r.gameEvent.category_id==30||r.gameEvent.category_id==31||r.gameEvent.category_id==32||r.gameEvent.category_id==33||r.gameEvent.category_id==34||r.gameEvent.category_id==35||r.gameEvent.category_id==36||r.gameEvent.category_id==37||r.gameEvent.category_id==38||r.gameEvent.category_id==39||r.gameEvent.category_id==40?m="var.png":r.gameEvent.category_id===28?m="tiempo-agregado.svg":r.gameEvent.category_id===26?m="jugada-peligrosa.svg":r.gameEvent.category_id===22?m="penal-marcado.svg":r.gameEvent.category_id===15||r.gameEvent.category_id===23?m="penal-fallado.svg":r.gameEvent.category_id===8?m="icn-tarjeta-amarilla.svg":r.gameEvent.category_id===9?m="icn-tarjeta-roja.svg":m="generic.svg",`${awt}${m}`});function h(){n("click-event",r.gameEvent)}return(m,a)=>(t.openBlock(),t.createElementBlock("div",{id:r.gameEvent.play_id,class:"game-event",onClick:h,style:t.normalizeStyle(I.value)},[t.createElementVNode("div",Q4t,[t.createElementVNode("div",null,t.toDisplayString(e.gameEvent.minute)+"'",1)]),t.createElementVNode("div",ewt,[t.createElementVNode("img",{src:F.value},null,8,twt)])],12,K4t))}},[["__scopeId","data-v-f972a06c"]]),A1a="",rwt=e=>(t.pushScopeId("data-v-df0b18c7"),e=e(),t.popScopeId(),e),iwt={class:"events-line"},owt={class:"events-line__events"},swt=rwt(()=>t.createElementVNode("div",{class:"events-line__events__line"},null,-1)),lwt=Hr({__name:"EventsLine",props:{gameEvents:{type:Array,default:()=>[]}},emits:["click-event"],setup(e,{emit:n}){function r(I){n("click-event",I)}return(I,F)=>(t.openBlock(),t.createElementBlock("div",iwt,[t.createVNode(t.unref(Lg),{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",owt,[swt,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.gameEvents,h=>(t.openBlock(),t.createBlock(nwt,{key:h.id,"game-event":h,onClickEvent:r},null,8,["game-event"]))),128))])]),_:1})]))}},[["__scopeId","data-v-df0b18c7"]]),I1a="",iv=e=>(t.pushScopeId("data-v-9fe1595b"),e=e(),t.popScopeId(),e),cwt={class:"tooltip-data"},dwt=["src"],uwt=iv(()=>t.createElementVNode("div",{class:"game-events__title-left-padding"},null,-1)),hwt=iv(()=>t.createElementVNode("div",{class:"game-events__title"},"Eventos",-1)),pwt={class:"game-events__team-logo"},fwt=["src"],mwt={class:"game-events__event-info"},gwt={key:0,class:"game-events__event-info__line"},ywt={key:1,class:"game-events__event-info__info"},vwt={class:"game-events__event-info__info__player-photo"},_wt={key:0,class:"game-events__event-info__info__player-photo__img"},bwt=["src"],xwt={class:"game-events__event-info__info__event-name"},wwt={class:"game-events__event-info__info__player-name"},kwt=[iv(()=>t.createElementVNode("img",{src:ZS,alt:""},null,-1))],Cwt=iv(()=>t.createElementVNode("div",{class:"game-events__events-padding"},null,-1)),Swt={class:"game-events__events"},Twt={class:"game-events__team-logo"},Ewt=["src"],Awt={class:"game-events__event-info"},Mwt={key:0,class:"game-events__event-info__line"},Iwt={key:1,class:"game-events__event-info__info"},Nwt={class:"game-events__event-info__info__player-photo"},Bwt={key:0,class:"game-events__event-info__info__player-photo__img"},Pwt=["src"],Owt={class:"game-events__event-info__info__event-name"},Lwt={class:"game-events__event-info__info__player-name"},Fwt=[iv(()=>t.createElementVNode("img",{src:ZS,alt:""},null,-1))],Dwt="https://11rcgkydx3.execute-api.us-east-2.amazonaws.com/prod/games/",zwt=Hr({__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:n}){const r=e;let I=null,F=0;const h=t.ref([]),m=t.ref(new Map),a=t.ref(""),y=t.ref(null),g=t.ref({visible:!1,link:""}),o=t.ref(new Set),_=t.ref(0),b=t.computed(()=>r.game.is_live||r.game.game_status===0);t.watch(()=>r.game,(w,x)=>{w&&w.gameId!==F?(o.value.clear(),F=w.gameId,i(),s(w.gameId,w.is_live&&w.game_status===4)):w&&w.is_live&&!x.is_live?s(w.gameId,!0):w&&!w.is_live&&x.is_live&&i()},{deep:!0,immediate:!0}),t.watch(()=>a.value,(w,x)=>{if(w!==x){const M=m.value.get(x),k=m.value.get(w);if(M&&(M.isSelected=!1),k){if(!k.playerShortName){const[C,T]=k.player_name.split(","),A=C.split(" ");let E="";for(const B of A)if(E+=` ${B}`,B.length>3)break;k.playerShortName=T&&C?`${T.trim().charAt(0)}.${E}`:""}k.isSelected=!0,y.value=k}}});function c(w){I=setInterval(()=>{s(w)},1e3*60*r.gameEventsIntervalMinutes)}async function s(w,x=!1){try{let M=await u(w),k=!1;w!==_.value&&(h.value=[],m.value=new Map,a.value="",o.value.clear(),_.value=w);let C=M.filter(T=>{const A=o.value.has(T.play_id);return A||o.value.add(T.play_id),!A});C&&(C=C.reduce((T,A)=>(k=A.game_finished,A.team_id&&(A.isHomeTeam=A.team_id===r.game.homeTeam.team_id,T.push(A),m.value.set(A.play_id,A)),T),[]),l(C).forEach(T=>{b.value?h.value.unshift(T):h.value.push(T)})),(b.value||!a.value&&h.value.length)&&(a.value=h.value[0].play_id),x&&!k?c(w):k&&i()}catch(M){console.error(M)}}function i(){I&&(clearInterval(I),I=null)}function l(w){return w.sort((x,M)=>d(x.matchlapse)+Number(x.minute)-(d(M.matchlapse)+Number(M.minute)))}function d(w){let x=0;switch(w){case 1:x=0;break;case 2:x=45;break;case 3:x=90;break;case 4:x=105;break;case 5:x=120;break}return x}async function u(w){try{const M=(await cl.get(`${Dwt}${w}/timeline`,{headers:{Authorization:r.token}})).data;return M?M.plays||[]:[]}catch(x){throw new Error(x)}}function p(w){a.value=w.play_id}function f(){r.canPlayVideos&&y.value.play_id&&n("play-video",{categoryId:y.value.main_category_id,playId:y.value.play_id})}function v(){g.value.visible=!1,g.value.link=""}return t.onBeforeUnmount(()=>{i()}),(w,x)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createVNode(Z4t,{data:g.value,onClose:v},{default:t.withCtx(()=>[t.createElementVNode("div",cwt,[t.createElementVNode("div",null,[t.createElementVNode("video",{class:"tooltip-video",controls:"",autoplay:"",src:g.value.link,format:"video/mp4"},null,8,dwt)])])]),_:1},8,["data"]),t.createElementVNode("div",{class:t.normalizeClass(e.widthScreen>920?"game-events":"game-events__mobile")},[uwt,hwt,t.createElementVNode("div",pwt,[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,fwt)):t.createCommentVNode("",!0)]),t.createElementVNode("div",mwt,[y.value&&y.value.isHomeTeam?(t.openBlock(),t.createElementBlock("div",gwt)):t.createCommentVNode("",!0),y.value&&y.value.isHomeTeam?(t.openBlock(),t.createElementBlock("div",ywt,[t.createElementVNode("div",vwt,[y.value.player_id?(t.openBlock(),t.createElementBlock("div",_wt,[t.createElementVNode("img",{src:`https://az755631.vo.msecnd.net/players-profile/${y.value.player_id}.png`,alt:""},null,8,bwt)])):t.createCommentVNode("",!0)]),t.createElementVNode("div",xwt,t.toDisplayString(y.value.event_type_id===1?y.value.event_type_name:y.value.category_name),1),t.createElementVNode("div",wwt," | "+t.toDisplayString(y.value.playerShortName),1),e.canPlayVideos&&y.value.play_id?(t.openBlock(),t.createElementBlock("div",{key:0,role:"button",class:"game-events__event-info__info__button-play",onClick:f},kwt)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)]),Cwt,t.createElementVNode("div",Swt,[t.createVNode(lwt,{"game-events":h.value,onClickEvent:p},null,8,["game-events"])]),t.createElementVNode("div",Twt,[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,Ewt)):t.createCommentVNode("",!0)]),t.createElementVNode("div",Awt,[y.value&&!y.value.isHomeTeam?(t.openBlock(),t.createElementBlock("div",Mwt)):t.createCommentVNode("",!0),y.value&&!y.value.isHomeTeam?(t.openBlock(),t.createElementBlock("div",Iwt,[t.createElementVNode("div",Nwt,[y.value.player_id?(t.openBlock(),t.createElementBlock("div",Bwt,[t.createElementVNode("img",{src:`https://az755631.vo.msecnd.net/players-profile/${y.value.player_id}.png`,alt:""},null,8,Pwt)])):t.createCommentVNode("",!0)]),t.createElementVNode("div",Owt,t.toDisplayString(y.value.event_type_id===1?y.value.event_type_name:y.value.category_name),1),t.createElementVNode("div",Lwt," | "+t.toDisplayString(y.value.playerShortName),1),e.canPlayVideos&&y.value.play_id?(t.openBlock(),t.createElementBlock("div",{key:0,role:"button",class:"game-events__event-info__info__button-play",onClick:f},Fwt)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)])],2)],64))}},[["__scopeId","data-v-9fe1595b"]]),O1a="",Vwt={class:"toggle-buttons__background"},Rwt=["onClick"],$wt={key:0,class:"toggle-buttons__button__img"},jwt=["src"],J4=Hr({__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:n}){const r=e;t.useCssVars(m=>({29153391:e.height,"1aee961c":e.width,"738679b2":e.mainBackgroundColor,f3cab270:e.borderRadius,"0ec0fe57":e.mainBorderWidth,"0da9fff4":e.mainBorderColor,"68dc0c06":e.fontFamily,f9ef5e4c:e.fontSize,"5713c56a":e.activeBorderWidth,"55fcc707":e.activeBorderColor,"38297f45":e.activeBackgroundColor,"424728c4":e.activeFontColor}));const I=t.ref(r.selectedButtonIndex),F=t.computed(()=>({"--grid-template-columns":`repeat(${r.buttons.length}, 1fr)`}));t.watch(()=>r.selectedButtonIndex,m=>{I.value=m}),t.watch(I,(m,a)=>{m!==a&&n("change",{index:m,button:r.buttons[m]})});function h(m){I.value=m}return(m,a)=>(t.openBlock(),t.createElementBlock("div",Vwt,[t.createElementVNode("div",{class:"toggle-buttons",style:t.normalizeStyle(F.value)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.buttons,(y,g)=>(t.openBlock(),t.createElementBlock("div",{key:`b${g}`,class:t.normalizeClass(["toggle-buttons__button",{active:I.value===g,right:y.img&&g>0}]),onClick:o=>h(g)},[y.img?(t.openBlock(),t.createElementBlock("div",$wt,[t.createElementVNode("img",{src:y.img,alt:""},null,8,jwt)])):t.createCommentVNode("",!0),t.createElementVNode("div",null,t.toDisplayString(y.text||y),1)],10,Rwt))),128))],4)]))}},[["__scopeId","data-v-ad07815f"]]),F1a="",Uwt="/images/cancha-horizontal-raw.jpg",D1a="",KS=e=>(t.pushScopeId("data-v-cb12065f"),e=e(),t.popScopeId(),e),Gwt={class:"tooltip__content"},Hwt={key:0,class:"tooltip__content__category"},Wwt={class:"tooltip__content__player"},qwt={class:"tooltip__content__player__name"},Ywt={class:"tooltip__content__player__photo"},Xwt=["src"],Jwt={class:"tooltip__content__minute"},Zwt={key:1,class:"tooltip__content__game"},Kwt=KS(()=>t.createElementVNode("div",{class:"tooltip__content__game__name"},"Partido:",-1)),Qwt={class:"tooltip__content__game__round-abbreviation"},e5t={class:"tooltip__content__game__logo"},t5t=["src"],a5t=KS(()=>t.createElementVNode("div",{class:"tooltip__content__game__vs"},"VS",-1)),n5t={class:"tooltip__content__game__logo"},r5t=["src"],i5t={key:2,class:"tooltip__content__team"},o5t=KS(()=>t.createElementVNode("div",{class:"tooltip__content__team__name"},"Equipo:",-1)),s5t={class:"tooltip__content__team__logo"},l5t=["src"],c5t=Hr({__name:"TooltipChalkboard",props:{event:{type:Object,default:()=>({})},position:{type:Object,default:()=>({x:"0",y:"0"})}},emits:["close"],setup(e,{emit:n}){const r=e,I=t.computed(()=>({"--top":r.position.y,"--left":r.position.x})),F=t.computed(()=>`${r.event.player.player_name} ${r.event.player.player_lastname}`),h=t.computed(()=>{const[a]=r.event.momentOfPlay.split(":");return`${Number(a)}'`});function m(){n("close")}return(a,y)=>(t.openBlock(),t.createElementBlock("div",{class:"tooltip",onClick:m,style:t.normalizeStyle(I.value)},[t.createElementVNode("div",Gwt,[e.event.categoryName?(t.openBlock(),t.createElementBlock("div",Hwt,t.toDisplayString(e.event.categoryName),1)):t.createCommentVNode("",!0),t.createElementVNode("div",Wwt,[t.createElementVNode("div",qwt,t.toDisplayString(F.value),1),t.createElementVNode("div",Ywt,[t.createElementVNode("img",{src:e.event.player.photo,alt:""},null,8,Xwt)])]),t.createElementVNode("div",Jwt,"Minuto: "+t.toDisplayString(h.value),1),e.event.game?(t.openBlock(),t.createElementBlock("div",Zwt,[Kwt,t.createElementVNode("div",Qwt,t.toDisplayString(e.event.game.roundAbbreviation),1),t.createElementVNode("div",e5t,[t.createElementVNode("img",{src:e.event.game.homeTeam.logo,alt:""},null,8,t5t)]),a5t,t.createElementVNode("div",n5t,[t.createElementVNode("img",{src:e.event.game.awayTeam.logo,alt:""},null,8,r5t)])])):(t.openBlock(),t.createElementBlock("div",i5t,[o5t,t.createElementVNode("div",s5t,[t.createElementVNode("img",{src:e.event.team.logo,alt:""},null,8,l5t)])]))])],4))}},[["__scopeId","data-v-cb12065f"]]),d5t=["id"],u5t=["fill"],h5t=["id"],p5t=["fill"],f5t=["stroke-dasharray","x1","y1","x2","y2","marker-end"],m5t=["x","y","stroke-width","fill","stroke"],g5t=["x","y"],y5t={__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 n=e,r=t.computed(()=>{const _=[];if(n.eventConnection.hasConnectionPath){const b=n.eventConnection.x1===n.eventConnection.x2&&n.eventConnection.y1===n.eventConnection.y2?1:2;let c=a(n.eventConnection.previousEvent?n.eventConnection.previousEvent.y3:n.eventConnection.y1);const s=y(n.eventConnection.previousEvent?n.eventConnection.previousEvent.x3:n.eventConnection.x1);let i=0,l=0;b===2&&(i=a(n.eventConnection.y2),l=y(n.eventConnection.x2));const d=a(n.eventConnection.y3),u=y(n.eventConnection.x3);b===1?_.push({x1:s,y1:c,x2:u,y2:d}):(_.push({x1:s,y1:c,x2:l,y2:i}),_.push({x1:l,y1:i,x2:u,y2:d}))}return _}),I=t.computed(()=>n.mainEventIdSelected!==0?n.eventConnection.relatedPlayId===n.mainEventIdSelected?1:.1:1),F=t.computed(()=>n.mainEventIdSelected!==0?n.eventConnection.relatedPlayId===n.mainEventIdSelected:!0),h=t.computed(()=>a(n.eventConnection.previousEvent?n.eventConnection.previousEvent.y3:n.eventConnection.y1)),m=t.computed(()=>y(n.eventConnection.previousEvent?n.eventConnection.previousEvent.x3:n.eventConnection.x1));function a(_){return(1-_)*100}function y(_){return _*100}function g(_){Iu.emit("mouse-over-event",{mouseEvent:_,eventConnection:n.eventConnection,position:{x:m.value,y:h.value}})}function o(){Iu.emit("mouse-leave-event",{mainEventId:n.eventConnection.relatedPlayId,eventId:n.eventConnection.playId})}return(_,b)=>(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:I.value})},[t.createElementVNode("path",{d:"M0,0 L0,6 L9,3 z",fill:e.color},null,8,u5t)],12,d5t),[[t.vShow,F.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:I.value})},[t.createElementVNode("circle",{cx:"2",cy:"2",r:"2",fill:e.color},null,8,p5t)],12,h5t),[[t.vShow,F.value]])]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r.value,(c,s)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[c.x1&&c.y1?t.withDirectives((t.openBlock(),t.createElementBlock("line",{key:`${e.eventConnection.playId}-${s}`,style:t.normalizeStyle({stroke:e.color,"stroke-width":2,opacity:I.value}),"stroke-dasharray":s===0&&r.value.length===2?"none":"5,5",x1:`${c.x1}%`,y1:`${c.y1}%`,x2:`${c.x2}%`,y2:`${c.y2}%`,"marker-start":"`url(`#b-${eventConnection.playId}`)`","marker-end":`url(${e.isLastEvent&&s===r.value.length-1?`#a-${e.eventConnection.playId}`:""})`},null,12,f5t)),[[t.vShow,F.value]]):t.createCommentVNode("",!0)],64))),256)),t.withDirectives(t.createElementVNode("g",{onMouseover:g,onMouseleave:o,style:t.normalizeStyle({cursor:"pointer",opacity:I.value})},[t.createElementVNode("rect",{x:`${m.value}%`,y:`${h.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:I.value}),rx:"14",ry:"14"},null,12,m5t),t.createElementVNode("text",{x:`${m.value}%`,y:`${h.value}%`,"text-anchor":"middle","dominant-baseline":"middle",dy:"1","font-size":"15",fill:"#fff","font-family":"'Poppins-SemiBold', sans-serif",style:t.normalizeStyle({opacity:I.value})},t.toDisplayString(e.eventConnection.player.jersey),13,g5t)],36),[[t.vShow,F.value]])],64))}},v5t={__name:"EventConnections",props:{eventConnections:{type:Object,required:!0},mainEventIdSelected:{type:Number,default:0}},emits:["click-event","mouse-over-event"],setup(e,{emit:n}){const r=e,I=t.computed(()=>r.eventConnections.getEventsConnectionsByEventType()),F=t.computed(()=>r.eventConnections.getTeamColor());return(h,m)=>(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(I.value,(a,y)=>(t.openBlock(),t.createBlock(y5t,{key:a.id,color:F.value,"is-last-event":y===I.value.length-1,"event-connection":a,"main-event-id-selected":e.mainEventIdSelected},null,8,["color","is-last-event","event-connection","main-event-id-selected"]))),128))}},V1a="",_5t=e=>(t.pushScopeId("data-v-bc874f69"),e=e(),t.popScopeId(),e),b5t={class:"soccer-chalkboard"},x5t={id:"soccerChalkboardField",class:"soccer-chalkboard__field"},w5t=_5t(()=>t.createElementVNode("img",{src:Uwt,alt:""},null,-1)),k5t={viewBox:"0 0 547 340",fill:"none",xmlns:"http://www.w3.org/2000/svg"},C5t=Hr({__name:"SoccerChalkboard",props:{eventsConnections:{type:Array,default:()=>[]},listType:{type:String,default:"events"},playersSelected:{type:Set,default:()=>new Set},teamsSelected:{type:Set,default:()=>new Set}},setup(e){const r=zse()?0:1e3;Iu.on("mouse-over-time-event",b=>{y(b),setTimeout(()=>{y(b)},r)}),Iu.on("mouse-leave-time-event",b=>{setTimeout(()=>{h.value==b&&!I.value&&y(0)},r)}),Iu.on("mouse-over-event",b=>{o(b)}),Iu.on("mouse-leave-event",b=>{setTimeout(()=>{b.eventId===m.value&&_()},r)});const I=t.ref(!1),F=t.ref({}),h=t.ref(0),m=t.ref(0),a=t.ref({x:0,y:0});function y(b){h.value=b}function g(){I.value=!1}function o(b){const s=document.getElementById("soccerChalkboardField");if(s){const i=s.getBoundingClientRect(),l=b.position.x/100*i.width+14,d=b.position.y/100*i.height+14,u=l+170>i.width?i.width-170:l,p=d;h.value=b.eventConnection.relatedPlayId,m.value=b.eventConnection.playId,F.value=b.eventConnection,a.value={x:`${u}px`,y:`${p}px`},I.value=!0}}function _(){I.value=!1,h.value=0}return(b,c)=>(t.openBlock(),t.createElementBlock("div",b5t,[t.createElementVNode("div",x5t,[w5t,(t.openBlock(),t.createElementBlock("svg",k5t,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.eventsConnections,(s,i)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[e.listType==="events"&&s.hasTeam(e.teamsSelected)||e.listType==="players"&&s.hasPlayer(e.playersSelected)?(t.openBlock(),t.createBlock(v5t,{key:i,"event-connections":s,"main-event-id-selected":h.value},null,8,["event-connections","main-event-id-selected"])):t.createCommentVNode("",!0)],64))),256))]))]),I.value?(t.openBlock(),t.createBlock(c5t,{key:0,position:a.value,event:F.value,onClose:g},null,8,["position","event"])):t.createCommentVNode("",!0)]))}},[["__scopeId","data-v-bc874f69"]]),$1a="",dW=e=>(t.pushScopeId("data-v-d484e9ef"),e=e(),t.popScopeId(),e),S5t={class:"events-timeline"},T5t=dW(()=>t.createElementVNode("div",{class:"events-timeline__back-line"},null,-1)),E5t=["onMouseover","onMouseleave"],A5t=["id"],M5t=[dW(()=>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))],I5t=["fill"],N5t=["mask"],B5t=["stroke"],P5t=Hr({__name:"EventsTimeLine",props:{eventsConnections:{type:Array,default:()=>[]},listType:{type:String,default:"events"},playersSelected:{type:Set,default:()=>new Set},teamsSelected:{type:Set,default:()=>new Set}},setup(e){const n=e,r=["0'","45'","90'"],I=t.computed(()=>n.eventsConnections.reduce((m,a)=>{const y={minute:"0'",left:"0%",color:a.getTeamColor(),fontColor:a.getTeamFontColor(),playId:a.mainPlay.playId,playerId:a.mainPlay.playerId,teamId:a.mainPlay.teamId,relatedPlayId:a.relatedPlayId},[g]=a.mainPlay.momentOfPlay.split(":"),o=parseInt(g);return o>=90?(y.minute=`${o}'`,y.left="100%"):(y.minute=`${o}'`,y.left=`${o/90*100}%`),m.push(y),m},[]));function F(m){Iu.emit("mouse-over-time-event",m.playId)}function h(m){Iu.emit("mouse-leave-time-event",m.playId)}return(m,a)=>(t.openBlock(),t.createElementBlock("div",S5t,[(t.openBlock(),t.createElementBlock(t.Fragment,null,t.renderList(r,(y,g)=>t.createElementVNode("div",{class:"events-timeline__game-time",key:g},t.toDisplayString(y),1)),64)),T5t,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(I.value,(y,g)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[e.listType==="events"&&e.teamsSelected.has(y.teamId)||e.listType==="players"&&e.playersSelected.has(y.playerId)?(t.openBlock(),t.createElementBlock("svg",{key:g,width:"20",height:"22",viewBox:"0 0 20 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:t.normalizeStyle({left:y.left,cursor:"pointer"}),onMouseover:o=>F(y),onMouseleave:o=>h(y)},[t.createElementVNode("mask",{id:y.playId.toString(),fill:"white"},M5t,8,A5t),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,I5t),t.createElementVNode("path",{d:"M7.96294 17.4517L8.82896 16.9517L8.54029 16.4517H7.96294V17.4517ZM10.2723 21.4517L9.40631 21.9517L10.2723 23.4517L11.1384 21.9517L10.2723 21.4517ZM12.5817 17.4517V16.4517H12.0044L11.7157 16.9517L12.5817 17.4517ZM1.77234 3.45166C1.77234 2.34709 2.66777 1.45166 3.77234 1.45166V-0.54834C1.5632 -0.54834 -0.227661 1.24252 -0.227661 3.45166H1.77234ZM1.77234 14.4517V3.45166H-0.227661V14.4517H1.77234ZM3.77234 16.4517C2.66777 16.4517 1.77234 15.5562 1.77234 14.4517H-0.227661C-0.227661 16.6608 1.5632 18.4517 3.77234 18.4517V16.4517ZM7.96294 16.4517H3.77234V18.4517H7.96294V16.4517ZM7.09691 17.9517L9.40631 21.9517L11.1384 20.9517L8.82896 16.9517L7.09691 17.9517ZM11.1384 21.9517L13.4478 17.9517L11.7157 16.9517L9.40631 20.9517L11.1384 21.9517ZM16.7723 16.4517H12.5817V18.4517H16.7723V16.4517ZM18.7723 14.4517C18.7723 15.5562 17.8769 16.4517 16.7723 16.4517V18.4517C18.9815 18.4517 20.7723 16.6608 20.7723 14.4517H18.7723ZM18.7723 3.45166V14.4517H20.7723V3.45166H18.7723ZM16.7723 1.45166C17.8769 1.45166 18.7723 2.34709 18.7723 3.45166H20.7723C20.7723 1.24252 18.9815 -0.54834 16.7723 -0.54834V1.45166ZM3.77234 1.45166H16.7723V-0.54834H3.77234V1.45166Z",fill:"#172531",mask:`url(#${y.playId})`},null,8,N5t),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,B5t)])],44,E5t)):t.createCommentVNode("",!0)],64))),256))]))}},[["__scopeId","data-v-d484e9ef"]]),Yl={All:1,YEAR:2,AGE_RANGE:3,NATIONALITY:4,POSITION:5,ELIGIBILITY:6},O5t=(e,n)=>{const r=e.__vccOpts||e;for(const[I,F]of n)r[I]=F;return r},L5t={key:1},F5t={width:"10",height:"8",viewBox:"0 0 10 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},D5t=["fill"],z5t={key:0,class:"checkbox__teams"},V5t={class:"checkbox__teams__logo"},R5t=["src"],$5t={class:"checkbox__teams__logo"},j5t=["src"],U5t={__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:n}){const r=e;t.useCssVars(g=>({"6582e90e":e.width,"310b3edf":e.height}));const I=t.ref(!1),F=t.computed(()=>{const g={color:r.boxValueColor,"font-family":r.fontFamily,height:r.boxWidthAndHeight,width:r.boxWidthAndHeight,minWidth:r.boxWidthAndHeight,"border-radius":r.boxBorderRadius,"margin-top":r.boxMarginTop};return I.value?(g["background-color"]=r.boxBackgroundColor,g.border=`solid ${r.boxBorderWidth} ${r.boxBackgroundColor}`):g.border=`solid ${r.boxBorderWidth} ${r.boxBorderColor}`,g}),h=t.computed(()=>({"font-family":r.boxValueFontFamily,"font-size":r.boxValueFontSize,color:r.boxValueColor,"line-height":1})),m=t.computed(()=>{const g={color:r.labelColor,"font-family":r.fontFamily,"font-size":r.labelFontSize,"white-space":r.labelWhiteSpace,"text-align":r.boxPosition==="top"||r.boxPosition==="bottom"?"center":r.boxPosition};return(r.boxPosition==="left"||r.boxPosition==="right")&&(g[`margin-${r.boxPosition}`]=r.isBoxOnly?"0":r.teamsIds?"8px":"10px"),g});t.watch(()=>r.modelValue,g=>{g!==I.value&&(I.value=g)},{immediate:!0});function a(){r.avoidInteraction||!I.value&&r.avoidToCheck||(I.value=!I.value,n("update:modelValue",I.value))}function y(g){return`${{}.TEAM_LOGOS_URL||"https://az755631.vo.msecnd.net/teams-80/"}${g}.png`}return(g,o)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["checkbox",`box-${e.boxPosition}`]),onClick:a},[t.createElementVNode("div",{class:"checkbox__box",style:t.normalizeStyle(F.value)},[I.value?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[r.boxValue?(t.openBlock(),t.createElementBlock("div",{key:0,class:"checkbox__box__value",style:t.normalizeStyle(h.value)},t.toDisplayString(e.boxValue),5)):(t.openBlock(),t.createElementBlock("div",L5t,[(t.openBlock(),t.createElementBlock("svg",F5t,[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,D5t)]))]))],64)):t.createCommentVNode("",!0)],4),e.teamsIds&&e.teamsIds.length?(t.openBlock(),t.createElementBlock("div",z5t,[t.createElementVNode("div",V5t,[t.createElementVNode("img",{src:y(e.teamsIds[0]),alt:""},null,8,R5t)]),t.createElementVNode("div",$5t,[t.createElementVNode("img",{src:y(e.teamsIds[1]),alt:""},null,8,j5t)])])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"checkbox__label",style:t.normalizeStyle(m.value)},t.toDisplayString(e.label),5)],2))}},yo=O5t(U5t,[["__scopeId","data-v-bcf3bcc6"]]),Bo=(e,n)=>{const r=e.__vccOpts||e;for(const[I,F]of n)r[I]=F;return r},G5t={class:"container"},H5t={key:0,width:"11",height:"2",viewBox:"0 0 11 2",fill:"none",xmlns:"http://www.w3.org/2000/svg"},W5t=["fill"],q5t={key:1,width:"11",height:"11",viewBox:"0 0 11 11",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Y5t=["fill"],X5t={__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(n=>({"2c438f73":e.width,"425f651a":e.height})),(n,r)=>(t.openBlock(),t.createElementBlock("div",G5t,[e.isExpanded?(t.openBlock(),t.createElementBlock("svg",H5t,[t.createElementVNode("rect",{width:"11",height:"1.7",fill:e.collapseIconColor},null,8,W5t)])):(t.openBlock(),t.createElementBlock("svg",q5t,[t.createElementVNode("path",{d:"M11 6.28571H6.28571V11H4.71429V6.28571H0V4.71429H4.71429V0H6.28571V4.71429H11V6.28571Z",fill:e.expandIconColor},null,8,Y5t)]))]))}},Nm=Bo(X5t,[["__scopeId","data-v-e633864b"]]),ov=e=>(t.pushScopeId("data-v-565b4c8d"),e=e(),t.popScopeId(),e),J5t={class:"productivity"},Z5t={class:"productivity__body__offensive"},K5t={class:"productivity__body__title"},Q5t={class:"productivity__body__title__info"},e6t={class:"number-of-categories"},t6t={class:"productivity__body__categories"},a6t={class:"productivity__body__defensive-possession"},n6t={class:"productivity__body__title"},r6t={class:"productivity__body__title__info"},i6t={class:"number-of-categories"},o6t={class:"productivity__body__categories"},s6t={class:"productivity__body__title"},l6t={class:"productivity__body__title__info"},c6t={class:"number-of-categories"},d6t={class:"productivity__body__categories"},u6t={class:"productivity__footer"},h6t={class:"productivity__footer__offenses"},p6t=ov(()=>t.createElementVNode("div",{class:"productivity__footer__offenses__title"}," ¿Debemos quitarle puntos a jugadores que hayan cometido las siguientes infracciones? ",-1)),f6t={class:"productivity__footer__offenses__table"},m6t=ov(()=>t.createElementVNode("div",{class:"productivity__footer__offenses__table__row"},[t.createElementVNode("div"),t.createElementVNode("div",null,"Si"),t.createElementVNode("div",null,"No")],-1)),g6t={class:"productivity__footer__offenses__table__row has-bottom-border has-padding"},y6t=ov(()=>t.createElementVNode("div",{class:"productivity__footer__offenses__table__row__text"},"Faltas cometidas",-1)),v6t={class:"productivity__footer__offenses__table__row has-bottom-border has-padding"},_6t=ov(()=>t.createElementVNode("div",{class:"productivity__footer__offenses__table__row__text"},"Tarjetas amarillas",-1)),b6t={class:"productivity__footer__offenses__table__row has-padding"},x6t=ov(()=>t.createElementVNode("div",{class:"productivity__footer__offenses__table__row__text"},"Tarjetas rojas",-1)),w6t={__name:"TemplateProductivity",props:{componentWidth:{type:Number,default:0},productivityCategories:{type:Object,required:!0},numberOfCategoriesSelected:{type:Number,default:0},areMaxCategoriesReached:{type:Boolean,default:!1},isExpansionMode:{type:Boolean,default:!1},fontFamily:{type:String,default:"'Poppins-Regular'"}},emits:["update:offensesConditions"],setup(e,{emit:n}){const r=e,I=t.ref(!1),F=t.ref(!1),h=t.ref(!1),m=t.ref({areYellowCardsSelected:!1,areRedCardsSelected:!1,areFoulsCommittedSelected:!1}),a=t.computed(()=>({"--template-columns":r.isExpansionMode?"1fr":"1fr 1fr"})),y=t.computed(()=>r.productivityCategories.offensive.categories.reduce((c,s)=>(s.isSelected&&c++,c),0)),g=t.computed(()=>r.productivityCategories.defensive.categories.reduce((c,s)=>(s.isSelected&&c++,c),0)),o=t.computed(()=>r.productivityCategories.possession.categories.reduce((c,s)=>(s.isSelected&&c++,c),0));t.watch(()=>r.productivityCategories,c=>{m.value.areYellowCardsSelected=c.offensesConditions.areYellowCardsSelected,m.value.areRedCardsSelected=c.offensesConditions.areRedCardsSelected,m.value.areFoulsCommittedSelected=c.offensesConditions.areFoulsCommittedSelected},{deep:!0,immediate:!0}),t.watch(m,c=>{n("update:offensesConditions",c)},{deep:!0,immediate:!0});function _(c,s){s.isSelected=c,setTimeout(()=>{s.priority=r.numberOfCategoriesSelected},10)}function b(c){c==="offensive"?I.value=!I.value:c==="defensive"?F.value=!F.value:c==="possession"&&(h.value=!h.value)}return(c,s)=>(t.openBlock(),t.createElementBlock("div",J5t,[t.createElementVNode("div",{class:"productivity__body",style:t.normalizeStyle(a.value)},[t.createElementVNode("div",Z5t,[t.createElementVNode("div",K5t,[t.createElementVNode("div",Q5t,[t.createElementVNode("span",null,t.toDisplayString(e.productivityCategories.offensive.title),1),t.createElementVNode("span",e6t,"("+t.toDisplayString(y.value)+")",1)]),t.createElementVNode("div",{class:"productivity__body__title__expand-button",onClick:s[0]||(s[0]=i=>b("offensive"))},[t.withDirectives(t.createVNode(Nm,{"is-expanded":I.value},null,8,["is-expanded"]),[[t.vShow,e.isExpansionMode]])])]),t.withDirectives(t.createElementVNode("div",t6t,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.productivityCategories.offensive.categories,i=>(t.openBlock(),t.createElementBlock("div",{key:i.id,class:"productivity__checkbox"},[t.createVNode(t.unref(yo),{label:i.name,fontFamily:e.fontFamily,"model-value":i.isSelected,"avoid-to-check":e.areMaxCategoriesReached,"box-value":i.priority||0,"onUpdate:modelValue":l=>_(l,i)},null,8,["label","fontFamily","model-value","avoid-to-check","box-value","onUpdate:modelValue"])]))),128))],512),[[t.vShow,!e.isExpansionMode||I.value]])]),t.createElementVNode("div",a6t,[t.createElementVNode("div",n6t,[t.createElementVNode("div",r6t,[t.createElementVNode("span",null,t.toDisplayString(e.productivityCategories.defensive.title),1),t.createElementVNode("span",i6t,"("+t.toDisplayString(g.value)+")",1)]),t.createElementVNode("div",{class:"productivity__body__title__expand-button",onClick:s[1]||(s[1]=i=>b("defensive"))},[t.withDirectives(t.createVNode(Nm,{"is-expanded":F.value},null,8,["is-expanded"]),[[t.vShow,e.isExpansionMode]])])]),t.withDirectives(t.createElementVNode("div",o6t,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.productivityCategories.defensive.categories,i=>(t.openBlock(),t.createElementBlock("div",{key:i.id,class:"productivity__checkbox"},[t.createVNode(t.unref(yo),{label:i.name,fontFamily:e.fontFamily,"model-value":i.isSelected,"avoid-to-check":e.areMaxCategoriesReached,"box-value":i.priority||0,"onUpdate:modelValue":l=>_(l,i)},null,8,["label","fontFamily","model-value","avoid-to-check","box-value","onUpdate:modelValue"])]))),128))],512),[[t.vShow,!e.isExpansionMode||F.value]]),t.createElementVNode("div",s6t,[t.createElementVNode("div",l6t,[t.createElementVNode("span",null,t.toDisplayString(e.productivityCategories.possession.title),1),t.createElementVNode("span",c6t,"("+t.toDisplayString(o.value)+")",1)]),t.createElementVNode("div",{class:"productivity__body__title__expand-button",onClick:s[2]||(s[2]=i=>b("possession"))},[t.withDirectives(t.createVNode(Nm,{"is-expanded":h.value},null,8,["is-expanded"]),[[t.vShow,e.isExpansionMode]])])]),t.withDirectives(t.createElementVNode("div",d6t,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.productivityCategories.possession.categories,i=>(t.openBlock(),t.createElementBlock("div",{key:i.id,class:"productivity__checkbox"},[t.createVNode(t.unref(yo),{label:i.name,fontFamily:e.fontFamily,"model-value":i.isSelected,"avoid-to-check":e.areMaxCategoriesReached,"box-value":i.priority||0,"onUpdate:modelValue":l=>_(l,i)},null,8,["label","fontFamily","model-value","avoid-to-check","box-value","onUpdate:modelValue"])]))),128))],512),[[t.vShow,!e.isExpansionMode||h.value]])])],4),t.createElementVNode("div",u6t,[t.createElementVNode("div",h6t,[p6t,t.createElementVNode("div",f6t,[m6t,t.createElementVNode("div",g6t,[y6t,t.createElementVNode("div",null,[t.createVNode(t.unref(yo),{"model-value":m.value.areFoulsCommittedSelected,"avoid-interaction":m.value.areFoulsCommittedSelected,"is-box-only":"","onUpdate:modelValue":s[3]||(s[3]=i=>m.value.areFoulsCommittedSelected=i)},null,8,["model-value","avoid-interaction"])]),t.createElementVNode("div",null,[t.createVNode(t.unref(yo),{"model-value":!m.value.areFoulsCommittedSelected,"avoid-interaction":!m.value.areFoulsCommittedSelected,"is-box-only":"","onUpdate:modelValue":s[4]||(s[4]=i=>m.value.areFoulsCommittedSelected=!i)},null,8,["model-value","avoid-interaction"])])]),t.createElementVNode("div",v6t,[_6t,t.createElementVNode("div",null,[t.createVNode(t.unref(yo),{"model-value":m.value.areYellowCardsSelected,"avoid-interaction":m.value.areYellowCardsSelected,"is-box-only":"","onUpdate:modelValue":s[5]||(s[5]=i=>m.value.areYellowCardsSelected=i)},null,8,["model-value","avoid-interaction"])]),t.createElementVNode("div",null,[t.createVNode(t.unref(yo),{"model-value":!m.value.areYellowCardsSelected,"avoid-interaction":!m.value.areYellowCardsSelected,"is-box-only":"","onUpdate:modelValue":s[6]||(s[6]=i=>m.value.areYellowCardsSelected=!i)},null,8,["model-value","avoid-interaction"])])]),t.createElementVNode("div",b6t,[x6t,t.createElementVNode("div",null,[t.createVNode(t.unref(yo),{"model-value":m.value.areRedCardsSelected,"avoid-interaction":m.value.areRedCardsSelected,"is-box-only":"","onUpdate:modelValue":s[7]||(s[7]=i=>m.value.areRedCardsSelected=i)},null,8,["model-value","avoid-interaction"])]),t.createElementVNode("div",null,[t.createVNode(t.unref(yo),{"model-value":!m.value.areRedCardsSelected,"avoid-interaction":!m.value.areRedCardsSelected,"is-box-only":"","onUpdate:modelValue":s[8]||(s[8]=i=>m.value.areRedCardsSelected=!i)},null,8,["model-value","avoid-interaction"])])])])])])]))}},k6t=Bo(w6t,[["__scopeId","data-v-565b4c8d"]]),Z4=e=>(t.pushScopeId("data-v-636bc494"),e=e(),t.popScopeId(),e),C6t={class:"details__header"},S6t=Z4(()=>t.createElementVNode("div",{class:"details__header__title"},"Jugando como",-1)),T6t={class:"details__header__checkbox"},E6t={class:"details__body"},A6t={class:"details__body__playing-as"},M6t=["onClick"],I6t={class:"details__header"},N6t=Z4(()=>t.createElementVNode("div",{class:"details__header__title"},[t.createTextVNode(" En: "),t.createElementVNode("span",{class:"details__header__title-sm"},"(Elige el lapso de tiempo)")],-1)),B6t={class:"details__header__checkbox"},P6t={class:"details__body"},O6t=Z4(()=>t.createElementVNode("div",{class:"details__body__title"},"1er tiempo",-1)),L6t={class:"details__body__game-section"},F6t=["onClick"],D6t={class:"details__body"},z6t=Z4(()=>t.createElementVNode("div",{class:"details__body__title"},"2do tiempo",-1)),V6t={class:"details__body__game-section"},R6t=["onClick"],$6t={__name:"TemplateDetails",props:{isPlayingAsHidden:{type:Boolean,default:!1},playingAs:{type:Array,default:()=>[{name:"Local",isSelected:!0},{name:"Visitante",isSelected:!0}]},gameSections:{type:Array,default:()=>[{text:"0-15",value:1,isSelected:!0},{text:"16-30",value:2,isSelected:!0},{text:"31-45",value:3,isSelected:!0},{text:"46-60",value:4,isSelected:!0},{text:"61-75",value:5,isSelected:!0},{text:"76-90",value:6,isSelected:!0}]},fontFamily:{type:String,default:"'Poppins-Regular'"},buttonsBackgroundColor:{type:String,default:"rgba(255, 255, 255, 0)"},buttonsBackgroundColorActive:{type:String,default:"rgba(203, 238, 107, 0.05)"},buttonsTextColor:{type:String,default:"rgba(255, 255, 255, 0.8)"},buttonsTextColorActive:{type:String,default:"rgba(255, 255, 255, 1)"},buttonsBorderColor:{type:String,default:"#8ea2ab"},buttonsBorderColorActive:{type:String,default:"#cbee6b"},buttonsBorderWidth:{type:String,default:"0.8px"},buttonsBorderWidthActive:{type:String,default:"1px"},buttonsBorderRadius:{type:String,default:"4px"}},setup(e){const n=e;t.useCssVars(o=>({"5f0201bf":e.buttonsBackgroundColor,ab4b9ec0:e.buttonsTextColor,bb96d638:e.buttonsBorderWidth,bdc4d2fe:e.buttonsBorderColor,"6817e1a5":e.buttonsBackgroundColorActive,a320b874:e.buttonsTextColorActive,"51d275ec":e.buttonsBorderWidthActive,caa54632:e.buttonsBorderColorActive}));const r=t.computed(()=>n.playingAs.every(o=>o.isSelected)),I=t.computed(()=>n.gameSections.every(o=>o.isSelected)),F=t.computed(()=>n.gameSections.reduce((o,_)=>(_.value<=3?o.firstHalf.push(_):o.secondHalf.push(_),o),{firstHalf:[],secondHalf:[]})),h=t.computed(()=>({"--border-radius-first-button":`${n.buttonsBorderRadius} 0 0 ${n.buttonsBorderRadius}`,"--border-radius-last-button":`0 ${n.buttonsBorderRadius} ${n.buttonsBorderRadius} 0`}));function m(o){o?n.playingAs.forEach(_=>{_.isSelected=!0}):n.playingAs.forEach((_,b)=>{_.isSelected=b===0})}function a(o){n.playingAs.filter(_=>_.isSelected).length===1&&o.isSelected||(o.isSelected=!o.isSelected)}function y(o){n.gameSections.filter(_=>_.isSelected).length===1&&o.isSelected||(o.isSelected=!o.isSelected)}function g(o){o?n.gameSections.forEach(_=>{_.isSelected=!0}):n.gameSections.forEach((_,b)=>{_.isSelected=b===0})}return(o,_)=>(t.openBlock(),t.createElementBlock("div",{class:"details",style:t.normalizeStyle(h.value)},[t.withDirectives(t.createElementVNode("div",C6t,[S6t,t.createElementVNode("div",T6t,[t.createVNode(t.unref(yo),{label:"Todos",fontFamily:e.fontFamily,"model-value":r.value,"onUpdate:modelValue":m},null,8,["fontFamily","model-value"])])],512),[[t.vShow,!e.isPlayingAsHidden]]),t.withDirectives(t.createElementVNode("div",E6t,[t.createElementVNode("div",A6t,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.playingAs,(b,c)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${c}`,class:t.normalizeClass(["details__body__button",{active:b.isSelected}]),onClick:s=>a(b)},t.toDisplayString(b.name),11,M6t))),128))])],512),[[t.vShow,!e.isPlayingAsHidden]]),t.createElementVNode("div",I6t,[N6t,t.createElementVNode("div",B6t,[t.createVNode(t.unref(yo),{label:"Todos",fontFamily:e.fontFamily,"model-value":I.value,"onUpdate:modelValue":g},null,8,["fontFamily","model-value"])])]),t.createElementVNode("div",P6t,[O6t,t.createElementVNode("div",L6t,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(F.value.firstHalf,(b,c)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${c}`,class:t.normalizeClass(["details__body__button",{active:b.isSelected}]),onClick:s=>y(b)},t.toDisplayString(b.text),11,F6t))),128))])]),t.createElementVNode("div",D6t,[z6t,t.createElementVNode("div",V6t,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(F.value.secondHalf,(b,c)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${c}`,class:t.normalizeClass(["details__body__button",{active:b.isSelected}]),onClick:s=>y(b)},t.toDisplayString(b.text),11,R6t))),128))])])],4))}},j6t=Bo($6t,[["__scopeId","data-v-636bc494"]]),U6t={class:"scroll-container"},G6t={__name:"ScrollContainer",props:{width:{type:String,default:"100%"},height:{type:String,default:"100%"}},setup(e){return t.useCssVars(n=>({fc5d629e:e.height,"8a9ad208":e.width})),(n,r)=>(t.openBlock(),t.createElementBlock("div",U6t,[t.renderSlot(n.$slots,"default",{},void 0,!0)]))}},uW=Bo(G6t,[["__scopeId","data-v-9f29c69f"]]),H6t={class:"tournaments"},W6t={class:"tournaments__tournament"},q6t={__name:"TemplateTournaments",props:{tournaments:{type:Array,default:()=>[]},fontFamily:{type:String,default:"'Poppins-Regular'"}},emits:["change-filters-selected","update:filters"],setup(e,{emit:n}){const r=e,I=t.ref(!1),F=t.computed(()=>r.tournaments.filter(m=>m.isSelected).length);t.watch(()=>r.tournaments,m=>{const a=m.filter(y=>y.isSelected);I.value=a.length===m.length,n("change-filters-selected",a.length),n("update:filters",r.tournaments)},{immediate:!0,deep:!0});function h(m){r.tournaments.forEach((a,y)=>{a.isSelected=m||(y!==0?m:!0)})}return(m,a)=>(t.openBlock(),t.createElementBlock("div",H6t,[t.createVNode(uW,{height:"200px"},{default:t.withCtx(()=>[t.createElementVNode("div",W6t,[t.createVNode(t.unref(yo),{"model-value":I.value,label:"Todas las ligas",fontFamily:e.fontFamily,width:"100%","onUpdate:modelValue":h},null,8,["model-value","fontFamily"])]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.tournaments,y=>(t.openBlock(),t.createElementBlock("div",{key:y.id||y._id,class:"tournaments__tournament"},[t.createVNode(t.unref(yo),{modelValue:y.isSelected,"onUpdate:modelValue":g=>y.isSelected=g,label:y.name,fontFamily:e.fontFamily,width:"100%","avoid-interaction":F.value===1&&y.isSelected},null,8,["modelValue","onUpdate:modelValue","label","fontFamily","avoid-interaction"])]))),128))]),_:1})]))}},Y6t=Bo(q6t,[["__scopeId","data-v-ca9bbe94"]]),Tn={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"},X6t={key:0,class:"plays-golstats__placeholder"},J6t=["onClick"],Z6t={key:0,class:"plays-golstats__item__value"},K6t={class:"plays-golstats__item__text"},Q6t={class:"plays-golstats__item__svg"},e8t={width:"10",height:"8",viewBox:"0 0 10 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t8t=["fill"],a8t={__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:n}){const r=e,I=t.computed(()=>({"--grid-template-columns":r.type===Tn.PLAYS_TYPES?"1fr min-content":"min-content 1fr min-content","--svg-width":`${r.svgWidth}px`,"--svg-height":`${r.svgHeight}px`}));t.watch(()=>r.categories,h=>{const m=h.filter(a=>a.isSelected);n("update:filters",m)},{immediate:!0,deep:!0});function F(h){h.isSelected||(r.categories.forEach(m=>{m.isSelected=!1}),h.isSelected=!0,r.type===Tn.GOLSTATS&&n("change-filters-selected",h.value))}return(h,m)=>(t.openBlock(),t.createElementBlock("div",{class:"plays-golstats",style:t.normalizeStyle(I.value)},[t.createVNode(uW,{height:e.height},{default:t.withCtx(()=>[e.type===t.unref(Tn).PLAYS_TYPES?(t.openBlock(),t.createElementBlock("div",X6t," Elige un tipo de jugada para filtrar: ")):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.categories,(a,y)=>(t.openBlock(),t.createElementBlock("div",{key:`k${y}`,class:"plays-golstats__item",onClick:g=>F(a)},[e.type===t.unref(Tn).GOLSTATS?(t.openBlock(),t.createElementBlock("div",Z6t,t.toDisplayString(a.value),1)):t.createCommentVNode("",!0),t.createElementVNode("div",K6t,t.toDisplayString(a.name),1),t.createElementVNode("div",Q6t,[t.withDirectives((t.openBlock(),t.createElementBlock("svg",e8t,[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,t8t)],512)),[[t.vShow,a.isSelected]])])],8,J6t))),128))]),_:1},8,["height"])],4))}},hW=Bo(a8t,[["__scopeId","data-v-ef99052c"]]),n8t=(e,n)=>{const r=e.__vccOpts||e;for(const[I,F]of n)r[I]=F;return r},QS={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 n=e.which?e.which:e.keyCode();n>31&&(n<48||n>57)&&e.preventDefault()}}}},pW=()=>{t.useCssVars(e=>({"53e1855a":e.textRightColor,da8ee600:e.textRightFontSize,"9fb876ba":e.textRightFontFamily}))},fW=QS.setup;QS.setup=fW?(e,n)=>(pW(),fW(e,n)):pW;const r8t={class:"input-container"},i8t=["type","placeholder","value"],o8t={class:"right-text"};function s8t(e,n,r,I,F,h){return t.openBlock(),t.createElementBlock("div",r8t,[t.createElementVNode("input",{type:r.inputType,placeholder:r.placeholder,value:r.value,style:t.normalizeStyle(h.inputStyle),onKeydown:n[0]||(n[0]=(...m)=>h.onKeyDown&&h.onKeyDown(...m)),onInput:n[1]||(n[1]=(...m)=>h.updateInputValue&&h.updateInputValue(...m))},null,44,i8t),t.createElementVNode("div",o8t,t.toDisplayString(r.textRight),1)])}const mW=n8t(QS,[["render",s8t],["__scopeId","data-v-b73049e7"]]),l8t=(e,n)=>{const r=e.__vccOpts||e;for(const[I,F]of n)r[I]=F;return r},eT={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))}}},gW=()=>{t.useCssVars(e=>({"1c960139":e.height,b2f635d8:e.borderWidthBtn,"06e99898":e.borderType,"55555c76":e.borderColor,"23b6d320":e.borderRadius,"22c97374":e.width,"22bb09fa":e.backgroundColor,c148da7c:e.cursorType,cce756fc:e.fontSize,cff98d60:e.fontStyle,"5123b3a5":e.fontFamily,"47bf58db":e.marginLeftStat,cadc8414:e.fontSizeStat}))},yW=eT.setup;eT.setup=yW?(e,n)=>(gW(),yW(e,n)):gW;const c8t=e=>(t.pushScopeId("data-v-fb269a1e"),e=e(),t.popScopeId(),e),d8t=["src"],u8t={key:1,class:"text"},h8t=["src"],p8t={class:"stats"},f8t=c8t(()=>t.createElementVNode("img",{class:"iconstats",src:"https://az755631.vo.msecnd.net/todoelfut/playdes.png"},null,-1)),m8t={class:"numstats"},g8t={class:"leyend"};function y8t(e,n,r,I,F,h){return t.openBlock(),t.createElementBlock("div",null,[r.type==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["button",F.status&&r.typeOnOff&&"button-active"]),style:t.normalizeStyle([h.customStyle,F.status&&r.typeOnOff&&h.customActive]),onClick:n[0]||(n[0]=(...m)=>h.btnClick&&h.btnClick(...m))},[r.icon&&r.iconPosition.toLowerCase()==="left"?(t.openBlock(),t.createElementBlock("img",{key:0,class:"icon",style:t.normalizeStyle({width:r.iconSize}),src:r.icon},null,12,d8t)):t.createCommentVNode("",!0),r.textValue?(t.openBlock(),t.createElementBlock("div",u8t,t.toDisplayString(r.textValue),1)):t.createCommentVNode("",!0),r.icon&&r.iconPosition.toLowerCase()==="right"?(t.openBlock(),t.createElementBlock("img",{key:2,class:"icon",style:t.normalizeStyle({width:r.iconSize}),src:r.icon},null,12,h8t)):t.createCommentVNode("",!0)],6)):t.createCommentVNode("",!0),r.type==1?(t.openBlock(),t.createElementBlock("div",{key:1,class:"button-target",onClick:n[1]||(n[1]=(...m)=>h.btnClick&&h.btnClick(...m))},[t.createElementVNode("div",p8t,[f8t,t.createElementVNode("div",m8t,t.toDisplayString(r.textStat),1)]),t.createElementVNode("div",g8t,t.toDisplayString(r.textCategory),1)])):t.createCommentVNode("",!0)])}const v8t=l8t(eT,[["render",y8t],["__scopeId","data-v-fb269a1e"]]),_8t={class:"gsc-dropdown__main-container__item-selected"},b8t=["height","width"],x8t=["stroke"],w8t={class:"gsc-dropdown__items-container"},k8t=["onClick"],C8t={key:0,class:"gsc-dropdown__items-footer"},qf={__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(n=>n in e)},listBackgroundColor:{type:String,default:"white"},hoverBackgroundColor:{type:String,default:"#f1f1f1"},listItemPadding:{type:String,default:"10px 12px"},listHeight:{type:String,default:"fit-content"},listItemSelectedColor:{type:String,default:"white"},listItemSelectedBackgroundColor:{type:String,default:"#399cfd"},listItemColor:{type:String,default:"black"},listBorderRadius:{type:String,default:"0"},listBorderColor:{type:String,default:""},listBorderWidth:{type:Number,default:1},isListSameWidth:{type:Boolean,default:!1},isMultipleOption:{type:Boolean,default:!1},footerBorderColor:{type:String,default:"#626970"},footerBorderWidth:{type:Number,default:1},isFooterVisible:{type:Boolean,default:!1},isDisabled:{type:Boolean,default:!1},onlyFirstTime:{type:Boolean,default:!1}},emits:["input","click-ready","update:modelValue"],setup(e,{emit:n}){const r=e,I=t.ref({}),F=t.ref(null),h=t.ref(r.isMultipleOption?-1:0),m=t.ref(!1);t.watch(()=>r.items,(c,s)=>{if(!r.modelValue&&(!r.onlyFirstTime||!s||!s.length)&&c&&c.length){if(r.defaultItemByProp){const i=r.items.findIndex(l=>l[r.defaultItemByProp.propName]===r.defaultItemByProp.value);i!==-1?(h.value=i,I.value=c[i]):(h.value=0,I.value=c[0])}else I.value=c[r.defaultItemByIndex];n("input",I.value)}},{immediate:!0}),t.watch(()=>r.modelValue,c=>{if(c){const s=r.items.findIndex(i=>typeof c=="object"?JSON.stringify(i)===JSON.stringify(c):i===c);s!==-1&&(h.value=s,I.value=r.items[s],n("update:modelValue",I.value))}},{immediate:!0});const a=t.computed(()=>({height:r.height,width:r.width,backgroundColor:r.backgroundColor,borderRadius:`${r.borderRadius}px`,border:`${r.borderType} ${r.borderWidth}px ${r.borderColor}`,color:r.color,"--hover-background-color":r.hoverBackgroundColor,"--list-item-padding":r.listItemPadding,"--list-background-color":r.listBackgroundColor,"--list-height":r.listHeight,"--list-item-selected-color":r.listItemSelectedColor,"--list-item-selected-background-color":r.listItemSelectedBackgroundColor,"--list-item-color":r.listItemColor,"--list-border-radius":`${r.listBorderRadius}`,"--list-border-color":r.listBorderColor,"--list-width":r.isListSameWidth?r.width:"fit-content","--list-border-width":`${r.listBorderWidth}px`,"--footer-border":`${r.footerBorderWidth}px solid ${r.footerBorderColor}`,"--dropdown-opacity":r.isDisabled?"0.5":"1","--dropdown-cursor":r.isDisabled?"not-allowed":"pointer","--dropdown-font-size":r.fontSize?r.fontSize:"14px"})),y=t.computed(()=>({height:`${r.arrowHeight}px`,width:`${r.arrowWidth}px`}));function g(){r.isDisabled||(m.value=!m.value)}function o(c){F.value&&!F.value.contains(c.target)&&(m.value=!1)}function _(c,s){r.isMultipleOption?h.value=-1:(h.value=s,m.value=!1),I.value=c,n("input",I.value),n("update:modelValue",I.value)}function b(){m.value=!1,n("click-ready")}return t.onMounted(()=>{document.addEventListener("click",o)}),t.onBeforeMount(()=>{document.removeEventListener("click",o)}),(c,s)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"dropDown",ref:F,class:"gsc-dropdown",style:t.normalizeStyle(a.value)},[t.createElementVNode("div",{class:"gsc-dropdown__main-container",style:t.normalizeStyle({"padding-right":`${e.arrowWidth+8}px`}),onClick:g},[t.createElementVNode("div",_8t,[t.renderSlot(c.$slots,"default",{selectedItem:I.value})]),t.createElementVNode("div",{class:t.normalizeClass(["gsc-dropdown__main-container__icon",{"rotated-180":m.value}]),style:t.normalizeStyle(y.value)},[(t.openBlock(),t.createElementBlock("svg",{height:e.arrowHeight,width:e.arrowWidth,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M18.394 9.13501L13.1302 14.3988C12.5086 15.0204 11.4914 15.0204 10.8697 14.3988L5.60596 9.13501",stroke:e.arrowColor},null,8,x8t)],8,b8t))],6)],4),t.createVNode(t.Transition,null,{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("div",w8t,[t.createElementVNode("div",null,[t.createElementVNode("div",{class:"gsc-dropdown__items",style:t.normalizeStyle({"margin-top":`${r.borderWidth}px`})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(i,l)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["gsc-dropdown__items__item",{selected:l===h.value}]),key:l,onClick:d=>_(i,l)},[t.renderSlot(c.$slots,"availableItem",{item:i})],10,k8t))),128))],4),e.isFooterVisible?(t.openBlock(),t.createElementBlock("div",C8t,[t.createVNode(t.unref(v8t),{"text-value":"Listo","border-color":"#cbee6b","font-size":"12px",width:"72px",height:"22px","border-radius":"62px","border-width":.8,onClick:b})])):t.createCommentVNode("",!0)])],512),[[t.vShow,m.value]])]),_:3})],4))}},sv={borderType:"solid",listBackgroundColor:"#2E3B46",listBorderColor:"rgba(255, 255, 255, 0.2)",listBorderRadius:"5px",height:"38px",borderWidth:.8,borderColor:"white",backgroundColor:"#2E3B46",color:"white",listItemColor:"white",listItemSelectedBackgroundColor:"#2E3B46",arrowColor:"#fff",width:"100%",listHeight:"200px",isListSameWidth:!0,isFooterVisible:!0,hoverBackgroundColor:"#2E3B46"},J1=e=>(t.pushScopeId("data-v-6b9abee3"),e=e(),t.popScopeId(),e),S8t={class:"universe"},T8t=J1(()=>t.createElementVNode("div",{class:"universe__sub-header"},"Escribe los minutos jugados",-1)),E8t=J1(()=>t.createElementVNode("div",{class:"universe__label"},"Igual o mayor que:",-1)),A8t={class:"universe__inputs"},M8t={class:"universe__inputs__input"},I8t={class:"universe__inputs__checkbox"},N8t=J1(()=>t.createElementVNode("div",{class:"universe__sub-header"},"Escribe el % de minutos jugados contra el total posible",-1)),B8t=J1(()=>t.createElementVNode("div",{class:"universe__label"},"Mayor que:",-1)),P8t={class:"universe__inputs"},O8t={class:"universe__inputs__input"},L8t={class:"universe__inputs__checkbox"},F8t=J1(()=>t.createElementVNode("div",{class:"universe__sub-header"},"Selecciona el lapso de tiempo",-1)),D8t=J1(()=>t.createElementVNode("div",{class:"universe__label"},"Considerando los últimos:",-1)),z8t={class:"universe__dropdown"},V8t={class:"selected-item"},vW=11,R8t={__name:"TemplateUniverse",props:{universeFilters:{type:Object,default:()=>({minutesPlayed:0,percentMinutesPlayed:0,lastMonths:Array.from({length:24},(e,n)=>n+1),statistics:{totals:!0,averagePerGame:!1,averagePerMinute:!1}})},fontFamily:{type:String,default:"'Poppins-Regular'"}},emits:["update:universeFilters"],setup(e,{expose:n,emit:r}){const I=e,F=t.ref(!1),h=t.ref(!1),m=t.ref(!1),a=t.ref({statistics:{}});t.watch(()=>I.universeFilters,c=>{a.value={...c,lastMonths:c.selectedMonth?c.selectedMonth:c.lastMonths[vW],statistics:{...c.statistics}}},{deep:!0,immediate:!0}),t.watch(()=>a,c=>{F.value=!c.value.minutesPlayed||Number(c.value.minutesPlayed)===0,h.value=!c.value.percentMinutesPlayed||Number(c.value.percentMinutesPlayed)===0,m.value=!c.value.lastMonths||Number(c.value.lastMonths)===0,r("update:universeFilters",c)},{deep:!0,immediate:!0});function y(c){a.value.minutesPlayed=c}function g(c){a.value.percentMinutesPlayed=c}function o(c,s){switch(s){case"minutes":F.value=c,c&&(a.value.minutesPlayed=0);break;case"percent":h.value=c,c&&(a.value.percentMinutesPlayed=0);break;case"months":m.value=c,c&&(a.value.lastMonths=0);break}}function _(){a.value={...I.universeFilters,lastMonths:I.universeFilters.lastMonths[vW],statistics:{...I.universeFilters.statistics}}}function b(c){a.value.lastMonths=c}return n({resetFilters:_}),(c,s)=>(t.openBlock(),t.createElementBlock("div",S8t,[T8t,E8t,t.createElementVNode("div",A8t,[t.createElementVNode("div",M8t,[t.createVNode(t.unref(mW),{value:a.value.minutesPlayed,type:"text",inputmode:"numeric","border-radius":"4px",border:"solid 0.8px #8ea2ab","text-right":"Min","is-numbers-only":"",onInputval:y},null,8,["value"])]),t.createElementVNode("div",I8t,[t.createVNode(t.unref(yo),{modelValue:F.value,label:"Indistinto",fontFamily:e.fontFamily,"box-position":"right","onUpdate:modelValue":s[0]||(s[0]=i=>o(i,"minutes"))},null,8,["modelValue","fontFamily"])])]),N8t,B8t,t.createElementVNode("div",P8t,[t.createElementVNode("div",O8t,[t.createVNode(t.unref(mW),{value:a.value.percentMinutesPlayed,"input-type":"number","border-radius":"4px",border:"solid 0.8px #8ea2ab","text-right":"%","is-numbers-only":"",onInputval:g},null,8,["value"])]),t.createElementVNode("div",L8t,[t.createVNode(t.unref(yo),{modelValue:h.value,label:"Indistinto",fontFamily:e.fontFamily,"box-position":"right","onUpdate:modelValue":s[1]||(s[1]=i=>o(i,"percent"))},null,8,["modelValue","fontFamily"])])]),F8t,D8t,t.createElementVNode("div",z8t,[t.createVNode(t.unref(qf),t.mergeProps(t.unref(sv),{items:e.universeFilters.lastMonths,"model-value":a.value.lastMonths,onInput:b}),{default:t.withCtx(({selectedItem:i})=>[t.createElementVNode("div",V8t,t.toDisplayString(i)+" "+t.toDisplayString(i===1?"mes":"meses"),1)]),availableItem:t.withCtx(({item:i})=>[t.createElementVNode("div",null,t.toDisplayString(i)+" "+t.toDisplayString(i===1?"mes":"meses"),1)]),_:1},16,["items","model-value"])]),t.createCommentVNode("",!0),t.createCommentVNode("",!0)]))}},$8t=Bo(R8t,[["__scopeId","data-v-6b9abee3"]]),_W=(e,n)=>{const r=e.__vccOpts||e;for(const[I,F]of n)r[I]=F;return r},j8t={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||[],n=this.min===void 0?0:this.min,r=e.length?e.length-1:100,I=this.max===void 0?r:this.max,F=this.minValue===void 0?25:this.minValue;e.length&&this.minValue===void 0&&(F=1);let h=this.maxValue||75;if(e.length&&this.maxValue===void 0&&(h=e.length-2),I<=n)throw new Error("Invalid props min or max");if(F>h)throw new Error("Invalid props minValue or maxValue");let m=this.rangeMargin===void 0?this.step:this.rangeMargin,a=m%this.step;return a&&(m=m+this.step-a),{valueMin:F<n?n:F,valueMax:h>I?I:h,interVal:null,startX:null,mouseMoveCounter:null,barBox:null,barValue:0,rangeMarginValue:m}},methods:{onBarLeftClick(){this.valueMin-this.step>=this.minimum?this.valueMin-=this.step:this.valueMin=this.minimum},onInnerBarLeftClick(){this.valueMin+this.rangeMarginValue<this.valueMax&&(this.valueMin+=this.step)},onBarRightClick(){this.valueMax+this.step<=this.maximum?this.valueMax+=this.step:this.valueMax=this.maximum},onInnerBarRightClick(){this.valueMax-this.rangeMarginValue>this.valueMin&&(this.valueMax-=this.step)},onInputMinChange(e){let n=parseFloat(e.target.value);n<=this.valueMax-this.rangeMarginValue&&n>=this.minimum?this.valueMin=n:e.target.value=this.valueMin},onInputMaxChange(e){let n=parseFloat(e.target.value);n>=this.valueMin+this.rangeMarginValue&&n<=this.maximum?this.valueMax=n: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 n=e.clientX;e.type==="touchmove"&&(n=e.touches[0].clientX);let r=(n-this.startX)/this.barBox.width,I=this.barValue+(this.maximum-this.minimum)*r,F=I%this.step;I-=F,I<this.minimum?I=this.minimum:I>this.valueMax-this.rangeMarginValue&&(I=this.valueMax-this.rangeMarginValue),this.valueMin=I},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 n=e.clientX;e.type==="touchmove"&&(n=e.touches[0].clientX);let r=(n-this.startX)/this.barBox.width,I=this.barValue+(this.maximum-this.minimum)*r,F=I%this.step;I-=F,I<this.valueMin+this.rangeMarginValue?I=this.valueMin+this.rangeMarginValue:I>this.maximum&&(I=this.maximum),this.valueMax=I},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 n=this.step;e.deltaY<0&&(n=-n),e.shiftKey&&e.ctrlKey?this.valueMin+n>=this.minimum&&this.valueMax+n<=this.maximum&&(this.valueMin=this.valueMin+n,this.valueMax=this.valueMax+n):e.ctrlKey?(n=this.valueMax+n,n<this.valueMin+this.rangeMarginValue?n=this.valueMin+this.rangeMarginValue:n>this.maximum&&(n=this.maximum),this.valueMax=n):e.shiftKey&&(n=this.valueMin+n,n<this.minimum?n=this.minimum:n>this.valueMax-this.rangeMarginValue&&(n=this.valueMax-this.rangeMarginValue),this.valueMin=n)},triggerInput(){let e=0;this.step.toString().includes(".")&&(e=2);let n={min:this.minimum,max:this.maximum,minValue:parseFloat(this.valueMin.toFixed(e)),maxValue:parseFloat(this.valueMax.toFixed(e))};this.$emit("input",n)}},computed:{minimum(){return this.min===void 0?0:this.min},maximum(){let e=this.labels||[],n=e.length?e.length-1:100;return this.max===void 0?n: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(){}},U8t={class:"bar"},G8t=["min","max","step","value"],H8t={class:"caption"},W8t={class:"min-caption"},q8t={class:"bar-inner"},Y8t=["min","max","step","value"],X8t={class:"caption"},J8t={class:"max-caption"},Z8t={key:0,class:"ruler"},K8t={key:1,class:"sub-ruler"},Q8t={key:2,class:"labels"};function ekt(e,n,r,I,F,h){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass([r.baseClassName,F.rangeMarginValue===0?"zero-ranage-margin":""]),onMousewheel:n[10]||(n[10]=t.withModifiers((...m)=>h.onMouseWheel&&h.onMouseWheel(...m),["prevent","stop"]))},[t.createElementVNode("div",U8t,[t.createElementVNode("div",{class:"bar-left",style:t.normalizeStyle({width:h.barMin+"%"}),onClick:n[0]||(n[0]=(...m)=>h.onBarLeftClick&&h.onBarLeftClick(...m))},null,4),t.createElementVNode("input",{class:"input-type-range input-type-range-min",type:"range",min:h.minimum,max:h.maximum,step:r.step,value:F.valueMin,onInput:n[1]||(n[1]=t.withModifiers((...m)=>h.onInputMinChange&&h.onInputMinChange(...m),["stop","prevent"]))},null,40,G8t),t.createElementVNode("div",{class:"thumb thumb-left",onMousedown:n[2]||(n[2]=(...m)=>h.onLeftThumbMousedown&&h.onLeftThumbMousedown(...m)),onTouchstart:n[3]||(n[3]=(...m)=>h.onLeftThumbMousedown&&h.onLeftThumbMousedown(...m))},[t.createElementVNode("div",H8t,[t.createElementVNode("span",W8t,t.toDisplayString(r.minCaption||h.barMinVal),1)])],32),t.createElementVNode("div",q8t,[t.createElementVNode("div",{class:"bar-inner-left",onClick:n[4]||(n[4]=(...m)=>h.onInnerBarLeftClick&&h.onInnerBarLeftClick(...m))}),t.createElementVNode("div",{class:"bar-inner-right",onClick:n[5]||(n[5]=(...m)=>h.onInnerBarRightClick&&h.onInnerBarRightClick(...m))})]),t.createElementVNode("input",{class:"input-type-range input-type-range-max",type:"range",min:h.minimum,max:h.maximum,step:r.step,value:F.valueMax,onInput:n[6]||(n[6]=t.withModifiers((...m)=>h.onInputMaxChange&&h.onInputMaxChange(...m),["stop","prevent"]))},null,40,Y8t),t.createElementVNode("div",{class:"thumb thumb-right",onMousedown:n[7]||(n[7]=(...m)=>h.onRightThumbMousedown&&h.onRightThumbMousedown(...m)),onTouchstart:n[8]||(n[8]=(...m)=>h.onRightThumbMousedown&&h.onRightThumbMousedown(...m))},[t.createElementVNode("div",X8t,[t.createElementVNode("span",J8t,t.toDisplayString(r.maxCaption||h.barMaxVal),1)])],32),t.createElementVNode("div",{class:"bar-right",style:t.normalizeStyle({width:h.barMax+"%"}),onClick:n[9]||(n[9]=(...m)=>h.onBarRightClick&&h.onBarRightClick(...m))},null,4)]),r.ruler?(t.openBlock(),t.createElementBlock("div",Z8t,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(h.stepCount,m=>(t.openBlock(),t.createElementBlock("div",{key:m,class:"ruler-rule"}))),128))])):t.createCommentVNode("",!0),h.subStepCount?(t.openBlock(),t.createElementBlock("div",K8t,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(h.subStepCount,m=>(t.openBlock(),t.createElementBlock("div",{key:m,class:"ruler-sub-rule"}))),128))])):t.createCommentVNode("",!0),r.label?(t.openBlock(),t.createElementBlock("div",Q8t,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(h.scaleLabels,m=>(t.openBlock(),t.createElementBlock("div",{class:"label",key:m},t.toDisplayString(m),1))),128))])):t.createCommentVNode("",!0)],34)}const tkt=_W(j8t,[["render",ekt]]),tT={components:{MultiRangeSlider:tkt},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)}}},bW=()=>{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}))},xW=tT.setup;tT.setup=xW?(e,n)=>(bW(),xW(e,n)):bW;const akt={class:"center"},nkt={class:"bar-ref"},rkt={class:"bar-ref-element-left"},ikt={class:"bar-ref-element-right"};function okt(e,n,r,I,F,h){const m=t.resolveComponent("MultiRangeSlider");return t.openBlock(),t.createElementBlock("div",{class:"custom-range-slider",style:t.normalizeStyle(h.customStyle)},[t.createElementVNode("div",akt,[t.createElementVNode("div",nkt,[t.createElementVNode("div",rkt,[t.createElementVNode("div",{class:"text",style:t.normalizeStyle(h.customStyleText)},"De:",4),t.createElementVNode("div",{class:"value",style:t.normalizeStyle(h.customStyleValue)},t.toDisplayString(F.minValueLocal)+t.toDisplayString(r.minSuffix),5)]),t.createElementVNode("div",ikt,[t.createElementVNode("div",{class:"text",style:t.normalizeStyle(h.customStyleText)},"A:",4),t.createElementVNode("div",{class:"value",style:t.normalizeStyle(h.customStyleValue)},t.toDisplayString(F.maxValueLocal)+t.toDisplayString(r.maxSuffix),5)])]),t.createVNode(m,{baseClassName:"multi-range-slider",min:r.minLimit,max:r.maxLimit,step:1,ruler:!1,label:!1,"min-value":F.minValueLocal,"max-value":F.maxValueLocal,"range-margin":0,onInput:h.onInput},null,8,["min","max","min-value","max-value","onInput"])])],4)}const wW=_W(tT,[["render",okt]]),skt={class:"template-distance"},lkt={__name:"TemplateDistance",props:{distance:{type:Object,default:()=>({minLimit:5,maxLimit:30,minValue:5,maxValue:30})}},emits:["update:distanceFilters"],setup(e,{emit:n}){const r=e,I=t.ref({minValue:0,maxValue:0,minLimit:0,maxLimit:0});t.watch(()=>I.value,h=>{n("update:distanceFilters",h)},{deep:!0}),t.watch(()=>r.distance,h=>{I.value.minValue=h.minValue,I.value.maxValue=h.maxValue,I.value.minLimit=h.minLimit,I.value.maxLimit=h.maxLimit},{immediate:!0,deep:!0});function F(h){I.value.minValue=h.minValue,I.value.maxValue=h.maxValue}return(h,m)=>(t.openBlock(),t.createElementBlock("div",skt,[t.createVNode(t.unref(wW),{"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":I.value.minLimit,"max-limit":I.value.maxLimit,"min-value":I.value.minValue,"max-value":I.value.maxValue,"min-suffix":"m","max-suffix":"+",onInput:F},null,8,["min-limit","max-limit","min-value","max-value"])]))}},ckt=e=>(t.pushScopeId("data-v-5d0cf72a"),e=e(),t.popScopeId(),e),dkt={class:"template-games"},ukt={class:"template-games__header"},hkt=ckt(()=>t.createElementVNode("div",{class:"template-games__header__title"},"Partidos jugados:",-1)),pkt={class:"template-games__header__all-games"},fkt={__name:"TemplateGames",props:{gamesFilters:{type:Array,default:()=>[]}},emits:["update:gamesFilters"],setup(e,{emit:n}){const r=e,I=t.ref(!1),F=t.computed(()=>r.gamesFilters.filter(m=>m.isSelected).length);t.watch(()=>r.gamesFilters,m=>{n("update:gamesFilters",m)},{deep:!0}),t.watch(F,m=>{I.value=m===r.gamesFilters.length,n("update:gamesFilters",r.gamesFilters)},{immediate:!0});const h=m=>{m?r.gamesFilters.forEach(a=>{a.isSelected=m}):r.gamesFilters.forEach((a,y)=>{a.isSelected=y===0}),I.value=m};return(m,a)=>(t.openBlock(),t.createElementBlock("div",dkt,[t.createElementVNode("div",ukt,[hkt,t.createElementVNode("div",pkt,[t.createVNode(t.unref(yo),{modelValue:I.value,label:"Todos","box-position":"right","font-family":"Roboto-Regular, sans-serif","label-font-size":"12px","onUpdate:modelValue":h},null,8,["modelValue"])])]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.gamesFilters,(y,g)=>(t.openBlock(),t.createElementBlock("div",{key:g,class:"template-games__game"},[t.createVNode(t.unref(yo),{modelValue:y.isSelected,"onUpdate:modelValue":o=>y.isSelected=o,label:y.label,"teams-ids":y.teamsIds,"avoid-interaction":F.value===1&&y.isSelected},null,8,["modelValue","onUpdate:modelValue","label","teams-ids","avoid-interaction"])]))),128))]))}},mkt=Bo(fkt,[["__scopeId","data-v-5d0cf72a"]]),gkt=(e,n)=>{const r=e.__vccOpts||e;for(const[I,F]of n)r[I]=F;return r},aT={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))}}},kW=()=>{t.useCssVars(e=>({"1c960139":e.height,b2f635d8:e.borderWidthBtn,"06e99898":e.borderType,"55555c76":e.borderColor,"23b6d320":e.borderRadius,"22c97374":e.width,"22bb09fa":e.backgroundColor,c148da7c:e.cursorType,cce756fc:e.fontSize,cff98d60:e.fontStyle,"5123b3a5":e.fontFamily,"47bf58db":e.marginLeftStat,cadc8414:e.fontSizeStat}))},CW=aT.setup;aT.setup=CW?(e,n)=>(kW(),CW(e,n)):kW;const ykt=e=>(t.pushScopeId("data-v-fb269a1e"),e=e(),t.popScopeId(),e),vkt=["src"],_kt={key:1,class:"text"},bkt=["src"],xkt={class:"stats"},wkt=ykt(()=>t.createElementVNode("img",{class:"iconstats",src:"https://az755631.vo.msecnd.net/todoelfut/playdes.png"},null,-1)),kkt={class:"numstats"},Ckt={class:"leyend"};function Skt(e,n,r,I,F,h){return t.openBlock(),t.createElementBlock("div",null,[r.type==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["button",F.status&&r.typeOnOff&&"button-active"]),style:t.normalizeStyle([h.customStyle,F.status&&r.typeOnOff&&h.customActive]),onClick:n[0]||(n[0]=(...m)=>h.btnClick&&h.btnClick(...m))},[r.icon&&r.iconPosition.toLowerCase()==="left"?(t.openBlock(),t.createElementBlock("img",{key:0,class:"icon",style:t.normalizeStyle({width:r.iconSize}),src:r.icon},null,12,vkt)):t.createCommentVNode("",!0),r.textValue?(t.openBlock(),t.createElementBlock("div",_kt,t.toDisplayString(r.textValue),1)):t.createCommentVNode("",!0),r.icon&&r.iconPosition.toLowerCase()==="right"?(t.openBlock(),t.createElementBlock("img",{key:2,class:"icon",style:t.normalizeStyle({width:r.iconSize}),src:r.icon},null,12,bkt)):t.createCommentVNode("",!0)],6)):t.createCommentVNode("",!0),r.type==1?(t.openBlock(),t.createElementBlock("div",{key:1,class:"button-target",onClick:n[1]||(n[1]=(...m)=>h.btnClick&&h.btnClick(...m))},[t.createElementVNode("div",xkt,[wkt,t.createElementVNode("div",kkt,t.toDisplayString(r.textStat),1)]),t.createElementVNode("div",Ckt,t.toDisplayString(r.textCategory),1)])):t.createCommentVNode("",!0)])}const nT=gkt(aT,[["render",Skt],["__scopeId","data-v-fb269a1e"]]),Tkt=(e,n)=>{const r=e.__vccOpts||e;for(const[I,F]of n)r[I]=F;return r},rT={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))}}},SW=()=>{t.useCssVars(e=>({"1c960139":e.height,b2f635d8:e.borderWidthBtn,"06e99898":e.borderType,"55555c76":e.borderColor,"23b6d320":e.borderRadius,"22c97374":e.width,"22bb09fa":e.backgroundColor,c148da7c:e.cursorType,cce756fc:e.fontSize,cff98d60:e.fontStyle,"5123b3a5":e.fontFamily,"47bf58db":e.marginLeftStat,cadc8414:e.fontSizeStat}))},TW=rT.setup;rT.setup=TW?(e,n)=>(SW(),TW(e,n)):SW;const Ekt=e=>(t.pushScopeId("data-v-fb269a1e"),e=e(),t.popScopeId(),e),Akt=["src"],Mkt={key:1,class:"text"},Ikt=["src"],Nkt={class:"stats"},Bkt=Ekt(()=>t.createElementVNode("img",{class:"iconstats",src:"https://az755631.vo.msecnd.net/todoelfut/playdes.png"},null,-1)),Pkt={class:"numstats"},Okt={class:"leyend"};function Lkt(e,n,r,I,F,h){return t.openBlock(),t.createElementBlock("div",null,[r.type==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["button",F.status&&r.typeOnOff&&"button-active"]),style:t.normalizeStyle([h.customStyle,F.status&&r.typeOnOff&&h.customActive]),onClick:n[0]||(n[0]=(...m)=>h.btnClick&&h.btnClick(...m))},[r.icon&&r.iconPosition.toLowerCase()==="left"?(t.openBlock(),t.createElementBlock("img",{key:0,class:"icon",style:t.normalizeStyle({width:r.iconSize}),src:r.icon},null,12,Akt)):t.createCommentVNode("",!0),r.textValue?(t.openBlock(),t.createElementBlock("div",Mkt,t.toDisplayString(r.textValue),1)):t.createCommentVNode("",!0),r.icon&&r.iconPosition.toLowerCase()==="right"?(t.openBlock(),t.createElementBlock("img",{key:2,class:"icon",style:t.normalizeStyle({width:r.iconSize}),src:r.icon},null,12,Ikt)):t.createCommentVNode("",!0)],6)):t.createCommentVNode("",!0),r.type==1?(t.openBlock(),t.createElementBlock("div",{key:1,class:"button-target",onClick:n[1]||(n[1]=(...m)=>h.btnClick&&h.btnClick(...m))},[t.createElementVNode("div",Nkt,[Bkt,t.createElementVNode("div",Pkt,t.toDisplayString(r.textStat),1)]),t.createElementVNode("div",Okt,t.toDisplayString(r.textCategory),1)])):t.createCommentVNode("",!0)])}const Fkt=Tkt(rT,[["render",Lkt],["__scopeId","data-v-fb269a1e"]]),Dkt=(e,n)=>{const r=e.__vccOpts||e;for(const[I,F]of n)r[I]=F;return r},zkt={key:1},Vkt={width:"10",height:"8",viewBox:"0 0 10 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Rkt=["fill"],$kt={key:0,class:"checkbox__teams"},jkt={class:"checkbox__teams__logo"},Ukt=["src"],Gkt={class:"checkbox__teams__logo"},Hkt=["src"],Wkt={__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:n}){const r=e;t.useCssVars(g=>({"6582e90e":e.width,"310b3edf":e.height}));const I=t.ref(!1),F=t.computed(()=>{const g={color:r.boxValueColor,"font-family":r.fontFamily,height:r.boxWidthAndHeight,width:r.boxWidthAndHeight,minWidth:r.boxWidthAndHeight,"border-radius":r.boxBorderRadius,"margin-top":r.boxMarginTop};return I.value?(g["background-color"]=r.boxBackgroundColor,g.border=`solid ${r.boxBorderWidth} ${r.boxBackgroundColor}`):g.border=`solid ${r.boxBorderWidth} ${r.boxBorderColor}`,g}),h=t.computed(()=>({"font-family":r.boxValueFontFamily,"font-size":r.boxValueFontSize,color:r.boxValueColor,"line-height":1})),m=t.computed(()=>{const g={color:r.labelColor,"font-family":r.fontFamily,"font-size":r.labelFontSize,"white-space":r.labelWhiteSpace,"text-align":r.boxPosition==="top"||r.boxPosition==="bottom"?"center":r.boxPosition};return(r.boxPosition==="left"||r.boxPosition==="right")&&(g[`margin-${r.boxPosition}`]=r.isBoxOnly?"0":r.teamsIds?"8px":"10px"),g});t.watch(()=>r.modelValue,g=>{g!==I.value&&(I.value=g)},{immediate:!0});function a(){r.avoidInteraction||!I.value&&r.avoidToCheck||(I.value=!I.value,n("update:modelValue",I.value))}function y(g){return`${{}.TEAM_LOGOS_URL||"https://az755631.vo.msecnd.net/teams-80/"}${g}.png`}return(g,o)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["checkbox",`box-${e.boxPosition}`]),onClick:a},[t.createElementVNode("div",{class:"checkbox__box",style:t.normalizeStyle(F.value)},[I.value?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[r.boxValue?(t.openBlock(),t.createElementBlock("div",{key:0,class:"checkbox__box__value",style:t.normalizeStyle(h.value)},t.toDisplayString(e.boxValue),5)):(t.openBlock(),t.createElementBlock("div",zkt,[(t.openBlock(),t.createElementBlock("svg",Vkt,[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,Rkt)]))]))],64)):t.createCommentVNode("",!0)],4),e.teamsIds&&e.teamsIds.length?(t.openBlock(),t.createElementBlock("div",$kt,[t.createElementVNode("div",jkt,[t.createElementVNode("img",{src:y(e.teamsIds[0]),alt:""},null,8,Ukt)]),t.createElementVNode("div",Gkt,[t.createElementVNode("img",{src:y(e.teamsIds[1]),alt:""},null,8,Hkt)])])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"checkbox__label",style:t.normalizeStyle(m.value)},t.toDisplayString(e.label),5)],2))}},qkt=Dkt(Wkt,[["__scopeId","data-v-bcf3bcc6"]]),Ykt=(e,n)=>{const r=e.__vccOpts||e;for(const[I,F]of n)r[I]=F;return r},iT={components:{GSCButton:Fkt,GSCCheckbox:qkt},data(){return{update:0,all:!1,refreshBtn14:0,refreshBtn24:0,refreshBtn34:0,refreshBtn44:0,sectors:Array.from({length:16},(e,n)=>({sector:n+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 n=e.sort();JSON.stringify(n)!==JSON.stringify(this.lastUpdatedValue)&&(this.lastUpdatedValue=n,this.sectors.forEach((r,I)=>{r.active=e.includes(I+1),this.validateField(I)}),this.$emit("update:modelValue",e))}},sectors:{handler(e){var n=[];for(let r=0;r<e.length;r++)e[r].active&&n.push(r+1);this.$emit("update:modelValue",n)},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 n=0;n<this.sectors.length;n++)this.sectors[n].active=!0,this.validateField(n);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 n=0;n<this.sectors.length;n++)this.sectors[n].active=!1,this.validateField(n),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 n=0;this.sectors[e].active=!this.sectors[e].active;for(let r=0;r<this.sectors.length;r++)this.sectors[r].active&&(n+=1);n==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 n=0;for(let r=0;r<this.sectors.length;r++)this.sectors[r].active&&(n+=1);n==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,n==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 n=0;for(let r=0;r<this.sectors.length;r++)this.sectors[r].active&&(n+=1);n==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,n==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 n=0;for(let r=0;r<this.sectors.length;r++)this.sectors[r].active&&(n+=1);n==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,n==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 n=0;for(let r=0;r<this.sectors.length;r++)this.sectors[r].active&&(n+=1);n==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,n==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)}}},EW=()=>{t.useCssVars(e=>({"4fe806fe":e.widthContainer,"91de7c52":e.heightContainer,"266afcdc":e.backgroundColor,"2b853536":e.titleFontSize,"986b6446":e.widthFieldGrid,"1af308b6":e.heightFieldGrid}))},AW=iT.setup;iT.setup=AW?(e,n)=>(EW(),AW(e,n)):EW;const Xkt={class:"gsc-field"},Jkt={class:"gsc-field__title-checked"},Zkt={class:"gsc-field__title-checked__title"},Kkt={class:"gsc-field__container-field"},Qkt={class:"gsc-field__container-field__field"},e7t={width:"100%",height:"100%",fill:"#2e3b46",xmlns:"http://www.w3.org/2000/svg"},t7t=["stroke"],a7t=["stroke","stroke-width"],n7t=["stroke","stroke-width"],r7t=["stroke-width","stroke"],i7t=["fill","fill-opacity","stroke","stroke-width"],o7t=["fill","fill-opacity","stroke","stroke-width"],s7t=["fill","fill-opacity","stroke","stroke-width"],l7t=["fill","fill-opacity","stroke","stroke-width"],c7t=["fill","fill-opacity","stroke","stroke-width"],d7t=["fill","fill-opacity","stroke","stroke-width"],u7t=["fill","fill-opacity","stroke","stroke-width"],h7t=["fill","fill-opacity","stroke","stroke-width"],p7t=["fill","fill-opacity","stroke","stroke-width"],f7t=["fill","fill-opacity","stroke","stroke-width"],m7t=["fill","fill-opacity","stroke","stroke-width"],g7t=["fill","fill-opacity","stroke","stroke-width"],y7t=["fill","fill-opacity","stroke","stroke-width"],v7t=["fill","fill-opacity","stroke","stroke-width"],_7t=["fill","fill-opacity","stroke","stroke-width"],b7t=["fill","fill-opacity","stroke","stroke-width"],x7t={class:"gsc-field__container-field__bar-buttons"};function w7t(e,n,r,I,F,h){const m=t.resolveComponent("GSCCheckbox"),a=t.resolveComponent("GSCButton");return t.openBlock(),t.createElementBlock("div",Xkt,[t.createElementVNode("div",Jkt,[t.createElementVNode("div",Zkt,t.toDisplayString(r.title),1),t.createElementVNode("div",{class:"gsc-field__title-checked__check-cont",style:t.normalizeStyle(r.widthField>=350?"min-width: 123px":"")},[(t.openBlock(),t.createBlock(m,{label:r.widthField<350?"Todas":"Todas las zonas","font-family":"Poppins-Regular","box-value-font-family":"Poppins-Regular","box-position":"right","label-font-size":r.titleFontSize,"label-white-space":"nowrap","box-margin-top":"0.4em",value:F.all,key:F.update,"model-value":F.all,"onUpdate:modelValue":h.clickAll},null,8,["label","label-font-size","value","model-value","onUpdate:modelValue"]))],4)]),t.createElementVNode("div",Kkt,[t.createElementVNode("div",Qkt,[(t.openBlock(),t.createElementBlock("svg",e7t,[t.createElementVNode("rect",{x:"1.5",y:"0.5",width:"100%",height:"100%",rx:"1.5",stroke:r.colorLineField},null,8,t7t),t.createElementVNode("path",{style:t.normalizeStyle("transform: translate("+h.translx+"px, "+h.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:r.colorLineField,"stroke-width":r.borderWidthLineField,"stroke-linecap":"square"},null,12,a7t),t.createElementVNode("path",{style:t.normalizeStyle("transform: translateY("+h.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:r.colorLineField,"stroke-width":r.borderWidthLineField,"stroke-linecap":"square"},null,12,n7t),t.createElementVNode("path",{style:t.normalizeStyle("transform: translate("+h.translxcircle+"px, "+h.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":r.borderWidthLineField,stroke:r.colorLineField},null,12,r7t),t.createElementVNode("rect",{x:"0%",y:"0%",width:"25%",height:"25%",fill:F.sectors[0].active?r.backgroundSectorActive:r.backgroundSectorDisabled,"fill-opacity":r.opacitySector,stroke:r.borderColor,"stroke-width":r.borderWidth,onClick:n[0]||(n[0]=y=>h.selectSector(0))},null,8,i7t),t.createElementVNode("rect",{x:"0%",y:"25%",width:"25%",height:"25%",fill:F.sectors[1].active?r.backgroundSectorActive:r.backgroundSectorDisabled,"fill-opacity":r.opacitySector,stroke:r.borderColor,"stroke-width":r.borderWidth,onClick:n[1]||(n[1]=y=>h.selectSector(1))},null,8,o7t),t.createElementVNode("rect",{x:"0%",y:"50%",width:"25%",height:"25%",fill:F.sectors[2].active?r.backgroundSectorActive:r.backgroundSectorDisabled,"fill-opacity":r.opacitySector,stroke:r.borderColor,"stroke-width":r.borderWidth,onClick:n[2]||(n[2]=y=>h.selectSector(2))},null,8,s7t),t.createElementVNode("rect",{x:"0%",y:"75%",width:"25%",height:"25%",fill:F.sectors[3].active?r.backgroundSectorActive:r.backgroundSectorDisabled,"fill-opacity":r.opacitySector,stroke:r.borderColor,"stroke-width":r.borderWidth,onClick:n[3]||(n[3]=y=>h.selectSector(3))},null,8,l7t),t.createElementVNode("rect",{x:"25%",y:"0%",width:"25%",height:"25%",fill:F.sectors[4].active?r.backgroundSectorActive:r.backgroundSectorDisabled,"fill-opacity":r.opacitySector,stroke:r.borderColor,"stroke-width":r.borderWidth,onClick:n[4]||(n[4]=y=>h.selectSector(4))},null,8,c7t),t.createElementVNode("rect",{x:"25%",y:"25%",width:"25%",height:"25%",fill:F.sectors[5].active?r.backgroundSectorActive:r.backgroundSectorDisabled,"fill-opacity":r.opacitySector,stroke:r.borderColor,"stroke-width":r.borderWidth,onClick:n[5]||(n[5]=y=>h.selectSector(5))},null,8,d7t),t.createElementVNode("rect",{x:"25%",y:"50%",width:"25%",height:"25%",fill:F.sectors[6].active?r.backgroundSectorActive:r.backgroundSectorDisabled,"fill-opacity":r.opacitySector,stroke:r.borderColor,"stroke-width":r.borderWidth,onClick:n[6]||(n[6]=y=>h.selectSector(6))},null,8,u7t),t.createElementVNode("rect",{x:"25%",y:"75%",width:"25%",height:"25%",fill:F.sectors[7].active?r.backgroundSectorActive:r.backgroundSectorDisabled,"fill-opacity":r.opacitySector,stroke:r.borderColor,"stroke-width":r.borderWidth,onClick:n[7]||(n[7]=y=>h.selectSector(7))},null,8,h7t),t.createElementVNode("rect",{x:"50%",y:"0%",width:"25%",height:"25%",fill:F.sectors[8].active?r.backgroundSectorActive:r.backgroundSectorDisabled,"fill-opacity":r.opacitySector,stroke:r.borderColor,"stroke-width":r.borderWidth,onClick:n[8]||(n[8]=y=>h.selectSector(8))},null,8,p7t),t.createElementVNode("rect",{x:"50%",y:"25%",width:"25%",height:"25%",fill:F.sectors[9].active?r.backgroundSectorActive:r.backgroundSectorDisabled,"fill-opacity":r.opacitySector,stroke:r.borderColor,"stroke-width":r.borderWidth,onClick:n[9]||(n[9]=y=>h.selectSector(9))},null,8,f7t),t.createElementVNode("rect",{x:"50%",y:"50%",width:"25%",height:"25%",fill:F.sectors[10].active?r.backgroundSectorActive:r.backgroundSectorDisabled,"fill-opacity":r.opacitySector,stroke:r.borderColor,"stroke-width":r.borderWidth,onClick:n[10]||(n[10]=y=>h.selectSector(10))},null,8,m7t),t.createElementVNode("rect",{x:"50%",y:"75%",width:"25%",height:"25%",fill:F.sectors[11].active?r.backgroundSectorActive:r.backgroundSectorDisabled,"fill-opacity":r.opacitySector,stroke:r.borderColor,"stroke-width":r.borderWidth,onClick:n[11]||(n[11]=y=>h.selectSector(11))},null,8,g7t),t.createElementVNode("rect",{x:"75%",y:"0%",width:"25%",height:"25%",fill:F.sectors[12].active?r.backgroundSectorActive:r.backgroundSectorDisabled,"fill-opacity":r.opacitySector,stroke:r.borderColor,"stroke-width":r.borderWidth,onClick:n[12]||(n[12]=y=>h.selectSector(12))},null,8,y7t),t.createElementVNode("rect",{x:"75%",y:"25%",width:"25%",height:"25%",fill:F.sectors[13].active?r.backgroundSectorActive:r.backgroundSectorDisabled,"fill-opacity":r.opacitySector,stroke:r.borderColor,"stroke-width":r.borderWidth,onClick:n[13]||(n[13]=y=>h.selectSector(13))},null,8,v7t),t.createElementVNode("rect",{x:"75%",y:"50%",width:"25%",height:"25%",fill:F.sectors[14].active?r.backgroundSectorActive:r.backgroundSectorDisabled,"fill-opacity":r.opacitySector,stroke:r.borderColor,"stroke-width":r.borderWidth,onClick:n[14]||(n[14]=y=>h.selectSector(14))},null,8,_7t),t.createElementVNode("rect",{x:"75%",y:"75%",width:"25%",height:"25%",fill:F.sectors[15].active?r.backgroundSectorActive:r.backgroundSectorDisabled,"fill-opacity":r.opacitySector,stroke:r.borderColor,"stroke-width":r.borderWidth,onClick:n[15]||(n[15]=y=>h.selectSector(15))},null,8,b7t)]))]),t.createElementVNode("div",x7t,[(t.openBlock(),t.createBlock(a,{"text-value":"1/4 tos","font-size":"12px",height:"26px",width:"65px","type-on-off":!0,"border-width":1,"font-color":"#bfc2c5","border-color":"#8c9399","border-radius":"4px","font-family":"Poppins-Medium","active-border-width":1,"background-color":"","active-background-color":"#cbee6b33",ref:"btn14",onStatus:h.btn14,key:F.refreshBtn14,value:e.status14},null,8,["onStatus","value"])),(t.openBlock(),t.createBlock(a,{"text-value":"2/4 tos","font-size":"12px",height:"26px",width:"65px","type-on-off":!0,"border-width":1,"font-color":"#bfc2c5","border-color":"#8c9399","border-radius":"4px","font-family":"Poppins-Medium","active-border-width":1,"background-color":"","active-background-color":"#cbee6b33",ref:"btn24",onStatus:h.btn24,key:F.refreshBtn24,value:e.status24},null,8,["onStatus","value"])),(t.openBlock(),t.createBlock(a,{"text-value":"3/4 tos","font-size":"12px",height:"26px",width:"65px","type-on-off":!0,"border-width":1,"font-color":"#bfc2c5","border-color":"#8c9399","border-radius":"4px","font-family":"Poppins-Medium","active-border-width":1,"background-color":"","active-background-color":"#cbee6b33",ref:"btn34",onStatus:h.btn34,key:F.refreshBtn34,value:e.status34},null,8,["onStatus","value"])),(t.openBlock(),t.createBlock(a,{"text-value":"4/4 tos","font-size":"12px",height:"26px",width:"65px","type-on-off":!0,"border-width":1,"font-color":"#bfc2c5","border-color":"#8c9399","border-radius":"4px","font-family":"Poppins-Medium","active-border-width":1,"background-color":"","active-background-color":"#cbee6b33",ref:"btn44",onStatus:h.btn44,key:F.refreshBtn44,value:e.status44},null,8,["onStatus","value"]))])])])}const MW=Ykt(iT,[["render",w7t],["__scopeId","data-v-b85699b8"]]),k7t={class:"toggle-buttons__background"},C7t=["onClick"],S7t={__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:n}){const r=e;t.useCssVars(m=>({"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 I=t.ref(r.selectedButtonIndex),F=t.computed(()=>({"--grid-template-columns":`repeat(${r.buttons.length}, 1fr)`}));t.watch(()=>r.selectedButtonIndex,m=>{I.value=m}),t.watch(I,(m,a)=>{m!==a&&n("change",{index:m,button:r.buttons[m]})});function h(m){I.value=m}return(m,a)=>(t.openBlock(),t.createElementBlock("div",k7t,[t.createElementVNode("div",{class:"toggle-buttons",style:t.normalizeStyle(F.value)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.buttons,(y,g)=>(t.openBlock(),t.createElementBlock("div",{key:`b${g}`,class:t.normalizeClass(["toggle-buttons__button",{active:I.value===g}]),onClick:o=>h(g)},t.toDisplayString(y.text||y),11,C7t))),128))],4)]))}},T7t=Bo(S7t,[["__scopeId","data-v-f34a7e56"]]);function IW(e,n){return function(){return e.apply(n,arguments)}}const{toString:E7t}=Object.prototype,{getPrototypeOf:oT}=Object,K4=(e=>n=>{const r=E7t.call(n);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),Mh=e=>(e=e.toLowerCase(),n=>K4(n)===e),Q4=e=>n=>typeof n===e,{isArray:Z1}=Array,lv=Q4("undefined");function A7t(e){return e!==null&&!lv(e)&&e.constructor!==null&&!lv(e.constructor)&&eu(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const NW=Mh("ArrayBuffer");function M7t(e){let n;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?n=ArrayBuffer.isView(e):n=e&&e.buffer&&NW(e.buffer),n}const I7t=Q4("string"),eu=Q4("function"),BW=Q4("number"),ew=e=>e!==null&&typeof e=="object",N7t=e=>e===!0||e===!1,tw=e=>{if(K4(e)!=="object")return!1;const n=oT(e);return(n===null||n===Object.prototype||Object.getPrototypeOf(n)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},B7t=Mh("Date"),P7t=Mh("File"),O7t=Mh("Blob"),L7t=Mh("FileList"),F7t=e=>ew(e)&&eu(e.pipe),D7t=e=>{let n;return e&&(typeof FormData=="function"&&e instanceof FormData||eu(e.append)&&((n=K4(e))==="formdata"||n==="object"&&eu(e.toString)&&e.toString()==="[object FormData]"))},z7t=Mh("URLSearchParams"),[V7t,R7t,$7t,j7t]=["ReadableStream","Request","Response","Headers"].map(Mh),U7t=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function cv(e,n,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let I,F;if(typeof e!="object"&&(e=[e]),Z1(e))for(I=0,F=e.length;I<F;I++)n.call(null,e[I],I,e);else{const h=r?Object.getOwnPropertyNames(e):Object.keys(e),m=h.length;let a;for(I=0;I<m;I++)a=h[I],n.call(null,e[a],a,e)}}function PW(e,n){n=n.toLowerCase();const r=Object.keys(e);let I=r.length,F;for(;I-- >0;)if(F=r[I],n===F.toLowerCase())return F;return null}const Bm=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),OW=e=>!lv(e)&&e!==Bm;function sT(){const{caseless:e}=OW(this)&&this||{},n={},r=(I,F)=>{const h=e&&PW(n,F)||F;tw(n[h])&&tw(I)?n[h]=sT(n[h],I):tw(I)?n[h]=sT({},I):Z1(I)?n[h]=I.slice():n[h]=I};for(let I=0,F=arguments.length;I<F;I++)arguments[I]&&cv(arguments[I],r);return n}const G7t=(e,n,r,{allOwnKeys:I}={})=>(cv(n,(F,h)=>{r&&eu(F)?e[h]=IW(F,r):e[h]=F},{allOwnKeys:I}),e),H7t=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),W7t=(e,n,r,I)=>{e.prototype=Object.create(n.prototype,I),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:n.prototype}),r&&Object.assign(e.prototype,r)},q7t=(e,n,r,I)=>{let F,h,m;const a={};if(n=n||{},e==null)return n;do{for(F=Object.getOwnPropertyNames(e),h=F.length;h-- >0;)m=F[h],(!I||I(m,e,n))&&!a[m]&&(n[m]=e[m],a[m]=!0);e=r!==!1&&oT(e)}while(e&&(!r||r(e,n))&&e!==Object.prototype);return n},Y7t=(e,n,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=n.length;const I=e.indexOf(n,r);return I!==-1&&I===r},X7t=e=>{if(!e)return null;if(Z1(e))return e;let n=e.length;if(!BW(n))return null;const r=new Array(n);for(;n-- >0;)r[n]=e[n];return r},J7t=(e=>n=>e&&n instanceof e)(typeof Uint8Array<"u"&&oT(Uint8Array)),Z7t=(e,n)=>{const r=(e&&e[Symbol.iterator]).call(e);let I;for(;(I=r.next())&&!I.done;){const F=I.value;n.call(e,F[0],F[1])}},K7t=(e,n)=>{let r;const I=[];for(;(r=e.exec(n))!==null;)I.push(r);return I},Q7t=Mh("HTMLFormElement"),e9t=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,I){return r.toUpperCase()+I}),LW=(({hasOwnProperty:e})=>(n,r)=>e.call(n,r))(Object.prototype),t9t=Mh("RegExp"),FW=(e,n)=>{const r=Object.getOwnPropertyDescriptors(e),I={};cv(r,(F,h)=>{let m;(m=n(F,h,e))!==!1&&(I[h]=m||F)}),Object.defineProperties(e,I)},a9t=e=>{FW(e,(n,r)=>{if(eu(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const I=e[r];if(eu(I)){if(n.enumerable=!1,"writable"in n){n.writable=!1;return}n.set||(n.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},n9t=(e,n)=>{const r={},I=F=>{F.forEach(h=>{r[h]=!0})};return Z1(e)?I(e):I(String(e).split(n)),r},r9t=()=>{},i9t=(e,n)=>e!=null&&Number.isFinite(e=+e)?e:n,lT="abcdefghijklmnopqrstuvwxyz",DW="0123456789",zW={DIGIT:DW,ALPHA:lT,ALPHA_DIGIT:lT+lT.toUpperCase()+DW},o9t=(e=16,n=zW.ALPHA_DIGIT)=>{let r="";const{length:I}=n;for(;e--;)r+=n[Math.random()*I|0];return r};function s9t(e){return!!(e&&eu(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const l9t=e=>{const n=new Array(10),r=(I,F)=>{if(ew(I)){if(n.indexOf(I)>=0)return;if(!("toJSON"in I)){n[F]=I;const h=Z1(I)?[]:{};return cv(I,(m,a)=>{const y=r(m,F+1);!lv(y)&&(h[a]=y)}),n[F]=void 0,h}}return I};return r(e,0)},c9t=Mh("AsyncFunction"),d9t=e=>e&&(ew(e)||eu(e))&&eu(e.then)&&eu(e.catch),VW=((e,n)=>e?setImmediate:n?((r,I)=>(Bm.addEventListener("message",({source:F,data:h})=>{F===Bm&&h===r&&I.length&&I.shift()()},!1),F=>{I.push(F),Bm.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",eu(Bm.postMessage)),u9t=typeof queueMicrotask<"u"?queueMicrotask.bind(Bm):typeof process<"u"&&process.nextTick||VW,qn={isArray:Z1,isArrayBuffer:NW,isBuffer:A7t,isFormData:D7t,isArrayBufferView:M7t,isString:I7t,isNumber:BW,isBoolean:N7t,isObject:ew,isPlainObject:tw,isReadableStream:V7t,isRequest:R7t,isResponse:$7t,isHeaders:j7t,isUndefined:lv,isDate:B7t,isFile:P7t,isBlob:O7t,isRegExp:t9t,isFunction:eu,isStream:F7t,isURLSearchParams:z7t,isTypedArray:J7t,isFileList:L7t,forEach:cv,merge:sT,extend:G7t,trim:U7t,stripBOM:H7t,inherits:W7t,toFlatObject:q7t,kindOf:K4,kindOfTest:Mh,endsWith:Y7t,toArray:X7t,forEachEntry:Z7t,matchAll:K7t,isHTMLForm:Q7t,hasOwnProperty:LW,hasOwnProp:LW,reduceDescriptors:FW,freezeMethods:a9t,toObjectSet:n9t,toCamelCase:e9t,noop:r9t,toFiniteNumber:i9t,findKey:PW,global:Bm,isContextDefined:OW,ALPHABET:zW,generateString:o9t,isSpecCompliantForm:s9t,toJSONObject:l9t,isAsyncFn:c9t,isThenable:d9t,setImmediate:VW,asap:u9t};function to(e,n,r,I,F){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",n&&(this.code=n),r&&(this.config=r),I&&(this.request=I),F&&(this.response=F)}qn.inherits(to,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:qn.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const RW=to.prototype,$W={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{$W[e]={value:e}}),Object.defineProperties(to,$W),Object.defineProperty(RW,"isAxiosError",{value:!0}),to.from=(e,n,r,I,F,h)=>{const m=Object.create(RW);return qn.toFlatObject(e,m,function(a){return a!==Error.prototype},a=>a!=="isAxiosError"),to.call(m,e.message,n,r,I,F),m.cause=e,m.name=e.name,h&&Object.assign(m,h),m};const h9t=null;function cT(e){return qn.isPlainObject(e)||qn.isArray(e)}function jW(e){return qn.endsWith(e,"[]")?e.slice(0,-2):e}function UW(e,n,r){return e?e.concat(n).map(function(I,F){return I=jW(I),!r&&F?"["+I+"]":I}).join(r?".":""):n}function p9t(e){return qn.isArray(e)&&!e.some(cT)}const f9t=qn.toFlatObject(qn,{},null,function(e){return/^is[A-Z]/.test(e)});function aw(e,n,r){if(!qn.isObject(e))throw new TypeError("target must be an object");n=n||new FormData,r=qn.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(c,s){return!qn.isUndefined(s[c])});const I=r.metaTokens,F=r.visitor||g,h=r.dots,m=r.indexes,a=(r.Blob||typeof Blob<"u"&&Blob)&&qn.isSpecCompliantForm(n);if(!qn.isFunction(F))throw new TypeError("visitor must be a function");function y(c){if(c===null)return"";if(qn.isDate(c))return c.toISOString();if(!a&&qn.isBlob(c))throw new to("Blob is not supported. Use a Buffer instead.");return qn.isArrayBuffer(c)||qn.isTypedArray(c)?a&&typeof Blob=="function"?new Blob([c]):Buffer.from(c):c}function g(c,s,i){let l=c;if(c&&!i&&typeof c=="object"){if(qn.endsWith(s,"{}"))s=I?s:s.slice(0,-2),c=JSON.stringify(c);else if(qn.isArray(c)&&p9t(c)||(qn.isFileList(c)||qn.endsWith(s,"[]"))&&(l=qn.toArray(c)))return s=jW(s),l.forEach(function(d,u){!(qn.isUndefined(d)||d===null)&&n.append(m===!0?UW([s],u,h):m===null?s:s+"[]",y(d))}),!1}return cT(c)?!0:(n.append(UW(i,s,h),y(c)),!1)}const o=[],_=Object.assign(f9t,{defaultVisitor:g,convertValue:y,isVisitable:cT});function b(c,s){if(!qn.isUndefined(c)){if(o.indexOf(c)!==-1)throw Error("Circular reference detected in "+s.join("."));o.push(c),qn.forEach(c,function(i,l){(!(qn.isUndefined(i)||i===null)&&F.call(n,i,qn.isString(l)?l.trim():l,s,_))===!0&&b(i,s?s.concat(l):[l])}),o.pop()}}if(!qn.isObject(e))throw new TypeError("data must be an object");return b(e),n}function GW(e){const n={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return n[r]})}function dT(e,n){this._pairs=[],e&&aw(e,this,n)}const HW=dT.prototype;HW.append=function(e,n){this._pairs.push([e,n])},HW.toString=function(e){const n=e?function(r){return e.call(this,r,GW)}:GW;return this._pairs.map(function(r){return n(r[0])+"="+n(r[1])},"").join("&")};function m9t(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function WW(e,n,r){if(!n)return e;const I=r&&r.encode||m9t,F=r&&r.serialize;let h;if(F?h=F(n,r):h=qn.isURLSearchParams(n)?n.toString():new dT(n,r).toString(I),h){const m=e.indexOf("#");m!==-1&&(e=e.slice(0,m)),e+=(e.indexOf("?")===-1?"?":"&")+h}return e}const qW=class{constructor(){this.handlers=[]}use(n,r,I){return this.handlers.push({fulfilled:n,rejected:r,synchronous:I?I.synchronous:!1,runWhen:I?I.runWhen:null}),this.handlers.length-1}eject(n){this.handlers[n]&&(this.handlers[n]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(n){qn.forEach(this.handlers,function(r){r!==null&&n(r)})}},YW={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},g9t=typeof URLSearchParams<"u"?URLSearchParams:dT,y9t=typeof FormData<"u"?FormData:null,v9t=typeof Blob<"u"?Blob:null,_9t={isBrowser:!0,classes:{URLSearchParams:g9t,FormData:y9t,Blob:v9t},protocols:["http","https","file","blob","url","data"]},uT=typeof window<"u"&&typeof document<"u",b9t=(e=>uT&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),x9t=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),w9t=uT&&window.location.href||"http://localhost",k9t=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:uT,hasStandardBrowserEnv:b9t,hasStandardBrowserWebWorkerEnv:x9t,origin:w9t},Symbol.toStringTag,{value:"Module"})),Ih={...k9t,..._9t};function C9t(e,n){return aw(e,new Ih.classes.URLSearchParams,Object.assign({visitor:function(r,I,F,h){return Ih.isNode&&qn.isBuffer(r)?(this.append(I,r.toString("base64")),!1):h.defaultVisitor.apply(this,arguments)}},n))}function S9t(e){return qn.matchAll(/\w+|\[(\w*)]/g,e).map(n=>n[0]==="[]"?"":n[1]||n[0])}function T9t(e){const n={},r=Object.keys(e);let I;const F=r.length;let h;for(I=0;I<F;I++)h=r[I],n[h]=e[h];return n}function XW(e){function n(r,I,F,h){let m=r[h++];if(m==="__proto__")return!0;const a=Number.isFinite(+m),y=h>=r.length;return m=!m&&qn.isArray(F)?F.length:m,y?(qn.hasOwnProp(F,m)?F[m]=[F[m],I]:F[m]=I,!a):((!F[m]||!qn.isObject(F[m]))&&(F[m]=[]),n(r,I,F[m],h)&&qn.isArray(F[m])&&(F[m]=T9t(F[m])),!a)}if(qn.isFormData(e)&&qn.isFunction(e.entries)){const r={};return qn.forEachEntry(e,(I,F)=>{n(S9t(I),F,r,0)}),r}return null}function E9t(e,n,r){if(qn.isString(e))try{return(n||JSON.parse)(e),qn.trim(e)}catch(I){if(I.name!=="SyntaxError")throw I}return(r||JSON.stringify)(e)}const hT={transitional:YW,adapter:["xhr","http","fetch"],transformRequest:[function(e,n){const r=n.getContentType()||"",I=r.indexOf("application/json")>-1,F=qn.isObject(e);if(F&&qn.isHTMLForm(e)&&(e=new FormData(e)),qn.isFormData(e))return I?JSON.stringify(XW(e)):e;if(qn.isArrayBuffer(e)||qn.isBuffer(e)||qn.isStream(e)||qn.isFile(e)||qn.isBlob(e)||qn.isReadableStream(e))return e;if(qn.isArrayBufferView(e))return e.buffer;if(qn.isURLSearchParams(e))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let h;if(F){if(r.indexOf("application/x-www-form-urlencoded")>-1)return C9t(e,this.formSerializer).toString();if((h=qn.isFileList(e))||r.indexOf("multipart/form-data")>-1){const m=this.env&&this.env.FormData;return aw(h?{"files[]":e}:e,m&&new m,this.formSerializer)}}return F||I?(n.setContentType("application/json",!1),E9t(e)):e}],transformResponse:[function(e){const n=this.transitional||hT.transitional,r=n&&n.forcedJSONParsing,I=this.responseType==="json";if(qn.isResponse(e)||qn.isReadableStream(e))return e;if(e&&qn.isString(e)&&(r&&!this.responseType||I)){const F=!(n&&n.silentJSONParsing)&&I;try{return JSON.parse(e)}catch(h){if(F)throw h.name==="SyntaxError"?to.from(h,to.ERR_BAD_RESPONSE,this,null,this.response):h}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ih.classes.FormData,Blob:Ih.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};qn.forEach(["delete","get","head","post","put","patch"],e=>{hT.headers[e]={}});const pT=hT,A9t=qn.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"]),M9t=e=>{const n={};let r,I,F;return e&&e.split(`
|
|
125
125
|
`).forEach(function(h){F=h.indexOf(":"),r=h.substring(0,F).trim().toLowerCase(),I=h.substring(F+1).trim(),!(!r||n[r]&&A9t[r])&&(r==="set-cookie"?n[r]?n[r].push(I):n[r]=[I]:n[r]=n[r]?n[r]+", "+I:I)}),n},JW=Symbol("internals");function dv(e){return e&&String(e).trim().toLowerCase()}function nw(e){return e===!1||e==null?e:qn.isArray(e)?e.map(nw):String(e)}function I9t(e){const n=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let I;for(;I=r.exec(e);)n[I[1]]=I[2];return n}const N9t=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function fT(e,n,r,I,F){if(qn.isFunction(I))return I.call(this,n,r);if(F&&(n=r),!!qn.isString(n)){if(qn.isString(I))return n.indexOf(I)!==-1;if(qn.isRegExp(I))return I.test(n)}}function B9t(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(n,r,I)=>r.toUpperCase()+I)}function P9t(e,n){const r=qn.toCamelCase(" "+n);["get","set","has"].forEach(I=>{Object.defineProperty(e,I+r,{value:function(F,h,m){return this[I].call(this,n,F,h,m)},configurable:!0})})}let rw=class{constructor(n){n&&this.set(n)}set(n,r,I){const F=this;function h(a,y,g){const o=dv(y);if(!o)throw new Error("header name must be a non-empty string");const _=qn.findKey(F,o);(!_||F[_]===void 0||g===!0||g===void 0&&F[_]!==!1)&&(F[_||y]=nw(a))}const m=(a,y)=>qn.forEach(a,(g,o)=>h(g,o,y));if(qn.isPlainObject(n)||n instanceof this.constructor)m(n,r);else if(qn.isString(n)&&(n=n.trim())&&!N9t(n))m(M9t(n),r);else if(qn.isHeaders(n))for(const[a,y]of n.entries())h(y,a,I);else n!=null&&h(r,n,I);return this}get(n,r){if(n=dv(n),n){const I=qn.findKey(this,n);if(I){const F=this[I];if(!r)return F;if(r===!0)return I9t(F);if(qn.isFunction(r))return r.call(this,F,I);if(qn.isRegExp(r))return r.exec(F);throw new TypeError("parser must be boolean|regexp|function")}}}has(n,r){if(n=dv(n),n){const I=qn.findKey(this,n);return!!(I&&this[I]!==void 0&&(!r||fT(this,this[I],I,r)))}return!1}delete(n,r){const I=this;let F=!1;function h(m){if(m=dv(m),m){const a=qn.findKey(I,m);a&&(!r||fT(I,I[a],a,r))&&(delete I[a],F=!0)}}return qn.isArray(n)?n.forEach(h):h(n),F}clear(n){const r=Object.keys(this);let I=r.length,F=!1;for(;I--;){const h=r[I];(!n||fT(this,this[h],h,n,!0))&&(delete this[h],F=!0)}return F}normalize(n){const r=this,I={};return qn.forEach(this,(F,h)=>{const m=qn.findKey(I,h);if(m){r[m]=nw(F),delete r[h];return}const a=n?B9t(h):String(h).trim();a!==h&&delete r[h],r[a]=nw(F),I[a]=!0}),this}concat(...n){return this.constructor.concat(this,...n)}toJSON(n){const r=Object.create(null);return qn.forEach(this,(I,F)=>{I!=null&&I!==!1&&(r[F]=n&&qn.isArray(I)?I.join(", "):I)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([n,r])=>n+": "+r).join(`
|
|
126
126
|
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(n){return n instanceof this?n:new this(n)}static concat(n,...r){const I=new this(n);return r.forEach(F=>I.set(F)),I}static accessor(n){const r=(this[JW]=this[JW]={accessors:{}}).accessors,I=this.prototype;function F(h){const m=dv(h);r[m]||(P9t(I,h),r[m]=!0)}return qn.isArray(n)?n.forEach(F):F(n),this}};rw.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),qn.reduceDescriptors(rw.prototype,({value:e},n)=>{let r=n[0].toUpperCase()+n.slice(1);return{get:()=>e,set(I){this[r]=I}}}),qn.freezeMethods(rw);const Nh=rw;function mT(e,n){const r=this||pT,I=n||r,F=Nh.from(I.headers);let h=I.data;return qn.forEach(e,function(m){h=m.call(r,h,F.normalize(),n?n.status:void 0)}),F.normalize(),h}function ZW(e){return!!(e&&e.__CANCEL__)}function K1(e,n,r){to.call(this,e??"canceled",to.ERR_CANCELED,n,r),this.name="CanceledError"}qn.inherits(K1,to,{__CANCEL__:!0});function KW(e,n,r){const I=r.config.validateStatus;!r.status||!I||I(r.status)?e(r):n(new to("Request failed with status code "+r.status,[to.ERR_BAD_REQUEST,to.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function O9t(e){const n=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return n&&n[1]||""}function L9t(e,n){e=e||10;const r=new Array(e),I=new Array(e);let F=0,h=0,m;return n=n!==void 0?n:1e3,function(a){const y=Date.now(),g=I[h];m||(m=y),r[F]=a,I[F]=y;let o=h,_=0;for(;o!==F;)_+=r[o++],o=o%e;if(F=(F+1)%e,F===h&&(h=(h+1)%e),y-m<n)return;const b=g&&y-g;return b?Math.round(_*1e3/b):void 0}}function F9t(e,n){let r=0,I=1e3/n,F,h;const m=(a,y=Date.now())=>{r=y,F=null,h&&(clearTimeout(h),h=null),e.apply(null,a)};return[(...a)=>{const y=Date.now(),g=y-r;g>=I?m(a,y):(F=a,h||(h=setTimeout(()=>{h=null,m(F)},I-g)))},()=>F&&m(F)]}const iw=(e,n,r=3)=>{let I=0;const F=L9t(50,250);return F9t(h=>{const m=h.loaded,a=h.lengthComputable?h.total:void 0,y=m-I,g=F(y),o=m<=a;I=m;const _={loaded:m,total:a,progress:a?m/a:void 0,bytes:y,rate:g||void 0,estimated:g&&a&&o?(a-m)/g:void 0,event:h,lengthComputable:a!=null,[n?"download":"upload"]:!0};e(_)},r)},QW=(e,n)=>{const r=e!=null;return[I=>n[0]({lengthComputable:r,total:e,loaded:I}),n[1]]},eq=e=>(...n)=>qn.asap(()=>e(...n)),D9t=Ih.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function I(F){let h=F;return e&&(n.setAttribute("href",h),h=n.href),n.setAttribute("href",h),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=I(window.location.href),function(F){const h=qn.isString(F)?I(F):F;return h.protocol===r.protocol&&h.host===r.host}}():function(){return function(){return!0}}(),z9t=Ih.hasStandardBrowserEnv?{write(e,n,r,I,F,h){const m=[e+"="+encodeURIComponent(n)];qn.isNumber(r)&&m.push("expires="+new Date(r).toGMTString()),qn.isString(I)&&m.push("path="+I),qn.isString(F)&&m.push("domain="+F),h===!0&&m.push("secure"),document.cookie=m.join("; ")},read(e){const n=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return n?decodeURIComponent(n[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function V9t(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function R9t(e,n){return n?e.replace(/\/?\/$/,"")+"/"+n.replace(/^\/+/,""):e}function tq(e,n){return e&&!V9t(n)?R9t(e,n):n}const aq=e=>e instanceof Nh?{...e}:e;function Pm(e,n){n=n||{};const r={};function I(g,o,_){return qn.isPlainObject(g)&&qn.isPlainObject(o)?qn.merge.call({caseless:_},g,o):qn.isPlainObject(o)?qn.merge({},o):qn.isArray(o)?o.slice():o}function F(g,o,_){if(qn.isUndefined(o)){if(!qn.isUndefined(g))return I(void 0,g,_)}else return I(g,o,_)}function h(g,o){if(!qn.isUndefined(o))return I(void 0,o)}function m(g,o){if(qn.isUndefined(o)){if(!qn.isUndefined(g))return I(void 0,g)}else return I(void 0,o)}function a(g,o,_){if(_ in n)return I(g,o);if(_ in e)return I(void 0,g)}const y={url:h,method:h,data:h,baseURL:m,transformRequest:m,transformResponse:m,paramsSerializer:m,timeout:m,timeoutMessage:m,withCredentials:m,withXSRFToken:m,adapter:m,responseType:m,xsrfCookieName:m,xsrfHeaderName:m,onUploadProgress:m,onDownloadProgress:m,decompress:m,maxContentLength:m,maxBodyLength:m,beforeRedirect:m,transport:m,httpAgent:m,httpsAgent:m,cancelToken:m,socketPath:m,responseEncoding:m,validateStatus:a,headers:(g,o)=>F(aq(g),aq(o),!0)};return qn.forEach(Object.keys(Object.assign({},e,n)),function(g){const o=y[g]||F,_=o(e[g],n[g],g);qn.isUndefined(_)&&o!==a||(r[g]=_)}),r}const nq=e=>{const n=Pm({},e);let{data:r,withXSRFToken:I,xsrfHeaderName:F,xsrfCookieName:h,headers:m,auth:a}=n;n.headers=m=Nh.from(m),n.url=WW(tq(n.baseURL,n.url),e.params,e.paramsSerializer),a&&m.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):"")));let y;if(qn.isFormData(r)){if(Ih.hasStandardBrowserEnv||Ih.hasStandardBrowserWebWorkerEnv)m.setContentType(void 0);else if((y=m.getContentType())!==!1){const[g,...o]=y?y.split(";").map(_=>_.trim()).filter(Boolean):[];m.setContentType([g||"multipart/form-data",...o].join("; "))}}if(Ih.hasStandardBrowserEnv&&(I&&qn.isFunction(I)&&(I=I(n)),I||I!==!1&&D9t(n.url))){const g=F&&h&&z9t.read(h);g&&m.set(F,g)}return n},$9t=typeof XMLHttpRequest<"u",j9t=$9t&&function(e){return new Promise(function(n,r){const I=nq(e);let F=I.data;const h=Nh.from(I.headers).normalize();let{responseType:m,onUploadProgress:a,onDownloadProgress:y}=I,g,o,_,b,c;function s(){b&&b(),c&&c(),I.cancelToken&&I.cancelToken.unsubscribe(g),I.signal&&I.signal.removeEventListener("abort",g)}let i=new XMLHttpRequest;i.open(I.method.toUpperCase(),I.url,!0),i.timeout=I.timeout;function l(){if(!i)return;const u=Nh.from("getAllResponseHeaders"in i&&i.getAllResponseHeaders()),p={data:!m||m==="text"||m==="json"?i.responseText:i.response,status:i.status,statusText:i.statusText,headers:u,config:e,request:i};KW(function(f){n(f),s()},function(f){r(f),s()},p),i=null}"onloadend"in i?i.onloadend=l:i.onreadystatechange=function(){!i||i.readyState!==4||i.status===0&&!(i.responseURL&&i.responseURL.indexOf("file:")===0)||setTimeout(l)},i.onabort=function(){i&&(r(new to("Request aborted",to.ECONNABORTED,e,i)),i=null)},i.onerror=function(){r(new to("Network Error",to.ERR_NETWORK,e,i)),i=null},i.ontimeout=function(){let u=I.timeout?"timeout of "+I.timeout+"ms exceeded":"timeout exceeded";const p=I.transitional||YW;I.timeoutErrorMessage&&(u=I.timeoutErrorMessage),r(new to(u,p.clarifyTimeoutError?to.ETIMEDOUT:to.ECONNABORTED,e,i)),i=null},F===void 0&&h.setContentType(null),"setRequestHeader"in i&&qn.forEach(h.toJSON(),function(u,p){i.setRequestHeader(p,u)}),qn.isUndefined(I.withCredentials)||(i.withCredentials=!!I.withCredentials),m&&m!=="json"&&(i.responseType=I.responseType),y&&([_,c]=iw(y,!0),i.addEventListener("progress",_)),a&&i.upload&&([o,b]=iw(a),i.upload.addEventListener("progress",o),i.upload.addEventListener("loadend",b)),(I.cancelToken||I.signal)&&(g=u=>{i&&(r(!u||u.type?new K1(null,e,i):u),i.abort(),i=null)},I.cancelToken&&I.cancelToken.subscribe(g),I.signal&&(I.signal.aborted?g():I.signal.addEventListener("abort",g)));const d=O9t(I.url);if(d&&Ih.protocols.indexOf(d)===-1){r(new to("Unsupported protocol "+d+":",to.ERR_BAD_REQUEST,e));return}i.send(F||null)})},U9t=(e,n)=>{let r=new AbortController,I;const F=function(y){if(!I){I=!0,m();const g=y instanceof Error?y:this.reason;r.abort(g instanceof to?g:new K1(g instanceof Error?g.message:g))}};let h=n&&setTimeout(()=>{F(new to(`timeout ${n} of ms exceeded`,to.ETIMEDOUT))},n);const m=()=>{e&&(h&&clearTimeout(h),h=null,e.forEach(y=>{y&&(y.removeEventListener?y.removeEventListener("abort",F):y.unsubscribe(F))}),e=null)};e.forEach(y=>y&&y.addEventListener&&y.addEventListener("abort",F));const{signal:a}=r;return a.unsubscribe=m,[a,()=>{h&&clearTimeout(h),h=null}]},G9t=U9t,H9t=function*(e,n){let r=e.byteLength;if(!n||r<n){yield e;return}let I=0,F;for(;I<r;)F=I+n,yield e.slice(I,F),I=F},W9t=async function*(e,n,r){for await(const I of e)yield*H9t(ArrayBuffer.isView(I)?I:await r(String(I)),n)},rq=(e,n,r,I,F)=>{const h=W9t(e,n,F);let m=0,a,y=g=>{a||(a=!0,I&&I(g))};return new ReadableStream({async pull(g){try{const{done:o,value:_}=await h.next();if(o){y(),g.close();return}let b=_.byteLength;if(r){let c=m+=b;r(c)}g.enqueue(new Uint8Array(_))}catch(o){throw y(o),o}},cancel(g){return y(g),h.return()}},{highWaterMark:2})},ow=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",iq=ow&&typeof ReadableStream=="function",gT=ow&&(typeof TextEncoder=="function"?(e=>n=>e.encode(n))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),oq=(e,...n)=>{try{return!!e(...n)}catch{return!1}},q9t=iq&&oq(()=>{let e=!1;const n=new Request(Ih.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!n}),sq=64*1024,yT=iq&&oq(()=>qn.isReadableStream(new Response("").body)),sw={stream:yT&&(e=>e.body)};ow&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(n=>{!sw[n]&&(sw[n]=qn.isFunction(e[n])?r=>r[n]():(r,I)=>{throw new to(`Response type '${n}' is not supported`,to.ERR_NOT_SUPPORT,I)})})})(new Response);const Y9t=async e=>{if(e==null)return 0;if(qn.isBlob(e))return e.size;if(qn.isSpecCompliantForm(e))return(await new Request(e).arrayBuffer()).byteLength;if(qn.isArrayBufferView(e)||qn.isArrayBuffer(e))return e.byteLength;if(qn.isURLSearchParams(e)&&(e=e+""),qn.isString(e))return(await gT(e)).byteLength},X9t=async(e,n)=>qn.toFiniteNumber(e.getContentLength())??Y9t(n),J9t=ow&&(async e=>{let{url:n,method:r,data:I,signal:F,cancelToken:h,timeout:m,onDownloadProgress:a,onUploadProgress:y,responseType:g,headers:o,withCredentials:_="same-origin",fetchOptions:b}=nq(e);g=g?(g+"").toLowerCase():"text";let[c,s]=F||h||m?G9t([F,h],m):[],i,l;const d=()=>{!i&&setTimeout(()=>{c&&c.unsubscribe()}),i=!0};let u;try{if(y&&q9t&&r!=="get"&&r!=="head"&&(u=await X9t(o,I))!==0){let w=new Request(n,{method:"POST",body:I,duplex:"half"}),x;if(qn.isFormData(I)&&(x=w.headers.get("content-type"))&&o.setContentType(x),w.body){const[M,k]=QW(u,iw(eq(y)));I=rq(w.body,sq,M,k,gT)}}qn.isString(_)||(_=_?"include":"omit"),l=new Request(n,{...b,signal:c,method:r.toUpperCase(),headers:o.normalize().toJSON(),body:I,duplex:"half",credentials:_});let p=await fetch(l);const f=yT&&(g==="stream"||g==="response");if(yT&&(a||f)){const w={};["status","statusText","headers"].forEach(C=>{w[C]=p[C]});const x=qn.toFiniteNumber(p.headers.get("content-length")),[M,k]=a&&QW(x,iw(eq(a),!0))||[];p=new Response(rq(p.body,sq,M,()=>{k&&k(),f&&d()},gT),w)}g=g||"text";let v=await sw[qn.findKey(sw,g)||"text"](p,e);return!f&&d(),s&&s(),await new Promise((w,x)=>{KW(w,x,{data:v,headers:Nh.from(p.headers),status:p.status,statusText:p.statusText,config:e,request:l})})}catch(p){throw d(),p&&p.name==="TypeError"&&/fetch/i.test(p.message)?Object.assign(new to("Network Error",to.ERR_NETWORK,e,l),{cause:p.cause||p}):to.from(p,p&&p.code,e,l)}}),vT={http:h9t,xhr:j9t,fetch:J9t};qn.forEach(vT,(e,n)=>{if(e){try{Object.defineProperty(e,"name",{value:n})}catch{}Object.defineProperty(e,"adapterName",{value:n})}});const lq=e=>`- ${e}`,Z9t=e=>qn.isFunction(e)||e===null||e===!1,cq={getAdapter:e=>{e=qn.isArray(e)?e:[e];const{length:n}=e;let r,I;const F={};for(let h=0;h<n;h++){r=e[h];let m;if(I=r,!Z9t(r)&&(I=vT[(m=String(r)).toLowerCase()],I===void 0))throw new to(`Unknown adapter '${m}'`);if(I)break;F[m||"#"+h]=I}if(!I){const h=Object.entries(F).map(([a,y])=>`adapter ${a} `+(y===!1?"is not supported by the environment":"is not available in the build"));let m=n?h.length>1?`since :
|
|
127
127
|
`+h.map(lq).join(`
|